From 8ad86514bbbb5dba97433c0e99868a4382386ec5 Mon Sep 17 00:00:00 2001 From: blushi Date: Thu, 8 Aug 2024 14:33:38 +0200 Subject: [PATCH 1/9] fix: use ts-node for codegen --- package.json | 1 + packages/api/package.json | 2 +- packages/api/scripts/codegen.js | 2 +- .../src/codegen/cosmos/auth/v1beta1/query.ts | 8 +- .../src/codegen/cosmos/authz/v1beta1/authz.ts | 4 +- .../src/codegen/cosmos/evidence/v1beta1/tx.ts | 2 +- .../cosmos/feegrant/v1beta1/feegrant.ts | 4 +- .../src/codegen/cosmos/feegrant/v1beta1/tx.ts | 2 +- packages/api/src/codegen/cosmos/gov/v1/tx.ts | 2 +- .../api/src/codegen/cosmos/gov/v1beta1/gov.ts | 2 +- .../api/src/codegen/cosmos/gov/v1beta1/tx.ts | 2 +- .../api/src/codegen/cosmos/group/v1/tx.ts | 6 +- .../api/src/codegen/cosmos/group/v1/types.ts | 2 +- .../codegen/cosmos/staking/v1beta1/staking.ts | 2 +- .../src/codegen/cosmos/staking/v1beta1/tx.ts | 2 +- .../cosmos/app/module/v1alpha1/module.d.ts | 7 +- .../codegen/cosmos/app/v1alpha1/config.d.ts | 20 +- .../codegen/cosmos/app/v1alpha1/module.d.ts | 29 +- .../codegen/cosmos/app/v1alpha1/query.d.ts | 16 +- .../codegen/cosmos/auth/v1beta1/auth.d.ts | 82 +- .../codegen/cosmos/auth/v1beta1/genesis.d.ts | 9 +- .../codegen/cosmos/auth/v1beta1/query.d.ts | 139 +- .../cosmos/auth/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/authz/v1beta1/authz.d.ts | 54 +- .../codegen/cosmos/authz/v1beta1/event.d.ts | 24 +- .../codegen/cosmos/authz/v1beta1/genesis.d.ts | 9 +- .../codegen/cosmos/authz/v1beta1/query.d.ts | 72 +- .../cosmos/authz/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/authz/v1beta1/tx.d.ts | 52 +- .../codegen/cosmos/bank/v1beta1/authz.d.ts | 13 +- .../codegen/cosmos/bank/v1beta1/bank.d.ts | 81 +- .../codegen/cosmos/bank/v1beta1/genesis.d.ts | 22 +- .../codegen/cosmos/bank/v1beta1/query.d.ts | 167 +- .../cosmos/bank/v1beta1/query.lcd.d.ts | 2 +- .../types/codegen/cosmos/bank/v1beta1/tx.d.ts | 32 +- .../cosmos/base/abci/v1beta1/abci.d.ts | 169 +- .../codegen/cosmos/base/kv/v1beta1/kv.d.ts | 18 +- .../cosmos/base/node/v1beta1/query.d.ts | 14 +- .../cosmos/base/node/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/base/query/v1beta1/pagination.d.ts | 39 +- .../base/reflection/v1beta1/reflection.d.ts | 28 +- .../base/reflection/v2alpha1/reflection.d.ts | 226 +- .../base/snapshots/v1beta1/snapshot.d.ts | 88 +- .../base/store/v1beta1/commit_info.d.ts | 36 +- .../cosmos/base/store/v1beta1/listening.d.ts | 55 +- .../cosmos/base/tendermint/v1beta1/query.d.ts | 264 +- .../base/tendermint/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/base/tendermint/v1beta1/types.d.ts | 47 +- .../codegen/cosmos/base/v1beta1/coin.d.ts | 34 +- packages/api/types/codegen/cosmos/bundle.d.ts | 3222 +++--- .../cosmos/capability/v1beta1/capability.d.ts | 30 +- .../cosmos/capability/v1beta1/genesis.d.ts | 27 +- .../cosmos/crisis/v1beta1/genesis.d.ts | 7 +- .../codegen/cosmos/crisis/v1beta1/tx.d.ts | 18 +- .../codegen/cosmos/crypto/ed25519/keys.d.ts | 16 +- .../types/codegen/cosmos/crypto/hd/v1/hd.d.ts | 17 +- .../cosmos/crypto/keyring/v1/record.d.ts | 41 +- .../codegen/cosmos/crypto/multisig/keys.d.ts | 11 +- .../crypto/multisig/v1beta1/multisig.d.ts | 18 +- .../codegen/cosmos/crypto/secp256k1/keys.d.ts | 16 +- .../codegen/cosmos/crypto/secp256r1/keys.d.ts | 16 +- .../distribution/v1beta1/distribution.d.ts | 141 +- .../cosmos/distribution/v1beta1/genesis.d.ts | 97 +- .../cosmos/distribution/v1beta1/query.d.ts | 143 +- .../distribution/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/distribution/v1beta1/tx.d.ts | 60 +- .../cosmos/evidence/v1beta1/evidence.d.ts | 26 +- .../cosmos/evidence/v1beta1/genesis.d.ts | 9 +- .../cosmos/evidence/v1beta1/query.d.ts | 38 +- .../cosmos/evidence/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/evidence/v1beta1/tx.d.ts | 22 +- .../cosmos/feegrant/v1beta1/feegrant.d.ts | 66 +- .../cosmos/feegrant/v1beta1/genesis.d.ts | 9 +- .../cosmos/feegrant/v1beta1/query.d.ts | 64 +- .../cosmos/feegrant/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/feegrant/v1beta1/tx.d.ts | 36 +- .../cosmos/genutil/v1beta1/genesis.d.ts | 9 +- .../types/codegen/cosmos/gov/v1/genesis.d.ts | 32 +- .../api/types/codegen/cosmos/gov/v1/gov.d.ts | 137 +- .../types/codegen/cosmos/gov/v1/query.d.ts | 189 +- .../codegen/cosmos/gov/v1/query.lcd.d.ts | 2 +- .../api/types/codegen/cosmos/gov/v1/tx.d.ts | 103 +- .../codegen/cosmos/gov/v1beta1/genesis.d.ts | 20 +- .../types/codegen/cosmos/gov/v1beta1/gov.d.ts | 122 +- .../codegen/cosmos/gov/v1beta1/query.d.ts | 161 +- .../codegen/cosmos/gov/v1beta1/query.lcd.d.ts | 2 +- .../types/codegen/cosmos/gov/v1beta1/tx.d.ts | 83 +- .../types/codegen/cosmos/group/v1/events.d.ts | 100 +- .../codegen/cosmos/group/v1/genesis.d.ts | 36 +- .../types/codegen/cosmos/group/v1/query.d.ts | 285 +- .../codegen/cosmos/group/v1/query.lcd.d.ts | 2 +- .../api/types/codegen/cosmos/group/v1/tx.d.ts | 295 +- .../types/codegen/cosmos/group/v1/types.d.ts | 206 +- .../codegen/cosmos/mint/v1beta1/genesis.d.ts | 7 +- .../codegen/cosmos/mint/v1beta1/mint.d.ts | 33 +- .../codegen/cosmos/mint/v1beta1/query.d.ts | 36 +- .../cosmos/mint/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/nft/v1beta1/event.d.ts | 37 +- .../codegen/cosmos/nft/v1beta1/genesis.d.ts | 20 +- .../types/codegen/cosmos/nft/v1beta1/nft.d.ts | 40 +- .../codegen/cosmos/nft/v1beta1/query.d.ts | 135 +- .../codegen/cosmos/nft/v1beta1/query.lcd.d.ts | 2 +- .../types/codegen/cosmos/nft/v1beta1/tx.d.ts | 20 +- .../cosmos/orm/module/v1alpha1/module.d.ts | 7 +- .../api/types/codegen/cosmos/orm/v1/orm.d.ts | 42 +- .../codegen/cosmos/orm/v1alpha1/schema.d.ts | 22 +- .../codegen/cosmos/params/v1beta1/params.d.ts | 28 +- .../codegen/cosmos/params/v1beta1/query.d.ts | 37 +- .../cosmos/params/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/slashing/v1beta1/genesis.d.ts | 41 +- .../cosmos/slashing/v1beta1/query.d.ts | 44 +- .../cosmos/slashing/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/slashing/v1beta1/slashing.d.ts | 51 +- .../codegen/cosmos/slashing/v1beta1/tx.d.ts | 12 +- .../codegen/cosmos/staking/v1beta1/authz.d.ts | 24 +- .../cosmos/staking/v1beta1/genesis.d.ts | 35 +- .../codegen/cosmos/staking/v1beta1/query.d.ts | 259 +- .../cosmos/staking/v1beta1/query.lcd.d.ts | 2 +- .../cosmos/staking/v1beta1/staking.d.ts | 233 +- .../codegen/cosmos/staking/v1beta1/tx.d.ts | 119 +- .../cosmos/tx/signing/v1beta1/signing.d.ts | 54 +- .../codegen/cosmos/tx/v1beta1/service.d.ts | 143 +- .../cosmos/tx/v1beta1/service.lcd.d.ts | 2 +- .../types/codegen/cosmos/tx/v1beta1/tx.d.ts | 192 +- .../codegen/cosmos/upgrade/v1beta1/query.d.ts | 79 +- .../cosmos/upgrade/v1beta1/query.lcd.d.ts | 2 +- .../codegen/cosmos/upgrade/v1beta1/tx.d.ts | 26 +- .../cosmos/upgrade/v1beta1/upgrade.d.ts | 65 +- .../codegen/cosmos/vesting/v1beta1/tx.d.ts | 65 +- .../cosmos/vesting/v1beta1/vesting.d.ts | 87 +- .../types/codegen/cosmos_proto/bundle.d.ts | 10 +- .../types/codegen/cosmos_proto/cosmos.d.ts | 22 +- packages/api/types/codegen/google/bundle.d.ts | 806 +- .../types/codegen/google/protobuf/any.d.ts | 11 +- .../codegen/google/protobuf/descriptor.d.ts | 414 +- .../codegen/google/protobuf/duration.d.ts | 12 +- .../codegen/google/protobuf/timestamp.d.ts | 12 +- packages/api/types/codegen/helpers.d.ts | 29 +- .../ibc/applications/transfer/v1/genesis.d.ts | 11 +- .../ibc/applications/transfer/v1/query.d.ts | 82 +- .../applications/transfer/v1/query.lcd.d.ts | 2 +- .../applications/transfer/v1/transfer.d.ts | 20 +- .../ibc/applications/transfer/v1/tx.d.ts | 27 +- packages/api/types/codegen/ibc/bundle.d.ts | 1471 +-- .../codegen/ibc/core/client/v1/client.d.ts | 90 +- .../codegen/ibc/core/client/v1/genesis.d.ts | 40 +- .../codegen/ibc/core/client/v1/query.d.ts | 173 +- .../codegen/ibc/core/client/v1/query.lcd.d.ts | 2 +- .../types/codegen/ibc/core/client/v1/tx.d.ts | 84 +- packages/api/types/codegen/index.d.ts | 5 +- packages/api/types/codegen/regen/bundle.d.ts | 8767 +++++++++-------- .../types/codegen/regen/data/v1/events.d.ts | 43 +- .../types/codegen/regen/data/v1/query.d.ts | 274 +- .../codegen/regen/data/v1/query.lcd.d.ts | 2 +- .../types/codegen/regen/data/v1/state.d.ts | 70 +- .../types/codegen/regen/data/v1/types.d.ts | 46 +- .../regen/ecocredit/basket/v1/events.d.ts | 51 +- .../regen/ecocredit/basket/v1/query.d.ts | 130 +- .../regen/ecocredit/basket/v1/query.lcd.d.ts | 2 +- .../regen/ecocredit/basket/v1/state.d.ts | 75 +- .../codegen/regen/ecocredit/basket/v1/tx.d.ts | 128 +- .../regen/ecocredit/basket/v1/types.d.ts | 30 +- .../ecocredit/marketplace/v1/events.d.ts | 61 +- .../regen/ecocredit/marketplace/v1/query.d.ts | 138 +- .../ecocredit/marketplace/v1/query.lcd.d.ts | 2 +- .../regen/ecocredit/marketplace/v1/state.d.ts | 72 +- .../regen/ecocredit/marketplace/v1/tx.d.ts | 172 +- .../regen/ecocredit/marketplace/v1/types.d.ts | 15 +- .../ecocredit/orderbook/v1alpha1/memory.d.ts | 109 +- .../codegen/regen/ecocredit/v1/events.d.ts | 180 +- .../codegen/regen/ecocredit/v1/query.d.ts | 566 +- .../codegen/regen/ecocredit/v1/query.lcd.d.ts | 2 +- .../codegen/regen/ecocredit/v1/state.d.ts | 267 +- .../types/codegen/regen/ecocredit/v1/tx.d.ts | 469 +- .../codegen/regen/ecocredit/v1/types.d.ts | 80 +- .../regen/ecocredit/v1alpha1/events.d.ts | 71 +- .../regen/ecocredit/v1alpha1/genesis.d.ts | 41 +- .../regen/ecocredit/v1alpha1/query.d.ts | 136 +- .../regen/ecocredit/v1alpha1/query.lcd.d.ts | 2 +- .../codegen/regen/ecocredit/v1alpha1/tx.d.ts | 196 +- .../regen/ecocredit/v1alpha1/types.d.ts | 100 +- .../types/codegen/regen/intertx/v1/query.d.ts | 18 +- .../codegen/regen/intertx/v1/query.lcd.d.ts | 2 +- .../types/codegen/regen/intertx/v1/tx.d.ts | 36 +- .../types/codegen/tendermint/abci/types.d.ts | 589 +- .../api/types/codegen/tendermint/bundle.d.ts | 2072 ++-- .../types/codegen/tendermint/crypto/keys.d.ts | 11 +- .../codegen/tendermint/crypto/proof.d.ts | 64 +- .../codegen/tendermint/libs/bits/types.d.ts | 20 +- .../types/codegen/tendermint/p2p/types.d.ts | 63 +- .../types/codegen/tendermint/types/block.d.ts | 11 +- .../codegen/tendermint/types/evidence.d.ts | 69 +- .../codegen/tendermint/types/params.d.ts | 93 +- .../types/codegen/tendermint/types/types.d.ts | 198 +- .../codegen/tendermint/types/validator.d.ts | 54 +- .../codegen/tendermint/version/types.d.ts | 33 +- yarn.lock | 95 +- 197 files changed, 15550 insertions(+), 13344 deletions(-) diff --git a/package.json b/package.json index c4ff241a..1b10f7d3 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "lerna": "^3.22.1", "prettier": "2.4.1", "ts-jest": "^26.4.4", + "ts-node": "^10.9.2", "typescript": "^4.0.5" } } diff --git a/packages/api/package.json b/packages/api/package.json index 3d7e4e19..5acd19b9 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -31,7 +31,7 @@ "build:module": "cross-env MODULE=true babel src --out-dir module --delete-dir-on-start --extensions \".tsx,.ts,.js\"", "build:ts": "tsc --project ./tsconfig.json", "build": "yarn build:module && yarn build:main", - "codegen": "cross-env NODE_ENV=development babel-node scripts/codegen.js" + "codegen": "ts-node scripts/codegen.js" }, "dependencies": { "@babel/runtime": "^7.22.5", diff --git a/packages/api/scripts/codegen.js b/packages/api/scripts/codegen.js index c5cb8c8a..641bbe9d 100644 --- a/packages/api/scripts/codegen.js +++ b/packages/api/scripts/codegen.js @@ -19,7 +19,7 @@ telescope({ }, interfaces: { enabled: true, - useUnionTypes: false, + useUnionTypes: true, }, prototypes: { includePackageVar: false, diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts index 7e0c7e69..5a5d1fa8 100644 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts +++ b/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts @@ -44,7 +44,7 @@ export interface QueryAccountsRequestSDKType { */ export interface QueryAccountsResponse { /** accounts are the existing accounts */ - accounts: (BaseAccount & Any)[] | Any[]; + accounts: (BaseAccount | Any)[] | Any[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } @@ -104,7 +104,7 @@ export interface QueryAccountRequestSDKType { /** QueryAccountResponse is the response type for the Query/Account RPC method. */ export interface QueryAccountResponse { /** account defines the account of the corresponding address. */ - account?: (BaseAccount & Any) | undefined; + account?: BaseAccount | Any | undefined; } export interface QueryAccountResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; @@ -194,7 +194,7 @@ export interface QueryModuleAccountsRequestSDKType {} * Since: cosmos-sdk 0.46 */ export interface QueryModuleAccountsResponse { - accounts: (ModuleAccount & Any)[] | Any[]; + accounts: (ModuleAccount | Any)[] | Any[]; } export interface QueryModuleAccountsResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; @@ -245,7 +245,7 @@ export interface QueryModuleAccountByNameRequestSDKType { } /** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameResponse { - account?: (ModuleAccount & Any) | undefined; + account?: ModuleAccount | Any | undefined; } export interface QueryModuleAccountByNameResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts index fa504705..f572ecec 100644 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts +++ b/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts @@ -42,7 +42,7 @@ export interface GenericAuthorizationSDKType { * the provide method with expiration time. */ export interface Grant { - authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; /** * time when the grant will expire and will be pruned. If null, then the grant * doesn't have a time expiration (other conditions in `authorization` @@ -89,7 +89,7 @@ export interface GrantSDKType { export interface GrantAuthorization { granter: string; grantee: string; - authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; expiration?: Timestamp; } export interface GrantAuthorizationProtoMsg { diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts index 51d1c8ca..47085798 100644 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts +++ b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts @@ -7,7 +7,7 @@ import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; */ export interface MsgSubmitEvidence { submitter: string; - evidence?: (Any) | undefined; + evidence?: Any | undefined; } export interface MsgSubmitEvidenceProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts index b8d28877..e75e3ef6 100644 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +++ b/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts @@ -127,7 +127,7 @@ export interface PeriodicAllowanceSDKType { export interface AllowedMsgAllowance { $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; /** allowance can be any of basic and periodic fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; /** allowed_messages are the messages for which the grantee has the access. */ allowedMessages: string[]; } @@ -162,7 +162,7 @@ export interface Grant { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; } export interface GrantProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.Grant"; diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts index b298431a..b08c2786 100644 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts +++ b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts @@ -12,7 +12,7 @@ export interface MsgGrantAllowance { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; } export interface MsgGrantAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; diff --git a/packages/api/src/codegen/cosmos/gov/v1/tx.ts b/packages/api/src/codegen/cosmos/gov/v1/tx.ts index f21b8d6e..70193014 100644 --- a/packages/api/src/codegen/cosmos/gov/v1/tx.ts +++ b/packages/api/src/codegen/cosmos/gov/v1/tx.ts @@ -70,7 +70,7 @@ export interface MsgSubmitProposalResponseSDKType { */ export interface MsgExecLegacyContent { /** content is the proposal's content. */ - content?: (TextProposal & Any) | undefined; + content?: TextProposal | Any | undefined; /** authority must be the gov module address. */ authority: string; } diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts index b5b8301e..35a08ce9 100644 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts +++ b/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts @@ -246,7 +246,7 @@ export interface DepositSDKType { /** Proposal defines the core field members of a governance proposal. */ export interface Proposal { proposalId: bigint; - content?: (TextProposal & Any) | undefined; + content?: TextProposal | Any | undefined; status: ProposalStatus; /** * final_tally_result is the final tally result of the proposal. When diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts index de048345..41de5ead 100644 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts +++ b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts @@ -8,7 +8,7 @@ import { isSet } from "../../../helpers"; * proposal Content. */ export interface MsgSubmitProposal { - content?: (TextProposal & Any) | undefined; + content?: TextProposal | Any | undefined; initialDeposit: Coin[]; proposer: string; } diff --git a/packages/api/src/codegen/cosmos/group/v1/tx.ts b/packages/api/src/codegen/cosmos/group/v1/tx.ts index 5b9235a7..174e065c 100644 --- a/packages/api/src/codegen/cosmos/group/v1/tx.ts +++ b/packages/api/src/codegen/cosmos/group/v1/tx.ts @@ -252,7 +252,7 @@ export interface MsgCreateGroupPolicy { /** metadata is any arbitrary metadata attached to the group policy. */ metadata: string; /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; } export interface MsgCreateGroupPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; @@ -367,7 +367,7 @@ export interface MsgCreateGroupWithPolicy { */ groupPolicyAsAdmin: boolean; /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; } export interface MsgCreateGroupWithPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; @@ -441,7 +441,7 @@ export interface MsgUpdateGroupPolicyDecisionPolicy { /** group_policy_address is the account address of group policy. */ groupPolicyAddress: string; /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; } export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; diff --git a/packages/api/src/codegen/cosmos/group/v1/types.ts b/packages/api/src/codegen/cosmos/group/v1/types.ts index de0bc27c..18f824a0 100644 --- a/packages/api/src/codegen/cosmos/group/v1/types.ts +++ b/packages/api/src/codegen/cosmos/group/v1/types.ts @@ -545,7 +545,7 @@ export interface GroupPolicyInfo { */ version: bigint; /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; /** created_at is a timestamp specifying when a group policy was created. */ createdAt: Timestamp; } diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts index 28c33660..24557558 100644 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts +++ b/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts @@ -219,7 +219,7 @@ export interface Validator { /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ operatorAddress: string; /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey?: (Any) | undefined; + consensusPubkey?: Any | undefined; /** jailed defined whether the validator has been jailed from bonded status or not. */ jailed: boolean; /** status is the validator status (bonded/unbonding/unbonded). */ diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts index a6064a44..c312b56d 100644 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts +++ b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts @@ -14,7 +14,7 @@ export interface MsgCreateValidator { minSelfDelegation: string; delegatorAddress: string; validatorAddress: string; - pubkey?: (Any) | undefined; + pubkey?: Any | undefined; value: Coin; } export interface MsgCreateValidatorProtoMsg { diff --git a/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts index 2e39c748..3bad71a6 100644 --- a/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts +++ b/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** Module is the module config object for the cosmos.app v1 app module. */ export interface Module { } @@ -17,8 +17,9 @@ export interface ModuleAminoMsg { export interface ModuleSDKType { } export declare const Module: { - encode(_: Module, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Module; + typeUrl: string; + encode(_: Module, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Module; fromJSON(_: any): Module; toJSON(_: Module): unknown; fromPartial(_: Partial): Module; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts index cfb82359..5d154fc6 100644 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts +++ b/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * Config represents the configuration for a Cosmos SDK ABCI app. * It is intended that all state machine logic including the version of @@ -28,7 +28,7 @@ export interface ConfigProtoMsg { */ export interface ConfigAmino { /** modules are the module configurations for the app. */ - modules: ModuleConfigAmino[]; + modules?: ModuleConfigAmino[]; } export interface ConfigAminoMsg { type: "cosmos-sdk/Config"; @@ -65,7 +65,7 @@ export interface ModuleConfig { * config is the config object for the module. Module config messages should * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. */ - config: Any; + config?: Any; } export interface ModuleConfigProtoMsg { typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; @@ -85,7 +85,7 @@ export interface ModuleConfigAmino { * that the v1 module had. Note: modules should provide info on which versions * they can migrate from in the ModuleDescriptor.can_migration_from field. */ - name: string; + name?: string; /** * config is the config object for the module. Module config messages should * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. @@ -99,11 +99,12 @@ export interface ModuleConfigAminoMsg { /** ModuleConfig is a module configuration for an app. */ export interface ModuleConfigSDKType { name: string; - config: AnySDKType; + config?: AnySDKType; } export declare const Config: { - encode(message: Config, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Config; + typeUrl: string; + encode(message: Config, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Config; fromJSON(object: any): Config; toJSON(message: Config): unknown; fromPartial(object: Partial): Config; @@ -116,8 +117,9 @@ export declare const Config: { toProtoMsg(message: Config): ConfigProtoMsg; }; export declare const ModuleConfig: { - encode(message: ModuleConfig, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleConfig; + typeUrl: string; + encode(message: ModuleConfig, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleConfig; fromJSON(object: any): ModuleConfig; toJSON(message: ModuleConfig): unknown; fromPartial(object: Partial): ModuleConfig; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts index 9c1204b2..bb3f836a 100644 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts +++ b/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** ModuleDescriptor describes an app module. */ export interface ModuleDescriptor { /** @@ -36,14 +36,14 @@ export interface ModuleDescriptorAmino { * module in the runtime module registry. It is required to make debugging * of configuration errors easier for users. */ - go_import: string; + go_import?: string; /** * use_package refers to a protobuf package that this module * uses and exposes to the world. In an app, only one module should "use" * or own a single protobuf package. It is assumed that the module uses * all of the .proto files in a single package. */ - use_package: PackageReferenceAmino[]; + use_package?: PackageReferenceAmino[]; /** * can_migrate_from defines which module versions this module can migrate * state from. The framework will check that one module version is able to @@ -53,7 +53,7 @@ export interface ModuleDescriptorAmino { * declares it can migrate from v1, the framework knows how to migrate * from v1 to v3, assuming all 3 module versions are registered at runtime. */ - can_migrate_from: MigrateFromInfoAmino[]; + can_migrate_from?: MigrateFromInfoAmino[]; } export interface ModuleDescriptorAminoMsg { type: "cosmos-sdk/ModuleDescriptor"; @@ -115,7 +115,7 @@ export interface PackageReferenceProtoMsg { /** PackageReference is a reference to a protobuf package used by a module. */ export interface PackageReferenceAmino { /** name is the fully-qualified name of the package. */ - name: string; + name?: string; /** * revision is the optional revision of the package that is being used. * Protobuf packages used in Cosmos should generally have a major version @@ -153,7 +153,7 @@ export interface PackageReferenceAmino { * are important good client UX * * protobuf files are changed in backwards and forwards compatible ways */ - revision: number; + revision?: number; } export interface PackageReferenceAminoMsg { type: "cosmos-sdk/PackageReference"; @@ -188,7 +188,7 @@ export interface MigrateFromInfoAmino { * module is the fully-qualified protobuf name of the module config object * for the previous module version, ex: "cosmos.group.module.v1.Module". */ - module: string; + module?: string; } export interface MigrateFromInfoAminoMsg { type: "cosmos-sdk/MigrateFromInfo"; @@ -202,8 +202,9 @@ export interface MigrateFromInfoSDKType { module: string; } export declare const ModuleDescriptor: { - encode(message: ModuleDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleDescriptor; + typeUrl: string; + encode(message: ModuleDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor; fromJSON(object: any): ModuleDescriptor; toJSON(message: ModuleDescriptor): unknown; fromPartial(object: Partial): ModuleDescriptor; @@ -216,8 +217,9 @@ export declare const ModuleDescriptor: { toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg; }; export declare const PackageReference: { - encode(message: PackageReference, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PackageReference; + typeUrl: string; + encode(message: PackageReference, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PackageReference; fromJSON(object: any): PackageReference; toJSON(message: PackageReference): unknown; fromPartial(object: Partial): PackageReference; @@ -230,8 +232,9 @@ export declare const PackageReference: { toProtoMsg(message: PackageReference): PackageReferenceProtoMsg; }; export declare const MigrateFromInfo: { - encode(message: MigrateFromInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MigrateFromInfo; + typeUrl: string; + encode(message: MigrateFromInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo; fromJSON(object: any): MigrateFromInfo; toJSON(message: MigrateFromInfo): unknown; fromPartial(object: Partial): MigrateFromInfo; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts index 772a7c2a..678064f7 100644 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts +++ b/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts @@ -1,5 +1,5 @@ import { Config, ConfigAmino, ConfigSDKType } from "./config"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryConfigRequest is the Query/Config request type. */ export interface QueryConfigRequest { } @@ -20,7 +20,7 @@ export interface QueryConfigRequestSDKType { /** QueryConfigRequest is the Query/Config response type. */ export interface QueryConfigResponse { /** config is the current app config. */ - config: Config; + config?: Config; } export interface QueryConfigResponseProtoMsg { typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse"; @@ -37,11 +37,12 @@ export interface QueryConfigResponseAminoMsg { } /** QueryConfigRequest is the Query/Config response type. */ export interface QueryConfigResponseSDKType { - config: ConfigSDKType; + config?: ConfigSDKType; } export declare const QueryConfigRequest: { - encode(_: QueryConfigRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigRequest; + typeUrl: string; + encode(_: QueryConfigRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigRequest; fromJSON(_: any): QueryConfigRequest; toJSON(_: QueryConfigRequest): unknown; fromPartial(_: Partial): QueryConfigRequest; @@ -54,8 +55,9 @@ export declare const QueryConfigRequest: { toProtoMsg(message: QueryConfigRequest): QueryConfigRequestProtoMsg; }; export declare const QueryConfigResponse: { - encode(message: QueryConfigResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigResponse; + typeUrl: string; + encode(message: QueryConfigResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigResponse; fromJSON(object: any): QueryConfigResponse; toJSON(message: QueryConfigResponse): unknown; fromPartial(object: Partial): QueryConfigResponse; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts index 90d4aa8a..732ab294 100644 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts +++ b/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts @@ -1,17 +1,16 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * BaseAccount defines a base account type. It contains all the necessary fields * for basic account functionality. Any custom account type should extend this * type for additional functionality (e.g. vesting). */ export interface BaseAccount { - $typeUrl?: string; + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; address: string; - pubKey: Any; - accountNumber: Long; - sequence: Long; + pubKey?: Any; + accountNumber: bigint; + sequence: bigint; } export interface BaseAccountProtoMsg { typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; @@ -23,10 +22,10 @@ export interface BaseAccountProtoMsg { * type for additional functionality (e.g. vesting). */ export interface BaseAccountAmino { - address: string; + address?: string; pub_key?: AnyAmino; - account_number: string; - sequence: string; + account_number?: string; + sequence?: string; } export interface BaseAccountAminoMsg { type: "cosmos-sdk/BaseAccount"; @@ -38,16 +37,16 @@ export interface BaseAccountAminoMsg { * type for additional functionality (e.g. vesting). */ export interface BaseAccountSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; address: string; - pub_key: AnySDKType; - account_number: Long; - sequence: Long; + pub_key?: AnySDKType; + account_number: bigint; + sequence: bigint; } /** ModuleAccount defines an account for modules that holds coins on a pool. */ export interface ModuleAccount { - $typeUrl?: string; - baseAccount: BaseAccount; + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + baseAccount?: BaseAccount; name: string; permissions: string[]; } @@ -58,8 +57,8 @@ export interface ModuleAccountProtoMsg { /** ModuleAccount defines an account for modules that holds coins on a pool. */ export interface ModuleAccountAmino { base_account?: BaseAccountAmino; - name: string; - permissions: string[]; + name?: string; + permissions?: string[]; } export interface ModuleAccountAminoMsg { type: "cosmos-sdk/ModuleAccount"; @@ -67,18 +66,18 @@ export interface ModuleAccountAminoMsg { } /** ModuleAccount defines an account for modules that holds coins on a pool. */ export interface ModuleAccountSDKType { - $typeUrl?: string; - base_account: BaseAccountSDKType; + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + base_account?: BaseAccountSDKType; name: string; permissions: string[]; } /** Params defines the parameters for the auth module. */ export interface Params { - maxMemoCharacters: Long; - txSigLimit: Long; - txSizeCostPerByte: Long; - sigVerifyCostEd25519: Long; - sigVerifyCostSecp256k1: Long; + maxMemoCharacters: bigint; + txSigLimit: bigint; + txSizeCostPerByte: bigint; + sigVerifyCostEd25519: bigint; + sigVerifyCostSecp256k1: bigint; } export interface ParamsProtoMsg { typeUrl: "/cosmos.auth.v1beta1.Params"; @@ -86,11 +85,11 @@ export interface ParamsProtoMsg { } /** Params defines the parameters for the auth module. */ export interface ParamsAmino { - max_memo_characters: string; - tx_sig_limit: string; - tx_size_cost_per_byte: string; - sig_verify_cost_ed25519: string; - sig_verify_cost_secp256k1: string; + max_memo_characters?: string; + tx_sig_limit?: string; + tx_size_cost_per_byte?: string; + sig_verify_cost_ed25519?: string; + sig_verify_cost_secp256k1?: string; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -98,15 +97,16 @@ export interface ParamsAminoMsg { } /** Params defines the parameters for the auth module. */ export interface ParamsSDKType { - max_memo_characters: Long; - tx_sig_limit: Long; - tx_size_cost_per_byte: Long; - sig_verify_cost_ed25519: Long; - sig_verify_cost_secp256k1: Long; + max_memo_characters: bigint; + tx_sig_limit: bigint; + tx_size_cost_per_byte: bigint; + sig_verify_cost_ed25519: bigint; + sig_verify_cost_secp256k1: bigint; } export declare const BaseAccount: { - encode(message: BaseAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BaseAccount; + typeUrl: string; + encode(message: BaseAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount; fromJSON(object: any): BaseAccount; toJSON(message: BaseAccount): unknown; fromPartial(object: Partial): BaseAccount; @@ -119,8 +119,9 @@ export declare const BaseAccount: { toProtoMsg(message: BaseAccount): BaseAccountProtoMsg; }; export declare const ModuleAccount: { - encode(message: ModuleAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccount; + typeUrl: string; + encode(message: ModuleAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount; fromJSON(object: any): ModuleAccount; toJSON(message: ModuleAccount): unknown; fromPartial(object: Partial): ModuleAccount; @@ -133,8 +134,9 @@ export declare const ModuleAccount: { toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts index e93accf9..65543b5f 100644 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts @@ -1,6 +1,6 @@ import { Params, ParamsAmino, ParamsSDKType } from "./auth"; import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the auth module's genesis state. */ export interface GenesisState { /** params defines all the paramaters of the module. */ @@ -17,7 +17,7 @@ export interface GenesisStateAmino { /** params defines all the paramaters of the module. */ params?: ParamsAmino; /** accounts are the accounts present at genesis. */ - accounts: AnyAmino[]; + accounts?: AnyAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -29,8 +29,9 @@ export interface GenesisStateSDKType { accounts: AnySDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts index 9fe599ff..33b1fefb 100644 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts @@ -1,8 +1,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * QueryAccountsRequest is the request type for the Query/Accounts RPC method. * @@ -10,7 +9,7 @@ import * as _m0 from "protobufjs/minimal"; */ export interface QueryAccountsRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAccountsRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; @@ -35,7 +34,7 @@ export interface QueryAccountsRequestAminoMsg { * Since: cosmos-sdk 0.43 */ export interface QueryAccountsRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAccountsResponse is the response type for the Query/Accounts RPC method. @@ -46,7 +45,7 @@ export interface QueryAccountsResponse { /** accounts are the existing accounts */ accounts: (BaseAccount & Any)[] | Any[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAccountsResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; @@ -62,7 +61,7 @@ export type QueryAccountsResponseEncoded = Omit): QueryAccountsRequest; @@ -550,8 +550,9 @@ export declare const QueryAccountsRequest: { toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg; }; export declare const QueryAccountsResponse: { - encode(message: QueryAccountsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountsResponse; + typeUrl: string; + encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; fromJSON(object: any): QueryAccountsResponse; toJSON(message: QueryAccountsResponse): unknown; fromPartial(object: Partial): QueryAccountsResponse; @@ -564,8 +565,9 @@ export declare const QueryAccountsResponse: { toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg; }; export declare const QueryAccountRequest: { - encode(message: QueryAccountRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountRequest; + typeUrl: string; + encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; fromJSON(object: any): QueryAccountRequest; toJSON(message: QueryAccountRequest): unknown; fromPartial(object: Partial): QueryAccountRequest; @@ -578,8 +580,9 @@ export declare const QueryAccountRequest: { toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg; }; export declare const QueryAccountResponse: { - encode(message: QueryAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountResponse; + typeUrl: string; + encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; fromJSON(object: any): QueryAccountResponse; toJSON(message: QueryAccountResponse): unknown; fromPartial(object: Partial): QueryAccountResponse; @@ -592,8 +595,9 @@ export declare const QueryAccountResponse: { toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -606,8 +610,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -620,8 +625,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryModuleAccountsRequest: { - encode(_: QueryModuleAccountsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsRequest; + typeUrl: string; + encode(_: QueryModuleAccountsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest; fromJSON(_: any): QueryModuleAccountsRequest; toJSON(_: QueryModuleAccountsRequest): unknown; fromPartial(_: Partial): QueryModuleAccountsRequest; @@ -634,8 +640,9 @@ export declare const QueryModuleAccountsRequest: { toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg; }; export declare const QueryModuleAccountsResponse: { - encode(message: QueryModuleAccountsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsResponse; + typeUrl: string; + encode(message: QueryModuleAccountsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse; fromJSON(object: any): QueryModuleAccountsResponse; toJSON(message: QueryModuleAccountsResponse): unknown; fromPartial(object: Partial): QueryModuleAccountsResponse; @@ -648,8 +655,9 @@ export declare const QueryModuleAccountsResponse: { toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg; }; export declare const QueryModuleAccountByNameRequest: { - encode(message: QueryModuleAccountByNameRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; + typeUrl: string; + encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; fromJSON(object: any): QueryModuleAccountByNameRequest; toJSON(message: QueryModuleAccountByNameRequest): unknown; fromPartial(object: Partial): QueryModuleAccountByNameRequest; @@ -662,8 +670,9 @@ export declare const QueryModuleAccountByNameRequest: { toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg; }; export declare const QueryModuleAccountByNameResponse: { - encode(message: QueryModuleAccountByNameResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; + typeUrl: string; + encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; fromJSON(object: any): QueryModuleAccountByNameResponse; toJSON(message: QueryModuleAccountByNameResponse): unknown; fromPartial(object: Partial): QueryModuleAccountByNameResponse; @@ -676,8 +685,9 @@ export declare const QueryModuleAccountByNameResponse: { toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg; }; export declare const Bech32PrefixRequest: { - encode(_: Bech32PrefixRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixRequest; + typeUrl: string; + encode(_: Bech32PrefixRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest; fromJSON(_: any): Bech32PrefixRequest; toJSON(_: Bech32PrefixRequest): unknown; fromPartial(_: Partial): Bech32PrefixRequest; @@ -690,8 +700,9 @@ export declare const Bech32PrefixRequest: { toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg; }; export declare const Bech32PrefixResponse: { - encode(message: Bech32PrefixResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixResponse; + typeUrl: string; + encode(message: Bech32PrefixResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse; fromJSON(object: any): Bech32PrefixResponse; toJSON(message: Bech32PrefixResponse): unknown; fromPartial(object: Partial): Bech32PrefixResponse; @@ -704,8 +715,9 @@ export declare const Bech32PrefixResponse: { toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg; }; export declare const AddressBytesToStringRequest: { - encode(message: AddressBytesToStringRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringRequest; + typeUrl: string; + encode(message: AddressBytesToStringRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest; fromJSON(object: any): AddressBytesToStringRequest; toJSON(message: AddressBytesToStringRequest): unknown; fromPartial(object: Partial): AddressBytesToStringRequest; @@ -718,8 +730,9 @@ export declare const AddressBytesToStringRequest: { toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg; }; export declare const AddressBytesToStringResponse: { - encode(message: AddressBytesToStringResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringResponse; + typeUrl: string; + encode(message: AddressBytesToStringResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse; fromJSON(object: any): AddressBytesToStringResponse; toJSON(message: AddressBytesToStringResponse): unknown; fromPartial(object: Partial): AddressBytesToStringResponse; @@ -732,8 +745,9 @@ export declare const AddressBytesToStringResponse: { toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg; }; export declare const AddressStringToBytesRequest: { - encode(message: AddressStringToBytesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesRequest; + typeUrl: string; + encode(message: AddressStringToBytesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest; fromJSON(object: any): AddressStringToBytesRequest; toJSON(message: AddressStringToBytesRequest): unknown; fromPartial(object: Partial): AddressStringToBytesRequest; @@ -746,8 +760,9 @@ export declare const AddressStringToBytesRequest: { toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg; }; export declare const AddressStringToBytesResponse: { - encode(message: AddressStringToBytesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesResponse; + typeUrl: string; + encode(message: AddressStringToBytesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse; fromJSON(object: any): AddressStringToBytesResponse; toJSON(message: AddressStringToBytesResponse): unknown; fromPartial(object: Partial): AddressStringToBytesResponse; @@ -760,8 +775,9 @@ export declare const AddressStringToBytesResponse: { toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg; }; export declare const QueryAccountAddressByIDRequest: { - encode(message: QueryAccountAddressByIDRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; + typeUrl: string; + encode(message: QueryAccountAddressByIDRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; fromJSON(object: any): QueryAccountAddressByIDRequest; toJSON(message: QueryAccountAddressByIDRequest): unknown; fromPartial(object: Partial): QueryAccountAddressByIDRequest; @@ -774,8 +790,9 @@ export declare const QueryAccountAddressByIDRequest: { toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg; }; export declare const QueryAccountAddressByIDResponse: { - encode(message: QueryAccountAddressByIDResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; + typeUrl: string; + encode(message: QueryAccountAddressByIDResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; fromJSON(object: any): QueryAccountAddressByIDResponse; toJSON(message: QueryAccountAddressByIDResponse): unknown; fromPartial(object: Partial): QueryAccountAddressByIDResponse; @@ -787,9 +804,9 @@ export declare const QueryAccountAddressByIDResponse: { toProto(message: QueryAccountAddressByIDResponse): Uint8Array; toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg; }; -export declare const AccountI_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => BaseAccount | Any; +export declare const AccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BaseAccount | Any; export declare const AccountI_FromAmino: (content: AnyAmino) => Any; export declare const AccountI_ToAmino: (content: Any) => AnyAmino; -export declare const ModuleAccountI_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => ModuleAccount | Any; +export declare const ModuleAccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ModuleAccount | Any; export declare const ModuleAccountI_FromAmino: (content: AnyAmino) => Any; export declare const ModuleAccountI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts index 5c8c3b94..edc1c862 100644 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts index 2a351b4b..b3b46283 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts @@ -1,14 +1,14 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * GenericAuthorization gives the grantee unrestricted permissions to execute * the provided method on behalf of the granter's account. */ export interface GenericAuthorization { - $typeUrl?: string; + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ msg: string; } @@ -22,7 +22,7 @@ export interface GenericAuthorizationProtoMsg { */ export interface GenericAuthorizationAmino { /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; + msg?: string; } export interface GenericAuthorizationAminoMsg { type: "cosmos-sdk/GenericAuthorization"; @@ -33,7 +33,7 @@ export interface GenericAuthorizationAminoMsg { * the provided method on behalf of the granter's account. */ export interface GenericAuthorizationSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; msg: string; } /** @@ -41,7 +41,7 @@ export interface GenericAuthorizationSDKType { * the provide method with expiration time. */ export interface Grant { - authorization: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; + authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; /** * time when the grant will expire and will be pruned. If null, then the grant * doesn't have a time expiration (other conditions in `authorization` @@ -67,7 +67,7 @@ export interface GrantAmino { * doesn't have a time expiration (other conditions in `authorization` * may apply to invalidate the grant) */ - expiration?: TimestampAmino; + expiration?: string; } export interface GrantAminoMsg { type: "cosmos-sdk/Grant"; @@ -78,7 +78,7 @@ export interface GrantAminoMsg { * the provide method with expiration time. */ export interface GrantSDKType { - authorization: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; + authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; expiration?: TimestampSDKType; } /** @@ -88,8 +88,8 @@ export interface GrantSDKType { export interface GrantAuthorization { granter: string; grantee: string; - authorization: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; - expiration: Timestamp; + authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; + expiration?: Timestamp; } export interface GrantAuthorizationProtoMsg { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; @@ -103,10 +103,10 @@ export type GrantAuthorizationEncoded = Omit): GenericAuthorization; @@ -159,8 +160,9 @@ export declare const GenericAuthorization: { toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg; }; export declare const Grant: { - encode(message: Grant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Grant; + typeUrl: string; + encode(message: Grant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Grant; fromJSON(object: any): Grant; toJSON(message: Grant): unknown; fromPartial(object: Partial): Grant; @@ -173,8 +175,9 @@ export declare const Grant: { toProtoMsg(message: Grant): GrantProtoMsg; }; export declare const GrantAuthorization: { - encode(message: GrantAuthorization, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GrantAuthorization; + typeUrl: string; + encode(message: GrantAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization; fromJSON(object: any): GrantAuthorization; toJSON(message: GrantAuthorization): unknown; fromPartial(object: Partial): GrantAuthorization; @@ -187,8 +190,9 @@ export declare const GrantAuthorization: { toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg; }; export declare const GrantQueueItem: { - encode(message: GrantQueueItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GrantQueueItem; + typeUrl: string; + encode(message: GrantQueueItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem; fromJSON(object: any): GrantQueueItem; toJSON(message: GrantQueueItem): unknown; fromPartial(object: Partial): GrantQueueItem; @@ -200,6 +204,6 @@ export declare const GrantQueueItem: { toProto(message: GrantQueueItem): Uint8Array; toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg; }; -export declare const Authorization_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => GenericAuthorization | SendAuthorization | StakeAuthorization | Any; +export declare const Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => GenericAuthorization | SendAuthorization | StakeAuthorization | Any; export declare const Authorization_FromAmino: (content: AnyAmino) => Any; export declare const Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts index 15b7550e..7ec7619c 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventGrant is emitted on Msg/Grant */ export interface EventGrant { /** Msg type URL for which an autorization is granted */ @@ -15,11 +15,11 @@ export interface EventGrantProtoMsg { /** EventGrant is emitted on Msg/Grant */ export interface EventGrantAmino { /** Msg type URL for which an autorization is granted */ - msg_type_url: string; + msg_type_url?: string; /** Granter account address */ - granter: string; + granter?: string; /** Grantee account address */ - grantee: string; + grantee?: string; } export interface EventGrantAminoMsg { type: "cosmos-sdk/EventGrant"; @@ -47,11 +47,11 @@ export interface EventRevokeProtoMsg { /** EventRevoke is emitted on Msg/Revoke */ export interface EventRevokeAmino { /** Msg type URL for which an autorization is revoked */ - msg_type_url: string; + msg_type_url?: string; /** Granter account address */ - granter: string; + granter?: string; /** Grantee account address */ - grantee: string; + grantee?: string; } export interface EventRevokeAminoMsg { type: "cosmos-sdk/EventRevoke"; @@ -64,8 +64,9 @@ export interface EventRevokeSDKType { grantee: string; } export declare const EventGrant: { - encode(message: EventGrant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventGrant; + typeUrl: string; + encode(message: EventGrant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventGrant; fromJSON(object: any): EventGrant; toJSON(message: EventGrant): unknown; fromPartial(object: Partial): EventGrant; @@ -78,8 +79,9 @@ export declare const EventGrant: { toProtoMsg(message: EventGrant): EventGrantProtoMsg; }; export declare const EventRevoke: { - encode(message: EventRevoke, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventRevoke; + typeUrl: string; + encode(message: EventRevoke, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke; fromJSON(object: any): EventRevoke; toJSON(message: EventRevoke): unknown; fromPartial(object: Partial): EventRevoke; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts index cda1e0c4..0936e1b3 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the authz module's genesis state. */ export interface GenesisState { authorization: GrantAuthorization[]; @@ -10,7 +10,7 @@ export interface GenesisStateProtoMsg { } /** GenesisState defines the authz module's genesis state. */ export interface GenesisStateAmino { - authorization: GrantAuthorizationAmino[]; + authorization?: GrantAuthorizationAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -21,8 +21,9 @@ export interface GenesisStateSDKType { authorization: GrantAuthorizationSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts index 7070a021..1ccae755 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ export interface QueryGrantsRequest { granter: string; @@ -8,7 +8,7 @@ export interface QueryGrantsRequest { /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ msgTypeUrl: string; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; @@ -16,10 +16,10 @@ export interface QueryGrantsRequestProtoMsg { } /** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ export interface QueryGrantsRequestAmino { - granter: string; - grantee: string; + granter?: string; + grantee?: string; /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msg_type_url: string; + msg_type_url?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -32,14 +32,14 @@ export interface QueryGrantsRequestSDKType { granter: string; grantee: string; msg_type_url: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ export interface QueryGrantsResponse { /** authorizations is a list of grants granted for grantee by granter. */ grants: Grant[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; @@ -48,7 +48,7 @@ export interface QueryGrantsResponseProtoMsg { /** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ export interface QueryGrantsResponseAmino { /** authorizations is a list of grants granted for grantee by granter. */ - grants: GrantAmino[]; + grants?: GrantAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -59,13 +59,13 @@ export interface QueryGrantsResponseAminoMsg { /** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ export interface QueryGrantsResponseSDKType { grants: GrantSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsRequest { granter: string; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGranterGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; @@ -73,7 +73,7 @@ export interface QueryGranterGrantsRequestProtoMsg { } /** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsRequestAmino { - granter: string; + granter?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -84,14 +84,14 @@ export interface QueryGranterGrantsRequestAminoMsg { /** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsRequestSDKType { granter: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsResponse { /** grants is a list of grants granted by the granter. */ grants: GrantAuthorization[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGranterGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; @@ -100,7 +100,7 @@ export interface QueryGranterGrantsResponseProtoMsg { /** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsResponseAmino { /** grants is a list of grants granted by the granter. */ - grants: GrantAuthorizationAmino[]; + grants?: GrantAuthorizationAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -111,13 +111,13 @@ export interface QueryGranterGrantsResponseAminoMsg { /** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ export interface QueryGranterGrantsResponseSDKType { grants: GrantAuthorizationSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ export interface QueryGranteeGrantsRequest { grantee: string; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGranteeGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; @@ -125,7 +125,7 @@ export interface QueryGranteeGrantsRequestProtoMsg { } /** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ export interface QueryGranteeGrantsRequestAmino { - grantee: string; + grantee?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -136,14 +136,14 @@ export interface QueryGranteeGrantsRequestAminoMsg { /** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ export interface QueryGranteeGrantsRequestSDKType { grantee: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ export interface QueryGranteeGrantsResponse { /** grants is a list of grants granted to the grantee. */ grants: GrantAuthorization[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGranteeGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; @@ -152,7 +152,7 @@ export interface QueryGranteeGrantsResponseProtoMsg { /** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ export interface QueryGranteeGrantsResponseAmino { /** grants is a list of grants granted to the grantee. */ - grants: GrantAuthorizationAmino[]; + grants?: GrantAuthorizationAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -163,11 +163,12 @@ export interface QueryGranteeGrantsResponseAminoMsg { /** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ export interface QueryGranteeGrantsResponseSDKType { grants: GrantAuthorizationSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryGrantsRequest: { - encode(message: QueryGrantsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsRequest; + typeUrl: string; + encode(message: QueryGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest; fromJSON(object: any): QueryGrantsRequest; toJSON(message: QueryGrantsRequest): unknown; fromPartial(object: Partial): QueryGrantsRequest; @@ -180,8 +181,9 @@ export declare const QueryGrantsRequest: { toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg; }; export declare const QueryGrantsResponse: { - encode(message: QueryGrantsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsResponse; + typeUrl: string; + encode(message: QueryGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse; fromJSON(object: any): QueryGrantsResponse; toJSON(message: QueryGrantsResponse): unknown; fromPartial(object: Partial): QueryGrantsResponse; @@ -194,8 +196,9 @@ export declare const QueryGrantsResponse: { toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg; }; export declare const QueryGranterGrantsRequest: { - encode(message: QueryGranterGrantsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsRequest; + typeUrl: string; + encode(message: QueryGranterGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest; fromJSON(object: any): QueryGranterGrantsRequest; toJSON(message: QueryGranterGrantsRequest): unknown; fromPartial(object: Partial): QueryGranterGrantsRequest; @@ -208,8 +211,9 @@ export declare const QueryGranterGrantsRequest: { toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg; }; export declare const QueryGranterGrantsResponse: { - encode(message: QueryGranterGrantsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsResponse; + typeUrl: string; + encode(message: QueryGranterGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse; fromJSON(object: any): QueryGranterGrantsResponse; toJSON(message: QueryGranterGrantsResponse): unknown; fromPartial(object: Partial): QueryGranterGrantsResponse; @@ -222,8 +226,9 @@ export declare const QueryGranterGrantsResponse: { toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg; }; export declare const QueryGranteeGrantsRequest: { - encode(message: QueryGranteeGrantsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsRequest; + typeUrl: string; + encode(message: QueryGranteeGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest; fromJSON(object: any): QueryGranteeGrantsRequest; toJSON(message: QueryGranteeGrantsRequest): unknown; fromPartial(object: Partial): QueryGranteeGrantsRequest; @@ -236,8 +241,9 @@ export declare const QueryGranteeGrantsRequest: { toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg; }; export declare const QueryGranteeGrantsResponse: { - encode(message: QueryGranteeGrantsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsResponse; + typeUrl: string; + encode(message: QueryGranteeGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse; fromJSON(object: any): QueryGranteeGrantsResponse; toJSON(message: QueryGranteeGrantsResponse): unknown; fromPartial(object: Partial): QueryGranteeGrantsResponse; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts index 7e4f0a08..9bcb87c9 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts index a0941152..8db4a936 100644 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts @@ -1,6 +1,6 @@ import { Grant, GrantAmino, GrantSDKType } from "./authz"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. @@ -19,8 +19,8 @@ export interface MsgGrantProtoMsg { * on behalf of the granter with the provided expiration time. */ export interface MsgGrantAmino { - granter: string; - grantee: string; + granter?: string; + grantee?: string; grant?: GrantAmino; } export interface MsgGrantAminoMsg { @@ -46,7 +46,7 @@ export interface MsgExecResponseProtoMsg { } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponseAmino { - results: Uint8Array[]; + results?: string[]; } export interface MsgExecResponseAminoMsg { type: "cosmos-sdk/MsgExecResponse"; @@ -88,13 +88,13 @@ export type MsgExecEncoded = Omit & { * one signer corresponding to the granter of the authorization. */ export interface MsgExecAmino { - grantee: string; + grantee?: string; /** * Authorization Msg requests to execute. Each msg must implement Authorization interface * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ - msgs: AnyAmino[]; + msgs?: AnyAmino[]; } export interface MsgExecAminoMsg { type: "cosmos-sdk/MsgExec"; @@ -144,9 +144,9 @@ export interface MsgRevokeProtoMsg { * granter's account with that has been granted to the grantee. */ export interface MsgRevokeAmino { - granter: string; - grantee: string; - msg_type_url: string; + granter?: string; + grantee?: string; + msg_type_url?: string; } export interface MsgRevokeAminoMsg { type: "cosmos-sdk/MsgRevoke"; @@ -179,8 +179,9 @@ export interface MsgRevokeResponseAminoMsg { export interface MsgRevokeResponseSDKType { } export declare const MsgGrant: { - encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrant; + typeUrl: string; + encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; fromJSON(object: any): MsgGrant; toJSON(message: MsgGrant): unknown; fromPartial(object: Partial): MsgGrant; @@ -193,8 +194,9 @@ export declare const MsgGrant: { toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; }; export declare const MsgExecResponse: { - encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; + typeUrl: string; + encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial(object: Partial): MsgExecResponse; @@ -207,8 +209,9 @@ export declare const MsgExecResponse: { toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; }; export declare const MsgExec: { - encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec; + typeUrl: string; + encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial(object: Partial): MsgExec; @@ -221,8 +224,9 @@ export declare const MsgExec: { toProtoMsg(message: MsgExec): MsgExecProtoMsg; }; export declare const MsgGrantResponse: { - encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantResponse; + typeUrl: string; + encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; fromJSON(_: any): MsgGrantResponse; toJSON(_: MsgGrantResponse): unknown; fromPartial(_: Partial): MsgGrantResponse; @@ -235,8 +239,9 @@ export declare const MsgGrantResponse: { toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg; }; export declare const MsgRevoke: { - encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevoke; + typeUrl: string; + encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; fromJSON(object: any): MsgRevoke; toJSON(message: MsgRevoke): unknown; fromPartial(object: Partial): MsgRevoke; @@ -249,8 +254,9 @@ export declare const MsgRevoke: { toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg; }; export declare const MsgRevokeResponse: { - encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeResponse; + typeUrl: string; + encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; fromJSON(_: any): MsgRevokeResponse; toJSON(_: MsgRevokeResponse): unknown; fromPartial(_: Partial): MsgRevokeResponse; @@ -262,9 +268,9 @@ export declare const MsgRevokeResponse: { toProto(message: MsgRevokeResponse): Uint8Array; toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg; }; -export declare const Sdk_Msg_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => Any; +export declare const Sdk_Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; export declare const Sdk_Msg_FromAmino: (content: AnyAmino) => Any; export declare const Sdk_Msg_ToAmino: (content: Any) => AnyAmino; -export declare const Authz_Authorization_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => Any; +export declare const Authz_Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; export declare const Authz_Authorization_FromAmino: (content: AnyAmino) => Any; export declare const Authz_Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts index 92065cfc..d6fa02e7 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts @@ -1,5 +1,5 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * SendAuthorization allows the grantee to spend up to spend_limit coins from * the granter's account. @@ -7,7 +7,7 @@ import * as _m0 from "protobufjs/minimal"; * Since: cosmos-sdk 0.43 */ export interface SendAuthorization { - $typeUrl?: string; + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; spendLimit: Coin[]; } export interface SendAuthorizationProtoMsg { @@ -21,7 +21,7 @@ export interface SendAuthorizationProtoMsg { * Since: cosmos-sdk 0.43 */ export interface SendAuthorizationAmino { - spend_limit: CoinAmino[]; + spend_limit?: CoinAmino[]; } export interface SendAuthorizationAminoMsg { type: "cosmos-sdk/SendAuthorization"; @@ -34,12 +34,13 @@ export interface SendAuthorizationAminoMsg { * Since: cosmos-sdk 0.43 */ export interface SendAuthorizationSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; spend_limit: CoinSDKType[]; } export declare const SendAuthorization: { - encode(message: SendAuthorization, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SendAuthorization; + typeUrl: string; + encode(message: SendAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization; fromJSON(object: any): SendAuthorization; toJSON(message: SendAuthorization): unknown; fromPartial(object: Partial): SendAuthorization; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts index cbe0e897..b05d4ff3 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts @@ -1,5 +1,5 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Params defines the parameters for the bank module. */ export interface Params { sendEnabled: SendEnabled[]; @@ -11,8 +11,8 @@ export interface ParamsProtoMsg { } /** Params defines the parameters for the bank module. */ export interface ParamsAmino { - send_enabled: SendEnabledAmino[]; - default_send_enabled: boolean; + send_enabled?: SendEnabledAmino[]; + default_send_enabled?: boolean; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -40,8 +40,8 @@ export interface SendEnabledProtoMsg { * sendable). */ export interface SendEnabledAmino { - denom: string; - enabled: boolean; + denom?: string; + enabled?: boolean; } export interface SendEnabledAminoMsg { type: "cosmos-sdk/SendEnabled"; @@ -66,8 +66,8 @@ export interface InputProtoMsg { } /** Input models transaction input. */ export interface InputAmino { - address: string; - coins: CoinAmino[]; + address?: string; + coins?: CoinAmino[]; } export interface InputAminoMsg { type: "cosmos-sdk/Input"; @@ -89,8 +89,8 @@ export interface OutputProtoMsg { } /** Output models transaction outputs. */ export interface OutputAmino { - address: string; - coins: CoinAmino[]; + address?: string; + coins?: CoinAmino[]; } export interface OutputAminoMsg { type: "cosmos-sdk/Output"; @@ -108,7 +108,7 @@ export interface OutputSDKType { */ /** @deprecated */ export interface Supply { - $typeUrl?: string; + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; total: Coin[]; } export interface SupplyProtoMsg { @@ -122,7 +122,7 @@ export interface SupplyProtoMsg { */ /** @deprecated */ export interface SupplyAmino { - total: CoinAmino[]; + total?: CoinAmino[]; } export interface SupplyAminoMsg { type: "cosmos-sdk/Supply"; @@ -135,7 +135,7 @@ export interface SupplyAminoMsg { */ /** @deprecated */ export interface SupplySDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; total: CoinSDKType[]; } /** @@ -166,7 +166,7 @@ export interface DenomUnitProtoMsg { */ export interface DenomUnitAmino { /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; + denom?: string; /** * exponent represents power of 10 exponent that one must * raise the base_denom to in order to equal the given DenomUnit's denom @@ -174,9 +174,9 @@ export interface DenomUnitAmino { * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with * exponent = 6, thus: 1 atom = 10^6 uatom). */ - exponent: number; + exponent?: number; /** aliases is a list of string aliases for the given denom */ - aliases: string[]; + aliases?: string[]; } export interface DenomUnitAminoMsg { type: "cosmos-sdk/DenomUnit"; @@ -242,42 +242,42 @@ export interface MetadataProtoMsg { * a basic token. */ export interface MetadataAmino { - description: string; + description?: string; /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units: DenomUnitAmino[]; + denom_units?: DenomUnitAmino[]; /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; + base?: string; /** * display indicates the suggested denom that should be * displayed in clients. */ - display: string; + display?: string; /** * name defines the name of the token (eg: Cosmos Atom) * * Since: cosmos-sdk 0.43 */ - name: string; + name?: string; /** * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can * be the same as the display. * * Since: cosmos-sdk 0.43 */ - symbol: string; + symbol?: string; /** * URI to a document (on or off-chain) that contains additional information. Optional. * * Since: cosmos-sdk 0.46 */ - uri: string; + uri?: string; /** * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that * the document didn't change. Optional. * * Since: cosmos-sdk 0.46 */ - uri_hash: string; + uri_hash?: string; } export interface MetadataAminoMsg { type: "cosmos-sdk/Metadata"; @@ -298,8 +298,9 @@ export interface MetadataSDKType { uri_hash: string; } export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; @@ -312,8 +313,9 @@ export declare const Params: { toProtoMsg(message: Params): ParamsProtoMsg; }; export declare const SendEnabled: { - encode(message: SendEnabled, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SendEnabled; + typeUrl: string; + encode(message: SendEnabled, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled; fromJSON(object: any): SendEnabled; toJSON(message: SendEnabled): unknown; fromPartial(object: Partial): SendEnabled; @@ -326,8 +328,9 @@ export declare const SendEnabled: { toProtoMsg(message: SendEnabled): SendEnabledProtoMsg; }; export declare const Input: { - encode(message: Input, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Input; + typeUrl: string; + encode(message: Input, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Input; fromJSON(object: any): Input; toJSON(message: Input): unknown; fromPartial(object: Partial): Input; @@ -340,8 +343,9 @@ export declare const Input: { toProtoMsg(message: Input): InputProtoMsg; }; export declare const Output: { - encode(message: Output, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Output; + typeUrl: string; + encode(message: Output, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Output; fromJSON(object: any): Output; toJSON(message: Output): unknown; fromPartial(object: Partial): Output; @@ -354,8 +358,9 @@ export declare const Output: { toProtoMsg(message: Output): OutputProtoMsg; }; export declare const Supply: { - encode(message: Supply, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Supply; + typeUrl: string; + encode(message: Supply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Supply; fromJSON(object: any): Supply; toJSON(message: Supply): unknown; fromPartial(object: Partial): Supply; @@ -368,8 +373,9 @@ export declare const Supply: { toProtoMsg(message: Supply): SupplyProtoMsg; }; export declare const DenomUnit: { - encode(message: DenomUnit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DenomUnit; + typeUrl: string; + encode(message: DenomUnit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit; fromJSON(object: any): DenomUnit; toJSON(message: DenomUnit): unknown; fromPartial(object: Partial): DenomUnit; @@ -382,8 +388,9 @@ export declare const DenomUnit: { toProtoMsg(message: DenomUnit): DenomUnitProtoMsg; }; export declare const Metadata: { - encode(message: Metadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Metadata; + typeUrl: string; + encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Metadata; fromJSON(object: any): Metadata; toJSON(message: Metadata): unknown; fromPartial(object: Partial): Metadata; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts index b0880066..76167c70 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts @@ -1,6 +1,6 @@ import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the bank module's genesis state. */ export interface GenesisState { /** params defines all the paramaters of the module. */ @@ -24,14 +24,14 @@ export interface GenesisStateAmino { /** params defines all the paramaters of the module. */ params?: ParamsAmino; /** balances is an array containing the balances of all the accounts. */ - balances: BalanceAmino[]; + balances?: BalanceAmino[]; /** * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. */ - supply: CoinAmino[]; + supply?: CoinAmino[]; /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata: MetadataAmino[]; + denom_metadata?: MetadataAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -64,9 +64,9 @@ export interface BalanceProtoMsg { */ export interface BalanceAmino { /** address is the address of the balance holder. */ - address: string; + address?: string; /** coins defines the different coins this balance holds. */ - coins: CoinAmino[]; + coins?: CoinAmino[]; } export interface BalanceAminoMsg { type: "cosmos-sdk/Balance"; @@ -81,8 +81,9 @@ export interface BalanceSDKType { coins: CoinSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -95,8 +96,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const Balance: { - encode(message: Balance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Balance; + typeUrl: string; + encode(message: Balance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Balance; fromJSON(object: any): Balance; toJSON(message: Balance): unknown; fromPartial(object: Partial): Balance; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts index 5a48bcb7..287626f0 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts @@ -1,7 +1,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ export interface QueryBalanceRequest { /** address is the address to query balances for. */ @@ -16,9 +16,9 @@ export interface QueryBalanceRequestProtoMsg { /** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ export interface QueryBalanceRequestAmino { /** address is the address to query balances for. */ - address: string; + address?: string; /** denom is the coin denom to query balances for. */ - denom: string; + denom?: string; } export interface QueryBalanceRequestAminoMsg { type: "cosmos-sdk/QueryBalanceRequest"; @@ -32,7 +32,7 @@ export interface QueryBalanceRequestSDKType { /** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ export interface QueryBalanceResponse { /** balance is the balance of the coin. */ - balance: Coin; + balance?: Coin; } export interface QueryBalanceResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; @@ -49,14 +49,14 @@ export interface QueryBalanceResponseAminoMsg { } /** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ export interface QueryBalanceResponseSDKType { - balance: CoinSDKType; + balance?: CoinSDKType; } /** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ export interface QueryAllBalancesRequest { /** address is the address to query balances for. */ address: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllBalancesRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; @@ -65,7 +65,7 @@ export interface QueryAllBalancesRequestProtoMsg { /** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ export interface QueryAllBalancesRequestAmino { /** address is the address to query balances for. */ - address: string; + address?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -76,7 +76,7 @@ export interface QueryAllBalancesRequestAminoMsg { /** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ export interface QueryAllBalancesRequestSDKType { address: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC @@ -86,7 +86,7 @@ export interface QueryAllBalancesResponse { /** balances is the balances of all the coins. */ balances: Coin[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllBalancesResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; @@ -98,7 +98,7 @@ export interface QueryAllBalancesResponseProtoMsg { */ export interface QueryAllBalancesResponseAmino { /** balances is the balances of all the coins. */ - balances: CoinAmino[]; + balances?: CoinAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -112,7 +112,7 @@ export interface QueryAllBalancesResponseAminoMsg { */ export interface QueryAllBalancesResponseSDKType { balances: CoinSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QuerySpendableBalancesRequest defines the gRPC request structure for querying @@ -124,7 +124,7 @@ export interface QuerySpendableBalancesRequest { /** address is the address to query spendable balances for. */ address: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QuerySpendableBalancesRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; @@ -138,7 +138,7 @@ export interface QuerySpendableBalancesRequestProtoMsg { */ export interface QuerySpendableBalancesRequestAmino { /** address is the address to query spendable balances for. */ - address: string; + address?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -154,7 +154,7 @@ export interface QuerySpendableBalancesRequestAminoMsg { */ export interface QuerySpendableBalancesRequestSDKType { address: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QuerySpendableBalancesResponse defines the gRPC response structure for querying @@ -166,7 +166,7 @@ export interface QuerySpendableBalancesResponse { /** balances is the spendable balances of all the coins. */ balances: Coin[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QuerySpendableBalancesResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; @@ -180,7 +180,7 @@ export interface QuerySpendableBalancesResponseProtoMsg { */ export interface QuerySpendableBalancesResponseAmino { /** balances is the spendable balances of all the coins. */ - balances: CoinAmino[]; + balances?: CoinAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -196,7 +196,7 @@ export interface QuerySpendableBalancesResponseAminoMsg { */ export interface QuerySpendableBalancesResponseSDKType { balances: CoinSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC @@ -208,7 +208,7 @@ export interface QueryTotalSupplyRequest { * * Since: cosmos-sdk 0.43 */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryTotalSupplyRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; @@ -235,7 +235,7 @@ export interface QueryTotalSupplyRequestAminoMsg { * method. */ export interface QueryTotalSupplyRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC @@ -249,7 +249,7 @@ export interface QueryTotalSupplyResponse { * * Since: cosmos-sdk 0.43 */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryTotalSupplyResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; @@ -261,7 +261,7 @@ export interface QueryTotalSupplyResponseProtoMsg { */ export interface QueryTotalSupplyResponseAmino { /** supply is the supply of the coins */ - supply: CoinAmino[]; + supply?: CoinAmino[]; /** * pagination defines the pagination in the response. * @@ -279,7 +279,7 @@ export interface QueryTotalSupplyResponseAminoMsg { */ export interface QueryTotalSupplyResponseSDKType { supply: CoinSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ export interface QuerySupplyOfRequest { @@ -293,7 +293,7 @@ export interface QuerySupplyOfRequestProtoMsg { /** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ export interface QuerySupplyOfRequestAmino { /** denom is the coin denom to query balances for. */ - denom: string; + denom?: string; } export interface QuerySupplyOfRequestAminoMsg { type: "cosmos-sdk/QuerySupplyOfRequest"; @@ -365,7 +365,7 @@ export interface QueryParamsResponseSDKType { /** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ export interface QueryDenomsMetadataRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDenomsMetadataRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; @@ -382,7 +382,7 @@ export interface QueryDenomsMetadataRequestAminoMsg { } /** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ export interface QueryDenomsMetadataRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC @@ -392,7 +392,7 @@ export interface QueryDenomsMetadataResponse { /** metadata provides the client information for all the registered tokens. */ metadatas: Metadata[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDenomsMetadataResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; @@ -404,7 +404,7 @@ export interface QueryDenomsMetadataResponseProtoMsg { */ export interface QueryDenomsMetadataResponseAmino { /** metadata provides the client information for all the registered tokens. */ - metadatas: MetadataAmino[]; + metadatas?: MetadataAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -418,7 +418,7 @@ export interface QueryDenomsMetadataResponseAminoMsg { */ export interface QueryDenomsMetadataResponseSDKType { metadatas: MetadataSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ export interface QueryDenomMetadataRequest { @@ -432,7 +432,7 @@ export interface QueryDenomMetadataRequestProtoMsg { /** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ export interface QueryDenomMetadataRequestAmino { /** denom is the coin denom to query the metadata for. */ - denom: string; + denom?: string; } export interface QueryDenomMetadataRequestAminoMsg { type: "cosmos-sdk/QueryDenomMetadataRequest"; @@ -482,7 +482,7 @@ export interface QueryDenomOwnersRequest { /** denom defines the coin denomination to query all account holders for. */ denom: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDenomOwnersRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; @@ -495,7 +495,7 @@ export interface QueryDenomOwnersRequestProtoMsg { */ export interface QueryDenomOwnersRequestAmino { /** denom defines the coin denomination to query all account holders for. */ - denom: string; + denom?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -510,7 +510,7 @@ export interface QueryDenomOwnersRequestAminoMsg { */ export interface QueryDenomOwnersRequestSDKType { denom: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * DenomOwner defines structure representing an account that owns or holds a @@ -538,7 +538,7 @@ export interface DenomOwnerProtoMsg { */ export interface DenomOwnerAmino { /** address defines the address that owns a particular denomination. */ - address: string; + address?: string; /** balance is the balance of the denominated coin for an account. */ balance?: CoinAmino; } @@ -565,7 +565,7 @@ export interface DenomOwnerSDKType { export interface QueryDenomOwnersResponse { denomOwners: DenomOwner[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDenomOwnersResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; @@ -577,7 +577,7 @@ export interface QueryDenomOwnersResponseProtoMsg { * Since: cosmos-sdk 0.46 */ export interface QueryDenomOwnersResponseAmino { - denom_owners: DenomOwnerAmino[]; + denom_owners?: DenomOwnerAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -592,11 +592,12 @@ export interface QueryDenomOwnersResponseAminoMsg { */ export interface QueryDenomOwnersResponseSDKType { denom_owners: DenomOwnerSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryBalanceRequest: { - encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; fromPartial(object: Partial): QueryBalanceRequest; @@ -609,8 +610,9 @@ export declare const QueryBalanceRequest: { toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; }; export declare const QueryBalanceResponse: { - encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; fromPartial(object: Partial): QueryBalanceResponse; @@ -623,8 +625,9 @@ export declare const QueryBalanceResponse: { toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; }; export declare const QueryAllBalancesRequest: { - encode(message: QueryAllBalancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesRequest; + typeUrl: string; + encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; fromJSON(object: any): QueryAllBalancesRequest; toJSON(message: QueryAllBalancesRequest): unknown; fromPartial(object: Partial): QueryAllBalancesRequest; @@ -637,8 +640,9 @@ export declare const QueryAllBalancesRequest: { toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; }; export declare const QueryAllBalancesResponse: { - encode(message: QueryAllBalancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesResponse; + typeUrl: string; + encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; fromJSON(object: any): QueryAllBalancesResponse; toJSON(message: QueryAllBalancesResponse): unknown; fromPartial(object: Partial): QueryAllBalancesResponse; @@ -651,8 +655,9 @@ export declare const QueryAllBalancesResponse: { toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; }; export declare const QuerySpendableBalancesRequest: { - encode(message: QuerySpendableBalancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesRequest; + typeUrl: string; + encode(message: QuerySpendableBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest; fromJSON(object: any): QuerySpendableBalancesRequest; toJSON(message: QuerySpendableBalancesRequest): unknown; fromPartial(object: Partial): QuerySpendableBalancesRequest; @@ -665,8 +670,9 @@ export declare const QuerySpendableBalancesRequest: { toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg; }; export declare const QuerySpendableBalancesResponse: { - encode(message: QuerySpendableBalancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesResponse; + typeUrl: string; + encode(message: QuerySpendableBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse; fromJSON(object: any): QuerySpendableBalancesResponse; toJSON(message: QuerySpendableBalancesResponse): unknown; fromPartial(object: Partial): QuerySpendableBalancesResponse; @@ -679,8 +685,9 @@ export declare const QuerySpendableBalancesResponse: { toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg; }; export declare const QueryTotalSupplyRequest: { - encode(message: QueryTotalSupplyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyRequest; + typeUrl: string; + encode(message: QueryTotalSupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest; fromJSON(object: any): QueryTotalSupplyRequest; toJSON(message: QueryTotalSupplyRequest): unknown; fromPartial(object: Partial): QueryTotalSupplyRequest; @@ -693,8 +700,9 @@ export declare const QueryTotalSupplyRequest: { toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg; }; export declare const QueryTotalSupplyResponse: { - encode(message: QueryTotalSupplyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyResponse; + typeUrl: string; + encode(message: QueryTotalSupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse; fromJSON(object: any): QueryTotalSupplyResponse; toJSON(message: QueryTotalSupplyResponse): unknown; fromPartial(object: Partial): QueryTotalSupplyResponse; @@ -707,8 +715,9 @@ export declare const QueryTotalSupplyResponse: { toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg; }; export declare const QuerySupplyOfRequest: { - encode(message: QuerySupplyOfRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfRequest; + typeUrl: string; + encode(message: QuerySupplyOfRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest; fromJSON(object: any): QuerySupplyOfRequest; toJSON(message: QuerySupplyOfRequest): unknown; fromPartial(object: Partial): QuerySupplyOfRequest; @@ -721,8 +730,9 @@ export declare const QuerySupplyOfRequest: { toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg; }; export declare const QuerySupplyOfResponse: { - encode(message: QuerySupplyOfResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfResponse; + typeUrl: string; + encode(message: QuerySupplyOfResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse; fromJSON(object: any): QuerySupplyOfResponse; toJSON(message: QuerySupplyOfResponse): unknown; fromPartial(object: Partial): QuerySupplyOfResponse; @@ -735,8 +745,9 @@ export declare const QuerySupplyOfResponse: { toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -749,8 +760,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -763,8 +775,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryDenomsMetadataRequest: { - encode(message: QueryDenomsMetadataRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataRequest; + typeUrl: string; + encode(message: QueryDenomsMetadataRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest; fromJSON(object: any): QueryDenomsMetadataRequest; toJSON(message: QueryDenomsMetadataRequest): unknown; fromPartial(object: Partial): QueryDenomsMetadataRequest; @@ -777,8 +790,9 @@ export declare const QueryDenomsMetadataRequest: { toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg; }; export declare const QueryDenomsMetadataResponse: { - encode(message: QueryDenomsMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataResponse; + typeUrl: string; + encode(message: QueryDenomsMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse; fromJSON(object: any): QueryDenomsMetadataResponse; toJSON(message: QueryDenomsMetadataResponse): unknown; fromPartial(object: Partial): QueryDenomsMetadataResponse; @@ -791,8 +805,9 @@ export declare const QueryDenomsMetadataResponse: { toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg; }; export declare const QueryDenomMetadataRequest: { - encode(message: QueryDenomMetadataRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataRequest; + typeUrl: string; + encode(message: QueryDenomMetadataRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest; fromJSON(object: any): QueryDenomMetadataRequest; toJSON(message: QueryDenomMetadataRequest): unknown; fromPartial(object: Partial): QueryDenomMetadataRequest; @@ -805,8 +820,9 @@ export declare const QueryDenomMetadataRequest: { toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg; }; export declare const QueryDenomMetadataResponse: { - encode(message: QueryDenomMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataResponse; + typeUrl: string; + encode(message: QueryDenomMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse; fromJSON(object: any): QueryDenomMetadataResponse; toJSON(message: QueryDenomMetadataResponse): unknown; fromPartial(object: Partial): QueryDenomMetadataResponse; @@ -819,8 +835,9 @@ export declare const QueryDenomMetadataResponse: { toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg; }; export declare const QueryDenomOwnersRequest: { - encode(message: QueryDenomOwnersRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersRequest; + typeUrl: string; + encode(message: QueryDenomOwnersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest; fromJSON(object: any): QueryDenomOwnersRequest; toJSON(message: QueryDenomOwnersRequest): unknown; fromPartial(object: Partial): QueryDenomOwnersRequest; @@ -833,8 +850,9 @@ export declare const QueryDenomOwnersRequest: { toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg; }; export declare const DenomOwner: { - encode(message: DenomOwner, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DenomOwner; + typeUrl: string; + encode(message: DenomOwner, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner; fromJSON(object: any): DenomOwner; toJSON(message: DenomOwner): unknown; fromPartial(object: Partial): DenomOwner; @@ -847,8 +865,9 @@ export declare const DenomOwner: { toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg; }; export declare const QueryDenomOwnersResponse: { - encode(message: QueryDenomOwnersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersResponse; + typeUrl: string; + encode(message: QueryDenomOwnersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse; fromJSON(object: any): QueryDenomOwnersResponse; toJSON(message: QueryDenomOwnersResponse): unknown; fromPartial(object: Partial): QueryDenomOwnersResponse; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts index 49fe501e..3ae16b28 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts index 0808a8aa..ecde06fe 100644 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts @@ -1,6 +1,6 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgSend represents a message to send coins from one account to another. */ export interface MsgSend { fromAddress: string; @@ -13,9 +13,9 @@ export interface MsgSendProtoMsg { } /** MsgSend represents a message to send coins from one account to another. */ export interface MsgSendAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; } export interface MsgSendAminoMsg { type: "cosmos-sdk/MsgSend"; @@ -55,8 +55,8 @@ export interface MsgMultiSendProtoMsg { } /** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ export interface MsgMultiSendAmino { - inputs: InputAmino[]; - outputs: OutputAmino[]; + inputs?: InputAmino[]; + outputs?: OutputAmino[]; } export interface MsgMultiSendAminoMsg { type: "cosmos-sdk/MsgMultiSend"; @@ -85,8 +85,9 @@ export interface MsgMultiSendResponseAminoMsg { export interface MsgMultiSendResponseSDKType { } export declare const MsgSend: { - encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; fromJSON(object: any): MsgSend; toJSON(message: MsgSend): unknown; fromPartial(object: Partial): MsgSend; @@ -99,8 +100,9 @@ export declare const MsgSend: { toProtoMsg(message: MsgSend): MsgSendProtoMsg; }; export declare const MsgSendResponse: { - encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; fromJSON(_: any): MsgSendResponse; toJSON(_: MsgSendResponse): unknown; fromPartial(_: Partial): MsgSendResponse; @@ -113,8 +115,9 @@ export declare const MsgSendResponse: { toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; }; export declare const MsgMultiSend: { - encode(message: MsgMultiSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSend; + typeUrl: string; + encode(message: MsgMultiSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend; fromJSON(object: any): MsgMultiSend; toJSON(message: MsgMultiSend): unknown; fromPartial(object: Partial): MsgMultiSend; @@ -127,8 +130,9 @@ export declare const MsgMultiSend: { toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg; }; export declare const MsgMultiSendResponse: { - encode(_: MsgMultiSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSendResponse; + typeUrl: string; + encode(_: MsgMultiSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse; fromJSON(_: any): MsgMultiSendResponse; toJSON(_: MsgMultiSendResponse): unknown; fromPartial(_: Partial): MsgMultiSendResponse; diff --git a/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts b/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts index 17b38e84..9665f9b8 100644 --- a/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +++ b/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts @@ -1,14 +1,13 @@ import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * TxResponse defines a structure containing relevant tx data and metadata. The * tags are stringified and the log is JSON decoded. */ export interface TxResponse { /** The block height */ - height: Long; + height: bigint; /** The transaction hash. */ txhash: string; /** Namespace for the Code */ @@ -27,11 +26,11 @@ export interface TxResponse { /** Additional information. May be non-deterministic. */ info: string; /** Amount of gas requested for transaction. */ - gasWanted: Long; + gasWanted: bigint; /** Amount of gas consumed by transaction. */ - gasUsed: Long; + gasUsed: bigint; /** The request transaction bytes. */ - tx: Any; + tx?: Any; /** * Time of the previous block. For heights > 1, it's the weighted median of * the timestamps of the valid votes in the block.LastCommit. For height == 1, @@ -58,28 +57,28 @@ export interface TxResponseProtoMsg { */ export interface TxResponseAmino { /** The block height */ - height: string; + height?: string; /** The transaction hash. */ - txhash: string; + txhash?: string; /** Namespace for the Code */ - codespace: string; + codespace?: string; /** Response code. */ - code: number; + code?: number; /** Result bytes, if any. */ - data: string; + data?: string; /** * The output of the application's logger (raw string). May be * non-deterministic. */ - raw_log: string; + raw_log?: string; /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLogAmino[]; + logs?: ABCIMessageLogAmino[]; /** Additional information. May be non-deterministic. */ - info: string; + info?: string; /** Amount of gas requested for transaction. */ - gas_wanted: string; + gas_wanted?: string; /** Amount of gas consumed by transaction. */ - gas_used: string; + gas_used?: string; /** The request transaction bytes. */ tx?: AnyAmino; /** @@ -87,7 +86,7 @@ export interface TxResponseAmino { * the timestamps of the valid votes in the block.LastCommit. For height == 1, * it's genesis time. */ - timestamp: string; + timestamp?: string; /** * Events defines all the events emitted by processing a transaction. Note, * these events include those emitted by processing all the messages and those @@ -96,7 +95,7 @@ export interface TxResponseAmino { * * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 */ - events: EventAmino[]; + events?: EventAmino[]; } export interface TxResponseAminoMsg { type: "cosmos-sdk/TxResponse"; @@ -107,7 +106,7 @@ export interface TxResponseAminoMsg { * tags are stringified and the log is JSON decoded. */ export interface TxResponseSDKType { - height: Long; + height: bigint; txhash: string; codespace: string; code: number; @@ -115,9 +114,9 @@ export interface TxResponseSDKType { raw_log: string; logs: ABCIMessageLogSDKType[]; info: string; - gas_wanted: Long; - gas_used: Long; - tx: AnySDKType; + gas_wanted: bigint; + gas_used: bigint; + tx?: AnySDKType; timestamp: string; events: EventSDKType[]; } @@ -138,12 +137,12 @@ export interface ABCIMessageLogProtoMsg { /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ export interface ABCIMessageLogAmino { msg_index: number; - log: string; + log?: string; /** * Events contains a slice of Event objects that were emitted during some * execution. */ - events: StringEventAmino[]; + events?: StringEventAmino[]; } export interface ABCIMessageLogAminoMsg { type: "cosmos-sdk/ABCIMessageLog"; @@ -172,8 +171,8 @@ export interface StringEventProtoMsg { * contain key/value pairs that are strings instead of raw bytes. */ export interface StringEventAmino { - type: string; - attributes: AttributeAmino[]; + type?: string; + attributes?: AttributeAmino[]; } export interface StringEventAminoMsg { type: "cosmos-sdk/StringEvent"; @@ -204,8 +203,8 @@ export interface AttributeProtoMsg { * strings instead of raw bytes. */ export interface AttributeAmino { - key: string; - value: string; + key?: string; + value?: string; } export interface AttributeAminoMsg { type: "cosmos-sdk/Attribute"; @@ -222,9 +221,9 @@ export interface AttributeSDKType { /** GasInfo defines tx execution gas context. */ export interface GasInfo { /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: Long; + gasWanted: bigint; /** GasUsed is the amount of gas actually consumed. */ - gasUsed: Long; + gasUsed: bigint; } export interface GasInfoProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; @@ -233,9 +232,9 @@ export interface GasInfoProtoMsg { /** GasInfo defines tx execution gas context. */ export interface GasInfoAmino { /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted: string; + gas_wanted?: string; /** GasUsed is the amount of gas actually consumed. */ - gas_used: string; + gas_used?: string; } export interface GasInfoAminoMsg { type: "cosmos-sdk/GasInfo"; @@ -243,8 +242,8 @@ export interface GasInfoAminoMsg { } /** GasInfo defines tx execution gas context. */ export interface GasInfoSDKType { - gas_wanted: Long; - gas_used: Long; + gas_wanted: bigint; + gas_used: bigint; } /** Result is the union of ResponseFormat and ResponseCheckTx. */ export interface Result { @@ -283,20 +282,20 @@ export interface ResultAmino { * because it also contains the Msg response typeURL. */ /** @deprecated */ - data: Uint8Array; + data?: string; /** Log contains the log information from message or handler execution. */ - log: string; + log?: string; /** * Events contains a slice of Event objects that were emitted during message * or handler execution. */ - events: EventAmino[]; + events?: EventAmino[]; /** * msg_responses contains the Msg handler responses type packed in Anys. * * Since: cosmos-sdk 0.46 */ - msg_responses: AnyAmino[]; + msg_responses?: AnyAmino[]; } export interface ResultAminoMsg { type: "cosmos-sdk/Result"; @@ -316,7 +315,7 @@ export interface ResultSDKType { */ export interface SimulationResponse { gasInfo: GasInfo; - result: Result; + result?: Result; } export interface SimulationResponseProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; @@ -340,7 +339,7 @@ export interface SimulationResponseAminoMsg { */ export interface SimulationResponseSDKType { gas_info: GasInfoSDKType; - result: ResultSDKType; + result?: ResultSDKType; } /** * MsgData defines the data returned in a Result object during message @@ -361,8 +360,8 @@ export interface MsgDataProtoMsg { */ /** @deprecated */ export interface MsgDataAmino { - msg_type: string; - data: Uint8Array; + msg_type?: string; + data?: string; } export interface MsgDataAminoMsg { type: "cosmos-sdk/MsgData"; @@ -403,13 +402,13 @@ export interface TxMsgDataProtoMsg { export interface TxMsgDataAmino { /** data field is deprecated and not populated. */ /** @deprecated */ - data: MsgDataAmino[]; + data?: MsgDataAmino[]; /** * msg_responses contains the Msg handler responses packed into Anys. * * Since: cosmos-sdk 0.46 */ - msg_responses: AnyAmino[]; + msg_responses?: AnyAmino[]; } export interface TxMsgDataAminoMsg { type: "cosmos-sdk/TxMsgData"; @@ -427,15 +426,15 @@ export interface TxMsgDataSDKType { /** SearchTxsResult defines a structure for querying txs pageable */ export interface SearchTxsResult { /** Count of all txs */ - totalCount: Long; + totalCount: bigint; /** Count of txs in current page */ - count: Long; + count: bigint; /** Index of current page, start from 1 */ - pageNumber: Long; + pageNumber: bigint; /** Count of total pages */ - pageTotal: Long; + pageTotal: bigint; /** Max count txs per page */ - limit: Long; + limit: bigint; /** List of txs in current page */ txs: TxResponse[]; } @@ -446,17 +445,17 @@ export interface SearchTxsResultProtoMsg { /** SearchTxsResult defines a structure for querying txs pageable */ export interface SearchTxsResultAmino { /** Count of all txs */ - total_count: string; + total_count?: string; /** Count of txs in current page */ - count: string; + count?: string; /** Index of current page, start from 1 */ - page_number: string; + page_number?: string; /** Count of total pages */ - page_total: string; + page_total?: string; /** Max count txs per page */ - limit: string; + limit?: string; /** List of txs in current page */ - txs: TxResponseAmino[]; + txs?: TxResponseAmino[]; } export interface SearchTxsResultAminoMsg { type: "cosmos-sdk/SearchTxsResult"; @@ -464,16 +463,17 @@ export interface SearchTxsResultAminoMsg { } /** SearchTxsResult defines a structure for querying txs pageable */ export interface SearchTxsResultSDKType { - total_count: Long; - count: Long; - page_number: Long; - page_total: Long; - limit: Long; + total_count: bigint; + count: bigint; + page_number: bigint; + page_total: bigint; + limit: bigint; txs: TxResponseSDKType[]; } export declare const TxResponse: { - encode(message: TxResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxResponse; + typeUrl: string; + encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; fromJSON(object: any): TxResponse; toJSON(message: TxResponse): unknown; fromPartial(object: Partial): TxResponse; @@ -486,8 +486,9 @@ export declare const TxResponse: { toProtoMsg(message: TxResponse): TxResponseProtoMsg; }; export declare const ABCIMessageLog: { - encode(message: ABCIMessageLog, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ABCIMessageLog; + typeUrl: string; + encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; fromJSON(object: any): ABCIMessageLog; toJSON(message: ABCIMessageLog): unknown; fromPartial(object: Partial): ABCIMessageLog; @@ -500,8 +501,9 @@ export declare const ABCIMessageLog: { toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg; }; export declare const StringEvent: { - encode(message: StringEvent, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StringEvent; + typeUrl: string; + encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; fromJSON(object: any): StringEvent; toJSON(message: StringEvent): unknown; fromPartial(object: Partial): StringEvent; @@ -514,8 +516,9 @@ export declare const StringEvent: { toProtoMsg(message: StringEvent): StringEventProtoMsg; }; export declare const Attribute: { - encode(message: Attribute, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Attribute; + typeUrl: string; + encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Attribute; fromJSON(object: any): Attribute; toJSON(message: Attribute): unknown; fromPartial(object: Partial): Attribute; @@ -528,8 +531,9 @@ export declare const Attribute: { toProtoMsg(message: Attribute): AttributeProtoMsg; }; export declare const GasInfo: { - encode(message: GasInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GasInfo; + typeUrl: string; + encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; fromJSON(object: any): GasInfo; toJSON(message: GasInfo): unknown; fromPartial(object: Partial): GasInfo; @@ -542,8 +546,9 @@ export declare const GasInfo: { toProtoMsg(message: GasInfo): GasInfoProtoMsg; }; export declare const Result: { - encode(message: Result, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Result; + typeUrl: string; + encode(message: Result, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Result; fromJSON(object: any): Result; toJSON(message: Result): unknown; fromPartial(object: Partial): Result; @@ -556,8 +561,9 @@ export declare const Result: { toProtoMsg(message: Result): ResultProtoMsg; }; export declare const SimulationResponse: { - encode(message: SimulationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SimulationResponse; + typeUrl: string; + encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; fromJSON(object: any): SimulationResponse; toJSON(message: SimulationResponse): unknown; fromPartial(object: Partial): SimulationResponse; @@ -570,8 +576,9 @@ export declare const SimulationResponse: { toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg; }; export declare const MsgData: { - encode(message: MsgData, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgData; + typeUrl: string; + encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgData; fromJSON(object: any): MsgData; toJSON(message: MsgData): unknown; fromPartial(object: Partial): MsgData; @@ -584,8 +591,9 @@ export declare const MsgData: { toProtoMsg(message: MsgData): MsgDataProtoMsg; }; export declare const TxMsgData: { - encode(message: TxMsgData, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxMsgData; + typeUrl: string; + encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; fromJSON(object: any): TxMsgData; toJSON(message: TxMsgData): unknown; fromPartial(object: Partial): TxMsgData; @@ -598,8 +606,9 @@ export declare const TxMsgData: { toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg; }; export declare const SearchTxsResult: { - encode(message: SearchTxsResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SearchTxsResult; + typeUrl: string; + encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; fromJSON(object: any): SearchTxsResult; toJSON(message: SearchTxsResult): unknown; fromPartial(object: Partial): SearchTxsResult; diff --git a/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts b/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts index 9016cf5a..23fb4bd6 100644 --- a/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +++ b/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** Pairs defines a repeated slice of Pair objects. */ export interface Pairs { pairs: Pair[]; @@ -9,7 +9,7 @@ export interface PairsProtoMsg { } /** Pairs defines a repeated slice of Pair objects. */ export interface PairsAmino { - pairs: PairAmino[]; + pairs?: PairAmino[]; } export interface PairsAminoMsg { type: "cosmos-sdk/Pairs"; @@ -30,8 +30,8 @@ export interface PairProtoMsg { } /** Pair defines a key/value bytes tuple. */ export interface PairAmino { - key: Uint8Array; - value: Uint8Array; + key?: string; + value?: string; } export interface PairAminoMsg { type: "cosmos-sdk/Pair"; @@ -43,8 +43,9 @@ export interface PairSDKType { value: Uint8Array; } export declare const Pairs: { - encode(message: Pairs, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Pairs; + typeUrl: string; + encode(message: Pairs, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Pairs; fromJSON(object: any): Pairs; toJSON(message: Pairs): unknown; fromPartial(object: Partial): Pairs; @@ -57,8 +58,9 @@ export declare const Pairs: { toProtoMsg(message: Pairs): PairsProtoMsg; }; export declare const Pair: { - encode(message: Pair, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Pair; + typeUrl: string; + encode(message: Pair, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Pair; fromJSON(object: any): Pair; toJSON(message: Pair): unknown; fromPartial(object: Partial): Pair; diff --git a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts index 0d463485..a8e4a2a3 100644 --- a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** ConfigRequest defines the request structure for the Config gRPC query. */ export interface ConfigRequest { } @@ -26,7 +26,7 @@ export interface ConfigResponseProtoMsg { } /** ConfigResponse defines the response structure for the Config gRPC query. */ export interface ConfigResponseAmino { - minimum_gas_price: string; + minimum_gas_price?: string; } export interface ConfigResponseAminoMsg { type: "cosmos-sdk/ConfigResponse"; @@ -37,8 +37,9 @@ export interface ConfigResponseSDKType { minimum_gas_price: string; } export declare const ConfigRequest: { - encode(_: ConfigRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConfigRequest; + typeUrl: string; + encode(_: ConfigRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest; fromJSON(_: any): ConfigRequest; toJSON(_: ConfigRequest): unknown; fromPartial(_: Partial): ConfigRequest; @@ -51,8 +52,9 @@ export declare const ConfigRequest: { toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg; }; export declare const ConfigResponse: { - encode(message: ConfigResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConfigResponse; + typeUrl: string; + encode(message: ConfigResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse; fromJSON(object: any): ConfigResponse; toJSON(message: ConfigResponse): unknown; fromPartial(object: Partial): ConfigResponse; diff --git a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts index b3bffa36..0855fb5b 100644 --- a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { ConfigRequest, ConfigResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts b/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts index 7569166a..c72e3a13 100644 --- a/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +++ b/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * PageRequest is to be embedded in gRPC request messages for efficient * pagination. Ex: @@ -21,12 +20,12 @@ export interface PageRequest { * It is less efficient than using key. Only one of offset or key should * be set. */ - offset: Long; + offset: bigint; /** * 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. */ - limit: Long; + limit: bigint; /** * 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. @@ -60,31 +59,31 @@ export interface PageRequestAmino { * querying the next page most efficiently. Only one of offset or key * should be set. */ - key: Uint8Array; + key?: string; /** * 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. */ - offset: string; + offset?: string; /** * 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. */ - limit: string; + limit?: string; /** * 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. */ - count_total: boolean; + count_total?: boolean; /** * reverse is set to true if results are to be returned in the descending order. * * Since: cosmos-sdk 0.43 */ - reverse: boolean; + reverse?: boolean; } export interface PageRequestAminoMsg { type: "cosmos-sdk/PageRequest"; @@ -101,8 +100,8 @@ export interface PageRequestAminoMsg { */ export interface PageRequestSDKType { key: Uint8Array; - offset: Long; - limit: Long; + offset: bigint; + limit: bigint; count_total: boolean; reverse: boolean; } @@ -126,7 +125,7 @@ export interface PageResponse { * total is total number of results available if PageRequest.count_total * was set, its value is undefined otherwise */ - total: Long; + total: bigint; } export interface PageResponseProtoMsg { typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; @@ -147,12 +146,12 @@ export interface PageResponseAmino { * query the next page most efficiently. It will be empty if * there are no more results. */ - next_key: Uint8Array; + next_key?: string; /** * total is total number of results available if PageRequest.count_total * was set, its value is undefined otherwise */ - total: string; + total?: string; } export interface PageResponseAminoMsg { type: "cosmos-sdk/PageResponse"; @@ -169,11 +168,12 @@ export interface PageResponseAminoMsg { */ export interface PageResponseSDKType { next_key: Uint8Array; - total: Long; + total: bigint; } export declare const PageRequest: { - encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest; + typeUrl: string; + encode(message: PageRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PageRequest; fromJSON(object: any): PageRequest; toJSON(message: PageRequest): unknown; fromPartial(object: Partial): PageRequest; @@ -186,8 +186,9 @@ export declare const PageRequest: { toProtoMsg(message: PageRequest): PageRequestProtoMsg; }; export declare const PageResponse: { - encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse; + typeUrl: string; + encode(message: PageResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PageResponse; fromJSON(object: any): PageResponse; toJSON(message: PageResponse): unknown; fromPartial(object: Partial): PageResponse; diff --git a/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts b/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts index 45b978f9..05c53b19 100644 --- a/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +++ b/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequest { } @@ -28,7 +28,7 @@ export interface ListAllInterfacesResponseProtoMsg { /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponseAmino { /** interface_names is an array of all the registered interfaces. */ - interface_names: string[]; + interface_names?: string[]; } export interface ListAllInterfacesResponseAminoMsg { type: "cosmos-sdk/ListAllInterfacesResponse"; @@ -56,7 +56,7 @@ export interface ListImplementationsRequestProtoMsg { */ export interface ListImplementationsRequestAmino { /** interface_name defines the interface to query the implementations for. */ - interface_name: string; + interface_name?: string; } export interface ListImplementationsRequestAminoMsg { type: "cosmos-sdk/ListImplementationsRequest"; @@ -85,7 +85,7 @@ export interface ListImplementationsResponseProtoMsg { * RPC. */ export interface ListImplementationsResponseAmino { - implementation_message_names: string[]; + implementation_message_names?: string[]; } export interface ListImplementationsResponseAminoMsg { type: "cosmos-sdk/ListImplementationsResponse"; @@ -99,8 +99,9 @@ export interface ListImplementationsResponseSDKType { implementation_message_names: string[]; } export declare const ListAllInterfacesRequest: { - encode(_: ListAllInterfacesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest; + typeUrl: string; + encode(_: ListAllInterfacesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest; fromJSON(_: any): ListAllInterfacesRequest; toJSON(_: ListAllInterfacesRequest): unknown; fromPartial(_: Partial): ListAllInterfacesRequest; @@ -113,8 +114,9 @@ export declare const ListAllInterfacesRequest: { toProtoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestProtoMsg; }; export declare const ListAllInterfacesResponse: { - encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse; + typeUrl: string; + encode(message: ListAllInterfacesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse; fromJSON(object: any): ListAllInterfacesResponse; toJSON(message: ListAllInterfacesResponse): unknown; fromPartial(object: Partial): ListAllInterfacesResponse; @@ -127,8 +129,9 @@ export declare const ListAllInterfacesResponse: { toProtoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseProtoMsg; }; export declare const ListImplementationsRequest: { - encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest; + typeUrl: string; + encode(message: ListImplementationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest; fromJSON(object: any): ListImplementationsRequest; toJSON(message: ListImplementationsRequest): unknown; fromPartial(object: Partial): ListImplementationsRequest; @@ -141,8 +144,9 @@ export declare const ListImplementationsRequest: { toProtoMsg(message: ListImplementationsRequest): ListImplementationsRequestProtoMsg; }; export declare const ListImplementationsResponse: { - encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse; + typeUrl: string; + encode(message: ListImplementationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse; fromJSON(object: any): ListImplementationsResponse; toJSON(message: ListImplementationsResponse): unknown; fromPartial(object: Partial): ListImplementationsResponse; diff --git a/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts b/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts index d4afc4a1..25485ec9 100644 --- a/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +++ b/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts @@ -1,21 +1,21 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** AppDescriptor describes a cosmos-sdk based application */ export interface AppDescriptor { /** * AuthnDescriptor provides information on how to authenticate transactions on the application * NOTE: experimental and subject to change in future releases. */ - authn: AuthnDescriptor; + authn?: AuthnDescriptor; /** chain provides the chain descriptor */ - chain: ChainDescriptor; + chain?: ChainDescriptor; /** codec provides metadata information regarding codec related types */ - codec: CodecDescriptor; + codec?: CodecDescriptor; /** configuration provides metadata information regarding the sdk.Config type */ - configuration: ConfigurationDescriptor; + configuration?: ConfigurationDescriptor; /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices: QueryServicesDescriptor; + queryServices?: QueryServicesDescriptor; /** tx provides metadata information regarding how to send transactions to the given application */ - tx: TxDescriptor; + tx?: TxDescriptor; } export interface AppDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; @@ -45,12 +45,12 @@ export interface AppDescriptorAminoMsg { } /** AppDescriptor describes a cosmos-sdk based application */ export interface AppDescriptorSDKType { - authn: AuthnDescriptorSDKType; - chain: ChainDescriptorSDKType; - codec: CodecDescriptorSDKType; - configuration: ConfigurationDescriptorSDKType; - query_services: QueryServicesDescriptorSDKType; - tx: TxDescriptorSDKType; + authn?: AuthnDescriptorSDKType; + chain?: ChainDescriptorSDKType; + codec?: CodecDescriptorSDKType; + configuration?: ConfigurationDescriptorSDKType; + query_services?: QueryServicesDescriptorSDKType; + tx?: TxDescriptorSDKType; } /** TxDescriptor describes the accepted transaction type */ export interface TxDescriptor { @@ -74,9 +74,9 @@ export interface TxDescriptorAmino { * it is not meant to support polymorphism of transaction types, it is supposed to be used by * reflection clients to understand if they can handle a specific transaction type in an application. */ - fullname: string; + fullname?: string; /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptorAmino[]; + msgs?: MsgDescriptorAmino[]; } export interface TxDescriptorAminoMsg { type: "cosmos-sdk/TxDescriptor"; @@ -105,7 +105,7 @@ export interface AuthnDescriptorProtoMsg { */ export interface AuthnDescriptorAmino { /** sign_modes defines the supported signature algorithm */ - sign_modes: SigningModeDescriptorAmino[]; + sign_modes?: SigningModeDescriptorAmino[]; } export interface AuthnDescriptorAminoMsg { type: "cosmos-sdk/AuthnDescriptor"; @@ -147,14 +147,14 @@ export interface SigningModeDescriptorProtoMsg { */ export interface SigningModeDescriptorAmino { /** name defines the unique name of the signing mode */ - name: string; + name?: string; /** number is the unique int32 identifier for the sign_mode enum */ - number: number; + number?: number; /** * authn_info_provider_method_fullname defines the fullname of the method to call to get * the metadata required to authenticate using the provided sign_modes */ - authn_info_provider_method_fullname: string; + authn_info_provider_method_fullname?: string; } export interface SigningModeDescriptorAminoMsg { type: "cosmos-sdk/SigningModeDescriptor"; @@ -183,7 +183,7 @@ export interface ChainDescriptorProtoMsg { /** ChainDescriptor describes chain information of the application */ export interface ChainDescriptorAmino { /** id is the chain id */ - id: string; + id?: string; } export interface ChainDescriptorAminoMsg { type: "cosmos-sdk/ChainDescriptor"; @@ -205,7 +205,7 @@ export interface CodecDescriptorProtoMsg { /** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ export interface CodecDescriptorAmino { /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptorAmino[]; + interfaces?: InterfaceDescriptorAmino[]; } export interface CodecDescriptorAminoMsg { type: "cosmos-sdk/CodecDescriptor"; @@ -234,14 +234,14 @@ export interface InterfaceDescriptorProtoMsg { /** InterfaceDescriptor describes the implementation of an interface */ export interface InterfaceDescriptorAmino { /** fullname is the name of the interface */ - fullname: string; + fullname?: string; /** * interface_accepting_messages contains information regarding the proto messages which contain the interface as * google.protobuf.Any field */ - interface_accepting_messages: InterfaceAcceptingMessageDescriptorAmino[]; + interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers: InterfaceImplementerDescriptorAmino[]; + interface_implementers?: InterfaceImplementerDescriptorAmino[]; } export interface InterfaceDescriptorAminoMsg { type: "cosmos-sdk/InterfaceDescriptor"; @@ -272,14 +272,14 @@ export interface InterfaceImplementerDescriptorProtoMsg { /** InterfaceImplementerDescriptor describes an interface implementer */ export interface InterfaceImplementerDescriptorAmino { /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; + fullname?: string; /** * type_url defines the type URL used when marshalling the type as any * this is required so we can provide type safe google.protobuf.Any marshalling and * unmarshalling, making sure that we don't accept just 'any' type * in our interface fields */ - type_url: string; + type_url?: string; } export interface InterfaceImplementerDescriptorAminoMsg { type: "cosmos-sdk/InterfaceImplementerDescriptor"; @@ -314,13 +314,13 @@ export interface InterfaceAcceptingMessageDescriptorProtoMsg { */ export interface InterfaceAcceptingMessageDescriptorAmino { /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; + fullname?: string; /** * field_descriptor_names is a list of the protobuf name (not fullname) of the field * which contains the interface as google.protobuf.Any (the interface is the same, but * it can be in multiple fields of the same proto message) */ - field_descriptor_names: string[]; + field_descriptor_names?: string[]; } export interface InterfaceAcceptingMessageDescriptorAminoMsg { type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; @@ -346,7 +346,7 @@ export interface ConfigurationDescriptorProtoMsg { /** ConfigurationDescriptor contains metadata information on the sdk.Config */ export interface ConfigurationDescriptorAmino { /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix: string; + bech32_account_address_prefix?: string; } export interface ConfigurationDescriptorAminoMsg { type: "cosmos-sdk/ConfigurationDescriptor"; @@ -368,7 +368,7 @@ export interface MsgDescriptorProtoMsg { /** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ export interface MsgDescriptorAmino { /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url: string; + msg_type_url?: string; } export interface MsgDescriptorAminoMsg { type: "cosmos-sdk/MsgDescriptor"; @@ -398,7 +398,7 @@ export interface GetAuthnDescriptorRequestSDKType { /** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ export interface GetAuthnDescriptorResponse { /** authn describes how to authenticate to the application when sending transactions */ - authn: AuthnDescriptor; + authn?: AuthnDescriptor; } export interface GetAuthnDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; @@ -415,7 +415,7 @@ export interface GetAuthnDescriptorResponseAminoMsg { } /** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ export interface GetAuthnDescriptorResponseSDKType { - authn: AuthnDescriptorSDKType; + authn?: AuthnDescriptorSDKType; } /** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ export interface GetChainDescriptorRequest { @@ -437,7 +437,7 @@ export interface GetChainDescriptorRequestSDKType { /** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ export interface GetChainDescriptorResponse { /** chain describes application chain information */ - chain: ChainDescriptor; + chain?: ChainDescriptor; } export interface GetChainDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; @@ -454,7 +454,7 @@ export interface GetChainDescriptorResponseAminoMsg { } /** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ export interface GetChainDescriptorResponseSDKType { - chain: ChainDescriptorSDKType; + chain?: ChainDescriptorSDKType; } /** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ export interface GetCodecDescriptorRequest { @@ -476,7 +476,7 @@ export interface GetCodecDescriptorRequestSDKType { /** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ export interface GetCodecDescriptorResponse { /** codec describes the application codec such as registered interfaces and implementations */ - codec: CodecDescriptor; + codec?: CodecDescriptor; } export interface GetCodecDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; @@ -493,7 +493,7 @@ export interface GetCodecDescriptorResponseAminoMsg { } /** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ export interface GetCodecDescriptorResponseSDKType { - codec: CodecDescriptorSDKType; + codec?: CodecDescriptorSDKType; } /** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorRequest { @@ -515,7 +515,7 @@ export interface GetConfigurationDescriptorRequestSDKType { /** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorResponse { /** config describes the application's sdk.Config */ - config: ConfigurationDescriptor; + config?: ConfigurationDescriptor; } export interface GetConfigurationDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; @@ -532,7 +532,7 @@ export interface GetConfigurationDescriptorResponseAminoMsg { } /** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorResponseSDKType { - config: ConfigurationDescriptorSDKType; + config?: ConfigurationDescriptorSDKType; } /** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorRequest { @@ -554,7 +554,7 @@ export interface GetQueryServicesDescriptorRequestSDKType { /** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorResponse { /** queries provides information on the available queryable services */ - queries: QueryServicesDescriptor; + queries?: QueryServicesDescriptor; } export interface GetQueryServicesDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; @@ -571,7 +571,7 @@ export interface GetQueryServicesDescriptorResponseAminoMsg { } /** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorResponseSDKType { - queries: QueryServicesDescriptorSDKType; + queries?: QueryServicesDescriptorSDKType; } /** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ export interface GetTxDescriptorRequest { @@ -596,7 +596,7 @@ export interface GetTxDescriptorResponse { * tx provides information on msgs that can be forwarded to the application * alongside the accepted transaction protobuf type */ - tx: TxDescriptor; + tx?: TxDescriptor; } export interface GetTxDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; @@ -616,7 +616,7 @@ export interface GetTxDescriptorResponseAminoMsg { } /** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ export interface GetTxDescriptorResponseSDKType { - tx: TxDescriptorSDKType; + tx?: TxDescriptorSDKType; } /** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ export interface QueryServicesDescriptor { @@ -630,7 +630,7 @@ export interface QueryServicesDescriptorProtoMsg { /** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ export interface QueryServicesDescriptorAmino { /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services: QueryServiceDescriptorAmino[]; + query_services?: QueryServiceDescriptorAmino[]; } export interface QueryServicesDescriptorAminoMsg { type: "cosmos-sdk/QueryServicesDescriptor"; @@ -656,11 +656,11 @@ export interface QueryServiceDescriptorProtoMsg { /** QueryServiceDescriptor describes a cosmos-sdk queryable service */ export interface QueryServiceDescriptorAmino { /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; + fullname?: string; /** is_module describes if this service is actually exposed by an application's module */ - is_module: boolean; + is_module?: boolean; /** methods provides a list of query service methods */ - methods: QueryMethodDescriptorAmino[]; + methods?: QueryMethodDescriptorAmino[]; } export interface QueryServiceDescriptorAminoMsg { type: "cosmos-sdk/QueryServiceDescriptor"; @@ -697,12 +697,12 @@ export interface QueryMethodDescriptorProtoMsg { */ export interface QueryMethodDescriptorAmino { /** name is the protobuf name (not fullname) of the method */ - name: string; + name?: string; /** * full_query_path is the path that can be used to query * this method via tendermint abci.Query */ - full_query_path: string; + full_query_path?: string; } export interface QueryMethodDescriptorAminoMsg { type: "cosmos-sdk/QueryMethodDescriptor"; @@ -718,8 +718,9 @@ export interface QueryMethodDescriptorSDKType { full_query_path: string; } export declare const AppDescriptor: { - encode(message: AppDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AppDescriptor; + typeUrl: string; + encode(message: AppDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor; fromJSON(object: any): AppDescriptor; toJSON(message: AppDescriptor): unknown; fromPartial(object: Partial): AppDescriptor; @@ -732,8 +733,9 @@ export declare const AppDescriptor: { toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg; }; export declare const TxDescriptor: { - encode(message: TxDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxDescriptor; + typeUrl: string; + encode(message: TxDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor; fromJSON(object: any): TxDescriptor; toJSON(message: TxDescriptor): unknown; fromPartial(object: Partial): TxDescriptor; @@ -746,8 +748,9 @@ export declare const TxDescriptor: { toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg; }; export declare const AuthnDescriptor: { - encode(message: AuthnDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AuthnDescriptor; + typeUrl: string; + encode(message: AuthnDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor; fromJSON(object: any): AuthnDescriptor; toJSON(message: AuthnDescriptor): unknown; fromPartial(object: Partial): AuthnDescriptor; @@ -760,8 +763,9 @@ export declare const AuthnDescriptor: { toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg; }; export declare const SigningModeDescriptor: { - encode(message: SigningModeDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SigningModeDescriptor; + typeUrl: string; + encode(message: SigningModeDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor; fromJSON(object: any): SigningModeDescriptor; toJSON(message: SigningModeDescriptor): unknown; fromPartial(object: Partial): SigningModeDescriptor; @@ -774,8 +778,9 @@ export declare const SigningModeDescriptor: { toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg; }; export declare const ChainDescriptor: { - encode(message: ChainDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ChainDescriptor; + typeUrl: string; + encode(message: ChainDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor; fromJSON(object: any): ChainDescriptor; toJSON(message: ChainDescriptor): unknown; fromPartial(object: Partial): ChainDescriptor; @@ -788,8 +793,9 @@ export declare const ChainDescriptor: { toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg; }; export declare const CodecDescriptor: { - encode(message: CodecDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CodecDescriptor; + typeUrl: string; + encode(message: CodecDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor; fromJSON(object: any): CodecDescriptor; toJSON(message: CodecDescriptor): unknown; fromPartial(object: Partial): CodecDescriptor; @@ -802,8 +808,9 @@ export declare const CodecDescriptor: { toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg; }; export declare const InterfaceDescriptor: { - encode(message: InterfaceDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceDescriptor; + typeUrl: string; + encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; fromJSON(object: any): InterfaceDescriptor; toJSON(message: InterfaceDescriptor): unknown; fromPartial(object: Partial): InterfaceDescriptor; @@ -816,8 +823,9 @@ export declare const InterfaceDescriptor: { toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; }; export declare const InterfaceImplementerDescriptor: { - encode(message: InterfaceImplementerDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceImplementerDescriptor; + typeUrl: string; + encode(message: InterfaceImplementerDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor; fromJSON(object: any): InterfaceImplementerDescriptor; toJSON(message: InterfaceImplementerDescriptor): unknown; fromPartial(object: Partial): InterfaceImplementerDescriptor; @@ -830,8 +838,9 @@ export declare const InterfaceImplementerDescriptor: { toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg; }; export declare const InterfaceAcceptingMessageDescriptor: { - encode(message: InterfaceAcceptingMessageDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; + typeUrl: string; + encode(message: InterfaceAcceptingMessageDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; fromJSON(object: any): InterfaceAcceptingMessageDescriptor; toJSON(message: InterfaceAcceptingMessageDescriptor): unknown; fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor; @@ -844,8 +853,9 @@ export declare const InterfaceAcceptingMessageDescriptor: { toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg; }; export declare const ConfigurationDescriptor: { - encode(message: ConfigurationDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConfigurationDescriptor; + typeUrl: string; + encode(message: ConfigurationDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor; fromJSON(object: any): ConfigurationDescriptor; toJSON(message: ConfigurationDescriptor): unknown; fromPartial(object: Partial): ConfigurationDescriptor; @@ -858,8 +868,9 @@ export declare const ConfigurationDescriptor: { toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg; }; export declare const MsgDescriptor: { - encode(message: MsgDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDescriptor; + typeUrl: string; + encode(message: MsgDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor; fromJSON(object: any): MsgDescriptor; toJSON(message: MsgDescriptor): unknown; fromPartial(object: Partial): MsgDescriptor; @@ -872,8 +883,9 @@ export declare const MsgDescriptor: { toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg; }; export declare const GetAuthnDescriptorRequest: { - encode(_: GetAuthnDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorRequest; + typeUrl: string; + encode(_: GetAuthnDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest; fromJSON(_: any): GetAuthnDescriptorRequest; toJSON(_: GetAuthnDescriptorRequest): unknown; fromPartial(_: Partial): GetAuthnDescriptorRequest; @@ -886,8 +898,9 @@ export declare const GetAuthnDescriptorRequest: { toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg; }; export declare const GetAuthnDescriptorResponse: { - encode(message: GetAuthnDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorResponse; + typeUrl: string; + encode(message: GetAuthnDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse; fromJSON(object: any): GetAuthnDescriptorResponse; toJSON(message: GetAuthnDescriptorResponse): unknown; fromPartial(object: Partial): GetAuthnDescriptorResponse; @@ -900,8 +913,9 @@ export declare const GetAuthnDescriptorResponse: { toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg; }; export declare const GetChainDescriptorRequest: { - encode(_: GetChainDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorRequest; + typeUrl: string; + encode(_: GetChainDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest; fromJSON(_: any): GetChainDescriptorRequest; toJSON(_: GetChainDescriptorRequest): unknown; fromPartial(_: Partial): GetChainDescriptorRequest; @@ -914,8 +928,9 @@ export declare const GetChainDescriptorRequest: { toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg; }; export declare const GetChainDescriptorResponse: { - encode(message: GetChainDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorResponse; + typeUrl: string; + encode(message: GetChainDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse; fromJSON(object: any): GetChainDescriptorResponse; toJSON(message: GetChainDescriptorResponse): unknown; fromPartial(object: Partial): GetChainDescriptorResponse; @@ -928,8 +943,9 @@ export declare const GetChainDescriptorResponse: { toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg; }; export declare const GetCodecDescriptorRequest: { - encode(_: GetCodecDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorRequest; + typeUrl: string; + encode(_: GetCodecDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest; fromJSON(_: any): GetCodecDescriptorRequest; toJSON(_: GetCodecDescriptorRequest): unknown; fromPartial(_: Partial): GetCodecDescriptorRequest; @@ -942,8 +958,9 @@ export declare const GetCodecDescriptorRequest: { toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg; }; export declare const GetCodecDescriptorResponse: { - encode(message: GetCodecDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorResponse; + typeUrl: string; + encode(message: GetCodecDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse; fromJSON(object: any): GetCodecDescriptorResponse; toJSON(message: GetCodecDescriptorResponse): unknown; fromPartial(object: Partial): GetCodecDescriptorResponse; @@ -956,8 +973,9 @@ export declare const GetCodecDescriptorResponse: { toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg; }; export declare const GetConfigurationDescriptorRequest: { - encode(_: GetConfigurationDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; + typeUrl: string; + encode(_: GetConfigurationDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; fromJSON(_: any): GetConfigurationDescriptorRequest; toJSON(_: GetConfigurationDescriptorRequest): unknown; fromPartial(_: Partial): GetConfigurationDescriptorRequest; @@ -970,8 +988,9 @@ export declare const GetConfigurationDescriptorRequest: { toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg; }; export declare const GetConfigurationDescriptorResponse: { - encode(message: GetConfigurationDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; + typeUrl: string; + encode(message: GetConfigurationDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; fromJSON(object: any): GetConfigurationDescriptorResponse; toJSON(message: GetConfigurationDescriptorResponse): unknown; fromPartial(object: Partial): GetConfigurationDescriptorResponse; @@ -984,8 +1003,9 @@ export declare const GetConfigurationDescriptorResponse: { toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg; }; export declare const GetQueryServicesDescriptorRequest: { - encode(_: GetQueryServicesDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; + typeUrl: string; + encode(_: GetQueryServicesDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; fromJSON(_: any): GetQueryServicesDescriptorRequest; toJSON(_: GetQueryServicesDescriptorRequest): unknown; fromPartial(_: Partial): GetQueryServicesDescriptorRequest; @@ -998,8 +1018,9 @@ export declare const GetQueryServicesDescriptorRequest: { toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg; }; export declare const GetQueryServicesDescriptorResponse: { - encode(message: GetQueryServicesDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; + typeUrl: string; + encode(message: GetQueryServicesDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; fromJSON(object: any): GetQueryServicesDescriptorResponse; toJSON(message: GetQueryServicesDescriptorResponse): unknown; fromPartial(object: Partial): GetQueryServicesDescriptorResponse; @@ -1012,8 +1033,9 @@ export declare const GetQueryServicesDescriptorResponse: { toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg; }; export declare const GetTxDescriptorRequest: { - encode(_: GetTxDescriptorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorRequest; + typeUrl: string; + encode(_: GetTxDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest; fromJSON(_: any): GetTxDescriptorRequest; toJSON(_: GetTxDescriptorRequest): unknown; fromPartial(_: Partial): GetTxDescriptorRequest; @@ -1026,8 +1048,9 @@ export declare const GetTxDescriptorRequest: { toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg; }; export declare const GetTxDescriptorResponse: { - encode(message: GetTxDescriptorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorResponse; + typeUrl: string; + encode(message: GetTxDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse; fromJSON(object: any): GetTxDescriptorResponse; toJSON(message: GetTxDescriptorResponse): unknown; fromPartial(object: Partial): GetTxDescriptorResponse; @@ -1040,8 +1063,9 @@ export declare const GetTxDescriptorResponse: { toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg; }; export declare const QueryServicesDescriptor: { - encode(message: QueryServicesDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryServicesDescriptor; + typeUrl: string; + encode(message: QueryServicesDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor; fromJSON(object: any): QueryServicesDescriptor; toJSON(message: QueryServicesDescriptor): unknown; fromPartial(object: Partial): QueryServicesDescriptor; @@ -1054,8 +1078,9 @@ export declare const QueryServicesDescriptor: { toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg; }; export declare const QueryServiceDescriptor: { - encode(message: QueryServiceDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryServiceDescriptor; + typeUrl: string; + encode(message: QueryServiceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor; fromJSON(object: any): QueryServiceDescriptor; toJSON(message: QueryServiceDescriptor): unknown; fromPartial(object: Partial): QueryServiceDescriptor; @@ -1068,8 +1093,9 @@ export declare const QueryServiceDescriptor: { toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg; }; export declare const QueryMethodDescriptor: { - encode(message: QueryMethodDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryMethodDescriptor; + typeUrl: string; + encode(message: QueryMethodDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor; fromJSON(object: any): QueryMethodDescriptor; toJSON(message: QueryMethodDescriptor): unknown; fromPartial(object: Partial): QueryMethodDescriptor; diff --git a/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts b/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts index 92828632..5c8444d9 100644 --- a/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +++ b/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts @@ -1,8 +1,7 @@ -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** Snapshot contains Tendermint state sync snapshot info. */ export interface Snapshot { - height: Long; + height: bigint; format: number; chunks: number; hash: Uint8Array; @@ -14,10 +13,10 @@ export interface SnapshotProtoMsg { } /** Snapshot contains Tendermint state sync snapshot info. */ export interface SnapshotAmino { - height: string; - format: number; - chunks: number; - hash: Uint8Array; + height?: string; + format?: number; + chunks?: number; + hash?: string; metadata?: MetadataAmino; } export interface SnapshotAminoMsg { @@ -26,7 +25,7 @@ export interface SnapshotAminoMsg { } /** Snapshot contains Tendermint state sync snapshot info. */ export interface SnapshotSDKType { - height: Long; + height: bigint; format: number; chunks: number; hash: Uint8Array; @@ -44,7 +43,7 @@ export interface MetadataProtoMsg { /** Metadata contains SDK-specific snapshot metadata. */ export interface MetadataAmino { /** SHA-256 chunk hashes */ - chunk_hashes: Uint8Array[]; + chunk_hashes?: string[]; } export interface MetadataAminoMsg { type: "cosmos-sdk/Metadata"; @@ -119,7 +118,7 @@ export interface SnapshotStoreItemProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotStoreItemAmino { - name: string; + name?: string; } export interface SnapshotStoreItemAminoMsg { type: "cosmos-sdk/SnapshotStoreItem"; @@ -142,7 +141,7 @@ export interface SnapshotIAVLItem { key: Uint8Array; value: Uint8Array; /** version is block height */ - version: Long; + version: bigint; /** height is depth of the tree. */ height: number; } @@ -156,12 +155,12 @@ export interface SnapshotIAVLItemProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotIAVLItemAmino { - key: Uint8Array; - value: Uint8Array; + key?: string; + value?: string; /** version is block height */ - version: string; + version?: string; /** height is depth of the tree. */ - height: number; + height?: number; } export interface SnapshotIAVLItemAminoMsg { type: "cosmos-sdk/SnapshotIAVLItem"; @@ -175,7 +174,7 @@ export interface SnapshotIAVLItemAminoMsg { export interface SnapshotIAVLItemSDKType { key: Uint8Array; value: Uint8Array; - version: Long; + version: bigint; height: number; } /** @@ -197,8 +196,8 @@ export interface SnapshotExtensionMetaProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotExtensionMetaAmino { - name: string; - format: number; + name?: string; + format?: number; } export interface SnapshotExtensionMetaAminoMsg { type: "cosmos-sdk/SnapshotExtensionMeta"; @@ -231,7 +230,7 @@ export interface SnapshotExtensionPayloadProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotExtensionPayloadAmino { - payload: Uint8Array; + payload?: string; } export interface SnapshotExtensionPayloadAminoMsg { type: "cosmos-sdk/SnapshotExtensionPayload"; @@ -264,8 +263,8 @@ export interface SnapshotKVItemProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotKVItemAmino { - key: Uint8Array; - value: Uint8Array; + key?: string; + value?: string; } export interface SnapshotKVItemAminoMsg { type: "cosmos-sdk/SnapshotKVItem"; @@ -298,7 +297,7 @@ export interface SnapshotSchemaProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SnapshotSchemaAmino { - keys: Uint8Array[]; + keys?: string[]; } export interface SnapshotSchemaAminoMsg { type: "cosmos-sdk/SnapshotSchema"; @@ -313,8 +312,9 @@ export interface SnapshotSchemaSDKType { keys: Uint8Array[]; } export declare const Snapshot: { - encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot; + typeUrl: string; + encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; fromJSON(object: any): Snapshot; toJSON(message: Snapshot): unknown; fromPartial(object: Partial): Snapshot; @@ -327,8 +327,9 @@ export declare const Snapshot: { toProtoMsg(message: Snapshot): SnapshotProtoMsg; }; export declare const Metadata: { - encode(message: Metadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Metadata; + typeUrl: string; + encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Metadata; fromJSON(object: any): Metadata; toJSON(message: Metadata): unknown; fromPartial(object: Partial): Metadata; @@ -341,8 +342,9 @@ export declare const Metadata: { toProtoMsg(message: Metadata): MetadataProtoMsg; }; export declare const SnapshotItem: { - encode(message: SnapshotItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotItem; + typeUrl: string; + encode(message: SnapshotItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotItem; fromJSON(object: any): SnapshotItem; toJSON(message: SnapshotItem): unknown; fromPartial(object: Partial): SnapshotItem; @@ -355,8 +357,9 @@ export declare const SnapshotItem: { toProtoMsg(message: SnapshotItem): SnapshotItemProtoMsg; }; export declare const SnapshotStoreItem: { - encode(message: SnapshotStoreItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotStoreItem; + typeUrl: string; + encode(message: SnapshotStoreItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotStoreItem; fromJSON(object: any): SnapshotStoreItem; toJSON(message: SnapshotStoreItem): unknown; fromPartial(object: Partial): SnapshotStoreItem; @@ -369,8 +372,9 @@ export declare const SnapshotStoreItem: { toProtoMsg(message: SnapshotStoreItem): SnapshotStoreItemProtoMsg; }; export declare const SnapshotIAVLItem: { - encode(message: SnapshotIAVLItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotIAVLItem; + typeUrl: string; + encode(message: SnapshotIAVLItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotIAVLItem; fromJSON(object: any): SnapshotIAVLItem; toJSON(message: SnapshotIAVLItem): unknown; fromPartial(object: Partial): SnapshotIAVLItem; @@ -383,8 +387,9 @@ export declare const SnapshotIAVLItem: { toProtoMsg(message: SnapshotIAVLItem): SnapshotIAVLItemProtoMsg; }; export declare const SnapshotExtensionMeta: { - encode(message: SnapshotExtensionMeta, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionMeta; + typeUrl: string; + encode(message: SnapshotExtensionMeta, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionMeta; fromJSON(object: any): SnapshotExtensionMeta; toJSON(message: SnapshotExtensionMeta): unknown; fromPartial(object: Partial): SnapshotExtensionMeta; @@ -397,8 +402,9 @@ export declare const SnapshotExtensionMeta: { toProtoMsg(message: SnapshotExtensionMeta): SnapshotExtensionMetaProtoMsg; }; export declare const SnapshotExtensionPayload: { - encode(message: SnapshotExtensionPayload, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionPayload; + typeUrl: string; + encode(message: SnapshotExtensionPayload, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionPayload; fromJSON(object: any): SnapshotExtensionPayload; toJSON(message: SnapshotExtensionPayload): unknown; fromPartial(object: Partial): SnapshotExtensionPayload; @@ -411,8 +417,9 @@ export declare const SnapshotExtensionPayload: { toProtoMsg(message: SnapshotExtensionPayload): SnapshotExtensionPayloadProtoMsg; }; export declare const SnapshotKVItem: { - encode(message: SnapshotKVItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotKVItem; + typeUrl: string; + encode(message: SnapshotKVItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotKVItem; fromJSON(object: any): SnapshotKVItem; toJSON(message: SnapshotKVItem): unknown; fromPartial(object: Partial): SnapshotKVItem; @@ -425,8 +432,9 @@ export declare const SnapshotKVItem: { toProtoMsg(message: SnapshotKVItem): SnapshotKVItemProtoMsg; }; export declare const SnapshotSchema: { - encode(message: SnapshotSchema, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotSchema; + typeUrl: string; + encode(message: SnapshotSchema, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SnapshotSchema; fromJSON(object: any): SnapshotSchema; toJSON(message: SnapshotSchema): unknown; fromPartial(object: Partial): SnapshotSchema; diff --git a/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts b/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts index 603d5ce1..d407e8d1 100644 --- a/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +++ b/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts @@ -1,11 +1,10 @@ -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * CommitInfo defines commit information used by the multi-store when committing * a version/height. */ export interface CommitInfo { - version: Long; + version: bigint; storeInfos: StoreInfo[]; } export interface CommitInfoProtoMsg { @@ -17,8 +16,8 @@ export interface CommitInfoProtoMsg { * a version/height. */ export interface CommitInfoAmino { - version: string; - store_infos: StoreInfoAmino[]; + version?: string; + store_infos?: StoreInfoAmino[]; } export interface CommitInfoAminoMsg { type: "cosmos-sdk/CommitInfo"; @@ -29,7 +28,7 @@ export interface CommitInfoAminoMsg { * a version/height. */ export interface CommitInfoSDKType { - version: Long; + version: bigint; store_infos: StoreInfoSDKType[]; } /** @@ -49,7 +48,7 @@ export interface StoreInfoProtoMsg { * between a store name and the commit ID. */ export interface StoreInfoAmino { - name: string; + name?: string; commit_id?: CommitIDAmino; } export interface StoreInfoAminoMsg { @@ -69,7 +68,7 @@ export interface StoreInfoSDKType { * committed. */ export interface CommitID { - version: Long; + version: bigint; hash: Uint8Array; } export interface CommitIDProtoMsg { @@ -81,8 +80,8 @@ export interface CommitIDProtoMsg { * committed. */ export interface CommitIDAmino { - version: string; - hash: Uint8Array; + version?: string; + hash?: string; } export interface CommitIDAminoMsg { type: "cosmos-sdk/CommitID"; @@ -93,12 +92,13 @@ export interface CommitIDAminoMsg { * committed. */ export interface CommitIDSDKType { - version: Long; + version: bigint; hash: Uint8Array; } export declare const CommitInfo: { - encode(message: CommitInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo; + typeUrl: string; + encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; fromJSON(object: any): CommitInfo; toJSON(message: CommitInfo): unknown; fromPartial(object: Partial): CommitInfo; @@ -111,8 +111,9 @@ export declare const CommitInfo: { toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; }; export declare const StoreInfo: { - encode(message: StoreInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StoreInfo; + typeUrl: string; + encode(message: StoreInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StoreInfo; fromJSON(object: any): StoreInfo; toJSON(message: StoreInfo): unknown; fromPartial(object: Partial): StoreInfo; @@ -125,8 +126,9 @@ export declare const StoreInfo: { toProtoMsg(message: StoreInfo): StoreInfoProtoMsg; }; export declare const CommitID: { - encode(message: CommitID, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitID; + typeUrl: string; + encode(message: CommitID, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitID; fromJSON(object: any): CommitID; toJSON(message: CommitID): unknown; fromPartial(object: Partial): CommitID; diff --git a/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts b/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts index 8bac8aa0..6cb28fc4 100644 --- a/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +++ b/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts @@ -1,5 +1,5 @@ import { RequestDeliverTx, RequestDeliverTxAmino, RequestDeliverTxSDKType, ResponseDeliverTx, ResponseDeliverTxAmino, ResponseDeliverTxSDKType, RequestBeginBlock, RequestBeginBlockAmino, RequestBeginBlockSDKType, ResponseBeginBlock, ResponseBeginBlockAmino, ResponseBeginBlockSDKType, RequestEndBlock, RequestEndBlockAmino, RequestEndBlockSDKType, ResponseEndBlock, ResponseEndBlockAmino, ResponseEndBlockSDKType, ResponseCommit, ResponseCommitAmino, ResponseCommitSDKType } from "../../../../tendermint/abci/types"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and @@ -28,11 +28,11 @@ export interface StoreKVPairProtoMsg { */ export interface StoreKVPairAmino { /** the store key for the KVStore this pair originates from */ - store_key: string; + store_key?: string; /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; + delete?: boolean; + key?: string; + value?: string; } export interface StoreKVPairAminoMsg { type: "cosmos-sdk/StoreKVPair"; @@ -56,12 +56,12 @@ export interface StoreKVPairSDKType { * the file streamer dump them into files together with the state changes. */ export interface BlockMetadata { - requestBeginBlock: RequestBeginBlock; - responseBeginBlock: ResponseBeginBlock; + requestBeginBlock?: RequestBeginBlock; + responseBeginBlock?: ResponseBeginBlock; deliverTxs: BlockMetadata_DeliverTx[]; - requestEndBlock: RequestEndBlock; - responseEndBlock: ResponseEndBlock; - responseCommit: ResponseCommit; + requestEndBlock?: RequestEndBlock; + responseEndBlock?: ResponseEndBlock; + responseCommit?: ResponseCommit; } export interface BlockMetadataProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.BlockMetadata"; @@ -74,7 +74,7 @@ export interface BlockMetadataProtoMsg { export interface BlockMetadataAmino { request_begin_block?: RequestBeginBlockAmino; response_begin_block?: ResponseBeginBlockAmino; - deliver_txs: BlockMetadata_DeliverTxAmino[]; + deliver_txs?: BlockMetadata_DeliverTxAmino[]; request_end_block?: RequestEndBlockAmino; response_end_block?: ResponseEndBlockAmino; response_commit?: ResponseCommitAmino; @@ -88,17 +88,17 @@ export interface BlockMetadataAminoMsg { * the file streamer dump them into files together with the state changes. */ export interface BlockMetadataSDKType { - request_begin_block: RequestBeginBlockSDKType; - response_begin_block: ResponseBeginBlockSDKType; + request_begin_block?: RequestBeginBlockSDKType; + response_begin_block?: ResponseBeginBlockSDKType; deliver_txs: BlockMetadata_DeliverTxSDKType[]; - request_end_block: RequestEndBlockSDKType; - response_end_block: ResponseEndBlockSDKType; - response_commit: ResponseCommitSDKType; + request_end_block?: RequestEndBlockSDKType; + response_end_block?: ResponseEndBlockSDKType; + response_commit?: ResponseCommitSDKType; } /** DeliverTx encapulate deliver tx request and response. */ export interface BlockMetadata_DeliverTx { - request: RequestDeliverTx; - response: ResponseDeliverTx; + request?: RequestDeliverTx; + response?: ResponseDeliverTx; } export interface BlockMetadata_DeliverTxProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.DeliverTx"; @@ -115,12 +115,13 @@ export interface BlockMetadata_DeliverTxAminoMsg { } /** DeliverTx encapulate deliver tx request and response. */ export interface BlockMetadata_DeliverTxSDKType { - request: RequestDeliverTxSDKType; - response: ResponseDeliverTxSDKType; + request?: RequestDeliverTxSDKType; + response?: ResponseDeliverTxSDKType; } export declare const StoreKVPair: { - encode(message: StoreKVPair, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StoreKVPair; + typeUrl: string; + encode(message: StoreKVPair, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StoreKVPair; fromJSON(object: any): StoreKVPair; toJSON(message: StoreKVPair): unknown; fromPartial(object: Partial): StoreKVPair; @@ -133,8 +134,9 @@ export declare const StoreKVPair: { toProtoMsg(message: StoreKVPair): StoreKVPairProtoMsg; }; export declare const BlockMetadata: { - encode(message: BlockMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BlockMetadata; + typeUrl: string; + encode(message: BlockMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata; fromJSON(object: any): BlockMetadata; toJSON(message: BlockMetadata): unknown; fromPartial(object: Partial): BlockMetadata; @@ -147,8 +149,9 @@ export declare const BlockMetadata: { toProtoMsg(message: BlockMetadata): BlockMetadataProtoMsg; }; export declare const BlockMetadata_DeliverTx: { - encode(message: BlockMetadata_DeliverTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BlockMetadata_DeliverTx; + typeUrl: string; + encode(message: BlockMetadata_DeliverTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata_DeliverTx; fromJSON(object: any): BlockMetadata_DeliverTx; toJSON(message: BlockMetadata_DeliverTx): unknown; fromPartial(object: Partial): BlockMetadata_DeliverTx; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts index 8a924107..3e3982f9 100644 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts @@ -8,16 +8,15 @@ import { Block as Block2 } from "./types"; import { BlockAmino as Block2Amino } from "./types"; import { BlockSDKType as Block2SDKType } from "./types"; import { DefaultNodeInfo, DefaultNodeInfoAmino, DefaultNodeInfoSDKType } from "../../../../tendermint/p2p/types"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * GetValidatorSetByHeightRequest is the request type for the * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightRequest { - height: Long; + height: bigint; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface GetValidatorSetByHeightRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest"; @@ -28,7 +27,7 @@ export interface GetValidatorSetByHeightRequestProtoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightRequestAmino { - height: string; + height?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -41,18 +40,18 @@ export interface GetValidatorSetByHeightRequestAminoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightRequestSDKType { - height: Long; - pagination: PageRequestSDKType; + height: bigint; + pagination?: PageRequestSDKType; } /** * GetValidatorSetByHeightResponse is the response type for the * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightResponse { - blockHeight: Long; + blockHeight: bigint; validators: Validator[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface GetValidatorSetByHeightResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse"; @@ -63,8 +62,8 @@ export interface GetValidatorSetByHeightResponseProtoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightResponseAmino { - block_height: string; - validators: ValidatorAmino[]; + block_height?: string; + validators?: ValidatorAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -77,9 +76,9 @@ export interface GetValidatorSetByHeightResponseAminoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightResponseSDKType { - block_height: Long; + block_height: bigint; validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * GetLatestValidatorSetRequest is the request type for the @@ -87,7 +86,7 @@ export interface GetValidatorSetByHeightResponseSDKType { */ export interface GetLatestValidatorSetRequest { /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface GetLatestValidatorSetRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest"; @@ -110,17 +109,17 @@ export interface GetLatestValidatorSetRequestAminoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * GetLatestValidatorSetResponse is the response type for the * Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetResponse { - blockHeight: Long; + blockHeight: bigint; validators: Validator[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface GetLatestValidatorSetResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse"; @@ -131,8 +130,8 @@ export interface GetLatestValidatorSetResponseProtoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetResponseAmino { - block_height: string; - validators: ValidatorAmino[]; + block_height?: string; + validators?: ValidatorAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -145,16 +144,16 @@ export interface GetLatestValidatorSetResponseAminoMsg { * Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetResponseSDKType { - block_height: Long; + block_height: bigint; validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** Validator is the type for the validator-set. */ export interface Validator { address: string; - pubKey: Any; - votingPower: Long; - proposerPriority: Long; + pubKey?: Any; + votingPower: bigint; + proposerPriority: bigint; } export interface ValidatorProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator"; @@ -162,10 +161,10 @@ export interface ValidatorProtoMsg { } /** Validator is the type for the validator-set. */ export interface ValidatorAmino { - address: string; + address?: string; pub_key?: AnyAmino; - voting_power: string; - proposer_priority: string; + voting_power?: string; + proposer_priority?: string; } export interface ValidatorAminoMsg { type: "cosmos-sdk/Validator"; @@ -174,16 +173,16 @@ export interface ValidatorAminoMsg { /** Validator is the type for the validator-set. */ export interface ValidatorSDKType { address: string; - pub_key: AnySDKType; - voting_power: Long; - proposer_priority: Long; + pub_key?: AnySDKType; + voting_power: bigint; + proposer_priority: bigint; } /** * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight * RPC method. */ export interface GetBlockByHeightRequest { - height: Long; + height: bigint; } export interface GetBlockByHeightRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest"; @@ -194,7 +193,7 @@ export interface GetBlockByHeightRequestProtoMsg { * RPC method. */ export interface GetBlockByHeightRequestAmino { - height: string; + height?: string; } export interface GetBlockByHeightRequestAminoMsg { type: "cosmos-sdk/GetBlockByHeightRequest"; @@ -205,18 +204,18 @@ export interface GetBlockByHeightRequestAminoMsg { * RPC method. */ export interface GetBlockByHeightRequestSDKType { - height: Long; + height: bigint; } /** * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight * RPC method. */ export interface GetBlockByHeightResponse { - blockId: BlockID; + blockId?: BlockID; /** Deprecated: please use `sdk_block` instead */ - block: Block1; + block?: Block1; /** Since: cosmos-sdk 0.47 */ - sdkBlock: Block2; + sdkBlock?: Block2; } export interface GetBlockByHeightResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse"; @@ -242,9 +241,9 @@ export interface GetBlockByHeightResponseAminoMsg { * RPC method. */ export interface GetBlockByHeightResponseSDKType { - block_id: BlockIDSDKType; - block: Block1SDKType; - sdk_block: Block2SDKType; + block_id?: BlockIDSDKType; + block?: Block1SDKType; + sdk_block?: Block2SDKType; } /** * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC @@ -277,11 +276,11 @@ export interface GetLatestBlockRequestSDKType { * method. */ export interface GetLatestBlockResponse { - blockId: BlockID; + blockId?: BlockID; /** Deprecated: please use `sdk_block` instead */ - block: Block1; + block?: Block1; /** Since: cosmos-sdk 0.47 */ - sdkBlock: Block2; + sdkBlock?: Block2; } export interface GetLatestBlockResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse"; @@ -307,9 +306,9 @@ export interface GetLatestBlockResponseAminoMsg { * method. */ export interface GetLatestBlockResponseSDKType { - block_id: BlockIDSDKType; - block: Block1SDKType; - sdk_block: Block2SDKType; + block_id?: BlockIDSDKType; + block?: Block1SDKType; + sdk_block?: Block2SDKType; } /** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ export interface GetSyncingRequest { @@ -338,7 +337,7 @@ export interface GetSyncingResponseProtoMsg { } /** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ export interface GetSyncingResponseAmino { - syncing: boolean; + syncing?: boolean; } export interface GetSyncingResponseAminoMsg { type: "cosmos-sdk/GetSyncingResponse"; @@ -370,8 +369,8 @@ export interface GetNodeInfoRequestSDKType { * method. */ export interface GetNodeInfoResponse { - defaultNodeInfo: DefaultNodeInfo; - applicationVersion: VersionInfo; + defaultNodeInfo?: DefaultNodeInfo; + applicationVersion?: VersionInfo; } export interface GetNodeInfoResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"; @@ -394,8 +393,8 @@ export interface GetNodeInfoResponseAminoMsg { * method. */ export interface GetNodeInfoResponseSDKType { - default_node_info: DefaultNodeInfoSDKType; - application_version: VersionInfoSDKType; + default_node_info?: DefaultNodeInfoSDKType; + application_version?: VersionInfoSDKType; } /** VersionInfo is the type for the GetNodeInfoResponse message. */ export interface VersionInfo { @@ -415,15 +414,15 @@ export interface VersionInfoProtoMsg { } /** VersionInfo is the type for the GetNodeInfoResponse message. */ export interface VersionInfoAmino { - name: string; - app_name: string; - version: string; - git_commit: string; - build_tags: string; - go_version: string; - build_deps: ModuleAmino[]; + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: ModuleAmino[]; /** Since: cosmos-sdk 0.43 */ - cosmos_sdk_version: string; + cosmos_sdk_version?: string; } export interface VersionInfoAminoMsg { type: "cosmos-sdk/VersionInfo"; @@ -456,11 +455,11 @@ export interface ModuleProtoMsg { /** Module is the type for VersionInfo */ export interface ModuleAmino { /** module path */ - path: string; + path?: string; /** module version */ - version: string; + version?: string; /** checksum */ - sum: string; + sum?: string; } export interface ModuleAminoMsg { type: "cosmos-sdk/Module"; @@ -476,7 +475,7 @@ export interface ModuleSDKType { export interface ABCIQueryRequest { data: Uint8Array; path: string; - height: Long; + height: bigint; prove: boolean; } export interface ABCIQueryRequestProtoMsg { @@ -485,10 +484,10 @@ export interface ABCIQueryRequestProtoMsg { } /** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ export interface ABCIQueryRequestAmino { - data: Uint8Array; - path: string; - height: string; - prove: boolean; + data?: string; + path?: string; + height?: string; + prove?: boolean; } export interface ABCIQueryRequestAminoMsg { type: "cosmos-sdk/ABCIQueryRequest"; @@ -498,7 +497,7 @@ export interface ABCIQueryRequestAminoMsg { export interface ABCIQueryRequestSDKType { data: Uint8Array; path: string; - height: Long; + height: bigint; prove: boolean; } /** @@ -514,11 +513,11 @@ export interface ABCIQueryResponse { log: string; /** nondeterministic */ info: string; - index: Long; + index: bigint; key: Uint8Array; value: Uint8Array; - proofOps: ProofOps; - height: Long; + proofOps?: ProofOps; + height: bigint; codespace: string; } export interface ABCIQueryResponseProtoMsg { @@ -533,17 +532,17 @@ export interface ABCIQueryResponseProtoMsg { * Tendermint. */ export interface ABCIQueryResponseAmino { - code: number; + code?: number; /** nondeterministic */ - log: string; + log?: string; /** nondeterministic */ - info: string; - index: string; - key: Uint8Array; - value: Uint8Array; + info?: string; + index?: string; + key?: string; + value?: string; proof_ops?: ProofOpsAmino; - height: string; - codespace: string; + height?: string; + codespace?: string; } export interface ABCIQueryResponseAminoMsg { type: "cosmos-sdk/ABCIQueryResponse"; @@ -560,11 +559,11 @@ export interface ABCIQueryResponseSDKType { code: number; log: string; info: string; - index: Long; + index: bigint; key: Uint8Array; value: Uint8Array; - proof_ops: ProofOpsSDKType; - height: Long; + proof_ops?: ProofOpsSDKType; + height: bigint; codespace: string; } /** @@ -593,9 +592,9 @@ export interface ProofOpProtoMsg { * Tendermint. */ export interface ProofOpAmino { - type: string; - key: Uint8Array; - data: Uint8Array; + type?: string; + key?: string; + data?: string; } export interface ProofOpAminoMsg { type: "cosmos-sdk/ProofOp"; @@ -634,7 +633,7 @@ export interface ProofOpsProtoMsg { * Tendermint. */ export interface ProofOpsAmino { - ops: ProofOpAmino[]; + ops?: ProofOpAmino[]; } export interface ProofOpsAminoMsg { type: "cosmos-sdk/ProofOps"; @@ -650,8 +649,9 @@ export interface ProofOpsSDKType { ops: ProofOpSDKType[]; } export declare const GetValidatorSetByHeightRequest: { - encode(message: GetValidatorSetByHeightRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightRequest; + typeUrl: string; + encode(message: GetValidatorSetByHeightRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest; fromJSON(object: any): GetValidatorSetByHeightRequest; toJSON(message: GetValidatorSetByHeightRequest): unknown; fromPartial(object: Partial): GetValidatorSetByHeightRequest; @@ -664,8 +664,9 @@ export declare const GetValidatorSetByHeightRequest: { toProtoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestProtoMsg; }; export declare const GetValidatorSetByHeightResponse: { - encode(message: GetValidatorSetByHeightResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightResponse; + typeUrl: string; + encode(message: GetValidatorSetByHeightResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse; fromJSON(object: any): GetValidatorSetByHeightResponse; toJSON(message: GetValidatorSetByHeightResponse): unknown; fromPartial(object: Partial): GetValidatorSetByHeightResponse; @@ -678,8 +679,9 @@ export declare const GetValidatorSetByHeightResponse: { toProtoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseProtoMsg; }; export declare const GetLatestValidatorSetRequest: { - encode(message: GetLatestValidatorSetRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetRequest; + typeUrl: string; + encode(message: GetLatestValidatorSetRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest; fromJSON(object: any): GetLatestValidatorSetRequest; toJSON(message: GetLatestValidatorSetRequest): unknown; fromPartial(object: Partial): GetLatestValidatorSetRequest; @@ -692,8 +694,9 @@ export declare const GetLatestValidatorSetRequest: { toProtoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestProtoMsg; }; export declare const GetLatestValidatorSetResponse: { - encode(message: GetLatestValidatorSetResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetResponse; + typeUrl: string; + encode(message: GetLatestValidatorSetResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse; fromJSON(object: any): GetLatestValidatorSetResponse; toJSON(message: GetLatestValidatorSetResponse): unknown; fromPartial(object: Partial): GetLatestValidatorSetResponse; @@ -706,8 +709,9 @@ export declare const GetLatestValidatorSetResponse: { toProtoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseProtoMsg; }; export declare const Validator: { - encode(message: Validator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Validator; + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: Partial): Validator; @@ -720,8 +724,9 @@ export declare const Validator: { toProtoMsg(message: Validator): ValidatorProtoMsg; }; export declare const GetBlockByHeightRequest: { - encode(message: GetBlockByHeightRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightRequest; + typeUrl: string; + encode(message: GetBlockByHeightRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest; fromJSON(object: any): GetBlockByHeightRequest; toJSON(message: GetBlockByHeightRequest): unknown; fromPartial(object: Partial): GetBlockByHeightRequest; @@ -734,8 +739,9 @@ export declare const GetBlockByHeightRequest: { toProtoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestProtoMsg; }; export declare const GetBlockByHeightResponse: { - encode(message: GetBlockByHeightResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightResponse; + typeUrl: string; + encode(message: GetBlockByHeightResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse; fromJSON(object: any): GetBlockByHeightResponse; toJSON(message: GetBlockByHeightResponse): unknown; fromPartial(object: Partial): GetBlockByHeightResponse; @@ -748,8 +754,9 @@ export declare const GetBlockByHeightResponse: { toProtoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseProtoMsg; }; export declare const GetLatestBlockRequest: { - encode(_: GetLatestBlockRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockRequest; + typeUrl: string; + encode(_: GetLatestBlockRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest; fromJSON(_: any): GetLatestBlockRequest; toJSON(_: GetLatestBlockRequest): unknown; fromPartial(_: Partial): GetLatestBlockRequest; @@ -762,8 +769,9 @@ export declare const GetLatestBlockRequest: { toProtoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestProtoMsg; }; export declare const GetLatestBlockResponse: { - encode(message: GetLatestBlockResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockResponse; + typeUrl: string; + encode(message: GetLatestBlockResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse; fromJSON(object: any): GetLatestBlockResponse; toJSON(message: GetLatestBlockResponse): unknown; fromPartial(object: Partial): GetLatestBlockResponse; @@ -776,8 +784,9 @@ export declare const GetLatestBlockResponse: { toProtoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseProtoMsg; }; export declare const GetSyncingRequest: { - encode(_: GetSyncingRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingRequest; + typeUrl: string; + encode(_: GetSyncingRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest; fromJSON(_: any): GetSyncingRequest; toJSON(_: GetSyncingRequest): unknown; fromPartial(_: Partial): GetSyncingRequest; @@ -790,8 +799,9 @@ export declare const GetSyncingRequest: { toProtoMsg(message: GetSyncingRequest): GetSyncingRequestProtoMsg; }; export declare const GetSyncingResponse: { - encode(message: GetSyncingResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingResponse; + typeUrl: string; + encode(message: GetSyncingResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse; fromJSON(object: any): GetSyncingResponse; toJSON(message: GetSyncingResponse): unknown; fromPartial(object: Partial): GetSyncingResponse; @@ -804,8 +814,9 @@ export declare const GetSyncingResponse: { toProtoMsg(message: GetSyncingResponse): GetSyncingResponseProtoMsg; }; export declare const GetNodeInfoRequest: { - encode(_: GetNodeInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoRequest; + typeUrl: string; + encode(_: GetNodeInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest; fromJSON(_: any): GetNodeInfoRequest; toJSON(_: GetNodeInfoRequest): unknown; fromPartial(_: Partial): GetNodeInfoRequest; @@ -818,8 +829,9 @@ export declare const GetNodeInfoRequest: { toProtoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestProtoMsg; }; export declare const GetNodeInfoResponse: { - encode(message: GetNodeInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoResponse; + typeUrl: string; + encode(message: GetNodeInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse; fromJSON(object: any): GetNodeInfoResponse; toJSON(message: GetNodeInfoResponse): unknown; fromPartial(object: Partial): GetNodeInfoResponse; @@ -832,8 +844,9 @@ export declare const GetNodeInfoResponse: { toProtoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseProtoMsg; }; export declare const VersionInfo: { - encode(message: VersionInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VersionInfo; + typeUrl: string; + encode(message: VersionInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo; fromJSON(object: any): VersionInfo; toJSON(message: VersionInfo): unknown; fromPartial(object: Partial): VersionInfo; @@ -846,8 +859,9 @@ export declare const VersionInfo: { toProtoMsg(message: VersionInfo): VersionInfoProtoMsg; }; export declare const Module: { - encode(message: Module, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Module; + typeUrl: string; + encode(message: Module, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Module; fromJSON(object: any): Module; toJSON(message: Module): unknown; fromPartial(object: Partial): Module; @@ -860,8 +874,9 @@ export declare const Module: { toProtoMsg(message: Module): ModuleProtoMsg; }; export declare const ABCIQueryRequest: { - encode(message: ABCIQueryRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ABCIQueryRequest; + typeUrl: string; + encode(message: ABCIQueryRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest; fromJSON(object: any): ABCIQueryRequest; toJSON(message: ABCIQueryRequest): unknown; fromPartial(object: Partial): ABCIQueryRequest; @@ -874,8 +889,9 @@ export declare const ABCIQueryRequest: { toProtoMsg(message: ABCIQueryRequest): ABCIQueryRequestProtoMsg; }; export declare const ABCIQueryResponse: { - encode(message: ABCIQueryResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ABCIQueryResponse; + typeUrl: string; + encode(message: ABCIQueryResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse; fromJSON(object: any): ABCIQueryResponse; toJSON(message: ABCIQueryResponse): unknown; fromPartial(object: Partial): ABCIQueryResponse; @@ -888,8 +904,9 @@ export declare const ABCIQueryResponse: { toProtoMsg(message: ABCIQueryResponse): ABCIQueryResponseProtoMsg; }; export declare const ProofOp: { - encode(message: ProofOp, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProofOp; + typeUrl: string; + encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; fromJSON(object: any): ProofOp; toJSON(message: ProofOp): unknown; fromPartial(object: Partial): ProofOp; @@ -902,8 +919,9 @@ export declare const ProofOp: { toProtoMsg(message: ProofOp): ProofOpProtoMsg; }; export declare const ProofOps: { - encode(message: ProofOps, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProofOps; + typeUrl: string; + encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; fromJSON(object: any): ProofOps; toJSON(message: ProofOps): unknown; fromPartial(object: Partial): ProofOps; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts index f4fed4b4..68c1b44e 100644 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType, ABCIQueryRequest, ABCIQueryResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts index cb877179..757f589c 100644 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts +++ b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts @@ -1,9 +1,8 @@ import { Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType, BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types"; import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "../../../../tendermint/types/evidence"; import { Consensus, ConsensusAmino, ConsensusSDKType } from "../../../../tendermint/version/types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * Block is tendermint type Block, with the Header proposer address * field converted to bech32 string. @@ -12,7 +11,7 @@ export interface Block { header: Header; data: Data; evidence: EvidenceList; - lastCommit: Commit; + lastCommit?: Commit; } export interface BlockProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Block"; @@ -40,14 +39,14 @@ export interface BlockSDKType { header: HeaderSDKType; data: DataSDKType; evidence: EvidenceListSDKType; - last_commit: CommitSDKType; + last_commit?: CommitSDKType; } /** Header defines the structure of a Tendermint block header. */ export interface Header { /** basic block info */ version: Consensus; chainId: string; - height: Long; + height: bigint; time: Timestamp; /** prev block info */ lastBlockId: BlockID; @@ -80,31 +79,31 @@ export interface HeaderProtoMsg { export interface HeaderAmino { /** basic block info */ version?: ConsensusAmino; - chain_id: string; - height: string; - time?: TimestampAmino; + chain_id?: string; + height?: string; + time?: string; /** prev block info */ last_block_id?: BlockIDAmino; /** hashes of block data */ - last_commit_hash: Uint8Array; - data_hash: Uint8Array; + last_commit_hash?: string; + data_hash?: string; /** hashes from the app output from the prev block */ - validators_hash: Uint8Array; + validators_hash?: string; /** validators for the next block */ - next_validators_hash: Uint8Array; + next_validators_hash?: string; /** consensus params for current block */ - consensus_hash: Uint8Array; + consensus_hash?: string; /** state after txs from the previous block */ - app_hash: Uint8Array; - last_results_hash: Uint8Array; + app_hash?: string; + last_results_hash?: string; /** consensus info */ - evidence_hash: Uint8Array; + evidence_hash?: string; /** * proposer_address is the original block proposer address, formatted as a Bech32 string. * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string * for better UX. */ - proposer_address: string; + proposer_address?: string; } export interface HeaderAminoMsg { type: "cosmos-sdk/Header"; @@ -114,7 +113,7 @@ export interface HeaderAminoMsg { export interface HeaderSDKType { version: ConsensusSDKType; chain_id: string; - height: Long; + height: bigint; time: TimestampSDKType; last_block_id: BlockIDSDKType; last_commit_hash: Uint8Array; @@ -128,8 +127,9 @@ export interface HeaderSDKType { proposer_address: string; } export declare const Block: { - encode(message: Block, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Block; + typeUrl: string; + encode(message: Block, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Block; fromJSON(object: any): Block; toJSON(message: Block): unknown; fromPartial(object: Partial): Block; @@ -142,8 +142,9 @@ export declare const Block: { toProtoMsg(message: Block): BlockProtoMsg; }; export declare const Header: { - encode(message: Header, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Header; + typeUrl: string; + encode(message: Header, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Header; fromJSON(object: any): Header; toJSON(message: Header): unknown; fromPartial(object: Partial
): Header; diff --git a/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts b/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts index a8c3c129..a1018ca4 100644 --- a/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts +++ b/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * Coin defines a token with a denomination and an amount. * @@ -20,8 +20,8 @@ export interface CoinProtoMsg { * signatures required by gogoproto. */ export interface CoinAmino { - denom: string; - amount: string; + denom?: string; + amount?: string; } export interface CoinAminoMsg { type: "cosmos-sdk/Coin"; @@ -58,8 +58,8 @@ export interface DecCoinProtoMsg { * signatures required by gogoproto. */ export interface DecCoinAmino { - denom: string; - amount: string; + denom?: string; + amount?: string; } export interface DecCoinAminoMsg { type: "cosmos-sdk/DecCoin"; @@ -85,7 +85,7 @@ export interface IntProtoProtoMsg { } /** IntProto defines a Protobuf wrapper around an Int object. */ export interface IntProtoAmino { - int: string; + int?: string; } export interface IntProtoAminoMsg { type: "cosmos-sdk/IntProto"; @@ -105,7 +105,7 @@ export interface DecProtoProtoMsg { } /** DecProto defines a Protobuf wrapper around a Dec object. */ export interface DecProtoAmino { - dec: string; + dec?: string; } export interface DecProtoAminoMsg { type: "cosmos-sdk/DecProto"; @@ -116,8 +116,9 @@ export interface DecProtoSDKType { dec: string; } export declare const Coin: { - encode(message: Coin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Coin; + typeUrl: string; + encode(message: Coin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Coin; fromJSON(object: any): Coin; toJSON(message: Coin): unknown; fromPartial(object: Partial): Coin; @@ -130,8 +131,9 @@ export declare const Coin: { toProtoMsg(message: Coin): CoinProtoMsg; }; export declare const DecCoin: { - encode(message: DecCoin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin; + typeUrl: string; + encode(message: DecCoin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecCoin; fromJSON(object: any): DecCoin; toJSON(message: DecCoin): unknown; fromPartial(object: Partial): DecCoin; @@ -144,8 +146,9 @@ export declare const DecCoin: { toProtoMsg(message: DecCoin): DecCoinProtoMsg; }; export declare const IntProto: { - encode(message: IntProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): IntProto; + typeUrl: string; + encode(message: IntProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IntProto; fromJSON(object: any): IntProto; toJSON(message: IntProto): unknown; fromPartial(object: Partial): IntProto; @@ -158,8 +161,9 @@ export declare const IntProto: { toProtoMsg(message: IntProto): IntProtoProtoMsg; }; export declare const DecProto: { - encode(message: DecProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DecProto; + typeUrl: string; + encode(message: DecProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecProto; fromJSON(object: any): DecProto; toJSON(message: DecProto): unknown; fromPartial(object: Partial): DecProto; diff --git a/packages/api/types/codegen/cosmos/bundle.d.ts b/packages/api/types/codegen/cosmos/bundle.d.ts index faa22a26..a4088c46 100644 --- a/packages/api/types/codegen/cosmos/bundle.d.ts +++ b/packages/api/types/codegen/cosmos/bundle.d.ts @@ -93,64 +93,65 @@ import * as _94 from "./upgrade/v1beta1/tx"; import * as _95 from "./upgrade/v1beta1/upgrade"; import * as _96 from "./vesting/v1beta1/tx"; import * as _97 from "./vesting/v1beta1/vesting"; -import * as _179 from "./auth/v1beta1/query.lcd"; -import * as _180 from "./authz/v1beta1/query.lcd"; -import * as _181 from "./bank/v1beta1/query.lcd"; -import * as _182 from "./base/node/v1beta1/query.lcd"; -import * as _183 from "./base/tendermint/v1beta1/query.lcd"; -import * as _184 from "./distribution/v1beta1/query.lcd"; -import * as _185 from "./evidence/v1beta1/query.lcd"; -import * as _186 from "./feegrant/v1beta1/query.lcd"; -import * as _187 from "./gov/v1/query.lcd"; -import * as _188 from "./gov/v1beta1/query.lcd"; -import * as _189 from "./group/v1/query.lcd"; -import * as _190 from "./mint/v1beta1/query.lcd"; -import * as _191 from "./nft/v1beta1/query.lcd"; -import * as _192 from "./params/v1beta1/query.lcd"; -import * as _193 from "./slashing/v1beta1/query.lcd"; -import * as _194 from "./staking/v1beta1/query.lcd"; -import * as _195 from "./tx/v1beta1/service.lcd"; -import * as _196 from "./upgrade/v1beta1/query.lcd"; -import * as _197 from "./app/v1alpha1/query.rpc.Query"; -import * as _198 from "./auth/v1beta1/query.rpc.Query"; -import * as _199 from "./authz/v1beta1/query.rpc.Query"; -import * as _200 from "./bank/v1beta1/query.rpc.Query"; -import * as _201 from "./base/node/v1beta1/query.rpc.Service"; -import * as _202 from "./base/tendermint/v1beta1/query.rpc.Service"; -import * as _203 from "./distribution/v1beta1/query.rpc.Query"; -import * as _204 from "./evidence/v1beta1/query.rpc.Query"; -import * as _205 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _206 from "./gov/v1/query.rpc.Query"; -import * as _207 from "./gov/v1beta1/query.rpc.Query"; -import * as _208 from "./group/v1/query.rpc.Query"; -import * as _209 from "./mint/v1beta1/query.rpc.Query"; -import * as _210 from "./nft/v1beta1/query.rpc.Query"; -import * as _211 from "./params/v1beta1/query.rpc.Query"; -import * as _212 from "./slashing/v1beta1/query.rpc.Query"; -import * as _213 from "./staking/v1beta1/query.rpc.Query"; -import * as _214 from "./tx/v1beta1/service.rpc.Service"; -import * as _215 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _216 from "./authz/v1beta1/tx.rpc.msg"; -import * as _217 from "./bank/v1beta1/tx.rpc.msg"; -import * as _218 from "./crisis/v1beta1/tx.rpc.msg"; -import * as _219 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _220 from "./evidence/v1beta1/tx.rpc.msg"; -import * as _221 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _222 from "./gov/v1/tx.rpc.msg"; -import * as _223 from "./gov/v1beta1/tx.rpc.msg"; -import * as _224 from "./group/v1/tx.rpc.msg"; -import * as _225 from "./nft/v1beta1/tx.rpc.msg"; -import * as _226 from "./slashing/v1beta1/tx.rpc.msg"; -import * as _227 from "./staking/v1beta1/tx.rpc.msg"; -import * as _228 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _229 from "./vesting/v1beta1/tx.rpc.msg"; +import * as _180 from "./auth/v1beta1/query.lcd"; +import * as _181 from "./authz/v1beta1/query.lcd"; +import * as _182 from "./bank/v1beta1/query.lcd"; +import * as _183 from "./base/node/v1beta1/query.lcd"; +import * as _184 from "./base/tendermint/v1beta1/query.lcd"; +import * as _185 from "./distribution/v1beta1/query.lcd"; +import * as _186 from "./evidence/v1beta1/query.lcd"; +import * as _187 from "./feegrant/v1beta1/query.lcd"; +import * as _188 from "./gov/v1/query.lcd"; +import * as _189 from "./gov/v1beta1/query.lcd"; +import * as _190 from "./group/v1/query.lcd"; +import * as _191 from "./mint/v1beta1/query.lcd"; +import * as _192 from "./nft/v1beta1/query.lcd"; +import * as _193 from "./params/v1beta1/query.lcd"; +import * as _194 from "./slashing/v1beta1/query.lcd"; +import * as _195 from "./staking/v1beta1/query.lcd"; +import * as _196 from "./tx/v1beta1/service.lcd"; +import * as _197 from "./upgrade/v1beta1/query.lcd"; +import * as _198 from "./app/v1alpha1/query.rpc.Query"; +import * as _199 from "./auth/v1beta1/query.rpc.Query"; +import * as _200 from "./authz/v1beta1/query.rpc.Query"; +import * as _201 from "./bank/v1beta1/query.rpc.Query"; +import * as _202 from "./base/node/v1beta1/query.rpc.Service"; +import * as _203 from "./base/tendermint/v1beta1/query.rpc.Service"; +import * as _204 from "./distribution/v1beta1/query.rpc.Query"; +import * as _205 from "./evidence/v1beta1/query.rpc.Query"; +import * as _206 from "./feegrant/v1beta1/query.rpc.Query"; +import * as _207 from "./gov/v1/query.rpc.Query"; +import * as _208 from "./gov/v1beta1/query.rpc.Query"; +import * as _209 from "./group/v1/query.rpc.Query"; +import * as _210 from "./mint/v1beta1/query.rpc.Query"; +import * as _211 from "./nft/v1beta1/query.rpc.Query"; +import * as _212 from "./params/v1beta1/query.rpc.Query"; +import * as _213 from "./slashing/v1beta1/query.rpc.Query"; +import * as _214 from "./staking/v1beta1/query.rpc.Query"; +import * as _215 from "./tx/v1beta1/service.rpc.Service"; +import * as _216 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _217 from "./authz/v1beta1/tx.rpc.msg"; +import * as _218 from "./bank/v1beta1/tx.rpc.msg"; +import * as _219 from "./crisis/v1beta1/tx.rpc.msg"; +import * as _220 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _221 from "./evidence/v1beta1/tx.rpc.msg"; +import * as _222 from "./feegrant/v1beta1/tx.rpc.msg"; +import * as _223 from "./gov/v1/tx.rpc.msg"; +import * as _224 from "./gov/v1beta1/tx.rpc.msg"; +import * as _225 from "./group/v1/tx.rpc.msg"; +import * as _226 from "./nft/v1beta1/tx.rpc.msg"; +import * as _227 from "./slashing/v1beta1/tx.rpc.msg"; +import * as _228 from "./staking/v1beta1/tx.rpc.msg"; +import * as _229 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _230 from "./vesting/v1beta1/tx.rpc.msg"; export declare namespace cosmos { namespace app { namespace module { const v1alpha1: { Module: { - encode(_: _2.Module, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _2.Module; + typeUrl: string; + encode(_: _2.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _2.Module; fromJSON(_: any): _2.Module; toJSON(_: _2.Module): unknown; fromPartial(_: Partial<_2.Module>): _2.Module; @@ -165,13 +166,14 @@ export declare namespace cosmos { }; } const v1alpha1: { - QueryClientImpl: typeof _197.QueryClientImpl; + QueryClientImpl: typeof _198.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { config(request?: _5.QueryConfigRequest | undefined): Promise<_5.QueryConfigResponse>; }; QueryConfigRequest: { - encode(_: _5.QueryConfigRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _5.QueryConfigRequest; + typeUrl: string; + encode(_: _5.QueryConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _5.QueryConfigRequest; fromJSON(_: any): _5.QueryConfigRequest; toJSON(_: _5.QueryConfigRequest): unknown; fromPartial(_: Partial<_5.QueryConfigRequest>): _5.QueryConfigRequest; @@ -184,8 +186,9 @@ export declare namespace cosmos { toProtoMsg(message: _5.QueryConfigRequest): _5.QueryConfigRequestProtoMsg; }; QueryConfigResponse: { - encode(message: _5.QueryConfigResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _5.QueryConfigResponse; + typeUrl: string; + encode(message: _5.QueryConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _5.QueryConfigResponse; fromJSON(object: any): _5.QueryConfigResponse; toJSON(message: _5.QueryConfigResponse): unknown; fromPartial(object: Partial<_5.QueryConfigResponse>): _5.QueryConfigResponse; @@ -198,8 +201,9 @@ export declare namespace cosmos { toProtoMsg(message: _5.QueryConfigResponse): _5.QueryConfigResponseProtoMsg; }; ModuleDescriptor: { - encode(message: _4.ModuleDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _4.ModuleDescriptor; + typeUrl: string; + encode(message: _4.ModuleDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.ModuleDescriptor; fromJSON(object: any): _4.ModuleDescriptor; toJSON(message: _4.ModuleDescriptor): unknown; fromPartial(object: Partial<_4.ModuleDescriptor>): _4.ModuleDescriptor; @@ -212,8 +216,9 @@ export declare namespace cosmos { toProtoMsg(message: _4.ModuleDescriptor): _4.ModuleDescriptorProtoMsg; }; PackageReference: { - encode(message: _4.PackageReference, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _4.PackageReference; + typeUrl: string; + encode(message: _4.PackageReference, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.PackageReference; fromJSON(object: any): _4.PackageReference; toJSON(message: _4.PackageReference): unknown; fromPartial(object: Partial<_4.PackageReference>): _4.PackageReference; @@ -226,8 +231,9 @@ export declare namespace cosmos { toProtoMsg(message: _4.PackageReference): _4.PackageReferenceProtoMsg; }; MigrateFromInfo: { - encode(message: _4.MigrateFromInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _4.MigrateFromInfo; + typeUrl: string; + encode(message: _4.MigrateFromInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.MigrateFromInfo; fromJSON(object: any): _4.MigrateFromInfo; toJSON(message: _4.MigrateFromInfo): unknown; fromPartial(object: Partial<_4.MigrateFromInfo>): _4.MigrateFromInfo; @@ -240,8 +246,9 @@ export declare namespace cosmos { toProtoMsg(message: _4.MigrateFromInfo): _4.MigrateFromInfoProtoMsg; }; Config: { - encode(message: _3.Config, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _3.Config; + typeUrl: string; + encode(message: _3.Config, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _3.Config; fromJSON(object: any): _3.Config; toJSON(message: _3.Config): unknown; fromPartial(object: Partial<_3.Config>): _3.Config; @@ -254,8 +261,9 @@ export declare namespace cosmos { toProtoMsg(message: _3.Config): _3.ConfigProtoMsg; }; ModuleConfig: { - encode(message: _3.ModuleConfig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _3.ModuleConfig; + typeUrl: string; + encode(message: _3.ModuleConfig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _3.ModuleConfig; fromJSON(object: any): _3.ModuleConfig; toJSON(message: _3.ModuleConfig): unknown; fromPartial(object: Partial<_3.ModuleConfig>): _3.ModuleConfig; @@ -271,7 +279,7 @@ export declare namespace cosmos { } namespace auth { const v1beta1: { - QueryClientImpl: typeof _198.QueryClientImpl; + QueryClientImpl: typeof _199.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { accounts(request?: _8.QueryAccountsRequest | undefined): Promise<_8.QueryAccountsResponse>; account(request: _8.QueryAccountRequest): Promise<_8.QueryAccountResponse>; @@ -283,10 +291,11 @@ export declare namespace cosmos { addressBytesToString(request: _8.AddressBytesToStringRequest): Promise<_8.AddressBytesToStringResponse>; addressStringToBytes(request: _8.AddressStringToBytesRequest): Promise<_8.AddressStringToBytesResponse>; }; - LCDQueryClient: typeof _179.LCDQueryClient; + LCDQueryClient: typeof _180.LCDQueryClient; QueryAccountsRequest: { - encode(message: _8.QueryAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountsRequest; + typeUrl: string; + encode(message: _8.QueryAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountsRequest; fromJSON(object: any): _8.QueryAccountsRequest; toJSON(message: _8.QueryAccountsRequest): unknown; fromPartial(object: Partial<_8.QueryAccountsRequest>): _8.QueryAccountsRequest; @@ -299,8 +308,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryAccountsRequest): _8.QueryAccountsRequestProtoMsg; }; QueryAccountsResponse: { - encode(message: _8.QueryAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountsResponse; + typeUrl: string; + encode(message: _8.QueryAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountsResponse; fromJSON(object: any): _8.QueryAccountsResponse; toJSON(message: _8.QueryAccountsResponse): unknown; fromPartial(object: Partial<_8.QueryAccountsResponse>): _8.QueryAccountsResponse; @@ -313,8 +323,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryAccountsResponse): _8.QueryAccountsResponseProtoMsg; }; QueryAccountRequest: { - encode(message: _8.QueryAccountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountRequest; + typeUrl: string; + encode(message: _8.QueryAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountRequest; fromJSON(object: any): _8.QueryAccountRequest; toJSON(message: _8.QueryAccountRequest): unknown; fromPartial(object: Partial<_8.QueryAccountRequest>): _8.QueryAccountRequest; @@ -327,8 +338,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryAccountRequest): _8.QueryAccountRequestProtoMsg; }; QueryAccountResponse: { - encode(message: _8.QueryAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountResponse; + typeUrl: string; + encode(message: _8.QueryAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountResponse; fromJSON(object: any): _8.QueryAccountResponse; toJSON(message: _8.QueryAccountResponse): unknown; fromPartial(object: Partial<_8.QueryAccountResponse>): _8.QueryAccountResponse; @@ -341,8 +353,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryAccountResponse): _8.QueryAccountResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _8.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryParamsRequest; + typeUrl: string; + encode(_: _8.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryParamsRequest; fromJSON(_: any): _8.QueryParamsRequest; toJSON(_: _8.QueryParamsRequest): unknown; fromPartial(_: Partial<_8.QueryParamsRequest>): _8.QueryParamsRequest; @@ -355,8 +368,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryParamsRequest): _8.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _8.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryParamsResponse; + typeUrl: string; + encode(message: _8.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryParamsResponse; fromJSON(object: any): _8.QueryParamsResponse; toJSON(message: _8.QueryParamsResponse): unknown; fromPartial(object: Partial<_8.QueryParamsResponse>): _8.QueryParamsResponse; @@ -369,8 +383,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryParamsResponse): _8.QueryParamsResponseProtoMsg; }; QueryModuleAccountsRequest: { - encode(_: _8.QueryModuleAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryModuleAccountsRequest; + typeUrl: string; + encode(_: _8.QueryModuleAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountsRequest; fromJSON(_: any): _8.QueryModuleAccountsRequest; toJSON(_: _8.QueryModuleAccountsRequest): unknown; fromPartial(_: Partial<_8.QueryModuleAccountsRequest>): _8.QueryModuleAccountsRequest; @@ -383,8 +398,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryModuleAccountsRequest): _8.QueryModuleAccountsRequestProtoMsg; }; QueryModuleAccountsResponse: { - encode(message: _8.QueryModuleAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryModuleAccountsResponse; + typeUrl: string; + encode(message: _8.QueryModuleAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountsResponse; fromJSON(object: any): _8.QueryModuleAccountsResponse; toJSON(message: _8.QueryModuleAccountsResponse): unknown; fromPartial(object: Partial<_8.QueryModuleAccountsResponse>): _8.QueryModuleAccountsResponse; @@ -397,8 +413,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryModuleAccountsResponse): _8.QueryModuleAccountsResponseProtoMsg; }; QueryModuleAccountByNameRequest: { - encode(message: _8.QueryModuleAccountByNameRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryModuleAccountByNameRequest; + typeUrl: string; + encode(message: _8.QueryModuleAccountByNameRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountByNameRequest; fromJSON(object: any): _8.QueryModuleAccountByNameRequest; toJSON(message: _8.QueryModuleAccountByNameRequest): unknown; fromPartial(object: Partial<_8.QueryModuleAccountByNameRequest>): _8.QueryModuleAccountByNameRequest; @@ -411,8 +428,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryModuleAccountByNameRequest): _8.QueryModuleAccountByNameRequestProtoMsg; }; QueryModuleAccountByNameResponse: { - encode(message: _8.QueryModuleAccountByNameResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryModuleAccountByNameResponse; + typeUrl: string; + encode(message: _8.QueryModuleAccountByNameResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountByNameResponse; fromJSON(object: any): _8.QueryModuleAccountByNameResponse; toJSON(message: _8.QueryModuleAccountByNameResponse): unknown; fromPartial(object: Partial<_8.QueryModuleAccountByNameResponse>): _8.QueryModuleAccountByNameResponse; @@ -425,8 +443,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryModuleAccountByNameResponse): _8.QueryModuleAccountByNameResponseProtoMsg; }; Bech32PrefixRequest: { - encode(_: _8.Bech32PrefixRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.Bech32PrefixRequest; + typeUrl: string; + encode(_: _8.Bech32PrefixRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.Bech32PrefixRequest; fromJSON(_: any): _8.Bech32PrefixRequest; toJSON(_: _8.Bech32PrefixRequest): unknown; fromPartial(_: Partial<_8.Bech32PrefixRequest>): _8.Bech32PrefixRequest; @@ -439,8 +458,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.Bech32PrefixRequest): _8.Bech32PrefixRequestProtoMsg; }; Bech32PrefixResponse: { - encode(message: _8.Bech32PrefixResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.Bech32PrefixResponse; + typeUrl: string; + encode(message: _8.Bech32PrefixResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.Bech32PrefixResponse; fromJSON(object: any): _8.Bech32PrefixResponse; toJSON(message: _8.Bech32PrefixResponse): unknown; fromPartial(object: Partial<_8.Bech32PrefixResponse>): _8.Bech32PrefixResponse; @@ -453,8 +473,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.Bech32PrefixResponse): _8.Bech32PrefixResponseProtoMsg; }; AddressBytesToStringRequest: { - encode(message: _8.AddressBytesToStringRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.AddressBytesToStringRequest; + typeUrl: string; + encode(message: _8.AddressBytesToStringRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressBytesToStringRequest; fromJSON(object: any): _8.AddressBytesToStringRequest; toJSON(message: _8.AddressBytesToStringRequest): unknown; fromPartial(object: Partial<_8.AddressBytesToStringRequest>): _8.AddressBytesToStringRequest; @@ -467,8 +488,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.AddressBytesToStringRequest): _8.AddressBytesToStringRequestProtoMsg; }; AddressBytesToStringResponse: { - encode(message: _8.AddressBytesToStringResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.AddressBytesToStringResponse; + typeUrl: string; + encode(message: _8.AddressBytesToStringResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressBytesToStringResponse; fromJSON(object: any): _8.AddressBytesToStringResponse; toJSON(message: _8.AddressBytesToStringResponse): unknown; fromPartial(object: Partial<_8.AddressBytesToStringResponse>): _8.AddressBytesToStringResponse; @@ -481,8 +503,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.AddressBytesToStringResponse): _8.AddressBytesToStringResponseProtoMsg; }; AddressStringToBytesRequest: { - encode(message: _8.AddressStringToBytesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.AddressStringToBytesRequest; + typeUrl: string; + encode(message: _8.AddressStringToBytesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressStringToBytesRequest; fromJSON(object: any): _8.AddressStringToBytesRequest; toJSON(message: _8.AddressStringToBytesRequest): unknown; fromPartial(object: Partial<_8.AddressStringToBytesRequest>): _8.AddressStringToBytesRequest; @@ -495,8 +518,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.AddressStringToBytesRequest): _8.AddressStringToBytesRequestProtoMsg; }; AddressStringToBytesResponse: { - encode(message: _8.AddressStringToBytesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.AddressStringToBytesResponse; + typeUrl: string; + encode(message: _8.AddressStringToBytesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressStringToBytesResponse; fromJSON(object: any): _8.AddressStringToBytesResponse; toJSON(message: _8.AddressStringToBytesResponse): unknown; fromPartial(object: Partial<_8.AddressStringToBytesResponse>): _8.AddressStringToBytesResponse; @@ -509,8 +533,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.AddressStringToBytesResponse): _8.AddressStringToBytesResponseProtoMsg; }; QueryAccountAddressByIDRequest: { - encode(message: _8.QueryAccountAddressByIDRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountAddressByIDRequest; + typeUrl: string; + encode(message: _8.QueryAccountAddressByIDRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountAddressByIDRequest; fromJSON(object: any): _8.QueryAccountAddressByIDRequest; toJSON(message: _8.QueryAccountAddressByIDRequest): unknown; fromPartial(object: Partial<_8.QueryAccountAddressByIDRequest>): _8.QueryAccountAddressByIDRequest; @@ -523,8 +548,9 @@ export declare namespace cosmos { toProtoMsg(message: _8.QueryAccountAddressByIDRequest): _8.QueryAccountAddressByIDRequestProtoMsg; }; QueryAccountAddressByIDResponse: { - encode(message: _8.QueryAccountAddressByIDResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _8.QueryAccountAddressByIDResponse; + typeUrl: string; + encode(message: _8.QueryAccountAddressByIDResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountAddressByIDResponse; fromJSON(object: any): _8.QueryAccountAddressByIDResponse; toJSON(message: _8.QueryAccountAddressByIDResponse): unknown; fromPartial(object: Partial<_8.QueryAccountAddressByIDResponse>): _8.QueryAccountAddressByIDResponse; @@ -536,15 +562,16 @@ export declare namespace cosmos { toProto(message: _8.QueryAccountAddressByIDResponse): Uint8Array; toProtoMsg(message: _8.QueryAccountAddressByIDResponse): _8.QueryAccountAddressByIDResponseProtoMsg; }; - AccountI_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _6.BaseAccount; + AccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _6.BaseAccount; AccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; AccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - ModuleAccountI_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _6.ModuleAccount; + ModuleAccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _6.ModuleAccount; ModuleAccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; ModuleAccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; GenesisState: { - encode(message: _7.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _7.GenesisState; + typeUrl: string; + encode(message: _7.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _7.GenesisState; fromJSON(object: any): _7.GenesisState; toJSON(message: _7.GenesisState): unknown; fromPartial(object: Partial<_7.GenesisState>): _7.GenesisState; @@ -557,8 +584,9 @@ export declare namespace cosmos { toProtoMsg(message: _7.GenesisState): _7.GenesisStateProtoMsg; }; BaseAccount: { - encode(message: _6.BaseAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _6.BaseAccount; + typeUrl: string; + encode(message: _6.BaseAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.BaseAccount; fromJSON(object: any): _6.BaseAccount; toJSON(message: _6.BaseAccount): unknown; fromPartial(object: Partial<_6.BaseAccount>): _6.BaseAccount; @@ -571,8 +599,9 @@ export declare namespace cosmos { toProtoMsg(message: _6.BaseAccount): _6.BaseAccountProtoMsg; }; ModuleAccount: { - encode(message: _6.ModuleAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _6.ModuleAccount; + typeUrl: string; + encode(message: _6.ModuleAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.ModuleAccount; fromJSON(object: any): _6.ModuleAccount; toJSON(message: _6.ModuleAccount): unknown; fromPartial(object: Partial<_6.ModuleAccount>): _6.ModuleAccount; @@ -585,8 +614,9 @@ export declare namespace cosmos { toProtoMsg(message: _6.ModuleAccount): _6.ModuleAccountProtoMsg; }; Params: { - encode(message: _6.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _6.Params; + typeUrl: string; + encode(message: _6.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.Params; fromJSON(object: any): _6.Params; toJSON(message: _6.Params): unknown; fromPartial(object: Partial<_6.Params>): _6.Params; @@ -602,14 +632,14 @@ export declare namespace cosmos { } namespace authz { const v1beta1: { - MsgClientImpl: typeof _216.MsgClientImpl; - QueryClientImpl: typeof _199.QueryClientImpl; + MsgClientImpl: typeof _217.MsgClientImpl; + QueryClientImpl: typeof _200.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { grants(request: _12.QueryGrantsRequest): Promise<_12.QueryGrantsResponse>; granterGrants(request: _12.QueryGranterGrantsRequest): Promise<_12.QueryGranterGrantsResponse>; granteeGrants(request: _12.QueryGranteeGrantsRequest): Promise<_12.QueryGranteeGrantsResponse>; }; - LCDQueryClient: typeof _180.LCDQueryClient; + LCDQueryClient: typeof _181.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -702,8 +732,9 @@ export declare namespace cosmos { }; }; MsgGrant: { - encode(message: _13.MsgGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgGrant; + typeUrl: string; + encode(message: _13.MsgGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgGrant; fromJSON(object: any): _13.MsgGrant; toJSON(message: _13.MsgGrant): unknown; fromPartial(object: Partial<_13.MsgGrant>): _13.MsgGrant; @@ -716,8 +747,9 @@ export declare namespace cosmos { toProtoMsg(message: _13.MsgGrant): _13.MsgGrantProtoMsg; }; MsgExecResponse: { - encode(message: _13.MsgExecResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgExecResponse; + typeUrl: string; + encode(message: _13.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgExecResponse; fromJSON(object: any): _13.MsgExecResponse; toJSON(message: _13.MsgExecResponse): unknown; fromPartial(object: Partial<_13.MsgExecResponse>): _13.MsgExecResponse; @@ -730,8 +762,9 @@ export declare namespace cosmos { toProtoMsg(message: _13.MsgExecResponse): _13.MsgExecResponseProtoMsg; }; MsgExec: { - encode(message: _13.MsgExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgExec; + typeUrl: string; + encode(message: _13.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgExec; fromJSON(object: any): _13.MsgExec; toJSON(message: _13.MsgExec): unknown; fromPartial(object: Partial<_13.MsgExec>): _13.MsgExec; @@ -744,8 +777,9 @@ export declare namespace cosmos { toProtoMsg(message: _13.MsgExec): _13.MsgExecProtoMsg; }; MsgGrantResponse: { - encode(_: _13.MsgGrantResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgGrantResponse; + typeUrl: string; + encode(_: _13.MsgGrantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgGrantResponse; fromJSON(_: any): _13.MsgGrantResponse; toJSON(_: _13.MsgGrantResponse): unknown; fromPartial(_: Partial<_13.MsgGrantResponse>): _13.MsgGrantResponse; @@ -758,8 +792,9 @@ export declare namespace cosmos { toProtoMsg(message: _13.MsgGrantResponse): _13.MsgGrantResponseProtoMsg; }; MsgRevoke: { - encode(message: _13.MsgRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgRevoke; + typeUrl: string; + encode(message: _13.MsgRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgRevoke; fromJSON(object: any): _13.MsgRevoke; toJSON(message: _13.MsgRevoke): unknown; fromPartial(object: Partial<_13.MsgRevoke>): _13.MsgRevoke; @@ -772,8 +807,9 @@ export declare namespace cosmos { toProtoMsg(message: _13.MsgRevoke): _13.MsgRevokeProtoMsg; }; MsgRevokeResponse: { - encode(_: _13.MsgRevokeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _13.MsgRevokeResponse; + typeUrl: string; + encode(_: _13.MsgRevokeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgRevokeResponse; fromJSON(_: any): _13.MsgRevokeResponse; toJSON(_: _13.MsgRevokeResponse): unknown; fromPartial(_: Partial<_13.MsgRevokeResponse>): _13.MsgRevokeResponse; @@ -785,15 +821,16 @@ export declare namespace cosmos { toProto(message: _13.MsgRevokeResponse): Uint8Array; toProtoMsg(message: _13.MsgRevokeResponse): _13.MsgRevokeResponseProtoMsg; }; - Sdk_Msg_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any; + Sdk_Msg_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; Sdk_Msg_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Sdk_Msg_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - Authz_Authorization_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any; + Authz_Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; Authz_Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Authz_Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; QueryGrantsRequest: { - encode(message: _12.QueryGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGrantsRequest; + typeUrl: string; + encode(message: _12.QueryGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGrantsRequest; fromJSON(object: any): _12.QueryGrantsRequest; toJSON(message: _12.QueryGrantsRequest): unknown; fromPartial(object: Partial<_12.QueryGrantsRequest>): _12.QueryGrantsRequest; @@ -806,8 +843,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGrantsRequest): _12.QueryGrantsRequestProtoMsg; }; QueryGrantsResponse: { - encode(message: _12.QueryGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGrantsResponse; + typeUrl: string; + encode(message: _12.QueryGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGrantsResponse; fromJSON(object: any): _12.QueryGrantsResponse; toJSON(message: _12.QueryGrantsResponse): unknown; fromPartial(object: Partial<_12.QueryGrantsResponse>): _12.QueryGrantsResponse; @@ -820,8 +858,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGrantsResponse): _12.QueryGrantsResponseProtoMsg; }; QueryGranterGrantsRequest: { - encode(message: _12.QueryGranterGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGranterGrantsRequest; + typeUrl: string; + encode(message: _12.QueryGranterGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranterGrantsRequest; fromJSON(object: any): _12.QueryGranterGrantsRequest; toJSON(message: _12.QueryGranterGrantsRequest): unknown; fromPartial(object: Partial<_12.QueryGranterGrantsRequest>): _12.QueryGranterGrantsRequest; @@ -834,8 +873,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGranterGrantsRequest): _12.QueryGranterGrantsRequestProtoMsg; }; QueryGranterGrantsResponse: { - encode(message: _12.QueryGranterGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGranterGrantsResponse; + typeUrl: string; + encode(message: _12.QueryGranterGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranterGrantsResponse; fromJSON(object: any): _12.QueryGranterGrantsResponse; toJSON(message: _12.QueryGranterGrantsResponse): unknown; fromPartial(object: Partial<_12.QueryGranterGrantsResponse>): _12.QueryGranterGrantsResponse; @@ -848,8 +888,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGranterGrantsResponse): _12.QueryGranterGrantsResponseProtoMsg; }; QueryGranteeGrantsRequest: { - encode(message: _12.QueryGranteeGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGranteeGrantsRequest; + typeUrl: string; + encode(message: _12.QueryGranteeGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranteeGrantsRequest; fromJSON(object: any): _12.QueryGranteeGrantsRequest; toJSON(message: _12.QueryGranteeGrantsRequest): unknown; fromPartial(object: Partial<_12.QueryGranteeGrantsRequest>): _12.QueryGranteeGrantsRequest; @@ -862,8 +903,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGranteeGrantsRequest): _12.QueryGranteeGrantsRequestProtoMsg; }; QueryGranteeGrantsResponse: { - encode(message: _12.QueryGranteeGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _12.QueryGranteeGrantsResponse; + typeUrl: string; + encode(message: _12.QueryGranteeGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranteeGrantsResponse; fromJSON(object: any): _12.QueryGranteeGrantsResponse; toJSON(message: _12.QueryGranteeGrantsResponse): unknown; fromPartial(object: Partial<_12.QueryGranteeGrantsResponse>): _12.QueryGranteeGrantsResponse; @@ -876,8 +918,9 @@ export declare namespace cosmos { toProtoMsg(message: _12.QueryGranteeGrantsResponse): _12.QueryGranteeGrantsResponseProtoMsg; }; GenesisState: { - encode(message: _11.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _11.GenesisState; + typeUrl: string; + encode(message: _11.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _11.GenesisState; fromJSON(object: any): _11.GenesisState; toJSON(message: _11.GenesisState): unknown; fromPartial(object: Partial<_11.GenesisState>): _11.GenesisState; @@ -890,8 +933,9 @@ export declare namespace cosmos { toProtoMsg(message: _11.GenesisState): _11.GenesisStateProtoMsg; }; EventGrant: { - encode(message: _10.EventGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _10.EventGrant; + typeUrl: string; + encode(message: _10.EventGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _10.EventGrant; fromJSON(object: any): _10.EventGrant; toJSON(message: _10.EventGrant): unknown; fromPartial(object: Partial<_10.EventGrant>): _10.EventGrant; @@ -904,8 +948,9 @@ export declare namespace cosmos { toProtoMsg(message: _10.EventGrant): _10.EventGrantProtoMsg; }; EventRevoke: { - encode(message: _10.EventRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _10.EventRevoke; + typeUrl: string; + encode(message: _10.EventRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _10.EventRevoke; fromJSON(object: any): _10.EventRevoke; toJSON(message: _10.EventRevoke): unknown; fromPartial(object: Partial<_10.EventRevoke>): _10.EventRevoke; @@ -918,8 +963,9 @@ export declare namespace cosmos { toProtoMsg(message: _10.EventRevoke): _10.EventRevokeProtoMsg; }; GenericAuthorization: { - encode(message: _9.GenericAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _9.GenericAuthorization; + typeUrl: string; + encode(message: _9.GenericAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GenericAuthorization; fromJSON(object: any): _9.GenericAuthorization; toJSON(message: _9.GenericAuthorization): unknown; fromPartial(object: Partial<_9.GenericAuthorization>): _9.GenericAuthorization; @@ -932,8 +978,9 @@ export declare namespace cosmos { toProtoMsg(message: _9.GenericAuthorization): _9.GenericAuthorizationProtoMsg; }; Grant: { - encode(message: _9.Grant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _9.Grant; + typeUrl: string; + encode(message: _9.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.Grant; fromJSON(object: any): _9.Grant; toJSON(message: _9.Grant): unknown; fromPartial(object: Partial<_9.Grant>): _9.Grant; @@ -946,8 +993,9 @@ export declare namespace cosmos { toProtoMsg(message: _9.Grant): _9.GrantProtoMsg; }; GrantAuthorization: { - encode(message: _9.GrantAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _9.GrantAuthorization; + typeUrl: string; + encode(message: _9.GrantAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GrantAuthorization; fromJSON(object: any): _9.GrantAuthorization; toJSON(message: _9.GrantAuthorization): unknown; fromPartial(object: Partial<_9.GrantAuthorization>): _9.GrantAuthorization; @@ -960,8 +1008,9 @@ export declare namespace cosmos { toProtoMsg(message: _9.GrantAuthorization): _9.GrantAuthorizationProtoMsg; }; GrantQueueItem: { - encode(message: _9.GrantQueueItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _9.GrantQueueItem; + typeUrl: string; + encode(message: _9.GrantQueueItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GrantQueueItem; fromJSON(object: any): _9.GrantQueueItem; toJSON(message: _9.GrantQueueItem): unknown; fromPartial(object: Partial<_9.GrantQueueItem>): _9.GrantQueueItem; @@ -973,15 +1022,15 @@ export declare namespace cosmos { toProto(message: _9.GrantQueueItem): Uint8Array; toProtoMsg(message: _9.GrantQueueItem): _9.GrantQueueItemProtoMsg; }; - Authorization_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _14.SendAuthorization | _85.StakeAuthorization | _9.GenericAuthorization; + Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _14.SendAuthorization | _85.StakeAuthorization | _9.GenericAuthorization; Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; }; } namespace bank { const v1beta1: { - MsgClientImpl: typeof _217.MsgClientImpl; - QueryClientImpl: typeof _200.QueryClientImpl; + MsgClientImpl: typeof _218.MsgClientImpl; + QueryClientImpl: typeof _201.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { balance(request: _17.QueryBalanceRequest): Promise<_17.QueryBalanceResponse>; allBalances(request: _17.QueryAllBalancesRequest): Promise<_17.QueryAllBalancesResponse>; @@ -993,7 +1042,7 @@ export declare namespace cosmos { denomsMetadata(request?: _17.QueryDenomsMetadataRequest | undefined): Promise<_17.QueryDenomsMetadataResponse>; denomOwners(request: _17.QueryDenomOwnersRequest): Promise<_17.QueryDenomOwnersResponse>; }; - LCDQueryClient: typeof _181.LCDQueryClient; + LCDQueryClient: typeof _182.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -1061,8 +1110,9 @@ export declare namespace cosmos { }; }; MsgSend: { - encode(message: _18.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _18.MsgSend; + typeUrl: string; + encode(message: _18.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgSend; fromJSON(object: any): _18.MsgSend; toJSON(message: _18.MsgSend): unknown; fromPartial(object: Partial<_18.MsgSend>): _18.MsgSend; @@ -1075,8 +1125,9 @@ export declare namespace cosmos { toProtoMsg(message: _18.MsgSend): _18.MsgSendProtoMsg; }; MsgSendResponse: { - encode(_: _18.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _18.MsgSendResponse; + typeUrl: string; + encode(_: _18.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgSendResponse; fromJSON(_: any): _18.MsgSendResponse; toJSON(_: _18.MsgSendResponse): unknown; fromPartial(_: Partial<_18.MsgSendResponse>): _18.MsgSendResponse; @@ -1089,8 +1140,9 @@ export declare namespace cosmos { toProtoMsg(message: _18.MsgSendResponse): _18.MsgSendResponseProtoMsg; }; MsgMultiSend: { - encode(message: _18.MsgMultiSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _18.MsgMultiSend; + typeUrl: string; + encode(message: _18.MsgMultiSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgMultiSend; fromJSON(object: any): _18.MsgMultiSend; toJSON(message: _18.MsgMultiSend): unknown; fromPartial(object: Partial<_18.MsgMultiSend>): _18.MsgMultiSend; @@ -1103,8 +1155,9 @@ export declare namespace cosmos { toProtoMsg(message: _18.MsgMultiSend): _18.MsgMultiSendProtoMsg; }; MsgMultiSendResponse: { - encode(_: _18.MsgMultiSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _18.MsgMultiSendResponse; + typeUrl: string; + encode(_: _18.MsgMultiSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgMultiSendResponse; fromJSON(_: any): _18.MsgMultiSendResponse; toJSON(_: _18.MsgMultiSendResponse): unknown; fromPartial(_: Partial<_18.MsgMultiSendResponse>): _18.MsgMultiSendResponse; @@ -1117,8 +1170,9 @@ export declare namespace cosmos { toProtoMsg(message: _18.MsgMultiSendResponse): _18.MsgMultiSendResponseProtoMsg; }; QueryBalanceRequest: { - encode(message: _17.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryBalanceRequest; + typeUrl: string; + encode(message: _17.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryBalanceRequest; fromJSON(object: any): _17.QueryBalanceRequest; toJSON(message: _17.QueryBalanceRequest): unknown; fromPartial(object: Partial<_17.QueryBalanceRequest>): _17.QueryBalanceRequest; @@ -1131,8 +1185,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryBalanceRequest): _17.QueryBalanceRequestProtoMsg; }; QueryBalanceResponse: { - encode(message: _17.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryBalanceResponse; + typeUrl: string; + encode(message: _17.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryBalanceResponse; fromJSON(object: any): _17.QueryBalanceResponse; toJSON(message: _17.QueryBalanceResponse): unknown; fromPartial(object: Partial<_17.QueryBalanceResponse>): _17.QueryBalanceResponse; @@ -1145,8 +1200,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryBalanceResponse): _17.QueryBalanceResponseProtoMsg; }; QueryAllBalancesRequest: { - encode(message: _17.QueryAllBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryAllBalancesRequest; + typeUrl: string; + encode(message: _17.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryAllBalancesRequest; fromJSON(object: any): _17.QueryAllBalancesRequest; toJSON(message: _17.QueryAllBalancesRequest): unknown; fromPartial(object: Partial<_17.QueryAllBalancesRequest>): _17.QueryAllBalancesRequest; @@ -1159,8 +1215,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryAllBalancesRequest): _17.QueryAllBalancesRequestProtoMsg; }; QueryAllBalancesResponse: { - encode(message: _17.QueryAllBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryAllBalancesResponse; + typeUrl: string; + encode(message: _17.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryAllBalancesResponse; fromJSON(object: any): _17.QueryAllBalancesResponse; toJSON(message: _17.QueryAllBalancesResponse): unknown; fromPartial(object: Partial<_17.QueryAllBalancesResponse>): _17.QueryAllBalancesResponse; @@ -1173,8 +1230,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryAllBalancesResponse): _17.QueryAllBalancesResponseProtoMsg; }; QuerySpendableBalancesRequest: { - encode(message: _17.QuerySpendableBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QuerySpendableBalancesRequest; + typeUrl: string; + encode(message: _17.QuerySpendableBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySpendableBalancesRequest; fromJSON(object: any): _17.QuerySpendableBalancesRequest; toJSON(message: _17.QuerySpendableBalancesRequest): unknown; fromPartial(object: Partial<_17.QuerySpendableBalancesRequest>): _17.QuerySpendableBalancesRequest; @@ -1187,8 +1245,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QuerySpendableBalancesRequest): _17.QuerySpendableBalancesRequestProtoMsg; }; QuerySpendableBalancesResponse: { - encode(message: _17.QuerySpendableBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QuerySpendableBalancesResponse; + typeUrl: string; + encode(message: _17.QuerySpendableBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySpendableBalancesResponse; fromJSON(object: any): _17.QuerySpendableBalancesResponse; toJSON(message: _17.QuerySpendableBalancesResponse): unknown; fromPartial(object: Partial<_17.QuerySpendableBalancesResponse>): _17.QuerySpendableBalancesResponse; @@ -1201,8 +1260,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QuerySpendableBalancesResponse): _17.QuerySpendableBalancesResponseProtoMsg; }; QueryTotalSupplyRequest: { - encode(message: _17.QueryTotalSupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryTotalSupplyRequest; + typeUrl: string; + encode(message: _17.QueryTotalSupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryTotalSupplyRequest; fromJSON(object: any): _17.QueryTotalSupplyRequest; toJSON(message: _17.QueryTotalSupplyRequest): unknown; fromPartial(object: Partial<_17.QueryTotalSupplyRequest>): _17.QueryTotalSupplyRequest; @@ -1215,8 +1275,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryTotalSupplyRequest): _17.QueryTotalSupplyRequestProtoMsg; }; QueryTotalSupplyResponse: { - encode(message: _17.QueryTotalSupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryTotalSupplyResponse; + typeUrl: string; + encode(message: _17.QueryTotalSupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryTotalSupplyResponse; fromJSON(object: any): _17.QueryTotalSupplyResponse; toJSON(message: _17.QueryTotalSupplyResponse): unknown; fromPartial(object: Partial<_17.QueryTotalSupplyResponse>): _17.QueryTotalSupplyResponse; @@ -1229,8 +1290,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryTotalSupplyResponse): _17.QueryTotalSupplyResponseProtoMsg; }; QuerySupplyOfRequest: { - encode(message: _17.QuerySupplyOfRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QuerySupplyOfRequest; + typeUrl: string; + encode(message: _17.QuerySupplyOfRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySupplyOfRequest; fromJSON(object: any): _17.QuerySupplyOfRequest; toJSON(message: _17.QuerySupplyOfRequest): unknown; fromPartial(object: Partial<_17.QuerySupplyOfRequest>): _17.QuerySupplyOfRequest; @@ -1243,8 +1305,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QuerySupplyOfRequest): _17.QuerySupplyOfRequestProtoMsg; }; QuerySupplyOfResponse: { - encode(message: _17.QuerySupplyOfResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QuerySupplyOfResponse; + typeUrl: string; + encode(message: _17.QuerySupplyOfResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySupplyOfResponse; fromJSON(object: any): _17.QuerySupplyOfResponse; toJSON(message: _17.QuerySupplyOfResponse): unknown; fromPartial(object: Partial<_17.QuerySupplyOfResponse>): _17.QuerySupplyOfResponse; @@ -1257,8 +1320,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QuerySupplyOfResponse): _17.QuerySupplyOfResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _17.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryParamsRequest; + typeUrl: string; + encode(_: _17.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryParamsRequest; fromJSON(_: any): _17.QueryParamsRequest; toJSON(_: _17.QueryParamsRequest): unknown; fromPartial(_: Partial<_17.QueryParamsRequest>): _17.QueryParamsRequest; @@ -1271,8 +1335,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryParamsRequest): _17.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _17.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryParamsResponse; + typeUrl: string; + encode(message: _17.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryParamsResponse; fromJSON(object: any): _17.QueryParamsResponse; toJSON(message: _17.QueryParamsResponse): unknown; fromPartial(object: Partial<_17.QueryParamsResponse>): _17.QueryParamsResponse; @@ -1285,8 +1350,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryParamsResponse): _17.QueryParamsResponseProtoMsg; }; QueryDenomsMetadataRequest: { - encode(message: _17.QueryDenomsMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomsMetadataRequest; + typeUrl: string; + encode(message: _17.QueryDenomsMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomsMetadataRequest; fromJSON(object: any): _17.QueryDenomsMetadataRequest; toJSON(message: _17.QueryDenomsMetadataRequest): unknown; fromPartial(object: Partial<_17.QueryDenomsMetadataRequest>): _17.QueryDenomsMetadataRequest; @@ -1299,8 +1365,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomsMetadataRequest): _17.QueryDenomsMetadataRequestProtoMsg; }; QueryDenomsMetadataResponse: { - encode(message: _17.QueryDenomsMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomsMetadataResponse; + typeUrl: string; + encode(message: _17.QueryDenomsMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomsMetadataResponse; fromJSON(object: any): _17.QueryDenomsMetadataResponse; toJSON(message: _17.QueryDenomsMetadataResponse): unknown; fromPartial(object: Partial<_17.QueryDenomsMetadataResponse>): _17.QueryDenomsMetadataResponse; @@ -1313,8 +1380,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomsMetadataResponse): _17.QueryDenomsMetadataResponseProtoMsg; }; QueryDenomMetadataRequest: { - encode(message: _17.QueryDenomMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomMetadataRequest; + typeUrl: string; + encode(message: _17.QueryDenomMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomMetadataRequest; fromJSON(object: any): _17.QueryDenomMetadataRequest; toJSON(message: _17.QueryDenomMetadataRequest): unknown; fromPartial(object: Partial<_17.QueryDenomMetadataRequest>): _17.QueryDenomMetadataRequest; @@ -1327,8 +1395,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomMetadataRequest): _17.QueryDenomMetadataRequestProtoMsg; }; QueryDenomMetadataResponse: { - encode(message: _17.QueryDenomMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomMetadataResponse; + typeUrl: string; + encode(message: _17.QueryDenomMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomMetadataResponse; fromJSON(object: any): _17.QueryDenomMetadataResponse; toJSON(message: _17.QueryDenomMetadataResponse): unknown; fromPartial(object: Partial<_17.QueryDenomMetadataResponse>): _17.QueryDenomMetadataResponse; @@ -1341,8 +1410,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomMetadataResponse): _17.QueryDenomMetadataResponseProtoMsg; }; QueryDenomOwnersRequest: { - encode(message: _17.QueryDenomOwnersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomOwnersRequest; + typeUrl: string; + encode(message: _17.QueryDenomOwnersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomOwnersRequest; fromJSON(object: any): _17.QueryDenomOwnersRequest; toJSON(message: _17.QueryDenomOwnersRequest): unknown; fromPartial(object: Partial<_17.QueryDenomOwnersRequest>): _17.QueryDenomOwnersRequest; @@ -1355,8 +1425,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomOwnersRequest): _17.QueryDenomOwnersRequestProtoMsg; }; DenomOwner: { - encode(message: _17.DenomOwner, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.DenomOwner; + typeUrl: string; + encode(message: _17.DenomOwner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.DenomOwner; fromJSON(object: any): _17.DenomOwner; toJSON(message: _17.DenomOwner): unknown; fromPartial(object: Partial<_17.DenomOwner>): _17.DenomOwner; @@ -1369,8 +1440,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.DenomOwner): _17.DenomOwnerProtoMsg; }; QueryDenomOwnersResponse: { - encode(message: _17.QueryDenomOwnersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _17.QueryDenomOwnersResponse; + typeUrl: string; + encode(message: _17.QueryDenomOwnersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomOwnersResponse; fromJSON(object: any): _17.QueryDenomOwnersResponse; toJSON(message: _17.QueryDenomOwnersResponse): unknown; fromPartial(object: Partial<_17.QueryDenomOwnersResponse>): _17.QueryDenomOwnersResponse; @@ -1383,8 +1455,9 @@ export declare namespace cosmos { toProtoMsg(message: _17.QueryDenomOwnersResponse): _17.QueryDenomOwnersResponseProtoMsg; }; GenesisState: { - encode(message: _16.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _16.GenesisState; + typeUrl: string; + encode(message: _16.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _16.GenesisState; fromJSON(object: any): _16.GenesisState; toJSON(message: _16.GenesisState): unknown; fromPartial(object: Partial<_16.GenesisState>): _16.GenesisState; @@ -1397,8 +1470,9 @@ export declare namespace cosmos { toProtoMsg(message: _16.GenesisState): _16.GenesisStateProtoMsg; }; Balance: { - encode(message: _16.Balance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _16.Balance; + typeUrl: string; + encode(message: _16.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _16.Balance; fromJSON(object: any): _16.Balance; toJSON(message: _16.Balance): unknown; fromPartial(object: Partial<_16.Balance>): _16.Balance; @@ -1411,8 +1485,9 @@ export declare namespace cosmos { toProtoMsg(message: _16.Balance): _16.BalanceProtoMsg; }; Params: { - encode(message: _15.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.Params; + typeUrl: string; + encode(message: _15.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Params; fromJSON(object: any): _15.Params; toJSON(message: _15.Params): unknown; fromPartial(object: Partial<_15.Params>): _15.Params; @@ -1425,8 +1500,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.Params): _15.ParamsProtoMsg; }; SendEnabled: { - encode(message: _15.SendEnabled, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.SendEnabled; + typeUrl: string; + encode(message: _15.SendEnabled, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.SendEnabled; fromJSON(object: any): _15.SendEnabled; toJSON(message: _15.SendEnabled): unknown; fromPartial(object: Partial<_15.SendEnabled>): _15.SendEnabled; @@ -1439,8 +1515,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.SendEnabled): _15.SendEnabledProtoMsg; }; Input: { - encode(message: _15.Input, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.Input; + typeUrl: string; + encode(message: _15.Input, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Input; fromJSON(object: any): _15.Input; toJSON(message: _15.Input): unknown; fromPartial(object: Partial<_15.Input>): _15.Input; @@ -1453,8 +1530,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.Input): _15.InputProtoMsg; }; Output: { - encode(message: _15.Output, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.Output; + typeUrl: string; + encode(message: _15.Output, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Output; fromJSON(object: any): _15.Output; toJSON(message: _15.Output): unknown; fromPartial(object: Partial<_15.Output>): _15.Output; @@ -1467,8 +1545,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.Output): _15.OutputProtoMsg; }; Supply: { - encode(message: _15.Supply, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.Supply; + typeUrl: string; + encode(message: _15.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Supply; fromJSON(object: any): _15.Supply; toJSON(message: _15.Supply): unknown; fromPartial(object: Partial<_15.Supply>): _15.Supply; @@ -1481,8 +1560,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.Supply): _15.SupplyProtoMsg; }; DenomUnit: { - encode(message: _15.DenomUnit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.DenomUnit; + typeUrl: string; + encode(message: _15.DenomUnit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.DenomUnit; fromJSON(object: any): _15.DenomUnit; toJSON(message: _15.DenomUnit): unknown; fromPartial(object: Partial<_15.DenomUnit>): _15.DenomUnit; @@ -1495,8 +1575,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.DenomUnit): _15.DenomUnitProtoMsg; }; Metadata: { - encode(message: _15.Metadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _15.Metadata; + typeUrl: string; + encode(message: _15.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Metadata; fromJSON(object: any): _15.Metadata; toJSON(message: _15.Metadata): unknown; fromPartial(object: Partial<_15.Metadata>): _15.Metadata; @@ -1509,8 +1590,9 @@ export declare namespace cosmos { toProtoMsg(message: _15.Metadata): _15.MetadataProtoMsg; }; SendAuthorization: { - encode(message: _14.SendAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _14.SendAuthorization; + typeUrl: string; + encode(message: _14.SendAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _14.SendAuthorization; fromJSON(object: any): _14.SendAuthorization; toJSON(message: _14.SendAuthorization): unknown; fromPartial(object: Partial<_14.SendAuthorization>): _14.SendAuthorization; @@ -1528,8 +1610,9 @@ export declare namespace cosmos { namespace abci { const v1beta1: { TxResponse: { - encode(message: _19.TxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.TxResponse; + typeUrl: string; + encode(message: _19.TxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.TxResponse; fromJSON(object: any): _19.TxResponse; toJSON(message: _19.TxResponse): unknown; fromPartial(object: Partial<_19.TxResponse>): _19.TxResponse; @@ -1542,8 +1625,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.TxResponse): _19.TxResponseProtoMsg; }; ABCIMessageLog: { - encode(message: _19.ABCIMessageLog, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.ABCIMessageLog; + typeUrl: string; + encode(message: _19.ABCIMessageLog, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.ABCIMessageLog; fromJSON(object: any): _19.ABCIMessageLog; toJSON(message: _19.ABCIMessageLog): unknown; fromPartial(object: Partial<_19.ABCIMessageLog>): _19.ABCIMessageLog; @@ -1556,8 +1640,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.ABCIMessageLog): _19.ABCIMessageLogProtoMsg; }; StringEvent: { - encode(message: _19.StringEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.StringEvent; + typeUrl: string; + encode(message: _19.StringEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.StringEvent; fromJSON(object: any): _19.StringEvent; toJSON(message: _19.StringEvent): unknown; fromPartial(object: Partial<_19.StringEvent>): _19.StringEvent; @@ -1570,8 +1655,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.StringEvent): _19.StringEventProtoMsg; }; Attribute: { - encode(message: _19.Attribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.Attribute; + typeUrl: string; + encode(message: _19.Attribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.Attribute; fromJSON(object: any): _19.Attribute; toJSON(message: _19.Attribute): unknown; fromPartial(object: Partial<_19.Attribute>): _19.Attribute; @@ -1584,8 +1670,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.Attribute): _19.AttributeProtoMsg; }; GasInfo: { - encode(message: _19.GasInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.GasInfo; + typeUrl: string; + encode(message: _19.GasInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.GasInfo; fromJSON(object: any): _19.GasInfo; toJSON(message: _19.GasInfo): unknown; fromPartial(object: Partial<_19.GasInfo>): _19.GasInfo; @@ -1598,8 +1685,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.GasInfo): _19.GasInfoProtoMsg; }; Result: { - encode(message: _19.Result, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.Result; + typeUrl: string; + encode(message: _19.Result, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.Result; fromJSON(object: any): _19.Result; toJSON(message: _19.Result): unknown; fromPartial(object: Partial<_19.Result>): _19.Result; @@ -1612,8 +1700,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.Result): _19.ResultProtoMsg; }; SimulationResponse: { - encode(message: _19.SimulationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.SimulationResponse; + typeUrl: string; + encode(message: _19.SimulationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.SimulationResponse; fromJSON(object: any): _19.SimulationResponse; toJSON(message: _19.SimulationResponse): unknown; fromPartial(object: Partial<_19.SimulationResponse>): _19.SimulationResponse; @@ -1626,8 +1715,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.SimulationResponse): _19.SimulationResponseProtoMsg; }; MsgData: { - encode(message: _19.MsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.MsgData; + typeUrl: string; + encode(message: _19.MsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.MsgData; fromJSON(object: any): _19.MsgData; toJSON(message: _19.MsgData): unknown; fromPartial(object: Partial<_19.MsgData>): _19.MsgData; @@ -1640,8 +1730,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.MsgData): _19.MsgDataProtoMsg; }; TxMsgData: { - encode(message: _19.TxMsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.TxMsgData; + typeUrl: string; + encode(message: _19.TxMsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.TxMsgData; fromJSON(object: any): _19.TxMsgData; toJSON(message: _19.TxMsgData): unknown; fromPartial(object: Partial<_19.TxMsgData>): _19.TxMsgData; @@ -1654,8 +1745,9 @@ export declare namespace cosmos { toProtoMsg(message: _19.TxMsgData): _19.TxMsgDataProtoMsg; }; SearchTxsResult: { - encode(message: _19.SearchTxsResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _19.SearchTxsResult; + typeUrl: string; + encode(message: _19.SearchTxsResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.SearchTxsResult; fromJSON(object: any): _19.SearchTxsResult; toJSON(message: _19.SearchTxsResult): unknown; fromPartial(object: Partial<_19.SearchTxsResult>): _19.SearchTxsResult; @@ -1672,8 +1764,9 @@ export declare namespace cosmos { namespace kv { const v1beta1: { Pairs: { - encode(message: _20.Pairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _20.Pairs; + typeUrl: string; + encode(message: _20.Pairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _20.Pairs; fromJSON(object: any): _20.Pairs; toJSON(message: _20.Pairs): unknown; fromPartial(object: Partial<_20.Pairs>): _20.Pairs; @@ -1686,8 +1779,9 @@ export declare namespace cosmos { toProtoMsg(message: _20.Pairs): _20.PairsProtoMsg; }; Pair: { - encode(message: _20.Pair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _20.Pair; + typeUrl: string; + encode(message: _20.Pair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _20.Pair; fromJSON(object: any): _20.Pair; toJSON(message: _20.Pair): unknown; fromPartial(object: Partial<_20.Pair>): _20.Pair; @@ -1703,14 +1797,15 @@ export declare namespace cosmos { } namespace node { const v1beta1: { - ServiceClientImpl: typeof _201.ServiceClientImpl; + ServiceClientImpl: typeof _202.ServiceClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { config(request?: _21.ConfigRequest | undefined): Promise<_21.ConfigResponse>; }; - LCDQueryClient: typeof _182.LCDQueryClient; + LCDQueryClient: typeof _183.LCDQueryClient; ConfigRequest: { - encode(_: _21.ConfigRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _21.ConfigRequest; + typeUrl: string; + encode(_: _21.ConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _21.ConfigRequest; fromJSON(_: any): _21.ConfigRequest; toJSON(_: _21.ConfigRequest): unknown; fromPartial(_: Partial<_21.ConfigRequest>): _21.ConfigRequest; @@ -1723,8 +1818,9 @@ export declare namespace cosmos { toProtoMsg(message: _21.ConfigRequest): _21.ConfigRequestProtoMsg; }; ConfigResponse: { - encode(message: _21.ConfigResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _21.ConfigResponse; + typeUrl: string; + encode(message: _21.ConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _21.ConfigResponse; fromJSON(object: any): _21.ConfigResponse; toJSON(message: _21.ConfigResponse): unknown; fromPartial(object: Partial<_21.ConfigResponse>): _21.ConfigResponse; @@ -1741,8 +1837,9 @@ export declare namespace cosmos { namespace query { const v1beta1: { PageRequest: { - encode(message: _22.PageRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _22.PageRequest; + typeUrl: string; + encode(message: _22.PageRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _22.PageRequest; fromJSON(object: any): _22.PageRequest; toJSON(message: _22.PageRequest): unknown; fromPartial(object: Partial<_22.PageRequest>): _22.PageRequest; @@ -1755,8 +1852,9 @@ export declare namespace cosmos { toProtoMsg(message: _22.PageRequest): _22.PageRequestProtoMsg; }; PageResponse: { - encode(message: _22.PageResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _22.PageResponse; + typeUrl: string; + encode(message: _22.PageResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _22.PageResponse; fromJSON(object: any): _22.PageResponse; toJSON(message: _22.PageResponse): unknown; fromPartial(object: Partial<_22.PageResponse>): _22.PageResponse; @@ -1773,8 +1871,9 @@ export declare namespace cosmos { namespace reflection { const v1beta1: { ListAllInterfacesRequest: { - encode(_: _23.ListAllInterfacesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _23.ListAllInterfacesRequest; + typeUrl: string; + encode(_: _23.ListAllInterfacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListAllInterfacesRequest; fromJSON(_: any): _23.ListAllInterfacesRequest; toJSON(_: _23.ListAllInterfacesRequest): unknown; fromPartial(_: Partial<_23.ListAllInterfacesRequest>): _23.ListAllInterfacesRequest; @@ -1787,8 +1886,9 @@ export declare namespace cosmos { toProtoMsg(message: _23.ListAllInterfacesRequest): _23.ListAllInterfacesRequestProtoMsg; }; ListAllInterfacesResponse: { - encode(message: _23.ListAllInterfacesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _23.ListAllInterfacesResponse; + typeUrl: string; + encode(message: _23.ListAllInterfacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListAllInterfacesResponse; fromJSON(object: any): _23.ListAllInterfacesResponse; toJSON(message: _23.ListAllInterfacesResponse): unknown; fromPartial(object: Partial<_23.ListAllInterfacesResponse>): _23.ListAllInterfacesResponse; @@ -1801,8 +1901,9 @@ export declare namespace cosmos { toProtoMsg(message: _23.ListAllInterfacesResponse): _23.ListAllInterfacesResponseProtoMsg; }; ListImplementationsRequest: { - encode(message: _23.ListImplementationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _23.ListImplementationsRequest; + typeUrl: string; + encode(message: _23.ListImplementationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListImplementationsRequest; fromJSON(object: any): _23.ListImplementationsRequest; toJSON(message: _23.ListImplementationsRequest): unknown; fromPartial(object: Partial<_23.ListImplementationsRequest>): _23.ListImplementationsRequest; @@ -1815,8 +1916,9 @@ export declare namespace cosmos { toProtoMsg(message: _23.ListImplementationsRequest): _23.ListImplementationsRequestProtoMsg; }; ListImplementationsResponse: { - encode(message: _23.ListImplementationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _23.ListImplementationsResponse; + typeUrl: string; + encode(message: _23.ListImplementationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListImplementationsResponse; fromJSON(object: any): _23.ListImplementationsResponse; toJSON(message: _23.ListImplementationsResponse): unknown; fromPartial(object: Partial<_23.ListImplementationsResponse>): _23.ListImplementationsResponse; @@ -1831,8 +1933,9 @@ export declare namespace cosmos { }; const v2alpha1: { AppDescriptor: { - encode(message: _24.AppDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.AppDescriptor; + typeUrl: string; + encode(message: _24.AppDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.AppDescriptor; fromJSON(object: any): _24.AppDescriptor; toJSON(message: _24.AppDescriptor): unknown; fromPartial(object: Partial<_24.AppDescriptor>): _24.AppDescriptor; @@ -1845,8 +1948,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.AppDescriptor): _24.AppDescriptorProtoMsg; }; TxDescriptor: { - encode(message: _24.TxDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.TxDescriptor; + typeUrl: string; + encode(message: _24.TxDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.TxDescriptor; fromJSON(object: any): _24.TxDescriptor; toJSON(message: _24.TxDescriptor): unknown; fromPartial(object: Partial<_24.TxDescriptor>): _24.TxDescriptor; @@ -1859,8 +1963,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.TxDescriptor): _24.TxDescriptorProtoMsg; }; AuthnDescriptor: { - encode(message: _24.AuthnDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.AuthnDescriptor; + typeUrl: string; + encode(message: _24.AuthnDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.AuthnDescriptor; fromJSON(object: any): _24.AuthnDescriptor; toJSON(message: _24.AuthnDescriptor): unknown; fromPartial(object: Partial<_24.AuthnDescriptor>): _24.AuthnDescriptor; @@ -1873,8 +1978,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.AuthnDescriptor): _24.AuthnDescriptorProtoMsg; }; SigningModeDescriptor: { - encode(message: _24.SigningModeDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.SigningModeDescriptor; + typeUrl: string; + encode(message: _24.SigningModeDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.SigningModeDescriptor; fromJSON(object: any): _24.SigningModeDescriptor; toJSON(message: _24.SigningModeDescriptor): unknown; fromPartial(object: Partial<_24.SigningModeDescriptor>): _24.SigningModeDescriptor; @@ -1887,8 +1993,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.SigningModeDescriptor): _24.SigningModeDescriptorProtoMsg; }; ChainDescriptor: { - encode(message: _24.ChainDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.ChainDescriptor; + typeUrl: string; + encode(message: _24.ChainDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.ChainDescriptor; fromJSON(object: any): _24.ChainDescriptor; toJSON(message: _24.ChainDescriptor): unknown; fromPartial(object: Partial<_24.ChainDescriptor>): _24.ChainDescriptor; @@ -1901,8 +2008,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.ChainDescriptor): _24.ChainDescriptorProtoMsg; }; CodecDescriptor: { - encode(message: _24.CodecDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.CodecDescriptor; + typeUrl: string; + encode(message: _24.CodecDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.CodecDescriptor; fromJSON(object: any): _24.CodecDescriptor; toJSON(message: _24.CodecDescriptor): unknown; fromPartial(object: Partial<_24.CodecDescriptor>): _24.CodecDescriptor; @@ -1915,8 +2023,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.CodecDescriptor): _24.CodecDescriptorProtoMsg; }; InterfaceDescriptor: { - encode(message: _24.InterfaceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.InterfaceDescriptor; + typeUrl: string; + encode(message: _24.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceDescriptor; fromJSON(object: any): _24.InterfaceDescriptor; toJSON(message: _24.InterfaceDescriptor): unknown; fromPartial(object: Partial<_24.InterfaceDescriptor>): _24.InterfaceDescriptor; @@ -1929,8 +2038,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.InterfaceDescriptor): _24.InterfaceDescriptorProtoMsg; }; InterfaceImplementerDescriptor: { - encode(message: _24.InterfaceImplementerDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.InterfaceImplementerDescriptor; + typeUrl: string; + encode(message: _24.InterfaceImplementerDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceImplementerDescriptor; fromJSON(object: any): _24.InterfaceImplementerDescriptor; toJSON(message: _24.InterfaceImplementerDescriptor): unknown; fromPartial(object: Partial<_24.InterfaceImplementerDescriptor>): _24.InterfaceImplementerDescriptor; @@ -1943,8 +2053,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.InterfaceImplementerDescriptor): _24.InterfaceImplementerDescriptorProtoMsg; }; InterfaceAcceptingMessageDescriptor: { - encode(message: _24.InterfaceAcceptingMessageDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.InterfaceAcceptingMessageDescriptor; + typeUrl: string; + encode(message: _24.InterfaceAcceptingMessageDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceAcceptingMessageDescriptor; fromJSON(object: any): _24.InterfaceAcceptingMessageDescriptor; toJSON(message: _24.InterfaceAcceptingMessageDescriptor): unknown; fromPartial(object: Partial<_24.InterfaceAcceptingMessageDescriptor>): _24.InterfaceAcceptingMessageDescriptor; @@ -1957,8 +2068,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.InterfaceAcceptingMessageDescriptor): _24.InterfaceAcceptingMessageDescriptorProtoMsg; }; ConfigurationDescriptor: { - encode(message: _24.ConfigurationDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.ConfigurationDescriptor; + typeUrl: string; + encode(message: _24.ConfigurationDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.ConfigurationDescriptor; fromJSON(object: any): _24.ConfigurationDescriptor; toJSON(message: _24.ConfigurationDescriptor): unknown; fromPartial(object: Partial<_24.ConfigurationDescriptor>): _24.ConfigurationDescriptor; @@ -1971,8 +2083,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.ConfigurationDescriptor): _24.ConfigurationDescriptorProtoMsg; }; MsgDescriptor: { - encode(message: _24.MsgDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.MsgDescriptor; + typeUrl: string; + encode(message: _24.MsgDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.MsgDescriptor; fromJSON(object: any): _24.MsgDescriptor; toJSON(message: _24.MsgDescriptor): unknown; fromPartial(object: Partial<_24.MsgDescriptor>): _24.MsgDescriptor; @@ -1985,8 +2098,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.MsgDescriptor): _24.MsgDescriptorProtoMsg; }; GetAuthnDescriptorRequest: { - encode(_: _24.GetAuthnDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetAuthnDescriptorRequest; + typeUrl: string; + encode(_: _24.GetAuthnDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetAuthnDescriptorRequest; fromJSON(_: any): _24.GetAuthnDescriptorRequest; toJSON(_: _24.GetAuthnDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetAuthnDescriptorRequest>): _24.GetAuthnDescriptorRequest; @@ -1999,8 +2113,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetAuthnDescriptorRequest): _24.GetAuthnDescriptorRequestProtoMsg; }; GetAuthnDescriptorResponse: { - encode(message: _24.GetAuthnDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetAuthnDescriptorResponse; + typeUrl: string; + encode(message: _24.GetAuthnDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetAuthnDescriptorResponse; fromJSON(object: any): _24.GetAuthnDescriptorResponse; toJSON(message: _24.GetAuthnDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetAuthnDescriptorResponse>): _24.GetAuthnDescriptorResponse; @@ -2013,8 +2128,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetAuthnDescriptorResponse): _24.GetAuthnDescriptorResponseProtoMsg; }; GetChainDescriptorRequest: { - encode(_: _24.GetChainDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetChainDescriptorRequest; + typeUrl: string; + encode(_: _24.GetChainDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetChainDescriptorRequest; fromJSON(_: any): _24.GetChainDescriptorRequest; toJSON(_: _24.GetChainDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetChainDescriptorRequest>): _24.GetChainDescriptorRequest; @@ -2027,8 +2143,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetChainDescriptorRequest): _24.GetChainDescriptorRequestProtoMsg; }; GetChainDescriptorResponse: { - encode(message: _24.GetChainDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetChainDescriptorResponse; + typeUrl: string; + encode(message: _24.GetChainDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetChainDescriptorResponse; fromJSON(object: any): _24.GetChainDescriptorResponse; toJSON(message: _24.GetChainDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetChainDescriptorResponse>): _24.GetChainDescriptorResponse; @@ -2041,8 +2158,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetChainDescriptorResponse): _24.GetChainDescriptorResponseProtoMsg; }; GetCodecDescriptorRequest: { - encode(_: _24.GetCodecDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetCodecDescriptorRequest; + typeUrl: string; + encode(_: _24.GetCodecDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetCodecDescriptorRequest; fromJSON(_: any): _24.GetCodecDescriptorRequest; toJSON(_: _24.GetCodecDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetCodecDescriptorRequest>): _24.GetCodecDescriptorRequest; @@ -2055,8 +2173,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetCodecDescriptorRequest): _24.GetCodecDescriptorRequestProtoMsg; }; GetCodecDescriptorResponse: { - encode(message: _24.GetCodecDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetCodecDescriptorResponse; + typeUrl: string; + encode(message: _24.GetCodecDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetCodecDescriptorResponse; fromJSON(object: any): _24.GetCodecDescriptorResponse; toJSON(message: _24.GetCodecDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetCodecDescriptorResponse>): _24.GetCodecDescriptorResponse; @@ -2069,8 +2188,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetCodecDescriptorResponse): _24.GetCodecDescriptorResponseProtoMsg; }; GetConfigurationDescriptorRequest: { - encode(_: _24.GetConfigurationDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetConfigurationDescriptorRequest; + typeUrl: string; + encode(_: _24.GetConfigurationDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetConfigurationDescriptorRequest; fromJSON(_: any): _24.GetConfigurationDescriptorRequest; toJSON(_: _24.GetConfigurationDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetConfigurationDescriptorRequest>): _24.GetConfigurationDescriptorRequest; @@ -2083,8 +2203,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetConfigurationDescriptorRequest): _24.GetConfigurationDescriptorRequestProtoMsg; }; GetConfigurationDescriptorResponse: { - encode(message: _24.GetConfigurationDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetConfigurationDescriptorResponse; + typeUrl: string; + encode(message: _24.GetConfigurationDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetConfigurationDescriptorResponse; fromJSON(object: any): _24.GetConfigurationDescriptorResponse; toJSON(message: _24.GetConfigurationDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetConfigurationDescriptorResponse>): _24.GetConfigurationDescriptorResponse; @@ -2097,8 +2218,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetConfigurationDescriptorResponse): _24.GetConfigurationDescriptorResponseProtoMsg; }; GetQueryServicesDescriptorRequest: { - encode(_: _24.GetQueryServicesDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetQueryServicesDescriptorRequest; + typeUrl: string; + encode(_: _24.GetQueryServicesDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetQueryServicesDescriptorRequest; fromJSON(_: any): _24.GetQueryServicesDescriptorRequest; toJSON(_: _24.GetQueryServicesDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetQueryServicesDescriptorRequest>): _24.GetQueryServicesDescriptorRequest; @@ -2111,8 +2233,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetQueryServicesDescriptorRequest): _24.GetQueryServicesDescriptorRequestProtoMsg; }; GetQueryServicesDescriptorResponse: { - encode(message: _24.GetQueryServicesDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetQueryServicesDescriptorResponse; + typeUrl: string; + encode(message: _24.GetQueryServicesDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetQueryServicesDescriptorResponse; fromJSON(object: any): _24.GetQueryServicesDescriptorResponse; toJSON(message: _24.GetQueryServicesDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetQueryServicesDescriptorResponse>): _24.GetQueryServicesDescriptorResponse; @@ -2125,8 +2248,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetQueryServicesDescriptorResponse): _24.GetQueryServicesDescriptorResponseProtoMsg; }; GetTxDescriptorRequest: { - encode(_: _24.GetTxDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetTxDescriptorRequest; + typeUrl: string; + encode(_: _24.GetTxDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetTxDescriptorRequest; fromJSON(_: any): _24.GetTxDescriptorRequest; toJSON(_: _24.GetTxDescriptorRequest): unknown; fromPartial(_: Partial<_24.GetTxDescriptorRequest>): _24.GetTxDescriptorRequest; @@ -2139,8 +2263,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetTxDescriptorRequest): _24.GetTxDescriptorRequestProtoMsg; }; GetTxDescriptorResponse: { - encode(message: _24.GetTxDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.GetTxDescriptorResponse; + typeUrl: string; + encode(message: _24.GetTxDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetTxDescriptorResponse; fromJSON(object: any): _24.GetTxDescriptorResponse; toJSON(message: _24.GetTxDescriptorResponse): unknown; fromPartial(object: Partial<_24.GetTxDescriptorResponse>): _24.GetTxDescriptorResponse; @@ -2153,8 +2278,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.GetTxDescriptorResponse): _24.GetTxDescriptorResponseProtoMsg; }; QueryServicesDescriptor: { - encode(message: _24.QueryServicesDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.QueryServicesDescriptor; + typeUrl: string; + encode(message: _24.QueryServicesDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryServicesDescriptor; fromJSON(object: any): _24.QueryServicesDescriptor; toJSON(message: _24.QueryServicesDescriptor): unknown; fromPartial(object: Partial<_24.QueryServicesDescriptor>): _24.QueryServicesDescriptor; @@ -2167,8 +2293,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.QueryServicesDescriptor): _24.QueryServicesDescriptorProtoMsg; }; QueryServiceDescriptor: { - encode(message: _24.QueryServiceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.QueryServiceDescriptor; + typeUrl: string; + encode(message: _24.QueryServiceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryServiceDescriptor; fromJSON(object: any): _24.QueryServiceDescriptor; toJSON(message: _24.QueryServiceDescriptor): unknown; fromPartial(object: Partial<_24.QueryServiceDescriptor>): _24.QueryServiceDescriptor; @@ -2181,8 +2308,9 @@ export declare namespace cosmos { toProtoMsg(message: _24.QueryServiceDescriptor): _24.QueryServiceDescriptorProtoMsg; }; QueryMethodDescriptor: { - encode(message: _24.QueryMethodDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _24.QueryMethodDescriptor; + typeUrl: string; + encode(message: _24.QueryMethodDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryMethodDescriptor; fromJSON(object: any): _24.QueryMethodDescriptor; toJSON(message: _24.QueryMethodDescriptor): unknown; fromPartial(object: Partial<_24.QueryMethodDescriptor>): _24.QueryMethodDescriptor; @@ -2199,8 +2327,9 @@ export declare namespace cosmos { namespace snapshots { const v1beta1: { Snapshot: { - encode(message: _25.Snapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.Snapshot; + typeUrl: string; + encode(message: _25.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.Snapshot; fromJSON(object: any): _25.Snapshot; toJSON(message: _25.Snapshot): unknown; fromPartial(object: Partial<_25.Snapshot>): _25.Snapshot; @@ -2213,8 +2342,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.Snapshot): _25.SnapshotProtoMsg; }; Metadata: { - encode(message: _25.Metadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.Metadata; + typeUrl: string; + encode(message: _25.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.Metadata; fromJSON(object: any): _25.Metadata; toJSON(message: _25.Metadata): unknown; fromPartial(object: Partial<_25.Metadata>): _25.Metadata; @@ -2227,8 +2357,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.Metadata): _25.MetadataProtoMsg; }; SnapshotItem: { - encode(message: _25.SnapshotItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotItem; + typeUrl: string; + encode(message: _25.SnapshotItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotItem; fromJSON(object: any): _25.SnapshotItem; toJSON(message: _25.SnapshotItem): unknown; fromPartial(object: Partial<_25.SnapshotItem>): _25.SnapshotItem; @@ -2241,8 +2372,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotItem): _25.SnapshotItemProtoMsg; }; SnapshotStoreItem: { - encode(message: _25.SnapshotStoreItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotStoreItem; + typeUrl: string; + encode(message: _25.SnapshotStoreItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotStoreItem; fromJSON(object: any): _25.SnapshotStoreItem; toJSON(message: _25.SnapshotStoreItem): unknown; fromPartial(object: Partial<_25.SnapshotStoreItem>): _25.SnapshotStoreItem; @@ -2255,8 +2387,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotStoreItem): _25.SnapshotStoreItemProtoMsg; }; SnapshotIAVLItem: { - encode(message: _25.SnapshotIAVLItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotIAVLItem; + typeUrl: string; + encode(message: _25.SnapshotIAVLItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotIAVLItem; fromJSON(object: any): _25.SnapshotIAVLItem; toJSON(message: _25.SnapshotIAVLItem): unknown; fromPartial(object: Partial<_25.SnapshotIAVLItem>): _25.SnapshotIAVLItem; @@ -2269,8 +2402,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotIAVLItem): _25.SnapshotIAVLItemProtoMsg; }; SnapshotExtensionMeta: { - encode(message: _25.SnapshotExtensionMeta, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotExtensionMeta; + typeUrl: string; + encode(message: _25.SnapshotExtensionMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotExtensionMeta; fromJSON(object: any): _25.SnapshotExtensionMeta; toJSON(message: _25.SnapshotExtensionMeta): unknown; fromPartial(object: Partial<_25.SnapshotExtensionMeta>): _25.SnapshotExtensionMeta; @@ -2283,8 +2417,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotExtensionMeta): _25.SnapshotExtensionMetaProtoMsg; }; SnapshotExtensionPayload: { - encode(message: _25.SnapshotExtensionPayload, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotExtensionPayload; + typeUrl: string; + encode(message: _25.SnapshotExtensionPayload, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotExtensionPayload; fromJSON(object: any): _25.SnapshotExtensionPayload; toJSON(message: _25.SnapshotExtensionPayload): unknown; fromPartial(object: Partial<_25.SnapshotExtensionPayload>): _25.SnapshotExtensionPayload; @@ -2297,8 +2432,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotExtensionPayload): _25.SnapshotExtensionPayloadProtoMsg; }; SnapshotKVItem: { - encode(message: _25.SnapshotKVItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotKVItem; + typeUrl: string; + encode(message: _25.SnapshotKVItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotKVItem; fromJSON(object: any): _25.SnapshotKVItem; toJSON(message: _25.SnapshotKVItem): unknown; fromPartial(object: Partial<_25.SnapshotKVItem>): _25.SnapshotKVItem; @@ -2311,8 +2447,9 @@ export declare namespace cosmos { toProtoMsg(message: _25.SnapshotKVItem): _25.SnapshotKVItemProtoMsg; }; SnapshotSchema: { - encode(message: _25.SnapshotSchema, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _25.SnapshotSchema; + typeUrl: string; + encode(message: _25.SnapshotSchema, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotSchema; fromJSON(object: any): _25.SnapshotSchema; toJSON(message: _25.SnapshotSchema): unknown; fromPartial(object: Partial<_25.SnapshotSchema>): _25.SnapshotSchema; @@ -2329,8 +2466,9 @@ export declare namespace cosmos { namespace store { const v1beta1: { StoreKVPair: { - encode(message: _27.StoreKVPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _27.StoreKVPair; + typeUrl: string; + encode(message: _27.StoreKVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.StoreKVPair; fromJSON(object: any): _27.StoreKVPair; toJSON(message: _27.StoreKVPair): unknown; fromPartial(object: Partial<_27.StoreKVPair>): _27.StoreKVPair; @@ -2343,8 +2481,9 @@ export declare namespace cosmos { toProtoMsg(message: _27.StoreKVPair): _27.StoreKVPairProtoMsg; }; BlockMetadata: { - encode(message: _27.BlockMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _27.BlockMetadata; + typeUrl: string; + encode(message: _27.BlockMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.BlockMetadata; fromJSON(object: any): _27.BlockMetadata; toJSON(message: _27.BlockMetadata): unknown; fromPartial(object: Partial<_27.BlockMetadata>): _27.BlockMetadata; @@ -2357,8 +2496,9 @@ export declare namespace cosmos { toProtoMsg(message: _27.BlockMetadata): _27.BlockMetadataProtoMsg; }; BlockMetadata_DeliverTx: { - encode(message: _27.BlockMetadata_DeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _27.BlockMetadata_DeliverTx; + typeUrl: string; + encode(message: _27.BlockMetadata_DeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.BlockMetadata_DeliverTx; fromJSON(object: any): _27.BlockMetadata_DeliverTx; toJSON(message: _27.BlockMetadata_DeliverTx): unknown; fromPartial(object: Partial<_27.BlockMetadata_DeliverTx>): _27.BlockMetadata_DeliverTx; @@ -2371,8 +2511,9 @@ export declare namespace cosmos { toProtoMsg(message: _27.BlockMetadata_DeliverTx): _27.BlockMetadata_DeliverTxProtoMsg; }; CommitInfo: { - encode(message: _26.CommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _26.CommitInfo; + typeUrl: string; + encode(message: _26.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.CommitInfo; fromJSON(object: any): _26.CommitInfo; toJSON(message: _26.CommitInfo): unknown; fromPartial(object: Partial<_26.CommitInfo>): _26.CommitInfo; @@ -2385,8 +2526,9 @@ export declare namespace cosmos { toProtoMsg(message: _26.CommitInfo): _26.CommitInfoProtoMsg; }; StoreInfo: { - encode(message: _26.StoreInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _26.StoreInfo; + typeUrl: string; + encode(message: _26.StoreInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.StoreInfo; fromJSON(object: any): _26.StoreInfo; toJSON(message: _26.StoreInfo): unknown; fromPartial(object: Partial<_26.StoreInfo>): _26.StoreInfo; @@ -2399,8 +2541,9 @@ export declare namespace cosmos { toProtoMsg(message: _26.StoreInfo): _26.StoreInfoProtoMsg; }; CommitID: { - encode(message: _26.CommitID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _26.CommitID; + typeUrl: string; + encode(message: _26.CommitID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.CommitID; fromJSON(object: any): _26.CommitID; toJSON(message: _26.CommitID): unknown; fromPartial(object: Partial<_26.CommitID>): _26.CommitID; @@ -2416,7 +2559,7 @@ export declare namespace cosmos { } namespace tendermint { const v1beta1: { - ServiceClientImpl: typeof _202.ServiceClientImpl; + ServiceClientImpl: typeof _203.ServiceClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { getNodeInfo(request?: _28.GetNodeInfoRequest | undefined): Promise<_28.GetNodeInfoResponse>; getSyncing(request?: _28.GetSyncingRequest | undefined): Promise<_28.GetSyncingResponse>; @@ -2426,10 +2569,11 @@ export declare namespace cosmos { getValidatorSetByHeight(request: _28.GetValidatorSetByHeightRequest): Promise<_28.GetValidatorSetByHeightResponse>; aBCIQuery(request: _28.ABCIQueryRequest): Promise<_28.ABCIQueryResponse>; }; - LCDQueryClient: typeof _183.LCDQueryClient; + LCDQueryClient: typeof _184.LCDQueryClient; Block: { - encode(message: _29.Block, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _29.Block; + typeUrl: string; + encode(message: _29.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _29.Block; fromJSON(object: any): _29.Block; toJSON(message: _29.Block): unknown; fromPartial(object: Partial<_29.Block>): _29.Block; @@ -2442,8 +2586,9 @@ export declare namespace cosmos { toProtoMsg(message: _29.Block): _29.BlockProtoMsg; }; Header: { - encode(message: _29.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _29.Header; + typeUrl: string; + encode(message: _29.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _29.Header; fromJSON(object: any): _29.Header; toJSON(message: _29.Header): unknown; fromPartial(object: Partial<_29.Header>): _29.Header; @@ -2456,8 +2601,9 @@ export declare namespace cosmos { toProtoMsg(message: _29.Header): _29.HeaderProtoMsg; }; GetValidatorSetByHeightRequest: { - encode(message: _28.GetValidatorSetByHeightRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetValidatorSetByHeightRequest; + typeUrl: string; + encode(message: _28.GetValidatorSetByHeightRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetValidatorSetByHeightRequest; fromJSON(object: any): _28.GetValidatorSetByHeightRequest; toJSON(message: _28.GetValidatorSetByHeightRequest): unknown; fromPartial(object: Partial<_28.GetValidatorSetByHeightRequest>): _28.GetValidatorSetByHeightRequest; @@ -2470,8 +2616,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetValidatorSetByHeightRequest): _28.GetValidatorSetByHeightRequestProtoMsg; }; GetValidatorSetByHeightResponse: { - encode(message: _28.GetValidatorSetByHeightResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetValidatorSetByHeightResponse; + typeUrl: string; + encode(message: _28.GetValidatorSetByHeightResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetValidatorSetByHeightResponse; fromJSON(object: any): _28.GetValidatorSetByHeightResponse; toJSON(message: _28.GetValidatorSetByHeightResponse): unknown; fromPartial(object: Partial<_28.GetValidatorSetByHeightResponse>): _28.GetValidatorSetByHeightResponse; @@ -2484,8 +2631,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetValidatorSetByHeightResponse): _28.GetValidatorSetByHeightResponseProtoMsg; }; GetLatestValidatorSetRequest: { - encode(message: _28.GetLatestValidatorSetRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetLatestValidatorSetRequest; + typeUrl: string; + encode(message: _28.GetLatestValidatorSetRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestValidatorSetRequest; fromJSON(object: any): _28.GetLatestValidatorSetRequest; toJSON(message: _28.GetLatestValidatorSetRequest): unknown; fromPartial(object: Partial<_28.GetLatestValidatorSetRequest>): _28.GetLatestValidatorSetRequest; @@ -2498,8 +2646,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetLatestValidatorSetRequest): _28.GetLatestValidatorSetRequestProtoMsg; }; GetLatestValidatorSetResponse: { - encode(message: _28.GetLatestValidatorSetResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetLatestValidatorSetResponse; + typeUrl: string; + encode(message: _28.GetLatestValidatorSetResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestValidatorSetResponse; fromJSON(object: any): _28.GetLatestValidatorSetResponse; toJSON(message: _28.GetLatestValidatorSetResponse): unknown; fromPartial(object: Partial<_28.GetLatestValidatorSetResponse>): _28.GetLatestValidatorSetResponse; @@ -2512,8 +2661,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetLatestValidatorSetResponse): _28.GetLatestValidatorSetResponseProtoMsg; }; Validator: { - encode(message: _28.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.Validator; + typeUrl: string; + encode(message: _28.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.Validator; fromJSON(object: any): _28.Validator; toJSON(message: _28.Validator): unknown; fromPartial(object: Partial<_28.Validator>): _28.Validator; @@ -2526,8 +2676,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.Validator): _28.ValidatorProtoMsg; }; GetBlockByHeightRequest: { - encode(message: _28.GetBlockByHeightRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetBlockByHeightRequest; + typeUrl: string; + encode(message: _28.GetBlockByHeightRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetBlockByHeightRequest; fromJSON(object: any): _28.GetBlockByHeightRequest; toJSON(message: _28.GetBlockByHeightRequest): unknown; fromPartial(object: Partial<_28.GetBlockByHeightRequest>): _28.GetBlockByHeightRequest; @@ -2540,8 +2691,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetBlockByHeightRequest): _28.GetBlockByHeightRequestProtoMsg; }; GetBlockByHeightResponse: { - encode(message: _28.GetBlockByHeightResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetBlockByHeightResponse; + typeUrl: string; + encode(message: _28.GetBlockByHeightResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetBlockByHeightResponse; fromJSON(object: any): _28.GetBlockByHeightResponse; toJSON(message: _28.GetBlockByHeightResponse): unknown; fromPartial(object: Partial<_28.GetBlockByHeightResponse>): _28.GetBlockByHeightResponse; @@ -2554,8 +2706,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetBlockByHeightResponse): _28.GetBlockByHeightResponseProtoMsg; }; GetLatestBlockRequest: { - encode(_: _28.GetLatestBlockRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetLatestBlockRequest; + typeUrl: string; + encode(_: _28.GetLatestBlockRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestBlockRequest; fromJSON(_: any): _28.GetLatestBlockRequest; toJSON(_: _28.GetLatestBlockRequest): unknown; fromPartial(_: Partial<_28.GetLatestBlockRequest>): _28.GetLatestBlockRequest; @@ -2568,8 +2721,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetLatestBlockRequest): _28.GetLatestBlockRequestProtoMsg; }; GetLatestBlockResponse: { - encode(message: _28.GetLatestBlockResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetLatestBlockResponse; + typeUrl: string; + encode(message: _28.GetLatestBlockResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestBlockResponse; fromJSON(object: any): _28.GetLatestBlockResponse; toJSON(message: _28.GetLatestBlockResponse): unknown; fromPartial(object: Partial<_28.GetLatestBlockResponse>): _28.GetLatestBlockResponse; @@ -2582,8 +2736,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetLatestBlockResponse): _28.GetLatestBlockResponseProtoMsg; }; GetSyncingRequest: { - encode(_: _28.GetSyncingRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetSyncingRequest; + typeUrl: string; + encode(_: _28.GetSyncingRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetSyncingRequest; fromJSON(_: any): _28.GetSyncingRequest; toJSON(_: _28.GetSyncingRequest): unknown; fromPartial(_: Partial<_28.GetSyncingRequest>): _28.GetSyncingRequest; @@ -2596,8 +2751,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetSyncingRequest): _28.GetSyncingRequestProtoMsg; }; GetSyncingResponse: { - encode(message: _28.GetSyncingResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetSyncingResponse; + typeUrl: string; + encode(message: _28.GetSyncingResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetSyncingResponse; fromJSON(object: any): _28.GetSyncingResponse; toJSON(message: _28.GetSyncingResponse): unknown; fromPartial(object: Partial<_28.GetSyncingResponse>): _28.GetSyncingResponse; @@ -2610,8 +2766,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetSyncingResponse): _28.GetSyncingResponseProtoMsg; }; GetNodeInfoRequest: { - encode(_: _28.GetNodeInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetNodeInfoRequest; + typeUrl: string; + encode(_: _28.GetNodeInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetNodeInfoRequest; fromJSON(_: any): _28.GetNodeInfoRequest; toJSON(_: _28.GetNodeInfoRequest): unknown; fromPartial(_: Partial<_28.GetNodeInfoRequest>): _28.GetNodeInfoRequest; @@ -2624,8 +2781,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetNodeInfoRequest): _28.GetNodeInfoRequestProtoMsg; }; GetNodeInfoResponse: { - encode(message: _28.GetNodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.GetNodeInfoResponse; + typeUrl: string; + encode(message: _28.GetNodeInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetNodeInfoResponse; fromJSON(object: any): _28.GetNodeInfoResponse; toJSON(message: _28.GetNodeInfoResponse): unknown; fromPartial(object: Partial<_28.GetNodeInfoResponse>): _28.GetNodeInfoResponse; @@ -2638,8 +2796,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.GetNodeInfoResponse): _28.GetNodeInfoResponseProtoMsg; }; VersionInfo: { - encode(message: _28.VersionInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.VersionInfo; + typeUrl: string; + encode(message: _28.VersionInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.VersionInfo; fromJSON(object: any): _28.VersionInfo; toJSON(message: _28.VersionInfo): unknown; fromPartial(object: Partial<_28.VersionInfo>): _28.VersionInfo; @@ -2652,8 +2811,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.VersionInfo): _28.VersionInfoProtoMsg; }; Module: { - encode(message: _28.Module, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.Module; + typeUrl: string; + encode(message: _28.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.Module; fromJSON(object: any): _28.Module; toJSON(message: _28.Module): unknown; fromPartial(object: Partial<_28.Module>): _28.Module; @@ -2666,8 +2826,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.Module): _28.ModuleProtoMsg; }; ABCIQueryRequest: { - encode(message: _28.ABCIQueryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.ABCIQueryRequest; + typeUrl: string; + encode(message: _28.ABCIQueryRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ABCIQueryRequest; fromJSON(object: any): _28.ABCIQueryRequest; toJSON(message: _28.ABCIQueryRequest): unknown; fromPartial(object: Partial<_28.ABCIQueryRequest>): _28.ABCIQueryRequest; @@ -2680,8 +2841,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.ABCIQueryRequest): _28.ABCIQueryRequestProtoMsg; }; ABCIQueryResponse: { - encode(message: _28.ABCIQueryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.ABCIQueryResponse; + typeUrl: string; + encode(message: _28.ABCIQueryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ABCIQueryResponse; fromJSON(object: any): _28.ABCIQueryResponse; toJSON(message: _28.ABCIQueryResponse): unknown; fromPartial(object: Partial<_28.ABCIQueryResponse>): _28.ABCIQueryResponse; @@ -2694,8 +2856,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.ABCIQueryResponse): _28.ABCIQueryResponseProtoMsg; }; ProofOp: { - encode(message: _28.ProofOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.ProofOp; + typeUrl: string; + encode(message: _28.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ProofOp; fromJSON(object: any): _28.ProofOp; toJSON(message: _28.ProofOp): unknown; fromPartial(object: Partial<_28.ProofOp>): _28.ProofOp; @@ -2708,8 +2871,9 @@ export declare namespace cosmos { toProtoMsg(message: _28.ProofOp): _28.ProofOpProtoMsg; }; ProofOps: { - encode(message: _28.ProofOps, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _28.ProofOps; + typeUrl: string; + encode(message: _28.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ProofOps; fromJSON(object: any): _28.ProofOps; toJSON(message: _28.ProofOps): unknown; fromPartial(object: Partial<_28.ProofOps>): _28.ProofOps; @@ -2725,8 +2889,9 @@ export declare namespace cosmos { } const v1beta1: { Coin: { - encode(message: _30.Coin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _30.Coin; + typeUrl: string; + encode(message: _30.Coin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.Coin; fromJSON(object: any): _30.Coin; toJSON(message: _30.Coin): unknown; fromPartial(object: Partial<_30.Coin>): _30.Coin; @@ -2739,8 +2904,9 @@ export declare namespace cosmos { toProtoMsg(message: _30.Coin): _30.CoinProtoMsg; }; DecCoin: { - encode(message: _30.DecCoin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _30.DecCoin; + typeUrl: string; + encode(message: _30.DecCoin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.DecCoin; fromJSON(object: any): _30.DecCoin; toJSON(message: _30.DecCoin): unknown; fromPartial(object: Partial<_30.DecCoin>): _30.DecCoin; @@ -2753,8 +2919,9 @@ export declare namespace cosmos { toProtoMsg(message: _30.DecCoin): _30.DecCoinProtoMsg; }; IntProto: { - encode(message: _30.IntProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _30.IntProto; + typeUrl: string; + encode(message: _30.IntProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.IntProto; fromJSON(object: any): _30.IntProto; toJSON(message: _30.IntProto): unknown; fromPartial(object: Partial<_30.IntProto>): _30.IntProto; @@ -2767,8 +2934,9 @@ export declare namespace cosmos { toProtoMsg(message: _30.IntProto): _30.IntProtoProtoMsg; }; DecProto: { - encode(message: _30.DecProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _30.DecProto; + typeUrl: string; + encode(message: _30.DecProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.DecProto; fromJSON(object: any): _30.DecProto; toJSON(message: _30.DecProto): unknown; fromPartial(object: Partial<_30.DecProto>): _30.DecProto; @@ -2785,8 +2953,9 @@ export declare namespace cosmos { namespace capability { const v1beta1: { GenesisOwners: { - encode(message: _32.GenesisOwners, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _32.GenesisOwners; + typeUrl: string; + encode(message: _32.GenesisOwners, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _32.GenesisOwners; fromJSON(object: any): _32.GenesisOwners; toJSON(message: _32.GenesisOwners): unknown; fromPartial(object: Partial<_32.GenesisOwners>): _32.GenesisOwners; @@ -2799,8 +2968,9 @@ export declare namespace cosmos { toProtoMsg(message: _32.GenesisOwners): _32.GenesisOwnersProtoMsg; }; GenesisState: { - encode(message: _32.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _32.GenesisState; + typeUrl: string; + encode(message: _32.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _32.GenesisState; fromJSON(object: any): _32.GenesisState; toJSON(message: _32.GenesisState): unknown; fromPartial(object: Partial<_32.GenesisState>): _32.GenesisState; @@ -2813,8 +2983,9 @@ export declare namespace cosmos { toProtoMsg(message: _32.GenesisState): _32.GenesisStateProtoMsg; }; Capability: { - encode(message: _31.Capability, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _31.Capability; + typeUrl: string; + encode(message: _31.Capability, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.Capability; fromJSON(object: any): _31.Capability; toJSON(message: _31.Capability): unknown; fromPartial(object: Partial<_31.Capability>): _31.Capability; @@ -2827,8 +2998,9 @@ export declare namespace cosmos { toProtoMsg(message: _31.Capability): _31.CapabilityProtoMsg; }; Owner: { - encode(message: _31.Owner, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _31.Owner; + typeUrl: string; + encode(message: _31.Owner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.Owner; fromJSON(object: any): _31.Owner; toJSON(message: _31.Owner): unknown; fromPartial(object: Partial<_31.Owner>): _31.Owner; @@ -2841,8 +3013,9 @@ export declare namespace cosmos { toProtoMsg(message: _31.Owner): _31.OwnerProtoMsg; }; CapabilityOwners: { - encode(message: _31.CapabilityOwners, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _31.CapabilityOwners; + typeUrl: string; + encode(message: _31.CapabilityOwners, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.CapabilityOwners; fromJSON(object: any): _31.CapabilityOwners; toJSON(message: _31.CapabilityOwners): unknown; fromPartial(object: Partial<_31.CapabilityOwners>): _31.CapabilityOwners; @@ -2858,7 +3031,7 @@ export declare namespace cosmos { } namespace crisis { const v1beta1: { - MsgClientImpl: typeof _218.MsgClientImpl; + MsgClientImpl: typeof _219.MsgClientImpl; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -2901,8 +3074,9 @@ export declare namespace cosmos { }; }; MsgVerifyInvariant: { - encode(message: _34.MsgVerifyInvariant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _34.MsgVerifyInvariant; + typeUrl: string; + encode(message: _34.MsgVerifyInvariant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _34.MsgVerifyInvariant; fromJSON(object: any): _34.MsgVerifyInvariant; toJSON(message: _34.MsgVerifyInvariant): unknown; fromPartial(object: Partial<_34.MsgVerifyInvariant>): _34.MsgVerifyInvariant; @@ -2915,8 +3089,9 @@ export declare namespace cosmos { toProtoMsg(message: _34.MsgVerifyInvariant): _34.MsgVerifyInvariantProtoMsg; }; MsgVerifyInvariantResponse: { - encode(_: _34.MsgVerifyInvariantResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _34.MsgVerifyInvariantResponse; + typeUrl: string; + encode(_: _34.MsgVerifyInvariantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _34.MsgVerifyInvariantResponse; fromJSON(_: any): _34.MsgVerifyInvariantResponse; toJSON(_: _34.MsgVerifyInvariantResponse): unknown; fromPartial(_: Partial<_34.MsgVerifyInvariantResponse>): _34.MsgVerifyInvariantResponse; @@ -2929,8 +3104,9 @@ export declare namespace cosmos { toProtoMsg(message: _34.MsgVerifyInvariantResponse): _34.MsgVerifyInvariantResponseProtoMsg; }; GenesisState: { - encode(message: _33.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _33.GenesisState; + typeUrl: string; + encode(message: _33.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _33.GenesisState; fromJSON(object: any): _33.GenesisState; toJSON(message: _33.GenesisState): unknown; fromPartial(object: Partial<_33.GenesisState>): _33.GenesisState; @@ -2947,8 +3123,9 @@ export declare namespace cosmos { namespace crypto { const ed25519: { PubKey: { - encode(message: _35.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _35.PubKey; + typeUrl: string; + encode(message: _35.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _35.PubKey; fromJSON(object: any): _35.PubKey; toJSON(message: _35.PubKey): unknown; fromPartial(object: Partial<_35.PubKey>): _35.PubKey; @@ -2961,8 +3138,9 @@ export declare namespace cosmos { toProtoMsg(message: _35.PubKey): _35.PubKeyProtoMsg; }; PrivKey: { - encode(message: _35.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _35.PrivKey; + typeUrl: string; + encode(message: _35.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _35.PrivKey; fromJSON(object: any): _35.PrivKey; toJSON(message: _35.PrivKey): unknown; fromPartial(object: Partial<_35.PrivKey>): _35.PrivKey; @@ -2978,8 +3156,9 @@ export declare namespace cosmos { namespace hd { const v1: { BIP44Params: { - encode(message: _36.BIP44Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _36.BIP44Params; + typeUrl: string; + encode(message: _36.BIP44Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _36.BIP44Params; fromJSON(object: any): _36.BIP44Params; toJSON(message: _36.BIP44Params): unknown; fromPartial(object: Partial<_36.BIP44Params>): _36.BIP44Params; @@ -2996,8 +3175,9 @@ export declare namespace cosmos { namespace keyring { const v1: { Record: { - encode(message: _37.Record, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _37.Record; + typeUrl: string; + encode(message: _37.Record, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record; fromJSON(object: any): _37.Record; toJSON(message: _37.Record): unknown; fromPartial(object: Partial<_37.Record>): _37.Record; @@ -3010,8 +3190,9 @@ export declare namespace cosmos { toProtoMsg(message: _37.Record): _37.RecordProtoMsg; }; Record_Local: { - encode(message: _37.Record_Local, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _37.Record_Local; + typeUrl: string; + encode(message: _37.Record_Local, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Local; fromJSON(object: any): _37.Record_Local; toJSON(message: _37.Record_Local): unknown; fromPartial(object: Partial<_37.Record_Local>): _37.Record_Local; @@ -3024,8 +3205,9 @@ export declare namespace cosmos { toProtoMsg(message: _37.Record_Local): _37.Record_LocalProtoMsg; }; Record_Ledger: { - encode(message: _37.Record_Ledger, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _37.Record_Ledger; + typeUrl: string; + encode(message: _37.Record_Ledger, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Ledger; fromJSON(object: any): _37.Record_Ledger; toJSON(message: _37.Record_Ledger): unknown; fromPartial(object: Partial<_37.Record_Ledger>): _37.Record_Ledger; @@ -3038,8 +3220,9 @@ export declare namespace cosmos { toProtoMsg(message: _37.Record_Ledger): _37.Record_LedgerProtoMsg; }; Record_Multi: { - encode(_: _37.Record_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _37.Record_Multi; + typeUrl: string; + encode(_: _37.Record_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Multi; fromJSON(_: any): _37.Record_Multi; toJSON(_: _37.Record_Multi): unknown; fromPartial(_: Partial<_37.Record_Multi>): _37.Record_Multi; @@ -3052,8 +3235,9 @@ export declare namespace cosmos { toProtoMsg(message: _37.Record_Multi): _37.Record_MultiProtoMsg; }; Record_Offline: { - encode(_: _37.Record_Offline, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _37.Record_Offline; + typeUrl: string; + encode(_: _37.Record_Offline, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Offline; fromJSON(_: any): _37.Record_Offline; toJSON(_: _37.Record_Offline): unknown; fromPartial(_: Partial<_37.Record_Offline>): _37.Record_Offline; @@ -3069,8 +3253,9 @@ export declare namespace cosmos { } const multisig: { LegacyAminoPubKey: { - encode(message: _38.LegacyAminoPubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _38.LegacyAminoPubKey; + typeUrl: string; + encode(message: _38.LegacyAminoPubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _38.LegacyAminoPubKey; fromJSON(object: any): _38.LegacyAminoPubKey; toJSON(message: _38.LegacyAminoPubKey): unknown; fromPartial(object: Partial<_38.LegacyAminoPubKey>): _38.LegacyAminoPubKey; @@ -3085,8 +3270,9 @@ export declare namespace cosmos { }; const secp256k1: { PubKey: { - encode(message: _39.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _39.PubKey; + typeUrl: string; + encode(message: _39.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _39.PubKey; fromJSON(object: any): _39.PubKey; toJSON(message: _39.PubKey): unknown; fromPartial(object: Partial<_39.PubKey>): _39.PubKey; @@ -3099,8 +3285,9 @@ export declare namespace cosmos { toProtoMsg(message: _39.PubKey): _39.PubKeyProtoMsg; }; PrivKey: { - encode(message: _39.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _39.PrivKey; + typeUrl: string; + encode(message: _39.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _39.PrivKey; fromJSON(object: any): _39.PrivKey; toJSON(message: _39.PrivKey): unknown; fromPartial(object: Partial<_39.PrivKey>): _39.PrivKey; @@ -3115,8 +3302,9 @@ export declare namespace cosmos { }; const secp256r1: { PubKey: { - encode(message: _40.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _40.PubKey; + typeUrl: string; + encode(message: _40.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _40.PubKey; fromJSON(object: any): _40.PubKey; toJSON(message: _40.PubKey): unknown; fromPartial(object: Partial<_40.PubKey>): _40.PubKey; @@ -3129,8 +3317,9 @@ export declare namespace cosmos { toProtoMsg(message: _40.PubKey): _40.PubKeyProtoMsg; }; PrivKey: { - encode(message: _40.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _40.PrivKey; + typeUrl: string; + encode(message: _40.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _40.PrivKey; fromJSON(object: any): _40.PrivKey; toJSON(message: _40.PrivKey): unknown; fromPartial(object: Partial<_40.PrivKey>): _40.PrivKey; @@ -3146,8 +3335,8 @@ export declare namespace cosmos { } namespace distribution { const v1beta1: { - MsgClientImpl: typeof _219.MsgClientImpl; - QueryClientImpl: typeof _203.QueryClientImpl; + MsgClientImpl: typeof _220.MsgClientImpl; + QueryClientImpl: typeof _204.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { params(request?: _43.QueryParamsRequest | undefined): Promise<_43.QueryParamsResponse>; validatorOutstandingRewards(request: _43.QueryValidatorOutstandingRewardsRequest): Promise<_43.QueryValidatorOutstandingRewardsResponse>; @@ -3159,7 +3348,7 @@ export declare namespace cosmos { delegatorWithdrawAddress(request: _43.QueryDelegatorWithdrawAddressRequest): Promise<_43.QueryDelegatorWithdrawAddressResponse>; communityPool(request?: _43.QueryCommunityPoolRequest | undefined): Promise<_43.QueryCommunityPoolResponse>; }; - LCDQueryClient: typeof _184.LCDQueryClient; + LCDQueryClient: typeof _185.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -3277,8 +3466,9 @@ export declare namespace cosmos { }; }; MsgSetWithdrawAddress: { - encode(message: _44.MsgSetWithdrawAddress, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgSetWithdrawAddress; + typeUrl: string; + encode(message: _44.MsgSetWithdrawAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgSetWithdrawAddress; fromJSON(object: any): _44.MsgSetWithdrawAddress; toJSON(message: _44.MsgSetWithdrawAddress): unknown; fromPartial(object: Partial<_44.MsgSetWithdrawAddress>): _44.MsgSetWithdrawAddress; @@ -3291,8 +3481,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgSetWithdrawAddress): _44.MsgSetWithdrawAddressProtoMsg; }; MsgSetWithdrawAddressResponse: { - encode(_: _44.MsgSetWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgSetWithdrawAddressResponse; + typeUrl: string; + encode(_: _44.MsgSetWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgSetWithdrawAddressResponse; fromJSON(_: any): _44.MsgSetWithdrawAddressResponse; toJSON(_: _44.MsgSetWithdrawAddressResponse): unknown; fromPartial(_: Partial<_44.MsgSetWithdrawAddressResponse>): _44.MsgSetWithdrawAddressResponse; @@ -3305,8 +3496,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgSetWithdrawAddressResponse): _44.MsgSetWithdrawAddressResponseProtoMsg; }; MsgWithdrawDelegatorReward: { - encode(message: _44.MsgWithdrawDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgWithdrawDelegatorReward; + typeUrl: string; + encode(message: _44.MsgWithdrawDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawDelegatorReward; fromJSON(object: any): _44.MsgWithdrawDelegatorReward; toJSON(message: _44.MsgWithdrawDelegatorReward): unknown; fromPartial(object: Partial<_44.MsgWithdrawDelegatorReward>): _44.MsgWithdrawDelegatorReward; @@ -3319,8 +3511,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgWithdrawDelegatorReward): _44.MsgWithdrawDelegatorRewardProtoMsg; }; MsgWithdrawDelegatorRewardResponse: { - encode(message: _44.MsgWithdrawDelegatorRewardResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgWithdrawDelegatorRewardResponse; + typeUrl: string; + encode(message: _44.MsgWithdrawDelegatorRewardResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawDelegatorRewardResponse; fromJSON(object: any): _44.MsgWithdrawDelegatorRewardResponse; toJSON(message: _44.MsgWithdrawDelegatorRewardResponse): unknown; fromPartial(object: Partial<_44.MsgWithdrawDelegatorRewardResponse>): _44.MsgWithdrawDelegatorRewardResponse; @@ -3333,8 +3526,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgWithdrawDelegatorRewardResponse): _44.MsgWithdrawDelegatorRewardResponseProtoMsg; }; MsgWithdrawValidatorCommission: { - encode(message: _44.MsgWithdrawValidatorCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgWithdrawValidatorCommission; + typeUrl: string; + encode(message: _44.MsgWithdrawValidatorCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawValidatorCommission; fromJSON(object: any): _44.MsgWithdrawValidatorCommission; toJSON(message: _44.MsgWithdrawValidatorCommission): unknown; fromPartial(object: Partial<_44.MsgWithdrawValidatorCommission>): _44.MsgWithdrawValidatorCommission; @@ -3347,8 +3541,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgWithdrawValidatorCommission): _44.MsgWithdrawValidatorCommissionProtoMsg; }; MsgWithdrawValidatorCommissionResponse: { - encode(message: _44.MsgWithdrawValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgWithdrawValidatorCommissionResponse; + typeUrl: string; + encode(message: _44.MsgWithdrawValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawValidatorCommissionResponse; fromJSON(object: any): _44.MsgWithdrawValidatorCommissionResponse; toJSON(message: _44.MsgWithdrawValidatorCommissionResponse): unknown; fromPartial(object: Partial<_44.MsgWithdrawValidatorCommissionResponse>): _44.MsgWithdrawValidatorCommissionResponse; @@ -3361,8 +3556,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgWithdrawValidatorCommissionResponse): _44.MsgWithdrawValidatorCommissionResponseProtoMsg; }; MsgFundCommunityPool: { - encode(message: _44.MsgFundCommunityPool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgFundCommunityPool; + typeUrl: string; + encode(message: _44.MsgFundCommunityPool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgFundCommunityPool; fromJSON(object: any): _44.MsgFundCommunityPool; toJSON(message: _44.MsgFundCommunityPool): unknown; fromPartial(object: Partial<_44.MsgFundCommunityPool>): _44.MsgFundCommunityPool; @@ -3375,8 +3571,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgFundCommunityPool): _44.MsgFundCommunityPoolProtoMsg; }; MsgFundCommunityPoolResponse: { - encode(_: _44.MsgFundCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _44.MsgFundCommunityPoolResponse; + typeUrl: string; + encode(_: _44.MsgFundCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgFundCommunityPoolResponse; fromJSON(_: any): _44.MsgFundCommunityPoolResponse; toJSON(_: _44.MsgFundCommunityPoolResponse): unknown; fromPartial(_: Partial<_44.MsgFundCommunityPoolResponse>): _44.MsgFundCommunityPoolResponse; @@ -3389,8 +3586,9 @@ export declare namespace cosmos { toProtoMsg(message: _44.MsgFundCommunityPoolResponse): _44.MsgFundCommunityPoolResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _43.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryParamsRequest; + typeUrl: string; + encode(_: _43.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryParamsRequest; fromJSON(_: any): _43.QueryParamsRequest; toJSON(_: _43.QueryParamsRequest): unknown; fromPartial(_: Partial<_43.QueryParamsRequest>): _43.QueryParamsRequest; @@ -3403,8 +3601,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryParamsRequest): _43.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _43.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryParamsResponse; + typeUrl: string; + encode(message: _43.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryParamsResponse; fromJSON(object: any): _43.QueryParamsResponse; toJSON(message: _43.QueryParamsResponse): unknown; fromPartial(object: Partial<_43.QueryParamsResponse>): _43.QueryParamsResponse; @@ -3417,8 +3616,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryParamsResponse): _43.QueryParamsResponseProtoMsg; }; QueryValidatorOutstandingRewardsRequest: { - encode(message: _43.QueryValidatorOutstandingRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsRequest; + typeUrl: string; + encode(message: _43.QueryValidatorOutstandingRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsRequest; fromJSON(object: any): _43.QueryValidatorOutstandingRewardsRequest; toJSON(message: _43.QueryValidatorOutstandingRewardsRequest): unknown; fromPartial(object: Partial<_43.QueryValidatorOutstandingRewardsRequest>): _43.QueryValidatorOutstandingRewardsRequest; @@ -3431,8 +3631,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorOutstandingRewardsRequest): _43.QueryValidatorOutstandingRewardsRequestProtoMsg; }; QueryValidatorOutstandingRewardsResponse: { - encode(message: _43.QueryValidatorOutstandingRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsResponse; + typeUrl: string; + encode(message: _43.QueryValidatorOutstandingRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsResponse; fromJSON(object: any): _43.QueryValidatorOutstandingRewardsResponse; toJSON(message: _43.QueryValidatorOutstandingRewardsResponse): unknown; fromPartial(object: Partial<_43.QueryValidatorOutstandingRewardsResponse>): _43.QueryValidatorOutstandingRewardsResponse; @@ -3445,8 +3646,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorOutstandingRewardsResponse): _43.QueryValidatorOutstandingRewardsResponseProtoMsg; }; QueryValidatorCommissionRequest: { - encode(message: _43.QueryValidatorCommissionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorCommissionRequest; + typeUrl: string; + encode(message: _43.QueryValidatorCommissionRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorCommissionRequest; fromJSON(object: any): _43.QueryValidatorCommissionRequest; toJSON(message: _43.QueryValidatorCommissionRequest): unknown; fromPartial(object: Partial<_43.QueryValidatorCommissionRequest>): _43.QueryValidatorCommissionRequest; @@ -3459,8 +3661,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorCommissionRequest): _43.QueryValidatorCommissionRequestProtoMsg; }; QueryValidatorCommissionResponse: { - encode(message: _43.QueryValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorCommissionResponse; + typeUrl: string; + encode(message: _43.QueryValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorCommissionResponse; fromJSON(object: any): _43.QueryValidatorCommissionResponse; toJSON(message: _43.QueryValidatorCommissionResponse): unknown; fromPartial(object: Partial<_43.QueryValidatorCommissionResponse>): _43.QueryValidatorCommissionResponse; @@ -3473,8 +3676,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorCommissionResponse): _43.QueryValidatorCommissionResponseProtoMsg; }; QueryValidatorSlashesRequest: { - encode(message: _43.QueryValidatorSlashesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorSlashesRequest; + typeUrl: string; + encode(message: _43.QueryValidatorSlashesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorSlashesRequest; fromJSON(object: any): _43.QueryValidatorSlashesRequest; toJSON(message: _43.QueryValidatorSlashesRequest): unknown; fromPartial(object: Partial<_43.QueryValidatorSlashesRequest>): _43.QueryValidatorSlashesRequest; @@ -3487,8 +3691,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorSlashesRequest): _43.QueryValidatorSlashesRequestProtoMsg; }; QueryValidatorSlashesResponse: { - encode(message: _43.QueryValidatorSlashesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryValidatorSlashesResponse; + typeUrl: string; + encode(message: _43.QueryValidatorSlashesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorSlashesResponse; fromJSON(object: any): _43.QueryValidatorSlashesResponse; toJSON(message: _43.QueryValidatorSlashesResponse): unknown; fromPartial(object: Partial<_43.QueryValidatorSlashesResponse>): _43.QueryValidatorSlashesResponse; @@ -3501,8 +3706,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryValidatorSlashesResponse): _43.QueryValidatorSlashesResponseProtoMsg; }; QueryDelegationRewardsRequest: { - encode(message: _43.QueryDelegationRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegationRewardsRequest; + typeUrl: string; + encode(message: _43.QueryDelegationRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationRewardsRequest; fromJSON(object: any): _43.QueryDelegationRewardsRequest; toJSON(message: _43.QueryDelegationRewardsRequest): unknown; fromPartial(object: Partial<_43.QueryDelegationRewardsRequest>): _43.QueryDelegationRewardsRequest; @@ -3515,8 +3721,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegationRewardsRequest): _43.QueryDelegationRewardsRequestProtoMsg; }; QueryDelegationRewardsResponse: { - encode(message: _43.QueryDelegationRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegationRewardsResponse; + typeUrl: string; + encode(message: _43.QueryDelegationRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationRewardsResponse; fromJSON(object: any): _43.QueryDelegationRewardsResponse; toJSON(message: _43.QueryDelegationRewardsResponse): unknown; fromPartial(object: Partial<_43.QueryDelegationRewardsResponse>): _43.QueryDelegationRewardsResponse; @@ -3529,8 +3736,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegationRewardsResponse): _43.QueryDelegationRewardsResponseProtoMsg; }; QueryDelegationTotalRewardsRequest: { - encode(message: _43.QueryDelegationTotalRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegationTotalRewardsRequest; + typeUrl: string; + encode(message: _43.QueryDelegationTotalRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationTotalRewardsRequest; fromJSON(object: any): _43.QueryDelegationTotalRewardsRequest; toJSON(message: _43.QueryDelegationTotalRewardsRequest): unknown; fromPartial(object: Partial<_43.QueryDelegationTotalRewardsRequest>): _43.QueryDelegationTotalRewardsRequest; @@ -3543,8 +3751,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegationTotalRewardsRequest): _43.QueryDelegationTotalRewardsRequestProtoMsg; }; QueryDelegationTotalRewardsResponse: { - encode(message: _43.QueryDelegationTotalRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegationTotalRewardsResponse; + typeUrl: string; + encode(message: _43.QueryDelegationTotalRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationTotalRewardsResponse; fromJSON(object: any): _43.QueryDelegationTotalRewardsResponse; toJSON(message: _43.QueryDelegationTotalRewardsResponse): unknown; fromPartial(object: Partial<_43.QueryDelegationTotalRewardsResponse>): _43.QueryDelegationTotalRewardsResponse; @@ -3557,8 +3766,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegationTotalRewardsResponse): _43.QueryDelegationTotalRewardsResponseProtoMsg; }; QueryDelegatorValidatorsRequest: { - encode(message: _43.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegatorValidatorsRequest; + typeUrl: string; + encode(message: _43.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorValidatorsRequest; fromJSON(object: any): _43.QueryDelegatorValidatorsRequest; toJSON(message: _43.QueryDelegatorValidatorsRequest): unknown; fromPartial(object: Partial<_43.QueryDelegatorValidatorsRequest>): _43.QueryDelegatorValidatorsRequest; @@ -3571,8 +3781,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegatorValidatorsRequest): _43.QueryDelegatorValidatorsRequestProtoMsg; }; QueryDelegatorValidatorsResponse: { - encode(message: _43.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegatorValidatorsResponse; + typeUrl: string; + encode(message: _43.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorValidatorsResponse; fromJSON(object: any): _43.QueryDelegatorValidatorsResponse; toJSON(message: _43.QueryDelegatorValidatorsResponse): unknown; fromPartial(object: Partial<_43.QueryDelegatorValidatorsResponse>): _43.QueryDelegatorValidatorsResponse; @@ -3585,8 +3796,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegatorValidatorsResponse): _43.QueryDelegatorValidatorsResponseProtoMsg; }; QueryDelegatorWithdrawAddressRequest: { - encode(message: _43.QueryDelegatorWithdrawAddressRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressRequest; + typeUrl: string; + encode(message: _43.QueryDelegatorWithdrawAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressRequest; fromJSON(object: any): _43.QueryDelegatorWithdrawAddressRequest; toJSON(message: _43.QueryDelegatorWithdrawAddressRequest): unknown; fromPartial(object: Partial<_43.QueryDelegatorWithdrawAddressRequest>): _43.QueryDelegatorWithdrawAddressRequest; @@ -3599,8 +3811,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegatorWithdrawAddressRequest): _43.QueryDelegatorWithdrawAddressRequestProtoMsg; }; QueryDelegatorWithdrawAddressResponse: { - encode(message: _43.QueryDelegatorWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressResponse; + typeUrl: string; + encode(message: _43.QueryDelegatorWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressResponse; fromJSON(object: any): _43.QueryDelegatorWithdrawAddressResponse; toJSON(message: _43.QueryDelegatorWithdrawAddressResponse): unknown; fromPartial(object: Partial<_43.QueryDelegatorWithdrawAddressResponse>): _43.QueryDelegatorWithdrawAddressResponse; @@ -3613,8 +3826,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryDelegatorWithdrawAddressResponse): _43.QueryDelegatorWithdrawAddressResponseProtoMsg; }; QueryCommunityPoolRequest: { - encode(_: _43.QueryCommunityPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryCommunityPoolRequest; + typeUrl: string; + encode(_: _43.QueryCommunityPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryCommunityPoolRequest; fromJSON(_: any): _43.QueryCommunityPoolRequest; toJSON(_: _43.QueryCommunityPoolRequest): unknown; fromPartial(_: Partial<_43.QueryCommunityPoolRequest>): _43.QueryCommunityPoolRequest; @@ -3627,8 +3841,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryCommunityPoolRequest): _43.QueryCommunityPoolRequestProtoMsg; }; QueryCommunityPoolResponse: { - encode(message: _43.QueryCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _43.QueryCommunityPoolResponse; + typeUrl: string; + encode(message: _43.QueryCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryCommunityPoolResponse; fromJSON(object: any): _43.QueryCommunityPoolResponse; toJSON(message: _43.QueryCommunityPoolResponse): unknown; fromPartial(object: Partial<_43.QueryCommunityPoolResponse>): _43.QueryCommunityPoolResponse; @@ -3641,8 +3856,9 @@ export declare namespace cosmos { toProtoMsg(message: _43.QueryCommunityPoolResponse): _43.QueryCommunityPoolResponseProtoMsg; }; DelegatorWithdrawInfo: { - encode(message: _42.DelegatorWithdrawInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.DelegatorWithdrawInfo; + typeUrl: string; + encode(message: _42.DelegatorWithdrawInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.DelegatorWithdrawInfo; fromJSON(object: any): _42.DelegatorWithdrawInfo; toJSON(message: _42.DelegatorWithdrawInfo): unknown; fromPartial(object: Partial<_42.DelegatorWithdrawInfo>): _42.DelegatorWithdrawInfo; @@ -3655,8 +3871,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.DelegatorWithdrawInfo): _42.DelegatorWithdrawInfoProtoMsg; }; ValidatorOutstandingRewardsRecord: { - encode(message: _42.ValidatorOutstandingRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.ValidatorOutstandingRewardsRecord; + typeUrl: string; + encode(message: _42.ValidatorOutstandingRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorOutstandingRewardsRecord; fromJSON(object: any): _42.ValidatorOutstandingRewardsRecord; toJSON(message: _42.ValidatorOutstandingRewardsRecord): unknown; fromPartial(object: Partial<_42.ValidatorOutstandingRewardsRecord>): _42.ValidatorOutstandingRewardsRecord; @@ -3669,8 +3886,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.ValidatorOutstandingRewardsRecord): _42.ValidatorOutstandingRewardsRecordProtoMsg; }; ValidatorAccumulatedCommissionRecord: { - encode(message: _42.ValidatorAccumulatedCommissionRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.ValidatorAccumulatedCommissionRecord; + typeUrl: string; + encode(message: _42.ValidatorAccumulatedCommissionRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorAccumulatedCommissionRecord; fromJSON(object: any): _42.ValidatorAccumulatedCommissionRecord; toJSON(message: _42.ValidatorAccumulatedCommissionRecord): unknown; fromPartial(object: Partial<_42.ValidatorAccumulatedCommissionRecord>): _42.ValidatorAccumulatedCommissionRecord; @@ -3683,8 +3901,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.ValidatorAccumulatedCommissionRecord): _42.ValidatorAccumulatedCommissionRecordProtoMsg; }; ValidatorHistoricalRewardsRecord: { - encode(message: _42.ValidatorHistoricalRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.ValidatorHistoricalRewardsRecord; + typeUrl: string; + encode(message: _42.ValidatorHistoricalRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorHistoricalRewardsRecord; fromJSON(object: any): _42.ValidatorHistoricalRewardsRecord; toJSON(message: _42.ValidatorHistoricalRewardsRecord): unknown; fromPartial(object: Partial<_42.ValidatorHistoricalRewardsRecord>): _42.ValidatorHistoricalRewardsRecord; @@ -3697,8 +3916,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.ValidatorHistoricalRewardsRecord): _42.ValidatorHistoricalRewardsRecordProtoMsg; }; ValidatorCurrentRewardsRecord: { - encode(message: _42.ValidatorCurrentRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.ValidatorCurrentRewardsRecord; + typeUrl: string; + encode(message: _42.ValidatorCurrentRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorCurrentRewardsRecord; fromJSON(object: any): _42.ValidatorCurrentRewardsRecord; toJSON(message: _42.ValidatorCurrentRewardsRecord): unknown; fromPartial(object: Partial<_42.ValidatorCurrentRewardsRecord>): _42.ValidatorCurrentRewardsRecord; @@ -3711,8 +3931,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.ValidatorCurrentRewardsRecord): _42.ValidatorCurrentRewardsRecordProtoMsg; }; DelegatorStartingInfoRecord: { - encode(message: _42.DelegatorStartingInfoRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.DelegatorStartingInfoRecord; + typeUrl: string; + encode(message: _42.DelegatorStartingInfoRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.DelegatorStartingInfoRecord; fromJSON(object: any): _42.DelegatorStartingInfoRecord; toJSON(message: _42.DelegatorStartingInfoRecord): unknown; fromPartial(object: Partial<_42.DelegatorStartingInfoRecord>): _42.DelegatorStartingInfoRecord; @@ -3725,8 +3946,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.DelegatorStartingInfoRecord): _42.DelegatorStartingInfoRecordProtoMsg; }; ValidatorSlashEventRecord: { - encode(message: _42.ValidatorSlashEventRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.ValidatorSlashEventRecord; + typeUrl: string; + encode(message: _42.ValidatorSlashEventRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorSlashEventRecord; fromJSON(object: any): _42.ValidatorSlashEventRecord; toJSON(message: _42.ValidatorSlashEventRecord): unknown; fromPartial(object: Partial<_42.ValidatorSlashEventRecord>): _42.ValidatorSlashEventRecord; @@ -3739,8 +3961,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.ValidatorSlashEventRecord): _42.ValidatorSlashEventRecordProtoMsg; }; GenesisState: { - encode(message: _42.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _42.GenesisState; + typeUrl: string; + encode(message: _42.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.GenesisState; fromJSON(object: any): _42.GenesisState; toJSON(message: _42.GenesisState): unknown; fromPartial(object: Partial<_42.GenesisState>): _42.GenesisState; @@ -3753,8 +3976,9 @@ export declare namespace cosmos { toProtoMsg(message: _42.GenesisState): _42.GenesisStateProtoMsg; }; Params: { - encode(message: _41.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.Params; + typeUrl: string; + encode(message: _41.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.Params; fromJSON(object: any): _41.Params; toJSON(message: _41.Params): unknown; fromPartial(object: Partial<_41.Params>): _41.Params; @@ -3767,8 +3991,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.Params): _41.ParamsProtoMsg; }; ValidatorHistoricalRewards: { - encode(message: _41.ValidatorHistoricalRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorHistoricalRewards; + typeUrl: string; + encode(message: _41.ValidatorHistoricalRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorHistoricalRewards; fromJSON(object: any): _41.ValidatorHistoricalRewards; toJSON(message: _41.ValidatorHistoricalRewards): unknown; fromPartial(object: Partial<_41.ValidatorHistoricalRewards>): _41.ValidatorHistoricalRewards; @@ -3781,8 +4006,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorHistoricalRewards): _41.ValidatorHistoricalRewardsProtoMsg; }; ValidatorCurrentRewards: { - encode(message: _41.ValidatorCurrentRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorCurrentRewards; + typeUrl: string; + encode(message: _41.ValidatorCurrentRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorCurrentRewards; fromJSON(object: any): _41.ValidatorCurrentRewards; toJSON(message: _41.ValidatorCurrentRewards): unknown; fromPartial(object: Partial<_41.ValidatorCurrentRewards>): _41.ValidatorCurrentRewards; @@ -3795,8 +4021,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorCurrentRewards): _41.ValidatorCurrentRewardsProtoMsg; }; ValidatorAccumulatedCommission: { - encode(message: _41.ValidatorAccumulatedCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorAccumulatedCommission; + typeUrl: string; + encode(message: _41.ValidatorAccumulatedCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorAccumulatedCommission; fromJSON(object: any): _41.ValidatorAccumulatedCommission; toJSON(message: _41.ValidatorAccumulatedCommission): unknown; fromPartial(object: Partial<_41.ValidatorAccumulatedCommission>): _41.ValidatorAccumulatedCommission; @@ -3809,8 +4036,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorAccumulatedCommission): _41.ValidatorAccumulatedCommissionProtoMsg; }; ValidatorOutstandingRewards: { - encode(message: _41.ValidatorOutstandingRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorOutstandingRewards; + typeUrl: string; + encode(message: _41.ValidatorOutstandingRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorOutstandingRewards; fromJSON(object: any): _41.ValidatorOutstandingRewards; toJSON(message: _41.ValidatorOutstandingRewards): unknown; fromPartial(object: Partial<_41.ValidatorOutstandingRewards>): _41.ValidatorOutstandingRewards; @@ -3823,8 +4051,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorOutstandingRewards): _41.ValidatorOutstandingRewardsProtoMsg; }; ValidatorSlashEvent: { - encode(message: _41.ValidatorSlashEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorSlashEvent; + typeUrl: string; + encode(message: _41.ValidatorSlashEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorSlashEvent; fromJSON(object: any): _41.ValidatorSlashEvent; toJSON(message: _41.ValidatorSlashEvent): unknown; fromPartial(object: Partial<_41.ValidatorSlashEvent>): _41.ValidatorSlashEvent; @@ -3837,8 +4066,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorSlashEvent): _41.ValidatorSlashEventProtoMsg; }; ValidatorSlashEvents: { - encode(message: _41.ValidatorSlashEvents, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.ValidatorSlashEvents; + typeUrl: string; + encode(message: _41.ValidatorSlashEvents, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorSlashEvents; fromJSON(object: any): _41.ValidatorSlashEvents; toJSON(message: _41.ValidatorSlashEvents): unknown; fromPartial(object: Partial<_41.ValidatorSlashEvents>): _41.ValidatorSlashEvents; @@ -3851,8 +4081,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.ValidatorSlashEvents): _41.ValidatorSlashEventsProtoMsg; }; FeePool: { - encode(message: _41.FeePool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.FeePool; + typeUrl: string; + encode(message: _41.FeePool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.FeePool; fromJSON(object: any): _41.FeePool; toJSON(message: _41.FeePool): unknown; fromPartial(object: Partial<_41.FeePool>): _41.FeePool; @@ -3865,8 +4096,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.FeePool): _41.FeePoolProtoMsg; }; CommunityPoolSpendProposal: { - encode(message: _41.CommunityPoolSpendProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.CommunityPoolSpendProposal; + typeUrl: string; + encode(message: _41.CommunityPoolSpendProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.CommunityPoolSpendProposal; fromJSON(object: any): _41.CommunityPoolSpendProposal; toJSON(message: _41.CommunityPoolSpendProposal): unknown; fromPartial(object: Partial<_41.CommunityPoolSpendProposal>): _41.CommunityPoolSpendProposal; @@ -3879,8 +4111,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.CommunityPoolSpendProposal): _41.CommunityPoolSpendProposalProtoMsg; }; DelegatorStartingInfo: { - encode(message: _41.DelegatorStartingInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.DelegatorStartingInfo; + typeUrl: string; + encode(message: _41.DelegatorStartingInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.DelegatorStartingInfo; fromJSON(object: any): _41.DelegatorStartingInfo; toJSON(message: _41.DelegatorStartingInfo): unknown; fromPartial(object: Partial<_41.DelegatorStartingInfo>): _41.DelegatorStartingInfo; @@ -3893,8 +4126,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.DelegatorStartingInfo): _41.DelegatorStartingInfoProtoMsg; }; DelegationDelegatorReward: { - encode(message: _41.DelegationDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.DelegationDelegatorReward; + typeUrl: string; + encode(message: _41.DelegationDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.DelegationDelegatorReward; fromJSON(object: any): _41.DelegationDelegatorReward; toJSON(message: _41.DelegationDelegatorReward): unknown; fromPartial(object: Partial<_41.DelegationDelegatorReward>): _41.DelegationDelegatorReward; @@ -3907,8 +4141,9 @@ export declare namespace cosmos { toProtoMsg(message: _41.DelegationDelegatorReward): _41.DelegationDelegatorRewardProtoMsg; }; CommunityPoolSpendProposalWithDeposit: { - encode(message: _41.CommunityPoolSpendProposalWithDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _41.CommunityPoolSpendProposalWithDeposit; + typeUrl: string; + encode(message: _41.CommunityPoolSpendProposalWithDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.CommunityPoolSpendProposalWithDeposit; fromJSON(object: any): _41.CommunityPoolSpendProposalWithDeposit; toJSON(message: _41.CommunityPoolSpendProposalWithDeposit): unknown; fromPartial(object: Partial<_41.CommunityPoolSpendProposalWithDeposit>): _41.CommunityPoolSpendProposalWithDeposit; @@ -3924,13 +4159,13 @@ export declare namespace cosmos { } namespace evidence { const v1beta1: { - MsgClientImpl: typeof _220.MsgClientImpl; - QueryClientImpl: typeof _204.QueryClientImpl; + MsgClientImpl: typeof _221.MsgClientImpl; + QueryClientImpl: typeof _205.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { evidence(request: _47.QueryEvidenceRequest): Promise<_47.QueryEvidenceResponse>; allEvidence(request?: _47.QueryAllEvidenceRequest | undefined): Promise<_47.QueryAllEvidenceResponse>; }; - LCDQueryClient: typeof _185.LCDQueryClient; + LCDQueryClient: typeof _186.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -3973,8 +4208,9 @@ export declare namespace cosmos { }; }; MsgSubmitEvidence: { - encode(message: _48.MsgSubmitEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _48.MsgSubmitEvidence; + typeUrl: string; + encode(message: _48.MsgSubmitEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _48.MsgSubmitEvidence; fromJSON(object: any): _48.MsgSubmitEvidence; toJSON(message: _48.MsgSubmitEvidence): unknown; fromPartial(object: Partial<_48.MsgSubmitEvidence>): _48.MsgSubmitEvidence; @@ -3987,8 +4223,9 @@ export declare namespace cosmos { toProtoMsg(message: _48.MsgSubmitEvidence): _48.MsgSubmitEvidenceProtoMsg; }; MsgSubmitEvidenceResponse: { - encode(message: _48.MsgSubmitEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _48.MsgSubmitEvidenceResponse; + typeUrl: string; + encode(message: _48.MsgSubmitEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _48.MsgSubmitEvidenceResponse; fromJSON(object: any): _48.MsgSubmitEvidenceResponse; toJSON(message: _48.MsgSubmitEvidenceResponse): unknown; fromPartial(object: Partial<_48.MsgSubmitEvidenceResponse>): _48.MsgSubmitEvidenceResponse; @@ -4000,12 +4237,13 @@ export declare namespace cosmos { toProto(message: _48.MsgSubmitEvidenceResponse): Uint8Array; toProtoMsg(message: _48.MsgSubmitEvidenceResponse): _48.MsgSubmitEvidenceResponseProtoMsg; }; - Evidence_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any; + Evidence_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; Evidence_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Evidence_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; QueryEvidenceRequest: { - encode(message: _47.QueryEvidenceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _47.QueryEvidenceRequest; + typeUrl: string; + encode(message: _47.QueryEvidenceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryEvidenceRequest; fromJSON(object: any): _47.QueryEvidenceRequest; toJSON(message: _47.QueryEvidenceRequest): unknown; fromPartial(object: Partial<_47.QueryEvidenceRequest>): _47.QueryEvidenceRequest; @@ -4018,8 +4256,9 @@ export declare namespace cosmos { toProtoMsg(message: _47.QueryEvidenceRequest): _47.QueryEvidenceRequestProtoMsg; }; QueryEvidenceResponse: { - encode(message: _47.QueryEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _47.QueryEvidenceResponse; + typeUrl: string; + encode(message: _47.QueryEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryEvidenceResponse; fromJSON(object: any): _47.QueryEvidenceResponse; toJSON(message: _47.QueryEvidenceResponse): unknown; fromPartial(object: Partial<_47.QueryEvidenceResponse>): _47.QueryEvidenceResponse; @@ -4032,8 +4271,9 @@ export declare namespace cosmos { toProtoMsg(message: _47.QueryEvidenceResponse): _47.QueryEvidenceResponseProtoMsg; }; QueryAllEvidenceRequest: { - encode(message: _47.QueryAllEvidenceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _47.QueryAllEvidenceRequest; + typeUrl: string; + encode(message: _47.QueryAllEvidenceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryAllEvidenceRequest; fromJSON(object: any): _47.QueryAllEvidenceRequest; toJSON(message: _47.QueryAllEvidenceRequest): unknown; fromPartial(object: Partial<_47.QueryAllEvidenceRequest>): _47.QueryAllEvidenceRequest; @@ -4046,8 +4286,9 @@ export declare namespace cosmos { toProtoMsg(message: _47.QueryAllEvidenceRequest): _47.QueryAllEvidenceRequestProtoMsg; }; QueryAllEvidenceResponse: { - encode(message: _47.QueryAllEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _47.QueryAllEvidenceResponse; + typeUrl: string; + encode(message: _47.QueryAllEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryAllEvidenceResponse; fromJSON(object: any): _47.QueryAllEvidenceResponse; toJSON(message: _47.QueryAllEvidenceResponse): unknown; fromPartial(object: Partial<_47.QueryAllEvidenceResponse>): _47.QueryAllEvidenceResponse; @@ -4060,8 +4301,9 @@ export declare namespace cosmos { toProtoMsg(message: _47.QueryAllEvidenceResponse): _47.QueryAllEvidenceResponseProtoMsg; }; GenesisState: { - encode(message: _46.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _46.GenesisState; + typeUrl: string; + encode(message: _46.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _46.GenesisState; fromJSON(object: any): _46.GenesisState; toJSON(message: _46.GenesisState): unknown; fromPartial(object: Partial<_46.GenesisState>): _46.GenesisState; @@ -4074,8 +4316,9 @@ export declare namespace cosmos { toProtoMsg(message: _46.GenesisState): _46.GenesisStateProtoMsg; }; Equivocation: { - encode(message: _45.Equivocation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _45.Equivocation; + typeUrl: string; + encode(message: _45.Equivocation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _45.Equivocation; fromJSON(object: any): _45.Equivocation; toJSON(message: _45.Equivocation): unknown; fromPartial(object: Partial<_45.Equivocation>): _45.Equivocation; @@ -4091,14 +4334,14 @@ export declare namespace cosmos { } namespace feegrant { const v1beta1: { - MsgClientImpl: typeof _221.MsgClientImpl; - QueryClientImpl: typeof _205.QueryClientImpl; + MsgClientImpl: typeof _222.MsgClientImpl; + QueryClientImpl: typeof _206.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { allowance(request: _51.QueryAllowanceRequest): Promise<_51.QueryAllowanceResponse>; allowances(request: _51.QueryAllowancesRequest): Promise<_51.QueryAllowancesResponse>; allowancesByGranter(request: _51.QueryAllowancesByGranterRequest): Promise<_51.QueryAllowancesByGranterResponse>; }; - LCDQueryClient: typeof _186.LCDQueryClient; + LCDQueryClient: typeof _187.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -4166,8 +4409,9 @@ export declare namespace cosmos { }; }; MsgGrantAllowance: { - encode(message: _52.MsgGrantAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _52.MsgGrantAllowance; + typeUrl: string; + encode(message: _52.MsgGrantAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgGrantAllowance; fromJSON(object: any): _52.MsgGrantAllowance; toJSON(message: _52.MsgGrantAllowance): unknown; fromPartial(object: Partial<_52.MsgGrantAllowance>): _52.MsgGrantAllowance; @@ -4180,8 +4424,9 @@ export declare namespace cosmos { toProtoMsg(message: _52.MsgGrantAllowance): _52.MsgGrantAllowanceProtoMsg; }; MsgGrantAllowanceResponse: { - encode(_: _52.MsgGrantAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _52.MsgGrantAllowanceResponse; + typeUrl: string; + encode(_: _52.MsgGrantAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgGrantAllowanceResponse; fromJSON(_: any): _52.MsgGrantAllowanceResponse; toJSON(_: _52.MsgGrantAllowanceResponse): unknown; fromPartial(_: Partial<_52.MsgGrantAllowanceResponse>): _52.MsgGrantAllowanceResponse; @@ -4194,8 +4439,9 @@ export declare namespace cosmos { toProtoMsg(message: _52.MsgGrantAllowanceResponse): _52.MsgGrantAllowanceResponseProtoMsg; }; MsgRevokeAllowance: { - encode(message: _52.MsgRevokeAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _52.MsgRevokeAllowance; + typeUrl: string; + encode(message: _52.MsgRevokeAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgRevokeAllowance; fromJSON(object: any): _52.MsgRevokeAllowance; toJSON(message: _52.MsgRevokeAllowance): unknown; fromPartial(object: Partial<_52.MsgRevokeAllowance>): _52.MsgRevokeAllowance; @@ -4208,8 +4454,9 @@ export declare namespace cosmos { toProtoMsg(message: _52.MsgRevokeAllowance): _52.MsgRevokeAllowanceProtoMsg; }; MsgRevokeAllowanceResponse: { - encode(_: _52.MsgRevokeAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _52.MsgRevokeAllowanceResponse; + typeUrl: string; + encode(_: _52.MsgRevokeAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgRevokeAllowanceResponse; fromJSON(_: any): _52.MsgRevokeAllowanceResponse; toJSON(_: _52.MsgRevokeAllowanceResponse): unknown; fromPartial(_: Partial<_52.MsgRevokeAllowanceResponse>): _52.MsgRevokeAllowanceResponse; @@ -4221,12 +4468,13 @@ export declare namespace cosmos { toProto(message: _52.MsgRevokeAllowanceResponse): Uint8Array; toProtoMsg(message: _52.MsgRevokeAllowanceResponse): _52.MsgRevokeAllowanceResponseProtoMsg; }; - FeeAllowanceI_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _49.BasicAllowance | _49.PeriodicAllowance | _49.AllowedMsgAllowance; + FeeAllowanceI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _49.BasicAllowance | _49.PeriodicAllowance | _49.AllowedMsgAllowance; FeeAllowanceI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; FeeAllowanceI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; QueryAllowanceRequest: { - encode(message: _51.QueryAllowanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowanceRequest; + typeUrl: string; + encode(message: _51.QueryAllowanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowanceRequest; fromJSON(object: any): _51.QueryAllowanceRequest; toJSON(message: _51.QueryAllowanceRequest): unknown; fromPartial(object: Partial<_51.QueryAllowanceRequest>): _51.QueryAllowanceRequest; @@ -4239,8 +4487,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowanceRequest): _51.QueryAllowanceRequestProtoMsg; }; QueryAllowanceResponse: { - encode(message: _51.QueryAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowanceResponse; + typeUrl: string; + encode(message: _51.QueryAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowanceResponse; fromJSON(object: any): _51.QueryAllowanceResponse; toJSON(message: _51.QueryAllowanceResponse): unknown; fromPartial(object: Partial<_51.QueryAllowanceResponse>): _51.QueryAllowanceResponse; @@ -4253,8 +4502,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowanceResponse): _51.QueryAllowanceResponseProtoMsg; }; QueryAllowancesRequest: { - encode(message: _51.QueryAllowancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowancesRequest; + typeUrl: string; + encode(message: _51.QueryAllowancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesRequest; fromJSON(object: any): _51.QueryAllowancesRequest; toJSON(message: _51.QueryAllowancesRequest): unknown; fromPartial(object: Partial<_51.QueryAllowancesRequest>): _51.QueryAllowancesRequest; @@ -4267,8 +4517,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowancesRequest): _51.QueryAllowancesRequestProtoMsg; }; QueryAllowancesResponse: { - encode(message: _51.QueryAllowancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowancesResponse; + typeUrl: string; + encode(message: _51.QueryAllowancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesResponse; fromJSON(object: any): _51.QueryAllowancesResponse; toJSON(message: _51.QueryAllowancesResponse): unknown; fromPartial(object: Partial<_51.QueryAllowancesResponse>): _51.QueryAllowancesResponse; @@ -4281,8 +4532,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowancesResponse): _51.QueryAllowancesResponseProtoMsg; }; QueryAllowancesByGranterRequest: { - encode(message: _51.QueryAllowancesByGranterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowancesByGranterRequest; + typeUrl: string; + encode(message: _51.QueryAllowancesByGranterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesByGranterRequest; fromJSON(object: any): _51.QueryAllowancesByGranterRequest; toJSON(message: _51.QueryAllowancesByGranterRequest): unknown; fromPartial(object: Partial<_51.QueryAllowancesByGranterRequest>): _51.QueryAllowancesByGranterRequest; @@ -4295,8 +4547,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowancesByGranterRequest): _51.QueryAllowancesByGranterRequestProtoMsg; }; QueryAllowancesByGranterResponse: { - encode(message: _51.QueryAllowancesByGranterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _51.QueryAllowancesByGranterResponse; + typeUrl: string; + encode(message: _51.QueryAllowancesByGranterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesByGranterResponse; fromJSON(object: any): _51.QueryAllowancesByGranterResponse; toJSON(message: _51.QueryAllowancesByGranterResponse): unknown; fromPartial(object: Partial<_51.QueryAllowancesByGranterResponse>): _51.QueryAllowancesByGranterResponse; @@ -4309,8 +4562,9 @@ export declare namespace cosmos { toProtoMsg(message: _51.QueryAllowancesByGranterResponse): _51.QueryAllowancesByGranterResponseProtoMsg; }; GenesisState: { - encode(message: _50.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _50.GenesisState; + typeUrl: string; + encode(message: _50.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _50.GenesisState; fromJSON(object: any): _50.GenesisState; toJSON(message: _50.GenesisState): unknown; fromPartial(object: Partial<_50.GenesisState>): _50.GenesisState; @@ -4323,8 +4577,9 @@ export declare namespace cosmos { toProtoMsg(message: _50.GenesisState): _50.GenesisStateProtoMsg; }; BasicAllowance: { - encode(message: _49.BasicAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _49.BasicAllowance; + typeUrl: string; + encode(message: _49.BasicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.BasicAllowance; fromJSON(object: any): _49.BasicAllowance; toJSON(message: _49.BasicAllowance): unknown; fromPartial(object: Partial<_49.BasicAllowance>): _49.BasicAllowance; @@ -4337,8 +4592,9 @@ export declare namespace cosmos { toProtoMsg(message: _49.BasicAllowance): _49.BasicAllowanceProtoMsg; }; PeriodicAllowance: { - encode(message: _49.PeriodicAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _49.PeriodicAllowance; + typeUrl: string; + encode(message: _49.PeriodicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.PeriodicAllowance; fromJSON(object: any): _49.PeriodicAllowance; toJSON(message: _49.PeriodicAllowance): unknown; fromPartial(object: Partial<_49.PeriodicAllowance>): _49.PeriodicAllowance; @@ -4351,8 +4607,9 @@ export declare namespace cosmos { toProtoMsg(message: _49.PeriodicAllowance): _49.PeriodicAllowanceProtoMsg; }; AllowedMsgAllowance: { - encode(message: _49.AllowedMsgAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _49.AllowedMsgAllowance; + typeUrl: string; + encode(message: _49.AllowedMsgAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.AllowedMsgAllowance; fromJSON(object: any): _49.AllowedMsgAllowance; toJSON(message: _49.AllowedMsgAllowance): unknown; fromPartial(object: Partial<_49.AllowedMsgAllowance>): _49.AllowedMsgAllowance; @@ -4365,8 +4622,9 @@ export declare namespace cosmos { toProtoMsg(message: _49.AllowedMsgAllowance): _49.AllowedMsgAllowanceProtoMsg; }; Grant: { - encode(message: _49.Grant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _49.Grant; + typeUrl: string; + encode(message: _49.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.Grant; fromJSON(object: any): _49.Grant; toJSON(message: _49.Grant): unknown; fromPartial(object: Partial<_49.Grant>): _49.Grant; @@ -4383,8 +4641,9 @@ export declare namespace cosmos { namespace genutil { const v1beta1: { GenesisState: { - encode(message: _53.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _53.GenesisState; + typeUrl: string; + encode(message: _53.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _53.GenesisState; fromJSON(object: any): _53.GenesisState; toJSON(message: _53.GenesisState): unknown; fromPartial(object: Partial<_53.GenesisState>): _53.GenesisState; @@ -4400,8 +4659,8 @@ export declare namespace cosmos { } namespace gov { const v1: { - MsgClientImpl: typeof _222.MsgClientImpl; - QueryClientImpl: typeof _206.QueryClientImpl; + MsgClientImpl: typeof _223.MsgClientImpl; + QueryClientImpl: typeof _207.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { proposal(request: _56.QueryProposalRequest): Promise<_56.QueryProposalResponse>; proposals(request: _56.QueryProposalsRequest): Promise<_56.QueryProposalsResponse>; @@ -4412,7 +4671,7 @@ export declare namespace cosmos { deposits(request: _56.QueryDepositsRequest): Promise<_56.QueryDepositsResponse>; tallyResult(request: _56.QueryTallyResultRequest): Promise<_56.QueryTallyResultResponse>; }; - LCDQueryClient: typeof _187.LCDQueryClient; + LCDQueryClient: typeof _188.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -4555,8 +4814,9 @@ export declare namespace cosmos { }; }; MsgSubmitProposal: { - encode(message: _57.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgSubmitProposal; + typeUrl: string; + encode(message: _57.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgSubmitProposal; fromJSON(object: any): _57.MsgSubmitProposal; toJSON(message: _57.MsgSubmitProposal): unknown; fromPartial(object: Partial<_57.MsgSubmitProposal>): _57.MsgSubmitProposal; @@ -4569,8 +4829,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgSubmitProposal): _57.MsgSubmitProposalProtoMsg; }; MsgSubmitProposalResponse: { - encode(message: _57.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgSubmitProposalResponse; + typeUrl: string; + encode(message: _57.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgSubmitProposalResponse; fromJSON(object: any): _57.MsgSubmitProposalResponse; toJSON(message: _57.MsgSubmitProposalResponse): unknown; fromPartial(object: Partial<_57.MsgSubmitProposalResponse>): _57.MsgSubmitProposalResponse; @@ -4583,8 +4844,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgSubmitProposalResponse): _57.MsgSubmitProposalResponseProtoMsg; }; MsgExecLegacyContent: { - encode(message: _57.MsgExecLegacyContent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgExecLegacyContent; + typeUrl: string; + encode(message: _57.MsgExecLegacyContent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgExecLegacyContent; fromJSON(object: any): _57.MsgExecLegacyContent; toJSON(message: _57.MsgExecLegacyContent): unknown; fromPartial(object: Partial<_57.MsgExecLegacyContent>): _57.MsgExecLegacyContent; @@ -4597,8 +4859,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgExecLegacyContent): _57.MsgExecLegacyContentProtoMsg; }; MsgExecLegacyContentResponse: { - encode(_: _57.MsgExecLegacyContentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgExecLegacyContentResponse; + typeUrl: string; + encode(_: _57.MsgExecLegacyContentResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgExecLegacyContentResponse; fromJSON(_: any): _57.MsgExecLegacyContentResponse; toJSON(_: _57.MsgExecLegacyContentResponse): unknown; fromPartial(_: Partial<_57.MsgExecLegacyContentResponse>): _57.MsgExecLegacyContentResponse; @@ -4611,8 +4874,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgExecLegacyContentResponse): _57.MsgExecLegacyContentResponseProtoMsg; }; MsgVote: { - encode(message: _57.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgVote; + typeUrl: string; + encode(message: _57.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVote; fromJSON(object: any): _57.MsgVote; toJSON(message: _57.MsgVote): unknown; fromPartial(object: Partial<_57.MsgVote>): _57.MsgVote; @@ -4625,8 +4889,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgVote): _57.MsgVoteProtoMsg; }; MsgVoteResponse: { - encode(_: _57.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgVoteResponse; + typeUrl: string; + encode(_: _57.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteResponse; fromJSON(_: any): _57.MsgVoteResponse; toJSON(_: _57.MsgVoteResponse): unknown; fromPartial(_: Partial<_57.MsgVoteResponse>): _57.MsgVoteResponse; @@ -4639,8 +4904,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgVoteResponse): _57.MsgVoteResponseProtoMsg; }; MsgVoteWeighted: { - encode(message: _57.MsgVoteWeighted, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgVoteWeighted; + typeUrl: string; + encode(message: _57.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteWeighted; fromJSON(object: any): _57.MsgVoteWeighted; toJSON(message: _57.MsgVoteWeighted): unknown; fromPartial(object: Partial<_57.MsgVoteWeighted>): _57.MsgVoteWeighted; @@ -4653,8 +4919,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgVoteWeighted): _57.MsgVoteWeightedProtoMsg; }; MsgVoteWeightedResponse: { - encode(_: _57.MsgVoteWeightedResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgVoteWeightedResponse; + typeUrl: string; + encode(_: _57.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteWeightedResponse; fromJSON(_: any): _57.MsgVoteWeightedResponse; toJSON(_: _57.MsgVoteWeightedResponse): unknown; fromPartial(_: Partial<_57.MsgVoteWeightedResponse>): _57.MsgVoteWeightedResponse; @@ -4667,8 +4934,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgVoteWeightedResponse): _57.MsgVoteWeightedResponseProtoMsg; }; MsgDeposit: { - encode(message: _57.MsgDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgDeposit; + typeUrl: string; + encode(message: _57.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgDeposit; fromJSON(object: any): _57.MsgDeposit; toJSON(message: _57.MsgDeposit): unknown; fromPartial(object: Partial<_57.MsgDeposit>): _57.MsgDeposit; @@ -4681,8 +4949,9 @@ export declare namespace cosmos { toProtoMsg(message: _57.MsgDeposit): _57.MsgDepositProtoMsg; }; MsgDepositResponse: { - encode(_: _57.MsgDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _57.MsgDepositResponse; + typeUrl: string; + encode(_: _57.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgDepositResponse; fromJSON(_: any): _57.MsgDepositResponse; toJSON(_: _57.MsgDepositResponse): unknown; fromPartial(_: Partial<_57.MsgDepositResponse>): _57.MsgDepositResponse; @@ -4694,12 +4963,13 @@ export declare namespace cosmos { toProto(message: _57.MsgDepositResponse): Uint8Array; toProtoMsg(message: _57.MsgDepositResponse): _57.MsgDepositResponseProtoMsg; }; - Content_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _59.TextProposal; + Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _59.TextProposal; Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; QueryProposalRequest: { - encode(message: _56.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryProposalRequest; + typeUrl: string; + encode(message: _56.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalRequest; fromJSON(object: any): _56.QueryProposalRequest; toJSON(message: _56.QueryProposalRequest): unknown; fromPartial(object: Partial<_56.QueryProposalRequest>): _56.QueryProposalRequest; @@ -4712,8 +4982,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryProposalRequest): _56.QueryProposalRequestProtoMsg; }; QueryProposalResponse: { - encode(message: _56.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryProposalResponse; + typeUrl: string; + encode(message: _56.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalResponse; fromJSON(object: any): _56.QueryProposalResponse; toJSON(message: _56.QueryProposalResponse): unknown; fromPartial(object: Partial<_56.QueryProposalResponse>): _56.QueryProposalResponse; @@ -4726,8 +4997,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryProposalResponse): _56.QueryProposalResponseProtoMsg; }; QueryProposalsRequest: { - encode(message: _56.QueryProposalsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryProposalsRequest; + typeUrl: string; + encode(message: _56.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalsRequest; fromJSON(object: any): _56.QueryProposalsRequest; toJSON(message: _56.QueryProposalsRequest): unknown; fromPartial(object: Partial<_56.QueryProposalsRequest>): _56.QueryProposalsRequest; @@ -4740,8 +5012,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryProposalsRequest): _56.QueryProposalsRequestProtoMsg; }; QueryProposalsResponse: { - encode(message: _56.QueryProposalsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryProposalsResponse; + typeUrl: string; + encode(message: _56.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalsResponse; fromJSON(object: any): _56.QueryProposalsResponse; toJSON(message: _56.QueryProposalsResponse): unknown; fromPartial(object: Partial<_56.QueryProposalsResponse>): _56.QueryProposalsResponse; @@ -4754,8 +5027,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryProposalsResponse): _56.QueryProposalsResponseProtoMsg; }; QueryVoteRequest: { - encode(message: _56.QueryVoteRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryVoteRequest; + typeUrl: string; + encode(message: _56.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVoteRequest; fromJSON(object: any): _56.QueryVoteRequest; toJSON(message: _56.QueryVoteRequest): unknown; fromPartial(object: Partial<_56.QueryVoteRequest>): _56.QueryVoteRequest; @@ -4768,8 +5042,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryVoteRequest): _56.QueryVoteRequestProtoMsg; }; QueryVoteResponse: { - encode(message: _56.QueryVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryVoteResponse; + typeUrl: string; + encode(message: _56.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVoteResponse; fromJSON(object: any): _56.QueryVoteResponse; toJSON(message: _56.QueryVoteResponse): unknown; fromPartial(object: Partial<_56.QueryVoteResponse>): _56.QueryVoteResponse; @@ -4782,8 +5057,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryVoteResponse): _56.QueryVoteResponseProtoMsg; }; QueryVotesRequest: { - encode(message: _56.QueryVotesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryVotesRequest; + typeUrl: string; + encode(message: _56.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVotesRequest; fromJSON(object: any): _56.QueryVotesRequest; toJSON(message: _56.QueryVotesRequest): unknown; fromPartial(object: Partial<_56.QueryVotesRequest>): _56.QueryVotesRequest; @@ -4796,8 +5072,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryVotesRequest): _56.QueryVotesRequestProtoMsg; }; QueryVotesResponse: { - encode(message: _56.QueryVotesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryVotesResponse; + typeUrl: string; + encode(message: _56.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVotesResponse; fromJSON(object: any): _56.QueryVotesResponse; toJSON(message: _56.QueryVotesResponse): unknown; fromPartial(object: Partial<_56.QueryVotesResponse>): _56.QueryVotesResponse; @@ -4810,8 +5087,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryVotesResponse): _56.QueryVotesResponseProtoMsg; }; QueryParamsRequest: { - encode(message: _56.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryParamsRequest; + typeUrl: string; + encode(message: _56.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryParamsRequest; fromJSON(object: any): _56.QueryParamsRequest; toJSON(message: _56.QueryParamsRequest): unknown; fromPartial(object: Partial<_56.QueryParamsRequest>): _56.QueryParamsRequest; @@ -4824,8 +5102,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _56.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryParamsResponse; + typeUrl: string; + encode(message: _56.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryParamsResponse; fromJSON(object: any): _56.QueryParamsResponse; toJSON(message: _56.QueryParamsResponse): unknown; fromPartial(object: Partial<_56.QueryParamsResponse>): _56.QueryParamsResponse; @@ -4838,8 +5117,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseProtoMsg; }; QueryDepositRequest: { - encode(message: _56.QueryDepositRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryDepositRequest; + typeUrl: string; + encode(message: _56.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositRequest; fromJSON(object: any): _56.QueryDepositRequest; toJSON(message: _56.QueryDepositRequest): unknown; fromPartial(object: Partial<_56.QueryDepositRequest>): _56.QueryDepositRequest; @@ -4852,8 +5132,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryDepositRequest): _56.QueryDepositRequestProtoMsg; }; QueryDepositResponse: { - encode(message: _56.QueryDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryDepositResponse; + typeUrl: string; + encode(message: _56.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositResponse; fromJSON(object: any): _56.QueryDepositResponse; toJSON(message: _56.QueryDepositResponse): unknown; fromPartial(object: Partial<_56.QueryDepositResponse>): _56.QueryDepositResponse; @@ -4866,8 +5147,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryDepositResponse): _56.QueryDepositResponseProtoMsg; }; QueryDepositsRequest: { - encode(message: _56.QueryDepositsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryDepositsRequest; + typeUrl: string; + encode(message: _56.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositsRequest; fromJSON(object: any): _56.QueryDepositsRequest; toJSON(message: _56.QueryDepositsRequest): unknown; fromPartial(object: Partial<_56.QueryDepositsRequest>): _56.QueryDepositsRequest; @@ -4880,8 +5162,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryDepositsRequest): _56.QueryDepositsRequestProtoMsg; }; QueryDepositsResponse: { - encode(message: _56.QueryDepositsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryDepositsResponse; + typeUrl: string; + encode(message: _56.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositsResponse; fromJSON(object: any): _56.QueryDepositsResponse; toJSON(message: _56.QueryDepositsResponse): unknown; fromPartial(object: Partial<_56.QueryDepositsResponse>): _56.QueryDepositsResponse; @@ -4894,8 +5177,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryDepositsResponse): _56.QueryDepositsResponseProtoMsg; }; QueryTallyResultRequest: { - encode(message: _56.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryTallyResultRequest; + typeUrl: string; + encode(message: _56.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryTallyResultRequest; fromJSON(object: any): _56.QueryTallyResultRequest; toJSON(message: _56.QueryTallyResultRequest): unknown; fromPartial(object: Partial<_56.QueryTallyResultRequest>): _56.QueryTallyResultRequest; @@ -4908,8 +5192,9 @@ export declare namespace cosmos { toProtoMsg(message: _56.QueryTallyResultRequest): _56.QueryTallyResultRequestProtoMsg; }; QueryTallyResultResponse: { - encode(message: _56.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _56.QueryTallyResultResponse; + typeUrl: string; + encode(message: _56.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryTallyResultResponse; fromJSON(object: any): _56.QueryTallyResultResponse; toJSON(message: _56.QueryTallyResultResponse): unknown; fromPartial(object: Partial<_56.QueryTallyResultResponse>): _56.QueryTallyResultResponse; @@ -4932,8 +5217,9 @@ export declare namespace cosmos { ProposalStatusSDKType: typeof _55.ProposalStatus; ProposalStatusAmino: typeof _55.ProposalStatus; WeightedVoteOption: { - encode(message: _55.WeightedVoteOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.WeightedVoteOption; + typeUrl: string; + encode(message: _55.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.WeightedVoteOption; fromJSON(object: any): _55.WeightedVoteOption; toJSON(message: _55.WeightedVoteOption): unknown; fromPartial(object: Partial<_55.WeightedVoteOption>): _55.WeightedVoteOption; @@ -4946,8 +5232,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.WeightedVoteOption): _55.WeightedVoteOptionProtoMsg; }; Deposit: { - encode(message: _55.Deposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.Deposit; + typeUrl: string; + encode(message: _55.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Deposit; fromJSON(object: any): _55.Deposit; toJSON(message: _55.Deposit): unknown; fromPartial(object: Partial<_55.Deposit>): _55.Deposit; @@ -4960,8 +5247,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.Deposit): _55.DepositProtoMsg; }; Proposal: { - encode(message: _55.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.Proposal; + typeUrl: string; + encode(message: _55.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Proposal; fromJSON(object: any): _55.Proposal; toJSON(message: _55.Proposal): unknown; fromPartial(object: Partial<_55.Proposal>): _55.Proposal; @@ -4974,8 +5262,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.Proposal): _55.ProposalProtoMsg; }; TallyResult: { - encode(message: _55.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.TallyResult; + typeUrl: string; + encode(message: _55.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.TallyResult; fromJSON(object: any): _55.TallyResult; toJSON(message: _55.TallyResult): unknown; fromPartial(object: Partial<_55.TallyResult>): _55.TallyResult; @@ -4988,8 +5277,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.TallyResult): _55.TallyResultProtoMsg; }; Vote: { - encode(message: _55.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.Vote; + typeUrl: string; + encode(message: _55.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Vote; fromJSON(object: any): _55.Vote; toJSON(message: _55.Vote): unknown; fromPartial(object: Partial<_55.Vote>): _55.Vote; @@ -5002,8 +5292,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.Vote): _55.VoteProtoMsg; }; DepositParams: { - encode(message: _55.DepositParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.DepositParams; + typeUrl: string; + encode(message: _55.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.DepositParams; fromJSON(object: any): _55.DepositParams; toJSON(message: _55.DepositParams): unknown; fromPartial(object: Partial<_55.DepositParams>): _55.DepositParams; @@ -5016,8 +5307,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.DepositParams): _55.DepositParamsProtoMsg; }; VotingParams: { - encode(message: _55.VotingParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.VotingParams; + typeUrl: string; + encode(message: _55.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.VotingParams; fromJSON(object: any): _55.VotingParams; toJSON(message: _55.VotingParams): unknown; fromPartial(object: Partial<_55.VotingParams>): _55.VotingParams; @@ -5030,8 +5322,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.VotingParams): _55.VotingParamsProtoMsg; }; TallyParams: { - encode(message: _55.TallyParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _55.TallyParams; + typeUrl: string; + encode(message: _55.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.TallyParams; fromJSON(object: any): _55.TallyParams; toJSON(message: _55.TallyParams): unknown; fromPartial(object: Partial<_55.TallyParams>): _55.TallyParams; @@ -5044,8 +5337,9 @@ export declare namespace cosmos { toProtoMsg(message: _55.TallyParams): _55.TallyParamsProtoMsg; }; GenesisState: { - encode(message: _54.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _54.GenesisState; + typeUrl: string; + encode(message: _54.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _54.GenesisState; fromJSON(object: any): _54.GenesisState; toJSON(message: _54.GenesisState): unknown; fromPartial(object: Partial<_54.GenesisState>): _54.GenesisState; @@ -5059,8 +5353,8 @@ export declare namespace cosmos { }; }; const v1beta1: { - MsgClientImpl: typeof _223.MsgClientImpl; - QueryClientImpl: typeof _207.QueryClientImpl; + MsgClientImpl: typeof _224.MsgClientImpl; + QueryClientImpl: typeof _208.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { proposal(request: _60.QueryProposalRequest): Promise<_60.QueryProposalResponse>; proposals(request: _60.QueryProposalsRequest): Promise<_60.QueryProposalsResponse>; @@ -5071,7 +5365,7 @@ export declare namespace cosmos { deposits(request: _60.QueryDepositsRequest): Promise<_60.QueryDepositsResponse>; tallyResult(request: _60.QueryTallyResultRequest): Promise<_60.QueryTallyResultResponse>; }; - LCDQueryClient: typeof _188.LCDQueryClient; + LCDQueryClient: typeof _189.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -5189,8 +5483,9 @@ export declare namespace cosmos { }; }; MsgSubmitProposal: { - encode(message: _61.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgSubmitProposal; + typeUrl: string; + encode(message: _61.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgSubmitProposal; fromJSON(object: any): _61.MsgSubmitProposal; toJSON(message: _61.MsgSubmitProposal): unknown; fromPartial(object: Partial<_61.MsgSubmitProposal>): _61.MsgSubmitProposal; @@ -5203,8 +5498,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgSubmitProposal): _61.MsgSubmitProposalProtoMsg; }; MsgSubmitProposalResponse: { - encode(message: _61.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgSubmitProposalResponse; + typeUrl: string; + encode(message: _61.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgSubmitProposalResponse; fromJSON(object: any): _61.MsgSubmitProposalResponse; toJSON(message: _61.MsgSubmitProposalResponse): unknown; fromPartial(object: Partial<_61.MsgSubmitProposalResponse>): _61.MsgSubmitProposalResponse; @@ -5217,8 +5513,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgSubmitProposalResponse): _61.MsgSubmitProposalResponseProtoMsg; }; MsgVote: { - encode(message: _61.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgVote; + typeUrl: string; + encode(message: _61.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVote; fromJSON(object: any): _61.MsgVote; toJSON(message: _61.MsgVote): unknown; fromPartial(object: Partial<_61.MsgVote>): _61.MsgVote; @@ -5231,8 +5528,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgVote): _61.MsgVoteProtoMsg; }; MsgVoteResponse: { - encode(_: _61.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgVoteResponse; + typeUrl: string; + encode(_: _61.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteResponse; fromJSON(_: any): _61.MsgVoteResponse; toJSON(_: _61.MsgVoteResponse): unknown; fromPartial(_: Partial<_61.MsgVoteResponse>): _61.MsgVoteResponse; @@ -5245,8 +5543,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgVoteResponse): _61.MsgVoteResponseProtoMsg; }; MsgVoteWeighted: { - encode(message: _61.MsgVoteWeighted, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgVoteWeighted; + typeUrl: string; + encode(message: _61.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteWeighted; fromJSON(object: any): _61.MsgVoteWeighted; toJSON(message: _61.MsgVoteWeighted): unknown; fromPartial(object: Partial<_61.MsgVoteWeighted>): _61.MsgVoteWeighted; @@ -5259,8 +5558,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgVoteWeighted): _61.MsgVoteWeightedProtoMsg; }; MsgVoteWeightedResponse: { - encode(_: _61.MsgVoteWeightedResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgVoteWeightedResponse; + typeUrl: string; + encode(_: _61.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteWeightedResponse; fromJSON(_: any): _61.MsgVoteWeightedResponse; toJSON(_: _61.MsgVoteWeightedResponse): unknown; fromPartial(_: Partial<_61.MsgVoteWeightedResponse>): _61.MsgVoteWeightedResponse; @@ -5273,8 +5573,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgVoteWeightedResponse): _61.MsgVoteWeightedResponseProtoMsg; }; MsgDeposit: { - encode(message: _61.MsgDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgDeposit; + typeUrl: string; + encode(message: _61.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgDeposit; fromJSON(object: any): _61.MsgDeposit; toJSON(message: _61.MsgDeposit): unknown; fromPartial(object: Partial<_61.MsgDeposit>): _61.MsgDeposit; @@ -5287,8 +5588,9 @@ export declare namespace cosmos { toProtoMsg(message: _61.MsgDeposit): _61.MsgDepositProtoMsg; }; MsgDepositResponse: { - encode(_: _61.MsgDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _61.MsgDepositResponse; + typeUrl: string; + encode(_: _61.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgDepositResponse; fromJSON(_: any): _61.MsgDepositResponse; toJSON(_: _61.MsgDepositResponse): unknown; fromPartial(_: Partial<_61.MsgDepositResponse>): _61.MsgDepositResponse; @@ -5300,12 +5602,13 @@ export declare namespace cosmos { toProto(message: _61.MsgDepositResponse): Uint8Array; toProtoMsg(message: _61.MsgDepositResponse): _61.MsgDepositResponseProtoMsg; }; - Content_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _59.TextProposal; + Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _59.TextProposal; Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; QueryProposalRequest: { - encode(message: _60.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryProposalRequest; + typeUrl: string; + encode(message: _60.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalRequest; fromJSON(object: any): _60.QueryProposalRequest; toJSON(message: _60.QueryProposalRequest): unknown; fromPartial(object: Partial<_60.QueryProposalRequest>): _60.QueryProposalRequest; @@ -5318,8 +5621,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryProposalRequest): _60.QueryProposalRequestProtoMsg; }; QueryProposalResponse: { - encode(message: _60.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryProposalResponse; + typeUrl: string; + encode(message: _60.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalResponse; fromJSON(object: any): _60.QueryProposalResponse; toJSON(message: _60.QueryProposalResponse): unknown; fromPartial(object: Partial<_60.QueryProposalResponse>): _60.QueryProposalResponse; @@ -5332,8 +5636,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryProposalResponse): _60.QueryProposalResponseProtoMsg; }; QueryProposalsRequest: { - encode(message: _60.QueryProposalsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryProposalsRequest; + typeUrl: string; + encode(message: _60.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalsRequest; fromJSON(object: any): _60.QueryProposalsRequest; toJSON(message: _60.QueryProposalsRequest): unknown; fromPartial(object: Partial<_60.QueryProposalsRequest>): _60.QueryProposalsRequest; @@ -5346,8 +5651,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryProposalsRequest): _60.QueryProposalsRequestProtoMsg; }; QueryProposalsResponse: { - encode(message: _60.QueryProposalsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryProposalsResponse; + typeUrl: string; + encode(message: _60.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalsResponse; fromJSON(object: any): _60.QueryProposalsResponse; toJSON(message: _60.QueryProposalsResponse): unknown; fromPartial(object: Partial<_60.QueryProposalsResponse>): _60.QueryProposalsResponse; @@ -5360,8 +5666,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryProposalsResponse): _60.QueryProposalsResponseProtoMsg; }; QueryVoteRequest: { - encode(message: _60.QueryVoteRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryVoteRequest; + typeUrl: string; + encode(message: _60.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVoteRequest; fromJSON(object: any): _60.QueryVoteRequest; toJSON(message: _60.QueryVoteRequest): unknown; fromPartial(object: Partial<_60.QueryVoteRequest>): _60.QueryVoteRequest; @@ -5374,8 +5681,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryVoteRequest): _60.QueryVoteRequestProtoMsg; }; QueryVoteResponse: { - encode(message: _60.QueryVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryVoteResponse; + typeUrl: string; + encode(message: _60.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVoteResponse; fromJSON(object: any): _60.QueryVoteResponse; toJSON(message: _60.QueryVoteResponse): unknown; fromPartial(object: Partial<_60.QueryVoteResponse>): _60.QueryVoteResponse; @@ -5388,8 +5696,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryVoteResponse): _60.QueryVoteResponseProtoMsg; }; QueryVotesRequest: { - encode(message: _60.QueryVotesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryVotesRequest; + typeUrl: string; + encode(message: _60.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVotesRequest; fromJSON(object: any): _60.QueryVotesRequest; toJSON(message: _60.QueryVotesRequest): unknown; fromPartial(object: Partial<_60.QueryVotesRequest>): _60.QueryVotesRequest; @@ -5402,8 +5711,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryVotesRequest): _60.QueryVotesRequestProtoMsg; }; QueryVotesResponse: { - encode(message: _60.QueryVotesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryVotesResponse; + typeUrl: string; + encode(message: _60.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVotesResponse; fromJSON(object: any): _60.QueryVotesResponse; toJSON(message: _60.QueryVotesResponse): unknown; fromPartial(object: Partial<_60.QueryVotesResponse>): _60.QueryVotesResponse; @@ -5416,8 +5726,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryVotesResponse): _60.QueryVotesResponseProtoMsg; }; QueryParamsRequest: { - encode(message: _60.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryParamsRequest; + typeUrl: string; + encode(message: _60.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryParamsRequest; fromJSON(object: any): _60.QueryParamsRequest; toJSON(message: _60.QueryParamsRequest): unknown; fromPartial(object: Partial<_60.QueryParamsRequest>): _60.QueryParamsRequest; @@ -5430,8 +5741,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryParamsRequest): _60.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _60.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryParamsResponse; + typeUrl: string; + encode(message: _60.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryParamsResponse; fromJSON(object: any): _60.QueryParamsResponse; toJSON(message: _60.QueryParamsResponse): unknown; fromPartial(object: Partial<_60.QueryParamsResponse>): _60.QueryParamsResponse; @@ -5444,8 +5756,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryParamsResponse): _60.QueryParamsResponseProtoMsg; }; QueryDepositRequest: { - encode(message: _60.QueryDepositRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryDepositRequest; + typeUrl: string; + encode(message: _60.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositRequest; fromJSON(object: any): _60.QueryDepositRequest; toJSON(message: _60.QueryDepositRequest): unknown; fromPartial(object: Partial<_60.QueryDepositRequest>): _60.QueryDepositRequest; @@ -5458,8 +5771,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryDepositRequest): _60.QueryDepositRequestProtoMsg; }; QueryDepositResponse: { - encode(message: _60.QueryDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryDepositResponse; + typeUrl: string; + encode(message: _60.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositResponse; fromJSON(object: any): _60.QueryDepositResponse; toJSON(message: _60.QueryDepositResponse): unknown; fromPartial(object: Partial<_60.QueryDepositResponse>): _60.QueryDepositResponse; @@ -5472,8 +5786,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryDepositResponse): _60.QueryDepositResponseProtoMsg; }; QueryDepositsRequest: { - encode(message: _60.QueryDepositsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryDepositsRequest; + typeUrl: string; + encode(message: _60.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositsRequest; fromJSON(object: any): _60.QueryDepositsRequest; toJSON(message: _60.QueryDepositsRequest): unknown; fromPartial(object: Partial<_60.QueryDepositsRequest>): _60.QueryDepositsRequest; @@ -5486,8 +5801,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryDepositsRequest): _60.QueryDepositsRequestProtoMsg; }; QueryDepositsResponse: { - encode(message: _60.QueryDepositsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryDepositsResponse; + typeUrl: string; + encode(message: _60.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositsResponse; fromJSON(object: any): _60.QueryDepositsResponse; toJSON(message: _60.QueryDepositsResponse): unknown; fromPartial(object: Partial<_60.QueryDepositsResponse>): _60.QueryDepositsResponse; @@ -5500,8 +5816,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryDepositsResponse): _60.QueryDepositsResponseProtoMsg; }; QueryTallyResultRequest: { - encode(message: _60.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryTallyResultRequest; + typeUrl: string; + encode(message: _60.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryTallyResultRequest; fromJSON(object: any): _60.QueryTallyResultRequest; toJSON(message: _60.QueryTallyResultRequest): unknown; fromPartial(object: Partial<_60.QueryTallyResultRequest>): _60.QueryTallyResultRequest; @@ -5514,8 +5831,9 @@ export declare namespace cosmos { toProtoMsg(message: _60.QueryTallyResultRequest): _60.QueryTallyResultRequestProtoMsg; }; QueryTallyResultResponse: { - encode(message: _60.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _60.QueryTallyResultResponse; + typeUrl: string; + encode(message: _60.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryTallyResultResponse; fromJSON(object: any): _60.QueryTallyResultResponse; toJSON(message: _60.QueryTallyResultResponse): unknown; fromPartial(object: Partial<_60.QueryTallyResultResponse>): _60.QueryTallyResultResponse; @@ -5538,8 +5856,9 @@ export declare namespace cosmos { ProposalStatusSDKType: typeof _59.ProposalStatus; ProposalStatusAmino: typeof _59.ProposalStatus; WeightedVoteOption: { - encode(message: _59.WeightedVoteOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.WeightedVoteOption; + typeUrl: string; + encode(message: _59.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.WeightedVoteOption; fromJSON(object: any): _59.WeightedVoteOption; toJSON(message: _59.WeightedVoteOption): unknown; fromPartial(object: Partial<_59.WeightedVoteOption>): _59.WeightedVoteOption; @@ -5552,8 +5871,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.WeightedVoteOption): _59.WeightedVoteOptionProtoMsg; }; TextProposal: { - encode(message: _59.TextProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.TextProposal; + typeUrl: string; + encode(message: _59.TextProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TextProposal; fromJSON(object: any): _59.TextProposal; toJSON(message: _59.TextProposal): unknown; fromPartial(object: Partial<_59.TextProposal>): _59.TextProposal; @@ -5566,8 +5886,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.TextProposal): _59.TextProposalProtoMsg; }; Deposit: { - encode(message: _59.Deposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.Deposit; + typeUrl: string; + encode(message: _59.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Deposit; fromJSON(object: any): _59.Deposit; toJSON(message: _59.Deposit): unknown; fromPartial(object: Partial<_59.Deposit>): _59.Deposit; @@ -5580,8 +5901,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.Deposit): _59.DepositProtoMsg; }; Proposal: { - encode(message: _59.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.Proposal; + typeUrl: string; + encode(message: _59.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Proposal; fromJSON(object: any): _59.Proposal; toJSON(message: _59.Proposal): unknown; fromPartial(object: Partial<_59.Proposal>): _59.Proposal; @@ -5594,8 +5916,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.Proposal): _59.ProposalProtoMsg; }; TallyResult: { - encode(message: _59.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.TallyResult; + typeUrl: string; + encode(message: _59.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TallyResult; fromJSON(object: any): _59.TallyResult; toJSON(message: _59.TallyResult): unknown; fromPartial(object: Partial<_59.TallyResult>): _59.TallyResult; @@ -5608,8 +5931,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.TallyResult): _59.TallyResultProtoMsg; }; Vote: { - encode(message: _59.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.Vote; + typeUrl: string; + encode(message: _59.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Vote; fromJSON(object: any): _59.Vote; toJSON(message: _59.Vote): unknown; fromPartial(object: Partial<_59.Vote>): _59.Vote; @@ -5622,8 +5946,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.Vote): _59.VoteProtoMsg; }; DepositParams: { - encode(message: _59.DepositParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.DepositParams; + typeUrl: string; + encode(message: _59.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.DepositParams; fromJSON(object: any): _59.DepositParams; toJSON(message: _59.DepositParams): unknown; fromPartial(object: Partial<_59.DepositParams>): _59.DepositParams; @@ -5636,8 +5961,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.DepositParams): _59.DepositParamsProtoMsg; }; VotingParams: { - encode(message: _59.VotingParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.VotingParams; + typeUrl: string; + encode(message: _59.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.VotingParams; fromJSON(object: any): _59.VotingParams; toJSON(message: _59.VotingParams): unknown; fromPartial(object: Partial<_59.VotingParams>): _59.VotingParams; @@ -5650,8 +5976,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.VotingParams): _59.VotingParamsProtoMsg; }; TallyParams: { - encode(message: _59.TallyParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _59.TallyParams; + typeUrl: string; + encode(message: _59.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TallyParams; fromJSON(object: any): _59.TallyParams; toJSON(message: _59.TallyParams): unknown; fromPartial(object: Partial<_59.TallyParams>): _59.TallyParams; @@ -5664,8 +5991,9 @@ export declare namespace cosmos { toProtoMsg(message: _59.TallyParams): _59.TallyParamsProtoMsg; }; GenesisState: { - encode(message: _58.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _58.GenesisState; + typeUrl: string; + encode(message: _58.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _58.GenesisState; fromJSON(object: any): _58.GenesisState; toJSON(message: _58.GenesisState): unknown; fromPartial(object: Partial<_58.GenesisState>): _58.GenesisState; @@ -5681,8 +6009,8 @@ export declare namespace cosmos { } namespace group { const v1: { - MsgClientImpl: typeof _224.MsgClientImpl; - QueryClientImpl: typeof _208.QueryClientImpl; + MsgClientImpl: typeof _225.MsgClientImpl; + QueryClientImpl: typeof _209.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { groupInfo(request: _64.QueryGroupInfoRequest): Promise<_64.QueryGroupInfoResponse>; groupPolicyInfo(request: _64.QueryGroupPolicyInfoRequest): Promise<_64.QueryGroupPolicyInfoResponse>; @@ -5698,7 +6026,7 @@ export declare namespace cosmos { groupsByMember(request: _64.QueryGroupsByMemberRequest): Promise<_64.QueryGroupsByMemberResponse>; tallyResult(request: _64.QueryTallyResultRequest): Promise<_64.QueryTallyResultResponse>; }; - LCDQueryClient: typeof _189.LCDQueryClient; + LCDQueryClient: typeof _190.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -6081,8 +6409,9 @@ export declare namespace cosmos { ProposalExecutorResultSDKType: typeof _66.ProposalExecutorResult; ProposalExecutorResultAmino: typeof _66.ProposalExecutorResult; Member: { - encode(message: _66.Member, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.Member; + typeUrl: string; + encode(message: _66.Member, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Member; fromJSON(object: any): _66.Member; toJSON(message: _66.Member): unknown; fromPartial(object: Partial<_66.Member>): _66.Member; @@ -6095,8 +6424,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.Member): _66.MemberProtoMsg; }; MemberRequest: { - encode(message: _66.MemberRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.MemberRequest; + typeUrl: string; + encode(message: _66.MemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.MemberRequest; fromJSON(object: any): _66.MemberRequest; toJSON(message: _66.MemberRequest): unknown; fromPartial(object: Partial<_66.MemberRequest>): _66.MemberRequest; @@ -6109,8 +6439,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.MemberRequest): _66.MemberRequestProtoMsg; }; ThresholdDecisionPolicy: { - encode(message: _66.ThresholdDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.ThresholdDecisionPolicy; + typeUrl: string; + encode(message: _66.ThresholdDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.ThresholdDecisionPolicy; fromJSON(object: any): _66.ThresholdDecisionPolicy; toJSON(message: _66.ThresholdDecisionPolicy): unknown; fromPartial(object: Partial<_66.ThresholdDecisionPolicy>): _66.ThresholdDecisionPolicy; @@ -6123,8 +6454,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.ThresholdDecisionPolicy): _66.ThresholdDecisionPolicyProtoMsg; }; PercentageDecisionPolicy: { - encode(message: _66.PercentageDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.PercentageDecisionPolicy; + typeUrl: string; + encode(message: _66.PercentageDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.PercentageDecisionPolicy; fromJSON(object: any): _66.PercentageDecisionPolicy; toJSON(message: _66.PercentageDecisionPolicy): unknown; fromPartial(object: Partial<_66.PercentageDecisionPolicy>): _66.PercentageDecisionPolicy; @@ -6137,8 +6469,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.PercentageDecisionPolicy): _66.PercentageDecisionPolicyProtoMsg; }; DecisionPolicyWindows: { - encode(message: _66.DecisionPolicyWindows, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.DecisionPolicyWindows; + typeUrl: string; + encode(message: _66.DecisionPolicyWindows, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.DecisionPolicyWindows; fromJSON(object: any): _66.DecisionPolicyWindows; toJSON(message: _66.DecisionPolicyWindows): unknown; fromPartial(object: Partial<_66.DecisionPolicyWindows>): _66.DecisionPolicyWindows; @@ -6151,8 +6484,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.DecisionPolicyWindows): _66.DecisionPolicyWindowsProtoMsg; }; GroupInfo: { - encode(message: _66.GroupInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.GroupInfo; + typeUrl: string; + encode(message: _66.GroupInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupInfo; fromJSON(object: any): _66.GroupInfo; toJSON(message: _66.GroupInfo): unknown; fromPartial(object: Partial<_66.GroupInfo>): _66.GroupInfo; @@ -6165,8 +6499,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.GroupInfo): _66.GroupInfoProtoMsg; }; GroupMember: { - encode(message: _66.GroupMember, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.GroupMember; + typeUrl: string; + encode(message: _66.GroupMember, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupMember; fromJSON(object: any): _66.GroupMember; toJSON(message: _66.GroupMember): unknown; fromPartial(object: Partial<_66.GroupMember>): _66.GroupMember; @@ -6179,8 +6514,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.GroupMember): _66.GroupMemberProtoMsg; }; GroupPolicyInfo: { - encode(message: _66.GroupPolicyInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.GroupPolicyInfo; + typeUrl: string; + encode(message: _66.GroupPolicyInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupPolicyInfo; fromJSON(object: any): _66.GroupPolicyInfo; toJSON(message: _66.GroupPolicyInfo): unknown; fromPartial(object: Partial<_66.GroupPolicyInfo>): _66.GroupPolicyInfo; @@ -6193,8 +6529,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.GroupPolicyInfo): _66.GroupPolicyInfoProtoMsg; }; Proposal: { - encode(message: _66.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.Proposal; + typeUrl: string; + encode(message: _66.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Proposal; fromJSON(object: any): _66.Proposal; toJSON(message: _66.Proposal): unknown; fromPartial(object: Partial<_66.Proposal>): _66.Proposal; @@ -6207,8 +6544,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.Proposal): _66.ProposalProtoMsg; }; TallyResult: { - encode(message: _66.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.TallyResult; + typeUrl: string; + encode(message: _66.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.TallyResult; fromJSON(object: any): _66.TallyResult; toJSON(message: _66.TallyResult): unknown; fromPartial(object: Partial<_66.TallyResult>): _66.TallyResult; @@ -6221,8 +6559,9 @@ export declare namespace cosmos { toProtoMsg(message: _66.TallyResult): _66.TallyResultProtoMsg; }; Vote: { - encode(message: _66.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _66.Vote; + typeUrl: string; + encode(message: _66.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Vote; fromJSON(object: any): _66.Vote; toJSON(message: _66.Vote): unknown; fromPartial(object: Partial<_66.Vote>): _66.Vote; @@ -6234,7 +6573,7 @@ export declare namespace cosmos { toProto(message: _66.Vote): Uint8Array; toProtoMsg(message: _66.Vote): _66.VoteProtoMsg; }; - DecisionPolicy_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any | _66.ThresholdDecisionPolicy | _66.PercentageDecisionPolicy; + DecisionPolicy_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _66.ThresholdDecisionPolicy | _66.PercentageDecisionPolicy; DecisionPolicy_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; DecisionPolicy_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; execFromJSON(object: any): _65.Exec; @@ -6243,8 +6582,9 @@ export declare namespace cosmos { ExecSDKType: typeof _65.Exec; ExecAmino: typeof _65.Exec; MsgCreateGroup: { - encode(message: _65.MsgCreateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroup; + typeUrl: string; + encode(message: _65.MsgCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroup; fromJSON(object: any): _65.MsgCreateGroup; toJSON(message: _65.MsgCreateGroup): unknown; fromPartial(object: Partial<_65.MsgCreateGroup>): _65.MsgCreateGroup; @@ -6257,8 +6597,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroup): _65.MsgCreateGroupProtoMsg; }; MsgCreateGroupResponse: { - encode(message: _65.MsgCreateGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroupResponse; + typeUrl: string; + encode(message: _65.MsgCreateGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupResponse; fromJSON(object: any): _65.MsgCreateGroupResponse; toJSON(message: _65.MsgCreateGroupResponse): unknown; fromPartial(object: Partial<_65.MsgCreateGroupResponse>): _65.MsgCreateGroupResponse; @@ -6271,8 +6612,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroupResponse): _65.MsgCreateGroupResponseProtoMsg; }; MsgUpdateGroupMembers: { - encode(message: _65.MsgUpdateGroupMembers, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupMembers; + typeUrl: string; + encode(message: _65.MsgUpdateGroupMembers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMembers; fromJSON(object: any): _65.MsgUpdateGroupMembers; toJSON(message: _65.MsgUpdateGroupMembers): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupMembers>): _65.MsgUpdateGroupMembers; @@ -6285,8 +6627,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupMembers): _65.MsgUpdateGroupMembersProtoMsg; }; MsgUpdateGroupMembersResponse: { - encode(_: _65.MsgUpdateGroupMembersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupMembersResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMembersResponse; fromJSON(_: any): _65.MsgUpdateGroupMembersResponse; toJSON(_: _65.MsgUpdateGroupMembersResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupMembersResponse>): _65.MsgUpdateGroupMembersResponse; @@ -6299,8 +6642,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupMembersResponse): _65.MsgUpdateGroupMembersResponseProtoMsg; }; MsgUpdateGroupAdmin: { - encode(message: _65.MsgUpdateGroupAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupAdmin; + typeUrl: string; + encode(message: _65.MsgUpdateGroupAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupAdmin; fromJSON(object: any): _65.MsgUpdateGroupAdmin; toJSON(message: _65.MsgUpdateGroupAdmin): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupAdmin>): _65.MsgUpdateGroupAdmin; @@ -6313,8 +6657,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupAdmin): _65.MsgUpdateGroupAdminProtoMsg; }; MsgUpdateGroupAdminResponse: { - encode(_: _65.MsgUpdateGroupAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupAdminResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupAdminResponse; fromJSON(_: any): _65.MsgUpdateGroupAdminResponse; toJSON(_: _65.MsgUpdateGroupAdminResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupAdminResponse>): _65.MsgUpdateGroupAdminResponse; @@ -6327,8 +6672,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupAdminResponse): _65.MsgUpdateGroupAdminResponseProtoMsg; }; MsgUpdateGroupMetadata: { - encode(message: _65.MsgUpdateGroupMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupMetadata; + typeUrl: string; + encode(message: _65.MsgUpdateGroupMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMetadata; fromJSON(object: any): _65.MsgUpdateGroupMetadata; toJSON(message: _65.MsgUpdateGroupMetadata): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupMetadata>): _65.MsgUpdateGroupMetadata; @@ -6341,8 +6687,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupMetadata): _65.MsgUpdateGroupMetadataProtoMsg; }; MsgUpdateGroupMetadataResponse: { - encode(_: _65.MsgUpdateGroupMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupMetadataResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMetadataResponse; fromJSON(_: any): _65.MsgUpdateGroupMetadataResponse; toJSON(_: _65.MsgUpdateGroupMetadataResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupMetadataResponse>): _65.MsgUpdateGroupMetadataResponse; @@ -6355,8 +6702,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupMetadataResponse): _65.MsgUpdateGroupMetadataResponseProtoMsg; }; MsgCreateGroupPolicy: { - encode(message: _65.MsgCreateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroupPolicy; + typeUrl: string; + encode(message: _65.MsgCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupPolicy; fromJSON(object: any): _65.MsgCreateGroupPolicy; toJSON(message: _65.MsgCreateGroupPolicy): unknown; fromPartial(object: Partial<_65.MsgCreateGroupPolicy>): _65.MsgCreateGroupPolicy; @@ -6369,8 +6717,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroupPolicy): _65.MsgCreateGroupPolicyProtoMsg; }; MsgCreateGroupPolicyResponse: { - encode(message: _65.MsgCreateGroupPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroupPolicyResponse; + typeUrl: string; + encode(message: _65.MsgCreateGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupPolicyResponse; fromJSON(object: any): _65.MsgCreateGroupPolicyResponse; toJSON(message: _65.MsgCreateGroupPolicyResponse): unknown; fromPartial(object: Partial<_65.MsgCreateGroupPolicyResponse>): _65.MsgCreateGroupPolicyResponse; @@ -6383,8 +6732,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroupPolicyResponse): _65.MsgCreateGroupPolicyResponseProtoMsg; }; MsgUpdateGroupPolicyAdmin: { - encode(message: _65.MsgUpdateGroupPolicyAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdmin; + typeUrl: string; + encode(message: _65.MsgUpdateGroupPolicyAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdmin; fromJSON(object: any): _65.MsgUpdateGroupPolicyAdmin; toJSON(message: _65.MsgUpdateGroupPolicyAdmin): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupPolicyAdmin>): _65.MsgUpdateGroupPolicyAdmin; @@ -6397,8 +6747,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyAdmin): _65.MsgUpdateGroupPolicyAdminProtoMsg; }; MsgUpdateGroupPolicyAdminResponse: { - encode(_: _65.MsgUpdateGroupPolicyAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdminResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupPolicyAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdminResponse; fromJSON(_: any): _65.MsgUpdateGroupPolicyAdminResponse; toJSON(_: _65.MsgUpdateGroupPolicyAdminResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupPolicyAdminResponse>): _65.MsgUpdateGroupPolicyAdminResponse; @@ -6411,8 +6762,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyAdminResponse): _65.MsgUpdateGroupPolicyAdminResponseProtoMsg; }; MsgCreateGroupWithPolicy: { - encode(message: _65.MsgCreateGroupWithPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroupWithPolicy; + typeUrl: string; + encode(message: _65.MsgCreateGroupWithPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupWithPolicy; fromJSON(object: any): _65.MsgCreateGroupWithPolicy; toJSON(message: _65.MsgCreateGroupWithPolicy): unknown; fromPartial(object: Partial<_65.MsgCreateGroupWithPolicy>): _65.MsgCreateGroupWithPolicy; @@ -6425,8 +6777,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroupWithPolicy): _65.MsgCreateGroupWithPolicyProtoMsg; }; MsgCreateGroupWithPolicyResponse: { - encode(message: _65.MsgCreateGroupWithPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgCreateGroupWithPolicyResponse; + typeUrl: string; + encode(message: _65.MsgCreateGroupWithPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupWithPolicyResponse; fromJSON(object: any): _65.MsgCreateGroupWithPolicyResponse; toJSON(message: _65.MsgCreateGroupWithPolicyResponse): unknown; fromPartial(object: Partial<_65.MsgCreateGroupWithPolicyResponse>): _65.MsgCreateGroupWithPolicyResponse; @@ -6439,8 +6792,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgCreateGroupWithPolicyResponse): _65.MsgCreateGroupWithPolicyResponseProtoMsg; }; MsgUpdateGroupPolicyDecisionPolicy: { - encode(message: _65.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicy; + typeUrl: string; + encode(message: _65.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicy; fromJSON(object: any): _65.MsgUpdateGroupPolicyDecisionPolicy; toJSON(message: _65.MsgUpdateGroupPolicyDecisionPolicy): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupPolicyDecisionPolicy>): _65.MsgUpdateGroupPolicyDecisionPolicy; @@ -6453,8 +6807,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicy): _65.MsgUpdateGroupPolicyDecisionPolicyProtoMsg; }; MsgUpdateGroupPolicyDecisionPolicyResponse: { - encode(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; fromJSON(_: any): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; toJSON(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupPolicyDecisionPolicyResponse>): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; @@ -6467,8 +6822,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): _65.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; }; MsgUpdateGroupPolicyMetadata: { - encode(message: _65.MsgUpdateGroupPolicyMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadata; + typeUrl: string; + encode(message: _65.MsgUpdateGroupPolicyMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadata; fromJSON(object: any): _65.MsgUpdateGroupPolicyMetadata; toJSON(message: _65.MsgUpdateGroupPolicyMetadata): unknown; fromPartial(object: Partial<_65.MsgUpdateGroupPolicyMetadata>): _65.MsgUpdateGroupPolicyMetadata; @@ -6481,8 +6837,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyMetadata): _65.MsgUpdateGroupPolicyMetadataProtoMsg; }; MsgUpdateGroupPolicyMetadataResponse: { - encode(_: _65.MsgUpdateGroupPolicyMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadataResponse; + typeUrl: string; + encode(_: _65.MsgUpdateGroupPolicyMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadataResponse; fromJSON(_: any): _65.MsgUpdateGroupPolicyMetadataResponse; toJSON(_: _65.MsgUpdateGroupPolicyMetadataResponse): unknown; fromPartial(_: Partial<_65.MsgUpdateGroupPolicyMetadataResponse>): _65.MsgUpdateGroupPolicyMetadataResponse; @@ -6495,8 +6852,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgUpdateGroupPolicyMetadataResponse): _65.MsgUpdateGroupPolicyMetadataResponseProtoMsg; }; MsgSubmitProposal: { - encode(message: _65.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgSubmitProposal; + typeUrl: string; + encode(message: _65.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgSubmitProposal; fromJSON(object: any): _65.MsgSubmitProposal; toJSON(message: _65.MsgSubmitProposal): unknown; fromPartial(object: Partial<_65.MsgSubmitProposal>): _65.MsgSubmitProposal; @@ -6509,8 +6867,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgSubmitProposal): _65.MsgSubmitProposalProtoMsg; }; MsgSubmitProposalResponse: { - encode(message: _65.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgSubmitProposalResponse; + typeUrl: string; + encode(message: _65.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgSubmitProposalResponse; fromJSON(object: any): _65.MsgSubmitProposalResponse; toJSON(message: _65.MsgSubmitProposalResponse): unknown; fromPartial(object: Partial<_65.MsgSubmitProposalResponse>): _65.MsgSubmitProposalResponse; @@ -6523,8 +6882,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgSubmitProposalResponse): _65.MsgSubmitProposalResponseProtoMsg; }; MsgWithdrawProposal: { - encode(message: _65.MsgWithdrawProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgWithdrawProposal; + typeUrl: string; + encode(message: _65.MsgWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgWithdrawProposal; fromJSON(object: any): _65.MsgWithdrawProposal; toJSON(message: _65.MsgWithdrawProposal): unknown; fromPartial(object: Partial<_65.MsgWithdrawProposal>): _65.MsgWithdrawProposal; @@ -6537,8 +6897,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgWithdrawProposal): _65.MsgWithdrawProposalProtoMsg; }; MsgWithdrawProposalResponse: { - encode(_: _65.MsgWithdrawProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgWithdrawProposalResponse; + typeUrl: string; + encode(_: _65.MsgWithdrawProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgWithdrawProposalResponse; fromJSON(_: any): _65.MsgWithdrawProposalResponse; toJSON(_: _65.MsgWithdrawProposalResponse): unknown; fromPartial(_: Partial<_65.MsgWithdrawProposalResponse>): _65.MsgWithdrawProposalResponse; @@ -6551,8 +6912,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgWithdrawProposalResponse): _65.MsgWithdrawProposalResponseProtoMsg; }; MsgVote: { - encode(message: _65.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgVote; + typeUrl: string; + encode(message: _65.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgVote; fromJSON(object: any): _65.MsgVote; toJSON(message: _65.MsgVote): unknown; fromPartial(object: Partial<_65.MsgVote>): _65.MsgVote; @@ -6565,8 +6927,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgVote): _65.MsgVoteProtoMsg; }; MsgVoteResponse: { - encode(_: _65.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgVoteResponse; + typeUrl: string; + encode(_: _65.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgVoteResponse; fromJSON(_: any): _65.MsgVoteResponse; toJSON(_: _65.MsgVoteResponse): unknown; fromPartial(_: Partial<_65.MsgVoteResponse>): _65.MsgVoteResponse; @@ -6579,8 +6942,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgVoteResponse): _65.MsgVoteResponseProtoMsg; }; MsgExec: { - encode(message: _65.MsgExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgExec; + typeUrl: string; + encode(message: _65.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgExec; fromJSON(object: any): _65.MsgExec; toJSON(message: _65.MsgExec): unknown; fromPartial(object: Partial<_65.MsgExec>): _65.MsgExec; @@ -6593,8 +6957,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgExec): _65.MsgExecProtoMsg; }; MsgExecResponse: { - encode(message: _65.MsgExecResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgExecResponse; + typeUrl: string; + encode(message: _65.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgExecResponse; fromJSON(object: any): _65.MsgExecResponse; toJSON(message: _65.MsgExecResponse): unknown; fromPartial(object: Partial<_65.MsgExecResponse>): _65.MsgExecResponse; @@ -6607,8 +6972,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgExecResponse): _65.MsgExecResponseProtoMsg; }; MsgLeaveGroup: { - encode(message: _65.MsgLeaveGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgLeaveGroup; + typeUrl: string; + encode(message: _65.MsgLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgLeaveGroup; fromJSON(object: any): _65.MsgLeaveGroup; toJSON(message: _65.MsgLeaveGroup): unknown; fromPartial(object: Partial<_65.MsgLeaveGroup>): _65.MsgLeaveGroup; @@ -6621,8 +6987,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgLeaveGroup): _65.MsgLeaveGroupProtoMsg; }; MsgLeaveGroupResponse: { - encode(_: _65.MsgLeaveGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _65.MsgLeaveGroupResponse; + typeUrl: string; + encode(_: _65.MsgLeaveGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgLeaveGroupResponse; fromJSON(_: any): _65.MsgLeaveGroupResponse; toJSON(_: _65.MsgLeaveGroupResponse): unknown; fromPartial(_: Partial<_65.MsgLeaveGroupResponse>): _65.MsgLeaveGroupResponse; @@ -6635,8 +7002,9 @@ export declare namespace cosmos { toProtoMsg(message: _65.MsgLeaveGroupResponse): _65.MsgLeaveGroupResponseProtoMsg; }; QueryGroupInfoRequest: { - encode(message: _64.QueryGroupInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupInfoRequest; + typeUrl: string; + encode(message: _64.QueryGroupInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupInfoRequest; fromJSON(object: any): _64.QueryGroupInfoRequest; toJSON(message: _64.QueryGroupInfoRequest): unknown; fromPartial(object: Partial<_64.QueryGroupInfoRequest>): _64.QueryGroupInfoRequest; @@ -6649,8 +7017,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupInfoRequest): _64.QueryGroupInfoRequestProtoMsg; }; QueryGroupInfoResponse: { - encode(message: _64.QueryGroupInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupInfoResponse; + typeUrl: string; + encode(message: _64.QueryGroupInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupInfoResponse; fromJSON(object: any): _64.QueryGroupInfoResponse; toJSON(message: _64.QueryGroupInfoResponse): unknown; fromPartial(object: Partial<_64.QueryGroupInfoResponse>): _64.QueryGroupInfoResponse; @@ -6663,8 +7032,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupInfoResponse): _64.QueryGroupInfoResponseProtoMsg; }; QueryGroupPolicyInfoRequest: { - encode(message: _64.QueryGroupPolicyInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPolicyInfoRequest; + typeUrl: string; + encode(message: _64.QueryGroupPolicyInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPolicyInfoRequest; fromJSON(object: any): _64.QueryGroupPolicyInfoRequest; toJSON(message: _64.QueryGroupPolicyInfoRequest): unknown; fromPartial(object: Partial<_64.QueryGroupPolicyInfoRequest>): _64.QueryGroupPolicyInfoRequest; @@ -6677,8 +7047,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPolicyInfoRequest): _64.QueryGroupPolicyInfoRequestProtoMsg; }; QueryGroupPolicyInfoResponse: { - encode(message: _64.QueryGroupPolicyInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPolicyInfoResponse; + typeUrl: string; + encode(message: _64.QueryGroupPolicyInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPolicyInfoResponse; fromJSON(object: any): _64.QueryGroupPolicyInfoResponse; toJSON(message: _64.QueryGroupPolicyInfoResponse): unknown; fromPartial(object: Partial<_64.QueryGroupPolicyInfoResponse>): _64.QueryGroupPolicyInfoResponse; @@ -6691,8 +7062,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPolicyInfoResponse): _64.QueryGroupPolicyInfoResponseProtoMsg; }; QueryGroupMembersRequest: { - encode(message: _64.QueryGroupMembersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupMembersRequest; + typeUrl: string; + encode(message: _64.QueryGroupMembersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupMembersRequest; fromJSON(object: any): _64.QueryGroupMembersRequest; toJSON(message: _64.QueryGroupMembersRequest): unknown; fromPartial(object: Partial<_64.QueryGroupMembersRequest>): _64.QueryGroupMembersRequest; @@ -6705,8 +7077,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupMembersRequest): _64.QueryGroupMembersRequestProtoMsg; }; QueryGroupMembersResponse: { - encode(message: _64.QueryGroupMembersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupMembersResponse; + typeUrl: string; + encode(message: _64.QueryGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupMembersResponse; fromJSON(object: any): _64.QueryGroupMembersResponse; toJSON(message: _64.QueryGroupMembersResponse): unknown; fromPartial(object: Partial<_64.QueryGroupMembersResponse>): _64.QueryGroupMembersResponse; @@ -6719,8 +7092,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupMembersResponse): _64.QueryGroupMembersResponseProtoMsg; }; QueryGroupsByAdminRequest: { - encode(message: _64.QueryGroupsByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupsByAdminRequest; + typeUrl: string; + encode(message: _64.QueryGroupsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByAdminRequest; fromJSON(object: any): _64.QueryGroupsByAdminRequest; toJSON(message: _64.QueryGroupsByAdminRequest): unknown; fromPartial(object: Partial<_64.QueryGroupsByAdminRequest>): _64.QueryGroupsByAdminRequest; @@ -6733,8 +7107,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupsByAdminRequest): _64.QueryGroupsByAdminRequestProtoMsg; }; QueryGroupsByAdminResponse: { - encode(message: _64.QueryGroupsByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupsByAdminResponse; + typeUrl: string; + encode(message: _64.QueryGroupsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByAdminResponse; fromJSON(object: any): _64.QueryGroupsByAdminResponse; toJSON(message: _64.QueryGroupsByAdminResponse): unknown; fromPartial(object: Partial<_64.QueryGroupsByAdminResponse>): _64.QueryGroupsByAdminResponse; @@ -6747,8 +7122,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupsByAdminResponse): _64.QueryGroupsByAdminResponseProtoMsg; }; QueryGroupPoliciesByGroupRequest: { - encode(message: _64.QueryGroupPoliciesByGroupRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPoliciesByGroupRequest; + typeUrl: string; + encode(message: _64.QueryGroupPoliciesByGroupRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByGroupRequest; fromJSON(object: any): _64.QueryGroupPoliciesByGroupRequest; toJSON(message: _64.QueryGroupPoliciesByGroupRequest): unknown; fromPartial(object: Partial<_64.QueryGroupPoliciesByGroupRequest>): _64.QueryGroupPoliciesByGroupRequest; @@ -6761,8 +7137,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPoliciesByGroupRequest): _64.QueryGroupPoliciesByGroupRequestProtoMsg; }; QueryGroupPoliciesByGroupResponse: { - encode(message: _64.QueryGroupPoliciesByGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPoliciesByGroupResponse; + typeUrl: string; + encode(message: _64.QueryGroupPoliciesByGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByGroupResponse; fromJSON(object: any): _64.QueryGroupPoliciesByGroupResponse; toJSON(message: _64.QueryGroupPoliciesByGroupResponse): unknown; fromPartial(object: Partial<_64.QueryGroupPoliciesByGroupResponse>): _64.QueryGroupPoliciesByGroupResponse; @@ -6775,8 +7152,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPoliciesByGroupResponse): _64.QueryGroupPoliciesByGroupResponseProtoMsg; }; QueryGroupPoliciesByAdminRequest: { - encode(message: _64.QueryGroupPoliciesByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPoliciesByAdminRequest; + typeUrl: string; + encode(message: _64.QueryGroupPoliciesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByAdminRequest; fromJSON(object: any): _64.QueryGroupPoliciesByAdminRequest; toJSON(message: _64.QueryGroupPoliciesByAdminRequest): unknown; fromPartial(object: Partial<_64.QueryGroupPoliciesByAdminRequest>): _64.QueryGroupPoliciesByAdminRequest; @@ -6789,8 +7167,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPoliciesByAdminRequest): _64.QueryGroupPoliciesByAdminRequestProtoMsg; }; QueryGroupPoliciesByAdminResponse: { - encode(message: _64.QueryGroupPoliciesByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupPoliciesByAdminResponse; + typeUrl: string; + encode(message: _64.QueryGroupPoliciesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByAdminResponse; fromJSON(object: any): _64.QueryGroupPoliciesByAdminResponse; toJSON(message: _64.QueryGroupPoliciesByAdminResponse): unknown; fromPartial(object: Partial<_64.QueryGroupPoliciesByAdminResponse>): _64.QueryGroupPoliciesByAdminResponse; @@ -6803,8 +7182,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupPoliciesByAdminResponse): _64.QueryGroupPoliciesByAdminResponseProtoMsg; }; QueryProposalRequest: { - encode(message: _64.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryProposalRequest; + typeUrl: string; + encode(message: _64.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalRequest; fromJSON(object: any): _64.QueryProposalRequest; toJSON(message: _64.QueryProposalRequest): unknown; fromPartial(object: Partial<_64.QueryProposalRequest>): _64.QueryProposalRequest; @@ -6817,8 +7197,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryProposalRequest): _64.QueryProposalRequestProtoMsg; }; QueryProposalResponse: { - encode(message: _64.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryProposalResponse; + typeUrl: string; + encode(message: _64.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalResponse; fromJSON(object: any): _64.QueryProposalResponse; toJSON(message: _64.QueryProposalResponse): unknown; fromPartial(object: Partial<_64.QueryProposalResponse>): _64.QueryProposalResponse; @@ -6831,8 +7212,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryProposalResponse): _64.QueryProposalResponseProtoMsg; }; QueryProposalsByGroupPolicyRequest: { - encode(message: _64.QueryProposalsByGroupPolicyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryProposalsByGroupPolicyRequest; + typeUrl: string; + encode(message: _64.QueryProposalsByGroupPolicyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalsByGroupPolicyRequest; fromJSON(object: any): _64.QueryProposalsByGroupPolicyRequest; toJSON(message: _64.QueryProposalsByGroupPolicyRequest): unknown; fromPartial(object: Partial<_64.QueryProposalsByGroupPolicyRequest>): _64.QueryProposalsByGroupPolicyRequest; @@ -6845,8 +7227,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryProposalsByGroupPolicyRequest): _64.QueryProposalsByGroupPolicyRequestProtoMsg; }; QueryProposalsByGroupPolicyResponse: { - encode(message: _64.QueryProposalsByGroupPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryProposalsByGroupPolicyResponse; + typeUrl: string; + encode(message: _64.QueryProposalsByGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalsByGroupPolicyResponse; fromJSON(object: any): _64.QueryProposalsByGroupPolicyResponse; toJSON(message: _64.QueryProposalsByGroupPolicyResponse): unknown; fromPartial(object: Partial<_64.QueryProposalsByGroupPolicyResponse>): _64.QueryProposalsByGroupPolicyResponse; @@ -6859,8 +7242,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryProposalsByGroupPolicyResponse): _64.QueryProposalsByGroupPolicyResponseProtoMsg; }; QueryVoteByProposalVoterRequest: { - encode(message: _64.QueryVoteByProposalVoterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVoteByProposalVoterRequest; + typeUrl: string; + encode(message: _64.QueryVoteByProposalVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVoteByProposalVoterRequest; fromJSON(object: any): _64.QueryVoteByProposalVoterRequest; toJSON(message: _64.QueryVoteByProposalVoterRequest): unknown; fromPartial(object: Partial<_64.QueryVoteByProposalVoterRequest>): _64.QueryVoteByProposalVoterRequest; @@ -6873,8 +7257,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVoteByProposalVoterRequest): _64.QueryVoteByProposalVoterRequestProtoMsg; }; QueryVoteByProposalVoterResponse: { - encode(message: _64.QueryVoteByProposalVoterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVoteByProposalVoterResponse; + typeUrl: string; + encode(message: _64.QueryVoteByProposalVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVoteByProposalVoterResponse; fromJSON(object: any): _64.QueryVoteByProposalVoterResponse; toJSON(message: _64.QueryVoteByProposalVoterResponse): unknown; fromPartial(object: Partial<_64.QueryVoteByProposalVoterResponse>): _64.QueryVoteByProposalVoterResponse; @@ -6887,8 +7272,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVoteByProposalVoterResponse): _64.QueryVoteByProposalVoterResponseProtoMsg; }; QueryVotesByProposalRequest: { - encode(message: _64.QueryVotesByProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVotesByProposalRequest; + typeUrl: string; + encode(message: _64.QueryVotesByProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByProposalRequest; fromJSON(object: any): _64.QueryVotesByProposalRequest; toJSON(message: _64.QueryVotesByProposalRequest): unknown; fromPartial(object: Partial<_64.QueryVotesByProposalRequest>): _64.QueryVotesByProposalRequest; @@ -6901,8 +7287,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVotesByProposalRequest): _64.QueryVotesByProposalRequestProtoMsg; }; QueryVotesByProposalResponse: { - encode(message: _64.QueryVotesByProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVotesByProposalResponse; + typeUrl: string; + encode(message: _64.QueryVotesByProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByProposalResponse; fromJSON(object: any): _64.QueryVotesByProposalResponse; toJSON(message: _64.QueryVotesByProposalResponse): unknown; fromPartial(object: Partial<_64.QueryVotesByProposalResponse>): _64.QueryVotesByProposalResponse; @@ -6915,8 +7302,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVotesByProposalResponse): _64.QueryVotesByProposalResponseProtoMsg; }; QueryVotesByVoterRequest: { - encode(message: _64.QueryVotesByVoterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVotesByVoterRequest; + typeUrl: string; + encode(message: _64.QueryVotesByVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByVoterRequest; fromJSON(object: any): _64.QueryVotesByVoterRequest; toJSON(message: _64.QueryVotesByVoterRequest): unknown; fromPartial(object: Partial<_64.QueryVotesByVoterRequest>): _64.QueryVotesByVoterRequest; @@ -6929,8 +7317,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVotesByVoterRequest): _64.QueryVotesByVoterRequestProtoMsg; }; QueryVotesByVoterResponse: { - encode(message: _64.QueryVotesByVoterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryVotesByVoterResponse; + typeUrl: string; + encode(message: _64.QueryVotesByVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByVoterResponse; fromJSON(object: any): _64.QueryVotesByVoterResponse; toJSON(message: _64.QueryVotesByVoterResponse): unknown; fromPartial(object: Partial<_64.QueryVotesByVoterResponse>): _64.QueryVotesByVoterResponse; @@ -6943,8 +7332,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryVotesByVoterResponse): _64.QueryVotesByVoterResponseProtoMsg; }; QueryGroupsByMemberRequest: { - encode(message: _64.QueryGroupsByMemberRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupsByMemberRequest; + typeUrl: string; + encode(message: _64.QueryGroupsByMemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByMemberRequest; fromJSON(object: any): _64.QueryGroupsByMemberRequest; toJSON(message: _64.QueryGroupsByMemberRequest): unknown; fromPartial(object: Partial<_64.QueryGroupsByMemberRequest>): _64.QueryGroupsByMemberRequest; @@ -6957,8 +7347,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupsByMemberRequest): _64.QueryGroupsByMemberRequestProtoMsg; }; QueryGroupsByMemberResponse: { - encode(message: _64.QueryGroupsByMemberResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryGroupsByMemberResponse; + typeUrl: string; + encode(message: _64.QueryGroupsByMemberResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByMemberResponse; fromJSON(object: any): _64.QueryGroupsByMemberResponse; toJSON(message: _64.QueryGroupsByMemberResponse): unknown; fromPartial(object: Partial<_64.QueryGroupsByMemberResponse>): _64.QueryGroupsByMemberResponse; @@ -6971,8 +7362,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryGroupsByMemberResponse): _64.QueryGroupsByMemberResponseProtoMsg; }; QueryTallyResultRequest: { - encode(message: _64.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryTallyResultRequest; + typeUrl: string; + encode(message: _64.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryTallyResultRequest; fromJSON(object: any): _64.QueryTallyResultRequest; toJSON(message: _64.QueryTallyResultRequest): unknown; fromPartial(object: Partial<_64.QueryTallyResultRequest>): _64.QueryTallyResultRequest; @@ -6985,8 +7377,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryTallyResultRequest): _64.QueryTallyResultRequestProtoMsg; }; QueryTallyResultResponse: { - encode(message: _64.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _64.QueryTallyResultResponse; + typeUrl: string; + encode(message: _64.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryTallyResultResponse; fromJSON(object: any): _64.QueryTallyResultResponse; toJSON(message: _64.QueryTallyResultResponse): unknown; fromPartial(object: Partial<_64.QueryTallyResultResponse>): _64.QueryTallyResultResponse; @@ -6999,8 +7392,9 @@ export declare namespace cosmos { toProtoMsg(message: _64.QueryTallyResultResponse): _64.QueryTallyResultResponseProtoMsg; }; GenesisState: { - encode(message: _63.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _63.GenesisState; + typeUrl: string; + encode(message: _63.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _63.GenesisState; fromJSON(object: any): _63.GenesisState; toJSON(message: _63.GenesisState): unknown; fromPartial(object: Partial<_63.GenesisState>): _63.GenesisState; @@ -7013,8 +7407,9 @@ export declare namespace cosmos { toProtoMsg(message: _63.GenesisState): _63.GenesisStateProtoMsg; }; EventCreateGroup: { - encode(message: _62.EventCreateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventCreateGroup; + typeUrl: string; + encode(message: _62.EventCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventCreateGroup; fromJSON(object: any): _62.EventCreateGroup; toJSON(message: _62.EventCreateGroup): unknown; fromPartial(object: Partial<_62.EventCreateGroup>): _62.EventCreateGroup; @@ -7027,8 +7422,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventCreateGroup): _62.EventCreateGroupProtoMsg; }; EventUpdateGroup: { - encode(message: _62.EventUpdateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventUpdateGroup; + typeUrl: string; + encode(message: _62.EventUpdateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventUpdateGroup; fromJSON(object: any): _62.EventUpdateGroup; toJSON(message: _62.EventUpdateGroup): unknown; fromPartial(object: Partial<_62.EventUpdateGroup>): _62.EventUpdateGroup; @@ -7041,8 +7437,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventUpdateGroup): _62.EventUpdateGroupProtoMsg; }; EventCreateGroupPolicy: { - encode(message: _62.EventCreateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventCreateGroupPolicy; + typeUrl: string; + encode(message: _62.EventCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventCreateGroupPolicy; fromJSON(object: any): _62.EventCreateGroupPolicy; toJSON(message: _62.EventCreateGroupPolicy): unknown; fromPartial(object: Partial<_62.EventCreateGroupPolicy>): _62.EventCreateGroupPolicy; @@ -7055,8 +7452,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventCreateGroupPolicy): _62.EventCreateGroupPolicyProtoMsg; }; EventUpdateGroupPolicy: { - encode(message: _62.EventUpdateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventUpdateGroupPolicy; + typeUrl: string; + encode(message: _62.EventUpdateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventUpdateGroupPolicy; fromJSON(object: any): _62.EventUpdateGroupPolicy; toJSON(message: _62.EventUpdateGroupPolicy): unknown; fromPartial(object: Partial<_62.EventUpdateGroupPolicy>): _62.EventUpdateGroupPolicy; @@ -7069,8 +7467,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventUpdateGroupPolicy): _62.EventUpdateGroupPolicyProtoMsg; }; EventSubmitProposal: { - encode(message: _62.EventSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventSubmitProposal; + typeUrl: string; + encode(message: _62.EventSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventSubmitProposal; fromJSON(object: any): _62.EventSubmitProposal; toJSON(message: _62.EventSubmitProposal): unknown; fromPartial(object: Partial<_62.EventSubmitProposal>): _62.EventSubmitProposal; @@ -7083,8 +7482,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventSubmitProposal): _62.EventSubmitProposalProtoMsg; }; EventWithdrawProposal: { - encode(message: _62.EventWithdrawProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventWithdrawProposal; + typeUrl: string; + encode(message: _62.EventWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventWithdrawProposal; fromJSON(object: any): _62.EventWithdrawProposal; toJSON(message: _62.EventWithdrawProposal): unknown; fromPartial(object: Partial<_62.EventWithdrawProposal>): _62.EventWithdrawProposal; @@ -7097,8 +7497,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventWithdrawProposal): _62.EventWithdrawProposalProtoMsg; }; EventVote: { - encode(message: _62.EventVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventVote; + typeUrl: string; + encode(message: _62.EventVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventVote; fromJSON(object: any): _62.EventVote; toJSON(message: _62.EventVote): unknown; fromPartial(object: Partial<_62.EventVote>): _62.EventVote; @@ -7111,8 +7512,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventVote): _62.EventVoteProtoMsg; }; EventExec: { - encode(message: _62.EventExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventExec; + typeUrl: string; + encode(message: _62.EventExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventExec; fromJSON(object: any): _62.EventExec; toJSON(message: _62.EventExec): unknown; fromPartial(object: Partial<_62.EventExec>): _62.EventExec; @@ -7125,8 +7527,9 @@ export declare namespace cosmos { toProtoMsg(message: _62.EventExec): _62.EventExecProtoMsg; }; EventLeaveGroup: { - encode(message: _62.EventLeaveGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _62.EventLeaveGroup; + typeUrl: string; + encode(message: _62.EventLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventLeaveGroup; fromJSON(object: any): _62.EventLeaveGroup; toJSON(message: _62.EventLeaveGroup): unknown; fromPartial(object: Partial<_62.EventLeaveGroup>): _62.EventLeaveGroup; @@ -7142,16 +7545,17 @@ export declare namespace cosmos { } namespace mint { const v1beta1: { - QueryClientImpl: typeof _209.QueryClientImpl; + QueryClientImpl: typeof _210.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { params(request?: _69.QueryParamsRequest | undefined): Promise<_69.QueryParamsResponse>; inflation(request?: _69.QueryInflationRequest | undefined): Promise<_69.QueryInflationResponse>; annualProvisions(request?: _69.QueryAnnualProvisionsRequest | undefined): Promise<_69.QueryAnnualProvisionsResponse>; }; - LCDQueryClient: typeof _190.LCDQueryClient; + LCDQueryClient: typeof _191.LCDQueryClient; QueryParamsRequest: { - encode(_: _69.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryParamsRequest; + typeUrl: string; + encode(_: _69.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryParamsRequest; fromJSON(_: any): _69.QueryParamsRequest; toJSON(_: _69.QueryParamsRequest): unknown; fromPartial(_: Partial<_69.QueryParamsRequest>): _69.QueryParamsRequest; @@ -7164,8 +7568,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _69.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryParamsResponse; + typeUrl: string; + encode(message: _69.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryParamsResponse; fromJSON(object: any): _69.QueryParamsResponse; toJSON(message: _69.QueryParamsResponse): unknown; fromPartial(object: Partial<_69.QueryParamsResponse>): _69.QueryParamsResponse; @@ -7178,8 +7583,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseProtoMsg; }; QueryInflationRequest: { - encode(_: _69.QueryInflationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryInflationRequest; + typeUrl: string; + encode(_: _69.QueryInflationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryInflationRequest; fromJSON(_: any): _69.QueryInflationRequest; toJSON(_: _69.QueryInflationRequest): unknown; fromPartial(_: Partial<_69.QueryInflationRequest>): _69.QueryInflationRequest; @@ -7192,8 +7598,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryInflationRequest): _69.QueryInflationRequestProtoMsg; }; QueryInflationResponse: { - encode(message: _69.QueryInflationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryInflationResponse; + typeUrl: string; + encode(message: _69.QueryInflationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryInflationResponse; fromJSON(object: any): _69.QueryInflationResponse; toJSON(message: _69.QueryInflationResponse): unknown; fromPartial(object: Partial<_69.QueryInflationResponse>): _69.QueryInflationResponse; @@ -7206,8 +7613,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryInflationResponse): _69.QueryInflationResponseProtoMsg; }; QueryAnnualProvisionsRequest: { - encode(_: _69.QueryAnnualProvisionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryAnnualProvisionsRequest; + typeUrl: string; + encode(_: _69.QueryAnnualProvisionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryAnnualProvisionsRequest; fromJSON(_: any): _69.QueryAnnualProvisionsRequest; toJSON(_: _69.QueryAnnualProvisionsRequest): unknown; fromPartial(_: Partial<_69.QueryAnnualProvisionsRequest>): _69.QueryAnnualProvisionsRequest; @@ -7220,8 +7628,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryAnnualProvisionsRequest): _69.QueryAnnualProvisionsRequestProtoMsg; }; QueryAnnualProvisionsResponse: { - encode(message: _69.QueryAnnualProvisionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _69.QueryAnnualProvisionsResponse; + typeUrl: string; + encode(message: _69.QueryAnnualProvisionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryAnnualProvisionsResponse; fromJSON(object: any): _69.QueryAnnualProvisionsResponse; toJSON(message: _69.QueryAnnualProvisionsResponse): unknown; fromPartial(object: Partial<_69.QueryAnnualProvisionsResponse>): _69.QueryAnnualProvisionsResponse; @@ -7234,8 +7643,9 @@ export declare namespace cosmos { toProtoMsg(message: _69.QueryAnnualProvisionsResponse): _69.QueryAnnualProvisionsResponseProtoMsg; }; Minter: { - encode(message: _68.Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _68.Minter; + typeUrl: string; + encode(message: _68.Minter, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _68.Minter; fromJSON(object: any): _68.Minter; toJSON(message: _68.Minter): unknown; fromPartial(object: Partial<_68.Minter>): _68.Minter; @@ -7248,8 +7658,9 @@ export declare namespace cosmos { toProtoMsg(message: _68.Minter): _68.MinterProtoMsg; }; Params: { - encode(message: _68.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _68.Params; + typeUrl: string; + encode(message: _68.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _68.Params; fromJSON(object: any): _68.Params; toJSON(message: _68.Params): unknown; fromPartial(object: Partial<_68.Params>): _68.Params; @@ -7262,8 +7673,9 @@ export declare namespace cosmos { toProtoMsg(message: _68.Params): _68.ParamsProtoMsg; }; GenesisState: { - encode(message: _67.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _67.GenesisState; + typeUrl: string; + encode(message: _67.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _67.GenesisState; fromJSON(object: any): _67.GenesisState; toJSON(message: _67.GenesisState): unknown; fromPartial(object: Partial<_67.GenesisState>): _67.GenesisState; @@ -7282,8 +7694,8 @@ export declare namespace cosmos { } namespace nft { const v1beta1: { - MsgClientImpl: typeof _225.MsgClientImpl; - QueryClientImpl: typeof _210.QueryClientImpl; + MsgClientImpl: typeof _226.MsgClientImpl; + QueryClientImpl: typeof _211.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { balance(request: _74.QueryBalanceRequest): Promise<_74.QueryBalanceResponse>; owner(request: _74.QueryOwnerRequest): Promise<_74.QueryOwnerResponse>; @@ -7293,7 +7705,7 @@ export declare namespace cosmos { class(request: _74.QueryClassRequest): Promise<_74.QueryClassResponse>; classes(request?: _74.QueryClassesRequest | undefined): Promise<_74.QueryClassesResponse>; }; - LCDQueryClient: typeof _191.LCDQueryClient; + LCDQueryClient: typeof _192.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -7336,8 +7748,9 @@ export declare namespace cosmos { }; }; MsgSend: { - encode(message: _75.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _75.MsgSend; + typeUrl: string; + encode(message: _75.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _75.MsgSend; fromJSON(object: any): _75.MsgSend; toJSON(message: _75.MsgSend): unknown; fromPartial(object: Partial<_75.MsgSend>): _75.MsgSend; @@ -7350,8 +7763,9 @@ export declare namespace cosmos { toProtoMsg(message: _75.MsgSend): _75.MsgSendProtoMsg; }; MsgSendResponse: { - encode(_: _75.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _75.MsgSendResponse; + typeUrl: string; + encode(_: _75.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _75.MsgSendResponse; fromJSON(_: any): _75.MsgSendResponse; toJSON(_: _75.MsgSendResponse): unknown; fromPartial(_: Partial<_75.MsgSendResponse>): _75.MsgSendResponse; @@ -7364,8 +7778,9 @@ export declare namespace cosmos { toProtoMsg(message: _75.MsgSendResponse): _75.MsgSendResponseProtoMsg; }; QueryBalanceRequest: { - encode(message: _74.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryBalanceRequest; + typeUrl: string; + encode(message: _74.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryBalanceRequest; fromJSON(object: any): _74.QueryBalanceRequest; toJSON(message: _74.QueryBalanceRequest): unknown; fromPartial(object: Partial<_74.QueryBalanceRequest>): _74.QueryBalanceRequest; @@ -7378,8 +7793,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryBalanceRequest): _74.QueryBalanceRequestProtoMsg; }; QueryBalanceResponse: { - encode(message: _74.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryBalanceResponse; + typeUrl: string; + encode(message: _74.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryBalanceResponse; fromJSON(object: any): _74.QueryBalanceResponse; toJSON(message: _74.QueryBalanceResponse): unknown; fromPartial(object: Partial<_74.QueryBalanceResponse>): _74.QueryBalanceResponse; @@ -7392,8 +7808,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryBalanceResponse): _74.QueryBalanceResponseProtoMsg; }; QueryOwnerRequest: { - encode(message: _74.QueryOwnerRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryOwnerRequest; + typeUrl: string; + encode(message: _74.QueryOwnerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryOwnerRequest; fromJSON(object: any): _74.QueryOwnerRequest; toJSON(message: _74.QueryOwnerRequest): unknown; fromPartial(object: Partial<_74.QueryOwnerRequest>): _74.QueryOwnerRequest; @@ -7406,8 +7823,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryOwnerRequest): _74.QueryOwnerRequestProtoMsg; }; QueryOwnerResponse: { - encode(message: _74.QueryOwnerResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryOwnerResponse; + typeUrl: string; + encode(message: _74.QueryOwnerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryOwnerResponse; fromJSON(object: any): _74.QueryOwnerResponse; toJSON(message: _74.QueryOwnerResponse): unknown; fromPartial(object: Partial<_74.QueryOwnerResponse>): _74.QueryOwnerResponse; @@ -7420,8 +7838,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryOwnerResponse): _74.QueryOwnerResponseProtoMsg; }; QuerySupplyRequest: { - encode(message: _74.QuerySupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QuerySupplyRequest; + typeUrl: string; + encode(message: _74.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QuerySupplyRequest; fromJSON(object: any): _74.QuerySupplyRequest; toJSON(message: _74.QuerySupplyRequest): unknown; fromPartial(object: Partial<_74.QuerySupplyRequest>): _74.QuerySupplyRequest; @@ -7434,8 +7853,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QuerySupplyRequest): _74.QuerySupplyRequestProtoMsg; }; QuerySupplyResponse: { - encode(message: _74.QuerySupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QuerySupplyResponse; + typeUrl: string; + encode(message: _74.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QuerySupplyResponse; fromJSON(object: any): _74.QuerySupplyResponse; toJSON(message: _74.QuerySupplyResponse): unknown; fromPartial(object: Partial<_74.QuerySupplyResponse>): _74.QuerySupplyResponse; @@ -7448,8 +7868,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QuerySupplyResponse): _74.QuerySupplyResponseProtoMsg; }; QueryNFTsRequest: { - encode(message: _74.QueryNFTsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryNFTsRequest; + typeUrl: string; + encode(message: _74.QueryNFTsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTsRequest; fromJSON(object: any): _74.QueryNFTsRequest; toJSON(message: _74.QueryNFTsRequest): unknown; fromPartial(object: Partial<_74.QueryNFTsRequest>): _74.QueryNFTsRequest; @@ -7462,8 +7883,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryNFTsRequest): _74.QueryNFTsRequestProtoMsg; }; QueryNFTsResponse: { - encode(message: _74.QueryNFTsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryNFTsResponse; + typeUrl: string; + encode(message: _74.QueryNFTsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTsResponse; fromJSON(object: any): _74.QueryNFTsResponse; toJSON(message: _74.QueryNFTsResponse): unknown; fromPartial(object: Partial<_74.QueryNFTsResponse>): _74.QueryNFTsResponse; @@ -7476,8 +7898,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryNFTsResponse): _74.QueryNFTsResponseProtoMsg; }; QueryNFTRequest: { - encode(message: _74.QueryNFTRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryNFTRequest; + typeUrl: string; + encode(message: _74.QueryNFTRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTRequest; fromJSON(object: any): _74.QueryNFTRequest; toJSON(message: _74.QueryNFTRequest): unknown; fromPartial(object: Partial<_74.QueryNFTRequest>): _74.QueryNFTRequest; @@ -7490,8 +7913,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryNFTRequest): _74.QueryNFTRequestProtoMsg; }; QueryNFTResponse: { - encode(message: _74.QueryNFTResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryNFTResponse; + typeUrl: string; + encode(message: _74.QueryNFTResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTResponse; fromJSON(object: any): _74.QueryNFTResponse; toJSON(message: _74.QueryNFTResponse): unknown; fromPartial(object: Partial<_74.QueryNFTResponse>): _74.QueryNFTResponse; @@ -7504,8 +7928,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryNFTResponse): _74.QueryNFTResponseProtoMsg; }; QueryClassRequest: { - encode(message: _74.QueryClassRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryClassRequest; + typeUrl: string; + encode(message: _74.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassRequest; fromJSON(object: any): _74.QueryClassRequest; toJSON(message: _74.QueryClassRequest): unknown; fromPartial(object: Partial<_74.QueryClassRequest>): _74.QueryClassRequest; @@ -7518,8 +7943,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryClassRequest): _74.QueryClassRequestProtoMsg; }; QueryClassResponse: { - encode(message: _74.QueryClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryClassResponse; + typeUrl: string; + encode(message: _74.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassResponse; fromJSON(object: any): _74.QueryClassResponse; toJSON(message: _74.QueryClassResponse): unknown; fromPartial(object: Partial<_74.QueryClassResponse>): _74.QueryClassResponse; @@ -7532,8 +7958,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryClassResponse): _74.QueryClassResponseProtoMsg; }; QueryClassesRequest: { - encode(message: _74.QueryClassesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryClassesRequest; + typeUrl: string; + encode(message: _74.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassesRequest; fromJSON(object: any): _74.QueryClassesRequest; toJSON(message: _74.QueryClassesRequest): unknown; fromPartial(object: Partial<_74.QueryClassesRequest>): _74.QueryClassesRequest; @@ -7546,8 +7973,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryClassesRequest): _74.QueryClassesRequestProtoMsg; }; QueryClassesResponse: { - encode(message: _74.QueryClassesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _74.QueryClassesResponse; + typeUrl: string; + encode(message: _74.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassesResponse; fromJSON(object: any): _74.QueryClassesResponse; toJSON(message: _74.QueryClassesResponse): unknown; fromPartial(object: Partial<_74.QueryClassesResponse>): _74.QueryClassesResponse; @@ -7560,8 +7988,9 @@ export declare namespace cosmos { toProtoMsg(message: _74.QueryClassesResponse): _74.QueryClassesResponseProtoMsg; }; Class: { - encode(message: _73.Class, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _73.Class; + typeUrl: string; + encode(message: _73.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _73.Class; fromJSON(object: any): _73.Class; toJSON(message: _73.Class): unknown; fromPartial(object: Partial<_73.Class>): _73.Class; @@ -7574,8 +8003,9 @@ export declare namespace cosmos { toProtoMsg(message: _73.Class): _73.ClassProtoMsg; }; NFT: { - encode(message: _73.NFT, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _73.NFT; + typeUrl: string; + encode(message: _73.NFT, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _73.NFT; fromJSON(object: any): _73.NFT; toJSON(message: _73.NFT): unknown; fromPartial(object: Partial<_73.NFT>): _73.NFT; @@ -7588,8 +8018,9 @@ export declare namespace cosmos { toProtoMsg(message: _73.NFT): _73.NFTProtoMsg; }; GenesisState: { - encode(message: _72.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _72.GenesisState; + typeUrl: string; + encode(message: _72.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _72.GenesisState; fromJSON(object: any): _72.GenesisState; toJSON(message: _72.GenesisState): unknown; fromPartial(object: Partial<_72.GenesisState>): _72.GenesisState; @@ -7602,8 +8033,9 @@ export declare namespace cosmos { toProtoMsg(message: _72.GenesisState): _72.GenesisStateProtoMsg; }; Entry: { - encode(message: _72.Entry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _72.Entry; + typeUrl: string; + encode(message: _72.Entry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _72.Entry; fromJSON(object: any): _72.Entry; toJSON(message: _72.Entry): unknown; fromPartial(object: Partial<_72.Entry>): _72.Entry; @@ -7616,8 +8048,9 @@ export declare namespace cosmos { toProtoMsg(message: _72.Entry): _72.EntryProtoMsg; }; EventSend: { - encode(message: _71.EventSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _71.EventSend; + typeUrl: string; + encode(message: _71.EventSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventSend; fromJSON(object: any): _71.EventSend; toJSON(message: _71.EventSend): unknown; fromPartial(object: Partial<_71.EventSend>): _71.EventSend; @@ -7630,8 +8063,9 @@ export declare namespace cosmos { toProtoMsg(message: _71.EventSend): _71.EventSendProtoMsg; }; EventMint: { - encode(message: _71.EventMint, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _71.EventMint; + typeUrl: string; + encode(message: _71.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventMint; fromJSON(object: any): _71.EventMint; toJSON(message: _71.EventMint): unknown; fromPartial(object: Partial<_71.EventMint>): _71.EventMint; @@ -7644,8 +8078,9 @@ export declare namespace cosmos { toProtoMsg(message: _71.EventMint): _71.EventMintProtoMsg; }; EventBurn: { - encode(message: _71.EventBurn, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _71.EventBurn; + typeUrl: string; + encode(message: _71.EventBurn, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventBurn; fromJSON(object: any): _71.EventBurn; toJSON(message: _71.EventBurn): unknown; fromPartial(object: Partial<_71.EventBurn>): _71.EventBurn; @@ -7663,8 +8098,9 @@ export declare namespace cosmos { namespace module { const v1alpha1: { Module: { - encode(_: _76.Module, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _76.Module; + typeUrl: string; + encode(_: _76.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _76.Module; fromJSON(_: any): _76.Module; toJSON(_: _76.Module): unknown; fromPartial(_: Partial<_76.Module>): _76.Module; @@ -7680,8 +8116,9 @@ export declare namespace cosmos { } const v1: { TableDescriptor: { - encode(message: _77.TableDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _77.TableDescriptor; + typeUrl: string; + encode(message: _77.TableDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.TableDescriptor; fromJSON(object: any): _77.TableDescriptor; toJSON(message: _77.TableDescriptor): unknown; fromPartial(object: Partial<_77.TableDescriptor>): _77.TableDescriptor; @@ -7694,8 +8131,9 @@ export declare namespace cosmos { toProtoMsg(message: _77.TableDescriptor): _77.TableDescriptorProtoMsg; }; PrimaryKeyDescriptor: { - encode(message: _77.PrimaryKeyDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _77.PrimaryKeyDescriptor; + typeUrl: string; + encode(message: _77.PrimaryKeyDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.PrimaryKeyDescriptor; fromJSON(object: any): _77.PrimaryKeyDescriptor; toJSON(message: _77.PrimaryKeyDescriptor): unknown; fromPartial(object: Partial<_77.PrimaryKeyDescriptor>): _77.PrimaryKeyDescriptor; @@ -7708,8 +8146,9 @@ export declare namespace cosmos { toProtoMsg(message: _77.PrimaryKeyDescriptor): _77.PrimaryKeyDescriptorProtoMsg; }; SecondaryIndexDescriptor: { - encode(message: _77.SecondaryIndexDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _77.SecondaryIndexDescriptor; + typeUrl: string; + encode(message: _77.SecondaryIndexDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.SecondaryIndexDescriptor; fromJSON(object: any): _77.SecondaryIndexDescriptor; toJSON(message: _77.SecondaryIndexDescriptor): unknown; fromPartial(object: Partial<_77.SecondaryIndexDescriptor>): _77.SecondaryIndexDescriptor; @@ -7722,8 +8161,9 @@ export declare namespace cosmos { toProtoMsg(message: _77.SecondaryIndexDescriptor): _77.SecondaryIndexDescriptorProtoMsg; }; SingletonDescriptor: { - encode(message: _77.SingletonDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _77.SingletonDescriptor; + typeUrl: string; + encode(message: _77.SingletonDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.SingletonDescriptor; fromJSON(object: any): _77.SingletonDescriptor; toJSON(message: _77.SingletonDescriptor): unknown; fromPartial(object: Partial<_77.SingletonDescriptor>): _77.SingletonDescriptor; @@ -7743,8 +8183,9 @@ export declare namespace cosmos { StorageTypeSDKType: typeof _78.StorageType; StorageTypeAmino: typeof _78.StorageType; ModuleSchemaDescriptor: { - encode(message: _78.ModuleSchemaDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _78.ModuleSchemaDescriptor; + typeUrl: string; + encode(message: _78.ModuleSchemaDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _78.ModuleSchemaDescriptor; fromJSON(object: any): _78.ModuleSchemaDescriptor; toJSON(message: _78.ModuleSchemaDescriptor): unknown; fromPartial(object: Partial<_78.ModuleSchemaDescriptor>): _78.ModuleSchemaDescriptor; @@ -7757,8 +8198,9 @@ export declare namespace cosmos { toProtoMsg(message: _78.ModuleSchemaDescriptor): _78.ModuleSchemaDescriptorProtoMsg; }; ModuleSchemaDescriptor_FileEntry: { - encode(message: _78.ModuleSchemaDescriptor_FileEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _78.ModuleSchemaDescriptor_FileEntry; + typeUrl: string; + encode(message: _78.ModuleSchemaDescriptor_FileEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _78.ModuleSchemaDescriptor_FileEntry; fromJSON(object: any): _78.ModuleSchemaDescriptor_FileEntry; toJSON(message: _78.ModuleSchemaDescriptor_FileEntry): unknown; fromPartial(object: Partial<_78.ModuleSchemaDescriptor_FileEntry>): _78.ModuleSchemaDescriptor_FileEntry; @@ -7774,15 +8216,16 @@ export declare namespace cosmos { } namespace params { const v1beta1: { - QueryClientImpl: typeof _211.QueryClientImpl; + QueryClientImpl: typeof _212.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { params(request: _80.QueryParamsRequest): Promise<_80.QueryParamsResponse>; subspaces(request?: _80.QuerySubspacesRequest | undefined): Promise<_80.QuerySubspacesResponse>; }; - LCDQueryClient: typeof _192.LCDQueryClient; + LCDQueryClient: typeof _193.LCDQueryClient; QueryParamsRequest: { - encode(message: _80.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _80.QueryParamsRequest; + typeUrl: string; + encode(message: _80.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QueryParamsRequest; fromJSON(object: any): _80.QueryParamsRequest; toJSON(message: _80.QueryParamsRequest): unknown; fromPartial(object: Partial<_80.QueryParamsRequest>): _80.QueryParamsRequest; @@ -7795,8 +8238,9 @@ export declare namespace cosmos { toProtoMsg(message: _80.QueryParamsRequest): _80.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _80.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _80.QueryParamsResponse; + typeUrl: string; + encode(message: _80.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QueryParamsResponse; fromJSON(object: any): _80.QueryParamsResponse; toJSON(message: _80.QueryParamsResponse): unknown; fromPartial(object: Partial<_80.QueryParamsResponse>): _80.QueryParamsResponse; @@ -7809,8 +8253,9 @@ export declare namespace cosmos { toProtoMsg(message: _80.QueryParamsResponse): _80.QueryParamsResponseProtoMsg; }; QuerySubspacesRequest: { - encode(_: _80.QuerySubspacesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _80.QuerySubspacesRequest; + typeUrl: string; + encode(_: _80.QuerySubspacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QuerySubspacesRequest; fromJSON(_: any): _80.QuerySubspacesRequest; toJSON(_: _80.QuerySubspacesRequest): unknown; fromPartial(_: Partial<_80.QuerySubspacesRequest>): _80.QuerySubspacesRequest; @@ -7823,8 +8268,9 @@ export declare namespace cosmos { toProtoMsg(message: _80.QuerySubspacesRequest): _80.QuerySubspacesRequestProtoMsg; }; QuerySubspacesResponse: { - encode(message: _80.QuerySubspacesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _80.QuerySubspacesResponse; + typeUrl: string; + encode(message: _80.QuerySubspacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QuerySubspacesResponse; fromJSON(object: any): _80.QuerySubspacesResponse; toJSON(message: _80.QuerySubspacesResponse): unknown; fromPartial(object: Partial<_80.QuerySubspacesResponse>): _80.QuerySubspacesResponse; @@ -7837,8 +8283,9 @@ export declare namespace cosmos { toProtoMsg(message: _80.QuerySubspacesResponse): _80.QuerySubspacesResponseProtoMsg; }; Subspace: { - encode(message: _80.Subspace, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _80.Subspace; + typeUrl: string; + encode(message: _80.Subspace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.Subspace; fromJSON(object: any): _80.Subspace; toJSON(message: _80.Subspace): unknown; fromPartial(object: Partial<_80.Subspace>): _80.Subspace; @@ -7851,8 +8298,9 @@ export declare namespace cosmos { toProtoMsg(message: _80.Subspace): _80.SubspaceProtoMsg; }; ParameterChangeProposal: { - encode(message: _79.ParameterChangeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _79.ParameterChangeProposal; + typeUrl: string; + encode(message: _79.ParameterChangeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _79.ParameterChangeProposal; fromJSON(object: any): _79.ParameterChangeProposal; toJSON(message: _79.ParameterChangeProposal): unknown; fromPartial(object: Partial<_79.ParameterChangeProposal>): _79.ParameterChangeProposal; @@ -7865,8 +8313,9 @@ export declare namespace cosmos { toProtoMsg(message: _79.ParameterChangeProposal): _79.ParameterChangeProposalProtoMsg; }; ParamChange: { - encode(message: _79.ParamChange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _79.ParamChange; + typeUrl: string; + encode(message: _79.ParamChange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _79.ParamChange; fromJSON(object: any): _79.ParamChange; toJSON(message: _79.ParamChange): unknown; fromPartial(object: Partial<_79.ParamChange>): _79.ParamChange; @@ -7882,14 +8331,14 @@ export declare namespace cosmos { } namespace slashing { const v1beta1: { - MsgClientImpl: typeof _226.MsgClientImpl; - QueryClientImpl: typeof _212.QueryClientImpl; + MsgClientImpl: typeof _227.MsgClientImpl; + QueryClientImpl: typeof _213.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { params(request?: _82.QueryParamsRequest | undefined): Promise<_82.QueryParamsResponse>; signingInfo(request: _82.QuerySigningInfoRequest): Promise<_82.QuerySigningInfoResponse>; signingInfos(request?: _82.QuerySigningInfosRequest | undefined): Promise<_82.QuerySigningInfosResponse>; }; - LCDQueryClient: typeof _193.LCDQueryClient; + LCDQueryClient: typeof _194.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -7932,8 +8381,9 @@ export declare namespace cosmos { }; }; MsgUnjail: { - encode(message: _84.MsgUnjail, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _84.MsgUnjail; + typeUrl: string; + encode(message: _84.MsgUnjail, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _84.MsgUnjail; fromJSON(object: any): _84.MsgUnjail; toJSON(message: _84.MsgUnjail): unknown; fromPartial(object: Partial<_84.MsgUnjail>): _84.MsgUnjail; @@ -7946,8 +8396,9 @@ export declare namespace cosmos { toProtoMsg(message: _84.MsgUnjail): _84.MsgUnjailProtoMsg; }; MsgUnjailResponse: { - encode(_: _84.MsgUnjailResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _84.MsgUnjailResponse; + typeUrl: string; + encode(_: _84.MsgUnjailResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _84.MsgUnjailResponse; fromJSON(_: any): _84.MsgUnjailResponse; toJSON(_: _84.MsgUnjailResponse): unknown; fromPartial(_: Partial<_84.MsgUnjailResponse>): _84.MsgUnjailResponse; @@ -7960,8 +8411,9 @@ export declare namespace cosmos { toProtoMsg(message: _84.MsgUnjailResponse): _84.MsgUnjailResponseProtoMsg; }; ValidatorSigningInfo: { - encode(message: _83.ValidatorSigningInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _83.ValidatorSigningInfo; + typeUrl: string; + encode(message: _83.ValidatorSigningInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _83.ValidatorSigningInfo; fromJSON(object: any): _83.ValidatorSigningInfo; toJSON(message: _83.ValidatorSigningInfo): unknown; fromPartial(object: Partial<_83.ValidatorSigningInfo>): _83.ValidatorSigningInfo; @@ -7974,8 +8426,9 @@ export declare namespace cosmos { toProtoMsg(message: _83.ValidatorSigningInfo): _83.ValidatorSigningInfoProtoMsg; }; Params: { - encode(message: _83.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _83.Params; + typeUrl: string; + encode(message: _83.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _83.Params; fromJSON(object: any): _83.Params; toJSON(message: _83.Params): unknown; fromPartial(object: Partial<_83.Params>): _83.Params; @@ -7988,8 +8441,9 @@ export declare namespace cosmos { toProtoMsg(message: _83.Params): _83.ParamsProtoMsg; }; QueryParamsRequest: { - encode(_: _82.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QueryParamsRequest; + typeUrl: string; + encode(_: _82.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QueryParamsRequest; fromJSON(_: any): _82.QueryParamsRequest; toJSON(_: _82.QueryParamsRequest): unknown; fromPartial(_: Partial<_82.QueryParamsRequest>): _82.QueryParamsRequest; @@ -8002,8 +8456,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QueryParamsRequest): _82.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _82.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QueryParamsResponse; + typeUrl: string; + encode(message: _82.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QueryParamsResponse; fromJSON(object: any): _82.QueryParamsResponse; toJSON(message: _82.QueryParamsResponse): unknown; fromPartial(object: Partial<_82.QueryParamsResponse>): _82.QueryParamsResponse; @@ -8016,8 +8471,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QueryParamsResponse): _82.QueryParamsResponseProtoMsg; }; QuerySigningInfoRequest: { - encode(message: _82.QuerySigningInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QuerySigningInfoRequest; + typeUrl: string; + encode(message: _82.QuerySigningInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfoRequest; fromJSON(object: any): _82.QuerySigningInfoRequest; toJSON(message: _82.QuerySigningInfoRequest): unknown; fromPartial(object: Partial<_82.QuerySigningInfoRequest>): _82.QuerySigningInfoRequest; @@ -8030,8 +8486,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QuerySigningInfoRequest): _82.QuerySigningInfoRequestProtoMsg; }; QuerySigningInfoResponse: { - encode(message: _82.QuerySigningInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QuerySigningInfoResponse; + typeUrl: string; + encode(message: _82.QuerySigningInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfoResponse; fromJSON(object: any): _82.QuerySigningInfoResponse; toJSON(message: _82.QuerySigningInfoResponse): unknown; fromPartial(object: Partial<_82.QuerySigningInfoResponse>): _82.QuerySigningInfoResponse; @@ -8044,8 +8501,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QuerySigningInfoResponse): _82.QuerySigningInfoResponseProtoMsg; }; QuerySigningInfosRequest: { - encode(message: _82.QuerySigningInfosRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QuerySigningInfosRequest; + typeUrl: string; + encode(message: _82.QuerySigningInfosRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfosRequest; fromJSON(object: any): _82.QuerySigningInfosRequest; toJSON(message: _82.QuerySigningInfosRequest): unknown; fromPartial(object: Partial<_82.QuerySigningInfosRequest>): _82.QuerySigningInfosRequest; @@ -8058,8 +8516,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QuerySigningInfosRequest): _82.QuerySigningInfosRequestProtoMsg; }; QuerySigningInfosResponse: { - encode(message: _82.QuerySigningInfosResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _82.QuerySigningInfosResponse; + typeUrl: string; + encode(message: _82.QuerySigningInfosResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfosResponse; fromJSON(object: any): _82.QuerySigningInfosResponse; toJSON(message: _82.QuerySigningInfosResponse): unknown; fromPartial(object: Partial<_82.QuerySigningInfosResponse>): _82.QuerySigningInfosResponse; @@ -8072,8 +8531,9 @@ export declare namespace cosmos { toProtoMsg(message: _82.QuerySigningInfosResponse): _82.QuerySigningInfosResponseProtoMsg; }; GenesisState: { - encode(message: _81.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _81.GenesisState; + typeUrl: string; + encode(message: _81.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.GenesisState; fromJSON(object: any): _81.GenesisState; toJSON(message: _81.GenesisState): unknown; fromPartial(object: Partial<_81.GenesisState>): _81.GenesisState; @@ -8086,8 +8546,9 @@ export declare namespace cosmos { toProtoMsg(message: _81.GenesisState): _81.GenesisStateProtoMsg; }; SigningInfo: { - encode(message: _81.SigningInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _81.SigningInfo; + typeUrl: string; + encode(message: _81.SigningInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.SigningInfo; fromJSON(object: any): _81.SigningInfo; toJSON(message: _81.SigningInfo): unknown; fromPartial(object: Partial<_81.SigningInfo>): _81.SigningInfo; @@ -8100,8 +8561,9 @@ export declare namespace cosmos { toProtoMsg(message: _81.SigningInfo): _81.SigningInfoProtoMsg; }; ValidatorMissedBlocks: { - encode(message: _81.ValidatorMissedBlocks, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _81.ValidatorMissedBlocks; + typeUrl: string; + encode(message: _81.ValidatorMissedBlocks, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.ValidatorMissedBlocks; fromJSON(object: any): _81.ValidatorMissedBlocks; toJSON(message: _81.ValidatorMissedBlocks): unknown; fromPartial(object: Partial<_81.ValidatorMissedBlocks>): _81.ValidatorMissedBlocks; @@ -8114,8 +8576,9 @@ export declare namespace cosmos { toProtoMsg(message: _81.ValidatorMissedBlocks): _81.ValidatorMissedBlocksProtoMsg; }; MissedBlock: { - encode(message: _81.MissedBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _81.MissedBlock; + typeUrl: string; + encode(message: _81.MissedBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.MissedBlock; fromJSON(object: any): _81.MissedBlock; toJSON(message: _81.MissedBlock): unknown; fromPartial(object: Partial<_81.MissedBlock>): _81.MissedBlock; @@ -8131,8 +8594,8 @@ export declare namespace cosmos { } namespace staking { const v1beta1: { - MsgClientImpl: typeof _227.MsgClientImpl; - QueryClientImpl: typeof _213.QueryClientImpl; + MsgClientImpl: typeof _228.MsgClientImpl; + QueryClientImpl: typeof _214.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { validators(request: _87.QueryValidatorsRequest): Promise<_87.QueryValidatorsResponse>; validator(request: _87.QueryValidatorRequest): Promise<_87.QueryValidatorResponse>; @@ -8149,7 +8612,7 @@ export declare namespace cosmos { pool(request?: _87.QueryPoolRequest | undefined): Promise<_87.QueryPoolResponse>; params(request?: _87.QueryParamsRequest | undefined): Promise<_87.QueryParamsResponse>; }; - LCDQueryClient: typeof _194.LCDQueryClient; + LCDQueryClient: typeof _195.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -8317,8 +8780,9 @@ export declare namespace cosmos { }; }; MsgCreateValidator: { - encode(message: _89.MsgCreateValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgCreateValidator; + typeUrl: string; + encode(message: _89.MsgCreateValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCreateValidator; fromJSON(object: any): _89.MsgCreateValidator; toJSON(message: _89.MsgCreateValidator): unknown; fromPartial(object: Partial<_89.MsgCreateValidator>): _89.MsgCreateValidator; @@ -8331,8 +8795,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgCreateValidator): _89.MsgCreateValidatorProtoMsg; }; MsgCreateValidatorResponse: { - encode(_: _89.MsgCreateValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgCreateValidatorResponse; + typeUrl: string; + encode(_: _89.MsgCreateValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCreateValidatorResponse; fromJSON(_: any): _89.MsgCreateValidatorResponse; toJSON(_: _89.MsgCreateValidatorResponse): unknown; fromPartial(_: Partial<_89.MsgCreateValidatorResponse>): _89.MsgCreateValidatorResponse; @@ -8345,8 +8810,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgCreateValidatorResponse): _89.MsgCreateValidatorResponseProtoMsg; }; MsgEditValidator: { - encode(message: _89.MsgEditValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgEditValidator; + typeUrl: string; + encode(message: _89.MsgEditValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgEditValidator; fromJSON(object: any): _89.MsgEditValidator; toJSON(message: _89.MsgEditValidator): unknown; fromPartial(object: Partial<_89.MsgEditValidator>): _89.MsgEditValidator; @@ -8359,8 +8825,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgEditValidator): _89.MsgEditValidatorProtoMsg; }; MsgEditValidatorResponse: { - encode(_: _89.MsgEditValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgEditValidatorResponse; + typeUrl: string; + encode(_: _89.MsgEditValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgEditValidatorResponse; fromJSON(_: any): _89.MsgEditValidatorResponse; toJSON(_: _89.MsgEditValidatorResponse): unknown; fromPartial(_: Partial<_89.MsgEditValidatorResponse>): _89.MsgEditValidatorResponse; @@ -8373,8 +8840,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgEditValidatorResponse): _89.MsgEditValidatorResponseProtoMsg; }; MsgDelegate: { - encode(message: _89.MsgDelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgDelegate; + typeUrl: string; + encode(message: _89.MsgDelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgDelegate; fromJSON(object: any): _89.MsgDelegate; toJSON(message: _89.MsgDelegate): unknown; fromPartial(object: Partial<_89.MsgDelegate>): _89.MsgDelegate; @@ -8387,8 +8855,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgDelegate): _89.MsgDelegateProtoMsg; }; MsgDelegateResponse: { - encode(_: _89.MsgDelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgDelegateResponse; + typeUrl: string; + encode(_: _89.MsgDelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgDelegateResponse; fromJSON(_: any): _89.MsgDelegateResponse; toJSON(_: _89.MsgDelegateResponse): unknown; fromPartial(_: Partial<_89.MsgDelegateResponse>): _89.MsgDelegateResponse; @@ -8401,8 +8870,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgDelegateResponse): _89.MsgDelegateResponseProtoMsg; }; MsgBeginRedelegate: { - encode(message: _89.MsgBeginRedelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgBeginRedelegate; + typeUrl: string; + encode(message: _89.MsgBeginRedelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgBeginRedelegate; fromJSON(object: any): _89.MsgBeginRedelegate; toJSON(message: _89.MsgBeginRedelegate): unknown; fromPartial(object: Partial<_89.MsgBeginRedelegate>): _89.MsgBeginRedelegate; @@ -8415,8 +8885,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgBeginRedelegate): _89.MsgBeginRedelegateProtoMsg; }; MsgBeginRedelegateResponse: { - encode(message: _89.MsgBeginRedelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgBeginRedelegateResponse; + typeUrl: string; + encode(message: _89.MsgBeginRedelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgBeginRedelegateResponse; fromJSON(object: any): _89.MsgBeginRedelegateResponse; toJSON(message: _89.MsgBeginRedelegateResponse): unknown; fromPartial(object: Partial<_89.MsgBeginRedelegateResponse>): _89.MsgBeginRedelegateResponse; @@ -8429,8 +8900,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgBeginRedelegateResponse): _89.MsgBeginRedelegateResponseProtoMsg; }; MsgUndelegate: { - encode(message: _89.MsgUndelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgUndelegate; + typeUrl: string; + encode(message: _89.MsgUndelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgUndelegate; fromJSON(object: any): _89.MsgUndelegate; toJSON(message: _89.MsgUndelegate): unknown; fromPartial(object: Partial<_89.MsgUndelegate>): _89.MsgUndelegate; @@ -8443,8 +8915,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgUndelegate): _89.MsgUndelegateProtoMsg; }; MsgUndelegateResponse: { - encode(message: _89.MsgUndelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgUndelegateResponse; + typeUrl: string; + encode(message: _89.MsgUndelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgUndelegateResponse; fromJSON(object: any): _89.MsgUndelegateResponse; toJSON(message: _89.MsgUndelegateResponse): unknown; fromPartial(object: Partial<_89.MsgUndelegateResponse>): _89.MsgUndelegateResponse; @@ -8457,8 +8930,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgUndelegateResponse): _89.MsgUndelegateResponseProtoMsg; }; MsgCancelUnbondingDelegation: { - encode(message: _89.MsgCancelUnbondingDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgCancelUnbondingDelegation; + typeUrl: string; + encode(message: _89.MsgCancelUnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCancelUnbondingDelegation; fromJSON(object: any): _89.MsgCancelUnbondingDelegation; toJSON(message: _89.MsgCancelUnbondingDelegation): unknown; fromPartial(object: Partial<_89.MsgCancelUnbondingDelegation>): _89.MsgCancelUnbondingDelegation; @@ -8471,8 +8945,9 @@ export declare namespace cosmos { toProtoMsg(message: _89.MsgCancelUnbondingDelegation): _89.MsgCancelUnbondingDelegationProtoMsg; }; MsgCancelUnbondingDelegationResponse: { - encode(_: _89.MsgCancelUnbondingDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _89.MsgCancelUnbondingDelegationResponse; + typeUrl: string; + encode(_: _89.MsgCancelUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCancelUnbondingDelegationResponse; fromJSON(_: any): _89.MsgCancelUnbondingDelegationResponse; toJSON(_: _89.MsgCancelUnbondingDelegationResponse): unknown; fromPartial(_: Partial<_89.MsgCancelUnbondingDelegationResponse>): _89.MsgCancelUnbondingDelegationResponse; @@ -8484,20 +8959,18 @@ export declare namespace cosmos { toProto(message: _89.MsgCancelUnbondingDelegationResponse): Uint8Array; toProtoMsg(message: _89.MsgCancelUnbondingDelegationResponse): _89.MsgCancelUnbondingDelegationResponseProtoMsg; }; - Cosmos_cryptoPubKey_InterfaceDecoder: (input: Uint8Array | import("protobufjs").Reader) => import("../google/protobuf/any").Any; - Cosmos_cryptoPubKey_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => string; - Cosmos_cryptoPubKey_ToAmino: (content: import("../google/protobuf/any").Any) => { - typeUrl: string; - value: Uint8Array; - }; + Cosmos_cryptoPubKey_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; + Cosmos_cryptoPubKey_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Cosmos_cryptoPubKey_ToAmino: (content: import("../google/protobuf/any").Any) => import("@cosmjs/amino").Pubkey | null; bondStatusFromJSON(object: any): _88.BondStatus; bondStatusToJSON(object: _88.BondStatus): string; BondStatus: typeof _88.BondStatus; BondStatusSDKType: typeof _88.BondStatus; BondStatusAmino: typeof _88.BondStatus; HistoricalInfo: { - encode(message: _88.HistoricalInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.HistoricalInfo; + typeUrl: string; + encode(message: _88.HistoricalInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.HistoricalInfo; fromJSON(object: any): _88.HistoricalInfo; toJSON(message: _88.HistoricalInfo): unknown; fromPartial(object: Partial<_88.HistoricalInfo>): _88.HistoricalInfo; @@ -8510,8 +8983,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.HistoricalInfo): _88.HistoricalInfoProtoMsg; }; CommissionRates: { - encode(message: _88.CommissionRates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.CommissionRates; + typeUrl: string; + encode(message: _88.CommissionRates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.CommissionRates; fromJSON(object: any): _88.CommissionRates; toJSON(message: _88.CommissionRates): unknown; fromPartial(object: Partial<_88.CommissionRates>): _88.CommissionRates; @@ -8524,8 +8998,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.CommissionRates): _88.CommissionRatesProtoMsg; }; Commission: { - encode(message: _88.Commission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Commission; + typeUrl: string; + encode(message: _88.Commission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Commission; fromJSON(object: any): _88.Commission; toJSON(message: _88.Commission): unknown; fromPartial(object: Partial<_88.Commission>): _88.Commission; @@ -8538,8 +9013,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Commission): _88.CommissionProtoMsg; }; Description: { - encode(message: _88.Description, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Description; + typeUrl: string; + encode(message: _88.Description, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Description; fromJSON(object: any): _88.Description; toJSON(message: _88.Description): unknown; fromPartial(object: Partial<_88.Description>): _88.Description; @@ -8552,8 +9028,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Description): _88.DescriptionProtoMsg; }; Validator: { - encode(message: _88.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Validator; + typeUrl: string; + encode(message: _88.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Validator; fromJSON(object: any): _88.Validator; toJSON(message: _88.Validator): unknown; fromPartial(object: Partial<_88.Validator>): _88.Validator; @@ -8566,8 +9043,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Validator): _88.ValidatorProtoMsg; }; ValAddresses: { - encode(message: _88.ValAddresses, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.ValAddresses; + typeUrl: string; + encode(message: _88.ValAddresses, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.ValAddresses; fromJSON(object: any): _88.ValAddresses; toJSON(message: _88.ValAddresses): unknown; fromPartial(object: Partial<_88.ValAddresses>): _88.ValAddresses; @@ -8580,8 +9058,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.ValAddresses): _88.ValAddressesProtoMsg; }; DVPair: { - encode(message: _88.DVPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.DVPair; + typeUrl: string; + encode(message: _88.DVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVPair; fromJSON(object: any): _88.DVPair; toJSON(message: _88.DVPair): unknown; fromPartial(object: Partial<_88.DVPair>): _88.DVPair; @@ -8594,8 +9073,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.DVPair): _88.DVPairProtoMsg; }; DVPairs: { - encode(message: _88.DVPairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.DVPairs; + typeUrl: string; + encode(message: _88.DVPairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVPairs; fromJSON(object: any): _88.DVPairs; toJSON(message: _88.DVPairs): unknown; fromPartial(object: Partial<_88.DVPairs>): _88.DVPairs; @@ -8608,8 +9088,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.DVPairs): _88.DVPairsProtoMsg; }; DVVTriplet: { - encode(message: _88.DVVTriplet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.DVVTriplet; + typeUrl: string; + encode(message: _88.DVVTriplet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVVTriplet; fromJSON(object: any): _88.DVVTriplet; toJSON(message: _88.DVVTriplet): unknown; fromPartial(object: Partial<_88.DVVTriplet>): _88.DVVTriplet; @@ -8622,8 +9103,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.DVVTriplet): _88.DVVTripletProtoMsg; }; DVVTriplets: { - encode(message: _88.DVVTriplets, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.DVVTriplets; + typeUrl: string; + encode(message: _88.DVVTriplets, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVVTriplets; fromJSON(object: any): _88.DVVTriplets; toJSON(message: _88.DVVTriplets): unknown; fromPartial(object: Partial<_88.DVVTriplets>): _88.DVVTriplets; @@ -8636,8 +9118,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.DVVTriplets): _88.DVVTripletsProtoMsg; }; Delegation: { - encode(message: _88.Delegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Delegation; + typeUrl: string; + encode(message: _88.Delegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Delegation; fromJSON(object: any): _88.Delegation; toJSON(message: _88.Delegation): unknown; fromPartial(object: Partial<_88.Delegation>): _88.Delegation; @@ -8650,8 +9133,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Delegation): _88.DelegationProtoMsg; }; UnbondingDelegation: { - encode(message: _88.UnbondingDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.UnbondingDelegation; + typeUrl: string; + encode(message: _88.UnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.UnbondingDelegation; fromJSON(object: any): _88.UnbondingDelegation; toJSON(message: _88.UnbondingDelegation): unknown; fromPartial(object: Partial<_88.UnbondingDelegation>): _88.UnbondingDelegation; @@ -8664,8 +9148,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.UnbondingDelegation): _88.UnbondingDelegationProtoMsg; }; UnbondingDelegationEntry: { - encode(message: _88.UnbondingDelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.UnbondingDelegationEntry; + typeUrl: string; + encode(message: _88.UnbondingDelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.UnbondingDelegationEntry; fromJSON(object: any): _88.UnbondingDelegationEntry; toJSON(message: _88.UnbondingDelegationEntry): unknown; fromPartial(object: Partial<_88.UnbondingDelegationEntry>): _88.UnbondingDelegationEntry; @@ -8678,8 +9163,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.UnbondingDelegationEntry): _88.UnbondingDelegationEntryProtoMsg; }; RedelegationEntry: { - encode(message: _88.RedelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.RedelegationEntry; + typeUrl: string; + encode(message: _88.RedelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationEntry; fromJSON(object: any): _88.RedelegationEntry; toJSON(message: _88.RedelegationEntry): unknown; fromPartial(object: Partial<_88.RedelegationEntry>): _88.RedelegationEntry; @@ -8692,8 +9178,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.RedelegationEntry): _88.RedelegationEntryProtoMsg; }; Redelegation: { - encode(message: _88.Redelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Redelegation; + typeUrl: string; + encode(message: _88.Redelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Redelegation; fromJSON(object: any): _88.Redelegation; toJSON(message: _88.Redelegation): unknown; fromPartial(object: Partial<_88.Redelegation>): _88.Redelegation; @@ -8706,8 +9193,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Redelegation): _88.RedelegationProtoMsg; }; Params: { - encode(message: _88.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Params; + typeUrl: string; + encode(message: _88.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Params; fromJSON(object: any): _88.Params; toJSON(message: _88.Params): unknown; fromPartial(object: Partial<_88.Params>): _88.Params; @@ -8720,8 +9208,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Params): _88.ParamsProtoMsg; }; DelegationResponse: { - encode(message: _88.DelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.DelegationResponse; + typeUrl: string; + encode(message: _88.DelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DelegationResponse; fromJSON(object: any): _88.DelegationResponse; toJSON(message: _88.DelegationResponse): unknown; fromPartial(object: Partial<_88.DelegationResponse>): _88.DelegationResponse; @@ -8734,8 +9223,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.DelegationResponse): _88.DelegationResponseProtoMsg; }; RedelegationEntryResponse: { - encode(message: _88.RedelegationEntryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.RedelegationEntryResponse; + typeUrl: string; + encode(message: _88.RedelegationEntryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationEntryResponse; fromJSON(object: any): _88.RedelegationEntryResponse; toJSON(message: _88.RedelegationEntryResponse): unknown; fromPartial(object: Partial<_88.RedelegationEntryResponse>): _88.RedelegationEntryResponse; @@ -8748,8 +9238,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.RedelegationEntryResponse): _88.RedelegationEntryResponseProtoMsg; }; RedelegationResponse: { - encode(message: _88.RedelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.RedelegationResponse; + typeUrl: string; + encode(message: _88.RedelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationResponse; fromJSON(object: any): _88.RedelegationResponse; toJSON(message: _88.RedelegationResponse): unknown; fromPartial(object: Partial<_88.RedelegationResponse>): _88.RedelegationResponse; @@ -8762,8 +9253,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.RedelegationResponse): _88.RedelegationResponseProtoMsg; }; Pool: { - encode(message: _88.Pool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _88.Pool; + typeUrl: string; + encode(message: _88.Pool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Pool; fromJSON(object: any): _88.Pool; toJSON(message: _88.Pool): unknown; fromPartial(object: Partial<_88.Pool>): _88.Pool; @@ -8776,8 +9268,9 @@ export declare namespace cosmos { toProtoMsg(message: _88.Pool): _88.PoolProtoMsg; }; QueryValidatorsRequest: { - encode(message: _87.QueryValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorsRequest; + typeUrl: string; + encode(message: _87.QueryValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorsRequest; fromJSON(object: any): _87.QueryValidatorsRequest; toJSON(message: _87.QueryValidatorsRequest): unknown; fromPartial(object: Partial<_87.QueryValidatorsRequest>): _87.QueryValidatorsRequest; @@ -8790,8 +9283,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorsRequest): _87.QueryValidatorsRequestProtoMsg; }; QueryValidatorsResponse: { - encode(message: _87.QueryValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorsResponse; + typeUrl: string; + encode(message: _87.QueryValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorsResponse; fromJSON(object: any): _87.QueryValidatorsResponse; toJSON(message: _87.QueryValidatorsResponse): unknown; fromPartial(object: Partial<_87.QueryValidatorsResponse>): _87.QueryValidatorsResponse; @@ -8804,8 +9298,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorsResponse): _87.QueryValidatorsResponseProtoMsg; }; QueryValidatorRequest: { - encode(message: _87.QueryValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorRequest; + typeUrl: string; + encode(message: _87.QueryValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorRequest; fromJSON(object: any): _87.QueryValidatorRequest; toJSON(message: _87.QueryValidatorRequest): unknown; fromPartial(object: Partial<_87.QueryValidatorRequest>): _87.QueryValidatorRequest; @@ -8818,8 +9313,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorRequest): _87.QueryValidatorRequestProtoMsg; }; QueryValidatorResponse: { - encode(message: _87.QueryValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorResponse; + typeUrl: string; + encode(message: _87.QueryValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorResponse; fromJSON(object: any): _87.QueryValidatorResponse; toJSON(message: _87.QueryValidatorResponse): unknown; fromPartial(object: Partial<_87.QueryValidatorResponse>): _87.QueryValidatorResponse; @@ -8832,8 +9328,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorResponse): _87.QueryValidatorResponseProtoMsg; }; QueryValidatorDelegationsRequest: { - encode(message: _87.QueryValidatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorDelegationsRequest; + typeUrl: string; + encode(message: _87.QueryValidatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorDelegationsRequest; fromJSON(object: any): _87.QueryValidatorDelegationsRequest; toJSON(message: _87.QueryValidatorDelegationsRequest): unknown; fromPartial(object: Partial<_87.QueryValidatorDelegationsRequest>): _87.QueryValidatorDelegationsRequest; @@ -8846,8 +9343,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorDelegationsRequest): _87.QueryValidatorDelegationsRequestProtoMsg; }; QueryValidatorDelegationsResponse: { - encode(message: _87.QueryValidatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorDelegationsResponse; + typeUrl: string; + encode(message: _87.QueryValidatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorDelegationsResponse; fromJSON(object: any): _87.QueryValidatorDelegationsResponse; toJSON(message: _87.QueryValidatorDelegationsResponse): unknown; fromPartial(object: Partial<_87.QueryValidatorDelegationsResponse>): _87.QueryValidatorDelegationsResponse; @@ -8860,8 +9358,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorDelegationsResponse): _87.QueryValidatorDelegationsResponseProtoMsg; }; QueryValidatorUnbondingDelegationsRequest: { - encode(message: _87.QueryValidatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsRequest; + typeUrl: string; + encode(message: _87.QueryValidatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsRequest; fromJSON(object: any): _87.QueryValidatorUnbondingDelegationsRequest; toJSON(message: _87.QueryValidatorUnbondingDelegationsRequest): unknown; fromPartial(object: Partial<_87.QueryValidatorUnbondingDelegationsRequest>): _87.QueryValidatorUnbondingDelegationsRequest; @@ -8874,8 +9373,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorUnbondingDelegationsRequest): _87.QueryValidatorUnbondingDelegationsRequestProtoMsg; }; QueryValidatorUnbondingDelegationsResponse: { - encode(message: _87.QueryValidatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsResponse; + typeUrl: string; + encode(message: _87.QueryValidatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsResponse; fromJSON(object: any): _87.QueryValidatorUnbondingDelegationsResponse; toJSON(message: _87.QueryValidatorUnbondingDelegationsResponse): unknown; fromPartial(object: Partial<_87.QueryValidatorUnbondingDelegationsResponse>): _87.QueryValidatorUnbondingDelegationsResponse; @@ -8888,8 +9388,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryValidatorUnbondingDelegationsResponse): _87.QueryValidatorUnbondingDelegationsResponseProtoMsg; }; QueryDelegationRequest: { - encode(message: _87.QueryDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegationRequest; + typeUrl: string; + encode(message: _87.QueryDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegationRequest; fromJSON(object: any): _87.QueryDelegationRequest; toJSON(message: _87.QueryDelegationRequest): unknown; fromPartial(object: Partial<_87.QueryDelegationRequest>): _87.QueryDelegationRequest; @@ -8902,8 +9403,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegationRequest): _87.QueryDelegationRequestProtoMsg; }; QueryDelegationResponse: { - encode(message: _87.QueryDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegationResponse; + typeUrl: string; + encode(message: _87.QueryDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegationResponse; fromJSON(object: any): _87.QueryDelegationResponse; toJSON(message: _87.QueryDelegationResponse): unknown; fromPartial(object: Partial<_87.QueryDelegationResponse>): _87.QueryDelegationResponse; @@ -8916,8 +9418,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegationResponse): _87.QueryDelegationResponseProtoMsg; }; QueryUnbondingDelegationRequest: { - encode(message: _87.QueryUnbondingDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryUnbondingDelegationRequest; + typeUrl: string; + encode(message: _87.QueryUnbondingDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryUnbondingDelegationRequest; fromJSON(object: any): _87.QueryUnbondingDelegationRequest; toJSON(message: _87.QueryUnbondingDelegationRequest): unknown; fromPartial(object: Partial<_87.QueryUnbondingDelegationRequest>): _87.QueryUnbondingDelegationRequest; @@ -8930,8 +9433,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryUnbondingDelegationRequest): _87.QueryUnbondingDelegationRequestProtoMsg; }; QueryUnbondingDelegationResponse: { - encode(message: _87.QueryUnbondingDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryUnbondingDelegationResponse; + typeUrl: string; + encode(message: _87.QueryUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryUnbondingDelegationResponse; fromJSON(object: any): _87.QueryUnbondingDelegationResponse; toJSON(message: _87.QueryUnbondingDelegationResponse): unknown; fromPartial(object: Partial<_87.QueryUnbondingDelegationResponse>): _87.QueryUnbondingDelegationResponse; @@ -8944,8 +9448,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryUnbondingDelegationResponse): _87.QueryUnbondingDelegationResponseProtoMsg; }; QueryDelegatorDelegationsRequest: { - encode(message: _87.QueryDelegatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorDelegationsRequest; + typeUrl: string; + encode(message: _87.QueryDelegatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorDelegationsRequest; fromJSON(object: any): _87.QueryDelegatorDelegationsRequest; toJSON(message: _87.QueryDelegatorDelegationsRequest): unknown; fromPartial(object: Partial<_87.QueryDelegatorDelegationsRequest>): _87.QueryDelegatorDelegationsRequest; @@ -8958,8 +9463,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorDelegationsRequest): _87.QueryDelegatorDelegationsRequestProtoMsg; }; QueryDelegatorDelegationsResponse: { - encode(message: _87.QueryDelegatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorDelegationsResponse; + typeUrl: string; + encode(message: _87.QueryDelegatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorDelegationsResponse; fromJSON(object: any): _87.QueryDelegatorDelegationsResponse; toJSON(message: _87.QueryDelegatorDelegationsResponse): unknown; fromPartial(object: Partial<_87.QueryDelegatorDelegationsResponse>): _87.QueryDelegatorDelegationsResponse; @@ -8972,8 +9478,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorDelegationsResponse): _87.QueryDelegatorDelegationsResponseProtoMsg; }; QueryDelegatorUnbondingDelegationsRequest: { - encode(message: _87.QueryDelegatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsRequest; + typeUrl: string; + encode(message: _87.QueryDelegatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsRequest; fromJSON(object: any): _87.QueryDelegatorUnbondingDelegationsRequest; toJSON(message: _87.QueryDelegatorUnbondingDelegationsRequest): unknown; fromPartial(object: Partial<_87.QueryDelegatorUnbondingDelegationsRequest>): _87.QueryDelegatorUnbondingDelegationsRequest; @@ -8986,8 +9493,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsRequest): _87.QueryDelegatorUnbondingDelegationsRequestProtoMsg; }; QueryDelegatorUnbondingDelegationsResponse: { - encode(message: _87.QueryDelegatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsResponse; + typeUrl: string; + encode(message: _87.QueryDelegatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsResponse; fromJSON(object: any): _87.QueryDelegatorUnbondingDelegationsResponse; toJSON(message: _87.QueryDelegatorUnbondingDelegationsResponse): unknown; fromPartial(object: Partial<_87.QueryDelegatorUnbondingDelegationsResponse>): _87.QueryDelegatorUnbondingDelegationsResponse; @@ -9000,8 +9508,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsResponse): _87.QueryDelegatorUnbondingDelegationsResponseProtoMsg; }; QueryRedelegationsRequest: { - encode(message: _87.QueryRedelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryRedelegationsRequest; + typeUrl: string; + encode(message: _87.QueryRedelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryRedelegationsRequest; fromJSON(object: any): _87.QueryRedelegationsRequest; toJSON(message: _87.QueryRedelegationsRequest): unknown; fromPartial(object: Partial<_87.QueryRedelegationsRequest>): _87.QueryRedelegationsRequest; @@ -9014,8 +9523,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryRedelegationsRequest): _87.QueryRedelegationsRequestProtoMsg; }; QueryRedelegationsResponse: { - encode(message: _87.QueryRedelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryRedelegationsResponse; + typeUrl: string; + encode(message: _87.QueryRedelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryRedelegationsResponse; fromJSON(object: any): _87.QueryRedelegationsResponse; toJSON(message: _87.QueryRedelegationsResponse): unknown; fromPartial(object: Partial<_87.QueryRedelegationsResponse>): _87.QueryRedelegationsResponse; @@ -9028,8 +9538,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryRedelegationsResponse): _87.QueryRedelegationsResponseProtoMsg; }; QueryDelegatorValidatorsRequest: { - encode(message: _87.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorValidatorsRequest; + typeUrl: string; + encode(message: _87.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorsRequest; fromJSON(object: any): _87.QueryDelegatorValidatorsRequest; toJSON(message: _87.QueryDelegatorValidatorsRequest): unknown; fromPartial(object: Partial<_87.QueryDelegatorValidatorsRequest>): _87.QueryDelegatorValidatorsRequest; @@ -9042,8 +9553,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorValidatorsRequest): _87.QueryDelegatorValidatorsRequestProtoMsg; }; QueryDelegatorValidatorsResponse: { - encode(message: _87.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorValidatorsResponse; + typeUrl: string; + encode(message: _87.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorsResponse; fromJSON(object: any): _87.QueryDelegatorValidatorsResponse; toJSON(message: _87.QueryDelegatorValidatorsResponse): unknown; fromPartial(object: Partial<_87.QueryDelegatorValidatorsResponse>): _87.QueryDelegatorValidatorsResponse; @@ -9056,8 +9568,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorValidatorsResponse): _87.QueryDelegatorValidatorsResponseProtoMsg; }; QueryDelegatorValidatorRequest: { - encode(message: _87.QueryDelegatorValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorValidatorRequest; + typeUrl: string; + encode(message: _87.QueryDelegatorValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorRequest; fromJSON(object: any): _87.QueryDelegatorValidatorRequest; toJSON(message: _87.QueryDelegatorValidatorRequest): unknown; fromPartial(object: Partial<_87.QueryDelegatorValidatorRequest>): _87.QueryDelegatorValidatorRequest; @@ -9070,8 +9583,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorValidatorRequest): _87.QueryDelegatorValidatorRequestProtoMsg; }; QueryDelegatorValidatorResponse: { - encode(message: _87.QueryDelegatorValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryDelegatorValidatorResponse; + typeUrl: string; + encode(message: _87.QueryDelegatorValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorResponse; fromJSON(object: any): _87.QueryDelegatorValidatorResponse; toJSON(message: _87.QueryDelegatorValidatorResponse): unknown; fromPartial(object: Partial<_87.QueryDelegatorValidatorResponse>): _87.QueryDelegatorValidatorResponse; @@ -9084,8 +9598,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryDelegatorValidatorResponse): _87.QueryDelegatorValidatorResponseProtoMsg; }; QueryHistoricalInfoRequest: { - encode(message: _87.QueryHistoricalInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryHistoricalInfoRequest; + typeUrl: string; + encode(message: _87.QueryHistoricalInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryHistoricalInfoRequest; fromJSON(object: any): _87.QueryHistoricalInfoRequest; toJSON(message: _87.QueryHistoricalInfoRequest): unknown; fromPartial(object: Partial<_87.QueryHistoricalInfoRequest>): _87.QueryHistoricalInfoRequest; @@ -9098,8 +9613,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryHistoricalInfoRequest): _87.QueryHistoricalInfoRequestProtoMsg; }; QueryHistoricalInfoResponse: { - encode(message: _87.QueryHistoricalInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryHistoricalInfoResponse; + typeUrl: string; + encode(message: _87.QueryHistoricalInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryHistoricalInfoResponse; fromJSON(object: any): _87.QueryHistoricalInfoResponse; toJSON(message: _87.QueryHistoricalInfoResponse): unknown; fromPartial(object: Partial<_87.QueryHistoricalInfoResponse>): _87.QueryHistoricalInfoResponse; @@ -9112,8 +9628,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryHistoricalInfoResponse): _87.QueryHistoricalInfoResponseProtoMsg; }; QueryPoolRequest: { - encode(_: _87.QueryPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryPoolRequest; + typeUrl: string; + encode(_: _87.QueryPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryPoolRequest; fromJSON(_: any): _87.QueryPoolRequest; toJSON(_: _87.QueryPoolRequest): unknown; fromPartial(_: Partial<_87.QueryPoolRequest>): _87.QueryPoolRequest; @@ -9126,8 +9643,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryPoolRequest): _87.QueryPoolRequestProtoMsg; }; QueryPoolResponse: { - encode(message: _87.QueryPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryPoolResponse; + typeUrl: string; + encode(message: _87.QueryPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryPoolResponse; fromJSON(object: any): _87.QueryPoolResponse; toJSON(message: _87.QueryPoolResponse): unknown; fromPartial(object: Partial<_87.QueryPoolResponse>): _87.QueryPoolResponse; @@ -9140,8 +9658,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryPoolResponse): _87.QueryPoolResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _87.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryParamsRequest; + typeUrl: string; + encode(_: _87.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryParamsRequest; fromJSON(_: any): _87.QueryParamsRequest; toJSON(_: _87.QueryParamsRequest): unknown; fromPartial(_: Partial<_87.QueryParamsRequest>): _87.QueryParamsRequest; @@ -9154,8 +9673,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryParamsRequest): _87.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _87.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _87.QueryParamsResponse; + typeUrl: string; + encode(message: _87.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryParamsResponse; fromJSON(object: any): _87.QueryParamsResponse; toJSON(message: _87.QueryParamsResponse): unknown; fromPartial(object: Partial<_87.QueryParamsResponse>): _87.QueryParamsResponse; @@ -9168,8 +9688,9 @@ export declare namespace cosmos { toProtoMsg(message: _87.QueryParamsResponse): _87.QueryParamsResponseProtoMsg; }; GenesisState: { - encode(message: _86.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _86.GenesisState; + typeUrl: string; + encode(message: _86.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _86.GenesisState; fromJSON(object: any): _86.GenesisState; toJSON(message: _86.GenesisState): unknown; fromPartial(object: Partial<_86.GenesisState>): _86.GenesisState; @@ -9182,8 +9703,9 @@ export declare namespace cosmos { toProtoMsg(message: _86.GenesisState): _86.GenesisStateProtoMsg; }; LastValidatorPower: { - encode(message: _86.LastValidatorPower, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _86.LastValidatorPower; + typeUrl: string; + encode(message: _86.LastValidatorPower, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _86.LastValidatorPower; fromJSON(object: any): _86.LastValidatorPower; toJSON(message: _86.LastValidatorPower): unknown; fromPartial(object: Partial<_86.LastValidatorPower>): _86.LastValidatorPower; @@ -9201,8 +9723,9 @@ export declare namespace cosmos { AuthorizationTypeSDKType: typeof _85.AuthorizationType; AuthorizationTypeAmino: typeof _85.AuthorizationType; StakeAuthorization: { - encode(message: _85.StakeAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _85.StakeAuthorization; + typeUrl: string; + encode(message: _85.StakeAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _85.StakeAuthorization; fromJSON(object: any): _85.StakeAuthorization; toJSON(message: _85.StakeAuthorization): unknown; fromPartial(object: Partial<_85.StakeAuthorization>): _85.StakeAuthorization; @@ -9215,8 +9738,9 @@ export declare namespace cosmos { toProtoMsg(message: _85.StakeAuthorization): _85.StakeAuthorizationProtoMsg; }; StakeAuthorization_Validators: { - encode(message: _85.StakeAuthorization_Validators, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _85.StakeAuthorization_Validators; + typeUrl: string; + encode(message: _85.StakeAuthorization_Validators, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _85.StakeAuthorization_Validators; fromJSON(object: any): _85.StakeAuthorization_Validators; toJSON(message: _85.StakeAuthorization_Validators): unknown; fromPartial(object: Partial<_85.StakeAuthorization_Validators>): _85.StakeAuthorization_Validators; @@ -9239,8 +9763,9 @@ export declare namespace cosmos { SignModeSDKType: typeof _90.SignMode; SignModeAmino: typeof _90.SignMode; SignatureDescriptors: { - encode(message: _90.SignatureDescriptors, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _90.SignatureDescriptors; + typeUrl: string; + encode(message: _90.SignatureDescriptors, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptors; fromJSON(object: any): _90.SignatureDescriptors; toJSON(message: _90.SignatureDescriptors): unknown; fromPartial(object: Partial<_90.SignatureDescriptors>): _90.SignatureDescriptors; @@ -9253,8 +9778,9 @@ export declare namespace cosmos { toProtoMsg(message: _90.SignatureDescriptors): _90.SignatureDescriptorsProtoMsg; }; SignatureDescriptor: { - encode(message: _90.SignatureDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _90.SignatureDescriptor; + typeUrl: string; + encode(message: _90.SignatureDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor; fromJSON(object: any): _90.SignatureDescriptor; toJSON(message: _90.SignatureDescriptor): unknown; fromPartial(object: Partial<_90.SignatureDescriptor>): _90.SignatureDescriptor; @@ -9267,8 +9793,9 @@ export declare namespace cosmos { toProtoMsg(message: _90.SignatureDescriptor): _90.SignatureDescriptorProtoMsg; }; SignatureDescriptor_Data: { - encode(message: _90.SignatureDescriptor_Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _90.SignatureDescriptor_Data; + typeUrl: string; + encode(message: _90.SignatureDescriptor_Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data; fromJSON(object: any): _90.SignatureDescriptor_Data; toJSON(message: _90.SignatureDescriptor_Data): unknown; fromPartial(object: Partial<_90.SignatureDescriptor_Data>): _90.SignatureDescriptor_Data; @@ -9281,8 +9808,9 @@ export declare namespace cosmos { toProtoMsg(message: _90.SignatureDescriptor_Data): _90.SignatureDescriptor_DataProtoMsg; }; SignatureDescriptor_Data_Single: { - encode(message: _90.SignatureDescriptor_Data_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _90.SignatureDescriptor_Data_Single; + typeUrl: string; + encode(message: _90.SignatureDescriptor_Data_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data_Single; fromJSON(object: any): _90.SignatureDescriptor_Data_Single; toJSON(message: _90.SignatureDescriptor_Data_Single): unknown; fromPartial(object: Partial<_90.SignatureDescriptor_Data_Single>): _90.SignatureDescriptor_Data_Single; @@ -9295,8 +9823,9 @@ export declare namespace cosmos { toProtoMsg(message: _90.SignatureDescriptor_Data_Single): _90.SignatureDescriptor_Data_SingleProtoMsg; }; SignatureDescriptor_Data_Multi: { - encode(message: _90.SignatureDescriptor_Data_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _90.SignatureDescriptor_Data_Multi; + typeUrl: string; + encode(message: _90.SignatureDescriptor_Data_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data_Multi; fromJSON(object: any): _90.SignatureDescriptor_Data_Multi; toJSON(message: _90.SignatureDescriptor_Data_Multi): unknown; fromPartial(object: Partial<_90.SignatureDescriptor_Data_Multi>): _90.SignatureDescriptor_Data_Multi; @@ -9311,7 +9840,7 @@ export declare namespace cosmos { }; } const v1beta1: { - ServiceClientImpl: typeof _214.ServiceClientImpl; + ServiceClientImpl: typeof _215.ServiceClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { simulate(request: _91.SimulateRequest): Promise<_91.SimulateResponse>; getTx(request: _91.GetTxRequest): Promise<_91.GetTxResponse>; @@ -9319,10 +9848,11 @@ export declare namespace cosmos { getTxsEvent(request: _91.GetTxsEventRequest): Promise<_91.GetTxsEventResponse>; getBlockWithTxs(request: _91.GetBlockWithTxsRequest): Promise<_91.GetBlockWithTxsResponse>; }; - LCDQueryClient: typeof _195.LCDQueryClient; + LCDQueryClient: typeof _196.LCDQueryClient; Tx: { - encode(message: _92.Tx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.Tx; + typeUrl: string; + encode(message: _92.Tx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Tx; fromJSON(object: any): _92.Tx; toJSON(message: _92.Tx): unknown; fromPartial(object: Partial<_92.Tx>): _92.Tx; @@ -9335,8 +9865,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.Tx): _92.TxProtoMsg; }; TxRaw: { - encode(message: _92.TxRaw, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.TxRaw; + typeUrl: string; + encode(message: _92.TxRaw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.TxRaw; fromJSON(object: any): _92.TxRaw; toJSON(message: _92.TxRaw): unknown; fromPartial(object: Partial<_92.TxRaw>): _92.TxRaw; @@ -9349,8 +9880,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.TxRaw): _92.TxRawProtoMsg; }; SignDoc: { - encode(message: _92.SignDoc, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.SignDoc; + typeUrl: string; + encode(message: _92.SignDoc, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignDoc; fromJSON(object: any): _92.SignDoc; toJSON(message: _92.SignDoc): unknown; fromPartial(object: Partial<_92.SignDoc>): _92.SignDoc; @@ -9363,8 +9895,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.SignDoc): _92.SignDocProtoMsg; }; SignDocDirectAux: { - encode(message: _92.SignDocDirectAux, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.SignDocDirectAux; + typeUrl: string; + encode(message: _92.SignDocDirectAux, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignDocDirectAux; fromJSON(object: any): _92.SignDocDirectAux; toJSON(message: _92.SignDocDirectAux): unknown; fromPartial(object: Partial<_92.SignDocDirectAux>): _92.SignDocDirectAux; @@ -9377,8 +9910,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.SignDocDirectAux): _92.SignDocDirectAuxProtoMsg; }; TxBody: { - encode(message: _92.TxBody, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.TxBody; + typeUrl: string; + encode(message: _92.TxBody, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.TxBody; fromJSON(object: any): _92.TxBody; toJSON(message: _92.TxBody): unknown; fromPartial(object: Partial<_92.TxBody>): _92.TxBody; @@ -9391,8 +9925,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.TxBody): _92.TxBodyProtoMsg; }; AuthInfo: { - encode(message: _92.AuthInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.AuthInfo; + typeUrl: string; + encode(message: _92.AuthInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.AuthInfo; fromJSON(object: any): _92.AuthInfo; toJSON(message: _92.AuthInfo): unknown; fromPartial(object: Partial<_92.AuthInfo>): _92.AuthInfo; @@ -9405,8 +9940,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.AuthInfo): _92.AuthInfoProtoMsg; }; SignerInfo: { - encode(message: _92.SignerInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.SignerInfo; + typeUrl: string; + encode(message: _92.SignerInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignerInfo; fromJSON(object: any): _92.SignerInfo; toJSON(message: _92.SignerInfo): unknown; fromPartial(object: Partial<_92.SignerInfo>): _92.SignerInfo; @@ -9419,8 +9955,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.SignerInfo): _92.SignerInfoProtoMsg; }; ModeInfo: { - encode(message: _92.ModeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.ModeInfo; + typeUrl: string; + encode(message: _92.ModeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo; fromJSON(object: any): _92.ModeInfo; toJSON(message: _92.ModeInfo): unknown; fromPartial(object: Partial<_92.ModeInfo>): _92.ModeInfo; @@ -9433,8 +9970,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.ModeInfo): _92.ModeInfoProtoMsg; }; ModeInfo_Single: { - encode(message: _92.ModeInfo_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.ModeInfo_Single; + typeUrl: string; + encode(message: _92.ModeInfo_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo_Single; fromJSON(object: any): _92.ModeInfo_Single; toJSON(message: _92.ModeInfo_Single): unknown; fromPartial(object: Partial<_92.ModeInfo_Single>): _92.ModeInfo_Single; @@ -9447,8 +9985,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.ModeInfo_Single): _92.ModeInfo_SingleProtoMsg; }; ModeInfo_Multi: { - encode(message: _92.ModeInfo_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.ModeInfo_Multi; + typeUrl: string; + encode(message: _92.ModeInfo_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo_Multi; fromJSON(object: any): _92.ModeInfo_Multi; toJSON(message: _92.ModeInfo_Multi): unknown; fromPartial(object: Partial<_92.ModeInfo_Multi>): _92.ModeInfo_Multi; @@ -9461,8 +10000,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.ModeInfo_Multi): _92.ModeInfo_MultiProtoMsg; }; Fee: { - encode(message: _92.Fee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.Fee; + typeUrl: string; + encode(message: _92.Fee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Fee; fromJSON(object: any): _92.Fee; toJSON(message: _92.Fee): unknown; fromPartial(object: Partial<_92.Fee>): _92.Fee; @@ -9475,8 +10015,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.Fee): _92.FeeProtoMsg; }; Tip: { - encode(message: _92.Tip, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.Tip; + typeUrl: string; + encode(message: _92.Tip, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Tip; fromJSON(object: any): _92.Tip; toJSON(message: _92.Tip): unknown; fromPartial(object: Partial<_92.Tip>): _92.Tip; @@ -9489,8 +10030,9 @@ export declare namespace cosmos { toProtoMsg(message: _92.Tip): _92.TipProtoMsg; }; AuxSignerData: { - encode(message: _92.AuxSignerData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _92.AuxSignerData; + typeUrl: string; + encode(message: _92.AuxSignerData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.AuxSignerData; fromJSON(object: any): _92.AuxSignerData; toJSON(message: _92.AuxSignerData): unknown; fromPartial(object: Partial<_92.AuxSignerData>): _92.AuxSignerData; @@ -9513,8 +10055,9 @@ export declare namespace cosmos { BroadcastModeSDKType: typeof _91.BroadcastMode; BroadcastModeAmino: typeof _91.BroadcastMode; GetTxsEventRequest: { - encode(message: _91.GetTxsEventRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetTxsEventRequest; + typeUrl: string; + encode(message: _91.GetTxsEventRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxsEventRequest; fromJSON(object: any): _91.GetTxsEventRequest; toJSON(message: _91.GetTxsEventRequest): unknown; fromPartial(object: Partial<_91.GetTxsEventRequest>): _91.GetTxsEventRequest; @@ -9527,8 +10070,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.GetTxsEventRequest): _91.GetTxsEventRequestProtoMsg; }; GetTxsEventResponse: { - encode(message: _91.GetTxsEventResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetTxsEventResponse; + typeUrl: string; + encode(message: _91.GetTxsEventResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxsEventResponse; fromJSON(object: any): _91.GetTxsEventResponse; toJSON(message: _91.GetTxsEventResponse): unknown; fromPartial(object: Partial<_91.GetTxsEventResponse>): _91.GetTxsEventResponse; @@ -9541,8 +10085,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.GetTxsEventResponse): _91.GetTxsEventResponseProtoMsg; }; BroadcastTxRequest: { - encode(message: _91.BroadcastTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.BroadcastTxRequest; + typeUrl: string; + encode(message: _91.BroadcastTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.BroadcastTxRequest; fromJSON(object: any): _91.BroadcastTxRequest; toJSON(message: _91.BroadcastTxRequest): unknown; fromPartial(object: Partial<_91.BroadcastTxRequest>): _91.BroadcastTxRequest; @@ -9555,8 +10100,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.BroadcastTxRequest): _91.BroadcastTxRequestProtoMsg; }; BroadcastTxResponse: { - encode(message: _91.BroadcastTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.BroadcastTxResponse; + typeUrl: string; + encode(message: _91.BroadcastTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.BroadcastTxResponse; fromJSON(object: any): _91.BroadcastTxResponse; toJSON(message: _91.BroadcastTxResponse): unknown; fromPartial(object: Partial<_91.BroadcastTxResponse>): _91.BroadcastTxResponse; @@ -9569,8 +10115,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.BroadcastTxResponse): _91.BroadcastTxResponseProtoMsg; }; SimulateRequest: { - encode(message: _91.SimulateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.SimulateRequest; + typeUrl: string; + encode(message: _91.SimulateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.SimulateRequest; fromJSON(object: any): _91.SimulateRequest; toJSON(message: _91.SimulateRequest): unknown; fromPartial(object: Partial<_91.SimulateRequest>): _91.SimulateRequest; @@ -9583,8 +10130,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.SimulateRequest): _91.SimulateRequestProtoMsg; }; SimulateResponse: { - encode(message: _91.SimulateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.SimulateResponse; + typeUrl: string; + encode(message: _91.SimulateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.SimulateResponse; fromJSON(object: any): _91.SimulateResponse; toJSON(message: _91.SimulateResponse): unknown; fromPartial(object: Partial<_91.SimulateResponse>): _91.SimulateResponse; @@ -9597,8 +10145,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.SimulateResponse): _91.SimulateResponseProtoMsg; }; GetTxRequest: { - encode(message: _91.GetTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetTxRequest; + typeUrl: string; + encode(message: _91.GetTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxRequest; fromJSON(object: any): _91.GetTxRequest; toJSON(message: _91.GetTxRequest): unknown; fromPartial(object: Partial<_91.GetTxRequest>): _91.GetTxRequest; @@ -9611,8 +10160,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.GetTxRequest): _91.GetTxRequestProtoMsg; }; GetTxResponse: { - encode(message: _91.GetTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetTxResponse; + typeUrl: string; + encode(message: _91.GetTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxResponse; fromJSON(object: any): _91.GetTxResponse; toJSON(message: _91.GetTxResponse): unknown; fromPartial(object: Partial<_91.GetTxResponse>): _91.GetTxResponse; @@ -9625,8 +10175,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.GetTxResponse): _91.GetTxResponseProtoMsg; }; GetBlockWithTxsRequest: { - encode(message: _91.GetBlockWithTxsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetBlockWithTxsRequest; + typeUrl: string; + encode(message: _91.GetBlockWithTxsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetBlockWithTxsRequest; fromJSON(object: any): _91.GetBlockWithTxsRequest; toJSON(message: _91.GetBlockWithTxsRequest): unknown; fromPartial(object: Partial<_91.GetBlockWithTxsRequest>): _91.GetBlockWithTxsRequest; @@ -9639,8 +10190,9 @@ export declare namespace cosmos { toProtoMsg(message: _91.GetBlockWithTxsRequest): _91.GetBlockWithTxsRequestProtoMsg; }; GetBlockWithTxsResponse: { - encode(message: _91.GetBlockWithTxsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _91.GetBlockWithTxsResponse; + typeUrl: string; + encode(message: _91.GetBlockWithTxsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetBlockWithTxsResponse; fromJSON(object: any): _91.GetBlockWithTxsResponse; toJSON(message: _91.GetBlockWithTxsResponse): unknown; fromPartial(object: Partial<_91.GetBlockWithTxsResponse>): _91.GetBlockWithTxsResponse; @@ -9656,8 +10208,8 @@ export declare namespace cosmos { } namespace upgrade { const v1beta1: { - MsgClientImpl: typeof _228.MsgClientImpl; - QueryClientImpl: typeof _215.QueryClientImpl; + MsgClientImpl: typeof _229.MsgClientImpl; + QueryClientImpl: typeof _216.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { currentPlan(request?: _93.QueryCurrentPlanRequest | undefined): Promise<_93.QueryCurrentPlanResponse>; appliedPlan(request: _93.QueryAppliedPlanRequest): Promise<_93.QueryAppliedPlanResponse>; @@ -9665,7 +10217,7 @@ export declare namespace cosmos { moduleVersions(request: _93.QueryModuleVersionsRequest): Promise<_93.QueryModuleVersionsResponse>; authority(request?: _93.QueryAuthorityRequest | undefined): Promise<_93.QueryAuthorityResponse>; }; - LCDQueryClient: typeof _196.LCDQueryClient; + LCDQueryClient: typeof _197.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -9733,8 +10285,9 @@ export declare namespace cosmos { }; }; Plan: { - encode(message: _95.Plan, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _95.Plan; + typeUrl: string; + encode(message: _95.Plan, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.Plan; fromJSON(object: any): _95.Plan; toJSON(message: _95.Plan): unknown; fromPartial(object: Partial<_95.Plan>): _95.Plan; @@ -9747,8 +10300,9 @@ export declare namespace cosmos { toProtoMsg(message: _95.Plan): _95.PlanProtoMsg; }; SoftwareUpgradeProposal: { - encode(message: _95.SoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _95.SoftwareUpgradeProposal; + typeUrl: string; + encode(message: _95.SoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.SoftwareUpgradeProposal; fromJSON(object: any): _95.SoftwareUpgradeProposal; toJSON(message: _95.SoftwareUpgradeProposal): unknown; fromPartial(object: Partial<_95.SoftwareUpgradeProposal>): _95.SoftwareUpgradeProposal; @@ -9761,8 +10315,9 @@ export declare namespace cosmos { toProtoMsg(message: _95.SoftwareUpgradeProposal): _95.SoftwareUpgradeProposalProtoMsg; }; CancelSoftwareUpgradeProposal: { - encode(message: _95.CancelSoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _95.CancelSoftwareUpgradeProposal; + typeUrl: string; + encode(message: _95.CancelSoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.CancelSoftwareUpgradeProposal; fromJSON(object: any): _95.CancelSoftwareUpgradeProposal; toJSON(message: _95.CancelSoftwareUpgradeProposal): unknown; fromPartial(object: Partial<_95.CancelSoftwareUpgradeProposal>): _95.CancelSoftwareUpgradeProposal; @@ -9775,8 +10330,9 @@ export declare namespace cosmos { toProtoMsg(message: _95.CancelSoftwareUpgradeProposal): _95.CancelSoftwareUpgradeProposalProtoMsg; }; ModuleVersion: { - encode(message: _95.ModuleVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _95.ModuleVersion; + typeUrl: string; + encode(message: _95.ModuleVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.ModuleVersion; fromJSON(object: any): _95.ModuleVersion; toJSON(message: _95.ModuleVersion): unknown; fromPartial(object: Partial<_95.ModuleVersion>): _95.ModuleVersion; @@ -9789,8 +10345,9 @@ export declare namespace cosmos { toProtoMsg(message: _95.ModuleVersion): _95.ModuleVersionProtoMsg; }; MsgSoftwareUpgrade: { - encode(message: _94.MsgSoftwareUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _94.MsgSoftwareUpgrade; + typeUrl: string; + encode(message: _94.MsgSoftwareUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgSoftwareUpgrade; fromJSON(object: any): _94.MsgSoftwareUpgrade; toJSON(message: _94.MsgSoftwareUpgrade): unknown; fromPartial(object: Partial<_94.MsgSoftwareUpgrade>): _94.MsgSoftwareUpgrade; @@ -9803,8 +10360,9 @@ export declare namespace cosmos { toProtoMsg(message: _94.MsgSoftwareUpgrade): _94.MsgSoftwareUpgradeProtoMsg; }; MsgSoftwareUpgradeResponse: { - encode(_: _94.MsgSoftwareUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _94.MsgSoftwareUpgradeResponse; + typeUrl: string; + encode(_: _94.MsgSoftwareUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgSoftwareUpgradeResponse; fromJSON(_: any): _94.MsgSoftwareUpgradeResponse; toJSON(_: _94.MsgSoftwareUpgradeResponse): unknown; fromPartial(_: Partial<_94.MsgSoftwareUpgradeResponse>): _94.MsgSoftwareUpgradeResponse; @@ -9817,8 +10375,9 @@ export declare namespace cosmos { toProtoMsg(message: _94.MsgSoftwareUpgradeResponse): _94.MsgSoftwareUpgradeResponseProtoMsg; }; MsgCancelUpgrade: { - encode(message: _94.MsgCancelUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _94.MsgCancelUpgrade; + typeUrl: string; + encode(message: _94.MsgCancelUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgCancelUpgrade; fromJSON(object: any): _94.MsgCancelUpgrade; toJSON(message: _94.MsgCancelUpgrade): unknown; fromPartial(object: Partial<_94.MsgCancelUpgrade>): _94.MsgCancelUpgrade; @@ -9831,8 +10390,9 @@ export declare namespace cosmos { toProtoMsg(message: _94.MsgCancelUpgrade): _94.MsgCancelUpgradeProtoMsg; }; MsgCancelUpgradeResponse: { - encode(_: _94.MsgCancelUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _94.MsgCancelUpgradeResponse; + typeUrl: string; + encode(_: _94.MsgCancelUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgCancelUpgradeResponse; fromJSON(_: any): _94.MsgCancelUpgradeResponse; toJSON(_: _94.MsgCancelUpgradeResponse): unknown; fromPartial(_: Partial<_94.MsgCancelUpgradeResponse>): _94.MsgCancelUpgradeResponse; @@ -9845,8 +10405,9 @@ export declare namespace cosmos { toProtoMsg(message: _94.MsgCancelUpgradeResponse): _94.MsgCancelUpgradeResponseProtoMsg; }; QueryCurrentPlanRequest: { - encode(_: _93.QueryCurrentPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryCurrentPlanRequest; + typeUrl: string; + encode(_: _93.QueryCurrentPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryCurrentPlanRequest; fromJSON(_: any): _93.QueryCurrentPlanRequest; toJSON(_: _93.QueryCurrentPlanRequest): unknown; fromPartial(_: Partial<_93.QueryCurrentPlanRequest>): _93.QueryCurrentPlanRequest; @@ -9859,8 +10420,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryCurrentPlanRequest): _93.QueryCurrentPlanRequestProtoMsg; }; QueryCurrentPlanResponse: { - encode(message: _93.QueryCurrentPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryCurrentPlanResponse; + typeUrl: string; + encode(message: _93.QueryCurrentPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryCurrentPlanResponse; fromJSON(object: any): _93.QueryCurrentPlanResponse; toJSON(message: _93.QueryCurrentPlanResponse): unknown; fromPartial(object: Partial<_93.QueryCurrentPlanResponse>): _93.QueryCurrentPlanResponse; @@ -9873,8 +10435,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryCurrentPlanResponse): _93.QueryCurrentPlanResponseProtoMsg; }; QueryAppliedPlanRequest: { - encode(message: _93.QueryAppliedPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryAppliedPlanRequest; + typeUrl: string; + encode(message: _93.QueryAppliedPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAppliedPlanRequest; fromJSON(object: any): _93.QueryAppliedPlanRequest; toJSON(message: _93.QueryAppliedPlanRequest): unknown; fromPartial(object: Partial<_93.QueryAppliedPlanRequest>): _93.QueryAppliedPlanRequest; @@ -9887,8 +10450,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryAppliedPlanRequest): _93.QueryAppliedPlanRequestProtoMsg; }; QueryAppliedPlanResponse: { - encode(message: _93.QueryAppliedPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryAppliedPlanResponse; + typeUrl: string; + encode(message: _93.QueryAppliedPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAppliedPlanResponse; fromJSON(object: any): _93.QueryAppliedPlanResponse; toJSON(message: _93.QueryAppliedPlanResponse): unknown; fromPartial(object: Partial<_93.QueryAppliedPlanResponse>): _93.QueryAppliedPlanResponse; @@ -9901,8 +10465,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryAppliedPlanResponse): _93.QueryAppliedPlanResponseProtoMsg; }; QueryUpgradedConsensusStateRequest: { - encode(message: _93.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryUpgradedConsensusStateRequest; + typeUrl: string; + encode(message: _93.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryUpgradedConsensusStateRequest; fromJSON(object: any): _93.QueryUpgradedConsensusStateRequest; toJSON(message: _93.QueryUpgradedConsensusStateRequest): unknown; fromPartial(object: Partial<_93.QueryUpgradedConsensusStateRequest>): _93.QueryUpgradedConsensusStateRequest; @@ -9915,8 +10480,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryUpgradedConsensusStateRequest): _93.QueryUpgradedConsensusStateRequestProtoMsg; }; QueryUpgradedConsensusStateResponse: { - encode(message: _93.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryUpgradedConsensusStateResponse; + typeUrl: string; + encode(message: _93.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryUpgradedConsensusStateResponse; fromJSON(object: any): _93.QueryUpgradedConsensusStateResponse; toJSON(message: _93.QueryUpgradedConsensusStateResponse): unknown; fromPartial(object: Partial<_93.QueryUpgradedConsensusStateResponse>): _93.QueryUpgradedConsensusStateResponse; @@ -9929,8 +10495,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryUpgradedConsensusStateResponse): _93.QueryUpgradedConsensusStateResponseProtoMsg; }; QueryModuleVersionsRequest: { - encode(message: _93.QueryModuleVersionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryModuleVersionsRequest; + typeUrl: string; + encode(message: _93.QueryModuleVersionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryModuleVersionsRequest; fromJSON(object: any): _93.QueryModuleVersionsRequest; toJSON(message: _93.QueryModuleVersionsRequest): unknown; fromPartial(object: Partial<_93.QueryModuleVersionsRequest>): _93.QueryModuleVersionsRequest; @@ -9943,8 +10510,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryModuleVersionsRequest): _93.QueryModuleVersionsRequestProtoMsg; }; QueryModuleVersionsResponse: { - encode(message: _93.QueryModuleVersionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryModuleVersionsResponse; + typeUrl: string; + encode(message: _93.QueryModuleVersionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryModuleVersionsResponse; fromJSON(object: any): _93.QueryModuleVersionsResponse; toJSON(message: _93.QueryModuleVersionsResponse): unknown; fromPartial(object: Partial<_93.QueryModuleVersionsResponse>): _93.QueryModuleVersionsResponse; @@ -9957,8 +10525,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryModuleVersionsResponse): _93.QueryModuleVersionsResponseProtoMsg; }; QueryAuthorityRequest: { - encode(_: _93.QueryAuthorityRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryAuthorityRequest; + typeUrl: string; + encode(_: _93.QueryAuthorityRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAuthorityRequest; fromJSON(_: any): _93.QueryAuthorityRequest; toJSON(_: _93.QueryAuthorityRequest): unknown; fromPartial(_: Partial<_93.QueryAuthorityRequest>): _93.QueryAuthorityRequest; @@ -9971,8 +10540,9 @@ export declare namespace cosmos { toProtoMsg(message: _93.QueryAuthorityRequest): _93.QueryAuthorityRequestProtoMsg; }; QueryAuthorityResponse: { - encode(message: _93.QueryAuthorityResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _93.QueryAuthorityResponse; + typeUrl: string; + encode(message: _93.QueryAuthorityResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAuthorityResponse; fromJSON(object: any): _93.QueryAuthorityResponse; toJSON(message: _93.QueryAuthorityResponse): unknown; fromPartial(object: Partial<_93.QueryAuthorityResponse>): _93.QueryAuthorityResponse; @@ -9988,7 +10558,7 @@ export declare namespace cosmos { } namespace vesting { const v1beta1: { - MsgClientImpl: typeof _229.MsgClientImpl; + MsgClientImpl: typeof _230.MsgClientImpl; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { @@ -10081,8 +10651,9 @@ export declare namespace cosmos { }; }; BaseVestingAccount: { - encode(message: _97.BaseVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.BaseVestingAccount; + typeUrl: string; + encode(message: _97.BaseVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.BaseVestingAccount; fromJSON(object: any): _97.BaseVestingAccount; toJSON(message: _97.BaseVestingAccount): unknown; fromPartial(object: Partial<_97.BaseVestingAccount>): _97.BaseVestingAccount; @@ -10095,8 +10666,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.BaseVestingAccount): _97.BaseVestingAccountProtoMsg; }; ContinuousVestingAccount: { - encode(message: _97.ContinuousVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.ContinuousVestingAccount; + typeUrl: string; + encode(message: _97.ContinuousVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.ContinuousVestingAccount; fromJSON(object: any): _97.ContinuousVestingAccount; toJSON(message: _97.ContinuousVestingAccount): unknown; fromPartial(object: Partial<_97.ContinuousVestingAccount>): _97.ContinuousVestingAccount; @@ -10109,8 +10681,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.ContinuousVestingAccount): _97.ContinuousVestingAccountProtoMsg; }; DelayedVestingAccount: { - encode(message: _97.DelayedVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.DelayedVestingAccount; + typeUrl: string; + encode(message: _97.DelayedVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.DelayedVestingAccount; fromJSON(object: any): _97.DelayedVestingAccount; toJSON(message: _97.DelayedVestingAccount): unknown; fromPartial(object: Partial<_97.DelayedVestingAccount>): _97.DelayedVestingAccount; @@ -10123,8 +10696,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.DelayedVestingAccount): _97.DelayedVestingAccountProtoMsg; }; Period: { - encode(message: _97.Period, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.Period; + typeUrl: string; + encode(message: _97.Period, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.Period; fromJSON(object: any): _97.Period; toJSON(message: _97.Period): unknown; fromPartial(object: Partial<_97.Period>): _97.Period; @@ -10137,8 +10711,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.Period): _97.PeriodProtoMsg; }; PeriodicVestingAccount: { - encode(message: _97.PeriodicVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.PeriodicVestingAccount; + typeUrl: string; + encode(message: _97.PeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.PeriodicVestingAccount; fromJSON(object: any): _97.PeriodicVestingAccount; toJSON(message: _97.PeriodicVestingAccount): unknown; fromPartial(object: Partial<_97.PeriodicVestingAccount>): _97.PeriodicVestingAccount; @@ -10151,8 +10726,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.PeriodicVestingAccount): _97.PeriodicVestingAccountProtoMsg; }; PermanentLockedAccount: { - encode(message: _97.PermanentLockedAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _97.PermanentLockedAccount; + typeUrl: string; + encode(message: _97.PermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.PermanentLockedAccount; fromJSON(object: any): _97.PermanentLockedAccount; toJSON(message: _97.PermanentLockedAccount): unknown; fromPartial(object: Partial<_97.PermanentLockedAccount>): _97.PermanentLockedAccount; @@ -10165,8 +10741,9 @@ export declare namespace cosmos { toProtoMsg(message: _97.PermanentLockedAccount): _97.PermanentLockedAccountProtoMsg; }; MsgCreateVestingAccount: { - encode(message: _96.MsgCreateVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreateVestingAccount; + typeUrl: string; + encode(message: _96.MsgCreateVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreateVestingAccount; fromJSON(object: any): _96.MsgCreateVestingAccount; toJSON(message: _96.MsgCreateVestingAccount): unknown; fromPartial(object: Partial<_96.MsgCreateVestingAccount>): _96.MsgCreateVestingAccount; @@ -10179,8 +10756,9 @@ export declare namespace cosmos { toProtoMsg(message: _96.MsgCreateVestingAccount): _96.MsgCreateVestingAccountProtoMsg; }; MsgCreateVestingAccountResponse: { - encode(_: _96.MsgCreateVestingAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreateVestingAccountResponse; + typeUrl: string; + encode(_: _96.MsgCreateVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreateVestingAccountResponse; fromJSON(_: any): _96.MsgCreateVestingAccountResponse; toJSON(_: _96.MsgCreateVestingAccountResponse): unknown; fromPartial(_: Partial<_96.MsgCreateVestingAccountResponse>): _96.MsgCreateVestingAccountResponse; @@ -10193,8 +10771,9 @@ export declare namespace cosmos { toProtoMsg(message: _96.MsgCreateVestingAccountResponse): _96.MsgCreateVestingAccountResponseProtoMsg; }; MsgCreatePermanentLockedAccount: { - encode(message: _96.MsgCreatePermanentLockedAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreatePermanentLockedAccount; + typeUrl: string; + encode(message: _96.MsgCreatePermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePermanentLockedAccount; fromJSON(object: any): _96.MsgCreatePermanentLockedAccount; toJSON(message: _96.MsgCreatePermanentLockedAccount): unknown; fromPartial(object: Partial<_96.MsgCreatePermanentLockedAccount>): _96.MsgCreatePermanentLockedAccount; @@ -10207,8 +10786,9 @@ export declare namespace cosmos { toProtoMsg(message: _96.MsgCreatePermanentLockedAccount): _96.MsgCreatePermanentLockedAccountProtoMsg; }; MsgCreatePermanentLockedAccountResponse: { - encode(_: _96.MsgCreatePermanentLockedAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreatePermanentLockedAccountResponse; + typeUrl: string; + encode(_: _96.MsgCreatePermanentLockedAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePermanentLockedAccountResponse; fromJSON(_: any): _96.MsgCreatePermanentLockedAccountResponse; toJSON(_: _96.MsgCreatePermanentLockedAccountResponse): unknown; fromPartial(_: Partial<_96.MsgCreatePermanentLockedAccountResponse>): _96.MsgCreatePermanentLockedAccountResponse; @@ -10221,8 +10801,9 @@ export declare namespace cosmos { toProtoMsg(message: _96.MsgCreatePermanentLockedAccountResponse): _96.MsgCreatePermanentLockedAccountResponseProtoMsg; }; MsgCreatePeriodicVestingAccount: { - encode(message: _96.MsgCreatePeriodicVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccount; + typeUrl: string; + encode(message: _96.MsgCreatePeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccount; fromJSON(object: any): _96.MsgCreatePeriodicVestingAccount; toJSON(message: _96.MsgCreatePeriodicVestingAccount): unknown; fromPartial(object: Partial<_96.MsgCreatePeriodicVestingAccount>): _96.MsgCreatePeriodicVestingAccount; @@ -10235,8 +10816,9 @@ export declare namespace cosmos { toProtoMsg(message: _96.MsgCreatePeriodicVestingAccount): _96.MsgCreatePeriodicVestingAccountProtoMsg; }; MsgCreatePeriodicVestingAccountResponse: { - encode(_: _96.MsgCreatePeriodicVestingAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccountResponse; + typeUrl: string; + encode(_: _96.MsgCreatePeriodicVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccountResponse; fromJSON(_: any): _96.MsgCreatePeriodicVestingAccountResponse; toJSON(_: _96.MsgCreatePeriodicVestingAccountResponse): unknown; fromPartial(_: Partial<_96.MsgCreatePeriodicVestingAccountResponse>): _96.MsgCreatePeriodicVestingAccountResponse; @@ -10256,44 +10838,44 @@ export declare namespace cosmos { }) => Promise<{ cosmos: { authz: { - v1beta1: _216.MsgClientImpl; + v1beta1: _217.MsgClientImpl; }; bank: { - v1beta1: _217.MsgClientImpl; + v1beta1: _218.MsgClientImpl; }; crisis: { - v1beta1: _218.MsgClientImpl; + v1beta1: _219.MsgClientImpl; }; distribution: { - v1beta1: _219.MsgClientImpl; + v1beta1: _220.MsgClientImpl; }; evidence: { - v1beta1: _220.MsgClientImpl; + v1beta1: _221.MsgClientImpl; }; feegrant: { - v1beta1: _221.MsgClientImpl; + v1beta1: _222.MsgClientImpl; }; gov: { - v1: _222.MsgClientImpl; - v1beta1: _223.MsgClientImpl; + v1: _223.MsgClientImpl; + v1beta1: _224.MsgClientImpl; }; group: { - v1: _224.MsgClientImpl; + v1: _225.MsgClientImpl; }; nft: { - v1beta1: _225.MsgClientImpl; + v1beta1: _226.MsgClientImpl; }; slashing: { - v1beta1: _226.MsgClientImpl; + v1beta1: _227.MsgClientImpl; }; staking: { - v1beta1: _227.MsgClientImpl; + v1beta1: _228.MsgClientImpl; }; upgrade: { - v1beta1: _228.MsgClientImpl; + v1beta1: _229.MsgClientImpl; }; vesting: { - v1beta1: _229.MsgClientImpl; + v1beta1: _230.MsgClientImpl; }; }; }>; @@ -10496,58 +11078,58 @@ export declare namespace cosmos { }) => Promise<{ cosmos: { auth: { - v1beta1: _179.LCDQueryClient; + v1beta1: _180.LCDQueryClient; }; authz: { - v1beta1: _180.LCDQueryClient; + v1beta1: _181.LCDQueryClient; }; bank: { - v1beta1: _181.LCDQueryClient; + v1beta1: _182.LCDQueryClient; }; base: { node: { - v1beta1: _182.LCDQueryClient; + v1beta1: _183.LCDQueryClient; }; tendermint: { - v1beta1: _183.LCDQueryClient; + v1beta1: _184.LCDQueryClient; }; }; distribution: { - v1beta1: _184.LCDQueryClient; + v1beta1: _185.LCDQueryClient; }; evidence: { - v1beta1: _185.LCDQueryClient; + v1beta1: _186.LCDQueryClient; }; feegrant: { - v1beta1: _186.LCDQueryClient; + v1beta1: _187.LCDQueryClient; }; gov: { - v1: _187.LCDQueryClient; - v1beta1: _188.LCDQueryClient; + v1: _188.LCDQueryClient; + v1beta1: _189.LCDQueryClient; }; group: { - v1: _189.LCDQueryClient; + v1: _190.LCDQueryClient; }; mint: { - v1beta1: _190.LCDQueryClient; + v1beta1: _191.LCDQueryClient; }; nft: { - v1beta1: _191.LCDQueryClient; + v1beta1: _192.LCDQueryClient; }; params: { - v1beta1: _192.LCDQueryClient; + v1beta1: _193.LCDQueryClient; }; slashing: { - v1beta1: _193.LCDQueryClient; + v1beta1: _194.LCDQueryClient; }; staking: { - v1beta1: _194.LCDQueryClient; + v1beta1: _195.LCDQueryClient; }; tx: { - v1beta1: _195.LCDQueryClient; + v1beta1: _196.LCDQueryClient; }; upgrade: { - v1beta1: _196.LCDQueryClient; + v1beta1: _197.LCDQueryClient; }; }; }>; diff --git a/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts b/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts index 4f17a08e..4fab7db1 100644 --- a/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts +++ b/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts @@ -1,11 +1,10 @@ -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * Capability defines an implementation of an object capability. The index * provided to a Capability must be globally unique. */ export interface Capability { - index: Long; + index: bigint; } export interface CapabilityProtoMsg { typeUrl: "/cosmos.capability.v1beta1.Capability"; @@ -16,7 +15,7 @@ export interface CapabilityProtoMsg { * provided to a Capability must be globally unique. */ export interface CapabilityAmino { - index: string; + index?: string; } export interface CapabilityAminoMsg { type: "cosmos-sdk/Capability"; @@ -27,7 +26,7 @@ export interface CapabilityAminoMsg { * provided to a Capability must be globally unique. */ export interface CapabilitySDKType { - index: Long; + index: bigint; } /** * Owner defines a single capability owner. An owner is defined by the name of @@ -46,8 +45,8 @@ export interface OwnerProtoMsg { * capability and the module name. */ export interface OwnerAmino { - module: string; - name: string; + module?: string; + name?: string; } export interface OwnerAminoMsg { type: "cosmos-sdk/Owner"; @@ -77,7 +76,7 @@ export interface CapabilityOwnersProtoMsg { * owners must be unique. */ export interface CapabilityOwnersAmino { - owners: OwnerAmino[]; + owners?: OwnerAmino[]; } export interface CapabilityOwnersAminoMsg { type: "cosmos-sdk/CapabilityOwners"; @@ -91,8 +90,9 @@ export interface CapabilityOwnersSDKType { owners: OwnerSDKType[]; } export declare const Capability: { - encode(message: Capability, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Capability; + typeUrl: string; + encode(message: Capability, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Capability; fromJSON(object: any): Capability; toJSON(message: Capability): unknown; fromPartial(object: Partial): Capability; @@ -105,8 +105,9 @@ export declare const Capability: { toProtoMsg(message: Capability): CapabilityProtoMsg; }; export declare const Owner: { - encode(message: Owner, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Owner; + typeUrl: string; + encode(message: Owner, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Owner; fromJSON(object: any): Owner; toJSON(message: Owner): unknown; fromPartial(object: Partial): Owner; @@ -119,8 +120,9 @@ export declare const Owner: { toProtoMsg(message: Owner): OwnerProtoMsg; }; export declare const CapabilityOwners: { - encode(message: CapabilityOwners, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CapabilityOwners; + typeUrl: string; + encode(message: CapabilityOwners, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CapabilityOwners; fromJSON(object: any): CapabilityOwners; toJSON(message: CapabilityOwners): unknown; fromPartial(object: Partial): CapabilityOwners; diff --git a/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts index 2ea94a91..bb72a0e5 100644 --- a/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts @@ -1,10 +1,9 @@ import { CapabilityOwners, CapabilityOwnersAmino, CapabilityOwnersSDKType } from "./capability"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisOwners defines the capability owners with their corresponding index. */ export interface GenesisOwners { /** index is the index of the capability owner. */ - index: Long; + index: bigint; /** index_owners are the owners at the given index. */ indexOwners: CapabilityOwners; } @@ -15,7 +14,7 @@ export interface GenesisOwnersProtoMsg { /** GenesisOwners defines the capability owners with their corresponding index. */ export interface GenesisOwnersAmino { /** index is the index of the capability owner. */ - index: string; + index?: string; /** index_owners are the owners at the given index. */ index_owners?: CapabilityOwnersAmino; } @@ -25,13 +24,13 @@ export interface GenesisOwnersAminoMsg { } /** GenesisOwners defines the capability owners with their corresponding index. */ export interface GenesisOwnersSDKType { - index: Long; + index: bigint; index_owners: CapabilityOwnersSDKType; } /** GenesisState defines the capability module's genesis state. */ export interface GenesisState { /** index is the capability global index. */ - index: Long; + index: bigint; /** * owners represents a map from index to owners of the capability index * index key is string to allow amino marshalling. @@ -45,12 +44,12 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the capability module's genesis state. */ export interface GenesisStateAmino { /** index is the capability global index. */ - index: string; + index?: string; /** * owners represents a map from index to owners of the capability index * index key is string to allow amino marshalling. */ - owners: GenesisOwnersAmino[]; + owners?: GenesisOwnersAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -58,12 +57,13 @@ export interface GenesisStateAminoMsg { } /** GenesisState defines the capability module's genesis state. */ export interface GenesisStateSDKType { - index: Long; + index: bigint; owners: GenesisOwnersSDKType[]; } export declare const GenesisOwners: { - encode(message: GenesisOwners, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisOwners; + typeUrl: string; + encode(message: GenesisOwners, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisOwners; fromJSON(object: any): GenesisOwners; toJSON(message: GenesisOwners): unknown; fromPartial(object: Partial): GenesisOwners; @@ -76,8 +76,9 @@ export declare const GenesisOwners: { toProtoMsg(message: GenesisOwners): GenesisOwnersProtoMsg; }; export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts index 35471f48..c4fb3c16 100644 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the crisis module's genesis state. */ export interface GenesisState { /** @@ -29,8 +29,9 @@ export interface GenesisStateSDKType { constant_fee: CoinSDKType; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts index 524f9af7..3d284d69 100644 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgVerifyInvariant represents a message to verify a particular invariance. */ export interface MsgVerifyInvariant { sender: string; @@ -11,9 +11,9 @@ export interface MsgVerifyInvariantProtoMsg { } /** MsgVerifyInvariant represents a message to verify a particular invariance. */ export interface MsgVerifyInvariantAmino { - sender: string; - invariant_module_name: string; - invariant_route: string; + sender?: string; + invariant_module_name?: string; + invariant_route?: string; } export interface MsgVerifyInvariantAminoMsg { type: "cosmos-sdk/MsgVerifyInvariant"; @@ -43,8 +43,9 @@ export interface MsgVerifyInvariantResponseAminoMsg { export interface MsgVerifyInvariantResponseSDKType { } export declare const MsgVerifyInvariant: { - encode(message: MsgVerifyInvariant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariant; + typeUrl: string; + encode(message: MsgVerifyInvariant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariant; fromJSON(object: any): MsgVerifyInvariant; toJSON(message: MsgVerifyInvariant): unknown; fromPartial(object: Partial): MsgVerifyInvariant; @@ -57,8 +58,9 @@ export declare const MsgVerifyInvariant: { toProtoMsg(message: MsgVerifyInvariant): MsgVerifyInvariantProtoMsg; }; export declare const MsgVerifyInvariantResponse: { - encode(_: MsgVerifyInvariantResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariantResponse; + typeUrl: string; + encode(_: MsgVerifyInvariantResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariantResponse; fromJSON(_: any): MsgVerifyInvariantResponse; toJSON(_: MsgVerifyInvariantResponse): unknown; fromPartial(_: Partial): MsgVerifyInvariantResponse; diff --git a/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts index 25d47571..d73f0206 100644 --- a/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * PubKey is an ed25519 public key for handling Tendermint keys in SDK. * It's needed for Any serialization and SDK compatibility. @@ -21,7 +21,7 @@ export interface PubKeyProtoMsg { * then you must create a new proto message and follow ADR-28 for Address construction. */ export interface PubKeyAmino { - key: Uint8Array; + key?: string; } export interface PubKeyAminoMsg { type: "cosmos-sdk/PubKey"; @@ -53,7 +53,7 @@ export interface PrivKeyProtoMsg { * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. */ export interface PrivKeyAmino { - key: Uint8Array; + key?: string; } export interface PrivKeyAminoMsg { type: "cosmos-sdk/PrivKey"; @@ -67,8 +67,9 @@ export interface PrivKeySDKType { key: Uint8Array; } export declare const PubKey: { - encode(message: PubKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PubKey; + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; fromJSON(object: any): PubKey; toJSON(message: PubKey): unknown; fromPartial(object: Partial): PubKey; @@ -81,8 +82,9 @@ export declare const PubKey: { toProtoMsg(message: PubKey): PubKeyProtoMsg; }; export declare const PrivKey: { - encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey; + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; fromJSON(object: any): PrivKey; toJSON(message: PrivKey): unknown; fromPartial(object: Partial): PrivKey; diff --git a/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts b/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts index 87c80e63..abdb6cf6 100644 --- a/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** BIP44Params is used as path field in ledger item in Record. */ export interface BIP44Params { /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ @@ -22,18 +22,18 @@ export interface BIP44ParamsProtoMsg { /** BIP44Params is used as path field in ledger item in Record. */ export interface BIP44ParamsAmino { /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; + purpose?: number; /** coin_type is a constant that improves privacy */ - coin_type: number; + coin_type?: number; /** account splits the key space into independent user identities */ - account: number; + account?: number; /** * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal * chain. */ - change: boolean; + change?: boolean; /** address_index is used as child index in BIP32 derivation */ - address_index: number; + address_index?: number; } export interface BIP44ParamsAminoMsg { type: "cosmos-sdk/BIP44Params"; @@ -48,8 +48,9 @@ export interface BIP44ParamsSDKType { address_index: number; } export declare const BIP44Params: { - encode(message: BIP44Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BIP44Params; + typeUrl: string; + encode(message: BIP44Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params; fromJSON(object: any): BIP44Params; toJSON(message: BIP44Params): unknown; fromPartial(object: Partial): BIP44Params; diff --git a/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts b/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts index 739e33af..20387d4e 100644 --- a/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts @@ -1,12 +1,12 @@ import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** Record is used for representing a key in the keyring. */ export interface Record { /** name represents a name of Record */ name: string; /** pub_key represents a public key in any format */ - pubKey: Any; + pubKey?: Any; /** local stores the private key locally. */ local?: Record_Local; /** ledger stores the information about a Ledger key. */ @@ -23,7 +23,7 @@ export interface RecordProtoMsg { /** Record is used for representing a key in the keyring. */ export interface RecordAmino { /** name represents a name of Record */ - name: string; + name?: string; /** pub_key represents a public key in any format */ pub_key?: AnyAmino; /** local stores the private key locally. */ @@ -42,7 +42,7 @@ export interface RecordAminoMsg { /** Record is used for representing a key in the keyring. */ export interface RecordSDKType { name: string; - pub_key: AnySDKType; + pub_key?: AnySDKType; local?: Record_LocalSDKType; ledger?: Record_LedgerSDKType; multi?: Record_MultiSDKType; @@ -53,7 +53,7 @@ export interface RecordSDKType { * Local item */ export interface Record_Local { - privKey: Any; + privKey?: Any; } export interface Record_LocalProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Local"; @@ -75,11 +75,11 @@ export interface Record_LocalAminoMsg { * Local item */ export interface Record_LocalSDKType { - priv_key: AnySDKType; + priv_key?: AnySDKType; } /** Ledger item */ export interface Record_Ledger { - path: BIP44Params; + path?: BIP44Params; } export interface Record_LedgerProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; @@ -95,7 +95,7 @@ export interface Record_LedgerAminoMsg { } /** Ledger item */ export interface Record_LedgerSDKType { - path: BIP44ParamsSDKType; + path?: BIP44ParamsSDKType; } /** Multi item */ export interface Record_Multi { @@ -132,8 +132,9 @@ export interface Record_OfflineAminoMsg { export interface Record_OfflineSDKType { } export declare const Record: { - encode(message: Record, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Record; + typeUrl: string; + encode(message: Record, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record; fromJSON(object: any): Record; toJSON(message: Record): unknown; fromPartial(object: Partial): Record; @@ -146,8 +147,9 @@ export declare const Record: { toProtoMsg(message: Record): RecordProtoMsg; }; export declare const Record_Local: { - encode(message: Record_Local, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Record_Local; + typeUrl: string; + encode(message: Record_Local, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Local; fromJSON(object: any): Record_Local; toJSON(message: Record_Local): unknown; fromPartial(object: Partial): Record_Local; @@ -160,8 +162,9 @@ export declare const Record_Local: { toProtoMsg(message: Record_Local): Record_LocalProtoMsg; }; export declare const Record_Ledger: { - encode(message: Record_Ledger, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Record_Ledger; + typeUrl: string; + encode(message: Record_Ledger, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger; fromJSON(object: any): Record_Ledger; toJSON(message: Record_Ledger): unknown; fromPartial(object: Partial): Record_Ledger; @@ -174,8 +177,9 @@ export declare const Record_Ledger: { toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg; }; export declare const Record_Multi: { - encode(_: Record_Multi, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Record_Multi; + typeUrl: string; + encode(_: Record_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi; fromJSON(_: any): Record_Multi; toJSON(_: Record_Multi): unknown; fromPartial(_: Partial): Record_Multi; @@ -188,8 +192,9 @@ export declare const Record_Multi: { toProtoMsg(message: Record_Multi): Record_MultiProtoMsg; }; export declare const Record_Offline: { - encode(_: Record_Offline, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Record_Offline; + typeUrl: string; + encode(_: Record_Offline, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline; fromJSON(_: any): Record_Offline; toJSON(_: Record_Offline): unknown; fromPartial(_: Partial): Record_Offline; diff --git a/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts index f05579bd..7040c3c6 100644 --- a/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * LegacyAminoPubKey specifies a public key type * which nests multiple public keys and a threshold, @@ -19,8 +19,8 @@ export interface LegacyAminoPubKeyProtoMsg { * it uses legacy amino address rules. */ export interface LegacyAminoPubKeyAmino { - threshold: number; - public_keys: AnyAmino[]; + threshold?: number; + public_keys?: AnyAmino[]; } export interface LegacyAminoPubKeyAminoMsg { type: "cosmos-sdk/LegacyAminoPubKey"; @@ -36,8 +36,9 @@ export interface LegacyAminoPubKeySDKType { public_keys: AnySDKType[]; } export declare const LegacyAminoPubKey: { - encode(message: LegacyAminoPubKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LegacyAminoPubKey; + typeUrl: string; + encode(message: LegacyAminoPubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey; fromJSON(object: any): LegacyAminoPubKey; toJSON(message: LegacyAminoPubKey): unknown; fromPartial(object: Partial): LegacyAminoPubKey; diff --git a/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts b/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts index 8dc6d875..ff331316 100644 --- a/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers @@ -17,7 +17,7 @@ export interface MultiSignatureProtoMsg { * signed and with which modes. */ export interface MultiSignatureAmino { - signatures: Uint8Array[]; + signatures?: string[]; } export interface MultiSignatureAminoMsg { type: "cosmos-sdk/MultiSignature"; @@ -52,8 +52,8 @@ export interface CompactBitArrayProtoMsg { * This is not thread safe, and is not intended for concurrent usage. */ export interface CompactBitArrayAmino { - extra_bits_stored: number; - elems: Uint8Array; + extra_bits_stored?: number; + elems?: string; } export interface CompactBitArrayAminoMsg { type: "cosmos-sdk/CompactBitArray"; @@ -70,8 +70,9 @@ export interface CompactBitArraySDKType { elems: Uint8Array; } export declare const MultiSignature: { - encode(message: MultiSignature, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MultiSignature; + typeUrl: string; + encode(message: MultiSignature, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature; fromJSON(object: any): MultiSignature; toJSON(message: MultiSignature): unknown; fromPartial(object: Partial): MultiSignature; @@ -84,8 +85,9 @@ export declare const MultiSignature: { toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg; }; export declare const CompactBitArray: { - encode(message: CompactBitArray, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CompactBitArray; + typeUrl: string; + encode(message: CompactBitArray, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray; fromJSON(object: any): CompactBitArray; toJSON(message: CompactBitArray): unknown; fromPartial(object: Partial): CompactBitArray; diff --git a/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts index f7808e9c..726a5ed4 100644 --- a/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * PubKey defines a secp256k1 public key * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte @@ -21,7 +21,7 @@ export interface PubKeyProtoMsg { * This prefix is followed with the x-coordinate. */ export interface PubKeyAmino { - key: Uint8Array; + key?: string; } export interface PubKeyAminoMsg { type: "cosmos-sdk/PubKey"; @@ -47,7 +47,7 @@ export interface PrivKeyProtoMsg { } /** PrivKey defines a secp256k1 private key. */ export interface PrivKeyAmino { - key: Uint8Array; + key?: string; } export interface PrivKeyAminoMsg { type: "cosmos-sdk/PrivKey"; @@ -58,8 +58,9 @@ export interface PrivKeySDKType { key: Uint8Array; } export declare const PubKey: { - encode(message: PubKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PubKey; + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; fromJSON(object: any): PubKey; toJSON(message: PubKey): unknown; fromPartial(object: Partial): PubKey; @@ -72,8 +73,9 @@ export declare const PubKey: { toProtoMsg(message: PubKey): PubKeyProtoMsg; }; export declare const PrivKey: { - encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey; + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; fromJSON(object: any): PrivKey; toJSON(message: PrivKey): unknown; fromPartial(object: Partial): PrivKey; diff --git a/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts index c6694689..c1299cf9 100644 --- a/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +++ b/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** PubKey defines a secp256r1 ECDSA public key. */ export interface PubKey { /** @@ -17,7 +17,7 @@ export interface PubKeyAmino { * Point on secp256r1 curve in a compressed representation as specified in section * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 */ - key: Uint8Array; + key?: string; } export interface PubKeyAminoMsg { type: "cosmos-sdk/PubKey"; @@ -39,7 +39,7 @@ export interface PrivKeyProtoMsg { /** PrivKey defines a secp256r1 ECDSA private key. */ export interface PrivKeyAmino { /** secret number serialized using big-endian encoding */ - secret: Uint8Array; + secret?: string; } export interface PrivKeyAminoMsg { type: "cosmos-sdk/PrivKey"; @@ -50,8 +50,9 @@ export interface PrivKeySDKType { secret: Uint8Array; } export declare const PubKey: { - encode(message: PubKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PubKey; + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; fromJSON(object: any): PubKey; toJSON(message: PubKey): unknown; fromPartial(object: Partial): PubKey; @@ -64,8 +65,9 @@ export declare const PubKey: { toProtoMsg(message: PubKey): PubKeyProtoMsg; }; export declare const PrivKey: { - encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey; + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; fromJSON(object: any): PrivKey; toJSON(message: PrivKey): unknown; fromPartial(object: Partial): PrivKey; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts index f46d355a..bae33e13 100644 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +++ b/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts @@ -1,6 +1,5 @@ import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Params defines the set of params for the distribution module. */ export interface Params { communityTax: string; @@ -14,10 +13,10 @@ export interface ParamsProtoMsg { } /** Params defines the set of params for the distribution module. */ export interface ParamsAmino { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -67,8 +66,8 @@ export interface ValidatorHistoricalRewardsProtoMsg { * + one per validator for the zeroeth period, set on initialization */ export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio: DecCoinAmino[]; - reference_count: number; + cumulative_reward_ratio?: DecCoinAmino[]; + reference_count?: number; } export interface ValidatorHistoricalRewardsAminoMsg { type: "cosmos-sdk/ValidatorHistoricalRewards"; @@ -99,7 +98,7 @@ export interface ValidatorHistoricalRewardsSDKType { */ export interface ValidatorCurrentRewards { rewards: DecCoin[]; - period: Long; + period: bigint; } export interface ValidatorCurrentRewardsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; @@ -111,8 +110,8 @@ export interface ValidatorCurrentRewardsProtoMsg { * each block as long as the validator's tokens remain constant. */ export interface ValidatorCurrentRewardsAmino { - rewards: DecCoinAmino[]; - period: string; + rewards?: DecCoinAmino[]; + period?: string; } export interface ValidatorCurrentRewardsAminoMsg { type: "cosmos-sdk/ValidatorCurrentRewards"; @@ -125,7 +124,7 @@ export interface ValidatorCurrentRewardsAminoMsg { */ export interface ValidatorCurrentRewardsSDKType { rewards: DecCoinSDKType[]; - period: Long; + period: bigint; } /** * ValidatorAccumulatedCommission represents accumulated commission @@ -143,7 +142,7 @@ export interface ValidatorAccumulatedCommissionProtoMsg { * for a validator kept as a running counter, can be withdrawn at any time. */ export interface ValidatorAccumulatedCommissionAmino { - commission: DecCoinAmino[]; + commission?: DecCoinAmino[]; } export interface ValidatorAccumulatedCommissionAminoMsg { type: "cosmos-sdk/ValidatorAccumulatedCommission"; @@ -172,7 +171,7 @@ export interface ValidatorOutstandingRewardsProtoMsg { * for a validator inexpensive to track, allows simple sanity checks. */ export interface ValidatorOutstandingRewardsAmino { - rewards: DecCoinAmino[]; + rewards?: DecCoinAmino[]; } export interface ValidatorOutstandingRewardsAminoMsg { type: "cosmos-sdk/ValidatorOutstandingRewards"; @@ -192,7 +191,7 @@ export interface ValidatorOutstandingRewardsSDKType { * for delegations which are withdrawn after a slash has occurred. */ export interface ValidatorSlashEvent { - validatorPeriod: Long; + validatorPeriod: bigint; fraction: string; } export interface ValidatorSlashEventProtoMsg { @@ -206,8 +205,8 @@ export interface ValidatorSlashEventProtoMsg { * for delegations which are withdrawn after a slash has occurred. */ export interface ValidatorSlashEventAmino { - validator_period: string; - fraction: string; + validator_period?: string; + fraction?: string; } export interface ValidatorSlashEventAminoMsg { type: "cosmos-sdk/ValidatorSlashEvent"; @@ -220,7 +219,7 @@ export interface ValidatorSlashEventAminoMsg { * for delegations which are withdrawn after a slash has occurred. */ export interface ValidatorSlashEventSDKType { - validator_period: Long; + validator_period: bigint; fraction: string; } /** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ @@ -233,7 +232,7 @@ export interface ValidatorSlashEventsProtoMsg { } /** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ export interface ValidatorSlashEventsAmino { - validator_slash_events: ValidatorSlashEventAmino[]; + validator_slash_events?: ValidatorSlashEventAmino[]; } export interface ValidatorSlashEventsAminoMsg { type: "cosmos-sdk/ValidatorSlashEvents"; @@ -253,7 +252,7 @@ export interface FeePoolProtoMsg { } /** FeePool is the global fee pool for distribution. */ export interface FeePoolAmino { - community_pool: DecCoinAmino[]; + community_pool?: DecCoinAmino[]; } export interface FeePoolAminoMsg { type: "cosmos-sdk/FeePool"; @@ -269,7 +268,7 @@ export interface FeePoolSDKType { * recipient account. */ export interface CommunityPoolSpendProposal { - $typeUrl?: string; + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; title: string; description: string; recipient: string; @@ -285,10 +284,10 @@ export interface CommunityPoolSpendProposalProtoMsg { * recipient account. */ export interface CommunityPoolSpendProposalAmino { - title: string; - description: string; - recipient: string; - amount: CoinAmino[]; + title?: string; + description?: string; + recipient?: string; + amount?: CoinAmino[]; } export interface CommunityPoolSpendProposalAminoMsg { type: "cosmos-sdk/CommunityPoolSpendProposal"; @@ -300,7 +299,7 @@ export interface CommunityPoolSpendProposalAminoMsg { * recipient account. */ export interface CommunityPoolSpendProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; title: string; description: string; recipient: string; @@ -315,9 +314,9 @@ export interface CommunityPoolSpendProposalSDKType { * thus sdk.Dec is used. */ export interface DelegatorStartingInfo { - previousPeriod: Long; + previousPeriod: bigint; stake: string; - height: Long; + height: bigint; } export interface DelegatorStartingInfoProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; @@ -332,8 +331,8 @@ export interface DelegatorStartingInfoProtoMsg { * thus sdk.Dec is used. */ export interface DelegatorStartingInfoAmino { - previous_period: string; - stake: string; + previous_period?: string; + stake?: string; height: string; } export interface DelegatorStartingInfoAminoMsg { @@ -349,9 +348,9 @@ export interface DelegatorStartingInfoAminoMsg { * thus sdk.Dec is used. */ export interface DelegatorStartingInfoSDKType { - previous_period: Long; + previous_period: bigint; stake: string; - height: Long; + height: bigint; } /** * DelegationDelegatorReward represents the properties @@ -370,8 +369,8 @@ export interface DelegationDelegatorRewardProtoMsg { * of a delegator's delegation reward. */ export interface DelegationDelegatorRewardAmino { - validator_address: string; - reward: DecCoinAmino[]; + validator_address?: string; + reward?: DecCoinAmino[]; } export interface DelegationDelegatorRewardAminoMsg { type: "cosmos-sdk/DelegationDelegatorReward"; @@ -390,7 +389,7 @@ export interface DelegationDelegatorRewardSDKType { * with a deposit */ export interface CommunityPoolSpendProposalWithDeposit { - $typeUrl?: string; + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; title: string; description: string; recipient: string; @@ -406,11 +405,11 @@ export interface CommunityPoolSpendProposalWithDepositProtoMsg { * with a deposit */ export interface CommunityPoolSpendProposalWithDepositAmino { - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; + title?: string; + description?: string; + recipient?: string; + amount?: string; + deposit?: string; } export interface CommunityPoolSpendProposalWithDepositAminoMsg { type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; @@ -421,7 +420,7 @@ export interface CommunityPoolSpendProposalWithDepositAminoMsg { * with a deposit */ export interface CommunityPoolSpendProposalWithDepositSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; title: string; description: string; recipient: string; @@ -429,8 +428,9 @@ export interface CommunityPoolSpendProposalWithDepositSDKType { deposit: string; } export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; @@ -443,8 +443,9 @@ export declare const Params: { toProtoMsg(message: Params): ParamsProtoMsg; }; export declare const ValidatorHistoricalRewards: { - encode(message: ValidatorHistoricalRewards, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewards; + typeUrl: string; + encode(message: ValidatorHistoricalRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards; fromJSON(object: any): ValidatorHistoricalRewards; toJSON(message: ValidatorHistoricalRewards): unknown; fromPartial(object: Partial): ValidatorHistoricalRewards; @@ -457,8 +458,9 @@ export declare const ValidatorHistoricalRewards: { toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg; }; export declare const ValidatorCurrentRewards: { - encode(message: ValidatorCurrentRewards, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewards; + typeUrl: string; + encode(message: ValidatorCurrentRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards; fromJSON(object: any): ValidatorCurrentRewards; toJSON(message: ValidatorCurrentRewards): unknown; fromPartial(object: Partial): ValidatorCurrentRewards; @@ -471,8 +473,9 @@ export declare const ValidatorCurrentRewards: { toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg; }; export declare const ValidatorAccumulatedCommission: { - encode(message: ValidatorAccumulatedCommission, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommission; + typeUrl: string; + encode(message: ValidatorAccumulatedCommission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission; fromJSON(object: any): ValidatorAccumulatedCommission; toJSON(message: ValidatorAccumulatedCommission): unknown; fromPartial(object: Partial): ValidatorAccumulatedCommission; @@ -485,8 +488,9 @@ export declare const ValidatorAccumulatedCommission: { toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg; }; export declare const ValidatorOutstandingRewards: { - encode(message: ValidatorOutstandingRewards, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewards; + typeUrl: string; + encode(message: ValidatorOutstandingRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards; fromJSON(object: any): ValidatorOutstandingRewards; toJSON(message: ValidatorOutstandingRewards): unknown; fromPartial(object: Partial): ValidatorOutstandingRewards; @@ -499,8 +503,9 @@ export declare const ValidatorOutstandingRewards: { toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg; }; export declare const ValidatorSlashEvent: { - encode(message: ValidatorSlashEvent, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvent; + typeUrl: string; + encode(message: ValidatorSlashEvent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent; fromJSON(object: any): ValidatorSlashEvent; toJSON(message: ValidatorSlashEvent): unknown; fromPartial(object: Partial): ValidatorSlashEvent; @@ -513,8 +518,9 @@ export declare const ValidatorSlashEvent: { toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg; }; export declare const ValidatorSlashEvents: { - encode(message: ValidatorSlashEvents, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvents; + typeUrl: string; + encode(message: ValidatorSlashEvents, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents; fromJSON(object: any): ValidatorSlashEvents; toJSON(message: ValidatorSlashEvents): unknown; fromPartial(object: Partial): ValidatorSlashEvents; @@ -527,8 +533,9 @@ export declare const ValidatorSlashEvents: { toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg; }; export declare const FeePool: { - encode(message: FeePool, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FeePool; + typeUrl: string; + encode(message: FeePool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FeePool; fromJSON(object: any): FeePool; toJSON(message: FeePool): unknown; fromPartial(object: Partial): FeePool; @@ -541,8 +548,9 @@ export declare const FeePool: { toProtoMsg(message: FeePool): FeePoolProtoMsg; }; export declare const CommunityPoolSpendProposal: { - encode(message: CommunityPoolSpendProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposal; + typeUrl: string; + encode(message: CommunityPoolSpendProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal; fromJSON(object: any): CommunityPoolSpendProposal; toJSON(message: CommunityPoolSpendProposal): unknown; fromPartial(object: Partial): CommunityPoolSpendProposal; @@ -555,8 +563,9 @@ export declare const CommunityPoolSpendProposal: { toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg; }; export declare const DelegatorStartingInfo: { - encode(message: DelegatorStartingInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfo; + typeUrl: string; + encode(message: DelegatorStartingInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo; fromJSON(object: any): DelegatorStartingInfo; toJSON(message: DelegatorStartingInfo): unknown; fromPartial(object: Partial): DelegatorStartingInfo; @@ -569,8 +578,9 @@ export declare const DelegatorStartingInfo: { toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg; }; export declare const DelegationDelegatorReward: { - encode(message: DelegationDelegatorReward, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelegationDelegatorReward; + typeUrl: string; + encode(message: DelegationDelegatorReward, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward; fromJSON(object: any): DelegationDelegatorReward; toJSON(message: DelegationDelegatorReward): unknown; fromPartial(object: Partial): DelegationDelegatorReward; @@ -583,8 +593,9 @@ export declare const DelegationDelegatorReward: { toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg; }; export declare const CommunityPoolSpendProposalWithDeposit: { - encode(message: CommunityPoolSpendProposalWithDeposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; + typeUrl: string; + encode(message: CommunityPoolSpendProposalWithDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; fromJSON(object: any): CommunityPoolSpendProposalWithDeposit; toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown; fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts index 39e36b4f..143a210a 100644 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts @@ -1,7 +1,6 @@ import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * DelegatorWithdrawInfo is the address for where distributions rewards are * withdrawn to by default this struct is only used at genesis to feed in @@ -24,9 +23,9 @@ export interface DelegatorWithdrawInfoProtoMsg { */ export interface DelegatorWithdrawInfoAmino { /** delegator_address is the address of the delegator. */ - delegator_address: string; + delegator_address?: string; /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address: string; + withdraw_address?: string; } export interface DelegatorWithdrawInfoAminoMsg { type: "cosmos-sdk/DelegatorWithdrawInfo"; @@ -55,9 +54,9 @@ export interface ValidatorOutstandingRewardsRecordProtoMsg { /** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ export interface ValidatorOutstandingRewardsRecordAmino { /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards: DecCoinAmino[]; + outstanding_rewards?: DecCoinAmino[]; } export interface ValidatorOutstandingRewardsRecordAminoMsg { type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; @@ -88,7 +87,7 @@ export interface ValidatorAccumulatedCommissionRecordProtoMsg { */ export interface ValidatorAccumulatedCommissionRecordAmino { /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** accumulated is the accumulated commission of a validator. */ accumulated?: ValidatorAccumulatedCommissionAmino; } @@ -112,7 +111,7 @@ export interface ValidatorHistoricalRewardsRecord { /** validator_address is the address of the validator. */ validatorAddress: string; /** period defines the period the historical rewards apply to. */ - period: Long; + period: bigint; /** rewards defines the historical rewards of a validator. */ rewards: ValidatorHistoricalRewards; } @@ -126,9 +125,9 @@ export interface ValidatorHistoricalRewardsRecordProtoMsg { */ export interface ValidatorHistoricalRewardsRecordAmino { /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** period defines the period the historical rewards apply to. */ - period: string; + period?: string; /** rewards defines the historical rewards of a validator. */ rewards?: ValidatorHistoricalRewardsAmino; } @@ -142,7 +141,7 @@ export interface ValidatorHistoricalRewardsRecordAminoMsg { */ export interface ValidatorHistoricalRewardsRecordSDKType { validator_address: string; - period: Long; + period: bigint; rewards: ValidatorHistoricalRewardsSDKType; } /** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ @@ -159,7 +158,7 @@ export interface ValidatorCurrentRewardsRecordProtoMsg { /** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ export interface ValidatorCurrentRewardsRecordAmino { /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** rewards defines the current rewards of a validator. */ rewards?: ValidatorCurrentRewardsAmino; } @@ -188,9 +187,9 @@ export interface DelegatorStartingInfoRecordProtoMsg { /** DelegatorStartingInfoRecord used for import / export via genesis json. */ export interface DelegatorStartingInfoRecordAmino { /** delegator_address is the address of the delegator. */ - delegator_address: string; + delegator_address?: string; /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** starting_info defines the starting info of a delegator. */ starting_info?: DelegatorStartingInfoAmino; } @@ -209,9 +208,9 @@ export interface ValidatorSlashEventRecord { /** validator_address is the address of the validator. */ validatorAddress: string; /** height defines the block height at which the slash event occured. */ - height: Long; + height: bigint; /** period is the period of the slash event. */ - period: Long; + period: bigint; /** validator_slash_event describes the slash event. */ validatorSlashEvent: ValidatorSlashEvent; } @@ -222,11 +221,11 @@ export interface ValidatorSlashEventRecordProtoMsg { /** ValidatorSlashEventRecord is used for import / export via genesis json. */ export interface ValidatorSlashEventRecordAmino { /** validator_address is the address of the validator. */ - validator_address: string; + validator_address?: string; /** height defines the block height at which the slash event occured. */ - height: string; + height?: string; /** period is the period of the slash event. */ - period: string; + period?: string; /** validator_slash_event describes the slash event. */ validator_slash_event?: ValidatorSlashEventAmino; } @@ -237,8 +236,8 @@ export interface ValidatorSlashEventRecordAminoMsg { /** ValidatorSlashEventRecord is used for import / export via genesis json. */ export interface ValidatorSlashEventRecordSDKType { validator_address: string; - height: Long; - period: Long; + height: bigint; + period: bigint; validator_slash_event: ValidatorSlashEventSDKType; } /** GenesisState defines the distribution module's genesis state. */ @@ -275,21 +274,21 @@ export interface GenesisStateAmino { /** fee_pool defines the fee pool at genesis. */ fee_pool?: FeePoolAmino; /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos: DelegatorWithdrawInfoAmino[]; + delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; /** fee_pool defines the previous proposer at genesis. */ - previous_proposer: string; + previous_proposer?: string; /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards: ValidatorOutstandingRewardsRecordAmino[]; + outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordAmino[]; + validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards: ValidatorHistoricalRewardsRecordAmino[]; + validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards: ValidatorCurrentRewardsRecordAmino[]; + validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos: DelegatorStartingInfoRecordAmino[]; + delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events: ValidatorSlashEventRecordAmino[]; + validator_slash_events?: ValidatorSlashEventRecordAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -309,8 +308,9 @@ export interface GenesisStateSDKType { validator_slash_events: ValidatorSlashEventRecordSDKType[]; } export declare const DelegatorWithdrawInfo: { - encode(message: DelegatorWithdrawInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorWithdrawInfo; + typeUrl: string; + encode(message: DelegatorWithdrawInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo; fromJSON(object: any): DelegatorWithdrawInfo; toJSON(message: DelegatorWithdrawInfo): unknown; fromPartial(object: Partial): DelegatorWithdrawInfo; @@ -323,8 +323,9 @@ export declare const DelegatorWithdrawInfo: { toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg; }; export declare const ValidatorOutstandingRewardsRecord: { - encode(message: ValidatorOutstandingRewardsRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord; + typeUrl: string; + encode(message: ValidatorOutstandingRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord; fromJSON(object: any): ValidatorOutstandingRewardsRecord; toJSON(message: ValidatorOutstandingRewardsRecord): unknown; fromPartial(object: Partial): ValidatorOutstandingRewardsRecord; @@ -337,8 +338,9 @@ export declare const ValidatorOutstandingRewardsRecord: { toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg; }; export declare const ValidatorAccumulatedCommissionRecord: { - encode(message: ValidatorAccumulatedCommissionRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord; + typeUrl: string; + encode(message: ValidatorAccumulatedCommissionRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord; fromJSON(object: any): ValidatorAccumulatedCommissionRecord; toJSON(message: ValidatorAccumulatedCommissionRecord): unknown; fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord; @@ -351,8 +353,9 @@ export declare const ValidatorAccumulatedCommissionRecord: { toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg; }; export declare const ValidatorHistoricalRewardsRecord: { - encode(message: ValidatorHistoricalRewardsRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord; + typeUrl: string; + encode(message: ValidatorHistoricalRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord; fromJSON(object: any): ValidatorHistoricalRewardsRecord; toJSON(message: ValidatorHistoricalRewardsRecord): unknown; fromPartial(object: Partial): ValidatorHistoricalRewardsRecord; @@ -365,8 +368,9 @@ export declare const ValidatorHistoricalRewardsRecord: { toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg; }; export declare const ValidatorCurrentRewardsRecord: { - encode(message: ValidatorCurrentRewardsRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord; + typeUrl: string; + encode(message: ValidatorCurrentRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord; fromJSON(object: any): ValidatorCurrentRewardsRecord; toJSON(message: ValidatorCurrentRewardsRecord): unknown; fromPartial(object: Partial): ValidatorCurrentRewardsRecord; @@ -379,8 +383,9 @@ export declare const ValidatorCurrentRewardsRecord: { toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg; }; export declare const DelegatorStartingInfoRecord: { - encode(message: DelegatorStartingInfoRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfoRecord; + typeUrl: string; + encode(message: DelegatorStartingInfoRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord; fromJSON(object: any): DelegatorStartingInfoRecord; toJSON(message: DelegatorStartingInfoRecord): unknown; fromPartial(object: Partial): DelegatorStartingInfoRecord; @@ -393,8 +398,9 @@ export declare const DelegatorStartingInfoRecord: { toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg; }; export declare const ValidatorSlashEventRecord: { - encode(message: ValidatorSlashEventRecord, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEventRecord; + typeUrl: string; + encode(message: ValidatorSlashEventRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord; fromJSON(object: any): ValidatorSlashEventRecord; toJSON(message: ValidatorSlashEventRecord): unknown; fromPartial(object: Partial): ValidatorSlashEventRecord; @@ -407,8 +413,9 @@ export declare const ValidatorSlashEventRecord: { toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg; }; export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts index 646f6235..6a0d4a78 100644 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts @@ -1,8 +1,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } @@ -60,7 +59,7 @@ export interface QueryValidatorOutstandingRewardsRequestProtoMsg { */ export interface QueryValidatorOutstandingRewardsRequestAmino { /** validator_address defines the validator address to query for. */ - validator_address: string; + validator_address?: string; } export interface QueryValidatorOutstandingRewardsRequestAminoMsg { type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; @@ -120,7 +119,7 @@ export interface QueryValidatorCommissionRequestProtoMsg { */ export interface QueryValidatorCommissionRequestAmino { /** validator_address defines the validator address to query for. */ - validator_address: string; + validator_address?: string; } export interface QueryValidatorCommissionRequestAminoMsg { type: "cosmos-sdk/QueryValidatorCommissionRequest"; @@ -172,11 +171,11 @@ export interface QueryValidatorSlashesRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; /** starting_height defines the optional starting height to query the slashes. */ - startingHeight: Long; + startingHeight: bigint; /** starting_height defines the optional ending height to query the slashes. */ - endingHeight: Long; + endingHeight: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryValidatorSlashesRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; @@ -188,11 +187,11 @@ export interface QueryValidatorSlashesRequestProtoMsg { */ export interface QueryValidatorSlashesRequestAmino { /** validator_address defines the validator address to query for. */ - validator_address: string; + validator_address?: string; /** starting_height defines the optional starting height to query the slashes. */ - starting_height: string; + starting_height?: string; /** starting_height defines the optional ending height to query the slashes. */ - ending_height: string; + ending_height?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -206,9 +205,9 @@ export interface QueryValidatorSlashesRequestAminoMsg { */ export interface QueryValidatorSlashesRequestSDKType { validator_address: string; - starting_height: Long; - ending_height: Long; - pagination: PageRequestSDKType; + starting_height: bigint; + ending_height: bigint; + pagination?: PageRequestSDKType; } /** * QueryValidatorSlashesResponse is the response type for the @@ -218,7 +217,7 @@ export interface QueryValidatorSlashesResponse { /** slashes defines the slashes the validator received. */ slashes: ValidatorSlashEvent[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryValidatorSlashesResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; @@ -230,7 +229,7 @@ export interface QueryValidatorSlashesResponseProtoMsg { */ export interface QueryValidatorSlashesResponseAmino { /** slashes defines the slashes the validator received. */ - slashes: ValidatorSlashEventAmino[]; + slashes?: ValidatorSlashEventAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -244,7 +243,7 @@ export interface QueryValidatorSlashesResponseAminoMsg { */ export interface QueryValidatorSlashesResponseSDKType { slashes: ValidatorSlashEventSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryDelegationRewardsRequest is the request type for the @@ -266,9 +265,9 @@ export interface QueryDelegationRewardsRequestProtoMsg { */ export interface QueryDelegationRewardsRequestAmino { /** delegator_address defines the delegator address to query for. */ - delegator_address: string; + delegator_address?: string; /** validator_address defines the validator address to query for. */ - validator_address: string; + validator_address?: string; } export interface QueryDelegationRewardsRequestAminoMsg { type: "cosmos-sdk/QueryDelegationRewardsRequest"; @@ -300,7 +299,7 @@ export interface QueryDelegationRewardsResponseProtoMsg { */ export interface QueryDelegationRewardsResponseAmino { /** rewards defines the rewards accrued by a delegation. */ - rewards: DecCoinAmino[]; + rewards?: DecCoinAmino[]; } export interface QueryDelegationRewardsResponseAminoMsg { type: "cosmos-sdk/QueryDelegationRewardsResponse"; @@ -331,7 +330,7 @@ export interface QueryDelegationTotalRewardsRequestProtoMsg { */ export interface QueryDelegationTotalRewardsRequestAmino { /** delegator_address defines the delegator address to query for. */ - delegator_address: string; + delegator_address?: string; } export interface QueryDelegationTotalRewardsRequestAminoMsg { type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; @@ -364,9 +363,9 @@ export interface QueryDelegationTotalRewardsResponseProtoMsg { */ export interface QueryDelegationTotalRewardsResponseAmino { /** rewards defines all the rewards accrued by a delegator. */ - rewards: DelegationDelegatorRewardAmino[]; + rewards?: DelegationDelegatorRewardAmino[]; /** total defines the sum of all the rewards. */ - total: DecCoinAmino[]; + total?: DecCoinAmino[]; } export interface QueryDelegationTotalRewardsResponseAminoMsg { type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; @@ -398,7 +397,7 @@ export interface QueryDelegatorValidatorsRequestProtoMsg { */ export interface QueryDelegatorValidatorsRequestAmino { /** delegator_address defines the delegator address to query for. */ - delegator_address: string; + delegator_address?: string; } export interface QueryDelegatorValidatorsRequestAminoMsg { type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; @@ -429,7 +428,7 @@ export interface QueryDelegatorValidatorsResponseProtoMsg { */ export interface QueryDelegatorValidatorsResponseAmino { /** validators defines the validators a delegator is delegating for. */ - validators: string[]; + validators?: string[]; } export interface QueryDelegatorValidatorsResponseAminoMsg { type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; @@ -460,7 +459,7 @@ export interface QueryDelegatorWithdrawAddressRequestProtoMsg { */ export interface QueryDelegatorWithdrawAddressRequestAmino { /** delegator_address defines the delegator address to query for. */ - delegator_address: string; + delegator_address?: string; } export interface QueryDelegatorWithdrawAddressRequestAminoMsg { type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; @@ -491,7 +490,7 @@ export interface QueryDelegatorWithdrawAddressResponseProtoMsg { */ export interface QueryDelegatorWithdrawAddressResponseAmino { /** withdraw_address defines the delegator address to query for. */ - withdraw_address: string; + withdraw_address?: string; } export interface QueryDelegatorWithdrawAddressResponseAminoMsg { type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; @@ -548,7 +547,7 @@ export interface QueryCommunityPoolResponseProtoMsg { */ export interface QueryCommunityPoolResponseAmino { /** pool defines community pool's coins. */ - pool: DecCoinAmino[]; + pool?: DecCoinAmino[]; } export interface QueryCommunityPoolResponseAminoMsg { type: "cosmos-sdk/QueryCommunityPoolResponse"; @@ -562,8 +561,9 @@ export interface QueryCommunityPoolResponseSDKType { pool: DecCoinSDKType[]; } export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -576,8 +576,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -590,8 +591,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryValidatorOutstandingRewardsRequest: { - encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; + typeUrl: string; + encode(message: QueryValidatorOutstandingRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; fromJSON(object: any): QueryValidatorOutstandingRewardsRequest; toJSON(message: QueryValidatorOutstandingRewardsRequest): unknown; fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest; @@ -604,8 +606,9 @@ export declare const QueryValidatorOutstandingRewardsRequest: { toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg; }; export declare const QueryValidatorOutstandingRewardsResponse: { - encode(message: QueryValidatorOutstandingRewardsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; + typeUrl: string; + encode(message: QueryValidatorOutstandingRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; fromJSON(object: any): QueryValidatorOutstandingRewardsResponse; toJSON(message: QueryValidatorOutstandingRewardsResponse): unknown; fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse; @@ -618,8 +621,9 @@ export declare const QueryValidatorOutstandingRewardsResponse: { toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg; }; export declare const QueryValidatorCommissionRequest: { - encode(message: QueryValidatorCommissionRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest; + typeUrl: string; + encode(message: QueryValidatorCommissionRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest; fromJSON(object: any): QueryValidatorCommissionRequest; toJSON(message: QueryValidatorCommissionRequest): unknown; fromPartial(object: Partial): QueryValidatorCommissionRequest; @@ -632,8 +636,9 @@ export declare const QueryValidatorCommissionRequest: { toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg; }; export declare const QueryValidatorCommissionResponse: { - encode(message: QueryValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse; + typeUrl: string; + encode(message: QueryValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse; fromJSON(object: any): QueryValidatorCommissionResponse; toJSON(message: QueryValidatorCommissionResponse): unknown; fromPartial(object: Partial): QueryValidatorCommissionResponse; @@ -646,8 +651,9 @@ export declare const QueryValidatorCommissionResponse: { toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg; }; export declare const QueryValidatorSlashesRequest: { - encode(message: QueryValidatorSlashesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest; + typeUrl: string; + encode(message: QueryValidatorSlashesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest; fromJSON(object: any): QueryValidatorSlashesRequest; toJSON(message: QueryValidatorSlashesRequest): unknown; fromPartial(object: Partial): QueryValidatorSlashesRequest; @@ -660,8 +666,9 @@ export declare const QueryValidatorSlashesRequest: { toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg; }; export declare const QueryValidatorSlashesResponse: { - encode(message: QueryValidatorSlashesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse; + typeUrl: string; + encode(message: QueryValidatorSlashesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse; fromJSON(object: any): QueryValidatorSlashesResponse; toJSON(message: QueryValidatorSlashesResponse): unknown; fromPartial(object: Partial): QueryValidatorSlashesResponse; @@ -674,8 +681,9 @@ export declare const QueryValidatorSlashesResponse: { toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg; }; export declare const QueryDelegationRewardsRequest: { - encode(message: QueryDelegationRewardsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest; + typeUrl: string; + encode(message: QueryDelegationRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest; fromJSON(object: any): QueryDelegationRewardsRequest; toJSON(message: QueryDelegationRewardsRequest): unknown; fromPartial(object: Partial): QueryDelegationRewardsRequest; @@ -688,8 +696,9 @@ export declare const QueryDelegationRewardsRequest: { toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg; }; export declare const QueryDelegationRewardsResponse: { - encode(message: QueryDelegationRewardsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse; + typeUrl: string; + encode(message: QueryDelegationRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse; fromJSON(object: any): QueryDelegationRewardsResponse; toJSON(message: QueryDelegationRewardsResponse): unknown; fromPartial(object: Partial): QueryDelegationRewardsResponse; @@ -702,8 +711,9 @@ export declare const QueryDelegationRewardsResponse: { toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg; }; export declare const QueryDelegationTotalRewardsRequest: { - encode(message: QueryDelegationTotalRewardsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; + typeUrl: string; + encode(message: QueryDelegationTotalRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; fromJSON(object: any): QueryDelegationTotalRewardsRequest; toJSON(message: QueryDelegationTotalRewardsRequest): unknown; fromPartial(object: Partial): QueryDelegationTotalRewardsRequest; @@ -716,8 +726,9 @@ export declare const QueryDelegationTotalRewardsRequest: { toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg; }; export declare const QueryDelegationTotalRewardsResponse: { - encode(message: QueryDelegationTotalRewardsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; + typeUrl: string; + encode(message: QueryDelegationTotalRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; fromJSON(object: any): QueryDelegationTotalRewardsResponse; toJSON(message: QueryDelegationTotalRewardsResponse): unknown; fromPartial(object: Partial): QueryDelegationTotalRewardsResponse; @@ -730,8 +741,9 @@ export declare const QueryDelegationTotalRewardsResponse: { toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg; }; export declare const QueryDelegatorValidatorsRequest: { - encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; + typeUrl: string; + encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; fromJSON(object: any): QueryDelegatorValidatorsRequest; toJSON(message: QueryDelegatorValidatorsRequest): unknown; fromPartial(object: Partial): QueryDelegatorValidatorsRequest; @@ -744,8 +756,9 @@ export declare const QueryDelegatorValidatorsRequest: { toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; }; export declare const QueryDelegatorValidatorsResponse: { - encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; + typeUrl: string; + encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; fromJSON(object: any): QueryDelegatorValidatorsResponse; toJSON(message: QueryDelegatorValidatorsResponse): unknown; fromPartial(object: Partial): QueryDelegatorValidatorsResponse; @@ -758,8 +771,9 @@ export declare const QueryDelegatorValidatorsResponse: { toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; }; export declare const QueryDelegatorWithdrawAddressRequest: { - encode(message: QueryDelegatorWithdrawAddressRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; + typeUrl: string; + encode(message: QueryDelegatorWithdrawAddressRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; fromJSON(object: any): QueryDelegatorWithdrawAddressRequest; toJSON(message: QueryDelegatorWithdrawAddressRequest): unknown; fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest; @@ -772,8 +786,9 @@ export declare const QueryDelegatorWithdrawAddressRequest: { toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg; }; export declare const QueryDelegatorWithdrawAddressResponse: { - encode(message: QueryDelegatorWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; + typeUrl: string; + encode(message: QueryDelegatorWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; fromJSON(object: any): QueryDelegatorWithdrawAddressResponse; toJSON(message: QueryDelegatorWithdrawAddressResponse): unknown; fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse; @@ -786,8 +801,9 @@ export declare const QueryDelegatorWithdrawAddressResponse: { toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg; }; export declare const QueryCommunityPoolRequest: { - encode(_: QueryCommunityPoolRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest; + typeUrl: string; + encode(_: QueryCommunityPoolRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest; fromJSON(_: any): QueryCommunityPoolRequest; toJSON(_: QueryCommunityPoolRequest): unknown; fromPartial(_: Partial): QueryCommunityPoolRequest; @@ -800,8 +816,9 @@ export declare const QueryCommunityPoolRequest: { toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg; }; export declare const QueryCommunityPoolResponse: { - encode(message: QueryCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse; + typeUrl: string; + encode(message: QueryCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse; fromJSON(object: any): QueryCommunityPoolResponse; toJSON(message: QueryCommunityPoolResponse): unknown; fromPartial(object: Partial): QueryCommunityPoolResponse; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts index 1271db0c..753bd2d6 100644 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts index 11962e5a..d3cf11b9 100644 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts @@ -1,5 +1,5 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgSetWithdrawAddress sets the withdraw address for * a delegator (or validator self-delegation). @@ -17,8 +17,8 @@ export interface MsgSetWithdrawAddressProtoMsg { * a delegator (or validator self-delegation). */ export interface MsgSetWithdrawAddressAmino { - delegator_address: string; - withdraw_address: string; + delegator_address?: string; + withdraw_address?: string; } export interface MsgSetWithdrawAddressAminoMsg { type: "cosmos-sdk/MsgModifyWithdrawAddress"; @@ -66,8 +66,8 @@ export interface MsgWithdrawDelegatorRewardProtoMsg { * from a single validator. */ export interface MsgWithdrawDelegatorRewardAmino { - delegator_address: string; - validator_address: string; + delegator_address?: string; + validator_address?: string; } export interface MsgWithdrawDelegatorRewardAminoMsg { type: "cosmos-sdk/MsgWithdrawDelegationReward"; @@ -93,7 +93,7 @@ export interface MsgWithdrawDelegatorRewardResponseProtoMsg { /** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ export interface MsgWithdrawDelegatorRewardResponseAmino { /** Since: cosmos-sdk 0.46 */ - amount: CoinAmino[]; + amount?: CoinAmino[]; } export interface MsgWithdrawDelegatorRewardResponseAminoMsg { type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; @@ -119,7 +119,7 @@ export interface MsgWithdrawValidatorCommissionProtoMsg { * address. */ export interface MsgWithdrawValidatorCommissionAmino { - validator_address: string; + validator_address?: string; } export interface MsgWithdrawValidatorCommissionAminoMsg { type: "cosmos-sdk/MsgWithdrawValidatorCommission"; @@ -144,7 +144,7 @@ export interface MsgWithdrawValidatorCommissionResponseProtoMsg { /** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ export interface MsgWithdrawValidatorCommissionResponseAmino { /** Since: cosmos-sdk 0.46 */ - amount: CoinAmino[]; + amount?: CoinAmino[]; } export interface MsgWithdrawValidatorCommissionResponseAminoMsg { type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; @@ -171,8 +171,8 @@ export interface MsgFundCommunityPoolProtoMsg { * fund the community pool. */ export interface MsgFundCommunityPoolAmino { - amount: CoinAmino[]; - depositor: string; + amount?: CoinAmino[]; + depositor?: string; } export interface MsgFundCommunityPoolAminoMsg { type: "cosmos-sdk/MsgFundCommunityPool"; @@ -204,8 +204,9 @@ export interface MsgFundCommunityPoolResponseAminoMsg { export interface MsgFundCommunityPoolResponseSDKType { } export declare const MsgSetWithdrawAddress: { - encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress; + typeUrl: string; + encode(message: MsgSetWithdrawAddress, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress; fromJSON(object: any): MsgSetWithdrawAddress; toJSON(message: MsgSetWithdrawAddress): unknown; fromPartial(object: Partial): MsgSetWithdrawAddress; @@ -218,8 +219,9 @@ export declare const MsgSetWithdrawAddress: { toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg; }; export declare const MsgSetWithdrawAddressResponse: { - encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; + typeUrl: string; + encode(_: MsgSetWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; fromJSON(_: any): MsgSetWithdrawAddressResponse; toJSON(_: MsgSetWithdrawAddressResponse): unknown; fromPartial(_: Partial): MsgSetWithdrawAddressResponse; @@ -232,8 +234,9 @@ export declare const MsgSetWithdrawAddressResponse: { toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg; }; export declare const MsgWithdrawDelegatorReward: { - encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; + typeUrl: string; + encode(message: MsgWithdrawDelegatorReward, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; fromJSON(object: any): MsgWithdrawDelegatorReward; toJSON(message: MsgWithdrawDelegatorReward): unknown; fromPartial(object: Partial): MsgWithdrawDelegatorReward; @@ -246,8 +249,9 @@ export declare const MsgWithdrawDelegatorReward: { toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg; }; export declare const MsgWithdrawDelegatorRewardResponse: { - encode(message: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; + typeUrl: string; + encode(message: MsgWithdrawDelegatorRewardResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; fromJSON(object: any): MsgWithdrawDelegatorRewardResponse; toJSON(message: MsgWithdrawDelegatorRewardResponse): unknown; fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse; @@ -260,8 +264,9 @@ export declare const MsgWithdrawDelegatorRewardResponse: { toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg; }; export declare const MsgWithdrawValidatorCommission: { - encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; + typeUrl: string; + encode(message: MsgWithdrawValidatorCommission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; fromJSON(object: any): MsgWithdrawValidatorCommission; toJSON(message: MsgWithdrawValidatorCommission): unknown; fromPartial(object: Partial): MsgWithdrawValidatorCommission; @@ -274,8 +279,9 @@ export declare const MsgWithdrawValidatorCommission: { toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg; }; export declare const MsgWithdrawValidatorCommissionResponse: { - encode(message: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; + typeUrl: string; + encode(message: MsgWithdrawValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; fromJSON(object: any): MsgWithdrawValidatorCommissionResponse; toJSON(message: MsgWithdrawValidatorCommissionResponse): unknown; fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse; @@ -288,8 +294,9 @@ export declare const MsgWithdrawValidatorCommissionResponse: { toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg; }; export declare const MsgFundCommunityPool: { - encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool; + typeUrl: string; + encode(message: MsgFundCommunityPool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool; fromJSON(object: any): MsgFundCommunityPool; toJSON(message: MsgFundCommunityPool): unknown; fromPartial(object: Partial): MsgFundCommunityPool; @@ -302,8 +309,9 @@ export declare const MsgFundCommunityPool: { toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg; }; export declare const MsgFundCommunityPoolResponse: { - encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; + typeUrl: string; + encode(_: MsgFundCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; fromJSON(_: any): MsgFundCommunityPoolResponse; toJSON(_: MsgFundCommunityPoolResponse): unknown; fromPartial(_: Partial): MsgFundCommunityPoolResponse; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts index 8ff054df..a3ae59dc 100644 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +++ b/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts @@ -1,14 +1,13 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * Equivocation implements the Evidence interface and defines evidence of double * signing misbehavior. */ export interface Equivocation { - height: Long; + height: bigint; time: Timestamp; - power: Long; + power: bigint; consensusAddress: string; } export interface EquivocationProtoMsg { @@ -20,10 +19,10 @@ export interface EquivocationProtoMsg { * signing misbehavior. */ export interface EquivocationAmino { - height: string; - time?: TimestampAmino; - power: string; - consensus_address: string; + height?: string; + time?: string; + power?: string; + consensus_address?: string; } export interface EquivocationAminoMsg { type: "cosmos-sdk/Equivocation"; @@ -34,14 +33,15 @@ export interface EquivocationAminoMsg { * signing misbehavior. */ export interface EquivocationSDKType { - height: Long; + height: bigint; time: TimestampSDKType; - power: Long; + power: bigint; consensus_address: string; } export declare const Equivocation: { - encode(message: Equivocation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Equivocation; + typeUrl: string; + encode(message: Equivocation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Equivocation; fromJSON(object: any): Equivocation; toJSON(message: Equivocation): unknown; fromPartial(object: Partial): Equivocation; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts index 25a0e1f1..e4129624 100644 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the evidence module's genesis state. */ export interface GenesisState { /** evidence defines all the evidence at genesis. */ @@ -12,7 +12,7 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the evidence module's genesis state. */ export interface GenesisStateAmino { /** evidence defines all the evidence at genesis. */ - evidence: AnyAmino[]; + evidence?: AnyAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -23,8 +23,9 @@ export interface GenesisStateSDKType { evidence: AnySDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts index a6c4f227..c10fa2ec 100644 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ export interface QueryEvidenceRequest { /** evidence_hash defines the hash of the requested evidence. */ @@ -13,7 +13,7 @@ export interface QueryEvidenceRequestProtoMsg { /** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ export interface QueryEvidenceRequestAmino { /** evidence_hash defines the hash of the requested evidence. */ - evidence_hash: Uint8Array; + evidence_hash?: string; } export interface QueryEvidenceRequestAminoMsg { type: "cosmos-sdk/QueryEvidenceRequest"; @@ -26,7 +26,7 @@ export interface QueryEvidenceRequestSDKType { /** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ export interface QueryEvidenceResponse { /** evidence returns the requested evidence. */ - evidence: Any; + evidence?: Any; } export interface QueryEvidenceResponseProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse"; @@ -43,7 +43,7 @@ export interface QueryEvidenceResponseAminoMsg { } /** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ export interface QueryEvidenceResponseSDKType { - evidence: AnySDKType; + evidence?: AnySDKType; } /** * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC @@ -51,7 +51,7 @@ export interface QueryEvidenceResponseSDKType { */ export interface QueryAllEvidenceRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllEvidenceRequestProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest"; @@ -74,7 +74,7 @@ export interface QueryAllEvidenceRequestAminoMsg { * method. */ export interface QueryAllEvidenceRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC @@ -84,7 +84,7 @@ export interface QueryAllEvidenceResponse { /** evidence returns all evidences. */ evidence: Any[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllEvidenceResponseProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse"; @@ -96,7 +96,7 @@ export interface QueryAllEvidenceResponseProtoMsg { */ export interface QueryAllEvidenceResponseAmino { /** evidence returns all evidences. */ - evidence: AnyAmino[]; + evidence?: AnyAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -110,11 +110,12 @@ export interface QueryAllEvidenceResponseAminoMsg { */ export interface QueryAllEvidenceResponseSDKType { evidence: AnySDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryEvidenceRequest: { - encode(message: QueryEvidenceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceRequest; + typeUrl: string; + encode(message: QueryEvidenceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceRequest; fromJSON(object: any): QueryEvidenceRequest; toJSON(message: QueryEvidenceRequest): unknown; fromPartial(object: Partial): QueryEvidenceRequest; @@ -127,8 +128,9 @@ export declare const QueryEvidenceRequest: { toProtoMsg(message: QueryEvidenceRequest): QueryEvidenceRequestProtoMsg; }; export declare const QueryEvidenceResponse: { - encode(message: QueryEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceResponse; + typeUrl: string; + encode(message: QueryEvidenceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceResponse; fromJSON(object: any): QueryEvidenceResponse; toJSON(message: QueryEvidenceResponse): unknown; fromPartial(object: Partial): QueryEvidenceResponse; @@ -141,8 +143,9 @@ export declare const QueryEvidenceResponse: { toProtoMsg(message: QueryEvidenceResponse): QueryEvidenceResponseProtoMsg; }; export declare const QueryAllEvidenceRequest: { - encode(message: QueryAllEvidenceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceRequest; + typeUrl: string; + encode(message: QueryAllEvidenceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceRequest; fromJSON(object: any): QueryAllEvidenceRequest; toJSON(message: QueryAllEvidenceRequest): unknown; fromPartial(object: Partial): QueryAllEvidenceRequest; @@ -155,8 +158,9 @@ export declare const QueryAllEvidenceRequest: { toProtoMsg(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestProtoMsg; }; export declare const QueryAllEvidenceResponse: { - encode(message: QueryAllEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceResponse; + typeUrl: string; + encode(message: QueryAllEvidenceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceResponse; fromJSON(object: any): QueryAllEvidenceResponse; toJSON(message: QueryAllEvidenceResponse): unknown; fromPartial(object: Partial): QueryAllEvidenceResponse; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts index 7bca5ded..badd75e2 100644 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts index 8bc9e5c2..ded2acd2 100644 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts @@ -1,12 +1,12 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgSubmitEvidence represents a message that supports submitting arbitrary * Evidence of misbehavior such as equivocation or counterfactual signing. */ export interface MsgSubmitEvidence { submitter: string; - evidence: (Any) | undefined; + evidence?: (Any) | undefined; } export interface MsgSubmitEvidenceProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; @@ -20,7 +20,7 @@ export type MsgSubmitEvidenceEncoded = Omit & { * Evidence of misbehavior such as equivocation or counterfactual signing. */ export interface MsgSubmitEvidenceAmino { - submitter: string; + submitter?: string; evidence?: AnyAmino; } export interface MsgSubmitEvidenceAminoMsg { @@ -33,7 +33,7 @@ export interface MsgSubmitEvidenceAminoMsg { */ export interface MsgSubmitEvidenceSDKType { submitter: string; - evidence: AnySDKType | undefined; + evidence?: AnySDKType | undefined; } /** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ export interface MsgSubmitEvidenceResponse { @@ -47,7 +47,7 @@ export interface MsgSubmitEvidenceResponseProtoMsg { /** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ export interface MsgSubmitEvidenceResponseAmino { /** hash defines the hash of the evidence. */ - hash: Uint8Array; + hash?: string; } export interface MsgSubmitEvidenceResponseAminoMsg { type: "cosmos-sdk/MsgSubmitEvidenceResponse"; @@ -58,8 +58,9 @@ export interface MsgSubmitEvidenceResponseSDKType { hash: Uint8Array; } export declare const MsgSubmitEvidence: { - encode(message: MsgSubmitEvidence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidence; + typeUrl: string; + encode(message: MsgSubmitEvidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidence; fromJSON(object: any): MsgSubmitEvidence; toJSON(message: MsgSubmitEvidence): unknown; fromPartial(object: Partial): MsgSubmitEvidence; @@ -72,8 +73,9 @@ export declare const MsgSubmitEvidence: { toProtoMsg(message: MsgSubmitEvidence): MsgSubmitEvidenceProtoMsg; }; export declare const MsgSubmitEvidenceResponse: { - encode(message: MsgSubmitEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidenceResponse; + typeUrl: string; + encode(message: MsgSubmitEvidenceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidenceResponse; fromJSON(object: any): MsgSubmitEvidenceResponse; toJSON(message: MsgSubmitEvidenceResponse): unknown; fromPartial(object: Partial): MsgSubmitEvidenceResponse; @@ -85,6 +87,6 @@ export declare const MsgSubmitEvidenceResponse: { toProto(message: MsgSubmitEvidenceResponse): Uint8Array; toProtoMsg(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseProtoMsg; }; -export declare const Evidence_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => Any; +export declare const Evidence_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; export declare const Evidence_FromAmino: (content: AnyAmino) => Any; export declare const Evidence_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts index b8d3c5cb..f34ebce9 100644 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +++ b/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts @@ -1,14 +1,14 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * BasicAllowance implements Allowance with a one-time grant of coins * that optionally expires. The grantee can use up to SpendLimit to cover fees. */ export interface BasicAllowance { - $typeUrl?: string; + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; /** * spend_limit specifies the maximum amount of coins that can be spent * by this allowance and will be updated as coins are spent. If it is @@ -16,7 +16,7 @@ export interface BasicAllowance { */ spendLimit: Coin[]; /** expiration specifies an optional time when this allowance expires */ - expiration: Timestamp; + expiration?: Timestamp; } export interface BasicAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; @@ -32,9 +32,9 @@ export interface BasicAllowanceAmino { * by this allowance and will be updated as coins are spent. If it is * empty, there is no spend limit and any amount of coins can be spent. */ - spend_limit: CoinAmino[]; + spend_limit?: CoinAmino[]; /** expiration specifies an optional time when this allowance expires */ - expiration?: TimestampAmino; + expiration?: string; } export interface BasicAllowanceAminoMsg { type: "cosmos-sdk/BasicAllowance"; @@ -45,16 +45,16 @@ export interface BasicAllowanceAminoMsg { * that optionally expires. The grantee can use up to SpendLimit to cover fees. */ export interface BasicAllowanceSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; spend_limit: CoinSDKType[]; - expiration: TimestampSDKType; + expiration?: TimestampSDKType; } /** * PeriodicAllowance extends Allowance to allow for both a maximum cap, * as well as a limit per time period. */ export interface PeriodicAllowance { - $typeUrl?: string; + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; /** basic specifies a struct of `BasicAllowance` */ basic: BasicAllowance; /** @@ -96,15 +96,15 @@ export interface PeriodicAllowanceAmino { * period_spend_limit specifies the maximum number of coins that can be spent * in the period */ - period_spend_limit: CoinAmino[]; + period_spend_limit?: CoinAmino[]; /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend: CoinAmino[]; + period_can_spend?: CoinAmino[]; /** * period_reset is the time at which this period resets and a new one begins, * it is calculated from the start time of the first transaction after the * last period ended */ - period_reset?: TimestampAmino; + period_reset?: string; } export interface PeriodicAllowanceAminoMsg { type: "cosmos-sdk/PeriodicAllowance"; @@ -115,7 +115,7 @@ export interface PeriodicAllowanceAminoMsg { * as well as a limit per time period. */ export interface PeriodicAllowanceSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; basic: BasicAllowanceSDKType; period: DurationSDKType; period_spend_limit: CoinSDKType[]; @@ -124,9 +124,9 @@ export interface PeriodicAllowanceSDKType { } /** AllowedMsgAllowance creates allowance only for specified message types. */ export interface AllowedMsgAllowance { - $typeUrl?: string; + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; /** allowance can be any of basic and periodic fee allowance. */ - allowance: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; /** allowed_messages are the messages for which the grantee has the access. */ allowedMessages: string[]; } @@ -142,7 +142,7 @@ export interface AllowedMsgAllowanceAmino { /** allowance can be any of basic and periodic fee allowance. */ allowance?: AnyAmino; /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages: string[]; + allowed_messages?: string[]; } export interface AllowedMsgAllowanceAminoMsg { type: "cosmos-sdk/AllowedMsgAllowance"; @@ -150,8 +150,8 @@ export interface AllowedMsgAllowanceAminoMsg { } /** AllowedMsgAllowance creates allowance only for specified message types. */ export interface AllowedMsgAllowanceSDKType { - $typeUrl?: string; - allowance: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; allowed_messages: string[]; } /** Grant is stored in the KVStore to record a grant with full context */ @@ -161,7 +161,7 @@ export interface Grant { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; } export interface GrantProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.Grant"; @@ -173,9 +173,9 @@ export type GrantEncoded = Omit & { /** Grant is stored in the KVStore to record a grant with full context */ export interface GrantAmino { /** granter is the address of the user granting an allowance of their funds. */ - granter: string; + granter?: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; + grantee?: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: AnyAmino; } @@ -187,11 +187,12 @@ export interface GrantAminoMsg { export interface GrantSDKType { granter: string; grantee: string; - allowance: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; } export declare const BasicAllowance: { - encode(message: BasicAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasicAllowance; + typeUrl: string; + encode(message: BasicAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance; fromJSON(object: any): BasicAllowance; toJSON(message: BasicAllowance): unknown; fromPartial(object: Partial): BasicAllowance; @@ -204,8 +205,9 @@ export declare const BasicAllowance: { toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg; }; export declare const PeriodicAllowance: { - encode(message: PeriodicAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicAllowance; + typeUrl: string; + encode(message: PeriodicAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance; fromJSON(object: any): PeriodicAllowance; toJSON(message: PeriodicAllowance): unknown; fromPartial(object: Partial): PeriodicAllowance; @@ -218,8 +220,9 @@ export declare const PeriodicAllowance: { toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg; }; export declare const AllowedMsgAllowance: { - encode(message: AllowedMsgAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedMsgAllowance; + typeUrl: string; + encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance; fromJSON(object: any): AllowedMsgAllowance; toJSON(message: AllowedMsgAllowance): unknown; fromPartial(object: Partial): AllowedMsgAllowance; @@ -232,8 +235,9 @@ export declare const AllowedMsgAllowance: { toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg; }; export declare const Grant: { - encode(message: Grant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Grant; + typeUrl: string; + encode(message: Grant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Grant; fromJSON(object: any): Grant; toJSON(message: Grant): unknown; fromPartial(object: Partial): Grant; @@ -245,6 +249,6 @@ export declare const Grant: { toProto(message: Grant): Uint8Array; toProtoMsg(message: Grant): GrantProtoMsg; }; -export declare const FeeAllowanceI_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; +export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts index 56c83f53..f99f7270 100644 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState contains a set of fee allowances, persisted from the store */ export interface GenesisState { allowances: Grant[]; @@ -10,7 +10,7 @@ export interface GenesisStateProtoMsg { } /** GenesisState contains a set of fee allowances, persisted from the store */ export interface GenesisStateAmino { - allowances: GrantAmino[]; + allowances?: GrantAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -21,8 +21,9 @@ export interface GenesisStateSDKType { allowances: GrantSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts index 56f43bdc..e0b48ad7 100644 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ export interface QueryAllowanceRequest { /** granter is the address of the user granting an allowance of their funds. */ @@ -15,9 +15,9 @@ export interface QueryAllowanceRequestProtoMsg { /** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ export interface QueryAllowanceRequestAmino { /** granter is the address of the user granting an allowance of their funds. */ - granter: string; + granter?: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; + grantee?: string; } export interface QueryAllowanceRequestAminoMsg { type: "cosmos-sdk/QueryAllowanceRequest"; @@ -31,7 +31,7 @@ export interface QueryAllowanceRequestSDKType { /** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ export interface QueryAllowanceResponse { /** allowance is a allowance granted for grantee by granter. */ - allowance: Grant; + allowance?: Grant; } export interface QueryAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; @@ -48,13 +48,13 @@ export interface QueryAllowanceResponseAminoMsg { } /** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ export interface QueryAllowanceResponseSDKType { - allowance: GrantSDKType; + allowance?: GrantSDKType; } /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequest { grantee: string; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllowancesRequestProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; @@ -62,7 +62,7 @@ export interface QueryAllowancesRequestProtoMsg { } /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequestAmino { - grantee: string; + grantee?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -73,14 +73,14 @@ export interface QueryAllowancesRequestAminoMsg { /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequestSDKType { grantee: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponse { /** allowances are allowance's granted for grantee by granter. */ allowances: Grant[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllowancesResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; @@ -89,7 +89,7 @@ export interface QueryAllowancesResponseProtoMsg { /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponseAmino { /** allowances are allowance's granted for grantee by granter. */ - allowances: GrantAmino[]; + allowances?: GrantAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -100,7 +100,7 @@ export interface QueryAllowancesResponseAminoMsg { /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponseSDKType { allowances: GrantSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. @@ -110,7 +110,7 @@ export interface QueryAllowancesResponseSDKType { export interface QueryAllowancesByGranterRequest { granter: string; /** pagination defines an pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllowancesByGranterRequestProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; @@ -122,7 +122,7 @@ export interface QueryAllowancesByGranterRequestProtoMsg { * Since: cosmos-sdk 0.46 */ export interface QueryAllowancesByGranterRequestAmino { - granter: string; + granter?: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestAmino; } @@ -137,7 +137,7 @@ export interface QueryAllowancesByGranterRequestAminoMsg { */ export interface QueryAllowancesByGranterRequestSDKType { granter: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. @@ -148,7 +148,7 @@ export interface QueryAllowancesByGranterResponse { /** allowances that have been issued by the granter. */ allowances: Grant[]; /** pagination defines an pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllowancesByGranterResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; @@ -161,7 +161,7 @@ export interface QueryAllowancesByGranterResponseProtoMsg { */ export interface QueryAllowancesByGranterResponseAmino { /** allowances that have been issued by the granter. */ - allowances: GrantAmino[]; + allowances?: GrantAmino[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseAmino; } @@ -176,11 +176,12 @@ export interface QueryAllowancesByGranterResponseAminoMsg { */ export interface QueryAllowancesByGranterResponseSDKType { allowances: GrantSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryAllowanceRequest: { - encode(message: QueryAllowanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceRequest; + typeUrl: string; + encode(message: QueryAllowanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest; fromJSON(object: any): QueryAllowanceRequest; toJSON(message: QueryAllowanceRequest): unknown; fromPartial(object: Partial): QueryAllowanceRequest; @@ -193,8 +194,9 @@ export declare const QueryAllowanceRequest: { toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg; }; export declare const QueryAllowanceResponse: { - encode(message: QueryAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceResponse; + typeUrl: string; + encode(message: QueryAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse; fromJSON(object: any): QueryAllowanceResponse; toJSON(message: QueryAllowanceResponse): unknown; fromPartial(object: Partial): QueryAllowanceResponse; @@ -207,8 +209,9 @@ export declare const QueryAllowanceResponse: { toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg; }; export declare const QueryAllowancesRequest: { - encode(message: QueryAllowancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesRequest; + typeUrl: string; + encode(message: QueryAllowancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest; fromJSON(object: any): QueryAllowancesRequest; toJSON(message: QueryAllowancesRequest): unknown; fromPartial(object: Partial): QueryAllowancesRequest; @@ -221,8 +224,9 @@ export declare const QueryAllowancesRequest: { toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg; }; export declare const QueryAllowancesResponse: { - encode(message: QueryAllowancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesResponse; + typeUrl: string; + encode(message: QueryAllowancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse; fromJSON(object: any): QueryAllowancesResponse; toJSON(message: QueryAllowancesResponse): unknown; fromPartial(object: Partial): QueryAllowancesResponse; @@ -235,8 +239,9 @@ export declare const QueryAllowancesResponse: { toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg; }; export declare const QueryAllowancesByGranterRequest: { - encode(message: QueryAllowancesByGranterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; + typeUrl: string; + encode(message: QueryAllowancesByGranterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; fromJSON(object: any): QueryAllowancesByGranterRequest; toJSON(message: QueryAllowancesByGranterRequest): unknown; fromPartial(object: Partial): QueryAllowancesByGranterRequest; @@ -249,8 +254,9 @@ export declare const QueryAllowancesByGranterRequest: { toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg; }; export declare const QueryAllowancesByGranterResponse: { - encode(message: QueryAllowancesByGranterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; + typeUrl: string; + encode(message: QueryAllowancesByGranterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; fromJSON(object: any): QueryAllowancesByGranterResponse; toJSON(message: QueryAllowancesByGranterResponse): unknown; fromPartial(object: Partial): QueryAllowancesByGranterResponse; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts index 7669c054..39e515e0 100644 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts index 7ac632cd..2fc6e422 100644 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts @@ -1,6 +1,6 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. @@ -11,7 +11,7 @@ export interface MsgGrantAllowance { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; + allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; } export interface MsgGrantAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; @@ -26,9 +26,9 @@ export type MsgGrantAllowanceEncoded = Omit & { */ export interface MsgGrantAllowanceAmino { /** granter is the address of the user granting an allowance of their funds. */ - granter: string; + granter?: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; + grantee?: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: AnyAmino; } @@ -43,7 +43,7 @@ export interface MsgGrantAllowanceAminoMsg { export interface MsgGrantAllowanceSDKType { granter: string; grantee: string; - allowance: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; } /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ export interface MsgGrantAllowanceResponse { @@ -76,9 +76,9 @@ export interface MsgRevokeAllowanceProtoMsg { /** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ export interface MsgRevokeAllowanceAmino { /** granter is the address of the user granting an allowance of their funds. */ - granter: string; + granter?: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; + grantee?: string; } export interface MsgRevokeAllowanceAminoMsg { type: "cosmos-sdk/MsgRevokeAllowance"; @@ -107,8 +107,9 @@ export interface MsgRevokeAllowanceResponseAminoMsg { export interface MsgRevokeAllowanceResponseSDKType { } export declare const MsgGrantAllowance: { - encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance; + typeUrl: string; + encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; fromJSON(object: any): MsgGrantAllowance; toJSON(message: MsgGrantAllowance): unknown; fromPartial(object: Partial): MsgGrantAllowance; @@ -121,8 +122,9 @@ export declare const MsgGrantAllowance: { toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg; }; export declare const MsgGrantAllowanceResponse: { - encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse; + typeUrl: string; + encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; fromJSON(_: any): MsgGrantAllowanceResponse; toJSON(_: MsgGrantAllowanceResponse): unknown; fromPartial(_: Partial): MsgGrantAllowanceResponse; @@ -135,8 +137,9 @@ export declare const MsgGrantAllowanceResponse: { toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg; }; export declare const MsgRevokeAllowance: { - encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance; + typeUrl: string; + encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; fromJSON(object: any): MsgRevokeAllowance; toJSON(message: MsgRevokeAllowance): unknown; fromPartial(object: Partial): MsgRevokeAllowance; @@ -149,8 +152,9 @@ export declare const MsgRevokeAllowance: { toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg; }; export declare const MsgRevokeAllowanceResponse: { - encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; + typeUrl: string; + encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; fromJSON(_: any): MsgRevokeAllowanceResponse; toJSON(_: MsgRevokeAllowanceResponse): unknown; fromPartial(_: Partial): MsgRevokeAllowanceResponse; @@ -162,6 +166,6 @@ export declare const MsgRevokeAllowanceResponse: { toProto(message: MsgRevokeAllowanceResponse): Uint8Array; toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg; }; -export declare const FeeAllowanceI_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; +export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts index d81d0a14..857ef184 100644 --- a/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the raw genesis transaction in JSON. */ export interface GenesisState { /** gen_txs defines the genesis transactions. */ @@ -11,7 +11,7 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the raw genesis transaction in JSON. */ export interface GenesisStateAmino { /** gen_txs defines the genesis transactions. */ - gen_txs: Uint8Array[]; + gen_txs: string[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -22,8 +22,9 @@ export interface GenesisStateSDKType { gen_txs: Uint8Array[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts b/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts index 7b6a5ee8..498c5cad 100644 --- a/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts @@ -1,10 +1,9 @@ import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the gov module's genesis state. */ export interface GenesisState { /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; + startingProposalId: bigint; /** deposits defines all the deposits present at genesis. */ deposits: Deposit[]; /** votes defines all the votes present at genesis. */ @@ -12,11 +11,11 @@ export interface GenesisState { /** proposals defines all the proposals present at genesis. */ proposals: Proposal[]; /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; + depositParams?: DepositParams; /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; + votingParams?: VotingParams; /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; + tallyParams?: TallyParams; } export interface GenesisStateProtoMsg { typeUrl: "/cosmos.gov.v1.GenesisState"; @@ -25,13 +24,13 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the gov module's genesis state. */ export interface GenesisStateAmino { /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; + starting_proposal_id?: string; /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; + deposits?: DepositAmino[]; /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** params defines all the paramaters of related to deposit. */ deposit_params?: DepositParamsAmino; /** params defines all the paramaters of related to voting. */ @@ -45,17 +44,18 @@ export interface GenesisStateAminoMsg { } /** GenesisState defines the gov module's genesis state. */ export interface GenesisStateSDKType { - starting_proposal_id: Long; + starting_proposal_id: bigint; deposits: DepositSDKType[]; votes: VoteSDKType[]; proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; + deposit_params?: DepositParamsSDKType; + voting_params?: VotingParamsSDKType; + tally_params?: TallyParamsSDKType; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts b/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts index fc287657..af7dbbe2 100644 --- a/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts @@ -1,9 +1,8 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** VoteOption enumerates the valid vote options for a given governance proposal. */ export declare enum VoteOption { /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ @@ -68,8 +67,8 @@ export interface WeightedVoteOptionProtoMsg { } /** WeightedVoteOption defines a unit of vote for vote split. */ export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; + option?: VoteOption; + weight?: string; } export interface WeightedVoteOptionAminoMsg { type: "cosmos-sdk/v1/WeightedVoteOption"; @@ -85,7 +84,7 @@ export interface WeightedVoteOptionSDKType { * proposal. */ export interface Deposit { - proposalId: Long; + proposalId: bigint; depositor: string; amount: Coin[]; } @@ -98,9 +97,9 @@ export interface DepositProtoMsg { * proposal. */ export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; } export interface DepositAminoMsg { type: "cosmos-sdk/v1/Deposit"; @@ -111,13 +110,13 @@ export interface DepositAminoMsg { * proposal. */ export interface DepositSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } /** Proposal defines the core field members of a governance proposal. */ export interface Proposal { - id: Long; + id: bigint; messages: Any[]; status: ProposalStatus; /** @@ -125,12 +124,12 @@ export interface Proposal { * querying a proposal via gRPC, this field is not populated until the * proposal's voting period has ended. */ - finalTallyResult: TallyResult; - submitTime: Timestamp; - depositEndTime: Timestamp; + finalTallyResult?: TallyResult; + submitTime?: Timestamp; + depositEndTime?: Timestamp; totalDeposit: Coin[]; - votingStartTime: Timestamp; - votingEndTime: Timestamp; + votingStartTime?: Timestamp; + votingEndTime?: Timestamp; /** metadata is any arbitrary metadata attached to the proposal. */ metadata: string; } @@ -140,22 +139,22 @@ export interface ProposalProtoMsg { } /** Proposal defines the core field members of a governance proposal. */ export interface ProposalAmino { - id: string; - messages: AnyAmino[]; - status: ProposalStatus; + id?: string; + messages?: AnyAmino[]; + status?: ProposalStatus; /** * final_tally_result is the final tally result of the proposal. When * querying a proposal via gRPC, this field is not populated until the * proposal's voting period has ended. */ final_tally_result?: TallyResultAmino; - submit_time?: TimestampAmino; - deposit_end_time?: TimestampAmino; - total_deposit: CoinAmino[]; - voting_start_time?: TimestampAmino; - voting_end_time?: TimestampAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; + metadata?: string; } export interface ProposalAminoMsg { type: "cosmos-sdk/v1/Proposal"; @@ -163,15 +162,15 @@ export interface ProposalAminoMsg { } /** Proposal defines the core field members of a governance proposal. */ export interface ProposalSDKType { - id: Long; + id: bigint; messages: AnySDKType[]; status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: TimestampSDKType; - deposit_end_time: TimestampSDKType; + final_tally_result?: TallyResultSDKType; + submit_time?: TimestampSDKType; + deposit_end_time?: TimestampSDKType; total_deposit: CoinSDKType[]; - voting_start_time: TimestampSDKType; - voting_end_time: TimestampSDKType; + voting_start_time?: TimestampSDKType; + voting_end_time?: TimestampSDKType; metadata: string; } /** TallyResult defines a standard tally for a governance proposal. */ @@ -187,10 +186,10 @@ export interface TallyResultProtoMsg { } /** TallyResult defines a standard tally for a governance proposal. */ export interface TallyResultAmino { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; } export interface TallyResultAminoMsg { type: "cosmos-sdk/v1/TallyResult"; @@ -208,7 +207,7 @@ export interface TallyResultSDKType { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface Vote { - proposalId: Long; + proposalId: bigint; voter: string; options: WeightedVoteOption[]; /** metadata is any arbitrary metadata to attached to the vote. */ @@ -223,11 +222,11 @@ export interface VoteProtoMsg { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface VoteAmino { - proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; + proposal_id?: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; + metadata?: string; } export interface VoteAminoMsg { type: "cosmos-sdk/v1/Vote"; @@ -238,7 +237,7 @@ export interface VoteAminoMsg { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface VoteSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; options: WeightedVoteOptionSDKType[]; metadata: string; @@ -251,7 +250,7 @@ export interface DepositParams { * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. */ - maxDepositPeriod: Duration; + maxDepositPeriod?: Duration; } export interface DepositParamsProtoMsg { typeUrl: "/cosmos.gov.v1.DepositParams"; @@ -260,7 +259,7 @@ export interface DepositParamsProtoMsg { /** DepositParams defines the params for deposits on governance proposals. */ export interface DepositParamsAmino { /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; + min_deposit?: CoinAmino[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. @@ -274,12 +273,12 @@ export interface DepositParamsAminoMsg { /** DepositParams defines the params for deposits on governance proposals. */ export interface DepositParamsSDKType { min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; + max_deposit_period?: DurationSDKType; } /** VotingParams defines the params for voting on governance proposals. */ export interface VotingParams { /** Length of the voting period. */ - votingPeriod: Duration; + votingPeriod?: Duration; } export interface VotingParamsProtoMsg { typeUrl: "/cosmos.gov.v1.VotingParams"; @@ -296,7 +295,7 @@ export interface VotingParamsAminoMsg { } /** VotingParams defines the params for voting on governance proposals. */ export interface VotingParamsSDKType { - voting_period: DurationSDKType; + voting_period?: DurationSDKType; } /** TallyParams defines the params for tallying votes on governance proposals. */ export interface TallyParams { @@ -323,14 +322,14 @@ export interface TallyParamsAmino { * Minimum percentage of total stake needed to vote for a result to be * considered valid. */ - quorum: string; + quorum?: string; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; + threshold?: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. */ - veto_threshold: string; + veto_threshold?: string; } export interface TallyParamsAminoMsg { type: "cosmos-sdk/v1/TallyParams"; @@ -343,8 +342,9 @@ export interface TallyParamsSDKType { veto_threshold: string; } export declare const WeightedVoteOption: { - encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption; + typeUrl: string; + encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; fromJSON(object: any): WeightedVoteOption; toJSON(message: WeightedVoteOption): unknown; fromPartial(object: Partial): WeightedVoteOption; @@ -357,8 +357,9 @@ export declare const WeightedVoteOption: { toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; }; export declare const Deposit: { - encode(message: Deposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Deposit; + typeUrl: string; + encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Deposit; fromJSON(object: any): Deposit; toJSON(message: Deposit): unknown; fromPartial(object: Partial): Deposit; @@ -371,8 +372,9 @@ export declare const Deposit: { toProtoMsg(message: Deposit): DepositProtoMsg; }; export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): unknown; fromPartial(object: Partial): Proposal; @@ -385,8 +387,9 @@ export declare const Proposal: { toProtoMsg(message: Proposal): ProposalProtoMsg; }; export declare const TallyResult: { - encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; fromJSON(object: any): TallyResult; toJSON(message: TallyResult): unknown; fromPartial(object: Partial): TallyResult; @@ -399,8 +402,9 @@ export declare const TallyResult: { toProtoMsg(message: TallyResult): TallyResultProtoMsg; }; export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): unknown; fromPartial(object: Partial): Vote; @@ -413,8 +417,9 @@ export declare const Vote: { toProtoMsg(message: Vote): VoteProtoMsg; }; export declare const DepositParams: { - encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams; + typeUrl: string; + encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; fromJSON(object: any): DepositParams; toJSON(message: DepositParams): unknown; fromPartial(object: Partial): DepositParams; @@ -427,8 +432,9 @@ export declare const DepositParams: { toProtoMsg(message: DepositParams): DepositParamsProtoMsg; }; export declare const VotingParams: { - encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams; + typeUrl: string; + encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; fromJSON(object: any): VotingParams; toJSON(message: VotingParams): unknown; fromPartial(object: Partial): VotingParams; @@ -441,8 +447,9 @@ export declare const VotingParams: { toProtoMsg(message: VotingParams): VotingParamsProtoMsg; }; export declare const TallyParams: { - encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams; + typeUrl: string; + encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; fromJSON(object: any): TallyParams; toJSON(message: TallyParams): unknown; fromPartial(object: Partial): TallyParams; diff --git a/packages/api/types/codegen/cosmos/gov/v1/query.d.ts b/packages/api/types/codegen/cosmos/gov/v1/query.d.ts index 00bdab0e..d367ba31 100644 --- a/packages/api/types/codegen/cosmos/gov/v1/query.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1/query.d.ts @@ -1,11 +1,10 @@ import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; @@ -14,7 +13,7 @@ export interface QueryProposalRequestProtoMsg { /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryProposalRequestAminoMsg { type: "cosmos-sdk/v1/QueryProposalRequest"; @@ -22,11 +21,11 @@ export interface QueryProposalRequestAminoMsg { } /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ export interface QueryProposalResponse { - proposal: Proposal; + proposal?: Proposal; } export interface QueryProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; @@ -42,7 +41,7 @@ export interface QueryProposalResponseAminoMsg { } /** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; + proposal?: ProposalSDKType; } /** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ export interface QueryProposalsRequest { @@ -53,7 +52,7 @@ export interface QueryProposalsRequest { /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProposalsRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; @@ -62,11 +61,11 @@ export interface QueryProposalsRequestProtoMsg { /** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ export interface QueryProposalsRequestAmino { /** proposal_status defines the status of the proposals. */ - proposal_status: ProposalStatus; + proposal_status?: ProposalStatus; /** voter defines the voter address for the proposals. */ - voter: string; + voter?: string; /** depositor defines the deposit addresses from the proposals. */ - depositor: string; + depositor?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -79,7 +78,7 @@ export interface QueryProposalsRequestSDKType { proposal_status: ProposalStatus; voter: string; depositor: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryProposalsResponse is the response type for the Query/Proposals RPC @@ -88,7 +87,7 @@ export interface QueryProposalsRequestSDKType { export interface QueryProposalsResponse { proposals: Proposal[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProposalsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; @@ -99,7 +98,7 @@ export interface QueryProposalsResponseProtoMsg { * method. */ export interface QueryProposalsResponseAmino { - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -113,12 +112,12 @@ export interface QueryProposalsResponseAminoMsg { */ export interface QueryProposalsResponseSDKType { proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** voter defines the voter address for the proposals. */ voter: string; } @@ -129,9 +128,9 @@ export interface QueryVoteRequestProtoMsg { /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** voter defines the voter address for the proposals. */ - voter: string; + voter?: string; } export interface QueryVoteRequestAminoMsg { type: "cosmos-sdk/v1/QueryVoteRequest"; @@ -139,13 +138,13 @@ export interface QueryVoteRequestAminoMsg { } /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequestSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; } /** QueryVoteResponse is the response type for the Query/Vote RPC method. */ export interface QueryVoteResponse { /** vote defined the queried vote. */ - vote: Vote; + vote?: Vote; } export interface QueryVoteResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; @@ -162,14 +161,14 @@ export interface QueryVoteResponseAminoMsg { } /** QueryVoteResponse is the response type for the Query/Vote RPC method. */ export interface QueryVoteResponseSDKType { - vote: VoteSDKType; + vote?: VoteSDKType; } /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryVotesRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; @@ -178,7 +177,7 @@ export interface QueryVotesRequestProtoMsg { /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -188,15 +187,15 @@ export interface QueryVotesRequestAminoMsg { } /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; + proposal_id: bigint; + pagination?: PageRequestSDKType; } /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponse { /** votes defined the queried votes. */ votes: Vote[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryVotesResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; @@ -205,7 +204,7 @@ export interface QueryVotesResponseProtoMsg { /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponseAmino { /** votes defined the queried votes. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -216,7 +215,7 @@ export interface QueryVotesResponseAminoMsg { /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponseSDKType { votes: VoteSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { @@ -236,7 +235,7 @@ export interface QueryParamsRequestAmino { * params_type defines which parameters to query for, can be one of "voting", * "tallying" or "deposit". */ - params_type: string; + params_type?: string; } export interface QueryParamsRequestAminoMsg { type: "cosmos-sdk/v1/QueryParamsRequest"; @@ -249,11 +248,11 @@ export interface QueryParamsRequestSDKType { /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; + votingParams?: VotingParams; /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; + depositParams?: DepositParams; /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; + tallyParams?: TallyParams; } export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; @@ -274,14 +273,14 @@ export interface QueryParamsResponseAminoMsg { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; + voting_params?: VotingParamsSDKType; + deposit_params?: DepositParamsSDKType; + tally_params?: TallyParamsSDKType; } /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** depositor defines the deposit addresses from the proposals. */ depositor: string; } @@ -292,9 +291,9 @@ export interface QueryDepositRequestProtoMsg { /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** depositor defines the deposit addresses from the proposals. */ - depositor: string; + depositor?: string; } export interface QueryDepositRequestAminoMsg { type: "cosmos-sdk/v1/QueryDepositRequest"; @@ -302,13 +301,13 @@ export interface QueryDepositRequestAminoMsg { } /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequestSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; } /** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ export interface QueryDepositResponse { /** deposit defines the requested deposit. */ - deposit: Deposit; + deposit?: Deposit; } export interface QueryDepositResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; @@ -325,14 +324,14 @@ export interface QueryDepositResponseAminoMsg { } /** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; + deposit?: DepositSDKType; } /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDepositsRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; @@ -341,7 +340,7 @@ export interface QueryDepositsRequestProtoMsg { /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -351,14 +350,14 @@ export interface QueryDepositsRequestAminoMsg { } /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; + proposal_id: bigint; + pagination?: PageRequestSDKType; } /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponse { deposits: Deposit[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDepositsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; @@ -366,7 +365,7 @@ export interface QueryDepositsResponseProtoMsg { } /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponseAmino { - deposits: DepositAmino[]; + deposits?: DepositAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -377,12 +376,12 @@ export interface QueryDepositsResponseAminoMsg { /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponseSDKType { deposits: DepositSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; @@ -391,7 +390,7 @@ export interface QueryTallyResultRequestProtoMsg { /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryTallyResultRequestAminoMsg { type: "cosmos-sdk/v1/QueryTallyResultRequest"; @@ -399,12 +398,12 @@ export interface QueryTallyResultRequestAminoMsg { } /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ export interface QueryTallyResultResponse { /** tally defines the requested tally. */ - tally: TallyResult; + tally?: TallyResult; } export interface QueryTallyResultResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; @@ -421,11 +420,12 @@ export interface QueryTallyResultResponseAminoMsg { } /** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; + tally?: TallyResultSDKType; } export declare const QueryProposalRequest: { - encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; fromJSON(object: any): QueryProposalRequest; toJSON(message: QueryProposalRequest): unknown; fromPartial(object: Partial): QueryProposalRequest; @@ -438,8 +438,9 @@ export declare const QueryProposalRequest: { toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; }; export declare const QueryProposalResponse: { - encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; fromJSON(object: any): QueryProposalResponse; toJSON(message: QueryProposalResponse): unknown; fromPartial(object: Partial): QueryProposalResponse; @@ -452,8 +453,9 @@ export declare const QueryProposalResponse: { toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; }; export declare const QueryProposalsRequest: { - encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest; + typeUrl: string; + encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; fromJSON(object: any): QueryProposalsRequest; toJSON(message: QueryProposalsRequest): unknown; fromPartial(object: Partial): QueryProposalsRequest; @@ -466,8 +468,9 @@ export declare const QueryProposalsRequest: { toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; }; export declare const QueryProposalsResponse: { - encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse; + typeUrl: string; + encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; fromJSON(object: any): QueryProposalsResponse; toJSON(message: QueryProposalsResponse): unknown; fromPartial(object: Partial): QueryProposalsResponse; @@ -480,8 +483,9 @@ export declare const QueryProposalsResponse: { toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; }; export declare const QueryVoteRequest: { - encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest; + typeUrl: string; + encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; fromJSON(object: any): QueryVoteRequest; toJSON(message: QueryVoteRequest): unknown; fromPartial(object: Partial): QueryVoteRequest; @@ -494,8 +498,9 @@ export declare const QueryVoteRequest: { toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; }; export declare const QueryVoteResponse: { - encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse; + typeUrl: string; + encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; fromJSON(object: any): QueryVoteResponse; toJSON(message: QueryVoteResponse): unknown; fromPartial(object: Partial): QueryVoteResponse; @@ -508,8 +513,9 @@ export declare const QueryVoteResponse: { toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; }; export declare const QueryVotesRequest: { - encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest; + typeUrl: string; + encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; fromJSON(object: any): QueryVotesRequest; toJSON(message: QueryVotesRequest): unknown; fromPartial(object: Partial): QueryVotesRequest; @@ -522,8 +528,9 @@ export declare const QueryVotesRequest: { toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; }; export declare const QueryVotesResponse: { - encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse; + typeUrl: string; + encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; fromJSON(object: any): QueryVotesResponse; toJSON(message: QueryVotesResponse): unknown; fromPartial(object: Partial): QueryVotesResponse; @@ -536,8 +543,9 @@ export declare const QueryVotesResponse: { toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(object: any): QueryParamsRequest; toJSON(message: QueryParamsRequest): unknown; fromPartial(object: Partial): QueryParamsRequest; @@ -550,8 +558,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -564,8 +573,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryDepositRequest: { - encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest; + typeUrl: string; + encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; fromJSON(object: any): QueryDepositRequest; toJSON(message: QueryDepositRequest): unknown; fromPartial(object: Partial): QueryDepositRequest; @@ -578,8 +588,9 @@ export declare const QueryDepositRequest: { toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; }; export declare const QueryDepositResponse: { - encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse; + typeUrl: string; + encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; fromJSON(object: any): QueryDepositResponse; toJSON(message: QueryDepositResponse): unknown; fromPartial(object: Partial): QueryDepositResponse; @@ -592,8 +603,9 @@ export declare const QueryDepositResponse: { toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; }; export declare const QueryDepositsRequest: { - encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest; + typeUrl: string; + encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; fromJSON(object: any): QueryDepositsRequest; toJSON(message: QueryDepositsRequest): unknown; fromPartial(object: Partial): QueryDepositsRequest; @@ -606,8 +618,9 @@ export declare const QueryDepositsRequest: { toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; }; export declare const QueryDepositsResponse: { - encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse; + typeUrl: string; + encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; fromJSON(object: any): QueryDepositsResponse; toJSON(message: QueryDepositsResponse): unknown; fromPartial(object: Partial): QueryDepositsResponse; @@ -620,8 +633,9 @@ export declare const QueryDepositsResponse: { toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; }; export declare const QueryTallyResultRequest: { - encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; fromJSON(object: any): QueryTallyResultRequest; toJSON(message: QueryTallyResultRequest): unknown; fromPartial(object: Partial): QueryTallyResultRequest; @@ -634,8 +648,9 @@ export declare const QueryTallyResultRequest: { toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; }; export declare const QueryTallyResultResponse: { - encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; fromJSON(object: any): QueryTallyResultResponse; toJSON(message: QueryTallyResultResponse): unknown; fromPartial(object: Partial): QueryTallyResultResponse; diff --git a/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts index 9ce44b6a..e7e28345 100644 --- a/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts b/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts index 6d4d0e32..5567847f 100644 --- a/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts @@ -2,8 +2,7 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType } from "./gov"; import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. @@ -24,11 +23,11 @@ export interface MsgSubmitProposalProtoMsg { * proposal Content. */ export interface MsgSubmitProposalAmino { - messages: AnyAmino[]; - initial_deposit: CoinAmino[]; - proposer: string; + messages?: AnyAmino[]; + initial_deposit?: CoinAmino[]; + proposer?: string; /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; + metadata?: string; } export interface MsgSubmitProposalAminoMsg { type: "cosmos-sdk/v1/MsgSubmitProposal"; @@ -46,7 +45,7 @@ export interface MsgSubmitProposalSDKType { } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { - proposalId: Long; + proposalId: bigint; } export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; @@ -54,7 +53,7 @@ export interface MsgSubmitProposalResponseProtoMsg { } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseAmino { - proposal_id: string; + proposal_id?: string; } export interface MsgSubmitProposalResponseAminoMsg { type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; @@ -62,7 +61,7 @@ export interface MsgSubmitProposalResponseAminoMsg { } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; + proposal_id: bigint; } /** * MsgExecLegacyContent is used to wrap the legacy content field into a message. @@ -70,7 +69,7 @@ export interface MsgSubmitProposalResponseSDKType { */ export interface MsgExecLegacyContent { /** content is the proposal's content. */ - content: (TextProposal & Any) | undefined; + content?: (TextProposal & Any) | undefined; /** authority must be the gov module address. */ authority: string; } @@ -89,7 +88,7 @@ export interface MsgExecLegacyContentAmino { /** content is the proposal's content. */ content?: AnyAmino; /** authority must be the gov module address. */ - authority: string; + authority?: string; } export interface MsgExecLegacyContentAminoMsg { type: "cosmos-sdk/v1/MsgExecLegacyContent"; @@ -100,7 +99,7 @@ export interface MsgExecLegacyContentAminoMsg { * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. */ export interface MsgExecLegacyContentSDKType { - content: TextProposalSDKType | AnySDKType | undefined; + content?: TextProposalSDKType | AnySDKType | undefined; authority: string; } /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ @@ -122,7 +121,7 @@ export interface MsgExecLegacyContentResponseSDKType { } /** MsgVote defines a message to cast a vote. */ export interface MsgVote { - proposalId: Long; + proposalId: bigint; voter: string; option: VoteOption; metadata: string; @@ -134,9 +133,9 @@ export interface MsgVoteProtoMsg { /** MsgVote defines a message to cast a vote. */ export interface MsgVoteAmino { proposal_id: string; - voter: string; - option: VoteOption; - metadata: string; + voter?: string; + option?: VoteOption; + metadata?: string; } export interface MsgVoteAminoMsg { type: "cosmos-sdk/v1/MsgVote"; @@ -144,7 +143,7 @@ export interface MsgVoteAminoMsg { } /** MsgVote defines a message to cast a vote. */ export interface MsgVoteSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; option: VoteOption; metadata: string; @@ -168,7 +167,7 @@ export interface MsgVoteResponseSDKType { } /** MsgVoteWeighted defines a message to cast a vote. */ export interface MsgVoteWeighted { - proposalId: Long; + proposalId: bigint; voter: string; options: WeightedVoteOption[]; metadata: string; @@ -180,9 +179,9 @@ export interface MsgVoteWeightedProtoMsg { /** MsgVoteWeighted defines a message to cast a vote. */ export interface MsgVoteWeightedAmino { proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; - metadata: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; + metadata?: string; } export interface MsgVoteWeightedAminoMsg { type: "cosmos-sdk/v1/MsgVoteWeighted"; @@ -190,7 +189,7 @@ export interface MsgVoteWeightedAminoMsg { } /** MsgVoteWeighted defines a message to cast a vote. */ export interface MsgVoteWeightedSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; options: WeightedVoteOptionSDKType[]; metadata: string; @@ -214,7 +213,7 @@ export interface MsgVoteWeightedResponseSDKType { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDeposit { - proposalId: Long; + proposalId: bigint; depositor: string; amount: Coin[]; } @@ -225,8 +224,8 @@ export interface MsgDepositProtoMsg { /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositAmino { proposal_id: string; - depositor: string; - amount: CoinAmino[]; + depositor?: string; + amount?: CoinAmino[]; } export interface MsgDepositAminoMsg { type: "cosmos-sdk/v1/MsgDeposit"; @@ -234,7 +233,7 @@ export interface MsgDepositAminoMsg { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } @@ -256,8 +255,9 @@ export interface MsgDepositResponseAminoMsg { export interface MsgDepositResponseSDKType { } export declare const MsgSubmitProposal: { - encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; fromJSON(object: any): MsgSubmitProposal; toJSON(message: MsgSubmitProposal): unknown; fromPartial(object: Partial): MsgSubmitProposal; @@ -270,8 +270,9 @@ export declare const MsgSubmitProposal: { toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; }; export declare const MsgSubmitProposalResponse: { - encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; fromJSON(object: any): MsgSubmitProposalResponse; toJSON(message: MsgSubmitProposalResponse): unknown; fromPartial(object: Partial): MsgSubmitProposalResponse; @@ -284,8 +285,9 @@ export declare const MsgSubmitProposalResponse: { toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; }; export declare const MsgExecLegacyContent: { - encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent; + typeUrl: string; + encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent; fromJSON(object: any): MsgExecLegacyContent; toJSON(message: MsgExecLegacyContent): unknown; fromPartial(object: Partial): MsgExecLegacyContent; @@ -298,8 +300,9 @@ export declare const MsgExecLegacyContent: { toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg; }; export declare const MsgExecLegacyContentResponse: { - encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse; + typeUrl: string; + encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse; fromJSON(_: any): MsgExecLegacyContentResponse; toJSON(_: MsgExecLegacyContentResponse): unknown; fromPartial(_: Partial): MsgExecLegacyContentResponse; @@ -312,8 +315,9 @@ export declare const MsgExecLegacyContentResponse: { toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg; }; export declare const MsgVote: { - encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; fromJSON(object: any): MsgVote; toJSON(message: MsgVote): unknown; fromPartial(object: Partial): MsgVote; @@ -326,8 +330,9 @@ export declare const MsgVote: { toProtoMsg(message: MsgVote): MsgVoteProtoMsg; }; export declare const MsgVoteResponse: { - encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; fromJSON(_: any): MsgVoteResponse; toJSON(_: MsgVoteResponse): unknown; fromPartial(_: Partial): MsgVoteResponse; @@ -340,8 +345,9 @@ export declare const MsgVoteResponse: { toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; }; export declare const MsgVoteWeighted: { - encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted; + typeUrl: string; + encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; fromJSON(object: any): MsgVoteWeighted; toJSON(message: MsgVoteWeighted): unknown; fromPartial(object: Partial): MsgVoteWeighted; @@ -354,8 +360,9 @@ export declare const MsgVoteWeighted: { toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; }; export declare const MsgVoteWeightedResponse: { - encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse; + typeUrl: string; + encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; fromJSON(_: any): MsgVoteWeightedResponse; toJSON(_: MsgVoteWeightedResponse): unknown; fromPartial(_: Partial): MsgVoteWeightedResponse; @@ -368,8 +375,9 @@ export declare const MsgVoteWeightedResponse: { toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; }; export declare const MsgDeposit: { - encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit; + typeUrl: string; + encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; fromJSON(object: any): MsgDeposit; toJSON(message: MsgDeposit): unknown; fromPartial(object: Partial): MsgDeposit; @@ -382,8 +390,9 @@ export declare const MsgDeposit: { toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; }; export declare const MsgDepositResponse: { - encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse; + typeUrl: string; + encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; fromJSON(_: any): MsgDepositResponse; toJSON(_: MsgDepositResponse): unknown; fromPartial(_: Partial): MsgDepositResponse; @@ -395,6 +404,6 @@ export declare const MsgDepositResponse: { toProto(message: MsgDepositResponse): Uint8Array; toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; }; -export declare const Content_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => TextProposal | Any; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; export declare const Content_FromAmino: (content: AnyAmino) => Any; export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts index 40035c74..c27c9acc 100644 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts @@ -1,10 +1,9 @@ import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the gov module's genesis state. */ export interface GenesisState { /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; + startingProposalId: bigint; /** deposits defines all the deposits present at genesis. */ deposits: Deposit[]; /** votes defines all the votes present at genesis. */ @@ -25,13 +24,13 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the gov module's genesis state. */ export interface GenesisStateAmino { /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id: string; + starting_proposal_id?: string; /** deposits defines all the deposits present at genesis. */ - deposits: DepositAmino[]; + deposits?: DepositAmino[]; /** votes defines all the votes present at genesis. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** proposals defines all the proposals present at genesis. */ - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** params defines all the paramaters of related to deposit. */ deposit_params?: DepositParamsAmino; /** params defines all the paramaters of related to voting. */ @@ -45,7 +44,7 @@ export interface GenesisStateAminoMsg { } /** GenesisState defines the gov module's genesis state. */ export interface GenesisStateSDKType { - starting_proposal_id: Long; + starting_proposal_id: bigint; deposits: DepositSDKType[]; votes: VoteSDKType[]; proposals: ProposalSDKType[]; @@ -54,8 +53,9 @@ export interface GenesisStateSDKType { tally_params: TallyParamsSDKType; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts index c3f9342f..68c5f30a 100644 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts @@ -1,9 +1,8 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** VoteOption enumerates the valid vote options for a given governance proposal. */ export declare enum VoteOption { /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ @@ -76,8 +75,8 @@ export interface WeightedVoteOptionProtoMsg { * Since: cosmos-sdk 0.43 */ export interface WeightedVoteOptionAmino { - option: VoteOption; - weight: string; + option?: VoteOption; + weight?: string; } export interface WeightedVoteOptionAminoMsg { type: "cosmos-sdk/WeightedVoteOption"; @@ -97,7 +96,7 @@ export interface WeightedVoteOptionSDKType { * manually updated in case of approval. */ export interface TextProposal { - $typeUrl?: string; + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; title: string; description: string; } @@ -110,8 +109,8 @@ export interface TextProposalProtoMsg { * manually updated in case of approval. */ export interface TextProposalAmino { - title: string; - description: string; + title?: string; + description?: string; } export interface TextProposalAminoMsg { type: "cosmos-sdk/TextProposal"; @@ -122,7 +121,7 @@ export interface TextProposalAminoMsg { * manually updated in case of approval. */ export interface TextProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; title: string; description: string; } @@ -131,7 +130,7 @@ export interface TextProposalSDKType { * proposal. */ export interface Deposit { - proposalId: Long; + proposalId: bigint; depositor: string; amount: Coin[]; } @@ -144,9 +143,9 @@ export interface DepositProtoMsg { * proposal. */ export interface DepositAmino { - proposal_id: string; - depositor: string; - amount: CoinAmino[]; + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; } export interface DepositAminoMsg { type: "cosmos-sdk/Deposit"; @@ -157,14 +156,14 @@ export interface DepositAminoMsg { * proposal. */ export interface DepositSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } /** Proposal defines the core field members of a governance proposal. */ export interface Proposal { - proposalId: Long; - content: (TextProposal & Any) | undefined; + proposalId: bigint; + content?: (TextProposal & Any) | undefined; status: ProposalStatus; /** * final_tally_result is the final tally result of the proposal. When @@ -187,20 +186,20 @@ export type ProposalEncoded = Omit & { }; /** Proposal defines the core field members of a governance proposal. */ export interface ProposalAmino { - proposal_id: string; + proposal_id?: string; content?: AnyAmino; - status: ProposalStatus; + status?: ProposalStatus; /** * final_tally_result is the final tally result of the proposal. When * querying a proposal via gRPC, this field is not populated until the * proposal's voting period has ended. */ final_tally_result?: TallyResultAmino; - submit_time?: TimestampAmino; - deposit_end_time?: TimestampAmino; - total_deposit: CoinAmino[]; - voting_start_time?: TimestampAmino; - voting_end_time?: TimestampAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; } export interface ProposalAminoMsg { type: "cosmos-sdk/Proposal"; @@ -208,8 +207,8 @@ export interface ProposalAminoMsg { } /** Proposal defines the core field members of a governance proposal. */ export interface ProposalSDKType { - proposal_id: Long; - content: TextProposalSDKType | AnySDKType | undefined; + proposal_id: bigint; + content?: TextProposalSDKType | AnySDKType | undefined; status: ProposalStatus; final_tally_result: TallyResultSDKType; submit_time: TimestampSDKType; @@ -231,10 +230,10 @@ export interface TallyResultProtoMsg { } /** TallyResult defines a standard tally for a governance proposal. */ export interface TallyResultAmino { - yes: string; - abstain: string; - no: string; - no_with_veto: string; + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; } export interface TallyResultAminoMsg { type: "cosmos-sdk/TallyResult"; @@ -252,7 +251,7 @@ export interface TallyResultSDKType { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface Vote { - proposalId: Long; + proposalId: bigint; voter: string; /** * Deprecated: Prefer to use `options` instead. This field is set in queries @@ -274,16 +273,16 @@ export interface VoteProtoMsg { */ export interface VoteAmino { proposal_id: string; - voter: string; + voter?: string; /** * Deprecated: Prefer to use `options` instead. This field is set in queries * if and only if `len(options) == 1` and that option has weight 1. In all * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. */ /** @deprecated */ - option: VoteOption; + option?: VoteOption; /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOptionAmino[]; + options?: WeightedVoteOptionAmino[]; } export interface VoteAminoMsg { type: "cosmos-sdk/Vote"; @@ -294,7 +293,7 @@ export interface VoteAminoMsg { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface VoteSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; /** @deprecated */ option: VoteOption; @@ -317,7 +316,7 @@ export interface DepositParamsProtoMsg { /** DepositParams defines the params for deposits on governance proposals. */ export interface DepositParamsAmino { /** Minimum deposit for a proposal to enter voting period. */ - min_deposit: CoinAmino[]; + min_deposit?: CoinAmino[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. @@ -380,14 +379,14 @@ export interface TallyParamsAmino { * Minimum percentage of total stake needed to vote for a result to be * considered valid. */ - quorum: Uint8Array; + quorum?: string; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; + threshold?: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. */ - veto_threshold: Uint8Array; + veto_threshold?: string; } export interface TallyParamsAminoMsg { type: "cosmos-sdk/TallyParams"; @@ -400,8 +399,9 @@ export interface TallyParamsSDKType { veto_threshold: Uint8Array; } export declare const WeightedVoteOption: { - encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption; + typeUrl: string; + encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; fromJSON(object: any): WeightedVoteOption; toJSON(message: WeightedVoteOption): unknown; fromPartial(object: Partial): WeightedVoteOption; @@ -414,8 +414,9 @@ export declare const WeightedVoteOption: { toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; }; export declare const TextProposal: { - encode(message: TextProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal; + typeUrl: string; + encode(message: TextProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TextProposal; fromJSON(object: any): TextProposal; toJSON(message: TextProposal): unknown; fromPartial(object: Partial): TextProposal; @@ -428,8 +429,9 @@ export declare const TextProposal: { toProtoMsg(message: TextProposal): TextProposalProtoMsg; }; export declare const Deposit: { - encode(message: Deposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Deposit; + typeUrl: string; + encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Deposit; fromJSON(object: any): Deposit; toJSON(message: Deposit): unknown; fromPartial(object: Partial): Deposit; @@ -442,8 +444,9 @@ export declare const Deposit: { toProtoMsg(message: Deposit): DepositProtoMsg; }; export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): unknown; fromPartial(object: Partial): Proposal; @@ -456,8 +459,9 @@ export declare const Proposal: { toProtoMsg(message: Proposal): ProposalProtoMsg; }; export declare const TallyResult: { - encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; fromJSON(object: any): TallyResult; toJSON(message: TallyResult): unknown; fromPartial(object: Partial): TallyResult; @@ -470,8 +474,9 @@ export declare const TallyResult: { toProtoMsg(message: TallyResult): TallyResultProtoMsg; }; export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): unknown; fromPartial(object: Partial): Vote; @@ -484,8 +489,9 @@ export declare const Vote: { toProtoMsg(message: Vote): VoteProtoMsg; }; export declare const DepositParams: { - encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams; + typeUrl: string; + encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; fromJSON(object: any): DepositParams; toJSON(message: DepositParams): unknown; fromPartial(object: Partial): DepositParams; @@ -498,8 +504,9 @@ export declare const DepositParams: { toProtoMsg(message: DepositParams): DepositParamsProtoMsg; }; export declare const VotingParams: { - encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams; + typeUrl: string; + encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; fromJSON(object: any): VotingParams; toJSON(message: VotingParams): unknown; fromPartial(object: Partial): VotingParams; @@ -512,8 +519,9 @@ export declare const VotingParams: { toProtoMsg(message: VotingParams): VotingParamsProtoMsg; }; export declare const TallyParams: { - encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams; + typeUrl: string; + encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; fromJSON(object: any): TallyParams; toJSON(message: TallyParams): unknown; fromPartial(object: Partial): TallyParams; @@ -525,6 +533,6 @@ export declare const TallyParams: { toProto(message: TallyParams): Uint8Array; toProtoMsg(message: TallyParams): TallyParamsProtoMsg; }; -export declare const Content_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => TextProposal | Any; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; export declare const Content_FromAmino: (content: AnyAmino) => Any; export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts index 6bc1b944..28336b56 100644 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts @@ -1,11 +1,10 @@ import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; @@ -14,7 +13,7 @@ export interface QueryProposalRequestProtoMsg { /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryProposalRequestAminoMsg { type: "cosmos-sdk/QueryProposalRequest"; @@ -22,7 +21,7 @@ export interface QueryProposalRequestAminoMsg { } /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ export interface QueryProposalResponse { @@ -53,7 +52,7 @@ export interface QueryProposalsRequest { /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProposalsRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; @@ -62,11 +61,11 @@ export interface QueryProposalsRequestProtoMsg { /** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ export interface QueryProposalsRequestAmino { /** proposal_status defines the status of the proposals. */ - proposal_status: ProposalStatus; + proposal_status?: ProposalStatus; /** voter defines the voter address for the proposals. */ - voter: string; + voter?: string; /** depositor defines the deposit addresses from the proposals. */ - depositor: string; + depositor?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -79,7 +78,7 @@ export interface QueryProposalsRequestSDKType { proposal_status: ProposalStatus; voter: string; depositor: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryProposalsResponse is the response type for the Query/Proposals RPC @@ -88,7 +87,7 @@ export interface QueryProposalsRequestSDKType { export interface QueryProposalsResponse { proposals: Proposal[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProposalsResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; @@ -99,7 +98,7 @@ export interface QueryProposalsResponseProtoMsg { * method. */ export interface QueryProposalsResponseAmino { - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -113,12 +112,12 @@ export interface QueryProposalsResponseAminoMsg { */ export interface QueryProposalsResponseSDKType { proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** voter defines the voter address for the proposals. */ voter: string; } @@ -129,9 +128,9 @@ export interface QueryVoteRequestProtoMsg { /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** voter defines the voter address for the proposals. */ - voter: string; + voter?: string; } export interface QueryVoteRequestAminoMsg { type: "cosmos-sdk/QueryVoteRequest"; @@ -139,7 +138,7 @@ export interface QueryVoteRequestAminoMsg { } /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequestSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; } /** QueryVoteResponse is the response type for the Query/Vote RPC method. */ @@ -167,9 +166,9 @@ export interface QueryVoteResponseSDKType { /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryVotesRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; @@ -178,7 +177,7 @@ export interface QueryVotesRequestProtoMsg { /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -188,15 +187,15 @@ export interface QueryVotesRequestAminoMsg { } /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; + proposal_id: bigint; + pagination?: PageRequestSDKType; } /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponse { /** votes defined the queried votes. */ votes: Vote[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryVotesResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; @@ -205,7 +204,7 @@ export interface QueryVotesResponseProtoMsg { /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponseAmino { /** votes defined the queried votes. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -216,7 +215,7 @@ export interface QueryVotesResponseAminoMsg { /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponseSDKType { votes: VoteSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { @@ -236,7 +235,7 @@ export interface QueryParamsRequestAmino { * params_type defines which parameters to query for, can be one of "voting", * "tallying" or "deposit". */ - params_type: string; + params_type?: string; } export interface QueryParamsRequestAminoMsg { type: "cosmos-sdk/QueryParamsRequest"; @@ -281,7 +280,7 @@ export interface QueryParamsResponseSDKType { /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** depositor defines the deposit addresses from the proposals. */ depositor: string; } @@ -292,9 +291,9 @@ export interface QueryDepositRequestProtoMsg { /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** depositor defines the deposit addresses from the proposals. */ - depositor: string; + depositor?: string; } export interface QueryDepositRequestAminoMsg { type: "cosmos-sdk/QueryDepositRequest"; @@ -302,7 +301,7 @@ export interface QueryDepositRequestAminoMsg { } /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequestSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; } /** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ @@ -330,9 +329,9 @@ export interface QueryDepositResponseSDKType { /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDepositsRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; @@ -341,7 +340,7 @@ export interface QueryDepositsRequestProtoMsg { /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -351,14 +350,14 @@ export interface QueryDepositsRequestAminoMsg { } /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; + proposal_id: bigint; + pagination?: PageRequestSDKType; } /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponse { deposits: Deposit[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDepositsResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; @@ -366,7 +365,7 @@ export interface QueryDepositsResponseProtoMsg { } /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponseAmino { - deposits: DepositAmino[]; + deposits?: DepositAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -377,12 +376,12 @@ export interface QueryDepositsResponseAminoMsg { /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponseSDKType { deposits: DepositSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequest { /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; @@ -391,7 +390,7 @@ export interface QueryTallyResultRequestProtoMsg { /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequestAmino { /** proposal_id defines the unique id of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryTallyResultRequestAminoMsg { type: "cosmos-sdk/QueryTallyResultRequest"; @@ -399,7 +398,7 @@ export interface QueryTallyResultRequestAminoMsg { } /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ export interface QueryTallyResultResponse { @@ -424,8 +423,9 @@ export interface QueryTallyResultResponseSDKType { tally: TallyResultSDKType; } export declare const QueryProposalRequest: { - encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; fromJSON(object: any): QueryProposalRequest; toJSON(message: QueryProposalRequest): unknown; fromPartial(object: Partial): QueryProposalRequest; @@ -438,8 +438,9 @@ export declare const QueryProposalRequest: { toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; }; export declare const QueryProposalResponse: { - encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; fromJSON(object: any): QueryProposalResponse; toJSON(message: QueryProposalResponse): unknown; fromPartial(object: Partial): QueryProposalResponse; @@ -452,8 +453,9 @@ export declare const QueryProposalResponse: { toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; }; export declare const QueryProposalsRequest: { - encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest; + typeUrl: string; + encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; fromJSON(object: any): QueryProposalsRequest; toJSON(message: QueryProposalsRequest): unknown; fromPartial(object: Partial): QueryProposalsRequest; @@ -466,8 +468,9 @@ export declare const QueryProposalsRequest: { toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; }; export declare const QueryProposalsResponse: { - encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse; + typeUrl: string; + encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; fromJSON(object: any): QueryProposalsResponse; toJSON(message: QueryProposalsResponse): unknown; fromPartial(object: Partial): QueryProposalsResponse; @@ -480,8 +483,9 @@ export declare const QueryProposalsResponse: { toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; }; export declare const QueryVoteRequest: { - encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest; + typeUrl: string; + encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; fromJSON(object: any): QueryVoteRequest; toJSON(message: QueryVoteRequest): unknown; fromPartial(object: Partial): QueryVoteRequest; @@ -494,8 +498,9 @@ export declare const QueryVoteRequest: { toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; }; export declare const QueryVoteResponse: { - encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse; + typeUrl: string; + encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; fromJSON(object: any): QueryVoteResponse; toJSON(message: QueryVoteResponse): unknown; fromPartial(object: Partial): QueryVoteResponse; @@ -508,8 +513,9 @@ export declare const QueryVoteResponse: { toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; }; export declare const QueryVotesRequest: { - encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest; + typeUrl: string; + encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; fromJSON(object: any): QueryVotesRequest; toJSON(message: QueryVotesRequest): unknown; fromPartial(object: Partial): QueryVotesRequest; @@ -522,8 +528,9 @@ export declare const QueryVotesRequest: { toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; }; export declare const QueryVotesResponse: { - encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse; + typeUrl: string; + encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; fromJSON(object: any): QueryVotesResponse; toJSON(message: QueryVotesResponse): unknown; fromPartial(object: Partial): QueryVotesResponse; @@ -536,8 +543,9 @@ export declare const QueryVotesResponse: { toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(object: any): QueryParamsRequest; toJSON(message: QueryParamsRequest): unknown; fromPartial(object: Partial): QueryParamsRequest; @@ -550,8 +558,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -564,8 +573,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryDepositRequest: { - encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest; + typeUrl: string; + encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; fromJSON(object: any): QueryDepositRequest; toJSON(message: QueryDepositRequest): unknown; fromPartial(object: Partial): QueryDepositRequest; @@ -578,8 +588,9 @@ export declare const QueryDepositRequest: { toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; }; export declare const QueryDepositResponse: { - encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse; + typeUrl: string; + encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; fromJSON(object: any): QueryDepositResponse; toJSON(message: QueryDepositResponse): unknown; fromPartial(object: Partial): QueryDepositResponse; @@ -592,8 +603,9 @@ export declare const QueryDepositResponse: { toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; }; export declare const QueryDepositsRequest: { - encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest; + typeUrl: string; + encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; fromJSON(object: any): QueryDepositsRequest; toJSON(message: QueryDepositsRequest): unknown; fromPartial(object: Partial): QueryDepositsRequest; @@ -606,8 +618,9 @@ export declare const QueryDepositsRequest: { toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; }; export declare const QueryDepositsResponse: { - encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse; + typeUrl: string; + encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; fromJSON(object: any): QueryDepositsResponse; toJSON(message: QueryDepositsResponse): unknown; fromPartial(object: Partial): QueryDepositsResponse; @@ -620,8 +633,9 @@ export declare const QueryDepositsResponse: { toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; }; export declare const QueryTallyResultRequest: { - encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; fromJSON(object: any): QueryTallyResultRequest; toJSON(message: QueryTallyResultRequest): unknown; fromPartial(object: Partial): QueryTallyResultRequest; @@ -634,8 +648,9 @@ export declare const QueryTallyResultRequest: { toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; }; export declare const QueryTallyResultResponse: { - encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; fromJSON(object: any): QueryTallyResultResponse; toJSON(message: QueryTallyResultResponse): unknown; fromPartial(object: Partial): QueryTallyResultResponse; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts index 9ce44b6a..e7e28345 100644 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts index 47041f40..b590591c 100644 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts @@ -1,14 +1,13 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposal { - content: (TextProposal & Any) | undefined; + content?: (TextProposal & Any) | undefined; initialDeposit: Coin[]; proposer: string; } @@ -25,8 +24,8 @@ export type MsgSubmitProposalEncoded = Omit & { */ export interface MsgSubmitProposalAmino { content?: AnyAmino; - initial_deposit: CoinAmino[]; - proposer: string; + initial_deposit?: CoinAmino[]; + proposer?: string; } export interface MsgSubmitProposalAminoMsg { type: "cosmos-sdk/MsgSubmitProposal"; @@ -37,13 +36,13 @@ export interface MsgSubmitProposalAminoMsg { * proposal Content. */ export interface MsgSubmitProposalSDKType { - content: TextProposalSDKType | AnySDKType | undefined; + content?: TextProposalSDKType | AnySDKType | undefined; initial_deposit: CoinSDKType[]; proposer: string; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { - proposalId: Long; + proposalId: bigint; } export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; @@ -59,11 +58,11 @@ export interface MsgSubmitProposalResponseAminoMsg { } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; + proposal_id: bigint; } /** MsgVote defines a message to cast a vote. */ export interface MsgVote { - proposalId: Long; + proposalId: bigint; voter: string; option: VoteOption; } @@ -73,9 +72,9 @@ export interface MsgVoteProtoMsg { } /** MsgVote defines a message to cast a vote. */ export interface MsgVoteAmino { - proposal_id: string; - voter: string; - option: VoteOption; + proposal_id?: string; + voter?: string; + option?: VoteOption; } export interface MsgVoteAminoMsg { type: "cosmos-sdk/MsgVote"; @@ -83,7 +82,7 @@ export interface MsgVoteAminoMsg { } /** MsgVote defines a message to cast a vote. */ export interface MsgVoteSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; option: VoteOption; } @@ -110,7 +109,7 @@ export interface MsgVoteResponseSDKType { * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeighted { - proposalId: Long; + proposalId: bigint; voter: string; options: WeightedVoteOption[]; } @@ -125,8 +124,8 @@ export interface MsgVoteWeightedProtoMsg { */ export interface MsgVoteWeightedAmino { proposal_id: string; - voter: string; - options: WeightedVoteOptionAmino[]; + voter?: string; + options?: WeightedVoteOptionAmino[]; } export interface MsgVoteWeightedAminoMsg { type: "cosmos-sdk/MsgVoteWeighted"; @@ -138,7 +137,7 @@ export interface MsgVoteWeightedAminoMsg { * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; options: WeightedVoteOptionSDKType[]; } @@ -173,7 +172,7 @@ export interface MsgVoteWeightedResponseSDKType { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDeposit { - proposalId: Long; + proposalId: bigint; depositor: string; amount: Coin[]; } @@ -184,8 +183,8 @@ export interface MsgDepositProtoMsg { /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositAmino { proposal_id: string; - depositor: string; - amount: CoinAmino[]; + depositor?: string; + amount?: CoinAmino[]; } export interface MsgDepositAminoMsg { type: "cosmos-sdk/MsgDeposit"; @@ -193,7 +192,7 @@ export interface MsgDepositAminoMsg { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositSDKType { - proposal_id: Long; + proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } @@ -215,8 +214,9 @@ export interface MsgDepositResponseAminoMsg { export interface MsgDepositResponseSDKType { } export declare const MsgSubmitProposal: { - encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; fromJSON(object: any): MsgSubmitProposal; toJSON(message: MsgSubmitProposal): unknown; fromPartial(object: Partial): MsgSubmitProposal; @@ -229,8 +229,9 @@ export declare const MsgSubmitProposal: { toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; }; export declare const MsgSubmitProposalResponse: { - encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; fromJSON(object: any): MsgSubmitProposalResponse; toJSON(message: MsgSubmitProposalResponse): unknown; fromPartial(object: Partial): MsgSubmitProposalResponse; @@ -243,8 +244,9 @@ export declare const MsgSubmitProposalResponse: { toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; }; export declare const MsgVote: { - encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; fromJSON(object: any): MsgVote; toJSON(message: MsgVote): unknown; fromPartial(object: Partial): MsgVote; @@ -257,8 +259,9 @@ export declare const MsgVote: { toProtoMsg(message: MsgVote): MsgVoteProtoMsg; }; export declare const MsgVoteResponse: { - encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; fromJSON(_: any): MsgVoteResponse; toJSON(_: MsgVoteResponse): unknown; fromPartial(_: Partial): MsgVoteResponse; @@ -271,8 +274,9 @@ export declare const MsgVoteResponse: { toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; }; export declare const MsgVoteWeighted: { - encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted; + typeUrl: string; + encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; fromJSON(object: any): MsgVoteWeighted; toJSON(message: MsgVoteWeighted): unknown; fromPartial(object: Partial): MsgVoteWeighted; @@ -285,8 +289,9 @@ export declare const MsgVoteWeighted: { toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; }; export declare const MsgVoteWeightedResponse: { - encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse; + typeUrl: string; + encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; fromJSON(_: any): MsgVoteWeightedResponse; toJSON(_: MsgVoteWeightedResponse): unknown; fromPartial(_: Partial): MsgVoteWeightedResponse; @@ -299,8 +304,9 @@ export declare const MsgVoteWeightedResponse: { toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; }; export declare const MsgDeposit: { - encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit; + typeUrl: string; + encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; fromJSON(object: any): MsgDeposit; toJSON(message: MsgDeposit): unknown; fromPartial(object: Partial): MsgDeposit; @@ -313,8 +319,9 @@ export declare const MsgDeposit: { toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; }; export declare const MsgDepositResponse: { - encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse; + typeUrl: string; + encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; fromJSON(_: any): MsgDepositResponse; toJSON(_: MsgDepositResponse): unknown; fromPartial(_: Partial): MsgDepositResponse; @@ -326,6 +333,6 @@ export declare const MsgDepositResponse: { toProto(message: MsgDepositResponse): Uint8Array; toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; }; -export declare const Content_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => TextProposal | Any; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; export declare const Content_FromAmino: (content: AnyAmino) => Any; export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/group/v1/events.d.ts b/packages/api/types/codegen/cosmos/group/v1/events.d.ts index ff558676..d142db91 100644 --- a/packages/api/types/codegen/cosmos/group/v1/events.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/events.d.ts @@ -1,10 +1,9 @@ import { ProposalExecutorResult } from "./types"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventCreateGroup is an event emitted when a group is created. */ export interface EventCreateGroup { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; } export interface EventCreateGroupProtoMsg { typeUrl: "/cosmos.group.v1.EventCreateGroup"; @@ -13,7 +12,7 @@ export interface EventCreateGroupProtoMsg { /** EventCreateGroup is an event emitted when a group is created. */ export interface EventCreateGroupAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; } export interface EventCreateGroupAminoMsg { type: "cosmos-sdk/EventCreateGroup"; @@ -21,12 +20,12 @@ export interface EventCreateGroupAminoMsg { } /** EventCreateGroup is an event emitted when a group is created. */ export interface EventCreateGroupSDKType { - group_id: Long; + group_id: bigint; } /** EventUpdateGroup is an event emitted when a group is updated. */ export interface EventUpdateGroup { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; } export interface EventUpdateGroupProtoMsg { typeUrl: "/cosmos.group.v1.EventUpdateGroup"; @@ -35,7 +34,7 @@ export interface EventUpdateGroupProtoMsg { /** EventUpdateGroup is an event emitted when a group is updated. */ export interface EventUpdateGroupAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; } export interface EventUpdateGroupAminoMsg { type: "cosmos-sdk/EventUpdateGroup"; @@ -43,7 +42,7 @@ export interface EventUpdateGroupAminoMsg { } /** EventUpdateGroup is an event emitted when a group is updated. */ export interface EventUpdateGroupSDKType { - group_id: Long; + group_id: bigint; } /** EventCreateGroupPolicy is an event emitted when a group policy is created. */ export interface EventCreateGroupPolicy { @@ -57,7 +56,7 @@ export interface EventCreateGroupPolicyProtoMsg { /** EventCreateGroupPolicy is an event emitted when a group policy is created. */ export interface EventCreateGroupPolicyAmino { /** address is the account address of the group policy. */ - address: string; + address?: string; } export interface EventCreateGroupPolicyAminoMsg { type: "cosmos-sdk/EventCreateGroupPolicy"; @@ -79,7 +78,7 @@ export interface EventUpdateGroupPolicyProtoMsg { /** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ export interface EventUpdateGroupPolicyAmino { /** address is the account address of the group policy. */ - address: string; + address?: string; } export interface EventUpdateGroupPolicyAminoMsg { type: "cosmos-sdk/EventUpdateGroupPolicy"; @@ -92,7 +91,7 @@ export interface EventUpdateGroupPolicySDKType { /** EventSubmitProposal is an event emitted when a proposal is created. */ export interface EventSubmitProposal { /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface EventSubmitProposalProtoMsg { typeUrl: "/cosmos.group.v1.EventSubmitProposal"; @@ -101,7 +100,7 @@ export interface EventSubmitProposalProtoMsg { /** EventSubmitProposal is an event emitted when a proposal is created. */ export interface EventSubmitProposalAmino { /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface EventSubmitProposalAminoMsg { type: "cosmos-sdk/EventSubmitProposal"; @@ -109,12 +108,12 @@ export interface EventSubmitProposalAminoMsg { } /** EventSubmitProposal is an event emitted when a proposal is created. */ export interface EventSubmitProposalSDKType { - proposal_id: Long; + proposal_id: bigint; } /** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ export interface EventWithdrawProposal { /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface EventWithdrawProposalProtoMsg { typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; @@ -123,7 +122,7 @@ export interface EventWithdrawProposalProtoMsg { /** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ export interface EventWithdrawProposalAmino { /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface EventWithdrawProposalAminoMsg { type: "cosmos-sdk/EventWithdrawProposal"; @@ -131,12 +130,12 @@ export interface EventWithdrawProposalAminoMsg { } /** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ export interface EventWithdrawProposalSDKType { - proposal_id: Long; + proposal_id: bigint; } /** EventVote is an event emitted when a voter votes on a proposal. */ export interface EventVote { /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; + proposalId: bigint; } export interface EventVoteProtoMsg { typeUrl: "/cosmos.group.v1.EventVote"; @@ -145,7 +144,7 @@ export interface EventVoteProtoMsg { /** EventVote is an event emitted when a voter votes on a proposal. */ export interface EventVoteAmino { /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; + proposal_id?: string; } export interface EventVoteAminoMsg { type: "cosmos-sdk/EventVote"; @@ -153,12 +152,12 @@ export interface EventVoteAminoMsg { } /** EventVote is an event emitted when a voter votes on a proposal. */ export interface EventVoteSDKType { - proposal_id: Long; + proposal_id: bigint; } /** EventExec is an event emitted when a proposal is executed. */ export interface EventExec { /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; + proposalId: bigint; /** result is the proposal execution result. */ result: ProposalExecutorResult; /** logs contains error logs in case the execution result is FAILURE. */ @@ -171,11 +170,11 @@ export interface EventExecProtoMsg { /** EventExec is an event emitted when a proposal is executed. */ export interface EventExecAmino { /** proposal_id is the unique ID of the proposal. */ - proposal_id: string; + proposal_id?: string; /** result is the proposal execution result. */ - result: ProposalExecutorResult; + result?: ProposalExecutorResult; /** logs contains error logs in case the execution result is FAILURE. */ - logs: string; + logs?: string; } export interface EventExecAminoMsg { type: "cosmos-sdk/EventExec"; @@ -183,14 +182,14 @@ export interface EventExecAminoMsg { } /** EventExec is an event emitted when a proposal is executed. */ export interface EventExecSDKType { - proposal_id: Long; + proposal_id: bigint; result: ProposalExecutorResult; logs: string; } /** EventLeaveGroup is an event emitted when group member leaves the group. */ export interface EventLeaveGroup { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** address is the account address of the group member. */ address: string; } @@ -201,9 +200,9 @@ export interface EventLeaveGroupProtoMsg { /** EventLeaveGroup is an event emitted when group member leaves the group. */ export interface EventLeaveGroupAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** address is the account address of the group member. */ - address: string; + address?: string; } export interface EventLeaveGroupAminoMsg { type: "cosmos-sdk/EventLeaveGroup"; @@ -211,12 +210,13 @@ export interface EventLeaveGroupAminoMsg { } /** EventLeaveGroup is an event emitted when group member leaves the group. */ export interface EventLeaveGroupSDKType { - group_id: Long; + group_id: bigint; address: string; } export declare const EventCreateGroup: { - encode(message: EventCreateGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroup; + typeUrl: string; + encode(message: EventCreateGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup; fromJSON(object: any): EventCreateGroup; toJSON(message: EventCreateGroup): unknown; fromPartial(object: Partial): EventCreateGroup; @@ -229,8 +229,9 @@ export declare const EventCreateGroup: { toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg; }; export declare const EventUpdateGroup: { - encode(message: EventUpdateGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroup; + typeUrl: string; + encode(message: EventUpdateGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup; fromJSON(object: any): EventUpdateGroup; toJSON(message: EventUpdateGroup): unknown; fromPartial(object: Partial): EventUpdateGroup; @@ -243,8 +244,9 @@ export declare const EventUpdateGroup: { toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg; }; export declare const EventCreateGroupPolicy: { - encode(message: EventCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroupPolicy; + typeUrl: string; + encode(message: EventCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy; fromJSON(object: any): EventCreateGroupPolicy; toJSON(message: EventCreateGroupPolicy): unknown; fromPartial(object: Partial): EventCreateGroupPolicy; @@ -257,8 +259,9 @@ export declare const EventCreateGroupPolicy: { toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg; }; export declare const EventUpdateGroupPolicy: { - encode(message: EventUpdateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroupPolicy; + typeUrl: string; + encode(message: EventUpdateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy; fromJSON(object: any): EventUpdateGroupPolicy; toJSON(message: EventUpdateGroupPolicy): unknown; fromPartial(object: Partial): EventUpdateGroupPolicy; @@ -271,8 +274,9 @@ export declare const EventUpdateGroupPolicy: { toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg; }; export declare const EventSubmitProposal: { - encode(message: EventSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSubmitProposal; + typeUrl: string; + encode(message: EventSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal; fromJSON(object: any): EventSubmitProposal; toJSON(message: EventSubmitProposal): unknown; fromPartial(object: Partial): EventSubmitProposal; @@ -285,8 +289,9 @@ export declare const EventSubmitProposal: { toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg; }; export declare const EventWithdrawProposal: { - encode(message: EventWithdrawProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventWithdrawProposal; + typeUrl: string; + encode(message: EventWithdrawProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal; fromJSON(object: any): EventWithdrawProposal; toJSON(message: EventWithdrawProposal): unknown; fromPartial(object: Partial): EventWithdrawProposal; @@ -299,8 +304,9 @@ export declare const EventWithdrawProposal: { toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg; }; export declare const EventVote: { - encode(message: EventVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventVote; + typeUrl: string; + encode(message: EventVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventVote; fromJSON(object: any): EventVote; toJSON(message: EventVote): unknown; fromPartial(object: Partial): EventVote; @@ -313,8 +319,9 @@ export declare const EventVote: { toProtoMsg(message: EventVote): EventVoteProtoMsg; }; export declare const EventExec: { - encode(message: EventExec, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventExec; + typeUrl: string; + encode(message: EventExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventExec; fromJSON(object: any): EventExec; toJSON(message: EventExec): unknown; fromPartial(object: Partial): EventExec; @@ -327,8 +334,9 @@ export declare const EventExec: { toProtoMsg(message: EventExec): EventExecProtoMsg; }; export declare const EventLeaveGroup: { - encode(message: EventLeaveGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventLeaveGroup; + typeUrl: string; + encode(message: EventLeaveGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup; fromJSON(object: any): EventLeaveGroup; toJSON(message: EventLeaveGroup): unknown; fromPartial(object: Partial): EventLeaveGroup; diff --git a/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts b/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts index ddd20636..606ec427 100644 --- a/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts @@ -1,13 +1,12 @@ import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the group module's genesis state. */ export interface GenesisState { /** * group_seq is the group table orm.Sequence, * it is used to get the next group ID. */ - groupSeq: Long; + groupSeq: bigint; /** groups is the list of groups info. */ groups: GroupInfo[]; /** group_members is the list of groups members. */ @@ -16,14 +15,14 @@ export interface GenesisState { * group_policy_seq is the group policy table orm.Sequence, * it is used to generate the next group policy account address. */ - groupPolicySeq: Long; + groupPolicySeq: bigint; /** group_policies is the list of group policies info. */ groupPolicies: GroupPolicyInfo[]; /** * proposal_seq is the proposal table orm.Sequence, * it is used to get the next proposal ID. */ - proposalSeq: Long; + proposalSeq: bigint; /** proposals is the list of proposals. */ proposals: Proposal[]; /** votes is the list of votes. */ @@ -39,27 +38,27 @@ export interface GenesisStateAmino { * group_seq is the group table orm.Sequence, * it is used to get the next group ID. */ - group_seq: string; + group_seq?: string; /** groups is the list of groups info. */ - groups: GroupInfoAmino[]; + groups?: GroupInfoAmino[]; /** group_members is the list of groups members. */ - group_members: GroupMemberAmino[]; + group_members?: GroupMemberAmino[]; /** * group_policy_seq is the group policy table orm.Sequence, * it is used to generate the next group policy account address. */ - group_policy_seq: string; + group_policy_seq?: string; /** group_policies is the list of group policies info. */ - group_policies: GroupPolicyInfoAmino[]; + group_policies?: GroupPolicyInfoAmino[]; /** * proposal_seq is the proposal table orm.Sequence, * it is used to get the next proposal ID. */ - proposal_seq: string; + proposal_seq?: string; /** proposals is the list of proposals. */ - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** votes is the list of votes. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -67,18 +66,19 @@ export interface GenesisStateAminoMsg { } /** GenesisState defines the group module's genesis state. */ export interface GenesisStateSDKType { - group_seq: Long; + group_seq: bigint; groups: GroupInfoSDKType[]; group_members: GroupMemberSDKType[]; - group_policy_seq: Long; + group_policy_seq: bigint; group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: Long; + proposal_seq: bigint; proposals: ProposalSDKType[]; votes: VoteSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/group/v1/query.d.ts b/packages/api/types/codegen/cosmos/group/v1/query.d.ts index 30c704fe..f22cb3e8 100644 --- a/packages/api/types/codegen/cosmos/group/v1/query.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/query.d.ts @@ -1,11 +1,10 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryGroupInfoRequest is the Query/GroupInfo request type. */ export interface QueryGroupInfoRequest { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; } export interface QueryGroupInfoRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; @@ -14,7 +13,7 @@ export interface QueryGroupInfoRequestProtoMsg { /** QueryGroupInfoRequest is the Query/GroupInfo request type. */ export interface QueryGroupInfoRequestAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; } export interface QueryGroupInfoRequestAminoMsg { type: "cosmos-sdk/QueryGroupInfoRequest"; @@ -22,12 +21,12 @@ export interface QueryGroupInfoRequestAminoMsg { } /** QueryGroupInfoRequest is the Query/GroupInfo request type. */ export interface QueryGroupInfoRequestSDKType { - group_id: Long; + group_id: bigint; } /** QueryGroupInfoResponse is the Query/GroupInfo response type. */ export interface QueryGroupInfoResponse { /** info is the GroupInfo for the group. */ - info: GroupInfo; + info?: GroupInfo; } export interface QueryGroupInfoResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; @@ -44,7 +43,7 @@ export interface QueryGroupInfoResponseAminoMsg { } /** QueryGroupInfoResponse is the Query/GroupInfo response type. */ export interface QueryGroupInfoResponseSDKType { - info: GroupInfoSDKType; + info?: GroupInfoSDKType; } /** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ export interface QueryGroupPolicyInfoRequest { @@ -58,7 +57,7 @@ export interface QueryGroupPolicyInfoRequestProtoMsg { /** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ export interface QueryGroupPolicyInfoRequestAmino { /** address is the account address of the group policy. */ - address: string; + address?: string; } export interface QueryGroupPolicyInfoRequestAminoMsg { type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; @@ -71,7 +70,7 @@ export interface QueryGroupPolicyInfoRequestSDKType { /** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ export interface QueryGroupPolicyInfoResponse { /** info is the GroupPolicyInfo for the group policy. */ - info: GroupPolicyInfo; + info?: GroupPolicyInfo; } export interface QueryGroupPolicyInfoResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; @@ -88,14 +87,14 @@ export interface QueryGroupPolicyInfoResponseAminoMsg { } /** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ export interface QueryGroupPolicyInfoResponseSDKType { - info: GroupPolicyInfoSDKType; + info?: GroupPolicyInfoSDKType; } /** QueryGroupMembersRequest is the Query/GroupMembers request type. */ export interface QueryGroupMembersRequest { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGroupMembersRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; @@ -104,7 +103,7 @@ export interface QueryGroupMembersRequestProtoMsg { /** QueryGroupMembersRequest is the Query/GroupMembers request type. */ export interface QueryGroupMembersRequestAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -114,15 +113,15 @@ export interface QueryGroupMembersRequestAminoMsg { } /** QueryGroupMembersRequest is the Query/GroupMembers request type. */ export interface QueryGroupMembersRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; + group_id: bigint; + pagination?: PageRequestSDKType; } /** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ export interface QueryGroupMembersResponse { /** members are the members of the group with given group_id. */ members: GroupMember[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGroupMembersResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; @@ -131,7 +130,7 @@ export interface QueryGroupMembersResponseProtoMsg { /** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ export interface QueryGroupMembersResponseAmino { /** members are the members of the group with given group_id. */ - members: GroupMemberAmino[]; + members?: GroupMemberAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -142,14 +141,14 @@ export interface QueryGroupMembersResponseAminoMsg { /** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ export interface QueryGroupMembersResponseSDKType { members: GroupMemberSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ export interface QueryGroupsByAdminRequest { /** admin is the account address of a group's admin. */ admin: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGroupsByAdminRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; @@ -158,7 +157,7 @@ export interface QueryGroupsByAdminRequestProtoMsg { /** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ export interface QueryGroupsByAdminRequestAmino { /** admin is the account address of a group's admin. */ - admin: string; + admin?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -169,14 +168,14 @@ export interface QueryGroupsByAdminRequestAminoMsg { /** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ export interface QueryGroupsByAdminRequestSDKType { admin: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ export interface QueryGroupsByAdminResponse { /** groups are the groups info with the provided admin. */ groups: GroupInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGroupsByAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; @@ -185,7 +184,7 @@ export interface QueryGroupsByAdminResponseProtoMsg { /** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ export interface QueryGroupsByAdminResponseAmino { /** groups are the groups info with the provided admin. */ - groups: GroupInfoAmino[]; + groups?: GroupInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -196,14 +195,14 @@ export interface QueryGroupsByAdminResponseAminoMsg { /** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ export interface QueryGroupsByAdminResponseSDKType { groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ export interface QueryGroupPoliciesByGroupRequest { /** group_id is the unique ID of the group policy's group. */ - groupId: Long; + groupId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGroupPoliciesByGroupRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; @@ -212,7 +211,7 @@ export interface QueryGroupPoliciesByGroupRequestProtoMsg { /** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ export interface QueryGroupPoliciesByGroupRequestAmino { /** group_id is the unique ID of the group policy's group. */ - group_id: string; + group_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -222,15 +221,15 @@ export interface QueryGroupPoliciesByGroupRequestAminoMsg { } /** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; + group_id: bigint; + pagination?: PageRequestSDKType; } /** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ export interface QueryGroupPoliciesByGroupResponse { /** group_policies are the group policies info associated with the provided group. */ groupPolicies: GroupPolicyInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGroupPoliciesByGroupResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; @@ -239,7 +238,7 @@ export interface QueryGroupPoliciesByGroupResponseProtoMsg { /** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ export interface QueryGroupPoliciesByGroupResponseAmino { /** group_policies are the group policies info associated with the provided group. */ - group_policies: GroupPolicyInfoAmino[]; + group_policies?: GroupPolicyInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -250,14 +249,14 @@ export interface QueryGroupPoliciesByGroupResponseAminoMsg { /** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ export interface QueryGroupPoliciesByGroupResponseSDKType { group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ export interface QueryGroupPoliciesByAdminRequest { /** admin is the admin address of the group policy. */ admin: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGroupPoliciesByAdminRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; @@ -266,7 +265,7 @@ export interface QueryGroupPoliciesByAdminRequestProtoMsg { /** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ export interface QueryGroupPoliciesByAdminRequestAmino { /** admin is the admin address of the group policy. */ - admin: string; + admin?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -277,14 +276,14 @@ export interface QueryGroupPoliciesByAdminRequestAminoMsg { /** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ export interface QueryGroupPoliciesByAdminRequestSDKType { admin: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ export interface QueryGroupPoliciesByAdminResponse { /** group_policies are the group policies info with provided admin. */ groupPolicies: GroupPolicyInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGroupPoliciesByAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; @@ -293,7 +292,7 @@ export interface QueryGroupPoliciesByAdminResponseProtoMsg { /** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ export interface QueryGroupPoliciesByAdminResponseAmino { /** group_policies are the group policies info with provided admin. */ - group_policies: GroupPolicyInfoAmino[]; + group_policies?: GroupPolicyInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -304,12 +303,12 @@ export interface QueryGroupPoliciesByAdminResponseAminoMsg { /** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ export interface QueryGroupPoliciesByAdminResponseSDKType { group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryProposalRequest is the Query/Proposal request type. */ export interface QueryProposalRequest { /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalRequest"; @@ -318,7 +317,7 @@ export interface QueryProposalRequestProtoMsg { /** QueryProposalRequest is the Query/Proposal request type. */ export interface QueryProposalRequestAmino { /** proposal_id is the unique ID of a proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryProposalRequestAminoMsg { type: "cosmos-sdk/QueryProposalRequest"; @@ -326,12 +325,12 @@ export interface QueryProposalRequestAminoMsg { } /** QueryProposalRequest is the Query/Proposal request type. */ export interface QueryProposalRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryProposalResponse is the Query/Proposal response type. */ export interface QueryProposalResponse { /** proposal is the proposal info. */ - proposal: Proposal; + proposal?: Proposal; } export interface QueryProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalResponse"; @@ -348,14 +347,14 @@ export interface QueryProposalResponseAminoMsg { } /** QueryProposalResponse is the Query/Proposal response type. */ export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; + proposal?: ProposalSDKType; } /** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ export interface QueryProposalsByGroupPolicyRequest { /** address is the account address of the group policy related to proposals. */ address: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProposalsByGroupPolicyRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; @@ -364,7 +363,7 @@ export interface QueryProposalsByGroupPolicyRequestProtoMsg { /** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ export interface QueryProposalsByGroupPolicyRequestAmino { /** address is the account address of the group policy related to proposals. */ - address: string; + address?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -375,14 +374,14 @@ export interface QueryProposalsByGroupPolicyRequestAminoMsg { /** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ export interface QueryProposalsByGroupPolicyRequestSDKType { address: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ export interface QueryProposalsByGroupPolicyResponse { /** proposals are the proposals with given group policy. */ proposals: Proposal[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProposalsByGroupPolicyResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; @@ -391,7 +390,7 @@ export interface QueryProposalsByGroupPolicyResponseProtoMsg { /** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ export interface QueryProposalsByGroupPolicyResponseAmino { /** proposals are the proposals with given group policy. */ - proposals: ProposalAmino[]; + proposals?: ProposalAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -402,12 +401,12 @@ export interface QueryProposalsByGroupPolicyResponseAminoMsg { /** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ export interface QueryProposalsByGroupPolicyResponseSDKType { proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ export interface QueryVoteByProposalVoterRequest { /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; + proposalId: bigint; /** voter is a proposal voter account address. */ voter: string; } @@ -418,9 +417,9 @@ export interface QueryVoteByProposalVoterRequestProtoMsg { /** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ export interface QueryVoteByProposalVoterRequestAmino { /** proposal_id is the unique ID of a proposal. */ - proposal_id: string; + proposal_id?: string; /** voter is a proposal voter account address. */ - voter: string; + voter?: string; } export interface QueryVoteByProposalVoterRequestAminoMsg { type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; @@ -428,13 +427,13 @@ export interface QueryVoteByProposalVoterRequestAminoMsg { } /** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; } /** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ export interface QueryVoteByProposalVoterResponse { /** vote is the vote with given proposal_id and voter. */ - vote: Vote; + vote?: Vote; } export interface QueryVoteByProposalVoterResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; @@ -451,14 +450,14 @@ export interface QueryVoteByProposalVoterResponseAminoMsg { } /** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ export interface QueryVoteByProposalVoterResponseSDKType { - vote: VoteSDKType; + vote?: VoteSDKType; } /** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ export interface QueryVotesByProposalRequest { /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; + proposalId: bigint; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryVotesByProposalRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; @@ -467,7 +466,7 @@ export interface QueryVotesByProposalRequestProtoMsg { /** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ export interface QueryVotesByProposalRequestAmino { /** proposal_id is the unique ID of a proposal. */ - proposal_id: string; + proposal_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -477,15 +476,15 @@ export interface QueryVotesByProposalRequestAminoMsg { } /** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ export interface QueryVotesByProposalRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; + proposal_id: bigint; + pagination?: PageRequestSDKType; } /** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ export interface QueryVotesByProposalResponse { /** votes are the list of votes for given proposal_id. */ votes: Vote[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryVotesByProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; @@ -494,7 +493,7 @@ export interface QueryVotesByProposalResponseProtoMsg { /** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ export interface QueryVotesByProposalResponseAmino { /** votes are the list of votes for given proposal_id. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -505,14 +504,14 @@ export interface QueryVotesByProposalResponseAminoMsg { /** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ export interface QueryVotesByProposalResponseSDKType { votes: VoteSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ export interface QueryVotesByVoterRequest { /** voter is a proposal voter account address. */ voter: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryVotesByVoterRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; @@ -521,7 +520,7 @@ export interface QueryVotesByVoterRequestProtoMsg { /** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ export interface QueryVotesByVoterRequestAmino { /** voter is a proposal voter account address. */ - voter: string; + voter?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -532,14 +531,14 @@ export interface QueryVotesByVoterRequestAminoMsg { /** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ export interface QueryVotesByVoterRequestSDKType { voter: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ export interface QueryVotesByVoterResponse { /** votes are the list of votes by given voter. */ votes: Vote[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryVotesByVoterResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; @@ -548,7 +547,7 @@ export interface QueryVotesByVoterResponseProtoMsg { /** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ export interface QueryVotesByVoterResponseAmino { /** votes are the list of votes by given voter. */ - votes: VoteAmino[]; + votes?: VoteAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -559,14 +558,14 @@ export interface QueryVotesByVoterResponseAminoMsg { /** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ export interface QueryVotesByVoterResponseSDKType { votes: VoteSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ export interface QueryGroupsByMemberRequest { /** address is the group member address. */ address: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryGroupsByMemberRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; @@ -575,7 +574,7 @@ export interface QueryGroupsByMemberRequestProtoMsg { /** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ export interface QueryGroupsByMemberRequestAmino { /** address is the group member address. */ - address: string; + address?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -586,14 +585,14 @@ export interface QueryGroupsByMemberRequestAminoMsg { /** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ export interface QueryGroupsByMemberRequestSDKType { address: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ export interface QueryGroupsByMemberResponse { /** groups are the groups info with the provided group member. */ groups: GroupInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryGroupsByMemberResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; @@ -602,7 +601,7 @@ export interface QueryGroupsByMemberResponseProtoMsg { /** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ export interface QueryGroupsByMemberResponseAmino { /** groups are the groups info with the provided group member. */ - groups: GroupInfoAmino[]; + groups?: GroupInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -613,12 +612,12 @@ export interface QueryGroupsByMemberResponseAminoMsg { /** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ export interface QueryGroupsByMemberResponseSDKType { groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryTallyResultRequest is the Query/TallyResult request type. */ export interface QueryTallyResultRequest { /** proposal_id is the unique id of a proposal. */ - proposalId: Long; + proposalId: bigint; } export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; @@ -627,7 +626,7 @@ export interface QueryTallyResultRequestProtoMsg { /** QueryTallyResultRequest is the Query/TallyResult request type. */ export interface QueryTallyResultRequestAmino { /** proposal_id is the unique id of a proposal. */ - proposal_id: string; + proposal_id?: string; } export interface QueryTallyResultRequestAminoMsg { type: "cosmos-sdk/QueryTallyResultRequest"; @@ -635,7 +634,7 @@ export interface QueryTallyResultRequestAminoMsg { } /** QueryTallyResultRequest is the Query/TallyResult request type. */ export interface QueryTallyResultRequestSDKType { - proposal_id: Long; + proposal_id: bigint; } /** QueryTallyResultResponse is the Query/TallyResult response type. */ export interface QueryTallyResultResponse { @@ -660,8 +659,9 @@ export interface QueryTallyResultResponseSDKType { tally: TallyResultSDKType; } export declare const QueryGroupInfoRequest: { - encode(message: QueryGroupInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoRequest; + typeUrl: string; + encode(message: QueryGroupInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest; fromJSON(object: any): QueryGroupInfoRequest; toJSON(message: QueryGroupInfoRequest): unknown; fromPartial(object: Partial): QueryGroupInfoRequest; @@ -674,8 +674,9 @@ export declare const QueryGroupInfoRequest: { toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg; }; export declare const QueryGroupInfoResponse: { - encode(message: QueryGroupInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoResponse; + typeUrl: string; + encode(message: QueryGroupInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse; fromJSON(object: any): QueryGroupInfoResponse; toJSON(message: QueryGroupInfoResponse): unknown; fromPartial(object: Partial): QueryGroupInfoResponse; @@ -688,8 +689,9 @@ export declare const QueryGroupInfoResponse: { toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg; }; export declare const QueryGroupPolicyInfoRequest: { - encode(message: QueryGroupPolicyInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; + typeUrl: string; + encode(message: QueryGroupPolicyInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; fromJSON(object: any): QueryGroupPolicyInfoRequest; toJSON(message: QueryGroupPolicyInfoRequest): unknown; fromPartial(object: Partial): QueryGroupPolicyInfoRequest; @@ -702,8 +704,9 @@ export declare const QueryGroupPolicyInfoRequest: { toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg; }; export declare const QueryGroupPolicyInfoResponse: { - encode(message: QueryGroupPolicyInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; + typeUrl: string; + encode(message: QueryGroupPolicyInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; fromJSON(object: any): QueryGroupPolicyInfoResponse; toJSON(message: QueryGroupPolicyInfoResponse): unknown; fromPartial(object: Partial): QueryGroupPolicyInfoResponse; @@ -716,8 +719,9 @@ export declare const QueryGroupPolicyInfoResponse: { toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg; }; export declare const QueryGroupMembersRequest: { - encode(message: QueryGroupMembersRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersRequest; + typeUrl: string; + encode(message: QueryGroupMembersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest; fromJSON(object: any): QueryGroupMembersRequest; toJSON(message: QueryGroupMembersRequest): unknown; fromPartial(object: Partial): QueryGroupMembersRequest; @@ -730,8 +734,9 @@ export declare const QueryGroupMembersRequest: { toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg; }; export declare const QueryGroupMembersResponse: { - encode(message: QueryGroupMembersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersResponse; + typeUrl: string; + encode(message: QueryGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse; fromJSON(object: any): QueryGroupMembersResponse; toJSON(message: QueryGroupMembersResponse): unknown; fromPartial(object: Partial): QueryGroupMembersResponse; @@ -744,8 +749,9 @@ export declare const QueryGroupMembersResponse: { toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg; }; export declare const QueryGroupsByAdminRequest: { - encode(message: QueryGroupsByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminRequest; + typeUrl: string; + encode(message: QueryGroupsByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest; fromJSON(object: any): QueryGroupsByAdminRequest; toJSON(message: QueryGroupsByAdminRequest): unknown; fromPartial(object: Partial): QueryGroupsByAdminRequest; @@ -758,8 +764,9 @@ export declare const QueryGroupsByAdminRequest: { toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg; }; export declare const QueryGroupsByAdminResponse: { - encode(message: QueryGroupsByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminResponse; + typeUrl: string; + encode(message: QueryGroupsByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse; fromJSON(object: any): QueryGroupsByAdminResponse; toJSON(message: QueryGroupsByAdminResponse): unknown; fromPartial(object: Partial): QueryGroupsByAdminResponse; @@ -772,8 +779,9 @@ export declare const QueryGroupsByAdminResponse: { toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg; }; export declare const QueryGroupPoliciesByGroupRequest: { - encode(message: QueryGroupPoliciesByGroupRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; + typeUrl: string; + encode(message: QueryGroupPoliciesByGroupRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; fromJSON(object: any): QueryGroupPoliciesByGroupRequest; toJSON(message: QueryGroupPoliciesByGroupRequest): unknown; fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest; @@ -786,8 +794,9 @@ export declare const QueryGroupPoliciesByGroupRequest: { toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg; }; export declare const QueryGroupPoliciesByGroupResponse: { - encode(message: QueryGroupPoliciesByGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; + typeUrl: string; + encode(message: QueryGroupPoliciesByGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; fromJSON(object: any): QueryGroupPoliciesByGroupResponse; toJSON(message: QueryGroupPoliciesByGroupResponse): unknown; fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse; @@ -800,8 +809,9 @@ export declare const QueryGroupPoliciesByGroupResponse: { toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg; }; export declare const QueryGroupPoliciesByAdminRequest: { - encode(message: QueryGroupPoliciesByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; + typeUrl: string; + encode(message: QueryGroupPoliciesByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; fromJSON(object: any): QueryGroupPoliciesByAdminRequest; toJSON(message: QueryGroupPoliciesByAdminRequest): unknown; fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest; @@ -814,8 +824,9 @@ export declare const QueryGroupPoliciesByAdminRequest: { toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg; }; export declare const QueryGroupPoliciesByAdminResponse: { - encode(message: QueryGroupPoliciesByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; + typeUrl: string; + encode(message: QueryGroupPoliciesByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; fromJSON(object: any): QueryGroupPoliciesByAdminResponse; toJSON(message: QueryGroupPoliciesByAdminResponse): unknown; fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse; @@ -828,8 +839,9 @@ export declare const QueryGroupPoliciesByAdminResponse: { toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg; }; export declare const QueryProposalRequest: { - encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; fromJSON(object: any): QueryProposalRequest; toJSON(message: QueryProposalRequest): unknown; fromPartial(object: Partial): QueryProposalRequest; @@ -842,8 +854,9 @@ export declare const QueryProposalRequest: { toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; }; export declare const QueryProposalResponse: { - encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; fromJSON(object: any): QueryProposalResponse; toJSON(message: QueryProposalResponse): unknown; fromPartial(object: Partial): QueryProposalResponse; @@ -856,8 +869,9 @@ export declare const QueryProposalResponse: { toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; }; export declare const QueryProposalsByGroupPolicyRequest: { - encode(message: QueryProposalsByGroupPolicyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; + typeUrl: string; + encode(message: QueryProposalsByGroupPolicyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; fromJSON(object: any): QueryProposalsByGroupPolicyRequest; toJSON(message: QueryProposalsByGroupPolicyRequest): unknown; fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest; @@ -870,8 +884,9 @@ export declare const QueryProposalsByGroupPolicyRequest: { toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg; }; export declare const QueryProposalsByGroupPolicyResponse: { - encode(message: QueryProposalsByGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; + typeUrl: string; + encode(message: QueryProposalsByGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; fromJSON(object: any): QueryProposalsByGroupPolicyResponse; toJSON(message: QueryProposalsByGroupPolicyResponse): unknown; fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse; @@ -884,8 +899,9 @@ export declare const QueryProposalsByGroupPolicyResponse: { toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg; }; export declare const QueryVoteByProposalVoterRequest: { - encode(message: QueryVoteByProposalVoterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; + typeUrl: string; + encode(message: QueryVoteByProposalVoterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; fromJSON(object: any): QueryVoteByProposalVoterRequest; toJSON(message: QueryVoteByProposalVoterRequest): unknown; fromPartial(object: Partial): QueryVoteByProposalVoterRequest; @@ -898,8 +914,9 @@ export declare const QueryVoteByProposalVoterRequest: { toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg; }; export declare const QueryVoteByProposalVoterResponse: { - encode(message: QueryVoteByProposalVoterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; + typeUrl: string; + encode(message: QueryVoteByProposalVoterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; fromJSON(object: any): QueryVoteByProposalVoterResponse; toJSON(message: QueryVoteByProposalVoterResponse): unknown; fromPartial(object: Partial): QueryVoteByProposalVoterResponse; @@ -912,8 +929,9 @@ export declare const QueryVoteByProposalVoterResponse: { toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg; }; export declare const QueryVotesByProposalRequest: { - encode(message: QueryVotesByProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalRequest; + typeUrl: string; + encode(message: QueryVotesByProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest; fromJSON(object: any): QueryVotesByProposalRequest; toJSON(message: QueryVotesByProposalRequest): unknown; fromPartial(object: Partial): QueryVotesByProposalRequest; @@ -926,8 +944,9 @@ export declare const QueryVotesByProposalRequest: { toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg; }; export declare const QueryVotesByProposalResponse: { - encode(message: QueryVotesByProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalResponse; + typeUrl: string; + encode(message: QueryVotesByProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse; fromJSON(object: any): QueryVotesByProposalResponse; toJSON(message: QueryVotesByProposalResponse): unknown; fromPartial(object: Partial): QueryVotesByProposalResponse; @@ -940,8 +959,9 @@ export declare const QueryVotesByProposalResponse: { toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg; }; export declare const QueryVotesByVoterRequest: { - encode(message: QueryVotesByVoterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterRequest; + typeUrl: string; + encode(message: QueryVotesByVoterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest; fromJSON(object: any): QueryVotesByVoterRequest; toJSON(message: QueryVotesByVoterRequest): unknown; fromPartial(object: Partial): QueryVotesByVoterRequest; @@ -954,8 +974,9 @@ export declare const QueryVotesByVoterRequest: { toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg; }; export declare const QueryVotesByVoterResponse: { - encode(message: QueryVotesByVoterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterResponse; + typeUrl: string; + encode(message: QueryVotesByVoterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse; fromJSON(object: any): QueryVotesByVoterResponse; toJSON(message: QueryVotesByVoterResponse): unknown; fromPartial(object: Partial): QueryVotesByVoterResponse; @@ -968,8 +989,9 @@ export declare const QueryVotesByVoterResponse: { toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg; }; export declare const QueryGroupsByMemberRequest: { - encode(message: QueryGroupsByMemberRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberRequest; + typeUrl: string; + encode(message: QueryGroupsByMemberRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest; fromJSON(object: any): QueryGroupsByMemberRequest; toJSON(message: QueryGroupsByMemberRequest): unknown; fromPartial(object: Partial): QueryGroupsByMemberRequest; @@ -982,8 +1004,9 @@ export declare const QueryGroupsByMemberRequest: { toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg; }; export declare const QueryGroupsByMemberResponse: { - encode(message: QueryGroupsByMemberResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberResponse; + typeUrl: string; + encode(message: QueryGroupsByMemberResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse; fromJSON(object: any): QueryGroupsByMemberResponse; toJSON(message: QueryGroupsByMemberResponse): unknown; fromPartial(object: Partial): QueryGroupsByMemberResponse; @@ -996,8 +1019,9 @@ export declare const QueryGroupsByMemberResponse: { toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg; }; export declare const QueryTallyResultRequest: { - encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; fromJSON(object: any): QueryTallyResultRequest; toJSON(message: QueryTallyResultRequest): unknown; fromPartial(object: Partial): QueryTallyResultRequest; @@ -1010,8 +1034,9 @@ export declare const QueryTallyResultRequest: { toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; }; export declare const QueryTallyResultResponse: { - encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; fromJSON(object: any): QueryTallyResultResponse; toJSON(message: QueryTallyResultResponse): unknown; fromPartial(object: Partial): QueryTallyResultResponse; diff --git a/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts index eb9b1ffe..f2695451 100644 --- a/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/group/v1/tx.d.ts b/packages/api/types/codegen/cosmos/group/v1/tx.d.ts index e58e079c..32ad14d1 100644 --- a/packages/api/types/codegen/cosmos/group/v1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/tx.d.ts @@ -1,7 +1,6 @@ import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Exec defines modes of execution of a proposal on creation or on new vote. */ export declare enum Exec { /** @@ -38,11 +37,11 @@ export interface MsgCreateGroupProtoMsg { /** MsgCreateGroup is the Msg/CreateGroup request type. */ export interface MsgCreateGroupAmino { /** admin is the account address of the group admin. */ - admin: string; + admin?: string; /** members defines the group members. */ members: MemberRequestAmino[]; /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; + metadata?: string; } export interface MsgCreateGroupAminoMsg { type: "cosmos-sdk/MsgCreateGroup"; @@ -57,7 +56,7 @@ export interface MsgCreateGroupSDKType { /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ export interface MsgCreateGroupResponse { /** group_id is the unique ID of the newly created group. */ - groupId: Long; + groupId: bigint; } export interface MsgCreateGroupResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; @@ -66,7 +65,7 @@ export interface MsgCreateGroupResponseProtoMsg { /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ export interface MsgCreateGroupResponseAmino { /** group_id is the unique ID of the newly created group. */ - group_id: string; + group_id?: string; } export interface MsgCreateGroupResponseAminoMsg { type: "cosmos-sdk/MsgCreateGroupResponse"; @@ -74,14 +73,14 @@ export interface MsgCreateGroupResponseAminoMsg { } /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ export interface MsgCreateGroupResponseSDKType { - group_id: Long; + group_id: bigint; } /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ export interface MsgUpdateGroupMembers { /** admin is the account address of the group admin. */ admin: string; /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** * member_updates is the list of members to update, * set weight to 0 to remove a member. @@ -95,9 +94,9 @@ export interface MsgUpdateGroupMembersProtoMsg { /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ export interface MsgUpdateGroupMembersAmino { /** admin is the account address of the group admin. */ - admin: string; + admin?: string; /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** * member_updates is the list of members to update, * set weight to 0 to remove a member. @@ -111,7 +110,7 @@ export interface MsgUpdateGroupMembersAminoMsg { /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ export interface MsgUpdateGroupMembersSDKType { admin: string; - group_id: Long; + group_id: bigint; member_updates: MemberRequestSDKType[]; } /** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ @@ -136,7 +135,7 @@ export interface MsgUpdateGroupAdmin { /** admin is the current account address of the group admin. */ admin: string; /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** new_admin is the group new admin account address. */ newAdmin: string; } @@ -147,11 +146,11 @@ export interface MsgUpdateGroupAdminProtoMsg { /** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ export interface MsgUpdateGroupAdminAmino { /** admin is the current account address of the group admin. */ - admin: string; + admin?: string; /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** new_admin is the group new admin account address. */ - new_admin: string; + new_admin?: string; } export interface MsgUpdateGroupAdminAminoMsg { type: "cosmos-sdk/MsgUpdateGroupAdmin"; @@ -160,7 +159,7 @@ export interface MsgUpdateGroupAdminAminoMsg { /** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ export interface MsgUpdateGroupAdminSDKType { admin: string; - group_id: Long; + group_id: bigint; new_admin: string; } /** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ @@ -185,7 +184,7 @@ export interface MsgUpdateGroupMetadata { /** admin is the account address of the group admin. */ admin: string; /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** metadata is the updated group's metadata. */ metadata: string; } @@ -196,11 +195,11 @@ export interface MsgUpdateGroupMetadataProtoMsg { /** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ export interface MsgUpdateGroupMetadataAmino { /** admin is the account address of the group admin. */ - admin: string; + admin?: string; /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** metadata is the updated group's metadata. */ - metadata: string; + metadata?: string; } export interface MsgUpdateGroupMetadataAminoMsg { type: "cosmos-sdk/MsgUpdateGroupMetadata"; @@ -209,7 +208,7 @@ export interface MsgUpdateGroupMetadataAminoMsg { /** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ export interface MsgUpdateGroupMetadataSDKType { admin: string; - group_id: Long; + group_id: bigint; metadata: string; } /** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ @@ -234,11 +233,11 @@ export interface MsgCreateGroupPolicy { /** admin is the account address of the group admin. */ admin: string; /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** metadata is any arbitrary metadata attached to the group policy. */ metadata: string; /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; } export interface MsgCreateGroupPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; @@ -250,11 +249,11 @@ export type MsgCreateGroupPolicyEncoded = Omit): MsgCreateGroup; @@ -819,8 +819,9 @@ export declare const MsgCreateGroup: { toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg; }; export declare const MsgCreateGroupResponse: { - encode(message: MsgCreateGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupResponse; + typeUrl: string; + encode(message: MsgCreateGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse; fromJSON(object: any): MsgCreateGroupResponse; toJSON(message: MsgCreateGroupResponse): unknown; fromPartial(object: Partial): MsgCreateGroupResponse; @@ -833,8 +834,9 @@ export declare const MsgCreateGroupResponse: { toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg; }; export declare const MsgUpdateGroupMembers: { - encode(message: MsgUpdateGroupMembers, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers; + typeUrl: string; + encode(message: MsgUpdateGroupMembers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers; fromJSON(object: any): MsgUpdateGroupMembers; toJSON(message: MsgUpdateGroupMembers): unknown; fromPartial(object: Partial): MsgUpdateGroupMembers; @@ -847,8 +849,9 @@ export declare const MsgUpdateGroupMembers: { toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg; }; export declare const MsgUpdateGroupMembersResponse: { - encode(_: MsgUpdateGroupMembersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; + typeUrl: string; + encode(_: MsgUpdateGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; fromJSON(_: any): MsgUpdateGroupMembersResponse; toJSON(_: MsgUpdateGroupMembersResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupMembersResponse; @@ -861,8 +864,9 @@ export declare const MsgUpdateGroupMembersResponse: { toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg; }; export declare const MsgUpdateGroupAdmin: { - encode(message: MsgUpdateGroupAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdmin; + typeUrl: string; + encode(message: MsgUpdateGroupAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin; fromJSON(object: any): MsgUpdateGroupAdmin; toJSON(message: MsgUpdateGroupAdmin): unknown; fromPartial(object: Partial): MsgUpdateGroupAdmin; @@ -875,8 +879,9 @@ export declare const MsgUpdateGroupAdmin: { toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg; }; export declare const MsgUpdateGroupAdminResponse: { - encode(_: MsgUpdateGroupAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; + typeUrl: string; + encode(_: MsgUpdateGroupAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; fromJSON(_: any): MsgUpdateGroupAdminResponse; toJSON(_: MsgUpdateGroupAdminResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupAdminResponse; @@ -889,8 +894,9 @@ export declare const MsgUpdateGroupAdminResponse: { toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg; }; export declare const MsgUpdateGroupMetadata: { - encode(message: MsgUpdateGroupMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadata; + typeUrl: string; + encode(message: MsgUpdateGroupMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata; fromJSON(object: any): MsgUpdateGroupMetadata; toJSON(message: MsgUpdateGroupMetadata): unknown; fromPartial(object: Partial): MsgUpdateGroupMetadata; @@ -903,8 +909,9 @@ export declare const MsgUpdateGroupMetadata: { toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg; }; export declare const MsgUpdateGroupMetadataResponse: { - encode(_: MsgUpdateGroupMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateGroupMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; fromJSON(_: any): MsgUpdateGroupMetadataResponse; toJSON(_: MsgUpdateGroupMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupMetadataResponse; @@ -917,8 +924,9 @@ export declare const MsgUpdateGroupMetadataResponse: { toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg; }; export declare const MsgCreateGroupPolicy: { - encode(message: MsgCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicy; + typeUrl: string; + encode(message: MsgCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy; fromJSON(object: any): MsgCreateGroupPolicy; toJSON(message: MsgCreateGroupPolicy): unknown; fromPartial(object: Partial): MsgCreateGroupPolicy; @@ -931,8 +939,9 @@ export declare const MsgCreateGroupPolicy: { toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg; }; export declare const MsgCreateGroupPolicyResponse: { - encode(message: MsgCreateGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; + typeUrl: string; + encode(message: MsgCreateGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; fromJSON(object: any): MsgCreateGroupPolicyResponse; toJSON(message: MsgCreateGroupPolicyResponse): unknown; fromPartial(object: Partial): MsgCreateGroupPolicyResponse; @@ -945,8 +954,9 @@ export declare const MsgCreateGroupPolicyResponse: { toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg; }; export declare const MsgUpdateGroupPolicyAdmin: { - encode(message: MsgUpdateGroupPolicyAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; + typeUrl: string; + encode(message: MsgUpdateGroupPolicyAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; fromJSON(object: any): MsgUpdateGroupPolicyAdmin; toJSON(message: MsgUpdateGroupPolicyAdmin): unknown; fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin; @@ -959,8 +969,9 @@ export declare const MsgUpdateGroupPolicyAdmin: { toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg; }; export declare const MsgUpdateGroupPolicyAdminResponse: { - encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; + typeUrl: string; + encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; fromJSON(_: any): MsgUpdateGroupPolicyAdminResponse; toJSON(_: MsgUpdateGroupPolicyAdminResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse; @@ -973,8 +984,9 @@ export declare const MsgUpdateGroupPolicyAdminResponse: { toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg; }; export declare const MsgCreateGroupWithPolicy: { - encode(message: MsgCreateGroupWithPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; + typeUrl: string; + encode(message: MsgCreateGroupWithPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; fromJSON(object: any): MsgCreateGroupWithPolicy; toJSON(message: MsgCreateGroupWithPolicy): unknown; fromPartial(object: Partial): MsgCreateGroupWithPolicy; @@ -987,8 +999,9 @@ export declare const MsgCreateGroupWithPolicy: { toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg; }; export declare const MsgCreateGroupWithPolicyResponse: { - encode(message: MsgCreateGroupWithPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; + typeUrl: string; + encode(message: MsgCreateGroupWithPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; fromJSON(object: any): MsgCreateGroupWithPolicyResponse; toJSON(message: MsgCreateGroupWithPolicyResponse): unknown; fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse; @@ -1001,8 +1014,9 @@ export declare const MsgCreateGroupWithPolicyResponse: { toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg; }; export declare const MsgUpdateGroupPolicyDecisionPolicy: { - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; + typeUrl: string; + encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; fromJSON(object: any): MsgUpdateGroupPolicyDecisionPolicy; toJSON(message: MsgUpdateGroupPolicyDecisionPolicy): unknown; fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy; @@ -1015,8 +1029,9 @@ export declare const MsgUpdateGroupPolicyDecisionPolicy: { toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg; }; export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; + typeUrl: string; + encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; fromJSON(_: any): MsgUpdateGroupPolicyDecisionPolicyResponse; toJSON(_: MsgUpdateGroupPolicyDecisionPolicyResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse; @@ -1029,8 +1044,9 @@ export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; }; export declare const MsgUpdateGroupPolicyMetadata: { - encode(message: MsgUpdateGroupPolicyMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; + typeUrl: string; + encode(message: MsgUpdateGroupPolicyMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; fromJSON(object: any): MsgUpdateGroupPolicyMetadata; toJSON(message: MsgUpdateGroupPolicyMetadata): unknown; fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata; @@ -1043,8 +1059,9 @@ export declare const MsgUpdateGroupPolicyMetadata: { toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg; }; export declare const MsgUpdateGroupPolicyMetadataResponse: { - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; fromJSON(_: any): MsgUpdateGroupPolicyMetadataResponse; toJSON(_: MsgUpdateGroupPolicyMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse; @@ -1057,8 +1074,9 @@ export declare const MsgUpdateGroupPolicyMetadataResponse: { toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg; }; export declare const MsgSubmitProposal: { - encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; fromJSON(object: any): MsgSubmitProposal; toJSON(message: MsgSubmitProposal): unknown; fromPartial(object: Partial): MsgSubmitProposal; @@ -1071,8 +1089,9 @@ export declare const MsgSubmitProposal: { toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; }; export declare const MsgSubmitProposalResponse: { - encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; fromJSON(object: any): MsgSubmitProposalResponse; toJSON(message: MsgSubmitProposalResponse): unknown; fromPartial(object: Partial): MsgSubmitProposalResponse; @@ -1085,8 +1104,9 @@ export declare const MsgSubmitProposalResponse: { toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; }; export declare const MsgWithdrawProposal: { - encode(message: MsgWithdrawProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposal; + typeUrl: string; + encode(message: MsgWithdrawProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal; fromJSON(object: any): MsgWithdrawProposal; toJSON(message: MsgWithdrawProposal): unknown; fromPartial(object: Partial): MsgWithdrawProposal; @@ -1099,8 +1119,9 @@ export declare const MsgWithdrawProposal: { toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg; }; export declare const MsgWithdrawProposalResponse: { - encode(_: MsgWithdrawProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposalResponse; + typeUrl: string; + encode(_: MsgWithdrawProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse; fromJSON(_: any): MsgWithdrawProposalResponse; toJSON(_: MsgWithdrawProposalResponse): unknown; fromPartial(_: Partial): MsgWithdrawProposalResponse; @@ -1113,8 +1134,9 @@ export declare const MsgWithdrawProposalResponse: { toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg; }; export declare const MsgVote: { - encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; fromJSON(object: any): MsgVote; toJSON(message: MsgVote): unknown; fromPartial(object: Partial): MsgVote; @@ -1127,8 +1149,9 @@ export declare const MsgVote: { toProtoMsg(message: MsgVote): MsgVoteProtoMsg; }; export declare const MsgVoteResponse: { - encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; fromJSON(_: any): MsgVoteResponse; toJSON(_: MsgVoteResponse): unknown; fromPartial(_: Partial): MsgVoteResponse; @@ -1141,8 +1164,9 @@ export declare const MsgVoteResponse: { toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; }; export declare const MsgExec: { - encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec; + typeUrl: string; + encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial(object: Partial): MsgExec; @@ -1155,8 +1179,9 @@ export declare const MsgExec: { toProtoMsg(message: MsgExec): MsgExecProtoMsg; }; export declare const MsgExecResponse: { - encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; + typeUrl: string; + encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial(object: Partial): MsgExecResponse; @@ -1169,8 +1194,9 @@ export declare const MsgExecResponse: { toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; }; export declare const MsgLeaveGroup: { - encode(message: MsgLeaveGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup; + typeUrl: string; + encode(message: MsgLeaveGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup; fromJSON(object: any): MsgLeaveGroup; toJSON(message: MsgLeaveGroup): unknown; fromPartial(object: Partial): MsgLeaveGroup; @@ -1183,8 +1209,9 @@ export declare const MsgLeaveGroup: { toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg; }; export declare const MsgLeaveGroupResponse: { - encode(_: MsgLeaveGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroupResponse; + typeUrl: string; + encode(_: MsgLeaveGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse; fromJSON(_: any): MsgLeaveGroupResponse; toJSON(_: MsgLeaveGroupResponse): unknown; fromPartial(_: Partial): MsgLeaveGroupResponse; @@ -1196,6 +1223,6 @@ export declare const MsgLeaveGroupResponse: { toProto(message: MsgLeaveGroupResponse): Uint8Array; toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg; }; -export declare const DecisionPolicy_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; +export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/group/v1/types.d.ts b/packages/api/types/codegen/cosmos/group/v1/types.d.ts index 17b827bb..2b430150 100644 --- a/packages/api/types/codegen/cosmos/group/v1/types.d.ts +++ b/packages/api/types/codegen/cosmos/group/v1/types.d.ts @@ -1,8 +1,7 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** VoteOption enumerates the valid vote options for a given proposal. */ export declare enum VoteOption { /** @@ -96,13 +95,13 @@ export interface MemberProtoMsg { */ export interface MemberAmino { /** address is the member's account address. */ - address: string; + address?: string; /** weight is the member's voting weight that should be greater than 0. */ - weight: string; + weight?: string; /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; + metadata?: string; /** added_at is a timestamp specifying when a member was added. */ - added_at?: TimestampAmino; + added_at?: string; } export interface MemberAminoMsg { type: "cosmos-sdk/Member"; @@ -142,11 +141,11 @@ export interface MemberRequestProtoMsg { */ export interface MemberRequestAmino { /** address is the member's account address. */ - address: string; + address?: string; /** weight is the member's voting weight that should be greater than 0. */ - weight: string; + weight?: string; /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; + metadata?: string; } export interface MemberRequestAminoMsg { type: "cosmos-sdk/MemberRequest"; @@ -171,14 +170,14 @@ export interface MemberRequestSDKType { * given by `windows`. */ export interface ThresholdDecisionPolicy { - $typeUrl?: string; + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; /** * threshold is the minimum weighted sum of `YES` votes that must be met or * exceeded for a proposal to succeed. */ threshold: string; /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; + windows?: DecisionPolicyWindows; } export interface ThresholdDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; @@ -197,7 +196,7 @@ export interface ThresholdDecisionPolicyAmino { * threshold is the minimum weighted sum of `YES` votes that must be met or * exceeded for a proposal to succeed. */ - threshold: string; + threshold?: string; /** windows defines the different windows for voting and execution. */ windows?: DecisionPolicyWindowsAmino; } @@ -214,9 +213,9 @@ export interface ThresholdDecisionPolicyAminoMsg { * given by `windows`. */ export interface ThresholdDecisionPolicySDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; threshold: string; - windows: DecisionPolicyWindowsSDKType; + windows?: DecisionPolicyWindowsSDKType; } /** * PercentageDecisionPolicy is a decision policy where a proposal passes when @@ -227,14 +226,14 @@ export interface ThresholdDecisionPolicySDKType { * given by `windows`. */ export interface PercentageDecisionPolicy { - $typeUrl?: string; + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; /** * percentage is the minimum percentage the weighted sum of `YES` votes must * meet for a proposal to succeed. */ percentage: string; /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; + windows?: DecisionPolicyWindows; } export interface PercentageDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; @@ -253,7 +252,7 @@ export interface PercentageDecisionPolicyAmino { * percentage is the minimum percentage the weighted sum of `YES` votes must * meet for a proposal to succeed. */ - percentage: string; + percentage?: string; /** windows defines the different windows for voting and execution. */ windows?: DecisionPolicyWindowsAmino; } @@ -270,9 +269,9 @@ export interface PercentageDecisionPolicyAminoMsg { * given by `windows`. */ export interface PercentageDecisionPolicySDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; percentage: string; - windows: DecisionPolicyWindowsSDKType; + windows?: DecisionPolicyWindowsSDKType; } /** DecisionPolicyWindows defines the different windows for voting and execution. */ export interface DecisionPolicyWindows { @@ -334,7 +333,7 @@ export interface DecisionPolicyWindowsSDKType { /** GroupInfo represents the high-level on-chain information for a group. */ export interface GroupInfo { /** id is the unique ID of the group. */ - id: Long; + id: bigint; /** admin is the account address of the group's admin. */ admin: string; /** metadata is any arbitrary metadata to attached to the group. */ @@ -345,7 +344,7 @@ export interface GroupInfo { * or any member is added or removed this version is incremented and will * cause proposals based on older versions of this group to fail */ - version: Long; + version: bigint; /** total_weight is the sum of the group members' weights. */ totalWeight: string; /** created_at is a timestamp specifying when a group was created. */ @@ -358,22 +357,22 @@ export interface GroupInfoProtoMsg { /** GroupInfo represents the high-level on-chain information for a group. */ export interface GroupInfoAmino { /** id is the unique ID of the group. */ - id: string; + id?: string; /** admin is the account address of the group's admin. */ - admin: string; + admin?: string; /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; + metadata?: string; /** * version is used to track changes to a group's membership structure that * would break existing proposals. Whenever any members weight is changed, * or any member is added or removed this version is incremented and will * cause proposals based on older versions of this group to fail */ - version: string; + version?: string; /** total_weight is the sum of the group members' weights. */ - total_weight: string; + total_weight?: string; /** created_at is a timestamp specifying when a group was created. */ - created_at?: TimestampAmino; + created_at?: string; } export interface GroupInfoAminoMsg { type: "cosmos-sdk/GroupInfo"; @@ -381,19 +380,19 @@ export interface GroupInfoAminoMsg { } /** GroupInfo represents the high-level on-chain information for a group. */ export interface GroupInfoSDKType { - id: Long; + id: bigint; admin: string; metadata: string; - version: Long; + version: bigint; total_weight: string; created_at: TimestampSDKType; } /** GroupMember represents the relationship between a group and a member. */ export interface GroupMember { /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** member is the member data. */ - member: Member; + member?: Member; } export interface GroupMemberProtoMsg { typeUrl: "/cosmos.group.v1.GroupMember"; @@ -402,7 +401,7 @@ export interface GroupMemberProtoMsg { /** GroupMember represents the relationship between a group and a member. */ export interface GroupMemberAmino { /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** member is the member data. */ member?: MemberAmino; } @@ -412,15 +411,15 @@ export interface GroupMemberAminoMsg { } /** GroupMember represents the relationship between a group and a member. */ export interface GroupMemberSDKType { - group_id: Long; - member: MemberSDKType; + group_id: bigint; + member?: MemberSDKType; } /** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ export interface GroupPolicyInfo { /** address is the account address of group policy. */ address: string; /** group_id is the unique ID of the group. */ - groupId: Long; + groupId: bigint; /** admin is the account address of the group admin. */ admin: string; /** metadata is any arbitrary metadata to attached to the group policy. */ @@ -429,9 +428,9 @@ export interface GroupPolicyInfo { * version is used to track changes to a group's GroupPolicyInfo structure that * would create a different result on a running proposal. */ - version: Long; + version: bigint; /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; + decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; /** created_at is a timestamp specifying when a group policy was created. */ createdAt: Timestamp; } @@ -445,22 +444,22 @@ export type GroupPolicyInfoEncoded = Omit & { /** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ export interface GroupPolicyInfoAmino { /** address is the account address of group policy. */ - address: string; + address?: string; /** group_id is the unique ID of the group. */ - group_id: string; + group_id?: string; /** admin is the account address of the group admin. */ - admin: string; + admin?: string; /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; + metadata?: string; /** * version is used to track changes to a group's GroupPolicyInfo structure that * would create a different result on a running proposal. */ - version: string; + version?: string; /** decision_policy specifies the group policy's decision policy. */ decision_policy?: AnyAmino; /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: TimestampAmino; + created_at?: string; } export interface GroupPolicyInfoAminoMsg { type: "cosmos-sdk/GroupPolicyInfo"; @@ -469,11 +468,11 @@ export interface GroupPolicyInfoAminoMsg { /** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ export interface GroupPolicyInfoSDKType { address: string; - group_id: Long; + group_id: bigint; admin: string; metadata: string; - version: Long; - decision_policy: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; + version: bigint; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; created_at: TimestampSDKType; } /** @@ -484,7 +483,7 @@ export interface GroupPolicyInfoSDKType { */ export interface Proposal { /** id is the unique id of the proposal. */ - id: Long; + id: bigint; /** group_policy_address is the account address of group policy. */ groupPolicyAddress: string; /** metadata is any arbitrary metadata to attached to the proposal. */ @@ -497,14 +496,14 @@ export interface Proposal { * group_version tracks the version of the group at proposal submission. * This field is here for informational purposes only. */ - groupVersion: Long; + groupVersion: bigint; /** * group_policy_version tracks the version of the group policy at proposal submission. * When a decision policy is changed, existing proposals from previous policy * versions will become invalid with the `ABORTED` status. * This field is here for informational purposes only. */ - groupPolicyVersion: Long; + groupPolicyVersion: bigint; /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ status: ProposalStatus; /** @@ -539,29 +538,29 @@ export interface ProposalProtoMsg { */ export interface ProposalAmino { /** id is the unique id of the proposal. */ - id: string; + id?: string; /** group_policy_address is the account address of group policy. */ - group_policy_address: string; + group_policy_address?: string; /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; + metadata?: string; /** proposers are the account addresses of the proposers. */ - proposers: string[]; + proposers?: string[]; /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: TimestampAmino; + submit_time?: string; /** * group_version tracks the version of the group at proposal submission. * This field is here for informational purposes only. */ - group_version: string; + group_version?: string; /** * group_policy_version tracks the version of the group policy at proposal submission. * When a decision policy is changed, existing proposals from previous policy * versions will become invalid with the `ABORTED` status. * This field is here for informational purposes only. */ - group_policy_version: string; + group_policy_version?: string; /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; + status?: ProposalStatus; /** * final_tally_result contains the sums of all weighted votes for this * proposal for each vote option. It is empty at submission, and only @@ -576,11 +575,11 @@ export interface ProposalAmino { * at this point, and the `final_tally_result`and `status` fields will be * accordingly updated. */ - voting_period_end?: TimestampAmino; + voting_period_end?: string; /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executor_result: ProposalExecutorResult; + executor_result?: ProposalExecutorResult; /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: AnyAmino[]; + messages?: AnyAmino[]; } export interface ProposalAminoMsg { type: "cosmos-sdk/Proposal"; @@ -593,13 +592,13 @@ export interface ProposalAminoMsg { * passes as well as some optional metadata associated with the proposal. */ export interface ProposalSDKType { - id: Long; + id: bigint; group_policy_address: string; metadata: string; proposers: string[]; submit_time: TimestampSDKType; - group_version: Long; - group_policy_version: Long; + group_version: bigint; + group_policy_version: bigint; status: ProposalStatus; final_tally_result: TallyResultSDKType; voting_period_end: TimestampSDKType; @@ -624,13 +623,13 @@ export interface TallyResultProtoMsg { /** TallyResult represents the sum of weighted votes for each vote option. */ export interface TallyResultAmino { /** yes_count is the weighted sum of yes votes. */ - yes_count: string; + yes_count?: string; /** abstain_count is the weighted sum of abstainers. */ - abstain_count: string; + abstain_count?: string; /** no_count is the weighted sum of no votes. */ - no_count: string; + no_count?: string; /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count: string; + no_with_veto_count?: string; } export interface TallyResultAminoMsg { type: "cosmos-sdk/TallyResult"; @@ -646,7 +645,7 @@ export interface TallyResultSDKType { /** Vote represents a vote for a proposal. */ export interface Vote { /** proposal is the unique ID of the proposal. */ - proposalId: Long; + proposalId: bigint; /** voter is the account address of the voter. */ voter: string; /** option is the voter's choice on the proposal. */ @@ -663,15 +662,15 @@ export interface VoteProtoMsg { /** Vote represents a vote for a proposal. */ export interface VoteAmino { /** proposal is the unique ID of the proposal. */ - proposal_id: string; + proposal_id?: string; /** voter is the account address of the voter. */ - voter: string; + voter?: string; /** option is the voter's choice on the proposal. */ - option: VoteOption; + option?: VoteOption; /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; + metadata?: string; /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: TimestampAmino; + submit_time?: string; } export interface VoteAminoMsg { type: "cosmos-sdk/Vote"; @@ -679,15 +678,16 @@ export interface VoteAminoMsg { } /** Vote represents a vote for a proposal. */ export interface VoteSDKType { - proposal_id: Long; + proposal_id: bigint; voter: string; option: VoteOption; metadata: string; submit_time: TimestampSDKType; } export declare const Member: { - encode(message: Member, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Member; + typeUrl: string; + encode(message: Member, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Member; fromJSON(object: any): Member; toJSON(message: Member): unknown; fromPartial(object: Partial): Member; @@ -700,8 +700,9 @@ export declare const Member: { toProtoMsg(message: Member): MemberProtoMsg; }; export declare const MemberRequest: { - encode(message: MemberRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MemberRequest; + typeUrl: string; + encode(message: MemberRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest; fromJSON(object: any): MemberRequest; toJSON(message: MemberRequest): unknown; fromPartial(object: Partial): MemberRequest; @@ -714,8 +715,9 @@ export declare const MemberRequest: { toProtoMsg(message: MemberRequest): MemberRequestProtoMsg; }; export declare const ThresholdDecisionPolicy: { - encode(message: ThresholdDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ThresholdDecisionPolicy; + typeUrl: string; + encode(message: ThresholdDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy; fromJSON(object: any): ThresholdDecisionPolicy; toJSON(message: ThresholdDecisionPolicy): unknown; fromPartial(object: Partial): ThresholdDecisionPolicy; @@ -728,8 +730,9 @@ export declare const ThresholdDecisionPolicy: { toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg; }; export declare const PercentageDecisionPolicy: { - encode(message: PercentageDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PercentageDecisionPolicy; + typeUrl: string; + encode(message: PercentageDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy; fromJSON(object: any): PercentageDecisionPolicy; toJSON(message: PercentageDecisionPolicy): unknown; fromPartial(object: Partial): PercentageDecisionPolicy; @@ -742,8 +745,9 @@ export declare const PercentageDecisionPolicy: { toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg; }; export declare const DecisionPolicyWindows: { - encode(message: DecisionPolicyWindows, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DecisionPolicyWindows; + typeUrl: string; + encode(message: DecisionPolicyWindows, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows; fromJSON(object: any): DecisionPolicyWindows; toJSON(message: DecisionPolicyWindows): unknown; fromPartial(object: Partial): DecisionPolicyWindows; @@ -756,8 +760,9 @@ export declare const DecisionPolicyWindows: { toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg; }; export declare const GroupInfo: { - encode(message: GroupInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupInfo; + typeUrl: string; + encode(message: GroupInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo; fromJSON(object: any): GroupInfo; toJSON(message: GroupInfo): unknown; fromPartial(object: Partial): GroupInfo; @@ -770,8 +775,9 @@ export declare const GroupInfo: { toProtoMsg(message: GroupInfo): GroupInfoProtoMsg; }; export declare const GroupMember: { - encode(message: GroupMember, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupMember; + typeUrl: string; + encode(message: GroupMember, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupMember; fromJSON(object: any): GroupMember; toJSON(message: GroupMember): unknown; fromPartial(object: Partial): GroupMember; @@ -784,8 +790,9 @@ export declare const GroupMember: { toProtoMsg(message: GroupMember): GroupMemberProtoMsg; }; export declare const GroupPolicyInfo: { - encode(message: GroupPolicyInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupPolicyInfo; + typeUrl: string; + encode(message: GroupPolicyInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo; fromJSON(object: any): GroupPolicyInfo; toJSON(message: GroupPolicyInfo): unknown; fromPartial(object: Partial): GroupPolicyInfo; @@ -798,8 +805,9 @@ export declare const GroupPolicyInfo: { toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg; }; export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): unknown; fromPartial(object: Partial): Proposal; @@ -812,8 +820,9 @@ export declare const Proposal: { toProtoMsg(message: Proposal): ProposalProtoMsg; }; export declare const TallyResult: { - encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; fromJSON(object: any): TallyResult; toJSON(message: TallyResult): unknown; fromPartial(object: Partial): TallyResult; @@ -826,8 +835,9 @@ export declare const TallyResult: { toProtoMsg(message: TallyResult): TallyResultProtoMsg; }; export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): unknown; fromPartial(object: Partial): Vote; @@ -839,6 +849,6 @@ export declare const Vote: { toProto(message: Vote): Uint8Array; toProtoMsg(message: Vote): VoteProtoMsg; }; -export declare const DecisionPolicy_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; +export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts index 62fca06f..664f1536 100644 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the mint module's genesis state. */ export interface GenesisState { /** minter is a space for holding current inflation information. */ @@ -28,8 +28,9 @@ export interface GenesisStateSDKType { params: ParamsSDKType; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts index acb17418..ad7800a2 100644 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts +++ b/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Minter represents the minting state. */ export interface Minter { /** current annual inflation rate */ @@ -14,9 +13,9 @@ export interface MinterProtoMsg { /** Minter represents the minting state. */ export interface MinterAmino { /** current annual inflation rate */ - inflation: string; + inflation?: string; /** current annual expected provisions */ - annual_provisions: string; + annual_provisions?: string; } export interface MinterAminoMsg { type: "cosmos-sdk/Minter"; @@ -40,7 +39,7 @@ export interface Params { /** goal of percent bonded atoms */ goalBonded: string; /** expected blocks per year */ - blocksPerYear: Long; + blocksPerYear: bigint; } export interface ParamsProtoMsg { typeUrl: "/cosmos.mint.v1beta1.Params"; @@ -49,17 +48,17 @@ export interface ParamsProtoMsg { /** Params holds parameters for the mint module. */ export interface ParamsAmino { /** type of coin to mint */ - mint_denom: string; + mint_denom?: string; /** maximum annual change in inflation rate */ - inflation_rate_change: string; + inflation_rate_change?: string; /** maximum inflation rate */ - inflation_max: string; + inflation_max?: string; /** minimum inflation rate */ - inflation_min: string; + inflation_min?: string; /** goal of percent bonded atoms */ - goal_bonded: string; + goal_bonded?: string; /** expected blocks per year */ - blocks_per_year: string; + blocks_per_year?: string; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -72,11 +71,12 @@ export interface ParamsSDKType { inflation_max: string; inflation_min: string; goal_bonded: string; - blocks_per_year: Long; + blocks_per_year: bigint; } export declare const Minter: { - encode(message: Minter, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Minter; + typeUrl: string; + encode(message: Minter, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Minter; fromJSON(object: any): Minter; toJSON(message: Minter): unknown; fromPartial(object: Partial): Minter; @@ -89,8 +89,9 @@ export declare const Minter: { toProtoMsg(message: Minter): MinterProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts index d9298769..55aa91b5 100644 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts @@ -1,5 +1,5 @@ import { Params, ParamsAmino, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } @@ -74,7 +74,7 @@ export interface QueryInflationResponseProtoMsg { */ export interface QueryInflationResponseAmino { /** inflation is the current minting inflation value. */ - inflation: Uint8Array; + inflation?: string; } export interface QueryInflationResponseAminoMsg { type: "cosmos-sdk/QueryInflationResponse"; @@ -131,7 +131,7 @@ export interface QueryAnnualProvisionsResponseProtoMsg { */ export interface QueryAnnualProvisionsResponseAmino { /** annual_provisions is the current minting annual provisions value. */ - annual_provisions: Uint8Array; + annual_provisions?: string; } export interface QueryAnnualProvisionsResponseAminoMsg { type: "cosmos-sdk/QueryAnnualProvisionsResponse"; @@ -145,8 +145,9 @@ export interface QueryAnnualProvisionsResponseSDKType { annual_provisions: Uint8Array; } export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -159,8 +160,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -173,8 +175,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryInflationRequest: { - encode(_: QueryInflationRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationRequest; + typeUrl: string; + encode(_: QueryInflationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest; fromJSON(_: any): QueryInflationRequest; toJSON(_: QueryInflationRequest): unknown; fromPartial(_: Partial): QueryInflationRequest; @@ -187,8 +190,9 @@ export declare const QueryInflationRequest: { toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg; }; export declare const QueryInflationResponse: { - encode(message: QueryInflationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationResponse; + typeUrl: string; + encode(message: QueryInflationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse; fromJSON(object: any): QueryInflationResponse; toJSON(message: QueryInflationResponse): unknown; fromPartial(object: Partial): QueryInflationResponse; @@ -201,8 +205,9 @@ export declare const QueryInflationResponse: { toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg; }; export declare const QueryAnnualProvisionsRequest: { - encode(_: QueryAnnualProvisionsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; + typeUrl: string; + encode(_: QueryAnnualProvisionsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; fromJSON(_: any): QueryAnnualProvisionsRequest; toJSON(_: QueryAnnualProvisionsRequest): unknown; fromPartial(_: Partial): QueryAnnualProvisionsRequest; @@ -215,8 +220,9 @@ export declare const QueryAnnualProvisionsRequest: { toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg; }; export declare const QueryAnnualProvisionsResponse: { - encode(message: QueryAnnualProvisionsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; + typeUrl: string; + encode(message: QueryAnnualProvisionsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; fromJSON(object: any): QueryAnnualProvisionsResponse; toJSON(message: QueryAnnualProvisionsResponse): unknown; fromPartial(object: Partial): QueryAnnualProvisionsResponse; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts index bab04928..ba5133f7 100644 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts index 2399cd6c..443dd62d 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventSend is emitted on Msg/Send */ export interface EventSend { classId: string; @@ -12,10 +12,10 @@ export interface EventSendProtoMsg { } /** EventSend is emitted on Msg/Send */ export interface EventSendAmino { - class_id: string; - id: string; - sender: string; - receiver: string; + class_id?: string; + id?: string; + sender?: string; + receiver?: string; } export interface EventSendAminoMsg { type: "cosmos-sdk/EventSend"; @@ -40,9 +40,9 @@ export interface EventMintProtoMsg { } /** EventMint is emitted on Mint */ export interface EventMintAmino { - class_id: string; - id: string; - owner: string; + class_id?: string; + id?: string; + owner?: string; } export interface EventMintAminoMsg { type: "cosmos-sdk/EventMint"; @@ -66,9 +66,9 @@ export interface EventBurnProtoMsg { } /** EventBurn is emitted on Burn */ export interface EventBurnAmino { - class_id: string; - id: string; - owner: string; + class_id?: string; + id?: string; + owner?: string; } export interface EventBurnAminoMsg { type: "cosmos-sdk/EventBurn"; @@ -81,8 +81,9 @@ export interface EventBurnSDKType { owner: string; } export declare const EventSend: { - encode(message: EventSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSend; + typeUrl: string; + encode(message: EventSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSend; fromJSON(object: any): EventSend; toJSON(message: EventSend): unknown; fromPartial(object: Partial): EventSend; @@ -95,8 +96,9 @@ export declare const EventSend: { toProtoMsg(message: EventSend): EventSendProtoMsg; }; export declare const EventMint: { - encode(message: EventMint, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventMint; + typeUrl: string; + encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventMint; fromJSON(object: any): EventMint; toJSON(message: EventMint): unknown; fromPartial(object: Partial): EventMint; @@ -109,8 +111,9 @@ export declare const EventMint: { toProtoMsg(message: EventMint): EventMintProtoMsg; }; export declare const EventBurn: { - encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn; + typeUrl: string; + encode(message: EventBurn, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBurn; fromJSON(object: any): EventBurn; toJSON(message: EventBurn): unknown; fromPartial(object: Partial): EventBurn; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts index 7e989b40..90535172 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts @@ -1,5 +1,5 @@ import { Class, ClassAmino, ClassSDKType, NFT, NFTAmino, NFTSDKType } from "./nft"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the nft module's genesis state. */ export interface GenesisState { /** class defines the class of the nft type. */ @@ -13,8 +13,8 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the nft module's genesis state. */ export interface GenesisStateAmino { /** class defines the class of the nft type. */ - classes: ClassAmino[]; - entries: EntryAmino[]; + classes?: ClassAmino[]; + entries?: EntryAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -39,9 +39,9 @@ export interface EntryProtoMsg { /** Entry Defines all nft owned by a person */ export interface EntryAmino { /** owner is the owner address of the following nft */ - owner: string; + owner?: string; /** nfts is a group of nfts of the same owner */ - nfts: NFTAmino[]; + nfts?: NFTAmino[]; } export interface EntryAminoMsg { type: "cosmos-sdk/Entry"; @@ -53,8 +53,9 @@ export interface EntrySDKType { nfts: NFTSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -67,8 +68,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const Entry: { - encode(message: Entry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Entry; + typeUrl: string; + encode(message: Entry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Entry; fromJSON(object: any): Entry; toJSON(message: Entry): unknown; fromPartial(object: Partial): Entry; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts index 2e611b48..c9efbaff 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Class defines the class of the nft type. */ export interface Class { /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ @@ -15,7 +15,7 @@ export interface Class { /** uri_hash is a hash of the document pointed by uri. Optional */ uriHash: string; /** data is the app specific metadata of the NFT class. Optional */ - data: Any; + data?: Any; } export interface ClassProtoMsg { typeUrl: "/cosmos.nft.v1beta1.Class"; @@ -24,17 +24,17 @@ export interface ClassProtoMsg { /** Class defines the class of the nft type. */ export interface ClassAmino { /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; + id?: string; /** name defines the human-readable name of the NFT classification. Optional */ - name: string; + name?: string; /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; + symbol?: string; /** description is a brief description of nft classification. Optional */ - description: string; + description?: string; /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; + uri?: string; /** uri_hash is a hash of the document pointed by uri. Optional */ - uri_hash: string; + uri_hash?: string; /** data is the app specific metadata of the NFT class. Optional */ data?: AnyAmino; } @@ -50,7 +50,7 @@ export interface ClassSDKType { description: string; uri: string; uri_hash: string; - data: AnySDKType; + data?: AnySDKType; } /** NFT defines the NFT. */ export interface NFT { @@ -63,7 +63,7 @@ export interface NFT { /** uri_hash is a hash of the document pointed by uri */ uriHash: string; /** data is an app specific data of the NFT. Optional */ - data: Any; + data?: Any; } export interface NFTProtoMsg { typeUrl: "/cosmos.nft.v1beta1.NFT"; @@ -72,13 +72,13 @@ export interface NFTProtoMsg { /** NFT defines the NFT. */ export interface NFTAmino { /** class_id associated with the NFT, similar to the contract address of ERC721 */ - class_id: string; + class_id?: string; /** id is a unique identifier of the NFT */ - id: string; + id?: string; /** uri for the NFT metadata stored off chain */ - uri: string; + uri?: string; /** uri_hash is a hash of the document pointed by uri */ - uri_hash: string; + uri_hash?: string; /** data is an app specific data of the NFT. Optional */ data?: AnyAmino; } @@ -92,11 +92,12 @@ export interface NFTSDKType { id: string; uri: string; uri_hash: string; - data: AnySDKType; + data?: AnySDKType; } export declare const Class: { - encode(message: Class, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Class; + typeUrl: string; + encode(message: Class, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Class; fromJSON(object: any): Class; toJSON(message: Class): unknown; fromPartial(object: Partial): Class; @@ -109,8 +110,9 @@ export declare const Class: { toProtoMsg(message: Class): ClassProtoMsg; }; export declare const NFT: { - encode(message: NFT, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): NFT; + typeUrl: string; + encode(message: NFT, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): NFT; fromJSON(object: any): NFT; toJSON(message: NFT): unknown; fromPartial(object: Partial): NFT; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts index 6a81eeb6..fb5fb02a 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts @@ -1,7 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { NFT, NFTAmino, NFTSDKType, Class, ClassAmino, ClassSDKType } from "./nft"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method */ export interface QueryBalanceRequest { classId: string; @@ -13,8 +12,8 @@ export interface QueryBalanceRequestProtoMsg { } /** QueryBalanceRequest is the request type for the Query/Balance RPC method */ export interface QueryBalanceRequestAmino { - class_id: string; - owner: string; + class_id?: string; + owner?: string; } export interface QueryBalanceRequestAminoMsg { type: "cosmos-sdk/QueryBalanceRequest"; @@ -27,7 +26,7 @@ export interface QueryBalanceRequestSDKType { } /** QueryBalanceResponse is the response type for the Query/Balance RPC method */ export interface QueryBalanceResponse { - amount: Long; + amount: bigint; } export interface QueryBalanceResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse"; @@ -35,7 +34,7 @@ export interface QueryBalanceResponseProtoMsg { } /** QueryBalanceResponse is the response type for the Query/Balance RPC method */ export interface QueryBalanceResponseAmino { - amount: string; + amount?: string; } export interface QueryBalanceResponseAminoMsg { type: "cosmos-sdk/QueryBalanceResponse"; @@ -43,7 +42,7 @@ export interface QueryBalanceResponseAminoMsg { } /** QueryBalanceResponse is the response type for the Query/Balance RPC method */ export interface QueryBalanceResponseSDKType { - amount: Long; + amount: bigint; } /** QueryOwnerRequest is the request type for the Query/Owner RPC method */ export interface QueryOwnerRequest { @@ -56,8 +55,8 @@ export interface QueryOwnerRequestProtoMsg { } /** QueryOwnerRequest is the request type for the Query/Owner RPC method */ export interface QueryOwnerRequestAmino { - class_id: string; - id: string; + class_id?: string; + id?: string; } export interface QueryOwnerRequestAminoMsg { type: "cosmos-sdk/QueryOwnerRequest"; @@ -78,7 +77,7 @@ export interface QueryOwnerResponseProtoMsg { } /** QueryOwnerResponse is the response type for the Query/Owner RPC method */ export interface QueryOwnerResponseAmino { - owner: string; + owner?: string; } export interface QueryOwnerResponseAminoMsg { type: "cosmos-sdk/QueryOwnerResponse"; @@ -98,7 +97,7 @@ export interface QuerySupplyRequestProtoMsg { } /** QuerySupplyRequest is the request type for the Query/Supply RPC method */ export interface QuerySupplyRequestAmino { - class_id: string; + class_id?: string; } export interface QuerySupplyRequestAminoMsg { type: "cosmos-sdk/QuerySupplyRequest"; @@ -110,7 +109,7 @@ export interface QuerySupplyRequestSDKType { } /** QuerySupplyResponse is the response type for the Query/Supply RPC method */ export interface QuerySupplyResponse { - amount: Long; + amount: bigint; } export interface QuerySupplyResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse"; @@ -118,7 +117,7 @@ export interface QuerySupplyResponseProtoMsg { } /** QuerySupplyResponse is the response type for the Query/Supply RPC method */ export interface QuerySupplyResponseAmino { - amount: string; + amount?: string; } export interface QuerySupplyResponseAminoMsg { type: "cosmos-sdk/QuerySupplyResponse"; @@ -126,13 +125,13 @@ export interface QuerySupplyResponseAminoMsg { } /** QuerySupplyResponse is the response type for the Query/Supply RPC method */ export interface QuerySupplyResponseSDKType { - amount: Long; + amount: bigint; } /** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ export interface QueryNFTsRequest { classId: string; owner: string; - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryNFTsRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest"; @@ -140,8 +139,8 @@ export interface QueryNFTsRequestProtoMsg { } /** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ export interface QueryNFTsRequestAmino { - class_id: string; - owner: string; + class_id?: string; + owner?: string; pagination?: PageRequestAmino; } export interface QueryNFTsRequestAminoMsg { @@ -152,12 +151,12 @@ export interface QueryNFTsRequestAminoMsg { export interface QueryNFTsRequestSDKType { class_id: string; owner: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ export interface QueryNFTsResponse { nfts: NFT[]; - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryNFTsResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse"; @@ -165,7 +164,7 @@ export interface QueryNFTsResponseProtoMsg { } /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ export interface QueryNFTsResponseAmino { - nfts: NFTAmino[]; + nfts?: NFTAmino[]; pagination?: PageResponseAmino; } export interface QueryNFTsResponseAminoMsg { @@ -175,7 +174,7 @@ export interface QueryNFTsResponseAminoMsg { /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ export interface QueryNFTsResponseSDKType { nfts: NFTSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryNFTRequest is the request type for the Query/NFT RPC method */ export interface QueryNFTRequest { @@ -188,8 +187,8 @@ export interface QueryNFTRequestProtoMsg { } /** QueryNFTRequest is the request type for the Query/NFT RPC method */ export interface QueryNFTRequestAmino { - class_id: string; - id: string; + class_id?: string; + id?: string; } export interface QueryNFTRequestAminoMsg { type: "cosmos-sdk/QueryNFTRequest"; @@ -202,7 +201,7 @@ export interface QueryNFTRequestSDKType { } /** QueryNFTResponse is the response type for the Query/NFT RPC method */ export interface QueryNFTResponse { - nft: NFT; + nft?: NFT; } export interface QueryNFTResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse"; @@ -218,7 +217,7 @@ export interface QueryNFTResponseAminoMsg { } /** QueryNFTResponse is the response type for the Query/NFT RPC method */ export interface QueryNFTResponseSDKType { - nft: NFTSDKType; + nft?: NFTSDKType; } /** QueryClassRequest is the request type for the Query/Class RPC method */ export interface QueryClassRequest { @@ -230,7 +229,7 @@ export interface QueryClassRequestProtoMsg { } /** QueryClassRequest is the request type for the Query/Class RPC method */ export interface QueryClassRequestAmino { - class_id: string; + class_id?: string; } export interface QueryClassRequestAminoMsg { type: "cosmos-sdk/QueryClassRequest"; @@ -242,7 +241,7 @@ export interface QueryClassRequestSDKType { } /** QueryClassResponse is the response type for the Query/Class RPC method */ export interface QueryClassResponse { - class: Class; + class?: Class; } export interface QueryClassResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse"; @@ -258,12 +257,12 @@ export interface QueryClassResponseAminoMsg { } /** QueryClassResponse is the response type for the Query/Class RPC method */ export interface QueryClassResponseSDKType { - class: ClassSDKType; + class?: ClassSDKType; } /** QueryClassesRequest is the request type for the Query/Classes RPC method */ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClassesRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest"; @@ -280,12 +279,12 @@ export interface QueryClassesRequestAminoMsg { } /** QueryClassesRequest is the request type for the Query/Classes RPC method */ export interface QueryClassesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryClassesResponse is the response type for the Query/Classes RPC method */ export interface QueryClassesResponse { classes: Class[]; - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClassesResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse"; @@ -293,7 +292,7 @@ export interface QueryClassesResponseProtoMsg { } /** QueryClassesResponse is the response type for the Query/Classes RPC method */ export interface QueryClassesResponseAmino { - classes: ClassAmino[]; + classes?: ClassAmino[]; pagination?: PageResponseAmino; } export interface QueryClassesResponseAminoMsg { @@ -303,11 +302,12 @@ export interface QueryClassesResponseAminoMsg { /** QueryClassesResponse is the response type for the Query/Classes RPC method */ export interface QueryClassesResponseSDKType { classes: ClassSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryBalanceRequest: { - encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; fromPartial(object: Partial): QueryBalanceRequest; @@ -320,8 +320,9 @@ export declare const QueryBalanceRequest: { toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; }; export declare const QueryBalanceResponse: { - encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; fromPartial(object: Partial): QueryBalanceResponse; @@ -334,8 +335,9 @@ export declare const QueryBalanceResponse: { toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; }; export declare const QueryOwnerRequest: { - encode(message: QueryOwnerRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerRequest; + typeUrl: string; + encode(message: QueryOwnerRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest; fromJSON(object: any): QueryOwnerRequest; toJSON(message: QueryOwnerRequest): unknown; fromPartial(object: Partial): QueryOwnerRequest; @@ -348,8 +350,9 @@ export declare const QueryOwnerRequest: { toProtoMsg(message: QueryOwnerRequest): QueryOwnerRequestProtoMsg; }; export declare const QueryOwnerResponse: { - encode(message: QueryOwnerResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerResponse; + typeUrl: string; + encode(message: QueryOwnerResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse; fromJSON(object: any): QueryOwnerResponse; toJSON(message: QueryOwnerResponse): unknown; fromPartial(object: Partial): QueryOwnerResponse; @@ -362,8 +365,9 @@ export declare const QueryOwnerResponse: { toProtoMsg(message: QueryOwnerResponse): QueryOwnerResponseProtoMsg; }; export declare const QuerySupplyRequest: { - encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest; + typeUrl: string; + encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): unknown; fromPartial(object: Partial): QuerySupplyRequest; @@ -376,8 +380,9 @@ export declare const QuerySupplyRequest: { toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; }; export declare const QuerySupplyResponse: { - encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse; + typeUrl: string; + encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): unknown; fromPartial(object: Partial): QuerySupplyResponse; @@ -390,8 +395,9 @@ export declare const QuerySupplyResponse: { toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; }; export declare const QueryNFTsRequest: { - encode(message: QueryNFTsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsRequest; + typeUrl: string; + encode(message: QueryNFTsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest; fromJSON(object: any): QueryNFTsRequest; toJSON(message: QueryNFTsRequest): unknown; fromPartial(object: Partial): QueryNFTsRequest; @@ -404,8 +410,9 @@ export declare const QueryNFTsRequest: { toProtoMsg(message: QueryNFTsRequest): QueryNFTsRequestProtoMsg; }; export declare const QueryNFTsResponse: { - encode(message: QueryNFTsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsResponse; + typeUrl: string; + encode(message: QueryNFTsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse; fromJSON(object: any): QueryNFTsResponse; toJSON(message: QueryNFTsResponse): unknown; fromPartial(object: Partial): QueryNFTsResponse; @@ -418,8 +425,9 @@ export declare const QueryNFTsResponse: { toProtoMsg(message: QueryNFTsResponse): QueryNFTsResponseProtoMsg; }; export declare const QueryNFTRequest: { - encode(message: QueryNFTRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTRequest; + typeUrl: string; + encode(message: QueryNFTRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest; fromJSON(object: any): QueryNFTRequest; toJSON(message: QueryNFTRequest): unknown; fromPartial(object: Partial): QueryNFTRequest; @@ -432,8 +440,9 @@ export declare const QueryNFTRequest: { toProtoMsg(message: QueryNFTRequest): QueryNFTRequestProtoMsg; }; export declare const QueryNFTResponse: { - encode(message: QueryNFTResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTResponse; + typeUrl: string; + encode(message: QueryNFTResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse; fromJSON(object: any): QueryNFTResponse; toJSON(message: QueryNFTResponse): unknown; fromPartial(object: Partial): QueryNFTResponse; @@ -446,8 +455,9 @@ export declare const QueryNFTResponse: { toProtoMsg(message: QueryNFTResponse): QueryNFTResponseProtoMsg; }; export declare const QueryClassRequest: { - encode(message: QueryClassRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest; + typeUrl: string; + encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; fromJSON(object: any): QueryClassRequest; toJSON(message: QueryClassRequest): unknown; fromPartial(object: Partial): QueryClassRequest; @@ -460,8 +470,9 @@ export declare const QueryClassRequest: { toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; }; export declare const QueryClassResponse: { - encode(message: QueryClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse; + typeUrl: string; + encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; fromJSON(object: any): QueryClassResponse; toJSON(message: QueryClassResponse): unknown; fromPartial(object: Partial): QueryClassResponse; @@ -474,8 +485,9 @@ export declare const QueryClassResponse: { toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; }; export declare const QueryClassesRequest: { - encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest; + typeUrl: string; + encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; fromJSON(object: any): QueryClassesRequest; toJSON(message: QueryClassesRequest): unknown; fromPartial(object: Partial): QueryClassesRequest; @@ -488,8 +500,9 @@ export declare const QueryClassesRequest: { toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; }; export declare const QueryClassesResponse: { - encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse; + typeUrl: string; + encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; fromJSON(object: any): QueryClassesResponse; toJSON(message: QueryClassesResponse): unknown; fromPartial(object: Partial): QueryClassesResponse; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts index d5be0983..10feda33 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts index f42f2d66..aa70b90a 100644 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgSend represents a message to send a nft from one account to another account. */ export interface MsgSend { /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ @@ -17,13 +17,13 @@ export interface MsgSendProtoMsg { /** MsgSend represents a message to send a nft from one account to another account. */ export interface MsgSendAmino { /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - class_id: string; + class_id?: string; /** id defines the unique identification of nft */ - id: string; + id?: string; /** sender is the address of the owner of nft */ - sender: string; + sender?: string; /** receiver is the receiver address of nft */ - receiver: string; + receiver?: string; } export interface MsgSendAminoMsg { type: "cosmos-sdk/MsgNFTSend"; @@ -54,8 +54,9 @@ export interface MsgSendResponseAminoMsg { export interface MsgSendResponseSDKType { } export declare const MsgSend: { - encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; fromJSON(object: any): MsgSend; toJSON(message: MsgSend): unknown; fromPartial(object: Partial): MsgSend; @@ -68,8 +69,9 @@ export declare const MsgSend: { toProtoMsg(message: MsgSend): MsgSendProtoMsg; }; export declare const MsgSendResponse: { - encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; fromJSON(_: any): MsgSendResponse; toJSON(_: MsgSendResponse): unknown; fromPartial(_: Partial): MsgSendResponse; diff --git a/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts index 6bb5862e..6365e481 100644 --- a/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts +++ b/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * Module defines the ORM module which adds providers to the app container for * module-scoped DB's. In the future it may provide gRPC services for interacting @@ -29,8 +29,9 @@ export interface ModuleAminoMsg { export interface ModuleSDKType { } export declare const Module: { - encode(_: Module, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Module; + typeUrl: string; + encode(_: Module, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Module; fromJSON(_: any): Module; toJSON(_: Module): unknown; fromPartial(_: Partial): Module; diff --git a/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts b/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts index 825fe976..e423bccf 100644 --- a/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts +++ b/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts @@ -1,8 +1,8 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** TableDescriptor describes an ORM table. */ export interface TableDescriptor { /** primary_key defines the primary key for the table. */ - primaryKey: PrimaryKeyDescriptor; + primaryKey?: PrimaryKeyDescriptor; /** index defines one or more secondary indexes. */ index: SecondaryIndexDescriptor[]; /** @@ -21,13 +21,13 @@ export interface TableDescriptorAmino { /** primary_key defines the primary key for the table. */ primary_key?: PrimaryKeyDescriptorAmino; /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptorAmino[]; + index?: SecondaryIndexDescriptorAmino[]; /** * id is a non-zero integer ID that must be unique within the * tables and singletons in this file. It may be deprecated in the future when this * can be auto-generated. */ - id: number; + id?: number; } export interface TableDescriptorAminoMsg { type: "cosmos-sdk/TableDescriptor"; @@ -35,7 +35,7 @@ export interface TableDescriptorAminoMsg { } /** TableDescriptor describes an ORM table. */ export interface TableDescriptorSDKType { - primary_key: PrimaryKeyDescriptorSDKType; + primary_key?: PrimaryKeyDescriptorSDKType; index: SecondaryIndexDescriptorSDKType[]; id: number; } @@ -119,13 +119,13 @@ export interface PrimaryKeyDescriptorAmino { * Primary keys are prefixed by the varint encoded table id and the byte 0x0 * plus any additional prefix specified by the schema. */ - fields: string; + fields?: string; /** * auto_increment specifies that the primary key is generated by an * auto-incrementing integer. If this is set to true fields must only * contain one field of that is of type uint64. */ - auto_increment: boolean; + auto_increment?: boolean; } export interface PrimaryKeyDescriptorAminoMsg { type: "cosmos-sdk/PrimaryKeyDescriptor"; @@ -176,15 +176,15 @@ export interface SecondaryIndexDescriptorAmino { * primary key can be reconstructed. Unique indexes instead of being suffixed * store the remaining primary key fields in the value.. */ - fields: string; + fields?: string; /** * id is a non-zero integer ID that must be unique within the indexes for this * table and less than 32768. It may be deprecated in the future when this can * be auto-generated. */ - id: number; + id?: number; /** unique specifies that this an unique index. */ - unique: boolean; + unique?: boolean; } export interface SecondaryIndexDescriptorAminoMsg { type: "cosmos-sdk/SecondaryIndexDescriptor"; @@ -216,7 +216,7 @@ export interface SingletonDescriptorAmino { * tables and singletons in this file. It may be deprecated in the future when this * can be auto-generated. */ - id: number; + id?: number; } export interface SingletonDescriptorAminoMsg { type: "cosmos-sdk/SingletonDescriptor"; @@ -227,8 +227,9 @@ export interface SingletonDescriptorSDKType { id: number; } export declare const TableDescriptor: { - encode(message: TableDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TableDescriptor; + typeUrl: string; + encode(message: TableDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor; fromJSON(object: any): TableDescriptor; toJSON(message: TableDescriptor): unknown; fromPartial(object: Partial): TableDescriptor; @@ -241,8 +242,9 @@ export declare const TableDescriptor: { toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg; }; export declare const PrimaryKeyDescriptor: { - encode(message: PrimaryKeyDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PrimaryKeyDescriptor; + typeUrl: string; + encode(message: PrimaryKeyDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor; fromJSON(object: any): PrimaryKeyDescriptor; toJSON(message: PrimaryKeyDescriptor): unknown; fromPartial(object: Partial): PrimaryKeyDescriptor; @@ -255,8 +257,9 @@ export declare const PrimaryKeyDescriptor: { toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg; }; export declare const SecondaryIndexDescriptor: { - encode(message: SecondaryIndexDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SecondaryIndexDescriptor; + typeUrl: string; + encode(message: SecondaryIndexDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor; fromJSON(object: any): SecondaryIndexDescriptor; toJSON(message: SecondaryIndexDescriptor): unknown; fromPartial(object: Partial): SecondaryIndexDescriptor; @@ -269,8 +272,9 @@ export declare const SecondaryIndexDescriptor: { toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg; }; export declare const SingletonDescriptor: { - encode(message: SingletonDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SingletonDescriptor; + typeUrl: string; + encode(message: SingletonDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor; fromJSON(object: any): SingletonDescriptor; toJSON(message: SingletonDescriptor): unknown; fromPartial(object: Partial): SingletonDescriptor; diff --git a/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts b/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts index 6cff3a96..2fc90190 100644 --- a/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +++ b/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** StorageType */ export declare enum StorageType { /** @@ -61,12 +61,12 @@ export interface ModuleSchemaDescriptorProtoMsg { } /** ModuleSchemaDescriptor describe's a module's ORM schema. */ export interface ModuleSchemaDescriptorAmino { - schema_file: ModuleSchemaDescriptor_FileEntryAmino[]; + schema_file?: ModuleSchemaDescriptor_FileEntryAmino[]; /** * prefix is an optional prefix that precedes all keys in this module's * store. */ - prefix: Uint8Array; + prefix?: string; } export interface ModuleSchemaDescriptorAminoMsg { type: "cosmos-sdk/ModuleSchemaDescriptor"; @@ -107,19 +107,19 @@ export interface ModuleSchemaDescriptor_FileEntryAmino { * id is a prefix that will be varint encoded and prepended to all the * table keys specified in the file's tables. */ - id: number; + id?: number; /** * proto_file_name is the name of a file .proto in that contains * table definitions. The .proto file must be in a package that the * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. */ - proto_file_name: string; + proto_file_name?: string; /** * storage_type optionally indicates the type of storage this file's * tables should used. If it is left unspecified, the default KV-storage * of the app will be used. */ - storage_type: StorageType; + storage_type?: StorageType; } export interface ModuleSchemaDescriptor_FileEntryAminoMsg { type: "cosmos-sdk/FileEntry"; @@ -132,8 +132,9 @@ export interface ModuleSchemaDescriptor_FileEntrySDKType { storage_type: StorageType; } export declare const ModuleSchemaDescriptor: { - encode(message: ModuleSchemaDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor; + typeUrl: string; + encode(message: ModuleSchemaDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor; fromJSON(object: any): ModuleSchemaDescriptor; toJSON(message: ModuleSchemaDescriptor): unknown; fromPartial(object: Partial): ModuleSchemaDescriptor; @@ -146,8 +147,9 @@ export declare const ModuleSchemaDescriptor: { toProtoMsg(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorProtoMsg; }; export declare const ModuleSchemaDescriptor_FileEntry: { - encode(message: ModuleSchemaDescriptor_FileEntry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry; + typeUrl: string; + encode(message: ModuleSchemaDescriptor_FileEntry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry; fromJSON(object: any): ModuleSchemaDescriptor_FileEntry; toJSON(message: ModuleSchemaDescriptor_FileEntry): unknown; fromPartial(object: Partial): ModuleSchemaDescriptor_FileEntry; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts index 3b0fdd2b..95407898 100644 --- a/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts +++ b/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts @@ -1,7 +1,7 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** ParameterChangeProposal defines a proposal to change one or more parameters. */ export interface ParameterChangeProposal { - $typeUrl?: string; + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; title: string; description: string; changes: ParamChange[]; @@ -12,9 +12,9 @@ export interface ParameterChangeProposalProtoMsg { } /** ParameterChangeProposal defines a proposal to change one or more parameters. */ export interface ParameterChangeProposalAmino { - title: string; - description: string; - changes: ParamChangeAmino[]; + title?: string; + description?: string; + changes?: ParamChangeAmino[]; } export interface ParameterChangeProposalAminoMsg { type: "cosmos-sdk/ParameterChangeProposal"; @@ -22,7 +22,7 @@ export interface ParameterChangeProposalAminoMsg { } /** ParameterChangeProposal defines a proposal to change one or more parameters. */ export interface ParameterChangeProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; title: string; description: string; changes: ParamChangeSDKType[]; @@ -45,9 +45,9 @@ export interface ParamChangeProtoMsg { * ParameterChangeProposal. */ export interface ParamChangeAmino { - subspace: string; - key: string; - value: string; + subspace?: string; + key?: string; + value?: string; } export interface ParamChangeAminoMsg { type: "cosmos-sdk/ParamChange"; @@ -63,8 +63,9 @@ export interface ParamChangeSDKType { value: string; } export declare const ParameterChangeProposal: { - encode(message: ParameterChangeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ParameterChangeProposal; + typeUrl: string; + encode(message: ParameterChangeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal; fromJSON(object: any): ParameterChangeProposal; toJSON(message: ParameterChangeProposal): unknown; fromPartial(object: Partial): ParameterChangeProposal; @@ -77,8 +78,9 @@ export declare const ParameterChangeProposal: { toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg; }; export declare const ParamChange: { - encode(message: ParamChange, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ParamChange; + typeUrl: string; + encode(message: ParamChange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ParamChange; fromJSON(object: any): ParamChange; toJSON(message: ParamChange): unknown; fromPartial(object: Partial): ParamChange; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts index b5423a59..c4e11a18 100644 --- a/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts @@ -1,5 +1,5 @@ import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequest { /** subspace defines the module to query the parameter for. */ @@ -14,9 +14,9 @@ export interface QueryParamsRequestProtoMsg { /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequestAmino { /** subspace defines the module to query the parameter for. */ - subspace: string; + subspace?: string; /** key defines the key of the parameter in the subspace. */ - key: string; + key?: string; } export interface QueryParamsRequestAminoMsg { type: "cosmos-sdk/QueryParamsRequest"; @@ -101,7 +101,7 @@ export interface QuerySubspacesResponseProtoMsg { * Since: cosmos-sdk 0.46 */ export interface QuerySubspacesResponseAmino { - subspaces: SubspaceAmino[]; + subspaces?: SubspaceAmino[]; } export interface QuerySubspacesResponseAminoMsg { type: "cosmos-sdk/QuerySubspacesResponse"; @@ -137,8 +137,8 @@ export interface SubspaceProtoMsg { * Since: cosmos-sdk 0.46 */ export interface SubspaceAmino { - subspace: string; - keys: string[]; + subspace?: string; + keys?: string[]; } export interface SubspaceAminoMsg { type: "cosmos-sdk/Subspace"; @@ -155,8 +155,9 @@ export interface SubspaceSDKType { keys: string[]; } export declare const QueryParamsRequest: { - encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(object: any): QueryParamsRequest; toJSON(message: QueryParamsRequest): unknown; fromPartial(object: Partial): QueryParamsRequest; @@ -169,8 +170,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -183,8 +185,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QuerySubspacesRequest: { - encode(_: QuerySubspacesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesRequest; + typeUrl: string; + encode(_: QuerySubspacesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest; fromJSON(_: any): QuerySubspacesRequest; toJSON(_: QuerySubspacesRequest): unknown; fromPartial(_: Partial): QuerySubspacesRequest; @@ -197,8 +200,9 @@ export declare const QuerySubspacesRequest: { toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg; }; export declare const QuerySubspacesResponse: { - encode(message: QuerySubspacesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesResponse; + typeUrl: string; + encode(message: QuerySubspacesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse; fromJSON(object: any): QuerySubspacesResponse; toJSON(message: QuerySubspacesResponse): unknown; fromPartial(object: Partial): QuerySubspacesResponse; @@ -211,8 +215,9 @@ export declare const QuerySubspacesResponse: { toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg; }; export declare const Subspace: { - encode(message: Subspace, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Subspace; + typeUrl: string; + encode(message: Subspace, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Subspace; fromJSON(object: any): Subspace; toJSON(message: Subspace): unknown; fromPartial(object: Partial): Subspace; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts index 4d76132d..aaa5da47 100644 --- a/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts index 0b27f0b2..8d9910f7 100644 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts @@ -1,6 +1,5 @@ import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the slashing module's genesis state. */ export interface GenesisState { /** params defines all the paramaters of related to deposit. */ @@ -28,12 +27,12 @@ export interface GenesisStateAmino { * signing_infos represents a map between validator addresses and their * signing infos. */ - signing_infos: SigningInfoAmino[]; + signing_infos?: SigningInfoAmino[]; /** * missed_blocks represents a map between validator addresses and their * missed blocks. */ - missed_blocks: ValidatorMissedBlocksAmino[]; + missed_blocks?: ValidatorMissedBlocksAmino[]; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -59,7 +58,7 @@ export interface SigningInfoProtoMsg { /** SigningInfo stores validator signing info of corresponding address. */ export interface SigningInfoAmino { /** address is the validator address. */ - address: string; + address?: string; /** validator_signing_info represents the signing info of this validator. */ validator_signing_info?: ValidatorSigningInfoAmino; } @@ -92,9 +91,9 @@ export interface ValidatorMissedBlocksProtoMsg { */ export interface ValidatorMissedBlocksAmino { /** address is the validator address. */ - address: string; + address?: string; /** missed_blocks is an array of missed blocks by the validator. */ - missed_blocks: MissedBlockAmino[]; + missed_blocks?: MissedBlockAmino[]; } export interface ValidatorMissedBlocksAminoMsg { type: "cosmos-sdk/ValidatorMissedBlocks"; @@ -111,7 +110,7 @@ export interface ValidatorMissedBlocksSDKType { /** MissedBlock contains height and missed status as boolean. */ export interface MissedBlock { /** index is the height at which the block was missed. */ - index: Long; + index: bigint; /** missed is the missed status. */ missed: boolean; } @@ -122,9 +121,9 @@ export interface MissedBlockProtoMsg { /** MissedBlock contains height and missed status as boolean. */ export interface MissedBlockAmino { /** index is the height at which the block was missed. */ - index: string; + index?: string; /** missed is the missed status. */ - missed: boolean; + missed?: boolean; } export interface MissedBlockAminoMsg { type: "cosmos-sdk/MissedBlock"; @@ -132,12 +131,13 @@ export interface MissedBlockAminoMsg { } /** MissedBlock contains height and missed status as boolean. */ export interface MissedBlockSDKType { - index: Long; + index: bigint; missed: boolean; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -150,8 +150,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const SigningInfo: { - encode(message: SigningInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SigningInfo; + typeUrl: string; + encode(message: SigningInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SigningInfo; fromJSON(object: any): SigningInfo; toJSON(message: SigningInfo): unknown; fromPartial(object: Partial): SigningInfo; @@ -164,8 +165,9 @@ export declare const SigningInfo: { toProtoMsg(message: SigningInfo): SigningInfoProtoMsg; }; export declare const ValidatorMissedBlocks: { - encode(message: ValidatorMissedBlocks, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorMissedBlocks; + typeUrl: string; + encode(message: ValidatorMissedBlocks, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorMissedBlocks; fromJSON(object: any): ValidatorMissedBlocks; toJSON(message: ValidatorMissedBlocks): unknown; fromPartial(object: Partial): ValidatorMissedBlocks; @@ -178,8 +180,9 @@ export declare const ValidatorMissedBlocks: { toProtoMsg(message: ValidatorMissedBlocks): ValidatorMissedBlocksProtoMsg; }; export declare const MissedBlock: { - encode(message: MissedBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MissedBlock; + typeUrl: string; + encode(message: MissedBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MissedBlock; fromJSON(object: any): MissedBlock; toJSON(message: MissedBlock): unknown; fromPartial(object: Partial): MissedBlock; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts index 08f8f58a..650f43a4 100644 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryParamsRequest is the request type for the Query/Params RPC method */ export interface QueryParamsRequest { } @@ -56,7 +56,7 @@ export interface QuerySigningInfoRequestProtoMsg { */ export interface QuerySigningInfoRequestAmino { /** cons_address is the address to query signing info of */ - cons_address: string; + cons_address?: string; } export interface QuerySigningInfoRequestAminoMsg { type: "cosmos-sdk/QuerySigningInfoRequest"; @@ -105,7 +105,7 @@ export interface QuerySigningInfoResponseSDKType { * method */ export interface QuerySigningInfosRequest { - pagination: PageRequest; + pagination?: PageRequest; } export interface QuerySigningInfosRequestProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest"; @@ -127,7 +127,7 @@ export interface QuerySigningInfosRequestAminoMsg { * method */ export interface QuerySigningInfosRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC @@ -136,7 +136,7 @@ export interface QuerySigningInfosRequestSDKType { export interface QuerySigningInfosResponse { /** info is the signing info of all validators */ info: ValidatorSigningInfo[]; - pagination: PageResponse; + pagination?: PageResponse; } export interface QuerySigningInfosResponseProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse"; @@ -148,7 +148,7 @@ export interface QuerySigningInfosResponseProtoMsg { */ export interface QuerySigningInfosResponseAmino { /** info is the signing info of all validators */ - info: ValidatorSigningInfoAmino[]; + info?: ValidatorSigningInfoAmino[]; pagination?: PageResponseAmino; } export interface QuerySigningInfosResponseAminoMsg { @@ -161,11 +161,12 @@ export interface QuerySigningInfosResponseAminoMsg { */ export interface QuerySigningInfosResponseSDKType { info: ValidatorSigningInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -178,8 +179,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -192,8 +194,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QuerySigningInfoRequest: { - encode(message: QuerySigningInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoRequest; + typeUrl: string; + encode(message: QuerySigningInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoRequest; fromJSON(object: any): QuerySigningInfoRequest; toJSON(message: QuerySigningInfoRequest): unknown; fromPartial(object: Partial): QuerySigningInfoRequest; @@ -206,8 +209,9 @@ export declare const QuerySigningInfoRequest: { toProtoMsg(message: QuerySigningInfoRequest): QuerySigningInfoRequestProtoMsg; }; export declare const QuerySigningInfoResponse: { - encode(message: QuerySigningInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoResponse; + typeUrl: string; + encode(message: QuerySigningInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoResponse; fromJSON(object: any): QuerySigningInfoResponse; toJSON(message: QuerySigningInfoResponse): unknown; fromPartial(object: Partial): QuerySigningInfoResponse; @@ -220,8 +224,9 @@ export declare const QuerySigningInfoResponse: { toProtoMsg(message: QuerySigningInfoResponse): QuerySigningInfoResponseProtoMsg; }; export declare const QuerySigningInfosRequest: { - encode(message: QuerySigningInfosRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosRequest; + typeUrl: string; + encode(message: QuerySigningInfosRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosRequest; fromJSON(object: any): QuerySigningInfosRequest; toJSON(message: QuerySigningInfosRequest): unknown; fromPartial(object: Partial): QuerySigningInfosRequest; @@ -234,8 +239,9 @@ export declare const QuerySigningInfosRequest: { toProtoMsg(message: QuerySigningInfosRequest): QuerySigningInfosRequestProtoMsg; }; export declare const QuerySigningInfosResponse: { - encode(message: QuerySigningInfosResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosResponse; + typeUrl: string; + encode(message: QuerySigningInfosResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosResponse; fromJSON(object: any): QuerySigningInfosResponse; toJSON(message: QuerySigningInfosResponse): unknown; fromPartial(object: Partial): QuerySigningInfosResponse; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts index 68fa91bb..01330138 100644 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts index 40ac2db0..29759643 100644 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +++ b/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts @@ -1,7 +1,6 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * ValidatorSigningInfo defines a validator's signing info for monitoring their * liveness activity. @@ -9,13 +8,13 @@ import * as _m0 from "protobufjs/minimal"; export interface ValidatorSigningInfo { address: string; /** Height at which validator was first a candidate OR was unjailed */ - startHeight: Long; + startHeight: bigint; /** * Index which is incremented each time the validator was a bonded * in a block and may have signed a precommit or not. This in conjunction with the * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. */ - indexOffset: Long; + indexOffset: bigint; /** Timestamp until which the validator is jailed due to liveness downtime. */ jailedUntil: Timestamp; /** @@ -27,7 +26,7 @@ export interface ValidatorSigningInfo { * A counter kept to avoid unnecessary array reads. * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. */ - missedBlocksCounter: Long; + missedBlocksCounter: bigint; } export interface ValidatorSigningInfoProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; @@ -38,27 +37,27 @@ export interface ValidatorSigningInfoProtoMsg { * liveness activity. */ export interface ValidatorSigningInfoAmino { - address: string; + address?: string; /** Height at which validator was first a candidate OR was unjailed */ - start_height: string; + start_height?: string; /** * Index which is incremented each time the validator was a bonded * in a block and may have signed a precommit or not. This in conjunction with the * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. */ - index_offset: string; + index_offset?: string; /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailed_until?: TimestampAmino; + jailed_until?: string; /** * Whether or not a validator has been tombstoned (killed out of validator set). It is set * once the validator commits an equivocation or for any other configured misbehiavor. */ - tombstoned: boolean; + tombstoned?: boolean; /** * A counter kept to avoid unnecessary array reads. * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. */ - missed_blocks_counter: string; + missed_blocks_counter?: string; } export interface ValidatorSigningInfoAminoMsg { type: "cosmos-sdk/ValidatorSigningInfo"; @@ -70,15 +69,15 @@ export interface ValidatorSigningInfoAminoMsg { */ export interface ValidatorSigningInfoSDKType { address: string; - start_height: Long; - index_offset: Long; + start_height: bigint; + index_offset: bigint; jailed_until: TimestampSDKType; tombstoned: boolean; - missed_blocks_counter: Long; + missed_blocks_counter: bigint; } /** Params represents the parameters used for by the slashing module. */ export interface Params { - signedBlocksWindow: Long; + signedBlocksWindow: bigint; minSignedPerWindow: Uint8Array; downtimeJailDuration: Duration; slashFractionDoubleSign: Uint8Array; @@ -90,11 +89,11 @@ export interface ParamsProtoMsg { } /** Params represents the parameters used for by the slashing module. */ export interface ParamsAmino { - signed_blocks_window: string; - min_signed_per_window: Uint8Array; + signed_blocks_window?: string; + min_signed_per_window?: string; downtime_jail_duration?: DurationAmino; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; + slash_fraction_double_sign?: string; + slash_fraction_downtime?: string; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -102,15 +101,16 @@ export interface ParamsAminoMsg { } /** Params represents the parameters used for by the slashing module. */ export interface ParamsSDKType { - signed_blocks_window: Long; + signed_blocks_window: bigint; min_signed_per_window: Uint8Array; downtime_jail_duration: DurationSDKType; slash_fraction_double_sign: Uint8Array; slash_fraction_downtime: Uint8Array; } export declare const ValidatorSigningInfo: { - encode(message: ValidatorSigningInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSigningInfo; + typeUrl: string; + encode(message: ValidatorSigningInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSigningInfo; fromJSON(object: any): ValidatorSigningInfo; toJSON(message: ValidatorSigningInfo): unknown; fromPartial(object: Partial): ValidatorSigningInfo; @@ -123,8 +123,9 @@ export declare const ValidatorSigningInfo: { toProtoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts index d2fba435..e73df8a2 100644 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgUnjail defines the Msg/Unjail request type */ export interface MsgUnjail { validatorAddr: string; @@ -37,8 +37,9 @@ export interface MsgUnjailResponseAminoMsg { export interface MsgUnjailResponseSDKType { } export declare const MsgUnjail: { - encode(message: MsgUnjail, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjail; + typeUrl: string; + encode(message: MsgUnjail, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjail; fromJSON(object: any): MsgUnjail; toJSON(message: MsgUnjail): unknown; fromPartial(object: Partial): MsgUnjail; @@ -51,8 +52,9 @@ export declare const MsgUnjail: { toProtoMsg(message: MsgUnjail): MsgUnjailProtoMsg; }; export declare const MsgUnjailResponse: { - encode(_: MsgUnjailResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjailResponse; + typeUrl: string; + encode(_: MsgUnjailResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjailResponse; fromJSON(_: any): MsgUnjailResponse; toJSON(_: MsgUnjailResponse): unknown; fromPartial(_: Partial): MsgUnjailResponse; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts index 14568c7e..d31749d7 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts @@ -1,5 +1,5 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * AuthorizationType defines the type of staking module authorization type * @@ -26,12 +26,12 @@ export declare function authorizationTypeToJSON(object: AuthorizationType): stri * Since: cosmos-sdk 0.43 */ export interface StakeAuthorization { - $typeUrl?: string; + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; /** * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is * empty, there is no spend limit and any amount of coins can be delegated. */ - maxTokens: Coin; + maxTokens?: Coin; /** * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's * account. @@ -65,7 +65,7 @@ export interface StakeAuthorizationAmino { /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ deny_list?: StakeAuthorization_ValidatorsAmino; /** authorization_type defines one of AuthorizationType. */ - authorization_type: AuthorizationType; + authorization_type?: AuthorizationType; } export interface StakeAuthorizationAminoMsg { type: "cosmos-sdk/StakeAuthorization"; @@ -77,8 +77,8 @@ export interface StakeAuthorizationAminoMsg { * Since: cosmos-sdk 0.43 */ export interface StakeAuthorizationSDKType { - $typeUrl?: string; - max_tokens: CoinSDKType; + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; + max_tokens?: CoinSDKType; allow_list?: StakeAuthorization_ValidatorsSDKType; deny_list?: StakeAuthorization_ValidatorsSDKType; authorization_type: AuthorizationType; @@ -93,7 +93,7 @@ export interface StakeAuthorization_ValidatorsProtoMsg { } /** Validators defines list of validator addresses. */ export interface StakeAuthorization_ValidatorsAmino { - address: string[]; + address?: string[]; } export interface StakeAuthorization_ValidatorsAminoMsg { type: "cosmos-sdk/Validators"; @@ -104,8 +104,9 @@ export interface StakeAuthorization_ValidatorsSDKType { address: string[]; } export declare const StakeAuthorization: { - encode(message: StakeAuthorization, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization; + typeUrl: string; + encode(message: StakeAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization; fromJSON(object: any): StakeAuthorization; toJSON(message: StakeAuthorization): unknown; fromPartial(object: Partial): StakeAuthorization; @@ -118,8 +119,9 @@ export declare const StakeAuthorization: { toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg; }; export declare const StakeAuthorization_Validators: { - encode(message: StakeAuthorization_Validators, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization_Validators; + typeUrl: string; + encode(message: StakeAuthorization_Validators, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators; fromJSON(object: any): StakeAuthorization_Validators; toJSON(message: StakeAuthorization_Validators): unknown; fromPartial(object: Partial): StakeAuthorization_Validators; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts index aec8f75d..38b8d6df 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts @@ -1,6 +1,5 @@ import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines the staking module's genesis state. */ export interface GenesisState { /** params defines all the paramaters of related to deposit. */ @@ -37,21 +36,21 @@ export interface GenesisStateAmino { * last_total_power tracks the total amounts of bonded tokens recorded during * the previous end block. */ - last_total_power: Uint8Array; + last_total_power?: string; /** * last_validator_powers is a special index that provides a historical list * of the last-block's bonded validators. */ - last_validator_powers: LastValidatorPowerAmino[]; + last_validator_powers?: LastValidatorPowerAmino[]; /** delegations defines the validator set at genesis. */ - validators: ValidatorAmino[]; + validators?: ValidatorAmino[]; /** delegations defines the delegations active at genesis. */ - delegations: DelegationAmino[]; + delegations?: DelegationAmino[]; /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations: UnbondingDelegationAmino[]; + unbonding_delegations?: UnbondingDelegationAmino[]; /** redelegations defines the redelegations active at genesis. */ - redelegations: RedelegationAmino[]; - exported: boolean; + redelegations?: RedelegationAmino[]; + exported?: boolean; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -73,7 +72,7 @@ export interface LastValidatorPower { /** address is the address of the validator. */ address: string; /** power defines the power of the validator. */ - power: Long; + power: bigint; } export interface LastValidatorPowerProtoMsg { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; @@ -82,9 +81,9 @@ export interface LastValidatorPowerProtoMsg { /** LastValidatorPower required for validator set update logic. */ export interface LastValidatorPowerAmino { /** address is the address of the validator. */ - address: string; + address?: string; /** power defines the power of the validator. */ - power: string; + power?: string; } export interface LastValidatorPowerAminoMsg { type: "cosmos-sdk/LastValidatorPower"; @@ -93,11 +92,12 @@ export interface LastValidatorPowerAminoMsg { /** LastValidatorPower required for validator set update logic. */ export interface LastValidatorPowerSDKType { address: string; - power: Long; + power: bigint; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -110,8 +110,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const LastValidatorPower: { - encode(message: LastValidatorPower, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LastValidatorPower; + typeUrl: string; + encode(message: LastValidatorPower, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower; fromJSON(object: any): LastValidatorPower; toJSON(message: LastValidatorPower): unknown; fromPartial(object: Partial): LastValidatorPower; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts index 035f5dbf..a1f0d75b 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts @@ -1,13 +1,12 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequest { /** status enables to query for validators matching a given status. */ status: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryValidatorsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; @@ -16,7 +15,7 @@ export interface QueryValidatorsRequestProtoMsg { /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequestAmino { /** status enables to query for validators matching a given status. */ - status: string; + status?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -27,14 +26,14 @@ export interface QueryValidatorsRequestAminoMsg { /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequestSDKType { status: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryValidatorsResponse is response type for the Query/Validators RPC method */ export interface QueryValidatorsResponse { /** validators contains all the queried validators. */ validators: Validator[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryValidatorsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; @@ -43,7 +42,7 @@ export interface QueryValidatorsResponseProtoMsg { /** QueryValidatorsResponse is response type for the Query/Validators RPC method */ export interface QueryValidatorsResponseAmino { /** validators contains all the queried validators. */ - validators: ValidatorAmino[]; + validators?: ValidatorAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -54,7 +53,7 @@ export interface QueryValidatorsResponseAminoMsg { /** QueryValidatorsResponse is response type for the Query/Validators RPC method */ export interface QueryValidatorsResponseSDKType { validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryValidatorRequest is response type for the Query/Validator RPC method */ export interface QueryValidatorRequest { @@ -68,7 +67,7 @@ export interface QueryValidatorRequestProtoMsg { /** QueryValidatorRequest is response type for the Query/Validator RPC method */ export interface QueryValidatorRequestAmino { /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; } export interface QueryValidatorRequestAminoMsg { type: "cosmos-sdk/QueryValidatorRequest"; @@ -108,7 +107,7 @@ export interface QueryValidatorDelegationsRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryValidatorDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; @@ -120,7 +119,7 @@ export interface QueryValidatorDelegationsRequestProtoMsg { */ export interface QueryValidatorDelegationsRequestAmino { /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -134,7 +133,7 @@ export interface QueryValidatorDelegationsRequestAminoMsg { */ export interface QueryValidatorDelegationsRequestSDKType { validator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryValidatorDelegationsResponse is response type for the @@ -143,7 +142,7 @@ export interface QueryValidatorDelegationsRequestSDKType { export interface QueryValidatorDelegationsResponse { delegationResponses: DelegationResponse[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryValidatorDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; @@ -154,7 +153,7 @@ export interface QueryValidatorDelegationsResponseProtoMsg { * Query/ValidatorDelegations RPC method */ export interface QueryValidatorDelegationsResponseAmino { - delegation_responses: DelegationResponseAmino[]; + delegation_responses?: DelegationResponseAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -168,7 +167,7 @@ export interface QueryValidatorDelegationsResponseAminoMsg { */ export interface QueryValidatorDelegationsResponseSDKType { delegation_responses: DelegationResponseSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryValidatorUnbondingDelegationsRequest is required type for the @@ -178,7 +177,7 @@ export interface QueryValidatorUnbondingDelegationsRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; @@ -190,7 +189,7 @@ export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { */ export interface QueryValidatorUnbondingDelegationsRequestAmino { /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -204,7 +203,7 @@ export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { */ export interface QueryValidatorUnbondingDelegationsRequestSDKType { validator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryValidatorUnbondingDelegationsResponse is response type for the @@ -213,7 +212,7 @@ export interface QueryValidatorUnbondingDelegationsRequestSDKType { export interface QueryValidatorUnbondingDelegationsResponse { unbondingResponses: UnbondingDelegation[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; @@ -224,7 +223,7 @@ export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { * Query/ValidatorUnbondingDelegations RPC method. */ export interface QueryValidatorUnbondingDelegationsResponseAmino { - unbonding_responses: UnbondingDelegationAmino[]; + unbonding_responses?: UnbondingDelegationAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -238,7 +237,7 @@ export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { */ export interface QueryValidatorUnbondingDelegationsResponseSDKType { unbonding_responses: UnbondingDelegationSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ export interface QueryDelegationRequest { @@ -254,9 +253,9 @@ export interface QueryDelegationRequestProtoMsg { /** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ export interface QueryDelegationRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; } export interface QueryDelegationRequestAminoMsg { type: "cosmos-sdk/QueryDelegationRequest"; @@ -270,7 +269,7 @@ export interface QueryDelegationRequestSDKType { /** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ export interface QueryDelegationResponse { /** delegation_responses defines the delegation info of a delegation. */ - delegationResponse: DelegationResponse; + delegationResponse?: DelegationResponse; } export interface QueryDelegationResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; @@ -287,7 +286,7 @@ export interface QueryDelegationResponseAminoMsg { } /** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ export interface QueryDelegationResponseSDKType { - delegation_response: DelegationResponseSDKType; + delegation_response?: DelegationResponseSDKType; } /** * QueryUnbondingDelegationRequest is request type for the @@ -309,9 +308,9 @@ export interface QueryUnbondingDelegationRequestProtoMsg { */ export interface QueryUnbondingDelegationRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; } export interface QueryUnbondingDelegationRequestAminoMsg { type: "cosmos-sdk/QueryUnbondingDelegationRequest"; @@ -364,7 +363,7 @@ export interface QueryDelegatorDelegationsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDelegatorDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; @@ -376,7 +375,7 @@ export interface QueryDelegatorDelegationsRequestProtoMsg { */ export interface QueryDelegatorDelegationsRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -390,7 +389,7 @@ export interface QueryDelegatorDelegationsRequestAminoMsg { */ export interface QueryDelegatorDelegationsRequestSDKType { delegator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryDelegatorDelegationsResponse is response type for the @@ -400,7 +399,7 @@ export interface QueryDelegatorDelegationsResponse { /** delegation_responses defines all the delegations' info of a delegator. */ delegationResponses: DelegationResponse[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDelegatorDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; @@ -412,7 +411,7 @@ export interface QueryDelegatorDelegationsResponseProtoMsg { */ export interface QueryDelegatorDelegationsResponseAmino { /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses: DelegationResponseAmino[]; + delegation_responses?: DelegationResponseAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -426,7 +425,7 @@ export interface QueryDelegatorDelegationsResponseAminoMsg { */ export interface QueryDelegatorDelegationsResponseSDKType { delegation_responses: DelegationResponseSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryDelegatorUnbondingDelegationsRequest is request type for the @@ -436,7 +435,7 @@ export interface QueryDelegatorUnbondingDelegationsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; @@ -448,7 +447,7 @@ export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { */ export interface QueryDelegatorUnbondingDelegationsRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -462,7 +461,7 @@ export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { */ export interface QueryDelegatorUnbondingDelegationsRequestSDKType { delegator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryUnbondingDelegatorDelegationsResponse is response type for the @@ -471,7 +470,7 @@ export interface QueryDelegatorUnbondingDelegationsRequestSDKType { export interface QueryDelegatorUnbondingDelegationsResponse { unbondingResponses: UnbondingDelegation[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; @@ -482,7 +481,7 @@ export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { * Query/UnbondingDelegatorDelegations RPC method. */ export interface QueryDelegatorUnbondingDelegationsResponseAmino { - unbonding_responses: UnbondingDelegationAmino[]; + unbonding_responses?: UnbondingDelegationAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -496,7 +495,7 @@ export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { */ export interface QueryDelegatorUnbondingDelegationsResponseSDKType { unbonding_responses: UnbondingDelegationSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryRedelegationsRequest is request type for the Query/Redelegations RPC @@ -510,7 +509,7 @@ export interface QueryRedelegationsRequest { /** dst_validator_addr defines the validator address to redelegate to. */ dstValidatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryRedelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; @@ -522,11 +521,11 @@ export interface QueryRedelegationsRequestProtoMsg { */ export interface QueryRedelegationsRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** src_validator_addr defines the validator address to redelegate from. */ - src_validator_addr: string; + src_validator_addr?: string; /** dst_validator_addr defines the validator address to redelegate to. */ - dst_validator_addr: string; + dst_validator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -542,7 +541,7 @@ export interface QueryRedelegationsRequestSDKType { delegator_addr: string; src_validator_addr: string; dst_validator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryRedelegationsResponse is response type for the Query/Redelegations RPC @@ -551,7 +550,7 @@ export interface QueryRedelegationsRequestSDKType { export interface QueryRedelegationsResponse { redelegationResponses: RedelegationResponse[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryRedelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; @@ -562,7 +561,7 @@ export interface QueryRedelegationsResponseProtoMsg { * method. */ export interface QueryRedelegationsResponseAmino { - redelegation_responses: RedelegationResponseAmino[]; + redelegation_responses?: RedelegationResponseAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -576,7 +575,7 @@ export interface QueryRedelegationsResponseAminoMsg { */ export interface QueryRedelegationsResponseSDKType { redelegation_responses: RedelegationResponseSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryDelegatorValidatorsRequest is request type for the @@ -586,7 +585,7 @@ export interface QueryDelegatorValidatorsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDelegatorValidatorsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; @@ -598,7 +597,7 @@ export interface QueryDelegatorValidatorsRequestProtoMsg { */ export interface QueryDelegatorValidatorsRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -612,7 +611,7 @@ export interface QueryDelegatorValidatorsRequestAminoMsg { */ export interface QueryDelegatorValidatorsRequestSDKType { delegator_addr: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryDelegatorValidatorsResponse is response type for the @@ -622,7 +621,7 @@ export interface QueryDelegatorValidatorsResponse { /** validators defines the validators' info of a delegator. */ validators: Validator[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDelegatorValidatorsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; @@ -634,7 +633,7 @@ export interface QueryDelegatorValidatorsResponseProtoMsg { */ export interface QueryDelegatorValidatorsResponseAmino { /** validators defines the validators' info of a delegator. */ - validators: ValidatorAmino[]; + validators?: ValidatorAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -648,7 +647,7 @@ export interface QueryDelegatorValidatorsResponseAminoMsg { */ export interface QueryDelegatorValidatorsResponseSDKType { validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryDelegatorValidatorRequest is request type for the @@ -670,9 +669,9 @@ export interface QueryDelegatorValidatorRequestProtoMsg { */ export interface QueryDelegatorValidatorRequestAmino { /** delegator_addr defines the delegator address to query for. */ - delegator_addr: string; + delegator_addr?: string; /** validator_addr defines the validator address to query for. */ - validator_addr: string; + validator_addr?: string; } export interface QueryDelegatorValidatorRequestAminoMsg { type: "cosmos-sdk/QueryDelegatorValidatorRequest"; @@ -723,7 +722,7 @@ export interface QueryDelegatorValidatorResponseSDKType { */ export interface QueryHistoricalInfoRequest { /** height defines at which height to query the historical info. */ - height: Long; + height: bigint; } export interface QueryHistoricalInfoRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; @@ -735,7 +734,7 @@ export interface QueryHistoricalInfoRequestProtoMsg { */ export interface QueryHistoricalInfoRequestAmino { /** height defines at which height to query the historical info. */ - height: string; + height?: string; } export interface QueryHistoricalInfoRequestAminoMsg { type: "cosmos-sdk/QueryHistoricalInfoRequest"; @@ -746,7 +745,7 @@ export interface QueryHistoricalInfoRequestAminoMsg { * method. */ export interface QueryHistoricalInfoRequestSDKType { - height: Long; + height: bigint; } /** * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC @@ -754,7 +753,7 @@ export interface QueryHistoricalInfoRequestSDKType { */ export interface QueryHistoricalInfoResponse { /** hist defines the historical info at the given height. */ - hist: HistoricalInfo; + hist?: HistoricalInfo; } export interface QueryHistoricalInfoResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; @@ -777,7 +776,7 @@ export interface QueryHistoricalInfoResponseAminoMsg { * method. */ export interface QueryHistoricalInfoResponseSDKType { - hist: HistoricalInfoSDKType; + hist?: HistoricalInfoSDKType; } /** QueryPoolRequest is request type for the Query/Pool RPC method. */ export interface QueryPoolRequest { @@ -858,8 +857,9 @@ export interface QueryParamsResponseSDKType { params: ParamsSDKType; } export declare const QueryValidatorsRequest: { - encode(message: QueryValidatorsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsRequest; + typeUrl: string; + encode(message: QueryValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest; fromJSON(object: any): QueryValidatorsRequest; toJSON(message: QueryValidatorsRequest): unknown; fromPartial(object: Partial): QueryValidatorsRequest; @@ -872,8 +872,9 @@ export declare const QueryValidatorsRequest: { toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg; }; export declare const QueryValidatorsResponse: { - encode(message: QueryValidatorsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsResponse; + typeUrl: string; + encode(message: QueryValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse; fromJSON(object: any): QueryValidatorsResponse; toJSON(message: QueryValidatorsResponse): unknown; fromPartial(object: Partial): QueryValidatorsResponse; @@ -886,8 +887,9 @@ export declare const QueryValidatorsResponse: { toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg; }; export declare const QueryValidatorRequest: { - encode(message: QueryValidatorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorRequest; + typeUrl: string; + encode(message: QueryValidatorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest; fromJSON(object: any): QueryValidatorRequest; toJSON(message: QueryValidatorRequest): unknown; fromPartial(object: Partial): QueryValidatorRequest; @@ -900,8 +902,9 @@ export declare const QueryValidatorRequest: { toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg; }; export declare const QueryValidatorResponse: { - encode(message: QueryValidatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorResponse; + typeUrl: string; + encode(message: QueryValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse; fromJSON(object: any): QueryValidatorResponse; toJSON(message: QueryValidatorResponse): unknown; fromPartial(object: Partial): QueryValidatorResponse; @@ -914,8 +917,9 @@ export declare const QueryValidatorResponse: { toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg; }; export declare const QueryValidatorDelegationsRequest: { - encode(message: QueryValidatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; + typeUrl: string; + encode(message: QueryValidatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; fromJSON(object: any): QueryValidatorDelegationsRequest; toJSON(message: QueryValidatorDelegationsRequest): unknown; fromPartial(object: Partial): QueryValidatorDelegationsRequest; @@ -928,8 +932,9 @@ export declare const QueryValidatorDelegationsRequest: { toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg; }; export declare const QueryValidatorDelegationsResponse: { - encode(message: QueryValidatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; + typeUrl: string; + encode(message: QueryValidatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; fromJSON(object: any): QueryValidatorDelegationsResponse; toJSON(message: QueryValidatorDelegationsResponse): unknown; fromPartial(object: Partial): QueryValidatorDelegationsResponse; @@ -942,8 +947,9 @@ export declare const QueryValidatorDelegationsResponse: { toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg; }; export declare const QueryValidatorUnbondingDelegationsRequest: { - encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; + typeUrl: string; + encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; fromJSON(object: any): QueryValidatorUnbondingDelegationsRequest; toJSON(message: QueryValidatorUnbondingDelegationsRequest): unknown; fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest; @@ -956,8 +962,9 @@ export declare const QueryValidatorUnbondingDelegationsRequest: { toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg; }; export declare const QueryValidatorUnbondingDelegationsResponse: { - encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; + typeUrl: string; + encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; fromJSON(object: any): QueryValidatorUnbondingDelegationsResponse; toJSON(message: QueryValidatorUnbondingDelegationsResponse): unknown; fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse; @@ -970,8 +977,9 @@ export declare const QueryValidatorUnbondingDelegationsResponse: { toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg; }; export declare const QueryDelegationRequest: { - encode(message: QueryDelegationRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRequest; + typeUrl: string; + encode(message: QueryDelegationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest; fromJSON(object: any): QueryDelegationRequest; toJSON(message: QueryDelegationRequest): unknown; fromPartial(object: Partial): QueryDelegationRequest; @@ -984,8 +992,9 @@ export declare const QueryDelegationRequest: { toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg; }; export declare const QueryDelegationResponse: { - encode(message: QueryDelegationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationResponse; + typeUrl: string; + encode(message: QueryDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse; fromJSON(object: any): QueryDelegationResponse; toJSON(message: QueryDelegationResponse): unknown; fromPartial(object: Partial): QueryDelegationResponse; @@ -998,8 +1007,9 @@ export declare const QueryDelegationResponse: { toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg; }; export declare const QueryUnbondingDelegationRequest: { - encode(message: QueryUnbondingDelegationRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; + typeUrl: string; + encode(message: QueryUnbondingDelegationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; fromJSON(object: any): QueryUnbondingDelegationRequest; toJSON(message: QueryUnbondingDelegationRequest): unknown; fromPartial(object: Partial): QueryUnbondingDelegationRequest; @@ -1012,8 +1022,9 @@ export declare const QueryUnbondingDelegationRequest: { toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg; }; export declare const QueryUnbondingDelegationResponse: { - encode(message: QueryUnbondingDelegationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; + typeUrl: string; + encode(message: QueryUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; fromJSON(object: any): QueryUnbondingDelegationResponse; toJSON(message: QueryUnbondingDelegationResponse): unknown; fromPartial(object: Partial): QueryUnbondingDelegationResponse; @@ -1026,8 +1037,9 @@ export declare const QueryUnbondingDelegationResponse: { toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg; }; export declare const QueryDelegatorDelegationsRequest: { - encode(message: QueryDelegatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; + typeUrl: string; + encode(message: QueryDelegatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; fromJSON(object: any): QueryDelegatorDelegationsRequest; toJSON(message: QueryDelegatorDelegationsRequest): unknown; fromPartial(object: Partial): QueryDelegatorDelegationsRequest; @@ -1040,8 +1052,9 @@ export declare const QueryDelegatorDelegationsRequest: { toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg; }; export declare const QueryDelegatorDelegationsResponse: { - encode(message: QueryDelegatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; + typeUrl: string; + encode(message: QueryDelegatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; fromJSON(object: any): QueryDelegatorDelegationsResponse; toJSON(message: QueryDelegatorDelegationsResponse): unknown; fromPartial(object: Partial): QueryDelegatorDelegationsResponse; @@ -1054,8 +1067,9 @@ export declare const QueryDelegatorDelegationsResponse: { toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg; }; export declare const QueryDelegatorUnbondingDelegationsRequest: { - encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; + typeUrl: string; + encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; fromJSON(object: any): QueryDelegatorUnbondingDelegationsRequest; toJSON(message: QueryDelegatorUnbondingDelegationsRequest): unknown; fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest; @@ -1068,8 +1082,9 @@ export declare const QueryDelegatorUnbondingDelegationsRequest: { toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg; }; export declare const QueryDelegatorUnbondingDelegationsResponse: { - encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; + typeUrl: string; + encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; fromJSON(object: any): QueryDelegatorUnbondingDelegationsResponse; toJSON(message: QueryDelegatorUnbondingDelegationsResponse): unknown; fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse; @@ -1082,8 +1097,9 @@ export declare const QueryDelegatorUnbondingDelegationsResponse: { toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg; }; export declare const QueryRedelegationsRequest: { - encode(message: QueryRedelegationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsRequest; + typeUrl: string; + encode(message: QueryRedelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest; fromJSON(object: any): QueryRedelegationsRequest; toJSON(message: QueryRedelegationsRequest): unknown; fromPartial(object: Partial): QueryRedelegationsRequest; @@ -1096,8 +1112,9 @@ export declare const QueryRedelegationsRequest: { toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg; }; export declare const QueryRedelegationsResponse: { - encode(message: QueryRedelegationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsResponse; + typeUrl: string; + encode(message: QueryRedelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse; fromJSON(object: any): QueryRedelegationsResponse; toJSON(message: QueryRedelegationsResponse): unknown; fromPartial(object: Partial): QueryRedelegationsResponse; @@ -1110,8 +1127,9 @@ export declare const QueryRedelegationsResponse: { toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg; }; export declare const QueryDelegatorValidatorsRequest: { - encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; + typeUrl: string; + encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; fromJSON(object: any): QueryDelegatorValidatorsRequest; toJSON(message: QueryDelegatorValidatorsRequest): unknown; fromPartial(object: Partial): QueryDelegatorValidatorsRequest; @@ -1124,8 +1142,9 @@ export declare const QueryDelegatorValidatorsRequest: { toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; }; export declare const QueryDelegatorValidatorsResponse: { - encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; + typeUrl: string; + encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; fromJSON(object: any): QueryDelegatorValidatorsResponse; toJSON(message: QueryDelegatorValidatorsResponse): unknown; fromPartial(object: Partial): QueryDelegatorValidatorsResponse; @@ -1138,8 +1157,9 @@ export declare const QueryDelegatorValidatorsResponse: { toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; }; export declare const QueryDelegatorValidatorRequest: { - encode(message: QueryDelegatorValidatorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; + typeUrl: string; + encode(message: QueryDelegatorValidatorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; fromJSON(object: any): QueryDelegatorValidatorRequest; toJSON(message: QueryDelegatorValidatorRequest): unknown; fromPartial(object: Partial): QueryDelegatorValidatorRequest; @@ -1152,8 +1172,9 @@ export declare const QueryDelegatorValidatorRequest: { toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg; }; export declare const QueryDelegatorValidatorResponse: { - encode(message: QueryDelegatorValidatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; + typeUrl: string; + encode(message: QueryDelegatorValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; fromJSON(object: any): QueryDelegatorValidatorResponse; toJSON(message: QueryDelegatorValidatorResponse): unknown; fromPartial(object: Partial): QueryDelegatorValidatorResponse; @@ -1166,8 +1187,9 @@ export declare const QueryDelegatorValidatorResponse: { toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg; }; export declare const QueryHistoricalInfoRequest: { - encode(message: QueryHistoricalInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoRequest; + typeUrl: string; + encode(message: QueryHistoricalInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest; fromJSON(object: any): QueryHistoricalInfoRequest; toJSON(message: QueryHistoricalInfoRequest): unknown; fromPartial(object: Partial): QueryHistoricalInfoRequest; @@ -1180,8 +1202,9 @@ export declare const QueryHistoricalInfoRequest: { toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg; }; export declare const QueryHistoricalInfoResponse: { - encode(message: QueryHistoricalInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoResponse; + typeUrl: string; + encode(message: QueryHistoricalInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse; fromJSON(object: any): QueryHistoricalInfoResponse; toJSON(message: QueryHistoricalInfoResponse): unknown; fromPartial(object: Partial): QueryHistoricalInfoResponse; @@ -1194,8 +1217,9 @@ export declare const QueryHistoricalInfoResponse: { toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg; }; export declare const QueryPoolRequest: { - encode(_: QueryPoolRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolRequest; + typeUrl: string; + encode(_: QueryPoolRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest; fromJSON(_: any): QueryPoolRequest; toJSON(_: QueryPoolRequest): unknown; fromPartial(_: Partial): QueryPoolRequest; @@ -1208,8 +1232,9 @@ export declare const QueryPoolRequest: { toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg; }; export declare const QueryPoolResponse: { - encode(message: QueryPoolResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolResponse; + typeUrl: string; + encode(message: QueryPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse; fromJSON(object: any): QueryPoolResponse; toJSON(message: QueryPoolResponse): unknown; fromPartial(object: Partial): QueryPoolResponse; @@ -1222,8 +1247,9 @@ export declare const QueryPoolResponse: { toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -1236,8 +1262,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts index f477464b..0f29585b 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts index 61e3d2fe..1997f710 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts @@ -1,10 +1,10 @@ import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Pubkey } from "@cosmjs/amino"; /** BondStatus is the status of a validator. */ export declare enum BondStatus { /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ @@ -43,7 +43,7 @@ export interface HistoricalInfoProtoMsg { */ export interface HistoricalInfoAmino { header?: HeaderAmino; - valset: ValidatorAmino[]; + valset?: ValidatorAmino[]; } export interface HistoricalInfoAminoMsg { type: "cosmos-sdk/HistoricalInfo"; @@ -81,11 +81,11 @@ export interface CommissionRatesProtoMsg { */ export interface CommissionRatesAmino { /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; + rate?: string; /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate: string; + max_rate?: string; /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate: string; + max_change_rate?: string; } export interface CommissionRatesAminoMsg { type: "cosmos-sdk/CommissionRates"; @@ -116,7 +116,7 @@ export interface CommissionAmino { /** commission_rates defines the initial commission rates to be used for creating a validator. */ commission_rates?: CommissionRatesAmino; /** update_time is the last time the commission rate was changed. */ - update_time?: TimestampAmino; + update_time?: string; } export interface CommissionAminoMsg { type: "cosmos-sdk/Commission"; @@ -147,15 +147,15 @@ export interface DescriptionProtoMsg { /** Description defines a validator description. */ export interface DescriptionAmino { /** moniker defines a human-readable name for the validator. */ - moniker: string; + moniker?: string; /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; + identity?: string; /** website defines an optional website link. */ - website: string; + website?: string; /** security_contact defines an optional email for security contact. */ - security_contact: string; + security_contact?: string; /** details define other optional details. */ - details: string; + details?: string; } export interface DescriptionAminoMsg { type: "cosmos-sdk/Description"; @@ -183,7 +183,7 @@ export interface Validator { /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ operatorAddress: string; /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey: (Any) | undefined; + consensusPubkey?: (Any) | undefined; /** jailed defined whether the validator has been jailed from bonded status or not. */ jailed: boolean; /** status is the validator status (bonded/unbonding/unbonded). */ @@ -195,7 +195,7 @@ export interface Validator { /** description defines the description terms for the validator. */ description: Description; /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: Long; + unbondingHeight: bigint; /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ unbondingTime: Timestamp; /** commission defines the commission parameters. */ @@ -226,23 +226,23 @@ export type ValidatorEncoded = Omit & { */ export interface ValidatorAmino { /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address: string; + operator_address?: string; /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ consensus_pubkey?: AnyAmino; /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; + jailed?: boolean; /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; + status?: BondStatus; /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; + tokens?: string; /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares: string; + delegator_shares?: string; /** description defines the description terms for the validator. */ description?: DescriptionAmino; /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height: string; + unbonding_height?: string; /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: TimestampAmino; + unbonding_time?: string; /** commission defines the commission parameters. */ commission?: CommissionAmino; /** @@ -250,7 +250,7 @@ export interface ValidatorAmino { * * Since: cosmos-sdk 0.46 */ - min_self_delegation: string; + min_self_delegation?: string; } export interface ValidatorAminoMsg { type: "cosmos-sdk/Validator"; @@ -268,13 +268,13 @@ export interface ValidatorAminoMsg { */ export interface ValidatorSDKType { operator_address: string; - consensus_pubkey: AnySDKType | undefined; + consensus_pubkey?: AnySDKType | undefined; jailed: boolean; status: BondStatus; tokens: string; delegator_shares: string; description: DescriptionSDKType; - unbonding_height: Long; + unbonding_height: bigint; unbonding_time: TimestampSDKType; commission: CommissionSDKType; min_self_delegation: string; @@ -289,7 +289,7 @@ export interface ValAddressesProtoMsg { } /** ValAddresses defines a repeated set of validator addresses. */ export interface ValAddressesAmino { - addresses: string[]; + addresses?: string[]; } export interface ValAddressesAminoMsg { type: "cosmos-sdk/ValAddresses"; @@ -318,8 +318,8 @@ export interface DVPairProtoMsg { * be used to construct the key to getting an UnbondingDelegation from state. */ export interface DVPairAmino { - delegator_address: string; - validator_address: string; + delegator_address?: string; + validator_address?: string; } export interface DVPairAminoMsg { type: "cosmos-sdk/DVPair"; @@ -344,7 +344,7 @@ export interface DVPairsProtoMsg { } /** DVPairs defines an array of DVPair objects. */ export interface DVPairsAmino { - pairs: DVPairAmino[]; + pairs?: DVPairAmino[]; } export interface DVPairsAminoMsg { type: "cosmos-sdk/DVPairs"; @@ -376,9 +376,9 @@ export interface DVVTripletProtoMsg { * Redelegation from state. */ export interface DVVTripletAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; } export interface DVVTripletAminoMsg { type: "cosmos-sdk/DVVTriplet"; @@ -405,7 +405,7 @@ export interface DVVTripletsProtoMsg { } /** DVVTriplets defines an array of DVVTriplet objects. */ export interface DVVTripletsAmino { - triplets: DVVTripletAmino[]; + triplets?: DVVTripletAmino[]; } export interface DVVTripletsAminoMsg { type: "cosmos-sdk/DVVTriplets"; @@ -439,11 +439,11 @@ export interface DelegationProtoMsg { */ export interface DelegationAmino { /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; + delegator_address?: string; /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; + validator_address?: string; /** shares define the delegation shares received. */ - shares: string; + shares?: string; } export interface DelegationAminoMsg { type: "cosmos-sdk/Delegation"; @@ -481,11 +481,11 @@ export interface UnbondingDelegationProtoMsg { */ export interface UnbondingDelegationAmino { /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; + delegator_address?: string; /** validator_address is the bech32-encoded address of the validator. */ - validator_address: string; + validator_address?: string; /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntryAmino[]; + entries?: UnbondingDelegationEntryAmino[]; } export interface UnbondingDelegationAminoMsg { type: "cosmos-sdk/UnbondingDelegation"; @@ -503,7 +503,7 @@ export interface UnbondingDelegationSDKType { /** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ export interface UnbondingDelegationEntry { /** creation_height is the height which the unbonding took place. */ - creationHeight: Long; + creationHeight: bigint; /** completion_time is the unix time for unbonding completion. */ completionTime: Timestamp; /** initial_balance defines the tokens initially scheduled to receive at completion. */ @@ -518,13 +518,13 @@ export interface UnbondingDelegationEntryProtoMsg { /** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ export interface UnbondingDelegationEntryAmino { /** creation_height is the height which the unbonding took place. */ - creation_height: string; + creation_height?: string; /** completion_time is the unix time for unbonding completion. */ - completion_time?: TimestampAmino; + completion_time?: string; /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance: string; + initial_balance?: string; /** balance defines the tokens to receive at completion. */ - balance: string; + balance?: string; } export interface UnbondingDelegationEntryAminoMsg { type: "cosmos-sdk/UnbondingDelegationEntry"; @@ -532,7 +532,7 @@ export interface UnbondingDelegationEntryAminoMsg { } /** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ export interface UnbondingDelegationEntrySDKType { - creation_height: Long; + creation_height: bigint; completion_time: TimestampSDKType; initial_balance: string; balance: string; @@ -540,7 +540,7 @@ export interface UnbondingDelegationEntrySDKType { /** RedelegationEntry defines a redelegation object with relevant metadata. */ export interface RedelegationEntry { /** creation_height defines the height which the redelegation took place. */ - creationHeight: Long; + creationHeight: bigint; /** completion_time defines the unix time for redelegation completion. */ completionTime: Timestamp; /** initial_balance defines the initial balance when redelegation started. */ @@ -555,13 +555,13 @@ export interface RedelegationEntryProtoMsg { /** RedelegationEntry defines a redelegation object with relevant metadata. */ export interface RedelegationEntryAmino { /** creation_height defines the height which the redelegation took place. */ - creation_height: string; + creation_height?: string; /** completion_time defines the unix time for redelegation completion. */ - completion_time?: TimestampAmino; + completion_time?: string; /** initial_balance defines the initial balance when redelegation started. */ - initial_balance: string; + initial_balance?: string; /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst: string; + shares_dst?: string; } export interface RedelegationEntryAminoMsg { type: "cosmos-sdk/RedelegationEntry"; @@ -569,7 +569,7 @@ export interface RedelegationEntryAminoMsg { } /** RedelegationEntry defines a redelegation object with relevant metadata. */ export interface RedelegationEntrySDKType { - creation_height: Long; + creation_height: bigint; completion_time: TimestampSDKType; initial_balance: string; shares_dst: string; @@ -598,13 +598,13 @@ export interface RedelegationProtoMsg { */ export interface RedelegationAmino { /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address: string; + delegator_address?: string; /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address: string; + validator_src_address?: string; /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address: string; + validator_dst_address?: string; /** entries are the redelegation entries. */ - entries: RedelegationEntryAmino[]; + entries?: RedelegationEntryAmino[]; } export interface RedelegationAminoMsg { type: "cosmos-sdk/Redelegation"; @@ -644,15 +644,15 @@ export interface ParamsAmino { /** unbonding_time is the time duration of unbonding. */ unbonding_time?: DurationAmino; /** max_validators is the maximum number of validators. */ - max_validators: number; + max_validators?: number; /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries: number; + max_entries?: number; /** historical_entries is the number of historical entries to persist. */ - historical_entries: number; + historical_entries?: number; /** bond_denom defines the bondable coin denomination. */ - bond_denom: string; + bond_denom?: string; /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate: string; + min_commission_rate?: string; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -719,7 +719,7 @@ export interface RedelegationEntryResponseProtoMsg { */ export interface RedelegationEntryResponseAmino { redelegation_entry?: RedelegationEntryAmino; - balance: string; + balance?: string; } export interface RedelegationEntryResponseAminoMsg { type: "cosmos-sdk/RedelegationEntryResponse"; @@ -754,7 +754,7 @@ export interface RedelegationResponseProtoMsg { */ export interface RedelegationResponseAmino { redelegation?: RedelegationAmino; - entries: RedelegationEntryResponseAmino[]; + entries?: RedelegationEntryResponseAmino[]; } export interface RedelegationResponseAminoMsg { type: "cosmos-sdk/RedelegationResponse"; @@ -802,8 +802,9 @@ export interface PoolSDKType { bonded_tokens: string; } export declare const HistoricalInfo: { - encode(message: HistoricalInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): HistoricalInfo; + typeUrl: string; + encode(message: HistoricalInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo; fromJSON(object: any): HistoricalInfo; toJSON(message: HistoricalInfo): unknown; fromPartial(object: Partial): HistoricalInfo; @@ -816,8 +817,9 @@ export declare const HistoricalInfo: { toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg; }; export declare const CommissionRates: { - encode(message: CommissionRates, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommissionRates; + typeUrl: string; + encode(message: CommissionRates, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates; fromJSON(object: any): CommissionRates; toJSON(message: CommissionRates): unknown; fromPartial(object: Partial): CommissionRates; @@ -830,8 +832,9 @@ export declare const CommissionRates: { toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg; }; export declare const Commission: { - encode(message: Commission, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Commission; + typeUrl: string; + encode(message: Commission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Commission; fromJSON(object: any): Commission; toJSON(message: Commission): unknown; fromPartial(object: Partial): Commission; @@ -844,8 +847,9 @@ export declare const Commission: { toProtoMsg(message: Commission): CommissionProtoMsg; }; export declare const Description: { - encode(message: Description, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Description; + typeUrl: string; + encode(message: Description, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Description; fromJSON(object: any): Description; toJSON(message: Description): unknown; fromPartial(object: Partial): Description; @@ -858,8 +862,9 @@ export declare const Description: { toProtoMsg(message: Description): DescriptionProtoMsg; }; export declare const Validator: { - encode(message: Validator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Validator; + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: Partial): Validator; @@ -872,8 +877,9 @@ export declare const Validator: { toProtoMsg(message: Validator): ValidatorProtoMsg; }; export declare const ValAddresses: { - encode(message: ValAddresses, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValAddresses; + typeUrl: string; + encode(message: ValAddresses, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses; fromJSON(object: any): ValAddresses; toJSON(message: ValAddresses): unknown; fromPartial(object: Partial): ValAddresses; @@ -886,8 +892,9 @@ export declare const ValAddresses: { toProtoMsg(message: ValAddresses): ValAddressesProtoMsg; }; export declare const DVPair: { - encode(message: DVPair, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DVPair; + typeUrl: string; + encode(message: DVPair, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVPair; fromJSON(object: any): DVPair; toJSON(message: DVPair): unknown; fromPartial(object: Partial): DVPair; @@ -900,8 +907,9 @@ export declare const DVPair: { toProtoMsg(message: DVPair): DVPairProtoMsg; }; export declare const DVPairs: { - encode(message: DVPairs, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DVPairs; + typeUrl: string; + encode(message: DVPairs, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVPairs; fromJSON(object: any): DVPairs; toJSON(message: DVPairs): unknown; fromPartial(object: Partial): DVPairs; @@ -914,8 +922,9 @@ export declare const DVPairs: { toProtoMsg(message: DVPairs): DVPairsProtoMsg; }; export declare const DVVTriplet: { - encode(message: DVVTriplet, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DVVTriplet; + typeUrl: string; + encode(message: DVVTriplet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet; fromJSON(object: any): DVVTriplet; toJSON(message: DVVTriplet): unknown; fromPartial(object: Partial): DVVTriplet; @@ -928,8 +937,9 @@ export declare const DVVTriplet: { toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg; }; export declare const DVVTriplets: { - encode(message: DVVTriplets, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DVVTriplets; + typeUrl: string; + encode(message: DVVTriplets, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets; fromJSON(object: any): DVVTriplets; toJSON(message: DVVTriplets): unknown; fromPartial(object: Partial): DVVTriplets; @@ -942,8 +952,9 @@ export declare const DVVTriplets: { toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg; }; export declare const Delegation: { - encode(message: Delegation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Delegation; + typeUrl: string; + encode(message: Delegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Delegation; fromJSON(object: any): Delegation; toJSON(message: Delegation): unknown; fromPartial(object: Partial): Delegation; @@ -956,8 +967,9 @@ export declare const Delegation: { toProtoMsg(message: Delegation): DelegationProtoMsg; }; export declare const UnbondingDelegation: { - encode(message: UnbondingDelegation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UnbondingDelegation; + typeUrl: string; + encode(message: UnbondingDelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation; fromJSON(object: any): UnbondingDelegation; toJSON(message: UnbondingDelegation): unknown; fromPartial(object: Partial): UnbondingDelegation; @@ -970,8 +982,9 @@ export declare const UnbondingDelegation: { toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg; }; export declare const UnbondingDelegationEntry: { - encode(message: UnbondingDelegationEntry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UnbondingDelegationEntry; + typeUrl: string; + encode(message: UnbondingDelegationEntry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry; fromJSON(object: any): UnbondingDelegationEntry; toJSON(message: UnbondingDelegationEntry): unknown; fromPartial(object: Partial): UnbondingDelegationEntry; @@ -984,8 +997,9 @@ export declare const UnbondingDelegationEntry: { toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg; }; export declare const RedelegationEntry: { - encode(message: RedelegationEntry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationEntry; + typeUrl: string; + encode(message: RedelegationEntry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry; fromJSON(object: any): RedelegationEntry; toJSON(message: RedelegationEntry): unknown; fromPartial(object: Partial): RedelegationEntry; @@ -998,8 +1012,9 @@ export declare const RedelegationEntry: { toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg; }; export declare const Redelegation: { - encode(message: Redelegation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Redelegation; + typeUrl: string; + encode(message: Redelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Redelegation; fromJSON(object: any): Redelegation; toJSON(message: Redelegation): unknown; fromPartial(object: Partial): Redelegation; @@ -1012,8 +1027,9 @@ export declare const Redelegation: { toProtoMsg(message: Redelegation): RedelegationProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; @@ -1026,8 +1042,9 @@ export declare const Params: { toProtoMsg(message: Params): ParamsProtoMsg; }; export declare const DelegationResponse: { - encode(message: DelegationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelegationResponse; + typeUrl: string; + encode(message: DelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse; fromJSON(object: any): DelegationResponse; toJSON(message: DelegationResponse): unknown; fromPartial(object: Partial): DelegationResponse; @@ -1040,8 +1057,9 @@ export declare const DelegationResponse: { toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg; }; export declare const RedelegationEntryResponse: { - encode(message: RedelegationEntryResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationEntryResponse; + typeUrl: string; + encode(message: RedelegationEntryResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse; fromJSON(object: any): RedelegationEntryResponse; toJSON(message: RedelegationEntryResponse): unknown; fromPartial(object: Partial): RedelegationEntryResponse; @@ -1054,8 +1072,9 @@ export declare const RedelegationEntryResponse: { toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg; }; export declare const RedelegationResponse: { - encode(message: RedelegationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationResponse; + typeUrl: string; + encode(message: RedelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse; fromJSON(object: any): RedelegationResponse; toJSON(message: RedelegationResponse): unknown; fromPartial(object: Partial): RedelegationResponse; @@ -1068,8 +1087,9 @@ export declare const RedelegationResponse: { toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg; }; export declare const Pool: { - encode(message: Pool, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Pool; + typeUrl: string; + encode(message: Pool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Pool; fromJSON(object: any): Pool; toJSON(message: Pool): unknown; fromPartial(object: Partial): Pool; @@ -1081,9 +1101,6 @@ export declare const Pool: { toProto(message: Pool): Uint8Array; toProtoMsg(message: Pool): PoolProtoMsg; }; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => string; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => { - typeUrl: string; - value: Uint8Array; -}; +export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; +export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts index f47e5f6b..bf48cf66 100644 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts @@ -1,9 +1,9 @@ import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Pubkey } from "@cosmjs/amino"; /** MsgCreateValidator defines a SDK message for creating a new validator. */ export interface MsgCreateValidator { description: Description; @@ -11,7 +11,7 @@ export interface MsgCreateValidator { minSelfDelegation: string; delegatorAddress: string; validatorAddress: string; - pubkey: (Any) | undefined; + pubkey?: (Any) | undefined; value: Coin; } export interface MsgCreateValidatorProtoMsg { @@ -25,9 +25,9 @@ export type MsgCreateValidatorEncoded = Omit & { export interface MsgCreateValidatorAmino { description?: DescriptionAmino; commission?: CommissionRatesAmino; - min_self_delegation: string; - delegator_address: string; - validator_address: string; + min_self_delegation?: string; + delegator_address?: string; + validator_address?: string; pubkey?: AnyAmino; value?: CoinAmino; } @@ -42,7 +42,7 @@ export interface MsgCreateValidatorSDKType { min_self_delegation: string; delegator_address: string; validator_address: string; - pubkey: AnySDKType | undefined; + pubkey?: AnySDKType | undefined; value: CoinSDKType; } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ @@ -82,15 +82,15 @@ export interface MsgEditValidatorProtoMsg { /** MsgEditValidator defines a SDK message for editing an existing validator. */ export interface MsgEditValidatorAmino { description?: DescriptionAmino; - validator_address: string; + validator_address?: string; /** * We pass a reference to the new commission rate and min self delegation as * it's not mandatory to update. If not updated, the deserialized rate will be * zero with no way to distinguish if an update was intended. * REF: #2373 */ - commission_rate: string; - min_self_delegation: string; + commission_rate?: string; + min_self_delegation?: string; } export interface MsgEditValidatorAminoMsg { type: "cosmos-sdk/MsgEditValidator"; @@ -138,8 +138,8 @@ export interface MsgDelegateProtoMsg { * from a delegator to a validator. */ export interface MsgDelegateAmino { - delegator_address: string; - validator_address: string; + delegator_address?: string; + validator_address?: string; amount?: CoinAmino; } export interface MsgDelegateAminoMsg { @@ -191,9 +191,9 @@ export interface MsgBeginRedelegateProtoMsg { * of coins from a delegator and source validator to a destination validator. */ export interface MsgBeginRedelegateAmino { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; amount?: CoinAmino; } export interface MsgBeginRedelegateAminoMsg { @@ -220,7 +220,7 @@ export interface MsgBeginRedelegateResponseProtoMsg { } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponseAmino { - completion_time?: TimestampAmino; + completion_time?: string; } export interface MsgBeginRedelegateResponseAminoMsg { type: "cosmos-sdk/MsgBeginRedelegateResponse"; @@ -248,8 +248,8 @@ export interface MsgUndelegateProtoMsg { * delegate and a validator. */ export interface MsgUndelegateAmino { - delegator_address: string; - validator_address: string; + delegator_address?: string; + validator_address?: string; amount?: CoinAmino; } export interface MsgUndelegateAminoMsg { @@ -275,7 +275,7 @@ export interface MsgUndelegateResponseProtoMsg { } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponseAmino { - completion_time?: TimestampAmino; + completion_time?: string; } export interface MsgUndelegateResponseAminoMsg { type: "cosmos-sdk/MsgUndelegateResponse"; @@ -296,7 +296,7 @@ export interface MsgCancelUnbondingDelegation { /** amount is always less than or equal to unbonding delegation entry balance */ amount: Coin; /** creation_height is the height which the unbonding took place. */ - creationHeight: Long; + creationHeight: bigint; } export interface MsgCancelUnbondingDelegationProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; @@ -308,12 +308,12 @@ export interface MsgCancelUnbondingDelegationProtoMsg { * Since: cosmos-sdk 0.46 */ export interface MsgCancelUnbondingDelegationAmino { - delegator_address: string; - validator_address: string; + delegator_address?: string; + validator_address?: string; /** amount is always less than or equal to unbonding delegation entry balance */ amount?: CoinAmino; /** creation_height is the height which the unbonding took place. */ - creation_height: string; + creation_height?: string; } export interface MsgCancelUnbondingDelegationAminoMsg { type: "cosmos-sdk/MsgCancelUnbondingDelegation"; @@ -328,7 +328,7 @@ export interface MsgCancelUnbondingDelegationSDKType { delegator_address: string; validator_address: string; amount: CoinSDKType; - creation_height: Long; + creation_height: bigint; } /** * MsgCancelUnbondingDelegationResponse @@ -360,8 +360,9 @@ export interface MsgCancelUnbondingDelegationResponseAminoMsg { export interface MsgCancelUnbondingDelegationResponseSDKType { } export declare const MsgCreateValidator: { - encode(message: MsgCreateValidator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidator; + typeUrl: string; + encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; fromJSON(object: any): MsgCreateValidator; toJSON(message: MsgCreateValidator): unknown; fromPartial(object: Partial): MsgCreateValidator; @@ -374,8 +375,9 @@ export declare const MsgCreateValidator: { toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg; }; export declare const MsgCreateValidatorResponse: { - encode(_: MsgCreateValidatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidatorResponse; + typeUrl: string; + encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; fromJSON(_: any): MsgCreateValidatorResponse; toJSON(_: MsgCreateValidatorResponse): unknown; fromPartial(_: Partial): MsgCreateValidatorResponse; @@ -388,8 +390,9 @@ export declare const MsgCreateValidatorResponse: { toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg; }; export declare const MsgEditValidator: { - encode(message: MsgEditValidator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidator; + typeUrl: string; + encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; fromJSON(object: any): MsgEditValidator; toJSON(message: MsgEditValidator): unknown; fromPartial(object: Partial): MsgEditValidator; @@ -402,8 +405,9 @@ export declare const MsgEditValidator: { toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg; }; export declare const MsgEditValidatorResponse: { - encode(_: MsgEditValidatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidatorResponse; + typeUrl: string; + encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; fromJSON(_: any): MsgEditValidatorResponse; toJSON(_: MsgEditValidatorResponse): unknown; fromPartial(_: Partial): MsgEditValidatorResponse; @@ -416,8 +420,9 @@ export declare const MsgEditValidatorResponse: { toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg; }; export declare const MsgDelegate: { - encode(message: MsgDelegate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegate; + typeUrl: string; + encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; fromJSON(object: any): MsgDelegate; toJSON(message: MsgDelegate): unknown; fromPartial(object: Partial): MsgDelegate; @@ -430,8 +435,9 @@ export declare const MsgDelegate: { toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg; }; export declare const MsgDelegateResponse: { - encode(_: MsgDelegateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateResponse; + typeUrl: string; + encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; fromJSON(_: any): MsgDelegateResponse; toJSON(_: MsgDelegateResponse): unknown; fromPartial(_: Partial): MsgDelegateResponse; @@ -444,8 +450,9 @@ export declare const MsgDelegateResponse: { toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg; }; export declare const MsgBeginRedelegate: { - encode(message: MsgBeginRedelegate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegate; + typeUrl: string; + encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; fromJSON(object: any): MsgBeginRedelegate; toJSON(message: MsgBeginRedelegate): unknown; fromPartial(object: Partial): MsgBeginRedelegate; @@ -458,8 +465,9 @@ export declare const MsgBeginRedelegate: { toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg; }; export declare const MsgBeginRedelegateResponse: { - encode(message: MsgBeginRedelegateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegateResponse; + typeUrl: string; + encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; fromJSON(object: any): MsgBeginRedelegateResponse; toJSON(message: MsgBeginRedelegateResponse): unknown; fromPartial(object: Partial): MsgBeginRedelegateResponse; @@ -472,8 +480,9 @@ export declare const MsgBeginRedelegateResponse: { toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg; }; export declare const MsgUndelegate: { - encode(message: MsgUndelegate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegate; + typeUrl: string; + encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; fromJSON(object: any): MsgUndelegate; toJSON(message: MsgUndelegate): unknown; fromPartial(object: Partial): MsgUndelegate; @@ -486,8 +495,9 @@ export declare const MsgUndelegate: { toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg; }; export declare const MsgUndelegateResponse: { - encode(message: MsgUndelegateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegateResponse; + typeUrl: string; + encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; fromJSON(object: any): MsgUndelegateResponse; toJSON(message: MsgUndelegateResponse): unknown; fromPartial(object: Partial): MsgUndelegateResponse; @@ -500,8 +510,9 @@ export declare const MsgUndelegateResponse: { toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg; }; export declare const MsgCancelUnbondingDelegation: { - encode(message: MsgCancelUnbondingDelegation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; + typeUrl: string; + encode(message: MsgCancelUnbondingDelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; fromJSON(object: any): MsgCancelUnbondingDelegation; toJSON(message: MsgCancelUnbondingDelegation): unknown; fromPartial(object: Partial): MsgCancelUnbondingDelegation; @@ -514,8 +525,9 @@ export declare const MsgCancelUnbondingDelegation: { toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg; }; export declare const MsgCancelUnbondingDelegationResponse: { - encode(_: MsgCancelUnbondingDelegationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; + typeUrl: string; + encode(_: MsgCancelUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; fromJSON(_: any): MsgCancelUnbondingDelegationResponse; toJSON(_: MsgCancelUnbondingDelegationResponse): unknown; fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse; @@ -527,9 +539,6 @@ export declare const MsgCancelUnbondingDelegationResponse: { toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array; toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg; }; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: _m0.Reader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => string; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => { - typeUrl: string; - value: Uint8Array; -}; +export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; +export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts b/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts index 7ac8b66e..931ea80a 100644 --- a/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +++ b/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts @@ -1,7 +1,6 @@ import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * SignMode represents a signing mode with its own security guarantees. * @@ -74,7 +73,7 @@ export interface SignatureDescriptorsProtoMsg { /** SignatureDescriptors wraps multiple SignatureDescriptor's. */ export interface SignatureDescriptorsAmino { /** signatures are the signature descriptors */ - signatures: SignatureDescriptorAmino[]; + signatures?: SignatureDescriptorAmino[]; } export interface SignatureDescriptorsAminoMsg { type: "cosmos-sdk/SignatureDescriptors"; @@ -92,14 +91,14 @@ export interface SignatureDescriptorsSDKType { */ export interface SignatureDescriptor { /** public_key is the public key of the signer */ - publicKey: Any; - data: SignatureDescriptor_Data; + publicKey?: Any; + data?: SignatureDescriptor_Data; /** * sequence is the sequence of the account, which describes the * number of committed transactions signed by a given address. It is used to prevent * replay attacks. */ - sequence: Long; + sequence: bigint; } export interface SignatureDescriptorProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; @@ -120,7 +119,7 @@ export interface SignatureDescriptorAmino { * number of committed transactions signed by a given address. It is used to prevent * replay attacks. */ - sequence: string; + sequence?: string; } export interface SignatureDescriptorAminoMsg { type: "cosmos-sdk/SignatureDescriptor"; @@ -133,9 +132,9 @@ export interface SignatureDescriptorAminoMsg { * clients. */ export interface SignatureDescriptorSDKType { - public_key: AnySDKType; - data: SignatureDescriptor_DataSDKType; - sequence: Long; + public_key?: AnySDKType; + data?: SignatureDescriptor_DataSDKType; + sequence: bigint; } /** Data represents signature data */ export interface SignatureDescriptor_Data { @@ -178,9 +177,9 @@ export interface SignatureDescriptor_Data_SingleProtoMsg { /** Single is the signature data for a single signer */ export interface SignatureDescriptor_Data_SingleAmino { /** mode is the signing mode of the single signer */ - mode: SignMode; + mode?: SignMode; /** signature is the raw signature bytes */ - signature: Uint8Array; + signature?: string; } export interface SignatureDescriptor_Data_SingleAminoMsg { type: "cosmos-sdk/Single"; @@ -194,7 +193,7 @@ export interface SignatureDescriptor_Data_SingleSDKType { /** Multi is the signature data for a multisig public key */ export interface SignatureDescriptor_Data_Multi { /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; + bitarray?: CompactBitArray; /** signatures is the signatures of the multi-signature */ signatures: SignatureDescriptor_Data[]; } @@ -207,7 +206,7 @@ export interface SignatureDescriptor_Data_MultiAmino { /** bitarray specifies which keys within the multisig are signing */ bitarray?: CompactBitArrayAmino; /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_DataAmino[]; + signatures?: SignatureDescriptor_DataAmino[]; } export interface SignatureDescriptor_Data_MultiAminoMsg { type: "cosmos-sdk/Multi"; @@ -215,12 +214,13 @@ export interface SignatureDescriptor_Data_MultiAminoMsg { } /** Multi is the signature data for a multisig public key */ export interface SignatureDescriptor_Data_MultiSDKType { - bitarray: CompactBitArraySDKType; + bitarray?: CompactBitArraySDKType; signatures: SignatureDescriptor_DataSDKType[]; } export declare const SignatureDescriptors: { - encode(message: SignatureDescriptors, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptors; + typeUrl: string; + encode(message: SignatureDescriptors, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors; fromJSON(object: any): SignatureDescriptors; toJSON(message: SignatureDescriptors): unknown; fromPartial(object: Partial): SignatureDescriptors; @@ -233,8 +233,9 @@ export declare const SignatureDescriptors: { toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg; }; export declare const SignatureDescriptor: { - encode(message: SignatureDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor; + typeUrl: string; + encode(message: SignatureDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor; fromJSON(object: any): SignatureDescriptor; toJSON(message: SignatureDescriptor): unknown; fromPartial(object: Partial): SignatureDescriptor; @@ -247,8 +248,9 @@ export declare const SignatureDescriptor: { toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg; }; export declare const SignatureDescriptor_Data: { - encode(message: SignatureDescriptor_Data, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data; + typeUrl: string; + encode(message: SignatureDescriptor_Data, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data; fromJSON(object: any): SignatureDescriptor_Data; toJSON(message: SignatureDescriptor_Data): unknown; fromPartial(object: Partial): SignatureDescriptor_Data; @@ -261,8 +263,9 @@ export declare const SignatureDescriptor_Data: { toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg; }; export declare const SignatureDescriptor_Data_Single: { - encode(message: SignatureDescriptor_Data_Single, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Single; + typeUrl: string; + encode(message: SignatureDescriptor_Data_Single, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single; fromJSON(object: any): SignatureDescriptor_Data_Single; toJSON(message: SignatureDescriptor_Data_Single): unknown; fromPartial(object: Partial): SignatureDescriptor_Data_Single; @@ -275,8 +278,9 @@ export declare const SignatureDescriptor_Data_Single: { toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg; }; export declare const SignatureDescriptor_Data_Multi: { - encode(message: SignatureDescriptor_Data_Multi, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi; + typeUrl: string; + encode(message: SignatureDescriptor_Data_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi; fromJSON(object: any): SignatureDescriptor_Data_Multi; toJSON(message: SignatureDescriptor_Data_Multi): unknown; fromPartial(object: Partial): SignatureDescriptor_Data_Multi; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts index 7de34e6b..48fb8564 100644 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts +++ b/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts @@ -3,8 +3,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageRe import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** OrderBy defines the sorting order */ export declare enum OrderBy { /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ @@ -56,15 +55,15 @@ export interface GetTxsEventRequest { * Deprecated post v0.46.x: use page and limit instead. */ /** @deprecated */ - pagination: PageRequest; + pagination?: PageRequest; orderBy: OrderBy; /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page: Long; + page: bigint; /** * 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. */ - limit: Long; + limit: bigint; } export interface GetTxsEventRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; @@ -76,21 +75,21 @@ export interface GetTxsEventRequestProtoMsg { */ export interface GetTxsEventRequestAmino { /** events is the list of transaction event type. */ - events: string[]; + events?: string[]; /** * pagination defines a pagination for the request. * Deprecated post v0.46.x: use page and limit instead. */ /** @deprecated */ pagination?: PageRequestAmino; - order_by: OrderBy; + order_by?: OrderBy; /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page: string; + page?: string; /** * 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. */ - limit: string; + limit?: string; } export interface GetTxsEventRequestAminoMsg { type: "cosmos-sdk/GetTxsEventRequest"; @@ -103,10 +102,10 @@ export interface GetTxsEventRequestAminoMsg { export interface GetTxsEventRequestSDKType { events: string[]; /** @deprecated */ - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; order_by: OrderBy; - page: Long; - limit: Long; + page: bigint; + limit: bigint; } /** * GetTxsEventResponse is the response type for the Service.TxsByEvents @@ -122,9 +121,9 @@ export interface GetTxsEventResponse { * Deprecated post v0.46.x: use total instead. */ /** @deprecated */ - pagination: PageResponse; + pagination?: PageResponse; /** total is total number of results available */ - total: Long; + total: bigint; } export interface GetTxsEventResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; @@ -136,9 +135,9 @@ export interface GetTxsEventResponseProtoMsg { */ export interface GetTxsEventResponseAmino { /** txs is the list of queried transactions. */ - txs: TxAmino[]; + txs?: TxAmino[]; /** tx_responses is the list of queried TxResponses. */ - tx_responses: TxResponseAmino[]; + tx_responses?: TxResponseAmino[]; /** * pagination defines a pagination for the response. * Deprecated post v0.46.x: use total instead. @@ -146,7 +145,7 @@ export interface GetTxsEventResponseAmino { /** @deprecated */ pagination?: PageResponseAmino; /** total is total number of results available */ - total: string; + total?: string; } export interface GetTxsEventResponseAminoMsg { type: "cosmos-sdk/GetTxsEventResponse"; @@ -160,8 +159,8 @@ export interface GetTxsEventResponseSDKType { txs: TxSDKType[]; tx_responses: TxResponseSDKType[]; /** @deprecated */ - pagination: PageResponseSDKType; - total: Long; + pagination?: PageResponseSDKType; + total: bigint; } /** * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest @@ -182,8 +181,8 @@ export interface BroadcastTxRequestProtoMsg { */ export interface BroadcastTxRequestAmino { /** tx_bytes is the raw transaction. */ - tx_bytes: Uint8Array; - mode: BroadcastMode; + tx_bytes?: string; + mode?: BroadcastMode; } export interface BroadcastTxRequestAminoMsg { type: "cosmos-sdk/BroadcastTxRequest"; @@ -203,7 +202,7 @@ export interface BroadcastTxRequestSDKType { */ export interface BroadcastTxResponse { /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; + txResponse?: TxResponse; } export interface BroadcastTxResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; @@ -226,7 +225,7 @@ export interface BroadcastTxResponseAminoMsg { * Service.BroadcastTx method. */ export interface BroadcastTxResponseSDKType { - tx_response: TxResponseSDKType; + tx_response?: TxResponseSDKType; } /** * SimulateRequest is the request type for the Service.Simulate @@ -238,7 +237,7 @@ export interface SimulateRequest { * Deprecated. Send raw tx bytes instead. */ /** @deprecated */ - tx: Tx; + tx?: Tx; /** * tx_bytes is the raw transaction. * @@ -266,7 +265,7 @@ export interface SimulateRequestAmino { * * Since: cosmos-sdk 0.43 */ - tx_bytes: Uint8Array; + tx_bytes?: string; } export interface SimulateRequestAminoMsg { type: "cosmos-sdk/SimulateRequest"; @@ -278,7 +277,7 @@ export interface SimulateRequestAminoMsg { */ export interface SimulateRequestSDKType { /** @deprecated */ - tx: TxSDKType; + tx?: TxSDKType; tx_bytes: Uint8Array; } /** @@ -287,9 +286,9 @@ export interface SimulateRequestSDKType { */ export interface SimulateResponse { /** gas_info is the information about gas used in the simulation. */ - gasInfo: GasInfo; + gasInfo?: GasInfo; /** result is the result of the simulation. */ - result: Result; + result?: Result; } export interface SimulateResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; @@ -314,8 +313,8 @@ export interface SimulateResponseAminoMsg { * Service.SimulateRPC method. */ export interface SimulateResponseSDKType { - gas_info: GasInfoSDKType; - result: ResultSDKType; + gas_info?: GasInfoSDKType; + result?: ResultSDKType; } /** * GetTxRequest is the request type for the Service.GetTx @@ -335,7 +334,7 @@ export interface GetTxRequestProtoMsg { */ export interface GetTxRequestAmino { /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; + hash?: string; } export interface GetTxRequestAminoMsg { type: "cosmos-sdk/GetTxRequest"; @@ -351,9 +350,9 @@ export interface GetTxRequestSDKType { /** GetTxResponse is the response type for the Service.GetTx method. */ export interface GetTxResponse { /** tx is the queried transaction. */ - tx: Tx; + tx?: Tx; /** tx_response is the queried TxResponses. */ - txResponse: TxResponse; + txResponse?: TxResponse; } export interface GetTxResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; @@ -372,8 +371,8 @@ export interface GetTxResponseAminoMsg { } /** GetTxResponse is the response type for the Service.GetTx method. */ export interface GetTxResponseSDKType { - tx: TxSDKType; - tx_response: TxResponseSDKType; + tx?: TxSDKType; + tx_response?: TxResponseSDKType; } /** * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs @@ -383,9 +382,9 @@ export interface GetTxResponseSDKType { */ export interface GetBlockWithTxsRequest { /** height is the height of the block to query. */ - height: Long; + height: bigint; /** pagination defines a pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface GetBlockWithTxsRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; @@ -399,7 +398,7 @@ export interface GetBlockWithTxsRequestProtoMsg { */ export interface GetBlockWithTxsRequestAmino { /** height is the height of the block to query. */ - height: string; + height?: string; /** pagination defines a pagination for the request. */ pagination?: PageRequestAmino; } @@ -414,8 +413,8 @@ export interface GetBlockWithTxsRequestAminoMsg { * Since: cosmos-sdk 0.45.2 */ export interface GetBlockWithTxsRequestSDKType { - height: Long; - pagination: PageRequestSDKType; + height: bigint; + pagination?: PageRequestSDKType; } /** * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. @@ -425,10 +424,10 @@ export interface GetBlockWithTxsRequestSDKType { export interface GetBlockWithTxsResponse { /** txs are the transactions in the block. */ txs: Tx[]; - blockId: BlockID; - block: Block; + blockId?: BlockID; + block?: Block; /** pagination defines a pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface GetBlockWithTxsResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; @@ -441,7 +440,7 @@ export interface GetBlockWithTxsResponseProtoMsg { */ export interface GetBlockWithTxsResponseAmino { /** txs are the transactions in the block. */ - txs: TxAmino[]; + txs?: TxAmino[]; block_id?: BlockIDAmino; block?: BlockAmino; /** pagination defines a pagination for the response. */ @@ -458,13 +457,14 @@ export interface GetBlockWithTxsResponseAminoMsg { */ export interface GetBlockWithTxsResponseSDKType { txs: TxSDKType[]; - block_id: BlockIDSDKType; - block: BlockSDKType; - pagination: PageResponseSDKType; + block_id?: BlockIDSDKType; + block?: BlockSDKType; + pagination?: PageResponseSDKType; } export declare const GetTxsEventRequest: { - encode(message: GetTxsEventRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventRequest; + typeUrl: string; + encode(message: GetTxsEventRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest; fromJSON(object: any): GetTxsEventRequest; toJSON(message: GetTxsEventRequest): unknown; fromPartial(object: Partial): GetTxsEventRequest; @@ -477,8 +477,9 @@ export declare const GetTxsEventRequest: { toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg; }; export declare const GetTxsEventResponse: { - encode(message: GetTxsEventResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxsEventResponse; + typeUrl: string; + encode(message: GetTxsEventResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse; fromJSON(object: any): GetTxsEventResponse; toJSON(message: GetTxsEventResponse): unknown; fromPartial(object: Partial): GetTxsEventResponse; @@ -491,8 +492,9 @@ export declare const GetTxsEventResponse: { toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg; }; export declare const BroadcastTxRequest: { - encode(message: BroadcastTxRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxRequest; + typeUrl: string; + encode(message: BroadcastTxRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest; fromJSON(object: any): BroadcastTxRequest; toJSON(message: BroadcastTxRequest): unknown; fromPartial(object: Partial): BroadcastTxRequest; @@ -505,8 +507,9 @@ export declare const BroadcastTxRequest: { toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg; }; export declare const BroadcastTxResponse: { - encode(message: BroadcastTxResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BroadcastTxResponse; + typeUrl: string; + encode(message: BroadcastTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse; fromJSON(object: any): BroadcastTxResponse; toJSON(message: BroadcastTxResponse): unknown; fromPartial(object: Partial): BroadcastTxResponse; @@ -519,8 +522,9 @@ export declare const BroadcastTxResponse: { toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg; }; export declare const SimulateRequest: { - encode(message: SimulateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SimulateRequest; + typeUrl: string; + encode(message: SimulateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest; fromJSON(object: any): SimulateRequest; toJSON(message: SimulateRequest): unknown; fromPartial(object: Partial): SimulateRequest; @@ -533,8 +537,9 @@ export declare const SimulateRequest: { toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg; }; export declare const SimulateResponse: { - encode(message: SimulateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SimulateResponse; + typeUrl: string; + encode(message: SimulateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse; fromJSON(object: any): SimulateResponse; toJSON(message: SimulateResponse): unknown; fromPartial(object: Partial): SimulateResponse; @@ -547,8 +552,9 @@ export declare const SimulateResponse: { toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg; }; export declare const GetTxRequest: { - encode(message: GetTxRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxRequest; + typeUrl: string; + encode(message: GetTxRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest; fromJSON(object: any): GetTxRequest; toJSON(message: GetTxRequest): unknown; fromPartial(object: Partial): GetTxRequest; @@ -561,8 +567,9 @@ export declare const GetTxRequest: { toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg; }; export declare const GetTxResponse: { - encode(message: GetTxResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetTxResponse; + typeUrl: string; + encode(message: GetTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse; fromJSON(object: any): GetTxResponse; toJSON(message: GetTxResponse): unknown; fromPartial(object: Partial): GetTxResponse; @@ -575,8 +582,9 @@ export declare const GetTxResponse: { toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg; }; export declare const GetBlockWithTxsRequest: { - encode(message: GetBlockWithTxsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsRequest; + typeUrl: string; + encode(message: GetBlockWithTxsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest; fromJSON(object: any): GetBlockWithTxsRequest; toJSON(message: GetBlockWithTxsRequest): unknown; fromPartial(object: Partial): GetBlockWithTxsRequest; @@ -589,8 +597,9 @@ export declare const GetBlockWithTxsRequest: { toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg; }; export declare const GetBlockWithTxsResponse: { - encode(message: GetBlockWithTxsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockWithTxsResponse; + typeUrl: string; + encode(message: GetBlockWithTxsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse; fromJSON(object: any): GetBlockWithTxsResponse; toJSON(message: GetBlockWithTxsResponse): unknown; fromPartial(object: Partial): GetBlockWithTxsResponse; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts index 5a4e8c97..e4a8e7b3 100644 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts index 099908d5..67d16559 100644 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts @@ -2,17 +2,16 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { SignMode } from "../signing/v1beta1/signing"; import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Tx is the standard type used for broadcasting transactions. */ export interface Tx { /** body is the processable content of the transaction */ - body: TxBody; + body?: TxBody; /** * auth_info is the authorization related content of the transaction, * specifically signers, signer modes and fee */ - authInfo: AuthInfo; + authInfo?: AuthInfo; /** * signatures is a list of signatures that matches the length and order of * AuthInfo's signer_infos to allow connecting signature meta information like @@ -38,7 +37,7 @@ export interface TxAmino { * AuthInfo's signer_infos to allow connecting signature meta information like * public key and signing mode by position. */ - signatures: Uint8Array[]; + signatures?: string[]; } export interface TxAminoMsg { type: "cosmos-sdk/Tx"; @@ -46,8 +45,8 @@ export interface TxAminoMsg { } /** Tx is the standard type used for broadcasting transactions. */ export interface TxSDKType { - body: TxBodySDKType; - auth_info: AuthInfoSDKType; + body?: TxBodySDKType; + auth_info?: AuthInfoSDKType; signatures: Uint8Array[]; } /** @@ -91,18 +90,18 @@ export interface TxRawAmino { * body_bytes is a protobuf serialization of a TxBody that matches the * representation in SignDoc. */ - body_bytes: Uint8Array; + body_bytes?: string; /** * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the * representation in SignDoc. */ - auth_info_bytes: Uint8Array; + auth_info_bytes?: string; /** * signatures is a list of signatures that matches the length and order of * AuthInfo's signer_infos to allow connecting signature meta information like * public key and signing mode by position. */ - signatures: Uint8Array[]; + signatures?: string[]; } export interface TxRawAminoMsg { type: "cosmos-sdk/TxRaw"; @@ -139,7 +138,7 @@ export interface SignDoc { */ chainId: string; /** account_number is the account number of the account in state */ - accountNumber: Long; + accountNumber: bigint; } export interface SignDocProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignDoc"; @@ -151,20 +150,20 @@ export interface SignDocAmino { * body_bytes is protobuf serialization of a TxBody that matches the * representation in TxRaw. */ - body_bytes: Uint8Array; + body_bytes?: string; /** * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the * representation in TxRaw. */ - auth_info_bytes: Uint8Array; + auth_info_bytes?: string; /** * chain_id is the unique identifier of the chain this transaction targets. * It prevents signed transactions from being used on another chain by an * attacker */ - chain_id: string; + chain_id?: string; /** account_number is the account number of the account in state */ - account_number: string; + account_number?: string; } export interface SignDocAminoMsg { type: "cosmos-sdk/SignDoc"; @@ -175,7 +174,7 @@ export interface SignDocSDKType { body_bytes: Uint8Array; auth_info_bytes: Uint8Array; chain_id: string; - account_number: Long; + account_number: bigint; } /** * SignDocDirectAux is the type used for generating sign bytes for @@ -190,7 +189,7 @@ export interface SignDocDirectAux { */ bodyBytes: Uint8Array; /** public_key is the public key of the signing account. */ - publicKey: Any; + publicKey?: Any; /** * chain_id is the identifier of the chain this transaction targets. * It prevents signed transactions from being used on another chain by an @@ -198,9 +197,9 @@ export interface SignDocDirectAux { */ chainId: string; /** account_number is the account number of the account in state. */ - accountNumber: Long; + accountNumber: bigint; /** sequence is the sequence number of the signing account. */ - sequence: Long; + sequence: bigint; /** * Tip is the optional tip used for transactions fees paid in another denom. * It should be left empty if the signer is not the tipper for this @@ -209,7 +208,7 @@ export interface SignDocDirectAux { * This field is ignored if the chain didn't enable tips, i.e. didn't add the * `TipDecorator` in its posthandler. */ - tip: Tip; + tip?: Tip; } export interface SignDocDirectAuxProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; @@ -226,7 +225,7 @@ export interface SignDocDirectAuxAmino { * body_bytes is protobuf serialization of a TxBody that matches the * representation in TxRaw. */ - body_bytes: Uint8Array; + body_bytes?: string; /** public_key is the public key of the signing account. */ public_key?: AnyAmino; /** @@ -234,11 +233,11 @@ export interface SignDocDirectAuxAmino { * It prevents signed transactions from being used on another chain by an * attacker. */ - chain_id: string; + chain_id?: string; /** account_number is the account number of the account in state. */ - account_number: string; + account_number?: string; /** sequence is the sequence number of the signing account. */ - sequence: string; + sequence?: string; /** * Tip is the optional tip used for transactions fees paid in another denom. * It should be left empty if the signer is not the tipper for this @@ -261,11 +260,11 @@ export interface SignDocDirectAuxAminoMsg { */ export interface SignDocDirectAuxSDKType { body_bytes: Uint8Array; - public_key: AnySDKType; + public_key?: AnySDKType; chain_id: string; - account_number: Long; - sequence: Long; - tip: TipSDKType; + account_number: bigint; + sequence: bigint; + tip?: TipSDKType; } /** TxBody is the body of a transaction that all signers sign over. */ export interface TxBody { @@ -289,7 +288,7 @@ export interface TxBody { * timeout is the block height after which this transaction will not * be processed by the chain */ - timeoutHeight: Long; + timeoutHeight: bigint; /** * extension_options are arbitrary options that can be added by chains * when the default options are not sufficient. If any of these are present @@ -318,30 +317,30 @@ export interface TxBodyAmino { * is referred to as the primary signer and pays the fee for the whole * transaction. */ - messages: AnyAmino[]; + messages?: AnyAmino[]; /** * memo is any arbitrary note/comment to be added to the transaction. * WARNING: in clients, any publicly exposed text should not be called memo, * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). */ - memo: string; + memo?: string; /** * timeout is the block height after which this transaction will not * be processed by the chain */ - timeout_height: string; + timeout_height?: string; /** * extension_options are arbitrary options that can be added by chains * when the default options are not sufficient. If any of these are present * and can't be handled, the transaction will be rejected */ - extension_options: AnyAmino[]; + extension_options?: AnyAmino[]; /** * extension_options are arbitrary options that can be added by chains * when the default options are not sufficient. If any of these are present * and can't be handled, they will be ignored */ - non_critical_extension_options: AnyAmino[]; + non_critical_extension_options?: AnyAmino[]; } export interface TxBodyAminoMsg { type: "cosmos-sdk/TxBody"; @@ -351,7 +350,7 @@ export interface TxBodyAminoMsg { export interface TxBodySDKType { messages: AnySDKType[]; memo: string; - timeout_height: Long; + timeout_height: bigint; extension_options: AnySDKType[]; non_critical_extension_options: AnySDKType[]; } @@ -373,7 +372,7 @@ export interface AuthInfo { * based on the cost of evaluating the body and doing signature verification * of the signers. This can be estimated via simulation. */ - fee: Fee; + fee?: Fee; /** * Tip is the optional tip used for transactions fees paid in another denom. * @@ -382,7 +381,7 @@ export interface AuthInfo { * * Since: cosmos-sdk 0.46 */ - tip: Tip; + tip?: Tip; } export interface AuthInfoProtoMsg { typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; @@ -399,7 +398,7 @@ export interface AuthInfoAmino { * messages. The first element is the primary signer and the one which pays * the fee. */ - signer_infos: SignerInfoAmino[]; + signer_infos?: SignerInfoAmino[]; /** * Fee is the fee and gas limit for the transaction. The first signer is the * primary signer and the one which pays the fee. The fee can be calculated @@ -427,8 +426,8 @@ export interface AuthInfoAminoMsg { */ export interface AuthInfoSDKType { signer_infos: SignerInfoSDKType[]; - fee: FeeSDKType; - tip: TipSDKType; + fee?: FeeSDKType; + tip?: TipSDKType; } /** * SignerInfo describes the public key and signing mode of a single top-level @@ -440,18 +439,18 @@ export interface SignerInfo { * that already exist in state. If unset, the verifier can use the required \ * signer address for this position and lookup the public key. */ - publicKey: Any; + publicKey?: Any; /** * mode_info describes the signing mode of the signer and is a nested * structure to support nested multisig pubkey's */ - modeInfo: ModeInfo; + modeInfo?: ModeInfo; /** * sequence is the sequence of the account, which describes the * number of committed transactions signed by a given address. It is used to * prevent replay attacks. */ - sequence: Long; + sequence: bigint; } export interface SignerInfoProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; @@ -478,7 +477,7 @@ export interface SignerInfoAmino { * number of committed transactions signed by a given address. It is used to * prevent replay attacks. */ - sequence: string; + sequence?: string; } export interface SignerInfoAminoMsg { type: "cosmos-sdk/SignerInfo"; @@ -489,9 +488,9 @@ export interface SignerInfoAminoMsg { * signer. */ export interface SignerInfoSDKType { - public_key: AnySDKType; - mode_info: ModeInfoSDKType; - sequence: Long; + public_key?: AnySDKType; + mode_info?: ModeInfoSDKType; + sequence: bigint; } /** ModeInfo describes the signing mode of a single or nested multisig signer. */ export interface ModeInfo { @@ -540,7 +539,7 @@ export interface ModeInfo_SingleProtoMsg { */ export interface ModeInfo_SingleAmino { /** mode is the signing mode of the single signer */ - mode: SignMode; + mode?: SignMode; } export interface ModeInfo_SingleAminoMsg { type: "cosmos-sdk/Single"; @@ -557,7 +556,7 @@ export interface ModeInfo_SingleSDKType { /** Multi is the mode info for a multisig public key */ export interface ModeInfo_Multi { /** bitarray specifies which keys within the multisig are signing */ - bitarray: CompactBitArray; + bitarray?: CompactBitArray; /** * mode_infos is the corresponding modes of the signers of the multisig * which could include nested multisig public keys @@ -576,7 +575,7 @@ export interface ModeInfo_MultiAmino { * mode_infos is the corresponding modes of the signers of the multisig * which could include nested multisig public keys */ - mode_infos: ModeInfoAmino[]; + mode_infos?: ModeInfoAmino[]; } export interface ModeInfo_MultiAminoMsg { type: "cosmos-sdk/Multi"; @@ -584,7 +583,7 @@ export interface ModeInfo_MultiAminoMsg { } /** Multi is the mode info for a multisig public key */ export interface ModeInfo_MultiSDKType { - bitarray: CompactBitArraySDKType; + bitarray?: CompactBitArraySDKType; mode_infos: ModeInfoSDKType[]; } /** @@ -599,7 +598,7 @@ export interface Fee { * gas_limit is the maximum gas that can be used in transaction processing * before an out of gas error occurs */ - gasLimit: Long; + gasLimit: bigint; /** * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. * the payer must be a tx signer (and thus have signed this field in AuthInfo). @@ -624,24 +623,24 @@ export interface FeeProtoMsg { */ export interface FeeAmino { /** amount is the amount of coins to be paid as a fee */ - amount: CoinAmino[]; + amount?: CoinAmino[]; /** * gas_limit is the maximum gas that can be used in transaction processing * before an out of gas error occurs */ - gas_limit: string; + gas_limit?: string; /** * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. * the payer must be a tx signer (and thus have signed this field in AuthInfo). * setting this field does *not* change the ordering of required signers for the transaction. */ - payer: string; + payer?: string; /** * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does * not support fee grants, this will fail */ - granter: string; + granter?: string; } export interface FeeAminoMsg { type: "cosmos-sdk/Fee"; @@ -654,7 +653,7 @@ export interface FeeAminoMsg { */ export interface FeeSDKType { amount: CoinSDKType[]; - gas_limit: Long; + gas_limit: bigint; payer: string; granter: string; } @@ -680,9 +679,9 @@ export interface TipProtoMsg { */ export interface TipAmino { /** amount is the amount of the tip */ - amount: CoinAmino[]; + amount?: CoinAmino[]; /** tipper is the address of the account paying for the tip */ - tipper: string; + tipper?: string; } export interface TipAminoMsg { type: "cosmos-sdk/Tip"; @@ -717,7 +716,7 @@ export interface AuxSignerData { * signs. Note: we use the same sign doc even if we're signing with * LEGACY_AMINO_JSON. */ - signDoc: SignDocDirectAux; + signDoc?: SignDocDirectAux; /** mode is the signing mode of the single signer. */ mode: SignMode; /** sig is the signature of the sign doc. */ @@ -741,7 +740,7 @@ export interface AuxSignerDataAmino { * AuxSignerData across different chains, the bech32 prefix of the target * chain (where the final transaction is broadcasted) should be used. */ - address: string; + address?: string; /** * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer * signs. Note: we use the same sign doc even if we're signing with @@ -749,9 +748,9 @@ export interface AuxSignerDataAmino { */ sign_doc?: SignDocDirectAuxAmino; /** mode is the signing mode of the single signer. */ - mode: SignMode; + mode?: SignMode; /** sig is the signature of the sign doc. */ - sig: Uint8Array; + sig?: string; } export interface AuxSignerDataAminoMsg { type: "cosmos-sdk/AuxSignerData"; @@ -767,13 +766,14 @@ export interface AuxSignerDataAminoMsg { */ export interface AuxSignerDataSDKType { address: string; - sign_doc: SignDocDirectAuxSDKType; + sign_doc?: SignDocDirectAuxSDKType; mode: SignMode; sig: Uint8Array; } export declare const Tx: { - encode(message: Tx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Tx; + typeUrl: string; + encode(message: Tx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Tx; fromJSON(object: any): Tx; toJSON(message: Tx): unknown; fromPartial(object: Partial): Tx; @@ -786,8 +786,9 @@ export declare const Tx: { toProtoMsg(message: Tx): TxProtoMsg; }; export declare const TxRaw: { - encode(message: TxRaw, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxRaw; + typeUrl: string; + encode(message: TxRaw, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxRaw; fromJSON(object: any): TxRaw; toJSON(message: TxRaw): unknown; fromPartial(object: Partial): TxRaw; @@ -800,8 +801,9 @@ export declare const TxRaw: { toProtoMsg(message: TxRaw): TxRawProtoMsg; }; export declare const SignDoc: { - encode(message: SignDoc, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignDoc; + typeUrl: string; + encode(message: SignDoc, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignDoc; fromJSON(object: any): SignDoc; toJSON(message: SignDoc): unknown; fromPartial(object: Partial): SignDoc; @@ -814,8 +816,9 @@ export declare const SignDoc: { toProtoMsg(message: SignDoc): SignDocProtoMsg; }; export declare const SignDocDirectAux: { - encode(message: SignDocDirectAux, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignDocDirectAux; + typeUrl: string; + encode(message: SignDocDirectAux, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux; fromJSON(object: any): SignDocDirectAux; toJSON(message: SignDocDirectAux): unknown; fromPartial(object: Partial): SignDocDirectAux; @@ -828,8 +831,9 @@ export declare const SignDocDirectAux: { toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg; }; export declare const TxBody: { - encode(message: TxBody, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxBody; + typeUrl: string; + encode(message: TxBody, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxBody; fromJSON(object: any): TxBody; toJSON(message: TxBody): unknown; fromPartial(object: Partial): TxBody; @@ -842,8 +846,9 @@ export declare const TxBody: { toProtoMsg(message: TxBody): TxBodyProtoMsg; }; export declare const AuthInfo: { - encode(message: AuthInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AuthInfo; + typeUrl: string; + encode(message: AuthInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo; fromJSON(object: any): AuthInfo; toJSON(message: AuthInfo): unknown; fromPartial(object: Partial): AuthInfo; @@ -856,8 +861,9 @@ export declare const AuthInfo: { toProtoMsg(message: AuthInfo): AuthInfoProtoMsg; }; export declare const SignerInfo: { - encode(message: SignerInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo; + typeUrl: string; + encode(message: SignerInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo; fromJSON(object: any): SignerInfo; toJSON(message: SignerInfo): unknown; fromPartial(object: Partial): SignerInfo; @@ -870,8 +876,9 @@ export declare const SignerInfo: { toProtoMsg(message: SignerInfo): SignerInfoProtoMsg; }; export declare const ModeInfo: { - encode(message: ModeInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo; + typeUrl: string; + encode(message: ModeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo; fromJSON(object: any): ModeInfo; toJSON(message: ModeInfo): unknown; fromPartial(object: Partial): ModeInfo; @@ -884,8 +891,9 @@ export declare const ModeInfo: { toProtoMsg(message: ModeInfo): ModeInfoProtoMsg; }; export declare const ModeInfo_Single: { - encode(message: ModeInfo_Single, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single; + typeUrl: string; + encode(message: ModeInfo_Single, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single; fromJSON(object: any): ModeInfo_Single; toJSON(message: ModeInfo_Single): unknown; fromPartial(object: Partial): ModeInfo_Single; @@ -898,8 +906,9 @@ export declare const ModeInfo_Single: { toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg; }; export declare const ModeInfo_Multi: { - encode(message: ModeInfo_Multi, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Multi; + typeUrl: string; + encode(message: ModeInfo_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi; fromJSON(object: any): ModeInfo_Multi; toJSON(message: ModeInfo_Multi): unknown; fromPartial(object: Partial): ModeInfo_Multi; @@ -912,8 +921,9 @@ export declare const ModeInfo_Multi: { toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg; }; export declare const Fee: { - encode(message: Fee, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Fee; + typeUrl: string; + encode(message: Fee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Fee; fromJSON(object: any): Fee; toJSON(message: Fee): unknown; fromPartial(object: Partial): Fee; @@ -926,8 +936,9 @@ export declare const Fee: { toProtoMsg(message: Fee): FeeProtoMsg; }; export declare const Tip: { - encode(message: Tip, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Tip; + typeUrl: string; + encode(message: Tip, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Tip; fromJSON(object: any): Tip; toJSON(message: Tip): unknown; fromPartial(object: Partial): Tip; @@ -940,8 +951,9 @@ export declare const Tip: { toProtoMsg(message: Tip): TipProtoMsg; }; export declare const AuxSignerData: { - encode(message: AuxSignerData, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AuxSignerData; + typeUrl: string; + encode(message: AuxSignerData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData; fromJSON(object: any): AuxSignerData; toJSON(message: AuxSignerData): unknown; fromPartial(object: Partial): AuxSignerData; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts index 5ce555f3..8dfe699b 100644 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +++ b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts @@ -1,6 +1,5 @@ import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. @@ -33,7 +32,7 @@ export interface QueryCurrentPlanRequestSDKType { */ export interface QueryCurrentPlanResponse { /** plan is the current upgrade plan. */ - plan: Plan; + plan?: Plan; } export interface QueryCurrentPlanResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; @@ -56,7 +55,7 @@ export interface QueryCurrentPlanResponseAminoMsg { * method. */ export interface QueryCurrentPlanResponseSDKType { - plan: PlanSDKType; + plan?: PlanSDKType; } /** * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC @@ -76,7 +75,7 @@ export interface QueryAppliedPlanRequestProtoMsg { */ export interface QueryAppliedPlanRequestAmino { /** name is the name of the applied plan to query for. */ - name: string; + name?: string; } export interface QueryAppliedPlanRequestAminoMsg { type: "cosmos-sdk/QueryAppliedPlanRequest"; @@ -95,7 +94,7 @@ export interface QueryAppliedPlanRequestSDKType { */ export interface QueryAppliedPlanResponse { /** height is the block height at which the plan was applied. */ - height: Long; + height: bigint; } export interface QueryAppliedPlanResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; @@ -107,7 +106,7 @@ export interface QueryAppliedPlanResponseProtoMsg { */ export interface QueryAppliedPlanResponseAmino { /** height is the block height at which the plan was applied. */ - height: string; + height?: string; } export interface QueryAppliedPlanResponseAminoMsg { type: "cosmos-sdk/QueryAppliedPlanResponse"; @@ -118,7 +117,7 @@ export interface QueryAppliedPlanResponseAminoMsg { * method. */ export interface QueryAppliedPlanResponseSDKType { - height: Long; + height: bigint; } /** * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState @@ -130,7 +129,7 @@ export interface QueryUpgradedConsensusStateRequest { * last height of the current chain must be sent in request * as this is the height under which next consensus state is stored */ - lastHeight: Long; + lastHeight: bigint; } export interface QueryUpgradedConsensusStateRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; @@ -146,7 +145,7 @@ export interface QueryUpgradedConsensusStateRequestAmino { * last height of the current chain must be sent in request * as this is the height under which next consensus state is stored */ - last_height: string; + last_height?: string; } export interface QueryUpgradedConsensusStateRequestAminoMsg { type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; @@ -158,7 +157,7 @@ export interface QueryUpgradedConsensusStateRequestAminoMsg { */ /** @deprecated */ export interface QueryUpgradedConsensusStateRequestSDKType { - last_height: Long; + last_height: bigint; } /** * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState @@ -180,7 +179,7 @@ export interface QueryUpgradedConsensusStateResponseProtoMsg { /** @deprecated */ export interface QueryUpgradedConsensusStateResponseAmino { /** Since: cosmos-sdk 0.43 */ - upgraded_consensus_state: Uint8Array; + upgraded_consensus_state?: string; } export interface QueryUpgradedConsensusStateResponseAminoMsg { type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; @@ -224,7 +223,7 @@ export interface QueryModuleVersionsRequestAmino { * consensus version from state. Leaving this empty will * fetch the full list of module versions from state */ - module_name: string; + module_name?: string; } export interface QueryModuleVersionsRequestAminoMsg { type: "cosmos-sdk/QueryModuleVersionsRequest"; @@ -261,7 +260,7 @@ export interface QueryModuleVersionsResponseProtoMsg { */ export interface QueryModuleVersionsResponseAmino { /** module_versions is a list of module names with their consensus versions. */ - module_versions: ModuleVersionAmino[]; + module_versions?: ModuleVersionAmino[]; } export interface QueryModuleVersionsResponseAminoMsg { type: "cosmos-sdk/QueryModuleVersionsResponse"; @@ -323,7 +322,7 @@ export interface QueryAuthorityResponseProtoMsg { * Since: cosmos-sdk 0.46 */ export interface QueryAuthorityResponseAmino { - address: string; + address?: string; } export interface QueryAuthorityResponseAminoMsg { type: "cosmos-sdk/QueryAuthorityResponse"; @@ -338,8 +337,9 @@ export interface QueryAuthorityResponseSDKType { address: string; } export declare const QueryCurrentPlanRequest: { - encode(_: QueryCurrentPlanRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCurrentPlanRequest; + typeUrl: string; + encode(_: QueryCurrentPlanRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest; fromJSON(_: any): QueryCurrentPlanRequest; toJSON(_: QueryCurrentPlanRequest): unknown; fromPartial(_: Partial): QueryCurrentPlanRequest; @@ -352,8 +352,9 @@ export declare const QueryCurrentPlanRequest: { toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg; }; export declare const QueryCurrentPlanResponse: { - encode(message: QueryCurrentPlanResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCurrentPlanResponse; + typeUrl: string; + encode(message: QueryCurrentPlanResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse; fromJSON(object: any): QueryCurrentPlanResponse; toJSON(message: QueryCurrentPlanResponse): unknown; fromPartial(object: Partial): QueryCurrentPlanResponse; @@ -366,8 +367,9 @@ export declare const QueryCurrentPlanResponse: { toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg; }; export declare const QueryAppliedPlanRequest: { - encode(message: QueryAppliedPlanRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppliedPlanRequest; + typeUrl: string; + encode(message: QueryAppliedPlanRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest; fromJSON(object: any): QueryAppliedPlanRequest; toJSON(message: QueryAppliedPlanRequest): unknown; fromPartial(object: Partial): QueryAppliedPlanRequest; @@ -380,8 +382,9 @@ export declare const QueryAppliedPlanRequest: { toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg; }; export declare const QueryAppliedPlanResponse: { - encode(message: QueryAppliedPlanResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppliedPlanResponse; + typeUrl: string; + encode(message: QueryAppliedPlanResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse; fromJSON(object: any): QueryAppliedPlanResponse; toJSON(message: QueryAppliedPlanResponse): unknown; fromPartial(object: Partial): QueryAppliedPlanResponse; @@ -394,8 +397,9 @@ export declare const QueryAppliedPlanResponse: { toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg; }; export declare const QueryUpgradedConsensusStateRequest: { - encode(message: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; + typeUrl: string; + encode(message: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; fromJSON(object: any): QueryUpgradedConsensusStateRequest; toJSON(message: QueryUpgradedConsensusStateRequest): unknown; fromPartial(object: Partial): QueryUpgradedConsensusStateRequest; @@ -408,8 +412,9 @@ export declare const QueryUpgradedConsensusStateRequest: { toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; }; export declare const QueryUpgradedConsensusStateResponse: { - encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; + typeUrl: string; + encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; @@ -422,8 +427,9 @@ export declare const QueryUpgradedConsensusStateResponse: { toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; }; export declare const QueryModuleVersionsRequest: { - encode(message: QueryModuleVersionsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleVersionsRequest; + typeUrl: string; + encode(message: QueryModuleVersionsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest; fromJSON(object: any): QueryModuleVersionsRequest; toJSON(message: QueryModuleVersionsRequest): unknown; fromPartial(object: Partial): QueryModuleVersionsRequest; @@ -436,8 +442,9 @@ export declare const QueryModuleVersionsRequest: { toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg; }; export declare const QueryModuleVersionsResponse: { - encode(message: QueryModuleVersionsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleVersionsResponse; + typeUrl: string; + encode(message: QueryModuleVersionsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse; fromJSON(object: any): QueryModuleVersionsResponse; toJSON(message: QueryModuleVersionsResponse): unknown; fromPartial(object: Partial): QueryModuleVersionsResponse; @@ -450,8 +457,9 @@ export declare const QueryModuleVersionsResponse: { toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg; }; export declare const QueryAuthorityRequest: { - encode(_: QueryAuthorityRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAuthorityRequest; + typeUrl: string; + encode(_: QueryAuthorityRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest; fromJSON(_: any): QueryAuthorityRequest; toJSON(_: QueryAuthorityRequest): unknown; fromPartial(_: Partial): QueryAuthorityRequest; @@ -464,8 +472,9 @@ export declare const QueryAuthorityRequest: { toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg; }; export declare const QueryAuthorityResponse: { - encode(message: QueryAuthorityResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAuthorityResponse; + typeUrl: string; + encode(message: QueryAuthorityResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse; fromJSON(object: any): QueryAuthorityResponse; toJSON(message: QueryAuthorityResponse): unknown; fromPartial(object: Partial): QueryAuthorityResponse; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts index 2096c970..c76598bb 100644 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +++ b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts index c88776b3..34cfaefc 100644 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts @@ -1,5 +1,5 @@ import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. * @@ -22,7 +22,7 @@ export interface MsgSoftwareUpgradeProtoMsg { */ export interface MsgSoftwareUpgradeAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** plan is the upgrade plan. */ plan?: PlanAmino; } @@ -88,7 +88,7 @@ export interface MsgCancelUpgradeProtoMsg { */ export interface MsgCancelUpgradeAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; } export interface MsgCancelUpgradeAminoMsg { type: "cosmos-sdk/MsgCancelUpgrade"; @@ -132,8 +132,9 @@ export interface MsgCancelUpgradeResponseAminoMsg { export interface MsgCancelUpgradeResponseSDKType { } export declare const MsgSoftwareUpgrade: { - encode(message: MsgSoftwareUpgrade, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSoftwareUpgrade; + typeUrl: string; + encode(message: MsgSoftwareUpgrade, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade; fromJSON(object: any): MsgSoftwareUpgrade; toJSON(message: MsgSoftwareUpgrade): unknown; fromPartial(object: Partial): MsgSoftwareUpgrade; @@ -146,8 +147,9 @@ export declare const MsgSoftwareUpgrade: { toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg; }; export declare const MsgSoftwareUpgradeResponse: { - encode(_: MsgSoftwareUpgradeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse; + typeUrl: string; + encode(_: MsgSoftwareUpgradeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse; fromJSON(_: any): MsgSoftwareUpgradeResponse; toJSON(_: MsgSoftwareUpgradeResponse): unknown; fromPartial(_: Partial): MsgSoftwareUpgradeResponse; @@ -160,8 +162,9 @@ export declare const MsgSoftwareUpgradeResponse: { toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg; }; export declare const MsgCancelUpgrade: { - encode(message: MsgCancelUpgrade, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUpgrade; + typeUrl: string; + encode(message: MsgCancelUpgrade, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade; fromJSON(object: any): MsgCancelUpgrade; toJSON(message: MsgCancelUpgrade): unknown; fromPartial(object: Partial): MsgCancelUpgrade; @@ -174,8 +177,9 @@ export declare const MsgCancelUpgrade: { toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg; }; export declare const MsgCancelUpgradeResponse: { - encode(_: MsgCancelUpgradeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUpgradeResponse; + typeUrl: string; + encode(_: MsgCancelUpgradeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse; fromJSON(_: any): MsgCancelUpgradeResponse; toJSON(_: MsgCancelUpgradeResponse): unknown; fromPartial(_: Partial): MsgCancelUpgradeResponse; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts index 7edafd7f..b3fff209 100644 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +++ b/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts @@ -1,7 +1,6 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** Plan specifies information about a planned upgrade and when it should occur. */ export interface Plan { /** @@ -25,7 +24,7 @@ export interface Plan { * The height at which the upgrade must be performed. * Only used if Time is not set. */ - height: Long; + height: bigint; /** * Any application specific upgrade info to be included on-chain * such as a git commit that validators could automatically upgrade to @@ -37,7 +36,7 @@ export interface Plan { * If this field is not empty, an error will be thrown. */ /** @deprecated */ - upgradedClientState: Any; + upgradedClientState?: Any; } export interface PlanProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.Plan"; @@ -54,24 +53,24 @@ export interface PlanAmino { * assumed that the software is out-of-date when the upgrade Time or Height is * reached and the software will exit. */ - name: string; + name?: string; /** * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic * has been removed from the SDK. * If this field is not empty, an error will be thrown. */ /** @deprecated */ - time?: TimestampAmino; + time?: string; /** * The height at which the upgrade must be performed. * Only used if Time is not set. */ - height: string; + height?: string; /** * Any application specific upgrade info to be included on-chain * such as a git commit that validators could automatically upgrade to */ - info: string; + info?: string; /** * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been * moved to the IBC module in the sub module 02-client. @@ -89,10 +88,10 @@ export interface PlanSDKType { name: string; /** @deprecated */ time: TimestampSDKType; - height: Long; + height: bigint; info: string; /** @deprecated */ - upgraded_client_state: AnySDKType; + upgraded_client_state?: AnySDKType; } /** * SoftwareUpgradeProposal is a gov Content type for initiating a software @@ -102,7 +101,7 @@ export interface PlanSDKType { */ /** @deprecated */ export interface SoftwareUpgradeProposal { - $typeUrl?: string; + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; title: string; description: string; plan: Plan; @@ -119,8 +118,8 @@ export interface SoftwareUpgradeProposalProtoMsg { */ /** @deprecated */ export interface SoftwareUpgradeProposalAmino { - title: string; - description: string; + title?: string; + description?: string; plan?: PlanAmino; } export interface SoftwareUpgradeProposalAminoMsg { @@ -135,7 +134,7 @@ export interface SoftwareUpgradeProposalAminoMsg { */ /** @deprecated */ export interface SoftwareUpgradeProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; title: string; description: string; plan: PlanSDKType; @@ -148,7 +147,7 @@ export interface SoftwareUpgradeProposalSDKType { */ /** @deprecated */ export interface CancelSoftwareUpgradeProposal { - $typeUrl?: string; + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; title: string; description: string; } @@ -164,8 +163,8 @@ export interface CancelSoftwareUpgradeProposalProtoMsg { */ /** @deprecated */ export interface CancelSoftwareUpgradeProposalAmino { - title: string; - description: string; + title?: string; + description?: string; } export interface CancelSoftwareUpgradeProposalAminoMsg { type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; @@ -179,7 +178,7 @@ export interface CancelSoftwareUpgradeProposalAminoMsg { */ /** @deprecated */ export interface CancelSoftwareUpgradeProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; title: string; description: string; } @@ -192,7 +191,7 @@ export interface ModuleVersion { /** name of the app module */ name: string; /** consensus version of the app module */ - version: Long; + version: bigint; } export interface ModuleVersionProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; @@ -205,9 +204,9 @@ export interface ModuleVersionProtoMsg { */ export interface ModuleVersionAmino { /** name of the app module */ - name: string; + name?: string; /** consensus version of the app module */ - version: string; + version?: string; } export interface ModuleVersionAminoMsg { type: "cosmos-sdk/ModuleVersion"; @@ -220,11 +219,12 @@ export interface ModuleVersionAminoMsg { */ export interface ModuleVersionSDKType { name: string; - version: Long; + version: bigint; } export declare const Plan: { - encode(message: Plan, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Plan; + typeUrl: string; + encode(message: Plan, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Plan; fromJSON(object: any): Plan; toJSON(message: Plan): unknown; fromPartial(object: Partial): Plan; @@ -237,8 +237,9 @@ export declare const Plan: { toProtoMsg(message: Plan): PlanProtoMsg; }; export declare const SoftwareUpgradeProposal: { - encode(message: SoftwareUpgradeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SoftwareUpgradeProposal; + typeUrl: string; + encode(message: SoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal; fromJSON(object: any): SoftwareUpgradeProposal; toJSON(message: SoftwareUpgradeProposal): unknown; fromPartial(object: Partial): SoftwareUpgradeProposal; @@ -251,8 +252,9 @@ export declare const SoftwareUpgradeProposal: { toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg; }; export declare const CancelSoftwareUpgradeProposal: { - encode(message: CancelSoftwareUpgradeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal; + typeUrl: string; + encode(message: CancelSoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal; fromJSON(object: any): CancelSoftwareUpgradeProposal; toJSON(message: CancelSoftwareUpgradeProposal): unknown; fromPartial(object: Partial): CancelSoftwareUpgradeProposal; @@ -265,8 +267,9 @@ export declare const CancelSoftwareUpgradeProposal: { toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg; }; export declare const ModuleVersion: { - encode(message: ModuleVersion, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleVersion; + typeUrl: string; + encode(message: ModuleVersion, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion; fromJSON(object: any): ModuleVersion; toJSON(message: ModuleVersion): unknown; fromPartial(object: Partial): ModuleVersion; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts index c2afe080..3ce30fa7 100644 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +++ b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts @@ -1,7 +1,6 @@ import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgCreateVestingAccount defines a message that enables creating a vesting * account. @@ -10,7 +9,7 @@ export interface MsgCreateVestingAccount { fromAddress: string; toAddress: string; amount: Coin[]; - endTime: Long; + endTime: bigint; delayed: boolean; } export interface MsgCreateVestingAccountProtoMsg { @@ -22,11 +21,11 @@ export interface MsgCreateVestingAccountProtoMsg { * account. */ export interface MsgCreateVestingAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; - end_time: string; - delayed: boolean; + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; + end_time?: string; + delayed?: boolean; } export interface MsgCreateVestingAccountAminoMsg { type: "cosmos-sdk/MsgCreateVestingAccount"; @@ -40,7 +39,7 @@ export interface MsgCreateVestingAccountSDKType { from_address: string; to_address: string; amount: CoinSDKType[]; - end_time: Long; + end_time: bigint; delayed: boolean; } /** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ @@ -82,9 +81,9 @@ export interface MsgCreatePermanentLockedAccountProtoMsg { * Since: cosmos-sdk 0.46 */ export interface MsgCreatePermanentLockedAccountAmino { - from_address: string; - to_address: string; - amount: CoinAmino[]; + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; } export interface MsgCreatePermanentLockedAccountAminoMsg { type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; @@ -139,7 +138,7 @@ export interface MsgCreatePermanentLockedAccountResponseSDKType { export interface MsgCreatePeriodicVestingAccount { fromAddress: string; toAddress: string; - startTime: Long; + startTime: bigint; vestingPeriods: Period[]; } export interface MsgCreatePeriodicVestingAccountProtoMsg { @@ -153,10 +152,10 @@ export interface MsgCreatePeriodicVestingAccountProtoMsg { * Since: cosmos-sdk 0.46 */ export interface MsgCreatePeriodicVestingAccountAmino { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: PeriodAmino[]; + from_address?: string; + to_address?: string; + start_time?: string; + vesting_periods?: PeriodAmino[]; } export interface MsgCreatePeriodicVestingAccountAminoMsg { type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; @@ -171,7 +170,7 @@ export interface MsgCreatePeriodicVestingAccountAminoMsg { export interface MsgCreatePeriodicVestingAccountSDKType { from_address: string; to_address: string; - start_time: Long; + start_time: bigint; vesting_periods: PeriodSDKType[]; } /** @@ -207,8 +206,9 @@ export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { export interface MsgCreatePeriodicVestingAccountResponseSDKType { } export declare const MsgCreateVestingAccount: { - encode(message: MsgCreateVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccount; + typeUrl: string; + encode(message: MsgCreateVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount; fromJSON(object: any): MsgCreateVestingAccount; toJSON(message: MsgCreateVestingAccount): unknown; fromPartial(object: Partial): MsgCreateVestingAccount; @@ -221,8 +221,9 @@ export declare const MsgCreateVestingAccount: { toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg; }; export declare const MsgCreateVestingAccountResponse: { - encode(_: MsgCreateVestingAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; + typeUrl: string; + encode(_: MsgCreateVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; fromJSON(_: any): MsgCreateVestingAccountResponse; toJSON(_: MsgCreateVestingAccountResponse): unknown; fromPartial(_: Partial): MsgCreateVestingAccountResponse; @@ -235,8 +236,9 @@ export declare const MsgCreateVestingAccountResponse: { toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg; }; export declare const MsgCreatePermanentLockedAccount: { - encode(message: MsgCreatePermanentLockedAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; + typeUrl: string; + encode(message: MsgCreatePermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; fromJSON(object: any): MsgCreatePermanentLockedAccount; toJSON(message: MsgCreatePermanentLockedAccount): unknown; fromPartial(object: Partial): MsgCreatePermanentLockedAccount; @@ -249,8 +251,9 @@ export declare const MsgCreatePermanentLockedAccount: { toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg; }; export declare const MsgCreatePermanentLockedAccountResponse: { - encode(_: MsgCreatePermanentLockedAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; + typeUrl: string; + encode(_: MsgCreatePermanentLockedAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; fromJSON(_: any): MsgCreatePermanentLockedAccountResponse; toJSON(_: MsgCreatePermanentLockedAccountResponse): unknown; fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse; @@ -263,8 +266,9 @@ export declare const MsgCreatePermanentLockedAccountResponse: { toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg; }; export declare const MsgCreatePeriodicVestingAccount: { - encode(message: MsgCreatePeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; + typeUrl: string; + encode(message: MsgCreatePeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; fromJSON(object: any): MsgCreatePeriodicVestingAccount; toJSON(message: MsgCreatePeriodicVestingAccount): unknown; fromPartial(object: Partial): MsgCreatePeriodicVestingAccount; @@ -277,8 +281,9 @@ export declare const MsgCreatePeriodicVestingAccount: { toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg; }; export declare const MsgCreatePeriodicVestingAccountResponse: { - encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; + typeUrl: string; + encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse; toJSON(_: MsgCreatePeriodicVestingAccountResponse): unknown; fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts index 033f8822..3fb565f9 100644 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +++ b/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts @@ -1,17 +1,16 @@ import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * BaseVestingAccount implements the VestingAccount interface. It contains all * the necessary fields needed for any vesting account implementation. */ export interface BaseVestingAccount { - baseAccount: BaseAccount; + baseAccount?: BaseAccount; originalVesting: Coin[]; delegatedFree: Coin[]; delegatedVesting: Coin[]; - endTime: Long; + endTime: bigint; } export interface BaseVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; @@ -23,10 +22,10 @@ export interface BaseVestingAccountProtoMsg { */ export interface BaseVestingAccountAmino { base_account?: BaseAccountAmino; - original_vesting: CoinAmino[]; - delegated_free: CoinAmino[]; - delegated_vesting: CoinAmino[]; - end_time: string; + original_vesting?: CoinAmino[]; + delegated_free?: CoinAmino[]; + delegated_vesting?: CoinAmino[]; + end_time?: string; } export interface BaseVestingAccountAminoMsg { type: "cosmos-sdk/BaseVestingAccount"; @@ -37,19 +36,19 @@ export interface BaseVestingAccountAminoMsg { * the necessary fields needed for any vesting account implementation. */ export interface BaseVestingAccountSDKType { - base_account: BaseAccountSDKType; + base_account?: BaseAccountSDKType; original_vesting: CoinSDKType[]; delegated_free: CoinSDKType[]; delegated_vesting: CoinSDKType[]; - end_time: Long; + end_time: bigint; } /** * ContinuousVestingAccount implements the VestingAccount interface. It * continuously vests by unlocking coins linearly with respect to time. */ export interface ContinuousVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; } export interface ContinuousVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; @@ -61,7 +60,7 @@ export interface ContinuousVestingAccountProtoMsg { */ export interface ContinuousVestingAccountAmino { base_vesting_account?: BaseVestingAccountAmino; - start_time: string; + start_time?: string; } export interface ContinuousVestingAccountAminoMsg { type: "cosmos-sdk/ContinuousVestingAccount"; @@ -72,8 +71,8 @@ export interface ContinuousVestingAccountAminoMsg { * continuously vests by unlocking coins linearly with respect to time. */ export interface ContinuousVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; } /** * DelayedVestingAccount implements the VestingAccount interface. It vests all @@ -81,7 +80,7 @@ export interface ContinuousVestingAccountSDKType { * locked until a specified time. */ export interface DelayedVestingAccount { - baseVestingAccount: BaseVestingAccount; + baseVestingAccount?: BaseVestingAccount; } export interface DelayedVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; @@ -105,11 +104,11 @@ export interface DelayedVestingAccountAminoMsg { * locked until a specified time. */ export interface DelayedVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; + base_vesting_account?: BaseVestingAccountSDKType; } /** Period defines a length of time and amount of coins that will vest. */ export interface Period { - length: Long; + length: bigint; amount: Coin[]; } export interface PeriodProtoMsg { @@ -118,8 +117,8 @@ export interface PeriodProtoMsg { } /** Period defines a length of time and amount of coins that will vest. */ export interface PeriodAmino { - length: string; - amount: CoinAmino[]; + length?: string; + amount?: CoinAmino[]; } export interface PeriodAminoMsg { type: "cosmos-sdk/Period"; @@ -127,7 +126,7 @@ export interface PeriodAminoMsg { } /** Period defines a length of time and amount of coins that will vest. */ export interface PeriodSDKType { - length: Long; + length: bigint; amount: CoinSDKType[]; } /** @@ -135,8 +134,8 @@ export interface PeriodSDKType { * periodically vests by unlocking coins during each specified period. */ export interface PeriodicVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; vestingPeriods: Period[]; } export interface PeriodicVestingAccountProtoMsg { @@ -149,8 +148,8 @@ export interface PeriodicVestingAccountProtoMsg { */ export interface PeriodicVestingAccountAmino { base_vesting_account?: BaseVestingAccountAmino; - start_time: string; - vesting_periods: PeriodAmino[]; + start_time?: string; + vesting_periods?: PeriodAmino[]; } export interface PeriodicVestingAccountAminoMsg { type: "cosmos-sdk/PeriodicVestingAccount"; @@ -161,8 +160,8 @@ export interface PeriodicVestingAccountAminoMsg { * periodically vests by unlocking coins during each specified period. */ export interface PeriodicVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; vesting_periods: PeriodSDKType[]; } /** @@ -173,7 +172,7 @@ export interface PeriodicVestingAccountSDKType { * Since: cosmos-sdk 0.43 */ export interface PermanentLockedAccount { - baseVestingAccount: BaseVestingAccount; + baseVestingAccount?: BaseVestingAccount; } export interface PermanentLockedAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; @@ -201,11 +200,12 @@ export interface PermanentLockedAccountAminoMsg { * Since: cosmos-sdk 0.43 */ export interface PermanentLockedAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; + base_vesting_account?: BaseVestingAccountSDKType; } export declare const BaseVestingAccount: { - encode(message: BaseVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BaseVestingAccount; + typeUrl: string; + encode(message: BaseVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount; fromJSON(object: any): BaseVestingAccount; toJSON(message: BaseVestingAccount): unknown; fromPartial(object: Partial): BaseVestingAccount; @@ -218,8 +218,9 @@ export declare const BaseVestingAccount: { toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg; }; export declare const ContinuousVestingAccount: { - encode(message: ContinuousVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContinuousVestingAccount; + typeUrl: string; + encode(message: ContinuousVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount; fromJSON(object: any): ContinuousVestingAccount; toJSON(message: ContinuousVestingAccount): unknown; fromPartial(object: Partial): ContinuousVestingAccount; @@ -232,8 +233,9 @@ export declare const ContinuousVestingAccount: { toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg; }; export declare const DelayedVestingAccount: { - encode(message: DelayedVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelayedVestingAccount; + typeUrl: string; + encode(message: DelayedVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount; fromJSON(object: any): DelayedVestingAccount; toJSON(message: DelayedVestingAccount): unknown; fromPartial(object: Partial): DelayedVestingAccount; @@ -246,8 +248,9 @@ export declare const DelayedVestingAccount: { toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg; }; export declare const Period: { - encode(message: Period, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Period; + typeUrl: string; + encode(message: Period, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Period; fromJSON(object: any): Period; toJSON(message: Period): unknown; fromPartial(object: Partial): Period; @@ -260,8 +263,9 @@ export declare const Period: { toProtoMsg(message: Period): PeriodProtoMsg; }; export declare const PeriodicVestingAccount: { - encode(message: PeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicVestingAccount; + typeUrl: string; + encode(message: PeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount; fromJSON(object: any): PeriodicVestingAccount; toJSON(message: PeriodicVestingAccount): unknown; fromPartial(object: Partial): PeriodicVestingAccount; @@ -274,8 +278,9 @@ export declare const PeriodicVestingAccount: { toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg; }; export declare const PermanentLockedAccount: { - encode(message: PermanentLockedAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PermanentLockedAccount; + typeUrl: string; + encode(message: PermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount; fromJSON(object: any): PermanentLockedAccount; toJSON(message: PermanentLockedAccount): unknown; fromPartial(object: Partial): PermanentLockedAccount; diff --git a/packages/api/types/codegen/cosmos_proto/bundle.d.ts b/packages/api/types/codegen/cosmos_proto/bundle.d.ts index aa94a24b..d2e5d12f 100644 --- a/packages/api/types/codegen/cosmos_proto/bundle.d.ts +++ b/packages/api/types/codegen/cosmos_proto/bundle.d.ts @@ -6,8 +6,9 @@ export declare const cosmos_proto: { ScalarTypeSDKType: typeof _1.ScalarType; ScalarTypeAmino: typeof _1.ScalarType; InterfaceDescriptor: { - encode(message: _1.InterfaceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _1.InterfaceDescriptor; + typeUrl: string; + encode(message: _1.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _1.InterfaceDescriptor; fromJSON(object: any): _1.InterfaceDescriptor; toJSON(message: _1.InterfaceDescriptor): unknown; fromPartial(object: Partial<_1.InterfaceDescriptor>): _1.InterfaceDescriptor; @@ -19,8 +20,9 @@ export declare const cosmos_proto: { toProtoMsg(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorProtoMsg; }; ScalarDescriptor: { - encode(message: _1.ScalarDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _1.ScalarDescriptor; + typeUrl: string; + encode(message: _1.ScalarDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _1.ScalarDescriptor; fromJSON(object: any): _1.ScalarDescriptor; toJSON(message: _1.ScalarDescriptor): unknown; fromPartial(object: Partial<_1.ScalarDescriptor>): _1.ScalarDescriptor; diff --git a/packages/api/types/codegen/cosmos_proto/cosmos.d.ts b/packages/api/types/codegen/cosmos_proto/cosmos.d.ts index 4e1cf240..4cd0b705 100644 --- a/packages/api/types/codegen/cosmos_proto/cosmos.d.ts +++ b/packages/api/types/codegen/cosmos_proto/cosmos.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../binary"; export declare enum ScalarType { SCALAR_TYPE_UNSPECIFIED = 0, SCALAR_TYPE_STRING = 1, @@ -42,12 +42,12 @@ export interface InterfaceDescriptorAmino { * package.name, ex. for the package a.b and interface named C, the * fully-qualified name will be a.b.C. */ - name: string; + name?: string; /** * description is a human-readable description of the interface and its * purpose. */ - description: string; + description?: string; } export interface InterfaceDescriptorAminoMsg { type: "/cosmos_proto.InterfaceDescriptor"; @@ -112,20 +112,20 @@ export interface ScalarDescriptorAmino { * package.name, ex. for the package a.b and scalar named C, the * fully-qualified name will be a.b.C. */ - name: string; + name?: string; /** * description is a human-readable description of the scalar and its * encoding format. For instance a big integer or decimal scalar should * specify precisely the expected encoding format. */ - description: string; + description?: string; /** * field_type is the type of field with which this scalar can be used. * Scalars can be used with one and only one type of field so that * encoding standards and simple and clear. Currently only string and * bytes fields are supported for scalars. */ - field_type: ScalarType[]; + field_type?: ScalarType[]; } export interface ScalarDescriptorAminoMsg { type: "/cosmos_proto.ScalarDescriptor"; @@ -146,8 +146,9 @@ export interface ScalarDescriptorSDKType { field_type: ScalarType[]; } export declare const InterfaceDescriptor: { - encode(message: InterfaceDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceDescriptor; + typeUrl: string; + encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; fromJSON(object: any): InterfaceDescriptor; toJSON(message: InterfaceDescriptor): unknown; fromPartial(object: Partial): InterfaceDescriptor; @@ -159,8 +160,9 @@ export declare const InterfaceDescriptor: { toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; }; export declare const ScalarDescriptor: { - encode(message: ScalarDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ScalarDescriptor; + typeUrl: string; + encode(message: ScalarDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor; fromJSON(object: any): ScalarDescriptor; toJSON(message: ScalarDescriptor): unknown; fromPartial(object: Partial): ScalarDescriptor; diff --git a/packages/api/types/codegen/google/bundle.d.ts b/packages/api/types/codegen/google/bundle.d.ts index c551af3d..cd1d0ec5 100644 --- a/packages/api/types/codegen/google/bundle.d.ts +++ b/packages/api/types/codegen/google/bundle.d.ts @@ -1,429 +1,503 @@ -import * as _100 from "./protobuf/descriptor"; -import * as _101 from "./protobuf/any"; -import * as _102 from "./protobuf/timestamp"; -import * as _103 from "./protobuf/duration"; +import * as _100 from "./api/http"; +import * as _101 from "./protobuf/descriptor"; +import * as _102 from "./protobuf/any"; +import * as _103 from "./protobuf/timestamp"; +import * as _104 from "./protobuf/duration"; export declare namespace google { - const api: {}; + const api: { + Http: { + typeUrl: string; + encode(message: _100.Http, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.Http; + fromJSON(object: any): _100.Http; + toJSON(message: _100.Http): unknown; + fromPartial(object: Partial<_100.Http>): _100.Http; + fromAmino(object: _100.HttpAmino): _100.Http; + toAmino(message: _100.Http): _100.HttpAmino; + fromAminoMsg(object: _100.HttpAminoMsg): _100.Http; + fromProtoMsg(message: _100.HttpProtoMsg): _100.Http; + toProto(message: _100.Http): Uint8Array; + toProtoMsg(message: _100.Http): _100.HttpProtoMsg; + }; + HttpRule: { + typeUrl: string; + encode(message: _100.HttpRule, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.HttpRule; + fromJSON(object: any): _100.HttpRule; + toJSON(message: _100.HttpRule): unknown; + fromPartial(object: Partial<_100.HttpRule>): _100.HttpRule; + fromAmino(object: _100.HttpRuleAmino): _100.HttpRule; + toAmino(message: _100.HttpRule): _100.HttpRuleAmino; + fromAminoMsg(object: _100.HttpRuleAminoMsg): _100.HttpRule; + fromProtoMsg(message: _100.HttpRuleProtoMsg): _100.HttpRule; + toProto(message: _100.HttpRule): Uint8Array; + toProtoMsg(message: _100.HttpRule): _100.HttpRuleProtoMsg; + }; + CustomHttpPattern: { + typeUrl: string; + encode(message: _100.CustomHttpPattern, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.CustomHttpPattern; + fromJSON(object: any): _100.CustomHttpPattern; + toJSON(message: _100.CustomHttpPattern): unknown; + fromPartial(object: Partial<_100.CustomHttpPattern>): _100.CustomHttpPattern; + fromAmino(object: _100.CustomHttpPatternAmino): _100.CustomHttpPattern; + toAmino(message: _100.CustomHttpPattern): _100.CustomHttpPatternAmino; + fromAminoMsg(object: _100.CustomHttpPatternAminoMsg): _100.CustomHttpPattern; + fromProtoMsg(message: _100.CustomHttpPatternProtoMsg): _100.CustomHttpPattern; + toProto(message: _100.CustomHttpPattern): Uint8Array; + toProtoMsg(message: _100.CustomHttpPattern): _100.CustomHttpPatternProtoMsg; + }; + }; const protobuf: { Duration: { - encode(message: _103.Duration, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _103.Duration; - fromJSON(object: any): _103.Duration; - toJSON(message: _103.Duration): unknown; - fromPartial(object: Partial<_103.Duration>): _103.Duration; - fromAmino(object: string): _103.Duration; - toAmino(message: _103.Duration): string; - fromAminoMsg(object: _103.DurationAminoMsg): _103.Duration; - fromProtoMsg(message: _103.DurationProtoMsg): _103.Duration; - toProto(message: _103.Duration): Uint8Array; - toProtoMsg(message: _103.Duration): _103.DurationProtoMsg; + typeUrl: string; + encode(message: _104.Duration, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _104.Duration; + fromJSON(object: any): _104.Duration; + toJSON(message: _104.Duration): unknown; + fromPartial(object: Partial<_104.Duration>): _104.Duration; + fromAmino(object: string): _104.Duration; + toAmino(message: _104.Duration): string; + fromAminoMsg(object: _104.DurationAminoMsg): _104.Duration; + fromProtoMsg(message: _104.DurationProtoMsg): _104.Duration; + toProto(message: _104.Duration): Uint8Array; + toProtoMsg(message: _104.Duration): _104.DurationProtoMsg; }; Timestamp: { - encode(message: _102.Timestamp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _102.Timestamp; - fromJSON(object: any): _102.Timestamp; - toJSON(message: _102.Timestamp): unknown; - fromPartial(object: Partial<_102.Timestamp>): _102.Timestamp; - fromAmino(object: string): _102.Timestamp; - toAmino(message: _102.Timestamp): string; - fromAminoMsg(object: _102.TimestampAminoMsg): _102.Timestamp; - fromProtoMsg(message: _102.TimestampProtoMsg): _102.Timestamp; - toProto(message: _102.Timestamp): Uint8Array; - toProtoMsg(message: _102.Timestamp): _102.TimestampProtoMsg; + typeUrl: string; + encode(message: _103.Timestamp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _103.Timestamp; + fromJSON(object: any): _103.Timestamp; + toJSON(message: _103.Timestamp): unknown; + fromPartial(object: Partial<_103.Timestamp>): _103.Timestamp; + fromAmino(object: string): _103.Timestamp; + toAmino(message: _103.Timestamp): string; + fromAminoMsg(object: _103.TimestampAminoMsg): _103.Timestamp; + fromProtoMsg(message: _103.TimestampProtoMsg): _103.Timestamp; + toProto(message: _103.Timestamp): Uint8Array; + toProtoMsg(message: _103.Timestamp): _103.TimestampProtoMsg; }; Any: { - encode(message: _101.Any, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _101.Any; - fromJSON(object: any): _101.Any; - toJSON(message: _101.Any): unknown; - fromPartial(object: Partial<_101.Any>): _101.Any; - fromAmino(object: _101.AnyAmino): _101.Any; - toAmino(message: _101.Any): _101.AnyAmino; - fromAminoMsg(object: _101.AnyAminoMsg): _101.Any; - fromProtoMsg(message: _101.AnyProtoMsg): _101.Any; - toProto(message: _101.Any): Uint8Array; - toProtoMsg(message: _101.Any): _101.AnyProtoMsg; - }; - fieldDescriptorProto_TypeFromJSON(object: any): _100.FieldDescriptorProto_Type; - fieldDescriptorProto_TypeToJSON(object: _100.FieldDescriptorProto_Type): string; - fieldDescriptorProto_LabelFromJSON(object: any): _100.FieldDescriptorProto_Label; - fieldDescriptorProto_LabelToJSON(object: _100.FieldDescriptorProto_Label): string; - fileOptions_OptimizeModeFromJSON(object: any): _100.FileOptions_OptimizeMode; - fileOptions_OptimizeModeToJSON(object: _100.FileOptions_OptimizeMode): string; - fieldOptions_CTypeFromJSON(object: any): _100.FieldOptions_CType; - fieldOptions_CTypeToJSON(object: _100.FieldOptions_CType): string; - fieldOptions_JSTypeFromJSON(object: any): _100.FieldOptions_JSType; - fieldOptions_JSTypeToJSON(object: _100.FieldOptions_JSType): string; - methodOptions_IdempotencyLevelFromJSON(object: any): _100.MethodOptions_IdempotencyLevel; - methodOptions_IdempotencyLevelToJSON(object: _100.MethodOptions_IdempotencyLevel): string; - FieldDescriptorProto_Type: typeof _100.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeSDKType: typeof _100.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeAmino: typeof _100.FieldDescriptorProto_Type; - FieldDescriptorProto_Label: typeof _100.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelSDKType: typeof _100.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelAmino: typeof _100.FieldDescriptorProto_Label; - FileOptions_OptimizeMode: typeof _100.FileOptions_OptimizeMode; - FileOptions_OptimizeModeSDKType: typeof _100.FileOptions_OptimizeMode; - FileOptions_OptimizeModeAmino: typeof _100.FileOptions_OptimizeMode; - FieldOptions_CType: typeof _100.FieldOptions_CType; - FieldOptions_CTypeSDKType: typeof _100.FieldOptions_CType; - FieldOptions_CTypeAmino: typeof _100.FieldOptions_CType; - FieldOptions_JSType: typeof _100.FieldOptions_JSType; - FieldOptions_JSTypeSDKType: typeof _100.FieldOptions_JSType; - FieldOptions_JSTypeAmino: typeof _100.FieldOptions_JSType; - MethodOptions_IdempotencyLevel: typeof _100.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelSDKType: typeof _100.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelAmino: typeof _100.MethodOptions_IdempotencyLevel; + typeUrl: string; + encode(message: _102.Any, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _102.Any; + fromJSON(object: any): _102.Any; + toJSON(message: _102.Any): unknown; + fromPartial(object: Partial<_102.Any>): _102.Any; + fromAmino(object: _102.AnyAmino): _102.Any; + toAmino(message: _102.Any): _102.AnyAmino; + fromAminoMsg(object: _102.AnyAminoMsg): _102.Any; + fromProtoMsg(message: _102.AnyProtoMsg): _102.Any; + toProto(message: _102.Any): Uint8Array; + toProtoMsg(message: _102.Any): _102.AnyProtoMsg; + }; + fieldDescriptorProto_TypeFromJSON(object: any): _101.FieldDescriptorProto_Type; + fieldDescriptorProto_TypeToJSON(object: _101.FieldDescriptorProto_Type): string; + fieldDescriptorProto_LabelFromJSON(object: any): _101.FieldDescriptorProto_Label; + fieldDescriptorProto_LabelToJSON(object: _101.FieldDescriptorProto_Label): string; + fileOptions_OptimizeModeFromJSON(object: any): _101.FileOptions_OptimizeMode; + fileOptions_OptimizeModeToJSON(object: _101.FileOptions_OptimizeMode): string; + fieldOptions_CTypeFromJSON(object: any): _101.FieldOptions_CType; + fieldOptions_CTypeToJSON(object: _101.FieldOptions_CType): string; + fieldOptions_JSTypeFromJSON(object: any): _101.FieldOptions_JSType; + fieldOptions_JSTypeToJSON(object: _101.FieldOptions_JSType): string; + methodOptions_IdempotencyLevelFromJSON(object: any): _101.MethodOptions_IdempotencyLevel; + methodOptions_IdempotencyLevelToJSON(object: _101.MethodOptions_IdempotencyLevel): string; + FieldDescriptorProto_Type: typeof _101.FieldDescriptorProto_Type; + FieldDescriptorProto_TypeSDKType: typeof _101.FieldDescriptorProto_Type; + FieldDescriptorProto_TypeAmino: typeof _101.FieldDescriptorProto_Type; + FieldDescriptorProto_Label: typeof _101.FieldDescriptorProto_Label; + FieldDescriptorProto_LabelSDKType: typeof _101.FieldDescriptorProto_Label; + FieldDescriptorProto_LabelAmino: typeof _101.FieldDescriptorProto_Label; + FileOptions_OptimizeMode: typeof _101.FileOptions_OptimizeMode; + FileOptions_OptimizeModeSDKType: typeof _101.FileOptions_OptimizeMode; + FileOptions_OptimizeModeAmino: typeof _101.FileOptions_OptimizeMode; + FieldOptions_CType: typeof _101.FieldOptions_CType; + FieldOptions_CTypeSDKType: typeof _101.FieldOptions_CType; + FieldOptions_CTypeAmino: typeof _101.FieldOptions_CType; + FieldOptions_JSType: typeof _101.FieldOptions_JSType; + FieldOptions_JSTypeSDKType: typeof _101.FieldOptions_JSType; + FieldOptions_JSTypeAmino: typeof _101.FieldOptions_JSType; + MethodOptions_IdempotencyLevel: typeof _101.MethodOptions_IdempotencyLevel; + MethodOptions_IdempotencyLevelSDKType: typeof _101.MethodOptions_IdempotencyLevel; + MethodOptions_IdempotencyLevelAmino: typeof _101.MethodOptions_IdempotencyLevel; FileDescriptorSet: { - encode(message: _100.FileDescriptorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.FileDescriptorSet; - fromJSON(object: any): _100.FileDescriptorSet; - toJSON(message: _100.FileDescriptorSet): unknown; - fromPartial(object: Partial<_100.FileDescriptorSet>): _100.FileDescriptorSet; - fromAmino(object: _100.FileDescriptorSetAmino): _100.FileDescriptorSet; - toAmino(message: _100.FileDescriptorSet): _100.FileDescriptorSetAmino; - fromAminoMsg(object: _100.FileDescriptorSetAminoMsg): _100.FileDescriptorSet; - fromProtoMsg(message: _100.FileDescriptorSetProtoMsg): _100.FileDescriptorSet; - toProto(message: _100.FileDescriptorSet): Uint8Array; - toProtoMsg(message: _100.FileDescriptorSet): _100.FileDescriptorSetProtoMsg; + typeUrl: string; + encode(message: _101.FileDescriptorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileDescriptorSet; + fromJSON(object: any): _101.FileDescriptorSet; + toJSON(message: _101.FileDescriptorSet): unknown; + fromPartial(object: Partial<_101.FileDescriptorSet>): _101.FileDescriptorSet; + fromAmino(object: _101.FileDescriptorSetAmino): _101.FileDescriptorSet; + toAmino(message: _101.FileDescriptorSet): _101.FileDescriptorSetAmino; + fromAminoMsg(object: _101.FileDescriptorSetAminoMsg): _101.FileDescriptorSet; + fromProtoMsg(message: _101.FileDescriptorSetProtoMsg): _101.FileDescriptorSet; + toProto(message: _101.FileDescriptorSet): Uint8Array; + toProtoMsg(message: _101.FileDescriptorSet): _101.FileDescriptorSetProtoMsg; }; FileDescriptorProto: { - encode(message: _100.FileDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.FileDescriptorProto; - fromJSON(object: any): _100.FileDescriptorProto; - toJSON(message: _100.FileDescriptorProto): unknown; - fromPartial(object: Partial<_100.FileDescriptorProto>): _100.FileDescriptorProto; - fromAmino(object: _100.FileDescriptorProtoAmino): _100.FileDescriptorProto; - toAmino(message: _100.FileDescriptorProto): _100.FileDescriptorProtoAmino; - fromAminoMsg(object: _100.FileDescriptorProtoAminoMsg): _100.FileDescriptorProto; - fromProtoMsg(message: _100.FileDescriptorProtoProtoMsg): _100.FileDescriptorProto; - toProto(message: _100.FileDescriptorProto): Uint8Array; - toProtoMsg(message: _100.FileDescriptorProto): _100.FileDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.FileDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileDescriptorProto; + fromJSON(object: any): _101.FileDescriptorProto; + toJSON(message: _101.FileDescriptorProto): unknown; + fromPartial(object: Partial<_101.FileDescriptorProto>): _101.FileDescriptorProto; + fromAmino(object: _101.FileDescriptorProtoAmino): _101.FileDescriptorProto; + toAmino(message: _101.FileDescriptorProto): _101.FileDescriptorProtoAmino; + fromAminoMsg(object: _101.FileDescriptorProtoAminoMsg): _101.FileDescriptorProto; + fromProtoMsg(message: _101.FileDescriptorProtoProtoMsg): _101.FileDescriptorProto; + toProto(message: _101.FileDescriptorProto): Uint8Array; + toProtoMsg(message: _101.FileDescriptorProto): _101.FileDescriptorProtoProtoMsg; }; DescriptorProto: { - encode(message: _100.DescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.DescriptorProto; - fromJSON(object: any): _100.DescriptorProto; - toJSON(message: _100.DescriptorProto): unknown; - fromPartial(object: Partial<_100.DescriptorProto>): _100.DescriptorProto; - fromAmino(object: _100.DescriptorProtoAmino): _100.DescriptorProto; - toAmino(message: _100.DescriptorProto): _100.DescriptorProtoAmino; - fromAminoMsg(object: _100.DescriptorProtoAminoMsg): _100.DescriptorProto; - fromProtoMsg(message: _100.DescriptorProtoProtoMsg): _100.DescriptorProto; - toProto(message: _100.DescriptorProto): Uint8Array; - toProtoMsg(message: _100.DescriptorProto): _100.DescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.DescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto; + fromJSON(object: any): _101.DescriptorProto; + toJSON(message: _101.DescriptorProto): unknown; + fromPartial(object: Partial<_101.DescriptorProto>): _101.DescriptorProto; + fromAmino(object: _101.DescriptorProtoAmino): _101.DescriptorProto; + toAmino(message: _101.DescriptorProto): _101.DescriptorProtoAmino; + fromAminoMsg(object: _101.DescriptorProtoAminoMsg): _101.DescriptorProto; + fromProtoMsg(message: _101.DescriptorProtoProtoMsg): _101.DescriptorProto; + toProto(message: _101.DescriptorProto): Uint8Array; + toProtoMsg(message: _101.DescriptorProto): _101.DescriptorProtoProtoMsg; }; DescriptorProto_ExtensionRange: { - encode(message: _100.DescriptorProto_ExtensionRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.DescriptorProto_ExtensionRange; - fromJSON(object: any): _100.DescriptorProto_ExtensionRange; - toJSON(message: _100.DescriptorProto_ExtensionRange): unknown; - fromPartial(object: Partial<_100.DescriptorProto_ExtensionRange>): _100.DescriptorProto_ExtensionRange; - fromAmino(object: _100.DescriptorProto_ExtensionRangeAmino): _100.DescriptorProto_ExtensionRange; - toAmino(message: _100.DescriptorProto_ExtensionRange): _100.DescriptorProto_ExtensionRangeAmino; - fromAminoMsg(object: _100.DescriptorProto_ExtensionRangeAminoMsg): _100.DescriptorProto_ExtensionRange; - fromProtoMsg(message: _100.DescriptorProto_ExtensionRangeProtoMsg): _100.DescriptorProto_ExtensionRange; - toProto(message: _100.DescriptorProto_ExtensionRange): Uint8Array; - toProtoMsg(message: _100.DescriptorProto_ExtensionRange): _100.DescriptorProto_ExtensionRangeProtoMsg; + typeUrl: string; + encode(message: _101.DescriptorProto_ExtensionRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto_ExtensionRange; + fromJSON(object: any): _101.DescriptorProto_ExtensionRange; + toJSON(message: _101.DescriptorProto_ExtensionRange): unknown; + fromPartial(object: Partial<_101.DescriptorProto_ExtensionRange>): _101.DescriptorProto_ExtensionRange; + fromAmino(object: _101.DescriptorProto_ExtensionRangeAmino): _101.DescriptorProto_ExtensionRange; + toAmino(message: _101.DescriptorProto_ExtensionRange): _101.DescriptorProto_ExtensionRangeAmino; + fromAminoMsg(object: _101.DescriptorProto_ExtensionRangeAminoMsg): _101.DescriptorProto_ExtensionRange; + fromProtoMsg(message: _101.DescriptorProto_ExtensionRangeProtoMsg): _101.DescriptorProto_ExtensionRange; + toProto(message: _101.DescriptorProto_ExtensionRange): Uint8Array; + toProtoMsg(message: _101.DescriptorProto_ExtensionRange): _101.DescriptorProto_ExtensionRangeProtoMsg; }; DescriptorProto_ReservedRange: { - encode(message: _100.DescriptorProto_ReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.DescriptorProto_ReservedRange; - fromJSON(object: any): _100.DescriptorProto_ReservedRange; - toJSON(message: _100.DescriptorProto_ReservedRange): unknown; - fromPartial(object: Partial<_100.DescriptorProto_ReservedRange>): _100.DescriptorProto_ReservedRange; - fromAmino(object: _100.DescriptorProto_ReservedRangeAmino): _100.DescriptorProto_ReservedRange; - toAmino(message: _100.DescriptorProto_ReservedRange): _100.DescriptorProto_ReservedRangeAmino; - fromAminoMsg(object: _100.DescriptorProto_ReservedRangeAminoMsg): _100.DescriptorProto_ReservedRange; - fromProtoMsg(message: _100.DescriptorProto_ReservedRangeProtoMsg): _100.DescriptorProto_ReservedRange; - toProto(message: _100.DescriptorProto_ReservedRange): Uint8Array; - toProtoMsg(message: _100.DescriptorProto_ReservedRange): _100.DescriptorProto_ReservedRangeProtoMsg; + typeUrl: string; + encode(message: _101.DescriptorProto_ReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto_ReservedRange; + fromJSON(object: any): _101.DescriptorProto_ReservedRange; + toJSON(message: _101.DescriptorProto_ReservedRange): unknown; + fromPartial(object: Partial<_101.DescriptorProto_ReservedRange>): _101.DescriptorProto_ReservedRange; + fromAmino(object: _101.DescriptorProto_ReservedRangeAmino): _101.DescriptorProto_ReservedRange; + toAmino(message: _101.DescriptorProto_ReservedRange): _101.DescriptorProto_ReservedRangeAmino; + fromAminoMsg(object: _101.DescriptorProto_ReservedRangeAminoMsg): _101.DescriptorProto_ReservedRange; + fromProtoMsg(message: _101.DescriptorProto_ReservedRangeProtoMsg): _101.DescriptorProto_ReservedRange; + toProto(message: _101.DescriptorProto_ReservedRange): Uint8Array; + toProtoMsg(message: _101.DescriptorProto_ReservedRange): _101.DescriptorProto_ReservedRangeProtoMsg; }; ExtensionRangeOptions: { - encode(message: _100.ExtensionRangeOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.ExtensionRangeOptions; - fromJSON(object: any): _100.ExtensionRangeOptions; - toJSON(message: _100.ExtensionRangeOptions): unknown; - fromPartial(object: Partial<_100.ExtensionRangeOptions>): _100.ExtensionRangeOptions; - fromAmino(object: _100.ExtensionRangeOptionsAmino): _100.ExtensionRangeOptions; - toAmino(message: _100.ExtensionRangeOptions): _100.ExtensionRangeOptionsAmino; - fromAminoMsg(object: _100.ExtensionRangeOptionsAminoMsg): _100.ExtensionRangeOptions; - fromProtoMsg(message: _100.ExtensionRangeOptionsProtoMsg): _100.ExtensionRangeOptions; - toProto(message: _100.ExtensionRangeOptions): Uint8Array; - toProtoMsg(message: _100.ExtensionRangeOptions): _100.ExtensionRangeOptionsProtoMsg; + typeUrl: string; + encode(message: _101.ExtensionRangeOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ExtensionRangeOptions; + fromJSON(object: any): _101.ExtensionRangeOptions; + toJSON(message: _101.ExtensionRangeOptions): unknown; + fromPartial(object: Partial<_101.ExtensionRangeOptions>): _101.ExtensionRangeOptions; + fromAmino(object: _101.ExtensionRangeOptionsAmino): _101.ExtensionRangeOptions; + toAmino(message: _101.ExtensionRangeOptions): _101.ExtensionRangeOptionsAmino; + fromAminoMsg(object: _101.ExtensionRangeOptionsAminoMsg): _101.ExtensionRangeOptions; + fromProtoMsg(message: _101.ExtensionRangeOptionsProtoMsg): _101.ExtensionRangeOptions; + toProto(message: _101.ExtensionRangeOptions): Uint8Array; + toProtoMsg(message: _101.ExtensionRangeOptions): _101.ExtensionRangeOptionsProtoMsg; }; FieldDescriptorProto: { - encode(message: _100.FieldDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.FieldDescriptorProto; - fromJSON(object: any): _100.FieldDescriptorProto; - toJSON(message: _100.FieldDescriptorProto): unknown; - fromPartial(object: Partial<_100.FieldDescriptorProto>): _100.FieldDescriptorProto; - fromAmino(object: _100.FieldDescriptorProtoAmino): _100.FieldDescriptorProto; - toAmino(message: _100.FieldDescriptorProto): _100.FieldDescriptorProtoAmino; - fromAminoMsg(object: _100.FieldDescriptorProtoAminoMsg): _100.FieldDescriptorProto; - fromProtoMsg(message: _100.FieldDescriptorProtoProtoMsg): _100.FieldDescriptorProto; - toProto(message: _100.FieldDescriptorProto): Uint8Array; - toProtoMsg(message: _100.FieldDescriptorProto): _100.FieldDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.FieldDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FieldDescriptorProto; + fromJSON(object: any): _101.FieldDescriptorProto; + toJSON(message: _101.FieldDescriptorProto): unknown; + fromPartial(object: Partial<_101.FieldDescriptorProto>): _101.FieldDescriptorProto; + fromAmino(object: _101.FieldDescriptorProtoAmino): _101.FieldDescriptorProto; + toAmino(message: _101.FieldDescriptorProto): _101.FieldDescriptorProtoAmino; + fromAminoMsg(object: _101.FieldDescriptorProtoAminoMsg): _101.FieldDescriptorProto; + fromProtoMsg(message: _101.FieldDescriptorProtoProtoMsg): _101.FieldDescriptorProto; + toProto(message: _101.FieldDescriptorProto): Uint8Array; + toProtoMsg(message: _101.FieldDescriptorProto): _101.FieldDescriptorProtoProtoMsg; }; OneofDescriptorProto: { - encode(message: _100.OneofDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.OneofDescriptorProto; - fromJSON(object: any): _100.OneofDescriptorProto; - toJSON(message: _100.OneofDescriptorProto): unknown; - fromPartial(object: Partial<_100.OneofDescriptorProto>): _100.OneofDescriptorProto; - fromAmino(object: _100.OneofDescriptorProtoAmino): _100.OneofDescriptorProto; - toAmino(message: _100.OneofDescriptorProto): _100.OneofDescriptorProtoAmino; - fromAminoMsg(object: _100.OneofDescriptorProtoAminoMsg): _100.OneofDescriptorProto; - fromProtoMsg(message: _100.OneofDescriptorProtoProtoMsg): _100.OneofDescriptorProto; - toProto(message: _100.OneofDescriptorProto): Uint8Array; - toProtoMsg(message: _100.OneofDescriptorProto): _100.OneofDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.OneofDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.OneofDescriptorProto; + fromJSON(object: any): _101.OneofDescriptorProto; + toJSON(message: _101.OneofDescriptorProto): unknown; + fromPartial(object: Partial<_101.OneofDescriptorProto>): _101.OneofDescriptorProto; + fromAmino(object: _101.OneofDescriptorProtoAmino): _101.OneofDescriptorProto; + toAmino(message: _101.OneofDescriptorProto): _101.OneofDescriptorProtoAmino; + fromAminoMsg(object: _101.OneofDescriptorProtoAminoMsg): _101.OneofDescriptorProto; + fromProtoMsg(message: _101.OneofDescriptorProtoProtoMsg): _101.OneofDescriptorProto; + toProto(message: _101.OneofDescriptorProto): Uint8Array; + toProtoMsg(message: _101.OneofDescriptorProto): _101.OneofDescriptorProtoProtoMsg; }; EnumDescriptorProto: { - encode(message: _100.EnumDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.EnumDescriptorProto; - fromJSON(object: any): _100.EnumDescriptorProto; - toJSON(message: _100.EnumDescriptorProto): unknown; - fromPartial(object: Partial<_100.EnumDescriptorProto>): _100.EnumDescriptorProto; - fromAmino(object: _100.EnumDescriptorProtoAmino): _100.EnumDescriptorProto; - toAmino(message: _100.EnumDescriptorProto): _100.EnumDescriptorProtoAmino; - fromAminoMsg(object: _100.EnumDescriptorProtoAminoMsg): _100.EnumDescriptorProto; - fromProtoMsg(message: _100.EnumDescriptorProtoProtoMsg): _100.EnumDescriptorProto; - toProto(message: _100.EnumDescriptorProto): Uint8Array; - toProtoMsg(message: _100.EnumDescriptorProto): _100.EnumDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.EnumDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumDescriptorProto; + fromJSON(object: any): _101.EnumDescriptorProto; + toJSON(message: _101.EnumDescriptorProto): unknown; + fromPartial(object: Partial<_101.EnumDescriptorProto>): _101.EnumDescriptorProto; + fromAmino(object: _101.EnumDescriptorProtoAmino): _101.EnumDescriptorProto; + toAmino(message: _101.EnumDescriptorProto): _101.EnumDescriptorProtoAmino; + fromAminoMsg(object: _101.EnumDescriptorProtoAminoMsg): _101.EnumDescriptorProto; + fromProtoMsg(message: _101.EnumDescriptorProtoProtoMsg): _101.EnumDescriptorProto; + toProto(message: _101.EnumDescriptorProto): Uint8Array; + toProtoMsg(message: _101.EnumDescriptorProto): _101.EnumDescriptorProtoProtoMsg; }; EnumDescriptorProto_EnumReservedRange: { - encode(message: _100.EnumDescriptorProto_EnumReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.EnumDescriptorProto_EnumReservedRange; - fromJSON(object: any): _100.EnumDescriptorProto_EnumReservedRange; - toJSON(message: _100.EnumDescriptorProto_EnumReservedRange): unknown; - fromPartial(object: Partial<_100.EnumDescriptorProto_EnumReservedRange>): _100.EnumDescriptorProto_EnumReservedRange; - fromAmino(object: _100.EnumDescriptorProto_EnumReservedRangeAmino): _100.EnumDescriptorProto_EnumReservedRange; - toAmino(message: _100.EnumDescriptorProto_EnumReservedRange): _100.EnumDescriptorProto_EnumReservedRangeAmino; - fromAminoMsg(object: _100.EnumDescriptorProto_EnumReservedRangeAminoMsg): _100.EnumDescriptorProto_EnumReservedRange; - fromProtoMsg(message: _100.EnumDescriptorProto_EnumReservedRangeProtoMsg): _100.EnumDescriptorProto_EnumReservedRange; - toProto(message: _100.EnumDescriptorProto_EnumReservedRange): Uint8Array; - toProtoMsg(message: _100.EnumDescriptorProto_EnumReservedRange): _100.EnumDescriptorProto_EnumReservedRangeProtoMsg; + typeUrl: string; + encode(message: _101.EnumDescriptorProto_EnumReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumDescriptorProto_EnumReservedRange; + fromJSON(object: any): _101.EnumDescriptorProto_EnumReservedRange; + toJSON(message: _101.EnumDescriptorProto_EnumReservedRange): unknown; + fromPartial(object: Partial<_101.EnumDescriptorProto_EnumReservedRange>): _101.EnumDescriptorProto_EnumReservedRange; + fromAmino(object: _101.EnumDescriptorProto_EnumReservedRangeAmino): _101.EnumDescriptorProto_EnumReservedRange; + toAmino(message: _101.EnumDescriptorProto_EnumReservedRange): _101.EnumDescriptorProto_EnumReservedRangeAmino; + fromAminoMsg(object: _101.EnumDescriptorProto_EnumReservedRangeAminoMsg): _101.EnumDescriptorProto_EnumReservedRange; + fromProtoMsg(message: _101.EnumDescriptorProto_EnumReservedRangeProtoMsg): _101.EnumDescriptorProto_EnumReservedRange; + toProto(message: _101.EnumDescriptorProto_EnumReservedRange): Uint8Array; + toProtoMsg(message: _101.EnumDescriptorProto_EnumReservedRange): _101.EnumDescriptorProto_EnumReservedRangeProtoMsg; }; EnumValueDescriptorProto: { - encode(message: _100.EnumValueDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.EnumValueDescriptorProto; - fromJSON(object: any): _100.EnumValueDescriptorProto; - toJSON(message: _100.EnumValueDescriptorProto): unknown; - fromPartial(object: Partial<_100.EnumValueDescriptorProto>): _100.EnumValueDescriptorProto; - fromAmino(object: _100.EnumValueDescriptorProtoAmino): _100.EnumValueDescriptorProto; - toAmino(message: _100.EnumValueDescriptorProto): _100.EnumValueDescriptorProtoAmino; - fromAminoMsg(object: _100.EnumValueDescriptorProtoAminoMsg): _100.EnumValueDescriptorProto; - fromProtoMsg(message: _100.EnumValueDescriptorProtoProtoMsg): _100.EnumValueDescriptorProto; - toProto(message: _100.EnumValueDescriptorProto): Uint8Array; - toProtoMsg(message: _100.EnumValueDescriptorProto): _100.EnumValueDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.EnumValueDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumValueDescriptorProto; + fromJSON(object: any): _101.EnumValueDescriptorProto; + toJSON(message: _101.EnumValueDescriptorProto): unknown; + fromPartial(object: Partial<_101.EnumValueDescriptorProto>): _101.EnumValueDescriptorProto; + fromAmino(object: _101.EnumValueDescriptorProtoAmino): _101.EnumValueDescriptorProto; + toAmino(message: _101.EnumValueDescriptorProto): _101.EnumValueDescriptorProtoAmino; + fromAminoMsg(object: _101.EnumValueDescriptorProtoAminoMsg): _101.EnumValueDescriptorProto; + fromProtoMsg(message: _101.EnumValueDescriptorProtoProtoMsg): _101.EnumValueDescriptorProto; + toProto(message: _101.EnumValueDescriptorProto): Uint8Array; + toProtoMsg(message: _101.EnumValueDescriptorProto): _101.EnumValueDescriptorProtoProtoMsg; }; ServiceDescriptorProto: { - encode(message: _100.ServiceDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.ServiceDescriptorProto; - fromJSON(object: any): _100.ServiceDescriptorProto; - toJSON(message: _100.ServiceDescriptorProto): unknown; - fromPartial(object: Partial<_100.ServiceDescriptorProto>): _100.ServiceDescriptorProto; - fromAmino(object: _100.ServiceDescriptorProtoAmino): _100.ServiceDescriptorProto; - toAmino(message: _100.ServiceDescriptorProto): _100.ServiceDescriptorProtoAmino; - fromAminoMsg(object: _100.ServiceDescriptorProtoAminoMsg): _100.ServiceDescriptorProto; - fromProtoMsg(message: _100.ServiceDescriptorProtoProtoMsg): _100.ServiceDescriptorProto; - toProto(message: _100.ServiceDescriptorProto): Uint8Array; - toProtoMsg(message: _100.ServiceDescriptorProto): _100.ServiceDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.ServiceDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ServiceDescriptorProto; + fromJSON(object: any): _101.ServiceDescriptorProto; + toJSON(message: _101.ServiceDescriptorProto): unknown; + fromPartial(object: Partial<_101.ServiceDescriptorProto>): _101.ServiceDescriptorProto; + fromAmino(object: _101.ServiceDescriptorProtoAmino): _101.ServiceDescriptorProto; + toAmino(message: _101.ServiceDescriptorProto): _101.ServiceDescriptorProtoAmino; + fromAminoMsg(object: _101.ServiceDescriptorProtoAminoMsg): _101.ServiceDescriptorProto; + fromProtoMsg(message: _101.ServiceDescriptorProtoProtoMsg): _101.ServiceDescriptorProto; + toProto(message: _101.ServiceDescriptorProto): Uint8Array; + toProtoMsg(message: _101.ServiceDescriptorProto): _101.ServiceDescriptorProtoProtoMsg; }; MethodDescriptorProto: { - encode(message: _100.MethodDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.MethodDescriptorProto; - fromJSON(object: any): _100.MethodDescriptorProto; - toJSON(message: _100.MethodDescriptorProto): unknown; - fromPartial(object: Partial<_100.MethodDescriptorProto>): _100.MethodDescriptorProto; - fromAmino(object: _100.MethodDescriptorProtoAmino): _100.MethodDescriptorProto; - toAmino(message: _100.MethodDescriptorProto): _100.MethodDescriptorProtoAmino; - fromAminoMsg(object: _100.MethodDescriptorProtoAminoMsg): _100.MethodDescriptorProto; - fromProtoMsg(message: _100.MethodDescriptorProtoProtoMsg): _100.MethodDescriptorProto; - toProto(message: _100.MethodDescriptorProto): Uint8Array; - toProtoMsg(message: _100.MethodDescriptorProto): _100.MethodDescriptorProtoProtoMsg; + typeUrl: string; + encode(message: _101.MethodDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MethodDescriptorProto; + fromJSON(object: any): _101.MethodDescriptorProto; + toJSON(message: _101.MethodDescriptorProto): unknown; + fromPartial(object: Partial<_101.MethodDescriptorProto>): _101.MethodDescriptorProto; + fromAmino(object: _101.MethodDescriptorProtoAmino): _101.MethodDescriptorProto; + toAmino(message: _101.MethodDescriptorProto): _101.MethodDescriptorProtoAmino; + fromAminoMsg(object: _101.MethodDescriptorProtoAminoMsg): _101.MethodDescriptorProto; + fromProtoMsg(message: _101.MethodDescriptorProtoProtoMsg): _101.MethodDescriptorProto; + toProto(message: _101.MethodDescriptorProto): Uint8Array; + toProtoMsg(message: _101.MethodDescriptorProto): _101.MethodDescriptorProtoProtoMsg; }; FileOptions: { - encode(message: _100.FileOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.FileOptions; - fromJSON(object: any): _100.FileOptions; - toJSON(message: _100.FileOptions): unknown; - fromPartial(object: Partial<_100.FileOptions>): _100.FileOptions; - fromAmino(object: _100.FileOptionsAmino): _100.FileOptions; - toAmino(message: _100.FileOptions): _100.FileOptionsAmino; - fromAminoMsg(object: _100.FileOptionsAminoMsg): _100.FileOptions; - fromProtoMsg(message: _100.FileOptionsProtoMsg): _100.FileOptions; - toProto(message: _100.FileOptions): Uint8Array; - toProtoMsg(message: _100.FileOptions): _100.FileOptionsProtoMsg; + typeUrl: string; + encode(message: _101.FileOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileOptions; + fromJSON(object: any): _101.FileOptions; + toJSON(message: _101.FileOptions): unknown; + fromPartial(object: Partial<_101.FileOptions>): _101.FileOptions; + fromAmino(object: _101.FileOptionsAmino): _101.FileOptions; + toAmino(message: _101.FileOptions): _101.FileOptionsAmino; + fromAminoMsg(object: _101.FileOptionsAminoMsg): _101.FileOptions; + fromProtoMsg(message: _101.FileOptionsProtoMsg): _101.FileOptions; + toProto(message: _101.FileOptions): Uint8Array; + toProtoMsg(message: _101.FileOptions): _101.FileOptionsProtoMsg; }; MessageOptions: { - encode(message: _100.MessageOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.MessageOptions; - fromJSON(object: any): _100.MessageOptions; - toJSON(message: _100.MessageOptions): unknown; - fromPartial(object: Partial<_100.MessageOptions>): _100.MessageOptions; - fromAmino(object: _100.MessageOptionsAmino): _100.MessageOptions; - toAmino(message: _100.MessageOptions): _100.MessageOptionsAmino; - fromAminoMsg(object: _100.MessageOptionsAminoMsg): _100.MessageOptions; - fromProtoMsg(message: _100.MessageOptionsProtoMsg): _100.MessageOptions; - toProto(message: _100.MessageOptions): Uint8Array; - toProtoMsg(message: _100.MessageOptions): _100.MessageOptionsProtoMsg; + typeUrl: string; + encode(message: _101.MessageOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MessageOptions; + fromJSON(object: any): _101.MessageOptions; + toJSON(message: _101.MessageOptions): unknown; + fromPartial(object: Partial<_101.MessageOptions>): _101.MessageOptions; + fromAmino(object: _101.MessageOptionsAmino): _101.MessageOptions; + toAmino(message: _101.MessageOptions): _101.MessageOptionsAmino; + fromAminoMsg(object: _101.MessageOptionsAminoMsg): _101.MessageOptions; + fromProtoMsg(message: _101.MessageOptionsProtoMsg): _101.MessageOptions; + toProto(message: _101.MessageOptions): Uint8Array; + toProtoMsg(message: _101.MessageOptions): _101.MessageOptionsProtoMsg; }; FieldOptions: { - encode(message: _100.FieldOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.FieldOptions; - fromJSON(object: any): _100.FieldOptions; - toJSON(message: _100.FieldOptions): unknown; - fromPartial(object: Partial<_100.FieldOptions>): _100.FieldOptions; - fromAmino(object: _100.FieldOptionsAmino): _100.FieldOptions; - toAmino(message: _100.FieldOptions): _100.FieldOptionsAmino; - fromAminoMsg(object: _100.FieldOptionsAminoMsg): _100.FieldOptions; - fromProtoMsg(message: _100.FieldOptionsProtoMsg): _100.FieldOptions; - toProto(message: _100.FieldOptions): Uint8Array; - toProtoMsg(message: _100.FieldOptions): _100.FieldOptionsProtoMsg; + typeUrl: string; + encode(message: _101.FieldOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FieldOptions; + fromJSON(object: any): _101.FieldOptions; + toJSON(message: _101.FieldOptions): unknown; + fromPartial(object: Partial<_101.FieldOptions>): _101.FieldOptions; + fromAmino(object: _101.FieldOptionsAmino): _101.FieldOptions; + toAmino(message: _101.FieldOptions): _101.FieldOptionsAmino; + fromAminoMsg(object: _101.FieldOptionsAminoMsg): _101.FieldOptions; + fromProtoMsg(message: _101.FieldOptionsProtoMsg): _101.FieldOptions; + toProto(message: _101.FieldOptions): Uint8Array; + toProtoMsg(message: _101.FieldOptions): _101.FieldOptionsProtoMsg; }; OneofOptions: { - encode(message: _100.OneofOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.OneofOptions; - fromJSON(object: any): _100.OneofOptions; - toJSON(message: _100.OneofOptions): unknown; - fromPartial(object: Partial<_100.OneofOptions>): _100.OneofOptions; - fromAmino(object: _100.OneofOptionsAmino): _100.OneofOptions; - toAmino(message: _100.OneofOptions): _100.OneofOptionsAmino; - fromAminoMsg(object: _100.OneofOptionsAminoMsg): _100.OneofOptions; - fromProtoMsg(message: _100.OneofOptionsProtoMsg): _100.OneofOptions; - toProto(message: _100.OneofOptions): Uint8Array; - toProtoMsg(message: _100.OneofOptions): _100.OneofOptionsProtoMsg; + typeUrl: string; + encode(message: _101.OneofOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.OneofOptions; + fromJSON(object: any): _101.OneofOptions; + toJSON(message: _101.OneofOptions): unknown; + fromPartial(object: Partial<_101.OneofOptions>): _101.OneofOptions; + fromAmino(object: _101.OneofOptionsAmino): _101.OneofOptions; + toAmino(message: _101.OneofOptions): _101.OneofOptionsAmino; + fromAminoMsg(object: _101.OneofOptionsAminoMsg): _101.OneofOptions; + fromProtoMsg(message: _101.OneofOptionsProtoMsg): _101.OneofOptions; + toProto(message: _101.OneofOptions): Uint8Array; + toProtoMsg(message: _101.OneofOptions): _101.OneofOptionsProtoMsg; }; EnumOptions: { - encode(message: _100.EnumOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.EnumOptions; - fromJSON(object: any): _100.EnumOptions; - toJSON(message: _100.EnumOptions): unknown; - fromPartial(object: Partial<_100.EnumOptions>): _100.EnumOptions; - fromAmino(object: _100.EnumOptionsAmino): _100.EnumOptions; - toAmino(message: _100.EnumOptions): _100.EnumOptionsAmino; - fromAminoMsg(object: _100.EnumOptionsAminoMsg): _100.EnumOptions; - fromProtoMsg(message: _100.EnumOptionsProtoMsg): _100.EnumOptions; - toProto(message: _100.EnumOptions): Uint8Array; - toProtoMsg(message: _100.EnumOptions): _100.EnumOptionsProtoMsg; + typeUrl: string; + encode(message: _101.EnumOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumOptions; + fromJSON(object: any): _101.EnumOptions; + toJSON(message: _101.EnumOptions): unknown; + fromPartial(object: Partial<_101.EnumOptions>): _101.EnumOptions; + fromAmino(object: _101.EnumOptionsAmino): _101.EnumOptions; + toAmino(message: _101.EnumOptions): _101.EnumOptionsAmino; + fromAminoMsg(object: _101.EnumOptionsAminoMsg): _101.EnumOptions; + fromProtoMsg(message: _101.EnumOptionsProtoMsg): _101.EnumOptions; + toProto(message: _101.EnumOptions): Uint8Array; + toProtoMsg(message: _101.EnumOptions): _101.EnumOptionsProtoMsg; }; EnumValueOptions: { - encode(message: _100.EnumValueOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.EnumValueOptions; - fromJSON(object: any): _100.EnumValueOptions; - toJSON(message: _100.EnumValueOptions): unknown; - fromPartial(object: Partial<_100.EnumValueOptions>): _100.EnumValueOptions; - fromAmino(object: _100.EnumValueOptionsAmino): _100.EnumValueOptions; - toAmino(message: _100.EnumValueOptions): _100.EnumValueOptionsAmino; - fromAminoMsg(object: _100.EnumValueOptionsAminoMsg): _100.EnumValueOptions; - fromProtoMsg(message: _100.EnumValueOptionsProtoMsg): _100.EnumValueOptions; - toProto(message: _100.EnumValueOptions): Uint8Array; - toProtoMsg(message: _100.EnumValueOptions): _100.EnumValueOptionsProtoMsg; + typeUrl: string; + encode(message: _101.EnumValueOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumValueOptions; + fromJSON(object: any): _101.EnumValueOptions; + toJSON(message: _101.EnumValueOptions): unknown; + fromPartial(object: Partial<_101.EnumValueOptions>): _101.EnumValueOptions; + fromAmino(object: _101.EnumValueOptionsAmino): _101.EnumValueOptions; + toAmino(message: _101.EnumValueOptions): _101.EnumValueOptionsAmino; + fromAminoMsg(object: _101.EnumValueOptionsAminoMsg): _101.EnumValueOptions; + fromProtoMsg(message: _101.EnumValueOptionsProtoMsg): _101.EnumValueOptions; + toProto(message: _101.EnumValueOptions): Uint8Array; + toProtoMsg(message: _101.EnumValueOptions): _101.EnumValueOptionsProtoMsg; }; ServiceOptions: { - encode(message: _100.ServiceOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.ServiceOptions; - fromJSON(object: any): _100.ServiceOptions; - toJSON(message: _100.ServiceOptions): unknown; - fromPartial(object: Partial<_100.ServiceOptions>): _100.ServiceOptions; - fromAmino(object: _100.ServiceOptionsAmino): _100.ServiceOptions; - toAmino(message: _100.ServiceOptions): _100.ServiceOptionsAmino; - fromAminoMsg(object: _100.ServiceOptionsAminoMsg): _100.ServiceOptions; - fromProtoMsg(message: _100.ServiceOptionsProtoMsg): _100.ServiceOptions; - toProto(message: _100.ServiceOptions): Uint8Array; - toProtoMsg(message: _100.ServiceOptions): _100.ServiceOptionsProtoMsg; + typeUrl: string; + encode(message: _101.ServiceOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ServiceOptions; + fromJSON(object: any): _101.ServiceOptions; + toJSON(message: _101.ServiceOptions): unknown; + fromPartial(object: Partial<_101.ServiceOptions>): _101.ServiceOptions; + fromAmino(object: _101.ServiceOptionsAmino): _101.ServiceOptions; + toAmino(message: _101.ServiceOptions): _101.ServiceOptionsAmino; + fromAminoMsg(object: _101.ServiceOptionsAminoMsg): _101.ServiceOptions; + fromProtoMsg(message: _101.ServiceOptionsProtoMsg): _101.ServiceOptions; + toProto(message: _101.ServiceOptions): Uint8Array; + toProtoMsg(message: _101.ServiceOptions): _101.ServiceOptionsProtoMsg; }; MethodOptions: { - encode(message: _100.MethodOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.MethodOptions; - fromJSON(object: any): _100.MethodOptions; - toJSON(message: _100.MethodOptions): unknown; - fromPartial(object: Partial<_100.MethodOptions>): _100.MethodOptions; - fromAmino(object: _100.MethodOptionsAmino): _100.MethodOptions; - toAmino(message: _100.MethodOptions): _100.MethodOptionsAmino; - fromAminoMsg(object: _100.MethodOptionsAminoMsg): _100.MethodOptions; - fromProtoMsg(message: _100.MethodOptionsProtoMsg): _100.MethodOptions; - toProto(message: _100.MethodOptions): Uint8Array; - toProtoMsg(message: _100.MethodOptions): _100.MethodOptionsProtoMsg; + typeUrl: string; + encode(message: _101.MethodOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MethodOptions; + fromJSON(object: any): _101.MethodOptions; + toJSON(message: _101.MethodOptions): unknown; + fromPartial(object: Partial<_101.MethodOptions>): _101.MethodOptions; + fromAmino(object: _101.MethodOptionsAmino): _101.MethodOptions; + toAmino(message: _101.MethodOptions): _101.MethodOptionsAmino; + fromAminoMsg(object: _101.MethodOptionsAminoMsg): _101.MethodOptions; + fromProtoMsg(message: _101.MethodOptionsProtoMsg): _101.MethodOptions; + toProto(message: _101.MethodOptions): Uint8Array; + toProtoMsg(message: _101.MethodOptions): _101.MethodOptionsProtoMsg; }; UninterpretedOption: { - encode(message: _100.UninterpretedOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.UninterpretedOption; - fromJSON(object: any): _100.UninterpretedOption; - toJSON(message: _100.UninterpretedOption): unknown; - fromPartial(object: Partial<_100.UninterpretedOption>): _100.UninterpretedOption; - fromAmino(object: _100.UninterpretedOptionAmino): _100.UninterpretedOption; - toAmino(message: _100.UninterpretedOption): _100.UninterpretedOptionAmino; - fromAminoMsg(object: _100.UninterpretedOptionAminoMsg): _100.UninterpretedOption; - fromProtoMsg(message: _100.UninterpretedOptionProtoMsg): _100.UninterpretedOption; - toProto(message: _100.UninterpretedOption): Uint8Array; - toProtoMsg(message: _100.UninterpretedOption): _100.UninterpretedOptionProtoMsg; + typeUrl: string; + encode(message: _101.UninterpretedOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.UninterpretedOption; + fromJSON(object: any): _101.UninterpretedOption; + toJSON(message: _101.UninterpretedOption): unknown; + fromPartial(object: Partial<_101.UninterpretedOption>): _101.UninterpretedOption; + fromAmino(object: _101.UninterpretedOptionAmino): _101.UninterpretedOption; + toAmino(message: _101.UninterpretedOption): _101.UninterpretedOptionAmino; + fromAminoMsg(object: _101.UninterpretedOptionAminoMsg): _101.UninterpretedOption; + fromProtoMsg(message: _101.UninterpretedOptionProtoMsg): _101.UninterpretedOption; + toProto(message: _101.UninterpretedOption): Uint8Array; + toProtoMsg(message: _101.UninterpretedOption): _101.UninterpretedOptionProtoMsg; }; UninterpretedOption_NamePart: { - encode(message: _100.UninterpretedOption_NamePart, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.UninterpretedOption_NamePart; - fromJSON(object: any): _100.UninterpretedOption_NamePart; - toJSON(message: _100.UninterpretedOption_NamePart): unknown; - fromPartial(object: Partial<_100.UninterpretedOption_NamePart>): _100.UninterpretedOption_NamePart; - fromAmino(object: _100.UninterpretedOption_NamePartAmino): _100.UninterpretedOption_NamePart; - toAmino(message: _100.UninterpretedOption_NamePart): _100.UninterpretedOption_NamePartAmino; - fromAminoMsg(object: _100.UninterpretedOption_NamePartAminoMsg): _100.UninterpretedOption_NamePart; - fromProtoMsg(message: _100.UninterpretedOption_NamePartProtoMsg): _100.UninterpretedOption_NamePart; - toProto(message: _100.UninterpretedOption_NamePart): Uint8Array; - toProtoMsg(message: _100.UninterpretedOption_NamePart): _100.UninterpretedOption_NamePartProtoMsg; + typeUrl: string; + encode(message: _101.UninterpretedOption_NamePart, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.UninterpretedOption_NamePart; + fromJSON(object: any): _101.UninterpretedOption_NamePart; + toJSON(message: _101.UninterpretedOption_NamePart): unknown; + fromPartial(object: Partial<_101.UninterpretedOption_NamePart>): _101.UninterpretedOption_NamePart; + fromAmino(object: _101.UninterpretedOption_NamePartAmino): _101.UninterpretedOption_NamePart; + toAmino(message: _101.UninterpretedOption_NamePart): _101.UninterpretedOption_NamePartAmino; + fromAminoMsg(object: _101.UninterpretedOption_NamePartAminoMsg): _101.UninterpretedOption_NamePart; + fromProtoMsg(message: _101.UninterpretedOption_NamePartProtoMsg): _101.UninterpretedOption_NamePart; + toProto(message: _101.UninterpretedOption_NamePart): Uint8Array; + toProtoMsg(message: _101.UninterpretedOption_NamePart): _101.UninterpretedOption_NamePartProtoMsg; }; SourceCodeInfo: { - encode(message: _100.SourceCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.SourceCodeInfo; - fromJSON(object: any): _100.SourceCodeInfo; - toJSON(message: _100.SourceCodeInfo): unknown; - fromPartial(object: Partial<_100.SourceCodeInfo>): _100.SourceCodeInfo; - fromAmino(object: _100.SourceCodeInfoAmino): _100.SourceCodeInfo; - toAmino(message: _100.SourceCodeInfo): _100.SourceCodeInfoAmino; - fromAminoMsg(object: _100.SourceCodeInfoAminoMsg): _100.SourceCodeInfo; - fromProtoMsg(message: _100.SourceCodeInfoProtoMsg): _100.SourceCodeInfo; - toProto(message: _100.SourceCodeInfo): Uint8Array; - toProtoMsg(message: _100.SourceCodeInfo): _100.SourceCodeInfoProtoMsg; + typeUrl: string; + encode(message: _101.SourceCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.SourceCodeInfo; + fromJSON(object: any): _101.SourceCodeInfo; + toJSON(message: _101.SourceCodeInfo): unknown; + fromPartial(object: Partial<_101.SourceCodeInfo>): _101.SourceCodeInfo; + fromAmino(object: _101.SourceCodeInfoAmino): _101.SourceCodeInfo; + toAmino(message: _101.SourceCodeInfo): _101.SourceCodeInfoAmino; + fromAminoMsg(object: _101.SourceCodeInfoAminoMsg): _101.SourceCodeInfo; + fromProtoMsg(message: _101.SourceCodeInfoProtoMsg): _101.SourceCodeInfo; + toProto(message: _101.SourceCodeInfo): Uint8Array; + toProtoMsg(message: _101.SourceCodeInfo): _101.SourceCodeInfoProtoMsg; }; SourceCodeInfo_Location: { - encode(message: _100.SourceCodeInfo_Location, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.SourceCodeInfo_Location; - fromJSON(object: any): _100.SourceCodeInfo_Location; - toJSON(message: _100.SourceCodeInfo_Location): unknown; - fromPartial(object: Partial<_100.SourceCodeInfo_Location>): _100.SourceCodeInfo_Location; - fromAmino(object: _100.SourceCodeInfo_LocationAmino): _100.SourceCodeInfo_Location; - toAmino(message: _100.SourceCodeInfo_Location): _100.SourceCodeInfo_LocationAmino; - fromAminoMsg(object: _100.SourceCodeInfo_LocationAminoMsg): _100.SourceCodeInfo_Location; - fromProtoMsg(message: _100.SourceCodeInfo_LocationProtoMsg): _100.SourceCodeInfo_Location; - toProto(message: _100.SourceCodeInfo_Location): Uint8Array; - toProtoMsg(message: _100.SourceCodeInfo_Location): _100.SourceCodeInfo_LocationProtoMsg; + typeUrl: string; + encode(message: _101.SourceCodeInfo_Location, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.SourceCodeInfo_Location; + fromJSON(object: any): _101.SourceCodeInfo_Location; + toJSON(message: _101.SourceCodeInfo_Location): unknown; + fromPartial(object: Partial<_101.SourceCodeInfo_Location>): _101.SourceCodeInfo_Location; + fromAmino(object: _101.SourceCodeInfo_LocationAmino): _101.SourceCodeInfo_Location; + toAmino(message: _101.SourceCodeInfo_Location): _101.SourceCodeInfo_LocationAmino; + fromAminoMsg(object: _101.SourceCodeInfo_LocationAminoMsg): _101.SourceCodeInfo_Location; + fromProtoMsg(message: _101.SourceCodeInfo_LocationProtoMsg): _101.SourceCodeInfo_Location; + toProto(message: _101.SourceCodeInfo_Location): Uint8Array; + toProtoMsg(message: _101.SourceCodeInfo_Location): _101.SourceCodeInfo_LocationProtoMsg; }; GeneratedCodeInfo: { - encode(message: _100.GeneratedCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.GeneratedCodeInfo; - fromJSON(object: any): _100.GeneratedCodeInfo; - toJSON(message: _100.GeneratedCodeInfo): unknown; - fromPartial(object: Partial<_100.GeneratedCodeInfo>): _100.GeneratedCodeInfo; - fromAmino(object: _100.GeneratedCodeInfoAmino): _100.GeneratedCodeInfo; - toAmino(message: _100.GeneratedCodeInfo): _100.GeneratedCodeInfoAmino; - fromAminoMsg(object: _100.GeneratedCodeInfoAminoMsg): _100.GeneratedCodeInfo; - fromProtoMsg(message: _100.GeneratedCodeInfoProtoMsg): _100.GeneratedCodeInfo; - toProto(message: _100.GeneratedCodeInfo): Uint8Array; - toProtoMsg(message: _100.GeneratedCodeInfo): _100.GeneratedCodeInfoProtoMsg; + typeUrl: string; + encode(message: _101.GeneratedCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.GeneratedCodeInfo; + fromJSON(object: any): _101.GeneratedCodeInfo; + toJSON(message: _101.GeneratedCodeInfo): unknown; + fromPartial(object: Partial<_101.GeneratedCodeInfo>): _101.GeneratedCodeInfo; + fromAmino(object: _101.GeneratedCodeInfoAmino): _101.GeneratedCodeInfo; + toAmino(message: _101.GeneratedCodeInfo): _101.GeneratedCodeInfoAmino; + fromAminoMsg(object: _101.GeneratedCodeInfoAminoMsg): _101.GeneratedCodeInfo; + fromProtoMsg(message: _101.GeneratedCodeInfoProtoMsg): _101.GeneratedCodeInfo; + toProto(message: _101.GeneratedCodeInfo): Uint8Array; + toProtoMsg(message: _101.GeneratedCodeInfo): _101.GeneratedCodeInfoProtoMsg; }; GeneratedCodeInfo_Annotation: { - encode(message: _100.GeneratedCodeInfo_Annotation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _100.GeneratedCodeInfo_Annotation; - fromJSON(object: any): _100.GeneratedCodeInfo_Annotation; - toJSON(message: _100.GeneratedCodeInfo_Annotation): unknown; - fromPartial(object: Partial<_100.GeneratedCodeInfo_Annotation>): _100.GeneratedCodeInfo_Annotation; - fromAmino(object: _100.GeneratedCodeInfo_AnnotationAmino): _100.GeneratedCodeInfo_Annotation; - toAmino(message: _100.GeneratedCodeInfo_Annotation): _100.GeneratedCodeInfo_AnnotationAmino; - fromAminoMsg(object: _100.GeneratedCodeInfo_AnnotationAminoMsg): _100.GeneratedCodeInfo_Annotation; - fromProtoMsg(message: _100.GeneratedCodeInfo_AnnotationProtoMsg): _100.GeneratedCodeInfo_Annotation; - toProto(message: _100.GeneratedCodeInfo_Annotation): Uint8Array; - toProtoMsg(message: _100.GeneratedCodeInfo_Annotation): _100.GeneratedCodeInfo_AnnotationProtoMsg; + typeUrl: string; + encode(message: _101.GeneratedCodeInfo_Annotation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.GeneratedCodeInfo_Annotation; + fromJSON(object: any): _101.GeneratedCodeInfo_Annotation; + toJSON(message: _101.GeneratedCodeInfo_Annotation): unknown; + fromPartial(object: Partial<_101.GeneratedCodeInfo_Annotation>): _101.GeneratedCodeInfo_Annotation; + fromAmino(object: _101.GeneratedCodeInfo_AnnotationAmino): _101.GeneratedCodeInfo_Annotation; + toAmino(message: _101.GeneratedCodeInfo_Annotation): _101.GeneratedCodeInfo_AnnotationAmino; + fromAminoMsg(object: _101.GeneratedCodeInfo_AnnotationAminoMsg): _101.GeneratedCodeInfo_Annotation; + fromProtoMsg(message: _101.GeneratedCodeInfo_AnnotationProtoMsg): _101.GeneratedCodeInfo_Annotation; + toProto(message: _101.GeneratedCodeInfo_Annotation): Uint8Array; + toProtoMsg(message: _101.GeneratedCodeInfo_Annotation): _101.GeneratedCodeInfo_AnnotationProtoMsg; }; }; } diff --git a/packages/api/types/codegen/google/protobuf/any.d.ts b/packages/api/types/codegen/google/protobuf/any.d.ts index 449d9370..cfff9521 100644 --- a/packages/api/types/codegen/google/protobuf/any.d.ts +++ b/packages/api/types/codegen/google/protobuf/any.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** * `Any` contains an arbitrary serialized protocol buffer message along with a * URL that describes the type of the serialized message. @@ -81,7 +81,7 @@ import * as _m0 from "protobufjs/minimal"; * } */ export interface Any { - $typeUrl?: string; + $typeUrl?: "/google.protobuf.Any" | string; /** * A URL/resource name that uniquely identifies the type of the serialized * protocol buffer message. This string must contain at least @@ -320,13 +320,14 @@ export interface AnyAminoMsg { * } */ export interface AnySDKType { - $typeUrl?: string; + $typeUrl?: "/google.protobuf.Any" | string; type_url: string; value: Uint8Array; } export declare const Any: { - encode(message: Any, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Any; + typeUrl: string; + encode(message: Any, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Any; fromJSON(object: any): Any; toJSON(message: Any): unknown; fromPartial(object: Partial): Any; diff --git a/packages/api/types/codegen/google/protobuf/descriptor.d.ts b/packages/api/types/codegen/google/protobuf/descriptor.d.ts index 3765d311..76fd3713 100644 --- a/packages/api/types/codegen/google/protobuf/descriptor.d.ts +++ b/packages/api/types/codegen/google/protobuf/descriptor.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export declare enum FieldDescriptorProto_Type { /** * TYPE_DOUBLE - 0 is reserved for errors. @@ -131,7 +130,7 @@ export interface FileDescriptorSetProtoMsg { * files it parses. */ export interface FileDescriptorSetAmino { - file: FileDescriptorProtoAmino[]; + file?: FileDescriptorProtoAmino[]; } export interface FileDescriptorSetAminoMsg { type: "/google.protobuf.FileDescriptorSet"; @@ -163,14 +162,14 @@ export interface FileDescriptorProto { enumType: EnumDescriptorProto[]; service: ServiceDescriptorProto[]; extension: FieldDescriptorProto[]; - options: FileOptions; + options?: FileOptions; /** * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. */ - sourceCodeInfo: SourceCodeInfo; + sourceCodeInfo?: SourceCodeInfo; /** * The syntax of the proto file. * The supported values are "proto2" and "proto3". @@ -184,22 +183,22 @@ export interface FileDescriptorProtoProtoMsg { /** Describes a complete .proto file. */ export interface FileDescriptorProtoAmino { /** file name, relative to root of source tree */ - name: string; - package: string; + name?: string; + package?: string; /** Names of files imported by this file. */ - dependency: string[]; + dependency?: string[]; /** Indexes of the public imported files in the dependency list above. */ - public_dependency: number[]; + public_dependency?: number[]; /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. */ - weak_dependency: number[]; + weak_dependency?: number[]; /** All top-level definitions in this file. */ - message_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - service: ServiceDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; + message_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + service?: ServiceDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; options?: FileOptionsAmino; /** * This field contains optional information about the original source code. @@ -212,7 +211,7 @@ export interface FileDescriptorProtoAmino { * The syntax of the proto file. * The supported values are "proto2" and "proto3". */ - syntax: string; + syntax?: string; } export interface FileDescriptorProtoAminoMsg { type: "/google.protobuf.FileDescriptorProto"; @@ -229,8 +228,8 @@ export interface FileDescriptorProtoSDKType { enum_type: EnumDescriptorProtoSDKType[]; service: ServiceDescriptorProtoSDKType[]; extension: FieldDescriptorProtoSDKType[]; - options: FileOptionsSDKType; - source_code_info: SourceCodeInfoSDKType; + options?: FileOptionsSDKType; + source_code_info?: SourceCodeInfoSDKType; syntax: string; } /** Describes a message type. */ @@ -242,7 +241,7 @@ export interface DescriptorProto { enumType: EnumDescriptorProto[]; extensionRange: DescriptorProto_ExtensionRange[]; oneofDecl: OneofDescriptorProto[]; - options: MessageOptions; + options?: MessageOptions; reservedRange: DescriptorProto_ReservedRange[]; /** * Reserved field names, which may not be used by fields in the same message. @@ -256,20 +255,20 @@ export interface DescriptorProtoProtoMsg { } /** Describes a message type. */ export interface DescriptorProtoAmino { - name: string; - field: FieldDescriptorProtoAmino[]; - extension: FieldDescriptorProtoAmino[]; - nested_type: DescriptorProtoAmino[]; - enum_type: EnumDescriptorProtoAmino[]; - extension_range: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl: OneofDescriptorProtoAmino[]; + name?: string; + field?: FieldDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; + nested_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + extension_range?: DescriptorProto_ExtensionRangeAmino[]; + oneof_decl?: OneofDescriptorProtoAmino[]; options?: MessageOptionsAmino; - reserved_range: DescriptorProto_ReservedRangeAmino[]; + reserved_range?: DescriptorProto_ReservedRangeAmino[]; /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. */ - reserved_name: string[]; + reserved_name?: string[]; } export interface DescriptorProtoAminoMsg { type: "/google.protobuf.DescriptorProto"; @@ -284,7 +283,7 @@ export interface DescriptorProtoSDKType { enum_type: EnumDescriptorProtoSDKType[]; extension_range: DescriptorProto_ExtensionRangeSDKType[]; oneof_decl: OneofDescriptorProtoSDKType[]; - options: MessageOptionsSDKType; + options?: MessageOptionsSDKType; reserved_range: DescriptorProto_ReservedRangeSDKType[]; reserved_name: string[]; } @@ -293,7 +292,7 @@ export interface DescriptorProto_ExtensionRange { start: number; /** Exclusive. */ end: number; - options: ExtensionRangeOptions; + options?: ExtensionRangeOptions; } export interface DescriptorProto_ExtensionRangeProtoMsg { typeUrl: "/google.protobuf.ExtensionRange"; @@ -301,9 +300,9 @@ export interface DescriptorProto_ExtensionRangeProtoMsg { } export interface DescriptorProto_ExtensionRangeAmino { /** Inclusive. */ - start: number; + start?: number; /** Exclusive. */ - end: number; + end?: number; options?: ExtensionRangeOptionsAmino; } export interface DescriptorProto_ExtensionRangeAminoMsg { @@ -313,7 +312,7 @@ export interface DescriptorProto_ExtensionRangeAminoMsg { export interface DescriptorProto_ExtensionRangeSDKType { start: number; end: number; - options: ExtensionRangeOptionsSDKType; + options?: ExtensionRangeOptionsSDKType; } /** * Range of reserved tag numbers. Reserved tag numbers may not be used by @@ -337,9 +336,9 @@ export interface DescriptorProto_ReservedRangeProtoMsg { */ export interface DescriptorProto_ReservedRangeAmino { /** Inclusive. */ - start: number; + start?: number; /** Exclusive. */ - end: number; + end?: number; } export interface DescriptorProto_ReservedRangeAminoMsg { type: "/google.protobuf.ReservedRange"; @@ -364,7 +363,7 @@ export interface ExtensionRangeOptionsProtoMsg { } export interface ExtensionRangeOptionsAmino { /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface ExtensionRangeOptionsAminoMsg { type: "/google.protobuf.ExtensionRangeOptions"; @@ -416,7 +415,7 @@ export interface FieldDescriptorProto { * it to camelCase. */ jsonName: string; - options: FieldOptions; + options?: FieldOptions; } export interface FieldDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.FieldDescriptorProto"; @@ -424,14 +423,14 @@ export interface FieldDescriptorProtoProtoMsg { } /** Describes a field within a message. */ export interface FieldDescriptorProtoAmino { - name: string; - number: number; - label: FieldDescriptorProto_Label; + name?: string; + number?: number; + label?: FieldDescriptorProto_Label; /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. */ - type: FieldDescriptorProto_Type; + type?: FieldDescriptorProto_Type; /** * For message and enum types, this is the name of the type. If the name * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping @@ -439,12 +438,12 @@ export interface FieldDescriptorProtoAmino { * message are searched, then within the parent, on up to the root * namespace). */ - type_name: string; + type_name?: string; /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. */ - extendee: string; + extendee?: string; /** * For numeric types, contains the original text representation of the value. * For booleans, "true" or "false". @@ -452,19 +451,19 @@ export interface FieldDescriptorProtoAmino { * For bytes, contains the C escaped value. All bytes >= 128 are escaped. * TODO(kenton): Base-64 encode? */ - default_value: string; + default_value?: string; /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. */ - oneof_index: number; + oneof_index?: number; /** * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. */ - json_name: string; + json_name?: string; options?: FieldOptionsAmino; } export interface FieldDescriptorProtoAminoMsg { @@ -482,12 +481,12 @@ export interface FieldDescriptorProtoSDKType { default_value: string; oneof_index: number; json_name: string; - options: FieldOptionsSDKType; + options?: FieldOptionsSDKType; } /** Describes a oneof. */ export interface OneofDescriptorProto { name: string; - options: OneofOptions; + options?: OneofOptions; } export interface OneofDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.OneofDescriptorProto"; @@ -495,7 +494,7 @@ export interface OneofDescriptorProtoProtoMsg { } /** Describes a oneof. */ export interface OneofDescriptorProtoAmino { - name: string; + name?: string; options?: OneofOptionsAmino; } export interface OneofDescriptorProtoAminoMsg { @@ -505,13 +504,13 @@ export interface OneofDescriptorProtoAminoMsg { /** Describes a oneof. */ export interface OneofDescriptorProtoSDKType { name: string; - options: OneofOptionsSDKType; + options?: OneofOptionsSDKType; } /** Describes an enum type. */ export interface EnumDescriptorProto { name: string; value: EnumValueDescriptorProto[]; - options: EnumOptions; + options?: EnumOptions; /** * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not @@ -530,20 +529,20 @@ export interface EnumDescriptorProtoProtoMsg { } /** Describes an enum type. */ export interface EnumDescriptorProtoAmino { - name: string; - value: EnumValueDescriptorProtoAmino[]; + name?: string; + value?: EnumValueDescriptorProtoAmino[]; options?: EnumOptionsAmino; /** * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. */ - reserved_range: EnumDescriptorProto_EnumReservedRangeAmino[]; + reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. */ - reserved_name: string[]; + reserved_name?: string[]; } export interface EnumDescriptorProtoAminoMsg { type: "/google.protobuf.EnumDescriptorProto"; @@ -553,7 +552,7 @@ export interface EnumDescriptorProtoAminoMsg { export interface EnumDescriptorProtoSDKType { name: string; value: EnumValueDescriptorProtoSDKType[]; - options: EnumOptionsSDKType; + options?: EnumOptionsSDKType; reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; reserved_name: string[]; } @@ -585,9 +584,9 @@ export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { */ export interface EnumDescriptorProto_EnumReservedRangeAmino { /** Inclusive. */ - start: number; + start?: number; /** Inclusive. */ - end: number; + end?: number; } export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { type: "/google.protobuf.EnumReservedRange"; @@ -609,7 +608,7 @@ export interface EnumDescriptorProto_EnumReservedRangeSDKType { export interface EnumValueDescriptorProto { name: string; number: number; - options: EnumValueOptions; + options?: EnumValueOptions; } export interface EnumValueDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.EnumValueDescriptorProto"; @@ -617,8 +616,8 @@ export interface EnumValueDescriptorProtoProtoMsg { } /** Describes a value within an enum. */ export interface EnumValueDescriptorProtoAmino { - name: string; - number: number; + name?: string; + number?: number; options?: EnumValueOptionsAmino; } export interface EnumValueDescriptorProtoAminoMsg { @@ -629,13 +628,13 @@ export interface EnumValueDescriptorProtoAminoMsg { export interface EnumValueDescriptorProtoSDKType { name: string; number: number; - options: EnumValueOptionsSDKType; + options?: EnumValueOptionsSDKType; } /** Describes a service. */ export interface ServiceDescriptorProto { name: string; method: MethodDescriptorProto[]; - options: ServiceOptions; + options?: ServiceOptions; } export interface ServiceDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.ServiceDescriptorProto"; @@ -643,8 +642,8 @@ export interface ServiceDescriptorProtoProtoMsg { } /** Describes a service. */ export interface ServiceDescriptorProtoAmino { - name: string; - method: MethodDescriptorProtoAmino[]; + name?: string; + method?: MethodDescriptorProtoAmino[]; options?: ServiceOptionsAmino; } export interface ServiceDescriptorProtoAminoMsg { @@ -655,7 +654,7 @@ export interface ServiceDescriptorProtoAminoMsg { export interface ServiceDescriptorProtoSDKType { name: string; method: MethodDescriptorProtoSDKType[]; - options: ServiceOptionsSDKType; + options?: ServiceOptionsSDKType; } /** Describes a method of a service. */ export interface MethodDescriptorProto { @@ -666,7 +665,7 @@ export interface MethodDescriptorProto { */ inputType: string; outputType: string; - options: MethodOptions; + options?: MethodOptions; /** Identifies if client streams multiple client messages */ clientStreaming: boolean; /** Identifies if server streams multiple server messages */ @@ -678,18 +677,18 @@ export interface MethodDescriptorProtoProtoMsg { } /** Describes a method of a service. */ export interface MethodDescriptorProtoAmino { - name: string; + name?: string; /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. */ - input_type: string; - output_type: string; + input_type?: string; + output_type?: string; options?: MethodOptionsAmino; /** Identifies if client streams multiple client messages */ - client_streaming: boolean; + client_streaming?: boolean; /** Identifies if server streams multiple server messages */ - server_streaming: boolean; + server_streaming?: boolean; } export interface MethodDescriptorProtoAminoMsg { type: "/google.protobuf.MethodDescriptorProto"; @@ -700,7 +699,7 @@ export interface MethodDescriptorProtoSDKType { name: string; input_type: string; output_type: string; - options: MethodOptionsSDKType; + options?: MethodOptionsSDKType; client_streaming: boolean; server_streaming: boolean; } @@ -832,7 +831,7 @@ export interface FileOptionsAmino { * inappropriate because proto packages do not normally start with backwards * domain names. */ - java_package: string; + java_package?: string; /** * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 @@ -840,7 +839,7 @@ export interface FileOptionsAmino { * a .proto always translates to a single class, but you may want to * explicitly choose the class name). */ - java_outer_classname: string; + java_outer_classname?: string; /** * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto @@ -849,10 +848,10 @@ export interface FileOptionsAmino { * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. */ - java_multiple_files: boolean; + java_multiple_files?: boolean; /** This option does nothing. */ /** @deprecated */ - java_generate_equals_and_hash: boolean; + java_generate_equals_and_hash?: boolean; /** * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 @@ -861,8 +860,8 @@ export interface FileOptionsAmino { * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. */ - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; + java_string_check_utf8?: boolean; + optimize_for?: FileOptions_OptimizeMode; /** * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: @@ -870,7 +869,7 @@ export interface FileOptionsAmino { * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. */ - go_package: string; + go_package?: string; /** * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the @@ -883,64 +882,64 @@ export interface FileOptionsAmino { * these default to false. Old code which depends on generic services should * explicitly set them to true. */ - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; + cc_generic_services?: boolean; + java_generic_services?: boolean; + py_generic_services?: boolean; + php_generic_services?: boolean; /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. */ - deprecated: boolean; + deprecated?: boolean; /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. */ - cc_enable_arenas: boolean; + cc_enable_arenas?: boolean; /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. */ - objc_class_prefix: string; + objc_class_prefix?: string; /** Namespace for generated classes; defaults to the package. */ - csharp_namespace: string; + csharp_namespace?: string; /** * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. */ - swift_prefix: string; + swift_prefix?: string; /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. */ - php_class_prefix: string; + php_class_prefix?: string; /** * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. */ - php_namespace: string; + php_namespace?: string; /** * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. */ - php_metadata_namespace: string; + php_metadata_namespace?: string; /** * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. */ - ruby_package: string; + ruby_package?: string; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface FileOptionsAminoMsg { type: "/google.protobuf.FileOptions"; @@ -1057,20 +1056,20 @@ export interface MessageOptionsAmino { * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. */ - message_set_wire_format: boolean; + message_set_wire_format?: boolean; /** * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". */ - no_standard_descriptor_accessor: boolean; + no_standard_descriptor_accessor?: boolean; /** * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. */ - deprecated: boolean; + deprecated?: boolean; /** * Whether the message is an automatically generated map entry type for the * maps field. @@ -1094,9 +1093,9 @@ export interface MessageOptionsAmino { * instead. The option should only be implicitly set by the proto compiler * parser. */ - map_entry: boolean; + map_entry?: boolean; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface MessageOptionsAminoMsg { type: "/google.protobuf.MessageOptions"; @@ -1193,7 +1192,7 @@ export interface FieldOptionsAmino { * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! */ - ctype: FieldOptions_CType; + ctype?: FieldOptions_CType; /** * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly @@ -1201,7 +1200,7 @@ export interface FieldOptionsAmino { * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. */ - packed: boolean; + packed?: boolean; /** * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types @@ -1215,7 +1214,7 @@ export interface FieldOptionsAmino { * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. */ - jstype: FieldOptions_JSType; + jstype?: FieldOptions_JSType; /** * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the @@ -1246,18 +1245,18 @@ export interface FieldOptionsAmino { * check its required fields, regardless of whether or not the message has * been parsed. */ - lazy: boolean; + lazy?: boolean; /** * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. */ - deprecated: boolean; + deprecated?: boolean; /** For Google-internal migration only. Do not use. */ - weak: boolean; + weak?: boolean; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface FieldOptionsAminoMsg { type: "/google.protobuf.FieldOptions"; @@ -1282,7 +1281,7 @@ export interface OneofOptionsProtoMsg { } export interface OneofOptionsAmino { /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface OneofOptionsAminoMsg { type: "/google.protobuf.OneofOptions"; @@ -1316,16 +1315,16 @@ export interface EnumOptionsAmino { * Set this option to true to allow mapping different tag names to the same * value. */ - allow_alias: boolean; + allow_alias?: boolean; /** * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. */ - deprecated: boolean; + deprecated?: boolean; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface EnumOptionsAminoMsg { type: "/google.protobuf.EnumOptions"; @@ -1358,9 +1357,9 @@ export interface EnumValueOptionsAmino { * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. */ - deprecated: boolean; + deprecated?: boolean; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface EnumValueOptionsAminoMsg { type: "/google.protobuf.EnumValueOptions"; @@ -1392,9 +1391,9 @@ export interface ServiceOptionsAmino { * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. */ - deprecated: boolean; + deprecated?: boolean; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface ServiceOptionsAminoMsg { type: "/google.protobuf.ServiceOptions"; @@ -1427,10 +1426,10 @@ export interface MethodOptionsAmino { * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. */ - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; + deprecated?: boolean; + idempotency_level?: MethodOptions_IdempotencyLevel; /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option: UninterpretedOptionAmino[]; + uninterpreted_option?: UninterpretedOptionAmino[]; } export interface MethodOptionsAminoMsg { type: "/google.protobuf.MethodOptions"; @@ -1456,8 +1455,8 @@ export interface UninterpretedOption { * identified it as during parsing. Exactly one of these should be set. */ identifierValue: string; - positiveIntValue: Long; - negativeIntValue: Long; + positiveIntValue: bigint; + negativeIntValue: bigint; doubleValue: number; stringValue: Uint8Array; aggregateValue: string; @@ -1475,17 +1474,17 @@ export interface UninterpretedOptionProtoMsg { * in them. */ export interface UninterpretedOptionAmino { - name: UninterpretedOption_NamePartAmino[]; + name?: UninterpretedOption_NamePartAmino[]; /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. */ - identifier_value: string; - positive_int_value: string; - negative_int_value: string; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; + identifier_value?: string; + positive_int_value?: string; + negative_int_value?: string; + double_value?: number; + string_value?: string; + aggregate_value?: string; } export interface UninterpretedOptionAminoMsg { type: "/google.protobuf.UninterpretedOption"; @@ -1502,8 +1501,8 @@ export interface UninterpretedOptionAminoMsg { export interface UninterpretedOptionSDKType { name: UninterpretedOption_NamePartSDKType[]; identifier_value: string; - positive_int_value: Long; - negative_int_value: Long; + positive_int_value: bigint; + negative_int_value: bigint; double_value: number; string_value: Uint8Array; aggregate_value: string; @@ -1531,8 +1530,8 @@ export interface UninterpretedOption_NamePartProtoMsg { * "foo.(bar.baz).qux". */ export interface UninterpretedOption_NamePartAmino { - name_part: string; - is_extension: boolean; + name_part?: string; + is_extension?: boolean; } export interface UninterpretedOption_NamePartAminoMsg { type: "/google.protobuf.NamePart"; @@ -1655,7 +1654,7 @@ export interface SourceCodeInfoAmino { * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. */ - location: SourceCodeInfo_LocationAmino[]; + location?: SourceCodeInfo_LocationAmino[]; } export interface SourceCodeInfoAminoMsg { type: "/google.protobuf.SourceCodeInfo"; @@ -1786,7 +1785,7 @@ export interface SourceCodeInfo_LocationAmino { * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). */ - path: number[]; + path?: number[]; /** * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. @@ -1794,7 +1793,7 @@ export interface SourceCodeInfo_LocationAmino { * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. */ - span: number[]; + span?: number[]; /** * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be @@ -1844,9 +1843,9 @@ export interface SourceCodeInfo_LocationAmino { * * // ignored detached comments. */ - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; + leading_comments?: string; + trailing_comments?: string; + leading_detached_comments?: string[]; } export interface SourceCodeInfo_LocationAminoMsg { type: "/google.protobuf.Location"; @@ -1885,7 +1884,7 @@ export interface GeneratedCodeInfoAmino { * An Annotation connects some span of text in generated code to an element * of its generating .proto file. */ - annotation: GeneratedCodeInfo_AnnotationAmino[]; + annotation?: GeneratedCodeInfo_AnnotationAmino[]; } export interface GeneratedCodeInfoAminoMsg { type: "/google.protobuf.GeneratedCodeInfo"; @@ -1928,20 +1927,20 @@ export interface GeneratedCodeInfo_AnnotationAmino { * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. */ - path: number[]; + path?: number[]; /** Identifies the filesystem path to the original source .proto. */ - source_file: string; + source_file?: string; /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. */ - begin: number; + begin?: number; /** * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). */ - end: number; + end?: number; } export interface GeneratedCodeInfo_AnnotationAminoMsg { type: "/google.protobuf.Annotation"; @@ -1954,8 +1953,9 @@ export interface GeneratedCodeInfo_AnnotationSDKType { end: number; } export declare const FileDescriptorSet: { - encode(message: FileDescriptorSet, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet; + typeUrl: string; + encode(message: FileDescriptorSet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet; fromJSON(object: any): FileDescriptorSet; toJSON(message: FileDescriptorSet): unknown; fromPartial(object: Partial): FileDescriptorSet; @@ -1967,8 +1967,9 @@ export declare const FileDescriptorSet: { toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg; }; export declare const FileDescriptorProto: { - encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto; + typeUrl: string; + encode(message: FileDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto; fromJSON(object: any): FileDescriptorProto; toJSON(message: FileDescriptorProto): unknown; fromPartial(object: Partial): FileDescriptorProto; @@ -1980,8 +1981,9 @@ export declare const FileDescriptorProto: { toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg; }; export declare const DescriptorProto: { - encode(message: DescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto; + typeUrl: string; + encode(message: DescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto; fromJSON(object: any): DescriptorProto; toJSON(message: DescriptorProto): unknown; fromPartial(object: Partial): DescriptorProto; @@ -1993,8 +1995,9 @@ export declare const DescriptorProto: { toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg; }; export declare const DescriptorProto_ExtensionRange: { - encode(message: DescriptorProto_ExtensionRange, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; + typeUrl: string; + encode(message: DescriptorProto_ExtensionRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; fromJSON(object: any): DescriptorProto_ExtensionRange; toJSON(message: DescriptorProto_ExtensionRange): unknown; fromPartial(object: Partial): DescriptorProto_ExtensionRange; @@ -2006,8 +2009,9 @@ export declare const DescriptorProto_ExtensionRange: { toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg; }; export declare const DescriptorProto_ReservedRange: { - encode(message: DescriptorProto_ReservedRange, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange; + typeUrl: string; + encode(message: DescriptorProto_ReservedRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange; fromJSON(object: any): DescriptorProto_ReservedRange; toJSON(message: DescriptorProto_ReservedRange): unknown; fromPartial(object: Partial): DescriptorProto_ReservedRange; @@ -2019,8 +2023,9 @@ export declare const DescriptorProto_ReservedRange: { toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg; }; export declare const ExtensionRangeOptions: { - encode(message: ExtensionRangeOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions; + typeUrl: string; + encode(message: ExtensionRangeOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions; fromJSON(object: any): ExtensionRangeOptions; toJSON(message: ExtensionRangeOptions): unknown; fromPartial(object: Partial): ExtensionRangeOptions; @@ -2032,8 +2037,9 @@ export declare const ExtensionRangeOptions: { toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg; }; export declare const FieldDescriptorProto: { - encode(message: FieldDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto; + typeUrl: string; + encode(message: FieldDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto; fromJSON(object: any): FieldDescriptorProto; toJSON(message: FieldDescriptorProto): unknown; fromPartial(object: Partial): FieldDescriptorProto; @@ -2045,8 +2051,9 @@ export declare const FieldDescriptorProto: { toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg; }; export declare const OneofDescriptorProto: { - encode(message: OneofDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto; + typeUrl: string; + encode(message: OneofDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto; fromJSON(object: any): OneofDescriptorProto; toJSON(message: OneofDescriptorProto): unknown; fromPartial(object: Partial): OneofDescriptorProto; @@ -2058,8 +2065,9 @@ export declare const OneofDescriptorProto: { toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg; }; export declare const EnumDescriptorProto: { - encode(message: EnumDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto; + typeUrl: string; + encode(message: EnumDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto; fromJSON(object: any): EnumDescriptorProto; toJSON(message: EnumDescriptorProto): unknown; fromPartial(object: Partial): EnumDescriptorProto; @@ -2071,8 +2079,9 @@ export declare const EnumDescriptorProto: { toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg; }; export declare const EnumDescriptorProto_EnumReservedRange: { - encode(message: EnumDescriptorProto_EnumReservedRange, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; + typeUrl: string; + encode(message: EnumDescriptorProto_EnumReservedRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; fromJSON(object: any): EnumDescriptorProto_EnumReservedRange; toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown; fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange; @@ -2084,8 +2093,9 @@ export declare const EnumDescriptorProto_EnumReservedRange: { toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg; }; export declare const EnumValueDescriptorProto: { - encode(message: EnumValueDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto; + typeUrl: string; + encode(message: EnumValueDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto; fromJSON(object: any): EnumValueDescriptorProto; toJSON(message: EnumValueDescriptorProto): unknown; fromPartial(object: Partial): EnumValueDescriptorProto; @@ -2097,8 +2107,9 @@ export declare const EnumValueDescriptorProto: { toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg; }; export declare const ServiceDescriptorProto: { - encode(message: ServiceDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto; + typeUrl: string; + encode(message: ServiceDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto; fromJSON(object: any): ServiceDescriptorProto; toJSON(message: ServiceDescriptorProto): unknown; fromPartial(object: Partial): ServiceDescriptorProto; @@ -2110,8 +2121,9 @@ export declare const ServiceDescriptorProto: { toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg; }; export declare const MethodDescriptorProto: { - encode(message: MethodDescriptorProto, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto; + typeUrl: string; + encode(message: MethodDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto; fromJSON(object: any): MethodDescriptorProto; toJSON(message: MethodDescriptorProto): unknown; fromPartial(object: Partial): MethodDescriptorProto; @@ -2123,8 +2135,9 @@ export declare const MethodDescriptorProto: { toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg; }; export declare const FileOptions: { - encode(message: FileOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions; + typeUrl: string; + encode(message: FileOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileOptions; fromJSON(object: any): FileOptions; toJSON(message: FileOptions): unknown; fromPartial(object: Partial): FileOptions; @@ -2136,8 +2149,9 @@ export declare const FileOptions: { toProtoMsg(message: FileOptions): FileOptionsProtoMsg; }; export declare const MessageOptions: { - encode(message: MessageOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions; + typeUrl: string; + encode(message: MessageOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions; fromJSON(object: any): MessageOptions; toJSON(message: MessageOptions): unknown; fromPartial(object: Partial): MessageOptions; @@ -2149,8 +2163,9 @@ export declare const MessageOptions: { toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg; }; export declare const FieldOptions: { - encode(message: FieldOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions; + typeUrl: string; + encode(message: FieldOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions; fromJSON(object: any): FieldOptions; toJSON(message: FieldOptions): unknown; fromPartial(object: Partial): FieldOptions; @@ -2162,8 +2177,9 @@ export declare const FieldOptions: { toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg; }; export declare const OneofOptions: { - encode(message: OneofOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions; + typeUrl: string; + encode(message: OneofOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions; fromJSON(object: any): OneofOptions; toJSON(message: OneofOptions): unknown; fromPartial(object: Partial): OneofOptions; @@ -2175,8 +2191,9 @@ export declare const OneofOptions: { toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg; }; export declare const EnumOptions: { - encode(message: EnumOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions; + typeUrl: string; + encode(message: EnumOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions; fromJSON(object: any): EnumOptions; toJSON(message: EnumOptions): unknown; fromPartial(object: Partial): EnumOptions; @@ -2188,8 +2205,9 @@ export declare const EnumOptions: { toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg; }; export declare const EnumValueOptions: { - encode(message: EnumValueOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions; + typeUrl: string; + encode(message: EnumValueOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions; fromJSON(object: any): EnumValueOptions; toJSON(message: EnumValueOptions): unknown; fromPartial(object: Partial): EnumValueOptions; @@ -2201,8 +2219,9 @@ export declare const EnumValueOptions: { toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg; }; export declare const ServiceOptions: { - encode(message: ServiceOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions; + typeUrl: string; + encode(message: ServiceOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions; fromJSON(object: any): ServiceOptions; toJSON(message: ServiceOptions): unknown; fromPartial(object: Partial): ServiceOptions; @@ -2214,8 +2233,9 @@ export declare const ServiceOptions: { toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg; }; export declare const MethodOptions: { - encode(message: MethodOptions, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions; + typeUrl: string; + encode(message: MethodOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions; fromJSON(object: any): MethodOptions; toJSON(message: MethodOptions): unknown; fromPartial(object: Partial): MethodOptions; @@ -2227,8 +2247,9 @@ export declare const MethodOptions: { toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg; }; export declare const UninterpretedOption: { - encode(message: UninterpretedOption, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption; + typeUrl: string; + encode(message: UninterpretedOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption; fromJSON(object: any): UninterpretedOption; toJSON(message: UninterpretedOption): unknown; fromPartial(object: Partial): UninterpretedOption; @@ -2240,8 +2261,9 @@ export declare const UninterpretedOption: { toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg; }; export declare const UninterpretedOption_NamePart: { - encode(message: UninterpretedOption_NamePart, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart; + typeUrl: string; + encode(message: UninterpretedOption_NamePart, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart; fromJSON(object: any): UninterpretedOption_NamePart; toJSON(message: UninterpretedOption_NamePart): unknown; fromPartial(object: Partial): UninterpretedOption_NamePart; @@ -2253,8 +2275,9 @@ export declare const UninterpretedOption_NamePart: { toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg; }; export declare const SourceCodeInfo: { - encode(message: SourceCodeInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo; + typeUrl: string; + encode(message: SourceCodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo; fromJSON(object: any): SourceCodeInfo; toJSON(message: SourceCodeInfo): unknown; fromPartial(object: Partial): SourceCodeInfo; @@ -2266,8 +2289,9 @@ export declare const SourceCodeInfo: { toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg; }; export declare const SourceCodeInfo_Location: { - encode(message: SourceCodeInfo_Location, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location; + typeUrl: string; + encode(message: SourceCodeInfo_Location, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location; fromJSON(object: any): SourceCodeInfo_Location; toJSON(message: SourceCodeInfo_Location): unknown; fromPartial(object: Partial): SourceCodeInfo_Location; @@ -2279,8 +2303,9 @@ export declare const SourceCodeInfo_Location: { toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg; }; export declare const GeneratedCodeInfo: { - encode(message: GeneratedCodeInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo; + typeUrl: string; + encode(message: GeneratedCodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo; fromJSON(object: any): GeneratedCodeInfo; toJSON(message: GeneratedCodeInfo): unknown; fromPartial(object: Partial): GeneratedCodeInfo; @@ -2292,8 +2317,9 @@ export declare const GeneratedCodeInfo: { toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg; }; export declare const GeneratedCodeInfo_Annotation: { - encode(message: GeneratedCodeInfo_Annotation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; + typeUrl: string; + encode(message: GeneratedCodeInfo_Annotation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; fromJSON(object: any): GeneratedCodeInfo_Annotation; toJSON(message: GeneratedCodeInfo_Annotation): unknown; fromPartial(object: Partial): GeneratedCodeInfo_Annotation; diff --git a/packages/api/types/codegen/google/protobuf/duration.d.ts b/packages/api/types/codegen/google/protobuf/duration.d.ts index bcbbf4b2..70906d72 100644 --- a/packages/api/types/codegen/google/protobuf/duration.d.ts +++ b/packages/api/types/codegen/google/protobuf/duration.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** * A Duration represents a signed, fixed-length span of time represented * as a count of seconds and fractions of seconds at nanosecond @@ -66,7 +65,7 @@ export interface Duration { * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years */ - seconds: Long; + seconds: bigint; /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 @@ -207,12 +206,13 @@ export interface DurationAminoMsg { * microsecond should be expressed in JSON format as "3.000001s". */ export interface DurationSDKType { - seconds: Long; + seconds: bigint; nanos: number; } export declare const Duration: { - encode(message: Duration, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Duration; + typeUrl: string; + encode(message: Duration, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Duration; fromJSON(object: any): Duration; toJSON(message: Duration): unknown; fromPartial(object: Partial): Duration; diff --git a/packages/api/types/codegen/google/protobuf/timestamp.d.ts b/packages/api/types/codegen/google/protobuf/timestamp.d.ts index b6d7ead1..20f180a0 100644 --- a/packages/api/types/codegen/google/protobuf/timestamp.d.ts +++ b/packages/api/types/codegen/google/protobuf/timestamp.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** * A Timestamp represents a point in time independent of any time zone or local * calendar, encoded as a count of seconds and fractions of seconds at @@ -90,7 +89,7 @@ export interface Timestamp { * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to * 9999-12-31T23:59:59Z inclusive. */ - seconds: Long; + seconds: bigint; /** * Non-negative fractions of a second at nanosecond resolution. Negative * second values with fractions must still have non-negative nanos values @@ -277,12 +276,13 @@ export interface TimestampAminoMsg { * ) to obtain a formatter capable of generating timestamps in this format. */ export interface TimestampSDKType { - seconds: Long; + seconds: bigint; nanos: number; } export declare const Timestamp: { - encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp; + typeUrl: string; + encode(message: Timestamp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Timestamp; fromJSON(object: any): Timestamp; toJSON(message: Timestamp): unknown; fromPartial(object: Partial): Timestamp; diff --git a/packages/api/types/codegen/helpers.d.ts b/packages/api/types/codegen/helpers.d.ts index 89ae3fb4..39f0b29e 100644 --- a/packages/api/types/codegen/helpers.d.ts +++ b/packages/api/types/codegen/helpers.d.ts @@ -1,24 +1,22 @@ /** -* This file and any referenced files were automatically generated by @osmonauts/telescope@0.99.0 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ -import Long from 'long'; -export { Long }; export declare function bytesFromBase64(b64: string): Uint8Array; export declare function base64FromBytes(arr: Uint8Array): string; export interface AminoHeight { readonly revision_number?: string; readonly revision_height?: string; } -export declare function omitDefault(input: T): T | undefined; +export declare function omitDefault(input: T): T | undefined; interface Duration { /** * Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years */ - seconds: Long; + seconds: bigint; /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 @@ -35,24 +33,24 @@ export declare function isSet(value: any): boolean; export declare function isObject(value: any): boolean; export interface PageRequest { key: Uint8Array; - offset: Long; - limit: Long; + offset: bigint; + limit: bigint; countTotal: boolean; reverse: boolean; } export interface PageRequestParams { - "pagination.key"?: string; - "pagination.offset"?: string; - "pagination.limit"?: string; - "pagination.count_total"?: boolean; - "pagination.reverse"?: boolean; + 'pagination.key'?: string; + 'pagination.offset'?: string; + 'pagination.limit'?: string; + 'pagination.count_total'?: boolean; + 'pagination.reverse'?: boolean; } export interface Params { params: PageRequestParams; } export declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params; -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; -export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { +type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined; +export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; @@ -68,7 +66,7 @@ interface Timestamp { * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to * 9999-12-31T23:59:59Z inclusive. */ - seconds: Long; + seconds: bigint; /** * Non-negative fractions of a second at nanosecond resolution. Negative * second values with fractions must still have non-negative nanos values @@ -80,3 +78,4 @@ interface Timestamp { export declare function toTimestamp(date: Date): Timestamp; export declare function fromTimestamp(t: Timestamp): Date; export declare function fromJsonTimestamp(o: any): Timestamp; +export {}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts index 38ed6404..d4176dda 100644 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +++ b/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts @@ -1,5 +1,5 @@ import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** GenesisState defines the ibc-transfer genesis state */ export interface GenesisState { portId: string; @@ -12,8 +12,8 @@ export interface GenesisStateProtoMsg { } /** GenesisState defines the ibc-transfer genesis state */ export interface GenesisStateAmino { - port_id: string; - denom_traces: DenomTraceAmino[]; + port_id?: string; + denom_traces?: DenomTraceAmino[]; params?: ParamsAmino; } export interface GenesisStateAminoMsg { @@ -27,8 +27,9 @@ export interface GenesisStateSDKType { params: ParamsSDKType; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts index 75ccbdf2..e40b3f47 100644 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts +++ b/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC * method @@ -19,7 +19,7 @@ export interface QueryDenomTraceRequestProtoMsg { */ export interface QueryDenomTraceRequestAmino { /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash: string; + hash?: string; } export interface QueryDenomTraceRequestAminoMsg { type: "cosmos-sdk/QueryDenomTraceRequest"; @@ -38,7 +38,7 @@ export interface QueryDenomTraceRequestSDKType { */ export interface QueryDenomTraceResponse { /** denom_trace returns the requested denomination trace information. */ - denomTrace: DenomTrace; + denomTrace?: DenomTrace; } export interface QueryDenomTraceResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; @@ -61,7 +61,7 @@ export interface QueryDenomTraceResponseAminoMsg { * method. */ export interface QueryDenomTraceResponseSDKType { - denom_trace: DenomTraceSDKType; + denom_trace?: DenomTraceSDKType; } /** * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC @@ -69,7 +69,7 @@ export interface QueryDenomTraceResponseSDKType { */ export interface QueryDenomTracesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryDenomTracesRequestProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; @@ -92,7 +92,7 @@ export interface QueryDenomTracesRequestAminoMsg { * method */ export interface QueryDenomTracesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC @@ -102,7 +102,7 @@ export interface QueryDenomTracesResponse { /** denom_traces returns all denominations trace information. */ denomTraces: DenomTrace[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryDenomTracesResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; @@ -114,7 +114,7 @@ export interface QueryDenomTracesResponseProtoMsg { */ export interface QueryDenomTracesResponseAmino { /** denom_traces returns all denominations trace information. */ - denom_traces: DenomTraceAmino[]; + denom_traces?: DenomTraceAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -128,7 +128,7 @@ export interface QueryDenomTracesResponseAminoMsg { */ export interface QueryDenomTracesResponseSDKType { denom_traces: DenomTraceSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { @@ -150,7 +150,7 @@ export interface QueryParamsRequestSDKType { /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ - params: Params; + params?: Params; } export interface QueryParamsResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; @@ -167,7 +167,7 @@ export interface QueryParamsResponseAminoMsg { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { - params: ParamsSDKType; + params?: ParamsSDKType; } /** * QueryDenomHashRequest is the request type for the Query/DenomHash RPC @@ -187,7 +187,7 @@ export interface QueryDenomHashRequestProtoMsg { */ export interface QueryDenomHashRequestAmino { /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace: string; + trace?: string; } export interface QueryDenomHashRequestAminoMsg { type: "cosmos-sdk/QueryDenomHashRequest"; @@ -218,7 +218,7 @@ export interface QueryDenomHashResponseProtoMsg { */ export interface QueryDenomHashResponseAmino { /** hash (in hex format) of the denomination trace information. */ - hash: string; + hash?: string; } export interface QueryDenomHashResponseAminoMsg { type: "cosmos-sdk/QueryDenomHashResponse"; @@ -245,9 +245,9 @@ export interface QueryEscrowAddressRequestProtoMsg { /** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ export interface QueryEscrowAddressRequestAmino { /** unique port identifier */ - port_id: string; + port_id?: string; /** unique channel identifier */ - channel_id: string; + channel_id?: string; } export interface QueryEscrowAddressRequestAminoMsg { type: "cosmos-sdk/QueryEscrowAddressRequest"; @@ -270,7 +270,7 @@ export interface QueryEscrowAddressResponseProtoMsg { /** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ export interface QueryEscrowAddressResponseAmino { /** the escrow account address */ - escrow_address: string; + escrow_address?: string; } export interface QueryEscrowAddressResponseAminoMsg { type: "cosmos-sdk/QueryEscrowAddressResponse"; @@ -281,8 +281,9 @@ export interface QueryEscrowAddressResponseSDKType { escrow_address: string; } export declare const QueryDenomTraceRequest: { - encode(message: QueryDenomTraceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceRequest; + typeUrl: string; + encode(message: QueryDenomTraceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest; fromJSON(object: any): QueryDenomTraceRequest; toJSON(message: QueryDenomTraceRequest): unknown; fromPartial(object: Partial): QueryDenomTraceRequest; @@ -295,8 +296,9 @@ export declare const QueryDenomTraceRequest: { toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg; }; export declare const QueryDenomTraceResponse: { - encode(message: QueryDenomTraceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceResponse; + typeUrl: string; + encode(message: QueryDenomTraceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse; fromJSON(object: any): QueryDenomTraceResponse; toJSON(message: QueryDenomTraceResponse): unknown; fromPartial(object: Partial): QueryDenomTraceResponse; @@ -309,8 +311,9 @@ export declare const QueryDenomTraceResponse: { toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg; }; export declare const QueryDenomTracesRequest: { - encode(message: QueryDenomTracesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesRequest; + typeUrl: string; + encode(message: QueryDenomTracesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest; fromJSON(object: any): QueryDenomTracesRequest; toJSON(message: QueryDenomTracesRequest): unknown; fromPartial(object: Partial): QueryDenomTracesRequest; @@ -323,8 +326,9 @@ export declare const QueryDenomTracesRequest: { toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg; }; export declare const QueryDenomTracesResponse: { - encode(message: QueryDenomTracesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesResponse; + typeUrl: string; + encode(message: QueryDenomTracesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse; fromJSON(object: any): QueryDenomTracesResponse; toJSON(message: QueryDenomTracesResponse): unknown; fromPartial(object: Partial): QueryDenomTracesResponse; @@ -337,8 +341,9 @@ export declare const QueryDenomTracesResponse: { toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -351,8 +356,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -365,8 +371,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryDenomHashRequest: { - encode(message: QueryDenomHashRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomHashRequest; + typeUrl: string; + encode(message: QueryDenomHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest; fromJSON(object: any): QueryDenomHashRequest; toJSON(message: QueryDenomHashRequest): unknown; fromPartial(object: Partial): QueryDenomHashRequest; @@ -379,8 +386,9 @@ export declare const QueryDenomHashRequest: { toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg; }; export declare const QueryDenomHashResponse: { - encode(message: QueryDenomHashResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomHashResponse; + typeUrl: string; + encode(message: QueryDenomHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse; fromJSON(object: any): QueryDenomHashResponse; toJSON(message: QueryDenomHashResponse): unknown; fromPartial(object: Partial): QueryDenomHashResponse; @@ -393,8 +401,9 @@ export declare const QueryDenomHashResponse: { toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg; }; export declare const QueryEscrowAddressRequest: { - encode(message: QueryEscrowAddressRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEscrowAddressRequest; + typeUrl: string; + encode(message: QueryEscrowAddressRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest; fromJSON(object: any): QueryEscrowAddressRequest; toJSON(message: QueryEscrowAddressRequest): unknown; fromPartial(object: Partial): QueryEscrowAddressRequest; @@ -407,8 +416,9 @@ export declare const QueryEscrowAddressRequest: { toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg; }; export declare const QueryEscrowAddressResponse: { - encode(message: QueryEscrowAddressResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEscrowAddressResponse; + typeUrl: string; + encode(message: QueryEscrowAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse; fromJSON(object: any): QueryEscrowAddressResponse; toJSON(message: QueryEscrowAddressResponse): unknown; fromPartial(object: Partial): QueryEscrowAddressResponse; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts index 3c02e8aa..8c8ba879 100644 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts index ecdc0930..d2b412f7 100644 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +++ b/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * DenomTrace contains the base denomination for ICS20 fungible tokens and the * source tracing information path. @@ -25,9 +25,9 @@ export interface DenomTraceAmino { * path defines the chain of port/channel identifiers used for tracing the * source of the fungible token. */ - path: string; + path?: string; /** base denomination of the relayed fungible token. */ - base_denom: string; + base_denom?: string; } export interface DenomTraceAminoMsg { type: "cosmos-sdk/DenomTrace"; @@ -74,12 +74,12 @@ export interface ParamsAmino { * send_enabled enables or disables all cross-chain token transfers from this * chain. */ - send_enabled: boolean; + send_enabled?: boolean; /** * receive_enabled enables or disables all cross-chain token transfers to this * chain. */ - receive_enabled: boolean; + receive_enabled?: boolean; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -96,8 +96,9 @@ export interface ParamsSDKType { receive_enabled: boolean; } export declare const DenomTrace: { - encode(message: DenomTrace, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DenomTrace; + typeUrl: string; + encode(message: DenomTrace, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace; fromJSON(object: any): DenomTrace; toJSON(message: DenomTrace): unknown; fromPartial(object: Partial): DenomTrace; @@ -110,8 +111,9 @@ export declare const DenomTrace: { toProtoMsg(message: DenomTrace): DenomTraceProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts index 75d2babc..2e23d057 100644 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts +++ b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts @@ -1,7 +1,6 @@ import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between * ICS20 enabled chains. See ICS Spec here: @@ -27,7 +26,7 @@ export interface MsgTransfer { * Timeout timestamp in absolute nanoseconds since unix epoch. * The timeout is disabled when set to 0. */ - timeoutTimestamp: Long; + timeoutTimestamp: bigint; } export interface MsgTransferProtoMsg { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; @@ -40,15 +39,15 @@ export interface MsgTransferProtoMsg { */ export interface MsgTransferAmino { /** the port on which the packet will be sent */ - source_port: string; + source_port?: string; /** the channel by which the packet will be sent */ - source_channel: string; + source_channel?: string; /** the tokens to be transferred */ token?: CoinAmino; /** the sender address */ - sender: string; + sender?: string; /** the recipient address on the destination chain */ - receiver: string; + receiver?: string; /** * Timeout height relative to the current block height. * The timeout is disabled when set to 0. @@ -58,7 +57,7 @@ export interface MsgTransferAmino { * Timeout timestamp in absolute nanoseconds since unix epoch. * The timeout is disabled when set to 0. */ - timeout_timestamp: string; + timeout_timestamp?: string; } export interface MsgTransferAminoMsg { type: "cosmos-sdk/MsgTransfer"; @@ -76,7 +75,7 @@ export interface MsgTransferSDKType { sender: string; receiver: string; timeout_height: HeightSDKType; - timeout_timestamp: Long; + timeout_timestamp: bigint; } /** MsgTransferResponse defines the Msg/Transfer response type. */ export interface MsgTransferResponse { @@ -96,8 +95,9 @@ export interface MsgTransferResponseAminoMsg { export interface MsgTransferResponseSDKType { } export declare const MsgTransfer: { - encode(message: MsgTransfer, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransfer; + typeUrl: string; + encode(message: MsgTransfer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer; fromJSON(object: any): MsgTransfer; toJSON(message: MsgTransfer): unknown; fromPartial(object: Partial): MsgTransfer; @@ -110,8 +110,9 @@ export declare const MsgTransfer: { toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg; }; export declare const MsgTransferResponse: { - encode(_: MsgTransferResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferResponse; + typeUrl: string; + encode(_: MsgTransferResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse; fromJSON(_: any): MsgTransferResponse; toJSON(_: MsgTransferResponse): unknown; fromPartial(_: Partial): MsgTransferResponse; diff --git a/packages/api/types/codegen/ibc/bundle.d.ts b/packages/api/types/codegen/ibc/bundle.d.ts index 31fa3aa6..31d85fef 100644 --- a/packages/api/types/codegen/ibc/bundle.d.ts +++ b/packages/api/types/codegen/ibc/bundle.d.ts @@ -1,48 +1,48 @@ -import * as _104 from "./applications/transfer/v1/genesis"; -import * as _105 from "./applications/transfer/v1/query"; -import * as _106 from "./applications/transfer/v1/transfer"; -import * as _107 from "./applications/transfer/v1/tx"; -import * as _108 from "./core/client/v1/client"; -import * as _109 from "./core/client/v1/genesis"; -import * as _110 from "./core/client/v1/query"; -import * as _111 from "./core/client/v1/tx"; -import * as _234 from "./applications/transfer/v1/query.lcd"; -import * as _235 from "./core/client/v1/query.lcd"; -import * as _236 from "./applications/transfer/v1/query.rpc.Query"; -import * as _237 from "./core/client/v1/query.rpc.Query"; -import * as _238 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _239 from "./core/client/v1/tx.rpc.msg"; +import * as _105 from "./applications/transfer/v1/genesis"; +import * as _106 from "./applications/transfer/v1/query"; +import * as _107 from "./applications/transfer/v1/transfer"; +import * as _108 from "./applications/transfer/v1/tx"; +import * as _109 from "./core/client/v1/client"; +import * as _110 from "./core/client/v1/genesis"; +import * as _111 from "./core/client/v1/query"; +import * as _112 from "./core/client/v1/tx"; +import * as _235 from "./applications/transfer/v1/query.lcd"; +import * as _236 from "./core/client/v1/query.lcd"; +import * as _237 from "./applications/transfer/v1/query.rpc.Query"; +import * as _238 from "./core/client/v1/query.rpc.Query"; +import * as _239 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _240 from "./core/client/v1/tx.rpc.msg"; export declare namespace ibc { namespace applications { namespace transfer { const v1: { - MsgClientImpl: typeof _238.MsgClientImpl; - QueryClientImpl: typeof _236.QueryClientImpl; + MsgClientImpl: typeof _239.MsgClientImpl; + QueryClientImpl: typeof _237.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - denomTrace(request: _105.QueryDenomTraceRequest): Promise<_105.QueryDenomTraceResponse>; - denomTraces(request?: _105.QueryDenomTracesRequest | undefined): Promise<_105.QueryDenomTracesResponse>; - params(request?: _105.QueryParamsRequest | undefined): Promise<_105.QueryParamsResponse>; - denomHash(request: _105.QueryDenomHashRequest): Promise<_105.QueryDenomHashResponse>; - escrowAddress(request: _105.QueryEscrowAddressRequest): Promise<_105.QueryEscrowAddressResponse>; + denomTrace(request: _106.QueryDenomTraceRequest): Promise<_106.QueryDenomTraceResponse>; + denomTraces(request?: _106.QueryDenomTracesRequest | undefined): Promise<_106.QueryDenomTracesResponse>; + params(request?: _106.QueryParamsRequest | undefined): Promise<_106.QueryParamsResponse>; + denomHash(request: _106.QueryDenomHashRequest): Promise<_106.QueryDenomHashResponse>; + escrowAddress(request: _106.QueryEscrowAddressRequest): Promise<_106.QueryEscrowAddressResponse>; }; - LCDQueryClient: typeof _234.LCDQueryClient; + LCDQueryClient: typeof _235.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - transfer(value: _107.MsgTransfer): { + transfer(value: _108.MsgTransfer): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - transfer(value: _107.MsgTransfer): { + transfer(value: _108.MsgTransfer): { typeUrl: string; - value: _107.MsgTransfer; + value: _108.MsgTransfer; }; }; toJSON: { - transfer(value: _107.MsgTransfer): { + transfer(value: _108.MsgTransfer): { typeUrl: string; value: unknown; }; @@ -50,232 +50,247 @@ export declare namespace ibc { fromJSON: { transfer(value: any): { typeUrl: string; - value: _107.MsgTransfer; + value: _108.MsgTransfer; }; }; fromPartial: { - transfer(value: _107.MsgTransfer): { + transfer(value: _108.MsgTransfer): { typeUrl: string; - value: _107.MsgTransfer; + value: _108.MsgTransfer; }; }; }; AminoConverter: { "/ibc.applications.transfer.v1.MsgTransfer": { aminoType: string; - toAmino: (message: _107.MsgTransfer) => _107.MsgTransferAmino; - fromAmino: (object: _107.MsgTransferAmino) => _107.MsgTransfer; + toAmino: (message: _108.MsgTransfer) => _108.MsgTransferAmino; + fromAmino: (object: _108.MsgTransferAmino) => _108.MsgTransfer; }; }; MsgTransfer: { - encode(message: _107.MsgTransfer, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _107.MsgTransfer; - fromJSON(object: any): _107.MsgTransfer; - toJSON(message: _107.MsgTransfer): unknown; - fromPartial(object: Partial<_107.MsgTransfer>): _107.MsgTransfer; - fromAmino(object: _107.MsgTransferAmino): _107.MsgTransfer; - toAmino(message: _107.MsgTransfer): _107.MsgTransferAmino; - fromAminoMsg(object: _107.MsgTransferAminoMsg): _107.MsgTransfer; - toAminoMsg(message: _107.MsgTransfer): _107.MsgTransferAminoMsg; - fromProtoMsg(message: _107.MsgTransferProtoMsg): _107.MsgTransfer; - toProto(message: _107.MsgTransfer): Uint8Array; - toProtoMsg(message: _107.MsgTransfer): _107.MsgTransferProtoMsg; + typeUrl: string; + encode(message: _108.MsgTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _108.MsgTransfer; + fromJSON(object: any): _108.MsgTransfer; + toJSON(message: _108.MsgTransfer): unknown; + fromPartial(object: Partial<_108.MsgTransfer>): _108.MsgTransfer; + fromAmino(object: _108.MsgTransferAmino): _108.MsgTransfer; + toAmino(message: _108.MsgTransfer): _108.MsgTransferAmino; + fromAminoMsg(object: _108.MsgTransferAminoMsg): _108.MsgTransfer; + toAminoMsg(message: _108.MsgTransfer): _108.MsgTransferAminoMsg; + fromProtoMsg(message: _108.MsgTransferProtoMsg): _108.MsgTransfer; + toProto(message: _108.MsgTransfer): Uint8Array; + toProtoMsg(message: _108.MsgTransfer): _108.MsgTransferProtoMsg; }; MsgTransferResponse: { - encode(_: _107.MsgTransferResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _107.MsgTransferResponse; - fromJSON(_: any): _107.MsgTransferResponse; - toJSON(_: _107.MsgTransferResponse): unknown; - fromPartial(_: Partial<_107.MsgTransferResponse>): _107.MsgTransferResponse; - fromAmino(_: _107.MsgTransferResponseAmino): _107.MsgTransferResponse; - toAmino(_: _107.MsgTransferResponse): _107.MsgTransferResponseAmino; - fromAminoMsg(object: _107.MsgTransferResponseAminoMsg): _107.MsgTransferResponse; - toAminoMsg(message: _107.MsgTransferResponse): _107.MsgTransferResponseAminoMsg; - fromProtoMsg(message: _107.MsgTransferResponseProtoMsg): _107.MsgTransferResponse; - toProto(message: _107.MsgTransferResponse): Uint8Array; - toProtoMsg(message: _107.MsgTransferResponse): _107.MsgTransferResponseProtoMsg; + typeUrl: string; + encode(_: _108.MsgTransferResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _108.MsgTransferResponse; + fromJSON(_: any): _108.MsgTransferResponse; + toJSON(_: _108.MsgTransferResponse): unknown; + fromPartial(_: Partial<_108.MsgTransferResponse>): _108.MsgTransferResponse; + fromAmino(_: _108.MsgTransferResponseAmino): _108.MsgTransferResponse; + toAmino(_: _108.MsgTransferResponse): _108.MsgTransferResponseAmino; + fromAminoMsg(object: _108.MsgTransferResponseAminoMsg): _108.MsgTransferResponse; + toAminoMsg(message: _108.MsgTransferResponse): _108.MsgTransferResponseAminoMsg; + fromProtoMsg(message: _108.MsgTransferResponseProtoMsg): _108.MsgTransferResponse; + toProto(message: _108.MsgTransferResponse): Uint8Array; + toProtoMsg(message: _108.MsgTransferResponse): _108.MsgTransferResponseProtoMsg; }; DenomTrace: { - encode(message: _106.DenomTrace, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _106.DenomTrace; - fromJSON(object: any): _106.DenomTrace; - toJSON(message: _106.DenomTrace): unknown; - fromPartial(object: Partial<_106.DenomTrace>): _106.DenomTrace; - fromAmino(object: _106.DenomTraceAmino): _106.DenomTrace; - toAmino(message: _106.DenomTrace): _106.DenomTraceAmino; - fromAminoMsg(object: _106.DenomTraceAminoMsg): _106.DenomTrace; - toAminoMsg(message: _106.DenomTrace): _106.DenomTraceAminoMsg; - fromProtoMsg(message: _106.DenomTraceProtoMsg): _106.DenomTrace; - toProto(message: _106.DenomTrace): Uint8Array; - toProtoMsg(message: _106.DenomTrace): _106.DenomTraceProtoMsg; + typeUrl: string; + encode(message: _107.DenomTrace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _107.DenomTrace; + fromJSON(object: any): _107.DenomTrace; + toJSON(message: _107.DenomTrace): unknown; + fromPartial(object: Partial<_107.DenomTrace>): _107.DenomTrace; + fromAmino(object: _107.DenomTraceAmino): _107.DenomTrace; + toAmino(message: _107.DenomTrace): _107.DenomTraceAmino; + fromAminoMsg(object: _107.DenomTraceAminoMsg): _107.DenomTrace; + toAminoMsg(message: _107.DenomTrace): _107.DenomTraceAminoMsg; + fromProtoMsg(message: _107.DenomTraceProtoMsg): _107.DenomTrace; + toProto(message: _107.DenomTrace): Uint8Array; + toProtoMsg(message: _107.DenomTrace): _107.DenomTraceProtoMsg; }; Params: { - encode(message: _106.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _106.Params; - fromJSON(object: any): _106.Params; - toJSON(message: _106.Params): unknown; - fromPartial(object: Partial<_106.Params>): _106.Params; - fromAmino(object: _106.ParamsAmino): _106.Params; - toAmino(message: _106.Params): _106.ParamsAmino; - fromAminoMsg(object: _106.ParamsAminoMsg): _106.Params; - toAminoMsg(message: _106.Params): _106.ParamsAminoMsg; - fromProtoMsg(message: _106.ParamsProtoMsg): _106.Params; - toProto(message: _106.Params): Uint8Array; - toProtoMsg(message: _106.Params): _106.ParamsProtoMsg; + typeUrl: string; + encode(message: _107.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _107.Params; + fromJSON(object: any): _107.Params; + toJSON(message: _107.Params): unknown; + fromPartial(object: Partial<_107.Params>): _107.Params; + fromAmino(object: _107.ParamsAmino): _107.Params; + toAmino(message: _107.Params): _107.ParamsAmino; + fromAminoMsg(object: _107.ParamsAminoMsg): _107.Params; + toAminoMsg(message: _107.Params): _107.ParamsAminoMsg; + fromProtoMsg(message: _107.ParamsProtoMsg): _107.Params; + toProto(message: _107.Params): Uint8Array; + toProtoMsg(message: _107.Params): _107.ParamsProtoMsg; }; QueryDenomTraceRequest: { - encode(message: _105.QueryDenomTraceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomTraceRequest; - fromJSON(object: any): _105.QueryDenomTraceRequest; - toJSON(message: _105.QueryDenomTraceRequest): unknown; - fromPartial(object: Partial<_105.QueryDenomTraceRequest>): _105.QueryDenomTraceRequest; - fromAmino(object: _105.QueryDenomTraceRequestAmino): _105.QueryDenomTraceRequest; - toAmino(message: _105.QueryDenomTraceRequest): _105.QueryDenomTraceRequestAmino; - fromAminoMsg(object: _105.QueryDenomTraceRequestAminoMsg): _105.QueryDenomTraceRequest; - toAminoMsg(message: _105.QueryDenomTraceRequest): _105.QueryDenomTraceRequestAminoMsg; - fromProtoMsg(message: _105.QueryDenomTraceRequestProtoMsg): _105.QueryDenomTraceRequest; - toProto(message: _105.QueryDenomTraceRequest): Uint8Array; - toProtoMsg(message: _105.QueryDenomTraceRequest): _105.QueryDenomTraceRequestProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomTraceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTraceRequest; + fromJSON(object: any): _106.QueryDenomTraceRequest; + toJSON(message: _106.QueryDenomTraceRequest): unknown; + fromPartial(object: Partial<_106.QueryDenomTraceRequest>): _106.QueryDenomTraceRequest; + fromAmino(object: _106.QueryDenomTraceRequestAmino): _106.QueryDenomTraceRequest; + toAmino(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestAmino; + fromAminoMsg(object: _106.QueryDenomTraceRequestAminoMsg): _106.QueryDenomTraceRequest; + toAminoMsg(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestAminoMsg; + fromProtoMsg(message: _106.QueryDenomTraceRequestProtoMsg): _106.QueryDenomTraceRequest; + toProto(message: _106.QueryDenomTraceRequest): Uint8Array; + toProtoMsg(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestProtoMsg; }; QueryDenomTraceResponse: { - encode(message: _105.QueryDenomTraceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomTraceResponse; - fromJSON(object: any): _105.QueryDenomTraceResponse; - toJSON(message: _105.QueryDenomTraceResponse): unknown; - fromPartial(object: Partial<_105.QueryDenomTraceResponse>): _105.QueryDenomTraceResponse; - fromAmino(object: _105.QueryDenomTraceResponseAmino): _105.QueryDenomTraceResponse; - toAmino(message: _105.QueryDenomTraceResponse): _105.QueryDenomTraceResponseAmino; - fromAminoMsg(object: _105.QueryDenomTraceResponseAminoMsg): _105.QueryDenomTraceResponse; - toAminoMsg(message: _105.QueryDenomTraceResponse): _105.QueryDenomTraceResponseAminoMsg; - fromProtoMsg(message: _105.QueryDenomTraceResponseProtoMsg): _105.QueryDenomTraceResponse; - toProto(message: _105.QueryDenomTraceResponse): Uint8Array; - toProtoMsg(message: _105.QueryDenomTraceResponse): _105.QueryDenomTraceResponseProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomTraceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTraceResponse; + fromJSON(object: any): _106.QueryDenomTraceResponse; + toJSON(message: _106.QueryDenomTraceResponse): unknown; + fromPartial(object: Partial<_106.QueryDenomTraceResponse>): _106.QueryDenomTraceResponse; + fromAmino(object: _106.QueryDenomTraceResponseAmino): _106.QueryDenomTraceResponse; + toAmino(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseAmino; + fromAminoMsg(object: _106.QueryDenomTraceResponseAminoMsg): _106.QueryDenomTraceResponse; + toAminoMsg(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseAminoMsg; + fromProtoMsg(message: _106.QueryDenomTraceResponseProtoMsg): _106.QueryDenomTraceResponse; + toProto(message: _106.QueryDenomTraceResponse): Uint8Array; + toProtoMsg(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseProtoMsg; }; QueryDenomTracesRequest: { - encode(message: _105.QueryDenomTracesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomTracesRequest; - fromJSON(object: any): _105.QueryDenomTracesRequest; - toJSON(message: _105.QueryDenomTracesRequest): unknown; - fromPartial(object: Partial<_105.QueryDenomTracesRequest>): _105.QueryDenomTracesRequest; - fromAmino(object: _105.QueryDenomTracesRequestAmino): _105.QueryDenomTracesRequest; - toAmino(message: _105.QueryDenomTracesRequest): _105.QueryDenomTracesRequestAmino; - fromAminoMsg(object: _105.QueryDenomTracesRequestAminoMsg): _105.QueryDenomTracesRequest; - toAminoMsg(message: _105.QueryDenomTracesRequest): _105.QueryDenomTracesRequestAminoMsg; - fromProtoMsg(message: _105.QueryDenomTracesRequestProtoMsg): _105.QueryDenomTracesRequest; - toProto(message: _105.QueryDenomTracesRequest): Uint8Array; - toProtoMsg(message: _105.QueryDenomTracesRequest): _105.QueryDenomTracesRequestProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomTracesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTracesRequest; + fromJSON(object: any): _106.QueryDenomTracesRequest; + toJSON(message: _106.QueryDenomTracesRequest): unknown; + fromPartial(object: Partial<_106.QueryDenomTracesRequest>): _106.QueryDenomTracesRequest; + fromAmino(object: _106.QueryDenomTracesRequestAmino): _106.QueryDenomTracesRequest; + toAmino(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestAmino; + fromAminoMsg(object: _106.QueryDenomTracesRequestAminoMsg): _106.QueryDenomTracesRequest; + toAminoMsg(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestAminoMsg; + fromProtoMsg(message: _106.QueryDenomTracesRequestProtoMsg): _106.QueryDenomTracesRequest; + toProto(message: _106.QueryDenomTracesRequest): Uint8Array; + toProtoMsg(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestProtoMsg; }; QueryDenomTracesResponse: { - encode(message: _105.QueryDenomTracesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomTracesResponse; - fromJSON(object: any): _105.QueryDenomTracesResponse; - toJSON(message: _105.QueryDenomTracesResponse): unknown; - fromPartial(object: Partial<_105.QueryDenomTracesResponse>): _105.QueryDenomTracesResponse; - fromAmino(object: _105.QueryDenomTracesResponseAmino): _105.QueryDenomTracesResponse; - toAmino(message: _105.QueryDenomTracesResponse): _105.QueryDenomTracesResponseAmino; - fromAminoMsg(object: _105.QueryDenomTracesResponseAminoMsg): _105.QueryDenomTracesResponse; - toAminoMsg(message: _105.QueryDenomTracesResponse): _105.QueryDenomTracesResponseAminoMsg; - fromProtoMsg(message: _105.QueryDenomTracesResponseProtoMsg): _105.QueryDenomTracesResponse; - toProto(message: _105.QueryDenomTracesResponse): Uint8Array; - toProtoMsg(message: _105.QueryDenomTracesResponse): _105.QueryDenomTracesResponseProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomTracesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTracesResponse; + fromJSON(object: any): _106.QueryDenomTracesResponse; + toJSON(message: _106.QueryDenomTracesResponse): unknown; + fromPartial(object: Partial<_106.QueryDenomTracesResponse>): _106.QueryDenomTracesResponse; + fromAmino(object: _106.QueryDenomTracesResponseAmino): _106.QueryDenomTracesResponse; + toAmino(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseAmino; + fromAminoMsg(object: _106.QueryDenomTracesResponseAminoMsg): _106.QueryDenomTracesResponse; + toAminoMsg(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseAminoMsg; + fromProtoMsg(message: _106.QueryDenomTracesResponseProtoMsg): _106.QueryDenomTracesResponse; + toProto(message: _106.QueryDenomTracesResponse): Uint8Array; + toProtoMsg(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _105.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryParamsRequest; - fromJSON(_: any): _105.QueryParamsRequest; - toJSON(_: _105.QueryParamsRequest): unknown; - fromPartial(_: Partial<_105.QueryParamsRequest>): _105.QueryParamsRequest; - fromAmino(_: _105.QueryParamsRequestAmino): _105.QueryParamsRequest; - toAmino(_: _105.QueryParamsRequest): _105.QueryParamsRequestAmino; - fromAminoMsg(object: _105.QueryParamsRequestAminoMsg): _105.QueryParamsRequest; - toAminoMsg(message: _105.QueryParamsRequest): _105.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _105.QueryParamsRequestProtoMsg): _105.QueryParamsRequest; - toProto(message: _105.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _105.QueryParamsRequest): _105.QueryParamsRequestProtoMsg; + typeUrl: string; + encode(_: _106.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryParamsRequest; + fromJSON(_: any): _106.QueryParamsRequest; + toJSON(_: _106.QueryParamsRequest): unknown; + fromPartial(_: Partial<_106.QueryParamsRequest>): _106.QueryParamsRequest; + fromAmino(_: _106.QueryParamsRequestAmino): _106.QueryParamsRequest; + toAmino(_: _106.QueryParamsRequest): _106.QueryParamsRequestAmino; + fromAminoMsg(object: _106.QueryParamsRequestAminoMsg): _106.QueryParamsRequest; + toAminoMsg(message: _106.QueryParamsRequest): _106.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _106.QueryParamsRequestProtoMsg): _106.QueryParamsRequest; + toProto(message: _106.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _106.QueryParamsRequest): _106.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _105.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryParamsResponse; - fromJSON(object: any): _105.QueryParamsResponse; - toJSON(message: _105.QueryParamsResponse): unknown; - fromPartial(object: Partial<_105.QueryParamsResponse>): _105.QueryParamsResponse; - fromAmino(object: _105.QueryParamsResponseAmino): _105.QueryParamsResponse; - toAmino(message: _105.QueryParamsResponse): _105.QueryParamsResponseAmino; - fromAminoMsg(object: _105.QueryParamsResponseAminoMsg): _105.QueryParamsResponse; - toAminoMsg(message: _105.QueryParamsResponse): _105.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _105.QueryParamsResponseProtoMsg): _105.QueryParamsResponse; - toProto(message: _105.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _105.QueryParamsResponse): _105.QueryParamsResponseProtoMsg; + typeUrl: string; + encode(message: _106.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryParamsResponse; + fromJSON(object: any): _106.QueryParamsResponse; + toJSON(message: _106.QueryParamsResponse): unknown; + fromPartial(object: Partial<_106.QueryParamsResponse>): _106.QueryParamsResponse; + fromAmino(object: _106.QueryParamsResponseAmino): _106.QueryParamsResponse; + toAmino(message: _106.QueryParamsResponse): _106.QueryParamsResponseAmino; + fromAminoMsg(object: _106.QueryParamsResponseAminoMsg): _106.QueryParamsResponse; + toAminoMsg(message: _106.QueryParamsResponse): _106.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _106.QueryParamsResponseProtoMsg): _106.QueryParamsResponse; + toProto(message: _106.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _106.QueryParamsResponse): _106.QueryParamsResponseProtoMsg; }; QueryDenomHashRequest: { - encode(message: _105.QueryDenomHashRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomHashRequest; - fromJSON(object: any): _105.QueryDenomHashRequest; - toJSON(message: _105.QueryDenomHashRequest): unknown; - fromPartial(object: Partial<_105.QueryDenomHashRequest>): _105.QueryDenomHashRequest; - fromAmino(object: _105.QueryDenomHashRequestAmino): _105.QueryDenomHashRequest; - toAmino(message: _105.QueryDenomHashRequest): _105.QueryDenomHashRequestAmino; - fromAminoMsg(object: _105.QueryDenomHashRequestAminoMsg): _105.QueryDenomHashRequest; - toAminoMsg(message: _105.QueryDenomHashRequest): _105.QueryDenomHashRequestAminoMsg; - fromProtoMsg(message: _105.QueryDenomHashRequestProtoMsg): _105.QueryDenomHashRequest; - toProto(message: _105.QueryDenomHashRequest): Uint8Array; - toProtoMsg(message: _105.QueryDenomHashRequest): _105.QueryDenomHashRequestProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomHashRequest; + fromJSON(object: any): _106.QueryDenomHashRequest; + toJSON(message: _106.QueryDenomHashRequest): unknown; + fromPartial(object: Partial<_106.QueryDenomHashRequest>): _106.QueryDenomHashRequest; + fromAmino(object: _106.QueryDenomHashRequestAmino): _106.QueryDenomHashRequest; + toAmino(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestAmino; + fromAminoMsg(object: _106.QueryDenomHashRequestAminoMsg): _106.QueryDenomHashRequest; + toAminoMsg(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestAminoMsg; + fromProtoMsg(message: _106.QueryDenomHashRequestProtoMsg): _106.QueryDenomHashRequest; + toProto(message: _106.QueryDenomHashRequest): Uint8Array; + toProtoMsg(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestProtoMsg; }; QueryDenomHashResponse: { - encode(message: _105.QueryDenomHashResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryDenomHashResponse; - fromJSON(object: any): _105.QueryDenomHashResponse; - toJSON(message: _105.QueryDenomHashResponse): unknown; - fromPartial(object: Partial<_105.QueryDenomHashResponse>): _105.QueryDenomHashResponse; - fromAmino(object: _105.QueryDenomHashResponseAmino): _105.QueryDenomHashResponse; - toAmino(message: _105.QueryDenomHashResponse): _105.QueryDenomHashResponseAmino; - fromAminoMsg(object: _105.QueryDenomHashResponseAminoMsg): _105.QueryDenomHashResponse; - toAminoMsg(message: _105.QueryDenomHashResponse): _105.QueryDenomHashResponseAminoMsg; - fromProtoMsg(message: _105.QueryDenomHashResponseProtoMsg): _105.QueryDenomHashResponse; - toProto(message: _105.QueryDenomHashResponse): Uint8Array; - toProtoMsg(message: _105.QueryDenomHashResponse): _105.QueryDenomHashResponseProtoMsg; + typeUrl: string; + encode(message: _106.QueryDenomHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomHashResponse; + fromJSON(object: any): _106.QueryDenomHashResponse; + toJSON(message: _106.QueryDenomHashResponse): unknown; + fromPartial(object: Partial<_106.QueryDenomHashResponse>): _106.QueryDenomHashResponse; + fromAmino(object: _106.QueryDenomHashResponseAmino): _106.QueryDenomHashResponse; + toAmino(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseAmino; + fromAminoMsg(object: _106.QueryDenomHashResponseAminoMsg): _106.QueryDenomHashResponse; + toAminoMsg(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseAminoMsg; + fromProtoMsg(message: _106.QueryDenomHashResponseProtoMsg): _106.QueryDenomHashResponse; + toProto(message: _106.QueryDenomHashResponse): Uint8Array; + toProtoMsg(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseProtoMsg; }; QueryEscrowAddressRequest: { - encode(message: _105.QueryEscrowAddressRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryEscrowAddressRequest; - fromJSON(object: any): _105.QueryEscrowAddressRequest; - toJSON(message: _105.QueryEscrowAddressRequest): unknown; - fromPartial(object: Partial<_105.QueryEscrowAddressRequest>): _105.QueryEscrowAddressRequest; - fromAmino(object: _105.QueryEscrowAddressRequestAmino): _105.QueryEscrowAddressRequest; - toAmino(message: _105.QueryEscrowAddressRequest): _105.QueryEscrowAddressRequestAmino; - fromAminoMsg(object: _105.QueryEscrowAddressRequestAminoMsg): _105.QueryEscrowAddressRequest; - toAminoMsg(message: _105.QueryEscrowAddressRequest): _105.QueryEscrowAddressRequestAminoMsg; - fromProtoMsg(message: _105.QueryEscrowAddressRequestProtoMsg): _105.QueryEscrowAddressRequest; - toProto(message: _105.QueryEscrowAddressRequest): Uint8Array; - toProtoMsg(message: _105.QueryEscrowAddressRequest): _105.QueryEscrowAddressRequestProtoMsg; + typeUrl: string; + encode(message: _106.QueryEscrowAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryEscrowAddressRequest; + fromJSON(object: any): _106.QueryEscrowAddressRequest; + toJSON(message: _106.QueryEscrowAddressRequest): unknown; + fromPartial(object: Partial<_106.QueryEscrowAddressRequest>): _106.QueryEscrowAddressRequest; + fromAmino(object: _106.QueryEscrowAddressRequestAmino): _106.QueryEscrowAddressRequest; + toAmino(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestAmino; + fromAminoMsg(object: _106.QueryEscrowAddressRequestAminoMsg): _106.QueryEscrowAddressRequest; + toAminoMsg(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestAminoMsg; + fromProtoMsg(message: _106.QueryEscrowAddressRequestProtoMsg): _106.QueryEscrowAddressRequest; + toProto(message: _106.QueryEscrowAddressRequest): Uint8Array; + toProtoMsg(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestProtoMsg; }; QueryEscrowAddressResponse: { - encode(message: _105.QueryEscrowAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _105.QueryEscrowAddressResponse; - fromJSON(object: any): _105.QueryEscrowAddressResponse; - toJSON(message: _105.QueryEscrowAddressResponse): unknown; - fromPartial(object: Partial<_105.QueryEscrowAddressResponse>): _105.QueryEscrowAddressResponse; - fromAmino(object: _105.QueryEscrowAddressResponseAmino): _105.QueryEscrowAddressResponse; - toAmino(message: _105.QueryEscrowAddressResponse): _105.QueryEscrowAddressResponseAmino; - fromAminoMsg(object: _105.QueryEscrowAddressResponseAminoMsg): _105.QueryEscrowAddressResponse; - toAminoMsg(message: _105.QueryEscrowAddressResponse): _105.QueryEscrowAddressResponseAminoMsg; - fromProtoMsg(message: _105.QueryEscrowAddressResponseProtoMsg): _105.QueryEscrowAddressResponse; - toProto(message: _105.QueryEscrowAddressResponse): Uint8Array; - toProtoMsg(message: _105.QueryEscrowAddressResponse): _105.QueryEscrowAddressResponseProtoMsg; + typeUrl: string; + encode(message: _106.QueryEscrowAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryEscrowAddressResponse; + fromJSON(object: any): _106.QueryEscrowAddressResponse; + toJSON(message: _106.QueryEscrowAddressResponse): unknown; + fromPartial(object: Partial<_106.QueryEscrowAddressResponse>): _106.QueryEscrowAddressResponse; + fromAmino(object: _106.QueryEscrowAddressResponseAmino): _106.QueryEscrowAddressResponse; + toAmino(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseAmino; + fromAminoMsg(object: _106.QueryEscrowAddressResponseAminoMsg): _106.QueryEscrowAddressResponse; + toAminoMsg(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseAminoMsg; + fromProtoMsg(message: _106.QueryEscrowAddressResponseProtoMsg): _106.QueryEscrowAddressResponse; + toProto(message: _106.QueryEscrowAddressResponse): Uint8Array; + toProtoMsg(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseProtoMsg; }; GenesisState: { - encode(message: _104.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _104.GenesisState; - fromJSON(object: any): _104.GenesisState; - toJSON(message: _104.GenesisState): unknown; - fromPartial(object: Partial<_104.GenesisState>): _104.GenesisState; - fromAmino(object: _104.GenesisStateAmino): _104.GenesisState; - toAmino(message: _104.GenesisState): _104.GenesisStateAmino; - fromAminoMsg(object: _104.GenesisStateAminoMsg): _104.GenesisState; - toAminoMsg(message: _104.GenesisState): _104.GenesisStateAminoMsg; - fromProtoMsg(message: _104.GenesisStateProtoMsg): _104.GenesisState; - toProto(message: _104.GenesisState): Uint8Array; - toProtoMsg(message: _104.GenesisState): _104.GenesisStateProtoMsg; + typeUrl: string; + encode(message: _105.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _105.GenesisState; + fromJSON(object: any): _105.GenesisState; + toJSON(message: _105.GenesisState): unknown; + fromPartial(object: Partial<_105.GenesisState>): _105.GenesisState; + fromAmino(object: _105.GenesisStateAmino): _105.GenesisState; + toAmino(message: _105.GenesisState): _105.GenesisStateAmino; + fromAminoMsg(object: _105.GenesisStateAminoMsg): _105.GenesisState; + toAminoMsg(message: _105.GenesisState): _105.GenesisStateAminoMsg; + fromProtoMsg(message: _105.GenesisStateProtoMsg): _105.GenesisState; + toProto(message: _105.GenesisState): Uint8Array; + toProtoMsg(message: _105.GenesisState): _105.GenesisStateProtoMsg; }; }; } @@ -283,73 +298,73 @@ export declare namespace ibc { namespace core { namespace client { const v1: { - MsgClientImpl: typeof _239.MsgClientImpl; - QueryClientImpl: typeof _237.QueryClientImpl; + MsgClientImpl: typeof _240.MsgClientImpl; + QueryClientImpl: typeof _238.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - clientState(request: _110.QueryClientStateRequest): Promise<_110.QueryClientStateResponse>; - clientStates(request?: _110.QueryClientStatesRequest | undefined): Promise<_110.QueryClientStatesResponse>; - consensusState(request: _110.QueryConsensusStateRequest): Promise<_110.QueryConsensusStateResponse>; - consensusStates(request: _110.QueryConsensusStatesRequest): Promise<_110.QueryConsensusStatesResponse>; - consensusStateHeights(request: _110.QueryConsensusStateHeightsRequest): Promise<_110.QueryConsensusStateHeightsResponse>; - clientStatus(request: _110.QueryClientStatusRequest): Promise<_110.QueryClientStatusResponse>; - clientParams(request?: _110.QueryClientParamsRequest | undefined): Promise<_110.QueryClientParamsResponse>; - upgradedClientState(request?: _110.QueryUpgradedClientStateRequest | undefined): Promise<_110.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _110.QueryUpgradedConsensusStateRequest | undefined): Promise<_110.QueryUpgradedConsensusStateResponse>; - }; - LCDQueryClient: typeof _235.LCDQueryClient; + clientState(request: _111.QueryClientStateRequest): Promise<_111.QueryClientStateResponse>; + clientStates(request?: _111.QueryClientStatesRequest | undefined): Promise<_111.QueryClientStatesResponse>; + consensusState(request: _111.QueryConsensusStateRequest): Promise<_111.QueryConsensusStateResponse>; + consensusStates(request: _111.QueryConsensusStatesRequest): Promise<_111.QueryConsensusStatesResponse>; + consensusStateHeights(request: _111.QueryConsensusStateHeightsRequest): Promise<_111.QueryConsensusStateHeightsResponse>; + clientStatus(request: _111.QueryClientStatusRequest): Promise<_111.QueryClientStatusResponse>; + clientParams(request?: _111.QueryClientParamsRequest | undefined): Promise<_111.QueryClientParamsResponse>; + upgradedClientState(request?: _111.QueryUpgradedClientStateRequest | undefined): Promise<_111.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _111.QueryUpgradedConsensusStateRequest | undefined): Promise<_111.QueryUpgradedConsensusStateResponse>; + }; + LCDQueryClient: typeof _236.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - createClient(value: _111.MsgCreateClient): { + createClient(value: _112.MsgCreateClient): { typeUrl: string; value: Uint8Array; }; - updateClient(value: _111.MsgUpdateClient): { + updateClient(value: _112.MsgUpdateClient): { typeUrl: string; value: Uint8Array; }; - upgradeClient(value: _111.MsgUpgradeClient): { + upgradeClient(value: _112.MsgUpgradeClient): { typeUrl: string; value: Uint8Array; }; - submitMisbehaviour(value: _111.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - createClient(value: _111.MsgCreateClient): { + createClient(value: _112.MsgCreateClient): { typeUrl: string; - value: _111.MsgCreateClient; + value: _112.MsgCreateClient; }; - updateClient(value: _111.MsgUpdateClient): { + updateClient(value: _112.MsgUpdateClient): { typeUrl: string; - value: _111.MsgUpdateClient; + value: _112.MsgUpdateClient; }; - upgradeClient(value: _111.MsgUpgradeClient): { + upgradeClient(value: _112.MsgUpgradeClient): { typeUrl: string; - value: _111.MsgUpgradeClient; + value: _112.MsgUpgradeClient; }; - submitMisbehaviour(value: _111.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { typeUrl: string; - value: _111.MsgSubmitMisbehaviour; + value: _112.MsgSubmitMisbehaviour; }; }; toJSON: { - createClient(value: _111.MsgCreateClient): { + createClient(value: _112.MsgCreateClient): { typeUrl: string; value: unknown; }; - updateClient(value: _111.MsgUpdateClient): { + updateClient(value: _112.MsgUpdateClient): { typeUrl: string; value: unknown; }; - upgradeClient(value: _111.MsgUpgradeClient): { + upgradeClient(value: _112.MsgUpgradeClient): { typeUrl: string; value: unknown; }; - submitMisbehaviour(value: _111.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { typeUrl: string; value: unknown; }; @@ -357,565 +372,601 @@ export declare namespace ibc { fromJSON: { createClient(value: any): { typeUrl: string; - value: _111.MsgCreateClient; + value: _112.MsgCreateClient; }; updateClient(value: any): { typeUrl: string; - value: _111.MsgUpdateClient; + value: _112.MsgUpdateClient; }; upgradeClient(value: any): { typeUrl: string; - value: _111.MsgUpgradeClient; + value: _112.MsgUpgradeClient; }; submitMisbehaviour(value: any): { typeUrl: string; - value: _111.MsgSubmitMisbehaviour; + value: _112.MsgSubmitMisbehaviour; }; }; fromPartial: { - createClient(value: _111.MsgCreateClient): { + createClient(value: _112.MsgCreateClient): { typeUrl: string; - value: _111.MsgCreateClient; + value: _112.MsgCreateClient; }; - updateClient(value: _111.MsgUpdateClient): { + updateClient(value: _112.MsgUpdateClient): { typeUrl: string; - value: _111.MsgUpdateClient; + value: _112.MsgUpdateClient; }; - upgradeClient(value: _111.MsgUpgradeClient): { + upgradeClient(value: _112.MsgUpgradeClient): { typeUrl: string; - value: _111.MsgUpgradeClient; + value: _112.MsgUpgradeClient; }; - submitMisbehaviour(value: _111.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { typeUrl: string; - value: _111.MsgSubmitMisbehaviour; + value: _112.MsgSubmitMisbehaviour; }; }; }; AminoConverter: { "/ibc.core.client.v1.MsgCreateClient": { aminoType: string; - toAmino: (message: _111.MsgCreateClient) => _111.MsgCreateClientAmino; - fromAmino: (object: _111.MsgCreateClientAmino) => _111.MsgCreateClient; + toAmino: (message: _112.MsgCreateClient) => _112.MsgCreateClientAmino; + fromAmino: (object: _112.MsgCreateClientAmino) => _112.MsgCreateClient; }; "/ibc.core.client.v1.MsgUpdateClient": { aminoType: string; - toAmino: (message: _111.MsgUpdateClient) => _111.MsgUpdateClientAmino; - fromAmino: (object: _111.MsgUpdateClientAmino) => _111.MsgUpdateClient; + toAmino: (message: _112.MsgUpdateClient) => _112.MsgUpdateClientAmino; + fromAmino: (object: _112.MsgUpdateClientAmino) => _112.MsgUpdateClient; }; "/ibc.core.client.v1.MsgUpgradeClient": { aminoType: string; - toAmino: (message: _111.MsgUpgradeClient) => _111.MsgUpgradeClientAmino; - fromAmino: (object: _111.MsgUpgradeClientAmino) => _111.MsgUpgradeClient; + toAmino: (message: _112.MsgUpgradeClient) => _112.MsgUpgradeClientAmino; + fromAmino: (object: _112.MsgUpgradeClientAmino) => _112.MsgUpgradeClient; }; "/ibc.core.client.v1.MsgSubmitMisbehaviour": { aminoType: string; - toAmino: (message: _111.MsgSubmitMisbehaviour) => _111.MsgSubmitMisbehaviourAmino; - fromAmino: (object: _111.MsgSubmitMisbehaviourAmino) => _111.MsgSubmitMisbehaviour; + toAmino: (message: _112.MsgSubmitMisbehaviour) => _112.MsgSubmitMisbehaviourAmino; + fromAmino: (object: _112.MsgSubmitMisbehaviourAmino) => _112.MsgSubmitMisbehaviour; }; }; MsgCreateClient: { - encode(message: _111.MsgCreateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgCreateClient; - fromJSON(object: any): _111.MsgCreateClient; - toJSON(message: _111.MsgCreateClient): unknown; - fromPartial(object: Partial<_111.MsgCreateClient>): _111.MsgCreateClient; - fromAmino(object: _111.MsgCreateClientAmino): _111.MsgCreateClient; - toAmino(message: _111.MsgCreateClient): _111.MsgCreateClientAmino; - fromAminoMsg(object: _111.MsgCreateClientAminoMsg): _111.MsgCreateClient; - toAminoMsg(message: _111.MsgCreateClient): _111.MsgCreateClientAminoMsg; - fromProtoMsg(message: _111.MsgCreateClientProtoMsg): _111.MsgCreateClient; - toProto(message: _111.MsgCreateClient): Uint8Array; - toProtoMsg(message: _111.MsgCreateClient): _111.MsgCreateClientProtoMsg; + typeUrl: string; + encode(message: _112.MsgCreateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgCreateClient; + fromJSON(object: any): _112.MsgCreateClient; + toJSON(message: _112.MsgCreateClient): unknown; + fromPartial(object: Partial<_112.MsgCreateClient>): _112.MsgCreateClient; + fromAmino(object: _112.MsgCreateClientAmino): _112.MsgCreateClient; + toAmino(message: _112.MsgCreateClient): _112.MsgCreateClientAmino; + fromAminoMsg(object: _112.MsgCreateClientAminoMsg): _112.MsgCreateClient; + toAminoMsg(message: _112.MsgCreateClient): _112.MsgCreateClientAminoMsg; + fromProtoMsg(message: _112.MsgCreateClientProtoMsg): _112.MsgCreateClient; + toProto(message: _112.MsgCreateClient): Uint8Array; + toProtoMsg(message: _112.MsgCreateClient): _112.MsgCreateClientProtoMsg; }; MsgCreateClientResponse: { - encode(_: _111.MsgCreateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgCreateClientResponse; - fromJSON(_: any): _111.MsgCreateClientResponse; - toJSON(_: _111.MsgCreateClientResponse): unknown; - fromPartial(_: Partial<_111.MsgCreateClientResponse>): _111.MsgCreateClientResponse; - fromAmino(_: _111.MsgCreateClientResponseAmino): _111.MsgCreateClientResponse; - toAmino(_: _111.MsgCreateClientResponse): _111.MsgCreateClientResponseAmino; - fromAminoMsg(object: _111.MsgCreateClientResponseAminoMsg): _111.MsgCreateClientResponse; - toAminoMsg(message: _111.MsgCreateClientResponse): _111.MsgCreateClientResponseAminoMsg; - fromProtoMsg(message: _111.MsgCreateClientResponseProtoMsg): _111.MsgCreateClientResponse; - toProto(message: _111.MsgCreateClientResponse): Uint8Array; - toProtoMsg(message: _111.MsgCreateClientResponse): _111.MsgCreateClientResponseProtoMsg; + typeUrl: string; + encode(_: _112.MsgCreateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgCreateClientResponse; + fromJSON(_: any): _112.MsgCreateClientResponse; + toJSON(_: _112.MsgCreateClientResponse): unknown; + fromPartial(_: Partial<_112.MsgCreateClientResponse>): _112.MsgCreateClientResponse; + fromAmino(_: _112.MsgCreateClientResponseAmino): _112.MsgCreateClientResponse; + toAmino(_: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseAmino; + fromAminoMsg(object: _112.MsgCreateClientResponseAminoMsg): _112.MsgCreateClientResponse; + toAminoMsg(message: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseAminoMsg; + fromProtoMsg(message: _112.MsgCreateClientResponseProtoMsg): _112.MsgCreateClientResponse; + toProto(message: _112.MsgCreateClientResponse): Uint8Array; + toProtoMsg(message: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseProtoMsg; }; MsgUpdateClient: { - encode(message: _111.MsgUpdateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgUpdateClient; - fromJSON(object: any): _111.MsgUpdateClient; - toJSON(message: _111.MsgUpdateClient): unknown; - fromPartial(object: Partial<_111.MsgUpdateClient>): _111.MsgUpdateClient; - fromAmino(object: _111.MsgUpdateClientAmino): _111.MsgUpdateClient; - toAmino(message: _111.MsgUpdateClient): _111.MsgUpdateClientAmino; - fromAminoMsg(object: _111.MsgUpdateClientAminoMsg): _111.MsgUpdateClient; - toAminoMsg(message: _111.MsgUpdateClient): _111.MsgUpdateClientAminoMsg; - fromProtoMsg(message: _111.MsgUpdateClientProtoMsg): _111.MsgUpdateClient; - toProto(message: _111.MsgUpdateClient): Uint8Array; - toProtoMsg(message: _111.MsgUpdateClient): _111.MsgUpdateClientProtoMsg; + typeUrl: string; + encode(message: _112.MsgUpdateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpdateClient; + fromJSON(object: any): _112.MsgUpdateClient; + toJSON(message: _112.MsgUpdateClient): unknown; + fromPartial(object: Partial<_112.MsgUpdateClient>): _112.MsgUpdateClient; + fromAmino(object: _112.MsgUpdateClientAmino): _112.MsgUpdateClient; + toAmino(message: _112.MsgUpdateClient): _112.MsgUpdateClientAmino; + fromAminoMsg(object: _112.MsgUpdateClientAminoMsg): _112.MsgUpdateClient; + toAminoMsg(message: _112.MsgUpdateClient): _112.MsgUpdateClientAminoMsg; + fromProtoMsg(message: _112.MsgUpdateClientProtoMsg): _112.MsgUpdateClient; + toProto(message: _112.MsgUpdateClient): Uint8Array; + toProtoMsg(message: _112.MsgUpdateClient): _112.MsgUpdateClientProtoMsg; }; MsgUpdateClientResponse: { - encode(_: _111.MsgUpdateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgUpdateClientResponse; - fromJSON(_: any): _111.MsgUpdateClientResponse; - toJSON(_: _111.MsgUpdateClientResponse): unknown; - fromPartial(_: Partial<_111.MsgUpdateClientResponse>): _111.MsgUpdateClientResponse; - fromAmino(_: _111.MsgUpdateClientResponseAmino): _111.MsgUpdateClientResponse; - toAmino(_: _111.MsgUpdateClientResponse): _111.MsgUpdateClientResponseAmino; - fromAminoMsg(object: _111.MsgUpdateClientResponseAminoMsg): _111.MsgUpdateClientResponse; - toAminoMsg(message: _111.MsgUpdateClientResponse): _111.MsgUpdateClientResponseAminoMsg; - fromProtoMsg(message: _111.MsgUpdateClientResponseProtoMsg): _111.MsgUpdateClientResponse; - toProto(message: _111.MsgUpdateClientResponse): Uint8Array; - toProtoMsg(message: _111.MsgUpdateClientResponse): _111.MsgUpdateClientResponseProtoMsg; + typeUrl: string; + encode(_: _112.MsgUpdateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpdateClientResponse; + fromJSON(_: any): _112.MsgUpdateClientResponse; + toJSON(_: _112.MsgUpdateClientResponse): unknown; + fromPartial(_: Partial<_112.MsgUpdateClientResponse>): _112.MsgUpdateClientResponse; + fromAmino(_: _112.MsgUpdateClientResponseAmino): _112.MsgUpdateClientResponse; + toAmino(_: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseAmino; + fromAminoMsg(object: _112.MsgUpdateClientResponseAminoMsg): _112.MsgUpdateClientResponse; + toAminoMsg(message: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseAminoMsg; + fromProtoMsg(message: _112.MsgUpdateClientResponseProtoMsg): _112.MsgUpdateClientResponse; + toProto(message: _112.MsgUpdateClientResponse): Uint8Array; + toProtoMsg(message: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseProtoMsg; }; MsgUpgradeClient: { - encode(message: _111.MsgUpgradeClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgUpgradeClient; - fromJSON(object: any): _111.MsgUpgradeClient; - toJSON(message: _111.MsgUpgradeClient): unknown; - fromPartial(object: Partial<_111.MsgUpgradeClient>): _111.MsgUpgradeClient; - fromAmino(object: _111.MsgUpgradeClientAmino): _111.MsgUpgradeClient; - toAmino(message: _111.MsgUpgradeClient): _111.MsgUpgradeClientAmino; - fromAminoMsg(object: _111.MsgUpgradeClientAminoMsg): _111.MsgUpgradeClient; - toAminoMsg(message: _111.MsgUpgradeClient): _111.MsgUpgradeClientAminoMsg; - fromProtoMsg(message: _111.MsgUpgradeClientProtoMsg): _111.MsgUpgradeClient; - toProto(message: _111.MsgUpgradeClient): Uint8Array; - toProtoMsg(message: _111.MsgUpgradeClient): _111.MsgUpgradeClientProtoMsg; + typeUrl: string; + encode(message: _112.MsgUpgradeClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpgradeClient; + fromJSON(object: any): _112.MsgUpgradeClient; + toJSON(message: _112.MsgUpgradeClient): unknown; + fromPartial(object: Partial<_112.MsgUpgradeClient>): _112.MsgUpgradeClient; + fromAmino(object: _112.MsgUpgradeClientAmino): _112.MsgUpgradeClient; + toAmino(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientAmino; + fromAminoMsg(object: _112.MsgUpgradeClientAminoMsg): _112.MsgUpgradeClient; + toAminoMsg(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientAminoMsg; + fromProtoMsg(message: _112.MsgUpgradeClientProtoMsg): _112.MsgUpgradeClient; + toProto(message: _112.MsgUpgradeClient): Uint8Array; + toProtoMsg(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientProtoMsg; }; MsgUpgradeClientResponse: { - encode(_: _111.MsgUpgradeClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgUpgradeClientResponse; - fromJSON(_: any): _111.MsgUpgradeClientResponse; - toJSON(_: _111.MsgUpgradeClientResponse): unknown; - fromPartial(_: Partial<_111.MsgUpgradeClientResponse>): _111.MsgUpgradeClientResponse; - fromAmino(_: _111.MsgUpgradeClientResponseAmino): _111.MsgUpgradeClientResponse; - toAmino(_: _111.MsgUpgradeClientResponse): _111.MsgUpgradeClientResponseAmino; - fromAminoMsg(object: _111.MsgUpgradeClientResponseAminoMsg): _111.MsgUpgradeClientResponse; - toAminoMsg(message: _111.MsgUpgradeClientResponse): _111.MsgUpgradeClientResponseAminoMsg; - fromProtoMsg(message: _111.MsgUpgradeClientResponseProtoMsg): _111.MsgUpgradeClientResponse; - toProto(message: _111.MsgUpgradeClientResponse): Uint8Array; - toProtoMsg(message: _111.MsgUpgradeClientResponse): _111.MsgUpgradeClientResponseProtoMsg; + typeUrl: string; + encode(_: _112.MsgUpgradeClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpgradeClientResponse; + fromJSON(_: any): _112.MsgUpgradeClientResponse; + toJSON(_: _112.MsgUpgradeClientResponse): unknown; + fromPartial(_: Partial<_112.MsgUpgradeClientResponse>): _112.MsgUpgradeClientResponse; + fromAmino(_: _112.MsgUpgradeClientResponseAmino): _112.MsgUpgradeClientResponse; + toAmino(_: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseAmino; + fromAminoMsg(object: _112.MsgUpgradeClientResponseAminoMsg): _112.MsgUpgradeClientResponse; + toAminoMsg(message: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseAminoMsg; + fromProtoMsg(message: _112.MsgUpgradeClientResponseProtoMsg): _112.MsgUpgradeClientResponse; + toProto(message: _112.MsgUpgradeClientResponse): Uint8Array; + toProtoMsg(message: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseProtoMsg; }; MsgSubmitMisbehaviour: { - encode(message: _111.MsgSubmitMisbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgSubmitMisbehaviour; - fromJSON(object: any): _111.MsgSubmitMisbehaviour; - toJSON(message: _111.MsgSubmitMisbehaviour): unknown; - fromPartial(object: Partial<_111.MsgSubmitMisbehaviour>): _111.MsgSubmitMisbehaviour; - fromAmino(object: _111.MsgSubmitMisbehaviourAmino): _111.MsgSubmitMisbehaviour; - toAmino(message: _111.MsgSubmitMisbehaviour): _111.MsgSubmitMisbehaviourAmino; - fromAminoMsg(object: _111.MsgSubmitMisbehaviourAminoMsg): _111.MsgSubmitMisbehaviour; - toAminoMsg(message: _111.MsgSubmitMisbehaviour): _111.MsgSubmitMisbehaviourAminoMsg; - fromProtoMsg(message: _111.MsgSubmitMisbehaviourProtoMsg): _111.MsgSubmitMisbehaviour; - toProto(message: _111.MsgSubmitMisbehaviour): Uint8Array; - toProtoMsg(message: _111.MsgSubmitMisbehaviour): _111.MsgSubmitMisbehaviourProtoMsg; + typeUrl: string; + encode(message: _112.MsgSubmitMisbehaviour, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgSubmitMisbehaviour; + fromJSON(object: any): _112.MsgSubmitMisbehaviour; + toJSON(message: _112.MsgSubmitMisbehaviour): unknown; + fromPartial(object: Partial<_112.MsgSubmitMisbehaviour>): _112.MsgSubmitMisbehaviour; + fromAmino(object: _112.MsgSubmitMisbehaviourAmino): _112.MsgSubmitMisbehaviour; + toAmino(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourAmino; + fromAminoMsg(object: _112.MsgSubmitMisbehaviourAminoMsg): _112.MsgSubmitMisbehaviour; + toAminoMsg(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourAminoMsg; + fromProtoMsg(message: _112.MsgSubmitMisbehaviourProtoMsg): _112.MsgSubmitMisbehaviour; + toProto(message: _112.MsgSubmitMisbehaviour): Uint8Array; + toProtoMsg(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourProtoMsg; }; MsgSubmitMisbehaviourResponse: { - encode(_: _111.MsgSubmitMisbehaviourResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _111.MsgSubmitMisbehaviourResponse; - fromJSON(_: any): _111.MsgSubmitMisbehaviourResponse; - toJSON(_: _111.MsgSubmitMisbehaviourResponse): unknown; - fromPartial(_: Partial<_111.MsgSubmitMisbehaviourResponse>): _111.MsgSubmitMisbehaviourResponse; - fromAmino(_: _111.MsgSubmitMisbehaviourResponseAmino): _111.MsgSubmitMisbehaviourResponse; - toAmino(_: _111.MsgSubmitMisbehaviourResponse): _111.MsgSubmitMisbehaviourResponseAmino; - fromAminoMsg(object: _111.MsgSubmitMisbehaviourResponseAminoMsg): _111.MsgSubmitMisbehaviourResponse; - toAminoMsg(message: _111.MsgSubmitMisbehaviourResponse): _111.MsgSubmitMisbehaviourResponseAminoMsg; - fromProtoMsg(message: _111.MsgSubmitMisbehaviourResponseProtoMsg): _111.MsgSubmitMisbehaviourResponse; - toProto(message: _111.MsgSubmitMisbehaviourResponse): Uint8Array; - toProtoMsg(message: _111.MsgSubmitMisbehaviourResponse): _111.MsgSubmitMisbehaviourResponseProtoMsg; + typeUrl: string; + encode(_: _112.MsgSubmitMisbehaviourResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgSubmitMisbehaviourResponse; + fromJSON(_: any): _112.MsgSubmitMisbehaviourResponse; + toJSON(_: _112.MsgSubmitMisbehaviourResponse): unknown; + fromPartial(_: Partial<_112.MsgSubmitMisbehaviourResponse>): _112.MsgSubmitMisbehaviourResponse; + fromAmino(_: _112.MsgSubmitMisbehaviourResponseAmino): _112.MsgSubmitMisbehaviourResponse; + toAmino(_: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseAmino; + fromAminoMsg(object: _112.MsgSubmitMisbehaviourResponseAminoMsg): _112.MsgSubmitMisbehaviourResponse; + toAminoMsg(message: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseAminoMsg; + fromProtoMsg(message: _112.MsgSubmitMisbehaviourResponseProtoMsg): _112.MsgSubmitMisbehaviourResponse; + toProto(message: _112.MsgSubmitMisbehaviourResponse): Uint8Array; + toProtoMsg(message: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseProtoMsg; }; QueryClientStateRequest: { - encode(message: _110.QueryClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStateRequest; - fromJSON(object: any): _110.QueryClientStateRequest; - toJSON(message: _110.QueryClientStateRequest): unknown; - fromPartial(object: Partial<_110.QueryClientStateRequest>): _110.QueryClientStateRequest; - fromAmino(object: _110.QueryClientStateRequestAmino): _110.QueryClientStateRequest; - toAmino(message: _110.QueryClientStateRequest): _110.QueryClientStateRequestAmino; - fromAminoMsg(object: _110.QueryClientStateRequestAminoMsg): _110.QueryClientStateRequest; - toAminoMsg(message: _110.QueryClientStateRequest): _110.QueryClientStateRequestAminoMsg; - fromProtoMsg(message: _110.QueryClientStateRequestProtoMsg): _110.QueryClientStateRequest; - toProto(message: _110.QueryClientStateRequest): Uint8Array; - toProtoMsg(message: _110.QueryClientStateRequest): _110.QueryClientStateRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStateRequest; + fromJSON(object: any): _111.QueryClientStateRequest; + toJSON(message: _111.QueryClientStateRequest): unknown; + fromPartial(object: Partial<_111.QueryClientStateRequest>): _111.QueryClientStateRequest; + fromAmino(object: _111.QueryClientStateRequestAmino): _111.QueryClientStateRequest; + toAmino(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestAmino; + fromAminoMsg(object: _111.QueryClientStateRequestAminoMsg): _111.QueryClientStateRequest; + toAminoMsg(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestAminoMsg; + fromProtoMsg(message: _111.QueryClientStateRequestProtoMsg): _111.QueryClientStateRequest; + toProto(message: _111.QueryClientStateRequest): Uint8Array; + toProtoMsg(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestProtoMsg; }; QueryClientStateResponse: { - encode(message: _110.QueryClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStateResponse; - fromJSON(object: any): _110.QueryClientStateResponse; - toJSON(message: _110.QueryClientStateResponse): unknown; - fromPartial(object: Partial<_110.QueryClientStateResponse>): _110.QueryClientStateResponse; - fromAmino(object: _110.QueryClientStateResponseAmino): _110.QueryClientStateResponse; - toAmino(message: _110.QueryClientStateResponse): _110.QueryClientStateResponseAmino; - fromAminoMsg(object: _110.QueryClientStateResponseAminoMsg): _110.QueryClientStateResponse; - toAminoMsg(message: _110.QueryClientStateResponse): _110.QueryClientStateResponseAminoMsg; - fromProtoMsg(message: _110.QueryClientStateResponseProtoMsg): _110.QueryClientStateResponse; - toProto(message: _110.QueryClientStateResponse): Uint8Array; - toProtoMsg(message: _110.QueryClientStateResponse): _110.QueryClientStateResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStateResponse; + fromJSON(object: any): _111.QueryClientStateResponse; + toJSON(message: _111.QueryClientStateResponse): unknown; + fromPartial(object: Partial<_111.QueryClientStateResponse>): _111.QueryClientStateResponse; + fromAmino(object: _111.QueryClientStateResponseAmino): _111.QueryClientStateResponse; + toAmino(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseAmino; + fromAminoMsg(object: _111.QueryClientStateResponseAminoMsg): _111.QueryClientStateResponse; + toAminoMsg(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseAminoMsg; + fromProtoMsg(message: _111.QueryClientStateResponseProtoMsg): _111.QueryClientStateResponse; + toProto(message: _111.QueryClientStateResponse): Uint8Array; + toProtoMsg(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseProtoMsg; }; QueryClientStatesRequest: { - encode(message: _110.QueryClientStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStatesRequest; - fromJSON(object: any): _110.QueryClientStatesRequest; - toJSON(message: _110.QueryClientStatesRequest): unknown; - fromPartial(object: Partial<_110.QueryClientStatesRequest>): _110.QueryClientStatesRequest; - fromAmino(object: _110.QueryClientStatesRequestAmino): _110.QueryClientStatesRequest; - toAmino(message: _110.QueryClientStatesRequest): _110.QueryClientStatesRequestAmino; - fromAminoMsg(object: _110.QueryClientStatesRequestAminoMsg): _110.QueryClientStatesRequest; - toAminoMsg(message: _110.QueryClientStatesRequest): _110.QueryClientStatesRequestAminoMsg; - fromProtoMsg(message: _110.QueryClientStatesRequestProtoMsg): _110.QueryClientStatesRequest; - toProto(message: _110.QueryClientStatesRequest): Uint8Array; - toProtoMsg(message: _110.QueryClientStatesRequest): _110.QueryClientStatesRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatesRequest; + fromJSON(object: any): _111.QueryClientStatesRequest; + toJSON(message: _111.QueryClientStatesRequest): unknown; + fromPartial(object: Partial<_111.QueryClientStatesRequest>): _111.QueryClientStatesRequest; + fromAmino(object: _111.QueryClientStatesRequestAmino): _111.QueryClientStatesRequest; + toAmino(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestAmino; + fromAminoMsg(object: _111.QueryClientStatesRequestAminoMsg): _111.QueryClientStatesRequest; + toAminoMsg(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestAminoMsg; + fromProtoMsg(message: _111.QueryClientStatesRequestProtoMsg): _111.QueryClientStatesRequest; + toProto(message: _111.QueryClientStatesRequest): Uint8Array; + toProtoMsg(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestProtoMsg; }; QueryClientStatesResponse: { - encode(message: _110.QueryClientStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStatesResponse; - fromJSON(object: any): _110.QueryClientStatesResponse; - toJSON(message: _110.QueryClientStatesResponse): unknown; - fromPartial(object: Partial<_110.QueryClientStatesResponse>): _110.QueryClientStatesResponse; - fromAmino(object: _110.QueryClientStatesResponseAmino): _110.QueryClientStatesResponse; - toAmino(message: _110.QueryClientStatesResponse): _110.QueryClientStatesResponseAmino; - fromAminoMsg(object: _110.QueryClientStatesResponseAminoMsg): _110.QueryClientStatesResponse; - toAminoMsg(message: _110.QueryClientStatesResponse): _110.QueryClientStatesResponseAminoMsg; - fromProtoMsg(message: _110.QueryClientStatesResponseProtoMsg): _110.QueryClientStatesResponse; - toProto(message: _110.QueryClientStatesResponse): Uint8Array; - toProtoMsg(message: _110.QueryClientStatesResponse): _110.QueryClientStatesResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatesResponse; + fromJSON(object: any): _111.QueryClientStatesResponse; + toJSON(message: _111.QueryClientStatesResponse): unknown; + fromPartial(object: Partial<_111.QueryClientStatesResponse>): _111.QueryClientStatesResponse; + fromAmino(object: _111.QueryClientStatesResponseAmino): _111.QueryClientStatesResponse; + toAmino(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseAmino; + fromAminoMsg(object: _111.QueryClientStatesResponseAminoMsg): _111.QueryClientStatesResponse; + toAminoMsg(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseAminoMsg; + fromProtoMsg(message: _111.QueryClientStatesResponseProtoMsg): _111.QueryClientStatesResponse; + toProto(message: _111.QueryClientStatesResponse): Uint8Array; + toProtoMsg(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseProtoMsg; }; QueryConsensusStateRequest: { - encode(message: _110.QueryConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStateRequest; - fromJSON(object: any): _110.QueryConsensusStateRequest; - toJSON(message: _110.QueryConsensusStateRequest): unknown; - fromPartial(object: Partial<_110.QueryConsensusStateRequest>): _110.QueryConsensusStateRequest; - fromAmino(object: _110.QueryConsensusStateRequestAmino): _110.QueryConsensusStateRequest; - toAmino(message: _110.QueryConsensusStateRequest): _110.QueryConsensusStateRequestAmino; - fromAminoMsg(object: _110.QueryConsensusStateRequestAminoMsg): _110.QueryConsensusStateRequest; - toAminoMsg(message: _110.QueryConsensusStateRequest): _110.QueryConsensusStateRequestAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStateRequestProtoMsg): _110.QueryConsensusStateRequest; - toProto(message: _110.QueryConsensusStateRequest): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStateRequest): _110.QueryConsensusStateRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateRequest; + fromJSON(object: any): _111.QueryConsensusStateRequest; + toJSON(message: _111.QueryConsensusStateRequest): unknown; + fromPartial(object: Partial<_111.QueryConsensusStateRequest>): _111.QueryConsensusStateRequest; + fromAmino(object: _111.QueryConsensusStateRequestAmino): _111.QueryConsensusStateRequest; + toAmino(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestAmino; + fromAminoMsg(object: _111.QueryConsensusStateRequestAminoMsg): _111.QueryConsensusStateRequest; + toAminoMsg(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStateRequestProtoMsg): _111.QueryConsensusStateRequest; + toProto(message: _111.QueryConsensusStateRequest): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestProtoMsg; }; QueryConsensusStateResponse: { - encode(message: _110.QueryConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStateResponse; - fromJSON(object: any): _110.QueryConsensusStateResponse; - toJSON(message: _110.QueryConsensusStateResponse): unknown; - fromPartial(object: Partial<_110.QueryConsensusStateResponse>): _110.QueryConsensusStateResponse; - fromAmino(object: _110.QueryConsensusStateResponseAmino): _110.QueryConsensusStateResponse; - toAmino(message: _110.QueryConsensusStateResponse): _110.QueryConsensusStateResponseAmino; - fromAminoMsg(object: _110.QueryConsensusStateResponseAminoMsg): _110.QueryConsensusStateResponse; - toAminoMsg(message: _110.QueryConsensusStateResponse): _110.QueryConsensusStateResponseAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStateResponseProtoMsg): _110.QueryConsensusStateResponse; - toProto(message: _110.QueryConsensusStateResponse): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStateResponse): _110.QueryConsensusStateResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateResponse; + fromJSON(object: any): _111.QueryConsensusStateResponse; + toJSON(message: _111.QueryConsensusStateResponse): unknown; + fromPartial(object: Partial<_111.QueryConsensusStateResponse>): _111.QueryConsensusStateResponse; + fromAmino(object: _111.QueryConsensusStateResponseAmino): _111.QueryConsensusStateResponse; + toAmino(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseAmino; + fromAminoMsg(object: _111.QueryConsensusStateResponseAminoMsg): _111.QueryConsensusStateResponse; + toAminoMsg(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStateResponseProtoMsg): _111.QueryConsensusStateResponse; + toProto(message: _111.QueryConsensusStateResponse): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseProtoMsg; }; QueryConsensusStatesRequest: { - encode(message: _110.QueryConsensusStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStatesRequest; - fromJSON(object: any): _110.QueryConsensusStatesRequest; - toJSON(message: _110.QueryConsensusStatesRequest): unknown; - fromPartial(object: Partial<_110.QueryConsensusStatesRequest>): _110.QueryConsensusStatesRequest; - fromAmino(object: _110.QueryConsensusStatesRequestAmino): _110.QueryConsensusStatesRequest; - toAmino(message: _110.QueryConsensusStatesRequest): _110.QueryConsensusStatesRequestAmino; - fromAminoMsg(object: _110.QueryConsensusStatesRequestAminoMsg): _110.QueryConsensusStatesRequest; - toAminoMsg(message: _110.QueryConsensusStatesRequest): _110.QueryConsensusStatesRequestAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStatesRequestProtoMsg): _110.QueryConsensusStatesRequest; - toProto(message: _110.QueryConsensusStatesRequest): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStatesRequest): _110.QueryConsensusStatesRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStatesRequest; + fromJSON(object: any): _111.QueryConsensusStatesRequest; + toJSON(message: _111.QueryConsensusStatesRequest): unknown; + fromPartial(object: Partial<_111.QueryConsensusStatesRequest>): _111.QueryConsensusStatesRequest; + fromAmino(object: _111.QueryConsensusStatesRequestAmino): _111.QueryConsensusStatesRequest; + toAmino(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestAmino; + fromAminoMsg(object: _111.QueryConsensusStatesRequestAminoMsg): _111.QueryConsensusStatesRequest; + toAminoMsg(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStatesRequestProtoMsg): _111.QueryConsensusStatesRequest; + toProto(message: _111.QueryConsensusStatesRequest): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestProtoMsg; }; QueryConsensusStatesResponse: { - encode(message: _110.QueryConsensusStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStatesResponse; - fromJSON(object: any): _110.QueryConsensusStatesResponse; - toJSON(message: _110.QueryConsensusStatesResponse): unknown; - fromPartial(object: Partial<_110.QueryConsensusStatesResponse>): _110.QueryConsensusStatesResponse; - fromAmino(object: _110.QueryConsensusStatesResponseAmino): _110.QueryConsensusStatesResponse; - toAmino(message: _110.QueryConsensusStatesResponse): _110.QueryConsensusStatesResponseAmino; - fromAminoMsg(object: _110.QueryConsensusStatesResponseAminoMsg): _110.QueryConsensusStatesResponse; - toAminoMsg(message: _110.QueryConsensusStatesResponse): _110.QueryConsensusStatesResponseAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStatesResponseProtoMsg): _110.QueryConsensusStatesResponse; - toProto(message: _110.QueryConsensusStatesResponse): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStatesResponse): _110.QueryConsensusStatesResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStatesResponse; + fromJSON(object: any): _111.QueryConsensusStatesResponse; + toJSON(message: _111.QueryConsensusStatesResponse): unknown; + fromPartial(object: Partial<_111.QueryConsensusStatesResponse>): _111.QueryConsensusStatesResponse; + fromAmino(object: _111.QueryConsensusStatesResponseAmino): _111.QueryConsensusStatesResponse; + toAmino(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseAmino; + fromAminoMsg(object: _111.QueryConsensusStatesResponseAminoMsg): _111.QueryConsensusStatesResponse; + toAminoMsg(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStatesResponseProtoMsg): _111.QueryConsensusStatesResponse; + toProto(message: _111.QueryConsensusStatesResponse): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseProtoMsg; }; QueryConsensusStateHeightsRequest: { - encode(message: _110.QueryConsensusStateHeightsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStateHeightsRequest; - fromJSON(object: any): _110.QueryConsensusStateHeightsRequest; - toJSON(message: _110.QueryConsensusStateHeightsRequest): unknown; - fromPartial(object: Partial<_110.QueryConsensusStateHeightsRequest>): _110.QueryConsensusStateHeightsRequest; - fromAmino(object: _110.QueryConsensusStateHeightsRequestAmino): _110.QueryConsensusStateHeightsRequest; - toAmino(message: _110.QueryConsensusStateHeightsRequest): _110.QueryConsensusStateHeightsRequestAmino; - fromAminoMsg(object: _110.QueryConsensusStateHeightsRequestAminoMsg): _110.QueryConsensusStateHeightsRequest; - toAminoMsg(message: _110.QueryConsensusStateHeightsRequest): _110.QueryConsensusStateHeightsRequestAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStateHeightsRequestProtoMsg): _110.QueryConsensusStateHeightsRequest; - toProto(message: _110.QueryConsensusStateHeightsRequest): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStateHeightsRequest): _110.QueryConsensusStateHeightsRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStateHeightsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateHeightsRequest; + fromJSON(object: any): _111.QueryConsensusStateHeightsRequest; + toJSON(message: _111.QueryConsensusStateHeightsRequest): unknown; + fromPartial(object: Partial<_111.QueryConsensusStateHeightsRequest>): _111.QueryConsensusStateHeightsRequest; + fromAmino(object: _111.QueryConsensusStateHeightsRequestAmino): _111.QueryConsensusStateHeightsRequest; + toAmino(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestAmino; + fromAminoMsg(object: _111.QueryConsensusStateHeightsRequestAminoMsg): _111.QueryConsensusStateHeightsRequest; + toAminoMsg(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStateHeightsRequestProtoMsg): _111.QueryConsensusStateHeightsRequest; + toProto(message: _111.QueryConsensusStateHeightsRequest): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestProtoMsg; }; QueryConsensusStateHeightsResponse: { - encode(message: _110.QueryConsensusStateHeightsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryConsensusStateHeightsResponse; - fromJSON(object: any): _110.QueryConsensusStateHeightsResponse; - toJSON(message: _110.QueryConsensusStateHeightsResponse): unknown; - fromPartial(object: Partial<_110.QueryConsensusStateHeightsResponse>): _110.QueryConsensusStateHeightsResponse; - fromAmino(object: _110.QueryConsensusStateHeightsResponseAmino): _110.QueryConsensusStateHeightsResponse; - toAmino(message: _110.QueryConsensusStateHeightsResponse): _110.QueryConsensusStateHeightsResponseAmino; - fromAminoMsg(object: _110.QueryConsensusStateHeightsResponseAminoMsg): _110.QueryConsensusStateHeightsResponse; - toAminoMsg(message: _110.QueryConsensusStateHeightsResponse): _110.QueryConsensusStateHeightsResponseAminoMsg; - fromProtoMsg(message: _110.QueryConsensusStateHeightsResponseProtoMsg): _110.QueryConsensusStateHeightsResponse; - toProto(message: _110.QueryConsensusStateHeightsResponse): Uint8Array; - toProtoMsg(message: _110.QueryConsensusStateHeightsResponse): _110.QueryConsensusStateHeightsResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryConsensusStateHeightsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateHeightsResponse; + fromJSON(object: any): _111.QueryConsensusStateHeightsResponse; + toJSON(message: _111.QueryConsensusStateHeightsResponse): unknown; + fromPartial(object: Partial<_111.QueryConsensusStateHeightsResponse>): _111.QueryConsensusStateHeightsResponse; + fromAmino(object: _111.QueryConsensusStateHeightsResponseAmino): _111.QueryConsensusStateHeightsResponse; + toAmino(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseAmino; + fromAminoMsg(object: _111.QueryConsensusStateHeightsResponseAminoMsg): _111.QueryConsensusStateHeightsResponse; + toAminoMsg(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseAminoMsg; + fromProtoMsg(message: _111.QueryConsensusStateHeightsResponseProtoMsg): _111.QueryConsensusStateHeightsResponse; + toProto(message: _111.QueryConsensusStateHeightsResponse): Uint8Array; + toProtoMsg(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseProtoMsg; }; QueryClientStatusRequest: { - encode(message: _110.QueryClientStatusRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStatusRequest; - fromJSON(object: any): _110.QueryClientStatusRequest; - toJSON(message: _110.QueryClientStatusRequest): unknown; - fromPartial(object: Partial<_110.QueryClientStatusRequest>): _110.QueryClientStatusRequest; - fromAmino(object: _110.QueryClientStatusRequestAmino): _110.QueryClientStatusRequest; - toAmino(message: _110.QueryClientStatusRequest): _110.QueryClientStatusRequestAmino; - fromAminoMsg(object: _110.QueryClientStatusRequestAminoMsg): _110.QueryClientStatusRequest; - toAminoMsg(message: _110.QueryClientStatusRequest): _110.QueryClientStatusRequestAminoMsg; - fromProtoMsg(message: _110.QueryClientStatusRequestProtoMsg): _110.QueryClientStatusRequest; - toProto(message: _110.QueryClientStatusRequest): Uint8Array; - toProtoMsg(message: _110.QueryClientStatusRequest): _110.QueryClientStatusRequestProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStatusRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatusRequest; + fromJSON(object: any): _111.QueryClientStatusRequest; + toJSON(message: _111.QueryClientStatusRequest): unknown; + fromPartial(object: Partial<_111.QueryClientStatusRequest>): _111.QueryClientStatusRequest; + fromAmino(object: _111.QueryClientStatusRequestAmino): _111.QueryClientStatusRequest; + toAmino(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestAmino; + fromAminoMsg(object: _111.QueryClientStatusRequestAminoMsg): _111.QueryClientStatusRequest; + toAminoMsg(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestAminoMsg; + fromProtoMsg(message: _111.QueryClientStatusRequestProtoMsg): _111.QueryClientStatusRequest; + toProto(message: _111.QueryClientStatusRequest): Uint8Array; + toProtoMsg(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestProtoMsg; }; QueryClientStatusResponse: { - encode(message: _110.QueryClientStatusResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientStatusResponse; - fromJSON(object: any): _110.QueryClientStatusResponse; - toJSON(message: _110.QueryClientStatusResponse): unknown; - fromPartial(object: Partial<_110.QueryClientStatusResponse>): _110.QueryClientStatusResponse; - fromAmino(object: _110.QueryClientStatusResponseAmino): _110.QueryClientStatusResponse; - toAmino(message: _110.QueryClientStatusResponse): _110.QueryClientStatusResponseAmino; - fromAminoMsg(object: _110.QueryClientStatusResponseAminoMsg): _110.QueryClientStatusResponse; - toAminoMsg(message: _110.QueryClientStatusResponse): _110.QueryClientStatusResponseAminoMsg; - fromProtoMsg(message: _110.QueryClientStatusResponseProtoMsg): _110.QueryClientStatusResponse; - toProto(message: _110.QueryClientStatusResponse): Uint8Array; - toProtoMsg(message: _110.QueryClientStatusResponse): _110.QueryClientStatusResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientStatusResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatusResponse; + fromJSON(object: any): _111.QueryClientStatusResponse; + toJSON(message: _111.QueryClientStatusResponse): unknown; + fromPartial(object: Partial<_111.QueryClientStatusResponse>): _111.QueryClientStatusResponse; + fromAmino(object: _111.QueryClientStatusResponseAmino): _111.QueryClientStatusResponse; + toAmino(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseAmino; + fromAminoMsg(object: _111.QueryClientStatusResponseAminoMsg): _111.QueryClientStatusResponse; + toAminoMsg(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseAminoMsg; + fromProtoMsg(message: _111.QueryClientStatusResponseProtoMsg): _111.QueryClientStatusResponse; + toProto(message: _111.QueryClientStatusResponse): Uint8Array; + toProtoMsg(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseProtoMsg; }; QueryClientParamsRequest: { - encode(_: _110.QueryClientParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientParamsRequest; - fromJSON(_: any): _110.QueryClientParamsRequest; - toJSON(_: _110.QueryClientParamsRequest): unknown; - fromPartial(_: Partial<_110.QueryClientParamsRequest>): _110.QueryClientParamsRequest; - fromAmino(_: _110.QueryClientParamsRequestAmino): _110.QueryClientParamsRequest; - toAmino(_: _110.QueryClientParamsRequest): _110.QueryClientParamsRequestAmino; - fromAminoMsg(object: _110.QueryClientParamsRequestAminoMsg): _110.QueryClientParamsRequest; - toAminoMsg(message: _110.QueryClientParamsRequest): _110.QueryClientParamsRequestAminoMsg; - fromProtoMsg(message: _110.QueryClientParamsRequestProtoMsg): _110.QueryClientParamsRequest; - toProto(message: _110.QueryClientParamsRequest): Uint8Array; - toProtoMsg(message: _110.QueryClientParamsRequest): _110.QueryClientParamsRequestProtoMsg; + typeUrl: string; + encode(_: _111.QueryClientParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientParamsRequest; + fromJSON(_: any): _111.QueryClientParamsRequest; + toJSON(_: _111.QueryClientParamsRequest): unknown; + fromPartial(_: Partial<_111.QueryClientParamsRequest>): _111.QueryClientParamsRequest; + fromAmino(_: _111.QueryClientParamsRequestAmino): _111.QueryClientParamsRequest; + toAmino(_: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestAmino; + fromAminoMsg(object: _111.QueryClientParamsRequestAminoMsg): _111.QueryClientParamsRequest; + toAminoMsg(message: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestAminoMsg; + fromProtoMsg(message: _111.QueryClientParamsRequestProtoMsg): _111.QueryClientParamsRequest; + toProto(message: _111.QueryClientParamsRequest): Uint8Array; + toProtoMsg(message: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestProtoMsg; }; QueryClientParamsResponse: { - encode(message: _110.QueryClientParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryClientParamsResponse; - fromJSON(object: any): _110.QueryClientParamsResponse; - toJSON(message: _110.QueryClientParamsResponse): unknown; - fromPartial(object: Partial<_110.QueryClientParamsResponse>): _110.QueryClientParamsResponse; - fromAmino(object: _110.QueryClientParamsResponseAmino): _110.QueryClientParamsResponse; - toAmino(message: _110.QueryClientParamsResponse): _110.QueryClientParamsResponseAmino; - fromAminoMsg(object: _110.QueryClientParamsResponseAminoMsg): _110.QueryClientParamsResponse; - toAminoMsg(message: _110.QueryClientParamsResponse): _110.QueryClientParamsResponseAminoMsg; - fromProtoMsg(message: _110.QueryClientParamsResponseProtoMsg): _110.QueryClientParamsResponse; - toProto(message: _110.QueryClientParamsResponse): Uint8Array; - toProtoMsg(message: _110.QueryClientParamsResponse): _110.QueryClientParamsResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryClientParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientParamsResponse; + fromJSON(object: any): _111.QueryClientParamsResponse; + toJSON(message: _111.QueryClientParamsResponse): unknown; + fromPartial(object: Partial<_111.QueryClientParamsResponse>): _111.QueryClientParamsResponse; + fromAmino(object: _111.QueryClientParamsResponseAmino): _111.QueryClientParamsResponse; + toAmino(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseAmino; + fromAminoMsg(object: _111.QueryClientParamsResponseAminoMsg): _111.QueryClientParamsResponse; + toAminoMsg(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseAminoMsg; + fromProtoMsg(message: _111.QueryClientParamsResponseProtoMsg): _111.QueryClientParamsResponse; + toProto(message: _111.QueryClientParamsResponse): Uint8Array; + toProtoMsg(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseProtoMsg; }; QueryUpgradedClientStateRequest: { - encode(_: _110.QueryUpgradedClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryUpgradedClientStateRequest; - fromJSON(_: any): _110.QueryUpgradedClientStateRequest; - toJSON(_: _110.QueryUpgradedClientStateRequest): unknown; - fromPartial(_: Partial<_110.QueryUpgradedClientStateRequest>): _110.QueryUpgradedClientStateRequest; - fromAmino(_: _110.QueryUpgradedClientStateRequestAmino): _110.QueryUpgradedClientStateRequest; - toAmino(_: _110.QueryUpgradedClientStateRequest): _110.QueryUpgradedClientStateRequestAmino; - fromAminoMsg(object: _110.QueryUpgradedClientStateRequestAminoMsg): _110.QueryUpgradedClientStateRequest; - toAminoMsg(message: _110.QueryUpgradedClientStateRequest): _110.QueryUpgradedClientStateRequestAminoMsg; - fromProtoMsg(message: _110.QueryUpgradedClientStateRequestProtoMsg): _110.QueryUpgradedClientStateRequest; - toProto(message: _110.QueryUpgradedClientStateRequest): Uint8Array; - toProtoMsg(message: _110.QueryUpgradedClientStateRequest): _110.QueryUpgradedClientStateRequestProtoMsg; + typeUrl: string; + encode(_: _111.QueryUpgradedClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedClientStateRequest; + fromJSON(_: any): _111.QueryUpgradedClientStateRequest; + toJSON(_: _111.QueryUpgradedClientStateRequest): unknown; + fromPartial(_: Partial<_111.QueryUpgradedClientStateRequest>): _111.QueryUpgradedClientStateRequest; + fromAmino(_: _111.QueryUpgradedClientStateRequestAmino): _111.QueryUpgradedClientStateRequest; + toAmino(_: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestAmino; + fromAminoMsg(object: _111.QueryUpgradedClientStateRequestAminoMsg): _111.QueryUpgradedClientStateRequest; + toAminoMsg(message: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestAminoMsg; + fromProtoMsg(message: _111.QueryUpgradedClientStateRequestProtoMsg): _111.QueryUpgradedClientStateRequest; + toProto(message: _111.QueryUpgradedClientStateRequest): Uint8Array; + toProtoMsg(message: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestProtoMsg; }; QueryUpgradedClientStateResponse: { - encode(message: _110.QueryUpgradedClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryUpgradedClientStateResponse; - fromJSON(object: any): _110.QueryUpgradedClientStateResponse; - toJSON(message: _110.QueryUpgradedClientStateResponse): unknown; - fromPartial(object: Partial<_110.QueryUpgradedClientStateResponse>): _110.QueryUpgradedClientStateResponse; - fromAmino(object: _110.QueryUpgradedClientStateResponseAmino): _110.QueryUpgradedClientStateResponse; - toAmino(message: _110.QueryUpgradedClientStateResponse): _110.QueryUpgradedClientStateResponseAmino; - fromAminoMsg(object: _110.QueryUpgradedClientStateResponseAminoMsg): _110.QueryUpgradedClientStateResponse; - toAminoMsg(message: _110.QueryUpgradedClientStateResponse): _110.QueryUpgradedClientStateResponseAminoMsg; - fromProtoMsg(message: _110.QueryUpgradedClientStateResponseProtoMsg): _110.QueryUpgradedClientStateResponse; - toProto(message: _110.QueryUpgradedClientStateResponse): Uint8Array; - toProtoMsg(message: _110.QueryUpgradedClientStateResponse): _110.QueryUpgradedClientStateResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryUpgradedClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedClientStateResponse; + fromJSON(object: any): _111.QueryUpgradedClientStateResponse; + toJSON(message: _111.QueryUpgradedClientStateResponse): unknown; + fromPartial(object: Partial<_111.QueryUpgradedClientStateResponse>): _111.QueryUpgradedClientStateResponse; + fromAmino(object: _111.QueryUpgradedClientStateResponseAmino): _111.QueryUpgradedClientStateResponse; + toAmino(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseAmino; + fromAminoMsg(object: _111.QueryUpgradedClientStateResponseAminoMsg): _111.QueryUpgradedClientStateResponse; + toAminoMsg(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseAminoMsg; + fromProtoMsg(message: _111.QueryUpgradedClientStateResponseProtoMsg): _111.QueryUpgradedClientStateResponse; + toProto(message: _111.QueryUpgradedClientStateResponse): Uint8Array; + toProtoMsg(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseProtoMsg; }; QueryUpgradedConsensusStateRequest: { - encode(_: _110.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryUpgradedConsensusStateRequest; - fromJSON(_: any): _110.QueryUpgradedConsensusStateRequest; - toJSON(_: _110.QueryUpgradedConsensusStateRequest): unknown; - fromPartial(_: Partial<_110.QueryUpgradedConsensusStateRequest>): _110.QueryUpgradedConsensusStateRequest; - fromAmino(_: _110.QueryUpgradedConsensusStateRequestAmino): _110.QueryUpgradedConsensusStateRequest; - toAmino(_: _110.QueryUpgradedConsensusStateRequest): _110.QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: _110.QueryUpgradedConsensusStateRequestAminoMsg): _110.QueryUpgradedConsensusStateRequest; - toAminoMsg(message: _110.QueryUpgradedConsensusStateRequest): _110.QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: _110.QueryUpgradedConsensusStateRequestProtoMsg): _110.QueryUpgradedConsensusStateRequest; - toProto(message: _110.QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: _110.QueryUpgradedConsensusStateRequest): _110.QueryUpgradedConsensusStateRequestProtoMsg; + typeUrl: string; + encode(_: _111.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedConsensusStateRequest; + fromJSON(_: any): _111.QueryUpgradedConsensusStateRequest; + toJSON(_: _111.QueryUpgradedConsensusStateRequest): unknown; + fromPartial(_: Partial<_111.QueryUpgradedConsensusStateRequest>): _111.QueryUpgradedConsensusStateRequest; + fromAmino(_: _111.QueryUpgradedConsensusStateRequestAmino): _111.QueryUpgradedConsensusStateRequest; + toAmino(_: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestAmino; + fromAminoMsg(object: _111.QueryUpgradedConsensusStateRequestAminoMsg): _111.QueryUpgradedConsensusStateRequest; + toAminoMsg(message: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestAminoMsg; + fromProtoMsg(message: _111.QueryUpgradedConsensusStateRequestProtoMsg): _111.QueryUpgradedConsensusStateRequest; + toProto(message: _111.QueryUpgradedConsensusStateRequest): Uint8Array; + toProtoMsg(message: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestProtoMsg; }; QueryUpgradedConsensusStateResponse: { - encode(message: _110.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _110.QueryUpgradedConsensusStateResponse; - fromJSON(object: any): _110.QueryUpgradedConsensusStateResponse; - toJSON(message: _110.QueryUpgradedConsensusStateResponse): unknown; - fromPartial(object: Partial<_110.QueryUpgradedConsensusStateResponse>): _110.QueryUpgradedConsensusStateResponse; - fromAmino(object: _110.QueryUpgradedConsensusStateResponseAmino): _110.QueryUpgradedConsensusStateResponse; - toAmino(message: _110.QueryUpgradedConsensusStateResponse): _110.QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: _110.QueryUpgradedConsensusStateResponseAminoMsg): _110.QueryUpgradedConsensusStateResponse; - toAminoMsg(message: _110.QueryUpgradedConsensusStateResponse): _110.QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: _110.QueryUpgradedConsensusStateResponseProtoMsg): _110.QueryUpgradedConsensusStateResponse; - toProto(message: _110.QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: _110.QueryUpgradedConsensusStateResponse): _110.QueryUpgradedConsensusStateResponseProtoMsg; + typeUrl: string; + encode(message: _111.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedConsensusStateResponse; + fromJSON(object: any): _111.QueryUpgradedConsensusStateResponse; + toJSON(message: _111.QueryUpgradedConsensusStateResponse): unknown; + fromPartial(object: Partial<_111.QueryUpgradedConsensusStateResponse>): _111.QueryUpgradedConsensusStateResponse; + fromAmino(object: _111.QueryUpgradedConsensusStateResponseAmino): _111.QueryUpgradedConsensusStateResponse; + toAmino(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseAmino; + fromAminoMsg(object: _111.QueryUpgradedConsensusStateResponseAminoMsg): _111.QueryUpgradedConsensusStateResponse; + toAminoMsg(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseAminoMsg; + fromProtoMsg(message: _111.QueryUpgradedConsensusStateResponseProtoMsg): _111.QueryUpgradedConsensusStateResponse; + toProto(message: _111.QueryUpgradedConsensusStateResponse): Uint8Array; + toProtoMsg(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseProtoMsg; }; GenesisState: { - encode(message: _109.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _109.GenesisState; - fromJSON(object: any): _109.GenesisState; - toJSON(message: _109.GenesisState): unknown; - fromPartial(object: Partial<_109.GenesisState>): _109.GenesisState; - fromAmino(object: _109.GenesisStateAmino): _109.GenesisState; - toAmino(message: _109.GenesisState): _109.GenesisStateAmino; - fromAminoMsg(object: _109.GenesisStateAminoMsg): _109.GenesisState; - toAminoMsg(message: _109.GenesisState): _109.GenesisStateAminoMsg; - fromProtoMsg(message: _109.GenesisStateProtoMsg): _109.GenesisState; - toProto(message: _109.GenesisState): Uint8Array; - toProtoMsg(message: _109.GenesisState): _109.GenesisStateProtoMsg; + typeUrl: string; + encode(message: _110.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.GenesisState; + fromJSON(object: any): _110.GenesisState; + toJSON(message: _110.GenesisState): unknown; + fromPartial(object: Partial<_110.GenesisState>): _110.GenesisState; + fromAmino(object: _110.GenesisStateAmino): _110.GenesisState; + toAmino(message: _110.GenesisState): _110.GenesisStateAmino; + fromAminoMsg(object: _110.GenesisStateAminoMsg): _110.GenesisState; + toAminoMsg(message: _110.GenesisState): _110.GenesisStateAminoMsg; + fromProtoMsg(message: _110.GenesisStateProtoMsg): _110.GenesisState; + toProto(message: _110.GenesisState): Uint8Array; + toProtoMsg(message: _110.GenesisState): _110.GenesisStateProtoMsg; }; GenesisMetadata: { - encode(message: _109.GenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _109.GenesisMetadata; - fromJSON(object: any): _109.GenesisMetadata; - toJSON(message: _109.GenesisMetadata): unknown; - fromPartial(object: Partial<_109.GenesisMetadata>): _109.GenesisMetadata; - fromAmino(object: _109.GenesisMetadataAmino): _109.GenesisMetadata; - toAmino(message: _109.GenesisMetadata): _109.GenesisMetadataAmino; - fromAminoMsg(object: _109.GenesisMetadataAminoMsg): _109.GenesisMetadata; - toAminoMsg(message: _109.GenesisMetadata): _109.GenesisMetadataAminoMsg; - fromProtoMsg(message: _109.GenesisMetadataProtoMsg): _109.GenesisMetadata; - toProto(message: _109.GenesisMetadata): Uint8Array; - toProtoMsg(message: _109.GenesisMetadata): _109.GenesisMetadataProtoMsg; + typeUrl: string; + encode(message: _110.GenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.GenesisMetadata; + fromJSON(object: any): _110.GenesisMetadata; + toJSON(message: _110.GenesisMetadata): unknown; + fromPartial(object: Partial<_110.GenesisMetadata>): _110.GenesisMetadata; + fromAmino(object: _110.GenesisMetadataAmino): _110.GenesisMetadata; + toAmino(message: _110.GenesisMetadata): _110.GenesisMetadataAmino; + fromAminoMsg(object: _110.GenesisMetadataAminoMsg): _110.GenesisMetadata; + toAminoMsg(message: _110.GenesisMetadata): _110.GenesisMetadataAminoMsg; + fromProtoMsg(message: _110.GenesisMetadataProtoMsg): _110.GenesisMetadata; + toProto(message: _110.GenesisMetadata): Uint8Array; + toProtoMsg(message: _110.GenesisMetadata): _110.GenesisMetadataProtoMsg; }; IdentifiedGenesisMetadata: { - encode(message: _109.IdentifiedGenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _109.IdentifiedGenesisMetadata; - fromJSON(object: any): _109.IdentifiedGenesisMetadata; - toJSON(message: _109.IdentifiedGenesisMetadata): unknown; - fromPartial(object: Partial<_109.IdentifiedGenesisMetadata>): _109.IdentifiedGenesisMetadata; - fromAmino(object: _109.IdentifiedGenesisMetadataAmino): _109.IdentifiedGenesisMetadata; - toAmino(message: _109.IdentifiedGenesisMetadata): _109.IdentifiedGenesisMetadataAmino; - fromAminoMsg(object: _109.IdentifiedGenesisMetadataAminoMsg): _109.IdentifiedGenesisMetadata; - toAminoMsg(message: _109.IdentifiedGenesisMetadata): _109.IdentifiedGenesisMetadataAminoMsg; - fromProtoMsg(message: _109.IdentifiedGenesisMetadataProtoMsg): _109.IdentifiedGenesisMetadata; - toProto(message: _109.IdentifiedGenesisMetadata): Uint8Array; - toProtoMsg(message: _109.IdentifiedGenesisMetadata): _109.IdentifiedGenesisMetadataProtoMsg; + typeUrl: string; + encode(message: _110.IdentifiedGenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.IdentifiedGenesisMetadata; + fromJSON(object: any): _110.IdentifiedGenesisMetadata; + toJSON(message: _110.IdentifiedGenesisMetadata): unknown; + fromPartial(object: Partial<_110.IdentifiedGenesisMetadata>): _110.IdentifiedGenesisMetadata; + fromAmino(object: _110.IdentifiedGenesisMetadataAmino): _110.IdentifiedGenesisMetadata; + toAmino(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataAmino; + fromAminoMsg(object: _110.IdentifiedGenesisMetadataAminoMsg): _110.IdentifiedGenesisMetadata; + toAminoMsg(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataAminoMsg; + fromProtoMsg(message: _110.IdentifiedGenesisMetadataProtoMsg): _110.IdentifiedGenesisMetadata; + toProto(message: _110.IdentifiedGenesisMetadata): Uint8Array; + toProtoMsg(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataProtoMsg; }; IdentifiedClientState: { - encode(message: _108.IdentifiedClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.IdentifiedClientState; - fromJSON(object: any): _108.IdentifiedClientState; - toJSON(message: _108.IdentifiedClientState): unknown; - fromPartial(object: Partial<_108.IdentifiedClientState>): _108.IdentifiedClientState; - fromAmino(object: _108.IdentifiedClientStateAmino): _108.IdentifiedClientState; - toAmino(message: _108.IdentifiedClientState): _108.IdentifiedClientStateAmino; - fromAminoMsg(object: _108.IdentifiedClientStateAminoMsg): _108.IdentifiedClientState; - toAminoMsg(message: _108.IdentifiedClientState): _108.IdentifiedClientStateAminoMsg; - fromProtoMsg(message: _108.IdentifiedClientStateProtoMsg): _108.IdentifiedClientState; - toProto(message: _108.IdentifiedClientState): Uint8Array; - toProtoMsg(message: _108.IdentifiedClientState): _108.IdentifiedClientStateProtoMsg; + typeUrl: string; + encode(message: _109.IdentifiedClientState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.IdentifiedClientState; + fromJSON(object: any): _109.IdentifiedClientState; + toJSON(message: _109.IdentifiedClientState): unknown; + fromPartial(object: Partial<_109.IdentifiedClientState>): _109.IdentifiedClientState; + fromAmino(object: _109.IdentifiedClientStateAmino): _109.IdentifiedClientState; + toAmino(message: _109.IdentifiedClientState): _109.IdentifiedClientStateAmino; + fromAminoMsg(object: _109.IdentifiedClientStateAminoMsg): _109.IdentifiedClientState; + toAminoMsg(message: _109.IdentifiedClientState): _109.IdentifiedClientStateAminoMsg; + fromProtoMsg(message: _109.IdentifiedClientStateProtoMsg): _109.IdentifiedClientState; + toProto(message: _109.IdentifiedClientState): Uint8Array; + toProtoMsg(message: _109.IdentifiedClientState): _109.IdentifiedClientStateProtoMsg; }; ConsensusStateWithHeight: { - encode(message: _108.ConsensusStateWithHeight, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.ConsensusStateWithHeight; - fromJSON(object: any): _108.ConsensusStateWithHeight; - toJSON(message: _108.ConsensusStateWithHeight): unknown; - fromPartial(object: Partial<_108.ConsensusStateWithHeight>): _108.ConsensusStateWithHeight; - fromAmino(object: _108.ConsensusStateWithHeightAmino): _108.ConsensusStateWithHeight; - toAmino(message: _108.ConsensusStateWithHeight): _108.ConsensusStateWithHeightAmino; - fromAminoMsg(object: _108.ConsensusStateWithHeightAminoMsg): _108.ConsensusStateWithHeight; - toAminoMsg(message: _108.ConsensusStateWithHeight): _108.ConsensusStateWithHeightAminoMsg; - fromProtoMsg(message: _108.ConsensusStateWithHeightProtoMsg): _108.ConsensusStateWithHeight; - toProto(message: _108.ConsensusStateWithHeight): Uint8Array; - toProtoMsg(message: _108.ConsensusStateWithHeight): _108.ConsensusStateWithHeightProtoMsg; + typeUrl: string; + encode(message: _109.ConsensusStateWithHeight, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ConsensusStateWithHeight; + fromJSON(object: any): _109.ConsensusStateWithHeight; + toJSON(message: _109.ConsensusStateWithHeight): unknown; + fromPartial(object: Partial<_109.ConsensusStateWithHeight>): _109.ConsensusStateWithHeight; + fromAmino(object: _109.ConsensusStateWithHeightAmino): _109.ConsensusStateWithHeight; + toAmino(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightAmino; + fromAminoMsg(object: _109.ConsensusStateWithHeightAminoMsg): _109.ConsensusStateWithHeight; + toAminoMsg(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightAminoMsg; + fromProtoMsg(message: _109.ConsensusStateWithHeightProtoMsg): _109.ConsensusStateWithHeight; + toProto(message: _109.ConsensusStateWithHeight): Uint8Array; + toProtoMsg(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightProtoMsg; }; ClientConsensusStates: { - encode(message: _108.ClientConsensusStates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.ClientConsensusStates; - fromJSON(object: any): _108.ClientConsensusStates; - toJSON(message: _108.ClientConsensusStates): unknown; - fromPartial(object: Partial<_108.ClientConsensusStates>): _108.ClientConsensusStates; - fromAmino(object: _108.ClientConsensusStatesAmino): _108.ClientConsensusStates; - toAmino(message: _108.ClientConsensusStates): _108.ClientConsensusStatesAmino; - fromAminoMsg(object: _108.ClientConsensusStatesAminoMsg): _108.ClientConsensusStates; - toAminoMsg(message: _108.ClientConsensusStates): _108.ClientConsensusStatesAminoMsg; - fromProtoMsg(message: _108.ClientConsensusStatesProtoMsg): _108.ClientConsensusStates; - toProto(message: _108.ClientConsensusStates): Uint8Array; - toProtoMsg(message: _108.ClientConsensusStates): _108.ClientConsensusStatesProtoMsg; + typeUrl: string; + encode(message: _109.ClientConsensusStates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ClientConsensusStates; + fromJSON(object: any): _109.ClientConsensusStates; + toJSON(message: _109.ClientConsensusStates): unknown; + fromPartial(object: Partial<_109.ClientConsensusStates>): _109.ClientConsensusStates; + fromAmino(object: _109.ClientConsensusStatesAmino): _109.ClientConsensusStates; + toAmino(message: _109.ClientConsensusStates): _109.ClientConsensusStatesAmino; + fromAminoMsg(object: _109.ClientConsensusStatesAminoMsg): _109.ClientConsensusStates; + toAminoMsg(message: _109.ClientConsensusStates): _109.ClientConsensusStatesAminoMsg; + fromProtoMsg(message: _109.ClientConsensusStatesProtoMsg): _109.ClientConsensusStates; + toProto(message: _109.ClientConsensusStates): Uint8Array; + toProtoMsg(message: _109.ClientConsensusStates): _109.ClientConsensusStatesProtoMsg; }; ClientUpdateProposal: { - encode(message: _108.ClientUpdateProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.ClientUpdateProposal; - fromJSON(object: any): _108.ClientUpdateProposal; - toJSON(message: _108.ClientUpdateProposal): unknown; - fromPartial(object: Partial<_108.ClientUpdateProposal>): _108.ClientUpdateProposal; - fromAmino(object: _108.ClientUpdateProposalAmino): _108.ClientUpdateProposal; - toAmino(message: _108.ClientUpdateProposal): _108.ClientUpdateProposalAmino; - fromAminoMsg(object: _108.ClientUpdateProposalAminoMsg): _108.ClientUpdateProposal; - toAminoMsg(message: _108.ClientUpdateProposal): _108.ClientUpdateProposalAminoMsg; - fromProtoMsg(message: _108.ClientUpdateProposalProtoMsg): _108.ClientUpdateProposal; - toProto(message: _108.ClientUpdateProposal): Uint8Array; - toProtoMsg(message: _108.ClientUpdateProposal): _108.ClientUpdateProposalProtoMsg; + typeUrl: string; + encode(message: _109.ClientUpdateProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ClientUpdateProposal; + fromJSON(object: any): _109.ClientUpdateProposal; + toJSON(message: _109.ClientUpdateProposal): unknown; + fromPartial(object: Partial<_109.ClientUpdateProposal>): _109.ClientUpdateProposal; + fromAmino(object: _109.ClientUpdateProposalAmino): _109.ClientUpdateProposal; + toAmino(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalAmino; + fromAminoMsg(object: _109.ClientUpdateProposalAminoMsg): _109.ClientUpdateProposal; + toAminoMsg(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalAminoMsg; + fromProtoMsg(message: _109.ClientUpdateProposalProtoMsg): _109.ClientUpdateProposal; + toProto(message: _109.ClientUpdateProposal): Uint8Array; + toProtoMsg(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalProtoMsg; }; UpgradeProposal: { - encode(message: _108.UpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.UpgradeProposal; - fromJSON(object: any): _108.UpgradeProposal; - toJSON(message: _108.UpgradeProposal): unknown; - fromPartial(object: Partial<_108.UpgradeProposal>): _108.UpgradeProposal; - fromAmino(object: _108.UpgradeProposalAmino): _108.UpgradeProposal; - toAmino(message: _108.UpgradeProposal): _108.UpgradeProposalAmino; - fromAminoMsg(object: _108.UpgradeProposalAminoMsg): _108.UpgradeProposal; - toAminoMsg(message: _108.UpgradeProposal): _108.UpgradeProposalAminoMsg; - fromProtoMsg(message: _108.UpgradeProposalProtoMsg): _108.UpgradeProposal; - toProto(message: _108.UpgradeProposal): Uint8Array; - toProtoMsg(message: _108.UpgradeProposal): _108.UpgradeProposalProtoMsg; + typeUrl: string; + encode(message: _109.UpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.UpgradeProposal; + fromJSON(object: any): _109.UpgradeProposal; + toJSON(message: _109.UpgradeProposal): unknown; + fromPartial(object: Partial<_109.UpgradeProposal>): _109.UpgradeProposal; + fromAmino(object: _109.UpgradeProposalAmino): _109.UpgradeProposal; + toAmino(message: _109.UpgradeProposal): _109.UpgradeProposalAmino; + fromAminoMsg(object: _109.UpgradeProposalAminoMsg): _109.UpgradeProposal; + toAminoMsg(message: _109.UpgradeProposal): _109.UpgradeProposalAminoMsg; + fromProtoMsg(message: _109.UpgradeProposalProtoMsg): _109.UpgradeProposal; + toProto(message: _109.UpgradeProposal): Uint8Array; + toProtoMsg(message: _109.UpgradeProposal): _109.UpgradeProposalProtoMsg; }; Height: { - encode(message: _108.Height, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.Height; - fromJSON(object: any): _108.Height; - toJSON(message: _108.Height): unknown; - fromPartial(object: Partial<_108.Height>): _108.Height; - fromAmino(object: _108.HeightAmino): _108.Height; - toAmino(message: _108.Height): _108.HeightAmino; - fromAminoMsg(object: _108.HeightAminoMsg): _108.Height; - toAminoMsg(message: _108.Height): _108.HeightAminoMsg; - fromProtoMsg(message: _108.HeightProtoMsg): _108.Height; - toProto(message: _108.Height): Uint8Array; - toProtoMsg(message: _108.Height): _108.HeightProtoMsg; + typeUrl: string; + encode(message: _109.Height, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.Height; + fromJSON(object: any): _109.Height; + toJSON(message: _109.Height): unknown; + fromPartial(object: Partial<_109.Height>): _109.Height; + fromAmino(object: _109.HeightAmino): _109.Height; + toAmino(message: _109.Height): _109.HeightAmino; + fromAminoMsg(object: _109.HeightAminoMsg): _109.Height; + toAminoMsg(message: _109.Height): _109.HeightAminoMsg; + fromProtoMsg(message: _109.HeightProtoMsg): _109.Height; + toProto(message: _109.Height): Uint8Array; + toProtoMsg(message: _109.Height): _109.HeightProtoMsg; }; Params: { - encode(message: _108.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _108.Params; - fromJSON(object: any): _108.Params; - toJSON(message: _108.Params): unknown; - fromPartial(object: Partial<_108.Params>): _108.Params; - fromAmino(object: _108.ParamsAmino): _108.Params; - toAmino(message: _108.Params): _108.ParamsAmino; - fromAminoMsg(object: _108.ParamsAminoMsg): _108.Params; - toAminoMsg(message: _108.Params): _108.ParamsAminoMsg; - fromProtoMsg(message: _108.ParamsProtoMsg): _108.Params; - toProto(message: _108.Params): Uint8Array; - toProtoMsg(message: _108.Params): _108.ParamsProtoMsg; + typeUrl: string; + encode(message: _109.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.Params; + fromJSON(object: any): _109.Params; + toJSON(message: _109.Params): unknown; + fromPartial(object: Partial<_109.Params>): _109.Params; + fromAmino(object: _109.ParamsAmino): _109.Params; + toAmino(message: _109.Params): _109.ParamsAmino; + fromAminoMsg(object: _109.ParamsAminoMsg): _109.Params; + toAminoMsg(message: _109.Params): _109.ParamsAminoMsg; + fromProtoMsg(message: _109.ParamsProtoMsg): _109.Params; + toProto(message: _109.Params): Uint8Array; + toProtoMsg(message: _109.Params): _109.ParamsProtoMsg; }; }; } @@ -969,12 +1020,12 @@ export declare namespace ibc { ibc: { applications: { transfer: { - v1: _238.MsgClientImpl; + v1: _239.MsgClientImpl; }; }; core: { client: { - v1: _239.MsgClientImpl; + v1: _240.MsgClientImpl; }; }; }; @@ -1176,26 +1227,26 @@ export declare namespace ibc { applications: { transfer: { v1: { - denomTrace(request: _105.QueryDenomTraceRequest): Promise<_105.QueryDenomTraceResponse>; - denomTraces(request?: _105.QueryDenomTracesRequest | undefined): Promise<_105.QueryDenomTracesResponse>; - params(request?: _105.QueryParamsRequest | undefined): Promise<_105.QueryParamsResponse>; - denomHash(request: _105.QueryDenomHashRequest): Promise<_105.QueryDenomHashResponse>; - escrowAddress(request: _105.QueryEscrowAddressRequest): Promise<_105.QueryEscrowAddressResponse>; + denomTrace(request: _106.QueryDenomTraceRequest): Promise<_106.QueryDenomTraceResponse>; + denomTraces(request?: _106.QueryDenomTracesRequest | undefined): Promise<_106.QueryDenomTracesResponse>; + params(request?: _106.QueryParamsRequest | undefined): Promise<_106.QueryParamsResponse>; + denomHash(request: _106.QueryDenomHashRequest): Promise<_106.QueryDenomHashResponse>; + escrowAddress(request: _106.QueryEscrowAddressRequest): Promise<_106.QueryEscrowAddressResponse>; }; }; }; core: { client: { v1: { - clientState(request: _110.QueryClientStateRequest): Promise<_110.QueryClientStateResponse>; - clientStates(request?: _110.QueryClientStatesRequest | undefined): Promise<_110.QueryClientStatesResponse>; - consensusState(request: _110.QueryConsensusStateRequest): Promise<_110.QueryConsensusStateResponse>; - consensusStates(request: _110.QueryConsensusStatesRequest): Promise<_110.QueryConsensusStatesResponse>; - consensusStateHeights(request: _110.QueryConsensusStateHeightsRequest): Promise<_110.QueryConsensusStateHeightsResponse>; - clientStatus(request: _110.QueryClientStatusRequest): Promise<_110.QueryClientStatusResponse>; - clientParams(request?: _110.QueryClientParamsRequest | undefined): Promise<_110.QueryClientParamsResponse>; - upgradedClientState(request?: _110.QueryUpgradedClientStateRequest | undefined): Promise<_110.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _110.QueryUpgradedConsensusStateRequest | undefined): Promise<_110.QueryUpgradedConsensusStateResponse>; + clientState(request: _111.QueryClientStateRequest): Promise<_111.QueryClientStateResponse>; + clientStates(request?: _111.QueryClientStatesRequest | undefined): Promise<_111.QueryClientStatesResponse>; + consensusState(request: _111.QueryConsensusStateRequest): Promise<_111.QueryConsensusStateResponse>; + consensusStates(request: _111.QueryConsensusStatesRequest): Promise<_111.QueryConsensusStatesResponse>; + consensusStateHeights(request: _111.QueryConsensusStateHeightsRequest): Promise<_111.QueryConsensusStateHeightsResponse>; + clientStatus(request: _111.QueryClientStatusRequest): Promise<_111.QueryClientStatusResponse>; + clientParams(request?: _111.QueryClientParamsRequest | undefined): Promise<_111.QueryClientParamsResponse>; + upgradedClientState(request?: _111.QueryUpgradedClientStateRequest | undefined): Promise<_111.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _111.QueryUpgradedConsensusStateRequest | undefined): Promise<_111.QueryUpgradedConsensusStateResponse>; }; }; }; @@ -1263,12 +1314,12 @@ export declare namespace ibc { ibc: { applications: { transfer: { - v1: _234.LCDQueryClient; + v1: _235.LCDQueryClient; }; }; core: { client: { - v1: _235.LCDQueryClient; + v1: _236.LCDQueryClient; }; }; }; diff --git a/packages/api/types/codegen/ibc/core/client/v1/client.d.ts b/packages/api/types/codegen/ibc/core/client/v1/client.d.ts index c2c50b45..900d2cb7 100644 --- a/packages/api/types/codegen/ibc/core/client/v1/client.d.ts +++ b/packages/api/types/codegen/ibc/core/client/v1/client.d.ts @@ -1,7 +1,6 @@ import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * IdentifiedClientState defines a client state with an additional client * identifier field. @@ -10,7 +9,7 @@ export interface IdentifiedClientState { /** client identifier */ clientId: string; /** client state */ - clientState: Any; + clientState?: Any; } export interface IdentifiedClientStateProtoMsg { typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; @@ -22,7 +21,7 @@ export interface IdentifiedClientStateProtoMsg { */ export interface IdentifiedClientStateAmino { /** client identifier */ - client_id: string; + client_id?: string; /** client state */ client_state?: AnyAmino; } @@ -36,7 +35,7 @@ export interface IdentifiedClientStateAminoMsg { */ export interface IdentifiedClientStateSDKType { client_id: string; - client_state: AnySDKType; + client_state?: AnySDKType; } /** * ConsensusStateWithHeight defines a consensus state with an additional height @@ -46,7 +45,7 @@ export interface ConsensusStateWithHeight { /** consensus state height */ height: Height; /** consensus state */ - consensusState: Any; + consensusState?: Any; } export interface ConsensusStateWithHeightProtoMsg { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; @@ -72,7 +71,7 @@ export interface ConsensusStateWithHeightAminoMsg { */ export interface ConsensusStateWithHeightSDKType { height: HeightSDKType; - consensus_state: AnySDKType; + consensus_state?: AnySDKType; } /** * ClientConsensusStates defines all the stored consensus states for a given @@ -94,9 +93,9 @@ export interface ClientConsensusStatesProtoMsg { */ export interface ClientConsensusStatesAmino { /** client identifier */ - client_id: string; + client_id?: string; /** consensus states and their heights associated with the client */ - consensus_states: ConsensusStateWithHeightAmino[]; + consensus_states?: ConsensusStateWithHeightAmino[]; } export interface ClientConsensusStatesAminoMsg { type: "cosmos-sdk/ClientConsensusStates"; @@ -117,7 +116,7 @@ export interface ClientConsensusStatesSDKType { * chain parameters (with exception to latest height, frozen height, and chain-id). */ export interface ClientUpdateProposal { - $typeUrl?: string; + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; /** the title of the update proposal */ title: string; /** the description of the proposal */ @@ -142,16 +141,16 @@ export interface ClientUpdateProposalProtoMsg { */ export interface ClientUpdateProposalAmino { /** the title of the update proposal */ - title: string; + title?: string; /** the description of the proposal */ - description: string; + description?: string; /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id: string; + subject_client_id?: string; /** * the substitute client identifier for the client standing in for the subject * client */ - substitute_client_id: string; + substitute_client_id?: string; } export interface ClientUpdateProposalAminoMsg { type: "cosmos-sdk/ClientUpdateProposal"; @@ -164,7 +163,7 @@ export interface ClientUpdateProposalAminoMsg { * chain parameters (with exception to latest height, frozen height, and chain-id). */ export interface ClientUpdateProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; title: string; description: string; subject_client_id: string; @@ -175,7 +174,7 @@ export interface ClientUpdateProposalSDKType { * upgrade. */ export interface UpgradeProposal { - $typeUrl?: string; + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; title: string; description: string; plan: Plan; @@ -187,7 +186,7 @@ export interface UpgradeProposal { * of the chain. This will allow IBC connections to persist smoothly across * planned chain upgrades */ - upgradedClientState: Any; + upgradedClientState?: Any; } export interface UpgradeProposalProtoMsg { typeUrl: "/ibc.core.client.v1.UpgradeProposal"; @@ -198,8 +197,8 @@ export interface UpgradeProposalProtoMsg { * upgrade. */ export interface UpgradeProposalAmino { - title: string; - description: string; + title?: string; + description?: string; plan?: PlanAmino; /** * An UpgradedClientState must be provided to perform an IBC breaking upgrade. @@ -220,11 +219,11 @@ export interface UpgradeProposalAminoMsg { * upgrade. */ export interface UpgradeProposalSDKType { - $typeUrl?: string; + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; title: string; description: string; plan: PlanSDKType; - upgraded_client_state: AnySDKType; + upgraded_client_state?: AnySDKType; } /** * Height is a monotonically increasing data type @@ -240,9 +239,9 @@ export interface UpgradeProposalSDKType { */ export interface Height { /** the revision that the client is currently on */ - revisionNumber: Long; + revisionNumber: bigint; /** the height within the given revision */ - revisionHeight: Long; + revisionHeight: bigint; } export interface HeightProtoMsg { typeUrl: "/ibc.core.client.v1.Height"; @@ -262,9 +261,9 @@ export interface HeightProtoMsg { */ export interface HeightAmino { /** the revision that the client is currently on */ - revision_number: string; + revision_number?: string; /** the height within the given revision */ - revision_height: string; + revision_height?: string; } export interface HeightAminoMsg { type: "cosmos-sdk/Height"; @@ -283,8 +282,8 @@ export interface HeightAminoMsg { * gets reset */ export interface HeightSDKType { - revision_number: Long; - revision_height: Long; + revision_number: bigint; + revision_height: bigint; } /** Params defines the set of IBC light client parameters. */ export interface Params { @@ -298,7 +297,7 @@ export interface ParamsProtoMsg { /** Params defines the set of IBC light client parameters. */ export interface ParamsAmino { /** allowed_clients defines the list of allowed client state types. */ - allowed_clients: string[]; + allowed_clients?: string[]; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; @@ -309,8 +308,9 @@ export interface ParamsSDKType { allowed_clients: string[]; } export declare const IdentifiedClientState: { - encode(message: IdentifiedClientState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedClientState; + typeUrl: string; + encode(message: IdentifiedClientState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState; fromJSON(object: any): IdentifiedClientState; toJSON(message: IdentifiedClientState): unknown; fromPartial(object: Partial): IdentifiedClientState; @@ -323,8 +323,9 @@ export declare const IdentifiedClientState: { toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg; }; export declare const ConsensusStateWithHeight: { - encode(message: ConsensusStateWithHeight, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusStateWithHeight; + typeUrl: string; + encode(message: ConsensusStateWithHeight, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight; fromJSON(object: any): ConsensusStateWithHeight; toJSON(message: ConsensusStateWithHeight): unknown; fromPartial(object: Partial): ConsensusStateWithHeight; @@ -337,8 +338,9 @@ export declare const ConsensusStateWithHeight: { toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg; }; export declare const ClientConsensusStates: { - encode(message: ClientConsensusStates, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClientConsensusStates; + typeUrl: string; + encode(message: ClientConsensusStates, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates; fromJSON(object: any): ClientConsensusStates; toJSON(message: ClientConsensusStates): unknown; fromPartial(object: Partial): ClientConsensusStates; @@ -351,8 +353,9 @@ export declare const ClientConsensusStates: { toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg; }; export declare const ClientUpdateProposal: { - encode(message: ClientUpdateProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal; + typeUrl: string; + encode(message: ClientUpdateProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal; fromJSON(object: any): ClientUpdateProposal; toJSON(message: ClientUpdateProposal): unknown; fromPartial(object: Partial): ClientUpdateProposal; @@ -365,8 +368,9 @@ export declare const ClientUpdateProposal: { toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg; }; export declare const UpgradeProposal: { - encode(message: UpgradeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeProposal; + typeUrl: string; + encode(message: UpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal; fromJSON(object: any): UpgradeProposal; toJSON(message: UpgradeProposal): unknown; fromPartial(object: Partial): UpgradeProposal; @@ -379,8 +383,9 @@ export declare const UpgradeProposal: { toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg; }; export declare const Height: { - encode(message: Height, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Height; + typeUrl: string; + encode(message: Height, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Height; fromJSON(object: any): Height; toJSON(message: Height): unknown; fromPartial(object: Partial): Height; @@ -393,8 +398,9 @@ export declare const Height: { toProtoMsg(message: Height): HeightProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; diff --git a/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts b/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts index c9847f21..b491cdfb 100644 --- a/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts +++ b/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts @@ -1,6 +1,5 @@ import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** GenesisState defines the ibc client submodule's genesis state. */ export interface GenesisState { /** client states with their corresponding identifiers */ @@ -13,7 +12,7 @@ export interface GenesisState { /** create localhost on initialization */ createLocalhost: boolean; /** the sequence for the next generated client identifier */ - nextClientSequence: Long; + nextClientSequence: bigint; } export interface GenesisStateProtoMsg { typeUrl: "/ibc.core.client.v1.GenesisState"; @@ -22,16 +21,16 @@ export interface GenesisStateProtoMsg { /** GenesisState defines the ibc client submodule's genesis state. */ export interface GenesisStateAmino { /** client states with their corresponding identifiers */ - clients: IdentifiedClientStateAmino[]; + clients?: IdentifiedClientStateAmino[]; /** consensus states from each client */ - clients_consensus: ClientConsensusStatesAmino[]; + clients_consensus?: ClientConsensusStatesAmino[]; /** metadata from each client */ - clients_metadata: IdentifiedGenesisMetadataAmino[]; + clients_metadata?: IdentifiedGenesisMetadataAmino[]; params?: ParamsAmino; /** create localhost on initialization */ - create_localhost: boolean; + create_localhost?: boolean; /** the sequence for the next generated client identifier */ - next_client_sequence: string; + next_client_sequence?: string; } export interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; @@ -44,7 +43,7 @@ export interface GenesisStateSDKType { clients_metadata: IdentifiedGenesisMetadataSDKType[]; params: ParamsSDKType; create_localhost: boolean; - next_client_sequence: Long; + next_client_sequence: bigint; } /** * GenesisMetadata defines the genesis type for metadata that clients may return @@ -66,9 +65,9 @@ export interface GenesisMetadataProtoMsg { */ export interface GenesisMetadataAmino { /** store key of metadata without clientID-prefix */ - key: Uint8Array; + key?: string; /** metadata value */ - value: Uint8Array; + value?: string; } export interface GenesisMetadataAminoMsg { type: "cosmos-sdk/GenesisMetadata"; @@ -99,8 +98,8 @@ export interface IdentifiedGenesisMetadataProtoMsg { * client id. */ export interface IdentifiedGenesisMetadataAmino { - client_id: string; - client_metadata: GenesisMetadataAmino[]; + client_id?: string; + client_metadata?: GenesisMetadataAmino[]; } export interface IdentifiedGenesisMetadataAminoMsg { type: "cosmos-sdk/IdentifiedGenesisMetadata"; @@ -115,8 +114,9 @@ export interface IdentifiedGenesisMetadataSDKType { client_metadata: GenesisMetadataSDKType[]; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -129,8 +129,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const GenesisMetadata: { - encode(message: GenesisMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisMetadata; + typeUrl: string; + encode(message: GenesisMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata; fromJSON(object: any): GenesisMetadata; toJSON(message: GenesisMetadata): unknown; fromPartial(object: Partial): GenesisMetadata; @@ -143,8 +144,9 @@ export declare const GenesisMetadata: { toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg; }; export declare const IdentifiedGenesisMetadata: { - encode(message: IdentifiedGenesisMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedGenesisMetadata; + typeUrl: string; + encode(message: IdentifiedGenesisMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata; fromJSON(object: any): IdentifiedGenesisMetadata; toJSON(message: IdentifiedGenesisMetadata): unknown; fromPartial(object: Partial): IdentifiedGenesisMetadata; diff --git a/packages/api/types/codegen/ibc/core/client/v1/query.d.ts b/packages/api/types/codegen/ibc/core/client/v1/query.d.ts index 2fbe8e64..e64f3141 100644 --- a/packages/api/types/codegen/ibc/core/client/v1/query.d.ts +++ b/packages/api/types/codegen/ibc/core/client/v1/query.d.ts @@ -1,8 +1,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * QueryClientStateRequest is the request type for the Query/ClientState RPC * method @@ -21,7 +20,7 @@ export interface QueryClientStateRequestProtoMsg { */ export interface QueryClientStateRequestAmino { /** client state unique identifier */ - client_id: string; + client_id?: string; } export interface QueryClientStateRequestAminoMsg { type: "cosmos-sdk/QueryClientStateRequest"; @@ -41,7 +40,7 @@ export interface QueryClientStateRequestSDKType { */ export interface QueryClientStateResponse { /** client state associated with the request identifier */ - clientState: Any; + clientState?: Any; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ @@ -60,7 +59,7 @@ export interface QueryClientStateResponseAmino { /** client state associated with the request identifier */ client_state?: AnyAmino; /** merkle proof of existence */ - proof: Uint8Array; + proof?: string; /** height at which the proof was retrieved */ proof_height?: HeightAmino; } @@ -74,7 +73,7 @@ export interface QueryClientStateResponseAminoMsg { * which the proof was retrieved. */ export interface QueryClientStateResponseSDKType { - client_state: AnySDKType; + client_state?: AnySDKType; proof: Uint8Array; proof_height: HeightSDKType; } @@ -84,7 +83,7 @@ export interface QueryClientStateResponseSDKType { */ export interface QueryClientStatesRequest { /** pagination request */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClientStatesRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; @@ -107,7 +106,7 @@ export interface QueryClientStatesRequestAminoMsg { * method */ export interface QueryClientStatesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryClientStatesResponse is the response type for the Query/ClientStates RPC @@ -117,7 +116,7 @@ export interface QueryClientStatesResponse { /** list of stored ClientStates of the chain. */ clientStates: IdentifiedClientState[]; /** pagination response */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClientStatesResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; @@ -129,7 +128,7 @@ export interface QueryClientStatesResponseProtoMsg { */ export interface QueryClientStatesResponseAmino { /** list of stored ClientStates of the chain. */ - client_states: IdentifiedClientStateAmino[]; + client_states?: IdentifiedClientStateAmino[]; /** pagination response */ pagination?: PageResponseAmino; } @@ -143,7 +142,7 @@ export interface QueryClientStatesResponseAminoMsg { */ export interface QueryClientStatesResponseSDKType { client_states: IdentifiedClientStateSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryConsensusStateRequest is the request type for the Query/ConsensusState @@ -154,9 +153,9 @@ export interface QueryConsensusStateRequest { /** client identifier */ clientId: string; /** consensus state revision number */ - revisionNumber: Long; + revisionNumber: bigint; /** consensus state revision height */ - revisionHeight: Long; + revisionHeight: bigint; /** * latest_height overrrides the height field and queries the latest stored * ConsensusState @@ -174,16 +173,16 @@ export interface QueryConsensusStateRequestProtoMsg { */ export interface QueryConsensusStateRequestAmino { /** client identifier */ - client_id: string; + client_id?: string; /** consensus state revision number */ - revision_number: string; + revision_number?: string; /** consensus state revision height */ - revision_height: string; + revision_height?: string; /** * latest_height overrrides the height field and queries the latest stored * ConsensusState */ - latest_height: boolean; + latest_height?: boolean; } export interface QueryConsensusStateRequestAminoMsg { type: "cosmos-sdk/QueryConsensusStateRequest"; @@ -196,8 +195,8 @@ export interface QueryConsensusStateRequestAminoMsg { */ export interface QueryConsensusStateRequestSDKType { client_id: string; - revision_number: Long; - revision_height: Long; + revision_number: bigint; + revision_height: bigint; latest_height: boolean; } /** @@ -206,7 +205,7 @@ export interface QueryConsensusStateRequestSDKType { */ export interface QueryConsensusStateResponse { /** consensus state associated with the client identifier at the given height */ - consensusState: Any; + consensusState?: Any; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ @@ -224,7 +223,7 @@ export interface QueryConsensusStateResponseAmino { /** consensus state associated with the client identifier at the given height */ consensus_state?: AnyAmino; /** merkle proof of existence */ - proof: Uint8Array; + proof?: string; /** height at which the proof was retrieved */ proof_height?: HeightAmino; } @@ -237,7 +236,7 @@ export interface QueryConsensusStateResponseAminoMsg { * RPC method */ export interface QueryConsensusStateResponseSDKType { - consensus_state: AnySDKType; + consensus_state?: AnySDKType; proof: Uint8Array; proof_height: HeightSDKType; } @@ -249,7 +248,7 @@ export interface QueryConsensusStatesRequest { /** client identifier */ clientId: string; /** pagination request */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryConsensusStatesRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; @@ -261,7 +260,7 @@ export interface QueryConsensusStatesRequestProtoMsg { */ export interface QueryConsensusStatesRequestAmino { /** client identifier */ - client_id: string; + client_id?: string; /** pagination request */ pagination?: PageRequestAmino; } @@ -275,7 +274,7 @@ export interface QueryConsensusStatesRequestAminoMsg { */ export interface QueryConsensusStatesRequestSDKType { client_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryConsensusStatesResponse is the response type for the @@ -285,7 +284,7 @@ export interface QueryConsensusStatesResponse { /** consensus states associated with the identifier */ consensusStates: ConsensusStateWithHeight[]; /** pagination response */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryConsensusStatesResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; @@ -297,7 +296,7 @@ export interface QueryConsensusStatesResponseProtoMsg { */ export interface QueryConsensusStatesResponseAmino { /** consensus states associated with the identifier */ - consensus_states: ConsensusStateWithHeightAmino[]; + consensus_states?: ConsensusStateWithHeightAmino[]; /** pagination response */ pagination?: PageResponseAmino; } @@ -311,7 +310,7 @@ export interface QueryConsensusStatesResponseAminoMsg { */ export interface QueryConsensusStatesResponseSDKType { consensus_states: ConsensusStateWithHeightSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights @@ -321,7 +320,7 @@ export interface QueryConsensusStateHeightsRequest { /** client identifier */ clientId: string; /** pagination request */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryConsensusStateHeightsRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; @@ -333,7 +332,7 @@ export interface QueryConsensusStateHeightsRequestProtoMsg { */ export interface QueryConsensusStateHeightsRequestAmino { /** client identifier */ - client_id: string; + client_id?: string; /** pagination request */ pagination?: PageRequestAmino; } @@ -347,7 +346,7 @@ export interface QueryConsensusStateHeightsRequestAminoMsg { */ export interface QueryConsensusStateHeightsRequestSDKType { client_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryConsensusStateHeightsResponse is the response type for the @@ -357,7 +356,7 @@ export interface QueryConsensusStateHeightsResponse { /** consensus state heights */ consensusStateHeights: Height[]; /** pagination response */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryConsensusStateHeightsResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; @@ -369,7 +368,7 @@ export interface QueryConsensusStateHeightsResponseProtoMsg { */ export interface QueryConsensusStateHeightsResponseAmino { /** consensus state heights */ - consensus_state_heights: HeightAmino[]; + consensus_state_heights?: HeightAmino[]; /** pagination response */ pagination?: PageResponseAmino; } @@ -383,7 +382,7 @@ export interface QueryConsensusStateHeightsResponseAminoMsg { */ export interface QueryConsensusStateHeightsResponseSDKType { consensus_state_heights: HeightSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC @@ -403,7 +402,7 @@ export interface QueryClientStatusRequestProtoMsg { */ export interface QueryClientStatusRequestAmino { /** client unique identifier */ - client_id: string; + client_id?: string; } export interface QueryClientStatusRequestAminoMsg { type: "cosmos-sdk/QueryClientStatusRequest"; @@ -432,7 +431,7 @@ export interface QueryClientStatusResponseProtoMsg { * method. It returns the current status of the IBC client. */ export interface QueryClientStatusResponseAmino { - status: string; + status?: string; } export interface QueryClientStatusResponseAminoMsg { type: "cosmos-sdk/QueryClientStatusResponse"; @@ -477,7 +476,7 @@ export interface QueryClientParamsRequestSDKType { */ export interface QueryClientParamsResponse { /** params defines the parameters of the module. */ - params: Params; + params?: Params; } export interface QueryClientParamsResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; @@ -500,7 +499,7 @@ export interface QueryClientParamsResponseAminoMsg { * method. */ export interface QueryClientParamsResponseSDKType { - params: ParamsSDKType; + params?: ParamsSDKType; } /** * QueryUpgradedClientStateRequest is the request type for the @@ -534,7 +533,7 @@ export interface QueryUpgradedClientStateRequestSDKType { */ export interface QueryUpgradedClientStateResponse { /** client state associated with the request identifier */ - upgradedClientState: Any; + upgradedClientState?: Any; } export interface QueryUpgradedClientStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; @@ -557,7 +556,7 @@ export interface QueryUpgradedClientStateResponseAminoMsg { * Query/UpgradedClientState RPC method. */ export interface QueryUpgradedClientStateResponseSDKType { - upgraded_client_state: AnySDKType; + upgraded_client_state?: AnySDKType; } /** * QueryUpgradedConsensusStateRequest is the request type for the @@ -591,7 +590,7 @@ export interface QueryUpgradedConsensusStateRequestSDKType { */ export interface QueryUpgradedConsensusStateResponse { /** Consensus state associated with the request identifier */ - upgradedConsensusState: Any; + upgradedConsensusState?: Any; } export interface QueryUpgradedConsensusStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; @@ -614,11 +613,12 @@ export interface QueryUpgradedConsensusStateResponseAminoMsg { * Query/UpgradedConsensusState RPC method. */ export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state: AnySDKType; + upgraded_consensus_state?: AnySDKType; } export declare const QueryClientStateRequest: { - encode(message: QueryClientStateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateRequest; + typeUrl: string; + encode(message: QueryClientStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest; fromJSON(object: any): QueryClientStateRequest; toJSON(message: QueryClientStateRequest): unknown; fromPartial(object: Partial): QueryClientStateRequest; @@ -631,8 +631,9 @@ export declare const QueryClientStateRequest: { toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg; }; export declare const QueryClientStateResponse: { - encode(message: QueryClientStateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateResponse; + typeUrl: string; + encode(message: QueryClientStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse; fromJSON(object: any): QueryClientStateResponse; toJSON(message: QueryClientStateResponse): unknown; fromPartial(object: Partial): QueryClientStateResponse; @@ -645,8 +646,9 @@ export declare const QueryClientStateResponse: { toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg; }; export declare const QueryClientStatesRequest: { - encode(message: QueryClientStatesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesRequest; + typeUrl: string; + encode(message: QueryClientStatesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest; fromJSON(object: any): QueryClientStatesRequest; toJSON(message: QueryClientStatesRequest): unknown; fromPartial(object: Partial): QueryClientStatesRequest; @@ -659,8 +661,9 @@ export declare const QueryClientStatesRequest: { toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg; }; export declare const QueryClientStatesResponse: { - encode(message: QueryClientStatesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesResponse; + typeUrl: string; + encode(message: QueryClientStatesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse; fromJSON(object: any): QueryClientStatesResponse; toJSON(message: QueryClientStatesResponse): unknown; fromPartial(object: Partial): QueryClientStatesResponse; @@ -673,8 +676,9 @@ export declare const QueryClientStatesResponse: { toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg; }; export declare const QueryConsensusStateRequest: { - encode(message: QueryConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateRequest; + typeUrl: string; + encode(message: QueryConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest; fromJSON(object: any): QueryConsensusStateRequest; toJSON(message: QueryConsensusStateRequest): unknown; fromPartial(object: Partial): QueryConsensusStateRequest; @@ -687,8 +691,9 @@ export declare const QueryConsensusStateRequest: { toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg; }; export declare const QueryConsensusStateResponse: { - encode(message: QueryConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateResponse; + typeUrl: string; + encode(message: QueryConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse; fromJSON(object: any): QueryConsensusStateResponse; toJSON(message: QueryConsensusStateResponse): unknown; fromPartial(object: Partial): QueryConsensusStateResponse; @@ -701,8 +706,9 @@ export declare const QueryConsensusStateResponse: { toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg; }; export declare const QueryConsensusStatesRequest: { - encode(message: QueryConsensusStatesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesRequest; + typeUrl: string; + encode(message: QueryConsensusStatesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest; fromJSON(object: any): QueryConsensusStatesRequest; toJSON(message: QueryConsensusStatesRequest): unknown; fromPartial(object: Partial): QueryConsensusStatesRequest; @@ -715,8 +721,9 @@ export declare const QueryConsensusStatesRequest: { toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg; }; export declare const QueryConsensusStatesResponse: { - encode(message: QueryConsensusStatesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesResponse; + typeUrl: string; + encode(message: QueryConsensusStatesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse; fromJSON(object: any): QueryConsensusStatesResponse; toJSON(message: QueryConsensusStatesResponse): unknown; fromPartial(object: Partial): QueryConsensusStatesResponse; @@ -729,8 +736,9 @@ export declare const QueryConsensusStatesResponse: { toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg; }; export declare const QueryConsensusStateHeightsRequest: { - encode(message: QueryConsensusStateHeightsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; + typeUrl: string; + encode(message: QueryConsensusStateHeightsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; fromJSON(object: any): QueryConsensusStateHeightsRequest; toJSON(message: QueryConsensusStateHeightsRequest): unknown; fromPartial(object: Partial): QueryConsensusStateHeightsRequest; @@ -743,8 +751,9 @@ export declare const QueryConsensusStateHeightsRequest: { toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg; }; export declare const QueryConsensusStateHeightsResponse: { - encode(message: QueryConsensusStateHeightsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; + typeUrl: string; + encode(message: QueryConsensusStateHeightsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; fromJSON(object: any): QueryConsensusStateHeightsResponse; toJSON(message: QueryConsensusStateHeightsResponse): unknown; fromPartial(object: Partial): QueryConsensusStateHeightsResponse; @@ -757,8 +766,9 @@ export declare const QueryConsensusStateHeightsResponse: { toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg; }; export declare const QueryClientStatusRequest: { - encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusRequest; + typeUrl: string; + encode(message: QueryClientStatusRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest; fromJSON(object: any): QueryClientStatusRequest; toJSON(message: QueryClientStatusRequest): unknown; fromPartial(object: Partial): QueryClientStatusRequest; @@ -771,8 +781,9 @@ export declare const QueryClientStatusRequest: { toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg; }; export declare const QueryClientStatusResponse: { - encode(message: QueryClientStatusResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusResponse; + typeUrl: string; + encode(message: QueryClientStatusResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse; fromJSON(object: any): QueryClientStatusResponse; toJSON(message: QueryClientStatusResponse): unknown; fromPartial(object: Partial): QueryClientStatusResponse; @@ -785,8 +796,9 @@ export declare const QueryClientStatusResponse: { toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg; }; export declare const QueryClientParamsRequest: { - encode(_: QueryClientParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsRequest; + typeUrl: string; + encode(_: QueryClientParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest; fromJSON(_: any): QueryClientParamsRequest; toJSON(_: QueryClientParamsRequest): unknown; fromPartial(_: Partial): QueryClientParamsRequest; @@ -799,8 +811,9 @@ export declare const QueryClientParamsRequest: { toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg; }; export declare const QueryClientParamsResponse: { - encode(message: QueryClientParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsResponse; + typeUrl: string; + encode(message: QueryClientParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse; fromJSON(object: any): QueryClientParamsResponse; toJSON(message: QueryClientParamsResponse): unknown; fromPartial(object: Partial): QueryClientParamsResponse; @@ -813,8 +826,9 @@ export declare const QueryClientParamsResponse: { toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg; }; export declare const QueryUpgradedClientStateRequest: { - encode(_: QueryUpgradedClientStateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; + typeUrl: string; + encode(_: QueryUpgradedClientStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; fromJSON(_: any): QueryUpgradedClientStateRequest; toJSON(_: QueryUpgradedClientStateRequest): unknown; fromPartial(_: Partial): QueryUpgradedClientStateRequest; @@ -827,8 +841,9 @@ export declare const QueryUpgradedClientStateRequest: { toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg; }; export declare const QueryUpgradedClientStateResponse: { - encode(message: QueryUpgradedClientStateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; + typeUrl: string; + encode(message: QueryUpgradedClientStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; fromJSON(object: any): QueryUpgradedClientStateResponse; toJSON(message: QueryUpgradedClientStateResponse): unknown; fromPartial(object: Partial): QueryUpgradedClientStateResponse; @@ -841,8 +856,9 @@ export declare const QueryUpgradedClientStateResponse: { toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg; }; export declare const QueryUpgradedConsensusStateRequest: { - encode(_: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; + typeUrl: string; + encode(_: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; fromJSON(_: any): QueryUpgradedConsensusStateRequest; toJSON(_: QueryUpgradedConsensusStateRequest): unknown; fromPartial(_: Partial): QueryUpgradedConsensusStateRequest; @@ -855,8 +871,9 @@ export declare const QueryUpgradedConsensusStateRequest: { toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; }; export declare const QueryUpgradedConsensusStateResponse: { - encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; + typeUrl: string; + encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; diff --git a/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts b/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts index 4cf81366..995c8c32 100644 --- a/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts b/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts index eb34941f..3e1a1ffa 100644 --- a/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts +++ b/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts @@ -1,14 +1,14 @@ import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** MsgCreateClient defines a message to create an IBC client */ export interface MsgCreateClient { /** light client state */ - clientState: Any; + clientState?: Any; /** * consensus state associated with the client that corresponds to a given * height. */ - consensusState: Any; + consensusState?: Any; /** signer address */ signer: string; } @@ -26,7 +26,7 @@ export interface MsgCreateClientAmino { */ consensus_state?: AnyAmino; /** signer address */ - signer: string; + signer?: string; } export interface MsgCreateClientAminoMsg { type: "cosmos-sdk/MsgCreateClient"; @@ -34,8 +34,8 @@ export interface MsgCreateClientAminoMsg { } /** MsgCreateClient defines a message to create an IBC client */ export interface MsgCreateClientSDKType { - client_state: AnySDKType; - consensus_state: AnySDKType; + client_state?: AnySDKType; + consensus_state?: AnySDKType; signer: string; } /** MsgCreateClientResponse defines the Msg/CreateClient response type. */ @@ -63,7 +63,7 @@ export interface MsgUpdateClient { /** client unique identifier */ clientId: string; /** client message to update the light client */ - clientMessage: Any; + clientMessage?: Any; /** signer address */ signer: string; } @@ -77,11 +77,11 @@ export interface MsgUpdateClientProtoMsg { */ export interface MsgUpdateClientAmino { /** client unique identifier */ - client_id: string; + client_id?: string; /** client message to update the light client */ client_message?: AnyAmino; /** signer address */ - signer: string; + signer?: string; } export interface MsgUpdateClientAminoMsg { type: "cosmos-sdk/MsgUpdateClient"; @@ -93,7 +93,7 @@ export interface MsgUpdateClientAminoMsg { */ export interface MsgUpdateClientSDKType { client_id: string; - client_message: AnySDKType; + client_message?: AnySDKType; signer: string; } /** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ @@ -121,12 +121,12 @@ export interface MsgUpgradeClient { /** client unique identifier */ clientId: string; /** upgraded client state */ - clientState: Any; + clientState?: Any; /** * upgraded consensus state, only contains enough information to serve as a * basis of trust in update logic */ - consensusState: Any; + consensusState?: Any; /** proof that old chain committed to new client */ proofUpgradeClient: Uint8Array; /** proof that old chain committed to new consensus state */ @@ -144,7 +144,7 @@ export interface MsgUpgradeClientProtoMsg { */ export interface MsgUpgradeClientAmino { /** client unique identifier */ - client_id: string; + client_id?: string; /** upgraded client state */ client_state?: AnyAmino; /** @@ -153,11 +153,11 @@ export interface MsgUpgradeClientAmino { */ consensus_state?: AnyAmino; /** proof that old chain committed to new client */ - proof_upgrade_client: Uint8Array; + proof_upgrade_client?: string; /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state: Uint8Array; + proof_upgrade_consensus_state?: string; /** signer address */ - signer: string; + signer?: string; } export interface MsgUpgradeClientAminoMsg { type: "cosmos-sdk/MsgUpgradeClient"; @@ -169,8 +169,8 @@ export interface MsgUpgradeClientAminoMsg { */ export interface MsgUpgradeClientSDKType { client_id: string; - client_state: AnySDKType; - consensus_state: AnySDKType; + client_state?: AnySDKType; + consensus_state?: AnySDKType; proof_upgrade_client: Uint8Array; proof_upgrade_consensus_state: Uint8Array; signer: string; @@ -203,7 +203,7 @@ export interface MsgSubmitMisbehaviour { clientId: string; /** misbehaviour used for freezing the light client */ /** @deprecated */ - misbehaviour: Any; + misbehaviour?: Any; /** signer address */ /** @deprecated */ signer: string; @@ -220,13 +220,13 @@ export interface MsgSubmitMisbehaviourProtoMsg { export interface MsgSubmitMisbehaviourAmino { /** client unique identifier */ /** @deprecated */ - client_id: string; + client_id?: string; /** misbehaviour used for freezing the light client */ /** @deprecated */ misbehaviour?: AnyAmino; /** signer address */ /** @deprecated */ - signer: string; + signer?: string; } export interface MsgSubmitMisbehaviourAminoMsg { type: "cosmos-sdk/MsgSubmitMisbehaviour"; @@ -241,7 +241,7 @@ export interface MsgSubmitMisbehaviourSDKType { /** @deprecated */ client_id: string; /** @deprecated */ - misbehaviour: AnySDKType; + misbehaviour?: AnySDKType; /** @deprecated */ signer: string; } @@ -272,8 +272,9 @@ export interface MsgSubmitMisbehaviourResponseAminoMsg { export interface MsgSubmitMisbehaviourResponseSDKType { } export declare const MsgCreateClient: { - encode(message: MsgCreateClient, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClient; + typeUrl: string; + encode(message: MsgCreateClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient; fromJSON(object: any): MsgCreateClient; toJSON(message: MsgCreateClient): unknown; fromPartial(object: Partial): MsgCreateClient; @@ -286,8 +287,9 @@ export declare const MsgCreateClient: { toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg; }; export declare const MsgCreateClientResponse: { - encode(_: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClientResponse; + typeUrl: string; + encode(_: MsgCreateClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse; fromJSON(_: any): MsgCreateClientResponse; toJSON(_: MsgCreateClientResponse): unknown; fromPartial(_: Partial): MsgCreateClientResponse; @@ -300,8 +302,9 @@ export declare const MsgCreateClientResponse: { toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg; }; export declare const MsgUpdateClient: { - encode(message: MsgUpdateClient, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClient; + typeUrl: string; + encode(message: MsgUpdateClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient; fromJSON(object: any): MsgUpdateClient; toJSON(message: MsgUpdateClient): unknown; fromPartial(object: Partial): MsgUpdateClient; @@ -314,8 +317,9 @@ export declare const MsgUpdateClient: { toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg; }; export declare const MsgUpdateClientResponse: { - encode(_: MsgUpdateClientResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClientResponse; + typeUrl: string; + encode(_: MsgUpdateClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse; fromJSON(_: any): MsgUpdateClientResponse; toJSON(_: MsgUpdateClientResponse): unknown; fromPartial(_: Partial): MsgUpdateClientResponse; @@ -328,8 +332,9 @@ export declare const MsgUpdateClientResponse: { toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg; }; export declare const MsgUpgradeClient: { - encode(message: MsgUpgradeClient, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClient; + typeUrl: string; + encode(message: MsgUpgradeClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient; fromJSON(object: any): MsgUpgradeClient; toJSON(message: MsgUpgradeClient): unknown; fromPartial(object: Partial): MsgUpgradeClient; @@ -342,8 +347,9 @@ export declare const MsgUpgradeClient: { toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg; }; export declare const MsgUpgradeClientResponse: { - encode(_: MsgUpgradeClientResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpgradeClientResponse; + typeUrl: string; + encode(_: MsgUpgradeClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse; fromJSON(_: any): MsgUpgradeClientResponse; toJSON(_: MsgUpgradeClientResponse): unknown; fromPartial(_: Partial): MsgUpgradeClientResponse; @@ -356,8 +362,9 @@ export declare const MsgUpgradeClientResponse: { toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg; }; export declare const MsgSubmitMisbehaviour: { - encode(message: MsgSubmitMisbehaviour, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviour; + typeUrl: string; + encode(message: MsgSubmitMisbehaviour, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour; fromJSON(object: any): MsgSubmitMisbehaviour; toJSON(message: MsgSubmitMisbehaviour): unknown; fromPartial(object: Partial): MsgSubmitMisbehaviour; @@ -370,8 +377,9 @@ export declare const MsgSubmitMisbehaviour: { toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg; }; export declare const MsgSubmitMisbehaviourResponse: { - encode(_: MsgSubmitMisbehaviourResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse; + typeUrl: string; + encode(_: MsgSubmitMisbehaviourResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse; fromJSON(_: any): MsgSubmitMisbehaviourResponse; toJSON(_: MsgSubmitMisbehaviourResponse): unknown; fromPartial(_: Partial): MsgSubmitMisbehaviourResponse; diff --git a/packages/api/types/codegen/index.d.ts b/packages/api/types/codegen/index.d.ts index 8f160af0..0e68b49e 100644 --- a/packages/api/types/codegen/index.d.ts +++ b/packages/api/types/codegen/index.d.ts @@ -1,5 +1,5 @@ /** - * This file and any referenced files were automatically generated by @osmonauts/telescope@0.99.0 + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ @@ -14,3 +14,6 @@ export * from "./ibc/client"; export * from "./regen/bundle"; export * from "./regen/client"; export * from "./tendermint/bundle"; +export * from "./varint"; +export * from "./utf8"; +export * from "./binary"; diff --git a/packages/api/types/codegen/regen/bundle.d.ts b/packages/api/types/codegen/regen/bundle.d.ts index 4ad10678..ec0be824 100644 --- a/packages/api/types/codegen/regen/bundle.d.ts +++ b/packages/api/types/codegen/regen/bundle.d.ts @@ -1,121 +1,121 @@ -import * as _112 from "./data/v1/events"; -import * as _113 from "./data/v1/query"; -import * as _114 from "./data/v1/state"; -import * as _115 from "./data/v1/tx"; -import * as _116 from "./data/v1/types"; -import * as _117 from "./ecocredit/basket/v1/events"; -import * as _118 from "./ecocredit/basket/v1/query"; -import * as _119 from "./ecocredit/basket/v1/state"; -import * as _120 from "./ecocredit/basket/v1/tx"; -import * as _121 from "./ecocredit/basket/v1/types"; -import * as _122 from "./ecocredit/marketplace/v1/events"; -import * as _123 from "./ecocredit/marketplace/v1/query"; -import * as _124 from "./ecocredit/marketplace/v1/state"; -import * as _125 from "./ecocredit/marketplace/v1/tx"; -import * as _126 from "./ecocredit/marketplace/v1/types"; -import * as _127 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _128 from "./ecocredit/v1/events"; -import * as _129 from "./ecocredit/v1/query"; -import * as _130 from "./ecocredit/v1/state"; -import * as _131 from "./ecocredit/v1/tx"; -import * as _132 from "./ecocredit/v1/types"; -import * as _133 from "./ecocredit/v1alpha1/events"; -import * as _134 from "./ecocredit/v1alpha1/genesis"; -import * as _135 from "./ecocredit/v1alpha1/query"; -import * as _136 from "./ecocredit/v1alpha1/tx"; -import * as _137 from "./ecocredit/v1alpha1/types"; -import * as _138 from "./intertx/v1/query"; -import * as _139 from "./intertx/v1/tx"; -import * as _252 from "./data/v1/query.lcd"; -import * as _253 from "./ecocredit/basket/v1/query.lcd"; -import * as _254 from "./ecocredit/marketplace/v1/query.lcd"; -import * as _255 from "./ecocredit/v1/query.lcd"; -import * as _256 from "./ecocredit/v1alpha1/query.lcd"; -import * as _257 from "./intertx/v1/query.lcd"; -import * as _258 from "./data/v1/query.rpc.Query"; -import * as _259 from "./ecocredit/basket/v1/query.rpc.Query"; -import * as _260 from "./ecocredit/marketplace/v1/query.rpc.Query"; -import * as _261 from "./ecocredit/v1/query.rpc.Query"; -import * as _262 from "./ecocredit/v1alpha1/query.rpc.Query"; -import * as _263 from "./intertx/v1/query.rpc.Query"; -import * as _264 from "./data/v1/tx.rpc.msg"; -import * as _265 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _266 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _267 from "./ecocredit/v1/tx.rpc.msg"; -import * as _268 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _269 from "./intertx/v1/tx.rpc.msg"; +import * as _113 from "./data/v1/events"; +import * as _114 from "./data/v1/query"; +import * as _115 from "./data/v1/state"; +import * as _116 from "./data/v1/tx"; +import * as _117 from "./data/v1/types"; +import * as _118 from "./ecocredit/basket/v1/events"; +import * as _119 from "./ecocredit/basket/v1/query"; +import * as _120 from "./ecocredit/basket/v1/state"; +import * as _121 from "./ecocredit/basket/v1/tx"; +import * as _122 from "./ecocredit/basket/v1/types"; +import * as _123 from "./ecocredit/marketplace/v1/events"; +import * as _124 from "./ecocredit/marketplace/v1/query"; +import * as _125 from "./ecocredit/marketplace/v1/state"; +import * as _126 from "./ecocredit/marketplace/v1/tx"; +import * as _127 from "./ecocredit/marketplace/v1/types"; +import * as _128 from "./ecocredit/orderbook/v1alpha1/memory"; +import * as _129 from "./ecocredit/v1/events"; +import * as _130 from "./ecocredit/v1/query"; +import * as _131 from "./ecocredit/v1/state"; +import * as _132 from "./ecocredit/v1/tx"; +import * as _133 from "./ecocredit/v1/types"; +import * as _134 from "./ecocredit/v1alpha1/events"; +import * as _135 from "./ecocredit/v1alpha1/genesis"; +import * as _136 from "./ecocredit/v1alpha1/query"; +import * as _137 from "./ecocredit/v1alpha1/tx"; +import * as _138 from "./ecocredit/v1alpha1/types"; +import * as _139 from "./intertx/v1/query"; +import * as _140 from "./intertx/v1/tx"; +import * as _253 from "./data/v1/query.lcd"; +import * as _254 from "./ecocredit/basket/v1/query.lcd"; +import * as _255 from "./ecocredit/marketplace/v1/query.lcd"; +import * as _256 from "./ecocredit/v1/query.lcd"; +import * as _257 from "./ecocredit/v1alpha1/query.lcd"; +import * as _258 from "./intertx/v1/query.lcd"; +import * as _259 from "./data/v1/query.rpc.Query"; +import * as _260 from "./ecocredit/basket/v1/query.rpc.Query"; +import * as _261 from "./ecocredit/marketplace/v1/query.rpc.Query"; +import * as _262 from "./ecocredit/v1/query.rpc.Query"; +import * as _263 from "./ecocredit/v1alpha1/query.rpc.Query"; +import * as _264 from "./intertx/v1/query.rpc.Query"; +import * as _265 from "./data/v1/tx.rpc.msg"; +import * as _266 from "./ecocredit/basket/v1/tx.rpc.msg"; +import * as _267 from "./ecocredit/marketplace/v1/tx.rpc.msg"; +import * as _268 from "./ecocredit/v1/tx.rpc.msg"; +import * as _269 from "./ecocredit/v1alpha1/tx.rpc.msg"; +import * as _270 from "./intertx/v1/tx.rpc.msg"; export declare namespace regen { namespace data { const v1: { - MsgClientImpl: typeof _264.MsgClientImpl; - QueryClientImpl: typeof _258.QueryClientImpl; + MsgClientImpl: typeof _265.MsgClientImpl; + QueryClientImpl: typeof _259.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - anchorByIRI(request: _113.QueryAnchorByIRIRequest): Promise<_113.QueryAnchorByIRIResponse>; - anchorByHash(request: _113.QueryAnchorByHashRequest): Promise<_113.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _113.QueryAttestationsByAttestorRequest): Promise<_113.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _113.QueryAttestationsByIRIRequest): Promise<_113.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _113.QueryAttestationsByHashRequest): Promise<_113.QueryAttestationsByHashResponse>; - resolver(request: _113.QueryResolverRequest): Promise<_113.QueryResolverResponse>; - resolversByIRI(request: _113.QueryResolversByIRIRequest): Promise<_113.QueryResolversByIRIResponse>; - resolversByHash(request: _113.QueryResolversByHashRequest): Promise<_113.QueryResolversByHashResponse>; - resolversByURL(request: _113.QueryResolversByURLRequest): Promise<_113.QueryResolversByURLResponse>; - convertIRIToHash(request: _113.ConvertIRIToHashRequest): Promise<_113.ConvertIRIToHashResponse>; - convertHashToIRI(request: _113.ConvertHashToIRIRequest): Promise<_113.ConvertHashToIRIResponse>; - }; - LCDQueryClient: typeof _252.LCDQueryClient; + anchorByIRI(request: _114.QueryAnchorByIRIRequest): Promise<_114.QueryAnchorByIRIResponse>; + anchorByHash(request: _114.QueryAnchorByHashRequest): Promise<_114.QueryAnchorByHashResponse>; + attestationsByAttestor(request: _114.QueryAttestationsByAttestorRequest): Promise<_114.QueryAttestationsByAttestorResponse>; + attestationsByIRI(request: _114.QueryAttestationsByIRIRequest): Promise<_114.QueryAttestationsByIRIResponse>; + attestationsByHash(request: _114.QueryAttestationsByHashRequest): Promise<_114.QueryAttestationsByHashResponse>; + resolver(request: _114.QueryResolverRequest): Promise<_114.QueryResolverResponse>; + resolversByIRI(request: _114.QueryResolversByIRIRequest): Promise<_114.QueryResolversByIRIResponse>; + resolversByHash(request: _114.QueryResolversByHashRequest): Promise<_114.QueryResolversByHashResponse>; + resolversByURL(request: _114.QueryResolversByURLRequest): Promise<_114.QueryResolversByURLResponse>; + convertIRIToHash(request: _114.ConvertIRIToHashRequest): Promise<_114.ConvertIRIToHashResponse>; + convertHashToIRI(request: _114.ConvertHashToIRIRequest): Promise<_114.ConvertHashToIRIResponse>; + }; + LCDQueryClient: typeof _253.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - anchor(value: _115.MsgAnchor): { + anchor(value: _116.MsgAnchor): { typeUrl: string; value: Uint8Array; }; - attest(value: _115.MsgAttest): { + attest(value: _116.MsgAttest): { typeUrl: string; value: Uint8Array; }; - defineResolver(value: _115.MsgDefineResolver): { + defineResolver(value: _116.MsgDefineResolver): { typeUrl: string; value: Uint8Array; }; - registerResolver(value: _115.MsgRegisterResolver): { + registerResolver(value: _116.MsgRegisterResolver): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - anchor(value: _115.MsgAnchor): { + anchor(value: _116.MsgAnchor): { typeUrl: string; - value: _115.MsgAnchor; + value: _116.MsgAnchor; }; - attest(value: _115.MsgAttest): { + attest(value: _116.MsgAttest): { typeUrl: string; - value: _115.MsgAttest; + value: _116.MsgAttest; }; - defineResolver(value: _115.MsgDefineResolver): { + defineResolver(value: _116.MsgDefineResolver): { typeUrl: string; - value: _115.MsgDefineResolver; + value: _116.MsgDefineResolver; }; - registerResolver(value: _115.MsgRegisterResolver): { + registerResolver(value: _116.MsgRegisterResolver): { typeUrl: string; - value: _115.MsgRegisterResolver; + value: _116.MsgRegisterResolver; }; }; toJSON: { - anchor(value: _115.MsgAnchor): { + anchor(value: _116.MsgAnchor): { typeUrl: string; value: unknown; }; - attest(value: _115.MsgAttest): { + attest(value: _116.MsgAttest): { typeUrl: string; value: unknown; }; - defineResolver(value: _115.MsgDefineResolver): { + defineResolver(value: _116.MsgDefineResolver): { typeUrl: string; value: unknown; }; - registerResolver(value: _115.MsgRegisterResolver): { + registerResolver(value: _116.MsgRegisterResolver): { typeUrl: string; value: unknown; }; @@ -123,776 +123,822 @@ export declare namespace regen { fromJSON: { anchor(value: any): { typeUrl: string; - value: _115.MsgAnchor; + value: _116.MsgAnchor; }; attest(value: any): { typeUrl: string; - value: _115.MsgAttest; + value: _116.MsgAttest; }; defineResolver(value: any): { typeUrl: string; - value: _115.MsgDefineResolver; + value: _116.MsgDefineResolver; }; registerResolver(value: any): { typeUrl: string; - value: _115.MsgRegisterResolver; + value: _116.MsgRegisterResolver; }; }; fromPartial: { - anchor(value: _115.MsgAnchor): { + anchor(value: _116.MsgAnchor): { typeUrl: string; - value: _115.MsgAnchor; + value: _116.MsgAnchor; }; - attest(value: _115.MsgAttest): { + attest(value: _116.MsgAttest): { typeUrl: string; - value: _115.MsgAttest; + value: _116.MsgAttest; }; - defineResolver(value: _115.MsgDefineResolver): { + defineResolver(value: _116.MsgDefineResolver): { typeUrl: string; - value: _115.MsgDefineResolver; + value: _116.MsgDefineResolver; }; - registerResolver(value: _115.MsgRegisterResolver): { + registerResolver(value: _116.MsgRegisterResolver): { typeUrl: string; - value: _115.MsgRegisterResolver; + value: _116.MsgRegisterResolver; }; }; }; AminoConverter: { "/regen.data.v1.MsgAnchor": { aminoType: string; - toAmino: (message: _115.MsgAnchor) => _115.MsgAnchorAmino; - fromAmino: (object: _115.MsgAnchorAmino) => _115.MsgAnchor; + toAmino: (message: _116.MsgAnchor) => _116.MsgAnchorAmino; + fromAmino: (object: _116.MsgAnchorAmino) => _116.MsgAnchor; }; "/regen.data.v1.MsgAttest": { aminoType: string; - toAmino: (message: _115.MsgAttest) => _115.MsgAttestAmino; - fromAmino: (object: _115.MsgAttestAmino) => _115.MsgAttest; + toAmino: (message: _116.MsgAttest) => _116.MsgAttestAmino; + fromAmino: (object: _116.MsgAttestAmino) => _116.MsgAttest; }; "/regen.data.v1.MsgDefineResolver": { aminoType: string; - toAmino: (message: _115.MsgDefineResolver) => _115.MsgDefineResolverAmino; - fromAmino: (object: _115.MsgDefineResolverAmino) => _115.MsgDefineResolver; + toAmino: (message: _116.MsgDefineResolver) => _116.MsgDefineResolverAmino; + fromAmino: (object: _116.MsgDefineResolverAmino) => _116.MsgDefineResolver; }; "/regen.data.v1.MsgRegisterResolver": { aminoType: string; - toAmino: (message: _115.MsgRegisterResolver) => _115.MsgRegisterResolverAmino; - fromAmino: (object: _115.MsgRegisterResolverAmino) => _115.MsgRegisterResolver; - }; - }; - digestAlgorithmFromJSON(object: any): _116.DigestAlgorithm; - digestAlgorithmToJSON(object: _116.DigestAlgorithm): string; - rawMediaTypeFromJSON(object: any): _116.RawMediaType; - rawMediaTypeToJSON(object: _116.RawMediaType): string; - graphCanonicalizationAlgorithmFromJSON(object: any): _116.GraphCanonicalizationAlgorithm; - graphCanonicalizationAlgorithmToJSON(object: _116.GraphCanonicalizationAlgorithm): string; - graphMerkleTreeFromJSON(object: any): _116.GraphMerkleTree; - graphMerkleTreeToJSON(object: _116.GraphMerkleTree): string; - DigestAlgorithm: typeof _116.DigestAlgorithm; - DigestAlgorithmSDKType: typeof _116.DigestAlgorithm; - DigestAlgorithmAmino: typeof _116.DigestAlgorithm; - RawMediaType: typeof _116.RawMediaType; - RawMediaTypeSDKType: typeof _116.RawMediaType; - RawMediaTypeAmino: typeof _116.RawMediaType; - GraphCanonicalizationAlgorithm: typeof _116.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmSDKType: typeof _116.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmAmino: typeof _116.GraphCanonicalizationAlgorithm; - GraphMerkleTree: typeof _116.GraphMerkleTree; - GraphMerkleTreeSDKType: typeof _116.GraphMerkleTree; - GraphMerkleTreeAmino: typeof _116.GraphMerkleTree; + toAmino: (message: _116.MsgRegisterResolver) => _116.MsgRegisterResolverAmino; + fromAmino: (object: _116.MsgRegisterResolverAmino) => _116.MsgRegisterResolver; + }; + }; + digestAlgorithmFromJSON(object: any): _117.DigestAlgorithm; + digestAlgorithmToJSON(object: _117.DigestAlgorithm): string; + rawMediaTypeFromJSON(object: any): _117.RawMediaType; + rawMediaTypeToJSON(object: _117.RawMediaType): string; + graphCanonicalizationAlgorithmFromJSON(object: any): _117.GraphCanonicalizationAlgorithm; + graphCanonicalizationAlgorithmToJSON(object: _117.GraphCanonicalizationAlgorithm): string; + graphMerkleTreeFromJSON(object: any): _117.GraphMerkleTree; + graphMerkleTreeToJSON(object: _117.GraphMerkleTree): string; + DigestAlgorithm: typeof _117.DigestAlgorithm; + DigestAlgorithmSDKType: typeof _117.DigestAlgorithm; + DigestAlgorithmAmino: typeof _117.DigestAlgorithm; + RawMediaType: typeof _117.RawMediaType; + RawMediaTypeSDKType: typeof _117.RawMediaType; + RawMediaTypeAmino: typeof _117.RawMediaType; + GraphCanonicalizationAlgorithm: typeof _117.GraphCanonicalizationAlgorithm; + GraphCanonicalizationAlgorithmSDKType: typeof _117.GraphCanonicalizationAlgorithm; + GraphCanonicalizationAlgorithmAmino: typeof _117.GraphCanonicalizationAlgorithm; + GraphMerkleTree: typeof _117.GraphMerkleTree; + GraphMerkleTreeSDKType: typeof _117.GraphMerkleTree; + GraphMerkleTreeAmino: typeof _117.GraphMerkleTree; ContentHash: { - encode(message: _116.ContentHash, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _116.ContentHash; - fromJSON(object: any): _116.ContentHash; - toJSON(message: _116.ContentHash): unknown; - fromPartial(object: Partial<_116.ContentHash>): _116.ContentHash; - fromAmino(object: _116.ContentHashAmino): _116.ContentHash; - toAmino(message: _116.ContentHash): _116.ContentHashAmino; - fromAminoMsg(object: _116.ContentHashAminoMsg): _116.ContentHash; - fromProtoMsg(message: _116.ContentHashProtoMsg): _116.ContentHash; - toProto(message: _116.ContentHash): Uint8Array; - toProtoMsg(message: _116.ContentHash): _116.ContentHashProtoMsg; + typeUrl: string; + encode(message: _117.ContentHash, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash; + fromJSON(object: any): _117.ContentHash; + toJSON(message: _117.ContentHash): unknown; + fromPartial(object: Partial<_117.ContentHash>): _117.ContentHash; + fromAmino(object: _117.ContentHashAmino): _117.ContentHash; + toAmino(message: _117.ContentHash): _117.ContentHashAmino; + fromAminoMsg(object: _117.ContentHashAminoMsg): _117.ContentHash; + fromProtoMsg(message: _117.ContentHashProtoMsg): _117.ContentHash; + toProto(message: _117.ContentHash): Uint8Array; + toProtoMsg(message: _117.ContentHash): _117.ContentHashProtoMsg; }; ContentHash_Raw: { - encode(message: _116.ContentHash_Raw, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _116.ContentHash_Raw; - fromJSON(object: any): _116.ContentHash_Raw; - toJSON(message: _116.ContentHash_Raw): unknown; - fromPartial(object: Partial<_116.ContentHash_Raw>): _116.ContentHash_Raw; - fromAmino(object: _116.ContentHash_RawAmino): _116.ContentHash_Raw; - toAmino(message: _116.ContentHash_Raw): _116.ContentHash_RawAmino; - fromAminoMsg(object: _116.ContentHash_RawAminoMsg): _116.ContentHash_Raw; - fromProtoMsg(message: _116.ContentHash_RawProtoMsg): _116.ContentHash_Raw; - toProto(message: _116.ContentHash_Raw): Uint8Array; - toProtoMsg(message: _116.ContentHash_Raw): _116.ContentHash_RawProtoMsg; + typeUrl: string; + encode(message: _117.ContentHash_Raw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash_Raw; + fromJSON(object: any): _117.ContentHash_Raw; + toJSON(message: _117.ContentHash_Raw): unknown; + fromPartial(object: Partial<_117.ContentHash_Raw>): _117.ContentHash_Raw; + fromAmino(object: _117.ContentHash_RawAmino): _117.ContentHash_Raw; + toAmino(message: _117.ContentHash_Raw): _117.ContentHash_RawAmino; + fromAminoMsg(object: _117.ContentHash_RawAminoMsg): _117.ContentHash_Raw; + fromProtoMsg(message: _117.ContentHash_RawProtoMsg): _117.ContentHash_Raw; + toProto(message: _117.ContentHash_Raw): Uint8Array; + toProtoMsg(message: _117.ContentHash_Raw): _117.ContentHash_RawProtoMsg; }; ContentHash_Graph: { - encode(message: _116.ContentHash_Graph, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _116.ContentHash_Graph; - fromJSON(object: any): _116.ContentHash_Graph; - toJSON(message: _116.ContentHash_Graph): unknown; - fromPartial(object: Partial<_116.ContentHash_Graph>): _116.ContentHash_Graph; - fromAmino(object: _116.ContentHash_GraphAmino): _116.ContentHash_Graph; - toAmino(message: _116.ContentHash_Graph): _116.ContentHash_GraphAmino; - fromAminoMsg(object: _116.ContentHash_GraphAminoMsg): _116.ContentHash_Graph; - fromProtoMsg(message: _116.ContentHash_GraphProtoMsg): _116.ContentHash_Graph; - toProto(message: _116.ContentHash_Graph): Uint8Array; - toProtoMsg(message: _116.ContentHash_Graph): _116.ContentHash_GraphProtoMsg; + typeUrl: string; + encode(message: _117.ContentHash_Graph, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash_Graph; + fromJSON(object: any): _117.ContentHash_Graph; + toJSON(message: _117.ContentHash_Graph): unknown; + fromPartial(object: Partial<_117.ContentHash_Graph>): _117.ContentHash_Graph; + fromAmino(object: _117.ContentHash_GraphAmino): _117.ContentHash_Graph; + toAmino(message: _117.ContentHash_Graph): _117.ContentHash_GraphAmino; + fromAminoMsg(object: _117.ContentHash_GraphAminoMsg): _117.ContentHash_Graph; + fromProtoMsg(message: _117.ContentHash_GraphProtoMsg): _117.ContentHash_Graph; + toProto(message: _117.ContentHash_Graph): Uint8Array; + toProtoMsg(message: _117.ContentHash_Graph): _117.ContentHash_GraphProtoMsg; }; ContentHashes: { - encode(message: _116.ContentHashes, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _116.ContentHashes; - fromJSON(object: any): _116.ContentHashes; - toJSON(message: _116.ContentHashes): unknown; - fromPartial(object: Partial<_116.ContentHashes>): _116.ContentHashes; - fromAmino(object: _116.ContentHashesAmino): _116.ContentHashes; - toAmino(message: _116.ContentHashes): _116.ContentHashesAmino; - fromAminoMsg(object: _116.ContentHashesAminoMsg): _116.ContentHashes; - fromProtoMsg(message: _116.ContentHashesProtoMsg): _116.ContentHashes; - toProto(message: _116.ContentHashes): Uint8Array; - toProtoMsg(message: _116.ContentHashes): _116.ContentHashesProtoMsg; + typeUrl: string; + encode(message: _117.ContentHashes, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHashes; + fromJSON(object: any): _117.ContentHashes; + toJSON(message: _117.ContentHashes): unknown; + fromPartial(object: Partial<_117.ContentHashes>): _117.ContentHashes; + fromAmino(object: _117.ContentHashesAmino): _117.ContentHashes; + toAmino(message: _117.ContentHashes): _117.ContentHashesAmino; + fromAminoMsg(object: _117.ContentHashesAminoMsg): _117.ContentHashes; + fromProtoMsg(message: _117.ContentHashesProtoMsg): _117.ContentHashes; + toProto(message: _117.ContentHashes): Uint8Array; + toProtoMsg(message: _117.ContentHashes): _117.ContentHashesProtoMsg; }; MsgAnchor: { - encode(message: _115.MsgAnchor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgAnchor; - fromJSON(object: any): _115.MsgAnchor; - toJSON(message: _115.MsgAnchor): unknown; - fromPartial(object: Partial<_115.MsgAnchor>): _115.MsgAnchor; - fromAmino(object: _115.MsgAnchorAmino): _115.MsgAnchor; - toAmino(message: _115.MsgAnchor): _115.MsgAnchorAmino; - fromAminoMsg(object: _115.MsgAnchorAminoMsg): _115.MsgAnchor; - toAminoMsg(message: _115.MsgAnchor): _115.MsgAnchorAminoMsg; - fromProtoMsg(message: _115.MsgAnchorProtoMsg): _115.MsgAnchor; - toProto(message: _115.MsgAnchor): Uint8Array; - toProtoMsg(message: _115.MsgAnchor): _115.MsgAnchorProtoMsg; + typeUrl: string; + encode(message: _116.MsgAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAnchor; + fromJSON(object: any): _116.MsgAnchor; + toJSON(message: _116.MsgAnchor): unknown; + fromPartial(object: Partial<_116.MsgAnchor>): _116.MsgAnchor; + fromAmino(object: _116.MsgAnchorAmino): _116.MsgAnchor; + toAmino(message: _116.MsgAnchor): _116.MsgAnchorAmino; + fromAminoMsg(object: _116.MsgAnchorAminoMsg): _116.MsgAnchor; + toAminoMsg(message: _116.MsgAnchor): _116.MsgAnchorAminoMsg; + fromProtoMsg(message: _116.MsgAnchorProtoMsg): _116.MsgAnchor; + toProto(message: _116.MsgAnchor): Uint8Array; + toProtoMsg(message: _116.MsgAnchor): _116.MsgAnchorProtoMsg; }; MsgAnchorResponse: { - encode(message: _115.MsgAnchorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgAnchorResponse; - fromJSON(object: any): _115.MsgAnchorResponse; - toJSON(message: _115.MsgAnchorResponse): unknown; - fromPartial(object: Partial<_115.MsgAnchorResponse>): _115.MsgAnchorResponse; - fromAmino(object: _115.MsgAnchorResponseAmino): _115.MsgAnchorResponse; - toAmino(message: _115.MsgAnchorResponse): _115.MsgAnchorResponseAmino; - fromAminoMsg(object: _115.MsgAnchorResponseAminoMsg): _115.MsgAnchorResponse; - fromProtoMsg(message: _115.MsgAnchorResponseProtoMsg): _115.MsgAnchorResponse; - toProto(message: _115.MsgAnchorResponse): Uint8Array; - toProtoMsg(message: _115.MsgAnchorResponse): _115.MsgAnchorResponseProtoMsg; + typeUrl: string; + encode(message: _116.MsgAnchorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAnchorResponse; + fromJSON(object: any): _116.MsgAnchorResponse; + toJSON(message: _116.MsgAnchorResponse): unknown; + fromPartial(object: Partial<_116.MsgAnchorResponse>): _116.MsgAnchorResponse; + fromAmino(object: _116.MsgAnchorResponseAmino): _116.MsgAnchorResponse; + toAmino(message: _116.MsgAnchorResponse): _116.MsgAnchorResponseAmino; + fromAminoMsg(object: _116.MsgAnchorResponseAminoMsg): _116.MsgAnchorResponse; + fromProtoMsg(message: _116.MsgAnchorResponseProtoMsg): _116.MsgAnchorResponse; + toProto(message: _116.MsgAnchorResponse): Uint8Array; + toProtoMsg(message: _116.MsgAnchorResponse): _116.MsgAnchorResponseProtoMsg; }; MsgAttest: { - encode(message: _115.MsgAttest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgAttest; - fromJSON(object: any): _115.MsgAttest; - toJSON(message: _115.MsgAttest): unknown; - fromPartial(object: Partial<_115.MsgAttest>): _115.MsgAttest; - fromAmino(object: _115.MsgAttestAmino): _115.MsgAttest; - toAmino(message: _115.MsgAttest): _115.MsgAttestAmino; - fromAminoMsg(object: _115.MsgAttestAminoMsg): _115.MsgAttest; - toAminoMsg(message: _115.MsgAttest): _115.MsgAttestAminoMsg; - fromProtoMsg(message: _115.MsgAttestProtoMsg): _115.MsgAttest; - toProto(message: _115.MsgAttest): Uint8Array; - toProtoMsg(message: _115.MsgAttest): _115.MsgAttestProtoMsg; + typeUrl: string; + encode(message: _116.MsgAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAttest; + fromJSON(object: any): _116.MsgAttest; + toJSON(message: _116.MsgAttest): unknown; + fromPartial(object: Partial<_116.MsgAttest>): _116.MsgAttest; + fromAmino(object: _116.MsgAttestAmino): _116.MsgAttest; + toAmino(message: _116.MsgAttest): _116.MsgAttestAmino; + fromAminoMsg(object: _116.MsgAttestAminoMsg): _116.MsgAttest; + toAminoMsg(message: _116.MsgAttest): _116.MsgAttestAminoMsg; + fromProtoMsg(message: _116.MsgAttestProtoMsg): _116.MsgAttest; + toProto(message: _116.MsgAttest): Uint8Array; + toProtoMsg(message: _116.MsgAttest): _116.MsgAttestProtoMsg; }; MsgAttestResponse: { - encode(message: _115.MsgAttestResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgAttestResponse; - fromJSON(object: any): _115.MsgAttestResponse; - toJSON(message: _115.MsgAttestResponse): unknown; - fromPartial(object: Partial<_115.MsgAttestResponse>): _115.MsgAttestResponse; - fromAmino(object: _115.MsgAttestResponseAmino): _115.MsgAttestResponse; - toAmino(message: _115.MsgAttestResponse): _115.MsgAttestResponseAmino; - fromAminoMsg(object: _115.MsgAttestResponseAminoMsg): _115.MsgAttestResponse; - fromProtoMsg(message: _115.MsgAttestResponseProtoMsg): _115.MsgAttestResponse; - toProto(message: _115.MsgAttestResponse): Uint8Array; - toProtoMsg(message: _115.MsgAttestResponse): _115.MsgAttestResponseProtoMsg; + typeUrl: string; + encode(message: _116.MsgAttestResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAttestResponse; + fromJSON(object: any): _116.MsgAttestResponse; + toJSON(message: _116.MsgAttestResponse): unknown; + fromPartial(object: Partial<_116.MsgAttestResponse>): _116.MsgAttestResponse; + fromAmino(object: _116.MsgAttestResponseAmino): _116.MsgAttestResponse; + toAmino(message: _116.MsgAttestResponse): _116.MsgAttestResponseAmino; + fromAminoMsg(object: _116.MsgAttestResponseAminoMsg): _116.MsgAttestResponse; + fromProtoMsg(message: _116.MsgAttestResponseProtoMsg): _116.MsgAttestResponse; + toProto(message: _116.MsgAttestResponse): Uint8Array; + toProtoMsg(message: _116.MsgAttestResponse): _116.MsgAttestResponseProtoMsg; }; MsgDefineResolver: { - encode(message: _115.MsgDefineResolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgDefineResolver; - fromJSON(object: any): _115.MsgDefineResolver; - toJSON(message: _115.MsgDefineResolver): unknown; - fromPartial(object: Partial<_115.MsgDefineResolver>): _115.MsgDefineResolver; - fromAmino(object: _115.MsgDefineResolverAmino): _115.MsgDefineResolver; - toAmino(message: _115.MsgDefineResolver): _115.MsgDefineResolverAmino; - fromAminoMsg(object: _115.MsgDefineResolverAminoMsg): _115.MsgDefineResolver; - toAminoMsg(message: _115.MsgDefineResolver): _115.MsgDefineResolverAminoMsg; - fromProtoMsg(message: _115.MsgDefineResolverProtoMsg): _115.MsgDefineResolver; - toProto(message: _115.MsgDefineResolver): Uint8Array; - toProtoMsg(message: _115.MsgDefineResolver): _115.MsgDefineResolverProtoMsg; + typeUrl: string; + encode(message: _116.MsgDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgDefineResolver; + fromJSON(object: any): _116.MsgDefineResolver; + toJSON(message: _116.MsgDefineResolver): unknown; + fromPartial(object: Partial<_116.MsgDefineResolver>): _116.MsgDefineResolver; + fromAmino(object: _116.MsgDefineResolverAmino): _116.MsgDefineResolver; + toAmino(message: _116.MsgDefineResolver): _116.MsgDefineResolverAmino; + fromAminoMsg(object: _116.MsgDefineResolverAminoMsg): _116.MsgDefineResolver; + toAminoMsg(message: _116.MsgDefineResolver): _116.MsgDefineResolverAminoMsg; + fromProtoMsg(message: _116.MsgDefineResolverProtoMsg): _116.MsgDefineResolver; + toProto(message: _116.MsgDefineResolver): Uint8Array; + toProtoMsg(message: _116.MsgDefineResolver): _116.MsgDefineResolverProtoMsg; }; MsgDefineResolverResponse: { - encode(message: _115.MsgDefineResolverResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgDefineResolverResponse; - fromJSON(object: any): _115.MsgDefineResolverResponse; - toJSON(message: _115.MsgDefineResolverResponse): unknown; - fromPartial(object: Partial<_115.MsgDefineResolverResponse>): _115.MsgDefineResolverResponse; - fromAmino(object: _115.MsgDefineResolverResponseAmino): _115.MsgDefineResolverResponse; - toAmino(message: _115.MsgDefineResolverResponse): _115.MsgDefineResolverResponseAmino; - fromAminoMsg(object: _115.MsgDefineResolverResponseAminoMsg): _115.MsgDefineResolverResponse; - fromProtoMsg(message: _115.MsgDefineResolverResponseProtoMsg): _115.MsgDefineResolverResponse; - toProto(message: _115.MsgDefineResolverResponse): Uint8Array; - toProtoMsg(message: _115.MsgDefineResolverResponse): _115.MsgDefineResolverResponseProtoMsg; + typeUrl: string; + encode(message: _116.MsgDefineResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgDefineResolverResponse; + fromJSON(object: any): _116.MsgDefineResolverResponse; + toJSON(message: _116.MsgDefineResolverResponse): unknown; + fromPartial(object: Partial<_116.MsgDefineResolverResponse>): _116.MsgDefineResolverResponse; + fromAmino(object: _116.MsgDefineResolverResponseAmino): _116.MsgDefineResolverResponse; + toAmino(message: _116.MsgDefineResolverResponse): _116.MsgDefineResolverResponseAmino; + fromAminoMsg(object: _116.MsgDefineResolverResponseAminoMsg): _116.MsgDefineResolverResponse; + fromProtoMsg(message: _116.MsgDefineResolverResponseProtoMsg): _116.MsgDefineResolverResponse; + toProto(message: _116.MsgDefineResolverResponse): Uint8Array; + toProtoMsg(message: _116.MsgDefineResolverResponse): _116.MsgDefineResolverResponseProtoMsg; }; MsgRegisterResolver: { - encode(message: _115.MsgRegisterResolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgRegisterResolver; - fromJSON(object: any): _115.MsgRegisterResolver; - toJSON(message: _115.MsgRegisterResolver): unknown; - fromPartial(object: Partial<_115.MsgRegisterResolver>): _115.MsgRegisterResolver; - fromAmino(object: _115.MsgRegisterResolverAmino): _115.MsgRegisterResolver; - toAmino(message: _115.MsgRegisterResolver): _115.MsgRegisterResolverAmino; - fromAminoMsg(object: _115.MsgRegisterResolverAminoMsg): _115.MsgRegisterResolver; - toAminoMsg(message: _115.MsgRegisterResolver): _115.MsgRegisterResolverAminoMsg; - fromProtoMsg(message: _115.MsgRegisterResolverProtoMsg): _115.MsgRegisterResolver; - toProto(message: _115.MsgRegisterResolver): Uint8Array; - toProtoMsg(message: _115.MsgRegisterResolver): _115.MsgRegisterResolverProtoMsg; + typeUrl: string; + encode(message: _116.MsgRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgRegisterResolver; + fromJSON(object: any): _116.MsgRegisterResolver; + toJSON(message: _116.MsgRegisterResolver): unknown; + fromPartial(object: Partial<_116.MsgRegisterResolver>): _116.MsgRegisterResolver; + fromAmino(object: _116.MsgRegisterResolverAmino): _116.MsgRegisterResolver; + toAmino(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverAmino; + fromAminoMsg(object: _116.MsgRegisterResolverAminoMsg): _116.MsgRegisterResolver; + toAminoMsg(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverAminoMsg; + fromProtoMsg(message: _116.MsgRegisterResolverProtoMsg): _116.MsgRegisterResolver; + toProto(message: _116.MsgRegisterResolver): Uint8Array; + toProtoMsg(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverProtoMsg; }; MsgRegisterResolverResponse: { - encode(_: _115.MsgRegisterResolverResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _115.MsgRegisterResolverResponse; - fromJSON(_: any): _115.MsgRegisterResolverResponse; - toJSON(_: _115.MsgRegisterResolverResponse): unknown; - fromPartial(_: Partial<_115.MsgRegisterResolverResponse>): _115.MsgRegisterResolverResponse; - fromAmino(_: _115.MsgRegisterResolverResponseAmino): _115.MsgRegisterResolverResponse; - toAmino(_: _115.MsgRegisterResolverResponse): _115.MsgRegisterResolverResponseAmino; - fromAminoMsg(object: _115.MsgRegisterResolverResponseAminoMsg): _115.MsgRegisterResolverResponse; - fromProtoMsg(message: _115.MsgRegisterResolverResponseProtoMsg): _115.MsgRegisterResolverResponse; - toProto(message: _115.MsgRegisterResolverResponse): Uint8Array; - toProtoMsg(message: _115.MsgRegisterResolverResponse): _115.MsgRegisterResolverResponseProtoMsg; + typeUrl: string; + encode(_: _116.MsgRegisterResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgRegisterResolverResponse; + fromJSON(_: any): _116.MsgRegisterResolverResponse; + toJSON(_: _116.MsgRegisterResolverResponse): unknown; + fromPartial(_: Partial<_116.MsgRegisterResolverResponse>): _116.MsgRegisterResolverResponse; + fromAmino(_: _116.MsgRegisterResolverResponseAmino): _116.MsgRegisterResolverResponse; + toAmino(_: _116.MsgRegisterResolverResponse): _116.MsgRegisterResolverResponseAmino; + fromAminoMsg(object: _116.MsgRegisterResolverResponseAminoMsg): _116.MsgRegisterResolverResponse; + fromProtoMsg(message: _116.MsgRegisterResolverResponseProtoMsg): _116.MsgRegisterResolverResponse; + toProto(message: _116.MsgRegisterResolverResponse): Uint8Array; + toProtoMsg(message: _116.MsgRegisterResolverResponse): _116.MsgRegisterResolverResponseProtoMsg; }; DataID: { - encode(message: _114.DataID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _114.DataID; - fromJSON(object: any): _114.DataID; - toJSON(message: _114.DataID): unknown; - fromPartial(object: Partial<_114.DataID>): _114.DataID; - fromAmino(object: _114.DataIDAmino): _114.DataID; - toAmino(message: _114.DataID): _114.DataIDAmino; - fromAminoMsg(object: _114.DataIDAminoMsg): _114.DataID; - fromProtoMsg(message: _114.DataIDProtoMsg): _114.DataID; - toProto(message: _114.DataID): Uint8Array; - toProtoMsg(message: _114.DataID): _114.DataIDProtoMsg; + typeUrl: string; + encode(message: _115.DataID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataID; + fromJSON(object: any): _115.DataID; + toJSON(message: _115.DataID): unknown; + fromPartial(object: Partial<_115.DataID>): _115.DataID; + fromAmino(object: _115.DataIDAmino): _115.DataID; + toAmino(message: _115.DataID): _115.DataIDAmino; + fromAminoMsg(object: _115.DataIDAminoMsg): _115.DataID; + fromProtoMsg(message: _115.DataIDProtoMsg): _115.DataID; + toProto(message: _115.DataID): Uint8Array; + toProtoMsg(message: _115.DataID): _115.DataIDProtoMsg; }; DataAnchor: { - encode(message: _114.DataAnchor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _114.DataAnchor; - fromJSON(object: any): _114.DataAnchor; - toJSON(message: _114.DataAnchor): unknown; - fromPartial(object: Partial<_114.DataAnchor>): _114.DataAnchor; - fromAmino(object: _114.DataAnchorAmino): _114.DataAnchor; - toAmino(message: _114.DataAnchor): _114.DataAnchorAmino; - fromAminoMsg(object: _114.DataAnchorAminoMsg): _114.DataAnchor; - fromProtoMsg(message: _114.DataAnchorProtoMsg): _114.DataAnchor; - toProto(message: _114.DataAnchor): Uint8Array; - toProtoMsg(message: _114.DataAnchor): _114.DataAnchorProtoMsg; + typeUrl: string; + encode(message: _115.DataAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataAnchor; + fromJSON(object: any): _115.DataAnchor; + toJSON(message: _115.DataAnchor): unknown; + fromPartial(object: Partial<_115.DataAnchor>): _115.DataAnchor; + fromAmino(object: _115.DataAnchorAmino): _115.DataAnchor; + toAmino(message: _115.DataAnchor): _115.DataAnchorAmino; + fromAminoMsg(object: _115.DataAnchorAminoMsg): _115.DataAnchor; + fromProtoMsg(message: _115.DataAnchorProtoMsg): _115.DataAnchor; + toProto(message: _115.DataAnchor): Uint8Array; + toProtoMsg(message: _115.DataAnchor): _115.DataAnchorProtoMsg; }; DataAttestor: { - encode(message: _114.DataAttestor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _114.DataAttestor; - fromJSON(object: any): _114.DataAttestor; - toJSON(message: _114.DataAttestor): unknown; - fromPartial(object: Partial<_114.DataAttestor>): _114.DataAttestor; - fromAmino(object: _114.DataAttestorAmino): _114.DataAttestor; - toAmino(message: _114.DataAttestor): _114.DataAttestorAmino; - fromAminoMsg(object: _114.DataAttestorAminoMsg): _114.DataAttestor; - fromProtoMsg(message: _114.DataAttestorProtoMsg): _114.DataAttestor; - toProto(message: _114.DataAttestor): Uint8Array; - toProtoMsg(message: _114.DataAttestor): _114.DataAttestorProtoMsg; + typeUrl: string; + encode(message: _115.DataAttestor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataAttestor; + fromJSON(object: any): _115.DataAttestor; + toJSON(message: _115.DataAttestor): unknown; + fromPartial(object: Partial<_115.DataAttestor>): _115.DataAttestor; + fromAmino(object: _115.DataAttestorAmino): _115.DataAttestor; + toAmino(message: _115.DataAttestor): _115.DataAttestorAmino; + fromAminoMsg(object: _115.DataAttestorAminoMsg): _115.DataAttestor; + fromProtoMsg(message: _115.DataAttestorProtoMsg): _115.DataAttestor; + toProto(message: _115.DataAttestor): Uint8Array; + toProtoMsg(message: _115.DataAttestor): _115.DataAttestorProtoMsg; }; Resolver: { - encode(message: _114.Resolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _114.Resolver; - fromJSON(object: any): _114.Resolver; - toJSON(message: _114.Resolver): unknown; - fromPartial(object: Partial<_114.Resolver>): _114.Resolver; - fromAmino(object: _114.ResolverAmino): _114.Resolver; - toAmino(message: _114.Resolver): _114.ResolverAmino; - fromAminoMsg(object: _114.ResolverAminoMsg): _114.Resolver; - fromProtoMsg(message: _114.ResolverProtoMsg): _114.Resolver; - toProto(message: _114.Resolver): Uint8Array; - toProtoMsg(message: _114.Resolver): _114.ResolverProtoMsg; + typeUrl: string; + encode(message: _115.Resolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.Resolver; + fromJSON(object: any): _115.Resolver; + toJSON(message: _115.Resolver): unknown; + fromPartial(object: Partial<_115.Resolver>): _115.Resolver; + fromAmino(object: _115.ResolverAmino): _115.Resolver; + toAmino(message: _115.Resolver): _115.ResolverAmino; + fromAminoMsg(object: _115.ResolverAminoMsg): _115.Resolver; + fromProtoMsg(message: _115.ResolverProtoMsg): _115.Resolver; + toProto(message: _115.Resolver): Uint8Array; + toProtoMsg(message: _115.Resolver): _115.ResolverProtoMsg; }; DataResolver: { - encode(message: _114.DataResolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _114.DataResolver; - fromJSON(object: any): _114.DataResolver; - toJSON(message: _114.DataResolver): unknown; - fromPartial(object: Partial<_114.DataResolver>): _114.DataResolver; - fromAmino(object: _114.DataResolverAmino): _114.DataResolver; - toAmino(message: _114.DataResolver): _114.DataResolverAmino; - fromAminoMsg(object: _114.DataResolverAminoMsg): _114.DataResolver; - fromProtoMsg(message: _114.DataResolverProtoMsg): _114.DataResolver; - toProto(message: _114.DataResolver): Uint8Array; - toProtoMsg(message: _114.DataResolver): _114.DataResolverProtoMsg; + typeUrl: string; + encode(message: _115.DataResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataResolver; + fromJSON(object: any): _115.DataResolver; + toJSON(message: _115.DataResolver): unknown; + fromPartial(object: Partial<_115.DataResolver>): _115.DataResolver; + fromAmino(object: _115.DataResolverAmino): _115.DataResolver; + toAmino(message: _115.DataResolver): _115.DataResolverAmino; + fromAminoMsg(object: _115.DataResolverAminoMsg): _115.DataResolver; + fromProtoMsg(message: _115.DataResolverProtoMsg): _115.DataResolver; + toProto(message: _115.DataResolver): Uint8Array; + toProtoMsg(message: _115.DataResolver): _115.DataResolverProtoMsg; }; QueryAnchorByIRIRequest: { - encode(message: _113.QueryAnchorByIRIRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAnchorByIRIRequest; - fromJSON(object: any): _113.QueryAnchorByIRIRequest; - toJSON(message: _113.QueryAnchorByIRIRequest): unknown; - fromPartial(object: Partial<_113.QueryAnchorByIRIRequest>): _113.QueryAnchorByIRIRequest; - fromAmino(object: _113.QueryAnchorByIRIRequestAmino): _113.QueryAnchorByIRIRequest; - toAmino(message: _113.QueryAnchorByIRIRequest): _113.QueryAnchorByIRIRequestAmino; - fromAminoMsg(object: _113.QueryAnchorByIRIRequestAminoMsg): _113.QueryAnchorByIRIRequest; - fromProtoMsg(message: _113.QueryAnchorByIRIRequestProtoMsg): _113.QueryAnchorByIRIRequest; - toProto(message: _113.QueryAnchorByIRIRequest): Uint8Array; - toProtoMsg(message: _113.QueryAnchorByIRIRequest): _113.QueryAnchorByIRIRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryAnchorByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByIRIRequest; + fromJSON(object: any): _114.QueryAnchorByIRIRequest; + toJSON(message: _114.QueryAnchorByIRIRequest): unknown; + fromPartial(object: Partial<_114.QueryAnchorByIRIRequest>): _114.QueryAnchorByIRIRequest; + fromAmino(object: _114.QueryAnchorByIRIRequestAmino): _114.QueryAnchorByIRIRequest; + toAmino(message: _114.QueryAnchorByIRIRequest): _114.QueryAnchorByIRIRequestAmino; + fromAminoMsg(object: _114.QueryAnchorByIRIRequestAminoMsg): _114.QueryAnchorByIRIRequest; + fromProtoMsg(message: _114.QueryAnchorByIRIRequestProtoMsg): _114.QueryAnchorByIRIRequest; + toProto(message: _114.QueryAnchorByIRIRequest): Uint8Array; + toProtoMsg(message: _114.QueryAnchorByIRIRequest): _114.QueryAnchorByIRIRequestProtoMsg; }; QueryAnchorByIRIResponse: { - encode(message: _113.QueryAnchorByIRIResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAnchorByIRIResponse; - fromJSON(object: any): _113.QueryAnchorByIRIResponse; - toJSON(message: _113.QueryAnchorByIRIResponse): unknown; - fromPartial(object: Partial<_113.QueryAnchorByIRIResponse>): _113.QueryAnchorByIRIResponse; - fromAmino(object: _113.QueryAnchorByIRIResponseAmino): _113.QueryAnchorByIRIResponse; - toAmino(message: _113.QueryAnchorByIRIResponse): _113.QueryAnchorByIRIResponseAmino; - fromAminoMsg(object: _113.QueryAnchorByIRIResponseAminoMsg): _113.QueryAnchorByIRIResponse; - fromProtoMsg(message: _113.QueryAnchorByIRIResponseProtoMsg): _113.QueryAnchorByIRIResponse; - toProto(message: _113.QueryAnchorByIRIResponse): Uint8Array; - toProtoMsg(message: _113.QueryAnchorByIRIResponse): _113.QueryAnchorByIRIResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryAnchorByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByIRIResponse; + fromJSON(object: any): _114.QueryAnchorByIRIResponse; + toJSON(message: _114.QueryAnchorByIRIResponse): unknown; + fromPartial(object: Partial<_114.QueryAnchorByIRIResponse>): _114.QueryAnchorByIRIResponse; + fromAmino(object: _114.QueryAnchorByIRIResponseAmino): _114.QueryAnchorByIRIResponse; + toAmino(message: _114.QueryAnchorByIRIResponse): _114.QueryAnchorByIRIResponseAmino; + fromAminoMsg(object: _114.QueryAnchorByIRIResponseAminoMsg): _114.QueryAnchorByIRIResponse; + fromProtoMsg(message: _114.QueryAnchorByIRIResponseProtoMsg): _114.QueryAnchorByIRIResponse; + toProto(message: _114.QueryAnchorByIRIResponse): Uint8Array; + toProtoMsg(message: _114.QueryAnchorByIRIResponse): _114.QueryAnchorByIRIResponseProtoMsg; }; QueryAnchorByHashRequest: { - encode(message: _113.QueryAnchorByHashRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAnchorByHashRequest; - fromJSON(object: any): _113.QueryAnchorByHashRequest; - toJSON(message: _113.QueryAnchorByHashRequest): unknown; - fromPartial(object: Partial<_113.QueryAnchorByHashRequest>): _113.QueryAnchorByHashRequest; - fromAmino(object: _113.QueryAnchorByHashRequestAmino): _113.QueryAnchorByHashRequest; - toAmino(message: _113.QueryAnchorByHashRequest): _113.QueryAnchorByHashRequestAmino; - fromAminoMsg(object: _113.QueryAnchorByHashRequestAminoMsg): _113.QueryAnchorByHashRequest; - fromProtoMsg(message: _113.QueryAnchorByHashRequestProtoMsg): _113.QueryAnchorByHashRequest; - toProto(message: _113.QueryAnchorByHashRequest): Uint8Array; - toProtoMsg(message: _113.QueryAnchorByHashRequest): _113.QueryAnchorByHashRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryAnchorByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByHashRequest; + fromJSON(object: any): _114.QueryAnchorByHashRequest; + toJSON(message: _114.QueryAnchorByHashRequest): unknown; + fromPartial(object: Partial<_114.QueryAnchorByHashRequest>): _114.QueryAnchorByHashRequest; + fromAmino(object: _114.QueryAnchorByHashRequestAmino): _114.QueryAnchorByHashRequest; + toAmino(message: _114.QueryAnchorByHashRequest): _114.QueryAnchorByHashRequestAmino; + fromAminoMsg(object: _114.QueryAnchorByHashRequestAminoMsg): _114.QueryAnchorByHashRequest; + fromProtoMsg(message: _114.QueryAnchorByHashRequestProtoMsg): _114.QueryAnchorByHashRequest; + toProto(message: _114.QueryAnchorByHashRequest): Uint8Array; + toProtoMsg(message: _114.QueryAnchorByHashRequest): _114.QueryAnchorByHashRequestProtoMsg; }; QueryAnchorByHashResponse: { - encode(message: _113.QueryAnchorByHashResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAnchorByHashResponse; - fromJSON(object: any): _113.QueryAnchorByHashResponse; - toJSON(message: _113.QueryAnchorByHashResponse): unknown; - fromPartial(object: Partial<_113.QueryAnchorByHashResponse>): _113.QueryAnchorByHashResponse; - fromAmino(object: _113.QueryAnchorByHashResponseAmino): _113.QueryAnchorByHashResponse; - toAmino(message: _113.QueryAnchorByHashResponse): _113.QueryAnchorByHashResponseAmino; - fromAminoMsg(object: _113.QueryAnchorByHashResponseAminoMsg): _113.QueryAnchorByHashResponse; - fromProtoMsg(message: _113.QueryAnchorByHashResponseProtoMsg): _113.QueryAnchorByHashResponse; - toProto(message: _113.QueryAnchorByHashResponse): Uint8Array; - toProtoMsg(message: _113.QueryAnchorByHashResponse): _113.QueryAnchorByHashResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryAnchorByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByHashResponse; + fromJSON(object: any): _114.QueryAnchorByHashResponse; + toJSON(message: _114.QueryAnchorByHashResponse): unknown; + fromPartial(object: Partial<_114.QueryAnchorByHashResponse>): _114.QueryAnchorByHashResponse; + fromAmino(object: _114.QueryAnchorByHashResponseAmino): _114.QueryAnchorByHashResponse; + toAmino(message: _114.QueryAnchorByHashResponse): _114.QueryAnchorByHashResponseAmino; + fromAminoMsg(object: _114.QueryAnchorByHashResponseAminoMsg): _114.QueryAnchorByHashResponse; + fromProtoMsg(message: _114.QueryAnchorByHashResponseProtoMsg): _114.QueryAnchorByHashResponse; + toProto(message: _114.QueryAnchorByHashResponse): Uint8Array; + toProtoMsg(message: _114.QueryAnchorByHashResponse): _114.QueryAnchorByHashResponseProtoMsg; }; QueryAttestationsByAttestorRequest: { - encode(message: _113.QueryAttestationsByAttestorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByAttestorRequest; - fromJSON(object: any): _113.QueryAttestationsByAttestorRequest; - toJSON(message: _113.QueryAttestationsByAttestorRequest): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByAttestorRequest>): _113.QueryAttestationsByAttestorRequest; - fromAmino(object: _113.QueryAttestationsByAttestorRequestAmino): _113.QueryAttestationsByAttestorRequest; - toAmino(message: _113.QueryAttestationsByAttestorRequest): _113.QueryAttestationsByAttestorRequestAmino; - fromAminoMsg(object: _113.QueryAttestationsByAttestorRequestAminoMsg): _113.QueryAttestationsByAttestorRequest; - fromProtoMsg(message: _113.QueryAttestationsByAttestorRequestProtoMsg): _113.QueryAttestationsByAttestorRequest; - toProto(message: _113.QueryAttestationsByAttestorRequest): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByAttestorRequest): _113.QueryAttestationsByAttestorRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByAttestorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByAttestorRequest; + fromJSON(object: any): _114.QueryAttestationsByAttestorRequest; + toJSON(message: _114.QueryAttestationsByAttestorRequest): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByAttestorRequest>): _114.QueryAttestationsByAttestorRequest; + fromAmino(object: _114.QueryAttestationsByAttestorRequestAmino): _114.QueryAttestationsByAttestorRequest; + toAmino(message: _114.QueryAttestationsByAttestorRequest): _114.QueryAttestationsByAttestorRequestAmino; + fromAminoMsg(object: _114.QueryAttestationsByAttestorRequestAminoMsg): _114.QueryAttestationsByAttestorRequest; + fromProtoMsg(message: _114.QueryAttestationsByAttestorRequestProtoMsg): _114.QueryAttestationsByAttestorRequest; + toProto(message: _114.QueryAttestationsByAttestorRequest): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByAttestorRequest): _114.QueryAttestationsByAttestorRequestProtoMsg; }; QueryAttestationsByAttestorResponse: { - encode(message: _113.QueryAttestationsByAttestorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByAttestorResponse; - fromJSON(object: any): _113.QueryAttestationsByAttestorResponse; - toJSON(message: _113.QueryAttestationsByAttestorResponse): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByAttestorResponse>): _113.QueryAttestationsByAttestorResponse; - fromAmino(object: _113.QueryAttestationsByAttestorResponseAmino): _113.QueryAttestationsByAttestorResponse; - toAmino(message: _113.QueryAttestationsByAttestorResponse): _113.QueryAttestationsByAttestorResponseAmino; - fromAminoMsg(object: _113.QueryAttestationsByAttestorResponseAminoMsg): _113.QueryAttestationsByAttestorResponse; - fromProtoMsg(message: _113.QueryAttestationsByAttestorResponseProtoMsg): _113.QueryAttestationsByAttestorResponse; - toProto(message: _113.QueryAttestationsByAttestorResponse): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByAttestorResponse): _113.QueryAttestationsByAttestorResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByAttestorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByAttestorResponse; + fromJSON(object: any): _114.QueryAttestationsByAttestorResponse; + toJSON(message: _114.QueryAttestationsByAttestorResponse): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByAttestorResponse>): _114.QueryAttestationsByAttestorResponse; + fromAmino(object: _114.QueryAttestationsByAttestorResponseAmino): _114.QueryAttestationsByAttestorResponse; + toAmino(message: _114.QueryAttestationsByAttestorResponse): _114.QueryAttestationsByAttestorResponseAmino; + fromAminoMsg(object: _114.QueryAttestationsByAttestorResponseAminoMsg): _114.QueryAttestationsByAttestorResponse; + fromProtoMsg(message: _114.QueryAttestationsByAttestorResponseProtoMsg): _114.QueryAttestationsByAttestorResponse; + toProto(message: _114.QueryAttestationsByAttestorResponse): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByAttestorResponse): _114.QueryAttestationsByAttestorResponseProtoMsg; }; QueryAttestationsByIRIRequest: { - encode(message: _113.QueryAttestationsByIRIRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByIRIRequest; - fromJSON(object: any): _113.QueryAttestationsByIRIRequest; - toJSON(message: _113.QueryAttestationsByIRIRequest): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByIRIRequest>): _113.QueryAttestationsByIRIRequest; - fromAmino(object: _113.QueryAttestationsByIRIRequestAmino): _113.QueryAttestationsByIRIRequest; - toAmino(message: _113.QueryAttestationsByIRIRequest): _113.QueryAttestationsByIRIRequestAmino; - fromAminoMsg(object: _113.QueryAttestationsByIRIRequestAminoMsg): _113.QueryAttestationsByIRIRequest; - fromProtoMsg(message: _113.QueryAttestationsByIRIRequestProtoMsg): _113.QueryAttestationsByIRIRequest; - toProto(message: _113.QueryAttestationsByIRIRequest): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByIRIRequest): _113.QueryAttestationsByIRIRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByIRIRequest; + fromJSON(object: any): _114.QueryAttestationsByIRIRequest; + toJSON(message: _114.QueryAttestationsByIRIRequest): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByIRIRequest>): _114.QueryAttestationsByIRIRequest; + fromAmino(object: _114.QueryAttestationsByIRIRequestAmino): _114.QueryAttestationsByIRIRequest; + toAmino(message: _114.QueryAttestationsByIRIRequest): _114.QueryAttestationsByIRIRequestAmino; + fromAminoMsg(object: _114.QueryAttestationsByIRIRequestAminoMsg): _114.QueryAttestationsByIRIRequest; + fromProtoMsg(message: _114.QueryAttestationsByIRIRequestProtoMsg): _114.QueryAttestationsByIRIRequest; + toProto(message: _114.QueryAttestationsByIRIRequest): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByIRIRequest): _114.QueryAttestationsByIRIRequestProtoMsg; }; QueryAttestationsByIRIResponse: { - encode(message: _113.QueryAttestationsByIRIResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByIRIResponse; - fromJSON(object: any): _113.QueryAttestationsByIRIResponse; - toJSON(message: _113.QueryAttestationsByIRIResponse): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByIRIResponse>): _113.QueryAttestationsByIRIResponse; - fromAmino(object: _113.QueryAttestationsByIRIResponseAmino): _113.QueryAttestationsByIRIResponse; - toAmino(message: _113.QueryAttestationsByIRIResponse): _113.QueryAttestationsByIRIResponseAmino; - fromAminoMsg(object: _113.QueryAttestationsByIRIResponseAminoMsg): _113.QueryAttestationsByIRIResponse; - fromProtoMsg(message: _113.QueryAttestationsByIRIResponseProtoMsg): _113.QueryAttestationsByIRIResponse; - toProto(message: _113.QueryAttestationsByIRIResponse): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByIRIResponse): _113.QueryAttestationsByIRIResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByIRIResponse; + fromJSON(object: any): _114.QueryAttestationsByIRIResponse; + toJSON(message: _114.QueryAttestationsByIRIResponse): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByIRIResponse>): _114.QueryAttestationsByIRIResponse; + fromAmino(object: _114.QueryAttestationsByIRIResponseAmino): _114.QueryAttestationsByIRIResponse; + toAmino(message: _114.QueryAttestationsByIRIResponse): _114.QueryAttestationsByIRIResponseAmino; + fromAminoMsg(object: _114.QueryAttestationsByIRIResponseAminoMsg): _114.QueryAttestationsByIRIResponse; + fromProtoMsg(message: _114.QueryAttestationsByIRIResponseProtoMsg): _114.QueryAttestationsByIRIResponse; + toProto(message: _114.QueryAttestationsByIRIResponse): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByIRIResponse): _114.QueryAttestationsByIRIResponseProtoMsg; }; QueryAttestationsByHashRequest: { - encode(message: _113.QueryAttestationsByHashRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByHashRequest; - fromJSON(object: any): _113.QueryAttestationsByHashRequest; - toJSON(message: _113.QueryAttestationsByHashRequest): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByHashRequest>): _113.QueryAttestationsByHashRequest; - fromAmino(object: _113.QueryAttestationsByHashRequestAmino): _113.QueryAttestationsByHashRequest; - toAmino(message: _113.QueryAttestationsByHashRequest): _113.QueryAttestationsByHashRequestAmino; - fromAminoMsg(object: _113.QueryAttestationsByHashRequestAminoMsg): _113.QueryAttestationsByHashRequest; - fromProtoMsg(message: _113.QueryAttestationsByHashRequestProtoMsg): _113.QueryAttestationsByHashRequest; - toProto(message: _113.QueryAttestationsByHashRequest): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByHashRequest): _113.QueryAttestationsByHashRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByHashRequest; + fromJSON(object: any): _114.QueryAttestationsByHashRequest; + toJSON(message: _114.QueryAttestationsByHashRequest): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByHashRequest>): _114.QueryAttestationsByHashRequest; + fromAmino(object: _114.QueryAttestationsByHashRequestAmino): _114.QueryAttestationsByHashRequest; + toAmino(message: _114.QueryAttestationsByHashRequest): _114.QueryAttestationsByHashRequestAmino; + fromAminoMsg(object: _114.QueryAttestationsByHashRequestAminoMsg): _114.QueryAttestationsByHashRequest; + fromProtoMsg(message: _114.QueryAttestationsByHashRequestProtoMsg): _114.QueryAttestationsByHashRequest; + toProto(message: _114.QueryAttestationsByHashRequest): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByHashRequest): _114.QueryAttestationsByHashRequestProtoMsg; }; QueryAttestationsByHashResponse: { - encode(message: _113.QueryAttestationsByHashResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryAttestationsByHashResponse; - fromJSON(object: any): _113.QueryAttestationsByHashResponse; - toJSON(message: _113.QueryAttestationsByHashResponse): unknown; - fromPartial(object: Partial<_113.QueryAttestationsByHashResponse>): _113.QueryAttestationsByHashResponse; - fromAmino(object: _113.QueryAttestationsByHashResponseAmino): _113.QueryAttestationsByHashResponse; - toAmino(message: _113.QueryAttestationsByHashResponse): _113.QueryAttestationsByHashResponseAmino; - fromAminoMsg(object: _113.QueryAttestationsByHashResponseAminoMsg): _113.QueryAttestationsByHashResponse; - fromProtoMsg(message: _113.QueryAttestationsByHashResponseProtoMsg): _113.QueryAttestationsByHashResponse; - toProto(message: _113.QueryAttestationsByHashResponse): Uint8Array; - toProtoMsg(message: _113.QueryAttestationsByHashResponse): _113.QueryAttestationsByHashResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryAttestationsByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByHashResponse; + fromJSON(object: any): _114.QueryAttestationsByHashResponse; + toJSON(message: _114.QueryAttestationsByHashResponse): unknown; + fromPartial(object: Partial<_114.QueryAttestationsByHashResponse>): _114.QueryAttestationsByHashResponse; + fromAmino(object: _114.QueryAttestationsByHashResponseAmino): _114.QueryAttestationsByHashResponse; + toAmino(message: _114.QueryAttestationsByHashResponse): _114.QueryAttestationsByHashResponseAmino; + fromAminoMsg(object: _114.QueryAttestationsByHashResponseAminoMsg): _114.QueryAttestationsByHashResponse; + fromProtoMsg(message: _114.QueryAttestationsByHashResponseProtoMsg): _114.QueryAttestationsByHashResponse; + toProto(message: _114.QueryAttestationsByHashResponse): Uint8Array; + toProtoMsg(message: _114.QueryAttestationsByHashResponse): _114.QueryAttestationsByHashResponseProtoMsg; }; QueryResolverRequest: { - encode(message: _113.QueryResolverRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolverRequest; - fromJSON(object: any): _113.QueryResolverRequest; - toJSON(message: _113.QueryResolverRequest): unknown; - fromPartial(object: Partial<_113.QueryResolverRequest>): _113.QueryResolverRequest; - fromAmino(object: _113.QueryResolverRequestAmino): _113.QueryResolverRequest; - toAmino(message: _113.QueryResolverRequest): _113.QueryResolverRequestAmino; - fromAminoMsg(object: _113.QueryResolverRequestAminoMsg): _113.QueryResolverRequest; - fromProtoMsg(message: _113.QueryResolverRequestProtoMsg): _113.QueryResolverRequest; - toProto(message: _113.QueryResolverRequest): Uint8Array; - toProtoMsg(message: _113.QueryResolverRequest): _113.QueryResolverRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolverRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolverRequest; + fromJSON(object: any): _114.QueryResolverRequest; + toJSON(message: _114.QueryResolverRequest): unknown; + fromPartial(object: Partial<_114.QueryResolverRequest>): _114.QueryResolverRequest; + fromAmino(object: _114.QueryResolverRequestAmino): _114.QueryResolverRequest; + toAmino(message: _114.QueryResolverRequest): _114.QueryResolverRequestAmino; + fromAminoMsg(object: _114.QueryResolverRequestAminoMsg): _114.QueryResolverRequest; + fromProtoMsg(message: _114.QueryResolverRequestProtoMsg): _114.QueryResolverRequest; + toProto(message: _114.QueryResolverRequest): Uint8Array; + toProtoMsg(message: _114.QueryResolverRequest): _114.QueryResolverRequestProtoMsg; }; QueryResolverResponse: { - encode(message: _113.QueryResolverResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolverResponse; - fromJSON(object: any): _113.QueryResolverResponse; - toJSON(message: _113.QueryResolverResponse): unknown; - fromPartial(object: Partial<_113.QueryResolverResponse>): _113.QueryResolverResponse; - fromAmino(object: _113.QueryResolverResponseAmino): _113.QueryResolverResponse; - toAmino(message: _113.QueryResolverResponse): _113.QueryResolverResponseAmino; - fromAminoMsg(object: _113.QueryResolverResponseAminoMsg): _113.QueryResolverResponse; - fromProtoMsg(message: _113.QueryResolverResponseProtoMsg): _113.QueryResolverResponse; - toProto(message: _113.QueryResolverResponse): Uint8Array; - toProtoMsg(message: _113.QueryResolverResponse): _113.QueryResolverResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolverResponse; + fromJSON(object: any): _114.QueryResolverResponse; + toJSON(message: _114.QueryResolverResponse): unknown; + fromPartial(object: Partial<_114.QueryResolverResponse>): _114.QueryResolverResponse; + fromAmino(object: _114.QueryResolverResponseAmino): _114.QueryResolverResponse; + toAmino(message: _114.QueryResolverResponse): _114.QueryResolverResponseAmino; + fromAminoMsg(object: _114.QueryResolverResponseAminoMsg): _114.QueryResolverResponse; + fromProtoMsg(message: _114.QueryResolverResponseProtoMsg): _114.QueryResolverResponse; + toProto(message: _114.QueryResolverResponse): Uint8Array; + toProtoMsg(message: _114.QueryResolverResponse): _114.QueryResolverResponseProtoMsg; }; QueryResolversByIRIRequest: { - encode(message: _113.QueryResolversByIRIRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByIRIRequest; - fromJSON(object: any): _113.QueryResolversByIRIRequest; - toJSON(message: _113.QueryResolversByIRIRequest): unknown; - fromPartial(object: Partial<_113.QueryResolversByIRIRequest>): _113.QueryResolversByIRIRequest; - fromAmino(object: _113.QueryResolversByIRIRequestAmino): _113.QueryResolversByIRIRequest; - toAmino(message: _113.QueryResolversByIRIRequest): _113.QueryResolversByIRIRequestAmino; - fromAminoMsg(object: _113.QueryResolversByIRIRequestAminoMsg): _113.QueryResolversByIRIRequest; - fromProtoMsg(message: _113.QueryResolversByIRIRequestProtoMsg): _113.QueryResolversByIRIRequest; - toProto(message: _113.QueryResolversByIRIRequest): Uint8Array; - toProtoMsg(message: _113.QueryResolversByIRIRequest): _113.QueryResolversByIRIRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByIRIRequest; + fromJSON(object: any): _114.QueryResolversByIRIRequest; + toJSON(message: _114.QueryResolversByIRIRequest): unknown; + fromPartial(object: Partial<_114.QueryResolversByIRIRequest>): _114.QueryResolversByIRIRequest; + fromAmino(object: _114.QueryResolversByIRIRequestAmino): _114.QueryResolversByIRIRequest; + toAmino(message: _114.QueryResolversByIRIRequest): _114.QueryResolversByIRIRequestAmino; + fromAminoMsg(object: _114.QueryResolversByIRIRequestAminoMsg): _114.QueryResolversByIRIRequest; + fromProtoMsg(message: _114.QueryResolversByIRIRequestProtoMsg): _114.QueryResolversByIRIRequest; + toProto(message: _114.QueryResolversByIRIRequest): Uint8Array; + toProtoMsg(message: _114.QueryResolversByIRIRequest): _114.QueryResolversByIRIRequestProtoMsg; }; QueryResolversByIRIResponse: { - encode(message: _113.QueryResolversByIRIResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByIRIResponse; - fromJSON(object: any): _113.QueryResolversByIRIResponse; - toJSON(message: _113.QueryResolversByIRIResponse): unknown; - fromPartial(object: Partial<_113.QueryResolversByIRIResponse>): _113.QueryResolversByIRIResponse; - fromAmino(object: _113.QueryResolversByIRIResponseAmino): _113.QueryResolversByIRIResponse; - toAmino(message: _113.QueryResolversByIRIResponse): _113.QueryResolversByIRIResponseAmino; - fromAminoMsg(object: _113.QueryResolversByIRIResponseAminoMsg): _113.QueryResolversByIRIResponse; - fromProtoMsg(message: _113.QueryResolversByIRIResponseProtoMsg): _113.QueryResolversByIRIResponse; - toProto(message: _113.QueryResolversByIRIResponse): Uint8Array; - toProtoMsg(message: _113.QueryResolversByIRIResponse): _113.QueryResolversByIRIResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByIRIResponse; + fromJSON(object: any): _114.QueryResolversByIRIResponse; + toJSON(message: _114.QueryResolversByIRIResponse): unknown; + fromPartial(object: Partial<_114.QueryResolversByIRIResponse>): _114.QueryResolversByIRIResponse; + fromAmino(object: _114.QueryResolversByIRIResponseAmino): _114.QueryResolversByIRIResponse; + toAmino(message: _114.QueryResolversByIRIResponse): _114.QueryResolversByIRIResponseAmino; + fromAminoMsg(object: _114.QueryResolversByIRIResponseAminoMsg): _114.QueryResolversByIRIResponse; + fromProtoMsg(message: _114.QueryResolversByIRIResponseProtoMsg): _114.QueryResolversByIRIResponse; + toProto(message: _114.QueryResolversByIRIResponse): Uint8Array; + toProtoMsg(message: _114.QueryResolversByIRIResponse): _114.QueryResolversByIRIResponseProtoMsg; }; QueryResolversByHashRequest: { - encode(message: _113.QueryResolversByHashRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByHashRequest; - fromJSON(object: any): _113.QueryResolversByHashRequest; - toJSON(message: _113.QueryResolversByHashRequest): unknown; - fromPartial(object: Partial<_113.QueryResolversByHashRequest>): _113.QueryResolversByHashRequest; - fromAmino(object: _113.QueryResolversByHashRequestAmino): _113.QueryResolversByHashRequest; - toAmino(message: _113.QueryResolversByHashRequest): _113.QueryResolversByHashRequestAmino; - fromAminoMsg(object: _113.QueryResolversByHashRequestAminoMsg): _113.QueryResolversByHashRequest; - fromProtoMsg(message: _113.QueryResolversByHashRequestProtoMsg): _113.QueryResolversByHashRequest; - toProto(message: _113.QueryResolversByHashRequest): Uint8Array; - toProtoMsg(message: _113.QueryResolversByHashRequest): _113.QueryResolversByHashRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByHashRequest; + fromJSON(object: any): _114.QueryResolversByHashRequest; + toJSON(message: _114.QueryResolversByHashRequest): unknown; + fromPartial(object: Partial<_114.QueryResolversByHashRequest>): _114.QueryResolversByHashRequest; + fromAmino(object: _114.QueryResolversByHashRequestAmino): _114.QueryResolversByHashRequest; + toAmino(message: _114.QueryResolversByHashRequest): _114.QueryResolversByHashRequestAmino; + fromAminoMsg(object: _114.QueryResolversByHashRequestAminoMsg): _114.QueryResolversByHashRequest; + fromProtoMsg(message: _114.QueryResolversByHashRequestProtoMsg): _114.QueryResolversByHashRequest; + toProto(message: _114.QueryResolversByHashRequest): Uint8Array; + toProtoMsg(message: _114.QueryResolversByHashRequest): _114.QueryResolversByHashRequestProtoMsg; }; QueryResolversByHashResponse: { - encode(message: _113.QueryResolversByHashResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByHashResponse; - fromJSON(object: any): _113.QueryResolversByHashResponse; - toJSON(message: _113.QueryResolversByHashResponse): unknown; - fromPartial(object: Partial<_113.QueryResolversByHashResponse>): _113.QueryResolversByHashResponse; - fromAmino(object: _113.QueryResolversByHashResponseAmino): _113.QueryResolversByHashResponse; - toAmino(message: _113.QueryResolversByHashResponse): _113.QueryResolversByHashResponseAmino; - fromAminoMsg(object: _113.QueryResolversByHashResponseAminoMsg): _113.QueryResolversByHashResponse; - fromProtoMsg(message: _113.QueryResolversByHashResponseProtoMsg): _113.QueryResolversByHashResponse; - toProto(message: _113.QueryResolversByHashResponse): Uint8Array; - toProtoMsg(message: _113.QueryResolversByHashResponse): _113.QueryResolversByHashResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByHashResponse; + fromJSON(object: any): _114.QueryResolversByHashResponse; + toJSON(message: _114.QueryResolversByHashResponse): unknown; + fromPartial(object: Partial<_114.QueryResolversByHashResponse>): _114.QueryResolversByHashResponse; + fromAmino(object: _114.QueryResolversByHashResponseAmino): _114.QueryResolversByHashResponse; + toAmino(message: _114.QueryResolversByHashResponse): _114.QueryResolversByHashResponseAmino; + fromAminoMsg(object: _114.QueryResolversByHashResponseAminoMsg): _114.QueryResolversByHashResponse; + fromProtoMsg(message: _114.QueryResolversByHashResponseProtoMsg): _114.QueryResolversByHashResponse; + toProto(message: _114.QueryResolversByHashResponse): Uint8Array; + toProtoMsg(message: _114.QueryResolversByHashResponse): _114.QueryResolversByHashResponseProtoMsg; }; QueryResolversByURLRequest: { - encode(message: _113.QueryResolversByURLRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByURLRequest; - fromJSON(object: any): _113.QueryResolversByURLRequest; - toJSON(message: _113.QueryResolversByURLRequest): unknown; - fromPartial(object: Partial<_113.QueryResolversByURLRequest>): _113.QueryResolversByURLRequest; - fromAmino(object: _113.QueryResolversByURLRequestAmino): _113.QueryResolversByURLRequest; - toAmino(message: _113.QueryResolversByURLRequest): _113.QueryResolversByURLRequestAmino; - fromAminoMsg(object: _113.QueryResolversByURLRequestAminoMsg): _113.QueryResolversByURLRequest; - fromProtoMsg(message: _113.QueryResolversByURLRequestProtoMsg): _113.QueryResolversByURLRequest; - toProto(message: _113.QueryResolversByURLRequest): Uint8Array; - toProtoMsg(message: _113.QueryResolversByURLRequest): _113.QueryResolversByURLRequestProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByURLRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByURLRequest; + fromJSON(object: any): _114.QueryResolversByURLRequest; + toJSON(message: _114.QueryResolversByURLRequest): unknown; + fromPartial(object: Partial<_114.QueryResolversByURLRequest>): _114.QueryResolversByURLRequest; + fromAmino(object: _114.QueryResolversByURLRequestAmino): _114.QueryResolversByURLRequest; + toAmino(message: _114.QueryResolversByURLRequest): _114.QueryResolversByURLRequestAmino; + fromAminoMsg(object: _114.QueryResolversByURLRequestAminoMsg): _114.QueryResolversByURLRequest; + fromProtoMsg(message: _114.QueryResolversByURLRequestProtoMsg): _114.QueryResolversByURLRequest; + toProto(message: _114.QueryResolversByURLRequest): Uint8Array; + toProtoMsg(message: _114.QueryResolversByURLRequest): _114.QueryResolversByURLRequestProtoMsg; }; QueryResolversByURLResponse: { - encode(message: _113.QueryResolversByURLResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.QueryResolversByURLResponse; - fromJSON(object: any): _113.QueryResolversByURLResponse; - toJSON(message: _113.QueryResolversByURLResponse): unknown; - fromPartial(object: Partial<_113.QueryResolversByURLResponse>): _113.QueryResolversByURLResponse; - fromAmino(object: _113.QueryResolversByURLResponseAmino): _113.QueryResolversByURLResponse; - toAmino(message: _113.QueryResolversByURLResponse): _113.QueryResolversByURLResponseAmino; - fromAminoMsg(object: _113.QueryResolversByURLResponseAminoMsg): _113.QueryResolversByURLResponse; - fromProtoMsg(message: _113.QueryResolversByURLResponseProtoMsg): _113.QueryResolversByURLResponse; - toProto(message: _113.QueryResolversByURLResponse): Uint8Array; - toProtoMsg(message: _113.QueryResolversByURLResponse): _113.QueryResolversByURLResponseProtoMsg; + typeUrl: string; + encode(message: _114.QueryResolversByURLResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByURLResponse; + fromJSON(object: any): _114.QueryResolversByURLResponse; + toJSON(message: _114.QueryResolversByURLResponse): unknown; + fromPartial(object: Partial<_114.QueryResolversByURLResponse>): _114.QueryResolversByURLResponse; + fromAmino(object: _114.QueryResolversByURLResponseAmino): _114.QueryResolversByURLResponse; + toAmino(message: _114.QueryResolversByURLResponse): _114.QueryResolversByURLResponseAmino; + fromAminoMsg(object: _114.QueryResolversByURLResponseAminoMsg): _114.QueryResolversByURLResponse; + fromProtoMsg(message: _114.QueryResolversByURLResponseProtoMsg): _114.QueryResolversByURLResponse; + toProto(message: _114.QueryResolversByURLResponse): Uint8Array; + toProtoMsg(message: _114.QueryResolversByURLResponse): _114.QueryResolversByURLResponseProtoMsg; }; ConvertIRIToHashRequest: { - encode(message: _113.ConvertIRIToHashRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.ConvertIRIToHashRequest; - fromJSON(object: any): _113.ConvertIRIToHashRequest; - toJSON(message: _113.ConvertIRIToHashRequest): unknown; - fromPartial(object: Partial<_113.ConvertIRIToHashRequest>): _113.ConvertIRIToHashRequest; - fromAmino(object: _113.ConvertIRIToHashRequestAmino): _113.ConvertIRIToHashRequest; - toAmino(message: _113.ConvertIRIToHashRequest): _113.ConvertIRIToHashRequestAmino; - fromAminoMsg(object: _113.ConvertIRIToHashRequestAminoMsg): _113.ConvertIRIToHashRequest; - fromProtoMsg(message: _113.ConvertIRIToHashRequestProtoMsg): _113.ConvertIRIToHashRequest; - toProto(message: _113.ConvertIRIToHashRequest): Uint8Array; - toProtoMsg(message: _113.ConvertIRIToHashRequest): _113.ConvertIRIToHashRequestProtoMsg; + typeUrl: string; + encode(message: _114.ConvertIRIToHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertIRIToHashRequest; + fromJSON(object: any): _114.ConvertIRIToHashRequest; + toJSON(message: _114.ConvertIRIToHashRequest): unknown; + fromPartial(object: Partial<_114.ConvertIRIToHashRequest>): _114.ConvertIRIToHashRequest; + fromAmino(object: _114.ConvertIRIToHashRequestAmino): _114.ConvertIRIToHashRequest; + toAmino(message: _114.ConvertIRIToHashRequest): _114.ConvertIRIToHashRequestAmino; + fromAminoMsg(object: _114.ConvertIRIToHashRequestAminoMsg): _114.ConvertIRIToHashRequest; + fromProtoMsg(message: _114.ConvertIRIToHashRequestProtoMsg): _114.ConvertIRIToHashRequest; + toProto(message: _114.ConvertIRIToHashRequest): Uint8Array; + toProtoMsg(message: _114.ConvertIRIToHashRequest): _114.ConvertIRIToHashRequestProtoMsg; }; ConvertIRIToHashResponse: { - encode(message: _113.ConvertIRIToHashResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.ConvertIRIToHashResponse; - fromJSON(object: any): _113.ConvertIRIToHashResponse; - toJSON(message: _113.ConvertIRIToHashResponse): unknown; - fromPartial(object: Partial<_113.ConvertIRIToHashResponse>): _113.ConvertIRIToHashResponse; - fromAmino(object: _113.ConvertIRIToHashResponseAmino): _113.ConvertIRIToHashResponse; - toAmino(message: _113.ConvertIRIToHashResponse): _113.ConvertIRIToHashResponseAmino; - fromAminoMsg(object: _113.ConvertIRIToHashResponseAminoMsg): _113.ConvertIRIToHashResponse; - fromProtoMsg(message: _113.ConvertIRIToHashResponseProtoMsg): _113.ConvertIRIToHashResponse; - toProto(message: _113.ConvertIRIToHashResponse): Uint8Array; - toProtoMsg(message: _113.ConvertIRIToHashResponse): _113.ConvertIRIToHashResponseProtoMsg; + typeUrl: string; + encode(message: _114.ConvertIRIToHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertIRIToHashResponse; + fromJSON(object: any): _114.ConvertIRIToHashResponse; + toJSON(message: _114.ConvertIRIToHashResponse): unknown; + fromPartial(object: Partial<_114.ConvertIRIToHashResponse>): _114.ConvertIRIToHashResponse; + fromAmino(object: _114.ConvertIRIToHashResponseAmino): _114.ConvertIRIToHashResponse; + toAmino(message: _114.ConvertIRIToHashResponse): _114.ConvertIRIToHashResponseAmino; + fromAminoMsg(object: _114.ConvertIRIToHashResponseAminoMsg): _114.ConvertIRIToHashResponse; + fromProtoMsg(message: _114.ConvertIRIToHashResponseProtoMsg): _114.ConvertIRIToHashResponse; + toProto(message: _114.ConvertIRIToHashResponse): Uint8Array; + toProtoMsg(message: _114.ConvertIRIToHashResponse): _114.ConvertIRIToHashResponseProtoMsg; }; ConvertHashToIRIRequest: { - encode(message: _113.ConvertHashToIRIRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.ConvertHashToIRIRequest; - fromJSON(object: any): _113.ConvertHashToIRIRequest; - toJSON(message: _113.ConvertHashToIRIRequest): unknown; - fromPartial(object: Partial<_113.ConvertHashToIRIRequest>): _113.ConvertHashToIRIRequest; - fromAmino(object: _113.ConvertHashToIRIRequestAmino): _113.ConvertHashToIRIRequest; - toAmino(message: _113.ConvertHashToIRIRequest): _113.ConvertHashToIRIRequestAmino; - fromAminoMsg(object: _113.ConvertHashToIRIRequestAminoMsg): _113.ConvertHashToIRIRequest; - fromProtoMsg(message: _113.ConvertHashToIRIRequestProtoMsg): _113.ConvertHashToIRIRequest; - toProto(message: _113.ConvertHashToIRIRequest): Uint8Array; - toProtoMsg(message: _113.ConvertHashToIRIRequest): _113.ConvertHashToIRIRequestProtoMsg; + typeUrl: string; + encode(message: _114.ConvertHashToIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertHashToIRIRequest; + fromJSON(object: any): _114.ConvertHashToIRIRequest; + toJSON(message: _114.ConvertHashToIRIRequest): unknown; + fromPartial(object: Partial<_114.ConvertHashToIRIRequest>): _114.ConvertHashToIRIRequest; + fromAmino(object: _114.ConvertHashToIRIRequestAmino): _114.ConvertHashToIRIRequest; + toAmino(message: _114.ConvertHashToIRIRequest): _114.ConvertHashToIRIRequestAmino; + fromAminoMsg(object: _114.ConvertHashToIRIRequestAminoMsg): _114.ConvertHashToIRIRequest; + fromProtoMsg(message: _114.ConvertHashToIRIRequestProtoMsg): _114.ConvertHashToIRIRequest; + toProto(message: _114.ConvertHashToIRIRequest): Uint8Array; + toProtoMsg(message: _114.ConvertHashToIRIRequest): _114.ConvertHashToIRIRequestProtoMsg; }; ConvertHashToIRIResponse: { - encode(message: _113.ConvertHashToIRIResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.ConvertHashToIRIResponse; - fromJSON(object: any): _113.ConvertHashToIRIResponse; - toJSON(message: _113.ConvertHashToIRIResponse): unknown; - fromPartial(object: Partial<_113.ConvertHashToIRIResponse>): _113.ConvertHashToIRIResponse; - fromAmino(object: _113.ConvertHashToIRIResponseAmino): _113.ConvertHashToIRIResponse; - toAmino(message: _113.ConvertHashToIRIResponse): _113.ConvertHashToIRIResponseAmino; - fromAminoMsg(object: _113.ConvertHashToIRIResponseAminoMsg): _113.ConvertHashToIRIResponse; - fromProtoMsg(message: _113.ConvertHashToIRIResponseProtoMsg): _113.ConvertHashToIRIResponse; - toProto(message: _113.ConvertHashToIRIResponse): Uint8Array; - toProtoMsg(message: _113.ConvertHashToIRIResponse): _113.ConvertHashToIRIResponseProtoMsg; + typeUrl: string; + encode(message: _114.ConvertHashToIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertHashToIRIResponse; + fromJSON(object: any): _114.ConvertHashToIRIResponse; + toJSON(message: _114.ConvertHashToIRIResponse): unknown; + fromPartial(object: Partial<_114.ConvertHashToIRIResponse>): _114.ConvertHashToIRIResponse; + fromAmino(object: _114.ConvertHashToIRIResponseAmino): _114.ConvertHashToIRIResponse; + toAmino(message: _114.ConvertHashToIRIResponse): _114.ConvertHashToIRIResponseAmino; + fromAminoMsg(object: _114.ConvertHashToIRIResponseAminoMsg): _114.ConvertHashToIRIResponse; + fromProtoMsg(message: _114.ConvertHashToIRIResponseProtoMsg): _114.ConvertHashToIRIResponse; + toProto(message: _114.ConvertHashToIRIResponse): Uint8Array; + toProtoMsg(message: _114.ConvertHashToIRIResponse): _114.ConvertHashToIRIResponseProtoMsg; }; AnchorInfo: { - encode(message: _113.AnchorInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.AnchorInfo; - fromJSON(object: any): _113.AnchorInfo; - toJSON(message: _113.AnchorInfo): unknown; - fromPartial(object: Partial<_113.AnchorInfo>): _113.AnchorInfo; - fromAmino(object: _113.AnchorInfoAmino): _113.AnchorInfo; - toAmino(message: _113.AnchorInfo): _113.AnchorInfoAmino; - fromAminoMsg(object: _113.AnchorInfoAminoMsg): _113.AnchorInfo; - fromProtoMsg(message: _113.AnchorInfoProtoMsg): _113.AnchorInfo; - toProto(message: _113.AnchorInfo): Uint8Array; - toProtoMsg(message: _113.AnchorInfo): _113.AnchorInfoProtoMsg; + typeUrl: string; + encode(message: _114.AnchorInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.AnchorInfo; + fromJSON(object: any): _114.AnchorInfo; + toJSON(message: _114.AnchorInfo): unknown; + fromPartial(object: Partial<_114.AnchorInfo>): _114.AnchorInfo; + fromAmino(object: _114.AnchorInfoAmino): _114.AnchorInfo; + toAmino(message: _114.AnchorInfo): _114.AnchorInfoAmino; + fromAminoMsg(object: _114.AnchorInfoAminoMsg): _114.AnchorInfo; + fromProtoMsg(message: _114.AnchorInfoProtoMsg): _114.AnchorInfo; + toProto(message: _114.AnchorInfo): Uint8Array; + toProtoMsg(message: _114.AnchorInfo): _114.AnchorInfoProtoMsg; }; AttestationInfo: { - encode(message: _113.AttestationInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.AttestationInfo; - fromJSON(object: any): _113.AttestationInfo; - toJSON(message: _113.AttestationInfo): unknown; - fromPartial(object: Partial<_113.AttestationInfo>): _113.AttestationInfo; - fromAmino(object: _113.AttestationInfoAmino): _113.AttestationInfo; - toAmino(message: _113.AttestationInfo): _113.AttestationInfoAmino; - fromAminoMsg(object: _113.AttestationInfoAminoMsg): _113.AttestationInfo; - fromProtoMsg(message: _113.AttestationInfoProtoMsg): _113.AttestationInfo; - toProto(message: _113.AttestationInfo): Uint8Array; - toProtoMsg(message: _113.AttestationInfo): _113.AttestationInfoProtoMsg; + typeUrl: string; + encode(message: _114.AttestationInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.AttestationInfo; + fromJSON(object: any): _114.AttestationInfo; + toJSON(message: _114.AttestationInfo): unknown; + fromPartial(object: Partial<_114.AttestationInfo>): _114.AttestationInfo; + fromAmino(object: _114.AttestationInfoAmino): _114.AttestationInfo; + toAmino(message: _114.AttestationInfo): _114.AttestationInfoAmino; + fromAminoMsg(object: _114.AttestationInfoAminoMsg): _114.AttestationInfo; + fromProtoMsg(message: _114.AttestationInfoProtoMsg): _114.AttestationInfo; + toProto(message: _114.AttestationInfo): Uint8Array; + toProtoMsg(message: _114.AttestationInfo): _114.AttestationInfoProtoMsg; }; ResolverInfo: { - encode(message: _113.ResolverInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _113.ResolverInfo; - fromJSON(object: any): _113.ResolverInfo; - toJSON(message: _113.ResolverInfo): unknown; - fromPartial(object: Partial<_113.ResolverInfo>): _113.ResolverInfo; - fromAmino(object: _113.ResolverInfoAmino): _113.ResolverInfo; - toAmino(message: _113.ResolverInfo): _113.ResolverInfoAmino; - fromAminoMsg(object: _113.ResolverInfoAminoMsg): _113.ResolverInfo; - fromProtoMsg(message: _113.ResolverInfoProtoMsg): _113.ResolverInfo; - toProto(message: _113.ResolverInfo): Uint8Array; - toProtoMsg(message: _113.ResolverInfo): _113.ResolverInfoProtoMsg; + typeUrl: string; + encode(message: _114.ResolverInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ResolverInfo; + fromJSON(object: any): _114.ResolverInfo; + toJSON(message: _114.ResolverInfo): unknown; + fromPartial(object: Partial<_114.ResolverInfo>): _114.ResolverInfo; + fromAmino(object: _114.ResolverInfoAmino): _114.ResolverInfo; + toAmino(message: _114.ResolverInfo): _114.ResolverInfoAmino; + fromAminoMsg(object: _114.ResolverInfoAminoMsg): _114.ResolverInfo; + fromProtoMsg(message: _114.ResolverInfoProtoMsg): _114.ResolverInfo; + toProto(message: _114.ResolverInfo): Uint8Array; + toProtoMsg(message: _114.ResolverInfo): _114.ResolverInfoProtoMsg; }; EventAnchor: { - encode(message: _112.EventAnchor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _112.EventAnchor; - fromJSON(object: any): _112.EventAnchor; - toJSON(message: _112.EventAnchor): unknown; - fromPartial(object: Partial<_112.EventAnchor>): _112.EventAnchor; - fromAmino(object: _112.EventAnchorAmino): _112.EventAnchor; - toAmino(message: _112.EventAnchor): _112.EventAnchorAmino; - fromAminoMsg(object: _112.EventAnchorAminoMsg): _112.EventAnchor; - fromProtoMsg(message: _112.EventAnchorProtoMsg): _112.EventAnchor; - toProto(message: _112.EventAnchor): Uint8Array; - toProtoMsg(message: _112.EventAnchor): _112.EventAnchorProtoMsg; + typeUrl: string; + encode(message: _113.EventAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventAnchor; + fromJSON(object: any): _113.EventAnchor; + toJSON(message: _113.EventAnchor): unknown; + fromPartial(object: Partial<_113.EventAnchor>): _113.EventAnchor; + fromAmino(object: _113.EventAnchorAmino): _113.EventAnchor; + toAmino(message: _113.EventAnchor): _113.EventAnchorAmino; + fromAminoMsg(object: _113.EventAnchorAminoMsg): _113.EventAnchor; + fromProtoMsg(message: _113.EventAnchorProtoMsg): _113.EventAnchor; + toProto(message: _113.EventAnchor): Uint8Array; + toProtoMsg(message: _113.EventAnchor): _113.EventAnchorProtoMsg; }; EventAttest: { - encode(message: _112.EventAttest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _112.EventAttest; - fromJSON(object: any): _112.EventAttest; - toJSON(message: _112.EventAttest): unknown; - fromPartial(object: Partial<_112.EventAttest>): _112.EventAttest; - fromAmino(object: _112.EventAttestAmino): _112.EventAttest; - toAmino(message: _112.EventAttest): _112.EventAttestAmino; - fromAminoMsg(object: _112.EventAttestAminoMsg): _112.EventAttest; - fromProtoMsg(message: _112.EventAttestProtoMsg): _112.EventAttest; - toProto(message: _112.EventAttest): Uint8Array; - toProtoMsg(message: _112.EventAttest): _112.EventAttestProtoMsg; + typeUrl: string; + encode(message: _113.EventAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventAttest; + fromJSON(object: any): _113.EventAttest; + toJSON(message: _113.EventAttest): unknown; + fromPartial(object: Partial<_113.EventAttest>): _113.EventAttest; + fromAmino(object: _113.EventAttestAmino): _113.EventAttest; + toAmino(message: _113.EventAttest): _113.EventAttestAmino; + fromAminoMsg(object: _113.EventAttestAminoMsg): _113.EventAttest; + fromProtoMsg(message: _113.EventAttestProtoMsg): _113.EventAttest; + toProto(message: _113.EventAttest): Uint8Array; + toProtoMsg(message: _113.EventAttest): _113.EventAttestProtoMsg; }; EventDefineResolver: { - encode(message: _112.EventDefineResolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _112.EventDefineResolver; - fromJSON(object: any): _112.EventDefineResolver; - toJSON(message: _112.EventDefineResolver): unknown; - fromPartial(object: Partial<_112.EventDefineResolver>): _112.EventDefineResolver; - fromAmino(object: _112.EventDefineResolverAmino): _112.EventDefineResolver; - toAmino(message: _112.EventDefineResolver): _112.EventDefineResolverAmino; - fromAminoMsg(object: _112.EventDefineResolverAminoMsg): _112.EventDefineResolver; - fromProtoMsg(message: _112.EventDefineResolverProtoMsg): _112.EventDefineResolver; - toProto(message: _112.EventDefineResolver): Uint8Array; - toProtoMsg(message: _112.EventDefineResolver): _112.EventDefineResolverProtoMsg; + typeUrl: string; + encode(message: _113.EventDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventDefineResolver; + fromJSON(object: any): _113.EventDefineResolver; + toJSON(message: _113.EventDefineResolver): unknown; + fromPartial(object: Partial<_113.EventDefineResolver>): _113.EventDefineResolver; + fromAmino(object: _113.EventDefineResolverAmino): _113.EventDefineResolver; + toAmino(message: _113.EventDefineResolver): _113.EventDefineResolverAmino; + fromAminoMsg(object: _113.EventDefineResolverAminoMsg): _113.EventDefineResolver; + fromProtoMsg(message: _113.EventDefineResolverProtoMsg): _113.EventDefineResolver; + toProto(message: _113.EventDefineResolver): Uint8Array; + toProtoMsg(message: _113.EventDefineResolver): _113.EventDefineResolverProtoMsg; }; EventRegisterResolver: { - encode(message: _112.EventRegisterResolver, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _112.EventRegisterResolver; - fromJSON(object: any): _112.EventRegisterResolver; - toJSON(message: _112.EventRegisterResolver): unknown; - fromPartial(object: Partial<_112.EventRegisterResolver>): _112.EventRegisterResolver; - fromAmino(object: _112.EventRegisterResolverAmino): _112.EventRegisterResolver; - toAmino(message: _112.EventRegisterResolver): _112.EventRegisterResolverAmino; - fromAminoMsg(object: _112.EventRegisterResolverAminoMsg): _112.EventRegisterResolver; - fromProtoMsg(message: _112.EventRegisterResolverProtoMsg): _112.EventRegisterResolver; - toProto(message: _112.EventRegisterResolver): Uint8Array; - toProtoMsg(message: _112.EventRegisterResolver): _112.EventRegisterResolverProtoMsg; + typeUrl: string; + encode(message: _113.EventRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventRegisterResolver; + fromJSON(object: any): _113.EventRegisterResolver; + toJSON(message: _113.EventRegisterResolver): unknown; + fromPartial(object: Partial<_113.EventRegisterResolver>): _113.EventRegisterResolver; + fromAmino(object: _113.EventRegisterResolverAmino): _113.EventRegisterResolver; + toAmino(message: _113.EventRegisterResolver): _113.EventRegisterResolverAmino; + fromAminoMsg(object: _113.EventRegisterResolverAminoMsg): _113.EventRegisterResolver; + fromProtoMsg(message: _113.EventRegisterResolverProtoMsg): _113.EventRegisterResolver; + toProto(message: _113.EventRegisterResolver): Uint8Array; + toProtoMsg(message: _113.EventRegisterResolver): _113.EventRegisterResolverProtoMsg; }; }; } namespace ecocredit { namespace basket { const v1: { - MsgClientImpl: typeof _265.MsgClientImpl; - QueryClientImpl: typeof _259.QueryClientImpl; + MsgClientImpl: typeof _266.MsgClientImpl; + QueryClientImpl: typeof _260.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - basket(request: _118.QueryBasketRequest): Promise<_118.QueryBasketResponse>; - baskets(request?: _118.QueryBasketsRequest | undefined): Promise<_118.QueryBasketsResponse>; - basketBalances(request: _118.QueryBasketBalancesRequest): Promise<_118.QueryBasketBalancesResponse>; - basketBalance(request: _118.QueryBasketBalanceRequest): Promise<_118.QueryBasketBalanceResponse>; - basketFee(request?: _118.QueryBasketFeeRequest | undefined): Promise<_118.QueryBasketFeeResponse>; + basket(request: _119.QueryBasketRequest): Promise<_119.QueryBasketResponse>; + baskets(request?: _119.QueryBasketsRequest | undefined): Promise<_119.QueryBasketsResponse>; + basketBalances(request: _119.QueryBasketBalancesRequest): Promise<_119.QueryBasketBalancesResponse>; + basketBalance(request: _119.QueryBasketBalanceRequest): Promise<_119.QueryBasketBalanceResponse>; + basketFee(request?: _119.QueryBasketFeeRequest | undefined): Promise<_119.QueryBasketFeeResponse>; }; - LCDQueryClient: typeof _253.LCDQueryClient; + LCDQueryClient: typeof _254.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - create(value: _120.MsgCreate): { + create(value: _121.MsgCreate): { typeUrl: string; value: Uint8Array; }; - put(value: _120.MsgPut): { + put(value: _121.MsgPut): { typeUrl: string; value: Uint8Array; }; - take(value: _120.MsgTake): { + take(value: _121.MsgTake): { typeUrl: string; value: Uint8Array; }; - updateBasketFee(value: _120.MsgUpdateBasketFee): { + updateBasketFee(value: _121.MsgUpdateBasketFee): { typeUrl: string; value: Uint8Array; }; - updateCurator(value: _120.MsgUpdateCurator): { + updateCurator(value: _121.MsgUpdateCurator): { typeUrl: string; value: Uint8Array; }; - updateDateCriteria(value: _120.MsgUpdateDateCriteria): { + updateDateCriteria(value: _121.MsgUpdateDateCriteria): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - create(value: _120.MsgCreate): { + create(value: _121.MsgCreate): { typeUrl: string; - value: _120.MsgCreate; + value: _121.MsgCreate; }; - put(value: _120.MsgPut): { + put(value: _121.MsgPut): { typeUrl: string; - value: _120.MsgPut; + value: _121.MsgPut; }; - take(value: _120.MsgTake): { + take(value: _121.MsgTake): { typeUrl: string; - value: _120.MsgTake; + value: _121.MsgTake; }; - updateBasketFee(value: _120.MsgUpdateBasketFee): { + updateBasketFee(value: _121.MsgUpdateBasketFee): { typeUrl: string; - value: _120.MsgUpdateBasketFee; + value: _121.MsgUpdateBasketFee; }; - updateCurator(value: _120.MsgUpdateCurator): { + updateCurator(value: _121.MsgUpdateCurator): { typeUrl: string; - value: _120.MsgUpdateCurator; + value: _121.MsgUpdateCurator; }; - updateDateCriteria(value: _120.MsgUpdateDateCriteria): { + updateDateCriteria(value: _121.MsgUpdateDateCriteria): { typeUrl: string; - value: _120.MsgUpdateDateCriteria; + value: _121.MsgUpdateDateCriteria; }; }; toJSON: { - create(value: _120.MsgCreate): { + create(value: _121.MsgCreate): { typeUrl: string; value: unknown; }; - put(value: _120.MsgPut): { + put(value: _121.MsgPut): { typeUrl: string; value: unknown; }; - take(value: _120.MsgTake): { + take(value: _121.MsgTake): { typeUrl: string; value: unknown; }; - updateBasketFee(value: _120.MsgUpdateBasketFee): { + updateBasketFee(value: _121.MsgUpdateBasketFee): { typeUrl: string; value: unknown; }; - updateCurator(value: _120.MsgUpdateCurator): { + updateCurator(value: _121.MsgUpdateCurator): { typeUrl: string; value: unknown; }; - updateDateCriteria(value: _120.MsgUpdateDateCriteria): { + updateDateCriteria(value: _121.MsgUpdateDateCriteria): { typeUrl: string; value: unknown; }; @@ -900,640 +946,675 @@ export declare namespace regen { fromJSON: { create(value: any): { typeUrl: string; - value: _120.MsgCreate; + value: _121.MsgCreate; }; put(value: any): { typeUrl: string; - value: _120.MsgPut; + value: _121.MsgPut; }; take(value: any): { typeUrl: string; - value: _120.MsgTake; + value: _121.MsgTake; }; updateBasketFee(value: any): { typeUrl: string; - value: _120.MsgUpdateBasketFee; + value: _121.MsgUpdateBasketFee; }; updateCurator(value: any): { typeUrl: string; - value: _120.MsgUpdateCurator; + value: _121.MsgUpdateCurator; }; updateDateCriteria(value: any): { typeUrl: string; - value: _120.MsgUpdateDateCriteria; + value: _121.MsgUpdateDateCriteria; }; }; fromPartial: { - create(value: _120.MsgCreate): { + create(value: _121.MsgCreate): { typeUrl: string; - value: _120.MsgCreate; + value: _121.MsgCreate; }; - put(value: _120.MsgPut): { + put(value: _121.MsgPut): { typeUrl: string; - value: _120.MsgPut; + value: _121.MsgPut; }; - take(value: _120.MsgTake): { + take(value: _121.MsgTake): { typeUrl: string; - value: _120.MsgTake; + value: _121.MsgTake; }; - updateBasketFee(value: _120.MsgUpdateBasketFee): { + updateBasketFee(value: _121.MsgUpdateBasketFee): { typeUrl: string; - value: _120.MsgUpdateBasketFee; + value: _121.MsgUpdateBasketFee; }; - updateCurator(value: _120.MsgUpdateCurator): { + updateCurator(value: _121.MsgUpdateCurator): { typeUrl: string; - value: _120.MsgUpdateCurator; + value: _121.MsgUpdateCurator; }; - updateDateCriteria(value: _120.MsgUpdateDateCriteria): { + updateDateCriteria(value: _121.MsgUpdateDateCriteria): { typeUrl: string; - value: _120.MsgUpdateDateCriteria; + value: _121.MsgUpdateDateCriteria; }; }; }; AminoConverter: { "/regen.ecocredit.basket.v1.MsgCreate": { aminoType: string; - toAmino: (message: _120.MsgCreate) => _120.MsgCreateAmino; - fromAmino: (object: _120.MsgCreateAmino) => _120.MsgCreate; + toAmino: (message: _121.MsgCreate) => _121.MsgCreateAmino; + fromAmino: (object: _121.MsgCreateAmino) => _121.MsgCreate; }; "/regen.ecocredit.basket.v1.MsgPut": { aminoType: string; - toAmino: (message: _120.MsgPut) => _120.MsgPutAmino; - fromAmino: (object: _120.MsgPutAmino) => _120.MsgPut; + toAmino: (message: _121.MsgPut) => _121.MsgPutAmino; + fromAmino: (object: _121.MsgPutAmino) => _121.MsgPut; }; "/regen.ecocredit.basket.v1.MsgTake": { aminoType: string; - toAmino: (message: _120.MsgTake) => _120.MsgTakeAmino; - fromAmino: (object: _120.MsgTakeAmino) => _120.MsgTake; + toAmino: (message: _121.MsgTake) => _121.MsgTakeAmino; + fromAmino: (object: _121.MsgTakeAmino) => _121.MsgTake; }; "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { aminoType: string; - toAmino: (message: _120.MsgUpdateBasketFee) => _120.MsgUpdateBasketFeeAmino; - fromAmino: (object: _120.MsgUpdateBasketFeeAmino) => _120.MsgUpdateBasketFee; + toAmino: (message: _121.MsgUpdateBasketFee) => _121.MsgUpdateBasketFeeAmino; + fromAmino: (object: _121.MsgUpdateBasketFeeAmino) => _121.MsgUpdateBasketFee; }; "/regen.ecocredit.basket.v1.MsgUpdateCurator": { aminoType: string; - toAmino: (message: _120.MsgUpdateCurator) => _120.MsgUpdateCuratorAmino; - fromAmino: (object: _120.MsgUpdateCuratorAmino) => _120.MsgUpdateCurator; + toAmino: (message: _121.MsgUpdateCurator) => _121.MsgUpdateCuratorAmino; + fromAmino: (object: _121.MsgUpdateCuratorAmino) => _121.MsgUpdateCurator; }; "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { aminoType: string; - toAmino: (message: _120.MsgUpdateDateCriteria) => _120.MsgUpdateDateCriteriaAmino; - fromAmino: (object: _120.MsgUpdateDateCriteriaAmino) => _120.MsgUpdateDateCriteria; + toAmino: (message: _121.MsgUpdateDateCriteria) => _121.MsgUpdateDateCriteriaAmino; + fromAmino: (object: _121.MsgUpdateDateCriteriaAmino) => _121.MsgUpdateDateCriteria; }; }; BasketCredit: { - encode(message: _121.BasketCredit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _121.BasketCredit; - fromJSON(object: any): _121.BasketCredit; - toJSON(message: _121.BasketCredit): unknown; - fromPartial(object: Partial<_121.BasketCredit>): _121.BasketCredit; - fromAmino(object: _121.BasketCreditAmino): _121.BasketCredit; - toAmino(message: _121.BasketCredit): _121.BasketCreditAmino; - fromAminoMsg(object: _121.BasketCreditAminoMsg): _121.BasketCredit; - fromProtoMsg(message: _121.BasketCreditProtoMsg): _121.BasketCredit; - toProto(message: _121.BasketCredit): Uint8Array; - toProtoMsg(message: _121.BasketCredit): _121.BasketCreditProtoMsg; + typeUrl: string; + encode(message: _122.BasketCredit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _122.BasketCredit; + fromJSON(object: any): _122.BasketCredit; + toJSON(message: _122.BasketCredit): unknown; + fromPartial(object: Partial<_122.BasketCredit>): _122.BasketCredit; + fromAmino(object: _122.BasketCreditAmino): _122.BasketCredit; + toAmino(message: _122.BasketCredit): _122.BasketCreditAmino; + fromAminoMsg(object: _122.BasketCreditAminoMsg): _122.BasketCredit; + fromProtoMsg(message: _122.BasketCreditProtoMsg): _122.BasketCredit; + toProto(message: _122.BasketCredit): Uint8Array; + toProtoMsg(message: _122.BasketCredit): _122.BasketCreditProtoMsg; }; DateCriteria: { - encode(message: _121.DateCriteria, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _121.DateCriteria; - fromJSON(object: any): _121.DateCriteria; - toJSON(message: _121.DateCriteria): unknown; - fromPartial(object: Partial<_121.DateCriteria>): _121.DateCriteria; - fromAmino(object: _121.DateCriteriaAmino): _121.DateCriteria; - toAmino(message: _121.DateCriteria): _121.DateCriteriaAmino; - fromAminoMsg(object: _121.DateCriteriaAminoMsg): _121.DateCriteria; - fromProtoMsg(message: _121.DateCriteriaProtoMsg): _121.DateCriteria; - toProto(message: _121.DateCriteria): Uint8Array; - toProtoMsg(message: _121.DateCriteria): _121.DateCriteriaProtoMsg; + typeUrl: string; + encode(message: _122.DateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _122.DateCriteria; + fromJSON(object: any): _122.DateCriteria; + toJSON(message: _122.DateCriteria): unknown; + fromPartial(object: Partial<_122.DateCriteria>): _122.DateCriteria; + fromAmino(object: _122.DateCriteriaAmino): _122.DateCriteria; + toAmino(message: _122.DateCriteria): _122.DateCriteriaAmino; + fromAminoMsg(object: _122.DateCriteriaAminoMsg): _122.DateCriteria; + fromProtoMsg(message: _122.DateCriteriaProtoMsg): _122.DateCriteria; + toProto(message: _122.DateCriteria): Uint8Array; + toProtoMsg(message: _122.DateCriteria): _122.DateCriteriaProtoMsg; }; MsgCreate: { - encode(message: _120.MsgCreate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgCreate; - fromJSON(object: any): _120.MsgCreate; - toJSON(message: _120.MsgCreate): unknown; - fromPartial(object: Partial<_120.MsgCreate>): _120.MsgCreate; - fromAmino(object: _120.MsgCreateAmino): _120.MsgCreate; - toAmino(message: _120.MsgCreate): _120.MsgCreateAmino; - fromAminoMsg(object: _120.MsgCreateAminoMsg): _120.MsgCreate; - toAminoMsg(message: _120.MsgCreate): _120.MsgCreateAminoMsg; - fromProtoMsg(message: _120.MsgCreateProtoMsg): _120.MsgCreate; - toProto(message: _120.MsgCreate): Uint8Array; - toProtoMsg(message: _120.MsgCreate): _120.MsgCreateProtoMsg; + typeUrl: string; + encode(message: _121.MsgCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgCreate; + fromJSON(object: any): _121.MsgCreate; + toJSON(message: _121.MsgCreate): unknown; + fromPartial(object: Partial<_121.MsgCreate>): _121.MsgCreate; + fromAmino(object: _121.MsgCreateAmino): _121.MsgCreate; + toAmino(message: _121.MsgCreate): _121.MsgCreateAmino; + fromAminoMsg(object: _121.MsgCreateAminoMsg): _121.MsgCreate; + toAminoMsg(message: _121.MsgCreate): _121.MsgCreateAminoMsg; + fromProtoMsg(message: _121.MsgCreateProtoMsg): _121.MsgCreate; + toProto(message: _121.MsgCreate): Uint8Array; + toProtoMsg(message: _121.MsgCreate): _121.MsgCreateProtoMsg; }; MsgCreateResponse: { - encode(message: _120.MsgCreateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgCreateResponse; - fromJSON(object: any): _120.MsgCreateResponse; - toJSON(message: _120.MsgCreateResponse): unknown; - fromPartial(object: Partial<_120.MsgCreateResponse>): _120.MsgCreateResponse; - fromAmino(object: _120.MsgCreateResponseAmino): _120.MsgCreateResponse; - toAmino(message: _120.MsgCreateResponse): _120.MsgCreateResponseAmino; - fromAminoMsg(object: _120.MsgCreateResponseAminoMsg): _120.MsgCreateResponse; - fromProtoMsg(message: _120.MsgCreateResponseProtoMsg): _120.MsgCreateResponse; - toProto(message: _120.MsgCreateResponse): Uint8Array; - toProtoMsg(message: _120.MsgCreateResponse): _120.MsgCreateResponseProtoMsg; + typeUrl: string; + encode(message: _121.MsgCreateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgCreateResponse; + fromJSON(object: any): _121.MsgCreateResponse; + toJSON(message: _121.MsgCreateResponse): unknown; + fromPartial(object: Partial<_121.MsgCreateResponse>): _121.MsgCreateResponse; + fromAmino(object: _121.MsgCreateResponseAmino): _121.MsgCreateResponse; + toAmino(message: _121.MsgCreateResponse): _121.MsgCreateResponseAmino; + fromAminoMsg(object: _121.MsgCreateResponseAminoMsg): _121.MsgCreateResponse; + fromProtoMsg(message: _121.MsgCreateResponseProtoMsg): _121.MsgCreateResponse; + toProto(message: _121.MsgCreateResponse): Uint8Array; + toProtoMsg(message: _121.MsgCreateResponse): _121.MsgCreateResponseProtoMsg; }; MsgPut: { - encode(message: _120.MsgPut, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgPut; - fromJSON(object: any): _120.MsgPut; - toJSON(message: _120.MsgPut): unknown; - fromPartial(object: Partial<_120.MsgPut>): _120.MsgPut; - fromAmino(object: _120.MsgPutAmino): _120.MsgPut; - toAmino(message: _120.MsgPut): _120.MsgPutAmino; - fromAminoMsg(object: _120.MsgPutAminoMsg): _120.MsgPut; - toAminoMsg(message: _120.MsgPut): _120.MsgPutAminoMsg; - fromProtoMsg(message: _120.MsgPutProtoMsg): _120.MsgPut; - toProto(message: _120.MsgPut): Uint8Array; - toProtoMsg(message: _120.MsgPut): _120.MsgPutProtoMsg; + typeUrl: string; + encode(message: _121.MsgPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgPut; + fromJSON(object: any): _121.MsgPut; + toJSON(message: _121.MsgPut): unknown; + fromPartial(object: Partial<_121.MsgPut>): _121.MsgPut; + fromAmino(object: _121.MsgPutAmino): _121.MsgPut; + toAmino(message: _121.MsgPut): _121.MsgPutAmino; + fromAminoMsg(object: _121.MsgPutAminoMsg): _121.MsgPut; + toAminoMsg(message: _121.MsgPut): _121.MsgPutAminoMsg; + fromProtoMsg(message: _121.MsgPutProtoMsg): _121.MsgPut; + toProto(message: _121.MsgPut): Uint8Array; + toProtoMsg(message: _121.MsgPut): _121.MsgPutProtoMsg; }; MsgPutResponse: { - encode(message: _120.MsgPutResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgPutResponse; - fromJSON(object: any): _120.MsgPutResponse; - toJSON(message: _120.MsgPutResponse): unknown; - fromPartial(object: Partial<_120.MsgPutResponse>): _120.MsgPutResponse; - fromAmino(object: _120.MsgPutResponseAmino): _120.MsgPutResponse; - toAmino(message: _120.MsgPutResponse): _120.MsgPutResponseAmino; - fromAminoMsg(object: _120.MsgPutResponseAminoMsg): _120.MsgPutResponse; - fromProtoMsg(message: _120.MsgPutResponseProtoMsg): _120.MsgPutResponse; - toProto(message: _120.MsgPutResponse): Uint8Array; - toProtoMsg(message: _120.MsgPutResponse): _120.MsgPutResponseProtoMsg; + typeUrl: string; + encode(message: _121.MsgPutResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgPutResponse; + fromJSON(object: any): _121.MsgPutResponse; + toJSON(message: _121.MsgPutResponse): unknown; + fromPartial(object: Partial<_121.MsgPutResponse>): _121.MsgPutResponse; + fromAmino(object: _121.MsgPutResponseAmino): _121.MsgPutResponse; + toAmino(message: _121.MsgPutResponse): _121.MsgPutResponseAmino; + fromAminoMsg(object: _121.MsgPutResponseAminoMsg): _121.MsgPutResponse; + fromProtoMsg(message: _121.MsgPutResponseProtoMsg): _121.MsgPutResponse; + toProto(message: _121.MsgPutResponse): Uint8Array; + toProtoMsg(message: _121.MsgPutResponse): _121.MsgPutResponseProtoMsg; }; MsgTake: { - encode(message: _120.MsgTake, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgTake; - fromJSON(object: any): _120.MsgTake; - toJSON(message: _120.MsgTake): unknown; - fromPartial(object: Partial<_120.MsgTake>): _120.MsgTake; - fromAmino(object: _120.MsgTakeAmino): _120.MsgTake; - toAmino(message: _120.MsgTake): _120.MsgTakeAmino; - fromAminoMsg(object: _120.MsgTakeAminoMsg): _120.MsgTake; - toAminoMsg(message: _120.MsgTake): _120.MsgTakeAminoMsg; - fromProtoMsg(message: _120.MsgTakeProtoMsg): _120.MsgTake; - toProto(message: _120.MsgTake): Uint8Array; - toProtoMsg(message: _120.MsgTake): _120.MsgTakeProtoMsg; + typeUrl: string; + encode(message: _121.MsgTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgTake; + fromJSON(object: any): _121.MsgTake; + toJSON(message: _121.MsgTake): unknown; + fromPartial(object: Partial<_121.MsgTake>): _121.MsgTake; + fromAmino(object: _121.MsgTakeAmino): _121.MsgTake; + toAmino(message: _121.MsgTake): _121.MsgTakeAmino; + fromAminoMsg(object: _121.MsgTakeAminoMsg): _121.MsgTake; + toAminoMsg(message: _121.MsgTake): _121.MsgTakeAminoMsg; + fromProtoMsg(message: _121.MsgTakeProtoMsg): _121.MsgTake; + toProto(message: _121.MsgTake): Uint8Array; + toProtoMsg(message: _121.MsgTake): _121.MsgTakeProtoMsg; }; MsgTakeResponse: { - encode(message: _120.MsgTakeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgTakeResponse; - fromJSON(object: any): _120.MsgTakeResponse; - toJSON(message: _120.MsgTakeResponse): unknown; - fromPartial(object: Partial<_120.MsgTakeResponse>): _120.MsgTakeResponse; - fromAmino(object: _120.MsgTakeResponseAmino): _120.MsgTakeResponse; - toAmino(message: _120.MsgTakeResponse): _120.MsgTakeResponseAmino; - fromAminoMsg(object: _120.MsgTakeResponseAminoMsg): _120.MsgTakeResponse; - fromProtoMsg(message: _120.MsgTakeResponseProtoMsg): _120.MsgTakeResponse; - toProto(message: _120.MsgTakeResponse): Uint8Array; - toProtoMsg(message: _120.MsgTakeResponse): _120.MsgTakeResponseProtoMsg; + typeUrl: string; + encode(message: _121.MsgTakeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgTakeResponse; + fromJSON(object: any): _121.MsgTakeResponse; + toJSON(message: _121.MsgTakeResponse): unknown; + fromPartial(object: Partial<_121.MsgTakeResponse>): _121.MsgTakeResponse; + fromAmino(object: _121.MsgTakeResponseAmino): _121.MsgTakeResponse; + toAmino(message: _121.MsgTakeResponse): _121.MsgTakeResponseAmino; + fromAminoMsg(object: _121.MsgTakeResponseAminoMsg): _121.MsgTakeResponse; + fromProtoMsg(message: _121.MsgTakeResponseProtoMsg): _121.MsgTakeResponse; + toProto(message: _121.MsgTakeResponse): Uint8Array; + toProtoMsg(message: _121.MsgTakeResponse): _121.MsgTakeResponseProtoMsg; }; MsgUpdateBasketFee: { - encode(message: _120.MsgUpdateBasketFee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateBasketFee; - fromJSON(object: any): _120.MsgUpdateBasketFee; - toJSON(message: _120.MsgUpdateBasketFee): unknown; - fromPartial(object: Partial<_120.MsgUpdateBasketFee>): _120.MsgUpdateBasketFee; - fromAmino(object: _120.MsgUpdateBasketFeeAmino): _120.MsgUpdateBasketFee; - toAmino(message: _120.MsgUpdateBasketFee): _120.MsgUpdateBasketFeeAmino; - fromAminoMsg(object: _120.MsgUpdateBasketFeeAminoMsg): _120.MsgUpdateBasketFee; - toAminoMsg(message: _120.MsgUpdateBasketFee): _120.MsgUpdateBasketFeeAminoMsg; - fromProtoMsg(message: _120.MsgUpdateBasketFeeProtoMsg): _120.MsgUpdateBasketFee; - toProto(message: _120.MsgUpdateBasketFee): Uint8Array; - toProtoMsg(message: _120.MsgUpdateBasketFee): _120.MsgUpdateBasketFeeProtoMsg; + typeUrl: string; + encode(message: _121.MsgUpdateBasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateBasketFee; + fromJSON(object: any): _121.MsgUpdateBasketFee; + toJSON(message: _121.MsgUpdateBasketFee): unknown; + fromPartial(object: Partial<_121.MsgUpdateBasketFee>): _121.MsgUpdateBasketFee; + fromAmino(object: _121.MsgUpdateBasketFeeAmino): _121.MsgUpdateBasketFee; + toAmino(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeAmino; + fromAminoMsg(object: _121.MsgUpdateBasketFeeAminoMsg): _121.MsgUpdateBasketFee; + toAminoMsg(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeAminoMsg; + fromProtoMsg(message: _121.MsgUpdateBasketFeeProtoMsg): _121.MsgUpdateBasketFee; + toProto(message: _121.MsgUpdateBasketFee): Uint8Array; + toProtoMsg(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeProtoMsg; }; MsgUpdateBasketFeeResponse: { - encode(_: _120.MsgUpdateBasketFeeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateBasketFeeResponse; - fromJSON(_: any): _120.MsgUpdateBasketFeeResponse; - toJSON(_: _120.MsgUpdateBasketFeeResponse): unknown; - fromPartial(_: Partial<_120.MsgUpdateBasketFeeResponse>): _120.MsgUpdateBasketFeeResponse; - fromAmino(_: _120.MsgUpdateBasketFeeResponseAmino): _120.MsgUpdateBasketFeeResponse; - toAmino(_: _120.MsgUpdateBasketFeeResponse): _120.MsgUpdateBasketFeeResponseAmino; - fromAminoMsg(object: _120.MsgUpdateBasketFeeResponseAminoMsg): _120.MsgUpdateBasketFeeResponse; - fromProtoMsg(message: _120.MsgUpdateBasketFeeResponseProtoMsg): _120.MsgUpdateBasketFeeResponse; - toProto(message: _120.MsgUpdateBasketFeeResponse): Uint8Array; - toProtoMsg(message: _120.MsgUpdateBasketFeeResponse): _120.MsgUpdateBasketFeeResponseProtoMsg; + typeUrl: string; + encode(_: _121.MsgUpdateBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateBasketFeeResponse; + fromJSON(_: any): _121.MsgUpdateBasketFeeResponse; + toJSON(_: _121.MsgUpdateBasketFeeResponse): unknown; + fromPartial(_: Partial<_121.MsgUpdateBasketFeeResponse>): _121.MsgUpdateBasketFeeResponse; + fromAmino(_: _121.MsgUpdateBasketFeeResponseAmino): _121.MsgUpdateBasketFeeResponse; + toAmino(_: _121.MsgUpdateBasketFeeResponse): _121.MsgUpdateBasketFeeResponseAmino; + fromAminoMsg(object: _121.MsgUpdateBasketFeeResponseAminoMsg): _121.MsgUpdateBasketFeeResponse; + fromProtoMsg(message: _121.MsgUpdateBasketFeeResponseProtoMsg): _121.MsgUpdateBasketFeeResponse; + toProto(message: _121.MsgUpdateBasketFeeResponse): Uint8Array; + toProtoMsg(message: _121.MsgUpdateBasketFeeResponse): _121.MsgUpdateBasketFeeResponseProtoMsg; }; MsgUpdateCurator: { - encode(message: _120.MsgUpdateCurator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateCurator; - fromJSON(object: any): _120.MsgUpdateCurator; - toJSON(message: _120.MsgUpdateCurator): unknown; - fromPartial(object: Partial<_120.MsgUpdateCurator>): _120.MsgUpdateCurator; - fromAmino(object: _120.MsgUpdateCuratorAmino): _120.MsgUpdateCurator; - toAmino(message: _120.MsgUpdateCurator): _120.MsgUpdateCuratorAmino; - fromAminoMsg(object: _120.MsgUpdateCuratorAminoMsg): _120.MsgUpdateCurator; - toAminoMsg(message: _120.MsgUpdateCurator): _120.MsgUpdateCuratorAminoMsg; - fromProtoMsg(message: _120.MsgUpdateCuratorProtoMsg): _120.MsgUpdateCurator; - toProto(message: _120.MsgUpdateCurator): Uint8Array; - toProtoMsg(message: _120.MsgUpdateCurator): _120.MsgUpdateCuratorProtoMsg; + typeUrl: string; + encode(message: _121.MsgUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateCurator; + fromJSON(object: any): _121.MsgUpdateCurator; + toJSON(message: _121.MsgUpdateCurator): unknown; + fromPartial(object: Partial<_121.MsgUpdateCurator>): _121.MsgUpdateCurator; + fromAmino(object: _121.MsgUpdateCuratorAmino): _121.MsgUpdateCurator; + toAmino(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorAmino; + fromAminoMsg(object: _121.MsgUpdateCuratorAminoMsg): _121.MsgUpdateCurator; + toAminoMsg(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorAminoMsg; + fromProtoMsg(message: _121.MsgUpdateCuratorProtoMsg): _121.MsgUpdateCurator; + toProto(message: _121.MsgUpdateCurator): Uint8Array; + toProtoMsg(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorProtoMsg; }; MsgUpdateCuratorResponse: { - encode(_: _120.MsgUpdateCuratorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateCuratorResponse; - fromJSON(_: any): _120.MsgUpdateCuratorResponse; - toJSON(_: _120.MsgUpdateCuratorResponse): unknown; - fromPartial(_: Partial<_120.MsgUpdateCuratorResponse>): _120.MsgUpdateCuratorResponse; - fromAmino(_: _120.MsgUpdateCuratorResponseAmino): _120.MsgUpdateCuratorResponse; - toAmino(_: _120.MsgUpdateCuratorResponse): _120.MsgUpdateCuratorResponseAmino; - fromAminoMsg(object: _120.MsgUpdateCuratorResponseAminoMsg): _120.MsgUpdateCuratorResponse; - fromProtoMsg(message: _120.MsgUpdateCuratorResponseProtoMsg): _120.MsgUpdateCuratorResponse; - toProto(message: _120.MsgUpdateCuratorResponse): Uint8Array; - toProtoMsg(message: _120.MsgUpdateCuratorResponse): _120.MsgUpdateCuratorResponseProtoMsg; + typeUrl: string; + encode(_: _121.MsgUpdateCuratorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateCuratorResponse; + fromJSON(_: any): _121.MsgUpdateCuratorResponse; + toJSON(_: _121.MsgUpdateCuratorResponse): unknown; + fromPartial(_: Partial<_121.MsgUpdateCuratorResponse>): _121.MsgUpdateCuratorResponse; + fromAmino(_: _121.MsgUpdateCuratorResponseAmino): _121.MsgUpdateCuratorResponse; + toAmino(_: _121.MsgUpdateCuratorResponse): _121.MsgUpdateCuratorResponseAmino; + fromAminoMsg(object: _121.MsgUpdateCuratorResponseAminoMsg): _121.MsgUpdateCuratorResponse; + fromProtoMsg(message: _121.MsgUpdateCuratorResponseProtoMsg): _121.MsgUpdateCuratorResponse; + toProto(message: _121.MsgUpdateCuratorResponse): Uint8Array; + toProtoMsg(message: _121.MsgUpdateCuratorResponse): _121.MsgUpdateCuratorResponseProtoMsg; }; MsgUpdateDateCriteria: { - encode(message: _120.MsgUpdateDateCriteria, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateDateCriteria; - fromJSON(object: any): _120.MsgUpdateDateCriteria; - toJSON(message: _120.MsgUpdateDateCriteria): unknown; - fromPartial(object: Partial<_120.MsgUpdateDateCriteria>): _120.MsgUpdateDateCriteria; - fromAmino(object: _120.MsgUpdateDateCriteriaAmino): _120.MsgUpdateDateCriteria; - toAmino(message: _120.MsgUpdateDateCriteria): _120.MsgUpdateDateCriteriaAmino; - fromAminoMsg(object: _120.MsgUpdateDateCriteriaAminoMsg): _120.MsgUpdateDateCriteria; - toAminoMsg(message: _120.MsgUpdateDateCriteria): _120.MsgUpdateDateCriteriaAminoMsg; - fromProtoMsg(message: _120.MsgUpdateDateCriteriaProtoMsg): _120.MsgUpdateDateCriteria; - toProto(message: _120.MsgUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _120.MsgUpdateDateCriteria): _120.MsgUpdateDateCriteriaProtoMsg; + typeUrl: string; + encode(message: _121.MsgUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateDateCriteria; + fromJSON(object: any): _121.MsgUpdateDateCriteria; + toJSON(message: _121.MsgUpdateDateCriteria): unknown; + fromPartial(object: Partial<_121.MsgUpdateDateCriteria>): _121.MsgUpdateDateCriteria; + fromAmino(object: _121.MsgUpdateDateCriteriaAmino): _121.MsgUpdateDateCriteria; + toAmino(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaAmino; + fromAminoMsg(object: _121.MsgUpdateDateCriteriaAminoMsg): _121.MsgUpdateDateCriteria; + toAminoMsg(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaAminoMsg; + fromProtoMsg(message: _121.MsgUpdateDateCriteriaProtoMsg): _121.MsgUpdateDateCriteria; + toProto(message: _121.MsgUpdateDateCriteria): Uint8Array; + toProtoMsg(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaProtoMsg; }; MsgUpdateDateCriteriaResponse: { - encode(_: _120.MsgUpdateDateCriteriaResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _120.MsgUpdateDateCriteriaResponse; - fromJSON(_: any): _120.MsgUpdateDateCriteriaResponse; - toJSON(_: _120.MsgUpdateDateCriteriaResponse): unknown; - fromPartial(_: Partial<_120.MsgUpdateDateCriteriaResponse>): _120.MsgUpdateDateCriteriaResponse; - fromAmino(_: _120.MsgUpdateDateCriteriaResponseAmino): _120.MsgUpdateDateCriteriaResponse; - toAmino(_: _120.MsgUpdateDateCriteriaResponse): _120.MsgUpdateDateCriteriaResponseAmino; - fromAminoMsg(object: _120.MsgUpdateDateCriteriaResponseAminoMsg): _120.MsgUpdateDateCriteriaResponse; - fromProtoMsg(message: _120.MsgUpdateDateCriteriaResponseProtoMsg): _120.MsgUpdateDateCriteriaResponse; - toProto(message: _120.MsgUpdateDateCriteriaResponse): Uint8Array; - toProtoMsg(message: _120.MsgUpdateDateCriteriaResponse): _120.MsgUpdateDateCriteriaResponseProtoMsg; + typeUrl: string; + encode(_: _121.MsgUpdateDateCriteriaResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateDateCriteriaResponse; + fromJSON(_: any): _121.MsgUpdateDateCriteriaResponse; + toJSON(_: _121.MsgUpdateDateCriteriaResponse): unknown; + fromPartial(_: Partial<_121.MsgUpdateDateCriteriaResponse>): _121.MsgUpdateDateCriteriaResponse; + fromAmino(_: _121.MsgUpdateDateCriteriaResponseAmino): _121.MsgUpdateDateCriteriaResponse; + toAmino(_: _121.MsgUpdateDateCriteriaResponse): _121.MsgUpdateDateCriteriaResponseAmino; + fromAminoMsg(object: _121.MsgUpdateDateCriteriaResponseAminoMsg): _121.MsgUpdateDateCriteriaResponse; + fromProtoMsg(message: _121.MsgUpdateDateCriteriaResponseProtoMsg): _121.MsgUpdateDateCriteriaResponse; + toProto(message: _121.MsgUpdateDateCriteriaResponse): Uint8Array; + toProtoMsg(message: _121.MsgUpdateDateCriteriaResponse): _121.MsgUpdateDateCriteriaResponseProtoMsg; }; Basket: { - encode(message: _119.Basket, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _119.Basket; - fromJSON(object: any): _119.Basket; - toJSON(message: _119.Basket): unknown; - fromPartial(object: Partial<_119.Basket>): _119.Basket; - fromAmino(object: _119.BasketAmino): _119.Basket; - toAmino(message: _119.Basket): _119.BasketAmino; - fromAminoMsg(object: _119.BasketAminoMsg): _119.Basket; - fromProtoMsg(message: _119.BasketProtoMsg): _119.Basket; - toProto(message: _119.Basket): Uint8Array; - toProtoMsg(message: _119.Basket): _119.BasketProtoMsg; + typeUrl: string; + encode(message: _120.Basket, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.Basket; + fromJSON(object: any): _120.Basket; + toJSON(message: _120.Basket): unknown; + fromPartial(object: Partial<_120.Basket>): _120.Basket; + fromAmino(object: _120.BasketAmino): _120.Basket; + toAmino(message: _120.Basket): _120.BasketAmino; + fromAminoMsg(object: _120.BasketAminoMsg): _120.Basket; + fromProtoMsg(message: _120.BasketProtoMsg): _120.Basket; + toProto(message: _120.Basket): Uint8Array; + toProtoMsg(message: _120.Basket): _120.BasketProtoMsg; }; BasketClass: { - encode(message: _119.BasketClass, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _119.BasketClass; - fromJSON(object: any): _119.BasketClass; - toJSON(message: _119.BasketClass): unknown; - fromPartial(object: Partial<_119.BasketClass>): _119.BasketClass; - fromAmino(object: _119.BasketClassAmino): _119.BasketClass; - toAmino(message: _119.BasketClass): _119.BasketClassAmino; - fromAminoMsg(object: _119.BasketClassAminoMsg): _119.BasketClass; - fromProtoMsg(message: _119.BasketClassProtoMsg): _119.BasketClass; - toProto(message: _119.BasketClass): Uint8Array; - toProtoMsg(message: _119.BasketClass): _119.BasketClassProtoMsg; + typeUrl: string; + encode(message: _120.BasketClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketClass; + fromJSON(object: any): _120.BasketClass; + toJSON(message: _120.BasketClass): unknown; + fromPartial(object: Partial<_120.BasketClass>): _120.BasketClass; + fromAmino(object: _120.BasketClassAmino): _120.BasketClass; + toAmino(message: _120.BasketClass): _120.BasketClassAmino; + fromAminoMsg(object: _120.BasketClassAminoMsg): _120.BasketClass; + fromProtoMsg(message: _120.BasketClassProtoMsg): _120.BasketClass; + toProto(message: _120.BasketClass): Uint8Array; + toProtoMsg(message: _120.BasketClass): _120.BasketClassProtoMsg; }; BasketBalance: { - encode(message: _119.BasketBalance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _119.BasketBalance; - fromJSON(object: any): _119.BasketBalance; - toJSON(message: _119.BasketBalance): unknown; - fromPartial(object: Partial<_119.BasketBalance>): _119.BasketBalance; - fromAmino(object: _119.BasketBalanceAmino): _119.BasketBalance; - toAmino(message: _119.BasketBalance): _119.BasketBalanceAmino; - fromAminoMsg(object: _119.BasketBalanceAminoMsg): _119.BasketBalance; - fromProtoMsg(message: _119.BasketBalanceProtoMsg): _119.BasketBalance; - toProto(message: _119.BasketBalance): Uint8Array; - toProtoMsg(message: _119.BasketBalance): _119.BasketBalanceProtoMsg; + typeUrl: string; + encode(message: _120.BasketBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketBalance; + fromJSON(object: any): _120.BasketBalance; + toJSON(message: _120.BasketBalance): unknown; + fromPartial(object: Partial<_120.BasketBalance>): _120.BasketBalance; + fromAmino(object: _120.BasketBalanceAmino): _120.BasketBalance; + toAmino(message: _120.BasketBalance): _120.BasketBalanceAmino; + fromAminoMsg(object: _120.BasketBalanceAminoMsg): _120.BasketBalance; + fromProtoMsg(message: _120.BasketBalanceProtoMsg): _120.BasketBalance; + toProto(message: _120.BasketBalance): Uint8Array; + toProtoMsg(message: _120.BasketBalance): _120.BasketBalanceProtoMsg; }; BasketFee: { - encode(message: _119.BasketFee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _119.BasketFee; - fromJSON(object: any): _119.BasketFee; - toJSON(message: _119.BasketFee): unknown; - fromPartial(object: Partial<_119.BasketFee>): _119.BasketFee; - fromAmino(object: _119.BasketFeeAmino): _119.BasketFee; - toAmino(message: _119.BasketFee): _119.BasketFeeAmino; - fromAminoMsg(object: _119.BasketFeeAminoMsg): _119.BasketFee; - fromProtoMsg(message: _119.BasketFeeProtoMsg): _119.BasketFee; - toProto(message: _119.BasketFee): Uint8Array; - toProtoMsg(message: _119.BasketFee): _119.BasketFeeProtoMsg; + typeUrl: string; + encode(message: _120.BasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketFee; + fromJSON(object: any): _120.BasketFee; + toJSON(message: _120.BasketFee): unknown; + fromPartial(object: Partial<_120.BasketFee>): _120.BasketFee; + fromAmino(object: _120.BasketFeeAmino): _120.BasketFee; + toAmino(message: _120.BasketFee): _120.BasketFeeAmino; + fromAminoMsg(object: _120.BasketFeeAminoMsg): _120.BasketFee; + fromProtoMsg(message: _120.BasketFeeProtoMsg): _120.BasketFee; + toProto(message: _120.BasketFee): Uint8Array; + toProtoMsg(message: _120.BasketFee): _120.BasketFeeProtoMsg; }; QueryBasketRequest: { - encode(message: _118.QueryBasketRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketRequest; - fromJSON(object: any): _118.QueryBasketRequest; - toJSON(message: _118.QueryBasketRequest): unknown; - fromPartial(object: Partial<_118.QueryBasketRequest>): _118.QueryBasketRequest; - fromAmino(object: _118.QueryBasketRequestAmino): _118.QueryBasketRequest; - toAmino(message: _118.QueryBasketRequest): _118.QueryBasketRequestAmino; - fromAminoMsg(object: _118.QueryBasketRequestAminoMsg): _118.QueryBasketRequest; - fromProtoMsg(message: _118.QueryBasketRequestProtoMsg): _118.QueryBasketRequest; - toProto(message: _118.QueryBasketRequest): Uint8Array; - toProtoMsg(message: _118.QueryBasketRequest): _118.QueryBasketRequestProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketRequest; + fromJSON(object: any): _119.QueryBasketRequest; + toJSON(message: _119.QueryBasketRequest): unknown; + fromPartial(object: Partial<_119.QueryBasketRequest>): _119.QueryBasketRequest; + fromAmino(object: _119.QueryBasketRequestAmino): _119.QueryBasketRequest; + toAmino(message: _119.QueryBasketRequest): _119.QueryBasketRequestAmino; + fromAminoMsg(object: _119.QueryBasketRequestAminoMsg): _119.QueryBasketRequest; + fromProtoMsg(message: _119.QueryBasketRequestProtoMsg): _119.QueryBasketRequest; + toProto(message: _119.QueryBasketRequest): Uint8Array; + toProtoMsg(message: _119.QueryBasketRequest): _119.QueryBasketRequestProtoMsg; }; QueryBasketResponse: { - encode(message: _118.QueryBasketResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketResponse; - fromJSON(object: any): _118.QueryBasketResponse; - toJSON(message: _118.QueryBasketResponse): unknown; - fromPartial(object: Partial<_118.QueryBasketResponse>): _118.QueryBasketResponse; - fromAmino(object: _118.QueryBasketResponseAmino): _118.QueryBasketResponse; - toAmino(message: _118.QueryBasketResponse): _118.QueryBasketResponseAmino; - fromAminoMsg(object: _118.QueryBasketResponseAminoMsg): _118.QueryBasketResponse; - fromProtoMsg(message: _118.QueryBasketResponseProtoMsg): _118.QueryBasketResponse; - toProto(message: _118.QueryBasketResponse): Uint8Array; - toProtoMsg(message: _118.QueryBasketResponse): _118.QueryBasketResponseProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketResponse; + fromJSON(object: any): _119.QueryBasketResponse; + toJSON(message: _119.QueryBasketResponse): unknown; + fromPartial(object: Partial<_119.QueryBasketResponse>): _119.QueryBasketResponse; + fromAmino(object: _119.QueryBasketResponseAmino): _119.QueryBasketResponse; + toAmino(message: _119.QueryBasketResponse): _119.QueryBasketResponseAmino; + fromAminoMsg(object: _119.QueryBasketResponseAminoMsg): _119.QueryBasketResponse; + fromProtoMsg(message: _119.QueryBasketResponseProtoMsg): _119.QueryBasketResponse; + toProto(message: _119.QueryBasketResponse): Uint8Array; + toProtoMsg(message: _119.QueryBasketResponse): _119.QueryBasketResponseProtoMsg; }; QueryBasketsRequest: { - encode(message: _118.QueryBasketsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketsRequest; - fromJSON(object: any): _118.QueryBasketsRequest; - toJSON(message: _118.QueryBasketsRequest): unknown; - fromPartial(object: Partial<_118.QueryBasketsRequest>): _118.QueryBasketsRequest; - fromAmino(object: _118.QueryBasketsRequestAmino): _118.QueryBasketsRequest; - toAmino(message: _118.QueryBasketsRequest): _118.QueryBasketsRequestAmino; - fromAminoMsg(object: _118.QueryBasketsRequestAminoMsg): _118.QueryBasketsRequest; - fromProtoMsg(message: _118.QueryBasketsRequestProtoMsg): _118.QueryBasketsRequest; - toProto(message: _118.QueryBasketsRequest): Uint8Array; - toProtoMsg(message: _118.QueryBasketsRequest): _118.QueryBasketsRequestProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketsRequest; + fromJSON(object: any): _119.QueryBasketsRequest; + toJSON(message: _119.QueryBasketsRequest): unknown; + fromPartial(object: Partial<_119.QueryBasketsRequest>): _119.QueryBasketsRequest; + fromAmino(object: _119.QueryBasketsRequestAmino): _119.QueryBasketsRequest; + toAmino(message: _119.QueryBasketsRequest): _119.QueryBasketsRequestAmino; + fromAminoMsg(object: _119.QueryBasketsRequestAminoMsg): _119.QueryBasketsRequest; + fromProtoMsg(message: _119.QueryBasketsRequestProtoMsg): _119.QueryBasketsRequest; + toProto(message: _119.QueryBasketsRequest): Uint8Array; + toProtoMsg(message: _119.QueryBasketsRequest): _119.QueryBasketsRequestProtoMsg; }; QueryBasketsResponse: { - encode(message: _118.QueryBasketsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketsResponse; - fromJSON(object: any): _118.QueryBasketsResponse; - toJSON(message: _118.QueryBasketsResponse): unknown; - fromPartial(object: Partial<_118.QueryBasketsResponse>): _118.QueryBasketsResponse; - fromAmino(object: _118.QueryBasketsResponseAmino): _118.QueryBasketsResponse; - toAmino(message: _118.QueryBasketsResponse): _118.QueryBasketsResponseAmino; - fromAminoMsg(object: _118.QueryBasketsResponseAminoMsg): _118.QueryBasketsResponse; - fromProtoMsg(message: _118.QueryBasketsResponseProtoMsg): _118.QueryBasketsResponse; - toProto(message: _118.QueryBasketsResponse): Uint8Array; - toProtoMsg(message: _118.QueryBasketsResponse): _118.QueryBasketsResponseProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketsResponse; + fromJSON(object: any): _119.QueryBasketsResponse; + toJSON(message: _119.QueryBasketsResponse): unknown; + fromPartial(object: Partial<_119.QueryBasketsResponse>): _119.QueryBasketsResponse; + fromAmino(object: _119.QueryBasketsResponseAmino): _119.QueryBasketsResponse; + toAmino(message: _119.QueryBasketsResponse): _119.QueryBasketsResponseAmino; + fromAminoMsg(object: _119.QueryBasketsResponseAminoMsg): _119.QueryBasketsResponse; + fromProtoMsg(message: _119.QueryBasketsResponseProtoMsg): _119.QueryBasketsResponse; + toProto(message: _119.QueryBasketsResponse): Uint8Array; + toProtoMsg(message: _119.QueryBasketsResponse): _119.QueryBasketsResponseProtoMsg; }; QueryBasketBalancesRequest: { - encode(message: _118.QueryBasketBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketBalancesRequest; - fromJSON(object: any): _118.QueryBasketBalancesRequest; - toJSON(message: _118.QueryBasketBalancesRequest): unknown; - fromPartial(object: Partial<_118.QueryBasketBalancesRequest>): _118.QueryBasketBalancesRequest; - fromAmino(object: _118.QueryBasketBalancesRequestAmino): _118.QueryBasketBalancesRequest; - toAmino(message: _118.QueryBasketBalancesRequest): _118.QueryBasketBalancesRequestAmino; - fromAminoMsg(object: _118.QueryBasketBalancesRequestAminoMsg): _118.QueryBasketBalancesRequest; - fromProtoMsg(message: _118.QueryBasketBalancesRequestProtoMsg): _118.QueryBasketBalancesRequest; - toProto(message: _118.QueryBasketBalancesRequest): Uint8Array; - toProtoMsg(message: _118.QueryBasketBalancesRequest): _118.QueryBasketBalancesRequestProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalancesRequest; + fromJSON(object: any): _119.QueryBasketBalancesRequest; + toJSON(message: _119.QueryBasketBalancesRequest): unknown; + fromPartial(object: Partial<_119.QueryBasketBalancesRequest>): _119.QueryBasketBalancesRequest; + fromAmino(object: _119.QueryBasketBalancesRequestAmino): _119.QueryBasketBalancesRequest; + toAmino(message: _119.QueryBasketBalancesRequest): _119.QueryBasketBalancesRequestAmino; + fromAminoMsg(object: _119.QueryBasketBalancesRequestAminoMsg): _119.QueryBasketBalancesRequest; + fromProtoMsg(message: _119.QueryBasketBalancesRequestProtoMsg): _119.QueryBasketBalancesRequest; + toProto(message: _119.QueryBasketBalancesRequest): Uint8Array; + toProtoMsg(message: _119.QueryBasketBalancesRequest): _119.QueryBasketBalancesRequestProtoMsg; }; QueryBasketBalancesResponse: { - encode(message: _118.QueryBasketBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketBalancesResponse; - fromJSON(object: any): _118.QueryBasketBalancesResponse; - toJSON(message: _118.QueryBasketBalancesResponse): unknown; - fromPartial(object: Partial<_118.QueryBasketBalancesResponse>): _118.QueryBasketBalancesResponse; - fromAmino(object: _118.QueryBasketBalancesResponseAmino): _118.QueryBasketBalancesResponse; - toAmino(message: _118.QueryBasketBalancesResponse): _118.QueryBasketBalancesResponseAmino; - fromAminoMsg(object: _118.QueryBasketBalancesResponseAminoMsg): _118.QueryBasketBalancesResponse; - fromProtoMsg(message: _118.QueryBasketBalancesResponseProtoMsg): _118.QueryBasketBalancesResponse; - toProto(message: _118.QueryBasketBalancesResponse): Uint8Array; - toProtoMsg(message: _118.QueryBasketBalancesResponse): _118.QueryBasketBalancesResponseProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalancesResponse; + fromJSON(object: any): _119.QueryBasketBalancesResponse; + toJSON(message: _119.QueryBasketBalancesResponse): unknown; + fromPartial(object: Partial<_119.QueryBasketBalancesResponse>): _119.QueryBasketBalancesResponse; + fromAmino(object: _119.QueryBasketBalancesResponseAmino): _119.QueryBasketBalancesResponse; + toAmino(message: _119.QueryBasketBalancesResponse): _119.QueryBasketBalancesResponseAmino; + fromAminoMsg(object: _119.QueryBasketBalancesResponseAminoMsg): _119.QueryBasketBalancesResponse; + fromProtoMsg(message: _119.QueryBasketBalancesResponseProtoMsg): _119.QueryBasketBalancesResponse; + toProto(message: _119.QueryBasketBalancesResponse): Uint8Array; + toProtoMsg(message: _119.QueryBasketBalancesResponse): _119.QueryBasketBalancesResponseProtoMsg; }; QueryBasketBalanceRequest: { - encode(message: _118.QueryBasketBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketBalanceRequest; - fromJSON(object: any): _118.QueryBasketBalanceRequest; - toJSON(message: _118.QueryBasketBalanceRequest): unknown; - fromPartial(object: Partial<_118.QueryBasketBalanceRequest>): _118.QueryBasketBalanceRequest; - fromAmino(object: _118.QueryBasketBalanceRequestAmino): _118.QueryBasketBalanceRequest; - toAmino(message: _118.QueryBasketBalanceRequest): _118.QueryBasketBalanceRequestAmino; - fromAminoMsg(object: _118.QueryBasketBalanceRequestAminoMsg): _118.QueryBasketBalanceRequest; - fromProtoMsg(message: _118.QueryBasketBalanceRequestProtoMsg): _118.QueryBasketBalanceRequest; - toProto(message: _118.QueryBasketBalanceRequest): Uint8Array; - toProtoMsg(message: _118.QueryBasketBalanceRequest): _118.QueryBasketBalanceRequestProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalanceRequest; + fromJSON(object: any): _119.QueryBasketBalanceRequest; + toJSON(message: _119.QueryBasketBalanceRequest): unknown; + fromPartial(object: Partial<_119.QueryBasketBalanceRequest>): _119.QueryBasketBalanceRequest; + fromAmino(object: _119.QueryBasketBalanceRequestAmino): _119.QueryBasketBalanceRequest; + toAmino(message: _119.QueryBasketBalanceRequest): _119.QueryBasketBalanceRequestAmino; + fromAminoMsg(object: _119.QueryBasketBalanceRequestAminoMsg): _119.QueryBasketBalanceRequest; + fromProtoMsg(message: _119.QueryBasketBalanceRequestProtoMsg): _119.QueryBasketBalanceRequest; + toProto(message: _119.QueryBasketBalanceRequest): Uint8Array; + toProtoMsg(message: _119.QueryBasketBalanceRequest): _119.QueryBasketBalanceRequestProtoMsg; }; QueryBasketBalanceResponse: { - encode(message: _118.QueryBasketBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketBalanceResponse; - fromJSON(object: any): _118.QueryBasketBalanceResponse; - toJSON(message: _118.QueryBasketBalanceResponse): unknown; - fromPartial(object: Partial<_118.QueryBasketBalanceResponse>): _118.QueryBasketBalanceResponse; - fromAmino(object: _118.QueryBasketBalanceResponseAmino): _118.QueryBasketBalanceResponse; - toAmino(message: _118.QueryBasketBalanceResponse): _118.QueryBasketBalanceResponseAmino; - fromAminoMsg(object: _118.QueryBasketBalanceResponseAminoMsg): _118.QueryBasketBalanceResponse; - fromProtoMsg(message: _118.QueryBasketBalanceResponseProtoMsg): _118.QueryBasketBalanceResponse; - toProto(message: _118.QueryBasketBalanceResponse): Uint8Array; - toProtoMsg(message: _118.QueryBasketBalanceResponse): _118.QueryBasketBalanceResponseProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalanceResponse; + fromJSON(object: any): _119.QueryBasketBalanceResponse; + toJSON(message: _119.QueryBasketBalanceResponse): unknown; + fromPartial(object: Partial<_119.QueryBasketBalanceResponse>): _119.QueryBasketBalanceResponse; + fromAmino(object: _119.QueryBasketBalanceResponseAmino): _119.QueryBasketBalanceResponse; + toAmino(message: _119.QueryBasketBalanceResponse): _119.QueryBasketBalanceResponseAmino; + fromAminoMsg(object: _119.QueryBasketBalanceResponseAminoMsg): _119.QueryBasketBalanceResponse; + fromProtoMsg(message: _119.QueryBasketBalanceResponseProtoMsg): _119.QueryBasketBalanceResponse; + toProto(message: _119.QueryBasketBalanceResponse): Uint8Array; + toProtoMsg(message: _119.QueryBasketBalanceResponse): _119.QueryBasketBalanceResponseProtoMsg; }; BasketInfo: { - encode(message: _118.BasketInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.BasketInfo; - fromJSON(object: any): _118.BasketInfo; - toJSON(message: _118.BasketInfo): unknown; - fromPartial(object: Partial<_118.BasketInfo>): _118.BasketInfo; - fromAmino(object: _118.BasketInfoAmino): _118.BasketInfo; - toAmino(message: _118.BasketInfo): _118.BasketInfoAmino; - fromAminoMsg(object: _118.BasketInfoAminoMsg): _118.BasketInfo; - fromProtoMsg(message: _118.BasketInfoProtoMsg): _118.BasketInfo; - toProto(message: _118.BasketInfo): Uint8Array; - toProtoMsg(message: _118.BasketInfo): _118.BasketInfoProtoMsg; + typeUrl: string; + encode(message: _119.BasketInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.BasketInfo; + fromJSON(object: any): _119.BasketInfo; + toJSON(message: _119.BasketInfo): unknown; + fromPartial(object: Partial<_119.BasketInfo>): _119.BasketInfo; + fromAmino(object: _119.BasketInfoAmino): _119.BasketInfo; + toAmino(message: _119.BasketInfo): _119.BasketInfoAmino; + fromAminoMsg(object: _119.BasketInfoAminoMsg): _119.BasketInfo; + fromProtoMsg(message: _119.BasketInfoProtoMsg): _119.BasketInfo; + toProto(message: _119.BasketInfo): Uint8Array; + toProtoMsg(message: _119.BasketInfo): _119.BasketInfoProtoMsg; }; BasketBalanceInfo: { - encode(message: _118.BasketBalanceInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.BasketBalanceInfo; - fromJSON(object: any): _118.BasketBalanceInfo; - toJSON(message: _118.BasketBalanceInfo): unknown; - fromPartial(object: Partial<_118.BasketBalanceInfo>): _118.BasketBalanceInfo; - fromAmino(object: _118.BasketBalanceInfoAmino): _118.BasketBalanceInfo; - toAmino(message: _118.BasketBalanceInfo): _118.BasketBalanceInfoAmino; - fromAminoMsg(object: _118.BasketBalanceInfoAminoMsg): _118.BasketBalanceInfo; - fromProtoMsg(message: _118.BasketBalanceInfoProtoMsg): _118.BasketBalanceInfo; - toProto(message: _118.BasketBalanceInfo): Uint8Array; - toProtoMsg(message: _118.BasketBalanceInfo): _118.BasketBalanceInfoProtoMsg; + typeUrl: string; + encode(message: _119.BasketBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.BasketBalanceInfo; + fromJSON(object: any): _119.BasketBalanceInfo; + toJSON(message: _119.BasketBalanceInfo): unknown; + fromPartial(object: Partial<_119.BasketBalanceInfo>): _119.BasketBalanceInfo; + fromAmino(object: _119.BasketBalanceInfoAmino): _119.BasketBalanceInfo; + toAmino(message: _119.BasketBalanceInfo): _119.BasketBalanceInfoAmino; + fromAminoMsg(object: _119.BasketBalanceInfoAminoMsg): _119.BasketBalanceInfo; + fromProtoMsg(message: _119.BasketBalanceInfoProtoMsg): _119.BasketBalanceInfo; + toProto(message: _119.BasketBalanceInfo): Uint8Array; + toProtoMsg(message: _119.BasketBalanceInfo): _119.BasketBalanceInfoProtoMsg; }; QueryBasketFeeRequest: { - encode(_: _118.QueryBasketFeeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketFeeRequest; - fromJSON(_: any): _118.QueryBasketFeeRequest; - toJSON(_: _118.QueryBasketFeeRequest): unknown; - fromPartial(_: Partial<_118.QueryBasketFeeRequest>): _118.QueryBasketFeeRequest; - fromAmino(_: _118.QueryBasketFeeRequestAmino): _118.QueryBasketFeeRequest; - toAmino(_: _118.QueryBasketFeeRequest): _118.QueryBasketFeeRequestAmino; - fromAminoMsg(object: _118.QueryBasketFeeRequestAminoMsg): _118.QueryBasketFeeRequest; - fromProtoMsg(message: _118.QueryBasketFeeRequestProtoMsg): _118.QueryBasketFeeRequest; - toProto(message: _118.QueryBasketFeeRequest): Uint8Array; - toProtoMsg(message: _118.QueryBasketFeeRequest): _118.QueryBasketFeeRequestProtoMsg; + typeUrl: string; + encode(_: _119.QueryBasketFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketFeeRequest; + fromJSON(_: any): _119.QueryBasketFeeRequest; + toJSON(_: _119.QueryBasketFeeRequest): unknown; + fromPartial(_: Partial<_119.QueryBasketFeeRequest>): _119.QueryBasketFeeRequest; + fromAmino(_: _119.QueryBasketFeeRequestAmino): _119.QueryBasketFeeRequest; + toAmino(_: _119.QueryBasketFeeRequest): _119.QueryBasketFeeRequestAmino; + fromAminoMsg(object: _119.QueryBasketFeeRequestAminoMsg): _119.QueryBasketFeeRequest; + fromProtoMsg(message: _119.QueryBasketFeeRequestProtoMsg): _119.QueryBasketFeeRequest; + toProto(message: _119.QueryBasketFeeRequest): Uint8Array; + toProtoMsg(message: _119.QueryBasketFeeRequest): _119.QueryBasketFeeRequestProtoMsg; }; QueryBasketFeeResponse: { - encode(message: _118.QueryBasketFeeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _118.QueryBasketFeeResponse; - fromJSON(object: any): _118.QueryBasketFeeResponse; - toJSON(message: _118.QueryBasketFeeResponse): unknown; - fromPartial(object: Partial<_118.QueryBasketFeeResponse>): _118.QueryBasketFeeResponse; - fromAmino(object: _118.QueryBasketFeeResponseAmino): _118.QueryBasketFeeResponse; - toAmino(message: _118.QueryBasketFeeResponse): _118.QueryBasketFeeResponseAmino; - fromAminoMsg(object: _118.QueryBasketFeeResponseAminoMsg): _118.QueryBasketFeeResponse; - fromProtoMsg(message: _118.QueryBasketFeeResponseProtoMsg): _118.QueryBasketFeeResponse; - toProto(message: _118.QueryBasketFeeResponse): Uint8Array; - toProtoMsg(message: _118.QueryBasketFeeResponse): _118.QueryBasketFeeResponseProtoMsg; + typeUrl: string; + encode(message: _119.QueryBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketFeeResponse; + fromJSON(object: any): _119.QueryBasketFeeResponse; + toJSON(message: _119.QueryBasketFeeResponse): unknown; + fromPartial(object: Partial<_119.QueryBasketFeeResponse>): _119.QueryBasketFeeResponse; + fromAmino(object: _119.QueryBasketFeeResponseAmino): _119.QueryBasketFeeResponse; + toAmino(message: _119.QueryBasketFeeResponse): _119.QueryBasketFeeResponseAmino; + fromAminoMsg(object: _119.QueryBasketFeeResponseAminoMsg): _119.QueryBasketFeeResponse; + fromProtoMsg(message: _119.QueryBasketFeeResponseProtoMsg): _119.QueryBasketFeeResponse; + toProto(message: _119.QueryBasketFeeResponse): Uint8Array; + toProtoMsg(message: _119.QueryBasketFeeResponse): _119.QueryBasketFeeResponseProtoMsg; }; EventCreate: { - encode(message: _117.EventCreate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _117.EventCreate; - fromJSON(object: any): _117.EventCreate; - toJSON(message: _117.EventCreate): unknown; - fromPartial(object: Partial<_117.EventCreate>): _117.EventCreate; - fromAmino(object: _117.EventCreateAmino): _117.EventCreate; - toAmino(message: _117.EventCreate): _117.EventCreateAmino; - fromAminoMsg(object: _117.EventCreateAminoMsg): _117.EventCreate; - fromProtoMsg(message: _117.EventCreateProtoMsg): _117.EventCreate; - toProto(message: _117.EventCreate): Uint8Array; - toProtoMsg(message: _117.EventCreate): _117.EventCreateProtoMsg; + typeUrl: string; + encode(message: _118.EventCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventCreate; + fromJSON(object: any): _118.EventCreate; + toJSON(message: _118.EventCreate): unknown; + fromPartial(object: Partial<_118.EventCreate>): _118.EventCreate; + fromAmino(object: _118.EventCreateAmino): _118.EventCreate; + toAmino(message: _118.EventCreate): _118.EventCreateAmino; + fromAminoMsg(object: _118.EventCreateAminoMsg): _118.EventCreate; + fromProtoMsg(message: _118.EventCreateProtoMsg): _118.EventCreate; + toProto(message: _118.EventCreate): Uint8Array; + toProtoMsg(message: _118.EventCreate): _118.EventCreateProtoMsg; }; EventPut: { - encode(message: _117.EventPut, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _117.EventPut; - fromJSON(object: any): _117.EventPut; - toJSON(message: _117.EventPut): unknown; - fromPartial(object: Partial<_117.EventPut>): _117.EventPut; - fromAmino(object: _117.EventPutAmino): _117.EventPut; - toAmino(message: _117.EventPut): _117.EventPutAmino; - fromAminoMsg(object: _117.EventPutAminoMsg): _117.EventPut; - fromProtoMsg(message: _117.EventPutProtoMsg): _117.EventPut; - toProto(message: _117.EventPut): Uint8Array; - toProtoMsg(message: _117.EventPut): _117.EventPutProtoMsg; + typeUrl: string; + encode(message: _118.EventPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventPut; + fromJSON(object: any): _118.EventPut; + toJSON(message: _118.EventPut): unknown; + fromPartial(object: Partial<_118.EventPut>): _118.EventPut; + fromAmino(object: _118.EventPutAmino): _118.EventPut; + toAmino(message: _118.EventPut): _118.EventPutAmino; + fromAminoMsg(object: _118.EventPutAminoMsg): _118.EventPut; + fromProtoMsg(message: _118.EventPutProtoMsg): _118.EventPut; + toProto(message: _118.EventPut): Uint8Array; + toProtoMsg(message: _118.EventPut): _118.EventPutProtoMsg; }; EventTake: { - encode(message: _117.EventTake, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _117.EventTake; - fromJSON(object: any): _117.EventTake; - toJSON(message: _117.EventTake): unknown; - fromPartial(object: Partial<_117.EventTake>): _117.EventTake; - fromAmino(object: _117.EventTakeAmino): _117.EventTake; - toAmino(message: _117.EventTake): _117.EventTakeAmino; - fromAminoMsg(object: _117.EventTakeAminoMsg): _117.EventTake; - fromProtoMsg(message: _117.EventTakeProtoMsg): _117.EventTake; - toProto(message: _117.EventTake): Uint8Array; - toProtoMsg(message: _117.EventTake): _117.EventTakeProtoMsg; + typeUrl: string; + encode(message: _118.EventTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventTake; + fromJSON(object: any): _118.EventTake; + toJSON(message: _118.EventTake): unknown; + fromPartial(object: Partial<_118.EventTake>): _118.EventTake; + fromAmino(object: _118.EventTakeAmino): _118.EventTake; + toAmino(message: _118.EventTake): _118.EventTakeAmino; + fromAminoMsg(object: _118.EventTakeAminoMsg): _118.EventTake; + fromProtoMsg(message: _118.EventTakeProtoMsg): _118.EventTake; + toProto(message: _118.EventTake): Uint8Array; + toProtoMsg(message: _118.EventTake): _118.EventTakeProtoMsg; }; EventUpdateCurator: { - encode(message: _117.EventUpdateCurator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _117.EventUpdateCurator; - fromJSON(object: any): _117.EventUpdateCurator; - toJSON(message: _117.EventUpdateCurator): unknown; - fromPartial(object: Partial<_117.EventUpdateCurator>): _117.EventUpdateCurator; - fromAmino(object: _117.EventUpdateCuratorAmino): _117.EventUpdateCurator; - toAmino(message: _117.EventUpdateCurator): _117.EventUpdateCuratorAmino; - fromAminoMsg(object: _117.EventUpdateCuratorAminoMsg): _117.EventUpdateCurator; - fromProtoMsg(message: _117.EventUpdateCuratorProtoMsg): _117.EventUpdateCurator; - toProto(message: _117.EventUpdateCurator): Uint8Array; - toProtoMsg(message: _117.EventUpdateCurator): _117.EventUpdateCuratorProtoMsg; + typeUrl: string; + encode(message: _118.EventUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventUpdateCurator; + fromJSON(object: any): _118.EventUpdateCurator; + toJSON(message: _118.EventUpdateCurator): unknown; + fromPartial(object: Partial<_118.EventUpdateCurator>): _118.EventUpdateCurator; + fromAmino(object: _118.EventUpdateCuratorAmino): _118.EventUpdateCurator; + toAmino(message: _118.EventUpdateCurator): _118.EventUpdateCuratorAmino; + fromAminoMsg(object: _118.EventUpdateCuratorAminoMsg): _118.EventUpdateCurator; + fromProtoMsg(message: _118.EventUpdateCuratorProtoMsg): _118.EventUpdateCurator; + toProto(message: _118.EventUpdateCurator): Uint8Array; + toProtoMsg(message: _118.EventUpdateCurator): _118.EventUpdateCuratorProtoMsg; }; EventUpdateDateCriteria: { - encode(message: _117.EventUpdateDateCriteria, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _117.EventUpdateDateCriteria; - fromJSON(object: any): _117.EventUpdateDateCriteria; - toJSON(message: _117.EventUpdateDateCriteria): unknown; - fromPartial(object: Partial<_117.EventUpdateDateCriteria>): _117.EventUpdateDateCriteria; - fromAmino(object: _117.EventUpdateDateCriteriaAmino): _117.EventUpdateDateCriteria; - toAmino(message: _117.EventUpdateDateCriteria): _117.EventUpdateDateCriteriaAmino; - fromAminoMsg(object: _117.EventUpdateDateCriteriaAminoMsg): _117.EventUpdateDateCriteria; - fromProtoMsg(message: _117.EventUpdateDateCriteriaProtoMsg): _117.EventUpdateDateCriteria; - toProto(message: _117.EventUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _117.EventUpdateDateCriteria): _117.EventUpdateDateCriteriaProtoMsg; + typeUrl: string; + encode(message: _118.EventUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventUpdateDateCriteria; + fromJSON(object: any): _118.EventUpdateDateCriteria; + toJSON(message: _118.EventUpdateDateCriteria): unknown; + fromPartial(object: Partial<_118.EventUpdateDateCriteria>): _118.EventUpdateDateCriteria; + fromAmino(object: _118.EventUpdateDateCriteriaAmino): _118.EventUpdateDateCriteria; + toAmino(message: _118.EventUpdateDateCriteria): _118.EventUpdateDateCriteriaAmino; + fromAminoMsg(object: _118.EventUpdateDateCriteriaAminoMsg): _118.EventUpdateDateCriteria; + fromProtoMsg(message: _118.EventUpdateDateCriteriaProtoMsg): _118.EventUpdateDateCriteria; + toProto(message: _118.EventUpdateDateCriteria): Uint8Array; + toProtoMsg(message: _118.EventUpdateDateCriteria): _118.EventUpdateDateCriteriaProtoMsg; }; }; } namespace marketplace { const v1: { - MsgClientImpl: typeof _266.MsgClientImpl; - QueryClientImpl: typeof _260.QueryClientImpl; + MsgClientImpl: typeof _267.MsgClientImpl; + QueryClientImpl: typeof _261.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - sellOrder(request: _123.QuerySellOrderRequest): Promise<_123.QuerySellOrderResponse>; - sellOrders(request?: _123.QuerySellOrdersRequest | undefined): Promise<_123.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _123.QuerySellOrdersByBatchRequest): Promise<_123.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _123.QuerySellOrdersBySellerRequest): Promise<_123.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _123.QueryAllowedDenomsRequest | undefined): Promise<_123.QueryAllowedDenomsResponse>; + sellOrder(request: _124.QuerySellOrderRequest): Promise<_124.QuerySellOrderResponse>; + sellOrders(request?: _124.QuerySellOrdersRequest | undefined): Promise<_124.QuerySellOrdersResponse>; + sellOrdersByBatch(request: _124.QuerySellOrdersByBatchRequest): Promise<_124.QuerySellOrdersByBatchResponse>; + sellOrdersBySeller(request: _124.QuerySellOrdersBySellerRequest): Promise<_124.QuerySellOrdersBySellerResponse>; + allowedDenoms(request?: _124.QueryAllowedDenomsRequest | undefined): Promise<_124.QueryAllowedDenomsResponse>; }; - LCDQueryClient: typeof _254.LCDQueryClient; + LCDQueryClient: typeof _255.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - sell(value: _125.MsgSell): { + sell(value: _126.MsgSell): { typeUrl: string; value: Uint8Array; }; - updateSellOrders(value: _125.MsgUpdateSellOrders): { + updateSellOrders(value: _126.MsgUpdateSellOrders): { typeUrl: string; value: Uint8Array; }; - cancelSellOrder(value: _125.MsgCancelSellOrder): { + cancelSellOrder(value: _126.MsgCancelSellOrder): { typeUrl: string; value: Uint8Array; }; - buyDirect(value: _125.MsgBuyDirect): { + buyDirect(value: _126.MsgBuyDirect): { typeUrl: string; value: Uint8Array; }; - addAllowedDenom(value: _125.MsgAddAllowedDenom): { + addAllowedDenom(value: _126.MsgAddAllowedDenom): { typeUrl: string; value: Uint8Array; }; - removeAllowedDenom(value: _125.MsgRemoveAllowedDenom): { + removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - sell(value: _125.MsgSell): { + sell(value: _126.MsgSell): { typeUrl: string; - value: _125.MsgSell; + value: _126.MsgSell; }; - updateSellOrders(value: _125.MsgUpdateSellOrders): { + updateSellOrders(value: _126.MsgUpdateSellOrders): { typeUrl: string; - value: _125.MsgUpdateSellOrders; + value: _126.MsgUpdateSellOrders; }; - cancelSellOrder(value: _125.MsgCancelSellOrder): { + cancelSellOrder(value: _126.MsgCancelSellOrder): { typeUrl: string; - value: _125.MsgCancelSellOrder; + value: _126.MsgCancelSellOrder; }; - buyDirect(value: _125.MsgBuyDirect): { + buyDirect(value: _126.MsgBuyDirect): { typeUrl: string; - value: _125.MsgBuyDirect; + value: _126.MsgBuyDirect; }; - addAllowedDenom(value: _125.MsgAddAllowedDenom): { + addAllowedDenom(value: _126.MsgAddAllowedDenom): { typeUrl: string; - value: _125.MsgAddAllowedDenom; + value: _126.MsgAddAllowedDenom; }; - removeAllowedDenom(value: _125.MsgRemoveAllowedDenom): { + removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { typeUrl: string; - value: _125.MsgRemoveAllowedDenom; + value: _126.MsgRemoveAllowedDenom; }; }; toJSON: { - sell(value: _125.MsgSell): { + sell(value: _126.MsgSell): { typeUrl: string; value: unknown; }; - updateSellOrders(value: _125.MsgUpdateSellOrders): { + updateSellOrders(value: _126.MsgUpdateSellOrders): { typeUrl: string; value: unknown; }; - cancelSellOrder(value: _125.MsgCancelSellOrder): { + cancelSellOrder(value: _126.MsgCancelSellOrder): { typeUrl: string; value: unknown; }; - buyDirect(value: _125.MsgBuyDirect): { + buyDirect(value: _126.MsgBuyDirect): { typeUrl: string; value: unknown; }; - addAllowedDenom(value: _125.MsgAddAllowedDenom): { + addAllowedDenom(value: _126.MsgAddAllowedDenom): { typeUrl: string; value: unknown; }; - removeAllowedDenom(value: _125.MsgRemoveAllowedDenom): { + removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { typeUrl: string; value: unknown; }; @@ -1541,933 +1622,973 @@ export declare namespace regen { fromJSON: { sell(value: any): { typeUrl: string; - value: _125.MsgSell; + value: _126.MsgSell; }; updateSellOrders(value: any): { typeUrl: string; - value: _125.MsgUpdateSellOrders; + value: _126.MsgUpdateSellOrders; }; cancelSellOrder(value: any): { typeUrl: string; - value: _125.MsgCancelSellOrder; + value: _126.MsgCancelSellOrder; }; buyDirect(value: any): { typeUrl: string; - value: _125.MsgBuyDirect; + value: _126.MsgBuyDirect; }; addAllowedDenom(value: any): { typeUrl: string; - value: _125.MsgAddAllowedDenom; + value: _126.MsgAddAllowedDenom; }; removeAllowedDenom(value: any): { typeUrl: string; - value: _125.MsgRemoveAllowedDenom; + value: _126.MsgRemoveAllowedDenom; }; }; fromPartial: { - sell(value: _125.MsgSell): { + sell(value: _126.MsgSell): { typeUrl: string; - value: _125.MsgSell; + value: _126.MsgSell; }; - updateSellOrders(value: _125.MsgUpdateSellOrders): { + updateSellOrders(value: _126.MsgUpdateSellOrders): { typeUrl: string; - value: _125.MsgUpdateSellOrders; + value: _126.MsgUpdateSellOrders; }; - cancelSellOrder(value: _125.MsgCancelSellOrder): { + cancelSellOrder(value: _126.MsgCancelSellOrder): { typeUrl: string; - value: _125.MsgCancelSellOrder; + value: _126.MsgCancelSellOrder; }; - buyDirect(value: _125.MsgBuyDirect): { + buyDirect(value: _126.MsgBuyDirect): { typeUrl: string; - value: _125.MsgBuyDirect; + value: _126.MsgBuyDirect; }; - addAllowedDenom(value: _125.MsgAddAllowedDenom): { + addAllowedDenom(value: _126.MsgAddAllowedDenom): { typeUrl: string; - value: _125.MsgAddAllowedDenom; + value: _126.MsgAddAllowedDenom; }; - removeAllowedDenom(value: _125.MsgRemoveAllowedDenom): { + removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { typeUrl: string; - value: _125.MsgRemoveAllowedDenom; + value: _126.MsgRemoveAllowedDenom; }; }; }; AminoConverter: { "/regen.ecocredit.marketplace.v1.MsgSell": { aminoType: string; - toAmino: (message: _125.MsgSell) => _125.MsgSellAmino; - fromAmino: (object: _125.MsgSellAmino) => _125.MsgSell; + toAmino: (message: _126.MsgSell) => _126.MsgSellAmino; + fromAmino: (object: _126.MsgSellAmino) => _126.MsgSell; }; "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { aminoType: string; - toAmino: (message: _125.MsgUpdateSellOrders) => _125.MsgUpdateSellOrdersAmino; - fromAmino: (object: _125.MsgUpdateSellOrdersAmino) => _125.MsgUpdateSellOrders; + toAmino: (message: _126.MsgUpdateSellOrders) => _126.MsgUpdateSellOrdersAmino; + fromAmino: (object: _126.MsgUpdateSellOrdersAmino) => _126.MsgUpdateSellOrders; }; "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { aminoType: string; - toAmino: (message: _125.MsgCancelSellOrder) => _125.MsgCancelSellOrderAmino; - fromAmino: (object: _125.MsgCancelSellOrderAmino) => _125.MsgCancelSellOrder; + toAmino: (message: _126.MsgCancelSellOrder) => _126.MsgCancelSellOrderAmino; + fromAmino: (object: _126.MsgCancelSellOrderAmino) => _126.MsgCancelSellOrder; }; "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { aminoType: string; - toAmino: (message: _125.MsgBuyDirect) => _125.MsgBuyDirectAmino; - fromAmino: (object: _125.MsgBuyDirectAmino) => _125.MsgBuyDirect; + toAmino: (message: _126.MsgBuyDirect) => _126.MsgBuyDirectAmino; + fromAmino: (object: _126.MsgBuyDirectAmino) => _126.MsgBuyDirect; }; "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { aminoType: string; - toAmino: (message: _125.MsgAddAllowedDenom) => _125.MsgAddAllowedDenomAmino; - fromAmino: (object: _125.MsgAddAllowedDenomAmino) => _125.MsgAddAllowedDenom; + toAmino: (message: _126.MsgAddAllowedDenom) => _126.MsgAddAllowedDenomAmino; + fromAmino: (object: _126.MsgAddAllowedDenomAmino) => _126.MsgAddAllowedDenom; }; "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { aminoType: string; - toAmino: (message: _125.MsgRemoveAllowedDenom) => _125.MsgRemoveAllowedDenomAmino; - fromAmino: (object: _125.MsgRemoveAllowedDenomAmino) => _125.MsgRemoveAllowedDenom; + toAmino: (message: _126.MsgRemoveAllowedDenom) => _126.MsgRemoveAllowedDenomAmino; + fromAmino: (object: _126.MsgRemoveAllowedDenomAmino) => _126.MsgRemoveAllowedDenom; }; }; AllowDenomProposal: { - encode(message: _126.AllowDenomProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _126.AllowDenomProposal; - fromJSON(object: any): _126.AllowDenomProposal; - toJSON(message: _126.AllowDenomProposal): unknown; - fromPartial(object: Partial<_126.AllowDenomProposal>): _126.AllowDenomProposal; - fromAmino(object: _126.AllowDenomProposalAmino): _126.AllowDenomProposal; - toAmino(message: _126.AllowDenomProposal): _126.AllowDenomProposalAmino; - fromAminoMsg(object: _126.AllowDenomProposalAminoMsg): _126.AllowDenomProposal; - fromProtoMsg(message: _126.AllowDenomProposalProtoMsg): _126.AllowDenomProposal; - toProto(message: _126.AllowDenomProposal): Uint8Array; - toProtoMsg(message: _126.AllowDenomProposal): _126.AllowDenomProposalProtoMsg; + typeUrl: string; + encode(message: _127.AllowDenomProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _127.AllowDenomProposal; + fromJSON(object: any): _127.AllowDenomProposal; + toJSON(message: _127.AllowDenomProposal): unknown; + fromPartial(object: Partial<_127.AllowDenomProposal>): _127.AllowDenomProposal; + fromAmino(object: _127.AllowDenomProposalAmino): _127.AllowDenomProposal; + toAmino(message: _127.AllowDenomProposal): _127.AllowDenomProposalAmino; + fromAminoMsg(object: _127.AllowDenomProposalAminoMsg): _127.AllowDenomProposal; + fromProtoMsg(message: _127.AllowDenomProposalProtoMsg): _127.AllowDenomProposal; + toProto(message: _127.AllowDenomProposal): Uint8Array; + toProtoMsg(message: _127.AllowDenomProposal): _127.AllowDenomProposalProtoMsg; }; MsgSell: { - encode(message: _125.MsgSell, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgSell; - fromJSON(object: any): _125.MsgSell; - toJSON(message: _125.MsgSell): unknown; - fromPartial(object: Partial<_125.MsgSell>): _125.MsgSell; - fromAmino(object: _125.MsgSellAmino): _125.MsgSell; - toAmino(message: _125.MsgSell): _125.MsgSellAmino; - fromAminoMsg(object: _125.MsgSellAminoMsg): _125.MsgSell; - toAminoMsg(message: _125.MsgSell): _125.MsgSellAminoMsg; - fromProtoMsg(message: _125.MsgSellProtoMsg): _125.MsgSell; - toProto(message: _125.MsgSell): Uint8Array; - toProtoMsg(message: _125.MsgSell): _125.MsgSellProtoMsg; + typeUrl: string; + encode(message: _126.MsgSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSell; + fromJSON(object: any): _126.MsgSell; + toJSON(message: _126.MsgSell): unknown; + fromPartial(object: Partial<_126.MsgSell>): _126.MsgSell; + fromAmino(object: _126.MsgSellAmino): _126.MsgSell; + toAmino(message: _126.MsgSell): _126.MsgSellAmino; + fromAminoMsg(object: _126.MsgSellAminoMsg): _126.MsgSell; + toAminoMsg(message: _126.MsgSell): _126.MsgSellAminoMsg; + fromProtoMsg(message: _126.MsgSellProtoMsg): _126.MsgSell; + toProto(message: _126.MsgSell): Uint8Array; + toProtoMsg(message: _126.MsgSell): _126.MsgSellProtoMsg; }; MsgSell_Order: { - encode(message: _125.MsgSell_Order, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgSell_Order; - fromJSON(object: any): _125.MsgSell_Order; - toJSON(message: _125.MsgSell_Order): unknown; - fromPartial(object: Partial<_125.MsgSell_Order>): _125.MsgSell_Order; - fromAmino(object: _125.MsgSell_OrderAmino): _125.MsgSell_Order; - toAmino(message: _125.MsgSell_Order): _125.MsgSell_OrderAmino; - fromAminoMsg(object: _125.MsgSell_OrderAminoMsg): _125.MsgSell_Order; - fromProtoMsg(message: _125.MsgSell_OrderProtoMsg): _125.MsgSell_Order; - toProto(message: _125.MsgSell_Order): Uint8Array; - toProtoMsg(message: _125.MsgSell_Order): _125.MsgSell_OrderProtoMsg; + typeUrl: string; + encode(message: _126.MsgSell_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSell_Order; + fromJSON(object: any): _126.MsgSell_Order; + toJSON(message: _126.MsgSell_Order): unknown; + fromPartial(object: Partial<_126.MsgSell_Order>): _126.MsgSell_Order; + fromAmino(object: _126.MsgSell_OrderAmino): _126.MsgSell_Order; + toAmino(message: _126.MsgSell_Order): _126.MsgSell_OrderAmino; + fromAminoMsg(object: _126.MsgSell_OrderAminoMsg): _126.MsgSell_Order; + fromProtoMsg(message: _126.MsgSell_OrderProtoMsg): _126.MsgSell_Order; + toProto(message: _126.MsgSell_Order): Uint8Array; + toProtoMsg(message: _126.MsgSell_Order): _126.MsgSell_OrderProtoMsg; }; MsgSellResponse: { - encode(message: _125.MsgSellResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgSellResponse; - fromJSON(object: any): _125.MsgSellResponse; - toJSON(message: _125.MsgSellResponse): unknown; - fromPartial(object: Partial<_125.MsgSellResponse>): _125.MsgSellResponse; - fromAmino(object: _125.MsgSellResponseAmino): _125.MsgSellResponse; - toAmino(message: _125.MsgSellResponse): _125.MsgSellResponseAmino; - fromAminoMsg(object: _125.MsgSellResponseAminoMsg): _125.MsgSellResponse; - fromProtoMsg(message: _125.MsgSellResponseProtoMsg): _125.MsgSellResponse; - toProto(message: _125.MsgSellResponse): Uint8Array; - toProtoMsg(message: _125.MsgSellResponse): _125.MsgSellResponseProtoMsg; + typeUrl: string; + encode(message: _126.MsgSellResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSellResponse; + fromJSON(object: any): _126.MsgSellResponse; + toJSON(message: _126.MsgSellResponse): unknown; + fromPartial(object: Partial<_126.MsgSellResponse>): _126.MsgSellResponse; + fromAmino(object: _126.MsgSellResponseAmino): _126.MsgSellResponse; + toAmino(message: _126.MsgSellResponse): _126.MsgSellResponseAmino; + fromAminoMsg(object: _126.MsgSellResponseAminoMsg): _126.MsgSellResponse; + fromProtoMsg(message: _126.MsgSellResponseProtoMsg): _126.MsgSellResponse; + toProto(message: _126.MsgSellResponse): Uint8Array; + toProtoMsg(message: _126.MsgSellResponse): _126.MsgSellResponseProtoMsg; }; MsgUpdateSellOrders: { - encode(message: _125.MsgUpdateSellOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgUpdateSellOrders; - fromJSON(object: any): _125.MsgUpdateSellOrders; - toJSON(message: _125.MsgUpdateSellOrders): unknown; - fromPartial(object: Partial<_125.MsgUpdateSellOrders>): _125.MsgUpdateSellOrders; - fromAmino(object: _125.MsgUpdateSellOrdersAmino): _125.MsgUpdateSellOrders; - toAmino(message: _125.MsgUpdateSellOrders): _125.MsgUpdateSellOrdersAmino; - fromAminoMsg(object: _125.MsgUpdateSellOrdersAminoMsg): _125.MsgUpdateSellOrders; - toAminoMsg(message: _125.MsgUpdateSellOrders): _125.MsgUpdateSellOrdersAminoMsg; - fromProtoMsg(message: _125.MsgUpdateSellOrdersProtoMsg): _125.MsgUpdateSellOrders; - toProto(message: _125.MsgUpdateSellOrders): Uint8Array; - toProtoMsg(message: _125.MsgUpdateSellOrders): _125.MsgUpdateSellOrdersProtoMsg; + typeUrl: string; + encode(message: _126.MsgUpdateSellOrders, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrders; + fromJSON(object: any): _126.MsgUpdateSellOrders; + toJSON(message: _126.MsgUpdateSellOrders): unknown; + fromPartial(object: Partial<_126.MsgUpdateSellOrders>): _126.MsgUpdateSellOrders; + fromAmino(object: _126.MsgUpdateSellOrdersAmino): _126.MsgUpdateSellOrders; + toAmino(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersAmino; + fromAminoMsg(object: _126.MsgUpdateSellOrdersAminoMsg): _126.MsgUpdateSellOrders; + toAminoMsg(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersAminoMsg; + fromProtoMsg(message: _126.MsgUpdateSellOrdersProtoMsg): _126.MsgUpdateSellOrders; + toProto(message: _126.MsgUpdateSellOrders): Uint8Array; + toProtoMsg(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersProtoMsg; }; MsgUpdateSellOrders_Update: { - encode(message: _125.MsgUpdateSellOrders_Update, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgUpdateSellOrders_Update; - fromJSON(object: any): _125.MsgUpdateSellOrders_Update; - toJSON(message: _125.MsgUpdateSellOrders_Update): unknown; - fromPartial(object: Partial<_125.MsgUpdateSellOrders_Update>): _125.MsgUpdateSellOrders_Update; - fromAmino(object: _125.MsgUpdateSellOrders_UpdateAmino): _125.MsgUpdateSellOrders_Update; - toAmino(message: _125.MsgUpdateSellOrders_Update): _125.MsgUpdateSellOrders_UpdateAmino; - fromAminoMsg(object: _125.MsgUpdateSellOrders_UpdateAminoMsg): _125.MsgUpdateSellOrders_Update; - fromProtoMsg(message: _125.MsgUpdateSellOrders_UpdateProtoMsg): _125.MsgUpdateSellOrders_Update; - toProto(message: _125.MsgUpdateSellOrders_Update): Uint8Array; - toProtoMsg(message: _125.MsgUpdateSellOrders_Update): _125.MsgUpdateSellOrders_UpdateProtoMsg; + typeUrl: string; + encode(message: _126.MsgUpdateSellOrders_Update, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrders_Update; + fromJSON(object: any): _126.MsgUpdateSellOrders_Update; + toJSON(message: _126.MsgUpdateSellOrders_Update): unknown; + fromPartial(object: Partial<_126.MsgUpdateSellOrders_Update>): _126.MsgUpdateSellOrders_Update; + fromAmino(object: _126.MsgUpdateSellOrders_UpdateAmino): _126.MsgUpdateSellOrders_Update; + toAmino(message: _126.MsgUpdateSellOrders_Update): _126.MsgUpdateSellOrders_UpdateAmino; + fromAminoMsg(object: _126.MsgUpdateSellOrders_UpdateAminoMsg): _126.MsgUpdateSellOrders_Update; + fromProtoMsg(message: _126.MsgUpdateSellOrders_UpdateProtoMsg): _126.MsgUpdateSellOrders_Update; + toProto(message: _126.MsgUpdateSellOrders_Update): Uint8Array; + toProtoMsg(message: _126.MsgUpdateSellOrders_Update): _126.MsgUpdateSellOrders_UpdateProtoMsg; }; MsgUpdateSellOrdersResponse: { - encode(_: _125.MsgUpdateSellOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgUpdateSellOrdersResponse; - fromJSON(_: any): _125.MsgUpdateSellOrdersResponse; - toJSON(_: _125.MsgUpdateSellOrdersResponse): unknown; - fromPartial(_: Partial<_125.MsgUpdateSellOrdersResponse>): _125.MsgUpdateSellOrdersResponse; - fromAmino(_: _125.MsgUpdateSellOrdersResponseAmino): _125.MsgUpdateSellOrdersResponse; - toAmino(_: _125.MsgUpdateSellOrdersResponse): _125.MsgUpdateSellOrdersResponseAmino; - fromAminoMsg(object: _125.MsgUpdateSellOrdersResponseAminoMsg): _125.MsgUpdateSellOrdersResponse; - fromProtoMsg(message: _125.MsgUpdateSellOrdersResponseProtoMsg): _125.MsgUpdateSellOrdersResponse; - toProto(message: _125.MsgUpdateSellOrdersResponse): Uint8Array; - toProtoMsg(message: _125.MsgUpdateSellOrdersResponse): _125.MsgUpdateSellOrdersResponseProtoMsg; + typeUrl: string; + encode(_: _126.MsgUpdateSellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrdersResponse; + fromJSON(_: any): _126.MsgUpdateSellOrdersResponse; + toJSON(_: _126.MsgUpdateSellOrdersResponse): unknown; + fromPartial(_: Partial<_126.MsgUpdateSellOrdersResponse>): _126.MsgUpdateSellOrdersResponse; + fromAmino(_: _126.MsgUpdateSellOrdersResponseAmino): _126.MsgUpdateSellOrdersResponse; + toAmino(_: _126.MsgUpdateSellOrdersResponse): _126.MsgUpdateSellOrdersResponseAmino; + fromAminoMsg(object: _126.MsgUpdateSellOrdersResponseAminoMsg): _126.MsgUpdateSellOrdersResponse; + fromProtoMsg(message: _126.MsgUpdateSellOrdersResponseProtoMsg): _126.MsgUpdateSellOrdersResponse; + toProto(message: _126.MsgUpdateSellOrdersResponse): Uint8Array; + toProtoMsg(message: _126.MsgUpdateSellOrdersResponse): _126.MsgUpdateSellOrdersResponseProtoMsg; }; MsgCancelSellOrder: { - encode(message: _125.MsgCancelSellOrder, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgCancelSellOrder; - fromJSON(object: any): _125.MsgCancelSellOrder; - toJSON(message: _125.MsgCancelSellOrder): unknown; - fromPartial(object: Partial<_125.MsgCancelSellOrder>): _125.MsgCancelSellOrder; - fromAmino(object: _125.MsgCancelSellOrderAmino): _125.MsgCancelSellOrder; - toAmino(message: _125.MsgCancelSellOrder): _125.MsgCancelSellOrderAmino; - fromAminoMsg(object: _125.MsgCancelSellOrderAminoMsg): _125.MsgCancelSellOrder; - toAminoMsg(message: _125.MsgCancelSellOrder): _125.MsgCancelSellOrderAminoMsg; - fromProtoMsg(message: _125.MsgCancelSellOrderProtoMsg): _125.MsgCancelSellOrder; - toProto(message: _125.MsgCancelSellOrder): Uint8Array; - toProtoMsg(message: _125.MsgCancelSellOrder): _125.MsgCancelSellOrderProtoMsg; + typeUrl: string; + encode(message: _126.MsgCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgCancelSellOrder; + fromJSON(object: any): _126.MsgCancelSellOrder; + toJSON(message: _126.MsgCancelSellOrder): unknown; + fromPartial(object: Partial<_126.MsgCancelSellOrder>): _126.MsgCancelSellOrder; + fromAmino(object: _126.MsgCancelSellOrderAmino): _126.MsgCancelSellOrder; + toAmino(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderAmino; + fromAminoMsg(object: _126.MsgCancelSellOrderAminoMsg): _126.MsgCancelSellOrder; + toAminoMsg(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderAminoMsg; + fromProtoMsg(message: _126.MsgCancelSellOrderProtoMsg): _126.MsgCancelSellOrder; + toProto(message: _126.MsgCancelSellOrder): Uint8Array; + toProtoMsg(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderProtoMsg; }; MsgCancelSellOrderResponse: { - encode(_: _125.MsgCancelSellOrderResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgCancelSellOrderResponse; - fromJSON(_: any): _125.MsgCancelSellOrderResponse; - toJSON(_: _125.MsgCancelSellOrderResponse): unknown; - fromPartial(_: Partial<_125.MsgCancelSellOrderResponse>): _125.MsgCancelSellOrderResponse; - fromAmino(_: _125.MsgCancelSellOrderResponseAmino): _125.MsgCancelSellOrderResponse; - toAmino(_: _125.MsgCancelSellOrderResponse): _125.MsgCancelSellOrderResponseAmino; - fromAminoMsg(object: _125.MsgCancelSellOrderResponseAminoMsg): _125.MsgCancelSellOrderResponse; - fromProtoMsg(message: _125.MsgCancelSellOrderResponseProtoMsg): _125.MsgCancelSellOrderResponse; - toProto(message: _125.MsgCancelSellOrderResponse): Uint8Array; - toProtoMsg(message: _125.MsgCancelSellOrderResponse): _125.MsgCancelSellOrderResponseProtoMsg; + typeUrl: string; + encode(_: _126.MsgCancelSellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgCancelSellOrderResponse; + fromJSON(_: any): _126.MsgCancelSellOrderResponse; + toJSON(_: _126.MsgCancelSellOrderResponse): unknown; + fromPartial(_: Partial<_126.MsgCancelSellOrderResponse>): _126.MsgCancelSellOrderResponse; + fromAmino(_: _126.MsgCancelSellOrderResponseAmino): _126.MsgCancelSellOrderResponse; + toAmino(_: _126.MsgCancelSellOrderResponse): _126.MsgCancelSellOrderResponseAmino; + fromAminoMsg(object: _126.MsgCancelSellOrderResponseAminoMsg): _126.MsgCancelSellOrderResponse; + fromProtoMsg(message: _126.MsgCancelSellOrderResponseProtoMsg): _126.MsgCancelSellOrderResponse; + toProto(message: _126.MsgCancelSellOrderResponse): Uint8Array; + toProtoMsg(message: _126.MsgCancelSellOrderResponse): _126.MsgCancelSellOrderResponseProtoMsg; }; MsgBuyDirect: { - encode(message: _125.MsgBuyDirect, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgBuyDirect; - fromJSON(object: any): _125.MsgBuyDirect; - toJSON(message: _125.MsgBuyDirect): unknown; - fromPartial(object: Partial<_125.MsgBuyDirect>): _125.MsgBuyDirect; - fromAmino(object: _125.MsgBuyDirectAmino): _125.MsgBuyDirect; - toAmino(message: _125.MsgBuyDirect): _125.MsgBuyDirectAmino; - fromAminoMsg(object: _125.MsgBuyDirectAminoMsg): _125.MsgBuyDirect; - toAminoMsg(message: _125.MsgBuyDirect): _125.MsgBuyDirectAminoMsg; - fromProtoMsg(message: _125.MsgBuyDirectProtoMsg): _125.MsgBuyDirect; - toProto(message: _125.MsgBuyDirect): Uint8Array; - toProtoMsg(message: _125.MsgBuyDirect): _125.MsgBuyDirectProtoMsg; + typeUrl: string; + encode(message: _126.MsgBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirect; + fromJSON(object: any): _126.MsgBuyDirect; + toJSON(message: _126.MsgBuyDirect): unknown; + fromPartial(object: Partial<_126.MsgBuyDirect>): _126.MsgBuyDirect; + fromAmino(object: _126.MsgBuyDirectAmino): _126.MsgBuyDirect; + toAmino(message: _126.MsgBuyDirect): _126.MsgBuyDirectAmino; + fromAminoMsg(object: _126.MsgBuyDirectAminoMsg): _126.MsgBuyDirect; + toAminoMsg(message: _126.MsgBuyDirect): _126.MsgBuyDirectAminoMsg; + fromProtoMsg(message: _126.MsgBuyDirectProtoMsg): _126.MsgBuyDirect; + toProto(message: _126.MsgBuyDirect): Uint8Array; + toProtoMsg(message: _126.MsgBuyDirect): _126.MsgBuyDirectProtoMsg; }; MsgBuyDirect_Order: { - encode(message: _125.MsgBuyDirect_Order, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgBuyDirect_Order; - fromJSON(object: any): _125.MsgBuyDirect_Order; - toJSON(message: _125.MsgBuyDirect_Order): unknown; - fromPartial(object: Partial<_125.MsgBuyDirect_Order>): _125.MsgBuyDirect_Order; - fromAmino(object: _125.MsgBuyDirect_OrderAmino): _125.MsgBuyDirect_Order; - toAmino(message: _125.MsgBuyDirect_Order): _125.MsgBuyDirect_OrderAmino; - fromAminoMsg(object: _125.MsgBuyDirect_OrderAminoMsg): _125.MsgBuyDirect_Order; - fromProtoMsg(message: _125.MsgBuyDirect_OrderProtoMsg): _125.MsgBuyDirect_Order; - toProto(message: _125.MsgBuyDirect_Order): Uint8Array; - toProtoMsg(message: _125.MsgBuyDirect_Order): _125.MsgBuyDirect_OrderProtoMsg; + typeUrl: string; + encode(message: _126.MsgBuyDirect_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirect_Order; + fromJSON(object: any): _126.MsgBuyDirect_Order; + toJSON(message: _126.MsgBuyDirect_Order): unknown; + fromPartial(object: Partial<_126.MsgBuyDirect_Order>): _126.MsgBuyDirect_Order; + fromAmino(object: _126.MsgBuyDirect_OrderAmino): _126.MsgBuyDirect_Order; + toAmino(message: _126.MsgBuyDirect_Order): _126.MsgBuyDirect_OrderAmino; + fromAminoMsg(object: _126.MsgBuyDirect_OrderAminoMsg): _126.MsgBuyDirect_Order; + fromProtoMsg(message: _126.MsgBuyDirect_OrderProtoMsg): _126.MsgBuyDirect_Order; + toProto(message: _126.MsgBuyDirect_Order): Uint8Array; + toProtoMsg(message: _126.MsgBuyDirect_Order): _126.MsgBuyDirect_OrderProtoMsg; }; MsgBuyDirectResponse: { - encode(_: _125.MsgBuyDirectResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgBuyDirectResponse; - fromJSON(_: any): _125.MsgBuyDirectResponse; - toJSON(_: _125.MsgBuyDirectResponse): unknown; - fromPartial(_: Partial<_125.MsgBuyDirectResponse>): _125.MsgBuyDirectResponse; - fromAmino(_: _125.MsgBuyDirectResponseAmino): _125.MsgBuyDirectResponse; - toAmino(_: _125.MsgBuyDirectResponse): _125.MsgBuyDirectResponseAmino; - fromAminoMsg(object: _125.MsgBuyDirectResponseAminoMsg): _125.MsgBuyDirectResponse; - fromProtoMsg(message: _125.MsgBuyDirectResponseProtoMsg): _125.MsgBuyDirectResponse; - toProto(message: _125.MsgBuyDirectResponse): Uint8Array; - toProtoMsg(message: _125.MsgBuyDirectResponse): _125.MsgBuyDirectResponseProtoMsg; + typeUrl: string; + encode(_: _126.MsgBuyDirectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirectResponse; + fromJSON(_: any): _126.MsgBuyDirectResponse; + toJSON(_: _126.MsgBuyDirectResponse): unknown; + fromPartial(_: Partial<_126.MsgBuyDirectResponse>): _126.MsgBuyDirectResponse; + fromAmino(_: _126.MsgBuyDirectResponseAmino): _126.MsgBuyDirectResponse; + toAmino(_: _126.MsgBuyDirectResponse): _126.MsgBuyDirectResponseAmino; + fromAminoMsg(object: _126.MsgBuyDirectResponseAminoMsg): _126.MsgBuyDirectResponse; + fromProtoMsg(message: _126.MsgBuyDirectResponseProtoMsg): _126.MsgBuyDirectResponse; + toProto(message: _126.MsgBuyDirectResponse): Uint8Array; + toProtoMsg(message: _126.MsgBuyDirectResponse): _126.MsgBuyDirectResponseProtoMsg; }; MsgAddAllowedDenom: { - encode(message: _125.MsgAddAllowedDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgAddAllowedDenom; - fromJSON(object: any): _125.MsgAddAllowedDenom; - toJSON(message: _125.MsgAddAllowedDenom): unknown; - fromPartial(object: Partial<_125.MsgAddAllowedDenom>): _125.MsgAddAllowedDenom; - fromAmino(object: _125.MsgAddAllowedDenomAmino): _125.MsgAddAllowedDenom; - toAmino(message: _125.MsgAddAllowedDenom): _125.MsgAddAllowedDenomAmino; - fromAminoMsg(object: _125.MsgAddAllowedDenomAminoMsg): _125.MsgAddAllowedDenom; - toAminoMsg(message: _125.MsgAddAllowedDenom): _125.MsgAddAllowedDenomAminoMsg; - fromProtoMsg(message: _125.MsgAddAllowedDenomProtoMsg): _125.MsgAddAllowedDenom; - toProto(message: _125.MsgAddAllowedDenom): Uint8Array; - toProtoMsg(message: _125.MsgAddAllowedDenom): _125.MsgAddAllowedDenomProtoMsg; + typeUrl: string; + encode(message: _126.MsgAddAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgAddAllowedDenom; + fromJSON(object: any): _126.MsgAddAllowedDenom; + toJSON(message: _126.MsgAddAllowedDenom): unknown; + fromPartial(object: Partial<_126.MsgAddAllowedDenom>): _126.MsgAddAllowedDenom; + fromAmino(object: _126.MsgAddAllowedDenomAmino): _126.MsgAddAllowedDenom; + toAmino(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomAmino; + fromAminoMsg(object: _126.MsgAddAllowedDenomAminoMsg): _126.MsgAddAllowedDenom; + toAminoMsg(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomAminoMsg; + fromProtoMsg(message: _126.MsgAddAllowedDenomProtoMsg): _126.MsgAddAllowedDenom; + toProto(message: _126.MsgAddAllowedDenom): Uint8Array; + toProtoMsg(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomProtoMsg; }; MsgAddAllowedDenomResponse: { - encode(_: _125.MsgAddAllowedDenomResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgAddAllowedDenomResponse; - fromJSON(_: any): _125.MsgAddAllowedDenomResponse; - toJSON(_: _125.MsgAddAllowedDenomResponse): unknown; - fromPartial(_: Partial<_125.MsgAddAllowedDenomResponse>): _125.MsgAddAllowedDenomResponse; - fromAmino(_: _125.MsgAddAllowedDenomResponseAmino): _125.MsgAddAllowedDenomResponse; - toAmino(_: _125.MsgAddAllowedDenomResponse): _125.MsgAddAllowedDenomResponseAmino; - fromAminoMsg(object: _125.MsgAddAllowedDenomResponseAminoMsg): _125.MsgAddAllowedDenomResponse; - fromProtoMsg(message: _125.MsgAddAllowedDenomResponseProtoMsg): _125.MsgAddAllowedDenomResponse; - toProto(message: _125.MsgAddAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _125.MsgAddAllowedDenomResponse): _125.MsgAddAllowedDenomResponseProtoMsg; + typeUrl: string; + encode(_: _126.MsgAddAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgAddAllowedDenomResponse; + fromJSON(_: any): _126.MsgAddAllowedDenomResponse; + toJSON(_: _126.MsgAddAllowedDenomResponse): unknown; + fromPartial(_: Partial<_126.MsgAddAllowedDenomResponse>): _126.MsgAddAllowedDenomResponse; + fromAmino(_: _126.MsgAddAllowedDenomResponseAmino): _126.MsgAddAllowedDenomResponse; + toAmino(_: _126.MsgAddAllowedDenomResponse): _126.MsgAddAllowedDenomResponseAmino; + fromAminoMsg(object: _126.MsgAddAllowedDenomResponseAminoMsg): _126.MsgAddAllowedDenomResponse; + fromProtoMsg(message: _126.MsgAddAllowedDenomResponseProtoMsg): _126.MsgAddAllowedDenomResponse; + toProto(message: _126.MsgAddAllowedDenomResponse): Uint8Array; + toProtoMsg(message: _126.MsgAddAllowedDenomResponse): _126.MsgAddAllowedDenomResponseProtoMsg; }; MsgRemoveAllowedDenom: { - encode(message: _125.MsgRemoveAllowedDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgRemoveAllowedDenom; - fromJSON(object: any): _125.MsgRemoveAllowedDenom; - toJSON(message: _125.MsgRemoveAllowedDenom): unknown; - fromPartial(object: Partial<_125.MsgRemoveAllowedDenom>): _125.MsgRemoveAllowedDenom; - fromAmino(object: _125.MsgRemoveAllowedDenomAmino): _125.MsgRemoveAllowedDenom; - toAmino(message: _125.MsgRemoveAllowedDenom): _125.MsgRemoveAllowedDenomAmino; - fromAminoMsg(object: _125.MsgRemoveAllowedDenomAminoMsg): _125.MsgRemoveAllowedDenom; - toAminoMsg(message: _125.MsgRemoveAllowedDenom): _125.MsgRemoveAllowedDenomAminoMsg; - fromProtoMsg(message: _125.MsgRemoveAllowedDenomProtoMsg): _125.MsgRemoveAllowedDenom; - toProto(message: _125.MsgRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _125.MsgRemoveAllowedDenom): _125.MsgRemoveAllowedDenomProtoMsg; + typeUrl: string; + encode(message: _126.MsgRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgRemoveAllowedDenom; + fromJSON(object: any): _126.MsgRemoveAllowedDenom; + toJSON(message: _126.MsgRemoveAllowedDenom): unknown; + fromPartial(object: Partial<_126.MsgRemoveAllowedDenom>): _126.MsgRemoveAllowedDenom; + fromAmino(object: _126.MsgRemoveAllowedDenomAmino): _126.MsgRemoveAllowedDenom; + toAmino(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomAmino; + fromAminoMsg(object: _126.MsgRemoveAllowedDenomAminoMsg): _126.MsgRemoveAllowedDenom; + toAminoMsg(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomAminoMsg; + fromProtoMsg(message: _126.MsgRemoveAllowedDenomProtoMsg): _126.MsgRemoveAllowedDenom; + toProto(message: _126.MsgRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomProtoMsg; }; MsgRemoveAllowedDenomResponse: { - encode(_: _125.MsgRemoveAllowedDenomResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _125.MsgRemoveAllowedDenomResponse; - fromJSON(_: any): _125.MsgRemoveAllowedDenomResponse; - toJSON(_: _125.MsgRemoveAllowedDenomResponse): unknown; - fromPartial(_: Partial<_125.MsgRemoveAllowedDenomResponse>): _125.MsgRemoveAllowedDenomResponse; - fromAmino(_: _125.MsgRemoveAllowedDenomResponseAmino): _125.MsgRemoveAllowedDenomResponse; - toAmino(_: _125.MsgRemoveAllowedDenomResponse): _125.MsgRemoveAllowedDenomResponseAmino; - fromAminoMsg(object: _125.MsgRemoveAllowedDenomResponseAminoMsg): _125.MsgRemoveAllowedDenomResponse; - fromProtoMsg(message: _125.MsgRemoveAllowedDenomResponseProtoMsg): _125.MsgRemoveAllowedDenomResponse; - toProto(message: _125.MsgRemoveAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _125.MsgRemoveAllowedDenomResponse): _125.MsgRemoveAllowedDenomResponseProtoMsg; + typeUrl: string; + encode(_: _126.MsgRemoveAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgRemoveAllowedDenomResponse; + fromJSON(_: any): _126.MsgRemoveAllowedDenomResponse; + toJSON(_: _126.MsgRemoveAllowedDenomResponse): unknown; + fromPartial(_: Partial<_126.MsgRemoveAllowedDenomResponse>): _126.MsgRemoveAllowedDenomResponse; + fromAmino(_: _126.MsgRemoveAllowedDenomResponseAmino): _126.MsgRemoveAllowedDenomResponse; + toAmino(_: _126.MsgRemoveAllowedDenomResponse): _126.MsgRemoveAllowedDenomResponseAmino; + fromAminoMsg(object: _126.MsgRemoveAllowedDenomResponseAminoMsg): _126.MsgRemoveAllowedDenomResponse; + fromProtoMsg(message: _126.MsgRemoveAllowedDenomResponseProtoMsg): _126.MsgRemoveAllowedDenomResponse; + toProto(message: _126.MsgRemoveAllowedDenomResponse): Uint8Array; + toProtoMsg(message: _126.MsgRemoveAllowedDenomResponse): _126.MsgRemoveAllowedDenomResponseProtoMsg; }; SellOrder: { - encode(message: _124.SellOrder, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _124.SellOrder; - fromJSON(object: any): _124.SellOrder; - toJSON(message: _124.SellOrder): unknown; - fromPartial(object: Partial<_124.SellOrder>): _124.SellOrder; - fromAmino(object: _124.SellOrderAmino): _124.SellOrder; - toAmino(message: _124.SellOrder): _124.SellOrderAmino; - fromAminoMsg(object: _124.SellOrderAminoMsg): _124.SellOrder; - fromProtoMsg(message: _124.SellOrderProtoMsg): _124.SellOrder; - toProto(message: _124.SellOrder): Uint8Array; - toProtoMsg(message: _124.SellOrder): _124.SellOrderProtoMsg; + typeUrl: string; + encode(message: _125.SellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.SellOrder; + fromJSON(object: any): _125.SellOrder; + toJSON(message: _125.SellOrder): unknown; + fromPartial(object: Partial<_125.SellOrder>): _125.SellOrder; + fromAmino(object: _125.SellOrderAmino): _125.SellOrder; + toAmino(message: _125.SellOrder): _125.SellOrderAmino; + fromAminoMsg(object: _125.SellOrderAminoMsg): _125.SellOrder; + fromProtoMsg(message: _125.SellOrderProtoMsg): _125.SellOrder; + toProto(message: _125.SellOrder): Uint8Array; + toProtoMsg(message: _125.SellOrder): _125.SellOrderProtoMsg; }; AllowedDenom: { - encode(message: _124.AllowedDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _124.AllowedDenom; - fromJSON(object: any): _124.AllowedDenom; - toJSON(message: _124.AllowedDenom): unknown; - fromPartial(object: Partial<_124.AllowedDenom>): _124.AllowedDenom; - fromAmino(object: _124.AllowedDenomAmino): _124.AllowedDenom; - toAmino(message: _124.AllowedDenom): _124.AllowedDenomAmino; - fromAminoMsg(object: _124.AllowedDenomAminoMsg): _124.AllowedDenom; - fromProtoMsg(message: _124.AllowedDenomProtoMsg): _124.AllowedDenom; - toProto(message: _124.AllowedDenom): Uint8Array; - toProtoMsg(message: _124.AllowedDenom): _124.AllowedDenomProtoMsg; + typeUrl: string; + encode(message: _125.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.AllowedDenom; + fromJSON(object: any): _125.AllowedDenom; + toJSON(message: _125.AllowedDenom): unknown; + fromPartial(object: Partial<_125.AllowedDenom>): _125.AllowedDenom; + fromAmino(object: _125.AllowedDenomAmino): _125.AllowedDenom; + toAmino(message: _125.AllowedDenom): _125.AllowedDenomAmino; + fromAminoMsg(object: _125.AllowedDenomAminoMsg): _125.AllowedDenom; + fromProtoMsg(message: _125.AllowedDenomProtoMsg): _125.AllowedDenom; + toProto(message: _125.AllowedDenom): Uint8Array; + toProtoMsg(message: _125.AllowedDenom): _125.AllowedDenomProtoMsg; }; Market: { - encode(message: _124.Market, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _124.Market; - fromJSON(object: any): _124.Market; - toJSON(message: _124.Market): unknown; - fromPartial(object: Partial<_124.Market>): _124.Market; - fromAmino(object: _124.MarketAmino): _124.Market; - toAmino(message: _124.Market): _124.MarketAmino; - fromAminoMsg(object: _124.MarketAminoMsg): _124.Market; - fromProtoMsg(message: _124.MarketProtoMsg): _124.Market; - toProto(message: _124.Market): Uint8Array; - toProtoMsg(message: _124.Market): _124.MarketProtoMsg; + typeUrl: string; + encode(message: _125.Market, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.Market; + fromJSON(object: any): _125.Market; + toJSON(message: _125.Market): unknown; + fromPartial(object: Partial<_125.Market>): _125.Market; + fromAmino(object: _125.MarketAmino): _125.Market; + toAmino(message: _125.Market): _125.MarketAmino; + fromAminoMsg(object: _125.MarketAminoMsg): _125.Market; + fromProtoMsg(message: _125.MarketProtoMsg): _125.Market; + toProto(message: _125.Market): Uint8Array; + toProtoMsg(message: _125.Market): _125.MarketProtoMsg; }; QuerySellOrderRequest: { - encode(message: _123.QuerySellOrderRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrderRequest; - fromJSON(object: any): _123.QuerySellOrderRequest; - toJSON(message: _123.QuerySellOrderRequest): unknown; - fromPartial(object: Partial<_123.QuerySellOrderRequest>): _123.QuerySellOrderRequest; - fromAmino(object: _123.QuerySellOrderRequestAmino): _123.QuerySellOrderRequest; - toAmino(message: _123.QuerySellOrderRequest): _123.QuerySellOrderRequestAmino; - fromAminoMsg(object: _123.QuerySellOrderRequestAminoMsg): _123.QuerySellOrderRequest; - fromProtoMsg(message: _123.QuerySellOrderRequestProtoMsg): _123.QuerySellOrderRequest; - toProto(message: _123.QuerySellOrderRequest): Uint8Array; - toProtoMsg(message: _123.QuerySellOrderRequest): _123.QuerySellOrderRequestProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrderRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrderRequest; + fromJSON(object: any): _124.QuerySellOrderRequest; + toJSON(message: _124.QuerySellOrderRequest): unknown; + fromPartial(object: Partial<_124.QuerySellOrderRequest>): _124.QuerySellOrderRequest; + fromAmino(object: _124.QuerySellOrderRequestAmino): _124.QuerySellOrderRequest; + toAmino(message: _124.QuerySellOrderRequest): _124.QuerySellOrderRequestAmino; + fromAminoMsg(object: _124.QuerySellOrderRequestAminoMsg): _124.QuerySellOrderRequest; + fromProtoMsg(message: _124.QuerySellOrderRequestProtoMsg): _124.QuerySellOrderRequest; + toProto(message: _124.QuerySellOrderRequest): Uint8Array; + toProtoMsg(message: _124.QuerySellOrderRequest): _124.QuerySellOrderRequestProtoMsg; }; QuerySellOrderResponse: { - encode(message: _123.QuerySellOrderResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrderResponse; - fromJSON(object: any): _123.QuerySellOrderResponse; - toJSON(message: _123.QuerySellOrderResponse): unknown; - fromPartial(object: Partial<_123.QuerySellOrderResponse>): _123.QuerySellOrderResponse; - fromAmino(object: _123.QuerySellOrderResponseAmino): _123.QuerySellOrderResponse; - toAmino(message: _123.QuerySellOrderResponse): _123.QuerySellOrderResponseAmino; - fromAminoMsg(object: _123.QuerySellOrderResponseAminoMsg): _123.QuerySellOrderResponse; - fromProtoMsg(message: _123.QuerySellOrderResponseProtoMsg): _123.QuerySellOrderResponse; - toProto(message: _123.QuerySellOrderResponse): Uint8Array; - toProtoMsg(message: _123.QuerySellOrderResponse): _123.QuerySellOrderResponseProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrderResponse; + fromJSON(object: any): _124.QuerySellOrderResponse; + toJSON(message: _124.QuerySellOrderResponse): unknown; + fromPartial(object: Partial<_124.QuerySellOrderResponse>): _124.QuerySellOrderResponse; + fromAmino(object: _124.QuerySellOrderResponseAmino): _124.QuerySellOrderResponse; + toAmino(message: _124.QuerySellOrderResponse): _124.QuerySellOrderResponseAmino; + fromAminoMsg(object: _124.QuerySellOrderResponseAminoMsg): _124.QuerySellOrderResponse; + fromProtoMsg(message: _124.QuerySellOrderResponseProtoMsg): _124.QuerySellOrderResponse; + toProto(message: _124.QuerySellOrderResponse): Uint8Array; + toProtoMsg(message: _124.QuerySellOrderResponse): _124.QuerySellOrderResponseProtoMsg; }; QuerySellOrdersRequest: { - encode(message: _123.QuerySellOrdersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersRequest; - fromJSON(object: any): _123.QuerySellOrdersRequest; - toJSON(message: _123.QuerySellOrdersRequest): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersRequest>): _123.QuerySellOrdersRequest; - fromAmino(object: _123.QuerySellOrdersRequestAmino): _123.QuerySellOrdersRequest; - toAmino(message: _123.QuerySellOrdersRequest): _123.QuerySellOrdersRequestAmino; - fromAminoMsg(object: _123.QuerySellOrdersRequestAminoMsg): _123.QuerySellOrdersRequest; - fromProtoMsg(message: _123.QuerySellOrdersRequestProtoMsg): _123.QuerySellOrdersRequest; - toProto(message: _123.QuerySellOrdersRequest): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersRequest): _123.QuerySellOrdersRequestProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersRequest; + fromJSON(object: any): _124.QuerySellOrdersRequest; + toJSON(message: _124.QuerySellOrdersRequest): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersRequest>): _124.QuerySellOrdersRequest; + fromAmino(object: _124.QuerySellOrdersRequestAmino): _124.QuerySellOrdersRequest; + toAmino(message: _124.QuerySellOrdersRequest): _124.QuerySellOrdersRequestAmino; + fromAminoMsg(object: _124.QuerySellOrdersRequestAminoMsg): _124.QuerySellOrdersRequest; + fromProtoMsg(message: _124.QuerySellOrdersRequestProtoMsg): _124.QuerySellOrdersRequest; + toProto(message: _124.QuerySellOrdersRequest): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersRequest): _124.QuerySellOrdersRequestProtoMsg; }; QuerySellOrdersResponse: { - encode(message: _123.QuerySellOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersResponse; - fromJSON(object: any): _123.QuerySellOrdersResponse; - toJSON(message: _123.QuerySellOrdersResponse): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersResponse>): _123.QuerySellOrdersResponse; - fromAmino(object: _123.QuerySellOrdersResponseAmino): _123.QuerySellOrdersResponse; - toAmino(message: _123.QuerySellOrdersResponse): _123.QuerySellOrdersResponseAmino; - fromAminoMsg(object: _123.QuerySellOrdersResponseAminoMsg): _123.QuerySellOrdersResponse; - fromProtoMsg(message: _123.QuerySellOrdersResponseProtoMsg): _123.QuerySellOrdersResponse; - toProto(message: _123.QuerySellOrdersResponse): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersResponse): _123.QuerySellOrdersResponseProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersResponse; + fromJSON(object: any): _124.QuerySellOrdersResponse; + toJSON(message: _124.QuerySellOrdersResponse): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersResponse>): _124.QuerySellOrdersResponse; + fromAmino(object: _124.QuerySellOrdersResponseAmino): _124.QuerySellOrdersResponse; + toAmino(message: _124.QuerySellOrdersResponse): _124.QuerySellOrdersResponseAmino; + fromAminoMsg(object: _124.QuerySellOrdersResponseAminoMsg): _124.QuerySellOrdersResponse; + fromProtoMsg(message: _124.QuerySellOrdersResponseProtoMsg): _124.QuerySellOrdersResponse; + toProto(message: _124.QuerySellOrdersResponse): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersResponse): _124.QuerySellOrdersResponseProtoMsg; }; QuerySellOrdersByBatchRequest: { - encode(message: _123.QuerySellOrdersByBatchRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersByBatchRequest; - fromJSON(object: any): _123.QuerySellOrdersByBatchRequest; - toJSON(message: _123.QuerySellOrdersByBatchRequest): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersByBatchRequest>): _123.QuerySellOrdersByBatchRequest; - fromAmino(object: _123.QuerySellOrdersByBatchRequestAmino): _123.QuerySellOrdersByBatchRequest; - toAmino(message: _123.QuerySellOrdersByBatchRequest): _123.QuerySellOrdersByBatchRequestAmino; - fromAminoMsg(object: _123.QuerySellOrdersByBatchRequestAminoMsg): _123.QuerySellOrdersByBatchRequest; - fromProtoMsg(message: _123.QuerySellOrdersByBatchRequestProtoMsg): _123.QuerySellOrdersByBatchRequest; - toProto(message: _123.QuerySellOrdersByBatchRequest): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersByBatchRequest): _123.QuerySellOrdersByBatchRequestProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersByBatchRequest; + fromJSON(object: any): _124.QuerySellOrdersByBatchRequest; + toJSON(message: _124.QuerySellOrdersByBatchRequest): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersByBatchRequest>): _124.QuerySellOrdersByBatchRequest; + fromAmino(object: _124.QuerySellOrdersByBatchRequestAmino): _124.QuerySellOrdersByBatchRequest; + toAmino(message: _124.QuerySellOrdersByBatchRequest): _124.QuerySellOrdersByBatchRequestAmino; + fromAminoMsg(object: _124.QuerySellOrdersByBatchRequestAminoMsg): _124.QuerySellOrdersByBatchRequest; + fromProtoMsg(message: _124.QuerySellOrdersByBatchRequestProtoMsg): _124.QuerySellOrdersByBatchRequest; + toProto(message: _124.QuerySellOrdersByBatchRequest): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersByBatchRequest): _124.QuerySellOrdersByBatchRequestProtoMsg; }; QuerySellOrdersByBatchResponse: { - encode(message: _123.QuerySellOrdersByBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersByBatchResponse; - fromJSON(object: any): _123.QuerySellOrdersByBatchResponse; - toJSON(message: _123.QuerySellOrdersByBatchResponse): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersByBatchResponse>): _123.QuerySellOrdersByBatchResponse; - fromAmino(object: _123.QuerySellOrdersByBatchResponseAmino): _123.QuerySellOrdersByBatchResponse; - toAmino(message: _123.QuerySellOrdersByBatchResponse): _123.QuerySellOrdersByBatchResponseAmino; - fromAminoMsg(object: _123.QuerySellOrdersByBatchResponseAminoMsg): _123.QuerySellOrdersByBatchResponse; - fromProtoMsg(message: _123.QuerySellOrdersByBatchResponseProtoMsg): _123.QuerySellOrdersByBatchResponse; - toProto(message: _123.QuerySellOrdersByBatchResponse): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersByBatchResponse): _123.QuerySellOrdersByBatchResponseProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersByBatchResponse; + fromJSON(object: any): _124.QuerySellOrdersByBatchResponse; + toJSON(message: _124.QuerySellOrdersByBatchResponse): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersByBatchResponse>): _124.QuerySellOrdersByBatchResponse; + fromAmino(object: _124.QuerySellOrdersByBatchResponseAmino): _124.QuerySellOrdersByBatchResponse; + toAmino(message: _124.QuerySellOrdersByBatchResponse): _124.QuerySellOrdersByBatchResponseAmino; + fromAminoMsg(object: _124.QuerySellOrdersByBatchResponseAminoMsg): _124.QuerySellOrdersByBatchResponse; + fromProtoMsg(message: _124.QuerySellOrdersByBatchResponseProtoMsg): _124.QuerySellOrdersByBatchResponse; + toProto(message: _124.QuerySellOrdersByBatchResponse): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersByBatchResponse): _124.QuerySellOrdersByBatchResponseProtoMsg; }; QuerySellOrdersBySellerRequest: { - encode(message: _123.QuerySellOrdersBySellerRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersBySellerRequest; - fromJSON(object: any): _123.QuerySellOrdersBySellerRequest; - toJSON(message: _123.QuerySellOrdersBySellerRequest): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersBySellerRequest>): _123.QuerySellOrdersBySellerRequest; - fromAmino(object: _123.QuerySellOrdersBySellerRequestAmino): _123.QuerySellOrdersBySellerRequest; - toAmino(message: _123.QuerySellOrdersBySellerRequest): _123.QuerySellOrdersBySellerRequestAmino; - fromAminoMsg(object: _123.QuerySellOrdersBySellerRequestAminoMsg): _123.QuerySellOrdersBySellerRequest; - fromProtoMsg(message: _123.QuerySellOrdersBySellerRequestProtoMsg): _123.QuerySellOrdersBySellerRequest; - toProto(message: _123.QuerySellOrdersBySellerRequest): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersBySellerRequest): _123.QuerySellOrdersBySellerRequestProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersBySellerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersBySellerRequest; + fromJSON(object: any): _124.QuerySellOrdersBySellerRequest; + toJSON(message: _124.QuerySellOrdersBySellerRequest): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersBySellerRequest>): _124.QuerySellOrdersBySellerRequest; + fromAmino(object: _124.QuerySellOrdersBySellerRequestAmino): _124.QuerySellOrdersBySellerRequest; + toAmino(message: _124.QuerySellOrdersBySellerRequest): _124.QuerySellOrdersBySellerRequestAmino; + fromAminoMsg(object: _124.QuerySellOrdersBySellerRequestAminoMsg): _124.QuerySellOrdersBySellerRequest; + fromProtoMsg(message: _124.QuerySellOrdersBySellerRequestProtoMsg): _124.QuerySellOrdersBySellerRequest; + toProto(message: _124.QuerySellOrdersBySellerRequest): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersBySellerRequest): _124.QuerySellOrdersBySellerRequestProtoMsg; }; QuerySellOrdersBySellerResponse: { - encode(message: _123.QuerySellOrdersBySellerResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QuerySellOrdersBySellerResponse; - fromJSON(object: any): _123.QuerySellOrdersBySellerResponse; - toJSON(message: _123.QuerySellOrdersBySellerResponse): unknown; - fromPartial(object: Partial<_123.QuerySellOrdersBySellerResponse>): _123.QuerySellOrdersBySellerResponse; - fromAmino(object: _123.QuerySellOrdersBySellerResponseAmino): _123.QuerySellOrdersBySellerResponse; - toAmino(message: _123.QuerySellOrdersBySellerResponse): _123.QuerySellOrdersBySellerResponseAmino; - fromAminoMsg(object: _123.QuerySellOrdersBySellerResponseAminoMsg): _123.QuerySellOrdersBySellerResponse; - fromProtoMsg(message: _123.QuerySellOrdersBySellerResponseProtoMsg): _123.QuerySellOrdersBySellerResponse; - toProto(message: _123.QuerySellOrdersBySellerResponse): Uint8Array; - toProtoMsg(message: _123.QuerySellOrdersBySellerResponse): _123.QuerySellOrdersBySellerResponseProtoMsg; + typeUrl: string; + encode(message: _124.QuerySellOrdersBySellerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersBySellerResponse; + fromJSON(object: any): _124.QuerySellOrdersBySellerResponse; + toJSON(message: _124.QuerySellOrdersBySellerResponse): unknown; + fromPartial(object: Partial<_124.QuerySellOrdersBySellerResponse>): _124.QuerySellOrdersBySellerResponse; + fromAmino(object: _124.QuerySellOrdersBySellerResponseAmino): _124.QuerySellOrdersBySellerResponse; + toAmino(message: _124.QuerySellOrdersBySellerResponse): _124.QuerySellOrdersBySellerResponseAmino; + fromAminoMsg(object: _124.QuerySellOrdersBySellerResponseAminoMsg): _124.QuerySellOrdersBySellerResponse; + fromProtoMsg(message: _124.QuerySellOrdersBySellerResponseProtoMsg): _124.QuerySellOrdersBySellerResponse; + toProto(message: _124.QuerySellOrdersBySellerResponse): Uint8Array; + toProtoMsg(message: _124.QuerySellOrdersBySellerResponse): _124.QuerySellOrdersBySellerResponseProtoMsg; }; QueryAllowedDenomsRequest: { - encode(message: _123.QueryAllowedDenomsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QueryAllowedDenomsRequest; - fromJSON(object: any): _123.QueryAllowedDenomsRequest; - toJSON(message: _123.QueryAllowedDenomsRequest): unknown; - fromPartial(object: Partial<_123.QueryAllowedDenomsRequest>): _123.QueryAllowedDenomsRequest; - fromAmino(object: _123.QueryAllowedDenomsRequestAmino): _123.QueryAllowedDenomsRequest; - toAmino(message: _123.QueryAllowedDenomsRequest): _123.QueryAllowedDenomsRequestAmino; - fromAminoMsg(object: _123.QueryAllowedDenomsRequestAminoMsg): _123.QueryAllowedDenomsRequest; - fromProtoMsg(message: _123.QueryAllowedDenomsRequestProtoMsg): _123.QueryAllowedDenomsRequest; - toProto(message: _123.QueryAllowedDenomsRequest): Uint8Array; - toProtoMsg(message: _123.QueryAllowedDenomsRequest): _123.QueryAllowedDenomsRequestProtoMsg; + typeUrl: string; + encode(message: _124.QueryAllowedDenomsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QueryAllowedDenomsRequest; + fromJSON(object: any): _124.QueryAllowedDenomsRequest; + toJSON(message: _124.QueryAllowedDenomsRequest): unknown; + fromPartial(object: Partial<_124.QueryAllowedDenomsRequest>): _124.QueryAllowedDenomsRequest; + fromAmino(object: _124.QueryAllowedDenomsRequestAmino): _124.QueryAllowedDenomsRequest; + toAmino(message: _124.QueryAllowedDenomsRequest): _124.QueryAllowedDenomsRequestAmino; + fromAminoMsg(object: _124.QueryAllowedDenomsRequestAminoMsg): _124.QueryAllowedDenomsRequest; + fromProtoMsg(message: _124.QueryAllowedDenomsRequestProtoMsg): _124.QueryAllowedDenomsRequest; + toProto(message: _124.QueryAllowedDenomsRequest): Uint8Array; + toProtoMsg(message: _124.QueryAllowedDenomsRequest): _124.QueryAllowedDenomsRequestProtoMsg; }; QueryAllowedDenomsResponse: { - encode(message: _123.QueryAllowedDenomsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.QueryAllowedDenomsResponse; - fromJSON(object: any): _123.QueryAllowedDenomsResponse; - toJSON(message: _123.QueryAllowedDenomsResponse): unknown; - fromPartial(object: Partial<_123.QueryAllowedDenomsResponse>): _123.QueryAllowedDenomsResponse; - fromAmino(object: _123.QueryAllowedDenomsResponseAmino): _123.QueryAllowedDenomsResponse; - toAmino(message: _123.QueryAllowedDenomsResponse): _123.QueryAllowedDenomsResponseAmino; - fromAminoMsg(object: _123.QueryAllowedDenomsResponseAminoMsg): _123.QueryAllowedDenomsResponse; - fromProtoMsg(message: _123.QueryAllowedDenomsResponseProtoMsg): _123.QueryAllowedDenomsResponse; - toProto(message: _123.QueryAllowedDenomsResponse): Uint8Array; - toProtoMsg(message: _123.QueryAllowedDenomsResponse): _123.QueryAllowedDenomsResponseProtoMsg; + typeUrl: string; + encode(message: _124.QueryAllowedDenomsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QueryAllowedDenomsResponse; + fromJSON(object: any): _124.QueryAllowedDenomsResponse; + toJSON(message: _124.QueryAllowedDenomsResponse): unknown; + fromPartial(object: Partial<_124.QueryAllowedDenomsResponse>): _124.QueryAllowedDenomsResponse; + fromAmino(object: _124.QueryAllowedDenomsResponseAmino): _124.QueryAllowedDenomsResponse; + toAmino(message: _124.QueryAllowedDenomsResponse): _124.QueryAllowedDenomsResponseAmino; + fromAminoMsg(object: _124.QueryAllowedDenomsResponseAminoMsg): _124.QueryAllowedDenomsResponse; + fromProtoMsg(message: _124.QueryAllowedDenomsResponseProtoMsg): _124.QueryAllowedDenomsResponse; + toProto(message: _124.QueryAllowedDenomsResponse): Uint8Array; + toProtoMsg(message: _124.QueryAllowedDenomsResponse): _124.QueryAllowedDenomsResponseProtoMsg; }; SellOrderInfo: { - encode(message: _123.SellOrderInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _123.SellOrderInfo; - fromJSON(object: any): _123.SellOrderInfo; - toJSON(message: _123.SellOrderInfo): unknown; - fromPartial(object: Partial<_123.SellOrderInfo>): _123.SellOrderInfo; - fromAmino(object: _123.SellOrderInfoAmino): _123.SellOrderInfo; - toAmino(message: _123.SellOrderInfo): _123.SellOrderInfoAmino; - fromAminoMsg(object: _123.SellOrderInfoAminoMsg): _123.SellOrderInfo; - fromProtoMsg(message: _123.SellOrderInfoProtoMsg): _123.SellOrderInfo; - toProto(message: _123.SellOrderInfo): Uint8Array; - toProtoMsg(message: _123.SellOrderInfo): _123.SellOrderInfoProtoMsg; + typeUrl: string; + encode(message: _124.SellOrderInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.SellOrderInfo; + fromJSON(object: any): _124.SellOrderInfo; + toJSON(message: _124.SellOrderInfo): unknown; + fromPartial(object: Partial<_124.SellOrderInfo>): _124.SellOrderInfo; + fromAmino(object: _124.SellOrderInfoAmino): _124.SellOrderInfo; + toAmino(message: _124.SellOrderInfo): _124.SellOrderInfoAmino; + fromAminoMsg(object: _124.SellOrderInfoAminoMsg): _124.SellOrderInfo; + fromProtoMsg(message: _124.SellOrderInfoProtoMsg): _124.SellOrderInfo; + toProto(message: _124.SellOrderInfo): Uint8Array; + toProtoMsg(message: _124.SellOrderInfo): _124.SellOrderInfoProtoMsg; }; EventSell: { - encode(message: _122.EventSell, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventSell; - fromJSON(object: any): _122.EventSell; - toJSON(message: _122.EventSell): unknown; - fromPartial(object: Partial<_122.EventSell>): _122.EventSell; - fromAmino(object: _122.EventSellAmino): _122.EventSell; - toAmino(message: _122.EventSell): _122.EventSellAmino; - fromAminoMsg(object: _122.EventSellAminoMsg): _122.EventSell; - fromProtoMsg(message: _122.EventSellProtoMsg): _122.EventSell; - toProto(message: _122.EventSell): Uint8Array; - toProtoMsg(message: _122.EventSell): _122.EventSellProtoMsg; + typeUrl: string; + encode(message: _123.EventSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventSell; + fromJSON(object: any): _123.EventSell; + toJSON(message: _123.EventSell): unknown; + fromPartial(object: Partial<_123.EventSell>): _123.EventSell; + fromAmino(object: _123.EventSellAmino): _123.EventSell; + toAmino(message: _123.EventSell): _123.EventSellAmino; + fromAminoMsg(object: _123.EventSellAminoMsg): _123.EventSell; + fromProtoMsg(message: _123.EventSellProtoMsg): _123.EventSell; + toProto(message: _123.EventSell): Uint8Array; + toProtoMsg(message: _123.EventSell): _123.EventSellProtoMsg; }; EventBuyDirect: { - encode(message: _122.EventBuyDirect, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventBuyDirect; - fromJSON(object: any): _122.EventBuyDirect; - toJSON(message: _122.EventBuyDirect): unknown; - fromPartial(object: Partial<_122.EventBuyDirect>): _122.EventBuyDirect; - fromAmino(object: _122.EventBuyDirectAmino): _122.EventBuyDirect; - toAmino(message: _122.EventBuyDirect): _122.EventBuyDirectAmino; - fromAminoMsg(object: _122.EventBuyDirectAminoMsg): _122.EventBuyDirect; - fromProtoMsg(message: _122.EventBuyDirectProtoMsg): _122.EventBuyDirect; - toProto(message: _122.EventBuyDirect): Uint8Array; - toProtoMsg(message: _122.EventBuyDirect): _122.EventBuyDirectProtoMsg; + typeUrl: string; + encode(message: _123.EventBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventBuyDirect; + fromJSON(object: any): _123.EventBuyDirect; + toJSON(message: _123.EventBuyDirect): unknown; + fromPartial(object: Partial<_123.EventBuyDirect>): _123.EventBuyDirect; + fromAmino(object: _123.EventBuyDirectAmino): _123.EventBuyDirect; + toAmino(message: _123.EventBuyDirect): _123.EventBuyDirectAmino; + fromAminoMsg(object: _123.EventBuyDirectAminoMsg): _123.EventBuyDirect; + fromProtoMsg(message: _123.EventBuyDirectProtoMsg): _123.EventBuyDirect; + toProto(message: _123.EventBuyDirect): Uint8Array; + toProtoMsg(message: _123.EventBuyDirect): _123.EventBuyDirectProtoMsg; }; EventUpdateSellOrder: { - encode(message: _122.EventUpdateSellOrder, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventUpdateSellOrder; - fromJSON(object: any): _122.EventUpdateSellOrder; - toJSON(message: _122.EventUpdateSellOrder): unknown; - fromPartial(object: Partial<_122.EventUpdateSellOrder>): _122.EventUpdateSellOrder; - fromAmino(object: _122.EventUpdateSellOrderAmino): _122.EventUpdateSellOrder; - toAmino(message: _122.EventUpdateSellOrder): _122.EventUpdateSellOrderAmino; - fromAminoMsg(object: _122.EventUpdateSellOrderAminoMsg): _122.EventUpdateSellOrder; - fromProtoMsg(message: _122.EventUpdateSellOrderProtoMsg): _122.EventUpdateSellOrder; - toProto(message: _122.EventUpdateSellOrder): Uint8Array; - toProtoMsg(message: _122.EventUpdateSellOrder): _122.EventUpdateSellOrderProtoMsg; + typeUrl: string; + encode(message: _123.EventUpdateSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventUpdateSellOrder; + fromJSON(object: any): _123.EventUpdateSellOrder; + toJSON(message: _123.EventUpdateSellOrder): unknown; + fromPartial(object: Partial<_123.EventUpdateSellOrder>): _123.EventUpdateSellOrder; + fromAmino(object: _123.EventUpdateSellOrderAmino): _123.EventUpdateSellOrder; + toAmino(message: _123.EventUpdateSellOrder): _123.EventUpdateSellOrderAmino; + fromAminoMsg(object: _123.EventUpdateSellOrderAminoMsg): _123.EventUpdateSellOrder; + fromProtoMsg(message: _123.EventUpdateSellOrderProtoMsg): _123.EventUpdateSellOrder; + toProto(message: _123.EventUpdateSellOrder): Uint8Array; + toProtoMsg(message: _123.EventUpdateSellOrder): _123.EventUpdateSellOrderProtoMsg; }; EventCancelSellOrder: { - encode(message: _122.EventCancelSellOrder, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventCancelSellOrder; - fromJSON(object: any): _122.EventCancelSellOrder; - toJSON(message: _122.EventCancelSellOrder): unknown; - fromPartial(object: Partial<_122.EventCancelSellOrder>): _122.EventCancelSellOrder; - fromAmino(object: _122.EventCancelSellOrderAmino): _122.EventCancelSellOrder; - toAmino(message: _122.EventCancelSellOrder): _122.EventCancelSellOrderAmino; - fromAminoMsg(object: _122.EventCancelSellOrderAminoMsg): _122.EventCancelSellOrder; - fromProtoMsg(message: _122.EventCancelSellOrderProtoMsg): _122.EventCancelSellOrder; - toProto(message: _122.EventCancelSellOrder): Uint8Array; - toProtoMsg(message: _122.EventCancelSellOrder): _122.EventCancelSellOrderProtoMsg; + typeUrl: string; + encode(message: _123.EventCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventCancelSellOrder; + fromJSON(object: any): _123.EventCancelSellOrder; + toJSON(message: _123.EventCancelSellOrder): unknown; + fromPartial(object: Partial<_123.EventCancelSellOrder>): _123.EventCancelSellOrder; + fromAmino(object: _123.EventCancelSellOrderAmino): _123.EventCancelSellOrder; + toAmino(message: _123.EventCancelSellOrder): _123.EventCancelSellOrderAmino; + fromAminoMsg(object: _123.EventCancelSellOrderAminoMsg): _123.EventCancelSellOrder; + fromProtoMsg(message: _123.EventCancelSellOrderProtoMsg): _123.EventCancelSellOrder; + toProto(message: _123.EventCancelSellOrder): Uint8Array; + toProtoMsg(message: _123.EventCancelSellOrder): _123.EventCancelSellOrderProtoMsg; }; EventAllowDenom: { - encode(message: _122.EventAllowDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventAllowDenom; - fromJSON(object: any): _122.EventAllowDenom; - toJSON(message: _122.EventAllowDenom): unknown; - fromPartial(object: Partial<_122.EventAllowDenom>): _122.EventAllowDenom; - fromAmino(object: _122.EventAllowDenomAmino): _122.EventAllowDenom; - toAmino(message: _122.EventAllowDenom): _122.EventAllowDenomAmino; - fromAminoMsg(object: _122.EventAllowDenomAminoMsg): _122.EventAllowDenom; - fromProtoMsg(message: _122.EventAllowDenomProtoMsg): _122.EventAllowDenom; - toProto(message: _122.EventAllowDenom): Uint8Array; - toProtoMsg(message: _122.EventAllowDenom): _122.EventAllowDenomProtoMsg; + typeUrl: string; + encode(message: _123.EventAllowDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventAllowDenom; + fromJSON(object: any): _123.EventAllowDenom; + toJSON(message: _123.EventAllowDenom): unknown; + fromPartial(object: Partial<_123.EventAllowDenom>): _123.EventAllowDenom; + fromAmino(object: _123.EventAllowDenomAmino): _123.EventAllowDenom; + toAmino(message: _123.EventAllowDenom): _123.EventAllowDenomAmino; + fromAminoMsg(object: _123.EventAllowDenomAminoMsg): _123.EventAllowDenom; + fromProtoMsg(message: _123.EventAllowDenomProtoMsg): _123.EventAllowDenom; + toProto(message: _123.EventAllowDenom): Uint8Array; + toProtoMsg(message: _123.EventAllowDenom): _123.EventAllowDenomProtoMsg; }; EventRemoveAllowedDenom: { - encode(message: _122.EventRemoveAllowedDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _122.EventRemoveAllowedDenom; - fromJSON(object: any): _122.EventRemoveAllowedDenom; - toJSON(message: _122.EventRemoveAllowedDenom): unknown; - fromPartial(object: Partial<_122.EventRemoveAllowedDenom>): _122.EventRemoveAllowedDenom; - fromAmino(object: _122.EventRemoveAllowedDenomAmino): _122.EventRemoveAllowedDenom; - toAmino(message: _122.EventRemoveAllowedDenom): _122.EventRemoveAllowedDenomAmino; - fromAminoMsg(object: _122.EventRemoveAllowedDenomAminoMsg): _122.EventRemoveAllowedDenom; - fromProtoMsg(message: _122.EventRemoveAllowedDenomProtoMsg): _122.EventRemoveAllowedDenom; - toProto(message: _122.EventRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _122.EventRemoveAllowedDenom): _122.EventRemoveAllowedDenomProtoMsg; + typeUrl: string; + encode(message: _123.EventRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventRemoveAllowedDenom; + fromJSON(object: any): _123.EventRemoveAllowedDenom; + toJSON(message: _123.EventRemoveAllowedDenom): unknown; + fromPartial(object: Partial<_123.EventRemoveAllowedDenom>): _123.EventRemoveAllowedDenom; + fromAmino(object: _123.EventRemoveAllowedDenomAmino): _123.EventRemoveAllowedDenom; + toAmino(message: _123.EventRemoveAllowedDenom): _123.EventRemoveAllowedDenomAmino; + fromAminoMsg(object: _123.EventRemoveAllowedDenomAminoMsg): _123.EventRemoveAllowedDenom; + fromProtoMsg(message: _123.EventRemoveAllowedDenomProtoMsg): _123.EventRemoveAllowedDenom; + toProto(message: _123.EventRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: _123.EventRemoveAllowedDenom): _123.EventRemoveAllowedDenomProtoMsg; }; }; } namespace orderbook { const v1alpha1: { BuyOrderSellOrderMatch: { - encode(message: _127.BuyOrderSellOrderMatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _127.BuyOrderSellOrderMatch; - fromJSON(object: any): _127.BuyOrderSellOrderMatch; - toJSON(message: _127.BuyOrderSellOrderMatch): unknown; - fromPartial(object: Partial<_127.BuyOrderSellOrderMatch>): _127.BuyOrderSellOrderMatch; - fromAmino(object: _127.BuyOrderSellOrderMatchAmino): _127.BuyOrderSellOrderMatch; - toAmino(message: _127.BuyOrderSellOrderMatch): _127.BuyOrderSellOrderMatchAmino; - fromAminoMsg(object: _127.BuyOrderSellOrderMatchAminoMsg): _127.BuyOrderSellOrderMatch; - fromProtoMsg(message: _127.BuyOrderSellOrderMatchProtoMsg): _127.BuyOrderSellOrderMatch; - toProto(message: _127.BuyOrderSellOrderMatch): Uint8Array; - toProtoMsg(message: _127.BuyOrderSellOrderMatch): _127.BuyOrderSellOrderMatchProtoMsg; + typeUrl: string; + encode(message: _128.BuyOrderSellOrderMatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderSellOrderMatch; + fromJSON(object: any): _128.BuyOrderSellOrderMatch; + toJSON(message: _128.BuyOrderSellOrderMatch): unknown; + fromPartial(object: Partial<_128.BuyOrderSellOrderMatch>): _128.BuyOrderSellOrderMatch; + fromAmino(object: _128.BuyOrderSellOrderMatchAmino): _128.BuyOrderSellOrderMatch; + toAmino(message: _128.BuyOrderSellOrderMatch): _128.BuyOrderSellOrderMatchAmino; + fromAminoMsg(object: _128.BuyOrderSellOrderMatchAminoMsg): _128.BuyOrderSellOrderMatch; + fromProtoMsg(message: _128.BuyOrderSellOrderMatchProtoMsg): _128.BuyOrderSellOrderMatch; + toProto(message: _128.BuyOrderSellOrderMatch): Uint8Array; + toProtoMsg(message: _128.BuyOrderSellOrderMatch): _128.BuyOrderSellOrderMatchProtoMsg; }; BuyOrderClassSelector: { - encode(message: _127.BuyOrderClassSelector, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _127.BuyOrderClassSelector; - fromJSON(object: any): _127.BuyOrderClassSelector; - toJSON(message: _127.BuyOrderClassSelector): unknown; - fromPartial(object: Partial<_127.BuyOrderClassSelector>): _127.BuyOrderClassSelector; - fromAmino(object: _127.BuyOrderClassSelectorAmino): _127.BuyOrderClassSelector; - toAmino(message: _127.BuyOrderClassSelector): _127.BuyOrderClassSelectorAmino; - fromAminoMsg(object: _127.BuyOrderClassSelectorAminoMsg): _127.BuyOrderClassSelector; - fromProtoMsg(message: _127.BuyOrderClassSelectorProtoMsg): _127.BuyOrderClassSelector; - toProto(message: _127.BuyOrderClassSelector): Uint8Array; - toProtoMsg(message: _127.BuyOrderClassSelector): _127.BuyOrderClassSelectorProtoMsg; + typeUrl: string; + encode(message: _128.BuyOrderClassSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderClassSelector; + fromJSON(object: any): _128.BuyOrderClassSelector; + toJSON(message: _128.BuyOrderClassSelector): unknown; + fromPartial(object: Partial<_128.BuyOrderClassSelector>): _128.BuyOrderClassSelector; + fromAmino(object: _128.BuyOrderClassSelectorAmino): _128.BuyOrderClassSelector; + toAmino(message: _128.BuyOrderClassSelector): _128.BuyOrderClassSelectorAmino; + fromAminoMsg(object: _128.BuyOrderClassSelectorAminoMsg): _128.BuyOrderClassSelector; + fromProtoMsg(message: _128.BuyOrderClassSelectorProtoMsg): _128.BuyOrderClassSelector; + toProto(message: _128.BuyOrderClassSelector): Uint8Array; + toProtoMsg(message: _128.BuyOrderClassSelector): _128.BuyOrderClassSelectorProtoMsg; }; BuyOrderProjectSelector: { - encode(message: _127.BuyOrderProjectSelector, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _127.BuyOrderProjectSelector; - fromJSON(object: any): _127.BuyOrderProjectSelector; - toJSON(message: _127.BuyOrderProjectSelector): unknown; - fromPartial(object: Partial<_127.BuyOrderProjectSelector>): _127.BuyOrderProjectSelector; - fromAmino(object: _127.BuyOrderProjectSelectorAmino): _127.BuyOrderProjectSelector; - toAmino(message: _127.BuyOrderProjectSelector): _127.BuyOrderProjectSelectorAmino; - fromAminoMsg(object: _127.BuyOrderProjectSelectorAminoMsg): _127.BuyOrderProjectSelector; - fromProtoMsg(message: _127.BuyOrderProjectSelectorProtoMsg): _127.BuyOrderProjectSelector; - toProto(message: _127.BuyOrderProjectSelector): Uint8Array; - toProtoMsg(message: _127.BuyOrderProjectSelector): _127.BuyOrderProjectSelectorProtoMsg; + typeUrl: string; + encode(message: _128.BuyOrderProjectSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderProjectSelector; + fromJSON(object: any): _128.BuyOrderProjectSelector; + toJSON(message: _128.BuyOrderProjectSelector): unknown; + fromPartial(object: Partial<_128.BuyOrderProjectSelector>): _128.BuyOrderProjectSelector; + fromAmino(object: _128.BuyOrderProjectSelectorAmino): _128.BuyOrderProjectSelector; + toAmino(message: _128.BuyOrderProjectSelector): _128.BuyOrderProjectSelectorAmino; + fromAminoMsg(object: _128.BuyOrderProjectSelectorAminoMsg): _128.BuyOrderProjectSelector; + fromProtoMsg(message: _128.BuyOrderProjectSelectorProtoMsg): _128.BuyOrderProjectSelector; + toProto(message: _128.BuyOrderProjectSelector): Uint8Array; + toProtoMsg(message: _128.BuyOrderProjectSelector): _128.BuyOrderProjectSelectorProtoMsg; }; BuyOrderBatchSelector: { - encode(message: _127.BuyOrderBatchSelector, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _127.BuyOrderBatchSelector; - fromJSON(object: any): _127.BuyOrderBatchSelector; - toJSON(message: _127.BuyOrderBatchSelector): unknown; - fromPartial(object: Partial<_127.BuyOrderBatchSelector>): _127.BuyOrderBatchSelector; - fromAmino(object: _127.BuyOrderBatchSelectorAmino): _127.BuyOrderBatchSelector; - toAmino(message: _127.BuyOrderBatchSelector): _127.BuyOrderBatchSelectorAmino; - fromAminoMsg(object: _127.BuyOrderBatchSelectorAminoMsg): _127.BuyOrderBatchSelector; - fromProtoMsg(message: _127.BuyOrderBatchSelectorProtoMsg): _127.BuyOrderBatchSelector; - toProto(message: _127.BuyOrderBatchSelector): Uint8Array; - toProtoMsg(message: _127.BuyOrderBatchSelector): _127.BuyOrderBatchSelectorProtoMsg; + typeUrl: string; + encode(message: _128.BuyOrderBatchSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderBatchSelector; + fromJSON(object: any): _128.BuyOrderBatchSelector; + toJSON(message: _128.BuyOrderBatchSelector): unknown; + fromPartial(object: Partial<_128.BuyOrderBatchSelector>): _128.BuyOrderBatchSelector; + fromAmino(object: _128.BuyOrderBatchSelectorAmino): _128.BuyOrderBatchSelector; + toAmino(message: _128.BuyOrderBatchSelector): _128.BuyOrderBatchSelectorAmino; + fromAminoMsg(object: _128.BuyOrderBatchSelectorAminoMsg): _128.BuyOrderBatchSelector; + fromProtoMsg(message: _128.BuyOrderBatchSelectorProtoMsg): _128.BuyOrderBatchSelector; + toProto(message: _128.BuyOrderBatchSelector): Uint8Array; + toProtoMsg(message: _128.BuyOrderBatchSelector): _128.BuyOrderBatchSelectorProtoMsg; }; }; } const v1: { - MsgClientImpl: typeof _267.MsgClientImpl; - QueryClientImpl: typeof _261.QueryClientImpl; + MsgClientImpl: typeof _268.MsgClientImpl; + QueryClientImpl: typeof _262.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _129.QueryClassesRequest | undefined): Promise<_129.QueryClassesResponse>; - classesByAdmin(request: _129.QueryClassesByAdminRequest): Promise<_129.QueryClassesByAdminResponse>; - class(request: _129.QueryClassRequest): Promise<_129.QueryClassResponse>; - classIssuers(request: _129.QueryClassIssuersRequest): Promise<_129.QueryClassIssuersResponse>; - projects(request?: _129.QueryProjectsRequest | undefined): Promise<_129.QueryProjectsResponse>; - projectsByClass(request: _129.QueryProjectsByClassRequest): Promise<_129.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _129.QueryProjectsByReferenceIdRequest): Promise<_129.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _129.QueryProjectsByAdminRequest): Promise<_129.QueryProjectsByAdminResponse>; - project(request: _129.QueryProjectRequest): Promise<_129.QueryProjectResponse>; - batches(request?: _129.QueryBatchesRequest | undefined): Promise<_129.QueryBatchesResponse>; - batchesByIssuer(request: _129.QueryBatchesByIssuerRequest): Promise<_129.QueryBatchesByIssuerResponse>; - batchesByClass(request: _129.QueryBatchesByClassRequest): Promise<_129.QueryBatchesByClassResponse>; - batchesByProject(request: _129.QueryBatchesByProjectRequest): Promise<_129.QueryBatchesByProjectResponse>; - batch(request: _129.QueryBatchRequest): Promise<_129.QueryBatchResponse>; - balance(request: _129.QueryBalanceRequest): Promise<_129.QueryBalanceResponse>; - balances(request: _129.QueryBalancesRequest): Promise<_129.QueryBalancesResponse>; - balancesByBatch(request: _129.QueryBalancesByBatchRequest): Promise<_129.QueryBalancesByBatchResponse>; - allBalances(request?: _129.QueryAllBalancesRequest | undefined): Promise<_129.QueryAllBalancesResponse>; - supply(request: _129.QuerySupplyRequest): Promise<_129.QuerySupplyResponse>; - creditTypes(request?: _129.QueryCreditTypesRequest | undefined): Promise<_129.QueryCreditTypesResponse>; - params(request?: _129.QueryParamsRequest | undefined): Promise<_129.QueryParamsResponse>; - creditType(request: _129.QueryCreditTypeRequest): Promise<_129.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _129.QueryClassCreatorAllowlistRequest | undefined): Promise<_129.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _129.QueryAllowedClassCreatorsRequest | undefined): Promise<_129.QueryAllowedClassCreatorsResponse>; - classFee(request?: _129.QueryClassFeeRequest | undefined): Promise<_129.QueryClassFeeResponse>; - allowedBridgeChains(request?: _129.QueryAllowedBridgeChainsRequest | undefined): Promise<_129.QueryAllowedBridgeChainsResponse>; - }; - LCDQueryClient: typeof _255.LCDQueryClient; + classes(request?: _130.QueryClassesRequest | undefined): Promise<_130.QueryClassesResponse>; + classesByAdmin(request: _130.QueryClassesByAdminRequest): Promise<_130.QueryClassesByAdminResponse>; + class(request: _130.QueryClassRequest): Promise<_130.QueryClassResponse>; + classIssuers(request: _130.QueryClassIssuersRequest): Promise<_130.QueryClassIssuersResponse>; + projects(request?: _130.QueryProjectsRequest | undefined): Promise<_130.QueryProjectsResponse>; + projectsByClass(request: _130.QueryProjectsByClassRequest): Promise<_130.QueryProjectsByClassResponse>; + projectsByReferenceId(request: _130.QueryProjectsByReferenceIdRequest): Promise<_130.QueryProjectsByReferenceIdResponse>; + projectsByAdmin(request: _130.QueryProjectsByAdminRequest): Promise<_130.QueryProjectsByAdminResponse>; + project(request: _130.QueryProjectRequest): Promise<_130.QueryProjectResponse>; + batches(request?: _130.QueryBatchesRequest | undefined): Promise<_130.QueryBatchesResponse>; + batchesByIssuer(request: _130.QueryBatchesByIssuerRequest): Promise<_130.QueryBatchesByIssuerResponse>; + batchesByClass(request: _130.QueryBatchesByClassRequest): Promise<_130.QueryBatchesByClassResponse>; + batchesByProject(request: _130.QueryBatchesByProjectRequest): Promise<_130.QueryBatchesByProjectResponse>; + batch(request: _130.QueryBatchRequest): Promise<_130.QueryBatchResponse>; + balance(request: _130.QueryBalanceRequest): Promise<_130.QueryBalanceResponse>; + balances(request: _130.QueryBalancesRequest): Promise<_130.QueryBalancesResponse>; + balancesByBatch(request: _130.QueryBalancesByBatchRequest): Promise<_130.QueryBalancesByBatchResponse>; + allBalances(request?: _130.QueryAllBalancesRequest | undefined): Promise<_130.QueryAllBalancesResponse>; + supply(request: _130.QuerySupplyRequest): Promise<_130.QuerySupplyResponse>; + creditTypes(request?: _130.QueryCreditTypesRequest | undefined): Promise<_130.QueryCreditTypesResponse>; + params(request?: _130.QueryParamsRequest | undefined): Promise<_130.QueryParamsResponse>; + creditType(request: _130.QueryCreditTypeRequest): Promise<_130.QueryCreditTypeResponse>; + classCreatorAllowlist(request?: _130.QueryClassCreatorAllowlistRequest | undefined): Promise<_130.QueryClassCreatorAllowlistResponse>; + allowedClassCreators(request?: _130.QueryAllowedClassCreatorsRequest | undefined): Promise<_130.QueryAllowedClassCreatorsResponse>; + classFee(request?: _130.QueryClassFeeRequest | undefined): Promise<_130.QueryClassFeeResponse>; + allowedBridgeChains(request?: _130.QueryAllowedBridgeChainsRequest | undefined): Promise<_130.QueryAllowedBridgeChainsResponse>; + }; + LCDQueryClient: typeof _256.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - createClass(value: _131.MsgCreateClass): { + createClass(value: _132.MsgCreateClass): { typeUrl: string; value: Uint8Array; }; - createProject(value: _131.MsgCreateProject): { + createProject(value: _132.MsgCreateProject): { typeUrl: string; value: Uint8Array; }; - createBatch(value: _131.MsgCreateBatch): { + createBatch(value: _132.MsgCreateBatch): { typeUrl: string; value: Uint8Array; }; - mintBatchCredits(value: _131.MsgMintBatchCredits): { + mintBatchCredits(value: _132.MsgMintBatchCredits): { typeUrl: string; value: Uint8Array; }; - sealBatch(value: _131.MsgSealBatch): { + sealBatch(value: _132.MsgSealBatch): { typeUrl: string; value: Uint8Array; }; - send(value: _131.MsgSend): { + send(value: _132.MsgSend): { typeUrl: string; value: Uint8Array; }; - retire(value: _131.MsgRetire): { + retire(value: _132.MsgRetire): { typeUrl: string; value: Uint8Array; }; - cancel(value: _131.MsgCancel): { + cancel(value: _132.MsgCancel): { typeUrl: string; value: Uint8Array; }; - updateClassAdmin(value: _131.MsgUpdateClassAdmin): { + updateClassAdmin(value: _132.MsgUpdateClassAdmin): { typeUrl: string; value: Uint8Array; }; - updateClassIssuers(value: _131.MsgUpdateClassIssuers): { + updateClassIssuers(value: _132.MsgUpdateClassIssuers): { typeUrl: string; value: Uint8Array; }; - updateClassMetadata(value: _131.MsgUpdateClassMetadata): { + updateClassMetadata(value: _132.MsgUpdateClassMetadata): { typeUrl: string; value: Uint8Array; }; - updateProjectAdmin(value: _131.MsgUpdateProjectAdmin): { + updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { typeUrl: string; value: Uint8Array; }; - updateProjectMetadata(value: _131.MsgUpdateProjectMetadata): { + updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { typeUrl: string; value: Uint8Array; }; - updateBatchMetadata(value: _131.MsgUpdateBatchMetadata): { + updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { typeUrl: string; value: Uint8Array; }; - bridge(value: _131.MsgBridge): { + bridge(value: _132.MsgBridge): { typeUrl: string; value: Uint8Array; }; - bridgeReceive(value: _131.MsgBridgeReceive): { + bridgeReceive(value: _132.MsgBridgeReceive): { typeUrl: string; value: Uint8Array; }; - addCreditType(value: _131.MsgAddCreditType): { + addCreditType(value: _132.MsgAddCreditType): { typeUrl: string; value: Uint8Array; }; - setClassCreatorAllowlist(value: _131.MsgSetClassCreatorAllowlist): { + setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { typeUrl: string; value: Uint8Array; }; - addClassCreator(value: _131.MsgAddClassCreator): { + addClassCreator(value: _132.MsgAddClassCreator): { typeUrl: string; value: Uint8Array; }; - removeClassCreator(value: _131.MsgRemoveClassCreator): { + removeClassCreator(value: _132.MsgRemoveClassCreator): { typeUrl: string; value: Uint8Array; }; - updateClassFee(value: _131.MsgUpdateClassFee): { + updateClassFee(value: _132.MsgUpdateClassFee): { typeUrl: string; value: Uint8Array; }; - addAllowedBridgeChain(value: _131.MsgAddAllowedBridgeChain): { + addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { typeUrl: string; value: Uint8Array; }; - removeAllowedBridgeChain(value: _131.MsgRemoveAllowedBridgeChain): { + removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - createClass(value: _131.MsgCreateClass): { + createClass(value: _132.MsgCreateClass): { typeUrl: string; - value: _131.MsgCreateClass; + value: _132.MsgCreateClass; }; - createProject(value: _131.MsgCreateProject): { + createProject(value: _132.MsgCreateProject): { typeUrl: string; - value: _131.MsgCreateProject; + value: _132.MsgCreateProject; }; - createBatch(value: _131.MsgCreateBatch): { + createBatch(value: _132.MsgCreateBatch): { typeUrl: string; - value: _131.MsgCreateBatch; + value: _132.MsgCreateBatch; }; - mintBatchCredits(value: _131.MsgMintBatchCredits): { + mintBatchCredits(value: _132.MsgMintBatchCredits): { typeUrl: string; - value: _131.MsgMintBatchCredits; + value: _132.MsgMintBatchCredits; }; - sealBatch(value: _131.MsgSealBatch): { + sealBatch(value: _132.MsgSealBatch): { typeUrl: string; - value: _131.MsgSealBatch; + value: _132.MsgSealBatch; }; - send(value: _131.MsgSend): { + send(value: _132.MsgSend): { typeUrl: string; - value: _131.MsgSend; + value: _132.MsgSend; }; - retire(value: _131.MsgRetire): { + retire(value: _132.MsgRetire): { typeUrl: string; - value: _131.MsgRetire; + value: _132.MsgRetire; }; - cancel(value: _131.MsgCancel): { + cancel(value: _132.MsgCancel): { typeUrl: string; - value: _131.MsgCancel; + value: _132.MsgCancel; }; - updateClassAdmin(value: _131.MsgUpdateClassAdmin): { + updateClassAdmin(value: _132.MsgUpdateClassAdmin): { typeUrl: string; - value: _131.MsgUpdateClassAdmin; + value: _132.MsgUpdateClassAdmin; }; - updateClassIssuers(value: _131.MsgUpdateClassIssuers): { + updateClassIssuers(value: _132.MsgUpdateClassIssuers): { typeUrl: string; - value: _131.MsgUpdateClassIssuers; + value: _132.MsgUpdateClassIssuers; }; - updateClassMetadata(value: _131.MsgUpdateClassMetadata): { + updateClassMetadata(value: _132.MsgUpdateClassMetadata): { typeUrl: string; - value: _131.MsgUpdateClassMetadata; + value: _132.MsgUpdateClassMetadata; }; - updateProjectAdmin(value: _131.MsgUpdateProjectAdmin): { + updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { typeUrl: string; - value: _131.MsgUpdateProjectAdmin; + value: _132.MsgUpdateProjectAdmin; }; - updateProjectMetadata(value: _131.MsgUpdateProjectMetadata): { + updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { typeUrl: string; - value: _131.MsgUpdateProjectMetadata; + value: _132.MsgUpdateProjectMetadata; }; - updateBatchMetadata(value: _131.MsgUpdateBatchMetadata): { + updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { typeUrl: string; - value: _131.MsgUpdateBatchMetadata; + value: _132.MsgUpdateBatchMetadata; }; - bridge(value: _131.MsgBridge): { + bridge(value: _132.MsgBridge): { typeUrl: string; - value: _131.MsgBridge; + value: _132.MsgBridge; }; - bridgeReceive(value: _131.MsgBridgeReceive): { + bridgeReceive(value: _132.MsgBridgeReceive): { typeUrl: string; - value: _131.MsgBridgeReceive; + value: _132.MsgBridgeReceive; }; - addCreditType(value: _131.MsgAddCreditType): { + addCreditType(value: _132.MsgAddCreditType): { typeUrl: string; - value: _131.MsgAddCreditType; + value: _132.MsgAddCreditType; }; - setClassCreatorAllowlist(value: _131.MsgSetClassCreatorAllowlist): { + setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { typeUrl: string; - value: _131.MsgSetClassCreatorAllowlist; + value: _132.MsgSetClassCreatorAllowlist; }; - addClassCreator(value: _131.MsgAddClassCreator): { + addClassCreator(value: _132.MsgAddClassCreator): { typeUrl: string; - value: _131.MsgAddClassCreator; + value: _132.MsgAddClassCreator; }; - removeClassCreator(value: _131.MsgRemoveClassCreator): { + removeClassCreator(value: _132.MsgRemoveClassCreator): { typeUrl: string; - value: _131.MsgRemoveClassCreator; + value: _132.MsgRemoveClassCreator; }; - updateClassFee(value: _131.MsgUpdateClassFee): { + updateClassFee(value: _132.MsgUpdateClassFee): { typeUrl: string; - value: _131.MsgUpdateClassFee; + value: _132.MsgUpdateClassFee; }; - addAllowedBridgeChain(value: _131.MsgAddAllowedBridgeChain): { + addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { typeUrl: string; - value: _131.MsgAddAllowedBridgeChain; + value: _132.MsgAddAllowedBridgeChain; }; - removeAllowedBridgeChain(value: _131.MsgRemoveAllowedBridgeChain): { + removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { typeUrl: string; - value: _131.MsgRemoveAllowedBridgeChain; + value: _132.MsgRemoveAllowedBridgeChain; }; }; toJSON: { - createClass(value: _131.MsgCreateClass): { + createClass(value: _132.MsgCreateClass): { typeUrl: string; value: unknown; }; - createProject(value: _131.MsgCreateProject): { + createProject(value: _132.MsgCreateProject): { typeUrl: string; value: unknown; }; - createBatch(value: _131.MsgCreateBatch): { + createBatch(value: _132.MsgCreateBatch): { typeUrl: string; value: unknown; }; - mintBatchCredits(value: _131.MsgMintBatchCredits): { + mintBatchCredits(value: _132.MsgMintBatchCredits): { typeUrl: string; value: unknown; }; - sealBatch(value: _131.MsgSealBatch): { + sealBatch(value: _132.MsgSealBatch): { typeUrl: string; value: unknown; }; - send(value: _131.MsgSend): { + send(value: _132.MsgSend): { typeUrl: string; value: unknown; }; - retire(value: _131.MsgRetire): { + retire(value: _132.MsgRetire): { typeUrl: string; value: unknown; }; - cancel(value: _131.MsgCancel): { + cancel(value: _132.MsgCancel): { typeUrl: string; value: unknown; }; - updateClassAdmin(value: _131.MsgUpdateClassAdmin): { + updateClassAdmin(value: _132.MsgUpdateClassAdmin): { typeUrl: string; value: unknown; }; - updateClassIssuers(value: _131.MsgUpdateClassIssuers): { + updateClassIssuers(value: _132.MsgUpdateClassIssuers): { typeUrl: string; value: unknown; }; - updateClassMetadata(value: _131.MsgUpdateClassMetadata): { + updateClassMetadata(value: _132.MsgUpdateClassMetadata): { typeUrl: string; value: unknown; }; - updateProjectAdmin(value: _131.MsgUpdateProjectAdmin): { + updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { typeUrl: string; value: unknown; }; - updateProjectMetadata(value: _131.MsgUpdateProjectMetadata): { + updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { typeUrl: string; value: unknown; }; - updateBatchMetadata(value: _131.MsgUpdateBatchMetadata): { + updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { typeUrl: string; value: unknown; }; - bridge(value: _131.MsgBridge): { + bridge(value: _132.MsgBridge): { typeUrl: string; value: unknown; }; - bridgeReceive(value: _131.MsgBridgeReceive): { + bridgeReceive(value: _132.MsgBridgeReceive): { typeUrl: string; value: unknown; }; - addCreditType(value: _131.MsgAddCreditType): { + addCreditType(value: _132.MsgAddCreditType): { typeUrl: string; value: unknown; }; - setClassCreatorAllowlist(value: _131.MsgSetClassCreatorAllowlist): { + setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { typeUrl: string; value: unknown; }; - addClassCreator(value: _131.MsgAddClassCreator): { + addClassCreator(value: _132.MsgAddClassCreator): { typeUrl: string; value: unknown; }; - removeClassCreator(value: _131.MsgRemoveClassCreator): { + removeClassCreator(value: _132.MsgRemoveClassCreator): { typeUrl: string; value: unknown; }; - updateClassFee(value: _131.MsgUpdateClassFee): { + updateClassFee(value: _132.MsgUpdateClassFee): { typeUrl: string; value: unknown; }; - addAllowedBridgeChain(value: _131.MsgAddAllowedBridgeChain): { + addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { typeUrl: string; value: unknown; }; - removeAllowedBridgeChain(value: _131.MsgRemoveAllowedBridgeChain): { + removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { typeUrl: string; value: unknown; }; @@ -2475,2333 +2596,2478 @@ export declare namespace regen { fromJSON: { createClass(value: any): { typeUrl: string; - value: _131.MsgCreateClass; + value: _132.MsgCreateClass; }; createProject(value: any): { typeUrl: string; - value: _131.MsgCreateProject; + value: _132.MsgCreateProject; }; createBatch(value: any): { typeUrl: string; - value: _131.MsgCreateBatch; + value: _132.MsgCreateBatch; }; mintBatchCredits(value: any): { typeUrl: string; - value: _131.MsgMintBatchCredits; + value: _132.MsgMintBatchCredits; }; sealBatch(value: any): { typeUrl: string; - value: _131.MsgSealBatch; + value: _132.MsgSealBatch; }; send(value: any): { typeUrl: string; - value: _131.MsgSend; + value: _132.MsgSend; }; retire(value: any): { typeUrl: string; - value: _131.MsgRetire; + value: _132.MsgRetire; }; cancel(value: any): { typeUrl: string; - value: _131.MsgCancel; + value: _132.MsgCancel; }; updateClassAdmin(value: any): { typeUrl: string; - value: _131.MsgUpdateClassAdmin; + value: _132.MsgUpdateClassAdmin; }; updateClassIssuers(value: any): { typeUrl: string; - value: _131.MsgUpdateClassIssuers; + value: _132.MsgUpdateClassIssuers; }; updateClassMetadata(value: any): { typeUrl: string; - value: _131.MsgUpdateClassMetadata; + value: _132.MsgUpdateClassMetadata; }; updateProjectAdmin(value: any): { typeUrl: string; - value: _131.MsgUpdateProjectAdmin; + value: _132.MsgUpdateProjectAdmin; }; updateProjectMetadata(value: any): { typeUrl: string; - value: _131.MsgUpdateProjectMetadata; + value: _132.MsgUpdateProjectMetadata; }; updateBatchMetadata(value: any): { typeUrl: string; - value: _131.MsgUpdateBatchMetadata; + value: _132.MsgUpdateBatchMetadata; }; bridge(value: any): { typeUrl: string; - value: _131.MsgBridge; + value: _132.MsgBridge; }; bridgeReceive(value: any): { typeUrl: string; - value: _131.MsgBridgeReceive; + value: _132.MsgBridgeReceive; }; addCreditType(value: any): { typeUrl: string; - value: _131.MsgAddCreditType; + value: _132.MsgAddCreditType; }; setClassCreatorAllowlist(value: any): { typeUrl: string; - value: _131.MsgSetClassCreatorAllowlist; + value: _132.MsgSetClassCreatorAllowlist; }; addClassCreator(value: any): { typeUrl: string; - value: _131.MsgAddClassCreator; + value: _132.MsgAddClassCreator; }; removeClassCreator(value: any): { typeUrl: string; - value: _131.MsgRemoveClassCreator; + value: _132.MsgRemoveClassCreator; }; updateClassFee(value: any): { typeUrl: string; - value: _131.MsgUpdateClassFee; + value: _132.MsgUpdateClassFee; }; addAllowedBridgeChain(value: any): { typeUrl: string; - value: _131.MsgAddAllowedBridgeChain; + value: _132.MsgAddAllowedBridgeChain; }; removeAllowedBridgeChain(value: any): { typeUrl: string; - value: _131.MsgRemoveAllowedBridgeChain; + value: _132.MsgRemoveAllowedBridgeChain; }; }; fromPartial: { - createClass(value: _131.MsgCreateClass): { + createClass(value: _132.MsgCreateClass): { typeUrl: string; - value: _131.MsgCreateClass; + value: _132.MsgCreateClass; }; - createProject(value: _131.MsgCreateProject): { + createProject(value: _132.MsgCreateProject): { typeUrl: string; - value: _131.MsgCreateProject; + value: _132.MsgCreateProject; }; - createBatch(value: _131.MsgCreateBatch): { + createBatch(value: _132.MsgCreateBatch): { typeUrl: string; - value: _131.MsgCreateBatch; + value: _132.MsgCreateBatch; }; - mintBatchCredits(value: _131.MsgMintBatchCredits): { + mintBatchCredits(value: _132.MsgMintBatchCredits): { typeUrl: string; - value: _131.MsgMintBatchCredits; + value: _132.MsgMintBatchCredits; }; - sealBatch(value: _131.MsgSealBatch): { + sealBatch(value: _132.MsgSealBatch): { typeUrl: string; - value: _131.MsgSealBatch; + value: _132.MsgSealBatch; }; - send(value: _131.MsgSend): { + send(value: _132.MsgSend): { typeUrl: string; - value: _131.MsgSend; + value: _132.MsgSend; }; - retire(value: _131.MsgRetire): { + retire(value: _132.MsgRetire): { typeUrl: string; - value: _131.MsgRetire; + value: _132.MsgRetire; }; - cancel(value: _131.MsgCancel): { + cancel(value: _132.MsgCancel): { typeUrl: string; - value: _131.MsgCancel; + value: _132.MsgCancel; }; - updateClassAdmin(value: _131.MsgUpdateClassAdmin): { + updateClassAdmin(value: _132.MsgUpdateClassAdmin): { typeUrl: string; - value: _131.MsgUpdateClassAdmin; + value: _132.MsgUpdateClassAdmin; }; - updateClassIssuers(value: _131.MsgUpdateClassIssuers): { + updateClassIssuers(value: _132.MsgUpdateClassIssuers): { typeUrl: string; - value: _131.MsgUpdateClassIssuers; + value: _132.MsgUpdateClassIssuers; }; - updateClassMetadata(value: _131.MsgUpdateClassMetadata): { + updateClassMetadata(value: _132.MsgUpdateClassMetadata): { typeUrl: string; - value: _131.MsgUpdateClassMetadata; + value: _132.MsgUpdateClassMetadata; }; - updateProjectAdmin(value: _131.MsgUpdateProjectAdmin): { + updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { typeUrl: string; - value: _131.MsgUpdateProjectAdmin; + value: _132.MsgUpdateProjectAdmin; }; - updateProjectMetadata(value: _131.MsgUpdateProjectMetadata): { + updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { typeUrl: string; - value: _131.MsgUpdateProjectMetadata; + value: _132.MsgUpdateProjectMetadata; }; - updateBatchMetadata(value: _131.MsgUpdateBatchMetadata): { + updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { typeUrl: string; - value: _131.MsgUpdateBatchMetadata; + value: _132.MsgUpdateBatchMetadata; }; - bridge(value: _131.MsgBridge): { + bridge(value: _132.MsgBridge): { typeUrl: string; - value: _131.MsgBridge; + value: _132.MsgBridge; }; - bridgeReceive(value: _131.MsgBridgeReceive): { + bridgeReceive(value: _132.MsgBridgeReceive): { typeUrl: string; - value: _131.MsgBridgeReceive; + value: _132.MsgBridgeReceive; }; - addCreditType(value: _131.MsgAddCreditType): { + addCreditType(value: _132.MsgAddCreditType): { typeUrl: string; - value: _131.MsgAddCreditType; + value: _132.MsgAddCreditType; }; - setClassCreatorAllowlist(value: _131.MsgSetClassCreatorAllowlist): { + setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { typeUrl: string; - value: _131.MsgSetClassCreatorAllowlist; + value: _132.MsgSetClassCreatorAllowlist; }; - addClassCreator(value: _131.MsgAddClassCreator): { + addClassCreator(value: _132.MsgAddClassCreator): { typeUrl: string; - value: _131.MsgAddClassCreator; + value: _132.MsgAddClassCreator; }; - removeClassCreator(value: _131.MsgRemoveClassCreator): { + removeClassCreator(value: _132.MsgRemoveClassCreator): { typeUrl: string; - value: _131.MsgRemoveClassCreator; + value: _132.MsgRemoveClassCreator; }; - updateClassFee(value: _131.MsgUpdateClassFee): { + updateClassFee(value: _132.MsgUpdateClassFee): { typeUrl: string; - value: _131.MsgUpdateClassFee; + value: _132.MsgUpdateClassFee; }; - addAllowedBridgeChain(value: _131.MsgAddAllowedBridgeChain): { + addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { typeUrl: string; - value: _131.MsgAddAllowedBridgeChain; + value: _132.MsgAddAllowedBridgeChain; }; - removeAllowedBridgeChain(value: _131.MsgRemoveAllowedBridgeChain): { + removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { typeUrl: string; - value: _131.MsgRemoveAllowedBridgeChain; + value: _132.MsgRemoveAllowedBridgeChain; }; }; }; AminoConverter: { "/regen.ecocredit.v1.MsgCreateClass": { aminoType: string; - toAmino: (message: _131.MsgCreateClass) => _131.MsgCreateClassAmino; - fromAmino: (object: _131.MsgCreateClassAmino) => _131.MsgCreateClass; + toAmino: (message: _132.MsgCreateClass) => _132.MsgCreateClassAmino; + fromAmino: (object: _132.MsgCreateClassAmino) => _132.MsgCreateClass; }; "/regen.ecocredit.v1.MsgCreateProject": { aminoType: string; - toAmino: (message: _131.MsgCreateProject) => _131.MsgCreateProjectAmino; - fromAmino: (object: _131.MsgCreateProjectAmino) => _131.MsgCreateProject; + toAmino: (message: _132.MsgCreateProject) => _132.MsgCreateProjectAmino; + fromAmino: (object: _132.MsgCreateProjectAmino) => _132.MsgCreateProject; }; "/regen.ecocredit.v1.MsgCreateBatch": { aminoType: string; - toAmino: (message: _131.MsgCreateBatch) => _131.MsgCreateBatchAmino; - fromAmino: (object: _131.MsgCreateBatchAmino) => _131.MsgCreateBatch; + toAmino: (message: _132.MsgCreateBatch) => _132.MsgCreateBatchAmino; + fromAmino: (object: _132.MsgCreateBatchAmino) => _132.MsgCreateBatch; }; "/regen.ecocredit.v1.MsgMintBatchCredits": { aminoType: string; - toAmino: (message: _131.MsgMintBatchCredits) => _131.MsgMintBatchCreditsAmino; - fromAmino: (object: _131.MsgMintBatchCreditsAmino) => _131.MsgMintBatchCredits; + toAmino: (message: _132.MsgMintBatchCredits) => _132.MsgMintBatchCreditsAmino; + fromAmino: (object: _132.MsgMintBatchCreditsAmino) => _132.MsgMintBatchCredits; }; "/regen.ecocredit.v1.MsgSealBatch": { aminoType: string; - toAmino: (message: _131.MsgSealBatch) => _131.MsgSealBatchAmino; - fromAmino: (object: _131.MsgSealBatchAmino) => _131.MsgSealBatch; + toAmino: (message: _132.MsgSealBatch) => _132.MsgSealBatchAmino; + fromAmino: (object: _132.MsgSealBatchAmino) => _132.MsgSealBatch; }; "/regen.ecocredit.v1.MsgSend": { aminoType: string; - toAmino: (message: _131.MsgSend) => _131.MsgSendAmino; - fromAmino: (object: _131.MsgSendAmino) => _131.MsgSend; + toAmino: (message: _132.MsgSend) => _132.MsgSendAmino; + fromAmino: (object: _132.MsgSendAmino) => _132.MsgSend; }; "/regen.ecocredit.v1.MsgRetire": { aminoType: string; - toAmino: (message: _131.MsgRetire) => _131.MsgRetireAmino; - fromAmino: (object: _131.MsgRetireAmino) => _131.MsgRetire; + toAmino: (message: _132.MsgRetire) => _132.MsgRetireAmino; + fromAmino: (object: _132.MsgRetireAmino) => _132.MsgRetire; }; "/regen.ecocredit.v1.MsgCancel": { aminoType: string; - toAmino: (message: _131.MsgCancel) => _131.MsgCancelAmino; - fromAmino: (object: _131.MsgCancelAmino) => _131.MsgCancel; + toAmino: (message: _132.MsgCancel) => _132.MsgCancelAmino; + fromAmino: (object: _132.MsgCancelAmino) => _132.MsgCancel; }; "/regen.ecocredit.v1.MsgUpdateClassAdmin": { aminoType: string; - toAmino: (message: _131.MsgUpdateClassAdmin) => _131.MsgUpdateClassAdminAmino; - fromAmino: (object: _131.MsgUpdateClassAdminAmino) => _131.MsgUpdateClassAdmin; + toAmino: (message: _132.MsgUpdateClassAdmin) => _132.MsgUpdateClassAdminAmino; + fromAmino: (object: _132.MsgUpdateClassAdminAmino) => _132.MsgUpdateClassAdmin; }; "/regen.ecocredit.v1.MsgUpdateClassIssuers": { aminoType: string; - toAmino: (message: _131.MsgUpdateClassIssuers) => _131.MsgUpdateClassIssuersAmino; - fromAmino: (object: _131.MsgUpdateClassIssuersAmino) => _131.MsgUpdateClassIssuers; + toAmino: (message: _132.MsgUpdateClassIssuers) => _132.MsgUpdateClassIssuersAmino; + fromAmino: (object: _132.MsgUpdateClassIssuersAmino) => _132.MsgUpdateClassIssuers; }; "/regen.ecocredit.v1.MsgUpdateClassMetadata": { aminoType: string; - toAmino: (message: _131.MsgUpdateClassMetadata) => _131.MsgUpdateClassMetadataAmino; - fromAmino: (object: _131.MsgUpdateClassMetadataAmino) => _131.MsgUpdateClassMetadata; + toAmino: (message: _132.MsgUpdateClassMetadata) => _132.MsgUpdateClassMetadataAmino; + fromAmino: (object: _132.MsgUpdateClassMetadataAmino) => _132.MsgUpdateClassMetadata; }; "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { aminoType: string; - toAmino: (message: _131.MsgUpdateProjectAdmin) => _131.MsgUpdateProjectAdminAmino; - fromAmino: (object: _131.MsgUpdateProjectAdminAmino) => _131.MsgUpdateProjectAdmin; + toAmino: (message: _132.MsgUpdateProjectAdmin) => _132.MsgUpdateProjectAdminAmino; + fromAmino: (object: _132.MsgUpdateProjectAdminAmino) => _132.MsgUpdateProjectAdmin; }; "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { aminoType: string; - toAmino: (message: _131.MsgUpdateProjectMetadata) => _131.MsgUpdateProjectMetadataAmino; - fromAmino: (object: _131.MsgUpdateProjectMetadataAmino) => _131.MsgUpdateProjectMetadata; + toAmino: (message: _132.MsgUpdateProjectMetadata) => _132.MsgUpdateProjectMetadataAmino; + fromAmino: (object: _132.MsgUpdateProjectMetadataAmino) => _132.MsgUpdateProjectMetadata; }; "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { aminoType: string; - toAmino: (message: _131.MsgUpdateBatchMetadata) => _131.MsgUpdateBatchMetadataAmino; - fromAmino: (object: _131.MsgUpdateBatchMetadataAmino) => _131.MsgUpdateBatchMetadata; + toAmino: (message: _132.MsgUpdateBatchMetadata) => _132.MsgUpdateBatchMetadataAmino; + fromAmino: (object: _132.MsgUpdateBatchMetadataAmino) => _132.MsgUpdateBatchMetadata; }; "/regen.ecocredit.v1.MsgBridge": { aminoType: string; - toAmino: (message: _131.MsgBridge) => _131.MsgBridgeAmino; - fromAmino: (object: _131.MsgBridgeAmino) => _131.MsgBridge; + toAmino: (message: _132.MsgBridge) => _132.MsgBridgeAmino; + fromAmino: (object: _132.MsgBridgeAmino) => _132.MsgBridge; }; "/regen.ecocredit.v1.MsgBridgeReceive": { aminoType: string; - toAmino: (message: _131.MsgBridgeReceive) => _131.MsgBridgeReceiveAmino; - fromAmino: (object: _131.MsgBridgeReceiveAmino) => _131.MsgBridgeReceive; + toAmino: (message: _132.MsgBridgeReceive) => _132.MsgBridgeReceiveAmino; + fromAmino: (object: _132.MsgBridgeReceiveAmino) => _132.MsgBridgeReceive; }; "/regen.ecocredit.v1.MsgAddCreditType": { aminoType: string; - toAmino: (message: _131.MsgAddCreditType) => _131.MsgAddCreditTypeAmino; - fromAmino: (object: _131.MsgAddCreditTypeAmino) => _131.MsgAddCreditType; + toAmino: (message: _132.MsgAddCreditType) => _132.MsgAddCreditTypeAmino; + fromAmino: (object: _132.MsgAddCreditTypeAmino) => _132.MsgAddCreditType; }; "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { aminoType: string; - toAmino: (message: _131.MsgSetClassCreatorAllowlist) => _131.MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: _131.MsgSetClassCreatorAllowlistAmino) => _131.MsgSetClassCreatorAllowlist; + toAmino: (message: _132.MsgSetClassCreatorAllowlist) => _132.MsgSetClassCreatorAllowlistAmino; + fromAmino: (object: _132.MsgSetClassCreatorAllowlistAmino) => _132.MsgSetClassCreatorAllowlist; }; "/regen.ecocredit.v1.MsgAddClassCreator": { aminoType: string; - toAmino: (message: _131.MsgAddClassCreator) => _131.MsgAddClassCreatorAmino; - fromAmino: (object: _131.MsgAddClassCreatorAmino) => _131.MsgAddClassCreator; + toAmino: (message: _132.MsgAddClassCreator) => _132.MsgAddClassCreatorAmino; + fromAmino: (object: _132.MsgAddClassCreatorAmino) => _132.MsgAddClassCreator; }; "/regen.ecocredit.v1.MsgRemoveClassCreator": { aminoType: string; - toAmino: (message: _131.MsgRemoveClassCreator) => _131.MsgRemoveClassCreatorAmino; - fromAmino: (object: _131.MsgRemoveClassCreatorAmino) => _131.MsgRemoveClassCreator; + toAmino: (message: _132.MsgRemoveClassCreator) => _132.MsgRemoveClassCreatorAmino; + fromAmino: (object: _132.MsgRemoveClassCreatorAmino) => _132.MsgRemoveClassCreator; }; "/regen.ecocredit.v1.MsgUpdateClassFee": { aminoType: string; - toAmino: (message: _131.MsgUpdateClassFee) => _131.MsgUpdateClassFeeAmino; - fromAmino: (object: _131.MsgUpdateClassFeeAmino) => _131.MsgUpdateClassFee; + toAmino: (message: _132.MsgUpdateClassFee) => _132.MsgUpdateClassFeeAmino; + fromAmino: (object: _132.MsgUpdateClassFeeAmino) => _132.MsgUpdateClassFee; }; "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { aminoType: string; - toAmino: (message: _131.MsgAddAllowedBridgeChain) => _131.MsgAddAllowedBridgeChainAmino; - fromAmino: (object: _131.MsgAddAllowedBridgeChainAmino) => _131.MsgAddAllowedBridgeChain; + toAmino: (message: _132.MsgAddAllowedBridgeChain) => _132.MsgAddAllowedBridgeChainAmino; + fromAmino: (object: _132.MsgAddAllowedBridgeChainAmino) => _132.MsgAddAllowedBridgeChain; }; "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { aminoType: string; - toAmino: (message: _131.MsgRemoveAllowedBridgeChain) => _131.MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: _131.MsgRemoveAllowedBridgeChainAmino) => _131.MsgRemoveAllowedBridgeChain; + toAmino: (message: _132.MsgRemoveAllowedBridgeChain) => _132.MsgRemoveAllowedBridgeChainAmino; + fromAmino: (object: _132.MsgRemoveAllowedBridgeChainAmino) => _132.MsgRemoveAllowedBridgeChain; }; }; Params: { - encode(message: _132.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.Params; - fromJSON(object: any): _132.Params; - toJSON(message: _132.Params): unknown; - fromPartial(object: Partial<_132.Params>): _132.Params; - fromAmino(object: _132.ParamsAmino): _132.Params; - toAmino(message: _132.Params): _132.ParamsAmino; - fromAminoMsg(object: _132.ParamsAminoMsg): _132.Params; - fromProtoMsg(message: _132.ParamsProtoMsg): _132.Params; - toProto(message: _132.Params): Uint8Array; - toProtoMsg(message: _132.Params): _132.ParamsProtoMsg; + typeUrl: string; + encode(message: _133.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.Params; + fromJSON(object: any): _133.Params; + toJSON(message: _133.Params): unknown; + fromPartial(object: Partial<_133.Params>): _133.Params; + fromAmino(object: _133.ParamsAmino): _133.Params; + toAmino(message: _133.Params): _133.ParamsAmino; + fromAminoMsg(object: _133.ParamsAminoMsg): _133.Params; + fromProtoMsg(message: _133.ParamsProtoMsg): _133.Params; + toProto(message: _133.Params): Uint8Array; + toProtoMsg(message: _133.Params): _133.ParamsProtoMsg; }; Credits: { - encode(message: _132.Credits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.Credits; - fromJSON(object: any): _132.Credits; - toJSON(message: _132.Credits): unknown; - fromPartial(object: Partial<_132.Credits>): _132.Credits; - fromAmino(object: _132.CreditsAmino): _132.Credits; - toAmino(message: _132.Credits): _132.CreditsAmino; - fromAminoMsg(object: _132.CreditsAminoMsg): _132.Credits; - fromProtoMsg(message: _132.CreditsProtoMsg): _132.Credits; - toProto(message: _132.Credits): Uint8Array; - toProtoMsg(message: _132.Credits): _132.CreditsProtoMsg; + typeUrl: string; + encode(message: _133.Credits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.Credits; + fromJSON(object: any): _133.Credits; + toJSON(message: _133.Credits): unknown; + fromPartial(object: Partial<_133.Credits>): _133.Credits; + fromAmino(object: _133.CreditsAmino): _133.Credits; + toAmino(message: _133.Credits): _133.CreditsAmino; + fromAminoMsg(object: _133.CreditsAminoMsg): _133.Credits; + fromProtoMsg(message: _133.CreditsProtoMsg): _133.Credits; + toProto(message: _133.Credits): Uint8Array; + toProtoMsg(message: _133.Credits): _133.CreditsProtoMsg; }; BatchIssuance: { - encode(message: _132.BatchIssuance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.BatchIssuance; - fromJSON(object: any): _132.BatchIssuance; - toJSON(message: _132.BatchIssuance): unknown; - fromPartial(object: Partial<_132.BatchIssuance>): _132.BatchIssuance; - fromAmino(object: _132.BatchIssuanceAmino): _132.BatchIssuance; - toAmino(message: _132.BatchIssuance): _132.BatchIssuanceAmino; - fromAminoMsg(object: _132.BatchIssuanceAminoMsg): _132.BatchIssuance; - fromProtoMsg(message: _132.BatchIssuanceProtoMsg): _132.BatchIssuance; - toProto(message: _132.BatchIssuance): Uint8Array; - toProtoMsg(message: _132.BatchIssuance): _132.BatchIssuanceProtoMsg; + typeUrl: string; + encode(message: _133.BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.BatchIssuance; + fromJSON(object: any): _133.BatchIssuance; + toJSON(message: _133.BatchIssuance): unknown; + fromPartial(object: Partial<_133.BatchIssuance>): _133.BatchIssuance; + fromAmino(object: _133.BatchIssuanceAmino): _133.BatchIssuance; + toAmino(message: _133.BatchIssuance): _133.BatchIssuanceAmino; + fromAminoMsg(object: _133.BatchIssuanceAminoMsg): _133.BatchIssuance; + fromProtoMsg(message: _133.BatchIssuanceProtoMsg): _133.BatchIssuance; + toProto(message: _133.BatchIssuance): Uint8Array; + toProtoMsg(message: _133.BatchIssuance): _133.BatchIssuanceProtoMsg; }; OriginTx: { - encode(message: _132.OriginTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.OriginTx; - fromJSON(object: any): _132.OriginTx; - toJSON(message: _132.OriginTx): unknown; - fromPartial(object: Partial<_132.OriginTx>): _132.OriginTx; - fromAmino(object: _132.OriginTxAmino): _132.OriginTx; - toAmino(message: _132.OriginTx): _132.OriginTxAmino; - fromAminoMsg(object: _132.OriginTxAminoMsg): _132.OriginTx; - fromProtoMsg(message: _132.OriginTxProtoMsg): _132.OriginTx; - toProto(message: _132.OriginTx): Uint8Array; - toProtoMsg(message: _132.OriginTx): _132.OriginTxProtoMsg; + typeUrl: string; + encode(message: _133.OriginTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.OriginTx; + fromJSON(object: any): _133.OriginTx; + toJSON(message: _133.OriginTx): unknown; + fromPartial(object: Partial<_133.OriginTx>): _133.OriginTx; + fromAmino(object: _133.OriginTxAmino): _133.OriginTx; + toAmino(message: _133.OriginTx): _133.OriginTxAmino; + fromAminoMsg(object: _133.OriginTxAminoMsg): _133.OriginTx; + fromProtoMsg(message: _133.OriginTxProtoMsg): _133.OriginTx; + toProto(message: _133.OriginTx): Uint8Array; + toProtoMsg(message: _133.OriginTx): _133.OriginTxProtoMsg; }; CreditTypeProposal: { - encode(message: _132.CreditTypeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.CreditTypeProposal; - fromJSON(object: any): _132.CreditTypeProposal; - toJSON(message: _132.CreditTypeProposal): unknown; - fromPartial(object: Partial<_132.CreditTypeProposal>): _132.CreditTypeProposal; - fromAmino(object: _132.CreditTypeProposalAmino): _132.CreditTypeProposal; - toAmino(message: _132.CreditTypeProposal): _132.CreditTypeProposalAmino; - fromAminoMsg(object: _132.CreditTypeProposalAminoMsg): _132.CreditTypeProposal; - fromProtoMsg(message: _132.CreditTypeProposalProtoMsg): _132.CreditTypeProposal; - toProto(message: _132.CreditTypeProposal): Uint8Array; - toProtoMsg(message: _132.CreditTypeProposal): _132.CreditTypeProposalProtoMsg; + typeUrl: string; + encode(message: _133.CreditTypeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.CreditTypeProposal; + fromJSON(object: any): _133.CreditTypeProposal; + toJSON(message: _133.CreditTypeProposal): unknown; + fromPartial(object: Partial<_133.CreditTypeProposal>): _133.CreditTypeProposal; + fromAmino(object: _133.CreditTypeProposalAmino): _133.CreditTypeProposal; + toAmino(message: _133.CreditTypeProposal): _133.CreditTypeProposalAmino; + fromAminoMsg(object: _133.CreditTypeProposalAminoMsg): _133.CreditTypeProposal; + fromProtoMsg(message: _133.CreditTypeProposalProtoMsg): _133.CreditTypeProposal; + toProto(message: _133.CreditTypeProposal): Uint8Array; + toProtoMsg(message: _133.CreditTypeProposal): _133.CreditTypeProposalProtoMsg; }; AllowedDenom: { - encode(message: _132.AllowedDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _132.AllowedDenom; - fromJSON(object: any): _132.AllowedDenom; - toJSON(message: _132.AllowedDenom): unknown; - fromPartial(object: Partial<_132.AllowedDenom>): _132.AllowedDenom; - fromAmino(object: _132.AllowedDenomAmino): _132.AllowedDenom; - toAmino(message: _132.AllowedDenom): _132.AllowedDenomAmino; - fromAminoMsg(object: _132.AllowedDenomAminoMsg): _132.AllowedDenom; - fromProtoMsg(message: _132.AllowedDenomProtoMsg): _132.AllowedDenom; - toProto(message: _132.AllowedDenom): Uint8Array; - toProtoMsg(message: _132.AllowedDenom): _132.AllowedDenomProtoMsg; + typeUrl: string; + encode(message: _133.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.AllowedDenom; + fromJSON(object: any): _133.AllowedDenom; + toJSON(message: _133.AllowedDenom): unknown; + fromPartial(object: Partial<_133.AllowedDenom>): _133.AllowedDenom; + fromAmino(object: _133.AllowedDenomAmino): _133.AllowedDenom; + toAmino(message: _133.AllowedDenom): _133.AllowedDenomAmino; + fromAminoMsg(object: _133.AllowedDenomAminoMsg): _133.AllowedDenom; + fromProtoMsg(message: _133.AllowedDenomProtoMsg): _133.AllowedDenom; + toProto(message: _133.AllowedDenom): Uint8Array; + toProtoMsg(message: _133.AllowedDenom): _133.AllowedDenomProtoMsg; }; MsgAddCreditType: { - encode(message: _131.MsgAddCreditType, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddCreditType; - fromJSON(object: any): _131.MsgAddCreditType; - toJSON(message: _131.MsgAddCreditType): unknown; - fromPartial(object: Partial<_131.MsgAddCreditType>): _131.MsgAddCreditType; - fromAmino(object: _131.MsgAddCreditTypeAmino): _131.MsgAddCreditType; - toAmino(message: _131.MsgAddCreditType): _131.MsgAddCreditTypeAmino; - fromAminoMsg(object: _131.MsgAddCreditTypeAminoMsg): _131.MsgAddCreditType; - toAminoMsg(message: _131.MsgAddCreditType): _131.MsgAddCreditTypeAminoMsg; - fromProtoMsg(message: _131.MsgAddCreditTypeProtoMsg): _131.MsgAddCreditType; - toProto(message: _131.MsgAddCreditType): Uint8Array; - toProtoMsg(message: _131.MsgAddCreditType): _131.MsgAddCreditTypeProtoMsg; + typeUrl: string; + encode(message: _132.MsgAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddCreditType; + fromJSON(object: any): _132.MsgAddCreditType; + toJSON(message: _132.MsgAddCreditType): unknown; + fromPartial(object: Partial<_132.MsgAddCreditType>): _132.MsgAddCreditType; + fromAmino(object: _132.MsgAddCreditTypeAmino): _132.MsgAddCreditType; + toAmino(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeAmino; + fromAminoMsg(object: _132.MsgAddCreditTypeAminoMsg): _132.MsgAddCreditType; + toAminoMsg(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeAminoMsg; + fromProtoMsg(message: _132.MsgAddCreditTypeProtoMsg): _132.MsgAddCreditType; + toProto(message: _132.MsgAddCreditType): Uint8Array; + toProtoMsg(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeProtoMsg; }; MsgAddCreditTypeResponse: { - encode(_: _131.MsgAddCreditTypeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddCreditTypeResponse; - fromJSON(_: any): _131.MsgAddCreditTypeResponse; - toJSON(_: _131.MsgAddCreditTypeResponse): unknown; - fromPartial(_: Partial<_131.MsgAddCreditTypeResponse>): _131.MsgAddCreditTypeResponse; - fromAmino(_: _131.MsgAddCreditTypeResponseAmino): _131.MsgAddCreditTypeResponse; - toAmino(_: _131.MsgAddCreditTypeResponse): _131.MsgAddCreditTypeResponseAmino; - fromAminoMsg(object: _131.MsgAddCreditTypeResponseAminoMsg): _131.MsgAddCreditTypeResponse; - fromProtoMsg(message: _131.MsgAddCreditTypeResponseProtoMsg): _131.MsgAddCreditTypeResponse; - toProto(message: _131.MsgAddCreditTypeResponse): Uint8Array; - toProtoMsg(message: _131.MsgAddCreditTypeResponse): _131.MsgAddCreditTypeResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgAddCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddCreditTypeResponse; + fromJSON(_: any): _132.MsgAddCreditTypeResponse; + toJSON(_: _132.MsgAddCreditTypeResponse): unknown; + fromPartial(_: Partial<_132.MsgAddCreditTypeResponse>): _132.MsgAddCreditTypeResponse; + fromAmino(_: _132.MsgAddCreditTypeResponseAmino): _132.MsgAddCreditTypeResponse; + toAmino(_: _132.MsgAddCreditTypeResponse): _132.MsgAddCreditTypeResponseAmino; + fromAminoMsg(object: _132.MsgAddCreditTypeResponseAminoMsg): _132.MsgAddCreditTypeResponse; + fromProtoMsg(message: _132.MsgAddCreditTypeResponseProtoMsg): _132.MsgAddCreditTypeResponse; + toProto(message: _132.MsgAddCreditTypeResponse): Uint8Array; + toProtoMsg(message: _132.MsgAddCreditTypeResponse): _132.MsgAddCreditTypeResponseProtoMsg; }; MsgCreateClass: { - encode(message: _131.MsgCreateClass, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateClass; - fromJSON(object: any): _131.MsgCreateClass; - toJSON(message: _131.MsgCreateClass): unknown; - fromPartial(object: Partial<_131.MsgCreateClass>): _131.MsgCreateClass; - fromAmino(object: _131.MsgCreateClassAmino): _131.MsgCreateClass; - toAmino(message: _131.MsgCreateClass): _131.MsgCreateClassAmino; - fromAminoMsg(object: _131.MsgCreateClassAminoMsg): _131.MsgCreateClass; - toAminoMsg(message: _131.MsgCreateClass): _131.MsgCreateClassAminoMsg; - fromProtoMsg(message: _131.MsgCreateClassProtoMsg): _131.MsgCreateClass; - toProto(message: _131.MsgCreateClass): Uint8Array; - toProtoMsg(message: _131.MsgCreateClass): _131.MsgCreateClassProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateClass; + fromJSON(object: any): _132.MsgCreateClass; + toJSON(message: _132.MsgCreateClass): unknown; + fromPartial(object: Partial<_132.MsgCreateClass>): _132.MsgCreateClass; + fromAmino(object: _132.MsgCreateClassAmino): _132.MsgCreateClass; + toAmino(message: _132.MsgCreateClass): _132.MsgCreateClassAmino; + fromAminoMsg(object: _132.MsgCreateClassAminoMsg): _132.MsgCreateClass; + toAminoMsg(message: _132.MsgCreateClass): _132.MsgCreateClassAminoMsg; + fromProtoMsg(message: _132.MsgCreateClassProtoMsg): _132.MsgCreateClass; + toProto(message: _132.MsgCreateClass): Uint8Array; + toProtoMsg(message: _132.MsgCreateClass): _132.MsgCreateClassProtoMsg; }; MsgCreateClassResponse: { - encode(message: _131.MsgCreateClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateClassResponse; - fromJSON(object: any): _131.MsgCreateClassResponse; - toJSON(message: _131.MsgCreateClassResponse): unknown; - fromPartial(object: Partial<_131.MsgCreateClassResponse>): _131.MsgCreateClassResponse; - fromAmino(object: _131.MsgCreateClassResponseAmino): _131.MsgCreateClassResponse; - toAmino(message: _131.MsgCreateClassResponse): _131.MsgCreateClassResponseAmino; - fromAminoMsg(object: _131.MsgCreateClassResponseAminoMsg): _131.MsgCreateClassResponse; - fromProtoMsg(message: _131.MsgCreateClassResponseProtoMsg): _131.MsgCreateClassResponse; - toProto(message: _131.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _131.MsgCreateClassResponse): _131.MsgCreateClassResponseProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateClassResponse; + fromJSON(object: any): _132.MsgCreateClassResponse; + toJSON(message: _132.MsgCreateClassResponse): unknown; + fromPartial(object: Partial<_132.MsgCreateClassResponse>): _132.MsgCreateClassResponse; + fromAmino(object: _132.MsgCreateClassResponseAmino): _132.MsgCreateClassResponse; + toAmino(message: _132.MsgCreateClassResponse): _132.MsgCreateClassResponseAmino; + fromAminoMsg(object: _132.MsgCreateClassResponseAminoMsg): _132.MsgCreateClassResponse; + fromProtoMsg(message: _132.MsgCreateClassResponseProtoMsg): _132.MsgCreateClassResponse; + toProto(message: _132.MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: _132.MsgCreateClassResponse): _132.MsgCreateClassResponseProtoMsg; }; MsgCreateProject: { - encode(message: _131.MsgCreateProject, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateProject; - fromJSON(object: any): _131.MsgCreateProject; - toJSON(message: _131.MsgCreateProject): unknown; - fromPartial(object: Partial<_131.MsgCreateProject>): _131.MsgCreateProject; - fromAmino(object: _131.MsgCreateProjectAmino): _131.MsgCreateProject; - toAmino(message: _131.MsgCreateProject): _131.MsgCreateProjectAmino; - fromAminoMsg(object: _131.MsgCreateProjectAminoMsg): _131.MsgCreateProject; - toAminoMsg(message: _131.MsgCreateProject): _131.MsgCreateProjectAminoMsg; - fromProtoMsg(message: _131.MsgCreateProjectProtoMsg): _131.MsgCreateProject; - toProto(message: _131.MsgCreateProject): Uint8Array; - toProtoMsg(message: _131.MsgCreateProject): _131.MsgCreateProjectProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateProject; + fromJSON(object: any): _132.MsgCreateProject; + toJSON(message: _132.MsgCreateProject): unknown; + fromPartial(object: Partial<_132.MsgCreateProject>): _132.MsgCreateProject; + fromAmino(object: _132.MsgCreateProjectAmino): _132.MsgCreateProject; + toAmino(message: _132.MsgCreateProject): _132.MsgCreateProjectAmino; + fromAminoMsg(object: _132.MsgCreateProjectAminoMsg): _132.MsgCreateProject; + toAminoMsg(message: _132.MsgCreateProject): _132.MsgCreateProjectAminoMsg; + fromProtoMsg(message: _132.MsgCreateProjectProtoMsg): _132.MsgCreateProject; + toProto(message: _132.MsgCreateProject): Uint8Array; + toProtoMsg(message: _132.MsgCreateProject): _132.MsgCreateProjectProtoMsg; }; MsgCreateProjectResponse: { - encode(message: _131.MsgCreateProjectResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateProjectResponse; - fromJSON(object: any): _131.MsgCreateProjectResponse; - toJSON(message: _131.MsgCreateProjectResponse): unknown; - fromPartial(object: Partial<_131.MsgCreateProjectResponse>): _131.MsgCreateProjectResponse; - fromAmino(object: _131.MsgCreateProjectResponseAmino): _131.MsgCreateProjectResponse; - toAmino(message: _131.MsgCreateProjectResponse): _131.MsgCreateProjectResponseAmino; - fromAminoMsg(object: _131.MsgCreateProjectResponseAminoMsg): _131.MsgCreateProjectResponse; - fromProtoMsg(message: _131.MsgCreateProjectResponseProtoMsg): _131.MsgCreateProjectResponse; - toProto(message: _131.MsgCreateProjectResponse): Uint8Array; - toProtoMsg(message: _131.MsgCreateProjectResponse): _131.MsgCreateProjectResponseProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateProjectResponse; + fromJSON(object: any): _132.MsgCreateProjectResponse; + toJSON(message: _132.MsgCreateProjectResponse): unknown; + fromPartial(object: Partial<_132.MsgCreateProjectResponse>): _132.MsgCreateProjectResponse; + fromAmino(object: _132.MsgCreateProjectResponseAmino): _132.MsgCreateProjectResponse; + toAmino(message: _132.MsgCreateProjectResponse): _132.MsgCreateProjectResponseAmino; + fromAminoMsg(object: _132.MsgCreateProjectResponseAminoMsg): _132.MsgCreateProjectResponse; + fromProtoMsg(message: _132.MsgCreateProjectResponseProtoMsg): _132.MsgCreateProjectResponse; + toProto(message: _132.MsgCreateProjectResponse): Uint8Array; + toProtoMsg(message: _132.MsgCreateProjectResponse): _132.MsgCreateProjectResponseProtoMsg; }; MsgCreateBatch: { - encode(message: _131.MsgCreateBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateBatch; - fromJSON(object: any): _131.MsgCreateBatch; - toJSON(message: _131.MsgCreateBatch): unknown; - fromPartial(object: Partial<_131.MsgCreateBatch>): _131.MsgCreateBatch; - fromAmino(object: _131.MsgCreateBatchAmino): _131.MsgCreateBatch; - toAmino(message: _131.MsgCreateBatch): _131.MsgCreateBatchAmino; - fromAminoMsg(object: _131.MsgCreateBatchAminoMsg): _131.MsgCreateBatch; - toAminoMsg(message: _131.MsgCreateBatch): _131.MsgCreateBatchAminoMsg; - fromProtoMsg(message: _131.MsgCreateBatchProtoMsg): _131.MsgCreateBatch; - toProto(message: _131.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _131.MsgCreateBatch): _131.MsgCreateBatchProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateBatch; + fromJSON(object: any): _132.MsgCreateBatch; + toJSON(message: _132.MsgCreateBatch): unknown; + fromPartial(object: Partial<_132.MsgCreateBatch>): _132.MsgCreateBatch; + fromAmino(object: _132.MsgCreateBatchAmino): _132.MsgCreateBatch; + toAmino(message: _132.MsgCreateBatch): _132.MsgCreateBatchAmino; + fromAminoMsg(object: _132.MsgCreateBatchAminoMsg): _132.MsgCreateBatch; + toAminoMsg(message: _132.MsgCreateBatch): _132.MsgCreateBatchAminoMsg; + fromProtoMsg(message: _132.MsgCreateBatchProtoMsg): _132.MsgCreateBatch; + toProto(message: _132.MsgCreateBatch): Uint8Array; + toProtoMsg(message: _132.MsgCreateBatch): _132.MsgCreateBatchProtoMsg; }; MsgCreateBatchResponse: { - encode(message: _131.MsgCreateBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCreateBatchResponse; - fromJSON(object: any): _131.MsgCreateBatchResponse; - toJSON(message: _131.MsgCreateBatchResponse): unknown; - fromPartial(object: Partial<_131.MsgCreateBatchResponse>): _131.MsgCreateBatchResponse; - fromAmino(object: _131.MsgCreateBatchResponseAmino): _131.MsgCreateBatchResponse; - toAmino(message: _131.MsgCreateBatchResponse): _131.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _131.MsgCreateBatchResponseAminoMsg): _131.MsgCreateBatchResponse; - fromProtoMsg(message: _131.MsgCreateBatchResponseProtoMsg): _131.MsgCreateBatchResponse; - toProto(message: _131.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _131.MsgCreateBatchResponse): _131.MsgCreateBatchResponseProtoMsg; + typeUrl: string; + encode(message: _132.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateBatchResponse; + fromJSON(object: any): _132.MsgCreateBatchResponse; + toJSON(message: _132.MsgCreateBatchResponse): unknown; + fromPartial(object: Partial<_132.MsgCreateBatchResponse>): _132.MsgCreateBatchResponse; + fromAmino(object: _132.MsgCreateBatchResponseAmino): _132.MsgCreateBatchResponse; + toAmino(message: _132.MsgCreateBatchResponse): _132.MsgCreateBatchResponseAmino; + fromAminoMsg(object: _132.MsgCreateBatchResponseAminoMsg): _132.MsgCreateBatchResponse; + fromProtoMsg(message: _132.MsgCreateBatchResponseProtoMsg): _132.MsgCreateBatchResponse; + toProto(message: _132.MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: _132.MsgCreateBatchResponse): _132.MsgCreateBatchResponseProtoMsg; }; MsgMintBatchCredits: { - encode(message: _131.MsgMintBatchCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgMintBatchCredits; - fromJSON(object: any): _131.MsgMintBatchCredits; - toJSON(message: _131.MsgMintBatchCredits): unknown; - fromPartial(object: Partial<_131.MsgMintBatchCredits>): _131.MsgMintBatchCredits; - fromAmino(object: _131.MsgMintBatchCreditsAmino): _131.MsgMintBatchCredits; - toAmino(message: _131.MsgMintBatchCredits): _131.MsgMintBatchCreditsAmino; - fromAminoMsg(object: _131.MsgMintBatchCreditsAminoMsg): _131.MsgMintBatchCredits; - toAminoMsg(message: _131.MsgMintBatchCredits): _131.MsgMintBatchCreditsAminoMsg; - fromProtoMsg(message: _131.MsgMintBatchCreditsProtoMsg): _131.MsgMintBatchCredits; - toProto(message: _131.MsgMintBatchCredits): Uint8Array; - toProtoMsg(message: _131.MsgMintBatchCredits): _131.MsgMintBatchCreditsProtoMsg; + typeUrl: string; + encode(message: _132.MsgMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgMintBatchCredits; + fromJSON(object: any): _132.MsgMintBatchCredits; + toJSON(message: _132.MsgMintBatchCredits): unknown; + fromPartial(object: Partial<_132.MsgMintBatchCredits>): _132.MsgMintBatchCredits; + fromAmino(object: _132.MsgMintBatchCreditsAmino): _132.MsgMintBatchCredits; + toAmino(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsAmino; + fromAminoMsg(object: _132.MsgMintBatchCreditsAminoMsg): _132.MsgMintBatchCredits; + toAminoMsg(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsAminoMsg; + fromProtoMsg(message: _132.MsgMintBatchCreditsProtoMsg): _132.MsgMintBatchCredits; + toProto(message: _132.MsgMintBatchCredits): Uint8Array; + toProtoMsg(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsProtoMsg; }; MsgMintBatchCreditsResponse: { - encode(_: _131.MsgMintBatchCreditsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgMintBatchCreditsResponse; - fromJSON(_: any): _131.MsgMintBatchCreditsResponse; - toJSON(_: _131.MsgMintBatchCreditsResponse): unknown; - fromPartial(_: Partial<_131.MsgMintBatchCreditsResponse>): _131.MsgMintBatchCreditsResponse; - fromAmino(_: _131.MsgMintBatchCreditsResponseAmino): _131.MsgMintBatchCreditsResponse; - toAmino(_: _131.MsgMintBatchCreditsResponse): _131.MsgMintBatchCreditsResponseAmino; - fromAminoMsg(object: _131.MsgMintBatchCreditsResponseAminoMsg): _131.MsgMintBatchCreditsResponse; - fromProtoMsg(message: _131.MsgMintBatchCreditsResponseProtoMsg): _131.MsgMintBatchCreditsResponse; - toProto(message: _131.MsgMintBatchCreditsResponse): Uint8Array; - toProtoMsg(message: _131.MsgMintBatchCreditsResponse): _131.MsgMintBatchCreditsResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgMintBatchCreditsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgMintBatchCreditsResponse; + fromJSON(_: any): _132.MsgMintBatchCreditsResponse; + toJSON(_: _132.MsgMintBatchCreditsResponse): unknown; + fromPartial(_: Partial<_132.MsgMintBatchCreditsResponse>): _132.MsgMintBatchCreditsResponse; + fromAmino(_: _132.MsgMintBatchCreditsResponseAmino): _132.MsgMintBatchCreditsResponse; + toAmino(_: _132.MsgMintBatchCreditsResponse): _132.MsgMintBatchCreditsResponseAmino; + fromAminoMsg(object: _132.MsgMintBatchCreditsResponseAminoMsg): _132.MsgMintBatchCreditsResponse; + fromProtoMsg(message: _132.MsgMintBatchCreditsResponseProtoMsg): _132.MsgMintBatchCreditsResponse; + toProto(message: _132.MsgMintBatchCreditsResponse): Uint8Array; + toProtoMsg(message: _132.MsgMintBatchCreditsResponse): _132.MsgMintBatchCreditsResponseProtoMsg; }; MsgSealBatch: { - encode(message: _131.MsgSealBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSealBatch; - fromJSON(object: any): _131.MsgSealBatch; - toJSON(message: _131.MsgSealBatch): unknown; - fromPartial(object: Partial<_131.MsgSealBatch>): _131.MsgSealBatch; - fromAmino(object: _131.MsgSealBatchAmino): _131.MsgSealBatch; - toAmino(message: _131.MsgSealBatch): _131.MsgSealBatchAmino; - fromAminoMsg(object: _131.MsgSealBatchAminoMsg): _131.MsgSealBatch; - toAminoMsg(message: _131.MsgSealBatch): _131.MsgSealBatchAminoMsg; - fromProtoMsg(message: _131.MsgSealBatchProtoMsg): _131.MsgSealBatch; - toProto(message: _131.MsgSealBatch): Uint8Array; - toProtoMsg(message: _131.MsgSealBatch): _131.MsgSealBatchProtoMsg; + typeUrl: string; + encode(message: _132.MsgSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSealBatch; + fromJSON(object: any): _132.MsgSealBatch; + toJSON(message: _132.MsgSealBatch): unknown; + fromPartial(object: Partial<_132.MsgSealBatch>): _132.MsgSealBatch; + fromAmino(object: _132.MsgSealBatchAmino): _132.MsgSealBatch; + toAmino(message: _132.MsgSealBatch): _132.MsgSealBatchAmino; + fromAminoMsg(object: _132.MsgSealBatchAminoMsg): _132.MsgSealBatch; + toAminoMsg(message: _132.MsgSealBatch): _132.MsgSealBatchAminoMsg; + fromProtoMsg(message: _132.MsgSealBatchProtoMsg): _132.MsgSealBatch; + toProto(message: _132.MsgSealBatch): Uint8Array; + toProtoMsg(message: _132.MsgSealBatch): _132.MsgSealBatchProtoMsg; }; MsgSealBatchResponse: { - encode(_: _131.MsgSealBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSealBatchResponse; - fromJSON(_: any): _131.MsgSealBatchResponse; - toJSON(_: _131.MsgSealBatchResponse): unknown; - fromPartial(_: Partial<_131.MsgSealBatchResponse>): _131.MsgSealBatchResponse; - fromAmino(_: _131.MsgSealBatchResponseAmino): _131.MsgSealBatchResponse; - toAmino(_: _131.MsgSealBatchResponse): _131.MsgSealBatchResponseAmino; - fromAminoMsg(object: _131.MsgSealBatchResponseAminoMsg): _131.MsgSealBatchResponse; - fromProtoMsg(message: _131.MsgSealBatchResponseProtoMsg): _131.MsgSealBatchResponse; - toProto(message: _131.MsgSealBatchResponse): Uint8Array; - toProtoMsg(message: _131.MsgSealBatchResponse): _131.MsgSealBatchResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgSealBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSealBatchResponse; + fromJSON(_: any): _132.MsgSealBatchResponse; + toJSON(_: _132.MsgSealBatchResponse): unknown; + fromPartial(_: Partial<_132.MsgSealBatchResponse>): _132.MsgSealBatchResponse; + fromAmino(_: _132.MsgSealBatchResponseAmino): _132.MsgSealBatchResponse; + toAmino(_: _132.MsgSealBatchResponse): _132.MsgSealBatchResponseAmino; + fromAminoMsg(object: _132.MsgSealBatchResponseAminoMsg): _132.MsgSealBatchResponse; + fromProtoMsg(message: _132.MsgSealBatchResponseProtoMsg): _132.MsgSealBatchResponse; + toProto(message: _132.MsgSealBatchResponse): Uint8Array; + toProtoMsg(message: _132.MsgSealBatchResponse): _132.MsgSealBatchResponseProtoMsg; }; MsgSend: { - encode(message: _131.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSend; - fromJSON(object: any): _131.MsgSend; - toJSON(message: _131.MsgSend): unknown; - fromPartial(object: Partial<_131.MsgSend>): _131.MsgSend; - fromAmino(object: _131.MsgSendAmino): _131.MsgSend; - toAmino(message: _131.MsgSend): _131.MsgSendAmino; - fromAminoMsg(object: _131.MsgSendAminoMsg): _131.MsgSend; - toAminoMsg(message: _131.MsgSend): _131.MsgSendAminoMsg; - fromProtoMsg(message: _131.MsgSendProtoMsg): _131.MsgSend; - toProto(message: _131.MsgSend): Uint8Array; - toProtoMsg(message: _131.MsgSend): _131.MsgSendProtoMsg; + typeUrl: string; + encode(message: _132.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSend; + fromJSON(object: any): _132.MsgSend; + toJSON(message: _132.MsgSend): unknown; + fromPartial(object: Partial<_132.MsgSend>): _132.MsgSend; + fromAmino(object: _132.MsgSendAmino): _132.MsgSend; + toAmino(message: _132.MsgSend): _132.MsgSendAmino; + fromAminoMsg(object: _132.MsgSendAminoMsg): _132.MsgSend; + toAminoMsg(message: _132.MsgSend): _132.MsgSendAminoMsg; + fromProtoMsg(message: _132.MsgSendProtoMsg): _132.MsgSend; + toProto(message: _132.MsgSend): Uint8Array; + toProtoMsg(message: _132.MsgSend): _132.MsgSendProtoMsg; }; MsgSend_SendCredits: { - encode(message: _131.MsgSend_SendCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSend_SendCredits; - fromJSON(object: any): _131.MsgSend_SendCredits; - toJSON(message: _131.MsgSend_SendCredits): unknown; - fromPartial(object: Partial<_131.MsgSend_SendCredits>): _131.MsgSend_SendCredits; - fromAmino(object: _131.MsgSend_SendCreditsAmino): _131.MsgSend_SendCredits; - toAmino(message: _131.MsgSend_SendCredits): _131.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _131.MsgSend_SendCreditsAminoMsg): _131.MsgSend_SendCredits; - fromProtoMsg(message: _131.MsgSend_SendCreditsProtoMsg): _131.MsgSend_SendCredits; - toProto(message: _131.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _131.MsgSend_SendCredits): _131.MsgSend_SendCreditsProtoMsg; + typeUrl: string; + encode(message: _132.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSend_SendCredits; + fromJSON(object: any): _132.MsgSend_SendCredits; + toJSON(message: _132.MsgSend_SendCredits): unknown; + fromPartial(object: Partial<_132.MsgSend_SendCredits>): _132.MsgSend_SendCredits; + fromAmino(object: _132.MsgSend_SendCreditsAmino): _132.MsgSend_SendCredits; + toAmino(message: _132.MsgSend_SendCredits): _132.MsgSend_SendCreditsAmino; + fromAminoMsg(object: _132.MsgSend_SendCreditsAminoMsg): _132.MsgSend_SendCredits; + fromProtoMsg(message: _132.MsgSend_SendCreditsProtoMsg): _132.MsgSend_SendCredits; + toProto(message: _132.MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: _132.MsgSend_SendCredits): _132.MsgSend_SendCreditsProtoMsg; }; MsgSendResponse: { - encode(_: _131.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSendResponse; - fromJSON(_: any): _131.MsgSendResponse; - toJSON(_: _131.MsgSendResponse): unknown; - fromPartial(_: Partial<_131.MsgSendResponse>): _131.MsgSendResponse; - fromAmino(_: _131.MsgSendResponseAmino): _131.MsgSendResponse; - toAmino(_: _131.MsgSendResponse): _131.MsgSendResponseAmino; - fromAminoMsg(object: _131.MsgSendResponseAminoMsg): _131.MsgSendResponse; - fromProtoMsg(message: _131.MsgSendResponseProtoMsg): _131.MsgSendResponse; - toProto(message: _131.MsgSendResponse): Uint8Array; - toProtoMsg(message: _131.MsgSendResponse): _131.MsgSendResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSendResponse; + fromJSON(_: any): _132.MsgSendResponse; + toJSON(_: _132.MsgSendResponse): unknown; + fromPartial(_: Partial<_132.MsgSendResponse>): _132.MsgSendResponse; + fromAmino(_: _132.MsgSendResponseAmino): _132.MsgSendResponse; + toAmino(_: _132.MsgSendResponse): _132.MsgSendResponseAmino; + fromAminoMsg(object: _132.MsgSendResponseAminoMsg): _132.MsgSendResponse; + fromProtoMsg(message: _132.MsgSendResponseProtoMsg): _132.MsgSendResponse; + toProto(message: _132.MsgSendResponse): Uint8Array; + toProtoMsg(message: _132.MsgSendResponse): _132.MsgSendResponseProtoMsg; }; MsgRetire: { - encode(message: _131.MsgRetire, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRetire; - fromJSON(object: any): _131.MsgRetire; - toJSON(message: _131.MsgRetire): unknown; - fromPartial(object: Partial<_131.MsgRetire>): _131.MsgRetire; - fromAmino(object: _131.MsgRetireAmino): _131.MsgRetire; - toAmino(message: _131.MsgRetire): _131.MsgRetireAmino; - fromAminoMsg(object: _131.MsgRetireAminoMsg): _131.MsgRetire; - toAminoMsg(message: _131.MsgRetire): _131.MsgRetireAminoMsg; - fromProtoMsg(message: _131.MsgRetireProtoMsg): _131.MsgRetire; - toProto(message: _131.MsgRetire): Uint8Array; - toProtoMsg(message: _131.MsgRetire): _131.MsgRetireProtoMsg; + typeUrl: string; + encode(message: _132.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRetire; + fromJSON(object: any): _132.MsgRetire; + toJSON(message: _132.MsgRetire): unknown; + fromPartial(object: Partial<_132.MsgRetire>): _132.MsgRetire; + fromAmino(object: _132.MsgRetireAmino): _132.MsgRetire; + toAmino(message: _132.MsgRetire): _132.MsgRetireAmino; + fromAminoMsg(object: _132.MsgRetireAminoMsg): _132.MsgRetire; + toAminoMsg(message: _132.MsgRetire): _132.MsgRetireAminoMsg; + fromProtoMsg(message: _132.MsgRetireProtoMsg): _132.MsgRetire; + toProto(message: _132.MsgRetire): Uint8Array; + toProtoMsg(message: _132.MsgRetire): _132.MsgRetireProtoMsg; }; MsgRetireResponse: { - encode(_: _131.MsgRetireResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRetireResponse; - fromJSON(_: any): _131.MsgRetireResponse; - toJSON(_: _131.MsgRetireResponse): unknown; - fromPartial(_: Partial<_131.MsgRetireResponse>): _131.MsgRetireResponse; - fromAmino(_: _131.MsgRetireResponseAmino): _131.MsgRetireResponse; - toAmino(_: _131.MsgRetireResponse): _131.MsgRetireResponseAmino; - fromAminoMsg(object: _131.MsgRetireResponseAminoMsg): _131.MsgRetireResponse; - fromProtoMsg(message: _131.MsgRetireResponseProtoMsg): _131.MsgRetireResponse; - toProto(message: _131.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _131.MsgRetireResponse): _131.MsgRetireResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRetireResponse; + fromJSON(_: any): _132.MsgRetireResponse; + toJSON(_: _132.MsgRetireResponse): unknown; + fromPartial(_: Partial<_132.MsgRetireResponse>): _132.MsgRetireResponse; + fromAmino(_: _132.MsgRetireResponseAmino): _132.MsgRetireResponse; + toAmino(_: _132.MsgRetireResponse): _132.MsgRetireResponseAmino; + fromAminoMsg(object: _132.MsgRetireResponseAminoMsg): _132.MsgRetireResponse; + fromProtoMsg(message: _132.MsgRetireResponseProtoMsg): _132.MsgRetireResponse; + toProto(message: _132.MsgRetireResponse): Uint8Array; + toProtoMsg(message: _132.MsgRetireResponse): _132.MsgRetireResponseProtoMsg; }; MsgCancel: { - encode(message: _131.MsgCancel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCancel; - fromJSON(object: any): _131.MsgCancel; - toJSON(message: _131.MsgCancel): unknown; - fromPartial(object: Partial<_131.MsgCancel>): _131.MsgCancel; - fromAmino(object: _131.MsgCancelAmino): _131.MsgCancel; - toAmino(message: _131.MsgCancel): _131.MsgCancelAmino; - fromAminoMsg(object: _131.MsgCancelAminoMsg): _131.MsgCancel; - toAminoMsg(message: _131.MsgCancel): _131.MsgCancelAminoMsg; - fromProtoMsg(message: _131.MsgCancelProtoMsg): _131.MsgCancel; - toProto(message: _131.MsgCancel): Uint8Array; - toProtoMsg(message: _131.MsgCancel): _131.MsgCancelProtoMsg; + typeUrl: string; + encode(message: _132.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCancel; + fromJSON(object: any): _132.MsgCancel; + toJSON(message: _132.MsgCancel): unknown; + fromPartial(object: Partial<_132.MsgCancel>): _132.MsgCancel; + fromAmino(object: _132.MsgCancelAmino): _132.MsgCancel; + toAmino(message: _132.MsgCancel): _132.MsgCancelAmino; + fromAminoMsg(object: _132.MsgCancelAminoMsg): _132.MsgCancel; + toAminoMsg(message: _132.MsgCancel): _132.MsgCancelAminoMsg; + fromProtoMsg(message: _132.MsgCancelProtoMsg): _132.MsgCancel; + toProto(message: _132.MsgCancel): Uint8Array; + toProtoMsg(message: _132.MsgCancel): _132.MsgCancelProtoMsg; }; MsgCancelResponse: { - encode(_: _131.MsgCancelResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgCancelResponse; - fromJSON(_: any): _131.MsgCancelResponse; - toJSON(_: _131.MsgCancelResponse): unknown; - fromPartial(_: Partial<_131.MsgCancelResponse>): _131.MsgCancelResponse; - fromAmino(_: _131.MsgCancelResponseAmino): _131.MsgCancelResponse; - toAmino(_: _131.MsgCancelResponse): _131.MsgCancelResponseAmino; - fromAminoMsg(object: _131.MsgCancelResponseAminoMsg): _131.MsgCancelResponse; - fromProtoMsg(message: _131.MsgCancelResponseProtoMsg): _131.MsgCancelResponse; - toProto(message: _131.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _131.MsgCancelResponse): _131.MsgCancelResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCancelResponse; + fromJSON(_: any): _132.MsgCancelResponse; + toJSON(_: _132.MsgCancelResponse): unknown; + fromPartial(_: Partial<_132.MsgCancelResponse>): _132.MsgCancelResponse; + fromAmino(_: _132.MsgCancelResponseAmino): _132.MsgCancelResponse; + toAmino(_: _132.MsgCancelResponse): _132.MsgCancelResponseAmino; + fromAminoMsg(object: _132.MsgCancelResponseAminoMsg): _132.MsgCancelResponse; + fromProtoMsg(message: _132.MsgCancelResponseProtoMsg): _132.MsgCancelResponse; + toProto(message: _132.MsgCancelResponse): Uint8Array; + toProtoMsg(message: _132.MsgCancelResponse): _132.MsgCancelResponseProtoMsg; }; MsgUpdateClassAdmin: { - encode(message: _131.MsgUpdateClassAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassAdmin; - fromJSON(object: any): _131.MsgUpdateClassAdmin; - toJSON(message: _131.MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial<_131.MsgUpdateClassAdmin>): _131.MsgUpdateClassAdmin; - fromAmino(object: _131.MsgUpdateClassAdminAmino): _131.MsgUpdateClassAdmin; - toAmino(message: _131.MsgUpdateClassAdmin): _131.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _131.MsgUpdateClassAdminAminoMsg): _131.MsgUpdateClassAdmin; - toAminoMsg(message: _131.MsgUpdateClassAdmin): _131.MsgUpdateClassAdminAminoMsg; - fromProtoMsg(message: _131.MsgUpdateClassAdminProtoMsg): _131.MsgUpdateClassAdmin; - toProto(message: _131.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassAdmin): _131.MsgUpdateClassAdminProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassAdmin; + fromJSON(object: any): _132.MsgUpdateClassAdmin; + toJSON(message: _132.MsgUpdateClassAdmin): unknown; + fromPartial(object: Partial<_132.MsgUpdateClassAdmin>): _132.MsgUpdateClassAdmin; + fromAmino(object: _132.MsgUpdateClassAdminAmino): _132.MsgUpdateClassAdmin; + toAmino(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminAmino; + fromAminoMsg(object: _132.MsgUpdateClassAdminAminoMsg): _132.MsgUpdateClassAdmin; + toAminoMsg(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminAminoMsg; + fromProtoMsg(message: _132.MsgUpdateClassAdminProtoMsg): _132.MsgUpdateClassAdmin; + toProto(message: _132.MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminProtoMsg; }; MsgUpdateClassAdminResponse: { - encode(_: _131.MsgUpdateClassAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassAdminResponse; - fromJSON(_: any): _131.MsgUpdateClassAdminResponse; - toJSON(_: _131.MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateClassAdminResponse>): _131.MsgUpdateClassAdminResponse; - fromAmino(_: _131.MsgUpdateClassAdminResponseAmino): _131.MsgUpdateClassAdminResponse; - toAmino(_: _131.MsgUpdateClassAdminResponse): _131.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _131.MsgUpdateClassAdminResponseAminoMsg): _131.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _131.MsgUpdateClassAdminResponseProtoMsg): _131.MsgUpdateClassAdminResponse; - toProto(message: _131.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassAdminResponse): _131.MsgUpdateClassAdminResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassAdminResponse; + fromJSON(_: any): _132.MsgUpdateClassAdminResponse; + toJSON(_: _132.MsgUpdateClassAdminResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateClassAdminResponse>): _132.MsgUpdateClassAdminResponse; + fromAmino(_: _132.MsgUpdateClassAdminResponseAmino): _132.MsgUpdateClassAdminResponse; + toAmino(_: _132.MsgUpdateClassAdminResponse): _132.MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: _132.MsgUpdateClassAdminResponseAminoMsg): _132.MsgUpdateClassAdminResponse; + fromProtoMsg(message: _132.MsgUpdateClassAdminResponseProtoMsg): _132.MsgUpdateClassAdminResponse; + toProto(message: _132.MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassAdminResponse): _132.MsgUpdateClassAdminResponseProtoMsg; }; MsgUpdateClassIssuers: { - encode(message: _131.MsgUpdateClassIssuers, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassIssuers; - fromJSON(object: any): _131.MsgUpdateClassIssuers; - toJSON(message: _131.MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial<_131.MsgUpdateClassIssuers>): _131.MsgUpdateClassIssuers; - fromAmino(object: _131.MsgUpdateClassIssuersAmino): _131.MsgUpdateClassIssuers; - toAmino(message: _131.MsgUpdateClassIssuers): _131.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _131.MsgUpdateClassIssuersAminoMsg): _131.MsgUpdateClassIssuers; - toAminoMsg(message: _131.MsgUpdateClassIssuers): _131.MsgUpdateClassIssuersAminoMsg; - fromProtoMsg(message: _131.MsgUpdateClassIssuersProtoMsg): _131.MsgUpdateClassIssuers; - toProto(message: _131.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassIssuers): _131.MsgUpdateClassIssuersProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassIssuers; + fromJSON(object: any): _132.MsgUpdateClassIssuers; + toJSON(message: _132.MsgUpdateClassIssuers): unknown; + fromPartial(object: Partial<_132.MsgUpdateClassIssuers>): _132.MsgUpdateClassIssuers; + fromAmino(object: _132.MsgUpdateClassIssuersAmino): _132.MsgUpdateClassIssuers; + toAmino(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersAmino; + fromAminoMsg(object: _132.MsgUpdateClassIssuersAminoMsg): _132.MsgUpdateClassIssuers; + toAminoMsg(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersAminoMsg; + fromProtoMsg(message: _132.MsgUpdateClassIssuersProtoMsg): _132.MsgUpdateClassIssuers; + toProto(message: _132.MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersProtoMsg; }; MsgUpdateClassIssuersResponse: { - encode(_: _131.MsgUpdateClassIssuersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassIssuersResponse; - fromJSON(_: any): _131.MsgUpdateClassIssuersResponse; - toJSON(_: _131.MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateClassIssuersResponse>): _131.MsgUpdateClassIssuersResponse; - fromAmino(_: _131.MsgUpdateClassIssuersResponseAmino): _131.MsgUpdateClassIssuersResponse; - toAmino(_: _131.MsgUpdateClassIssuersResponse): _131.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _131.MsgUpdateClassIssuersResponseAminoMsg): _131.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _131.MsgUpdateClassIssuersResponseProtoMsg): _131.MsgUpdateClassIssuersResponse; - toProto(message: _131.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassIssuersResponse): _131.MsgUpdateClassIssuersResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassIssuersResponse; + fromJSON(_: any): _132.MsgUpdateClassIssuersResponse; + toJSON(_: _132.MsgUpdateClassIssuersResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateClassIssuersResponse>): _132.MsgUpdateClassIssuersResponse; + fromAmino(_: _132.MsgUpdateClassIssuersResponseAmino): _132.MsgUpdateClassIssuersResponse; + toAmino(_: _132.MsgUpdateClassIssuersResponse): _132.MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: _132.MsgUpdateClassIssuersResponseAminoMsg): _132.MsgUpdateClassIssuersResponse; + fromProtoMsg(message: _132.MsgUpdateClassIssuersResponseProtoMsg): _132.MsgUpdateClassIssuersResponse; + toProto(message: _132.MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassIssuersResponse): _132.MsgUpdateClassIssuersResponseProtoMsg; }; MsgUpdateClassMetadata: { - encode(message: _131.MsgUpdateClassMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassMetadata; - fromJSON(object: any): _131.MsgUpdateClassMetadata; - toJSON(message: _131.MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial<_131.MsgUpdateClassMetadata>): _131.MsgUpdateClassMetadata; - fromAmino(object: _131.MsgUpdateClassMetadataAmino): _131.MsgUpdateClassMetadata; - toAmino(message: _131.MsgUpdateClassMetadata): _131.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _131.MsgUpdateClassMetadataAminoMsg): _131.MsgUpdateClassMetadata; - toAminoMsg(message: _131.MsgUpdateClassMetadata): _131.MsgUpdateClassMetadataAminoMsg; - fromProtoMsg(message: _131.MsgUpdateClassMetadataProtoMsg): _131.MsgUpdateClassMetadata; - toProto(message: _131.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassMetadata): _131.MsgUpdateClassMetadataProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassMetadata; + fromJSON(object: any): _132.MsgUpdateClassMetadata; + toJSON(message: _132.MsgUpdateClassMetadata): unknown; + fromPartial(object: Partial<_132.MsgUpdateClassMetadata>): _132.MsgUpdateClassMetadata; + fromAmino(object: _132.MsgUpdateClassMetadataAmino): _132.MsgUpdateClassMetadata; + toAmino(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataAmino; + fromAminoMsg(object: _132.MsgUpdateClassMetadataAminoMsg): _132.MsgUpdateClassMetadata; + toAminoMsg(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataAminoMsg; + fromProtoMsg(message: _132.MsgUpdateClassMetadataProtoMsg): _132.MsgUpdateClassMetadata; + toProto(message: _132.MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataProtoMsg; }; MsgUpdateClassMetadataResponse: { - encode(_: _131.MsgUpdateClassMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassMetadataResponse; - fromJSON(_: any): _131.MsgUpdateClassMetadataResponse; - toJSON(_: _131.MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateClassMetadataResponse>): _131.MsgUpdateClassMetadataResponse; - fromAmino(_: _131.MsgUpdateClassMetadataResponseAmino): _131.MsgUpdateClassMetadataResponse; - toAmino(_: _131.MsgUpdateClassMetadataResponse): _131.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _131.MsgUpdateClassMetadataResponseAminoMsg): _131.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _131.MsgUpdateClassMetadataResponseProtoMsg): _131.MsgUpdateClassMetadataResponse; - toProto(message: _131.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassMetadataResponse): _131.MsgUpdateClassMetadataResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassMetadataResponse; + fromJSON(_: any): _132.MsgUpdateClassMetadataResponse; + toJSON(_: _132.MsgUpdateClassMetadataResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateClassMetadataResponse>): _132.MsgUpdateClassMetadataResponse; + fromAmino(_: _132.MsgUpdateClassMetadataResponseAmino): _132.MsgUpdateClassMetadataResponse; + toAmino(_: _132.MsgUpdateClassMetadataResponse): _132.MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: _132.MsgUpdateClassMetadataResponseAminoMsg): _132.MsgUpdateClassMetadataResponse; + fromProtoMsg(message: _132.MsgUpdateClassMetadataResponseProtoMsg): _132.MsgUpdateClassMetadataResponse; + toProto(message: _132.MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassMetadataResponse): _132.MsgUpdateClassMetadataResponseProtoMsg; }; MsgUpdateProjectAdmin: { - encode(message: _131.MsgUpdateProjectAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateProjectAdmin; - fromJSON(object: any): _131.MsgUpdateProjectAdmin; - toJSON(message: _131.MsgUpdateProjectAdmin): unknown; - fromPartial(object: Partial<_131.MsgUpdateProjectAdmin>): _131.MsgUpdateProjectAdmin; - fromAmino(object: _131.MsgUpdateProjectAdminAmino): _131.MsgUpdateProjectAdmin; - toAmino(message: _131.MsgUpdateProjectAdmin): _131.MsgUpdateProjectAdminAmino; - fromAminoMsg(object: _131.MsgUpdateProjectAdminAminoMsg): _131.MsgUpdateProjectAdmin; - toAminoMsg(message: _131.MsgUpdateProjectAdmin): _131.MsgUpdateProjectAdminAminoMsg; - fromProtoMsg(message: _131.MsgUpdateProjectAdminProtoMsg): _131.MsgUpdateProjectAdmin; - toProto(message: _131.MsgUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _131.MsgUpdateProjectAdmin): _131.MsgUpdateProjectAdminProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectAdmin; + fromJSON(object: any): _132.MsgUpdateProjectAdmin; + toJSON(message: _132.MsgUpdateProjectAdmin): unknown; + fromPartial(object: Partial<_132.MsgUpdateProjectAdmin>): _132.MsgUpdateProjectAdmin; + fromAmino(object: _132.MsgUpdateProjectAdminAmino): _132.MsgUpdateProjectAdmin; + toAmino(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminAmino; + fromAminoMsg(object: _132.MsgUpdateProjectAdminAminoMsg): _132.MsgUpdateProjectAdmin; + toAminoMsg(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminAminoMsg; + fromProtoMsg(message: _132.MsgUpdateProjectAdminProtoMsg): _132.MsgUpdateProjectAdmin; + toProto(message: _132.MsgUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminProtoMsg; }; MsgUpdateProjectAdminResponse: { - encode(_: _131.MsgUpdateProjectAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateProjectAdminResponse; - fromJSON(_: any): _131.MsgUpdateProjectAdminResponse; - toJSON(_: _131.MsgUpdateProjectAdminResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateProjectAdminResponse>): _131.MsgUpdateProjectAdminResponse; - fromAmino(_: _131.MsgUpdateProjectAdminResponseAmino): _131.MsgUpdateProjectAdminResponse; - toAmino(_: _131.MsgUpdateProjectAdminResponse): _131.MsgUpdateProjectAdminResponseAmino; - fromAminoMsg(object: _131.MsgUpdateProjectAdminResponseAminoMsg): _131.MsgUpdateProjectAdminResponse; - fromProtoMsg(message: _131.MsgUpdateProjectAdminResponseProtoMsg): _131.MsgUpdateProjectAdminResponse; - toProto(message: _131.MsgUpdateProjectAdminResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateProjectAdminResponse): _131.MsgUpdateProjectAdminResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateProjectAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectAdminResponse; + fromJSON(_: any): _132.MsgUpdateProjectAdminResponse; + toJSON(_: _132.MsgUpdateProjectAdminResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateProjectAdminResponse>): _132.MsgUpdateProjectAdminResponse; + fromAmino(_: _132.MsgUpdateProjectAdminResponseAmino): _132.MsgUpdateProjectAdminResponse; + toAmino(_: _132.MsgUpdateProjectAdminResponse): _132.MsgUpdateProjectAdminResponseAmino; + fromAminoMsg(object: _132.MsgUpdateProjectAdminResponseAminoMsg): _132.MsgUpdateProjectAdminResponse; + fromProtoMsg(message: _132.MsgUpdateProjectAdminResponseProtoMsg): _132.MsgUpdateProjectAdminResponse; + toProto(message: _132.MsgUpdateProjectAdminResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateProjectAdminResponse): _132.MsgUpdateProjectAdminResponseProtoMsg; }; MsgUpdateProjectMetadata: { - encode(message: _131.MsgUpdateProjectMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateProjectMetadata; - fromJSON(object: any): _131.MsgUpdateProjectMetadata; - toJSON(message: _131.MsgUpdateProjectMetadata): unknown; - fromPartial(object: Partial<_131.MsgUpdateProjectMetadata>): _131.MsgUpdateProjectMetadata; - fromAmino(object: _131.MsgUpdateProjectMetadataAmino): _131.MsgUpdateProjectMetadata; - toAmino(message: _131.MsgUpdateProjectMetadata): _131.MsgUpdateProjectMetadataAmino; - fromAminoMsg(object: _131.MsgUpdateProjectMetadataAminoMsg): _131.MsgUpdateProjectMetadata; - toAminoMsg(message: _131.MsgUpdateProjectMetadata): _131.MsgUpdateProjectMetadataAminoMsg; - fromProtoMsg(message: _131.MsgUpdateProjectMetadataProtoMsg): _131.MsgUpdateProjectMetadata; - toProto(message: _131.MsgUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _131.MsgUpdateProjectMetadata): _131.MsgUpdateProjectMetadataProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectMetadata; + fromJSON(object: any): _132.MsgUpdateProjectMetadata; + toJSON(message: _132.MsgUpdateProjectMetadata): unknown; + fromPartial(object: Partial<_132.MsgUpdateProjectMetadata>): _132.MsgUpdateProjectMetadata; + fromAmino(object: _132.MsgUpdateProjectMetadataAmino): _132.MsgUpdateProjectMetadata; + toAmino(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataAmino; + fromAminoMsg(object: _132.MsgUpdateProjectMetadataAminoMsg): _132.MsgUpdateProjectMetadata; + toAminoMsg(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataAminoMsg; + fromProtoMsg(message: _132.MsgUpdateProjectMetadataProtoMsg): _132.MsgUpdateProjectMetadata; + toProto(message: _132.MsgUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataProtoMsg; }; MsgUpdateProjectMetadataResponse: { - encode(_: _131.MsgUpdateProjectMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateProjectMetadataResponse; - fromJSON(_: any): _131.MsgUpdateProjectMetadataResponse; - toJSON(_: _131.MsgUpdateProjectMetadataResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateProjectMetadataResponse>): _131.MsgUpdateProjectMetadataResponse; - fromAmino(_: _131.MsgUpdateProjectMetadataResponseAmino): _131.MsgUpdateProjectMetadataResponse; - toAmino(_: _131.MsgUpdateProjectMetadataResponse): _131.MsgUpdateProjectMetadataResponseAmino; - fromAminoMsg(object: _131.MsgUpdateProjectMetadataResponseAminoMsg): _131.MsgUpdateProjectMetadataResponse; - fromProtoMsg(message: _131.MsgUpdateProjectMetadataResponseProtoMsg): _131.MsgUpdateProjectMetadataResponse; - toProto(message: _131.MsgUpdateProjectMetadataResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateProjectMetadataResponse): _131.MsgUpdateProjectMetadataResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateProjectMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectMetadataResponse; + fromJSON(_: any): _132.MsgUpdateProjectMetadataResponse; + toJSON(_: _132.MsgUpdateProjectMetadataResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateProjectMetadataResponse>): _132.MsgUpdateProjectMetadataResponse; + fromAmino(_: _132.MsgUpdateProjectMetadataResponseAmino): _132.MsgUpdateProjectMetadataResponse; + toAmino(_: _132.MsgUpdateProjectMetadataResponse): _132.MsgUpdateProjectMetadataResponseAmino; + fromAminoMsg(object: _132.MsgUpdateProjectMetadataResponseAminoMsg): _132.MsgUpdateProjectMetadataResponse; + fromProtoMsg(message: _132.MsgUpdateProjectMetadataResponseProtoMsg): _132.MsgUpdateProjectMetadataResponse; + toProto(message: _132.MsgUpdateProjectMetadataResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateProjectMetadataResponse): _132.MsgUpdateProjectMetadataResponseProtoMsg; }; MsgBridge: { - encode(message: _131.MsgBridge, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridge; - fromJSON(object: any): _131.MsgBridge; - toJSON(message: _131.MsgBridge): unknown; - fromPartial(object: Partial<_131.MsgBridge>): _131.MsgBridge; - fromAmino(object: _131.MsgBridgeAmino): _131.MsgBridge; - toAmino(message: _131.MsgBridge): _131.MsgBridgeAmino; - fromAminoMsg(object: _131.MsgBridgeAminoMsg): _131.MsgBridge; - toAminoMsg(message: _131.MsgBridge): _131.MsgBridgeAminoMsg; - fromProtoMsg(message: _131.MsgBridgeProtoMsg): _131.MsgBridge; - toProto(message: _131.MsgBridge): Uint8Array; - toProtoMsg(message: _131.MsgBridge): _131.MsgBridgeProtoMsg; + typeUrl: string; + encode(message: _132.MsgBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridge; + fromJSON(object: any): _132.MsgBridge; + toJSON(message: _132.MsgBridge): unknown; + fromPartial(object: Partial<_132.MsgBridge>): _132.MsgBridge; + fromAmino(object: _132.MsgBridgeAmino): _132.MsgBridge; + toAmino(message: _132.MsgBridge): _132.MsgBridgeAmino; + fromAminoMsg(object: _132.MsgBridgeAminoMsg): _132.MsgBridge; + toAminoMsg(message: _132.MsgBridge): _132.MsgBridgeAminoMsg; + fromProtoMsg(message: _132.MsgBridgeProtoMsg): _132.MsgBridge; + toProto(message: _132.MsgBridge): Uint8Array; + toProtoMsg(message: _132.MsgBridge): _132.MsgBridgeProtoMsg; }; MsgUpdateBatchMetadata: { - encode(message: _131.MsgUpdateBatchMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateBatchMetadata; - fromJSON(object: any): _131.MsgUpdateBatchMetadata; - toJSON(message: _131.MsgUpdateBatchMetadata): unknown; - fromPartial(object: Partial<_131.MsgUpdateBatchMetadata>): _131.MsgUpdateBatchMetadata; - fromAmino(object: _131.MsgUpdateBatchMetadataAmino): _131.MsgUpdateBatchMetadata; - toAmino(message: _131.MsgUpdateBatchMetadata): _131.MsgUpdateBatchMetadataAmino; - fromAminoMsg(object: _131.MsgUpdateBatchMetadataAminoMsg): _131.MsgUpdateBatchMetadata; - toAminoMsg(message: _131.MsgUpdateBatchMetadata): _131.MsgUpdateBatchMetadataAminoMsg; - fromProtoMsg(message: _131.MsgUpdateBatchMetadataProtoMsg): _131.MsgUpdateBatchMetadata; - toProto(message: _131.MsgUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _131.MsgUpdateBatchMetadata): _131.MsgUpdateBatchMetadataProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateBatchMetadata; + fromJSON(object: any): _132.MsgUpdateBatchMetadata; + toJSON(message: _132.MsgUpdateBatchMetadata): unknown; + fromPartial(object: Partial<_132.MsgUpdateBatchMetadata>): _132.MsgUpdateBatchMetadata; + fromAmino(object: _132.MsgUpdateBatchMetadataAmino): _132.MsgUpdateBatchMetadata; + toAmino(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataAmino; + fromAminoMsg(object: _132.MsgUpdateBatchMetadataAminoMsg): _132.MsgUpdateBatchMetadata; + toAminoMsg(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataAminoMsg; + fromProtoMsg(message: _132.MsgUpdateBatchMetadataProtoMsg): _132.MsgUpdateBatchMetadata; + toProto(message: _132.MsgUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataProtoMsg; }; MsgUpdateBatchMetadataResponse: { - encode(_: _131.MsgUpdateBatchMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateBatchMetadataResponse; - fromJSON(_: any): _131.MsgUpdateBatchMetadataResponse; - toJSON(_: _131.MsgUpdateBatchMetadataResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateBatchMetadataResponse>): _131.MsgUpdateBatchMetadataResponse; - fromAmino(_: _131.MsgUpdateBatchMetadataResponseAmino): _131.MsgUpdateBatchMetadataResponse; - toAmino(_: _131.MsgUpdateBatchMetadataResponse): _131.MsgUpdateBatchMetadataResponseAmino; - fromAminoMsg(object: _131.MsgUpdateBatchMetadataResponseAminoMsg): _131.MsgUpdateBatchMetadataResponse; - fromProtoMsg(message: _131.MsgUpdateBatchMetadataResponseProtoMsg): _131.MsgUpdateBatchMetadataResponse; - toProto(message: _131.MsgUpdateBatchMetadataResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateBatchMetadataResponse): _131.MsgUpdateBatchMetadataResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateBatchMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateBatchMetadataResponse; + fromJSON(_: any): _132.MsgUpdateBatchMetadataResponse; + toJSON(_: _132.MsgUpdateBatchMetadataResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateBatchMetadataResponse>): _132.MsgUpdateBatchMetadataResponse; + fromAmino(_: _132.MsgUpdateBatchMetadataResponseAmino): _132.MsgUpdateBatchMetadataResponse; + toAmino(_: _132.MsgUpdateBatchMetadataResponse): _132.MsgUpdateBatchMetadataResponseAmino; + fromAminoMsg(object: _132.MsgUpdateBatchMetadataResponseAminoMsg): _132.MsgUpdateBatchMetadataResponse; + fromProtoMsg(message: _132.MsgUpdateBatchMetadataResponseProtoMsg): _132.MsgUpdateBatchMetadataResponse; + toProto(message: _132.MsgUpdateBatchMetadataResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateBatchMetadataResponse): _132.MsgUpdateBatchMetadataResponseProtoMsg; }; MsgBridgeResponse: { - encode(_: _131.MsgBridgeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridgeResponse; - fromJSON(_: any): _131.MsgBridgeResponse; - toJSON(_: _131.MsgBridgeResponse): unknown; - fromPartial(_: Partial<_131.MsgBridgeResponse>): _131.MsgBridgeResponse; - fromAmino(_: _131.MsgBridgeResponseAmino): _131.MsgBridgeResponse; - toAmino(_: _131.MsgBridgeResponse): _131.MsgBridgeResponseAmino; - fromAminoMsg(object: _131.MsgBridgeResponseAminoMsg): _131.MsgBridgeResponse; - fromProtoMsg(message: _131.MsgBridgeResponseProtoMsg): _131.MsgBridgeResponse; - toProto(message: _131.MsgBridgeResponse): Uint8Array; - toProtoMsg(message: _131.MsgBridgeResponse): _131.MsgBridgeResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgBridgeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeResponse; + fromJSON(_: any): _132.MsgBridgeResponse; + toJSON(_: _132.MsgBridgeResponse): unknown; + fromPartial(_: Partial<_132.MsgBridgeResponse>): _132.MsgBridgeResponse; + fromAmino(_: _132.MsgBridgeResponseAmino): _132.MsgBridgeResponse; + toAmino(_: _132.MsgBridgeResponse): _132.MsgBridgeResponseAmino; + fromAminoMsg(object: _132.MsgBridgeResponseAminoMsg): _132.MsgBridgeResponse; + fromProtoMsg(message: _132.MsgBridgeResponseProtoMsg): _132.MsgBridgeResponse; + toProto(message: _132.MsgBridgeResponse): Uint8Array; + toProtoMsg(message: _132.MsgBridgeResponse): _132.MsgBridgeResponseProtoMsg; }; MsgBridgeReceive: { - encode(message: _131.MsgBridgeReceive, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridgeReceive; - fromJSON(object: any): _131.MsgBridgeReceive; - toJSON(message: _131.MsgBridgeReceive): unknown; - fromPartial(object: Partial<_131.MsgBridgeReceive>): _131.MsgBridgeReceive; - fromAmino(object: _131.MsgBridgeReceiveAmino): _131.MsgBridgeReceive; - toAmino(message: _131.MsgBridgeReceive): _131.MsgBridgeReceiveAmino; - fromAminoMsg(object: _131.MsgBridgeReceiveAminoMsg): _131.MsgBridgeReceive; - toAminoMsg(message: _131.MsgBridgeReceive): _131.MsgBridgeReceiveAminoMsg; - fromProtoMsg(message: _131.MsgBridgeReceiveProtoMsg): _131.MsgBridgeReceive; - toProto(message: _131.MsgBridgeReceive): Uint8Array; - toProtoMsg(message: _131.MsgBridgeReceive): _131.MsgBridgeReceiveProtoMsg; + typeUrl: string; + encode(message: _132.MsgBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive; + fromJSON(object: any): _132.MsgBridgeReceive; + toJSON(message: _132.MsgBridgeReceive): unknown; + fromPartial(object: Partial<_132.MsgBridgeReceive>): _132.MsgBridgeReceive; + fromAmino(object: _132.MsgBridgeReceiveAmino): _132.MsgBridgeReceive; + toAmino(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveAmino; + fromAminoMsg(object: _132.MsgBridgeReceiveAminoMsg): _132.MsgBridgeReceive; + toAminoMsg(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveAminoMsg; + fromProtoMsg(message: _132.MsgBridgeReceiveProtoMsg): _132.MsgBridgeReceive; + toProto(message: _132.MsgBridgeReceive): Uint8Array; + toProtoMsg(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveProtoMsg; }; MsgBridgeReceive_Batch: { - encode(message: _131.MsgBridgeReceive_Batch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridgeReceive_Batch; - fromJSON(object: any): _131.MsgBridgeReceive_Batch; - toJSON(message: _131.MsgBridgeReceive_Batch): unknown; - fromPartial(object: Partial<_131.MsgBridgeReceive_Batch>): _131.MsgBridgeReceive_Batch; - fromAmino(object: _131.MsgBridgeReceive_BatchAmino): _131.MsgBridgeReceive_Batch; - toAmino(message: _131.MsgBridgeReceive_Batch): _131.MsgBridgeReceive_BatchAmino; - fromAminoMsg(object: _131.MsgBridgeReceive_BatchAminoMsg): _131.MsgBridgeReceive_Batch; - fromProtoMsg(message: _131.MsgBridgeReceive_BatchProtoMsg): _131.MsgBridgeReceive_Batch; - toProto(message: _131.MsgBridgeReceive_Batch): Uint8Array; - toProtoMsg(message: _131.MsgBridgeReceive_Batch): _131.MsgBridgeReceive_BatchProtoMsg; + typeUrl: string; + encode(message: _132.MsgBridgeReceive_Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive_Batch; + fromJSON(object: any): _132.MsgBridgeReceive_Batch; + toJSON(message: _132.MsgBridgeReceive_Batch): unknown; + fromPartial(object: Partial<_132.MsgBridgeReceive_Batch>): _132.MsgBridgeReceive_Batch; + fromAmino(object: _132.MsgBridgeReceive_BatchAmino): _132.MsgBridgeReceive_Batch; + toAmino(message: _132.MsgBridgeReceive_Batch): _132.MsgBridgeReceive_BatchAmino; + fromAminoMsg(object: _132.MsgBridgeReceive_BatchAminoMsg): _132.MsgBridgeReceive_Batch; + fromProtoMsg(message: _132.MsgBridgeReceive_BatchProtoMsg): _132.MsgBridgeReceive_Batch; + toProto(message: _132.MsgBridgeReceive_Batch): Uint8Array; + toProtoMsg(message: _132.MsgBridgeReceive_Batch): _132.MsgBridgeReceive_BatchProtoMsg; }; MsgBridgeReceive_Project: { - encode(message: _131.MsgBridgeReceive_Project, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridgeReceive_Project; - fromJSON(object: any): _131.MsgBridgeReceive_Project; - toJSON(message: _131.MsgBridgeReceive_Project): unknown; - fromPartial(object: Partial<_131.MsgBridgeReceive_Project>): _131.MsgBridgeReceive_Project; - fromAmino(object: _131.MsgBridgeReceive_ProjectAmino): _131.MsgBridgeReceive_Project; - toAmino(message: _131.MsgBridgeReceive_Project): _131.MsgBridgeReceive_ProjectAmino; - fromAminoMsg(object: _131.MsgBridgeReceive_ProjectAminoMsg): _131.MsgBridgeReceive_Project; - fromProtoMsg(message: _131.MsgBridgeReceive_ProjectProtoMsg): _131.MsgBridgeReceive_Project; - toProto(message: _131.MsgBridgeReceive_Project): Uint8Array; - toProtoMsg(message: _131.MsgBridgeReceive_Project): _131.MsgBridgeReceive_ProjectProtoMsg; + typeUrl: string; + encode(message: _132.MsgBridgeReceive_Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive_Project; + fromJSON(object: any): _132.MsgBridgeReceive_Project; + toJSON(message: _132.MsgBridgeReceive_Project): unknown; + fromPartial(object: Partial<_132.MsgBridgeReceive_Project>): _132.MsgBridgeReceive_Project; + fromAmino(object: _132.MsgBridgeReceive_ProjectAmino): _132.MsgBridgeReceive_Project; + toAmino(message: _132.MsgBridgeReceive_Project): _132.MsgBridgeReceive_ProjectAmino; + fromAminoMsg(object: _132.MsgBridgeReceive_ProjectAminoMsg): _132.MsgBridgeReceive_Project; + fromProtoMsg(message: _132.MsgBridgeReceive_ProjectProtoMsg): _132.MsgBridgeReceive_Project; + toProto(message: _132.MsgBridgeReceive_Project): Uint8Array; + toProtoMsg(message: _132.MsgBridgeReceive_Project): _132.MsgBridgeReceive_ProjectProtoMsg; }; MsgBridgeReceiveResponse: { - encode(message: _131.MsgBridgeReceiveResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgBridgeReceiveResponse; - fromJSON(object: any): _131.MsgBridgeReceiveResponse; - toJSON(message: _131.MsgBridgeReceiveResponse): unknown; - fromPartial(object: Partial<_131.MsgBridgeReceiveResponse>): _131.MsgBridgeReceiveResponse; - fromAmino(object: _131.MsgBridgeReceiveResponseAmino): _131.MsgBridgeReceiveResponse; - toAmino(message: _131.MsgBridgeReceiveResponse): _131.MsgBridgeReceiveResponseAmino; - fromAminoMsg(object: _131.MsgBridgeReceiveResponseAminoMsg): _131.MsgBridgeReceiveResponse; - fromProtoMsg(message: _131.MsgBridgeReceiveResponseProtoMsg): _131.MsgBridgeReceiveResponse; - toProto(message: _131.MsgBridgeReceiveResponse): Uint8Array; - toProtoMsg(message: _131.MsgBridgeReceiveResponse): _131.MsgBridgeReceiveResponseProtoMsg; + typeUrl: string; + encode(message: _132.MsgBridgeReceiveResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceiveResponse; + fromJSON(object: any): _132.MsgBridgeReceiveResponse; + toJSON(message: _132.MsgBridgeReceiveResponse): unknown; + fromPartial(object: Partial<_132.MsgBridgeReceiveResponse>): _132.MsgBridgeReceiveResponse; + fromAmino(object: _132.MsgBridgeReceiveResponseAmino): _132.MsgBridgeReceiveResponse; + toAmino(message: _132.MsgBridgeReceiveResponse): _132.MsgBridgeReceiveResponseAmino; + fromAminoMsg(object: _132.MsgBridgeReceiveResponseAminoMsg): _132.MsgBridgeReceiveResponse; + fromProtoMsg(message: _132.MsgBridgeReceiveResponseProtoMsg): _132.MsgBridgeReceiveResponse; + toProto(message: _132.MsgBridgeReceiveResponse): Uint8Array; + toProtoMsg(message: _132.MsgBridgeReceiveResponse): _132.MsgBridgeReceiveResponseProtoMsg; }; MsgAddClassCreator: { - encode(message: _131.MsgAddClassCreator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddClassCreator; - fromJSON(object: any): _131.MsgAddClassCreator; - toJSON(message: _131.MsgAddClassCreator): unknown; - fromPartial(object: Partial<_131.MsgAddClassCreator>): _131.MsgAddClassCreator; - fromAmino(object: _131.MsgAddClassCreatorAmino): _131.MsgAddClassCreator; - toAmino(message: _131.MsgAddClassCreator): _131.MsgAddClassCreatorAmino; - fromAminoMsg(object: _131.MsgAddClassCreatorAminoMsg): _131.MsgAddClassCreator; - toAminoMsg(message: _131.MsgAddClassCreator): _131.MsgAddClassCreatorAminoMsg; - fromProtoMsg(message: _131.MsgAddClassCreatorProtoMsg): _131.MsgAddClassCreator; - toProto(message: _131.MsgAddClassCreator): Uint8Array; - toProtoMsg(message: _131.MsgAddClassCreator): _131.MsgAddClassCreatorProtoMsg; + typeUrl: string; + encode(message: _132.MsgAddClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddClassCreator; + fromJSON(object: any): _132.MsgAddClassCreator; + toJSON(message: _132.MsgAddClassCreator): unknown; + fromPartial(object: Partial<_132.MsgAddClassCreator>): _132.MsgAddClassCreator; + fromAmino(object: _132.MsgAddClassCreatorAmino): _132.MsgAddClassCreator; + toAmino(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorAmino; + fromAminoMsg(object: _132.MsgAddClassCreatorAminoMsg): _132.MsgAddClassCreator; + toAminoMsg(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorAminoMsg; + fromProtoMsg(message: _132.MsgAddClassCreatorProtoMsg): _132.MsgAddClassCreator; + toProto(message: _132.MsgAddClassCreator): Uint8Array; + toProtoMsg(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorProtoMsg; }; MsgAddClassCreatorResponse: { - encode(_: _131.MsgAddClassCreatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddClassCreatorResponse; - fromJSON(_: any): _131.MsgAddClassCreatorResponse; - toJSON(_: _131.MsgAddClassCreatorResponse): unknown; - fromPartial(_: Partial<_131.MsgAddClassCreatorResponse>): _131.MsgAddClassCreatorResponse; - fromAmino(_: _131.MsgAddClassCreatorResponseAmino): _131.MsgAddClassCreatorResponse; - toAmino(_: _131.MsgAddClassCreatorResponse): _131.MsgAddClassCreatorResponseAmino; - fromAminoMsg(object: _131.MsgAddClassCreatorResponseAminoMsg): _131.MsgAddClassCreatorResponse; - fromProtoMsg(message: _131.MsgAddClassCreatorResponseProtoMsg): _131.MsgAddClassCreatorResponse; - toProto(message: _131.MsgAddClassCreatorResponse): Uint8Array; - toProtoMsg(message: _131.MsgAddClassCreatorResponse): _131.MsgAddClassCreatorResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgAddClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddClassCreatorResponse; + fromJSON(_: any): _132.MsgAddClassCreatorResponse; + toJSON(_: _132.MsgAddClassCreatorResponse): unknown; + fromPartial(_: Partial<_132.MsgAddClassCreatorResponse>): _132.MsgAddClassCreatorResponse; + fromAmino(_: _132.MsgAddClassCreatorResponseAmino): _132.MsgAddClassCreatorResponse; + toAmino(_: _132.MsgAddClassCreatorResponse): _132.MsgAddClassCreatorResponseAmino; + fromAminoMsg(object: _132.MsgAddClassCreatorResponseAminoMsg): _132.MsgAddClassCreatorResponse; + fromProtoMsg(message: _132.MsgAddClassCreatorResponseProtoMsg): _132.MsgAddClassCreatorResponse; + toProto(message: _132.MsgAddClassCreatorResponse): Uint8Array; + toProtoMsg(message: _132.MsgAddClassCreatorResponse): _132.MsgAddClassCreatorResponseProtoMsg; }; MsgSetClassCreatorAllowlist: { - encode(message: _131.MsgSetClassCreatorAllowlist, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSetClassCreatorAllowlist; - fromJSON(object: any): _131.MsgSetClassCreatorAllowlist; - toJSON(message: _131.MsgSetClassCreatorAllowlist): unknown; - fromPartial(object: Partial<_131.MsgSetClassCreatorAllowlist>): _131.MsgSetClassCreatorAllowlist; - fromAmino(object: _131.MsgSetClassCreatorAllowlistAmino): _131.MsgSetClassCreatorAllowlist; - toAmino(message: _131.MsgSetClassCreatorAllowlist): _131.MsgSetClassCreatorAllowlistAmino; - fromAminoMsg(object: _131.MsgSetClassCreatorAllowlistAminoMsg): _131.MsgSetClassCreatorAllowlist; - toAminoMsg(message: _131.MsgSetClassCreatorAllowlist): _131.MsgSetClassCreatorAllowlistAminoMsg; - fromProtoMsg(message: _131.MsgSetClassCreatorAllowlistProtoMsg): _131.MsgSetClassCreatorAllowlist; - toProto(message: _131.MsgSetClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _131.MsgSetClassCreatorAllowlist): _131.MsgSetClassCreatorAllowlistProtoMsg; + typeUrl: string; + encode(message: _132.MsgSetClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSetClassCreatorAllowlist; + fromJSON(object: any): _132.MsgSetClassCreatorAllowlist; + toJSON(message: _132.MsgSetClassCreatorAllowlist): unknown; + fromPartial(object: Partial<_132.MsgSetClassCreatorAllowlist>): _132.MsgSetClassCreatorAllowlist; + fromAmino(object: _132.MsgSetClassCreatorAllowlistAmino): _132.MsgSetClassCreatorAllowlist; + toAmino(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistAmino; + fromAminoMsg(object: _132.MsgSetClassCreatorAllowlistAminoMsg): _132.MsgSetClassCreatorAllowlist; + toAminoMsg(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistAminoMsg; + fromProtoMsg(message: _132.MsgSetClassCreatorAllowlistProtoMsg): _132.MsgSetClassCreatorAllowlist; + toProto(message: _132.MsgSetClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistProtoMsg; }; MsgSetClassCreatorAllowlistResponse: { - encode(_: _131.MsgSetClassCreatorAllowlistResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgSetClassCreatorAllowlistResponse; - fromJSON(_: any): _131.MsgSetClassCreatorAllowlistResponse; - toJSON(_: _131.MsgSetClassCreatorAllowlistResponse): unknown; - fromPartial(_: Partial<_131.MsgSetClassCreatorAllowlistResponse>): _131.MsgSetClassCreatorAllowlistResponse; - fromAmino(_: _131.MsgSetClassCreatorAllowlistResponseAmino): _131.MsgSetClassCreatorAllowlistResponse; - toAmino(_: _131.MsgSetClassCreatorAllowlistResponse): _131.MsgSetClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _131.MsgSetClassCreatorAllowlistResponseAminoMsg): _131.MsgSetClassCreatorAllowlistResponse; - fromProtoMsg(message: _131.MsgSetClassCreatorAllowlistResponseProtoMsg): _131.MsgSetClassCreatorAllowlistResponse; - toProto(message: _131.MsgSetClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _131.MsgSetClassCreatorAllowlistResponse): _131.MsgSetClassCreatorAllowlistResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgSetClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSetClassCreatorAllowlistResponse; + fromJSON(_: any): _132.MsgSetClassCreatorAllowlistResponse; + toJSON(_: _132.MsgSetClassCreatorAllowlistResponse): unknown; + fromPartial(_: Partial<_132.MsgSetClassCreatorAllowlistResponse>): _132.MsgSetClassCreatorAllowlistResponse; + fromAmino(_: _132.MsgSetClassCreatorAllowlistResponseAmino): _132.MsgSetClassCreatorAllowlistResponse; + toAmino(_: _132.MsgSetClassCreatorAllowlistResponse): _132.MsgSetClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: _132.MsgSetClassCreatorAllowlistResponseAminoMsg): _132.MsgSetClassCreatorAllowlistResponse; + fromProtoMsg(message: _132.MsgSetClassCreatorAllowlistResponseProtoMsg): _132.MsgSetClassCreatorAllowlistResponse; + toProto(message: _132.MsgSetClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: _132.MsgSetClassCreatorAllowlistResponse): _132.MsgSetClassCreatorAllowlistResponseProtoMsg; }; MsgRemoveClassCreator: { - encode(message: _131.MsgRemoveClassCreator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRemoveClassCreator; - fromJSON(object: any): _131.MsgRemoveClassCreator; - toJSON(message: _131.MsgRemoveClassCreator): unknown; - fromPartial(object: Partial<_131.MsgRemoveClassCreator>): _131.MsgRemoveClassCreator; - fromAmino(object: _131.MsgRemoveClassCreatorAmino): _131.MsgRemoveClassCreator; - toAmino(message: _131.MsgRemoveClassCreator): _131.MsgRemoveClassCreatorAmino; - fromAminoMsg(object: _131.MsgRemoveClassCreatorAminoMsg): _131.MsgRemoveClassCreator; - toAminoMsg(message: _131.MsgRemoveClassCreator): _131.MsgRemoveClassCreatorAminoMsg; - fromProtoMsg(message: _131.MsgRemoveClassCreatorProtoMsg): _131.MsgRemoveClassCreator; - toProto(message: _131.MsgRemoveClassCreator): Uint8Array; - toProtoMsg(message: _131.MsgRemoveClassCreator): _131.MsgRemoveClassCreatorProtoMsg; + typeUrl: string; + encode(message: _132.MsgRemoveClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveClassCreator; + fromJSON(object: any): _132.MsgRemoveClassCreator; + toJSON(message: _132.MsgRemoveClassCreator): unknown; + fromPartial(object: Partial<_132.MsgRemoveClassCreator>): _132.MsgRemoveClassCreator; + fromAmino(object: _132.MsgRemoveClassCreatorAmino): _132.MsgRemoveClassCreator; + toAmino(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorAmino; + fromAminoMsg(object: _132.MsgRemoveClassCreatorAminoMsg): _132.MsgRemoveClassCreator; + toAminoMsg(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorAminoMsg; + fromProtoMsg(message: _132.MsgRemoveClassCreatorProtoMsg): _132.MsgRemoveClassCreator; + toProto(message: _132.MsgRemoveClassCreator): Uint8Array; + toProtoMsg(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorProtoMsg; }; MsgRemoveClassCreatorResponse: { - encode(_: _131.MsgRemoveClassCreatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRemoveClassCreatorResponse; - fromJSON(_: any): _131.MsgRemoveClassCreatorResponse; - toJSON(_: _131.MsgRemoveClassCreatorResponse): unknown; - fromPartial(_: Partial<_131.MsgRemoveClassCreatorResponse>): _131.MsgRemoveClassCreatorResponse; - fromAmino(_: _131.MsgRemoveClassCreatorResponseAmino): _131.MsgRemoveClassCreatorResponse; - toAmino(_: _131.MsgRemoveClassCreatorResponse): _131.MsgRemoveClassCreatorResponseAmino; - fromAminoMsg(object: _131.MsgRemoveClassCreatorResponseAminoMsg): _131.MsgRemoveClassCreatorResponse; - fromProtoMsg(message: _131.MsgRemoveClassCreatorResponseProtoMsg): _131.MsgRemoveClassCreatorResponse; - toProto(message: _131.MsgRemoveClassCreatorResponse): Uint8Array; - toProtoMsg(message: _131.MsgRemoveClassCreatorResponse): _131.MsgRemoveClassCreatorResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgRemoveClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveClassCreatorResponse; + fromJSON(_: any): _132.MsgRemoveClassCreatorResponse; + toJSON(_: _132.MsgRemoveClassCreatorResponse): unknown; + fromPartial(_: Partial<_132.MsgRemoveClassCreatorResponse>): _132.MsgRemoveClassCreatorResponse; + fromAmino(_: _132.MsgRemoveClassCreatorResponseAmino): _132.MsgRemoveClassCreatorResponse; + toAmino(_: _132.MsgRemoveClassCreatorResponse): _132.MsgRemoveClassCreatorResponseAmino; + fromAminoMsg(object: _132.MsgRemoveClassCreatorResponseAminoMsg): _132.MsgRemoveClassCreatorResponse; + fromProtoMsg(message: _132.MsgRemoveClassCreatorResponseProtoMsg): _132.MsgRemoveClassCreatorResponse; + toProto(message: _132.MsgRemoveClassCreatorResponse): Uint8Array; + toProtoMsg(message: _132.MsgRemoveClassCreatorResponse): _132.MsgRemoveClassCreatorResponseProtoMsg; }; MsgUpdateClassFee: { - encode(message: _131.MsgUpdateClassFee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassFee; - fromJSON(object: any): _131.MsgUpdateClassFee; - toJSON(message: _131.MsgUpdateClassFee): unknown; - fromPartial(object: Partial<_131.MsgUpdateClassFee>): _131.MsgUpdateClassFee; - fromAmino(object: _131.MsgUpdateClassFeeAmino): _131.MsgUpdateClassFee; - toAmino(message: _131.MsgUpdateClassFee): _131.MsgUpdateClassFeeAmino; - fromAminoMsg(object: _131.MsgUpdateClassFeeAminoMsg): _131.MsgUpdateClassFee; - toAminoMsg(message: _131.MsgUpdateClassFee): _131.MsgUpdateClassFeeAminoMsg; - fromProtoMsg(message: _131.MsgUpdateClassFeeProtoMsg): _131.MsgUpdateClassFee; - toProto(message: _131.MsgUpdateClassFee): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassFee): _131.MsgUpdateClassFeeProtoMsg; + typeUrl: string; + encode(message: _132.MsgUpdateClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassFee; + fromJSON(object: any): _132.MsgUpdateClassFee; + toJSON(message: _132.MsgUpdateClassFee): unknown; + fromPartial(object: Partial<_132.MsgUpdateClassFee>): _132.MsgUpdateClassFee; + fromAmino(object: _132.MsgUpdateClassFeeAmino): _132.MsgUpdateClassFee; + toAmino(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeAmino; + fromAminoMsg(object: _132.MsgUpdateClassFeeAminoMsg): _132.MsgUpdateClassFee; + toAminoMsg(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeAminoMsg; + fromProtoMsg(message: _132.MsgUpdateClassFeeProtoMsg): _132.MsgUpdateClassFee; + toProto(message: _132.MsgUpdateClassFee): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeProtoMsg; }; MsgUpdateClassFeeResponse: { - encode(_: _131.MsgUpdateClassFeeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgUpdateClassFeeResponse; - fromJSON(_: any): _131.MsgUpdateClassFeeResponse; - toJSON(_: _131.MsgUpdateClassFeeResponse): unknown; - fromPartial(_: Partial<_131.MsgUpdateClassFeeResponse>): _131.MsgUpdateClassFeeResponse; - fromAmino(_: _131.MsgUpdateClassFeeResponseAmino): _131.MsgUpdateClassFeeResponse; - toAmino(_: _131.MsgUpdateClassFeeResponse): _131.MsgUpdateClassFeeResponseAmino; - fromAminoMsg(object: _131.MsgUpdateClassFeeResponseAminoMsg): _131.MsgUpdateClassFeeResponse; - fromProtoMsg(message: _131.MsgUpdateClassFeeResponseProtoMsg): _131.MsgUpdateClassFeeResponse; - toProto(message: _131.MsgUpdateClassFeeResponse): Uint8Array; - toProtoMsg(message: _131.MsgUpdateClassFeeResponse): _131.MsgUpdateClassFeeResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgUpdateClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassFeeResponse; + fromJSON(_: any): _132.MsgUpdateClassFeeResponse; + toJSON(_: _132.MsgUpdateClassFeeResponse): unknown; + fromPartial(_: Partial<_132.MsgUpdateClassFeeResponse>): _132.MsgUpdateClassFeeResponse; + fromAmino(_: _132.MsgUpdateClassFeeResponseAmino): _132.MsgUpdateClassFeeResponse; + toAmino(_: _132.MsgUpdateClassFeeResponse): _132.MsgUpdateClassFeeResponseAmino; + fromAminoMsg(object: _132.MsgUpdateClassFeeResponseAminoMsg): _132.MsgUpdateClassFeeResponse; + fromProtoMsg(message: _132.MsgUpdateClassFeeResponseProtoMsg): _132.MsgUpdateClassFeeResponse; + toProto(message: _132.MsgUpdateClassFeeResponse): Uint8Array; + toProtoMsg(message: _132.MsgUpdateClassFeeResponse): _132.MsgUpdateClassFeeResponseProtoMsg; }; MsgAddAllowedBridgeChain: { - encode(message: _131.MsgAddAllowedBridgeChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddAllowedBridgeChain; - fromJSON(object: any): _131.MsgAddAllowedBridgeChain; - toJSON(message: _131.MsgAddAllowedBridgeChain): unknown; - fromPartial(object: Partial<_131.MsgAddAllowedBridgeChain>): _131.MsgAddAllowedBridgeChain; - fromAmino(object: _131.MsgAddAllowedBridgeChainAmino): _131.MsgAddAllowedBridgeChain; - toAmino(message: _131.MsgAddAllowedBridgeChain): _131.MsgAddAllowedBridgeChainAmino; - fromAminoMsg(object: _131.MsgAddAllowedBridgeChainAminoMsg): _131.MsgAddAllowedBridgeChain; - toAminoMsg(message: _131.MsgAddAllowedBridgeChain): _131.MsgAddAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _131.MsgAddAllowedBridgeChainProtoMsg): _131.MsgAddAllowedBridgeChain; - toProto(message: _131.MsgAddAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _131.MsgAddAllowedBridgeChain): _131.MsgAddAllowedBridgeChainProtoMsg; + typeUrl: string; + encode(message: _132.MsgAddAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddAllowedBridgeChain; + fromJSON(object: any): _132.MsgAddAllowedBridgeChain; + toJSON(message: _132.MsgAddAllowedBridgeChain): unknown; + fromPartial(object: Partial<_132.MsgAddAllowedBridgeChain>): _132.MsgAddAllowedBridgeChain; + fromAmino(object: _132.MsgAddAllowedBridgeChainAmino): _132.MsgAddAllowedBridgeChain; + toAmino(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainAmino; + fromAminoMsg(object: _132.MsgAddAllowedBridgeChainAminoMsg): _132.MsgAddAllowedBridgeChain; + toAminoMsg(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainAminoMsg; + fromProtoMsg(message: _132.MsgAddAllowedBridgeChainProtoMsg): _132.MsgAddAllowedBridgeChain; + toProto(message: _132.MsgAddAllowedBridgeChain): Uint8Array; + toProtoMsg(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainProtoMsg; }; MsgAddAllowedBridgeChainResponse: { - encode(_: _131.MsgAddAllowedBridgeChainResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgAddAllowedBridgeChainResponse; - fromJSON(_: any): _131.MsgAddAllowedBridgeChainResponse; - toJSON(_: _131.MsgAddAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial<_131.MsgAddAllowedBridgeChainResponse>): _131.MsgAddAllowedBridgeChainResponse; - fromAmino(_: _131.MsgAddAllowedBridgeChainResponseAmino): _131.MsgAddAllowedBridgeChainResponse; - toAmino(_: _131.MsgAddAllowedBridgeChainResponse): _131.MsgAddAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _131.MsgAddAllowedBridgeChainResponseAminoMsg): _131.MsgAddAllowedBridgeChainResponse; - fromProtoMsg(message: _131.MsgAddAllowedBridgeChainResponseProtoMsg): _131.MsgAddAllowedBridgeChainResponse; - toProto(message: _131.MsgAddAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _131.MsgAddAllowedBridgeChainResponse): _131.MsgAddAllowedBridgeChainResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgAddAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddAllowedBridgeChainResponse; + fromJSON(_: any): _132.MsgAddAllowedBridgeChainResponse; + toJSON(_: _132.MsgAddAllowedBridgeChainResponse): unknown; + fromPartial(_: Partial<_132.MsgAddAllowedBridgeChainResponse>): _132.MsgAddAllowedBridgeChainResponse; + fromAmino(_: _132.MsgAddAllowedBridgeChainResponseAmino): _132.MsgAddAllowedBridgeChainResponse; + toAmino(_: _132.MsgAddAllowedBridgeChainResponse): _132.MsgAddAllowedBridgeChainResponseAmino; + fromAminoMsg(object: _132.MsgAddAllowedBridgeChainResponseAminoMsg): _132.MsgAddAllowedBridgeChainResponse; + fromProtoMsg(message: _132.MsgAddAllowedBridgeChainResponseProtoMsg): _132.MsgAddAllowedBridgeChainResponse; + toProto(message: _132.MsgAddAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: _132.MsgAddAllowedBridgeChainResponse): _132.MsgAddAllowedBridgeChainResponseProtoMsg; }; MsgRemoveAllowedBridgeChain: { - encode(message: _131.MsgRemoveAllowedBridgeChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRemoveAllowedBridgeChain; - fromJSON(object: any): _131.MsgRemoveAllowedBridgeChain; - toJSON(message: _131.MsgRemoveAllowedBridgeChain): unknown; - fromPartial(object: Partial<_131.MsgRemoveAllowedBridgeChain>): _131.MsgRemoveAllowedBridgeChain; - fromAmino(object: _131.MsgRemoveAllowedBridgeChainAmino): _131.MsgRemoveAllowedBridgeChain; - toAmino(message: _131.MsgRemoveAllowedBridgeChain): _131.MsgRemoveAllowedBridgeChainAmino; - fromAminoMsg(object: _131.MsgRemoveAllowedBridgeChainAminoMsg): _131.MsgRemoveAllowedBridgeChain; - toAminoMsg(message: _131.MsgRemoveAllowedBridgeChain): _131.MsgRemoveAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _131.MsgRemoveAllowedBridgeChainProtoMsg): _131.MsgRemoveAllowedBridgeChain; - toProto(message: _131.MsgRemoveAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _131.MsgRemoveAllowedBridgeChain): _131.MsgRemoveAllowedBridgeChainProtoMsg; + typeUrl: string; + encode(message: _132.MsgRemoveAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveAllowedBridgeChain; + fromJSON(object: any): _132.MsgRemoveAllowedBridgeChain; + toJSON(message: _132.MsgRemoveAllowedBridgeChain): unknown; + fromPartial(object: Partial<_132.MsgRemoveAllowedBridgeChain>): _132.MsgRemoveAllowedBridgeChain; + fromAmino(object: _132.MsgRemoveAllowedBridgeChainAmino): _132.MsgRemoveAllowedBridgeChain; + toAmino(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainAmino; + fromAminoMsg(object: _132.MsgRemoveAllowedBridgeChainAminoMsg): _132.MsgRemoveAllowedBridgeChain; + toAminoMsg(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainAminoMsg; + fromProtoMsg(message: _132.MsgRemoveAllowedBridgeChainProtoMsg): _132.MsgRemoveAllowedBridgeChain; + toProto(message: _132.MsgRemoveAllowedBridgeChain): Uint8Array; + toProtoMsg(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainProtoMsg; }; MsgRemoveAllowedBridgeChainResponse: { - encode(_: _131.MsgRemoveAllowedBridgeChainResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _131.MsgRemoveAllowedBridgeChainResponse; - fromJSON(_: any): _131.MsgRemoveAllowedBridgeChainResponse; - toJSON(_: _131.MsgRemoveAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial<_131.MsgRemoveAllowedBridgeChainResponse>): _131.MsgRemoveAllowedBridgeChainResponse; - fromAmino(_: _131.MsgRemoveAllowedBridgeChainResponseAmino): _131.MsgRemoveAllowedBridgeChainResponse; - toAmino(_: _131.MsgRemoveAllowedBridgeChainResponse): _131.MsgRemoveAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _131.MsgRemoveAllowedBridgeChainResponseAminoMsg): _131.MsgRemoveAllowedBridgeChainResponse; - fromProtoMsg(message: _131.MsgRemoveAllowedBridgeChainResponseProtoMsg): _131.MsgRemoveAllowedBridgeChainResponse; - toProto(message: _131.MsgRemoveAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _131.MsgRemoveAllowedBridgeChainResponse): _131.MsgRemoveAllowedBridgeChainResponseProtoMsg; + typeUrl: string; + encode(_: _132.MsgRemoveAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveAllowedBridgeChainResponse; + fromJSON(_: any): _132.MsgRemoveAllowedBridgeChainResponse; + toJSON(_: _132.MsgRemoveAllowedBridgeChainResponse): unknown; + fromPartial(_: Partial<_132.MsgRemoveAllowedBridgeChainResponse>): _132.MsgRemoveAllowedBridgeChainResponse; + fromAmino(_: _132.MsgRemoveAllowedBridgeChainResponseAmino): _132.MsgRemoveAllowedBridgeChainResponse; + toAmino(_: _132.MsgRemoveAllowedBridgeChainResponse): _132.MsgRemoveAllowedBridgeChainResponseAmino; + fromAminoMsg(object: _132.MsgRemoveAllowedBridgeChainResponseAminoMsg): _132.MsgRemoveAllowedBridgeChainResponse; + fromProtoMsg(message: _132.MsgRemoveAllowedBridgeChainResponseProtoMsg): _132.MsgRemoveAllowedBridgeChainResponse; + toProto(message: _132.MsgRemoveAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: _132.MsgRemoveAllowedBridgeChainResponse): _132.MsgRemoveAllowedBridgeChainResponseProtoMsg; }; CreditType: { - encode(message: _130.CreditType, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.CreditType; - fromJSON(object: any): _130.CreditType; - toJSON(message: _130.CreditType): unknown; - fromPartial(object: Partial<_130.CreditType>): _130.CreditType; - fromAmino(object: _130.CreditTypeAmino): _130.CreditType; - toAmino(message: _130.CreditType): _130.CreditTypeAmino; - fromAminoMsg(object: _130.CreditTypeAminoMsg): _130.CreditType; - fromProtoMsg(message: _130.CreditTypeProtoMsg): _130.CreditType; - toProto(message: _130.CreditType): Uint8Array; - toProtoMsg(message: _130.CreditType): _130.CreditTypeProtoMsg; + typeUrl: string; + encode(message: _131.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.CreditType; + fromJSON(object: any): _131.CreditType; + toJSON(message: _131.CreditType): unknown; + fromPartial(object: Partial<_131.CreditType>): _131.CreditType; + fromAmino(object: _131.CreditTypeAmino): _131.CreditType; + toAmino(message: _131.CreditType): _131.CreditTypeAmino; + fromAminoMsg(object: _131.CreditTypeAminoMsg): _131.CreditType; + fromProtoMsg(message: _131.CreditTypeProtoMsg): _131.CreditType; + toProto(message: _131.CreditType): Uint8Array; + toProtoMsg(message: _131.CreditType): _131.CreditTypeProtoMsg; }; Class: { - encode(message: _130.Class, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.Class; - fromJSON(object: any): _130.Class; - toJSON(message: _130.Class): unknown; - fromPartial(object: Partial<_130.Class>): _130.Class; - fromAmino(object: _130.ClassAmino): _130.Class; - toAmino(message: _130.Class): _130.ClassAmino; - fromAminoMsg(object: _130.ClassAminoMsg): _130.Class; - fromProtoMsg(message: _130.ClassProtoMsg): _130.Class; - toProto(message: _130.Class): Uint8Array; - toProtoMsg(message: _130.Class): _130.ClassProtoMsg; + typeUrl: string; + encode(message: _131.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Class; + fromJSON(object: any): _131.Class; + toJSON(message: _131.Class): unknown; + fromPartial(object: Partial<_131.Class>): _131.Class; + fromAmino(object: _131.ClassAmino): _131.Class; + toAmino(message: _131.Class): _131.ClassAmino; + fromAminoMsg(object: _131.ClassAminoMsg): _131.Class; + fromProtoMsg(message: _131.ClassProtoMsg): _131.Class; + toProto(message: _131.Class): Uint8Array; + toProtoMsg(message: _131.Class): _131.ClassProtoMsg; }; ClassIssuer: { - encode(message: _130.ClassIssuer, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.ClassIssuer; - fromJSON(object: any): _130.ClassIssuer; - toJSON(message: _130.ClassIssuer): unknown; - fromPartial(object: Partial<_130.ClassIssuer>): _130.ClassIssuer; - fromAmino(object: _130.ClassIssuerAmino): _130.ClassIssuer; - toAmino(message: _130.ClassIssuer): _130.ClassIssuerAmino; - fromAminoMsg(object: _130.ClassIssuerAminoMsg): _130.ClassIssuer; - fromProtoMsg(message: _130.ClassIssuerProtoMsg): _130.ClassIssuer; - toProto(message: _130.ClassIssuer): Uint8Array; - toProtoMsg(message: _130.ClassIssuer): _130.ClassIssuerProtoMsg; + typeUrl: string; + encode(message: _131.ClassIssuer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassIssuer; + fromJSON(object: any): _131.ClassIssuer; + toJSON(message: _131.ClassIssuer): unknown; + fromPartial(object: Partial<_131.ClassIssuer>): _131.ClassIssuer; + fromAmino(object: _131.ClassIssuerAmino): _131.ClassIssuer; + toAmino(message: _131.ClassIssuer): _131.ClassIssuerAmino; + fromAminoMsg(object: _131.ClassIssuerAminoMsg): _131.ClassIssuer; + fromProtoMsg(message: _131.ClassIssuerProtoMsg): _131.ClassIssuer; + toProto(message: _131.ClassIssuer): Uint8Array; + toProtoMsg(message: _131.ClassIssuer): _131.ClassIssuerProtoMsg; }; Project: { - encode(message: _130.Project, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.Project; - fromJSON(object: any): _130.Project; - toJSON(message: _130.Project): unknown; - fromPartial(object: Partial<_130.Project>): _130.Project; - fromAmino(object: _130.ProjectAmino): _130.Project; - toAmino(message: _130.Project): _130.ProjectAmino; - fromAminoMsg(object: _130.ProjectAminoMsg): _130.Project; - fromProtoMsg(message: _130.ProjectProtoMsg): _130.Project; - toProto(message: _130.Project): Uint8Array; - toProtoMsg(message: _130.Project): _130.ProjectProtoMsg; + typeUrl: string; + encode(message: _131.Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Project; + fromJSON(object: any): _131.Project; + toJSON(message: _131.Project): unknown; + fromPartial(object: Partial<_131.Project>): _131.Project; + fromAmino(object: _131.ProjectAmino): _131.Project; + toAmino(message: _131.Project): _131.ProjectAmino; + fromAminoMsg(object: _131.ProjectAminoMsg): _131.Project; + fromProtoMsg(message: _131.ProjectProtoMsg): _131.Project; + toProto(message: _131.Project): Uint8Array; + toProtoMsg(message: _131.Project): _131.ProjectProtoMsg; }; Batch: { - encode(message: _130.Batch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.Batch; - fromJSON(object: any): _130.Batch; - toJSON(message: _130.Batch): unknown; - fromPartial(object: Partial<_130.Batch>): _130.Batch; - fromAmino(object: _130.BatchAmino): _130.Batch; - toAmino(message: _130.Batch): _130.BatchAmino; - fromAminoMsg(object: _130.BatchAminoMsg): _130.Batch; - fromProtoMsg(message: _130.BatchProtoMsg): _130.Batch; - toProto(message: _130.Batch): Uint8Array; - toProtoMsg(message: _130.Batch): _130.BatchProtoMsg; + typeUrl: string; + encode(message: _131.Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Batch; + fromJSON(object: any): _131.Batch; + toJSON(message: _131.Batch): unknown; + fromPartial(object: Partial<_131.Batch>): _131.Batch; + fromAmino(object: _131.BatchAmino): _131.Batch; + toAmino(message: _131.Batch): _131.BatchAmino; + fromAminoMsg(object: _131.BatchAminoMsg): _131.Batch; + fromProtoMsg(message: _131.BatchProtoMsg): _131.Batch; + toProto(message: _131.Batch): Uint8Array; + toProtoMsg(message: _131.Batch): _131.BatchProtoMsg; }; ClassSequence: { - encode(message: _130.ClassSequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.ClassSequence; - fromJSON(object: any): _130.ClassSequence; - toJSON(message: _130.ClassSequence): unknown; - fromPartial(object: Partial<_130.ClassSequence>): _130.ClassSequence; - fromAmino(object: _130.ClassSequenceAmino): _130.ClassSequence; - toAmino(message: _130.ClassSequence): _130.ClassSequenceAmino; - fromAminoMsg(object: _130.ClassSequenceAminoMsg): _130.ClassSequence; - fromProtoMsg(message: _130.ClassSequenceProtoMsg): _130.ClassSequence; - toProto(message: _130.ClassSequence): Uint8Array; - toProtoMsg(message: _130.ClassSequence): _130.ClassSequenceProtoMsg; + typeUrl: string; + encode(message: _131.ClassSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassSequence; + fromJSON(object: any): _131.ClassSequence; + toJSON(message: _131.ClassSequence): unknown; + fromPartial(object: Partial<_131.ClassSequence>): _131.ClassSequence; + fromAmino(object: _131.ClassSequenceAmino): _131.ClassSequence; + toAmino(message: _131.ClassSequence): _131.ClassSequenceAmino; + fromAminoMsg(object: _131.ClassSequenceAminoMsg): _131.ClassSequence; + fromProtoMsg(message: _131.ClassSequenceProtoMsg): _131.ClassSequence; + toProto(message: _131.ClassSequence): Uint8Array; + toProtoMsg(message: _131.ClassSequence): _131.ClassSequenceProtoMsg; }; ProjectSequence: { - encode(message: _130.ProjectSequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.ProjectSequence; - fromJSON(object: any): _130.ProjectSequence; - toJSON(message: _130.ProjectSequence): unknown; - fromPartial(object: Partial<_130.ProjectSequence>): _130.ProjectSequence; - fromAmino(object: _130.ProjectSequenceAmino): _130.ProjectSequence; - toAmino(message: _130.ProjectSequence): _130.ProjectSequenceAmino; - fromAminoMsg(object: _130.ProjectSequenceAminoMsg): _130.ProjectSequence; - fromProtoMsg(message: _130.ProjectSequenceProtoMsg): _130.ProjectSequence; - toProto(message: _130.ProjectSequence): Uint8Array; - toProtoMsg(message: _130.ProjectSequence): _130.ProjectSequenceProtoMsg; + typeUrl: string; + encode(message: _131.ProjectSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ProjectSequence; + fromJSON(object: any): _131.ProjectSequence; + toJSON(message: _131.ProjectSequence): unknown; + fromPartial(object: Partial<_131.ProjectSequence>): _131.ProjectSequence; + fromAmino(object: _131.ProjectSequenceAmino): _131.ProjectSequence; + toAmino(message: _131.ProjectSequence): _131.ProjectSequenceAmino; + fromAminoMsg(object: _131.ProjectSequenceAminoMsg): _131.ProjectSequence; + fromProtoMsg(message: _131.ProjectSequenceProtoMsg): _131.ProjectSequence; + toProto(message: _131.ProjectSequence): Uint8Array; + toProtoMsg(message: _131.ProjectSequence): _131.ProjectSequenceProtoMsg; }; BatchSequence: { - encode(message: _130.BatchSequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.BatchSequence; - fromJSON(object: any): _130.BatchSequence; - toJSON(message: _130.BatchSequence): unknown; - fromPartial(object: Partial<_130.BatchSequence>): _130.BatchSequence; - fromAmino(object: _130.BatchSequenceAmino): _130.BatchSequence; - toAmino(message: _130.BatchSequence): _130.BatchSequenceAmino; - fromAminoMsg(object: _130.BatchSequenceAminoMsg): _130.BatchSequence; - fromProtoMsg(message: _130.BatchSequenceProtoMsg): _130.BatchSequence; - toProto(message: _130.BatchSequence): Uint8Array; - toProtoMsg(message: _130.BatchSequence): _130.BatchSequenceProtoMsg; + typeUrl: string; + encode(message: _131.BatchSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchSequence; + fromJSON(object: any): _131.BatchSequence; + toJSON(message: _131.BatchSequence): unknown; + fromPartial(object: Partial<_131.BatchSequence>): _131.BatchSequence; + fromAmino(object: _131.BatchSequenceAmino): _131.BatchSequence; + toAmino(message: _131.BatchSequence): _131.BatchSequenceAmino; + fromAminoMsg(object: _131.BatchSequenceAminoMsg): _131.BatchSequence; + fromProtoMsg(message: _131.BatchSequenceProtoMsg): _131.BatchSequence; + toProto(message: _131.BatchSequence): Uint8Array; + toProtoMsg(message: _131.BatchSequence): _131.BatchSequenceProtoMsg; }; BatchBalance: { - encode(message: _130.BatchBalance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.BatchBalance; - fromJSON(object: any): _130.BatchBalance; - toJSON(message: _130.BatchBalance): unknown; - fromPartial(object: Partial<_130.BatchBalance>): _130.BatchBalance; - fromAmino(object: _130.BatchBalanceAmino): _130.BatchBalance; - toAmino(message: _130.BatchBalance): _130.BatchBalanceAmino; - fromAminoMsg(object: _130.BatchBalanceAminoMsg): _130.BatchBalance; - fromProtoMsg(message: _130.BatchBalanceProtoMsg): _130.BatchBalance; - toProto(message: _130.BatchBalance): Uint8Array; - toProtoMsg(message: _130.BatchBalance): _130.BatchBalanceProtoMsg; + typeUrl: string; + encode(message: _131.BatchBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchBalance; + fromJSON(object: any): _131.BatchBalance; + toJSON(message: _131.BatchBalance): unknown; + fromPartial(object: Partial<_131.BatchBalance>): _131.BatchBalance; + fromAmino(object: _131.BatchBalanceAmino): _131.BatchBalance; + toAmino(message: _131.BatchBalance): _131.BatchBalanceAmino; + fromAminoMsg(object: _131.BatchBalanceAminoMsg): _131.BatchBalance; + fromProtoMsg(message: _131.BatchBalanceProtoMsg): _131.BatchBalance; + toProto(message: _131.BatchBalance): Uint8Array; + toProtoMsg(message: _131.BatchBalance): _131.BatchBalanceProtoMsg; }; BatchSupply: { - encode(message: _130.BatchSupply, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.BatchSupply; - fromJSON(object: any): _130.BatchSupply; - toJSON(message: _130.BatchSupply): unknown; - fromPartial(object: Partial<_130.BatchSupply>): _130.BatchSupply; - fromAmino(object: _130.BatchSupplyAmino): _130.BatchSupply; - toAmino(message: _130.BatchSupply): _130.BatchSupplyAmino; - fromAminoMsg(object: _130.BatchSupplyAminoMsg): _130.BatchSupply; - fromProtoMsg(message: _130.BatchSupplyProtoMsg): _130.BatchSupply; - toProto(message: _130.BatchSupply): Uint8Array; - toProtoMsg(message: _130.BatchSupply): _130.BatchSupplyProtoMsg; + typeUrl: string; + encode(message: _131.BatchSupply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchSupply; + fromJSON(object: any): _131.BatchSupply; + toJSON(message: _131.BatchSupply): unknown; + fromPartial(object: Partial<_131.BatchSupply>): _131.BatchSupply; + fromAmino(object: _131.BatchSupplyAmino): _131.BatchSupply; + toAmino(message: _131.BatchSupply): _131.BatchSupplyAmino; + fromAminoMsg(object: _131.BatchSupplyAminoMsg): _131.BatchSupply; + fromProtoMsg(message: _131.BatchSupplyProtoMsg): _131.BatchSupply; + toProto(message: _131.BatchSupply): Uint8Array; + toProtoMsg(message: _131.BatchSupply): _131.BatchSupplyProtoMsg; }; OriginTxIndex: { - encode(message: _130.OriginTxIndex, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.OriginTxIndex; - fromJSON(object: any): _130.OriginTxIndex; - toJSON(message: _130.OriginTxIndex): unknown; - fromPartial(object: Partial<_130.OriginTxIndex>): _130.OriginTxIndex; - fromAmino(object: _130.OriginTxIndexAmino): _130.OriginTxIndex; - toAmino(message: _130.OriginTxIndex): _130.OriginTxIndexAmino; - fromAminoMsg(object: _130.OriginTxIndexAminoMsg): _130.OriginTxIndex; - fromProtoMsg(message: _130.OriginTxIndexProtoMsg): _130.OriginTxIndex; - toProto(message: _130.OriginTxIndex): Uint8Array; - toProtoMsg(message: _130.OriginTxIndex): _130.OriginTxIndexProtoMsg; + typeUrl: string; + encode(message: _131.OriginTxIndex, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.OriginTxIndex; + fromJSON(object: any): _131.OriginTxIndex; + toJSON(message: _131.OriginTxIndex): unknown; + fromPartial(object: Partial<_131.OriginTxIndex>): _131.OriginTxIndex; + fromAmino(object: _131.OriginTxIndexAmino): _131.OriginTxIndex; + toAmino(message: _131.OriginTxIndex): _131.OriginTxIndexAmino; + fromAminoMsg(object: _131.OriginTxIndexAminoMsg): _131.OriginTxIndex; + fromProtoMsg(message: _131.OriginTxIndexProtoMsg): _131.OriginTxIndex; + toProto(message: _131.OriginTxIndex): Uint8Array; + toProtoMsg(message: _131.OriginTxIndex): _131.OriginTxIndexProtoMsg; }; BatchContract: { - encode(message: _130.BatchContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.BatchContract; - fromJSON(object: any): _130.BatchContract; - toJSON(message: _130.BatchContract): unknown; - fromPartial(object: Partial<_130.BatchContract>): _130.BatchContract; - fromAmino(object: _130.BatchContractAmino): _130.BatchContract; - toAmino(message: _130.BatchContract): _130.BatchContractAmino; - fromAminoMsg(object: _130.BatchContractAminoMsg): _130.BatchContract; - fromProtoMsg(message: _130.BatchContractProtoMsg): _130.BatchContract; - toProto(message: _130.BatchContract): Uint8Array; - toProtoMsg(message: _130.BatchContract): _130.BatchContractProtoMsg; + typeUrl: string; + encode(message: _131.BatchContract, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchContract; + fromJSON(object: any): _131.BatchContract; + toJSON(message: _131.BatchContract): unknown; + fromPartial(object: Partial<_131.BatchContract>): _131.BatchContract; + fromAmino(object: _131.BatchContractAmino): _131.BatchContract; + toAmino(message: _131.BatchContract): _131.BatchContractAmino; + fromAminoMsg(object: _131.BatchContractAminoMsg): _131.BatchContract; + fromProtoMsg(message: _131.BatchContractProtoMsg): _131.BatchContract; + toProto(message: _131.BatchContract): Uint8Array; + toProtoMsg(message: _131.BatchContract): _131.BatchContractProtoMsg; }; ClassCreatorAllowlist: { - encode(message: _130.ClassCreatorAllowlist, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.ClassCreatorAllowlist; - fromJSON(object: any): _130.ClassCreatorAllowlist; - toJSON(message: _130.ClassCreatorAllowlist): unknown; - fromPartial(object: Partial<_130.ClassCreatorAllowlist>): _130.ClassCreatorAllowlist; - fromAmino(object: _130.ClassCreatorAllowlistAmino): _130.ClassCreatorAllowlist; - toAmino(message: _130.ClassCreatorAllowlist): _130.ClassCreatorAllowlistAmino; - fromAminoMsg(object: _130.ClassCreatorAllowlistAminoMsg): _130.ClassCreatorAllowlist; - fromProtoMsg(message: _130.ClassCreatorAllowlistProtoMsg): _130.ClassCreatorAllowlist; - toProto(message: _130.ClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _130.ClassCreatorAllowlist): _130.ClassCreatorAllowlistProtoMsg; + typeUrl: string; + encode(message: _131.ClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassCreatorAllowlist; + fromJSON(object: any): _131.ClassCreatorAllowlist; + toJSON(message: _131.ClassCreatorAllowlist): unknown; + fromPartial(object: Partial<_131.ClassCreatorAllowlist>): _131.ClassCreatorAllowlist; + fromAmino(object: _131.ClassCreatorAllowlistAmino): _131.ClassCreatorAllowlist; + toAmino(message: _131.ClassCreatorAllowlist): _131.ClassCreatorAllowlistAmino; + fromAminoMsg(object: _131.ClassCreatorAllowlistAminoMsg): _131.ClassCreatorAllowlist; + fromProtoMsg(message: _131.ClassCreatorAllowlistProtoMsg): _131.ClassCreatorAllowlist; + toProto(message: _131.ClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: _131.ClassCreatorAllowlist): _131.ClassCreatorAllowlistProtoMsg; }; AllowedClassCreator: { - encode(message: _130.AllowedClassCreator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.AllowedClassCreator; - fromJSON(object: any): _130.AllowedClassCreator; - toJSON(message: _130.AllowedClassCreator): unknown; - fromPartial(object: Partial<_130.AllowedClassCreator>): _130.AllowedClassCreator; - fromAmino(object: _130.AllowedClassCreatorAmino): _130.AllowedClassCreator; - toAmino(message: _130.AllowedClassCreator): _130.AllowedClassCreatorAmino; - fromAminoMsg(object: _130.AllowedClassCreatorAminoMsg): _130.AllowedClassCreator; - fromProtoMsg(message: _130.AllowedClassCreatorProtoMsg): _130.AllowedClassCreator; - toProto(message: _130.AllowedClassCreator): Uint8Array; - toProtoMsg(message: _130.AllowedClassCreator): _130.AllowedClassCreatorProtoMsg; + typeUrl: string; + encode(message: _131.AllowedClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.AllowedClassCreator; + fromJSON(object: any): _131.AllowedClassCreator; + toJSON(message: _131.AllowedClassCreator): unknown; + fromPartial(object: Partial<_131.AllowedClassCreator>): _131.AllowedClassCreator; + fromAmino(object: _131.AllowedClassCreatorAmino): _131.AllowedClassCreator; + toAmino(message: _131.AllowedClassCreator): _131.AllowedClassCreatorAmino; + fromAminoMsg(object: _131.AllowedClassCreatorAminoMsg): _131.AllowedClassCreator; + fromProtoMsg(message: _131.AllowedClassCreatorProtoMsg): _131.AllowedClassCreator; + toProto(message: _131.AllowedClassCreator): Uint8Array; + toProtoMsg(message: _131.AllowedClassCreator): _131.AllowedClassCreatorProtoMsg; }; ClassFee: { - encode(message: _130.ClassFee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.ClassFee; - fromJSON(object: any): _130.ClassFee; - toJSON(message: _130.ClassFee): unknown; - fromPartial(object: Partial<_130.ClassFee>): _130.ClassFee; - fromAmino(object: _130.ClassFeeAmino): _130.ClassFee; - toAmino(message: _130.ClassFee): _130.ClassFeeAmino; - fromAminoMsg(object: _130.ClassFeeAminoMsg): _130.ClassFee; - fromProtoMsg(message: _130.ClassFeeProtoMsg): _130.ClassFee; - toProto(message: _130.ClassFee): Uint8Array; - toProtoMsg(message: _130.ClassFee): _130.ClassFeeProtoMsg; + typeUrl: string; + encode(message: _131.ClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassFee; + fromJSON(object: any): _131.ClassFee; + toJSON(message: _131.ClassFee): unknown; + fromPartial(object: Partial<_131.ClassFee>): _131.ClassFee; + fromAmino(object: _131.ClassFeeAmino): _131.ClassFee; + toAmino(message: _131.ClassFee): _131.ClassFeeAmino; + fromAminoMsg(object: _131.ClassFeeAminoMsg): _131.ClassFee; + fromProtoMsg(message: _131.ClassFeeProtoMsg): _131.ClassFee; + toProto(message: _131.ClassFee): Uint8Array; + toProtoMsg(message: _131.ClassFee): _131.ClassFeeProtoMsg; }; AllowedBridgeChain: { - encode(message: _130.AllowedBridgeChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _130.AllowedBridgeChain; - fromJSON(object: any): _130.AllowedBridgeChain; - toJSON(message: _130.AllowedBridgeChain): unknown; - fromPartial(object: Partial<_130.AllowedBridgeChain>): _130.AllowedBridgeChain; - fromAmino(object: _130.AllowedBridgeChainAmino): _130.AllowedBridgeChain; - toAmino(message: _130.AllowedBridgeChain): _130.AllowedBridgeChainAmino; - fromAminoMsg(object: _130.AllowedBridgeChainAminoMsg): _130.AllowedBridgeChain; - fromProtoMsg(message: _130.AllowedBridgeChainProtoMsg): _130.AllowedBridgeChain; - toProto(message: _130.AllowedBridgeChain): Uint8Array; - toProtoMsg(message: _130.AllowedBridgeChain): _130.AllowedBridgeChainProtoMsg; + typeUrl: string; + encode(message: _131.AllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.AllowedBridgeChain; + fromJSON(object: any): _131.AllowedBridgeChain; + toJSON(message: _131.AllowedBridgeChain): unknown; + fromPartial(object: Partial<_131.AllowedBridgeChain>): _131.AllowedBridgeChain; + fromAmino(object: _131.AllowedBridgeChainAmino): _131.AllowedBridgeChain; + toAmino(message: _131.AllowedBridgeChain): _131.AllowedBridgeChainAmino; + fromAminoMsg(object: _131.AllowedBridgeChainAminoMsg): _131.AllowedBridgeChain; + fromProtoMsg(message: _131.AllowedBridgeChainProtoMsg): _131.AllowedBridgeChain; + toProto(message: _131.AllowedBridgeChain): Uint8Array; + toProtoMsg(message: _131.AllowedBridgeChain): _131.AllowedBridgeChainProtoMsg; }; QueryClassesRequest: { - encode(message: _129.QueryClassesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassesRequest; - fromJSON(object: any): _129.QueryClassesRequest; - toJSON(message: _129.QueryClassesRequest): unknown; - fromPartial(object: Partial<_129.QueryClassesRequest>): _129.QueryClassesRequest; - fromAmino(object: _129.QueryClassesRequestAmino): _129.QueryClassesRequest; - toAmino(message: _129.QueryClassesRequest): _129.QueryClassesRequestAmino; - fromAminoMsg(object: _129.QueryClassesRequestAminoMsg): _129.QueryClassesRequest; - fromProtoMsg(message: _129.QueryClassesRequestProtoMsg): _129.QueryClassesRequest; - toProto(message: _129.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassesRequest): _129.QueryClassesRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesRequest; + fromJSON(object: any): _130.QueryClassesRequest; + toJSON(message: _130.QueryClassesRequest): unknown; + fromPartial(object: Partial<_130.QueryClassesRequest>): _130.QueryClassesRequest; + fromAmino(object: _130.QueryClassesRequestAmino): _130.QueryClassesRequest; + toAmino(message: _130.QueryClassesRequest): _130.QueryClassesRequestAmino; + fromAminoMsg(object: _130.QueryClassesRequestAminoMsg): _130.QueryClassesRequest; + fromProtoMsg(message: _130.QueryClassesRequestProtoMsg): _130.QueryClassesRequest; + toProto(message: _130.QueryClassesRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassesRequest): _130.QueryClassesRequestProtoMsg; }; QueryClassesResponse: { - encode(message: _129.QueryClassesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassesResponse; - fromJSON(object: any): _129.QueryClassesResponse; - toJSON(message: _129.QueryClassesResponse): unknown; - fromPartial(object: Partial<_129.QueryClassesResponse>): _129.QueryClassesResponse; - fromAmino(object: _129.QueryClassesResponseAmino): _129.QueryClassesResponse; - toAmino(message: _129.QueryClassesResponse): _129.QueryClassesResponseAmino; - fromAminoMsg(object: _129.QueryClassesResponseAminoMsg): _129.QueryClassesResponse; - fromProtoMsg(message: _129.QueryClassesResponseProtoMsg): _129.QueryClassesResponse; - toProto(message: _129.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassesResponse): _129.QueryClassesResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesResponse; + fromJSON(object: any): _130.QueryClassesResponse; + toJSON(message: _130.QueryClassesResponse): unknown; + fromPartial(object: Partial<_130.QueryClassesResponse>): _130.QueryClassesResponse; + fromAmino(object: _130.QueryClassesResponseAmino): _130.QueryClassesResponse; + toAmino(message: _130.QueryClassesResponse): _130.QueryClassesResponseAmino; + fromAminoMsg(object: _130.QueryClassesResponseAminoMsg): _130.QueryClassesResponse; + fromProtoMsg(message: _130.QueryClassesResponseProtoMsg): _130.QueryClassesResponse; + toProto(message: _130.QueryClassesResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassesResponse): _130.QueryClassesResponseProtoMsg; }; QueryClassesByAdminRequest: { - encode(message: _129.QueryClassesByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassesByAdminRequest; - fromJSON(object: any): _129.QueryClassesByAdminRequest; - toJSON(message: _129.QueryClassesByAdminRequest): unknown; - fromPartial(object: Partial<_129.QueryClassesByAdminRequest>): _129.QueryClassesByAdminRequest; - fromAmino(object: _129.QueryClassesByAdminRequestAmino): _129.QueryClassesByAdminRequest; - toAmino(message: _129.QueryClassesByAdminRequest): _129.QueryClassesByAdminRequestAmino; - fromAminoMsg(object: _129.QueryClassesByAdminRequestAminoMsg): _129.QueryClassesByAdminRequest; - fromProtoMsg(message: _129.QueryClassesByAdminRequestProtoMsg): _129.QueryClassesByAdminRequest; - toProto(message: _129.QueryClassesByAdminRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassesByAdminRequest): _129.QueryClassesByAdminRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesByAdminRequest; + fromJSON(object: any): _130.QueryClassesByAdminRequest; + toJSON(message: _130.QueryClassesByAdminRequest): unknown; + fromPartial(object: Partial<_130.QueryClassesByAdminRequest>): _130.QueryClassesByAdminRequest; + fromAmino(object: _130.QueryClassesByAdminRequestAmino): _130.QueryClassesByAdminRequest; + toAmino(message: _130.QueryClassesByAdminRequest): _130.QueryClassesByAdminRequestAmino; + fromAminoMsg(object: _130.QueryClassesByAdminRequestAminoMsg): _130.QueryClassesByAdminRequest; + fromProtoMsg(message: _130.QueryClassesByAdminRequestProtoMsg): _130.QueryClassesByAdminRequest; + toProto(message: _130.QueryClassesByAdminRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassesByAdminRequest): _130.QueryClassesByAdminRequestProtoMsg; }; QueryClassesByAdminResponse: { - encode(message: _129.QueryClassesByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassesByAdminResponse; - fromJSON(object: any): _129.QueryClassesByAdminResponse; - toJSON(message: _129.QueryClassesByAdminResponse): unknown; - fromPartial(object: Partial<_129.QueryClassesByAdminResponse>): _129.QueryClassesByAdminResponse; - fromAmino(object: _129.QueryClassesByAdminResponseAmino): _129.QueryClassesByAdminResponse; - toAmino(message: _129.QueryClassesByAdminResponse): _129.QueryClassesByAdminResponseAmino; - fromAminoMsg(object: _129.QueryClassesByAdminResponseAminoMsg): _129.QueryClassesByAdminResponse; - fromProtoMsg(message: _129.QueryClassesByAdminResponseProtoMsg): _129.QueryClassesByAdminResponse; - toProto(message: _129.QueryClassesByAdminResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassesByAdminResponse): _129.QueryClassesByAdminResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesByAdminResponse; + fromJSON(object: any): _130.QueryClassesByAdminResponse; + toJSON(message: _130.QueryClassesByAdminResponse): unknown; + fromPartial(object: Partial<_130.QueryClassesByAdminResponse>): _130.QueryClassesByAdminResponse; + fromAmino(object: _130.QueryClassesByAdminResponseAmino): _130.QueryClassesByAdminResponse; + toAmino(message: _130.QueryClassesByAdminResponse): _130.QueryClassesByAdminResponseAmino; + fromAminoMsg(object: _130.QueryClassesByAdminResponseAminoMsg): _130.QueryClassesByAdminResponse; + fromProtoMsg(message: _130.QueryClassesByAdminResponseProtoMsg): _130.QueryClassesByAdminResponse; + toProto(message: _130.QueryClassesByAdminResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassesByAdminResponse): _130.QueryClassesByAdminResponseProtoMsg; }; QueryClassRequest: { - encode(message: _129.QueryClassRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassRequest; - fromJSON(object: any): _129.QueryClassRequest; - toJSON(message: _129.QueryClassRequest): unknown; - fromPartial(object: Partial<_129.QueryClassRequest>): _129.QueryClassRequest; - fromAmino(object: _129.QueryClassRequestAmino): _129.QueryClassRequest; - toAmino(message: _129.QueryClassRequest): _129.QueryClassRequestAmino; - fromAminoMsg(object: _129.QueryClassRequestAminoMsg): _129.QueryClassRequest; - fromProtoMsg(message: _129.QueryClassRequestProtoMsg): _129.QueryClassRequest; - toProto(message: _129.QueryClassRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassRequest): _129.QueryClassRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassRequest; + fromJSON(object: any): _130.QueryClassRequest; + toJSON(message: _130.QueryClassRequest): unknown; + fromPartial(object: Partial<_130.QueryClassRequest>): _130.QueryClassRequest; + fromAmino(object: _130.QueryClassRequestAmino): _130.QueryClassRequest; + toAmino(message: _130.QueryClassRequest): _130.QueryClassRequestAmino; + fromAminoMsg(object: _130.QueryClassRequestAminoMsg): _130.QueryClassRequest; + fromProtoMsg(message: _130.QueryClassRequestProtoMsg): _130.QueryClassRequest; + toProto(message: _130.QueryClassRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassRequest): _130.QueryClassRequestProtoMsg; }; QueryClassResponse: { - encode(message: _129.QueryClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassResponse; - fromJSON(object: any): _129.QueryClassResponse; - toJSON(message: _129.QueryClassResponse): unknown; - fromPartial(object: Partial<_129.QueryClassResponse>): _129.QueryClassResponse; - fromAmino(object: _129.QueryClassResponseAmino): _129.QueryClassResponse; - toAmino(message: _129.QueryClassResponse): _129.QueryClassResponseAmino; - fromAminoMsg(object: _129.QueryClassResponseAminoMsg): _129.QueryClassResponse; - fromProtoMsg(message: _129.QueryClassResponseProtoMsg): _129.QueryClassResponse; - toProto(message: _129.QueryClassResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassResponse): _129.QueryClassResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassResponse; + fromJSON(object: any): _130.QueryClassResponse; + toJSON(message: _130.QueryClassResponse): unknown; + fromPartial(object: Partial<_130.QueryClassResponse>): _130.QueryClassResponse; + fromAmino(object: _130.QueryClassResponseAmino): _130.QueryClassResponse; + toAmino(message: _130.QueryClassResponse): _130.QueryClassResponseAmino; + fromAminoMsg(object: _130.QueryClassResponseAminoMsg): _130.QueryClassResponse; + fromProtoMsg(message: _130.QueryClassResponseProtoMsg): _130.QueryClassResponse; + toProto(message: _130.QueryClassResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassResponse): _130.QueryClassResponseProtoMsg; }; QueryClassIssuersRequest: { - encode(message: _129.QueryClassIssuersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassIssuersRequest; - fromJSON(object: any): _129.QueryClassIssuersRequest; - toJSON(message: _129.QueryClassIssuersRequest): unknown; - fromPartial(object: Partial<_129.QueryClassIssuersRequest>): _129.QueryClassIssuersRequest; - fromAmino(object: _129.QueryClassIssuersRequestAmino): _129.QueryClassIssuersRequest; - toAmino(message: _129.QueryClassIssuersRequest): _129.QueryClassIssuersRequestAmino; - fromAminoMsg(object: _129.QueryClassIssuersRequestAminoMsg): _129.QueryClassIssuersRequest; - fromProtoMsg(message: _129.QueryClassIssuersRequestProtoMsg): _129.QueryClassIssuersRequest; - toProto(message: _129.QueryClassIssuersRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassIssuersRequest): _129.QueryClassIssuersRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassIssuersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassIssuersRequest; + fromJSON(object: any): _130.QueryClassIssuersRequest; + toJSON(message: _130.QueryClassIssuersRequest): unknown; + fromPartial(object: Partial<_130.QueryClassIssuersRequest>): _130.QueryClassIssuersRequest; + fromAmino(object: _130.QueryClassIssuersRequestAmino): _130.QueryClassIssuersRequest; + toAmino(message: _130.QueryClassIssuersRequest): _130.QueryClassIssuersRequestAmino; + fromAminoMsg(object: _130.QueryClassIssuersRequestAminoMsg): _130.QueryClassIssuersRequest; + fromProtoMsg(message: _130.QueryClassIssuersRequestProtoMsg): _130.QueryClassIssuersRequest; + toProto(message: _130.QueryClassIssuersRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassIssuersRequest): _130.QueryClassIssuersRequestProtoMsg; }; QueryClassIssuersResponse: { - encode(message: _129.QueryClassIssuersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassIssuersResponse; - fromJSON(object: any): _129.QueryClassIssuersResponse; - toJSON(message: _129.QueryClassIssuersResponse): unknown; - fromPartial(object: Partial<_129.QueryClassIssuersResponse>): _129.QueryClassIssuersResponse; - fromAmino(object: _129.QueryClassIssuersResponseAmino): _129.QueryClassIssuersResponse; - toAmino(message: _129.QueryClassIssuersResponse): _129.QueryClassIssuersResponseAmino; - fromAminoMsg(object: _129.QueryClassIssuersResponseAminoMsg): _129.QueryClassIssuersResponse; - fromProtoMsg(message: _129.QueryClassIssuersResponseProtoMsg): _129.QueryClassIssuersResponse; - toProto(message: _129.QueryClassIssuersResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassIssuersResponse): _129.QueryClassIssuersResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassIssuersResponse; + fromJSON(object: any): _130.QueryClassIssuersResponse; + toJSON(message: _130.QueryClassIssuersResponse): unknown; + fromPartial(object: Partial<_130.QueryClassIssuersResponse>): _130.QueryClassIssuersResponse; + fromAmino(object: _130.QueryClassIssuersResponseAmino): _130.QueryClassIssuersResponse; + toAmino(message: _130.QueryClassIssuersResponse): _130.QueryClassIssuersResponseAmino; + fromAminoMsg(object: _130.QueryClassIssuersResponseAminoMsg): _130.QueryClassIssuersResponse; + fromProtoMsg(message: _130.QueryClassIssuersResponseProtoMsg): _130.QueryClassIssuersResponse; + toProto(message: _130.QueryClassIssuersResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassIssuersResponse): _130.QueryClassIssuersResponseProtoMsg; }; QueryProjectsRequest: { - encode(message: _129.QueryProjectsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsRequest; - fromJSON(object: any): _129.QueryProjectsRequest; - toJSON(message: _129.QueryProjectsRequest): unknown; - fromPartial(object: Partial<_129.QueryProjectsRequest>): _129.QueryProjectsRequest; - fromAmino(object: _129.QueryProjectsRequestAmino): _129.QueryProjectsRequest; - toAmino(message: _129.QueryProjectsRequest): _129.QueryProjectsRequestAmino; - fromAminoMsg(object: _129.QueryProjectsRequestAminoMsg): _129.QueryProjectsRequest; - fromProtoMsg(message: _129.QueryProjectsRequestProtoMsg): _129.QueryProjectsRequest; - toProto(message: _129.QueryProjectsRequest): Uint8Array; - toProtoMsg(message: _129.QueryProjectsRequest): _129.QueryProjectsRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsRequest; + fromJSON(object: any): _130.QueryProjectsRequest; + toJSON(message: _130.QueryProjectsRequest): unknown; + fromPartial(object: Partial<_130.QueryProjectsRequest>): _130.QueryProjectsRequest; + fromAmino(object: _130.QueryProjectsRequestAmino): _130.QueryProjectsRequest; + toAmino(message: _130.QueryProjectsRequest): _130.QueryProjectsRequestAmino; + fromAminoMsg(object: _130.QueryProjectsRequestAminoMsg): _130.QueryProjectsRequest; + fromProtoMsg(message: _130.QueryProjectsRequestProtoMsg): _130.QueryProjectsRequest; + toProto(message: _130.QueryProjectsRequest): Uint8Array; + toProtoMsg(message: _130.QueryProjectsRequest): _130.QueryProjectsRequestProtoMsg; }; QueryProjectsResponse: { - encode(message: _129.QueryProjectsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsResponse; - fromJSON(object: any): _129.QueryProjectsResponse; - toJSON(message: _129.QueryProjectsResponse): unknown; - fromPartial(object: Partial<_129.QueryProjectsResponse>): _129.QueryProjectsResponse; - fromAmino(object: _129.QueryProjectsResponseAmino): _129.QueryProjectsResponse; - toAmino(message: _129.QueryProjectsResponse): _129.QueryProjectsResponseAmino; - fromAminoMsg(object: _129.QueryProjectsResponseAminoMsg): _129.QueryProjectsResponse; - fromProtoMsg(message: _129.QueryProjectsResponseProtoMsg): _129.QueryProjectsResponse; - toProto(message: _129.QueryProjectsResponse): Uint8Array; - toProtoMsg(message: _129.QueryProjectsResponse): _129.QueryProjectsResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsResponse; + fromJSON(object: any): _130.QueryProjectsResponse; + toJSON(message: _130.QueryProjectsResponse): unknown; + fromPartial(object: Partial<_130.QueryProjectsResponse>): _130.QueryProjectsResponse; + fromAmino(object: _130.QueryProjectsResponseAmino): _130.QueryProjectsResponse; + toAmino(message: _130.QueryProjectsResponse): _130.QueryProjectsResponseAmino; + fromAminoMsg(object: _130.QueryProjectsResponseAminoMsg): _130.QueryProjectsResponse; + fromProtoMsg(message: _130.QueryProjectsResponseProtoMsg): _130.QueryProjectsResponse; + toProto(message: _130.QueryProjectsResponse): Uint8Array; + toProtoMsg(message: _130.QueryProjectsResponse): _130.QueryProjectsResponseProtoMsg; }; QueryProjectsByClassRequest: { - encode(message: _129.QueryProjectsByClassRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByClassRequest; - fromJSON(object: any): _129.QueryProjectsByClassRequest; - toJSON(message: _129.QueryProjectsByClassRequest): unknown; - fromPartial(object: Partial<_129.QueryProjectsByClassRequest>): _129.QueryProjectsByClassRequest; - fromAmino(object: _129.QueryProjectsByClassRequestAmino): _129.QueryProjectsByClassRequest; - toAmino(message: _129.QueryProjectsByClassRequest): _129.QueryProjectsByClassRequestAmino; - fromAminoMsg(object: _129.QueryProjectsByClassRequestAminoMsg): _129.QueryProjectsByClassRequest; - fromProtoMsg(message: _129.QueryProjectsByClassRequestProtoMsg): _129.QueryProjectsByClassRequest; - toProto(message: _129.QueryProjectsByClassRequest): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByClassRequest): _129.QueryProjectsByClassRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByClassRequest; + fromJSON(object: any): _130.QueryProjectsByClassRequest; + toJSON(message: _130.QueryProjectsByClassRequest): unknown; + fromPartial(object: Partial<_130.QueryProjectsByClassRequest>): _130.QueryProjectsByClassRequest; + fromAmino(object: _130.QueryProjectsByClassRequestAmino): _130.QueryProjectsByClassRequest; + toAmino(message: _130.QueryProjectsByClassRequest): _130.QueryProjectsByClassRequestAmino; + fromAminoMsg(object: _130.QueryProjectsByClassRequestAminoMsg): _130.QueryProjectsByClassRequest; + fromProtoMsg(message: _130.QueryProjectsByClassRequestProtoMsg): _130.QueryProjectsByClassRequest; + toProto(message: _130.QueryProjectsByClassRequest): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByClassRequest): _130.QueryProjectsByClassRequestProtoMsg; }; QueryProjectsByClassResponse: { - encode(message: _129.QueryProjectsByClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByClassResponse; - fromJSON(object: any): _129.QueryProjectsByClassResponse; - toJSON(message: _129.QueryProjectsByClassResponse): unknown; - fromPartial(object: Partial<_129.QueryProjectsByClassResponse>): _129.QueryProjectsByClassResponse; - fromAmino(object: _129.QueryProjectsByClassResponseAmino): _129.QueryProjectsByClassResponse; - toAmino(message: _129.QueryProjectsByClassResponse): _129.QueryProjectsByClassResponseAmino; - fromAminoMsg(object: _129.QueryProjectsByClassResponseAminoMsg): _129.QueryProjectsByClassResponse; - fromProtoMsg(message: _129.QueryProjectsByClassResponseProtoMsg): _129.QueryProjectsByClassResponse; - toProto(message: _129.QueryProjectsByClassResponse): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByClassResponse): _129.QueryProjectsByClassResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByClassResponse; + fromJSON(object: any): _130.QueryProjectsByClassResponse; + toJSON(message: _130.QueryProjectsByClassResponse): unknown; + fromPartial(object: Partial<_130.QueryProjectsByClassResponse>): _130.QueryProjectsByClassResponse; + fromAmino(object: _130.QueryProjectsByClassResponseAmino): _130.QueryProjectsByClassResponse; + toAmino(message: _130.QueryProjectsByClassResponse): _130.QueryProjectsByClassResponseAmino; + fromAminoMsg(object: _130.QueryProjectsByClassResponseAminoMsg): _130.QueryProjectsByClassResponse; + fromProtoMsg(message: _130.QueryProjectsByClassResponseProtoMsg): _130.QueryProjectsByClassResponse; + toProto(message: _130.QueryProjectsByClassResponse): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByClassResponse): _130.QueryProjectsByClassResponseProtoMsg; }; QueryProjectsByReferenceIdRequest: { - encode(message: _129.QueryProjectsByReferenceIdRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByReferenceIdRequest; - fromJSON(object: any): _129.QueryProjectsByReferenceIdRequest; - toJSON(message: _129.QueryProjectsByReferenceIdRequest): unknown; - fromPartial(object: Partial<_129.QueryProjectsByReferenceIdRequest>): _129.QueryProjectsByReferenceIdRequest; - fromAmino(object: _129.QueryProjectsByReferenceIdRequestAmino): _129.QueryProjectsByReferenceIdRequest; - toAmino(message: _129.QueryProjectsByReferenceIdRequest): _129.QueryProjectsByReferenceIdRequestAmino; - fromAminoMsg(object: _129.QueryProjectsByReferenceIdRequestAminoMsg): _129.QueryProjectsByReferenceIdRequest; - fromProtoMsg(message: _129.QueryProjectsByReferenceIdRequestProtoMsg): _129.QueryProjectsByReferenceIdRequest; - toProto(message: _129.QueryProjectsByReferenceIdRequest): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByReferenceIdRequest): _129.QueryProjectsByReferenceIdRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByReferenceIdRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByReferenceIdRequest; + fromJSON(object: any): _130.QueryProjectsByReferenceIdRequest; + toJSON(message: _130.QueryProjectsByReferenceIdRequest): unknown; + fromPartial(object: Partial<_130.QueryProjectsByReferenceIdRequest>): _130.QueryProjectsByReferenceIdRequest; + fromAmino(object: _130.QueryProjectsByReferenceIdRequestAmino): _130.QueryProjectsByReferenceIdRequest; + toAmino(message: _130.QueryProjectsByReferenceIdRequest): _130.QueryProjectsByReferenceIdRequestAmino; + fromAminoMsg(object: _130.QueryProjectsByReferenceIdRequestAminoMsg): _130.QueryProjectsByReferenceIdRequest; + fromProtoMsg(message: _130.QueryProjectsByReferenceIdRequestProtoMsg): _130.QueryProjectsByReferenceIdRequest; + toProto(message: _130.QueryProjectsByReferenceIdRequest): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByReferenceIdRequest): _130.QueryProjectsByReferenceIdRequestProtoMsg; }; QueryProjectsByReferenceIdResponse: { - encode(message: _129.QueryProjectsByReferenceIdResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByReferenceIdResponse; - fromJSON(object: any): _129.QueryProjectsByReferenceIdResponse; - toJSON(message: _129.QueryProjectsByReferenceIdResponse): unknown; - fromPartial(object: Partial<_129.QueryProjectsByReferenceIdResponse>): _129.QueryProjectsByReferenceIdResponse; - fromAmino(object: _129.QueryProjectsByReferenceIdResponseAmino): _129.QueryProjectsByReferenceIdResponse; - toAmino(message: _129.QueryProjectsByReferenceIdResponse): _129.QueryProjectsByReferenceIdResponseAmino; - fromAminoMsg(object: _129.QueryProjectsByReferenceIdResponseAminoMsg): _129.QueryProjectsByReferenceIdResponse; - fromProtoMsg(message: _129.QueryProjectsByReferenceIdResponseProtoMsg): _129.QueryProjectsByReferenceIdResponse; - toProto(message: _129.QueryProjectsByReferenceIdResponse): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByReferenceIdResponse): _129.QueryProjectsByReferenceIdResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByReferenceIdResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByReferenceIdResponse; + fromJSON(object: any): _130.QueryProjectsByReferenceIdResponse; + toJSON(message: _130.QueryProjectsByReferenceIdResponse): unknown; + fromPartial(object: Partial<_130.QueryProjectsByReferenceIdResponse>): _130.QueryProjectsByReferenceIdResponse; + fromAmino(object: _130.QueryProjectsByReferenceIdResponseAmino): _130.QueryProjectsByReferenceIdResponse; + toAmino(message: _130.QueryProjectsByReferenceIdResponse): _130.QueryProjectsByReferenceIdResponseAmino; + fromAminoMsg(object: _130.QueryProjectsByReferenceIdResponseAminoMsg): _130.QueryProjectsByReferenceIdResponse; + fromProtoMsg(message: _130.QueryProjectsByReferenceIdResponseProtoMsg): _130.QueryProjectsByReferenceIdResponse; + toProto(message: _130.QueryProjectsByReferenceIdResponse): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByReferenceIdResponse): _130.QueryProjectsByReferenceIdResponseProtoMsg; }; QueryProjectsByAdminRequest: { - encode(message: _129.QueryProjectsByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByAdminRequest; - fromJSON(object: any): _129.QueryProjectsByAdminRequest; - toJSON(message: _129.QueryProjectsByAdminRequest): unknown; - fromPartial(object: Partial<_129.QueryProjectsByAdminRequest>): _129.QueryProjectsByAdminRequest; - fromAmino(object: _129.QueryProjectsByAdminRequestAmino): _129.QueryProjectsByAdminRequest; - toAmino(message: _129.QueryProjectsByAdminRequest): _129.QueryProjectsByAdminRequestAmino; - fromAminoMsg(object: _129.QueryProjectsByAdminRequestAminoMsg): _129.QueryProjectsByAdminRequest; - fromProtoMsg(message: _129.QueryProjectsByAdminRequestProtoMsg): _129.QueryProjectsByAdminRequest; - toProto(message: _129.QueryProjectsByAdminRequest): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByAdminRequest): _129.QueryProjectsByAdminRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByAdminRequest; + fromJSON(object: any): _130.QueryProjectsByAdminRequest; + toJSON(message: _130.QueryProjectsByAdminRequest): unknown; + fromPartial(object: Partial<_130.QueryProjectsByAdminRequest>): _130.QueryProjectsByAdminRequest; + fromAmino(object: _130.QueryProjectsByAdminRequestAmino): _130.QueryProjectsByAdminRequest; + toAmino(message: _130.QueryProjectsByAdminRequest): _130.QueryProjectsByAdminRequestAmino; + fromAminoMsg(object: _130.QueryProjectsByAdminRequestAminoMsg): _130.QueryProjectsByAdminRequest; + fromProtoMsg(message: _130.QueryProjectsByAdminRequestProtoMsg): _130.QueryProjectsByAdminRequest; + toProto(message: _130.QueryProjectsByAdminRequest): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByAdminRequest): _130.QueryProjectsByAdminRequestProtoMsg; }; QueryProjectsByAdminResponse: { - encode(message: _129.QueryProjectsByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectsByAdminResponse; - fromJSON(object: any): _129.QueryProjectsByAdminResponse; - toJSON(message: _129.QueryProjectsByAdminResponse): unknown; - fromPartial(object: Partial<_129.QueryProjectsByAdminResponse>): _129.QueryProjectsByAdminResponse; - fromAmino(object: _129.QueryProjectsByAdminResponseAmino): _129.QueryProjectsByAdminResponse; - toAmino(message: _129.QueryProjectsByAdminResponse): _129.QueryProjectsByAdminResponseAmino; - fromAminoMsg(object: _129.QueryProjectsByAdminResponseAminoMsg): _129.QueryProjectsByAdminResponse; - fromProtoMsg(message: _129.QueryProjectsByAdminResponseProtoMsg): _129.QueryProjectsByAdminResponse; - toProto(message: _129.QueryProjectsByAdminResponse): Uint8Array; - toProtoMsg(message: _129.QueryProjectsByAdminResponse): _129.QueryProjectsByAdminResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByAdminResponse; + fromJSON(object: any): _130.QueryProjectsByAdminResponse; + toJSON(message: _130.QueryProjectsByAdminResponse): unknown; + fromPartial(object: Partial<_130.QueryProjectsByAdminResponse>): _130.QueryProjectsByAdminResponse; + fromAmino(object: _130.QueryProjectsByAdminResponseAmino): _130.QueryProjectsByAdminResponse; + toAmino(message: _130.QueryProjectsByAdminResponse): _130.QueryProjectsByAdminResponseAmino; + fromAminoMsg(object: _130.QueryProjectsByAdminResponseAminoMsg): _130.QueryProjectsByAdminResponse; + fromProtoMsg(message: _130.QueryProjectsByAdminResponseProtoMsg): _130.QueryProjectsByAdminResponse; + toProto(message: _130.QueryProjectsByAdminResponse): Uint8Array; + toProtoMsg(message: _130.QueryProjectsByAdminResponse): _130.QueryProjectsByAdminResponseProtoMsg; }; QueryProjectRequest: { - encode(message: _129.QueryProjectRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectRequest; - fromJSON(object: any): _129.QueryProjectRequest; - toJSON(message: _129.QueryProjectRequest): unknown; - fromPartial(object: Partial<_129.QueryProjectRequest>): _129.QueryProjectRequest; - fromAmino(object: _129.QueryProjectRequestAmino): _129.QueryProjectRequest; - toAmino(message: _129.QueryProjectRequest): _129.QueryProjectRequestAmino; - fromAminoMsg(object: _129.QueryProjectRequestAminoMsg): _129.QueryProjectRequest; - fromProtoMsg(message: _129.QueryProjectRequestProtoMsg): _129.QueryProjectRequest; - toProto(message: _129.QueryProjectRequest): Uint8Array; - toProtoMsg(message: _129.QueryProjectRequest): _129.QueryProjectRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectRequest; + fromJSON(object: any): _130.QueryProjectRequest; + toJSON(message: _130.QueryProjectRequest): unknown; + fromPartial(object: Partial<_130.QueryProjectRequest>): _130.QueryProjectRequest; + fromAmino(object: _130.QueryProjectRequestAmino): _130.QueryProjectRequest; + toAmino(message: _130.QueryProjectRequest): _130.QueryProjectRequestAmino; + fromAminoMsg(object: _130.QueryProjectRequestAminoMsg): _130.QueryProjectRequest; + fromProtoMsg(message: _130.QueryProjectRequestProtoMsg): _130.QueryProjectRequest; + toProto(message: _130.QueryProjectRequest): Uint8Array; + toProtoMsg(message: _130.QueryProjectRequest): _130.QueryProjectRequestProtoMsg; }; QueryProjectResponse: { - encode(message: _129.QueryProjectResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryProjectResponse; - fromJSON(object: any): _129.QueryProjectResponse; - toJSON(message: _129.QueryProjectResponse): unknown; - fromPartial(object: Partial<_129.QueryProjectResponse>): _129.QueryProjectResponse; - fromAmino(object: _129.QueryProjectResponseAmino): _129.QueryProjectResponse; - toAmino(message: _129.QueryProjectResponse): _129.QueryProjectResponseAmino; - fromAminoMsg(object: _129.QueryProjectResponseAminoMsg): _129.QueryProjectResponse; - fromProtoMsg(message: _129.QueryProjectResponseProtoMsg): _129.QueryProjectResponse; - toProto(message: _129.QueryProjectResponse): Uint8Array; - toProtoMsg(message: _129.QueryProjectResponse): _129.QueryProjectResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectResponse; + fromJSON(object: any): _130.QueryProjectResponse; + toJSON(message: _130.QueryProjectResponse): unknown; + fromPartial(object: Partial<_130.QueryProjectResponse>): _130.QueryProjectResponse; + fromAmino(object: _130.QueryProjectResponseAmino): _130.QueryProjectResponse; + toAmino(message: _130.QueryProjectResponse): _130.QueryProjectResponseAmino; + fromAminoMsg(object: _130.QueryProjectResponseAminoMsg): _130.QueryProjectResponse; + fromProtoMsg(message: _130.QueryProjectResponseProtoMsg): _130.QueryProjectResponse; + toProto(message: _130.QueryProjectResponse): Uint8Array; + toProtoMsg(message: _130.QueryProjectResponse): _130.QueryProjectResponseProtoMsg; }; QueryBatchesRequest: { - encode(message: _129.QueryBatchesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesRequest; - fromJSON(object: any): _129.QueryBatchesRequest; - toJSON(message: _129.QueryBatchesRequest): unknown; - fromPartial(object: Partial<_129.QueryBatchesRequest>): _129.QueryBatchesRequest; - fromAmino(object: _129.QueryBatchesRequestAmino): _129.QueryBatchesRequest; - toAmino(message: _129.QueryBatchesRequest): _129.QueryBatchesRequestAmino; - fromAminoMsg(object: _129.QueryBatchesRequestAminoMsg): _129.QueryBatchesRequest; - fromProtoMsg(message: _129.QueryBatchesRequestProtoMsg): _129.QueryBatchesRequest; - toProto(message: _129.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _129.QueryBatchesRequest): _129.QueryBatchesRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesRequest; + fromJSON(object: any): _130.QueryBatchesRequest; + toJSON(message: _130.QueryBatchesRequest): unknown; + fromPartial(object: Partial<_130.QueryBatchesRequest>): _130.QueryBatchesRequest; + fromAmino(object: _130.QueryBatchesRequestAmino): _130.QueryBatchesRequest; + toAmino(message: _130.QueryBatchesRequest): _130.QueryBatchesRequestAmino; + fromAminoMsg(object: _130.QueryBatchesRequestAminoMsg): _130.QueryBatchesRequest; + fromProtoMsg(message: _130.QueryBatchesRequestProtoMsg): _130.QueryBatchesRequest; + toProto(message: _130.QueryBatchesRequest): Uint8Array; + toProtoMsg(message: _130.QueryBatchesRequest): _130.QueryBatchesRequestProtoMsg; }; QueryBatchesResponse: { - encode(message: _129.QueryBatchesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesResponse; - fromJSON(object: any): _129.QueryBatchesResponse; - toJSON(message: _129.QueryBatchesResponse): unknown; - fromPartial(object: Partial<_129.QueryBatchesResponse>): _129.QueryBatchesResponse; - fromAmino(object: _129.QueryBatchesResponseAmino): _129.QueryBatchesResponse; - toAmino(message: _129.QueryBatchesResponse): _129.QueryBatchesResponseAmino; - fromAminoMsg(object: _129.QueryBatchesResponseAminoMsg): _129.QueryBatchesResponse; - fromProtoMsg(message: _129.QueryBatchesResponseProtoMsg): _129.QueryBatchesResponse; - toProto(message: _129.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _129.QueryBatchesResponse): _129.QueryBatchesResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesResponse; + fromJSON(object: any): _130.QueryBatchesResponse; + toJSON(message: _130.QueryBatchesResponse): unknown; + fromPartial(object: Partial<_130.QueryBatchesResponse>): _130.QueryBatchesResponse; + fromAmino(object: _130.QueryBatchesResponseAmino): _130.QueryBatchesResponse; + toAmino(message: _130.QueryBatchesResponse): _130.QueryBatchesResponseAmino; + fromAminoMsg(object: _130.QueryBatchesResponseAminoMsg): _130.QueryBatchesResponse; + fromProtoMsg(message: _130.QueryBatchesResponseProtoMsg): _130.QueryBatchesResponse; + toProto(message: _130.QueryBatchesResponse): Uint8Array; + toProtoMsg(message: _130.QueryBatchesResponse): _130.QueryBatchesResponseProtoMsg; }; QueryBatchesByIssuerRequest: { - encode(message: _129.QueryBatchesByIssuerRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByIssuerRequest; - fromJSON(object: any): _129.QueryBatchesByIssuerRequest; - toJSON(message: _129.QueryBatchesByIssuerRequest): unknown; - fromPartial(object: Partial<_129.QueryBatchesByIssuerRequest>): _129.QueryBatchesByIssuerRequest; - fromAmino(object: _129.QueryBatchesByIssuerRequestAmino): _129.QueryBatchesByIssuerRequest; - toAmino(message: _129.QueryBatchesByIssuerRequest): _129.QueryBatchesByIssuerRequestAmino; - fromAminoMsg(object: _129.QueryBatchesByIssuerRequestAminoMsg): _129.QueryBatchesByIssuerRequest; - fromProtoMsg(message: _129.QueryBatchesByIssuerRequestProtoMsg): _129.QueryBatchesByIssuerRequest; - toProto(message: _129.QueryBatchesByIssuerRequest): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByIssuerRequest): _129.QueryBatchesByIssuerRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByIssuerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByIssuerRequest; + fromJSON(object: any): _130.QueryBatchesByIssuerRequest; + toJSON(message: _130.QueryBatchesByIssuerRequest): unknown; + fromPartial(object: Partial<_130.QueryBatchesByIssuerRequest>): _130.QueryBatchesByIssuerRequest; + fromAmino(object: _130.QueryBatchesByIssuerRequestAmino): _130.QueryBatchesByIssuerRequest; + toAmino(message: _130.QueryBatchesByIssuerRequest): _130.QueryBatchesByIssuerRequestAmino; + fromAminoMsg(object: _130.QueryBatchesByIssuerRequestAminoMsg): _130.QueryBatchesByIssuerRequest; + fromProtoMsg(message: _130.QueryBatchesByIssuerRequestProtoMsg): _130.QueryBatchesByIssuerRequest; + toProto(message: _130.QueryBatchesByIssuerRequest): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByIssuerRequest): _130.QueryBatchesByIssuerRequestProtoMsg; }; QueryBatchesByIssuerResponse: { - encode(message: _129.QueryBatchesByIssuerResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByIssuerResponse; - fromJSON(object: any): _129.QueryBatchesByIssuerResponse; - toJSON(message: _129.QueryBatchesByIssuerResponse): unknown; - fromPartial(object: Partial<_129.QueryBatchesByIssuerResponse>): _129.QueryBatchesByIssuerResponse; - fromAmino(object: _129.QueryBatchesByIssuerResponseAmino): _129.QueryBatchesByIssuerResponse; - toAmino(message: _129.QueryBatchesByIssuerResponse): _129.QueryBatchesByIssuerResponseAmino; - fromAminoMsg(object: _129.QueryBatchesByIssuerResponseAminoMsg): _129.QueryBatchesByIssuerResponse; - fromProtoMsg(message: _129.QueryBatchesByIssuerResponseProtoMsg): _129.QueryBatchesByIssuerResponse; - toProto(message: _129.QueryBatchesByIssuerResponse): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByIssuerResponse): _129.QueryBatchesByIssuerResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByIssuerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByIssuerResponse; + fromJSON(object: any): _130.QueryBatchesByIssuerResponse; + toJSON(message: _130.QueryBatchesByIssuerResponse): unknown; + fromPartial(object: Partial<_130.QueryBatchesByIssuerResponse>): _130.QueryBatchesByIssuerResponse; + fromAmino(object: _130.QueryBatchesByIssuerResponseAmino): _130.QueryBatchesByIssuerResponse; + toAmino(message: _130.QueryBatchesByIssuerResponse): _130.QueryBatchesByIssuerResponseAmino; + fromAminoMsg(object: _130.QueryBatchesByIssuerResponseAminoMsg): _130.QueryBatchesByIssuerResponse; + fromProtoMsg(message: _130.QueryBatchesByIssuerResponseProtoMsg): _130.QueryBatchesByIssuerResponse; + toProto(message: _130.QueryBatchesByIssuerResponse): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByIssuerResponse): _130.QueryBatchesByIssuerResponseProtoMsg; }; QueryBatchesByClassRequest: { - encode(message: _129.QueryBatchesByClassRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByClassRequest; - fromJSON(object: any): _129.QueryBatchesByClassRequest; - toJSON(message: _129.QueryBatchesByClassRequest): unknown; - fromPartial(object: Partial<_129.QueryBatchesByClassRequest>): _129.QueryBatchesByClassRequest; - fromAmino(object: _129.QueryBatchesByClassRequestAmino): _129.QueryBatchesByClassRequest; - toAmino(message: _129.QueryBatchesByClassRequest): _129.QueryBatchesByClassRequestAmino; - fromAminoMsg(object: _129.QueryBatchesByClassRequestAminoMsg): _129.QueryBatchesByClassRequest; - fromProtoMsg(message: _129.QueryBatchesByClassRequestProtoMsg): _129.QueryBatchesByClassRequest; - toProto(message: _129.QueryBatchesByClassRequest): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByClassRequest): _129.QueryBatchesByClassRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByClassRequest; + fromJSON(object: any): _130.QueryBatchesByClassRequest; + toJSON(message: _130.QueryBatchesByClassRequest): unknown; + fromPartial(object: Partial<_130.QueryBatchesByClassRequest>): _130.QueryBatchesByClassRequest; + fromAmino(object: _130.QueryBatchesByClassRequestAmino): _130.QueryBatchesByClassRequest; + toAmino(message: _130.QueryBatchesByClassRequest): _130.QueryBatchesByClassRequestAmino; + fromAminoMsg(object: _130.QueryBatchesByClassRequestAminoMsg): _130.QueryBatchesByClassRequest; + fromProtoMsg(message: _130.QueryBatchesByClassRequestProtoMsg): _130.QueryBatchesByClassRequest; + toProto(message: _130.QueryBatchesByClassRequest): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByClassRequest): _130.QueryBatchesByClassRequestProtoMsg; }; QueryBatchesByProjectRequest: { - encode(message: _129.QueryBatchesByProjectRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByProjectRequest; - fromJSON(object: any): _129.QueryBatchesByProjectRequest; - toJSON(message: _129.QueryBatchesByProjectRequest): unknown; - fromPartial(object: Partial<_129.QueryBatchesByProjectRequest>): _129.QueryBatchesByProjectRequest; - fromAmino(object: _129.QueryBatchesByProjectRequestAmino): _129.QueryBatchesByProjectRequest; - toAmino(message: _129.QueryBatchesByProjectRequest): _129.QueryBatchesByProjectRequestAmino; - fromAminoMsg(object: _129.QueryBatchesByProjectRequestAminoMsg): _129.QueryBatchesByProjectRequest; - fromProtoMsg(message: _129.QueryBatchesByProjectRequestProtoMsg): _129.QueryBatchesByProjectRequest; - toProto(message: _129.QueryBatchesByProjectRequest): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByProjectRequest): _129.QueryBatchesByProjectRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByProjectRequest; + fromJSON(object: any): _130.QueryBatchesByProjectRequest; + toJSON(message: _130.QueryBatchesByProjectRequest): unknown; + fromPartial(object: Partial<_130.QueryBatchesByProjectRequest>): _130.QueryBatchesByProjectRequest; + fromAmino(object: _130.QueryBatchesByProjectRequestAmino): _130.QueryBatchesByProjectRequest; + toAmino(message: _130.QueryBatchesByProjectRequest): _130.QueryBatchesByProjectRequestAmino; + fromAminoMsg(object: _130.QueryBatchesByProjectRequestAminoMsg): _130.QueryBatchesByProjectRequest; + fromProtoMsg(message: _130.QueryBatchesByProjectRequestProtoMsg): _130.QueryBatchesByProjectRequest; + toProto(message: _130.QueryBatchesByProjectRequest): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByProjectRequest): _130.QueryBatchesByProjectRequestProtoMsg; }; QueryBatchesByProjectResponse: { - encode(message: _129.QueryBatchesByProjectResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByProjectResponse; - fromJSON(object: any): _129.QueryBatchesByProjectResponse; - toJSON(message: _129.QueryBatchesByProjectResponse): unknown; - fromPartial(object: Partial<_129.QueryBatchesByProjectResponse>): _129.QueryBatchesByProjectResponse; - fromAmino(object: _129.QueryBatchesByProjectResponseAmino): _129.QueryBatchesByProjectResponse; - toAmino(message: _129.QueryBatchesByProjectResponse): _129.QueryBatchesByProjectResponseAmino; - fromAminoMsg(object: _129.QueryBatchesByProjectResponseAminoMsg): _129.QueryBatchesByProjectResponse; - fromProtoMsg(message: _129.QueryBatchesByProjectResponseProtoMsg): _129.QueryBatchesByProjectResponse; - toProto(message: _129.QueryBatchesByProjectResponse): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByProjectResponse): _129.QueryBatchesByProjectResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByProjectResponse; + fromJSON(object: any): _130.QueryBatchesByProjectResponse; + toJSON(message: _130.QueryBatchesByProjectResponse): unknown; + fromPartial(object: Partial<_130.QueryBatchesByProjectResponse>): _130.QueryBatchesByProjectResponse; + fromAmino(object: _130.QueryBatchesByProjectResponseAmino): _130.QueryBatchesByProjectResponse; + toAmino(message: _130.QueryBatchesByProjectResponse): _130.QueryBatchesByProjectResponseAmino; + fromAminoMsg(object: _130.QueryBatchesByProjectResponseAminoMsg): _130.QueryBatchesByProjectResponse; + fromProtoMsg(message: _130.QueryBatchesByProjectResponseProtoMsg): _130.QueryBatchesByProjectResponse; + toProto(message: _130.QueryBatchesByProjectResponse): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByProjectResponse): _130.QueryBatchesByProjectResponseProtoMsg; }; QueryBatchesByClassResponse: { - encode(message: _129.QueryBatchesByClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchesByClassResponse; - fromJSON(object: any): _129.QueryBatchesByClassResponse; - toJSON(message: _129.QueryBatchesByClassResponse): unknown; - fromPartial(object: Partial<_129.QueryBatchesByClassResponse>): _129.QueryBatchesByClassResponse; - fromAmino(object: _129.QueryBatchesByClassResponseAmino): _129.QueryBatchesByClassResponse; - toAmino(message: _129.QueryBatchesByClassResponse): _129.QueryBatchesByClassResponseAmino; - fromAminoMsg(object: _129.QueryBatchesByClassResponseAminoMsg): _129.QueryBatchesByClassResponse; - fromProtoMsg(message: _129.QueryBatchesByClassResponseProtoMsg): _129.QueryBatchesByClassResponse; - toProto(message: _129.QueryBatchesByClassResponse): Uint8Array; - toProtoMsg(message: _129.QueryBatchesByClassResponse): _129.QueryBatchesByClassResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchesByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByClassResponse; + fromJSON(object: any): _130.QueryBatchesByClassResponse; + toJSON(message: _130.QueryBatchesByClassResponse): unknown; + fromPartial(object: Partial<_130.QueryBatchesByClassResponse>): _130.QueryBatchesByClassResponse; + fromAmino(object: _130.QueryBatchesByClassResponseAmino): _130.QueryBatchesByClassResponse; + toAmino(message: _130.QueryBatchesByClassResponse): _130.QueryBatchesByClassResponseAmino; + fromAminoMsg(object: _130.QueryBatchesByClassResponseAminoMsg): _130.QueryBatchesByClassResponse; + fromProtoMsg(message: _130.QueryBatchesByClassResponseProtoMsg): _130.QueryBatchesByClassResponse; + toProto(message: _130.QueryBatchesByClassResponse): Uint8Array; + toProtoMsg(message: _130.QueryBatchesByClassResponse): _130.QueryBatchesByClassResponseProtoMsg; }; QueryBatchRequest: { - encode(message: _129.QueryBatchRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchRequest; - fromJSON(object: any): _129.QueryBatchRequest; - toJSON(message: _129.QueryBatchRequest): unknown; - fromPartial(object: Partial<_129.QueryBatchRequest>): _129.QueryBatchRequest; - fromAmino(object: _129.QueryBatchRequestAmino): _129.QueryBatchRequest; - toAmino(message: _129.QueryBatchRequest): _129.QueryBatchRequestAmino; - fromAminoMsg(object: _129.QueryBatchRequestAminoMsg): _129.QueryBatchRequest; - fromProtoMsg(message: _129.QueryBatchRequestProtoMsg): _129.QueryBatchRequest; - toProto(message: _129.QueryBatchRequest): Uint8Array; - toProtoMsg(message: _129.QueryBatchRequest): _129.QueryBatchRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchRequest; + fromJSON(object: any): _130.QueryBatchRequest; + toJSON(message: _130.QueryBatchRequest): unknown; + fromPartial(object: Partial<_130.QueryBatchRequest>): _130.QueryBatchRequest; + fromAmino(object: _130.QueryBatchRequestAmino): _130.QueryBatchRequest; + toAmino(message: _130.QueryBatchRequest): _130.QueryBatchRequestAmino; + fromAminoMsg(object: _130.QueryBatchRequestAminoMsg): _130.QueryBatchRequest; + fromProtoMsg(message: _130.QueryBatchRequestProtoMsg): _130.QueryBatchRequest; + toProto(message: _130.QueryBatchRequest): Uint8Array; + toProtoMsg(message: _130.QueryBatchRequest): _130.QueryBatchRequestProtoMsg; }; QueryBatchResponse: { - encode(message: _129.QueryBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBatchResponse; - fromJSON(object: any): _129.QueryBatchResponse; - toJSON(message: _129.QueryBatchResponse): unknown; - fromPartial(object: Partial<_129.QueryBatchResponse>): _129.QueryBatchResponse; - fromAmino(object: _129.QueryBatchResponseAmino): _129.QueryBatchResponse; - toAmino(message: _129.QueryBatchResponse): _129.QueryBatchResponseAmino; - fromAminoMsg(object: _129.QueryBatchResponseAminoMsg): _129.QueryBatchResponse; - fromProtoMsg(message: _129.QueryBatchResponseProtoMsg): _129.QueryBatchResponse; - toProto(message: _129.QueryBatchResponse): Uint8Array; - toProtoMsg(message: _129.QueryBatchResponse): _129.QueryBatchResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchResponse; + fromJSON(object: any): _130.QueryBatchResponse; + toJSON(message: _130.QueryBatchResponse): unknown; + fromPartial(object: Partial<_130.QueryBatchResponse>): _130.QueryBatchResponse; + fromAmino(object: _130.QueryBatchResponseAmino): _130.QueryBatchResponse; + toAmino(message: _130.QueryBatchResponse): _130.QueryBatchResponseAmino; + fromAminoMsg(object: _130.QueryBatchResponseAminoMsg): _130.QueryBatchResponse; + fromProtoMsg(message: _130.QueryBatchResponseProtoMsg): _130.QueryBatchResponse; + toProto(message: _130.QueryBatchResponse): Uint8Array; + toProtoMsg(message: _130.QueryBatchResponse): _130.QueryBatchResponseProtoMsg; }; QueryBalanceRequest: { - encode(message: _129.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalanceRequest; - fromJSON(object: any): _129.QueryBalanceRequest; - toJSON(message: _129.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_129.QueryBalanceRequest>): _129.QueryBalanceRequest; - fromAmino(object: _129.QueryBalanceRequestAmino): _129.QueryBalanceRequest; - toAmino(message: _129.QueryBalanceRequest): _129.QueryBalanceRequestAmino; - fromAminoMsg(object: _129.QueryBalanceRequestAminoMsg): _129.QueryBalanceRequest; - fromProtoMsg(message: _129.QueryBalanceRequestProtoMsg): _129.QueryBalanceRequest; - toProto(message: _129.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _129.QueryBalanceRequest): _129.QueryBalanceRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalanceRequest; + fromJSON(object: any): _130.QueryBalanceRequest; + toJSON(message: _130.QueryBalanceRequest): unknown; + fromPartial(object: Partial<_130.QueryBalanceRequest>): _130.QueryBalanceRequest; + fromAmino(object: _130.QueryBalanceRequestAmino): _130.QueryBalanceRequest; + toAmino(message: _130.QueryBalanceRequest): _130.QueryBalanceRequestAmino; + fromAminoMsg(object: _130.QueryBalanceRequestAminoMsg): _130.QueryBalanceRequest; + fromProtoMsg(message: _130.QueryBalanceRequestProtoMsg): _130.QueryBalanceRequest; + toProto(message: _130.QueryBalanceRequest): Uint8Array; + toProtoMsg(message: _130.QueryBalanceRequest): _130.QueryBalanceRequestProtoMsg; }; QueryBalanceResponse: { - encode(message: _129.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalanceResponse; - fromJSON(object: any): _129.QueryBalanceResponse; - toJSON(message: _129.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_129.QueryBalanceResponse>): _129.QueryBalanceResponse; - fromAmino(object: _129.QueryBalanceResponseAmino): _129.QueryBalanceResponse; - toAmino(message: _129.QueryBalanceResponse): _129.QueryBalanceResponseAmino; - fromAminoMsg(object: _129.QueryBalanceResponseAminoMsg): _129.QueryBalanceResponse; - fromProtoMsg(message: _129.QueryBalanceResponseProtoMsg): _129.QueryBalanceResponse; - toProto(message: _129.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _129.QueryBalanceResponse): _129.QueryBalanceResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalanceResponse; + fromJSON(object: any): _130.QueryBalanceResponse; + toJSON(message: _130.QueryBalanceResponse): unknown; + fromPartial(object: Partial<_130.QueryBalanceResponse>): _130.QueryBalanceResponse; + fromAmino(object: _130.QueryBalanceResponseAmino): _130.QueryBalanceResponse; + toAmino(message: _130.QueryBalanceResponse): _130.QueryBalanceResponseAmino; + fromAminoMsg(object: _130.QueryBalanceResponseAminoMsg): _130.QueryBalanceResponse; + fromProtoMsg(message: _130.QueryBalanceResponseProtoMsg): _130.QueryBalanceResponse; + toProto(message: _130.QueryBalanceResponse): Uint8Array; + toProtoMsg(message: _130.QueryBalanceResponse): _130.QueryBalanceResponseProtoMsg; }; QueryBalancesRequest: { - encode(message: _129.QueryBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalancesRequest; - fromJSON(object: any): _129.QueryBalancesRequest; - toJSON(message: _129.QueryBalancesRequest): unknown; - fromPartial(object: Partial<_129.QueryBalancesRequest>): _129.QueryBalancesRequest; - fromAmino(object: _129.QueryBalancesRequestAmino): _129.QueryBalancesRequest; - toAmino(message: _129.QueryBalancesRequest): _129.QueryBalancesRequestAmino; - fromAminoMsg(object: _129.QueryBalancesRequestAminoMsg): _129.QueryBalancesRequest; - fromProtoMsg(message: _129.QueryBalancesRequestProtoMsg): _129.QueryBalancesRequest; - toProto(message: _129.QueryBalancesRequest): Uint8Array; - toProtoMsg(message: _129.QueryBalancesRequest): _129.QueryBalancesRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesRequest; + fromJSON(object: any): _130.QueryBalancesRequest; + toJSON(message: _130.QueryBalancesRequest): unknown; + fromPartial(object: Partial<_130.QueryBalancesRequest>): _130.QueryBalancesRequest; + fromAmino(object: _130.QueryBalancesRequestAmino): _130.QueryBalancesRequest; + toAmino(message: _130.QueryBalancesRequest): _130.QueryBalancesRequestAmino; + fromAminoMsg(object: _130.QueryBalancesRequestAminoMsg): _130.QueryBalancesRequest; + fromProtoMsg(message: _130.QueryBalancesRequestProtoMsg): _130.QueryBalancesRequest; + toProto(message: _130.QueryBalancesRequest): Uint8Array; + toProtoMsg(message: _130.QueryBalancesRequest): _130.QueryBalancesRequestProtoMsg; }; QueryBalancesResponse: { - encode(message: _129.QueryBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalancesResponse; - fromJSON(object: any): _129.QueryBalancesResponse; - toJSON(message: _129.QueryBalancesResponse): unknown; - fromPartial(object: Partial<_129.QueryBalancesResponse>): _129.QueryBalancesResponse; - fromAmino(object: _129.QueryBalancesResponseAmino): _129.QueryBalancesResponse; - toAmino(message: _129.QueryBalancesResponse): _129.QueryBalancesResponseAmino; - fromAminoMsg(object: _129.QueryBalancesResponseAminoMsg): _129.QueryBalancesResponse; - fromProtoMsg(message: _129.QueryBalancesResponseProtoMsg): _129.QueryBalancesResponse; - toProto(message: _129.QueryBalancesResponse): Uint8Array; - toProtoMsg(message: _129.QueryBalancesResponse): _129.QueryBalancesResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesResponse; + fromJSON(object: any): _130.QueryBalancesResponse; + toJSON(message: _130.QueryBalancesResponse): unknown; + fromPartial(object: Partial<_130.QueryBalancesResponse>): _130.QueryBalancesResponse; + fromAmino(object: _130.QueryBalancesResponseAmino): _130.QueryBalancesResponse; + toAmino(message: _130.QueryBalancesResponse): _130.QueryBalancesResponseAmino; + fromAminoMsg(object: _130.QueryBalancesResponseAminoMsg): _130.QueryBalancesResponse; + fromProtoMsg(message: _130.QueryBalancesResponseProtoMsg): _130.QueryBalancesResponse; + toProto(message: _130.QueryBalancesResponse): Uint8Array; + toProtoMsg(message: _130.QueryBalancesResponse): _130.QueryBalancesResponseProtoMsg; }; QueryBalancesByBatchRequest: { - encode(message: _129.QueryBalancesByBatchRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalancesByBatchRequest; - fromJSON(object: any): _129.QueryBalancesByBatchRequest; - toJSON(message: _129.QueryBalancesByBatchRequest): unknown; - fromPartial(object: Partial<_129.QueryBalancesByBatchRequest>): _129.QueryBalancesByBatchRequest; - fromAmino(object: _129.QueryBalancesByBatchRequestAmino): _129.QueryBalancesByBatchRequest; - toAmino(message: _129.QueryBalancesByBatchRequest): _129.QueryBalancesByBatchRequestAmino; - fromAminoMsg(object: _129.QueryBalancesByBatchRequestAminoMsg): _129.QueryBalancesByBatchRequest; - fromProtoMsg(message: _129.QueryBalancesByBatchRequestProtoMsg): _129.QueryBalancesByBatchRequest; - toProto(message: _129.QueryBalancesByBatchRequest): Uint8Array; - toProtoMsg(message: _129.QueryBalancesByBatchRequest): _129.QueryBalancesByBatchRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalancesByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesByBatchRequest; + fromJSON(object: any): _130.QueryBalancesByBatchRequest; + toJSON(message: _130.QueryBalancesByBatchRequest): unknown; + fromPartial(object: Partial<_130.QueryBalancesByBatchRequest>): _130.QueryBalancesByBatchRequest; + fromAmino(object: _130.QueryBalancesByBatchRequestAmino): _130.QueryBalancesByBatchRequest; + toAmino(message: _130.QueryBalancesByBatchRequest): _130.QueryBalancesByBatchRequestAmino; + fromAminoMsg(object: _130.QueryBalancesByBatchRequestAminoMsg): _130.QueryBalancesByBatchRequest; + fromProtoMsg(message: _130.QueryBalancesByBatchRequestProtoMsg): _130.QueryBalancesByBatchRequest; + toProto(message: _130.QueryBalancesByBatchRequest): Uint8Array; + toProtoMsg(message: _130.QueryBalancesByBatchRequest): _130.QueryBalancesByBatchRequestProtoMsg; }; QueryBalancesByBatchResponse: { - encode(message: _129.QueryBalancesByBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryBalancesByBatchResponse; - fromJSON(object: any): _129.QueryBalancesByBatchResponse; - toJSON(message: _129.QueryBalancesByBatchResponse): unknown; - fromPartial(object: Partial<_129.QueryBalancesByBatchResponse>): _129.QueryBalancesByBatchResponse; - fromAmino(object: _129.QueryBalancesByBatchResponseAmino): _129.QueryBalancesByBatchResponse; - toAmino(message: _129.QueryBalancesByBatchResponse): _129.QueryBalancesByBatchResponseAmino; - fromAminoMsg(object: _129.QueryBalancesByBatchResponseAminoMsg): _129.QueryBalancesByBatchResponse; - fromProtoMsg(message: _129.QueryBalancesByBatchResponseProtoMsg): _129.QueryBalancesByBatchResponse; - toProto(message: _129.QueryBalancesByBatchResponse): Uint8Array; - toProtoMsg(message: _129.QueryBalancesByBatchResponse): _129.QueryBalancesByBatchResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryBalancesByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesByBatchResponse; + fromJSON(object: any): _130.QueryBalancesByBatchResponse; + toJSON(message: _130.QueryBalancesByBatchResponse): unknown; + fromPartial(object: Partial<_130.QueryBalancesByBatchResponse>): _130.QueryBalancesByBatchResponse; + fromAmino(object: _130.QueryBalancesByBatchResponseAmino): _130.QueryBalancesByBatchResponse; + toAmino(message: _130.QueryBalancesByBatchResponse): _130.QueryBalancesByBatchResponseAmino; + fromAminoMsg(object: _130.QueryBalancesByBatchResponseAminoMsg): _130.QueryBalancesByBatchResponse; + fromProtoMsg(message: _130.QueryBalancesByBatchResponseProtoMsg): _130.QueryBalancesByBatchResponse; + toProto(message: _130.QueryBalancesByBatchResponse): Uint8Array; + toProtoMsg(message: _130.QueryBalancesByBatchResponse): _130.QueryBalancesByBatchResponseProtoMsg; }; QueryAllBalancesRequest: { - encode(message: _129.QueryAllBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllBalancesRequest; - fromJSON(object: any): _129.QueryAllBalancesRequest; - toJSON(message: _129.QueryAllBalancesRequest): unknown; - fromPartial(object: Partial<_129.QueryAllBalancesRequest>): _129.QueryAllBalancesRequest; - fromAmino(object: _129.QueryAllBalancesRequestAmino): _129.QueryAllBalancesRequest; - toAmino(message: _129.QueryAllBalancesRequest): _129.QueryAllBalancesRequestAmino; - fromAminoMsg(object: _129.QueryAllBalancesRequestAminoMsg): _129.QueryAllBalancesRequest; - fromProtoMsg(message: _129.QueryAllBalancesRequestProtoMsg): _129.QueryAllBalancesRequest; - toProto(message: _129.QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: _129.QueryAllBalancesRequest): _129.QueryAllBalancesRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllBalancesRequest; + fromJSON(object: any): _130.QueryAllBalancesRequest; + toJSON(message: _130.QueryAllBalancesRequest): unknown; + fromPartial(object: Partial<_130.QueryAllBalancesRequest>): _130.QueryAllBalancesRequest; + fromAmino(object: _130.QueryAllBalancesRequestAmino): _130.QueryAllBalancesRequest; + toAmino(message: _130.QueryAllBalancesRequest): _130.QueryAllBalancesRequestAmino; + fromAminoMsg(object: _130.QueryAllBalancesRequestAminoMsg): _130.QueryAllBalancesRequest; + fromProtoMsg(message: _130.QueryAllBalancesRequestProtoMsg): _130.QueryAllBalancesRequest; + toProto(message: _130.QueryAllBalancesRequest): Uint8Array; + toProtoMsg(message: _130.QueryAllBalancesRequest): _130.QueryAllBalancesRequestProtoMsg; }; QueryAllBalancesResponse: { - encode(message: _129.QueryAllBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllBalancesResponse; - fromJSON(object: any): _129.QueryAllBalancesResponse; - toJSON(message: _129.QueryAllBalancesResponse): unknown; - fromPartial(object: Partial<_129.QueryAllBalancesResponse>): _129.QueryAllBalancesResponse; - fromAmino(object: _129.QueryAllBalancesResponseAmino): _129.QueryAllBalancesResponse; - toAmino(message: _129.QueryAllBalancesResponse): _129.QueryAllBalancesResponseAmino; - fromAminoMsg(object: _129.QueryAllBalancesResponseAminoMsg): _129.QueryAllBalancesResponse; - fromProtoMsg(message: _129.QueryAllBalancesResponseProtoMsg): _129.QueryAllBalancesResponse; - toProto(message: _129.QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: _129.QueryAllBalancesResponse): _129.QueryAllBalancesResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllBalancesResponse; + fromJSON(object: any): _130.QueryAllBalancesResponse; + toJSON(message: _130.QueryAllBalancesResponse): unknown; + fromPartial(object: Partial<_130.QueryAllBalancesResponse>): _130.QueryAllBalancesResponse; + fromAmino(object: _130.QueryAllBalancesResponseAmino): _130.QueryAllBalancesResponse; + toAmino(message: _130.QueryAllBalancesResponse): _130.QueryAllBalancesResponseAmino; + fromAminoMsg(object: _130.QueryAllBalancesResponseAminoMsg): _130.QueryAllBalancesResponse; + fromProtoMsg(message: _130.QueryAllBalancesResponseProtoMsg): _130.QueryAllBalancesResponse; + toProto(message: _130.QueryAllBalancesResponse): Uint8Array; + toProtoMsg(message: _130.QueryAllBalancesResponse): _130.QueryAllBalancesResponseProtoMsg; }; QuerySupplyRequest: { - encode(message: _129.QuerySupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QuerySupplyRequest; - fromJSON(object: any): _129.QuerySupplyRequest; - toJSON(message: _129.QuerySupplyRequest): unknown; - fromPartial(object: Partial<_129.QuerySupplyRequest>): _129.QuerySupplyRequest; - fromAmino(object: _129.QuerySupplyRequestAmino): _129.QuerySupplyRequest; - toAmino(message: _129.QuerySupplyRequest): _129.QuerySupplyRequestAmino; - fromAminoMsg(object: _129.QuerySupplyRequestAminoMsg): _129.QuerySupplyRequest; - fromProtoMsg(message: _129.QuerySupplyRequestProtoMsg): _129.QuerySupplyRequest; - toProto(message: _129.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _129.QuerySupplyRequest): _129.QuerySupplyRequestProtoMsg; + typeUrl: string; + encode(message: _130.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QuerySupplyRequest; + fromJSON(object: any): _130.QuerySupplyRequest; + toJSON(message: _130.QuerySupplyRequest): unknown; + fromPartial(object: Partial<_130.QuerySupplyRequest>): _130.QuerySupplyRequest; + fromAmino(object: _130.QuerySupplyRequestAmino): _130.QuerySupplyRequest; + toAmino(message: _130.QuerySupplyRequest): _130.QuerySupplyRequestAmino; + fromAminoMsg(object: _130.QuerySupplyRequestAminoMsg): _130.QuerySupplyRequest; + fromProtoMsg(message: _130.QuerySupplyRequestProtoMsg): _130.QuerySupplyRequest; + toProto(message: _130.QuerySupplyRequest): Uint8Array; + toProtoMsg(message: _130.QuerySupplyRequest): _130.QuerySupplyRequestProtoMsg; }; QuerySupplyResponse: { - encode(message: _129.QuerySupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QuerySupplyResponse; - fromJSON(object: any): _129.QuerySupplyResponse; - toJSON(message: _129.QuerySupplyResponse): unknown; - fromPartial(object: Partial<_129.QuerySupplyResponse>): _129.QuerySupplyResponse; - fromAmino(object: _129.QuerySupplyResponseAmino): _129.QuerySupplyResponse; - toAmino(message: _129.QuerySupplyResponse): _129.QuerySupplyResponseAmino; - fromAminoMsg(object: _129.QuerySupplyResponseAminoMsg): _129.QuerySupplyResponse; - fromProtoMsg(message: _129.QuerySupplyResponseProtoMsg): _129.QuerySupplyResponse; - toProto(message: _129.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _129.QuerySupplyResponse): _129.QuerySupplyResponseProtoMsg; + typeUrl: string; + encode(message: _130.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QuerySupplyResponse; + fromJSON(object: any): _130.QuerySupplyResponse; + toJSON(message: _130.QuerySupplyResponse): unknown; + fromPartial(object: Partial<_130.QuerySupplyResponse>): _130.QuerySupplyResponse; + fromAmino(object: _130.QuerySupplyResponseAmino): _130.QuerySupplyResponse; + toAmino(message: _130.QuerySupplyResponse): _130.QuerySupplyResponseAmino; + fromAminoMsg(object: _130.QuerySupplyResponseAminoMsg): _130.QuerySupplyResponse; + fromProtoMsg(message: _130.QuerySupplyResponseProtoMsg): _130.QuerySupplyResponse; + toProto(message: _130.QuerySupplyResponse): Uint8Array; + toProtoMsg(message: _130.QuerySupplyResponse): _130.QuerySupplyResponseProtoMsg; }; QueryCreditTypesRequest: { - encode(_: _129.QueryCreditTypesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryCreditTypesRequest; - fromJSON(_: any): _129.QueryCreditTypesRequest; - toJSON(_: _129.QueryCreditTypesRequest): unknown; - fromPartial(_: Partial<_129.QueryCreditTypesRequest>): _129.QueryCreditTypesRequest; - fromAmino(_: _129.QueryCreditTypesRequestAmino): _129.QueryCreditTypesRequest; - toAmino(_: _129.QueryCreditTypesRequest): _129.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _129.QueryCreditTypesRequestAminoMsg): _129.QueryCreditTypesRequest; - fromProtoMsg(message: _129.QueryCreditTypesRequestProtoMsg): _129.QueryCreditTypesRequest; - toProto(message: _129.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _129.QueryCreditTypesRequest): _129.QueryCreditTypesRequestProtoMsg; + typeUrl: string; + encode(_: _130.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypesRequest; + fromJSON(_: any): _130.QueryCreditTypesRequest; + toJSON(_: _130.QueryCreditTypesRequest): unknown; + fromPartial(_: Partial<_130.QueryCreditTypesRequest>): _130.QueryCreditTypesRequest; + fromAmino(_: _130.QueryCreditTypesRequestAmino): _130.QueryCreditTypesRequest; + toAmino(_: _130.QueryCreditTypesRequest): _130.QueryCreditTypesRequestAmino; + fromAminoMsg(object: _130.QueryCreditTypesRequestAminoMsg): _130.QueryCreditTypesRequest; + fromProtoMsg(message: _130.QueryCreditTypesRequestProtoMsg): _130.QueryCreditTypesRequest; + toProto(message: _130.QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: _130.QueryCreditTypesRequest): _130.QueryCreditTypesRequestProtoMsg; }; QueryCreditTypesResponse: { - encode(message: _129.QueryCreditTypesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryCreditTypesResponse; - fromJSON(object: any): _129.QueryCreditTypesResponse; - toJSON(message: _129.QueryCreditTypesResponse): unknown; - fromPartial(object: Partial<_129.QueryCreditTypesResponse>): _129.QueryCreditTypesResponse; - fromAmino(object: _129.QueryCreditTypesResponseAmino): _129.QueryCreditTypesResponse; - toAmino(message: _129.QueryCreditTypesResponse): _129.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _129.QueryCreditTypesResponseAminoMsg): _129.QueryCreditTypesResponse; - fromProtoMsg(message: _129.QueryCreditTypesResponseProtoMsg): _129.QueryCreditTypesResponse; - toProto(message: _129.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _129.QueryCreditTypesResponse): _129.QueryCreditTypesResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypesResponse; + fromJSON(object: any): _130.QueryCreditTypesResponse; + toJSON(message: _130.QueryCreditTypesResponse): unknown; + fromPartial(object: Partial<_130.QueryCreditTypesResponse>): _130.QueryCreditTypesResponse; + fromAmino(object: _130.QueryCreditTypesResponseAmino): _130.QueryCreditTypesResponse; + toAmino(message: _130.QueryCreditTypesResponse): _130.QueryCreditTypesResponseAmino; + fromAminoMsg(object: _130.QueryCreditTypesResponseAminoMsg): _130.QueryCreditTypesResponse; + fromProtoMsg(message: _130.QueryCreditTypesResponseProtoMsg): _130.QueryCreditTypesResponse; + toProto(message: _130.QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: _130.QueryCreditTypesResponse): _130.QueryCreditTypesResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _129.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryParamsRequest; - fromJSON(_: any): _129.QueryParamsRequest; - toJSON(_: _129.QueryParamsRequest): unknown; - fromPartial(_: Partial<_129.QueryParamsRequest>): _129.QueryParamsRequest; - fromAmino(_: _129.QueryParamsRequestAmino): _129.QueryParamsRequest; - toAmino(_: _129.QueryParamsRequest): _129.QueryParamsRequestAmino; - fromAminoMsg(object: _129.QueryParamsRequestAminoMsg): _129.QueryParamsRequest; - fromProtoMsg(message: _129.QueryParamsRequestProtoMsg): _129.QueryParamsRequest; - toProto(message: _129.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _129.QueryParamsRequest): _129.QueryParamsRequestProtoMsg; + typeUrl: string; + encode(_: _130.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryParamsRequest; + fromJSON(_: any): _130.QueryParamsRequest; + toJSON(_: _130.QueryParamsRequest): unknown; + fromPartial(_: Partial<_130.QueryParamsRequest>): _130.QueryParamsRequest; + fromAmino(_: _130.QueryParamsRequestAmino): _130.QueryParamsRequest; + toAmino(_: _130.QueryParamsRequest): _130.QueryParamsRequestAmino; + fromAminoMsg(object: _130.QueryParamsRequestAminoMsg): _130.QueryParamsRequest; + fromProtoMsg(message: _130.QueryParamsRequestProtoMsg): _130.QueryParamsRequest; + toProto(message: _130.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _130.QueryParamsRequest): _130.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _129.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryParamsResponse; - fromJSON(object: any): _129.QueryParamsResponse; - toJSON(message: _129.QueryParamsResponse): unknown; - fromPartial(object: Partial<_129.QueryParamsResponse>): _129.QueryParamsResponse; - fromAmino(object: _129.QueryParamsResponseAmino): _129.QueryParamsResponse; - toAmino(message: _129.QueryParamsResponse): _129.QueryParamsResponseAmino; - fromAminoMsg(object: _129.QueryParamsResponseAminoMsg): _129.QueryParamsResponse; - fromProtoMsg(message: _129.QueryParamsResponseProtoMsg): _129.QueryParamsResponse; - toProto(message: _129.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _129.QueryParamsResponse): _129.QueryParamsResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryParamsResponse; + fromJSON(object: any): _130.QueryParamsResponse; + toJSON(message: _130.QueryParamsResponse): unknown; + fromPartial(object: Partial<_130.QueryParamsResponse>): _130.QueryParamsResponse; + fromAmino(object: _130.QueryParamsResponseAmino): _130.QueryParamsResponse; + toAmino(message: _130.QueryParamsResponse): _130.QueryParamsResponseAmino; + fromAminoMsg(object: _130.QueryParamsResponseAminoMsg): _130.QueryParamsResponse; + fromProtoMsg(message: _130.QueryParamsResponseProtoMsg): _130.QueryParamsResponse; + toProto(message: _130.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _130.QueryParamsResponse): _130.QueryParamsResponseProtoMsg; }; QueryCreditTypeRequest: { - encode(message: _129.QueryCreditTypeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryCreditTypeRequest; - fromJSON(object: any): _129.QueryCreditTypeRequest; - toJSON(message: _129.QueryCreditTypeRequest): unknown; - fromPartial(object: Partial<_129.QueryCreditTypeRequest>): _129.QueryCreditTypeRequest; - fromAmino(object: _129.QueryCreditTypeRequestAmino): _129.QueryCreditTypeRequest; - toAmino(message: _129.QueryCreditTypeRequest): _129.QueryCreditTypeRequestAmino; - fromAminoMsg(object: _129.QueryCreditTypeRequestAminoMsg): _129.QueryCreditTypeRequest; - fromProtoMsg(message: _129.QueryCreditTypeRequestProtoMsg): _129.QueryCreditTypeRequest; - toProto(message: _129.QueryCreditTypeRequest): Uint8Array; - toProtoMsg(message: _129.QueryCreditTypeRequest): _129.QueryCreditTypeRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryCreditTypeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypeRequest; + fromJSON(object: any): _130.QueryCreditTypeRequest; + toJSON(message: _130.QueryCreditTypeRequest): unknown; + fromPartial(object: Partial<_130.QueryCreditTypeRequest>): _130.QueryCreditTypeRequest; + fromAmino(object: _130.QueryCreditTypeRequestAmino): _130.QueryCreditTypeRequest; + toAmino(message: _130.QueryCreditTypeRequest): _130.QueryCreditTypeRequestAmino; + fromAminoMsg(object: _130.QueryCreditTypeRequestAminoMsg): _130.QueryCreditTypeRequest; + fromProtoMsg(message: _130.QueryCreditTypeRequestProtoMsg): _130.QueryCreditTypeRequest; + toProto(message: _130.QueryCreditTypeRequest): Uint8Array; + toProtoMsg(message: _130.QueryCreditTypeRequest): _130.QueryCreditTypeRequestProtoMsg; }; QueryCreditTypeResponse: { - encode(message: _129.QueryCreditTypeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryCreditTypeResponse; - fromJSON(object: any): _129.QueryCreditTypeResponse; - toJSON(message: _129.QueryCreditTypeResponse): unknown; - fromPartial(object: Partial<_129.QueryCreditTypeResponse>): _129.QueryCreditTypeResponse; - fromAmino(object: _129.QueryCreditTypeResponseAmino): _129.QueryCreditTypeResponse; - toAmino(message: _129.QueryCreditTypeResponse): _129.QueryCreditTypeResponseAmino; - fromAminoMsg(object: _129.QueryCreditTypeResponseAminoMsg): _129.QueryCreditTypeResponse; - fromProtoMsg(message: _129.QueryCreditTypeResponseProtoMsg): _129.QueryCreditTypeResponse; - toProto(message: _129.QueryCreditTypeResponse): Uint8Array; - toProtoMsg(message: _129.QueryCreditTypeResponse): _129.QueryCreditTypeResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypeResponse; + fromJSON(object: any): _130.QueryCreditTypeResponse; + toJSON(message: _130.QueryCreditTypeResponse): unknown; + fromPartial(object: Partial<_130.QueryCreditTypeResponse>): _130.QueryCreditTypeResponse; + fromAmino(object: _130.QueryCreditTypeResponseAmino): _130.QueryCreditTypeResponse; + toAmino(message: _130.QueryCreditTypeResponse): _130.QueryCreditTypeResponseAmino; + fromAminoMsg(object: _130.QueryCreditTypeResponseAminoMsg): _130.QueryCreditTypeResponse; + fromProtoMsg(message: _130.QueryCreditTypeResponseProtoMsg): _130.QueryCreditTypeResponse; + toProto(message: _130.QueryCreditTypeResponse): Uint8Array; + toProtoMsg(message: _130.QueryCreditTypeResponse): _130.QueryCreditTypeResponseProtoMsg; }; ClassInfo: { - encode(message: _129.ClassInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.ClassInfo; - fromJSON(object: any): _129.ClassInfo; - toJSON(message: _129.ClassInfo): unknown; - fromPartial(object: Partial<_129.ClassInfo>): _129.ClassInfo; - fromAmino(object: _129.ClassInfoAmino): _129.ClassInfo; - toAmino(message: _129.ClassInfo): _129.ClassInfoAmino; - fromAminoMsg(object: _129.ClassInfoAminoMsg): _129.ClassInfo; - fromProtoMsg(message: _129.ClassInfoProtoMsg): _129.ClassInfo; - toProto(message: _129.ClassInfo): Uint8Array; - toProtoMsg(message: _129.ClassInfo): _129.ClassInfoProtoMsg; + typeUrl: string; + encode(message: _130.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.ClassInfo; + fromJSON(object: any): _130.ClassInfo; + toJSON(message: _130.ClassInfo): unknown; + fromPartial(object: Partial<_130.ClassInfo>): _130.ClassInfo; + fromAmino(object: _130.ClassInfoAmino): _130.ClassInfo; + toAmino(message: _130.ClassInfo): _130.ClassInfoAmino; + fromAminoMsg(object: _130.ClassInfoAminoMsg): _130.ClassInfo; + fromProtoMsg(message: _130.ClassInfoProtoMsg): _130.ClassInfo; + toProto(message: _130.ClassInfo): Uint8Array; + toProtoMsg(message: _130.ClassInfo): _130.ClassInfoProtoMsg; }; ProjectInfo: { - encode(message: _129.ProjectInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.ProjectInfo; - fromJSON(object: any): _129.ProjectInfo; - toJSON(message: _129.ProjectInfo): unknown; - fromPartial(object: Partial<_129.ProjectInfo>): _129.ProjectInfo; - fromAmino(object: _129.ProjectInfoAmino): _129.ProjectInfo; - toAmino(message: _129.ProjectInfo): _129.ProjectInfoAmino; - fromAminoMsg(object: _129.ProjectInfoAminoMsg): _129.ProjectInfo; - fromProtoMsg(message: _129.ProjectInfoProtoMsg): _129.ProjectInfo; - toProto(message: _129.ProjectInfo): Uint8Array; - toProtoMsg(message: _129.ProjectInfo): _129.ProjectInfoProtoMsg; + typeUrl: string; + encode(message: _130.ProjectInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.ProjectInfo; + fromJSON(object: any): _130.ProjectInfo; + toJSON(message: _130.ProjectInfo): unknown; + fromPartial(object: Partial<_130.ProjectInfo>): _130.ProjectInfo; + fromAmino(object: _130.ProjectInfoAmino): _130.ProjectInfo; + toAmino(message: _130.ProjectInfo): _130.ProjectInfoAmino; + fromAminoMsg(object: _130.ProjectInfoAminoMsg): _130.ProjectInfo; + fromProtoMsg(message: _130.ProjectInfoProtoMsg): _130.ProjectInfo; + toProto(message: _130.ProjectInfo): Uint8Array; + toProtoMsg(message: _130.ProjectInfo): _130.ProjectInfoProtoMsg; }; BatchInfo: { - encode(message: _129.BatchInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.BatchInfo; - fromJSON(object: any): _129.BatchInfo; - toJSON(message: _129.BatchInfo): unknown; - fromPartial(object: Partial<_129.BatchInfo>): _129.BatchInfo; - fromAmino(object: _129.BatchInfoAmino): _129.BatchInfo; - toAmino(message: _129.BatchInfo): _129.BatchInfoAmino; - fromAminoMsg(object: _129.BatchInfoAminoMsg): _129.BatchInfo; - fromProtoMsg(message: _129.BatchInfoProtoMsg): _129.BatchInfo; - toProto(message: _129.BatchInfo): Uint8Array; - toProtoMsg(message: _129.BatchInfo): _129.BatchInfoProtoMsg; + typeUrl: string; + encode(message: _130.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.BatchInfo; + fromJSON(object: any): _130.BatchInfo; + toJSON(message: _130.BatchInfo): unknown; + fromPartial(object: Partial<_130.BatchInfo>): _130.BatchInfo; + fromAmino(object: _130.BatchInfoAmino): _130.BatchInfo; + toAmino(message: _130.BatchInfo): _130.BatchInfoAmino; + fromAminoMsg(object: _130.BatchInfoAminoMsg): _130.BatchInfo; + fromProtoMsg(message: _130.BatchInfoProtoMsg): _130.BatchInfo; + toProto(message: _130.BatchInfo): Uint8Array; + toProtoMsg(message: _130.BatchInfo): _130.BatchInfoProtoMsg; }; BatchBalanceInfo: { - encode(message: _129.BatchBalanceInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.BatchBalanceInfo; - fromJSON(object: any): _129.BatchBalanceInfo; - toJSON(message: _129.BatchBalanceInfo): unknown; - fromPartial(object: Partial<_129.BatchBalanceInfo>): _129.BatchBalanceInfo; - fromAmino(object: _129.BatchBalanceInfoAmino): _129.BatchBalanceInfo; - toAmino(message: _129.BatchBalanceInfo): _129.BatchBalanceInfoAmino; - fromAminoMsg(object: _129.BatchBalanceInfoAminoMsg): _129.BatchBalanceInfo; - fromProtoMsg(message: _129.BatchBalanceInfoProtoMsg): _129.BatchBalanceInfo; - toProto(message: _129.BatchBalanceInfo): Uint8Array; - toProtoMsg(message: _129.BatchBalanceInfo): _129.BatchBalanceInfoProtoMsg; + typeUrl: string; + encode(message: _130.BatchBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.BatchBalanceInfo; + fromJSON(object: any): _130.BatchBalanceInfo; + toJSON(message: _130.BatchBalanceInfo): unknown; + fromPartial(object: Partial<_130.BatchBalanceInfo>): _130.BatchBalanceInfo; + fromAmino(object: _130.BatchBalanceInfoAmino): _130.BatchBalanceInfo; + toAmino(message: _130.BatchBalanceInfo): _130.BatchBalanceInfoAmino; + fromAminoMsg(object: _130.BatchBalanceInfoAminoMsg): _130.BatchBalanceInfo; + fromProtoMsg(message: _130.BatchBalanceInfoProtoMsg): _130.BatchBalanceInfo; + toProto(message: _130.BatchBalanceInfo): Uint8Array; + toProtoMsg(message: _130.BatchBalanceInfo): _130.BatchBalanceInfoProtoMsg; }; QueryClassCreatorAllowlistRequest: { - encode(_: _129.QueryClassCreatorAllowlistRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassCreatorAllowlistRequest; - fromJSON(_: any): _129.QueryClassCreatorAllowlistRequest; - toJSON(_: _129.QueryClassCreatorAllowlistRequest): unknown; - fromPartial(_: Partial<_129.QueryClassCreatorAllowlistRequest>): _129.QueryClassCreatorAllowlistRequest; - fromAmino(_: _129.QueryClassCreatorAllowlistRequestAmino): _129.QueryClassCreatorAllowlistRequest; - toAmino(_: _129.QueryClassCreatorAllowlistRequest): _129.QueryClassCreatorAllowlistRequestAmino; - fromAminoMsg(object: _129.QueryClassCreatorAllowlistRequestAminoMsg): _129.QueryClassCreatorAllowlistRequest; - fromProtoMsg(message: _129.QueryClassCreatorAllowlistRequestProtoMsg): _129.QueryClassCreatorAllowlistRequest; - toProto(message: _129.QueryClassCreatorAllowlistRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassCreatorAllowlistRequest): _129.QueryClassCreatorAllowlistRequestProtoMsg; + typeUrl: string; + encode(_: _130.QueryClassCreatorAllowlistRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassCreatorAllowlistRequest; + fromJSON(_: any): _130.QueryClassCreatorAllowlistRequest; + toJSON(_: _130.QueryClassCreatorAllowlistRequest): unknown; + fromPartial(_: Partial<_130.QueryClassCreatorAllowlistRequest>): _130.QueryClassCreatorAllowlistRequest; + fromAmino(_: _130.QueryClassCreatorAllowlistRequestAmino): _130.QueryClassCreatorAllowlistRequest; + toAmino(_: _130.QueryClassCreatorAllowlistRequest): _130.QueryClassCreatorAllowlistRequestAmino; + fromAminoMsg(object: _130.QueryClassCreatorAllowlistRequestAminoMsg): _130.QueryClassCreatorAllowlistRequest; + fromProtoMsg(message: _130.QueryClassCreatorAllowlistRequestProtoMsg): _130.QueryClassCreatorAllowlistRequest; + toProto(message: _130.QueryClassCreatorAllowlistRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassCreatorAllowlistRequest): _130.QueryClassCreatorAllowlistRequestProtoMsg; }; QueryClassCreatorAllowlistResponse: { - encode(message: _129.QueryClassCreatorAllowlistResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassCreatorAllowlistResponse; - fromJSON(object: any): _129.QueryClassCreatorAllowlistResponse; - toJSON(message: _129.QueryClassCreatorAllowlistResponse): unknown; - fromPartial(object: Partial<_129.QueryClassCreatorAllowlistResponse>): _129.QueryClassCreatorAllowlistResponse; - fromAmino(object: _129.QueryClassCreatorAllowlistResponseAmino): _129.QueryClassCreatorAllowlistResponse; - toAmino(message: _129.QueryClassCreatorAllowlistResponse): _129.QueryClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _129.QueryClassCreatorAllowlistResponseAminoMsg): _129.QueryClassCreatorAllowlistResponse; - fromProtoMsg(message: _129.QueryClassCreatorAllowlistResponseProtoMsg): _129.QueryClassCreatorAllowlistResponse; - toProto(message: _129.QueryClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassCreatorAllowlistResponse): _129.QueryClassCreatorAllowlistResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassCreatorAllowlistResponse; + fromJSON(object: any): _130.QueryClassCreatorAllowlistResponse; + toJSON(message: _130.QueryClassCreatorAllowlistResponse): unknown; + fromPartial(object: Partial<_130.QueryClassCreatorAllowlistResponse>): _130.QueryClassCreatorAllowlistResponse; + fromAmino(object: _130.QueryClassCreatorAllowlistResponseAmino): _130.QueryClassCreatorAllowlistResponse; + toAmino(message: _130.QueryClassCreatorAllowlistResponse): _130.QueryClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: _130.QueryClassCreatorAllowlistResponseAminoMsg): _130.QueryClassCreatorAllowlistResponse; + fromProtoMsg(message: _130.QueryClassCreatorAllowlistResponseProtoMsg): _130.QueryClassCreatorAllowlistResponse; + toProto(message: _130.QueryClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassCreatorAllowlistResponse): _130.QueryClassCreatorAllowlistResponseProtoMsg; }; QueryAllowedClassCreatorsRequest: { - encode(message: _129.QueryAllowedClassCreatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllowedClassCreatorsRequest; - fromJSON(object: any): _129.QueryAllowedClassCreatorsRequest; - toJSON(message: _129.QueryAllowedClassCreatorsRequest): unknown; - fromPartial(object: Partial<_129.QueryAllowedClassCreatorsRequest>): _129.QueryAllowedClassCreatorsRequest; - fromAmino(object: _129.QueryAllowedClassCreatorsRequestAmino): _129.QueryAllowedClassCreatorsRequest; - toAmino(message: _129.QueryAllowedClassCreatorsRequest): _129.QueryAllowedClassCreatorsRequestAmino; - fromAminoMsg(object: _129.QueryAllowedClassCreatorsRequestAminoMsg): _129.QueryAllowedClassCreatorsRequest; - fromProtoMsg(message: _129.QueryAllowedClassCreatorsRequestProtoMsg): _129.QueryAllowedClassCreatorsRequest; - toProto(message: _129.QueryAllowedClassCreatorsRequest): Uint8Array; - toProtoMsg(message: _129.QueryAllowedClassCreatorsRequest): _129.QueryAllowedClassCreatorsRequestProtoMsg; + typeUrl: string; + encode(message: _130.QueryAllowedClassCreatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedClassCreatorsRequest; + fromJSON(object: any): _130.QueryAllowedClassCreatorsRequest; + toJSON(message: _130.QueryAllowedClassCreatorsRequest): unknown; + fromPartial(object: Partial<_130.QueryAllowedClassCreatorsRequest>): _130.QueryAllowedClassCreatorsRequest; + fromAmino(object: _130.QueryAllowedClassCreatorsRequestAmino): _130.QueryAllowedClassCreatorsRequest; + toAmino(message: _130.QueryAllowedClassCreatorsRequest): _130.QueryAllowedClassCreatorsRequestAmino; + fromAminoMsg(object: _130.QueryAllowedClassCreatorsRequestAminoMsg): _130.QueryAllowedClassCreatorsRequest; + fromProtoMsg(message: _130.QueryAllowedClassCreatorsRequestProtoMsg): _130.QueryAllowedClassCreatorsRequest; + toProto(message: _130.QueryAllowedClassCreatorsRequest): Uint8Array; + toProtoMsg(message: _130.QueryAllowedClassCreatorsRequest): _130.QueryAllowedClassCreatorsRequestProtoMsg; }; QueryAllowedClassCreatorsResponse: { - encode(message: _129.QueryAllowedClassCreatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllowedClassCreatorsResponse; - fromJSON(object: any): _129.QueryAllowedClassCreatorsResponse; - toJSON(message: _129.QueryAllowedClassCreatorsResponse): unknown; - fromPartial(object: Partial<_129.QueryAllowedClassCreatorsResponse>): _129.QueryAllowedClassCreatorsResponse; - fromAmino(object: _129.QueryAllowedClassCreatorsResponseAmino): _129.QueryAllowedClassCreatorsResponse; - toAmino(message: _129.QueryAllowedClassCreatorsResponse): _129.QueryAllowedClassCreatorsResponseAmino; - fromAminoMsg(object: _129.QueryAllowedClassCreatorsResponseAminoMsg): _129.QueryAllowedClassCreatorsResponse; - fromProtoMsg(message: _129.QueryAllowedClassCreatorsResponseProtoMsg): _129.QueryAllowedClassCreatorsResponse; - toProto(message: _129.QueryAllowedClassCreatorsResponse): Uint8Array; - toProtoMsg(message: _129.QueryAllowedClassCreatorsResponse): _129.QueryAllowedClassCreatorsResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryAllowedClassCreatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedClassCreatorsResponse; + fromJSON(object: any): _130.QueryAllowedClassCreatorsResponse; + toJSON(message: _130.QueryAllowedClassCreatorsResponse): unknown; + fromPartial(object: Partial<_130.QueryAllowedClassCreatorsResponse>): _130.QueryAllowedClassCreatorsResponse; + fromAmino(object: _130.QueryAllowedClassCreatorsResponseAmino): _130.QueryAllowedClassCreatorsResponse; + toAmino(message: _130.QueryAllowedClassCreatorsResponse): _130.QueryAllowedClassCreatorsResponseAmino; + fromAminoMsg(object: _130.QueryAllowedClassCreatorsResponseAminoMsg): _130.QueryAllowedClassCreatorsResponse; + fromProtoMsg(message: _130.QueryAllowedClassCreatorsResponseProtoMsg): _130.QueryAllowedClassCreatorsResponse; + toProto(message: _130.QueryAllowedClassCreatorsResponse): Uint8Array; + toProtoMsg(message: _130.QueryAllowedClassCreatorsResponse): _130.QueryAllowedClassCreatorsResponseProtoMsg; }; QueryClassFeeRequest: { - encode(_: _129.QueryClassFeeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassFeeRequest; - fromJSON(_: any): _129.QueryClassFeeRequest; - toJSON(_: _129.QueryClassFeeRequest): unknown; - fromPartial(_: Partial<_129.QueryClassFeeRequest>): _129.QueryClassFeeRequest; - fromAmino(_: _129.QueryClassFeeRequestAmino): _129.QueryClassFeeRequest; - toAmino(_: _129.QueryClassFeeRequest): _129.QueryClassFeeRequestAmino; - fromAminoMsg(object: _129.QueryClassFeeRequestAminoMsg): _129.QueryClassFeeRequest; - fromProtoMsg(message: _129.QueryClassFeeRequestProtoMsg): _129.QueryClassFeeRequest; - toProto(message: _129.QueryClassFeeRequest): Uint8Array; - toProtoMsg(message: _129.QueryClassFeeRequest): _129.QueryClassFeeRequestProtoMsg; + typeUrl: string; + encode(_: _130.QueryClassFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassFeeRequest; + fromJSON(_: any): _130.QueryClassFeeRequest; + toJSON(_: _130.QueryClassFeeRequest): unknown; + fromPartial(_: Partial<_130.QueryClassFeeRequest>): _130.QueryClassFeeRequest; + fromAmino(_: _130.QueryClassFeeRequestAmino): _130.QueryClassFeeRequest; + toAmino(_: _130.QueryClassFeeRequest): _130.QueryClassFeeRequestAmino; + fromAminoMsg(object: _130.QueryClassFeeRequestAminoMsg): _130.QueryClassFeeRequest; + fromProtoMsg(message: _130.QueryClassFeeRequestProtoMsg): _130.QueryClassFeeRequest; + toProto(message: _130.QueryClassFeeRequest): Uint8Array; + toProtoMsg(message: _130.QueryClassFeeRequest): _130.QueryClassFeeRequestProtoMsg; }; QueryClassFeeResponse: { - encode(message: _129.QueryClassFeeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryClassFeeResponse; - fromJSON(object: any): _129.QueryClassFeeResponse; - toJSON(message: _129.QueryClassFeeResponse): unknown; - fromPartial(object: Partial<_129.QueryClassFeeResponse>): _129.QueryClassFeeResponse; - fromAmino(object: _129.QueryClassFeeResponseAmino): _129.QueryClassFeeResponse; - toAmino(message: _129.QueryClassFeeResponse): _129.QueryClassFeeResponseAmino; - fromAminoMsg(object: _129.QueryClassFeeResponseAminoMsg): _129.QueryClassFeeResponse; - fromProtoMsg(message: _129.QueryClassFeeResponseProtoMsg): _129.QueryClassFeeResponse; - toProto(message: _129.QueryClassFeeResponse): Uint8Array; - toProtoMsg(message: _129.QueryClassFeeResponse): _129.QueryClassFeeResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassFeeResponse; + fromJSON(object: any): _130.QueryClassFeeResponse; + toJSON(message: _130.QueryClassFeeResponse): unknown; + fromPartial(object: Partial<_130.QueryClassFeeResponse>): _130.QueryClassFeeResponse; + fromAmino(object: _130.QueryClassFeeResponseAmino): _130.QueryClassFeeResponse; + toAmino(message: _130.QueryClassFeeResponse): _130.QueryClassFeeResponseAmino; + fromAminoMsg(object: _130.QueryClassFeeResponseAminoMsg): _130.QueryClassFeeResponse; + fromProtoMsg(message: _130.QueryClassFeeResponseProtoMsg): _130.QueryClassFeeResponse; + toProto(message: _130.QueryClassFeeResponse): Uint8Array; + toProtoMsg(message: _130.QueryClassFeeResponse): _130.QueryClassFeeResponseProtoMsg; }; QueryAllowedBridgeChainsRequest: { - encode(_: _129.QueryAllowedBridgeChainsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllowedBridgeChainsRequest; - fromJSON(_: any): _129.QueryAllowedBridgeChainsRequest; - toJSON(_: _129.QueryAllowedBridgeChainsRequest): unknown; - fromPartial(_: Partial<_129.QueryAllowedBridgeChainsRequest>): _129.QueryAllowedBridgeChainsRequest; - fromAmino(_: _129.QueryAllowedBridgeChainsRequestAmino): _129.QueryAllowedBridgeChainsRequest; - toAmino(_: _129.QueryAllowedBridgeChainsRequest): _129.QueryAllowedBridgeChainsRequestAmino; - fromAminoMsg(object: _129.QueryAllowedBridgeChainsRequestAminoMsg): _129.QueryAllowedBridgeChainsRequest; - fromProtoMsg(message: _129.QueryAllowedBridgeChainsRequestProtoMsg): _129.QueryAllowedBridgeChainsRequest; - toProto(message: _129.QueryAllowedBridgeChainsRequest): Uint8Array; - toProtoMsg(message: _129.QueryAllowedBridgeChainsRequest): _129.QueryAllowedBridgeChainsRequestProtoMsg; + typeUrl: string; + encode(_: _130.QueryAllowedBridgeChainsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedBridgeChainsRequest; + fromJSON(_: any): _130.QueryAllowedBridgeChainsRequest; + toJSON(_: _130.QueryAllowedBridgeChainsRequest): unknown; + fromPartial(_: Partial<_130.QueryAllowedBridgeChainsRequest>): _130.QueryAllowedBridgeChainsRequest; + fromAmino(_: _130.QueryAllowedBridgeChainsRequestAmino): _130.QueryAllowedBridgeChainsRequest; + toAmino(_: _130.QueryAllowedBridgeChainsRequest): _130.QueryAllowedBridgeChainsRequestAmino; + fromAminoMsg(object: _130.QueryAllowedBridgeChainsRequestAminoMsg): _130.QueryAllowedBridgeChainsRequest; + fromProtoMsg(message: _130.QueryAllowedBridgeChainsRequestProtoMsg): _130.QueryAllowedBridgeChainsRequest; + toProto(message: _130.QueryAllowedBridgeChainsRequest): Uint8Array; + toProtoMsg(message: _130.QueryAllowedBridgeChainsRequest): _130.QueryAllowedBridgeChainsRequestProtoMsg; }; QueryAllowedBridgeChainsResponse: { - encode(message: _129.QueryAllowedBridgeChainsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _129.QueryAllowedBridgeChainsResponse; - fromJSON(object: any): _129.QueryAllowedBridgeChainsResponse; - toJSON(message: _129.QueryAllowedBridgeChainsResponse): unknown; - fromPartial(object: Partial<_129.QueryAllowedBridgeChainsResponse>): _129.QueryAllowedBridgeChainsResponse; - fromAmino(object: _129.QueryAllowedBridgeChainsResponseAmino): _129.QueryAllowedBridgeChainsResponse; - toAmino(message: _129.QueryAllowedBridgeChainsResponse): _129.QueryAllowedBridgeChainsResponseAmino; - fromAminoMsg(object: _129.QueryAllowedBridgeChainsResponseAminoMsg): _129.QueryAllowedBridgeChainsResponse; - fromProtoMsg(message: _129.QueryAllowedBridgeChainsResponseProtoMsg): _129.QueryAllowedBridgeChainsResponse; - toProto(message: _129.QueryAllowedBridgeChainsResponse): Uint8Array; - toProtoMsg(message: _129.QueryAllowedBridgeChainsResponse): _129.QueryAllowedBridgeChainsResponseProtoMsg; + typeUrl: string; + encode(message: _130.QueryAllowedBridgeChainsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedBridgeChainsResponse; + fromJSON(object: any): _130.QueryAllowedBridgeChainsResponse; + toJSON(message: _130.QueryAllowedBridgeChainsResponse): unknown; + fromPartial(object: Partial<_130.QueryAllowedBridgeChainsResponse>): _130.QueryAllowedBridgeChainsResponse; + fromAmino(object: _130.QueryAllowedBridgeChainsResponseAmino): _130.QueryAllowedBridgeChainsResponse; + toAmino(message: _130.QueryAllowedBridgeChainsResponse): _130.QueryAllowedBridgeChainsResponseAmino; + fromAminoMsg(object: _130.QueryAllowedBridgeChainsResponseAminoMsg): _130.QueryAllowedBridgeChainsResponse; + fromProtoMsg(message: _130.QueryAllowedBridgeChainsResponseProtoMsg): _130.QueryAllowedBridgeChainsResponse; + toProto(message: _130.QueryAllowedBridgeChainsResponse): Uint8Array; + toProtoMsg(message: _130.QueryAllowedBridgeChainsResponse): _130.QueryAllowedBridgeChainsResponseProtoMsg; }; EventCreateClass: { - encode(message: _128.EventCreateClass, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventCreateClass; - fromJSON(object: any): _128.EventCreateClass; - toJSON(message: _128.EventCreateClass): unknown; - fromPartial(object: Partial<_128.EventCreateClass>): _128.EventCreateClass; - fromAmino(object: _128.EventCreateClassAmino): _128.EventCreateClass; - toAmino(message: _128.EventCreateClass): _128.EventCreateClassAmino; - fromAminoMsg(object: _128.EventCreateClassAminoMsg): _128.EventCreateClass; - fromProtoMsg(message: _128.EventCreateClassProtoMsg): _128.EventCreateClass; - toProto(message: _128.EventCreateClass): Uint8Array; - toProtoMsg(message: _128.EventCreateClass): _128.EventCreateClassProtoMsg; + typeUrl: string; + encode(message: _129.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateClass; + fromJSON(object: any): _129.EventCreateClass; + toJSON(message: _129.EventCreateClass): unknown; + fromPartial(object: Partial<_129.EventCreateClass>): _129.EventCreateClass; + fromAmino(object: _129.EventCreateClassAmino): _129.EventCreateClass; + toAmino(message: _129.EventCreateClass): _129.EventCreateClassAmino; + fromAminoMsg(object: _129.EventCreateClassAminoMsg): _129.EventCreateClass; + fromProtoMsg(message: _129.EventCreateClassProtoMsg): _129.EventCreateClass; + toProto(message: _129.EventCreateClass): Uint8Array; + toProtoMsg(message: _129.EventCreateClass): _129.EventCreateClassProtoMsg; }; EventCreateProject: { - encode(message: _128.EventCreateProject, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventCreateProject; - fromJSON(object: any): _128.EventCreateProject; - toJSON(message: _128.EventCreateProject): unknown; - fromPartial(object: Partial<_128.EventCreateProject>): _128.EventCreateProject; - fromAmino(object: _128.EventCreateProjectAmino): _128.EventCreateProject; - toAmino(message: _128.EventCreateProject): _128.EventCreateProjectAmino; - fromAminoMsg(object: _128.EventCreateProjectAminoMsg): _128.EventCreateProject; - fromProtoMsg(message: _128.EventCreateProjectProtoMsg): _128.EventCreateProject; - toProto(message: _128.EventCreateProject): Uint8Array; - toProtoMsg(message: _128.EventCreateProject): _128.EventCreateProjectProtoMsg; + typeUrl: string; + encode(message: _129.EventCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateProject; + fromJSON(object: any): _129.EventCreateProject; + toJSON(message: _129.EventCreateProject): unknown; + fromPartial(object: Partial<_129.EventCreateProject>): _129.EventCreateProject; + fromAmino(object: _129.EventCreateProjectAmino): _129.EventCreateProject; + toAmino(message: _129.EventCreateProject): _129.EventCreateProjectAmino; + fromAminoMsg(object: _129.EventCreateProjectAminoMsg): _129.EventCreateProject; + fromProtoMsg(message: _129.EventCreateProjectProtoMsg): _129.EventCreateProject; + toProto(message: _129.EventCreateProject): Uint8Array; + toProtoMsg(message: _129.EventCreateProject): _129.EventCreateProjectProtoMsg; }; EventCreateBatch: { - encode(message: _128.EventCreateBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventCreateBatch; - fromJSON(object: any): _128.EventCreateBatch; - toJSON(message: _128.EventCreateBatch): unknown; - fromPartial(object: Partial<_128.EventCreateBatch>): _128.EventCreateBatch; - fromAmino(object: _128.EventCreateBatchAmino): _128.EventCreateBatch; - toAmino(message: _128.EventCreateBatch): _128.EventCreateBatchAmino; - fromAminoMsg(object: _128.EventCreateBatchAminoMsg): _128.EventCreateBatch; - fromProtoMsg(message: _128.EventCreateBatchProtoMsg): _128.EventCreateBatch; - toProto(message: _128.EventCreateBatch): Uint8Array; - toProtoMsg(message: _128.EventCreateBatch): _128.EventCreateBatchProtoMsg; + typeUrl: string; + encode(message: _129.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateBatch; + fromJSON(object: any): _129.EventCreateBatch; + toJSON(message: _129.EventCreateBatch): unknown; + fromPartial(object: Partial<_129.EventCreateBatch>): _129.EventCreateBatch; + fromAmino(object: _129.EventCreateBatchAmino): _129.EventCreateBatch; + toAmino(message: _129.EventCreateBatch): _129.EventCreateBatchAmino; + fromAminoMsg(object: _129.EventCreateBatchAminoMsg): _129.EventCreateBatch; + fromProtoMsg(message: _129.EventCreateBatchProtoMsg): _129.EventCreateBatch; + toProto(message: _129.EventCreateBatch): Uint8Array; + toProtoMsg(message: _129.EventCreateBatch): _129.EventCreateBatchProtoMsg; }; EventMint: { - encode(message: _128.EventMint, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventMint; - fromJSON(object: any): _128.EventMint; - toJSON(message: _128.EventMint): unknown; - fromPartial(object: Partial<_128.EventMint>): _128.EventMint; - fromAmino(object: _128.EventMintAmino): _128.EventMint; - toAmino(message: _128.EventMint): _128.EventMintAmino; - fromAminoMsg(object: _128.EventMintAminoMsg): _128.EventMint; - fromProtoMsg(message: _128.EventMintProtoMsg): _128.EventMint; - toProto(message: _128.EventMint): Uint8Array; - toProtoMsg(message: _128.EventMint): _128.EventMintProtoMsg; + typeUrl: string; + encode(message: _129.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventMint; + fromJSON(object: any): _129.EventMint; + toJSON(message: _129.EventMint): unknown; + fromPartial(object: Partial<_129.EventMint>): _129.EventMint; + fromAmino(object: _129.EventMintAmino): _129.EventMint; + toAmino(message: _129.EventMint): _129.EventMintAmino; + fromAminoMsg(object: _129.EventMintAminoMsg): _129.EventMint; + fromProtoMsg(message: _129.EventMintProtoMsg): _129.EventMint; + toProto(message: _129.EventMint): Uint8Array; + toProtoMsg(message: _129.EventMint): _129.EventMintProtoMsg; }; EventMintBatchCredits: { - encode(message: _128.EventMintBatchCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventMintBatchCredits; - fromJSON(object: any): _128.EventMintBatchCredits; - toJSON(message: _128.EventMintBatchCredits): unknown; - fromPartial(object: Partial<_128.EventMintBatchCredits>): _128.EventMintBatchCredits; - fromAmino(object: _128.EventMintBatchCreditsAmino): _128.EventMintBatchCredits; - toAmino(message: _128.EventMintBatchCredits): _128.EventMintBatchCreditsAmino; - fromAminoMsg(object: _128.EventMintBatchCreditsAminoMsg): _128.EventMintBatchCredits; - fromProtoMsg(message: _128.EventMintBatchCreditsProtoMsg): _128.EventMintBatchCredits; - toProto(message: _128.EventMintBatchCredits): Uint8Array; - toProtoMsg(message: _128.EventMintBatchCredits): _128.EventMintBatchCreditsProtoMsg; + typeUrl: string; + encode(message: _129.EventMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventMintBatchCredits; + fromJSON(object: any): _129.EventMintBatchCredits; + toJSON(message: _129.EventMintBatchCredits): unknown; + fromPartial(object: Partial<_129.EventMintBatchCredits>): _129.EventMintBatchCredits; + fromAmino(object: _129.EventMintBatchCreditsAmino): _129.EventMintBatchCredits; + toAmino(message: _129.EventMintBatchCredits): _129.EventMintBatchCreditsAmino; + fromAminoMsg(object: _129.EventMintBatchCreditsAminoMsg): _129.EventMintBatchCredits; + fromProtoMsg(message: _129.EventMintBatchCreditsProtoMsg): _129.EventMintBatchCredits; + toProto(message: _129.EventMintBatchCredits): Uint8Array; + toProtoMsg(message: _129.EventMintBatchCredits): _129.EventMintBatchCreditsProtoMsg; }; EventTransfer: { - encode(message: _128.EventTransfer, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventTransfer; - fromJSON(object: any): _128.EventTransfer; - toJSON(message: _128.EventTransfer): unknown; - fromPartial(object: Partial<_128.EventTransfer>): _128.EventTransfer; - fromAmino(object: _128.EventTransferAmino): _128.EventTransfer; - toAmino(message: _128.EventTransfer): _128.EventTransferAmino; - fromAminoMsg(object: _128.EventTransferAminoMsg): _128.EventTransfer; - fromProtoMsg(message: _128.EventTransferProtoMsg): _128.EventTransfer; - toProto(message: _128.EventTransfer): Uint8Array; - toProtoMsg(message: _128.EventTransfer): _128.EventTransferProtoMsg; + typeUrl: string; + encode(message: _129.EventTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventTransfer; + fromJSON(object: any): _129.EventTransfer; + toJSON(message: _129.EventTransfer): unknown; + fromPartial(object: Partial<_129.EventTransfer>): _129.EventTransfer; + fromAmino(object: _129.EventTransferAmino): _129.EventTransfer; + toAmino(message: _129.EventTransfer): _129.EventTransferAmino; + fromAminoMsg(object: _129.EventTransferAminoMsg): _129.EventTransfer; + fromProtoMsg(message: _129.EventTransferProtoMsg): _129.EventTransfer; + toProto(message: _129.EventTransfer): Uint8Array; + toProtoMsg(message: _129.EventTransfer): _129.EventTransferProtoMsg; }; EventRetire: { - encode(message: _128.EventRetire, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventRetire; - fromJSON(object: any): _128.EventRetire; - toJSON(message: _128.EventRetire): unknown; - fromPartial(object: Partial<_128.EventRetire>): _128.EventRetire; - fromAmino(object: _128.EventRetireAmino): _128.EventRetire; - toAmino(message: _128.EventRetire): _128.EventRetireAmino; - fromAminoMsg(object: _128.EventRetireAminoMsg): _128.EventRetire; - fromProtoMsg(message: _128.EventRetireProtoMsg): _128.EventRetire; - toProto(message: _128.EventRetire): Uint8Array; - toProtoMsg(message: _128.EventRetire): _128.EventRetireProtoMsg; + typeUrl: string; + encode(message: _129.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventRetire; + fromJSON(object: any): _129.EventRetire; + toJSON(message: _129.EventRetire): unknown; + fromPartial(object: Partial<_129.EventRetire>): _129.EventRetire; + fromAmino(object: _129.EventRetireAmino): _129.EventRetire; + toAmino(message: _129.EventRetire): _129.EventRetireAmino; + fromAminoMsg(object: _129.EventRetireAminoMsg): _129.EventRetire; + fromProtoMsg(message: _129.EventRetireProtoMsg): _129.EventRetire; + toProto(message: _129.EventRetire): Uint8Array; + toProtoMsg(message: _129.EventRetire): _129.EventRetireProtoMsg; }; EventCancel: { - encode(message: _128.EventCancel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventCancel; - fromJSON(object: any): _128.EventCancel; - toJSON(message: _128.EventCancel): unknown; - fromPartial(object: Partial<_128.EventCancel>): _128.EventCancel; - fromAmino(object: _128.EventCancelAmino): _128.EventCancel; - toAmino(message: _128.EventCancel): _128.EventCancelAmino; - fromAminoMsg(object: _128.EventCancelAminoMsg): _128.EventCancel; - fromProtoMsg(message: _128.EventCancelProtoMsg): _128.EventCancel; - toProto(message: _128.EventCancel): Uint8Array; - toProtoMsg(message: _128.EventCancel): _128.EventCancelProtoMsg; + typeUrl: string; + encode(message: _129.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCancel; + fromJSON(object: any): _129.EventCancel; + toJSON(message: _129.EventCancel): unknown; + fromPartial(object: Partial<_129.EventCancel>): _129.EventCancel; + fromAmino(object: _129.EventCancelAmino): _129.EventCancel; + toAmino(message: _129.EventCancel): _129.EventCancelAmino; + fromAminoMsg(object: _129.EventCancelAminoMsg): _129.EventCancel; + fromProtoMsg(message: _129.EventCancelProtoMsg): _129.EventCancel; + toProto(message: _129.EventCancel): Uint8Array; + toProtoMsg(message: _129.EventCancel): _129.EventCancelProtoMsg; }; EventUpdateClassAdmin: { - encode(message: _128.EventUpdateClassAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateClassAdmin; - fromJSON(object: any): _128.EventUpdateClassAdmin; - toJSON(message: _128.EventUpdateClassAdmin): unknown; - fromPartial(object: Partial<_128.EventUpdateClassAdmin>): _128.EventUpdateClassAdmin; - fromAmino(object: _128.EventUpdateClassAdminAmino): _128.EventUpdateClassAdmin; - toAmino(message: _128.EventUpdateClassAdmin): _128.EventUpdateClassAdminAmino; - fromAminoMsg(object: _128.EventUpdateClassAdminAminoMsg): _128.EventUpdateClassAdmin; - fromProtoMsg(message: _128.EventUpdateClassAdminProtoMsg): _128.EventUpdateClassAdmin; - toProto(message: _128.EventUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _128.EventUpdateClassAdmin): _128.EventUpdateClassAdminProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassAdmin; + fromJSON(object: any): _129.EventUpdateClassAdmin; + toJSON(message: _129.EventUpdateClassAdmin): unknown; + fromPartial(object: Partial<_129.EventUpdateClassAdmin>): _129.EventUpdateClassAdmin; + fromAmino(object: _129.EventUpdateClassAdminAmino): _129.EventUpdateClassAdmin; + toAmino(message: _129.EventUpdateClassAdmin): _129.EventUpdateClassAdminAmino; + fromAminoMsg(object: _129.EventUpdateClassAdminAminoMsg): _129.EventUpdateClassAdmin; + fromProtoMsg(message: _129.EventUpdateClassAdminProtoMsg): _129.EventUpdateClassAdmin; + toProto(message: _129.EventUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _129.EventUpdateClassAdmin): _129.EventUpdateClassAdminProtoMsg; }; EventUpdateClassIssuers: { - encode(message: _128.EventUpdateClassIssuers, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateClassIssuers; - fromJSON(object: any): _128.EventUpdateClassIssuers; - toJSON(message: _128.EventUpdateClassIssuers): unknown; - fromPartial(object: Partial<_128.EventUpdateClassIssuers>): _128.EventUpdateClassIssuers; - fromAmino(object: _128.EventUpdateClassIssuersAmino): _128.EventUpdateClassIssuers; - toAmino(message: _128.EventUpdateClassIssuers): _128.EventUpdateClassIssuersAmino; - fromAminoMsg(object: _128.EventUpdateClassIssuersAminoMsg): _128.EventUpdateClassIssuers; - fromProtoMsg(message: _128.EventUpdateClassIssuersProtoMsg): _128.EventUpdateClassIssuers; - toProto(message: _128.EventUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _128.EventUpdateClassIssuers): _128.EventUpdateClassIssuersProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassIssuers; + fromJSON(object: any): _129.EventUpdateClassIssuers; + toJSON(message: _129.EventUpdateClassIssuers): unknown; + fromPartial(object: Partial<_129.EventUpdateClassIssuers>): _129.EventUpdateClassIssuers; + fromAmino(object: _129.EventUpdateClassIssuersAmino): _129.EventUpdateClassIssuers; + toAmino(message: _129.EventUpdateClassIssuers): _129.EventUpdateClassIssuersAmino; + fromAminoMsg(object: _129.EventUpdateClassIssuersAminoMsg): _129.EventUpdateClassIssuers; + fromProtoMsg(message: _129.EventUpdateClassIssuersProtoMsg): _129.EventUpdateClassIssuers; + toProto(message: _129.EventUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _129.EventUpdateClassIssuers): _129.EventUpdateClassIssuersProtoMsg; }; EventUpdateClassMetadata: { - encode(message: _128.EventUpdateClassMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateClassMetadata; - fromJSON(object: any): _128.EventUpdateClassMetadata; - toJSON(message: _128.EventUpdateClassMetadata): unknown; - fromPartial(object: Partial<_128.EventUpdateClassMetadata>): _128.EventUpdateClassMetadata; - fromAmino(object: _128.EventUpdateClassMetadataAmino): _128.EventUpdateClassMetadata; - toAmino(message: _128.EventUpdateClassMetadata): _128.EventUpdateClassMetadataAmino; - fromAminoMsg(object: _128.EventUpdateClassMetadataAminoMsg): _128.EventUpdateClassMetadata; - fromProtoMsg(message: _128.EventUpdateClassMetadataProtoMsg): _128.EventUpdateClassMetadata; - toProto(message: _128.EventUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _128.EventUpdateClassMetadata): _128.EventUpdateClassMetadataProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassMetadata; + fromJSON(object: any): _129.EventUpdateClassMetadata; + toJSON(message: _129.EventUpdateClassMetadata): unknown; + fromPartial(object: Partial<_129.EventUpdateClassMetadata>): _129.EventUpdateClassMetadata; + fromAmino(object: _129.EventUpdateClassMetadataAmino): _129.EventUpdateClassMetadata; + toAmino(message: _129.EventUpdateClassMetadata): _129.EventUpdateClassMetadataAmino; + fromAminoMsg(object: _129.EventUpdateClassMetadataAminoMsg): _129.EventUpdateClassMetadata; + fromProtoMsg(message: _129.EventUpdateClassMetadataProtoMsg): _129.EventUpdateClassMetadata; + toProto(message: _129.EventUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _129.EventUpdateClassMetadata): _129.EventUpdateClassMetadataProtoMsg; }; EventUpdateProjectAdmin: { - encode(message: _128.EventUpdateProjectAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateProjectAdmin; - fromJSON(object: any): _128.EventUpdateProjectAdmin; - toJSON(message: _128.EventUpdateProjectAdmin): unknown; - fromPartial(object: Partial<_128.EventUpdateProjectAdmin>): _128.EventUpdateProjectAdmin; - fromAmino(object: _128.EventUpdateProjectAdminAmino): _128.EventUpdateProjectAdmin; - toAmino(message: _128.EventUpdateProjectAdmin): _128.EventUpdateProjectAdminAmino; - fromAminoMsg(object: _128.EventUpdateProjectAdminAminoMsg): _128.EventUpdateProjectAdmin; - fromProtoMsg(message: _128.EventUpdateProjectAdminProtoMsg): _128.EventUpdateProjectAdmin; - toProto(message: _128.EventUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _128.EventUpdateProjectAdmin): _128.EventUpdateProjectAdminProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateProjectAdmin; + fromJSON(object: any): _129.EventUpdateProjectAdmin; + toJSON(message: _129.EventUpdateProjectAdmin): unknown; + fromPartial(object: Partial<_129.EventUpdateProjectAdmin>): _129.EventUpdateProjectAdmin; + fromAmino(object: _129.EventUpdateProjectAdminAmino): _129.EventUpdateProjectAdmin; + toAmino(message: _129.EventUpdateProjectAdmin): _129.EventUpdateProjectAdminAmino; + fromAminoMsg(object: _129.EventUpdateProjectAdminAminoMsg): _129.EventUpdateProjectAdmin; + fromProtoMsg(message: _129.EventUpdateProjectAdminProtoMsg): _129.EventUpdateProjectAdmin; + toProto(message: _129.EventUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: _129.EventUpdateProjectAdmin): _129.EventUpdateProjectAdminProtoMsg; }; EventUpdateProjectMetadata: { - encode(message: _128.EventUpdateProjectMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateProjectMetadata; - fromJSON(object: any): _128.EventUpdateProjectMetadata; - toJSON(message: _128.EventUpdateProjectMetadata): unknown; - fromPartial(object: Partial<_128.EventUpdateProjectMetadata>): _128.EventUpdateProjectMetadata; - fromAmino(object: _128.EventUpdateProjectMetadataAmino): _128.EventUpdateProjectMetadata; - toAmino(message: _128.EventUpdateProjectMetadata): _128.EventUpdateProjectMetadataAmino; - fromAminoMsg(object: _128.EventUpdateProjectMetadataAminoMsg): _128.EventUpdateProjectMetadata; - fromProtoMsg(message: _128.EventUpdateProjectMetadataProtoMsg): _128.EventUpdateProjectMetadata; - toProto(message: _128.EventUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _128.EventUpdateProjectMetadata): _128.EventUpdateProjectMetadataProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateProjectMetadata; + fromJSON(object: any): _129.EventUpdateProjectMetadata; + toJSON(message: _129.EventUpdateProjectMetadata): unknown; + fromPartial(object: Partial<_129.EventUpdateProjectMetadata>): _129.EventUpdateProjectMetadata; + fromAmino(object: _129.EventUpdateProjectMetadataAmino): _129.EventUpdateProjectMetadata; + toAmino(message: _129.EventUpdateProjectMetadata): _129.EventUpdateProjectMetadataAmino; + fromAminoMsg(object: _129.EventUpdateProjectMetadataAminoMsg): _129.EventUpdateProjectMetadata; + fromProtoMsg(message: _129.EventUpdateProjectMetadataProtoMsg): _129.EventUpdateProjectMetadata; + toProto(message: _129.EventUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: _129.EventUpdateProjectMetadata): _129.EventUpdateProjectMetadataProtoMsg; }; EventUpdateBatchMetadata: { - encode(message: _128.EventUpdateBatchMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventUpdateBatchMetadata; - fromJSON(object: any): _128.EventUpdateBatchMetadata; - toJSON(message: _128.EventUpdateBatchMetadata): unknown; - fromPartial(object: Partial<_128.EventUpdateBatchMetadata>): _128.EventUpdateBatchMetadata; - fromAmino(object: _128.EventUpdateBatchMetadataAmino): _128.EventUpdateBatchMetadata; - toAmino(message: _128.EventUpdateBatchMetadata): _128.EventUpdateBatchMetadataAmino; - fromAminoMsg(object: _128.EventUpdateBatchMetadataAminoMsg): _128.EventUpdateBatchMetadata; - fromProtoMsg(message: _128.EventUpdateBatchMetadataProtoMsg): _128.EventUpdateBatchMetadata; - toProto(message: _128.EventUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _128.EventUpdateBatchMetadata): _128.EventUpdateBatchMetadataProtoMsg; + typeUrl: string; + encode(message: _129.EventUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateBatchMetadata; + fromJSON(object: any): _129.EventUpdateBatchMetadata; + toJSON(message: _129.EventUpdateBatchMetadata): unknown; + fromPartial(object: Partial<_129.EventUpdateBatchMetadata>): _129.EventUpdateBatchMetadata; + fromAmino(object: _129.EventUpdateBatchMetadataAmino): _129.EventUpdateBatchMetadata; + toAmino(message: _129.EventUpdateBatchMetadata): _129.EventUpdateBatchMetadataAmino; + fromAminoMsg(object: _129.EventUpdateBatchMetadataAminoMsg): _129.EventUpdateBatchMetadata; + fromProtoMsg(message: _129.EventUpdateBatchMetadataProtoMsg): _129.EventUpdateBatchMetadata; + toProto(message: _129.EventUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: _129.EventUpdateBatchMetadata): _129.EventUpdateBatchMetadataProtoMsg; }; EventSealBatch: { - encode(message: _128.EventSealBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventSealBatch; - fromJSON(object: any): _128.EventSealBatch; - toJSON(message: _128.EventSealBatch): unknown; - fromPartial(object: Partial<_128.EventSealBatch>): _128.EventSealBatch; - fromAmino(object: _128.EventSealBatchAmino): _128.EventSealBatch; - toAmino(message: _128.EventSealBatch): _128.EventSealBatchAmino; - fromAminoMsg(object: _128.EventSealBatchAminoMsg): _128.EventSealBatch; - fromProtoMsg(message: _128.EventSealBatchProtoMsg): _128.EventSealBatch; - toProto(message: _128.EventSealBatch): Uint8Array; - toProtoMsg(message: _128.EventSealBatch): _128.EventSealBatchProtoMsg; + typeUrl: string; + encode(message: _129.EventSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventSealBatch; + fromJSON(object: any): _129.EventSealBatch; + toJSON(message: _129.EventSealBatch): unknown; + fromPartial(object: Partial<_129.EventSealBatch>): _129.EventSealBatch; + fromAmino(object: _129.EventSealBatchAmino): _129.EventSealBatch; + toAmino(message: _129.EventSealBatch): _129.EventSealBatchAmino; + fromAminoMsg(object: _129.EventSealBatchAminoMsg): _129.EventSealBatch; + fromProtoMsg(message: _129.EventSealBatchProtoMsg): _129.EventSealBatch; + toProto(message: _129.EventSealBatch): Uint8Array; + toProtoMsg(message: _129.EventSealBatch): _129.EventSealBatchProtoMsg; }; EventAddCreditType: { - encode(message: _128.EventAddCreditType, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventAddCreditType; - fromJSON(object: any): _128.EventAddCreditType; - toJSON(message: _128.EventAddCreditType): unknown; - fromPartial(object: Partial<_128.EventAddCreditType>): _128.EventAddCreditType; - fromAmino(object: _128.EventAddCreditTypeAmino): _128.EventAddCreditType; - toAmino(message: _128.EventAddCreditType): _128.EventAddCreditTypeAmino; - fromAminoMsg(object: _128.EventAddCreditTypeAminoMsg): _128.EventAddCreditType; - fromProtoMsg(message: _128.EventAddCreditTypeProtoMsg): _128.EventAddCreditType; - toProto(message: _128.EventAddCreditType): Uint8Array; - toProtoMsg(message: _128.EventAddCreditType): _128.EventAddCreditTypeProtoMsg; + typeUrl: string; + encode(message: _129.EventAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventAddCreditType; + fromJSON(object: any): _129.EventAddCreditType; + toJSON(message: _129.EventAddCreditType): unknown; + fromPartial(object: Partial<_129.EventAddCreditType>): _129.EventAddCreditType; + fromAmino(object: _129.EventAddCreditTypeAmino): _129.EventAddCreditType; + toAmino(message: _129.EventAddCreditType): _129.EventAddCreditTypeAmino; + fromAminoMsg(object: _129.EventAddCreditTypeAminoMsg): _129.EventAddCreditType; + fromProtoMsg(message: _129.EventAddCreditTypeProtoMsg): _129.EventAddCreditType; + toProto(message: _129.EventAddCreditType): Uint8Array; + toProtoMsg(message: _129.EventAddCreditType): _129.EventAddCreditTypeProtoMsg; }; EventBridge: { - encode(message: _128.EventBridge, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventBridge; - fromJSON(object: any): _128.EventBridge; - toJSON(message: _128.EventBridge): unknown; - fromPartial(object: Partial<_128.EventBridge>): _128.EventBridge; - fromAmino(object: _128.EventBridgeAmino): _128.EventBridge; - toAmino(message: _128.EventBridge): _128.EventBridgeAmino; - fromAminoMsg(object: _128.EventBridgeAminoMsg): _128.EventBridge; - fromProtoMsg(message: _128.EventBridgeProtoMsg): _128.EventBridge; - toProto(message: _128.EventBridge): Uint8Array; - toProtoMsg(message: _128.EventBridge): _128.EventBridgeProtoMsg; + typeUrl: string; + encode(message: _129.EventBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventBridge; + fromJSON(object: any): _129.EventBridge; + toJSON(message: _129.EventBridge): unknown; + fromPartial(object: Partial<_129.EventBridge>): _129.EventBridge; + fromAmino(object: _129.EventBridgeAmino): _129.EventBridge; + toAmino(message: _129.EventBridge): _129.EventBridgeAmino; + fromAminoMsg(object: _129.EventBridgeAminoMsg): _129.EventBridge; + fromProtoMsg(message: _129.EventBridgeProtoMsg): _129.EventBridge; + toProto(message: _129.EventBridge): Uint8Array; + toProtoMsg(message: _129.EventBridge): _129.EventBridgeProtoMsg; }; EventBridgeReceive: { - encode(message: _128.EventBridgeReceive, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _128.EventBridgeReceive; - fromJSON(object: any): _128.EventBridgeReceive; - toJSON(message: _128.EventBridgeReceive): unknown; - fromPartial(object: Partial<_128.EventBridgeReceive>): _128.EventBridgeReceive; - fromAmino(object: _128.EventBridgeReceiveAmino): _128.EventBridgeReceive; - toAmino(message: _128.EventBridgeReceive): _128.EventBridgeReceiveAmino; - fromAminoMsg(object: _128.EventBridgeReceiveAminoMsg): _128.EventBridgeReceive; - fromProtoMsg(message: _128.EventBridgeReceiveProtoMsg): _128.EventBridgeReceive; - toProto(message: _128.EventBridgeReceive): Uint8Array; - toProtoMsg(message: _128.EventBridgeReceive): _128.EventBridgeReceiveProtoMsg; + typeUrl: string; + encode(message: _129.EventBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventBridgeReceive; + fromJSON(object: any): _129.EventBridgeReceive; + toJSON(message: _129.EventBridgeReceive): unknown; + fromPartial(object: Partial<_129.EventBridgeReceive>): _129.EventBridgeReceive; + fromAmino(object: _129.EventBridgeReceiveAmino): _129.EventBridgeReceive; + toAmino(message: _129.EventBridgeReceive): _129.EventBridgeReceiveAmino; + fromAminoMsg(object: _129.EventBridgeReceiveAminoMsg): _129.EventBridgeReceive; + fromProtoMsg(message: _129.EventBridgeReceiveProtoMsg): _129.EventBridgeReceive; + toProto(message: _129.EventBridgeReceive): Uint8Array; + toProtoMsg(message: _129.EventBridgeReceive): _129.EventBridgeReceiveProtoMsg; }; }; const v1alpha1: { - MsgClientImpl: typeof _268.MsgClientImpl; - QueryClientImpl: typeof _262.QueryClientImpl; + MsgClientImpl: typeof _269.MsgClientImpl; + QueryClientImpl: typeof _263.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _135.QueryClassesRequest | undefined): Promise<_135.QueryClassesResponse>; - classInfo(request: _135.QueryClassInfoRequest): Promise<_135.QueryClassInfoResponse>; - batches(request: _135.QueryBatchesRequest): Promise<_135.QueryBatchesResponse>; - batchInfo(request: _135.QueryBatchInfoRequest): Promise<_135.QueryBatchInfoResponse>; - balance(request: _135.QueryBalanceRequest): Promise<_135.QueryBalanceResponse>; - supply(request: _135.QuerySupplyRequest): Promise<_135.QuerySupplyResponse>; - creditTypes(request?: _135.QueryCreditTypesRequest | undefined): Promise<_135.QueryCreditTypesResponse>; - params(request?: _135.QueryParamsRequest | undefined): Promise<_135.QueryParamsResponse>; + classes(request?: _136.QueryClassesRequest | undefined): Promise<_136.QueryClassesResponse>; + classInfo(request: _136.QueryClassInfoRequest): Promise<_136.QueryClassInfoResponse>; + batches(request: _136.QueryBatchesRequest): Promise<_136.QueryBatchesResponse>; + batchInfo(request: _136.QueryBatchInfoRequest): Promise<_136.QueryBatchInfoResponse>; + balance(request: _136.QueryBalanceRequest): Promise<_136.QueryBalanceResponse>; + supply(request: _136.QuerySupplyRequest): Promise<_136.QuerySupplyResponse>; + creditTypes(request?: _136.QueryCreditTypesRequest | undefined): Promise<_136.QueryCreditTypesResponse>; + params(request?: _136.QueryParamsRequest | undefined): Promise<_136.QueryParamsResponse>; }; - LCDQueryClient: typeof _256.LCDQueryClient; + LCDQueryClient: typeof _257.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - createClass(value: _136.MsgCreateClass): { + createClass(value: _137.MsgCreateClass): { typeUrl: string; value: Uint8Array; }; - createBatch(value: _136.MsgCreateBatch): { + createBatch(value: _137.MsgCreateBatch): { typeUrl: string; value: Uint8Array; }; - send(value: _136.MsgSend): { + send(value: _137.MsgSend): { typeUrl: string; value: Uint8Array; }; - retire(value: _136.MsgRetire): { + retire(value: _137.MsgRetire): { typeUrl: string; value: Uint8Array; }; - cancel(value: _136.MsgCancel): { + cancel(value: _137.MsgCancel): { typeUrl: string; value: Uint8Array; }; - updateClassAdmin(value: _136.MsgUpdateClassAdmin): { + updateClassAdmin(value: _137.MsgUpdateClassAdmin): { typeUrl: string; value: Uint8Array; }; - updateClassIssuers(value: _136.MsgUpdateClassIssuers): { + updateClassIssuers(value: _137.MsgUpdateClassIssuers): { typeUrl: string; value: Uint8Array; }; - updateClassMetadata(value: _136.MsgUpdateClassMetadata): { + updateClassMetadata(value: _137.MsgUpdateClassMetadata): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - createClass(value: _136.MsgCreateClass): { + createClass(value: _137.MsgCreateClass): { typeUrl: string; - value: _136.MsgCreateClass; + value: _137.MsgCreateClass; }; - createBatch(value: _136.MsgCreateBatch): { + createBatch(value: _137.MsgCreateBatch): { typeUrl: string; - value: _136.MsgCreateBatch; + value: _137.MsgCreateBatch; }; - send(value: _136.MsgSend): { + send(value: _137.MsgSend): { typeUrl: string; - value: _136.MsgSend; + value: _137.MsgSend; }; - retire(value: _136.MsgRetire): { + retire(value: _137.MsgRetire): { typeUrl: string; - value: _136.MsgRetire; + value: _137.MsgRetire; }; - cancel(value: _136.MsgCancel): { + cancel(value: _137.MsgCancel): { typeUrl: string; - value: _136.MsgCancel; + value: _137.MsgCancel; }; - updateClassAdmin(value: _136.MsgUpdateClassAdmin): { + updateClassAdmin(value: _137.MsgUpdateClassAdmin): { typeUrl: string; - value: _136.MsgUpdateClassAdmin; + value: _137.MsgUpdateClassAdmin; }; - updateClassIssuers(value: _136.MsgUpdateClassIssuers): { + updateClassIssuers(value: _137.MsgUpdateClassIssuers): { typeUrl: string; - value: _136.MsgUpdateClassIssuers; + value: _137.MsgUpdateClassIssuers; }; - updateClassMetadata(value: _136.MsgUpdateClassMetadata): { + updateClassMetadata(value: _137.MsgUpdateClassMetadata): { typeUrl: string; - value: _136.MsgUpdateClassMetadata; + value: _137.MsgUpdateClassMetadata; }; }; toJSON: { - createClass(value: _136.MsgCreateClass): { + createClass(value: _137.MsgCreateClass): { typeUrl: string; value: unknown; }; - createBatch(value: _136.MsgCreateBatch): { + createBatch(value: _137.MsgCreateBatch): { typeUrl: string; value: unknown; }; - send(value: _136.MsgSend): { + send(value: _137.MsgSend): { typeUrl: string; value: unknown; }; - retire(value: _136.MsgRetire): { + retire(value: _137.MsgRetire): { typeUrl: string; value: unknown; }; - cancel(value: _136.MsgCancel): { + cancel(value: _137.MsgCancel): { typeUrl: string; value: unknown; }; - updateClassAdmin(value: _136.MsgUpdateClassAdmin): { + updateClassAdmin(value: _137.MsgUpdateClassAdmin): { typeUrl: string; value: unknown; }; - updateClassIssuers(value: _136.MsgUpdateClassIssuers): { + updateClassIssuers(value: _137.MsgUpdateClassIssuers): { typeUrl: string; value: unknown; }; - updateClassMetadata(value: _136.MsgUpdateClassMetadata): { + updateClassMetadata(value: _137.MsgUpdateClassMetadata): { typeUrl: string; value: unknown; }; @@ -4809,790 +5075,839 @@ export declare namespace regen { fromJSON: { createClass(value: any): { typeUrl: string; - value: _136.MsgCreateClass; + value: _137.MsgCreateClass; }; createBatch(value: any): { typeUrl: string; - value: _136.MsgCreateBatch; + value: _137.MsgCreateBatch; }; send(value: any): { typeUrl: string; - value: _136.MsgSend; + value: _137.MsgSend; }; retire(value: any): { typeUrl: string; - value: _136.MsgRetire; + value: _137.MsgRetire; }; cancel(value: any): { typeUrl: string; - value: _136.MsgCancel; + value: _137.MsgCancel; }; updateClassAdmin(value: any): { typeUrl: string; - value: _136.MsgUpdateClassAdmin; + value: _137.MsgUpdateClassAdmin; }; updateClassIssuers(value: any): { typeUrl: string; - value: _136.MsgUpdateClassIssuers; + value: _137.MsgUpdateClassIssuers; }; updateClassMetadata(value: any): { typeUrl: string; - value: _136.MsgUpdateClassMetadata; + value: _137.MsgUpdateClassMetadata; }; }; fromPartial: { - createClass(value: _136.MsgCreateClass): { + createClass(value: _137.MsgCreateClass): { typeUrl: string; - value: _136.MsgCreateClass; + value: _137.MsgCreateClass; }; - createBatch(value: _136.MsgCreateBatch): { + createBatch(value: _137.MsgCreateBatch): { typeUrl: string; - value: _136.MsgCreateBatch; + value: _137.MsgCreateBatch; }; - send(value: _136.MsgSend): { + send(value: _137.MsgSend): { typeUrl: string; - value: _136.MsgSend; + value: _137.MsgSend; }; - retire(value: _136.MsgRetire): { + retire(value: _137.MsgRetire): { typeUrl: string; - value: _136.MsgRetire; + value: _137.MsgRetire; }; - cancel(value: _136.MsgCancel): { + cancel(value: _137.MsgCancel): { typeUrl: string; - value: _136.MsgCancel; + value: _137.MsgCancel; }; - updateClassAdmin(value: _136.MsgUpdateClassAdmin): { + updateClassAdmin(value: _137.MsgUpdateClassAdmin): { typeUrl: string; - value: _136.MsgUpdateClassAdmin; + value: _137.MsgUpdateClassAdmin; }; - updateClassIssuers(value: _136.MsgUpdateClassIssuers): { + updateClassIssuers(value: _137.MsgUpdateClassIssuers): { typeUrl: string; - value: _136.MsgUpdateClassIssuers; + value: _137.MsgUpdateClassIssuers; }; - updateClassMetadata(value: _136.MsgUpdateClassMetadata): { + updateClassMetadata(value: _137.MsgUpdateClassMetadata): { typeUrl: string; - value: _136.MsgUpdateClassMetadata; + value: _137.MsgUpdateClassMetadata; }; }; }; AminoConverter: { "/regen.ecocredit.v1alpha1.MsgCreateClass": { aminoType: string; - toAmino: (message: _136.MsgCreateClass) => _136.MsgCreateClassAmino; - fromAmino: (object: _136.MsgCreateClassAmino) => _136.MsgCreateClass; + toAmino: (message: _137.MsgCreateClass) => _137.MsgCreateClassAmino; + fromAmino: (object: _137.MsgCreateClassAmino) => _137.MsgCreateClass; }; "/regen.ecocredit.v1alpha1.MsgCreateBatch": { aminoType: string; - toAmino: (message: _136.MsgCreateBatch) => _136.MsgCreateBatchAmino; - fromAmino: (object: _136.MsgCreateBatchAmino) => _136.MsgCreateBatch; + toAmino: (message: _137.MsgCreateBatch) => _137.MsgCreateBatchAmino; + fromAmino: (object: _137.MsgCreateBatchAmino) => _137.MsgCreateBatch; }; "/regen.ecocredit.v1alpha1.MsgSend": { aminoType: string; - toAmino: (message: _136.MsgSend) => _136.MsgSendAmino; - fromAmino: (object: _136.MsgSendAmino) => _136.MsgSend; + toAmino: (message: _137.MsgSend) => _137.MsgSendAmino; + fromAmino: (object: _137.MsgSendAmino) => _137.MsgSend; }; "/regen.ecocredit.v1alpha1.MsgRetire": { aminoType: string; - toAmino: (message: _136.MsgRetire) => _136.MsgRetireAmino; - fromAmino: (object: _136.MsgRetireAmino) => _136.MsgRetire; + toAmino: (message: _137.MsgRetire) => _137.MsgRetireAmino; + fromAmino: (object: _137.MsgRetireAmino) => _137.MsgRetire; }; "/regen.ecocredit.v1alpha1.MsgCancel": { aminoType: string; - toAmino: (message: _136.MsgCancel) => _136.MsgCancelAmino; - fromAmino: (object: _136.MsgCancelAmino) => _136.MsgCancel; + toAmino: (message: _137.MsgCancel) => _137.MsgCancelAmino; + fromAmino: (object: _137.MsgCancelAmino) => _137.MsgCancel; }; "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { aminoType: string; - toAmino: (message: _136.MsgUpdateClassAdmin) => _136.MsgUpdateClassAdminAmino; - fromAmino: (object: _136.MsgUpdateClassAdminAmino) => _136.MsgUpdateClassAdmin; + toAmino: (message: _137.MsgUpdateClassAdmin) => _137.MsgUpdateClassAdminAmino; + fromAmino: (object: _137.MsgUpdateClassAdminAmino) => _137.MsgUpdateClassAdmin; }; "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { aminoType: string; - toAmino: (message: _136.MsgUpdateClassIssuers) => _136.MsgUpdateClassIssuersAmino; - fromAmino: (object: _136.MsgUpdateClassIssuersAmino) => _136.MsgUpdateClassIssuers; + toAmino: (message: _137.MsgUpdateClassIssuers) => _137.MsgUpdateClassIssuersAmino; + fromAmino: (object: _137.MsgUpdateClassIssuersAmino) => _137.MsgUpdateClassIssuers; }; "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { aminoType: string; - toAmino: (message: _136.MsgUpdateClassMetadata) => _136.MsgUpdateClassMetadataAmino; - fromAmino: (object: _136.MsgUpdateClassMetadataAmino) => _136.MsgUpdateClassMetadata; + toAmino: (message: _137.MsgUpdateClassMetadata) => _137.MsgUpdateClassMetadataAmino; + fromAmino: (object: _137.MsgUpdateClassMetadataAmino) => _137.MsgUpdateClassMetadata; }; }; ClassInfo: { - encode(message: _137.ClassInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _137.ClassInfo; - fromJSON(object: any): _137.ClassInfo; - toJSON(message: _137.ClassInfo): unknown; - fromPartial(object: Partial<_137.ClassInfo>): _137.ClassInfo; - fromAmino(object: _137.ClassInfoAmino): _137.ClassInfo; - toAmino(message: _137.ClassInfo): _137.ClassInfoAmino; - fromAminoMsg(object: _137.ClassInfoAminoMsg): _137.ClassInfo; - fromProtoMsg(message: _137.ClassInfoProtoMsg): _137.ClassInfo; - toProto(message: _137.ClassInfo): Uint8Array; - toProtoMsg(message: _137.ClassInfo): _137.ClassInfoProtoMsg; + typeUrl: string; + encode(message: _138.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.ClassInfo; + fromJSON(object: any): _138.ClassInfo; + toJSON(message: _138.ClassInfo): unknown; + fromPartial(object: Partial<_138.ClassInfo>): _138.ClassInfo; + fromAmino(object: _138.ClassInfoAmino): _138.ClassInfo; + toAmino(message: _138.ClassInfo): _138.ClassInfoAmino; + fromAminoMsg(object: _138.ClassInfoAminoMsg): _138.ClassInfo; + fromProtoMsg(message: _138.ClassInfoProtoMsg): _138.ClassInfo; + toProto(message: _138.ClassInfo): Uint8Array; + toProtoMsg(message: _138.ClassInfo): _138.ClassInfoProtoMsg; }; BatchInfo: { - encode(message: _137.BatchInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _137.BatchInfo; - fromJSON(object: any): _137.BatchInfo; - toJSON(message: _137.BatchInfo): unknown; - fromPartial(object: Partial<_137.BatchInfo>): _137.BatchInfo; - fromAmino(object: _137.BatchInfoAmino): _137.BatchInfo; - toAmino(message: _137.BatchInfo): _137.BatchInfoAmino; - fromAminoMsg(object: _137.BatchInfoAminoMsg): _137.BatchInfo; - fromProtoMsg(message: _137.BatchInfoProtoMsg): _137.BatchInfo; - toProto(message: _137.BatchInfo): Uint8Array; - toProtoMsg(message: _137.BatchInfo): _137.BatchInfoProtoMsg; + typeUrl: string; + encode(message: _138.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.BatchInfo; + fromJSON(object: any): _138.BatchInfo; + toJSON(message: _138.BatchInfo): unknown; + fromPartial(object: Partial<_138.BatchInfo>): _138.BatchInfo; + fromAmino(object: _138.BatchInfoAmino): _138.BatchInfo; + toAmino(message: _138.BatchInfo): _138.BatchInfoAmino; + fromAminoMsg(object: _138.BatchInfoAminoMsg): _138.BatchInfo; + fromProtoMsg(message: _138.BatchInfoProtoMsg): _138.BatchInfo; + toProto(message: _138.BatchInfo): Uint8Array; + toProtoMsg(message: _138.BatchInfo): _138.BatchInfoProtoMsg; }; Params: { - encode(message: _137.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _137.Params; - fromJSON(object: any): _137.Params; - toJSON(message: _137.Params): unknown; - fromPartial(object: Partial<_137.Params>): _137.Params; - fromAmino(object: _137.ParamsAmino): _137.Params; - toAmino(message: _137.Params): _137.ParamsAmino; - fromAminoMsg(object: _137.ParamsAminoMsg): _137.Params; - fromProtoMsg(message: _137.ParamsProtoMsg): _137.Params; - toProto(message: _137.Params): Uint8Array; - toProtoMsg(message: _137.Params): _137.ParamsProtoMsg; + typeUrl: string; + encode(message: _138.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.Params; + fromJSON(object: any): _138.Params; + toJSON(message: _138.Params): unknown; + fromPartial(object: Partial<_138.Params>): _138.Params; + fromAmino(object: _138.ParamsAmino): _138.Params; + toAmino(message: _138.Params): _138.ParamsAmino; + fromAminoMsg(object: _138.ParamsAminoMsg): _138.Params; + fromProtoMsg(message: _138.ParamsProtoMsg): _138.Params; + toProto(message: _138.Params): Uint8Array; + toProtoMsg(message: _138.Params): _138.ParamsProtoMsg; }; CreditType: { - encode(message: _137.CreditType, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _137.CreditType; - fromJSON(object: any): _137.CreditType; - toJSON(message: _137.CreditType): unknown; - fromPartial(object: Partial<_137.CreditType>): _137.CreditType; - fromAmino(object: _137.CreditTypeAmino): _137.CreditType; - toAmino(message: _137.CreditType): _137.CreditTypeAmino; - fromAminoMsg(object: _137.CreditTypeAminoMsg): _137.CreditType; - fromProtoMsg(message: _137.CreditTypeProtoMsg): _137.CreditType; - toProto(message: _137.CreditType): Uint8Array; - toProtoMsg(message: _137.CreditType): _137.CreditTypeProtoMsg; + typeUrl: string; + encode(message: _138.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.CreditType; + fromJSON(object: any): _138.CreditType; + toJSON(message: _138.CreditType): unknown; + fromPartial(object: Partial<_138.CreditType>): _138.CreditType; + fromAmino(object: _138.CreditTypeAmino): _138.CreditType; + toAmino(message: _138.CreditType): _138.CreditTypeAmino; + fromAminoMsg(object: _138.CreditTypeAminoMsg): _138.CreditType; + fromProtoMsg(message: _138.CreditTypeProtoMsg): _138.CreditType; + toProto(message: _138.CreditType): Uint8Array; + toProtoMsg(message: _138.CreditType): _138.CreditTypeProtoMsg; }; CreditTypeSeq: { - encode(message: _137.CreditTypeSeq, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _137.CreditTypeSeq; - fromJSON(object: any): _137.CreditTypeSeq; - toJSON(message: _137.CreditTypeSeq): unknown; - fromPartial(object: Partial<_137.CreditTypeSeq>): _137.CreditTypeSeq; - fromAmino(object: _137.CreditTypeSeqAmino): _137.CreditTypeSeq; - toAmino(message: _137.CreditTypeSeq): _137.CreditTypeSeqAmino; - fromAminoMsg(object: _137.CreditTypeSeqAminoMsg): _137.CreditTypeSeq; - fromProtoMsg(message: _137.CreditTypeSeqProtoMsg): _137.CreditTypeSeq; - toProto(message: _137.CreditTypeSeq): Uint8Array; - toProtoMsg(message: _137.CreditTypeSeq): _137.CreditTypeSeqProtoMsg; + typeUrl: string; + encode(message: _138.CreditTypeSeq, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.CreditTypeSeq; + fromJSON(object: any): _138.CreditTypeSeq; + toJSON(message: _138.CreditTypeSeq): unknown; + fromPartial(object: Partial<_138.CreditTypeSeq>): _138.CreditTypeSeq; + fromAmino(object: _138.CreditTypeSeqAmino): _138.CreditTypeSeq; + toAmino(message: _138.CreditTypeSeq): _138.CreditTypeSeqAmino; + fromAminoMsg(object: _138.CreditTypeSeqAminoMsg): _138.CreditTypeSeq; + fromProtoMsg(message: _138.CreditTypeSeqProtoMsg): _138.CreditTypeSeq; + toProto(message: _138.CreditTypeSeq): Uint8Array; + toProtoMsg(message: _138.CreditTypeSeq): _138.CreditTypeSeqProtoMsg; }; MsgCreateClass: { - encode(message: _136.MsgCreateClass, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCreateClass; - fromJSON(object: any): _136.MsgCreateClass; - toJSON(message: _136.MsgCreateClass): unknown; - fromPartial(object: Partial<_136.MsgCreateClass>): _136.MsgCreateClass; - fromAmino(object: _136.MsgCreateClassAmino): _136.MsgCreateClass; - toAmino(message: _136.MsgCreateClass): _136.MsgCreateClassAmino; - fromAminoMsg(object: _136.MsgCreateClassAminoMsg): _136.MsgCreateClass; - fromProtoMsg(message: _136.MsgCreateClassProtoMsg): _136.MsgCreateClass; - toProto(message: _136.MsgCreateClass): Uint8Array; - toProtoMsg(message: _136.MsgCreateClass): _136.MsgCreateClassProtoMsg; + typeUrl: string; + encode(message: _137.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateClass; + fromJSON(object: any): _137.MsgCreateClass; + toJSON(message: _137.MsgCreateClass): unknown; + fromPartial(object: Partial<_137.MsgCreateClass>): _137.MsgCreateClass; + fromAmino(object: _137.MsgCreateClassAmino): _137.MsgCreateClass; + toAmino(message: _137.MsgCreateClass): _137.MsgCreateClassAmino; + fromAminoMsg(object: _137.MsgCreateClassAminoMsg): _137.MsgCreateClass; + fromProtoMsg(message: _137.MsgCreateClassProtoMsg): _137.MsgCreateClass; + toProto(message: _137.MsgCreateClass): Uint8Array; + toProtoMsg(message: _137.MsgCreateClass): _137.MsgCreateClassProtoMsg; }; MsgCreateClassResponse: { - encode(message: _136.MsgCreateClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCreateClassResponse; - fromJSON(object: any): _136.MsgCreateClassResponse; - toJSON(message: _136.MsgCreateClassResponse): unknown; - fromPartial(object: Partial<_136.MsgCreateClassResponse>): _136.MsgCreateClassResponse; - fromAmino(object: _136.MsgCreateClassResponseAmino): _136.MsgCreateClassResponse; - toAmino(message: _136.MsgCreateClassResponse): _136.MsgCreateClassResponseAmino; - fromAminoMsg(object: _136.MsgCreateClassResponseAminoMsg): _136.MsgCreateClassResponse; - fromProtoMsg(message: _136.MsgCreateClassResponseProtoMsg): _136.MsgCreateClassResponse; - toProto(message: _136.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _136.MsgCreateClassResponse): _136.MsgCreateClassResponseProtoMsg; + typeUrl: string; + encode(message: _137.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateClassResponse; + fromJSON(object: any): _137.MsgCreateClassResponse; + toJSON(message: _137.MsgCreateClassResponse): unknown; + fromPartial(object: Partial<_137.MsgCreateClassResponse>): _137.MsgCreateClassResponse; + fromAmino(object: _137.MsgCreateClassResponseAmino): _137.MsgCreateClassResponse; + toAmino(message: _137.MsgCreateClassResponse): _137.MsgCreateClassResponseAmino; + fromAminoMsg(object: _137.MsgCreateClassResponseAminoMsg): _137.MsgCreateClassResponse; + fromProtoMsg(message: _137.MsgCreateClassResponseProtoMsg): _137.MsgCreateClassResponse; + toProto(message: _137.MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: _137.MsgCreateClassResponse): _137.MsgCreateClassResponseProtoMsg; }; MsgCreateBatch: { - encode(message: _136.MsgCreateBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCreateBatch; - fromJSON(object: any): _136.MsgCreateBatch; - toJSON(message: _136.MsgCreateBatch): unknown; - fromPartial(object: Partial<_136.MsgCreateBatch>): _136.MsgCreateBatch; - fromAmino(object: _136.MsgCreateBatchAmino): _136.MsgCreateBatch; - toAmino(message: _136.MsgCreateBatch): _136.MsgCreateBatchAmino; - fromAminoMsg(object: _136.MsgCreateBatchAminoMsg): _136.MsgCreateBatch; - fromProtoMsg(message: _136.MsgCreateBatchProtoMsg): _136.MsgCreateBatch; - toProto(message: _136.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _136.MsgCreateBatch): _136.MsgCreateBatchProtoMsg; + typeUrl: string; + encode(message: _137.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatch; + fromJSON(object: any): _137.MsgCreateBatch; + toJSON(message: _137.MsgCreateBatch): unknown; + fromPartial(object: Partial<_137.MsgCreateBatch>): _137.MsgCreateBatch; + fromAmino(object: _137.MsgCreateBatchAmino): _137.MsgCreateBatch; + toAmino(message: _137.MsgCreateBatch): _137.MsgCreateBatchAmino; + fromAminoMsg(object: _137.MsgCreateBatchAminoMsg): _137.MsgCreateBatch; + fromProtoMsg(message: _137.MsgCreateBatchProtoMsg): _137.MsgCreateBatch; + toProto(message: _137.MsgCreateBatch): Uint8Array; + toProtoMsg(message: _137.MsgCreateBatch): _137.MsgCreateBatchProtoMsg; }; MsgCreateBatch_BatchIssuance: { - encode(message: _136.MsgCreateBatch_BatchIssuance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCreateBatch_BatchIssuance; - fromJSON(object: any): _136.MsgCreateBatch_BatchIssuance; - toJSON(message: _136.MsgCreateBatch_BatchIssuance): unknown; - fromPartial(object: Partial<_136.MsgCreateBatch_BatchIssuance>): _136.MsgCreateBatch_BatchIssuance; - fromAmino(object: _136.MsgCreateBatch_BatchIssuanceAmino): _136.MsgCreateBatch_BatchIssuance; - toAmino(message: _136.MsgCreateBatch_BatchIssuance): _136.MsgCreateBatch_BatchIssuanceAmino; - fromAminoMsg(object: _136.MsgCreateBatch_BatchIssuanceAminoMsg): _136.MsgCreateBatch_BatchIssuance; - fromProtoMsg(message: _136.MsgCreateBatch_BatchIssuanceProtoMsg): _136.MsgCreateBatch_BatchIssuance; - toProto(message: _136.MsgCreateBatch_BatchIssuance): Uint8Array; - toProtoMsg(message: _136.MsgCreateBatch_BatchIssuance): _136.MsgCreateBatch_BatchIssuanceProtoMsg; + typeUrl: string; + encode(message: _137.MsgCreateBatch_BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatch_BatchIssuance; + fromJSON(object: any): _137.MsgCreateBatch_BatchIssuance; + toJSON(message: _137.MsgCreateBatch_BatchIssuance): unknown; + fromPartial(object: Partial<_137.MsgCreateBatch_BatchIssuance>): _137.MsgCreateBatch_BatchIssuance; + fromAmino(object: _137.MsgCreateBatch_BatchIssuanceAmino): _137.MsgCreateBatch_BatchIssuance; + toAmino(message: _137.MsgCreateBatch_BatchIssuance): _137.MsgCreateBatch_BatchIssuanceAmino; + fromAminoMsg(object: _137.MsgCreateBatch_BatchIssuanceAminoMsg): _137.MsgCreateBatch_BatchIssuance; + fromProtoMsg(message: _137.MsgCreateBatch_BatchIssuanceProtoMsg): _137.MsgCreateBatch_BatchIssuance; + toProto(message: _137.MsgCreateBatch_BatchIssuance): Uint8Array; + toProtoMsg(message: _137.MsgCreateBatch_BatchIssuance): _137.MsgCreateBatch_BatchIssuanceProtoMsg; }; MsgCreateBatchResponse: { - encode(message: _136.MsgCreateBatchResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCreateBatchResponse; - fromJSON(object: any): _136.MsgCreateBatchResponse; - toJSON(message: _136.MsgCreateBatchResponse): unknown; - fromPartial(object: Partial<_136.MsgCreateBatchResponse>): _136.MsgCreateBatchResponse; - fromAmino(object: _136.MsgCreateBatchResponseAmino): _136.MsgCreateBatchResponse; - toAmino(message: _136.MsgCreateBatchResponse): _136.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _136.MsgCreateBatchResponseAminoMsg): _136.MsgCreateBatchResponse; - fromProtoMsg(message: _136.MsgCreateBatchResponseProtoMsg): _136.MsgCreateBatchResponse; - toProto(message: _136.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _136.MsgCreateBatchResponse): _136.MsgCreateBatchResponseProtoMsg; + typeUrl: string; + encode(message: _137.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatchResponse; + fromJSON(object: any): _137.MsgCreateBatchResponse; + toJSON(message: _137.MsgCreateBatchResponse): unknown; + fromPartial(object: Partial<_137.MsgCreateBatchResponse>): _137.MsgCreateBatchResponse; + fromAmino(object: _137.MsgCreateBatchResponseAmino): _137.MsgCreateBatchResponse; + toAmino(message: _137.MsgCreateBatchResponse): _137.MsgCreateBatchResponseAmino; + fromAminoMsg(object: _137.MsgCreateBatchResponseAminoMsg): _137.MsgCreateBatchResponse; + fromProtoMsg(message: _137.MsgCreateBatchResponseProtoMsg): _137.MsgCreateBatchResponse; + toProto(message: _137.MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: _137.MsgCreateBatchResponse): _137.MsgCreateBatchResponseProtoMsg; }; MsgSend: { - encode(message: _136.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgSend; - fromJSON(object: any): _136.MsgSend; - toJSON(message: _136.MsgSend): unknown; - fromPartial(object: Partial<_136.MsgSend>): _136.MsgSend; - fromAmino(object: _136.MsgSendAmino): _136.MsgSend; - toAmino(message: _136.MsgSend): _136.MsgSendAmino; - fromAminoMsg(object: _136.MsgSendAminoMsg): _136.MsgSend; - fromProtoMsg(message: _136.MsgSendProtoMsg): _136.MsgSend; - toProto(message: _136.MsgSend): Uint8Array; - toProtoMsg(message: _136.MsgSend): _136.MsgSendProtoMsg; + typeUrl: string; + encode(message: _137.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSend; + fromJSON(object: any): _137.MsgSend; + toJSON(message: _137.MsgSend): unknown; + fromPartial(object: Partial<_137.MsgSend>): _137.MsgSend; + fromAmino(object: _137.MsgSendAmino): _137.MsgSend; + toAmino(message: _137.MsgSend): _137.MsgSendAmino; + fromAminoMsg(object: _137.MsgSendAminoMsg): _137.MsgSend; + fromProtoMsg(message: _137.MsgSendProtoMsg): _137.MsgSend; + toProto(message: _137.MsgSend): Uint8Array; + toProtoMsg(message: _137.MsgSend): _137.MsgSendProtoMsg; }; MsgSend_SendCredits: { - encode(message: _136.MsgSend_SendCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgSend_SendCredits; - fromJSON(object: any): _136.MsgSend_SendCredits; - toJSON(message: _136.MsgSend_SendCredits): unknown; - fromPartial(object: Partial<_136.MsgSend_SendCredits>): _136.MsgSend_SendCredits; - fromAmino(object: _136.MsgSend_SendCreditsAmino): _136.MsgSend_SendCredits; - toAmino(message: _136.MsgSend_SendCredits): _136.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _136.MsgSend_SendCreditsAminoMsg): _136.MsgSend_SendCredits; - fromProtoMsg(message: _136.MsgSend_SendCreditsProtoMsg): _136.MsgSend_SendCredits; - toProto(message: _136.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _136.MsgSend_SendCredits): _136.MsgSend_SendCreditsProtoMsg; + typeUrl: string; + encode(message: _137.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSend_SendCredits; + fromJSON(object: any): _137.MsgSend_SendCredits; + toJSON(message: _137.MsgSend_SendCredits): unknown; + fromPartial(object: Partial<_137.MsgSend_SendCredits>): _137.MsgSend_SendCredits; + fromAmino(object: _137.MsgSend_SendCreditsAmino): _137.MsgSend_SendCredits; + toAmino(message: _137.MsgSend_SendCredits): _137.MsgSend_SendCreditsAmino; + fromAminoMsg(object: _137.MsgSend_SendCreditsAminoMsg): _137.MsgSend_SendCredits; + fromProtoMsg(message: _137.MsgSend_SendCreditsProtoMsg): _137.MsgSend_SendCredits; + toProto(message: _137.MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: _137.MsgSend_SendCredits): _137.MsgSend_SendCreditsProtoMsg; }; MsgSendResponse: { - encode(_: _136.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgSendResponse; - fromJSON(_: any): _136.MsgSendResponse; - toJSON(_: _136.MsgSendResponse): unknown; - fromPartial(_: Partial<_136.MsgSendResponse>): _136.MsgSendResponse; - fromAmino(_: _136.MsgSendResponseAmino): _136.MsgSendResponse; - toAmino(_: _136.MsgSendResponse): _136.MsgSendResponseAmino; - fromAminoMsg(object: _136.MsgSendResponseAminoMsg): _136.MsgSendResponse; - fromProtoMsg(message: _136.MsgSendResponseProtoMsg): _136.MsgSendResponse; - toProto(message: _136.MsgSendResponse): Uint8Array; - toProtoMsg(message: _136.MsgSendResponse): _136.MsgSendResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSendResponse; + fromJSON(_: any): _137.MsgSendResponse; + toJSON(_: _137.MsgSendResponse): unknown; + fromPartial(_: Partial<_137.MsgSendResponse>): _137.MsgSendResponse; + fromAmino(_: _137.MsgSendResponseAmino): _137.MsgSendResponse; + toAmino(_: _137.MsgSendResponse): _137.MsgSendResponseAmino; + fromAminoMsg(object: _137.MsgSendResponseAminoMsg): _137.MsgSendResponse; + fromProtoMsg(message: _137.MsgSendResponseProtoMsg): _137.MsgSendResponse; + toProto(message: _137.MsgSendResponse): Uint8Array; + toProtoMsg(message: _137.MsgSendResponse): _137.MsgSendResponseProtoMsg; }; MsgRetire: { - encode(message: _136.MsgRetire, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgRetire; - fromJSON(object: any): _136.MsgRetire; - toJSON(message: _136.MsgRetire): unknown; - fromPartial(object: Partial<_136.MsgRetire>): _136.MsgRetire; - fromAmino(object: _136.MsgRetireAmino): _136.MsgRetire; - toAmino(message: _136.MsgRetire): _136.MsgRetireAmino; - fromAminoMsg(object: _136.MsgRetireAminoMsg): _136.MsgRetire; - fromProtoMsg(message: _136.MsgRetireProtoMsg): _136.MsgRetire; - toProto(message: _136.MsgRetire): Uint8Array; - toProtoMsg(message: _136.MsgRetire): _136.MsgRetireProtoMsg; + typeUrl: string; + encode(message: _137.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetire; + fromJSON(object: any): _137.MsgRetire; + toJSON(message: _137.MsgRetire): unknown; + fromPartial(object: Partial<_137.MsgRetire>): _137.MsgRetire; + fromAmino(object: _137.MsgRetireAmino): _137.MsgRetire; + toAmino(message: _137.MsgRetire): _137.MsgRetireAmino; + fromAminoMsg(object: _137.MsgRetireAminoMsg): _137.MsgRetire; + fromProtoMsg(message: _137.MsgRetireProtoMsg): _137.MsgRetire; + toProto(message: _137.MsgRetire): Uint8Array; + toProtoMsg(message: _137.MsgRetire): _137.MsgRetireProtoMsg; }; MsgRetire_RetireCredits: { - encode(message: _136.MsgRetire_RetireCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgRetire_RetireCredits; - fromJSON(object: any): _136.MsgRetire_RetireCredits; - toJSON(message: _136.MsgRetire_RetireCredits): unknown; - fromPartial(object: Partial<_136.MsgRetire_RetireCredits>): _136.MsgRetire_RetireCredits; - fromAmino(object: _136.MsgRetire_RetireCreditsAmino): _136.MsgRetire_RetireCredits; - toAmino(message: _136.MsgRetire_RetireCredits): _136.MsgRetire_RetireCreditsAmino; - fromAminoMsg(object: _136.MsgRetire_RetireCreditsAminoMsg): _136.MsgRetire_RetireCredits; - fromProtoMsg(message: _136.MsgRetire_RetireCreditsProtoMsg): _136.MsgRetire_RetireCredits; - toProto(message: _136.MsgRetire_RetireCredits): Uint8Array; - toProtoMsg(message: _136.MsgRetire_RetireCredits): _136.MsgRetire_RetireCreditsProtoMsg; + typeUrl: string; + encode(message: _137.MsgRetire_RetireCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetire_RetireCredits; + fromJSON(object: any): _137.MsgRetire_RetireCredits; + toJSON(message: _137.MsgRetire_RetireCredits): unknown; + fromPartial(object: Partial<_137.MsgRetire_RetireCredits>): _137.MsgRetire_RetireCredits; + fromAmino(object: _137.MsgRetire_RetireCreditsAmino): _137.MsgRetire_RetireCredits; + toAmino(message: _137.MsgRetire_RetireCredits): _137.MsgRetire_RetireCreditsAmino; + fromAminoMsg(object: _137.MsgRetire_RetireCreditsAminoMsg): _137.MsgRetire_RetireCredits; + fromProtoMsg(message: _137.MsgRetire_RetireCreditsProtoMsg): _137.MsgRetire_RetireCredits; + toProto(message: _137.MsgRetire_RetireCredits): Uint8Array; + toProtoMsg(message: _137.MsgRetire_RetireCredits): _137.MsgRetire_RetireCreditsProtoMsg; }; MsgRetireResponse: { - encode(_: _136.MsgRetireResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgRetireResponse; - fromJSON(_: any): _136.MsgRetireResponse; - toJSON(_: _136.MsgRetireResponse): unknown; - fromPartial(_: Partial<_136.MsgRetireResponse>): _136.MsgRetireResponse; - fromAmino(_: _136.MsgRetireResponseAmino): _136.MsgRetireResponse; - toAmino(_: _136.MsgRetireResponse): _136.MsgRetireResponseAmino; - fromAminoMsg(object: _136.MsgRetireResponseAminoMsg): _136.MsgRetireResponse; - fromProtoMsg(message: _136.MsgRetireResponseProtoMsg): _136.MsgRetireResponse; - toProto(message: _136.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _136.MsgRetireResponse): _136.MsgRetireResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetireResponse; + fromJSON(_: any): _137.MsgRetireResponse; + toJSON(_: _137.MsgRetireResponse): unknown; + fromPartial(_: Partial<_137.MsgRetireResponse>): _137.MsgRetireResponse; + fromAmino(_: _137.MsgRetireResponseAmino): _137.MsgRetireResponse; + toAmino(_: _137.MsgRetireResponse): _137.MsgRetireResponseAmino; + fromAminoMsg(object: _137.MsgRetireResponseAminoMsg): _137.MsgRetireResponse; + fromProtoMsg(message: _137.MsgRetireResponseProtoMsg): _137.MsgRetireResponse; + toProto(message: _137.MsgRetireResponse): Uint8Array; + toProtoMsg(message: _137.MsgRetireResponse): _137.MsgRetireResponseProtoMsg; }; MsgCancel: { - encode(message: _136.MsgCancel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCancel; - fromJSON(object: any): _136.MsgCancel; - toJSON(message: _136.MsgCancel): unknown; - fromPartial(object: Partial<_136.MsgCancel>): _136.MsgCancel; - fromAmino(object: _136.MsgCancelAmino): _136.MsgCancel; - toAmino(message: _136.MsgCancel): _136.MsgCancelAmino; - fromAminoMsg(object: _136.MsgCancelAminoMsg): _136.MsgCancel; - fromProtoMsg(message: _136.MsgCancelProtoMsg): _136.MsgCancel; - toProto(message: _136.MsgCancel): Uint8Array; - toProtoMsg(message: _136.MsgCancel): _136.MsgCancelProtoMsg; + typeUrl: string; + encode(message: _137.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancel; + fromJSON(object: any): _137.MsgCancel; + toJSON(message: _137.MsgCancel): unknown; + fromPartial(object: Partial<_137.MsgCancel>): _137.MsgCancel; + fromAmino(object: _137.MsgCancelAmino): _137.MsgCancel; + toAmino(message: _137.MsgCancel): _137.MsgCancelAmino; + fromAminoMsg(object: _137.MsgCancelAminoMsg): _137.MsgCancel; + fromProtoMsg(message: _137.MsgCancelProtoMsg): _137.MsgCancel; + toProto(message: _137.MsgCancel): Uint8Array; + toProtoMsg(message: _137.MsgCancel): _137.MsgCancelProtoMsg; }; MsgCancel_CancelCredits: { - encode(message: _136.MsgCancel_CancelCredits, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCancel_CancelCredits; - fromJSON(object: any): _136.MsgCancel_CancelCredits; - toJSON(message: _136.MsgCancel_CancelCredits): unknown; - fromPartial(object: Partial<_136.MsgCancel_CancelCredits>): _136.MsgCancel_CancelCredits; - fromAmino(object: _136.MsgCancel_CancelCreditsAmino): _136.MsgCancel_CancelCredits; - toAmino(message: _136.MsgCancel_CancelCredits): _136.MsgCancel_CancelCreditsAmino; - fromAminoMsg(object: _136.MsgCancel_CancelCreditsAminoMsg): _136.MsgCancel_CancelCredits; - fromProtoMsg(message: _136.MsgCancel_CancelCreditsProtoMsg): _136.MsgCancel_CancelCredits; - toProto(message: _136.MsgCancel_CancelCredits): Uint8Array; - toProtoMsg(message: _136.MsgCancel_CancelCredits): _136.MsgCancel_CancelCreditsProtoMsg; + typeUrl: string; + encode(message: _137.MsgCancel_CancelCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancel_CancelCredits; + fromJSON(object: any): _137.MsgCancel_CancelCredits; + toJSON(message: _137.MsgCancel_CancelCredits): unknown; + fromPartial(object: Partial<_137.MsgCancel_CancelCredits>): _137.MsgCancel_CancelCredits; + fromAmino(object: _137.MsgCancel_CancelCreditsAmino): _137.MsgCancel_CancelCredits; + toAmino(message: _137.MsgCancel_CancelCredits): _137.MsgCancel_CancelCreditsAmino; + fromAminoMsg(object: _137.MsgCancel_CancelCreditsAminoMsg): _137.MsgCancel_CancelCredits; + fromProtoMsg(message: _137.MsgCancel_CancelCreditsProtoMsg): _137.MsgCancel_CancelCredits; + toProto(message: _137.MsgCancel_CancelCredits): Uint8Array; + toProtoMsg(message: _137.MsgCancel_CancelCredits): _137.MsgCancel_CancelCreditsProtoMsg; }; MsgCancelResponse: { - encode(_: _136.MsgCancelResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgCancelResponse; - fromJSON(_: any): _136.MsgCancelResponse; - toJSON(_: _136.MsgCancelResponse): unknown; - fromPartial(_: Partial<_136.MsgCancelResponse>): _136.MsgCancelResponse; - fromAmino(_: _136.MsgCancelResponseAmino): _136.MsgCancelResponse; - toAmino(_: _136.MsgCancelResponse): _136.MsgCancelResponseAmino; - fromAminoMsg(object: _136.MsgCancelResponseAminoMsg): _136.MsgCancelResponse; - fromProtoMsg(message: _136.MsgCancelResponseProtoMsg): _136.MsgCancelResponse; - toProto(message: _136.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _136.MsgCancelResponse): _136.MsgCancelResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancelResponse; + fromJSON(_: any): _137.MsgCancelResponse; + toJSON(_: _137.MsgCancelResponse): unknown; + fromPartial(_: Partial<_137.MsgCancelResponse>): _137.MsgCancelResponse; + fromAmino(_: _137.MsgCancelResponseAmino): _137.MsgCancelResponse; + toAmino(_: _137.MsgCancelResponse): _137.MsgCancelResponseAmino; + fromAminoMsg(object: _137.MsgCancelResponseAminoMsg): _137.MsgCancelResponse; + fromProtoMsg(message: _137.MsgCancelResponseProtoMsg): _137.MsgCancelResponse; + toProto(message: _137.MsgCancelResponse): Uint8Array; + toProtoMsg(message: _137.MsgCancelResponse): _137.MsgCancelResponseProtoMsg; }; MsgUpdateClassAdmin: { - encode(message: _136.MsgUpdateClassAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassAdmin; - fromJSON(object: any): _136.MsgUpdateClassAdmin; - toJSON(message: _136.MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial<_136.MsgUpdateClassAdmin>): _136.MsgUpdateClassAdmin; - fromAmino(object: _136.MsgUpdateClassAdminAmino): _136.MsgUpdateClassAdmin; - toAmino(message: _136.MsgUpdateClassAdmin): _136.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _136.MsgUpdateClassAdminAminoMsg): _136.MsgUpdateClassAdmin; - fromProtoMsg(message: _136.MsgUpdateClassAdminProtoMsg): _136.MsgUpdateClassAdmin; - toProto(message: _136.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassAdmin): _136.MsgUpdateClassAdminProtoMsg; + typeUrl: string; + encode(message: _137.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassAdmin; + fromJSON(object: any): _137.MsgUpdateClassAdmin; + toJSON(message: _137.MsgUpdateClassAdmin): unknown; + fromPartial(object: Partial<_137.MsgUpdateClassAdmin>): _137.MsgUpdateClassAdmin; + fromAmino(object: _137.MsgUpdateClassAdminAmino): _137.MsgUpdateClassAdmin; + toAmino(message: _137.MsgUpdateClassAdmin): _137.MsgUpdateClassAdminAmino; + fromAminoMsg(object: _137.MsgUpdateClassAdminAminoMsg): _137.MsgUpdateClassAdmin; + fromProtoMsg(message: _137.MsgUpdateClassAdminProtoMsg): _137.MsgUpdateClassAdmin; + toProto(message: _137.MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassAdmin): _137.MsgUpdateClassAdminProtoMsg; }; MsgUpdateClassAdminResponse: { - encode(_: _136.MsgUpdateClassAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassAdminResponse; - fromJSON(_: any): _136.MsgUpdateClassAdminResponse; - toJSON(_: _136.MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial<_136.MsgUpdateClassAdminResponse>): _136.MsgUpdateClassAdminResponse; - fromAmino(_: _136.MsgUpdateClassAdminResponseAmino): _136.MsgUpdateClassAdminResponse; - toAmino(_: _136.MsgUpdateClassAdminResponse): _136.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _136.MsgUpdateClassAdminResponseAminoMsg): _136.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _136.MsgUpdateClassAdminResponseProtoMsg): _136.MsgUpdateClassAdminResponse; - toProto(message: _136.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassAdminResponse): _136.MsgUpdateClassAdminResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassAdminResponse; + fromJSON(_: any): _137.MsgUpdateClassAdminResponse; + toJSON(_: _137.MsgUpdateClassAdminResponse): unknown; + fromPartial(_: Partial<_137.MsgUpdateClassAdminResponse>): _137.MsgUpdateClassAdminResponse; + fromAmino(_: _137.MsgUpdateClassAdminResponseAmino): _137.MsgUpdateClassAdminResponse; + toAmino(_: _137.MsgUpdateClassAdminResponse): _137.MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: _137.MsgUpdateClassAdminResponseAminoMsg): _137.MsgUpdateClassAdminResponse; + fromProtoMsg(message: _137.MsgUpdateClassAdminResponseProtoMsg): _137.MsgUpdateClassAdminResponse; + toProto(message: _137.MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassAdminResponse): _137.MsgUpdateClassAdminResponseProtoMsg; }; MsgUpdateClassIssuers: { - encode(message: _136.MsgUpdateClassIssuers, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassIssuers; - fromJSON(object: any): _136.MsgUpdateClassIssuers; - toJSON(message: _136.MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial<_136.MsgUpdateClassIssuers>): _136.MsgUpdateClassIssuers; - fromAmino(object: _136.MsgUpdateClassIssuersAmino): _136.MsgUpdateClassIssuers; - toAmino(message: _136.MsgUpdateClassIssuers): _136.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _136.MsgUpdateClassIssuersAminoMsg): _136.MsgUpdateClassIssuers; - fromProtoMsg(message: _136.MsgUpdateClassIssuersProtoMsg): _136.MsgUpdateClassIssuers; - toProto(message: _136.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassIssuers): _136.MsgUpdateClassIssuersProtoMsg; + typeUrl: string; + encode(message: _137.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassIssuers; + fromJSON(object: any): _137.MsgUpdateClassIssuers; + toJSON(message: _137.MsgUpdateClassIssuers): unknown; + fromPartial(object: Partial<_137.MsgUpdateClassIssuers>): _137.MsgUpdateClassIssuers; + fromAmino(object: _137.MsgUpdateClassIssuersAmino): _137.MsgUpdateClassIssuers; + toAmino(message: _137.MsgUpdateClassIssuers): _137.MsgUpdateClassIssuersAmino; + fromAminoMsg(object: _137.MsgUpdateClassIssuersAminoMsg): _137.MsgUpdateClassIssuers; + fromProtoMsg(message: _137.MsgUpdateClassIssuersProtoMsg): _137.MsgUpdateClassIssuers; + toProto(message: _137.MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassIssuers): _137.MsgUpdateClassIssuersProtoMsg; }; MsgUpdateClassIssuersResponse: { - encode(_: _136.MsgUpdateClassIssuersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassIssuersResponse; - fromJSON(_: any): _136.MsgUpdateClassIssuersResponse; - toJSON(_: _136.MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial<_136.MsgUpdateClassIssuersResponse>): _136.MsgUpdateClassIssuersResponse; - fromAmino(_: _136.MsgUpdateClassIssuersResponseAmino): _136.MsgUpdateClassIssuersResponse; - toAmino(_: _136.MsgUpdateClassIssuersResponse): _136.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _136.MsgUpdateClassIssuersResponseAminoMsg): _136.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _136.MsgUpdateClassIssuersResponseProtoMsg): _136.MsgUpdateClassIssuersResponse; - toProto(message: _136.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassIssuersResponse): _136.MsgUpdateClassIssuersResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassIssuersResponse; + fromJSON(_: any): _137.MsgUpdateClassIssuersResponse; + toJSON(_: _137.MsgUpdateClassIssuersResponse): unknown; + fromPartial(_: Partial<_137.MsgUpdateClassIssuersResponse>): _137.MsgUpdateClassIssuersResponse; + fromAmino(_: _137.MsgUpdateClassIssuersResponseAmino): _137.MsgUpdateClassIssuersResponse; + toAmino(_: _137.MsgUpdateClassIssuersResponse): _137.MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: _137.MsgUpdateClassIssuersResponseAminoMsg): _137.MsgUpdateClassIssuersResponse; + fromProtoMsg(message: _137.MsgUpdateClassIssuersResponseProtoMsg): _137.MsgUpdateClassIssuersResponse; + toProto(message: _137.MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassIssuersResponse): _137.MsgUpdateClassIssuersResponseProtoMsg; }; MsgUpdateClassMetadata: { - encode(message: _136.MsgUpdateClassMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassMetadata; - fromJSON(object: any): _136.MsgUpdateClassMetadata; - toJSON(message: _136.MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial<_136.MsgUpdateClassMetadata>): _136.MsgUpdateClassMetadata; - fromAmino(object: _136.MsgUpdateClassMetadataAmino): _136.MsgUpdateClassMetadata; - toAmino(message: _136.MsgUpdateClassMetadata): _136.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _136.MsgUpdateClassMetadataAminoMsg): _136.MsgUpdateClassMetadata; - fromProtoMsg(message: _136.MsgUpdateClassMetadataProtoMsg): _136.MsgUpdateClassMetadata; - toProto(message: _136.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassMetadata): _136.MsgUpdateClassMetadataProtoMsg; + typeUrl: string; + encode(message: _137.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassMetadata; + fromJSON(object: any): _137.MsgUpdateClassMetadata; + toJSON(message: _137.MsgUpdateClassMetadata): unknown; + fromPartial(object: Partial<_137.MsgUpdateClassMetadata>): _137.MsgUpdateClassMetadata; + fromAmino(object: _137.MsgUpdateClassMetadataAmino): _137.MsgUpdateClassMetadata; + toAmino(message: _137.MsgUpdateClassMetadata): _137.MsgUpdateClassMetadataAmino; + fromAminoMsg(object: _137.MsgUpdateClassMetadataAminoMsg): _137.MsgUpdateClassMetadata; + fromProtoMsg(message: _137.MsgUpdateClassMetadataProtoMsg): _137.MsgUpdateClassMetadata; + toProto(message: _137.MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassMetadata): _137.MsgUpdateClassMetadataProtoMsg; }; MsgUpdateClassMetadataResponse: { - encode(_: _136.MsgUpdateClassMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _136.MsgUpdateClassMetadataResponse; - fromJSON(_: any): _136.MsgUpdateClassMetadataResponse; - toJSON(_: _136.MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial<_136.MsgUpdateClassMetadataResponse>): _136.MsgUpdateClassMetadataResponse; - fromAmino(_: _136.MsgUpdateClassMetadataResponseAmino): _136.MsgUpdateClassMetadataResponse; - toAmino(_: _136.MsgUpdateClassMetadataResponse): _136.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _136.MsgUpdateClassMetadataResponseAminoMsg): _136.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _136.MsgUpdateClassMetadataResponseProtoMsg): _136.MsgUpdateClassMetadataResponse; - toProto(message: _136.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _136.MsgUpdateClassMetadataResponse): _136.MsgUpdateClassMetadataResponseProtoMsg; + typeUrl: string; + encode(_: _137.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassMetadataResponse; + fromJSON(_: any): _137.MsgUpdateClassMetadataResponse; + toJSON(_: _137.MsgUpdateClassMetadataResponse): unknown; + fromPartial(_: Partial<_137.MsgUpdateClassMetadataResponse>): _137.MsgUpdateClassMetadataResponse; + fromAmino(_: _137.MsgUpdateClassMetadataResponseAmino): _137.MsgUpdateClassMetadataResponse; + toAmino(_: _137.MsgUpdateClassMetadataResponse): _137.MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: _137.MsgUpdateClassMetadataResponseAminoMsg): _137.MsgUpdateClassMetadataResponse; + fromProtoMsg(message: _137.MsgUpdateClassMetadataResponseProtoMsg): _137.MsgUpdateClassMetadataResponse; + toProto(message: _137.MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: _137.MsgUpdateClassMetadataResponse): _137.MsgUpdateClassMetadataResponseProtoMsg; }; QueryParamsRequest: { - encode(_: _135.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryParamsRequest; - fromJSON(_: any): _135.QueryParamsRequest; - toJSON(_: _135.QueryParamsRequest): unknown; - fromPartial(_: Partial<_135.QueryParamsRequest>): _135.QueryParamsRequest; - fromAmino(_: _135.QueryParamsRequestAmino): _135.QueryParamsRequest; - toAmino(_: _135.QueryParamsRequest): _135.QueryParamsRequestAmino; - fromAminoMsg(object: _135.QueryParamsRequestAminoMsg): _135.QueryParamsRequest; - fromProtoMsg(message: _135.QueryParamsRequestProtoMsg): _135.QueryParamsRequest; - toProto(message: _135.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _135.QueryParamsRequest): _135.QueryParamsRequestProtoMsg; + typeUrl: string; + encode(_: _136.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryParamsRequest; + fromJSON(_: any): _136.QueryParamsRequest; + toJSON(_: _136.QueryParamsRequest): unknown; + fromPartial(_: Partial<_136.QueryParamsRequest>): _136.QueryParamsRequest; + fromAmino(_: _136.QueryParamsRequestAmino): _136.QueryParamsRequest; + toAmino(_: _136.QueryParamsRequest): _136.QueryParamsRequestAmino; + fromAminoMsg(object: _136.QueryParamsRequestAminoMsg): _136.QueryParamsRequest; + fromProtoMsg(message: _136.QueryParamsRequestProtoMsg): _136.QueryParamsRequest; + toProto(message: _136.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _136.QueryParamsRequest): _136.QueryParamsRequestProtoMsg; }; QueryParamsResponse: { - encode(message: _135.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryParamsResponse; - fromJSON(object: any): _135.QueryParamsResponse; - toJSON(message: _135.QueryParamsResponse): unknown; - fromPartial(object: Partial<_135.QueryParamsResponse>): _135.QueryParamsResponse; - fromAmino(object: _135.QueryParamsResponseAmino): _135.QueryParamsResponse; - toAmino(message: _135.QueryParamsResponse): _135.QueryParamsResponseAmino; - fromAminoMsg(object: _135.QueryParamsResponseAminoMsg): _135.QueryParamsResponse; - fromProtoMsg(message: _135.QueryParamsResponseProtoMsg): _135.QueryParamsResponse; - toProto(message: _135.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _135.QueryParamsResponse): _135.QueryParamsResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryParamsResponse; + fromJSON(object: any): _136.QueryParamsResponse; + toJSON(message: _136.QueryParamsResponse): unknown; + fromPartial(object: Partial<_136.QueryParamsResponse>): _136.QueryParamsResponse; + fromAmino(object: _136.QueryParamsResponseAmino): _136.QueryParamsResponse; + toAmino(message: _136.QueryParamsResponse): _136.QueryParamsResponseAmino; + fromAminoMsg(object: _136.QueryParamsResponseAminoMsg): _136.QueryParamsResponse; + fromProtoMsg(message: _136.QueryParamsResponseProtoMsg): _136.QueryParamsResponse; + toProto(message: _136.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _136.QueryParamsResponse): _136.QueryParamsResponseProtoMsg; }; QueryClassesRequest: { - encode(message: _135.QueryClassesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryClassesRequest; - fromJSON(object: any): _135.QueryClassesRequest; - toJSON(message: _135.QueryClassesRequest): unknown; - fromPartial(object: Partial<_135.QueryClassesRequest>): _135.QueryClassesRequest; - fromAmino(object: _135.QueryClassesRequestAmino): _135.QueryClassesRequest; - toAmino(message: _135.QueryClassesRequest): _135.QueryClassesRequestAmino; - fromAminoMsg(object: _135.QueryClassesRequestAminoMsg): _135.QueryClassesRequest; - fromProtoMsg(message: _135.QueryClassesRequestProtoMsg): _135.QueryClassesRequest; - toProto(message: _135.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _135.QueryClassesRequest): _135.QueryClassesRequestProtoMsg; + typeUrl: string; + encode(message: _136.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassesRequest; + fromJSON(object: any): _136.QueryClassesRequest; + toJSON(message: _136.QueryClassesRequest): unknown; + fromPartial(object: Partial<_136.QueryClassesRequest>): _136.QueryClassesRequest; + fromAmino(object: _136.QueryClassesRequestAmino): _136.QueryClassesRequest; + toAmino(message: _136.QueryClassesRequest): _136.QueryClassesRequestAmino; + fromAminoMsg(object: _136.QueryClassesRequestAminoMsg): _136.QueryClassesRequest; + fromProtoMsg(message: _136.QueryClassesRequestProtoMsg): _136.QueryClassesRequest; + toProto(message: _136.QueryClassesRequest): Uint8Array; + toProtoMsg(message: _136.QueryClassesRequest): _136.QueryClassesRequestProtoMsg; }; QueryClassesResponse: { - encode(message: _135.QueryClassesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryClassesResponse; - fromJSON(object: any): _135.QueryClassesResponse; - toJSON(message: _135.QueryClassesResponse): unknown; - fromPartial(object: Partial<_135.QueryClassesResponse>): _135.QueryClassesResponse; - fromAmino(object: _135.QueryClassesResponseAmino): _135.QueryClassesResponse; - toAmino(message: _135.QueryClassesResponse): _135.QueryClassesResponseAmino; - fromAminoMsg(object: _135.QueryClassesResponseAminoMsg): _135.QueryClassesResponse; - fromProtoMsg(message: _135.QueryClassesResponseProtoMsg): _135.QueryClassesResponse; - toProto(message: _135.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _135.QueryClassesResponse): _135.QueryClassesResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassesResponse; + fromJSON(object: any): _136.QueryClassesResponse; + toJSON(message: _136.QueryClassesResponse): unknown; + fromPartial(object: Partial<_136.QueryClassesResponse>): _136.QueryClassesResponse; + fromAmino(object: _136.QueryClassesResponseAmino): _136.QueryClassesResponse; + toAmino(message: _136.QueryClassesResponse): _136.QueryClassesResponseAmino; + fromAminoMsg(object: _136.QueryClassesResponseAminoMsg): _136.QueryClassesResponse; + fromProtoMsg(message: _136.QueryClassesResponseProtoMsg): _136.QueryClassesResponse; + toProto(message: _136.QueryClassesResponse): Uint8Array; + toProtoMsg(message: _136.QueryClassesResponse): _136.QueryClassesResponseProtoMsg; }; QueryClassInfoRequest: { - encode(message: _135.QueryClassInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryClassInfoRequest; - fromJSON(object: any): _135.QueryClassInfoRequest; - toJSON(message: _135.QueryClassInfoRequest): unknown; - fromPartial(object: Partial<_135.QueryClassInfoRequest>): _135.QueryClassInfoRequest; - fromAmino(object: _135.QueryClassInfoRequestAmino): _135.QueryClassInfoRequest; - toAmino(message: _135.QueryClassInfoRequest): _135.QueryClassInfoRequestAmino; - fromAminoMsg(object: _135.QueryClassInfoRequestAminoMsg): _135.QueryClassInfoRequest; - fromProtoMsg(message: _135.QueryClassInfoRequestProtoMsg): _135.QueryClassInfoRequest; - toProto(message: _135.QueryClassInfoRequest): Uint8Array; - toProtoMsg(message: _135.QueryClassInfoRequest): _135.QueryClassInfoRequestProtoMsg; + typeUrl: string; + encode(message: _136.QueryClassInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassInfoRequest; + fromJSON(object: any): _136.QueryClassInfoRequest; + toJSON(message: _136.QueryClassInfoRequest): unknown; + fromPartial(object: Partial<_136.QueryClassInfoRequest>): _136.QueryClassInfoRequest; + fromAmino(object: _136.QueryClassInfoRequestAmino): _136.QueryClassInfoRequest; + toAmino(message: _136.QueryClassInfoRequest): _136.QueryClassInfoRequestAmino; + fromAminoMsg(object: _136.QueryClassInfoRequestAminoMsg): _136.QueryClassInfoRequest; + fromProtoMsg(message: _136.QueryClassInfoRequestProtoMsg): _136.QueryClassInfoRequest; + toProto(message: _136.QueryClassInfoRequest): Uint8Array; + toProtoMsg(message: _136.QueryClassInfoRequest): _136.QueryClassInfoRequestProtoMsg; }; QueryClassInfoResponse: { - encode(message: _135.QueryClassInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryClassInfoResponse; - fromJSON(object: any): _135.QueryClassInfoResponse; - toJSON(message: _135.QueryClassInfoResponse): unknown; - fromPartial(object: Partial<_135.QueryClassInfoResponse>): _135.QueryClassInfoResponse; - fromAmino(object: _135.QueryClassInfoResponseAmino): _135.QueryClassInfoResponse; - toAmino(message: _135.QueryClassInfoResponse): _135.QueryClassInfoResponseAmino; - fromAminoMsg(object: _135.QueryClassInfoResponseAminoMsg): _135.QueryClassInfoResponse; - fromProtoMsg(message: _135.QueryClassInfoResponseProtoMsg): _135.QueryClassInfoResponse; - toProto(message: _135.QueryClassInfoResponse): Uint8Array; - toProtoMsg(message: _135.QueryClassInfoResponse): _135.QueryClassInfoResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryClassInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassInfoResponse; + fromJSON(object: any): _136.QueryClassInfoResponse; + toJSON(message: _136.QueryClassInfoResponse): unknown; + fromPartial(object: Partial<_136.QueryClassInfoResponse>): _136.QueryClassInfoResponse; + fromAmino(object: _136.QueryClassInfoResponseAmino): _136.QueryClassInfoResponse; + toAmino(message: _136.QueryClassInfoResponse): _136.QueryClassInfoResponseAmino; + fromAminoMsg(object: _136.QueryClassInfoResponseAminoMsg): _136.QueryClassInfoResponse; + fromProtoMsg(message: _136.QueryClassInfoResponseProtoMsg): _136.QueryClassInfoResponse; + toProto(message: _136.QueryClassInfoResponse): Uint8Array; + toProtoMsg(message: _136.QueryClassInfoResponse): _136.QueryClassInfoResponseProtoMsg; }; QueryBatchesRequest: { - encode(message: _135.QueryBatchesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBatchesRequest; - fromJSON(object: any): _135.QueryBatchesRequest; - toJSON(message: _135.QueryBatchesRequest): unknown; - fromPartial(object: Partial<_135.QueryBatchesRequest>): _135.QueryBatchesRequest; - fromAmino(object: _135.QueryBatchesRequestAmino): _135.QueryBatchesRequest; - toAmino(message: _135.QueryBatchesRequest): _135.QueryBatchesRequestAmino; - fromAminoMsg(object: _135.QueryBatchesRequestAminoMsg): _135.QueryBatchesRequest; - fromProtoMsg(message: _135.QueryBatchesRequestProtoMsg): _135.QueryBatchesRequest; - toProto(message: _135.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _135.QueryBatchesRequest): _135.QueryBatchesRequestProtoMsg; + typeUrl: string; + encode(message: _136.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchesRequest; + fromJSON(object: any): _136.QueryBatchesRequest; + toJSON(message: _136.QueryBatchesRequest): unknown; + fromPartial(object: Partial<_136.QueryBatchesRequest>): _136.QueryBatchesRequest; + fromAmino(object: _136.QueryBatchesRequestAmino): _136.QueryBatchesRequest; + toAmino(message: _136.QueryBatchesRequest): _136.QueryBatchesRequestAmino; + fromAminoMsg(object: _136.QueryBatchesRequestAminoMsg): _136.QueryBatchesRequest; + fromProtoMsg(message: _136.QueryBatchesRequestProtoMsg): _136.QueryBatchesRequest; + toProto(message: _136.QueryBatchesRequest): Uint8Array; + toProtoMsg(message: _136.QueryBatchesRequest): _136.QueryBatchesRequestProtoMsg; }; QueryBatchesResponse: { - encode(message: _135.QueryBatchesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBatchesResponse; - fromJSON(object: any): _135.QueryBatchesResponse; - toJSON(message: _135.QueryBatchesResponse): unknown; - fromPartial(object: Partial<_135.QueryBatchesResponse>): _135.QueryBatchesResponse; - fromAmino(object: _135.QueryBatchesResponseAmino): _135.QueryBatchesResponse; - toAmino(message: _135.QueryBatchesResponse): _135.QueryBatchesResponseAmino; - fromAminoMsg(object: _135.QueryBatchesResponseAminoMsg): _135.QueryBatchesResponse; - fromProtoMsg(message: _135.QueryBatchesResponseProtoMsg): _135.QueryBatchesResponse; - toProto(message: _135.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _135.QueryBatchesResponse): _135.QueryBatchesResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchesResponse; + fromJSON(object: any): _136.QueryBatchesResponse; + toJSON(message: _136.QueryBatchesResponse): unknown; + fromPartial(object: Partial<_136.QueryBatchesResponse>): _136.QueryBatchesResponse; + fromAmino(object: _136.QueryBatchesResponseAmino): _136.QueryBatchesResponse; + toAmino(message: _136.QueryBatchesResponse): _136.QueryBatchesResponseAmino; + fromAminoMsg(object: _136.QueryBatchesResponseAminoMsg): _136.QueryBatchesResponse; + fromProtoMsg(message: _136.QueryBatchesResponseProtoMsg): _136.QueryBatchesResponse; + toProto(message: _136.QueryBatchesResponse): Uint8Array; + toProtoMsg(message: _136.QueryBatchesResponse): _136.QueryBatchesResponseProtoMsg; }; QueryBatchInfoRequest: { - encode(message: _135.QueryBatchInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBatchInfoRequest; - fromJSON(object: any): _135.QueryBatchInfoRequest; - toJSON(message: _135.QueryBatchInfoRequest): unknown; - fromPartial(object: Partial<_135.QueryBatchInfoRequest>): _135.QueryBatchInfoRequest; - fromAmino(object: _135.QueryBatchInfoRequestAmino): _135.QueryBatchInfoRequest; - toAmino(message: _135.QueryBatchInfoRequest): _135.QueryBatchInfoRequestAmino; - fromAminoMsg(object: _135.QueryBatchInfoRequestAminoMsg): _135.QueryBatchInfoRequest; - fromProtoMsg(message: _135.QueryBatchInfoRequestProtoMsg): _135.QueryBatchInfoRequest; - toProto(message: _135.QueryBatchInfoRequest): Uint8Array; - toProtoMsg(message: _135.QueryBatchInfoRequest): _135.QueryBatchInfoRequestProtoMsg; + typeUrl: string; + encode(message: _136.QueryBatchInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchInfoRequest; + fromJSON(object: any): _136.QueryBatchInfoRequest; + toJSON(message: _136.QueryBatchInfoRequest): unknown; + fromPartial(object: Partial<_136.QueryBatchInfoRequest>): _136.QueryBatchInfoRequest; + fromAmino(object: _136.QueryBatchInfoRequestAmino): _136.QueryBatchInfoRequest; + toAmino(message: _136.QueryBatchInfoRequest): _136.QueryBatchInfoRequestAmino; + fromAminoMsg(object: _136.QueryBatchInfoRequestAminoMsg): _136.QueryBatchInfoRequest; + fromProtoMsg(message: _136.QueryBatchInfoRequestProtoMsg): _136.QueryBatchInfoRequest; + toProto(message: _136.QueryBatchInfoRequest): Uint8Array; + toProtoMsg(message: _136.QueryBatchInfoRequest): _136.QueryBatchInfoRequestProtoMsg; }; QueryBatchInfoResponse: { - encode(message: _135.QueryBatchInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBatchInfoResponse; - fromJSON(object: any): _135.QueryBatchInfoResponse; - toJSON(message: _135.QueryBatchInfoResponse): unknown; - fromPartial(object: Partial<_135.QueryBatchInfoResponse>): _135.QueryBatchInfoResponse; - fromAmino(object: _135.QueryBatchInfoResponseAmino): _135.QueryBatchInfoResponse; - toAmino(message: _135.QueryBatchInfoResponse): _135.QueryBatchInfoResponseAmino; - fromAminoMsg(object: _135.QueryBatchInfoResponseAminoMsg): _135.QueryBatchInfoResponse; - fromProtoMsg(message: _135.QueryBatchInfoResponseProtoMsg): _135.QueryBatchInfoResponse; - toProto(message: _135.QueryBatchInfoResponse): Uint8Array; - toProtoMsg(message: _135.QueryBatchInfoResponse): _135.QueryBatchInfoResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryBatchInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchInfoResponse; + fromJSON(object: any): _136.QueryBatchInfoResponse; + toJSON(message: _136.QueryBatchInfoResponse): unknown; + fromPartial(object: Partial<_136.QueryBatchInfoResponse>): _136.QueryBatchInfoResponse; + fromAmino(object: _136.QueryBatchInfoResponseAmino): _136.QueryBatchInfoResponse; + toAmino(message: _136.QueryBatchInfoResponse): _136.QueryBatchInfoResponseAmino; + fromAminoMsg(object: _136.QueryBatchInfoResponseAminoMsg): _136.QueryBatchInfoResponse; + fromProtoMsg(message: _136.QueryBatchInfoResponseProtoMsg): _136.QueryBatchInfoResponse; + toProto(message: _136.QueryBatchInfoResponse): Uint8Array; + toProtoMsg(message: _136.QueryBatchInfoResponse): _136.QueryBatchInfoResponseProtoMsg; }; QueryBalanceRequest: { - encode(message: _135.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBalanceRequest; - fromJSON(object: any): _135.QueryBalanceRequest; - toJSON(message: _135.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_135.QueryBalanceRequest>): _135.QueryBalanceRequest; - fromAmino(object: _135.QueryBalanceRequestAmino): _135.QueryBalanceRequest; - toAmino(message: _135.QueryBalanceRequest): _135.QueryBalanceRequestAmino; - fromAminoMsg(object: _135.QueryBalanceRequestAminoMsg): _135.QueryBalanceRequest; - fromProtoMsg(message: _135.QueryBalanceRequestProtoMsg): _135.QueryBalanceRequest; - toProto(message: _135.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _135.QueryBalanceRequest): _135.QueryBalanceRequestProtoMsg; + typeUrl: string; + encode(message: _136.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBalanceRequest; + fromJSON(object: any): _136.QueryBalanceRequest; + toJSON(message: _136.QueryBalanceRequest): unknown; + fromPartial(object: Partial<_136.QueryBalanceRequest>): _136.QueryBalanceRequest; + fromAmino(object: _136.QueryBalanceRequestAmino): _136.QueryBalanceRequest; + toAmino(message: _136.QueryBalanceRequest): _136.QueryBalanceRequestAmino; + fromAminoMsg(object: _136.QueryBalanceRequestAminoMsg): _136.QueryBalanceRequest; + fromProtoMsg(message: _136.QueryBalanceRequestProtoMsg): _136.QueryBalanceRequest; + toProto(message: _136.QueryBalanceRequest): Uint8Array; + toProtoMsg(message: _136.QueryBalanceRequest): _136.QueryBalanceRequestProtoMsg; }; QueryBalanceResponse: { - encode(message: _135.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryBalanceResponse; - fromJSON(object: any): _135.QueryBalanceResponse; - toJSON(message: _135.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_135.QueryBalanceResponse>): _135.QueryBalanceResponse; - fromAmino(object: _135.QueryBalanceResponseAmino): _135.QueryBalanceResponse; - toAmino(message: _135.QueryBalanceResponse): _135.QueryBalanceResponseAmino; - fromAminoMsg(object: _135.QueryBalanceResponseAminoMsg): _135.QueryBalanceResponse; - fromProtoMsg(message: _135.QueryBalanceResponseProtoMsg): _135.QueryBalanceResponse; - toProto(message: _135.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _135.QueryBalanceResponse): _135.QueryBalanceResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBalanceResponse; + fromJSON(object: any): _136.QueryBalanceResponse; + toJSON(message: _136.QueryBalanceResponse): unknown; + fromPartial(object: Partial<_136.QueryBalanceResponse>): _136.QueryBalanceResponse; + fromAmino(object: _136.QueryBalanceResponseAmino): _136.QueryBalanceResponse; + toAmino(message: _136.QueryBalanceResponse): _136.QueryBalanceResponseAmino; + fromAminoMsg(object: _136.QueryBalanceResponseAminoMsg): _136.QueryBalanceResponse; + fromProtoMsg(message: _136.QueryBalanceResponseProtoMsg): _136.QueryBalanceResponse; + toProto(message: _136.QueryBalanceResponse): Uint8Array; + toProtoMsg(message: _136.QueryBalanceResponse): _136.QueryBalanceResponseProtoMsg; }; QuerySupplyRequest: { - encode(message: _135.QuerySupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QuerySupplyRequest; - fromJSON(object: any): _135.QuerySupplyRequest; - toJSON(message: _135.QuerySupplyRequest): unknown; - fromPartial(object: Partial<_135.QuerySupplyRequest>): _135.QuerySupplyRequest; - fromAmino(object: _135.QuerySupplyRequestAmino): _135.QuerySupplyRequest; - toAmino(message: _135.QuerySupplyRequest): _135.QuerySupplyRequestAmino; - fromAminoMsg(object: _135.QuerySupplyRequestAminoMsg): _135.QuerySupplyRequest; - fromProtoMsg(message: _135.QuerySupplyRequestProtoMsg): _135.QuerySupplyRequest; - toProto(message: _135.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _135.QuerySupplyRequest): _135.QuerySupplyRequestProtoMsg; + typeUrl: string; + encode(message: _136.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QuerySupplyRequest; + fromJSON(object: any): _136.QuerySupplyRequest; + toJSON(message: _136.QuerySupplyRequest): unknown; + fromPartial(object: Partial<_136.QuerySupplyRequest>): _136.QuerySupplyRequest; + fromAmino(object: _136.QuerySupplyRequestAmino): _136.QuerySupplyRequest; + toAmino(message: _136.QuerySupplyRequest): _136.QuerySupplyRequestAmino; + fromAminoMsg(object: _136.QuerySupplyRequestAminoMsg): _136.QuerySupplyRequest; + fromProtoMsg(message: _136.QuerySupplyRequestProtoMsg): _136.QuerySupplyRequest; + toProto(message: _136.QuerySupplyRequest): Uint8Array; + toProtoMsg(message: _136.QuerySupplyRequest): _136.QuerySupplyRequestProtoMsg; }; QuerySupplyResponse: { - encode(message: _135.QuerySupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QuerySupplyResponse; - fromJSON(object: any): _135.QuerySupplyResponse; - toJSON(message: _135.QuerySupplyResponse): unknown; - fromPartial(object: Partial<_135.QuerySupplyResponse>): _135.QuerySupplyResponse; - fromAmino(object: _135.QuerySupplyResponseAmino): _135.QuerySupplyResponse; - toAmino(message: _135.QuerySupplyResponse): _135.QuerySupplyResponseAmino; - fromAminoMsg(object: _135.QuerySupplyResponseAminoMsg): _135.QuerySupplyResponse; - fromProtoMsg(message: _135.QuerySupplyResponseProtoMsg): _135.QuerySupplyResponse; - toProto(message: _135.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _135.QuerySupplyResponse): _135.QuerySupplyResponseProtoMsg; + typeUrl: string; + encode(message: _136.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QuerySupplyResponse; + fromJSON(object: any): _136.QuerySupplyResponse; + toJSON(message: _136.QuerySupplyResponse): unknown; + fromPartial(object: Partial<_136.QuerySupplyResponse>): _136.QuerySupplyResponse; + fromAmino(object: _136.QuerySupplyResponseAmino): _136.QuerySupplyResponse; + toAmino(message: _136.QuerySupplyResponse): _136.QuerySupplyResponseAmino; + fromAminoMsg(object: _136.QuerySupplyResponseAminoMsg): _136.QuerySupplyResponse; + fromProtoMsg(message: _136.QuerySupplyResponseProtoMsg): _136.QuerySupplyResponse; + toProto(message: _136.QuerySupplyResponse): Uint8Array; + toProtoMsg(message: _136.QuerySupplyResponse): _136.QuerySupplyResponseProtoMsg; }; QueryCreditTypesRequest: { - encode(_: _135.QueryCreditTypesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryCreditTypesRequest; - fromJSON(_: any): _135.QueryCreditTypesRequest; - toJSON(_: _135.QueryCreditTypesRequest): unknown; - fromPartial(_: Partial<_135.QueryCreditTypesRequest>): _135.QueryCreditTypesRequest; - fromAmino(_: _135.QueryCreditTypesRequestAmino): _135.QueryCreditTypesRequest; - toAmino(_: _135.QueryCreditTypesRequest): _135.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _135.QueryCreditTypesRequestAminoMsg): _135.QueryCreditTypesRequest; - fromProtoMsg(message: _135.QueryCreditTypesRequestProtoMsg): _135.QueryCreditTypesRequest; - toProto(message: _135.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _135.QueryCreditTypesRequest): _135.QueryCreditTypesRequestProtoMsg; + typeUrl: string; + encode(_: _136.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryCreditTypesRequest; + fromJSON(_: any): _136.QueryCreditTypesRequest; + toJSON(_: _136.QueryCreditTypesRequest): unknown; + fromPartial(_: Partial<_136.QueryCreditTypesRequest>): _136.QueryCreditTypesRequest; + fromAmino(_: _136.QueryCreditTypesRequestAmino): _136.QueryCreditTypesRequest; + toAmino(_: _136.QueryCreditTypesRequest): _136.QueryCreditTypesRequestAmino; + fromAminoMsg(object: _136.QueryCreditTypesRequestAminoMsg): _136.QueryCreditTypesRequest; + fromProtoMsg(message: _136.QueryCreditTypesRequestProtoMsg): _136.QueryCreditTypesRequest; + toProto(message: _136.QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: _136.QueryCreditTypesRequest): _136.QueryCreditTypesRequestProtoMsg; }; QueryCreditTypesResponse: { - encode(message: _135.QueryCreditTypesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _135.QueryCreditTypesResponse; - fromJSON(object: any): _135.QueryCreditTypesResponse; - toJSON(message: _135.QueryCreditTypesResponse): unknown; - fromPartial(object: Partial<_135.QueryCreditTypesResponse>): _135.QueryCreditTypesResponse; - fromAmino(object: _135.QueryCreditTypesResponseAmino): _135.QueryCreditTypesResponse; - toAmino(message: _135.QueryCreditTypesResponse): _135.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _135.QueryCreditTypesResponseAminoMsg): _135.QueryCreditTypesResponse; - fromProtoMsg(message: _135.QueryCreditTypesResponseProtoMsg): _135.QueryCreditTypesResponse; - toProto(message: _135.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _135.QueryCreditTypesResponse): _135.QueryCreditTypesResponseProtoMsg; + typeUrl: string; + encode(message: _136.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryCreditTypesResponse; + fromJSON(object: any): _136.QueryCreditTypesResponse; + toJSON(message: _136.QueryCreditTypesResponse): unknown; + fromPartial(object: Partial<_136.QueryCreditTypesResponse>): _136.QueryCreditTypesResponse; + fromAmino(object: _136.QueryCreditTypesResponseAmino): _136.QueryCreditTypesResponse; + toAmino(message: _136.QueryCreditTypesResponse): _136.QueryCreditTypesResponseAmino; + fromAminoMsg(object: _136.QueryCreditTypesResponseAminoMsg): _136.QueryCreditTypesResponse; + fromProtoMsg(message: _136.QueryCreditTypesResponseProtoMsg): _136.QueryCreditTypesResponse; + toProto(message: _136.QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: _136.QueryCreditTypesResponse): _136.QueryCreditTypesResponseProtoMsg; }; GenesisState: { - encode(message: _134.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _134.GenesisState; - fromJSON(object: any): _134.GenesisState; - toJSON(message: _134.GenesisState): unknown; - fromPartial(object: Partial<_134.GenesisState>): _134.GenesisState; - fromAmino(object: _134.GenesisStateAmino): _134.GenesisState; - toAmino(message: _134.GenesisState): _134.GenesisStateAmino; - fromAminoMsg(object: _134.GenesisStateAminoMsg): _134.GenesisState; - fromProtoMsg(message: _134.GenesisStateProtoMsg): _134.GenesisState; - toProto(message: _134.GenesisState): Uint8Array; - toProtoMsg(message: _134.GenesisState): _134.GenesisStateProtoMsg; + typeUrl: string; + encode(message: _135.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.GenesisState; + fromJSON(object: any): _135.GenesisState; + toJSON(message: _135.GenesisState): unknown; + fromPartial(object: Partial<_135.GenesisState>): _135.GenesisState; + fromAmino(object: _135.GenesisStateAmino): _135.GenesisState; + toAmino(message: _135.GenesisState): _135.GenesisStateAmino; + fromAminoMsg(object: _135.GenesisStateAminoMsg): _135.GenesisState; + fromProtoMsg(message: _135.GenesisStateProtoMsg): _135.GenesisState; + toProto(message: _135.GenesisState): Uint8Array; + toProtoMsg(message: _135.GenesisState): _135.GenesisStateProtoMsg; }; Balance: { - encode(message: _134.Balance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _134.Balance; - fromJSON(object: any): _134.Balance; - toJSON(message: _134.Balance): unknown; - fromPartial(object: Partial<_134.Balance>): _134.Balance; - fromAmino(object: _134.BalanceAmino): _134.Balance; - toAmino(message: _134.Balance): _134.BalanceAmino; - fromAminoMsg(object: _134.BalanceAminoMsg): _134.Balance; - fromProtoMsg(message: _134.BalanceProtoMsg): _134.Balance; - toProto(message: _134.Balance): Uint8Array; - toProtoMsg(message: _134.Balance): _134.BalanceProtoMsg; + typeUrl: string; + encode(message: _135.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.Balance; + fromJSON(object: any): _135.Balance; + toJSON(message: _135.Balance): unknown; + fromPartial(object: Partial<_135.Balance>): _135.Balance; + fromAmino(object: _135.BalanceAmino): _135.Balance; + toAmino(message: _135.Balance): _135.BalanceAmino; + fromAminoMsg(object: _135.BalanceAminoMsg): _135.Balance; + fromProtoMsg(message: _135.BalanceProtoMsg): _135.Balance; + toProto(message: _135.Balance): Uint8Array; + toProtoMsg(message: _135.Balance): _135.BalanceProtoMsg; }; Supply: { - encode(message: _134.Supply, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _134.Supply; - fromJSON(object: any): _134.Supply; - toJSON(message: _134.Supply): unknown; - fromPartial(object: Partial<_134.Supply>): _134.Supply; - fromAmino(object: _134.SupplyAmino): _134.Supply; - toAmino(message: _134.Supply): _134.SupplyAmino; - fromAminoMsg(object: _134.SupplyAminoMsg): _134.Supply; - fromProtoMsg(message: _134.SupplyProtoMsg): _134.Supply; - toProto(message: _134.Supply): Uint8Array; - toProtoMsg(message: _134.Supply): _134.SupplyProtoMsg; + typeUrl: string; + encode(message: _135.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.Supply; + fromJSON(object: any): _135.Supply; + toJSON(message: _135.Supply): unknown; + fromPartial(object: Partial<_135.Supply>): _135.Supply; + fromAmino(object: _135.SupplyAmino): _135.Supply; + toAmino(message: _135.Supply): _135.SupplyAmino; + fromAminoMsg(object: _135.SupplyAminoMsg): _135.Supply; + fromProtoMsg(message: _135.SupplyProtoMsg): _135.Supply; + toProto(message: _135.Supply): Uint8Array; + toProtoMsg(message: _135.Supply): _135.SupplyProtoMsg; }; EventCreateClass: { - encode(message: _133.EventCreateClass, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _133.EventCreateClass; - fromJSON(object: any): _133.EventCreateClass; - toJSON(message: _133.EventCreateClass): unknown; - fromPartial(object: Partial<_133.EventCreateClass>): _133.EventCreateClass; - fromAmino(object: _133.EventCreateClassAmino): _133.EventCreateClass; - toAmino(message: _133.EventCreateClass): _133.EventCreateClassAmino; - fromAminoMsg(object: _133.EventCreateClassAminoMsg): _133.EventCreateClass; - fromProtoMsg(message: _133.EventCreateClassProtoMsg): _133.EventCreateClass; - toProto(message: _133.EventCreateClass): Uint8Array; - toProtoMsg(message: _133.EventCreateClass): _133.EventCreateClassProtoMsg; + typeUrl: string; + encode(message: _134.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCreateClass; + fromJSON(object: any): _134.EventCreateClass; + toJSON(message: _134.EventCreateClass): unknown; + fromPartial(object: Partial<_134.EventCreateClass>): _134.EventCreateClass; + fromAmino(object: _134.EventCreateClassAmino): _134.EventCreateClass; + toAmino(message: _134.EventCreateClass): _134.EventCreateClassAmino; + fromAminoMsg(object: _134.EventCreateClassAminoMsg): _134.EventCreateClass; + fromProtoMsg(message: _134.EventCreateClassProtoMsg): _134.EventCreateClass; + toProto(message: _134.EventCreateClass): Uint8Array; + toProtoMsg(message: _134.EventCreateClass): _134.EventCreateClassProtoMsg; }; EventCreateBatch: { - encode(message: _133.EventCreateBatch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _133.EventCreateBatch; - fromJSON(object: any): _133.EventCreateBatch; - toJSON(message: _133.EventCreateBatch): unknown; - fromPartial(object: Partial<_133.EventCreateBatch>): _133.EventCreateBatch; - fromAmino(object: _133.EventCreateBatchAmino): _133.EventCreateBatch; - toAmino(message: _133.EventCreateBatch): _133.EventCreateBatchAmino; - fromAminoMsg(object: _133.EventCreateBatchAminoMsg): _133.EventCreateBatch; - fromProtoMsg(message: _133.EventCreateBatchProtoMsg): _133.EventCreateBatch; - toProto(message: _133.EventCreateBatch): Uint8Array; - toProtoMsg(message: _133.EventCreateBatch): _133.EventCreateBatchProtoMsg; + typeUrl: string; + encode(message: _134.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCreateBatch; + fromJSON(object: any): _134.EventCreateBatch; + toJSON(message: _134.EventCreateBatch): unknown; + fromPartial(object: Partial<_134.EventCreateBatch>): _134.EventCreateBatch; + fromAmino(object: _134.EventCreateBatchAmino): _134.EventCreateBatch; + toAmino(message: _134.EventCreateBatch): _134.EventCreateBatchAmino; + fromAminoMsg(object: _134.EventCreateBatchAminoMsg): _134.EventCreateBatch; + fromProtoMsg(message: _134.EventCreateBatchProtoMsg): _134.EventCreateBatch; + toProto(message: _134.EventCreateBatch): Uint8Array; + toProtoMsg(message: _134.EventCreateBatch): _134.EventCreateBatchProtoMsg; }; EventReceive: { - encode(message: _133.EventReceive, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _133.EventReceive; - fromJSON(object: any): _133.EventReceive; - toJSON(message: _133.EventReceive): unknown; - fromPartial(object: Partial<_133.EventReceive>): _133.EventReceive; - fromAmino(object: _133.EventReceiveAmino): _133.EventReceive; - toAmino(message: _133.EventReceive): _133.EventReceiveAmino; - fromAminoMsg(object: _133.EventReceiveAminoMsg): _133.EventReceive; - fromProtoMsg(message: _133.EventReceiveProtoMsg): _133.EventReceive; - toProto(message: _133.EventReceive): Uint8Array; - toProtoMsg(message: _133.EventReceive): _133.EventReceiveProtoMsg; + typeUrl: string; + encode(message: _134.EventReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventReceive; + fromJSON(object: any): _134.EventReceive; + toJSON(message: _134.EventReceive): unknown; + fromPartial(object: Partial<_134.EventReceive>): _134.EventReceive; + fromAmino(object: _134.EventReceiveAmino): _134.EventReceive; + toAmino(message: _134.EventReceive): _134.EventReceiveAmino; + fromAminoMsg(object: _134.EventReceiveAminoMsg): _134.EventReceive; + fromProtoMsg(message: _134.EventReceiveProtoMsg): _134.EventReceive; + toProto(message: _134.EventReceive): Uint8Array; + toProtoMsg(message: _134.EventReceive): _134.EventReceiveProtoMsg; }; EventRetire: { - encode(message: _133.EventRetire, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _133.EventRetire; - fromJSON(object: any): _133.EventRetire; - toJSON(message: _133.EventRetire): unknown; - fromPartial(object: Partial<_133.EventRetire>): _133.EventRetire; - fromAmino(object: _133.EventRetireAmino): _133.EventRetire; - toAmino(message: _133.EventRetire): _133.EventRetireAmino; - fromAminoMsg(object: _133.EventRetireAminoMsg): _133.EventRetire; - fromProtoMsg(message: _133.EventRetireProtoMsg): _133.EventRetire; - toProto(message: _133.EventRetire): Uint8Array; - toProtoMsg(message: _133.EventRetire): _133.EventRetireProtoMsg; + typeUrl: string; + encode(message: _134.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventRetire; + fromJSON(object: any): _134.EventRetire; + toJSON(message: _134.EventRetire): unknown; + fromPartial(object: Partial<_134.EventRetire>): _134.EventRetire; + fromAmino(object: _134.EventRetireAmino): _134.EventRetire; + toAmino(message: _134.EventRetire): _134.EventRetireAmino; + fromAminoMsg(object: _134.EventRetireAminoMsg): _134.EventRetire; + fromProtoMsg(message: _134.EventRetireProtoMsg): _134.EventRetire; + toProto(message: _134.EventRetire): Uint8Array; + toProtoMsg(message: _134.EventRetire): _134.EventRetireProtoMsg; }; EventCancel: { - encode(message: _133.EventCancel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _133.EventCancel; - fromJSON(object: any): _133.EventCancel; - toJSON(message: _133.EventCancel): unknown; - fromPartial(object: Partial<_133.EventCancel>): _133.EventCancel; - fromAmino(object: _133.EventCancelAmino): _133.EventCancel; - toAmino(message: _133.EventCancel): _133.EventCancelAmino; - fromAminoMsg(object: _133.EventCancelAminoMsg): _133.EventCancel; - fromProtoMsg(message: _133.EventCancelProtoMsg): _133.EventCancel; - toProto(message: _133.EventCancel): Uint8Array; - toProtoMsg(message: _133.EventCancel): _133.EventCancelProtoMsg; + typeUrl: string; + encode(message: _134.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCancel; + fromJSON(object: any): _134.EventCancel; + toJSON(message: _134.EventCancel): unknown; + fromPartial(object: Partial<_134.EventCancel>): _134.EventCancel; + fromAmino(object: _134.EventCancelAmino): _134.EventCancel; + toAmino(message: _134.EventCancel): _134.EventCancelAmino; + fromAminoMsg(object: _134.EventCancelAminoMsg): _134.EventCancel; + fromProtoMsg(message: _134.EventCancelProtoMsg): _134.EventCancel; + toProto(message: _134.EventCancel): Uint8Array; + toProtoMsg(message: _134.EventCancel): _134.EventCancelProtoMsg; }; }; } namespace intertx { const v1: { - MsgClientImpl: typeof _269.MsgClientImpl; - QueryClientImpl: typeof _263.QueryClientImpl; + MsgClientImpl: typeof _270.MsgClientImpl; + QueryClientImpl: typeof _264.QueryClientImpl; createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - interchainAccount(request: _138.QueryInterchainAccountRequest): Promise<_138.QueryInterchainAccountResponse>; + interchainAccount(request: _139.QueryInterchainAccountRequest): Promise<_139.QueryInterchainAccountResponse>; }; - LCDQueryClient: typeof _257.LCDQueryClient; + LCDQueryClient: typeof _258.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - registerAccount(value: _139.MsgRegisterAccount): { + registerAccount(value: _140.MsgRegisterAccount): { typeUrl: string; value: Uint8Array; }; - submitTx(value: _139.MsgSubmitTx): { + submitTx(value: _140.MsgSubmitTx): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - registerAccount(value: _139.MsgRegisterAccount): { + registerAccount(value: _140.MsgRegisterAccount): { typeUrl: string; - value: _139.MsgRegisterAccount; + value: _140.MsgRegisterAccount; }; - submitTx(value: _139.MsgSubmitTx): { + submitTx(value: _140.MsgSubmitTx): { typeUrl: string; - value: _139.MsgSubmitTx; + value: _140.MsgSubmitTx; }; }; toJSON: { - registerAccount(value: _139.MsgRegisterAccount): { + registerAccount(value: _140.MsgRegisterAccount): { typeUrl: string; value: unknown; }; - submitTx(value: _139.MsgSubmitTx): { + submitTx(value: _140.MsgSubmitTx): { typeUrl: string; value: unknown; }; @@ -5600,113 +5915,119 @@ export declare namespace regen { fromJSON: { registerAccount(value: any): { typeUrl: string; - value: _139.MsgRegisterAccount; + value: _140.MsgRegisterAccount; }; submitTx(value: any): { typeUrl: string; - value: _139.MsgSubmitTx; + value: _140.MsgSubmitTx; }; }; fromPartial: { - registerAccount(value: _139.MsgRegisterAccount): { + registerAccount(value: _140.MsgRegisterAccount): { typeUrl: string; - value: _139.MsgRegisterAccount; + value: _140.MsgRegisterAccount; }; - submitTx(value: _139.MsgSubmitTx): { + submitTx(value: _140.MsgSubmitTx): { typeUrl: string; - value: _139.MsgSubmitTx; + value: _140.MsgSubmitTx; }; }; }; AminoConverter: { "/regen.intertx.v1.MsgRegisterAccount": { aminoType: string; - toAmino: (message: _139.MsgRegisterAccount) => _139.MsgRegisterAccountAmino; - fromAmino: (object: _139.MsgRegisterAccountAmino) => _139.MsgRegisterAccount; + toAmino: (message: _140.MsgRegisterAccount) => _140.MsgRegisterAccountAmino; + fromAmino: (object: _140.MsgRegisterAccountAmino) => _140.MsgRegisterAccount; }; "/regen.intertx.v1.MsgSubmitTx": { aminoType: string; - toAmino: (message: _139.MsgSubmitTx) => _139.MsgSubmitTxAmino; - fromAmino: (object: _139.MsgSubmitTxAmino) => _139.MsgSubmitTx; + toAmino: (message: _140.MsgSubmitTx) => _140.MsgSubmitTxAmino; + fromAmino: (object: _140.MsgSubmitTxAmino) => _140.MsgSubmitTx; }; }; MsgRegisterAccount: { - encode(message: _139.MsgRegisterAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _139.MsgRegisterAccount; - fromJSON(object: any): _139.MsgRegisterAccount; - toJSON(message: _139.MsgRegisterAccount): unknown; - fromPartial(object: Partial<_139.MsgRegisterAccount>): _139.MsgRegisterAccount; - fromAmino(object: _139.MsgRegisterAccountAmino): _139.MsgRegisterAccount; - toAmino(message: _139.MsgRegisterAccount): _139.MsgRegisterAccountAmino; - fromAminoMsg(object: _139.MsgRegisterAccountAminoMsg): _139.MsgRegisterAccount; - fromProtoMsg(message: _139.MsgRegisterAccountProtoMsg): _139.MsgRegisterAccount; - toProto(message: _139.MsgRegisterAccount): Uint8Array; - toProtoMsg(message: _139.MsgRegisterAccount): _139.MsgRegisterAccountProtoMsg; + typeUrl: string; + encode(message: _140.MsgRegisterAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgRegisterAccount; + fromJSON(object: any): _140.MsgRegisterAccount; + toJSON(message: _140.MsgRegisterAccount): unknown; + fromPartial(object: Partial<_140.MsgRegisterAccount>): _140.MsgRegisterAccount; + fromAmino(object: _140.MsgRegisterAccountAmino): _140.MsgRegisterAccount; + toAmino(message: _140.MsgRegisterAccount): _140.MsgRegisterAccountAmino; + fromAminoMsg(object: _140.MsgRegisterAccountAminoMsg): _140.MsgRegisterAccount; + fromProtoMsg(message: _140.MsgRegisterAccountProtoMsg): _140.MsgRegisterAccount; + toProto(message: _140.MsgRegisterAccount): Uint8Array; + toProtoMsg(message: _140.MsgRegisterAccount): _140.MsgRegisterAccountProtoMsg; }; MsgRegisterAccountResponse: { - encode(_: _139.MsgRegisterAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _139.MsgRegisterAccountResponse; - fromJSON(_: any): _139.MsgRegisterAccountResponse; - toJSON(_: _139.MsgRegisterAccountResponse): unknown; - fromPartial(_: Partial<_139.MsgRegisterAccountResponse>): _139.MsgRegisterAccountResponse; - fromAmino(_: _139.MsgRegisterAccountResponseAmino): _139.MsgRegisterAccountResponse; - toAmino(_: _139.MsgRegisterAccountResponse): _139.MsgRegisterAccountResponseAmino; - fromAminoMsg(object: _139.MsgRegisterAccountResponseAminoMsg): _139.MsgRegisterAccountResponse; - fromProtoMsg(message: _139.MsgRegisterAccountResponseProtoMsg): _139.MsgRegisterAccountResponse; - toProto(message: _139.MsgRegisterAccountResponse): Uint8Array; - toProtoMsg(message: _139.MsgRegisterAccountResponse): _139.MsgRegisterAccountResponseProtoMsg; + typeUrl: string; + encode(_: _140.MsgRegisterAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgRegisterAccountResponse; + fromJSON(_: any): _140.MsgRegisterAccountResponse; + toJSON(_: _140.MsgRegisterAccountResponse): unknown; + fromPartial(_: Partial<_140.MsgRegisterAccountResponse>): _140.MsgRegisterAccountResponse; + fromAmino(_: _140.MsgRegisterAccountResponseAmino): _140.MsgRegisterAccountResponse; + toAmino(_: _140.MsgRegisterAccountResponse): _140.MsgRegisterAccountResponseAmino; + fromAminoMsg(object: _140.MsgRegisterAccountResponseAminoMsg): _140.MsgRegisterAccountResponse; + fromProtoMsg(message: _140.MsgRegisterAccountResponseProtoMsg): _140.MsgRegisterAccountResponse; + toProto(message: _140.MsgRegisterAccountResponse): Uint8Array; + toProtoMsg(message: _140.MsgRegisterAccountResponse): _140.MsgRegisterAccountResponseProtoMsg; }; MsgSubmitTx: { - encode(message: _139.MsgSubmitTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _139.MsgSubmitTx; - fromJSON(object: any): _139.MsgSubmitTx; - toJSON(message: _139.MsgSubmitTx): unknown; - fromPartial(object: Partial<_139.MsgSubmitTx>): _139.MsgSubmitTx; - fromAmino(object: _139.MsgSubmitTxAmino): _139.MsgSubmitTx; - toAmino(message: _139.MsgSubmitTx): _139.MsgSubmitTxAmino; - fromAminoMsg(object: _139.MsgSubmitTxAminoMsg): _139.MsgSubmitTx; - fromProtoMsg(message: _139.MsgSubmitTxProtoMsg): _139.MsgSubmitTx; - toProto(message: _139.MsgSubmitTx): Uint8Array; - toProtoMsg(message: _139.MsgSubmitTx): _139.MsgSubmitTxProtoMsg; + typeUrl: string; + encode(message: _140.MsgSubmitTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgSubmitTx; + fromJSON(object: any): _140.MsgSubmitTx; + toJSON(message: _140.MsgSubmitTx): unknown; + fromPartial(object: Partial<_140.MsgSubmitTx>): _140.MsgSubmitTx; + fromAmino(object: _140.MsgSubmitTxAmino): _140.MsgSubmitTx; + toAmino(message: _140.MsgSubmitTx): _140.MsgSubmitTxAmino; + fromAminoMsg(object: _140.MsgSubmitTxAminoMsg): _140.MsgSubmitTx; + fromProtoMsg(message: _140.MsgSubmitTxProtoMsg): _140.MsgSubmitTx; + toProto(message: _140.MsgSubmitTx): Uint8Array; + toProtoMsg(message: _140.MsgSubmitTx): _140.MsgSubmitTxProtoMsg; }; MsgSubmitTxResponse: { - encode(_: _139.MsgSubmitTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _139.MsgSubmitTxResponse; - fromJSON(_: any): _139.MsgSubmitTxResponse; - toJSON(_: _139.MsgSubmitTxResponse): unknown; - fromPartial(_: Partial<_139.MsgSubmitTxResponse>): _139.MsgSubmitTxResponse; - fromAmino(_: _139.MsgSubmitTxResponseAmino): _139.MsgSubmitTxResponse; - toAmino(_: _139.MsgSubmitTxResponse): _139.MsgSubmitTxResponseAmino; - fromAminoMsg(object: _139.MsgSubmitTxResponseAminoMsg): _139.MsgSubmitTxResponse; - fromProtoMsg(message: _139.MsgSubmitTxResponseProtoMsg): _139.MsgSubmitTxResponse; - toProto(message: _139.MsgSubmitTxResponse): Uint8Array; - toProtoMsg(message: _139.MsgSubmitTxResponse): _139.MsgSubmitTxResponseProtoMsg; + typeUrl: string; + encode(_: _140.MsgSubmitTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgSubmitTxResponse; + fromJSON(_: any): _140.MsgSubmitTxResponse; + toJSON(_: _140.MsgSubmitTxResponse): unknown; + fromPartial(_: Partial<_140.MsgSubmitTxResponse>): _140.MsgSubmitTxResponse; + fromAmino(_: _140.MsgSubmitTxResponseAmino): _140.MsgSubmitTxResponse; + toAmino(_: _140.MsgSubmitTxResponse): _140.MsgSubmitTxResponseAmino; + fromAminoMsg(object: _140.MsgSubmitTxResponseAminoMsg): _140.MsgSubmitTxResponse; + fromProtoMsg(message: _140.MsgSubmitTxResponseProtoMsg): _140.MsgSubmitTxResponse; + toProto(message: _140.MsgSubmitTxResponse): Uint8Array; + toProtoMsg(message: _140.MsgSubmitTxResponse): _140.MsgSubmitTxResponseProtoMsg; }; QueryInterchainAccountRequest: { - encode(message: _138.QueryInterchainAccountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _138.QueryInterchainAccountRequest; - fromJSON(object: any): _138.QueryInterchainAccountRequest; - toJSON(message: _138.QueryInterchainAccountRequest): unknown; - fromPartial(object: Partial<_138.QueryInterchainAccountRequest>): _138.QueryInterchainAccountRequest; - fromAmino(object: _138.QueryInterchainAccountRequestAmino): _138.QueryInterchainAccountRequest; - toAmino(message: _138.QueryInterchainAccountRequest): _138.QueryInterchainAccountRequestAmino; - fromAminoMsg(object: _138.QueryInterchainAccountRequestAminoMsg): _138.QueryInterchainAccountRequest; - fromProtoMsg(message: _138.QueryInterchainAccountRequestProtoMsg): _138.QueryInterchainAccountRequest; - toProto(message: _138.QueryInterchainAccountRequest): Uint8Array; - toProtoMsg(message: _138.QueryInterchainAccountRequest): _138.QueryInterchainAccountRequestProtoMsg; + typeUrl: string; + encode(message: _139.QueryInterchainAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _139.QueryInterchainAccountRequest; + fromJSON(object: any): _139.QueryInterchainAccountRequest; + toJSON(message: _139.QueryInterchainAccountRequest): unknown; + fromPartial(object: Partial<_139.QueryInterchainAccountRequest>): _139.QueryInterchainAccountRequest; + fromAmino(object: _139.QueryInterchainAccountRequestAmino): _139.QueryInterchainAccountRequest; + toAmino(message: _139.QueryInterchainAccountRequest): _139.QueryInterchainAccountRequestAmino; + fromAminoMsg(object: _139.QueryInterchainAccountRequestAminoMsg): _139.QueryInterchainAccountRequest; + fromProtoMsg(message: _139.QueryInterchainAccountRequestProtoMsg): _139.QueryInterchainAccountRequest; + toProto(message: _139.QueryInterchainAccountRequest): Uint8Array; + toProtoMsg(message: _139.QueryInterchainAccountRequest): _139.QueryInterchainAccountRequestProtoMsg; }; QueryInterchainAccountResponse: { - encode(message: _138.QueryInterchainAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _138.QueryInterchainAccountResponse; - fromJSON(object: any): _138.QueryInterchainAccountResponse; - toJSON(message: _138.QueryInterchainAccountResponse): unknown; - fromPartial(object: Partial<_138.QueryInterchainAccountResponse>): _138.QueryInterchainAccountResponse; - fromAmino(object: _138.QueryInterchainAccountResponseAmino): _138.QueryInterchainAccountResponse; - toAmino(message: _138.QueryInterchainAccountResponse): _138.QueryInterchainAccountResponseAmino; - fromAminoMsg(object: _138.QueryInterchainAccountResponseAminoMsg): _138.QueryInterchainAccountResponse; - fromProtoMsg(message: _138.QueryInterchainAccountResponseProtoMsg): _138.QueryInterchainAccountResponse; - toProto(message: _138.QueryInterchainAccountResponse): Uint8Array; - toProtoMsg(message: _138.QueryInterchainAccountResponse): _138.QueryInterchainAccountResponseProtoMsg; + typeUrl: string; + encode(message: _139.QueryInterchainAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _139.QueryInterchainAccountResponse; + fromJSON(object: any): _139.QueryInterchainAccountResponse; + toJSON(message: _139.QueryInterchainAccountResponse): unknown; + fromPartial(object: Partial<_139.QueryInterchainAccountResponse>): _139.QueryInterchainAccountResponse; + fromAmino(object: _139.QueryInterchainAccountResponseAmino): _139.QueryInterchainAccountResponse; + toAmino(message: _139.QueryInterchainAccountResponse): _139.QueryInterchainAccountResponseAmino; + fromAminoMsg(object: _139.QueryInterchainAccountResponseAminoMsg): _139.QueryInterchainAccountResponse; + fromProtoMsg(message: _139.QueryInterchainAccountResponseProtoMsg): _139.QueryInterchainAccountResponse; + toProto(message: _139.QueryInterchainAccountResponse): Uint8Array; + toProtoMsg(message: _139.QueryInterchainAccountResponse): _139.QueryInterchainAccountResponseProtoMsg; }; }; } @@ -5758,20 +6079,20 @@ export declare namespace regen { }; regen: { data: { - v1: _264.MsgClientImpl; + v1: _265.MsgClientImpl; }; ecocredit: { basket: { - v1: _265.MsgClientImpl; + v1: _266.MsgClientImpl; }; marketplace: { - v1: _266.MsgClientImpl; + v1: _267.MsgClientImpl; }; - v1: _267.MsgClientImpl; - v1alpha1: _268.MsgClientImpl; + v1: _268.MsgClientImpl; + v1alpha1: _269.MsgClientImpl; }; intertx: { - v1: _269.MsgClientImpl; + v1: _270.MsgClientImpl; }; }; }>; @@ -5971,80 +6292,80 @@ export declare namespace regen { regen: { data: { v1: { - anchorByIRI(request: _113.QueryAnchorByIRIRequest): Promise<_113.QueryAnchorByIRIResponse>; - anchorByHash(request: _113.QueryAnchorByHashRequest): Promise<_113.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _113.QueryAttestationsByAttestorRequest): Promise<_113.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _113.QueryAttestationsByIRIRequest): Promise<_113.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _113.QueryAttestationsByHashRequest): Promise<_113.QueryAttestationsByHashResponse>; - resolver(request: _113.QueryResolverRequest): Promise<_113.QueryResolverResponse>; - resolversByIRI(request: _113.QueryResolversByIRIRequest): Promise<_113.QueryResolversByIRIResponse>; - resolversByHash(request: _113.QueryResolversByHashRequest): Promise<_113.QueryResolversByHashResponse>; - resolversByURL(request: _113.QueryResolversByURLRequest): Promise<_113.QueryResolversByURLResponse>; - convertIRIToHash(request: _113.ConvertIRIToHashRequest): Promise<_113.ConvertIRIToHashResponse>; - convertHashToIRI(request: _113.ConvertHashToIRIRequest): Promise<_113.ConvertHashToIRIResponse>; + anchorByIRI(request: _114.QueryAnchorByIRIRequest): Promise<_114.QueryAnchorByIRIResponse>; + anchorByHash(request: _114.QueryAnchorByHashRequest): Promise<_114.QueryAnchorByHashResponse>; + attestationsByAttestor(request: _114.QueryAttestationsByAttestorRequest): Promise<_114.QueryAttestationsByAttestorResponse>; + attestationsByIRI(request: _114.QueryAttestationsByIRIRequest): Promise<_114.QueryAttestationsByIRIResponse>; + attestationsByHash(request: _114.QueryAttestationsByHashRequest): Promise<_114.QueryAttestationsByHashResponse>; + resolver(request: _114.QueryResolverRequest): Promise<_114.QueryResolverResponse>; + resolversByIRI(request: _114.QueryResolversByIRIRequest): Promise<_114.QueryResolversByIRIResponse>; + resolversByHash(request: _114.QueryResolversByHashRequest): Promise<_114.QueryResolversByHashResponse>; + resolversByURL(request: _114.QueryResolversByURLRequest): Promise<_114.QueryResolversByURLResponse>; + convertIRIToHash(request: _114.ConvertIRIToHashRequest): Promise<_114.ConvertIRIToHashResponse>; + convertHashToIRI(request: _114.ConvertHashToIRIRequest): Promise<_114.ConvertHashToIRIResponse>; }; }; ecocredit: { basket: { v1: { - basket(request: _118.QueryBasketRequest): Promise<_118.QueryBasketResponse>; - baskets(request?: _118.QueryBasketsRequest | undefined): Promise<_118.QueryBasketsResponse>; - basketBalances(request: _118.QueryBasketBalancesRequest): Promise<_118.QueryBasketBalancesResponse>; - basketBalance(request: _118.QueryBasketBalanceRequest): Promise<_118.QueryBasketBalanceResponse>; - basketFee(request?: _118.QueryBasketFeeRequest | undefined): Promise<_118.QueryBasketFeeResponse>; + basket(request: _119.QueryBasketRequest): Promise<_119.QueryBasketResponse>; + baskets(request?: _119.QueryBasketsRequest | undefined): Promise<_119.QueryBasketsResponse>; + basketBalances(request: _119.QueryBasketBalancesRequest): Promise<_119.QueryBasketBalancesResponse>; + basketBalance(request: _119.QueryBasketBalanceRequest): Promise<_119.QueryBasketBalanceResponse>; + basketFee(request?: _119.QueryBasketFeeRequest | undefined): Promise<_119.QueryBasketFeeResponse>; }; }; marketplace: { v1: { - sellOrder(request: _123.QuerySellOrderRequest): Promise<_123.QuerySellOrderResponse>; - sellOrders(request?: _123.QuerySellOrdersRequest | undefined): Promise<_123.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _123.QuerySellOrdersByBatchRequest): Promise<_123.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _123.QuerySellOrdersBySellerRequest): Promise<_123.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _123.QueryAllowedDenomsRequest | undefined): Promise<_123.QueryAllowedDenomsResponse>; + sellOrder(request: _124.QuerySellOrderRequest): Promise<_124.QuerySellOrderResponse>; + sellOrders(request?: _124.QuerySellOrdersRequest | undefined): Promise<_124.QuerySellOrdersResponse>; + sellOrdersByBatch(request: _124.QuerySellOrdersByBatchRequest): Promise<_124.QuerySellOrdersByBatchResponse>; + sellOrdersBySeller(request: _124.QuerySellOrdersBySellerRequest): Promise<_124.QuerySellOrdersBySellerResponse>; + allowedDenoms(request?: _124.QueryAllowedDenomsRequest | undefined): Promise<_124.QueryAllowedDenomsResponse>; }; }; v1: { - classes(request?: _129.QueryClassesRequest | undefined): Promise<_129.QueryClassesResponse>; - classesByAdmin(request: _129.QueryClassesByAdminRequest): Promise<_129.QueryClassesByAdminResponse>; - class(request: _129.QueryClassRequest): Promise<_129.QueryClassResponse>; - classIssuers(request: _129.QueryClassIssuersRequest): Promise<_129.QueryClassIssuersResponse>; - projects(request?: _129.QueryProjectsRequest | undefined): Promise<_129.QueryProjectsResponse>; - projectsByClass(request: _129.QueryProjectsByClassRequest): Promise<_129.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _129.QueryProjectsByReferenceIdRequest): Promise<_129.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _129.QueryProjectsByAdminRequest): Promise<_129.QueryProjectsByAdminResponse>; - project(request: _129.QueryProjectRequest): Promise<_129.QueryProjectResponse>; - batches(request?: _129.QueryBatchesRequest | undefined): Promise<_129.QueryBatchesResponse>; - batchesByIssuer(request: _129.QueryBatchesByIssuerRequest): Promise<_129.QueryBatchesByIssuerResponse>; - batchesByClass(request: _129.QueryBatchesByClassRequest): Promise<_129.QueryBatchesByClassResponse>; - batchesByProject(request: _129.QueryBatchesByProjectRequest): Promise<_129.QueryBatchesByProjectResponse>; - batch(request: _129.QueryBatchRequest): Promise<_129.QueryBatchResponse>; - balance(request: _129.QueryBalanceRequest): Promise<_129.QueryBalanceResponse>; - balances(request: _129.QueryBalancesRequest): Promise<_129.QueryBalancesResponse>; - balancesByBatch(request: _129.QueryBalancesByBatchRequest): Promise<_129.QueryBalancesByBatchResponse>; - allBalances(request?: _129.QueryAllBalancesRequest | undefined): Promise<_129.QueryAllBalancesResponse>; - supply(request: _129.QuerySupplyRequest): Promise<_129.QuerySupplyResponse>; - creditTypes(request?: _129.QueryCreditTypesRequest | undefined): Promise<_129.QueryCreditTypesResponse>; - params(request?: _129.QueryParamsRequest | undefined): Promise<_129.QueryParamsResponse>; - creditType(request: _129.QueryCreditTypeRequest): Promise<_129.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _129.QueryClassCreatorAllowlistRequest | undefined): Promise<_129.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _129.QueryAllowedClassCreatorsRequest | undefined): Promise<_129.QueryAllowedClassCreatorsResponse>; - classFee(request?: _129.QueryClassFeeRequest | undefined): Promise<_129.QueryClassFeeResponse>; - allowedBridgeChains(request?: _129.QueryAllowedBridgeChainsRequest | undefined): Promise<_129.QueryAllowedBridgeChainsResponse>; + classes(request?: _130.QueryClassesRequest | undefined): Promise<_130.QueryClassesResponse>; + classesByAdmin(request: _130.QueryClassesByAdminRequest): Promise<_130.QueryClassesByAdminResponse>; + class(request: _130.QueryClassRequest): Promise<_130.QueryClassResponse>; + classIssuers(request: _130.QueryClassIssuersRequest): Promise<_130.QueryClassIssuersResponse>; + projects(request?: _130.QueryProjectsRequest | undefined): Promise<_130.QueryProjectsResponse>; + projectsByClass(request: _130.QueryProjectsByClassRequest): Promise<_130.QueryProjectsByClassResponse>; + projectsByReferenceId(request: _130.QueryProjectsByReferenceIdRequest): Promise<_130.QueryProjectsByReferenceIdResponse>; + projectsByAdmin(request: _130.QueryProjectsByAdminRequest): Promise<_130.QueryProjectsByAdminResponse>; + project(request: _130.QueryProjectRequest): Promise<_130.QueryProjectResponse>; + batches(request?: _130.QueryBatchesRequest | undefined): Promise<_130.QueryBatchesResponse>; + batchesByIssuer(request: _130.QueryBatchesByIssuerRequest): Promise<_130.QueryBatchesByIssuerResponse>; + batchesByClass(request: _130.QueryBatchesByClassRequest): Promise<_130.QueryBatchesByClassResponse>; + batchesByProject(request: _130.QueryBatchesByProjectRequest): Promise<_130.QueryBatchesByProjectResponse>; + batch(request: _130.QueryBatchRequest): Promise<_130.QueryBatchResponse>; + balance(request: _130.QueryBalanceRequest): Promise<_130.QueryBalanceResponse>; + balances(request: _130.QueryBalancesRequest): Promise<_130.QueryBalancesResponse>; + balancesByBatch(request: _130.QueryBalancesByBatchRequest): Promise<_130.QueryBalancesByBatchResponse>; + allBalances(request?: _130.QueryAllBalancesRequest | undefined): Promise<_130.QueryAllBalancesResponse>; + supply(request: _130.QuerySupplyRequest): Promise<_130.QuerySupplyResponse>; + creditTypes(request?: _130.QueryCreditTypesRequest | undefined): Promise<_130.QueryCreditTypesResponse>; + params(request?: _130.QueryParamsRequest | undefined): Promise<_130.QueryParamsResponse>; + creditType(request: _130.QueryCreditTypeRequest): Promise<_130.QueryCreditTypeResponse>; + classCreatorAllowlist(request?: _130.QueryClassCreatorAllowlistRequest | undefined): Promise<_130.QueryClassCreatorAllowlistResponse>; + allowedClassCreators(request?: _130.QueryAllowedClassCreatorsRequest | undefined): Promise<_130.QueryAllowedClassCreatorsResponse>; + classFee(request?: _130.QueryClassFeeRequest | undefined): Promise<_130.QueryClassFeeResponse>; + allowedBridgeChains(request?: _130.QueryAllowedBridgeChainsRequest | undefined): Promise<_130.QueryAllowedBridgeChainsResponse>; }; v1alpha1: { - classes(request?: _135.QueryClassesRequest | undefined): Promise<_135.QueryClassesResponse>; - classInfo(request: _135.QueryClassInfoRequest): Promise<_135.QueryClassInfoResponse>; - batches(request: _135.QueryBatchesRequest): Promise<_135.QueryBatchesResponse>; - batchInfo(request: _135.QueryBatchInfoRequest): Promise<_135.QueryBatchInfoResponse>; - balance(request: _135.QueryBalanceRequest): Promise<_135.QueryBalanceResponse>; - supply(request: _135.QuerySupplyRequest): Promise<_135.QuerySupplyResponse>; - creditTypes(request?: _135.QueryCreditTypesRequest | undefined): Promise<_135.QueryCreditTypesResponse>; - params(request?: _135.QueryParamsRequest | undefined): Promise<_135.QueryParamsResponse>; + classes(request?: _136.QueryClassesRequest | undefined): Promise<_136.QueryClassesResponse>; + classInfo(request: _136.QueryClassInfoRequest): Promise<_136.QueryClassInfoResponse>; + batches(request: _136.QueryBatchesRequest): Promise<_136.QueryBatchesResponse>; + batchInfo(request: _136.QueryBatchInfoRequest): Promise<_136.QueryBatchInfoResponse>; + balance(request: _136.QueryBalanceRequest): Promise<_136.QueryBalanceResponse>; + supply(request: _136.QuerySupplyRequest): Promise<_136.QuerySupplyResponse>; + creditTypes(request?: _136.QueryCreditTypesRequest | undefined): Promise<_136.QueryCreditTypesResponse>; + params(request?: _136.QueryParamsRequest | undefined): Promise<_136.QueryParamsResponse>; }; }; intertx: { v1: { - interchainAccount(request: _138.QueryInterchainAccountRequest): Promise<_138.QueryInterchainAccountResponse>; + interchainAccount(request: _139.QueryInterchainAccountRequest): Promise<_139.QueryInterchainAccountResponse>; }; }; }; @@ -6110,20 +6431,20 @@ export declare namespace regen { }; regen: { data: { - v1: _252.LCDQueryClient; + v1: _253.LCDQueryClient; }; ecocredit: { basket: { - v1: _253.LCDQueryClient; + v1: _254.LCDQueryClient; }; marketplace: { - v1: _254.LCDQueryClient; + v1: _255.LCDQueryClient; }; - v1: _255.LCDQueryClient; - v1alpha1: _256.LCDQueryClient; + v1: _256.LCDQueryClient; + v1alpha1: _257.LCDQueryClient; }; intertx: { - v1: _257.LCDQueryClient; + v1: _258.LCDQueryClient; }; }; }>; diff --git a/packages/api/types/codegen/regen/data/v1/events.d.ts b/packages/api/types/codegen/regen/data/v1/events.d.ts index bc07639d..5efb9020 100644 --- a/packages/api/types/codegen/regen/data/v1/events.d.ts +++ b/packages/api/types/codegen/regen/data/v1/events.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventAnchor is an event emitted when data is anchored on chain. */ export interface EventAnchor { /** iri is the IRI of the data anchored on chain. */ @@ -12,7 +11,7 @@ export interface EventAnchorProtoMsg { /** EventAnchor is an event emitted when data is anchored on chain. */ export interface EventAnchorAmino { /** iri is the IRI of the data anchored on chain. */ - iri: string; + iri?: string; } export interface EventAnchorAminoMsg { type: "/regen.data.v1.EventAnchor"; @@ -39,12 +38,12 @@ export interface EventAttestProtoMsg { /** EventAttest is an event emitted when data is attested to on chain. */ export interface EventAttestAmino { /** iri is the IRI of the data attested to. */ - iri: string; + iri?: string; /** * attestor is the address of the account that has attested to the veracity of * the data. */ - attestor: string; + attestor?: string; } export interface EventAttestAminoMsg { type: "/regen.data.v1.EventAttest"; @@ -58,7 +57,7 @@ export interface EventAttestSDKType { /** EventDefineResolver is an event emitted when a resolved is defined on chain. */ export interface EventDefineResolver { /** id is the ID of the defined resolver. */ - id: Long; + id: bigint; } export interface EventDefineResolverProtoMsg { typeUrl: "/regen.data.v1.EventDefineResolver"; @@ -67,7 +66,7 @@ export interface EventDefineResolverProtoMsg { /** EventDefineResolver is an event emitted when a resolved is defined on chain. */ export interface EventDefineResolverAmino { /** id is the ID of the defined resolver. */ - id: string; + id?: string; } export interface EventDefineResolverAminoMsg { type: "/regen.data.v1.EventDefineResolver"; @@ -75,7 +74,7 @@ export interface EventDefineResolverAminoMsg { } /** EventDefineResolver is an event emitted when a resolved is defined on chain. */ export interface EventDefineResolverSDKType { - id: Long; + id: bigint; } /** * EventRegisterResolver is an event emitted when data is registered to a @@ -83,7 +82,7 @@ export interface EventDefineResolverSDKType { */ export interface EventRegisterResolver { /** id is the ID of the resolver that the data was registered to. */ - id: Long; + id: bigint; /** iri is the IRI of the data that was registered. */ iri: string; } @@ -97,9 +96,9 @@ export interface EventRegisterResolverProtoMsg { */ export interface EventRegisterResolverAmino { /** id is the ID of the resolver that the data was registered to. */ - id: string; + id?: string; /** iri is the IRI of the data that was registered. */ - iri: string; + iri?: string; } export interface EventRegisterResolverAminoMsg { type: "/regen.data.v1.EventRegisterResolver"; @@ -110,12 +109,13 @@ export interface EventRegisterResolverAminoMsg { * resolver on chain. */ export interface EventRegisterResolverSDKType { - id: Long; + id: bigint; iri: string; } export declare const EventAnchor: { - encode(message: EventAnchor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventAnchor; + typeUrl: string; + encode(message: EventAnchor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor; fromJSON(object: any): EventAnchor; toJSON(message: EventAnchor): unknown; fromPartial(object: Partial): EventAnchor; @@ -127,8 +127,9 @@ export declare const EventAnchor: { toProtoMsg(message: EventAnchor): EventAnchorProtoMsg; }; export declare const EventAttest: { - encode(message: EventAttest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventAttest; + typeUrl: string; + encode(message: EventAttest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAttest; fromJSON(object: any): EventAttest; toJSON(message: EventAttest): unknown; fromPartial(object: Partial): EventAttest; @@ -140,8 +141,9 @@ export declare const EventAttest: { toProtoMsg(message: EventAttest): EventAttestProtoMsg; }; export declare const EventDefineResolver: { - encode(message: EventDefineResolver, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventDefineResolver; + typeUrl: string; + encode(message: EventDefineResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver; fromJSON(object: any): EventDefineResolver; toJSON(message: EventDefineResolver): unknown; fromPartial(object: Partial): EventDefineResolver; @@ -153,8 +155,9 @@ export declare const EventDefineResolver: { toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg; }; export declare const EventRegisterResolver: { - encode(message: EventRegisterResolver, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventRegisterResolver; + typeUrl: string; + encode(message: EventRegisterResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver; fromJSON(object: any): EventRegisterResolver; toJSON(message: EventRegisterResolver): unknown; fromPartial(object: Partial): EventRegisterResolver; diff --git a/packages/api/types/codegen/regen/data/v1/query.d.ts b/packages/api/types/codegen/regen/data/v1/query.d.ts index ff71bdd1..bc017f0b 100644 --- a/packages/api/types/codegen/regen/data/v1/query.d.ts +++ b/packages/api/types/codegen/regen/data/v1/query.d.ts @@ -1,8 +1,7 @@ import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ export interface QueryAnchorByIRIRequest { /** iri is the IRI of the anchored data. */ @@ -15,7 +14,7 @@ export interface QueryAnchorByIRIRequestProtoMsg { /** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ export interface QueryAnchorByIRIRequestAmino { /** iri is the IRI of the anchored data. */ - iri: string; + iri?: string; } export interface QueryAnchorByIRIRequestAminoMsg { type: "/regen.data.v1.QueryAnchorByIRIRequest"; @@ -28,7 +27,7 @@ export interface QueryAnchorByIRIRequestSDKType { /** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ export interface QueryAnchorByIRIResponse { /** anchor is information about the data anchor. */ - anchor: AnchorInfo; + anchor?: AnchorInfo; } export interface QueryAnchorByIRIResponseProtoMsg { typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; @@ -45,12 +44,12 @@ export interface QueryAnchorByIRIResponseAminoMsg { } /** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ export interface QueryAnchorByIRIResponseSDKType { - anchor: AnchorInfoSDKType; + anchor?: AnchorInfoSDKType; } /** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ export interface QueryAnchorByHashRequest { /** content_hash is the ContentHash of the anchored data. */ - contentHash: ContentHash; + contentHash?: ContentHash; } export interface QueryAnchorByHashRequestProtoMsg { typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; @@ -67,12 +66,12 @@ export interface QueryAnchorByHashRequestAminoMsg { } /** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ export interface QueryAnchorByHashRequestSDKType { - content_hash: ContentHashSDKType; + content_hash?: ContentHashSDKType; } /** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ export interface QueryAnchorByHashResponse { /** anchor is information about the data anchor. */ - anchor: AnchorInfo; + anchor?: AnchorInfo; } export interface QueryAnchorByHashResponseProtoMsg { typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; @@ -89,7 +88,7 @@ export interface QueryAnchorByHashResponseAminoMsg { } /** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ export interface QueryAnchorByHashResponseSDKType { - anchor: AnchorInfoSDKType; + anchor?: AnchorInfoSDKType; } /** * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor @@ -99,7 +98,7 @@ export interface QueryAttestationsByAttestorRequest { /** attestor is the address of the attestor. */ attestor: string; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAttestationsByAttestorRequestProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; @@ -111,7 +110,7 @@ export interface QueryAttestationsByAttestorRequestProtoMsg { */ export interface QueryAttestationsByAttestorRequestAmino { /** attestor is the address of the attestor. */ - attestor: string; + attestor?: string; /** pagination is the PageRequest to use for pagination. */ pagination?: PageRequestAmino; } @@ -125,7 +124,7 @@ export interface QueryAttestationsByAttestorRequestAminoMsg { */ export interface QueryAttestationsByAttestorRequestSDKType { attestor: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor @@ -135,7 +134,7 @@ export interface QueryAttestationsByAttestorResponse { /** attestations are the attestations by the attestor. */ attestations: AttestationInfo[]; /** pagination is the pagination PageResponse. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAttestationsByAttestorResponseProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; @@ -147,7 +146,7 @@ export interface QueryAttestationsByAttestorResponseProtoMsg { */ export interface QueryAttestationsByAttestorResponseAmino { /** attestations are the attestations by the attestor. */ - attestations: AttestationInfoAmino[]; + attestations?: AttestationInfoAmino[]; /** pagination is the pagination PageResponse. */ pagination?: PageResponseAmino; } @@ -161,14 +160,14 @@ export interface QueryAttestationsByAttestorResponseAminoMsg { */ export interface QueryAttestationsByAttestorResponseSDKType { attestations: AttestationInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ export interface QueryAttestationsByIRIRequest { /** iri is the IRI of the anchored data. */ iri: string; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAttestationsByIRIRequestProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; @@ -177,7 +176,7 @@ export interface QueryAttestationsByIRIRequestProtoMsg { /** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ export interface QueryAttestationsByIRIRequestAmino { /** iri is the IRI of the anchored data. */ - iri: string; + iri?: string; /** pagination is the PageRequest to use for pagination. */ pagination?: PageRequestAmino; } @@ -188,14 +187,14 @@ export interface QueryAttestationsByIRIRequestAminoMsg { /** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ export interface QueryAttestationsByIRIRequestSDKType { iri: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ export interface QueryAttestationsByIRIResponse { /** attestations are the attestations that have been made to the anchored data. */ attestations: AttestationInfo[]; /** pagination is the pagination PageResponse. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAttestationsByIRIResponseProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; @@ -204,7 +203,7 @@ export interface QueryAttestationsByIRIResponseProtoMsg { /** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ export interface QueryAttestationsByIRIResponseAmino { /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfoAmino[]; + attestations?: AttestationInfoAmino[]; /** pagination is the pagination PageResponse. */ pagination?: PageResponseAmino; } @@ -215,14 +214,14 @@ export interface QueryAttestationsByIRIResponseAminoMsg { /** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ export interface QueryAttestationsByIRIResponseSDKType { attestations: AttestationInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ export interface QueryAttestationsByHashRequest { /** content_hash is the ContentHash of the anchored data. */ - contentHash: ContentHash; + contentHash?: ContentHash; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAttestationsByHashRequestProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; @@ -241,8 +240,8 @@ export interface QueryAttestationsByHashRequestAminoMsg { } /** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ export interface QueryAttestationsByHashRequestSDKType { - content_hash: ContentHashSDKType; - pagination: PageRequestSDKType; + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; } /** * QueryAttestationsByHashResponse is the Query/AttestationsByHash response @@ -252,7 +251,7 @@ export interface QueryAttestationsByHashResponse { /** attestations are the attestations that have been made to the anchored data. */ attestations: AttestationInfo[]; /** pagination is the pagination PageResponse. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAttestationsByHashResponseProtoMsg { typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; @@ -264,7 +263,7 @@ export interface QueryAttestationsByHashResponseProtoMsg { */ export interface QueryAttestationsByHashResponseAmino { /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfoAmino[]; + attestations?: AttestationInfoAmino[]; /** pagination is the pagination PageResponse. */ pagination?: PageResponseAmino; } @@ -278,12 +277,12 @@ export interface QueryAttestationsByHashResponseAminoMsg { */ export interface QueryAttestationsByHashResponseSDKType { attestations: AttestationInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryResolverRequest is the Query/Resolver request type. */ export interface QueryResolverRequest { /** id is the ID of the resolver. */ - id: Long; + id: bigint; } export interface QueryResolverRequestProtoMsg { typeUrl: "/regen.data.v1.QueryResolverRequest"; @@ -292,7 +291,7 @@ export interface QueryResolverRequestProtoMsg { /** QueryResolverRequest is the Query/Resolver request type. */ export interface QueryResolverRequestAmino { /** id is the ID of the resolver. */ - id: string; + id?: string; } export interface QueryResolverRequestAminoMsg { type: "/regen.data.v1.QueryResolverRequest"; @@ -300,12 +299,12 @@ export interface QueryResolverRequestAminoMsg { } /** QueryResolverRequest is the Query/Resolver request type. */ export interface QueryResolverRequestSDKType { - id: Long; + id: bigint; } /** QueryResolverResponse is the Query/Resolver response type. */ export interface QueryResolverResponse { /** resolver is information about the resolver. */ - resolver: ResolverInfo; + resolver?: ResolverInfo; } export interface QueryResolverResponseProtoMsg { typeUrl: "/regen.data.v1.QueryResolverResponse"; @@ -322,14 +321,14 @@ export interface QueryResolverResponseAminoMsg { } /** QueryResolverResponse is the Query/Resolver response type. */ export interface QueryResolverResponseSDKType { - resolver: ResolverInfoSDKType; + resolver?: ResolverInfoSDKType; } /** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ export interface QueryResolversByIRIRequest { /** iri is the IRI of the anchored data. */ iri: string; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryResolversByIRIRequestProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; @@ -338,7 +337,7 @@ export interface QueryResolversByIRIRequestProtoMsg { /** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ export interface QueryResolversByIRIRequestAmino { /** iri is the IRI of the anchored data. */ - iri: string; + iri?: string; /** pagination is the PageRequest to use for pagination. */ pagination?: PageRequestAmino; } @@ -349,14 +348,14 @@ export interface QueryResolversByIRIRequestAminoMsg { /** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ export interface QueryResolversByIRIRequestSDKType { iri: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ export interface QueryResolversByIRIResponse { /** resolvers are the resolvers that have registered the anchored data. */ resolvers: ResolverInfo[]; /** pagination is the PageResponse to use for pagination. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryResolversByIRIResponseProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; @@ -365,7 +364,7 @@ export interface QueryResolversByIRIResponseProtoMsg { /** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ export interface QueryResolversByIRIResponseAmino { /** resolvers are the resolvers that have registered the anchored data. */ - resolvers: ResolverInfoAmino[]; + resolvers?: ResolverInfoAmino[]; /** pagination is the PageResponse to use for pagination. */ pagination?: PageResponseAmino; } @@ -376,14 +375,14 @@ export interface QueryResolversByIRIResponseAminoMsg { /** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ export interface QueryResolversByIRIResponseSDKType { resolvers: ResolverInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ export interface QueryResolversByHashRequest { /** content_hash is the ContentHash of the anchored data. */ - contentHash: ContentHash; + contentHash?: ContentHash; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryResolversByHashRequestProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; @@ -402,15 +401,15 @@ export interface QueryResolversByHashRequestAminoMsg { } /** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ export interface QueryResolversByHashRequestSDKType { - content_hash: ContentHashSDKType; - pagination: PageRequestSDKType; + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; } /** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ export interface QueryResolversByHashResponse { /** resolvers are the resolvers that have registered the data. */ resolvers: ResolverInfo[]; /** pagination is the PageResponse to use for pagination. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryResolversByHashResponseProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; @@ -419,7 +418,7 @@ export interface QueryResolversByHashResponseProtoMsg { /** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ export interface QueryResolversByHashResponseAmino { /** resolvers are the resolvers that have registered the data. */ - resolvers: ResolverInfoAmino[]; + resolvers?: ResolverInfoAmino[]; /** pagination is the PageResponse to use for pagination. */ pagination?: PageResponseAmino; } @@ -430,14 +429,14 @@ export interface QueryResolversByHashResponseAminoMsg { /** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ export interface QueryResolversByHashResponseSDKType { resolvers: ResolverInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ export interface QueryResolversByURLRequest { /** url is the URL of the resolver. */ url: string; /** pagination is the PageRequest to use for pagination. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryResolversByURLRequestProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; @@ -446,7 +445,7 @@ export interface QueryResolversByURLRequestProtoMsg { /** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ export interface QueryResolversByURLRequestAmino { /** url is the URL of the resolver. */ - url: string; + url?: string; /** pagination is the PageRequest to use for pagination. */ pagination?: PageRequestAmino; } @@ -457,14 +456,14 @@ export interface QueryResolversByURLRequestAminoMsg { /** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ export interface QueryResolversByURLRequestSDKType { url: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ export interface QueryResolversByURLResponse { /** resolvers are the resolvers that have a matching URL. */ resolvers: ResolverInfo[]; /** pagination is the PageResponse to use for pagination. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryResolversByURLResponseProtoMsg { typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; @@ -473,7 +472,7 @@ export interface QueryResolversByURLResponseProtoMsg { /** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ export interface QueryResolversByURLResponseAmino { /** resolvers are the resolvers that have a matching URL. */ - resolvers: ResolverInfoAmino[]; + resolvers?: ResolverInfoAmino[]; /** pagination is the PageResponse to use for pagination. */ pagination?: PageResponseAmino; } @@ -484,7 +483,7 @@ export interface QueryResolversByURLResponseAminoMsg { /** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ export interface QueryResolversByURLResponseSDKType { resolvers: ResolverInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ export interface ConvertIRIToHashRequest { @@ -498,7 +497,7 @@ export interface ConvertIRIToHashRequestProtoMsg { /** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ export interface ConvertIRIToHashRequestAmino { /** iri is the IRI to convert to a ContentHash. */ - iri: string; + iri?: string; } export interface ConvertIRIToHashRequestAminoMsg { type: "/regen.data.v1.ConvertIRIToHashRequest"; @@ -511,7 +510,7 @@ export interface ConvertIRIToHashRequestSDKType { /** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ export interface ConvertIRIToHashResponse { /** content_hash is the ContentHash converted from the IRI. */ - contentHash: ContentHash; + contentHash?: ContentHash; } export interface ConvertIRIToHashResponseProtoMsg { typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; @@ -528,12 +527,12 @@ export interface ConvertIRIToHashResponseAminoMsg { } /** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ export interface ConvertIRIToHashResponseSDKType { - content_hash: ContentHashSDKType; + content_hash?: ContentHashSDKType; } /** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ export interface ConvertHashToIRIRequest { /** content_hash is the ContentHash to convert to an IRI. */ - contentHash: ContentHash; + contentHash?: ContentHash; } export interface ConvertHashToIRIRequestProtoMsg { typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; @@ -550,7 +549,7 @@ export interface ConvertHashToIRIRequestAminoMsg { } /** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ export interface ConvertHashToIRIRequestSDKType { - content_hash: ContentHashSDKType; + content_hash?: ContentHashSDKType; } /** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ export interface ConvertHashToIRIResponse { @@ -564,7 +563,7 @@ export interface ConvertHashToIRIResponseProtoMsg { /** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ export interface ConvertHashToIRIResponseAmino { /** iri is the IRI converted from the ContentHash. */ - iri: string; + iri?: string; } export interface ConvertHashToIRIResponseAminoMsg { type: "/regen.data.v1.ConvertHashToIRIResponse"; @@ -579,9 +578,9 @@ export interface AnchorInfo { /** iri is the IRI of the anchored data. */ iri: string; /** content_hash is the ContentHash of the anchored data. */ - contentHash: ContentHash; + contentHash?: ContentHash; /** timestamp is the time at which the data was anchored. */ - timestamp: Timestamp; + timestamp?: Timestamp; } export interface AnchorInfoProtoMsg { typeUrl: "/regen.data.v1.AnchorInfo"; @@ -590,11 +589,11 @@ export interface AnchorInfoProtoMsg { /** AnchorInfo is the information for a data anchor. */ export interface AnchorInfoAmino { /** iri is the IRI of the anchored data. */ - iri: string; + iri?: string; /** content_hash is the ContentHash of the anchored data. */ content_hash?: ContentHashAmino; /** timestamp is the time at which the data was anchored. */ - timestamp?: TimestampAmino; + timestamp?: string; } export interface AnchorInfoAminoMsg { type: "/regen.data.v1.AnchorInfo"; @@ -603,8 +602,8 @@ export interface AnchorInfoAminoMsg { /** AnchorInfo is the information for a data anchor. */ export interface AnchorInfoSDKType { iri: string; - content_hash: ContentHashSDKType; - timestamp: TimestampSDKType; + content_hash?: ContentHashSDKType; + timestamp?: TimestampSDKType; } /** AttestationInfo is the information for an attestation. */ export interface AttestationInfo { @@ -613,7 +612,7 @@ export interface AttestationInfo { /** attestor is the address of the account that attested to the anchored data. */ attestor: string; /** timestamp is the time at which the data was attested to. */ - timestamp: Timestamp; + timestamp?: Timestamp; } export interface AttestationInfoProtoMsg { typeUrl: "/regen.data.v1.AttestationInfo"; @@ -622,11 +621,11 @@ export interface AttestationInfoProtoMsg { /** AttestationInfo is the information for an attestation. */ export interface AttestationInfoAmino { /** iri is the IRI of the anchored data. */ - iri: string; + iri?: string; /** attestor is the address of the account that attested to the anchored data. */ - attestor: string; + attestor?: string; /** timestamp is the time at which the data was attested to. */ - timestamp?: TimestampAmino; + timestamp?: string; } export interface AttestationInfoAminoMsg { type: "/regen.data.v1.AttestationInfo"; @@ -636,12 +635,12 @@ export interface AttestationInfoAminoMsg { export interface AttestationInfoSDKType { iri: string; attestor: string; - timestamp: TimestampSDKType; + timestamp?: TimestampSDKType; } /** ResolverInfo is the information for a resolver. */ export interface ResolverInfo { /** id is the ID of the resolver. */ - id: Long; + id: bigint; /** url is the URL of the resolver. */ url: string; /** manager is the address of the account that manages the resolver. */ @@ -654,11 +653,11 @@ export interface ResolverInfoProtoMsg { /** ResolverInfo is the information for a resolver. */ export interface ResolverInfoAmino { /** id is the ID of the resolver. */ - id: string; + id?: string; /** url is the URL of the resolver. */ - url: string; + url?: string; /** manager is the address of the account that manages the resolver. */ - manager: string; + manager?: string; } export interface ResolverInfoAminoMsg { type: "/regen.data.v1.ResolverInfo"; @@ -666,13 +665,14 @@ export interface ResolverInfoAminoMsg { } /** ResolverInfo is the information for a resolver. */ export interface ResolverInfoSDKType { - id: Long; + id: bigint; url: string; manager: string; } export declare const QueryAnchorByIRIRequest: { - encode(message: QueryAnchorByIRIRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnchorByIRIRequest; + typeUrl: string; + encode(message: QueryAnchorByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest; fromJSON(object: any): QueryAnchorByIRIRequest; toJSON(message: QueryAnchorByIRIRequest): unknown; fromPartial(object: Partial): QueryAnchorByIRIRequest; @@ -684,8 +684,9 @@ export declare const QueryAnchorByIRIRequest: { toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg; }; export declare const QueryAnchorByIRIResponse: { - encode(message: QueryAnchorByIRIResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnchorByIRIResponse; + typeUrl: string; + encode(message: QueryAnchorByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse; fromJSON(object: any): QueryAnchorByIRIResponse; toJSON(message: QueryAnchorByIRIResponse): unknown; fromPartial(object: Partial): QueryAnchorByIRIResponse; @@ -697,8 +698,9 @@ export declare const QueryAnchorByIRIResponse: { toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg; }; export declare const QueryAnchorByHashRequest: { - encode(message: QueryAnchorByHashRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnchorByHashRequest; + typeUrl: string; + encode(message: QueryAnchorByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest; fromJSON(object: any): QueryAnchorByHashRequest; toJSON(message: QueryAnchorByHashRequest): unknown; fromPartial(object: Partial): QueryAnchorByHashRequest; @@ -710,8 +712,9 @@ export declare const QueryAnchorByHashRequest: { toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg; }; export declare const QueryAnchorByHashResponse: { - encode(message: QueryAnchorByHashResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnchorByHashResponse; + typeUrl: string; + encode(message: QueryAnchorByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse; fromJSON(object: any): QueryAnchorByHashResponse; toJSON(message: QueryAnchorByHashResponse): unknown; fromPartial(object: Partial): QueryAnchorByHashResponse; @@ -723,8 +726,9 @@ export declare const QueryAnchorByHashResponse: { toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg; }; export declare const QueryAttestationsByAttestorRequest: { - encode(message: QueryAttestationsByAttestorRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest; + typeUrl: string; + encode(message: QueryAttestationsByAttestorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest; fromJSON(object: any): QueryAttestationsByAttestorRequest; toJSON(message: QueryAttestationsByAttestorRequest): unknown; fromPartial(object: Partial): QueryAttestationsByAttestorRequest; @@ -736,8 +740,9 @@ export declare const QueryAttestationsByAttestorRequest: { toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg; }; export declare const QueryAttestationsByAttestorResponse: { - encode(message: QueryAttestationsByAttestorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse; + typeUrl: string; + encode(message: QueryAttestationsByAttestorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse; fromJSON(object: any): QueryAttestationsByAttestorResponse; toJSON(message: QueryAttestationsByAttestorResponse): unknown; fromPartial(object: Partial): QueryAttestationsByAttestorResponse; @@ -749,8 +754,9 @@ export declare const QueryAttestationsByAttestorResponse: { toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg; }; export declare const QueryAttestationsByIRIRequest: { - encode(message: QueryAttestationsByIRIRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByIRIRequest; + typeUrl: string; + encode(message: QueryAttestationsByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest; fromJSON(object: any): QueryAttestationsByIRIRequest; toJSON(message: QueryAttestationsByIRIRequest): unknown; fromPartial(object: Partial): QueryAttestationsByIRIRequest; @@ -762,8 +768,9 @@ export declare const QueryAttestationsByIRIRequest: { toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg; }; export declare const QueryAttestationsByIRIResponse: { - encode(message: QueryAttestationsByIRIResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByIRIResponse; + typeUrl: string; + encode(message: QueryAttestationsByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse; fromJSON(object: any): QueryAttestationsByIRIResponse; toJSON(message: QueryAttestationsByIRIResponse): unknown; fromPartial(object: Partial): QueryAttestationsByIRIResponse; @@ -775,8 +782,9 @@ export declare const QueryAttestationsByIRIResponse: { toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg; }; export declare const QueryAttestationsByHashRequest: { - encode(message: QueryAttestationsByHashRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByHashRequest; + typeUrl: string; + encode(message: QueryAttestationsByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest; fromJSON(object: any): QueryAttestationsByHashRequest; toJSON(message: QueryAttestationsByHashRequest): unknown; fromPartial(object: Partial): QueryAttestationsByHashRequest; @@ -788,8 +796,9 @@ export declare const QueryAttestationsByHashRequest: { toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg; }; export declare const QueryAttestationsByHashResponse: { - encode(message: QueryAttestationsByHashResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAttestationsByHashResponse; + typeUrl: string; + encode(message: QueryAttestationsByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse; fromJSON(object: any): QueryAttestationsByHashResponse; toJSON(message: QueryAttestationsByHashResponse): unknown; fromPartial(object: Partial): QueryAttestationsByHashResponse; @@ -801,8 +810,9 @@ export declare const QueryAttestationsByHashResponse: { toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg; }; export declare const QueryResolverRequest: { - encode(message: QueryResolverRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolverRequest; + typeUrl: string; + encode(message: QueryResolverRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest; fromJSON(object: any): QueryResolverRequest; toJSON(message: QueryResolverRequest): unknown; fromPartial(object: Partial): QueryResolverRequest; @@ -814,8 +824,9 @@ export declare const QueryResolverRequest: { toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg; }; export declare const QueryResolverResponse: { - encode(message: QueryResolverResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolverResponse; + typeUrl: string; + encode(message: QueryResolverResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse; fromJSON(object: any): QueryResolverResponse; toJSON(message: QueryResolverResponse): unknown; fromPartial(object: Partial): QueryResolverResponse; @@ -827,8 +838,9 @@ export declare const QueryResolverResponse: { toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg; }; export declare const QueryResolversByIRIRequest: { - encode(message: QueryResolversByIRIRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByIRIRequest; + typeUrl: string; + encode(message: QueryResolversByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest; fromJSON(object: any): QueryResolversByIRIRequest; toJSON(message: QueryResolversByIRIRequest): unknown; fromPartial(object: Partial): QueryResolversByIRIRequest; @@ -840,8 +852,9 @@ export declare const QueryResolversByIRIRequest: { toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg; }; export declare const QueryResolversByIRIResponse: { - encode(message: QueryResolversByIRIResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByIRIResponse; + typeUrl: string; + encode(message: QueryResolversByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse; fromJSON(object: any): QueryResolversByIRIResponse; toJSON(message: QueryResolversByIRIResponse): unknown; fromPartial(object: Partial): QueryResolversByIRIResponse; @@ -853,8 +866,9 @@ export declare const QueryResolversByIRIResponse: { toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg; }; export declare const QueryResolversByHashRequest: { - encode(message: QueryResolversByHashRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByHashRequest; + typeUrl: string; + encode(message: QueryResolversByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest; fromJSON(object: any): QueryResolversByHashRequest; toJSON(message: QueryResolversByHashRequest): unknown; fromPartial(object: Partial): QueryResolversByHashRequest; @@ -866,8 +880,9 @@ export declare const QueryResolversByHashRequest: { toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg; }; export declare const QueryResolversByHashResponse: { - encode(message: QueryResolversByHashResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByHashResponse; + typeUrl: string; + encode(message: QueryResolversByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse; fromJSON(object: any): QueryResolversByHashResponse; toJSON(message: QueryResolversByHashResponse): unknown; fromPartial(object: Partial): QueryResolversByHashResponse; @@ -879,8 +894,9 @@ export declare const QueryResolversByHashResponse: { toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg; }; export declare const QueryResolversByURLRequest: { - encode(message: QueryResolversByURLRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByURLRequest; + typeUrl: string; + encode(message: QueryResolversByURLRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest; fromJSON(object: any): QueryResolversByURLRequest; toJSON(message: QueryResolversByURLRequest): unknown; fromPartial(object: Partial): QueryResolversByURLRequest; @@ -892,8 +908,9 @@ export declare const QueryResolversByURLRequest: { toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg; }; export declare const QueryResolversByURLResponse: { - encode(message: QueryResolversByURLResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryResolversByURLResponse; + typeUrl: string; + encode(message: QueryResolversByURLResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse; fromJSON(object: any): QueryResolversByURLResponse; toJSON(message: QueryResolversByURLResponse): unknown; fromPartial(object: Partial): QueryResolversByURLResponse; @@ -905,8 +922,9 @@ export declare const QueryResolversByURLResponse: { toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg; }; export declare const ConvertIRIToHashRequest: { - encode(message: ConvertIRIToHashRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConvertIRIToHashRequest; + typeUrl: string; + encode(message: ConvertIRIToHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest; fromJSON(object: any): ConvertIRIToHashRequest; toJSON(message: ConvertIRIToHashRequest): unknown; fromPartial(object: Partial): ConvertIRIToHashRequest; @@ -918,8 +936,9 @@ export declare const ConvertIRIToHashRequest: { toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg; }; export declare const ConvertIRIToHashResponse: { - encode(message: ConvertIRIToHashResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConvertIRIToHashResponse; + typeUrl: string; + encode(message: ConvertIRIToHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse; fromJSON(object: any): ConvertIRIToHashResponse; toJSON(message: ConvertIRIToHashResponse): unknown; fromPartial(object: Partial): ConvertIRIToHashResponse; @@ -931,8 +950,9 @@ export declare const ConvertIRIToHashResponse: { toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg; }; export declare const ConvertHashToIRIRequest: { - encode(message: ConvertHashToIRIRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConvertHashToIRIRequest; + typeUrl: string; + encode(message: ConvertHashToIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest; fromJSON(object: any): ConvertHashToIRIRequest; toJSON(message: ConvertHashToIRIRequest): unknown; fromPartial(object: Partial): ConvertHashToIRIRequest; @@ -944,8 +964,9 @@ export declare const ConvertHashToIRIRequest: { toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg; }; export declare const ConvertHashToIRIResponse: { - encode(message: ConvertHashToIRIResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConvertHashToIRIResponse; + typeUrl: string; + encode(message: ConvertHashToIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse; fromJSON(object: any): ConvertHashToIRIResponse; toJSON(message: ConvertHashToIRIResponse): unknown; fromPartial(object: Partial): ConvertHashToIRIResponse; @@ -957,8 +978,9 @@ export declare const ConvertHashToIRIResponse: { toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg; }; export declare const AnchorInfo: { - encode(message: AnchorInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AnchorInfo; + typeUrl: string; + encode(message: AnchorInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo; fromJSON(object: any): AnchorInfo; toJSON(message: AnchorInfo): unknown; fromPartial(object: Partial): AnchorInfo; @@ -970,8 +992,9 @@ export declare const AnchorInfo: { toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg; }; export declare const AttestationInfo: { - encode(message: AttestationInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AttestationInfo; + typeUrl: string; + encode(message: AttestationInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo; fromJSON(object: any): AttestationInfo; toJSON(message: AttestationInfo): unknown; fromPartial(object: Partial): AttestationInfo; @@ -983,8 +1006,9 @@ export declare const AttestationInfo: { toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg; }; export declare const ResolverInfo: { - encode(message: ResolverInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResolverInfo; + typeUrl: string; + encode(message: ResolverInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo; fromJSON(object: any): ResolverInfo; toJSON(message: ResolverInfo): unknown; fromPartial(object: Partial): ResolverInfo; diff --git a/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts index 9740017c..22fbc40c 100644 --- a/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/data/v1/state.d.ts b/packages/api/types/codegen/regen/data/v1/state.d.ts index 1337aedb..0ecd57d7 100644 --- a/packages/api/types/codegen/regen/data/v1/state.d.ts +++ b/packages/api/types/codegen/regen/data/v1/state.d.ts @@ -1,6 +1,5 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** DataID stores a compact data ID and its full IRI. */ export interface DataID { /** id is the compact automatically-generated data ID. */ @@ -15,9 +14,9 @@ export interface DataIDProtoMsg { /** DataID stores a compact data ID and its full IRI. */ export interface DataIDAmino { /** id is the compact automatically-generated data ID. */ - id: Uint8Array; + id?: string; /** iri is the IRI of the data which contains its full ContentHash. */ - iri: string; + iri?: string; } export interface DataIDAminoMsg { type: "/regen.data.v1.DataID"; @@ -36,7 +35,7 @@ export interface DataAnchor { * timestamp is the anchor timestamp for this object - the time at which * it was first known to the blockchain. */ - timestamp: Timestamp; + timestamp?: Timestamp; } export interface DataAnchorProtoMsg { typeUrl: "/regen.data.v1.DataAnchor"; @@ -45,12 +44,12 @@ export interface DataAnchorProtoMsg { /** DataAnchor stores the anchor timestamp for a data object. */ export interface DataAnchorAmino { /** id is the compact data ID. */ - id: Uint8Array; + id?: string; /** * timestamp is the anchor timestamp for this object - the time at which * it was first known to the blockchain. */ - timestamp?: TimestampAmino; + timestamp?: string; } export interface DataAnchorAminoMsg { type: "/regen.data.v1.DataAnchor"; @@ -59,7 +58,7 @@ export interface DataAnchorAminoMsg { /** DataAnchor stores the anchor timestamp for a data object. */ export interface DataAnchorSDKType { id: Uint8Array; - timestamp: TimestampSDKType; + timestamp?: TimestampSDKType; } /** DataAttestor is a join table for associating data IDs and attestors. */ export interface DataAttestor { @@ -68,7 +67,7 @@ export interface DataAttestor { /** attestor is the account address of the attestor. */ attestor: Uint8Array; /** timestamp is the time at which the attestor signed this data object. */ - timestamp: Timestamp; + timestamp?: Timestamp; } export interface DataAttestorProtoMsg { typeUrl: "/regen.data.v1.DataAttestor"; @@ -77,11 +76,11 @@ export interface DataAttestorProtoMsg { /** DataAttestor is a join table for associating data IDs and attestors. */ export interface DataAttestorAmino { /** id is the compact data ID. */ - id: Uint8Array; + id?: string; /** attestor is the account address of the attestor. */ - attestor: Uint8Array; + attestor?: string; /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: TimestampAmino; + timestamp?: string; } export interface DataAttestorAminoMsg { type: "/regen.data.v1.DataAttestor"; @@ -91,12 +90,12 @@ export interface DataAttestorAminoMsg { export interface DataAttestorSDKType { id: Uint8Array; attestor: Uint8Array; - timestamp: TimestampSDKType; + timestamp?: TimestampSDKType; } /** Resolver describes a data resolver. */ export interface Resolver { /** id is the ID of the resolver. */ - id: Long; + id: bigint; /** url is the URL of the resolver. */ url: string; /** @@ -112,14 +111,14 @@ export interface ResolverProtoMsg { /** Resolver describes a data resolver. */ export interface ResolverAmino { /** id is the ID of the resolver. */ - id: string; + id?: string; /** url is the URL of the resolver. */ - url: string; + url?: string; /** * manager is the bytes address of the resolver manager who is allowed * to make calls to Msg/RegisterResolver for this resolver. */ - manager: Uint8Array; + manager?: string; } export interface ResolverAminoMsg { type: "/regen.data.v1.Resolver"; @@ -127,7 +126,7 @@ export interface ResolverAminoMsg { } /** Resolver describes a data resolver. */ export interface ResolverSDKType { - id: Long; + id: bigint; url: string; manager: Uint8Array; } @@ -139,7 +138,7 @@ export interface DataResolver { /** id is the compact data ID. */ id: Uint8Array; /** resolver_id is the ID of the resolver. */ - resolverId: Long; + resolverId: bigint; } export interface DataResolverProtoMsg { typeUrl: "/regen.data.v1.DataResolver"; @@ -151,9 +150,9 @@ export interface DataResolverProtoMsg { */ export interface DataResolverAmino { /** id is the compact data ID. */ - id: Uint8Array; + id?: string; /** resolver_id is the ID of the resolver. */ - resolver_id: string; + resolver_id?: string; } export interface DataResolverAminoMsg { type: "/regen.data.v1.DataResolver"; @@ -165,11 +164,12 @@ export interface DataResolverAminoMsg { */ export interface DataResolverSDKType { id: Uint8Array; - resolver_id: Long; + resolver_id: bigint; } export declare const DataID: { - encode(message: DataID, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DataID; + typeUrl: string; + encode(message: DataID, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataID; fromJSON(object: any): DataID; toJSON(message: DataID): unknown; fromPartial(object: Partial): DataID; @@ -181,8 +181,9 @@ export declare const DataID: { toProtoMsg(message: DataID): DataIDProtoMsg; }; export declare const DataAnchor: { - encode(message: DataAnchor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DataAnchor; + typeUrl: string; + encode(message: DataAnchor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor; fromJSON(object: any): DataAnchor; toJSON(message: DataAnchor): unknown; fromPartial(object: Partial): DataAnchor; @@ -194,8 +195,9 @@ export declare const DataAnchor: { toProtoMsg(message: DataAnchor): DataAnchorProtoMsg; }; export declare const DataAttestor: { - encode(message: DataAttestor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DataAttestor; + typeUrl: string; + encode(message: DataAttestor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor; fromJSON(object: any): DataAttestor; toJSON(message: DataAttestor): unknown; fromPartial(object: Partial): DataAttestor; @@ -207,8 +209,9 @@ export declare const DataAttestor: { toProtoMsg(message: DataAttestor): DataAttestorProtoMsg; }; export declare const Resolver: { - encode(message: Resolver, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Resolver; + typeUrl: string; + encode(message: Resolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Resolver; fromJSON(object: any): Resolver; toJSON(message: Resolver): unknown; fromPartial(object: Partial): Resolver; @@ -220,8 +223,9 @@ export declare const Resolver: { toProtoMsg(message: Resolver): ResolverProtoMsg; }; export declare const DataResolver: { - encode(message: DataResolver, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DataResolver; + typeUrl: string; + encode(message: DataResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataResolver; fromJSON(object: any): DataResolver; toJSON(message: DataResolver): unknown; fromPartial(object: Partial): DataResolver; diff --git a/packages/api/types/codegen/regen/data/v1/types.d.ts b/packages/api/types/codegen/regen/data/v1/types.d.ts index 64e9ac6a..fc0e4cdf 100644 --- a/packages/api/types/codegen/regen/data/v1/types.d.ts +++ b/packages/api/types/codegen/regen/data/v1/types.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** DigestAlgorithm is the hash digest algorithm */ export declare enum DigestAlgorithm { /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ @@ -88,13 +88,13 @@ export interface ContentHash { * the guarantee that the canonical hash will not change. The media type for * "raw" data is defined by the MediaType enum. */ - raw: ContentHash_Raw; + raw?: ContentHash_Raw; /** * Graph specifies graph data that conforms to the RDF data model. * The canonicalization algorithm used for an RDF graph is specified by * GraphCanonicalizationAlgorithm. */ - graph: ContentHash_Graph; + graph?: ContentHash_Graph; } export interface ContentHashProtoMsg { typeUrl: "/regen.data.v1.ContentHash"; @@ -125,8 +125,8 @@ export interface ContentHashAminoMsg { } /** ContentHash specifies a hash-based content identifier for a piece of data. */ export interface ContentHashSDKType { - raw: ContentHash_RawSDKType; - graph: ContentHash_GraphSDKType; + raw?: ContentHash_RawSDKType; + graph?: ContentHash_GraphSDKType; } /** Raw is the content hash type used for raw data. */ export interface ContentHash_Raw { @@ -150,11 +150,11 @@ export interface ContentHash_RawAmino { * hash represents the hash of the data based on the specified * digest_algorithm. */ - hash: Uint8Array; + hash?: string; /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm: DigestAlgorithm; + digest_algorithm?: DigestAlgorithm; /** media_type represents the media type for raw data. */ - media_type: RawMediaType; + media_type?: RawMediaType; } export interface ContentHash_RawAminoMsg { type: "/regen.data.v1.Raw"; @@ -193,16 +193,16 @@ export interface ContentHash_GraphAmino { * hash represents the hash of the data based on the specified * digest_algorithm. */ - hash: Uint8Array; + hash?: string; /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm: DigestAlgorithm; + digest_algorithm?: DigestAlgorithm; /** * graph_canonicalization_algorithm represents the RDF graph * canonicalization algorithm. */ - canonicalization_algorithm: GraphCanonicalizationAlgorithm; + canonicalization_algorithm?: GraphCanonicalizationAlgorithm; /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkle_tree: GraphMerkleTree; + merkle_tree?: GraphMerkleTree; } export interface ContentHash_GraphAminoMsg { type: "/regen.data.v1.Graph"; @@ -227,7 +227,7 @@ export interface ContentHashesProtoMsg { /** ContentHashes contains list of content ContentHash. */ export interface ContentHashesAmino { /** data is a list of content hashes which the resolver claims to serve. */ - content_hashes: ContentHashAmino[]; + content_hashes?: ContentHashAmino[]; } export interface ContentHashesAminoMsg { type: "/regen.data.v1.ContentHashes"; @@ -238,8 +238,9 @@ export interface ContentHashesSDKType { content_hashes: ContentHashSDKType[]; } export declare const ContentHash: { - encode(message: ContentHash, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContentHash; + typeUrl: string; + encode(message: ContentHash, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash; fromJSON(object: any): ContentHash; toJSON(message: ContentHash): unknown; fromPartial(object: Partial): ContentHash; @@ -251,8 +252,9 @@ export declare const ContentHash: { toProtoMsg(message: ContentHash): ContentHashProtoMsg; }; export declare const ContentHash_Raw: { - encode(message: ContentHash_Raw, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContentHash_Raw; + typeUrl: string; + encode(message: ContentHash_Raw, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw; fromJSON(object: any): ContentHash_Raw; toJSON(message: ContentHash_Raw): unknown; fromPartial(object: Partial): ContentHash_Raw; @@ -264,8 +266,9 @@ export declare const ContentHash_Raw: { toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg; }; export declare const ContentHash_Graph: { - encode(message: ContentHash_Graph, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContentHash_Graph; + typeUrl: string; + encode(message: ContentHash_Graph, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph; fromJSON(object: any): ContentHash_Graph; toJSON(message: ContentHash_Graph): unknown; fromPartial(object: Partial): ContentHash_Graph; @@ -277,8 +280,9 @@ export declare const ContentHash_Graph: { toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg; }; export declare const ContentHashes: { - encode(message: ContentHashes, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContentHashes; + typeUrl: string; + encode(message: ContentHashes, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes; fromJSON(object: any): ContentHashes; toJSON(message: ContentHashes): unknown; fromPartial(object: Partial): ContentHashes; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts index 1856b179..47ef2ea5 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts @@ -1,5 +1,5 @@ import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** EventCreate is an event emitted when a basket is created. */ export interface EventCreate { /** basket_denom is the basket bank denom. */ @@ -21,7 +21,7 @@ export interface EventCreateProtoMsg { /** EventCreate is an event emitted when a basket is created. */ export interface EventCreateAmino { /** basket_denom is the basket bank denom. */ - basket_denom: string; + basket_denom?: string; /** * curator is the address of the basket curator who is able to change certain * basket settings. @@ -30,7 +30,7 @@ export interface EventCreateAmino { * removed in the next version. */ /** @deprecated */ - curator: string; + curator?: string; } export interface EventCreateAminoMsg { type: "/regen.ecocredit.basket.v1.EventCreate"; @@ -78,9 +78,9 @@ export interface EventPutProtoMsg { */ export interface EventPutAmino { /** owner is the owner of the credits put into the basket. */ - owner: string; + owner?: string; /** basket_denom is the basket bank denom that the credits were added to. */ - basket_denom: string; + basket_denom?: string; /** * credits are the credits that were added to the basket. * @@ -88,7 +88,7 @@ export interface EventPutAmino { * removed in the next version. */ /** @deprecated */ - credits: BasketCreditAmino[]; + credits?: BasketCreditAmino[]; /** * amount is the integer number of basket tokens converted from credits. * @@ -96,7 +96,7 @@ export interface EventPutAmino { * removed in the next version. */ /** @deprecated */ - amount: string; + amount?: string; } export interface EventPutAminoMsg { type: "/regen.ecocredit.basket.v1.EventPut"; @@ -150,9 +150,9 @@ export interface EventTakeProtoMsg { */ export interface EventTakeAmino { /** owner is the owner of the credits taken from the basket. */ - owner: string; + owner?: string; /** basket_denom is the basket bank denom that credits were taken from. */ - basket_denom: string; + basket_denom?: string; /** * credits are the credits that were taken from the basket. * @@ -160,7 +160,7 @@ export interface EventTakeAmino { * removed in the next version. */ /** @deprecated */ - credits: BasketCreditAmino[]; + credits?: BasketCreditAmino[]; /** * amount is the integer number of basket tokens converted to credits. * @@ -168,7 +168,7 @@ export interface EventTakeAmino { * removed in the next version. */ /** @deprecated */ - amount: string; + amount?: string; } export interface EventTakeAminoMsg { type: "/regen.ecocredit.basket.v1.EventTake"; @@ -206,7 +206,7 @@ export interface EventUpdateCuratorProtoMsg { */ export interface EventUpdateCuratorAmino { /** denom is the basket denom. */ - denom: string; + denom?: string; } export interface EventUpdateCuratorAminoMsg { type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; @@ -242,7 +242,7 @@ export interface EventUpdateDateCriteriaProtoMsg { */ export interface EventUpdateDateCriteriaAmino { /** denom is the basket denom. */ - denom: string; + denom?: string; } export interface EventUpdateDateCriteriaAminoMsg { type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; @@ -258,8 +258,9 @@ export interface EventUpdateDateCriteriaSDKType { denom: string; } export declare const EventCreate: { - encode(message: EventCreate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreate; + typeUrl: string; + encode(message: EventCreate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreate; fromJSON(object: any): EventCreate; toJSON(message: EventCreate): unknown; fromPartial(object: Partial): EventCreate; @@ -271,8 +272,9 @@ export declare const EventCreate: { toProtoMsg(message: EventCreate): EventCreateProtoMsg; }; export declare const EventPut: { - encode(message: EventPut, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventPut; + typeUrl: string; + encode(message: EventPut, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventPut; fromJSON(object: any): EventPut; toJSON(message: EventPut): unknown; fromPartial(object: Partial): EventPut; @@ -284,8 +286,9 @@ export declare const EventPut: { toProtoMsg(message: EventPut): EventPutProtoMsg; }; export declare const EventTake: { - encode(message: EventTake, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventTake; + typeUrl: string; + encode(message: EventTake, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventTake; fromJSON(object: any): EventTake; toJSON(message: EventTake): unknown; fromPartial(object: Partial): EventTake; @@ -297,8 +300,9 @@ export declare const EventTake: { toProtoMsg(message: EventTake): EventTakeProtoMsg; }; export declare const EventUpdateCurator: { - encode(message: EventUpdateCurator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateCurator; + typeUrl: string; + encode(message: EventUpdateCurator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator; fromJSON(object: any): EventUpdateCurator; toJSON(message: EventUpdateCurator): unknown; fromPartial(object: Partial): EventUpdateCurator; @@ -310,8 +314,9 @@ export declare const EventUpdateCurator: { toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg; }; export declare const EventUpdateDateCriteria: { - encode(message: EventUpdateDateCriteria, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateDateCriteria; + typeUrl: string; + encode(message: EventUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria; fromJSON(object: any): EventUpdateDateCriteria; toJSON(message: EventUpdateDateCriteria): unknown; fromPartial(object: Partial): EventUpdateDateCriteria; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts index 49ace8ae..a69aacf7 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts @@ -2,7 +2,7 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageRe import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** QueryBasketRequest is the Query/Basket request type. */ export interface QueryBasketRequest { /** basket_denom represents the denom of the basket to query. */ @@ -15,7 +15,7 @@ export interface QueryBasketRequestProtoMsg { /** QueryBasketRequest is the Query/Basket request type. */ export interface QueryBasketRequestAmino { /** basket_denom represents the denom of the basket to query. */ - basket_denom: string; + basket_denom?: string; } export interface QueryBasketRequestAminoMsg { type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; @@ -35,7 +35,7 @@ export interface QueryBasketResponse { * basket_info is available using BasketInfo. */ /** @deprecated */ - basket: Basket; + basket?: Basket; /** classes are the credit classes that can be deposited in the basket. */ classes: string[]; /** @@ -43,7 +43,7 @@ export interface QueryBasketResponse { * * Since Revision 1 */ - basketInfo: BasketInfo; + basketInfo?: BasketInfo; } export interface QueryBasketResponseProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; @@ -61,7 +61,7 @@ export interface QueryBasketResponseAmino { /** @deprecated */ basket?: BasketAmino; /** classes are the credit classes that can be deposited in the basket. */ - classes: string[]; + classes?: string[]; /** * basket_info is the queried basket. * @@ -76,14 +76,14 @@ export interface QueryBasketResponseAminoMsg { /** QueryBasketResponse is the Query/Basket response type. */ export interface QueryBasketResponseSDKType { /** @deprecated */ - basket: BasketSDKType; + basket?: BasketSDKType; classes: string[]; - basket_info: BasketInfoSDKType; + basket_info?: BasketInfoSDKType; } /** QueryBasketsRequest is the Query/Baskets request type. */ export interface QueryBasketsRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBasketsRequestProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; @@ -100,7 +100,7 @@ export interface QueryBasketsRequestAminoMsg { } /** QueryBasketsRequest is the Query/Baskets request type. */ export interface QueryBasketsRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBasketsResponse is the Query/Baskets response type. */ export interface QueryBasketsResponse { @@ -114,7 +114,7 @@ export interface QueryBasketsResponse { /** @deprecated */ baskets: Basket[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; /** * baskets_info are the fetched baskets. * @@ -136,7 +136,7 @@ export interface QueryBasketsResponseAmino { * baskets_info is available using BasketInfo. */ /** @deprecated */ - baskets: BasketAmino[]; + baskets?: BasketAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; /** @@ -144,7 +144,7 @@ export interface QueryBasketsResponseAmino { * * Since Revision 1 */ - baskets_info: BasketInfoAmino[]; + baskets_info?: BasketInfoAmino[]; } export interface QueryBasketsResponseAminoMsg { type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; @@ -154,7 +154,7 @@ export interface QueryBasketsResponseAminoMsg { export interface QueryBasketsResponseSDKType { /** @deprecated */ baskets: BasketSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; baskets_info: BasketInfoSDKType[]; } /** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ @@ -162,7 +162,7 @@ export interface QueryBasketBalancesRequest { /** basket_denom is the denom of the basket. */ basketDenom: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBasketBalancesRequestProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; @@ -171,7 +171,7 @@ export interface QueryBasketBalancesRequestProtoMsg { /** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ export interface QueryBasketBalancesRequestAmino { /** basket_denom is the denom of the basket. */ - basket_denom: string; + basket_denom?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -182,7 +182,7 @@ export interface QueryBasketBalancesRequestAminoMsg { /** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ export interface QueryBasketBalancesRequestSDKType { basket_denom: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ export interface QueryBasketBalancesResponse { @@ -196,7 +196,7 @@ export interface QueryBasketBalancesResponse { /** @deprecated */ balances: BasketBalance[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; /** * balances_info is a list of credit balances in the basket. * @@ -218,7 +218,7 @@ export interface QueryBasketBalancesResponseAmino { * version. In the meantime baskets_info is available using BasketBalanceInfo. */ /** @deprecated */ - balances: BasketBalanceAmino[]; + balances?: BasketBalanceAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; /** @@ -226,7 +226,7 @@ export interface QueryBasketBalancesResponseAmino { * * Since Revision 1 */ - balances_info: BasketBalanceInfoAmino[]; + balances_info?: BasketBalanceInfoAmino[]; } export interface QueryBasketBalancesResponseAminoMsg { type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; @@ -236,7 +236,7 @@ export interface QueryBasketBalancesResponseAminoMsg { export interface QueryBasketBalancesResponseSDKType { /** @deprecated */ balances: BasketBalanceSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; balances_info: BasketBalanceInfoSDKType[]; } /** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ @@ -253,9 +253,9 @@ export interface QueryBasketBalanceRequestProtoMsg { /** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ export interface QueryBasketBalanceRequestAmino { /** basket_denom is the denom of the basket. */ - basket_denom: string; + basket_denom?: string; /** batch_denom is the denom of the credit batch. */ - batch_denom: string; + batch_denom?: string; } export interface QueryBasketBalanceRequestAminoMsg { type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; @@ -278,7 +278,7 @@ export interface QueryBasketBalanceResponseProtoMsg { /** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ export interface QueryBasketBalanceResponseAmino { /** balance is the amount of the queried credit batch in the basket. */ - balance: string; + balance?: string; } export interface QueryBasketBalanceResponseAminoMsg { type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; @@ -309,7 +309,7 @@ export interface BasketInfo { */ creditTypeAbbrev: string; /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria: DateCriteria; + dateCriteria?: DateCriteria; /** exponent is the exponent for converting credits to/from basket tokens. */ exponent: number; /** @@ -325,32 +325,32 @@ export interface BasketInfoProtoMsg { /** BasketInfo is the human-readable basket information. */ export interface BasketInfoAmino { /** basket_denom is the basket bank denom. */ - basket_denom: string; + basket_denom?: string; /** * name is the unique name of the basket specified in MsgCreate. Basket * names must be unique across all credit types and choices of exponent * above and beyond the uniqueness constraint on basket_denom. */ - name: string; + name?: string; /** * disable_auto_retire indicates whether or not the credits will be retired * upon withdraw from the basket. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * credit_type_abbrev is the abbreviation of the credit type this basket is * able to hold. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** date_criteria is the date criteria for batches admitted to the basket. */ date_criteria?: DateCriteriaAmino; /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent: number; + exponent?: number; /** * curator is the address of the basket curator who is able to change certain * basket settings. */ - curator: string; + curator?: string; } export interface BasketInfoAminoMsg { type: "/regen.ecocredit.basket.v1.BasketInfo"; @@ -362,7 +362,7 @@ export interface BasketInfoSDKType { name: string; disable_auto_retire: boolean; credit_type_abbrev: string; - date_criteria: DateCriteriaSDKType; + date_criteria?: DateCriteriaSDKType; exponent: number; curator: string; } @@ -380,9 +380,9 @@ export interface BasketBalanceInfoProtoMsg { /** BasketBalanceInfo is the human-readable basket balance information. */ export interface BasketBalanceInfoAmino { /** batch_denom is the denom of the credit batch */ - batch_denom: string; + batch_denom?: string; /** balance is the amount of ecocredits held in the basket */ - balance: string; + balance?: string; } export interface BasketBalanceInfoAminoMsg { type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; @@ -432,7 +432,7 @@ export interface QueryBasketFeeResponse { * fee is the basket creation fee. If not set, a basket creation fee is not * required. */ - fee: Coin; + fee?: Coin; } export interface QueryBasketFeeResponseProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; @@ -460,11 +460,12 @@ export interface QueryBasketFeeResponseAminoMsg { * Since Revision 2 */ export interface QueryBasketFeeResponseSDKType { - fee: CoinSDKType; + fee?: CoinSDKType; } export declare const QueryBasketRequest: { - encode(message: QueryBasketRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketRequest; + typeUrl: string; + encode(message: QueryBasketRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest; fromJSON(object: any): QueryBasketRequest; toJSON(message: QueryBasketRequest): unknown; fromPartial(object: Partial): QueryBasketRequest; @@ -476,8 +477,9 @@ export declare const QueryBasketRequest: { toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg; }; export declare const QueryBasketResponse: { - encode(message: QueryBasketResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketResponse; + typeUrl: string; + encode(message: QueryBasketResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse; fromJSON(object: any): QueryBasketResponse; toJSON(message: QueryBasketResponse): unknown; fromPartial(object: Partial): QueryBasketResponse; @@ -489,8 +491,9 @@ export declare const QueryBasketResponse: { toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg; }; export declare const QueryBasketsRequest: { - encode(message: QueryBasketsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketsRequest; + typeUrl: string; + encode(message: QueryBasketsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest; fromJSON(object: any): QueryBasketsRequest; toJSON(message: QueryBasketsRequest): unknown; fromPartial(object: Partial): QueryBasketsRequest; @@ -502,8 +505,9 @@ export declare const QueryBasketsRequest: { toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg; }; export declare const QueryBasketsResponse: { - encode(message: QueryBasketsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketsResponse; + typeUrl: string; + encode(message: QueryBasketsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse; fromJSON(object: any): QueryBasketsResponse; toJSON(message: QueryBasketsResponse): unknown; fromPartial(object: Partial): QueryBasketsResponse; @@ -515,8 +519,9 @@ export declare const QueryBasketsResponse: { toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg; }; export declare const QueryBasketBalancesRequest: { - encode(message: QueryBasketBalancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketBalancesRequest; + typeUrl: string; + encode(message: QueryBasketBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest; fromJSON(object: any): QueryBasketBalancesRequest; toJSON(message: QueryBasketBalancesRequest): unknown; fromPartial(object: Partial): QueryBasketBalancesRequest; @@ -528,8 +533,9 @@ export declare const QueryBasketBalancesRequest: { toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg; }; export declare const QueryBasketBalancesResponse: { - encode(message: QueryBasketBalancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketBalancesResponse; + typeUrl: string; + encode(message: QueryBasketBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse; fromJSON(object: any): QueryBasketBalancesResponse; toJSON(message: QueryBasketBalancesResponse): unknown; fromPartial(object: Partial): QueryBasketBalancesResponse; @@ -541,8 +547,9 @@ export declare const QueryBasketBalancesResponse: { toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg; }; export declare const QueryBasketBalanceRequest: { - encode(message: QueryBasketBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketBalanceRequest; + typeUrl: string; + encode(message: QueryBasketBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest; fromJSON(object: any): QueryBasketBalanceRequest; toJSON(message: QueryBasketBalanceRequest): unknown; fromPartial(object: Partial): QueryBasketBalanceRequest; @@ -554,8 +561,9 @@ export declare const QueryBasketBalanceRequest: { toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg; }; export declare const QueryBasketBalanceResponse: { - encode(message: QueryBasketBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketBalanceResponse; + typeUrl: string; + encode(message: QueryBasketBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse; fromJSON(object: any): QueryBasketBalanceResponse; toJSON(message: QueryBasketBalanceResponse): unknown; fromPartial(object: Partial): QueryBasketBalanceResponse; @@ -567,8 +575,9 @@ export declare const QueryBasketBalanceResponse: { toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg; }; export declare const BasketInfo: { - encode(message: BasketInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketInfo; + typeUrl: string; + encode(message: BasketInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo; fromJSON(object: any): BasketInfo; toJSON(message: BasketInfo): unknown; fromPartial(object: Partial): BasketInfo; @@ -580,8 +589,9 @@ export declare const BasketInfo: { toProtoMsg(message: BasketInfo): BasketInfoProtoMsg; }; export declare const BasketBalanceInfo: { - encode(message: BasketBalanceInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketBalanceInfo; + typeUrl: string; + encode(message: BasketBalanceInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo; fromJSON(object: any): BasketBalanceInfo; toJSON(message: BasketBalanceInfo): unknown; fromPartial(object: Partial): BasketBalanceInfo; @@ -593,8 +603,9 @@ export declare const BasketBalanceInfo: { toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg; }; export declare const QueryBasketFeeRequest: { - encode(_: QueryBasketFeeRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketFeeRequest; + typeUrl: string; + encode(_: QueryBasketFeeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest; fromJSON(_: any): QueryBasketFeeRequest; toJSON(_: QueryBasketFeeRequest): unknown; fromPartial(_: Partial): QueryBasketFeeRequest; @@ -606,8 +617,9 @@ export declare const QueryBasketFeeRequest: { toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg; }; export declare const QueryBasketFeeResponse: { - encode(message: QueryBasketFeeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBasketFeeResponse; + typeUrl: string; + encode(message: QueryBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse; fromJSON(object: any): QueryBasketFeeResponse; toJSON(message: QueryBasketFeeResponse): unknown; fromPartial(object: Partial): QueryBasketFeeResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts index fd3cea3e..15ab387e 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts index 50be16e0..877060a3 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts @@ -1,15 +1,14 @@ import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** Basket represents a basket in state. */ export interface Basket { /** * id is the uint64 ID of the basket. It is used internally for reducing * storage space. */ - id: Long; + id: bigint; /** * basket_denom is the basket bank denom formed from name and credit type with * the format `eco..` where prefix is the @@ -45,7 +44,7 @@ export interface Basket { */ creditTypeAbbrev: string; /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria: DateCriteria; + dateCriteria?: DateCriteria; /** * Deprecated (Since Revision 1): This field is no longer used and will be * removed in the next version. The value of credit type precision is always @@ -72,7 +71,7 @@ export interface BasketAmino { * id is the uint64 ID of the basket. It is used internally for reducing * storage space. */ - id: string; + id?: string; /** * basket_denom is the basket bank denom formed from name and credit type with * the format `eco..` where prefix is the @@ -90,23 +89,23 @@ export interface BasketAmino { * 21 - z (zepto) * 24 - y (yocto) */ - basket_denom: string; + basket_denom?: string; /** * name is the unique name of the basket specified in MsgCreate. Basket * names must be unique across all credit types and choices of exponent * above and beyond the uniqueness constraint on basket_denom. */ - name: string; + name?: string; /** * disable_auto_retire indicates whether or not the credits will be retired * upon withdraw from the basket. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * credit_type_abbrev is the abbreviation of the credit type this basket is * able to hold. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** date_criteria is the date criteria for batches admitted to the basket. */ date_criteria?: DateCriteriaAmino; /** @@ -116,14 +115,14 @@ export interface BasketAmino { * field will be set to the value of credit type precision until removed. */ /** @deprecated */ - exponent: number; + exponent?: number; /** * curator is the address of the basket curator who is able to change certain * basket settings. * * Since Revision 1 */ - curator: Uint8Array; + curator?: string; } export interface BasketAminoMsg { type: "/regen.ecocredit.basket.v1.Basket"; @@ -131,12 +130,12 @@ export interface BasketAminoMsg { } /** Basket represents a basket in state. */ export interface BasketSDKType { - id: Long; + id: bigint; basket_denom: string; name: string; disable_auto_retire: boolean; credit_type_abbrev: string; - date_criteria: DateCriteriaSDKType; + date_criteria?: DateCriteriaSDKType; /** @deprecated */ exponent: number; curator: Uint8Array; @@ -144,7 +143,7 @@ export interface BasketSDKType { /** BasketClass describes a credit class that can be deposited in a basket. */ export interface BasketClass { /** basket_id is the ID of the basket */ - basketId: Long; + basketId: bigint; /** * class_id is the id of the credit class that is allowed to be deposited in * the basket @@ -158,12 +157,12 @@ export interface BasketClassProtoMsg { /** BasketClass describes a credit class that can be deposited in a basket. */ export interface BasketClassAmino { /** basket_id is the ID of the basket */ - basket_id: string; + basket_id?: string; /** * class_id is the id of the credit class that is allowed to be deposited in * the basket */ - class_id: string; + class_id?: string; } export interface BasketClassAminoMsg { type: "/regen.ecocredit.basket.v1.BasketClass"; @@ -171,13 +170,13 @@ export interface BasketClassAminoMsg { } /** BasketClass describes a credit class that can be deposited in a basket. */ export interface BasketClassSDKType { - basket_id: Long; + basket_id: bigint; class_id: string; } /** BasketBalance stores the amount of credits from a batch in a basket */ export interface BasketBalance { /** basket_id is the ID of the basket */ - basketId: Long; + basketId: bigint; /** batch_denom is the denom of the credit batch */ batchDenom: string; /** balance is the amount of ecocredits held in the basket */ @@ -186,7 +185,7 @@ export interface BasketBalance { * batch_start_date is the start date of the batch. This field is used * to create an index which is used to remove the oldest credits first. */ - batchStartDate: Timestamp; + batchStartDate?: Timestamp; } export interface BasketBalanceProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; @@ -195,16 +194,16 @@ export interface BasketBalanceProtoMsg { /** BasketBalance stores the amount of credits from a batch in a basket */ export interface BasketBalanceAmino { /** basket_id is the ID of the basket */ - basket_id: string; + basket_id?: string; /** batch_denom is the denom of the credit batch */ - batch_denom: string; + batch_denom?: string; /** balance is the amount of ecocredits held in the basket */ - balance: string; + balance?: string; /** * batch_start_date is the start date of the batch. This field is used * to create an index which is used to remove the oldest credits first. */ - batch_start_date?: TimestampAmino; + batch_start_date?: string; } export interface BasketBalanceAminoMsg { type: "/regen.ecocredit.basket.v1.BasketBalance"; @@ -212,10 +211,10 @@ export interface BasketBalanceAminoMsg { } /** BasketBalance stores the amount of credits from a batch in a basket */ export interface BasketBalanceSDKType { - basket_id: Long; + basket_id: bigint; batch_denom: string; balance: string; - batch_start_date: TimestampSDKType; + batch_start_date?: TimestampSDKType; } /** * BasketFee is the basket creation fee. If not set, a basket creation fee is @@ -228,7 +227,7 @@ export interface BasketFee { * fee is the basket creation fee. If not set, a basket creation fee is not * required. */ - fee: Coin; + fee?: Coin; } export interface BasketFeeProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; @@ -258,11 +257,12 @@ export interface BasketFeeAminoMsg { * Since Revision 2 */ export interface BasketFeeSDKType { - fee: CoinSDKType; + fee?: CoinSDKType; } export declare const Basket: { - encode(message: Basket, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Basket; + typeUrl: string; + encode(message: Basket, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Basket; fromJSON(object: any): Basket; toJSON(message: Basket): unknown; fromPartial(object: Partial): Basket; @@ -274,8 +274,9 @@ export declare const Basket: { toProtoMsg(message: Basket): BasketProtoMsg; }; export declare const BasketClass: { - encode(message: BasketClass, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketClass; + typeUrl: string; + encode(message: BasketClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketClass; fromJSON(object: any): BasketClass; toJSON(message: BasketClass): unknown; fromPartial(object: Partial): BasketClass; @@ -287,8 +288,9 @@ export declare const BasketClass: { toProtoMsg(message: BasketClass): BasketClassProtoMsg; }; export declare const BasketBalance: { - encode(message: BasketBalance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketBalance; + typeUrl: string; + encode(message: BasketBalance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance; fromJSON(object: any): BasketBalance; toJSON(message: BasketBalance): unknown; fromPartial(object: Partial): BasketBalance; @@ -300,8 +302,9 @@ export declare const BasketBalance: { toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg; }; export declare const BasketFee: { - encode(message: BasketFee, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketFee; + typeUrl: string; + encode(message: BasketFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketFee; fromJSON(object: any): BasketFee; toJSON(message: BasketFee): unknown; fromPartial(object: Partial): BasketFee; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts index ab5ccbec..9833b69a 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts @@ -1,6 +1,6 @@ import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** MsgCreateBasket is the Msg/CreateBasket request type. */ export interface MsgCreate { /** @@ -50,7 +50,7 @@ export interface MsgCreate { * date_criteria is the date criteria for batches admitted to the basket. * At most, only one of the date criteria fields can be set. */ - dateCriteria: DateCriteria; + dateCriteria?: DateCriteria; /** * fee is the basket creation fee. A fee is not required if no fee exists * in the basket fee parameter. The fee must be greater than or equal to the @@ -75,7 +75,7 @@ export interface MsgCreateAmino { * curator is the address of the basket curator who is able to change certain * basket settings. */ - curator: string; + curator?: string; /** * name will be used to together with prefix to create a bank denom for this * basket token. It can be between 3-8 alphanumeric characters, with the @@ -85,12 +85,12 @@ export interface MsgCreateAmino { * `eco..` where prefix is the prefix of * a standard SI unit derived from credit type precision. */ - name: string; + name?: string; /** * description is a human-readable description of the basket denom that should * be at most 256 characters. */ - description: string; + description?: string; /** * Deprecated (Since Revision 1): This field is no longer used and will be * removed in the next version. The value of credit type precision is always @@ -98,7 +98,7 @@ export interface MsgCreateAmino { * bank denom metadata, and converting credits to/from basket tokens. */ /** @deprecated */ - exponent: number; + exponent?: number; /** * disable_auto_retire allows auto-retirement to be disabled. * The credits will be auto-retired if disable_auto_retire is @@ -106,14 +106,14 @@ export interface MsgCreateAmino { * address picking them from the basket, in which case they will remain * tradable. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * credit_type_abbrev is the abbreviation of the credit type this basket is * able to hold. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** allowed_classes are the credit classes allowed to be put in the basket */ - allowed_classes: string[]; + allowed_classes?: string[]; /** * date_criteria is the date criteria for batches admitted to the basket. * At most, only one of the date criteria fields can be set. @@ -131,7 +131,7 @@ export interface MsgCreateAmino { * This field will be updated to a single fee rather than a list of fees in * the next version to reflect these requirements. */ - fee: CoinAmino[]; + fee?: CoinAmino[]; } export interface MsgCreateAminoMsg { type: "regen.basket/MsgCreate"; @@ -147,7 +147,7 @@ export interface MsgCreateSDKType { disable_auto_retire: boolean; credit_type_abbrev: string; allowed_classes: string[]; - date_criteria: DateCriteriaSDKType; + date_criteria?: DateCriteriaSDKType; fee: CoinSDKType[]; } /** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ @@ -162,7 +162,7 @@ export interface MsgCreateResponseProtoMsg { /** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ export interface MsgCreateResponseAmino { /** basket_denom is the unique denomination ID of the newly created basket. */ - basket_denom: string; + basket_denom?: string; } export interface MsgCreateResponseAminoMsg { type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; @@ -191,14 +191,14 @@ export interface MsgPutProtoMsg { /** MsgAddToBasket is the Msg/AddToBasket request type. */ export interface MsgPutAmino { /** owner is the owner of credits being put into the basket. */ - owner: string; + owner?: string; /** basket_denom is the basket denom to add credits to. */ - basket_denom: string; + basket_denom?: string; /** * credits are credits to add to the basket. If they do not match the basket's * admission criteria, the operation will fail. */ - credits: BasketCreditAmino[]; + credits?: BasketCreditAmino[]; } export interface MsgPutAminoMsg { type: "regen.basket/MsgPut"; @@ -222,7 +222,7 @@ export interface MsgPutResponseProtoMsg { /** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ export interface MsgPutResponseAmino { /** amount_received is the integer amount of basket tokens received. */ - amount_received: string; + amount_received?: string; } export interface MsgPutResponseAminoMsg { type: "/regen.ecocredit.basket.v1.MsgPutResponse"; @@ -281,11 +281,11 @@ export interface MsgTakeProtoMsg { /** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ export interface MsgTakeAmino { /** owner is the owner of the basket tokens. */ - owner: string; + owner?: string; /** basket_denom is the basket bank denom to take credits from. */ - basket_denom: string; + basket_denom?: string; /** amount is the integer number of basket tokens to convert into credits. */ - amount: string; + amount?: string; /** * retirement_location is the optional retirement jurisdiction for the * credits which will be used only if retire_on_take is true. @@ -295,7 +295,7 @@ export interface MsgTakeAmino { * set and retirement_jurisdiction will be used if both are set. */ /** @deprecated */ - retirement_location: string; + retirement_location?: string; /** * retire_on_take is a boolean that dictates whether the ecocredits * received in exchange for the basket tokens will be received as @@ -303,14 +303,14 @@ export interface MsgTakeAmino { * false, retire_on_take MUST be set to true, and a retirement jurisdiction * must be provided. */ - retire_on_take: boolean; + retire_on_take?: boolean; /** * retirement_jurisdiction is the optional retirement jurisdiction for the * credits which will be used only if retire_on_take is true. * * Since Revision 1 */ - retirement_jurisdiction: string; + retirement_jurisdiction?: string; /** * retirement_reason is any arbitrary string that specifies the reason for * retiring credits. The reason will be included in EventRetire and is not @@ -318,7 +318,7 @@ export interface MsgTakeAmino { * * Since Revision 2 */ - retirement_reason: string; + retirement_reason?: string; } export interface MsgTakeAminoMsg { type: "regen.basket/MsgTake"; @@ -347,7 +347,7 @@ export interface MsgTakeResponseProtoMsg { /** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ export interface MsgTakeResponseAmino { /** credits are the credits taken out of the basket. */ - credits: BasketCreditAmino[]; + credits?: BasketCreditAmino[]; } export interface MsgTakeResponseAminoMsg { type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; @@ -369,7 +369,7 @@ export interface MsgUpdateBasketFee { * fee is the basket creation fee. If not set, the basket creation fee will be * removed and no fee will be required to create a basket. */ - fee: Coin; + fee?: Coin; } export interface MsgUpdateBasketFeeProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; @@ -382,7 +382,7 @@ export interface MsgUpdateBasketFeeProtoMsg { */ export interface MsgUpdateBasketFeeAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** * fee is the basket creation fee. If not set, the basket creation fee will be * removed and no fee will be required to create a basket. @@ -400,7 +400,7 @@ export interface MsgUpdateBasketFeeAminoMsg { */ export interface MsgUpdateBasketFeeSDKType { authority: string; - fee: CoinSDKType; + fee?: CoinSDKType; } /** * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. @@ -458,14 +458,14 @@ export interface MsgUpdateCuratorProtoMsg { */ export interface MsgUpdateCuratorAmino { /** curator is the address of the basket curator. */ - curator: string; + curator?: string; /** denom is the unique identifier of the basket. */ - denom: string; + denom?: string; /** * new_curator is the address of the account that will become the * new curator of the basket. */ - new_curator: string; + new_curator?: string; } export interface MsgUpdateCuratorAminoMsg { type: "regen.basket/MsgUpdateCurator"; @@ -524,7 +524,7 @@ export interface MsgUpdateDateCriteria { * new_date_criteria is the new date criteria for batches admitted to the * basket. At most, only one of the date criteria fields can be set. */ - newDateCriteria: DateCriteria; + newDateCriteria?: DateCriteria; } export interface MsgUpdateDateCriteriaProtoMsg { typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; @@ -537,9 +537,9 @@ export interface MsgUpdateDateCriteriaProtoMsg { */ export interface MsgUpdateDateCriteriaAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** denom is the unique identifier of the basket. */ - denom: string; + denom?: string; /** * new_date_criteria is the new date criteria for batches admitted to the * basket. At most, only one of the date criteria fields can be set. @@ -558,7 +558,7 @@ export interface MsgUpdateDateCriteriaAminoMsg { export interface MsgUpdateDateCriteriaSDKType { authority: string; denom: string; - new_date_criteria: DateCriteriaSDKType; + new_date_criteria?: DateCriteriaSDKType; } /** * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. @@ -590,8 +590,9 @@ export interface MsgUpdateDateCriteriaResponseAminoMsg { export interface MsgUpdateDateCriteriaResponseSDKType { } export declare const MsgCreate: { - encode(message: MsgCreate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreate; + typeUrl: string; + encode(message: MsgCreate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate; fromJSON(object: any): MsgCreate; toJSON(message: MsgCreate): unknown; fromPartial(object: Partial): MsgCreate; @@ -604,8 +605,9 @@ export declare const MsgCreate: { toProtoMsg(message: MsgCreate): MsgCreateProtoMsg; }; export declare const MsgCreateResponse: { - encode(message: MsgCreateResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateResponse; + typeUrl: string; + encode(message: MsgCreateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse; fromJSON(object: any): MsgCreateResponse; toJSON(message: MsgCreateResponse): unknown; fromPartial(object: Partial): MsgCreateResponse; @@ -617,8 +619,9 @@ export declare const MsgCreateResponse: { toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg; }; export declare const MsgPut: { - encode(message: MsgPut, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgPut; + typeUrl: string; + encode(message: MsgPut, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgPut; fromJSON(object: any): MsgPut; toJSON(message: MsgPut): unknown; fromPartial(object: Partial): MsgPut; @@ -631,8 +634,9 @@ export declare const MsgPut: { toProtoMsg(message: MsgPut): MsgPutProtoMsg; }; export declare const MsgPutResponse: { - encode(message: MsgPutResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgPutResponse; + typeUrl: string; + encode(message: MsgPutResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse; fromJSON(object: any): MsgPutResponse; toJSON(message: MsgPutResponse): unknown; fromPartial(object: Partial): MsgPutResponse; @@ -644,8 +648,9 @@ export declare const MsgPutResponse: { toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg; }; export declare const MsgTake: { - encode(message: MsgTake, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgTake; + typeUrl: string; + encode(message: MsgTake, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTake; fromJSON(object: any): MsgTake; toJSON(message: MsgTake): unknown; fromPartial(object: Partial): MsgTake; @@ -658,8 +663,9 @@ export declare const MsgTake: { toProtoMsg(message: MsgTake): MsgTakeProtoMsg; }; export declare const MsgTakeResponse: { - encode(message: MsgTakeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgTakeResponse; + typeUrl: string; + encode(message: MsgTakeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse; fromJSON(object: any): MsgTakeResponse; toJSON(message: MsgTakeResponse): unknown; fromPartial(object: Partial): MsgTakeResponse; @@ -671,8 +677,9 @@ export declare const MsgTakeResponse: { toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg; }; export declare const MsgUpdateBasketFee: { - encode(message: MsgUpdateBasketFee, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBasketFee; + typeUrl: string; + encode(message: MsgUpdateBasketFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee; fromJSON(object: any): MsgUpdateBasketFee; toJSON(message: MsgUpdateBasketFee): unknown; fromPartial(object: Partial): MsgUpdateBasketFee; @@ -685,8 +692,9 @@ export declare const MsgUpdateBasketFee: { toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg; }; export declare const MsgUpdateBasketFeeResponse: { - encode(_: MsgUpdateBasketFeeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse; + typeUrl: string; + encode(_: MsgUpdateBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse; fromJSON(_: any): MsgUpdateBasketFeeResponse; toJSON(_: MsgUpdateBasketFeeResponse): unknown; fromPartial(_: Partial): MsgUpdateBasketFeeResponse; @@ -698,8 +706,9 @@ export declare const MsgUpdateBasketFeeResponse: { toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg; }; export declare const MsgUpdateCurator: { - encode(message: MsgUpdateCurator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateCurator; + typeUrl: string; + encode(message: MsgUpdateCurator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator; fromJSON(object: any): MsgUpdateCurator; toJSON(message: MsgUpdateCurator): unknown; fromPartial(object: Partial): MsgUpdateCurator; @@ -712,8 +721,9 @@ export declare const MsgUpdateCurator: { toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg; }; export declare const MsgUpdateCuratorResponse: { - encode(_: MsgUpdateCuratorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateCuratorResponse; + typeUrl: string; + encode(_: MsgUpdateCuratorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse; fromJSON(_: any): MsgUpdateCuratorResponse; toJSON(_: MsgUpdateCuratorResponse): unknown; fromPartial(_: Partial): MsgUpdateCuratorResponse; @@ -725,8 +735,9 @@ export declare const MsgUpdateCuratorResponse: { toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg; }; export declare const MsgUpdateDateCriteria: { - encode(message: MsgUpdateDateCriteria, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateDateCriteria; + typeUrl: string; + encode(message: MsgUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria; fromJSON(object: any): MsgUpdateDateCriteria; toJSON(message: MsgUpdateDateCriteria): unknown; fromPartial(object: Partial): MsgUpdateDateCriteria; @@ -739,8 +750,9 @@ export declare const MsgUpdateDateCriteria: { toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg; }; export declare const MsgUpdateDateCriteriaResponse: { - encode(_: MsgUpdateDateCriteriaResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse; + typeUrl: string; + encode(_: MsgUpdateDateCriteriaResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse; fromJSON(_: any): MsgUpdateDateCriteriaResponse; toJSON(_: MsgUpdateDateCriteriaResponse): unknown; fromPartial(_: Partial): MsgUpdateDateCriteriaResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts index b605d29c..d6f7a8c2 100644 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts @@ -1,6 +1,6 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** BasketCredit represents the information for a credit batch inside a basket. */ export interface BasketCredit { /** batch_denom is the unique ID of the credit batch. */ @@ -19,13 +19,13 @@ export interface BasketCreditProtoMsg { /** BasketCredit represents the information for a credit batch inside a basket. */ export interface BasketCreditAmino { /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * amount is the number of credits being put into or taken out of the basket. * Decimal values are acceptable within the precision of the corresponding * credit type for this batch. */ - amount: string; + amount?: string; } export interface BasketCreditAminoMsg { type: "/regen.ecocredit.basket.v1.BasketCredit"; @@ -46,7 +46,7 @@ export interface DateCriteria { * allowed into the basket. At most only one of `start_date_window`, * `min_start_date`, and `years_in_the_past` can be set for a basket. */ - minStartDate: Timestamp; + minStartDate?: Timestamp; /** * start_date_window (optional) is a duration of time measured into the past * which sets a cutoff for batch start dates when adding new credits to the @@ -55,7 +55,7 @@ export interface DateCriteria { * basket. At most only one of `start_date_window`, `min_start_date`, and * `years_in_the_past` can be set for a basket. */ - startDateWindow: Duration; + startDateWindow?: Duration; /** * years_in_the_past (optional) is the number of years into the past which * sets a cutoff for the batch start dates when adding new credits to the @@ -82,7 +82,7 @@ export interface DateCriteriaAmino { * allowed into the basket. At most only one of `start_date_window`, * `min_start_date`, and `years_in_the_past` can be set for a basket. */ - min_start_date?: TimestampAmino; + min_start_date?: string; /** * start_date_window (optional) is a duration of time measured into the past * which sets a cutoff for batch start dates when adding new credits to the @@ -102,7 +102,7 @@ export interface DateCriteriaAmino { * * Since Revision 1 */ - years_in_the_past: number; + years_in_the_past?: number; } export interface DateCriteriaAminoMsg { type: "/regen.ecocredit.basket.v1.DateCriteria"; @@ -113,13 +113,14 @@ export interface DateCriteriaAminoMsg { * At most, only one of the values should be set. */ export interface DateCriteriaSDKType { - min_start_date: TimestampSDKType; - start_date_window: DurationSDKType; + min_start_date?: TimestampSDKType; + start_date_window?: DurationSDKType; years_in_the_past: number; } export declare const BasketCredit: { - encode(message: BasketCredit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasketCredit; + typeUrl: string; + encode(message: BasketCredit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit; fromJSON(object: any): BasketCredit; toJSON(message: BasketCredit): unknown; fromPartial(object: Partial): BasketCredit; @@ -131,8 +132,9 @@ export declare const BasketCredit: { toProtoMsg(message: BasketCredit): BasketCreditProtoMsg; }; export declare const DateCriteria: { - encode(message: DateCriteria, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DateCriteria; + typeUrl: string; + encode(message: DateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria; fromJSON(object: any): DateCriteria; toJSON(message: DateCriteria): unknown; fromPartial(object: Partial): DateCriteria; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts index d1de922b..fbe2e6d2 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts @@ -1,9 +1,8 @@ -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** EventSell is an event emitted when a sell order is created. */ export interface EventSell { /** sell_order_id is the unique identifier of the sell order that was created. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface EventSellProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; @@ -12,7 +11,7 @@ export interface EventSellProtoMsg { /** EventSell is an event emitted when a sell order is created. */ export interface EventSellAmino { /** sell_order_id is the unique identifier of the sell order that was created. */ - sell_order_id: string; + sell_order_id?: string; } export interface EventSellAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventSell"; @@ -20,7 +19,7 @@ export interface EventSellAminoMsg { } /** EventSell is an event emitted when a sell order is created. */ export interface EventSellSDKType { - sell_order_id: Long; + sell_order_id: bigint; } /** EventBuyDirect is an event emitted when a direct buy order is processed. */ export interface EventBuyDirect { @@ -28,7 +27,7 @@ export interface EventBuyDirect { * sell_order_id is the unique identifier of the sell order that credits were * purchased from. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface EventBuyDirectProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; @@ -40,7 +39,7 @@ export interface EventBuyDirectAmino { * sell_order_id is the unique identifier of the sell order that credits were * purchased from. */ - sell_order_id: string; + sell_order_id?: string; } export interface EventBuyDirectAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; @@ -48,12 +47,12 @@ export interface EventBuyDirectAminoMsg { } /** EventBuyDirect is an event emitted when a direct buy order is processed. */ export interface EventBuyDirectSDKType { - sell_order_id: Long; + sell_order_id: bigint; } /** EventUpdateSellOrder is an event emitted when a sell order is updated. */ export interface EventUpdateSellOrder { /** sell_order_id is the unique identifier of the sell order that was updated. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface EventUpdateSellOrderProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; @@ -62,7 +61,7 @@ export interface EventUpdateSellOrderProtoMsg { /** EventUpdateSellOrder is an event emitted when a sell order is updated. */ export interface EventUpdateSellOrderAmino { /** sell_order_id is the unique identifier of the sell order that was updated. */ - sell_order_id: string; + sell_order_id?: string; } export interface EventUpdateSellOrderAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; @@ -70,7 +69,7 @@ export interface EventUpdateSellOrderAminoMsg { } /** EventUpdateSellOrder is an event emitted when a sell order is updated. */ export interface EventUpdateSellOrderSDKType { - sell_order_id: Long; + sell_order_id: bigint; } /** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ export interface EventCancelSellOrder { @@ -78,7 +77,7 @@ export interface EventCancelSellOrder { * sell_order_id is the unique identifier of the sell order that was * cancelled. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface EventCancelSellOrderProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; @@ -90,7 +89,7 @@ export interface EventCancelSellOrderAmino { * sell_order_id is the unique identifier of the sell order that was * cancelled. */ - sell_order_id: string; + sell_order_id?: string; } export interface EventCancelSellOrderAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; @@ -98,7 +97,7 @@ export interface EventCancelSellOrderAminoMsg { } /** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ export interface EventCancelSellOrderSDKType { - sell_order_id: Long; + sell_order_id: bigint; } /** * EventAllowDenom is an event emitted when a new denom is added for use in the @@ -124,7 +123,7 @@ export interface EventAllowDenomAmino { * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of * allowed denoms for use in the marketplace. */ - denom: string; + denom?: string; } export interface EventAllowDenomAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; @@ -165,7 +164,7 @@ export interface EventRemoveAllowedDenomAmino { * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of * allowed denoms for use in the marketplace. */ - denom: string; + denom?: string; } export interface EventRemoveAllowedDenomAminoMsg { type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; @@ -181,8 +180,9 @@ export interface EventRemoveAllowedDenomSDKType { denom: string; } export declare const EventSell: { - encode(message: EventSell, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSell; + typeUrl: string; + encode(message: EventSell, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSell; fromJSON(object: any): EventSell; toJSON(message: EventSell): unknown; fromPartial(object: Partial): EventSell; @@ -194,8 +194,9 @@ export declare const EventSell: { toProtoMsg(message: EventSell): EventSellProtoMsg; }; export declare const EventBuyDirect: { - encode(message: EventBuyDirect, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventBuyDirect; + typeUrl: string; + encode(message: EventBuyDirect, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect; fromJSON(object: any): EventBuyDirect; toJSON(message: EventBuyDirect): unknown; fromPartial(object: Partial): EventBuyDirect; @@ -207,8 +208,9 @@ export declare const EventBuyDirect: { toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg; }; export declare const EventUpdateSellOrder: { - encode(message: EventUpdateSellOrder, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateSellOrder; + typeUrl: string; + encode(message: EventUpdateSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder; fromJSON(object: any): EventUpdateSellOrder; toJSON(message: EventUpdateSellOrder): unknown; fromPartial(object: Partial): EventUpdateSellOrder; @@ -220,8 +222,9 @@ export declare const EventUpdateSellOrder: { toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg; }; export declare const EventCancelSellOrder: { - encode(message: EventCancelSellOrder, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCancelSellOrder; + typeUrl: string; + encode(message: EventCancelSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder; fromJSON(object: any): EventCancelSellOrder; toJSON(message: EventCancelSellOrder): unknown; fromPartial(object: Partial): EventCancelSellOrder; @@ -233,8 +236,9 @@ export declare const EventCancelSellOrder: { toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg; }; export declare const EventAllowDenom: { - encode(message: EventAllowDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventAllowDenom; + typeUrl: string; + encode(message: EventAllowDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom; fromJSON(object: any): EventAllowDenom; toJSON(message: EventAllowDenom): unknown; fromPartial(object: Partial): EventAllowDenom; @@ -246,8 +250,9 @@ export declare const EventAllowDenom: { toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg; }; export declare const EventRemoveAllowedDenom: { - encode(message: EventRemoveAllowedDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventRemoveAllowedDenom; + typeUrl: string; + encode(message: EventRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom; fromJSON(object: any): EventRemoveAllowedDenom; toJSON(message: EventRemoveAllowedDenom): unknown; fromPartial(object: Partial): EventRemoveAllowedDenom; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts index 17ec7af2..2ddfd5fb 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts @@ -1,12 +1,11 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** QuerySellOrderRequest is the Query/SellOrder request type. */ export interface QuerySellOrderRequest { /** sell_order_id is the id of the requested sell order. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface QuerySellOrderRequestProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; @@ -15,7 +14,7 @@ export interface QuerySellOrderRequestProtoMsg { /** QuerySellOrderRequest is the Query/SellOrder request type. */ export interface QuerySellOrderRequestAmino { /** sell_order_id is the id of the requested sell order. */ - sell_order_id: string; + sell_order_id?: string; } export interface QuerySellOrderRequestAminoMsg { type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; @@ -23,12 +22,12 @@ export interface QuerySellOrderRequestAminoMsg { } /** QuerySellOrderRequest is the Query/SellOrder request type. */ export interface QuerySellOrderRequestSDKType { - sell_order_id: Long; + sell_order_id: bigint; } /** QuerySellOrderResponse is the Query/SellOrder response type. */ export interface QuerySellOrderResponse { /** sell_order contains all information related to a sell order. */ - sellOrder: SellOrderInfo; + sellOrder?: SellOrderInfo; } export interface QuerySellOrderResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; @@ -45,12 +44,12 @@ export interface QuerySellOrderResponseAminoMsg { } /** QuerySellOrderResponse is the Query/SellOrder response type. */ export interface QuerySellOrderResponseSDKType { - sell_order: SellOrderInfoSDKType; + sell_order?: SellOrderInfoSDKType; } /** QuerySellOrdersRequest is the Query/SellOrders request type. */ export interface QuerySellOrdersRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QuerySellOrdersRequestProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; @@ -67,14 +66,14 @@ export interface QuerySellOrdersRequestAminoMsg { } /** QuerySellOrdersRequest is the Query/SellOrders request type. */ export interface QuerySellOrdersRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QuerySellOrdersResponse is the Query/SellOrders response type. */ export interface QuerySellOrdersResponse { /** sell_orders is a list of sell orders. */ sellOrders: SellOrderInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QuerySellOrdersResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; @@ -83,7 +82,7 @@ export interface QuerySellOrdersResponseProtoMsg { /** QuerySellOrdersResponse is the Query/SellOrders response type. */ export interface QuerySellOrdersResponseAmino { /** sell_orders is a list of sell orders. */ - sell_orders: SellOrderInfoAmino[]; + sell_orders?: SellOrderInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -94,7 +93,7 @@ export interface QuerySellOrdersResponseAminoMsg { /** QuerySellOrdersResponse is the Query/SellOrders response type. */ export interface QuerySellOrdersResponseSDKType { sell_orders: SellOrderInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch @@ -104,7 +103,7 @@ export interface QuerySellOrdersByBatchRequest { /** batch_denom is an ecocredit denom */ batchDenom: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QuerySellOrdersByBatchRequestProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; @@ -116,7 +115,7 @@ export interface QuerySellOrdersByBatchRequestProtoMsg { */ export interface QuerySellOrdersByBatchRequestAmino { /** batch_denom is an ecocredit denom */ - batch_denom: string; + batch_denom?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -130,7 +129,7 @@ export interface QuerySellOrdersByBatchRequestAminoMsg { */ export interface QuerySellOrdersByBatchRequestSDKType { batch_denom: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch @@ -140,7 +139,7 @@ export interface QuerySellOrdersByBatchResponse { /** sell_orders is a list of sell orders. */ sellOrders: SellOrderInfo[]; /** pagination defines an optional pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QuerySellOrdersByBatchResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; @@ -152,7 +151,7 @@ export interface QuerySellOrdersByBatchResponseProtoMsg { */ export interface QuerySellOrdersByBatchResponseAmino { /** sell_orders is a list of sell orders. */ - sell_orders: SellOrderInfoAmino[]; + sell_orders?: SellOrderInfoAmino[]; /** pagination defines an optional pagination for the response. */ pagination?: PageResponseAmino; } @@ -166,7 +165,7 @@ export interface QuerySellOrdersByBatchResponseAminoMsg { */ export interface QuerySellOrdersByBatchResponseSDKType { sell_orders: SellOrderInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request @@ -176,7 +175,7 @@ export interface QuerySellOrdersBySellerRequest { /** seller is the address of the account that is selling credits. */ seller: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QuerySellOrdersBySellerRequestProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; @@ -188,7 +187,7 @@ export interface QuerySellOrdersBySellerRequestProtoMsg { */ export interface QuerySellOrdersBySellerRequestAmino { /** seller is the address of the account that is selling credits. */ - seller: string; + seller?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -202,7 +201,7 @@ export interface QuerySellOrdersBySellerRequestAminoMsg { */ export interface QuerySellOrdersBySellerRequestSDKType { seller: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse @@ -212,7 +211,7 @@ export interface QuerySellOrdersBySellerResponse { /** sell_orders is a list of sell orders. */ sellOrders: SellOrderInfo[]; /** pagination defines an optional pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QuerySellOrdersBySellerResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; @@ -224,7 +223,7 @@ export interface QuerySellOrdersBySellerResponseProtoMsg { */ export interface QuerySellOrdersBySellerResponseAmino { /** sell_orders is a list of sell orders. */ - sell_orders: SellOrderInfoAmino[]; + sell_orders?: SellOrderInfoAmino[]; /** pagination defines an optional pagination for the response. */ pagination?: PageResponseAmino; } @@ -238,12 +237,12 @@ export interface QuerySellOrdersBySellerResponseAminoMsg { */ export interface QuerySellOrdersBySellerResponseSDKType { sell_orders: SellOrderInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ export interface QueryAllowedDenomsRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllowedDenomsRequestProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; @@ -260,7 +259,7 @@ export interface QueryAllowedDenomsRequestAminoMsg { } /** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ export interface QueryAllowedDenomsRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ export interface QueryAllowedDenomsResponse { @@ -270,7 +269,7 @@ export interface QueryAllowedDenomsResponse { */ allowedDenoms: AllowedDenom[]; /** pagination defines an optional pagination for the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllowedDenomsResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; @@ -282,7 +281,7 @@ export interface QueryAllowedDenomsResponseAmino { * allowed_denoms is a list of coin denoms allowed to use in the ask price of * sell orders. */ - allowed_denoms: AllowedDenomAmino[]; + allowed_denoms?: AllowedDenomAmino[]; /** pagination defines an optional pagination for the response. */ pagination?: PageResponseAmino; } @@ -293,12 +292,12 @@ export interface QueryAllowedDenomsResponseAminoMsg { /** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ export interface QueryAllowedDenomsResponseSDKType { allowed_denoms: AllowedDenomSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** SellOrderInfo is the human-readable sell order information. */ export interface SellOrderInfo { /** id is the unique ID of sell order. */ - id: Long; + id: bigint; /** seller is the address of the account that is selling credits. */ seller: string; /** batch_denom is denom of the credit batch being sold. */ @@ -323,7 +322,7 @@ export interface SellOrderInfo { * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration: Timestamp; + expiration?: Timestamp; } export interface SellOrderInfoProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; @@ -332,32 +331,32 @@ export interface SellOrderInfoProtoMsg { /** SellOrderInfo is the human-readable sell order information. */ export interface SellOrderInfoAmino { /** id is the unique ID of sell order. */ - id: string; + id?: string; /** seller is the address of the account that is selling credits. */ - seller: string; + seller?: string; /** batch_denom is denom of the credit batch being sold. */ - batch_denom: string; + batch_denom?: string; /** quantity is the decimal quantity of credits being sold. */ - quantity: string; + quantity?: string; /** ask_denom is the denom used in the ask price of the sell order. */ - ask_denom: string; + ask_denom?: string; /** * ask_amount is the amount that the seller is asking for each credit unit of * the batch. Each credit unit of the batch will be sold for at least the * ask_amount. */ - ask_amount: string; + ask_amount?: string; /** * disable_auto_retire disables auto-retirement of credits which allows a * buyer to disable auto-retirement in their buy order enabling them to * resell the credits to another buyer. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration?: TimestampAmino; + expiration?: string; } export interface SellOrderInfoAminoMsg { type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; @@ -365,18 +364,19 @@ export interface SellOrderInfoAminoMsg { } /** SellOrderInfo is the human-readable sell order information. */ export interface SellOrderInfoSDKType { - id: Long; + id: bigint; seller: string; batch_denom: string; quantity: string; ask_denom: string; ask_amount: string; disable_auto_retire: boolean; - expiration: TimestampSDKType; + expiration?: TimestampSDKType; } export declare const QuerySellOrderRequest: { - encode(message: QuerySellOrderRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrderRequest; + typeUrl: string; + encode(message: QuerySellOrderRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest; fromJSON(object: any): QuerySellOrderRequest; toJSON(message: QuerySellOrderRequest): unknown; fromPartial(object: Partial): QuerySellOrderRequest; @@ -388,8 +388,9 @@ export declare const QuerySellOrderRequest: { toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg; }; export declare const QuerySellOrderResponse: { - encode(message: QuerySellOrderResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrderResponse; + typeUrl: string; + encode(message: QuerySellOrderResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse; fromJSON(object: any): QuerySellOrderResponse; toJSON(message: QuerySellOrderResponse): unknown; fromPartial(object: Partial): QuerySellOrderResponse; @@ -401,8 +402,9 @@ export declare const QuerySellOrderResponse: { toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg; }; export declare const QuerySellOrdersRequest: { - encode(message: QuerySellOrdersRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersRequest; + typeUrl: string; + encode(message: QuerySellOrdersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest; fromJSON(object: any): QuerySellOrdersRequest; toJSON(message: QuerySellOrdersRequest): unknown; fromPartial(object: Partial): QuerySellOrdersRequest; @@ -414,8 +416,9 @@ export declare const QuerySellOrdersRequest: { toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg; }; export declare const QuerySellOrdersResponse: { - encode(message: QuerySellOrdersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersResponse; + typeUrl: string; + encode(message: QuerySellOrdersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse; fromJSON(object: any): QuerySellOrdersResponse; toJSON(message: QuerySellOrdersResponse): unknown; fromPartial(object: Partial): QuerySellOrdersResponse; @@ -427,8 +430,9 @@ export declare const QuerySellOrdersResponse: { toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg; }; export declare const QuerySellOrdersByBatchRequest: { - encode(message: QuerySellOrdersByBatchRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest; + typeUrl: string; + encode(message: QuerySellOrdersByBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest; fromJSON(object: any): QuerySellOrdersByBatchRequest; toJSON(message: QuerySellOrdersByBatchRequest): unknown; fromPartial(object: Partial): QuerySellOrdersByBatchRequest; @@ -440,8 +444,9 @@ export declare const QuerySellOrdersByBatchRequest: { toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg; }; export declare const QuerySellOrdersByBatchResponse: { - encode(message: QuerySellOrdersByBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse; + typeUrl: string; + encode(message: QuerySellOrdersByBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse; fromJSON(object: any): QuerySellOrdersByBatchResponse; toJSON(message: QuerySellOrdersByBatchResponse): unknown; fromPartial(object: Partial): QuerySellOrdersByBatchResponse; @@ -453,8 +458,9 @@ export declare const QuerySellOrdersByBatchResponse: { toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg; }; export declare const QuerySellOrdersBySellerRequest: { - encode(message: QuerySellOrdersBySellerRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest; + typeUrl: string; + encode(message: QuerySellOrdersBySellerRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest; fromJSON(object: any): QuerySellOrdersBySellerRequest; toJSON(message: QuerySellOrdersBySellerRequest): unknown; fromPartial(object: Partial): QuerySellOrdersBySellerRequest; @@ -466,8 +472,9 @@ export declare const QuerySellOrdersBySellerRequest: { toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg; }; export declare const QuerySellOrdersBySellerResponse: { - encode(message: QuerySellOrdersBySellerResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse; + typeUrl: string; + encode(message: QuerySellOrdersBySellerResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse; fromJSON(object: any): QuerySellOrdersBySellerResponse; toJSON(message: QuerySellOrdersBySellerResponse): unknown; fromPartial(object: Partial): QuerySellOrdersBySellerResponse; @@ -479,8 +486,9 @@ export declare const QuerySellOrdersBySellerResponse: { toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg; }; export declare const QueryAllowedDenomsRequest: { - encode(message: QueryAllowedDenomsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedDenomsRequest; + typeUrl: string; + encode(message: QueryAllowedDenomsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest; fromJSON(object: any): QueryAllowedDenomsRequest; toJSON(message: QueryAllowedDenomsRequest): unknown; fromPartial(object: Partial): QueryAllowedDenomsRequest; @@ -492,8 +500,9 @@ export declare const QueryAllowedDenomsRequest: { toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg; }; export declare const QueryAllowedDenomsResponse: { - encode(message: QueryAllowedDenomsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedDenomsResponse; + typeUrl: string; + encode(message: QueryAllowedDenomsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse; fromJSON(object: any): QueryAllowedDenomsResponse; toJSON(message: QueryAllowedDenomsResponse): unknown; fromPartial(object: Partial): QueryAllowedDenomsResponse; @@ -505,8 +514,9 @@ export declare const QueryAllowedDenomsResponse: { toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg; }; export declare const SellOrderInfo: { - encode(message: SellOrderInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SellOrderInfo; + typeUrl: string; + encode(message: SellOrderInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo; fromJSON(object: any): SellOrderInfo; toJSON(message: SellOrderInfo): unknown; fromPartial(object: Partial): SellOrderInfo; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts index 7662f3c2..ca3ff490 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts index e7cd829a..dc5a1be4 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts @@ -1,24 +1,23 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** SellOrder represents the information for a sell order. */ export interface SellOrder { /** id is the unique ID of sell order. */ - id: Long; + id: bigint; /** seller is the address of the account that is selling credits. */ seller: Uint8Array; /** * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a sell order to a credit batch. */ - batchKey: Long; + batchKey: bigint; /** quantity is the decimal quantity of credits being sold. */ quantity: string; /** * market_id is the market in which this sell order exists and specifies * the bank_denom that ask_amount corresponds to forming the ask_price. */ - marketId: Long; + marketId: bigint; /** * ask_amount is the integer amount (encoded as a string) that the seller is * asking for each credit unit of the batch. Each credit unit of the batch @@ -36,7 +35,7 @@ export interface SellOrder { * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration: Timestamp; + expiration?: Timestamp; /** * maker indicates that this is a maker order, meaning that when it hit * the order book, there were no matching buy orders. @@ -50,44 +49,44 @@ export interface SellOrderProtoMsg { /** SellOrder represents the information for a sell order. */ export interface SellOrderAmino { /** id is the unique ID of sell order. */ - id: string; + id?: string; /** seller is the address of the account that is selling credits. */ - seller: Uint8Array; + seller?: string; /** * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a sell order to a credit batch. */ - batch_key: string; + batch_key?: string; /** quantity is the decimal quantity of credits being sold. */ - quantity: string; + quantity?: string; /** * market_id is the market in which this sell order exists and specifies * the bank_denom that ask_amount corresponds to forming the ask_price. */ - market_id: string; + market_id?: string; /** * ask_amount is the integer amount (encoded as a string) that the seller is * asking for each credit unit of the batch. Each credit unit of the batch * will be sold for at least the ask_amount. The ask_amount corresponds to the * Market.denom to form the ask price. */ - ask_amount: string; + ask_amount?: string; /** * disable_auto_retire disables auto-retirement of credits which allows a * buyer to disable auto-retirement in their buy order enabling them to * resell the credits to another buyer. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration?: TimestampAmino; + expiration?: string; /** * maker indicates that this is a maker order, meaning that when it hit * the order book, there were no matching buy orders. */ - maker: boolean; + maker?: boolean; } export interface SellOrderAminoMsg { type: "/regen.ecocredit.marketplace.v1.SellOrder"; @@ -95,14 +94,14 @@ export interface SellOrderAminoMsg { } /** SellOrder represents the information for a sell order. */ export interface SellOrderSDKType { - id: Long; + id: bigint; seller: Uint8Array; - batch_key: Long; + batch_key: bigint; quantity: string; - market_id: Long; + market_id: bigint; ask_amount: string; disable_auto_retire: boolean; - expiration: TimestampSDKType; + expiration?: TimestampSDKType; maker: boolean; } /** AllowedDenom represents the information for an allowed ask/bid denom. */ @@ -128,18 +127,18 @@ export interface AllowedDenomProtoMsg { /** AllowedDenom represents the information for an allowed ask/bid denom. */ export interface AllowedDenomAmino { /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom: string; + bank_denom?: string; /** * display_denom is the denom to display to the user and is informational. * Because the denom is likely an IBC denom, this should be chosen by * governance to represent the consensus trusted name of the denom. */ - display_denom: string; + display_denom?: string; /** * exponent is the exponent that relates the denom to the display_denom and is * informational */ - exponent: number; + exponent?: number; } export interface AllowedDenomAminoMsg { type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; @@ -164,7 +163,7 @@ export interface AllowedDenomSDKType { */ export interface Market { /** id is the unique ID of the market. */ - id: Long; + id: bigint; /** credit_type_abbrev is the abbreviation of the credit type. */ creditTypeAbbrev: string; /** bank_denom is an allowed bank denom. */ @@ -215,11 +214,11 @@ export interface MarketProtoMsg { */ export interface MarketAmino { /** id is the unique ID of the market. */ - id: string; + id?: string; /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** bank_denom is an allowed bank denom. */ - bank_denom: string; + bank_denom?: string; /** * precision_modifier is an optional modifier used to convert arbitrary * precision integer bank amounts to uint32 values used for sorting in the @@ -247,7 +246,7 @@ export interface MarketAmino { * will need to adjust precision_modifier to allow for higher prices in * exchange for less precision at the lower end. */ - precision_modifier: number; + precision_modifier?: number; } export interface MarketAminoMsg { type: "/regen.ecocredit.marketplace.v1.Market"; @@ -265,14 +264,15 @@ export interface MarketAminoMsg { * with care. */ export interface MarketSDKType { - id: Long; + id: bigint; credit_type_abbrev: string; bank_denom: string; precision_modifier: number; } export declare const SellOrder: { - encode(message: SellOrder, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SellOrder; + typeUrl: string; + encode(message: SellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SellOrder; fromJSON(object: any): SellOrder; toJSON(message: SellOrder): unknown; fromPartial(object: Partial): SellOrder; @@ -284,8 +284,9 @@ export declare const SellOrder: { toProtoMsg(message: SellOrder): SellOrderProtoMsg; }; export declare const AllowedDenom: { - encode(message: AllowedDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedDenom; + typeUrl: string; + encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; fromJSON(object: any): AllowedDenom; toJSON(message: AllowedDenom): unknown; fromPartial(object: Partial): AllowedDenom; @@ -297,8 +298,9 @@ export declare const AllowedDenom: { toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; }; export declare const Market: { - encode(message: Market, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Market; + typeUrl: string; + encode(message: Market, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Market; fromJSON(object: any): Market; toJSON(message: Market): unknown; fromPartial(object: Partial): Market; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts index 04c086e6..9780ba87 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts @@ -1,7 +1,6 @@ import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** MsgSell is the Msg/Sell request type. */ export interface MsgSell { /** seller is the address of the account that is selling credits. */ @@ -16,9 +15,9 @@ export interface MsgSellProtoMsg { /** MsgSell is the Msg/Sell request type. */ export interface MsgSellAmino { /** seller is the address of the account that is selling credits. */ - seller: string; + seller?: string; /** orders are the sell orders being created. */ - orders: MsgSell_OrderAmino[]; + orders?: MsgSell_OrderAmino[]; } export interface MsgSellAminoMsg { type: "regen.marketplace/MsgSell"; @@ -46,7 +45,7 @@ export interface MsgSell_Order { * batch_denom. Each credit unit of the batch will be sold for at least the * ask_price or more. */ - askPrice: Coin; + askPrice?: Coin; /** * disable_auto_retire disables auto-retirement of credits which allows a * buyer to disable auto-retirement in their buy order enabling them to @@ -57,7 +56,7 @@ export interface MsgSell_Order { * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration: Timestamp; + expiration?: Timestamp; } export interface MsgSell_OrderProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.Order"; @@ -66,7 +65,7 @@ export interface MsgSell_OrderProtoMsg { /** Order is the content of a new sell order. */ export interface MsgSell_OrderAmino { /** batch_denom is the credit batch being sold. */ - batch_denom: string; + batch_denom?: string; /** * quantity is the quantity of credits being sold from this batch. If it is * less then the balance of credits the owner has available at the time this @@ -74,7 +73,7 @@ export interface MsgSell_OrderAmino { * owner's balance. However, if the balance of credits is less than this * quantity at the time the sell order is created, the operation will fail. */ - quantity: string; + quantity?: string; /** * ask_price is the price the seller is asking for each unit of the * batch_denom. Each credit unit of the batch will be sold for at least the @@ -86,12 +85,12 @@ export interface MsgSell_OrderAmino { * buyer to disable auto-retirement in their buy order enabling them to * resell the credits to another buyer. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * expiration is an optional timestamp when the sell order expires. When the * expiration time is reached, the sell order is removed from state. */ - expiration?: TimestampAmino; + expiration?: string; } export interface MsgSell_OrderAminoMsg { type: "/regen.ecocredit.marketplace.v1.Order"; @@ -101,14 +100,14 @@ export interface MsgSell_OrderAminoMsg { export interface MsgSell_OrderSDKType { batch_denom: string; quantity: string; - ask_price: CoinSDKType; + ask_price?: CoinSDKType; disable_auto_retire: boolean; - expiration: TimestampSDKType; + expiration?: TimestampSDKType; } /** MsgSellResponse is the Msg/Sell response type. */ export interface MsgSellResponse { /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sellOrderIds: Long[]; + sellOrderIds: bigint[]; } export interface MsgSellResponseProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; @@ -117,7 +116,7 @@ export interface MsgSellResponseProtoMsg { /** MsgSellResponse is the Msg/Sell response type. */ export interface MsgSellResponseAmino { /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sell_order_ids: string[]; + sell_order_ids?: string[]; } export interface MsgSellResponseAminoMsg { type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; @@ -125,7 +124,7 @@ export interface MsgSellResponseAminoMsg { } /** MsgSellResponse is the Msg/Sell response type. */ export interface MsgSellResponseSDKType { - sell_order_ids: Long[]; + sell_order_ids: bigint[]; } /** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ export interface MsgUpdateSellOrders { @@ -141,9 +140,9 @@ export interface MsgUpdateSellOrdersProtoMsg { /** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ export interface MsgUpdateSellOrdersAmino { /** seller is the address of the account that is selling credits. */ - seller: string; + seller?: string; /** updates are updates to existing sell orders. */ - updates: MsgUpdateSellOrders_UpdateAmino[]; + updates?: MsgUpdateSellOrders_UpdateAmino[]; } export interface MsgUpdateSellOrdersAminoMsg { type: "regen.marketplace/MsgUpdateSellOrders"; @@ -157,11 +156,11 @@ export interface MsgUpdateSellOrdersSDKType { /** Update is an update to an existing sell order. */ export interface MsgUpdateSellOrders_Update { /** sell_order_id is the ID of an existing sell order. */ - sellOrderId: Long; + sellOrderId: bigint; /** new_quantity is the updated quantity of credits available to sell. */ newQuantity: string; /** new_ask_price is the new ask price for this sell order */ - newAskPrice: Coin; + newAskPrice?: Coin; /** * disable_auto_retire updates the disable_auto_retire field in the sell * order. @@ -171,7 +170,7 @@ export interface MsgUpdateSellOrders_Update { * new_expiration is an optional timestamp when the sell order expires. When * the expiration time is reached, the sell order is removed from state. */ - newExpiration: Timestamp; + newExpiration?: Timestamp; } export interface MsgUpdateSellOrders_UpdateProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.Update"; @@ -180,21 +179,21 @@ export interface MsgUpdateSellOrders_UpdateProtoMsg { /** Update is an update to an existing sell order. */ export interface MsgUpdateSellOrders_UpdateAmino { /** sell_order_id is the ID of an existing sell order. */ - sell_order_id: string; + sell_order_id?: string; /** new_quantity is the updated quantity of credits available to sell. */ - new_quantity: string; + new_quantity?: string; /** new_ask_price is the new ask price for this sell order */ new_ask_price?: CoinAmino; /** * disable_auto_retire updates the disable_auto_retire field in the sell * order. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * new_expiration is an optional timestamp when the sell order expires. When * the expiration time is reached, the sell order is removed from state. */ - new_expiration?: TimestampAmino; + new_expiration?: string; } export interface MsgUpdateSellOrders_UpdateAminoMsg { type: "/regen.ecocredit.marketplace.v1.Update"; @@ -202,11 +201,11 @@ export interface MsgUpdateSellOrders_UpdateAminoMsg { } /** Update is an update to an existing sell order. */ export interface MsgUpdateSellOrders_UpdateSDKType { - sell_order_id: Long; + sell_order_id: bigint; new_quantity: string; - new_ask_price: CoinSDKType; + new_ask_price?: CoinSDKType; disable_auto_retire: boolean; - new_expiration: TimestampSDKType; + new_expiration?: TimestampSDKType; } /** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ export interface MsgUpdateSellOrdersResponse { @@ -233,7 +232,7 @@ export interface MsgCancelSellOrder { */ seller: string; /** sell_order_id is the id of the seller order to cancel. */ - sellOrderId: Long; + sellOrderId: bigint; } export interface MsgCancelSellOrderProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; @@ -245,9 +244,9 @@ export interface MsgCancelSellOrderAmino { * seller is the address of the account that created the sell order and is * therefore authorized to cancel the sell order. */ - seller: string; + seller?: string; /** sell_order_id is the id of the seller order to cancel. */ - sell_order_id: string; + sell_order_id?: string; } export interface MsgCancelSellOrderAminoMsg { type: "regen.marketplace/MsgCancelSellOrder"; @@ -256,7 +255,7 @@ export interface MsgCancelSellOrderAminoMsg { /** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ export interface MsgCancelSellOrderSDKType { seller: string; - sell_order_id: Long; + sell_order_id: bigint; } /** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ export interface MsgCancelSellOrderResponse { @@ -289,9 +288,9 @@ export interface MsgBuyDirectProtoMsg { /** MsgBuyDirect is the Msg/BuyDirect request type. */ export interface MsgBuyDirectAmino { /** buyer is the address of the account that is buying credits. */ - buyer: string; + buyer?: string; /** orders is a list of orders for ecocredits. */ - orders: MsgBuyDirect_OrderAmino[]; + orders?: MsgBuyDirect_OrderAmino[]; } export interface MsgBuyDirectAminoMsg { type: "regen.marketplace/MsgBuyDirect"; @@ -308,11 +307,11 @@ export interface MsgBuyDirect_Order { * sell_order_id is the sell order ID against which the buyer is trying * to buy. */ - sellOrderId: Long; + sellOrderId: bigint; /** quantity is the quantity of credits to buy. */ quantity: string; /** bid_price is the price the buyer is willing to pay per credit. */ - bidPrice: Coin; + bidPrice?: Coin; /** * disable_auto_retire allows auto-retirement to be disabled. If it is set * to true the credits will not auto-retire and can be resold assuming that @@ -345,9 +344,9 @@ export interface MsgBuyDirect_OrderAmino { * sell_order_id is the sell order ID against which the buyer is trying * to buy. */ - sell_order_id: string; + sell_order_id?: string; /** quantity is the quantity of credits to buy. */ - quantity: string; + quantity?: string; /** bid_price is the price the buyer is willing to pay per credit. */ bid_price?: CoinAmino; /** @@ -357,12 +356,12 @@ export interface MsgBuyDirect_OrderAmino { * order hasn't disabled auto-retirement and the buy order tries to disable * it, that buy order will fail. */ - disable_auto_retire: boolean; + disable_auto_retire?: boolean; /** * retirement_jurisdiction is the optional retirement jurisdiction for the * credits which will be used only if disable_auto_retire is false. */ - retirement_jurisdiction: string; + retirement_jurisdiction?: string; /** * retirement_reason is any arbitrary string that specifies the reason for * retiring credits. The reason will be included in EventRetire and is not @@ -370,7 +369,7 @@ export interface MsgBuyDirect_OrderAmino { * * Since Revision 1 */ - retirement_reason: string; + retirement_reason?: string; } export interface MsgBuyDirect_OrderAminoMsg { type: "/regen.ecocredit.marketplace.v1.Order"; @@ -378,9 +377,9 @@ export interface MsgBuyDirect_OrderAminoMsg { } /** Order contains the information needed to purchase an ecocredit. */ export interface MsgBuyDirect_OrderSDKType { - sell_order_id: Long; + sell_order_id: bigint; quantity: string; - bid_price: CoinSDKType; + bid_price?: CoinSDKType; disable_auto_retire: boolean; retirement_jurisdiction: string; retirement_reason: string; @@ -435,20 +434,20 @@ export interface MsgAddAllowedDenomProtoMsg { */ export interface MsgAddAllowedDenomAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom: string; + bank_denom?: string; /** * display_denom is the denom to display to the user and is informational. * Because the denom is likely an IBC denom, this should be chosen by * governance to represent the consensus trusted name of the denom. */ - display_denom: string; + display_denom?: string; /** * exponent is the exponent that relates the denom to the display_denom and is * informational */ - exponent: number; + exponent?: number; } export interface MsgAddAllowedDenomAminoMsg { type: "regen.marketplace/MsgAddAllowedDenom"; @@ -516,9 +515,9 @@ export interface MsgRemoveAllowedDenomProtoMsg { */ export interface MsgRemoveAllowedDenomAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom: string; + denom?: string; } export interface MsgRemoveAllowedDenomAminoMsg { type: "regen.marketplace/MsgRemoveAllowedDenom"; @@ -563,8 +562,9 @@ export interface MsgRemoveAllowedDenomResponseAminoMsg { export interface MsgRemoveAllowedDenomResponseSDKType { } export declare const MsgSell: { - encode(message: MsgSell, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSell; + typeUrl: string; + encode(message: MsgSell, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell; fromJSON(object: any): MsgSell; toJSON(message: MsgSell): unknown; fromPartial(object: Partial): MsgSell; @@ -577,8 +577,9 @@ export declare const MsgSell: { toProtoMsg(message: MsgSell): MsgSellProtoMsg; }; export declare const MsgSell_Order: { - encode(message: MsgSell_Order, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSell_Order; + typeUrl: string; + encode(message: MsgSell_Order, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order; fromJSON(object: any): MsgSell_Order; toJSON(message: MsgSell_Order): unknown; fromPartial(object: Partial): MsgSell_Order; @@ -590,8 +591,9 @@ export declare const MsgSell_Order: { toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg; }; export declare const MsgSellResponse: { - encode(message: MsgSellResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSellResponse; + typeUrl: string; + encode(message: MsgSellResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse; fromJSON(object: any): MsgSellResponse; toJSON(message: MsgSellResponse): unknown; fromPartial(object: Partial): MsgSellResponse; @@ -603,8 +605,9 @@ export declare const MsgSellResponse: { toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg; }; export declare const MsgUpdateSellOrders: { - encode(message: MsgUpdateSellOrders, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateSellOrders; + typeUrl: string; + encode(message: MsgUpdateSellOrders, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders; fromJSON(object: any): MsgUpdateSellOrders; toJSON(message: MsgUpdateSellOrders): unknown; fromPartial(object: Partial): MsgUpdateSellOrders; @@ -617,8 +620,9 @@ export declare const MsgUpdateSellOrders: { toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg; }; export declare const MsgUpdateSellOrders_Update: { - encode(message: MsgUpdateSellOrders_Update, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateSellOrders_Update; + typeUrl: string; + encode(message: MsgUpdateSellOrders_Update, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update; fromJSON(object: any): MsgUpdateSellOrders_Update; toJSON(message: MsgUpdateSellOrders_Update): unknown; fromPartial(object: Partial): MsgUpdateSellOrders_Update; @@ -630,8 +634,9 @@ export declare const MsgUpdateSellOrders_Update: { toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg; }; export declare const MsgUpdateSellOrdersResponse: { - encode(_: MsgUpdateSellOrdersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse; + typeUrl: string; + encode(_: MsgUpdateSellOrdersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse; fromJSON(_: any): MsgUpdateSellOrdersResponse; toJSON(_: MsgUpdateSellOrdersResponse): unknown; fromPartial(_: Partial): MsgUpdateSellOrdersResponse; @@ -643,8 +648,9 @@ export declare const MsgUpdateSellOrdersResponse: { toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg; }; export declare const MsgCancelSellOrder: { - encode(message: MsgCancelSellOrder, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelSellOrder; + typeUrl: string; + encode(message: MsgCancelSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder; fromJSON(object: any): MsgCancelSellOrder; toJSON(message: MsgCancelSellOrder): unknown; fromPartial(object: Partial): MsgCancelSellOrder; @@ -657,8 +663,9 @@ export declare const MsgCancelSellOrder: { toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg; }; export declare const MsgCancelSellOrderResponse: { - encode(_: MsgCancelSellOrderResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelSellOrderResponse; + typeUrl: string; + encode(_: MsgCancelSellOrderResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse; fromJSON(_: any): MsgCancelSellOrderResponse; toJSON(_: MsgCancelSellOrderResponse): unknown; fromPartial(_: Partial): MsgCancelSellOrderResponse; @@ -670,8 +677,9 @@ export declare const MsgCancelSellOrderResponse: { toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg; }; export declare const MsgBuyDirect: { - encode(message: MsgBuyDirect, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBuyDirect; + typeUrl: string; + encode(message: MsgBuyDirect, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect; fromJSON(object: any): MsgBuyDirect; toJSON(message: MsgBuyDirect): unknown; fromPartial(object: Partial): MsgBuyDirect; @@ -684,8 +692,9 @@ export declare const MsgBuyDirect: { toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg; }; export declare const MsgBuyDirect_Order: { - encode(message: MsgBuyDirect_Order, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBuyDirect_Order; + typeUrl: string; + encode(message: MsgBuyDirect_Order, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order; fromJSON(object: any): MsgBuyDirect_Order; toJSON(message: MsgBuyDirect_Order): unknown; fromPartial(object: Partial): MsgBuyDirect_Order; @@ -697,8 +706,9 @@ export declare const MsgBuyDirect_Order: { toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg; }; export declare const MsgBuyDirectResponse: { - encode(_: MsgBuyDirectResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBuyDirectResponse; + typeUrl: string; + encode(_: MsgBuyDirectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse; fromJSON(_: any): MsgBuyDirectResponse; toJSON(_: MsgBuyDirectResponse): unknown; fromPartial(_: Partial): MsgBuyDirectResponse; @@ -710,8 +720,9 @@ export declare const MsgBuyDirectResponse: { toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg; }; export declare const MsgAddAllowedDenom: { - encode(message: MsgAddAllowedDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAllowedDenom; + typeUrl: string; + encode(message: MsgAddAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom; fromJSON(object: any): MsgAddAllowedDenom; toJSON(message: MsgAddAllowedDenom): unknown; fromPartial(object: Partial): MsgAddAllowedDenom; @@ -724,8 +735,9 @@ export declare const MsgAddAllowedDenom: { toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg; }; export declare const MsgAddAllowedDenomResponse: { - encode(_: MsgAddAllowedDenomResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAllowedDenomResponse; + typeUrl: string; + encode(_: MsgAddAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse; fromJSON(_: any): MsgAddAllowedDenomResponse; toJSON(_: MsgAddAllowedDenomResponse): unknown; fromPartial(_: Partial): MsgAddAllowedDenomResponse; @@ -737,8 +749,9 @@ export declare const MsgAddAllowedDenomResponse: { toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg; }; export declare const MsgRemoveAllowedDenom: { - encode(message: MsgRemoveAllowedDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveAllowedDenom; + typeUrl: string; + encode(message: MsgRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom; fromJSON(object: any): MsgRemoveAllowedDenom; toJSON(message: MsgRemoveAllowedDenom): unknown; fromPartial(object: Partial): MsgRemoveAllowedDenom; @@ -751,8 +764,9 @@ export declare const MsgRemoveAllowedDenom: { toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg; }; export declare const MsgRemoveAllowedDenomResponse: { - encode(_: MsgRemoveAllowedDenomResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse; + typeUrl: string; + encode(_: MsgRemoveAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse; fromJSON(_: any): MsgRemoveAllowedDenomResponse; toJSON(_: MsgRemoveAllowedDenomResponse): unknown; fromPartial(_: Partial): MsgRemoveAllowedDenomResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts index 0a93284a..47d813da 100644 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts @@ -1,5 +1,5 @@ import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * AllowDenomProposal is a gov Content type for approving a denom for use in the * marketplace. @@ -16,7 +16,7 @@ export interface AllowDenomProposal { * denom contains coin denom information that will be added to the * list of allowed denoms for use in the marketplace. */ - denom: AllowedDenom; + denom?: AllowedDenom; } export interface AllowDenomProposalProtoMsg { typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; @@ -31,9 +31,9 @@ export interface AllowDenomProposalProtoMsg { */ export interface AllowDenomProposalAmino { /** title is the title of the proposal. */ - title: string; + title?: string; /** description is the description of the proposal. */ - description: string; + description?: string; /** * denom contains coin denom information that will be added to the * list of allowed denoms for use in the marketplace. @@ -54,11 +54,12 @@ export interface AllowDenomProposalAminoMsg { export interface AllowDenomProposalSDKType { title: string; description: string; - denom: AllowedDenomSDKType; + denom?: AllowedDenomSDKType; } export declare const AllowDenomProposal: { - encode(message: AllowDenomProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowDenomProposal; + typeUrl: string; + encode(message: AllowDenomProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal; fromJSON(object: any): AllowDenomProposal; toJSON(message: AllowDenomProposal): unknown; fromPartial(object: Partial): AllowDenomProposal; diff --git a/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts b/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts index e87e1fbb..ead43dc2 100644 --- a/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts @@ -1,17 +1,16 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Long } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; /** * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching * algorithm used to actually match buy and sell orders. */ export interface BuyOrderSellOrderMatch { /** market_id defines the market within which this match exists. */ - marketId: Long; + marketId: bigint; /** buy_order_id is the buy order ID. */ - buyOrderId: Long; + buyOrderId: bigint; /** sell_order_id is the sell order ID. */ - sellOrderId: Long; + sellOrderId: bigint; /** * bid_price_complement is the the complement (^ operator) of the bid price * encoded as a uint32 (which should have sufficient precision) - effectively @@ -35,23 +34,23 @@ export interface BuyOrderSellOrderMatchProtoMsg { */ export interface BuyOrderSellOrderMatchAmino { /** market_id defines the market within which this match exists. */ - market_id: string; + market_id?: string; /** buy_order_id is the buy order ID. */ - buy_order_id: string; + buy_order_id?: string; /** sell_order_id is the sell order ID. */ - sell_order_id: string; + sell_order_id?: string; /** * bid_price_complement is the the complement (^ operator) of the bid price * encoded as a uint32 (which should have sufficient precision) - effectively * ~price * 10^exponent (usually 10^6). The complement is used so that bids * can be sorted high to low. */ - bid_price_complement: number; + bid_price_complement?: number; /** * ask_price is the ask price encoded to a uint32. Ask prices are sorted low * to high. */ - ask_price: number; + ask_price?: number; } export interface BuyOrderSellOrderMatchAminoMsg { type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; @@ -62,24 +61,24 @@ export interface BuyOrderSellOrderMatchAminoMsg { * algorithm used to actually match buy and sell orders. */ export interface BuyOrderSellOrderMatchSDKType { - market_id: Long; - buy_order_id: Long; - sell_order_id: Long; + market_id: bigint; + buy_order_id: bigint; + sell_order_id: bigint; bid_price_complement: number; ask_price: number; } /** BuyOrderClassSelector indexes a buy order with class selector. */ export interface BuyOrderClassSelector { /** buy_order_id is the buy order ID. */ - buyOrderId: Long; + buyOrderId: bigint; /** class_id is the class ID. */ - classId: Long; + classId: bigint; /** project_location is the project location in the selector's criteria. */ projectLocation: string; /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate: Timestamp; + minStartDate?: Timestamp; /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate: Timestamp; + maxEndDate?: Timestamp; } export interface BuyOrderClassSelectorProtoMsg { typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; @@ -88,15 +87,15 @@ export interface BuyOrderClassSelectorProtoMsg { /** BuyOrderClassSelector indexes a buy order with class selector. */ export interface BuyOrderClassSelectorAmino { /** buy_order_id is the buy order ID. */ - buy_order_id: string; + buy_order_id?: string; /** class_id is the class ID. */ - class_id: string; + class_id?: string; /** project_location is the project location in the selector's criteria. */ - project_location: string; + project_location?: string; /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: TimestampAmino; + min_start_date?: string; /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: TimestampAmino; + max_end_date?: string; } export interface BuyOrderClassSelectorAminoMsg { type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; @@ -104,22 +103,22 @@ export interface BuyOrderClassSelectorAminoMsg { } /** BuyOrderClassSelector indexes a buy order with class selector. */ export interface BuyOrderClassSelectorSDKType { - buy_order_id: Long; - class_id: Long; + buy_order_id: bigint; + class_id: bigint; project_location: string; - min_start_date: TimestampSDKType; - max_end_date: TimestampSDKType; + min_start_date?: TimestampSDKType; + max_end_date?: TimestampSDKType; } /** BuyOrderProjectSelector indexes a buy order with project selector. */ export interface BuyOrderProjectSelector { /** buy_order_id is the buy order ID. */ - buyOrderId: Long; + buyOrderId: bigint; /** project_id is the project ID. */ - projectId: Long; + projectId: bigint; /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate: Timestamp; + minStartDate?: Timestamp; /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate: Timestamp; + maxEndDate?: Timestamp; } export interface BuyOrderProjectSelectorProtoMsg { typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; @@ -128,13 +127,13 @@ export interface BuyOrderProjectSelectorProtoMsg { /** BuyOrderProjectSelector indexes a buy order with project selector. */ export interface BuyOrderProjectSelectorAmino { /** buy_order_id is the buy order ID. */ - buy_order_id: string; + buy_order_id?: string; /** project_id is the project ID. */ - project_id: string; + project_id?: string; /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: TimestampAmino; + min_start_date?: string; /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: TimestampAmino; + max_end_date?: string; } export interface BuyOrderProjectSelectorAminoMsg { type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; @@ -142,17 +141,17 @@ export interface BuyOrderProjectSelectorAminoMsg { } /** BuyOrderProjectSelector indexes a buy order with project selector. */ export interface BuyOrderProjectSelectorSDKType { - buy_order_id: Long; - project_id: Long; - min_start_date: TimestampSDKType; - max_end_date: TimestampSDKType; + buy_order_id: bigint; + project_id: bigint; + min_start_date?: TimestampSDKType; + max_end_date?: TimestampSDKType; } /** BuyOrderBatchSelector indexes a buy order with batch selector. */ export interface BuyOrderBatchSelector { /** buy_order_id is the buy order ID. */ - buyOrderId: Long; + buyOrderId: bigint; /** batch_id is the batch ID. */ - batchId: Long; + batchId: bigint; } export interface BuyOrderBatchSelectorProtoMsg { typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; @@ -161,9 +160,9 @@ export interface BuyOrderBatchSelectorProtoMsg { /** BuyOrderBatchSelector indexes a buy order with batch selector. */ export interface BuyOrderBatchSelectorAmino { /** buy_order_id is the buy order ID. */ - buy_order_id: string; + buy_order_id?: string; /** batch_id is the batch ID. */ - batch_id: string; + batch_id?: string; } export interface BuyOrderBatchSelectorAminoMsg { type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; @@ -171,12 +170,13 @@ export interface BuyOrderBatchSelectorAminoMsg { } /** BuyOrderBatchSelector indexes a buy order with batch selector. */ export interface BuyOrderBatchSelectorSDKType { - buy_order_id: Long; - batch_id: Long; + buy_order_id: bigint; + batch_id: bigint; } export declare const BuyOrderSellOrderMatch: { - encode(message: BuyOrderSellOrderMatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BuyOrderSellOrderMatch; + typeUrl: string; + encode(message: BuyOrderSellOrderMatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch; fromJSON(object: any): BuyOrderSellOrderMatch; toJSON(message: BuyOrderSellOrderMatch): unknown; fromPartial(object: Partial): BuyOrderSellOrderMatch; @@ -188,8 +188,9 @@ export declare const BuyOrderSellOrderMatch: { toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg; }; export declare const BuyOrderClassSelector: { - encode(message: BuyOrderClassSelector, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BuyOrderClassSelector; + typeUrl: string; + encode(message: BuyOrderClassSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector; fromJSON(object: any): BuyOrderClassSelector; toJSON(message: BuyOrderClassSelector): unknown; fromPartial(object: Partial): BuyOrderClassSelector; @@ -201,8 +202,9 @@ export declare const BuyOrderClassSelector: { toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg; }; export declare const BuyOrderProjectSelector: { - encode(message: BuyOrderProjectSelector, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BuyOrderProjectSelector; + typeUrl: string; + encode(message: BuyOrderProjectSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector; fromJSON(object: any): BuyOrderProjectSelector; toJSON(message: BuyOrderProjectSelector): unknown; fromPartial(object: Partial): BuyOrderProjectSelector; @@ -214,8 +216,9 @@ export declare const BuyOrderProjectSelector: { toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg; }; export declare const BuyOrderBatchSelector: { - encode(message: BuyOrderBatchSelector, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BuyOrderBatchSelector; + typeUrl: string; + encode(message: BuyOrderBatchSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector; fromJSON(object: any): BuyOrderBatchSelector; toJSON(message: BuyOrderBatchSelector): unknown; fromPartial(object: Partial): BuyOrderBatchSelector; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts index 72a204bc..4bb6a87a 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts @@ -1,5 +1,5 @@ import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventCreateClass is an event emitted when a credit class is created. */ export interface EventCreateClass { /** class_id is the unique identifier of the credit class. */ @@ -12,7 +12,7 @@ export interface EventCreateClassProtoMsg { /** EventCreateClass is an event emitted when a credit class is created. */ export interface EventCreateClassAmino { /** class_id is the unique identifier of the credit class. */ - class_id: string; + class_id?: string; } export interface EventCreateClassAminoMsg { type: "/regen.ecocredit.v1.EventCreateClass"; @@ -34,7 +34,7 @@ export interface EventCreateProjectProtoMsg { /** EventCreateProject is an event emitted when a project is created. */ export interface EventCreateProjectAmino { /** project_id is the unique identifier of the project. */ - project_id: string; + project_id?: string; } export interface EventCreateProjectAminoMsg { type: "/regen.ecocredit.v1.EventCreateProject"; @@ -52,7 +52,7 @@ export interface EventCreateBatch { * origin_tx is the transaction from another chain or registry that triggered * the creation of the credit batch. */ - originTx: OriginTx; + originTx?: OriginTx; } export interface EventCreateBatchProtoMsg { typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; @@ -61,7 +61,7 @@ export interface EventCreateBatchProtoMsg { /** EventCreateBatch is an event emitted when a credit batch is created. */ export interface EventCreateBatchAmino { /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * origin_tx is the transaction from another chain or registry that triggered * the creation of the credit batch. @@ -75,7 +75,7 @@ export interface EventCreateBatchAminoMsg { /** EventCreateBatch is an event emitted when a credit batch is created. */ export interface EventCreateBatchSDKType { batch_denom: string; - origin_tx: OriginTxSDKType; + origin_tx?: OriginTxSDKType; } /** * EventMint is an event emitted when credits are minted either when creating a @@ -105,11 +105,11 @@ export interface EventMintAmino { * batch_denom is the unique identifier of the credit batch within which the * credits were minted. */ - batch_denom: string; + batch_denom?: string; /** tradable_amount is the amount of tradable credits minted. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the amount of retired credits minted. */ - retired_amount: string; + retired_amount?: string; } export interface EventMintAminoMsg { type: "/regen.ecocredit.v1.EventMint"; @@ -138,7 +138,7 @@ export interface EventMintBatchCredits { * origin_tx is the transaction from another chain or registry that triggered * the minting of credits within the credit batch. */ - originTx: OriginTx; + originTx?: OriginTx; } export interface EventMintBatchCreditsProtoMsg { typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; @@ -153,7 +153,7 @@ export interface EventMintBatchCreditsAmino { * batch_denom is the unique identifier of the credit batch within which the * credits were minted. */ - batch_denom: string; + batch_denom?: string; /** * origin_tx is the transaction from another chain or registry that triggered * the minting of credits within the credit batch. @@ -170,7 +170,7 @@ export interface EventMintBatchCreditsAminoMsg { */ export interface EventMintBatchCreditsSDKType { batch_denom: string; - origin_tx: OriginTxSDKType; + origin_tx?: OriginTxSDKType; } /** * EventTransfer is an event emitted when credits are transferred from one @@ -213,20 +213,20 @@ export interface EventTransferAmino { * case that the credits were transferred from a module, this will be the * module address (i.e. either the ecocredit module or basket submodule). */ - sender: string; + sender?: string; /** * recipient is the recipient of the credits. In the case that the credits * were transferred to a base account, this will be the account address. In * the case that the credits were transferred to a module, this will be the * module address (i.e. either the ecocredit module or basket submodule). */ - recipient: string; + recipient?: string; /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the decimal number of retired credits received. */ - retired_amount: string; + retired_amount?: string; } export interface EventTransferAminoMsg { type: "/regen.ecocredit.v1.EventTransfer"; @@ -297,14 +297,14 @@ export interface EventRetireAmino { * retired upon taking from a basket using basket.Msg/Take, or retired upon * purchase using marketplace.Msg/BuyDirect. */ - owner: string; + owner?: string; /** * batch_denom is the unique identifier of the credit batch within which the * credits were retired. */ - batch_denom: string; + batch_denom?: string; /** amount is the decimal number of credits that have been retired. */ - amount: string; + amount?: string; /** * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired * credits. It is a string of the form @@ -312,14 +312,14 @@ export interface EventRetireAmino { * fields conforming to ISO 3166-2, and postal-code being up to 64 * alphanumeric characters. */ - jurisdiction: string; + jurisdiction?: string; /** * reason is any arbitrary string that specifies the reason for retiring * credits. * * Since Revision 2 */ - reason: string; + reason?: string; } export interface EventRetireAminoMsg { type: "/regen.ecocredit.v1.EventRetire"; @@ -366,16 +366,16 @@ export interface EventCancelProtoMsg { */ export interface EventCancelAmino { /** owner is the address of the account that cancelled the credits. */ - owner: string; + owner?: string; /** * batch_denom is the unique identifier of the credit batch within which the * credits were cancelled. */ - batch_denom: string; + batch_denom?: string; /** amount is the decimal number of credits that have been cancelled. */ - amount: string; + amount?: string; /** reason is the reason the credits were cancelled. */ - reason: string; + reason?: string; } export interface EventCancelAminoMsg { type: "/regen.ecocredit.v1.EventCancel"; @@ -410,7 +410,7 @@ export interface EventUpdateClassAdminProtoMsg { */ export interface EventUpdateClassAdminAmino { /** class_id is the unique identifier of the class that was updated. */ - class_id: string; + class_id?: string; } export interface EventUpdateClassAdminAminoMsg { type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; @@ -441,7 +441,7 @@ export interface EventUpdateClassIssuersProtoMsg { */ export interface EventUpdateClassIssuersAmino { /** class_id is the unique identifier of the class that was updated. */ - class_id: string; + class_id?: string; } export interface EventUpdateClassIssuersAminoMsg { type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; @@ -472,7 +472,7 @@ export interface EventUpdateClassMetadataProtoMsg { */ export interface EventUpdateClassMetadataAmino { /** class_id is the unique identifier of the class that was updated. */ - class_id: string; + class_id?: string; } export interface EventUpdateClassMetadataAminoMsg { type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; @@ -497,7 +497,7 @@ export interface EventUpdateProjectAdminProtoMsg { /** EventUpdateProjectAdmin is emitted when the project admin is changed. */ export interface EventUpdateProjectAdminAmino { /** project_id is the unique identifier of the project that was updated. */ - project_id: string; + project_id?: string; } export interface EventUpdateProjectAdminAminoMsg { type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; @@ -519,7 +519,7 @@ export interface EventUpdateProjectMetadataProtoMsg { /** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ export interface EventUpdateProjectMetadataAmino { /** project_id is the unique identifier of the project that was updated. */ - project_id: string; + project_id?: string; } export interface EventUpdateProjectMetadataAminoMsg { type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; @@ -551,7 +551,7 @@ export interface EventUpdateBatchMetadataProtoMsg { */ export interface EventUpdateBatchMetadataAmino { /** batch_denom is the unique identifier of the batch that was updated. */ - batch_denom: string; + batch_denom?: string; } export interface EventUpdateBatchMetadataAminoMsg { type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; @@ -578,7 +578,7 @@ export interface EventSealBatchProtoMsg { /** EventSealBatch is emitted when a batch is sealed. */ export interface EventSealBatchAmino { /** batch_denom is the denom of the batch that was sealed. */ - batch_denom: string; + batch_denom?: string; } export interface EventSealBatchAminoMsg { type: "/regen.ecocredit.v1.EventSealBatch"; @@ -600,7 +600,7 @@ export interface EventAddCreditTypeProtoMsg { /** EventAddCreditType is emitted when governance approves a new credit type. */ export interface EventAddCreditTypeAmino { /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; + abbreviation?: string; } export interface EventAddCreditTypeAminoMsg { type: "/regen.ecocredit.v1.EventAddCreditType"; @@ -640,25 +640,25 @@ export interface EventBridgeProtoMsg { /** EventBridge is emitted when credits are bridged to another chain. */ export interface EventBridgeAmino { /** target is the target chain. */ - target: string; + target?: string; /** recipient is the recipient address. */ - recipient: string; + recipient?: string; /** contract is the contract address. */ - contract: string; + contract?: string; /** amount is the amount of credits. */ - amount: string; + amount?: string; /** * owner is the owner address. * * Since Revision 1 */ - owner: string; + owner?: string; /** * batch_denom is the credit batch denom. * * Since Revision 3 */ - batch_denom: string; + batch_denom?: string; } export interface EventBridgeAminoMsg { type: "/regen.ecocredit.v1.EventBridge"; @@ -697,7 +697,7 @@ export interface EventBridgeReceive { * * Since Revision 3 */ - originTx: OriginTx; + originTx?: OriginTx; } export interface EventBridgeReceiveProtoMsg { typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; @@ -709,18 +709,18 @@ export interface EventBridgeReceiveAmino { * project_id is the unique identifier of the project that was either created * or the existing project within which the credit batch exists. */ - project_id: string; + project_id?: string; /** * batch_denom is the unique identifier of the credit batch either created * or within which the credits were dynamically minted. */ - batch_denom: string; + batch_denom?: string; /** * amount is the amount of credits. * * Since Revision 3 */ - amount: string; + amount?: string; /** * origin_tx is the transaction from another chain or registry that triggered * the minting of credits within the credit batch. @@ -738,11 +738,12 @@ export interface EventBridgeReceiveSDKType { project_id: string; batch_denom: string; amount: string; - origin_tx: OriginTxSDKType; + origin_tx?: OriginTxSDKType; } export declare const EventCreateClass: { - encode(message: EventCreateClass, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateClass; + typeUrl: string; + encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; fromJSON(object: any): EventCreateClass; toJSON(message: EventCreateClass): unknown; fromPartial(object: Partial): EventCreateClass; @@ -754,8 +755,9 @@ export declare const EventCreateClass: { toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; }; export declare const EventCreateProject: { - encode(message: EventCreateProject, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateProject; + typeUrl: string; + encode(message: EventCreateProject, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject; fromJSON(object: any): EventCreateProject; toJSON(message: EventCreateProject): unknown; fromPartial(object: Partial): EventCreateProject; @@ -767,8 +769,9 @@ export declare const EventCreateProject: { toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg; }; export declare const EventCreateBatch: { - encode(message: EventCreateBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateBatch; + typeUrl: string; + encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; fromJSON(object: any): EventCreateBatch; toJSON(message: EventCreateBatch): unknown; fromPartial(object: Partial): EventCreateBatch; @@ -780,8 +783,9 @@ export declare const EventCreateBatch: { toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; }; export declare const EventMint: { - encode(message: EventMint, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventMint; + typeUrl: string; + encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventMint; fromJSON(object: any): EventMint; toJSON(message: EventMint): unknown; fromPartial(object: Partial): EventMint; @@ -793,8 +797,9 @@ export declare const EventMint: { toProtoMsg(message: EventMint): EventMintProtoMsg; }; export declare const EventMintBatchCredits: { - encode(message: EventMintBatchCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventMintBatchCredits; + typeUrl: string; + encode(message: EventMintBatchCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits; fromJSON(object: any): EventMintBatchCredits; toJSON(message: EventMintBatchCredits): unknown; fromPartial(object: Partial): EventMintBatchCredits; @@ -806,8 +811,9 @@ export declare const EventMintBatchCredits: { toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg; }; export declare const EventTransfer: { - encode(message: EventTransfer, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventTransfer; + typeUrl: string; + encode(message: EventTransfer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer; fromJSON(object: any): EventTransfer; toJSON(message: EventTransfer): unknown; fromPartial(object: Partial): EventTransfer; @@ -819,8 +825,9 @@ export declare const EventTransfer: { toProtoMsg(message: EventTransfer): EventTransferProtoMsg; }; export declare const EventRetire: { - encode(message: EventRetire, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventRetire; + typeUrl: string; + encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; fromJSON(object: any): EventRetire; toJSON(message: EventRetire): unknown; fromPartial(object: Partial): EventRetire; @@ -832,8 +839,9 @@ export declare const EventRetire: { toProtoMsg(message: EventRetire): EventRetireProtoMsg; }; export declare const EventCancel: { - encode(message: EventCancel, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCancel; + typeUrl: string; + encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; fromJSON(object: any): EventCancel; toJSON(message: EventCancel): unknown; fromPartial(object: Partial): EventCancel; @@ -845,8 +853,9 @@ export declare const EventCancel: { toProtoMsg(message: EventCancel): EventCancelProtoMsg; }; export declare const EventUpdateClassAdmin: { - encode(message: EventUpdateClassAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateClassAdmin; + typeUrl: string; + encode(message: EventUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin; fromJSON(object: any): EventUpdateClassAdmin; toJSON(message: EventUpdateClassAdmin): unknown; fromPartial(object: Partial): EventUpdateClassAdmin; @@ -858,8 +867,9 @@ export declare const EventUpdateClassAdmin: { toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg; }; export declare const EventUpdateClassIssuers: { - encode(message: EventUpdateClassIssuers, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateClassIssuers; + typeUrl: string; + encode(message: EventUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers; fromJSON(object: any): EventUpdateClassIssuers; toJSON(message: EventUpdateClassIssuers): unknown; fromPartial(object: Partial): EventUpdateClassIssuers; @@ -871,8 +881,9 @@ export declare const EventUpdateClassIssuers: { toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg; }; export declare const EventUpdateClassMetadata: { - encode(message: EventUpdateClassMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateClassMetadata; + typeUrl: string; + encode(message: EventUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata; fromJSON(object: any): EventUpdateClassMetadata; toJSON(message: EventUpdateClassMetadata): unknown; fromPartial(object: Partial): EventUpdateClassMetadata; @@ -884,8 +895,9 @@ export declare const EventUpdateClassMetadata: { toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg; }; export declare const EventUpdateProjectAdmin: { - encode(message: EventUpdateProjectAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateProjectAdmin; + typeUrl: string; + encode(message: EventUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin; fromJSON(object: any): EventUpdateProjectAdmin; toJSON(message: EventUpdateProjectAdmin): unknown; fromPartial(object: Partial): EventUpdateProjectAdmin; @@ -897,8 +909,9 @@ export declare const EventUpdateProjectAdmin: { toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg; }; export declare const EventUpdateProjectMetadata: { - encode(message: EventUpdateProjectMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateProjectMetadata; + typeUrl: string; + encode(message: EventUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata; fromJSON(object: any): EventUpdateProjectMetadata; toJSON(message: EventUpdateProjectMetadata): unknown; fromPartial(object: Partial): EventUpdateProjectMetadata; @@ -910,8 +923,9 @@ export declare const EventUpdateProjectMetadata: { toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg; }; export declare const EventUpdateBatchMetadata: { - encode(message: EventUpdateBatchMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateBatchMetadata; + typeUrl: string; + encode(message: EventUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata; fromJSON(object: any): EventUpdateBatchMetadata; toJSON(message: EventUpdateBatchMetadata): unknown; fromPartial(object: Partial): EventUpdateBatchMetadata; @@ -923,8 +937,9 @@ export declare const EventUpdateBatchMetadata: { toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg; }; export declare const EventSealBatch: { - encode(message: EventSealBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSealBatch; + typeUrl: string; + encode(message: EventSealBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch; fromJSON(object: any): EventSealBatch; toJSON(message: EventSealBatch): unknown; fromPartial(object: Partial): EventSealBatch; @@ -936,8 +951,9 @@ export declare const EventSealBatch: { toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg; }; export declare const EventAddCreditType: { - encode(message: EventAddCreditType, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventAddCreditType; + typeUrl: string; + encode(message: EventAddCreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType; fromJSON(object: any): EventAddCreditType; toJSON(message: EventAddCreditType): unknown; fromPartial(object: Partial): EventAddCreditType; @@ -949,8 +965,9 @@ export declare const EventAddCreditType: { toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg; }; export declare const EventBridge: { - encode(message: EventBridge, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventBridge; + typeUrl: string; + encode(message: EventBridge, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBridge; fromJSON(object: any): EventBridge; toJSON(message: EventBridge): unknown; fromPartial(object: Partial): EventBridge; @@ -962,8 +979,9 @@ export declare const EventBridge: { toProtoMsg(message: EventBridge): EventBridgeProtoMsg; }; export declare const EventBridgeReceive: { - encode(message: EventBridgeReceive, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventBridgeReceive; + typeUrl: string; + encode(message: EventBridgeReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive; fromJSON(object: any): EventBridgeReceive; toJSON(message: EventBridgeReceive): unknown; fromPartial(object: Partial): EventBridgeReceive; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts index dd425450..8b78a5ba 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts @@ -1,13 +1,13 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; import { Params, ParamsAmino, ParamsSDKType } from "./types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryClassesRequest is the Query/Classes request type. */ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClassesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; @@ -24,14 +24,14 @@ export interface QueryClassesRequestAminoMsg { } /** QueryClassesRequest is the Query/Classes request type. */ export interface QueryClassesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponse { /** classes are the fetched credit classes. */ classes: ClassInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClassesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; @@ -40,7 +40,7 @@ export interface QueryClassesResponseProtoMsg { /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponseAmino { /** classes are the fetched credit classes. */ - classes: ClassInfoAmino[]; + classes?: ClassInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -51,14 +51,14 @@ export interface QueryClassesResponseAminoMsg { /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponseSDKType { classes: ClassInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ export interface QueryClassesByAdminRequest { /** admin is the address of the admin of the class. */ admin: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClassesByAdminRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; @@ -67,7 +67,7 @@ export interface QueryClassesByAdminRequestProtoMsg { /** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ export interface QueryClassesByAdminRequestAmino { /** admin is the address of the admin of the class. */ - admin: string; + admin?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -78,14 +78,14 @@ export interface QueryClassesByAdminRequestAminoMsg { /** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ export interface QueryClassesByAdminRequestSDKType { admin: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ export interface QueryClassesByAdminResponse { /** classes are the fetched credit classes. */ classes: ClassInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClassesByAdminResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; @@ -94,7 +94,7 @@ export interface QueryClassesByAdminResponseProtoMsg { /** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ export interface QueryClassesByAdminResponseAmino { /** classes are the fetched credit classes. */ - classes: ClassInfoAmino[]; + classes?: ClassInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -105,7 +105,7 @@ export interface QueryClassesByAdminResponseAminoMsg { /** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ export interface QueryClassesByAdminResponseSDKType { classes: ClassInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryClassRequest is the Query/Class request type. */ export interface QueryClassRequest { @@ -119,7 +119,7 @@ export interface QueryClassRequestProtoMsg { /** QueryClassRequest is the Query/Class request type. */ export interface QueryClassRequestAmino { /** class_id is the unique identifier of the credit class to query. */ - class_id: string; + class_id?: string; } export interface QueryClassRequestAminoMsg { type: "/regen.ecocredit.v1.QueryClassRequest"; @@ -132,7 +132,7 @@ export interface QueryClassRequestSDKType { /** QueryClassResponse is the Query/Class request type. */ export interface QueryClassResponse { /** class is the fetched credit class. */ - class: ClassInfo; + class?: ClassInfo; } export interface QueryClassResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; @@ -149,14 +149,14 @@ export interface QueryClassResponseAminoMsg { } /** QueryClassResponse is the Query/Class request type. */ export interface QueryClassResponseSDKType { - class: ClassInfoSDKType; + class?: ClassInfoSDKType; } /** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ export interface QueryClassIssuersRequest { /** class_id is the unique identifier of the credit class to query. */ classId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClassIssuersRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; @@ -165,7 +165,7 @@ export interface QueryClassIssuersRequestProtoMsg { /** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ export interface QueryClassIssuersRequestAmino { /** class_id is the unique identifier of the credit class to query. */ - class_id: string; + class_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -176,14 +176,14 @@ export interface QueryClassIssuersRequestAminoMsg { /** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ export interface QueryClassIssuersRequestSDKType { class_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ export interface QueryClassIssuersResponse { /** issuers is a list of issuers for the credit class */ issuers: string[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClassIssuersResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; @@ -192,7 +192,7 @@ export interface QueryClassIssuersResponseProtoMsg { /** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ export interface QueryClassIssuersResponseAmino { /** issuers is a list of issuers for the credit class */ - issuers: string[]; + issuers?: string[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -203,12 +203,12 @@ export interface QueryClassIssuersResponseAminoMsg { /** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ export interface QueryClassIssuersResponseSDKType { issuers: string[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryProjectsRequest is the Query/Projects request type. */ export interface QueryProjectsRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProjectsRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; @@ -225,14 +225,14 @@ export interface QueryProjectsRequestAminoMsg { } /** QueryProjectsRequest is the Query/Projects request type. */ export interface QueryProjectsRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryProjectsResponse is the Query/Projects response type. */ export interface QueryProjectsResponse { /** projects are the fetched projects. */ projects: ProjectInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProjectsResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; @@ -241,7 +241,7 @@ export interface QueryProjectsResponseProtoMsg { /** QueryProjectsResponse is the Query/Projects response type. */ export interface QueryProjectsResponseAmino { /** projects are the fetched projects. */ - projects: ProjectInfoAmino[]; + projects?: ProjectInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -252,14 +252,14 @@ export interface QueryProjectsResponseAminoMsg { /** QueryProjectsResponse is the Query/Projects response type. */ export interface QueryProjectsResponseSDKType { projects: ProjectInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ export interface QueryProjectsByClassRequest { /** class_id is the unique identifier of the credit class to query. */ classId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProjectsByClassRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; @@ -268,7 +268,7 @@ export interface QueryProjectsByClassRequestProtoMsg { /** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ export interface QueryProjectsByClassRequestAmino { /** class_id is the unique identifier of the credit class to query. */ - class_id: string; + class_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -279,14 +279,14 @@ export interface QueryProjectsByClassRequestAminoMsg { /** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ export interface QueryProjectsByClassRequestSDKType { class_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ export interface QueryProjectsByClassResponse { /** projects are the fetched projects. */ projects: ProjectInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProjectsByClassResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; @@ -295,7 +295,7 @@ export interface QueryProjectsByClassResponseProtoMsg { /** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ export interface QueryProjectsByClassResponseAmino { /** projects are the fetched projects. */ - projects: ProjectInfoAmino[]; + projects?: ProjectInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -306,7 +306,7 @@ export interface QueryProjectsByClassResponseAminoMsg { /** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ export interface QueryProjectsByClassResponseSDKType { projects: ProjectInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request @@ -316,7 +316,7 @@ export interface QueryProjectsByReferenceIdRequest { /** reference_id is the project reference id. */ referenceId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProjectsByReferenceIdRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; @@ -328,7 +328,7 @@ export interface QueryProjectsByReferenceIdRequestProtoMsg { */ export interface QueryProjectsByReferenceIdRequestAmino { /** reference_id is the project reference id. */ - reference_id: string; + reference_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -342,7 +342,7 @@ export interface QueryProjectsByReferenceIdRequestAminoMsg { */ export interface QueryProjectsByReferenceIdRequestSDKType { reference_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId @@ -352,7 +352,7 @@ export interface QueryProjectsByReferenceIdResponse { /** projects are the fetched projects. */ projects: ProjectInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProjectsByReferenceIdResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; @@ -364,7 +364,7 @@ export interface QueryProjectsByReferenceIdResponseProtoMsg { */ export interface QueryProjectsByReferenceIdResponseAmino { /** projects are the fetched projects. */ - projects: ProjectInfoAmino[]; + projects?: ProjectInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -378,14 +378,14 @@ export interface QueryProjectsByReferenceIdResponseAminoMsg { */ export interface QueryProjectsByReferenceIdResponseSDKType { projects: ProjectInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ export interface QueryProjectsByAdminRequest { /** admin is the account address of project admin. */ admin: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryProjectsByAdminRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; @@ -394,7 +394,7 @@ export interface QueryProjectsByAdminRequestProtoMsg { /** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ export interface QueryProjectsByAdminRequestAmino { /** admin is the account address of project admin. */ - admin: string; + admin?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -405,14 +405,14 @@ export interface QueryProjectsByAdminRequestAminoMsg { /** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ export interface QueryProjectsByAdminRequestSDKType { admin: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ export interface QueryProjectsByAdminResponse { /** projects are the fetched projects. */ projects: ProjectInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryProjectsByAdminResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; @@ -421,7 +421,7 @@ export interface QueryProjectsByAdminResponseProtoMsg { /** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ export interface QueryProjectsByAdminResponseAmino { /** projects are the fetched projects. */ - projects: ProjectInfoAmino[]; + projects?: ProjectInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -432,7 +432,7 @@ export interface QueryProjectsByAdminResponseAminoMsg { /** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ export interface QueryProjectsByAdminResponseSDKType { projects: ProjectInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryProjectRequest is the Query/Project request type. */ export interface QueryProjectRequest { @@ -446,7 +446,7 @@ export interface QueryProjectRequestProtoMsg { /** QueryProjectRequest is the Query/Project request type. */ export interface QueryProjectRequestAmino { /** project_id is the unique identifier of the project to query. */ - project_id: string; + project_id?: string; } export interface QueryProjectRequestAminoMsg { type: "/regen.ecocredit.v1.QueryProjectRequest"; @@ -459,7 +459,7 @@ export interface QueryProjectRequestSDKType { /** QueryProjectResponse is the Query/Project response type. */ export interface QueryProjectResponse { /** project is the fetched project. */ - project: ProjectInfo; + project?: ProjectInfo; } export interface QueryProjectResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; @@ -476,12 +476,12 @@ export interface QueryProjectResponseAminoMsg { } /** QueryProjectResponse is the Query/Project response type. */ export interface QueryProjectResponseSDKType { - project: ProjectInfoSDKType; + project?: ProjectInfoSDKType; } /** QueryBatchesRequest is the Query/Batches request type. */ export interface QueryBatchesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBatchesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; @@ -498,14 +498,14 @@ export interface QueryBatchesRequestAminoMsg { } /** QueryBatchesRequest is the Query/Batches request type. */ export interface QueryBatchesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponse { /** batches are the fetched credit batches. */ batches: BatchInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBatchesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; @@ -514,7 +514,7 @@ export interface QueryBatchesResponseProtoMsg { /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponseAmino { /** batches are the fetched credit batches. */ - batches: BatchInfoAmino[]; + batches?: BatchInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -525,14 +525,14 @@ export interface QueryBatchesResponseAminoMsg { /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponseSDKType { batches: BatchInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ export interface QueryBatchesByIssuerRequest { /** issuer is the address that issued the batch */ issuer: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBatchesByIssuerRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; @@ -541,7 +541,7 @@ export interface QueryBatchesByIssuerRequestProtoMsg { /** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ export interface QueryBatchesByIssuerRequestAmino { /** issuer is the address that issued the batch */ - issuer: string; + issuer?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -552,14 +552,14 @@ export interface QueryBatchesByIssuerRequestAminoMsg { /** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ export interface QueryBatchesByIssuerRequestSDKType { issuer: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ export interface QueryBatchesByIssuerResponse { /** batches are the fetched credit batches. */ batches: BatchInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBatchesByIssuerResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; @@ -568,7 +568,7 @@ export interface QueryBatchesByIssuerResponseProtoMsg { /** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ export interface QueryBatchesByIssuerResponseAmino { /** batches are the fetched credit batches. */ - batches: BatchInfoAmino[]; + batches?: BatchInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -579,14 +579,14 @@ export interface QueryBatchesByIssuerResponseAminoMsg { /** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ export interface QueryBatchesByIssuerResponseSDKType { batches: BatchInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ export interface QueryBatchesByClassRequest { /** class_id is the unique identifier of the credit class to query. */ classId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBatchesByClassRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; @@ -595,7 +595,7 @@ export interface QueryBatchesByClassRequestProtoMsg { /** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ export interface QueryBatchesByClassRequestAmino { /** class_id is the unique identifier of the credit class to query. */ - class_id: string; + class_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -606,14 +606,14 @@ export interface QueryBatchesByClassRequestAminoMsg { /** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ export interface QueryBatchesByClassRequestSDKType { class_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ export interface QueryBatchesByProjectRequest { /** project_id is the unique identifier of the project to query. */ projectId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBatchesByProjectRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; @@ -622,7 +622,7 @@ export interface QueryBatchesByProjectRequestProtoMsg { /** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ export interface QueryBatchesByProjectRequestAmino { /** project_id is the unique identifier of the project to query. */ - project_id: string; + project_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -633,14 +633,14 @@ export interface QueryBatchesByProjectRequestAminoMsg { /** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ export interface QueryBatchesByProjectRequestSDKType { project_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ export interface QueryBatchesByProjectResponse { /** batches are the fetched credit batches. */ batches: BatchInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBatchesByProjectResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; @@ -649,7 +649,7 @@ export interface QueryBatchesByProjectResponseProtoMsg { /** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ export interface QueryBatchesByProjectResponseAmino { /** batches are the fetched credit batches. */ - batches: BatchInfoAmino[]; + batches?: BatchInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -660,14 +660,14 @@ export interface QueryBatchesByProjectResponseAminoMsg { /** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ export interface QueryBatchesByProjectResponseSDKType { batches: BatchInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ export interface QueryBatchesByClassResponse { /** batches are the fetched credit batches. */ batches: BatchInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBatchesByClassResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; @@ -676,7 +676,7 @@ export interface QueryBatchesByClassResponseProtoMsg { /** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ export interface QueryBatchesByClassResponseAmino { /** batches are the fetched credit batches. */ - batches: BatchInfoAmino[]; + batches?: BatchInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -687,7 +687,7 @@ export interface QueryBatchesByClassResponseAminoMsg { /** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ export interface QueryBatchesByClassResponseSDKType { batches: BatchInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryBatchRequest is the Query/Batch request type. */ export interface QueryBatchRequest { @@ -701,7 +701,7 @@ export interface QueryBatchRequestProtoMsg { /** QueryBatchRequest is the Query/Batch request type. */ export interface QueryBatchRequestAmino { /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom: string; + batch_denom?: string; } export interface QueryBatchRequestAminoMsg { type: "/regen.ecocredit.v1.QueryBatchRequest"; @@ -714,7 +714,7 @@ export interface QueryBatchRequestSDKType { /** QueryBatchResponse is the Query/Batch response type. */ export interface QueryBatchResponse { /** batch is the fetched credit batch. */ - batch: BatchInfo; + batch?: BatchInfo; } export interface QueryBatchResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; @@ -731,7 +731,7 @@ export interface QueryBatchResponseAminoMsg { } /** QueryBatchResponse is the Query/Batch response type. */ export interface QueryBatchResponseSDKType { - batch: BatchInfoSDKType; + batch?: BatchInfoSDKType; } /** QueryBalanceRequest is the Query/Balance request type. */ export interface QueryBalanceRequest { @@ -747,9 +747,9 @@ export interface QueryBalanceRequestProtoMsg { /** QueryBalanceRequest is the Query/Balance request type. */ export interface QueryBalanceRequestAmino { /** address is the address of the account whose balance is being queried. */ - address: string; + address?: string; /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom: string; + batch_denom?: string; } export interface QueryBalanceRequestAminoMsg { type: "/regen.ecocredit.v1.QueryBalanceRequest"; @@ -763,7 +763,7 @@ export interface QueryBalanceRequestSDKType { /** QueryBalanceResponse is the Query/Balance response type. */ export interface QueryBalanceResponse { /** balance is the balance of the given account. */ - balance: BatchBalanceInfo; + balance?: BatchBalanceInfo; } export interface QueryBalanceResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; @@ -780,14 +780,14 @@ export interface QueryBalanceResponseAminoMsg { } /** QueryBalanceResponse is the Query/Balance response type. */ export interface QueryBalanceResponseSDKType { - balance: BatchBalanceInfoSDKType; + balance?: BatchBalanceInfoSDKType; } /** QueryBalancesRequest is the Query/Balances request type. */ export interface QueryBalancesRequest { /** address is the address of the account whose balance is being queried. */ address: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBalancesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; @@ -796,7 +796,7 @@ export interface QueryBalancesRequestProtoMsg { /** QueryBalancesRequest is the Query/Balances request type. */ export interface QueryBalancesRequestAmino { /** address is the address of the account whose balance is being queried. */ - address: string; + address?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -807,7 +807,7 @@ export interface QueryBalancesRequestAminoMsg { /** QueryBalancesRequest is the Query/Balances request type. */ export interface QueryBalancesRequestSDKType { address: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBalancesResponse is the Query/Balances response type. */ export interface QueryBalancesResponse { @@ -817,7 +817,7 @@ export interface QueryBalancesResponse { */ balances: BatchBalanceInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBalancesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; @@ -829,7 +829,7 @@ export interface QueryBalancesResponseAmino { * balances are a list of balances from different credit batches that the * account holds. */ - balances: BatchBalanceInfoAmino[]; + balances?: BatchBalanceInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -840,7 +840,7 @@ export interface QueryBalancesResponseAminoMsg { /** QueryBalancesResponse is the Query/Balances response type. */ export interface QueryBalancesResponseSDKType { balances: BatchBalanceInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. @@ -851,7 +851,7 @@ export interface QueryBalancesByBatchRequest { /** batch_denom is the denom of the batch to query by. */ batchDenom: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBalancesByBatchRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; @@ -864,7 +864,7 @@ export interface QueryBalancesByBatchRequestProtoMsg { */ export interface QueryBalancesByBatchRequestAmino { /** batch_denom is the denom of the batch to query by. */ - batch_denom: string; + batch_denom?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -879,7 +879,7 @@ export interface QueryBalancesByBatchRequestAminoMsg { */ export interface QueryBalancesByBatchRequestSDKType { batch_denom: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. @@ -893,7 +893,7 @@ export interface QueryBalancesByBatchResponse { */ balances: BatchBalanceInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBalancesByBatchResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; @@ -909,7 +909,7 @@ export interface QueryBalancesByBatchResponseAmino { * balances are a list of balances from different credit batches that the * account holds. */ - balances: BatchBalanceInfoAmino[]; + balances?: BatchBalanceInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -924,7 +924,7 @@ export interface QueryBalancesByBatchResponseAminoMsg { */ export interface QueryBalancesByBatchResponseSDKType { balances: BatchBalanceInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryAllBalancesRequest is the Query/AllBalances request type. @@ -933,7 +933,7 @@ export interface QueryBalancesByBatchResponseSDKType { */ export interface QueryAllBalancesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllBalancesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; @@ -958,7 +958,7 @@ export interface QueryAllBalancesRequestAminoMsg { * Since Revision 2 */ export interface QueryAllBalancesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAllBalancesResponse is the Query/AllBalances response type. @@ -972,7 +972,7 @@ export interface QueryAllBalancesResponse { */ balances: BatchBalanceInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllBalancesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; @@ -988,7 +988,7 @@ export interface QueryAllBalancesResponseAmino { * balances are a list of balances from different credit batches that the * account holds. */ - balances: BatchBalanceInfoAmino[]; + balances?: BatchBalanceInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -1003,7 +1003,7 @@ export interface QueryAllBalancesResponseAminoMsg { */ export interface QueryAllBalancesResponseSDKType { balances: BatchBalanceInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QuerySupplyRequest is the Query/Supply request type. */ export interface QuerySupplyRequest { @@ -1017,7 +1017,7 @@ export interface QuerySupplyRequestProtoMsg { /** QuerySupplyRequest is the Query/Supply request type. */ export interface QuerySupplyRequestAmino { /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom: string; + batch_denom?: string; } export interface QuerySupplyRequestAminoMsg { type: "/regen.ecocredit.v1.QuerySupplyRequest"; @@ -1055,17 +1055,17 @@ export interface QuerySupplyResponseAmino { * tradable_amount is the decimal number of tradable credits in the batch * supply. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the decimal number of retired credits in the batch * supply. */ - retired_amount: string; + retired_amount?: string; /** * cancelled_amount is the decimal number of cancelled credits in the batch * supply. */ - cancelled_amount: string; + cancelled_amount?: string; } export interface QuerySupplyResponseAminoMsg { type: "/regen.ecocredit.v1.QuerySupplyResponse"; @@ -1106,7 +1106,7 @@ export interface QueryCreditTypesResponseProtoMsg { /** QueryCreditTypesRequest is the Query/Credit_Types response type */ export interface QueryCreditTypesResponseAmino { /** credit_types are the fetched credit types. */ - credit_types: CreditTypeAmino[]; + credit_types?: CreditTypeAmino[]; } export interface QueryCreditTypesResponseAminoMsg { type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; @@ -1136,7 +1136,7 @@ export interface QueryParamsRequestSDKType { /** QueryParamsResponse is the Query/Params response type. */ export interface QueryParamsResponse { /** params defines the parameters of the ecocredit module. */ - params: Params; + params?: Params; } export interface QueryParamsResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; @@ -1153,7 +1153,7 @@ export interface QueryParamsResponseAminoMsg { } /** QueryParamsResponse is the Query/Params response type. */ export interface QueryParamsResponseSDKType { - params: ParamsSDKType; + params?: ParamsSDKType; } /** QueryCreditTypeRequest is the Query/CreditType request type */ export interface QueryCreditTypeRequest { @@ -1167,7 +1167,7 @@ export interface QueryCreditTypeRequestProtoMsg { /** QueryCreditTypeRequest is the Query/CreditType request type */ export interface QueryCreditTypeRequestAmino { /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; + abbreviation?: string; } export interface QueryCreditTypeRequestAminoMsg { type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; @@ -1180,7 +1180,7 @@ export interface QueryCreditTypeRequestSDKType { /** QueryCreditTypeResponse is the Query/CreditType response type */ export interface QueryCreditTypeResponse { /** credit_type is the fetched credit type. */ - creditType: CreditType; + creditType?: CreditType; } export interface QueryCreditTypeResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; @@ -1197,7 +1197,7 @@ export interface QueryCreditTypeResponseAminoMsg { } /** QueryCreditTypeResponse is the Query/CreditType response type */ export interface QueryCreditTypeResponseSDKType { - credit_type: CreditTypeSDKType; + credit_type?: CreditTypeSDKType; } /** ClassInfo is the human-readable credit class information. */ export interface ClassInfo { @@ -1220,16 +1220,16 @@ export interface ClassInfoProtoMsg { /** ClassInfo is the human-readable credit class information. */ export interface ClassInfoAmino { /** id is the unique identifier of the credit class. */ - id: string; + id?: string; /** admin is the admin of the credit class. */ - admin: string; + admin?: string; /** metadata is the arbitrary metadata attached to the credit class. */ - metadata: string; + metadata?: string; /** * credit_type_abbrev is the abbreviation of the credit type within which this * credit class was created. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; } export interface ClassInfoAminoMsg { type: "/regen.ecocredit.v1.ClassInfo"; @@ -1270,23 +1270,23 @@ export interface ProjectInfoProtoMsg { /** ProjectInfo is the human-readable project information. */ export interface ProjectInfoAmino { /** id is the unique identifier of the project. */ - id: string; + id?: string; /** admin is the admin of the project. */ - admin: string; + admin?: string; /** * class_id is the unique identifier of the credit class within which the * project was created. */ - class_id: string; + class_id?: string; /** * jurisdiction is the jurisdiction of the project. Full documentation can be * found in MsgCreateProject.jurisdiction. */ - jurisdiction: string; + jurisdiction?: string; /** metadata is the arbitrary metadata attached to the project. */ - metadata: string; + metadata?: string; /** reference_id is any arbitrary string that can be use to reference project. */ - reference_id: string; + reference_id?: string; } export interface ProjectInfoAminoMsg { type: "/regen.ecocredit.v1.ProjectInfo"; @@ -1324,14 +1324,14 @@ export interface BatchInfo { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate: Timestamp; + issuanceDate?: Timestamp; /** * open determines whether or not the credit batch is open, i.e. whether or * not new credits can be minted to the credit batch. @@ -1348,36 +1348,36 @@ export interface BatchInfoAmino { * issuer is the address that created the batch and the address authorized to * mint new credits to the credit batch if the credit batch is open. */ - issuer: string; + issuer?: string; /** * project_id is the unique identifier of the project within which this credit * batch was created. */ - project_id: string; + project_id?: string; /** * denom is the unique identifier of the credit batch formed from the project * name, batch sequence number and dates. */ - denom: string; + denom?: string; /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; + metadata?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: TimestampAmino; + issuance_date?: string; /** * open determines whether or not the credit batch is open, i.e. whether or * not new credits can be minted to the credit batch. */ - open: boolean; + open?: boolean; } export interface BatchInfoAminoMsg { type: "/regen.ecocredit.v1.BatchInfo"; @@ -1389,9 +1389,9 @@ export interface BatchInfoSDKType { project_id: string; denom: string; metadata: string; - start_date: TimestampSDKType; - end_date: TimestampSDKType; - issuance_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; + issuance_date?: TimestampSDKType; open: boolean; } /** BatchBalanceInfo is the human-readable batch balance information. */ @@ -1419,20 +1419,20 @@ export interface BatchBalanceInfoProtoMsg { /** BatchBalanceInfo is the human-readable batch balance information. */ export interface BatchBalanceInfoAmino { /** address is the address of the account that owns the credits. */ - address: string; + address?: string; /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the total number of retired credits owned by address. */ - retired_amount: string; + retired_amount?: string; /** * escrowed_amount is the total number of escrowed credits owned by address * and held in escrow by the marketplace. Credits are held in escrow when a * sell order is created and taken out of escrow when the sell order is either * cancelled, updated with a reduced quantity, or processed. */ - escrowed_amount: string; + escrowed_amount?: string; } export interface BatchBalanceInfoAminoMsg { type: "/regen.ecocredit.v1.BatchBalanceInfo"; @@ -1506,7 +1506,7 @@ export interface QueryClassCreatorAllowlistResponseAmino { * enabled determines whether or not the allowlist for creating credit classes * is enabled. */ - enabled: boolean; + enabled?: boolean; } export interface QueryClassCreatorAllowlistResponseAminoMsg { type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; @@ -1529,7 +1529,7 @@ export interface QueryClassCreatorAllowlistResponseSDKType { */ export interface QueryAllowedClassCreatorsRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryAllowedClassCreatorsRequestProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; @@ -1556,7 +1556,7 @@ export interface QueryAllowedClassCreatorsRequestAminoMsg { * Since Revision 2 */ export interface QueryAllowedClassCreatorsRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response @@ -1568,7 +1568,7 @@ export interface QueryAllowedClassCreatorsResponse { /** class_creators is the list of allowed credit class creators. */ classCreators: string[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryAllowedClassCreatorsResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; @@ -1582,7 +1582,7 @@ export interface QueryAllowedClassCreatorsResponseProtoMsg { */ export interface QueryAllowedClassCreatorsResponseAmino { /** class_creators is the list of allowed credit class creators. */ - class_creators: string[]; + class_creators?: string[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -1598,7 +1598,7 @@ export interface QueryAllowedClassCreatorsResponseAminoMsg { */ export interface QueryAllowedClassCreatorsResponseSDKType { class_creators: string[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** * QueryClassFeeRequest is the Query/ClassFee request type. @@ -1639,7 +1639,7 @@ export interface QueryClassFeeResponse { * fee is the credit class creation fee. If not set, a credit class creation * fee is not required. */ - fee: Coin; + fee?: Coin; } export interface QueryClassFeeResponseProtoMsg { typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; @@ -1667,7 +1667,7 @@ export interface QueryClassFeeResponseAminoMsg { * Since Revision 2 */ export interface QueryClassFeeResponseSDKType { - fee: CoinSDKType; + fee?: CoinSDKType; } /** * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request @@ -1729,7 +1729,7 @@ export interface QueryAllowedBridgeChainsResponseAmino { * allowed_bridge_chains is a list of chains that are allowed to be used in * bridge operations. */ - allowed_bridge_chains: string[]; + allowed_bridge_chains?: string[]; } export interface QueryAllowedBridgeChainsResponseAminoMsg { type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; @@ -1745,8 +1745,9 @@ export interface QueryAllowedBridgeChainsResponseSDKType { allowed_bridge_chains: string[]; } export declare const QueryClassesRequest: { - encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest; + typeUrl: string; + encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; fromJSON(object: any): QueryClassesRequest; toJSON(message: QueryClassesRequest): unknown; fromPartial(object: Partial): QueryClassesRequest; @@ -1758,8 +1759,9 @@ export declare const QueryClassesRequest: { toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; }; export declare const QueryClassesResponse: { - encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse; + typeUrl: string; + encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; fromJSON(object: any): QueryClassesResponse; toJSON(message: QueryClassesResponse): unknown; fromPartial(object: Partial): QueryClassesResponse; @@ -1771,8 +1773,9 @@ export declare const QueryClassesResponse: { toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; }; export declare const QueryClassesByAdminRequest: { - encode(message: QueryClassesByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesByAdminRequest; + typeUrl: string; + encode(message: QueryClassesByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest; fromJSON(object: any): QueryClassesByAdminRequest; toJSON(message: QueryClassesByAdminRequest): unknown; fromPartial(object: Partial): QueryClassesByAdminRequest; @@ -1784,8 +1787,9 @@ export declare const QueryClassesByAdminRequest: { toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg; }; export declare const QueryClassesByAdminResponse: { - encode(message: QueryClassesByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesByAdminResponse; + typeUrl: string; + encode(message: QueryClassesByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse; fromJSON(object: any): QueryClassesByAdminResponse; toJSON(message: QueryClassesByAdminResponse): unknown; fromPartial(object: Partial): QueryClassesByAdminResponse; @@ -1797,8 +1801,9 @@ export declare const QueryClassesByAdminResponse: { toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg; }; export declare const QueryClassRequest: { - encode(message: QueryClassRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest; + typeUrl: string; + encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; fromJSON(object: any): QueryClassRequest; toJSON(message: QueryClassRequest): unknown; fromPartial(object: Partial): QueryClassRequest; @@ -1810,8 +1815,9 @@ export declare const QueryClassRequest: { toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; }; export declare const QueryClassResponse: { - encode(message: QueryClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse; + typeUrl: string; + encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; fromJSON(object: any): QueryClassResponse; toJSON(message: QueryClassResponse): unknown; fromPartial(object: Partial): QueryClassResponse; @@ -1823,8 +1829,9 @@ export declare const QueryClassResponse: { toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; }; export declare const QueryClassIssuersRequest: { - encode(message: QueryClassIssuersRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassIssuersRequest; + typeUrl: string; + encode(message: QueryClassIssuersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest; fromJSON(object: any): QueryClassIssuersRequest; toJSON(message: QueryClassIssuersRequest): unknown; fromPartial(object: Partial): QueryClassIssuersRequest; @@ -1836,8 +1843,9 @@ export declare const QueryClassIssuersRequest: { toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg; }; export declare const QueryClassIssuersResponse: { - encode(message: QueryClassIssuersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassIssuersResponse; + typeUrl: string; + encode(message: QueryClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse; fromJSON(object: any): QueryClassIssuersResponse; toJSON(message: QueryClassIssuersResponse): unknown; fromPartial(object: Partial): QueryClassIssuersResponse; @@ -1849,8 +1857,9 @@ export declare const QueryClassIssuersResponse: { toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg; }; export declare const QueryProjectsRequest: { - encode(message: QueryProjectsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsRequest; + typeUrl: string; + encode(message: QueryProjectsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest; fromJSON(object: any): QueryProjectsRequest; toJSON(message: QueryProjectsRequest): unknown; fromPartial(object: Partial): QueryProjectsRequest; @@ -1862,8 +1871,9 @@ export declare const QueryProjectsRequest: { toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg; }; export declare const QueryProjectsResponse: { - encode(message: QueryProjectsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsResponse; + typeUrl: string; + encode(message: QueryProjectsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse; fromJSON(object: any): QueryProjectsResponse; toJSON(message: QueryProjectsResponse): unknown; fromPartial(object: Partial): QueryProjectsResponse; @@ -1875,8 +1885,9 @@ export declare const QueryProjectsResponse: { toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg; }; export declare const QueryProjectsByClassRequest: { - encode(message: QueryProjectsByClassRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByClassRequest; + typeUrl: string; + encode(message: QueryProjectsByClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest; fromJSON(object: any): QueryProjectsByClassRequest; toJSON(message: QueryProjectsByClassRequest): unknown; fromPartial(object: Partial): QueryProjectsByClassRequest; @@ -1888,8 +1899,9 @@ export declare const QueryProjectsByClassRequest: { toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg; }; export declare const QueryProjectsByClassResponse: { - encode(message: QueryProjectsByClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByClassResponse; + typeUrl: string; + encode(message: QueryProjectsByClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse; fromJSON(object: any): QueryProjectsByClassResponse; toJSON(message: QueryProjectsByClassResponse): unknown; fromPartial(object: Partial): QueryProjectsByClassResponse; @@ -1901,8 +1913,9 @@ export declare const QueryProjectsByClassResponse: { toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg; }; export declare const QueryProjectsByReferenceIdRequest: { - encode(message: QueryProjectsByReferenceIdRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest; + typeUrl: string; + encode(message: QueryProjectsByReferenceIdRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest; fromJSON(object: any): QueryProjectsByReferenceIdRequest; toJSON(message: QueryProjectsByReferenceIdRequest): unknown; fromPartial(object: Partial): QueryProjectsByReferenceIdRequest; @@ -1914,8 +1927,9 @@ export declare const QueryProjectsByReferenceIdRequest: { toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg; }; export declare const QueryProjectsByReferenceIdResponse: { - encode(message: QueryProjectsByReferenceIdResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse; + typeUrl: string; + encode(message: QueryProjectsByReferenceIdResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse; fromJSON(object: any): QueryProjectsByReferenceIdResponse; toJSON(message: QueryProjectsByReferenceIdResponse): unknown; fromPartial(object: Partial): QueryProjectsByReferenceIdResponse; @@ -1927,8 +1941,9 @@ export declare const QueryProjectsByReferenceIdResponse: { toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg; }; export declare const QueryProjectsByAdminRequest: { - encode(message: QueryProjectsByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByAdminRequest; + typeUrl: string; + encode(message: QueryProjectsByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest; fromJSON(object: any): QueryProjectsByAdminRequest; toJSON(message: QueryProjectsByAdminRequest): unknown; fromPartial(object: Partial): QueryProjectsByAdminRequest; @@ -1940,8 +1955,9 @@ export declare const QueryProjectsByAdminRequest: { toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg; }; export declare const QueryProjectsByAdminResponse: { - encode(message: QueryProjectsByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectsByAdminResponse; + typeUrl: string; + encode(message: QueryProjectsByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse; fromJSON(object: any): QueryProjectsByAdminResponse; toJSON(message: QueryProjectsByAdminResponse): unknown; fromPartial(object: Partial): QueryProjectsByAdminResponse; @@ -1953,8 +1969,9 @@ export declare const QueryProjectsByAdminResponse: { toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg; }; export declare const QueryProjectRequest: { - encode(message: QueryProjectRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectRequest; + typeUrl: string; + encode(message: QueryProjectRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest; fromJSON(object: any): QueryProjectRequest; toJSON(message: QueryProjectRequest): unknown; fromPartial(object: Partial): QueryProjectRequest; @@ -1966,8 +1983,9 @@ export declare const QueryProjectRequest: { toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg; }; export declare const QueryProjectResponse: { - encode(message: QueryProjectResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProjectResponse; + typeUrl: string; + encode(message: QueryProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse; fromJSON(object: any): QueryProjectResponse; toJSON(message: QueryProjectResponse): unknown; fromPartial(object: Partial): QueryProjectResponse; @@ -1979,8 +1997,9 @@ export declare const QueryProjectResponse: { toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg; }; export declare const QueryBatchesRequest: { - encode(message: QueryBatchesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesRequest; + typeUrl: string; + encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; fromJSON(object: any): QueryBatchesRequest; toJSON(message: QueryBatchesRequest): unknown; fromPartial(object: Partial): QueryBatchesRequest; @@ -1992,8 +2011,9 @@ export declare const QueryBatchesRequest: { toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; }; export declare const QueryBatchesResponse: { - encode(message: QueryBatchesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesResponse; + typeUrl: string; + encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; fromJSON(object: any): QueryBatchesResponse; toJSON(message: QueryBatchesResponse): unknown; fromPartial(object: Partial): QueryBatchesResponse; @@ -2005,8 +2025,9 @@ export declare const QueryBatchesResponse: { toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; }; export declare const QueryBatchesByIssuerRequest: { - encode(message: QueryBatchesByIssuerRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByIssuerRequest; + typeUrl: string; + encode(message: QueryBatchesByIssuerRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest; fromJSON(object: any): QueryBatchesByIssuerRequest; toJSON(message: QueryBatchesByIssuerRequest): unknown; fromPartial(object: Partial): QueryBatchesByIssuerRequest; @@ -2018,8 +2039,9 @@ export declare const QueryBatchesByIssuerRequest: { toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg; }; export declare const QueryBatchesByIssuerResponse: { - encode(message: QueryBatchesByIssuerResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByIssuerResponse; + typeUrl: string; + encode(message: QueryBatchesByIssuerResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse; fromJSON(object: any): QueryBatchesByIssuerResponse; toJSON(message: QueryBatchesByIssuerResponse): unknown; fromPartial(object: Partial): QueryBatchesByIssuerResponse; @@ -2031,8 +2053,9 @@ export declare const QueryBatchesByIssuerResponse: { toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg; }; export declare const QueryBatchesByClassRequest: { - encode(message: QueryBatchesByClassRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByClassRequest; + typeUrl: string; + encode(message: QueryBatchesByClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest; fromJSON(object: any): QueryBatchesByClassRequest; toJSON(message: QueryBatchesByClassRequest): unknown; fromPartial(object: Partial): QueryBatchesByClassRequest; @@ -2044,8 +2067,9 @@ export declare const QueryBatchesByClassRequest: { toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg; }; export declare const QueryBatchesByProjectRequest: { - encode(message: QueryBatchesByProjectRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByProjectRequest; + typeUrl: string; + encode(message: QueryBatchesByProjectRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest; fromJSON(object: any): QueryBatchesByProjectRequest; toJSON(message: QueryBatchesByProjectRequest): unknown; fromPartial(object: Partial): QueryBatchesByProjectRequest; @@ -2057,8 +2081,9 @@ export declare const QueryBatchesByProjectRequest: { toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg; }; export declare const QueryBatchesByProjectResponse: { - encode(message: QueryBatchesByProjectResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByProjectResponse; + typeUrl: string; + encode(message: QueryBatchesByProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse; fromJSON(object: any): QueryBatchesByProjectResponse; toJSON(message: QueryBatchesByProjectResponse): unknown; fromPartial(object: Partial): QueryBatchesByProjectResponse; @@ -2070,8 +2095,9 @@ export declare const QueryBatchesByProjectResponse: { toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg; }; export declare const QueryBatchesByClassResponse: { - encode(message: QueryBatchesByClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesByClassResponse; + typeUrl: string; + encode(message: QueryBatchesByClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse; fromJSON(object: any): QueryBatchesByClassResponse; toJSON(message: QueryBatchesByClassResponse): unknown; fromPartial(object: Partial): QueryBatchesByClassResponse; @@ -2083,8 +2109,9 @@ export declare const QueryBatchesByClassResponse: { toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg; }; export declare const QueryBatchRequest: { - encode(message: QueryBatchRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchRequest; + typeUrl: string; + encode(message: QueryBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest; fromJSON(object: any): QueryBatchRequest; toJSON(message: QueryBatchRequest): unknown; fromPartial(object: Partial): QueryBatchRequest; @@ -2096,8 +2123,9 @@ export declare const QueryBatchRequest: { toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg; }; export declare const QueryBatchResponse: { - encode(message: QueryBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchResponse; + typeUrl: string; + encode(message: QueryBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse; fromJSON(object: any): QueryBatchResponse; toJSON(message: QueryBatchResponse): unknown; fromPartial(object: Partial): QueryBatchResponse; @@ -2109,8 +2137,9 @@ export declare const QueryBatchResponse: { toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg; }; export declare const QueryBalanceRequest: { - encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; fromPartial(object: Partial): QueryBalanceRequest; @@ -2122,8 +2151,9 @@ export declare const QueryBalanceRequest: { toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; }; export declare const QueryBalanceResponse: { - encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; fromPartial(object: Partial): QueryBalanceResponse; @@ -2135,8 +2165,9 @@ export declare const QueryBalanceResponse: { toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; }; export declare const QueryBalancesRequest: { - encode(message: QueryBalancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalancesRequest; + typeUrl: string; + encode(message: QueryBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest; fromJSON(object: any): QueryBalancesRequest; toJSON(message: QueryBalancesRequest): unknown; fromPartial(object: Partial): QueryBalancesRequest; @@ -2148,8 +2179,9 @@ export declare const QueryBalancesRequest: { toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg; }; export declare const QueryBalancesResponse: { - encode(message: QueryBalancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalancesResponse; + typeUrl: string; + encode(message: QueryBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse; fromJSON(object: any): QueryBalancesResponse; toJSON(message: QueryBalancesResponse): unknown; fromPartial(object: Partial): QueryBalancesResponse; @@ -2161,8 +2193,9 @@ export declare const QueryBalancesResponse: { toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg; }; export declare const QueryBalancesByBatchRequest: { - encode(message: QueryBalancesByBatchRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalancesByBatchRequest; + typeUrl: string; + encode(message: QueryBalancesByBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest; fromJSON(object: any): QueryBalancesByBatchRequest; toJSON(message: QueryBalancesByBatchRequest): unknown; fromPartial(object: Partial): QueryBalancesByBatchRequest; @@ -2174,8 +2207,9 @@ export declare const QueryBalancesByBatchRequest: { toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg; }; export declare const QueryBalancesByBatchResponse: { - encode(message: QueryBalancesByBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalancesByBatchResponse; + typeUrl: string; + encode(message: QueryBalancesByBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse; fromJSON(object: any): QueryBalancesByBatchResponse; toJSON(message: QueryBalancesByBatchResponse): unknown; fromPartial(object: Partial): QueryBalancesByBatchResponse; @@ -2187,8 +2221,9 @@ export declare const QueryBalancesByBatchResponse: { toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg; }; export declare const QueryAllBalancesRequest: { - encode(message: QueryAllBalancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesRequest; + typeUrl: string; + encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; fromJSON(object: any): QueryAllBalancesRequest; toJSON(message: QueryAllBalancesRequest): unknown; fromPartial(object: Partial): QueryAllBalancesRequest; @@ -2200,8 +2235,9 @@ export declare const QueryAllBalancesRequest: { toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; }; export declare const QueryAllBalancesResponse: { - encode(message: QueryAllBalancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesResponse; + typeUrl: string; + encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; fromJSON(object: any): QueryAllBalancesResponse; toJSON(message: QueryAllBalancesResponse): unknown; fromPartial(object: Partial): QueryAllBalancesResponse; @@ -2213,8 +2249,9 @@ export declare const QueryAllBalancesResponse: { toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; }; export declare const QuerySupplyRequest: { - encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest; + typeUrl: string; + encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): unknown; fromPartial(object: Partial): QuerySupplyRequest; @@ -2226,8 +2263,9 @@ export declare const QuerySupplyRequest: { toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; }; export declare const QuerySupplyResponse: { - encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse; + typeUrl: string; + encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): unknown; fromPartial(object: Partial): QuerySupplyResponse; @@ -2239,8 +2277,9 @@ export declare const QuerySupplyResponse: { toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; }; export declare const QueryCreditTypesRequest: { - encode(_: QueryCreditTypesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypesRequest; + typeUrl: string; + encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; fromJSON(_: any): QueryCreditTypesRequest; toJSON(_: QueryCreditTypesRequest): unknown; fromPartial(_: Partial): QueryCreditTypesRequest; @@ -2252,8 +2291,9 @@ export declare const QueryCreditTypesRequest: { toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; }; export declare const QueryCreditTypesResponse: { - encode(message: QueryCreditTypesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypesResponse; + typeUrl: string; + encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; fromJSON(object: any): QueryCreditTypesResponse; toJSON(message: QueryCreditTypesResponse): unknown; fromPartial(object: Partial): QueryCreditTypesResponse; @@ -2265,8 +2305,9 @@ export declare const QueryCreditTypesResponse: { toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; }; export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -2278,8 +2319,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -2291,8 +2333,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryCreditTypeRequest: { - encode(message: QueryCreditTypeRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypeRequest; + typeUrl: string; + encode(message: QueryCreditTypeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest; fromJSON(object: any): QueryCreditTypeRequest; toJSON(message: QueryCreditTypeRequest): unknown; fromPartial(object: Partial): QueryCreditTypeRequest; @@ -2304,8 +2347,9 @@ export declare const QueryCreditTypeRequest: { toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg; }; export declare const QueryCreditTypeResponse: { - encode(message: QueryCreditTypeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypeResponse; + typeUrl: string; + encode(message: QueryCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse; fromJSON(object: any): QueryCreditTypeResponse; toJSON(message: QueryCreditTypeResponse): unknown; fromPartial(object: Partial): QueryCreditTypeResponse; @@ -2317,8 +2361,9 @@ export declare const QueryCreditTypeResponse: { toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg; }; export declare const ClassInfo: { - encode(message: ClassInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassInfo; + typeUrl: string; + encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; fromJSON(object: any): ClassInfo; toJSON(message: ClassInfo): unknown; fromPartial(object: Partial): ClassInfo; @@ -2330,8 +2375,9 @@ export declare const ClassInfo: { toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; }; export declare const ProjectInfo: { - encode(message: ProjectInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProjectInfo; + typeUrl: string; + encode(message: ProjectInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo; fromJSON(object: any): ProjectInfo; toJSON(message: ProjectInfo): unknown; fromPartial(object: Partial): ProjectInfo; @@ -2343,8 +2389,9 @@ export declare const ProjectInfo: { toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg; }; export declare const BatchInfo: { - encode(message: BatchInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchInfo; + typeUrl: string; + encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; fromJSON(object: any): BatchInfo; toJSON(message: BatchInfo): unknown; fromPartial(object: Partial): BatchInfo; @@ -2356,8 +2403,9 @@ export declare const BatchInfo: { toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; }; export declare const BatchBalanceInfo: { - encode(message: BatchBalanceInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchBalanceInfo; + typeUrl: string; + encode(message: BatchBalanceInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo; fromJSON(object: any): BatchBalanceInfo; toJSON(message: BatchBalanceInfo): unknown; fromPartial(object: Partial): BatchBalanceInfo; @@ -2369,8 +2417,9 @@ export declare const BatchBalanceInfo: { toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg; }; export declare const QueryClassCreatorAllowlistRequest: { - encode(_: QueryClassCreatorAllowlistRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest; + typeUrl: string; + encode(_: QueryClassCreatorAllowlistRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest; fromJSON(_: any): QueryClassCreatorAllowlistRequest; toJSON(_: QueryClassCreatorAllowlistRequest): unknown; fromPartial(_: Partial): QueryClassCreatorAllowlistRequest; @@ -2382,8 +2431,9 @@ export declare const QueryClassCreatorAllowlistRequest: { toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg; }; export declare const QueryClassCreatorAllowlistResponse: { - encode(message: QueryClassCreatorAllowlistResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse; + typeUrl: string; + encode(message: QueryClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse; fromJSON(object: any): QueryClassCreatorAllowlistResponse; toJSON(message: QueryClassCreatorAllowlistResponse): unknown; fromPartial(object: Partial): QueryClassCreatorAllowlistResponse; @@ -2395,8 +2445,9 @@ export declare const QueryClassCreatorAllowlistResponse: { toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg; }; export declare const QueryAllowedClassCreatorsRequest: { - encode(message: QueryAllowedClassCreatorsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest; + typeUrl: string; + encode(message: QueryAllowedClassCreatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest; fromJSON(object: any): QueryAllowedClassCreatorsRequest; toJSON(message: QueryAllowedClassCreatorsRequest): unknown; fromPartial(object: Partial): QueryAllowedClassCreatorsRequest; @@ -2408,8 +2459,9 @@ export declare const QueryAllowedClassCreatorsRequest: { toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg; }; export declare const QueryAllowedClassCreatorsResponse: { - encode(message: QueryAllowedClassCreatorsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse; + typeUrl: string; + encode(message: QueryAllowedClassCreatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse; fromJSON(object: any): QueryAllowedClassCreatorsResponse; toJSON(message: QueryAllowedClassCreatorsResponse): unknown; fromPartial(object: Partial): QueryAllowedClassCreatorsResponse; @@ -2421,8 +2473,9 @@ export declare const QueryAllowedClassCreatorsResponse: { toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg; }; export declare const QueryClassFeeRequest: { - encode(_: QueryClassFeeRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassFeeRequest; + typeUrl: string; + encode(_: QueryClassFeeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest; fromJSON(_: any): QueryClassFeeRequest; toJSON(_: QueryClassFeeRequest): unknown; fromPartial(_: Partial): QueryClassFeeRequest; @@ -2434,8 +2487,9 @@ export declare const QueryClassFeeRequest: { toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg; }; export declare const QueryClassFeeResponse: { - encode(message: QueryClassFeeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassFeeResponse; + typeUrl: string; + encode(message: QueryClassFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse; fromJSON(object: any): QueryClassFeeResponse; toJSON(message: QueryClassFeeResponse): unknown; fromPartial(object: Partial): QueryClassFeeResponse; @@ -2447,8 +2501,9 @@ export declare const QueryClassFeeResponse: { toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg; }; export declare const QueryAllowedBridgeChainsRequest: { - encode(_: QueryAllowedBridgeChainsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest; + typeUrl: string; + encode(_: QueryAllowedBridgeChainsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest; fromJSON(_: any): QueryAllowedBridgeChainsRequest; toJSON(_: QueryAllowedBridgeChainsRequest): unknown; fromPartial(_: Partial): QueryAllowedBridgeChainsRequest; @@ -2460,8 +2515,9 @@ export declare const QueryAllowedBridgeChainsRequest: { toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg; }; export declare const QueryAllowedBridgeChainsResponse: { - encode(message: QueryAllowedBridgeChainsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse; + typeUrl: string; + encode(message: QueryAllowedBridgeChainsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse; fromJSON(object: any): QueryAllowedBridgeChainsResponse; toJSON(message: QueryAllowedBridgeChainsResponse): unknown; fromPartial(object: Partial): QueryAllowedBridgeChainsResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts index 0be78b42..022714ce 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts index 35928d79..7c3922da 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts @@ -1,7 +1,6 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * CreditType defines the measurement unit/precision of a certain credit type * (e.g. carbon, biodiversity...) @@ -32,13 +31,13 @@ export interface CreditTypeAmino { * abbreviation is a 1-3 character uppercase abbreviation of the CreditType * name, used in batch denominations within the CreditType. It must be unique. */ - abbreviation: string; + abbreviation?: string; /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name: string; + name?: string; /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit: string; + unit?: string; /** precision is the decimal precision of the credit type. */ - precision: number; + precision?: number; } export interface CreditTypeAminoMsg { type: "/regen.ecocredit.v1.CreditType"; @@ -60,7 +59,7 @@ export interface Class { * key is the table row identifier of the credit class used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: Long; + key: bigint; /** * id is the unique identifier of the credit class auto-generated from the * credit type abbreviation and the credit class sequence number. @@ -83,18 +82,18 @@ export interface ClassAmino { * key is the table row identifier of the credit class used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: string; + key?: string; /** * id is the unique identifier of the credit class auto-generated from the * credit type abbreviation and the credit class sequence number. */ - id: string; + id?: string; /** admin is the admin of the credit class. */ - admin: Uint8Array; + admin?: string; /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: string; + metadata?: string; /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; } export interface ClassAminoMsg { type: "/regen.ecocredit.v1.Class"; @@ -102,7 +101,7 @@ export interface ClassAminoMsg { } /** Class represents the high-level on-chain information for a credit class. */ export interface ClassSDKType { - key: Long; + key: bigint; id: string; admin: Uint8Array; metadata: string; @@ -117,7 +116,7 @@ export interface ClassIssuer { * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a class issuer to a credit class. */ - classKey: Long; + classKey: bigint; /** issuer is the approved issuer of the credit class. */ issuer: Uint8Array; } @@ -134,9 +133,9 @@ export interface ClassIssuerAmino { * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a class issuer to a credit class. */ - class_key: string; + class_key?: string; /** issuer is the approved issuer of the credit class. */ - issuer: Uint8Array; + issuer?: string; } export interface ClassIssuerAminoMsg { type: "/regen.ecocredit.v1.ClassIssuer"; @@ -147,7 +146,7 @@ export interface ClassIssuerAminoMsg { * issuers */ export interface ClassIssuerSDKType { - class_key: Long; + class_key: bigint; issuer: Uint8Array; } /** Project represents the high-level on-chain information for a project. */ @@ -156,7 +155,7 @@ export interface Project { * key is the table row identifier of the project used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: Long; + key: bigint; /** * id is the unique identifier of the project either auto-generated from the * credit class id and project sequence number or provided upon creation. @@ -168,7 +167,7 @@ export interface Project { * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a project to a credit class. */ - classKey: Long; + classKey: bigint; /** * jurisdiction is the jurisdiction of the project. * Full documentation can be found in MsgCreateProject.jurisdiction. @@ -189,28 +188,28 @@ export interface ProjectAmino { * key is the table row identifier of the project used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: string; + key?: string; /** * id is the unique identifier of the project either auto-generated from the * credit class id and project sequence number or provided upon creation. */ - id: string; + id?: string; /** admin is the admin of the project. */ - admin: Uint8Array; + admin?: string; /** * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a project to a credit class. */ - class_key: string; + class_key?: string; /** * jurisdiction is the jurisdiction of the project. * Full documentation can be found in MsgCreateProject.jurisdiction. */ - jurisdiction: string; + jurisdiction?: string; /** metadata is any arbitrary metadata attached to the project. */ - metadata: string; + metadata?: string; /** reference_id is any arbitrary string used to reference the project. */ - reference_id: string; + reference_id?: string; } export interface ProjectAminoMsg { type: "/regen.ecocredit.v1.Project"; @@ -218,10 +217,10 @@ export interface ProjectAminoMsg { } /** Project represents the high-level on-chain information for a project. */ export interface ProjectSDKType { - key: Long; + key: bigint; id: string; admin: Uint8Array; - class_key: Long; + class_key: bigint; jurisdiction: string; metadata: string; reference_id: string; @@ -232,7 +231,7 @@ export interface Batch { * key is the table row identifier of the credit batch used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: Long; + key: bigint; /** * issuer is the address that created the batch and which is * authorized to mint more credits if open=true. @@ -242,7 +241,7 @@ export interface Batch { * project_key is the table row identifier of the credit class used internally * for efficient lookups. This links a credit batch to a project. */ - projectKey: Long; + projectKey: bigint; /** * denom is the unique identifier of the credit batch formed from the * project id, the batch sequence number, and the start and end date of the @@ -255,14 +254,14 @@ export interface Batch { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate: Timestamp; + issuanceDate?: Timestamp; /** * open tells if it's possible to mint new credits in the future. * Once `open` is set to false, it can't be toggled any more. @@ -279,42 +278,42 @@ export interface BatchAmino { * key is the table row identifier of the credit batch used internally for * efficient lookups. This identifier is auto-incrementing. */ - key: string; + key?: string; /** * issuer is the address that created the batch and which is * authorized to mint more credits if open=true. */ - issuer: Uint8Array; + issuer?: string; /** * project_key is the table row identifier of the credit class used internally * for efficient lookups. This links a credit batch to a project. */ - project_key: string; + project_key?: string; /** * denom is the unique identifier of the credit batch formed from the * project id, the batch sequence number, and the start and end date of the * credit batch. */ - denom: string; + denom?: string; /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; + metadata?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: TimestampAmino; + issuance_date?: string; /** * open tells if it's possible to mint new credits in the future. * Once `open` is set to false, it can't be toggled any more. */ - open: boolean; + open?: boolean; } export interface BatchAminoMsg { type: "/regen.ecocredit.v1.Batch"; @@ -322,14 +321,14 @@ export interface BatchAminoMsg { } /** Batch represents the high-level on-chain information for a credit batch. */ export interface BatchSDKType { - key: Long; + key: bigint; issuer: Uint8Array; - project_key: Long; + project_key: bigint; denom: string; metadata: string; - start_date: TimestampSDKType; - end_date: TimestampSDKType; - issuance_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; + issuance_date?: TimestampSDKType; open: boolean; } /** @@ -346,7 +345,7 @@ export interface ClassSequence { * next_sequence is the next sequence number for a credit class within the * credit type. The sequence number is used to generate a class id. */ - nextSequence: Long; + nextSequence: bigint; } export interface ClassSequenceProtoMsg { typeUrl: "/regen.ecocredit.v1.ClassSequence"; @@ -361,12 +360,12 @@ export interface ClassSequenceAmino { * credit_type_abbrev is the credit type abbreviation. This links a class * sequence to a credit type. */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** * next_sequence is the next sequence number for a credit class within the * credit type. The sequence number is used to generate a class id. */ - next_sequence: string; + next_sequence?: string; } export interface ClassSequenceAminoMsg { type: "/regen.ecocredit.v1.ClassSequence"; @@ -378,7 +377,7 @@ export interface ClassSequenceAminoMsg { */ export interface ClassSequenceSDKType { credit_type_abbrev: string; - next_sequence: Long; + next_sequence: bigint; } /** * ProjectSequence stores and increments the sequence number for projects within @@ -389,12 +388,12 @@ export interface ProjectSequence { * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a project sequence to a credit class. */ - classKey: Long; + classKey: bigint; /** * next_sequence is the next sequence number for a project within the credit * class. The sequence number is used to generate a project id. */ - nextSequence: Long; + nextSequence: bigint; } export interface ProjectSequenceProtoMsg { typeUrl: "/regen.ecocredit.v1.ProjectSequence"; @@ -409,12 +408,12 @@ export interface ProjectSequenceAmino { * class_key is the table row identifier of the credit class used internally * for efficient lookups. This links a project sequence to a credit class. */ - class_key: string; + class_key?: string; /** * next_sequence is the next sequence number for a project within the credit * class. The sequence number is used to generate a project id. */ - next_sequence: string; + next_sequence?: string; } export interface ProjectSequenceAminoMsg { type: "/regen.ecocredit.v1.ProjectSequence"; @@ -425,8 +424,8 @@ export interface ProjectSequenceAminoMsg { * a credit class. */ export interface ProjectSequenceSDKType { - class_key: Long; - next_sequence: Long; + class_key: bigint; + next_sequence: bigint; } /** * BatchSequence stores and increments the sequence number for credit batches @@ -437,12 +436,12 @@ export interface BatchSequence { * project_key is the table row identifier of the project used internally for * efficient lookups. This links a batch sequence to a project. */ - projectKey: Long; + projectKey: bigint; /** * next_sequence is the next sequence number for a credit batch within the * project. The sequence number is used to generate a batch denom. */ - nextSequence: Long; + nextSequence: bigint; } export interface BatchSequenceProtoMsg { typeUrl: "/regen.ecocredit.v1.BatchSequence"; @@ -457,12 +456,12 @@ export interface BatchSequenceAmino { * project_key is the table row identifier of the project used internally for * efficient lookups. This links a batch sequence to a project. */ - project_key: string; + project_key?: string; /** * next_sequence is the next sequence number for a credit batch within the * project. The sequence number is used to generate a batch denom. */ - next_sequence: string; + next_sequence?: string; } export interface BatchSequenceAminoMsg { type: "/regen.ecocredit.v1.BatchSequence"; @@ -473,8 +472,8 @@ export interface BatchSequenceAminoMsg { * within a project. */ export interface BatchSequenceSDKType { - project_key: Long; - next_sequence: Long; + project_key: bigint; + next_sequence: bigint; } /** BatchBalance stores each accounts credit balance. */ export interface BatchBalance { @@ -482,7 +481,7 @@ export interface BatchBalance { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a batch balance to a credit batch. */ - batchKey: Long; + batchKey: bigint; /** address is the address of the account that owns the credits. */ address: Uint8Array; /** tradable_amount is the total number of tradable credits owned by address. */ @@ -507,20 +506,20 @@ export interface BatchBalanceAmino { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a batch balance to a credit batch. */ - batch_key: string; + batch_key?: string; /** address is the address of the account that owns the credits. */ - address: Uint8Array; + address?: string; /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the total number of retired credits owned by address. */ - retired_amount: string; + retired_amount?: string; /** * escrowed_amount is the total number of escrowed credits owned by address * and held in escrow by the marketplace. Credits are held in escrow when a * sell order is created and taken out of escrow when the sell order is either * cancelled, updated with a reduced quantity, or processed. */ - escrowed_amount: string; + escrowed_amount?: string; } export interface BatchBalanceAminoMsg { type: "/regen.ecocredit.v1.BatchBalance"; @@ -528,7 +527,7 @@ export interface BatchBalanceAminoMsg { } /** BatchBalance stores each accounts credit balance. */ export interface BatchBalanceSDKType { - batch_key: Long; + batch_key: bigint; address: Uint8Array; tradable_amount: string; retired_amount: string; @@ -540,7 +539,7 @@ export interface BatchSupply { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a batch supply to a credit batch. */ - batchKey: Long; + batchKey: bigint; /** * tradable_amount is the total number of tradable credits in the credit * batch. Tradable credits may be retired in which case they will be removed @@ -574,7 +573,7 @@ export interface BatchSupplyAmino { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links a batch supply to a credit batch. */ - batch_key: string; + batch_key?: string; /** * tradable_amount is the total number of tradable credits in the credit * batch. Tradable credits may be retired in which case they will be removed @@ -583,20 +582,20 @@ export interface BatchSupplyAmino { * and tracked in cancelled_amount. The sum of the tradable, retired, and * cancelled amounts will always equal the original credit issuance amount. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the total amount of credits that have been retired in the * credit batch. The sum of the tradable, retired, and cancelled amounts will * always equal the original credit issuance amount. */ - retired_amount: string; + retired_amount?: string; /** * cancelled_amount is the number of credits in the batch that have been * cancelled, effectively undoing the issuance. The sum of the tradable, * retired, and cancelled amounts will always equal the original credit * issuance amount. */ - cancelled_amount: string; + cancelled_amount?: string; } export interface BatchSupplyAminoMsg { type: "/regen.ecocredit.v1.BatchSupply"; @@ -604,7 +603,7 @@ export interface BatchSupplyAminoMsg { } /** BatchSupply stores the supply of credits for a credit batch. */ export interface BatchSupplySDKType { - batch_key: Long; + batch_key: bigint; tradable_amount: string; retired_amount: string; cancelled_amount: string; @@ -623,7 +622,7 @@ export interface OriginTxIndex { * to prevent malicious credit class issuers from blocking bridge operations * taking place within another credit class. */ - classKey: Long; + classKey: bigint; /** * id is the transaction ID of an originating transaction or operation * based on a type (i.e. transaction ID, serial number). @@ -653,17 +652,17 @@ export interface OriginTxIndexAmino { * to prevent malicious credit class issuers from blocking bridge operations * taking place within another credit class. */ - class_key: string; + class_key?: string; /** * id is the transaction ID of an originating transaction or operation * based on a type (i.e. transaction ID, serial number). */ - id: string; + id?: string; /** * source is the source chain or registry of the transaction originating * the mint process (e.g. polygon, ethereum, verra). */ - source: string; + source?: string; } export interface OriginTxIndexAminoMsg { type: "/regen.ecocredit.v1.OriginTxIndex"; @@ -677,7 +676,7 @@ export interface OriginTxIndexAminoMsg { * bridge operations taking place within another credit class. */ export interface OriginTxIndexSDKType { - class_key: Long; + class_key: bigint; id: string; source: string; } @@ -692,14 +691,14 @@ export interface BatchContract { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links an external contract to a credit batch. */ - batchKey: Long; + batchKey: bigint; /** * class_key is the table row identifier of the credit class within which the * credit batch exists. A contract is unique within the scope of a credit * class to prevent malicious credit class issuers from blocking bridge * operations taking place within another credit class. */ - classKey: Long; + classKey: bigint; /** * contract is the address of the contract on the source chain that was * executed when creating the transaction. This address will be used when @@ -722,20 +721,20 @@ export interface BatchContractAmino { * batch_key is the table row identifier of the credit batch used internally * for efficient lookups. This links an external contract to a credit batch. */ - batch_key: string; + batch_key?: string; /** * class_key is the table row identifier of the credit class within which the * credit batch exists. A contract is unique within the scope of a credit * class to prevent malicious credit class issuers from blocking bridge * operations taking place within another credit class. */ - class_key: string; + class_key?: string; /** * contract is the address of the contract on the source chain that was * executed when creating the transaction. This address will be used when * sending credits back to the source chain. */ - contract: string; + contract?: string; } export interface BatchContractAminoMsg { type: "/regen.ecocredit.v1.BatchContract"; @@ -748,8 +747,8 @@ export interface BatchContractAminoMsg { * have been bridged will always be bridged back to the original contract. */ export interface BatchContractSDKType { - batch_key: Long; - class_key: Long; + batch_key: bigint; + class_key: bigint; contract: string; } /** @@ -778,7 +777,7 @@ export interface ClassCreatorAllowlistProtoMsg { */ export interface ClassCreatorAllowlistAmino { /** enabled is whether or not the allow list is enabled. */ - enabled: boolean; + enabled?: boolean; } export interface ClassCreatorAllowlistAminoMsg { type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; @@ -817,7 +816,7 @@ export interface AllowedClassCreatorProtoMsg { */ export interface AllowedClassCreatorAmino { /** address is the address that is allowed to create credit classes */ - address: Uint8Array; + address?: string; } export interface AllowedClassCreatorAminoMsg { type: "/regen.ecocredit.v1.AllowedClassCreator"; @@ -843,7 +842,7 @@ export interface ClassFee { * fee is the credit class creation fee. If not set, a credit class creation * fee is not required. */ - fee: Coin; + fee?: Coin; } export interface ClassFeeProtoMsg { typeUrl: "/regen.ecocredit.v1.ClassFee"; @@ -873,7 +872,7 @@ export interface ClassFeeAminoMsg { * Since Revision 2 */ export interface ClassFeeSDKType { - fee: CoinSDKType; + fee?: CoinSDKType; } /** * AllowedBridgeChain is a list of chains that are allowed to be used in @@ -901,7 +900,7 @@ export interface AllowedBridgeChainProtoMsg { */ export interface AllowedBridgeChainAmino { /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chain_name: string; + chain_name?: string; } export interface AllowedBridgeChainAminoMsg { type: "/regen.ecocredit.v1.AllowedBridgeChain"; @@ -919,8 +918,9 @@ export interface AllowedBridgeChainSDKType { chain_name: string; } export declare const CreditType: { - encode(message: CreditType, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CreditType; + typeUrl: string; + encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditType; fromJSON(object: any): CreditType; toJSON(message: CreditType): unknown; fromPartial(object: Partial): CreditType; @@ -932,8 +932,9 @@ export declare const CreditType: { toProtoMsg(message: CreditType): CreditTypeProtoMsg; }; export declare const Class: { - encode(message: Class, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Class; + typeUrl: string; + encode(message: Class, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Class; fromJSON(object: any): Class; toJSON(message: Class): unknown; fromPartial(object: Partial): Class; @@ -945,8 +946,9 @@ export declare const Class: { toProtoMsg(message: Class): ClassProtoMsg; }; export declare const ClassIssuer: { - encode(message: ClassIssuer, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassIssuer; + typeUrl: string; + encode(message: ClassIssuer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer; fromJSON(object: any): ClassIssuer; toJSON(message: ClassIssuer): unknown; fromPartial(object: Partial): ClassIssuer; @@ -958,8 +960,9 @@ export declare const ClassIssuer: { toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg; }; export declare const Project: { - encode(message: Project, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Project; + typeUrl: string; + encode(message: Project, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Project; fromJSON(object: any): Project; toJSON(message: Project): unknown; fromPartial(object: Partial): Project; @@ -971,8 +974,9 @@ export declare const Project: { toProtoMsg(message: Project): ProjectProtoMsg; }; export declare const Batch: { - encode(message: Batch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Batch; + typeUrl: string; + encode(message: Batch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Batch; fromJSON(object: any): Batch; toJSON(message: Batch): unknown; fromPartial(object: Partial): Batch; @@ -984,8 +988,9 @@ export declare const Batch: { toProtoMsg(message: Batch): BatchProtoMsg; }; export declare const ClassSequence: { - encode(message: ClassSequence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassSequence; + typeUrl: string; + encode(message: ClassSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence; fromJSON(object: any): ClassSequence; toJSON(message: ClassSequence): unknown; fromPartial(object: Partial): ClassSequence; @@ -997,8 +1002,9 @@ export declare const ClassSequence: { toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg; }; export declare const ProjectSequence: { - encode(message: ProjectSequence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProjectSequence; + typeUrl: string; + encode(message: ProjectSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence; fromJSON(object: any): ProjectSequence; toJSON(message: ProjectSequence): unknown; fromPartial(object: Partial): ProjectSequence; @@ -1010,8 +1016,9 @@ export declare const ProjectSequence: { toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg; }; export declare const BatchSequence: { - encode(message: BatchSequence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchSequence; + typeUrl: string; + encode(message: BatchSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence; fromJSON(object: any): BatchSequence; toJSON(message: BatchSequence): unknown; fromPartial(object: Partial): BatchSequence; @@ -1023,8 +1030,9 @@ export declare const BatchSequence: { toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg; }; export declare const BatchBalance: { - encode(message: BatchBalance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchBalance; + typeUrl: string; + encode(message: BatchBalance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance; fromJSON(object: any): BatchBalance; toJSON(message: BatchBalance): unknown; fromPartial(object: Partial): BatchBalance; @@ -1036,8 +1044,9 @@ export declare const BatchBalance: { toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg; }; export declare const BatchSupply: { - encode(message: BatchSupply, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchSupply; + typeUrl: string; + encode(message: BatchSupply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply; fromJSON(object: any): BatchSupply; toJSON(message: BatchSupply): unknown; fromPartial(object: Partial): BatchSupply; @@ -1049,8 +1058,9 @@ export declare const BatchSupply: { toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg; }; export declare const OriginTxIndex: { - encode(message: OriginTxIndex, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): OriginTxIndex; + typeUrl: string; + encode(message: OriginTxIndex, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex; fromJSON(object: any): OriginTxIndex; toJSON(message: OriginTxIndex): unknown; fromPartial(object: Partial): OriginTxIndex; @@ -1062,8 +1072,9 @@ export declare const OriginTxIndex: { toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg; }; export declare const BatchContract: { - encode(message: BatchContract, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchContract; + typeUrl: string; + encode(message: BatchContract, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchContract; fromJSON(object: any): BatchContract; toJSON(message: BatchContract): unknown; fromPartial(object: Partial): BatchContract; @@ -1075,8 +1086,9 @@ export declare const BatchContract: { toProtoMsg(message: BatchContract): BatchContractProtoMsg; }; export declare const ClassCreatorAllowlist: { - encode(message: ClassCreatorAllowlist, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassCreatorAllowlist; + typeUrl: string; + encode(message: ClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist; fromJSON(object: any): ClassCreatorAllowlist; toJSON(message: ClassCreatorAllowlist): unknown; fromPartial(object: Partial): ClassCreatorAllowlist; @@ -1088,8 +1100,9 @@ export declare const ClassCreatorAllowlist: { toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg; }; export declare const AllowedClassCreator: { - encode(message: AllowedClassCreator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedClassCreator; + typeUrl: string; + encode(message: AllowedClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator; fromJSON(object: any): AllowedClassCreator; toJSON(message: AllowedClassCreator): unknown; fromPartial(object: Partial): AllowedClassCreator; @@ -1101,8 +1114,9 @@ export declare const AllowedClassCreator: { toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg; }; export declare const ClassFee: { - encode(message: ClassFee, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassFee; + typeUrl: string; + encode(message: ClassFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassFee; fromJSON(object: any): ClassFee; toJSON(message: ClassFee): unknown; fromPartial(object: Partial): ClassFee; @@ -1114,8 +1128,9 @@ export declare const ClassFee: { toProtoMsg(message: ClassFee): ClassFeeProtoMsg; }; export declare const AllowedBridgeChain: { - encode(message: AllowedBridgeChain, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedBridgeChain; + typeUrl: string; + encode(message: AllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain; fromJSON(object: any): AllowedBridgeChain; toJSON(message: AllowedBridgeChain): unknown; fromPartial(object: Partial): AllowedBridgeChain; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts index eaf84eba..804f91b6 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts @@ -1,8 +1,8 @@ import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * MsgAddCreditType is the Msg/AddCreditType request type. * @@ -12,7 +12,7 @@ export interface MsgAddCreditType { /** authority is the address of the governance account. */ authority: string; /** credit_type defines a credit type to add to the credit types parameter. */ - creditType: CreditType; + creditType?: CreditType; } export interface MsgAddCreditTypeProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; @@ -25,7 +25,7 @@ export interface MsgAddCreditTypeProtoMsg { */ export interface MsgAddCreditTypeAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** credit_type defines a credit type to add to the credit types parameter. */ credit_type?: CreditTypeAmino; } @@ -40,7 +40,7 @@ export interface MsgAddCreditTypeAminoMsg { */ export interface MsgAddCreditTypeSDKType { authority: string; - credit_type: CreditTypeSDKType; + credit_type?: CreditTypeSDKType; } /** * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. @@ -101,7 +101,7 @@ export interface MsgCreateClass { * creation fee parameter is set. The provided fee can be greater than the * parameter, but only the amount in the parameter will be charged. */ - fee: Coin; + fee?: Coin; } export interface MsgCreateClassProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; @@ -116,22 +116,22 @@ export interface MsgCreateClassAmino { * the list of approved issuers. If Params.allowlist_enabled is set to true, * this address must be included in Params.allowed_class_creators. */ - admin: string; + admin?: string; /** * issuers are the addresses of the accounts that will have permissions within * the credit class to create projects and issue credits. */ - issuers: string[]; + issuers?: string[]; /** * metadata is any arbitrary string with a maximum length of 256 characters * that includes or references metadata to attach to the credit class. */ - metadata: string; + metadata?: string; /** * credit_type_abbrev is the abbreviation of the credit type under which the * credit class will be created (e.g. "C", "BIO"). */ - credit_type_abbrev: string; + credit_type_abbrev?: string; /** * fee is the credit class creation fee. An equal fee is required if the class * creation fee parameter is set. The provided fee can be greater than the @@ -149,7 +149,7 @@ export interface MsgCreateClassSDKType { issuers: string[]; metadata: string; credit_type_abbrev: string; - fee: CoinSDKType; + fee?: CoinSDKType; } /** MsgCreateClassResponse is the Msg/CreateClass response type. */ export interface MsgCreateClassResponse { @@ -163,7 +163,7 @@ export interface MsgCreateClassResponseProtoMsg { /** MsgCreateClassResponse is the Msg/CreateClass response type. */ export interface MsgCreateClassResponseAmino { /** class_id is the unique identifier of the credit class. */ - class_id: string; + class_id?: string; } export interface MsgCreateClassResponseAminoMsg { type: "/regen.ecocredit.v1.MsgCreateClassResponse"; @@ -222,17 +222,17 @@ export interface MsgCreateProjectAmino { * created. The admin will have permissions to update the project including * the ability to reassign the admin role to another account. */ - admin: string; + admin?: string; /** * class_id is the unique identifier of the credit class under which the * project will be created. */ - class_id: string; + class_id?: string; /** * metadata is any arbitrary string with a maximum length of 256 characters * that includes or references metadata to attach to the project. */ - metadata: string; + metadata?: string; /** * jurisdiction is the jurisdiction of the project. A jurisdiction has with * the format: [-[ ]] @@ -242,12 +242,12 @@ export interface MsgCreateProjectAmino { * sub-national-code and postal-code are optional and can be added for * increased precision. */ - jurisdiction: string; + jurisdiction?: string; /** * reference_id is any arbitrary string used to reference the project with a * maximum length of 32 characters. */ - reference_id: string; + reference_id?: string; } export interface MsgCreateProjectAminoMsg { type: "regen/MsgCreateProject"; @@ -273,7 +273,7 @@ export interface MsgCreateProjectResponseProtoMsg { /** MsgCreateProjectResponse is the Msg/CreateProject response type. */ export interface MsgCreateProjectResponseAmino { /** project_id is the unique identifier of the project. */ - project_id: string; + project_id?: string; } export interface MsgCreateProjectResponseAminoMsg { type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; @@ -310,12 +310,12 @@ export interface MsgCreateBatch { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** * open determines whether or not the credits can be dynamically minted to the * credit batch following the creation of the credit batch. This field should @@ -329,7 +329,7 @@ export interface MsgCreateBatch { * issuing credits and should only be set when bridging assets from another * chain or registry as a result of a bridge operation. */ - originTx: OriginTx; + originTx?: OriginTx; } export interface MsgCreateBatchProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; @@ -341,40 +341,40 @@ export interface MsgCreateBatchAmino { * issuer is the address of the account issuing the credits and must be an * approved issuer within the credit class of the project. */ - issuer: string; + issuer?: string; /** * project_id is the unique identifier of the project under which the credit * batch will be created. */ - project_id: string; + project_id?: string; /** * issuance specifies the amount of tradable and retired credits that will be * issued to each recipient and the jurisdiction in which the credits will be * retired if credits are to be retired upon receipt. */ - issuance: BatchIssuanceAmino[]; + issuance?: BatchIssuanceAmino[]; /** * metadata is any arbitrary string with a maximum length of 256 characters * that includes or references metadata to attach to the credit batch. */ - metadata: string; + metadata?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** * open determines whether or not the credits can be dynamically minted to the * credit batch following the creation of the credit batch. This field should * only be set to true when bridging credits from another chain or registry as * a result of a bridge operation and is not intended for native issuance. */ - open: boolean; + open?: boolean; /** * origin_tx is the transaction from another chain or registry that triggered * the creation of the credit batch. This field can be ignored when natively @@ -393,10 +393,10 @@ export interface MsgCreateBatchSDKType { project_id: string; issuance: BatchIssuanceSDKType[]; metadata: string; - start_date: TimestampSDKType; - end_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; open: boolean; - origin_tx: OriginTxSDKType; + origin_tx?: OriginTxSDKType; } /** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ export interface MsgCreateBatchResponse { @@ -410,7 +410,7 @@ export interface MsgCreateBatchResponseProtoMsg { /** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ export interface MsgCreateBatchResponseAmino { /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; } export interface MsgCreateBatchResponseAminoMsg { type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; @@ -439,7 +439,7 @@ export interface MsgMintBatchCredits { * origin_tx is the transaction from another chain or registry that triggered * the minting of credits. */ - originTx: OriginTx; + originTx?: OriginTx; } export interface MsgMintBatchCreditsProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; @@ -451,15 +451,15 @@ export interface MsgMintBatchCreditsAmino { * issuer is the address of the account minting the credits and must be the * same issuer who created the credit batch. */ - issuer: string; + issuer?: string; /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * issuance specifies the amount of tradable and retired credits that will be * issued to each recipient and the jurisdiction in which the credits will be * retired if credits are to be retired upon receipt. */ - issuance: BatchIssuanceAmino[]; + issuance?: BatchIssuanceAmino[]; /** * origin_tx is the transaction from another chain or registry that triggered * the minting of credits. @@ -475,7 +475,7 @@ export interface MsgMintBatchCreditsSDKType { issuer: string; batch_denom: string; issuance: BatchIssuanceSDKType[]; - origin_tx: OriginTxSDKType; + origin_tx?: OriginTxSDKType; } /** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ export interface MsgMintBatchCreditsResponse { @@ -514,9 +514,9 @@ export interface MsgSealBatchAmino { * issuer is the address of the account that created the credit batch and the * only account with permissions to seal the credit batch. */ - issuer: string; + issuer?: string; /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; } export interface MsgSealBatchAminoMsg { type: "regen/MsgSealBatch"; @@ -560,11 +560,11 @@ export interface MsgSendProtoMsg { /** MsgSend is the Msg/Send request type. */ export interface MsgSendAmino { /** sender is the address of the account sending credits. */ - sender: string; + sender?: string; /** recipient is the address of the account receiving credits. */ - recipient: string; + recipient?: string; /** credits are the credits being sent to the recipient. */ - credits: MsgSend_SendCreditsAmino[]; + credits?: MsgSend_SendCreditsAmino[]; } export interface MsgSendAminoMsg { type: "regen/MsgSend"; @@ -626,19 +626,19 @@ export interface MsgSend_SendCreditsProtoMsg { */ export interface MsgSend_SendCreditsAmino { /** batch_denom is the unique identifier of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * tradable_amount is the amount of credits in this transfer that can be * traded by the recipient. The number of decimal places must be less than * or equal to the credit type precision. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the amount of credits in this transfer that are retired * upon receipt. The number of decimal places must be less than or equal to * the credit type precision. */ - retired_amount: string; + retired_amount?: string; /** * retirement_jurisdiction is the jurisdiction of the recipient and is only * required if retired_amount is positive. A jurisdiction has the format: @@ -648,7 +648,7 @@ export interface MsgSend_SendCreditsAmino { * country-code is required, while the sub-national-code and postal-code are * optional and can be added for increased precision. */ - retirement_jurisdiction: string; + retirement_jurisdiction?: string; /** * retirement_reason is any arbitrary string that specifies the reason for * retiring credits. This field is only required if retired_amount is @@ -656,7 +656,7 @@ export interface MsgSend_SendCreditsAmino { * * Since Revision 2 */ - retirement_reason: string; + retirement_reason?: string; } export interface MsgSend_SendCreditsAminoMsg { type: "/regen.ecocredit.v1.SendCredits"; @@ -722,9 +722,9 @@ export interface MsgRetireProtoMsg { /** MsgRetire is the Msg/Retire request type. */ export interface MsgRetireAmino { /** owner is the address of the account that owns the credits being retired. */ - owner: string; + owner?: string; /** credits specifies a credit batch and the number of credits being retired. */ - credits: CreditsAmino[]; + credits?: CreditsAmino[]; /** * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has * the format: [-[ ]] @@ -734,14 +734,14 @@ export interface MsgRetireAmino { * sub-national-code and postal-code are optional and can be added for * increased precision. */ - jurisdiction: string; + jurisdiction?: string; /** * reason is any arbitrary string that specifies the reason for retiring * credits. * * Since Revision 2 */ - reason: string; + reason?: string; } export interface MsgRetireAminoMsg { type: "regen/MsgRetire"; @@ -790,14 +790,14 @@ export interface MsgCancelProtoMsg { /** MsgCancel is the Msg/Cancel request type. */ export interface MsgCancelAmino { /** owner is the address of the account that owns the credits being cancelled. */ - owner: string; + owner?: string; /** credits specifies a credit batch and the number of credits being cancelled. */ - credits: CreditsAmino[]; + credits?: CreditsAmino[]; /** * reason is any arbitrary string that specifies the reason for cancelling * credits. */ - reason: string; + reason?: string; } export interface MsgCancelAminoMsg { type: "regen/MsgCancel"; @@ -851,14 +851,14 @@ export interface MsgUpdateClassAdminAmino { * admin is the address of the account that is currently the admin of the * credit class. */ - admin: string; + admin?: string; /** class_id is the unique identifier of the credit class. */ - class_id: string; + class_id?: string; /** * new_admin is the address of the account that will become the new admin of * the credit class. */ - new_admin: string; + new_admin?: string; } export interface MsgUpdateClassAdminAminoMsg { type: "regen/MsgUpdateClassAdmin"; @@ -911,19 +911,19 @@ export interface MsgUpdateClassIssuersProtoMsg { /** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ export interface MsgUpdateClassIssuersAmino { /** admin is the address of the account that is the admin of the credit class. */ - admin: string; + admin?: string; /** class_id is the unique identifier of the credit class. */ - class_id: string; + class_id?: string; /** * add_issuers are the addresses of the accounts that will be added to the * list of approved credit class issuers. */ - add_issuers: string[]; + add_issuers?: string[]; /** * remove_issuers are the addresses of the accounts that will be removed from * the list of approved credit class issuers. */ - remove_issuers: string[]; + remove_issuers?: string[]; } export interface MsgUpdateClassIssuersAminoMsg { type: "regen/MsgUpdateClassIssuers"; @@ -973,15 +973,15 @@ export interface MsgUpdateClassMetadataProtoMsg { /** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ export interface MsgUpdateClassMetadataAmino { /** admin is the address of the account that is the admin of the credit class. */ - admin: string; + admin?: string; /** class_id is the unique identifier of the credit class. */ - class_id: string; + class_id?: string; /** * new_metadata is new metadata that will replace the existing metadata. It * can be any arbitrary string with a maximum length of 256 characters that * includes or references the metadata to attach to the credit class. */ - new_metadata: string; + new_metadata?: string; } export interface MsgUpdateClassMetadataAminoMsg { type: "regen/MsgUpdateClassMetadata"; @@ -1035,14 +1035,14 @@ export interface MsgUpdateProjectAdminAmino { * admin is the address of the account that is the currently the admin of the * project. */ - admin: string; + admin?: string; /** project_id is the unique identifier of the project. */ - project_id: string; + project_id?: string; /** * new_admin is the address of the account that will become the new admin of * the project. */ - new_admin: string; + new_admin?: string; } export interface MsgUpdateProjectAdminAminoMsg { type: "regen/MsgUpdateProjectAdmin"; @@ -1091,15 +1091,15 @@ export interface MsgUpdateProjectMetadataProtoMsg { /** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ export interface MsgUpdateProjectMetadataAmino { /** admin is the address of the account that is the admin of the project. */ - admin: string; + admin?: string; /** project_id is the unique identifier of the project. */ - project_id: string; + project_id?: string; /** * new_metadata is new metadata that will replace the existing metadata. It * can be any arbitrary string with a maximum length of 256 characters that * includes or references the metadata to attach to the project. */ - new_metadata: string; + new_metadata?: string; } export interface MsgUpdateProjectMetadataAminoMsg { type: "regen/MsgUpdateProjectMetadata"; @@ -1155,13 +1155,13 @@ export interface MsgBridgeProtoMsg { /** MsgBridge is the Msg/Bridge request type. */ export interface MsgBridgeAmino { /** owner is the address of the account that owns the credits being bridged. */ - owner: string; + owner?: string; /** target is the name of the target chain or registry. */ - target: string; + target?: string; /** recipient is the address of the account receiving the bridged credits. */ - recipient: string; + recipient?: string; /** credits specifies a credit batch and the number of credits being bridged. */ - credits: CreditsAmino[]; + credits?: CreditsAmino[]; } export interface MsgBridgeAminoMsg { type: "regen/MsgBridge"; @@ -1202,15 +1202,15 @@ export interface MsgUpdateBatchMetadataProtoMsg { */ export interface MsgUpdateBatchMetadataAmino { /** issuer is the address of the account that is the issuer of the batch. */ - issuer: string; + issuer?: string; /** batch_denom is the unique identifier of the batch. */ - batch_denom: string; + batch_denom?: string; /** * new_metadata is new metadata that will replace the existing metadata. It * can be any arbitrary string with a maximum length of 256 characters that * includes or references the metadata to attach to the batch. */ - new_metadata: string; + new_metadata?: string; } export interface MsgUpdateBatchMetadataAminoMsg { type: "regen/MsgUpdateBatchMetadata"; @@ -1285,14 +1285,14 @@ export interface MsgBridgeReceive { */ classId: string; /** project defines the project information for the bridged credits. */ - project: MsgBridgeReceive_Project; + project?: MsgBridgeReceive_Project; /** batch defines the credit batch information for the bridged credits. */ - batch: MsgBridgeReceive_Batch; + batch?: MsgBridgeReceive_Batch; /** * origin_tx is a reference to a transaction which caused the transfer from * another chain or registry. */ - originTx: OriginTx; + originTx?: OriginTx; } export interface MsgBridgeReceiveProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; @@ -1301,12 +1301,12 @@ export interface MsgBridgeReceiveProtoMsg { /** MsgBridgeReceive is the Msg/BridgeReceive request type. */ export interface MsgBridgeReceiveAmino { /** issuer is the account address of the service bridging the credits. */ - issuer: string; + issuer?: string; /** * class_id is the unique identifier of the credit class within which the * project and credit batch already exist or will be created. */ - class_id: string; + class_id?: string; /** project defines the project information for the bridged credits. */ project?: MsgBridgeReceive_ProjectAmino; /** batch defines the credit batch information for the bridged credits. */ @@ -1325,9 +1325,9 @@ export interface MsgBridgeReceiveAminoMsg { export interface MsgBridgeReceiveSDKType { issuer: string; class_id: string; - project: MsgBridgeReceive_ProjectSDKType; - batch: MsgBridgeReceive_BatchSDKType; - origin_tx: OriginTxSDKType; + project?: MsgBridgeReceive_ProjectSDKType; + batch?: MsgBridgeReceive_BatchSDKType; + origin_tx?: OriginTxSDKType; } /** * Batch defines the credit batch information for the bridged credits. This @@ -1343,12 +1343,12 @@ export interface MsgBridgeReceive_Batch { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** metadata is the metadata for the credit batch. */ metadata: string; } @@ -1363,21 +1363,21 @@ export interface MsgBridgeReceive_BatchProtoMsg { */ export interface MsgBridgeReceive_BatchAmino { /** recipient is the recipient of the bridged credits. */ - recipient: string; + recipient?: string; /** amount is the amount of credits being bridged. */ - amount: string; + amount?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** metadata is the metadata for the credit batch. */ - metadata: string; + metadata?: string; } export interface MsgBridgeReceive_BatchAminoMsg { type: "/regen.ecocredit.v1.Batch"; @@ -1391,8 +1391,8 @@ export interface MsgBridgeReceive_BatchAminoMsg { export interface MsgBridgeReceive_BatchSDKType { recipient: string; amount: string; - start_date: TimestampSDKType; - end_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; metadata: string; } /** @@ -1419,11 +1419,11 @@ export interface MsgBridgeReceive_ProjectProtoMsg { */ export interface MsgBridgeReceive_ProjectAmino { /** reference_id is the reference id of the project. */ - reference_id: string; + reference_id?: string; /** jurisdiction is the project jurisdiction. */ - jurisdiction: string; + jurisdiction?: string; /** metadata is the metadata for the project. */ - metadata: string; + metadata?: string; } export interface MsgBridgeReceive_ProjectAminoMsg { type: "/regen.ecocredit.v1.Project"; @@ -1462,12 +1462,12 @@ export interface MsgBridgeReceiveResponseAmino { * batch_denom is the unique identifier of the credit batch either created * or within which the credits were dynamically minted. */ - batch_denom: string; + batch_denom?: string; /** * project_id is the unique identifier of the project that was either created * or the existing project within which the credit batch exists. */ - project_id: string; + project_id?: string; } export interface MsgBridgeReceiveResponseAminoMsg { type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; @@ -1500,9 +1500,9 @@ export interface MsgAddClassCreatorProtoMsg { */ export interface MsgAddClassCreatorAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** creator is the address to add to the class creator list. */ - creator: string; + creator?: string; } export interface MsgAddClassCreatorAminoMsg { type: "regen/MsgAddClassCreator"; @@ -1570,9 +1570,9 @@ export interface MsgSetClassCreatorAllowlistProtoMsg { */ export interface MsgSetClassCreatorAllowlistAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** enabled defines the boolean value to set the allowlist on or off. */ - enabled: boolean; + enabled?: boolean; } export interface MsgSetClassCreatorAllowlistAminoMsg { type: "regen/MsgSetClassCreatorAllowlist"; @@ -1642,9 +1642,9 @@ export interface MsgRemoveClassCreatorProtoMsg { */ export interface MsgRemoveClassCreatorAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** creator is the address to remove from the class creator list. */ - creator: string; + creator?: string; } export interface MsgRemoveClassCreatorAminoMsg { type: "regen/MsgRemoveClassCreator"; @@ -1700,7 +1700,7 @@ export interface MsgUpdateClassFee { * fee is the credit class creation fee. If not set, the credit class creation * fee will be removed and no fee will be required to create a credit class. */ - fee: Coin; + fee?: Coin; } export interface MsgUpdateClassFeeProtoMsg { typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; @@ -1713,7 +1713,7 @@ export interface MsgUpdateClassFeeProtoMsg { */ export interface MsgUpdateClassFeeAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** * fee is the credit class creation fee. If not set, the credit class creation * fee will be removed and no fee will be required to create a credit class. @@ -1731,7 +1731,7 @@ export interface MsgUpdateClassFeeAminoMsg { */ export interface MsgUpdateClassFeeSDKType { authority: string; - fee: CoinSDKType; + fee?: CoinSDKType; } /** * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. @@ -1787,12 +1787,12 @@ export interface MsgAddAllowedBridgeChainProtoMsg { */ export interface MsgAddAllowedBridgeChainAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** * chain_name is the name of the chain to allow bridging of ecocredits to * (i.e. polygon, ethereum, celo). */ - chain_name: string; + chain_name?: string; } export interface MsgAddAllowedBridgeChainAminoMsg { type: "regen/MsgAddAllowedBridgeChain"; @@ -1864,12 +1864,12 @@ export interface MsgRemoveAllowedBridgeChainProtoMsg { */ export interface MsgRemoveAllowedBridgeChainAmino { /** authority is the address of the governance account. */ - authority: string; + authority?: string; /** * chain_name is the name of the chain to remove from the list of allowed * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). */ - chain_name: string; + chain_name?: string; } export interface MsgRemoveAllowedBridgeChainAminoMsg { type: "regen/MsgRemoveAllowedBridgeChain"; @@ -1917,8 +1917,9 @@ export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { export interface MsgRemoveAllowedBridgeChainResponseSDKType { } export declare const MsgAddCreditType: { - encode(message: MsgAddCreditType, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddCreditType; + typeUrl: string; + encode(message: MsgAddCreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType; fromJSON(object: any): MsgAddCreditType; toJSON(message: MsgAddCreditType): unknown; fromPartial(object: Partial): MsgAddCreditType; @@ -1931,8 +1932,9 @@ export declare const MsgAddCreditType: { toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg; }; export declare const MsgAddCreditTypeResponse: { - encode(_: MsgAddCreditTypeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddCreditTypeResponse; + typeUrl: string; + encode(_: MsgAddCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse; fromJSON(_: any): MsgAddCreditTypeResponse; toJSON(_: MsgAddCreditTypeResponse): unknown; fromPartial(_: Partial): MsgAddCreditTypeResponse; @@ -1944,8 +1946,9 @@ export declare const MsgAddCreditTypeResponse: { toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg; }; export declare const MsgCreateClass: { - encode(message: MsgCreateClass, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClass; + typeUrl: string; + encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; fromJSON(object: any): MsgCreateClass; toJSON(message: MsgCreateClass): unknown; fromPartial(object: Partial): MsgCreateClass; @@ -1958,8 +1961,9 @@ export declare const MsgCreateClass: { toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; }; export declare const MsgCreateClassResponse: { - encode(message: MsgCreateClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClassResponse; + typeUrl: string; + encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; fromJSON(object: any): MsgCreateClassResponse; toJSON(message: MsgCreateClassResponse): unknown; fromPartial(object: Partial): MsgCreateClassResponse; @@ -1971,8 +1975,9 @@ export declare const MsgCreateClassResponse: { toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; }; export declare const MsgCreateProject: { - encode(message: MsgCreateProject, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateProject; + typeUrl: string; + encode(message: MsgCreateProject, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject; fromJSON(object: any): MsgCreateProject; toJSON(message: MsgCreateProject): unknown; fromPartial(object: Partial): MsgCreateProject; @@ -1985,8 +1990,9 @@ export declare const MsgCreateProject: { toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg; }; export declare const MsgCreateProjectResponse: { - encode(message: MsgCreateProjectResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateProjectResponse; + typeUrl: string; + encode(message: MsgCreateProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse; fromJSON(object: any): MsgCreateProjectResponse; toJSON(message: MsgCreateProjectResponse): unknown; fromPartial(object: Partial): MsgCreateProjectResponse; @@ -1998,8 +2004,9 @@ export declare const MsgCreateProjectResponse: { toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg; }; export declare const MsgCreateBatch: { - encode(message: MsgCreateBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateBatch; + typeUrl: string; + encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; fromJSON(object: any): MsgCreateBatch; toJSON(message: MsgCreateBatch): unknown; fromPartial(object: Partial): MsgCreateBatch; @@ -2012,8 +2019,9 @@ export declare const MsgCreateBatch: { toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; }; export declare const MsgCreateBatchResponse: { - encode(message: MsgCreateBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateBatchResponse; + typeUrl: string; + encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; fromJSON(object: any): MsgCreateBatchResponse; toJSON(message: MsgCreateBatchResponse): unknown; fromPartial(object: Partial): MsgCreateBatchResponse; @@ -2025,8 +2033,9 @@ export declare const MsgCreateBatchResponse: { toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; }; export declare const MsgMintBatchCredits: { - encode(message: MsgMintBatchCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgMintBatchCredits; + typeUrl: string; + encode(message: MsgMintBatchCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits; fromJSON(object: any): MsgMintBatchCredits; toJSON(message: MsgMintBatchCredits): unknown; fromPartial(object: Partial): MsgMintBatchCredits; @@ -2039,8 +2048,9 @@ export declare const MsgMintBatchCredits: { toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg; }; export declare const MsgMintBatchCreditsResponse: { - encode(_: MsgMintBatchCreditsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgMintBatchCreditsResponse; + typeUrl: string; + encode(_: MsgMintBatchCreditsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse; fromJSON(_: any): MsgMintBatchCreditsResponse; toJSON(_: MsgMintBatchCreditsResponse): unknown; fromPartial(_: Partial): MsgMintBatchCreditsResponse; @@ -2052,8 +2062,9 @@ export declare const MsgMintBatchCreditsResponse: { toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg; }; export declare const MsgSealBatch: { - encode(message: MsgSealBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSealBatch; + typeUrl: string; + encode(message: MsgSealBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch; fromJSON(object: any): MsgSealBatch; toJSON(message: MsgSealBatch): unknown; fromPartial(object: Partial): MsgSealBatch; @@ -2066,8 +2077,9 @@ export declare const MsgSealBatch: { toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg; }; export declare const MsgSealBatchResponse: { - encode(_: MsgSealBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSealBatchResponse; + typeUrl: string; + encode(_: MsgSealBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse; fromJSON(_: any): MsgSealBatchResponse; toJSON(_: MsgSealBatchResponse): unknown; fromPartial(_: Partial): MsgSealBatchResponse; @@ -2079,8 +2091,9 @@ export declare const MsgSealBatchResponse: { toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg; }; export declare const MsgSend: { - encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; fromJSON(object: any): MsgSend; toJSON(message: MsgSend): unknown; fromPartial(object: Partial): MsgSend; @@ -2093,8 +2106,9 @@ export declare const MsgSend: { toProtoMsg(message: MsgSend): MsgSendProtoMsg; }; export declare const MsgSend_SendCredits: { - encode(message: MsgSend_SendCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend_SendCredits; + typeUrl: string; + encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; fromJSON(object: any): MsgSend_SendCredits; toJSON(message: MsgSend_SendCredits): unknown; fromPartial(object: Partial): MsgSend_SendCredits; @@ -2106,8 +2120,9 @@ export declare const MsgSend_SendCredits: { toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; }; export declare const MsgSendResponse: { - encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; fromJSON(_: any): MsgSendResponse; toJSON(_: MsgSendResponse): unknown; fromPartial(_: Partial): MsgSendResponse; @@ -2119,8 +2134,9 @@ export declare const MsgSendResponse: { toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; }; export declare const MsgRetire: { - encode(message: MsgRetire, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRetire; + typeUrl: string; + encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; fromJSON(object: any): MsgRetire; toJSON(message: MsgRetire): unknown; fromPartial(object: Partial): MsgRetire; @@ -2133,8 +2149,9 @@ export declare const MsgRetire: { toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; }; export declare const MsgRetireResponse: { - encode(_: MsgRetireResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRetireResponse; + typeUrl: string; + encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; fromJSON(_: any): MsgRetireResponse; toJSON(_: MsgRetireResponse): unknown; fromPartial(_: Partial): MsgRetireResponse; @@ -2146,8 +2163,9 @@ export declare const MsgRetireResponse: { toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; }; export declare const MsgCancel: { - encode(message: MsgCancel, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancel; + typeUrl: string; + encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; fromJSON(object: any): MsgCancel; toJSON(message: MsgCancel): unknown; fromPartial(object: Partial): MsgCancel; @@ -2160,8 +2178,9 @@ export declare const MsgCancel: { toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; }; export declare const MsgCancelResponse: { - encode(_: MsgCancelResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelResponse; + typeUrl: string; + encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; fromJSON(_: any): MsgCancelResponse; toJSON(_: MsgCancelResponse): unknown; fromPartial(_: Partial): MsgCancelResponse; @@ -2173,8 +2192,9 @@ export declare const MsgCancelResponse: { toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; }; export declare const MsgUpdateClassAdmin: { - encode(message: MsgUpdateClassAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassAdmin; + typeUrl: string; + encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; fromJSON(object: any): MsgUpdateClassAdmin; toJSON(message: MsgUpdateClassAdmin): unknown; fromPartial(object: Partial): MsgUpdateClassAdmin; @@ -2187,8 +2207,9 @@ export declare const MsgUpdateClassAdmin: { toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; }; export declare const MsgUpdateClassAdminResponse: { - encode(_: MsgUpdateClassAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; + typeUrl: string; + encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; fromJSON(_: any): MsgUpdateClassAdminResponse; toJSON(_: MsgUpdateClassAdminResponse): unknown; fromPartial(_: Partial): MsgUpdateClassAdminResponse; @@ -2200,8 +2221,9 @@ export declare const MsgUpdateClassAdminResponse: { toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; }; export declare const MsgUpdateClassIssuers: { - encode(message: MsgUpdateClassIssuers, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassIssuers; + typeUrl: string; + encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; fromJSON(object: any): MsgUpdateClassIssuers; toJSON(message: MsgUpdateClassIssuers): unknown; fromPartial(object: Partial): MsgUpdateClassIssuers; @@ -2214,8 +2236,9 @@ export declare const MsgUpdateClassIssuers: { toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; }; export declare const MsgUpdateClassIssuersResponse: { - encode(_: MsgUpdateClassIssuersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; + typeUrl: string; + encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; fromJSON(_: any): MsgUpdateClassIssuersResponse; toJSON(_: MsgUpdateClassIssuersResponse): unknown; fromPartial(_: Partial): MsgUpdateClassIssuersResponse; @@ -2227,8 +2250,9 @@ export declare const MsgUpdateClassIssuersResponse: { toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; }; export declare const MsgUpdateClassMetadata: { - encode(message: MsgUpdateClassMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassMetadata; + typeUrl: string; + encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; fromJSON(object: any): MsgUpdateClassMetadata; toJSON(message: MsgUpdateClassMetadata): unknown; fromPartial(object: Partial): MsgUpdateClassMetadata; @@ -2241,8 +2265,9 @@ export declare const MsgUpdateClassMetadata: { toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; }; export declare const MsgUpdateClassMetadataResponse: { - encode(_: MsgUpdateClassMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; fromJSON(_: any): MsgUpdateClassMetadataResponse; toJSON(_: MsgUpdateClassMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateClassMetadataResponse; @@ -2254,8 +2279,9 @@ export declare const MsgUpdateClassMetadataResponse: { toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; }; export declare const MsgUpdateProjectAdmin: { - encode(message: MsgUpdateProjectAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateProjectAdmin; + typeUrl: string; + encode(message: MsgUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin; fromJSON(object: any): MsgUpdateProjectAdmin; toJSON(message: MsgUpdateProjectAdmin): unknown; fromPartial(object: Partial): MsgUpdateProjectAdmin; @@ -2268,8 +2294,9 @@ export declare const MsgUpdateProjectAdmin: { toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg; }; export declare const MsgUpdateProjectAdminResponse: { - encode(_: MsgUpdateProjectAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse; + typeUrl: string; + encode(_: MsgUpdateProjectAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse; fromJSON(_: any): MsgUpdateProjectAdminResponse; toJSON(_: MsgUpdateProjectAdminResponse): unknown; fromPartial(_: Partial): MsgUpdateProjectAdminResponse; @@ -2281,8 +2308,9 @@ export declare const MsgUpdateProjectAdminResponse: { toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg; }; export declare const MsgUpdateProjectMetadata: { - encode(message: MsgUpdateProjectMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateProjectMetadata; + typeUrl: string; + encode(message: MsgUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata; fromJSON(object: any): MsgUpdateProjectMetadata; toJSON(message: MsgUpdateProjectMetadata): unknown; fromPartial(object: Partial): MsgUpdateProjectMetadata; @@ -2295,8 +2323,9 @@ export declare const MsgUpdateProjectMetadata: { toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg; }; export declare const MsgUpdateProjectMetadataResponse: { - encode(_: MsgUpdateProjectMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateProjectMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse; fromJSON(_: any): MsgUpdateProjectMetadataResponse; toJSON(_: MsgUpdateProjectMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateProjectMetadataResponse; @@ -2308,8 +2337,9 @@ export declare const MsgUpdateProjectMetadataResponse: { toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg; }; export declare const MsgBridge: { - encode(message: MsgBridge, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridge; + typeUrl: string; + encode(message: MsgBridge, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge; fromJSON(object: any): MsgBridge; toJSON(message: MsgBridge): unknown; fromPartial(object: Partial): MsgBridge; @@ -2322,8 +2352,9 @@ export declare const MsgBridge: { toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg; }; export declare const MsgUpdateBatchMetadata: { - encode(message: MsgUpdateBatchMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBatchMetadata; + typeUrl: string; + encode(message: MsgUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata; fromJSON(object: any): MsgUpdateBatchMetadata; toJSON(message: MsgUpdateBatchMetadata): unknown; fromPartial(object: Partial): MsgUpdateBatchMetadata; @@ -2336,8 +2367,9 @@ export declare const MsgUpdateBatchMetadata: { toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg; }; export declare const MsgUpdateBatchMetadataResponse: { - encode(_: MsgUpdateBatchMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateBatchMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse; fromJSON(_: any): MsgUpdateBatchMetadataResponse; toJSON(_: MsgUpdateBatchMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateBatchMetadataResponse; @@ -2349,8 +2381,9 @@ export declare const MsgUpdateBatchMetadataResponse: { toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg; }; export declare const MsgBridgeResponse: { - encode(_: MsgBridgeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridgeResponse; + typeUrl: string; + encode(_: MsgBridgeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse; fromJSON(_: any): MsgBridgeResponse; toJSON(_: MsgBridgeResponse): unknown; fromPartial(_: Partial): MsgBridgeResponse; @@ -2362,8 +2395,9 @@ export declare const MsgBridgeResponse: { toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg; }; export declare const MsgBridgeReceive: { - encode(message: MsgBridgeReceive, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridgeReceive; + typeUrl: string; + encode(message: MsgBridgeReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive; fromJSON(object: any): MsgBridgeReceive; toJSON(message: MsgBridgeReceive): unknown; fromPartial(object: Partial): MsgBridgeReceive; @@ -2376,8 +2410,9 @@ export declare const MsgBridgeReceive: { toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg; }; export declare const MsgBridgeReceive_Batch: { - encode(message: MsgBridgeReceive_Batch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridgeReceive_Batch; + typeUrl: string; + encode(message: MsgBridgeReceive_Batch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch; fromJSON(object: any): MsgBridgeReceive_Batch; toJSON(message: MsgBridgeReceive_Batch): unknown; fromPartial(object: Partial): MsgBridgeReceive_Batch; @@ -2389,8 +2424,9 @@ export declare const MsgBridgeReceive_Batch: { toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg; }; export declare const MsgBridgeReceive_Project: { - encode(message: MsgBridgeReceive_Project, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridgeReceive_Project; + typeUrl: string; + encode(message: MsgBridgeReceive_Project, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project; fromJSON(object: any): MsgBridgeReceive_Project; toJSON(message: MsgBridgeReceive_Project): unknown; fromPartial(object: Partial): MsgBridgeReceive_Project; @@ -2402,8 +2438,9 @@ export declare const MsgBridgeReceive_Project: { toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg; }; export declare const MsgBridgeReceiveResponse: { - encode(message: MsgBridgeReceiveResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgBridgeReceiveResponse; + typeUrl: string; + encode(message: MsgBridgeReceiveResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse; fromJSON(object: any): MsgBridgeReceiveResponse; toJSON(message: MsgBridgeReceiveResponse): unknown; fromPartial(object: Partial): MsgBridgeReceiveResponse; @@ -2415,8 +2452,9 @@ export declare const MsgBridgeReceiveResponse: { toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg; }; export declare const MsgAddClassCreator: { - encode(message: MsgAddClassCreator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddClassCreator; + typeUrl: string; + encode(message: MsgAddClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator; fromJSON(object: any): MsgAddClassCreator; toJSON(message: MsgAddClassCreator): unknown; fromPartial(object: Partial): MsgAddClassCreator; @@ -2429,8 +2467,9 @@ export declare const MsgAddClassCreator: { toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg; }; export declare const MsgAddClassCreatorResponse: { - encode(_: MsgAddClassCreatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddClassCreatorResponse; + typeUrl: string; + encode(_: MsgAddClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse; fromJSON(_: any): MsgAddClassCreatorResponse; toJSON(_: MsgAddClassCreatorResponse): unknown; fromPartial(_: Partial): MsgAddClassCreatorResponse; @@ -2442,8 +2481,9 @@ export declare const MsgAddClassCreatorResponse: { toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg; }; export declare const MsgSetClassCreatorAllowlist: { - encode(message: MsgSetClassCreatorAllowlist, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist; + typeUrl: string; + encode(message: MsgSetClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist; fromJSON(object: any): MsgSetClassCreatorAllowlist; toJSON(message: MsgSetClassCreatorAllowlist): unknown; fromPartial(object: Partial): MsgSetClassCreatorAllowlist; @@ -2456,8 +2496,9 @@ export declare const MsgSetClassCreatorAllowlist: { toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg; }; export declare const MsgSetClassCreatorAllowlistResponse: { - encode(_: MsgSetClassCreatorAllowlistResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse; + typeUrl: string; + encode(_: MsgSetClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse; fromJSON(_: any): MsgSetClassCreatorAllowlistResponse; toJSON(_: MsgSetClassCreatorAllowlistResponse): unknown; fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse; @@ -2469,8 +2510,9 @@ export declare const MsgSetClassCreatorAllowlistResponse: { toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg; }; export declare const MsgRemoveClassCreator: { - encode(message: MsgRemoveClassCreator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveClassCreator; + typeUrl: string; + encode(message: MsgRemoveClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator; fromJSON(object: any): MsgRemoveClassCreator; toJSON(message: MsgRemoveClassCreator): unknown; fromPartial(object: Partial): MsgRemoveClassCreator; @@ -2483,8 +2525,9 @@ export declare const MsgRemoveClassCreator: { toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg; }; export declare const MsgRemoveClassCreatorResponse: { - encode(_: MsgRemoveClassCreatorResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse; + typeUrl: string; + encode(_: MsgRemoveClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse; fromJSON(_: any): MsgRemoveClassCreatorResponse; toJSON(_: MsgRemoveClassCreatorResponse): unknown; fromPartial(_: Partial): MsgRemoveClassCreatorResponse; @@ -2496,8 +2539,9 @@ export declare const MsgRemoveClassCreatorResponse: { toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg; }; export declare const MsgUpdateClassFee: { - encode(message: MsgUpdateClassFee, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassFee; + typeUrl: string; + encode(message: MsgUpdateClassFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee; fromJSON(object: any): MsgUpdateClassFee; toJSON(message: MsgUpdateClassFee): unknown; fromPartial(object: Partial): MsgUpdateClassFee; @@ -2510,8 +2554,9 @@ export declare const MsgUpdateClassFee: { toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg; }; export declare const MsgUpdateClassFeeResponse: { - encode(_: MsgUpdateClassFeeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassFeeResponse; + typeUrl: string; + encode(_: MsgUpdateClassFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse; fromJSON(_: any): MsgUpdateClassFeeResponse; toJSON(_: MsgUpdateClassFeeResponse): unknown; fromPartial(_: Partial): MsgUpdateClassFeeResponse; @@ -2523,8 +2568,9 @@ export declare const MsgUpdateClassFeeResponse: { toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg; }; export declare const MsgAddAllowedBridgeChain: { - encode(message: MsgAddAllowedBridgeChain, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAllowedBridgeChain; + typeUrl: string; + encode(message: MsgAddAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain; fromJSON(object: any): MsgAddAllowedBridgeChain; toJSON(message: MsgAddAllowedBridgeChain): unknown; fromPartial(object: Partial): MsgAddAllowedBridgeChain; @@ -2537,8 +2583,9 @@ export declare const MsgAddAllowedBridgeChain: { toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg; }; export declare const MsgAddAllowedBridgeChainResponse: { - encode(_: MsgAddAllowedBridgeChainResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse; + typeUrl: string; + encode(_: MsgAddAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse; fromJSON(_: any): MsgAddAllowedBridgeChainResponse; toJSON(_: MsgAddAllowedBridgeChainResponse): unknown; fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse; @@ -2550,8 +2597,9 @@ export declare const MsgAddAllowedBridgeChainResponse: { toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg; }; export declare const MsgRemoveAllowedBridgeChain: { - encode(message: MsgRemoveAllowedBridgeChain, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain; + typeUrl: string; + encode(message: MsgRemoveAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain; fromJSON(object: any): MsgRemoveAllowedBridgeChain; toJSON(message: MsgRemoveAllowedBridgeChain): unknown; fromPartial(object: Partial): MsgRemoveAllowedBridgeChain; @@ -2564,8 +2612,9 @@ export declare const MsgRemoveAllowedBridgeChain: { toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg; }; export declare const MsgRemoveAllowedBridgeChainResponse: { - encode(_: MsgRemoveAllowedBridgeChainResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse; + typeUrl: string; + encode(_: MsgRemoveAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse; fromJSON(_: any): MsgRemoveAllowedBridgeChainResponse; toJSON(_: MsgRemoveAllowedBridgeChainResponse): unknown; fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts index 2ec137d9..e5b3d54a 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts @@ -1,6 +1,6 @@ import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * Params defines the updatable global parameters of the ecocredit module for * use with the x/params module. @@ -60,40 +60,40 @@ export interface ParamsAmino { * creating a credit class. Any fee listed is accepted and charged to the * credit class creator when creating a credit class. */ - credit_class_fee: CoinAmino[]; + credit_class_fee?: CoinAmino[]; /** * basket_fee is a list of basket creation fees accepted when creating a * basket. Any fee listed is accepted and charged to the basket creator when * creating a basket. */ - basket_fee: CoinAmino[]; + basket_fee?: CoinAmino[]; /** * allowed_class_creators is an allowlist defining the addresses with the * required permissions to create credit classes when allowlist_enabled is set * to true. If allowlist_enabled is set to false, this list has no effect. */ - allowed_class_creators: string[]; + allowed_class_creators?: string[]; /** * allowlist_enabled determines whether or not the allowlist for creating * credit classes is enabled. When set to true, only the addresses listed in * allowed_class_creators can create credit classes. When set to false, any * address can create credit classes. */ - allowlist_enabled: boolean; + allowlist_enabled?: boolean; /** * allowed_denoms is a list of bank denoms allowed to be used in the ask price * of sell orders. * * Since Revision 2 */ - allowed_denoms: AllowedDenomAmino[]; + allowed_denoms?: AllowedDenomAmino[]; /** * AllowedBridgeChains is a list of chain names that are allowed to be used in * bridge operations. * * Since Revision 2 */ - allowed_bridge_chains: string[]; + allowed_bridge_chains?: string[]; } export interface ParamsAminoMsg { type: "/regen.ecocredit.v1.Params"; @@ -125,9 +125,9 @@ export interface CreditsProtoMsg { /** Credits represents a simple structure for credits. */ export interface CreditsAmino { /** batch_denom is the denom of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** amount is the amount of credits. */ - amount: string; + amount?: string; } export interface CreditsAminoMsg { type: "/regen.ecocredit.v1.Credits"; @@ -181,19 +181,19 @@ export interface BatchIssuanceProtoMsg { /** BatchIssuance represents a simple structure for a credit batch issuance. */ export interface BatchIssuanceAmino { /** recipient is the address of the account receiving the issued credits. */ - recipient: string; + recipient?: string; /** * tradable_amount is the amount of credits that the recipient will receive in * a tradable state. The number of decimal places must be less than or equal * to the credit type precision. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the amount of credits that the recipient will receive in * a retired state. The number of decimal places must be less than or equal to * the credit type precision. */ - retired_amount: string; + retired_amount?: string; /** * retirement_jurisdiction is the jurisdiction of the recipient and is only * required if retired_amount is positive. A jurisdiction has the following @@ -204,7 +204,7 @@ export interface BatchIssuanceAmino { * sub-national-code and postal-code are optional and can be added for * increased precision. */ - retirement_jurisdiction: string; + retirement_jurisdiction?: string; /** * retirement_reason is any arbitrary string that specifies the reason for * retiring credits. The reason will be included in EventRetire and is not @@ -212,7 +212,7 @@ export interface BatchIssuanceAmino { * * Since Revision 2 */ - retirement_reason: string; + retirement_reason?: string; } export interface BatchIssuanceAminoMsg { type: "/regen.ecocredit.v1.BatchIssuance"; @@ -268,12 +268,12 @@ export interface OriginTxAmino { * id is the transaction ID of an originating transaction or operation based * on a type (i.e. transaction ID, serial number). */ - id: string; + id?: string; /** * source is the source chain or registry of the transaction originating the * mint process (e.g. polygon, ethereum, verra). */ - source: string; + source?: string; /** * contract is the address of the contract on the source chain that was * executed when creating the transaction. This address will be stored in @@ -281,12 +281,12 @@ export interface OriginTxAmino { * used when sending credits back to the source chain. This field can be left * blank if credits are bridged from a non-contract-based source. */ - contract: string; + contract?: string; /** * note is a reference note for accounting that will be included in an event * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. */ - note: string; + note?: string; } export interface OriginTxAminoMsg { type: "/regen.ecocredit.v1.OriginTx"; @@ -316,7 +316,7 @@ export interface CreditTypeProposal { * credit_type is the credit type to be added to the network if the proposal * passes. */ - creditType: CreditType; + creditType?: CreditType; } export interface CreditTypeProposalProtoMsg { typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; @@ -329,9 +329,9 @@ export interface CreditTypeProposalProtoMsg { */ export interface CreditTypeProposalAmino { /** title is the title of the proposal. */ - title: string; + title?: string; /** description is the description of the proposal. */ - description: string; + description?: string; /** * credit_type is the credit type to be added to the network if the proposal * passes. @@ -350,7 +350,7 @@ export interface CreditTypeProposalAminoMsg { export interface CreditTypeProposalSDKType { title: string; description: string; - credit_type: CreditTypeSDKType; + credit_type?: CreditTypeSDKType; } /** * AllowedDenom represents the information for an allowed ask denom. @@ -389,18 +389,18 @@ export interface AllowedDenomProtoMsg { */ export interface AllowedDenomAmino { /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom: string; + bank_denom?: string; /** * display_denom is the denom to display to the user and is informational. * Because the denom is likely an IBC denom, this should be chosen by * governance to represent the consensus trusted name of the denom. */ - display_denom: string; + display_denom?: string; /** * exponent is the exponent that relates the denom to the display_denom and is * informational */ - exponent: number; + exponent?: number; } export interface AllowedDenomAminoMsg { type: "/regen.ecocredit.v1.AllowedDenom"; @@ -420,8 +420,9 @@ export interface AllowedDenomSDKType { exponent: number; } export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; @@ -433,8 +434,9 @@ export declare const Params: { toProtoMsg(message: Params): ParamsProtoMsg; }; export declare const Credits: { - encode(message: Credits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Credits; + typeUrl: string; + encode(message: Credits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Credits; fromJSON(object: any): Credits; toJSON(message: Credits): unknown; fromPartial(object: Partial): Credits; @@ -446,8 +448,9 @@ export declare const Credits: { toProtoMsg(message: Credits): CreditsProtoMsg; }; export declare const BatchIssuance: { - encode(message: BatchIssuance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchIssuance; + typeUrl: string; + encode(message: BatchIssuance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance; fromJSON(object: any): BatchIssuance; toJSON(message: BatchIssuance): unknown; fromPartial(object: Partial): BatchIssuance; @@ -459,8 +462,9 @@ export declare const BatchIssuance: { toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg; }; export declare const OriginTx: { - encode(message: OriginTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): OriginTx; + typeUrl: string; + encode(message: OriginTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OriginTx; fromJSON(object: any): OriginTx; toJSON(message: OriginTx): unknown; fromPartial(object: Partial): OriginTx; @@ -472,8 +476,9 @@ export declare const OriginTx: { toProtoMsg(message: OriginTx): OriginTxProtoMsg; }; export declare const CreditTypeProposal: { - encode(message: CreditTypeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CreditTypeProposal; + typeUrl: string; + encode(message: CreditTypeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal; fromJSON(object: any): CreditTypeProposal; toJSON(message: CreditTypeProposal): unknown; fromPartial(object: Partial): CreditTypeProposal; @@ -485,8 +490,9 @@ export declare const CreditTypeProposal: { toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg; }; export declare const AllowedDenom: { - encode(message: AllowedDenom, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedDenom; + typeUrl: string; + encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; fromJSON(object: any): AllowedDenom; toJSON(message: AllowedDenom): unknown; fromPartial(object: Partial): AllowedDenom; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts index 1c4af783..0a9cd9fb 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** EventCreateClass is an event emitted when a credit class is created. */ export interface EventCreateClass { /** class_id is the unique ID of credit class. */ @@ -13,9 +13,9 @@ export interface EventCreateClassProtoMsg { /** EventCreateClass is an event emitted when a credit class is created. */ export interface EventCreateClassAmino { /** class_id is the unique ID of credit class. */ - class_id: string; + class_id?: string; /** admin is the admin of the credit class. */ - admin: string; + admin?: string; } export interface EventCreateClassAminoMsg { type: "/regen.ecocredit.v1alpha1.EventCreateClass"; @@ -59,28 +59,28 @@ export interface EventCreateBatchProtoMsg { /** EventCreateBatch is an event emitted when a credit batch is created. */ export interface EventCreateBatchAmino { /** class_id is the unique ID of credit class. */ - class_id: string; + class_id?: string; /** batch_denom is the unique ID of credit batch. */ - batch_denom: string; + batch_denom?: string; /** issuer is the account address of the issuer of the credit batch. */ - issuer: string; + issuer?: string; /** total_amount is the total number of credits in the credit batch. */ - total_amount: string; + total_amount?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date: string; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date: string; + end_date?: string; /** * project_location is the location of the project backing the credits in this * batch. Full documentation can be found in MsgCreateBatch.project_location. */ - project_location: string; + project_location?: string; } export interface EventCreateBatchAminoMsg { type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; @@ -141,22 +141,22 @@ export interface EventReceiveAmino { * result of a transfer. It will not be set when credits are received at * initial issuance or taken from a basket. */ - sender: string; + sender?: string; /** recipient is the recipient of the credits. */ - recipient: string; + recipient?: string; /** batch_denom is the unique ID of credit batch. */ - batch_denom: string; + batch_denom?: string; /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the decimal number of retired credits received. */ - retired_amount: string; + retired_amount?: string; /** * basket_denom is the denom of the basket. when the basket_denom field is * set, it indicates that this event was triggered by the transfer of credits * from a basket. It will not be set if the credits were sent by a user, or by * initial issuance. */ - basket_denom: string; + basket_denom?: string; } export interface EventReceiveAminoMsg { type: "/regen.ecocredit.v1alpha1.EventReceive"; @@ -216,11 +216,11 @@ export interface EventRetireAmino { * account receiving credits in the case that credits were retired upon * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. */ - retirer: string; + retirer?: string; /** batch_denom is the unique ID of credit batch. */ - batch_denom: string; + batch_denom?: string; /** amount is the decimal number of credits that have been retired. */ - amount: string; + amount?: string; /** * location is the location of the beneficiary or buyer of the retired * credits. It is a string of the form @@ -228,7 +228,7 @@ export interface EventRetireAmino { * fields conforming to ISO 3166-2, and postal-code being up to 64 * alphanumeric characters. */ - location: string; + location?: string; } export interface EventRetireAminoMsg { type: "/regen.ecocredit.v1alpha1.EventRetire"; @@ -275,11 +275,11 @@ export interface EventCancelAmino { * canceller is the account which has cancelled the credits, which should be * the holder of the credits. */ - canceller: string; + canceller?: string; /** batch_denom is the unique ID of credit batch. */ - batch_denom: string; + batch_denom?: string; /** amount is the decimal number of credits that have been cancelled. */ - amount: string; + amount?: string; } export interface EventCancelAminoMsg { type: "/regen.ecocredit.v1alpha1.EventCancel"; @@ -296,8 +296,9 @@ export interface EventCancelSDKType { amount: string; } export declare const EventCreateClass: { - encode(message: EventCreateClass, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateClass; + typeUrl: string; + encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; fromJSON(object: any): EventCreateClass; toJSON(message: EventCreateClass): unknown; fromPartial(object: Partial): EventCreateClass; @@ -309,8 +310,9 @@ export declare const EventCreateClass: { toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; }; export declare const EventCreateBatch: { - encode(message: EventCreateBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateBatch; + typeUrl: string; + encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; fromJSON(object: any): EventCreateBatch; toJSON(message: EventCreateBatch): unknown; fromPartial(object: Partial): EventCreateBatch; @@ -322,8 +324,9 @@ export declare const EventCreateBatch: { toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; }; export declare const EventReceive: { - encode(message: EventReceive, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventReceive; + typeUrl: string; + encode(message: EventReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventReceive; fromJSON(object: any): EventReceive; toJSON(message: EventReceive): unknown; fromPartial(object: Partial): EventReceive; @@ -335,8 +338,9 @@ export declare const EventReceive: { toProtoMsg(message: EventReceive): EventReceiveProtoMsg; }; export declare const EventRetire: { - encode(message: EventRetire, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventRetire; + typeUrl: string; + encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; fromJSON(object: any): EventRetire; toJSON(message: EventRetire): unknown; fromPartial(object: Partial): EventRetire; @@ -348,8 +352,9 @@ export declare const EventRetire: { toProtoMsg(message: EventRetire): EventRetireProtoMsg; }; export declare const EventCancel: { - encode(message: EventCancel, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCancel; + typeUrl: string; + encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; fromJSON(object: any): EventCancel; toJSON(message: EventCancel): unknown; fromPartial(object: Partial): EventCancel; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts index 3662da69..ea89f1c3 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts @@ -1,5 +1,5 @@ import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** GenesisState defines ecocredit module's genesis state. */ export interface GenesisState { /** @@ -30,15 +30,15 @@ export interface GenesisStateAmino { */ params?: ParamsAmino; /** class_info is the list of credit class info. */ - class_info: ClassInfoAmino[]; + class_info?: ClassInfoAmino[]; /** batch_info is the list of credit batch info. */ - batch_info: BatchInfoAmino[]; + batch_info?: BatchInfoAmino[]; /** sequences is the list of credit type sequence. */ - sequences: CreditTypeSeqAmino[]; + sequences?: CreditTypeSeqAmino[]; /** balances is the list of credit batch tradable/retired units. */ - balances: BalanceAmino[]; + balances?: BalanceAmino[]; /** supplies is the list of credit batch tradable/retired supply. */ - supplies: SupplyAmino[]; + supplies?: SupplyAmino[]; } export interface GenesisStateAminoMsg { type: "/regen.ecocredit.v1alpha1.GenesisState"; @@ -77,13 +77,13 @@ export interface BalanceProtoMsg { */ export interface BalanceAmino { /** address is the account address of the account holding credits. */ - address: string; + address?: string; /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** tradable_balance is the tradable balance of the credit batch. */ - tradable_balance: string; + tradable_balance?: string; /** retired_balance is the retired balance of the credit batch. */ - retired_balance: string; + retired_balance?: string; } export interface BalanceAminoMsg { type: "/regen.ecocredit.v1alpha1.Balance"; @@ -115,11 +115,11 @@ export interface SupplyProtoMsg { /** Supply represents a tradable or retired supply of a credit batch. */ export interface SupplyAmino { /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** tradable_supply is the tradable supply of the credit batch. */ - tradable_supply: string; + tradable_supply?: string; /** retired_supply is the retired supply of the credit batch. */ - retired_supply: string; + retired_supply?: string; } export interface SupplyAminoMsg { type: "/regen.ecocredit.v1alpha1.Supply"; @@ -132,8 +132,9 @@ export interface SupplySDKType { retired_supply: string; } export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; fromPartial(object: Partial): GenesisState; @@ -145,8 +146,9 @@ export declare const GenesisState: { toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; export declare const Balance: { - encode(message: Balance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Balance; + typeUrl: string; + encode(message: Balance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Balance; fromJSON(object: any): Balance; toJSON(message: Balance): unknown; fromPartial(object: Partial): Balance; @@ -158,8 +160,9 @@ export declare const Balance: { toProtoMsg(message: Balance): BalanceProtoMsg; }; export declare const Supply: { - encode(message: Supply, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Supply; + typeUrl: string; + encode(message: Supply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Supply; fromJSON(object: any): Supply; toJSON(message: Supply): unknown; fromPartial(object: Partial): Supply; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts index ff1fa12e..e080545d 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryParamsRequest is the Query/Params request type. */ export interface QueryParamsRequest { } @@ -21,7 +21,7 @@ export interface QueryParamsRequestSDKType { /** QueryParamsResponse is the Query/Params response type. */ export interface QueryParamsResponse { /** params defines the parameters of the ecocredit module. */ - params: Params; + params?: Params; } export interface QueryParamsResponseProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; @@ -38,12 +38,12 @@ export interface QueryParamsResponseAminoMsg { } /** QueryParamsResponse is the Query/Params response type. */ export interface QueryParamsResponseSDKType { - params: ParamsSDKType; + params?: ParamsSDKType; } /** QueryClassesRequest is the Query/Classes request type. */ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryClassesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; @@ -60,14 +60,14 @@ export interface QueryClassesRequestAminoMsg { } /** QueryClassesRequest is the Query/Classes request type. */ export interface QueryClassesRequestSDKType { - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponse { /** classes are the fetched credit classes. */ classes: ClassInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryClassesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; @@ -76,7 +76,7 @@ export interface QueryClassesResponseProtoMsg { /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponseAmino { /** classes are the fetched credit classes. */ - classes: ClassInfoAmino[]; + classes?: ClassInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -87,7 +87,7 @@ export interface QueryClassesResponseAminoMsg { /** QueryClassesResponse is the Query/Classes response type. */ export interface QueryClassesResponseSDKType { classes: ClassInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryClassInfoRequest is the Query/ClassInfo request type. */ export interface QueryClassInfoRequest { @@ -101,7 +101,7 @@ export interface QueryClassInfoRequestProtoMsg { /** QueryClassInfoRequest is the Query/ClassInfo request type. */ export interface QueryClassInfoRequestAmino { /** class_id is the unique ID of credit class to query. */ - class_id: string; + class_id?: string; } export interface QueryClassInfoRequestAminoMsg { type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; @@ -114,7 +114,7 @@ export interface QueryClassInfoRequestSDKType { /** QueryClassInfoResponse is the Query/ClassInfo request type. */ export interface QueryClassInfoResponse { /** info is the ClassInfo for the credit class. */ - info: ClassInfo; + info?: ClassInfo; } export interface QueryClassInfoResponseProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; @@ -131,14 +131,14 @@ export interface QueryClassInfoResponseAminoMsg { } /** QueryClassInfoResponse is the Query/ClassInfo request type. */ export interface QueryClassInfoResponseSDKType { - info: ClassInfoSDKType; + info?: ClassInfoSDKType; } /** QueryBatchesRequest is the Query/Batches request type. */ export interface QueryBatchesRequest { /** class_id is the unique ID of the credit class to query. */ classId: string; /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; + pagination?: PageRequest; } export interface QueryBatchesRequestProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; @@ -147,7 +147,7 @@ export interface QueryBatchesRequestProtoMsg { /** QueryBatchesRequest is the Query/Batches request type. */ export interface QueryBatchesRequestAmino { /** class_id is the unique ID of the credit class to query. */ - class_id: string; + class_id?: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestAmino; } @@ -158,14 +158,14 @@ export interface QueryBatchesRequestAminoMsg { /** QueryBatchesRequest is the Query/Batches request type. */ export interface QueryBatchesRequestSDKType { class_id: string; - pagination: PageRequestSDKType; + pagination?: PageRequestSDKType; } /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponse { /** batches are the fetched credit batches within the class. */ batches: BatchInfo[]; /** pagination defines the pagination in the response. */ - pagination: PageResponse; + pagination?: PageResponse; } export interface QueryBatchesResponseProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; @@ -174,7 +174,7 @@ export interface QueryBatchesResponseProtoMsg { /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponseAmino { /** batches are the fetched credit batches within the class. */ - batches: BatchInfoAmino[]; + batches?: BatchInfoAmino[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseAmino; } @@ -185,7 +185,7 @@ export interface QueryBatchesResponseAminoMsg { /** QueryBatchesResponse is the Query/Batches response type. */ export interface QueryBatchesResponseSDKType { batches: BatchInfoSDKType[]; - pagination: PageResponseSDKType; + pagination?: PageResponseSDKType; } /** QueryBatchInfoRequest is the Query/BatchInfo request type. */ export interface QueryBatchInfoRequest { @@ -199,7 +199,7 @@ export interface QueryBatchInfoRequestProtoMsg { /** QueryBatchInfoRequest is the Query/BatchInfo request type. */ export interface QueryBatchInfoRequestAmino { /** batch_denom is the unique ID of credit batch to query. */ - batch_denom: string; + batch_denom?: string; } export interface QueryBatchInfoRequestAminoMsg { type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; @@ -212,7 +212,7 @@ export interface QueryBatchInfoRequestSDKType { /** QueryBatchInfoResponse is the Query/BatchInfo response type. */ export interface QueryBatchInfoResponse { /** info is the BatchInfo for the credit batch. */ - info: BatchInfo; + info?: BatchInfo; } export interface QueryBatchInfoResponseProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; @@ -229,7 +229,7 @@ export interface QueryBatchInfoResponseAminoMsg { } /** QueryBatchInfoResponse is the Query/BatchInfo response type. */ export interface QueryBatchInfoResponseSDKType { - info: BatchInfoSDKType; + info?: BatchInfoSDKType; } /** QueryBalanceRequest is the Query/Balance request type. */ export interface QueryBalanceRequest { @@ -245,9 +245,9 @@ export interface QueryBalanceRequestProtoMsg { /** QueryBalanceRequest is the Query/Balance request type. */ export interface QueryBalanceRequestAmino { /** account is the address of the account whose balance is being queried. */ - account: string; + account?: string; /** batch_denom is the unique ID of credit batch balance to query. */ - batch_denom: string; + batch_denom?: string; } export interface QueryBalanceRequestAminoMsg { type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; @@ -272,9 +272,9 @@ export interface QueryBalanceResponseProtoMsg { /** QueryBalanceResponse is the Query/Balance response type. */ export interface QueryBalanceResponseAmino { /** tradable_amount is the decimal number of tradable credits. */ - tradable_amount: string; + tradable_amount?: string; /** retired_amount is the decimal number of retired credits. */ - retired_amount: string; + retired_amount?: string; } export interface QueryBalanceResponseAminoMsg { type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; @@ -297,7 +297,7 @@ export interface QuerySupplyRequestProtoMsg { /** QuerySupplyRequest is the Query/Supply request type. */ export interface QuerySupplyRequestAmino { /** batch_denom is the unique ID of credit batch to query. */ - batch_denom: string; + batch_denom?: string; } export interface QuerySupplyRequestAminoMsg { type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; @@ -330,12 +330,12 @@ export interface QuerySupplyResponseAmino { * tradable_supply is the decimal number of tradable credits in the batch * supply. */ - tradable_supply: string; + tradable_supply?: string; /** * retired_supply is the decimal number of retired credits in the batch * supply. */ - retired_supply: string; + retired_supply?: string; } export interface QuerySupplyResponseAminoMsg { type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; @@ -375,7 +375,7 @@ export interface QueryCreditTypesResponseProtoMsg { /** QueryCreditTypesRequest is the Query/Credit_Types response type */ export interface QueryCreditTypesResponseAmino { /** list of credit types */ - credit_types: CreditTypeAmino[]; + credit_types?: CreditTypeAmino[]; } export interface QueryCreditTypesResponseAminoMsg { type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; @@ -386,8 +386,9 @@ export interface QueryCreditTypesResponseSDKType { credit_types: CreditTypeSDKType[]; } export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial(_: Partial): QueryParamsRequest; @@ -399,8 +400,9 @@ export declare const QueryParamsRequest: { toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; }; export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: Partial): QueryParamsResponse; @@ -412,8 +414,9 @@ export declare const QueryParamsResponse: { toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; }; export declare const QueryClassesRequest: { - encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest; + typeUrl: string; + encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; fromJSON(object: any): QueryClassesRequest; toJSON(message: QueryClassesRequest): unknown; fromPartial(object: Partial): QueryClassesRequest; @@ -425,8 +428,9 @@ export declare const QueryClassesRequest: { toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; }; export declare const QueryClassesResponse: { - encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse; + typeUrl: string; + encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; fromJSON(object: any): QueryClassesResponse; toJSON(message: QueryClassesResponse): unknown; fromPartial(object: Partial): QueryClassesResponse; @@ -438,8 +442,9 @@ export declare const QueryClassesResponse: { toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; }; export declare const QueryClassInfoRequest: { - encode(message: QueryClassInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassInfoRequest; + typeUrl: string; + encode(message: QueryClassInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest; fromJSON(object: any): QueryClassInfoRequest; toJSON(message: QueryClassInfoRequest): unknown; fromPartial(object: Partial): QueryClassInfoRequest; @@ -451,8 +456,9 @@ export declare const QueryClassInfoRequest: { toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg; }; export declare const QueryClassInfoResponse: { - encode(message: QueryClassInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassInfoResponse; + typeUrl: string; + encode(message: QueryClassInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse; fromJSON(object: any): QueryClassInfoResponse; toJSON(message: QueryClassInfoResponse): unknown; fromPartial(object: Partial): QueryClassInfoResponse; @@ -464,8 +470,9 @@ export declare const QueryClassInfoResponse: { toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg; }; export declare const QueryBatchesRequest: { - encode(message: QueryBatchesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesRequest; + typeUrl: string; + encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; fromJSON(object: any): QueryBatchesRequest; toJSON(message: QueryBatchesRequest): unknown; fromPartial(object: Partial): QueryBatchesRequest; @@ -477,8 +484,9 @@ export declare const QueryBatchesRequest: { toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; }; export declare const QueryBatchesResponse: { - encode(message: QueryBatchesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchesResponse; + typeUrl: string; + encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; fromJSON(object: any): QueryBatchesResponse; toJSON(message: QueryBatchesResponse): unknown; fromPartial(object: Partial): QueryBatchesResponse; @@ -490,8 +498,9 @@ export declare const QueryBatchesResponse: { toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; }; export declare const QueryBatchInfoRequest: { - encode(message: QueryBatchInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchInfoRequest; + typeUrl: string; + encode(message: QueryBatchInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest; fromJSON(object: any): QueryBatchInfoRequest; toJSON(message: QueryBatchInfoRequest): unknown; fromPartial(object: Partial): QueryBatchInfoRequest; @@ -503,8 +512,9 @@ export declare const QueryBatchInfoRequest: { toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg; }; export declare const QueryBatchInfoResponse: { - encode(message: QueryBatchInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBatchInfoResponse; + typeUrl: string; + encode(message: QueryBatchInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse; fromJSON(object: any): QueryBatchInfoResponse; toJSON(message: QueryBatchInfoResponse): unknown; fromPartial(object: Partial): QueryBatchInfoResponse; @@ -516,8 +526,9 @@ export declare const QueryBatchInfoResponse: { toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg; }; export declare const QueryBalanceRequest: { - encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; fromPartial(object: Partial): QueryBalanceRequest; @@ -529,8 +540,9 @@ export declare const QueryBalanceRequest: { toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; }; export declare const QueryBalanceResponse: { - encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; fromPartial(object: Partial): QueryBalanceResponse; @@ -542,8 +554,9 @@ export declare const QueryBalanceResponse: { toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; }; export declare const QuerySupplyRequest: { - encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest; + typeUrl: string; + encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): unknown; fromPartial(object: Partial): QuerySupplyRequest; @@ -555,8 +568,9 @@ export declare const QuerySupplyRequest: { toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; }; export declare const QuerySupplyResponse: { - encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse; + typeUrl: string; + encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): unknown; fromPartial(object: Partial): QuerySupplyResponse; @@ -568,8 +582,9 @@ export declare const QuerySupplyResponse: { toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; }; export declare const QueryCreditTypesRequest: { - encode(_: QueryCreditTypesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypesRequest; + typeUrl: string; + encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; fromJSON(_: any): QueryCreditTypesRequest; toJSON(_: QueryCreditTypesRequest): unknown; fromPartial(_: Partial): QueryCreditTypesRequest; @@ -581,8 +596,9 @@ export declare const QueryCreditTypesRequest: { toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; }; export declare const QueryCreditTypesResponse: { - encode(message: QueryCreditTypesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreditTypesResponse; + typeUrl: string; + encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; fromJSON(object: any): QueryCreditTypesResponse; toJSON(message: QueryCreditTypesResponse): unknown; fromPartial(object: Partial): QueryCreditTypesResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts index 12ff0c5a..14568f80 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts index deecd244..727a3753 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts @@ -1,5 +1,5 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import * as _m0 from "protobufjs/minimal"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgCreateClass is the Msg/CreateClass request type. */ export interface MsgCreateClass { /** admin is the address of the account that created the credit class. */ @@ -21,16 +21,16 @@ export interface MsgCreateClassProtoMsg { /** MsgCreateClass is the Msg/CreateClass request type. */ export interface MsgCreateClassAmino { /** admin is the address of the account that created the credit class. */ - admin: string; + admin?: string; /** issuers are the account addresses of the approved issuers. */ - issuers: string[]; + issuers?: string[]; /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; + metadata?: string; /** * credit_type_name describes the type of credit (e.g. "carbon", * "biodiversity"). */ - credit_type_name: string; + credit_type_name?: string; } export interface MsgCreateClassAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; @@ -55,7 +55,7 @@ export interface MsgCreateClassResponseProtoMsg { /** MsgCreateClassResponse is the Msg/CreateClass response type. */ export interface MsgCreateClassResponseAmino { /** class_id is the unique ID of the newly created credit class. */ - class_id: string; + class_id?: string; } export interface MsgCreateClassResponseAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; @@ -79,12 +79,12 @@ export interface MsgCreateBatch { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** * project_location is the location of the project backing the credits in this * batch. It is a string of the form @@ -102,23 +102,23 @@ export interface MsgCreateBatchProtoMsg { /** MsgCreateBatch is the Msg/CreateBatch request type. */ export interface MsgCreateBatchAmino { /** issuer is the address of the batch issuer. */ - issuer: string; + issuer?: string; /** class_id is the unique ID of the class. */ - class_id: string; + class_id?: string; /** issuance are the credits issued in the batch. */ - issuance: MsgCreateBatch_BatchIssuanceAmino[]; + issuance?: MsgCreateBatch_BatchIssuanceAmino[]; /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; + metadata?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** * project_location is the location of the project backing the credits in this * batch. It is a string of the form @@ -127,7 +127,7 @@ export interface MsgCreateBatchAmino { * alphanumeric characters. country-code is required, while sub-national-code * and postal-code can be added for increasing precision. */ - project_location: string; + project_location?: string; } export interface MsgCreateBatchAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; @@ -139,8 +139,8 @@ export interface MsgCreateBatchSDKType { class_id: string; issuance: MsgCreateBatch_BatchIssuanceSDKType[]; metadata: Uint8Array; - start_date: TimestampSDKType; - end_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; project_location: string; } /** @@ -181,18 +181,18 @@ export interface MsgCreateBatch_BatchIssuanceProtoMsg { */ export interface MsgCreateBatch_BatchIssuanceAmino { /** recipient is the account of the recipient. */ - recipient: string; + recipient?: string; /** * tradable_amount is the number of credits in this issuance that can be * traded by this recipient. Decimal values are acceptable. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the number of credits in this issuance that are * effectively retired by the issuer on receipt. Decimal values are * acceptable. */ - retired_amount: string; + retired_amount?: string; /** * retirement_location is the location of the beneficiary or buyer of the * retired credits. This must be provided if retired_amount is positive. It @@ -201,7 +201,7 @@ export interface MsgCreateBatch_BatchIssuanceAmino { * fields conforming to ISO 3166-2, and postal-code being up to 64 * alphanumeric characters. */ - retirement_location: string; + retirement_location?: string; } export interface MsgCreateBatch_BatchIssuanceAminoMsg { type: "/regen.ecocredit.v1alpha1.BatchIssuance"; @@ -229,7 +229,7 @@ export interface MsgCreateBatchResponseProtoMsg { /** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ export interface MsgCreateBatchResponseAmino { /** batch_denom is the unique denomination ID of the newly created batch. */ - batch_denom: string; + batch_denom?: string; } export interface MsgCreateBatchResponseAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; @@ -255,11 +255,11 @@ export interface MsgSendProtoMsg { /** MsgSend is the Msg/Send request type. */ export interface MsgSendAmino { /** sender is the address of the account sending credits. */ - sender: string; + sender?: string; /** sender is the address of the account receiving credits. */ - recipient: string; + recipient?: string; /** credits are the credits being sent. */ - credits: MsgSend_SendCreditsAmino[]; + credits?: MsgSend_SendCreditsAmino[]; } export interface MsgSendAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgSend"; @@ -312,19 +312,19 @@ export interface MsgSend_SendCreditsProtoMsg { */ export interface MsgSend_SendCreditsAmino { /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * tradable_amount is the number of credits in this transfer that can be * traded by the recipient. Decimal values are acceptable within the * precision returned by Query/Precision. */ - tradable_amount: string; + tradable_amount?: string; /** * retired_amount is the number of credits in this transfer that are * effectively retired by the issuer on receipt. Decimal values are * acceptable within the precision returned by Query/Precision. */ - retired_amount: string; + retired_amount?: string; /** * retirement_location is the location of the beneficiary or buyer of the * retired credits. This must be provided if retired_amount is positive. It @@ -333,7 +333,7 @@ export interface MsgSend_SendCreditsAmino { * fields conforming to ISO 3166-2, and postal-code being up to 64 * alphanumeric characters. */ - retirement_location: string; + retirement_location?: string; } export interface MsgSend_SendCreditsAminoMsg { type: "/regen.ecocredit.v1alpha1.SendCredits"; @@ -389,9 +389,9 @@ export interface MsgRetireProtoMsg { /** MsgRetire is the Msg/Retire request type. */ export interface MsgRetireAmino { /** holder is the credit holder address. */ - holder: string; + holder?: string; /** credits are the credits being retired. */ - credits: MsgRetire_RetireCreditsAmino[]; + credits?: MsgRetire_RetireCreditsAmino[]; /** * location is the location of the beneficiary or buyer of the retired * credits. It is a string of the form @@ -399,7 +399,7 @@ export interface MsgRetireAmino { * fields conforming to ISO 3166-2, and postal-code being up to 64 * alphanumeric characters. */ - location: string; + location?: string; } export interface MsgRetireAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgRetire"; @@ -429,13 +429,13 @@ export interface MsgRetire_RetireCreditsProtoMsg { /** RetireCredits specifies a batch and the number of credits being retired. */ export interface MsgRetire_RetireCreditsAmino { /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * amount is the number of credits being retired. * Decimal values are acceptable within the precision returned by * Query/Precision. */ - amount: string; + amount?: string; } export interface MsgRetire_RetireCreditsAminoMsg { type: "/regen.ecocredit.v1alpha1.RetireCredits"; @@ -477,9 +477,9 @@ export interface MsgCancelProtoMsg { /** MsgCancel is the Msg/Cancel request type. */ export interface MsgCancelAmino { /** holder is the credit holder address. */ - holder: string; + holder?: string; /** credits are the credits being cancelled. */ - credits: MsgCancel_CancelCreditsAmino[]; + credits?: MsgCancel_CancelCreditsAmino[]; } export interface MsgCancelAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgCancel"; @@ -508,13 +508,13 @@ export interface MsgCancel_CancelCreditsProtoMsg { /** CancelCredits specifies a batch and the number of credits being cancelled. */ export interface MsgCancel_CancelCreditsAmino { /** batch_denom is the unique ID of the credit batch. */ - batch_denom: string; + batch_denom?: string; /** * amount is the number of credits being cancelled. * Decimal values are acceptable within the precision returned by * Query/Precision. */ - amount: string; + amount?: string; } export interface MsgCancel_CancelCreditsAminoMsg { type: "/regen.ecocredit.v1alpha1.CancelCredits"; @@ -558,11 +558,11 @@ export interface MsgUpdateClassAdminProtoMsg { /** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ export interface MsgUpdateClassAdminAmino { /** admin is the address of the account that is the admin of the credit class. */ - admin: string; + admin?: string; /** class_id is the unique ID of the credit class. */ - class_id: string; + class_id?: string; /** new_admin is the address of the new admin of the credit class. */ - new_admin: string; + new_admin?: string; } export interface MsgUpdateClassAdminAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; @@ -607,11 +607,11 @@ export interface MsgUpdateClassIssuersProtoMsg { /** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ export interface MsgUpdateClassIssuersAmino { /** admin is the address of the account that is the admin of the credit class. */ - admin: string; + admin?: string; /** class_id is the unique ID of the credit class. */ - class_id: string; + class_id?: string; /** issuers are the updated account addresses of the approved issuers. */ - issuers: string[]; + issuers?: string[]; } export interface MsgUpdateClassIssuersAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; @@ -659,14 +659,14 @@ export interface MsgUpdateClassMetadataProtoMsg { /** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ export interface MsgUpdateClassMetadataAmino { /** admin is the address of the account that is the admin of the credit class. */ - admin: string; + admin?: string; /** class_id is the unique ID of the credit class. */ - class_id: string; + class_id?: string; /** * metadata is the updated arbitrary metadata to be attached to the credit * class. */ - metadata: Uint8Array; + metadata?: string; } export interface MsgUpdateClassMetadataAminoMsg { type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; @@ -696,8 +696,9 @@ export interface MsgUpdateClassMetadataResponseAminoMsg { export interface MsgUpdateClassMetadataResponseSDKType { } export declare const MsgCreateClass: { - encode(message: MsgCreateClass, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClass; + typeUrl: string; + encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; fromJSON(object: any): MsgCreateClass; toJSON(message: MsgCreateClass): unknown; fromPartial(object: Partial): MsgCreateClass; @@ -709,8 +710,9 @@ export declare const MsgCreateClass: { toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; }; export declare const MsgCreateClassResponse: { - encode(message: MsgCreateClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClassResponse; + typeUrl: string; + encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; fromJSON(object: any): MsgCreateClassResponse; toJSON(message: MsgCreateClassResponse): unknown; fromPartial(object: Partial): MsgCreateClassResponse; @@ -722,8 +724,9 @@ export declare const MsgCreateClassResponse: { toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; }; export declare const MsgCreateBatch: { - encode(message: MsgCreateBatch, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateBatch; + typeUrl: string; + encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; fromJSON(object: any): MsgCreateBatch; toJSON(message: MsgCreateBatch): unknown; fromPartial(object: Partial): MsgCreateBatch; @@ -735,8 +738,9 @@ export declare const MsgCreateBatch: { toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; }; export declare const MsgCreateBatch_BatchIssuance: { - encode(message: MsgCreateBatch_BatchIssuance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance; + typeUrl: string; + encode(message: MsgCreateBatch_BatchIssuance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance; fromJSON(object: any): MsgCreateBatch_BatchIssuance; toJSON(message: MsgCreateBatch_BatchIssuance): unknown; fromPartial(object: Partial): MsgCreateBatch_BatchIssuance; @@ -748,8 +752,9 @@ export declare const MsgCreateBatch_BatchIssuance: { toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg; }; export declare const MsgCreateBatchResponse: { - encode(message: MsgCreateBatchResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateBatchResponse; + typeUrl: string; + encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; fromJSON(object: any): MsgCreateBatchResponse; toJSON(message: MsgCreateBatchResponse): unknown; fromPartial(object: Partial): MsgCreateBatchResponse; @@ -761,8 +766,9 @@ export declare const MsgCreateBatchResponse: { toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; }; export declare const MsgSend: { - encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; fromJSON(object: any): MsgSend; toJSON(message: MsgSend): unknown; fromPartial(object: Partial): MsgSend; @@ -774,8 +780,9 @@ export declare const MsgSend: { toProtoMsg(message: MsgSend): MsgSendProtoMsg; }; export declare const MsgSend_SendCredits: { - encode(message: MsgSend_SendCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend_SendCredits; + typeUrl: string; + encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; fromJSON(object: any): MsgSend_SendCredits; toJSON(message: MsgSend_SendCredits): unknown; fromPartial(object: Partial): MsgSend_SendCredits; @@ -787,8 +794,9 @@ export declare const MsgSend_SendCredits: { toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; }; export declare const MsgSendResponse: { - encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; fromJSON(_: any): MsgSendResponse; toJSON(_: MsgSendResponse): unknown; fromPartial(_: Partial): MsgSendResponse; @@ -800,8 +808,9 @@ export declare const MsgSendResponse: { toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; }; export declare const MsgRetire: { - encode(message: MsgRetire, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRetire; + typeUrl: string; + encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; fromJSON(object: any): MsgRetire; toJSON(message: MsgRetire): unknown; fromPartial(object: Partial): MsgRetire; @@ -813,8 +822,9 @@ export declare const MsgRetire: { toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; }; export declare const MsgRetire_RetireCredits: { - encode(message: MsgRetire_RetireCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRetire_RetireCredits; + typeUrl: string; + encode(message: MsgRetire_RetireCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits; fromJSON(object: any): MsgRetire_RetireCredits; toJSON(message: MsgRetire_RetireCredits): unknown; fromPartial(object: Partial): MsgRetire_RetireCredits; @@ -826,8 +836,9 @@ export declare const MsgRetire_RetireCredits: { toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg; }; export declare const MsgRetireResponse: { - encode(_: MsgRetireResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRetireResponse; + typeUrl: string; + encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; fromJSON(_: any): MsgRetireResponse; toJSON(_: MsgRetireResponse): unknown; fromPartial(_: Partial): MsgRetireResponse; @@ -839,8 +850,9 @@ export declare const MsgRetireResponse: { toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; }; export declare const MsgCancel: { - encode(message: MsgCancel, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancel; + typeUrl: string; + encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; fromJSON(object: any): MsgCancel; toJSON(message: MsgCancel): unknown; fromPartial(object: Partial): MsgCancel; @@ -852,8 +864,9 @@ export declare const MsgCancel: { toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; }; export declare const MsgCancel_CancelCredits: { - encode(message: MsgCancel_CancelCredits, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancel_CancelCredits; + typeUrl: string; + encode(message: MsgCancel_CancelCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits; fromJSON(object: any): MsgCancel_CancelCredits; toJSON(message: MsgCancel_CancelCredits): unknown; fromPartial(object: Partial): MsgCancel_CancelCredits; @@ -865,8 +878,9 @@ export declare const MsgCancel_CancelCredits: { toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg; }; export declare const MsgCancelResponse: { - encode(_: MsgCancelResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelResponse; + typeUrl: string; + encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; fromJSON(_: any): MsgCancelResponse; toJSON(_: MsgCancelResponse): unknown; fromPartial(_: Partial): MsgCancelResponse; @@ -878,8 +892,9 @@ export declare const MsgCancelResponse: { toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; }; export declare const MsgUpdateClassAdmin: { - encode(message: MsgUpdateClassAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassAdmin; + typeUrl: string; + encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; fromJSON(object: any): MsgUpdateClassAdmin; toJSON(message: MsgUpdateClassAdmin): unknown; fromPartial(object: Partial): MsgUpdateClassAdmin; @@ -891,8 +906,9 @@ export declare const MsgUpdateClassAdmin: { toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; }; export declare const MsgUpdateClassAdminResponse: { - encode(_: MsgUpdateClassAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; + typeUrl: string; + encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; fromJSON(_: any): MsgUpdateClassAdminResponse; toJSON(_: MsgUpdateClassAdminResponse): unknown; fromPartial(_: Partial): MsgUpdateClassAdminResponse; @@ -904,8 +920,9 @@ export declare const MsgUpdateClassAdminResponse: { toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; }; export declare const MsgUpdateClassIssuers: { - encode(message: MsgUpdateClassIssuers, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassIssuers; + typeUrl: string; + encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; fromJSON(object: any): MsgUpdateClassIssuers; toJSON(message: MsgUpdateClassIssuers): unknown; fromPartial(object: Partial): MsgUpdateClassIssuers; @@ -917,8 +934,9 @@ export declare const MsgUpdateClassIssuers: { toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; }; export declare const MsgUpdateClassIssuersResponse: { - encode(_: MsgUpdateClassIssuersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; + typeUrl: string; + encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; fromJSON(_: any): MsgUpdateClassIssuersResponse; toJSON(_: MsgUpdateClassIssuersResponse): unknown; fromPartial(_: Partial): MsgUpdateClassIssuersResponse; @@ -930,8 +948,9 @@ export declare const MsgUpdateClassIssuersResponse: { toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; }; export declare const MsgUpdateClassMetadata: { - encode(message: MsgUpdateClassMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassMetadata; + typeUrl: string; + encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; fromJSON(object: any): MsgUpdateClassMetadata; toJSON(message: MsgUpdateClassMetadata): unknown; fromPartial(object: Partial): MsgUpdateClassMetadata; @@ -943,8 +962,9 @@ export declare const MsgUpdateClassMetadata: { toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; }; export declare const MsgUpdateClassMetadataResponse: { - encode(_: MsgUpdateClassMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; + typeUrl: string; + encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; fromJSON(_: any): MsgUpdateClassMetadataResponse; toJSON(_: MsgUpdateClassMetadataResponse): unknown; fromPartial(_: Partial): MsgUpdateClassMetadataResponse; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts index 19782b50..6773fac1 100644 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts +++ b/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts @@ -1,7 +1,6 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** ClassInfo represents the high-level on-chain information for a credit class. */ export interface ClassInfo { /** class_id is the unique ID of credit class. */ @@ -16,9 +15,9 @@ export interface ClassInfo { * credit_type describes the type of credit (e.g. carbon, biodiversity), as * well as unit and precision. */ - creditType: CreditType; + creditType?: CreditType; /** The number of batches issued in this credit class. */ - numBatches: Long; + numBatches: bigint; } export interface ClassInfoProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; @@ -27,20 +26,20 @@ export interface ClassInfoProtoMsg { /** ClassInfo represents the high-level on-chain information for a credit class. */ export interface ClassInfoAmino { /** class_id is the unique ID of credit class. */ - class_id: string; + class_id?: string; /** admin is the admin of the credit class. */ - admin: string; + admin?: string; /** issuers are the approved issuers of the credit class. */ - issuers: string[]; + issuers?: string[]; /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; + metadata?: string; /** * credit_type describes the type of credit (e.g. carbon, biodiversity), as * well as unit and precision. */ credit_type?: CreditTypeAmino; /** The number of batches issued in this credit class. */ - num_batches: string; + num_batches?: string; } export interface ClassInfoAminoMsg { type: "/regen.ecocredit.v1alpha1.ClassInfo"; @@ -52,8 +51,8 @@ export interface ClassInfoSDKType { admin: string; issuers: string[]; metadata: Uint8Array; - credit_type: CreditTypeSDKType; - num_batches: Long; + credit_type?: CreditTypeSDKType; + num_batches: bigint; } /** BatchInfo represents the high-level on-chain information for a credit batch. */ export interface BatchInfo { @@ -84,12 +83,12 @@ export interface BatchInfo { * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - startDate: Timestamp; + startDate?: Timestamp; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - endDate: Timestamp; + endDate?: Timestamp; /** * project_location is the location of the project backing the credits in this * batch. Full documentation can be found in MsgCreateBatch.project_location. @@ -103,11 +102,11 @@ export interface BatchInfoProtoMsg { /** BatchInfo represents the high-level on-chain information for a credit batch. */ export interface BatchInfoAmino { /** class_id is the unique ID of credit class. */ - class_id: string; + class_id?: string; /** batch_denom is the unique ID of credit batch. */ - batch_denom: string; + batch_denom?: string; /** issuer is the issuer of the credit batch. */ - issuer: string; + issuer?: string; /** * total_amount is the total number of active credits in the credit batch. * Some of the issued credits may be cancelled and will be removed from @@ -115,31 +114,31 @@ export interface BatchInfoAmino { * amount_cancelled will always sum to the original amount of credits that * were issued. */ - total_amount: string; + total_amount?: string; /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; + metadata?: string; /** * amount_cancelled is the number of credits in the batch that have been * cancelled, effectively undoing there issuance. The sum of total_amount and * amount_cancelled will always sum to the original amount of credits that * were issued. */ - amount_cancelled: string; + amount_cancelled?: string; /** * start_date is the beginning of the period during which this credit batch * was quantified and verified. */ - start_date?: TimestampAmino; + start_date?: string; /** * end_date is the end of the period during which this credit batch was * quantified and verified. */ - end_date?: TimestampAmino; + end_date?: string; /** * project_location is the location of the project backing the credits in this * batch. Full documentation can be found in MsgCreateBatch.project_location. */ - project_location: string; + project_location?: string; } export interface BatchInfoAminoMsg { type: "/regen.ecocredit.v1alpha1.BatchInfo"; @@ -153,8 +152,8 @@ export interface BatchInfoSDKType { total_amount: string; metadata: Uint8Array; amount_cancelled: string; - start_date: TimestampSDKType; - end_date: TimestampSDKType; + start_date?: TimestampSDKType; + end_date?: TimestampSDKType; project_location: string; } /** @@ -189,21 +188,21 @@ export interface ParamsProtoMsg { */ export interface ParamsAmino { /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - credit_class_fee: CoinAmino[]; + credit_class_fee?: CoinAmino[]; /** * allowed_class_creators is an allowlist defining the addresses with * the required permissions to create credit classes */ - allowed_class_creators: string[]; + allowed_class_creators?: string[]; /** * allowlist_enabled is a param that enables/disables the allowlist for credit * creation */ - allowlist_enabled: boolean; + allowlist_enabled?: boolean; /** credit_types is a list of definitions for credit types */ - credit_types: CreditTypeAmino[]; + credit_types?: CreditTypeAmino[]; /** basket_creation_fee is the fee to create a new basket denom. */ - basket_creation_fee: CoinAmino[]; + basket_creation_fee?: CoinAmino[]; } export interface ParamsAminoMsg { type: "/regen.ecocredit.v1alpha1.Params"; @@ -247,16 +246,16 @@ export interface CreditTypeProtoMsg { */ export interface CreditTypeAmino { /** the type of credit (e.g. carbon, biodiversity, etc) */ - name: string; + name?: string; /** * abbreviation is a 1-3 character uppercase abbreviation of the CreditType * name, used in batch denominations within the CreditType. It must be unique. */ - abbreviation: string; + abbreviation?: string; /** the measurement unit (e.g. kg, ton, etc) */ - unit: string; + unit?: string; /** the decimal precision */ - precision: number; + precision?: number; } export interface CreditTypeAminoMsg { type: "/regen.ecocredit.v1alpha1.CreditType"; @@ -280,7 +279,7 @@ export interface CreditTypeSeq { /** The credit type abbreviation */ abbreviation: string; /** The sequence number of classes of the credit type */ - seqNumber: Long; + seqNumber: bigint; } export interface CreditTypeSeqProtoMsg { typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; @@ -292,9 +291,9 @@ export interface CreditTypeSeqProtoMsg { */ export interface CreditTypeSeqAmino { /** The credit type abbreviation */ - abbreviation: string; + abbreviation?: string; /** The sequence number of classes of the credit type */ - seq_number: string; + seq_number?: string; } export interface CreditTypeSeqAminoMsg { type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; @@ -306,11 +305,12 @@ export interface CreditTypeSeqAminoMsg { */ export interface CreditTypeSeqSDKType { abbreviation: string; - seq_number: Long; + seq_number: bigint; } export declare const ClassInfo: { - encode(message: ClassInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ClassInfo; + typeUrl: string; + encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; fromJSON(object: any): ClassInfo; toJSON(message: ClassInfo): unknown; fromPartial(object: Partial): ClassInfo; @@ -322,8 +322,9 @@ export declare const ClassInfo: { toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; }; export declare const BatchInfo: { - encode(message: BatchInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BatchInfo; + typeUrl: string; + encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; fromJSON(object: any): BatchInfo; toJSON(message: BatchInfo): unknown; fromPartial(object: Partial): BatchInfo; @@ -335,8 +336,9 @@ export declare const BatchInfo: { toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; }; export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; @@ -348,8 +350,9 @@ export declare const Params: { toProtoMsg(message: Params): ParamsProtoMsg; }; export declare const CreditType: { - encode(message: CreditType, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CreditType; + typeUrl: string; + encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditType; fromJSON(object: any): CreditType; toJSON(message: CreditType): unknown; fromPartial(object: Partial): CreditType; @@ -361,8 +364,9 @@ export declare const CreditType: { toProtoMsg(message: CreditType): CreditTypeProtoMsg; }; export declare const CreditTypeSeq: { - encode(message: CreditTypeSeq, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CreditTypeSeq; + typeUrl: string; + encode(message: CreditTypeSeq, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq; fromJSON(object: any): CreditTypeSeq; toJSON(message: CreditTypeSeq): unknown; fromPartial(object: Partial): CreditTypeSeq; diff --git a/packages/api/types/codegen/regen/intertx/v1/query.d.ts b/packages/api/types/codegen/regen/intertx/v1/query.d.ts index 7f225128..1c564a36 100644 --- a/packages/api/types/codegen/regen/intertx/v1/query.d.ts +++ b/packages/api/types/codegen/regen/intertx/v1/query.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** * QueryInterchainAccountRequest is the request type for the * Query/InterchainAccountAddress RPC @@ -19,9 +19,9 @@ export interface QueryInterchainAccountRequestProtoMsg { */ export interface QueryInterchainAccountRequestAmino { /** owner is the address of the account that owns the ICA. */ - owner: string; + owner?: string; /** connection_id is the connection the ICA claimed. */ - connection_id: string; + connection_id?: string; } export interface QueryInterchainAccountRequestAminoMsg { type: "/regen.intertx.v1.QueryInterchainAccountRequest"; @@ -53,7 +53,7 @@ export interface QueryInterchainAccountResponseProtoMsg { */ export interface QueryInterchainAccountResponseAmino { /** interchain_account_address is the address of the ICA. */ - interchain_account_address: string; + interchain_account_address?: string; } export interface QueryInterchainAccountResponseAminoMsg { type: "/regen.intertx.v1.QueryInterchainAccountResponse"; @@ -67,8 +67,9 @@ export interface QueryInterchainAccountResponseSDKType { interchain_account_address: string; } export declare const QueryInterchainAccountRequest: { - encode(message: QueryInterchainAccountRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInterchainAccountRequest; + typeUrl: string; + encode(message: QueryInterchainAccountRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest; fromJSON(object: any): QueryInterchainAccountRequest; toJSON(message: QueryInterchainAccountRequest): unknown; fromPartial(object: Partial): QueryInterchainAccountRequest; @@ -80,8 +81,9 @@ export declare const QueryInterchainAccountRequest: { toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg; }; export declare const QueryInterchainAccountResponse: { - encode(message: QueryInterchainAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInterchainAccountResponse; + typeUrl: string; + encode(message: QueryInterchainAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse; fromJSON(object: any): QueryInterchainAccountResponse; toJSON(message: QueryInterchainAccountResponse): unknown; fromPartial(object: Partial): QueryInterchainAccountResponse; diff --git a/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts index 86c70ae1..54d4635a 100644 --- a/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts +++ b/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts @@ -1,4 +1,4 @@ -import { LCDClient } from "@osmonauts/lcd"; +import { LCDClient } from "@cosmology/lcd"; import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; export declare class LCDQueryClient { req: LCDClient; diff --git a/packages/api/types/codegen/regen/intertx/v1/tx.d.ts b/packages/api/types/codegen/regen/intertx/v1/tx.d.ts index 60f9132d..7bccc465 100644 --- a/packages/api/types/codegen/regen/intertx/v1/tx.d.ts +++ b/packages/api/types/codegen/regen/intertx/v1/tx.d.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; /** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ export interface MsgRegisterAccount { /** owner is the address of the interchain account owner. */ @@ -20,15 +20,15 @@ export interface MsgRegisterAccountProtoMsg { /** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ export interface MsgRegisterAccountAmino { /** owner is the address of the interchain account owner. */ - owner: string; + owner?: string; /** connection_id is the connection id string (i.e. channel-5). */ - connection_id: string; + connection_id?: string; /** * version is the application version string. For example, this could be an * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested * application version. */ - version: string; + version?: string; } export interface MsgRegisterAccountAminoMsg { type: "/regen.intertx.v1.MsgRegisterAccount"; @@ -64,7 +64,7 @@ export interface MsgSubmitTx { /** connection_id is the id of the connection. */ connectionId: string; /** msg is the bytes of the transaction msg to send. */ - msg: Any; + msg?: Any; } export interface MsgSubmitTxProtoMsg { typeUrl: "/regen.intertx.v1.MsgSubmitTx"; @@ -73,9 +73,9 @@ export interface MsgSubmitTxProtoMsg { /** MsgSubmitTx defines the payload for Msg/SubmitTx */ export interface MsgSubmitTxAmino { /** owner is the owner address of the interchain account. */ - owner: string; + owner?: string; /** connection_id is the id of the connection. */ - connection_id: string; + connection_id?: string; /** msg is the bytes of the transaction msg to send. */ msg?: AnyAmino; } @@ -87,7 +87,7 @@ export interface MsgSubmitTxAminoMsg { export interface MsgSubmitTxSDKType { owner: string; connection_id: string; - msg: AnySDKType; + msg?: AnySDKType; } /** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ export interface MsgSubmitTxResponse { @@ -107,8 +107,9 @@ export interface MsgSubmitTxResponseAminoMsg { export interface MsgSubmitTxResponseSDKType { } export declare const MsgRegisterAccount: { - encode(message: MsgRegisterAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterAccount; + typeUrl: string; + encode(message: MsgRegisterAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount; fromJSON(object: any): MsgRegisterAccount; toJSON(message: MsgRegisterAccount): unknown; fromPartial(object: Partial): MsgRegisterAccount; @@ -120,8 +121,9 @@ export declare const MsgRegisterAccount: { toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg; }; export declare const MsgRegisterAccountResponse: { - encode(_: MsgRegisterAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterAccountResponse; + typeUrl: string; + encode(_: MsgRegisterAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse; fromJSON(_: any): MsgRegisterAccountResponse; toJSON(_: MsgRegisterAccountResponse): unknown; fromPartial(_: Partial): MsgRegisterAccountResponse; @@ -133,8 +135,9 @@ export declare const MsgRegisterAccountResponse: { toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg; }; export declare const MsgSubmitTx: { - encode(message: MsgSubmitTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitTx; + typeUrl: string; + encode(message: MsgSubmitTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx; fromJSON(object: any): MsgSubmitTx; toJSON(message: MsgSubmitTx): unknown; fromPartial(object: Partial): MsgSubmitTx; @@ -146,8 +149,9 @@ export declare const MsgSubmitTx: { toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg; }; export declare const MsgSubmitTxResponse: { - encode(_: MsgSubmitTxResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitTxResponse; + typeUrl: string; + encode(_: MsgSubmitTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse; fromJSON(_: any): MsgSubmitTxResponse; toJSON(_: MsgSubmitTxResponse): unknown; fromPartial(_: Partial): MsgSubmitTxResponse; diff --git a/packages/api/types/codegen/tendermint/abci/types.d.ts b/packages/api/types/codegen/tendermint/abci/types.d.ts index f41e9f54..23b6cdaf 100644 --- a/packages/api/types/codegen/tendermint/abci/types.d.ts +++ b/packages/api/types/codegen/tendermint/abci/types.d.ts @@ -1,10 +1,9 @@ -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export declare enum CheckTxType { NEW = 0, RECHECK = 1, @@ -142,7 +141,7 @@ export interface RequestEchoProtoMsg { value: Uint8Array; } export interface RequestEchoAmino { - message: string; + message?: string; } export interface RequestEchoAminoMsg { type: "/tendermint.abci.RequestEcho"; @@ -167,8 +166,8 @@ export interface RequestFlushSDKType { } export interface RequestInfo { version: string; - blockVersion: Long; - p2pVersion: Long; + blockVersion: bigint; + p2pVersion: bigint; abciVersion: string; } export interface RequestInfoProtoMsg { @@ -176,10 +175,10 @@ export interface RequestInfoProtoMsg { value: Uint8Array; } export interface RequestInfoAmino { - version: string; - block_version: string; - p2p_version: string; - abci_version: string; + version?: string; + block_version?: string; + p2p_version?: string; + abci_version?: string; } export interface RequestInfoAminoMsg { type: "/tendermint.abci.RequestInfo"; @@ -187,29 +186,29 @@ export interface RequestInfoAminoMsg { } export interface RequestInfoSDKType { version: string; - block_version: Long; - p2p_version: Long; + block_version: bigint; + p2p_version: bigint; abci_version: string; } export interface RequestInitChain { time: Timestamp; chainId: string; - consensusParams: ConsensusParams; + consensusParams?: ConsensusParams; validators: ValidatorUpdate[]; appStateBytes: Uint8Array; - initialHeight: Long; + initialHeight: bigint; } export interface RequestInitChainProtoMsg { typeUrl: "/tendermint.abci.RequestInitChain"; value: Uint8Array; } export interface RequestInitChainAmino { - time?: TimestampAmino; - chain_id: string; + time?: string; + chain_id?: string; consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_state_bytes: Uint8Array; - initial_height: string; + validators?: ValidatorUpdateAmino[]; + app_state_bytes?: string; + initial_height?: string; } export interface RequestInitChainAminoMsg { type: "/tendermint.abci.RequestInitChain"; @@ -218,15 +217,15 @@ export interface RequestInitChainAminoMsg { export interface RequestInitChainSDKType { time: TimestampSDKType; chain_id: string; - consensus_params: ConsensusParamsSDKType; + consensus_params?: ConsensusParamsSDKType; validators: ValidatorUpdateSDKType[]; app_state_bytes: Uint8Array; - initial_height: Long; + initial_height: bigint; } export interface RequestQuery { data: Uint8Array; path: string; - height: Long; + height: bigint; prove: boolean; } export interface RequestQueryProtoMsg { @@ -234,10 +233,10 @@ export interface RequestQueryProtoMsg { value: Uint8Array; } export interface RequestQueryAmino { - data: Uint8Array; - path: string; - height: string; - prove: boolean; + data?: string; + path?: string; + height?: string; + prove?: boolean; } export interface RequestQueryAminoMsg { type: "/tendermint.abci.RequestQuery"; @@ -246,7 +245,7 @@ export interface RequestQueryAminoMsg { export interface RequestQuerySDKType { data: Uint8Array; path: string; - height: Long; + height: bigint; prove: boolean; } export interface RequestBeginBlock { @@ -260,10 +259,10 @@ export interface RequestBeginBlockProtoMsg { value: Uint8Array; } export interface RequestBeginBlockAmino { - hash: Uint8Array; + hash?: string; header?: HeaderAmino; last_commit_info?: CommitInfoAmino; - byzantine_validators: MisbehaviorAmino[]; + byzantine_validators?: MisbehaviorAmino[]; } export interface RequestBeginBlockAminoMsg { type: "/tendermint.abci.RequestBeginBlock"; @@ -284,8 +283,8 @@ export interface RequestCheckTxProtoMsg { value: Uint8Array; } export interface RequestCheckTxAmino { - tx: Uint8Array; - type: CheckTxType; + tx?: string; + type?: CheckTxType; } export interface RequestCheckTxAminoMsg { type: "/tendermint.abci.RequestCheckTx"; @@ -303,7 +302,7 @@ export interface RequestDeliverTxProtoMsg { value: Uint8Array; } export interface RequestDeliverTxAmino { - tx: Uint8Array; + tx?: string; } export interface RequestDeliverTxAminoMsg { type: "/tendermint.abci.RequestDeliverTx"; @@ -313,21 +312,21 @@ export interface RequestDeliverTxSDKType { tx: Uint8Array; } export interface RequestEndBlock { - height: Long; + height: bigint; } export interface RequestEndBlockProtoMsg { typeUrl: "/tendermint.abci.RequestEndBlock"; value: Uint8Array; } export interface RequestEndBlockAmino { - height: string; + height?: string; } export interface RequestEndBlockAminoMsg { type: "/tendermint.abci.RequestEndBlock"; value: RequestEndBlockAmino; } export interface RequestEndBlockSDKType { - height: Long; + height: bigint; } export interface RequestCommit { } @@ -363,7 +362,7 @@ export interface RequestListSnapshotsSDKType { /** offers a snapshot to the application */ export interface RequestOfferSnapshot { /** snapshot offered by peers */ - snapshot: Snapshot; + snapshot?: Snapshot; /** light client-verified app hash for snapshot height */ appHash: Uint8Array; } @@ -376,7 +375,7 @@ export interface RequestOfferSnapshotAmino { /** snapshot offered by peers */ snapshot?: SnapshotAmino; /** light client-verified app hash for snapshot height */ - app_hash: Uint8Array; + app_hash?: string; } export interface RequestOfferSnapshotAminoMsg { type: "/tendermint.abci.RequestOfferSnapshot"; @@ -384,12 +383,12 @@ export interface RequestOfferSnapshotAminoMsg { } /** offers a snapshot to the application */ export interface RequestOfferSnapshotSDKType { - snapshot: SnapshotSDKType; + snapshot?: SnapshotSDKType; app_hash: Uint8Array; } /** loads a snapshot chunk */ export interface RequestLoadSnapshotChunk { - height: Long; + height: bigint; format: number; chunk: number; } @@ -399,9 +398,9 @@ export interface RequestLoadSnapshotChunkProtoMsg { } /** loads a snapshot chunk */ export interface RequestLoadSnapshotChunkAmino { - height: string; - format: number; - chunk: number; + height?: string; + format?: number; + chunk?: number; } export interface RequestLoadSnapshotChunkAminoMsg { type: "/tendermint.abci.RequestLoadSnapshotChunk"; @@ -409,7 +408,7 @@ export interface RequestLoadSnapshotChunkAminoMsg { } /** loads a snapshot chunk */ export interface RequestLoadSnapshotChunkSDKType { - height: Long; + height: bigint; format: number; chunk: number; } @@ -425,9 +424,9 @@ export interface RequestApplySnapshotChunkProtoMsg { } /** Applies a snapshot chunk */ export interface RequestApplySnapshotChunkAmino { - index: number; - chunk: Uint8Array; - sender: string; + index?: number; + chunk?: string; + sender?: string; } export interface RequestApplySnapshotChunkAminoMsg { type: "/tendermint.abci.RequestApplySnapshotChunk"; @@ -441,7 +440,7 @@ export interface RequestApplySnapshotChunkSDKType { } export interface RequestPrepareProposal { /** the modified transactions cannot exceed this size. */ - maxTxBytes: Long; + maxTxBytes: bigint; /** * txs is an array of transactions that will be included in a block, * sent to the app for possible modifications. @@ -449,7 +448,7 @@ export interface RequestPrepareProposal { txs: Uint8Array[]; localLastCommit: ExtendedCommitInfo; misbehavior: Misbehavior[]; - height: Long; + height: bigint; time: Timestamp; nextValidatorsHash: Uint8Array; /** address of the public key of the validator proposing the block. */ @@ -461,30 +460,30 @@ export interface RequestPrepareProposalProtoMsg { } export interface RequestPrepareProposalAmino { /** the modified transactions cannot exceed this size. */ - max_tx_bytes: string; + max_tx_bytes?: string; /** * txs is an array of transactions that will be included in a block, * sent to the app for possible modifications. */ - txs: Uint8Array[]; + txs?: string[]; local_last_commit?: ExtendedCommitInfoAmino; - misbehavior: MisbehaviorAmino[]; - height: string; - time?: TimestampAmino; - next_validators_hash: Uint8Array; + misbehavior?: MisbehaviorAmino[]; + height?: string; + time?: string; + next_validators_hash?: string; /** address of the public key of the validator proposing the block. */ - proposer_address: Uint8Array; + proposer_address?: string; } export interface RequestPrepareProposalAminoMsg { type: "/tendermint.abci.RequestPrepareProposal"; value: RequestPrepareProposalAmino; } export interface RequestPrepareProposalSDKType { - max_tx_bytes: Long; + max_tx_bytes: bigint; txs: Uint8Array[]; local_last_commit: ExtendedCommitInfoSDKType; misbehavior: MisbehaviorSDKType[]; - height: Long; + height: bigint; time: TimestampSDKType; next_validators_hash: Uint8Array; proposer_address: Uint8Array; @@ -495,7 +494,7 @@ export interface RequestProcessProposal { misbehavior: Misbehavior[]; /** hash is the merkle root hash of the fields of the proposed block. */ hash: Uint8Array; - height: Long; + height: bigint; time: Timestamp; nextValidatorsHash: Uint8Array; /** address of the public key of the original proposer of the block. */ @@ -506,16 +505,16 @@ export interface RequestProcessProposalProtoMsg { value: Uint8Array; } export interface RequestProcessProposalAmino { - txs: Uint8Array[]; + txs?: string[]; proposed_last_commit?: CommitInfoAmino; - misbehavior: MisbehaviorAmino[]; + misbehavior?: MisbehaviorAmino[]; /** hash is the merkle root hash of the fields of the proposed block. */ - hash: Uint8Array; - height: string; - time?: TimestampAmino; - next_validators_hash: Uint8Array; + hash?: string; + height?: string; + time?: string; + next_validators_hash?: string; /** address of the public key of the original proposer of the block. */ - proposer_address: Uint8Array; + proposer_address?: string; } export interface RequestProcessProposalAminoMsg { type: "/tendermint.abci.RequestProcessProposal"; @@ -526,7 +525,7 @@ export interface RequestProcessProposalSDKType { proposed_last_commit: CommitInfoSDKType; misbehavior: MisbehaviorSDKType[]; hash: Uint8Array; - height: Long; + height: bigint; time: TimestampSDKType; next_validators_hash: Uint8Array; proposer_address: Uint8Array; @@ -606,7 +605,7 @@ export interface ResponseExceptionProtoMsg { } /** nondeterministic */ export interface ResponseExceptionAmino { - error: string; + error?: string; } export interface ResponseExceptionAminoMsg { type: "/tendermint.abci.ResponseException"; @@ -624,7 +623,7 @@ export interface ResponseEchoProtoMsg { value: Uint8Array; } export interface ResponseEchoAmino { - message: string; + message?: string; } export interface ResponseEchoAminoMsg { type: "/tendermint.abci.ResponseEcho"; @@ -650,8 +649,8 @@ export interface ResponseFlushSDKType { export interface ResponseInfo { data: string; version: string; - appVersion: Long; - lastBlockHeight: Long; + appVersion: bigint; + lastBlockHeight: bigint; lastBlockAppHash: Uint8Array; } export interface ResponseInfoProtoMsg { @@ -659,11 +658,11 @@ export interface ResponseInfoProtoMsg { value: Uint8Array; } export interface ResponseInfoAmino { - data: string; - version: string; - app_version: string; - last_block_height: string; - last_block_app_hash: Uint8Array; + data?: string; + version?: string; + app_version?: string; + last_block_height?: string; + last_block_app_hash?: string; } export interface ResponseInfoAminoMsg { type: "/tendermint.abci.ResponseInfo"; @@ -672,12 +671,12 @@ export interface ResponseInfoAminoMsg { export interface ResponseInfoSDKType { data: string; version: string; - app_version: Long; - last_block_height: Long; + app_version: bigint; + last_block_height: bigint; last_block_app_hash: Uint8Array; } export interface ResponseInitChain { - consensusParams: ConsensusParams; + consensusParams?: ConsensusParams; validators: ValidatorUpdate[]; appHash: Uint8Array; } @@ -687,15 +686,15 @@ export interface ResponseInitChainProtoMsg { } export interface ResponseInitChainAmino { consensus_params?: ConsensusParamsAmino; - validators: ValidatorUpdateAmino[]; - app_hash: Uint8Array; + validators?: ValidatorUpdateAmino[]; + app_hash?: string; } export interface ResponseInitChainAminoMsg { type: "/tendermint.abci.ResponseInitChain"; value: ResponseInitChainAmino; } export interface ResponseInitChainSDKType { - consensus_params: ConsensusParamsSDKType; + consensus_params?: ConsensusParamsSDKType; validators: ValidatorUpdateSDKType[]; app_hash: Uint8Array; } @@ -705,11 +704,11 @@ export interface ResponseQuery { log: string; /** nondeterministic */ info: string; - index: Long; + index: bigint; key: Uint8Array; value: Uint8Array; - proofOps: ProofOps; - height: Long; + proofOps?: ProofOps; + height: bigint; codespace: string; } export interface ResponseQueryProtoMsg { @@ -717,17 +716,17 @@ export interface ResponseQueryProtoMsg { value: Uint8Array; } export interface ResponseQueryAmino { - code: number; + code?: number; /** bytes data = 2; // use "value" instead. */ - log: string; + log?: string; /** nondeterministic */ - info: string; - index: string; - key: Uint8Array; - value: Uint8Array; + info?: string; + index?: string; + key?: string; + value?: string; proof_ops?: ProofOpsAmino; - height: string; - codespace: string; + height?: string; + codespace?: string; } export interface ResponseQueryAminoMsg { type: "/tendermint.abci.ResponseQuery"; @@ -737,11 +736,11 @@ export interface ResponseQuerySDKType { code: number; log: string; info: string; - index: Long; + index: bigint; key: Uint8Array; value: Uint8Array; - proof_ops: ProofOpsSDKType; - height: Long; + proof_ops?: ProofOpsSDKType; + height: bigint; codespace: string; } export interface ResponseBeginBlock { @@ -752,7 +751,7 @@ export interface ResponseBeginBlockProtoMsg { value: Uint8Array; } export interface ResponseBeginBlockAmino { - events: EventAmino[]; + events?: EventAmino[]; } export interface ResponseBeginBlockAminoMsg { type: "/tendermint.abci.ResponseBeginBlock"; @@ -768,12 +767,12 @@ export interface ResponseCheckTx { log: string; /** nondeterministic */ info: string; - gasWanted: Long; - gasUsed: Long; + gasWanted: bigint; + gasUsed: bigint; events: Event[]; codespace: string; sender: string; - priority: Long; + priority: bigint; /** * mempool_error is set by CometBFT. * ABCI applictions creating a ResponseCheckTX should not set mempool_error. @@ -785,23 +784,23 @@ export interface ResponseCheckTxProtoMsg { value: Uint8Array; } export interface ResponseCheckTxAmino { - code: number; - data: Uint8Array; + code?: number; + data?: string; /** nondeterministic */ - log: string; + log?: string; /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; - sender: string; - priority: string; + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; + sender?: string; + priority?: string; /** * mempool_error is set by CometBFT. * ABCI applictions creating a ResponseCheckTX should not set mempool_error. */ - mempool_error: string; + mempool_error?: string; } export interface ResponseCheckTxAminoMsg { type: "/tendermint.abci.ResponseCheckTx"; @@ -812,12 +811,12 @@ export interface ResponseCheckTxSDKType { data: Uint8Array; log: string; info: string; - gas_wanted: Long; - gas_used: Long; + gas_wanted: bigint; + gas_used: bigint; events: EventSDKType[]; codespace: string; sender: string; - priority: Long; + priority: bigint; mempool_error: string; } export interface ResponseDeliverTx { @@ -827,8 +826,8 @@ export interface ResponseDeliverTx { log: string; /** nondeterministic */ info: string; - gasWanted: Long; - gasUsed: Long; + gasWanted: bigint; + gasUsed: bigint; events: Event[]; codespace: string; } @@ -837,16 +836,16 @@ export interface ResponseDeliverTxProtoMsg { value: Uint8Array; } export interface ResponseDeliverTxAmino { - code: number; - data: Uint8Array; + code?: number; + data?: string; /** nondeterministic */ - log: string; + log?: string; /** nondeterministic */ - info: string; - gas_wanted: string; - gas_used: string; - events: EventAmino[]; - codespace: string; + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; } export interface ResponseDeliverTxAminoMsg { type: "/tendermint.abci.ResponseDeliverTx"; @@ -857,14 +856,14 @@ export interface ResponseDeliverTxSDKType { data: Uint8Array; log: string; info: string; - gas_wanted: Long; - gas_used: Long; + gas_wanted: bigint; + gas_used: bigint; events: EventSDKType[]; codespace: string; } export interface ResponseEndBlock { validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates: ConsensusParams; + consensusParamUpdates?: ConsensusParams; events: Event[]; } export interface ResponseEndBlockProtoMsg { @@ -872,9 +871,9 @@ export interface ResponseEndBlockProtoMsg { value: Uint8Array; } export interface ResponseEndBlockAmino { - validator_updates: ValidatorUpdateAmino[]; + validator_updates?: ValidatorUpdateAmino[]; consensus_param_updates?: ConsensusParamsAmino; - events: EventAmino[]; + events?: EventAmino[]; } export interface ResponseEndBlockAminoMsg { type: "/tendermint.abci.ResponseEndBlock"; @@ -882,13 +881,13 @@ export interface ResponseEndBlockAminoMsg { } export interface ResponseEndBlockSDKType { validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates: ConsensusParamsSDKType; + consensus_param_updates?: ConsensusParamsSDKType; events: EventSDKType[]; } export interface ResponseCommit { /** reserve 1 */ data: Uint8Array; - retainHeight: Long; + retainHeight: bigint; } export interface ResponseCommitProtoMsg { typeUrl: "/tendermint.abci.ResponseCommit"; @@ -896,8 +895,8 @@ export interface ResponseCommitProtoMsg { } export interface ResponseCommitAmino { /** reserve 1 */ - data: Uint8Array; - retain_height: string; + data?: string; + retain_height?: string; } export interface ResponseCommitAminoMsg { type: "/tendermint.abci.ResponseCommit"; @@ -905,7 +904,7 @@ export interface ResponseCommitAminoMsg { } export interface ResponseCommitSDKType { data: Uint8Array; - retain_height: Long; + retain_height: bigint; } export interface ResponseListSnapshots { snapshots: Snapshot[]; @@ -915,7 +914,7 @@ export interface ResponseListSnapshotsProtoMsg { value: Uint8Array; } export interface ResponseListSnapshotsAmino { - snapshots: SnapshotAmino[]; + snapshots?: SnapshotAmino[]; } export interface ResponseListSnapshotsAminoMsg { type: "/tendermint.abci.ResponseListSnapshots"; @@ -932,7 +931,7 @@ export interface ResponseOfferSnapshotProtoMsg { value: Uint8Array; } export interface ResponseOfferSnapshotAmino { - result: ResponseOfferSnapshot_Result; + result?: ResponseOfferSnapshot_Result; } export interface ResponseOfferSnapshotAminoMsg { type: "/tendermint.abci.ResponseOfferSnapshot"; @@ -949,7 +948,7 @@ export interface ResponseLoadSnapshotChunkProtoMsg { value: Uint8Array; } export interface ResponseLoadSnapshotChunkAmino { - chunk: Uint8Array; + chunk?: string; } export interface ResponseLoadSnapshotChunkAminoMsg { type: "/tendermint.abci.ResponseLoadSnapshotChunk"; @@ -970,11 +969,11 @@ export interface ResponseApplySnapshotChunkProtoMsg { value: Uint8Array; } export interface ResponseApplySnapshotChunkAmino { - result: ResponseApplySnapshotChunk_Result; + result?: ResponseApplySnapshotChunk_Result; /** Chunks to refetch and reapply */ - refetch_chunks: number[]; + refetch_chunks?: number[]; /** Chunk senders to reject and ban */ - reject_senders: string[]; + reject_senders?: string[]; } export interface ResponseApplySnapshotChunkAminoMsg { type: "/tendermint.abci.ResponseApplySnapshotChunk"; @@ -993,7 +992,7 @@ export interface ResponsePrepareProposalProtoMsg { value: Uint8Array; } export interface ResponsePrepareProposalAmino { - txs: Uint8Array[]; + txs?: string[]; } export interface ResponsePrepareProposalAminoMsg { type: "/tendermint.abci.ResponsePrepareProposal"; @@ -1010,7 +1009,7 @@ export interface ResponseProcessProposalProtoMsg { value: Uint8Array; } export interface ResponseProcessProposalAmino { - status: ResponseProcessProposal_ProposalStatus; + status?: ResponseProcessProposal_ProposalStatus; } export interface ResponseProcessProposalAminoMsg { type: "/tendermint.abci.ResponseProcessProposal"; @@ -1028,8 +1027,8 @@ export interface CommitInfoProtoMsg { value: Uint8Array; } export interface CommitInfoAmino { - round: number; - votes: VoteInfoAmino[]; + round?: number; + votes?: VoteInfoAmino[]; } export interface CommitInfoAminoMsg { type: "/tendermint.abci.CommitInfo"; @@ -1054,12 +1053,12 @@ export interface ExtendedCommitInfoProtoMsg { } export interface ExtendedCommitInfoAmino { /** The round at which the block proposer decided in the previous height. */ - round: number; + round?: number; /** * List of validators' addresses in the last validator set with their voting * information, including vote extensions. */ - votes: ExtendedVoteInfoAmino[]; + votes?: ExtendedVoteInfoAmino[]; } export interface ExtendedCommitInfoAminoMsg { type: "/tendermint.abci.ExtendedCommitInfo"; @@ -1088,8 +1087,8 @@ export interface EventProtoMsg { * Later, transactions may be queried using these events. */ export interface EventAmino { - type: string; - attributes: EventAttributeAmino[]; + type?: string; + attributes?: EventAttributeAmino[]; } export interface EventAminoMsg { type: "/tendermint.abci.Event"; @@ -1117,10 +1116,10 @@ export interface EventAttributeProtoMsg { } /** EventAttribute is a single key-value pair, associated with an event. */ export interface EventAttributeAmino { - key: string; - value: string; + key?: string; + value?: string; /** nondeterministic */ - index: boolean; + index?: boolean; } export interface EventAttributeAminoMsg { type: "/tendermint.abci.EventAttribute"; @@ -1138,7 +1137,7 @@ export interface EventAttributeSDKType { * One usage is indexing transaction results. */ export interface TxResult { - height: Long; + height: bigint; index: number; tx: Uint8Array; result: ResponseDeliverTx; @@ -1153,9 +1152,9 @@ export interface TxResultProtoMsg { * One usage is indexing transaction results. */ export interface TxResultAmino { - height: string; - index: number; - tx: Uint8Array; + height?: string; + index?: number; + tx?: string; result?: ResponseDeliverTxAmino; } export interface TxResultAminoMsg { @@ -1168,7 +1167,7 @@ export interface TxResultAminoMsg { * One usage is indexing transaction results. */ export interface TxResultSDKType { - height: Long; + height: bigint; index: number; tx: Uint8Array; result: ResponseDeliverTxSDKType; @@ -1181,7 +1180,7 @@ export interface Validator { */ address: Uint8Array; /** The voting power */ - power: Long; + power: bigint; } export interface ValidatorProtoMsg { typeUrl: "/tendermint.abci.Validator"; @@ -1193,9 +1192,9 @@ export interface ValidatorAmino { * The first 20 bytes of SHA256(public key) * PubKey pub_key = 2 [(gogoproto.nullable)=false]; */ - address: Uint8Array; + address?: string; /** The voting power */ - power: string; + power?: string; } export interface ValidatorAminoMsg { type: "/tendermint.abci.Validator"; @@ -1204,12 +1203,12 @@ export interface ValidatorAminoMsg { /** Validator */ export interface ValidatorSDKType { address: Uint8Array; - power: Long; + power: bigint; } /** ValidatorUpdate */ export interface ValidatorUpdate { pubKey: PublicKey; - power: Long; + power: bigint; } export interface ValidatorUpdateProtoMsg { typeUrl: "/tendermint.abci.ValidatorUpdate"; @@ -1218,7 +1217,7 @@ export interface ValidatorUpdateProtoMsg { /** ValidatorUpdate */ export interface ValidatorUpdateAmino { pub_key?: PublicKeyAmino; - power: string; + power?: string; } export interface ValidatorUpdateAminoMsg { type: "/tendermint.abci.ValidatorUpdate"; @@ -1227,7 +1226,7 @@ export interface ValidatorUpdateAminoMsg { /** ValidatorUpdate */ export interface ValidatorUpdateSDKType { pub_key: PublicKeySDKType; - power: Long; + power: bigint; } /** VoteInfo */ export interface VoteInfo { @@ -1241,7 +1240,7 @@ export interface VoteInfoProtoMsg { /** VoteInfo */ export interface VoteInfoAmino { validator?: ValidatorAmino; - signed_last_block: boolean; + signed_last_block?: boolean; } export interface VoteInfoAminoMsg { type: "/tendermint.abci.VoteInfo"; @@ -1264,9 +1263,9 @@ export interface ExtendedVoteInfoProtoMsg { } export interface ExtendedVoteInfoAmino { validator?: ValidatorAmino; - signed_last_block: boolean; + signed_last_block?: boolean; /** Reserved for future use */ - vote_extension: Uint8Array; + vote_extension?: string; } export interface ExtendedVoteInfoAminoMsg { type: "/tendermint.abci.ExtendedVoteInfo"; @@ -1282,7 +1281,7 @@ export interface Misbehavior { /** The offending validator */ validator: Validator; /** The height when the offense occurred */ - height: Long; + height: bigint; /** The corresponding time where the offense occurred */ time: Timestamp; /** @@ -1290,26 +1289,26 @@ export interface Misbehavior { * not store historical validators. * https://github.com/tendermint/tendermint/issues/4581 */ - totalVotingPower: Long; + totalVotingPower: bigint; } export interface MisbehaviorProtoMsg { typeUrl: "/tendermint.abci.Misbehavior"; value: Uint8Array; } export interface MisbehaviorAmino { - type: MisbehaviorType; + type?: MisbehaviorType; /** The offending validator */ validator?: ValidatorAmino; /** The height when the offense occurred */ - height: string; + height?: string; /** The corresponding time where the offense occurred */ - time?: TimestampAmino; + time?: string; /** * Total voting power of the validator set in case the ABCI application does * not store historical validators. * https://github.com/tendermint/tendermint/issues/4581 */ - total_voting_power: string; + total_voting_power?: string; } export interface MisbehaviorAminoMsg { type: "/tendermint.abci.Misbehavior"; @@ -1318,13 +1317,13 @@ export interface MisbehaviorAminoMsg { export interface MisbehaviorSDKType { type: MisbehaviorType; validator: ValidatorSDKType; - height: Long; + height: bigint; time: TimestampSDKType; - total_voting_power: Long; + total_voting_power: bigint; } export interface Snapshot { /** The height at which the snapshot was taken */ - height: Long; + height: bigint; /** The application-specific snapshot format */ format: number; /** Number of chunks in the snapshot */ @@ -1340,30 +1339,31 @@ export interface SnapshotProtoMsg { } export interface SnapshotAmino { /** The height at which the snapshot was taken */ - height: string; + height?: string; /** The application-specific snapshot format */ - format: number; + format?: number; /** Number of chunks in the snapshot */ - chunks: number; + chunks?: number; /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; + hash?: string; /** Arbitrary application metadata */ - metadata: Uint8Array; + metadata?: string; } export interface SnapshotAminoMsg { type: "/tendermint.abci.Snapshot"; value: SnapshotAmino; } export interface SnapshotSDKType { - height: Long; + height: bigint; format: number; chunks: number; hash: Uint8Array; metadata: Uint8Array; } export declare const Request: { - encode(message: Request, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Request; + typeUrl: string; + encode(message: Request, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Request; fromJSON(object: any): Request; toJSON(message: Request): unknown; fromPartial(object: Partial): Request; @@ -1375,8 +1375,9 @@ export declare const Request: { toProtoMsg(message: Request): RequestProtoMsg; }; export declare const RequestEcho: { - encode(message: RequestEcho, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestEcho; + typeUrl: string; + encode(message: RequestEcho, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho; fromJSON(object: any): RequestEcho; toJSON(message: RequestEcho): unknown; fromPartial(object: Partial): RequestEcho; @@ -1388,8 +1389,9 @@ export declare const RequestEcho: { toProtoMsg(message: RequestEcho): RequestEchoProtoMsg; }; export declare const RequestFlush: { - encode(_: RequestFlush, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestFlush; + typeUrl: string; + encode(_: RequestFlush, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush; fromJSON(_: any): RequestFlush; toJSON(_: RequestFlush): unknown; fromPartial(_: Partial): RequestFlush; @@ -1401,8 +1403,9 @@ export declare const RequestFlush: { toProtoMsg(message: RequestFlush): RequestFlushProtoMsg; }; export declare const RequestInfo: { - encode(message: RequestInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestInfo; + typeUrl: string; + encode(message: RequestInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo; fromJSON(object: any): RequestInfo; toJSON(message: RequestInfo): unknown; fromPartial(object: Partial): RequestInfo; @@ -1414,8 +1417,9 @@ export declare const RequestInfo: { toProtoMsg(message: RequestInfo): RequestInfoProtoMsg; }; export declare const RequestInitChain: { - encode(message: RequestInitChain, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestInitChain; + typeUrl: string; + encode(message: RequestInitChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain; fromJSON(object: any): RequestInitChain; toJSON(message: RequestInitChain): unknown; fromPartial(object: Partial): RequestInitChain; @@ -1427,8 +1431,9 @@ export declare const RequestInitChain: { toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg; }; export declare const RequestQuery: { - encode(message: RequestQuery, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestQuery; + typeUrl: string; + encode(message: RequestQuery, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery; fromJSON(object: any): RequestQuery; toJSON(message: RequestQuery): unknown; fromPartial(object: Partial): RequestQuery; @@ -1440,8 +1445,9 @@ export declare const RequestQuery: { toProtoMsg(message: RequestQuery): RequestQueryProtoMsg; }; export declare const RequestBeginBlock: { - encode(message: RequestBeginBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestBeginBlock; + typeUrl: string; + encode(message: RequestBeginBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock; fromJSON(object: any): RequestBeginBlock; toJSON(message: RequestBeginBlock): unknown; fromPartial(object: Partial): RequestBeginBlock; @@ -1453,8 +1459,9 @@ export declare const RequestBeginBlock: { toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg; }; export declare const RequestCheckTx: { - encode(message: RequestCheckTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestCheckTx; + typeUrl: string; + encode(message: RequestCheckTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx; fromJSON(object: any): RequestCheckTx; toJSON(message: RequestCheckTx): unknown; fromPartial(object: Partial): RequestCheckTx; @@ -1466,8 +1473,9 @@ export declare const RequestCheckTx: { toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg; }; export declare const RequestDeliverTx: { - encode(message: RequestDeliverTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestDeliverTx; + typeUrl: string; + encode(message: RequestDeliverTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx; fromJSON(object: any): RequestDeliverTx; toJSON(message: RequestDeliverTx): unknown; fromPartial(object: Partial): RequestDeliverTx; @@ -1479,8 +1487,9 @@ export declare const RequestDeliverTx: { toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg; }; export declare const RequestEndBlock: { - encode(message: RequestEndBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestEndBlock; + typeUrl: string; + encode(message: RequestEndBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock; fromJSON(object: any): RequestEndBlock; toJSON(message: RequestEndBlock): unknown; fromPartial(object: Partial): RequestEndBlock; @@ -1492,8 +1501,9 @@ export declare const RequestEndBlock: { toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg; }; export declare const RequestCommit: { - encode(_: RequestCommit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestCommit; + typeUrl: string; + encode(_: RequestCommit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit; fromJSON(_: any): RequestCommit; toJSON(_: RequestCommit): unknown; fromPartial(_: Partial): RequestCommit; @@ -1505,8 +1515,9 @@ export declare const RequestCommit: { toProtoMsg(message: RequestCommit): RequestCommitProtoMsg; }; export declare const RequestListSnapshots: { - encode(_: RequestListSnapshots, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestListSnapshots; + typeUrl: string; + encode(_: RequestListSnapshots, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots; fromJSON(_: any): RequestListSnapshots; toJSON(_: RequestListSnapshots): unknown; fromPartial(_: Partial): RequestListSnapshots; @@ -1518,8 +1529,9 @@ export declare const RequestListSnapshots: { toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg; }; export declare const RequestOfferSnapshot: { - encode(message: RequestOfferSnapshot, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestOfferSnapshot; + typeUrl: string; + encode(message: RequestOfferSnapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot; fromJSON(object: any): RequestOfferSnapshot; toJSON(message: RequestOfferSnapshot): unknown; fromPartial(object: Partial): RequestOfferSnapshot; @@ -1531,8 +1543,9 @@ export declare const RequestOfferSnapshot: { toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg; }; export declare const RequestLoadSnapshotChunk: { - encode(message: RequestLoadSnapshotChunk, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestLoadSnapshotChunk; + typeUrl: string; + encode(message: RequestLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk; fromJSON(object: any): RequestLoadSnapshotChunk; toJSON(message: RequestLoadSnapshotChunk): unknown; fromPartial(object: Partial): RequestLoadSnapshotChunk; @@ -1544,8 +1557,9 @@ export declare const RequestLoadSnapshotChunk: { toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg; }; export declare const RequestApplySnapshotChunk: { - encode(message: RequestApplySnapshotChunk, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestApplySnapshotChunk; + typeUrl: string; + encode(message: RequestApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk; fromJSON(object: any): RequestApplySnapshotChunk; toJSON(message: RequestApplySnapshotChunk): unknown; fromPartial(object: Partial): RequestApplySnapshotChunk; @@ -1557,8 +1571,9 @@ export declare const RequestApplySnapshotChunk: { toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg; }; export declare const RequestPrepareProposal: { - encode(message: RequestPrepareProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestPrepareProposal; + typeUrl: string; + encode(message: RequestPrepareProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal; fromJSON(object: any): RequestPrepareProposal; toJSON(message: RequestPrepareProposal): unknown; fromPartial(object: Partial): RequestPrepareProposal; @@ -1570,8 +1585,9 @@ export declare const RequestPrepareProposal: { toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg; }; export declare const RequestProcessProposal: { - encode(message: RequestProcessProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): RequestProcessProposal; + typeUrl: string; + encode(message: RequestProcessProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal; fromJSON(object: any): RequestProcessProposal; toJSON(message: RequestProcessProposal): unknown; fromPartial(object: Partial): RequestProcessProposal; @@ -1583,8 +1599,9 @@ export declare const RequestProcessProposal: { toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg; }; export declare const Response: { - encode(message: Response, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Response; + typeUrl: string; + encode(message: Response, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Response; fromJSON(object: any): Response; toJSON(message: Response): unknown; fromPartial(object: Partial): Response; @@ -1596,8 +1613,9 @@ export declare const Response: { toProtoMsg(message: Response): ResponseProtoMsg; }; export declare const ResponseException: { - encode(message: ResponseException, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseException; + typeUrl: string; + encode(message: ResponseException, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseException; fromJSON(object: any): ResponseException; toJSON(message: ResponseException): unknown; fromPartial(object: Partial): ResponseException; @@ -1609,8 +1627,9 @@ export declare const ResponseException: { toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg; }; export declare const ResponseEcho: { - encode(message: ResponseEcho, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEcho; + typeUrl: string; + encode(message: ResponseEcho, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho; fromJSON(object: any): ResponseEcho; toJSON(message: ResponseEcho): unknown; fromPartial(object: Partial): ResponseEcho; @@ -1622,8 +1641,9 @@ export declare const ResponseEcho: { toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg; }; export declare const ResponseFlush: { - encode(_: ResponseFlush, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseFlush; + typeUrl: string; + encode(_: ResponseFlush, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush; fromJSON(_: any): ResponseFlush; toJSON(_: ResponseFlush): unknown; fromPartial(_: Partial): ResponseFlush; @@ -1635,8 +1655,9 @@ export declare const ResponseFlush: { toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg; }; export declare const ResponseInfo: { - encode(message: ResponseInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInfo; + typeUrl: string; + encode(message: ResponseInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo; fromJSON(object: any): ResponseInfo; toJSON(message: ResponseInfo): unknown; fromPartial(object: Partial): ResponseInfo; @@ -1648,8 +1669,9 @@ export declare const ResponseInfo: { toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg; }; export declare const ResponseInitChain: { - encode(message: ResponseInitChain, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInitChain; + typeUrl: string; + encode(message: ResponseInitChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain; fromJSON(object: any): ResponseInitChain; toJSON(message: ResponseInitChain): unknown; fromPartial(object: Partial): ResponseInitChain; @@ -1661,8 +1683,9 @@ export declare const ResponseInitChain: { toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg; }; export declare const ResponseQuery: { - encode(message: ResponseQuery, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseQuery; + typeUrl: string; + encode(message: ResponseQuery, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery; fromJSON(object: any): ResponseQuery; toJSON(message: ResponseQuery): unknown; fromPartial(object: Partial): ResponseQuery; @@ -1674,8 +1697,9 @@ export declare const ResponseQuery: { toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg; }; export declare const ResponseBeginBlock: { - encode(message: ResponseBeginBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseBeginBlock; + typeUrl: string; + encode(message: ResponseBeginBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock; fromJSON(object: any): ResponseBeginBlock; toJSON(message: ResponseBeginBlock): unknown; fromPartial(object: Partial): ResponseBeginBlock; @@ -1687,8 +1711,9 @@ export declare const ResponseBeginBlock: { toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg; }; export declare const ResponseCheckTx: { - encode(message: ResponseCheckTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCheckTx; + typeUrl: string; + encode(message: ResponseCheckTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx; fromJSON(object: any): ResponseCheckTx; toJSON(message: ResponseCheckTx): unknown; fromPartial(object: Partial): ResponseCheckTx; @@ -1700,8 +1725,9 @@ export declare const ResponseCheckTx: { toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg; }; export declare const ResponseDeliverTx: { - encode(message: ResponseDeliverTx, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseDeliverTx; + typeUrl: string; + encode(message: ResponseDeliverTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx; fromJSON(object: any): ResponseDeliverTx; toJSON(message: ResponseDeliverTx): unknown; fromPartial(object: Partial): ResponseDeliverTx; @@ -1713,8 +1739,9 @@ export declare const ResponseDeliverTx: { toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg; }; export declare const ResponseEndBlock: { - encode(message: ResponseEndBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEndBlock; + typeUrl: string; + encode(message: ResponseEndBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock; fromJSON(object: any): ResponseEndBlock; toJSON(message: ResponseEndBlock): unknown; fromPartial(object: Partial): ResponseEndBlock; @@ -1726,8 +1753,9 @@ export declare const ResponseEndBlock: { toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg; }; export declare const ResponseCommit: { - encode(message: ResponseCommit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCommit; + typeUrl: string; + encode(message: ResponseCommit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit; fromJSON(object: any): ResponseCommit; toJSON(message: ResponseCommit): unknown; fromPartial(object: Partial): ResponseCommit; @@ -1739,8 +1767,9 @@ export declare const ResponseCommit: { toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg; }; export declare const ResponseListSnapshots: { - encode(message: ResponseListSnapshots, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseListSnapshots; + typeUrl: string; + encode(message: ResponseListSnapshots, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots; fromJSON(object: any): ResponseListSnapshots; toJSON(message: ResponseListSnapshots): unknown; fromPartial(object: Partial): ResponseListSnapshots; @@ -1752,8 +1781,9 @@ export declare const ResponseListSnapshots: { toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg; }; export declare const ResponseOfferSnapshot: { - encode(message: ResponseOfferSnapshot, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseOfferSnapshot; + typeUrl: string; + encode(message: ResponseOfferSnapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot; fromJSON(object: any): ResponseOfferSnapshot; toJSON(message: ResponseOfferSnapshot): unknown; fromPartial(object: Partial): ResponseOfferSnapshot; @@ -1765,8 +1795,9 @@ export declare const ResponseOfferSnapshot: { toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg; }; export declare const ResponseLoadSnapshotChunk: { - encode(message: ResponseLoadSnapshotChunk, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; + typeUrl: string; + encode(message: ResponseLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; fromJSON(object: any): ResponseLoadSnapshotChunk; toJSON(message: ResponseLoadSnapshotChunk): unknown; fromPartial(object: Partial): ResponseLoadSnapshotChunk; @@ -1778,8 +1809,9 @@ export declare const ResponseLoadSnapshotChunk: { toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg; }; export declare const ResponseApplySnapshotChunk: { - encode(message: ResponseApplySnapshotChunk, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseApplySnapshotChunk; + typeUrl: string; + encode(message: ResponseApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk; fromJSON(object: any): ResponseApplySnapshotChunk; toJSON(message: ResponseApplySnapshotChunk): unknown; fromPartial(object: Partial): ResponseApplySnapshotChunk; @@ -1791,8 +1823,9 @@ export declare const ResponseApplySnapshotChunk: { toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg; }; export declare const ResponsePrepareProposal: { - encode(message: ResponsePrepareProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponsePrepareProposal; + typeUrl: string; + encode(message: ResponsePrepareProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal; fromJSON(object: any): ResponsePrepareProposal; toJSON(message: ResponsePrepareProposal): unknown; fromPartial(object: Partial): ResponsePrepareProposal; @@ -1804,8 +1837,9 @@ export declare const ResponsePrepareProposal: { toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg; }; export declare const ResponseProcessProposal: { - encode(message: ResponseProcessProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ResponseProcessProposal; + typeUrl: string; + encode(message: ResponseProcessProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal; fromJSON(object: any): ResponseProcessProposal; toJSON(message: ResponseProcessProposal): unknown; fromPartial(object: Partial): ResponseProcessProposal; @@ -1817,8 +1851,9 @@ export declare const ResponseProcessProposal: { toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg; }; export declare const CommitInfo: { - encode(message: CommitInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo; + typeUrl: string; + encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; fromJSON(object: any): CommitInfo; toJSON(message: CommitInfo): unknown; fromPartial(object: Partial): CommitInfo; @@ -1830,8 +1865,9 @@ export declare const CommitInfo: { toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; }; export declare const ExtendedCommitInfo: { - encode(message: ExtendedCommitInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ExtendedCommitInfo; + typeUrl: string; + encode(message: ExtendedCommitInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo; fromJSON(object: any): ExtendedCommitInfo; toJSON(message: ExtendedCommitInfo): unknown; fromPartial(object: Partial): ExtendedCommitInfo; @@ -1843,8 +1879,9 @@ export declare const ExtendedCommitInfo: { toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg; }; export declare const Event: { - encode(message: Event, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Event; + typeUrl: string; + encode(message: Event, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Event; fromJSON(object: any): Event; toJSON(message: Event): unknown; fromPartial(object: Partial): Event; @@ -1856,8 +1893,9 @@ export declare const Event: { toProtoMsg(message: Event): EventProtoMsg; }; export declare const EventAttribute: { - encode(message: EventAttribute, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventAttribute; + typeUrl: string; + encode(message: EventAttribute, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute; fromJSON(object: any): EventAttribute; toJSON(message: EventAttribute): unknown; fromPartial(object: Partial): EventAttribute; @@ -1869,8 +1907,9 @@ export declare const EventAttribute: { toProtoMsg(message: EventAttribute): EventAttributeProtoMsg; }; export declare const TxResult: { - encode(message: TxResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxResult; + typeUrl: string; + encode(message: TxResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxResult; fromJSON(object: any): TxResult; toJSON(message: TxResult): unknown; fromPartial(object: Partial): TxResult; @@ -1882,8 +1921,9 @@ export declare const TxResult: { toProtoMsg(message: TxResult): TxResultProtoMsg; }; export declare const Validator: { - encode(message: Validator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Validator; + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: Partial): Validator; @@ -1895,8 +1935,9 @@ export declare const Validator: { toProtoMsg(message: Validator): ValidatorProtoMsg; }; export declare const ValidatorUpdate: { - encode(message: ValidatorUpdate, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorUpdate; + typeUrl: string; + encode(message: ValidatorUpdate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate; fromJSON(object: any): ValidatorUpdate; toJSON(message: ValidatorUpdate): unknown; fromPartial(object: Partial): ValidatorUpdate; @@ -1908,8 +1949,9 @@ export declare const ValidatorUpdate: { toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg; }; export declare const VoteInfo: { - encode(message: VoteInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VoteInfo; + typeUrl: string; + encode(message: VoteInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo; fromJSON(object: any): VoteInfo; toJSON(message: VoteInfo): unknown; fromPartial(object: Partial): VoteInfo; @@ -1921,8 +1963,9 @@ export declare const VoteInfo: { toProtoMsg(message: VoteInfo): VoteInfoProtoMsg; }; export declare const ExtendedVoteInfo: { - encode(message: ExtendedVoteInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ExtendedVoteInfo; + typeUrl: string; + encode(message: ExtendedVoteInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo; fromJSON(object: any): ExtendedVoteInfo; toJSON(message: ExtendedVoteInfo): unknown; fromPartial(object: Partial): ExtendedVoteInfo; @@ -1934,8 +1977,9 @@ export declare const ExtendedVoteInfo: { toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg; }; export declare const Misbehavior: { - encode(message: Misbehavior, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Misbehavior; + typeUrl: string; + encode(message: Misbehavior, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior; fromJSON(object: any): Misbehavior; toJSON(message: Misbehavior): unknown; fromPartial(object: Partial): Misbehavior; @@ -1947,8 +1991,9 @@ export declare const Misbehavior: { toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg; }; export declare const Snapshot: { - encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot; + typeUrl: string; + encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; fromJSON(object: any): Snapshot; toJSON(message: Snapshot): unknown; fromPartial(object: Partial): Snapshot; diff --git a/packages/api/types/codegen/tendermint/bundle.d.ts b/packages/api/types/codegen/tendermint/bundle.d.ts index 8817da3a..f1aafa73 100644 --- a/packages/api/types/codegen/tendermint/bundle.d.ts +++ b/packages/api/types/codegen/tendermint/bundle.d.ts @@ -1,1180 +1,1266 @@ -import * as _140 from "./abci/types"; -import * as _141 from "./crypto/keys"; -import * as _142 from "./crypto/proof"; -import * as _143 from "./libs/bits/types"; -import * as _144 from "./p2p/types"; -import * as _145 from "./types/block"; -import * as _146 from "./types/evidence"; -import * as _147 from "./types/params"; -import * as _148 from "./types/types"; -import * as _149 from "./types/validator"; -import * as _150 from "./version/types"; +import * as _141 from "./abci/types"; +import * as _142 from "./crypto/keys"; +import * as _143 from "./crypto/proof"; +import * as _144 from "./libs/bits/types"; +import * as _145 from "./p2p/types"; +import * as _146 from "./types/block"; +import * as _147 from "./types/evidence"; +import * as _148 from "./types/params"; +import * as _149 from "./types/types"; +import * as _150 from "./types/validator"; +import * as _151 from "./version/types"; export declare namespace tendermint { const abci: { - checkTxTypeFromJSON(object: any): _140.CheckTxType; - checkTxTypeToJSON(object: _140.CheckTxType): string; - responseOfferSnapshot_ResultFromJSON(object: any): _140.ResponseOfferSnapshot_Result; - responseOfferSnapshot_ResultToJSON(object: _140.ResponseOfferSnapshot_Result): string; - responseApplySnapshotChunk_ResultFromJSON(object: any): _140.ResponseApplySnapshotChunk_Result; - responseApplySnapshotChunk_ResultToJSON(object: _140.ResponseApplySnapshotChunk_Result): string; - responseProcessProposal_ProposalStatusFromJSON(object: any): _140.ResponseProcessProposal_ProposalStatus; - responseProcessProposal_ProposalStatusToJSON(object: _140.ResponseProcessProposal_ProposalStatus): string; - misbehaviorTypeFromJSON(object: any): _140.MisbehaviorType; - misbehaviorTypeToJSON(object: _140.MisbehaviorType): string; - CheckTxType: typeof _140.CheckTxType; - CheckTxTypeSDKType: typeof _140.CheckTxType; - CheckTxTypeAmino: typeof _140.CheckTxType; - ResponseOfferSnapshot_Result: typeof _140.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultSDKType: typeof _140.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultAmino: typeof _140.ResponseOfferSnapshot_Result; - ResponseApplySnapshotChunk_Result: typeof _140.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultSDKType: typeof _140.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultAmino: typeof _140.ResponseApplySnapshotChunk_Result; - ResponseProcessProposal_ProposalStatus: typeof _140.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusSDKType: typeof _140.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusAmino: typeof _140.ResponseProcessProposal_ProposalStatus; - MisbehaviorType: typeof _140.MisbehaviorType; - MisbehaviorTypeSDKType: typeof _140.MisbehaviorType; - MisbehaviorTypeAmino: typeof _140.MisbehaviorType; + checkTxTypeFromJSON(object: any): _141.CheckTxType; + checkTxTypeToJSON(object: _141.CheckTxType): string; + responseOfferSnapshot_ResultFromJSON(object: any): _141.ResponseOfferSnapshot_Result; + responseOfferSnapshot_ResultToJSON(object: _141.ResponseOfferSnapshot_Result): string; + responseApplySnapshotChunk_ResultFromJSON(object: any): _141.ResponseApplySnapshotChunk_Result; + responseApplySnapshotChunk_ResultToJSON(object: _141.ResponseApplySnapshotChunk_Result): string; + responseProcessProposal_ProposalStatusFromJSON(object: any): _141.ResponseProcessProposal_ProposalStatus; + responseProcessProposal_ProposalStatusToJSON(object: _141.ResponseProcessProposal_ProposalStatus): string; + misbehaviorTypeFromJSON(object: any): _141.MisbehaviorType; + misbehaviorTypeToJSON(object: _141.MisbehaviorType): string; + CheckTxType: typeof _141.CheckTxType; + CheckTxTypeSDKType: typeof _141.CheckTxType; + CheckTxTypeAmino: typeof _141.CheckTxType; + ResponseOfferSnapshot_Result: typeof _141.ResponseOfferSnapshot_Result; + ResponseOfferSnapshot_ResultSDKType: typeof _141.ResponseOfferSnapshot_Result; + ResponseOfferSnapshot_ResultAmino: typeof _141.ResponseOfferSnapshot_Result; + ResponseApplySnapshotChunk_Result: typeof _141.ResponseApplySnapshotChunk_Result; + ResponseApplySnapshotChunk_ResultSDKType: typeof _141.ResponseApplySnapshotChunk_Result; + ResponseApplySnapshotChunk_ResultAmino: typeof _141.ResponseApplySnapshotChunk_Result; + ResponseProcessProposal_ProposalStatus: typeof _141.ResponseProcessProposal_ProposalStatus; + ResponseProcessProposal_ProposalStatusSDKType: typeof _141.ResponseProcessProposal_ProposalStatus; + ResponseProcessProposal_ProposalStatusAmino: typeof _141.ResponseProcessProposal_ProposalStatus; + MisbehaviorType: typeof _141.MisbehaviorType; + MisbehaviorTypeSDKType: typeof _141.MisbehaviorType; + MisbehaviorTypeAmino: typeof _141.MisbehaviorType; Request: { - encode(message: _140.Request, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Request; - fromJSON(object: any): _140.Request; - toJSON(message: _140.Request): unknown; - fromPartial(object: Partial<_140.Request>): _140.Request; - fromAmino(object: _140.RequestAmino): _140.Request; - toAmino(message: _140.Request): _140.RequestAmino; - fromAminoMsg(object: _140.RequestAminoMsg): _140.Request; - fromProtoMsg(message: _140.RequestProtoMsg): _140.Request; - toProto(message: _140.Request): Uint8Array; - toProtoMsg(message: _140.Request): _140.RequestProtoMsg; + typeUrl: string; + encode(message: _141.Request, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Request; + fromJSON(object: any): _141.Request; + toJSON(message: _141.Request): unknown; + fromPartial(object: Partial<_141.Request>): _141.Request; + fromAmino(object: _141.RequestAmino): _141.Request; + toAmino(message: _141.Request): _141.RequestAmino; + fromAminoMsg(object: _141.RequestAminoMsg): _141.Request; + fromProtoMsg(message: _141.RequestProtoMsg): _141.Request; + toProto(message: _141.Request): Uint8Array; + toProtoMsg(message: _141.Request): _141.RequestProtoMsg; }; RequestEcho: { - encode(message: _140.RequestEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestEcho; - fromJSON(object: any): _140.RequestEcho; - toJSON(message: _140.RequestEcho): unknown; - fromPartial(object: Partial<_140.RequestEcho>): _140.RequestEcho; - fromAmino(object: _140.RequestEchoAmino): _140.RequestEcho; - toAmino(message: _140.RequestEcho): _140.RequestEchoAmino; - fromAminoMsg(object: _140.RequestEchoAminoMsg): _140.RequestEcho; - fromProtoMsg(message: _140.RequestEchoProtoMsg): _140.RequestEcho; - toProto(message: _140.RequestEcho): Uint8Array; - toProtoMsg(message: _140.RequestEcho): _140.RequestEchoProtoMsg; + typeUrl: string; + encode(message: _141.RequestEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestEcho; + fromJSON(object: any): _141.RequestEcho; + toJSON(message: _141.RequestEcho): unknown; + fromPartial(object: Partial<_141.RequestEcho>): _141.RequestEcho; + fromAmino(object: _141.RequestEchoAmino): _141.RequestEcho; + toAmino(message: _141.RequestEcho): _141.RequestEchoAmino; + fromAminoMsg(object: _141.RequestEchoAminoMsg): _141.RequestEcho; + fromProtoMsg(message: _141.RequestEchoProtoMsg): _141.RequestEcho; + toProto(message: _141.RequestEcho): Uint8Array; + toProtoMsg(message: _141.RequestEcho): _141.RequestEchoProtoMsg; }; RequestFlush: { - encode(_: _140.RequestFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestFlush; - fromJSON(_: any): _140.RequestFlush; - toJSON(_: _140.RequestFlush): unknown; - fromPartial(_: Partial<_140.RequestFlush>): _140.RequestFlush; - fromAmino(_: _140.RequestFlushAmino): _140.RequestFlush; - toAmino(_: _140.RequestFlush): _140.RequestFlushAmino; - fromAminoMsg(object: _140.RequestFlushAminoMsg): _140.RequestFlush; - fromProtoMsg(message: _140.RequestFlushProtoMsg): _140.RequestFlush; - toProto(message: _140.RequestFlush): Uint8Array; - toProtoMsg(message: _140.RequestFlush): _140.RequestFlushProtoMsg; + typeUrl: string; + encode(_: _141.RequestFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestFlush; + fromJSON(_: any): _141.RequestFlush; + toJSON(_: _141.RequestFlush): unknown; + fromPartial(_: Partial<_141.RequestFlush>): _141.RequestFlush; + fromAmino(_: _141.RequestFlushAmino): _141.RequestFlush; + toAmino(_: _141.RequestFlush): _141.RequestFlushAmino; + fromAminoMsg(object: _141.RequestFlushAminoMsg): _141.RequestFlush; + fromProtoMsg(message: _141.RequestFlushProtoMsg): _141.RequestFlush; + toProto(message: _141.RequestFlush): Uint8Array; + toProtoMsg(message: _141.RequestFlush): _141.RequestFlushProtoMsg; }; RequestInfo: { - encode(message: _140.RequestInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestInfo; - fromJSON(object: any): _140.RequestInfo; - toJSON(message: _140.RequestInfo): unknown; - fromPartial(object: Partial<_140.RequestInfo>): _140.RequestInfo; - fromAmino(object: _140.RequestInfoAmino): _140.RequestInfo; - toAmino(message: _140.RequestInfo): _140.RequestInfoAmino; - fromAminoMsg(object: _140.RequestInfoAminoMsg): _140.RequestInfo; - fromProtoMsg(message: _140.RequestInfoProtoMsg): _140.RequestInfo; - toProto(message: _140.RequestInfo): Uint8Array; - toProtoMsg(message: _140.RequestInfo): _140.RequestInfoProtoMsg; + typeUrl: string; + encode(message: _141.RequestInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestInfo; + fromJSON(object: any): _141.RequestInfo; + toJSON(message: _141.RequestInfo): unknown; + fromPartial(object: Partial<_141.RequestInfo>): _141.RequestInfo; + fromAmino(object: _141.RequestInfoAmino): _141.RequestInfo; + toAmino(message: _141.RequestInfo): _141.RequestInfoAmino; + fromAminoMsg(object: _141.RequestInfoAminoMsg): _141.RequestInfo; + fromProtoMsg(message: _141.RequestInfoProtoMsg): _141.RequestInfo; + toProto(message: _141.RequestInfo): Uint8Array; + toProtoMsg(message: _141.RequestInfo): _141.RequestInfoProtoMsg; }; RequestInitChain: { - encode(message: _140.RequestInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestInitChain; - fromJSON(object: any): _140.RequestInitChain; - toJSON(message: _140.RequestInitChain): unknown; - fromPartial(object: Partial<_140.RequestInitChain>): _140.RequestInitChain; - fromAmino(object: _140.RequestInitChainAmino): _140.RequestInitChain; - toAmino(message: _140.RequestInitChain): _140.RequestInitChainAmino; - fromAminoMsg(object: _140.RequestInitChainAminoMsg): _140.RequestInitChain; - fromProtoMsg(message: _140.RequestInitChainProtoMsg): _140.RequestInitChain; - toProto(message: _140.RequestInitChain): Uint8Array; - toProtoMsg(message: _140.RequestInitChain): _140.RequestInitChainProtoMsg; + typeUrl: string; + encode(message: _141.RequestInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestInitChain; + fromJSON(object: any): _141.RequestInitChain; + toJSON(message: _141.RequestInitChain): unknown; + fromPartial(object: Partial<_141.RequestInitChain>): _141.RequestInitChain; + fromAmino(object: _141.RequestInitChainAmino): _141.RequestInitChain; + toAmino(message: _141.RequestInitChain): _141.RequestInitChainAmino; + fromAminoMsg(object: _141.RequestInitChainAminoMsg): _141.RequestInitChain; + fromProtoMsg(message: _141.RequestInitChainProtoMsg): _141.RequestInitChain; + toProto(message: _141.RequestInitChain): Uint8Array; + toProtoMsg(message: _141.RequestInitChain): _141.RequestInitChainProtoMsg; }; RequestQuery: { - encode(message: _140.RequestQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestQuery; - fromJSON(object: any): _140.RequestQuery; - toJSON(message: _140.RequestQuery): unknown; - fromPartial(object: Partial<_140.RequestQuery>): _140.RequestQuery; - fromAmino(object: _140.RequestQueryAmino): _140.RequestQuery; - toAmino(message: _140.RequestQuery): _140.RequestQueryAmino; - fromAminoMsg(object: _140.RequestQueryAminoMsg): _140.RequestQuery; - fromProtoMsg(message: _140.RequestQueryProtoMsg): _140.RequestQuery; - toProto(message: _140.RequestQuery): Uint8Array; - toProtoMsg(message: _140.RequestQuery): _140.RequestQueryProtoMsg; + typeUrl: string; + encode(message: _141.RequestQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestQuery; + fromJSON(object: any): _141.RequestQuery; + toJSON(message: _141.RequestQuery): unknown; + fromPartial(object: Partial<_141.RequestQuery>): _141.RequestQuery; + fromAmino(object: _141.RequestQueryAmino): _141.RequestQuery; + toAmino(message: _141.RequestQuery): _141.RequestQueryAmino; + fromAminoMsg(object: _141.RequestQueryAminoMsg): _141.RequestQuery; + fromProtoMsg(message: _141.RequestQueryProtoMsg): _141.RequestQuery; + toProto(message: _141.RequestQuery): Uint8Array; + toProtoMsg(message: _141.RequestQuery): _141.RequestQueryProtoMsg; }; RequestBeginBlock: { - encode(message: _140.RequestBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestBeginBlock; - fromJSON(object: any): _140.RequestBeginBlock; - toJSON(message: _140.RequestBeginBlock): unknown; - fromPartial(object: Partial<_140.RequestBeginBlock>): _140.RequestBeginBlock; - fromAmino(object: _140.RequestBeginBlockAmino): _140.RequestBeginBlock; - toAmino(message: _140.RequestBeginBlock): _140.RequestBeginBlockAmino; - fromAminoMsg(object: _140.RequestBeginBlockAminoMsg): _140.RequestBeginBlock; - fromProtoMsg(message: _140.RequestBeginBlockProtoMsg): _140.RequestBeginBlock; - toProto(message: _140.RequestBeginBlock): Uint8Array; - toProtoMsg(message: _140.RequestBeginBlock): _140.RequestBeginBlockProtoMsg; + typeUrl: string; + encode(message: _141.RequestBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestBeginBlock; + fromJSON(object: any): _141.RequestBeginBlock; + toJSON(message: _141.RequestBeginBlock): unknown; + fromPartial(object: Partial<_141.RequestBeginBlock>): _141.RequestBeginBlock; + fromAmino(object: _141.RequestBeginBlockAmino): _141.RequestBeginBlock; + toAmino(message: _141.RequestBeginBlock): _141.RequestBeginBlockAmino; + fromAminoMsg(object: _141.RequestBeginBlockAminoMsg): _141.RequestBeginBlock; + fromProtoMsg(message: _141.RequestBeginBlockProtoMsg): _141.RequestBeginBlock; + toProto(message: _141.RequestBeginBlock): Uint8Array; + toProtoMsg(message: _141.RequestBeginBlock): _141.RequestBeginBlockProtoMsg; }; RequestCheckTx: { - encode(message: _140.RequestCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestCheckTx; - fromJSON(object: any): _140.RequestCheckTx; - toJSON(message: _140.RequestCheckTx): unknown; - fromPartial(object: Partial<_140.RequestCheckTx>): _140.RequestCheckTx; - fromAmino(object: _140.RequestCheckTxAmino): _140.RequestCheckTx; - toAmino(message: _140.RequestCheckTx): _140.RequestCheckTxAmino; - fromAminoMsg(object: _140.RequestCheckTxAminoMsg): _140.RequestCheckTx; - fromProtoMsg(message: _140.RequestCheckTxProtoMsg): _140.RequestCheckTx; - toProto(message: _140.RequestCheckTx): Uint8Array; - toProtoMsg(message: _140.RequestCheckTx): _140.RequestCheckTxProtoMsg; + typeUrl: string; + encode(message: _141.RequestCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestCheckTx; + fromJSON(object: any): _141.RequestCheckTx; + toJSON(message: _141.RequestCheckTx): unknown; + fromPartial(object: Partial<_141.RequestCheckTx>): _141.RequestCheckTx; + fromAmino(object: _141.RequestCheckTxAmino): _141.RequestCheckTx; + toAmino(message: _141.RequestCheckTx): _141.RequestCheckTxAmino; + fromAminoMsg(object: _141.RequestCheckTxAminoMsg): _141.RequestCheckTx; + fromProtoMsg(message: _141.RequestCheckTxProtoMsg): _141.RequestCheckTx; + toProto(message: _141.RequestCheckTx): Uint8Array; + toProtoMsg(message: _141.RequestCheckTx): _141.RequestCheckTxProtoMsg; }; RequestDeliverTx: { - encode(message: _140.RequestDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestDeliverTx; - fromJSON(object: any): _140.RequestDeliverTx; - toJSON(message: _140.RequestDeliverTx): unknown; - fromPartial(object: Partial<_140.RequestDeliverTx>): _140.RequestDeliverTx; - fromAmino(object: _140.RequestDeliverTxAmino): _140.RequestDeliverTx; - toAmino(message: _140.RequestDeliverTx): _140.RequestDeliverTxAmino; - fromAminoMsg(object: _140.RequestDeliverTxAminoMsg): _140.RequestDeliverTx; - fromProtoMsg(message: _140.RequestDeliverTxProtoMsg): _140.RequestDeliverTx; - toProto(message: _140.RequestDeliverTx): Uint8Array; - toProtoMsg(message: _140.RequestDeliverTx): _140.RequestDeliverTxProtoMsg; + typeUrl: string; + encode(message: _141.RequestDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestDeliverTx; + fromJSON(object: any): _141.RequestDeliverTx; + toJSON(message: _141.RequestDeliverTx): unknown; + fromPartial(object: Partial<_141.RequestDeliverTx>): _141.RequestDeliverTx; + fromAmino(object: _141.RequestDeliverTxAmino): _141.RequestDeliverTx; + toAmino(message: _141.RequestDeliverTx): _141.RequestDeliverTxAmino; + fromAminoMsg(object: _141.RequestDeliverTxAminoMsg): _141.RequestDeliverTx; + fromProtoMsg(message: _141.RequestDeliverTxProtoMsg): _141.RequestDeliverTx; + toProto(message: _141.RequestDeliverTx): Uint8Array; + toProtoMsg(message: _141.RequestDeliverTx): _141.RequestDeliverTxProtoMsg; }; RequestEndBlock: { - encode(message: _140.RequestEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestEndBlock; - fromJSON(object: any): _140.RequestEndBlock; - toJSON(message: _140.RequestEndBlock): unknown; - fromPartial(object: Partial<_140.RequestEndBlock>): _140.RequestEndBlock; - fromAmino(object: _140.RequestEndBlockAmino): _140.RequestEndBlock; - toAmino(message: _140.RequestEndBlock): _140.RequestEndBlockAmino; - fromAminoMsg(object: _140.RequestEndBlockAminoMsg): _140.RequestEndBlock; - fromProtoMsg(message: _140.RequestEndBlockProtoMsg): _140.RequestEndBlock; - toProto(message: _140.RequestEndBlock): Uint8Array; - toProtoMsg(message: _140.RequestEndBlock): _140.RequestEndBlockProtoMsg; + typeUrl: string; + encode(message: _141.RequestEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestEndBlock; + fromJSON(object: any): _141.RequestEndBlock; + toJSON(message: _141.RequestEndBlock): unknown; + fromPartial(object: Partial<_141.RequestEndBlock>): _141.RequestEndBlock; + fromAmino(object: _141.RequestEndBlockAmino): _141.RequestEndBlock; + toAmino(message: _141.RequestEndBlock): _141.RequestEndBlockAmino; + fromAminoMsg(object: _141.RequestEndBlockAminoMsg): _141.RequestEndBlock; + fromProtoMsg(message: _141.RequestEndBlockProtoMsg): _141.RequestEndBlock; + toProto(message: _141.RequestEndBlock): Uint8Array; + toProtoMsg(message: _141.RequestEndBlock): _141.RequestEndBlockProtoMsg; }; RequestCommit: { - encode(_: _140.RequestCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestCommit; - fromJSON(_: any): _140.RequestCommit; - toJSON(_: _140.RequestCommit): unknown; - fromPartial(_: Partial<_140.RequestCommit>): _140.RequestCommit; - fromAmino(_: _140.RequestCommitAmino): _140.RequestCommit; - toAmino(_: _140.RequestCommit): _140.RequestCommitAmino; - fromAminoMsg(object: _140.RequestCommitAminoMsg): _140.RequestCommit; - fromProtoMsg(message: _140.RequestCommitProtoMsg): _140.RequestCommit; - toProto(message: _140.RequestCommit): Uint8Array; - toProtoMsg(message: _140.RequestCommit): _140.RequestCommitProtoMsg; + typeUrl: string; + encode(_: _141.RequestCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestCommit; + fromJSON(_: any): _141.RequestCommit; + toJSON(_: _141.RequestCommit): unknown; + fromPartial(_: Partial<_141.RequestCommit>): _141.RequestCommit; + fromAmino(_: _141.RequestCommitAmino): _141.RequestCommit; + toAmino(_: _141.RequestCommit): _141.RequestCommitAmino; + fromAminoMsg(object: _141.RequestCommitAminoMsg): _141.RequestCommit; + fromProtoMsg(message: _141.RequestCommitProtoMsg): _141.RequestCommit; + toProto(message: _141.RequestCommit): Uint8Array; + toProtoMsg(message: _141.RequestCommit): _141.RequestCommitProtoMsg; }; RequestListSnapshots: { - encode(_: _140.RequestListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestListSnapshots; - fromJSON(_: any): _140.RequestListSnapshots; - toJSON(_: _140.RequestListSnapshots): unknown; - fromPartial(_: Partial<_140.RequestListSnapshots>): _140.RequestListSnapshots; - fromAmino(_: _140.RequestListSnapshotsAmino): _140.RequestListSnapshots; - toAmino(_: _140.RequestListSnapshots): _140.RequestListSnapshotsAmino; - fromAminoMsg(object: _140.RequestListSnapshotsAminoMsg): _140.RequestListSnapshots; - fromProtoMsg(message: _140.RequestListSnapshotsProtoMsg): _140.RequestListSnapshots; - toProto(message: _140.RequestListSnapshots): Uint8Array; - toProtoMsg(message: _140.RequestListSnapshots): _140.RequestListSnapshotsProtoMsg; + typeUrl: string; + encode(_: _141.RequestListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestListSnapshots; + fromJSON(_: any): _141.RequestListSnapshots; + toJSON(_: _141.RequestListSnapshots): unknown; + fromPartial(_: Partial<_141.RequestListSnapshots>): _141.RequestListSnapshots; + fromAmino(_: _141.RequestListSnapshotsAmino): _141.RequestListSnapshots; + toAmino(_: _141.RequestListSnapshots): _141.RequestListSnapshotsAmino; + fromAminoMsg(object: _141.RequestListSnapshotsAminoMsg): _141.RequestListSnapshots; + fromProtoMsg(message: _141.RequestListSnapshotsProtoMsg): _141.RequestListSnapshots; + toProto(message: _141.RequestListSnapshots): Uint8Array; + toProtoMsg(message: _141.RequestListSnapshots): _141.RequestListSnapshotsProtoMsg; }; RequestOfferSnapshot: { - encode(message: _140.RequestOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestOfferSnapshot; - fromJSON(object: any): _140.RequestOfferSnapshot; - toJSON(message: _140.RequestOfferSnapshot): unknown; - fromPartial(object: Partial<_140.RequestOfferSnapshot>): _140.RequestOfferSnapshot; - fromAmino(object: _140.RequestOfferSnapshotAmino): _140.RequestOfferSnapshot; - toAmino(message: _140.RequestOfferSnapshot): _140.RequestOfferSnapshotAmino; - fromAminoMsg(object: _140.RequestOfferSnapshotAminoMsg): _140.RequestOfferSnapshot; - fromProtoMsg(message: _140.RequestOfferSnapshotProtoMsg): _140.RequestOfferSnapshot; - toProto(message: _140.RequestOfferSnapshot): Uint8Array; - toProtoMsg(message: _140.RequestOfferSnapshot): _140.RequestOfferSnapshotProtoMsg; + typeUrl: string; + encode(message: _141.RequestOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestOfferSnapshot; + fromJSON(object: any): _141.RequestOfferSnapshot; + toJSON(message: _141.RequestOfferSnapshot): unknown; + fromPartial(object: Partial<_141.RequestOfferSnapshot>): _141.RequestOfferSnapshot; + fromAmino(object: _141.RequestOfferSnapshotAmino): _141.RequestOfferSnapshot; + toAmino(message: _141.RequestOfferSnapshot): _141.RequestOfferSnapshotAmino; + fromAminoMsg(object: _141.RequestOfferSnapshotAminoMsg): _141.RequestOfferSnapshot; + fromProtoMsg(message: _141.RequestOfferSnapshotProtoMsg): _141.RequestOfferSnapshot; + toProto(message: _141.RequestOfferSnapshot): Uint8Array; + toProtoMsg(message: _141.RequestOfferSnapshot): _141.RequestOfferSnapshotProtoMsg; }; RequestLoadSnapshotChunk: { - encode(message: _140.RequestLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestLoadSnapshotChunk; - fromJSON(object: any): _140.RequestLoadSnapshotChunk; - toJSON(message: _140.RequestLoadSnapshotChunk): unknown; - fromPartial(object: Partial<_140.RequestLoadSnapshotChunk>): _140.RequestLoadSnapshotChunk; - fromAmino(object: _140.RequestLoadSnapshotChunkAmino): _140.RequestLoadSnapshotChunk; - toAmino(message: _140.RequestLoadSnapshotChunk): _140.RequestLoadSnapshotChunkAmino; - fromAminoMsg(object: _140.RequestLoadSnapshotChunkAminoMsg): _140.RequestLoadSnapshotChunk; - fromProtoMsg(message: _140.RequestLoadSnapshotChunkProtoMsg): _140.RequestLoadSnapshotChunk; - toProto(message: _140.RequestLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _140.RequestLoadSnapshotChunk): _140.RequestLoadSnapshotChunkProtoMsg; + typeUrl: string; + encode(message: _141.RequestLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestLoadSnapshotChunk; + fromJSON(object: any): _141.RequestLoadSnapshotChunk; + toJSON(message: _141.RequestLoadSnapshotChunk): unknown; + fromPartial(object: Partial<_141.RequestLoadSnapshotChunk>): _141.RequestLoadSnapshotChunk; + fromAmino(object: _141.RequestLoadSnapshotChunkAmino): _141.RequestLoadSnapshotChunk; + toAmino(message: _141.RequestLoadSnapshotChunk): _141.RequestLoadSnapshotChunkAmino; + fromAminoMsg(object: _141.RequestLoadSnapshotChunkAminoMsg): _141.RequestLoadSnapshotChunk; + fromProtoMsg(message: _141.RequestLoadSnapshotChunkProtoMsg): _141.RequestLoadSnapshotChunk; + toProto(message: _141.RequestLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: _141.RequestLoadSnapshotChunk): _141.RequestLoadSnapshotChunkProtoMsg; }; RequestApplySnapshotChunk: { - encode(message: _140.RequestApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestApplySnapshotChunk; - fromJSON(object: any): _140.RequestApplySnapshotChunk; - toJSON(message: _140.RequestApplySnapshotChunk): unknown; - fromPartial(object: Partial<_140.RequestApplySnapshotChunk>): _140.RequestApplySnapshotChunk; - fromAmino(object: _140.RequestApplySnapshotChunkAmino): _140.RequestApplySnapshotChunk; - toAmino(message: _140.RequestApplySnapshotChunk): _140.RequestApplySnapshotChunkAmino; - fromAminoMsg(object: _140.RequestApplySnapshotChunkAminoMsg): _140.RequestApplySnapshotChunk; - fromProtoMsg(message: _140.RequestApplySnapshotChunkProtoMsg): _140.RequestApplySnapshotChunk; - toProto(message: _140.RequestApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _140.RequestApplySnapshotChunk): _140.RequestApplySnapshotChunkProtoMsg; + typeUrl: string; + encode(message: _141.RequestApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestApplySnapshotChunk; + fromJSON(object: any): _141.RequestApplySnapshotChunk; + toJSON(message: _141.RequestApplySnapshotChunk): unknown; + fromPartial(object: Partial<_141.RequestApplySnapshotChunk>): _141.RequestApplySnapshotChunk; + fromAmino(object: _141.RequestApplySnapshotChunkAmino): _141.RequestApplySnapshotChunk; + toAmino(message: _141.RequestApplySnapshotChunk): _141.RequestApplySnapshotChunkAmino; + fromAminoMsg(object: _141.RequestApplySnapshotChunkAminoMsg): _141.RequestApplySnapshotChunk; + fromProtoMsg(message: _141.RequestApplySnapshotChunkProtoMsg): _141.RequestApplySnapshotChunk; + toProto(message: _141.RequestApplySnapshotChunk): Uint8Array; + toProtoMsg(message: _141.RequestApplySnapshotChunk): _141.RequestApplySnapshotChunkProtoMsg; }; RequestPrepareProposal: { - encode(message: _140.RequestPrepareProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestPrepareProposal; - fromJSON(object: any): _140.RequestPrepareProposal; - toJSON(message: _140.RequestPrepareProposal): unknown; - fromPartial(object: Partial<_140.RequestPrepareProposal>): _140.RequestPrepareProposal; - fromAmino(object: _140.RequestPrepareProposalAmino): _140.RequestPrepareProposal; - toAmino(message: _140.RequestPrepareProposal): _140.RequestPrepareProposalAmino; - fromAminoMsg(object: _140.RequestPrepareProposalAminoMsg): _140.RequestPrepareProposal; - fromProtoMsg(message: _140.RequestPrepareProposalProtoMsg): _140.RequestPrepareProposal; - toProto(message: _140.RequestPrepareProposal): Uint8Array; - toProtoMsg(message: _140.RequestPrepareProposal): _140.RequestPrepareProposalProtoMsg; + typeUrl: string; + encode(message: _141.RequestPrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestPrepareProposal; + fromJSON(object: any): _141.RequestPrepareProposal; + toJSON(message: _141.RequestPrepareProposal): unknown; + fromPartial(object: Partial<_141.RequestPrepareProposal>): _141.RequestPrepareProposal; + fromAmino(object: _141.RequestPrepareProposalAmino): _141.RequestPrepareProposal; + toAmino(message: _141.RequestPrepareProposal): _141.RequestPrepareProposalAmino; + fromAminoMsg(object: _141.RequestPrepareProposalAminoMsg): _141.RequestPrepareProposal; + fromProtoMsg(message: _141.RequestPrepareProposalProtoMsg): _141.RequestPrepareProposal; + toProto(message: _141.RequestPrepareProposal): Uint8Array; + toProtoMsg(message: _141.RequestPrepareProposal): _141.RequestPrepareProposalProtoMsg; }; RequestProcessProposal: { - encode(message: _140.RequestProcessProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.RequestProcessProposal; - fromJSON(object: any): _140.RequestProcessProposal; - toJSON(message: _140.RequestProcessProposal): unknown; - fromPartial(object: Partial<_140.RequestProcessProposal>): _140.RequestProcessProposal; - fromAmino(object: _140.RequestProcessProposalAmino): _140.RequestProcessProposal; - toAmino(message: _140.RequestProcessProposal): _140.RequestProcessProposalAmino; - fromAminoMsg(object: _140.RequestProcessProposalAminoMsg): _140.RequestProcessProposal; - fromProtoMsg(message: _140.RequestProcessProposalProtoMsg): _140.RequestProcessProposal; - toProto(message: _140.RequestProcessProposal): Uint8Array; - toProtoMsg(message: _140.RequestProcessProposal): _140.RequestProcessProposalProtoMsg; + typeUrl: string; + encode(message: _141.RequestProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestProcessProposal; + fromJSON(object: any): _141.RequestProcessProposal; + toJSON(message: _141.RequestProcessProposal): unknown; + fromPartial(object: Partial<_141.RequestProcessProposal>): _141.RequestProcessProposal; + fromAmino(object: _141.RequestProcessProposalAmino): _141.RequestProcessProposal; + toAmino(message: _141.RequestProcessProposal): _141.RequestProcessProposalAmino; + fromAminoMsg(object: _141.RequestProcessProposalAminoMsg): _141.RequestProcessProposal; + fromProtoMsg(message: _141.RequestProcessProposalProtoMsg): _141.RequestProcessProposal; + toProto(message: _141.RequestProcessProposal): Uint8Array; + toProtoMsg(message: _141.RequestProcessProposal): _141.RequestProcessProposalProtoMsg; }; Response: { - encode(message: _140.Response, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Response; - fromJSON(object: any): _140.Response; - toJSON(message: _140.Response): unknown; - fromPartial(object: Partial<_140.Response>): _140.Response; - fromAmino(object: _140.ResponseAmino): _140.Response; - toAmino(message: _140.Response): _140.ResponseAmino; - fromAminoMsg(object: _140.ResponseAminoMsg): _140.Response; - fromProtoMsg(message: _140.ResponseProtoMsg): _140.Response; - toProto(message: _140.Response): Uint8Array; - toProtoMsg(message: _140.Response): _140.ResponseProtoMsg; + typeUrl: string; + encode(message: _141.Response, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Response; + fromJSON(object: any): _141.Response; + toJSON(message: _141.Response): unknown; + fromPartial(object: Partial<_141.Response>): _141.Response; + fromAmino(object: _141.ResponseAmino): _141.Response; + toAmino(message: _141.Response): _141.ResponseAmino; + fromAminoMsg(object: _141.ResponseAminoMsg): _141.Response; + fromProtoMsg(message: _141.ResponseProtoMsg): _141.Response; + toProto(message: _141.Response): Uint8Array; + toProtoMsg(message: _141.Response): _141.ResponseProtoMsg; }; ResponseException: { - encode(message: _140.ResponseException, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseException; - fromJSON(object: any): _140.ResponseException; - toJSON(message: _140.ResponseException): unknown; - fromPartial(object: Partial<_140.ResponseException>): _140.ResponseException; - fromAmino(object: _140.ResponseExceptionAmino): _140.ResponseException; - toAmino(message: _140.ResponseException): _140.ResponseExceptionAmino; - fromAminoMsg(object: _140.ResponseExceptionAminoMsg): _140.ResponseException; - fromProtoMsg(message: _140.ResponseExceptionProtoMsg): _140.ResponseException; - toProto(message: _140.ResponseException): Uint8Array; - toProtoMsg(message: _140.ResponseException): _140.ResponseExceptionProtoMsg; + typeUrl: string; + encode(message: _141.ResponseException, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseException; + fromJSON(object: any): _141.ResponseException; + toJSON(message: _141.ResponseException): unknown; + fromPartial(object: Partial<_141.ResponseException>): _141.ResponseException; + fromAmino(object: _141.ResponseExceptionAmino): _141.ResponseException; + toAmino(message: _141.ResponseException): _141.ResponseExceptionAmino; + fromAminoMsg(object: _141.ResponseExceptionAminoMsg): _141.ResponseException; + fromProtoMsg(message: _141.ResponseExceptionProtoMsg): _141.ResponseException; + toProto(message: _141.ResponseException): Uint8Array; + toProtoMsg(message: _141.ResponseException): _141.ResponseExceptionProtoMsg; }; ResponseEcho: { - encode(message: _140.ResponseEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseEcho; - fromJSON(object: any): _140.ResponseEcho; - toJSON(message: _140.ResponseEcho): unknown; - fromPartial(object: Partial<_140.ResponseEcho>): _140.ResponseEcho; - fromAmino(object: _140.ResponseEchoAmino): _140.ResponseEcho; - toAmino(message: _140.ResponseEcho): _140.ResponseEchoAmino; - fromAminoMsg(object: _140.ResponseEchoAminoMsg): _140.ResponseEcho; - fromProtoMsg(message: _140.ResponseEchoProtoMsg): _140.ResponseEcho; - toProto(message: _140.ResponseEcho): Uint8Array; - toProtoMsg(message: _140.ResponseEcho): _140.ResponseEchoProtoMsg; + typeUrl: string; + encode(message: _141.ResponseEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseEcho; + fromJSON(object: any): _141.ResponseEcho; + toJSON(message: _141.ResponseEcho): unknown; + fromPartial(object: Partial<_141.ResponseEcho>): _141.ResponseEcho; + fromAmino(object: _141.ResponseEchoAmino): _141.ResponseEcho; + toAmino(message: _141.ResponseEcho): _141.ResponseEchoAmino; + fromAminoMsg(object: _141.ResponseEchoAminoMsg): _141.ResponseEcho; + fromProtoMsg(message: _141.ResponseEchoProtoMsg): _141.ResponseEcho; + toProto(message: _141.ResponseEcho): Uint8Array; + toProtoMsg(message: _141.ResponseEcho): _141.ResponseEchoProtoMsg; }; ResponseFlush: { - encode(_: _140.ResponseFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseFlush; - fromJSON(_: any): _140.ResponseFlush; - toJSON(_: _140.ResponseFlush): unknown; - fromPartial(_: Partial<_140.ResponseFlush>): _140.ResponseFlush; - fromAmino(_: _140.ResponseFlushAmino): _140.ResponseFlush; - toAmino(_: _140.ResponseFlush): _140.ResponseFlushAmino; - fromAminoMsg(object: _140.ResponseFlushAminoMsg): _140.ResponseFlush; - fromProtoMsg(message: _140.ResponseFlushProtoMsg): _140.ResponseFlush; - toProto(message: _140.ResponseFlush): Uint8Array; - toProtoMsg(message: _140.ResponseFlush): _140.ResponseFlushProtoMsg; + typeUrl: string; + encode(_: _141.ResponseFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseFlush; + fromJSON(_: any): _141.ResponseFlush; + toJSON(_: _141.ResponseFlush): unknown; + fromPartial(_: Partial<_141.ResponseFlush>): _141.ResponseFlush; + fromAmino(_: _141.ResponseFlushAmino): _141.ResponseFlush; + toAmino(_: _141.ResponseFlush): _141.ResponseFlushAmino; + fromAminoMsg(object: _141.ResponseFlushAminoMsg): _141.ResponseFlush; + fromProtoMsg(message: _141.ResponseFlushProtoMsg): _141.ResponseFlush; + toProto(message: _141.ResponseFlush): Uint8Array; + toProtoMsg(message: _141.ResponseFlush): _141.ResponseFlushProtoMsg; }; ResponseInfo: { - encode(message: _140.ResponseInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseInfo; - fromJSON(object: any): _140.ResponseInfo; - toJSON(message: _140.ResponseInfo): unknown; - fromPartial(object: Partial<_140.ResponseInfo>): _140.ResponseInfo; - fromAmino(object: _140.ResponseInfoAmino): _140.ResponseInfo; - toAmino(message: _140.ResponseInfo): _140.ResponseInfoAmino; - fromAminoMsg(object: _140.ResponseInfoAminoMsg): _140.ResponseInfo; - fromProtoMsg(message: _140.ResponseInfoProtoMsg): _140.ResponseInfo; - toProto(message: _140.ResponseInfo): Uint8Array; - toProtoMsg(message: _140.ResponseInfo): _140.ResponseInfoProtoMsg; + typeUrl: string; + encode(message: _141.ResponseInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseInfo; + fromJSON(object: any): _141.ResponseInfo; + toJSON(message: _141.ResponseInfo): unknown; + fromPartial(object: Partial<_141.ResponseInfo>): _141.ResponseInfo; + fromAmino(object: _141.ResponseInfoAmino): _141.ResponseInfo; + toAmino(message: _141.ResponseInfo): _141.ResponseInfoAmino; + fromAminoMsg(object: _141.ResponseInfoAminoMsg): _141.ResponseInfo; + fromProtoMsg(message: _141.ResponseInfoProtoMsg): _141.ResponseInfo; + toProto(message: _141.ResponseInfo): Uint8Array; + toProtoMsg(message: _141.ResponseInfo): _141.ResponseInfoProtoMsg; }; ResponseInitChain: { - encode(message: _140.ResponseInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseInitChain; - fromJSON(object: any): _140.ResponseInitChain; - toJSON(message: _140.ResponseInitChain): unknown; - fromPartial(object: Partial<_140.ResponseInitChain>): _140.ResponseInitChain; - fromAmino(object: _140.ResponseInitChainAmino): _140.ResponseInitChain; - toAmino(message: _140.ResponseInitChain): _140.ResponseInitChainAmino; - fromAminoMsg(object: _140.ResponseInitChainAminoMsg): _140.ResponseInitChain; - fromProtoMsg(message: _140.ResponseInitChainProtoMsg): _140.ResponseInitChain; - toProto(message: _140.ResponseInitChain): Uint8Array; - toProtoMsg(message: _140.ResponseInitChain): _140.ResponseInitChainProtoMsg; + typeUrl: string; + encode(message: _141.ResponseInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseInitChain; + fromJSON(object: any): _141.ResponseInitChain; + toJSON(message: _141.ResponseInitChain): unknown; + fromPartial(object: Partial<_141.ResponseInitChain>): _141.ResponseInitChain; + fromAmino(object: _141.ResponseInitChainAmino): _141.ResponseInitChain; + toAmino(message: _141.ResponseInitChain): _141.ResponseInitChainAmino; + fromAminoMsg(object: _141.ResponseInitChainAminoMsg): _141.ResponseInitChain; + fromProtoMsg(message: _141.ResponseInitChainProtoMsg): _141.ResponseInitChain; + toProto(message: _141.ResponseInitChain): Uint8Array; + toProtoMsg(message: _141.ResponseInitChain): _141.ResponseInitChainProtoMsg; }; ResponseQuery: { - encode(message: _140.ResponseQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseQuery; - fromJSON(object: any): _140.ResponseQuery; - toJSON(message: _140.ResponseQuery): unknown; - fromPartial(object: Partial<_140.ResponseQuery>): _140.ResponseQuery; - fromAmino(object: _140.ResponseQueryAmino): _140.ResponseQuery; - toAmino(message: _140.ResponseQuery): _140.ResponseQueryAmino; - fromAminoMsg(object: _140.ResponseQueryAminoMsg): _140.ResponseQuery; - fromProtoMsg(message: _140.ResponseQueryProtoMsg): _140.ResponseQuery; - toProto(message: _140.ResponseQuery): Uint8Array; - toProtoMsg(message: _140.ResponseQuery): _140.ResponseQueryProtoMsg; + typeUrl: string; + encode(message: _141.ResponseQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseQuery; + fromJSON(object: any): _141.ResponseQuery; + toJSON(message: _141.ResponseQuery): unknown; + fromPartial(object: Partial<_141.ResponseQuery>): _141.ResponseQuery; + fromAmino(object: _141.ResponseQueryAmino): _141.ResponseQuery; + toAmino(message: _141.ResponseQuery): _141.ResponseQueryAmino; + fromAminoMsg(object: _141.ResponseQueryAminoMsg): _141.ResponseQuery; + fromProtoMsg(message: _141.ResponseQueryProtoMsg): _141.ResponseQuery; + toProto(message: _141.ResponseQuery): Uint8Array; + toProtoMsg(message: _141.ResponseQuery): _141.ResponseQueryProtoMsg; }; ResponseBeginBlock: { - encode(message: _140.ResponseBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseBeginBlock; - fromJSON(object: any): _140.ResponseBeginBlock; - toJSON(message: _140.ResponseBeginBlock): unknown; - fromPartial(object: Partial<_140.ResponseBeginBlock>): _140.ResponseBeginBlock; - fromAmino(object: _140.ResponseBeginBlockAmino): _140.ResponseBeginBlock; - toAmino(message: _140.ResponseBeginBlock): _140.ResponseBeginBlockAmino; - fromAminoMsg(object: _140.ResponseBeginBlockAminoMsg): _140.ResponseBeginBlock; - fromProtoMsg(message: _140.ResponseBeginBlockProtoMsg): _140.ResponseBeginBlock; - toProto(message: _140.ResponseBeginBlock): Uint8Array; - toProtoMsg(message: _140.ResponseBeginBlock): _140.ResponseBeginBlockProtoMsg; + typeUrl: string; + encode(message: _141.ResponseBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseBeginBlock; + fromJSON(object: any): _141.ResponseBeginBlock; + toJSON(message: _141.ResponseBeginBlock): unknown; + fromPartial(object: Partial<_141.ResponseBeginBlock>): _141.ResponseBeginBlock; + fromAmino(object: _141.ResponseBeginBlockAmino): _141.ResponseBeginBlock; + toAmino(message: _141.ResponseBeginBlock): _141.ResponseBeginBlockAmino; + fromAminoMsg(object: _141.ResponseBeginBlockAminoMsg): _141.ResponseBeginBlock; + fromProtoMsg(message: _141.ResponseBeginBlockProtoMsg): _141.ResponseBeginBlock; + toProto(message: _141.ResponseBeginBlock): Uint8Array; + toProtoMsg(message: _141.ResponseBeginBlock): _141.ResponseBeginBlockProtoMsg; }; ResponseCheckTx: { - encode(message: _140.ResponseCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseCheckTx; - fromJSON(object: any): _140.ResponseCheckTx; - toJSON(message: _140.ResponseCheckTx): unknown; - fromPartial(object: Partial<_140.ResponseCheckTx>): _140.ResponseCheckTx; - fromAmino(object: _140.ResponseCheckTxAmino): _140.ResponseCheckTx; - toAmino(message: _140.ResponseCheckTx): _140.ResponseCheckTxAmino; - fromAminoMsg(object: _140.ResponseCheckTxAminoMsg): _140.ResponseCheckTx; - fromProtoMsg(message: _140.ResponseCheckTxProtoMsg): _140.ResponseCheckTx; - toProto(message: _140.ResponseCheckTx): Uint8Array; - toProtoMsg(message: _140.ResponseCheckTx): _140.ResponseCheckTxProtoMsg; + typeUrl: string; + encode(message: _141.ResponseCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseCheckTx; + fromJSON(object: any): _141.ResponseCheckTx; + toJSON(message: _141.ResponseCheckTx): unknown; + fromPartial(object: Partial<_141.ResponseCheckTx>): _141.ResponseCheckTx; + fromAmino(object: _141.ResponseCheckTxAmino): _141.ResponseCheckTx; + toAmino(message: _141.ResponseCheckTx): _141.ResponseCheckTxAmino; + fromAminoMsg(object: _141.ResponseCheckTxAminoMsg): _141.ResponseCheckTx; + fromProtoMsg(message: _141.ResponseCheckTxProtoMsg): _141.ResponseCheckTx; + toProto(message: _141.ResponseCheckTx): Uint8Array; + toProtoMsg(message: _141.ResponseCheckTx): _141.ResponseCheckTxProtoMsg; }; ResponseDeliverTx: { - encode(message: _140.ResponseDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseDeliverTx; - fromJSON(object: any): _140.ResponseDeliverTx; - toJSON(message: _140.ResponseDeliverTx): unknown; - fromPartial(object: Partial<_140.ResponseDeliverTx>): _140.ResponseDeliverTx; - fromAmino(object: _140.ResponseDeliverTxAmino): _140.ResponseDeliverTx; - toAmino(message: _140.ResponseDeliverTx): _140.ResponseDeliverTxAmino; - fromAminoMsg(object: _140.ResponseDeliverTxAminoMsg): _140.ResponseDeliverTx; - fromProtoMsg(message: _140.ResponseDeliverTxProtoMsg): _140.ResponseDeliverTx; - toProto(message: _140.ResponseDeliverTx): Uint8Array; - toProtoMsg(message: _140.ResponseDeliverTx): _140.ResponseDeliverTxProtoMsg; + typeUrl: string; + encode(message: _141.ResponseDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseDeliverTx; + fromJSON(object: any): _141.ResponseDeliverTx; + toJSON(message: _141.ResponseDeliverTx): unknown; + fromPartial(object: Partial<_141.ResponseDeliverTx>): _141.ResponseDeliverTx; + fromAmino(object: _141.ResponseDeliverTxAmino): _141.ResponseDeliverTx; + toAmino(message: _141.ResponseDeliverTx): _141.ResponseDeliverTxAmino; + fromAminoMsg(object: _141.ResponseDeliverTxAminoMsg): _141.ResponseDeliverTx; + fromProtoMsg(message: _141.ResponseDeliverTxProtoMsg): _141.ResponseDeliverTx; + toProto(message: _141.ResponseDeliverTx): Uint8Array; + toProtoMsg(message: _141.ResponseDeliverTx): _141.ResponseDeliverTxProtoMsg; }; ResponseEndBlock: { - encode(message: _140.ResponseEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseEndBlock; - fromJSON(object: any): _140.ResponseEndBlock; - toJSON(message: _140.ResponseEndBlock): unknown; - fromPartial(object: Partial<_140.ResponseEndBlock>): _140.ResponseEndBlock; - fromAmino(object: _140.ResponseEndBlockAmino): _140.ResponseEndBlock; - toAmino(message: _140.ResponseEndBlock): _140.ResponseEndBlockAmino; - fromAminoMsg(object: _140.ResponseEndBlockAminoMsg): _140.ResponseEndBlock; - fromProtoMsg(message: _140.ResponseEndBlockProtoMsg): _140.ResponseEndBlock; - toProto(message: _140.ResponseEndBlock): Uint8Array; - toProtoMsg(message: _140.ResponseEndBlock): _140.ResponseEndBlockProtoMsg; + typeUrl: string; + encode(message: _141.ResponseEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseEndBlock; + fromJSON(object: any): _141.ResponseEndBlock; + toJSON(message: _141.ResponseEndBlock): unknown; + fromPartial(object: Partial<_141.ResponseEndBlock>): _141.ResponseEndBlock; + fromAmino(object: _141.ResponseEndBlockAmino): _141.ResponseEndBlock; + toAmino(message: _141.ResponseEndBlock): _141.ResponseEndBlockAmino; + fromAminoMsg(object: _141.ResponseEndBlockAminoMsg): _141.ResponseEndBlock; + fromProtoMsg(message: _141.ResponseEndBlockProtoMsg): _141.ResponseEndBlock; + toProto(message: _141.ResponseEndBlock): Uint8Array; + toProtoMsg(message: _141.ResponseEndBlock): _141.ResponseEndBlockProtoMsg; }; ResponseCommit: { - encode(message: _140.ResponseCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseCommit; - fromJSON(object: any): _140.ResponseCommit; - toJSON(message: _140.ResponseCommit): unknown; - fromPartial(object: Partial<_140.ResponseCommit>): _140.ResponseCommit; - fromAmino(object: _140.ResponseCommitAmino): _140.ResponseCommit; - toAmino(message: _140.ResponseCommit): _140.ResponseCommitAmino; - fromAminoMsg(object: _140.ResponseCommitAminoMsg): _140.ResponseCommit; - fromProtoMsg(message: _140.ResponseCommitProtoMsg): _140.ResponseCommit; - toProto(message: _140.ResponseCommit): Uint8Array; - toProtoMsg(message: _140.ResponseCommit): _140.ResponseCommitProtoMsg; + typeUrl: string; + encode(message: _141.ResponseCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseCommit; + fromJSON(object: any): _141.ResponseCommit; + toJSON(message: _141.ResponseCommit): unknown; + fromPartial(object: Partial<_141.ResponseCommit>): _141.ResponseCommit; + fromAmino(object: _141.ResponseCommitAmino): _141.ResponseCommit; + toAmino(message: _141.ResponseCommit): _141.ResponseCommitAmino; + fromAminoMsg(object: _141.ResponseCommitAminoMsg): _141.ResponseCommit; + fromProtoMsg(message: _141.ResponseCommitProtoMsg): _141.ResponseCommit; + toProto(message: _141.ResponseCommit): Uint8Array; + toProtoMsg(message: _141.ResponseCommit): _141.ResponseCommitProtoMsg; }; ResponseListSnapshots: { - encode(message: _140.ResponseListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseListSnapshots; - fromJSON(object: any): _140.ResponseListSnapshots; - toJSON(message: _140.ResponseListSnapshots): unknown; - fromPartial(object: Partial<_140.ResponseListSnapshots>): _140.ResponseListSnapshots; - fromAmino(object: _140.ResponseListSnapshotsAmino): _140.ResponseListSnapshots; - toAmino(message: _140.ResponseListSnapshots): _140.ResponseListSnapshotsAmino; - fromAminoMsg(object: _140.ResponseListSnapshotsAminoMsg): _140.ResponseListSnapshots; - fromProtoMsg(message: _140.ResponseListSnapshotsProtoMsg): _140.ResponseListSnapshots; - toProto(message: _140.ResponseListSnapshots): Uint8Array; - toProtoMsg(message: _140.ResponseListSnapshots): _140.ResponseListSnapshotsProtoMsg; + typeUrl: string; + encode(message: _141.ResponseListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseListSnapshots; + fromJSON(object: any): _141.ResponseListSnapshots; + toJSON(message: _141.ResponseListSnapshots): unknown; + fromPartial(object: Partial<_141.ResponseListSnapshots>): _141.ResponseListSnapshots; + fromAmino(object: _141.ResponseListSnapshotsAmino): _141.ResponseListSnapshots; + toAmino(message: _141.ResponseListSnapshots): _141.ResponseListSnapshotsAmino; + fromAminoMsg(object: _141.ResponseListSnapshotsAminoMsg): _141.ResponseListSnapshots; + fromProtoMsg(message: _141.ResponseListSnapshotsProtoMsg): _141.ResponseListSnapshots; + toProto(message: _141.ResponseListSnapshots): Uint8Array; + toProtoMsg(message: _141.ResponseListSnapshots): _141.ResponseListSnapshotsProtoMsg; }; ResponseOfferSnapshot: { - encode(message: _140.ResponseOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseOfferSnapshot; - fromJSON(object: any): _140.ResponseOfferSnapshot; - toJSON(message: _140.ResponseOfferSnapshot): unknown; - fromPartial(object: Partial<_140.ResponseOfferSnapshot>): _140.ResponseOfferSnapshot; - fromAmino(object: _140.ResponseOfferSnapshotAmino): _140.ResponseOfferSnapshot; - toAmino(message: _140.ResponseOfferSnapshot): _140.ResponseOfferSnapshotAmino; - fromAminoMsg(object: _140.ResponseOfferSnapshotAminoMsg): _140.ResponseOfferSnapshot; - fromProtoMsg(message: _140.ResponseOfferSnapshotProtoMsg): _140.ResponseOfferSnapshot; - toProto(message: _140.ResponseOfferSnapshot): Uint8Array; - toProtoMsg(message: _140.ResponseOfferSnapshot): _140.ResponseOfferSnapshotProtoMsg; + typeUrl: string; + encode(message: _141.ResponseOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseOfferSnapshot; + fromJSON(object: any): _141.ResponseOfferSnapshot; + toJSON(message: _141.ResponseOfferSnapshot): unknown; + fromPartial(object: Partial<_141.ResponseOfferSnapshot>): _141.ResponseOfferSnapshot; + fromAmino(object: _141.ResponseOfferSnapshotAmino): _141.ResponseOfferSnapshot; + toAmino(message: _141.ResponseOfferSnapshot): _141.ResponseOfferSnapshotAmino; + fromAminoMsg(object: _141.ResponseOfferSnapshotAminoMsg): _141.ResponseOfferSnapshot; + fromProtoMsg(message: _141.ResponseOfferSnapshotProtoMsg): _141.ResponseOfferSnapshot; + toProto(message: _141.ResponseOfferSnapshot): Uint8Array; + toProtoMsg(message: _141.ResponseOfferSnapshot): _141.ResponseOfferSnapshotProtoMsg; }; ResponseLoadSnapshotChunk: { - encode(message: _140.ResponseLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseLoadSnapshotChunk; - fromJSON(object: any): _140.ResponseLoadSnapshotChunk; - toJSON(message: _140.ResponseLoadSnapshotChunk): unknown; - fromPartial(object: Partial<_140.ResponseLoadSnapshotChunk>): _140.ResponseLoadSnapshotChunk; - fromAmino(object: _140.ResponseLoadSnapshotChunkAmino): _140.ResponseLoadSnapshotChunk; - toAmino(message: _140.ResponseLoadSnapshotChunk): _140.ResponseLoadSnapshotChunkAmino; - fromAminoMsg(object: _140.ResponseLoadSnapshotChunkAminoMsg): _140.ResponseLoadSnapshotChunk; - fromProtoMsg(message: _140.ResponseLoadSnapshotChunkProtoMsg): _140.ResponseLoadSnapshotChunk; - toProto(message: _140.ResponseLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _140.ResponseLoadSnapshotChunk): _140.ResponseLoadSnapshotChunkProtoMsg; + typeUrl: string; + encode(message: _141.ResponseLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseLoadSnapshotChunk; + fromJSON(object: any): _141.ResponseLoadSnapshotChunk; + toJSON(message: _141.ResponseLoadSnapshotChunk): unknown; + fromPartial(object: Partial<_141.ResponseLoadSnapshotChunk>): _141.ResponseLoadSnapshotChunk; + fromAmino(object: _141.ResponseLoadSnapshotChunkAmino): _141.ResponseLoadSnapshotChunk; + toAmino(message: _141.ResponseLoadSnapshotChunk): _141.ResponseLoadSnapshotChunkAmino; + fromAminoMsg(object: _141.ResponseLoadSnapshotChunkAminoMsg): _141.ResponseLoadSnapshotChunk; + fromProtoMsg(message: _141.ResponseLoadSnapshotChunkProtoMsg): _141.ResponseLoadSnapshotChunk; + toProto(message: _141.ResponseLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: _141.ResponseLoadSnapshotChunk): _141.ResponseLoadSnapshotChunkProtoMsg; }; ResponseApplySnapshotChunk: { - encode(message: _140.ResponseApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseApplySnapshotChunk; - fromJSON(object: any): _140.ResponseApplySnapshotChunk; - toJSON(message: _140.ResponseApplySnapshotChunk): unknown; - fromPartial(object: Partial<_140.ResponseApplySnapshotChunk>): _140.ResponseApplySnapshotChunk; - fromAmino(object: _140.ResponseApplySnapshotChunkAmino): _140.ResponseApplySnapshotChunk; - toAmino(message: _140.ResponseApplySnapshotChunk): _140.ResponseApplySnapshotChunkAmino; - fromAminoMsg(object: _140.ResponseApplySnapshotChunkAminoMsg): _140.ResponseApplySnapshotChunk; - fromProtoMsg(message: _140.ResponseApplySnapshotChunkProtoMsg): _140.ResponseApplySnapshotChunk; - toProto(message: _140.ResponseApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _140.ResponseApplySnapshotChunk): _140.ResponseApplySnapshotChunkProtoMsg; + typeUrl: string; + encode(message: _141.ResponseApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseApplySnapshotChunk; + fromJSON(object: any): _141.ResponseApplySnapshotChunk; + toJSON(message: _141.ResponseApplySnapshotChunk): unknown; + fromPartial(object: Partial<_141.ResponseApplySnapshotChunk>): _141.ResponseApplySnapshotChunk; + fromAmino(object: _141.ResponseApplySnapshotChunkAmino): _141.ResponseApplySnapshotChunk; + toAmino(message: _141.ResponseApplySnapshotChunk): _141.ResponseApplySnapshotChunkAmino; + fromAminoMsg(object: _141.ResponseApplySnapshotChunkAminoMsg): _141.ResponseApplySnapshotChunk; + fromProtoMsg(message: _141.ResponseApplySnapshotChunkProtoMsg): _141.ResponseApplySnapshotChunk; + toProto(message: _141.ResponseApplySnapshotChunk): Uint8Array; + toProtoMsg(message: _141.ResponseApplySnapshotChunk): _141.ResponseApplySnapshotChunkProtoMsg; }; ResponsePrepareProposal: { - encode(message: _140.ResponsePrepareProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponsePrepareProposal; - fromJSON(object: any): _140.ResponsePrepareProposal; - toJSON(message: _140.ResponsePrepareProposal): unknown; - fromPartial(object: Partial<_140.ResponsePrepareProposal>): _140.ResponsePrepareProposal; - fromAmino(object: _140.ResponsePrepareProposalAmino): _140.ResponsePrepareProposal; - toAmino(message: _140.ResponsePrepareProposal): _140.ResponsePrepareProposalAmino; - fromAminoMsg(object: _140.ResponsePrepareProposalAminoMsg): _140.ResponsePrepareProposal; - fromProtoMsg(message: _140.ResponsePrepareProposalProtoMsg): _140.ResponsePrepareProposal; - toProto(message: _140.ResponsePrepareProposal): Uint8Array; - toProtoMsg(message: _140.ResponsePrepareProposal): _140.ResponsePrepareProposalProtoMsg; + typeUrl: string; + encode(message: _141.ResponsePrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponsePrepareProposal; + fromJSON(object: any): _141.ResponsePrepareProposal; + toJSON(message: _141.ResponsePrepareProposal): unknown; + fromPartial(object: Partial<_141.ResponsePrepareProposal>): _141.ResponsePrepareProposal; + fromAmino(object: _141.ResponsePrepareProposalAmino): _141.ResponsePrepareProposal; + toAmino(message: _141.ResponsePrepareProposal): _141.ResponsePrepareProposalAmino; + fromAminoMsg(object: _141.ResponsePrepareProposalAminoMsg): _141.ResponsePrepareProposal; + fromProtoMsg(message: _141.ResponsePrepareProposalProtoMsg): _141.ResponsePrepareProposal; + toProto(message: _141.ResponsePrepareProposal): Uint8Array; + toProtoMsg(message: _141.ResponsePrepareProposal): _141.ResponsePrepareProposalProtoMsg; }; ResponseProcessProposal: { - encode(message: _140.ResponseProcessProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ResponseProcessProposal; - fromJSON(object: any): _140.ResponseProcessProposal; - toJSON(message: _140.ResponseProcessProposal): unknown; - fromPartial(object: Partial<_140.ResponseProcessProposal>): _140.ResponseProcessProposal; - fromAmino(object: _140.ResponseProcessProposalAmino): _140.ResponseProcessProposal; - toAmino(message: _140.ResponseProcessProposal): _140.ResponseProcessProposalAmino; - fromAminoMsg(object: _140.ResponseProcessProposalAminoMsg): _140.ResponseProcessProposal; - fromProtoMsg(message: _140.ResponseProcessProposalProtoMsg): _140.ResponseProcessProposal; - toProto(message: _140.ResponseProcessProposal): Uint8Array; - toProtoMsg(message: _140.ResponseProcessProposal): _140.ResponseProcessProposalProtoMsg; + typeUrl: string; + encode(message: _141.ResponseProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseProcessProposal; + fromJSON(object: any): _141.ResponseProcessProposal; + toJSON(message: _141.ResponseProcessProposal): unknown; + fromPartial(object: Partial<_141.ResponseProcessProposal>): _141.ResponseProcessProposal; + fromAmino(object: _141.ResponseProcessProposalAmino): _141.ResponseProcessProposal; + toAmino(message: _141.ResponseProcessProposal): _141.ResponseProcessProposalAmino; + fromAminoMsg(object: _141.ResponseProcessProposalAminoMsg): _141.ResponseProcessProposal; + fromProtoMsg(message: _141.ResponseProcessProposalProtoMsg): _141.ResponseProcessProposal; + toProto(message: _141.ResponseProcessProposal): Uint8Array; + toProtoMsg(message: _141.ResponseProcessProposal): _141.ResponseProcessProposalProtoMsg; }; CommitInfo: { - encode(message: _140.CommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.CommitInfo; - fromJSON(object: any): _140.CommitInfo; - toJSON(message: _140.CommitInfo): unknown; - fromPartial(object: Partial<_140.CommitInfo>): _140.CommitInfo; - fromAmino(object: _140.CommitInfoAmino): _140.CommitInfo; - toAmino(message: _140.CommitInfo): _140.CommitInfoAmino; - fromAminoMsg(object: _140.CommitInfoAminoMsg): _140.CommitInfo; - fromProtoMsg(message: _140.CommitInfoProtoMsg): _140.CommitInfo; - toProto(message: _140.CommitInfo): Uint8Array; - toProtoMsg(message: _140.CommitInfo): _140.CommitInfoProtoMsg; + typeUrl: string; + encode(message: _141.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.CommitInfo; + fromJSON(object: any): _141.CommitInfo; + toJSON(message: _141.CommitInfo): unknown; + fromPartial(object: Partial<_141.CommitInfo>): _141.CommitInfo; + fromAmino(object: _141.CommitInfoAmino): _141.CommitInfo; + toAmino(message: _141.CommitInfo): _141.CommitInfoAmino; + fromAminoMsg(object: _141.CommitInfoAminoMsg): _141.CommitInfo; + fromProtoMsg(message: _141.CommitInfoProtoMsg): _141.CommitInfo; + toProto(message: _141.CommitInfo): Uint8Array; + toProtoMsg(message: _141.CommitInfo): _141.CommitInfoProtoMsg; }; ExtendedCommitInfo: { - encode(message: _140.ExtendedCommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ExtendedCommitInfo; - fromJSON(object: any): _140.ExtendedCommitInfo; - toJSON(message: _140.ExtendedCommitInfo): unknown; - fromPartial(object: Partial<_140.ExtendedCommitInfo>): _140.ExtendedCommitInfo; - fromAmino(object: _140.ExtendedCommitInfoAmino): _140.ExtendedCommitInfo; - toAmino(message: _140.ExtendedCommitInfo): _140.ExtendedCommitInfoAmino; - fromAminoMsg(object: _140.ExtendedCommitInfoAminoMsg): _140.ExtendedCommitInfo; - fromProtoMsg(message: _140.ExtendedCommitInfoProtoMsg): _140.ExtendedCommitInfo; - toProto(message: _140.ExtendedCommitInfo): Uint8Array; - toProtoMsg(message: _140.ExtendedCommitInfo): _140.ExtendedCommitInfoProtoMsg; + typeUrl: string; + encode(message: _141.ExtendedCommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ExtendedCommitInfo; + fromJSON(object: any): _141.ExtendedCommitInfo; + toJSON(message: _141.ExtendedCommitInfo): unknown; + fromPartial(object: Partial<_141.ExtendedCommitInfo>): _141.ExtendedCommitInfo; + fromAmino(object: _141.ExtendedCommitInfoAmino): _141.ExtendedCommitInfo; + toAmino(message: _141.ExtendedCommitInfo): _141.ExtendedCommitInfoAmino; + fromAminoMsg(object: _141.ExtendedCommitInfoAminoMsg): _141.ExtendedCommitInfo; + fromProtoMsg(message: _141.ExtendedCommitInfoProtoMsg): _141.ExtendedCommitInfo; + toProto(message: _141.ExtendedCommitInfo): Uint8Array; + toProtoMsg(message: _141.ExtendedCommitInfo): _141.ExtendedCommitInfoProtoMsg; }; Event: { - encode(message: _140.Event, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Event; - fromJSON(object: any): _140.Event; - toJSON(message: _140.Event): unknown; - fromPartial(object: Partial<_140.Event>): _140.Event; - fromAmino(object: _140.EventAmino): _140.Event; - toAmino(message: _140.Event): _140.EventAmino; - fromAminoMsg(object: _140.EventAminoMsg): _140.Event; - fromProtoMsg(message: _140.EventProtoMsg): _140.Event; - toProto(message: _140.Event): Uint8Array; - toProtoMsg(message: _140.Event): _140.EventProtoMsg; + typeUrl: string; + encode(message: _141.Event, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Event; + fromJSON(object: any): _141.Event; + toJSON(message: _141.Event): unknown; + fromPartial(object: Partial<_141.Event>): _141.Event; + fromAmino(object: _141.EventAmino): _141.Event; + toAmino(message: _141.Event): _141.EventAmino; + fromAminoMsg(object: _141.EventAminoMsg): _141.Event; + fromProtoMsg(message: _141.EventProtoMsg): _141.Event; + toProto(message: _141.Event): Uint8Array; + toProtoMsg(message: _141.Event): _141.EventProtoMsg; }; EventAttribute: { - encode(message: _140.EventAttribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.EventAttribute; - fromJSON(object: any): _140.EventAttribute; - toJSON(message: _140.EventAttribute): unknown; - fromPartial(object: Partial<_140.EventAttribute>): _140.EventAttribute; - fromAmino(object: _140.EventAttributeAmino): _140.EventAttribute; - toAmino(message: _140.EventAttribute): _140.EventAttributeAmino; - fromAminoMsg(object: _140.EventAttributeAminoMsg): _140.EventAttribute; - fromProtoMsg(message: _140.EventAttributeProtoMsg): _140.EventAttribute; - toProto(message: _140.EventAttribute): Uint8Array; - toProtoMsg(message: _140.EventAttribute): _140.EventAttributeProtoMsg; + typeUrl: string; + encode(message: _141.EventAttribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.EventAttribute; + fromJSON(object: any): _141.EventAttribute; + toJSON(message: _141.EventAttribute): unknown; + fromPartial(object: Partial<_141.EventAttribute>): _141.EventAttribute; + fromAmino(object: _141.EventAttributeAmino): _141.EventAttribute; + toAmino(message: _141.EventAttribute): _141.EventAttributeAmino; + fromAminoMsg(object: _141.EventAttributeAminoMsg): _141.EventAttribute; + fromProtoMsg(message: _141.EventAttributeProtoMsg): _141.EventAttribute; + toProto(message: _141.EventAttribute): Uint8Array; + toProtoMsg(message: _141.EventAttribute): _141.EventAttributeProtoMsg; }; TxResult: { - encode(message: _140.TxResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.TxResult; - fromJSON(object: any): _140.TxResult; - toJSON(message: _140.TxResult): unknown; - fromPartial(object: Partial<_140.TxResult>): _140.TxResult; - fromAmino(object: _140.TxResultAmino): _140.TxResult; - toAmino(message: _140.TxResult): _140.TxResultAmino; - fromAminoMsg(object: _140.TxResultAminoMsg): _140.TxResult; - fromProtoMsg(message: _140.TxResultProtoMsg): _140.TxResult; - toProto(message: _140.TxResult): Uint8Array; - toProtoMsg(message: _140.TxResult): _140.TxResultProtoMsg; + typeUrl: string; + encode(message: _141.TxResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.TxResult; + fromJSON(object: any): _141.TxResult; + toJSON(message: _141.TxResult): unknown; + fromPartial(object: Partial<_141.TxResult>): _141.TxResult; + fromAmino(object: _141.TxResultAmino): _141.TxResult; + toAmino(message: _141.TxResult): _141.TxResultAmino; + fromAminoMsg(object: _141.TxResultAminoMsg): _141.TxResult; + fromProtoMsg(message: _141.TxResultProtoMsg): _141.TxResult; + toProto(message: _141.TxResult): Uint8Array; + toProtoMsg(message: _141.TxResult): _141.TxResultProtoMsg; }; Validator: { - encode(message: _140.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Validator; - fromJSON(object: any): _140.Validator; - toJSON(message: _140.Validator): unknown; - fromPartial(object: Partial<_140.Validator>): _140.Validator; - fromAmino(object: _140.ValidatorAmino): _140.Validator; - toAmino(message: _140.Validator): _140.ValidatorAmino; - fromAminoMsg(object: _140.ValidatorAminoMsg): _140.Validator; - fromProtoMsg(message: _140.ValidatorProtoMsg): _140.Validator; - toProto(message: _140.Validator): Uint8Array; - toProtoMsg(message: _140.Validator): _140.ValidatorProtoMsg; + typeUrl: string; + encode(message: _141.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Validator; + fromJSON(object: any): _141.Validator; + toJSON(message: _141.Validator): unknown; + fromPartial(object: Partial<_141.Validator>): _141.Validator; + fromAmino(object: _141.ValidatorAmino): _141.Validator; + toAmino(message: _141.Validator): _141.ValidatorAmino; + fromAminoMsg(object: _141.ValidatorAminoMsg): _141.Validator; + fromProtoMsg(message: _141.ValidatorProtoMsg): _141.Validator; + toProto(message: _141.Validator): Uint8Array; + toProtoMsg(message: _141.Validator): _141.ValidatorProtoMsg; }; ValidatorUpdate: { - encode(message: _140.ValidatorUpdate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ValidatorUpdate; - fromJSON(object: any): _140.ValidatorUpdate; - toJSON(message: _140.ValidatorUpdate): unknown; - fromPartial(object: Partial<_140.ValidatorUpdate>): _140.ValidatorUpdate; - fromAmino(object: _140.ValidatorUpdateAmino): _140.ValidatorUpdate; - toAmino(message: _140.ValidatorUpdate): _140.ValidatorUpdateAmino; - fromAminoMsg(object: _140.ValidatorUpdateAminoMsg): _140.ValidatorUpdate; - fromProtoMsg(message: _140.ValidatorUpdateProtoMsg): _140.ValidatorUpdate; - toProto(message: _140.ValidatorUpdate): Uint8Array; - toProtoMsg(message: _140.ValidatorUpdate): _140.ValidatorUpdateProtoMsg; + typeUrl: string; + encode(message: _141.ValidatorUpdate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ValidatorUpdate; + fromJSON(object: any): _141.ValidatorUpdate; + toJSON(message: _141.ValidatorUpdate): unknown; + fromPartial(object: Partial<_141.ValidatorUpdate>): _141.ValidatorUpdate; + fromAmino(object: _141.ValidatorUpdateAmino): _141.ValidatorUpdate; + toAmino(message: _141.ValidatorUpdate): _141.ValidatorUpdateAmino; + fromAminoMsg(object: _141.ValidatorUpdateAminoMsg): _141.ValidatorUpdate; + fromProtoMsg(message: _141.ValidatorUpdateProtoMsg): _141.ValidatorUpdate; + toProto(message: _141.ValidatorUpdate): Uint8Array; + toProtoMsg(message: _141.ValidatorUpdate): _141.ValidatorUpdateProtoMsg; }; VoteInfo: { - encode(message: _140.VoteInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.VoteInfo; - fromJSON(object: any): _140.VoteInfo; - toJSON(message: _140.VoteInfo): unknown; - fromPartial(object: Partial<_140.VoteInfo>): _140.VoteInfo; - fromAmino(object: _140.VoteInfoAmino): _140.VoteInfo; - toAmino(message: _140.VoteInfo): _140.VoteInfoAmino; - fromAminoMsg(object: _140.VoteInfoAminoMsg): _140.VoteInfo; - fromProtoMsg(message: _140.VoteInfoProtoMsg): _140.VoteInfo; - toProto(message: _140.VoteInfo): Uint8Array; - toProtoMsg(message: _140.VoteInfo): _140.VoteInfoProtoMsg; + typeUrl: string; + encode(message: _141.VoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.VoteInfo; + fromJSON(object: any): _141.VoteInfo; + toJSON(message: _141.VoteInfo): unknown; + fromPartial(object: Partial<_141.VoteInfo>): _141.VoteInfo; + fromAmino(object: _141.VoteInfoAmino): _141.VoteInfo; + toAmino(message: _141.VoteInfo): _141.VoteInfoAmino; + fromAminoMsg(object: _141.VoteInfoAminoMsg): _141.VoteInfo; + fromProtoMsg(message: _141.VoteInfoProtoMsg): _141.VoteInfo; + toProto(message: _141.VoteInfo): Uint8Array; + toProtoMsg(message: _141.VoteInfo): _141.VoteInfoProtoMsg; }; ExtendedVoteInfo: { - encode(message: _140.ExtendedVoteInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.ExtendedVoteInfo; - fromJSON(object: any): _140.ExtendedVoteInfo; - toJSON(message: _140.ExtendedVoteInfo): unknown; - fromPartial(object: Partial<_140.ExtendedVoteInfo>): _140.ExtendedVoteInfo; - fromAmino(object: _140.ExtendedVoteInfoAmino): _140.ExtendedVoteInfo; - toAmino(message: _140.ExtendedVoteInfo): _140.ExtendedVoteInfoAmino; - fromAminoMsg(object: _140.ExtendedVoteInfoAminoMsg): _140.ExtendedVoteInfo; - fromProtoMsg(message: _140.ExtendedVoteInfoProtoMsg): _140.ExtendedVoteInfo; - toProto(message: _140.ExtendedVoteInfo): Uint8Array; - toProtoMsg(message: _140.ExtendedVoteInfo): _140.ExtendedVoteInfoProtoMsg; + typeUrl: string; + encode(message: _141.ExtendedVoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ExtendedVoteInfo; + fromJSON(object: any): _141.ExtendedVoteInfo; + toJSON(message: _141.ExtendedVoteInfo): unknown; + fromPartial(object: Partial<_141.ExtendedVoteInfo>): _141.ExtendedVoteInfo; + fromAmino(object: _141.ExtendedVoteInfoAmino): _141.ExtendedVoteInfo; + toAmino(message: _141.ExtendedVoteInfo): _141.ExtendedVoteInfoAmino; + fromAminoMsg(object: _141.ExtendedVoteInfoAminoMsg): _141.ExtendedVoteInfo; + fromProtoMsg(message: _141.ExtendedVoteInfoProtoMsg): _141.ExtendedVoteInfo; + toProto(message: _141.ExtendedVoteInfo): Uint8Array; + toProtoMsg(message: _141.ExtendedVoteInfo): _141.ExtendedVoteInfoProtoMsg; }; Misbehavior: { - encode(message: _140.Misbehavior, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Misbehavior; - fromJSON(object: any): _140.Misbehavior; - toJSON(message: _140.Misbehavior): unknown; - fromPartial(object: Partial<_140.Misbehavior>): _140.Misbehavior; - fromAmino(object: _140.MisbehaviorAmino): _140.Misbehavior; - toAmino(message: _140.Misbehavior): _140.MisbehaviorAmino; - fromAminoMsg(object: _140.MisbehaviorAminoMsg): _140.Misbehavior; - fromProtoMsg(message: _140.MisbehaviorProtoMsg): _140.Misbehavior; - toProto(message: _140.Misbehavior): Uint8Array; - toProtoMsg(message: _140.Misbehavior): _140.MisbehaviorProtoMsg; + typeUrl: string; + encode(message: _141.Misbehavior, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Misbehavior; + fromJSON(object: any): _141.Misbehavior; + toJSON(message: _141.Misbehavior): unknown; + fromPartial(object: Partial<_141.Misbehavior>): _141.Misbehavior; + fromAmino(object: _141.MisbehaviorAmino): _141.Misbehavior; + toAmino(message: _141.Misbehavior): _141.MisbehaviorAmino; + fromAminoMsg(object: _141.MisbehaviorAminoMsg): _141.Misbehavior; + fromProtoMsg(message: _141.MisbehaviorProtoMsg): _141.Misbehavior; + toProto(message: _141.Misbehavior): Uint8Array; + toProtoMsg(message: _141.Misbehavior): _141.MisbehaviorProtoMsg; }; Snapshot: { - encode(message: _140.Snapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _140.Snapshot; - fromJSON(object: any): _140.Snapshot; - toJSON(message: _140.Snapshot): unknown; - fromPartial(object: Partial<_140.Snapshot>): _140.Snapshot; - fromAmino(object: _140.SnapshotAmino): _140.Snapshot; - toAmino(message: _140.Snapshot): _140.SnapshotAmino; - fromAminoMsg(object: _140.SnapshotAminoMsg): _140.Snapshot; - fromProtoMsg(message: _140.SnapshotProtoMsg): _140.Snapshot; - toProto(message: _140.Snapshot): Uint8Array; - toProtoMsg(message: _140.Snapshot): _140.SnapshotProtoMsg; + typeUrl: string; + encode(message: _141.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Snapshot; + fromJSON(object: any): _141.Snapshot; + toJSON(message: _141.Snapshot): unknown; + fromPartial(object: Partial<_141.Snapshot>): _141.Snapshot; + fromAmino(object: _141.SnapshotAmino): _141.Snapshot; + toAmino(message: _141.Snapshot): _141.SnapshotAmino; + fromAminoMsg(object: _141.SnapshotAminoMsg): _141.Snapshot; + fromProtoMsg(message: _141.SnapshotProtoMsg): _141.Snapshot; + toProto(message: _141.Snapshot): Uint8Array; + toProtoMsg(message: _141.Snapshot): _141.SnapshotProtoMsg; }; }; const crypto: { Proof: { - encode(message: _142.Proof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _142.Proof; - fromJSON(object: any): _142.Proof; - toJSON(message: _142.Proof): unknown; - fromPartial(object: Partial<_142.Proof>): _142.Proof; - fromAmino(object: _142.ProofAmino): _142.Proof; - toAmino(message: _142.Proof): _142.ProofAmino; - fromAminoMsg(object: _142.ProofAminoMsg): _142.Proof; - fromProtoMsg(message: _142.ProofProtoMsg): _142.Proof; - toProto(message: _142.Proof): Uint8Array; - toProtoMsg(message: _142.Proof): _142.ProofProtoMsg; + typeUrl: string; + encode(message: _143.Proof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.Proof; + fromJSON(object: any): _143.Proof; + toJSON(message: _143.Proof): unknown; + fromPartial(object: Partial<_143.Proof>): _143.Proof; + fromAmino(object: _143.ProofAmino): _143.Proof; + toAmino(message: _143.Proof): _143.ProofAmino; + fromAminoMsg(object: _143.ProofAminoMsg): _143.Proof; + fromProtoMsg(message: _143.ProofProtoMsg): _143.Proof; + toProto(message: _143.Proof): Uint8Array; + toProtoMsg(message: _143.Proof): _143.ProofProtoMsg; }; ValueOp: { - encode(message: _142.ValueOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _142.ValueOp; - fromJSON(object: any): _142.ValueOp; - toJSON(message: _142.ValueOp): unknown; - fromPartial(object: Partial<_142.ValueOp>): _142.ValueOp; - fromAmino(object: _142.ValueOpAmino): _142.ValueOp; - toAmino(message: _142.ValueOp): _142.ValueOpAmino; - fromAminoMsg(object: _142.ValueOpAminoMsg): _142.ValueOp; - fromProtoMsg(message: _142.ValueOpProtoMsg): _142.ValueOp; - toProto(message: _142.ValueOp): Uint8Array; - toProtoMsg(message: _142.ValueOp): _142.ValueOpProtoMsg; + typeUrl: string; + encode(message: _143.ValueOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ValueOp; + fromJSON(object: any): _143.ValueOp; + toJSON(message: _143.ValueOp): unknown; + fromPartial(object: Partial<_143.ValueOp>): _143.ValueOp; + fromAmino(object: _143.ValueOpAmino): _143.ValueOp; + toAmino(message: _143.ValueOp): _143.ValueOpAmino; + fromAminoMsg(object: _143.ValueOpAminoMsg): _143.ValueOp; + fromProtoMsg(message: _143.ValueOpProtoMsg): _143.ValueOp; + toProto(message: _143.ValueOp): Uint8Array; + toProtoMsg(message: _143.ValueOp): _143.ValueOpProtoMsg; }; DominoOp: { - encode(message: _142.DominoOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _142.DominoOp; - fromJSON(object: any): _142.DominoOp; - toJSON(message: _142.DominoOp): unknown; - fromPartial(object: Partial<_142.DominoOp>): _142.DominoOp; - fromAmino(object: _142.DominoOpAmino): _142.DominoOp; - toAmino(message: _142.DominoOp): _142.DominoOpAmino; - fromAminoMsg(object: _142.DominoOpAminoMsg): _142.DominoOp; - fromProtoMsg(message: _142.DominoOpProtoMsg): _142.DominoOp; - toProto(message: _142.DominoOp): Uint8Array; - toProtoMsg(message: _142.DominoOp): _142.DominoOpProtoMsg; + typeUrl: string; + encode(message: _143.DominoOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.DominoOp; + fromJSON(object: any): _143.DominoOp; + toJSON(message: _143.DominoOp): unknown; + fromPartial(object: Partial<_143.DominoOp>): _143.DominoOp; + fromAmino(object: _143.DominoOpAmino): _143.DominoOp; + toAmino(message: _143.DominoOp): _143.DominoOpAmino; + fromAminoMsg(object: _143.DominoOpAminoMsg): _143.DominoOp; + fromProtoMsg(message: _143.DominoOpProtoMsg): _143.DominoOp; + toProto(message: _143.DominoOp): Uint8Array; + toProtoMsg(message: _143.DominoOp): _143.DominoOpProtoMsg; }; ProofOp: { - encode(message: _142.ProofOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _142.ProofOp; - fromJSON(object: any): _142.ProofOp; - toJSON(message: _142.ProofOp): unknown; - fromPartial(object: Partial<_142.ProofOp>): _142.ProofOp; - fromAmino(object: _142.ProofOpAmino): _142.ProofOp; - toAmino(message: _142.ProofOp): _142.ProofOpAmino; - fromAminoMsg(object: _142.ProofOpAminoMsg): _142.ProofOp; - fromProtoMsg(message: _142.ProofOpProtoMsg): _142.ProofOp; - toProto(message: _142.ProofOp): Uint8Array; - toProtoMsg(message: _142.ProofOp): _142.ProofOpProtoMsg; + typeUrl: string; + encode(message: _143.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ProofOp; + fromJSON(object: any): _143.ProofOp; + toJSON(message: _143.ProofOp): unknown; + fromPartial(object: Partial<_143.ProofOp>): _143.ProofOp; + fromAmino(object: _143.ProofOpAmino): _143.ProofOp; + toAmino(message: _143.ProofOp): _143.ProofOpAmino; + fromAminoMsg(object: _143.ProofOpAminoMsg): _143.ProofOp; + fromProtoMsg(message: _143.ProofOpProtoMsg): _143.ProofOp; + toProto(message: _143.ProofOp): Uint8Array; + toProtoMsg(message: _143.ProofOp): _143.ProofOpProtoMsg; }; ProofOps: { - encode(message: _142.ProofOps, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _142.ProofOps; - fromJSON(object: any): _142.ProofOps; - toJSON(message: _142.ProofOps): unknown; - fromPartial(object: Partial<_142.ProofOps>): _142.ProofOps; - fromAmino(object: _142.ProofOpsAmino): _142.ProofOps; - toAmino(message: _142.ProofOps): _142.ProofOpsAmino; - fromAminoMsg(object: _142.ProofOpsAminoMsg): _142.ProofOps; - fromProtoMsg(message: _142.ProofOpsProtoMsg): _142.ProofOps; - toProto(message: _142.ProofOps): Uint8Array; - toProtoMsg(message: _142.ProofOps): _142.ProofOpsProtoMsg; + typeUrl: string; + encode(message: _143.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ProofOps; + fromJSON(object: any): _143.ProofOps; + toJSON(message: _143.ProofOps): unknown; + fromPartial(object: Partial<_143.ProofOps>): _143.ProofOps; + fromAmino(object: _143.ProofOpsAmino): _143.ProofOps; + toAmino(message: _143.ProofOps): _143.ProofOpsAmino; + fromAminoMsg(object: _143.ProofOpsAminoMsg): _143.ProofOps; + fromProtoMsg(message: _143.ProofOpsProtoMsg): _143.ProofOps; + toProto(message: _143.ProofOps): Uint8Array; + toProtoMsg(message: _143.ProofOps): _143.ProofOpsProtoMsg; }; PublicKey: { - encode(message: _141.PublicKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _141.PublicKey; - fromJSON(object: any): _141.PublicKey; - toJSON(message: _141.PublicKey): unknown; - fromPartial(object: Partial<_141.PublicKey>): _141.PublicKey; - fromAmino(object: _141.PublicKeyAmino): _141.PublicKey; - toAmino(message: _141.PublicKey): _141.PublicKeyAmino; - fromAminoMsg(object: _141.PublicKeyAminoMsg): _141.PublicKey; - fromProtoMsg(message: _141.PublicKeyProtoMsg): _141.PublicKey; - toProto(message: _141.PublicKey): Uint8Array; - toProtoMsg(message: _141.PublicKey): _141.PublicKeyProtoMsg; + typeUrl: string; + encode(message: _142.PublicKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _142.PublicKey; + fromJSON(object: any): _142.PublicKey; + toJSON(message: _142.PublicKey): unknown; + fromPartial(object: Partial<_142.PublicKey>): _142.PublicKey; + fromAmino(object: _142.PublicKeyAmino): _142.PublicKey; + toAmino(message: _142.PublicKey): _142.PublicKeyAmino; + fromAminoMsg(object: _142.PublicKeyAminoMsg): _142.PublicKey; + fromProtoMsg(message: _142.PublicKeyProtoMsg): _142.PublicKey; + toProto(message: _142.PublicKey): Uint8Array; + toProtoMsg(message: _142.PublicKey): _142.PublicKeyProtoMsg; }; }; namespace libs { const bits: { BitArray: { - encode(message: _143.BitArray, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _143.BitArray; - fromJSON(object: any): _143.BitArray; - toJSON(message: _143.BitArray): unknown; - fromPartial(object: Partial<_143.BitArray>): _143.BitArray; - fromAmino(object: _143.BitArrayAmino): _143.BitArray; - toAmino(message: _143.BitArray): _143.BitArrayAmino; - fromAminoMsg(object: _143.BitArrayAminoMsg): _143.BitArray; - fromProtoMsg(message: _143.BitArrayProtoMsg): _143.BitArray; - toProto(message: _143.BitArray): Uint8Array; - toProtoMsg(message: _143.BitArray): _143.BitArrayProtoMsg; + typeUrl: string; + encode(message: _144.BitArray, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _144.BitArray; + fromJSON(object: any): _144.BitArray; + toJSON(message: _144.BitArray): unknown; + fromPartial(object: Partial<_144.BitArray>): _144.BitArray; + fromAmino(object: _144.BitArrayAmino): _144.BitArray; + toAmino(message: _144.BitArray): _144.BitArrayAmino; + fromAminoMsg(object: _144.BitArrayAminoMsg): _144.BitArray; + fromProtoMsg(message: _144.BitArrayProtoMsg): _144.BitArray; + toProto(message: _144.BitArray): Uint8Array; + toProtoMsg(message: _144.BitArray): _144.BitArrayProtoMsg; }; }; } const p2p: { NetAddress: { - encode(message: _144.NetAddress, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _144.NetAddress; - fromJSON(object: any): _144.NetAddress; - toJSON(message: _144.NetAddress): unknown; - fromPartial(object: Partial<_144.NetAddress>): _144.NetAddress; - fromAmino(object: _144.NetAddressAmino): _144.NetAddress; - toAmino(message: _144.NetAddress): _144.NetAddressAmino; - fromAminoMsg(object: _144.NetAddressAminoMsg): _144.NetAddress; - fromProtoMsg(message: _144.NetAddressProtoMsg): _144.NetAddress; - toProto(message: _144.NetAddress): Uint8Array; - toProtoMsg(message: _144.NetAddress): _144.NetAddressProtoMsg; + typeUrl: string; + encode(message: _145.NetAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.NetAddress; + fromJSON(object: any): _145.NetAddress; + toJSON(message: _145.NetAddress): unknown; + fromPartial(object: Partial<_145.NetAddress>): _145.NetAddress; + fromAmino(object: _145.NetAddressAmino): _145.NetAddress; + toAmino(message: _145.NetAddress): _145.NetAddressAmino; + fromAminoMsg(object: _145.NetAddressAminoMsg): _145.NetAddress; + fromProtoMsg(message: _145.NetAddressProtoMsg): _145.NetAddress; + toProto(message: _145.NetAddress): Uint8Array; + toProtoMsg(message: _145.NetAddress): _145.NetAddressProtoMsg; }; ProtocolVersion: { - encode(message: _144.ProtocolVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _144.ProtocolVersion; - fromJSON(object: any): _144.ProtocolVersion; - toJSON(message: _144.ProtocolVersion): unknown; - fromPartial(object: Partial<_144.ProtocolVersion>): _144.ProtocolVersion; - fromAmino(object: _144.ProtocolVersionAmino): _144.ProtocolVersion; - toAmino(message: _144.ProtocolVersion): _144.ProtocolVersionAmino; - fromAminoMsg(object: _144.ProtocolVersionAminoMsg): _144.ProtocolVersion; - fromProtoMsg(message: _144.ProtocolVersionProtoMsg): _144.ProtocolVersion; - toProto(message: _144.ProtocolVersion): Uint8Array; - toProtoMsg(message: _144.ProtocolVersion): _144.ProtocolVersionProtoMsg; + typeUrl: string; + encode(message: _145.ProtocolVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.ProtocolVersion; + fromJSON(object: any): _145.ProtocolVersion; + toJSON(message: _145.ProtocolVersion): unknown; + fromPartial(object: Partial<_145.ProtocolVersion>): _145.ProtocolVersion; + fromAmino(object: _145.ProtocolVersionAmino): _145.ProtocolVersion; + toAmino(message: _145.ProtocolVersion): _145.ProtocolVersionAmino; + fromAminoMsg(object: _145.ProtocolVersionAminoMsg): _145.ProtocolVersion; + fromProtoMsg(message: _145.ProtocolVersionProtoMsg): _145.ProtocolVersion; + toProto(message: _145.ProtocolVersion): Uint8Array; + toProtoMsg(message: _145.ProtocolVersion): _145.ProtocolVersionProtoMsg; }; DefaultNodeInfo: { - encode(message: _144.DefaultNodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _144.DefaultNodeInfo; - fromJSON(object: any): _144.DefaultNodeInfo; - toJSON(message: _144.DefaultNodeInfo): unknown; - fromPartial(object: Partial<_144.DefaultNodeInfo>): _144.DefaultNodeInfo; - fromAmino(object: _144.DefaultNodeInfoAmino): _144.DefaultNodeInfo; - toAmino(message: _144.DefaultNodeInfo): _144.DefaultNodeInfoAmino; - fromAminoMsg(object: _144.DefaultNodeInfoAminoMsg): _144.DefaultNodeInfo; - fromProtoMsg(message: _144.DefaultNodeInfoProtoMsg): _144.DefaultNodeInfo; - toProto(message: _144.DefaultNodeInfo): Uint8Array; - toProtoMsg(message: _144.DefaultNodeInfo): _144.DefaultNodeInfoProtoMsg; + typeUrl: string; + encode(message: _145.DefaultNodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.DefaultNodeInfo; + fromJSON(object: any): _145.DefaultNodeInfo; + toJSON(message: _145.DefaultNodeInfo): unknown; + fromPartial(object: Partial<_145.DefaultNodeInfo>): _145.DefaultNodeInfo; + fromAmino(object: _145.DefaultNodeInfoAmino): _145.DefaultNodeInfo; + toAmino(message: _145.DefaultNodeInfo): _145.DefaultNodeInfoAmino; + fromAminoMsg(object: _145.DefaultNodeInfoAminoMsg): _145.DefaultNodeInfo; + fromProtoMsg(message: _145.DefaultNodeInfoProtoMsg): _145.DefaultNodeInfo; + toProto(message: _145.DefaultNodeInfo): Uint8Array; + toProtoMsg(message: _145.DefaultNodeInfo): _145.DefaultNodeInfoProtoMsg; }; DefaultNodeInfoOther: { - encode(message: _144.DefaultNodeInfoOther, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _144.DefaultNodeInfoOther; - fromJSON(object: any): _144.DefaultNodeInfoOther; - toJSON(message: _144.DefaultNodeInfoOther): unknown; - fromPartial(object: Partial<_144.DefaultNodeInfoOther>): _144.DefaultNodeInfoOther; - fromAmino(object: _144.DefaultNodeInfoOtherAmino): _144.DefaultNodeInfoOther; - toAmino(message: _144.DefaultNodeInfoOther): _144.DefaultNodeInfoOtherAmino; - fromAminoMsg(object: _144.DefaultNodeInfoOtherAminoMsg): _144.DefaultNodeInfoOther; - fromProtoMsg(message: _144.DefaultNodeInfoOtherProtoMsg): _144.DefaultNodeInfoOther; - toProto(message: _144.DefaultNodeInfoOther): Uint8Array; - toProtoMsg(message: _144.DefaultNodeInfoOther): _144.DefaultNodeInfoOtherProtoMsg; + typeUrl: string; + encode(message: _145.DefaultNodeInfoOther, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.DefaultNodeInfoOther; + fromJSON(object: any): _145.DefaultNodeInfoOther; + toJSON(message: _145.DefaultNodeInfoOther): unknown; + fromPartial(object: Partial<_145.DefaultNodeInfoOther>): _145.DefaultNodeInfoOther; + fromAmino(object: _145.DefaultNodeInfoOtherAmino): _145.DefaultNodeInfoOther; + toAmino(message: _145.DefaultNodeInfoOther): _145.DefaultNodeInfoOtherAmino; + fromAminoMsg(object: _145.DefaultNodeInfoOtherAminoMsg): _145.DefaultNodeInfoOther; + fromProtoMsg(message: _145.DefaultNodeInfoOtherProtoMsg): _145.DefaultNodeInfoOther; + toProto(message: _145.DefaultNodeInfoOther): Uint8Array; + toProtoMsg(message: _145.DefaultNodeInfoOther): _145.DefaultNodeInfoOtherProtoMsg; }; }; const types: { ValidatorSet: { - encode(message: _149.ValidatorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _149.ValidatorSet; - fromJSON(object: any): _149.ValidatorSet; - toJSON(message: _149.ValidatorSet): unknown; - fromPartial(object: Partial<_149.ValidatorSet>): _149.ValidatorSet; - fromAmino(object: _149.ValidatorSetAmino): _149.ValidatorSet; - toAmino(message: _149.ValidatorSet): _149.ValidatorSetAmino; - fromAminoMsg(object: _149.ValidatorSetAminoMsg): _149.ValidatorSet; - fromProtoMsg(message: _149.ValidatorSetProtoMsg): _149.ValidatorSet; - toProto(message: _149.ValidatorSet): Uint8Array; - toProtoMsg(message: _149.ValidatorSet): _149.ValidatorSetProtoMsg; + typeUrl: string; + encode(message: _150.ValidatorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.ValidatorSet; + fromJSON(object: any): _150.ValidatorSet; + toJSON(message: _150.ValidatorSet): unknown; + fromPartial(object: Partial<_150.ValidatorSet>): _150.ValidatorSet; + fromAmino(object: _150.ValidatorSetAmino): _150.ValidatorSet; + toAmino(message: _150.ValidatorSet): _150.ValidatorSetAmino; + fromAminoMsg(object: _150.ValidatorSetAminoMsg): _150.ValidatorSet; + fromProtoMsg(message: _150.ValidatorSetProtoMsg): _150.ValidatorSet; + toProto(message: _150.ValidatorSet): Uint8Array; + toProtoMsg(message: _150.ValidatorSet): _150.ValidatorSetProtoMsg; }; Validator: { - encode(message: _149.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _149.Validator; - fromJSON(object: any): _149.Validator; - toJSON(message: _149.Validator): unknown; - fromPartial(object: Partial<_149.Validator>): _149.Validator; - fromAmino(object: _149.ValidatorAmino): _149.Validator; - toAmino(message: _149.Validator): _149.ValidatorAmino; - fromAminoMsg(object: _149.ValidatorAminoMsg): _149.Validator; - fromProtoMsg(message: _149.ValidatorProtoMsg): _149.Validator; - toProto(message: _149.Validator): Uint8Array; - toProtoMsg(message: _149.Validator): _149.ValidatorProtoMsg; + typeUrl: string; + encode(message: _150.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.Validator; + fromJSON(object: any): _150.Validator; + toJSON(message: _150.Validator): unknown; + fromPartial(object: Partial<_150.Validator>): _150.Validator; + fromAmino(object: _150.ValidatorAmino): _150.Validator; + toAmino(message: _150.Validator): _150.ValidatorAmino; + fromAminoMsg(object: _150.ValidatorAminoMsg): _150.Validator; + fromProtoMsg(message: _150.ValidatorProtoMsg): _150.Validator; + toProto(message: _150.Validator): Uint8Array; + toProtoMsg(message: _150.Validator): _150.ValidatorProtoMsg; }; SimpleValidator: { - encode(message: _149.SimpleValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _149.SimpleValidator; - fromJSON(object: any): _149.SimpleValidator; - toJSON(message: _149.SimpleValidator): unknown; - fromPartial(object: Partial<_149.SimpleValidator>): _149.SimpleValidator; - fromAmino(object: _149.SimpleValidatorAmino): _149.SimpleValidator; - toAmino(message: _149.SimpleValidator): _149.SimpleValidatorAmino; - fromAminoMsg(object: _149.SimpleValidatorAminoMsg): _149.SimpleValidator; - fromProtoMsg(message: _149.SimpleValidatorProtoMsg): _149.SimpleValidator; - toProto(message: _149.SimpleValidator): Uint8Array; - toProtoMsg(message: _149.SimpleValidator): _149.SimpleValidatorProtoMsg; - }; - blockIDFlagFromJSON(object: any): _148.BlockIDFlag; - blockIDFlagToJSON(object: _148.BlockIDFlag): string; - signedMsgTypeFromJSON(object: any): _148.SignedMsgType; - signedMsgTypeToJSON(object: _148.SignedMsgType): string; - BlockIDFlag: typeof _148.BlockIDFlag; - BlockIDFlagSDKType: typeof _148.BlockIDFlag; - BlockIDFlagAmino: typeof _148.BlockIDFlag; - SignedMsgType: typeof _148.SignedMsgType; - SignedMsgTypeSDKType: typeof _148.SignedMsgType; - SignedMsgTypeAmino: typeof _148.SignedMsgType; + typeUrl: string; + encode(message: _150.SimpleValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.SimpleValidator; + fromJSON(object: any): _150.SimpleValidator; + toJSON(message: _150.SimpleValidator): unknown; + fromPartial(object: Partial<_150.SimpleValidator>): _150.SimpleValidator; + fromAmino(object: _150.SimpleValidatorAmino): _150.SimpleValidator; + toAmino(message: _150.SimpleValidator): _150.SimpleValidatorAmino; + fromAminoMsg(object: _150.SimpleValidatorAminoMsg): _150.SimpleValidator; + fromProtoMsg(message: _150.SimpleValidatorProtoMsg): _150.SimpleValidator; + toProto(message: _150.SimpleValidator): Uint8Array; + toProtoMsg(message: _150.SimpleValidator): _150.SimpleValidatorProtoMsg; + }; + blockIDFlagFromJSON(object: any): _149.BlockIDFlag; + blockIDFlagToJSON(object: _149.BlockIDFlag): string; + signedMsgTypeFromJSON(object: any): _149.SignedMsgType; + signedMsgTypeToJSON(object: _149.SignedMsgType): string; + BlockIDFlag: typeof _149.BlockIDFlag; + BlockIDFlagSDKType: typeof _149.BlockIDFlag; + BlockIDFlagAmino: typeof _149.BlockIDFlag; + SignedMsgType: typeof _149.SignedMsgType; + SignedMsgTypeSDKType: typeof _149.SignedMsgType; + SignedMsgTypeAmino: typeof _149.SignedMsgType; PartSetHeader: { - encode(message: _148.PartSetHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.PartSetHeader; - fromJSON(object: any): _148.PartSetHeader; - toJSON(message: _148.PartSetHeader): unknown; - fromPartial(object: Partial<_148.PartSetHeader>): _148.PartSetHeader; - fromAmino(object: _148.PartSetHeaderAmino): _148.PartSetHeader; - toAmino(message: _148.PartSetHeader): _148.PartSetHeaderAmino; - fromAminoMsg(object: _148.PartSetHeaderAminoMsg): _148.PartSetHeader; - fromProtoMsg(message: _148.PartSetHeaderProtoMsg): _148.PartSetHeader; - toProto(message: _148.PartSetHeader): Uint8Array; - toProtoMsg(message: _148.PartSetHeader): _148.PartSetHeaderProtoMsg; + typeUrl: string; + encode(message: _149.PartSetHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.PartSetHeader; + fromJSON(object: any): _149.PartSetHeader; + toJSON(message: _149.PartSetHeader): unknown; + fromPartial(object: Partial<_149.PartSetHeader>): _149.PartSetHeader; + fromAmino(object: _149.PartSetHeaderAmino): _149.PartSetHeader; + toAmino(message: _149.PartSetHeader): _149.PartSetHeaderAmino; + fromAminoMsg(object: _149.PartSetHeaderAminoMsg): _149.PartSetHeader; + fromProtoMsg(message: _149.PartSetHeaderProtoMsg): _149.PartSetHeader; + toProto(message: _149.PartSetHeader): Uint8Array; + toProtoMsg(message: _149.PartSetHeader): _149.PartSetHeaderProtoMsg; }; Part: { - encode(message: _148.Part, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Part; - fromJSON(object: any): _148.Part; - toJSON(message: _148.Part): unknown; - fromPartial(object: Partial<_148.Part>): _148.Part; - fromAmino(object: _148.PartAmino): _148.Part; - toAmino(message: _148.Part): _148.PartAmino; - fromAminoMsg(object: _148.PartAminoMsg): _148.Part; - fromProtoMsg(message: _148.PartProtoMsg): _148.Part; - toProto(message: _148.Part): Uint8Array; - toProtoMsg(message: _148.Part): _148.PartProtoMsg; + typeUrl: string; + encode(message: _149.Part, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Part; + fromJSON(object: any): _149.Part; + toJSON(message: _149.Part): unknown; + fromPartial(object: Partial<_149.Part>): _149.Part; + fromAmino(object: _149.PartAmino): _149.Part; + toAmino(message: _149.Part): _149.PartAmino; + fromAminoMsg(object: _149.PartAminoMsg): _149.Part; + fromProtoMsg(message: _149.PartProtoMsg): _149.Part; + toProto(message: _149.Part): Uint8Array; + toProtoMsg(message: _149.Part): _149.PartProtoMsg; }; BlockID: { - encode(message: _148.BlockID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.BlockID; - fromJSON(object: any): _148.BlockID; - toJSON(message: _148.BlockID): unknown; - fromPartial(object: Partial<_148.BlockID>): _148.BlockID; - fromAmino(object: _148.BlockIDAmino): _148.BlockID; - toAmino(message: _148.BlockID): _148.BlockIDAmino; - fromAminoMsg(object: _148.BlockIDAminoMsg): _148.BlockID; - fromProtoMsg(message: _148.BlockIDProtoMsg): _148.BlockID; - toProto(message: _148.BlockID): Uint8Array; - toProtoMsg(message: _148.BlockID): _148.BlockIDProtoMsg; + typeUrl: string; + encode(message: _149.BlockID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.BlockID; + fromJSON(object: any): _149.BlockID; + toJSON(message: _149.BlockID): unknown; + fromPartial(object: Partial<_149.BlockID>): _149.BlockID; + fromAmino(object: _149.BlockIDAmino): _149.BlockID; + toAmino(message: _149.BlockID): _149.BlockIDAmino; + fromAminoMsg(object: _149.BlockIDAminoMsg): _149.BlockID; + fromProtoMsg(message: _149.BlockIDProtoMsg): _149.BlockID; + toProto(message: _149.BlockID): Uint8Array; + toProtoMsg(message: _149.BlockID): _149.BlockIDProtoMsg; }; Header: { - encode(message: _148.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Header; - fromJSON(object: any): _148.Header; - toJSON(message: _148.Header): unknown; - fromPartial(object: Partial<_148.Header>): _148.Header; - fromAmino(object: _148.HeaderAmino): _148.Header; - toAmino(message: _148.Header): _148.HeaderAmino; - fromAminoMsg(object: _148.HeaderAminoMsg): _148.Header; - fromProtoMsg(message: _148.HeaderProtoMsg): _148.Header; - toProto(message: _148.Header): Uint8Array; - toProtoMsg(message: _148.Header): _148.HeaderProtoMsg; + typeUrl: string; + encode(message: _149.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Header; + fromJSON(object: any): _149.Header; + toJSON(message: _149.Header): unknown; + fromPartial(object: Partial<_149.Header>): _149.Header; + fromAmino(object: _149.HeaderAmino): _149.Header; + toAmino(message: _149.Header): _149.HeaderAmino; + fromAminoMsg(object: _149.HeaderAminoMsg): _149.Header; + fromProtoMsg(message: _149.HeaderProtoMsg): _149.Header; + toProto(message: _149.Header): Uint8Array; + toProtoMsg(message: _149.Header): _149.HeaderProtoMsg; }; Data: { - encode(message: _148.Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Data; - fromJSON(object: any): _148.Data; - toJSON(message: _148.Data): unknown; - fromPartial(object: Partial<_148.Data>): _148.Data; - fromAmino(object: _148.DataAmino): _148.Data; - toAmino(message: _148.Data): _148.DataAmino; - fromAminoMsg(object: _148.DataAminoMsg): _148.Data; - fromProtoMsg(message: _148.DataProtoMsg): _148.Data; - toProto(message: _148.Data): Uint8Array; - toProtoMsg(message: _148.Data): _148.DataProtoMsg; + typeUrl: string; + encode(message: _149.Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Data; + fromJSON(object: any): _149.Data; + toJSON(message: _149.Data): unknown; + fromPartial(object: Partial<_149.Data>): _149.Data; + fromAmino(object: _149.DataAmino): _149.Data; + toAmino(message: _149.Data): _149.DataAmino; + fromAminoMsg(object: _149.DataAminoMsg): _149.Data; + fromProtoMsg(message: _149.DataProtoMsg): _149.Data; + toProto(message: _149.Data): Uint8Array; + toProtoMsg(message: _149.Data): _149.DataProtoMsg; }; Vote: { - encode(message: _148.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Vote; - fromJSON(object: any): _148.Vote; - toJSON(message: _148.Vote): unknown; - fromPartial(object: Partial<_148.Vote>): _148.Vote; - fromAmino(object: _148.VoteAmino): _148.Vote; - toAmino(message: _148.Vote): _148.VoteAmino; - fromAminoMsg(object: _148.VoteAminoMsg): _148.Vote; - fromProtoMsg(message: _148.VoteProtoMsg): _148.Vote; - toProto(message: _148.Vote): Uint8Array; - toProtoMsg(message: _148.Vote): _148.VoteProtoMsg; + typeUrl: string; + encode(message: _149.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Vote; + fromJSON(object: any): _149.Vote; + toJSON(message: _149.Vote): unknown; + fromPartial(object: Partial<_149.Vote>): _149.Vote; + fromAmino(object: _149.VoteAmino): _149.Vote; + toAmino(message: _149.Vote): _149.VoteAmino; + fromAminoMsg(object: _149.VoteAminoMsg): _149.Vote; + fromProtoMsg(message: _149.VoteProtoMsg): _149.Vote; + toProto(message: _149.Vote): Uint8Array; + toProtoMsg(message: _149.Vote): _149.VoteProtoMsg; }; Commit: { - encode(message: _148.Commit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Commit; - fromJSON(object: any): _148.Commit; - toJSON(message: _148.Commit): unknown; - fromPartial(object: Partial<_148.Commit>): _148.Commit; - fromAmino(object: _148.CommitAmino): _148.Commit; - toAmino(message: _148.Commit): _148.CommitAmino; - fromAminoMsg(object: _148.CommitAminoMsg): _148.Commit; - fromProtoMsg(message: _148.CommitProtoMsg): _148.Commit; - toProto(message: _148.Commit): Uint8Array; - toProtoMsg(message: _148.Commit): _148.CommitProtoMsg; + typeUrl: string; + encode(message: _149.Commit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Commit; + fromJSON(object: any): _149.Commit; + toJSON(message: _149.Commit): unknown; + fromPartial(object: Partial<_149.Commit>): _149.Commit; + fromAmino(object: _149.CommitAmino): _149.Commit; + toAmino(message: _149.Commit): _149.CommitAmino; + fromAminoMsg(object: _149.CommitAminoMsg): _149.Commit; + fromProtoMsg(message: _149.CommitProtoMsg): _149.Commit; + toProto(message: _149.Commit): Uint8Array; + toProtoMsg(message: _149.Commit): _149.CommitProtoMsg; }; CommitSig: { - encode(message: _148.CommitSig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.CommitSig; - fromJSON(object: any): _148.CommitSig; - toJSON(message: _148.CommitSig): unknown; - fromPartial(object: Partial<_148.CommitSig>): _148.CommitSig; - fromAmino(object: _148.CommitSigAmino): _148.CommitSig; - toAmino(message: _148.CommitSig): _148.CommitSigAmino; - fromAminoMsg(object: _148.CommitSigAminoMsg): _148.CommitSig; - fromProtoMsg(message: _148.CommitSigProtoMsg): _148.CommitSig; - toProto(message: _148.CommitSig): Uint8Array; - toProtoMsg(message: _148.CommitSig): _148.CommitSigProtoMsg; + typeUrl: string; + encode(message: _149.CommitSig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.CommitSig; + fromJSON(object: any): _149.CommitSig; + toJSON(message: _149.CommitSig): unknown; + fromPartial(object: Partial<_149.CommitSig>): _149.CommitSig; + fromAmino(object: _149.CommitSigAmino): _149.CommitSig; + toAmino(message: _149.CommitSig): _149.CommitSigAmino; + fromAminoMsg(object: _149.CommitSigAminoMsg): _149.CommitSig; + fromProtoMsg(message: _149.CommitSigProtoMsg): _149.CommitSig; + toProto(message: _149.CommitSig): Uint8Array; + toProtoMsg(message: _149.CommitSig): _149.CommitSigProtoMsg; }; Proposal: { - encode(message: _148.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.Proposal; - fromJSON(object: any): _148.Proposal; - toJSON(message: _148.Proposal): unknown; - fromPartial(object: Partial<_148.Proposal>): _148.Proposal; - fromAmino(object: _148.ProposalAmino): _148.Proposal; - toAmino(message: _148.Proposal): _148.ProposalAmino; - fromAminoMsg(object: _148.ProposalAminoMsg): _148.Proposal; - fromProtoMsg(message: _148.ProposalProtoMsg): _148.Proposal; - toProto(message: _148.Proposal): Uint8Array; - toProtoMsg(message: _148.Proposal): _148.ProposalProtoMsg; + typeUrl: string; + encode(message: _149.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Proposal; + fromJSON(object: any): _149.Proposal; + toJSON(message: _149.Proposal): unknown; + fromPartial(object: Partial<_149.Proposal>): _149.Proposal; + fromAmino(object: _149.ProposalAmino): _149.Proposal; + toAmino(message: _149.Proposal): _149.ProposalAmino; + fromAminoMsg(object: _149.ProposalAminoMsg): _149.Proposal; + fromProtoMsg(message: _149.ProposalProtoMsg): _149.Proposal; + toProto(message: _149.Proposal): Uint8Array; + toProtoMsg(message: _149.Proposal): _149.ProposalProtoMsg; }; SignedHeader: { - encode(message: _148.SignedHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.SignedHeader; - fromJSON(object: any): _148.SignedHeader; - toJSON(message: _148.SignedHeader): unknown; - fromPartial(object: Partial<_148.SignedHeader>): _148.SignedHeader; - fromAmino(object: _148.SignedHeaderAmino): _148.SignedHeader; - toAmino(message: _148.SignedHeader): _148.SignedHeaderAmino; - fromAminoMsg(object: _148.SignedHeaderAminoMsg): _148.SignedHeader; - fromProtoMsg(message: _148.SignedHeaderProtoMsg): _148.SignedHeader; - toProto(message: _148.SignedHeader): Uint8Array; - toProtoMsg(message: _148.SignedHeader): _148.SignedHeaderProtoMsg; + typeUrl: string; + encode(message: _149.SignedHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.SignedHeader; + fromJSON(object: any): _149.SignedHeader; + toJSON(message: _149.SignedHeader): unknown; + fromPartial(object: Partial<_149.SignedHeader>): _149.SignedHeader; + fromAmino(object: _149.SignedHeaderAmino): _149.SignedHeader; + toAmino(message: _149.SignedHeader): _149.SignedHeaderAmino; + fromAminoMsg(object: _149.SignedHeaderAminoMsg): _149.SignedHeader; + fromProtoMsg(message: _149.SignedHeaderProtoMsg): _149.SignedHeader; + toProto(message: _149.SignedHeader): Uint8Array; + toProtoMsg(message: _149.SignedHeader): _149.SignedHeaderProtoMsg; }; LightBlock: { - encode(message: _148.LightBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.LightBlock; - fromJSON(object: any): _148.LightBlock; - toJSON(message: _148.LightBlock): unknown; - fromPartial(object: Partial<_148.LightBlock>): _148.LightBlock; - fromAmino(object: _148.LightBlockAmino): _148.LightBlock; - toAmino(message: _148.LightBlock): _148.LightBlockAmino; - fromAminoMsg(object: _148.LightBlockAminoMsg): _148.LightBlock; - fromProtoMsg(message: _148.LightBlockProtoMsg): _148.LightBlock; - toProto(message: _148.LightBlock): Uint8Array; - toProtoMsg(message: _148.LightBlock): _148.LightBlockProtoMsg; + typeUrl: string; + encode(message: _149.LightBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.LightBlock; + fromJSON(object: any): _149.LightBlock; + toJSON(message: _149.LightBlock): unknown; + fromPartial(object: Partial<_149.LightBlock>): _149.LightBlock; + fromAmino(object: _149.LightBlockAmino): _149.LightBlock; + toAmino(message: _149.LightBlock): _149.LightBlockAmino; + fromAminoMsg(object: _149.LightBlockAminoMsg): _149.LightBlock; + fromProtoMsg(message: _149.LightBlockProtoMsg): _149.LightBlock; + toProto(message: _149.LightBlock): Uint8Array; + toProtoMsg(message: _149.LightBlock): _149.LightBlockProtoMsg; }; BlockMeta: { - encode(message: _148.BlockMeta, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.BlockMeta; - fromJSON(object: any): _148.BlockMeta; - toJSON(message: _148.BlockMeta): unknown; - fromPartial(object: Partial<_148.BlockMeta>): _148.BlockMeta; - fromAmino(object: _148.BlockMetaAmino): _148.BlockMeta; - toAmino(message: _148.BlockMeta): _148.BlockMetaAmino; - fromAminoMsg(object: _148.BlockMetaAminoMsg): _148.BlockMeta; - fromProtoMsg(message: _148.BlockMetaProtoMsg): _148.BlockMeta; - toProto(message: _148.BlockMeta): Uint8Array; - toProtoMsg(message: _148.BlockMeta): _148.BlockMetaProtoMsg; + typeUrl: string; + encode(message: _149.BlockMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.BlockMeta; + fromJSON(object: any): _149.BlockMeta; + toJSON(message: _149.BlockMeta): unknown; + fromPartial(object: Partial<_149.BlockMeta>): _149.BlockMeta; + fromAmino(object: _149.BlockMetaAmino): _149.BlockMeta; + toAmino(message: _149.BlockMeta): _149.BlockMetaAmino; + fromAminoMsg(object: _149.BlockMetaAminoMsg): _149.BlockMeta; + fromProtoMsg(message: _149.BlockMetaProtoMsg): _149.BlockMeta; + toProto(message: _149.BlockMeta): Uint8Array; + toProtoMsg(message: _149.BlockMeta): _149.BlockMetaProtoMsg; }; TxProof: { - encode(message: _148.TxProof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _148.TxProof; - fromJSON(object: any): _148.TxProof; - toJSON(message: _148.TxProof): unknown; - fromPartial(object: Partial<_148.TxProof>): _148.TxProof; - fromAmino(object: _148.TxProofAmino): _148.TxProof; - toAmino(message: _148.TxProof): _148.TxProofAmino; - fromAminoMsg(object: _148.TxProofAminoMsg): _148.TxProof; - fromProtoMsg(message: _148.TxProofProtoMsg): _148.TxProof; - toProto(message: _148.TxProof): Uint8Array; - toProtoMsg(message: _148.TxProof): _148.TxProofProtoMsg; + typeUrl: string; + encode(message: _149.TxProof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.TxProof; + fromJSON(object: any): _149.TxProof; + toJSON(message: _149.TxProof): unknown; + fromPartial(object: Partial<_149.TxProof>): _149.TxProof; + fromAmino(object: _149.TxProofAmino): _149.TxProof; + toAmino(message: _149.TxProof): _149.TxProofAmino; + fromAminoMsg(object: _149.TxProofAminoMsg): _149.TxProof; + fromProtoMsg(message: _149.TxProofProtoMsg): _149.TxProof; + toProto(message: _149.TxProof): Uint8Array; + toProtoMsg(message: _149.TxProof): _149.TxProofProtoMsg; }; ConsensusParams: { - encode(message: _147.ConsensusParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.ConsensusParams; - fromJSON(object: any): _147.ConsensusParams; - toJSON(message: _147.ConsensusParams): unknown; - fromPartial(object: Partial<_147.ConsensusParams>): _147.ConsensusParams; - fromAmino(object: _147.ConsensusParamsAmino): _147.ConsensusParams; - toAmino(message: _147.ConsensusParams): _147.ConsensusParamsAmino; - fromAminoMsg(object: _147.ConsensusParamsAminoMsg): _147.ConsensusParams; - fromProtoMsg(message: _147.ConsensusParamsProtoMsg): _147.ConsensusParams; - toProto(message: _147.ConsensusParams): Uint8Array; - toProtoMsg(message: _147.ConsensusParams): _147.ConsensusParamsProtoMsg; + typeUrl: string; + encode(message: _148.ConsensusParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.ConsensusParams; + fromJSON(object: any): _148.ConsensusParams; + toJSON(message: _148.ConsensusParams): unknown; + fromPartial(object: Partial<_148.ConsensusParams>): _148.ConsensusParams; + fromAmino(object: _148.ConsensusParamsAmino): _148.ConsensusParams; + toAmino(message: _148.ConsensusParams): _148.ConsensusParamsAmino; + fromAminoMsg(object: _148.ConsensusParamsAminoMsg): _148.ConsensusParams; + fromProtoMsg(message: _148.ConsensusParamsProtoMsg): _148.ConsensusParams; + toProto(message: _148.ConsensusParams): Uint8Array; + toProtoMsg(message: _148.ConsensusParams): _148.ConsensusParamsProtoMsg; }; BlockParams: { - encode(message: _147.BlockParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.BlockParams; - fromJSON(object: any): _147.BlockParams; - toJSON(message: _147.BlockParams): unknown; - fromPartial(object: Partial<_147.BlockParams>): _147.BlockParams; - fromAmino(object: _147.BlockParamsAmino): _147.BlockParams; - toAmino(message: _147.BlockParams): _147.BlockParamsAmino; - fromAminoMsg(object: _147.BlockParamsAminoMsg): _147.BlockParams; - fromProtoMsg(message: _147.BlockParamsProtoMsg): _147.BlockParams; - toProto(message: _147.BlockParams): Uint8Array; - toProtoMsg(message: _147.BlockParams): _147.BlockParamsProtoMsg; + typeUrl: string; + encode(message: _148.BlockParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.BlockParams; + fromJSON(object: any): _148.BlockParams; + toJSON(message: _148.BlockParams): unknown; + fromPartial(object: Partial<_148.BlockParams>): _148.BlockParams; + fromAmino(object: _148.BlockParamsAmino): _148.BlockParams; + toAmino(message: _148.BlockParams): _148.BlockParamsAmino; + fromAminoMsg(object: _148.BlockParamsAminoMsg): _148.BlockParams; + fromProtoMsg(message: _148.BlockParamsProtoMsg): _148.BlockParams; + toProto(message: _148.BlockParams): Uint8Array; + toProtoMsg(message: _148.BlockParams): _148.BlockParamsProtoMsg; }; EvidenceParams: { - encode(message: _147.EvidenceParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.EvidenceParams; - fromJSON(object: any): _147.EvidenceParams; - toJSON(message: _147.EvidenceParams): unknown; - fromPartial(object: Partial<_147.EvidenceParams>): _147.EvidenceParams; - fromAmino(object: _147.EvidenceParamsAmino): _147.EvidenceParams; - toAmino(message: _147.EvidenceParams): _147.EvidenceParamsAmino; - fromAminoMsg(object: _147.EvidenceParamsAminoMsg): _147.EvidenceParams; - fromProtoMsg(message: _147.EvidenceParamsProtoMsg): _147.EvidenceParams; - toProto(message: _147.EvidenceParams): Uint8Array; - toProtoMsg(message: _147.EvidenceParams): _147.EvidenceParamsProtoMsg; + typeUrl: string; + encode(message: _148.EvidenceParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.EvidenceParams; + fromJSON(object: any): _148.EvidenceParams; + toJSON(message: _148.EvidenceParams): unknown; + fromPartial(object: Partial<_148.EvidenceParams>): _148.EvidenceParams; + fromAmino(object: _148.EvidenceParamsAmino): _148.EvidenceParams; + toAmino(message: _148.EvidenceParams): _148.EvidenceParamsAmino; + fromAminoMsg(object: _148.EvidenceParamsAminoMsg): _148.EvidenceParams; + fromProtoMsg(message: _148.EvidenceParamsProtoMsg): _148.EvidenceParams; + toProto(message: _148.EvidenceParams): Uint8Array; + toProtoMsg(message: _148.EvidenceParams): _148.EvidenceParamsProtoMsg; }; ValidatorParams: { - encode(message: _147.ValidatorParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.ValidatorParams; - fromJSON(object: any): _147.ValidatorParams; - toJSON(message: _147.ValidatorParams): unknown; - fromPartial(object: Partial<_147.ValidatorParams>): _147.ValidatorParams; - fromAmino(object: _147.ValidatorParamsAmino): _147.ValidatorParams; - toAmino(message: _147.ValidatorParams): _147.ValidatorParamsAmino; - fromAminoMsg(object: _147.ValidatorParamsAminoMsg): _147.ValidatorParams; - fromProtoMsg(message: _147.ValidatorParamsProtoMsg): _147.ValidatorParams; - toProto(message: _147.ValidatorParams): Uint8Array; - toProtoMsg(message: _147.ValidatorParams): _147.ValidatorParamsProtoMsg; + typeUrl: string; + encode(message: _148.ValidatorParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.ValidatorParams; + fromJSON(object: any): _148.ValidatorParams; + toJSON(message: _148.ValidatorParams): unknown; + fromPartial(object: Partial<_148.ValidatorParams>): _148.ValidatorParams; + fromAmino(object: _148.ValidatorParamsAmino): _148.ValidatorParams; + toAmino(message: _148.ValidatorParams): _148.ValidatorParamsAmino; + fromAminoMsg(object: _148.ValidatorParamsAminoMsg): _148.ValidatorParams; + fromProtoMsg(message: _148.ValidatorParamsProtoMsg): _148.ValidatorParams; + toProto(message: _148.ValidatorParams): Uint8Array; + toProtoMsg(message: _148.ValidatorParams): _148.ValidatorParamsProtoMsg; }; VersionParams: { - encode(message: _147.VersionParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.VersionParams; - fromJSON(object: any): _147.VersionParams; - toJSON(message: _147.VersionParams): unknown; - fromPartial(object: Partial<_147.VersionParams>): _147.VersionParams; - fromAmino(object: _147.VersionParamsAmino): _147.VersionParams; - toAmino(message: _147.VersionParams): _147.VersionParamsAmino; - fromAminoMsg(object: _147.VersionParamsAminoMsg): _147.VersionParams; - fromProtoMsg(message: _147.VersionParamsProtoMsg): _147.VersionParams; - toProto(message: _147.VersionParams): Uint8Array; - toProtoMsg(message: _147.VersionParams): _147.VersionParamsProtoMsg; + typeUrl: string; + encode(message: _148.VersionParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.VersionParams; + fromJSON(object: any): _148.VersionParams; + toJSON(message: _148.VersionParams): unknown; + fromPartial(object: Partial<_148.VersionParams>): _148.VersionParams; + fromAmino(object: _148.VersionParamsAmino): _148.VersionParams; + toAmino(message: _148.VersionParams): _148.VersionParamsAmino; + fromAminoMsg(object: _148.VersionParamsAminoMsg): _148.VersionParams; + fromProtoMsg(message: _148.VersionParamsProtoMsg): _148.VersionParams; + toProto(message: _148.VersionParams): Uint8Array; + toProtoMsg(message: _148.VersionParams): _148.VersionParamsProtoMsg; }; HashedParams: { - encode(message: _147.HashedParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _147.HashedParams; - fromJSON(object: any): _147.HashedParams; - toJSON(message: _147.HashedParams): unknown; - fromPartial(object: Partial<_147.HashedParams>): _147.HashedParams; - fromAmino(object: _147.HashedParamsAmino): _147.HashedParams; - toAmino(message: _147.HashedParams): _147.HashedParamsAmino; - fromAminoMsg(object: _147.HashedParamsAminoMsg): _147.HashedParams; - fromProtoMsg(message: _147.HashedParamsProtoMsg): _147.HashedParams; - toProto(message: _147.HashedParams): Uint8Array; - toProtoMsg(message: _147.HashedParams): _147.HashedParamsProtoMsg; + typeUrl: string; + encode(message: _148.HashedParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.HashedParams; + fromJSON(object: any): _148.HashedParams; + toJSON(message: _148.HashedParams): unknown; + fromPartial(object: Partial<_148.HashedParams>): _148.HashedParams; + fromAmino(object: _148.HashedParamsAmino): _148.HashedParams; + toAmino(message: _148.HashedParams): _148.HashedParamsAmino; + fromAminoMsg(object: _148.HashedParamsAminoMsg): _148.HashedParams; + fromProtoMsg(message: _148.HashedParamsProtoMsg): _148.HashedParams; + toProto(message: _148.HashedParams): Uint8Array; + toProtoMsg(message: _148.HashedParams): _148.HashedParamsProtoMsg; }; Evidence: { - encode(message: _146.Evidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _146.Evidence; - fromJSON(object: any): _146.Evidence; - toJSON(message: _146.Evidence): unknown; - fromPartial(object: Partial<_146.Evidence>): _146.Evidence; - fromAmino(object: _146.EvidenceAmino): _146.Evidence; - toAmino(message: _146.Evidence): _146.EvidenceAmino; - fromAminoMsg(object: _146.EvidenceAminoMsg): _146.Evidence; - fromProtoMsg(message: _146.EvidenceProtoMsg): _146.Evidence; - toProto(message: _146.Evidence): Uint8Array; - toProtoMsg(message: _146.Evidence): _146.EvidenceProtoMsg; + typeUrl: string; + encode(message: _147.Evidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.Evidence; + fromJSON(object: any): _147.Evidence; + toJSON(message: _147.Evidence): unknown; + fromPartial(object: Partial<_147.Evidence>): _147.Evidence; + fromAmino(object: _147.EvidenceAmino): _147.Evidence; + toAmino(message: _147.Evidence): _147.EvidenceAmino; + fromAminoMsg(object: _147.EvidenceAminoMsg): _147.Evidence; + fromProtoMsg(message: _147.EvidenceProtoMsg): _147.Evidence; + toProto(message: _147.Evidence): Uint8Array; + toProtoMsg(message: _147.Evidence): _147.EvidenceProtoMsg; }; DuplicateVoteEvidence: { - encode(message: _146.DuplicateVoteEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _146.DuplicateVoteEvidence; - fromJSON(object: any): _146.DuplicateVoteEvidence; - toJSON(message: _146.DuplicateVoteEvidence): unknown; - fromPartial(object: Partial<_146.DuplicateVoteEvidence>): _146.DuplicateVoteEvidence; - fromAmino(object: _146.DuplicateVoteEvidenceAmino): _146.DuplicateVoteEvidence; - toAmino(message: _146.DuplicateVoteEvidence): _146.DuplicateVoteEvidenceAmino; - fromAminoMsg(object: _146.DuplicateVoteEvidenceAminoMsg): _146.DuplicateVoteEvidence; - fromProtoMsg(message: _146.DuplicateVoteEvidenceProtoMsg): _146.DuplicateVoteEvidence; - toProto(message: _146.DuplicateVoteEvidence): Uint8Array; - toProtoMsg(message: _146.DuplicateVoteEvidence): _146.DuplicateVoteEvidenceProtoMsg; + typeUrl: string; + encode(message: _147.DuplicateVoteEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.DuplicateVoteEvidence; + fromJSON(object: any): _147.DuplicateVoteEvidence; + toJSON(message: _147.DuplicateVoteEvidence): unknown; + fromPartial(object: Partial<_147.DuplicateVoteEvidence>): _147.DuplicateVoteEvidence; + fromAmino(object: _147.DuplicateVoteEvidenceAmino): _147.DuplicateVoteEvidence; + toAmino(message: _147.DuplicateVoteEvidence): _147.DuplicateVoteEvidenceAmino; + fromAminoMsg(object: _147.DuplicateVoteEvidenceAminoMsg): _147.DuplicateVoteEvidence; + fromProtoMsg(message: _147.DuplicateVoteEvidenceProtoMsg): _147.DuplicateVoteEvidence; + toProto(message: _147.DuplicateVoteEvidence): Uint8Array; + toProtoMsg(message: _147.DuplicateVoteEvidence): _147.DuplicateVoteEvidenceProtoMsg; }; LightClientAttackEvidence: { - encode(message: _146.LightClientAttackEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _146.LightClientAttackEvidence; - fromJSON(object: any): _146.LightClientAttackEvidence; - toJSON(message: _146.LightClientAttackEvidence): unknown; - fromPartial(object: Partial<_146.LightClientAttackEvidence>): _146.LightClientAttackEvidence; - fromAmino(object: _146.LightClientAttackEvidenceAmino): _146.LightClientAttackEvidence; - toAmino(message: _146.LightClientAttackEvidence): _146.LightClientAttackEvidenceAmino; - fromAminoMsg(object: _146.LightClientAttackEvidenceAminoMsg): _146.LightClientAttackEvidence; - fromProtoMsg(message: _146.LightClientAttackEvidenceProtoMsg): _146.LightClientAttackEvidence; - toProto(message: _146.LightClientAttackEvidence): Uint8Array; - toProtoMsg(message: _146.LightClientAttackEvidence): _146.LightClientAttackEvidenceProtoMsg; + typeUrl: string; + encode(message: _147.LightClientAttackEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.LightClientAttackEvidence; + fromJSON(object: any): _147.LightClientAttackEvidence; + toJSON(message: _147.LightClientAttackEvidence): unknown; + fromPartial(object: Partial<_147.LightClientAttackEvidence>): _147.LightClientAttackEvidence; + fromAmino(object: _147.LightClientAttackEvidenceAmino): _147.LightClientAttackEvidence; + toAmino(message: _147.LightClientAttackEvidence): _147.LightClientAttackEvidenceAmino; + fromAminoMsg(object: _147.LightClientAttackEvidenceAminoMsg): _147.LightClientAttackEvidence; + fromProtoMsg(message: _147.LightClientAttackEvidenceProtoMsg): _147.LightClientAttackEvidence; + toProto(message: _147.LightClientAttackEvidence): Uint8Array; + toProtoMsg(message: _147.LightClientAttackEvidence): _147.LightClientAttackEvidenceProtoMsg; }; EvidenceList: { - encode(message: _146.EvidenceList, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _146.EvidenceList; - fromJSON(object: any): _146.EvidenceList; - toJSON(message: _146.EvidenceList): unknown; - fromPartial(object: Partial<_146.EvidenceList>): _146.EvidenceList; - fromAmino(object: _146.EvidenceListAmino): _146.EvidenceList; - toAmino(message: _146.EvidenceList): _146.EvidenceListAmino; - fromAminoMsg(object: _146.EvidenceListAminoMsg): _146.EvidenceList; - fromProtoMsg(message: _146.EvidenceListProtoMsg): _146.EvidenceList; - toProto(message: _146.EvidenceList): Uint8Array; - toProtoMsg(message: _146.EvidenceList): _146.EvidenceListProtoMsg; + typeUrl: string; + encode(message: _147.EvidenceList, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.EvidenceList; + fromJSON(object: any): _147.EvidenceList; + toJSON(message: _147.EvidenceList): unknown; + fromPartial(object: Partial<_147.EvidenceList>): _147.EvidenceList; + fromAmino(object: _147.EvidenceListAmino): _147.EvidenceList; + toAmino(message: _147.EvidenceList): _147.EvidenceListAmino; + fromAminoMsg(object: _147.EvidenceListAminoMsg): _147.EvidenceList; + fromProtoMsg(message: _147.EvidenceListProtoMsg): _147.EvidenceList; + toProto(message: _147.EvidenceList): Uint8Array; + toProtoMsg(message: _147.EvidenceList): _147.EvidenceListProtoMsg; }; Block: { - encode(message: _145.Block, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _145.Block; - fromJSON(object: any): _145.Block; - toJSON(message: _145.Block): unknown; - fromPartial(object: Partial<_145.Block>): _145.Block; - fromAmino(object: _145.BlockAmino): _145.Block; - toAmino(message: _145.Block): _145.BlockAmino; - fromAminoMsg(object: _145.BlockAminoMsg): _145.Block; - fromProtoMsg(message: _145.BlockProtoMsg): _145.Block; - toProto(message: _145.Block): Uint8Array; - toProtoMsg(message: _145.Block): _145.BlockProtoMsg; + typeUrl: string; + encode(message: _146.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _146.Block; + fromJSON(object: any): _146.Block; + toJSON(message: _146.Block): unknown; + fromPartial(object: Partial<_146.Block>): _146.Block; + fromAmino(object: _146.BlockAmino): _146.Block; + toAmino(message: _146.Block): _146.BlockAmino; + fromAminoMsg(object: _146.BlockAminoMsg): _146.Block; + fromProtoMsg(message: _146.BlockProtoMsg): _146.Block; + toProto(message: _146.Block): Uint8Array; + toProtoMsg(message: _146.Block): _146.BlockProtoMsg; }; }; const version: { App: { - encode(message: _150.App, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _150.App; - fromJSON(object: any): _150.App; - toJSON(message: _150.App): unknown; - fromPartial(object: Partial<_150.App>): _150.App; - fromAmino(object: _150.AppAmino): _150.App; - toAmino(message: _150.App): _150.AppAmino; - fromAminoMsg(object: _150.AppAminoMsg): _150.App; - fromProtoMsg(message: _150.AppProtoMsg): _150.App; - toProto(message: _150.App): Uint8Array; - toProtoMsg(message: _150.App): _150.AppProtoMsg; + typeUrl: string; + encode(message: _151.App, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _151.App; + fromJSON(object: any): _151.App; + toJSON(message: _151.App): unknown; + fromPartial(object: Partial<_151.App>): _151.App; + fromAmino(object: _151.AppAmino): _151.App; + toAmino(message: _151.App): _151.AppAmino; + fromAminoMsg(object: _151.AppAminoMsg): _151.App; + fromProtoMsg(message: _151.AppProtoMsg): _151.App; + toProto(message: _151.App): Uint8Array; + toProtoMsg(message: _151.App): _151.AppProtoMsg; }; Consensus: { - encode(message: _150.Consensus, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number | undefined): _150.Consensus; - fromJSON(object: any): _150.Consensus; - toJSON(message: _150.Consensus): unknown; - fromPartial(object: Partial<_150.Consensus>): _150.Consensus; - fromAmino(object: _150.ConsensusAmino): _150.Consensus; - toAmino(message: _150.Consensus): _150.ConsensusAmino; - fromAminoMsg(object: _150.ConsensusAminoMsg): _150.Consensus; - fromProtoMsg(message: _150.ConsensusProtoMsg): _150.Consensus; - toProto(message: _150.Consensus): Uint8Array; - toProtoMsg(message: _150.Consensus): _150.ConsensusProtoMsg; + typeUrl: string; + encode(message: _151.Consensus, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _151.Consensus; + fromJSON(object: any): _151.Consensus; + toJSON(message: _151.Consensus): unknown; + fromPartial(object: Partial<_151.Consensus>): _151.Consensus; + fromAmino(object: _151.ConsensusAmino): _151.Consensus; + toAmino(message: _151.Consensus): _151.ConsensusAmino; + fromAminoMsg(object: _151.ConsensusAminoMsg): _151.Consensus; + fromProtoMsg(message: _151.ConsensusProtoMsg): _151.Consensus; + toProto(message: _151.Consensus): Uint8Array; + toProtoMsg(message: _151.Consensus): _151.ConsensusProtoMsg; }; }; } diff --git a/packages/api/types/codegen/tendermint/crypto/keys.d.ts b/packages/api/types/codegen/tendermint/crypto/keys.d.ts index 792f0cf8..846e8ac3 100644 --- a/packages/api/types/codegen/tendermint/crypto/keys.d.ts +++ b/packages/api/types/codegen/tendermint/crypto/keys.d.ts @@ -1,4 +1,4 @@ -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** PublicKey defines the keys available for use with Validators */ export interface PublicKey { ed25519?: Uint8Array; @@ -10,8 +10,8 @@ export interface PublicKeyProtoMsg { } /** PublicKey defines the keys available for use with Validators */ export interface PublicKeyAmino { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; + ed25519?: string; + secp256k1?: string; } export interface PublicKeyAminoMsg { type: "/tendermint.crypto.PublicKey"; @@ -23,8 +23,9 @@ export interface PublicKeySDKType { secp256k1?: Uint8Array; } export declare const PublicKey: { - encode(message: PublicKey, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PublicKey; + typeUrl: string; + encode(message: PublicKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PublicKey; fromJSON(object: any): PublicKey; toJSON(message: PublicKey): unknown; fromPartial(object: Partial): PublicKey; diff --git a/packages/api/types/codegen/tendermint/crypto/proof.d.ts b/packages/api/types/codegen/tendermint/crypto/proof.d.ts index 96d1b7bc..c68075ec 100644 --- a/packages/api/types/codegen/tendermint/crypto/proof.d.ts +++ b/packages/api/types/codegen/tendermint/crypto/proof.d.ts @@ -1,8 +1,7 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export interface Proof { - total: Long; - index: Long; + total: bigint; + index: bigint; leafHash: Uint8Array; aunts: Uint8Array[]; } @@ -11,18 +10,18 @@ export interface ProofProtoMsg { value: Uint8Array; } export interface ProofAmino { - total: string; - index: string; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; + total?: string; + index?: string; + leaf_hash?: string; + aunts?: string[]; } export interface ProofAminoMsg { type: "/tendermint.crypto.Proof"; value: ProofAmino; } export interface ProofSDKType { - total: Long; - index: Long; + total: bigint; + index: bigint; leaf_hash: Uint8Array; aunts: Uint8Array[]; } @@ -30,7 +29,7 @@ export interface ValueOp { /** Encoded in ProofOp.Key. */ key: Uint8Array; /** To encode in ProofOp.Data */ - proof: Proof; + proof?: Proof; } export interface ValueOpProtoMsg { typeUrl: "/tendermint.crypto.ValueOp"; @@ -38,7 +37,7 @@ export interface ValueOpProtoMsg { } export interface ValueOpAmino { /** Encoded in ProofOp.Key. */ - key: Uint8Array; + key?: string; /** To encode in ProofOp.Data */ proof?: ProofAmino; } @@ -48,7 +47,7 @@ export interface ValueOpAminoMsg { } export interface ValueOpSDKType { key: Uint8Array; - proof: ProofSDKType; + proof?: ProofSDKType; } export interface DominoOp { key: string; @@ -60,9 +59,9 @@ export interface DominoOpProtoMsg { value: Uint8Array; } export interface DominoOpAmino { - key: string; - input: string; - output: string; + key?: string; + input?: string; + output?: string; } export interface DominoOpAminoMsg { type: "/tendermint.crypto.DominoOp"; @@ -93,9 +92,9 @@ export interface ProofOpProtoMsg { * for example neighbouring node hash */ export interface ProofOpAmino { - type: string; - key: Uint8Array; - data: Uint8Array; + type?: string; + key?: string; + data?: string; } export interface ProofOpAminoMsg { type: "/tendermint.crypto.ProofOp"; @@ -121,7 +120,7 @@ export interface ProofOpsProtoMsg { } /** ProofOps is Merkle proof defined by the list of ProofOps */ export interface ProofOpsAmino { - ops: ProofOpAmino[]; + ops?: ProofOpAmino[]; } export interface ProofOpsAminoMsg { type: "/tendermint.crypto.ProofOps"; @@ -132,8 +131,9 @@ export interface ProofOpsSDKType { ops: ProofOpSDKType[]; } export declare const Proof: { - encode(message: Proof, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proof; + typeUrl: string; + encode(message: Proof, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proof; fromJSON(object: any): Proof; toJSON(message: Proof): unknown; fromPartial(object: Partial): Proof; @@ -145,8 +145,9 @@ export declare const Proof: { toProtoMsg(message: Proof): ProofProtoMsg; }; export declare const ValueOp: { - encode(message: ValueOp, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValueOp; + typeUrl: string; + encode(message: ValueOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValueOp; fromJSON(object: any): ValueOp; toJSON(message: ValueOp): unknown; fromPartial(object: Partial): ValueOp; @@ -158,8 +159,9 @@ export declare const ValueOp: { toProtoMsg(message: ValueOp): ValueOpProtoMsg; }; export declare const DominoOp: { - encode(message: DominoOp, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DominoOp; + typeUrl: string; + encode(message: DominoOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DominoOp; fromJSON(object: any): DominoOp; toJSON(message: DominoOp): unknown; fromPartial(object: Partial): DominoOp; @@ -171,8 +173,9 @@ export declare const DominoOp: { toProtoMsg(message: DominoOp): DominoOpProtoMsg; }; export declare const ProofOp: { - encode(message: ProofOp, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProofOp; + typeUrl: string; + encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; fromJSON(object: any): ProofOp; toJSON(message: ProofOp): unknown; fromPartial(object: Partial): ProofOp; @@ -184,8 +187,9 @@ export declare const ProofOp: { toProtoMsg(message: ProofOp): ProofOpProtoMsg; }; export declare const ProofOps: { - encode(message: ProofOps, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProofOps; + typeUrl: string; + encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; fromJSON(object: any): ProofOps; toJSON(message: ProofOps): unknown; fromPartial(object: Partial): ProofOps; diff --git a/packages/api/types/codegen/tendermint/libs/bits/types.d.ts b/packages/api/types/codegen/tendermint/libs/bits/types.d.ts index 8f2197bb..7b5f0970 100644 --- a/packages/api/types/codegen/tendermint/libs/bits/types.d.ts +++ b/packages/api/types/codegen/tendermint/libs/bits/types.d.ts @@ -1,28 +1,28 @@ -import { Long } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../../binary"; export interface BitArray { - bits: Long; - elems: Long[]; + bits: bigint; + elems: bigint[]; } export interface BitArrayProtoMsg { typeUrl: "/tendermint.libs.bits.BitArray"; value: Uint8Array; } export interface BitArrayAmino { - bits: string; - elems: string[]; + bits?: string; + elems?: string[]; } export interface BitArrayAminoMsg { type: "/tendermint.libs.bits.BitArray"; value: BitArrayAmino; } export interface BitArraySDKType { - bits: Long; - elems: Long[]; + bits: bigint; + elems: bigint[]; } export declare const BitArray: { - encode(message: BitArray, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BitArray; + typeUrl: string; + encode(message: BitArray, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BitArray; fromJSON(object: any): BitArray; toJSON(message: BitArray): unknown; fromPartial(object: Partial): BitArray; diff --git a/packages/api/types/codegen/tendermint/p2p/types.d.ts b/packages/api/types/codegen/tendermint/p2p/types.d.ts index 0df7272f..2062d25b 100644 --- a/packages/api/types/codegen/tendermint/p2p/types.d.ts +++ b/packages/api/types/codegen/tendermint/p2p/types.d.ts @@ -1,5 +1,4 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export interface NetAddress { id: string; ip: string; @@ -10,9 +9,9 @@ export interface NetAddressProtoMsg { value: Uint8Array; } export interface NetAddressAmino { - id: string; - ip: string; - port: number; + id?: string; + ip?: string; + port?: number; } export interface NetAddressAminoMsg { type: "/tendermint.p2p.NetAddress"; @@ -24,27 +23,27 @@ export interface NetAddressSDKType { port: number; } export interface ProtocolVersion { - p2p: Long; - block: Long; - app: Long; + p2p: bigint; + block: bigint; + app: bigint; } export interface ProtocolVersionProtoMsg { typeUrl: "/tendermint.p2p.ProtocolVersion"; value: Uint8Array; } export interface ProtocolVersionAmino { - p2p: string; - block: string; - app: string; + p2p?: string; + block?: string; + app?: string; } export interface ProtocolVersionAminoMsg { type: "/tendermint.p2p.ProtocolVersion"; value: ProtocolVersionAmino; } export interface ProtocolVersionSDKType { - p2p: Long; - block: Long; - app: Long; + p2p: bigint; + block: bigint; + app: bigint; } export interface DefaultNodeInfo { protocolVersion: ProtocolVersion; @@ -62,12 +61,12 @@ export interface DefaultNodeInfoProtoMsg { } export interface DefaultNodeInfoAmino { protocol_version?: ProtocolVersionAmino; - default_node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + channels?: string; + moniker?: string; other?: DefaultNodeInfoOtherAmino; } export interface DefaultNodeInfoAminoMsg { @@ -93,8 +92,8 @@ export interface DefaultNodeInfoOtherProtoMsg { value: Uint8Array; } export interface DefaultNodeInfoOtherAmino { - tx_index: string; - rpc_address: string; + tx_index?: string; + rpc_address?: string; } export interface DefaultNodeInfoOtherAminoMsg { type: "/tendermint.p2p.DefaultNodeInfoOther"; @@ -105,8 +104,9 @@ export interface DefaultNodeInfoOtherSDKType { rpc_address: string; } export declare const NetAddress: { - encode(message: NetAddress, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): NetAddress; + typeUrl: string; + encode(message: NetAddress, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): NetAddress; fromJSON(object: any): NetAddress; toJSON(message: NetAddress): unknown; fromPartial(object: Partial): NetAddress; @@ -118,8 +118,9 @@ export declare const NetAddress: { toProtoMsg(message: NetAddress): NetAddressProtoMsg; }; export declare const ProtocolVersion: { - encode(message: ProtocolVersion, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ProtocolVersion; + typeUrl: string; + encode(message: ProtocolVersion, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion; fromJSON(object: any): ProtocolVersion; toJSON(message: ProtocolVersion): unknown; fromPartial(object: Partial): ProtocolVersion; @@ -131,8 +132,9 @@ export declare const ProtocolVersion: { toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg; }; export declare const DefaultNodeInfo: { - encode(message: DefaultNodeInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNodeInfo; + typeUrl: string; + encode(message: DefaultNodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo; fromJSON(object: any): DefaultNodeInfo; toJSON(message: DefaultNodeInfo): unknown; fromPartial(object: Partial): DefaultNodeInfo; @@ -144,8 +146,9 @@ export declare const DefaultNodeInfo: { toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg; }; export declare const DefaultNodeInfoOther: { - encode(message: DefaultNodeInfoOther, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNodeInfoOther; + typeUrl: string; + encode(message: DefaultNodeInfoOther, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther; fromJSON(object: any): DefaultNodeInfoOther; toJSON(message: DefaultNodeInfoOther): unknown; fromPartial(object: Partial): DefaultNodeInfoOther; diff --git a/packages/api/types/codegen/tendermint/types/block.d.ts b/packages/api/types/codegen/tendermint/types/block.d.ts index 539e94f4..c63389ae 100644 --- a/packages/api/types/codegen/tendermint/types/block.d.ts +++ b/packages/api/types/codegen/tendermint/types/block.d.ts @@ -1,11 +1,11 @@ import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export interface Block { header: Header; data: Data; evidence: EvidenceList; - lastCommit: Commit; + lastCommit?: Commit; } export interface BlockProtoMsg { typeUrl: "/tendermint.types.Block"; @@ -25,11 +25,12 @@ export interface BlockSDKType { header: HeaderSDKType; data: DataSDKType; evidence: EvidenceListSDKType; - last_commit: CommitSDKType; + last_commit?: CommitSDKType; } export declare const Block: { - encode(message: Block, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Block; + typeUrl: string; + encode(message: Block, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Block; fromJSON(object: any): Block; toJSON(message: Block): unknown; fromPartial(object: Partial): Block; diff --git a/packages/api/types/codegen/tendermint/types/evidence.d.ts b/packages/api/types/codegen/tendermint/types/evidence.d.ts index e237aed1..499fb27e 100644 --- a/packages/api/types/codegen/tendermint/types/evidence.d.ts +++ b/packages/api/types/codegen/tendermint/types/evidence.d.ts @@ -1,8 +1,7 @@ import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export interface Evidence { duplicateVoteEvidence?: DuplicateVoteEvidence; lightClientAttackEvidence?: LightClientAttackEvidence; @@ -25,10 +24,10 @@ export interface EvidenceSDKType { } /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ export interface DuplicateVoteEvidence { - voteA: Vote; - voteB: Vote; - totalVotingPower: Long; - validatorPower: Long; + voteA?: Vote; + voteB?: Vote; + totalVotingPower: bigint; + validatorPower: bigint; timestamp: Timestamp; } export interface DuplicateVoteEvidenceProtoMsg { @@ -39,9 +38,9 @@ export interface DuplicateVoteEvidenceProtoMsg { export interface DuplicateVoteEvidenceAmino { vote_a?: VoteAmino; vote_b?: VoteAmino; - total_voting_power: string; - validator_power: string; - timestamp?: TimestampAmino; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; } export interface DuplicateVoteEvidenceAminoMsg { type: "/tendermint.types.DuplicateVoteEvidence"; @@ -49,18 +48,18 @@ export interface DuplicateVoteEvidenceAminoMsg { } /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ export interface DuplicateVoteEvidenceSDKType { - vote_a: VoteSDKType; - vote_b: VoteSDKType; - total_voting_power: Long; - validator_power: Long; + vote_a?: VoteSDKType; + vote_b?: VoteSDKType; + total_voting_power: bigint; + validator_power: bigint; timestamp: TimestampSDKType; } /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ export interface LightClientAttackEvidence { - conflictingBlock: LightBlock; - commonHeight: Long; + conflictingBlock?: LightBlock; + commonHeight: bigint; byzantineValidators: Validator[]; - totalVotingPower: Long; + totalVotingPower: bigint; timestamp: Timestamp; } export interface LightClientAttackEvidenceProtoMsg { @@ -70,10 +69,10 @@ export interface LightClientAttackEvidenceProtoMsg { /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ export interface LightClientAttackEvidenceAmino { conflicting_block?: LightBlockAmino; - common_height: string; - byzantine_validators: ValidatorAmino[]; - total_voting_power: string; - timestamp?: TimestampAmino; + common_height?: string; + byzantine_validators?: ValidatorAmino[]; + total_voting_power?: string; + timestamp?: string; } export interface LightClientAttackEvidenceAminoMsg { type: "/tendermint.types.LightClientAttackEvidence"; @@ -81,10 +80,10 @@ export interface LightClientAttackEvidenceAminoMsg { } /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ export interface LightClientAttackEvidenceSDKType { - conflicting_block: LightBlockSDKType; - common_height: Long; + conflicting_block?: LightBlockSDKType; + common_height: bigint; byzantine_validators: ValidatorSDKType[]; - total_voting_power: Long; + total_voting_power: bigint; timestamp: TimestampSDKType; } export interface EvidenceList { @@ -95,7 +94,7 @@ export interface EvidenceListProtoMsg { value: Uint8Array; } export interface EvidenceListAmino { - evidence: EvidenceAmino[]; + evidence?: EvidenceAmino[]; } export interface EvidenceListAminoMsg { type: "/tendermint.types.EvidenceList"; @@ -105,8 +104,9 @@ export interface EvidenceListSDKType { evidence: EvidenceSDKType[]; } export declare const Evidence: { - encode(message: Evidence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Evidence; + typeUrl: string; + encode(message: Evidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Evidence; fromJSON(object: any): Evidence; toJSON(message: Evidence): unknown; fromPartial(object: Partial): Evidence; @@ -118,8 +118,9 @@ export declare const Evidence: { toProtoMsg(message: Evidence): EvidenceProtoMsg; }; export declare const DuplicateVoteEvidence: { - encode(message: DuplicateVoteEvidence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DuplicateVoteEvidence; + typeUrl: string; + encode(message: DuplicateVoteEvidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence; fromJSON(object: any): DuplicateVoteEvidence; toJSON(message: DuplicateVoteEvidence): unknown; fromPartial(object: Partial): DuplicateVoteEvidence; @@ -131,8 +132,9 @@ export declare const DuplicateVoteEvidence: { toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg; }; export declare const LightClientAttackEvidence: { - encode(message: LightClientAttackEvidence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LightClientAttackEvidence; + typeUrl: string; + encode(message: LightClientAttackEvidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence; fromJSON(object: any): LightClientAttackEvidence; toJSON(message: LightClientAttackEvidence): unknown; fromPartial(object: Partial): LightClientAttackEvidence; @@ -144,8 +146,9 @@ export declare const LightClientAttackEvidence: { toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg; }; export declare const EvidenceList: { - encode(message: EvidenceList, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceList; + typeUrl: string; + encode(message: EvidenceList, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList; fromJSON(object: any): EvidenceList; toJSON(message: EvidenceList): unknown; fromPartial(object: Partial): EvidenceList; diff --git a/packages/api/types/codegen/tendermint/types/params.d.ts b/packages/api/types/codegen/tendermint/types/params.d.ts index 4b6dfb67..b702f5d0 100644 --- a/packages/api/types/codegen/tendermint/types/params.d.ts +++ b/packages/api/types/codegen/tendermint/types/params.d.ts @@ -1,15 +1,14 @@ import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** * ConsensusParams contains consensus critical parameters that determine the * validity of blocks. */ export interface ConsensusParams { - block: BlockParams; - evidence: EvidenceParams; - validator: ValidatorParams; - version: VersionParams; + block?: BlockParams; + evidence?: EvidenceParams; + validator?: ValidatorParams; + version?: VersionParams; } export interface ConsensusParamsProtoMsg { typeUrl: "/tendermint.types.ConsensusParams"; @@ -34,10 +33,10 @@ export interface ConsensusParamsAminoMsg { * validity of blocks. */ export interface ConsensusParamsSDKType { - block: BlockParamsSDKType; - evidence: EvidenceParamsSDKType; - validator: ValidatorParamsSDKType; - version: VersionParamsSDKType; + block?: BlockParamsSDKType; + evidence?: EvidenceParamsSDKType; + validator?: ValidatorParamsSDKType; + version?: VersionParamsSDKType; } /** BlockParams contains limits on the block size. */ export interface BlockParams { @@ -45,12 +44,12 @@ export interface BlockParams { * Max block size, in bytes. * Note: must be greater than 0 */ - maxBytes: Long; + maxBytes: bigint; /** * Max gas per block. * Note: must be greater or equal to -1 */ - maxGas: Long; + maxGas: bigint; } export interface BlockParamsProtoMsg { typeUrl: "/tendermint.types.BlockParams"; @@ -62,12 +61,12 @@ export interface BlockParamsAmino { * Max block size, in bytes. * Note: must be greater than 0 */ - max_bytes: string; + max_bytes?: string; /** * Max gas per block. * Note: must be greater or equal to -1 */ - max_gas: string; + max_gas?: string; } export interface BlockParamsAminoMsg { type: "/tendermint.types.BlockParams"; @@ -75,8 +74,8 @@ export interface BlockParamsAminoMsg { } /** BlockParams contains limits on the block size. */ export interface BlockParamsSDKType { - max_bytes: Long; - max_gas: Long; + max_bytes: bigint; + max_gas: bigint; } /** EvidenceParams determine how we handle evidence of malfeasance. */ export interface EvidenceParams { @@ -86,7 +85,7 @@ export interface EvidenceParams { * The basic formula for calculating this is: MaxAgeDuration / {average block * time}. */ - maxAgeNumBlocks: Long; + maxAgeNumBlocks: bigint; /** * Max age of evidence, in time. * @@ -100,7 +99,7 @@ export interface EvidenceParams { * and should fall comfortably under the max block bytes. * Default is 1048576 or 1MB */ - maxBytes: Long; + maxBytes: bigint; } export interface EvidenceParamsProtoMsg { typeUrl: "/tendermint.types.EvidenceParams"; @@ -114,7 +113,7 @@ export interface EvidenceParamsAmino { * The basic formula for calculating this is: MaxAgeDuration / {average block * time}. */ - max_age_num_blocks: string; + max_age_num_blocks?: string; /** * Max age of evidence, in time. * @@ -128,7 +127,7 @@ export interface EvidenceParamsAmino { * and should fall comfortably under the max block bytes. * Default is 1048576 or 1MB */ - max_bytes: string; + max_bytes?: string; } export interface EvidenceParamsAminoMsg { type: "/tendermint.types.EvidenceParams"; @@ -136,9 +135,9 @@ export interface EvidenceParamsAminoMsg { } /** EvidenceParams determine how we handle evidence of malfeasance. */ export interface EvidenceParamsSDKType { - max_age_num_blocks: Long; + max_age_num_blocks: bigint; max_age_duration: DurationSDKType; - max_bytes: Long; + max_bytes: bigint; } /** * ValidatorParams restrict the public key types validators can use. @@ -156,7 +155,7 @@ export interface ValidatorParamsProtoMsg { * NOTE: uses ABCI pubkey naming, not Amino names. */ export interface ValidatorParamsAmino { - pub_key_types: string[]; + pub_key_types?: string[]; } export interface ValidatorParamsAminoMsg { type: "/tendermint.types.ValidatorParams"; @@ -171,7 +170,7 @@ export interface ValidatorParamsSDKType { } /** VersionParams contains the ABCI application version. */ export interface VersionParams { - app: Long; + app: bigint; } export interface VersionParamsProtoMsg { typeUrl: "/tendermint.types.VersionParams"; @@ -179,7 +178,7 @@ export interface VersionParamsProtoMsg { } /** VersionParams contains the ABCI application version. */ export interface VersionParamsAmino { - app: string; + app?: string; } export interface VersionParamsAminoMsg { type: "/tendermint.types.VersionParams"; @@ -187,7 +186,7 @@ export interface VersionParamsAminoMsg { } /** VersionParams contains the ABCI application version. */ export interface VersionParamsSDKType { - app: Long; + app: bigint; } /** * HashedParams is a subset of ConsensusParams. @@ -195,8 +194,8 @@ export interface VersionParamsSDKType { * It is hashed into the Header.ConsensusHash. */ export interface HashedParams { - blockMaxBytes: Long; - blockMaxGas: Long; + blockMaxBytes: bigint; + blockMaxGas: bigint; } export interface HashedParamsProtoMsg { typeUrl: "/tendermint.types.HashedParams"; @@ -208,8 +207,8 @@ export interface HashedParamsProtoMsg { * It is hashed into the Header.ConsensusHash. */ export interface HashedParamsAmino { - block_max_bytes: string; - block_max_gas: string; + block_max_bytes?: string; + block_max_gas?: string; } export interface HashedParamsAminoMsg { type: "/tendermint.types.HashedParams"; @@ -221,12 +220,13 @@ export interface HashedParamsAminoMsg { * It is hashed into the Header.ConsensusHash. */ export interface HashedParamsSDKType { - block_max_bytes: Long; - block_max_gas: Long; + block_max_bytes: bigint; + block_max_gas: bigint; } export declare const ConsensusParams: { - encode(message: ConsensusParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams; + typeUrl: string; + encode(message: ConsensusParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams; fromJSON(object: any): ConsensusParams; toJSON(message: ConsensusParams): unknown; fromPartial(object: Partial): ConsensusParams; @@ -238,8 +238,9 @@ export declare const ConsensusParams: { toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg; }; export declare const BlockParams: { - encode(message: BlockParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams; + typeUrl: string; + encode(message: BlockParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockParams; fromJSON(object: any): BlockParams; toJSON(message: BlockParams): unknown; fromPartial(object: Partial): BlockParams; @@ -251,8 +252,9 @@ export declare const BlockParams: { toProtoMsg(message: BlockParams): BlockParamsProtoMsg; }; export declare const EvidenceParams: { - encode(message: EvidenceParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceParams; + typeUrl: string; + encode(message: EvidenceParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams; fromJSON(object: any): EvidenceParams; toJSON(message: EvidenceParams): unknown; fromPartial(object: Partial): EvidenceParams; @@ -264,8 +266,9 @@ export declare const EvidenceParams: { toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg; }; export declare const ValidatorParams: { - encode(message: ValidatorParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorParams; + typeUrl: string; + encode(message: ValidatorParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams; fromJSON(object: any): ValidatorParams; toJSON(message: ValidatorParams): unknown; fromPartial(object: Partial): ValidatorParams; @@ -277,8 +280,9 @@ export declare const ValidatorParams: { toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg; }; export declare const VersionParams: { - encode(message: VersionParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VersionParams; + typeUrl: string; + encode(message: VersionParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VersionParams; fromJSON(object: any): VersionParams; toJSON(message: VersionParams): unknown; fromPartial(object: Partial): VersionParams; @@ -290,8 +294,9 @@ export declare const VersionParams: { toProtoMsg(message: VersionParams): VersionParamsProtoMsg; }; export declare const HashedParams: { - encode(message: HashedParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): HashedParams; + typeUrl: string; + encode(message: HashedParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): HashedParams; fromJSON(object: any): HashedParams; toJSON(message: HashedParams): unknown; fromPartial(object: Partial): HashedParams; diff --git a/packages/api/types/codegen/tendermint/types/types.d.ts b/packages/api/types/codegen/tendermint/types/types.d.ts index 124702d5..cd199c1a 100644 --- a/packages/api/types/codegen/tendermint/types/types.d.ts +++ b/packages/api/types/codegen/tendermint/types/types.d.ts @@ -1,9 +1,8 @@ import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { Timestamp, TimestampAmino, TimestampSDKType } from "../../google/protobuf/timestamp"; +import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** BlockIdFlag indicates which BlcokID the signature is for */ export declare enum BlockIDFlag { BLOCK_ID_FLAG_UNKNOWN = 0, @@ -41,8 +40,8 @@ export interface PartSetHeaderProtoMsg { } /** PartsetHeader */ export interface PartSetHeaderAmino { - total: number; - hash: Uint8Array; + total?: number; + hash?: string; } export interface PartSetHeaderAminoMsg { type: "/tendermint.types.PartSetHeader"; @@ -63,8 +62,8 @@ export interface PartProtoMsg { value: Uint8Array; } export interface PartAmino { - index: number; - bytes: Uint8Array; + index?: number; + bytes?: string; proof?: ProofAmino; } export interface PartAminoMsg { @@ -87,7 +86,7 @@ export interface BlockIDProtoMsg { } /** BlockID */ export interface BlockIDAmino { - hash: Uint8Array; + hash?: string; part_set_header?: PartSetHeaderAmino; } export interface BlockIDAminoMsg { @@ -104,7 +103,7 @@ export interface Header { /** basic block info */ version: Consensus; chainId: string; - height: Long; + height: bigint; time: Timestamp; /** prev block info */ lastBlockId: BlockID; @@ -133,27 +132,27 @@ export interface HeaderProtoMsg { export interface HeaderAmino { /** basic block info */ version?: ConsensusAmino; - chain_id: string; - height: string; - time?: TimestampAmino; + chain_id?: string; + height?: string; + time?: string; /** prev block info */ last_block_id?: BlockIDAmino; /** hashes of block data */ - last_commit_hash: Uint8Array; - data_hash: Uint8Array; + last_commit_hash?: string; + data_hash?: string; /** hashes from the app output from the prev block */ - validators_hash: Uint8Array; + validators_hash?: string; /** validators for the next block */ - next_validators_hash: Uint8Array; + next_validators_hash?: string; /** consensus params for current block */ - consensus_hash: Uint8Array; + consensus_hash?: string; /** state after txs from the previous block */ - app_hash: Uint8Array; - last_results_hash: Uint8Array; + app_hash?: string; + last_results_hash?: string; /** consensus info */ - evidence_hash: Uint8Array; + evidence_hash?: string; /** original proposer of the block */ - proposer_address: Uint8Array; + proposer_address?: string; } export interface HeaderAminoMsg { type: "/tendermint.types.Header"; @@ -163,7 +162,7 @@ export interface HeaderAminoMsg { export interface HeaderSDKType { version: ConsensusSDKType; chain_id: string; - height: Long; + height: bigint; time: TimestampSDKType; last_block_id: BlockIDSDKType; last_commit_hash: Uint8Array; @@ -196,7 +195,7 @@ export interface DataAmino { * NOTE: not all txs here are valid. We're just agreeing on the order first. * This means that block.AppHash does not include these txs. */ - txs: Uint8Array[]; + txs?: string[]; } export interface DataAminoMsg { type: "/tendermint.types.Data"; @@ -212,7 +211,7 @@ export interface DataSDKType { */ export interface Vote { type: SignedMsgType; - height: Long; + height: bigint; round: number; blockId: BlockID; timestamp: Timestamp; @@ -229,14 +228,14 @@ export interface VoteProtoMsg { * consensus. */ export interface VoteAmino { - type: SignedMsgType; - height: string; - round: number; + type?: SignedMsgType; + height?: string; + round?: number; block_id?: BlockIDAmino; - timestamp?: TimestampAmino; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; } export interface VoteAminoMsg { type: "/tendermint.types.Vote"; @@ -248,7 +247,7 @@ export interface VoteAminoMsg { */ export interface VoteSDKType { type: SignedMsgType; - height: Long; + height: bigint; round: number; block_id: BlockIDSDKType; timestamp: TimestampSDKType; @@ -258,7 +257,7 @@ export interface VoteSDKType { } /** Commit contains the evidence that a block was committed by a set of validators. */ export interface Commit { - height: Long; + height: bigint; round: number; blockId: BlockID; signatures: CommitSig[]; @@ -269,10 +268,10 @@ export interface CommitProtoMsg { } /** Commit contains the evidence that a block was committed by a set of validators. */ export interface CommitAmino { - height: string; - round: number; + height?: string; + round?: number; block_id?: BlockIDAmino; - signatures: CommitSigAmino[]; + signatures?: CommitSigAmino[]; } export interface CommitAminoMsg { type: "/tendermint.types.Commit"; @@ -280,7 +279,7 @@ export interface CommitAminoMsg { } /** Commit contains the evidence that a block was committed by a set of validators. */ export interface CommitSDKType { - height: Long; + height: bigint; round: number; block_id: BlockIDSDKType; signatures: CommitSigSDKType[]; @@ -298,10 +297,10 @@ export interface CommitSigProtoMsg { } /** CommitSig is a part of the Vote included in a Commit. */ export interface CommitSigAmino { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp?: TimestampAmino; - signature: Uint8Array; + block_id_flag?: BlockIDFlag; + validator_address?: string; + timestamp?: string; + signature?: string; } export interface CommitSigAminoMsg { type: "/tendermint.types.CommitSig"; @@ -316,7 +315,7 @@ export interface CommitSigSDKType { } export interface Proposal { type: SignedMsgType; - height: Long; + height: bigint; round: number; polRound: number; blockId: BlockID; @@ -328,13 +327,13 @@ export interface ProposalProtoMsg { value: Uint8Array; } export interface ProposalAmino { - type: SignedMsgType; - height: string; - round: number; - pol_round: number; + type?: SignedMsgType; + height?: string; + round?: number; + pol_round?: number; block_id?: BlockIDAmino; - timestamp?: TimestampAmino; - signature: Uint8Array; + timestamp?: string; + signature?: string; } export interface ProposalAminoMsg { type: "/tendermint.types.Proposal"; @@ -342,7 +341,7 @@ export interface ProposalAminoMsg { } export interface ProposalSDKType { type: SignedMsgType; - height: Long; + height: bigint; round: number; pol_round: number; block_id: BlockIDSDKType; @@ -350,8 +349,8 @@ export interface ProposalSDKType { signature: Uint8Array; } export interface SignedHeader { - header: Header; - commit: Commit; + header?: Header; + commit?: Commit; } export interface SignedHeaderProtoMsg { typeUrl: "/tendermint.types.SignedHeader"; @@ -366,12 +365,12 @@ export interface SignedHeaderAminoMsg { value: SignedHeaderAmino; } export interface SignedHeaderSDKType { - header: HeaderSDKType; - commit: CommitSDKType; + header?: HeaderSDKType; + commit?: CommitSDKType; } export interface LightBlock { - signedHeader: SignedHeader; - validatorSet: ValidatorSet; + signedHeader?: SignedHeader; + validatorSet?: ValidatorSet; } export interface LightBlockProtoMsg { typeUrl: "/tendermint.types.LightBlock"; @@ -386,14 +385,14 @@ export interface LightBlockAminoMsg { value: LightBlockAmino; } export interface LightBlockSDKType { - signed_header: SignedHeaderSDKType; - validator_set: ValidatorSetSDKType; + signed_header?: SignedHeaderSDKType; + validator_set?: ValidatorSetSDKType; } export interface BlockMeta { blockId: BlockID; - blockSize: Long; + blockSize: bigint; header: Header; - numTxs: Long; + numTxs: bigint; } export interface BlockMetaProtoMsg { typeUrl: "/tendermint.types.BlockMeta"; @@ -401,9 +400,9 @@ export interface BlockMetaProtoMsg { } export interface BlockMetaAmino { block_id?: BlockIDAmino; - block_size: string; + block_size?: string; header?: HeaderAmino; - num_txs: string; + num_txs?: string; } export interface BlockMetaAminoMsg { type: "/tendermint.types.BlockMeta"; @@ -411,15 +410,15 @@ export interface BlockMetaAminoMsg { } export interface BlockMetaSDKType { block_id: BlockIDSDKType; - block_size: Long; + block_size: bigint; header: HeaderSDKType; - num_txs: Long; + num_txs: bigint; } /** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ export interface TxProof { rootHash: Uint8Array; data: Uint8Array; - proof: Proof; + proof?: Proof; } export interface TxProofProtoMsg { typeUrl: "/tendermint.types.TxProof"; @@ -427,8 +426,8 @@ export interface TxProofProtoMsg { } /** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ export interface TxProofAmino { - root_hash: Uint8Array; - data: Uint8Array; + root_hash?: string; + data?: string; proof?: ProofAmino; } export interface TxProofAminoMsg { @@ -439,11 +438,12 @@ export interface TxProofAminoMsg { export interface TxProofSDKType { root_hash: Uint8Array; data: Uint8Array; - proof: ProofSDKType; + proof?: ProofSDKType; } export declare const PartSetHeader: { - encode(message: PartSetHeader, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PartSetHeader; + typeUrl: string; + encode(message: PartSetHeader, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader; fromJSON(object: any): PartSetHeader; toJSON(message: PartSetHeader): unknown; fromPartial(object: Partial): PartSetHeader; @@ -455,8 +455,9 @@ export declare const PartSetHeader: { toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg; }; export declare const Part: { - encode(message: Part, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Part; + typeUrl: string; + encode(message: Part, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Part; fromJSON(object: any): Part; toJSON(message: Part): unknown; fromPartial(object: Partial): Part; @@ -468,8 +469,9 @@ export declare const Part: { toProtoMsg(message: Part): PartProtoMsg; }; export declare const BlockID: { - encode(message: BlockID, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BlockID; + typeUrl: string; + encode(message: BlockID, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockID; fromJSON(object: any): BlockID; toJSON(message: BlockID): unknown; fromPartial(object: Partial): BlockID; @@ -481,8 +483,9 @@ export declare const BlockID: { toProtoMsg(message: BlockID): BlockIDProtoMsg; }; export declare const Header: { - encode(message: Header, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Header; + typeUrl: string; + encode(message: Header, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Header; fromJSON(object: any): Header; toJSON(message: Header): unknown; fromPartial(object: Partial
): Header; @@ -494,8 +497,9 @@ export declare const Header: { toProtoMsg(message: Header): HeaderProtoMsg; }; export declare const Data: { - encode(message: Data, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Data; + typeUrl: string; + encode(message: Data, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Data; fromJSON(object: any): Data; toJSON(message: Data): unknown; fromPartial(object: Partial): Data; @@ -507,8 +511,9 @@ export declare const Data: { toProtoMsg(message: Data): DataProtoMsg; }; export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): unknown; fromPartial(object: Partial): Vote; @@ -520,8 +525,9 @@ export declare const Vote: { toProtoMsg(message: Vote): VoteProtoMsg; }; export declare const Commit: { - encode(message: Commit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Commit; + typeUrl: string; + encode(message: Commit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Commit; fromJSON(object: any): Commit; toJSON(message: Commit): unknown; fromPartial(object: Partial): Commit; @@ -533,8 +539,9 @@ export declare const Commit: { toProtoMsg(message: Commit): CommitProtoMsg; }; export declare const CommitSig: { - encode(message: CommitSig, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitSig; + typeUrl: string; + encode(message: CommitSig, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitSig; fromJSON(object: any): CommitSig; toJSON(message: CommitSig): unknown; fromPartial(object: Partial): CommitSig; @@ -546,8 +553,9 @@ export declare const CommitSig: { toProtoMsg(message: CommitSig): CommitSigProtoMsg; }; export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): unknown; fromPartial(object: Partial): Proposal; @@ -559,8 +567,9 @@ export declare const Proposal: { toProtoMsg(message: Proposal): ProposalProtoMsg; }; export declare const SignedHeader: { - encode(message: SignedHeader, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SignedHeader; + typeUrl: string; + encode(message: SignedHeader, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader; fromJSON(object: any): SignedHeader; toJSON(message: SignedHeader): unknown; fromPartial(object: Partial): SignedHeader; @@ -572,8 +581,9 @@ export declare const SignedHeader: { toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg; }; export declare const LightBlock: { - encode(message: LightBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LightBlock; + typeUrl: string; + encode(message: LightBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LightBlock; fromJSON(object: any): LightBlock; toJSON(message: LightBlock): unknown; fromPartial(object: Partial): LightBlock; @@ -585,8 +595,9 @@ export declare const LightBlock: { toProtoMsg(message: LightBlock): LightBlockProtoMsg; }; export declare const BlockMeta: { - encode(message: BlockMeta, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BlockMeta; + typeUrl: string; + encode(message: BlockMeta, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta; fromJSON(object: any): BlockMeta; toJSON(message: BlockMeta): unknown; fromPartial(object: Partial): BlockMeta; @@ -598,8 +609,9 @@ export declare const BlockMeta: { toProtoMsg(message: BlockMeta): BlockMetaProtoMsg; }; export declare const TxProof: { - encode(message: TxProof, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TxProof; + typeUrl: string; + encode(message: TxProof, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxProof; fromJSON(object: any): TxProof; toJSON(message: TxProof): unknown; fromPartial(object: Partial): TxProof; diff --git a/packages/api/types/codegen/tendermint/types/validator.d.ts b/packages/api/types/codegen/tendermint/types/validator.d.ts index 054bc18a..7d8b19ec 100644 --- a/packages/api/types/codegen/tendermint/types/validator.d.ts +++ b/packages/api/types/codegen/tendermint/types/validator.d.ts @@ -1,19 +1,18 @@ import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; export interface ValidatorSet { validators: Validator[]; - proposer: Validator; - totalVotingPower: Long; + proposer?: Validator; + totalVotingPower: bigint; } export interface ValidatorSetProtoMsg { typeUrl: "/tendermint.types.ValidatorSet"; value: Uint8Array; } export interface ValidatorSetAmino { - validators: ValidatorAmino[]; + validators?: ValidatorAmino[]; proposer?: ValidatorAmino; - total_voting_power: string; + total_voting_power?: string; } export interface ValidatorSetAminoMsg { type: "/tendermint.types.ValidatorSet"; @@ -21,24 +20,24 @@ export interface ValidatorSetAminoMsg { } export interface ValidatorSetSDKType { validators: ValidatorSDKType[]; - proposer: ValidatorSDKType; - total_voting_power: Long; + proposer?: ValidatorSDKType; + total_voting_power: bigint; } export interface Validator { address: Uint8Array; pubKey: PublicKey; - votingPower: Long; - proposerPriority: Long; + votingPower: bigint; + proposerPriority: bigint; } export interface ValidatorProtoMsg { typeUrl: "/tendermint.types.Validator"; value: Uint8Array; } export interface ValidatorAmino { - address: Uint8Array; + address?: string; pub_key?: PublicKeyAmino; - voting_power: string; - proposer_priority: string; + voting_power?: string; + proposer_priority?: string; } export interface ValidatorAminoMsg { type: "/tendermint.types.Validator"; @@ -47,12 +46,12 @@ export interface ValidatorAminoMsg { export interface ValidatorSDKType { address: Uint8Array; pub_key: PublicKeySDKType; - voting_power: Long; - proposer_priority: Long; + voting_power: bigint; + proposer_priority: bigint; } export interface SimpleValidator { - pubKey: PublicKey; - votingPower: Long; + pubKey?: PublicKey; + votingPower: bigint; } export interface SimpleValidatorProtoMsg { typeUrl: "/tendermint.types.SimpleValidator"; @@ -60,19 +59,20 @@ export interface SimpleValidatorProtoMsg { } export interface SimpleValidatorAmino { pub_key?: PublicKeyAmino; - voting_power: string; + voting_power?: string; } export interface SimpleValidatorAminoMsg { type: "/tendermint.types.SimpleValidator"; value: SimpleValidatorAmino; } export interface SimpleValidatorSDKType { - pub_key: PublicKeySDKType; - voting_power: Long; + pub_key?: PublicKeySDKType; + voting_power: bigint; } export declare const ValidatorSet: { - encode(message: ValidatorSet, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSet; + typeUrl: string; + encode(message: ValidatorSet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet; fromJSON(object: any): ValidatorSet; toJSON(message: ValidatorSet): unknown; fromPartial(object: Partial): ValidatorSet; @@ -84,8 +84,9 @@ export declare const ValidatorSet: { toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg; }; export declare const Validator: { - encode(message: Validator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Validator; + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: Partial): Validator; @@ -97,8 +98,9 @@ export declare const Validator: { toProtoMsg(message: Validator): ValidatorProtoMsg; }; export declare const SimpleValidator: { - encode(message: SimpleValidator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SimpleValidator; + typeUrl: string; + encode(message: SimpleValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator; fromJSON(object: any): SimpleValidator; toJSON(message: SimpleValidator): unknown; fromPartial(object: Partial): SimpleValidator; diff --git a/packages/api/types/codegen/tendermint/version/types.d.ts b/packages/api/types/codegen/tendermint/version/types.d.ts index cc58bf27..1414797c 100644 --- a/packages/api/types/codegen/tendermint/version/types.d.ts +++ b/packages/api/types/codegen/tendermint/version/types.d.ts @@ -1,12 +1,11 @@ -import { Long } from "../../helpers"; -import * as _m0 from "protobufjs/minimal"; +import { BinaryReader, BinaryWriter } from "../../binary"; /** * App includes the protocol and software version for the application. * This information is included in ResponseInfo. The App.Protocol can be * updated in ResponseEndBlock. */ export interface App { - protocol: Long; + protocol: bigint; software: string; } export interface AppProtoMsg { @@ -19,8 +18,8 @@ export interface AppProtoMsg { * updated in ResponseEndBlock. */ export interface AppAmino { - protocol: string; - software: string; + protocol?: string; + software?: string; } export interface AppAminoMsg { type: "/tendermint.version.App"; @@ -32,7 +31,7 @@ export interface AppAminoMsg { * updated in ResponseEndBlock. */ export interface AppSDKType { - protocol: Long; + protocol: bigint; software: string; } /** @@ -41,8 +40,8 @@ export interface AppSDKType { * state transition machine. */ export interface Consensus { - block: Long; - app: Long; + block: bigint; + app: bigint; } export interface ConsensusProtoMsg { typeUrl: "/tendermint.version.Consensus"; @@ -54,8 +53,8 @@ export interface ConsensusProtoMsg { * state transition machine. */ export interface ConsensusAmino { - block: string; - app: string; + block?: string; + app?: string; } export interface ConsensusAminoMsg { type: "/tendermint.version.Consensus"; @@ -67,12 +66,13 @@ export interface ConsensusAminoMsg { * state transition machine. */ export interface ConsensusSDKType { - block: Long; - app: Long; + block: bigint; + app: bigint; } export declare const App: { - encode(message: App, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): App; + typeUrl: string; + encode(message: App, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): App; fromJSON(object: any): App; toJSON(message: App): unknown; fromPartial(object: Partial): App; @@ -84,8 +84,9 @@ export declare const App: { toProtoMsg(message: App): AppProtoMsg; }; export declare const Consensus: { - encode(message: Consensus, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Consensus; + typeUrl: string; + encode(message: Consensus, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Consensus; fromJSON(object: any): Consensus; toJSON(message: Consensus): unknown; fromPartial(object: Partial): Consensus; diff --git a/yarn.lock b/yarn.lock index 73b010ff..2091e09b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2587,6 +2587,13 @@ shelljs "0.8.5" wasm-ast-types "^0.25.0" +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + "@csstools/normalize.css@*": version "12.0.0" resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-12.0.0.tgz#a9583a75c3f150667771f30b60d9f059473e62c4" @@ -3166,7 +3173,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== -"@jridgewell/resolve-uri@^3.1.0": +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== @@ -3196,6 +3203,14 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": version "0.3.18" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" @@ -4411,6 +4426,26 @@ resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA== +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + "@types/aria-query@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.1.tgz#3286741fb8f1e1580ac28784add4c7a1d49bdfbc" @@ -5199,11 +5234,23 @@ acorn-walk@^7.1.1: resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== +acorn-walk@^8.1.1: + version "8.3.3" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" + integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + dependencies: + acorn "^8.11.0" + acorn@^7.1.1, acorn@^7.4.0: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +acorn@^8.11.0, acorn@^8.4.1: + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== + acorn@^8.2.4: version "8.8.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" @@ -5406,6 +5453,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + arg@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" @@ -6964,6 +7016,11 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + cross-env@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" @@ -7499,6 +7556,11 @@ diff-sequences@^29.4.3: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.4.3.tgz#9314bc1fabe09267ffeca9cbafc457d8499a13f2" integrity sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" @@ -11521,7 +11583,7 @@ make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: dependencies: semver "^6.0.0" -make-error@1.x: +make-error@1.x, make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== @@ -15726,6 +15788,25 @@ ts-jest@^26.4.4: semver "7.x" yargs-parser "20.x" +ts-node@^10.9.2: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + tsconfig-paths@^3.14.1: version "3.14.2" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" @@ -16079,6 +16160,11 @@ uuid@^8.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -16815,6 +16901,11 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" From 7c772d15d783c2202235044495db6fd261825d4b Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 12:48:28 +0200 Subject: [PATCH 2/9] feat!: use latest telescope setup and update api-demo --- .eslintignore | 6 +- lerna.json | 26 +- package.json | 84 +- packages/api-demo/src/MyBalance.tsx | 2 +- packages/api-demo/src/examples/LCDCosmos.tsx | 4 +- packages/api-demo/src/examples/LCDRegen.tsx | 4 +- packages/api-demo/src/examples/RPCCosmos.tsx | 13 +- packages/api-demo/src/examples/RPCRegen.tsx | 9 +- packages/api-demo/tsconfig.json | 2 +- packages/api/.babelrc.js | 17 - packages/api/.eslintrc.js | 5 - packages/api/.gitignore | 17 - packages/api/.npmignore | 30 - packages/api/.npmrc | 1 - packages/api/CHANGELOG.md | 128 - packages/api/README.md | 307 - packages/api/package.json | 73 +- packages/api/scripts/aminos.js | 128 - packages/api/scripts/codegen.js | 58 - packages/api/src/codegen/amino/amino.ts | 1 - packages/api/src/codegen/amino/bundle.ts | 4 - packages/api/src/codegen/binary.ts | 534 - .../cosmos/app/module/v1alpha1/module.ts | 78 - .../src/codegen/cosmos/app/v1alpha1/config.ts | 282 - .../src/codegen/cosmos/app/v1alpha1/module.ts | 495 - .../cosmos/app/v1alpha1/query.rpc.Query.ts | 30 - .../src/codegen/cosmos/app/v1alpha1/query.ts | 181 - .../src/codegen/cosmos/auth/v1beta1/auth.ts | 477 - .../codegen/cosmos/auth/v1beta1/genesis.ts | 130 - .../codegen/cosmos/auth/v1beta1/query.lcd.ts | 87 - .../cosmos/auth/v1beta1/query.rpc.Query.ts | 144 - .../src/codegen/cosmos/auth/v1beta1/query.ts | 1992 --- .../src/codegen/cosmos/authz/v1beta1/authz.ts | 582 - .../src/codegen/cosmos/authz/v1beta1/event.ts | 280 - .../codegen/cosmos/authz/v1beta1/genesis.ts | 107 - .../codegen/cosmos/authz/v1beta1/query.lcd.ts | 62 - .../cosmos/authz/v1beta1/query.rpc.Query.ts | 60 - .../src/codegen/cosmos/authz/v1beta1/query.ts | 772 -- .../codegen/cosmos/authz/v1beta1/tx.amino.ts | 19 - .../cosmos/authz/v1beta1/tx.registry.ts | 110 - .../cosmos/authz/v1beta1/tx.rpc.msg.ts | 48 - .../src/codegen/cosmos/authz/v1beta1/tx.ts | 727 - .../src/codegen/cosmos/bank/v1beta1/authz.ts | 125 - .../src/codegen/cosmos/bank/v1beta1/bank.ts | 1072 -- .../codegen/cosmos/bank/v1beta1/genesis.ts | 321 - .../codegen/cosmos/bank/v1beta1/query.lcd.ts | 120 - .../cosmos/bank/v1beta1/query.rpc.Query.ts | 135 - .../src/codegen/cosmos/bank/v1beta1/query.ts | 2249 ---- .../codegen/cosmos/bank/v1beta1/tx.amino.ts | 13 - .../cosmos/bank/v1beta1/tx.registry.ts | 80 - .../codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts | 28 - .../api/src/codegen/cosmos/bank/v1beta1/tx.ts | 425 - .../codegen/cosmos/base/abci/v1beta1/abci.ts | 1709 --- .../src/codegen/cosmos/base/kv/v1beta1/kv.ts | 223 - .../cosmos/base/node/v1beta1/query.lcd.ts | 18 - .../base/node/v1beta1/query.rpc.Service.ts | 30 - .../codegen/cosmos/base/node/v1beta1/query.ts | 178 - .../cosmos/base/query/v1beta1/pagination.ts | 401 - .../base/reflection/v1beta1/reflection.ts | 410 - .../base/reflection/v2alpha1/reflection.ts | 2918 ---- .../cosmos/base/snapshots/v1beta1/snapshot.ts | 1233 -- .../cosmos/base/store/v1beta1/commit_info.ts | 383 - .../cosmos/base/store/v1beta1/listening.ts | 490 - .../base/tendermint/v1beta1/query.lcd.ts | 88 - .../tendermint/v1beta1/query.rpc.Service.ts | 104 - .../cosmos/base/tendermint/v1beta1/query.ts | 2609 ---- .../cosmos/base/tendermint/v1beta1/types.ts | 511 - .../src/codegen/cosmos/base/v1beta1/coin.ts | 462 - packages/api/src/codegen/cosmos/bundle.ts | 520 - .../cosmos/capability/v1beta1/capability.ts | 349 - .../cosmos/capability/v1beta1/genesis.ts | 255 - packages/api/src/codegen/cosmos/client.ts | 78 - .../codegen/cosmos/crisis/v1beta1/genesis.ts | 110 - .../codegen/cosmos/crisis/v1beta1/tx.amino.ts | 8 - .../cosmos/crisis/v1beta1/tx.registry.ts | 50 - .../cosmos/crisis/v1beta1/tx.rpc.msg.ts | 20 - .../src/codegen/cosmos/crisis/v1beta1/tx.ts | 212 - .../src/codegen/cosmos/crypto/ed25519/keys.ts | 227 - .../api/src/codegen/cosmos/crypto/hd/v1/hd.ts | 185 - .../cosmos/crypto/keyring/v1/record.ts | 561 - .../codegen/cosmos/crypto/multisig/keys.ts | 137 - .../crypto/multisig/v1beta1/multisig.ts | 250 - .../codegen/cosmos/crypto/secp256k1/keys.ts | 218 - .../codegen/cosmos/crypto/secp256r1/keys.ts | 210 - .../distribution/v1beta1/distribution.ts | 1653 --- .../cosmos/distribution/v1beta1/genesis.ts | 1270 -- .../cosmos/distribution/v1beta1/query.lcd.ts | 80 - .../distribution/v1beta1/query.rpc.Query.ts | 121 - .../cosmos/distribution/v1beta1/query.ts | 2067 --- .../cosmos/distribution/v1beta1/tx.amino.ts | 23 - .../distribution/v1beta1/tx.registry.ts | 140 - .../cosmos/distribution/v1beta1/tx.rpc.msg.ts | 56 - .../codegen/cosmos/distribution/v1beta1/tx.ts | 860 -- .../cosmos/evidence/v1beta1/evidence.ts | 162 - .../cosmos/evidence/v1beta1/genesis.ts | 109 - .../cosmos/evidence/v1beta1/query.lcd.ts | 33 - .../evidence/v1beta1/query.rpc.Query.ts | 43 - .../codegen/cosmos/evidence/v1beta1/query.ts | 451 - .../cosmos/evidence/v1beta1/tx.amino.ts | 8 - .../cosmos/evidence/v1beta1/tx.registry.ts | 50 - .../cosmos/evidence/v1beta1/tx.rpc.msg.ts | 23 - .../src/codegen/cosmos/evidence/v1beta1/tx.ts | 246 - .../cosmos/feegrant/v1beta1/feegrant.ts | 703 - .../cosmos/feegrant/v1beta1/genesis.ts | 107 - .../cosmos/feegrant/v1beta1/query.lcd.ts | 45 - .../feegrant/v1beta1/query.rpc.Query.ts | 56 - .../codegen/cosmos/feegrant/v1beta1/query.ts | 737 - .../cosmos/feegrant/v1beta1/tx.amino.ts | 13 - .../cosmos/feegrant/v1beta1/tx.registry.ts | 80 - .../cosmos/feegrant/v1beta1/tx.rpc.msg.ts | 34 - .../src/codegen/cosmos/feegrant/v1beta1/tx.ts | 485 - .../codegen/cosmos/genutil/v1beta1/genesis.ts | 109 - .../api/src/codegen/cosmos/gov/v1/genesis.ts | 236 - packages/api/src/codegen/cosmos/gov/v1/gov.ts | 1381 -- .../src/codegen/cosmos/gov/v1/query.lcd.ts | 88 - .../codegen/cosmos/gov/v1/query.rpc.Query.ts | 107 - .../api/src/codegen/cosmos/gov/v1/query.ts | 1875 --- .../api/src/codegen/cosmos/gov/v1/tx.amino.ts | 28 - .../src/codegen/cosmos/gov/v1/tx.registry.ts | 170 - .../src/codegen/cosmos/gov/v1/tx.rpc.msg.ts | 55 - packages/api/src/codegen/cosmos/gov/v1/tx.ts | 1195 -- .../src/codegen/cosmos/gov/v1beta1/genesis.ts | 236 - .../api/src/codegen/cosmos/gov/v1beta1/gov.ts | 1545 --- .../codegen/cosmos/gov/v1beta1/query.lcd.ts | 88 - .../cosmos/gov/v1beta1/query.rpc.Query.ts | 107 - .../src/codegen/cosmos/gov/v1beta1/query.ts | 1875 --- .../codegen/cosmos/gov/v1beta1/tx.amino.ts | 23 - .../codegen/cosmos/gov/v1beta1/tx.registry.ts | 140 - .../codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts | 48 - .../api/src/codegen/cosmos/gov/v1beta1/tx.ts | 953 -- .../api/src/codegen/cosmos/group/v1/events.ts | 969 -- .../src/codegen/cosmos/group/v1/genesis.ts | 285 - .../src/codegen/cosmos/group/v1/query.lcd.ts | 143 - .../cosmos/group/v1/query.rpc.Query.ts | 168 - .../api/src/codegen/cosmos/group/v1/query.ts | 3001 ----- .../src/codegen/cosmos/group/v1/tx.amino.ts | 73 - .../codegen/cosmos/group/v1/tx.registry.ts | 440 - .../src/codegen/cosmos/group/v1/tx.rpc.msg.ts | 124 - .../api/src/codegen/cosmos/group/v1/tx.ts | 3420 ----- .../api/src/codegen/cosmos/group/v1/types.ts | 2260 ---- packages/api/src/codegen/cosmos/lcd.ts | 104 - .../codegen/cosmos/mint/v1beta1/genesis.ts | 123 - .../src/codegen/cosmos/mint/v1beta1/mint.ts | 319 - .../codegen/cosmos/mint/v1beta1/query.lcd.ts | 30 - .../cosmos/mint/v1beta1/query.rpc.Query.ts | 52 - .../src/codegen/cosmos/mint/v1beta1/query.ts | 564 - packages/api/src/codegen/cosmos/msg/v1/msg.ts | 1 - .../src/codegen/cosmos/nft/v1beta1/event.ts | 418 - .../src/codegen/cosmos/nft/v1beta1/genesis.ts | 259 - .../api/src/codegen/cosmos/nft/v1beta1/nft.ts | 395 - .../codegen/cosmos/nft/v1beta1/query.lcd.ts | 76 - .../cosmos/nft/v1beta1/query.rpc.Query.ts | 101 - .../src/codegen/cosmos/nft/v1beta1/query.ts | 1523 --- .../codegen/cosmos/nft/v1beta1/tx.amino.ts | 8 - .../codegen/cosmos/nft/v1beta1/tx.registry.ts | 50 - .../codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts | 20 - .../api/src/codegen/cosmos/nft/v1beta1/tx.ts | 237 - .../cosmos/orm/module/v1alpha1/module.ts | 90 - packages/api/src/codegen/cosmos/orm/v1/orm.ts | 621 - .../src/codegen/cosmos/orm/v1alpha1/schema.ts | 378 - .../codegen/cosmos/params/v1beta1/params.ts | 286 - .../cosmos/params/v1beta1/query.lcd.ts | 36 - .../cosmos/params/v1beta1/query.rpc.Query.ts | 48 - .../codegen/cosmos/params/v1beta1/query.ts | 573 - packages/api/src/codegen/cosmos/rpc.query.ts | 71 - packages/api/src/codegen/cosmos/rpc.tx.ts | 49 - .../cosmos/slashing/v1beta1/genesis.ts | 541 - .../cosmos/slashing/v1beta1/query.lcd.ts | 39 - .../slashing/v1beta1/query.rpc.Query.ts | 54 - .../codegen/cosmos/slashing/v1beta1/query.ts | 641 - .../cosmos/slashing/v1beta1/slashing.ts | 394 - .../cosmos/slashing/v1beta1/tx.amino.ts | 8 - .../cosmos/slashing/v1beta1/tx.registry.ts | 50 - .../cosmos/slashing/v1beta1/tx.rpc.msg.ts | 24 - .../src/codegen/cosmos/slashing/v1beta1/tx.ts | 178 - .../codegen/cosmos/staking/v1beta1/authz.ts | 346 - .../codegen/cosmos/staking/v1beta1/genesis.ts | 397 - .../cosmos/staking/v1beta1/query.lcd.ts | 152 - .../cosmos/staking/v1beta1/query.rpc.Query.ts | 185 - .../codegen/cosmos/staking/v1beta1/query.ts | 3341 ----- .../codegen/cosmos/staking/v1beta1/staking.ts | 3077 ----- .../cosmos/staking/v1beta1/tx.amino.ts | 34 - .../cosmos/staking/v1beta1/tx.registry.ts | 200 - .../cosmos/staking/v1beta1/tx.rpc.msg.ts | 74 - .../src/codegen/cosmos/staking/v1beta1/tx.ts | 1516 --- .../cosmos/tx/signing/v1beta1/signing.ts | 740 - .../codegen/cosmos/tx/v1beta1/service.lcd.ts | 57 - .../cosmos/tx/v1beta1/service.rpc.Service.ts | 78 - .../src/codegen/cosmos/tx/v1beta1/service.ts | 1549 --- .../api/src/codegen/cosmos/tx/v1beta1/tx.ts | 2260 ---- .../cosmos/upgrade/v1beta1/query.lcd.ts | 57 - .../cosmos/upgrade/v1beta1/query.rpc.Query.ts | 89 - .../codegen/cosmos/upgrade/v1beta1/query.ts | 1097 -- .../cosmos/upgrade/v1beta1/tx.amino.ts | 13 - .../cosmos/upgrade/v1beta1/tx.registry.ts | 80 - .../cosmos/upgrade/v1beta1/tx.rpc.msg.ts | 37 - .../src/codegen/cosmos/upgrade/v1beta1/tx.ts | 426 - .../codegen/cosmos/upgrade/v1beta1/upgrade.ts | 654 - .../cosmos/vesting/v1beta1/tx.amino.ts | 18 - .../cosmos/vesting/v1beta1/tx.registry.ts | 110 - .../cosmos/vesting/v1beta1/tx.rpc.msg.ts | 49 - .../src/codegen/cosmos/vesting/v1beta1/tx.ts | 769 -- .../codegen/cosmos/vesting/v1beta1/vesting.ts | 821 -- .../api/src/codegen/cosmos_proto/bundle.ts | 4 - .../api/src/codegen/cosmos_proto/cosmos.ts | 379 - packages/api/src/codegen/gogoproto/bundle.ts | 4 - packages/api/src/codegen/gogoproto/gogo.ts | 1 - .../api/src/codegen/google/api/annotations.ts | 1 - packages/api/src/codegen/google/api/http.ts | 1423 -- packages/api/src/codegen/google/bundle.ts | 18 - .../api/src/codegen/google/protobuf/any.ts | 411 - .../src/codegen/google/protobuf/descriptor.ts | 5788 -------- .../src/codegen/google/protobuf/duration.ts | 293 - .../src/codegen/google/protobuf/timestamp.ts | 359 - packages/api/src/codegen/helpers.ts | 255 - .../ibc/applications/transfer/v1/genesis.ts | 142 - .../ibc/applications/transfer/v1/query.lcd.ts | 51 - .../transfer/v1/query.rpc.Query.ts | 76 - .../ibc/applications/transfer/v1/query.ts | 1088 -- .../ibc/applications/transfer/v1/transfer.ts | 284 - .../ibc/applications/transfer/v1/tx.amino.ts | 8 - .../applications/transfer/v1/tx.registry.ts | 50 - .../applications/transfer/v1/tx.rpc.msg.ts | 20 - .../ibc/applications/transfer/v1/tx.ts | 320 - packages/api/src/codegen/ibc/bundle.ts | 58 - packages/api/src/codegen/ibc/client.ts | 50 - .../src/codegen/ibc/core/client/v1/client.ts | 1013 -- .../src/codegen/ibc/core/client/v1/genesis.ts | 475 - .../codegen/ibc/core/client/v1/query.lcd.ts | 95 - .../ibc/core/client/v1/query.rpc.Query.ts | 126 - .../src/codegen/ibc/core/client/v1/query.ts | 2169 --- .../codegen/ibc/core/client/v1/tx.amino.ts | 23 - .../codegen/ibc/core/client/v1/tx.registry.ts | 140 - .../codegen/ibc/core/client/v1/tx.rpc.msg.ts | 44 - .../api/src/codegen/ibc/core/client/v1/tx.ts | 984 -- packages/api/src/codegen/ibc/lcd.ts | 120 - packages/api/src/codegen/ibc/rpc.query.ts | 83 - packages/api/src/codegen/ibc/rpc.tx.ts | 61 - packages/api/src/codegen/index.ts | 20 - packages/api/src/codegen/regen/bundle.ts | 152 - packages/api/src/codegen/regen/client.ts | 62 - .../api/src/codegen/regen/data/v1/events.ts | 435 - .../src/codegen/regen/data/v1/query.lcd.ts | 68 - .../codegen/regen/data/v1/query.rpc.Query.ts | 149 - .../api/src/codegen/regen/data/v1/query.ts | 2785 ---- .../api/src/codegen/regen/data/v1/state.ts | 632 - .../api/src/codegen/regen/data/v1/tx.amino.ts | 23 - .../src/codegen/regen/data/v1/tx.registry.ts | 140 - .../src/codegen/regen/data/v1/tx.rpc.msg.ts | 78 - packages/api/src/codegen/regen/data/v1/tx.ts | 989 -- .../api/src/codegen/regen/data/v1/types.ts | 789 -- .../regen/ecocredit/basket/v1/events.ts | 735 - .../regen/ecocredit/basket/v1/query.lcd.ts | 60 - .../ecocredit/basket/v1/query.rpc.Query.ts | 81 - .../regen/ecocredit/basket/v1/query.ts | 1562 --- .../regen/ecocredit/basket/v1/state.ts | 708 - .../regen/ecocredit/basket/v1/tx.amino.ts | 33 - .../regen/ecocredit/basket/v1/tx.registry.ts | 200 - .../regen/ecocredit/basket/v1/tx.rpc.msg.ts | 107 - .../codegen/regen/ecocredit/basket/v1/tx.ts | 1765 --- .../regen/ecocredit/basket/v1/types.ts | 308 - .../regen/ecocredit/marketplace/v1/events.ts | 620 - .../ecocredit/marketplace/v1/query.lcd.ts | 74 - .../marketplace/v1/query.rpc.Query.ts | 87 - .../regen/ecocredit/marketplace/v1/query.ts | 1385 -- .../regen/ecocredit/marketplace/v1/state.ts | 673 - .../ecocredit/marketplace/v1/tx.amino.ts | 33 - .../ecocredit/marketplace/v1/tx.registry.ts | 200 - .../ecocredit/marketplace/v1/tx.rpc.msg.ts | 69 - .../regen/ecocredit/marketplace/v1/tx.ts | 1927 --- .../regen/ecocredit/marketplace/v1/types.ts | 160 - .../ecocredit/orderbook/v1alpha1/memory.ts | 636 - .../src/codegen/regen/ecocredit/v1/events.ts | 2379 ---- .../codegen/regen/ecocredit/v1/query.lcd.ts | 293 - .../regen/ecocredit/v1/query.rpc.Query.ts | 365 - .../src/codegen/regen/ecocredit/v1/query.ts | 6500 --------- .../src/codegen/regen/ecocredit/v1/state.ts | 2592 ---- .../codegen/regen/ecocredit/v1/tx.amino.ts | 118 - .../codegen/regen/ecocredit/v1/tx.registry.ts | 710 - .../codegen/regen/ecocredit/v1/tx.rpc.msg.ts | 320 - .../api/src/codegen/regen/ecocredit/v1/tx.ts | 6223 --------- .../src/codegen/regen/ecocredit/v1/types.ts | 1128 -- .../regen/ecocredit/v1alpha1/events.ts | 901 -- .../regen/ecocredit/v1alpha1/genesis.ts | 523 - .../regen/ecocredit/v1alpha1/query.lcd.ts | 77 - .../ecocredit/v1alpha1/query.rpc.Query.ts | 115 - .../codegen/regen/ecocredit/v1alpha1/query.ts | 1620 --- .../regen/ecocredit/v1alpha1/tx.amino.ts | 43 - .../regen/ecocredit/v1alpha1/tx.registry.ts | 260 - .../regen/ecocredit/v1alpha1/tx.rpc.msg.ts | 90 - .../codegen/regen/ecocredit/v1alpha1/tx.ts | 2472 ---- .../codegen/regen/ecocredit/v1alpha1/types.ts | 999 -- .../src/codegen/regen/intertx/v1/query.lcd.ts | 19 - .../regen/intertx/v1/query.rpc.Query.ts | 33 - .../api/src/codegen/regen/intertx/v1/query.ts | 229 - .../src/codegen/regen/intertx/v1/tx.amino.ts | 13 - .../codegen/regen/intertx/v1/tx.registry.ts | 80 - .../codegen/regen/intertx/v1/tx.rpc.msg.ts | 28 - .../api/src/codegen/regen/intertx/v1/tx.ts | 419 - packages/api/src/codegen/regen/lcd.ts | 134 - packages/api/src/codegen/regen/rpc.query.ts | 89 - packages/api/src/codegen/regen/rpc.tx.ts | 67 - .../api/src/codegen/tendermint/abci/types.ts | 6641 --------- packages/api/src/codegen/tendermint/bundle.ts | 38 - .../api/src/codegen/tendermint/crypto/keys.ts | 112 - .../src/codegen/tendermint/crypto/proof.ts | 622 - .../src/codegen/tendermint/libs/bits/types.ts | 124 - .../api/src/codegen/tendermint/p2p/types.ts | 566 - .../api/src/codegen/tendermint/types/block.ts | 145 - .../src/codegen/tendermint/types/evidence.ts | 536 - .../src/codegen/tendermint/types/params.ts | 768 -- .../api/src/codegen/tendermint/types/types.ts | 2072 --- .../src/codegen/tendermint/types/validator.ts | 381 - .../src/codegen/tendermint/version/types.ts | 246 - packages/api/src/codegen/utf8.ts | 148 - packages/api/src/codegen/varint.ts | 488 - packages/api/src/index.ts | 22 +- packages/api/tsconfig.json | 22 +- packages/api/types/codegen/amino/amino.d.ts | 1 - packages/api/types/codegen/amino/bundle.d.ts | 1 - .../cosmos/app/module/v1alpha1/module.d.ts | 33 - .../codegen/cosmos/app/v1alpha1/config.d.ts | 133 - .../codegen/cosmos/app/v1alpha1/module.d.ts | 248 - .../codegen/cosmos/app/v1alpha1/query.d.ts | 71 - .../cosmos/app/v1alpha1/query.rpc.Query.d.ts | 16 - .../codegen/cosmos/auth/v1beta1/auth.d.ts | 150 - .../codegen/cosmos/auth/v1beta1/genesis.d.ts | 45 - .../codegen/cosmos/auth/v1beta1/query.d.ts | 812 -- .../cosmos/auth/v1beta1/query.lcd.d.ts | 17 - .../cosmos/auth/v1beta1/query.rpc.Query.d.ts | 72 - .../codegen/cosmos/authz/v1beta1/authz.d.ts | 209 - .../codegen/cosmos/authz/v1beta1/event.d.ts | 95 - .../codegen/cosmos/authz/v1beta1/genesis.d.ts | 37 - .../codegen/cosmos/authz/v1beta1/query.d.ts | 257 - .../cosmos/authz/v1beta1/query.lcd.d.ts | 11 - .../cosmos/authz/v1beta1/query.rpc.Query.d.ts | 32 - .../cosmos/authz/v1beta1/tx.amino.d.ts | 18 - .../codegen/cosmos/authz/v1beta1/tx.d.ts | 276 - .../cosmos/authz/v1beta1/tx.registry.d.ts | 76 - .../cosmos/authz/v1beta1/tx.rpc.msg.d.ts | 30 - .../codegen/cosmos/bank/v1beta1/authz.d.ts | 54 - .../codegen/cosmos/bank/v1beta1/bank.d.ts | 404 - .../codegen/cosmos/bank/v1beta1/genesis.d.ts | 112 - .../codegen/cosmos/bank/v1beta1/query.d.ts | 881 -- .../cosmos/bank/v1beta1/query.lcd.d.ts | 17 - .../cosmos/bank/v1beta1/query.rpc.Query.d.ts | 61 - .../codegen/cosmos/bank/v1beta1/tx.amino.d.ts | 13 - .../types/codegen/cosmos/bank/v1beta1/tx.d.ts | 146 - .../cosmos/bank/v1beta1/tx.registry.d.ts | 56 - .../cosmos/bank/v1beta1/tx.rpc.msg.d.ts | 15 - .../cosmos/base/abci/v1beta1/abci.d.ts | 622 - .../codegen/cosmos/base/kv/v1beta1/kv.d.ts | 74 - .../cosmos/base/node/v1beta1/query.d.ts | 68 - .../cosmos/base/node/v1beta1/query.lcd.d.ts | 9 - .../base/node/v1beta1/query.rpc.Service.d.ts | 16 - .../cosmos/base/query/v1beta1/pagination.d.ts | 202 - .../base/reflection/v1beta1/reflection.d.ts | 160 - .../base/reflection/v2alpha1/reflection.d.ts | 1109 -- .../base/snapshots/v1beta1/snapshot.d.ts | 448 - .../base/store/v1beta1/commit_info.d.ts | 142 - .../cosmos/base/store/v1beta1/listening.d.ts | 165 - .../cosmos/base/tendermint/v1beta1/query.d.ts | 935 -- .../base/tendermint/v1beta1/query.lcd.d.ts | 15 - .../tendermint/v1beta1/query.rpc.Service.d.ts | 46 - .../cosmos/base/tendermint/v1beta1/types.d.ts | 158 - .../codegen/cosmos/base/v1beta1/coin.d.ts | 177 - packages/api/types/codegen/cosmos/bundle.d.ts | 11137 ---------------- .../cosmos/capability/v1beta1/capability.d.ts | 136 - .../cosmos/capability/v1beta1/genesis.d.ts | 92 - packages/api/types/codegen/cosmos/client.d.ts | 259 - .../cosmos/crisis/v1beta1/genesis.d.ts | 45 - .../cosmos/crisis/v1beta1/tx.amino.d.ts | 8 - .../codegen/cosmos/crisis/v1beta1/tx.d.ts | 74 - .../cosmos/crisis/v1beta1/tx.registry.d.ts | 36 - .../cosmos/crisis/v1beta1/tx.rpc.msg.d.ts | 12 - .../codegen/cosmos/crypto/ed25519/keys.d.ts | 98 - .../types/codegen/cosmos/crypto/hd/v1/hd.d.ts | 64 - .../cosmos/crypto/keyring/v1/record.d.ts | 208 - .../codegen/cosmos/crypto/multisig/keys.d.ts | 52 - .../crypto/multisig/v1beta1/multisig.d.ts | 101 - .../codegen/cosmos/crypto/secp256k1/keys.d.ts | 89 - .../codegen/cosmos/crypto/secp256r1/keys.d.ts | 81 - .../distribution/v1beta1/distribution.d.ts | 609 - .../cosmos/distribution/v1beta1/genesis.d.ts | 429 - .../cosmos/distribution/v1beta1/query.d.ts | 832 -- .../distribution/v1beta1/query.lcd.d.ts | 17 - .../distribution/v1beta1/query.rpc.Query.d.ts | 51 - .../cosmos/distribution/v1beta1/tx.amino.d.ts | 23 - .../cosmos/distribution/v1beta1/tx.d.ts | 325 - .../distribution/v1beta1/tx.registry.d.ts | 96 - .../distribution/v1beta1/tx.rpc.msg.d.ts | 33 - .../cosmos/evidence/v1beta1/evidence.d.ts | 55 - .../cosmos/evidence/v1beta1/genesis.d.ts | 39 - .../cosmos/evidence/v1beta1/query.d.ts | 174 - .../cosmos/evidence/v1beta1/query.lcd.d.ts | 10 - .../evidence/v1beta1/query.rpc.Query.d.ts | 20 - .../cosmos/evidence/v1beta1/tx.amino.d.ts | 8 - .../codegen/cosmos/evidence/v1beta1/tx.d.ts | 92 - .../cosmos/evidence/v1beta1/tx.registry.d.ts | 36 - .../cosmos/evidence/v1beta1/tx.rpc.msg.d.ts | 15 - .../cosmos/feegrant/v1beta1/feegrant.d.ts | 254 - .../cosmos/feegrant/v1beta1/genesis.d.ts | 37 - .../cosmos/feegrant/v1beta1/query.d.ts | 270 - .../cosmos/feegrant/v1beta1/query.lcd.d.ts | 11 - .../feegrant/v1beta1/query.rpc.Query.d.ts | 28 - .../cosmos/feegrant/v1beta1/tx.amino.d.ts | 13 - .../codegen/cosmos/feegrant/v1beta1/tx.d.ts | 171 - .../cosmos/feegrant/v1beta1/tx.registry.d.ts | 56 - .../cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts | 21 - .../cosmos/genutil/v1beta1/genesis.d.ts | 38 - .../types/codegen/cosmos/gov/v1/genesis.d.ts | 69 - .../api/types/codegen/cosmos/gov/v1/gov.d.ts | 463 - .../types/codegen/cosmos/gov/v1/query.d.ts | 664 - .../codegen/cosmos/gov/v1/query.lcd.d.ts | 16 - .../cosmos/gov/v1/query.rpc.Query.d.ts | 44 - .../types/codegen/cosmos/gov/v1/tx.amino.d.ts | 28 - .../api/types/codegen/cosmos/gov/v1/tx.d.ts | 409 - .../codegen/cosmos/gov/v1/tx.registry.d.ts | 116 - .../codegen/cosmos/gov/v1/tx.rpc.msg.d.ts | 27 - .../codegen/cosmos/gov/v1beta1/genesis.d.ts | 69 - .../types/codegen/cosmos/gov/v1beta1/gov.d.ts | 538 - .../codegen/cosmos/gov/v1beta1/query.d.ts | 664 - .../codegen/cosmos/gov/v1beta1/query.lcd.d.ts | 16 - .../cosmos/gov/v1beta1/query.rpc.Query.d.ts | 44 - .../codegen/cosmos/gov/v1beta1/tx.amino.d.ts | 23 - .../types/codegen/cosmos/gov/v1beta1/tx.d.ts | 338 - .../cosmos/gov/v1beta1/tx.registry.d.ts | 96 - .../cosmos/gov/v1beta1/tx.rpc.msg.d.ts | 25 - .../types/codegen/cosmos/group/v1/events.d.ts | 350 - .../codegen/cosmos/group/v1/genesis.d.ts | 92 - .../types/codegen/cosmos/group/v1/query.d.ts | 1050 -- .../codegen/cosmos/group/v1/query.lcd.d.ts | 21 - .../cosmos/group/v1/query.rpc.Query.d.ts | 70 - .../codegen/cosmos/group/v1/tx.amino.d.ts | 73 - .../api/types/codegen/cosmos/group/v1/tx.d.ts | 1228 -- .../codegen/cosmos/group/v1/tx.registry.d.ts | 296 - .../codegen/cosmos/group/v1/tx.rpc.msg.d.ts | 51 - .../types/codegen/cosmos/group/v1/types.d.ts | 854 -- packages/api/types/codegen/cosmos/lcd.d.ts | 60 - .../codegen/cosmos/mint/v1beta1/genesis.d.ts | 44 - .../codegen/cosmos/mint/v1beta1/mint.d.ts | 105 - .../codegen/cosmos/mint/v1beta1/query.d.ts | 236 - .../cosmos/mint/v1beta1/query.lcd.d.ts | 11 - .../cosmos/mint/v1beta1/query.rpc.Query.d.ts | 24 - .../api/types/codegen/cosmos/msg/v1/msg.d.ts | 1 - .../codegen/cosmos/nft/v1beta1/event.d.ts | 127 - .../codegen/cosmos/nft/v1beta1/genesis.d.ts | 84 - .../types/codegen/cosmos/nft/v1beta1/nft.d.ts | 126 - .../codegen/cosmos/nft/v1beta1/query.d.ts | 516 - .../codegen/cosmos/nft/v1beta1/query.lcd.d.ts | 15 - .../cosmos/nft/v1beta1/query.rpc.Query.d.ts | 43 - .../codegen/cosmos/nft/v1beta1/tx.amino.d.ts | 8 - .../types/codegen/cosmos/nft/v1beta1/tx.d.ts | 85 - .../cosmos/nft/v1beta1/tx.registry.d.ts | 36 - .../cosmos/nft/v1beta1/tx.rpc.msg.d.ts | 12 - .../cosmos/orm/module/v1alpha1/module.d.ts | 45 - .../api/types/codegen/cosmos/orm/v1/orm.d.ts | 288 - .../codegen/cosmos/orm/v1alpha1/schema.d.ts | 163 - .../codegen/cosmos/params/v1beta1/params.d.ts | 94 - .../codegen/cosmos/params/v1beta1/query.d.ts | 231 - .../cosmos/params/v1beta1/query.lcd.d.ts | 10 - .../params/v1beta1/query.rpc.Query.d.ts | 27 - .../api/types/codegen/cosmos/rpc.query.d.ts | 195 - packages/api/types/codegen/cosmos/rpc.tx.d.ts | 47 - .../cosmos/slashing/v1beta1/genesis.d.ts | 196 - .../cosmos/slashing/v1beta1/query.d.ts | 255 - .../cosmos/slashing/v1beta1/query.lcd.d.ts | 11 - .../slashing/v1beta1/query.rpc.Query.d.ts | 24 - .../cosmos/slashing/v1beta1/slashing.d.ts | 139 - .../cosmos/slashing/v1beta1/tx.amino.d.ts | 8 - .../codegen/cosmos/slashing/v1beta1/tx.d.ts | 68 - .../cosmos/slashing/v1beta1/tx.registry.d.ts | 36 - .../cosmos/slashing/v1beta1/tx.rpc.msg.d.ts | 16 - .../codegen/cosmos/staking/v1beta1/authz.d.ts | 135 - .../cosmos/staking/v1beta1/genesis.d.ts | 126 - .../codegen/cosmos/staking/v1beta1/query.d.ts | 1278 -- .../cosmos/staking/v1beta1/query.lcd.d.ts | 22 - .../staking/v1beta1/query.rpc.Query.d.ts | 80 - .../cosmos/staking/v1beta1/staking.d.ts | 1106 -- .../cosmos/staking/v1beta1/tx.amino.d.ts | 33 - .../codegen/cosmos/staking/v1beta1/tx.d.ts | 544 - .../cosmos/staking/v1beta1/tx.registry.d.ts | 136 - .../cosmos/staking/v1beta1/tx.rpc.msg.d.ts | 41 - .../cosmos/tx/signing/v1beta1/signing.d.ts | 294 - .../codegen/cosmos/tx/v1beta1/service.d.ts | 613 - .../cosmos/tx/v1beta1/service.lcd.d.ts | 11 - .../tx/v1beta1/service.rpc.Service.d.ts | 36 - .../types/codegen/cosmos/tx/v1beta1/tx.d.ts | 967 -- .../codegen/cosmos/upgrade/v1beta1/query.d.ts | 488 - .../cosmos/upgrade/v1beta1/query.lcd.d.ts | 13 - .../upgrade/v1beta1/query.rpc.Query.d.ts | 47 - .../cosmos/upgrade/v1beta1/tx.amino.d.ts | 13 - .../codegen/cosmos/upgrade/v1beta1/tx.d.ts | 193 - .../cosmos/upgrade/v1beta1/tx.registry.d.ts | 56 - .../cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts | 24 - .../cosmos/upgrade/v1beta1/upgrade.d.ts | 283 - .../cosmos/vesting/v1beta1/tx.amino.d.ts | 18 - .../codegen/cosmos/vesting/v1beta1/tx.d.ts | 297 - .../cosmos/vesting/v1beta1/tx.registry.d.ts | 76 - .../cosmos/vesting/v1beta1/tx.rpc.msg.d.ts | 31 - .../cosmos/vesting/v1beta1/vesting.d.ts | 294 - .../types/codegen/cosmos_proto/bundle.d.ts | 36 - .../types/codegen/cosmos_proto/cosmos.d.ts | 175 - .../api/types/codegen/gogoproto/bundle.d.ts | 1 - .../api/types/codegen/gogoproto/gogo.d.ts | 1 - .../types/codegen/google/api/annotations.d.ts | 1 - packages/api/types/codegen/google/bundle.d.ts | 503 - .../types/codegen/google/protobuf/any.d.ts | 340 - .../codegen/google/protobuf/descriptor.d.ts | 2332 ---- .../codegen/google/protobuf/duration.d.ts | 225 - .../codegen/google/protobuf/timestamp.d.ts | 295 - packages/api/types/codegen/helpers.d.ts | 81 - .../ibc/applications/transfer/v1/genesis.d.ts | 43 - .../ibc/applications/transfer/v1/query.d.ts | 432 - .../applications/transfer/v1/query.lcd.d.ts | 13 - .../transfer/v1/query.rpc.Query.d.ts | 32 - .../applications/transfer/v1/transfer.d.ts | 127 - .../applications/transfer/v1/tx.amino.d.ts | 8 - .../ibc/applications/transfer/v1/tx.d.ts | 126 - .../applications/transfer/v1/tx.registry.d.ts | 36 - .../applications/transfer/v1/tx.rpc.msg.d.ts | 12 - packages/api/types/codegen/ibc/bundle.d.ts | 1328 -- packages/api/types/codegen/ibc/client.d.ts | 42 - .../codegen/ibc/core/client/v1/client.d.ts | 414 - .../codegen/ibc/core/client/v1/genesis.d.ts | 160 - .../codegen/ibc/core/client/v1/query.d.ts | 887 -- .../codegen/ibc/core/client/v1/query.lcd.d.ts | 17 - .../ibc/core/client/v1/query.rpc.Query.d.ts | 54 - .../codegen/ibc/core/client/v1/tx.amino.d.ts | 23 - .../types/codegen/ibc/core/client/v1/tx.d.ts | 393 - .../ibc/core/client/v1/tx.registry.d.ts | 96 - .../ibc/core/client/v1/tx.rpc.msg.d.ts | 21 - packages/api/types/codegen/ibc/lcd.d.ts | 72 - packages/api/types/codegen/ibc/rpc.query.d.ts | 223 - packages/api/types/codegen/ibc/rpc.tx.d.ts | 59 - packages/api/types/codegen/index.d.ts | 19 - packages/api/types/codegen/regen/bundle.d.ts | 6452 --------- packages/api/types/codegen/regen/client.d.ts | 262 - .../types/codegen/regen/data/v1/events.d.ts | 170 - .../types/codegen/regen/data/v1/query.d.ts | 1021 -- .../codegen/regen/data/v1/query.lcd.d.ts | 14 - .../regen/data/v1/query.rpc.Query.d.ts | 65 - .../types/codegen/regen/data/v1/state.d.ts | 238 - .../types/codegen/regen/data/v1/tx.amino.d.ts | 23 - .../codegen/regen/data/v1/tx.registry.d.ts | 96 - .../codegen/regen/data/v1/tx.rpc.msg.d.ts | 55 - .../types/codegen/regen/data/v1/types.d.ts | 295 - .../regen/ecocredit/basket/v1/events.d.ts | 329 - .../regen/ecocredit/basket/v1/query.d.ts | 632 - .../regen/ecocredit/basket/v1/query.lcd.d.ts | 13 - .../ecocredit/basket/v1/query.rpc.Query.d.ts | 37 - .../regen/ecocredit/basket/v1/state.d.ts | 317 - .../regen/ecocredit/basket/v1/tx.amino.d.ts | 33 - .../codegen/regen/ecocredit/basket/v1/tx.d.ts | 765 -- .../ecocredit/basket/v1/tx.registry.d.ts | 136 - .../regen/ecocredit/basket/v1/tx.rpc.msg.d.ts | 74 - .../regen/ecocredit/basket/v1/types.d.ts | 147 - .../ecocredit/marketplace/v1/events.d.ts | 265 - .../regen/ecocredit/marketplace/v1/query.d.ts | 529 - .../ecocredit/marketplace/v1/query.lcd.d.ts | 13 - .../marketplace/v1/query.rpc.Query.d.ts | 41 - .../regen/ecocredit/marketplace/v1/state.d.ts | 313 - .../ecocredit/marketplace/v1/tx.amino.d.ts | 33 - .../regen/ecocredit/marketplace/v1/tx.d.ts | 779 -- .../ecocredit/marketplace/v1/tx.registry.d.ts | 136 - .../ecocredit/marketplace/v1/tx.rpc.msg.d.ts | 36 - .../regen/ecocredit/marketplace/v1/types.d.ts | 72 - .../ecocredit/orderbook/v1alpha1/memory.d.ts | 231 - .../codegen/regen/ecocredit/v1/events.d.ts | 994 -- .../codegen/regen/ecocredit/v1/query.d.ts | 2530 ---- .../codegen/regen/ecocredit/v1/query.lcd.d.ts | 34 - .../regen/ecocredit/v1/query.rpc.Query.d.ts | 166 - .../codegen/regen/ecocredit/v1/state.d.ts | 1143 -- .../codegen/regen/ecocredit/v1/tx.amino.d.ts | 118 - .../types/codegen/regen/ecocredit/v1/tx.d.ts | 2627 ---- .../regen/ecocredit/v1/tx.registry.d.ts | 476 - .../regen/ecocredit/v1/tx.rpc.msg.d.ts | 202 - .../codegen/regen/ecocredit/v1/types.d.ts | 505 - .../regen/ecocredit/v1alpha1/events.d.ts | 367 - .../regen/ecocredit/v1alpha1/genesis.d.ts | 175 - .../regen/ecocredit/v1alpha1/query.d.ts | 611 - .../regen/ecocredit/v1alpha1/query.lcd.d.ts | 16 - .../ecocredit/v1alpha1/query.rpc.Query.d.ts | 50 - .../regen/ecocredit/v1alpha1/tx.amino.d.ts | 43 - .../codegen/regen/ecocredit/v1alpha1/tx.d.ts | 977 -- .../regen/ecocredit/v1alpha1/tx.registry.d.ts | 176 - .../regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts | 47 - .../regen/ecocredit/v1alpha1/types.d.ts | 379 - .../types/codegen/regen/intertx/v1/query.d.ts | 96 - .../codegen/regen/intertx/v1/query.lcd.d.ts | 9 - .../regen/intertx/v1/query.rpc.Query.d.ts | 19 - .../codegen/regen/intertx/v1/tx.amino.d.ts | 13 - .../types/codegen/regen/intertx/v1/tx.d.ts | 164 - .../codegen/regen/intertx/v1/tx.registry.d.ts | 56 - .../codegen/regen/intertx/v1/tx.rpc.msg.d.ts | 15 - packages/api/types/codegen/regen/lcd.d.ts | 78 - .../api/types/codegen/regen/rpc.query.d.ts | 275 - packages/api/types/codegen/regen/rpc.tx.d.ts | 65 - .../types/codegen/tendermint/abci/types.d.ts | 2006 --- .../api/types/codegen/tendermint/bundle.d.ts | 1266 -- .../types/codegen/tendermint/crypto/keys.d.ts | 38 - .../codegen/tendermint/crypto/proof.d.ts | 202 - .../codegen/tendermint/libs/bits/types.d.ts | 35 - .../types/codegen/tendermint/p2p/types.d.ts | 161 - .../types/codegen/tendermint/types/block.d.ts | 43 - .../codegen/tendermint/types/evidence.d.ts | 161 - .../codegen/tendermint/types/params.d.ts | 309 - .../types/codegen/tendermint/types/types.d.ts | 624 - .../codegen/tendermint/types/validator.d.ts | 113 - .../codegen/tendermint/version/types.d.ts | 99 - packages/api/types/index.d.ts | 1 - tsconfig.json | 36 +- yarn.lock | 7532 +++++------ 613 files changed, 3854 insertions(+), 247978 deletions(-) delete mode 100644 packages/api/.babelrc.js delete mode 100644 packages/api/.eslintrc.js delete mode 100644 packages/api/.gitignore delete mode 100644 packages/api/.npmignore delete mode 100644 packages/api/.npmrc delete mode 100644 packages/api/CHANGELOG.md delete mode 100644 packages/api/README.md delete mode 100644 packages/api/scripts/aminos.js delete mode 100644 packages/api/scripts/codegen.js delete mode 100644 packages/api/src/codegen/amino/amino.ts delete mode 100644 packages/api/src/codegen/amino/bundle.ts delete mode 100644 packages/api/src/codegen/binary.ts delete mode 100644 packages/api/src/codegen/cosmos/app/module/v1alpha1/module.ts delete mode 100644 packages/api/src/codegen/cosmos/app/v1alpha1/config.ts delete mode 100644 packages/api/src/codegen/cosmos/app/v1alpha1/module.ts delete mode 100644 packages/api/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/app/v1alpha1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/auth/v1beta1/auth.ts delete mode 100644 packages/api/src/codegen/cosmos/auth/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/auth/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/auth/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/event.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/authz/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/authz.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/bank.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/bank/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/base/abci/v1beta1/abci.ts delete mode 100644 packages/api/src/codegen/cosmos/base/kv/v1beta1/kv.ts delete mode 100644 packages/api/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts delete mode 100644 packages/api/src/codegen/cosmos/base/node/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/base/query/v1beta1/pagination.ts delete mode 100644 packages/api/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts delete mode 100644 packages/api/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts delete mode 100644 packages/api/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts delete mode 100644 packages/api/src/codegen/cosmos/base/store/v1beta1/commit_info.ts delete mode 100644 packages/api/src/codegen/cosmos/base/store/v1beta1/listening.ts delete mode 100644 packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts delete mode 100644 packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/base/tendermint/v1beta1/types.ts delete mode 100644 packages/api/src/codegen/cosmos/base/v1beta1/coin.ts delete mode 100644 packages/api/src/codegen/cosmos/bundle.ts delete mode 100644 packages/api/src/codegen/cosmos/capability/v1beta1/capability.ts delete mode 100644 packages/api/src/codegen/cosmos/capability/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/client.ts delete mode 100644 packages/api/src/codegen/cosmos/crisis/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/crisis/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/ed25519/keys.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/hd/v1/hd.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/keyring/v1/record.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/multisig/keys.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/secp256k1/keys.ts delete mode 100644 packages/api/src/codegen/cosmos/crypto/secp256r1/keys.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/distribution.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/distribution/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/evidence.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/genutil/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/gov.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/events.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/group/v1/types.ts delete mode 100644 packages/api/src/codegen/cosmos/lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/mint/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/mint/v1beta1/mint.ts delete mode 100644 packages/api/src/codegen/cosmos/mint/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/mint/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/msg/v1/msg.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/event.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/nft.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/nft/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/orm/module/v1alpha1/module.ts delete mode 100644 packages/api/src/codegen/cosmos/orm/v1/orm.ts delete mode 100644 packages/api/src/codegen/cosmos/orm/v1alpha1/schema.ts delete mode 100644 packages/api/src/codegen/cosmos/params/v1beta1/params.ts delete mode 100644 packages/api/src/codegen/cosmos/params/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/params/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/rpc.query.ts delete mode 100644 packages/api/src/codegen/cosmos/rpc.tx.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/slashing.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/slashing/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/authz.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/genesis.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/tx/signing/v1beta1/signing.ts delete mode 100644 packages/api/src/codegen/cosmos/tx/v1beta1/service.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts delete mode 100644 packages/api/src/codegen/cosmos/tx/v1beta1/service.ts delete mode 100644 packages/api/src/codegen/cosmos/tx/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/query.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts delete mode 100644 packages/api/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts delete mode 100644 packages/api/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts delete mode 100644 packages/api/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/cosmos/vesting/v1beta1/tx.ts delete mode 100644 packages/api/src/codegen/cosmos/vesting/v1beta1/vesting.ts delete mode 100644 packages/api/src/codegen/cosmos_proto/bundle.ts delete mode 100644 packages/api/src/codegen/cosmos_proto/cosmos.ts delete mode 100644 packages/api/src/codegen/gogoproto/bundle.ts delete mode 100644 packages/api/src/codegen/gogoproto/gogo.ts delete mode 100644 packages/api/src/codegen/google/api/annotations.ts delete mode 100644 packages/api/src/codegen/google/api/http.ts delete mode 100644 packages/api/src/codegen/google/bundle.ts delete mode 100644 packages/api/src/codegen/google/protobuf/any.ts delete mode 100644 packages/api/src/codegen/google/protobuf/descriptor.ts delete mode 100644 packages/api/src/codegen/google/protobuf/duration.ts delete mode 100644 packages/api/src/codegen/google/protobuf/timestamp.ts delete mode 100644 packages/api/src/codegen/helpers.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/genesis.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/query.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/transfer.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/ibc/applications/transfer/v1/tx.ts delete mode 100644 packages/api/src/codegen/ibc/bundle.ts delete mode 100644 packages/api/src/codegen/ibc/client.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/client.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/genesis.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/query.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/ibc/core/client/v1/tx.ts delete mode 100644 packages/api/src/codegen/ibc/lcd.ts delete mode 100644 packages/api/src/codegen/ibc/rpc.query.ts delete mode 100644 packages/api/src/codegen/ibc/rpc.tx.ts delete mode 100644 packages/api/src/codegen/index.ts delete mode 100644 packages/api/src/codegen/regen/bundle.ts delete mode 100644 packages/api/src/codegen/regen/client.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/events.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/query.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/state.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/tx.ts delete mode 100644 packages/api/src/codegen/regen/data/v1/types.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/events.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/state.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/tx.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/basket/v1/types.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/events.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/state.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/marketplace/v1/types.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/orderbook/v1alpha1/memory.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/events.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/state.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/tx.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1/types.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/events.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/genesis.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/query.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.ts delete mode 100644 packages/api/src/codegen/regen/ecocredit/v1alpha1/types.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/query.lcd.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/query.rpc.Query.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/query.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/tx.amino.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/tx.registry.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/tx.rpc.msg.ts delete mode 100644 packages/api/src/codegen/regen/intertx/v1/tx.ts delete mode 100644 packages/api/src/codegen/regen/lcd.ts delete mode 100644 packages/api/src/codegen/regen/rpc.query.ts delete mode 100644 packages/api/src/codegen/regen/rpc.tx.ts delete mode 100644 packages/api/src/codegen/tendermint/abci/types.ts delete mode 100644 packages/api/src/codegen/tendermint/bundle.ts delete mode 100644 packages/api/src/codegen/tendermint/crypto/keys.ts delete mode 100644 packages/api/src/codegen/tendermint/crypto/proof.ts delete mode 100644 packages/api/src/codegen/tendermint/libs/bits/types.ts delete mode 100644 packages/api/src/codegen/tendermint/p2p/types.ts delete mode 100644 packages/api/src/codegen/tendermint/types/block.ts delete mode 100644 packages/api/src/codegen/tendermint/types/evidence.ts delete mode 100644 packages/api/src/codegen/tendermint/types/params.ts delete mode 100644 packages/api/src/codegen/tendermint/types/types.ts delete mode 100644 packages/api/src/codegen/tendermint/types/validator.ts delete mode 100644 packages/api/src/codegen/tendermint/version/types.ts delete mode 100644 packages/api/src/codegen/utf8.ts delete mode 100644 packages/api/src/codegen/varint.ts delete mode 100644 packages/api/types/codegen/amino/amino.d.ts delete mode 100644 packages/api/types/codegen/amino/bundle.d.ts delete mode 100644 packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts delete mode 100644 packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts delete mode 100644 packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts delete mode 100644 packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/app/v1alpha1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts delete mode 100644 packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/auth/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/node/v1beta1/query.rpc.Service.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts delete mode 100644 packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts delete mode 100644 packages/api/types/codegen/cosmos/bundle.d.ts delete mode 100644 packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts delete mode 100644 packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/client.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts delete mode 100644 packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/gov.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/events.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/group/v1/types.d.ts delete mode 100644 packages/api/types/codegen/cosmos/lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts delete mode 100644 packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/mint/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/msg/v1/msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts delete mode 100644 packages/api/types/codegen/cosmos/orm/v1/orm.d.ts delete mode 100644 packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts delete mode 100644 packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts delete mode 100644 packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/params/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/rpc.query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/rpc.tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts delete mode 100644 packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts delete mode 100644 packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts delete mode 100644 packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts delete mode 100644 packages/api/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts delete mode 100644 packages/api/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts delete mode 100644 packages/api/types/codegen/cosmos_proto/bundle.d.ts delete mode 100644 packages/api/types/codegen/cosmos_proto/cosmos.d.ts delete mode 100644 packages/api/types/codegen/gogoproto/bundle.d.ts delete mode 100644 packages/api/types/codegen/gogoproto/gogo.d.ts delete mode 100644 packages/api/types/codegen/google/api/annotations.d.ts delete mode 100644 packages/api/types/codegen/google/bundle.d.ts delete mode 100644 packages/api/types/codegen/google/protobuf/any.d.ts delete mode 100644 packages/api/types/codegen/google/protobuf/descriptor.d.ts delete mode 100644 packages/api/types/codegen/google/protobuf/duration.d.ts delete mode 100644 packages/api/types/codegen/google/protobuf/timestamp.d.ts delete mode 100644 packages/api/types/codegen/helpers.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/ibc/bundle.d.ts delete mode 100644 packages/api/types/codegen/ibc/client.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/client.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/query.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/ibc/lcd.d.ts delete mode 100644 packages/api/types/codegen/ibc/rpc.query.d.ts delete mode 100644 packages/api/types/codegen/ibc/rpc.tx.d.ts delete mode 100644 packages/api/types/codegen/index.d.ts delete mode 100644 packages/api/types/codegen/regen/bundle.d.ts delete mode 100644 packages/api/types/codegen/regen/client.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/events.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/state.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/data/v1/types.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/events.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/state.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1/types.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/query.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/tx.amino.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/tx.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/tx.registry.d.ts delete mode 100644 packages/api/types/codegen/regen/intertx/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/types/codegen/regen/lcd.d.ts delete mode 100644 packages/api/types/codegen/regen/rpc.query.d.ts delete mode 100644 packages/api/types/codegen/regen/rpc.tx.d.ts delete mode 100644 packages/api/types/codegen/tendermint/abci/types.d.ts delete mode 100644 packages/api/types/codegen/tendermint/bundle.d.ts delete mode 100644 packages/api/types/codegen/tendermint/crypto/keys.d.ts delete mode 100644 packages/api/types/codegen/tendermint/crypto/proof.d.ts delete mode 100644 packages/api/types/codegen/tendermint/libs/bits/types.d.ts delete mode 100644 packages/api/types/codegen/tendermint/p2p/types.d.ts delete mode 100644 packages/api/types/codegen/tendermint/types/block.d.ts delete mode 100644 packages/api/types/codegen/tendermint/types/evidence.d.ts delete mode 100644 packages/api/types/codegen/tendermint/types/params.d.ts delete mode 100644 packages/api/types/codegen/tendermint/types/types.d.ts delete mode 100644 packages/api/types/codegen/tendermint/types/validator.d.ts delete mode 100644 packages/api/types/codegen/tendermint/version/types.d.ts delete mode 100644 packages/api/types/index.d.ts diff --git a/.eslintignore b/.eslintignore index ac47cf7d..d8cea0f3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,7 +1,3 @@ .eslintrc.js -**/build/* -**/codegen/* - -/packages/api/main -/packages/api/module +/packages/api/dist diff --git a/lerna.json b/lerna.json index f3a9d8a3..28a5b93c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,13 +1,23 @@ { + "lerna": "6", + "conventionalCommits": true, + "npmClient": "yarn", + "npmClientArgs": [ + "--no-lockfile" + ], + "packages": [ + "packages/*" + ], + "version": "independent", + "registry": "https://registry.npmjs.org", "command": { "version": { - "message": "chore(release): Publish %s" - } + "message": "chore(release): publish" + }, + "publish": { + "allowBranch": "main", + "message": "chore(release): publish" + } }, - "npmClient": "yarn", - "useWorkspaces": true, - "packages": [ - "packages/*" - ], - "version": "0.6.0" + "useWorkspaces": true } diff --git a/package.json b/package.json index 1b10f7d3..5dea3a54 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,57 @@ { - "name": "regen-js", - "version": "1.0.0-alpha5", - "author": "admin@regen.network", - "description": "Regen Network does JavaScript", - "license": "Apache-2.0", - "private": true, - "repository": "https://github.com/regen-network/regen-js", - "workspaces": [ - "packages/*" - ], - "scripts": { + "name": "regen-js", + "version": "1.0.0-alpha5", + "author": "admin@regen.network", + "description": "Regen Network does JavaScript", + "license": "Apache-2.0", + "private": true, + "repository": "https://github.com/regen-network/regen-js", + "workspaces": [ + "packages/*" + ], + "publishConfig": { + "access": "restricted" + }, + "scripts": { + "clean": "lerna run clean", "build:api": "yarn workspace @regen-network/api build", - "build": "lerna run build --stream", - "format": "yarn lint --fix", + "build": "lerna run build --stream", "lerna:deploy": "yarn build && lerna version --conventional-commits && lerna publish from-git", - "lint": "eslint --ext js,ts,tsx .", + "lint": "lerna run lint --parallel", + "test": "lerna run test --stream --scope @regen-network/api", + "codegen": "lerna run codegen --stream --scope @regen-network/api", "start": "yarn workspace @regen-network/api-demo start", - "test": "lerna run test" - }, - "devDependencies": { - "@types/jest": "27.0.3", - "@types/jest-expect-message": "^1.1.0", - "@typescript-eslint/eslint-plugin": "^4.5.0", - "@typescript-eslint/parser": "^4.5.0", - "@typescript-eslint/typescript-estree": "^5.37.0", - "eslint": "^7.32.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0", - "jest-expect-message": "^1.1.3", - "lerna": "^3.22.1", - "prettier": "2.4.1", - "ts-jest": "^26.4.4", - "ts-node": "^10.9.2", - "typescript": "^4.0.5" - } + "symlink": "symlink-workspace --logLevel error", + "postinstall": "yarn symlink" + }, + "devDependencies": { + "@protobufs/amino": "^0.0.11", + "@protobufs/cosmos": "^0.1.0", + "@protobufs/cosmos_proto": "^0.0.10", + "@protobufs/cosmwasm": "^0.1.1", + "@protobufs/gogoproto": "^0.0.10", + "@protobufs/google": "^0.0.10", + "@protobufs/ibc": "^0.1.0", + "@protobufs/regen": "^0.1.0", + "@protobufs/tendermint": "^0.0.10", + "@types/jest": "^29.5.11", + "@types/node": "^20.12.7", + "@typescript-eslint/eslint-plugin": "^7.10.0", + "@typescript-eslint/parser": "^7.10.0", + "copyfiles": "^2.4.1", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-simple-import-sort": "^12.1.0", + "eslint-plugin-unused-imports": "^4.0.0", + "jest": "^29.6.2", + "lerna": "^6", + "prettier": "^3.0.2", + "rimraf": "4.4.1", + "strip-ansi": "^5", + "symlink-workspace": "^1.1.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.2", + "typescript": "^5.1.6" + } } diff --git a/packages/api-demo/src/MyBalance.tsx b/packages/api-demo/src/MyBalance.tsx index bebdd8f1..9f21ca35 100644 --- a/packages/api-demo/src/MyBalance.tsx +++ b/packages/api-demo/src/MyBalance.tsx @@ -1,4 +1,4 @@ -import { QueryAllBalancesResponseSDKType } from '@regen-network/api/types/codegen/cosmos/bank/v1beta1/query'; +import { QueryAllBalancesResponseSDKType } from '@regen-network/api/cosmos/bank/v1beta1/query'; import React, { useState } from 'react'; export function MyBalance({ client }: { client: any }): React.ReactElement { diff --git a/packages/api-demo/src/examples/LCDCosmos.tsx b/packages/api-demo/src/examples/LCDCosmos.tsx index cd41e139..8ffd2e05 100644 --- a/packages/api-demo/src/examples/LCDCosmos.tsx +++ b/packages/api-demo/src/examples/LCDCosmos.tsx @@ -1,8 +1,8 @@ import React, { useEffect, useState } from 'react'; import { cosmos } from '@regen-network/api'; -import { QueryAllBalancesResponseSDKType } from '@regen-network/api/types/codegen/cosmos/bank/v1beta1/query'; -import { PageRequest } from '@regen-network/api/types/codegen/helpers'; +import { QueryAllBalancesResponseSDKType } from '@regen-network/api/cosmos/bank/v1beta1/query'; +import { PageRequest } from '@regen-network/api/helpers'; export function LCDCosmos(): React.ReactElement { const [result, setResult] = useState< diff --git a/packages/api-demo/src/examples/LCDRegen.tsx b/packages/api-demo/src/examples/LCDRegen.tsx index 6f685b24..efb02e84 100644 --- a/packages/api-demo/src/examples/LCDRegen.tsx +++ b/packages/api-demo/src/examples/LCDRegen.tsx @@ -1,8 +1,8 @@ import React, { useEffect, useState } from 'react'; import { regen } from '@regen-network/api'; -import { QueryProjectsByClassResponseSDKType } from '@regen-network/api/types/codegen/regen/ecocredit/v1/query'; -import { PageRequest } from '@regen-network/api/types/codegen/helpers'; +import { QueryProjectsByClassResponseSDKType } from '@regen-network/api/regen/ecocredit/v1/query'; +import { PageRequest } from '@regen-network/api/helpers'; export function LCDRegen(): React.ReactElement { const [result, setResult] = useState< diff --git a/packages/api-demo/src/examples/RPCCosmos.tsx b/packages/api-demo/src/examples/RPCCosmos.tsx index ca060ffa..d82bc857 100644 --- a/packages/api-demo/src/examples/RPCCosmos.tsx +++ b/packages/api-demo/src/examples/RPCCosmos.tsx @@ -1,9 +1,8 @@ -import Long from 'long'; import React, { useEffect, useState } from 'react'; import { cosmos } from '@regen-network/api'; -import { QueryAllBalancesResponse } from '@regen-network/api/types/codegen/cosmos/bank/v1beta1/query'; -import { PageRequest } from '@regen-network/api/types/codegen/helpers'; +import { QueryAllBalancesResponse } from '@regen-network/api/cosmos/bank/v1beta1/query'; +import { PageRequest } from '@regen-network/api/helpers'; export function RPCCosmos(): React.ReactElement { const [result, setResult] = useState( @@ -24,8 +23,8 @@ export function RPCCosmos(): React.ReactElement { address: 'regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46', pagination: { key: new Uint8Array(0), - limit: Long.fromNumber(0), - offset: Long.fromNumber(0), + limit: BigInt(0), + offset: BigInt(0), } as PageRequest, }) .then(setResult) @@ -38,10 +37,10 @@ export function RPCCosmos(): React.ReactElement { return (

{'RPC Queries > cosmos bank balances'}

- {'Response: '} + {'Balances: '} {result ? ( - JSON.stringify(result) + JSON.stringify(result.balances) ) : error ? ( {error.message} ) : ( diff --git a/packages/api-demo/src/examples/RPCRegen.tsx b/packages/api-demo/src/examples/RPCRegen.tsx index 7100b5b0..cc9e8f39 100644 --- a/packages/api-demo/src/examples/RPCRegen.tsx +++ b/packages/api-demo/src/examples/RPCRegen.tsx @@ -1,9 +1,8 @@ -import Long from 'long'; import React, { useEffect, useState } from 'react'; import { regen } from '@regen-network/api'; -import { QueryProjectsByClassResponse } from '@regen-network/api/types/codegen/regen/ecocredit/v1/query'; -import { PageRequest } from '@regen-network/api/types/codegen/helpers'; +import { QueryProjectsByClassResponse } from '@regen-network/api/regen/ecocredit/v1/query'; +import { PageRequest } from '@regen-network/api/helpers'; export function RPCRegen(): React.ReactElement { const [result, setResult] = useState< @@ -24,8 +23,8 @@ export function RPCRegen(): React.ReactElement { classId: 'C01', pagination: { key: new Uint8Array(0), - limit: Long.fromNumber(0), - offset: Long.fromNumber(0), + limit: BigInt(0), + offset: BigInt(0), } as PageRequest, }) .then(setResult) diff --git a/packages/api-demo/tsconfig.json b/packages/api-demo/tsconfig.json index 406d90e3..c28ed749 100644 --- a/packages/api-demo/tsconfig.json +++ b/packages/api-demo/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "jsx": "react-jsx", "lib": [ "dom", "dom.iterable", @@ -17,7 +18,6 @@ "isolatedModules": true, "noEmit": true, "target": "es6", - "sourceMap": true, }, "extends": "../../tsconfig", "include": [ diff --git a/packages/api/.babelrc.js b/packages/api/.babelrc.js deleted file mode 100644 index 4a9557f2..00000000 --- a/packages/api/.babelrc.js +++ /dev/null @@ -1,17 +0,0 @@ -const useESModules = !!process.env.MODULE; - -module.exports = (api) => { - api.cache(() => process.env.MODULE); - return { - plugins: [ - ['@babel/transform-runtime', { useESModules }], - '@babel/proposal-object-rest-spread', - '@babel/proposal-class-properties', - '@babel/plugin-proposal-nullish-coalescing-operator', - '@babel/plugin-proposal-optional-chaining', - '@babel/plugin-proposal-numeric-separator', - '@babel/proposal-export-default-from' - ], - presets: useESModules ? ['@babel/typescript'] : ['@babel/typescript', '@babel/env'] - }; -}; diff --git a/packages/api/.eslintrc.js b/packages/api/.eslintrc.js deleted file mode 100644 index 1bec8ed3..00000000 --- a/packages/api/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -const baseConfig = require('../../.eslintrc'); - -module.exports = { - ...baseConfig, -}; diff --git a/packages/api/.gitignore b/packages/api/.gitignore deleted file mode 100644 index 47cda358..00000000 --- a/packages/api/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# system -.DS_Store - -# editors -.idea -.vscode - -# logs -*.log -npm-debug.log* - -# dependencies -node_modules - -# build -/main -/module diff --git a/packages/api/.npmignore b/packages/api/.npmignore deleted file mode 100644 index c0fdc1d0..00000000 --- a/packages/api/.npmignore +++ /dev/null @@ -1,30 +0,0 @@ -# system -.DS_Store - -# editors -.idea -.vscode - -# logs -*.log -npm-debug.log* - -# dependencies -node_modules - -# package -package.json - -# package lock -package-lock.json -yarn.lock - -# project -/proto -/scripts -/src - -# other -.babelrc.js -.gitignore -tsconfig.json diff --git a/packages/api/.npmrc b/packages/api/.npmrc deleted file mode 100644 index 5fca0d51..00000000 --- a/packages/api/.npmrc +++ /dev/null @@ -1 +0,0 @@ -scripts-prepend-node-path=true diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md deleted file mode 100644 index a50205bd..00000000 --- a/packages/api/CHANGELOG.md +++ /dev/null @@ -1,128 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [Unreleased](https://github.com/regen-network/regen-js/compare/v0.6.0...main) (TBD) - -### Features - -* Migrate api package to use telescope ([#68](https://github.com/regen-network/regen-js/issues/68)) - -# [0.6.0](https://github.com/regen-network/regen-js/compare/v0.3.0...v0.6.0) (2023-03-27) - -### Features - -* Add amino signing support to regen-ledger msgs ([#38](https://github.com/regen-network/regen-js/issues/38)) ([84d6b5a](https://github.com/regen-network/regen-js/commit/84d6b5a7b344f893d80ba54b99067677cfdb36ef)), closes [#39](https://github.com/regen-network/regen-js/issues/39) [#43](https://github.com/regen-network/regen-js/issues/43) [#44](https://github.com/regen-network/regen-js/issues/44) [#45](https://github.com/regen-network/regen-js/issues/45) [#46](https://github.com/regen-network/regen-js/issues/46) [#48](https://github.com/regen-network/regen-js/issues/48) [#50](https://github.com/regen-network/regen-js/issues/50) [#49](https://github.com/regen-network/regen-js/issues/49) [#47](https://github.com/regen-network/regen-js/issues/47) [#53](https://github.com/regen-network/regen-js/issues/53) [#52](https://github.com/regen-network/regen-js/issues/52) [#54](https://github.com/regen-network/regen-js/issues/54) [#55](https://github.com/regen-network/regen-js/issues/55) [#56](https://github.com/regen-network/regen-js/issues/56) -* add bridge_amino and test ([#61](https://github.com/regen-network/regen-js/issues/61)) ([cb0d339](https://github.com/regen-network/regen-js/commit/cb0d33904c12b61a06def9aa85a56c96a633743e)) -* add transfer ibc proto ([#40](https://github.com/regen-network/regen-js/issues/40)) ([61c6cd2](https://github.com/regen-network/regen-js/commit/61c6cd2d4b3903da8bbb5d771dd815bdeb1c1000)) -* update ecocredit amino types ([#64](https://github.com/regen-network/regen-js/issues/64)) ([6c8fabb](https://github.com/regen-network/regen-js/commit/6c8fabb8c24c977446f879b861c8e338d4b58b60)) -* update proto files for regen-ledger v5.0 and cosmos-sdk v0.46.7 ([#66](https://github.com/regen-network/regen-js/issues/66)) ([5feaeed](https://github.com/regen-network/regen-js/commit/5feaeeda4f32eb3379f0b5c1b2dc7557c2e08b46)) - -# [0.5.0](https://github.com/regen-network/regen-js/compare/v0.3.0...v0.5.0) (2023-01-16) - -### Features - -* Add amino signing support to regen-ledger msgs ([#38](https://github.com/regen-network/regen-js/issues/38)) ([84d6b5a](https://github.com/regen-network/regen-js/commit/84d6b5a7b344f893d80ba54b99067677cfdb36ef)), closes [#39](https://github.com/regen-network/regen-js/issues/39) [#43](https://github.com/regen-network/regen-js/issues/43) [#44](https://github.com/regen-network/regen-js/issues/44) [#45](https://github.com/regen-network/regen-js/issues/45) [#46](https://github.com/regen-network/regen-js/issues/46) [#48](https://github.com/regen-network/regen-js/issues/48) [#50](https://github.com/regen-network/regen-js/issues/50) [#49](https://github.com/regen-network/regen-js/issues/49) [#47](https://github.com/regen-network/regen-js/issues/47) [#53](https://github.com/regen-network/regen-js/issues/53) [#52](https://github.com/regen-network/regen-js/issues/52) [#54](https://github.com/regen-network/regen-js/issues/54) [#55](https://github.com/regen-network/regen-js/issues/55) [#56](https://github.com/regen-network/regen-js/issues/56) -* add bridge_amino and test ([#61](https://github.com/regen-network/regen-js/issues/61)) ([cb0d339](https://github.com/regen-network/regen-js/commit/cb0d33904c12b61a06def9aa85a56c96a633743e)) -* add transfer ibc proto ([#40](https://github.com/regen-network/regen-js/issues/40)) ([61c6cd2](https://github.com/regen-network/regen-js/commit/61c6cd2d4b3903da8bbb5d771dd815bdeb1c1000)) -* update ecocredit amino types ([#64](https://github.com/regen-network/regen-js/issues/64)) ([6c8fabb](https://github.com/regen-network/regen-js/commit/6c8fabb8c24c977446f879b861c8e338d4b58b60)) - -# [0.4.0](https://github.com/regen-network/regen-js/compare/v0.4.0-alpha1.5...v0.4.0) (2022-10-05) - -**Note:** Version bump only for package @regen-network/api - -# [0.4.0-alpha1.4](https://github.com/regen-network/regen-js/compare/v0.3.0...v0.4.0-alpha1.4) (2022-09-14) - -### Bug Fixes - -* msg send typo ([#48](https://github.com/regen-network/regen-js/issues/48)) ([f55a157](https://github.com/regen-network/regen-js/commit/f55a1576337934afb4042db7c81761e031923fe4)) -* MsgCreateBatch fixes and tests ([#50](https://github.com/regen-network/regen-js/issues/50)) ([bf9eb5d](https://github.com/regen-network/regen-js/commit/bf9eb5dbbe68aaffb60349ff86769d872ecb04d0)) - -### Features - -* add transfer ibc proto ([#40](https://github.com/regen-network/regen-js/issues/40)) ([61c6cd2](https://github.com/regen-network/regen-js/commit/61c6cd2d4b3903da8bbb5d771dd815bdeb1c1000)) -* AminoMsgSend_SendCredits ([1c0c100](https://github.com/regen-network/regen-js/commit/1c0c100f580b306dd129b8c020535bae4de1bbd7)) -* customMessageTypeRegistry ([0851010](https://github.com/regen-network/regen-js/commit/085101084fce458c0ed41d6d780b164f3cd529cd)) -* customMessageTypeRegistry ([315e426](https://github.com/regen-network/regen-js/commit/315e426cbb9d754b30686675d75291b30df04108)) -* ecocredit amino converters ([80ada8f](https://github.com/regen-network/regen-js/commit/80ada8f735699fe377979d6a78f66982f9291272)) -* export all converters ([f0b8d60](https://github.com/regen-network/regen-js/commit/f0b8d608e6c6d62ebea94be27bc52eedf51c25ec)) -* if field is falsey, return undefined in toAmino, omit nested (s) ([2c8f270](https://github.com/regen-network/regen-js/commit/2c8f270a54ea171a28ae5d85b66372898d16ea3a)) - -# [0.4.0-alpha1.3](https://github.com/regen-network/regen-js/compare/v0.4.0-alpha1.2...v0.4.0-alpha1.3) (2022-09-14) - -**Note:** Version bump only for package @regen-network/api - -# [0.4.0-alpha1.2](https://github.com/regen-network/regen-js/compare/v0.4.0-alpha1.1...v0.4.0-alpha1.2) (2022-09-14) - -**Note:** Version bump only for package @regen-network/api - -# [0.4.0-alpha1.1](https://github.com/regen-network/regen-js/compare/v0.4.0-alpha1.0...v0.4.0-alpha1.1) (2022-09-13) - -**Note:** Version bump only for package @regen-network/api - -# [0.4.0-alpha1.0](https://github.com/regen-network/regen-js/compare/v0.3.0...v0.4.0-alpha1.0) (2022-09-13) - -### Features - -* add transfer ibc proto ([#40](https://github.com/regen-network/regen-js/issues/40)) ([61c6cd2](https://github.com/regen-network/regen-js/commit/61c6cd2d4b3903da8bbb5d771dd815bdeb1c1000)) -* AminoMsgSend_SendCredits ([1c0c100](https://github.com/regen-network/regen-js/commit/1c0c100f580b306dd129b8c020535bae4de1bbd7)) -* customMessageTypeRegistry ([0851010](https://github.com/regen-network/regen-js/commit/085101084fce458c0ed41d6d780b164f3cd529cd)) -* customMessageTypeRegistry ([315e426](https://github.com/regen-network/regen-js/commit/315e426cbb9d754b30686675d75291b30df04108)) -* ecocredit amino converters ([80ada8f](https://github.com/regen-network/regen-js/commit/80ada8f735699fe377979d6a78f66982f9291272)) -* export all converters ([f0b8d60](https://github.com/regen-network/regen-js/commit/f0b8d608e6c6d62ebea94be27bc52eedf51c25ec)) -* if field is falsey, return undefined in toAmino, omit nested (s) ([2c8f270](https://github.com/regen-network/regen-js/commit/2c8f270a54ea171a28ae5d85b66372898d16ea3a)) - -# [0.3.1](https://github.com/regen-network/regen-js/compare/v0.3.0...v0.3.1) (2022-09-12) - -* Feat: add transfer ibc proto ([61c6cd2](https://github.com/regen-network/regen-js/commit/61c6cd2d4b3903da8bbb5d771dd815bdeb1c1000)) - -# [0.3.0](https://github.com/regen-network/regen-js/compare/v0.2.2...v0.3.0) (2022-06-27) - -### Features - -* Update and gen proto for regen-ledger v4.0 upgrade ([#37](https://github.com/regen-network/regen-js/issues/37)) ([0d0abff](https://github.com/regen-network/regen-js/commit/0d0abffae1f8943d2ece63ea7f3c1a8c5df97837)) - -## [0.2.2](https://github.com/regen-network/regen-js/compare/v0.2.1...v0.2.2) (2022-03-14) - -### Changed - -* **api:** Update tsconfig to not build @regen-network/api as an ES6 module. - -## [0.2.1](https://github.com/regen-network/regen-js/compare/v0.2.0...v0.2.1) (2022-03-08) - -### Features - -* **api:** Regenerate from regen v3.0.0 proto files - -# [0.2.0](https://github.com/regen-network/regen-js/compare/v0.1.2...v0.2.0) (2022-03-01) - -### Features - -* **api:** Add Msg client implementation to API for signing and broadcasting transactions -* **api:** Use fork of [ts-proto](https://github.com/regen-network/ts-proto) -* **api:** Regenerate from cosmos v0.44 and regen v2.0.0 proto files - -## [0.1.3](https://github.com/regen-network/regen-js/compare/v0.1.2...v0.1.3) (2021-01-18) - -### Bug Fixes - -* **api:** Always use adaptor34 in CosmJS ([6646379](https://github.com/regen-network/regen-js/commit/664637900719ad1fa44370405b487222d698fb24)) - -## [0.1.2](https://github.com/regen-network/regen-js/compare/v0.1.1...v0.1.2) (2021-01-18) - -### Bug Fixes - -* **api:** Bump cosmjs to 0.24.0-alpha.17 to fix Tendermint connection ([#15](https://github.com/regen-network/regen-js/issues/15)) ([e365d3e](https://github.com/regen-network/regen-js/commit/e365d3ed6897836912f43b086d1c9d5036809091)) - -## [0.1.1](https://github.com/regen-network/regen-js/compare/v0.1.0...v0.1.1) (2021-01-14) - -### Bug Fixes - -* **api:** Regenerate from v0.40.0 proto files ([#13](https://github.com/regen-network/regen-js/issues/13)) ([0798b1c](https://github.com/regen-network/regen-js/commit/0798b1cd672aa11d2410de8c8b634ba1877c4d35)) - -# 0.1.0 (2021-01-07) - -### Features - -* Add working API for query & demo app ([#1](https://github.com/regen-network/regen-js/issues/1)) ([6460062](https://github.com/regen-network/regen-js/commit/6460062239f69e128204da83416330edd37ac90f)) diff --git a/packages/api/README.md b/packages/api/README.md deleted file mode 100644 index 3bb71a2b..00000000 --- a/packages/api/README.md +++ /dev/null @@ -1,307 +0,0 @@ -# @regen-network/api - - -## 🚧 Warning - -This API is still under heavy construction, be ready for unexpected breaking changes. - -The `v1.0.0-alpha4` and `v1.0.0-alpha5` release tags include manual overrides of generated code in `src` in order to resolve a downstream issue within [regen-network/groups-ui](https://github.com/regen-network/groups-ui). For more information, see [#84](https://github.com/regen-network/regen-js/pull/84). - -## Table of Contents - -- [Install](#install) -- [Usage](#usage) - - [LCD Queries](#lcd-queries) - - [RPC Queries](#rpc-queries) - - [Composing Messages](#composing-messages) - - [Signing Messages](#signing-messages) -- [Development](#development) - - [Codegen](#codegen) - - [Updating types](#updating-types) - - [Publishing](#publishing) -- [Credits](#credits) - -## Install - -```sh -yarn add @regen-network/api@v1.0.0-alpha5 -``` - -## Usage - -### LCD Queries - -Example query using a cosmos module: - -```ts -import { cosmos } from "@regen-network/api" -import { PageRequest } from "@regen-network/api/types/codegen/helpers" - -const { createLCDClient } = cosmos.ClientFactory - -const client = await createLCDClient({ - restEndpoint: "http://localhost:1317", -}) - -const response = await client.cosmos.bank.v1beta1.allBalances({ - address: "regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46", - pagination: { countTotal: true } as PageRequest, -}) -``` - -See [LCDCosmos.tsx](../api-demo/src/examples/LCDCosmos.tsx) for an example within the `api-demo` application. - -Example query using a regen module: - -```ts -import { regen } from "@regen-network/api" -import { PageRequest } from "@regen-network/api/types/codegen/helpers" - -const { createLCDClient } = regen.ClientFactory - -const client = await createLCDClient({ - restEndpoint: "http://localhost:1317", -}) - -const response = await client.regen.ecocredit.v1.projectByClass({ - classId: "C01", - pagination: { countTotal: true } as PageRequest, -}) -``` - -See [LCDRegen.tsx](../api-demo/src/examples/LCDRegen.tsx) for an example within the `api-demo` application. - -### RPC Queries - -Example query using a cosmos module: - -```ts -import { cosmos } from "@regen-network/api" -import { PageRequest } from "@regen-network/api/types/codegen/helpers" - -import Long from "long" - -const { createRPCQueryClient } = cosmos.ClientFactory - -const client = await createRPCQueryClient({ - rpcEndpoint: "http://localhost:26657", -}) - -const response = await client.cosmos.bank.v1beta1.allBalances({ - address: "regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46", - pagination: { - key: new Uint8Array(0), - limit: Long.fromNumber(0), - offset: Long.fromNumber(0), - } as PageRequest, -}) -``` - -See [RPCCosmos.tsx](../api-demo/src/examples/RPCCosmos.tsx) for an example within the `api-demo` application. - -Example query using a regen module: - -```ts -import { regen } from "@regen-network/api" -import { PageRequest } from "@regen-network/api/types/codegen/helpers" - -import Long from "long" - -const { createRPCQueryClient } = regen.ClientFactory - -const client = await createRPCQueryClient({ - rpcEndpoint: "http://localhost:26657", -}) - -const response = await client.regen.ecocredit.v1.projectByClass({ - classId: "C01", - pagination: { - key: new Uint8Array(0), - limit: Long.fromNumber(0), - offset: Long.fromNumber(0), - } as PageRequest, -}) -``` - -See [RPCRegen.tsx](../api-demo/src/examples/RPCRegen.tsx) for an example within the `api-demo` application. - -### Composing Messages - -Example message using a cosmos module: - -```ts -import { cosmos, getSigningCosmosClient } from "@regen-network/api" - -const { send } = cosmos.bank.v1beta1.MessageComposer.withTypeUrl - -const msg = send({ - amount: [ - { - denom: "uregen", - amount: "10000", - }, - ], - toAddress: "regen156d26rl52y3wl865pr5x9q2vqetuw9kf0642sa", - fromAddress: "regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46", -}) -``` - -See [MsgCosmos.tsx](../api-demo/src/examples/MsgCosmos.tsx) for an example within the `api-demo` application. - -Example message using a regen module: - -```ts -import { regen, getSigningCosmosClient } from "@regen-network/api" - -const { createProject } = regen.ecocredit.v1.MessageComposer.withTypeUrl - -const msg = createProject({ - admin: "regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46", - classId: "C01", - metadata: "regen:13toVgf5UjYBz6J29x28pLQyjKz5FpcW3f4bT5uRKGxGREWGKjEdXYG.rdf", - jurisdiction: "US-WA", -}) -``` - -See [MsgRegen.tsx](../api-demo/src/examples/MsgRegen.tsx) for an example within the `api-demo` application. - -### Signing Messages - -Example using a cosmos client (includes encoding for cosmos modules): - -```ts -import { getSigningCosmosClient } from "@regen-network/api" - -const { keplr } = window - -const offlineSigner = keplr.getOfflineSigner("regen-local") - -const [account] = await offlineSigner.getAccounts() - -const signingClient = await getSigningCosmosClient({ - rpcEndpoint: "http://localhost:26657", - signer: offlineSigner, -}) - -const fee = { - amount: [ - { - denom: "uregen", - amount: "5000", - }, - ], - gas: "100000", -} - -await signingClient.signAndBroadcast(account.address, [msg], fee) -``` - -See [MsgCosmos.tsx](../api-demo/src/examples/MsgCosmos.tsx) for an example within the `api-demo` application. - -Example using a regen client (includes encoding for regen modules): - -```ts -import { getSigningRegenClient } from "@regen-network/api" - -const { keplr } = window - -const offlineSigner = keplr.getOfflineSigner("regen-local") - -const [account] = await offlineSigner.getAccounts() - -const signingClient = await getSigningRegenClient({ - rpcEndpoint: "http://localhost:26657", - signer: offlineSigner, -}) - -const fee = { - amount: [ - { - denom: "uregen", - amount: "5000", - }, - ], - gas: "100000", -} - -await signingClient.signAndBroadcast(account.address, [msg], fee) -``` - -See [MsgRegen.tsx](../api-demo/src/examples/MsgRegen.tsx) for an example within the `api-demo` application. - -Example using cosmjs and support for both cosmos and regen modules: - -```ts -import { Registry } from "@cosmjs/proto-signing" -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate" -import { - cosmosAminoConverters, - cosmosProtoRegistry, - regenAminoConverters, - regenProtoRegistry, -} from "@regen-network/api" - -const { keplr } = window - -const offlineSigner = keplr.getOfflineSigner("regen-local") - -const [account] = await offlineSigner.getAccounts() - -const registry = new Registry({ ...cosmosProtoRegistry, ...regenProtoRegistry }) - -const signingClient = await SigningStargateClient.connectWithSigner( - "http://localhost:26657", - offlineSigner, - { - registry, - aminoTypes: new AminoTypes({ - ...cosmosAminoConverters, - ...regenAminoConverters, - }), - }, -) - -const fee = { - amount: [ - { - denom: "uregen", - amount: "5000", - }, - ], - gas: "100000", -} - -await signingClient.signAndBroadcast(account.address, [msg], fee) -``` - -See [MsgMultiple.tsx](../api-demo/src/examples/MsgMultiple.tsx) for an example within the `api-demo` application. - -## Development - -Install dependencies: - -```sh -yarn -``` - -Generate code from proto: - -```sh -yarn codegen -``` - -Compile and build library: - -```sh -yarn build -``` - -Compile and build `src` code: - -```sh -yarn build:ts -``` - -## Credits - -This package is built on [osmonauts/telescope](https://github.com/osmosis-labs/telescope) with initial guidance from [pyramation/tmpl-telescope-module](https://github.com/pyramation/tmpl-telescope-module). diff --git a/packages/api/package.json b/packages/api/package.json index 5acd19b9..4c0e8a56 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -3,7 +3,11 @@ "version": "v1.0.0-alpha5", "author": "admin@regen.network", "description": "Javascript API for Regen Ledger", + "main": "index.js", + "module": "esm/index.js", + "types": "index.d.ts", "license": "Apache-2.0", + "homepage": "https://github.com/regen-network/api", "repository": { "type": "git", "url": "https://github.com/regen-network/regen-js" @@ -11,57 +15,30 @@ "bugs": { "url": "https://github.com/regen-network/regen-js/issues" }, - "main": "main/index.js", - "module": "module/index.js", - "typings": "types/index.js", - "directories": { - "lib": "src" - }, - "files": [ - "src", - "types", - "main", - "module" - ], "publishConfig": { - "access": "public" + "access": "public", + "directory": "dist" }, "scripts": { - "build:main": "cross-env BABEL_ENV=production babel src --out-dir main --delete-dir-on-start --extensions \".tsx,.ts,.js\"", - "build:module": "cross-env MODULE=true babel src --out-dir module --delete-dir-on-start --extensions \".tsx,.ts,.js\"", - "build:ts": "tsc --project ./tsconfig.json", - "build": "yarn build:module && yarn build:main", - "codegen": "ts-node scripts/codegen.js" + "copy": "copyfiles -f ../../LICENSE README.md package.json dist", + "clean": "rimraf dist/**", + "prepare": "npm run build", + "codegen": "ts-node scripts/codegen.ts", + "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", + "lint": "eslint . --fix", + "test": "jest", + "test:watch": "jest --watch" + }, + "devDependencies": { + "@cosmology/telescope": "^1.5.2" }, "dependencies": { - "@babel/runtime": "^7.22.5", - "@cosmjs/amino": "^0.31.0", - "@cosmjs/proto-signing": "^0.31.0", - "@cosmjs/stargate": "^0.31.0", - "@cosmjs/tendermint-rpc": "^0.31.0", - "@cosmology/lcd": "^0.13.3", - "protobufjs": "^7.2.4" + "@cosmjs/encoding": "0.31.0", + "@cosmjs/math": "0.31.0", + "@cosmjs/amino": "0.31.0", + "@cosmjs/proto-signing": "0.31.0", + "@cosmjs/stargate": "0.31.0", + "@cosmology/lcd": "^0.13.4" }, - "devDependencies": { - "@babel/cli": "^7.22.5", - "@babel/core": "7.22.5", - "@babel/node": "^7.22.5", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-export-default-from": "^7.22.5", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.20.7", - "@babel/plugin-proposal-optional-chaining": "^7.21.0", - "@babel/plugin-transform-runtime": "^7.22.5", - "@babel/preset-env": "^7.22.5", - "@babel/preset-typescript": "^7.22.5", - "@cosmology/telescope": "^1.5.2", - "babel-core": "7.0.0-bridge.0", - "babel-watch": "^7.8.0", - "cross-env": "^7.0.3", - "long": "^5.2.3", - "regenerator-runtime": "^0.13.11", - "rimraf": "^5.0.1", - "typescript": "^5.1.6" - } -} + "keywords": [] +} \ No newline at end of file diff --git a/packages/api/scripts/aminos.js b/packages/api/scripts/aminos.js deleted file mode 100644 index a0c88a28..00000000 --- a/packages/api/scripts/aminos.js +++ /dev/null @@ -1,128 +0,0 @@ -export const AMINO_MAP = { - // NOTE: amino types for cosmos and ibc modules are registered by telescope - - // regen.data.v1 - '/regen.data.v1.MsgAnchor': { - aminoType: 'regen-ledger/MsgAnchor', - }, - '/regen.data.v1.MsgAttest': { - aminoType: 'regen-ledger/MsgAttest', - }, - '/regen.data.v1.MsgDefineResolver': { - aminoType: 'regen-ledger/MsgDefineResolver', - }, - '/regen.data.v1.MsgRegisterResolver': { - aminoType: 'regen-ledger/MsgRegisterResolver', - }, - - // regen.ecocredit.v1 - '/regen.ecocredit.v1.MsgCreateClass': { - aminoType: 'regen/MsgCreateClass', - }, - '/regen.ecocredit.v1.MsgCreateProject': { - aminoType: 'regen/MsgCreateProject', - }, - '/regen.ecocredit.v1.MsgCreateBatch': { - aminoType: 'regen/MsgCreateBatch', - }, - '/regen.ecocredit.v1.MsgMintBatchCredits': { - aminoType: 'regen/MsgMintBatchCredits', - }, - '/regen.ecocredit.v1.MsgSealBatch': { - aminoType: 'regen/MsgSealBatch', - }, - '/regen.ecocredit.v1.MsgSend': { - aminoType: 'regen/MsgSend', - }, - '/regen.ecocredit.v1.MsgRetire': { - aminoType: 'regen/MsgRetire', - }, - '/regen.ecocredit.v1.MsgCancel': { - aminoType: 'regen/MsgCancel', - }, - '/regen.ecocredit.v1.MsgUpdateClassAdmin': { - aminoType: 'regen/MsgUpdateClassAdmin', - }, - '/regen.ecocredit.v1.MsgUpdateClassIssuers': { - aminoType: 'regen/MsgUpdateClassIssuers', - }, - '/regen.ecocredit.v1.MsgUpdateClassMetadata': { - aminoType: 'regen/MsgUpdateClassMetadata', - }, - '/regen.ecocredit.v1.MsgUpdateProjectAdmin': { - aminoType: 'regen/MsgUpdateProjectAdmin', - }, - '/regen.ecocredit.v1.MsgUpdateProjectMetadata': { - aminoType: 'regen/MsgUpdateProjectMetadata', - }, - '/regen.ecocredit.v1.MsgUpdateBatchMetadata': { - aminoType: 'regen/MsgUpdateBatchMetadata', - }, - '/regen.ecocredit.v1.MsgBridge': { - aminoType: 'regen/MsgBridge', - }, - '/regen.ecocredit.v1.MsgBridgeReceive': { - aminoType: 'regen/MsgBridgeReceive', - }, - '/regen.ecocredit.v1.MsgAddCreditType': { - aminoType: 'regen/MsgAddCreditType', - }, - '/regen.ecocredit.v1.MsgSetClassCreatorAllowlist': { - aminoType: 'regen/MsgSetClassCreatorAllowlist', - }, - '/regen.ecocredit.v1.MsgAddClassCreator': { - aminoType: 'regen/MsgAddClassCreator', - }, - '/regen.ecocredit.v1.MsgRemoveClassCreator': { - aminoType: 'regen/MsgRemoveClassCreator', - }, - '/regen.ecocredit.v1.MsgUpdateClassFee': { - aminoType: 'regen/MsgUpdateClassFee', - }, - '/regen.ecocredit.v1.MsgAddAllowedBridgeChain': { - aminoType: 'regen/MsgAddAllowedBridgeChain', - }, - '/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain': { - aminoType: 'regen/MsgRemoveAllowedBridgeChain', - }, - - // regen.ecocredit.basket.v1 - '/regen.ecocredit.basket.v1.MsgCreate': { - aminoType: 'regen.basket/MsgCreate', - }, - '/regen.ecocredit.basket.v1.MsgPut': { - aminoType: 'regen.basket/MsgPut', - }, - '/regen.ecocredit.basket.v1.MsgTake': { - aminoType: 'regen.basket/MsgTake', - }, - '/regen.ecocredit.basket.v1.MsgUpdateBasketFee': { - aminoType: 'regen.basket/MsgUpdateBasketFee', - }, - '/regen.ecocredit.basket.v1.MsgUpdateCurator': { - aminoType: 'regen.basket/MsgUpdateCurator', - }, - '/regen.ecocredit.basket.v1.MsgUpdateDateCriteria': { - aminoType: 'regen.basket/MsgUpdateDateCriteria', - }, - - // regen.ecocredit.marketplace.v1 - '/regen.ecocredit.marketplace.v1.MsgSell': { - aminoType: 'regen.marketplace/MsgSell', - }, - '/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders': { - aminoType: 'regen.marketplace/MsgUpdateSellOrders', - }, - '/regen.ecocredit.marketplace.v1.MsgCancelSellOrder': { - aminoType: 'regen.marketplace/MsgCancelSellOrder', - }, - '/regen.ecocredit.marketplace.v1.MsgBuyDirect': { - aminoType: 'regen.marketplace/MsgBuyDirect', - }, - '/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom': { - aminoType: 'regen.marketplace/MsgAddAllowedDenom', - }, - '/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom': { - aminoType: 'regen.marketplace/MsgRemoveAllowedDenom', - }, -}; diff --git a/packages/api/scripts/codegen.js b/packages/api/scripts/codegen.js deleted file mode 100644 index 641bbe9d..00000000 --- a/packages/api/scripts/codegen.js +++ /dev/null @@ -1,58 +0,0 @@ -import { join } from 'path'; -import telescope from '@cosmology/telescope'; -import { sync as rimraf } from 'rimraf'; -import { AMINO_MAP } from './aminos'; - -const protoDirs = [join(__dirname, '/../proto')]; -const outPath = join(__dirname, '../src/codegen'); -rimraf(outPath); - -telescope({ - protoDirs, - outPath, - options: { - tsDisable: { - files: [ - 'cosmos/authz/v1beta1/tx.amino.ts', - 'cosmos/staking/v1beta1/tx.amino.ts', - ], - }, - interfaces: { - enabled: true, - useUnionTypes: true, - }, - prototypes: { - includePackageVar: false, - addTypeUrlToDecoders: true, - typingsFormat: { - useDeepPartial: false, - useExact: false, - timestamp: 'timestamp', - duration: 'duration', - }, - methods: { - toJSON: true, - fromJSON: true, - }, - }, - aminoEncoding: { - enabled: true, - exceptions: AMINO_MAP, - useRecursiveV2encoding: true, - }, - lcdClients: { - enabled: true, - }, - rpcClients: { - enabled: true, - camelCase: true, - }, - }, -}) - .then(() => { - console.log('✨ all done!'); - }) - .catch(e => { - console.error(e); - process.exit(1); - }); diff --git a/packages/api/src/codegen/amino/amino.ts b/packages/api/src/codegen/amino/amino.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/api/src/codegen/amino/amino.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/api/src/codegen/amino/bundle.ts b/packages/api/src/codegen/amino/bundle.ts deleted file mode 100644 index d9ebdd1f..00000000 --- a/packages/api/src/codegen/amino/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _0 from "./amino"; -export const amino = { - ..._0 -}; \ No newline at end of file diff --git a/packages/api/src/codegen/binary.ts b/packages/api/src/codegen/binary.ts deleted file mode 100644 index e42d4d12..00000000 --- a/packages/api/src/codegen/binary.ts +++ /dev/null @@ -1,534 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ - - -// Copyright (c) 2016, Daniel Wirtz All rights reserved. - -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: - -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. - -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// --- - -// Code generated by the command line utilities is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. - -import { utf8Length, utf8Read, utf8Write } from "./utf8"; -import { - int64ToString, - readInt32, - readUInt32, - uInt64ToString, - varint32read, - varint64read, - writeVarint32, - writeVarint64, - int64FromString, - int64Length, - writeFixed32, - writeByte, - zzDecode, - zzEncode, -} from "./varint"; - -export enum WireType { - Varint = 0, - - Fixed64 = 1, - - Bytes = 2, - - Fixed32 = 5, -} - -// Reader -export interface IBinaryReader { - buf: Uint8Array; - pos: number; - type: number; - len: number; - tag(): [number, WireType, number]; - skip(length?: number): this; - skipType(wireType: number): this; - uint32(): number; - int32(): number; - sint32(): number; - fixed32(): number; - sfixed32(): number; - int64(): bigint; - uint64(): bigint; - sint64(): bigint; - fixed64(): bigint; - sfixed64(): bigint; - float(): number; - double(): number; - bool(): boolean; - bytes(): Uint8Array; - string(): string; -} - -export class BinaryReader implements IBinaryReader { - buf: Uint8Array; - pos: number; - type: number; - len: number; - - assertBounds(): void { - if (this.pos > this.len) throw new RangeError("premature EOF"); - } - - constructor(buf?: ArrayLike) { - this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); - this.pos = 0; - this.type = 0; - this.len = this.buf.length; - } - - tag(): [number, WireType, number] { - const tag = this.uint32(), - fieldNo = tag >>> 3, - wireType = tag & 7; - if (fieldNo <= 0 || wireType < 0 || wireType > 5) - throw new Error( - "illegal tag: field no " + fieldNo + " wire type " + wireType - ); - return [fieldNo, wireType, tag]; - } - - skip(length?: number) { - if (typeof length === "number") { - if (this.pos + length > this.len) throw indexOutOfRange(this, length); - this.pos += length; - } else { - do { - if (this.pos >= this.len) throw indexOutOfRange(this); - } while (this.buf[this.pos++] & 128); - } - return this; - } - - skipType(wireType: number) { - switch (wireType) { - case WireType.Varint: - this.skip(); - break; - case WireType.Fixed64: - this.skip(8); - break; - case WireType.Bytes: - this.skip(this.uint32()); - break; - case 3: - while ((wireType = this.uint32() & 7) !== 4) { - this.skipType(wireType); - } - break; - case WireType.Fixed32: - this.skip(4); - break; - - /* istanbul ignore next */ - default: - throw Error("invalid wire type " + wireType + " at offset " + this.pos); - } - return this; - } - - uint32(): number { - return varint32read.bind(this)(); - } - - int32(): number { - return this.uint32() | 0; - } - - sint32(): number { - const num = this.uint32(); - return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding - } - - fixed32(): number { - const val = readUInt32(this.buf, this.pos); - this.pos += 4; - return val; - } - - sfixed32(): number { - const val = readInt32(this.buf, this.pos); - this.pos += 4; - return val; - } - - int64(): bigint { - const [lo, hi] = varint64read.bind(this)(); - return BigInt(int64ToString(lo, hi)); - } - - uint64(): bigint { - const [lo, hi] = varint64read.bind(this)(); - return BigInt(uInt64ToString(lo, hi)); - } - - sint64(): bigint { - let [lo, hi] = varint64read.bind(this)(); - // zig zag - [lo, hi] = zzDecode(lo, hi); - return BigInt(int64ToString(lo, hi)); - } - - fixed64(): bigint { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt(uInt64ToString(lo, hi)); - } - sfixed64(): bigint { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt(int64ToString(lo, hi)); - } - - float(): number { - throw new Error("float not supported"); - } - - double(): number { - throw new Error("double not supported"); - } - - bool(): boolean { - const [lo, hi] = varint64read.bind(this)(); - return lo !== 0 || hi !== 0; - } - - bytes(): Uint8Array { - const len = this.uint32(), - start = this.pos; - this.pos += len; - this.assertBounds(); - return this.buf.subarray(start, start + len); - } - - string(): string { - const bytes = this.bytes(); - return utf8Read(bytes, 0, bytes.length); - } -} - -// Writer -export interface IBinaryWriter { - len: number; - head: IOp; - tail: IOp; - states: State | null; - finish(): Uint8Array; - fork(): IBinaryWriter; - reset(): IBinaryWriter; - ldelim(): IBinaryWriter; - tag(fieldNo: number, type: WireType): IBinaryWriter; - uint32(value: number): IBinaryWriter; - int32(value: number): IBinaryWriter; - sint32(value: number): IBinaryWriter; - int64(value: string | number | bigint): IBinaryWriter; - uint64: (value: string | number | bigint) => IBinaryWriter; - sint64(value: string | number | bigint): IBinaryWriter; - fixed64(value: string | number | bigint): IBinaryWriter; - sfixed64: (value: string | number | bigint) => IBinaryWriter; - bool(value: boolean): IBinaryWriter; - fixed32(value: number): IBinaryWriter; - sfixed32: (value: number) => IBinaryWriter; - float(value: number): IBinaryWriter; - double(value: number): IBinaryWriter; - bytes(value: Uint8Array): IBinaryWriter; - string(value: string): IBinaryWriter; -} - -interface IOp { - len: number; - next?: IOp; - proceed(buf: Uint8Array | number[], pos: number): void; -} - -class Op implements IOp { - fn?: ((val: T, buf: Uint8Array | number[], pos: number) => void) | null; - len: number; - val: T; - next?: IOp; - - constructor( - fn: - | (( - val: T, - buf: Uint8Array | number[], - pos: number - ) => void | undefined | null) - | null, - len: number, - val: T - ) { - this.fn = fn; - this.len = len; - this.val = val; - } - - proceed(buf: Uint8Array | number[], pos: number) { - if (this.fn) { - this.fn(this.val, buf, pos); - } - } -} - -class State { - head: IOp; - tail: IOp; - len: number; - next: State | null; - - constructor(writer: BinaryWriter) { - this.head = writer.head; - this.tail = writer.tail; - this.len = writer.len; - this.next = writer.states; - } -} - -export class BinaryWriter implements IBinaryWriter { - len = 0; - head: IOp; - tail: IOp; - states: State | null; - - constructor() { - this.head = new Op(null, 0, 0); - this.tail = this.head; - this.states = null; - } - - static create() { - return new BinaryWriter(); - } - - static alloc(size: number): Uint8Array | number[] { - if (typeof Uint8Array !== "undefined") { - return pool( - (size) => new Uint8Array(size), - Uint8Array.prototype.subarray - )(size); - } else { - return new Array(size); - } - } - - private _push( - fn: (val: T, buf: Uint8Array | number[], pos: number) => void, - len: number, - val: T - ) { - this.tail = this.tail.next = new Op(fn, len, val); - this.len += len; - return this; - } - - finish(): Uint8Array { - let head = this.head.next, - pos = 0; - const buf = BinaryWriter.alloc(this.len); - while (head) { - head.proceed(buf, pos); - pos += head.len; - head = head.next; - } - return buf as Uint8Array; - } - - fork(): BinaryWriter { - this.states = new State(this); - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - return this; - } - - reset(): BinaryWriter { - if (this.states) { - this.head = this.states.head; - this.tail = this.states.tail; - this.len = this.states.len; - this.states = this.states.next; - } else { - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - } - return this; - } - - ldelim(): BinaryWriter { - const head = this.head, - tail = this.tail, - len = this.len; - this.reset().uint32(len); - if (len) { - this.tail.next = head.next; // skip noop - this.tail = tail; - this.len += len; - } - return this; - } - - tag(fieldNo: number, type: WireType): BinaryWriter { - return this.uint32(((fieldNo << 3) | type) >>> 0); - } - - uint32(value: number): BinaryWriter { - this.len += (this.tail = this.tail.next = - new Op( - writeVarint32, - (value = value >>> 0) < 128 - ? 1 - : value < 16384 - ? 2 - : value < 2097152 - ? 3 - : value < 268435456 - ? 4 - : 5, - value - )).len; - return this; - } - - int32(value: number): BinaryWriter { - return value < 0 - ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec - : this.uint32(value); - } - - sint32(value: number): BinaryWriter { - return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); - } - - int64(value: string | number | bigint): BinaryWriter { - const { lo, hi } = int64FromString(value.toString()); - return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); - } - - // uint64 is the same with int64 - uint64 = BinaryWriter.prototype.int64; - - sint64(value: string | number | bigint): BinaryWriter { - let { lo, hi } = int64FromString(value.toString()); - // zig zag - [lo, hi] = zzEncode(lo, hi); - return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); - } - - fixed64(value: string | number | bigint): BinaryWriter { - const { lo, hi } = int64FromString(value.toString()); - return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi); - } - - // sfixed64 is the same with fixed64 - sfixed64 = BinaryWriter.prototype.fixed64; - - bool(value: boolean): BinaryWriter { - return this._push(writeByte, 1, value ? 1 : 0); - } - - fixed32(value: number): BinaryWriter { - return this._push(writeFixed32, 4, value >>> 0); - } - - // sfixed32 is the same with fixed32 - sfixed32 = BinaryWriter.prototype.fixed32; - - float(value: number): BinaryWriter { - throw new Error("float not supported" + value); - } - - double(value: number): BinaryWriter { - throw new Error("double not supported" + value); - } - - bytes(value: Uint8Array): BinaryWriter { - const len = value.length >>> 0; - if (!len) return this._push(writeByte, 1, 0); - return this.uint32(len)._push(writeBytes, len, value); - } - - string(value: string): BinaryWriter { - const len = utf8Length(value); - return len - ? this.uint32(len)._push(utf8Write, len, value) - : this._push(writeByte, 1, 0); - } -} - -function writeBytes( - val: Uint8Array | number[], - buf: Uint8Array | number[], - pos: number -) { - if (typeof Uint8Array !== "undefined") { - (buf as Uint8Array).set(val, pos); - } else { - for (let i = 0; i < val.length; ++i) buf[pos + i] = val[i]; - } -} - -function pool( - alloc: (size: number) => Uint8Array, - slice: (begin?: number, end?: number) => Uint8Array, - size?: number -): (size: number) => Uint8Array { - const SIZE = size || 8192; - const MAX = SIZE >>> 1; - let slab: Uint8Array | null = null; - let offset = SIZE; - return function pool_alloc(size): Uint8Array { - if (size < 1 || size > MAX) return alloc(size); - if (offset + size > SIZE) { - slab = alloc(SIZE); - offset = 0; - } - const buf: Uint8Array = slice.call(slab, offset, (offset += size)); - if (offset & 7) - // align to 32 bit - offset = (offset | 7) + 1; - return buf; - }; -} - -function indexOutOfRange(reader: BinaryReader, writeLength?: number) { - return RangeError( - "index out of range: " + - reader.pos + - " + " + - (writeLength || 1) + - " > " + - reader.len - ); -} diff --git a/packages/api/src/codegen/cosmos/app/module/v1alpha1/module.ts b/packages/api/src/codegen/cosmos/app/module/v1alpha1/module.ts deleted file mode 100644 index 462ad6e1..00000000 --- a/packages/api/src/codegen/cosmos/app/module/v1alpha1/module.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface Module {} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.app.module.v1alpha1.Module"; - value: Uint8Array; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleAmino {} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleSDKType {} -function createBaseModule(): Module { - return {}; -} -export const Module = { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Module { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): Module { - return {}; - }, - toJSON(_: Module): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): Module { - const message = createBaseModule(); - return message; - }, - fromAmino(_: ModuleAmino): Module { - const message = createBaseModule(); - return message; - }, - toAmino(_: Module): ModuleAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: ModuleAminoMsg): Module { - return Module.fromAmino(object.value); - }, - toAminoMsg(message: Module): ModuleAminoMsg { - return { - type: "cosmos-sdk/Module", - value: Module.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleProtoMsg): Module { - return Module.decode(message.value); - }, - toProto(message: Module): Uint8Array { - return Module.encode(message).finish(); - }, - toProtoMsg(message: Module): ModuleProtoMsg { - return { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - value: Module.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/app/v1alpha1/config.ts b/packages/api/src/codegen/cosmos/app/v1alpha1/config.ts deleted file mode 100644 index addaed85..00000000 --- a/packages/api/src/codegen/cosmos/app/v1alpha1/config.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -export interface ConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.Config"; - value: Uint8Array; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigAmino { - /** modules are the module configurations for the app. */ - modules?: ModuleConfigAmino[]; -} -export interface ConfigAminoMsg { - type: "cosmos-sdk/Config"; - value: ConfigAmino; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: Any; -} -export interface ModuleConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; - value: Uint8Array; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigAmino { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name?: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: AnyAmino; -} -export interface ModuleConfigAminoMsg { - type: "cosmos-sdk/ModuleConfig"; - value: ModuleConfigAmino; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config?: AnySDKType; -} -function createBaseConfig(): Config { - return { - modules: [] - }; -} -export const Config = { - typeUrl: "/cosmos.app.v1alpha1.Config", - encode(message: Config, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.modules) { - ModuleConfig.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Config { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.modules.push(ModuleConfig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Config { - return { - modules: Array.isArray(object?.modules) ? object.modules.map((e: any) => ModuleConfig.fromJSON(e)) : [] - }; - }, - toJSON(message: Config): unknown { - const obj: any = {}; - if (message.modules) { - obj.modules = message.modules.map(e => e ? ModuleConfig.toJSON(e) : undefined); - } else { - obj.modules = []; - } - return obj; - }, - fromPartial(object: Partial): Config { - const message = createBaseConfig(); - message.modules = object.modules?.map(e => ModuleConfig.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ConfigAmino): Config { - const message = createBaseConfig(); - message.modules = object.modules?.map(e => ModuleConfig.fromAmino(e)) || []; - return message; - }, - toAmino(message: Config): ConfigAmino { - const obj: any = {}; - if (message.modules) { - obj.modules = message.modules.map(e => e ? ModuleConfig.toAmino(e) : undefined); - } else { - obj.modules = message.modules; - } - return obj; - }, - fromAminoMsg(object: ConfigAminoMsg): Config { - return Config.fromAmino(object.value); - }, - toAminoMsg(message: Config): ConfigAminoMsg { - return { - type: "cosmos-sdk/Config", - value: Config.toAmino(message) - }; - }, - fromProtoMsg(message: ConfigProtoMsg): Config { - return Config.decode(message.value); - }, - toProto(message: Config): Uint8Array { - return Config.encode(message).finish(); - }, - toProtoMsg(message: Config): ConfigProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.Config", - value: Config.encode(message).finish() - }; - } -}; -function createBaseModuleConfig(): ModuleConfig { - return { - name: "", - config: undefined - }; -} -export const ModuleConfig = { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig", - encode(message: ModuleConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.config !== undefined) { - Any.encode(message.config, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleConfig { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleConfig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.config = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleConfig { - return { - name: isSet(object.name) ? String(object.name) : "", - config: isSet(object.config) ? Any.fromJSON(object.config) : undefined - }; - }, - toJSON(message: ModuleConfig): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.config !== undefined && (obj.config = message.config ? Any.toJSON(message.config) : undefined); - return obj; - }, - fromPartial(object: Partial): ModuleConfig { - const message = createBaseModuleConfig(); - message.name = object.name ?? ""; - message.config = object.config !== undefined && object.config !== null ? Any.fromPartial(object.config) : undefined; - return message; - }, - fromAmino(object: ModuleConfigAmino): ModuleConfig { - const message = createBaseModuleConfig(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.config !== undefined && object.config !== null) { - message.config = Any.fromAmino(object.config); - } - return message; - }, - toAmino(message: ModuleConfig): ModuleConfigAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.config = message.config ? Any.toAmino(message.config) : undefined; - return obj; - }, - fromAminoMsg(object: ModuleConfigAminoMsg): ModuleConfig { - return ModuleConfig.fromAmino(object.value); - }, - toAminoMsg(message: ModuleConfig): ModuleConfigAminoMsg { - return { - type: "cosmos-sdk/ModuleConfig", - value: ModuleConfig.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleConfigProtoMsg): ModuleConfig { - return ModuleConfig.decode(message.value); - }, - toProto(message: ModuleConfig): Uint8Array { - return ModuleConfig.encode(message).finish(); - }, - toProtoMsg(message: ModuleConfig): ModuleConfigProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig", - value: ModuleConfig.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/app/v1alpha1/module.ts b/packages/api/src/codegen/cosmos/app/v1alpha1/module.ts deleted file mode 100644 index 43aa136d..00000000 --- a/packages/api/src/codegen/cosmos/app/v1alpha1/module.ts +++ /dev/null @@ -1,495 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -export interface ModuleDescriptorProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; - value: Uint8Array; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorAmino { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - go_import?: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - use_package?: PackageReferenceAmino[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - can_migrate_from?: MigrateFromInfoAmino[]; -} -export interface ModuleDescriptorAminoMsg { - type: "cosmos-sdk/ModuleDescriptor"; - value: ModuleDescriptorAmino; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.PackageReference"; - value: Uint8Array; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceAmino { - /** name is the fully-qualified name of the package. */ - name?: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision?: number; -} -export interface PackageReferenceAminoMsg { - type: "cosmos-sdk/PackageReference"; - value: PackageReferenceAmino; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; - value: Uint8Array; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoAmino { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module?: string; -} -export interface MigrateFromInfoAminoMsg { - type: "cosmos-sdk/MigrateFromInfo"; - value: MigrateFromInfoAmino; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} -function createBaseModuleDescriptor(): ModuleDescriptor { - return { - goImport: "", - usePackage: [], - canMigrateFrom: [] - }; -} -export const ModuleDescriptor = { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - encode(message: ModuleDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.goImport !== "") { - writer.uint32(10).string(message.goImport); - } - for (const v of message.usePackage) { - PackageReference.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.canMigrateFrom) { - MigrateFromInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.goImport = reader.string(); - break; - case 2: - message.usePackage.push(PackageReference.decode(reader, reader.uint32())); - break; - case 3: - message.canMigrateFrom.push(MigrateFromInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleDescriptor { - return { - goImport: isSet(object.goImport) ? String(object.goImport) : "", - usePackage: Array.isArray(object?.usePackage) ? object.usePackage.map((e: any) => PackageReference.fromJSON(e)) : [], - canMigrateFrom: Array.isArray(object?.canMigrateFrom) ? object.canMigrateFrom.map((e: any) => MigrateFromInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: ModuleDescriptor): unknown { - const obj: any = {}; - message.goImport !== undefined && (obj.goImport = message.goImport); - if (message.usePackage) { - obj.usePackage = message.usePackage.map(e => e ? PackageReference.toJSON(e) : undefined); - } else { - obj.usePackage = []; - } - if (message.canMigrateFrom) { - obj.canMigrateFrom = message.canMigrateFrom.map(e => e ? MigrateFromInfo.toJSON(e) : undefined); - } else { - obj.canMigrateFrom = []; - } - return obj; - }, - fromPartial(object: Partial): ModuleDescriptor { - const message = createBaseModuleDescriptor(); - message.goImport = object.goImport ?? ""; - message.usePackage = object.usePackage?.map(e => PackageReference.fromPartial(e)) || []; - message.canMigrateFrom = object.canMigrateFrom?.map(e => MigrateFromInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ModuleDescriptorAmino): ModuleDescriptor { - const message = createBaseModuleDescriptor(); - if (object.go_import !== undefined && object.go_import !== null) { - message.goImport = object.go_import; - } - message.usePackage = object.use_package?.map(e => PackageReference.fromAmino(e)) || []; - message.canMigrateFrom = object.can_migrate_from?.map(e => MigrateFromInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: ModuleDescriptor): ModuleDescriptorAmino { - const obj: any = {}; - obj.go_import = message.goImport === "" ? undefined : message.goImport; - if (message.usePackage) { - obj.use_package = message.usePackage.map(e => e ? PackageReference.toAmino(e) : undefined); - } else { - obj.use_package = message.usePackage; - } - if (message.canMigrateFrom) { - obj.can_migrate_from = message.canMigrateFrom.map(e => e ? MigrateFromInfo.toAmino(e) : undefined); - } else { - obj.can_migrate_from = message.canMigrateFrom; - } - return obj; - }, - fromAminoMsg(object: ModuleDescriptorAminoMsg): ModuleDescriptor { - return ModuleDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: ModuleDescriptor): ModuleDescriptorAminoMsg { - return { - type: "cosmos-sdk/ModuleDescriptor", - value: ModuleDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleDescriptorProtoMsg): ModuleDescriptor { - return ModuleDescriptor.decode(message.value); - }, - toProto(message: ModuleDescriptor): Uint8Array { - return ModuleDescriptor.encode(message).finish(); - }, - toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - value: ModuleDescriptor.encode(message).finish() - }; - } -}; -function createBasePackageReference(): PackageReference { - return { - name: "", - revision: 0 - }; -} -export const PackageReference = { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - encode(message: PackageReference, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.revision !== 0) { - writer.uint32(16).uint32(message.revision); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PackageReference { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePackageReference(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.revision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PackageReference { - return { - name: isSet(object.name) ? String(object.name) : "", - revision: isSet(object.revision) ? Number(object.revision) : 0 - }; - }, - toJSON(message: PackageReference): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.revision !== undefined && (obj.revision = Math.round(message.revision)); - return obj; - }, - fromPartial(object: Partial): PackageReference { - const message = createBasePackageReference(); - message.name = object.name ?? ""; - message.revision = object.revision ?? 0; - return message; - }, - fromAmino(object: PackageReferenceAmino): PackageReference { - const message = createBasePackageReference(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.revision !== undefined && object.revision !== null) { - message.revision = object.revision; - } - return message; - }, - toAmino(message: PackageReference): PackageReferenceAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.revision = message.revision === 0 ? undefined : message.revision; - return obj; - }, - fromAminoMsg(object: PackageReferenceAminoMsg): PackageReference { - return PackageReference.fromAmino(object.value); - }, - toAminoMsg(message: PackageReference): PackageReferenceAminoMsg { - return { - type: "cosmos-sdk/PackageReference", - value: PackageReference.toAmino(message) - }; - }, - fromProtoMsg(message: PackageReferenceProtoMsg): PackageReference { - return PackageReference.decode(message.value); - }, - toProto(message: PackageReference): Uint8Array { - return PackageReference.encode(message).finish(); - }, - toProtoMsg(message: PackageReference): PackageReferenceProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - value: PackageReference.encode(message).finish() - }; - } -}; -function createBaseMigrateFromInfo(): MigrateFromInfo { - return { - module: "" - }; -} -export const MigrateFromInfo = { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - encode(message: MigrateFromInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMigrateFromInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MigrateFromInfo { - return { - module: isSet(object.module) ? String(object.module) : "" - }; - }, - toJSON(message: MigrateFromInfo): unknown { - const obj: any = {}; - message.module !== undefined && (obj.module = message.module); - return obj; - }, - fromPartial(object: Partial): MigrateFromInfo { - const message = createBaseMigrateFromInfo(); - message.module = object.module ?? ""; - return message; - }, - fromAmino(object: MigrateFromInfoAmino): MigrateFromInfo { - const message = createBaseMigrateFromInfo(); - if (object.module !== undefined && object.module !== null) { - message.module = object.module; - } - return message; - }, - toAmino(message: MigrateFromInfo): MigrateFromInfoAmino { - const obj: any = {}; - obj.module = message.module === "" ? undefined : message.module; - return obj; - }, - fromAminoMsg(object: MigrateFromInfoAminoMsg): MigrateFromInfo { - return MigrateFromInfo.fromAmino(object.value); - }, - toAminoMsg(message: MigrateFromInfo): MigrateFromInfoAminoMsg { - return { - type: "cosmos-sdk/MigrateFromInfo", - value: MigrateFromInfo.toAmino(message) - }; - }, - fromProtoMsg(message: MigrateFromInfoProtoMsg): MigrateFromInfo { - return MigrateFromInfo.decode(message.value); - }, - toProto(message: MigrateFromInfo): Uint8Array { - return MigrateFromInfo.encode(message).finish(); - }, - toProtoMsg(message: MigrateFromInfo): MigrateFromInfoProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - value: MigrateFromInfo.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts deleted file mode 100644 index 7aaf4092..00000000 --- a/packages/api/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryConfigRequest, QueryConfigResponse } from "./query"; -/** Query is the app module query service. */ -export interface Query { - /** Config returns the current app config. */ - config(request?: QueryConfigRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.config = this.config.bind(this); - } - config(request: QueryConfigRequest = {}): Promise { - const data = QueryConfigRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.app.v1alpha1.Query", "Config", data); - return promise.then(data => QueryConfigResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - config(request?: QueryConfigRequest): Promise { - return queryService.config(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/app/v1alpha1/query.ts b/packages/api/src/codegen/cosmos/app/v1alpha1/query.ts deleted file mode 100644 index 33f9e4ce..00000000 --- a/packages/api/src/codegen/cosmos/app/v1alpha1/query.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { Config, ConfigAmino, ConfigSDKType } from "./config"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequest {} -export interface QueryConfigRequestProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigRequest"; - value: Uint8Array; -} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestAmino {} -export interface QueryConfigRequestAminoMsg { - type: "cosmos-sdk/QueryConfigRequest"; - value: QueryConfigRequestAmino; -} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestSDKType {} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponse { - /** config is the current app config. */ - config?: Config; -} -export interface QueryConfigResponseProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse"; - value: Uint8Array; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseAmino { - /** config is the current app config. */ - config?: ConfigAmino; -} -export interface QueryConfigResponseAminoMsg { - type: "cosmos-sdk/QueryConfigResponse"; - value: QueryConfigResponseAmino; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseSDKType { - config?: ConfigSDKType; -} -function createBaseQueryConfigRequest(): QueryConfigRequest { - return {}; -} -export const QueryConfigRequest = { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigRequest", - encode(_: QueryConfigRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConfigRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryConfigRequest { - return {}; - }, - toJSON(_: QueryConfigRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryConfigRequest { - const message = createBaseQueryConfigRequest(); - return message; - }, - fromAmino(_: QueryConfigRequestAmino): QueryConfigRequest { - const message = createBaseQueryConfigRequest(); - return message; - }, - toAmino(_: QueryConfigRequest): QueryConfigRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryConfigRequestAminoMsg): QueryConfigRequest { - return QueryConfigRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryConfigRequest): QueryConfigRequestAminoMsg { - return { - type: "cosmos-sdk/QueryConfigRequest", - value: QueryConfigRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConfigRequestProtoMsg): QueryConfigRequest { - return QueryConfigRequest.decode(message.value); - }, - toProto(message: QueryConfigRequest): Uint8Array { - return QueryConfigRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryConfigRequest): QueryConfigRequestProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigRequest", - value: QueryConfigRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConfigResponse(): QueryConfigResponse { - return { - config: undefined - }; -} -export const QueryConfigResponse = { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse", - encode(message: QueryConfigResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.config !== undefined) { - Config.encode(message.config, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConfigResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = Config.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConfigResponse { - return { - config: isSet(object.config) ? Config.fromJSON(object.config) : undefined - }; - }, - toJSON(message: QueryConfigResponse): unknown { - const obj: any = {}; - message.config !== undefined && (obj.config = message.config ? Config.toJSON(message.config) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConfigResponse { - const message = createBaseQueryConfigResponse(); - message.config = object.config !== undefined && object.config !== null ? Config.fromPartial(object.config) : undefined; - return message; - }, - fromAmino(object: QueryConfigResponseAmino): QueryConfigResponse { - const message = createBaseQueryConfigResponse(); - if (object.config !== undefined && object.config !== null) { - message.config = Config.fromAmino(object.config); - } - return message; - }, - toAmino(message: QueryConfigResponse): QueryConfigResponseAmino { - const obj: any = {}; - obj.config = message.config ? Config.toAmino(message.config) : undefined; - return obj; - }, - fromAminoMsg(object: QueryConfigResponseAminoMsg): QueryConfigResponse { - return QueryConfigResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryConfigResponse): QueryConfigResponseAminoMsg { - return { - type: "cosmos-sdk/QueryConfigResponse", - value: QueryConfigResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConfigResponseProtoMsg): QueryConfigResponse { - return QueryConfigResponse.decode(message.value); - }, - toProto(message: QueryConfigResponse): Uint8Array { - return QueryConfigResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryConfigResponse): QueryConfigResponseProtoMsg { - return { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse", - value: QueryConfigResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/auth.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/auth.ts deleted file mode 100644 index 8c7e85af..00000000 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/auth.ts +++ /dev/null @@ -1,477 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccount { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pubKey?: Any; - accountNumber: bigint; - sequence: bigint; -} -export interface BaseAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; - value: Uint8Array; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountAmino { - address?: string; - pub_key?: AnyAmino; - account_number?: string; - sequence?: string; -} -export interface BaseAccountAminoMsg { - type: "cosmos-sdk/BaseAccount"; - value: BaseAccountAmino; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pub_key?: AnySDKType; - account_number: bigint; - sequence: bigint; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccount { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - baseAccount?: BaseAccount; - name: string; - permissions: string[]; -} -export interface ModuleAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; - value: Uint8Array; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountAmino { - base_account?: BaseAccountAmino; - name?: string; - permissions?: string[]; -} -export interface ModuleAccountAminoMsg { - type: "cosmos-sdk/ModuleAccount"; - value: ModuleAccountAmino; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - base_account?: BaseAccountSDKType; - name: string; - permissions: string[]; -} -/** Params defines the parameters for the auth module. */ -export interface Params { - maxMemoCharacters: bigint; - txSigLimit: bigint; - txSizeCostPerByte: bigint; - sigVerifyCostEd25519: bigint; - sigVerifyCostSecp256k1: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsAmino { - max_memo_characters?: string; - tx_sig_limit?: string; - tx_size_cost_per_byte?: string; - sig_verify_cost_ed25519?: string; - sig_verify_cost_secp256k1?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsSDKType { - max_memo_characters: bigint; - tx_sig_limit: bigint; - tx_size_cost_per_byte: bigint; - sig_verify_cost_ed25519: bigint; - sig_verify_cost_secp256k1: bigint; -} -function createBaseBaseAccount(): BaseAccount { - return { - $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - address: "", - pubKey: undefined, - accountNumber: BigInt(0), - sequence: BigInt(0) - }; -} -export const BaseAccount = { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - encode(message: BaseAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(32).uint64(message.sequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.accountNumber = reader.uint64(); - break; - case 4: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BaseAccount { - return { - address: isSet(object.address) ? String(object.address) : "", - pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : undefined, - accountNumber: isSet(object.accountNumber) ? BigInt(object.accountNumber.toString()) : BigInt(0), - sequence: isSet(object.sequence) ? BigInt(object.sequence.toString()) : BigInt(0) - }; - }, - toJSON(message: BaseAccount): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? Any.toJSON(message.pubKey) : undefined); - message.accountNumber !== undefined && (obj.accountNumber = (message.accountNumber || BigInt(0)).toString()); - message.sequence !== undefined && (obj.sequence = (message.sequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BaseAccount { - const message = createBaseBaseAccount(); - message.address = object.address ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BaseAccountAmino): BaseAccount { - const message = createBaseBaseAccount(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = Any.fromAmino(object.pub_key); - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message: BaseAccount): BaseAccountAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount { - return BaseAccount.fromAmino(object.value); - }, - toAminoMsg(message: BaseAccount): BaseAccountAminoMsg { - return { - type: "cosmos-sdk/BaseAccount", - value: BaseAccount.toAmino(message) - }; - }, - fromProtoMsg(message: BaseAccountProtoMsg): BaseAccount { - return BaseAccount.decode(message.value); - }, - toProto(message: BaseAccount): Uint8Array { - return BaseAccount.encode(message).finish(); - }, - toProtoMsg(message: BaseAccount): BaseAccountProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: BaseAccount.encode(message).finish() - }; - } -}; -function createBaseModuleAccount(): ModuleAccount { - return { - $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - baseAccount: undefined, - name: "", - permissions: [] - }; -} -export const ModuleAccount = { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - encode(message: ModuleAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseAccount !== undefined) { - BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - for (const v of message.permissions) { - writer.uint32(26).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.permissions.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleAccount { - return { - baseAccount: isSet(object.baseAccount) ? BaseAccount.fromJSON(object.baseAccount) : undefined, - name: isSet(object.name) ? String(object.name) : "", - permissions: Array.isArray(object?.permissions) ? object.permissions.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ModuleAccount): unknown { - const obj: any = {}; - message.baseAccount !== undefined && (obj.baseAccount = message.baseAccount ? BaseAccount.toJSON(message.baseAccount) : undefined); - message.name !== undefined && (obj.name = message.name); - if (message.permissions) { - obj.permissions = message.permissions.map(e => e); - } else { - obj.permissions = []; - } - return obj; - }, - fromPartial(object: Partial): ModuleAccount { - const message = createBaseModuleAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; - message.name = object.name ?? ""; - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - fromAmino(object: ModuleAccountAmino): ModuleAccount { - const message = createBaseModuleAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = BaseAccount.fromAmino(object.base_account); - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - toAmino(message: ModuleAccount): ModuleAccountAmino { - const obj: any = {}; - obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; - obj.name = message.name === "" ? undefined : message.name; - if (message.permissions) { - obj.permissions = message.permissions.map(e => e); - } else { - obj.permissions = message.permissions; - } - return obj; - }, - fromAminoMsg(object: ModuleAccountAminoMsg): ModuleAccount { - return ModuleAccount.fromAmino(object.value); - }, - toAminoMsg(message: ModuleAccount): ModuleAccountAminoMsg { - return { - type: "cosmos-sdk/ModuleAccount", - value: ModuleAccount.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleAccountProtoMsg): ModuleAccount { - return ModuleAccount.decode(message.value); - }, - toProto(message: ModuleAccount): Uint8Array { - return ModuleAccount.encode(message).finish(); - }, - toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: ModuleAccount.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - maxMemoCharacters: BigInt(0), - txSigLimit: BigInt(0), - txSizeCostPerByte: BigInt(0), - sigVerifyCostEd25519: BigInt(0), - sigVerifyCostSecp256k1: BigInt(0) - }; -} -export const Params = { - typeUrl: "/cosmos.auth.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.maxMemoCharacters !== BigInt(0)) { - writer.uint32(8).uint64(message.maxMemoCharacters); - } - if (message.txSigLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.txSigLimit); - } - if (message.txSizeCostPerByte !== BigInt(0)) { - writer.uint32(24).uint64(message.txSizeCostPerByte); - } - if (message.sigVerifyCostEd25519 !== BigInt(0)) { - writer.uint32(32).uint64(message.sigVerifyCostEd25519); - } - if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { - writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxMemoCharacters = reader.uint64(); - break; - case 2: - message.txSigLimit = reader.uint64(); - break; - case 3: - message.txSizeCostPerByte = reader.uint64(); - break; - case 4: - message.sigVerifyCostEd25519 = reader.uint64(); - break; - case 5: - message.sigVerifyCostSecp256k1 = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - maxMemoCharacters: isSet(object.maxMemoCharacters) ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0), - txSigLimit: isSet(object.txSigLimit) ? BigInt(object.txSigLimit.toString()) : BigInt(0), - txSizeCostPerByte: isSet(object.txSizeCostPerByte) ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0), - sigVerifyCostEd25519: isSet(object.sigVerifyCostEd25519) ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0), - sigVerifyCostSecp256k1: isSet(object.sigVerifyCostSecp256k1) ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0) - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.maxMemoCharacters !== undefined && (obj.maxMemoCharacters = (message.maxMemoCharacters || BigInt(0)).toString()); - message.txSigLimit !== undefined && (obj.txSigLimit = (message.txSigLimit || BigInt(0)).toString()); - message.txSizeCostPerByte !== undefined && (obj.txSizeCostPerByte = (message.txSizeCostPerByte || BigInt(0)).toString()); - message.sigVerifyCostEd25519 !== undefined && (obj.sigVerifyCostEd25519 = (message.sigVerifyCostEd25519 || BigInt(0)).toString()); - message.sigVerifyCostSecp256k1 !== undefined && (obj.sigVerifyCostSecp256k1 = (message.sigVerifyCostSecp256k1 || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); - message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); - message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); - message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); - message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { - message.maxMemoCharacters = BigInt(object.max_memo_characters); - } - if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { - message.txSigLimit = BigInt(object.tx_sig_limit); - } - if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { - message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); - } - if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { - message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); - } - if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { - message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; - obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; - obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; - obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; - obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/genesis.ts deleted file mode 100644 index ee4869df..00000000 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/genesis.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./auth"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** accounts are the accounts present at genesis. */ - accounts: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** accounts are the accounts present at genesis. */ - accounts?: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - accounts: AnySDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - accounts: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.accounts) { - Any.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.accounts.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.accounts = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.accounts = object.accounts?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/query.lcd.ts deleted file mode 100644 index 48a724b1..00000000 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - /* Accounts returns all the existing accounts - - Since: cosmos-sdk 0.43 */ - async accounts(params: QueryAccountsRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/auth/v1beta1/accounts`; - return await this.req.get(endpoint, options); - } - /* Account returns account details based on address. */ - async account(params: QueryAccountRequest): Promise { - const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; - return await this.req.get(endpoint); - } - /* AccountAddressByID returns account address based on account number. - - Since: cosmos-sdk 0.46.2 */ - async accountAddressByID(params: QueryAccountAddressByIDRequest): Promise { - const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; - return await this.req.get(endpoint); - } - /* Params queries all parameters. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/auth/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ModuleAccounts returns all the existing module accounts. - - Since: cosmos-sdk 0.46 */ - async moduleAccounts(_params: QueryModuleAccountsRequest = {}): Promise { - const endpoint = `cosmos/auth/v1beta1/module_accounts`; - return await this.req.get(endpoint); - } - /* ModuleAccountByName returns the module account info by module name */ - async moduleAccountByName(params: QueryModuleAccountByNameRequest): Promise { - const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; - return await this.req.get(endpoint); - } - /* Bech32Prefix queries bech32Prefix - - Since: cosmos-sdk 0.46 */ - async bech32Prefix(_params: Bech32PrefixRequest = {}): Promise { - const endpoint = `cosmos/auth/v1beta1/bech32`; - return await this.req.get(endpoint); - } - /* AddressBytesToString converts Account Address bytes to string - - Since: cosmos-sdk 0.46 */ - async addressBytesToString(params: AddressBytesToStringRequest): Promise { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; - return await this.req.get(endpoint); - } - /* AddressStringToBytes converts Address string to bytes - - Since: cosmos-sdk 0.46 */ - async addressStringToBytes(params: AddressStringToBytesRequest): Promise { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts deleted file mode 100644 index c57bccdd..00000000 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Accounts returns all the existing accounts - * - * Since: cosmos-sdk 0.43 - */ - accounts(request?: QueryAccountsRequest): Promise; - /** Account returns account details based on address. */ - account(request: QueryAccountRequest): Promise; - /** - * AccountAddressByID returns account address based on account number. - * - * Since: cosmos-sdk 0.46.2 - */ - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - /** Params queries all parameters. */ - params(request?: QueryParamsRequest): Promise; - /** - * ModuleAccounts returns all the existing module accounts. - * - * Since: cosmos-sdk 0.46 - */ - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - /** ModuleAccountByName returns the module account info by module name */ - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - /** - * Bech32Prefix queries bech32Prefix - * - * Since: cosmos-sdk 0.46 - */ - bech32Prefix(request?: Bech32PrefixRequest): Promise; - /** - * AddressBytesToString converts Account Address bytes to string - * - * Since: cosmos-sdk 0.46 - */ - addressBytesToString(request: AddressBytesToStringRequest): Promise; - /** - * AddressStringToBytes converts Address string to bytes - * - * Since: cosmos-sdk 0.46 - */ - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - accounts(request: QueryAccountsRequest = { - pagination: undefined - }): Promise { - const data = QueryAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); - return promise.then(data => QueryAccountsResponse.decode(new BinaryReader(data))); - } - account(request: QueryAccountRequest): Promise { - const data = QueryAccountRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); - return promise.then(data => QueryAccountResponse.decode(new BinaryReader(data))); - } - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise { - const data = QueryAccountAddressByIDRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); - return promise.then(data => QueryAccountAddressByIDResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - moduleAccounts(request: QueryModuleAccountsRequest = {}): Promise { - const data = QueryModuleAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); - return promise.then(data => QueryModuleAccountsResponse.decode(new BinaryReader(data))); - } - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise { - const data = QueryModuleAccountByNameRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); - return promise.then(data => QueryModuleAccountByNameResponse.decode(new BinaryReader(data))); - } - bech32Prefix(request: Bech32PrefixRequest = {}): Promise { - const data = Bech32PrefixRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); - return promise.then(data => Bech32PrefixResponse.decode(new BinaryReader(data))); - } - addressBytesToString(request: AddressBytesToStringRequest): Promise { - const data = AddressBytesToStringRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); - return promise.then(data => AddressBytesToStringResponse.decode(new BinaryReader(data))); - } - addressStringToBytes(request: AddressStringToBytesRequest): Promise { - const data = AddressStringToBytesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); - return promise.then(data => AddressStringToBytesResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - accounts(request?: QueryAccountsRequest): Promise { - return queryService.accounts(request); - }, - account(request: QueryAccountRequest): Promise { - return queryService.account(request); - }, - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise { - return queryService.accountAddressByID(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - moduleAccounts(request?: QueryModuleAccountsRequest): Promise { - return queryService.moduleAccounts(request); - }, - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise { - return queryService.moduleAccountByName(request); - }, - bech32Prefix(request?: Bech32PrefixRequest): Promise { - return queryService.bech32Prefix(request); - }, - addressBytesToString(request: AddressBytesToStringRequest): Promise { - return queryService.addressBytesToString(request); - }, - addressStringToBytes(request: AddressStringToBytesRequest): Promise { - return queryService.addressStringToBytes(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts b/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts deleted file mode 100644 index 5a5d1fa8..00000000 --- a/packages/api/src/codegen/cosmos/auth/v1beta1/query.ts +++ /dev/null @@ -1,1992 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; - value: Uint8Array; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryAccountsRequest"; - value: QueryAccountsRequestAmino; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponse { - /** accounts are the existing accounts */ - accounts: (BaseAccount | Any)[] | Any[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; - value: Uint8Array; -} -export type QueryAccountsResponseEncoded = Omit & { - /** accounts are the existing accounts */accounts: (BaseAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseAmino { - /** accounts are the existing accounts */ - accounts?: AnyAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryAccountsResponse"; - value: QueryAccountsResponseAmino; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseSDKType { - accounts: (BaseAccountSDKType | AnySDKType)[]; - pagination?: PageResponseSDKType; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequest { - /** address defines the address to query for. */ - address: string; -} -export interface QueryAccountRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; - value: Uint8Array; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestAmino { - /** address defines the address to query for. */ - address?: string; -} -export interface QueryAccountRequestAminoMsg { - type: "cosmos-sdk/QueryAccountRequest"; - value: QueryAccountRequestAmino; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestSDKType { - address: string; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponse { - /** account defines the account of the corresponding address. */ - account?: BaseAccount | Any | undefined; -} -export interface QueryAccountResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; - value: Uint8Array; -} -export type QueryAccountResponseEncoded = Omit & { - /** account defines the account of the corresponding address. */account?: BaseAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseAmino { - /** account defines the account of the corresponding address. */ - account?: AnyAmino; -} -export interface QueryAccountResponseAminoMsg { - type: "cosmos-sdk/QueryAccountResponse"; - value: QueryAccountResponseAmino; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseSDKType { - account?: BaseAccountSDKType | AnySDKType | undefined; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequest {} -export interface QueryModuleAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; - value: Uint8Array; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestAmino {} -export interface QueryModuleAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsRequest"; - value: QueryModuleAccountsRequestAmino; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestSDKType {} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponse { - accounts: (ModuleAccount | Any)[] | Any[]; -} -export interface QueryModuleAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; - value: Uint8Array; -} -export type QueryModuleAccountsResponseEncoded = Omit & { - accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseAmino { - accounts?: AnyAmino[]; -} -export interface QueryModuleAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsResponse"; - value: QueryModuleAccountsResponseAmino; -} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseSDKType { - accounts: (ModuleAccountSDKType | AnySDKType)[]; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequest { - name: string; -} -export interface QueryModuleAccountByNameRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; - value: Uint8Array; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestAmino { - name?: string; -} -export interface QueryModuleAccountByNameRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameRequest"; - value: QueryModuleAccountByNameRequestAmino; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestSDKType { - name: string; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponse { - account?: ModuleAccount | Any | undefined; -} -export interface QueryModuleAccountByNameResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; - value: Uint8Array; -} -export type QueryModuleAccountByNameResponseEncoded = Omit & { - account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseAmino { - account?: AnyAmino; -} -export interface QueryModuleAccountByNameResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameResponse"; - value: QueryModuleAccountByNameResponseAmino; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseSDKType { - account?: ModuleAccountSDKType | AnySDKType | undefined; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequest {} -export interface Bech32PrefixRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; - value: Uint8Array; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestAmino {} -export interface Bech32PrefixRequestAminoMsg { - type: "cosmos-sdk/Bech32PrefixRequest"; - value: Bech32PrefixRequestAmino; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestSDKType {} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponse { - bech32Prefix: string; -} -export interface Bech32PrefixResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; - value: Uint8Array; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseAmino { - bech32_prefix?: string; -} -export interface Bech32PrefixResponseAminoMsg { - type: "cosmos-sdk/Bech32PrefixResponse"; - value: Bech32PrefixResponseAmino; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseSDKType { - bech32_prefix: string; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequest { - addressBytes: Uint8Array; -} -export interface AddressBytesToStringRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; - value: Uint8Array; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestAmino { - address_bytes?: string; -} -export interface AddressBytesToStringRequestAminoMsg { - type: "cosmos-sdk/AddressBytesToStringRequest"; - value: AddressBytesToStringRequestAmino; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestSDKType { - address_bytes: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponse { - addressString: string; -} -export interface AddressBytesToStringResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; - value: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseAmino { - address_string?: string; -} -export interface AddressBytesToStringResponseAminoMsg { - type: "cosmos-sdk/AddressBytesToStringResponse"; - value: AddressBytesToStringResponseAmino; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseSDKType { - address_string: string; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequest { - addressString: string; -} -export interface AddressStringToBytesRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; - value: Uint8Array; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestAmino { - address_string?: string; -} -export interface AddressStringToBytesRequestAminoMsg { - type: "cosmos-sdk/AddressStringToBytesRequest"; - value: AddressStringToBytesRequestAmino; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestSDKType { - address_string: string; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponse { - addressBytes: Uint8Array; -} -export interface AddressStringToBytesResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; - value: Uint8Array; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseAmino { - address_bytes?: string; -} -export interface AddressStringToBytesResponseAminoMsg { - type: "cosmos-sdk/AddressStringToBytesResponse"; - value: AddressStringToBytesResponseAmino; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseSDKType { - address_bytes: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequest { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id: bigint; -} -export interface QueryAccountAddressByIDRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestAmino { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id?: string; -} -export interface QueryAccountAddressByIDRequestAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDRequest"; - value: QueryAccountAddressByIDRequestAmino; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestSDKType { - id: bigint; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponse { - accountAddress: string; -} -export interface QueryAccountAddressByIDResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseAmino { - account_address?: string; -} -export interface QueryAccountAddressByIDResponseAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDResponse"; - value: QueryAccountAddressByIDResponseAmino; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseSDKType { - account_address: string; -} -function createBaseQueryAccountsRequest(): QueryAccountsRequest { - return { - pagination: undefined - }; -} -export const QueryAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - encode(message: QueryAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountsRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAccountsRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAccountsRequest { - const message = createBaseQueryAccountsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest { - const message = createBaseQueryAccountsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest { - return QueryAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAccountsRequest", - value: QueryAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest { - return QueryAccountsRequest.decode(message.value); - }, - toProto(message: QueryAccountsRequest): Uint8Array { - return QueryAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - value: QueryAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountsResponse(): QueryAccountsResponse { - return { - accounts: [], - pagination: undefined - }; -} -export const QueryAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - encode(message: QueryAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.accounts) { - Any.encode((v! as Any), writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push((Any.decode(reader, reader.uint32()) as Any)); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountsResponse { - return { - accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAccountsResponse): unknown { - const obj: any = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.accounts = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAccountsResponse { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => AccountI_FromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino { - const obj: any = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? AccountI_ToAmino((e as Any)) : undefined); - } else { - obj.accounts = message.accounts; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse { - return QueryAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAccountsResponse", - value: QueryAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse { - return QueryAccountsResponse.decode(message.value); - }, - toProto(message: QueryAccountsResponse): Uint8Array { - return QueryAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - value: QueryAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountRequest(): QueryAccountRequest { - return { - address: "" - }; -} -export const QueryAccountRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - encode(message: QueryAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountRequest { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: QueryAccountRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): QueryAccountRequest { - const message = createBaseQueryAccountRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest { - const message = createBaseQueryAccountRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: QueryAccountRequest): QueryAccountRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest { - return QueryAccountRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAccountRequest", - value: QueryAccountRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest { - return QueryAccountRequest.decode(message.value); - }, - toProto(message: QueryAccountRequest): Uint8Array { - return QueryAccountRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - value: QueryAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountResponse(): QueryAccountResponse { - return { - account: undefined - }; -} -export const QueryAccountResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - encode(message: QueryAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.account !== undefined) { - Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = (AccountI_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountResponse { - return { - account: isSet(object.account) ? Any.fromJSON(object.account) : undefined - }; - }, - toJSON(message: QueryAccountResponse): unknown { - const obj: any = {}; - message.account !== undefined && (obj.account = message.account ? Any.toJSON(message.account) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAccountResponse { - const message = createBaseQueryAccountResponse(); - message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse { - const message = createBaseQueryAccountResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = AccountI_FromAmino(object.account); - } - return message; - }, - toAmino(message: QueryAccountResponse): QueryAccountResponseAmino { - const obj: any = {}; - obj.account = message.account ? AccountI_ToAmino((message.account as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse { - return QueryAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAccountResponse", - value: QueryAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse { - return QueryAccountResponse.decode(message.value); - }, - toProto(message: QueryAccountResponse): Uint8Array { - return QueryAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - value: QueryAccountResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsRequest(): QueryModuleAccountsRequest { - return {}; -} -export const QueryModuleAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - encode(_: QueryModuleAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryModuleAccountsRequest { - return {}; - }, - toJSON(_: QueryModuleAccountsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryModuleAccountsRequest { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest { - return QueryModuleAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryModuleAccountsRequest", - value: QueryModuleAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest { - return QueryModuleAccountsRequest.decode(message.value); - }, - toProto(message: QueryModuleAccountsRequest): Uint8Array { - return QueryModuleAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - value: QueryModuleAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsResponse(): QueryModuleAccountsResponse { - return { - accounts: [] - }; -} -export const QueryModuleAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - encode(message: QueryModuleAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.accounts) { - Any.encode((v! as Any), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push((Any.decode(reader, reader.uint32()) as Any)); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryModuleAccountsResponse { - return { - accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryModuleAccountsResponse): unknown { - const obj: any = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.accounts = []; - } - return obj; - }, - fromPartial(object: Partial): QueryModuleAccountsResponse { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => ModuleAccountI_FromAmino(e)) || []; - return message; - }, - toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino { - const obj: any = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? ModuleAccountI_ToAmino((e as Any)) : undefined); - } else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse { - return QueryModuleAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryModuleAccountsResponse", - value: QueryModuleAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse { - return QueryModuleAccountsResponse.decode(message.value); - }, - toProto(message: QueryModuleAccountsResponse): Uint8Array { - return QueryModuleAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - value: QueryModuleAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameRequest(): QueryModuleAccountByNameRequest { - return { - name: "" - }; -} -export const QueryModuleAccountByNameRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - encode(message: QueryModuleAccountByNameRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryModuleAccountByNameRequest { - return { - name: isSet(object.name) ? String(object.name) : "" - }; - }, - toJSON(message: QueryModuleAccountByNameRequest): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - return obj; - }, - fromPartial(object: Partial): QueryModuleAccountByNameRequest { - const message = createBaseQueryModuleAccountByNameRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest { - const message = createBaseQueryModuleAccountByNameRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest { - return QueryModuleAccountByNameRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg { - return { - type: "cosmos-sdk/QueryModuleAccountByNameRequest", - value: QueryModuleAccountByNameRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest { - return QueryModuleAccountByNameRequest.decode(message.value); - }, - toProto(message: QueryModuleAccountByNameRequest): Uint8Array { - return QueryModuleAccountByNameRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - value: QueryModuleAccountByNameRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameResponse(): QueryModuleAccountByNameResponse { - return { - account: undefined - }; -} -export const QueryModuleAccountByNameResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - encode(message: QueryModuleAccountByNameResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.account !== undefined) { - Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = (ModuleAccountI_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryModuleAccountByNameResponse { - return { - account: isSet(object.account) ? Any.fromJSON(object.account) : undefined - }; - }, - toJSON(message: QueryModuleAccountByNameResponse): unknown { - const obj: any = {}; - message.account !== undefined && (obj.account = message.account ? Any.toJSON(message.account) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryModuleAccountByNameResponse { - const message = createBaseQueryModuleAccountByNameResponse(); - message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse { - const message = createBaseQueryModuleAccountByNameResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = ModuleAccountI_FromAmino(object.account); - } - return message; - }, - toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino { - const obj: any = {}; - obj.account = message.account ? ModuleAccountI_ToAmino((message.account as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse { - return QueryModuleAccountByNameResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg { - return { - type: "cosmos-sdk/QueryModuleAccountByNameResponse", - value: QueryModuleAccountByNameResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse { - return QueryModuleAccountByNameResponse.decode(message.value); - }, - toProto(message: QueryModuleAccountByNameResponse): Uint8Array { - return QueryModuleAccountByNameResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - value: QueryModuleAccountByNameResponse.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixRequest(): Bech32PrefixRequest { - return {}; -} -export const Bech32PrefixRequest = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - encode(_: Bech32PrefixRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): Bech32PrefixRequest { - return {}; - }, - toJSON(_: Bech32PrefixRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): Bech32PrefixRequest { - const message = createBaseBech32PrefixRequest(); - return message; - }, - fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest { - const message = createBaseBech32PrefixRequest(); - return message; - }, - toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest { - return Bech32PrefixRequest.fromAmino(object.value); - }, - toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg { - return { - type: "cosmos-sdk/Bech32PrefixRequest", - value: Bech32PrefixRequest.toAmino(message) - }; - }, - fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest { - return Bech32PrefixRequest.decode(message.value); - }, - toProto(message: Bech32PrefixRequest): Uint8Array { - return Bech32PrefixRequest.encode(message).finish(); - }, - toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - value: Bech32PrefixRequest.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixResponse(): Bech32PrefixResponse { - return { - bech32Prefix: "" - }; -} -export const Bech32PrefixResponse = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - encode(message: Bech32PrefixResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bech32Prefix !== "") { - writer.uint32(10).string(message.bech32Prefix); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32Prefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Bech32PrefixResponse { - return { - bech32Prefix: isSet(object.bech32Prefix) ? String(object.bech32Prefix) : "" - }; - }, - toJSON(message: Bech32PrefixResponse): unknown { - const obj: any = {}; - message.bech32Prefix !== undefined && (obj.bech32Prefix = message.bech32Prefix); - return obj; - }, - fromPartial(object: Partial): Bech32PrefixResponse { - const message = createBaseBech32PrefixResponse(); - message.bech32Prefix = object.bech32Prefix ?? ""; - return message; - }, - fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse { - const message = createBaseBech32PrefixResponse(); - if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { - message.bech32Prefix = object.bech32_prefix; - } - return message; - }, - toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino { - const obj: any = {}; - obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; - return obj; - }, - fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse { - return Bech32PrefixResponse.fromAmino(object.value); - }, - toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg { - return { - type: "cosmos-sdk/Bech32PrefixResponse", - value: Bech32PrefixResponse.toAmino(message) - }; - }, - fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse { - return Bech32PrefixResponse.decode(message.value); - }, - toProto(message: Bech32PrefixResponse): Uint8Array { - return Bech32PrefixResponse.encode(message).finish(); - }, - toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - value: Bech32PrefixResponse.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringRequest(): AddressBytesToStringRequest { - return { - addressBytes: new Uint8Array() - }; -} -export const AddressBytesToStringRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - encode(message: AddressBytesToStringRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AddressBytesToStringRequest { - return { - addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array() - }; - }, - toJSON(message: AddressBytesToStringRequest): unknown { - const obj: any = {}; - message.addressBytes !== undefined && (obj.addressBytes = base64FromBytes(message.addressBytes !== undefined ? message.addressBytes : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): AddressBytesToStringRequest { - const message = createBaseAddressBytesToStringRequest(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest { - const message = createBaseAddressBytesToStringRequest(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = bytesFromBase64(object.address_bytes); - } - return message; - }, - toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino { - const obj: any = {}; - obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest { - return AddressBytesToStringRequest.fromAmino(object.value); - }, - toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg { - return { - type: "cosmos-sdk/AddressBytesToStringRequest", - value: AddressBytesToStringRequest.toAmino(message) - }; - }, - fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest { - return AddressBytesToStringRequest.decode(message.value); - }, - toProto(message: AddressBytesToStringRequest): Uint8Array { - return AddressBytesToStringRequest.encode(message).finish(); - }, - toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - value: AddressBytesToStringRequest.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringResponse(): AddressBytesToStringResponse { - return { - addressString: "" - }; -} -export const AddressBytesToStringResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - encode(message: AddressBytesToStringResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AddressBytesToStringResponse { - return { - addressString: isSet(object.addressString) ? String(object.addressString) : "" - }; - }, - toJSON(message: AddressBytesToStringResponse): unknown { - const obj: any = {}; - message.addressString !== undefined && (obj.addressString = message.addressString); - return obj; - }, - fromPartial(object: Partial): AddressBytesToStringResponse { - const message = createBaseAddressBytesToStringResponse(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse { - const message = createBaseAddressBytesToStringResponse(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino { - const obj: any = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse { - return AddressBytesToStringResponse.fromAmino(object.value); - }, - toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg { - return { - type: "cosmos-sdk/AddressBytesToStringResponse", - value: AddressBytesToStringResponse.toAmino(message) - }; - }, - fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse { - return AddressBytesToStringResponse.decode(message.value); - }, - toProto(message: AddressBytesToStringResponse): Uint8Array { - return AddressBytesToStringResponse.encode(message).finish(); - }, - toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - value: AddressBytesToStringResponse.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesRequest(): AddressStringToBytesRequest { - return { - addressString: "" - }; -} -export const AddressStringToBytesRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - encode(message: AddressStringToBytesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AddressStringToBytesRequest { - return { - addressString: isSet(object.addressString) ? String(object.addressString) : "" - }; - }, - toJSON(message: AddressStringToBytesRequest): unknown { - const obj: any = {}; - message.addressString !== undefined && (obj.addressString = message.addressString); - return obj; - }, - fromPartial(object: Partial): AddressStringToBytesRequest { - const message = createBaseAddressStringToBytesRequest(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest { - const message = createBaseAddressStringToBytesRequest(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino { - const obj: any = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest { - return AddressStringToBytesRequest.fromAmino(object.value); - }, - toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg { - return { - type: "cosmos-sdk/AddressStringToBytesRequest", - value: AddressStringToBytesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest { - return AddressStringToBytesRequest.decode(message.value); - }, - toProto(message: AddressStringToBytesRequest): Uint8Array { - return AddressStringToBytesRequest.encode(message).finish(); - }, - toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - value: AddressStringToBytesRequest.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesResponse(): AddressStringToBytesResponse { - return { - addressBytes: new Uint8Array() - }; -} -export const AddressStringToBytesResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - encode(message: AddressStringToBytesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AddressStringToBytesResponse { - return { - addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array() - }; - }, - toJSON(message: AddressStringToBytesResponse): unknown { - const obj: any = {}; - message.addressBytes !== undefined && (obj.addressBytes = base64FromBytes(message.addressBytes !== undefined ? message.addressBytes : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): AddressStringToBytesResponse { - const message = createBaseAddressStringToBytesResponse(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse { - const message = createBaseAddressStringToBytesResponse(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = bytesFromBase64(object.address_bytes); - } - return message; - }, - toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino { - const obj: any = {}; - obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse { - return AddressStringToBytesResponse.fromAmino(object.value); - }, - toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg { - return { - type: "cosmos-sdk/AddressStringToBytesResponse", - value: AddressStringToBytesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse { - return AddressStringToBytesResponse.decode(message.value); - }, - toProto(message: AddressStringToBytesResponse): Uint8Array { - return AddressStringToBytesResponse.encode(message).finish(); - }, - toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - value: AddressStringToBytesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDRequest(): QueryAccountAddressByIDRequest { - return { - id: BigInt(0) - }; -} -export const QueryAccountAddressByIDRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - encode(message: QueryAccountAddressByIDRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).int64(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountAddressByIDRequest { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryAccountAddressByIDRequest): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryAccountAddressByIDRequest { - const message = createBaseQueryAccountAddressByIDRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest { - const message = createBaseQueryAccountAddressByIDRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest { - return QueryAccountAddressByIDRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAccountAddressByIDRequest", - value: QueryAccountAddressByIDRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest { - return QueryAccountAddressByIDRequest.decode(message.value); - }, - toProto(message: QueryAccountAddressByIDRequest): Uint8Array { - return QueryAccountAddressByIDRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - value: QueryAccountAddressByIDRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDResponse(): QueryAccountAddressByIDResponse { - return { - accountAddress: "" - }; -} -export const QueryAccountAddressByIDResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - encode(message: QueryAccountAddressByIDResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.accountAddress !== "") { - writer.uint32(10).string(message.accountAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAccountAddressByIDResponse { - return { - accountAddress: isSet(object.accountAddress) ? String(object.accountAddress) : "" - }; - }, - toJSON(message: QueryAccountAddressByIDResponse): unknown { - const obj: any = {}; - message.accountAddress !== undefined && (obj.accountAddress = message.accountAddress); - return obj; - }, - fromPartial(object: Partial): QueryAccountAddressByIDResponse { - const message = createBaseQueryAccountAddressByIDResponse(); - message.accountAddress = object.accountAddress ?? ""; - return message; - }, - fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse { - const message = createBaseQueryAccountAddressByIDResponse(); - if (object.account_address !== undefined && object.account_address !== null) { - message.accountAddress = object.account_address; - } - return message; - }, - toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino { - const obj: any = {}; - obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; - return obj; - }, - fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse { - return QueryAccountAddressByIDResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAccountAddressByIDResponse", - value: QueryAccountAddressByIDResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse { - return QueryAccountAddressByIDResponse.decode(message.value); - }, - toProto(message: QueryAccountAddressByIDResponse): Uint8Array { - return QueryAccountAddressByIDResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - value: QueryAccountAddressByIDResponse.encode(message).finish() - }; - } -}; -export const AccountI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BaseAccount | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return BaseAccount.decode(data.value); - default: - return data; - } -}; -export const AccountI_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/BaseAccount": - return Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: BaseAccount.encode(BaseAccount.fromPartial(BaseAccount.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const AccountI_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return { - type: "cosmos-sdk/BaseAccount", - value: BaseAccount.toAmino(BaseAccount.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; -export const ModuleAccountI_InterfaceDecoder = (input: BinaryReader | Uint8Array): ModuleAccount | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return ModuleAccount.decode(data.value); - default: - return data; - } -}; -export const ModuleAccountI_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/ModuleAccount": - return Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: ModuleAccount.encode(ModuleAccount.fromPartial(ModuleAccount.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const ModuleAccountI_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return { - type: "cosmos-sdk/ModuleAccount", - value: ModuleAccount.toAmino(ModuleAccount.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts deleted file mode 100644 index f572ecec..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/authz.ts +++ /dev/null @@ -1,582 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; -import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorization { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; - value: Uint8Array; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationAmino { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg?: string; -} -export interface GenericAuthorizationAminoMsg { - type: "cosmos-sdk/GenericAuthorization"; - value: GenericAuthorizationAmino; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationSDKType { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - msg: string; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface Grant { - authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Timestamp; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantAmino { - authorization?: AnyAmino; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: string; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantSDKType { - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: TimestampSDKType; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorization { - granter: string; - grantee: string; - authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; - expiration?: Timestamp; -} -export interface GrantAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; - value: Uint8Array; -} -export type GrantAuthorizationEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationAmino { - granter?: string; - grantee?: string; - authorization?: AnyAmino; - expiration?: string; -} -export interface GrantAuthorizationAminoMsg { - type: "cosmos-sdk/GrantAuthorization"; - value: GrantAuthorizationAmino; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationSDKType { - granter: string; - grantee: string; - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: TimestampSDKType; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItem { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msgTypeUrls: string[]; -} -export interface GrantQueueItemProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; - value: Uint8Array; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemAmino { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msg_type_urls?: string[]; -} -export interface GrantQueueItemAminoMsg { - type: "cosmos-sdk/GrantQueueItem"; - value: GrantQueueItemAmino; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemSDKType { - msg_type_urls: string[]; -} -function createBaseGenericAuthorization(): GenericAuthorization { - return { - $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - msg: "" - }; -} -export const GenericAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - encode(message: GenericAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msg !== "") { - writer.uint32(10).string(message.msg); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenericAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msg = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenericAuthorization { - return { - msg: isSet(object.msg) ? String(object.msg) : "" - }; - }, - toJSON(message: GenericAuthorization): unknown { - const obj: any = {}; - message.msg !== undefined && (obj.msg = message.msg); - return obj; - }, - fromPartial(object: Partial): GenericAuthorization { - const message = createBaseGenericAuthorization(); - message.msg = object.msg ?? ""; - return message; - }, - fromAmino(object: GenericAuthorizationAmino): GenericAuthorization { - const message = createBaseGenericAuthorization(); - if (object.msg !== undefined && object.msg !== null) { - message.msg = object.msg; - } - return message; - }, - toAmino(message: GenericAuthorization): GenericAuthorizationAmino { - const obj: any = {}; - obj.msg = message.msg === "" ? undefined : message.msg; - return obj; - }, - fromAminoMsg(object: GenericAuthorizationAminoMsg): GenericAuthorization { - return GenericAuthorization.fromAmino(object.value); - }, - toAminoMsg(message: GenericAuthorization): GenericAuthorizationAminoMsg { - return { - type: "cosmos-sdk/GenericAuthorization", - value: GenericAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message: GenericAuthorizationProtoMsg): GenericAuthorization { - return GenericAuthorization.decode(message.value); - }, - toProto(message: GenericAuthorization): Uint8Array { - return GenericAuthorization.encode(message).finish(); - }, - toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: GenericAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrant(): Grant { - return { - authorization: undefined, - expiration: undefined - }; -} -export const Grant = { - typeUrl: "/cosmos.authz.v1beta1.Grant", - encode(message: Grant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authorization !== undefined) { - Any.encode((message.authorization as Any), writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Grant { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization = (Authorization_InterfaceDecoder(reader) as Any); - break; - case 2: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Grant { - return { - authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined, - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined - }; - }, - toJSON(message: Grant): unknown { - const obj: any = {}; - message.authorization !== undefined && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined); - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): Grant { - const message = createBaseGrant(); - message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - return message; - }, - fromAmino(object: GrantAmino): Grant { - const message = createBaseGrant(); - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = Authorization_FromAmino(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - return message; - }, - toAmino(message: Grant): GrantAmino { - const obj: any = {}; - obj.authorization = message.authorization ? Authorization_ToAmino((message.authorization as Any)) : undefined; - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - return obj; - }, - fromAminoMsg(object: GrantAminoMsg): Grant { - return Grant.fromAmino(object.value); - }, - toAminoMsg(message: Grant): GrantAminoMsg { - return { - type: "cosmos-sdk/Grant", - value: Grant.toAmino(message) - }; - }, - fromProtoMsg(message: GrantProtoMsg): Grant { - return Grant.decode(message.value); - }, - toProto(message: Grant): Uint8Array { - return Grant.encode(message).finish(); - }, - toProtoMsg(message: Grant): GrantProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.Grant", - value: Grant.encode(message).finish() - }; - } -}; -function createBaseGrantAuthorization(): GrantAuthorization { - return { - granter: "", - grantee: "", - authorization: undefined, - expiration: undefined - }; -} -export const GrantAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - encode(message: GrantAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.authorization !== undefined) { - Any.encode((message.authorization as Any), writer.uint32(26).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.authorization = (Authorization_InterfaceDecoder(reader) as Any); - break; - case 4: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GrantAuthorization { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined, - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined - }; - }, - toJSON(message: GrantAuthorization): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.authorization !== undefined && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined); - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): GrantAuthorization { - const message = createBaseGrantAuthorization(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - return message; - }, - fromAmino(object: GrantAuthorizationAmino): GrantAuthorization { - const message = createBaseGrantAuthorization(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = Authorization_FromAmino(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - return message; - }, - toAmino(message: GrantAuthorization): GrantAuthorizationAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.authorization = message.authorization ? Authorization_ToAmino((message.authorization as Any)) : undefined; - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - return obj; - }, - fromAminoMsg(object: GrantAuthorizationAminoMsg): GrantAuthorization { - return GrantAuthorization.fromAmino(object.value); - }, - toAminoMsg(message: GrantAuthorization): GrantAuthorizationAminoMsg { - return { - type: "cosmos-sdk/GrantAuthorization", - value: GrantAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message: GrantAuthorizationProtoMsg): GrantAuthorization { - return GrantAuthorization.decode(message.value); - }, - toProto(message: GrantAuthorization): Uint8Array { - return GrantAuthorization.encode(message).finish(); - }, - toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - value: GrantAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrantQueueItem(): GrantQueueItem { - return { - msgTypeUrls: [] - }; -} -export const GrantQueueItem = { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - encode(message: GrantQueueItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.msgTypeUrls) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantQueueItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrls.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GrantQueueItem { - return { - msgTypeUrls: Array.isArray(object?.msgTypeUrls) ? object.msgTypeUrls.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: GrantQueueItem): unknown { - const obj: any = {}; - if (message.msgTypeUrls) { - obj.msgTypeUrls = message.msgTypeUrls.map(e => e); - } else { - obj.msgTypeUrls = []; - } - return obj; - }, - fromPartial(object: Partial): GrantQueueItem { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; - return message; - }, - fromAmino(object: GrantQueueItemAmino): GrantQueueItem { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; - return message; - }, - toAmino(message: GrantQueueItem): GrantQueueItemAmino { - const obj: any = {}; - if (message.msgTypeUrls) { - obj.msg_type_urls = message.msgTypeUrls.map(e => e); - } else { - obj.msg_type_urls = message.msgTypeUrls; - } - return obj; - }, - fromAminoMsg(object: GrantQueueItemAminoMsg): GrantQueueItem { - return GrantQueueItem.fromAmino(object.value); - }, - toAminoMsg(message: GrantQueueItem): GrantQueueItemAminoMsg { - return { - type: "cosmos-sdk/GrantQueueItem", - value: GrantQueueItem.toAmino(message) - }; - }, - fromProtoMsg(message: GrantQueueItemProtoMsg): GrantQueueItem { - return GrantQueueItem.decode(message.value); - }, - toProto(message: GrantQueueItem): Uint8Array { - return GrantQueueItem.encode(message).finish(); - }, - toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - value: GrantQueueItem.encode(message).finish() - }; - } -}; -export const Authorization_InterfaceDecoder = (input: BinaryReader | Uint8Array): GenericAuthorization | SendAuthorization | StakeAuthorization | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return GenericAuthorization.decode(data.value); - case "/cosmos.bank.v1beta1.SendAuthorization": - return SendAuthorization.decode(data.value); - case "/cosmos.staking.v1beta1.StakeAuthorization": - return StakeAuthorization.decode(data.value); - default: - return data; - } -}; -export const Authorization_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/GenericAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: GenericAuthorization.encode(GenericAuthorization.fromPartial(GenericAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/SendAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: SendAuthorization.encode(SendAuthorization.fromPartial(SendAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/StakeAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: StakeAuthorization.encode(StakeAuthorization.fromPartial(StakeAuthorization.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Authorization_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return { - type: "cosmos-sdk/GenericAuthorization", - value: GenericAuthorization.toAmino(GenericAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.bank.v1beta1.SendAuthorization": - return { - type: "cosmos-sdk/SendAuthorization", - value: SendAuthorization.toAmino(SendAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.staking.v1beta1.StakeAuthorization": - return { - type: "cosmos-sdk/StakeAuthorization", - value: StakeAuthorization.toAmino(StakeAuthorization.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/event.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/event.ts deleted file mode 100644 index cdf6602d..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/event.ts +++ /dev/null @@ -1,280 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrant { - /** Msg type URL for which an autorization is granted */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventGrant"; - value: Uint8Array; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantAmino { - /** Msg type URL for which an autorization is granted */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventGrantAminoMsg { - type: "cosmos-sdk/EventGrant"; - value: EventGrantAmino; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevoke { - /** Msg type URL for which an autorization is revoked */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; - value: Uint8Array; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeAmino { - /** Msg type URL for which an autorization is revoked */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventRevokeAminoMsg { - type: "cosmos-sdk/EventRevoke"; - value: EventRevokeAmino; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -function createBaseEventGrant(): EventGrant { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -export const EventGrant = { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - encode(message: EventGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventGrant { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventGrant { - return { - msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "", - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "" - }; - }, - toJSON(message: EventGrant): unknown { - const obj: any = {}; - message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl); - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - return obj; - }, - fromPartial(object: Partial): EventGrant { - const message = createBaseEventGrant(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object: EventGrantAmino): EventGrant { - const message = createBaseEventGrant(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message: EventGrant): EventGrantAmino { - const obj: any = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object: EventGrantAminoMsg): EventGrant { - return EventGrant.fromAmino(object.value); - }, - toAminoMsg(message: EventGrant): EventGrantAminoMsg { - return { - type: "cosmos-sdk/EventGrant", - value: EventGrant.toAmino(message) - }; - }, - fromProtoMsg(message: EventGrantProtoMsg): EventGrant { - return EventGrant.decode(message.value); - }, - toProto(message: EventGrant): Uint8Array { - return EventGrant.encode(message).finish(); - }, - toProtoMsg(message: EventGrant): EventGrantProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - value: EventGrant.encode(message).finish() - }; - } -}; -function createBaseEventRevoke(): EventRevoke { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -export const EventRevoke = { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - encode(message: EventRevoke, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventRevoke { - return { - msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "", - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "" - }; - }, - toJSON(message: EventRevoke): unknown { - const obj: any = {}; - message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl); - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - return obj; - }, - fromPartial(object: Partial): EventRevoke { - const message = createBaseEventRevoke(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object: EventRevokeAmino): EventRevoke { - const message = createBaseEventRevoke(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message: EventRevoke): EventRevokeAmino { - const obj: any = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke { - return EventRevoke.fromAmino(object.value); - }, - toAminoMsg(message: EventRevoke): EventRevokeAminoMsg { - return { - type: "cosmos-sdk/EventRevoke", - value: EventRevoke.toAmino(message) - }; - }, - fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke { - return EventRevoke.decode(message.value); - }, - toProto(message: EventRevoke): Uint8Array { - return EventRevoke.encode(message).finish(); - }, - toProtoMsg(message: EventRevoke): EventRevokeProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - value: EventRevoke.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/genesis.ts deleted file mode 100644 index 2162ab34..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/genesis.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisState { - authorization: GrantAuthorization[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateAmino { - authorization?: GrantAuthorizationAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateSDKType { - authorization: GrantAuthorizationSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - authorization: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.authorization) { - GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - authorization: Array.isArray(object?.authorization) ? object.authorization.map((e: any) => GrantAuthorization.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.authorization) { - obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toJSON(e) : undefined); - } else { - obj.authorization = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => GrantAuthorization.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => GrantAuthorization.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.authorization) { - obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } else { - obj.authorization = message.authorization; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/query.lcd.ts deleted file mode 100644 index e5699e32..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - /* Returns list of `Authorization`, granted to the grantee by the granter. */ - async grants(params: QueryGrantsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.granter !== "undefined") { - options.params.granter = params.granter; - } - if (typeof params?.grantee !== "undefined") { - options.params.grantee = params.grantee; - } - if (typeof params?.msgTypeUrl !== "undefined") { - options.params.msg_type_url = params.msgTypeUrl; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants`; - return await this.req.get(endpoint, options); - } - /* GranterGrants returns list of `GrantAuthorization`, granted by granter. - - Since: cosmos-sdk 0.46 */ - async granterGrants(params: QueryGranterGrantsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; - return await this.req.get(endpoint, options); - } - /* GranteeGrants returns a list of `GrantAuthorization` by grantee. - - Since: cosmos-sdk 0.46 */ - async granteeGrants(params: QueryGranteeGrantsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts deleted file mode 100644 index f42a05d8..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Returns list of `Authorization`, granted to the grantee by the granter. */ - grants(request: QueryGrantsRequest): Promise; - /** - * GranterGrants returns list of `GrantAuthorization`, granted by granter. - * - * Since: cosmos-sdk 0.46 - */ - granterGrants(request: QueryGranterGrantsRequest): Promise; - /** - * GranteeGrants returns a list of `GrantAuthorization` by grantee. - * - * Since: cosmos-sdk 0.46 - */ - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - grants(request: QueryGrantsRequest): Promise { - const data = QueryGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); - return promise.then(data => QueryGrantsResponse.decode(new BinaryReader(data))); - } - granterGrants(request: QueryGranterGrantsRequest): Promise { - const data = QueryGranterGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); - return promise.then(data => QueryGranterGrantsResponse.decode(new BinaryReader(data))); - } - granteeGrants(request: QueryGranteeGrantsRequest): Promise { - const data = QueryGranteeGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); - return promise.then(data => QueryGranteeGrantsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - grants(request: QueryGrantsRequest): Promise { - return queryService.grants(request); - }, - granterGrants(request: QueryGranterGrantsRequest): Promise { - return queryService.granterGrants(request); - }, - granteeGrants(request: QueryGranteeGrantsRequest): Promise { - return queryService.granteeGrants(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/query.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/query.ts deleted file mode 100644 index 99645180..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/query.ts +++ /dev/null @@ -1,772 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequest { - granter: string; - grantee: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msgTypeUrl: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; - value: Uint8Array; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestAmino { - granter?: string; - grantee?: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msg_type_url?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGrantsRequest"; - value: QueryGrantsRequestAmino; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestSDKType { - granter: string; - grantee: string; - msg_type_url: string; - pagination?: PageRequestSDKType; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponse { - /** authorizations is a list of grants granted for grantee by granter. */ - grants: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; - value: Uint8Array; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseAmino { - /** authorizations is a list of grants granted for grantee by granter. */ - grants?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGrantsResponse"; - value: QueryGrantsResponseAmino; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseSDKType { - grants: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranterGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; - value: Uint8Array; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranterGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsRequest"; - value: QueryGranterGrantsRequestAmino; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponse { - /** grants is a list of grants granted by the granter. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranterGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; - value: Uint8Array; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseAmino { - /** grants is a list of grants granted by the granter. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranterGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsResponse"; - value: QueryGranterGrantsResponseAmino; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranteeGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; - value: Uint8Array; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranteeGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsRequest"; - value: QueryGranteeGrantsRequestAmino; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponse { - /** grants is a list of grants granted to the grantee. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranteeGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; - value: Uint8Array; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseAmino { - /** grants is a list of grants granted to the grantee. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranteeGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsResponse"; - value: QueryGranteeGrantsResponseAmino; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryGrantsRequest(): QueryGrantsRequest { - return { - granter: "", - grantee: "", - msgTypeUrl: "", - pagination: undefined - }; -} -export const QueryGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - encode(message: QueryGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGrantsRequest { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGrantsRequest): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGrantsRequest { - const message = createBaseQueryGrantsRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest { - const message = createBaseQueryGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest { - return QueryGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGrantsRequest", - value: QueryGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest { - return QueryGrantsRequest.decode(message.value); - }, - toProto(message: QueryGrantsRequest): Uint8Array { - return QueryGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - value: QueryGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGrantsResponse(): QueryGrantsResponse { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - encode(message: QueryGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.grants) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGrantsResponse { - return { - grants: Array.isArray(object?.grants) ? object.grants.map((e: any) => Grant.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGrantsResponse): unknown { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? Grant.toJSON(e) : undefined); - } else { - obj.grants = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGrantsResponse { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? Grant.toAmino(e) : undefined); - } else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse { - return QueryGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGrantsResponse", - value: QueryGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse { - return QueryGrantsResponse.decode(message.value); - }, - toProto(message: QueryGrantsResponse): Uint8Array { - return QueryGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - value: QueryGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsRequest(): QueryGranterGrantsRequest { - return { - granter: "", - pagination: undefined - }; -} -export const QueryGranterGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - encode(message: QueryGranterGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGranterGrantsRequest { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGranterGrantsRequest): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGranterGrantsRequest { - const message = createBaseQueryGranterGrantsRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest { - const message = createBaseQueryGranterGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest { - return QueryGranterGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGranterGrantsRequest", - value: QueryGranterGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest { - return QueryGranterGrantsRequest.decode(message.value); - }, - toProto(message: QueryGranterGrantsRequest): Uint8Array { - return QueryGranterGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - value: QueryGranterGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsResponse(): QueryGranterGrantsResponse { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGranterGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - encode(message: QueryGranterGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.grants) { - GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGranterGrantsResponse { - return { - grants: Array.isArray(object?.grants) ? object.grants.map((e: any) => GrantAuthorization.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGranterGrantsResponse): unknown { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toJSON(e) : undefined); - } else { - obj.grants = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGranterGrantsResponse { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse { - return QueryGranterGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGranterGrantsResponse", - value: QueryGranterGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse { - return QueryGranterGrantsResponse.decode(message.value); - }, - toProto(message: QueryGranterGrantsResponse): Uint8Array { - return QueryGranterGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - value: QueryGranterGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsRequest(): QueryGranteeGrantsRequest { - return { - grantee: "", - pagination: undefined - }; -} -export const QueryGranteeGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - encode(message: QueryGranteeGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGranteeGrantsRequest { - return { - grantee: isSet(object.grantee) ? String(object.grantee) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGranteeGrantsRequest): unknown { - const obj: any = {}; - message.grantee !== undefined && (obj.grantee = message.grantee); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGranteeGrantsRequest { - const message = createBaseQueryGranteeGrantsRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest { - const message = createBaseQueryGranteeGrantsRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino { - const obj: any = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest { - return QueryGranteeGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGranteeGrantsRequest", - value: QueryGranteeGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest { - return QueryGranteeGrantsRequest.decode(message.value); - }, - toProto(message: QueryGranteeGrantsRequest): Uint8Array { - return QueryGranteeGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - value: QueryGranteeGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsResponse(): QueryGranteeGrantsResponse { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGranteeGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - encode(message: QueryGranteeGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.grants) { - GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGranteeGrantsResponse { - return { - grants: Array.isArray(object?.grants) ? object.grants.map((e: any) => GrantAuthorization.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGranteeGrantsResponse): unknown { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toJSON(e) : undefined); - } else { - obj.grants = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGranteeGrantsResponse { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino { - const obj: any = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse { - return QueryGranteeGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGranteeGrantsResponse", - value: QueryGranteeGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse { - return QueryGranteeGrantsResponse.decode(message.value); - }, - toProto(message: QueryGranteeGrantsResponse): Uint8Array { - return QueryGranteeGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - value: QueryGranteeGrantsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/tx.amino.ts deleted file mode 100644 index dce86d05..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +++ /dev/null @@ -1,19 +0,0 @@ -//@ts-nocheck -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export const AminoConverter = { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: "cosmos-sdk/MsgGrant", - toAmino: MsgGrant.toAmino, - fromAmino: MsgGrant.fromAmino - }, - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: "cosmos-sdk/MsgExec", - toAmino: MsgExec.toAmino, - fromAmino: MsgExec.fromAmino - }, - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: "cosmos-sdk/MsgRevoke", - toAmino: MsgRevoke.toAmino, - fromAmino: MsgRevoke.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/tx.registry.ts deleted file mode 100644 index d4520627..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - grant(value: MsgGrant) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.encode(value).finish() - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.encode(value).finish() - }; - }, - revoke(value: MsgRevoke) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.encode(value).finish() - }; - } - }, - withTypeUrl: { - grant(value: MsgGrant) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value - }; - }, - revoke(value: MsgRevoke) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value - }; - } - }, - toJSON: { - grant(value: MsgGrant) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.toJSON(value) - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.toJSON(value) - }; - }, - revoke(value: MsgRevoke) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.toJSON(value) - }; - } - }, - fromJSON: { - grant(value: any) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.fromJSON(value) - }; - }, - exec(value: any) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.fromJSON(value) - }; - }, - revoke(value: any) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.fromJSON(value) - }; - } - }, - fromPartial: { - grant(value: MsgGrant) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.fromPartial(value) - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.fromPartial(value) - }; - }, - revoke(value: MsgRevoke) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 4f5bb4ee..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; -/** Msg defines the authz Msg service. */ -export interface Msg { - /** - * Grant grants the provided authorization to the grantee on the granter's - * account with the provided expiration time. If there is already a grant - * for the given (granter, grantee, Authorization) triple, then the grant - * will be overwritten. - */ - grant(request: MsgGrant): Promise; - /** - * Exec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ - exec(request: MsgExec): Promise; - /** - * Revoke revokes any authorization corresponding to the provided method name on the - * granter's account that has been granted to the grantee. - */ - revoke(request: MsgRevoke): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.grant = this.grant.bind(this); - this.exec = this.exec.bind(this); - this.revoke = this.revoke.bind(this); - } - grant(request: MsgGrant): Promise { - const data = MsgGrant.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); - return promise.then(data => MsgGrantResponse.decode(new BinaryReader(data))); - } - exec(request: MsgExec): Promise { - const data = MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); - return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); - } - revoke(request: MsgRevoke): Promise { - const data = MsgRevoke.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); - return promise.then(data => MsgRevokeResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/authz/v1beta1/tx.ts deleted file mode 100644 index 6b4b9c57..00000000 --- a/packages/api/src/codegen/cosmos/authz/v1beta1/tx.ts +++ /dev/null @@ -1,727 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./authz"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrant { - granter: string; - grantee: string; - grant: Grant; -} -export interface MsgGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; - value: Uint8Array; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantAmino { - granter?: string; - grantee?: string; - grant?: GrantAmino; -} -export interface MsgGrantAminoMsg { - type: "cosmos-sdk/MsgGrant"; - value: MsgGrantAmino; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantSDKType { - granter: string; - grantee: string; - grant: GrantSDKType; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponse { - results: Uint8Array[]; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseAmino { - results?: string[]; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseSDKType { - results: Uint8Array[]; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExec { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (Any)[] | Any[]; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExec"; - value: Uint8Array; -} -export type MsgExecEncoded = Omit & { - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (AnyProtoMsg)[]; -}; -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecAmino { - grantee?: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs?: AnyAmino[]; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/MsgExec"; - value: MsgExecAmino; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecSDKType { - grantee: string; - msgs: (AnySDKType)[]; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponse {} -export interface MsgGrantResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; - value: Uint8Array; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseAmino {} -export interface MsgGrantResponseAminoMsg { - type: "cosmos-sdk/MsgGrantResponse"; - value: MsgGrantResponseAmino; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseSDKType {} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevoke { - granter: string; - grantee: string; - msgTypeUrl: string; -} -export interface MsgRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; - value: Uint8Array; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeAmino { - granter?: string; - grantee?: string; - msg_type_url?: string; -} -export interface MsgRevokeAminoMsg { - type: "cosmos-sdk/MsgRevoke"; - value: MsgRevokeAmino; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeSDKType { - granter: string; - grantee: string; - msg_type_url: string; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponse {} -export interface MsgRevokeResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; - value: Uint8Array; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseAmino {} -export interface MsgRevokeResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeResponse"; - value: MsgRevokeResponseAmino; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseSDKType {} -function createBaseMsgGrant(): MsgGrant { - return { - granter: "", - grantee: "", - grant: Grant.fromPartial({}) - }; -} -export const MsgGrant = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - encode(message: MsgGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.grant !== undefined) { - Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.grant = Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgGrant { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - grant: isSet(object.grant) ? Grant.fromJSON(object.grant) : undefined - }; - }, - toJSON(message: MsgGrant): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.grant !== undefined && (obj.grant = message.grant ? Grant.toJSON(message.grant) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgGrant { - const message = createBaseMsgGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.grant = object.grant !== undefined && object.grant !== null ? Grant.fromPartial(object.grant) : undefined; - return message; - }, - fromAmino(object: MsgGrantAmino): MsgGrant { - const message = createBaseMsgGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.grant !== undefined && object.grant !== null) { - message.grant = Grant.fromAmino(object.grant); - } - return message; - }, - toAmino(message: MsgGrant): MsgGrantAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.grant = message.grant ? Grant.toAmino(message.grant) : undefined; - return obj; - }, - fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant { - return MsgGrant.fromAmino(object.value); - }, - toAminoMsg(message: MsgGrant): MsgGrantAminoMsg { - return { - type: "cosmos-sdk/MsgGrant", - value: MsgGrant.toAmino(message) - }; - }, - fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant { - return MsgGrant.decode(message.value); - }, - toProto(message: MsgGrant): Uint8Array { - return MsgGrant.encode(message).finish(); - }, - toProtoMsg(message: MsgGrant): MsgGrantProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse(): MsgExecResponse { - return { - results: [] - }; -} -export const MsgExecResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.results) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.results.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgExecResponse { - return { - results: Array.isArray(object?.results) ? object.results.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: MsgExecResponse): unknown { - const obj: any = {}; - if (message.results) { - obj.results = message.results.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.results = []; - } - return obj; - }, - fromPartial(object: Partial): MsgExecResponse { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => e) || []; - return message; - }, - fromAmino(object: MsgExecResponseAmino): MsgExecResponse { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: MsgExecResponse): MsgExecResponseAmino { - const obj: any = {}; - if (message.results) { - obj.results = message.results.map(e => base64FromBytes(e)); - } else { - obj.results = message.results; - } - return obj; - }, - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse { - return MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg { - return { - type: "cosmos-sdk/MsgExecResponse", - value: MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse { - return MsgExecResponse.decode(message.value); - }, - toProto(message: MsgExecResponse): Uint8Array { - return MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - value: MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec(): MsgExec { - return { - grantee: "", - msgs: [] - }; -} -export const MsgExec = { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - for (const v of message.msgs) { - Any.encode((v! as Any), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.msgs.push((Any.decode(reader, reader.uint32()) as Any)); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgExec { - return { - grantee: isSet(object.grantee) ? String(object.grantee) : "", - msgs: Array.isArray(object?.msgs) ? object.msgs.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgExec): unknown { - const obj: any = {}; - message.grantee !== undefined && (obj.grantee = message.grantee); - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.msgs = []; - } - return obj; - }, - fromPartial(object: Partial): MsgExec { - const message = createBaseMsgExec(); - message.grantee = object.grantee ?? ""; - message.msgs = object.msgs?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgExecAmino): MsgExec { - const message = createBaseMsgExec(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; - return message; - }, - toAmino(message: MsgExec): MsgExecAmino { - const obj: any = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino((e as Any)) : undefined); - } else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object: MsgExecAminoMsg): MsgExec { - return MsgExec.fromAmino(object.value); - }, - toAminoMsg(message: MsgExec): MsgExecAminoMsg { - return { - type: "cosmos-sdk/MsgExec", - value: MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecProtoMsg): MsgExec { - return MsgExec.decode(message.value); - }, - toProto(message: MsgExec): Uint8Array { - return MsgExec.encode(message).finish(); - }, - toProtoMsg(message: MsgExec): MsgExecProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgGrantResponse(): MsgGrantResponse { - return {}; -} -export const MsgGrantResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - encode(_: MsgGrantResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgGrantResponse { - return {}; - }, - toJSON(_: MsgGrantResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgGrantResponse { - const message = createBaseMsgGrantResponse(); - return message; - }, - fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse { - const message = createBaseMsgGrantResponse(); - return message; - }, - toAmino(_: MsgGrantResponse): MsgGrantResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse { - return MsgGrantResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg { - return { - type: "cosmos-sdk/MsgGrantResponse", - value: MsgGrantResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse { - return MsgGrantResponse.decode(message.value); - }, - toProto(message: MsgGrantResponse): Uint8Array { - return MsgGrantResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - value: MsgGrantResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevoke(): MsgRevoke { - return { - granter: "", - grantee: "", - msgTypeUrl: "" - }; -} -export const MsgRevoke = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - encode(message: MsgRevoke, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRevoke { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "" - }; - }, - toJSON(message: MsgRevoke): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl); - return obj; - }, - fromPartial(object: Partial): MsgRevoke { - const message = createBaseMsgRevoke(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object: MsgRevokeAmino): MsgRevoke { - const message = createBaseMsgRevoke(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message: MsgRevoke): MsgRevokeAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke { - return MsgRevoke.fromAmino(object.value); - }, - toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg { - return { - type: "cosmos-sdk/MsgRevoke", - value: MsgRevoke.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke { - return MsgRevoke.decode(message.value); - }, - toProto(message: MsgRevoke): Uint8Array { - return MsgRevoke.encode(message).finish(); - }, - toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeResponse(): MsgRevokeResponse { - return {}; -} -export const MsgRevokeResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - encode(_: MsgRevokeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRevokeResponse { - return {}; - }, - toJSON(_: MsgRevokeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRevokeResponse { - const message = createBaseMsgRevokeResponse(); - return message; - }, - fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse { - const message = createBaseMsgRevokeResponse(); - return message; - }, - toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse { - return MsgRevokeResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg { - return { - type: "cosmos-sdk/MsgRevokeResponse", - value: MsgRevokeResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse { - return MsgRevokeResponse.decode(message.value); - }, - toProto(message: MsgRevokeResponse): Uint8Array { - return MsgRevokeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - value: MsgRevokeResponse.encode(message).finish() - }; - } -}; -export const Sdk_Msg_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Sdk_Msg_FromAmino = (content: AnyAmino): Any => { - return Any.fromAmino(content); -}; -export const Sdk_Msg_ToAmino = (content: Any) => { - return Any.toAmino(content); -}; -export const Authz_Authorization_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Authz_Authorization_FromAmino = (content: AnyAmino): Any => { - return Any.fromAmino(content); -}; -export const Authz_Authorization_ToAmino = (content: Any) => { - return Any.toAmino(content); -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/authz.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/authz.ts deleted file mode 100644 index 91031a6a..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/authz.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorization { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spendLimit: Coin[]; -} -export interface SendAuthorizationProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; - value: Uint8Array; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationAmino { - spend_limit?: CoinAmino[]; -} -export interface SendAuthorizationAminoMsg { - type: "cosmos-sdk/SendAuthorization"; - value: SendAuthorizationAmino; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationSDKType { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spend_limit: CoinSDKType[]; -} -function createBaseSendAuthorization(): SendAuthorization { - return { - $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - spendLimit: [] - }; -} -export const SendAuthorization = { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - encode(message: SendAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.spendLimit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SendAuthorization { - return { - spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: SendAuthorization): unknown { - const obj: any = {}; - if (message.spendLimit) { - obj.spendLimit = message.spendLimit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.spendLimit = []; - } - return obj; - }, - fromPartial(object: Partial): SendAuthorization { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SendAuthorizationAmino): SendAuthorization { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: SendAuthorization): SendAuthorizationAmino { - const obj: any = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.spend_limit = message.spendLimit; - } - return obj; - }, - fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization { - return SendAuthorization.fromAmino(object.value); - }, - toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg { - return { - type: "cosmos-sdk/SendAuthorization", - value: SendAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization { - return SendAuthorization.decode(message.value); - }, - toProto(message: SendAuthorization): Uint8Array { - return SendAuthorization.encode(message).finish(); - }, - toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: SendAuthorization.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/bank.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/bank.ts deleted file mode 100644 index 40b19057..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/bank.ts +++ /dev/null @@ -1,1072 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** Params defines the parameters for the bank module. */ -export interface Params { - sendEnabled: SendEnabled[]; - defaultSendEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsAmino { - send_enabled?: SendEnabledAmino[]; - default_send_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsSDKType { - send_enabled: SendEnabledSDKType[]; - default_send_enabled: boolean; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabled { - denom: string; - enabled: boolean; -} -export interface SendEnabledProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; - value: Uint8Array; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledAmino { - denom?: string; - enabled?: boolean; -} -export interface SendEnabledAminoMsg { - type: "cosmos-sdk/SendEnabled"; - value: SendEnabledAmino; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledSDKType { - denom: string; - enabled: boolean; -} -/** Input models transaction input. */ -export interface Input { - address: string; - coins: Coin[]; -} -export interface InputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Input"; - value: Uint8Array; -} -/** Input models transaction input. */ -export interface InputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface InputAminoMsg { - type: "cosmos-sdk/Input"; - value: InputAmino; -} -/** Input models transaction input. */ -export interface InputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** Output models transaction outputs. */ -export interface Output { - address: string; - coins: Coin[]; -} -export interface OutputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Output"; - value: Uint8Array; -} -/** Output models transaction outputs. */ -export interface OutputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface OutputAminoMsg { - type: "cosmos-sdk/Output"; - value: OutputAmino; -} -/** Output models transaction outputs. */ -export interface OutputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface Supply { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: Coin[]; -} -export interface SupplyProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Supply"; - value: Uint8Array; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplyAmino { - total?: CoinAmino[]; -} -export interface SupplyAminoMsg { - type: "cosmos-sdk/Supply"; - value: SupplyAmino; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplySDKType { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: CoinSDKType[]; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; - value: Uint8Array; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitAmino { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; -} -export interface DenomUnitAminoMsg { - type: "cosmos-sdk/DenomUnit"; - value: DenomUnitAmino; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitSDKType { - denom: string; - exponent: number; - aliases: string[]; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface Metadata { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denomUnits: DenomUnit[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uriHash: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Metadata"; - value: Uint8Array; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataAmino { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: DenomUnitAmino[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name?: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol?: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri?: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri_hash?: string; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataSDKType { - description: string; - denom_units: DenomUnitSDKType[]; - base: string; - display: string; - name: string; - symbol: string; - uri: string; - uri_hash: string; -} -function createBaseParams(): Params { - return { - sendEnabled: [], - defaultSendEnabled: false - }; -} -export const Params = { - typeUrl: "/cosmos.bank.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.sendEnabled) { - SendEnabled.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultSendEnabled === true) { - writer.uint32(16).bool(message.defaultSendEnabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32())); - break; - case 2: - message.defaultSendEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - sendEnabled: Array.isArray(object?.sendEnabled) ? object.sendEnabled.map((e: any) => SendEnabled.fromJSON(e)) : [], - defaultSendEnabled: isSet(object.defaultSendEnabled) ? Boolean(object.defaultSendEnabled) : false - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - if (message.sendEnabled) { - obj.sendEnabled = message.sendEnabled.map(e => e ? SendEnabled.toJSON(e) : undefined); - } else { - obj.sendEnabled = []; - } - message.defaultSendEnabled !== undefined && (obj.defaultSendEnabled = message.defaultSendEnabled); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || []; - message.defaultSendEnabled = object.defaultSendEnabled ?? false; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || []; - if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { - message.defaultSendEnabled = object.default_send_enabled; - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - if (message.sendEnabled) { - obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined); - } else { - obj.send_enabled = message.sendEnabled; - } - obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseSendEnabled(): SendEnabled { - return { - denom: "", - enabled: false - }; -} -export const SendEnabled = { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - encode(message: SendEnabled, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendEnabled(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SendEnabled { - return { - denom: isSet(object.denom) ? String(object.denom) : "", - enabled: isSet(object.enabled) ? Boolean(object.enabled) : false - }; - }, - toJSON(message: SendEnabled): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - message.enabled !== undefined && (obj.enabled = message.enabled); - return obj; - }, - fromPartial(object: Partial): SendEnabled { - const message = createBaseSendEnabled(); - message.denom = object.denom ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object: SendEnabledAmino): SendEnabled { - const message = createBaseSendEnabled(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message: SendEnabled): SendEnabledAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled { - return SendEnabled.fromAmino(object.value); - }, - toAminoMsg(message: SendEnabled): SendEnabledAminoMsg { - return { - type: "cosmos-sdk/SendEnabled", - value: SendEnabled.toAmino(message) - }; - }, - fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled { - return SendEnabled.decode(message.value); - }, - toProto(message: SendEnabled): Uint8Array { - return SendEnabled.encode(message).finish(); - }, - toProtoMsg(message: SendEnabled): SendEnabledProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - value: SendEnabled.encode(message).finish() - }; - } -}; -function createBaseInput(): Input { - return { - address: "", - coins: [] - }; -} -export const Input = { - typeUrl: "/cosmos.bank.v1beta1.Input", - encode(message: Input, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Input { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Input { - return { - address: isSet(object.address) ? String(object.address) : "", - coins: Array.isArray(object?.coins) ? object.coins.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Input): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.coins = []; - } - return obj; - }, - fromPartial(object: Partial): Input { - const message = createBaseInput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: InputAmino): Input { - const message = createBaseInput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Input): InputAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object: InputAminoMsg): Input { - return Input.fromAmino(object.value); - }, - toAminoMsg(message: Input): InputAminoMsg { - return { - type: "cosmos-sdk/Input", - value: Input.toAmino(message) - }; - }, - fromProtoMsg(message: InputProtoMsg): Input { - return Input.decode(message.value); - }, - toProto(message: Input): Uint8Array { - return Input.encode(message).finish(); - }, - toProtoMsg(message: Input): InputProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Input", - value: Input.encode(message).finish() - }; - } -}; -function createBaseOutput(): Output { - return { - address: "", - coins: [] - }; -} -export const Output = { - typeUrl: "/cosmos.bank.v1beta1.Output", - encode(message: Output, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Output { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOutput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Output { - return { - address: isSet(object.address) ? String(object.address) : "", - coins: Array.isArray(object?.coins) ? object.coins.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Output): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.coins = []; - } - return obj; - }, - fromPartial(object: Partial): Output { - const message = createBaseOutput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: OutputAmino): Output { - const message = createBaseOutput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Output): OutputAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object: OutputAminoMsg): Output { - return Output.fromAmino(object.value); - }, - toAminoMsg(message: Output): OutputAminoMsg { - return { - type: "cosmos-sdk/Output", - value: Output.toAmino(message) - }; - }, - fromProtoMsg(message: OutputProtoMsg): Output { - return Output.decode(message.value); - }, - toProto(message: Output): Uint8Array { - return Output.encode(message).finish(); - }, - toProtoMsg(message: Output): OutputProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Output", - value: Output.encode(message).finish() - }; - } -}; -function createBaseSupply(): Supply { - return { - $typeUrl: "/cosmos.bank.v1beta1.Supply", - total: [] - }; -} -export const Supply = { - typeUrl: "/cosmos.bank.v1beta1.Supply", - encode(message: Supply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.total) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Supply { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Supply { - return { - total: Array.isArray(object?.total) ? object.total.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Supply): unknown { - const obj: any = {}; - if (message.total) { - obj.total = message.total.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.total = []; - } - return obj; - }, - fromPartial(object: Partial): Supply { - const message = createBaseSupply(); - message.total = object.total?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SupplyAmino): Supply { - const message = createBaseSupply(); - message.total = object.total?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Supply): SupplyAmino { - const obj: any = {}; - if (message.total) { - obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object: SupplyAminoMsg): Supply { - return Supply.fromAmino(object.value); - }, - toAminoMsg(message: Supply): SupplyAminoMsg { - return { - type: "cosmos-sdk/Supply", - value: Supply.toAmino(message) - }; - }, - fromProtoMsg(message: SupplyProtoMsg): Supply { - return Supply.decode(message.value); - }, - toProto(message: Supply): Uint8Array { - return Supply.encode(message).finish(); - }, - toProtoMsg(message: Supply): SupplyProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Supply", - value: Supply.encode(message).finish() - }; - } -}; -function createBaseDenomUnit(): DenomUnit { - return { - denom: "", - exponent: 0, - aliases: [] - }; -} -export const DenomUnit = { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - encode(message: DenomUnit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.exponent !== 0) { - writer.uint32(16).uint32(message.exponent); - } - for (const v of message.aliases) { - writer.uint32(26).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomUnit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.exponent = reader.uint32(); - break; - case 3: - message.aliases.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DenomUnit { - return { - denom: isSet(object.denom) ? String(object.denom) : "", - exponent: isSet(object.exponent) ? Number(object.exponent) : 0, - aliases: Array.isArray(object?.aliases) ? object.aliases.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: DenomUnit): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - if (message.aliases) { - obj.aliases = message.aliases.map(e => e); - } else { - obj.aliases = []; - } - return obj; - }, - fromPartial(object: Partial): DenomUnit { - const message = createBaseDenomUnit(); - message.denom = object.denom ?? ""; - message.exponent = object.exponent ?? 0; - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - fromAmino(object: DenomUnitAmino): DenomUnit { - const message = createBaseDenomUnit(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - toAmino(message: DenomUnit): DenomUnitAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - if (message.aliases) { - obj.aliases = message.aliases.map(e => e); - } else { - obj.aliases = message.aliases; - } - return obj; - }, - fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit { - return DenomUnit.fromAmino(object.value); - }, - toAminoMsg(message: DenomUnit): DenomUnitAminoMsg { - return { - type: "cosmos-sdk/DenomUnit", - value: DenomUnit.toAmino(message) - }; - }, - fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit { - return DenomUnit.decode(message.value); - }, - toProto(message: DenomUnit): Uint8Array { - return DenomUnit.encode(message).finish(); - }, - toProtoMsg(message: DenomUnit): DenomUnitProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - value: DenomUnit.encode(message).finish() - }; - } -}; -function createBaseMetadata(): Metadata { - return { - description: "", - denomUnits: [], - base: "", - display: "", - name: "", - symbol: "", - uri: "", - uriHash: "" - }; -} -export const Metadata = { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - encode(message: Metadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.description !== "") { - writer.uint32(10).string(message.description); - } - for (const v of message.denomUnits) { - DenomUnit.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.base !== "") { - writer.uint32(26).string(message.base); - } - if (message.display !== "") { - writer.uint32(34).string(message.display); - } - if (message.name !== "") { - writer.uint32(42).string(message.name); - } - if (message.symbol !== "") { - writer.uint32(50).string(message.symbol); - } - if (message.uri !== "") { - writer.uint32(58).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(66).string(message.uriHash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Metadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = reader.string(); - break; - case 2: - message.denomUnits.push(DenomUnit.decode(reader, reader.uint32())); - break; - case 3: - message.base = reader.string(); - break; - case 4: - message.display = reader.string(); - break; - case 5: - message.name = reader.string(); - break; - case 6: - message.symbol = reader.string(); - break; - case 7: - message.uri = reader.string(); - break; - case 8: - message.uriHash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Metadata { - return { - description: isSet(object.description) ? String(object.description) : "", - denomUnits: Array.isArray(object?.denomUnits) ? object.denomUnits.map((e: any) => DenomUnit.fromJSON(e)) : [], - base: isSet(object.base) ? String(object.base) : "", - display: isSet(object.display) ? String(object.display) : "", - name: isSet(object.name) ? String(object.name) : "", - symbol: isSet(object.symbol) ? String(object.symbol) : "", - uri: isSet(object.uri) ? String(object.uri) : "", - uriHash: isSet(object.uriHash) ? String(object.uriHash) : "" - }; - }, - toJSON(message: Metadata): unknown { - const obj: any = {}; - message.description !== undefined && (obj.description = message.description); - if (message.denomUnits) { - obj.denomUnits = message.denomUnits.map(e => e ? DenomUnit.toJSON(e) : undefined); - } else { - obj.denomUnits = []; - } - message.base !== undefined && (obj.base = message.base); - message.display !== undefined && (obj.display = message.display); - message.name !== undefined && (obj.name = message.name); - message.symbol !== undefined && (obj.symbol = message.symbol); - message.uri !== undefined && (obj.uri = message.uri); - message.uriHash !== undefined && (obj.uriHash = message.uriHash); - return obj; - }, - fromPartial(object: Partial): Metadata { - const message = createBaseMetadata(); - message.description = object.description ?? ""; - message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || []; - message.base = object.base ?? ""; - message.display = object.display ?? ""; - message.name = object.name ?? ""; - message.symbol = object.symbol ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - return message; - }, - fromAmino(object: MetadataAmino): Metadata { - const message = createBaseMetadata(); - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.denomUnits = object.denom_units?.map(e => DenomUnit.fromAmino(e)) || []; - if (object.base !== undefined && object.base !== null) { - message.base = object.base; - } - if (object.display !== undefined && object.display !== null) { - message.display = object.display; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.symbol !== undefined && object.symbol !== null) { - message.symbol = object.symbol; - } - if (object.uri !== undefined && object.uri !== null) { - message.uri = object.uri; - } - if (object.uri_hash !== undefined && object.uri_hash !== null) { - message.uriHash = object.uri_hash; - } - return message; - }, - toAmino(message: Metadata): MetadataAmino { - const obj: any = {}; - obj.description = message.description === "" ? undefined : message.description; - if (message.denomUnits) { - obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined); - } else { - obj.denom_units = message.denomUnits; - } - obj.base = message.base === "" ? undefined : message.base; - obj.display = message.display === "" ? undefined : message.display; - obj.name = message.name === "" ? undefined : message.name; - obj.symbol = message.symbol === "" ? undefined : message.symbol; - obj.uri = message.uri === "" ? undefined : message.uri; - obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; - return obj; - }, - fromAminoMsg(object: MetadataAminoMsg): Metadata { - return Metadata.fromAmino(object.value); - }, - toAminoMsg(message: Metadata): MetadataAminoMsg { - return { - type: "cosmos-sdk/Metadata", - value: Metadata.toAmino(message) - }; - }, - fromProtoMsg(message: MetadataProtoMsg): Metadata { - return Metadata.decode(message.value); - }, - toProto(message: Metadata): Uint8Array { - return Metadata.encode(message).finish(); - }, - toProtoMsg(message: Metadata): MetadataProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - value: Metadata.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/genesis.ts deleted file mode 100644 index 4e42195d..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/genesis.ts +++ /dev/null @@ -1,321 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** balances is an array containing the balances of all the accounts. */ - balances: Balance[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: Coin[]; - /** denom_metadata defines the metadata of the differents coins. */ - denomMetadata: Metadata[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** balances is an array containing the balances of all the accounts. */ - balances?: BalanceAmino[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply?: CoinAmino[]; - /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata?: MetadataAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - balances: BalanceSDKType[]; - supply: CoinSDKType[]; - denom_metadata: MetadataSDKType[]; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface Balance { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: Coin[]; -} -export interface BalanceProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Balance"; - value: Uint8Array; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceAmino { - /** address is the address of the balance holder. */ - address?: string; - /** coins defines the different coins this balance holds. */ - coins?: CoinAmino[]; -} -export interface BalanceAminoMsg { - type: "cosmos-sdk/Balance"; - value: BalanceAmino; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceSDKType { - address: string; - coins: CoinSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - balances: [], - supply: [], - denomMetadata: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.balances) { - Balance.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.supply) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.denomMetadata) { - Metadata.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.balances.push(Balance.decode(reader, reader.uint32())); - break; - case 3: - message.supply.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.denomMetadata.push(Metadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => Balance.fromJSON(e)) : [], - supply: Array.isArray(object?.supply) ? object.supply.map((e: any) => Coin.fromJSON(e)) : [], - denomMetadata: Array.isArray(object?.denomMetadata) ? object.denomMetadata.map((e: any) => Metadata.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toJSON(e) : undefined); - } else { - obj.balances = []; - } - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.supply = []; - } - if (message.denomMetadata) { - obj.denomMetadata = message.denomMetadata.map(e => e ? Metadata.toJSON(e) : undefined); - } else { - obj.denomMetadata = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; - message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; - message.denomMetadata = object.denomMetadata?.map(e => Metadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; - message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; - message.denomMetadata = object.denom_metadata?.map(e => Metadata.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.supply = message.supply; - } - if (message.denomMetadata) { - obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined); - } else { - obj.denom_metadata = message.denomMetadata; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance(): Balance { - return { - address: "", - coins: [] - }; -} -export const Balance = { - typeUrl: "/cosmos.bank.v1beta1.Balance", - encode(message: Balance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Balance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Balance { - return { - address: isSet(object.address) ? String(object.address) : "", - coins: Array.isArray(object?.coins) ? object.coins.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Balance): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.coins = []; - } - return obj; - }, - fromPartial(object: Partial): Balance { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: BalanceAmino): Balance { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Balance): BalanceAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object: BalanceAminoMsg): Balance { - return Balance.fromAmino(object.value); - }, - toAminoMsg(message: Balance): BalanceAminoMsg { - return { - type: "cosmos-sdk/Balance", - value: Balance.toAmino(message) - }; - }, - fromProtoMsg(message: BalanceProtoMsg): Balance { - return Balance.decode(message.value); - }, - toProto(message: Balance): Uint8Array { - return Balance.encode(message).finish(); - }, - toProtoMsg(message: Balance): BalanceProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.Balance", - value: Balance.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/query.lcd.ts deleted file mode 100644 index 7d03aba4..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - /* Balance queries the balance of a single coin for a single account. */ - async balance(params: QueryBalanceRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries the balance of all coins for a single account. */ - async allBalances(params: QueryAllBalancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* SpendableBalances queries the spenable balance of all coins for a single - account. - - Since: cosmos-sdk 0.46 */ - async spendableBalances(params: QuerySpendableBalancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TotalSupply queries the total supply of all coins. */ - async totalSupply(params: QueryTotalSupplyRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/supply`; - return await this.req.get(endpoint, options); - } - /* SupplyOf queries the supply of a single coin. */ - async supplyOf(params: QuerySupplyOfRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; - return await this.req.get(endpoint, options); - } - /* Params queries the parameters of x/bank module. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/bank/v1beta1/params`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata of a given coin denomination. */ - async denomMetadata(params: QueryDenomMetadataRequest): Promise { - const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata for all registered coin - denominations. */ - async denomsMetadata(params: QueryDenomsMetadataRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; - return await this.req.get(endpoint, options); - } - /* DenomOwners queries for all account addresses that own a particular token - denomination. - - Since: cosmos-sdk 0.46 */ - async denomOwners(params: QueryDenomOwnersRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts deleted file mode 100644 index b2ca89cb..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Balance queries the balance of a single coin for a single account. */ - balance(request: QueryBalanceRequest): Promise; - /** AllBalances queries the balance of all coins for a single account. */ - allBalances(request: QueryAllBalancesRequest): Promise; - /** - * SpendableBalances queries the spenable balance of all coins for a single - * account. - * - * Since: cosmos-sdk 0.46 - */ - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - /** TotalSupply queries the total supply of all coins. */ - totalSupply(request?: QueryTotalSupplyRequest): Promise; - /** SupplyOf queries the supply of a single coin. */ - supplyOf(request: QuerySupplyOfRequest): Promise; - /** Params queries the parameters of x/bank module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomsMetadata queries the client metadata of a given coin denomination. */ - denomMetadata(request: QueryDenomMetadataRequest): Promise; - /** - * DenomsMetadata queries the client metadata for all registered coin - * denominations. - */ - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - /** - * DenomOwners queries for all account addresses that own a particular token - * denomination. - * - * Since: cosmos-sdk 0.46 - */ - denomOwners(request: QueryDenomOwnersRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - balance(request: QueryBalanceRequest): Promise { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - allBalances(request: QueryAllBalancesRequest): Promise { - const data = QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); - return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); - } - spendableBalances(request: QuerySpendableBalancesRequest): Promise { - const data = QuerySpendableBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); - return promise.then(data => QuerySpendableBalancesResponse.decode(new BinaryReader(data))); - } - totalSupply(request: QueryTotalSupplyRequest = { - pagination: undefined - }): Promise { - const data = QueryTotalSupplyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); - return promise.then(data => QueryTotalSupplyResponse.decode(new BinaryReader(data))); - } - supplyOf(request: QuerySupplyOfRequest): Promise { - const data = QuerySupplyOfRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); - return promise.then(data => QuerySupplyOfResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - denomMetadata(request: QueryDenomMetadataRequest): Promise { - const data = QueryDenomMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); - return promise.then(data => QueryDenomMetadataResponse.decode(new BinaryReader(data))); - } - denomsMetadata(request: QueryDenomsMetadataRequest = { - pagination: undefined - }): Promise { - const data = QueryDenomsMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); - return promise.then(data => QueryDenomsMetadataResponse.decode(new BinaryReader(data))); - } - denomOwners(request: QueryDenomOwnersRequest): Promise { - const data = QueryDenomOwnersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); - return promise.then(data => QueryDenomOwnersResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - balance(request: QueryBalanceRequest): Promise { - return queryService.balance(request); - }, - allBalances(request: QueryAllBalancesRequest): Promise { - return queryService.allBalances(request); - }, - spendableBalances(request: QuerySpendableBalancesRequest): Promise { - return queryService.spendableBalances(request); - }, - totalSupply(request?: QueryTotalSupplyRequest): Promise { - return queryService.totalSupply(request); - }, - supplyOf(request: QuerySupplyOfRequest): Promise { - return queryService.supplyOf(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - denomMetadata(request: QueryDenomMetadataRequest): Promise { - return queryService.denomMetadata(request); - }, - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise { - return queryService.denomsMetadata(request); - }, - denomOwners(request: QueryDenomOwnersRequest): Promise { - return queryService.denomOwners(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/query.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/query.ts deleted file mode 100644 index 7ed02ef3..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/query.ts +++ /dev/null @@ -1,2249 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequest { - /** address is the address to query balances for. */ - address: string; - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "cosmos-sdk/QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestSDKType { - address: string; - denom: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponse { - /** balance is the balance of the coin. */ - balance?: Coin; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the coin. */ - balance?: CoinAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "cosmos-sdk/QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseSDKType { - balance?: CoinSDKType; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequest { - /** address is the address to query balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponse { - /** balances is the balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseAmino { - /** balances is the balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequest { - /** address is the address to query spendable balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySpendableBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestAmino { - /** address is the address to query spendable balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySpendableBalancesRequestAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesRequest"; - value: QuerySpendableBalancesRequestAmino; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponse { - /** balances is the spendable balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySpendableBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseAmino { - /** balances is the spendable balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySpendableBalancesResponseAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesResponse"; - value: QuerySpendableBalancesResponseAmino; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequest { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequest; -} -export interface QueryTotalSupplyRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; - value: Uint8Array; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestAmino { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequestAmino; -} -export interface QueryTotalSupplyRequestAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyRequest"; - value: QueryTotalSupplyRequestAmino; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponse { - /** supply is the supply of the coins */ - supply: Coin[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponse; -} -export interface QueryTotalSupplyResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; - value: Uint8Array; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseAmino { - /** supply is the supply of the coins */ - supply?: CoinAmino[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponseAmino; -} -export interface QueryTotalSupplyResponseAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyResponse"; - value: QueryTotalSupplyResponseAmino; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseSDKType { - supply: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequest { - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QuerySupplyOfRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; - value: Uint8Array; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestAmino { - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QuerySupplyOfRequestAminoMsg { - type: "cosmos-sdk/QuerySupplyOfRequest"; - value: QuerySupplyOfRequestAmino; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestSDKType { - denom: string; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponse { - /** amount is the supply of the coin. */ - amount: Coin; -} -export interface QuerySupplyOfResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; - value: Uint8Array; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseAmino { - /** amount is the supply of the coin. */ - amount?: CoinAmino; -} -export interface QuerySupplyOfResponseAminoMsg { - type: "cosmos-sdk/QuerySupplyOfResponse"; - value: QuerySupplyOfResponseAmino; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseSDKType { - amount: CoinSDKType; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseAmino { - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomsMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomsMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataRequest"; - value: QueryDenomsMetadataRequestAmino; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponse { - /** metadata provides the client information for all the registered tokens. */ - metadatas: Metadata[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomsMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseAmino { - /** metadata provides the client information for all the registered tokens. */ - metadatas?: MetadataAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomsMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataResponse"; - value: QueryDenomsMetadataResponseAmino; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseSDKType { - metadatas: MetadataSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequest { - /** denom is the coin denom to query the metadata for. */ - denom: string; -} -export interface QueryDenomMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestAmino { - /** denom is the coin denom to query the metadata for. */ - denom?: string; -} -export interface QueryDenomMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataRequest"; - value: QueryDenomMetadataRequestAmino; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestSDKType { - denom: string; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponse { - /** metadata describes and provides all the client information for the requested token. */ - metadata: Metadata; -} -export interface QueryDenomMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseAmino { - /** metadata describes and provides all the client information for the requested token. */ - metadata?: MetadataAmino; -} -export interface QueryDenomMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataResponse"; - value: QueryDenomMetadataResponseAmino; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseSDKType { - metadata: MetadataSDKType; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequest { - /** denom defines the coin denomination to query all account holders for. */ - denom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomOwnersRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; - value: Uint8Array; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestAmino { - /** denom defines the coin denomination to query all account holders for. */ - denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomOwnersRequestAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersRequest"; - value: QueryDenomOwnersRequestAmino; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestSDKType { - denom: string; - pagination?: PageRequestSDKType; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwner { - /** address defines the address that owns a particular denomination. */ - address: string; - /** balance is the balance of the denominated coin for an account. */ - balance: Coin; -} -export interface DenomOwnerProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; - value: Uint8Array; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerAmino { - /** address defines the address that owns a particular denomination. */ - address?: string; - /** balance is the balance of the denominated coin for an account. */ - balance?: CoinAmino; -} -export interface DenomOwnerAminoMsg { - type: "cosmos-sdk/DenomOwner"; - value: DenomOwnerAmino; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerSDKType { - address: string; - balance: CoinSDKType; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponse { - denomOwners: DenomOwner[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomOwnersResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; - value: Uint8Array; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseAmino { - denom_owners?: DenomOwnerAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomOwnersResponseAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersResponse"; - value: QueryDenomOwnersResponseAmino; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseSDKType { - denom_owners: DenomOwnerSDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryBalanceRequest(): QueryBalanceRequest { - return { - address: "", - denom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: QueryBalanceRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { - return QueryBalanceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryBalanceRequest", - value: QueryBalanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message: QueryBalanceRequest): Uint8Array { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse(): QueryBalanceResponse { - return { - balance: undefined - }; -} -export const QueryBalanceResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceResponse { - return { - balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined - }; - }, - toJSON(message: QueryBalanceResponse): unknown { - const obj: any = {}; - message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { - const obj: any = {}; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { - return QueryBalanceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryBalanceResponse", - value: QueryBalanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message: QueryBalanceResponse): Uint8Array { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest(): QueryAllBalancesRequest { - return { - address: "", - pagination: undefined - }; -} -export const QueryAllBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - encode(message: QueryAllBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllBalancesRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllBalancesRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllBalancesRequest { - const message = createBaseQueryAllBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest { - const message = createBaseQueryAllBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest { - return QueryAllBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAllBalancesRequest", - value: QueryAllBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest { - return QueryAllBalancesRequest.decode(message.value); - }, - toProto(message: QueryAllBalancesRequest): Uint8Array { - return QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - value: QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse(): QueryAllBalancesResponse { - return { - balances: [], - pagination: undefined - }; -} -export const QueryAllBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - encode(message: QueryAllBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllBalancesResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => Coin.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllBalancesResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllBalancesResponse { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse { - return QueryAllBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAllBalancesResponse", - value: QueryAllBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse { - return QueryAllBalancesResponse.decode(message.value); - }, - toProto(message: QueryAllBalancesResponse): Uint8Array { - return QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - value: QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesRequest(): QuerySpendableBalancesRequest { - return { - address: "", - pagination: undefined - }; -} -export const QuerySpendableBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - encode(message: QuerySpendableBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySpendableBalancesRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySpendableBalancesRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySpendableBalancesRequest { - const message = createBaseQuerySpendableBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySpendableBalancesRequestAmino): QuerySpendableBalancesRequest { - const message = createBaseQuerySpendableBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySpendableBalancesRequestAminoMsg): QuerySpendableBalancesRequest { - return QuerySpendableBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySpendableBalancesRequest", - value: QuerySpendableBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySpendableBalancesRequestProtoMsg): QuerySpendableBalancesRequest { - return QuerySpendableBalancesRequest.decode(message.value); - }, - toProto(message: QuerySpendableBalancesRequest): Uint8Array { - return QuerySpendableBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - value: QuerySpendableBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesResponse(): QuerySpendableBalancesResponse { - return { - balances: [], - pagination: undefined - }; -} -export const QuerySpendableBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - encode(message: QuerySpendableBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySpendableBalancesResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => Coin.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySpendableBalancesResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySpendableBalancesResponse { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySpendableBalancesResponseAmino): QuerySpendableBalancesResponse { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySpendableBalancesResponseAminoMsg): QuerySpendableBalancesResponse { - return QuerySpendableBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySpendableBalancesResponse", - value: QuerySpendableBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySpendableBalancesResponseProtoMsg): QuerySpendableBalancesResponse { - return QuerySpendableBalancesResponse.decode(message.value); - }, - toProto(message: QuerySpendableBalancesResponse): Uint8Array { - return QuerySpendableBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - value: QuerySpendableBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyRequest(): QueryTotalSupplyRequest { - return { - pagination: undefined - }; -} -export const QueryTotalSupplyRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - encode(message: QueryTotalSupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTotalSupplyRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryTotalSupplyRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryTotalSupplyRequest { - const message = createBaseQueryTotalSupplyRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryTotalSupplyRequestAmino): QueryTotalSupplyRequest { - const message = createBaseQueryTotalSupplyRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryTotalSupplyRequestAminoMsg): QueryTotalSupplyRequest { - return QueryTotalSupplyRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAminoMsg { - return { - type: "cosmos-sdk/QueryTotalSupplyRequest", - value: QueryTotalSupplyRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTotalSupplyRequestProtoMsg): QueryTotalSupplyRequest { - return QueryTotalSupplyRequest.decode(message.value); - }, - toProto(message: QueryTotalSupplyRequest): Uint8Array { - return QueryTotalSupplyRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - value: QueryTotalSupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyResponse(): QueryTotalSupplyResponse { - return { - supply: [], - pagination: undefined - }; -} -export const QueryTotalSupplyResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - encode(message: QueryTotalSupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.supply) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.supply.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTotalSupplyResponse { - return { - supply: Array.isArray(object?.supply) ? object.supply.map((e: any) => Coin.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryTotalSupplyResponse): unknown { - const obj: any = {}; - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.supply = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryTotalSupplyResponse { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryTotalSupplyResponseAmino): QueryTotalSupplyResponse { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAmino { - const obj: any = {}; - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.supply = message.supply; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryTotalSupplyResponseAminoMsg): QueryTotalSupplyResponse { - return QueryTotalSupplyResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAminoMsg { - return { - type: "cosmos-sdk/QueryTotalSupplyResponse", - value: QueryTotalSupplyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTotalSupplyResponseProtoMsg): QueryTotalSupplyResponse { - return QueryTotalSupplyResponse.decode(message.value); - }, - toProto(message: QueryTotalSupplyResponse): Uint8Array { - return QueryTotalSupplyResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - value: QueryTotalSupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfRequest(): QuerySupplyOfRequest { - return { - denom: "" - }; -} -export const QuerySupplyOfRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - encode(message: QuerySupplyOfRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyOfRequest { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: QuerySupplyOfRequest): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): QuerySupplyOfRequest { - const message = createBaseQuerySupplyOfRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: QuerySupplyOfRequestAmino): QuerySupplyOfRequest { - const message = createBaseQuerySupplyOfRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest { - return QuerySupplyOfRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySupplyOfRequest", - value: QuerySupplyOfRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySupplyOfRequestProtoMsg): QuerySupplyOfRequest { - return QuerySupplyOfRequest.decode(message.value); - }, - toProto(message: QuerySupplyOfRequest): Uint8Array { - return QuerySupplyOfRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - value: QuerySupplyOfRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfResponse(): QuerySupplyOfResponse { - return { - amount: Coin.fromPartial({}) - }; -} -export const QuerySupplyOfResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - encode(message: QuerySupplyOfResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyOfResponse { - return { - amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined - }; - }, - toJSON(message: QuerySupplyOfResponse): unknown { - const obj: any = {}; - message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySupplyOfResponse { - const message = createBaseQuerySupplyOfResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object: QuerySupplyOfResponseAmino): QuerySupplyOfResponse { - const message = createBaseQuerySupplyOfResponse(); - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message: QuerySupplyOfResponse): QuerySupplyOfResponseAmino { - const obj: any = {}; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySupplyOfResponseAminoMsg): QuerySupplyOfResponse { - return QuerySupplyOfResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySupplyOfResponse", - value: QuerySupplyOfResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySupplyOfResponseProtoMsg): QuerySupplyOfResponse { - return QuerySupplyOfResponse.decode(message.value); - }, - toProto(message: QuerySupplyOfResponse): Uint8Array { - return QuerySupplyOfResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - value: QuerySupplyOfResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataRequest(): QueryDenomsMetadataRequest { - return { - pagination: undefined - }; -} -export const QueryDenomsMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - encode(message: QueryDenomsMetadataRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomsMetadataRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomsMetadataRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomsMetadataRequest { - const message = createBaseQueryDenomsMetadataRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomsMetadataRequestAmino): QueryDenomsMetadataRequest { - const message = createBaseQueryDenomsMetadataRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomsMetadataRequestAminoMsg): QueryDenomsMetadataRequest { - return QueryDenomsMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomsMetadataRequest", - value: QueryDenomsMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomsMetadataRequestProtoMsg): QueryDenomsMetadataRequest { - return QueryDenomsMetadataRequest.decode(message.value); - }, - toProto(message: QueryDenomsMetadataRequest): Uint8Array { - return QueryDenomsMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - value: QueryDenomsMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataResponse(): QueryDenomsMetadataResponse { - return { - metadatas: [], - pagination: undefined - }; -} -export const QueryDenomsMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - encode(message: QueryDenomsMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.metadatas) { - Metadata.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadatas.push(Metadata.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomsMetadataResponse { - return { - metadatas: Array.isArray(object?.metadatas) ? object.metadatas.map((e: any) => Metadata.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomsMetadataResponse): unknown { - const obj: any = {}; - if (message.metadatas) { - obj.metadatas = message.metadatas.map(e => e ? Metadata.toJSON(e) : undefined); - } else { - obj.metadatas = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomsMetadataResponse { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => Metadata.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomsMetadataResponseAmino): QueryDenomsMetadataResponse { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => Metadata.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAmino { - const obj: any = {}; - if (message.metadatas) { - obj.metadatas = message.metadatas.map(e => e ? Metadata.toAmino(e) : undefined); - } else { - obj.metadatas = message.metadatas; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomsMetadataResponseAminoMsg): QueryDenomsMetadataResponse { - return QueryDenomsMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomsMetadataResponse", - value: QueryDenomsMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomsMetadataResponseProtoMsg): QueryDenomsMetadataResponse { - return QueryDenomsMetadataResponse.decode(message.value); - }, - toProto(message: QueryDenomsMetadataResponse): Uint8Array { - return QueryDenomsMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - value: QueryDenomsMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataRequest(): QueryDenomMetadataRequest { - return { - denom: "" - }; -} -export const QueryDenomMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - encode(message: QueryDenomMetadataRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomMetadataRequest { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: QueryDenomMetadataRequest): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): QueryDenomMetadataRequest { - const message = createBaseQueryDenomMetadataRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: QueryDenomMetadataRequestAmino): QueryDenomMetadataRequest { - const message = createBaseQueryDenomMetadataRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest { - return QueryDenomMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomMetadataRequest", - value: QueryDenomMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomMetadataRequestProtoMsg): QueryDenomMetadataRequest { - return QueryDenomMetadataRequest.decode(message.value); - }, - toProto(message: QueryDenomMetadataRequest): Uint8Array { - return QueryDenomMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - value: QueryDenomMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataResponse(): QueryDenomMetadataResponse { - return { - metadata: Metadata.fromPartial({}) - }; -} -export const QueryDenomMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - encode(message: QueryDenomMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.metadata !== undefined) { - Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = Metadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomMetadataResponse { - return { - metadata: isSet(object.metadata) ? Metadata.fromJSON(object.metadata) : undefined - }; - }, - toJSON(message: QueryDenomMetadataResponse): unknown { - const obj: any = {}; - message.metadata !== undefined && (obj.metadata = message.metadata ? Metadata.toJSON(message.metadata) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomMetadataResponse { - const message = createBaseQueryDenomMetadataResponse(); - message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; - return message; - }, - fromAmino(object: QueryDenomMetadataResponseAmino): QueryDenomMetadataResponse { - const message = createBaseQueryDenomMetadataResponse(); - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = Metadata.fromAmino(object.metadata); - } - return message; - }, - toAmino(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAmino { - const obj: any = {}; - obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomMetadataResponseAminoMsg): QueryDenomMetadataResponse { - return QueryDenomMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomMetadataResponse", - value: QueryDenomMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomMetadataResponseProtoMsg): QueryDenomMetadataResponse { - return QueryDenomMetadataResponse.decode(message.value); - }, - toProto(message: QueryDenomMetadataResponse): Uint8Array { - return QueryDenomMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - value: QueryDenomMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersRequest(): QueryDenomOwnersRequest { - return { - denom: "", - pagination: undefined - }; -} -export const QueryDenomOwnersRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - encode(message: QueryDenomOwnersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomOwnersRequest { - return { - denom: isSet(object.denom) ? String(object.denom) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomOwnersRequest): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomOwnersRequest { - const message = createBaseQueryDenomOwnersRequest(); - message.denom = object.denom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomOwnersRequestAmino): QueryDenomOwnersRequest { - const message = createBaseQueryDenomOwnersRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomOwnersRequestAminoMsg): QueryDenomOwnersRequest { - return QueryDenomOwnersRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomOwnersRequest", - value: QueryDenomOwnersRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomOwnersRequestProtoMsg): QueryDenomOwnersRequest { - return QueryDenomOwnersRequest.decode(message.value); - }, - toProto(message: QueryDenomOwnersRequest): Uint8Array { - return QueryDenomOwnersRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - value: QueryDenomOwnersRequest.encode(message).finish() - }; - } -}; -function createBaseDenomOwner(): DenomOwner { - return { - address: "", - balance: Coin.fromPartial({}) - }; -} -export const DenomOwner = { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - encode(message: DenomOwner, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomOwner(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DenomOwner { - return { - address: isSet(object.address) ? String(object.address) : "", - balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined - }; - }, - toJSON(message: DenomOwner): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined); - return obj; - }, - fromPartial(object: Partial): DenomOwner { - const message = createBaseDenomOwner(); - message.address = object.address ?? ""; - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object: DenomOwnerAmino): DenomOwner { - const message = createBaseDenomOwner(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message: DenomOwner): DenomOwnerAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object: DenomOwnerAminoMsg): DenomOwner { - return DenomOwner.fromAmino(object.value); - }, - toAminoMsg(message: DenomOwner): DenomOwnerAminoMsg { - return { - type: "cosmos-sdk/DenomOwner", - value: DenomOwner.toAmino(message) - }; - }, - fromProtoMsg(message: DenomOwnerProtoMsg): DenomOwner { - return DenomOwner.decode(message.value); - }, - toProto(message: DenomOwner): Uint8Array { - return DenomOwner.encode(message).finish(); - }, - toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - value: DenomOwner.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersResponse(): QueryDenomOwnersResponse { - return { - denomOwners: [], - pagination: undefined - }; -} -export const QueryDenomOwnersResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - encode(message: QueryDenomOwnersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.denomOwners) { - DenomOwner.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomOwners.push(DenomOwner.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomOwnersResponse { - return { - denomOwners: Array.isArray(object?.denomOwners) ? object.denomOwners.map((e: any) => DenomOwner.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomOwnersResponse): unknown { - const obj: any = {}; - if (message.denomOwners) { - obj.denomOwners = message.denomOwners.map(e => e ? DenomOwner.toJSON(e) : undefined); - } else { - obj.denomOwners = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomOwnersResponse { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denomOwners?.map(e => DenomOwner.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomOwnersResponseAmino): QueryDenomOwnersResponse { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denom_owners?.map(e => DenomOwner.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAmino { - const obj: any = {}; - if (message.denomOwners) { - obj.denom_owners = message.denomOwners.map(e => e ? DenomOwner.toAmino(e) : undefined); - } else { - obj.denom_owners = message.denomOwners; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomOwnersResponseAminoMsg): QueryDenomOwnersResponse { - return QueryDenomOwnersResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomOwnersResponse", - value: QueryDenomOwnersResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomOwnersResponseProtoMsg): QueryDenomOwnersResponse { - return QueryDenomOwnersResponse.decode(message.value); - }, - toProto(message: QueryDenomOwnersResponse): Uint8Array { - return QueryDenomOwnersResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - value: QueryDenomOwnersResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/tx.amino.ts deleted file mode 100644 index 1aa9a243..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSend, MsgMultiSend } from "./tx"; -export const AminoConverter = { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: "cosmos-sdk/MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: "cosmos-sdk/MsgMultiSend", - toAmino: MsgMultiSend.toAmino, - fromAmino: MsgMultiSend.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/tx.registry.ts deleted file mode 100644 index cc9903e8..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend, MsgMultiSend } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - multiSend(value: MsgMultiSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.encode(value).finish() - }; - } - }, - withTypeUrl: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value - }; - }, - multiSend(value: MsgMultiSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value - }; - } - }, - toJSON: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.toJSON(value) - }; - }, - multiSend(value: MsgMultiSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.toJSON(value) - }; - } - }, - fromJSON: { - send(value: any) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.fromJSON(value) - }; - }, - multiSend(value: any) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.fromJSON(value) - }; - } - }, - fromPartial: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - multiSend(value: MsgMultiSend) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 370da8f4..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** Send defines a method for sending coins from one account to another account. */ - send(request: MsgSend): Promise; - /** MultiSend defines a method for sending coins from some accounts to other accounts. */ - multiSend(request: MsgMultiSend): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.send = this.send.bind(this); - this.multiSend = this.multiSend.bind(this); - } - send(request: MsgSend): Promise { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - multiSend(request: MsgMultiSend): Promise { - const data = MsgMultiSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); - return promise.then(data => MsgMultiSendResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/bank/v1beta1/tx.ts deleted file mode 100644 index 36477137..00000000 --- a/packages/api/src/codegen/cosmos/bank/v1beta1/tx.ts +++ /dev/null @@ -1,425 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSend { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSend { - inputs: Input[]; - outputs: Output[]; -} -export interface MsgMultiSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; - value: Uint8Array; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendAmino { - inputs?: InputAmino[]; - outputs?: OutputAmino[]; -} -export interface MsgMultiSendAminoMsg { - type: "cosmos-sdk/MsgMultiSend"; - value: MsgMultiSendAmino; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendSDKType { - inputs: InputSDKType[]; - outputs: OutputSDKType[]; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponse {} -export interface MsgMultiSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; - value: Uint8Array; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseAmino {} -export interface MsgMultiSendResponseAminoMsg { - type: "cosmos-sdk/MsgMultiSendResponse"; - value: MsgMultiSendResponseAmino; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseSDKType {} -function createBaseMsgSend(): MsgSend { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -export const MsgSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend { - return { - fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", - toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgSend): unknown { - const obj: any = {}; - message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); - message.toAddress !== undefined && (obj.toAddress = message.toAddress); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgSend { - const message = createBaseMsgSend(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgSendAmino): MsgSend { - const message = createBaseMsgSend(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgSend): MsgSendAmino { - const obj: any = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgSendAminoMsg): MsgSend { - return MsgSend.fromAmino(object.value); - }, - toAminoMsg(message: MsgSend): MsgSendAminoMsg { - return { - type: "cosmos-sdk/MsgSend", - value: MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSendProtoMsg): MsgSend { - return MsgSend.decode(message.value); - }, - toProto(message: MsgSend): Uint8Array { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message: MsgSend): MsgSendProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse(): MsgSendResponse { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSendResponse { - return {}; - }, - toJSON(_: MsgSendResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_: MsgSendResponseAmino): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_: MsgSendResponse): MsgSendResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { - return MsgSendResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSendResponse", - value: MsgSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { - return MsgSendResponse.decode(message.value); - }, - toProto(message: MsgSendResponse): Uint8Array { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSend(): MsgMultiSend { - return { - inputs: [], - outputs: [] - }; -} -export const MsgMultiSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - encode(message: MsgMultiSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.inputs) { - Input.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.outputs) { - Output.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs.push(Input.decode(reader, reader.uint32())); - break; - case 2: - message.outputs.push(Output.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgMultiSend { - return { - inputs: Array.isArray(object?.inputs) ? object.inputs.map((e: any) => Input.fromJSON(e)) : [], - outputs: Array.isArray(object?.outputs) ? object.outputs.map((e: any) => Output.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgMultiSend): unknown { - const obj: any = {}; - if (message.inputs) { - obj.inputs = message.inputs.map(e => e ? Input.toJSON(e) : undefined); - } else { - obj.inputs = []; - } - if (message.outputs) { - obj.outputs = message.outputs.map(e => e ? Output.toJSON(e) : undefined); - } else { - obj.outputs = []; - } - return obj; - }, - fromPartial(object: Partial): MsgMultiSend { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => Input.fromPartial(e)) || []; - message.outputs = object.outputs?.map(e => Output.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgMultiSendAmino): MsgMultiSend { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => Input.fromAmino(e)) || []; - message.outputs = object.outputs?.map(e => Output.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgMultiSend): MsgMultiSendAmino { - const obj: any = {}; - if (message.inputs) { - obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined); - } else { - obj.inputs = message.inputs; - } - if (message.outputs) { - obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined); - } else { - obj.outputs = message.outputs; - } - return obj; - }, - fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend { - return MsgMultiSend.fromAmino(object.value); - }, - toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg { - return { - type: "cosmos-sdk/MsgMultiSend", - value: MsgMultiSend.toAmino(message) - }; - }, - fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend { - return MsgMultiSend.decode(message.value); - }, - toProto(message: MsgMultiSend): Uint8Array { - return MsgMultiSend.encode(message).finish(); - }, - toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSendResponse(): MsgMultiSendResponse { - return {}; -} -export const MsgMultiSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - encode(_: MsgMultiSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgMultiSendResponse { - return {}; - }, - toJSON(_: MsgMultiSendResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgMultiSendResponse { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse { - return MsgMultiSendResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg { - return { - type: "cosmos-sdk/MsgMultiSendResponse", - value: MsgMultiSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse { - return MsgMultiSendResponse.decode(message.value); - }, - toProto(message: MsgMultiSendResponse): Uint8Array { - return MsgMultiSendResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - value: MsgMultiSendResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/abci/v1beta1/abci.ts b/packages/api/src/codegen/cosmos/base/abci/v1beta1/abci.ts deleted file mode 100644 index bd5ed191..00000000 --- a/packages/api/src/codegen/cosmos/base/abci/v1beta1/abci.ts +++ /dev/null @@ -1,1709 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponse { - /** The block height */ - height: bigint; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - rawLog: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLog[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gasWanted: bigint; - /** Amount of gas consumed by transaction. */ - gasUsed: bigint; - /** The request transaction bytes. */ - tx?: Any; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: Event[]; -} -export interface TxResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; - value: Uint8Array; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseAmino { - /** The block height */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** Response code. */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: ABCIMessageLogAmino[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** Amount of gas requested for transaction. */ - gas_wanted?: string; - /** Amount of gas consumed by transaction. */ - gas_used?: string; - /** The request transaction bytes. */ - tx?: AnyAmino; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events?: EventAmino[]; -} -export interface TxResponseAminoMsg { - type: "cosmos-sdk/TxResponse"; - value: TxResponseAmino; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseSDKType { - height: bigint; - txhash: string; - codespace: string; - code: number; - data: string; - raw_log: string; - logs: ABCIMessageLogSDKType[]; - info: string; - gas_wanted: bigint; - gas_used: bigint; - tx?: AnySDKType; - timestamp: string; - events: EventSDKType[]; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLog { - msgIndex: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEvent[]; -} -export interface ABCIMessageLogProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; - value: Uint8Array; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogAmino { - msg_index: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: StringEventAmino[]; -} -export interface ABCIMessageLogAminoMsg { - type: "cosmos-sdk/ABCIMessageLog"; - value: ABCIMessageLogAmino; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogSDKType { - msg_index: number; - log: string; - events: StringEventSDKType[]; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEvent { - type: string; - attributes: Attribute[]; -} -export interface StringEventProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; - value: Uint8Array; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventAmino { - type?: string; - attributes?: AttributeAmino[]; -} -export interface StringEventAminoMsg { - type: "cosmos-sdk/StringEvent"; - value: StringEventAmino; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventSDKType { - type: string; - attributes: AttributeSDKType[]; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface Attribute { - key: string; - value: string; -} -export interface AttributeProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; - value: Uint8Array; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeAmino { - key?: string; - value?: string; -} -export interface AttributeAminoMsg { - type: "cosmos-sdk/Attribute"; - value: AttributeAmino; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeSDKType { - key: string; - value: string; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfo { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: bigint; - /** GasUsed is the amount of gas actually consumed. */ - gasUsed: bigint; -} -export interface GasInfoProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; - value: Uint8Array; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoAmino { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted?: string; - /** GasUsed is the amount of gas actually consumed. */ - gas_used?: string; -} -export interface GasInfoAminoMsg { - type: "cosmos-sdk/GasInfo"; - value: GasInfoAmino; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoSDKType { - gas_wanted: bigint; - gas_used: bigint; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: Event[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface ResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Result"; - value: Uint8Array; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultAmino { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: EventAmino[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface ResultAminoMsg { - type: "cosmos-sdk/Result"; - value: ResultAmino; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultSDKType { - /** @deprecated */ - data: Uint8Array; - log: string; - events: EventSDKType[]; - msg_responses: AnySDKType[]; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponse { - gasInfo: GasInfo; - result?: Result; -} -export interface SimulationResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; - value: Uint8Array; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseAmino { - gas_info?: GasInfoAmino; - result?: ResultAmino; -} -export interface SimulationResponseAminoMsg { - type: "cosmos-sdk/SimulationResponse"; - value: SimulationResponseAmino; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseSDKType { - gas_info: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgData { - msgType: string; - data: Uint8Array; -} -export interface MsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; - value: Uint8Array; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataAmino { - msg_type?: string; - data?: string; -} -export interface MsgDataAminoMsg { - type: "cosmos-sdk/MsgData"; - value: MsgDataAmino; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataSDKType { - msg_type: string; - data: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgData { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgData[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface TxMsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; - value: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataAmino { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data?: MsgDataAmino[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface TxMsgDataAminoMsg { - type: "cosmos-sdk/TxMsgData"; - value: TxMsgDataAmino; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataSDKType { - /** @deprecated */ - data: MsgDataSDKType[]; - msg_responses: AnySDKType[]; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResult { - /** Count of all txs */ - totalCount: bigint; - /** Count of txs in current page */ - count: bigint; - /** Index of current page, start from 1 */ - pageNumber: bigint; - /** Count of total pages */ - pageTotal: bigint; - /** Max count txs per page */ - limit: bigint; - /** List of txs in current page */ - txs: TxResponse[]; -} -export interface SearchTxsResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; - value: Uint8Array; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultAmino { - /** Count of all txs */ - total_count?: string; - /** Count of txs in current page */ - count?: string; - /** Index of current page, start from 1 */ - page_number?: string; - /** Count of total pages */ - page_total?: string; - /** Max count txs per page */ - limit?: string; - /** List of txs in current page */ - txs?: TxResponseAmino[]; -} -export interface SearchTxsResultAminoMsg { - type: "cosmos-sdk/SearchTxsResult"; - value: SearchTxsResultAmino; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultSDKType { - total_count: bigint; - count: bigint; - page_number: bigint; - page_total: bigint; - limit: bigint; - txs: TxResponseSDKType[]; -} -function createBaseTxResponse(): TxResponse { - return { - height: BigInt(0), - txhash: "", - codespace: "", - code: 0, - data: "", - rawLog: "", - logs: [], - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - tx: undefined, - timestamp: "", - events: [] - }; -} -export const TxResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - encode(message: TxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.txhash !== "") { - writer.uint32(18).string(message.txhash); - } - if (message.codespace !== "") { - writer.uint32(26).string(message.codespace); - } - if (message.code !== 0) { - writer.uint32(32).uint32(message.code); - } - if (message.data !== "") { - writer.uint32(42).string(message.data); - } - if (message.rawLog !== "") { - writer.uint32(50).string(message.rawLog); - } - for (const v of message.logs) { - ABCIMessageLog.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.info !== "") { - writer.uint32(66).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(72).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(80).int64(message.gasUsed); - } - if (message.tx !== undefined) { - Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); - } - if (message.timestamp !== "") { - writer.uint32(98).string(message.timestamp); - } - for (const v of message.events) { - Event.encode(v!, writer.uint32(106).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.txhash = reader.string(); - break; - case 3: - message.codespace = reader.string(); - break; - case 4: - message.code = reader.uint32(); - break; - case 5: - message.data = reader.string(); - break; - case 6: - message.rawLog = reader.string(); - break; - case 7: - message.logs.push(ABCIMessageLog.decode(reader, reader.uint32())); - break; - case 8: - message.info = reader.string(); - break; - case 9: - message.gasWanted = reader.int64(); - break; - case 10: - message.gasUsed = reader.int64(); - break; - case 11: - message.tx = Any.decode(reader, reader.uint32()); - break; - case 12: - message.timestamp = reader.string(); - break; - case 13: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxResponse { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - txhash: isSet(object.txhash) ? String(object.txhash) : "", - codespace: isSet(object.codespace) ? String(object.codespace) : "", - code: isSet(object.code) ? Number(object.code) : 0, - data: isSet(object.data) ? String(object.data) : "", - rawLog: isSet(object.rawLog) ? String(object.rawLog) : "", - logs: Array.isArray(object?.logs) ? object.logs.map((e: any) => ABCIMessageLog.fromJSON(e)) : [], - info: isSet(object.info) ? String(object.info) : "", - gasWanted: isSet(object.gasWanted) ? BigInt(object.gasWanted.toString()) : BigInt(0), - gasUsed: isSet(object.gasUsed) ? BigInt(object.gasUsed.toString()) : BigInt(0), - tx: isSet(object.tx) ? Any.fromJSON(object.tx) : undefined, - timestamp: isSet(object.timestamp) ? String(object.timestamp) : "", - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [] - }; - }, - toJSON(message: TxResponse): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.txhash !== undefined && (obj.txhash = message.txhash); - message.codespace !== undefined && (obj.codespace = message.codespace); - message.code !== undefined && (obj.code = Math.round(message.code)); - message.data !== undefined && (obj.data = message.data); - message.rawLog !== undefined && (obj.rawLog = message.rawLog); - if (message.logs) { - obj.logs = message.logs.map(e => e ? ABCIMessageLog.toJSON(e) : undefined); - } else { - obj.logs = []; - } - message.info !== undefined && (obj.info = message.info); - message.gasWanted !== undefined && (obj.gasWanted = (message.gasWanted || BigInt(0)).toString()); - message.gasUsed !== undefined && (obj.gasUsed = (message.gasUsed || BigInt(0)).toString()); - message.tx !== undefined && (obj.tx = message.tx ? Any.toJSON(message.tx) : undefined); - message.timestamp !== undefined && (obj.timestamp = message.timestamp); - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - return obj; - }, - fromPartial(object: Partial): TxResponse { - const message = createBaseTxResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.txhash = object.txhash ?? ""; - message.codespace = object.codespace ?? ""; - message.code = object.code ?? 0; - message.data = object.data ?? ""; - message.rawLog = object.rawLog ?? ""; - message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || []; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined; - message.timestamp = object.timestamp ?? ""; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object: TxResponseAmino): TxResponse { - const message = createBaseTxResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.txhash !== undefined && object.txhash !== null) { - message.txhash = object.txhash; - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.raw_log !== undefined && object.raw_log !== null) { - message.rawLog = object.raw_log; - } - message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || []; - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = Any.fromAmino(object.tx); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = object.timestamp; - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message: TxResponse): TxResponseAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.txhash = message.txhash === "" ? undefined : message.txhash; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data === "" ? undefined : message.data; - obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; - if (message.logs) { - obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined); - } else { - obj.logs = message.logs; - } - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - obj.tx = message.tx ? Any.toAmino(message.tx) : undefined; - obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object: TxResponseAminoMsg): TxResponse { - return TxResponse.fromAmino(object.value); - }, - toAminoMsg(message: TxResponse): TxResponseAminoMsg { - return { - type: "cosmos-sdk/TxResponse", - value: TxResponse.toAmino(message) - }; - }, - fromProtoMsg(message: TxResponseProtoMsg): TxResponse { - return TxResponse.decode(message.value); - }, - toProto(message: TxResponse): Uint8Array { - return TxResponse.encode(message).finish(); - }, - toProtoMsg(message: TxResponse): TxResponseProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - value: TxResponse.encode(message).finish() - }; - } -}; -function createBaseABCIMessageLog(): ABCIMessageLog { - return { - msgIndex: 0, - log: "", - events: [] - }; -} -export const ABCIMessageLog = { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - encode(message: ABCIMessageLog, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msgIndex !== 0) { - writer.uint32(8).uint32(message.msgIndex); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - StringEvent.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseABCIMessageLog(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgIndex = reader.uint32(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(StringEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ABCIMessageLog { - return { - msgIndex: isSet(object.msgIndex) ? Number(object.msgIndex) : 0, - log: isSet(object.log) ? String(object.log) : "", - events: Array.isArray(object?.events) ? object.events.map((e: any) => StringEvent.fromJSON(e)) : [] - }; - }, - toJSON(message: ABCIMessageLog): unknown { - const obj: any = {}; - message.msgIndex !== undefined && (obj.msgIndex = Math.round(message.msgIndex)); - message.log !== undefined && (obj.log = message.log); - if (message.events) { - obj.events = message.events.map(e => e ? StringEvent.toJSON(e) : undefined); - } else { - obj.events = []; - } - return obj; - }, - fromPartial(object: Partial): ABCIMessageLog { - const message = createBaseABCIMessageLog(); - message.msgIndex = object.msgIndex ?? 0; - message.log = object.log ?? ""; - message.events = object.events?.map(e => StringEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog { - const message = createBaseABCIMessageLog(); - if (object.msg_index !== undefined && object.msg_index !== null) { - message.msgIndex = object.msg_index; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => StringEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message: ABCIMessageLog): ABCIMessageLogAmino { - const obj: any = {}; - obj.msg_index = message.msgIndex ?? 0; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog { - return ABCIMessageLog.fromAmino(object.value); - }, - toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg { - return { - type: "cosmos-sdk/ABCIMessageLog", - value: ABCIMessageLog.toAmino(message) - }; - }, - fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog { - return ABCIMessageLog.decode(message.value); - }, - toProto(message: ABCIMessageLog): Uint8Array { - return ABCIMessageLog.encode(message).finish(); - }, - toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - value: ABCIMessageLog.encode(message).finish() - }; - } -}; -function createBaseStringEvent(): StringEvent { - return { - type: "", - attributes: [] - }; -} -export const StringEvent = { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - encode(message: StringEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - Attribute.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): StringEvent { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStringEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(Attribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): StringEvent { - return { - type: isSet(object.type) ? String(object.type) : "", - attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : [] - }; - }, - toJSON(message: StringEvent): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = message.type); - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined); - } else { - obj.attributes = []; - } - return obj; - }, - fromPartial(object: Partial): StringEvent { - const message = createBaseStringEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object: StringEventAmino): StringEvent { - const message = createBaseStringEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || []; - return message; - }, - toAmino(message: StringEvent): StringEventAmino { - const obj: any = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined); - } else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object: StringEventAminoMsg): StringEvent { - return StringEvent.fromAmino(object.value); - }, - toAminoMsg(message: StringEvent): StringEventAminoMsg { - return { - type: "cosmos-sdk/StringEvent", - value: StringEvent.toAmino(message) - }; - }, - fromProtoMsg(message: StringEventProtoMsg): StringEvent { - return StringEvent.decode(message.value); - }, - toProto(message: StringEvent): Uint8Array { - return StringEvent.encode(message).finish(); - }, - toProtoMsg(message: StringEvent): StringEventProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - value: StringEvent.encode(message).finish() - }; - } -}; -function createBaseAttribute(): Attribute { - return { - key: "", - value: "" - }; -} -export const Attribute = { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Attribute { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Attribute { - return { - key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) ? String(object.value) : "" - }; - }, - toJSON(message: Attribute): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = message.key); - message.value !== undefined && (obj.value = message.value); - return obj; - }, - fromPartial(object: Partial): Attribute { - const message = createBaseAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object: AttributeAmino): Attribute { - const message = createBaseAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message: Attribute): AttributeAmino { - const obj: any = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object: AttributeAminoMsg): Attribute { - return Attribute.fromAmino(object.value); - }, - toAminoMsg(message: Attribute): AttributeAminoMsg { - return { - type: "cosmos-sdk/Attribute", - value: Attribute.toAmino(message) - }; - }, - fromProtoMsg(message: AttributeProtoMsg): Attribute { - return Attribute.decode(message.value); - }, - toProto(message: Attribute): Uint8Array { - return Attribute.encode(message).finish(); - }, - toProtoMsg(message: Attribute): AttributeProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - value: Attribute.encode(message).finish() - }; - } -}; -function createBaseGasInfo(): GasInfo { - return { - gasWanted: BigInt(0), - gasUsed: BigInt(0) - }; -} -export const GasInfo = { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - encode(message: GasInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.gasWanted !== BigInt(0)) { - writer.uint32(8).uint64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(16).uint64(message.gasUsed); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GasInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGasInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasWanted = reader.uint64(); - break; - case 2: - message.gasUsed = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GasInfo { - return { - gasWanted: isSet(object.gasWanted) ? BigInt(object.gasWanted.toString()) : BigInt(0), - gasUsed: isSet(object.gasUsed) ? BigInt(object.gasUsed.toString()) : BigInt(0) - }; - }, - toJSON(message: GasInfo): unknown { - const obj: any = {}; - message.gasWanted !== undefined && (obj.gasWanted = (message.gasWanted || BigInt(0)).toString()); - message.gasUsed !== undefined && (obj.gasUsed = (message.gasUsed || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): GasInfo { - const message = createBaseGasInfo(); - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - return message; - }, - fromAmino(object: GasInfoAmino): GasInfo { - const message = createBaseGasInfo(); - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - return message; - }, - toAmino(message: GasInfo): GasInfoAmino { - const obj: any = {}; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - return obj; - }, - fromAminoMsg(object: GasInfoAminoMsg): GasInfo { - return GasInfo.fromAmino(object.value); - }, - toAminoMsg(message: GasInfo): GasInfoAminoMsg { - return { - type: "cosmos-sdk/GasInfo", - value: GasInfo.toAmino(message) - }; - }, - fromProtoMsg(message: GasInfoProtoMsg): GasInfo { - return GasInfo.decode(message.value); - }, - toProto(message: GasInfo): Uint8Array { - return GasInfo.encode(message).finish(); - }, - toProtoMsg(message: GasInfo): GasInfoProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - value: GasInfo.encode(message).finish() - }; - } -}; -function createBaseResult(): Result { - return { - data: new Uint8Array(), - log: "", - events: [], - msgResponses: [] - }; -} -export const Result = { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - encode(message: Result, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - Event.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.msgResponses) { - Any.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Result { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 4: - message.msgResponses.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Result { - return { - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - log: isSet(object.log) ? String(object.log) : "", - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [], - msgResponses: Array.isArray(object?.msgResponses) ? object.msgResponses.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: Result): unknown { - const obj: any = {}; - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.log !== undefined && (obj.log = message.log); - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - if (message.msgResponses) { - obj.msgResponses = message.msgResponses.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.msgResponses = []; - } - return obj; - }, - fromPartial(object: Partial): Result { - const message = createBaseResult(); - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ResultAmino): Result { - const message = createBaseResult(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: Result): ResultAmino { - const obj: any = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object: ResultAminoMsg): Result { - return Result.fromAmino(object.value); - }, - toAminoMsg(message: Result): ResultAminoMsg { - return { - type: "cosmos-sdk/Result", - value: Result.toAmino(message) - }; - }, - fromProtoMsg(message: ResultProtoMsg): Result { - return Result.decode(message.value); - }, - toProto(message: Result): Uint8Array { - return Result.encode(message).finish(); - }, - toProtoMsg(message: Result): ResultProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - value: Result.encode(message).finish() - }; - } -}; -function createBaseSimulationResponse(): SimulationResponse { - return { - gasInfo: GasInfo.fromPartial({}), - result: undefined - }; -} -export const SimulationResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - encode(message: SimulationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.gasInfo !== undefined) { - GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SimulationResponse { - return { - gasInfo: isSet(object.gasInfo) ? GasInfo.fromJSON(object.gasInfo) : undefined, - result: isSet(object.result) ? Result.fromJSON(object.result) : undefined - }; - }, - toJSON(message: SimulationResponse): unknown { - const obj: any = {}; - message.gasInfo !== undefined && (obj.gasInfo = message.gasInfo ? GasInfo.toJSON(message.gasInfo) : undefined); - message.result !== undefined && (obj.result = message.result ? Result.toJSON(message.result) : undefined); - return obj; - }, - fromPartial(object: Partial): SimulationResponse { - const message = createBaseSimulationResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object: SimulationResponseAmino): SimulationResponse { - const message = createBaseSimulationResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = Result.fromAmino(object.result); - } - return message; - }, - toAmino(message: SimulationResponse): SimulationResponseAmino { - const obj: any = {}; - obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse { - return SimulationResponse.fromAmino(object.value); - }, - toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg { - return { - type: "cosmos-sdk/SimulationResponse", - value: SimulationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse { - return SimulationResponse.decode(message.value); - }, - toProto(message: SimulationResponse): Uint8Array { - return SimulationResponse.encode(message).finish(); - }, - toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - value: SimulationResponse.encode(message).finish() - }; - } -}; -function createBaseMsgData(): MsgData { - return { - msgType: "", - data: new Uint8Array() - }; -} -export const MsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - encode(message: MsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msgType !== "") { - writer.uint32(10).string(message.msgType); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgData { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgType = reader.string(); - break; - case 2: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgData { - return { - msgType: isSet(object.msgType) ? String(object.msgType) : "", - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() - }; - }, - toJSON(message: MsgData): unknown { - const obj: any = {}; - message.msgType !== undefined && (obj.msgType = message.msgType); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): MsgData { - const message = createBaseMsgData(); - message.msgType = object.msgType ?? ""; - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object: MsgDataAmino): MsgData { - const message = createBaseMsgData(); - if (object.msg_type !== undefined && object.msg_type !== null) { - message.msgType = object.msg_type; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - return message; - }, - toAmino(message: MsgData): MsgDataAmino { - const obj: any = {}; - obj.msg_type = message.msgType === "" ? undefined : message.msgType; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - return obj; - }, - fromAminoMsg(object: MsgDataAminoMsg): MsgData { - return MsgData.fromAmino(object.value); - }, - toAminoMsg(message: MsgData): MsgDataAminoMsg { - return { - type: "cosmos-sdk/MsgData", - value: MsgData.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDataProtoMsg): MsgData { - return MsgData.decode(message.value); - }, - toProto(message: MsgData): Uint8Array { - return MsgData.encode(message).finish(); - }, - toProtoMsg(message: MsgData): MsgDataProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - value: MsgData.encode(message).finish() - }; - } -}; -function createBaseTxMsgData(): TxMsgData { - return { - data: [], - msgResponses: [] - }; -} -export const TxMsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - encode(message: TxMsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.data) { - MsgData.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.msgResponses) { - Any.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data.push(MsgData.decode(reader, reader.uint32())); - break; - case 2: - message.msgResponses.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxMsgData { - return { - data: Array.isArray(object?.data) ? object.data.map((e: any) => MsgData.fromJSON(e)) : [], - msgResponses: Array.isArray(object?.msgResponses) ? object.msgResponses.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: TxMsgData): unknown { - const obj: any = {}; - if (message.data) { - obj.data = message.data.map(e => e ? MsgData.toJSON(e) : undefined); - } else { - obj.data = []; - } - if (message.msgResponses) { - obj.msgResponses = message.msgResponses.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.msgResponses = []; - } - return obj; - }, - fromPartial(object: Partial): TxMsgData { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => MsgData.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: TxMsgDataAmino): TxMsgData { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => MsgData.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: TxMsgData): TxMsgDataAmino { - const obj: any = {}; - if (message.data) { - obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined); - } else { - obj.data = message.data; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData { - return TxMsgData.fromAmino(object.value); - }, - toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg { - return { - type: "cosmos-sdk/TxMsgData", - value: TxMsgData.toAmino(message) - }; - }, - fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData { - return TxMsgData.decode(message.value); - }, - toProto(message: TxMsgData): Uint8Array { - return TxMsgData.encode(message).finish(); - }, - toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - value: TxMsgData.encode(message).finish() - }; - } -}; -function createBaseSearchTxsResult(): SearchTxsResult { - return { - totalCount: BigInt(0), - count: BigInt(0), - pageNumber: BigInt(0), - pageTotal: BigInt(0), - limit: BigInt(0), - txs: [] - }; -} -export const SearchTxsResult = { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - encode(message: SearchTxsResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.totalCount !== BigInt(0)) { - writer.uint32(8).uint64(message.totalCount); - } - if (message.count !== BigInt(0)) { - writer.uint32(16).uint64(message.count); - } - if (message.pageNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.pageNumber); - } - if (message.pageTotal !== BigInt(0)) { - writer.uint32(32).uint64(message.pageTotal); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - for (const v of message.txs) { - TxResponse.encode(v!, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSearchTxsResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.totalCount = reader.uint64(); - break; - case 2: - message.count = reader.uint64(); - break; - case 3: - message.pageNumber = reader.uint64(); - break; - case 4: - message.pageTotal = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - case 6: - message.txs.push(TxResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SearchTxsResult { - return { - totalCount: isSet(object.totalCount) ? BigInt(object.totalCount.toString()) : BigInt(0), - count: isSet(object.count) ? BigInt(object.count.toString()) : BigInt(0), - pageNumber: isSet(object.pageNumber) ? BigInt(object.pageNumber.toString()) : BigInt(0), - pageTotal: isSet(object.pageTotal) ? BigInt(object.pageTotal.toString()) : BigInt(0), - limit: isSet(object.limit) ? BigInt(object.limit.toString()) : BigInt(0), - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => TxResponse.fromJSON(e)) : [] - }; - }, - toJSON(message: SearchTxsResult): unknown { - const obj: any = {}; - message.totalCount !== undefined && (obj.totalCount = (message.totalCount || BigInt(0)).toString()); - message.count !== undefined && (obj.count = (message.count || BigInt(0)).toString()); - message.pageNumber !== undefined && (obj.pageNumber = (message.pageNumber || BigInt(0)).toString()); - message.pageTotal !== undefined && (obj.pageTotal = (message.pageTotal || BigInt(0)).toString()); - message.limit !== undefined && (obj.limit = (message.limit || BigInt(0)).toString()); - if (message.txs) { - obj.txs = message.txs.map(e => e ? TxResponse.toJSON(e) : undefined); - } else { - obj.txs = []; - } - return obj; - }, - fromPartial(object: Partial): SearchTxsResult { - const message = createBaseSearchTxsResult(); - message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); - message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); - message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); - message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SearchTxsResultAmino): SearchTxsResult { - const message = createBaseSearchTxsResult(); - if (object.total_count !== undefined && object.total_count !== null) { - message.totalCount = BigInt(object.total_count); - } - if (object.count !== undefined && object.count !== null) { - message.count = BigInt(object.count); - } - if (object.page_number !== undefined && object.page_number !== null) { - message.pageNumber = BigInt(object.page_number); - } - if (object.page_total !== undefined && object.page_total !== null) { - message.pageTotal = BigInt(object.page_total); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message: SearchTxsResult): SearchTxsResultAmino { - const obj: any = {}; - obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; - obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; - obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; - obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined); - } else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult { - return SearchTxsResult.fromAmino(object.value); - }, - toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg { - return { - type: "cosmos-sdk/SearchTxsResult", - value: SearchTxsResult.toAmino(message) - }; - }, - fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult { - return SearchTxsResult.decode(message.value); - }, - toProto(message: SearchTxsResult): Uint8Array { - return SearchTxsResult.encode(message).finish(); - }, - toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - value: SearchTxsResult.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/kv/v1beta1/kv.ts b/packages/api/src/codegen/cosmos/base/kv/v1beta1/kv.ts deleted file mode 100644 index f10db41f..00000000 --- a/packages/api/src/codegen/cosmos/base/kv/v1beta1/kv.ts +++ /dev/null @@ -1,223 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -export interface PairsProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs"; - value: Uint8Array; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsAmino { - pairs?: PairAmino[]; -} -export interface PairsAminoMsg { - type: "cosmos-sdk/Pairs"; - value: PairsAmino; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -export interface PairProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pair"; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairAmino { - key?: string; - value?: string; -} -export interface PairAminoMsg { - type: "cosmos-sdk/Pair"; - value: PairAmino; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} -function createBasePairs(): Pairs { - return { - pairs: [] - }; -} -export const Pairs = { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs", - encode(message: Pairs, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.pairs) { - Pair.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Pairs { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePairs(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pairs.push(Pair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Pairs { - return { - pairs: Array.isArray(object?.pairs) ? object.pairs.map((e: any) => Pair.fromJSON(e)) : [] - }; - }, - toJSON(message: Pairs): unknown { - const obj: any = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? Pair.toJSON(e) : undefined); - } else { - obj.pairs = []; - } - return obj; - }, - fromPartial(object: Partial): Pairs { - const message = createBasePairs(); - message.pairs = object.pairs?.map(e => Pair.fromPartial(e)) || []; - return message; - }, - fromAmino(object: PairsAmino): Pairs { - const message = createBasePairs(); - message.pairs = object.pairs?.map(e => Pair.fromAmino(e)) || []; - return message; - }, - toAmino(message: Pairs): PairsAmino { - const obj: any = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? Pair.toAmino(e) : undefined); - } else { - obj.pairs = message.pairs; - } - return obj; - }, - fromAminoMsg(object: PairsAminoMsg): Pairs { - return Pairs.fromAmino(object.value); - }, - toAminoMsg(message: Pairs): PairsAminoMsg { - return { - type: "cosmos-sdk/Pairs", - value: Pairs.toAmino(message) - }; - }, - fromProtoMsg(message: PairsProtoMsg): Pairs { - return Pairs.decode(message.value); - }, - toProto(message: Pairs): Uint8Array { - return Pairs.encode(message).finish(); - }, - toProtoMsg(message: Pairs): PairsProtoMsg { - return { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs", - value: Pairs.encode(message).finish() - }; - } -}; -function createBasePair(): Pair { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const Pair = { - typeUrl: "/cosmos.base.kv.v1beta1.Pair", - encode(message: Pair, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Pair { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Pair { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array() - }; - }, - toJSON(message: Pair): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Pair { - const message = createBasePair(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object: PairAmino): Pair { - const message = createBasePair(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - return message; - }, - toAmino(message: Pair): PairAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - return obj; - }, - fromAminoMsg(object: PairAminoMsg): Pair { - return Pair.fromAmino(object.value); - }, - toAminoMsg(message: Pair): PairAminoMsg { - return { - type: "cosmos-sdk/Pair", - value: Pair.toAmino(message) - }; - }, - fromProtoMsg(message: PairProtoMsg): Pair { - return Pair.decode(message.value); - }, - toProto(message: Pair): Uint8Array { - return Pair.encode(message).finish(); - }, - toProtoMsg(message: Pair): PairProtoMsg { - return { - typeUrl: "/cosmos.base.kv.v1beta1.Pair", - value: Pair.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts deleted file mode 100644 index 4d1214c6..00000000 --- a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { ConfigRequest, ConfigResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.config = this.config.bind(this); - } - /* Config queries for the operator configuration. */ - async config(_params: ConfigRequest = {}): Promise { - const endpoint = `cosmos/base/node/v1beta1/config`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts b/packages/api/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts deleted file mode 100644 index 1651b097..00000000 --- a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { ConfigRequest, ConfigResponse } from "./query"; -/** Service defines the gRPC querier service for node related queries. */ -export interface Service { - /** Config queries for the operator configuration. */ - config(request?: ConfigRequest): Promise; -} -export class ServiceClientImpl implements Service { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.config = this.config.bind(this); - } - config(request: ConfigRequest = {}): Promise { - const data = ConfigRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); - return promise.then(data => ConfigResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new ServiceClientImpl(rpc); - return { - config(request?: ConfigRequest): Promise { - return queryService.config(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.ts b/packages/api/src/codegen/cosmos/base/node/v1beta1/query.ts deleted file mode 100644 index a4a99aa0..00000000 --- a/packages/api/src/codegen/cosmos/base/node/v1beta1/query.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequest {} -export interface ConfigRequestProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest"; - value: Uint8Array; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestAmino {} -export interface ConfigRequestAminoMsg { - type: "cosmos-sdk/ConfigRequest"; - value: ConfigRequestAmino; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestSDKType {} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponse { - minimumGasPrice: string; -} -export interface ConfigResponseProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse"; - value: Uint8Array; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseAmino { - minimum_gas_price?: string; -} -export interface ConfigResponseAminoMsg { - type: "cosmos-sdk/ConfigResponse"; - value: ConfigResponseAmino; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseSDKType { - minimum_gas_price: string; -} -function createBaseConfigRequest(): ConfigRequest { - return {}; -} -export const ConfigRequest = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - encode(_: ConfigRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): ConfigRequest { - return {}; - }, - toJSON(_: ConfigRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): ConfigRequest { - const message = createBaseConfigRequest(); - return message; - }, - fromAmino(_: ConfigRequestAmino): ConfigRequest { - const message = createBaseConfigRequest(); - return message; - }, - toAmino(_: ConfigRequest): ConfigRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: ConfigRequestAminoMsg): ConfigRequest { - return ConfigRequest.fromAmino(object.value); - }, - toAminoMsg(message: ConfigRequest): ConfigRequestAminoMsg { - return { - type: "cosmos-sdk/ConfigRequest", - value: ConfigRequest.toAmino(message) - }; - }, - fromProtoMsg(message: ConfigRequestProtoMsg): ConfigRequest { - return ConfigRequest.decode(message.value); - }, - toProto(message: ConfigRequest): Uint8Array { - return ConfigRequest.encode(message).finish(); - }, - toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - value: ConfigRequest.encode(message).finish() - }; - } -}; -function createBaseConfigResponse(): ConfigResponse { - return { - minimumGasPrice: "" - }; -} -export const ConfigResponse = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - encode(message: ConfigResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.minimumGasPrice !== "") { - writer.uint32(10).string(message.minimumGasPrice); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minimumGasPrice = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConfigResponse { - return { - minimumGasPrice: isSet(object.minimumGasPrice) ? String(object.minimumGasPrice) : "" - }; - }, - toJSON(message: ConfigResponse): unknown { - const obj: any = {}; - message.minimumGasPrice !== undefined && (obj.minimumGasPrice = message.minimumGasPrice); - return obj; - }, - fromPartial(object: Partial): ConfigResponse { - const message = createBaseConfigResponse(); - message.minimumGasPrice = object.minimumGasPrice ?? ""; - return message; - }, - fromAmino(object: ConfigResponseAmino): ConfigResponse { - const message = createBaseConfigResponse(); - if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { - message.minimumGasPrice = object.minimum_gas_price; - } - return message; - }, - toAmino(message: ConfigResponse): ConfigResponseAmino { - const obj: any = {}; - obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; - return obj; - }, - fromAminoMsg(object: ConfigResponseAminoMsg): ConfigResponse { - return ConfigResponse.fromAmino(object.value); - }, - toAminoMsg(message: ConfigResponse): ConfigResponseAminoMsg { - return { - type: "cosmos-sdk/ConfigResponse", - value: ConfigResponse.toAmino(message) - }; - }, - fromProtoMsg(message: ConfigResponseProtoMsg): ConfigResponse { - return ConfigResponse.decode(message.value); - }, - toProto(message: ConfigResponse): Uint8Array { - return ConfigResponse.encode(message).finish(); - }, - toProtoMsg(message: ConfigResponse): ConfigResponseProtoMsg { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - value: ConfigResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/query/v1beta1/pagination.ts b/packages/api/src/codegen/cosmos/base/query/v1beta1/pagination.ts deleted file mode 100644 index 0a99d0d5..00000000 --- a/packages/api/src/codegen/cosmos/base/query/v1beta1/pagination.ts +++ /dev/null @@ -1,401 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequest { - /** - * 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. - */ - key: Uint8Array; - /** - * 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. - */ - offset: bigint; - /** - * 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. - */ - limit: bigint; - /** - * 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. - */ - countTotal: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; - value: Uint8Array; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestAmino { - /** - * 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. - */ - key?: string; - /** - * 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. - */ - offset?: string; - /** - * 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. - */ - limit?: string; - /** - * 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. - */ - count_total?: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse?: boolean; -} -export interface PageRequestAminoMsg { - type: "cosmos-sdk/PageRequest"; - value: PageRequestAmino; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestSDKType { - key: Uint8Array; - offset: bigint; - limit: bigint; - count_total: boolean; - reverse: boolean; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - nextKey: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: bigint; -} -export interface PageResponseProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; - value: Uint8Array; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseAmino { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total?: string; -} -export interface PageResponseAminoMsg { - type: "cosmos-sdk/PageResponse"; - value: PageResponseAmino; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseSDKType { - next_key: Uint8Array; - total: bigint; -} -function createBasePageRequest(): PageRequest { - return { - key: new Uint8Array(), - offset: BigInt(0), - limit: BigInt(0), - countTotal: false, - reverse: false - }; -} -export const PageRequest = { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - encode(message: PageRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.offset !== BigInt(0)) { - writer.uint32(16).uint64(message.offset); - } - if (message.limit !== BigInt(0)) { - writer.uint32(24).uint64(message.limit); - } - if (message.countTotal === true) { - writer.uint32(32).bool(message.countTotal); - } - if (message.reverse === true) { - writer.uint32(40).bool(message.reverse); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PageRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.offset = reader.uint64(); - break; - case 3: - message.limit = reader.uint64(); - break; - case 4: - message.countTotal = reader.bool(); - break; - case 5: - message.reverse = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PageRequest { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - offset: isSet(object.offset) ? BigInt(object.offset.toString()) : BigInt(0), - limit: isSet(object.limit) ? BigInt(object.limit.toString()) : BigInt(0), - countTotal: isSet(object.countTotal) ? Boolean(object.countTotal) : false, - reverse: isSet(object.reverse) ? Boolean(object.reverse) : false - }; - }, - toJSON(message: PageRequest): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.offset !== undefined && (obj.offset = (message.offset || BigInt(0)).toString()); - message.limit !== undefined && (obj.limit = (message.limit || BigInt(0)).toString()); - message.countTotal !== undefined && (obj.countTotal = message.countTotal); - message.reverse !== undefined && (obj.reverse = message.reverse); - return obj; - }, - fromPartial(object: Partial): PageRequest { - const message = createBasePageRequest(); - message.key = object.key ?? new Uint8Array(); - message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.countTotal = object.countTotal ?? false; - message.reverse = object.reverse ?? false; - return message; - }, - fromAmino(object: PageRequestAmino): PageRequest { - const message = createBasePageRequest(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.offset !== undefined && object.offset !== null) { - message.offset = BigInt(object.offset); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - if (object.count_total !== undefined && object.count_total !== null) { - message.countTotal = object.count_total; - } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = object.reverse; - } - return message; - }, - toAmino(message: PageRequest): PageRequestAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - obj.count_total = message.countTotal === false ? undefined : message.countTotal; - obj.reverse = message.reverse === false ? undefined : message.reverse; - return obj; - }, - fromAminoMsg(object: PageRequestAminoMsg): PageRequest { - return PageRequest.fromAmino(object.value); - }, - toAminoMsg(message: PageRequest): PageRequestAminoMsg { - return { - type: "cosmos-sdk/PageRequest", - value: PageRequest.toAmino(message) - }; - }, - fromProtoMsg(message: PageRequestProtoMsg): PageRequest { - return PageRequest.decode(message.value); - }, - toProto(message: PageRequest): Uint8Array { - return PageRequest.encode(message).finish(); - }, - toProtoMsg(message: PageRequest): PageRequestProtoMsg { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - value: PageRequest.encode(message).finish() - }; - } -}; -function createBasePageResponse(): PageResponse { - return { - nextKey: new Uint8Array(), - total: BigInt(0) - }; -} -export const PageResponse = { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - encode(message: PageResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.nextKey.length !== 0) { - writer.uint32(10).bytes(message.nextKey); - } - if (message.total !== BigInt(0)) { - writer.uint32(16).uint64(message.total); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PageResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nextKey = reader.bytes(); - break; - case 2: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PageResponse { - return { - nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(), - total: isSet(object.total) ? BigInt(object.total.toString()) : BigInt(0) - }; - }, - toJSON(message: PageResponse): unknown { - const obj: any = {}; - message.nextKey !== undefined && (obj.nextKey = base64FromBytes(message.nextKey !== undefined ? message.nextKey : new Uint8Array())); - message.total !== undefined && (obj.total = (message.total || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): PageResponse { - const message = createBasePageResponse(); - message.nextKey = object.nextKey ?? new Uint8Array(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object: PageResponseAmino): PageResponse { - const message = createBasePageResponse(); - if (object.next_key !== undefined && object.next_key !== null) { - message.nextKey = bytesFromBase64(object.next_key); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message: PageResponse): PageResponseAmino { - const obj: any = {}; - obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object: PageResponseAminoMsg): PageResponse { - return PageResponse.fromAmino(object.value); - }, - toAminoMsg(message: PageResponse): PageResponseAminoMsg { - return { - type: "cosmos-sdk/PageResponse", - value: PageResponse.toAmino(message) - }; - }, - fromProtoMsg(message: PageResponseProtoMsg): PageResponse { - return PageResponse.decode(message.value); - }, - toProto(message: PageResponse): Uint8Array { - return PageResponse.encode(message).finish(); - }, - toProtoMsg(message: PageResponse): PageResponseProtoMsg { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - value: PageResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts b/packages/api/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts deleted file mode 100644 index f0e10758..00000000 --- a/packages/api/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +++ /dev/null @@ -1,410 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest {} -export interface ListAllInterfacesRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; - value: Uint8Array; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestAmino {} -export interface ListAllInterfacesRequestAminoMsg { - type: "cosmos-sdk/ListAllInterfacesRequest"; - value: ListAllInterfacesRequestAmino; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType {} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -export interface ListAllInterfacesResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; - value: Uint8Array; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseAmino { - /** interface_names is an array of all the registered interfaces. */ - interface_names?: string[]; -} -export interface ListAllInterfacesResponseAminoMsg { - type: "cosmos-sdk/ListAllInterfacesResponse"; - value: ListAllInterfacesResponseAmino; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -export interface ListImplementationsRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; - value: Uint8Array; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestAmino { - /** interface_name defines the interface to query the implementations for. */ - interface_name?: string; -} -export interface ListImplementationsRequestAminoMsg { - type: "cosmos-sdk/ListImplementationsRequest"; - value: ListImplementationsRequestAmino; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -export interface ListImplementationsResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; - value: Uint8Array; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseAmino { - implementation_message_names?: string[]; -} -export interface ListImplementationsResponseAminoMsg { - type: "cosmos-sdk/ListImplementationsResponse"; - value: ListImplementationsResponseAmino; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} -function createBaseListAllInterfacesRequest(): ListAllInterfacesRequest { - return {}; -} -export const ListAllInterfacesRequest = { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest", - encode(_: ListAllInterfacesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListAllInterfacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): ListAllInterfacesRequest { - return {}; - }, - toJSON(_: ListAllInterfacesRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): ListAllInterfacesRequest { - const message = createBaseListAllInterfacesRequest(); - return message; - }, - fromAmino(_: ListAllInterfacesRequestAmino): ListAllInterfacesRequest { - const message = createBaseListAllInterfacesRequest(); - return message; - }, - toAmino(_: ListAllInterfacesRequest): ListAllInterfacesRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: ListAllInterfacesRequestAminoMsg): ListAllInterfacesRequest { - return ListAllInterfacesRequest.fromAmino(object.value); - }, - toAminoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestAminoMsg { - return { - type: "cosmos-sdk/ListAllInterfacesRequest", - value: ListAllInterfacesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: ListAllInterfacesRequestProtoMsg): ListAllInterfacesRequest { - return ListAllInterfacesRequest.decode(message.value); - }, - toProto(message: ListAllInterfacesRequest): Uint8Array { - return ListAllInterfacesRequest.encode(message).finish(); - }, - toProtoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest", - value: ListAllInterfacesRequest.encode(message).finish() - }; - } -}; -function createBaseListAllInterfacesResponse(): ListAllInterfacesResponse { - return { - interfaceNames: [] - }; -} -export const ListAllInterfacesResponse = { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse", - encode(message: ListAllInterfacesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.interfaceNames) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListAllInterfacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaceNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ListAllInterfacesResponse { - return { - interfaceNames: Array.isArray(object?.interfaceNames) ? object.interfaceNames.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ListAllInterfacesResponse): unknown { - const obj: any = {}; - if (message.interfaceNames) { - obj.interfaceNames = message.interfaceNames.map(e => e); - } else { - obj.interfaceNames = []; - } - return obj; - }, - fromPartial(object: Partial): ListAllInterfacesResponse { - const message = createBaseListAllInterfacesResponse(); - message.interfaceNames = object.interfaceNames?.map(e => e) || []; - return message; - }, - fromAmino(object: ListAllInterfacesResponseAmino): ListAllInterfacesResponse { - const message = createBaseListAllInterfacesResponse(); - message.interfaceNames = object.interface_names?.map(e => e) || []; - return message; - }, - toAmino(message: ListAllInterfacesResponse): ListAllInterfacesResponseAmino { - const obj: any = {}; - if (message.interfaceNames) { - obj.interface_names = message.interfaceNames.map(e => e); - } else { - obj.interface_names = message.interfaceNames; - } - return obj; - }, - fromAminoMsg(object: ListAllInterfacesResponseAminoMsg): ListAllInterfacesResponse { - return ListAllInterfacesResponse.fromAmino(object.value); - }, - toAminoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseAminoMsg { - return { - type: "cosmos-sdk/ListAllInterfacesResponse", - value: ListAllInterfacesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: ListAllInterfacesResponseProtoMsg): ListAllInterfacesResponse { - return ListAllInterfacesResponse.decode(message.value); - }, - toProto(message: ListAllInterfacesResponse): Uint8Array { - return ListAllInterfacesResponse.encode(message).finish(); - }, - toProtoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse", - value: ListAllInterfacesResponse.encode(message).finish() - }; - } -}; -function createBaseListImplementationsRequest(): ListImplementationsRequest { - return { - interfaceName: "" - }; -} -export const ListImplementationsRequest = { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest", - encode(message: ListImplementationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.interfaceName !== "") { - writer.uint32(10).string(message.interfaceName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListImplementationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaceName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ListImplementationsRequest { - return { - interfaceName: isSet(object.interfaceName) ? String(object.interfaceName) : "" - }; - }, - toJSON(message: ListImplementationsRequest): unknown { - const obj: any = {}; - message.interfaceName !== undefined && (obj.interfaceName = message.interfaceName); - return obj; - }, - fromPartial(object: Partial): ListImplementationsRequest { - const message = createBaseListImplementationsRequest(); - message.interfaceName = object.interfaceName ?? ""; - return message; - }, - fromAmino(object: ListImplementationsRequestAmino): ListImplementationsRequest { - const message = createBaseListImplementationsRequest(); - if (object.interface_name !== undefined && object.interface_name !== null) { - message.interfaceName = object.interface_name; - } - return message; - }, - toAmino(message: ListImplementationsRequest): ListImplementationsRequestAmino { - const obj: any = {}; - obj.interface_name = message.interfaceName === "" ? undefined : message.interfaceName; - return obj; - }, - fromAminoMsg(object: ListImplementationsRequestAminoMsg): ListImplementationsRequest { - return ListImplementationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: ListImplementationsRequest): ListImplementationsRequestAminoMsg { - return { - type: "cosmos-sdk/ListImplementationsRequest", - value: ListImplementationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: ListImplementationsRequestProtoMsg): ListImplementationsRequest { - return ListImplementationsRequest.decode(message.value); - }, - toProto(message: ListImplementationsRequest): Uint8Array { - return ListImplementationsRequest.encode(message).finish(); - }, - toProtoMsg(message: ListImplementationsRequest): ListImplementationsRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest", - value: ListImplementationsRequest.encode(message).finish() - }; - } -}; -function createBaseListImplementationsResponse(): ListImplementationsResponse { - return { - implementationMessageNames: [] - }; -} -export const ListImplementationsResponse = { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse", - encode(message: ListImplementationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.implementationMessageNames) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListImplementationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.implementationMessageNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ListImplementationsResponse { - return { - implementationMessageNames: Array.isArray(object?.implementationMessageNames) ? object.implementationMessageNames.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ListImplementationsResponse): unknown { - const obj: any = {}; - if (message.implementationMessageNames) { - obj.implementationMessageNames = message.implementationMessageNames.map(e => e); - } else { - obj.implementationMessageNames = []; - } - return obj; - }, - fromPartial(object: Partial): ListImplementationsResponse { - const message = createBaseListImplementationsResponse(); - message.implementationMessageNames = object.implementationMessageNames?.map(e => e) || []; - return message; - }, - fromAmino(object: ListImplementationsResponseAmino): ListImplementationsResponse { - const message = createBaseListImplementationsResponse(); - message.implementationMessageNames = object.implementation_message_names?.map(e => e) || []; - return message; - }, - toAmino(message: ListImplementationsResponse): ListImplementationsResponseAmino { - const obj: any = {}; - if (message.implementationMessageNames) { - obj.implementation_message_names = message.implementationMessageNames.map(e => e); - } else { - obj.implementation_message_names = message.implementationMessageNames; - } - return obj; - }, - fromAminoMsg(object: ListImplementationsResponseAminoMsg): ListImplementationsResponse { - return ListImplementationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: ListImplementationsResponse): ListImplementationsResponseAminoMsg { - return { - type: "cosmos-sdk/ListImplementationsResponse", - value: ListImplementationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: ListImplementationsResponseProtoMsg): ListImplementationsResponse { - return ListImplementationsResponse.decode(message.value); - }, - toProto(message: ListImplementationsResponse): Uint8Array { - return ListImplementationsResponse.encode(message).finish(); - }, - toProtoMsg(message: ListImplementationsResponse): ListImplementationsResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse", - value: ListImplementationsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts b/packages/api/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts deleted file mode 100644 index 2299f569..00000000 --- a/packages/api/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +++ /dev/null @@ -1,2918 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptor { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptor; - /** chain provides the chain descriptor */ - chain?: ChainDescriptor; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptor; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptor; - /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices?: QueryServicesDescriptor; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptor; -} -export interface AppDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; - value: Uint8Array; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorAmino { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptorAmino; - /** chain provides the chain descriptor */ - chain?: ChainDescriptorAmino; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptorAmino; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptorAmino; - /** query_services provides metadata information regarding the available queriable endpoints */ - query_services?: QueryServicesDescriptorAmino; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptorAmino; -} -export interface AppDescriptorAminoMsg { - type: "cosmos-sdk/AppDescriptor"; - value: AppDescriptorAmino; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorSDKType { - authn?: AuthnDescriptorSDKType; - chain?: ChainDescriptorSDKType; - codec?: CodecDescriptorSDKType; - configuration?: ConfigurationDescriptorSDKType; - query_services?: QueryServicesDescriptorSDKType; - tx?: TxDescriptorSDKType; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptor { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptor[]; -} -export interface TxDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; - value: Uint8Array; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorAmino { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname?: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs?: MsgDescriptorAmino[]; -} -export interface TxDescriptorAminoMsg { - type: "cosmos-sdk/TxDescriptor"; - value: TxDescriptorAmino; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorSDKType { - fullname: string; - msgs: MsgDescriptorSDKType[]; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptor { - /** sign_modes defines the supported signature algorithm */ - signModes: SigningModeDescriptor[]; -} -export interface AuthnDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - value: Uint8Array; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorAmino { - /** sign_modes defines the supported signature algorithm */ - sign_modes?: SigningModeDescriptorAmino[]; -} -export interface AuthnDescriptorAminoMsg { - type: "cosmos-sdk/AuthnDescriptor"; - value: AuthnDescriptorAmino; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorSDKType { - sign_modes: SigningModeDescriptorSDKType[]; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptor { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authnInfoProviderMethodFullname: string; -} -export interface SigningModeDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - value: Uint8Array; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorAmino { - /** name defines the unique name of the signing mode */ - name?: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number?: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authn_info_provider_method_fullname?: string; -} -export interface SigningModeDescriptorAminoMsg { - type: "cosmos-sdk/SigningModeDescriptor"; - value: SigningModeDescriptorAmino; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorSDKType { - name: string; - number: number; - authn_info_provider_method_fullname: string; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptor { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; - value: Uint8Array; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorAmino { - /** id is the chain id */ - id?: string; -} -export interface ChainDescriptorAminoMsg { - type: "cosmos-sdk/ChainDescriptor"; - value: ChainDescriptorAmino; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorSDKType { - id: string; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptor { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptor[]; -} -export interface CodecDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; - value: Uint8Array; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorAmino { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces?: InterfaceDescriptorAmino[]; -} -export interface CodecDescriptorAminoMsg { - type: "cosmos-sdk/CodecDescriptor"; - value: CodecDescriptorAmino; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorSDKType { - interfaces: InterfaceDescriptorSDKType[]; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptor { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interfaceImplementers: InterfaceImplementerDescriptor[]; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - value: Uint8Array; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorAmino { - /** fullname is the name of the interface */ - fullname?: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers?: InterfaceImplementerDescriptorAmino[]; -} -export interface InterfaceDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorSDKType { - fullname: string; - interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; - interface_implementers: InterfaceImplementerDescriptorSDKType[]; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptor { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - typeUrl: string; -} -export interface InterfaceImplementerDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - value: Uint8Array; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorAmino { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname?: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - type_url?: string; -} -export interface InterfaceImplementerDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceImplementerDescriptor"; - value: InterfaceImplementerDescriptorAmino; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorSDKType { - fullname: string; - type_url: string; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptor { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - fieldDescriptorNames: string[]; -} -export interface InterfaceAcceptingMessageDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - value: Uint8Array; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorAmino { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname?: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - field_descriptor_names?: string[]; -} -export interface InterfaceAcceptingMessageDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; - value: InterfaceAcceptingMessageDescriptorAmino; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorSDKType { - fullname: string; - field_descriptor_names: string[]; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptor { - /** bech32_account_address_prefix is the account address prefix */ - bech32AccountAddressPrefix: string; -} -export interface ConfigurationDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - value: Uint8Array; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorAmino { - /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix?: string; -} -export interface ConfigurationDescriptorAminoMsg { - type: "cosmos-sdk/ConfigurationDescriptor"; - value: ConfigurationDescriptorAmino; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorSDKType { - bech32_account_address_prefix: string; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptor { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msgTypeUrl: string; -} -export interface MsgDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; - value: Uint8Array; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorAmino { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url?: string; -} -export interface MsgDescriptorAminoMsg { - type: "cosmos-sdk/MsgDescriptor"; - value: MsgDescriptorAmino; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorSDKType { - msg_type_url: string; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequest {} -export interface GetAuthnDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - value: Uint8Array; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestAmino {} -export interface GetAuthnDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorRequest"; - value: GetAuthnDescriptorRequestAmino; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestSDKType {} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponse { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptor; -} -export interface GetAuthnDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - value: Uint8Array; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseAmino { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptorAmino; -} -export interface GetAuthnDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorResponse"; - value: GetAuthnDescriptorResponseAmino; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseSDKType { - authn?: AuthnDescriptorSDKType; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequest {} -export interface GetChainDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - value: Uint8Array; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestAmino {} -export interface GetChainDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetChainDescriptorRequest"; - value: GetChainDescriptorRequestAmino; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestSDKType {} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponse { - /** chain describes application chain information */ - chain?: ChainDescriptor; -} -export interface GetChainDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - value: Uint8Array; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseAmino { - /** chain describes application chain information */ - chain?: ChainDescriptorAmino; -} -export interface GetChainDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetChainDescriptorResponse"; - value: GetChainDescriptorResponseAmino; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseSDKType { - chain?: ChainDescriptorSDKType; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequest {} -export interface GetCodecDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - value: Uint8Array; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestAmino {} -export interface GetCodecDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorRequest"; - value: GetCodecDescriptorRequestAmino; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestSDKType {} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponse { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptor; -} -export interface GetCodecDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - value: Uint8Array; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseAmino { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptorAmino; -} -export interface GetCodecDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorResponse"; - value: GetCodecDescriptorResponseAmino; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseSDKType { - codec?: CodecDescriptorSDKType; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequest {} -export interface GetConfigurationDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - value: Uint8Array; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestAmino {} -export interface GetConfigurationDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorRequest"; - value: GetConfigurationDescriptorRequestAmino; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestSDKType {} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponse { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptor; -} -export interface GetConfigurationDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - value: Uint8Array; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseAmino { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptorAmino; -} -export interface GetConfigurationDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorResponse"; - value: GetConfigurationDescriptorResponseAmino; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseSDKType { - config?: ConfigurationDescriptorSDKType; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequest {} -export interface GetQueryServicesDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestAmino {} -export interface GetQueryServicesDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; - value: GetQueryServicesDescriptorRequestAmino; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestSDKType {} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponse { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptor; -} -export interface GetQueryServicesDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseAmino { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptorAmino; -} -export interface GetQueryServicesDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; - value: GetQueryServicesDescriptorResponseAmino; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseSDKType { - queries?: QueryServicesDescriptorSDKType; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequest {} -export interface GetTxDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - value: Uint8Array; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestAmino {} -export interface GetTxDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetTxDescriptorRequest"; - value: GetTxDescriptorRequestAmino; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestSDKType {} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponse { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptor; -} -export interface GetTxDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - value: Uint8Array; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseAmino { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptorAmino; -} -export interface GetTxDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetTxDescriptorResponse"; - value: GetTxDescriptorResponseAmino; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseSDKType { - tx?: TxDescriptorSDKType; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptor { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - queryServices: QueryServiceDescriptor[]; -} -export interface QueryServicesDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - value: Uint8Array; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorAmino { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services?: QueryServiceDescriptorAmino[]; -} -export interface QueryServicesDescriptorAminoMsg { - type: "cosmos-sdk/QueryServicesDescriptor"; - value: QueryServicesDescriptorAmino; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorSDKType { - query_services: QueryServiceDescriptorSDKType[]; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptor { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - isModule: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptor[]; -} -export interface QueryServiceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - value: Uint8Array; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorAmino { - /** fullname is the protobuf fullname of the service descriptor */ - fullname?: string; - /** is_module describes if this service is actually exposed by an application's module */ - is_module?: boolean; - /** methods provides a list of query service methods */ - methods?: QueryMethodDescriptorAmino[]; -} -export interface QueryServiceDescriptorAminoMsg { - type: "cosmos-sdk/QueryServiceDescriptor"; - value: QueryServiceDescriptorAmino; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorSDKType { - fullname: string; - is_module: boolean; - methods: QueryMethodDescriptorSDKType[]; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptor { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - fullQueryPath: string; -} -export interface QueryMethodDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - value: Uint8Array; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorAmino { - /** name is the protobuf name (not fullname) of the method */ - name?: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - full_query_path?: string; -} -export interface QueryMethodDescriptorAminoMsg { - type: "cosmos-sdk/QueryMethodDescriptor"; - value: QueryMethodDescriptorAmino; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorSDKType { - name: string; - full_query_path: string; -} -function createBaseAppDescriptor(): AppDescriptor { - return { - authn: undefined, - chain: undefined, - codec: undefined, - configuration: undefined, - queryServices: undefined, - tx: undefined - }; -} -export const AppDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - encode(message: AppDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authn !== undefined) { - AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - if (message.chain !== undefined) { - ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); - } - if (message.codec !== undefined) { - CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); - } - if (message.configuration !== undefined) { - ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); - } - if (message.queryServices !== undefined) { - QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); - } - if (message.tx !== undefined) { - TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAppDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = AuthnDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.chain = ChainDescriptor.decode(reader, reader.uint32()); - break; - case 3: - message.codec = CodecDescriptor.decode(reader, reader.uint32()); - break; - case 4: - message.configuration = ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - case 5: - message.queryServices = QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - case 6: - message.tx = TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AppDescriptor { - return { - authn: isSet(object.authn) ? AuthnDescriptor.fromJSON(object.authn) : undefined, - chain: isSet(object.chain) ? ChainDescriptor.fromJSON(object.chain) : undefined, - codec: isSet(object.codec) ? CodecDescriptor.fromJSON(object.codec) : undefined, - configuration: isSet(object.configuration) ? ConfigurationDescriptor.fromJSON(object.configuration) : undefined, - queryServices: isSet(object.queryServices) ? QueryServicesDescriptor.fromJSON(object.queryServices) : undefined, - tx: isSet(object.tx) ? TxDescriptor.fromJSON(object.tx) : undefined - }; - }, - toJSON(message: AppDescriptor): unknown { - const obj: any = {}; - message.authn !== undefined && (obj.authn = message.authn ? AuthnDescriptor.toJSON(message.authn) : undefined); - message.chain !== undefined && (obj.chain = message.chain ? ChainDescriptor.toJSON(message.chain) : undefined); - message.codec !== undefined && (obj.codec = message.codec ? CodecDescriptor.toJSON(message.codec) : undefined); - message.configuration !== undefined && (obj.configuration = message.configuration ? ConfigurationDescriptor.toJSON(message.configuration) : undefined); - message.queryServices !== undefined && (obj.queryServices = message.queryServices ? QueryServicesDescriptor.toJSON(message.queryServices) : undefined); - message.tx !== undefined && (obj.tx = message.tx ? TxDescriptor.toJSON(message.tx) : undefined); - return obj; - }, - fromPartial(object: Partial): AppDescriptor { - const message = createBaseAppDescriptor(); - message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; - message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; - message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; - message.configuration = object.configuration !== undefined && object.configuration !== null ? ConfigurationDescriptor.fromPartial(object.configuration) : undefined; - message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; - message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object: AppDescriptorAmino): AppDescriptor { - const message = createBaseAppDescriptor(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = AuthnDescriptor.fromAmino(object.authn); - } - if (object.chain !== undefined && object.chain !== null) { - message.chain = ChainDescriptor.fromAmino(object.chain); - } - if (object.codec !== undefined && object.codec !== null) { - message.codec = CodecDescriptor.fromAmino(object.codec); - } - if (object.configuration !== undefined && object.configuration !== null) { - message.configuration = ConfigurationDescriptor.fromAmino(object.configuration); - } - if (object.query_services !== undefined && object.query_services !== null) { - message.queryServices = QueryServicesDescriptor.fromAmino(object.query_services); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message: AppDescriptor): AppDescriptorAmino { - const obj: any = {}; - obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; - obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; - obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; - obj.configuration = message.configuration ? ConfigurationDescriptor.toAmino(message.configuration) : undefined; - obj.query_services = message.queryServices ? QueryServicesDescriptor.toAmino(message.queryServices) : undefined; - obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object: AppDescriptorAminoMsg): AppDescriptor { - return AppDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: AppDescriptor): AppDescriptorAminoMsg { - return { - type: "cosmos-sdk/AppDescriptor", - value: AppDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: AppDescriptorProtoMsg): AppDescriptor { - return AppDescriptor.decode(message.value); - }, - toProto(message: AppDescriptor): Uint8Array { - return AppDescriptor.encode(message).finish(); - }, - toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - value: AppDescriptor.encode(message).finish() - }; - } -}; -function createBaseTxDescriptor(): TxDescriptor { - return { - fullname: "", - msgs: [] - }; -} -export const TxDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - encode(message: TxDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.msgs) { - MsgDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.msgs.push(MsgDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxDescriptor { - return { - fullname: isSet(object.fullname) ? String(object.fullname) : "", - msgs: Array.isArray(object?.msgs) ? object.msgs.map((e: any) => MsgDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: TxDescriptor): unknown { - const obj: any = {}; - message.fullname !== undefined && (obj.fullname = message.fullname); - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toJSON(e) : undefined); - } else { - obj.msgs = []; - } - return obj; - }, - fromPartial(object: Partial): TxDescriptor { - const message = createBaseTxDescriptor(); - message.fullname = object.fullname ?? ""; - message.msgs = object.msgs?.map(e => MsgDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: TxDescriptorAmino): TxDescriptor { - const message = createBaseTxDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.msgs = object.msgs?.map(e => MsgDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: TxDescriptor): TxDescriptorAmino { - const obj: any = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toAmino(e) : undefined); - } else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object: TxDescriptorAminoMsg): TxDescriptor { - return TxDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: TxDescriptor): TxDescriptorAminoMsg { - return { - type: "cosmos-sdk/TxDescriptor", - value: TxDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: TxDescriptorProtoMsg): TxDescriptor { - return TxDescriptor.decode(message.value); - }, - toProto(message: TxDescriptor): Uint8Array { - return TxDescriptor.encode(message).finish(); - }, - toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - value: TxDescriptor.encode(message).finish() - }; - } -}; -function createBaseAuthnDescriptor(): AuthnDescriptor { - return { - signModes: [] - }; -} -export const AuthnDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - encode(message: AuthnDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.signModes) { - SigningModeDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthnDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signModes.push(SigningModeDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AuthnDescriptor { - return { - signModes: Array.isArray(object?.signModes) ? object.signModes.map((e: any) => SigningModeDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: AuthnDescriptor): unknown { - const obj: any = {}; - if (message.signModes) { - obj.signModes = message.signModes.map(e => e ? SigningModeDescriptor.toJSON(e) : undefined); - } else { - obj.signModes = []; - } - return obj; - }, - fromPartial(object: Partial): AuthnDescriptor { - const message = createBaseAuthnDescriptor(); - message.signModes = object.signModes?.map(e => SigningModeDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: AuthnDescriptorAmino): AuthnDescriptor { - const message = createBaseAuthnDescriptor(); - message.signModes = object.sign_modes?.map(e => SigningModeDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: AuthnDescriptor): AuthnDescriptorAmino { - const obj: any = {}; - if (message.signModes) { - obj.sign_modes = message.signModes.map(e => e ? SigningModeDescriptor.toAmino(e) : undefined); - } else { - obj.sign_modes = message.signModes; - } - return obj; - }, - fromAminoMsg(object: AuthnDescriptorAminoMsg): AuthnDescriptor { - return AuthnDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: AuthnDescriptor): AuthnDescriptorAminoMsg { - return { - type: "cosmos-sdk/AuthnDescriptor", - value: AuthnDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: AuthnDescriptorProtoMsg): AuthnDescriptor { - return AuthnDescriptor.decode(message.value); - }, - toProto(message: AuthnDescriptor): Uint8Array { - return AuthnDescriptor.encode(message).finish(); - }, - toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - value: AuthnDescriptor.encode(message).finish() - }; - } -}; -function createBaseSigningModeDescriptor(): SigningModeDescriptor { - return { - name: "", - number: 0, - authnInfoProviderMethodFullname: "" - }; -} -export const SigningModeDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - encode(message: SigningModeDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.authnInfoProviderMethodFullname !== "") { - writer.uint32(26).string(message.authnInfoProviderMethodFullname); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSigningModeDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.authnInfoProviderMethodFullname = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SigningModeDescriptor { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - authnInfoProviderMethodFullname: isSet(object.authnInfoProviderMethodFullname) ? String(object.authnInfoProviderMethodFullname) : "" - }; - }, - toJSON(message: SigningModeDescriptor): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.authnInfoProviderMethodFullname !== undefined && (obj.authnInfoProviderMethodFullname = message.authnInfoProviderMethodFullname); - return obj; - }, - fromPartial(object: Partial): SigningModeDescriptor { - const message = createBaseSigningModeDescriptor(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; - return message; - }, - fromAmino(object: SigningModeDescriptorAmino): SigningModeDescriptor { - const message = createBaseSigningModeDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { - message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; - } - return message; - }, - toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; - return obj; - }, - fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor { - return SigningModeDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: SigningModeDescriptor): SigningModeDescriptorAminoMsg { - return { - type: "cosmos-sdk/SigningModeDescriptor", - value: SigningModeDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: SigningModeDescriptorProtoMsg): SigningModeDescriptor { - return SigningModeDescriptor.decode(message.value); - }, - toProto(message: SigningModeDescriptor): Uint8Array { - return SigningModeDescriptor.encode(message).finish(); - }, - toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - value: SigningModeDescriptor.encode(message).finish() - }; - } -}; -function createBaseChainDescriptor(): ChainDescriptor { - return { - id: "" - }; -} -export const ChainDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - encode(message: ChainDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseChainDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ChainDescriptor { - return { - id: isSet(object.id) ? String(object.id) : "" - }; - }, - toJSON(message: ChainDescriptor): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - return obj; - }, - fromPartial(object: Partial): ChainDescriptor { - const message = createBaseChainDescriptor(); - message.id = object.id ?? ""; - return message; - }, - fromAmino(object: ChainDescriptorAmino): ChainDescriptor { - const message = createBaseChainDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message: ChainDescriptor): ChainDescriptorAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - return obj; - }, - fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor { - return ChainDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: ChainDescriptor): ChainDescriptorAminoMsg { - return { - type: "cosmos-sdk/ChainDescriptor", - value: ChainDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: ChainDescriptorProtoMsg): ChainDescriptor { - return ChainDescriptor.decode(message.value); - }, - toProto(message: ChainDescriptor): Uint8Array { - return ChainDescriptor.encode(message).finish(); - }, - toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - value: ChainDescriptor.encode(message).finish() - }; - } -}; -function createBaseCodecDescriptor(): CodecDescriptor { - return { - interfaces: [] - }; -} -export const CodecDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - encode(message: CodecDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.interfaces) { - InterfaceDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCodecDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaces.push(InterfaceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CodecDescriptor { - return { - interfaces: Array.isArray(object?.interfaces) ? object.interfaces.map((e: any) => InterfaceDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: CodecDescriptor): unknown { - const obj: any = {}; - if (message.interfaces) { - obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toJSON(e) : undefined); - } else { - obj.interfaces = []; - } - return obj; - }, - fromPartial(object: Partial): CodecDescriptor { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CodecDescriptorAmino): CodecDescriptor { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: CodecDescriptor): CodecDescriptorAmino { - const obj: any = {}; - if (message.interfaces) { - obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toAmino(e) : undefined); - } else { - obj.interfaces = message.interfaces; - } - return obj; - }, - fromAminoMsg(object: CodecDescriptorAminoMsg): CodecDescriptor { - return CodecDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: CodecDescriptor): CodecDescriptorAminoMsg { - return { - type: "cosmos-sdk/CodecDescriptor", - value: CodecDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: CodecDescriptorProtoMsg): CodecDescriptor { - return CodecDescriptor.decode(message.value); - }, - toProto(message: CodecDescriptor): Uint8Array { - return CodecDescriptor.encode(message).finish(); - }, - toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - value: CodecDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceDescriptor(): InterfaceDescriptor { - return { - fullname: "", - interfaceAcceptingMessages: [], - interfaceImplementers: [] - }; -} -export const InterfaceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - encode(message: InterfaceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.interfaceAcceptingMessages) { - InterfaceAcceptingMessageDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.interfaceImplementers) { - InterfaceImplementerDescriptor.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.interfaceAcceptingMessages.push(InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.interfaceImplementers.push(InterfaceImplementerDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): InterfaceDescriptor { - return { - fullname: isSet(object.fullname) ? String(object.fullname) : "", - interfaceAcceptingMessages: Array.isArray(object?.interfaceAcceptingMessages) ? object.interfaceAcceptingMessages.map((e: any) => InterfaceAcceptingMessageDescriptor.fromJSON(e)) : [], - interfaceImplementers: Array.isArray(object?.interfaceImplementers) ? object.interfaceImplementers.map((e: any) => InterfaceImplementerDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: InterfaceDescriptor): unknown { - const obj: any = {}; - message.fullname !== undefined && (obj.fullname = message.fullname); - if (message.interfaceAcceptingMessages) { - obj.interfaceAcceptingMessages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toJSON(e) : undefined); - } else { - obj.interfaceAcceptingMessages = []; - } - if (message.interfaceImplementers) { - obj.interfaceImplementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toJSON(e) : undefined); - } else { - obj.interfaceImplementers = []; - } - return obj; - }, - fromPartial(object: Partial): InterfaceDescriptor { - const message = createBaseInterfaceDescriptor(); - message.fullname = object.fullname ?? ""; - message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; - message.interfaceImplementers = object.interfaceImplementers?.map(e => InterfaceImplementerDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor { - const message = createBaseInterfaceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; - message.interfaceImplementers = object.interface_implementers?.map(e => InterfaceImplementerDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { - const obj: any = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.interfaceAcceptingMessages) { - obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); - } else { - obj.interface_accepting_messages = message.interfaceAcceptingMessages; - } - if (message.interfaceImplementers) { - obj.interface_implementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toAmino(e) : undefined); - } else { - obj.interface_implementers = message.interfaceImplementers; - } - return obj; - }, - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor { - return InterfaceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: InterfaceDescriptor): InterfaceDescriptorAminoMsg { - return { - type: "cosmos-sdk/InterfaceDescriptor", - value: InterfaceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor { - return InterfaceDescriptor.decode(message.value); - }, - toProto(message: InterfaceDescriptor): Uint8Array { - return InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - value: InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceImplementerDescriptor(): InterfaceImplementerDescriptor { - return { - fullname: "", - typeUrl: "" - }; -} -export const InterfaceImplementerDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - encode(message: InterfaceImplementerDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.typeUrl !== "") { - writer.uint32(18).string(message.typeUrl); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceImplementerDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.typeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): InterfaceImplementerDescriptor { - return { - fullname: isSet(object.fullname) ? String(object.fullname) : "", - typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "" - }; - }, - toJSON(message: InterfaceImplementerDescriptor): unknown { - const obj: any = {}; - message.fullname !== undefined && (obj.fullname = message.fullname); - message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); - return obj; - }, - fromPartial(object: Partial): InterfaceImplementerDescriptor { - const message = createBaseInterfaceImplementerDescriptor(); - message.fullname = object.fullname ?? ""; - message.typeUrl = object.typeUrl ?? ""; - return message; - }, - fromAmino(object: InterfaceImplementerDescriptorAmino): InterfaceImplementerDescriptor { - const message = createBaseInterfaceImplementerDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.type_url !== undefined && object.type_url !== null) { - message.typeUrl = object.type_url; - } - return message; - }, - toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino { - const obj: any = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; - return obj; - }, - fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor { - return InterfaceImplementerDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAminoMsg { - return { - type: "cosmos-sdk/InterfaceImplementerDescriptor", - value: InterfaceImplementerDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: InterfaceImplementerDescriptorProtoMsg): InterfaceImplementerDescriptor { - return InterfaceImplementerDescriptor.decode(message.value); - }, - toProto(message: InterfaceImplementerDescriptor): Uint8Array { - return InterfaceImplementerDescriptor.encode(message).finish(); - }, - toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - value: InterfaceImplementerDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceAcceptingMessageDescriptor(): InterfaceAcceptingMessageDescriptor { - return { - fullname: "", - fieldDescriptorNames: [] - }; -} -export const InterfaceAcceptingMessageDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - encode(message: InterfaceAcceptingMessageDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.fieldDescriptorNames) { - writer.uint32(18).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceAcceptingMessageDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.fieldDescriptorNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): InterfaceAcceptingMessageDescriptor { - return { - fullname: isSet(object.fullname) ? String(object.fullname) : "", - fieldDescriptorNames: Array.isArray(object?.fieldDescriptorNames) ? object.fieldDescriptorNames.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: InterfaceAcceptingMessageDescriptor): unknown { - const obj: any = {}; - message.fullname !== undefined && (obj.fullname = message.fullname); - if (message.fieldDescriptorNames) { - obj.fieldDescriptorNames = message.fieldDescriptorNames.map(e => e); - } else { - obj.fieldDescriptorNames = []; - } - return obj; - }, - fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - message.fullname = object.fullname ?? ""; - message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; - return message; - }, - fromAmino(object: InterfaceAcceptingMessageDescriptorAmino): InterfaceAcceptingMessageDescriptor { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; - return message; - }, - toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino { - const obj: any = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.fieldDescriptorNames) { - obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); - } else { - obj.field_descriptor_names = message.fieldDescriptorNames; - } - return obj; - }, - fromAminoMsg(object: InterfaceAcceptingMessageDescriptorAminoMsg): InterfaceAcceptingMessageDescriptor { - return InterfaceAcceptingMessageDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAminoMsg { - return { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", - value: InterfaceAcceptingMessageDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: InterfaceAcceptingMessageDescriptorProtoMsg): InterfaceAcceptingMessageDescriptor { - return InterfaceAcceptingMessageDescriptor.decode(message.value); - }, - toProto(message: InterfaceAcceptingMessageDescriptor): Uint8Array { - return InterfaceAcceptingMessageDescriptor.encode(message).finish(); - }, - toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - value: InterfaceAcceptingMessageDescriptor.encode(message).finish() - }; - } -}; -function createBaseConfigurationDescriptor(): ConfigurationDescriptor { - return { - bech32AccountAddressPrefix: "" - }; -} -export const ConfigurationDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - encode(message: ConfigurationDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bech32AccountAddressPrefix !== "") { - writer.uint32(10).string(message.bech32AccountAddressPrefix); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigurationDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32AccountAddressPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConfigurationDescriptor { - return { - bech32AccountAddressPrefix: isSet(object.bech32AccountAddressPrefix) ? String(object.bech32AccountAddressPrefix) : "" - }; - }, - toJSON(message: ConfigurationDescriptor): unknown { - const obj: any = {}; - message.bech32AccountAddressPrefix !== undefined && (obj.bech32AccountAddressPrefix = message.bech32AccountAddressPrefix); - return obj; - }, - fromPartial(object: Partial): ConfigurationDescriptor { - const message = createBaseConfigurationDescriptor(); - message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; - return message; - }, - fromAmino(object: ConfigurationDescriptorAmino): ConfigurationDescriptor { - const message = createBaseConfigurationDescriptor(); - if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { - message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; - } - return message; - }, - toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino { - const obj: any = {}; - obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; - return obj; - }, - fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor { - return ConfigurationDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorAminoMsg { - return { - type: "cosmos-sdk/ConfigurationDescriptor", - value: ConfigurationDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: ConfigurationDescriptorProtoMsg): ConfigurationDescriptor { - return ConfigurationDescriptor.decode(message.value); - }, - toProto(message: ConfigurationDescriptor): Uint8Array { - return ConfigurationDescriptor.encode(message).finish(); - }, - toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - value: ConfigurationDescriptor.encode(message).finish() - }; - } -}; -function createBaseMsgDescriptor(): MsgDescriptor { - return { - msgTypeUrl: "" - }; -} -export const MsgDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - encode(message: MsgDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.msgTypeUrl !== "") { - writer.uint32(10).string(message.msgTypeUrl); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDescriptor { - return { - msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "" - }; - }, - toJSON(message: MsgDescriptor): unknown { - const obj: any = {}; - message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl); - return obj; - }, - fromPartial(object: Partial): MsgDescriptor { - const message = createBaseMsgDescriptor(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object: MsgDescriptorAmino): MsgDescriptor { - const message = createBaseMsgDescriptor(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message: MsgDescriptor): MsgDescriptorAmino { - const obj: any = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor { - return MsgDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: MsgDescriptor): MsgDescriptorAminoMsg { - return { - type: "cosmos-sdk/MsgDescriptor", - value: MsgDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDescriptorProtoMsg): MsgDescriptor { - return MsgDescriptor.decode(message.value); - }, - toProto(message: MsgDescriptor): Uint8Array { - return MsgDescriptor.encode(message).finish(); - }, - toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - value: MsgDescriptor.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorRequest(): GetAuthnDescriptorRequest { - return {}; -} -export const GetAuthnDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - encode(_: GetAuthnDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetAuthnDescriptorRequest { - return {}; - }, - toJSON(_: GetAuthnDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetAuthnDescriptorRequest { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - fromAmino(_: GetAuthnDescriptorRequestAmino): GetAuthnDescriptorRequest { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - toAmino(_: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetAuthnDescriptorRequestAminoMsg): GetAuthnDescriptorRequest { - return GetAuthnDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetAuthnDescriptorRequest", - value: GetAuthnDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetAuthnDescriptorRequestProtoMsg): GetAuthnDescriptorRequest { - return GetAuthnDescriptorRequest.decode(message.value); - }, - toProto(message: GetAuthnDescriptorRequest): Uint8Array { - return GetAuthnDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - value: GetAuthnDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorResponse(): GetAuthnDescriptorResponse { - return { - authn: undefined - }; -} -export const GetAuthnDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - encode(message: GetAuthnDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authn !== undefined) { - AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = AuthnDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetAuthnDescriptorResponse { - return { - authn: isSet(object.authn) ? AuthnDescriptor.fromJSON(object.authn) : undefined - }; - }, - toJSON(message: GetAuthnDescriptorResponse): unknown { - const obj: any = {}; - message.authn !== undefined && (obj.authn = message.authn ? AuthnDescriptor.toJSON(message.authn) : undefined); - return obj; - }, - fromPartial(object: Partial): GetAuthnDescriptorResponse { - const message = createBaseGetAuthnDescriptorResponse(); - message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; - return message; - }, - fromAmino(object: GetAuthnDescriptorResponseAmino): GetAuthnDescriptorResponse { - const message = createBaseGetAuthnDescriptorResponse(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = AuthnDescriptor.fromAmino(object.authn); - } - return message; - }, - toAmino(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAmino { - const obj: any = {}; - obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; - return obj; - }, - fromAminoMsg(object: GetAuthnDescriptorResponseAminoMsg): GetAuthnDescriptorResponse { - return GetAuthnDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetAuthnDescriptorResponse", - value: GetAuthnDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetAuthnDescriptorResponseProtoMsg): GetAuthnDescriptorResponse { - return GetAuthnDescriptorResponse.decode(message.value); - }, - toProto(message: GetAuthnDescriptorResponse): Uint8Array { - return GetAuthnDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - value: GetAuthnDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorRequest(): GetChainDescriptorRequest { - return {}; -} -export const GetChainDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - encode(_: GetChainDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetChainDescriptorRequest { - return {}; - }, - toJSON(_: GetChainDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetChainDescriptorRequest { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - fromAmino(_: GetChainDescriptorRequestAmino): GetChainDescriptorRequest { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - toAmino(_: GetChainDescriptorRequest): GetChainDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetChainDescriptorRequestAminoMsg): GetChainDescriptorRequest { - return GetChainDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetChainDescriptorRequest", - value: GetChainDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetChainDescriptorRequestProtoMsg): GetChainDescriptorRequest { - return GetChainDescriptorRequest.decode(message.value); - }, - toProto(message: GetChainDescriptorRequest): Uint8Array { - return GetChainDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - value: GetChainDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorResponse(): GetChainDescriptorResponse { - return { - chain: undefined - }; -} -export const GetChainDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - encode(message: GetChainDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.chain !== undefined) { - ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chain = ChainDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetChainDescriptorResponse { - return { - chain: isSet(object.chain) ? ChainDescriptor.fromJSON(object.chain) : undefined - }; - }, - toJSON(message: GetChainDescriptorResponse): unknown { - const obj: any = {}; - message.chain !== undefined && (obj.chain = message.chain ? ChainDescriptor.toJSON(message.chain) : undefined); - return obj; - }, - fromPartial(object: Partial): GetChainDescriptorResponse { - const message = createBaseGetChainDescriptorResponse(); - message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; - return message; - }, - fromAmino(object: GetChainDescriptorResponseAmino): GetChainDescriptorResponse { - const message = createBaseGetChainDescriptorResponse(); - if (object.chain !== undefined && object.chain !== null) { - message.chain = ChainDescriptor.fromAmino(object.chain); - } - return message; - }, - toAmino(message: GetChainDescriptorResponse): GetChainDescriptorResponseAmino { - const obj: any = {}; - obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; - return obj; - }, - fromAminoMsg(object: GetChainDescriptorResponseAminoMsg): GetChainDescriptorResponse { - return GetChainDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetChainDescriptorResponse", - value: GetChainDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetChainDescriptorResponseProtoMsg): GetChainDescriptorResponse { - return GetChainDescriptorResponse.decode(message.value); - }, - toProto(message: GetChainDescriptorResponse): Uint8Array { - return GetChainDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - value: GetChainDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorRequest(): GetCodecDescriptorRequest { - return {}; -} -export const GetCodecDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - encode(_: GetCodecDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetCodecDescriptorRequest { - return {}; - }, - toJSON(_: GetCodecDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetCodecDescriptorRequest { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - fromAmino(_: GetCodecDescriptorRequestAmino): GetCodecDescriptorRequest { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - toAmino(_: GetCodecDescriptorRequest): GetCodecDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetCodecDescriptorRequestAminoMsg): GetCodecDescriptorRequest { - return GetCodecDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetCodecDescriptorRequest", - value: GetCodecDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetCodecDescriptorRequestProtoMsg): GetCodecDescriptorRequest { - return GetCodecDescriptorRequest.decode(message.value); - }, - toProto(message: GetCodecDescriptorRequest): Uint8Array { - return GetCodecDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - value: GetCodecDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorResponse(): GetCodecDescriptorResponse { - return { - codec: undefined - }; -} -export const GetCodecDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - encode(message: GetCodecDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.codec !== undefined) { - CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.codec = CodecDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetCodecDescriptorResponse { - return { - codec: isSet(object.codec) ? CodecDescriptor.fromJSON(object.codec) : undefined - }; - }, - toJSON(message: GetCodecDescriptorResponse): unknown { - const obj: any = {}; - message.codec !== undefined && (obj.codec = message.codec ? CodecDescriptor.toJSON(message.codec) : undefined); - return obj; - }, - fromPartial(object: Partial): GetCodecDescriptorResponse { - const message = createBaseGetCodecDescriptorResponse(); - message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; - return message; - }, - fromAmino(object: GetCodecDescriptorResponseAmino): GetCodecDescriptorResponse { - const message = createBaseGetCodecDescriptorResponse(); - if (object.codec !== undefined && object.codec !== null) { - message.codec = CodecDescriptor.fromAmino(object.codec); - } - return message; - }, - toAmino(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAmino { - const obj: any = {}; - obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; - return obj; - }, - fromAminoMsg(object: GetCodecDescriptorResponseAminoMsg): GetCodecDescriptorResponse { - return GetCodecDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetCodecDescriptorResponse", - value: GetCodecDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetCodecDescriptorResponseProtoMsg): GetCodecDescriptorResponse { - return GetCodecDescriptorResponse.decode(message.value); - }, - toProto(message: GetCodecDescriptorResponse): Uint8Array { - return GetCodecDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - value: GetCodecDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorRequest(): GetConfigurationDescriptorRequest { - return {}; -} -export const GetConfigurationDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - encode(_: GetConfigurationDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetConfigurationDescriptorRequest { - return {}; - }, - toJSON(_: GetConfigurationDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetConfigurationDescriptorRequest { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - fromAmino(_: GetConfigurationDescriptorRequestAmino): GetConfigurationDescriptorRequest { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - toAmino(_: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetConfigurationDescriptorRequestAminoMsg): GetConfigurationDescriptorRequest { - return GetConfigurationDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetConfigurationDescriptorRequest", - value: GetConfigurationDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetConfigurationDescriptorRequestProtoMsg): GetConfigurationDescriptorRequest { - return GetConfigurationDescriptorRequest.decode(message.value); - }, - toProto(message: GetConfigurationDescriptorRequest): Uint8Array { - return GetConfigurationDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - value: GetConfigurationDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorResponse(): GetConfigurationDescriptorResponse { - return { - config: undefined - }; -} -export const GetConfigurationDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - encode(message: GetConfigurationDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.config !== undefined) { - ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetConfigurationDescriptorResponse { - return { - config: isSet(object.config) ? ConfigurationDescriptor.fromJSON(object.config) : undefined - }; - }, - toJSON(message: GetConfigurationDescriptorResponse): unknown { - const obj: any = {}; - message.config !== undefined && (obj.config = message.config ? ConfigurationDescriptor.toJSON(message.config) : undefined); - return obj; - }, - fromPartial(object: Partial): GetConfigurationDescriptorResponse { - const message = createBaseGetConfigurationDescriptorResponse(); - message.config = object.config !== undefined && object.config !== null ? ConfigurationDescriptor.fromPartial(object.config) : undefined; - return message; - }, - fromAmino(object: GetConfigurationDescriptorResponseAmino): GetConfigurationDescriptorResponse { - const message = createBaseGetConfigurationDescriptorResponse(); - if (object.config !== undefined && object.config !== null) { - message.config = ConfigurationDescriptor.fromAmino(object.config); - } - return message; - }, - toAmino(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAmino { - const obj: any = {}; - obj.config = message.config ? ConfigurationDescriptor.toAmino(message.config) : undefined; - return obj; - }, - fromAminoMsg(object: GetConfigurationDescriptorResponseAminoMsg): GetConfigurationDescriptorResponse { - return GetConfigurationDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetConfigurationDescriptorResponse", - value: GetConfigurationDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetConfigurationDescriptorResponseProtoMsg): GetConfigurationDescriptorResponse { - return GetConfigurationDescriptorResponse.decode(message.value); - }, - toProto(message: GetConfigurationDescriptorResponse): Uint8Array { - return GetConfigurationDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - value: GetConfigurationDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorRequest(): GetQueryServicesDescriptorRequest { - return {}; -} -export const GetQueryServicesDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - encode(_: GetQueryServicesDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetQueryServicesDescriptorRequest { - return {}; - }, - toJSON(_: GetQueryServicesDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetQueryServicesDescriptorRequest { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - fromAmino(_: GetQueryServicesDescriptorRequestAmino): GetQueryServicesDescriptorRequest { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - toAmino(_: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetQueryServicesDescriptorRequestAminoMsg): GetQueryServicesDescriptorRequest { - return GetQueryServicesDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest", - value: GetQueryServicesDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetQueryServicesDescriptorRequestProtoMsg): GetQueryServicesDescriptorRequest { - return GetQueryServicesDescriptorRequest.decode(message.value); - }, - toProto(message: GetQueryServicesDescriptorRequest): Uint8Array { - return GetQueryServicesDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - value: GetQueryServicesDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorResponse(): GetQueryServicesDescriptorResponse { - return { - queries: undefined - }; -} -export const GetQueryServicesDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - encode(message: GetQueryServicesDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.queries !== undefined) { - QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queries = QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetQueryServicesDescriptorResponse { - return { - queries: isSet(object.queries) ? QueryServicesDescriptor.fromJSON(object.queries) : undefined - }; - }, - toJSON(message: GetQueryServicesDescriptorResponse): unknown { - const obj: any = {}; - message.queries !== undefined && (obj.queries = message.queries ? QueryServicesDescriptor.toJSON(message.queries) : undefined); - return obj; - }, - fromPartial(object: Partial): GetQueryServicesDescriptorResponse { - const message = createBaseGetQueryServicesDescriptorResponse(); - message.queries = object.queries !== undefined && object.queries !== null ? QueryServicesDescriptor.fromPartial(object.queries) : undefined; - return message; - }, - fromAmino(object: GetQueryServicesDescriptorResponseAmino): GetQueryServicesDescriptorResponse { - const message = createBaseGetQueryServicesDescriptorResponse(); - if (object.queries !== undefined && object.queries !== null) { - message.queries = QueryServicesDescriptor.fromAmino(object.queries); - } - return message; - }, - toAmino(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAmino { - const obj: any = {}; - obj.queries = message.queries ? QueryServicesDescriptor.toAmino(message.queries) : undefined; - return obj; - }, - fromAminoMsg(object: GetQueryServicesDescriptorResponseAminoMsg): GetQueryServicesDescriptorResponse { - return GetQueryServicesDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse", - value: GetQueryServicesDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetQueryServicesDescriptorResponseProtoMsg): GetQueryServicesDescriptorResponse { - return GetQueryServicesDescriptorResponse.decode(message.value); - }, - toProto(message: GetQueryServicesDescriptorResponse): Uint8Array { - return GetQueryServicesDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - value: GetQueryServicesDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorRequest(): GetTxDescriptorRequest { - return {}; -} -export const GetTxDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - encode(_: GetTxDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetTxDescriptorRequest { - return {}; - }, - toJSON(_: GetTxDescriptorRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetTxDescriptorRequest { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - fromAmino(_: GetTxDescriptorRequestAmino): GetTxDescriptorRequest { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - toAmino(_: GetTxDescriptorRequest): GetTxDescriptorRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetTxDescriptorRequestAminoMsg): GetTxDescriptorRequest { - return GetTxDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestAminoMsg { - return { - type: "cosmos-sdk/GetTxDescriptorRequest", - value: GetTxDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxDescriptorRequestProtoMsg): GetTxDescriptorRequest { - return GetTxDescriptorRequest.decode(message.value); - }, - toProto(message: GetTxDescriptorRequest): Uint8Array { - return GetTxDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - value: GetTxDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorResponse(): GetTxDescriptorResponse { - return { - tx: undefined - }; -} -export const GetTxDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - encode(message: GetTxDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tx !== undefined) { - TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetTxDescriptorResponse { - return { - tx: isSet(object.tx) ? TxDescriptor.fromJSON(object.tx) : undefined - }; - }, - toJSON(message: GetTxDescriptorResponse): unknown { - const obj: any = {}; - message.tx !== undefined && (obj.tx = message.tx ? TxDescriptor.toJSON(message.tx) : undefined); - return obj; - }, - fromPartial(object: Partial): GetTxDescriptorResponse { - const message = createBaseGetTxDescriptorResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object: GetTxDescriptorResponseAmino): GetTxDescriptorResponse { - const message = createBaseGetTxDescriptorResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message: GetTxDescriptorResponse): GetTxDescriptorResponseAmino { - const obj: any = {}; - obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object: GetTxDescriptorResponseAminoMsg): GetTxDescriptorResponse { - return GetTxDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseAminoMsg { - return { - type: "cosmos-sdk/GetTxDescriptorResponse", - value: GetTxDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxDescriptorResponseProtoMsg): GetTxDescriptorResponse { - return GetTxDescriptorResponse.decode(message.value); - }, - toProto(message: GetTxDescriptorResponse): Uint8Array { - return GetTxDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - value: GetTxDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryServicesDescriptor(): QueryServicesDescriptor { - return { - queryServices: [] - }; -} -export const QueryServicesDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - encode(message: QueryServicesDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.queryServices) { - QueryServiceDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServicesDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queryServices.push(QueryServiceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryServicesDescriptor { - return { - queryServices: Array.isArray(object?.queryServices) ? object.queryServices.map((e: any) => QueryServiceDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryServicesDescriptor): unknown { - const obj: any = {}; - if (message.queryServices) { - obj.queryServices = message.queryServices.map(e => e ? QueryServiceDescriptor.toJSON(e) : undefined); - } else { - obj.queryServices = []; - } - return obj; - }, - fromPartial(object: Partial): QueryServicesDescriptor { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.queryServices?.map(e => QueryServiceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryServicesDescriptorAmino): QueryServicesDescriptor { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.query_services?.map(e => QueryServiceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryServicesDescriptor): QueryServicesDescriptorAmino { - const obj: any = {}; - if (message.queryServices) { - obj.query_services = message.queryServices.map(e => e ? QueryServiceDescriptor.toAmino(e) : undefined); - } else { - obj.query_services = message.queryServices; - } - return obj; - }, - fromAminoMsg(object: QueryServicesDescriptorAminoMsg): QueryServicesDescriptor { - return QueryServicesDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorAminoMsg { - return { - type: "cosmos-sdk/QueryServicesDescriptor", - value: QueryServicesDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: QueryServicesDescriptorProtoMsg): QueryServicesDescriptor { - return QueryServicesDescriptor.decode(message.value); - }, - toProto(message: QueryServicesDescriptor): Uint8Array { - return QueryServicesDescriptor.encode(message).finish(); - }, - toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - value: QueryServicesDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryServiceDescriptor(): QueryServiceDescriptor { - return { - fullname: "", - isModule: false, - methods: [] - }; -} -export const QueryServiceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - encode(message: QueryServiceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.isModule === true) { - writer.uint32(16).bool(message.isModule); - } - for (const v of message.methods) { - QueryMethodDescriptor.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServiceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.isModule = reader.bool(); - break; - case 3: - message.methods.push(QueryMethodDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryServiceDescriptor { - return { - fullname: isSet(object.fullname) ? String(object.fullname) : "", - isModule: isSet(object.isModule) ? Boolean(object.isModule) : false, - methods: Array.isArray(object?.methods) ? object.methods.map((e: any) => QueryMethodDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryServiceDescriptor): unknown { - const obj: any = {}; - message.fullname !== undefined && (obj.fullname = message.fullname); - message.isModule !== undefined && (obj.isModule = message.isModule); - if (message.methods) { - obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toJSON(e) : undefined); - } else { - obj.methods = []; - } - return obj; - }, - fromPartial(object: Partial): QueryServiceDescriptor { - const message = createBaseQueryServiceDescriptor(); - message.fullname = object.fullname ?? ""; - message.isModule = object.isModule ?? false; - message.methods = object.methods?.map(e => QueryMethodDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryServiceDescriptorAmino): QueryServiceDescriptor { - const message = createBaseQueryServiceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.is_module !== undefined && object.is_module !== null) { - message.isModule = object.is_module; - } - message.methods = object.methods?.map(e => QueryMethodDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino { - const obj: any = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.is_module = message.isModule === false ? undefined : message.isModule; - if (message.methods) { - obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toAmino(e) : undefined); - } else { - obj.methods = message.methods; - } - return obj; - }, - fromAminoMsg(object: QueryServiceDescriptorAminoMsg): QueryServiceDescriptor { - return QueryServiceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorAminoMsg { - return { - type: "cosmos-sdk/QueryServiceDescriptor", - value: QueryServiceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: QueryServiceDescriptorProtoMsg): QueryServiceDescriptor { - return QueryServiceDescriptor.decode(message.value); - }, - toProto(message: QueryServiceDescriptor): Uint8Array { - return QueryServiceDescriptor.encode(message).finish(); - }, - toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - value: QueryServiceDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryMethodDescriptor(): QueryMethodDescriptor { - return { - name: "", - fullQueryPath: "" - }; -} -export const QueryMethodDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - encode(message: QueryMethodDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.fullQueryPath !== "") { - writer.uint32(18).string(message.fullQueryPath); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryMethodDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.fullQueryPath = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryMethodDescriptor { - return { - name: isSet(object.name) ? String(object.name) : "", - fullQueryPath: isSet(object.fullQueryPath) ? String(object.fullQueryPath) : "" - }; - }, - toJSON(message: QueryMethodDescriptor): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.fullQueryPath !== undefined && (obj.fullQueryPath = message.fullQueryPath); - return obj; - }, - fromPartial(object: Partial): QueryMethodDescriptor { - const message = createBaseQueryMethodDescriptor(); - message.name = object.name ?? ""; - message.fullQueryPath = object.fullQueryPath ?? ""; - return message; - }, - fromAmino(object: QueryMethodDescriptorAmino): QueryMethodDescriptor { - const message = createBaseQueryMethodDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.full_query_path !== undefined && object.full_query_path !== null) { - message.fullQueryPath = object.full_query_path; - } - return message; - }, - toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; - return obj; - }, - fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor { - return QueryMethodDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorAminoMsg { - return { - type: "cosmos-sdk/QueryMethodDescriptor", - value: QueryMethodDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: QueryMethodDescriptorProtoMsg): QueryMethodDescriptor { - return QueryMethodDescriptor.decode(message.value); - }, - toProto(message: QueryMethodDescriptor): Uint8Array { - return QueryMethodDescriptor.encode(message).finish(); - }, - toProtoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorProtoMsg { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - value: QueryMethodDescriptor.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts b/packages/api/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts deleted file mode 100644 index 2d87d820..00000000 --- a/packages/api/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +++ /dev/null @@ -1,1233 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -export interface SnapshotProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot"; - value: Uint8Array; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotAmino { - height?: string; - format?: number; - chunks?: number; - hash?: string; - metadata?: MetadataAmino; -} -export interface SnapshotAminoMsg { - type: "cosmos-sdk/Snapshot"; - value: SnapshotAmino; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata"; - value: Uint8Array; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataAmino { - /** SHA-256 chunk hashes */ - chunk_hashes?: string[]; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -export interface SnapshotItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem"; - value: Uint8Array; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItemAmino { - store?: SnapshotStoreItemAmino; - iavl?: SnapshotIAVLItemAmino; - extension?: SnapshotExtensionMetaAmino; - extension_payload?: SnapshotExtensionPayloadAmino; - kv?: SnapshotKVItemAmino; - schema?: SnapshotSchemaAmino; -} -export interface SnapshotItemAminoMsg { - type: "cosmos-sdk/SnapshotItem"; - value: SnapshotItemAmino; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItem { - name: string; -} -export interface SnapshotStoreItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; - value: Uint8Array; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItemAmino { - name?: string; -} -export interface SnapshotStoreItemAminoMsg { - type: "cosmos-sdk/SnapshotStoreItem"; - value: SnapshotStoreItemAmino; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: bigint; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; - value: Uint8Array; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItemAmino { - key?: string; - value?: string; - /** version is block height */ - version?: string; - /** height is depth of the tree. */ - height?: number; -} -export interface SnapshotIAVLItemAminoMsg { - type: "cosmos-sdk/SnapshotIAVLItem"; - value: SnapshotIAVLItemAmino; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: bigint; - height: number; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -export interface SnapshotExtensionMetaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; - value: Uint8Array; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMetaAmino { - name?: string; - format?: number; -} -export interface SnapshotExtensionMetaAminoMsg { - type: "cosmos-sdk/SnapshotExtensionMeta"; - value: SnapshotExtensionMetaAmino; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; - value: Uint8Array; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayloadAmino { - payload?: string; -} -export interface SnapshotExtensionPayloadAminoMsg { - type: "cosmos-sdk/SnapshotExtensionPayload"; - value: SnapshotExtensionPayloadAmino; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - value: Uint8Array; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItemAmino { - key?: string; - value?: string; -} -export interface SnapshotKVItemAminoMsg { - type: "cosmos-sdk/SnapshotKVItem"; - value: SnapshotKVItemAmino; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -export interface SnapshotSchemaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema"; - value: Uint8Array; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchemaAmino { - keys?: string[]; -} -export interface SnapshotSchemaAminoMsg { - type: "cosmos-sdk/SnapshotSchema"; - value: SnapshotSchemaAmino; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} -function createBaseSnapshot(): Snapshot { - return { - height: BigInt(0), - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: Metadata.fromPartial({}) - }; -} -export const Snapshot = { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot", - encode(message: Snapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunks !== 0) { - writer.uint32(24).uint32(message.chunks); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.metadata !== undefined) { - Metadata.encode(message.metadata, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Snapshot { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunks = reader.uint32(); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = Metadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Snapshot { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - format: isSet(object.format) ? Number(object.format) : 0, - chunks: isSet(object.chunks) ? Number(object.chunks) : 0, - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - metadata: isSet(object.metadata) ? Metadata.fromJSON(object.metadata) : undefined - }; - }, - toJSON(message: Snapshot): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.format !== undefined && (obj.format = Math.round(message.format)); - message.chunks !== undefined && (obj.chunks = Math.round(message.chunks)); - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.metadata !== undefined && (obj.metadata = message.metadata ? Metadata.toJSON(message.metadata) : undefined); - return obj; - }, - fromPartial(object: Partial): Snapshot { - const message = createBaseSnapshot(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunks = object.chunks ?? 0; - message.hash = object.hash ?? new Uint8Array(); - message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; - return message; - }, - fromAmino(object: SnapshotAmino): Snapshot { - const message = createBaseSnapshot(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunks !== undefined && object.chunks !== null) { - message.chunks = object.chunks; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = Metadata.fromAmino(object.metadata); - } - return message; - }, - toAmino(message: Snapshot): SnapshotAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunks = message.chunks === 0 ? undefined : message.chunks; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object: SnapshotAminoMsg): Snapshot { - return Snapshot.fromAmino(object.value); - }, - toAminoMsg(message: Snapshot): SnapshotAminoMsg { - return { - type: "cosmos-sdk/Snapshot", - value: Snapshot.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotProtoMsg): Snapshot { - return Snapshot.decode(message.value); - }, - toProto(message: Snapshot): Uint8Array { - return Snapshot.encode(message).finish(); - }, - toProtoMsg(message: Snapshot): SnapshotProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot", - value: Snapshot.encode(message).finish() - }; - } -}; -function createBaseMetadata(): Metadata { - return { - chunkHashes: [] - }; -} -export const Metadata = { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata", - encode(message: Metadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.chunkHashes) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Metadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chunkHashes.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Metadata { - return { - chunkHashes: Array.isArray(object?.chunkHashes) ? object.chunkHashes.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: Metadata): unknown { - const obj: any = {}; - if (message.chunkHashes) { - obj.chunkHashes = message.chunkHashes.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.chunkHashes = []; - } - return obj; - }, - fromPartial(object: Partial): Metadata { - const message = createBaseMetadata(); - message.chunkHashes = object.chunkHashes?.map(e => e) || []; - return message; - }, - fromAmino(object: MetadataAmino): Metadata { - const message = createBaseMetadata(); - message.chunkHashes = object.chunk_hashes?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: Metadata): MetadataAmino { - const obj: any = {}; - if (message.chunkHashes) { - obj.chunk_hashes = message.chunkHashes.map(e => base64FromBytes(e)); - } else { - obj.chunk_hashes = message.chunkHashes; - } - return obj; - }, - fromAminoMsg(object: MetadataAminoMsg): Metadata { - return Metadata.fromAmino(object.value); - }, - toAminoMsg(message: Metadata): MetadataAminoMsg { - return { - type: "cosmos-sdk/Metadata", - value: Metadata.toAmino(message) - }; - }, - fromProtoMsg(message: MetadataProtoMsg): Metadata { - return Metadata.decode(message.value); - }, - toProto(message: Metadata): Uint8Array { - return Metadata.encode(message).finish(); - }, - toProtoMsg(message: Metadata): MetadataProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata", - value: Metadata.encode(message).finish() - }; - } -}; -function createBaseSnapshotItem(): SnapshotItem { - return { - store: undefined, - iavl: undefined, - extension: undefined, - extensionPayload: undefined, - kv: undefined, - schema: undefined - }; -} -export const SnapshotItem = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem", - encode(message: SnapshotItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.store !== undefined) { - SnapshotStoreItem.encode(message.store, writer.uint32(10).fork()).ldelim(); - } - if (message.iavl !== undefined) { - SnapshotIAVLItem.encode(message.iavl, writer.uint32(18).fork()).ldelim(); - } - if (message.extension !== undefined) { - SnapshotExtensionMeta.encode(message.extension, writer.uint32(26).fork()).ldelim(); - } - if (message.extensionPayload !== undefined) { - SnapshotExtensionPayload.encode(message.extensionPayload, writer.uint32(34).fork()).ldelim(); - } - if (message.kv !== undefined) { - SnapshotKVItem.encode(message.kv, writer.uint32(42).fork()).ldelim(); - } - if (message.schema !== undefined) { - SnapshotSchema.encode(message.schema, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotItem { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.store = SnapshotStoreItem.decode(reader, reader.uint32()); - break; - case 2: - message.iavl = SnapshotIAVLItem.decode(reader, reader.uint32()); - break; - case 3: - message.extension = SnapshotExtensionMeta.decode(reader, reader.uint32()); - break; - case 4: - message.extensionPayload = SnapshotExtensionPayload.decode(reader, reader.uint32()); - break; - case 5: - message.kv = SnapshotKVItem.decode(reader, reader.uint32()); - break; - case 6: - message.schema = SnapshotSchema.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotItem { - return { - store: isSet(object.store) ? SnapshotStoreItem.fromJSON(object.store) : undefined, - iavl: isSet(object.iavl) ? SnapshotIAVLItem.fromJSON(object.iavl) : undefined, - extension: isSet(object.extension) ? SnapshotExtensionMeta.fromJSON(object.extension) : undefined, - extensionPayload: isSet(object.extensionPayload) ? SnapshotExtensionPayload.fromJSON(object.extensionPayload) : undefined, - kv: isSet(object.kv) ? SnapshotKVItem.fromJSON(object.kv) : undefined, - schema: isSet(object.schema) ? SnapshotSchema.fromJSON(object.schema) : undefined - }; - }, - toJSON(message: SnapshotItem): unknown { - const obj: any = {}; - message.store !== undefined && (obj.store = message.store ? SnapshotStoreItem.toJSON(message.store) : undefined); - message.iavl !== undefined && (obj.iavl = message.iavl ? SnapshotIAVLItem.toJSON(message.iavl) : undefined); - message.extension !== undefined && (obj.extension = message.extension ? SnapshotExtensionMeta.toJSON(message.extension) : undefined); - message.extensionPayload !== undefined && (obj.extensionPayload = message.extensionPayload ? SnapshotExtensionPayload.toJSON(message.extensionPayload) : undefined); - message.kv !== undefined && (obj.kv = message.kv ? SnapshotKVItem.toJSON(message.kv) : undefined); - message.schema !== undefined && (obj.schema = message.schema ? SnapshotSchema.toJSON(message.schema) : undefined); - return obj; - }, - fromPartial(object: Partial): SnapshotItem { - const message = createBaseSnapshotItem(); - message.store = object.store !== undefined && object.store !== null ? SnapshotStoreItem.fromPartial(object.store) : undefined; - message.iavl = object.iavl !== undefined && object.iavl !== null ? SnapshotIAVLItem.fromPartial(object.iavl) : undefined; - message.extension = object.extension !== undefined && object.extension !== null ? SnapshotExtensionMeta.fromPartial(object.extension) : undefined; - message.extensionPayload = object.extensionPayload !== undefined && object.extensionPayload !== null ? SnapshotExtensionPayload.fromPartial(object.extensionPayload) : undefined; - message.kv = object.kv !== undefined && object.kv !== null ? SnapshotKVItem.fromPartial(object.kv) : undefined; - message.schema = object.schema !== undefined && object.schema !== null ? SnapshotSchema.fromPartial(object.schema) : undefined; - return message; - }, - fromAmino(object: SnapshotItemAmino): SnapshotItem { - const message = createBaseSnapshotItem(); - if (object.store !== undefined && object.store !== null) { - message.store = SnapshotStoreItem.fromAmino(object.store); - } - if (object.iavl !== undefined && object.iavl !== null) { - message.iavl = SnapshotIAVLItem.fromAmino(object.iavl); - } - if (object.extension !== undefined && object.extension !== null) { - message.extension = SnapshotExtensionMeta.fromAmino(object.extension); - } - if (object.extension_payload !== undefined && object.extension_payload !== null) { - message.extensionPayload = SnapshotExtensionPayload.fromAmino(object.extension_payload); - } - if (object.kv !== undefined && object.kv !== null) { - message.kv = SnapshotKVItem.fromAmino(object.kv); - } - if (object.schema !== undefined && object.schema !== null) { - message.schema = SnapshotSchema.fromAmino(object.schema); - } - return message; - }, - toAmino(message: SnapshotItem): SnapshotItemAmino { - const obj: any = {}; - obj.store = message.store ? SnapshotStoreItem.toAmino(message.store) : undefined; - obj.iavl = message.iavl ? SnapshotIAVLItem.toAmino(message.iavl) : undefined; - obj.extension = message.extension ? SnapshotExtensionMeta.toAmino(message.extension) : undefined; - obj.extension_payload = message.extensionPayload ? SnapshotExtensionPayload.toAmino(message.extensionPayload) : undefined; - obj.kv = message.kv ? SnapshotKVItem.toAmino(message.kv) : undefined; - obj.schema = message.schema ? SnapshotSchema.toAmino(message.schema) : undefined; - return obj; - }, - fromAminoMsg(object: SnapshotItemAminoMsg): SnapshotItem { - return SnapshotItem.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotItem): SnapshotItemAminoMsg { - return { - type: "cosmos-sdk/SnapshotItem", - value: SnapshotItem.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotItemProtoMsg): SnapshotItem { - return SnapshotItem.decode(message.value); - }, - toProto(message: SnapshotItem): Uint8Array { - return SnapshotItem.encode(message).finish(); - }, - toProtoMsg(message: SnapshotItem): SnapshotItemProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem", - value: SnapshotItem.encode(message).finish() - }; - } -}; -function createBaseSnapshotStoreItem(): SnapshotStoreItem { - return { - name: "" - }; -} -export const SnapshotStoreItem = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem", - encode(message: SnapshotStoreItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotStoreItem { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotStoreItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotStoreItem { - return { - name: isSet(object.name) ? String(object.name) : "" - }; - }, - toJSON(message: SnapshotStoreItem): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - return obj; - }, - fromPartial(object: Partial): SnapshotStoreItem { - const message = createBaseSnapshotStoreItem(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object: SnapshotStoreItemAmino): SnapshotStoreItem { - const message = createBaseSnapshotStoreItem(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message: SnapshotStoreItem): SnapshotStoreItemAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object: SnapshotStoreItemAminoMsg): SnapshotStoreItem { - return SnapshotStoreItem.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotStoreItem): SnapshotStoreItemAminoMsg { - return { - type: "cosmos-sdk/SnapshotStoreItem", - value: SnapshotStoreItem.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotStoreItemProtoMsg): SnapshotStoreItem { - return SnapshotStoreItem.decode(message.value); - }, - toProto(message: SnapshotStoreItem): Uint8Array { - return SnapshotStoreItem.encode(message).finish(); - }, - toProtoMsg(message: SnapshotStoreItem): SnapshotStoreItemProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem", - value: SnapshotStoreItem.encode(message).finish() - }; - } -}; -function createBaseSnapshotIAVLItem(): SnapshotIAVLItem { - return { - key: new Uint8Array(), - value: new Uint8Array(), - version: BigInt(0), - height: 0 - }; -} -export const SnapshotIAVLItem = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem", - encode(message: SnapshotIAVLItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - if (message.version !== BigInt(0)) { - writer.uint32(24).int64(message.version); - } - if (message.height !== 0) { - writer.uint32(32).int32(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotIAVLItem { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotIAVLItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.version = reader.int64(); - break; - case 4: - message.height = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotIAVLItem { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(), - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0), - height: isSet(object.height) ? Number(object.height) : 0 - }; - }, - toJSON(message: SnapshotIAVLItem): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - message.height !== undefined && (obj.height = Math.round(message.height)); - return obj; - }, - fromPartial(object: Partial): SnapshotIAVLItem { - const message = createBaseSnapshotIAVLItem(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.height = object.height ?? 0; - return message; - }, - fromAmino(object: SnapshotIAVLItemAmino): SnapshotIAVLItem { - const message = createBaseSnapshotIAVLItem(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.height !== undefined && object.height !== null) { - message.height = object.height; - } - return message; - }, - toAmino(message: SnapshotIAVLItem): SnapshotIAVLItemAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.height = message.height === 0 ? undefined : message.height; - return obj; - }, - fromAminoMsg(object: SnapshotIAVLItemAminoMsg): SnapshotIAVLItem { - return SnapshotIAVLItem.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotIAVLItem): SnapshotIAVLItemAminoMsg { - return { - type: "cosmos-sdk/SnapshotIAVLItem", - value: SnapshotIAVLItem.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotIAVLItemProtoMsg): SnapshotIAVLItem { - return SnapshotIAVLItem.decode(message.value); - }, - toProto(message: SnapshotIAVLItem): Uint8Array { - return SnapshotIAVLItem.encode(message).finish(); - }, - toProtoMsg(message: SnapshotIAVLItem): SnapshotIAVLItemProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem", - value: SnapshotIAVLItem.encode(message).finish() - }; - } -}; -function createBaseSnapshotExtensionMeta(): SnapshotExtensionMeta { - return { - name: "", - format: 0 - }; -} -export const SnapshotExtensionMeta = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta", - encode(message: SnapshotExtensionMeta, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionMeta { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotExtensionMeta(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.format = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotExtensionMeta { - return { - name: isSet(object.name) ? String(object.name) : "", - format: isSet(object.format) ? Number(object.format) : 0 - }; - }, - toJSON(message: SnapshotExtensionMeta): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.format !== undefined && (obj.format = Math.round(message.format)); - return obj; - }, - fromPartial(object: Partial): SnapshotExtensionMeta { - const message = createBaseSnapshotExtensionMeta(); - message.name = object.name ?? ""; - message.format = object.format ?? 0; - return message; - }, - fromAmino(object: SnapshotExtensionMetaAmino): SnapshotExtensionMeta { - const message = createBaseSnapshotExtensionMeta(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - return message; - }, - toAmino(message: SnapshotExtensionMeta): SnapshotExtensionMetaAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.format = message.format === 0 ? undefined : message.format; - return obj; - }, - fromAminoMsg(object: SnapshotExtensionMetaAminoMsg): SnapshotExtensionMeta { - return SnapshotExtensionMeta.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotExtensionMeta): SnapshotExtensionMetaAminoMsg { - return { - type: "cosmos-sdk/SnapshotExtensionMeta", - value: SnapshotExtensionMeta.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotExtensionMetaProtoMsg): SnapshotExtensionMeta { - return SnapshotExtensionMeta.decode(message.value); - }, - toProto(message: SnapshotExtensionMeta): Uint8Array { - return SnapshotExtensionMeta.encode(message).finish(); - }, - toProtoMsg(message: SnapshotExtensionMeta): SnapshotExtensionMetaProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta", - value: SnapshotExtensionMeta.encode(message).finish() - }; - } -}; -function createBaseSnapshotExtensionPayload(): SnapshotExtensionPayload { - return { - payload: new Uint8Array() - }; -} -export const SnapshotExtensionPayload = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload", - encode(message: SnapshotExtensionPayload, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.payload.length !== 0) { - writer.uint32(10).bytes(message.payload); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionPayload { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotExtensionPayload(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.payload = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotExtensionPayload { - return { - payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array() - }; - }, - toJSON(message: SnapshotExtensionPayload): unknown { - const obj: any = {}; - message.payload !== undefined && (obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): SnapshotExtensionPayload { - const message = createBaseSnapshotExtensionPayload(); - message.payload = object.payload ?? new Uint8Array(); - return message; - }, - fromAmino(object: SnapshotExtensionPayloadAmino): SnapshotExtensionPayload { - const message = createBaseSnapshotExtensionPayload(); - if (object.payload !== undefined && object.payload !== null) { - message.payload = bytesFromBase64(object.payload); - } - return message; - }, - toAmino(message: SnapshotExtensionPayload): SnapshotExtensionPayloadAmino { - const obj: any = {}; - obj.payload = message.payload ? base64FromBytes(message.payload) : undefined; - return obj; - }, - fromAminoMsg(object: SnapshotExtensionPayloadAminoMsg): SnapshotExtensionPayload { - return SnapshotExtensionPayload.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotExtensionPayload): SnapshotExtensionPayloadAminoMsg { - return { - type: "cosmos-sdk/SnapshotExtensionPayload", - value: SnapshotExtensionPayload.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotExtensionPayloadProtoMsg): SnapshotExtensionPayload { - return SnapshotExtensionPayload.decode(message.value); - }, - toProto(message: SnapshotExtensionPayload): Uint8Array { - return SnapshotExtensionPayload.encode(message).finish(); - }, - toProtoMsg(message: SnapshotExtensionPayload): SnapshotExtensionPayloadProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload", - value: SnapshotExtensionPayload.encode(message).finish() - }; - } -}; -function createBaseSnapshotKVItem(): SnapshotKVItem { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const SnapshotKVItem = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem", - encode(message: SnapshotKVItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotKVItem { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotKVItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotKVItem { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array() - }; - }, - toJSON(message: SnapshotKVItem): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): SnapshotKVItem { - const message = createBaseSnapshotKVItem(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object: SnapshotKVItemAmino): SnapshotKVItem { - const message = createBaseSnapshotKVItem(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - return message; - }, - toAmino(message: SnapshotKVItem): SnapshotKVItemAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - return obj; - }, - fromAminoMsg(object: SnapshotKVItemAminoMsg): SnapshotKVItem { - return SnapshotKVItem.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotKVItem): SnapshotKVItemAminoMsg { - return { - type: "cosmos-sdk/SnapshotKVItem", - value: SnapshotKVItem.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotKVItemProtoMsg): SnapshotKVItem { - return SnapshotKVItem.decode(message.value); - }, - toProto(message: SnapshotKVItem): Uint8Array { - return SnapshotKVItem.encode(message).finish(); - }, - toProtoMsg(message: SnapshotKVItem): SnapshotKVItemProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem", - value: SnapshotKVItem.encode(message).finish() - }; - } -}; -function createBaseSnapshotSchema(): SnapshotSchema { - return { - keys: [] - }; -} -export const SnapshotSchema = { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema", - encode(message: SnapshotSchema, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.keys) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotSchema { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotSchema(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.keys.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SnapshotSchema { - return { - keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: SnapshotSchema): unknown { - const obj: any = {}; - if (message.keys) { - obj.keys = message.keys.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.keys = []; - } - return obj; - }, - fromPartial(object: Partial): SnapshotSchema { - const message = createBaseSnapshotSchema(); - message.keys = object.keys?.map(e => e) || []; - return message; - }, - fromAmino(object: SnapshotSchemaAmino): SnapshotSchema { - const message = createBaseSnapshotSchema(); - message.keys = object.keys?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: SnapshotSchema): SnapshotSchemaAmino { - const obj: any = {}; - if (message.keys) { - obj.keys = message.keys.map(e => base64FromBytes(e)); - } else { - obj.keys = message.keys; - } - return obj; - }, - fromAminoMsg(object: SnapshotSchemaAminoMsg): SnapshotSchema { - return SnapshotSchema.fromAmino(object.value); - }, - toAminoMsg(message: SnapshotSchema): SnapshotSchemaAminoMsg { - return { - type: "cosmos-sdk/SnapshotSchema", - value: SnapshotSchema.toAmino(message) - }; - }, - fromProtoMsg(message: SnapshotSchemaProtoMsg): SnapshotSchema { - return SnapshotSchema.decode(message.value); - }, - toProto(message: SnapshotSchema): Uint8Array { - return SnapshotSchema.encode(message).finish(); - }, - toProtoMsg(message: SnapshotSchema): SnapshotSchemaProtoMsg { - return { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema", - value: SnapshotSchema.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/store/v1beta1/commit_info.ts b/packages/api/src/codegen/cosmos/base/store/v1beta1/commit_info.ts deleted file mode 100644 index 595af878..00000000 --- a/packages/api/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +++ /dev/null @@ -1,383 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: bigint; - storeInfos: StoreInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo"; - value: Uint8Array; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoAmino { - version?: string; - store_infos?: StoreInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "cosmos-sdk/CommitInfo"; - value: CommitInfoAmino; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: bigint; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -export interface StoreInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo"; - value: Uint8Array; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoAmino { - name?: string; - commit_id?: CommitIDAmino; -} -export interface StoreInfoAminoMsg { - type: "cosmos-sdk/StoreInfo"; - value: StoreInfoAmino; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: bigint; - hash: Uint8Array; -} -export interface CommitIDProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitID"; - value: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDAmino { - version?: string; - hash?: string; -} -export interface CommitIDAminoMsg { - type: "cosmos-sdk/CommitID"; - value: CommitIDAmino; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: bigint; - hash: Uint8Array; -} -function createBaseCommitInfo(): CommitInfo { - return { - version: BigInt(0), - storeInfos: [] - }; -} -export const CommitInfo = { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo", - encode(message: CommitInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.version !== BigInt(0)) { - writer.uint32(8).int64(message.version); - } - for (const v of message.storeInfos) { - StoreInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.int64(); - break; - case 2: - message.storeInfos.push(StoreInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommitInfo { - return { - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0), - storeInfos: Array.isArray(object?.storeInfos) ? object.storeInfos.map((e: any) => StoreInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: CommitInfo): unknown { - const obj: any = {}; - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - if (message.storeInfos) { - obj.storeInfos = message.storeInfos.map(e => e ? StoreInfo.toJSON(e) : undefined); - } else { - obj.storeInfos = []; - } - return obj; - }, - fromPartial(object: Partial): CommitInfo { - const message = createBaseCommitInfo(); - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.storeInfos = object.storeInfos?.map(e => StoreInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CommitInfoAmino): CommitInfo { - const message = createBaseCommitInfo(); - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - message.storeInfos = object.store_infos?.map(e => StoreInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: CommitInfo): CommitInfoAmino { - const obj: any = {}; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - if (message.storeInfos) { - obj.store_infos = message.storeInfos.map(e => e ? StoreInfo.toAmino(e) : undefined); - } else { - obj.store_infos = message.storeInfos; - } - return obj; - }, - fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo { - return CommitInfo.fromAmino(object.value); - }, - toAminoMsg(message: CommitInfo): CommitInfoAminoMsg { - return { - type: "cosmos-sdk/CommitInfo", - value: CommitInfo.toAmino(message) - }; - }, - fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo { - return CommitInfo.decode(message.value); - }, - toProto(message: CommitInfo): Uint8Array { - return CommitInfo.encode(message).finish(); - }, - toProtoMsg(message: CommitInfo): CommitInfoProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo", - value: CommitInfo.encode(message).finish() - }; - } -}; -function createBaseStoreInfo(): StoreInfo { - return { - name: "", - commitId: CommitID.fromPartial({}) - }; -} -export const StoreInfo = { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo", - encode(message: StoreInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.commitId !== undefined) { - CommitID.encode(message.commitId, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): StoreInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStoreInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.commitId = CommitID.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): StoreInfo { - return { - name: isSet(object.name) ? String(object.name) : "", - commitId: isSet(object.commitId) ? CommitID.fromJSON(object.commitId) : undefined - }; - }, - toJSON(message: StoreInfo): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.commitId !== undefined && (obj.commitId = message.commitId ? CommitID.toJSON(message.commitId) : undefined); - return obj; - }, - fromPartial(object: Partial): StoreInfo { - const message = createBaseStoreInfo(); - message.name = object.name ?? ""; - message.commitId = object.commitId !== undefined && object.commitId !== null ? CommitID.fromPartial(object.commitId) : undefined; - return message; - }, - fromAmino(object: StoreInfoAmino): StoreInfo { - const message = createBaseStoreInfo(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.commit_id !== undefined && object.commit_id !== null) { - message.commitId = CommitID.fromAmino(object.commit_id); - } - return message; - }, - toAmino(message: StoreInfo): StoreInfoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.commit_id = message.commitId ? CommitID.toAmino(message.commitId) : undefined; - return obj; - }, - fromAminoMsg(object: StoreInfoAminoMsg): StoreInfo { - return StoreInfo.fromAmino(object.value); - }, - toAminoMsg(message: StoreInfo): StoreInfoAminoMsg { - return { - type: "cosmos-sdk/StoreInfo", - value: StoreInfo.toAmino(message) - }; - }, - fromProtoMsg(message: StoreInfoProtoMsg): StoreInfo { - return StoreInfo.decode(message.value); - }, - toProto(message: StoreInfo): Uint8Array { - return StoreInfo.encode(message).finish(); - }, - toProtoMsg(message: StoreInfo): StoreInfoProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo", - value: StoreInfo.encode(message).finish() - }; - } -}; -function createBaseCommitID(): CommitID { - return { - version: BigInt(0), - hash: new Uint8Array() - }; -} -export const CommitID = { - typeUrl: "/cosmos.base.store.v1beta1.CommitID", - encode(message: CommitID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.version !== BigInt(0)) { - writer.uint32(8).int64(message.version); - } - if (message.hash.length !== 0) { - writer.uint32(18).bytes(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommitID { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.int64(); - break; - case 2: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommitID { - return { - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0), - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array() - }; - }, - toJSON(message: CommitID): unknown { - const obj: any = {}; - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): CommitID { - const message = createBaseCommitID(); - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.hash = object.hash ?? new Uint8Array(); - return message; - }, - fromAmino(object: CommitIDAmino): CommitID { - const message = createBaseCommitID(); - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - return message; - }, - toAmino(message: CommitID): CommitIDAmino { - const obj: any = {}; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - return obj; - }, - fromAminoMsg(object: CommitIDAminoMsg): CommitID { - return CommitID.fromAmino(object.value); - }, - toAminoMsg(message: CommitID): CommitIDAminoMsg { - return { - type: "cosmos-sdk/CommitID", - value: CommitID.toAmino(message) - }; - }, - fromProtoMsg(message: CommitIDProtoMsg): CommitID { - return CommitID.decode(message.value); - }, - toProto(message: CommitID): Uint8Array { - return CommitID.encode(message).finish(); - }, - toProtoMsg(message: CommitID): CommitIDProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.CommitID", - value: CommitID.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/store/v1beta1/listening.ts b/packages/api/src/codegen/cosmos/base/store/v1beta1/listening.ts deleted file mode 100644 index 086b5e7a..00000000 --- a/packages/api/src/codegen/cosmos/base/store/v1beta1/listening.ts +++ /dev/null @@ -1,490 +0,0 @@ -import { RequestDeliverTx, RequestDeliverTxAmino, RequestDeliverTxSDKType, ResponseDeliverTx, ResponseDeliverTxAmino, ResponseDeliverTxSDKType, RequestBeginBlock, RequestBeginBlockAmino, RequestBeginBlockSDKType, ResponseBeginBlock, ResponseBeginBlockAmino, ResponseBeginBlockSDKType, RequestEndBlock, RequestEndBlockAmino, RequestEndBlockSDKType, ResponseEndBlock, ResponseEndBlockAmino, ResponseEndBlockSDKType, ResponseCommit, ResponseCommitAmino, ResponseCommitSDKType } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair"; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairAmino { - /** the store key for the KVStore this pair originates from */ - store_key?: string; - /** true indicates a delete operation, false indicates a set operation */ - delete?: boolean; - key?: string; - value?: string; -} -export interface StoreKVPairAminoMsg { - type: "cosmos-sdk/StoreKVPair"; - value: StoreKVPairAmino; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadata { - requestBeginBlock?: RequestBeginBlock; - responseBeginBlock?: ResponseBeginBlock; - deliverTxs: BlockMetadata_DeliverTx[]; - requestEndBlock?: RequestEndBlock; - responseEndBlock?: ResponseEndBlock; - responseCommit?: ResponseCommit; -} -export interface BlockMetadataProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.BlockMetadata"; - value: Uint8Array; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadataAmino { - request_begin_block?: RequestBeginBlockAmino; - response_begin_block?: ResponseBeginBlockAmino; - deliver_txs?: BlockMetadata_DeliverTxAmino[]; - request_end_block?: RequestEndBlockAmino; - response_end_block?: ResponseEndBlockAmino; - response_commit?: ResponseCommitAmino; -} -export interface BlockMetadataAminoMsg { - type: "cosmos-sdk/BlockMetadata"; - value: BlockMetadataAmino; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadataSDKType { - request_begin_block?: RequestBeginBlockSDKType; - response_begin_block?: ResponseBeginBlockSDKType; - deliver_txs: BlockMetadata_DeliverTxSDKType[]; - request_end_block?: RequestEndBlockSDKType; - response_end_block?: ResponseEndBlockSDKType; - response_commit?: ResponseCommitSDKType; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTx { - request?: RequestDeliverTx; - response?: ResponseDeliverTx; -} -export interface BlockMetadata_DeliverTxProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.DeliverTx"; - value: Uint8Array; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTxAmino { - request?: RequestDeliverTxAmino; - response?: ResponseDeliverTxAmino; -} -export interface BlockMetadata_DeliverTxAminoMsg { - type: "cosmos-sdk/DeliverTx"; - value: BlockMetadata_DeliverTxAmino; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTxSDKType { - request?: RequestDeliverTxSDKType; - response?: ResponseDeliverTxSDKType; -} -function createBaseStoreKVPair(): StoreKVPair { - return { - storeKey: "", - delete: false, - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const StoreKVPair = { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair", - encode(message: StoreKVPair, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.storeKey !== "") { - writer.uint32(10).string(message.storeKey); - } - if (message.delete === true) { - writer.uint32(16).bool(message.delete); - } - if (message.key.length !== 0) { - writer.uint32(26).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(34).bytes(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): StoreKVPair { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStoreKVPair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.storeKey = reader.string(); - break; - case 2: - message.delete = reader.bool(); - break; - case 3: - message.key = reader.bytes(); - break; - case 4: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): StoreKVPair { - return { - storeKey: isSet(object.storeKey) ? String(object.storeKey) : "", - delete: isSet(object.delete) ? Boolean(object.delete) : false, - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array() - }; - }, - toJSON(message: StoreKVPair): unknown { - const obj: any = {}; - message.storeKey !== undefined && (obj.storeKey = message.storeKey); - message.delete !== undefined && (obj.delete = message.delete); - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): StoreKVPair { - const message = createBaseStoreKVPair(); - message.storeKey = object.storeKey ?? ""; - message.delete = object.delete ?? false; - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object: StoreKVPairAmino): StoreKVPair { - const message = createBaseStoreKVPair(); - if (object.store_key !== undefined && object.store_key !== null) { - message.storeKey = object.store_key; - } - if (object.delete !== undefined && object.delete !== null) { - message.delete = object.delete; - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - return message; - }, - toAmino(message: StoreKVPair): StoreKVPairAmino { - const obj: any = {}; - obj.store_key = message.storeKey === "" ? undefined : message.storeKey; - obj.delete = message.delete === false ? undefined : message.delete; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - return obj; - }, - fromAminoMsg(object: StoreKVPairAminoMsg): StoreKVPair { - return StoreKVPair.fromAmino(object.value); - }, - toAminoMsg(message: StoreKVPair): StoreKVPairAminoMsg { - return { - type: "cosmos-sdk/StoreKVPair", - value: StoreKVPair.toAmino(message) - }; - }, - fromProtoMsg(message: StoreKVPairProtoMsg): StoreKVPair { - return StoreKVPair.decode(message.value); - }, - toProto(message: StoreKVPair): Uint8Array { - return StoreKVPair.encode(message).finish(); - }, - toProtoMsg(message: StoreKVPair): StoreKVPairProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair", - value: StoreKVPair.encode(message).finish() - }; - } -}; -function createBaseBlockMetadata(): BlockMetadata { - return { - requestBeginBlock: undefined, - responseBeginBlock: undefined, - deliverTxs: [], - requestEndBlock: undefined, - responseEndBlock: undefined, - responseCommit: undefined - }; -} -export const BlockMetadata = { - typeUrl: "/cosmos.base.store.v1beta1.BlockMetadata", - encode(message: BlockMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.requestBeginBlock !== undefined) { - RequestBeginBlock.encode(message.requestBeginBlock, writer.uint32(10).fork()).ldelim(); - } - if (message.responseBeginBlock !== undefined) { - ResponseBeginBlock.encode(message.responseBeginBlock, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.deliverTxs) { - BlockMetadata_DeliverTx.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.requestEndBlock !== undefined) { - RequestEndBlock.encode(message.requestEndBlock, writer.uint32(34).fork()).ldelim(); - } - if (message.responseEndBlock !== undefined) { - ResponseEndBlock.encode(message.responseEndBlock, writer.uint32(42).fork()).ldelim(); - } - if (message.responseCommit !== undefined) { - ResponseCommit.encode(message.responseCommit, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestBeginBlock = RequestBeginBlock.decode(reader, reader.uint32()); - break; - case 2: - message.responseBeginBlock = ResponseBeginBlock.decode(reader, reader.uint32()); - break; - case 3: - message.deliverTxs.push(BlockMetadata_DeliverTx.decode(reader, reader.uint32())); - break; - case 4: - message.requestEndBlock = RequestEndBlock.decode(reader, reader.uint32()); - break; - case 5: - message.responseEndBlock = ResponseEndBlock.decode(reader, reader.uint32()); - break; - case 6: - message.responseCommit = ResponseCommit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BlockMetadata { - return { - requestBeginBlock: isSet(object.requestBeginBlock) ? RequestBeginBlock.fromJSON(object.requestBeginBlock) : undefined, - responseBeginBlock: isSet(object.responseBeginBlock) ? ResponseBeginBlock.fromJSON(object.responseBeginBlock) : undefined, - deliverTxs: Array.isArray(object?.deliverTxs) ? object.deliverTxs.map((e: any) => BlockMetadata_DeliverTx.fromJSON(e)) : [], - requestEndBlock: isSet(object.requestEndBlock) ? RequestEndBlock.fromJSON(object.requestEndBlock) : undefined, - responseEndBlock: isSet(object.responseEndBlock) ? ResponseEndBlock.fromJSON(object.responseEndBlock) : undefined, - responseCommit: isSet(object.responseCommit) ? ResponseCommit.fromJSON(object.responseCommit) : undefined - }; - }, - toJSON(message: BlockMetadata): unknown { - const obj: any = {}; - message.requestBeginBlock !== undefined && (obj.requestBeginBlock = message.requestBeginBlock ? RequestBeginBlock.toJSON(message.requestBeginBlock) : undefined); - message.responseBeginBlock !== undefined && (obj.responseBeginBlock = message.responseBeginBlock ? ResponseBeginBlock.toJSON(message.responseBeginBlock) : undefined); - if (message.deliverTxs) { - obj.deliverTxs = message.deliverTxs.map(e => e ? BlockMetadata_DeliverTx.toJSON(e) : undefined); - } else { - obj.deliverTxs = []; - } - message.requestEndBlock !== undefined && (obj.requestEndBlock = message.requestEndBlock ? RequestEndBlock.toJSON(message.requestEndBlock) : undefined); - message.responseEndBlock !== undefined && (obj.responseEndBlock = message.responseEndBlock ? ResponseEndBlock.toJSON(message.responseEndBlock) : undefined); - message.responseCommit !== undefined && (obj.responseCommit = message.responseCommit ? ResponseCommit.toJSON(message.responseCommit) : undefined); - return obj; - }, - fromPartial(object: Partial): BlockMetadata { - const message = createBaseBlockMetadata(); - message.requestBeginBlock = object.requestBeginBlock !== undefined && object.requestBeginBlock !== null ? RequestBeginBlock.fromPartial(object.requestBeginBlock) : undefined; - message.responseBeginBlock = object.responseBeginBlock !== undefined && object.responseBeginBlock !== null ? ResponseBeginBlock.fromPartial(object.responseBeginBlock) : undefined; - message.deliverTxs = object.deliverTxs?.map(e => BlockMetadata_DeliverTx.fromPartial(e)) || []; - message.requestEndBlock = object.requestEndBlock !== undefined && object.requestEndBlock !== null ? RequestEndBlock.fromPartial(object.requestEndBlock) : undefined; - message.responseEndBlock = object.responseEndBlock !== undefined && object.responseEndBlock !== null ? ResponseEndBlock.fromPartial(object.responseEndBlock) : undefined; - message.responseCommit = object.responseCommit !== undefined && object.responseCommit !== null ? ResponseCommit.fromPartial(object.responseCommit) : undefined; - return message; - }, - fromAmino(object: BlockMetadataAmino): BlockMetadata { - const message = createBaseBlockMetadata(); - if (object.request_begin_block !== undefined && object.request_begin_block !== null) { - message.requestBeginBlock = RequestBeginBlock.fromAmino(object.request_begin_block); - } - if (object.response_begin_block !== undefined && object.response_begin_block !== null) { - message.responseBeginBlock = ResponseBeginBlock.fromAmino(object.response_begin_block); - } - message.deliverTxs = object.deliver_txs?.map(e => BlockMetadata_DeliverTx.fromAmino(e)) || []; - if (object.request_end_block !== undefined && object.request_end_block !== null) { - message.requestEndBlock = RequestEndBlock.fromAmino(object.request_end_block); - } - if (object.response_end_block !== undefined && object.response_end_block !== null) { - message.responseEndBlock = ResponseEndBlock.fromAmino(object.response_end_block); - } - if (object.response_commit !== undefined && object.response_commit !== null) { - message.responseCommit = ResponseCommit.fromAmino(object.response_commit); - } - return message; - }, - toAmino(message: BlockMetadata): BlockMetadataAmino { - const obj: any = {}; - obj.request_begin_block = message.requestBeginBlock ? RequestBeginBlock.toAmino(message.requestBeginBlock) : undefined; - obj.response_begin_block = message.responseBeginBlock ? ResponseBeginBlock.toAmino(message.responseBeginBlock) : undefined; - if (message.deliverTxs) { - obj.deliver_txs = message.deliverTxs.map(e => e ? BlockMetadata_DeliverTx.toAmino(e) : undefined); - } else { - obj.deliver_txs = message.deliverTxs; - } - obj.request_end_block = message.requestEndBlock ? RequestEndBlock.toAmino(message.requestEndBlock) : undefined; - obj.response_end_block = message.responseEndBlock ? ResponseEndBlock.toAmino(message.responseEndBlock) : undefined; - obj.response_commit = message.responseCommit ? ResponseCommit.toAmino(message.responseCommit) : undefined; - return obj; - }, - fromAminoMsg(object: BlockMetadataAminoMsg): BlockMetadata { - return BlockMetadata.fromAmino(object.value); - }, - toAminoMsg(message: BlockMetadata): BlockMetadataAminoMsg { - return { - type: "cosmos-sdk/BlockMetadata", - value: BlockMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: BlockMetadataProtoMsg): BlockMetadata { - return BlockMetadata.decode(message.value); - }, - toProto(message: BlockMetadata): Uint8Array { - return BlockMetadata.encode(message).finish(); - }, - toProtoMsg(message: BlockMetadata): BlockMetadataProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.BlockMetadata", - value: BlockMetadata.encode(message).finish() - }; - } -}; -function createBaseBlockMetadata_DeliverTx(): BlockMetadata_DeliverTx { - return { - request: undefined, - response: undefined - }; -} -export const BlockMetadata_DeliverTx = { - typeUrl: "/cosmos.base.store.v1beta1.DeliverTx", - encode(message: BlockMetadata_DeliverTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.request !== undefined) { - RequestDeliverTx.encode(message.request, writer.uint32(10).fork()).ldelim(); - } - if (message.response !== undefined) { - ResponseDeliverTx.encode(message.response, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata_DeliverTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockMetadata_DeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.request = RequestDeliverTx.decode(reader, reader.uint32()); - break; - case 2: - message.response = ResponseDeliverTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BlockMetadata_DeliverTx { - return { - request: isSet(object.request) ? RequestDeliverTx.fromJSON(object.request) : undefined, - response: isSet(object.response) ? ResponseDeliverTx.fromJSON(object.response) : undefined - }; - }, - toJSON(message: BlockMetadata_DeliverTx): unknown { - const obj: any = {}; - message.request !== undefined && (obj.request = message.request ? RequestDeliverTx.toJSON(message.request) : undefined); - message.response !== undefined && (obj.response = message.response ? ResponseDeliverTx.toJSON(message.response) : undefined); - return obj; - }, - fromPartial(object: Partial): BlockMetadata_DeliverTx { - const message = createBaseBlockMetadata_DeliverTx(); - message.request = object.request !== undefined && object.request !== null ? RequestDeliverTx.fromPartial(object.request) : undefined; - message.response = object.response !== undefined && object.response !== null ? ResponseDeliverTx.fromPartial(object.response) : undefined; - return message; - }, - fromAmino(object: BlockMetadata_DeliverTxAmino): BlockMetadata_DeliverTx { - const message = createBaseBlockMetadata_DeliverTx(); - if (object.request !== undefined && object.request !== null) { - message.request = RequestDeliverTx.fromAmino(object.request); - } - if (object.response !== undefined && object.response !== null) { - message.response = ResponseDeliverTx.fromAmino(object.response); - } - return message; - }, - toAmino(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxAmino { - const obj: any = {}; - obj.request = message.request ? RequestDeliverTx.toAmino(message.request) : undefined; - obj.response = message.response ? ResponseDeliverTx.toAmino(message.response) : undefined; - return obj; - }, - fromAminoMsg(object: BlockMetadata_DeliverTxAminoMsg): BlockMetadata_DeliverTx { - return BlockMetadata_DeliverTx.fromAmino(object.value); - }, - toAminoMsg(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxAminoMsg { - return { - type: "cosmos-sdk/DeliverTx", - value: BlockMetadata_DeliverTx.toAmino(message) - }; - }, - fromProtoMsg(message: BlockMetadata_DeliverTxProtoMsg): BlockMetadata_DeliverTx { - return BlockMetadata_DeliverTx.decode(message.value); - }, - toProto(message: BlockMetadata_DeliverTx): Uint8Array { - return BlockMetadata_DeliverTx.encode(message).finish(); - }, - toProtoMsg(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxProtoMsg { - return { - typeUrl: "/cosmos.base.store.v1beta1.DeliverTx", - value: BlockMetadata_DeliverTx.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts deleted file mode 100644 index 54b43a1a..00000000 --- a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType, ABCIQueryRequest, ABCIQueryResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.getNodeInfo = this.getNodeInfo.bind(this); - this.getSyncing = this.getSyncing.bind(this); - this.getLatestBlock = this.getLatestBlock.bind(this); - this.getBlockByHeight = this.getBlockByHeight.bind(this); - this.getLatestValidatorSet = this.getLatestValidatorSet.bind(this); - this.getValidatorSetByHeight = this.getValidatorSetByHeight.bind(this); - this.aBCIQuery = this.aBCIQuery.bind(this); - } - /* GetNodeInfo queries the current node info. */ - async getNodeInfo(_params: GetNodeInfoRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/node_info`; - return await this.req.get(endpoint); - } - /* GetSyncing queries node syncing. */ - async getSyncing(_params: GetSyncingRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/syncing`; - return await this.req.get(endpoint); - } - /* GetLatestBlock returns the latest block. */ - async getLatestBlock(_params: GetLatestBlockRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/blocks/latest`; - return await this.req.get(endpoint); - } - /* GetBlockByHeight queries block for given height. */ - async getBlockByHeight(params: GetBlockByHeightRequest): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/blocks/${params.height}`; - return await this.req.get(endpoint); - } - /* GetLatestValidatorSet queries latest validator-set. */ - async getLatestValidatorSet(params: GetLatestValidatorSetRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/latest`; - return await this.req.get(endpoint, options); - } - /* GetValidatorSetByHeight queries validator-set at a given height. */ - async getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/${params.height}`; - return await this.req.get(endpoint, options); - } - /* ABCIQuery defines a query handler that supports ABCI queries directly to - the application, bypassing Tendermint completely. The ABCI query must - contain a valid and supported path, including app, custom, p2p, and store. - - Since: cosmos-sdk 0.46 */ - async aBCIQuery(params: ABCIQueryRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.data !== "undefined") { - options.params.data = params.data; - } - if (typeof params?.path !== "undefined") { - options.params.path = params.path; - } - if (typeof params?.height !== "undefined") { - options.params.height = params.height; - } - if (typeof params?.prove !== "undefined") { - options.params.prove = params.prove; - } - const endpoint = `cosmos/base/tendermint/v1beta1/abci_query`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts b/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts deleted file mode 100644 index be59b17f..00000000 --- a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ABCIQueryRequest, ABCIQueryResponse } from "./query"; -/** Service defines the gRPC querier service for tendermint queries. */ -export interface Service { - /** GetNodeInfo queries the current node info. */ - getNodeInfo(request?: GetNodeInfoRequest): Promise; - /** GetSyncing queries node syncing. */ - getSyncing(request?: GetSyncingRequest): Promise; - /** GetLatestBlock returns the latest block. */ - getLatestBlock(request?: GetLatestBlockRequest): Promise; - /** GetBlockByHeight queries block for given height. */ - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - /** GetLatestValidatorSet queries latest validator-set. */ - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - /** GetValidatorSetByHeight queries validator-set at a given height. */ - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; - /** - * ABCIQuery defines a query handler that supports ABCI queries directly to - * the application, bypassing Tendermint completely. The ABCI query must - * contain a valid and supported path, including app, custom, p2p, and store. - * - * Since: cosmos-sdk 0.46 - */ - aBCIQuery(request: ABCIQueryRequest): Promise; -} -export class ServiceClientImpl implements Service { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.getNodeInfo = this.getNodeInfo.bind(this); - this.getSyncing = this.getSyncing.bind(this); - this.getLatestBlock = this.getLatestBlock.bind(this); - this.getBlockByHeight = this.getBlockByHeight.bind(this); - this.getLatestValidatorSet = this.getLatestValidatorSet.bind(this); - this.getValidatorSetByHeight = this.getValidatorSetByHeight.bind(this); - this.aBCIQuery = this.aBCIQuery.bind(this); - } - getNodeInfo(request: GetNodeInfoRequest = {}): Promise { - const data = GetNodeInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetNodeInfo", data); - return promise.then(data => GetNodeInfoResponse.decode(new BinaryReader(data))); - } - getSyncing(request: GetSyncingRequest = {}): Promise { - const data = GetSyncingRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetSyncing", data); - return promise.then(data => GetSyncingResponse.decode(new BinaryReader(data))); - } - getLatestBlock(request: GetLatestBlockRequest = {}): Promise { - const data = GetLatestBlockRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestBlock", data); - return promise.then(data => GetLatestBlockResponse.decode(new BinaryReader(data))); - } - getBlockByHeight(request: GetBlockByHeightRequest): Promise { - const data = GetBlockByHeightRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetBlockByHeight", data); - return promise.then(data => GetBlockByHeightResponse.decode(new BinaryReader(data))); - } - getLatestValidatorSet(request: GetLatestValidatorSetRequest = { - pagination: undefined - }): Promise { - const data = GetLatestValidatorSetRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestValidatorSet", data); - return promise.then(data => GetLatestValidatorSetResponse.decode(new BinaryReader(data))); - } - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise { - const data = GetValidatorSetByHeightRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetValidatorSetByHeight", data); - return promise.then(data => GetValidatorSetByHeightResponse.decode(new BinaryReader(data))); - } - aBCIQuery(request: ABCIQueryRequest): Promise { - const data = ABCIQueryRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "ABCIQuery", data); - return promise.then(data => ABCIQueryResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new ServiceClientImpl(rpc); - return { - getNodeInfo(request?: GetNodeInfoRequest): Promise { - return queryService.getNodeInfo(request); - }, - getSyncing(request?: GetSyncingRequest): Promise { - return queryService.getSyncing(request); - }, - getLatestBlock(request?: GetLatestBlockRequest): Promise { - return queryService.getLatestBlock(request); - }, - getBlockByHeight(request: GetBlockByHeightRequest): Promise { - return queryService.getBlockByHeight(request); - }, - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise { - return queryService.getLatestValidatorSet(request); - }, - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise { - return queryService.getValidatorSetByHeight(request); - }, - aBCIQuery(request: ABCIQueryRequest): Promise { - return queryService.aBCIQuery(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.ts b/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.ts deleted file mode 100644 index 6c9b4dea..00000000 --- a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +++ /dev/null @@ -1,2609 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { Block as Block1 } from "../../../../tendermint/types/block"; -import { BlockAmino as Block1Amino } from "../../../../tendermint/types/block"; -import { BlockSDKType as Block1SDKType } from "../../../../tendermint/types/block"; -import { Block as Block2 } from "./types"; -import { BlockAmino as Block2Amino } from "./types"; -import { BlockSDKType as Block2SDKType } from "./types"; -import { DefaultNodeInfo, DefaultNodeInfoAmino, DefaultNodeInfoSDKType } from "../../../../tendermint/p2p/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequest { - height: bigint; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface GetValidatorSetByHeightRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest"; - value: Uint8Array; -} -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequestAmino { - height?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetValidatorSetByHeightRequestAminoMsg { - type: "cosmos-sdk/GetValidatorSetByHeightRequest"; - value: GetValidatorSetByHeightRequestAmino; -} -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequestSDKType { - height: bigint; - pagination?: PageRequestSDKType; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponse { - blockHeight: bigint; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface GetValidatorSetByHeightResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse"; - value: Uint8Array; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponseAmino { - block_height?: string; - validators?: ValidatorAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetValidatorSetByHeightResponseAminoMsg { - type: "cosmos-sdk/GetValidatorSetByHeightResponse"; - value: GetValidatorSetByHeightResponseAmino; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponseSDKType { - block_height: bigint; - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequest { - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface GetLatestValidatorSetRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest"; - value: Uint8Array; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequestAmino { - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetLatestValidatorSetRequestAminoMsg { - type: "cosmos-sdk/GetLatestValidatorSetRequest"; - value: GetLatestValidatorSetRequestAmino; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponse { - blockHeight: bigint; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface GetLatestValidatorSetResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse"; - value: Uint8Array; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponseAmino { - block_height?: string; - validators?: ValidatorAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetLatestValidatorSetResponseAminoMsg { - type: "cosmos-sdk/GetLatestValidatorSetResponse"; - value: GetLatestValidatorSetResponseAmino; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponseSDKType { - block_height: bigint; - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** Validator is the type for the validator-set. */ -export interface Validator { - address: string; - pubKey?: Any; - votingPower: bigint; - proposerPriority: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Validator"; - value: Uint8Array; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorAmino { - address?: string; - pub_key?: AnyAmino; - voting_power?: string; - proposer_priority?: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorSDKType { - address: string; - pub_key?: AnySDKType; - voting_power: bigint; - proposer_priority: bigint; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequest { - height: bigint; -} -export interface GetBlockByHeightRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest"; - value: Uint8Array; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequestAmino { - height?: string; -} -export interface GetBlockByHeightRequestAminoMsg { - type: "cosmos-sdk/GetBlockByHeightRequest"; - value: GetBlockByHeightRequestAmino; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequestSDKType { - height: bigint; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponse { - blockId?: BlockID; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1; - /** Since: cosmos-sdk 0.47 */ - sdkBlock?: Block2; -} -export interface GetBlockByHeightResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse"; - value: Uint8Array; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponseAmino { - block_id?: BlockIDAmino; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1Amino; - /** Since: cosmos-sdk 0.47 */ - sdk_block?: Block2Amino; -} -export interface GetBlockByHeightResponseAminoMsg { - type: "cosmos-sdk/GetBlockByHeightResponse"; - value: GetBlockByHeightResponseAmino; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponseSDKType { - block_id?: BlockIDSDKType; - block?: Block1SDKType; - sdk_block?: Block2SDKType; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequest {} -export interface GetLatestBlockRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest"; - value: Uint8Array; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequestAmino {} -export interface GetLatestBlockRequestAminoMsg { - type: "cosmos-sdk/GetLatestBlockRequest"; - value: GetLatestBlockRequestAmino; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequestSDKType {} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponse { - blockId?: BlockID; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1; - /** Since: cosmos-sdk 0.47 */ - sdkBlock?: Block2; -} -export interface GetLatestBlockResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse"; - value: Uint8Array; -} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponseAmino { - block_id?: BlockIDAmino; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1Amino; - /** Since: cosmos-sdk 0.47 */ - sdk_block?: Block2Amino; -} -export interface GetLatestBlockResponseAminoMsg { - type: "cosmos-sdk/GetLatestBlockResponse"; - value: GetLatestBlockResponseAmino; -} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponseSDKType { - block_id?: BlockIDSDKType; - block?: Block1SDKType; - sdk_block?: Block2SDKType; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequest {} -export interface GetSyncingRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest"; - value: Uint8Array; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestAmino {} -export interface GetSyncingRequestAminoMsg { - type: "cosmos-sdk/GetSyncingRequest"; - value: GetSyncingRequestAmino; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestSDKType {} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponse { - syncing: boolean; -} -export interface GetSyncingResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse"; - value: Uint8Array; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseAmino { - syncing?: boolean; -} -export interface GetSyncingResponseAminoMsg { - type: "cosmos-sdk/GetSyncingResponse"; - value: GetSyncingResponseAmino; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseSDKType { - syncing: boolean; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequest {} -export interface GetNodeInfoRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest"; - value: Uint8Array; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestAmino {} -export interface GetNodeInfoRequestAminoMsg { - type: "cosmos-sdk/GetNodeInfoRequest"; - value: GetNodeInfoRequestAmino; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestSDKType {} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponse { - defaultNodeInfo?: DefaultNodeInfo; - applicationVersion?: VersionInfo; -} -export interface GetNodeInfoResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"; - value: Uint8Array; -} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponseAmino { - default_node_info?: DefaultNodeInfoAmino; - application_version?: VersionInfoAmino; -} -export interface GetNodeInfoResponseAminoMsg { - type: "cosmos-sdk/GetNodeInfoResponse"; - value: GetNodeInfoResponseAmino; -} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponseSDKType { - default_node_info?: DefaultNodeInfoSDKType; - application_version?: VersionInfoSDKType; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfo { - name: string; - appName: string; - version: string; - gitCommit: string; - buildTags: string; - goVersion: string; - buildDeps: Module[]; - /** Since: cosmos-sdk 0.43 */ - cosmosSdkVersion: string; -} -export interface VersionInfoProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo"; - value: Uint8Array; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoAmino { - name?: string; - app_name?: string; - version?: string; - git_commit?: string; - build_tags?: string; - go_version?: string; - build_deps?: ModuleAmino[]; - /** Since: cosmos-sdk 0.43 */ - cosmos_sdk_version?: string; -} -export interface VersionInfoAminoMsg { - type: "cosmos-sdk/VersionInfo"; - value: VersionInfoAmino; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoSDKType { - name: string; - app_name: string; - version: string; - git_commit: string; - build_tags: string; - go_version: string; - build_deps: ModuleSDKType[]; - cosmos_sdk_version: string; -} -/** Module is the type for VersionInfo */ -export interface Module { - /** module path */ - path: string; - /** module version */ - version: string; - /** checksum */ - sum: string; -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Module"; - value: Uint8Array; -} -/** Module is the type for VersionInfo */ -export interface ModuleAmino { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** Module is the type for VersionInfo */ -export interface ModuleSDKType { - path: string; - version: string; - sum: string; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequest { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface ABCIQueryRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest"; - value: Uint8Array; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequestAmino { - data?: string; - path?: string; - height?: string; - prove?: boolean; -} -export interface ABCIQueryRequestAminoMsg { - type: "cosmos-sdk/ABCIQueryRequest"; - value: ABCIQueryRequestAmino; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequestSDKType { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponse { - code: number; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proofOps?: ProofOps; - height: bigint; - codespace: string; -} -export interface ABCIQueryResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse"; - value: Uint8Array; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponseAmino { - code?: number; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - index?: string; - key?: string; - value?: string; - proof_ops?: ProofOpsAmino; - height?: string; - codespace?: string; -} -export interface ABCIQueryResponseAminoMsg { - type: "cosmos-sdk/ABCIQueryResponse"; - value: ABCIQueryResponseAmino; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponseSDKType { - code: number; - log: string; - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsSDKType; - height: bigint; - codespace: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOpAmino { - type?: string; - key?: string; - data?: string; -} -export interface ProofOpAminoMsg { - type: "cosmos-sdk/ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps"; - value: Uint8Array; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOpsAmino { - ops?: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "cosmos-sdk/ProofOps"; - value: ProofOpsAmino; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} -function createBaseGetValidatorSetByHeightRequest(): GetValidatorSetByHeightRequest { - return { - height: BigInt(0), - pagination: undefined - }; -} -export const GetValidatorSetByHeightRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", - encode(message: GetValidatorSetByHeightRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetValidatorSetByHeightRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetValidatorSetByHeightRequest { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetValidatorSetByHeightRequest): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetValidatorSetByHeightRequest { - const message = createBaseGetValidatorSetByHeightRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetValidatorSetByHeightRequestAmino): GetValidatorSetByHeightRequest { - const message = createBaseGetValidatorSetByHeightRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetValidatorSetByHeightRequestAminoMsg): GetValidatorSetByHeightRequest { - return GetValidatorSetByHeightRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAminoMsg { - return { - type: "cosmos-sdk/GetValidatorSetByHeightRequest", - value: GetValidatorSetByHeightRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetValidatorSetByHeightRequestProtoMsg): GetValidatorSetByHeightRequest { - return GetValidatorSetByHeightRequest.decode(message.value); - }, - toProto(message: GetValidatorSetByHeightRequest): Uint8Array { - return GetValidatorSetByHeightRequest.encode(message).finish(); - }, - toProtoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", - value: GetValidatorSetByHeightRequest.encode(message).finish() - }; - } -}; -function createBaseGetValidatorSetByHeightResponse(): GetValidatorSetByHeightResponse { - return { - blockHeight: BigInt(0), - validators: [], - pagination: undefined - }; -} -export const GetValidatorSetByHeightResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", - encode(message: GetValidatorSetByHeightResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockHeight !== BigInt(0)) { - writer.uint32(8).int64(message.blockHeight); - } - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetValidatorSetByHeightResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = reader.int64(); - break; - case 2: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetValidatorSetByHeightResponse { - return { - blockHeight: isSet(object.blockHeight) ? BigInt(object.blockHeight.toString()) : BigInt(0), - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetValidatorSetByHeightResponse): unknown { - const obj: any = {}; - message.blockHeight !== undefined && (obj.blockHeight = (message.blockHeight || BigInt(0)).toString()); - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetValidatorSetByHeightResponse { - const message = createBaseGetValidatorSetByHeightResponse(); - message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? BigInt(object.blockHeight.toString()) : BigInt(0); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetValidatorSetByHeightResponseAmino): GetValidatorSetByHeightResponse { - const message = createBaseGetValidatorSetByHeightResponse(); - if (object.block_height !== undefined && object.block_height !== null) { - message.blockHeight = BigInt(object.block_height); - } - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAmino { - const obj: any = {}; - obj.block_height = message.blockHeight !== BigInt(0) ? message.blockHeight.toString() : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetValidatorSetByHeightResponseAminoMsg): GetValidatorSetByHeightResponse { - return GetValidatorSetByHeightResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAminoMsg { - return { - type: "cosmos-sdk/GetValidatorSetByHeightResponse", - value: GetValidatorSetByHeightResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetValidatorSetByHeightResponseProtoMsg): GetValidatorSetByHeightResponse { - return GetValidatorSetByHeightResponse.decode(message.value); - }, - toProto(message: GetValidatorSetByHeightResponse): Uint8Array { - return GetValidatorSetByHeightResponse.encode(message).finish(); - }, - toProtoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", - value: GetValidatorSetByHeightResponse.encode(message).finish() - }; - } -}; -function createBaseGetLatestValidatorSetRequest(): GetLatestValidatorSetRequest { - return { - pagination: undefined - }; -} -export const GetLatestValidatorSetRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", - encode(message: GetLatestValidatorSetRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestValidatorSetRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetLatestValidatorSetRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetLatestValidatorSetRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetLatestValidatorSetRequest { - const message = createBaseGetLatestValidatorSetRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetLatestValidatorSetRequestAmino): GetLatestValidatorSetRequest { - const message = createBaseGetLatestValidatorSetRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetLatestValidatorSetRequestAminoMsg): GetLatestValidatorSetRequest { - return GetLatestValidatorSetRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAminoMsg { - return { - type: "cosmos-sdk/GetLatestValidatorSetRequest", - value: GetLatestValidatorSetRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetLatestValidatorSetRequestProtoMsg): GetLatestValidatorSetRequest { - return GetLatestValidatorSetRequest.decode(message.value); - }, - toProto(message: GetLatestValidatorSetRequest): Uint8Array { - return GetLatestValidatorSetRequest.encode(message).finish(); - }, - toProtoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", - value: GetLatestValidatorSetRequest.encode(message).finish() - }; - } -}; -function createBaseGetLatestValidatorSetResponse(): GetLatestValidatorSetResponse { - return { - blockHeight: BigInt(0), - validators: [], - pagination: undefined - }; -} -export const GetLatestValidatorSetResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", - encode(message: GetLatestValidatorSetResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockHeight !== BigInt(0)) { - writer.uint32(8).int64(message.blockHeight); - } - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestValidatorSetResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = reader.int64(); - break; - case 2: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetLatestValidatorSetResponse { - return { - blockHeight: isSet(object.blockHeight) ? BigInt(object.blockHeight.toString()) : BigInt(0), - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetLatestValidatorSetResponse): unknown { - const obj: any = {}; - message.blockHeight !== undefined && (obj.blockHeight = (message.blockHeight || BigInt(0)).toString()); - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetLatestValidatorSetResponse { - const message = createBaseGetLatestValidatorSetResponse(); - message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? BigInt(object.blockHeight.toString()) : BigInt(0); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetLatestValidatorSetResponseAmino): GetLatestValidatorSetResponse { - const message = createBaseGetLatestValidatorSetResponse(); - if (object.block_height !== undefined && object.block_height !== null) { - message.blockHeight = BigInt(object.block_height); - } - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAmino { - const obj: any = {}; - obj.block_height = message.blockHeight !== BigInt(0) ? message.blockHeight.toString() : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetLatestValidatorSetResponseAminoMsg): GetLatestValidatorSetResponse { - return GetLatestValidatorSetResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAminoMsg { - return { - type: "cosmos-sdk/GetLatestValidatorSetResponse", - value: GetLatestValidatorSetResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetLatestValidatorSetResponseProtoMsg): GetLatestValidatorSetResponse { - return GetLatestValidatorSetResponse.decode(message.value); - }, - toProto(message: GetLatestValidatorSetResponse): Uint8Array { - return GetLatestValidatorSetResponse.encode(message).finish(); - }, - toProtoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", - value: GetLatestValidatorSetResponse.encode(message).finish() - }; - } -}; -function createBaseValidator(): Validator { - return { - address: "", - pubKey: undefined, - votingPower: BigInt(0), - proposerPriority: BigInt(0) - }; -} -export const Validator = { - typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", - encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(24).int64(message.votingPower); - } - if (message.proposerPriority !== BigInt(0)) { - writer.uint32(32).int64(message.proposerPriority); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Validator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.votingPower = reader.int64(); - break; - case 4: - message.proposerPriority = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Validator { - return { - address: isSet(object.address) ? String(object.address) : "", - pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : undefined, - votingPower: isSet(object.votingPower) ? BigInt(object.votingPower.toString()) : BigInt(0), - proposerPriority: isSet(object.proposerPriority) ? BigInt(object.proposerPriority.toString()) : BigInt(0) - }; - }, - toJSON(message: Validator): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? Any.toJSON(message.pubKey) : undefined); - message.votingPower !== undefined && (obj.votingPower = (message.votingPower || BigInt(0)).toString()); - message.proposerPriority !== undefined && (obj.proposerPriority = (message.proposerPriority || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Validator { - const message = createBaseValidator(); - message.address = object.address ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorAmino): Validator { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = Any.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - if (object.proposer_priority !== undefined && object.proposer_priority !== null) { - message.proposerPriority = BigInt(object.proposer_priority); - } - return message; - }, - toAmino(message: Validator): ValidatorAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorAminoMsg): Validator { - return Validator.fromAmino(object.value); - }, - toAminoMsg(message: Validator): ValidatorAminoMsg { - return { - type: "cosmos-sdk/Validator", - value: Validator.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorProtoMsg): Validator { - return Validator.decode(message.value); - }, - toProto(message: Validator): Uint8Array { - return Validator.encode(message).finish(); - }, - toProtoMsg(message: Validator): ValidatorProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseGetBlockByHeightRequest(): GetBlockByHeightRequest { - return { - height: BigInt(0) - }; -} -export const GetBlockByHeightRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", - encode(message: GetBlockByHeightRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockByHeightRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetBlockByHeightRequest { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0) - }; - }, - toJSON(message: GetBlockByHeightRequest): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): GetBlockByHeightRequest { - const message = createBaseGetBlockByHeightRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object: GetBlockByHeightRequestAmino): GetBlockByHeightRequest { - const message = createBaseGetBlockByHeightRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message: GetBlockByHeightRequest): GetBlockByHeightRequestAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object: GetBlockByHeightRequestAminoMsg): GetBlockByHeightRequest { - return GetBlockByHeightRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestAminoMsg { - return { - type: "cosmos-sdk/GetBlockByHeightRequest", - value: GetBlockByHeightRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetBlockByHeightRequestProtoMsg): GetBlockByHeightRequest { - return GetBlockByHeightRequest.decode(message.value); - }, - toProto(message: GetBlockByHeightRequest): Uint8Array { - return GetBlockByHeightRequest.encode(message).finish(); - }, - toProtoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", - value: GetBlockByHeightRequest.encode(message).finish() - }; - } -}; -function createBaseGetBlockByHeightResponse(): GetBlockByHeightResponse { - return { - blockId: undefined, - block: undefined, - sdkBlock: undefined - }; -} -export const GetBlockByHeightResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", - encode(message: GetBlockByHeightResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.block !== undefined) { - Block1.encode(message.block, writer.uint32(18).fork()).ldelim(); - } - if (message.sdkBlock !== undefined) { - Block2.encode(message.sdkBlock, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockByHeightResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.block = Block1.decode(reader, reader.uint32()); - break; - case 3: - message.sdkBlock = Block2.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetBlockByHeightResponse { - return { - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - block: isSet(object.block) ? Block1.fromJSON(object.block) : undefined, - sdkBlock: isSet(object.sdkBlock) ? Block2.fromJSON(object.sdkBlock) : undefined - }; - }, - toJSON(message: GetBlockByHeightResponse): unknown { - const obj: any = {}; - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.block !== undefined && (obj.block = message.block ? Block1.toJSON(message.block) : undefined); - message.sdkBlock !== undefined && (obj.sdkBlock = message.sdkBlock ? Block2.toJSON(message.sdkBlock) : undefined); - return obj; - }, - fromPartial(object: Partial): GetBlockByHeightResponse { - const message = createBaseGetBlockByHeightResponse(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block1.fromPartial(object.block) : undefined; - message.sdkBlock = object.sdkBlock !== undefined && object.sdkBlock !== null ? Block2.fromPartial(object.sdkBlock) : undefined; - return message; - }, - fromAmino(object: GetBlockByHeightResponseAmino): GetBlockByHeightResponse { - const message = createBaseGetBlockByHeightResponse(); - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block !== undefined && object.block !== null) { - message.block = Block1.fromAmino(object.block); - } - if (object.sdk_block !== undefined && object.sdk_block !== null) { - message.sdkBlock = Block2.fromAmino(object.sdk_block); - } - return message; - }, - toAmino(message: GetBlockByHeightResponse): GetBlockByHeightResponseAmino { - const obj: any = {}; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block = message.block ? Block1.toAmino(message.block) : undefined; - obj.sdk_block = message.sdkBlock ? Block2.toAmino(message.sdkBlock) : undefined; - return obj; - }, - fromAminoMsg(object: GetBlockByHeightResponseAminoMsg): GetBlockByHeightResponse { - return GetBlockByHeightResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseAminoMsg { - return { - type: "cosmos-sdk/GetBlockByHeightResponse", - value: GetBlockByHeightResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetBlockByHeightResponseProtoMsg): GetBlockByHeightResponse { - return GetBlockByHeightResponse.decode(message.value); - }, - toProto(message: GetBlockByHeightResponse): Uint8Array { - return GetBlockByHeightResponse.encode(message).finish(); - }, - toProtoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", - value: GetBlockByHeightResponse.encode(message).finish() - }; - } -}; -function createBaseGetLatestBlockRequest(): GetLatestBlockRequest { - return {}; -} -export const GetLatestBlockRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", - encode(_: GetLatestBlockRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestBlockRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetLatestBlockRequest { - return {}; - }, - toJSON(_: GetLatestBlockRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetLatestBlockRequest { - const message = createBaseGetLatestBlockRequest(); - return message; - }, - fromAmino(_: GetLatestBlockRequestAmino): GetLatestBlockRequest { - const message = createBaseGetLatestBlockRequest(); - return message; - }, - toAmino(_: GetLatestBlockRequest): GetLatestBlockRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetLatestBlockRequestAminoMsg): GetLatestBlockRequest { - return GetLatestBlockRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestAminoMsg { - return { - type: "cosmos-sdk/GetLatestBlockRequest", - value: GetLatestBlockRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetLatestBlockRequestProtoMsg): GetLatestBlockRequest { - return GetLatestBlockRequest.decode(message.value); - }, - toProto(message: GetLatestBlockRequest): Uint8Array { - return GetLatestBlockRequest.encode(message).finish(); - }, - toProtoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", - value: GetLatestBlockRequest.encode(message).finish() - }; - } -}; -function createBaseGetLatestBlockResponse(): GetLatestBlockResponse { - return { - blockId: undefined, - block: undefined, - sdkBlock: undefined - }; -} -export const GetLatestBlockResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", - encode(message: GetLatestBlockResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.block !== undefined) { - Block1.encode(message.block, writer.uint32(18).fork()).ldelim(); - } - if (message.sdkBlock !== undefined) { - Block2.encode(message.sdkBlock, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestBlockResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.block = Block1.decode(reader, reader.uint32()); - break; - case 3: - message.sdkBlock = Block2.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetLatestBlockResponse { - return { - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - block: isSet(object.block) ? Block1.fromJSON(object.block) : undefined, - sdkBlock: isSet(object.sdkBlock) ? Block2.fromJSON(object.sdkBlock) : undefined - }; - }, - toJSON(message: GetLatestBlockResponse): unknown { - const obj: any = {}; - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.block !== undefined && (obj.block = message.block ? Block1.toJSON(message.block) : undefined); - message.sdkBlock !== undefined && (obj.sdkBlock = message.sdkBlock ? Block2.toJSON(message.sdkBlock) : undefined); - return obj; - }, - fromPartial(object: Partial): GetLatestBlockResponse { - const message = createBaseGetLatestBlockResponse(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block1.fromPartial(object.block) : undefined; - message.sdkBlock = object.sdkBlock !== undefined && object.sdkBlock !== null ? Block2.fromPartial(object.sdkBlock) : undefined; - return message; - }, - fromAmino(object: GetLatestBlockResponseAmino): GetLatestBlockResponse { - const message = createBaseGetLatestBlockResponse(); - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block !== undefined && object.block !== null) { - message.block = Block1.fromAmino(object.block); - } - if (object.sdk_block !== undefined && object.sdk_block !== null) { - message.sdkBlock = Block2.fromAmino(object.sdk_block); - } - return message; - }, - toAmino(message: GetLatestBlockResponse): GetLatestBlockResponseAmino { - const obj: any = {}; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block = message.block ? Block1.toAmino(message.block) : undefined; - obj.sdk_block = message.sdkBlock ? Block2.toAmino(message.sdkBlock) : undefined; - return obj; - }, - fromAminoMsg(object: GetLatestBlockResponseAminoMsg): GetLatestBlockResponse { - return GetLatestBlockResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseAminoMsg { - return { - type: "cosmos-sdk/GetLatestBlockResponse", - value: GetLatestBlockResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetLatestBlockResponseProtoMsg): GetLatestBlockResponse { - return GetLatestBlockResponse.decode(message.value); - }, - toProto(message: GetLatestBlockResponse): Uint8Array { - return GetLatestBlockResponse.encode(message).finish(); - }, - toProtoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", - value: GetLatestBlockResponse.encode(message).finish() - }; - } -}; -function createBaseGetSyncingRequest(): GetSyncingRequest { - return {}; -} -export const GetSyncingRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", - encode(_: GetSyncingRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetSyncingRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetSyncingRequest { - return {}; - }, - toJSON(_: GetSyncingRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetSyncingRequest { - const message = createBaseGetSyncingRequest(); - return message; - }, - fromAmino(_: GetSyncingRequestAmino): GetSyncingRequest { - const message = createBaseGetSyncingRequest(); - return message; - }, - toAmino(_: GetSyncingRequest): GetSyncingRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetSyncingRequestAminoMsg): GetSyncingRequest { - return GetSyncingRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetSyncingRequest): GetSyncingRequestAminoMsg { - return { - type: "cosmos-sdk/GetSyncingRequest", - value: GetSyncingRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetSyncingRequestProtoMsg): GetSyncingRequest { - return GetSyncingRequest.decode(message.value); - }, - toProto(message: GetSyncingRequest): Uint8Array { - return GetSyncingRequest.encode(message).finish(); - }, - toProtoMsg(message: GetSyncingRequest): GetSyncingRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", - value: GetSyncingRequest.encode(message).finish() - }; - } -}; -function createBaseGetSyncingResponse(): GetSyncingResponse { - return { - syncing: false - }; -} -export const GetSyncingResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", - encode(message: GetSyncingResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.syncing === true) { - writer.uint32(8).bool(message.syncing); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetSyncingResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.syncing = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetSyncingResponse { - return { - syncing: isSet(object.syncing) ? Boolean(object.syncing) : false - }; - }, - toJSON(message: GetSyncingResponse): unknown { - const obj: any = {}; - message.syncing !== undefined && (obj.syncing = message.syncing); - return obj; - }, - fromPartial(object: Partial): GetSyncingResponse { - const message = createBaseGetSyncingResponse(); - message.syncing = object.syncing ?? false; - return message; - }, - fromAmino(object: GetSyncingResponseAmino): GetSyncingResponse { - const message = createBaseGetSyncingResponse(); - if (object.syncing !== undefined && object.syncing !== null) { - message.syncing = object.syncing; - } - return message; - }, - toAmino(message: GetSyncingResponse): GetSyncingResponseAmino { - const obj: any = {}; - obj.syncing = message.syncing === false ? undefined : message.syncing; - return obj; - }, - fromAminoMsg(object: GetSyncingResponseAminoMsg): GetSyncingResponse { - return GetSyncingResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetSyncingResponse): GetSyncingResponseAminoMsg { - return { - type: "cosmos-sdk/GetSyncingResponse", - value: GetSyncingResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetSyncingResponseProtoMsg): GetSyncingResponse { - return GetSyncingResponse.decode(message.value); - }, - toProto(message: GetSyncingResponse): Uint8Array { - return GetSyncingResponse.encode(message).finish(); - }, - toProtoMsg(message: GetSyncingResponse): GetSyncingResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", - value: GetSyncingResponse.encode(message).finish() - }; - } -}; -function createBaseGetNodeInfoRequest(): GetNodeInfoRequest { - return {}; -} -export const GetNodeInfoRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", - encode(_: GetNodeInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetNodeInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): GetNodeInfoRequest { - return {}; - }, - toJSON(_: GetNodeInfoRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): GetNodeInfoRequest { - const message = createBaseGetNodeInfoRequest(); - return message; - }, - fromAmino(_: GetNodeInfoRequestAmino): GetNodeInfoRequest { - const message = createBaseGetNodeInfoRequest(); - return message; - }, - toAmino(_: GetNodeInfoRequest): GetNodeInfoRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: GetNodeInfoRequestAminoMsg): GetNodeInfoRequest { - return GetNodeInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestAminoMsg { - return { - type: "cosmos-sdk/GetNodeInfoRequest", - value: GetNodeInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetNodeInfoRequestProtoMsg): GetNodeInfoRequest { - return GetNodeInfoRequest.decode(message.value); - }, - toProto(message: GetNodeInfoRequest): Uint8Array { - return GetNodeInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", - value: GetNodeInfoRequest.encode(message).finish() - }; - } -}; -function createBaseGetNodeInfoResponse(): GetNodeInfoResponse { - return { - defaultNodeInfo: undefined, - applicationVersion: undefined - }; -} -export const GetNodeInfoResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", - encode(message: GetNodeInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.defaultNodeInfo !== undefined) { - DefaultNodeInfo.encode(message.defaultNodeInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.applicationVersion !== undefined) { - VersionInfo.encode(message.applicationVersion, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetNodeInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.defaultNodeInfo = DefaultNodeInfo.decode(reader, reader.uint32()); - break; - case 2: - message.applicationVersion = VersionInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetNodeInfoResponse { - return { - defaultNodeInfo: isSet(object.defaultNodeInfo) ? DefaultNodeInfo.fromJSON(object.defaultNodeInfo) : undefined, - applicationVersion: isSet(object.applicationVersion) ? VersionInfo.fromJSON(object.applicationVersion) : undefined - }; - }, - toJSON(message: GetNodeInfoResponse): unknown { - const obj: any = {}; - message.defaultNodeInfo !== undefined && (obj.defaultNodeInfo = message.defaultNodeInfo ? DefaultNodeInfo.toJSON(message.defaultNodeInfo) : undefined); - message.applicationVersion !== undefined && (obj.applicationVersion = message.applicationVersion ? VersionInfo.toJSON(message.applicationVersion) : undefined); - return obj; - }, - fromPartial(object: Partial): GetNodeInfoResponse { - const message = createBaseGetNodeInfoResponse(); - message.defaultNodeInfo = object.defaultNodeInfo !== undefined && object.defaultNodeInfo !== null ? DefaultNodeInfo.fromPartial(object.defaultNodeInfo) : undefined; - message.applicationVersion = object.applicationVersion !== undefined && object.applicationVersion !== null ? VersionInfo.fromPartial(object.applicationVersion) : undefined; - return message; - }, - fromAmino(object: GetNodeInfoResponseAmino): GetNodeInfoResponse { - const message = createBaseGetNodeInfoResponse(); - if (object.default_node_info !== undefined && object.default_node_info !== null) { - message.defaultNodeInfo = DefaultNodeInfo.fromAmino(object.default_node_info); - } - if (object.application_version !== undefined && object.application_version !== null) { - message.applicationVersion = VersionInfo.fromAmino(object.application_version); - } - return message; - }, - toAmino(message: GetNodeInfoResponse): GetNodeInfoResponseAmino { - const obj: any = {}; - obj.default_node_info = message.defaultNodeInfo ? DefaultNodeInfo.toAmino(message.defaultNodeInfo) : undefined; - obj.application_version = message.applicationVersion ? VersionInfo.toAmino(message.applicationVersion) : undefined; - return obj; - }, - fromAminoMsg(object: GetNodeInfoResponseAminoMsg): GetNodeInfoResponse { - return GetNodeInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseAminoMsg { - return { - type: "cosmos-sdk/GetNodeInfoResponse", - value: GetNodeInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetNodeInfoResponseProtoMsg): GetNodeInfoResponse { - return GetNodeInfoResponse.decode(message.value); - }, - toProto(message: GetNodeInfoResponse): Uint8Array { - return GetNodeInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", - value: GetNodeInfoResponse.encode(message).finish() - }; - } -}; -function createBaseVersionInfo(): VersionInfo { - return { - name: "", - appName: "", - version: "", - gitCommit: "", - buildTags: "", - goVersion: "", - buildDeps: [], - cosmosSdkVersion: "" - }; -} -export const VersionInfo = { - typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo", - encode(message: VersionInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.appName !== "") { - writer.uint32(18).string(message.appName); - } - if (message.version !== "") { - writer.uint32(26).string(message.version); - } - if (message.gitCommit !== "") { - writer.uint32(34).string(message.gitCommit); - } - if (message.buildTags !== "") { - writer.uint32(42).string(message.buildTags); - } - if (message.goVersion !== "") { - writer.uint32(50).string(message.goVersion); - } - for (const v of message.buildDeps) { - Module.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.cosmosSdkVersion !== "") { - writer.uint32(66).string(message.cosmosSdkVersion); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVersionInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.appName = reader.string(); - break; - case 3: - message.version = reader.string(); - break; - case 4: - message.gitCommit = reader.string(); - break; - case 5: - message.buildTags = reader.string(); - break; - case 6: - message.goVersion = reader.string(); - break; - case 7: - message.buildDeps.push(Module.decode(reader, reader.uint32())); - break; - case 8: - message.cosmosSdkVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): VersionInfo { - return { - name: isSet(object.name) ? String(object.name) : "", - appName: isSet(object.appName) ? String(object.appName) : "", - version: isSet(object.version) ? String(object.version) : "", - gitCommit: isSet(object.gitCommit) ? String(object.gitCommit) : "", - buildTags: isSet(object.buildTags) ? String(object.buildTags) : "", - goVersion: isSet(object.goVersion) ? String(object.goVersion) : "", - buildDeps: Array.isArray(object?.buildDeps) ? object.buildDeps.map((e: any) => Module.fromJSON(e)) : [], - cosmosSdkVersion: isSet(object.cosmosSdkVersion) ? String(object.cosmosSdkVersion) : "" - }; - }, - toJSON(message: VersionInfo): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.appName !== undefined && (obj.appName = message.appName); - message.version !== undefined && (obj.version = message.version); - message.gitCommit !== undefined && (obj.gitCommit = message.gitCommit); - message.buildTags !== undefined && (obj.buildTags = message.buildTags); - message.goVersion !== undefined && (obj.goVersion = message.goVersion); - if (message.buildDeps) { - obj.buildDeps = message.buildDeps.map(e => e ? Module.toJSON(e) : undefined); - } else { - obj.buildDeps = []; - } - message.cosmosSdkVersion !== undefined && (obj.cosmosSdkVersion = message.cosmosSdkVersion); - return obj; - }, - fromPartial(object: Partial): VersionInfo { - const message = createBaseVersionInfo(); - message.name = object.name ?? ""; - message.appName = object.appName ?? ""; - message.version = object.version ?? ""; - message.gitCommit = object.gitCommit ?? ""; - message.buildTags = object.buildTags ?? ""; - message.goVersion = object.goVersion ?? ""; - message.buildDeps = object.buildDeps?.map(e => Module.fromPartial(e)) || []; - message.cosmosSdkVersion = object.cosmosSdkVersion ?? ""; - return message; - }, - fromAmino(object: VersionInfoAmino): VersionInfo { - const message = createBaseVersionInfo(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.app_name !== undefined && object.app_name !== null) { - message.appName = object.app_name; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.git_commit !== undefined && object.git_commit !== null) { - message.gitCommit = object.git_commit; - } - if (object.build_tags !== undefined && object.build_tags !== null) { - message.buildTags = object.build_tags; - } - if (object.go_version !== undefined && object.go_version !== null) { - message.goVersion = object.go_version; - } - message.buildDeps = object.build_deps?.map(e => Module.fromAmino(e)) || []; - if (object.cosmos_sdk_version !== undefined && object.cosmos_sdk_version !== null) { - message.cosmosSdkVersion = object.cosmos_sdk_version; - } - return message; - }, - toAmino(message: VersionInfo): VersionInfoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.app_name = message.appName === "" ? undefined : message.appName; - obj.version = message.version === "" ? undefined : message.version; - obj.git_commit = message.gitCommit === "" ? undefined : message.gitCommit; - obj.build_tags = message.buildTags === "" ? undefined : message.buildTags; - obj.go_version = message.goVersion === "" ? undefined : message.goVersion; - if (message.buildDeps) { - obj.build_deps = message.buildDeps.map(e => e ? Module.toAmino(e) : undefined); - } else { - obj.build_deps = message.buildDeps; - } - obj.cosmos_sdk_version = message.cosmosSdkVersion === "" ? undefined : message.cosmosSdkVersion; - return obj; - }, - fromAminoMsg(object: VersionInfoAminoMsg): VersionInfo { - return VersionInfo.fromAmino(object.value); - }, - toAminoMsg(message: VersionInfo): VersionInfoAminoMsg { - return { - type: "cosmos-sdk/VersionInfo", - value: VersionInfo.toAmino(message) - }; - }, - fromProtoMsg(message: VersionInfoProtoMsg): VersionInfo { - return VersionInfo.decode(message.value); - }, - toProto(message: VersionInfo): Uint8Array { - return VersionInfo.encode(message).finish(); - }, - toProtoMsg(message: VersionInfo): VersionInfoProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo", - value: VersionInfo.encode(message).finish() - }; - } -}; -function createBaseModule(): Module { - return { - path: "", - version: "", - sum: "" - }; -} -export const Module = { - typeUrl: "/cosmos.base.tendermint.v1beta1.Module", - encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.path !== "") { - writer.uint32(10).string(message.path); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - if (message.sum !== "") { - writer.uint32(26).string(message.sum); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Module { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.sum = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Module { - return { - path: isSet(object.path) ? String(object.path) : "", - version: isSet(object.version) ? String(object.version) : "", - sum: isSet(object.sum) ? String(object.sum) : "" - }; - }, - toJSON(message: Module): unknown { - const obj: any = {}; - message.path !== undefined && (obj.path = message.path); - message.version !== undefined && (obj.version = message.version); - message.sum !== undefined && (obj.sum = message.sum); - return obj; - }, - fromPartial(object: Partial): Module { - const message = createBaseModule(); - message.path = object.path ?? ""; - message.version = object.version ?? ""; - message.sum = object.sum ?? ""; - return message; - }, - fromAmino(object: ModuleAmino): Module { - const message = createBaseModule(); - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.sum !== undefined && object.sum !== null) { - message.sum = object.sum; - } - return message; - }, - toAmino(message: Module): ModuleAmino { - const obj: any = {}; - obj.path = message.path === "" ? undefined : message.path; - obj.version = message.version === "" ? undefined : message.version; - obj.sum = message.sum === "" ? undefined : message.sum; - return obj; - }, - fromAminoMsg(object: ModuleAminoMsg): Module { - return Module.fromAmino(object.value); - }, - toAminoMsg(message: Module): ModuleAminoMsg { - return { - type: "cosmos-sdk/Module", - value: Module.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleProtoMsg): Module { - return Module.decode(message.value); - }, - toProto(message: Module): Uint8Array { - return Module.encode(message).finish(); - }, - toProtoMsg(message: Module): ModuleProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.Module", - value: Module.encode(message).finish() - }; - } -}; -function createBaseABCIQueryRequest(): ABCIQueryRequest { - return { - data: new Uint8Array(), - path: "", - height: BigInt(0), - prove: false - }; -} -export const ABCIQueryRequest = { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", - encode(message: ABCIQueryRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.prove === true) { - writer.uint32(32).bool(message.prove); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseABCIQueryRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.path = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ABCIQueryRequest { - return { - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - path: isSet(object.path) ? String(object.path) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - prove: isSet(object.prove) ? Boolean(object.prove) : false - }; - }, - toJSON(message: ABCIQueryRequest): unknown { - const obj: any = {}; - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.path !== undefined && (obj.path = message.path); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.prove !== undefined && (obj.prove = message.prove); - return obj; - }, - fromPartial(object: Partial): ABCIQueryRequest { - const message = createBaseABCIQueryRequest(); - message.data = object.data ?? new Uint8Array(); - message.path = object.path ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.prove = object.prove ?? false; - return message; - }, - fromAmino(object: ABCIQueryRequestAmino): ABCIQueryRequest { - const message = createBaseABCIQueryRequest(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.prove !== undefined && object.prove !== null) { - message.prove = object.prove; - } - return message; - }, - toAmino(message: ABCIQueryRequest): ABCIQueryRequestAmino { - const obj: any = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.path = message.path === "" ? undefined : message.path; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.prove = message.prove === false ? undefined : message.prove; - return obj; - }, - fromAminoMsg(object: ABCIQueryRequestAminoMsg): ABCIQueryRequest { - return ABCIQueryRequest.fromAmino(object.value); - }, - toAminoMsg(message: ABCIQueryRequest): ABCIQueryRequestAminoMsg { - return { - type: "cosmos-sdk/ABCIQueryRequest", - value: ABCIQueryRequest.toAmino(message) - }; - }, - fromProtoMsg(message: ABCIQueryRequestProtoMsg): ABCIQueryRequest { - return ABCIQueryRequest.decode(message.value); - }, - toProto(message: ABCIQueryRequest): Uint8Array { - return ABCIQueryRequest.encode(message).finish(); - }, - toProtoMsg(message: ABCIQueryRequest): ABCIQueryRequestProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", - value: ABCIQueryRequest.encode(message).finish() - }; - } -}; -function createBaseABCIQueryResponse(): ABCIQueryResponse { - return { - code: 0, - log: "", - info: "", - index: BigInt(0), - key: new Uint8Array(), - value: new Uint8Array(), - proofOps: undefined, - height: BigInt(0), - codespace: "" - }; -} -export const ABCIQueryResponse = { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", - encode(message: ABCIQueryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.index !== BigInt(0)) { - writer.uint32(40).int64(message.index); - } - if (message.key.length !== 0) { - writer.uint32(50).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(58).bytes(message.value); - } - if (message.proofOps !== undefined) { - ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(72).int64(message.height); - } - if (message.codespace !== "") { - writer.uint32(82).string(message.codespace); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseABCIQueryResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.index = reader.int64(); - break; - case 6: - message.key = reader.bytes(); - break; - case 7: - message.value = reader.bytes(); - break; - case 8: - message.proofOps = ProofOps.decode(reader, reader.uint32()); - break; - case 9: - message.height = reader.int64(); - break; - case 10: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ABCIQueryResponse { - return { - code: isSet(object.code) ? Number(object.code) : 0, - log: isSet(object.log) ? String(object.log) : "", - info: isSet(object.info) ? String(object.info) : "", - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(), - proofOps: isSet(object.proofOps) ? ProofOps.fromJSON(object.proofOps) : undefined, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - codespace: isSet(object.codespace) ? String(object.codespace) : "" - }; - }, - toJSON(message: ABCIQueryResponse): unknown { - const obj: any = {}; - message.code !== undefined && (obj.code = Math.round(message.code)); - message.log !== undefined && (obj.log = message.log); - message.info !== undefined && (obj.info = message.info); - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - message.proofOps !== undefined && (obj.proofOps = message.proofOps ? ProofOps.toJSON(message.proofOps) : undefined); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.codespace !== undefined && (obj.codespace = message.codespace); - return obj; - }, - fromPartial(object: Partial): ABCIQueryResponse { - const message = createBaseABCIQueryResponse(); - message.code = object.code ?? 0; - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object: ABCIQueryResponseAmino): ABCIQueryResponse { - const message = createBaseABCIQueryResponse(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - if (object.proof_ops !== undefined && object.proof_ops !== null) { - message.proofOps = ProofOps.fromAmino(object.proof_ops); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message: ABCIQueryResponse): ABCIQueryResponseAmino { - const obj: any = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object: ABCIQueryResponseAminoMsg): ABCIQueryResponse { - return ABCIQueryResponse.fromAmino(object.value); - }, - toAminoMsg(message: ABCIQueryResponse): ABCIQueryResponseAminoMsg { - return { - type: "cosmos-sdk/ABCIQueryResponse", - value: ABCIQueryResponse.toAmino(message) - }; - }, - fromProtoMsg(message: ABCIQueryResponseProtoMsg): ABCIQueryResponse { - return ABCIQueryResponse.decode(message.value); - }, - toProto(message: ABCIQueryResponse): Uint8Array { - return ABCIQueryResponse.encode(message).finish(); - }, - toProtoMsg(message: ABCIQueryResponse): ABCIQueryResponseProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", - value: ABCIQueryResponse.encode(message).finish() - }; - } -}; -function createBaseProofOp(): ProofOp { - return { - type: "", - key: new Uint8Array(), - data: new Uint8Array() - }; -} -export const ProofOp = { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", - encode(message: ProofOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - if (message.key.length !== 0) { - writer.uint32(18).bytes(message.key); - } - if (message.data.length !== 0) { - writer.uint32(26).bytes(message.data); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProofOp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; - case 3: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProofOp { - return { - type: isSet(object.type) ? String(object.type) : "", - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() - }; - }, - toJSON(message: ProofOp): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = message.type); - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ProofOp { - const message = createBaseProofOp(); - message.type = object.type ?? ""; - message.key = object.key ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object: ProofOpAmino): ProofOp { - const message = createBaseProofOp(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - return message; - }, - toAmino(message: ProofOp): ProofOpAmino { - const obj: any = {}; - obj.type = message.type === "" ? undefined : message.type; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - return obj; - }, - fromAminoMsg(object: ProofOpAminoMsg): ProofOp { - return ProofOp.fromAmino(object.value); - }, - toAminoMsg(message: ProofOp): ProofOpAminoMsg { - return { - type: "cosmos-sdk/ProofOp", - value: ProofOp.toAmino(message) - }; - }, - fromProtoMsg(message: ProofOpProtoMsg): ProofOp { - return ProofOp.decode(message.value); - }, - toProto(message: ProofOp): Uint8Array { - return ProofOp.encode(message).finish(); - }, - toProtoMsg(message: ProofOp): ProofOpProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", - value: ProofOp.encode(message).finish() - }; - } -}; -function createBaseProofOps(): ProofOps { - return { - ops: [] - }; -} -export const ProofOps = { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", - encode(message: ProofOps, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.ops) { - ProofOp.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProofOps { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOps(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ops.push(ProofOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProofOps { - return { - ops: Array.isArray(object?.ops) ? object.ops.map((e: any) => ProofOp.fromJSON(e)) : [] - }; - }, - toJSON(message: ProofOps): unknown { - const obj: any = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? ProofOp.toJSON(e) : undefined); - } else { - obj.ops = []; - } - return obj; - }, - fromPartial(object: Partial): ProofOps { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ProofOpsAmino): ProofOps { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || []; - return message; - }, - toAmino(message: ProofOps): ProofOpsAmino { - const obj: any = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); - } else { - obj.ops = message.ops; - } - return obj; - }, - fromAminoMsg(object: ProofOpsAminoMsg): ProofOps { - return ProofOps.fromAmino(object.value); - }, - toAminoMsg(message: ProofOps): ProofOpsAminoMsg { - return { - type: "cosmos-sdk/ProofOps", - value: ProofOps.toAmino(message) - }; - }, - fromProtoMsg(message: ProofOpsProtoMsg): ProofOps { - return ProofOps.decode(message.value); - }, - toProto(message: ProofOps): Uint8Array { - return ProofOps.encode(message).finish(); - }, - toProtoMsg(message: ProofOps): ProofOpsProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", - value: ProofOps.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/types.ts b/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/types.ts deleted file mode 100644 index 7d23465b..00000000 --- a/packages/api/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +++ /dev/null @@ -1,511 +0,0 @@ -import { Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType, BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "../../../../tendermint/types/evidence"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../../../../tendermint/version/types"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, fromJsonTimestamp, bytesFromBase64, fromTimestamp, base64FromBytes } from "../../../../helpers"; -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit?: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Block"; - value: Uint8Array; -} -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "cosmos-sdk/Block"; - value: BlockAmino; -} -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit?: CommitSDKType; -} -/** Header defines the structure of a Tendermint block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: bigint; - time: Timestamp; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** - * proposer_address is the original block proposer address, formatted as a Bech32 string. - * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string - * for better UX. - */ - proposerAddress: string; -} -export interface HeaderProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Header"; - value: Uint8Array; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id?: string; - height?: string; - time?: string; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash?: string; - data_hash?: string; - /** hashes from the app output from the prev block */ - validators_hash?: string; - /** validators for the next block */ - next_validators_hash?: string; - /** consensus params for current block */ - consensus_hash?: string; - /** state after txs from the previous block */ - app_hash?: string; - last_results_hash?: string; - /** consensus info */ - evidence_hash?: string; - /** - * proposer_address is the original block proposer address, formatted as a Bech32 string. - * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string - * for better UX. - */ - proposer_address?: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: bigint; - time: TimestampSDKType; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: string; -} -function createBaseBlock(): Block { - return { - header: Header.fromPartial({}), - data: Data.fromPartial({}), - evidence: EvidenceList.fromPartial({}), - lastCommit: undefined - }; -} -export const Block = { - typeUrl: "/cosmos.base.tendermint.v1beta1.Block", - encode(message: Block, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.evidence !== undefined) { - EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); - } - if (message.lastCommit !== undefined) { - Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Block { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.data = Data.decode(reader, reader.uint32()); - break; - case 3: - message.evidence = EvidenceList.decode(reader, reader.uint32()); - break; - case 4: - message.lastCommit = Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Block { - return { - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - data: isSet(object.data) ? Data.fromJSON(object.data) : undefined, - evidence: isSet(object.evidence) ? EvidenceList.fromJSON(object.evidence) : undefined, - lastCommit: isSet(object.lastCommit) ? Commit.fromJSON(object.lastCommit) : undefined - }; - }, - toJSON(message: Block): unknown { - const obj: any = {}; - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - message.data !== undefined && (obj.data = message.data ? Data.toJSON(message.data) : undefined); - message.evidence !== undefined && (obj.evidence = message.evidence ? EvidenceList.toJSON(message.evidence) : undefined); - message.lastCommit !== undefined && (obj.lastCommit = message.lastCommit ? Commit.toJSON(message.lastCommit) : undefined); - return obj; - }, - fromPartial(object: Partial): Block { - const message = createBaseBlock(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.data = object.data !== undefined && object.data !== null ? Data.fromPartial(object.data) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceList.fromPartial(object.evidence) : undefined; - message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? Commit.fromPartial(object.lastCommit) : undefined; - return message; - }, - fromAmino(object: BlockAmino): Block { - const message = createBaseBlock(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.data !== undefined && object.data !== null) { - message.data = Data.fromAmino(object.data); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = EvidenceList.fromAmino(object.evidence); - } - if (object.last_commit !== undefined && object.last_commit !== null) { - message.lastCommit = Commit.fromAmino(object.last_commit); - } - return message; - }, - toAmino(message: Block): BlockAmino { - const obj: any = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.data = message.data ? Data.toAmino(message.data) : undefined; - obj.evidence = message.evidence ? EvidenceList.toAmino(message.evidence) : undefined; - obj.last_commit = message.lastCommit ? Commit.toAmino(message.lastCommit) : undefined; - return obj; - }, - fromAminoMsg(object: BlockAminoMsg): Block { - return Block.fromAmino(object.value); - }, - toAminoMsg(message: Block): BlockAminoMsg { - return { - type: "cosmos-sdk/Block", - value: Block.toAmino(message) - }; - }, - fromProtoMsg(message: BlockProtoMsg): Block { - return Block.decode(message.value); - }, - toProto(message: Block): Uint8Array { - return Block.encode(message).finish(); - }, - toProtoMsg(message: Block): BlockProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.Block", - value: Block.encode(message).finish() - }; - } -}; -function createBaseHeader(): Header { - return { - version: Consensus.fromPartial({}), - chainId: "", - height: BigInt(0), - time: Timestamp.fromPartial({}), - lastBlockId: BlockID.fromPartial({}), - lastCommitHash: new Uint8Array(), - dataHash: new Uint8Array(), - validatorsHash: new Uint8Array(), - nextValidatorsHash: new Uint8Array(), - consensusHash: new Uint8Array(), - appHash: new Uint8Array(), - lastResultsHash: new Uint8Array(), - evidenceHash: new Uint8Array(), - proposerAddress: "" - }; -} -export const Header = { - typeUrl: "/cosmos.base.tendermint.v1beta1.Header", - encode(message: Header, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.version !== undefined) { - Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim(); - } - if (message.lastBlockId !== undefined) { - BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); - } - if (message.lastCommitHash.length !== 0) { - writer.uint32(50).bytes(message.lastCommitHash); - } - if (message.dataHash.length !== 0) { - writer.uint32(58).bytes(message.dataHash); - } - if (message.validatorsHash.length !== 0) { - writer.uint32(66).bytes(message.validatorsHash); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(74).bytes(message.nextValidatorsHash); - } - if (message.consensusHash.length !== 0) { - writer.uint32(82).bytes(message.consensusHash); - } - if (message.appHash.length !== 0) { - writer.uint32(90).bytes(message.appHash); - } - if (message.lastResultsHash.length !== 0) { - writer.uint32(98).bytes(message.lastResultsHash); - } - if (message.evidenceHash.length !== 0) { - writer.uint32(106).bytes(message.evidenceHash); - } - if (message.proposerAddress !== "") { - writer.uint32(114).string(message.proposerAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Header { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = Consensus.decode(reader, reader.uint32()); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.lastBlockId = BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.lastCommitHash = reader.bytes(); - break; - case 7: - message.dataHash = reader.bytes(); - break; - case 8: - message.validatorsHash = reader.bytes(); - break; - case 9: - message.nextValidatorsHash = reader.bytes(); - break; - case 10: - message.consensusHash = reader.bytes(); - break; - case 11: - message.appHash = reader.bytes(); - break; - case 12: - message.lastResultsHash = reader.bytes(); - break; - case 13: - message.evidenceHash = reader.bytes(); - break; - case 14: - message.proposerAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Header { - return { - version: isSet(object.version) ? Consensus.fromJSON(object.version) : undefined, - chainId: isSet(object.chainId) ? String(object.chainId) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - lastBlockId: isSet(object.lastBlockId) ? BlockID.fromJSON(object.lastBlockId) : undefined, - lastCommitHash: isSet(object.lastCommitHash) ? bytesFromBase64(object.lastCommitHash) : new Uint8Array(), - dataHash: isSet(object.dataHash) ? bytesFromBase64(object.dataHash) : new Uint8Array(), - validatorsHash: isSet(object.validatorsHash) ? bytesFromBase64(object.validatorsHash) : new Uint8Array(), - nextValidatorsHash: isSet(object.nextValidatorsHash) ? bytesFromBase64(object.nextValidatorsHash) : new Uint8Array(), - consensusHash: isSet(object.consensusHash) ? bytesFromBase64(object.consensusHash) : new Uint8Array(), - appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array(), - lastResultsHash: isSet(object.lastResultsHash) ? bytesFromBase64(object.lastResultsHash) : new Uint8Array(), - evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array(), - proposerAddress: isSet(object.proposerAddress) ? String(object.proposerAddress) : "" - }; - }, - toJSON(message: Header): unknown { - const obj: any = {}; - message.version !== undefined && (obj.version = message.version ? Consensus.toJSON(message.version) : undefined); - message.chainId !== undefined && (obj.chainId = message.chainId); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.lastBlockId !== undefined && (obj.lastBlockId = message.lastBlockId ? BlockID.toJSON(message.lastBlockId) : undefined); - message.lastCommitHash !== undefined && (obj.lastCommitHash = base64FromBytes(message.lastCommitHash !== undefined ? message.lastCommitHash : new Uint8Array())); - message.dataHash !== undefined && (obj.dataHash = base64FromBytes(message.dataHash !== undefined ? message.dataHash : new Uint8Array())); - message.validatorsHash !== undefined && (obj.validatorsHash = base64FromBytes(message.validatorsHash !== undefined ? message.validatorsHash : new Uint8Array())); - message.nextValidatorsHash !== undefined && (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array())); - message.consensusHash !== undefined && (obj.consensusHash = base64FromBytes(message.consensusHash !== undefined ? message.consensusHash : new Uint8Array())); - message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array())); - message.lastResultsHash !== undefined && (obj.lastResultsHash = base64FromBytes(message.lastResultsHash !== undefined ? message.lastResultsHash : new Uint8Array())); - message.evidenceHash !== undefined && (obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array())); - message.proposerAddress !== undefined && (obj.proposerAddress = message.proposerAddress); - return obj; - }, - fromPartial(object: Partial
): Header { - const message = createBaseHeader(); - message.version = object.version !== undefined && object.version !== null ? Consensus.fromPartial(object.version) : undefined; - message.chainId = object.chainId ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? BlockID.fromPartial(object.lastBlockId) : undefined; - message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); - message.dataHash = object.dataHash ?? new Uint8Array(); - message.validatorsHash = object.validatorsHash ?? new Uint8Array(); - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.consensusHash = object.consensusHash ?? new Uint8Array(); - message.appHash = object.appHash ?? new Uint8Array(); - message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? ""; - return message; - }, - fromAmino(object: HeaderAmino): Header { - const message = createBaseHeader(); - if (object.version !== undefined && object.version !== null) { - message.version = Consensus.fromAmino(object.version); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.last_block_id !== undefined && object.last_block_id !== null) { - message.lastBlockId = BlockID.fromAmino(object.last_block_id); - } - if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { - message.lastCommitHash = bytesFromBase64(object.last_commit_hash); - } - if (object.data_hash !== undefined && object.data_hash !== null) { - message.dataHash = bytesFromBase64(object.data_hash); - } - if (object.validators_hash !== undefined && object.validators_hash !== null) { - message.validatorsHash = bytesFromBase64(object.validators_hash); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.consensus_hash !== undefined && object.consensus_hash !== null) { - message.consensusHash = bytesFromBase64(object.consensus_hash); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - if (object.last_results_hash !== undefined && object.last_results_hash !== null) { - message.lastResultsHash = bytesFromBase64(object.last_results_hash); - } - if (object.evidence_hash !== undefined && object.evidence_hash !== null) { - message.evidenceHash = bytesFromBase64(object.evidence_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = object.proposer_address; - } - return message; - }, - toAmino(message: Header): HeaderAmino { - const obj: any = {}; - obj.version = message.version ? Consensus.toAmino(message.version) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; - obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; - obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; - obj.validators_hash = message.validatorsHash ? base64FromBytes(message.validatorsHash) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.consensus_hash = message.consensusHash ? base64FromBytes(message.consensusHash) : undefined; - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - obj.last_results_hash = message.lastResultsHash ? base64FromBytes(message.lastResultsHash) : undefined; - obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; - obj.proposer_address = message.proposerAddress === "" ? undefined : message.proposerAddress; - return obj; - }, - fromAminoMsg(object: HeaderAminoMsg): Header { - return Header.fromAmino(object.value); - }, - toAminoMsg(message: Header): HeaderAminoMsg { - return { - type: "cosmos-sdk/Header", - value: Header.toAmino(message) - }; - }, - fromProtoMsg(message: HeaderProtoMsg): Header { - return Header.decode(message.value); - }, - toProto(message: Header): Uint8Array { - return Header.encode(message).finish(); - }, - toProtoMsg(message: Header): HeaderProtoMsg { - return { - typeUrl: "/cosmos.base.tendermint.v1beta1.Header", - value: Header.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/base/v1beta1/coin.ts b/packages/api/src/codegen/cosmos/base/v1beta1/coin.ts deleted file mode 100644 index dcae3af4..00000000 --- a/packages/api/src/codegen/cosmos/base/v1beta1/coin.ts +++ /dev/null @@ -1,462 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface Coin { - denom: string; - amount: string; -} -export interface CoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.Coin"; - value: Uint8Array; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinAmino { - denom?: string; - amount?: string; -} -export interface CoinAminoMsg { - type: "cosmos-sdk/Coin"; - value: CoinAmino; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinSDKType { - denom: string; - amount: string; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoin { - denom: string; - amount: string; -} -export interface DecCoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecCoin"; - value: Uint8Array; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinAmino { - denom?: string; - amount?: string; -} -export interface DecCoinAminoMsg { - type: "cosmos-sdk/DecCoin"; - value: DecCoinAmino; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinSDKType { - denom: string; - amount: string; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - int: string; -} -export interface IntProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.IntProto"; - value: Uint8Array; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoAmino { - int?: string; -} -export interface IntProtoAminoMsg { - type: "cosmos-sdk/IntProto"; - value: IntProtoAmino; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoSDKType { - int: string; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - dec: string; -} -export interface DecProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecProto"; - value: Uint8Array; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoAmino { - dec?: string; -} -export interface DecProtoAminoMsg { - type: "cosmos-sdk/DecProto"; - value: DecProtoAmino; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoSDKType { - dec: string; -} -function createBaseCoin(): Coin { - return { - denom: "", - amount: "" - }; -} -export const Coin = { - typeUrl: "/cosmos.base.v1beta1.Coin", - encode(message: Coin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Coin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Coin { - return { - denom: isSet(object.denom) ? String(object.denom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: Coin): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): Coin { - const message = createBaseCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: CoinAmino): Coin { - const message = createBaseCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: Coin): CoinAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: CoinAminoMsg): Coin { - return Coin.fromAmino(object.value); - }, - toAminoMsg(message: Coin): CoinAminoMsg { - return { - type: "cosmos-sdk/Coin", - value: Coin.toAmino(message) - }; - }, - fromProtoMsg(message: CoinProtoMsg): Coin { - return Coin.decode(message.value); - }, - toProto(message: Coin): Uint8Array { - return Coin.encode(message).finish(); - }, - toProtoMsg(message: Coin): CoinProtoMsg { - return { - typeUrl: "/cosmos.base.v1beta1.Coin", - value: Coin.encode(message).finish() - }; - } -}; -function createBaseDecCoin(): DecCoin { - return { - denom: "", - amount: "" - }; -} -export const DecCoin = { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - encode(message: DecCoin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DecCoin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DecCoin { - return { - denom: isSet(object.denom) ? String(object.denom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: DecCoin): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): DecCoin { - const message = createBaseDecCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: DecCoinAmino): DecCoin { - const message = createBaseDecCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: DecCoin): DecCoinAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: DecCoinAminoMsg): DecCoin { - return DecCoin.fromAmino(object.value); - }, - toAminoMsg(message: DecCoin): DecCoinAminoMsg { - return { - type: "cosmos-sdk/DecCoin", - value: DecCoin.toAmino(message) - }; - }, - fromProtoMsg(message: DecCoinProtoMsg): DecCoin { - return DecCoin.decode(message.value); - }, - toProto(message: DecCoin): Uint8Array { - return DecCoin.encode(message).finish(); - }, - toProtoMsg(message: DecCoin): DecCoinProtoMsg { - return { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - value: DecCoin.encode(message).finish() - }; - } -}; -function createBaseIntProto(): IntProto { - return { - int: "" - }; -} -export const IntProto = { - typeUrl: "/cosmos.base.v1beta1.IntProto", - encode(message: IntProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.int !== "") { - writer.uint32(10).string(message.int); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): IntProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIntProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.int = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): IntProto { - return { - int: isSet(object.int) ? String(object.int) : "" - }; - }, - toJSON(message: IntProto): unknown { - const obj: any = {}; - message.int !== undefined && (obj.int = message.int); - return obj; - }, - fromPartial(object: Partial): IntProto { - const message = createBaseIntProto(); - message.int = object.int ?? ""; - return message; - }, - fromAmino(object: IntProtoAmino): IntProto { - const message = createBaseIntProto(); - if (object.int !== undefined && object.int !== null) { - message.int = object.int; - } - return message; - }, - toAmino(message: IntProto): IntProtoAmino { - const obj: any = {}; - obj.int = message.int === "" ? undefined : message.int; - return obj; - }, - fromAminoMsg(object: IntProtoAminoMsg): IntProto { - return IntProto.fromAmino(object.value); - }, - toAminoMsg(message: IntProto): IntProtoAminoMsg { - return { - type: "cosmos-sdk/IntProto", - value: IntProto.toAmino(message) - }; - }, - fromProtoMsg(message: IntProtoProtoMsg): IntProto { - return IntProto.decode(message.value); - }, - toProto(message: IntProto): Uint8Array { - return IntProto.encode(message).finish(); - }, - toProtoMsg(message: IntProto): IntProtoProtoMsg { - return { - typeUrl: "/cosmos.base.v1beta1.IntProto", - value: IntProto.encode(message).finish() - }; - } -}; -function createBaseDecProto(): DecProto { - return { - dec: "" - }; -} -export const DecProto = { - typeUrl: "/cosmos.base.v1beta1.DecProto", - encode(message: DecProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.dec !== "") { - writer.uint32(10).string(message.dec); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DecProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dec = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DecProto { - return { - dec: isSet(object.dec) ? String(object.dec) : "" - }; - }, - toJSON(message: DecProto): unknown { - const obj: any = {}; - message.dec !== undefined && (obj.dec = message.dec); - return obj; - }, - fromPartial(object: Partial): DecProto { - const message = createBaseDecProto(); - message.dec = object.dec ?? ""; - return message; - }, - fromAmino(object: DecProtoAmino): DecProto { - const message = createBaseDecProto(); - if (object.dec !== undefined && object.dec !== null) { - message.dec = object.dec; - } - return message; - }, - toAmino(message: DecProto): DecProtoAmino { - const obj: any = {}; - obj.dec = message.dec === "" ? undefined : message.dec; - return obj; - }, - fromAminoMsg(object: DecProtoAminoMsg): DecProto { - return DecProto.fromAmino(object.value); - }, - toAminoMsg(message: DecProto): DecProtoAminoMsg { - return { - type: "cosmos-sdk/DecProto", - value: DecProto.toAmino(message) - }; - }, - fromProtoMsg(message: DecProtoProtoMsg): DecProto { - return DecProto.decode(message.value); - }, - toProto(message: DecProto): Uint8Array { - return DecProto.encode(message).finish(); - }, - toProtoMsg(message: DecProto): DecProtoProtoMsg { - return { - typeUrl: "/cosmos.base.v1beta1.DecProto", - value: DecProto.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/bundle.ts b/packages/api/src/codegen/cosmos/bundle.ts deleted file mode 100644 index 673adb5a..00000000 --- a/packages/api/src/codegen/cosmos/bundle.ts +++ /dev/null @@ -1,520 +0,0 @@ -import * as _2 from "./app/module/v1alpha1/module"; -import * as _3 from "./app/v1alpha1/config"; -import * as _4 from "./app/v1alpha1/module"; -import * as _5 from "./app/v1alpha1/query"; -import * as _6 from "./auth/v1beta1/auth"; -import * as _7 from "./auth/v1beta1/genesis"; -import * as _8 from "./auth/v1beta1/query"; -import * as _9 from "./authz/v1beta1/authz"; -import * as _10 from "./authz/v1beta1/event"; -import * as _11 from "./authz/v1beta1/genesis"; -import * as _12 from "./authz/v1beta1/query"; -import * as _13 from "./authz/v1beta1/tx"; -import * as _14 from "./bank/v1beta1/authz"; -import * as _15 from "./bank/v1beta1/bank"; -import * as _16 from "./bank/v1beta1/genesis"; -import * as _17 from "./bank/v1beta1/query"; -import * as _18 from "./bank/v1beta1/tx"; -import * as _19 from "./base/abci/v1beta1/abci"; -import * as _20 from "./base/kv/v1beta1/kv"; -import * as _21 from "./base/node/v1beta1/query"; -import * as _22 from "./base/query/v1beta1/pagination"; -import * as _23 from "./base/reflection/v1beta1/reflection"; -import * as _24 from "./base/reflection/v2alpha1/reflection"; -import * as _25 from "./base/snapshots/v1beta1/snapshot"; -import * as _26 from "./base/store/v1beta1/commit_info"; -import * as _27 from "./base/store/v1beta1/listening"; -import * as _28 from "./base/tendermint/v1beta1/query"; -import * as _29 from "./base/tendermint/v1beta1/types"; -import * as _30 from "./base/v1beta1/coin"; -import * as _31 from "./capability/v1beta1/capability"; -import * as _32 from "./capability/v1beta1/genesis"; -import * as _33 from "./crisis/v1beta1/genesis"; -import * as _34 from "./crisis/v1beta1/tx"; -import * as _35 from "./crypto/ed25519/keys"; -import * as _36 from "./crypto/hd/v1/hd"; -import * as _37 from "./crypto/keyring/v1/record"; -import * as _38 from "./crypto/multisig/keys"; -import * as _39 from "./crypto/secp256k1/keys"; -import * as _40 from "./crypto/secp256r1/keys"; -import * as _41 from "./distribution/v1beta1/distribution"; -import * as _42 from "./distribution/v1beta1/genesis"; -import * as _43 from "./distribution/v1beta1/query"; -import * as _44 from "./distribution/v1beta1/tx"; -import * as _45 from "./evidence/v1beta1/evidence"; -import * as _46 from "./evidence/v1beta1/genesis"; -import * as _47 from "./evidence/v1beta1/query"; -import * as _48 from "./evidence/v1beta1/tx"; -import * as _49 from "./feegrant/v1beta1/feegrant"; -import * as _50 from "./feegrant/v1beta1/genesis"; -import * as _51 from "./feegrant/v1beta1/query"; -import * as _52 from "./feegrant/v1beta1/tx"; -import * as _53 from "./genutil/v1beta1/genesis"; -import * as _54 from "./gov/v1/genesis"; -import * as _55 from "./gov/v1/gov"; -import * as _56 from "./gov/v1/query"; -import * as _57 from "./gov/v1/tx"; -import * as _58 from "./gov/v1beta1/genesis"; -import * as _59 from "./gov/v1beta1/gov"; -import * as _60 from "./gov/v1beta1/query"; -import * as _61 from "./gov/v1beta1/tx"; -import * as _62 from "./group/v1/events"; -import * as _63 from "./group/v1/genesis"; -import * as _64 from "./group/v1/query"; -import * as _65 from "./group/v1/tx"; -import * as _66 from "./group/v1/types"; -import * as _67 from "./mint/v1beta1/genesis"; -import * as _68 from "./mint/v1beta1/mint"; -import * as _69 from "./mint/v1beta1/query"; -import * as _70 from "./msg/v1/msg"; -import * as _71 from "./nft/v1beta1/event"; -import * as _72 from "./nft/v1beta1/genesis"; -import * as _73 from "./nft/v1beta1/nft"; -import * as _74 from "./nft/v1beta1/query"; -import * as _75 from "./nft/v1beta1/tx"; -import * as _76 from "./orm/module/v1alpha1/module"; -import * as _77 from "./orm/v1/orm"; -import * as _78 from "./orm/v1alpha1/schema"; -import * as _79 from "./params/v1beta1/params"; -import * as _80 from "./params/v1beta1/query"; -import * as _81 from "./slashing/v1beta1/genesis"; -import * as _82 from "./slashing/v1beta1/query"; -import * as _83 from "./slashing/v1beta1/slashing"; -import * as _84 from "./slashing/v1beta1/tx"; -import * as _85 from "./staking/v1beta1/authz"; -import * as _86 from "./staking/v1beta1/genesis"; -import * as _87 from "./staking/v1beta1/query"; -import * as _88 from "./staking/v1beta1/staking"; -import * as _89 from "./staking/v1beta1/tx"; -import * as _90 from "./tx/signing/v1beta1/signing"; -import * as _91 from "./tx/v1beta1/service"; -import * as _92 from "./tx/v1beta1/tx"; -import * as _93 from "./upgrade/v1beta1/query"; -import * as _94 from "./upgrade/v1beta1/tx"; -import * as _95 from "./upgrade/v1beta1/upgrade"; -import * as _96 from "./vesting/v1beta1/tx"; -import * as _97 from "./vesting/v1beta1/vesting"; -import * as _152 from "./authz/v1beta1/tx.amino"; -import * as _153 from "./bank/v1beta1/tx.amino"; -import * as _154 from "./crisis/v1beta1/tx.amino"; -import * as _155 from "./distribution/v1beta1/tx.amino"; -import * as _156 from "./evidence/v1beta1/tx.amino"; -import * as _157 from "./feegrant/v1beta1/tx.amino"; -import * as _158 from "./gov/v1/tx.amino"; -import * as _159 from "./gov/v1beta1/tx.amino"; -import * as _160 from "./group/v1/tx.amino"; -import * as _161 from "./nft/v1beta1/tx.amino"; -import * as _162 from "./slashing/v1beta1/tx.amino"; -import * as _163 from "./staking/v1beta1/tx.amino"; -import * as _164 from "./upgrade/v1beta1/tx.amino"; -import * as _165 from "./vesting/v1beta1/tx.amino"; -import * as _166 from "./authz/v1beta1/tx.registry"; -import * as _167 from "./bank/v1beta1/tx.registry"; -import * as _168 from "./crisis/v1beta1/tx.registry"; -import * as _169 from "./distribution/v1beta1/tx.registry"; -import * as _170 from "./evidence/v1beta1/tx.registry"; -import * as _171 from "./feegrant/v1beta1/tx.registry"; -import * as _172 from "./gov/v1/tx.registry"; -import * as _173 from "./gov/v1beta1/tx.registry"; -import * as _174 from "./group/v1/tx.registry"; -import * as _175 from "./nft/v1beta1/tx.registry"; -import * as _176 from "./slashing/v1beta1/tx.registry"; -import * as _177 from "./staking/v1beta1/tx.registry"; -import * as _178 from "./upgrade/v1beta1/tx.registry"; -import * as _179 from "./vesting/v1beta1/tx.registry"; -import * as _180 from "./auth/v1beta1/query.lcd"; -import * as _181 from "./authz/v1beta1/query.lcd"; -import * as _182 from "./bank/v1beta1/query.lcd"; -import * as _183 from "./base/node/v1beta1/query.lcd"; -import * as _184 from "./base/tendermint/v1beta1/query.lcd"; -import * as _185 from "./distribution/v1beta1/query.lcd"; -import * as _186 from "./evidence/v1beta1/query.lcd"; -import * as _187 from "./feegrant/v1beta1/query.lcd"; -import * as _188 from "./gov/v1/query.lcd"; -import * as _189 from "./gov/v1beta1/query.lcd"; -import * as _190 from "./group/v1/query.lcd"; -import * as _191 from "./mint/v1beta1/query.lcd"; -import * as _192 from "./nft/v1beta1/query.lcd"; -import * as _193 from "./params/v1beta1/query.lcd"; -import * as _194 from "./slashing/v1beta1/query.lcd"; -import * as _195 from "./staking/v1beta1/query.lcd"; -import * as _196 from "./tx/v1beta1/service.lcd"; -import * as _197 from "./upgrade/v1beta1/query.lcd"; -import * as _198 from "./app/v1alpha1/query.rpc.Query"; -import * as _199 from "./auth/v1beta1/query.rpc.Query"; -import * as _200 from "./authz/v1beta1/query.rpc.Query"; -import * as _201 from "./bank/v1beta1/query.rpc.Query"; -import * as _202 from "./base/node/v1beta1/query.rpc.Service"; -import * as _203 from "./base/tendermint/v1beta1/query.rpc.Service"; -import * as _204 from "./distribution/v1beta1/query.rpc.Query"; -import * as _205 from "./evidence/v1beta1/query.rpc.Query"; -import * as _206 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _207 from "./gov/v1/query.rpc.Query"; -import * as _208 from "./gov/v1beta1/query.rpc.Query"; -import * as _209 from "./group/v1/query.rpc.Query"; -import * as _210 from "./mint/v1beta1/query.rpc.Query"; -import * as _211 from "./nft/v1beta1/query.rpc.Query"; -import * as _212 from "./params/v1beta1/query.rpc.Query"; -import * as _213 from "./slashing/v1beta1/query.rpc.Query"; -import * as _214 from "./staking/v1beta1/query.rpc.Query"; -import * as _215 from "./tx/v1beta1/service.rpc.Service"; -import * as _216 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _217 from "./authz/v1beta1/tx.rpc.msg"; -import * as _218 from "./bank/v1beta1/tx.rpc.msg"; -import * as _219 from "./crisis/v1beta1/tx.rpc.msg"; -import * as _220 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _221 from "./evidence/v1beta1/tx.rpc.msg"; -import * as _222 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _223 from "./gov/v1/tx.rpc.msg"; -import * as _224 from "./gov/v1beta1/tx.rpc.msg"; -import * as _225 from "./group/v1/tx.rpc.msg"; -import * as _226 from "./nft/v1beta1/tx.rpc.msg"; -import * as _227 from "./slashing/v1beta1/tx.rpc.msg"; -import * as _228 from "./staking/v1beta1/tx.rpc.msg"; -import * as _229 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _230 from "./vesting/v1beta1/tx.rpc.msg"; -import * as _271 from "./lcd"; -import * as _272 from "./rpc.query"; -import * as _273 from "./rpc.tx"; -export namespace cosmos { - export namespace app { - export namespace module { - export const v1alpha1 = { - ..._2 - }; - } - export const v1alpha1 = { - ..._3, - ..._4, - ..._5, - ..._198 - }; - } - export namespace auth { - export const v1beta1 = { - ..._6, - ..._7, - ..._8, - ..._180, - ..._199 - }; - } - export namespace authz { - export const v1beta1 = { - ..._9, - ..._10, - ..._11, - ..._12, - ..._13, - ..._152, - ..._166, - ..._181, - ..._200, - ..._217 - }; - } - export namespace bank { - export const v1beta1 = { - ..._14, - ..._15, - ..._16, - ..._17, - ..._18, - ..._153, - ..._167, - ..._182, - ..._201, - ..._218 - }; - } - export namespace base { - export namespace abci { - export const v1beta1 = { - ..._19 - }; - } - export namespace kv { - export const v1beta1 = { - ..._20 - }; - } - export namespace node { - export const v1beta1 = { - ..._21, - ..._183, - ..._202 - }; - } - export namespace query { - export const v1beta1 = { - ..._22 - }; - } - export namespace reflection { - export const v1beta1 = { - ..._23 - }; - export const v2alpha1 = { - ..._24 - }; - } - export namespace snapshots { - export const v1beta1 = { - ..._25 - }; - } - export namespace store { - export const v1beta1 = { - ..._26, - ..._27 - }; - } - export namespace tendermint { - export const v1beta1 = { - ..._28, - ..._29, - ..._184, - ..._203 - }; - } - export const v1beta1 = { - ..._30 - }; - } - export namespace capability { - export const v1beta1 = { - ..._31, - ..._32 - }; - } - export namespace crisis { - export const v1beta1 = { - ..._33, - ..._34, - ..._154, - ..._168, - ..._219 - }; - } - export namespace crypto { - export const ed25519 = { - ..._35 - }; - export namespace hd { - export const v1 = { - ..._36 - }; - } - export namespace keyring { - export const v1 = { - ..._37 - }; - } - export const multisig = { - ..._38 - }; - export const secp256k1 = { - ..._39 - }; - export const secp256r1 = { - ..._40 - }; - } - export namespace distribution { - export const v1beta1 = { - ..._41, - ..._42, - ..._43, - ..._44, - ..._155, - ..._169, - ..._185, - ..._204, - ..._220 - }; - } - export namespace evidence { - export const v1beta1 = { - ..._45, - ..._46, - ..._47, - ..._48, - ..._156, - ..._170, - ..._186, - ..._205, - ..._221 - }; - } - export namespace feegrant { - export const v1beta1 = { - ..._49, - ..._50, - ..._51, - ..._52, - ..._157, - ..._171, - ..._187, - ..._206, - ..._222 - }; - } - export namespace genutil { - export const v1beta1 = { - ..._53 - }; - } - export namespace gov { - export const v1 = { - ..._54, - ..._55, - ..._56, - ..._57, - ..._158, - ..._172, - ..._188, - ..._207, - ..._223 - }; - export const v1beta1 = { - ..._58, - ..._59, - ..._60, - ..._61, - ..._159, - ..._173, - ..._189, - ..._208, - ..._224 - }; - } - export namespace group { - export const v1 = { - ..._62, - ..._63, - ..._64, - ..._65, - ..._66, - ..._160, - ..._174, - ..._190, - ..._209, - ..._225 - }; - } - export namespace mint { - export const v1beta1 = { - ..._67, - ..._68, - ..._69, - ..._191, - ..._210 - }; - } - export namespace msg { - export const v1 = { - ..._70 - }; - } - export namespace nft { - export const v1beta1 = { - ..._71, - ..._72, - ..._73, - ..._74, - ..._75, - ..._161, - ..._175, - ..._192, - ..._211, - ..._226 - }; - } - export namespace orm { - export namespace module { - export const v1alpha1 = { - ..._76 - }; - } - export const v1 = { - ..._77 - }; - export const v1alpha1 = { - ..._78 - }; - } - export namespace params { - export const v1beta1 = { - ..._79, - ..._80, - ..._193, - ..._212 - }; - } - export namespace slashing { - export const v1beta1 = { - ..._81, - ..._82, - ..._83, - ..._84, - ..._162, - ..._176, - ..._194, - ..._213, - ..._227 - }; - } - export namespace staking { - export const v1beta1 = { - ..._85, - ..._86, - ..._87, - ..._88, - ..._89, - ..._163, - ..._177, - ..._195, - ..._214, - ..._228 - }; - } - export namespace tx { - export namespace signing { - export const v1beta1 = { - ..._90 - }; - } - export const v1beta1 = { - ..._91, - ..._92, - ..._196, - ..._215 - }; - } - export namespace upgrade { - export const v1beta1 = { - ..._93, - ..._94, - ..._95, - ..._164, - ..._178, - ..._197, - ..._216, - ..._229 - }; - } - export namespace vesting { - export const v1beta1 = { - ..._96, - ..._97, - ..._165, - ..._179, - ..._230 - }; - } - export const ClientFactory = { - ..._271, - ..._272, - ..._273 - }; -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/capability/v1beta1/capability.ts b/packages/api/src/codegen/cosmos/capability/v1beta1/capability.ts deleted file mode 100644 index ff85a857..00000000 --- a/packages/api/src/codegen/cosmos/capability/v1beta1/capability.ts +++ /dev/null @@ -1,349 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: bigint; -} -export interface CapabilityProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Capability"; - value: Uint8Array; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilityAmino { - index?: string; -} -export interface CapabilityAminoMsg { - type: "cosmos-sdk/Capability"; - value: CapabilityAmino; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: bigint; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -export interface OwnerProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Owner"; - value: Uint8Array; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerAmino { - module?: string; - name?: string; -} -export interface OwnerAminoMsg { - type: "cosmos-sdk/Owner"; - value: OwnerAmino; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -export interface CapabilityOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners"; - value: Uint8Array; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersAmino { - owners?: OwnerAmino[]; -} -export interface CapabilityOwnersAminoMsg { - type: "cosmos-sdk/CapabilityOwners"; - value: CapabilityOwnersAmino; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} -function createBaseCapability(): Capability { - return { - index: BigInt(0) - }; -} -export const Capability = { - typeUrl: "/cosmos.capability.v1beta1.Capability", - encode(message: Capability, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== BigInt(0)) { - writer.uint32(8).uint64(message.index); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Capability { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCapability(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Capability { - return { - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0) - }; - }, - toJSON(message: Capability): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Capability { - const message = createBaseCapability(); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - return message; - }, - fromAmino(object: CapabilityAmino): Capability { - const message = createBaseCapability(); - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - return message; - }, - toAmino(message: Capability): CapabilityAmino { - const obj: any = {}; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - return obj; - }, - fromAminoMsg(object: CapabilityAminoMsg): Capability { - return Capability.fromAmino(object.value); - }, - toAminoMsg(message: Capability): CapabilityAminoMsg { - return { - type: "cosmos-sdk/Capability", - value: Capability.toAmino(message) - }; - }, - fromProtoMsg(message: CapabilityProtoMsg): Capability { - return Capability.decode(message.value); - }, - toProto(message: Capability): Uint8Array { - return Capability.encode(message).finish(); - }, - toProtoMsg(message: Capability): CapabilityProtoMsg { - return { - typeUrl: "/cosmos.capability.v1beta1.Capability", - value: Capability.encode(message).finish() - }; - } -}; -function createBaseOwner(): Owner { - return { - module: "", - name: "" - }; -} -export const Owner = { - typeUrl: "/cosmos.capability.v1beta1.Owner", - encode(message: Owner, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Owner { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOwner(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Owner { - return { - module: isSet(object.module) ? String(object.module) : "", - name: isSet(object.name) ? String(object.name) : "" - }; - }, - toJSON(message: Owner): unknown { - const obj: any = {}; - message.module !== undefined && (obj.module = message.module); - message.name !== undefined && (obj.name = message.name); - return obj; - }, - fromPartial(object: Partial): Owner { - const message = createBaseOwner(); - message.module = object.module ?? ""; - message.name = object.name ?? ""; - return message; - }, - fromAmino(object: OwnerAmino): Owner { - const message = createBaseOwner(); - if (object.module !== undefined && object.module !== null) { - message.module = object.module; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message: Owner): OwnerAmino { - const obj: any = {}; - obj.module = message.module === "" ? undefined : message.module; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object: OwnerAminoMsg): Owner { - return Owner.fromAmino(object.value); - }, - toAminoMsg(message: Owner): OwnerAminoMsg { - return { - type: "cosmos-sdk/Owner", - value: Owner.toAmino(message) - }; - }, - fromProtoMsg(message: OwnerProtoMsg): Owner { - return Owner.decode(message.value); - }, - toProto(message: Owner): Uint8Array { - return Owner.encode(message).finish(); - }, - toProtoMsg(message: Owner): OwnerProtoMsg { - return { - typeUrl: "/cosmos.capability.v1beta1.Owner", - value: Owner.encode(message).finish() - }; - } -}; -function createBaseCapabilityOwners(): CapabilityOwners { - return { - owners: [] - }; -} -export const CapabilityOwners = { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners", - encode(message: CapabilityOwners, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.owners) { - Owner.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CapabilityOwners { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCapabilityOwners(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owners.push(Owner.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CapabilityOwners { - return { - owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => Owner.fromJSON(e)) : [] - }; - }, - toJSON(message: CapabilityOwners): unknown { - const obj: any = {}; - if (message.owners) { - obj.owners = message.owners.map(e => e ? Owner.toJSON(e) : undefined); - } else { - obj.owners = []; - } - return obj; - }, - fromPartial(object: Partial): CapabilityOwners { - const message = createBaseCapabilityOwners(); - message.owners = object.owners?.map(e => Owner.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CapabilityOwnersAmino): CapabilityOwners { - const message = createBaseCapabilityOwners(); - message.owners = object.owners?.map(e => Owner.fromAmino(e)) || []; - return message; - }, - toAmino(message: CapabilityOwners): CapabilityOwnersAmino { - const obj: any = {}; - if (message.owners) { - obj.owners = message.owners.map(e => e ? Owner.toAmino(e) : undefined); - } else { - obj.owners = message.owners; - } - return obj; - }, - fromAminoMsg(object: CapabilityOwnersAminoMsg): CapabilityOwners { - return CapabilityOwners.fromAmino(object.value); - }, - toAminoMsg(message: CapabilityOwners): CapabilityOwnersAminoMsg { - return { - type: "cosmos-sdk/CapabilityOwners", - value: CapabilityOwners.toAmino(message) - }; - }, - fromProtoMsg(message: CapabilityOwnersProtoMsg): CapabilityOwners { - return CapabilityOwners.decode(message.value); - }, - toProto(message: CapabilityOwners): Uint8Array { - return CapabilityOwners.encode(message).finish(); - }, - toProtoMsg(message: CapabilityOwners): CapabilityOwnersProtoMsg { - return { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners", - value: CapabilityOwners.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/capability/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/capability/v1beta1/genesis.ts deleted file mode 100644 index cee6f5e5..00000000 --- a/packages/api/src/codegen/cosmos/capability/v1beta1/genesis.ts +++ /dev/null @@ -1,255 +0,0 @@ -import { CapabilityOwners, CapabilityOwnersAmino, CapabilityOwnersSDKType } from "./capability"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: bigint; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -export interface GenesisOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners"; - value: Uint8Array; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersAmino { - /** index is the index of the capability owner. */ - index?: string; - /** index_owners are the owners at the given index. */ - index_owners?: CapabilityOwnersAmino; -} -export interface GenesisOwnersAminoMsg { - type: "cosmos-sdk/GenesisOwners"; - value: GenesisOwnersAmino; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: bigint; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: bigint; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateAmino { - /** index is the capability global index. */ - index?: string; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners?: GenesisOwnersAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: bigint; - owners: GenesisOwnersSDKType[]; -} -function createBaseGenesisOwners(): GenesisOwners { - return { - index: BigInt(0), - indexOwners: CapabilityOwners.fromPartial({}) - }; -} -export const GenesisOwners = { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners", - encode(message: GenesisOwners, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== BigInt(0)) { - writer.uint32(8).uint64(message.index); - } - if (message.indexOwners !== undefined) { - CapabilityOwners.encode(message.indexOwners, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisOwners { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisOwners(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint64(); - break; - case 2: - message.indexOwners = CapabilityOwners.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisOwners { - return { - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - indexOwners: isSet(object.indexOwners) ? CapabilityOwners.fromJSON(object.indexOwners) : undefined - }; - }, - toJSON(message: GenesisOwners): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - message.indexOwners !== undefined && (obj.indexOwners = message.indexOwners ? CapabilityOwners.toJSON(message.indexOwners) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisOwners { - const message = createBaseGenesisOwners(); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.indexOwners = object.indexOwners !== undefined && object.indexOwners !== null ? CapabilityOwners.fromPartial(object.indexOwners) : undefined; - return message; - }, - fromAmino(object: GenesisOwnersAmino): GenesisOwners { - const message = createBaseGenesisOwners(); - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.index_owners !== undefined && object.index_owners !== null) { - message.indexOwners = CapabilityOwners.fromAmino(object.index_owners); - } - return message; - }, - toAmino(message: GenesisOwners): GenesisOwnersAmino { - const obj: any = {}; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.index_owners = message.indexOwners ? CapabilityOwners.toAmino(message.indexOwners) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisOwnersAminoMsg): GenesisOwners { - return GenesisOwners.fromAmino(object.value); - }, - toAminoMsg(message: GenesisOwners): GenesisOwnersAminoMsg { - return { - type: "cosmos-sdk/GenesisOwners", - value: GenesisOwners.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisOwnersProtoMsg): GenesisOwners { - return GenesisOwners.decode(message.value); - }, - toProto(message: GenesisOwners): Uint8Array { - return GenesisOwners.encode(message).finish(); - }, - toProtoMsg(message: GenesisOwners): GenesisOwnersProtoMsg { - return { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners", - value: GenesisOwners.encode(message).finish() - }; - } -}; -function createBaseGenesisState(): GenesisState { - return { - index: BigInt(0), - owners: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.capability.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== BigInt(0)) { - writer.uint32(8).uint64(message.index); - } - for (const v of message.owners) { - GenesisOwners.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint64(); - break; - case 2: - message.owners.push(GenesisOwners.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => GenesisOwners.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - if (message.owners) { - obj.owners = message.owners.map(e => e ? GenesisOwners.toJSON(e) : undefined); - } else { - obj.owners = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.owners = object.owners?.map(e => GenesisOwners.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - message.owners = object.owners?.map(e => GenesisOwners.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - if (message.owners) { - obj.owners = message.owners.map(e => e ? GenesisOwners.toAmino(e) : undefined); - } else { - obj.owners = message.owners; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.capability.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/client.ts b/packages/api/src/codegen/cosmos/client.ts deleted file mode 100644 index d7164686..00000000 --- a/packages/api/src/codegen/cosmos/client.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; -import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; -import * as cosmosCrisisV1beta1TxRegistry from "./crisis/v1beta1/tx.registry"; -import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry"; -import * as cosmosEvidenceV1beta1TxRegistry from "./evidence/v1beta1/tx.registry"; -import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry"; -import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry"; -import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry"; -import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry"; -import * as cosmosNftV1beta1TxRegistry from "./nft/v1beta1/tx.registry"; -import * as cosmosSlashingV1beta1TxRegistry from "./slashing/v1beta1/tx.registry"; -import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; -import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; -import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry"; -import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; -import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; -import * as cosmosCrisisV1beta1TxAmino from "./crisis/v1beta1/tx.amino"; -import * as cosmosDistributionV1beta1TxAmino from "./distribution/v1beta1/tx.amino"; -import * as cosmosEvidenceV1beta1TxAmino from "./evidence/v1beta1/tx.amino"; -import * as cosmosFeegrantV1beta1TxAmino from "./feegrant/v1beta1/tx.amino"; -import * as cosmosGovV1TxAmino from "./gov/v1/tx.amino"; -import * as cosmosGovV1beta1TxAmino from "./gov/v1beta1/tx.amino"; -import * as cosmosGroupV1TxAmino from "./group/v1/tx.amino"; -import * as cosmosNftV1beta1TxAmino from "./nft/v1beta1/tx.amino"; -import * as cosmosSlashingV1beta1TxAmino from "./slashing/v1beta1/tx.amino"; -import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; -import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; -import * as cosmosVestingV1beta1TxAmino from "./vesting/v1beta1/tx.amino"; -export const cosmosAminoConverters = { - ...cosmosAuthzV1beta1TxAmino.AminoConverter, - ...cosmosBankV1beta1TxAmino.AminoConverter, - ...cosmosCrisisV1beta1TxAmino.AminoConverter, - ...cosmosDistributionV1beta1TxAmino.AminoConverter, - ...cosmosEvidenceV1beta1TxAmino.AminoConverter, - ...cosmosFeegrantV1beta1TxAmino.AminoConverter, - ...cosmosGovV1TxAmino.AminoConverter, - ...cosmosGovV1beta1TxAmino.AminoConverter, - ...cosmosGroupV1TxAmino.AminoConverter, - ...cosmosNftV1beta1TxAmino.AminoConverter, - ...cosmosSlashingV1beta1TxAmino.AminoConverter, - ...cosmosStakingV1beta1TxAmino.AminoConverter, - ...cosmosUpgradeV1beta1TxAmino.AminoConverter, - ...cosmosVestingV1beta1TxAmino.AminoConverter -}; -export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosCrisisV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosEvidenceV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosNftV1beta1TxRegistry.registry, ...cosmosSlashingV1beta1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; -export const getSigningCosmosClientOptions = (): { - registry: Registry; - aminoTypes: AminoTypes; -} => { - const registry = new Registry([...cosmosProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...cosmosAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningCosmosClient = async ({ - rpcEndpoint, - signer -}: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; -}) => { - const { - registry, - aminoTypes - } = getSigningCosmosClientOptions(); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: (registry as any), - aminoTypes - }); - return client; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crisis/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/crisis/v1beta1/genesis.ts deleted file mode 100644 index dc0f9fde..00000000 --- a/packages/api/src/codegen/cosmos/crisis/v1beta1/genesis.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateAmino { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constant_fee?: CoinAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - constantFee: Coin.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.constantFee !== undefined) { - Coin.encode(message.constantFee, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.constantFee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - constantFee: isSet(object.constantFee) ? Coin.fromJSON(object.constantFee) : undefined - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.constantFee !== undefined && (obj.constantFee = message.constantFee ? Coin.toJSON(message.constantFee) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.constantFee = object.constantFee !== undefined && object.constantFee !== null ? Coin.fromPartial(object.constantFee) : undefined; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.constant_fee !== undefined && object.constant_fee !== null) { - message.constantFee = Coin.fromAmino(object.constant_fee); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.constant_fee = message.constantFee ? Coin.toAmino(message.constantFee) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts deleted file mode 100644 index 5269268b..00000000 --- a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgVerifyInvariant } from "./tx"; -export const AminoConverter = { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: "cosmos-sdk/MsgVerifyInvariant", - toAmino: MsgVerifyInvariant.toAmino, - fromAmino: MsgVerifyInvariant.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts deleted file mode 100644 index df0e8e23..00000000 --- a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgVerifyInvariant } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.encode(value).finish() - }; - } - }, - withTypeUrl: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value - }; - } - }, - toJSON: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.toJSON(value) - }; - } - }, - fromJSON: { - verifyInvariant(value: any) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.fromJSON(value) - }; - } - }, - fromPartial: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index b0b9ea1f..00000000 --- a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgVerifyInvariant, MsgVerifyInvariantResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** VerifyInvariant defines a method to verify a particular invariance. */ - verifyInvariant(request: MsgVerifyInvariant): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.verifyInvariant = this.verifyInvariant.bind(this); - } - verifyInvariant(request: MsgVerifyInvariant): Promise { - const data = MsgVerifyInvariant.encode(request).finish(); - const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", data); - return promise.then(data => MsgVerifyInvariantResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.ts deleted file mode 100644 index dc827e8d..00000000 --- a/packages/api/src/codegen/cosmos/crisis/v1beta1/tx.ts +++ /dev/null @@ -1,212 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -export interface MsgVerifyInvariantProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant"; - value: Uint8Array; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantAmino { - sender?: string; - invariant_module_name?: string; - invariant_route?: string; -} -export interface MsgVerifyInvariantAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: MsgVerifyInvariantAmino; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse {} -export interface MsgVerifyInvariantResponseProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; - value: Uint8Array; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseAmino {} -export interface MsgVerifyInvariantResponseAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariantResponse"; - value: MsgVerifyInvariantResponseAmino; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType {} -function createBaseMsgVerifyInvariant(): MsgVerifyInvariant { - return { - sender: "", - invariantModuleName: "", - invariantRoute: "" - }; -} -export const MsgVerifyInvariant = { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - encode(message: MsgVerifyInvariant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.invariantModuleName !== "") { - writer.uint32(18).string(message.invariantModuleName); - } - if (message.invariantRoute !== "") { - writer.uint32(26).string(message.invariantRoute); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariant { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVerifyInvariant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.invariantModuleName = reader.string(); - break; - case 3: - message.invariantRoute = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVerifyInvariant { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - invariantModuleName: isSet(object.invariantModuleName) ? String(object.invariantModuleName) : "", - invariantRoute: isSet(object.invariantRoute) ? String(object.invariantRoute) : "" - }; - }, - toJSON(message: MsgVerifyInvariant): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.invariantModuleName !== undefined && (obj.invariantModuleName = message.invariantModuleName); - message.invariantRoute !== undefined && (obj.invariantRoute = message.invariantRoute); - return obj; - }, - fromPartial(object: Partial): MsgVerifyInvariant { - const message = createBaseMsgVerifyInvariant(); - message.sender = object.sender ?? ""; - message.invariantModuleName = object.invariantModuleName ?? ""; - message.invariantRoute = object.invariantRoute ?? ""; - return message; - }, - fromAmino(object: MsgVerifyInvariantAmino): MsgVerifyInvariant { - const message = createBaseMsgVerifyInvariant(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.invariant_module_name !== undefined && object.invariant_module_name !== null) { - message.invariantModuleName = object.invariant_module_name; - } - if (object.invariant_route !== undefined && object.invariant_route !== null) { - message.invariantRoute = object.invariant_route; - } - return message; - }, - toAmino(message: MsgVerifyInvariant): MsgVerifyInvariantAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.invariant_module_name = message.invariantModuleName === "" ? undefined : message.invariantModuleName; - obj.invariant_route = message.invariantRoute === "" ? undefined : message.invariantRoute; - return obj; - }, - fromAminoMsg(object: MsgVerifyInvariantAminoMsg): MsgVerifyInvariant { - return MsgVerifyInvariant.fromAmino(object.value); - }, - toAminoMsg(message: MsgVerifyInvariant): MsgVerifyInvariantAminoMsg { - return { - type: "cosmos-sdk/MsgVerifyInvariant", - value: MsgVerifyInvariant.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVerifyInvariantProtoMsg): MsgVerifyInvariant { - return MsgVerifyInvariant.decode(message.value); - }, - toProto(message: MsgVerifyInvariant): Uint8Array { - return MsgVerifyInvariant.encode(message).finish(); - }, - toProtoMsg(message: MsgVerifyInvariant): MsgVerifyInvariantProtoMsg { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.encode(message).finish() - }; - } -}; -function createBaseMsgVerifyInvariantResponse(): MsgVerifyInvariantResponse { - return {}; -} -export const MsgVerifyInvariantResponse = { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse", - encode(_: MsgVerifyInvariantResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariantResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVerifyInvariantResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVerifyInvariantResponse { - return {}; - }, - toJSON(_: MsgVerifyInvariantResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVerifyInvariantResponse { - const message = createBaseMsgVerifyInvariantResponse(); - return message; - }, - fromAmino(_: MsgVerifyInvariantResponseAmino): MsgVerifyInvariantResponse { - const message = createBaseMsgVerifyInvariantResponse(); - return message; - }, - toAmino(_: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVerifyInvariantResponseAminoMsg): MsgVerifyInvariantResponse { - return MsgVerifyInvariantResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseAminoMsg { - return { - type: "cosmos-sdk/MsgVerifyInvariantResponse", - value: MsgVerifyInvariantResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVerifyInvariantResponseProtoMsg): MsgVerifyInvariantResponse { - return MsgVerifyInvariantResponse.decode(message.value); - }, - toProto(message: MsgVerifyInvariantResponse): Uint8Array { - return MsgVerifyInvariantResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseProtoMsg { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse", - value: MsgVerifyInvariantResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/ed25519/keys.ts b/packages/api/src/codegen/cosmos/crypto/ed25519/keys.ts deleted file mode 100644 index 2c41cb75..00000000 --- a/packages/api/src/codegen/cosmos/crypto/ed25519/keys.ts +++ /dev/null @@ -1,227 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PubKey"; - value: Uint8Array; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PrivKey"; - value: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeySDKType { - key: Uint8Array; -} -function createBasePubKey(): PubKey { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PubKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PubKey { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array() - }; - }, - toJSON(message: PubKey): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PubKey { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object: PubKeyAmino): PubKey { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message: PubKey): PubKeyAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object: PubKeyAminoMsg): PubKey { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message: PubKey): PubKeyAminoMsg { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message: PubKeyProtoMsg): PubKey { - return PubKey.decode(message.value); - }, - toProto(message: PubKey): Uint8Array { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message: PubKey): PubKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey(): PrivKey { - return { - key: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PrivKey { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array() - }; - }, - toJSON(message: PrivKey): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PrivKey { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object: PrivKeyAmino): PrivKey { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message: PrivKey): PrivKeyAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message: PrivKey): PrivKeyAminoMsg { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { - return PrivKey.decode(message.value); - }, - toProto(message: PrivKey): Uint8Array { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message: PrivKey): PrivKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/hd/v1/hd.ts b/packages/api/src/codegen/cosmos/crypto/hd/v1/hd.ts deleted file mode 100644 index 99d47110..00000000 --- a/packages/api/src/codegen/cosmos/crypto/hd/v1/hd.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44Params { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coinType: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - addressIndex: number; -} -export interface BIP44ParamsProtoMsg { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; - value: Uint8Array; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsAmino { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose?: number; - /** coin_type is a constant that improves privacy */ - coin_type?: number; - /** account splits the key space into independent user identities */ - account?: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change?: boolean; - /** address_index is used as child index in BIP32 derivation */ - address_index?: number; -} -export interface BIP44ParamsAminoMsg { - type: "cosmos-sdk/BIP44Params"; - value: BIP44ParamsAmino; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsSDKType { - purpose: number; - coin_type: number; - account: number; - change: boolean; - address_index: number; -} -function createBaseBIP44Params(): BIP44Params { - return { - purpose: 0, - coinType: 0, - account: 0, - change: false, - addressIndex: 0 - }; -} -export const BIP44Params = { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - encode(message: BIP44Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.purpose !== 0) { - writer.uint32(8).uint32(message.purpose); - } - if (message.coinType !== 0) { - writer.uint32(16).uint32(message.coinType); - } - if (message.account !== 0) { - writer.uint32(24).uint32(message.account); - } - if (message.change === true) { - writer.uint32(32).bool(message.change); - } - if (message.addressIndex !== 0) { - writer.uint32(40).uint32(message.addressIndex); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBIP44Params(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.purpose = reader.uint32(); - break; - case 2: - message.coinType = reader.uint32(); - break; - case 3: - message.account = reader.uint32(); - break; - case 4: - message.change = reader.bool(); - break; - case 5: - message.addressIndex = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BIP44Params { - return { - purpose: isSet(object.purpose) ? Number(object.purpose) : 0, - coinType: isSet(object.coinType) ? Number(object.coinType) : 0, - account: isSet(object.account) ? Number(object.account) : 0, - change: isSet(object.change) ? Boolean(object.change) : false, - addressIndex: isSet(object.addressIndex) ? Number(object.addressIndex) : 0 - }; - }, - toJSON(message: BIP44Params): unknown { - const obj: any = {}; - message.purpose !== undefined && (obj.purpose = Math.round(message.purpose)); - message.coinType !== undefined && (obj.coinType = Math.round(message.coinType)); - message.account !== undefined && (obj.account = Math.round(message.account)); - message.change !== undefined && (obj.change = message.change); - message.addressIndex !== undefined && (obj.addressIndex = Math.round(message.addressIndex)); - return obj; - }, - fromPartial(object: Partial): BIP44Params { - const message = createBaseBIP44Params(); - message.purpose = object.purpose ?? 0; - message.coinType = object.coinType ?? 0; - message.account = object.account ?? 0; - message.change = object.change ?? false; - message.addressIndex = object.addressIndex ?? 0; - return message; - }, - fromAmino(object: BIP44ParamsAmino): BIP44Params { - const message = createBaseBIP44Params(); - if (object.purpose !== undefined && object.purpose !== null) { - message.purpose = object.purpose; - } - if (object.coin_type !== undefined && object.coin_type !== null) { - message.coinType = object.coin_type; - } - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.change !== undefined && object.change !== null) { - message.change = object.change; - } - if (object.address_index !== undefined && object.address_index !== null) { - message.addressIndex = object.address_index; - } - return message; - }, - toAmino(message: BIP44Params): BIP44ParamsAmino { - const obj: any = {}; - obj.purpose = message.purpose === 0 ? undefined : message.purpose; - obj.coin_type = message.coinType === 0 ? undefined : message.coinType; - obj.account = message.account === 0 ? undefined : message.account; - obj.change = message.change === false ? undefined : message.change; - obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; - return obj; - }, - fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params { - return BIP44Params.fromAmino(object.value); - }, - toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg { - return { - type: "cosmos-sdk/BIP44Params", - value: BIP44Params.toAmino(message) - }; - }, - fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params { - return BIP44Params.decode(message.value); - }, - toProto(message: BIP44Params): Uint8Array { - return BIP44Params.encode(message).finish(); - }, - toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg { - return { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - value: BIP44Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/keyring/v1/record.ts b/packages/api/src/codegen/cosmos/crypto/keyring/v1/record.ts deleted file mode 100644 index 911bcaf5..00000000 --- a/packages/api/src/codegen/cosmos/crypto/keyring/v1/record.ts +++ /dev/null @@ -1,561 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** Record is used for representing a key in the keyring. */ -export interface Record { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pubKey?: Any; - /** local stores the private key locally. */ - local?: Record_Local; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_Ledger; - /** Multi does not store any other information. */ - multi?: Record_Multi; - /** Offline does not store any other information. */ - offline?: Record_Offline; -} -export interface RecordProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Record"; - value: Uint8Array; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordAmino { - /** name represents a name of Record */ - name?: string; - /** pub_key represents a public key in any format */ - pub_key?: AnyAmino; - /** local stores the private key locally. */ - local?: Record_LocalAmino; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_LedgerAmino; - /** Multi does not store any other information. */ - multi?: Record_MultiAmino; - /** Offline does not store any other information. */ - offline?: Record_OfflineAmino; -} -export interface RecordAminoMsg { - type: "cosmos-sdk/Record"; - value: RecordAmino; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordSDKType { - name: string; - pub_key?: AnySDKType; - local?: Record_LocalSDKType; - ledger?: Record_LedgerSDKType; - multi?: Record_MultiSDKType; - offline?: Record_OfflineSDKType; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_Local { - privKey?: Any; -} -export interface Record_LocalProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Local"; - value: Uint8Array; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalAmino { - priv_key?: AnyAmino; -} -export interface Record_LocalAminoMsg { - type: "cosmos-sdk/Local"; - value: Record_LocalAmino; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalSDKType { - priv_key?: AnySDKType; -} -/** Ledger item */ -export interface Record_Ledger { - path?: BIP44Params; -} -export interface Record_LedgerProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; - value: Uint8Array; -} -/** Ledger item */ -export interface Record_LedgerAmino { - path?: BIP44ParamsAmino; -} -export interface Record_LedgerAminoMsg { - type: "cosmos-sdk/Ledger"; - value: Record_LedgerAmino; -} -/** Ledger item */ -export interface Record_LedgerSDKType { - path?: BIP44ParamsSDKType; -} -/** Multi item */ -export interface Record_Multi {} -export interface Record_MultiProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Multi"; - value: Uint8Array; -} -/** Multi item */ -export interface Record_MultiAmino {} -export interface Record_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: Record_MultiAmino; -} -/** Multi item */ -export interface Record_MultiSDKType {} -/** Offline item */ -export interface Record_Offline {} -export interface Record_OfflineProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Offline"; - value: Uint8Array; -} -/** Offline item */ -export interface Record_OfflineAmino {} -export interface Record_OfflineAminoMsg { - type: "cosmos-sdk/Offline"; - value: Record_OfflineAmino; -} -/** Offline item */ -export interface Record_OfflineSDKType {} -function createBaseRecord(): Record { - return { - name: "", - pubKey: undefined, - local: undefined, - ledger: undefined, - multi: undefined, - offline: undefined - }; -} -export const Record = { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - encode(message: Record, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.local !== undefined) { - Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); - } - if (message.ledger !== undefined) { - Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); - } - if (message.multi !== undefined) { - Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); - } - if (message.offline !== undefined) { - Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Record { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.local = Record_Local.decode(reader, reader.uint32()); - break; - case 4: - message.ledger = Record_Ledger.decode(reader, reader.uint32()); - break; - case 5: - message.multi = Record_Multi.decode(reader, reader.uint32()); - break; - case 6: - message.offline = Record_Offline.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Record { - return { - name: isSet(object.name) ? String(object.name) : "", - pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : undefined, - local: isSet(object.local) ? Record_Local.fromJSON(object.local) : undefined, - ledger: isSet(object.ledger) ? Record_Ledger.fromJSON(object.ledger) : undefined, - multi: isSet(object.multi) ? Record_Multi.fromJSON(object.multi) : undefined, - offline: isSet(object.offline) ? Record_Offline.fromJSON(object.offline) : undefined - }; - }, - toJSON(message: Record): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? Any.toJSON(message.pubKey) : undefined); - message.local !== undefined && (obj.local = message.local ? Record_Local.toJSON(message.local) : undefined); - message.ledger !== undefined && (obj.ledger = message.ledger ? Record_Ledger.toJSON(message.ledger) : undefined); - message.multi !== undefined && (obj.multi = message.multi ? Record_Multi.toJSON(message.multi) : undefined); - message.offline !== undefined && (obj.offline = message.offline ? Record_Offline.toJSON(message.offline) : undefined); - return obj; - }, - fromPartial(object: Partial): Record { - const message = createBaseRecord(); - message.name = object.name ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.local = object.local !== undefined && object.local !== null ? Record_Local.fromPartial(object.local) : undefined; - message.ledger = object.ledger !== undefined && object.ledger !== null ? Record_Ledger.fromPartial(object.ledger) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? Record_Multi.fromPartial(object.multi) : undefined; - message.offline = object.offline !== undefined && object.offline !== null ? Record_Offline.fromPartial(object.offline) : undefined; - return message; - }, - fromAmino(object: RecordAmino): Record { - const message = createBaseRecord(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = Any.fromAmino(object.pub_key); - } - if (object.local !== undefined && object.local !== null) { - message.local = Record_Local.fromAmino(object.local); - } - if (object.ledger !== undefined && object.ledger !== null) { - message.ledger = Record_Ledger.fromAmino(object.ledger); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = Record_Multi.fromAmino(object.multi); - } - if (object.offline !== undefined && object.offline !== null) { - message.offline = Record_Offline.fromAmino(object.offline); - } - return message; - }, - toAmino(message: Record): RecordAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.local = message.local ? Record_Local.toAmino(message.local) : undefined; - obj.ledger = message.ledger ? Record_Ledger.toAmino(message.ledger) : undefined; - obj.multi = message.multi ? Record_Multi.toAmino(message.multi) : undefined; - obj.offline = message.offline ? Record_Offline.toAmino(message.offline) : undefined; - return obj; - }, - fromAminoMsg(object: RecordAminoMsg): Record { - return Record.fromAmino(object.value); - }, - toAminoMsg(message: Record): RecordAminoMsg { - return { - type: "cosmos-sdk/Record", - value: Record.toAmino(message) - }; - }, - fromProtoMsg(message: RecordProtoMsg): Record { - return Record.decode(message.value); - }, - toProto(message: Record): Uint8Array { - return Record.encode(message).finish(); - }, - toProtoMsg(message: Record): RecordProtoMsg { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - value: Record.encode(message).finish() - }; - } -}; -function createBaseRecord_Local(): Record_Local { - return { - privKey: undefined - }; -} -export const Record_Local = { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - encode(message: Record_Local, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.privKey !== undefined) { - Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Record_Local { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Local(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.privKey = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Record_Local { - return { - privKey: isSet(object.privKey) ? Any.fromJSON(object.privKey) : undefined - }; - }, - toJSON(message: Record_Local): unknown { - const obj: any = {}; - message.privKey !== undefined && (obj.privKey = message.privKey ? Any.toJSON(message.privKey) : undefined); - return obj; - }, - fromPartial(object: Partial): Record_Local { - const message = createBaseRecord_Local(); - message.privKey = object.privKey !== undefined && object.privKey !== null ? Any.fromPartial(object.privKey) : undefined; - return message; - }, - fromAmino(object: Record_LocalAmino): Record_Local { - const message = createBaseRecord_Local(); - if (object.priv_key !== undefined && object.priv_key !== null) { - message.privKey = Any.fromAmino(object.priv_key); - } - return message; - }, - toAmino(message: Record_Local): Record_LocalAmino { - const obj: any = {}; - obj.priv_key = message.privKey ? Any.toAmino(message.privKey) : undefined; - return obj; - }, - fromAminoMsg(object: Record_LocalAminoMsg): Record_Local { - return Record_Local.fromAmino(object.value); - }, - toAminoMsg(message: Record_Local): Record_LocalAminoMsg { - return { - type: "cosmos-sdk/Local", - value: Record_Local.toAmino(message) - }; - }, - fromProtoMsg(message: Record_LocalProtoMsg): Record_Local { - return Record_Local.decode(message.value); - }, - toProto(message: Record_Local): Uint8Array { - return Record_Local.encode(message).finish(); - }, - toProtoMsg(message: Record_Local): Record_LocalProtoMsg { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - value: Record_Local.encode(message).finish() - }; - } -}; -function createBaseRecord_Ledger(): Record_Ledger { - return { - path: undefined - }; -} -export const Record_Ledger = { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - encode(message: Record_Ledger, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.path !== undefined) { - BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Ledger(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = BIP44Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Record_Ledger { - return { - path: isSet(object.path) ? BIP44Params.fromJSON(object.path) : undefined - }; - }, - toJSON(message: Record_Ledger): unknown { - const obj: any = {}; - message.path !== undefined && (obj.path = message.path ? BIP44Params.toJSON(message.path) : undefined); - return obj; - }, - fromPartial(object: Partial): Record_Ledger { - const message = createBaseRecord_Ledger(); - message.path = object.path !== undefined && object.path !== null ? BIP44Params.fromPartial(object.path) : undefined; - return message; - }, - fromAmino(object: Record_LedgerAmino): Record_Ledger { - const message = createBaseRecord_Ledger(); - if (object.path !== undefined && object.path !== null) { - message.path = BIP44Params.fromAmino(object.path); - } - return message; - }, - toAmino(message: Record_Ledger): Record_LedgerAmino { - const obj: any = {}; - obj.path = message.path ? BIP44Params.toAmino(message.path) : undefined; - return obj; - }, - fromAminoMsg(object: Record_LedgerAminoMsg): Record_Ledger { - return Record_Ledger.fromAmino(object.value); - }, - toAminoMsg(message: Record_Ledger): Record_LedgerAminoMsg { - return { - type: "cosmos-sdk/Ledger", - value: Record_Ledger.toAmino(message) - }; - }, - fromProtoMsg(message: Record_LedgerProtoMsg): Record_Ledger { - return Record_Ledger.decode(message.value); - }, - toProto(message: Record_Ledger): Uint8Array { - return Record_Ledger.encode(message).finish(); - }, - toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - value: Record_Ledger.encode(message).finish() - }; - } -}; -function createBaseRecord_Multi(): Record_Multi { - return {}; -} -export const Record_Multi = { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - encode(_: Record_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): Record_Multi { - return {}; - }, - toJSON(_: Record_Multi): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): Record_Multi { - const message = createBaseRecord_Multi(); - return message; - }, - fromAmino(_: Record_MultiAmino): Record_Multi { - const message = createBaseRecord_Multi(); - return message; - }, - toAmino(_: Record_Multi): Record_MultiAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: Record_MultiAminoMsg): Record_Multi { - return Record_Multi.fromAmino(object.value); - }, - toAminoMsg(message: Record_Multi): Record_MultiAminoMsg { - return { - type: "cosmos-sdk/Multi", - value: Record_Multi.toAmino(message) - }; - }, - fromProtoMsg(message: Record_MultiProtoMsg): Record_Multi { - return Record_Multi.decode(message.value); - }, - toProto(message: Record_Multi): Uint8Array { - return Record_Multi.encode(message).finish(); - }, - toProtoMsg(message: Record_Multi): Record_MultiProtoMsg { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - value: Record_Multi.encode(message).finish() - }; - } -}; -function createBaseRecord_Offline(): Record_Offline { - return {}; -} -export const Record_Offline = { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - encode(_: Record_Offline, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Offline(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): Record_Offline { - return {}; - }, - toJSON(_: Record_Offline): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): Record_Offline { - const message = createBaseRecord_Offline(); - return message; - }, - fromAmino(_: Record_OfflineAmino): Record_Offline { - const message = createBaseRecord_Offline(); - return message; - }, - toAmino(_: Record_Offline): Record_OfflineAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: Record_OfflineAminoMsg): Record_Offline { - return Record_Offline.fromAmino(object.value); - }, - toAminoMsg(message: Record_Offline): Record_OfflineAminoMsg { - return { - type: "cosmos-sdk/Offline", - value: Record_Offline.toAmino(message) - }; - }, - fromProtoMsg(message: Record_OfflineProtoMsg): Record_Offline { - return Record_Offline.decode(message.value); - }, - toProto(message: Record_Offline): Uint8Array { - return Record_Offline.encode(message).finish(); - }, - toProtoMsg(message: Record_Offline): Record_OfflineProtoMsg { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - value: Record_Offline.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/multisig/keys.ts b/packages/api/src/codegen/cosmos/crypto/multisig/keys.ts deleted file mode 100644 index f4e6f332..00000000 --- a/packages/api/src/codegen/cosmos/crypto/multisig/keys.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKey { - threshold: number; - publicKeys: Any[]; -} -export interface LegacyAminoPubKeyProtoMsg { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; - value: Uint8Array; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeyAmino { - threshold?: number; - public_keys?: AnyAmino[]; -} -export interface LegacyAminoPubKeyAminoMsg { - type: "cosmos-sdk/LegacyAminoPubKey"; - value: LegacyAminoPubKeyAmino; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeySDKType { - threshold: number; - public_keys: AnySDKType[]; -} -function createBaseLegacyAminoPubKey(): LegacyAminoPubKey { - return { - threshold: 0, - publicKeys: [] - }; -} -export const LegacyAminoPubKey = { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - encode(message: LegacyAminoPubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.threshold !== 0) { - writer.uint32(8).uint32(message.threshold); - } - for (const v of message.publicKeys) { - Any.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLegacyAminoPubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.uint32(); - break; - case 2: - message.publicKeys.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): LegacyAminoPubKey { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - publicKeys: Array.isArray(object?.publicKeys) ? object.publicKeys.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: LegacyAminoPubKey): unknown { - const obj: any = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - if (message.publicKeys) { - obj.publicKeys = message.publicKeys.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.publicKeys = []; - } - return obj; - }, - fromPartial(object: Partial): LegacyAminoPubKey { - const message = createBaseLegacyAminoPubKey(); - message.threshold = object.threshold ?? 0; - message.publicKeys = object.publicKeys?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: LegacyAminoPubKeyAmino): LegacyAminoPubKey { - const message = createBaseLegacyAminoPubKey(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - message.publicKeys = object.public_keys?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino { - const obj: any = {}; - obj.threshold = message.threshold === 0 ? undefined : message.threshold; - if (message.publicKeys) { - obj.public_keys = message.publicKeys.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.public_keys = message.publicKeys; - } - return obj; - }, - fromAminoMsg(object: LegacyAminoPubKeyAminoMsg): LegacyAminoPubKey { - return LegacyAminoPubKey.fromAmino(object.value); - }, - toAminoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyAminoMsg { - return { - type: "cosmos-sdk/LegacyAminoPubKey", - value: LegacyAminoPubKey.toAmino(message) - }; - }, - fromProtoMsg(message: LegacyAminoPubKeyProtoMsg): LegacyAminoPubKey { - return LegacyAminoPubKey.decode(message.value); - }, - toProto(message: LegacyAminoPubKey): Uint8Array { - return LegacyAminoPubKey.encode(message).finish(); - }, - toProtoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - value: LegacyAminoPubKey.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts b/packages/api/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts deleted file mode 100644 index 4b9934aa..00000000 --- a/packages/api/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +++ /dev/null @@ -1,250 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes, isSet } from "../../../../helpers"; -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignature { - signatures: Uint8Array[]; -} -export interface MultiSignatureProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; - value: Uint8Array; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureAmino { - signatures?: string[]; -} -export interface MultiSignatureAminoMsg { - type: "cosmos-sdk/MultiSignature"; - value: MultiSignatureAmino; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureSDKType { - signatures: Uint8Array[]; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArray { - extraBitsStored: number; - elems: Uint8Array; -} -export interface CompactBitArrayProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; - value: Uint8Array; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArrayAmino { - extra_bits_stored?: number; - elems?: string; -} -export interface CompactBitArrayAminoMsg { - type: "cosmos-sdk/CompactBitArray"; - value: CompactBitArrayAmino; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArraySDKType { - extra_bits_stored: number; - elems: Uint8Array; -} -function createBaseMultiSignature(): MultiSignature { - return { - signatures: [] - }; -} -export const MultiSignature = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - encode(message: MultiSignature, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.signatures) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMultiSignature(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MultiSignature { - return { - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: MultiSignature): unknown { - const obj: any = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): MultiSignature { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object: MultiSignatureAmino): MultiSignature { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: MultiSignature): MultiSignatureAmino { - const obj: any = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature { - return MultiSignature.fromAmino(object.value); - }, - toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg { - return { - type: "cosmos-sdk/MultiSignature", - value: MultiSignature.toAmino(message) - }; - }, - fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature { - return MultiSignature.decode(message.value); - }, - toProto(message: MultiSignature): Uint8Array { - return MultiSignature.encode(message).finish(); - }, - toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - value: MultiSignature.encode(message).finish() - }; - } -}; -function createBaseCompactBitArray(): CompactBitArray { - return { - extraBitsStored: 0, - elems: new Uint8Array() - }; -} -export const CompactBitArray = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - encode(message: CompactBitArray, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.extraBitsStored !== 0) { - writer.uint32(8).uint32(message.extraBitsStored); - } - if (message.elems.length !== 0) { - writer.uint32(18).bytes(message.elems); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCompactBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.extraBitsStored = reader.uint32(); - break; - case 2: - message.elems = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CompactBitArray { - return { - extraBitsStored: isSet(object.extraBitsStored) ? Number(object.extraBitsStored) : 0, - elems: isSet(object.elems) ? bytesFromBase64(object.elems) : new Uint8Array() - }; - }, - toJSON(message: CompactBitArray): unknown { - const obj: any = {}; - message.extraBitsStored !== undefined && (obj.extraBitsStored = Math.round(message.extraBitsStored)); - message.elems !== undefined && (obj.elems = base64FromBytes(message.elems !== undefined ? message.elems : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): CompactBitArray { - const message = createBaseCompactBitArray(); - message.extraBitsStored = object.extraBitsStored ?? 0; - message.elems = object.elems ?? new Uint8Array(); - return message; - }, - fromAmino(object: CompactBitArrayAmino): CompactBitArray { - const message = createBaseCompactBitArray(); - if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { - message.extraBitsStored = object.extra_bits_stored; - } - if (object.elems !== undefined && object.elems !== null) { - message.elems = bytesFromBase64(object.elems); - } - return message; - }, - toAmino(message: CompactBitArray): CompactBitArrayAmino { - const obj: any = {}; - obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; - obj.elems = message.elems ? base64FromBytes(message.elems) : undefined; - return obj; - }, - fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray { - return CompactBitArray.fromAmino(object.value); - }, - toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg { - return { - type: "cosmos-sdk/CompactBitArray", - value: CompactBitArray.toAmino(message) - }; - }, - fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray { - return CompactBitArray.decode(message.value); - }, - toProto(message: CompactBitArray): Uint8Array { - return CompactBitArray.encode(message).finish(); - }, - toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - value: CompactBitArray.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/secp256k1/keys.ts b/packages/api/src/codegen/cosmos/crypto/secp256k1/keys.ts deleted file mode 100644 index e69ea7cc..00000000 --- a/packages/api/src/codegen/cosmos/crypto/secp256k1/keys.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PubKey"; - value: Uint8Array; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeySDKType { - key: Uint8Array; -} -function createBasePubKey(): PubKey { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PubKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PubKey { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array() - }; - }, - toJSON(message: PubKey): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PubKey { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object: PubKeyAmino): PubKey { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message: PubKey): PubKeyAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object: PubKeyAminoMsg): PubKey { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message: PubKey): PubKeyAminoMsg { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message: PubKeyProtoMsg): PubKey { - return PubKey.decode(message.value); - }, - toProto(message: PubKey): Uint8Array { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message: PubKey): PubKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey(): PrivKey { - return { - key: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PrivKey { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array() - }; - }, - toJSON(message: PrivKey): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PrivKey { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object: PrivKeyAmino): PrivKey { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message: PrivKey): PrivKeyAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message: PrivKey): PrivKeyAminoMsg { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { - return PrivKey.decode(message.value); - }, - toProto(message: PrivKey): Uint8Array { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message: PrivKey): PrivKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/crypto/secp256r1/keys.ts b/packages/api/src/codegen/cosmos/crypto/secp256r1/keys.ts deleted file mode 100644 index 912ad72d..00000000 --- a/packages/api/src/codegen/cosmos/crypto/secp256r1/keys.ts +++ /dev/null @@ -1,210 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKey { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PubKey"; - value: Uint8Array; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeyAmino { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKey { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeyAmino { - /** secret number serialized using big-endian encoding */ - secret?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeySDKType { - secret: Uint8Array; -} -function createBasePubKey(): PubKey { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PubKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PubKey { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array() - }; - }, - toJSON(message: PubKey): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PubKey { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object: PubKeyAmino): PubKey { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message: PubKey): PubKeyAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object: PubKeyAminoMsg): PubKey { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message: PubKey): PubKeyAminoMsg { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message: PubKeyProtoMsg): PubKey { - return PubKey.decode(message.value); - }, - toProto(message: PubKey): Uint8Array { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message: PubKey): PubKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey(): PrivKey { - return { - secret: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.secret.length !== 0) { - writer.uint32(10).bytes(message.secret); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.secret = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PrivKey { - return { - secret: isSet(object.secret) ? bytesFromBase64(object.secret) : new Uint8Array() - }; - }, - toJSON(message: PrivKey): unknown { - const obj: any = {}; - message.secret !== undefined && (obj.secret = base64FromBytes(message.secret !== undefined ? message.secret : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PrivKey { - const message = createBasePrivKey(); - message.secret = object.secret ?? new Uint8Array(); - return message; - }, - fromAmino(object: PrivKeyAmino): PrivKey { - const message = createBasePrivKey(); - if (object.secret !== undefined && object.secret !== null) { - message.secret = bytesFromBase64(object.secret); - } - return message; - }, - toAmino(message: PrivKey): PrivKeyAmino { - const obj: any = {}; - obj.secret = message.secret ? base64FromBytes(message.secret) : undefined; - return obj; - }, - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message: PrivKey): PrivKeyAminoMsg { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { - return PrivKey.decode(message.value); - }, - toProto(message: PrivKey): Uint8Array { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message: PrivKey): PrivKeyProtoMsg { - return { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/distribution.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/distribution.ts deleted file mode 100644 index 766f3464..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/distribution.ts +++ /dev/null @@ -1,1653 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -import { isSet } from "../../../helpers"; -/** Params defines the set of params for the distribution module. */ -export interface Params { - communityTax: string; - baseProposerReward: string; - bonusProposerReward: string; - withdrawAddrEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsAmino { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsSDKType { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewards { - cumulativeRewardRatio: DecCoin[]; - referenceCount: number; -} -export interface ValidatorHistoricalRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio?: DecCoinAmino[]; - reference_count?: number; -} -export interface ValidatorHistoricalRewardsAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewards"; - value: ValidatorHistoricalRewardsAmino; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsSDKType { - cumulative_reward_ratio: DecCoinSDKType[]; - reference_count: number; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewards { - rewards: DecCoin[]; - period: bigint; -} -export interface ValidatorCurrentRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - value: Uint8Array; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsAmino { - rewards?: DecCoinAmino[]; - period?: string; -} -export interface ValidatorCurrentRewardsAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewards"; - value: ValidatorCurrentRewardsAmino; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsSDKType { - rewards: DecCoinSDKType[]; - period: bigint; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommission { - commission: DecCoin[]; -} -export interface ValidatorAccumulatedCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionAmino { - commission?: DecCoinAmino[]; -} -export interface ValidatorAccumulatedCommissionAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommission"; - value: ValidatorAccumulatedCommissionAmino; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionSDKType { - commission: DecCoinSDKType[]; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewards { - rewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - value: Uint8Array; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsAmino { - rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewards"; - value: ValidatorOutstandingRewardsAmino; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsSDKType { - rewards: DecCoinSDKType[]; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEvent { - validatorPeriod: bigint; - fraction: string; -} -export interface ValidatorSlashEventProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; - value: Uint8Array; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventAmino { - validator_period?: string; - fraction?: string; -} -export interface ValidatorSlashEventAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvent"; - value: ValidatorSlashEventAmino; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventSDKType { - validator_period: bigint; - fraction: string; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEvents { - validatorSlashEvents: ValidatorSlashEvent[]; -} -export interface ValidatorSlashEventsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; - value: Uint8Array; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsAmino { - validator_slash_events?: ValidatorSlashEventAmino[]; -} -export interface ValidatorSlashEventsAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvents"; - value: ValidatorSlashEventsAmino; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsSDKType { - validator_slash_events: ValidatorSlashEventSDKType[]; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePool { - communityPool: DecCoin[]; -} -export interface FeePoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.FeePool"; - value: Uint8Array; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolAmino { - community_pool?: DecCoinAmino[]; -} -export interface FeePoolAminoMsg { - type: "cosmos-sdk/FeePool"; - value: FeePoolAmino; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolSDKType { - community_pool: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposal { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: Coin[]; -} -export interface CommunityPoolSpendProposalProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalAmino { - title?: string; - description?: string; - recipient?: string; - amount?: CoinAmino[]; -} -export interface CommunityPoolSpendProposalAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposal"; - value: CommunityPoolSpendProposalAmino; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: CoinSDKType[]; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfo { - previousPeriod: bigint; - stake: string; - height: bigint; -} -export interface DelegatorStartingInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; - value: Uint8Array; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoAmino { - previous_period?: string; - stake?: string; - height: string; -} -export interface DelegatorStartingInfoAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfo"; - value: DelegatorStartingInfoAmino; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoSDKType { - previous_period: bigint; - stake: string; - height: bigint; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorReward { - validatorAddress: string; - reward: DecCoin[]; -} -export interface DelegationDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; - value: Uint8Array; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardAmino { - validator_address?: string; - reward?: DecCoinAmino[]; -} -export interface DelegationDelegatorRewardAminoMsg { - type: "cosmos-sdk/DelegationDelegatorReward"; - value: DelegationDelegatorRewardAmino; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardSDKType { - validator_address: string; - reward: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDeposit { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositAmino { - title?: string; - description?: string; - recipient?: string; - amount?: string; - deposit?: string; -} -export interface CommunityPoolSpendProposalWithDepositAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; - value: CommunityPoolSpendProposalWithDepositAmino; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -function createBaseParams(): Params { - return { - communityTax: "", - baseProposerReward: "", - bonusProposerReward: "", - withdrawAddrEnabled: false - }; -} -export const Params = { - typeUrl: "/cosmos.distribution.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.communityTax !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics); - } - if (message.baseProposerReward !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics); - } - if (message.bonusProposerReward !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); - } - if (message.withdrawAddrEnabled === true) { - writer.uint32(32).bool(message.withdrawAddrEnabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.withdrawAddrEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - communityTax: isSet(object.communityTax) ? String(object.communityTax) : "", - baseProposerReward: isSet(object.baseProposerReward) ? String(object.baseProposerReward) : "", - bonusProposerReward: isSet(object.bonusProposerReward) ? String(object.bonusProposerReward) : "", - withdrawAddrEnabled: isSet(object.withdrawAddrEnabled) ? Boolean(object.withdrawAddrEnabled) : false - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.communityTax !== undefined && (obj.communityTax = message.communityTax); - message.baseProposerReward !== undefined && (obj.baseProposerReward = message.baseProposerReward); - message.bonusProposerReward !== undefined && (obj.bonusProposerReward = message.bonusProposerReward); - message.withdrawAddrEnabled !== undefined && (obj.withdrawAddrEnabled = message.withdrawAddrEnabled); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.communityTax = object.communityTax ?? ""; - message.baseProposerReward = object.baseProposerReward ?? ""; - message.bonusProposerReward = object.bonusProposerReward ?? ""; - message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.community_tax !== undefined && object.community_tax !== null) { - message.communityTax = object.community_tax; - } - if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { - message.baseProposerReward = object.base_proposer_reward; - } - if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { - message.bonusProposerReward = object.bonus_proposer_reward; - } - if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { - message.withdrawAddrEnabled = object.withdraw_addr_enabled; - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; - obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; - obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; - obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards { - return { - cumulativeRewardRatio: [], - referenceCount: 0 - }; -} -export const ValidatorHistoricalRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - encode(message: ValidatorHistoricalRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.cumulativeRewardRatio) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.referenceCount !== 0) { - writer.uint32(16).uint32(message.referenceCount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.referenceCount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorHistoricalRewards { - return { - cumulativeRewardRatio: Array.isArray(object?.cumulativeRewardRatio) ? object.cumulativeRewardRatio.map((e: any) => DecCoin.fromJSON(e)) : [], - referenceCount: isSet(object.referenceCount) ? Number(object.referenceCount) : 0 - }; - }, - toJSON(message: ValidatorHistoricalRewards): unknown { - const obj: any = {}; - if (message.cumulativeRewardRatio) { - obj.cumulativeRewardRatio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.cumulativeRewardRatio = []; - } - message.referenceCount !== undefined && (obj.referenceCount = Math.round(message.referenceCount)); - return obj; - }, - fromPartial(object: Partial): ValidatorHistoricalRewards { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || []; - message.referenceCount = object.referenceCount ?? 0; - return message; - }, - fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => DecCoin.fromAmino(e)) || []; - if (object.reference_count !== undefined && object.reference_count !== null) { - message.referenceCount = object.reference_count; - } - return message; - }, - toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino { - const obj: any = {}; - if (message.cumulativeRewardRatio) { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio; - } - obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; - return obj; - }, - fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards { - return ValidatorHistoricalRewards.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg { - return { - type: "cosmos-sdk/ValidatorHistoricalRewards", - value: ValidatorHistoricalRewards.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards { - return ValidatorHistoricalRewards.decode(message.value); - }, - toProto(message: ValidatorHistoricalRewards): Uint8Array { - return ValidatorHistoricalRewards.encode(message).finish(); - }, - toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - value: ValidatorHistoricalRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards { - return { - rewards: [], - period: BigInt(0) - }; -} -export const ValidatorCurrentRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - encode(message: ValidatorCurrentRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.rewards) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.period = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorCurrentRewards { - return { - rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [], - period: isSet(object.period) ? BigInt(object.period.toString()) : BigInt(0) - }; - }, - toJSON(message: ValidatorCurrentRewards): unknown { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.rewards = []; - } - message.period !== undefined && (obj.period = (message.period || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ValidatorCurrentRewards { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - return message; - }, - toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.rewards = message.rewards; - } - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards { - return ValidatorCurrentRewards.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg { - return { - type: "cosmos-sdk/ValidatorCurrentRewards", - value: ValidatorCurrentRewards.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards { - return ValidatorCurrentRewards.decode(message.value); - }, - toProto(message: ValidatorCurrentRewards): Uint8Array { - return ValidatorCurrentRewards.encode(message).finish(); - }, - toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - value: ValidatorCurrentRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission { - return { - commission: [] - }; -} -export const ValidatorAccumulatedCommission = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - encode(message: ValidatorAccumulatedCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.commission) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorAccumulatedCommission { - return { - commission: Array.isArray(object?.commission) ? object.commission.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: ValidatorAccumulatedCommission): unknown { - const obj: any = {}; - if (message.commission) { - obj.commission = message.commission.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.commission = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorAccumulatedCommission { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino { - const obj: any = {}; - if (message.commission) { - obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.commission = message.commission; - } - return obj; - }, - fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission { - return ValidatorAccumulatedCommission.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommission", - value: ValidatorAccumulatedCommission.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission { - return ValidatorAccumulatedCommission.decode(message.value); - }, - toProto(message: ValidatorAccumulatedCommission): Uint8Array { - return ValidatorAccumulatedCommission.encode(message).finish(); - }, - toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - value: ValidatorAccumulatedCommission.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards { - return { - rewards: [] - }; -} -export const ValidatorOutstandingRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - encode(message: ValidatorOutstandingRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.rewards) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorOutstandingRewards { - return { - rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: ValidatorOutstandingRewards): unknown { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.rewards = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorOutstandingRewards { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards { - return ValidatorOutstandingRewards.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg { - return { - type: "cosmos-sdk/ValidatorOutstandingRewards", - value: ValidatorOutstandingRewards.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards { - return ValidatorOutstandingRewards.decode(message.value); - }, - toProto(message: ValidatorOutstandingRewards): Uint8Array { - return ValidatorOutstandingRewards.encode(message).finish(); - }, - toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - value: ValidatorOutstandingRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvent(): ValidatorSlashEvent { - return { - validatorPeriod: BigInt(0), - fraction: "" - }; -} -export const ValidatorSlashEvent = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - encode(message: ValidatorSlashEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.validatorPeriod); - } - if (message.fraction !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorPeriod = reader.uint64(); - break; - case 2: - message.fraction = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorSlashEvent { - return { - validatorPeriod: isSet(object.validatorPeriod) ? BigInt(object.validatorPeriod.toString()) : BigInt(0), - fraction: isSet(object.fraction) ? String(object.fraction) : "" - }; - }, - toJSON(message: ValidatorSlashEvent): unknown { - const obj: any = {}; - message.validatorPeriod !== undefined && (obj.validatorPeriod = (message.validatorPeriod || BigInt(0)).toString()); - message.fraction !== undefined && (obj.fraction = message.fraction); - return obj; - }, - fromPartial(object: Partial): ValidatorSlashEvent { - const message = createBaseValidatorSlashEvent(); - message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); - message.fraction = object.fraction ?? ""; - return message; - }, - fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent { - const message = createBaseValidatorSlashEvent(); - if (object.validator_period !== undefined && object.validator_period !== null) { - message.validatorPeriod = BigInt(object.validator_period); - } - if (object.fraction !== undefined && object.fraction !== null) { - message.fraction = object.fraction; - } - return message; - }, - toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino { - const obj: any = {}; - obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; - obj.fraction = message.fraction === "" ? undefined : message.fraction; - return obj; - }, - fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent { - return ValidatorSlashEvent.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg { - return { - type: "cosmos-sdk/ValidatorSlashEvent", - value: ValidatorSlashEvent.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent { - return ValidatorSlashEvent.decode(message.value); - }, - toProto(message: ValidatorSlashEvent): Uint8Array { - return ValidatorSlashEvent.encode(message).finish(); - }, - toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - value: ValidatorSlashEvent.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvents(): ValidatorSlashEvents { - return { - validatorSlashEvents: [] - }; -} -export const ValidatorSlashEvents = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - encode(message: ValidatorSlashEvents, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validatorSlashEvents) { - ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvents(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorSlashEvents { - return { - validatorSlashEvents: Array.isArray(object?.validatorSlashEvents) ? object.validatorSlashEvents.map((e: any) => ValidatorSlashEvent.fromJSON(e)) : [] - }; - }, - toJSON(message: ValidatorSlashEvents): unknown { - const obj: any = {}; - if (message.validatorSlashEvents) { - obj.validatorSlashEvents = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toJSON(e) : undefined); - } else { - obj.validatorSlashEvents = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorSlashEvents { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino { - const obj: any = {}; - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); - } else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents { - return ValidatorSlashEvents.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg { - return { - type: "cosmos-sdk/ValidatorSlashEvents", - value: ValidatorSlashEvents.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents { - return ValidatorSlashEvents.decode(message.value); - }, - toProto(message: ValidatorSlashEvents): Uint8Array { - return ValidatorSlashEvents.encode(message).finish(); - }, - toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - value: ValidatorSlashEvents.encode(message).finish() - }; - } -}; -function createBaseFeePool(): FeePool { - return { - communityPool: [] - }; -} -export const FeePool = { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - encode(message: FeePool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.communityPool) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FeePool { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFeePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityPool.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FeePool { - return { - communityPool: Array.isArray(object?.communityPool) ? object.communityPool.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: FeePool): unknown { - const obj: any = {}; - if (message.communityPool) { - obj.communityPool = message.communityPool.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.communityPool = []; - } - return obj; - }, - fromPartial(object: Partial): FeePool { - const message = createBaseFeePool(); - message.communityPool = object.communityPool?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: FeePoolAmino): FeePool { - const message = createBaseFeePool(); - message.communityPool = object.community_pool?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: FeePool): FeePoolAmino { - const obj: any = {}; - if (message.communityPool) { - obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.community_pool = message.communityPool; - } - return obj; - }, - fromAminoMsg(object: FeePoolAminoMsg): FeePool { - return FeePool.fromAmino(object.value); - }, - toAminoMsg(message: FeePool): FeePoolAminoMsg { - return { - type: "cosmos-sdk/FeePool", - value: FeePool.toAmino(message) - }; - }, - fromProtoMsg(message: FeePoolProtoMsg): FeePool { - return FeePool.decode(message.value); - }, - toProto(message: FeePool): Uint8Array { - return FeePool.encode(message).finish(); - }, - toProtoMsg(message: FeePool): FeePoolProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - value: FeePool.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - title: "", - description: "", - recipient: "", - amount: [] - }; -} -export const CommunityPoolSpendProposal = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - encode(message: CommunityPoolSpendProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommunityPoolSpendProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: CommunityPoolSpendProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.recipient !== undefined && (obj.recipient = message.recipient); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): CommunityPoolSpendProposal { - const message = createBaseCommunityPoolSpendProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal { - const message = createBaseCommunityPoolSpendProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal { - return CommunityPoolSpendProposal.fromAmino(object.value); - }, - toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg { - return { - type: "cosmos-sdk/CommunityPoolSpendProposal", - value: CommunityPoolSpendProposal.toAmino(message) - }; - }, - fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal { - return CommunityPoolSpendProposal.decode(message.value); - }, - toProto(message: CommunityPoolSpendProposal): Uint8Array { - return CommunityPoolSpendProposal.encode(message).finish(); - }, - toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - value: CommunityPoolSpendProposal.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfo(): DelegatorStartingInfo { - return { - previousPeriod: BigInt(0), - stake: "", - height: BigInt(0) - }; -} -export const DelegatorStartingInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - encode(message: DelegatorStartingInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.previousPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.previousPeriod); - } - if (message.stake !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).uint64(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.previousPeriod = reader.uint64(); - break; - case 2: - message.stake = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.height = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelegatorStartingInfo { - return { - previousPeriod: isSet(object.previousPeriod) ? BigInt(object.previousPeriod.toString()) : BigInt(0), - stake: isSet(object.stake) ? String(object.stake) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0) - }; - }, - toJSON(message: DelegatorStartingInfo): unknown { - const obj: any = {}; - message.previousPeriod !== undefined && (obj.previousPeriod = (message.previousPeriod || BigInt(0)).toString()); - message.stake !== undefined && (obj.stake = message.stake); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): DelegatorStartingInfo { - const message = createBaseDelegatorStartingInfo(); - message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); - message.stake = object.stake ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo { - const message = createBaseDelegatorStartingInfo(); - if (object.previous_period !== undefined && object.previous_period !== null) { - message.previousPeriod = BigInt(object.previous_period); - } - if (object.stake !== undefined && object.stake !== null) { - message.stake = object.stake; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino { - const obj: any = {}; - obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; - obj.stake = message.stake === "" ? undefined : message.stake; - obj.height = message.height ? message.height.toString() : "0"; - return obj; - }, - fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo { - return DelegatorStartingInfo.fromAmino(object.value); - }, - toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg { - return { - type: "cosmos-sdk/DelegatorStartingInfo", - value: DelegatorStartingInfo.toAmino(message) - }; - }, - fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo { - return DelegatorStartingInfo.decode(message.value); - }, - toProto(message: DelegatorStartingInfo): Uint8Array { - return DelegatorStartingInfo.encode(message).finish(); - }, - toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - value: DelegatorStartingInfo.encode(message).finish() - }; - } -}; -function createBaseDelegationDelegatorReward(): DelegationDelegatorReward { - return { - validatorAddress: "", - reward: [] - }; -} -export const DelegationDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - encode(message: DelegationDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.reward) { - DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.reward.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelegationDelegatorReward { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - reward: Array.isArray(object?.reward) ? object.reward.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: DelegationDelegatorReward): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - if (message.reward) { - obj.reward = message.reward.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.reward = []; - } - return obj; - }, - fromPartial(object: Partial): DelegationDelegatorReward { - const message = createBaseDelegationDelegatorReward(); - message.validatorAddress = object.validatorAddress ?? ""; - message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward { - const message = createBaseDelegationDelegatorReward(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.reward = object.reward?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.reward) { - obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.reward = message.reward; - } - return obj; - }, - fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward { - return DelegationDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg { - return { - type: "cosmos-sdk/DelegationDelegatorReward", - value: DelegationDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward { - return DelegationDelegatorReward.decode(message.value); - }, - toProto(message: DelegationDelegatorReward): Uint8Array { - return DelegationDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - value: DelegationDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - title: "", - description: "", - recipient: "", - amount: "", - deposit: "" - }; -} -export const CommunityPoolSpendProposalWithDeposit = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - encode(message: CommunityPoolSpendProposalWithDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.deposit !== "") { - writer.uint32(42).string(message.deposit); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.deposit = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommunityPoolSpendProposalWithDeposit { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - deposit: isSet(object.deposit) ? String(object.deposit) : "" - }; - }, - toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.recipient !== undefined && (obj.recipient = message.recipient); - message.amount !== undefined && (obj.amount = message.amount); - message.deposit !== undefined && (obj.deposit = message.deposit); - return obj; - }, - fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.deposit = object.deposit ?? ""; - return message; - }, - fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = object.deposit; - } - return message; - }, - toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.deposit = message.deposit === "" ? undefined : message.deposit; - return obj; - }, - fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit { - return CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); - }, - toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg { - return { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", - value: CommunityPoolSpendProposalWithDeposit.toAmino(message) - }; - }, - fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit { - return CommunityPoolSpendProposalWithDeposit.decode(message.value); - }, - toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array { - return CommunityPoolSpendProposalWithDeposit.encode(message).finish(); - }, - toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - value: CommunityPoolSpendProposalWithDeposit.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/genesis.ts deleted file mode 100644 index a1648c5a..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/genesis.ts +++ /dev/null @@ -1,1270 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfo { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdrawAddress: string; -} -export interface DelegatorWithdrawInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - value: Uint8Array; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address?: string; -} -export interface DelegatorWithdrawInfoAminoMsg { - type: "cosmos-sdk/DelegatorWithdrawInfo"; - value: DelegatorWithdrawInfoAmino; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoSDKType { - delegator_address: string; - withdraw_address: string; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstandingRewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - value: Uint8Array; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; - value: ValidatorOutstandingRewardsRecordAmino; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordSDKType { - validator_address: string; - outstanding_rewards: DecCoinSDKType[]; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated: ValidatorAccumulatedCommission; -} -export interface ValidatorAccumulatedCommissionRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated?: ValidatorAccumulatedCommissionAmino; -} -export interface ValidatorAccumulatedCommissionRecordAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; - value: ValidatorAccumulatedCommissionRecordAmino; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordSDKType { - validator_address: string; - accumulated: ValidatorAccumulatedCommissionSDKType; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** period defines the period the historical rewards apply to. */ - period: bigint; - /** rewards defines the historical rewards of a validator. */ - rewards: ValidatorHistoricalRewards; -} -export interface ValidatorHistoricalRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** period defines the period the historical rewards apply to. */ - period?: string; - /** rewards defines the historical rewards of a validator. */ - rewards?: ValidatorHistoricalRewardsAmino; -} -export interface ValidatorHistoricalRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; - value: ValidatorHistoricalRewardsRecordAmino; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordSDKType { - validator_address: string; - period: bigint; - rewards: ValidatorHistoricalRewardsSDKType; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** rewards defines the current rewards of a validator. */ - rewards: ValidatorCurrentRewards; -} -export interface ValidatorCurrentRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - value: Uint8Array; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** rewards defines the current rewards of a validator. */ - rewards?: ValidatorCurrentRewardsAmino; -} -export interface ValidatorCurrentRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; - value: ValidatorCurrentRewardsRecordAmino; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordSDKType { - validator_address: string; - rewards: ValidatorCurrentRewardsSDKType; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecord { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** starting_info defines the starting info of a delegator. */ - startingInfo: DelegatorStartingInfo; -} -export interface DelegatorStartingInfoRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - value: Uint8Array; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** validator_address is the address of the validator. */ - validator_address?: string; - /** starting_info defines the starting info of a delegator. */ - starting_info?: DelegatorStartingInfoAmino; -} -export interface DelegatorStartingInfoRecordAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfoRecord"; - value: DelegatorStartingInfoRecordAmino; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordSDKType { - delegator_address: string; - validator_address: string; - starting_info: DelegatorStartingInfoSDKType; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** height defines the block height at which the slash event occured. */ - height: bigint; - /** period is the period of the slash event. */ - period: bigint; - /** validator_slash_event describes the slash event. */ - validatorSlashEvent: ValidatorSlashEvent; -} -export interface ValidatorSlashEventRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - value: Uint8Array; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** height defines the block height at which the slash event occured. */ - height?: string; - /** period is the period of the slash event. */ - period?: string; - /** validator_slash_event describes the slash event. */ - validator_slash_event?: ValidatorSlashEventAmino; -} -export interface ValidatorSlashEventRecordAminoMsg { - type: "cosmos-sdk/ValidatorSlashEventRecord"; - value: ValidatorSlashEventRecordAmino; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordSDKType { - validator_address: string; - height: bigint; - period: bigint; - validator_slash_event: ValidatorSlashEventSDKType; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** fee_pool defines the fee pool at genesis. */ - feePool: FeePool; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[]; - /** fee_pool defines the previous proposer at genesis. */ - previousProposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstandingRewards: ValidatorOutstandingRewardsRecord[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegatorStartingInfos: DelegatorStartingInfoRecord[]; - /** fee_pool defines the validator slash events at genesis. */ - validatorSlashEvents: ValidatorSlashEventRecord[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** fee_pool defines the fee pool at genesis. */ - fee_pool?: FeePoolAmino; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; - /** fee_pool defines the previous proposer at genesis. */ - previous_proposer?: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; - /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events?: ValidatorSlashEventRecordAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - fee_pool: FeePoolSDKType; - delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; - previous_proposer: string; - outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; - validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; - validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; - delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; - validator_slash_events: ValidatorSlashEventRecordSDKType[]; -} -function createBaseDelegatorWithdrawInfo(): DelegatorWithdrawInfo { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -export const DelegatorWithdrawInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - encode(message: DelegatorWithdrawInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorWithdrawInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelegatorWithdrawInfo { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - withdrawAddress: isSet(object.withdrawAddress) ? String(object.withdrawAddress) : "" - }; - }, - toJSON(message: DelegatorWithdrawInfo): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.withdrawAddress !== undefined && (obj.withdrawAddress = message.withdrawAddress); - return obj; - }, - fromPartial(object: Partial): DelegatorWithdrawInfo { - const message = createBaseDelegatorWithdrawInfo(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo { - const message = createBaseDelegatorWithdrawInfo(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo { - return DelegatorWithdrawInfo.fromAmino(object.value); - }, - toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg { - return { - type: "cosmos-sdk/DelegatorWithdrawInfo", - value: DelegatorWithdrawInfo.toAmino(message) - }; - }, - fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo { - return DelegatorWithdrawInfo.decode(message.value); - }, - toProto(message: DelegatorWithdrawInfo): Uint8Array { - return DelegatorWithdrawInfo.encode(message).finish(); - }, - toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - value: DelegatorWithdrawInfo.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewardsRecord(): ValidatorOutstandingRewardsRecord { - return { - validatorAddress: "", - outstandingRewards: [] - }; -} -export const ValidatorOutstandingRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - encode(message: ValidatorOutstandingRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.outstandingRewards) { - DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorOutstandingRewardsRecord { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - outstandingRewards: Array.isArray(object?.outstandingRewards) ? object.outstandingRewards.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: ValidatorOutstandingRewardsRecord): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - if (message.outstandingRewards) { - obj.outstandingRewards = message.outstandingRewards.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.outstandingRewards = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorOutstandingRewardsRecord { - const message = createBaseValidatorOutstandingRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord { - const message = createBaseValidatorOutstandingRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.outstanding_rewards = message.outstandingRewards; - } - return obj; - }, - fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord { - return ValidatorOutstandingRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg { - return { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", - value: ValidatorOutstandingRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord { - return ValidatorOutstandingRewardsRecord.decode(message.value); - }, - toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array { - return ValidatorOutstandingRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - value: ValidatorOutstandingRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommissionRecord(): ValidatorAccumulatedCommissionRecord { - return { - validatorAddress: "", - accumulated: ValidatorAccumulatedCommission.fromPartial({}) - }; -} -export const ValidatorAccumulatedCommissionRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - encode(message: ValidatorAccumulatedCommissionRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.accumulated !== undefined) { - ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommissionRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorAccumulatedCommissionRecord { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - accumulated: isSet(object.accumulated) ? ValidatorAccumulatedCommission.fromJSON(object.accumulated) : undefined - }; - }, - toJSON(message: ValidatorAccumulatedCommissionRecord): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.accumulated !== undefined && (obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toJSON(message.accumulated) : undefined); - return obj; - }, - fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord { - const message = createBaseValidatorAccumulatedCommissionRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; - return message; - }, - fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord { - const message = createBaseValidatorAccumulatedCommissionRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.accumulated !== undefined && object.accumulated !== null) { - message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated); - } - return message; - }, - toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord { - return ValidatorAccumulatedCommissionRecord.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", - value: ValidatorAccumulatedCommissionRecord.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord { - return ValidatorAccumulatedCommissionRecord.decode(message.value); - }, - toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array { - return ValidatorAccumulatedCommissionRecord.encode(message).finish(); - }, - toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - value: ValidatorAccumulatedCommissionRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewardsRecord(): ValidatorHistoricalRewardsRecord { - return { - validatorAddress: "", - period: BigInt(0), - rewards: ValidatorHistoricalRewards.fromPartial({}) - }; -} -export const ValidatorHistoricalRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - encode(message: ValidatorHistoricalRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - if (message.rewards !== undefined) { - ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.period = reader.uint64(); - break; - case 3: - message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorHistoricalRewardsRecord { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - period: isSet(object.period) ? BigInt(object.period.toString()) : BigInt(0), - rewards: isSet(object.rewards) ? ValidatorHistoricalRewards.fromJSON(object.rewards) : undefined - }; - }, - toJSON(message: ValidatorHistoricalRewardsRecord): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.period !== undefined && (obj.period = (message.period || BigInt(0)).toString()); - message.rewards !== undefined && (obj.rewards = message.rewards ? ValidatorHistoricalRewards.toJSON(message.rewards) : undefined); - return obj; - }, - fromPartial(object: Partial): ValidatorHistoricalRewardsRecord { - const message = createBaseValidatorHistoricalRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord { - const message = createBaseValidatorHistoricalRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord { - return ValidatorHistoricalRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg { - return { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", - value: ValidatorHistoricalRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord { - return ValidatorHistoricalRewardsRecord.decode(message.value); - }, - toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array { - return ValidatorHistoricalRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - value: ValidatorHistoricalRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewardsRecord(): ValidatorCurrentRewardsRecord { - return { - validatorAddress: "", - rewards: ValidatorCurrentRewards.fromPartial({}) - }; -} -export const ValidatorCurrentRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - encode(message: ValidatorCurrentRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.rewards !== undefined) { - ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorCurrentRewardsRecord { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - rewards: isSet(object.rewards) ? ValidatorCurrentRewards.fromJSON(object.rewards) : undefined - }; - }, - toJSON(message: ValidatorCurrentRewardsRecord): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.rewards !== undefined && (obj.rewards = message.rewards ? ValidatorCurrentRewards.toJSON(message.rewards) : undefined); - return obj; - }, - fromPartial(object: Partial): ValidatorCurrentRewardsRecord { - const message = createBaseValidatorCurrentRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord { - const message = createBaseValidatorCurrentRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord { - return ValidatorCurrentRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg { - return { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord", - value: ValidatorCurrentRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord { - return ValidatorCurrentRewardsRecord.decode(message.value); - }, - toProto(message: ValidatorCurrentRewardsRecord): Uint8Array { - return ValidatorCurrentRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - value: ValidatorCurrentRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfoRecord(): DelegatorStartingInfoRecord { - return { - delegatorAddress: "", - validatorAddress: "", - startingInfo: DelegatorStartingInfo.fromPartial({}) - }; -} -export const DelegatorStartingInfoRecord = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - encode(message: DelegatorStartingInfoRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.startingInfo !== undefined) { - DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfoRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelegatorStartingInfoRecord { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - startingInfo: isSet(object.startingInfo) ? DelegatorStartingInfo.fromJSON(object.startingInfo) : undefined - }; - }, - toJSON(message: DelegatorStartingInfoRecord): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.startingInfo !== undefined && (obj.startingInfo = message.startingInfo ? DelegatorStartingInfo.toJSON(message.startingInfo) : undefined); - return obj; - }, - fromPartial(object: Partial): DelegatorStartingInfoRecord { - const message = createBaseDelegatorStartingInfoRecord(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; - return message; - }, - fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord { - const message = createBaseDelegatorStartingInfoRecord(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_info !== undefined && object.starting_info !== null) { - message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info); - } - return message; - }, - toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; - return obj; - }, - fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord { - return DelegatorStartingInfoRecord.fromAmino(object.value); - }, - toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg { - return { - type: "cosmos-sdk/DelegatorStartingInfoRecord", - value: DelegatorStartingInfoRecord.toAmino(message) - }; - }, - fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord { - return DelegatorStartingInfoRecord.decode(message.value); - }, - toProto(message: DelegatorStartingInfoRecord): Uint8Array { - return DelegatorStartingInfoRecord.encode(message).finish(); - }, - toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - value: DelegatorStartingInfoRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEventRecord(): ValidatorSlashEventRecord { - return { - validatorAddress: "", - height: BigInt(0), - period: BigInt(0), - validatorSlashEvent: ValidatorSlashEvent.fromPartial({}) - }; -} -export const ValidatorSlashEventRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - encode(message: ValidatorSlashEventRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).uint64(message.height); - } - if (message.period !== BigInt(0)) { - writer.uint32(24).uint64(message.period); - } - if (message.validatorSlashEvent !== undefined) { - ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEventRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.height = reader.uint64(); - break; - case 3: - message.period = reader.uint64(); - break; - case 4: - message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorSlashEventRecord { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - period: isSet(object.period) ? BigInt(object.period.toString()) : BigInt(0), - validatorSlashEvent: isSet(object.validatorSlashEvent) ? ValidatorSlashEvent.fromJSON(object.validatorSlashEvent) : undefined - }; - }, - toJSON(message: ValidatorSlashEventRecord): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.period !== undefined && (obj.period = (message.period || BigInt(0)).toString()); - message.validatorSlashEvent !== undefined && (obj.validatorSlashEvent = message.validatorSlashEvent ? ValidatorSlashEvent.toJSON(message.validatorSlashEvent) : undefined); - return obj; - }, - fromPartial(object: Partial): ValidatorSlashEventRecord { - const message = createBaseValidatorSlashEventRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; - return message; - }, - fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord { - const message = createBaseValidatorSlashEventRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { - message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event); - } - return message; - }, - toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord { - return ValidatorSlashEventRecord.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg { - return { - type: "cosmos-sdk/ValidatorSlashEventRecord", - value: ValidatorSlashEventRecord.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord { - return ValidatorSlashEventRecord.decode(message.value); - }, - toProto(message: ValidatorSlashEventRecord): Uint8Array { - return ValidatorSlashEventRecord.encode(message).finish(); - }, - toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - value: ValidatorSlashEventRecord.encode(message).finish() - }; - } -}; -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - feePool: FeePool.fromPartial({}), - delegatorWithdrawInfos: [], - previousProposer: "", - outstandingRewards: [], - validatorAccumulatedCommissions: [], - validatorHistoricalRewards: [], - validatorCurrentRewards: [], - delegatorStartingInfos: [], - validatorSlashEvents: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.feePool !== undefined) { - FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatorWithdrawInfos) { - DelegatorWithdrawInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.previousProposer !== "") { - writer.uint32(34).string(message.previousProposer); - } - for (const v of message.outstandingRewards) { - ValidatorOutstandingRewardsRecord.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.validatorAccumulatedCommissions) { - ValidatorAccumulatedCommissionRecord.encode(v!, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.validatorHistoricalRewards) { - ValidatorHistoricalRewardsRecord.encode(v!, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.validatorCurrentRewards) { - ValidatorCurrentRewardsRecord.encode(v!, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.delegatorStartingInfos) { - DelegatorStartingInfoRecord.encode(v!, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.validatorSlashEvents) { - ValidatorSlashEventRecord.encode(v!, writer.uint32(82).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.feePool = FeePool.decode(reader, reader.uint32()); - break; - case 3: - message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32())); - break; - case 4: - message.previousProposer = reader.string(); - break; - case 5: - message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); - break; - case 6: - message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); - break; - case 7: - message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); - break; - case 8: - message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); - break; - case 9: - message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32())); - break; - case 10: - message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - feePool: isSet(object.feePool) ? FeePool.fromJSON(object.feePool) : undefined, - delegatorWithdrawInfos: Array.isArray(object?.delegatorWithdrawInfos) ? object.delegatorWithdrawInfos.map((e: any) => DelegatorWithdrawInfo.fromJSON(e)) : [], - previousProposer: isSet(object.previousProposer) ? String(object.previousProposer) : "", - outstandingRewards: Array.isArray(object?.outstandingRewards) ? object.outstandingRewards.map((e: any) => ValidatorOutstandingRewardsRecord.fromJSON(e)) : [], - validatorAccumulatedCommissions: Array.isArray(object?.validatorAccumulatedCommissions) ? object.validatorAccumulatedCommissions.map((e: any) => ValidatorAccumulatedCommissionRecord.fromJSON(e)) : [], - validatorHistoricalRewards: Array.isArray(object?.validatorHistoricalRewards) ? object.validatorHistoricalRewards.map((e: any) => ValidatorHistoricalRewardsRecord.fromJSON(e)) : [], - validatorCurrentRewards: Array.isArray(object?.validatorCurrentRewards) ? object.validatorCurrentRewards.map((e: any) => ValidatorCurrentRewardsRecord.fromJSON(e)) : [], - delegatorStartingInfos: Array.isArray(object?.delegatorStartingInfos) ? object.delegatorStartingInfos.map((e: any) => DelegatorStartingInfoRecord.fromJSON(e)) : [], - validatorSlashEvents: Array.isArray(object?.validatorSlashEvents) ? object.validatorSlashEvents.map((e: any) => ValidatorSlashEventRecord.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - message.feePool !== undefined && (obj.feePool = message.feePool ? FeePool.toJSON(message.feePool) : undefined); - if (message.delegatorWithdrawInfos) { - obj.delegatorWithdrawInfos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toJSON(e) : undefined); - } else { - obj.delegatorWithdrawInfos = []; - } - message.previousProposer !== undefined && (obj.previousProposer = message.previousProposer); - if (message.outstandingRewards) { - obj.outstandingRewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toJSON(e) : undefined); - } else { - obj.outstandingRewards = []; - } - if (message.validatorAccumulatedCommissions) { - obj.validatorAccumulatedCommissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toJSON(e) : undefined); - } else { - obj.validatorAccumulatedCommissions = []; - } - if (message.validatorHistoricalRewards) { - obj.validatorHistoricalRewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toJSON(e) : undefined); - } else { - obj.validatorHistoricalRewards = []; - } - if (message.validatorCurrentRewards) { - obj.validatorCurrentRewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toJSON(e) : undefined); - } else { - obj.validatorCurrentRewards = []; - } - if (message.delegatorStartingInfos) { - obj.delegatorStartingInfos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toJSON(e) : undefined); - } else { - obj.delegatorStartingInfos = []; - } - if (message.validatorSlashEvents) { - obj.validatorSlashEvents = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toJSON(e) : undefined); - } else { - obj.validatorSlashEvents = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined; - message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || []; - message.previousProposer = object.previousProposer ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; - message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; - message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; - message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || []; - message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || []; - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.fee_pool !== undefined && object.fee_pool !== null) { - message.feePool = FeePool.fromAmino(object.fee_pool); - } - message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || []; - if (object.previous_proposer !== undefined && object.previous_proposer !== null) { - message.previousProposer = object.previous_proposer; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; - message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; - message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; - message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || []; - message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || []; - message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : undefined; - if (message.delegatorWithdrawInfos) { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined); - } else { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; - } - obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); - } else { - obj.outstanding_rewards = message.outstandingRewards; - } - if (message.validatorAccumulatedCommissions) { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); - } else { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; - } - if (message.validatorHistoricalRewards) { - obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); - } else { - obj.validator_historical_rewards = message.validatorHistoricalRewards; - } - if (message.validatorCurrentRewards) { - obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined); - } else { - obj.validator_current_rewards = message.validatorCurrentRewards; - } - if (message.delegatorStartingInfos) { - obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined); - } else { - obj.delegator_starting_infos = message.delegatorStartingInfos; - } - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined); - } else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts deleted file mode 100644 index 1d0dbb18..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - /* Params queries params of the distribution module. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/distribution/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ValidatorOutstandingRewards queries rewards of a validator address. */ - async validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; - return await this.req.get(endpoint); - } - /* ValidatorCommission queries accumulated commission for a validator. */ - async validatorCommission(params: QueryValidatorCommissionRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; - return await this.req.get(endpoint); - } - /* ValidatorSlashes queries slash events of a validator. */ - async validatorSlashes(params: QueryValidatorSlashesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.startingHeight !== "undefined") { - options.params.starting_height = params.startingHeight; - } - if (typeof params?.endingHeight !== "undefined") { - options.params.ending_height = params.endingHeight; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; - return await this.req.get(endpoint, options); - } - /* DelegationRewards queries the total rewards accrued by a delegation. */ - async delegationRewards(params: QueryDelegationRewardsRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; - return await this.req.get(endpoint); - } - /* DelegationTotalRewards queries the total rewards accrued by a each - validator. */ - async delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; - return await this.req.get(endpoint); - } - /* DelegatorValidators queries the validators of a delegator. */ - async delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; - return await this.req.get(endpoint); - } - /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ - async delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; - return await this.req.get(endpoint); - } - /* CommunityPool queries the community pool coins. */ - async communityPool(_params: QueryCommunityPoolRequest = {}): Promise { - const endpoint = `cosmos/distribution/v1beta1/community_pool`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 6ecc809c..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; -/** Query defines the gRPC querier service for distribution module. */ -export interface Query { - /** Params queries params of the distribution module. */ - params(request?: QueryParamsRequest): Promise; - /** ValidatorOutstandingRewards queries rewards of a validator address. */ - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - /** ValidatorCommission queries accumulated commission for a validator. */ - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - /** ValidatorSlashes queries slash events of a validator. */ - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - /** DelegationRewards queries the total rewards accrued by a delegation. */ - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - /** - * DelegationTotalRewards queries the total rewards accrued by a each - * validator. - */ - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - /** DelegatorValidators queries the validators of a delegator. */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - /** CommunityPool queries the community pool coins. */ - communityPool(request?: QueryCommunityPoolRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { - const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); - return promise.then(data => QueryValidatorOutstandingRewardsResponse.decode(new BinaryReader(data))); - } - validatorCommission(request: QueryValidatorCommissionRequest): Promise { - const data = QueryValidatorCommissionRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); - return promise.then(data => QueryValidatorCommissionResponse.decode(new BinaryReader(data))); - } - validatorSlashes(request: QueryValidatorSlashesRequest): Promise { - const data = QueryValidatorSlashesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); - return promise.then(data => QueryValidatorSlashesResponse.decode(new BinaryReader(data))); - } - delegationRewards(request: QueryDelegationRewardsRequest): Promise { - const data = QueryDelegationRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); - return promise.then(data => QueryDelegationRewardsResponse.decode(new BinaryReader(data))); - } - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { - const data = QueryDelegationTotalRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); - return promise.then(data => QueryDelegationTotalRewardsResponse.decode(new BinaryReader(data))); - } - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { - const data = QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); - } - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { - const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); - return promise.then(data => QueryDelegatorWithdrawAddressResponse.decode(new BinaryReader(data))); - } - communityPool(request: QueryCommunityPoolRequest = {}): Promise { - const data = QueryCommunityPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); - return promise.then(data => QueryCommunityPoolResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { - return queryService.validatorOutstandingRewards(request); - }, - validatorCommission(request: QueryValidatorCommissionRequest): Promise { - return queryService.validatorCommission(request); - }, - validatorSlashes(request: QueryValidatorSlashesRequest): Promise { - return queryService.validatorSlashes(request); - }, - delegationRewards(request: QueryDelegationRewardsRequest): Promise { - return queryService.delegationRewards(request); - }, - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { - return queryService.delegationTotalRewards(request); - }, - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { - return queryService.delegatorValidators(request); - }, - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { - return queryService.delegatorWithdrawAddress(request); - }, - communityPool(request?: QueryCommunityPoolRequest): Promise { - return queryService.communityPool(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/query.ts deleted file mode 100644 index a96aa879..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/query.ts +++ /dev/null @@ -1,2067 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorOutstandingRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorOutstandingRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; - value: QueryValidatorOutstandingRewardsRequestAmino; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponse { - rewards: ValidatorOutstandingRewards; -} -export interface QueryValidatorOutstandingRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseAmino { - rewards?: ValidatorOutstandingRewardsAmino; -} -export interface QueryValidatorOutstandingRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse"; - value: QueryValidatorOutstandingRewardsResponseAmino; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseSDKType { - rewards: ValidatorOutstandingRewardsSDKType; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorCommissionRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorCommissionRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionRequest"; - value: QueryValidatorCommissionRequestAmino; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponse { - /** commission defines the commision the validator received. */ - commission: ValidatorAccumulatedCommission; -} -export interface QueryValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseAmino { - /** commission defines the commision the validator received. */ - commission?: ValidatorAccumulatedCommissionAmino; -} -export interface QueryValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionResponse"; - value: QueryValidatorCommissionResponseAmino; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseSDKType { - commission: ValidatorAccumulatedCommissionSDKType; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; - /** starting_height defines the optional starting height to query the slashes. */ - startingHeight: bigint; - /** starting_height defines the optional ending height to query the slashes. */ - endingHeight: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorSlashesRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; - /** starting_height defines the optional starting height to query the slashes. */ - starting_height?: string; - /** starting_height defines the optional ending height to query the slashes. */ - ending_height?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorSlashesRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesRequest"; - value: QueryValidatorSlashesRequestAmino; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestSDKType { - validator_address: string; - starting_height: bigint; - ending_height: bigint; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponse { - /** slashes defines the slashes the validator received. */ - slashes: ValidatorSlashEvent[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorSlashesResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseAmino { - /** slashes defines the slashes the validator received. */ - slashes?: ValidatorSlashEventAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorSlashesResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesResponse"; - value: QueryValidatorSlashesResponseAmino; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseSDKType { - slashes: ValidatorSlashEventSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryDelegationRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryDelegationRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsRequest"; - value: QueryDelegationRewardsRequestAmino; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestSDKType { - delegator_address: string; - validator_address: string; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponse { - /** rewards defines the rewards accrued by a delegation. */ - rewards: DecCoin[]; -} -export interface QueryDelegationRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseAmino { - /** rewards defines the rewards accrued by a delegation. */ - rewards?: DecCoinAmino[]; -} -export interface QueryDelegationRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsResponse"; - value: QueryDelegationRewardsResponseAmino; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseSDKType { - rewards: DecCoinSDKType[]; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegationTotalRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegationTotalRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; - value: QueryDelegationTotalRewardsRequestAmino; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponse { - /** rewards defines all the rewards accrued by a delegator. */ - rewards: DelegationDelegatorReward[]; - /** total defines the sum of all the rewards. */ - total: DecCoin[]; -} -export interface QueryDelegationTotalRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseAmino { - /** rewards defines all the rewards accrued by a delegator. */ - rewards?: DelegationDelegatorRewardAmino[]; - /** total defines the sum of all the rewards. */ - total?: DecCoinAmino[]; -} -export interface QueryDelegationTotalRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; - value: QueryDelegationTotalRewardsResponseAmino; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseSDKType { - rewards: DelegationDelegatorRewardSDKType[]; - total: DecCoinSDKType[]; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators a delegator is delegating for. */ - validators: string[]; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators a delegator is delegating for. */ - validators?: string[]; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: string[]; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorWithdrawAddressRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorWithdrawAddressRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; - value: QueryDelegatorWithdrawAddressRequestAmino; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponse { - /** withdraw_address defines the delegator address to query for. */ - withdrawAddress: string; -} -export interface QueryDelegatorWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseAmino { - /** withdraw_address defines the delegator address to query for. */ - withdraw_address?: string; -} -export interface QueryDelegatorWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; - value: QueryDelegatorWithdrawAddressResponseAmino; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseSDKType { - withdraw_address: string; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequest {} -export interface QueryCommunityPoolRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; - value: Uint8Array; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestAmino {} -export interface QueryCommunityPoolRequestAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolRequest"; - value: QueryCommunityPoolRequestAmino; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestSDKType {} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponse { - /** pool defines community pool's coins. */ - pool: DecCoin[]; -} -export interface QueryCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; - value: Uint8Array; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseAmino { - /** pool defines community pool's coins. */ - pool?: DecCoinAmino[]; -} -export interface QueryCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolResponse"; - value: QueryCommunityPoolResponseAmino; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseSDKType { - pool: DecCoinSDKType[]; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsRequest(): QueryValidatorOutstandingRewardsRequest { - return { - validatorAddress: "" - }; -} -export const QueryValidatorOutstandingRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - encode(message: QueryValidatorOutstandingRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorOutstandingRewardsRequest { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: QueryValidatorOutstandingRewardsRequest): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest { - return QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", - value: QueryValidatorOutstandingRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest { - return QueryValidatorOutstandingRewardsRequest.decode(message.value); - }, - toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array { - return QueryValidatorOutstandingRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - value: QueryValidatorOutstandingRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsResponse(): QueryValidatorOutstandingRewardsResponse { - return { - rewards: ValidatorOutstandingRewards.fromPartial({}) - }; -} -export const QueryValidatorOutstandingRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - encode(message: QueryValidatorOutstandingRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.rewards !== undefined) { - ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorOutstandingRewardsResponse { - return { - rewards: isSet(object.rewards) ? ValidatorOutstandingRewards.fromJSON(object.rewards) : undefined - }; - }, - toJSON(message: QueryValidatorOutstandingRewardsResponse): unknown { - const obj: any = {}; - message.rewards !== undefined && (obj.rewards = message.rewards ? ValidatorOutstandingRewards.toJSON(message.rewards) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorOutstandingRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino { - const obj: any = {}; - obj.rewards = message.rewards ? ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse { - return QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", - value: QueryValidatorOutstandingRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse { - return QueryValidatorOutstandingRewardsResponse.decode(message.value); - }, - toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array { - return QueryValidatorOutstandingRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - value: QueryValidatorOutstandingRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionRequest(): QueryValidatorCommissionRequest { - return { - validatorAddress: "" - }; -} -export const QueryValidatorCommissionRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - encode(message: QueryValidatorCommissionRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorCommissionRequest { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: QueryValidatorCommissionRequest): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryValidatorCommissionRequest { - const message = createBaseQueryValidatorCommissionRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest { - const message = createBaseQueryValidatorCommissionRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest { - return QueryValidatorCommissionRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorCommissionRequest", - value: QueryValidatorCommissionRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest { - return QueryValidatorCommissionRequest.decode(message.value); - }, - toProto(message: QueryValidatorCommissionRequest): Uint8Array { - return QueryValidatorCommissionRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - value: QueryValidatorCommissionRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionResponse(): QueryValidatorCommissionResponse { - return { - commission: ValidatorAccumulatedCommission.fromPartial({}) - }; -} -export const QueryValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - encode(message: QueryValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.commission !== undefined) { - ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorCommissionResponse { - return { - commission: isSet(object.commission) ? ValidatorAccumulatedCommission.fromJSON(object.commission) : undefined - }; - }, - toJSON(message: QueryValidatorCommissionResponse): unknown { - const obj: any = {}; - message.commission !== undefined && (obj.commission = message.commission ? ValidatorAccumulatedCommission.toJSON(message.commission) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorCommissionResponse { - const message = createBaseQueryValidatorCommissionResponse(); - message.commission = object.commission !== undefined && object.commission !== null ? ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; - return message; - }, - fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse { - const message = createBaseQueryValidatorCommissionResponse(); - if (object.commission !== undefined && object.commission !== null) { - message.commission = ValidatorAccumulatedCommission.fromAmino(object.commission); - } - return message; - }, - toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino { - const obj: any = {}; - obj.commission = message.commission ? ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse { - return QueryValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorCommissionResponse", - value: QueryValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse { - return QueryValidatorCommissionResponse.decode(message.value); - }, - toProto(message: QueryValidatorCommissionResponse): Uint8Array { - return QueryValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - value: QueryValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesRequest(): QueryValidatorSlashesRequest { - return { - validatorAddress: "", - startingHeight: BigInt(0), - endingHeight: BigInt(0), - pagination: undefined - }; -} -export const QueryValidatorSlashesRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - encode(message: QueryValidatorSlashesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.startingHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.startingHeight); - } - if (message.endingHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.endingHeight); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.startingHeight = reader.uint64(); - break; - case 3: - message.endingHeight = reader.uint64(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorSlashesRequest { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - startingHeight: isSet(object.startingHeight) ? BigInt(object.startingHeight.toString()) : BigInt(0), - endingHeight: isSet(object.endingHeight) ? BigInt(object.endingHeight.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorSlashesRequest): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.startingHeight !== undefined && (obj.startingHeight = (message.startingHeight || BigInt(0)).toString()); - message.endingHeight !== undefined && (obj.endingHeight = (message.endingHeight || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorSlashesRequest { - const message = createBaseQueryValidatorSlashesRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); - message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest { - const message = createBaseQueryValidatorSlashesRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_height !== undefined && object.starting_height !== null) { - message.startingHeight = BigInt(object.starting_height); - } - if (object.ending_height !== undefined && object.ending_height !== null) { - message.endingHeight = BigInt(object.ending_height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; - obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest { - return QueryValidatorSlashesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorSlashesRequest", - value: QueryValidatorSlashesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest { - return QueryValidatorSlashesRequest.decode(message.value); - }, - toProto(message: QueryValidatorSlashesRequest): Uint8Array { - return QueryValidatorSlashesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - value: QueryValidatorSlashesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesResponse(): QueryValidatorSlashesResponse { - return { - slashes: [], - pagination: undefined - }; -} -export const QueryValidatorSlashesResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - encode(message: QueryValidatorSlashesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.slashes) { - ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorSlashesResponse { - return { - slashes: Array.isArray(object?.slashes) ? object.slashes.map((e: any) => ValidatorSlashEvent.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorSlashesResponse): unknown { - const obj: any = {}; - if (message.slashes) { - obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toJSON(e) : undefined); - } else { - obj.slashes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorSlashesResponse { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino { - const obj: any = {}; - if (message.slashes) { - obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); - } else { - obj.slashes = message.slashes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse { - return QueryValidatorSlashesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorSlashesResponse", - value: QueryValidatorSlashesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse { - return QueryValidatorSlashesResponse.decode(message.value); - }, - toProto(message: QueryValidatorSlashesResponse): Uint8Array { - return QueryValidatorSlashesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - value: QueryValidatorSlashesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsRequest(): QueryDelegationRewardsRequest { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const QueryDelegationRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - encode(message: QueryDelegationRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationRewardsRequest { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: QueryDelegationRewardsRequest): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryDelegationRewardsRequest { - const message = createBaseQueryDelegationRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest { - const message = createBaseQueryDelegationRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest { - return QueryDelegationRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationRewardsRequest", - value: QueryDelegationRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest { - return QueryDelegationRewardsRequest.decode(message.value); - }, - toProto(message: QueryDelegationRewardsRequest): Uint8Array { - return QueryDelegationRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - value: QueryDelegationRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsResponse(): QueryDelegationRewardsResponse { - return { - rewards: [] - }; -} -export const QueryDelegationRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - encode(message: QueryDelegationRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.rewards) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationRewardsResponse { - return { - rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryDelegationRewardsResponse): unknown { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.rewards = []; - } - return obj; - }, - fromPartial(object: Partial): QueryDelegationRewardsResponse { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse { - return QueryDelegationRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationRewardsResponse", - value: QueryDelegationRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse { - return QueryDelegationRewardsResponse.decode(message.value); - }, - toProto(message: QueryDelegationRewardsResponse): Uint8Array { - return QueryDelegationRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - value: QueryDelegationRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsRequest(): QueryDelegationTotalRewardsRequest { - return { - delegatorAddress: "" - }; -} -export const QueryDelegationTotalRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - encode(message: QueryDelegationTotalRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationTotalRewardsRequest { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" - }; - }, - toJSON(message: QueryDelegationTotalRewardsRequest): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryDelegationTotalRewardsRequest { - const message = createBaseQueryDelegationTotalRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest { - const message = createBaseQueryDelegationTotalRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest { - return QueryDelegationTotalRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", - value: QueryDelegationTotalRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest { - return QueryDelegationTotalRewardsRequest.decode(message.value); - }, - toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array { - return QueryDelegationTotalRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - value: QueryDelegationTotalRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsResponse(): QueryDelegationTotalRewardsResponse { - return { - rewards: [], - total: [] - }; -} -export const QueryDelegationTotalRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - encode(message: QueryDelegationTotalRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.rewards) { - DelegationDelegatorReward.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.total) { - DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32())); - break; - case 2: - message.total.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationTotalRewardsResponse { - return { - rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DelegationDelegatorReward.fromJSON(e)) : [], - total: Array.isArray(object?.total) ? object.total.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryDelegationTotalRewardsResponse): unknown { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toJSON(e) : undefined); - } else { - obj.rewards = []; - } - if (message.total) { - obj.total = message.total.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.total = []; - } - return obj; - }, - fromPartial(object: Partial): QueryDelegationTotalRewardsResponse { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || []; - message.total = object.total?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromAmino(e)) || []; - message.total = object.total?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino { - const obj: any = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined); - } else { - obj.rewards = message.rewards; - } - if (message.total) { - obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse { - return QueryDelegationTotalRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", - value: QueryDelegationTotalRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse { - return QueryDelegationTotalRewardsResponse.decode(message.value); - }, - toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array { - return QueryDelegationTotalRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - value: QueryDelegationTotalRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest { - return { - delegatorAddress: "" - }; -} -export const QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorsRequest { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" - }; - }, - toJSON(message: QueryDelegatorValidatorsRequest): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorsRequest { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest { - return QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest { - return QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array { - return QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse { - return { - validators: [] - }; -} -export const QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validators) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorsResponse { - return { - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: QueryDelegatorValidatorsResponse): unknown { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e); - } else { - obj.validators = []; - } - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorsResponse { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e); - } else { - obj.validators = message.validators; - } - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse { - return QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse { - return QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array { - return QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressRequest(): QueryDelegatorWithdrawAddressRequest { - return { - delegatorAddress: "" - }; -} -export const QueryDelegatorWithdrawAddressRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - encode(message: QueryDelegatorWithdrawAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorWithdrawAddressRequest { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" - }; - }, - toJSON(message: QueryDelegatorWithdrawAddressRequest): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest { - return QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", - value: QueryDelegatorWithdrawAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest { - return QueryDelegatorWithdrawAddressRequest.decode(message.value); - }, - toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array { - return QueryDelegatorWithdrawAddressRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - value: QueryDelegatorWithdrawAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressResponse(): QueryDelegatorWithdrawAddressResponse { - return { - withdrawAddress: "" - }; -} -export const QueryDelegatorWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - encode(message: QueryDelegatorWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.withdrawAddress !== "") { - writer.uint32(10).string(message.withdrawAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorWithdrawAddressResponse { - return { - withdrawAddress: isSet(object.withdrawAddress) ? String(object.withdrawAddress) : "" - }; - }, - toJSON(message: QueryDelegatorWithdrawAddressResponse): unknown { - const obj: any = {}; - message.withdrawAddress !== undefined && (obj.withdrawAddress = message.withdrawAddress); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino { - const obj: any = {}; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse { - return QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", - value: QueryDelegatorWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse { - return QueryDelegatorWithdrawAddressResponse.decode(message.value); - }, - toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array { - return QueryDelegatorWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - value: QueryDelegatorWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolRequest(): QueryCommunityPoolRequest { - return {}; -} -export const QueryCommunityPoolRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - encode(_: QueryCommunityPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryCommunityPoolRequest { - return {}; - }, - toJSON(_: QueryCommunityPoolRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryCommunityPoolRequest { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest { - return QueryCommunityPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg { - return { - type: "cosmos-sdk/QueryCommunityPoolRequest", - value: QueryCommunityPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest { - return QueryCommunityPoolRequest.decode(message.value); - }, - toProto(message: QueryCommunityPoolRequest): Uint8Array { - return QueryCommunityPoolRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - value: QueryCommunityPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolResponse(): QueryCommunityPoolResponse { - return { - pool: [] - }; -} -export const QueryCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - encode(message: QueryCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.pool) { - DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCommunityPoolResponse { - return { - pool: Array.isArray(object?.pool) ? object.pool.map((e: any) => DecCoin.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryCommunityPoolResponse): unknown { - const obj: any = {}; - if (message.pool) { - obj.pool = message.pool.map(e => e ? DecCoin.toJSON(e) : undefined); - } else { - obj.pool = []; - } - return obj; - }, - fromPartial(object: Partial): QueryCommunityPoolResponse { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino { - const obj: any = {}; - if (message.pool) { - obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined); - } else { - obj.pool = message.pool; - } - return obj; - }, - fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse { - return QueryCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg { - return { - type: "cosmos-sdk/QueryCommunityPoolResponse", - value: QueryCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse { - return QueryCommunityPoolResponse.decode(message.value); - }, - toProto(message: QueryCommunityPoolResponse): Uint8Array { - return QueryCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - value: QueryCommunityPoolResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts deleted file mode 100644 index 5b1270cb..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export const AminoConverter = { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", - toAmino: MsgSetWithdrawAddress.toAmino, - fromAmino: MsgSetWithdrawAddress.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", - toAmino: MsgWithdrawDelegatorReward.toAmino, - fromAmino: MsgWithdrawDelegatorReward.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", - toAmino: MsgWithdrawValidatorCommission.toAmino, - fromAmino: MsgWithdrawValidatorCommission.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: "cosmos-sdk/MsgFundCommunityPool", - toAmino: MsgFundCommunityPool.toAmino, - fromAmino: MsgFundCommunityPool.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts deleted file mode 100644 index 2ceda653..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - setWithdrawAddress(value: MsgSetWithdrawAddress) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.encode(value).finish() - }; - }, - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.encode(value).finish() - }; - }, - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.encode(value).finish() - }; - }, - fundCommunityPool(value: MsgFundCommunityPool) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.encode(value).finish() - }; - } - }, - withTypeUrl: { - setWithdrawAddress(value: MsgSetWithdrawAddress) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value - }; - }, - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value - }; - }, - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value - }; - }, - fundCommunityPool(value: MsgFundCommunityPool) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value - }; - } - }, - toJSON: { - setWithdrawAddress(value: MsgSetWithdrawAddress) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.toJSON(value) - }; - }, - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.toJSON(value) - }; - }, - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.toJSON(value) - }; - }, - fundCommunityPool(value: MsgFundCommunityPool) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.toJSON(value) - }; - } - }, - fromJSON: { - setWithdrawAddress(value: any) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.fromJSON(value) - }; - }, - withdrawDelegatorReward(value: any) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.fromJSON(value) - }; - }, - withdrawValidatorCommission(value: any) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.fromJSON(value) - }; - }, - fundCommunityPool(value: any) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.fromJSON(value) - }; - } - }, - fromPartial: { - setWithdrawAddress(value: MsgSetWithdrawAddress) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.fromPartial(value) - }; - }, - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.fromPartial(value) - }; - }, - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.fromPartial(value) - }; - }, - fundCommunityPool(value: MsgFundCommunityPool) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index c66ec3e0..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; -/** Msg defines the distribution Msg service. */ -export interface Msg { - /** - * SetWithdrawAddress defines a method to change the withdraw address - * for a delegator (or validator self-delegation). - */ - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; - /** - * WithdrawDelegatorReward defines a method to withdraw rewards of delegator - * from a single validator. - */ - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; - /** - * WithdrawValidatorCommission defines a method to withdraw the - * full commission to the validator address. - */ - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; - /** - * FundCommunityPool defines a method to allow an account to directly - * fund the community pool. - */ - fundCommunityPool(request: MsgFundCommunityPool): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.setWithdrawAddress = this.setWithdrawAddress.bind(this); - this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); - this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); - this.fundCommunityPool = this.fundCommunityPool.bind(this); - } - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise { - const data = MsgSetWithdrawAddress.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); - return promise.then(data => MsgSetWithdrawAddressResponse.decode(new BinaryReader(data))); - } - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise { - const data = MsgWithdrawDelegatorReward.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); - return promise.then(data => MsgWithdrawDelegatorRewardResponse.decode(new BinaryReader(data))); - } - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise { - const data = MsgWithdrawValidatorCommission.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); - return promise.then(data => MsgWithdrawValidatorCommissionResponse.decode(new BinaryReader(data))); - } - fundCommunityPool(request: MsgFundCommunityPool): Promise { - const data = MsgFundCommunityPool.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); - return promise.then(data => MsgFundCommunityPoolResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.ts deleted file mode 100644 index fd13bc11..00000000 --- a/packages/api/src/codegen/cosmos/distribution/v1beta1/tx.ts +++ /dev/null @@ -1,860 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddress { - delegatorAddress: string; - withdrawAddress: string; -} -export interface MsgSetWithdrawAddressProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - value: Uint8Array; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressAmino { - delegator_address?: string; - withdraw_address?: string; -} -export interface MsgSetWithdrawAddressAminoMsg { - type: "cosmos-sdk/MsgModifyWithdrawAddress"; - value: MsgSetWithdrawAddressAmino; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressSDKType { - delegator_address: string; - withdraw_address: string; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponse {} -export interface MsgSetWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - value: Uint8Array; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseAmino {} -export interface MsgSetWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; - value: MsgSetWithdrawAddressResponseAmino; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseSDKType {} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorReward { - delegatorAddress: string; - validatorAddress: string; -} -export interface MsgWithdrawDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - value: Uint8Array; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardAmino { - delegator_address?: string; - validator_address?: string; -} -export interface MsgWithdrawDelegatorRewardAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegationReward"; - value: MsgWithdrawDelegatorRewardAmino; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardSDKType { - delegator_address: string; - validator_address: string; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawDelegatorRewardResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - value: Uint8Array; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawDelegatorRewardResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; - value: MsgWithdrawDelegatorRewardResponseAmino; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommission { - validatorAddress: string; -} -export interface MsgWithdrawValidatorCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - value: Uint8Array; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionAmino { - validator_address?: string; -} -export interface MsgWithdrawValidatorCommissionAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommission"; - value: MsgWithdrawValidatorCommissionAmino; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionSDKType { - validator_address: string; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - value: Uint8Array; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; - value: MsgWithdrawValidatorCommissionResponseAmino; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPool { - amount: Coin[]; - depositor: string; -} -export interface MsgFundCommunityPoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; - value: Uint8Array; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolAmino { - amount?: CoinAmino[]; - depositor?: string; -} -export interface MsgFundCommunityPoolAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPool"; - value: MsgFundCommunityPoolAmino; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolSDKType { - amount: CoinSDKType[]; - depositor: string; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponse {} -export interface MsgFundCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - value: Uint8Array; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseAmino {} -export interface MsgFundCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPoolResponse"; - value: MsgFundCommunityPoolResponseAmino; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseSDKType {} -function createBaseMsgSetWithdrawAddress(): MsgSetWithdrawAddress { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -export const MsgSetWithdrawAddress = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - encode(message: MsgSetWithdrawAddress, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSetWithdrawAddress { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - withdrawAddress: isSet(object.withdrawAddress) ? String(object.withdrawAddress) : "" - }; - }, - toJSON(message: MsgSetWithdrawAddress): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.withdrawAddress !== undefined && (obj.withdrawAddress = message.withdrawAddress); - return obj; - }, - fromPartial(object: Partial): MsgSetWithdrawAddress { - const message = createBaseMsgSetWithdrawAddress(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress { - const message = createBaseMsgSetWithdrawAddress(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress { - return MsgSetWithdrawAddress.fromAmino(object.value); - }, - toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg { - return { - type: "cosmos-sdk/MsgModifyWithdrawAddress", - value: MsgSetWithdrawAddress.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress { - return MsgSetWithdrawAddress.decode(message.value); - }, - toProto(message: MsgSetWithdrawAddress): Uint8Array { - return MsgSetWithdrawAddress.encode(message).finish(); - }, - toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.encode(message).finish() - }; - } -}; -function createBaseMsgSetWithdrawAddressResponse(): MsgSetWithdrawAddressResponse { - return {}; -} -export const MsgSetWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - encode(_: MsgSetWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSetWithdrawAddressResponse { - return {}; - }, - toJSON(_: MsgSetWithdrawAddressResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSetWithdrawAddressResponse { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse { - return MsgSetWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse", - value: MsgSetWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse { - return MsgSetWithdrawAddressResponse.decode(message.value); - }, - toProto(message: MsgSetWithdrawAddressResponse): Uint8Array { - return MsgSetWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - value: MsgSetWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorReward(): MsgWithdrawDelegatorReward { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const MsgWithdrawDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - encode(message: MsgWithdrawDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgWithdrawDelegatorReward { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: MsgWithdrawDelegatorReward): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): MsgWithdrawDelegatorReward { - const message = createBaseMsgWithdrawDelegatorReward(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward { - const message = createBaseMsgWithdrawDelegatorReward(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward { - return MsgWithdrawDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg { - return { - type: "cosmos-sdk/MsgWithdrawDelegationReward", - value: MsgWithdrawDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward { - return MsgWithdrawDelegatorReward.decode(message.value); - }, - toProto(message: MsgWithdrawDelegatorReward): Uint8Array { - return MsgWithdrawDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorRewardResponse(): MsgWithdrawDelegatorRewardResponse { - return { - amount: [] - }; -} -export const MsgWithdrawDelegatorRewardResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - encode(message: MsgWithdrawDelegatorRewardResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgWithdrawDelegatorRewardResponse { - return { - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgWithdrawDelegatorRewardResponse): unknown { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse { - return MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg { - return { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", - value: MsgWithdrawDelegatorRewardResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse { - return MsgWithdrawDelegatorRewardResponse.decode(message.value); - }, - toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array { - return MsgWithdrawDelegatorRewardResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - value: MsgWithdrawDelegatorRewardResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommission(): MsgWithdrawValidatorCommission { - return { - validatorAddress: "" - }; -} -export const MsgWithdrawValidatorCommission = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - encode(message: MsgWithdrawValidatorCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgWithdrawValidatorCommission { - return { - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: MsgWithdrawValidatorCommission): unknown { - const obj: any = {}; - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): MsgWithdrawValidatorCommission { - const message = createBaseMsgWithdrawValidatorCommission(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission { - const message = createBaseMsgWithdrawValidatorCommission(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino { - const obj: any = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission { - return MsgWithdrawValidatorCommission.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission { - return MsgWithdrawValidatorCommission.decode(message.value); - }, - toProto(message: MsgWithdrawValidatorCommission): Uint8Array { - return MsgWithdrawValidatorCommission.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommissionResponse(): MsgWithdrawValidatorCommissionResponse { - return { - amount: [] - }; -} -export const MsgWithdrawValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - encode(message: MsgWithdrawValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgWithdrawValidatorCommissionResponse { - return { - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgWithdrawValidatorCommissionResponse): unknown { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse { - return MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", - value: MsgWithdrawValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse { - return MsgWithdrawValidatorCommissionResponse.decode(message.value); - }, - toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array { - return MsgWithdrawValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - value: MsgWithdrawValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPool(): MsgFundCommunityPool { - return { - amount: [], - depositor: "" - }; -} -export const MsgFundCommunityPool = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - encode(message: MsgFundCommunityPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgFundCommunityPool { - return { - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], - depositor: isSet(object.depositor) ? String(object.depositor) : "" - }; - }, - toJSON(message: MsgFundCommunityPool): unknown { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - message.depositor !== undefined && (obj.depositor = message.depositor); - return obj; - }, - fromPartial(object: Partial): MsgFundCommunityPool { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool { - return MsgFundCommunityPool.fromAmino(object.value); - }, - toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg { - return { - type: "cosmos-sdk/MsgFundCommunityPool", - value: MsgFundCommunityPool.toAmino(message) - }; - }, - fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool { - return MsgFundCommunityPool.decode(message.value); - }, - toProto(message: MsgFundCommunityPool): Uint8Array { - return MsgFundCommunityPool.encode(message).finish(); - }, - toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPoolResponse(): MsgFundCommunityPoolResponse { - return {}; -} -export const MsgFundCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - encode(_: MsgFundCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgFundCommunityPoolResponse { - return {}; - }, - toJSON(_: MsgFundCommunityPoolResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgFundCommunityPoolResponse { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse { - return MsgFundCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg { - return { - type: "cosmos-sdk/MsgFundCommunityPoolResponse", - value: MsgFundCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse { - return MsgFundCommunityPoolResponse.decode(message.value); - }, - toProto(message: MsgFundCommunityPoolResponse): Uint8Array { - return MsgFundCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - value: MsgFundCommunityPoolResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/evidence.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/evidence.ts deleted file mode 100644 index 43d1430a..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/evidence.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: bigint; - time: Timestamp; - power: bigint; - consensusAddress: string; -} -export interface EquivocationProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation"; - value: Uint8Array; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationAmino { - height?: string; - time?: string; - power?: string; - consensus_address?: string; -} -export interface EquivocationAminoMsg { - type: "cosmos-sdk/Equivocation"; - value: EquivocationAmino; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: bigint; - time: TimestampSDKType; - power: bigint; - consensus_address: string; -} -function createBaseEquivocation(): Equivocation { - return { - height: BigInt(0), - time: Timestamp.fromPartial({}), - power: BigInt(0), - consensusAddress: "" - }; -} -export const Equivocation = { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation", - encode(message: Equivocation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(18).fork()).ldelim(); - } - if (message.power !== BigInt(0)) { - writer.uint32(24).int64(message.power); - } - if (message.consensusAddress !== "") { - writer.uint32(34).string(message.consensusAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Equivocation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquivocation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.power = reader.int64(); - break; - case 4: - message.consensusAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Equivocation { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0), - consensusAddress: isSet(object.consensusAddress) ? String(object.consensusAddress) : "" - }; - }, - toJSON(message: Equivocation): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.power !== undefined && (obj.power = (message.power || BigInt(0)).toString()); - message.consensusAddress !== undefined && (obj.consensusAddress = message.consensusAddress); - return obj; - }, - fromPartial(object: Partial): Equivocation { - const message = createBaseEquivocation(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - message.consensusAddress = object.consensusAddress ?? ""; - return message; - }, - fromAmino(object: EquivocationAmino): Equivocation { - const message = createBaseEquivocation(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - if (object.consensus_address !== undefined && object.consensus_address !== null) { - message.consensusAddress = object.consensus_address; - } - return message; - }, - toAmino(message: Equivocation): EquivocationAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - obj.consensus_address = message.consensusAddress === "" ? undefined : message.consensusAddress; - return obj; - }, - fromAminoMsg(object: EquivocationAminoMsg): Equivocation { - return Equivocation.fromAmino(object.value); - }, - toAminoMsg(message: Equivocation): EquivocationAminoMsg { - return { - type: "cosmos-sdk/Equivocation", - value: Equivocation.toAmino(message) - }; - }, - fromProtoMsg(message: EquivocationProtoMsg): Equivocation { - return Equivocation.decode(message.value); - }, - toProto(message: Equivocation): Uint8Array { - return Equivocation.encode(message).finish(); - }, - toProtoMsg(message: Equivocation): EquivocationProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation", - value: Equivocation.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/genesis.ts deleted file mode 100644 index 6d3c37a3..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/genesis.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateAmino { - /** evidence defines all the evidence at genesis. */ - evidence?: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - evidence: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.evidence) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - evidence: Array.isArray(object?.evidence) ? object.evidence.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.evidence = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.evidence = object.evidence?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.evidence = object.evidence?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.evidence = message.evidence; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts deleted file mode 100644 index 5696b227..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.evidence = this.evidence.bind(this); - this.allEvidence = this.allEvidence.bind(this); - } - /* Evidence queries evidence based on evidence hash. */ - async evidence(params: QueryEvidenceRequest): Promise { - const endpoint = `cosmos/evidence/v1beta1/evidence/${params.evidenceHash}`; - return await this.req.get(endpoint); - } - /* AllEvidence queries all evidence. */ - async allEvidence(params: QueryAllEvidenceRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/evidence/v1beta1/evidence`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 8a7959af..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryEvidenceRequest, QueryEvidenceResponse, QueryAllEvidenceRequest, QueryAllEvidenceResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Evidence queries evidence based on evidence hash. */ - evidence(request: QueryEvidenceRequest): Promise; - /** AllEvidence queries all evidence. */ - allEvidence(request?: QueryAllEvidenceRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.evidence = this.evidence.bind(this); - this.allEvidence = this.allEvidence.bind(this); - } - evidence(request: QueryEvidenceRequest): Promise { - const data = QueryEvidenceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.evidence.v1beta1.Query", "Evidence", data); - return promise.then(data => QueryEvidenceResponse.decode(new BinaryReader(data))); - } - allEvidence(request: QueryAllEvidenceRequest = { - pagination: undefined - }): Promise { - const data = QueryAllEvidenceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.evidence.v1beta1.Query", "AllEvidence", data); - return promise.then(data => QueryAllEvidenceResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - evidence(request: QueryEvidenceRequest): Promise { - return queryService.evidence(request); - }, - allEvidence(request?: QueryAllEvidenceRequest): Promise { - return queryService.allEvidence(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/query.ts deleted file mode 100644 index fec28cc6..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/query.ts +++ /dev/null @@ -1,451 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequest { - /** evidence_hash defines the hash of the requested evidence. */ - evidenceHash: Uint8Array; -} -export interface QueryEvidenceRequestProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest"; - value: Uint8Array; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestAmino { - /** evidence_hash defines the hash of the requested evidence. */ - evidence_hash?: string; -} -export interface QueryEvidenceRequestAminoMsg { - type: "cosmos-sdk/QueryEvidenceRequest"; - value: QueryEvidenceRequestAmino; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestSDKType { - evidence_hash: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponse { - /** evidence returns the requested evidence. */ - evidence?: Any; -} -export interface QueryEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse"; - value: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseAmino { - /** evidence returns the requested evidence. */ - evidence?: AnyAmino; -} -export interface QueryEvidenceResponseAminoMsg { - type: "cosmos-sdk/QueryEvidenceResponse"; - value: QueryEvidenceResponseAmino; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseSDKType { - evidence?: AnySDKType; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllEvidenceRequestProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest"; - value: Uint8Array; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllEvidenceRequestAminoMsg { - type: "cosmos-sdk/QueryAllEvidenceRequest"; - value: QueryAllEvidenceRequestAmino; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponse { - /** evidence returns all evidences. */ - evidence: Any[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse"; - value: Uint8Array; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseAmino { - /** evidence returns all evidences. */ - evidence?: AnyAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllEvidenceResponseAminoMsg { - type: "cosmos-sdk/QueryAllEvidenceResponse"; - value: QueryAllEvidenceResponseAmino; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseSDKType { - evidence: AnySDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryEvidenceRequest(): QueryEvidenceRequest { - return { - evidenceHash: new Uint8Array() - }; -} -export const QueryEvidenceRequest = { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", - encode(message: QueryEvidenceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.evidenceHash.length !== 0) { - writer.uint32(10).bytes(message.evidenceHash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEvidenceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidenceHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryEvidenceRequest { - return { - evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array() - }; - }, - toJSON(message: QueryEvidenceRequest): unknown { - const obj: any = {}; - message.evidenceHash !== undefined && (obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): QueryEvidenceRequest { - const message = createBaseQueryEvidenceRequest(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - return message; - }, - fromAmino(object: QueryEvidenceRequestAmino): QueryEvidenceRequest { - const message = createBaseQueryEvidenceRequest(); - if (object.evidence_hash !== undefined && object.evidence_hash !== null) { - message.evidenceHash = bytesFromBase64(object.evidence_hash); - } - return message; - }, - toAmino(message: QueryEvidenceRequest): QueryEvidenceRequestAmino { - const obj: any = {}; - obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; - return obj; - }, - fromAminoMsg(object: QueryEvidenceRequestAminoMsg): QueryEvidenceRequest { - return QueryEvidenceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryEvidenceRequest): QueryEvidenceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryEvidenceRequest", - value: QueryEvidenceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryEvidenceRequestProtoMsg): QueryEvidenceRequest { - return QueryEvidenceRequest.decode(message.value); - }, - toProto(message: QueryEvidenceRequest): Uint8Array { - return QueryEvidenceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryEvidenceRequest): QueryEvidenceRequestProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", - value: QueryEvidenceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryEvidenceResponse(): QueryEvidenceResponse { - return { - evidence: undefined - }; -} -export const QueryEvidenceResponse = { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", - encode(message: QueryEvidenceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.evidence !== undefined) { - Any.encode(message.evidence, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryEvidenceResponse { - return { - evidence: isSet(object.evidence) ? Any.fromJSON(object.evidence) : undefined - }; - }, - toJSON(message: QueryEvidenceResponse): unknown { - const obj: any = {}; - message.evidence !== undefined && (obj.evidence = message.evidence ? Any.toJSON(message.evidence) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryEvidenceResponse { - const message = createBaseQueryEvidenceResponse(); - message.evidence = object.evidence !== undefined && object.evidence !== null ? Any.fromPartial(object.evidence) : undefined; - return message; - }, - fromAmino(object: QueryEvidenceResponseAmino): QueryEvidenceResponse { - const message = createBaseQueryEvidenceResponse(); - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = Any.fromAmino(object.evidence); - } - return message; - }, - toAmino(message: QueryEvidenceResponse): QueryEvidenceResponseAmino { - const obj: any = {}; - obj.evidence = message.evidence ? Any.toAmino(message.evidence) : undefined; - return obj; - }, - fromAminoMsg(object: QueryEvidenceResponseAminoMsg): QueryEvidenceResponse { - return QueryEvidenceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryEvidenceResponse): QueryEvidenceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryEvidenceResponse", - value: QueryEvidenceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryEvidenceResponseProtoMsg): QueryEvidenceResponse { - return QueryEvidenceResponse.decode(message.value); - }, - toProto(message: QueryEvidenceResponse): Uint8Array { - return QueryEvidenceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryEvidenceResponse): QueryEvidenceResponseProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", - value: QueryEvidenceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllEvidenceRequest(): QueryAllEvidenceRequest { - return { - pagination: undefined - }; -} -export const QueryAllEvidenceRequest = { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", - encode(message: QueryAllEvidenceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllEvidenceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllEvidenceRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllEvidenceRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllEvidenceRequest { - const message = createBaseQueryAllEvidenceRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllEvidenceRequestAmino): QueryAllEvidenceRequest { - const message = createBaseQueryAllEvidenceRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllEvidenceRequestAminoMsg): QueryAllEvidenceRequest { - return QueryAllEvidenceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAllEvidenceRequest", - value: QueryAllEvidenceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllEvidenceRequestProtoMsg): QueryAllEvidenceRequest { - return QueryAllEvidenceRequest.decode(message.value); - }, - toProto(message: QueryAllEvidenceRequest): Uint8Array { - return QueryAllEvidenceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", - value: QueryAllEvidenceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllEvidenceResponse(): QueryAllEvidenceResponse { - return { - evidence: [], - pagination: undefined - }; -} -export const QueryAllEvidenceResponse = { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", - encode(message: QueryAllEvidenceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.evidence) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllEvidenceResponse { - return { - evidence: Array.isArray(object?.evidence) ? object.evidence.map((e: any) => Any.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllEvidenceResponse): unknown { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.evidence = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllEvidenceResponse { - const message = createBaseQueryAllEvidenceResponse(); - message.evidence = object.evidence?.map(e => Any.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllEvidenceResponseAmino): QueryAllEvidenceResponse { - const message = createBaseQueryAllEvidenceResponse(); - message.evidence = object.evidence?.map(e => Any.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseAmino { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.evidence = message.evidence; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllEvidenceResponseAminoMsg): QueryAllEvidenceResponse { - return QueryAllEvidenceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAllEvidenceResponse", - value: QueryAllEvidenceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllEvidenceResponseProtoMsg): QueryAllEvidenceResponse { - return QueryAllEvidenceResponse.decode(message.value); - }, - toProto(message: QueryAllEvidenceResponse): Uint8Array { - return QueryAllEvidenceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", - value: QueryAllEvidenceResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts deleted file mode 100644 index a9da4176..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgSubmitEvidence } from "./tx"; -export const AminoConverter = { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: "cosmos-sdk/MsgSubmitEvidence", - toAmino: MsgSubmitEvidence.toAmino, - fromAmino: MsgSubmitEvidence.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts deleted file mode 100644 index 8f0a633d..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitEvidence } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value - }; - } - }, - toJSON: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.toJSON(value) - }; - } - }, - fromJSON: { - submitEvidence(value: any) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.fromJSON(value) - }; - } - }, - fromPartial: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 50e7473e..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSubmitEvidence, MsgSubmitEvidenceResponse } from "./tx"; -/** Msg defines the evidence Msg service. */ -export interface Msg { - /** - * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or - * counterfactual signing. - */ - submitEvidence(request: MsgSubmitEvidence): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.submitEvidence = this.submitEvidence.bind(this); - } - submitEvidence(request: MsgSubmitEvidence): Promise { - const data = MsgSubmitEvidence.encode(request).finish(); - const promise = this.rpc.request("cosmos.evidence.v1beta1.Msg", "SubmitEvidence", data); - return promise.then(data => MsgSubmitEvidenceResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts deleted file mode 100644 index 47085798..00000000 --- a/packages/api/src/codegen/cosmos/evidence/v1beta1/tx.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence?: Any | undefined; -} -export interface MsgSubmitEvidenceProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; - value: Uint8Array; -} -export type MsgSubmitEvidenceEncoded = Omit & { - evidence?: AnyProtoMsg | undefined; -}; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceAmino { - submitter?: string; - evidence?: AnyAmino; -} -export interface MsgSubmitEvidenceAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: MsgSubmitEvidenceAmino; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence?: AnySDKType | undefined; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; - value: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseAmino { - /** hash defines the hash of the evidence. */ - hash?: string; -} -export interface MsgSubmitEvidenceResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidenceResponse"; - value: MsgSubmitEvidenceResponseAmino; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} -function createBaseMsgSubmitEvidence(): MsgSubmitEvidence { - return { - submitter: "", - evidence: undefined - }; -} -export const MsgSubmitEvidence = { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - encode(message: MsgSubmitEvidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.submitter !== "") { - writer.uint32(10).string(message.submitter); - } - if (message.evidence !== undefined) { - Any.encode((message.evidence as Any), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.submitter = reader.string(); - break; - case 2: - message.evidence = (Evidence_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitEvidence { - return { - submitter: isSet(object.submitter) ? String(object.submitter) : "", - evidence: isSet(object.evidence) ? Any.fromJSON(object.evidence) : undefined - }; - }, - toJSON(message: MsgSubmitEvidence): unknown { - const obj: any = {}; - message.submitter !== undefined && (obj.submitter = message.submitter); - message.evidence !== undefined && (obj.evidence = message.evidence ? Any.toJSON(message.evidence) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgSubmitEvidence { - const message = createBaseMsgSubmitEvidence(); - message.submitter = object.submitter ?? ""; - message.evidence = object.evidence !== undefined && object.evidence !== null ? Any.fromPartial(object.evidence) : undefined; - return message; - }, - fromAmino(object: MsgSubmitEvidenceAmino): MsgSubmitEvidence { - const message = createBaseMsgSubmitEvidence(); - if (object.submitter !== undefined && object.submitter !== null) { - message.submitter = object.submitter; - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = Evidence_FromAmino(object.evidence); - } - return message; - }, - toAmino(message: MsgSubmitEvidence): MsgSubmitEvidenceAmino { - const obj: any = {}; - obj.submitter = message.submitter === "" ? undefined : message.submitter; - obj.evidence = message.evidence ? Evidence_ToAmino((message.evidence as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: MsgSubmitEvidenceAminoMsg): MsgSubmitEvidence { - return MsgSubmitEvidence.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitEvidence): MsgSubmitEvidenceAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitEvidence", - value: MsgSubmitEvidence.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitEvidenceProtoMsg): MsgSubmitEvidence { - return MsgSubmitEvidence.decode(message.value); - }, - toProto(message: MsgSubmitEvidence): Uint8Array { - return MsgSubmitEvidence.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitEvidence): MsgSubmitEvidenceProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitEvidenceResponse(): MsgSubmitEvidenceResponse { - return { - hash: new Uint8Array() - }; -} -export const MsgSubmitEvidenceResponse = { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", - encode(message: MsgSubmitEvidenceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidenceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitEvidenceResponse { - return { - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array() - }; - }, - toJSON(message: MsgSubmitEvidenceResponse): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): MsgSubmitEvidenceResponse { - const message = createBaseMsgSubmitEvidenceResponse(); - message.hash = object.hash ?? new Uint8Array(); - return message; - }, - fromAmino(object: MsgSubmitEvidenceResponseAmino): MsgSubmitEvidenceResponse { - const message = createBaseMsgSubmitEvidenceResponse(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - return message; - }, - toAmino(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseAmino { - const obj: any = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - return obj; - }, - fromAminoMsg(object: MsgSubmitEvidenceResponseAminoMsg): MsgSubmitEvidenceResponse { - return MsgSubmitEvidenceResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitEvidenceResponse", - value: MsgSubmitEvidenceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitEvidenceResponseProtoMsg): MsgSubmitEvidenceResponse { - return MsgSubmitEvidenceResponse.decode(message.value); - }, - toProto(message: MsgSubmitEvidenceResponse): Uint8Array { - return MsgSubmitEvidenceResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseProtoMsg { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", - value: MsgSubmitEvidenceResponse.encode(message).finish() - }; - } -}; -export const Evidence_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Evidence_FromAmino = (content: AnyAmino): Any => { - return Any.fromAmino(content); -}; -export const Evidence_ToAmino = (content: Any) => { - return Any.toAmino(content); -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts deleted file mode 100644 index e75e3ef6..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +++ /dev/null @@ -1,703 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: Timestamp; -} -export interface BasicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; - value: Uint8Array; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceAmino { - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spend_limit?: CoinAmino[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: string; -} -export interface BasicAllowanceAminoMsg { - type: "cosmos-sdk/BasicAllowance"; - value: BasicAllowanceAmino; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - spend_limit: CoinSDKType[]; - expiration?: TimestampSDKType; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Timestamp; -} -export interface PeriodicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - value: Uint8Array; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceAmino { - /** basic specifies a struct of `BasicAllowance` */ - basic?: BasicAllowanceAmino; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period?: DurationAmino; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - period_spend_limit?: CoinAmino[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend?: CoinAmino[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - period_reset?: string; -} -export interface PeriodicAllowanceAminoMsg { - type: "cosmos-sdk/PeriodicAllowance"; - value: PeriodicAllowanceAmino; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: TimestampSDKType; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -export interface AllowedMsgAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - value: Uint8Array; -} -export type AllowedMsgAllowanceEncoded = Omit & { - /** allowance can be any of basic and periodic fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceAmino { - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: AnyAmino; - /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages?: string[]; -} -export interface AllowedMsgAllowanceAminoMsg { - type: "cosmos-sdk/AllowedMsgAllowance"; - value: AllowedMsgAllowanceAmino; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -function createBaseBasicAllowance(): BasicAllowance { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - spendLimit: [], - expiration: undefined - }; -} -export const BasicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - encode(message: BasicAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.spendLimit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasicAllowance { - return { - spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e: any) => Coin.fromJSON(e)) : [], - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined - }; - }, - toJSON(message: BasicAllowance): unknown { - const obj: any = {}; - if (message.spendLimit) { - obj.spendLimit = message.spendLimit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.spendLimit = []; - } - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): BasicAllowance { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - return message; - }, - fromAmino(object: BasicAllowanceAmino): BasicAllowance { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - return message; - }, - toAmino(message: BasicAllowance): BasicAllowanceAmino { - const obj: any = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.spend_limit = message.spendLimit; - } - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - return obj; - }, - fromAminoMsg(object: BasicAllowanceAminoMsg): BasicAllowance { - return BasicAllowance.fromAmino(object.value); - }, - toAminoMsg(message: BasicAllowance): BasicAllowanceAminoMsg { - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message: BasicAllowanceProtoMsg): BasicAllowance { - return BasicAllowance.decode(message.value); - }, - toProto(message: BasicAllowance): Uint8Array { - return BasicAllowance.encode(message).finish(); - }, - toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(message).finish() - }; - } -}; -function createBasePeriodicAllowance(): PeriodicAllowance { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - basic: BasicAllowance.fromPartial({}), - period: Duration.fromPartial({}), - periodSpendLimit: [], - periodCanSpend: [], - periodReset: Timestamp.fromPartial({}) - }; -} -export const PeriodicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - encode(message: PeriodicAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basic !== undefined) { - BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== undefined) { - Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.periodSpendLimit) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.periodCanSpend) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.periodReset !== undefined) { - Timestamp.encode(message.periodReset, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basic = BasicAllowance.decode(reader, reader.uint32()); - break; - case 2: - message.period = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.periodSpendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.periodCanSpend.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.periodReset = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PeriodicAllowance { - return { - basic: isSet(object.basic) ? BasicAllowance.fromJSON(object.basic) : undefined, - period: isSet(object.period) ? Duration.fromJSON(object.period) : undefined, - periodSpendLimit: Array.isArray(object?.periodSpendLimit) ? object.periodSpendLimit.map((e: any) => Coin.fromJSON(e)) : [], - periodCanSpend: Array.isArray(object?.periodCanSpend) ? object.periodCanSpend.map((e: any) => Coin.fromJSON(e)) : [], - periodReset: isSet(object.periodReset) ? fromJsonTimestamp(object.periodReset) : undefined - }; - }, - toJSON(message: PeriodicAllowance): unknown { - const obj: any = {}; - message.basic !== undefined && (obj.basic = message.basic ? BasicAllowance.toJSON(message.basic) : undefined); - message.period !== undefined && (obj.period = message.period ? Duration.toJSON(message.period) : undefined); - if (message.periodSpendLimit) { - obj.periodSpendLimit = message.periodSpendLimit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.periodSpendLimit = []; - } - if (message.periodCanSpend) { - obj.periodCanSpend = message.periodCanSpend.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.periodCanSpend = []; - } - message.periodReset !== undefined && (obj.periodReset = fromTimestamp(message.periodReset).toISOString()); - return obj; - }, - fromPartial(object: Partial): PeriodicAllowance { - const message = createBasePeriodicAllowance(); - message.basic = object.basic !== undefined && object.basic !== null ? BasicAllowance.fromPartial(object.basic) : undefined; - message.period = object.period !== undefined && object.period !== null ? Duration.fromPartial(object.period) : undefined; - message.periodSpendLimit = object.periodSpendLimit?.map(e => Coin.fromPartial(e)) || []; - message.periodCanSpend = object.periodCanSpend?.map(e => Coin.fromPartial(e)) || []; - message.periodReset = object.periodReset !== undefined && object.periodReset !== null ? Timestamp.fromPartial(object.periodReset) : undefined; - return message; - }, - fromAmino(object: PeriodicAllowanceAmino): PeriodicAllowance { - const message = createBasePeriodicAllowance(); - if (object.basic !== undefined && object.basic !== null) { - message.basic = BasicAllowance.fromAmino(object.basic); - } - if (object.period !== undefined && object.period !== null) { - message.period = Duration.fromAmino(object.period); - } - message.periodSpendLimit = object.period_spend_limit?.map(e => Coin.fromAmino(e)) || []; - message.periodCanSpend = object.period_can_spend?.map(e => Coin.fromAmino(e)) || []; - if (object.period_reset !== undefined && object.period_reset !== null) { - message.periodReset = Timestamp.fromAmino(object.period_reset); - } - return message; - }, - toAmino(message: PeriodicAllowance): PeriodicAllowanceAmino { - const obj: any = {}; - obj.basic = message.basic ? BasicAllowance.toAmino(message.basic) : undefined; - obj.period = message.period ? Duration.toAmino(message.period) : undefined; - if (message.periodSpendLimit) { - obj.period_spend_limit = message.periodSpendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.period_spend_limit = message.periodSpendLimit; - } - if (message.periodCanSpend) { - obj.period_can_spend = message.periodCanSpend.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.period_can_spend = message.periodCanSpend; - } - obj.period_reset = message.periodReset ? Timestamp.toAmino(message.periodReset) : undefined; - return obj; - }, - fromAminoMsg(object: PeriodicAllowanceAminoMsg): PeriodicAllowance { - return PeriodicAllowance.fromAmino(object.value); - }, - toAminoMsg(message: PeriodicAllowance): PeriodicAllowanceAminoMsg { - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message: PeriodicAllowanceProtoMsg): PeriodicAllowance { - return PeriodicAllowance.decode(message.value); - }, - toProto(message: PeriodicAllowance): Uint8Array { - return PeriodicAllowance.encode(message).finish(); - }, - toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(message).finish() - }; - } -}; -function createBaseAllowedMsgAllowance(): AllowedMsgAllowance { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - allowance: undefined, - allowedMessages: [] - }; -} -export const AllowedMsgAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - encode(message: AllowedMsgAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.allowance !== undefined) { - Any.encode((message.allowance as Any), writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedMessages) { - writer.uint32(18).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedMsgAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); - break; - case 2: - message.allowedMessages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowedMsgAllowance { - return { - allowance: isSet(object.allowance) ? Any.fromJSON(object.allowance) : undefined, - allowedMessages: Array.isArray(object?.allowedMessages) ? object.allowedMessages.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: AllowedMsgAllowance): unknown { - const obj: any = {}; - message.allowance !== undefined && (obj.allowance = message.allowance ? Any.toJSON(message.allowance) : undefined); - if (message.allowedMessages) { - obj.allowedMessages = message.allowedMessages.map(e => e); - } else { - obj.allowedMessages = []; - } - return obj; - }, - fromPartial(object: Partial): AllowedMsgAllowance { - const message = createBaseAllowedMsgAllowance(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - message.allowedMessages = object.allowedMessages?.map(e => e) || []; - return message; - }, - fromAmino(object: AllowedMsgAllowanceAmino): AllowedMsgAllowance { - const message = createBaseAllowedMsgAllowance(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - message.allowedMessages = object.allowed_messages?.map(e => e) || []; - return message; - }, - toAmino(message: AllowedMsgAllowance): AllowedMsgAllowanceAmino { - const obj: any = {}; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; - if (message.allowedMessages) { - obj.allowed_messages = message.allowedMessages.map(e => e); - } else { - obj.allowed_messages = message.allowedMessages; - } - return obj; - }, - fromAminoMsg(object: AllowedMsgAllowanceAminoMsg): AllowedMsgAllowance { - return AllowedMsgAllowance.fromAmino(object.value); - }, - toAminoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceAminoMsg { - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(message) - }; - }, - fromProtoMsg(message: AllowedMsgAllowanceProtoMsg): AllowedMsgAllowance { - return AllowedMsgAllowance.decode(message.value); - }, - toProto(message: AllowedMsgAllowance): Uint8Array { - return AllowedMsgAllowance.encode(message).finish(); - }, - toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(message).finish() - }; - } -}; -function createBaseGrant(): Grant { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const Grant = { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - encode(message: Grant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode((message.allowance as Any), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Grant { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Grant { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - allowance: isSet(object.allowance) ? Any.fromJSON(object.allowance) : undefined - }; - }, - toJSON(message: Grant): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.allowance !== undefined && (obj.allowance = message.allowance ? Any.toJSON(message.allowance) : undefined); - return obj; - }, - fromPartial(object: Partial): Grant { - const message = createBaseGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object: GrantAmino): Grant { - const message = createBaseGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - return message; - }, - toAmino(message: Grant): GrantAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: GrantAminoMsg): Grant { - return Grant.fromAmino(object.value); - }, - toAminoMsg(message: Grant): GrantAminoMsg { - return { - type: "cosmos-sdk/Grant", - value: Grant.toAmino(message) - }; - }, - fromProtoMsg(message: GrantProtoMsg): Grant { - return Grant.decode(message.value); - }, - toProto(message: Grant): Uint8Array { - return Grant.encode(message).finish(); - }, - toProtoMsg(message: Grant): GrantProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - value: Grant.encode(message).finish() - }; - } -}; -export const FeeAllowanceI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -export const FeeAllowanceI_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const FeeAllowanceI_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/genesis.ts deleted file mode 100644 index de66e5d5..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateAmino { - allowances?: GrantAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - allowances: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - allowances: Array.isArray(object?.allowances) ? object.allowances.map((e: any) => Grant.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toJSON(e) : undefined); - } else { - obj.allowances = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } else { - obj.allowances = message.allowances; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts deleted file mode 100644 index 5649a3eb..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - /* Allowance returns fee granted to the grantee by the granter. */ - async allowance(params: QueryAllowanceRequest): Promise { - const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; - return await this.req.get(endpoint); - } - /* Allowances returns all the grants for address. */ - async allowances(params: QueryAllowancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; - return await this.req.get(endpoint, options); - } - /* AllowancesByGranter returns all the grants given by an address - - Since: cosmos-sdk 0.46 */ - async allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts deleted file mode 100644 index cef07797..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Allowance returns fee granted to the grantee by the granter. */ - allowance(request: QueryAllowanceRequest): Promise; - /** Allowances returns all the grants for address. */ - allowances(request: QueryAllowancesRequest): Promise; - /** - * AllowancesByGranter returns all the grants given by an address - * - * Since: cosmos-sdk 0.46 - */ - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - allowance(request: QueryAllowanceRequest): Promise { - const data = QueryAllowanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); - return promise.then(data => QueryAllowanceResponse.decode(new BinaryReader(data))); - } - allowances(request: QueryAllowancesRequest): Promise { - const data = QueryAllowancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); - return promise.then(data => QueryAllowancesResponse.decode(new BinaryReader(data))); - } - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise { - const data = QueryAllowancesByGranterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); - return promise.then(data => QueryAllowancesByGranterResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - allowance(request: QueryAllowanceRequest): Promise { - return queryService.allowance(request); - }, - allowances(request: QueryAllowancesRequest): Promise { - return queryService.allowances(request); - }, - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise { - return queryService.allowancesByGranter(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.ts deleted file mode 100644 index b1e596fa..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/query.ts +++ /dev/null @@ -1,737 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequest { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface QueryAllowanceRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; - value: Uint8Array; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface QueryAllowanceRequestAminoMsg { - type: "cosmos-sdk/QueryAllowanceRequest"; - value: QueryAllowanceRequestAmino; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestSDKType { - granter: string; - grantee: string; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponse { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: Grant; -} -export interface QueryAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; - value: Uint8Array; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseAmino { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: GrantAmino; -} -export interface QueryAllowanceResponseAminoMsg { - type: "cosmos-sdk/QueryAllowanceResponse"; - value: QueryAllowanceResponseAmino; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseSDKType { - allowance?: GrantSDKType; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; - value: Uint8Array; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesRequest"; - value: QueryAllowancesRequestAmino; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponse { - /** allowances are allowance's granted for grantee by granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; - value: Uint8Array; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseAmino { - /** allowances are allowance's granted for grantee by granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesResponse"; - value: QueryAllowancesResponseAmino; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesByGranterRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesByGranterRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterRequest"; - value: QueryAllowancesByGranterRequestAmino; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponse { - /** allowances that have been issued by the granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesByGranterResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseAmino { - /** allowances that have been issued by the granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesByGranterResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterResponse"; - value: QueryAllowancesByGranterResponseAmino; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryAllowanceRequest(): QueryAllowanceRequest { - return { - granter: "", - grantee: "" - }; -} -export const QueryAllowanceRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - encode(message: QueryAllowanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowanceRequest { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "" - }; - }, - toJSON(message: QueryAllowanceRequest): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - return obj; - }, - fromPartial(object: Partial): QueryAllowanceRequest { - const message = createBaseQueryAllowanceRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest { - const message = createBaseQueryAllowanceRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest { - return QueryAllowanceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAllowanceRequest", - value: QueryAllowanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest { - return QueryAllowanceRequest.decode(message.value); - }, - toProto(message: QueryAllowanceRequest): Uint8Array { - return QueryAllowanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - value: QueryAllowanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowanceResponse(): QueryAllowanceResponse { - return { - allowance: undefined - }; -} -export const QueryAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - encode(message: QueryAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.allowance !== undefined) { - Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowanceResponse { - return { - allowance: isSet(object.allowance) ? Grant.fromJSON(object.allowance) : undefined - }; - }, - toJSON(message: QueryAllowanceResponse): unknown { - const obj: any = {}; - message.allowance !== undefined && (obj.allowance = message.allowance ? Grant.toJSON(message.allowance) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowanceResponse { - const message = createBaseQueryAllowanceResponse(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse { - const message = createBaseQueryAllowanceResponse(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = Grant.fromAmino(object.allowance); - } - return message; - }, - toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino { - const obj: any = {}; - obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse { - return QueryAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAllowanceResponse", - value: QueryAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse { - return QueryAllowanceResponse.decode(message.value); - }, - toProto(message: QueryAllowanceResponse): Uint8Array { - return QueryAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - value: QueryAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesRequest(): QueryAllowancesRequest { - return { - grantee: "", - pagination: undefined - }; -} -export const QueryAllowancesRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - encode(message: QueryAllowancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowancesRequest { - return { - grantee: isSet(object.grantee) ? String(object.grantee) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowancesRequest): unknown { - const obj: any = {}; - message.grantee !== undefined && (obj.grantee = message.grantee); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowancesRequest { - const message = createBaseQueryAllowancesRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest { - const message = createBaseQueryAllowancesRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino { - const obj: any = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest { - return QueryAllowancesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAllowancesRequest", - value: QueryAllowancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest { - return QueryAllowancesRequest.decode(message.value); - }, - toProto(message: QueryAllowancesRequest): Uint8Array { - return QueryAllowancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - value: QueryAllowancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesResponse(): QueryAllowancesResponse { - return { - allowances: [], - pagination: undefined - }; -} -export const QueryAllowancesResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - encode(message: QueryAllowancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowancesResponse { - return { - allowances: Array.isArray(object?.allowances) ? object.allowances.map((e: any) => Grant.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowancesResponse): unknown { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toJSON(e) : undefined); - } else { - obj.allowances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowancesResponse { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse { - return QueryAllowancesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAllowancesResponse", - value: QueryAllowancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse { - return QueryAllowancesResponse.decode(message.value); - }, - toProto(message: QueryAllowancesResponse): Uint8Array { - return QueryAllowancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - value: QueryAllowancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest { - return { - granter: "", - pagination: undefined - }; -} -export const QueryAllowancesByGranterRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - encode(message: QueryAllowancesByGranterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowancesByGranterRequest { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowancesByGranterRequest): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowancesByGranterRequest { - const message = createBaseQueryAllowancesByGranterRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest { - const message = createBaseQueryAllowancesByGranterRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest { - return QueryAllowancesByGranterRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAllowancesByGranterRequest", - value: QueryAllowancesByGranterRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest { - return QueryAllowancesByGranterRequest.decode(message.value); - }, - toProto(message: QueryAllowancesByGranterRequest): Uint8Array { - return QueryAllowancesByGranterRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - value: QueryAllowancesByGranterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse { - return { - allowances: [], - pagination: undefined - }; -} -export const QueryAllowancesByGranterResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - encode(message: QueryAllowancesByGranterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowancesByGranterResponse { - return { - allowances: Array.isArray(object?.allowances) ? object.allowances.map((e: any) => Grant.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowancesByGranterResponse): unknown { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toJSON(e) : undefined); - } else { - obj.allowances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowancesByGranterResponse { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino { - const obj: any = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse { - return QueryAllowancesByGranterResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAllowancesByGranterResponse", - value: QueryAllowancesByGranterResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse { - return QueryAllowancesByGranterResponse.decode(message.value); - }, - toProto(message: QueryAllowancesByGranterResponse): Uint8Array { - return QueryAllowancesByGranterResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - value: QueryAllowancesByGranterResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts deleted file mode 100644 index 1a5cbbbd..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export const AminoConverter = { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: "cosmos-sdk/MsgGrantAllowance", - toAmino: MsgGrantAllowance.toAmino, - fromAmino: MsgGrantAllowance.fromAmino - }, - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: "cosmos-sdk/MsgRevokeAllowance", - toAmino: MsgRevokeAllowance.toAmino, - fromAmino: MsgRevokeAllowance.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts deleted file mode 100644 index e7592e81..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.encode(value).finish() - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.encode(value).finish() - }; - } - }, - withTypeUrl: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value - }; - } - }, - toJSON: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.toJSON(value) - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.toJSON(value) - }; - } - }, - fromJSON: { - grantAllowance(value: any) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.fromJSON(value) - }; - }, - revokeAllowance(value: any) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.fromJSON(value) - }; - } - }, - fromPartial: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.fromPartial(value) - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 34b65501..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; -/** Msg defines the feegrant msg service. */ -export interface Msg { - /** - * GrantAllowance grants fee allowance to the grantee on the granter's - * account with the provided expiration time. - */ - grantAllowance(request: MsgGrantAllowance): Promise; - /** - * RevokeAllowance revokes any fee allowance of granter's account that - * has been granted to the grantee. - */ - revokeAllowance(request: MsgRevokeAllowance): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.grantAllowance = this.grantAllowance.bind(this); - this.revokeAllowance = this.revokeAllowance.bind(this); - } - grantAllowance(request: MsgGrantAllowance): Promise { - const data = MsgGrantAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); - return promise.then(data => MsgGrantAllowanceResponse.decode(new BinaryReader(data))); - } - revokeAllowance(request: MsgRevokeAllowance): Promise { - const data = MsgRevokeAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); - return promise.then(data => MsgRevokeAllowanceResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts deleted file mode 100644 index b08c2786..00000000 --- a/packages/api/src/codegen/cosmos/feegrant/v1beta1/tx.ts +++ /dev/null @@ -1,485 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; -} -export interface MsgGrantAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; - value: Uint8Array; -} -export type MsgGrantAllowanceEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface MsgGrantAllowanceAminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: MsgGrantAllowanceAmino; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse {} -export interface MsgGrantAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - value: Uint8Array; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseAmino {} -export interface MsgGrantAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgGrantAllowanceResponse"; - value: MsgGrantAllowanceResponseAmino; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType {} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - value: Uint8Array; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface MsgRevokeAllowanceAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: MsgRevokeAllowanceAmino; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse {} -export interface MsgRevokeAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - value: Uint8Array; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseAmino {} -export interface MsgRevokeAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowanceResponse"; - value: MsgRevokeAllowanceResponseAmino; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType {} -function createBaseMsgGrantAllowance(): MsgGrantAllowance { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const MsgGrantAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - encode(message: MsgGrantAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode((message.allowance as Any), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgGrantAllowance { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "", - allowance: isSet(object.allowance) ? Any.fromJSON(object.allowance) : undefined - }; - }, - toJSON(message: MsgGrantAllowance): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - message.allowance !== undefined && (obj.allowance = message.allowance ? Any.toJSON(message.allowance) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgGrantAllowance { - const message = createBaseMsgGrantAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance { - const message = createBaseMsgGrantAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - return message; - }, - toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance { - return MsgGrantAllowance.fromAmino(object.value); - }, - toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg { - return { - type: "cosmos-sdk/MsgGrantAllowance", - value: MsgGrantAllowance.toAmino(message) - }; - }, - fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance { - return MsgGrantAllowance.decode(message.value); - }, - toProto(message: MsgGrantAllowance): Uint8Array { - return MsgGrantAllowance.encode(message).finish(); - }, - toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgGrantAllowanceResponse(): MsgGrantAllowanceResponse { - return {}; -} -export const MsgGrantAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - encode(_: MsgGrantAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgGrantAllowanceResponse { - return {}; - }, - toJSON(_: MsgGrantAllowanceResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgGrantAllowanceResponse { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse { - return MsgGrantAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg { - return { - type: "cosmos-sdk/MsgGrantAllowanceResponse", - value: MsgGrantAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse { - return MsgGrantAllowanceResponse.decode(message.value); - }, - toProto(message: MsgGrantAllowanceResponse): Uint8Array { - return MsgGrantAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - value: MsgGrantAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowance(): MsgRevokeAllowance { - return { - granter: "", - grantee: "" - }; -} -export const MsgRevokeAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - encode(message: MsgRevokeAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRevokeAllowance { - return { - granter: isSet(object.granter) ? String(object.granter) : "", - grantee: isSet(object.grantee) ? String(object.grantee) : "" - }; - }, - toJSON(message: MsgRevokeAllowance): unknown { - const obj: any = {}; - message.granter !== undefined && (obj.granter = message.granter); - message.grantee !== undefined && (obj.grantee = message.grantee); - return obj; - }, - fromPartial(object: Partial): MsgRevokeAllowance { - const message = createBaseMsgRevokeAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance { - const message = createBaseMsgRevokeAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino { - const obj: any = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance { - return MsgRevokeAllowance.fromAmino(object.value); - }, - toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg { - return { - type: "cosmos-sdk/MsgRevokeAllowance", - value: MsgRevokeAllowance.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance { - return MsgRevokeAllowance.decode(message.value); - }, - toProto(message: MsgRevokeAllowance): Uint8Array { - return MsgRevokeAllowance.encode(message).finish(); - }, - toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowanceResponse(): MsgRevokeAllowanceResponse { - return {}; -} -export const MsgRevokeAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - encode(_: MsgRevokeAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRevokeAllowanceResponse { - return {}; - }, - toJSON(_: MsgRevokeAllowanceResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRevokeAllowanceResponse { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse { - return MsgRevokeAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg { - return { - type: "cosmos-sdk/MsgRevokeAllowanceResponse", - value: MsgRevokeAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse { - return MsgRevokeAllowanceResponse.decode(message.value); - }, - toProto(message: MsgRevokeAllowanceResponse): Uint8Array { - return MsgRevokeAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - value: MsgRevokeAllowanceResponse.encode(message).finish() - }; - } -}; -export const FeeAllowanceI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -export const FeeAllowanceI_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const FeeAllowanceI_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/genutil/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/genutil/v1beta1/genesis.ts deleted file mode 100644 index 348e2e75..00000000 --- a/packages/api/src/codegen/cosmos/genutil/v1beta1/genesis.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateAmino { - /** gen_txs defines the genesis transactions. */ - gen_txs: string[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} -function createBaseGenesisState(): GenesisState { - return { - genTxs: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.genTxs) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.genTxs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - genTxs: Array.isArray(object?.genTxs) ? object.genTxs.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.genTxs) { - obj.genTxs = message.genTxs.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.genTxs = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.genTxs = object.genTxs?.map(e => e) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.genTxs = object.gen_txs?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.genTxs) { - obj.gen_txs = message.genTxs.map(e => base64FromBytes(e)); - } else { - obj.gen_txs = message.genTxs; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/genesis.ts b/packages/api/src/codegen/cosmos/gov/v1/genesis.ts deleted file mode 100644 index 7b332ba5..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/genesis.ts +++ /dev/null @@ -1,236 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams?: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams?: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams?: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/v1/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params?: DepositParamsSDKType; - voting_params?: VotingParamsSDKType; - tally_params?: TallyParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: undefined, - votingParams: undefined, - tallyParams: undefined - }; -} -export const GenesisState = { - typeUrl: "/cosmos.gov.v1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - startingProposalId: isSet(object.startingProposalId) ? BigInt(object.startingProposalId.toString()) : BigInt(0), - deposits: Array.isArray(object?.deposits) ? object.deposits.map((e: any) => Deposit.fromJSON(e)) : [], - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined, - votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined, - tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.startingProposalId !== undefined && (obj.startingProposalId = (message.startingProposalId || BigInt(0)).toString()); - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toJSON(e) : undefined); - } else { - obj.deposits = []; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - message.depositParams !== undefined && (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined); - message.votingParams !== undefined && (obj.votingParams = message.votingParams ? VotingParams.toJSON(message.votingParams) : undefined); - message.tallyParams !== undefined && (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/v1/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/gov.ts b/packages/api/src/codegen/cosmos/gov/v1/gov.ts deleted file mode 100644 index 9f05b531..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/gov.ts +++ /dev/null @@ -1,1381 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; - value: Uint8Array; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/v1/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/v1/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: bigint; - messages: Any[]; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult?: TallyResult; - submitTime?: Timestamp; - depositEndTime?: Timestamp; - totalDeposit: Coin[]; - votingStartTime?: Timestamp; - votingEndTime?: Timestamp; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - id?: string; - messages?: AnyAmino[]; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/v1/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: bigint; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result?: TallyResultSDKType; - submit_time?: TimestampSDKType; - deposit_end_time?: TimestampSDKType; - total_deposit: CoinSDKType[]; - voting_start_time?: TimestampSDKType; - voting_end_time?: TimestampSDKType; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes_count?: string; - abstain_count?: string; - no_count?: string; - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/v1/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id?: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/v1/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod?: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/v1/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period?: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod?: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/v1/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period?: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/v1/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} -function createBaseWeightedVoteOption(): WeightedVoteOption { - return { - option: 0, - weight: "" - }; -} -export const WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - encode(message: WeightedVoteOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = (reader.int32() as any); - break; - case 2: - message.weight = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): WeightedVoteOption { - return { - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - weight: isSet(object.weight) ? String(object.weight) : "" - }; - }, - toJSON(message: WeightedVoteOption): unknown { - const obj: any = {}; - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - message.weight !== undefined && (obj.weight = message.weight); - return obj; - }, - fromPartial(object: Partial): WeightedVoteOption { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino { - const obj: any = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption { - return WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg { - return { - type: "cosmos-sdk/v1/WeightedVoteOption", - value: WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption { - return WeightedVoteOption.decode(message.value); - }, - toProto(message: WeightedVoteOption): Uint8Array { - return WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - value: WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseDeposit(): Deposit { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const Deposit = { - typeUrl: "/cosmos.gov.v1.Deposit", - encode(message: Deposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Deposit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Deposit { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Deposit): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): Deposit { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: DepositAmino): Deposit { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Deposit): DepositAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: DepositAminoMsg): Deposit { - return Deposit.fromAmino(object.value); - }, - toAminoMsg(message: Deposit): DepositAminoMsg { - return { - type: "cosmos-sdk/v1/Deposit", - value: Deposit.toAmino(message) - }; - }, - fromProtoMsg(message: DepositProtoMsg): Deposit { - return Deposit.decode(message.value); - }, - toProto(message: Deposit): Uint8Array { - return Deposit.encode(message).finish(); - }, - toProtoMsg(message: Deposit): DepositProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.Deposit", - value: Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal(): Proposal { - return { - id: BigInt(0), - messages: [], - status: 0, - finalTallyResult: undefined, - submitTime: undefined, - depositEndTime: undefined, - totalDeposit: [], - votingStartTime: undefined, - votingEndTime: undefined, - metadata: "" - }; -} -export const Proposal = { - typeUrl: "/cosmos.gov.v1.Proposal", - encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - Timestamp.encode(message.submitTime, writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - Timestamp.encode(message.depositEndTime, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - Coin.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - Timestamp.encode(message.votingStartTime, writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - Timestamp.encode(message.votingEndTime, writer.uint32(74).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(82).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Proposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 3: - message.status = (reader.int32() as any); - break; - case 4: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.depositEndTime = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.totalDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.votingEndTime = Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Proposal { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - messages: Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [], - status: isSet(object.status) ? proposalStatusFromJSON(object.status) : -1, - finalTallyResult: isSet(object.finalTallyResult) ? TallyResult.fromJSON(object.finalTallyResult) : undefined, - submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined, - depositEndTime: isSet(object.depositEndTime) ? fromJsonTimestamp(object.depositEndTime) : undefined, - totalDeposit: Array.isArray(object?.totalDeposit) ? object.totalDeposit.map((e: any) => Coin.fromJSON(e)) : [], - votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined, - votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined, - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: Proposal): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.messages = []; - } - message.status !== undefined && (obj.status = proposalStatusToJSON(message.status)); - message.finalTallyResult !== undefined && (obj.finalTallyResult = message.finalTallyResult ? TallyResult.toJSON(message.finalTallyResult) : undefined); - message.submitTime !== undefined && (obj.submitTime = fromTimestamp(message.submitTime).toISOString()); - message.depositEndTime !== undefined && (obj.depositEndTime = fromTimestamp(message.depositEndTime).toISOString()); - if (message.totalDeposit) { - obj.totalDeposit = message.totalDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.totalDeposit = []; - } - message.votingStartTime !== undefined && (obj.votingStartTime = fromTimestamp(message.votingStartTime).toISOString()); - message.votingEndTime !== undefined && (obj.votingEndTime = fromTimestamp(message.votingEndTime).toISOString()); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): Proposal { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime !== undefined && object.submitTime !== null ? Timestamp.fromPartial(object.submitTime) : undefined; - message.depositEndTime = object.depositEndTime !== undefined && object.depositEndTime !== null ? Timestamp.fromPartial(object.depositEndTime) : undefined; - message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime !== undefined && object.votingStartTime !== null ? Timestamp.fromPartial(object.votingStartTime) : undefined; - message.votingEndTime = object.votingEndTime !== undefined && object.votingEndTime !== null ? Timestamp.fromPartial(object.votingEndTime) : undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: ProposalAmino): Proposal { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = Timestamp.fromAmino(object.submit_time); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = Timestamp.fromAmino(object.deposit_end_time); - } - message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = Timestamp.fromAmino(object.voting_start_time); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = Timestamp.fromAmino(object.voting_end_time); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: Proposal): ProposalAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.messages = message.messages; - } - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? Timestamp.toAmino(message.submitTime) : undefined; - obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(message.depositEndTime) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(message.votingStartTime) : undefined; - obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(message.votingEndTime) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: ProposalAminoMsg): Proposal { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message: Proposal): ProposalAminoMsg { - return { - type: "cosmos-sdk/v1/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message: ProposalProtoMsg): Proposal { - return Proposal.decode(message.value); - }, - toProto(message: Proposal): Uint8Array { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message: Proposal): ProposalProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult(): TallyResult { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.gov.v1.TallyResult", - encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TallyResult { - return { - yesCount: isSet(object.yesCount) ? String(object.yesCount) : "", - abstainCount: isSet(object.abstainCount) ? String(object.abstainCount) : "", - noCount: isSet(object.noCount) ? String(object.noCount) : "", - noWithVetoCount: isSet(object.noWithVetoCount) ? String(object.noWithVetoCount) : "" - }; - }, - toJSON(message: TallyResult): unknown { - const obj: any = {}; - message.yesCount !== undefined && (obj.yesCount = message.yesCount); - message.abstainCount !== undefined && (obj.abstainCount = message.abstainCount); - message.noCount !== undefined && (obj.noCount = message.noCount); - message.noWithVetoCount !== undefined && (obj.noWithVetoCount = message.noWithVetoCount); - return obj; - }, - fromPartial(object: Partial): TallyResult { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object: TallyResultAmino): TallyResult { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message: TallyResult): TallyResultAmino { - const obj: any = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object: TallyResultAminoMsg): TallyResult { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message: TallyResult): TallyResultAminoMsg { - return { - type: "cosmos-sdk/v1/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message: TallyResultProtoMsg): TallyResult { - return TallyResult.decode(message.value); - }, - toProto(message: TallyResult): Uint8Array { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message: TallyResult): TallyResultProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote(): Vote { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -export const Vote = { - typeUrl: "/cosmos.gov.v1.Vote", - encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Vote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 4: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Vote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - options: Array.isArray(object?.options) ? object.options.map((e: any) => WeightedVoteOption.fromJSON(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: Vote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toJSON(e) : undefined); - } else { - obj.options = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): Vote { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: VoteAmino): Vote { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: Vote): VoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: VoteAminoMsg): Vote { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message: Vote): VoteAminoMsg { - return { - type: "cosmos-sdk/v1/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message: VoteProtoMsg): Vote { - return Vote.decode(message.value); - }, - toProto(message: Vote): Uint8Array { - return Vote.encode(message).finish(); - }, - toProtoMsg(message: Vote): VoteProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams(): DepositParams { - return { - minDeposit: [], - maxDepositPeriod: undefined - }; -} -export const DepositParams = { - typeUrl: "/cosmos.gov.v1.DepositParams", - encode(message: DepositParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.minDeposit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DepositParams { - return { - minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e: any) => Coin.fromJSON(e)) : [], - maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined - }; - }, - toJSON(message: DepositParams): unknown { - const obj: any = {}; - if (message.minDeposit) { - obj.minDeposit = message.minDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.minDeposit = []; - } - message.maxDepositPeriod !== undefined && (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined); - return obj; - }, - fromPartial(object: Partial): DepositParams { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object: DepositParamsAmino): DepositParams { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message: DepositParams): DepositParamsAmino { - const obj: any = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams { - return DepositParams.fromAmino(object.value); - }, - toAminoMsg(message: DepositParams): DepositParamsAminoMsg { - return { - type: "cosmos-sdk/v1/DepositParams", - value: DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams { - return DepositParams.decode(message.value); - }, - toProto(message: DepositParams): Uint8Array { - return DepositParams.encode(message).finish(); - }, - toProtoMsg(message: DepositParams): DepositParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.DepositParams", - value: DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams(): VotingParams { - return { - votingPeriod: undefined - }; -} -export const VotingParams = { - typeUrl: "/cosmos.gov.v1.VotingParams", - encode(message: VotingParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): VotingParams { - return { - votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined - }; - }, - toJSON(message: VotingParams): unknown { - const obj: any = {}; - message.votingPeriod !== undefined && (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined); - return obj; - }, - fromPartial(object: Partial): VotingParams { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object: VotingParamsAmino): VotingParams { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message: VotingParams): VotingParamsAmino { - const obj: any = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams { - return VotingParams.fromAmino(object.value); - }, - toAminoMsg(message: VotingParams): VotingParamsAminoMsg { - return { - type: "cosmos-sdk/v1/VotingParams", - value: VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams { - return VotingParams.decode(message.value); - }, - toProto(message: VotingParams): Uint8Array { - return VotingParams.encode(message).finish(); - }, - toProtoMsg(message: VotingParams): VotingParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.VotingParams", - value: VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams(): TallyParams { - return { - quorum: "", - threshold: "", - vetoThreshold: "" - }; -} -export const TallyParams = { - typeUrl: "/cosmos.gov.v1.TallyParams", - encode(message: TallyParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.quorum !== "") { - writer.uint32(10).string(message.quorum); - } - if (message.threshold !== "") { - writer.uint32(18).string(message.threshold); - } - if (message.vetoThreshold !== "") { - writer.uint32(26).string(message.vetoThreshold); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.string(); - break; - case 2: - message.threshold = reader.string(); - break; - case 3: - message.vetoThreshold = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TallyParams { - return { - quorum: isSet(object.quorum) ? String(object.quorum) : "", - threshold: isSet(object.threshold) ? String(object.threshold) : "", - vetoThreshold: isSet(object.vetoThreshold) ? String(object.vetoThreshold) : "" - }; - }, - toJSON(message: TallyParams): unknown { - const obj: any = {}; - message.quorum !== undefined && (obj.quorum = message.quorum); - message.threshold !== undefined && (obj.threshold = message.threshold); - message.vetoThreshold !== undefined && (obj.vetoThreshold = message.vetoThreshold); - return obj; - }, - fromPartial(object: Partial): TallyParams { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? ""; - message.threshold = object.threshold ?? ""; - message.vetoThreshold = object.vetoThreshold ?? ""; - return message; - }, - fromAmino(object: TallyParamsAmino): TallyParams { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = object.quorum; - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = object.veto_threshold; - } - return message; - }, - toAmino(message: TallyParams): TallyParamsAmino { - const obj: any = {}; - obj.quorum = message.quorum === "" ? undefined : message.quorum; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; - return obj; - }, - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams { - return TallyParams.fromAmino(object.value); - }, - toAminoMsg(message: TallyParams): TallyParamsAminoMsg { - return { - type: "cosmos-sdk/v1/TallyParams", - value: TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams { - return TallyParams.decode(message.value); - }, - toProto(message: TallyParams): Uint8Array { - return TallyParams.encode(message).finish(); - }, - toProtoMsg(message: TallyParams): TallyParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.TallyParams", - value: TallyParams.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/query.lcd.ts b/packages/api/src/codegen/cosmos/gov/v1/query.lcd.ts deleted file mode 100644 index 5dafe478..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/query.lcd.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params: QueryProposalRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params: QueryProposalsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params: QueryVoteRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params: QueryVotesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params: QueryParamsRequest): Promise { - const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params: QueryDepositRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params: QueryDepositsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params: QueryTallyResultRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/gov/v1/query.rpc.Query.ts deleted file mode 100644 index c4ff3fee..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request: QueryProposalRequest): Promise { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposals(request: QueryProposalsRequest): Promise { - const data = QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); - return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); - } - vote(request: QueryVoteRequest): Promise { - const data = QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); - return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); - } - votes(request: QueryVotesRequest): Promise { - const data = QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); - return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - deposit(request: QueryDepositRequest): Promise { - const data = QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); - return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); - } - deposits(request: QueryDepositsRequest): Promise { - const data = QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); - return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); - } - tallyResult(request: QueryTallyResultRequest): Promise { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request: QueryProposalRequest): Promise { - return queryService.proposal(request); - }, - proposals(request: QueryProposalsRequest): Promise { - return queryService.proposals(request); - }, - vote(request: QueryVoteRequest): Promise { - return queryService.vote(request); - }, - votes(request: QueryVotesRequest): Promise { - return queryService.votes(request); - }, - params(request: QueryParamsRequest): Promise { - return queryService.params(request); - }, - deposit(request: QueryDepositRequest): Promise { - return queryService.deposit(request); - }, - deposits(request: QueryDepositsRequest): Promise { - return queryService.deposits(request); - }, - tallyResult(request: QueryTallyResultRequest): Promise { - return queryService.tallyResult(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/query.ts b/packages/api/src/codegen/cosmos/gov/v1/query.ts deleted file mode 100644 index 6cd02f09..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/query.ts +++ /dev/null @@ -1,1875 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType, proposalStatusFromJSON, proposalStatusToJSON } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote?: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams?: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams?: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams?: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params?: VotingParamsSDKType; - deposit_params?: DepositParamsSDKType; - tally_params?: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit?: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit?: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally?: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally?: TallyResultSDKType; -} -function createBaseQueryProposalRequest(): QueryProposalRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryProposalRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { - return QueryProposalRequest.decode(message.value); - }, - toProto(message: QueryProposalRequest): Uint8Array { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse(): QueryProposalResponse { - return { - proposal: undefined - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalResponse { - return { - proposal: isSet(object.proposal) ? Proposal.fromJSON(object.proposal) : undefined - }; - }, - toJSON(message: QueryProposalResponse): unknown { - const obj: any = {}; - message.proposal !== undefined && (obj.proposal = message.proposal ? Proposal.toJSON(message.proposal) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { - const obj: any = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { - return QueryProposalResponse.decode(message.value); - }, - toProto(message: QueryProposalResponse): Uint8Array { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest(): QueryProposalsRequest { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -export const QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - encode(message: QueryProposalsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = (reader.int32() as any); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsRequest { - return { - proposalStatus: isSet(object.proposalStatus) ? proposalStatusFromJSON(object.proposalStatus) : -1, - voter: isSet(object.voter) ? String(object.voter) : "", - depositor: isSet(object.depositor) ? String(object.depositor) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsRequest): unknown { - const obj: any = {}; - message.proposalStatus !== undefined && (obj.proposalStatus = proposalStatusToJSON(message.proposalStatus)); - message.voter !== undefined && (obj.voter = message.voter); - message.depositor !== undefined && (obj.depositor = message.depositor); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsRequest { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino { - const obj: any = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest { - return QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryProposalsRequest", - value: QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest { - return QueryProposalsRequest.decode(message.value); - }, - toProto(message: QueryProposalsRequest): Uint8Array { - return QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - value: QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse(): QueryProposalsResponse { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - encode(message: QueryProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsResponse { - return { - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsResponse): unknown { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsResponse { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse { - return QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryProposalsResponse", - value: QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse { - return QueryProposalsResponse.decode(message.value); - }, - toProto(message: QueryProposalsResponse): Uint8Array { - return QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - value: QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest(): QueryVoteRequest { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - encode(message: QueryVoteRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "" - }; - }, - toJSON(message: QueryVoteRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - return obj; - }, - fromPartial(object: Partial): QueryVoteRequest { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest { - return QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryVoteRequest", - value: QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest { - return QueryVoteRequest.decode(message.value); - }, - toProto(message: QueryVoteRequest): Uint8Array { - return QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - value: QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse(): QueryVoteResponse { - return { - vote: undefined - }; -} -export const QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - encode(message: QueryVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteResponse { - return { - vote: isSet(object.vote) ? Vote.fromJSON(object.vote) : undefined - }; - }, - toJSON(message: QueryVoteResponse): unknown { - const obj: any = {}; - message.vote !== undefined && (obj.vote = message.vote ? Vote.toJSON(message.vote) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVoteResponse { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino { - const obj: any = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse { - return QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryVoteResponse", - value: QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse { - return QueryVoteResponse.decode(message.value); - }, - toProto(message: QueryVoteResponse): Uint8Array { - return QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - value: QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest(): QueryVotesRequest { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - encode(message: QueryVotesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesRequest { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest { - return QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryVotesRequest", - value: QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest { - return QueryVotesRequest.decode(message.value); - }, - toProto(message: QueryVotesRequest): Uint8Array { - return QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - value: QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse(): QueryVotesResponse { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - encode(message: QueryVotesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesResponse { - return { - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesResponse): unknown { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesResponse { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse { - return QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryVotesResponse", - value: QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse { - return QueryVotesResponse.decode(message.value); - }, - toProto(message: QueryVotesResponse): Uint8Array { - return QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - value: QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return { - paramsType: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsRequest { - return { - paramsType: isSet(object.paramsType) ? String(object.paramsType) : "" - }; - }, - toJSON(message: QueryParamsRequest): unknown { - const obj: any = {}; - message.paramsType !== undefined && (obj.paramsType = message.paramsType); - return obj; - }, - fromPartial(object: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - votingParams: undefined, - depositParams: undefined, - tallyParams: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined, - depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined, - tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.votingParams !== undefined && (obj.votingParams = message.votingParams ? VotingParams.toJSON(message.votingParams) : undefined); - message.depositParams !== undefined && (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined); - message.tallyParams !== undefined && (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest(): QueryDepositRequest { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -export const QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - encode(message: QueryDepositRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "" - }; - }, - toJSON(message: QueryDepositRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - return obj; - }, - fromPartial(object: Partial): QueryDepositRequest { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest { - return QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryDepositRequest", - value: QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest { - return QueryDepositRequest.decode(message.value); - }, - toProto(message: QueryDepositRequest): Uint8Array { - return QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - value: QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse(): QueryDepositResponse { - return { - deposit: undefined - }; -} -export const QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - encode(message: QueryDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.deposit !== undefined) { - Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositResponse { - return { - deposit: isSet(object.deposit) ? Deposit.fromJSON(object.deposit) : undefined - }; - }, - toJSON(message: QueryDepositResponse): unknown { - const obj: any = {}; - message.deposit !== undefined && (obj.deposit = message.deposit ? Deposit.toJSON(message.deposit) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositResponse { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino { - const obj: any = {}; - obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse { - return QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryDepositResponse", - value: QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse { - return QueryDepositResponse.decode(message.value); - }, - toProto(message: QueryDepositResponse): Uint8Array { - return QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - value: QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest(): QueryDepositsRequest { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - encode(message: QueryDepositsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositsRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDepositsRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositsRequest { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest { - return QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryDepositsRequest", - value: QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest { - return QueryDepositsRequest.decode(message.value); - }, - toProto(message: QueryDepositsRequest): Uint8Array { - return QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - value: QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse(): QueryDepositsResponse { - return { - deposits: [], - pagination: undefined - }; -} -export const QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - encode(message: QueryDepositsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositsResponse { - return { - deposits: Array.isArray(object?.deposits) ? object.deposits.map((e: any) => Deposit.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDepositsResponse): unknown { - const obj: any = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toJSON(e) : undefined); - } else { - obj.deposits = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositsResponse { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino { - const obj: any = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse { - return QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryDepositsResponse", - value: QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse { - return QueryDepositsResponse.decode(message.value); - }, - toProto(message: QueryDepositsResponse): Uint8Array { - return QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - value: QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryTallyResultRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { - return { - type: "cosmos-sdk/v1/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message: QueryTallyResultRequest): Uint8Array { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { - return { - tally: undefined - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultResponse { - return { - tally: isSet(object.tally) ? TallyResult.fromJSON(object.tally) : undefined - }; - }, - toJSON(message: QueryTallyResultResponse): unknown { - const obj: any = {}; - message.tally !== undefined && (obj.tally = message.tally ? TallyResult.toJSON(message.tally) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { - const obj: any = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { - return { - type: "cosmos-sdk/v1/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message: QueryTallyResultResponse): Uint8Array { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/tx.amino.ts b/packages/api/src/codegen/cosmos/gov/v1/tx.amino.ts deleted file mode 100644 index 33fcf209..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/tx.amino.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const AminoConverter = { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/v1/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", - toAmino: MsgExecLegacyContent.toAmino, - fromAmino: MsgExecLegacyContent.fromAmino - }, - "/cosmos.gov.v1.MsgVote": { - aminoType: "cosmos-sdk/v1/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/v1/MsgVoteWeighted", - toAmino: MsgVoteWeighted.toAmino, - fromAmino: MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1.MsgDeposit": { - aminoType: "cosmos-sdk/v1/MsgDeposit", - toAmino: MsgDeposit.toAmino, - fromAmino: MsgDeposit.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/tx.registry.ts b/packages/api/src/codegen/cosmos/gov/v1/tx.registry.ts deleted file mode 100644 index ffd5c163..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/tx.registry.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.encode(value).finish() - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value - }; - } - }, - toJSON: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.toJSON(value) - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.toJSON(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.toJSON(value) - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.toJSON(value) - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.toJSON(value) - }; - } - }, - fromJSON: { - submitProposal(value: any) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromJSON(value) - }; - }, - execLegacyContent(value: any) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.fromJSON(value) - }; - }, - vote(value: any) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.fromJSON(value) - }; - }, - voteWeighted(value: any) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.fromJSON(value) - }; - }, - deposit(value: any) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.fromJSON(value) - }; - } - }, - fromPartial: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.fromPartial(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts deleted file mode 100644 index 2a8605ee..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the gov Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** - * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal - * to execute a legacy content-based proposal. - */ - execLegacyContent(request: MsgExecLegacyContent): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.execLegacyContent = this.execLegacyContent.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request: MsgSubmitProposal): Promise { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - execLegacyContent(request: MsgExecLegacyContent): Promise { - const data = MsgExecLegacyContent.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); - return promise.then(data => MsgExecLegacyContentResponse.decode(new BinaryReader(data))); - } - vote(request: MsgVote): Promise { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - voteWeighted(request: MsgVoteWeighted): Promise { - const data = MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); - return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); - } - deposit(request: MsgDeposit): Promise { - const data = MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); - return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1/tx.ts b/packages/api/src/codegen/cosmos/gov/v1/tx.ts deleted file mode 100644 index 70193014..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1/tx.ts +++ /dev/null @@ -1,1195 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, voteOptionFromJSON, voteOptionToJSON } from "./gov"; -import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - messages?: AnyAmino[]; - initial_deposit?: CoinAmino[]; - proposer?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content?: TextProposal | Any | undefined; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; - value: Uint8Array; -} -export type MsgExecLegacyContentEncoded = Omit & { - /** content is the proposal's content. */content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentAmino { - /** content is the proposal's content. */ - content?: AnyAmino; - /** authority must be the gov module address. */ - authority?: string; -} -export interface MsgExecLegacyContentAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: MsgExecLegacyContentAmino; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse {} -export interface MsgExecLegacyContentResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; - value: Uint8Array; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseAmino {} -export interface MsgExecLegacyContentResponseAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; - value: MsgExecLegacyContentResponseAmino; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType {} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter?: string; - option?: VoteOption; - metadata?: string; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; - value: Uint8Array; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - metadata?: string; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/v1/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} -function createBaseMsgSubmitProposal(): MsgSubmitProposal { - return { - messages: [], - initialDeposit: [], - proposer: "", - metadata: "" - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.messages) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.initialDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposal { - return { - messages: Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [], - initialDeposit: Array.isArray(object?.initialDeposit) ? object.initialDeposit.map((e: any) => Coin.fromJSON(e)) : [], - proposer: isSet(object.proposer) ? String(object.proposer) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgSubmitProposal): unknown { - const obj: any = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.messages = []; - } - if (message.initialDeposit) { - obj.initialDeposit = message.initialDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.initialDeposit = []; - } - message.proposer !== undefined && (obj.proposer = message.proposer); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { - const obj: any = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.messages = message.messages; - } - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { - return { - type: "cosmos-sdk/v1/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message: MsgSubmitProposal): Uint8Array { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposalResponse { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgSubmitProposalResponse): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { - return { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message: MsgSubmitProposalResponse): Uint8Array { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContent(): MsgExecLegacyContent { - return { - content: undefined, - authority: "" - }; -} -export const MsgExecLegacyContent = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - encode(message: MsgExecLegacyContent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.content !== undefined) { - Any.encode((message.content as Any), writer.uint32(10).fork()).ldelim(); - } - if (message.authority !== "") { - writer.uint32(18).string(message.authority); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = (Content_InterfaceDecoder(reader) as Any); - break; - case 2: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgExecLegacyContent { - return { - content: isSet(object.content) ? Any.fromJSON(object.content) : undefined, - authority: isSet(object.authority) ? String(object.authority) : "" - }; - }, - toJSON(message: MsgExecLegacyContent): unknown { - const obj: any = {}; - message.content !== undefined && (obj.content = message.content ? Any.toJSON(message.content) : undefined); - message.authority !== undefined && (obj.authority = message.authority); - return obj; - }, - fromPartial(object: Partial): MsgExecLegacyContent { - const message = createBaseMsgExecLegacyContent(); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent { - const message = createBaseMsgExecLegacyContent(); - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino { - const obj: any = {}; - obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent { - return MsgExecLegacyContent.fromAmino(object.value); - }, - toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContent", - value: MsgExecLegacyContent.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent { - return MsgExecLegacyContent.decode(message.value); - }, - toProto(message: MsgExecLegacyContent): Uint8Array { - return MsgExecLegacyContent.encode(message).finish(); - }, - toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContentResponse(): MsgExecLegacyContentResponse { - return {}; -} -export const MsgExecLegacyContentResponse = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - encode(_: MsgExecLegacyContentResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContentResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgExecLegacyContentResponse { - return {}; - }, - toJSON(_: MsgExecLegacyContentResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgExecLegacyContentResponse { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse { - return MsgExecLegacyContentResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", - value: MsgExecLegacyContentResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse { - return MsgExecLegacyContentResponse.decode(message.value); - }, - toProto(message: MsgExecLegacyContentResponse): Uint8Array { - return MsgExecLegacyContentResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - value: MsgExecLegacyContentResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote(): MsgVote { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "" - }; -} -export const MsgVote = { - typeUrl: "/cosmos.gov.v1.MsgVote", - encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgVote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgVote { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgVoteAmino): MsgVote { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgVote): MsgVoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message: MsgVote): MsgVoteAminoMsg { - return { - type: "cosmos-sdk/v1/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { - return MsgVote.decode(message.value); - }, - toProto(message: MsgVote): Uint8Array { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message: MsgVote): MsgVoteProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse(): MsgVoteResponse { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVoteResponse { - return {}; - }, - toJSON(_: MsgVoteResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { - return { - type: "cosmos-sdk/v1/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { - return MsgVoteResponse.decode(message.value); - }, - toProto(message: MsgVoteResponse): Uint8Array { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted(): MsgVoteWeighted { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -export const MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVoteWeighted { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - options: Array.isArray(object?.options) ? object.options.map((e: any) => WeightedVoteOption.fromJSON(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgVoteWeighted): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toJSON(e) : undefined); - } else { - obj.options = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgVoteWeighted { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted { - return MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg { - return { - type: "cosmos-sdk/v1/MsgVoteWeighted", - value: MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted { - return MsgVoteWeighted.decode(message.value); - }, - toProto(message: MsgVoteWeighted): Uint8Array { - return MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse { - return {}; -} -export const MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVoteWeightedResponse { - return {}; - }, - toJSON(_: MsgVoteWeightedResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVoteWeightedResponse { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse { - return MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg { - return { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse { - return MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message: MsgVoteWeightedResponse): Uint8Array { - return MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit(): MsgDeposit { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const MsgDeposit = { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDeposit { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgDeposit): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgDeposit { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgDepositAmino): MsgDeposit { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgDeposit): MsgDepositAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit { - return MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg { - return { - type: "cosmos-sdk/v1/MsgDeposit", - value: MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit { - return MsgDeposit.decode(message.value); - }, - toProto(message: MsgDeposit): Uint8Array { - return MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse(): MsgDepositResponse { - return {}; -} -export const MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgDepositResponse { - return {}; - }, - toJSON(_: MsgDepositResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgDepositResponse { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse { - return MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg { - return { - type: "cosmos-sdk/v1/MsgDepositResponse", - value: MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse { - return MsgDepositResponse.decode(message.value); - }, - toProto(message: MsgDepositResponse): Uint8Array { - return MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - value: MsgDepositResponse.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/v1/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/v1/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/genesis.ts deleted file mode 100644 index 8392b130..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/genesis.ts +++ /dev/null @@ -1,236 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: DepositParams.fromPartial({}), - votingParams: VotingParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - startingProposalId: isSet(object.startingProposalId) ? BigInt(object.startingProposalId.toString()) : BigInt(0), - deposits: Array.isArray(object?.deposits) ? object.deposits.map((e: any) => Deposit.fromJSON(e)) : [], - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined, - votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined, - tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.startingProposalId !== undefined && (obj.startingProposalId = (message.startingProposalId || BigInt(0)).toString()); - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toJSON(e) : undefined); - } else { - obj.deposits = []; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - message.depositParams !== undefined && (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined); - message.votingParams !== undefined && (obj.votingParams = message.votingParams ? VotingParams.toJSON(message.votingParams) : undefined); - message.tallyParams !== undefined && (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts deleted file mode 100644 index 35a08ce9..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/gov.ts +++ /dev/null @@ -1,1545 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -import { isSet, fromJsonTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; - value: Uint8Array; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposal { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -export interface TextProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TextProposal"; - value: Uint8Array; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalAmino { - title?: string; - description?: string; -} -export interface TextProposalAminoMsg { - type: "cosmos-sdk/TextProposal"; - value: TextProposalAmino; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalSDKType { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - proposalId: bigint; - content?: TextProposal | Any | undefined; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult: TallyResult; - submitTime: Timestamp; - depositEndTime: Timestamp; - totalDeposit: Coin[]; - votingStartTime: Timestamp; - votingEndTime: Timestamp; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Proposal"; - value: Uint8Array; -} -export type ProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - proposal_id?: string; - content?: AnyAmino; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - proposal_id: bigint; - content?: TextProposalSDKType | AnySDKType | undefined; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: TimestampSDKType; - deposit_end_time: TimestampSDKType; - total_deposit: CoinSDKType[]; - voting_start_time: TimestampSDKType; - voting_end_time: TimestampSDKType; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yes: string; - abstain: string; - no: string; - noWithVeto: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOption[]; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter?: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option?: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options?: WeightedVoteOptionAmino[]; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - /** @deprecated */ - option: VoteOption; - options: WeightedVoteOptionSDKType[]; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: Uint8Array; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: Uint8Array; - threshold: Uint8Array; - veto_threshold: Uint8Array; -} -function createBaseWeightedVoteOption(): WeightedVoteOption { - return { - option: 0, - weight: "" - }; -} -export const WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - encode(message: WeightedVoteOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.weight, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = (reader.int32() as any); - break; - case 2: - message.weight = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): WeightedVoteOption { - return { - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - weight: isSet(object.weight) ? String(object.weight) : "" - }; - }, - toJSON(message: WeightedVoteOption): unknown { - const obj: any = {}; - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - message.weight !== undefined && (obj.weight = message.weight); - return obj; - }, - fromPartial(object: Partial): WeightedVoteOption { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino { - const obj: any = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption { - return WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg { - return { - type: "cosmos-sdk/WeightedVoteOption", - value: WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption { - return WeightedVoteOption.decode(message.value); - }, - toProto(message: WeightedVoteOption): Uint8Array { - return WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - value: WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseTextProposal(): TextProposal { - return { - $typeUrl: "/cosmos.gov.v1beta1.TextProposal", - title: "", - description: "" - }; -} -export const TextProposal = { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - encode(message: TextProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TextProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTextProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TextProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "" - }; - }, - toJSON(message: TextProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - return obj; - }, - fromPartial(object: Partial): TextProposal { - const message = createBaseTextProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object: TextProposalAmino): TextProposal { - const message = createBaseTextProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message: TextProposal): TextProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object: TextProposalAminoMsg): TextProposal { - return TextProposal.fromAmino(object.value); - }, - toAminoMsg(message: TextProposal): TextProposalAminoMsg { - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(message) - }; - }, - fromProtoMsg(message: TextProposalProtoMsg): TextProposal { - return TextProposal.decode(message.value); - }, - toProto(message: TextProposal): Uint8Array { - return TextProposal.encode(message).finish(); - }, - toProtoMsg(message: TextProposal): TextProposalProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(message).finish() - }; - } -}; -function createBaseDeposit(): Deposit { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const Deposit = { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - encode(message: Deposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Deposit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Deposit { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Deposit): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): Deposit { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: DepositAmino): Deposit { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Deposit): DepositAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: DepositAminoMsg): Deposit { - return Deposit.fromAmino(object.value); - }, - toAminoMsg(message: Deposit): DepositAminoMsg { - return { - type: "cosmos-sdk/Deposit", - value: Deposit.toAmino(message) - }; - }, - fromProtoMsg(message: DepositProtoMsg): Deposit { - return Deposit.decode(message.value); - }, - toProto(message: Deposit): Uint8Array { - return Deposit.encode(message).finish(); - }, - toProtoMsg(message: Deposit): DepositProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - value: Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal(): Proposal { - return { - proposalId: BigInt(0), - content: undefined, - status: 0, - finalTallyResult: TallyResult.fromPartial({}), - submitTime: Timestamp.fromPartial({}), - depositEndTime: Timestamp.fromPartial({}), - totalDeposit: [], - votingStartTime: Timestamp.fromPartial({}), - votingEndTime: Timestamp.fromPartial({}) - }; -} -export const Proposal = { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.content !== undefined) { - Any.encode((message.content as Any), writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - Timestamp.encode(message.submitTime, writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - Timestamp.encode(message.depositEndTime, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - Coin.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - Timestamp.encode(message.votingStartTime, writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - Timestamp.encode(message.votingEndTime, writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Proposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.content = (Content_InterfaceDecoder(reader) as Any); - break; - case 3: - message.status = (reader.int32() as any); - break; - case 4: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.depositEndTime = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.totalDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.votingEndTime = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Proposal { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - content: isSet(object.content) ? Any.fromJSON(object.content) : undefined, - status: isSet(object.status) ? proposalStatusFromJSON(object.status) : -1, - finalTallyResult: isSet(object.finalTallyResult) ? TallyResult.fromJSON(object.finalTallyResult) : undefined, - submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined, - depositEndTime: isSet(object.depositEndTime) ? fromJsonTimestamp(object.depositEndTime) : undefined, - totalDeposit: Array.isArray(object?.totalDeposit) ? object.totalDeposit.map((e: any) => Coin.fromJSON(e)) : [], - votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined, - votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined - }; - }, - toJSON(message: Proposal): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.content !== undefined && (obj.content = message.content ? Any.toJSON(message.content) : undefined); - message.status !== undefined && (obj.status = proposalStatusToJSON(message.status)); - message.finalTallyResult !== undefined && (obj.finalTallyResult = message.finalTallyResult ? TallyResult.toJSON(message.finalTallyResult) : undefined); - message.submitTime !== undefined && (obj.submitTime = fromTimestamp(message.submitTime).toISOString()); - message.depositEndTime !== undefined && (obj.depositEndTime = fromTimestamp(message.depositEndTime).toISOString()); - if (message.totalDeposit) { - obj.totalDeposit = message.totalDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.totalDeposit = []; - } - message.votingStartTime !== undefined && (obj.votingStartTime = fromTimestamp(message.votingStartTime).toISOString()); - message.votingEndTime !== undefined && (obj.votingEndTime = fromTimestamp(message.votingEndTime).toISOString()); - return obj; - }, - fromPartial(object: Partial): Proposal { - const message = createBaseProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime !== undefined && object.submitTime !== null ? Timestamp.fromPartial(object.submitTime) : undefined; - message.depositEndTime = object.depositEndTime !== undefined && object.depositEndTime !== null ? Timestamp.fromPartial(object.depositEndTime) : undefined; - message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime !== undefined && object.votingStartTime !== null ? Timestamp.fromPartial(object.votingStartTime) : undefined; - message.votingEndTime = object.votingEndTime !== undefined && object.votingEndTime !== null ? Timestamp.fromPartial(object.votingEndTime) : undefined; - return message; - }, - fromAmino(object: ProposalAmino): Proposal { - const message = createBaseProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = Timestamp.fromAmino(object.submit_time); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = Timestamp.fromAmino(object.deposit_end_time); - } - message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = Timestamp.fromAmino(object.voting_start_time); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = Timestamp.fromAmino(object.voting_end_time); - } - return message; - }, - toAmino(message: Proposal): ProposalAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? Timestamp.toAmino(message.submitTime) : undefined; - obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(message.depositEndTime) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(message.votingStartTime) : undefined; - obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(message.votingEndTime) : undefined; - return obj; - }, - fromAminoMsg(object: ProposalAminoMsg): Proposal { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message: Proposal): ProposalAminoMsg { - return { - type: "cosmos-sdk/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message: ProposalProtoMsg): Proposal { - return Proposal.decode(message.value); - }, - toProto(message: Proposal): Uint8Array { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message: Proposal): ProposalProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult(): TallyResult { - return { - yes: "", - abstain: "", - no: "", - noWithVeto: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.yes !== "") { - writer.uint32(10).string(message.yes); - } - if (message.abstain !== "") { - writer.uint32(18).string(message.abstain); - } - if (message.no !== "") { - writer.uint32(26).string(message.no); - } - if (message.noWithVeto !== "") { - writer.uint32(34).string(message.noWithVeto); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yes = reader.string(); - break; - case 2: - message.abstain = reader.string(); - break; - case 3: - message.no = reader.string(); - break; - case 4: - message.noWithVeto = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TallyResult { - return { - yes: isSet(object.yes) ? String(object.yes) : "", - abstain: isSet(object.abstain) ? String(object.abstain) : "", - no: isSet(object.no) ? String(object.no) : "", - noWithVeto: isSet(object.noWithVeto) ? String(object.noWithVeto) : "" - }; - }, - toJSON(message: TallyResult): unknown { - const obj: any = {}; - message.yes !== undefined && (obj.yes = message.yes); - message.abstain !== undefined && (obj.abstain = message.abstain); - message.no !== undefined && (obj.no = message.no); - message.noWithVeto !== undefined && (obj.noWithVeto = message.noWithVeto); - return obj; - }, - fromPartial(object: Partial): TallyResult { - const message = createBaseTallyResult(); - message.yes = object.yes ?? ""; - message.abstain = object.abstain ?? ""; - message.no = object.no ?? ""; - message.noWithVeto = object.noWithVeto ?? ""; - return message; - }, - fromAmino(object: TallyResultAmino): TallyResult { - const message = createBaseTallyResult(); - if (object.yes !== undefined && object.yes !== null) { - message.yes = object.yes; - } - if (object.abstain !== undefined && object.abstain !== null) { - message.abstain = object.abstain; - } - if (object.no !== undefined && object.no !== null) { - message.no = object.no; - } - if (object.no_with_veto !== undefined && object.no_with_veto !== null) { - message.noWithVeto = object.no_with_veto; - } - return message; - }, - toAmino(message: TallyResult): TallyResultAmino { - const obj: any = {}; - obj.yes = message.yes === "" ? undefined : message.yes; - obj.abstain = message.abstain === "" ? undefined : message.abstain; - obj.no = message.no === "" ? undefined : message.no; - obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; - return obj; - }, - fromAminoMsg(object: TallyResultAminoMsg): TallyResult { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message: TallyResult): TallyResultAminoMsg { - return { - type: "cosmos-sdk/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message: TallyResultProtoMsg): TallyResult { - return TallyResult.decode(message.value); - }, - toProto(message: TallyResult): Uint8Array { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message: TallyResult): TallyResultProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote(): Vote { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - options: [] - }; -} -export const Vote = { - typeUrl: "/cosmos.gov.v1beta1.Vote", - encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Vote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Vote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - options: Array.isArray(object?.options) ? object.options.map((e: any) => WeightedVoteOption.fromJSON(e)) : [] - }; - }, - toJSON(message: Vote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toJSON(e) : undefined); - } else { - obj.options = []; - } - return obj; - }, - fromPartial(object: Partial): Vote { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: VoteAmino): Vote { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: Vote): VoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object: VoteAminoMsg): Vote { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message: Vote): VoteAminoMsg { - return { - type: "cosmos-sdk/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message: VoteProtoMsg): Vote { - return Vote.decode(message.value); - }, - toProto(message: Vote): Uint8Array { - return Vote.encode(message).finish(); - }, - toProtoMsg(message: Vote): VoteProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams(): DepositParams { - return { - minDeposit: [], - maxDepositPeriod: Duration.fromPartial({}) - }; -} -export const DepositParams = { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - encode(message: DepositParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.minDeposit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DepositParams { - return { - minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e: any) => Coin.fromJSON(e)) : [], - maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined - }; - }, - toJSON(message: DepositParams): unknown { - const obj: any = {}; - if (message.minDeposit) { - obj.minDeposit = message.minDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.minDeposit = []; - } - message.maxDepositPeriod !== undefined && (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined); - return obj; - }, - fromPartial(object: Partial): DepositParams { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object: DepositParamsAmino): DepositParams { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message: DepositParams): DepositParamsAmino { - const obj: any = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams { - return DepositParams.fromAmino(object.value); - }, - toAminoMsg(message: DepositParams): DepositParamsAminoMsg { - return { - type: "cosmos-sdk/DepositParams", - value: DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams { - return DepositParams.decode(message.value); - }, - toProto(message: DepositParams): Uint8Array { - return DepositParams.encode(message).finish(); - }, - toProtoMsg(message: DepositParams): DepositParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - value: DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams(): VotingParams { - return { - votingPeriod: Duration.fromPartial({}) - }; -} -export const VotingParams = { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - encode(message: VotingParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): VotingParams { - return { - votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined - }; - }, - toJSON(message: VotingParams): unknown { - const obj: any = {}; - message.votingPeriod !== undefined && (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined); - return obj; - }, - fromPartial(object: Partial): VotingParams { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object: VotingParamsAmino): VotingParams { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message: VotingParams): VotingParamsAmino { - const obj: any = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams { - return VotingParams.fromAmino(object.value); - }, - toAminoMsg(message: VotingParams): VotingParamsAminoMsg { - return { - type: "cosmos-sdk/VotingParams", - value: VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams { - return VotingParams.decode(message.value); - }, - toProto(message: VotingParams): Uint8Array { - return VotingParams.encode(message).finish(); - }, - toProtoMsg(message: VotingParams): VotingParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - value: VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams(): TallyParams { - return { - quorum: new Uint8Array(), - threshold: new Uint8Array(), - vetoThreshold: new Uint8Array() - }; -} -export const TallyParams = { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - encode(message: TallyParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.quorum.length !== 0) { - writer.uint32(10).bytes(message.quorum); - } - if (message.threshold.length !== 0) { - writer.uint32(18).bytes(message.threshold); - } - if (message.vetoThreshold.length !== 0) { - writer.uint32(26).bytes(message.vetoThreshold); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.bytes(); - break; - case 2: - message.threshold = reader.bytes(); - break; - case 3: - message.vetoThreshold = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TallyParams { - return { - quorum: isSet(object.quorum) ? bytesFromBase64(object.quorum) : new Uint8Array(), - threshold: isSet(object.threshold) ? bytesFromBase64(object.threshold) : new Uint8Array(), - vetoThreshold: isSet(object.vetoThreshold) ? bytesFromBase64(object.vetoThreshold) : new Uint8Array() - }; - }, - toJSON(message: TallyParams): unknown { - const obj: any = {}; - message.quorum !== undefined && (obj.quorum = base64FromBytes(message.quorum !== undefined ? message.quorum : new Uint8Array())); - message.threshold !== undefined && (obj.threshold = base64FromBytes(message.threshold !== undefined ? message.threshold : new Uint8Array())); - message.vetoThreshold !== undefined && (obj.vetoThreshold = base64FromBytes(message.vetoThreshold !== undefined ? message.vetoThreshold : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): TallyParams { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? new Uint8Array(); - message.threshold = object.threshold ?? new Uint8Array(); - message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); - return message; - }, - fromAmino(object: TallyParamsAmino): TallyParams { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = bytesFromBase64(object.quorum); - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = bytesFromBase64(object.threshold); - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = bytesFromBase64(object.veto_threshold); - } - return message; - }, - toAmino(message: TallyParams): TallyParamsAmino { - const obj: any = {}; - obj.quorum = message.quorum ? base64FromBytes(message.quorum) : undefined; - obj.threshold = message.threshold ? base64FromBytes(message.threshold) : undefined; - obj.veto_threshold = message.vetoThreshold ? base64FromBytes(message.vetoThreshold) : undefined; - return obj; - }, - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams { - return TallyParams.fromAmino(object.value); - }, - toAminoMsg(message: TallyParams): TallyParamsAminoMsg { - return { - type: "cosmos-sdk/TallyParams", - value: TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams { - return TallyParams.decode(message.value); - }, - toProto(message: TallyParams): Uint8Array { - return TallyParams.encode(message).finish(); - }, - toProtoMsg(message: TallyParams): TallyParamsProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - value: TallyParams.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/query.lcd.ts deleted file mode 100644 index eeaf06a3..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params: QueryProposalRequest): Promise { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params: QueryProposalsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params: QueryVoteRequest): Promise { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params: QueryVotesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params: QueryParamsRequest): Promise { - const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params: QueryDepositRequest): Promise { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params: QueryDepositsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params: QueryTallyResultRequest): Promise { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts deleted file mode 100644 index ead5910b..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request: QueryProposalRequest): Promise { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposals(request: QueryProposalsRequest): Promise { - const data = QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); - return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); - } - vote(request: QueryVoteRequest): Promise { - const data = QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); - return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); - } - votes(request: QueryVotesRequest): Promise { - const data = QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); - return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - deposit(request: QueryDepositRequest): Promise { - const data = QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); - return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); - } - deposits(request: QueryDepositsRequest): Promise { - const data = QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); - return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); - } - tallyResult(request: QueryTallyResultRequest): Promise { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request: QueryProposalRequest): Promise { - return queryService.proposal(request); - }, - proposals(request: QueryProposalsRequest): Promise { - return queryService.proposals(request); - }, - vote(request: QueryVoteRequest): Promise { - return queryService.vote(request); - }, - votes(request: QueryVotesRequest): Promise { - return queryService.votes(request); - }, - params(request: QueryParamsRequest): Promise { - return queryService.params(request); - }, - deposit(request: QueryDepositRequest): Promise { - return queryService.deposit(request); - }, - deposits(request: QueryDepositsRequest): Promise { - return queryService.deposits(request); - }, - tallyResult(request: QueryTallyResultRequest): Promise { - return queryService.tallyResult(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/query.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/query.ts deleted file mode 100644 index 7c35fb55..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/query.ts +++ /dev/null @@ -1,1875 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType, proposalStatusFromJSON, proposalStatusToJSON } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -function createBaseQueryProposalRequest(): QueryProposalRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryProposalRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { - return QueryProposalRequest.decode(message.value); - }, - toProto(message: QueryProposalRequest): Uint8Array { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse(): QueryProposalResponse { - return { - proposal: Proposal.fromPartial({}) - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalResponse { - return { - proposal: isSet(object.proposal) ? Proposal.fromJSON(object.proposal) : undefined - }; - }, - toJSON(message: QueryProposalResponse): unknown { - const obj: any = {}; - message.proposal !== undefined && (obj.proposal = message.proposal ? Proposal.toJSON(message.proposal) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { - const obj: any = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { - return QueryProposalResponse.decode(message.value); - }, - toProto(message: QueryProposalResponse): Uint8Array { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest(): QueryProposalsRequest { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -export const QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - encode(message: QueryProposalsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = (reader.int32() as any); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsRequest { - return { - proposalStatus: isSet(object.proposalStatus) ? proposalStatusFromJSON(object.proposalStatus) : -1, - voter: isSet(object.voter) ? String(object.voter) : "", - depositor: isSet(object.depositor) ? String(object.depositor) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsRequest): unknown { - const obj: any = {}; - message.proposalStatus !== undefined && (obj.proposalStatus = proposalStatusToJSON(message.proposalStatus)); - message.voter !== undefined && (obj.voter = message.voter); - message.depositor !== undefined && (obj.depositor = message.depositor); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsRequest { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino { - const obj: any = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest { - return QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryProposalsRequest", - value: QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest { - return QueryProposalsRequest.decode(message.value); - }, - toProto(message: QueryProposalsRequest): Uint8Array { - return QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - value: QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse(): QueryProposalsResponse { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - encode(message: QueryProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsResponse { - return { - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsResponse): unknown { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsResponse { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse { - return QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryProposalsResponse", - value: QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse { - return QueryProposalsResponse.decode(message.value); - }, - toProto(message: QueryProposalsResponse): Uint8Array { - return QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - value: QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest(): QueryVoteRequest { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - encode(message: QueryVoteRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "" - }; - }, - toJSON(message: QueryVoteRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - return obj; - }, - fromPartial(object: Partial): QueryVoteRequest { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest { - return QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg { - return { - type: "cosmos-sdk/QueryVoteRequest", - value: QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest { - return QueryVoteRequest.decode(message.value); - }, - toProto(message: QueryVoteRequest): Uint8Array { - return QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - value: QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse(): QueryVoteResponse { - return { - vote: Vote.fromPartial({}) - }; -} -export const QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - encode(message: QueryVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteResponse { - return { - vote: isSet(object.vote) ? Vote.fromJSON(object.vote) : undefined - }; - }, - toJSON(message: QueryVoteResponse): unknown { - const obj: any = {}; - message.vote !== undefined && (obj.vote = message.vote ? Vote.toJSON(message.vote) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVoteResponse { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino { - const obj: any = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse { - return QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg { - return { - type: "cosmos-sdk/QueryVoteResponse", - value: QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse { - return QueryVoteResponse.decode(message.value); - }, - toProto(message: QueryVoteResponse): Uint8Array { - return QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - value: QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest(): QueryVotesRequest { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - encode(message: QueryVotesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesRequest { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest { - return QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryVotesRequest", - value: QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest { - return QueryVotesRequest.decode(message.value); - }, - toProto(message: QueryVotesRequest): Uint8Array { - return QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - value: QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse(): QueryVotesResponse { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - encode(message: QueryVotesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesResponse { - return { - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesResponse): unknown { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesResponse { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse { - return QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryVotesResponse", - value: QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse { - return QueryVotesResponse.decode(message.value); - }, - toProto(message: QueryVotesResponse): Uint8Array { - return QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - value: QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return { - paramsType: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsRequest { - return { - paramsType: isSet(object.paramsType) ? String(object.paramsType) : "" - }; - }, - toJSON(message: QueryParamsRequest): unknown { - const obj: any = {}; - message.paramsType !== undefined && (obj.paramsType = message.paramsType); - return obj; - }, - fromPartial(object: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - votingParams: VotingParams.fromPartial({}), - depositParams: DepositParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined, - depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined, - tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.votingParams !== undefined && (obj.votingParams = message.votingParams ? VotingParams.toJSON(message.votingParams) : undefined); - message.depositParams !== undefined && (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined); - message.tallyParams !== undefined && (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest(): QueryDepositRequest { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -export const QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - encode(message: QueryDepositRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "" - }; - }, - toJSON(message: QueryDepositRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - return obj; - }, - fromPartial(object: Partial): QueryDepositRequest { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest { - return QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDepositRequest", - value: QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest { - return QueryDepositRequest.decode(message.value); - }, - toProto(message: QueryDepositRequest): Uint8Array { - return QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - value: QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse(): QueryDepositResponse { - return { - deposit: Deposit.fromPartial({}) - }; -} -export const QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - encode(message: QueryDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.deposit !== undefined) { - Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositResponse { - return { - deposit: isSet(object.deposit) ? Deposit.fromJSON(object.deposit) : undefined - }; - }, - toJSON(message: QueryDepositResponse): unknown { - const obj: any = {}; - message.deposit !== undefined && (obj.deposit = message.deposit ? Deposit.toJSON(message.deposit) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositResponse { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino { - const obj: any = {}; - obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse { - return QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDepositResponse", - value: QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse { - return QueryDepositResponse.decode(message.value); - }, - toProto(message: QueryDepositResponse): Uint8Array { - return QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - value: QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest(): QueryDepositsRequest { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - encode(message: QueryDepositsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositsRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDepositsRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositsRequest { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest { - return QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDepositsRequest", - value: QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest { - return QueryDepositsRequest.decode(message.value); - }, - toProto(message: QueryDepositsRequest): Uint8Array { - return QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - value: QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse(): QueryDepositsResponse { - return { - deposits: [], - pagination: undefined - }; -} -export const QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - encode(message: QueryDepositsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDepositsResponse { - return { - deposits: Array.isArray(object?.deposits) ? object.deposits.map((e: any) => Deposit.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDepositsResponse): unknown { - const obj: any = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toJSON(e) : undefined); - } else { - obj.deposits = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDepositsResponse { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino { - const obj: any = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse { - return QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDepositsResponse", - value: QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse { - return QueryDepositsResponse.decode(message.value); - }, - toProto(message: QueryDepositsResponse): Uint8Array { - return QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - value: QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryTallyResultRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message: QueryTallyResultRequest): Uint8Array { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultResponse { - return { - tally: isSet(object.tally) ? TallyResult.fromJSON(object.tally) : undefined - }; - }, - toJSON(message: QueryTallyResultResponse): unknown { - const obj: any = {}; - message.tally !== undefined && (obj.tally = message.tally ? TallyResult.toJSON(message.tally) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { - const obj: any = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message: QueryTallyResultResponse): Uint8Array { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.amino.ts deleted file mode 100644 index 1d618905..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const AminoConverter = { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: "cosmos-sdk/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/MsgVoteWeighted", - toAmino: MsgVoteWeighted.toAmino, - fromAmino: MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: "cosmos-sdk/MsgDeposit", - toAmino: MsgDeposit.toAmino, - fromAmino: MsgDeposit.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.registry.ts deleted file mode 100644 index 6941cf19..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value - }; - } - }, - toJSON: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.toJSON(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.toJSON(value) - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.toJSON(value) - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.toJSON(value) - }; - } - }, - fromJSON: { - submitProposal(value: any) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.fromJSON(value) - }; - }, - vote(value: any) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.fromJSON(value) - }; - }, - voteWeighted(value: any) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.fromJSON(value) - }; - }, - deposit(value: any) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.fromJSON(value) - }; - } - }, - fromPartial: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 92982883..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** - * VoteWeighted defines a method to add a weighted vote on a specific proposal. - * - * Since: cosmos-sdk 0.43 - */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request: MsgSubmitProposal): Promise { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - vote(request: MsgVote): Promise { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - voteWeighted(request: MsgVoteWeighted): Promise { - const data = MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); - return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); - } - deposit(request: MsgDeposit): Promise { - const data = MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); - return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts deleted file mode 100644 index 41de5ead..00000000 --- a/packages/api/src/codegen/cosmos/gov/v1beta1/tx.ts +++ /dev/null @@ -1,953 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType, voteOptionFromJSON, voteOptionToJSON } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - content?: TextProposal | Any | undefined; - initialDeposit: Coin[]; - proposer: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; - value: Uint8Array; -} -export type MsgSubmitProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - content?: AnyAmino; - initial_deposit?: CoinAmino[]; - proposer?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - initial_deposit: CoinSDKType[]; - proposer: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id?: string; - voter?: string; - option?: VoteOption; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; - value: Uint8Array; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponse {} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseAmino {} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino {} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} -function createBaseMsgSubmitProposal(): MsgSubmitProposal { - return { - content: undefined, - initialDeposit: [], - proposer: "" - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.content !== undefined) { - Any.encode((message.content as Any), writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = (Content_InterfaceDecoder(reader) as Any); - break; - case 2: - message.initialDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposal { - return { - content: isSet(object.content) ? Any.fromJSON(object.content) : undefined, - initialDeposit: Array.isArray(object?.initialDeposit) ? object.initialDeposit.map((e: any) => Coin.fromJSON(e)) : [], - proposer: isSet(object.proposer) ? String(object.proposer) : "" - }; - }, - toJSON(message: MsgSubmitProposal): unknown { - const obj: any = {}; - message.content !== undefined && (obj.content = message.content ? Any.toJSON(message.content) : undefined); - if (message.initialDeposit) { - obj.initialDeposit = message.initialDeposit.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.initialDeposit = []; - } - message.proposer !== undefined && (obj.proposer = message.proposer); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - return message; - }, - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - return message; - }, - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { - const obj: any = {}; - obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message: MsgSubmitProposal): Uint8Array { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposalResponse { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgSubmitProposalResponse): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message: MsgSubmitProposalResponse): Uint8Array { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote(): MsgVote { - return { - proposalId: BigInt(0), - voter: "", - option: 0 - }; -} -export const MsgVote = { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1 - }; - }, - toJSON(message: MsgVote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - return obj; - }, - fromPartial(object: Partial): MsgVote { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - return message; - }, - fromAmino(object: MsgVoteAmino): MsgVote { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - return message; - }, - toAmino(message: MsgVote): MsgVoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - return obj; - }, - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message: MsgVote): MsgVoteAminoMsg { - return { - type: "cosmos-sdk/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { - return MsgVote.decode(message.value); - }, - toProto(message: MsgVote): Uint8Array { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message: MsgVote): MsgVoteProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse(): MsgVoteResponse { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVoteResponse { - return {}; - }, - toJSON(_: MsgVoteResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { - return MsgVoteResponse.decode(message.value); - }, - toProto(message: MsgVoteResponse): Uint8Array { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted(): MsgVoteWeighted { - return { - proposalId: BigInt(0), - voter: "", - options: [] - }; -} -export const MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVoteWeighted { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - options: Array.isArray(object?.options) ? object.options.map((e: any) => WeightedVoteOption.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgVoteWeighted): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toJSON(e) : undefined); - } else { - obj.options = []; - } - return obj; - }, - fromPartial(object: Partial): MsgVoteWeighted { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted { - return MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg { - return { - type: "cosmos-sdk/MsgVoteWeighted", - value: MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted { - return MsgVoteWeighted.decode(message.value); - }, - toProto(message: MsgVoteWeighted): Uint8Array { - return MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse { - return {}; -} -export const MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVoteWeightedResponse { - return {}; - }, - toJSON(_: MsgVoteWeightedResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVoteWeightedResponse { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse { - return MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg { - return { - type: "cosmos-sdk/MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse { - return MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message: MsgVoteWeightedResponse): Uint8Array { - return MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit(): MsgDeposit { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const MsgDeposit = { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDeposit { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - depositor: isSet(object.depositor) ? String(object.depositor) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgDeposit): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.depositor !== undefined && (obj.depositor = message.depositor); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgDeposit { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgDepositAmino): MsgDeposit { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgDeposit): MsgDepositAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit { - return MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg { - return { - type: "cosmos-sdk/MsgDeposit", - value: MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit { - return MsgDeposit.decode(message.value); - }, - toProto(message: MsgDeposit): Uint8Array { - return MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse(): MsgDepositResponse { - return {}; -} -export const MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgDepositResponse { - return {}; - }, - toJSON(_: MsgDepositResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgDepositResponse { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse { - return MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg { - return { - type: "cosmos-sdk/MsgDepositResponse", - value: MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse { - return MsgDepositResponse.decode(message.value); - }, - toProto(message: MsgDepositResponse): Uint8Array { - return MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - value: MsgDepositResponse.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/events.ts b/packages/api/src/codegen/cosmos/group/v1/events.ts deleted file mode 100644 index 6ecd3f54..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/events.ts +++ /dev/null @@ -1,969 +0,0 @@ -import { ProposalExecutorResult, proposalExecutorResultFromJSON, proposalExecutorResultToJSON } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroup"; - value: Uint8Array; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventCreateGroupAminoMsg { - type: "cosmos-sdk/EventCreateGroup"; - value: EventCreateGroupAmino; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: bigint; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventUpdateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroup"; - value: Uint8Array; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventUpdateGroupAminoMsg { - type: "cosmos-sdk/EventUpdateGroup"; - value: EventUpdateGroupAmino; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: bigint; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; - value: Uint8Array; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventCreateGroupPolicy"; - value: EventCreateGroupPolicyAmino; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; - value: Uint8Array; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventUpdateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventUpdateGroupPolicy"; - value: EventUpdateGroupPolicyAmino; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventSubmitProposal"; - value: Uint8Array; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventSubmitProposalAminoMsg { - type: "cosmos-sdk/EventSubmitProposal"; - value: EventSubmitProposalAmino; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: bigint; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; - value: Uint8Array; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventWithdrawProposalAminoMsg { - type: "cosmos-sdk/EventWithdrawProposal"; - value: EventWithdrawProposalAmino; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: bigint; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventVoteProtoMsg { - typeUrl: "/cosmos.group.v1.EventVote"; - value: Uint8Array; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventVoteAminoMsg { - type: "cosmos-sdk/EventVote"; - value: EventVoteAmino; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: bigint; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs: string; -} -export interface EventExecProtoMsg { - typeUrl: "/cosmos.group.v1.EventExec"; - value: Uint8Array; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; - /** result is the proposal execution result. */ - result?: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs?: string; -} -export interface EventExecAminoMsg { - type: "cosmos-sdk/EventExec"; - value: EventExecAmino; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: bigint; - result: ProposalExecutorResult; - logs: string; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventLeaveGroup"; - value: Uint8Array; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** address is the account address of the group member. */ - address?: string; -} -export interface EventLeaveGroupAminoMsg { - type: "cosmos-sdk/EventLeaveGroup"; - value: EventLeaveGroupAmino; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: bigint; - address: string; -} -function createBaseEventCreateGroup(): EventCreateGroup { - return { - groupId: BigInt(0) - }; -} -export const EventCreateGroup = { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - encode(message: EventCreateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateGroup { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventCreateGroup): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventCreateGroup { - const message = createBaseEventCreateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventCreateGroupAmino): EventCreateGroup { - const message = createBaseEventCreateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message: EventCreateGroup): EventCreateGroupAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup { - return EventCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg { - return { - type: "cosmos-sdk/EventCreateGroup", - value: EventCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup { - return EventCreateGroup.decode(message.value); - }, - toProto(message: EventCreateGroup): Uint8Array { - return EventCreateGroup.encode(message).finish(); - }, - toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - value: EventCreateGroup.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroup(): EventUpdateGroup { - return { - groupId: BigInt(0) - }; -} -export const EventUpdateGroup = { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - encode(message: EventUpdateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateGroup { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventUpdateGroup): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventUpdateGroup { - const message = createBaseEventUpdateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup { - const message = createBaseEventUpdateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message: EventUpdateGroup): EventUpdateGroupAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup { - return EventUpdateGroup.fromAmino(object.value); - }, - toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg { - return { - type: "cosmos-sdk/EventUpdateGroup", - value: EventUpdateGroup.toAmino(message) - }; - }, - fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup { - return EventUpdateGroup.decode(message.value); - }, - toProto(message: EventUpdateGroup): Uint8Array { - return EventUpdateGroup.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - value: EventUpdateGroup.encode(message).finish() - }; - } -}; -function createBaseEventCreateGroupPolicy(): EventCreateGroupPolicy { - return { - address: "" - }; -} -export const EventCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - encode(message: EventCreateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateGroupPolicy { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: EventCreateGroupPolicy): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): EventCreateGroupPolicy { - const message = createBaseEventCreateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy { - const message = createBaseEventCreateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy { - return EventCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg { - return { - type: "cosmos-sdk/EventCreateGroupPolicy", - value: EventCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy { - return EventCreateGroupPolicy.decode(message.value); - }, - toProto(message: EventCreateGroupPolicy): Uint8Array { - return EventCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - value: EventCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroupPolicy(): EventUpdateGroupPolicy { - return { - address: "" - }; -} -export const EventUpdateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - encode(message: EventUpdateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateGroupPolicy { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: EventUpdateGroupPolicy): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): EventUpdateGroupPolicy { - const message = createBaseEventUpdateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy { - const message = createBaseEventUpdateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy { - return EventUpdateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg { - return { - type: "cosmos-sdk/EventUpdateGroupPolicy", - value: EventUpdateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy { - return EventUpdateGroupPolicy.decode(message.value); - }, - toProto(message: EventUpdateGroupPolicy): Uint8Array { - return EventUpdateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - value: EventUpdateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventSubmitProposal(): EventSubmitProposal { - return { - proposalId: BigInt(0) - }; -} -export const EventSubmitProposal = { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - encode(message: EventSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventSubmitProposal { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventSubmitProposal): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventSubmitProposal { - const message = createBaseEventSubmitProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal { - const message = createBaseEventSubmitProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: EventSubmitProposal): EventSubmitProposalAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal { - return EventSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg { - return { - type: "cosmos-sdk/EventSubmitProposal", - value: EventSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal { - return EventSubmitProposal.decode(message.value); - }, - toProto(message: EventSubmitProposal): Uint8Array { - return EventSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - value: EventSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseEventWithdrawProposal(): EventWithdrawProposal { - return { - proposalId: BigInt(0) - }; -} -export const EventWithdrawProposal = { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - encode(message: EventWithdrawProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventWithdrawProposal { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventWithdrawProposal): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventWithdrawProposal { - const message = createBaseEventWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal { - const message = createBaseEventWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal { - return EventWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg { - return { - type: "cosmos-sdk/EventWithdrawProposal", - value: EventWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal { - return EventWithdrawProposal.decode(message.value); - }, - toProto(message: EventWithdrawProposal): Uint8Array { - return EventWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - value: EventWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseEventVote(): EventVote { - return { - proposalId: BigInt(0) - }; -} -export const EventVote = { - typeUrl: "/cosmos.group.v1.EventVote", - encode(message: EventVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventVote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventVote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventVote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventVote { - const message = createBaseEventVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventVoteAmino): EventVote { - const message = createBaseEventVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: EventVote): EventVoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventVoteAminoMsg): EventVote { - return EventVote.fromAmino(object.value); - }, - toAminoMsg(message: EventVote): EventVoteAminoMsg { - return { - type: "cosmos-sdk/EventVote", - value: EventVote.toAmino(message) - }; - }, - fromProtoMsg(message: EventVoteProtoMsg): EventVote { - return EventVote.decode(message.value); - }, - toProto(message: EventVote): Uint8Array { - return EventVote.encode(message).finish(); - }, - toProtoMsg(message: EventVote): EventVoteProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventVote", - value: EventVote.encode(message).finish() - }; - } -}; -function createBaseEventExec(): EventExec { - return { - proposalId: BigInt(0), - result: 0, - logs: "" - }; -} -export const EventExec = { - typeUrl: "/cosmos.group.v1.EventExec", - encode(message: EventExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - if (message.logs !== "") { - writer.uint32(26).string(message.logs); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventExec { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.result = (reader.int32() as any); - break; - case 3: - message.logs = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventExec { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - result: isSet(object.result) ? proposalExecutorResultFromJSON(object.result) : -1, - logs: isSet(object.logs) ? String(object.logs) : "" - }; - }, - toJSON(message: EventExec): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.result !== undefined && (obj.result = proposalExecutorResultToJSON(message.result)); - message.logs !== undefined && (obj.logs = message.logs); - return obj; - }, - fromPartial(object: Partial): EventExec { - const message = createBaseEventExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.result = object.result ?? 0; - message.logs = object.logs ?? ""; - return message; - }, - fromAmino(object: EventExecAmino): EventExec { - const message = createBaseEventExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - if (object.logs !== undefined && object.logs !== null) { - message.logs = object.logs; - } - return message; - }, - toAmino(message: EventExec): EventExecAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.result = message.result === 0 ? undefined : message.result; - obj.logs = message.logs === "" ? undefined : message.logs; - return obj; - }, - fromAminoMsg(object: EventExecAminoMsg): EventExec { - return EventExec.fromAmino(object.value); - }, - toAminoMsg(message: EventExec): EventExecAminoMsg { - return { - type: "cosmos-sdk/EventExec", - value: EventExec.toAmino(message) - }; - }, - fromProtoMsg(message: EventExecProtoMsg): EventExec { - return EventExec.decode(message.value); - }, - toProto(message: EventExec): Uint8Array { - return EventExec.encode(message).finish(); - }, - toProtoMsg(message: EventExec): EventExecProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventExec", - value: EventExec.encode(message).finish() - }; - } -}; -function createBaseEventLeaveGroup(): EventLeaveGroup { - return { - groupId: BigInt(0), - address: "" - }; -} -export const EventLeaveGroup = { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - encode(message: EventLeaveGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventLeaveGroup { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: EventLeaveGroup): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): EventLeaveGroup { - const message = createBaseEventLeaveGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup { - const message = createBaseEventLeaveGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: EventLeaveGroup): EventLeaveGroupAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup { - return EventLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg { - return { - type: "cosmos-sdk/EventLeaveGroup", - value: EventLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup { - return EventLeaveGroup.decode(message.value); - }, - toProto(message: EventLeaveGroup): Uint8Array { - return EventLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg { - return { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - value: EventLeaveGroup.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/genesis.ts b/packages/api/src/codegen/cosmos/group/v1/genesis.ts deleted file mode 100644 index 121cf75b..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/genesis.ts +++ /dev/null @@ -1,285 +0,0 @@ -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: bigint; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: bigint; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: bigint; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.group.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateAmino { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - group_seq?: string; - /** groups is the list of groups info. */ - groups?: GroupInfoAmino[]; - /** group_members is the list of groups members. */ - group_members?: GroupMemberAmino[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - group_policy_seq?: string; - /** group_policies is the list of group policies info. */ - group_policies?: GroupPolicyInfoAmino[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposal_seq?: string; - /** proposals is the list of proposals. */ - proposals?: ProposalAmino[]; - /** votes is the list of votes. */ - votes?: VoteAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: bigint; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: bigint; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: bigint; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - groupSeq: BigInt(0), - groups: [], - groupMembers: [], - groupPolicySeq: BigInt(0), - groupPolicies: [], - proposalSeq: BigInt(0), - proposals: [], - votes: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.group.v1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupSeq !== BigInt(0)) { - writer.uint32(8).uint64(message.groupSeq); - } - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.groupMembers) { - GroupMember.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.groupPolicySeq !== BigInt(0)) { - writer.uint32(32).uint64(message.groupPolicySeq); - } - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(42).fork()).ldelim(); - } - if (message.proposalSeq !== BigInt(0)) { - writer.uint32(48).uint64(message.proposalSeq); - } - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupSeq = reader.uint64(); - break; - case 2: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 3: - message.groupMembers.push(GroupMember.decode(reader, reader.uint32())); - break; - case 4: - message.groupPolicySeq = reader.uint64(); - break; - case 5: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 6: - message.proposalSeq = reader.uint64(); - break; - case 7: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 8: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - groupSeq: isSet(object.groupSeq) ? BigInt(object.groupSeq.toString()) : BigInt(0), - groups: Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [], - groupMembers: Array.isArray(object?.groupMembers) ? object.groupMembers.map((e: any) => GroupMember.fromJSON(e)) : [], - groupPolicySeq: isSet(object.groupPolicySeq) ? BigInt(object.groupPolicySeq.toString()) : BigInt(0), - groupPolicies: Array.isArray(object?.groupPolicies) ? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e)) : [], - proposalSeq: isSet(object.proposalSeq) ? BigInt(object.proposalSeq.toString()) : BigInt(0), - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.groupSeq !== undefined && (obj.groupSeq = (message.groupSeq || BigInt(0)).toString()); - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toJSON(e) : undefined); - } else { - obj.groups = []; - } - if (message.groupMembers) { - obj.groupMembers = message.groupMembers.map(e => e ? GroupMember.toJSON(e) : undefined); - } else { - obj.groupMembers = []; - } - message.groupPolicySeq !== undefined && (obj.groupPolicySeq = (message.groupPolicySeq || BigInt(0)).toString()); - if (message.groupPolicies) { - obj.groupPolicies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toJSON(e) : undefined); - } else { - obj.groupPolicies = []; - } - message.proposalSeq !== undefined && (obj.proposalSeq = (message.proposalSeq || BigInt(0)).toString()); - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.groupMembers = object.groupMembers?.map(e => GroupMember.fromPartial(e)) || []; - message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.group_seq !== undefined && object.group_seq !== null) { - message.groupSeq = BigInt(object.group_seq); - } - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - message.groupMembers = object.group_members?.map(e => GroupMember.fromAmino(e)) || []; - if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { - message.groupPolicySeq = BigInt(object.group_policy_seq); - } - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.proposal_seq !== undefined && object.proposal_seq !== null) { - message.proposalSeq = BigInt(object.proposal_seq); - } - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } else { - obj.groups = message.groups; - } - if (message.groupMembers) { - obj.group_members = message.groupMembers.map(e => e ? GroupMember.toAmino(e) : undefined); - } else { - obj.group_members = message.groupMembers; - } - obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } else { - obj.group_policies = message.groupPolicies; - } - obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.group.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/query.lcd.ts b/packages/api/src/codegen/cosmos/group/v1/query.lcd.ts deleted file mode 100644 index ce566ae2..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/query.lcd.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* GroupInfo queries group info based on group id. */ - async groupInfo(params: QueryGroupInfoRequest): Promise { - const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; - return await this.req.get(endpoint); - } - /* GroupPolicyInfo queries group policy info based on account address of group policy. */ - async groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise { - const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; - return await this.req.get(endpoint); - } - /* GroupMembers queries members of a group */ - async groupMembers(params: QueryGroupMembersRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries groups by admin address. */ - async groupsByAdmin(params: QueryGroupsByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* GroupPoliciesByGroup queries group policies by group id. */ - async groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries group policies by admin address. */ - async groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Proposal queries a proposal based on proposal id. */ - async proposal(params: QueryProposalRequest): Promise { - const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - async proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; - return await this.req.get(endpoint, options); - } - /* VoteByProposalVoter queries a vote by proposal id and voter. */ - async voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise { - const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; - return await this.req.get(endpoint); - } - /* VotesByProposal queries a vote by proposal. */ - async votesByProposal(params: QueryVotesByProposalRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; - return await this.req.get(endpoint, options); - } - /* VotesByVoter queries a vote by voter. */ - async votesByVoter(params: QueryVotesByVoterRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; - return await this.req.get(endpoint, options); - } - /* GroupsByMember queries groups by member address. */ - async groupsByMember(params: QueryGroupsByMemberRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TallyResult returns the tally result of a proposal. If the proposal is - still in voting period, then this query computes the current tally state, - which might not be final. On the other hand, if the proposal is final, - then it simply returns the `final_tally_result` state stored in the - proposal itself. */ - async tallyResult(params: QueryTallyResultRequest): Promise { - const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/group/v1/query.rpc.Query.ts deleted file mode 100644 index 56db44e0..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/query.rpc.Query.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query is the cosmos.group.v1 Query service. */ -export interface Query { - /** GroupInfo queries group info based on group id. */ - groupInfo(request: QueryGroupInfoRequest): Promise; - /** GroupPolicyInfo queries group policy info based on account address of group policy. */ - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - /** GroupMembers queries members of a group */ - groupMembers(request: QueryGroupMembersRequest): Promise; - /** GroupsByAdmin queries groups by admin address. */ - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - /** GroupPoliciesByGroup queries group policies by group id. */ - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - /** GroupsByAdmin queries group policies by admin address. */ - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - /** Proposal queries a proposal based on proposal id. */ - proposal(request: QueryProposalRequest): Promise; - /** ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - /** VoteByProposalVoter queries a vote by proposal id and voter. */ - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - /** VotesByProposal queries a vote by proposal. */ - votesByProposal(request: QueryVotesByProposalRequest): Promise; - /** VotesByVoter queries a vote by voter. */ - votesByVoter(request: QueryVotesByVoterRequest): Promise; - /** GroupsByMember queries groups by member address. */ - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - /** - * TallyResult returns the tally result of a proposal. If the proposal is - * still in voting period, then this query computes the current tally state, - * which might not be final. On the other hand, if the proposal is final, - * then it simply returns the `final_tally_result` state stored in the - * proposal itself. - */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - groupInfo(request: QueryGroupInfoRequest): Promise { - const data = QueryGroupInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); - return promise.then(data => QueryGroupInfoResponse.decode(new BinaryReader(data))); - } - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise { - const data = QueryGroupPolicyInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); - return promise.then(data => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data))); - } - groupMembers(request: QueryGroupMembersRequest): Promise { - const data = QueryGroupMembersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); - return promise.then(data => QueryGroupMembersResponse.decode(new BinaryReader(data))); - } - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise { - const data = QueryGroupsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); - return promise.then(data => QueryGroupsByAdminResponse.decode(new BinaryReader(data))); - } - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise { - const data = QueryGroupPoliciesByGroupRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); - return promise.then(data => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data))); - } - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise { - const data = QueryGroupPoliciesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); - return promise.then(data => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data))); - } - proposal(request: QueryProposalRequest): Promise { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise { - const data = QueryProposalsByGroupPolicyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); - return promise.then(data => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data))); - } - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise { - const data = QueryVoteByProposalVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); - return promise.then(data => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data))); - } - votesByProposal(request: QueryVotesByProposalRequest): Promise { - const data = QueryVotesByProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); - return promise.then(data => QueryVotesByProposalResponse.decode(new BinaryReader(data))); - } - votesByVoter(request: QueryVotesByVoterRequest): Promise { - const data = QueryVotesByVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); - return promise.then(data => QueryVotesByVoterResponse.decode(new BinaryReader(data))); - } - groupsByMember(request: QueryGroupsByMemberRequest): Promise { - const data = QueryGroupsByMemberRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); - return promise.then(data => QueryGroupsByMemberResponse.decode(new BinaryReader(data))); - } - tallyResult(request: QueryTallyResultRequest): Promise { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - groupInfo(request: QueryGroupInfoRequest): Promise { - return queryService.groupInfo(request); - }, - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise { - return queryService.groupPolicyInfo(request); - }, - groupMembers(request: QueryGroupMembersRequest): Promise { - return queryService.groupMembers(request); - }, - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise { - return queryService.groupsByAdmin(request); - }, - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise { - return queryService.groupPoliciesByGroup(request); - }, - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise { - return queryService.groupPoliciesByAdmin(request); - }, - proposal(request: QueryProposalRequest): Promise { - return queryService.proposal(request); - }, - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise { - return queryService.proposalsByGroupPolicy(request); - }, - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise { - return queryService.voteByProposalVoter(request); - }, - votesByProposal(request: QueryVotesByProposalRequest): Promise { - return queryService.votesByProposal(request); - }, - votesByVoter(request: QueryVotesByVoterRequest): Promise { - return queryService.votesByVoter(request); - }, - groupsByMember(request: QueryGroupsByMemberRequest): Promise { - return queryService.groupsByMember(request); - }, - tallyResult(request: QueryTallyResultRequest): Promise { - return queryService.tallyResult(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/query.ts b/packages/api/src/codegen/cosmos/group/v1/query.ts deleted file mode 100644 index 531545d9..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/query.ts +++ /dev/null @@ -1,3001 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface QueryGroupInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; - value: Uint8Array; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface QueryGroupInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupInfoRequest"; - value: QueryGroupInfoRequestAmino; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestSDKType { - group_id: bigint; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponse { - /** info is the GroupInfo for the group. */ - info?: GroupInfo; -} -export interface QueryGroupInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; - value: Uint8Array; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseAmino { - /** info is the GroupInfo for the group. */ - info?: GroupInfoAmino; -} -export interface QueryGroupInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupInfoResponse"; - value: QueryGroupInfoResponseAmino; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseSDKType { - info?: GroupInfoSDKType; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequest { - /** address is the account address of the group policy. */ - address: string; -} -export interface QueryGroupPolicyInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface QueryGroupPolicyInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; - value: QueryGroupPolicyInfoRequestAmino; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestSDKType { - address: string; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponse { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfo; -} -export interface QueryGroupPolicyInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseAmino { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfoAmino; -} -export interface QueryGroupPolicyInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse"; - value: QueryGroupPolicyInfoResponseAmino; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseSDKType { - info?: GroupPolicyInfoSDKType; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupMembersRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; - value: Uint8Array; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupMembersRequestAminoMsg { - type: "cosmos-sdk/QueryGroupMembersRequest"; - value: QueryGroupMembersRequestAmino; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponse { - /** members are the members of the group with given group_id. */ - members: GroupMember[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; - value: Uint8Array; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseAmino { - /** members are the members of the group with given group_id. */ - members?: GroupMemberAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupMembersResponseAminoMsg { - type: "cosmos-sdk/QueryGroupMembersResponse"; - value: QueryGroupMembersResponseAmino; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseSDKType { - members: GroupMemberSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequest { - /** admin is the account address of a group's admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestAmino { - /** admin is the account address of a group's admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminRequest"; - value: QueryGroupsByAdminRequestAmino; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponse { - /** groups are the groups info with the provided admin. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseAmino { - /** groups are the groups info with the provided admin. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminResponse"; - value: QueryGroupsByAdminResponseAmino; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequest { - /** group_id is the unique ID of the group policy's group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByGroupRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestAmino { - /** group_id is the unique ID of the group policy's group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByGroupRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest"; - value: QueryGroupPoliciesByGroupRequestAmino; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponse { - /** group_policies are the group policies info associated with the provided group. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseAmino { - /** group_policies are the group policies info associated with the provided group. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByGroupResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse"; - value: QueryGroupPoliciesByGroupResponseAmino; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequest { - /** admin is the admin address of the group policy. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestAmino { - /** admin is the admin address of the group policy. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest"; - value: QueryGroupPoliciesByAdminRequestAmino; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponse { - /** group_policies are the group policies info with provided admin. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseAmino { - /** group_policies are the group policies info with provided admin. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse"; - value: QueryGroupPoliciesByAdminResponseAmino; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponse { - /** proposal is the proposal info. */ - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseAmino { - /** proposal is the proposal info. */ - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequest { - /** address is the account address of the group policy related to proposals. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsByGroupPolicyRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestAmino { - /** address is the account address of the group policy related to proposals. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsByGroupPolicyRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest"; - value: QueryProposalsByGroupPolicyRequestAmino; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponse { - /** proposals are the proposals with given group policy. */ - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsByGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseAmino { - /** proposals are the proposals with given group policy. */ - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsByGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse"; - value: QueryProposalsByGroupPolicyResponseAmino; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** voter is a proposal voter account address. */ - voter: string; -} -export interface QueryVoteByProposalVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** voter is a proposal voter account address. */ - voter?: string; -} -export interface QueryVoteByProposalVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; - value: QueryVoteByProposalVoterRequestAmino; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponse { - /** vote is the vote with given proposal_id and voter. */ - vote?: Vote; -} -export interface QueryVoteByProposalVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseAmino { - /** vote is the vote with given proposal_id and voter. */ - vote?: VoteAmino; -} -export interface QueryVoteByProposalVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse"; - value: QueryVoteByProposalVoterResponseAmino; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; - value: Uint8Array; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByProposalRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalRequest"; - value: QueryVotesByProposalRequestAmino; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponse { - /** votes are the list of votes for given proposal_id. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; - value: Uint8Array; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseAmino { - /** votes are the list of votes for given proposal_id. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByProposalResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalResponse"; - value: QueryVotesByProposalResponseAmino; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequest { - /** voter is a proposal voter account address. */ - voter: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; - value: Uint8Array; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestAmino { - /** voter is a proposal voter account address. */ - voter?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterRequest"; - value: QueryVotesByVoterRequestAmino; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestSDKType { - voter: string; - pagination?: PageRequestSDKType; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponse { - /** votes are the list of votes by given voter. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; - value: Uint8Array; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseAmino { - /** votes are the list of votes by given voter. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterResponse"; - value: QueryVotesByVoterResponseAmino; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequest { - /** address is the group member address. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByMemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; - value: Uint8Array; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestAmino { - /** address is the group member address. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByMemberRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberRequest"; - value: QueryGroupsByMemberRequestAmino; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponse { - /** groups are the groups info with the provided group member. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByMemberResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; - value: Uint8Array; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseAmino { - /** groups are the groups info with the provided group member. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByMemberResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberResponse"; - value: QueryGroupsByMemberResponseAmino; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequest { - /** proposal_id is the unique id of a proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id is the unique id of a proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -function createBaseQueryGroupInfoRequest(): QueryGroupInfoRequest { - return { - groupId: BigInt(0) - }; -} -export const QueryGroupInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - encode(message: QueryGroupInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupInfoRequest { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryGroupInfoRequest): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryGroupInfoRequest { - const message = createBaseQueryGroupInfoRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryGroupInfoRequestAmino): QueryGroupInfoRequest { - const message = createBaseQueryGroupInfoRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message: QueryGroupInfoRequest): QueryGroupInfoRequestAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupInfoRequestAminoMsg): QueryGroupInfoRequest { - return QueryGroupInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupInfoRequest", - value: QueryGroupInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupInfoRequestProtoMsg): QueryGroupInfoRequest { - return QueryGroupInfoRequest.decode(message.value); - }, - toProto(message: QueryGroupInfoRequest): Uint8Array { - return QueryGroupInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - value: QueryGroupInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupInfoResponse(): QueryGroupInfoResponse { - return { - info: undefined - }; -} -export const QueryGroupInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - encode(message: QueryGroupInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.info !== undefined) { - GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupInfoResponse { - return { - info: isSet(object.info) ? GroupInfo.fromJSON(object.info) : undefined - }; - }, - toJSON(message: QueryGroupInfoResponse): unknown { - const obj: any = {}; - message.info !== undefined && (obj.info = message.info ? GroupInfo.toJSON(message.info) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupInfoResponse { - const message = createBaseQueryGroupInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object: QueryGroupInfoResponseAmino): QueryGroupInfoResponse { - const message = createBaseQueryGroupInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = GroupInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message: QueryGroupInfoResponse): QueryGroupInfoResponseAmino { - const obj: any = {}; - obj.info = message.info ? GroupInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupInfoResponseAminoMsg): QueryGroupInfoResponse { - return QueryGroupInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupInfoResponse", - value: QueryGroupInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupInfoResponseProtoMsg): QueryGroupInfoResponse { - return QueryGroupInfoResponse.decode(message.value); - }, - toProto(message: QueryGroupInfoResponse): Uint8Array { - return QueryGroupInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - value: QueryGroupInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoRequest(): QueryGroupPolicyInfoRequest { - return { - address: "" - }; -} -export const QueryGroupPolicyInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - encode(message: QueryGroupPolicyInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPolicyInfoRequest { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: QueryGroupPolicyInfoRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): QueryGroupPolicyInfoRequest { - const message = createBaseQueryGroupPolicyInfoRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: QueryGroupPolicyInfoRequestAmino): QueryGroupPolicyInfoRequest { - const message = createBaseQueryGroupPolicyInfoRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: QueryGroupPolicyInfoRequestAminoMsg): QueryGroupPolicyInfoRequest { - return QueryGroupPolicyInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest", - value: QueryGroupPolicyInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPolicyInfoRequestProtoMsg): QueryGroupPolicyInfoRequest { - return QueryGroupPolicyInfoRequest.decode(message.value); - }, - toProto(message: QueryGroupPolicyInfoRequest): Uint8Array { - return QueryGroupPolicyInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - value: QueryGroupPolicyInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoResponse(): QueryGroupPolicyInfoResponse { - return { - info: undefined - }; -} -export const QueryGroupPolicyInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - encode(message: QueryGroupPolicyInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.info !== undefined) { - GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupPolicyInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPolicyInfoResponse { - return { - info: isSet(object.info) ? GroupPolicyInfo.fromJSON(object.info) : undefined - }; - }, - toJSON(message: QueryGroupPolicyInfoResponse): unknown { - const obj: any = {}; - message.info !== undefined && (obj.info = message.info ? GroupPolicyInfo.toJSON(message.info) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupPolicyInfoResponse { - const message = createBaseQueryGroupPolicyInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupPolicyInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object: QueryGroupPolicyInfoResponseAmino): QueryGroupPolicyInfoResponse { - const message = createBaseQueryGroupPolicyInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = GroupPolicyInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAmino { - const obj: any = {}; - obj.info = message.info ? GroupPolicyInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupPolicyInfoResponseAminoMsg): QueryGroupPolicyInfoResponse { - return QueryGroupPolicyInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse", - value: QueryGroupPolicyInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPolicyInfoResponseProtoMsg): QueryGroupPolicyInfoResponse { - return QueryGroupPolicyInfoResponse.decode(message.value); - }, - toProto(message: QueryGroupPolicyInfoResponse): Uint8Array { - return QueryGroupPolicyInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - value: QueryGroupPolicyInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersRequest(): QueryGroupMembersRequest { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -export const QueryGroupMembersRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - encode(message: QueryGroupMembersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupMembersRequest { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupMembersRequest): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupMembersRequest { - const message = createBaseQueryGroupMembersRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupMembersRequestAmino): QueryGroupMembersRequest { - const message = createBaseQueryGroupMembersRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupMembersRequest): QueryGroupMembersRequestAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupMembersRequestAminoMsg): QueryGroupMembersRequest { - return QueryGroupMembersRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupMembersRequest", - value: QueryGroupMembersRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupMembersRequestProtoMsg): QueryGroupMembersRequest { - return QueryGroupMembersRequest.decode(message.value); - }, - toProto(message: QueryGroupMembersRequest): Uint8Array { - return QueryGroupMembersRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - value: QueryGroupMembersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersResponse(): QueryGroupMembersResponse { - return { - members: [], - pagination: undefined - }; -} -export const QueryGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - encode(message: QueryGroupMembersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.members) { - GroupMember.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.members.push(GroupMember.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupMembersResponse { - return { - members: Array.isArray(object?.members) ? object.members.map((e: any) => GroupMember.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupMembersResponse): unknown { - const obj: any = {}; - if (message.members) { - obj.members = message.members.map(e => e ? GroupMember.toJSON(e) : undefined); - } else { - obj.members = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupMembersResponse { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => GroupMember.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupMembersResponseAmino): QueryGroupMembersResponse { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => GroupMember.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupMembersResponse): QueryGroupMembersResponseAmino { - const obj: any = {}; - if (message.members) { - obj.members = message.members.map(e => e ? GroupMember.toAmino(e) : undefined); - } else { - obj.members = message.members; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupMembersResponseAminoMsg): QueryGroupMembersResponse { - return QueryGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupMembersResponse", - value: QueryGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupMembersResponseProtoMsg): QueryGroupMembersResponse { - return QueryGroupMembersResponse.decode(message.value); - }, - toProto(message: QueryGroupMembersResponse): Uint8Array { - return QueryGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - value: QueryGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminRequest(): QueryGroupsByAdminRequest { - return { - admin: "", - pagination: undefined - }; -} -export const QueryGroupsByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - encode(message: QueryGroupsByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupsByAdminRequest { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupsByAdminRequest): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupsByAdminRequest { - const message = createBaseQueryGroupsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupsByAdminRequestAmino): QueryGroupsByAdminRequest { - const message = createBaseQueryGroupsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupsByAdminRequestAminoMsg): QueryGroupsByAdminRequest { - return QueryGroupsByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupsByAdminRequest", - value: QueryGroupsByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupsByAdminRequestProtoMsg): QueryGroupsByAdminRequest { - return QueryGroupsByAdminRequest.decode(message.value); - }, - toProto(message: QueryGroupsByAdminRequest): Uint8Array { - return QueryGroupsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - value: QueryGroupsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminResponse(): QueryGroupsByAdminResponse { - return { - groups: [], - pagination: undefined - }; -} -export const QueryGroupsByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - encode(message: QueryGroupsByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupsByAdminResponse { - return { - groups: Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupsByAdminResponse): unknown { - const obj: any = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toJSON(e) : undefined); - } else { - obj.groups = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupsByAdminResponse { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupsByAdminResponseAmino): QueryGroupsByAdminResponse { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAmino { - const obj: any = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupsByAdminResponseAminoMsg): QueryGroupsByAdminResponse { - return QueryGroupsByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupsByAdminResponse", - value: QueryGroupsByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupsByAdminResponseProtoMsg): QueryGroupsByAdminResponse { - return QueryGroupsByAdminResponse.decode(message.value); - }, - toProto(message: QueryGroupsByAdminResponse): Uint8Array { - return QueryGroupsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - value: QueryGroupsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupRequest(): QueryGroupPoliciesByGroupRequest { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -export const QueryGroupPoliciesByGroupRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - encode(message: QueryGroupPoliciesByGroupRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPoliciesByGroupRequest { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupPoliciesByGroupRequest): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupPoliciesByGroupRequestAmino): QueryGroupPoliciesByGroupRequest { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupPoliciesByGroupRequestAminoMsg): QueryGroupPoliciesByGroupRequest { - return QueryGroupPoliciesByGroupRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", - value: QueryGroupPoliciesByGroupRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPoliciesByGroupRequestProtoMsg): QueryGroupPoliciesByGroupRequest { - return QueryGroupPoliciesByGroupRequest.decode(message.value); - }, - toProto(message: QueryGroupPoliciesByGroupRequest): Uint8Array { - return QueryGroupPoliciesByGroupRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - value: QueryGroupPoliciesByGroupRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupResponse(): QueryGroupPoliciesByGroupResponse { - return { - groupPolicies: [], - pagination: undefined - }; -} -export const QueryGroupPoliciesByGroupResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - encode(message: QueryGroupPoliciesByGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPoliciesByGroupResponse { - return { - groupPolicies: Array.isArray(object?.groupPolicies) ? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupPoliciesByGroupResponse): unknown { - const obj: any = {}; - if (message.groupPolicies) { - obj.groupPolicies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toJSON(e) : undefined); - } else { - obj.groupPolicies = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupPoliciesByGroupResponseAmino): QueryGroupPoliciesByGroupResponse { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAmino { - const obj: any = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupPoliciesByGroupResponseAminoMsg): QueryGroupPoliciesByGroupResponse { - return QueryGroupPoliciesByGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", - value: QueryGroupPoliciesByGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPoliciesByGroupResponseProtoMsg): QueryGroupPoliciesByGroupResponse { - return QueryGroupPoliciesByGroupResponse.decode(message.value); - }, - toProto(message: QueryGroupPoliciesByGroupResponse): Uint8Array { - return QueryGroupPoliciesByGroupResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - value: QueryGroupPoliciesByGroupResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminRequest(): QueryGroupPoliciesByAdminRequest { - return { - admin: "", - pagination: undefined - }; -} -export const QueryGroupPoliciesByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - encode(message: QueryGroupPoliciesByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPoliciesByAdminRequest { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupPoliciesByAdminRequest): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupPoliciesByAdminRequestAmino): QueryGroupPoliciesByAdminRequest { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupPoliciesByAdminRequestAminoMsg): QueryGroupPoliciesByAdminRequest { - return QueryGroupPoliciesByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", - value: QueryGroupPoliciesByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPoliciesByAdminRequestProtoMsg): QueryGroupPoliciesByAdminRequest { - return QueryGroupPoliciesByAdminRequest.decode(message.value); - }, - toProto(message: QueryGroupPoliciesByAdminRequest): Uint8Array { - return QueryGroupPoliciesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - value: QueryGroupPoliciesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminResponse(): QueryGroupPoliciesByAdminResponse { - return { - groupPolicies: [], - pagination: undefined - }; -} -export const QueryGroupPoliciesByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - encode(message: QueryGroupPoliciesByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupPoliciesByAdminResponse { - return { - groupPolicies: Array.isArray(object?.groupPolicies) ? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupPoliciesByAdminResponse): unknown { - const obj: any = {}; - if (message.groupPolicies) { - obj.groupPolicies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toJSON(e) : undefined); - } else { - obj.groupPolicies = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupPoliciesByAdminResponseAmino): QueryGroupPoliciesByAdminResponse { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAmino { - const obj: any = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupPoliciesByAdminResponseAminoMsg): QueryGroupPoliciesByAdminResponse { - return QueryGroupPoliciesByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", - value: QueryGroupPoliciesByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupPoliciesByAdminResponseProtoMsg): QueryGroupPoliciesByAdminResponse { - return QueryGroupPoliciesByAdminResponse.decode(message.value); - }, - toProto(message: QueryGroupPoliciesByAdminResponse): Uint8Array { - return QueryGroupPoliciesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - value: QueryGroupPoliciesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalRequest(): QueryProposalRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryProposalRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { - return QueryProposalRequest.decode(message.value); - }, - toProto(message: QueryProposalRequest): Uint8Array { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse(): QueryProposalResponse { - return { - proposal: undefined - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalResponse { - return { - proposal: isSet(object.proposal) ? Proposal.fromJSON(object.proposal) : undefined - }; - }, - toJSON(message: QueryProposalResponse): unknown { - const obj: any = {}; - message.proposal !== undefined && (obj.proposal = message.proposal ? Proposal.toJSON(message.proposal) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { - const obj: any = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { - return QueryProposalResponse.decode(message.value); - }, - toProto(message: QueryProposalResponse): Uint8Array { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyRequest(): QueryProposalsByGroupPolicyRequest { - return { - address: "", - pagination: undefined - }; -} -export const QueryProposalsByGroupPolicyRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - encode(message: QueryProposalsByGroupPolicyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsByGroupPolicyRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsByGroupPolicyRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsByGroupPolicyRequestAmino): QueryProposalsByGroupPolicyRequest { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsByGroupPolicyRequestAminoMsg): QueryProposalsByGroupPolicyRequest { - return QueryProposalsByGroupPolicyRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAminoMsg { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", - value: QueryProposalsByGroupPolicyRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsByGroupPolicyRequestProtoMsg): QueryProposalsByGroupPolicyRequest { - return QueryProposalsByGroupPolicyRequest.decode(message.value); - }, - toProto(message: QueryProposalsByGroupPolicyRequest): Uint8Array { - return QueryProposalsByGroupPolicyRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - value: QueryProposalsByGroupPolicyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyResponse(): QueryProposalsByGroupPolicyResponse { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsByGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - encode(message: QueryProposalsByGroupPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProposalsByGroupPolicyResponse { - return { - proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProposalsByGroupPolicyResponse): unknown { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toJSON(e) : undefined); - } else { - obj.proposals = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProposalsByGroupPolicyResponseAmino): QueryProposalsByGroupPolicyResponse { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAmino { - const obj: any = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProposalsByGroupPolicyResponseAminoMsg): QueryProposalsByGroupPolicyResponse { - return QueryProposalsByGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAminoMsg { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", - value: QueryProposalsByGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryProposalsByGroupPolicyResponseProtoMsg): QueryProposalsByGroupPolicyResponse { - return QueryProposalsByGroupPolicyResponse.decode(message.value); - }, - toProto(message: QueryProposalsByGroupPolicyResponse): Uint8Array { - return QueryProposalsByGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - value: QueryProposalsByGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterRequest(): QueryVoteByProposalVoterRequest { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteByProposalVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - encode(message: QueryVoteByProposalVoterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteByProposalVoterRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "" - }; - }, - toJSON(message: QueryVoteByProposalVoterRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - return obj; - }, - fromPartial(object: Partial): QueryVoteByProposalVoterRequest { - const message = createBaseQueryVoteByProposalVoterRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object: QueryVoteByProposalVoterRequestAmino): QueryVoteByProposalVoterRequest { - const message = createBaseQueryVoteByProposalVoterRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object: QueryVoteByProposalVoterRequestAminoMsg): QueryVoteByProposalVoterRequest { - return QueryVoteByProposalVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAminoMsg { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest", - value: QueryVoteByProposalVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteByProposalVoterRequestProtoMsg): QueryVoteByProposalVoterRequest { - return QueryVoteByProposalVoterRequest.decode(message.value); - }, - toProto(message: QueryVoteByProposalVoterRequest): Uint8Array { - return QueryVoteByProposalVoterRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - value: QueryVoteByProposalVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterResponse(): QueryVoteByProposalVoterResponse { - return { - vote: undefined - }; -} -export const QueryVoteByProposalVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - encode(message: QueryVoteByProposalVoterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVoteByProposalVoterResponse { - return { - vote: isSet(object.vote) ? Vote.fromJSON(object.vote) : undefined - }; - }, - toJSON(message: QueryVoteByProposalVoterResponse): unknown { - const obj: any = {}; - message.vote !== undefined && (obj.vote = message.vote ? Vote.toJSON(message.vote) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVoteByProposalVoterResponse { - const message = createBaseQueryVoteByProposalVoterResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object: QueryVoteByProposalVoterResponseAmino): QueryVoteByProposalVoterResponse { - const message = createBaseQueryVoteByProposalVoterResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAmino { - const obj: any = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVoteByProposalVoterResponseAminoMsg): QueryVoteByProposalVoterResponse { - return QueryVoteByProposalVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAminoMsg { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse", - value: QueryVoteByProposalVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVoteByProposalVoterResponseProtoMsg): QueryVoteByProposalVoterResponse { - return QueryVoteByProposalVoterResponse.decode(message.value); - }, - toProto(message: QueryVoteByProposalVoterResponse): Uint8Array { - return QueryVoteByProposalVoterResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - value: QueryVoteByProposalVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalRequest(): QueryVotesByProposalRequest { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesByProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - encode(message: QueryVotesByProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesByProposalRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesByProposalRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesByProposalRequest { - const message = createBaseQueryVotesByProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesByProposalRequestAmino): QueryVotesByProposalRequest { - const message = createBaseQueryVotesByProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesByProposalRequestAminoMsg): QueryVotesByProposalRequest { - return QueryVotesByProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAminoMsg { - return { - type: "cosmos-sdk/QueryVotesByProposalRequest", - value: QueryVotesByProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesByProposalRequestProtoMsg): QueryVotesByProposalRequest { - return QueryVotesByProposalRequest.decode(message.value); - }, - toProto(message: QueryVotesByProposalRequest): Uint8Array { - return QueryVotesByProposalRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - value: QueryVotesByProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalResponse(): QueryVotesByProposalResponse { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesByProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - encode(message: QueryVotesByProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesByProposalResponse { - return { - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesByProposalResponse): unknown { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesByProposalResponse { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesByProposalResponseAmino): QueryVotesByProposalResponse { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAmino { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesByProposalResponseAminoMsg): QueryVotesByProposalResponse { - return QueryVotesByProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAminoMsg { - return { - type: "cosmos-sdk/QueryVotesByProposalResponse", - value: QueryVotesByProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesByProposalResponseProtoMsg): QueryVotesByProposalResponse { - return QueryVotesByProposalResponse.decode(message.value); - }, - toProto(message: QueryVotesByProposalResponse): Uint8Array { - return QueryVotesByProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - value: QueryVotesByProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterRequest(): QueryVotesByVoterRequest { - return { - voter: "", - pagination: undefined - }; -} -export const QueryVotesByVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - encode(message: QueryVotesByVoterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.voter !== "") { - writer.uint32(10).string(message.voter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesByVoterRequest { - return { - voter: isSet(object.voter) ? String(object.voter) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesByVoterRequest): unknown { - const obj: any = {}; - message.voter !== undefined && (obj.voter = message.voter); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesByVoterRequest { - const message = createBaseQueryVotesByVoterRequest(); - message.voter = object.voter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesByVoterRequestAmino): QueryVotesByVoterRequest { - const message = createBaseQueryVotesByVoterRequest(); - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAmino { - const obj: any = {}; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesByVoterRequestAminoMsg): QueryVotesByVoterRequest { - return QueryVotesByVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAminoMsg { - return { - type: "cosmos-sdk/QueryVotesByVoterRequest", - value: QueryVotesByVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesByVoterRequestProtoMsg): QueryVotesByVoterRequest { - return QueryVotesByVoterRequest.decode(message.value); - }, - toProto(message: QueryVotesByVoterRequest): Uint8Array { - return QueryVotesByVoterRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - value: QueryVotesByVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterResponse(): QueryVotesByVoterResponse { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesByVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - encode(message: QueryVotesByVoterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryVotesByVoterResponse { - return { - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryVotesByVoterResponse): unknown { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toJSON(e) : undefined); - } else { - obj.votes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryVotesByVoterResponse { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryVotesByVoterResponseAmino): QueryVotesByVoterResponse { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAmino { - const obj: any = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryVotesByVoterResponseAminoMsg): QueryVotesByVoterResponse { - return QueryVotesByVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAminoMsg { - return { - type: "cosmos-sdk/QueryVotesByVoterResponse", - value: QueryVotesByVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryVotesByVoterResponseProtoMsg): QueryVotesByVoterResponse { - return QueryVotesByVoterResponse.decode(message.value); - }, - toProto(message: QueryVotesByVoterResponse): Uint8Array { - return QueryVotesByVoterResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - value: QueryVotesByVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberRequest(): QueryGroupsByMemberRequest { - return { - address: "", - pagination: undefined - }; -} -export const QueryGroupsByMemberRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - encode(message: QueryGroupsByMemberRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupsByMemberRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupsByMemberRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupsByMemberRequest { - const message = createBaseQueryGroupsByMemberRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupsByMemberRequestAmino): QueryGroupsByMemberRequest { - const message = createBaseQueryGroupsByMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupsByMemberRequestAminoMsg): QueryGroupsByMemberRequest { - return QueryGroupsByMemberRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAminoMsg { - return { - type: "cosmos-sdk/QueryGroupsByMemberRequest", - value: QueryGroupsByMemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupsByMemberRequestProtoMsg): QueryGroupsByMemberRequest { - return QueryGroupsByMemberRequest.decode(message.value); - }, - toProto(message: QueryGroupsByMemberRequest): Uint8Array { - return QueryGroupsByMemberRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - value: QueryGroupsByMemberRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberResponse(): QueryGroupsByMemberResponse { - return { - groups: [], - pagination: undefined - }; -} -export const QueryGroupsByMemberResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - encode(message: QueryGroupsByMemberResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryGroupsByMemberResponse { - return { - groups: Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryGroupsByMemberResponse): unknown { - const obj: any = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toJSON(e) : undefined); - } else { - obj.groups = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryGroupsByMemberResponse { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryGroupsByMemberResponseAmino): QueryGroupsByMemberResponse { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAmino { - const obj: any = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryGroupsByMemberResponseAminoMsg): QueryGroupsByMemberResponse { - return QueryGroupsByMemberResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAminoMsg { - return { - type: "cosmos-sdk/QueryGroupsByMemberResponse", - value: QueryGroupsByMemberResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryGroupsByMemberResponseProtoMsg): QueryGroupsByMemberResponse { - return QueryGroupsByMemberResponse.decode(message.value); - }, - toProto(message: QueryGroupsByMemberResponse): Uint8Array { - return QueryGroupsByMemberResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - value: QueryGroupsByMemberResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultRequest { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryTallyResultRequest): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message: QueryTallyResultRequest): Uint8Array { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryTallyResultResponse { - return { - tally: isSet(object.tally) ? TallyResult.fromJSON(object.tally) : undefined - }; - }, - toJSON(message: QueryTallyResultResponse): unknown { - const obj: any = {}; - message.tally !== undefined && (obj.tally = message.tally ? TallyResult.toJSON(message.tally) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { - const obj: any = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message: QueryTallyResultResponse): Uint8Array { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/tx.amino.ts b/packages/api/src/codegen/cosmos/group/v1/tx.amino.ts deleted file mode 100644 index 3a5c0e59..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/tx.amino.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export const AminoConverter = { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: "cosmos-sdk/MsgCreateGroup", - toAmino: MsgCreateGroup.toAmino, - fromAmino: MsgCreateGroup.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: "cosmos-sdk/MsgUpdateGroupMembers", - toAmino: MsgUpdateGroupMembers.toAmino, - fromAmino: MsgUpdateGroupMembers.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", - toAmino: MsgUpdateGroupAdmin.toAmino, - fromAmino: MsgUpdateGroupAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", - toAmino: MsgUpdateGroupMetadata.toAmino, - fromAmino: MsgUpdateGroupMetadata.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupPolicy", - toAmino: MsgCreateGroupPolicy.toAmino, - fromAmino: MsgCreateGroupPolicy.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", - toAmino: MsgCreateGroupWithPolicy.toAmino, - fromAmino: MsgCreateGroupWithPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - toAmino: MsgUpdateGroupPolicyAdmin.toAmino, - fromAmino: MsgUpdateGroupPolicyAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - toAmino: MsgUpdateGroupPolicyDecisionPolicy.toAmino, - fromAmino: MsgUpdateGroupPolicyDecisionPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - toAmino: MsgUpdateGroupPolicyMetadata.toAmino, - fromAmino: MsgUpdateGroupPolicyMetadata.fromAmino - }, - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/group/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: "cosmos-sdk/group/MsgWithdrawProposal", - toAmino: MsgWithdrawProposal.toAmino, - fromAmino: MsgWithdrawProposal.fromAmino - }, - "/cosmos.group.v1.MsgVote": { - aminoType: "cosmos-sdk/group/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.group.v1.MsgExec": { - aminoType: "cosmos-sdk/group/MsgExec", - toAmino: MsgExec.toAmino, - fromAmino: MsgExec.fromAmino - }, - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: "cosmos-sdk/group/MsgLeaveGroup", - toAmino: MsgLeaveGroup.toAmino, - fromAmino: MsgLeaveGroup.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/tx.registry.ts b/packages/api/src/codegen/cosmos/group/v1/tx.registry.ts deleted file mode 100644 index e2bceb8c..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/tx.registry.ts +++ /dev/null @@ -1,440 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.encode(value).finish() - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.encode(value).finish() - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.encode(value).finish() - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.encode(value).finish() - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.encode(value).finish() - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.encode(value).finish() - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.encode(value).finish() - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.encode(value).finish() - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.encode(value).finish() - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.encode(value).finish() - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.encode(value).finish() - }; - } - }, - withTypeUrl: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value - }; - } - }, - toJSON: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.toJSON(value) - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.toJSON(value) - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.toJSON(value) - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.toJSON(value) - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.toJSON(value) - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.toJSON(value) - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.toJSON(value) - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.toJSON(value) - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.toJSON(value) - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.toJSON(value) - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.toJSON(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.toJSON(value) - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.toJSON(value) - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.toJSON(value) - }; - } - }, - fromJSON: { - createGroup(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.fromJSON(value) - }; - }, - updateGroupMembers(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.fromJSON(value) - }; - }, - updateGroupAdmin(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.fromJSON(value) - }; - }, - updateGroupMetadata(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.fromJSON(value) - }; - }, - createGroupPolicy(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.fromJSON(value) - }; - }, - createGroupWithPolicy(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.fromJSON(value) - }; - }, - updateGroupPolicyAdmin(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.fromJSON(value) - }; - }, - updateGroupPolicyDecisionPolicy(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.fromJSON(value) - }; - }, - updateGroupPolicyMetadata(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.fromJSON(value) - }; - }, - submitProposal(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromJSON(value) - }; - }, - withdrawProposal(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.fromJSON(value) - }; - }, - vote(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.fromJSON(value) - }; - }, - exec(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.fromJSON(value) - }; - }, - leaveGroup(value: any) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.fromJSON(value) - }; - } - }, - fromPartial: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.fromPartial(value) - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.fromPartial(value) - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.fromPartial(value) - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.fromPartial(value) - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.fromPartial(value) - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.fromPartial(value) - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.fromPartial(value) - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.fromPartial(value) - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.fromPartial(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.fromPartial(value) - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/group/v1/tx.rpc.msg.ts deleted file mode 100644 index 2cbd3114..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; -/** Msg is the cosmos.group.v1 Msg service. */ -export interface Msg { - /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ - createGroup(request: MsgCreateGroup): Promise; - /** UpdateGroupMembers updates the group members with given group id and admin address. */ - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - /** CreateGroupWithPolicy creates a new group with policy. */ - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - /** UpdateGroupPolicyAdmin updates a group policy admin. */ - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - /** UpdateGroupPolicyMetadata updates a group policy metadata. */ - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - /** SubmitProposal submits a new proposal. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** WithdrawProposal withdraws a proposal. */ - withdrawProposal(request: MsgWithdrawProposal): Promise; - /** Vote allows a voter to vote on a proposal. */ - vote(request: MsgVote): Promise; - /** Exec executes a proposal. */ - exec(request: MsgExec): Promise; - /** LeaveGroup allows a group member to leave the group. */ - leaveGroup(request: MsgLeaveGroup): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createGroup = this.createGroup.bind(this); - this.updateGroupMembers = this.updateGroupMembers.bind(this); - this.updateGroupAdmin = this.updateGroupAdmin.bind(this); - this.updateGroupMetadata = this.updateGroupMetadata.bind(this); - this.createGroupPolicy = this.createGroupPolicy.bind(this); - this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); - this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); - this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); - this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); - this.submitProposal = this.submitProposal.bind(this); - this.withdrawProposal = this.withdrawProposal.bind(this); - this.vote = this.vote.bind(this); - this.exec = this.exec.bind(this); - this.leaveGroup = this.leaveGroup.bind(this); - } - createGroup(request: MsgCreateGroup): Promise { - const data = MsgCreateGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); - return promise.then(data => MsgCreateGroupResponse.decode(new BinaryReader(data))); - } - updateGroupMembers(request: MsgUpdateGroupMembers): Promise { - const data = MsgUpdateGroupMembers.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); - return promise.then(data => MsgUpdateGroupMembersResponse.decode(new BinaryReader(data))); - } - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise { - const data = MsgUpdateGroupAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); - return promise.then(data => MsgUpdateGroupAdminResponse.decode(new BinaryReader(data))); - } - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise { - const data = MsgUpdateGroupMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); - return promise.then(data => MsgUpdateGroupMetadataResponse.decode(new BinaryReader(data))); - } - createGroupPolicy(request: MsgCreateGroupPolicy): Promise { - const data = MsgCreateGroupPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); - return promise.then(data => MsgCreateGroupPolicyResponse.decode(new BinaryReader(data))); - } - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise { - const data = MsgCreateGroupWithPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); - return promise.then(data => MsgCreateGroupWithPolicyResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise { - const data = MsgUpdateGroupPolicyAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); - return promise.then(data => MsgUpdateGroupPolicyAdminResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise { - const data = MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); - return promise.then(data => MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise { - const data = MsgUpdateGroupPolicyMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); - return promise.then(data => MsgUpdateGroupPolicyMetadataResponse.decode(new BinaryReader(data))); - } - submitProposal(request: MsgSubmitProposal): Promise { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - withdrawProposal(request: MsgWithdrawProposal): Promise { - const data = MsgWithdrawProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); - return promise.then(data => MsgWithdrawProposalResponse.decode(new BinaryReader(data))); - } - vote(request: MsgVote): Promise { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - exec(request: MsgExec): Promise { - const data = MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); - return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); - } - leaveGroup(request: MsgLeaveGroup): Promise { - const data = MsgLeaveGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); - return promise.then(data => MsgLeaveGroupResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/tx.ts b/packages/api/src/codegen/cosmos/group/v1/tx.ts deleted file mode 100644 index 174e065c..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/tx.ts +++ /dev/null @@ -1,3420 +0,0 @@ -import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType, voteOptionFromJSON, voteOptionToJSON, proposalExecutorResultFromJSON, proposalExecutorResultToJSON } from "./types"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1, -} -export const ExecSDKType = Exec; -export const ExecAmino = Exec; -export function execFromJSON(object: any): Exec { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -export function execToJSON(object: Exec): string { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroup"; - value: Uint8Array; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; -} -export interface MsgCreateGroupAminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: MsgCreateGroupAmino; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberRequestSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: bigint; -} -export interface MsgCreateGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; - value: Uint8Array; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseAmino { - /** group_id is the unique ID of the newly created group. */ - group_id?: string; -} -export interface MsgCreateGroupResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupResponse"; - value: MsgCreateGroupResponseAmino; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: bigint; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: MemberRequest[]; -} -export interface MsgUpdateGroupMembersProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; - value: Uint8Array; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - member_updates: MemberRequestAmino[]; -} -export interface MsgUpdateGroupMembersAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: MsgUpdateGroupMembersAmino; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: bigint; - member_updates: MemberRequestSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse {} -export interface MsgUpdateGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseAmino {} -export interface MsgUpdateGroupMembersResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; - value: MsgUpdateGroupMembersResponseAmino; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType {} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -export interface MsgUpdateGroupAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminAmino { - /** admin is the current account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** new_admin is the group new admin account address. */ - new_admin?: string; -} -export interface MsgUpdateGroupAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: MsgUpdateGroupAdminAmino; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: bigint; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse {} -export interface MsgUpdateGroupAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseAmino {} -export interface MsgUpdateGroupAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; - value: MsgUpdateGroupAdminResponseAmino; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType {} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is the updated group's metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: MsgUpdateGroupMetadataAmino; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: bigint; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse {} -export interface MsgUpdateGroupMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseAmino {} -export interface MsgUpdateGroupMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; - value: MsgUpdateGroupMetadataResponseAmino; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType {} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: MsgCreateGroupPolicyAmino; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: bigint; - metadata: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseAmino { - /** address is the account address of the newly created group policy. */ - address?: string; -} -export interface MsgCreateGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; - value: MsgCreateGroupPolicyResponseAmino; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of the group policy. */ - groupPolicyAddress: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -export interface MsgUpdateGroupPolicyAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of the group policy. */ - group_policy_address?: string; - /** new_admin is the new group policy admin. */ - new_admin?: string; -} -export interface MsgUpdateGroupPolicyAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: MsgUpdateGroupPolicyAdminAmino; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - group_policy_address: string; - new_admin: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse {} -export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseAmino {} -export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; - value: MsgUpdateGroupPolicyAdminResponseAmino; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType {} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgCreateGroupWithPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupWithPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicyAmino { - /** admin is the account address of the group and group policy admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - group_metadata?: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - group_policy_metadata?: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - group_policy_as_admin?: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupWithPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: MsgCreateGroupWithPolicyAmino; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberRequestSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: bigint; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -export interface MsgCreateGroupWithPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseAmino { - /** group_id is the unique ID of the newly created group with policy. */ - group_id?: string; - /** group_policy_address is the account address of the newly created group policy. */ - group_policy_address?: string; -} -export interface MsgCreateGroupWithPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; - value: MsgCreateGroupWithPolicyResponseAmino; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: bigint; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - value: Uint8Array; -} -export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit & { - /** decision_policy is the updated group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** decision_policy is the updated group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; - value: MsgUpdateGroupPolicyDecisionPolicyAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - group_policy_address: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino {} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is the updated group policy metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupPolicyMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: MsgUpdateGroupPolicyMetadataAmino; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - group_policy_address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse {} -export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseAmino {} -export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; - value: MsgUpdateGroupPolicyMetadataResponseAmino; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType {} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalAmino { - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers?: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec?: Exec; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - group_policy_address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; - value: Uint8Array; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address?: string; -} -export interface MsgWithdrawProposalAminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: MsgWithdrawProposalAmino; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: bigint; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse {} -export interface MsgWithdrawProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; - value: Uint8Array; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseAmino {} -export interface MsgWithdrawProposalResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawProposalResponse"; - value: MsgWithdrawProposalResponseAmino; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType {} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the voter account address. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec?: Exec; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse {} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseAmino {} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** executor is the account address used to execute the proposal. */ - executor: string; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExec"; - value: Uint8Array; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** executor is the account address used to execute the proposal. */ - executor?: string; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: MsgExecAmino; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: bigint; - executor: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse { - /** result is the final result of the proposal execution. */ - result: ProposalExecutorResult; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseAmino { - /** result is the final result of the proposal execution. */ - result?: ProposalExecutorResult; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType { - result: ProposalExecutorResult; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface MsgLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; - value: Uint8Array; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupAmino { - /** address is the account address of the group member. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface MsgLeaveGroupAminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: MsgLeaveGroupAmino; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: bigint; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse {} -export interface MsgLeaveGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; - value: Uint8Array; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseAmino {} -export interface MsgLeaveGroupResponseAminoMsg { - type: "cosmos-sdk/MsgLeaveGroupResponse"; - value: MsgLeaveGroupResponseAmino; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType {} -function createBaseMsgCreateGroup(): MsgCreateGroup { - return { - admin: "", - members: [], - metadata: "" - }; -} -export const MsgCreateGroup = { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - encode(message: MsgCreateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroup { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - members: Array.isArray(object?.members) ? object.members.map((e: any) => MemberRequest.fromJSON(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgCreateGroup): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toJSON(e) : undefined); - } else { - obj.members = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroup { - const message = createBaseMsgCreateGroup(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup { - const message = createBaseMsgCreateGroup(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgCreateGroup): MsgCreateGroupAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); - } else { - obj.members = message.members; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup { - return MsgCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroup", - value: MsgCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup { - return MsgCreateGroup.decode(message.value); - }, - toProto(message: MsgCreateGroup): Uint8Array { - return MsgCreateGroup.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupResponse(): MsgCreateGroupResponse { - return { - groupId: BigInt(0) - }; -} -export const MsgCreateGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - encode(message: MsgCreateGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroupResponse { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgCreateGroupResponse): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroupResponse { - const message = createBaseMsgCreateGroupResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse { - const message = createBaseMsgCreateGroupResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse { - return MsgCreateGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroupResponse", - value: MsgCreateGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse { - return MsgCreateGroupResponse.decode(message.value); - }, - toProto(message: MsgCreateGroupResponse): Uint8Array { - return MsgCreateGroupResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - value: MsgCreateGroupResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembers(): MsgUpdateGroupMembers { - return { - admin: "", - groupId: BigInt(0), - memberUpdates: [] - }; -} -export const MsgUpdateGroupMembers = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - encode(message: MsgUpdateGroupMembers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - for (const v of message.memberUpdates) { - MemberRequest.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupMembers { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - memberUpdates: Array.isArray(object?.memberUpdates) ? object.memberUpdates.map((e: any) => MemberRequest.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgUpdateGroupMembers): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - if (message.memberUpdates) { - obj.memberUpdates = message.memberUpdates.map(e => e ? MemberRequest.toJSON(e) : undefined); - } else { - obj.memberUpdates = []; - } - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupMembers { - const message = createBaseMsgUpdateGroupMembers(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers { - const message = createBaseMsgUpdateGroupMembers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - if (message.memberUpdates) { - obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined); - } else { - obj.member_updates = message.memberUpdates; - } - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers { - return MsgUpdateGroupMembers.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers { - return MsgUpdateGroupMembers.decode(message.value); - }, - toProto(message: MsgUpdateGroupMembers): Uint8Array { - return MsgUpdateGroupMembers.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembersResponse(): MsgUpdateGroupMembersResponse { - return {}; -} -export const MsgUpdateGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - encode(_: MsgUpdateGroupMembersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupMembersResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupMembersResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupMembersResponse { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse { - return MsgUpdateGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse", - value: MsgUpdateGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse { - return MsgUpdateGroupMembersResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupMembersResponse): Uint8Array { - return MsgUpdateGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - value: MsgUpdateGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdmin(): MsgUpdateGroupAdmin { - return { - admin: "", - groupId: BigInt(0), - newAdmin: "" - }; -} -export const MsgUpdateGroupAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - encode(message: MsgUpdateGroupAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupAdmin { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : "" - }; - }, - toJSON(message: MsgUpdateGroupAdmin): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin); - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupAdmin { - const message = createBaseMsgUpdateGroupAdmin(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin { - const message = createBaseMsgUpdateGroupAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin { - return MsgUpdateGroupAdmin.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin { - return MsgUpdateGroupAdmin.decode(message.value); - }, - toProto(message: MsgUpdateGroupAdmin): Uint8Array { - return MsgUpdateGroupAdmin.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdminResponse(): MsgUpdateGroupAdminResponse { - return {}; -} -export const MsgUpdateGroupAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - encode(_: MsgUpdateGroupAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupAdminResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupAdminResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupAdminResponse { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse { - return MsgUpdateGroupAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse", - value: MsgUpdateGroupAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse { - return MsgUpdateGroupAdminResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupAdminResponse): Uint8Array { - return MsgUpdateGroupAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - value: MsgUpdateGroupAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadata(): MsgUpdateGroupMetadata { - return { - admin: "", - groupId: BigInt(0), - metadata: "" - }; -} -export const MsgUpdateGroupMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - encode(message: MsgUpdateGroupMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupMetadata { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgUpdateGroupMetadata): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupMetadata { - const message = createBaseMsgUpdateGroupMetadata(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata { - const message = createBaseMsgUpdateGroupMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata { - return MsgUpdateGroupMetadata.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata { - return MsgUpdateGroupMetadata.decode(message.value); - }, - toProto(message: MsgUpdateGroupMetadata): Uint8Array { - return MsgUpdateGroupMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadataResponse(): MsgUpdateGroupMetadataResponse { - return {}; -} -export const MsgUpdateGroupMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - encode(_: MsgUpdateGroupMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupMetadataResponse { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse { - return MsgUpdateGroupMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", - value: MsgUpdateGroupMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse { - return MsgUpdateGroupMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array { - return MsgUpdateGroupMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - value: MsgUpdateGroupMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicy(): MsgCreateGroupPolicy { - return { - admin: "", - groupId: BigInt(0), - metadata: "", - decisionPolicy: undefined - }; -} -export const MsgCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - encode(message: MsgCreateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.decisionPolicy !== undefined) { - Any.encode((message.decisionPolicy as Any), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroupPolicy { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - metadata: isSet(object.metadata) ? String(object.metadata) : "", - decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined - }; - }, - toJSON(message: MsgCreateGroupPolicy): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.decisionPolicy !== undefined && (obj.decisionPolicy = message.decisionPolicy ? Any.toJSON(message.decisionPolicy) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroupPolicy { - const message = createBaseMsgCreateGroupPolicy(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy { - const message = createBaseMsgCreateGroupPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy { - return MsgCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy { - return MsgCreateGroupPolicy.decode(message.value); - }, - toProto(message: MsgCreateGroupPolicy): Uint8Array { - return MsgCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicyResponse(): MsgCreateGroupPolicyResponse { - return { - address: "" - }; -} -export const MsgCreateGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - encode(message: MsgCreateGroupPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroupPolicyResponse { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: MsgCreateGroupPolicyResponse): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroupPolicyResponse { - const message = createBaseMsgCreateGroupPolicyResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse { - const message = createBaseMsgCreateGroupPolicyResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse { - return MsgCreateGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse", - value: MsgCreateGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse { - return MsgCreateGroupPolicyResponse.decode(message.value); - }, - toProto(message: MsgCreateGroupPolicyResponse): Uint8Array { - return MsgCreateGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - value: MsgCreateGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdmin(): MsgUpdateGroupPolicyAdmin { - return { - admin: "", - groupPolicyAddress: "", - newAdmin: "" - }; -} -export const MsgUpdateGroupPolicyAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - encode(message: MsgUpdateGroupPolicyAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupPolicyAdmin { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "", - newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : "" - }; - }, - toJSON(message: MsgUpdateGroupPolicyAdmin): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin); - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin { - return MsgUpdateGroupPolicyAdmin.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin { - return MsgUpdateGroupPolicyAdmin.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array { - return MsgUpdateGroupPolicyAdmin.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdminResponse(): MsgUpdateGroupPolicyAdminResponse { - return {}; -} -export const MsgUpdateGroupPolicyAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - encode(_: MsgUpdateGroupPolicyAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupPolicyAdminResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupPolicyAdminResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse { - return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", - value: MsgUpdateGroupPolicyAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse { - return MsgUpdateGroupPolicyAdminResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array { - return MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicy(): MsgCreateGroupWithPolicy { - return { - admin: "", - members: [], - groupMetadata: "", - groupPolicyMetadata: "", - groupPolicyAsAdmin: false, - decisionPolicy: undefined - }; -} -export const MsgCreateGroupWithPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - encode(message: MsgCreateGroupWithPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.groupMetadata !== "") { - writer.uint32(26).string(message.groupMetadata); - } - if (message.groupPolicyMetadata !== "") { - writer.uint32(34).string(message.groupPolicyMetadata); - } - if (message.groupPolicyAsAdmin === true) { - writer.uint32(40).bool(message.groupPolicyAsAdmin); - } - if (message.decisionPolicy !== undefined) { - Any.encode((message.decisionPolicy as Any), writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.groupMetadata = reader.string(); - break; - case 4: - message.groupPolicyMetadata = reader.string(); - break; - case 5: - message.groupPolicyAsAdmin = reader.bool(); - break; - case 6: - message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroupWithPolicy { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - members: Array.isArray(object?.members) ? object.members.map((e: any) => MemberRequest.fromJSON(e)) : [], - groupMetadata: isSet(object.groupMetadata) ? String(object.groupMetadata) : "", - groupPolicyMetadata: isSet(object.groupPolicyMetadata) ? String(object.groupPolicyMetadata) : "", - groupPolicyAsAdmin: isSet(object.groupPolicyAsAdmin) ? Boolean(object.groupPolicyAsAdmin) : false, - decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined - }; - }, - toJSON(message: MsgCreateGroupWithPolicy): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toJSON(e) : undefined); - } else { - obj.members = []; - } - message.groupMetadata !== undefined && (obj.groupMetadata = message.groupMetadata); - message.groupPolicyMetadata !== undefined && (obj.groupPolicyMetadata = message.groupPolicyMetadata); - message.groupPolicyAsAdmin !== undefined && (obj.groupPolicyAsAdmin = message.groupPolicyAsAdmin); - message.decisionPolicy !== undefined && (obj.decisionPolicy = message.decisionPolicy ? Any.toJSON(message.decisionPolicy) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroupWithPolicy { - const message = createBaseMsgCreateGroupWithPolicy(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; - message.groupMetadata = object.groupMetadata ?? ""; - message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; - message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy { - const message = createBaseMsgCreateGroupWithPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; - if (object.group_metadata !== undefined && object.group_metadata !== null) { - message.groupMetadata = object.group_metadata; - } - if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { - message.groupPolicyMetadata = object.group_policy_metadata; - } - if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { - message.groupPolicyAsAdmin = object.group_policy_as_admin; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); - } else { - obj.members = message.members; - } - obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; - obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; - obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy { - return MsgCreateGroupWithPolicy.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy { - return MsgCreateGroupWithPolicy.decode(message.value); - }, - toProto(message: MsgCreateGroupWithPolicy): Uint8Array { - return MsgCreateGroupWithPolicy.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicyResponse(): MsgCreateGroupWithPolicyResponse { - return { - groupId: BigInt(0), - groupPolicyAddress: "" - }; -} -export const MsgCreateGroupWithPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - encode(message: MsgCreateGroupWithPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateGroupWithPolicyResponse { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "" - }; - }, - toJSON(message: MsgCreateGroupWithPolicyResponse): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - return obj; - }, - fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - return message; - }, - fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - return message; - }, - toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - return obj; - }, - fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse { - return MsgCreateGroupWithPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", - value: MsgCreateGroupWithPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse { - return MsgCreateGroupWithPolicyResponse.decode(message.value); - }, - toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array { - return MsgCreateGroupWithPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - value: MsgCreateGroupWithPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicy(): MsgUpdateGroupPolicyDecisionPolicy { - return { - admin: "", - groupPolicyAddress: "", - decisionPolicy: undefined - }; -} -export const MsgUpdateGroupPolicyDecisionPolicy = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.decisionPolicy !== undefined) { - Any.encode((message.decisionPolicy as Any), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupPolicyDecisionPolicy { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "", - decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined - }; - }, - toJSON(message: MsgUpdateGroupPolicyDecisionPolicy): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - message.decisionPolicy !== undefined && (obj.decisionPolicy = message.decisionPolicy ? Any.toJSON(message.decisionPolicy) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy { - return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy { - return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array { - return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(): MsgUpdateGroupPolicyDecisionPolicyResponse { - return {}; -} -export const MsgUpdateGroupPolicyDecisionPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupPolicyDecisionPolicyResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupPolicyDecisionPolicyResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse { - return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", - value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse { - return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array { - return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadata(): MsgUpdateGroupPolicyMetadata { - return { - admin: "", - groupPolicyAddress: "", - metadata: "" - }; -} -export const MsgUpdateGroupPolicyMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - encode(message: MsgUpdateGroupPolicyMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateGroupPolicyMetadata { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgUpdateGroupPolicyMetadata): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata { - return MsgUpdateGroupPolicyMetadata.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata { - return MsgUpdateGroupPolicyMetadata.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array { - return MsgUpdateGroupPolicyMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadataResponse(): MsgUpdateGroupPolicyMetadataResponse { - return {}; -} -export const MsgUpdateGroupPolicyMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateGroupPolicyMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateGroupPolicyMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse { - return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", - value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse { - return MsgUpdateGroupPolicyMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array { - return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposal(): MsgSubmitProposal { - return { - groupPolicyAddress: "", - proposers: [], - metadata: "", - messages: [], - exec: 0 - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupPolicyAddress !== "") { - writer.uint32(10).string(message.groupPolicyAddress); - } - for (const v of message.proposers) { - writer.uint32(18).string(v!); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicyAddress = reader.string(); - break; - case 2: - message.proposers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 5: - message.exec = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposal { - return { - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "", - proposers: Array.isArray(object?.proposers) ? object.proposers.map((e: any) => String(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "", - messages: Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [], - exec: isSet(object.exec) ? execFromJSON(object.exec) : -1 - }; - }, - toJSON(message: MsgSubmitProposal): unknown { - const obj: any = {}; - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } else { - obj.proposers = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.messages = []; - } - message.exec !== undefined && (obj.exec = execToJSON(message.exec)); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { - const obj: any = {}; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } else { - obj.proposers = message.proposers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.messages = message.messages; - } - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { - return { - type: "cosmos-sdk/group/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message: MsgSubmitProposal): Uint8Array { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitProposalResponse { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgSubmitProposalResponse): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message: MsgSubmitProposalResponse): Uint8Array { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposal(): MsgWithdrawProposal { - return { - proposalId: BigInt(0), - address: "" - }; -} -export const MsgWithdrawProposal = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - encode(message: MsgWithdrawProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgWithdrawProposal { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: MsgWithdrawProposal): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): MsgWithdrawProposal { - const message = createBaseMsgWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal { - const message = createBaseMsgWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal { - return MsgWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg { - return { - type: "cosmos-sdk/group/MsgWithdrawProposal", - value: MsgWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal { - return MsgWithdrawProposal.decode(message.value); - }, - toProto(message: MsgWithdrawProposal): Uint8Array { - return MsgWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposalResponse(): MsgWithdrawProposalResponse { - return {}; -} -export const MsgWithdrawProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - encode(_: MsgWithdrawProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgWithdrawProposalResponse { - return {}; - }, - toJSON(_: MsgWithdrawProposalResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgWithdrawProposalResponse { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse { - return MsgWithdrawProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg { - return { - type: "cosmos-sdk/MsgWithdrawProposalResponse", - value: MsgWithdrawProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse { - return MsgWithdrawProposalResponse.decode(message.value); - }, - toProto(message: MsgWithdrawProposalResponse): Uint8Array { - return MsgWithdrawProposalResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - value: MsgWithdrawProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote(): MsgVote { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - exec: 0 - }; -} -export const MsgVote = { - typeUrl: "/cosmos.group.v1.MsgVote", - encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.exec = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgVote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - metadata: isSet(object.metadata) ? String(object.metadata) : "", - exec: isSet(object.exec) ? execFromJSON(object.exec) : -1 - }; - }, - toJSON(message: MsgVote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.exec !== undefined && (obj.exec = execToJSON(message.exec)); - return obj; - }, - fromPartial(object: Partial): MsgVote { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object: MsgVoteAmino): MsgVote { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message: MsgVote): MsgVoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message: MsgVote): MsgVoteAminoMsg { - return { - type: "cosmos-sdk/group/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { - return MsgVote.decode(message.value); - }, - toProto(message: MsgVote): Uint8Array { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message: MsgVote): MsgVoteProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse(): MsgVoteResponse { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgVoteResponse { - return {}; - }, - toJSON(_: MsgVoteResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { - return MsgVoteResponse.decode(message.value); - }, - toProto(message: MsgVoteResponse): Uint8Array { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec(): MsgExec { - return { - proposalId: BigInt(0), - executor: "" - }; -} -export const MsgExec = { - typeUrl: "/cosmos.group.v1.MsgExec", - encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.executor !== "") { - writer.uint32(18).string(message.executor); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.executor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgExec { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - executor: isSet(object.executor) ? String(object.executor) : "" - }; - }, - toJSON(message: MsgExec): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.executor !== undefined && (obj.executor = message.executor); - return obj; - }, - fromPartial(object: Partial): MsgExec { - const message = createBaseMsgExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.executor = object.executor ?? ""; - return message; - }, - fromAmino(object: MsgExecAmino): MsgExec { - const message = createBaseMsgExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.executor !== undefined && object.executor !== null) { - message.executor = object.executor; - } - return message; - }, - toAmino(message: MsgExec): MsgExecAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.executor = message.executor === "" ? undefined : message.executor; - return obj; - }, - fromAminoMsg(object: MsgExecAminoMsg): MsgExec { - return MsgExec.fromAmino(object.value); - }, - toAminoMsg(message: MsgExec): MsgExecAminoMsg { - return { - type: "cosmos-sdk/group/MsgExec", - value: MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecProtoMsg): MsgExec { - return MsgExec.decode(message.value); - }, - toProto(message: MsgExec): Uint8Array { - return MsgExec.encode(message).finish(); - }, - toProtoMsg(message: MsgExec): MsgExecProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse(): MsgExecResponse { - return { - result: 0 - }; -} -export const MsgExecResponse = { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.result = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgExecResponse { - return { - result: isSet(object.result) ? proposalExecutorResultFromJSON(object.result) : -1 - }; - }, - toJSON(message: MsgExecResponse): unknown { - const obj: any = {}; - message.result !== undefined && (obj.result = proposalExecutorResultToJSON(message.result)); - return obj; - }, - fromPartial(object: Partial): MsgExecResponse { - const message = createBaseMsgExecResponse(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object: MsgExecResponseAmino): MsgExecResponse { - const message = createBaseMsgExecResponse(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message: MsgExecResponse): MsgExecResponseAmino { - const obj: any = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse { - return MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg { - return { - type: "cosmos-sdk/MsgExecResponse", - value: MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse { - return MsgExecResponse.decode(message.value); - }, - toProto(message: MsgExecResponse): Uint8Array { - return MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - value: MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroup(): MsgLeaveGroup { - return { - address: "", - groupId: BigInt(0) - }; -} -export const MsgLeaveGroup = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - encode(message: MsgLeaveGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgLeaveGroup { - return { - address: isSet(object.address) ? String(object.address) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgLeaveGroup): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgLeaveGroup { - const message = createBaseMsgLeaveGroup(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup { - const message = createBaseMsgLeaveGroup(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup { - return MsgLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg { - return { - type: "cosmos-sdk/group/MsgLeaveGroup", - value: MsgLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup { - return MsgLeaveGroup.decode(message.value); - }, - toProto(message: MsgLeaveGroup): Uint8Array { - return MsgLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroupResponse(): MsgLeaveGroupResponse { - return {}; -} -export const MsgLeaveGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - encode(_: MsgLeaveGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgLeaveGroupResponse { - return {}; - }, - toJSON(_: MsgLeaveGroupResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgLeaveGroupResponse { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse { - return MsgLeaveGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg { - return { - type: "cosmos-sdk/MsgLeaveGroupResponse", - value: MsgLeaveGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse { - return MsgLeaveGroupResponse.decode(message.value); - }, - toProto(message: MsgLeaveGroupResponse): Uint8Array { - return MsgLeaveGroupResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - value: MsgLeaveGroupResponse.encode(message).finish() - }; - } -}; -export const DecisionPolicy_InterfaceDecoder = (input: BinaryReader | Uint8Array): ThresholdDecisionPolicy | PercentageDecisionPolicy | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -export const DecisionPolicy_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const DecisionPolicy_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/group/v1/types.ts b/packages/api/src/codegen/cosmos/group/v1/types.ts deleted file mode 100644 index 18f824a0..00000000 --- a/packages/api/src/codegen/cosmos/group/v1/types.ts +++ /dev/null @@ -1,2260 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus defines proposal statuses. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** - * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - */ - PROPOSAL_STATUS_ACCEPTED = 2, - /** - * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - */ - PROPOSAL_STATUS_REJECTED = 3, - /** - * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the - * final tally. - */ - PROPOSAL_STATUS_ABORTED = 4, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_ACCEPTED": - return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; - case 3: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 4: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 5: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: - return "PROPOSAL_STATUS_ACCEPTED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalExecutorResult defines types of proposal executor results. */ -export enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1, -} -export const ProposalExecutorResultSDKType = ProposalExecutorResult; -export const ProposalExecutorResultAmino = ProposalExecutorResult; -export function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -export function proposalExecutorResultToJSON(object: ProposalExecutorResult): string { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Timestamp; -} -export interface MemberProtoMsg { - typeUrl: "/cosmos.group.v1.Member"; - value: Uint8Array; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; - /** added_at is a timestamp specifying when a member was added. */ - added_at?: string; -} -export interface MemberAminoMsg { - type: "cosmos-sdk/Member"; - value: MemberAmino; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: TimestampSDKType; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequest { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; -} -export interface MemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.MemberRequest"; - value: Uint8Array; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; -} -export interface MemberRequestAminoMsg { - type: "cosmos-sdk/MemberRequest"; - value: MemberRequestAmino; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestSDKType { - address: string; - weight: string; - metadata: string; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface ThresholdDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; - value: Uint8Array; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicyAmino { - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface ThresholdDecisionPolicyAminoMsg { - type: "cosmos-sdk/ThresholdDecisionPolicy"; - value: ThresholdDecisionPolicyAmino; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - threshold: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface PercentageDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; - value: Uint8Array; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicyAmino { - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface PercentageDecisionPolicyAminoMsg { - type: "cosmos-sdk/PercentageDecisionPolicy"; - value: PercentageDecisionPolicyAmino; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - percentage: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -export interface DecisionPolicyWindowsProtoMsg { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; - value: Uint8Array; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsAmino { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - voting_period?: DurationAmino; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - min_execution_period?: DurationAmino; -} -export interface DecisionPolicyWindowsAminoMsg { - type: "cosmos-sdk/DecisionPolicyWindows"; - value: DecisionPolicyWindowsAmino; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: bigint; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: bigint; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Timestamp; -} -export interface GroupInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupInfo"; - value: Uint8Array; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoAmino { - /** id is the unique ID of the group. */ - id?: string; - /** admin is the account address of the group's admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version?: string; - /** total_weight is the sum of the group members' weights. */ - total_weight?: string; - /** created_at is a timestamp specifying when a group was created. */ - created_at?: string; -} -export interface GroupInfoAminoMsg { - type: "cosmos-sdk/GroupInfo"; - value: GroupInfoAmino; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: bigint; - admin: string; - metadata: string; - version: bigint; - total_weight: string; - created_at: TimestampSDKType; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** member is the member data. */ - member?: Member; -} -export interface GroupMemberProtoMsg { - typeUrl: "/cosmos.group.v1.GroupMember"; - value: Uint8Array; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** member is the member data. */ - member?: MemberAmino; -} -export interface GroupMemberAminoMsg { - type: "cosmos-sdk/GroupMember"; - value: GroupMemberAmino; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: bigint; - member?: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: bigint; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Timestamp; -} -export interface GroupPolicyInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; - value: Uint8Array; -} -export type GroupPolicyInfoEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoAmino { - /** address is the account address of group policy. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** admin is the account address of the group admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata?: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; - /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: string; -} -export interface GroupPolicyInfoAminoMsg { - type: "cosmos-sdk/GroupPolicyInfo"; - value: GroupPolicyInfoAmino; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: bigint; - admin: string; - metadata: string; - version: bigint; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; - created_at: TimestampSDKType; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: bigint; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Timestamp; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - groupVersion: bigint; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - groupPolicyVersion: bigint; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - votingPeriodEnd: Timestamp; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.group.v1.Proposal"; - value: Uint8Array; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalAmino { - /** id is the unique id of the proposal. */ - id?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** proposers are the account addresses of the proposers. */ - proposers?: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: string; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - group_version?: string; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - group_policy_version?: string; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status?: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - final_tally_result?: TallyResultAmino; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - voting_period_end?: string; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executor_result?: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: bigint; - group_policy_address: string; - metadata: string; - proposers: string[]; - submit_time: TimestampSDKType; - group_version: bigint; - group_policy_version: bigint; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - voting_period_end: TimestampSDKType; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no_count is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.group.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultAmino { - /** yes_count is the weighted sum of yes votes. */ - yes_count?: string; - /** abstain_count is the weighted sum of abstainers. */ - abstain_count?: string; - /** no_count is the weighted sum of no votes. */ - no_count?: string; - /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Timestamp; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.group.v1.Vote"; - value: Uint8Array; -} -/** Vote represents a vote for a proposal. */ -export interface VoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the account address of the voter. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - submit_time: TimestampSDKType; -} -function createBaseMember(): Member { - return { - address: "", - weight: "", - metadata: "", - addedAt: Timestamp.fromPartial({}) - }; -} -export const Member = { - typeUrl: "/cosmos.group.v1.Member", - encode(message: Member, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.addedAt !== undefined) { - Timestamp.encode(message.addedAt, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Member { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.addedAt = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Member { - return { - address: isSet(object.address) ? String(object.address) : "", - weight: isSet(object.weight) ? String(object.weight) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - addedAt: isSet(object.addedAt) ? fromJsonTimestamp(object.addedAt) : undefined - }; - }, - toJSON(message: Member): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.weight !== undefined && (obj.weight = message.weight); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.addedAt !== undefined && (obj.addedAt = fromTimestamp(message.addedAt).toISOString()); - return obj; - }, - fromPartial(object: Partial): Member { - const message = createBaseMember(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - message.addedAt = object.addedAt !== undefined && object.addedAt !== null ? Timestamp.fromPartial(object.addedAt) : undefined; - return message; - }, - fromAmino(object: MemberAmino): Member { - const message = createBaseMember(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.added_at !== undefined && object.added_at !== null) { - message.addedAt = Timestamp.fromAmino(object.added_at); - } - return message; - }, - toAmino(message: Member): MemberAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.added_at = message.addedAt ? Timestamp.toAmino(message.addedAt) : undefined; - return obj; - }, - fromAminoMsg(object: MemberAminoMsg): Member { - return Member.fromAmino(object.value); - }, - toAminoMsg(message: Member): MemberAminoMsg { - return { - type: "cosmos-sdk/Member", - value: Member.toAmino(message) - }; - }, - fromProtoMsg(message: MemberProtoMsg): Member { - return Member.decode(message.value); - }, - toProto(message: Member): Uint8Array { - return Member.encode(message).finish(); - }, - toProtoMsg(message: Member): MemberProtoMsg { - return { - typeUrl: "/cosmos.group.v1.Member", - value: Member.encode(message).finish() - }; - } -}; -function createBaseMemberRequest(): MemberRequest { - return { - address: "", - weight: "", - metadata: "" - }; -} -export const MemberRequest = { - typeUrl: "/cosmos.group.v1.MemberRequest", - encode(message: MemberRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MemberRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - weight: isSet(object.weight) ? String(object.weight) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MemberRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.weight !== undefined && (obj.weight = message.weight); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MemberRequest { - const message = createBaseMemberRequest(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MemberRequestAmino): MemberRequest { - const message = createBaseMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MemberRequest): MemberRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest { - return MemberRequest.fromAmino(object.value); - }, - toAminoMsg(message: MemberRequest): MemberRequestAminoMsg { - return { - type: "cosmos-sdk/MemberRequest", - value: MemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest { - return MemberRequest.decode(message.value); - }, - toProto(message: MemberRequest): Uint8Array { - return MemberRequest.encode(message).finish(); - }, - toProtoMsg(message: MemberRequest): MemberRequestProtoMsg { - return { - typeUrl: "/cosmos.group.v1.MemberRequest", - value: MemberRequest.encode(message).finish() - }; - } -}; -function createBaseThresholdDecisionPolicy(): ThresholdDecisionPolicy { - return { - $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - threshold: "", - windows: undefined - }; -} -export const ThresholdDecisionPolicy = { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - encode(message: ThresholdDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.threshold !== "") { - writer.uint32(10).string(message.threshold); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseThresholdDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ThresholdDecisionPolicy { - return { - threshold: isSet(object.threshold) ? String(object.threshold) : "", - windows: isSet(object.windows) ? DecisionPolicyWindows.fromJSON(object.windows) : undefined - }; - }, - toJSON(message: ThresholdDecisionPolicy): unknown { - const obj: any = {}; - message.threshold !== undefined && (obj.threshold = message.threshold); - message.windows !== undefined && (obj.windows = message.windows ? DecisionPolicyWindows.toJSON(message.windows) : undefined); - return obj; - }, - fromPartial(object: Partial): ThresholdDecisionPolicy { - const message = createBaseThresholdDecisionPolicy(); - message.threshold = object.threshold ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy { - const message = createBaseThresholdDecisionPolicy(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino { - const obj: any = {}; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy { - return ThresholdDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg { - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy { - return ThresholdDecisionPolicy.decode(message.value); - }, - toProto(message: ThresholdDecisionPolicy): Uint8Array { - return ThresholdDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(message).finish() - }; - } -}; -function createBasePercentageDecisionPolicy(): PercentageDecisionPolicy { - return { - $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - percentage: "", - windows: undefined - }; -} -export const PercentageDecisionPolicy = { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - encode(message: PercentageDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.percentage !== "") { - writer.uint32(10).string(message.percentage); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePercentageDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.percentage = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PercentageDecisionPolicy { - return { - percentage: isSet(object.percentage) ? String(object.percentage) : "", - windows: isSet(object.windows) ? DecisionPolicyWindows.fromJSON(object.windows) : undefined - }; - }, - toJSON(message: PercentageDecisionPolicy): unknown { - const obj: any = {}; - message.percentage !== undefined && (obj.percentage = message.percentage); - message.windows !== undefined && (obj.windows = message.windows ? DecisionPolicyWindows.toJSON(message.windows) : undefined); - return obj; - }, - fromPartial(object: Partial): PercentageDecisionPolicy { - const message = createBasePercentageDecisionPolicy(); - message.percentage = object.percentage ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy { - const message = createBasePercentageDecisionPolicy(); - if (object.percentage !== undefined && object.percentage !== null) { - message.percentage = object.percentage; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino { - const obj: any = {}; - obj.percentage = message.percentage === "" ? undefined : message.percentage; - obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy { - return PercentageDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg { - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy { - return PercentageDecisionPolicy.decode(message.value); - }, - toProto(message: PercentageDecisionPolicy): Uint8Array { - return PercentageDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg { - return { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseDecisionPolicyWindows(): DecisionPolicyWindows { - return { - votingPeriod: Duration.fromPartial({}), - minExecutionPeriod: Duration.fromPartial({}) - }; -} -export const DecisionPolicyWindows = { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - encode(message: DecisionPolicyWindows, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - if (message.minExecutionPeriod !== undefined) { - Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecisionPolicyWindows(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - case 2: - message.minExecutionPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DecisionPolicyWindows { - return { - votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined, - minExecutionPeriod: isSet(object.minExecutionPeriod) ? Duration.fromJSON(object.minExecutionPeriod) : undefined - }; - }, - toJSON(message: DecisionPolicyWindows): unknown { - const obj: any = {}; - message.votingPeriod !== undefined && (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined); - message.minExecutionPeriod !== undefined && (obj.minExecutionPeriod = message.minExecutionPeriod ? Duration.toJSON(message.minExecutionPeriod) : undefined); - return obj; - }, - fromPartial(object: Partial): DecisionPolicyWindows { - const message = createBaseDecisionPolicyWindows(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined; - return message; - }, - fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows { - const message = createBaseDecisionPolicyWindows(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - if (object.min_execution_period !== undefined && object.min_execution_period !== null) { - message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period); - } - return message; - }, - toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino { - const obj: any = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : undefined; - return obj; - }, - fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows { - return DecisionPolicyWindows.fromAmino(object.value); - }, - toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg { - return { - type: "cosmos-sdk/DecisionPolicyWindows", - value: DecisionPolicyWindows.toAmino(message) - }; - }, - fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows { - return DecisionPolicyWindows.decode(message.value); - }, - toProto(message: DecisionPolicyWindows): Uint8Array { - return DecisionPolicyWindows.encode(message).finish(); - }, - toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg { - return { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - value: DecisionPolicyWindows.encode(message).finish() - }; - } -}; -function createBaseGroupInfo(): GroupInfo { - return { - id: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - totalWeight: "", - createdAt: Timestamp.fromPartial({}) - }; -} -export const GroupInfo = { - typeUrl: "/cosmos.group.v1.GroupInfo", - encode(message: GroupInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(32).uint64(message.version); - } - if (message.totalWeight !== "") { - writer.uint32(42).string(message.totalWeight); - } - if (message.createdAt !== undefined) { - Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.version = reader.uint64(); - break; - case 5: - message.totalWeight = reader.string(); - break; - case 6: - message.createdAt = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GroupInfo { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - admin: isSet(object.admin) ? String(object.admin) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0), - totalWeight: isSet(object.totalWeight) ? String(object.totalWeight) : "", - createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined - }; - }, - toJSON(message: GroupInfo): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.admin !== undefined && (obj.admin = message.admin); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - message.totalWeight !== undefined && (obj.totalWeight = message.totalWeight); - message.createdAt !== undefined && (obj.createdAt = fromTimestamp(message.createdAt).toISOString()); - return obj; - }, - fromPartial(object: Partial): GroupInfo { - const message = createBaseGroupInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.totalWeight = object.totalWeight ?? ""; - message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? Timestamp.fromPartial(object.createdAt) : undefined; - return message; - }, - fromAmino(object: GroupInfoAmino): GroupInfo { - const message = createBaseGroupInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.total_weight !== undefined && object.total_weight !== null) { - message.totalWeight = object.total_weight; - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = Timestamp.fromAmino(object.created_at); - } - return message; - }, - toAmino(message: GroupInfo): GroupInfoAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; - obj.created_at = message.createdAt ? Timestamp.toAmino(message.createdAt) : undefined; - return obj; - }, - fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo { - return GroupInfo.fromAmino(object.value); - }, - toAminoMsg(message: GroupInfo): GroupInfoAminoMsg { - return { - type: "cosmos-sdk/GroupInfo", - value: GroupInfo.toAmino(message) - }; - }, - fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo { - return GroupInfo.decode(message.value); - }, - toProto(message: GroupInfo): Uint8Array { - return GroupInfo.encode(message).finish(); - }, - toProtoMsg(message: GroupInfo): GroupInfoProtoMsg { - return { - typeUrl: "/cosmos.group.v1.GroupInfo", - value: GroupInfo.encode(message).finish() - }; - } -}; -function createBaseGroupMember(): GroupMember { - return { - groupId: BigInt(0), - member: undefined - }; -} -export const GroupMember = { - typeUrl: "/cosmos.group.v1.GroupMember", - encode(message: GroupMember, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.member !== undefined) { - Member.encode(message.member, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GroupMember { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.member = Member.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GroupMember { - return { - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - member: isSet(object.member) ? Member.fromJSON(object.member) : undefined - }; - }, - toJSON(message: GroupMember): unknown { - const obj: any = {}; - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.member !== undefined && (obj.member = message.member ? Member.toJSON(message.member) : undefined); - return obj; - }, - fromPartial(object: Partial): GroupMember { - const message = createBaseGroupMember(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined; - return message; - }, - fromAmino(object: GroupMemberAmino): GroupMember { - const message = createBaseGroupMember(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.member !== undefined && object.member !== null) { - message.member = Member.fromAmino(object.member); - } - return message; - }, - toAmino(message: GroupMember): GroupMemberAmino { - const obj: any = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.member = message.member ? Member.toAmino(message.member) : undefined; - return obj; - }, - fromAminoMsg(object: GroupMemberAminoMsg): GroupMember { - return GroupMember.fromAmino(object.value); - }, - toAminoMsg(message: GroupMember): GroupMemberAminoMsg { - return { - type: "cosmos-sdk/GroupMember", - value: GroupMember.toAmino(message) - }; - }, - fromProtoMsg(message: GroupMemberProtoMsg): GroupMember { - return GroupMember.decode(message.value); - }, - toProto(message: GroupMember): Uint8Array { - return GroupMember.encode(message).finish(); - }, - toProtoMsg(message: GroupMember): GroupMemberProtoMsg { - return { - typeUrl: "/cosmos.group.v1.GroupMember", - value: GroupMember.encode(message).finish() - }; - } -}; -function createBaseGroupPolicyInfo(): GroupPolicyInfo { - return { - address: "", - groupId: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - decisionPolicy: undefined, - createdAt: Timestamp.fromPartial({}) - }; -} -export const GroupPolicyInfo = { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - encode(message: GroupPolicyInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.admin !== "") { - writer.uint32(26).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(40).uint64(message.version); - } - if (message.decisionPolicy !== undefined) { - Any.encode((message.decisionPolicy as Any), writer.uint32(50).fork()).ldelim(); - } - if (message.createdAt !== undefined) { - Timestamp.encode(message.createdAt, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupPolicyInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.admin = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.version = reader.uint64(); - break; - case 6: - message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); - break; - case 7: - message.createdAt = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GroupPolicyInfo { - return { - address: isSet(object.address) ? String(object.address) : "", - groupId: isSet(object.groupId) ? BigInt(object.groupId.toString()) : BigInt(0), - admin: isSet(object.admin) ? String(object.admin) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0), - decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined, - createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined - }; - }, - toJSON(message: GroupPolicyInfo): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.groupId !== undefined && (obj.groupId = (message.groupId || BigInt(0)).toString()); - message.admin !== undefined && (obj.admin = message.admin); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - message.decisionPolicy !== undefined && (obj.decisionPolicy = message.decisionPolicy ? Any.toJSON(message.decisionPolicy) : undefined); - message.createdAt !== undefined && (obj.createdAt = fromTimestamp(message.createdAt).toISOString()); - return obj; - }, - fromPartial(object: Partial): GroupPolicyInfo { - const message = createBaseGroupPolicyInfo(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? Timestamp.fromPartial(object.createdAt) : undefined; - return message; - }, - fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo { - const message = createBaseGroupPolicyInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = Timestamp.fromAmino(object.created_at); - } - return message; - }, - toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; - obj.created_at = message.createdAt ? Timestamp.toAmino(message.createdAt) : undefined; - return obj; - }, - fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo { - return GroupPolicyInfo.fromAmino(object.value); - }, - toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg { - return { - type: "cosmos-sdk/GroupPolicyInfo", - value: GroupPolicyInfo.toAmino(message) - }; - }, - fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo { - return GroupPolicyInfo.decode(message.value); - }, - toProto(message: GroupPolicyInfo): Uint8Array { - return GroupPolicyInfo.encode(message).finish(); - }, - toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg { - return { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - value: GroupPolicyInfo.encode(message).finish() - }; - } -}; -function createBaseProposal(): Proposal { - return { - id: BigInt(0), - groupPolicyAddress: "", - metadata: "", - proposers: [], - submitTime: Timestamp.fromPartial({}), - groupVersion: BigInt(0), - groupPolicyVersion: BigInt(0), - status: 0, - finalTallyResult: TallyResult.fromPartial({}), - votingPeriodEnd: Timestamp.fromPartial({}), - executorResult: 0, - messages: [] - }; -} -export const Proposal = { - typeUrl: "/cosmos.group.v1.Proposal", - encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.proposers) { - writer.uint32(34).string(v!); - } - if (message.submitTime !== undefined) { - Timestamp.encode(message.submitTime, writer.uint32(42).fork()).ldelim(); - } - if (message.groupVersion !== BigInt(0)) { - writer.uint32(48).uint64(message.groupVersion); - } - if (message.groupPolicyVersion !== BigInt(0)) { - writer.uint32(56).uint64(message.groupPolicyVersion); - } - if (message.status !== 0) { - writer.uint32(64).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); - } - if (message.votingPeriodEnd !== undefined) { - Timestamp.encode(message.votingPeriodEnd, writer.uint32(82).fork()).ldelim(); - } - if (message.executorResult !== 0) { - writer.uint32(88).int32(message.executorResult); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(98).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Proposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.proposers.push(reader.string()); - break; - case 5: - message.submitTime = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.groupVersion = reader.uint64(); - break; - case 7: - message.groupPolicyVersion = reader.uint64(); - break; - case 8: - message.status = (reader.int32() as any); - break; - case 9: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 10: - message.votingPeriodEnd = Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.executorResult = (reader.int32() as any); - break; - case 12: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Proposal { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - groupPolicyAddress: isSet(object.groupPolicyAddress) ? String(object.groupPolicyAddress) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - proposers: Array.isArray(object?.proposers) ? object.proposers.map((e: any) => String(e)) : [], - submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined, - groupVersion: isSet(object.groupVersion) ? BigInt(object.groupVersion.toString()) : BigInt(0), - groupPolicyVersion: isSet(object.groupPolicyVersion) ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0), - status: isSet(object.status) ? proposalStatusFromJSON(object.status) : -1, - finalTallyResult: isSet(object.finalTallyResult) ? TallyResult.fromJSON(object.finalTallyResult) : undefined, - votingPeriodEnd: isSet(object.votingPeriodEnd) ? fromJsonTimestamp(object.votingPeriodEnd) : undefined, - executorResult: isSet(object.executorResult) ? proposalExecutorResultFromJSON(object.executorResult) : -1, - messages: Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: Proposal): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.groupPolicyAddress !== undefined && (obj.groupPolicyAddress = message.groupPolicyAddress); - message.metadata !== undefined && (obj.metadata = message.metadata); - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } else { - obj.proposers = []; - } - message.submitTime !== undefined && (obj.submitTime = fromTimestamp(message.submitTime).toISOString()); - message.groupVersion !== undefined && (obj.groupVersion = (message.groupVersion || BigInt(0)).toString()); - message.groupPolicyVersion !== undefined && (obj.groupPolicyVersion = (message.groupPolicyVersion || BigInt(0)).toString()); - message.status !== undefined && (obj.status = proposalStatusToJSON(message.status)); - message.finalTallyResult !== undefined && (obj.finalTallyResult = message.finalTallyResult ? TallyResult.toJSON(message.finalTallyResult) : undefined); - message.votingPeriodEnd !== undefined && (obj.votingPeriodEnd = fromTimestamp(message.votingPeriodEnd).toISOString()); - message.executorResult !== undefined && (obj.executorResult = proposalExecutorResultToJSON(message.executorResult)); - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.messages = []; - } - return obj; - }, - fromPartial(object: Partial): Proposal { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.submitTime = object.submitTime !== undefined && object.submitTime !== null ? Timestamp.fromPartial(object.submitTime) : undefined; - message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); - message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.votingPeriodEnd = object.votingPeriodEnd !== undefined && object.votingPeriodEnd !== null ? Timestamp.fromPartial(object.votingPeriodEnd) : undefined; - message.executorResult = object.executorResult ?? 0; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ProposalAmino): Proposal { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = Timestamp.fromAmino(object.submit_time); - } - if (object.group_version !== undefined && object.group_version !== null) { - message.groupVersion = BigInt(object.group_version); - } - if (object.group_policy_version !== undefined && object.group_policy_version !== null) { - message.groupPolicyVersion = BigInt(object.group_policy_version); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.voting_period_end !== undefined && object.voting_period_end !== null) { - message.votingPeriodEnd = Timestamp.fromAmino(object.voting_period_end); - } - if (object.executor_result !== undefined && object.executor_result !== null) { - message.executorResult = object.executor_result; - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: Proposal): ProposalAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } else { - obj.proposers = message.proposers; - } - obj.submit_time = message.submitTime ? Timestamp.toAmino(message.submitTime) : undefined; - obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; - obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(message.votingPeriodEnd) : undefined; - obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.messages = message.messages; - } - return obj; - }, - fromAminoMsg(object: ProposalAminoMsg): Proposal { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message: Proposal): ProposalAminoMsg { - return { - type: "cosmos-sdk/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message: ProposalProtoMsg): Proposal { - return Proposal.decode(message.value); - }, - toProto(message: Proposal): Uint8Array { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message: Proposal): ProposalProtoMsg { - return { - typeUrl: "/cosmos.group.v1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult(): TallyResult { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.group.v1.TallyResult", - encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TallyResult { - return { - yesCount: isSet(object.yesCount) ? String(object.yesCount) : "", - abstainCount: isSet(object.abstainCount) ? String(object.abstainCount) : "", - noCount: isSet(object.noCount) ? String(object.noCount) : "", - noWithVetoCount: isSet(object.noWithVetoCount) ? String(object.noWithVetoCount) : "" - }; - }, - toJSON(message: TallyResult): unknown { - const obj: any = {}; - message.yesCount !== undefined && (obj.yesCount = message.yesCount); - message.abstainCount !== undefined && (obj.abstainCount = message.abstainCount); - message.noCount !== undefined && (obj.noCount = message.noCount); - message.noWithVetoCount !== undefined && (obj.noWithVetoCount = message.noWithVetoCount); - return obj; - }, - fromPartial(object: Partial): TallyResult { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object: TallyResultAmino): TallyResult { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message: TallyResult): TallyResultAmino { - const obj: any = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object: TallyResultAminoMsg): TallyResult { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message: TallyResult): TallyResultAminoMsg { - return { - type: "cosmos-sdk/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message: TallyResultProtoMsg): TallyResult { - return TallyResult.decode(message.value); - }, - toProto(message: TallyResult): Uint8Array { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message: TallyResult): TallyResultProtoMsg { - return { - typeUrl: "/cosmos.group.v1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote(): Vote { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - submitTime: Timestamp.fromPartial({}) - }; -} -export const Vote = { - typeUrl: "/cosmos.group.v1.Vote", - encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.submitTime !== undefined) { - Timestamp.encode(message.submitTime, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Vote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.submitTime = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Vote { - return { - proposalId: isSet(object.proposalId) ? BigInt(object.proposalId.toString()) : BigInt(0), - voter: isSet(object.voter) ? String(object.voter) : "", - option: isSet(object.option) ? voteOptionFromJSON(object.option) : -1, - metadata: isSet(object.metadata) ? String(object.metadata) : "", - submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined - }; - }, - toJSON(message: Vote): unknown { - const obj: any = {}; - message.proposalId !== undefined && (obj.proposalId = (message.proposalId || BigInt(0)).toString()); - message.voter !== undefined && (obj.voter = message.voter); - message.option !== undefined && (obj.option = voteOptionToJSON(message.option)); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.submitTime !== undefined && (obj.submitTime = fromTimestamp(message.submitTime).toISOString()); - return obj; - }, - fromPartial(object: Partial): Vote { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.submitTime = object.submitTime !== undefined && object.submitTime !== null ? Timestamp.fromPartial(object.submitTime) : undefined; - return message; - }, - fromAmino(object: VoteAmino): Vote { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = Timestamp.fromAmino(object.submit_time); - } - return message; - }, - toAmino(message: Vote): VoteAmino { - const obj: any = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.submit_time = message.submitTime ? Timestamp.toAmino(message.submitTime) : undefined; - return obj; - }, - fromAminoMsg(object: VoteAminoMsg): Vote { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message: Vote): VoteAminoMsg { - return { - type: "cosmos-sdk/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message: VoteProtoMsg): Vote { - return Vote.decode(message.value); - }, - toProto(message: Vote): Uint8Array { - return Vote.encode(message).finish(); - }, - toProtoMsg(message: Vote): VoteProtoMsg { - return { - typeUrl: "/cosmos.group.v1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -export const DecisionPolicy_InterfaceDecoder = (input: BinaryReader | Uint8Array): ThresholdDecisionPolicy | PercentageDecisionPolicy | Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -export const DecisionPolicy_FromAmino = (content: AnyAmino): Any => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const DecisionPolicy_ToAmino = (content: Any) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/lcd.ts b/packages/api/src/codegen/cosmos/lcd.ts deleted file mode 100644 index a71f3e10..00000000 --- a/packages/api/src/codegen/cosmos/lcd.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ - restEndpoint -}: { - restEndpoint: string; -}) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("./auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("./authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("./bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("./base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tendermint: { - v1beta1: new (await import("./base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("./distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - evidence: { - v1beta1: new (await import("./evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("./feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("./gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("./gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("./group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("./mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("./nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("./params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("./slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("./staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("./tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("./upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/mint/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/mint/v1beta1/genesis.ts deleted file mode 100644 index f301d34e..00000000 --- a/packages/api/src/codegen/cosmos/mint/v1beta1/genesis.ts +++ /dev/null @@ -1,123 +0,0 @@ -import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateAmino { - /** minter is a space for holding current inflation information. */ - minter?: MinterAmino; - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - minter: Minter.fromPartial({}), - params: Params.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.minter !== undefined) { - Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minter = Minter.decode(reader, reader.uint32()); - break; - case 2: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - minter: isSet(object.minter) ? Minter.fromJSON(object.minter) : undefined, - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.minter !== undefined && (obj.minter = message.minter ? Minter.toJSON(message.minter) : undefined); - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.minter !== undefined && object.minter !== null) { - message.minter = Minter.fromAmino(object.minter); - } - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.minter = message.minter ? Minter.toAmino(message.minter) : undefined; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/mint/v1beta1/mint.ts b/packages/api/src/codegen/cosmos/mint/v1beta1/mint.ts deleted file mode 100644 index c7cda98f..00000000 --- a/packages/api/src/codegen/cosmos/mint/v1beta1/mint.ts +++ /dev/null @@ -1,319 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -import { isSet } from "../../../helpers"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -export interface MinterProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Minter"; - value: Uint8Array; -} -/** Minter represents the minting state. */ -export interface MinterAmino { - /** current annual inflation rate */ - inflation?: string; - /** current annual expected provisions */ - annual_provisions?: string; -} -export interface MinterAminoMsg { - type: "cosmos-sdk/Minter"; - value: MinterAmino; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Params"; - value: Uint8Array; -} -/** Params holds parameters for the mint module. */ -export interface ParamsAmino { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** expected blocks per year */ - blocks_per_year?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: bigint; -} -function createBaseMinter(): Minter { - return { - inflation: "", - annualProvisions: "" - }; -} -export const Minter = { - typeUrl: "/cosmos.mint.v1beta1.Minter", - encode(message: Minter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.inflation !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.inflation, 18).atomics); - } - if (message.annualProvisions !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.annualProvisions, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Minter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMinter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.annualProvisions = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Minter { - return { - inflation: isSet(object.inflation) ? String(object.inflation) : "", - annualProvisions: isSet(object.annualProvisions) ? String(object.annualProvisions) : "" - }; - }, - toJSON(message: Minter): unknown { - const obj: any = {}; - message.inflation !== undefined && (obj.inflation = message.inflation); - message.annualProvisions !== undefined && (obj.annualProvisions = message.annualProvisions); - return obj; - }, - fromPartial(object: Partial): Minter { - const message = createBaseMinter(); - message.inflation = object.inflation ?? ""; - message.annualProvisions = object.annualProvisions ?? ""; - return message; - }, - fromAmino(object: MinterAmino): Minter { - const message = createBaseMinter(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = object.inflation; - } - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = object.annual_provisions; - } - return message; - }, - toAmino(message: Minter): MinterAmino { - const obj: any = {}; - obj.inflation = message.inflation === "" ? undefined : message.inflation; - obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; - return obj; - }, - fromAminoMsg(object: MinterAminoMsg): Minter { - return Minter.fromAmino(object.value); - }, - toAminoMsg(message: Minter): MinterAminoMsg { - return { - type: "cosmos-sdk/Minter", - value: Minter.toAmino(message) - }; - }, - fromProtoMsg(message: MinterProtoMsg): Minter { - return Minter.decode(message.value); - }, - toProto(message: Minter): Uint8Array { - return Minter.encode(message).finish(); - }, - toProtoMsg(message: Minter): MinterProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.Minter", - value: Minter.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - mintDenom: "", - inflationRateChange: "", - inflationMax: "", - inflationMin: "", - goalBonded: "", - blocksPerYear: BigInt(0) - }; -} -export const Params = { - typeUrl: "/cosmos.mint.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.mintDenom !== "") { - writer.uint32(10).string(message.mintDenom); - } - if (message.inflationRateChange !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.inflationRateChange, 18).atomics); - } - if (message.inflationMax !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.inflationMax, 18).atomics); - } - if (message.inflationMin !== "") { - writer.uint32(34).string(Decimal.fromUserInput(message.inflationMin, 18).atomics); - } - if (message.goalBonded !== "") { - writer.uint32(42).string(Decimal.fromUserInput(message.goalBonded, 18).atomics); - } - if (message.blocksPerYear !== BigInt(0)) { - writer.uint32(48).uint64(message.blocksPerYear); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mintDenom = reader.string(); - break; - case 2: - message.inflationRateChange = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.inflationMax = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.inflationMin = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 5: - message.goalBonded = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 6: - message.blocksPerYear = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - mintDenom: isSet(object.mintDenom) ? String(object.mintDenom) : "", - inflationRateChange: isSet(object.inflationRateChange) ? String(object.inflationRateChange) : "", - inflationMax: isSet(object.inflationMax) ? String(object.inflationMax) : "", - inflationMin: isSet(object.inflationMin) ? String(object.inflationMin) : "", - goalBonded: isSet(object.goalBonded) ? String(object.goalBonded) : "", - blocksPerYear: isSet(object.blocksPerYear) ? BigInt(object.blocksPerYear.toString()) : BigInt(0) - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.mintDenom !== undefined && (obj.mintDenom = message.mintDenom); - message.inflationRateChange !== undefined && (obj.inflationRateChange = message.inflationRateChange); - message.inflationMax !== undefined && (obj.inflationMax = message.inflationMax); - message.inflationMin !== undefined && (obj.inflationMin = message.inflationMin); - message.goalBonded !== undefined && (obj.goalBonded = message.goalBonded); - message.blocksPerYear !== undefined && (obj.blocksPerYear = (message.blocksPerYear || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.mintDenom = object.mintDenom ?? ""; - message.inflationRateChange = object.inflationRateChange ?? ""; - message.inflationMax = object.inflationMax ?? ""; - message.inflationMin = object.inflationMin ?? ""; - message.goalBonded = object.goalBonded ?? ""; - message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.mint_denom !== undefined && object.mint_denom !== null) { - message.mintDenom = object.mint_denom; - } - if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { - message.inflationRateChange = object.inflation_rate_change; - } - if (object.inflation_max !== undefined && object.inflation_max !== null) { - message.inflationMax = object.inflation_max; - } - if (object.inflation_min !== undefined && object.inflation_min !== null) { - message.inflationMin = object.inflation_min; - } - if (object.goal_bonded !== undefined && object.goal_bonded !== null) { - message.goalBonded = object.goal_bonded; - } - if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { - message.blocksPerYear = BigInt(object.blocks_per_year); - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; - obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; - obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; - obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; - obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; - obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/mint/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/mint/v1beta1/query.lcd.ts deleted file mode 100644 index ad985b04..00000000 --- a/packages/api/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - /* Params returns the total set of minting parameters. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/params`; - return await this.req.get(endpoint); - } - /* Inflation returns the current minting inflation value. */ - async inflation(_params: QueryInflationRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/inflation`; - return await this.req.get(endpoint); - } - /* AnnualProvisions current minting annual provisions value. */ - async annualProvisions(_params: QueryAnnualProvisionsRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/annual_provisions`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 71e91773..00000000 --- a/packages/api/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** Params returns the total set of minting parameters. */ - params(request?: QueryParamsRequest): Promise; - /** Inflation returns the current minting inflation value. */ - inflation(request?: QueryInflationRequest): Promise; - /** AnnualProvisions current minting annual provisions value. */ - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - inflation(request: QueryInflationRequest = {}): Promise { - const data = QueryInflationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); - return promise.then(data => QueryInflationResponse.decode(new BinaryReader(data))); - } - annualProvisions(request: QueryAnnualProvisionsRequest = {}): Promise { - const data = QueryAnnualProvisionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); - return promise.then(data => QueryAnnualProvisionsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - inflation(request?: QueryInflationRequest): Promise { - return queryService.inflation(request); - }, - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise { - return queryService.annualProvisions(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/mint/v1beta1/query.ts b/packages/api/src/codegen/cosmos/mint/v1beta1/query.ts deleted file mode 100644 index add8d580..00000000 --- a/packages/api/src/codegen/cosmos/mint/v1beta1/query.ts +++ /dev/null @@ -1,564 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequest {} -export interface QueryInflationRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; - value: Uint8Array; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestAmino {} -export interface QueryInflationRequestAminoMsg { - type: "cosmos-sdk/QueryInflationRequest"; - value: QueryInflationRequestAmino; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestSDKType {} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponse { - /** inflation is the current minting inflation value. */ - inflation: Uint8Array; -} -export interface QueryInflationResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; - value: Uint8Array; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseAmino { - /** inflation is the current minting inflation value. */ - inflation?: string; -} -export interface QueryInflationResponseAminoMsg { - type: "cosmos-sdk/QueryInflationResponse"; - value: QueryInflationResponseAmino; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseSDKType { - inflation: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequest {} -export interface QueryAnnualProvisionsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestAmino {} -export interface QueryAnnualProvisionsRequestAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsRequest"; - value: QueryAnnualProvisionsRequestAmino; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestSDKType {} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponse { - /** annual_provisions is the current minting annual provisions value. */ - annualProvisions: Uint8Array; -} -export interface QueryAnnualProvisionsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseAmino { - /** annual_provisions is the current minting annual provisions value. */ - annual_provisions?: string; -} -export interface QueryAnnualProvisionsResponseAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsResponse"; - value: QueryAnnualProvisionsResponseAmino; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseSDKType { - annual_provisions: Uint8Array; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryInflationRequest(): QueryInflationRequest { - return {}; -} -export const QueryInflationRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - encode(_: QueryInflationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryInflationRequest { - return {}; - }, - toJSON(_: QueryInflationRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryInflationRequest { - const message = createBaseQueryInflationRequest(); - return message; - }, - fromAmino(_: QueryInflationRequestAmino): QueryInflationRequest { - const message = createBaseQueryInflationRequest(); - return message; - }, - toAmino(_: QueryInflationRequest): QueryInflationRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryInflationRequestAminoMsg): QueryInflationRequest { - return QueryInflationRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryInflationRequest): QueryInflationRequestAminoMsg { - return { - type: "cosmos-sdk/QueryInflationRequest", - value: QueryInflationRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryInflationRequestProtoMsg): QueryInflationRequest { - return QueryInflationRequest.decode(message.value); - }, - toProto(message: QueryInflationRequest): Uint8Array { - return QueryInflationRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - value: QueryInflationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInflationResponse(): QueryInflationResponse { - return { - inflation: new Uint8Array() - }; -} -export const QueryInflationResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - encode(message: QueryInflationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.inflation.length !== 0) { - writer.uint32(10).bytes(message.inflation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryInflationResponse { - return { - inflation: isSet(object.inflation) ? bytesFromBase64(object.inflation) : new Uint8Array() - }; - }, - toJSON(message: QueryInflationResponse): unknown { - const obj: any = {}; - message.inflation !== undefined && (obj.inflation = base64FromBytes(message.inflation !== undefined ? message.inflation : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): QueryInflationResponse { - const message = createBaseQueryInflationResponse(); - message.inflation = object.inflation ?? new Uint8Array(); - return message; - }, - fromAmino(object: QueryInflationResponseAmino): QueryInflationResponse { - const message = createBaseQueryInflationResponse(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = bytesFromBase64(object.inflation); - } - return message; - }, - toAmino(message: QueryInflationResponse): QueryInflationResponseAmino { - const obj: any = {}; - obj.inflation = message.inflation ? base64FromBytes(message.inflation) : undefined; - return obj; - }, - fromAminoMsg(object: QueryInflationResponseAminoMsg): QueryInflationResponse { - return QueryInflationResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryInflationResponse): QueryInflationResponseAminoMsg { - return { - type: "cosmos-sdk/QueryInflationResponse", - value: QueryInflationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryInflationResponseProtoMsg): QueryInflationResponse { - return QueryInflationResponse.decode(message.value); - }, - toProto(message: QueryInflationResponse): Uint8Array { - return QueryInflationResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - value: QueryInflationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsRequest(): QueryAnnualProvisionsRequest { - return {}; -} -export const QueryAnnualProvisionsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - encode(_: QueryAnnualProvisionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryAnnualProvisionsRequest { - return {}; - }, - toJSON(_: QueryAnnualProvisionsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryAnnualProvisionsRequest { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - fromAmino(_: QueryAnnualProvisionsRequestAmino): QueryAnnualProvisionsRequest { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - toAmino(_: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryAnnualProvisionsRequestAminoMsg): QueryAnnualProvisionsRequest { - return QueryAnnualProvisionsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAnnualProvisionsRequest", - value: QueryAnnualProvisionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAnnualProvisionsRequestProtoMsg): QueryAnnualProvisionsRequest { - return QueryAnnualProvisionsRequest.decode(message.value); - }, - toProto(message: QueryAnnualProvisionsRequest): Uint8Array { - return QueryAnnualProvisionsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - value: QueryAnnualProvisionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsResponse(): QueryAnnualProvisionsResponse { - return { - annualProvisions: new Uint8Array() - }; -} -export const QueryAnnualProvisionsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - encode(message: QueryAnnualProvisionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.annualProvisions.length !== 0) { - writer.uint32(10).bytes(message.annualProvisions); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annualProvisions = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAnnualProvisionsResponse { - return { - annualProvisions: isSet(object.annualProvisions) ? bytesFromBase64(object.annualProvisions) : new Uint8Array() - }; - }, - toJSON(message: QueryAnnualProvisionsResponse): unknown { - const obj: any = {}; - message.annualProvisions !== undefined && (obj.annualProvisions = base64FromBytes(message.annualProvisions !== undefined ? message.annualProvisions : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): QueryAnnualProvisionsResponse { - const message = createBaseQueryAnnualProvisionsResponse(); - message.annualProvisions = object.annualProvisions ?? new Uint8Array(); - return message; - }, - fromAmino(object: QueryAnnualProvisionsResponseAmino): QueryAnnualProvisionsResponse { - const message = createBaseQueryAnnualProvisionsResponse(); - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = bytesFromBase64(object.annual_provisions); - } - return message; - }, - toAmino(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAmino { - const obj: any = {}; - obj.annual_provisions = message.annualProvisions ? base64FromBytes(message.annualProvisions) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAnnualProvisionsResponseAminoMsg): QueryAnnualProvisionsResponse { - return QueryAnnualProvisionsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAnnualProvisionsResponse", - value: QueryAnnualProvisionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAnnualProvisionsResponseProtoMsg): QueryAnnualProvisionsResponse { - return QueryAnnualProvisionsResponse.decode(message.value); - }, - toProto(message: QueryAnnualProvisionsResponse): Uint8Array { - return QueryAnnualProvisionsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseProtoMsg { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - value: QueryAnnualProvisionsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/msg/v1/msg.ts b/packages/api/src/codegen/cosmos/msg/v1/msg.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/api/src/codegen/cosmos/msg/v1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/event.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/event.ts deleted file mode 100644 index e5b10f54..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/event.ts +++ /dev/null @@ -1,418 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventSend"; - value: Uint8Array; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendAmino { - class_id?: string; - id?: string; - sender?: string; - receiver?: string; -} -export interface EventSendAminoMsg { - type: "cosmos-sdk/EventSend"; - value: EventSendAmino; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -export interface EventMintProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventMint"; - value: Uint8Array; -} -/** EventMint is emitted on Mint */ -export interface EventMintAmino { - class_id?: string; - id?: string; - owner?: string; -} -export interface EventMintAminoMsg { - type: "cosmos-sdk/EventMint"; - value: EventMintAmino; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -export interface EventBurnProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventBurn"; - value: Uint8Array; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnAmino { - class_id?: string; - id?: string; - owner?: string; -} -export interface EventBurnAminoMsg { - type: "cosmos-sdk/EventBurn"; - value: EventBurnAmino; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} -function createBaseEventSend(): EventSend { - return { - classId: "", - id: "", - sender: "", - receiver: "" - }; -} -export const EventSend = { - typeUrl: "/cosmos.nft.v1beta1.EventSend", - encode(message: EventSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(34).string(message.receiver); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventSend { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "", - sender: isSet(object.sender) ? String(object.sender) : "", - receiver: isSet(object.receiver) ? String(object.receiver) : "" - }; - }, - toJSON(message: EventSend): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - message.sender !== undefined && (obj.sender = message.sender); - message.receiver !== undefined && (obj.receiver = message.receiver); - return obj; - }, - fromPartial(object: Partial): EventSend { - const message = createBaseEventSend(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - return message; - }, - fromAmino(object: EventSendAmino): EventSend { - const message = createBaseEventSend(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.receiver !== undefined && object.receiver !== null) { - message.receiver = object.receiver; - } - return message; - }, - toAmino(message: EventSend): EventSendAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.receiver = message.receiver === "" ? undefined : message.receiver; - return obj; - }, - fromAminoMsg(object: EventSendAminoMsg): EventSend { - return EventSend.fromAmino(object.value); - }, - toAminoMsg(message: EventSend): EventSendAminoMsg { - return { - type: "cosmos-sdk/EventSend", - value: EventSend.toAmino(message) - }; - }, - fromProtoMsg(message: EventSendProtoMsg): EventSend { - return EventSend.decode(message.value); - }, - toProto(message: EventSend): Uint8Array { - return EventSend.encode(message).finish(); - }, - toProtoMsg(message: EventSend): EventSendProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.EventSend", - value: EventSend.encode(message).finish() - }; - } -}; -function createBaseEventMint(): EventMint { - return { - classId: "", - id: "", - owner: "" - }; -} -export const EventMint = { - typeUrl: "/cosmos.nft.v1beta1.EventMint", - encode(message: EventMint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.owner !== "") { - writer.uint32(26).string(message.owner); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventMint { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMint(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventMint { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "", - owner: isSet(object.owner) ? String(object.owner) : "" - }; - }, - toJSON(message: EventMint): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - message.owner !== undefined && (obj.owner = message.owner); - return obj; - }, - fromPartial(object: Partial): EventMint { - const message = createBaseEventMint(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.owner = object.owner ?? ""; - return message; - }, - fromAmino(object: EventMintAmino): EventMint { - const message = createBaseEventMint(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - return message; - }, - toAmino(message: EventMint): EventMintAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - obj.owner = message.owner === "" ? undefined : message.owner; - return obj; - }, - fromAminoMsg(object: EventMintAminoMsg): EventMint { - return EventMint.fromAmino(object.value); - }, - toAminoMsg(message: EventMint): EventMintAminoMsg { - return { - type: "cosmos-sdk/EventMint", - value: EventMint.toAmino(message) - }; - }, - fromProtoMsg(message: EventMintProtoMsg): EventMint { - return EventMint.decode(message.value); - }, - toProto(message: EventMint): Uint8Array { - return EventMint.encode(message).finish(); - }, - toProtoMsg(message: EventMint): EventMintProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.EventMint", - value: EventMint.encode(message).finish() - }; - } -}; -function createBaseEventBurn(): EventBurn { - return { - classId: "", - id: "", - owner: "" - }; -} -export const EventBurn = { - typeUrl: "/cosmos.nft.v1beta1.EventBurn", - encode(message: EventBurn, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.owner !== "") { - writer.uint32(26).string(message.owner); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventBurn { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBurn(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventBurn { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "", - owner: isSet(object.owner) ? String(object.owner) : "" - }; - }, - toJSON(message: EventBurn): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - message.owner !== undefined && (obj.owner = message.owner); - return obj; - }, - fromPartial(object: Partial): EventBurn { - const message = createBaseEventBurn(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.owner = object.owner ?? ""; - return message; - }, - fromAmino(object: EventBurnAmino): EventBurn { - const message = createBaseEventBurn(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - return message; - }, - toAmino(message: EventBurn): EventBurnAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - obj.owner = message.owner === "" ? undefined : message.owner; - return obj; - }, - fromAminoMsg(object: EventBurnAminoMsg): EventBurn { - return EventBurn.fromAmino(object.value); - }, - toAminoMsg(message: EventBurn): EventBurnAminoMsg { - return { - type: "cosmos-sdk/EventBurn", - value: EventBurn.toAmino(message) - }; - }, - fromProtoMsg(message: EventBurnProtoMsg): EventBurn { - return EventBurn.decode(message.value); - }, - toProto(message: EventBurn): Uint8Array { - return EventBurn.encode(message).finish(); - }, - toProtoMsg(message: EventBurn): EventBurnProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.EventBurn", - value: EventBurn.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/genesis.ts deleted file mode 100644 index 215bb932..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/genesis.ts +++ /dev/null @@ -1,259 +0,0 @@ -import { Class, ClassAmino, ClassSDKType, NFT, NFTAmino, NFTSDKType } from "./nft"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateAmino { - /** class defines the class of the nft type. */ - classes?: ClassAmino[]; - entries?: EntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -export interface EntryProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Entry"; - value: Uint8Array; -} -/** Entry Defines all nft owned by a person */ -export interface EntryAmino { - /** owner is the owner address of the following nft */ - owner?: string; - /** nfts is a group of nfts of the same owner */ - nfts?: NFTAmino[]; -} -export interface EntryAminoMsg { - type: "cosmos-sdk/Entry"; - value: EntryAmino; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - classes: [], - entries: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.nft.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classes) { - Class.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.entries) { - Entry.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(Class.decode(reader, reader.uint32())); - break; - case 2: - message.entries.push(Entry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => Class.fromJSON(e)) : [], - entries: Array.isArray(object?.entries) ? object.entries.map((e: any) => Entry.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? Class.toJSON(e) : undefined); - } else { - obj.classes = []; - } - if (message.entries) { - obj.entries = message.entries.map(e => e ? Entry.toJSON(e) : undefined); - } else { - obj.entries = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.classes = object.classes?.map(e => Class.fromPartial(e)) || []; - message.entries = object.entries?.map(e => Entry.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.classes = object.classes?.map(e => Class.fromAmino(e)) || []; - message.entries = object.entries?.map(e => Entry.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? Class.toAmino(e) : undefined); - } else { - obj.classes = message.classes; - } - if (message.entries) { - obj.entries = message.entries.map(e => e ? Entry.toAmino(e) : undefined); - } else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseEntry(): Entry { - return { - owner: "", - nfts: [] - }; -} -export const Entry = { - typeUrl: "/cosmos.nft.v1beta1.Entry", - encode(message: Entry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.nfts) { - NFT.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Entry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.nfts.push(NFT.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Entry { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - nfts: Array.isArray(object?.nfts) ? object.nfts.map((e: any) => NFT.fromJSON(e)) : [] - }; - }, - toJSON(message: Entry): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - if (message.nfts) { - obj.nfts = message.nfts.map(e => e ? NFT.toJSON(e) : undefined); - } else { - obj.nfts = []; - } - return obj; - }, - fromPartial(object: Partial): Entry { - const message = createBaseEntry(); - message.owner = object.owner ?? ""; - message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || []; - return message; - }, - fromAmino(object: EntryAmino): Entry { - const message = createBaseEntry(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.nfts = object.nfts?.map(e => NFT.fromAmino(e)) || []; - return message; - }, - toAmino(message: Entry): EntryAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.nfts) { - obj.nfts = message.nfts.map(e => e ? NFT.toAmino(e) : undefined); - } else { - obj.nfts = message.nfts; - } - return obj; - }, - fromAminoMsg(object: EntryAminoMsg): Entry { - return Entry.fromAmino(object.value); - }, - toAminoMsg(message: Entry): EntryAminoMsg { - return { - type: "cosmos-sdk/Entry", - value: Entry.toAmino(message) - }; - }, - fromProtoMsg(message: EntryProtoMsg): Entry { - return Entry.decode(message.value); - }, - toProto(message: Entry): Uint8Array { - return Entry.encode(message).finish(); - }, - toProtoMsg(message: Entry): EntryProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.Entry", - value: Entry.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/nft.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/nft.ts deleted file mode 100644 index 3d392b92..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/nft.ts +++ /dev/null @@ -1,395 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: Any; -} -export interface ClassProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Class"; - value: Uint8Array; -} -/** Class defines the class of the nft type. */ -export interface ClassAmino { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id?: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name?: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol?: string; - /** description is a brief description of nft classification. Optional */ - description?: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri?: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uri_hash?: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: AnyAmino; -} -export interface ClassAminoMsg { - type: "cosmos-sdk/Class"; - value: ClassAmino; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data?: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data?: Any; -} -export interface NFTProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.NFT"; - value: Uint8Array; -} -/** NFT defines the NFT. */ -export interface NFTAmino { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - class_id?: string; - /** id is a unique identifier of the NFT */ - id?: string; - /** uri for the NFT metadata stored off chain */ - uri?: string; - /** uri_hash is a hash of the document pointed by uri */ - uri_hash?: string; - /** data is an app specific data of the NFT. Optional */ - data?: AnyAmino; -} -export interface NFTAminoMsg { - type: "cosmos-sdk/NFT"; - value: NFTAmino; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data?: AnySDKType; -} -function createBaseClass(): Class { - return { - id: "", - name: "", - symbol: "", - description: "", - uri: "", - uriHash: "", - data: undefined - }; -} -export const Class = { - typeUrl: "/cosmos.nft.v1beta1.Class", - encode(message: Class, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.symbol !== "") { - writer.uint32(26).string(message.symbol); - } - if (message.description !== "") { - writer.uint32(34).string(message.description); - } - if (message.uri !== "") { - writer.uint32(42).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(50).string(message.uriHash); - } - if (message.data !== undefined) { - Any.encode(message.data, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Class { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.symbol = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.uri = reader.string(); - break; - case 6: - message.uriHash = reader.string(); - break; - case 7: - message.data = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Class { - return { - id: isSet(object.id) ? String(object.id) : "", - name: isSet(object.name) ? String(object.name) : "", - symbol: isSet(object.symbol) ? String(object.symbol) : "", - description: isSet(object.description) ? String(object.description) : "", - uri: isSet(object.uri) ? String(object.uri) : "", - uriHash: isSet(object.uriHash) ? String(object.uriHash) : "", - data: isSet(object.data) ? Any.fromJSON(object.data) : undefined - }; - }, - toJSON(message: Class): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - message.name !== undefined && (obj.name = message.name); - message.symbol !== undefined && (obj.symbol = message.symbol); - message.description !== undefined && (obj.description = message.description); - message.uri !== undefined && (obj.uri = message.uri); - message.uriHash !== undefined && (obj.uriHash = message.uriHash); - message.data !== undefined && (obj.data = message.data ? Any.toJSON(message.data) : undefined); - return obj; - }, - fromPartial(object: Partial): Class { - const message = createBaseClass(); - message.id = object.id ?? ""; - message.name = object.name ?? ""; - message.symbol = object.symbol ?? ""; - message.description = object.description ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined; - return message; - }, - fromAmino(object: ClassAmino): Class { - const message = createBaseClass(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.symbol !== undefined && object.symbol !== null) { - message.symbol = object.symbol; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.uri !== undefined && object.uri !== null) { - message.uri = object.uri; - } - if (object.uri_hash !== undefined && object.uri_hash !== null) { - message.uriHash = object.uri_hash; - } - if (object.data !== undefined && object.data !== null) { - message.data = Any.fromAmino(object.data); - } - return message; - }, - toAmino(message: Class): ClassAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.name = message.name === "" ? undefined : message.name; - obj.symbol = message.symbol === "" ? undefined : message.symbol; - obj.description = message.description === "" ? undefined : message.description; - obj.uri = message.uri === "" ? undefined : message.uri; - obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; - obj.data = message.data ? Any.toAmino(message.data) : undefined; - return obj; - }, - fromAminoMsg(object: ClassAminoMsg): Class { - return Class.fromAmino(object.value); - }, - toAminoMsg(message: Class): ClassAminoMsg { - return { - type: "cosmos-sdk/Class", - value: Class.toAmino(message) - }; - }, - fromProtoMsg(message: ClassProtoMsg): Class { - return Class.decode(message.value); - }, - toProto(message: Class): Uint8Array { - return Class.encode(message).finish(); - }, - toProtoMsg(message: Class): ClassProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.Class", - value: Class.encode(message).finish() - }; - } -}; -function createBaseNFT(): NFT { - return { - classId: "", - id: "", - uri: "", - uriHash: "", - data: undefined - }; -} -export const NFT = { - typeUrl: "/cosmos.nft.v1beta1.NFT", - encode(message: NFT, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.uri !== "") { - writer.uint32(26).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(34).string(message.uriHash); - } - if (message.data !== undefined) { - Any.encode(message.data, writer.uint32(82).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): NFT { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseNFT(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.uri = reader.string(); - break; - case 4: - message.uriHash = reader.string(); - break; - case 10: - message.data = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): NFT { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "", - uri: isSet(object.uri) ? String(object.uri) : "", - uriHash: isSet(object.uriHash) ? String(object.uriHash) : "", - data: isSet(object.data) ? Any.fromJSON(object.data) : undefined - }; - }, - toJSON(message: NFT): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - message.uri !== undefined && (obj.uri = message.uri); - message.uriHash !== undefined && (obj.uriHash = message.uriHash); - message.data !== undefined && (obj.data = message.data ? Any.toJSON(message.data) : undefined); - return obj; - }, - fromPartial(object: Partial): NFT { - const message = createBaseNFT(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined; - return message; - }, - fromAmino(object: NFTAmino): NFT { - const message = createBaseNFT(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.uri !== undefined && object.uri !== null) { - message.uri = object.uri; - } - if (object.uri_hash !== undefined && object.uri_hash !== null) { - message.uriHash = object.uri_hash; - } - if (object.data !== undefined && object.data !== null) { - message.data = Any.fromAmino(object.data); - } - return message; - }, - toAmino(message: NFT): NFTAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - obj.uri = message.uri === "" ? undefined : message.uri; - obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; - obj.data = message.data ? Any.toAmino(message.data) : undefined; - return obj; - }, - fromAminoMsg(object: NFTAminoMsg): NFT { - return NFT.fromAmino(object.value); - }, - toAminoMsg(message: NFT): NFTAminoMsg { - return { - type: "cosmos-sdk/NFT", - value: NFT.toAmino(message) - }; - }, - fromProtoMsg(message: NFTProtoMsg): NFT { - return NFT.decode(message.value); - }, - toProto(message: NFT): Uint8Array { - return NFT.encode(message).finish(); - }, - toProtoMsg(message: NFT): NFTProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.NFT", - value: NFT.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/query.lcd.ts deleted file mode 100644 index a8dec9fc..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.balance = this.balance.bind(this); - this.owner = this.owner.bind(this); - this.supply = this.supply.bind(this); - this.nFTs = this.nFTs.bind(this); - this.nFT = this.nFT.bind(this); - this.class = this.class.bind(this); - this.classes = this.classes.bind(this); - } - /* Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ - async balance(params: QueryBalanceRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/balance/${params.owner}/${params.classId}`; - return await this.req.get(endpoint); - } - /* Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ - async owner(params: QueryOwnerRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/owner/${params.classId}/${params.id}`; - return await this.req.get(endpoint); - } - /* Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ - async supply(params: QuerySupplyRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/supply/${params.classId}`; - return await this.req.get(endpoint); - } - /* NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - ERC721Enumerable */ - async nFTs(params: QueryNFTsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.classId !== "undefined") { - options.params.class_id = params.classId; - } - if (typeof params?.owner !== "undefined") { - options.params.owner = params.owner; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/nft/v1beta1/nfts`; - return await this.req.get(endpoint, options); - } - /* NFT queries an NFT based on its class and id. */ - async nFT(params: QueryNFTRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/nfts/${params.classId}/${params.id}`; - return await this.req.get(endpoint); - } - /* Class queries an NFT class based on its id */ - async class(params: QueryClassRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/classes/${params.classId}`; - return await this.req.get(endpoint); - } - /* Classes queries all NFT classes */ - async classes(params: QueryClassesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/nft/v1beta1/classes`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 4b96e9e9..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryNFTsRequest, QueryNFTsResponse, QueryNFTRequest, QueryNFTResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ - balance(request: QueryBalanceRequest): Promise; - /** Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ - owner(request: QueryOwnerRequest): Promise; - /** Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ - supply(request: QuerySupplyRequest): Promise; - /** - * NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - * ERC721Enumerable - */ - nFTs(request: QueryNFTsRequest): Promise; - /** NFT queries an NFT based on its class and id. */ - nFT(request: QueryNFTRequest): Promise; - /** Class queries an NFT class based on its id */ - class(request: QueryClassRequest): Promise; - /** Classes queries all NFT classes */ - classes(request?: QueryClassesRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.balance = this.balance.bind(this); - this.owner = this.owner.bind(this); - this.supply = this.supply.bind(this); - this.nFTs = this.nFTs.bind(this); - this.nFT = this.nFT.bind(this); - this.class = this.class.bind(this); - this.classes = this.classes.bind(this); - } - balance(request: QueryBalanceRequest): Promise { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - owner(request: QueryOwnerRequest): Promise { - const data = QueryOwnerRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "Owner", data); - return promise.then(data => QueryOwnerResponse.decode(new BinaryReader(data))); - } - supply(request: QuerySupplyRequest): Promise { - const data = QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "Supply", data); - return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); - } - nFTs(request: QueryNFTsRequest): Promise { - const data = QueryNFTsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "NFTs", data); - return promise.then(data => QueryNFTsResponse.decode(new BinaryReader(data))); - } - nFT(request: QueryNFTRequest): Promise { - const data = QueryNFTRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "NFT", data); - return promise.then(data => QueryNFTResponse.decode(new BinaryReader(data))); - } - class(request: QueryClassRequest): Promise { - const data = QueryClassRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "Class", data); - return promise.then(data => QueryClassResponse.decode(new BinaryReader(data))); - } - classes(request: QueryClassesRequest = { - pagination: undefined - }): Promise { - const data = QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Query", "Classes", data); - return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - balance(request: QueryBalanceRequest): Promise { - return queryService.balance(request); - }, - owner(request: QueryOwnerRequest): Promise { - return queryService.owner(request); - }, - supply(request: QuerySupplyRequest): Promise { - return queryService.supply(request); - }, - nFTs(request: QueryNFTsRequest): Promise { - return queryService.nFTs(request); - }, - nFT(request: QueryNFTRequest): Promise { - return queryService.nFT(request); - }, - class(request: QueryClassRequest): Promise { - return queryService.class(request); - }, - classes(request?: QueryClassesRequest): Promise { - return queryService.classes(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/query.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/query.ts deleted file mode 100644 index aaefa5c5..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/query.ts +++ /dev/null @@ -1,1523 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { NFT, NFTAmino, NFTSDKType, Class, ClassAmino, ClassSDKType } from "./nft"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequest { - classId: string; - owner: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestAmino { - class_id?: string; - owner?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "cosmos-sdk/QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestSDKType { - class_id: string; - owner: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponse { - amount: bigint; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseAmino { - amount?: string; -} -export interface QueryBalanceResponseAminoMsg { - type: "cosmos-sdk/QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseSDKType { - amount: bigint; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequest { - classId: string; - id: string; -} -export interface QueryOwnerRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest"; - value: Uint8Array; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestAmino { - class_id?: string; - id?: string; -} -export interface QueryOwnerRequestAminoMsg { - type: "cosmos-sdk/QueryOwnerRequest"; - value: QueryOwnerRequestAmino; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestSDKType { - class_id: string; - id: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponse { - owner: string; -} -export interface QueryOwnerResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse"; - value: Uint8Array; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseAmino { - owner?: string; -} -export interface QueryOwnerResponseAminoMsg { - type: "cosmos-sdk/QueryOwnerResponse"; - value: QueryOwnerResponseAmino; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseSDKType { - owner: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequest { - classId: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestAmino { - class_id?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "cosmos-sdk/QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestSDKType { - class_id: string; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponse { - amount: bigint; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseAmino { - amount?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "cosmos-sdk/QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseSDKType { - amount: bigint; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequest { - classId: string; - owner: string; - pagination?: PageRequest; -} -export interface QueryNFTsRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest"; - value: Uint8Array; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestAmino { - class_id?: string; - owner?: string; - pagination?: PageRequestAmino; -} -export interface QueryNFTsRequestAminoMsg { - type: "cosmos-sdk/QueryNFTsRequest"; - value: QueryNFTsRequestAmino; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestSDKType { - class_id: string; - owner: string; - pagination?: PageRequestSDKType; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponse { - nfts: NFT[]; - pagination?: PageResponse; -} -export interface QueryNFTsResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse"; - value: Uint8Array; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseAmino { - nfts?: NFTAmino[]; - pagination?: PageResponseAmino; -} -export interface QueryNFTsResponseAminoMsg { - type: "cosmos-sdk/QueryNFTsResponse"; - value: QueryNFTsResponseAmino; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseSDKType { - nfts: NFTSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequest { - classId: string; - id: string; -} -export interface QueryNFTRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest"; - value: Uint8Array; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestAmino { - class_id?: string; - id?: string; -} -export interface QueryNFTRequestAminoMsg { - type: "cosmos-sdk/QueryNFTRequest"; - value: QueryNFTRequestAmino; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestSDKType { - class_id: string; - id: string; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponse { - nft?: NFT; -} -export interface QueryNFTResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse"; - value: Uint8Array; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseAmino { - nft?: NFTAmino; -} -export interface QueryNFTResponseAminoMsg { - type: "cosmos-sdk/QueryNFTResponse"; - value: QueryNFTResponseAmino; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseSDKType { - nft?: NFTSDKType; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequest { - classId: string; -} -export interface QueryClassRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest"; - value: Uint8Array; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestAmino { - class_id?: string; -} -export interface QueryClassRequestAminoMsg { - type: "cosmos-sdk/QueryClassRequest"; - value: QueryClassRequestAmino; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponse { - class?: Class; -} -export interface QueryClassResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse"; - value: Uint8Array; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseAmino { - class?: ClassAmino; -} -export interface QueryClassResponseAminoMsg { - type: "cosmos-sdk/QueryClassResponse"; - value: QueryClassResponseAmino; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseSDKType { - class?: ClassSDKType; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "cosmos-sdk/QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponse { - classes: Class[]; - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseAmino { - classes?: ClassAmino[]; - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "cosmos-sdk/QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseSDKType { - classes: ClassSDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryBalanceRequest(): QueryBalanceRequest { - return { - classId: "", - owner: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest", - encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.owner !== "") { - writer.uint32(18).string(message.owner); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - owner: isSet(object.owner) ? String(object.owner) : "" - }; - }, - toJSON(message: QueryBalanceRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.owner !== undefined && (obj.owner = message.owner); - return obj; - }, - fromPartial(object: Partial): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - message.classId = object.classId ?? ""; - message.owner = object.owner ?? ""; - return message; - }, - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - return message; - }, - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.owner = message.owner === "" ? undefined : message.owner; - return obj; - }, - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { - return QueryBalanceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryBalanceRequest", - value: QueryBalanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message: QueryBalanceRequest): Uint8Array { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse(): QueryBalanceResponse { - return { - amount: BigInt(0) - }; -} -export const QueryBalanceResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse", - encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.amount !== BigInt(0)) { - writer.uint32(8).uint64(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceResponse { - return { - amount: isSet(object.amount) ? BigInt(object.amount.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryBalanceResponse): unknown { - const obj: any = {}; - message.amount !== undefined && (obj.amount = (message.amount || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? BigInt(object.amount.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - if (object.amount !== undefined && object.amount !== null) { - message.amount = BigInt(object.amount); - } - return message; - }, - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { - const obj: any = {}; - obj.amount = message.amount !== BigInt(0) ? message.amount.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { - return QueryBalanceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryBalanceResponse", - value: QueryBalanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message: QueryBalanceResponse): Uint8Array { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryOwnerRequest(): QueryOwnerRequest { - return { - classId: "", - id: "" - }; -} -export const QueryOwnerRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest", - encode(message: QueryOwnerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryOwnerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryOwnerRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "" - }; - }, - toJSON(message: QueryOwnerRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - return obj; - }, - fromPartial(object: Partial): QueryOwnerRequest { - const message = createBaseQueryOwnerRequest(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - return message; - }, - fromAmino(object: QueryOwnerRequestAmino): QueryOwnerRequest { - const message = createBaseQueryOwnerRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message: QueryOwnerRequest): QueryOwnerRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - return obj; - }, - fromAminoMsg(object: QueryOwnerRequestAminoMsg): QueryOwnerRequest { - return QueryOwnerRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryOwnerRequest): QueryOwnerRequestAminoMsg { - return { - type: "cosmos-sdk/QueryOwnerRequest", - value: QueryOwnerRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryOwnerRequestProtoMsg): QueryOwnerRequest { - return QueryOwnerRequest.decode(message.value); - }, - toProto(message: QueryOwnerRequest): Uint8Array { - return QueryOwnerRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryOwnerRequest): QueryOwnerRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest", - value: QueryOwnerRequest.encode(message).finish() - }; - } -}; -function createBaseQueryOwnerResponse(): QueryOwnerResponse { - return { - owner: "" - }; -} -export const QueryOwnerResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse", - encode(message: QueryOwnerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryOwnerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryOwnerResponse { - return { - owner: isSet(object.owner) ? String(object.owner) : "" - }; - }, - toJSON(message: QueryOwnerResponse): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - return obj; - }, - fromPartial(object: Partial): QueryOwnerResponse { - const message = createBaseQueryOwnerResponse(); - message.owner = object.owner ?? ""; - return message; - }, - fromAmino(object: QueryOwnerResponseAmino): QueryOwnerResponse { - const message = createBaseQueryOwnerResponse(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - return message; - }, - toAmino(message: QueryOwnerResponse): QueryOwnerResponseAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - return obj; - }, - fromAminoMsg(object: QueryOwnerResponseAminoMsg): QueryOwnerResponse { - return QueryOwnerResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryOwnerResponse): QueryOwnerResponseAminoMsg { - return { - type: "cosmos-sdk/QueryOwnerResponse", - value: QueryOwnerResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryOwnerResponseProtoMsg): QueryOwnerResponse { - return QueryOwnerResponse.decode(message.value); - }, - toProto(message: QueryOwnerResponse): Uint8Array { - return QueryOwnerResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryOwnerResponse): QueryOwnerResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse", - value: QueryOwnerResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest(): QuerySupplyRequest { - return { - classId: "" - }; -} -export const QuerySupplyRequest = { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest", - encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: QuerySupplyRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest { - return QuerySupplyRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySupplyRequest): QuerySupplyRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySupplyRequest", - value: QuerySupplyRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest { - return QuerySupplyRequest.decode(message.value); - }, - toProto(message: QuerySupplyRequest): Uint8Array { - return QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest", - value: QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse(): QuerySupplyResponse { - return { - amount: BigInt(0) - }; -} -export const QuerySupplyResponse = { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse", - encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.amount !== BigInt(0)) { - writer.uint32(8).uint64(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyResponse { - return { - amount: isSet(object.amount) ? BigInt(object.amount.toString()) : BigInt(0) - }; - }, - toJSON(message: QuerySupplyResponse): unknown { - const obj: any = {}; - message.amount !== undefined && (obj.amount = (message.amount || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? BigInt(object.amount.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - if (object.amount !== undefined && object.amount !== null) { - message.amount = BigInt(object.amount); - } - return message; - }, - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino { - const obj: any = {}; - obj.amount = message.amount !== BigInt(0) ? message.amount.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse { - return QuerySupplyResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySupplyResponse): QuerySupplyResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySupplyResponse", - value: QuerySupplyResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse { - return QuerySupplyResponse.decode(message.value); - }, - toProto(message: QuerySupplyResponse): Uint8Array { - return QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse", - value: QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryNFTsRequest(): QueryNFTsRequest { - return { - classId: "", - owner: "", - pagination: undefined - }; -} -export const QueryNFTsRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest", - encode(message: QueryNFTsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.owner !== "") { - writer.uint32(18).string(message.owner); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.owner = reader.string(); - break; - case 3: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryNFTsRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - owner: isSet(object.owner) ? String(object.owner) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryNFTsRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.owner !== undefined && (obj.owner = message.owner); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryNFTsRequest { - const message = createBaseQueryNFTsRequest(); - message.classId = object.classId ?? ""; - message.owner = object.owner ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryNFTsRequestAmino): QueryNFTsRequest { - const message = createBaseQueryNFTsRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryNFTsRequest): QueryNFTsRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryNFTsRequestAminoMsg): QueryNFTsRequest { - return QueryNFTsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryNFTsRequest): QueryNFTsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryNFTsRequest", - value: QueryNFTsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryNFTsRequestProtoMsg): QueryNFTsRequest { - return QueryNFTsRequest.decode(message.value); - }, - toProto(message: QueryNFTsRequest): Uint8Array { - return QueryNFTsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryNFTsRequest): QueryNFTsRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest", - value: QueryNFTsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryNFTsResponse(): QueryNFTsResponse { - return { - nfts: [], - pagination: undefined - }; -} -export const QueryNFTsResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse", - encode(message: QueryNFTsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.nfts) { - NFT.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nfts.push(NFT.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryNFTsResponse { - return { - nfts: Array.isArray(object?.nfts) ? object.nfts.map((e: any) => NFT.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryNFTsResponse): unknown { - const obj: any = {}; - if (message.nfts) { - obj.nfts = message.nfts.map(e => e ? NFT.toJSON(e) : undefined); - } else { - obj.nfts = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryNFTsResponse { - const message = createBaseQueryNFTsResponse(); - message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryNFTsResponseAmino): QueryNFTsResponse { - const message = createBaseQueryNFTsResponse(); - message.nfts = object.nfts?.map(e => NFT.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryNFTsResponse): QueryNFTsResponseAmino { - const obj: any = {}; - if (message.nfts) { - obj.nfts = message.nfts.map(e => e ? NFT.toAmino(e) : undefined); - } else { - obj.nfts = message.nfts; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryNFTsResponseAminoMsg): QueryNFTsResponse { - return QueryNFTsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryNFTsResponse): QueryNFTsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryNFTsResponse", - value: QueryNFTsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryNFTsResponseProtoMsg): QueryNFTsResponse { - return QueryNFTsResponse.decode(message.value); - }, - toProto(message: QueryNFTsResponse): Uint8Array { - return QueryNFTsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryNFTsResponse): QueryNFTsResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse", - value: QueryNFTsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryNFTRequest(): QueryNFTRequest { - return { - classId: "", - id: "" - }; -} -export const QueryNFTRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest", - encode(message: QueryNFTRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryNFTRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "" - }; - }, - toJSON(message: QueryNFTRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - return obj; - }, - fromPartial(object: Partial): QueryNFTRequest { - const message = createBaseQueryNFTRequest(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - return message; - }, - fromAmino(object: QueryNFTRequestAmino): QueryNFTRequest { - const message = createBaseQueryNFTRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message: QueryNFTRequest): QueryNFTRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - return obj; - }, - fromAminoMsg(object: QueryNFTRequestAminoMsg): QueryNFTRequest { - return QueryNFTRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryNFTRequest): QueryNFTRequestAminoMsg { - return { - type: "cosmos-sdk/QueryNFTRequest", - value: QueryNFTRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryNFTRequestProtoMsg): QueryNFTRequest { - return QueryNFTRequest.decode(message.value); - }, - toProto(message: QueryNFTRequest): Uint8Array { - return QueryNFTRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryNFTRequest): QueryNFTRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest", - value: QueryNFTRequest.encode(message).finish() - }; - } -}; -function createBaseQueryNFTResponse(): QueryNFTResponse { - return { - nft: undefined - }; -} -export const QueryNFTResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse", - encode(message: QueryNFTResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.nft !== undefined) { - NFT.encode(message.nft, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nft = NFT.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryNFTResponse { - return { - nft: isSet(object.nft) ? NFT.fromJSON(object.nft) : undefined - }; - }, - toJSON(message: QueryNFTResponse): unknown { - const obj: any = {}; - message.nft !== undefined && (obj.nft = message.nft ? NFT.toJSON(message.nft) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryNFTResponse { - const message = createBaseQueryNFTResponse(); - message.nft = object.nft !== undefined && object.nft !== null ? NFT.fromPartial(object.nft) : undefined; - return message; - }, - fromAmino(object: QueryNFTResponseAmino): QueryNFTResponse { - const message = createBaseQueryNFTResponse(); - if (object.nft !== undefined && object.nft !== null) { - message.nft = NFT.fromAmino(object.nft); - } - return message; - }, - toAmino(message: QueryNFTResponse): QueryNFTResponseAmino { - const obj: any = {}; - obj.nft = message.nft ? NFT.toAmino(message.nft) : undefined; - return obj; - }, - fromAminoMsg(object: QueryNFTResponseAminoMsg): QueryNFTResponse { - return QueryNFTResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryNFTResponse): QueryNFTResponseAminoMsg { - return { - type: "cosmos-sdk/QueryNFTResponse", - value: QueryNFTResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryNFTResponseProtoMsg): QueryNFTResponse { - return QueryNFTResponse.decode(message.value); - }, - toProto(message: QueryNFTResponse): Uint8Array { - return QueryNFTResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryNFTResponse): QueryNFTResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse", - value: QueryNFTResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassRequest(): QueryClassRequest { - return { - classId: "" - }; -} -export const QueryClassRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest", - encode(message: QueryClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: QueryClassRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): QueryClassRequest { - const message = createBaseQueryClassRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: QueryClassRequestAmino): QueryClassRequest { - const message = createBaseQueryClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: QueryClassRequest): QueryClassRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest { - return QueryClassRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClassRequest): QueryClassRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClassRequest", - value: QueryClassRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest { - return QueryClassRequest.decode(message.value); - }, - toProto(message: QueryClassRequest): Uint8Array { - return QueryClassRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest", - value: QueryClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassResponse(): QueryClassResponse { - return { - class: undefined - }; -} -export const QueryClassResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse", - encode(message: QueryClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.class !== undefined) { - Class.encode(message.class, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.class = Class.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassResponse { - return { - class: isSet(object.class) ? Class.fromJSON(object.class) : undefined - }; - }, - toJSON(message: QueryClassResponse): unknown { - const obj: any = {}; - message.class !== undefined && (obj.class = message.class ? Class.toJSON(message.class) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassResponse { - const message = createBaseQueryClassResponse(); - message.class = object.class !== undefined && object.class !== null ? Class.fromPartial(object.class) : undefined; - return message; - }, - fromAmino(object: QueryClassResponseAmino): QueryClassResponse { - const message = createBaseQueryClassResponse(); - if (object.class !== undefined && object.class !== null) { - message.class = Class.fromAmino(object.class); - } - return message; - }, - toAmino(message: QueryClassResponse): QueryClassResponseAmino { - const obj: any = {}; - obj.class = message.class ? Class.toAmino(message.class) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse { - return QueryClassResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClassResponse): QueryClassResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClassResponse", - value: QueryClassResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse { - return QueryClassResponse.decode(message.value); - }, - toProto(message: QueryClassResponse): Uint8Array { - return QueryClassResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse", - value: QueryClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesRequest(): QueryClassesRequest { - return { - pagination: undefined - }; -} -export const QueryClassesRequest = { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest", - encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest { - return QueryClassesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClassesRequest): QueryClassesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClassesRequest", - value: QueryClassesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest { - return QueryClassesRequest.decode(message.value); - }, - toProto(message: QueryClassesRequest): Uint8Array { - return QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest", - value: QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse(): QueryClassesResponse { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesResponse = { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse", - encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classes) { - Class.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(Class.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesResponse { - return { - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => Class.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesResponse): unknown { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? Class.toJSON(e) : undefined); - } else { - obj.classes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => Class.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => Class.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? Class.toAmino(e) : undefined); - } else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse { - return QueryClassesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClassesResponse): QueryClassesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClassesResponse", - value: QueryClassesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse { - return QueryClassesResponse.decode(message.value); - }, - toProto(message: QueryClassesResponse): Uint8Array { - return QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse", - value: QueryClassesResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/tx.amino.ts deleted file mode 100644 index a10e415f..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgSend } from "./tx"; -export const AminoConverter = { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: "cosmos-sdk/MsgNFTSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/tx.registry.ts deleted file mode 100644 index 44ffd8b1..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.nft.v1beta1.MsgSend", MsgSend]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.encode(value).finish() - }; - } - }, - withTypeUrl: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value - }; - } - }, - toJSON: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.toJSON(value) - }; - } - }, - fromJSON: { - send(value: any) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.fromJSON(value) - }; - } - }, - fromPartial: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 54618192..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSend, MsgSendResponse } from "./tx"; -/** Msg defines the nft Msg service. */ -export interface Msg { - /** Send defines a method to send a nft from one account to another account. */ - send(request: MsgSend): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.send = this.send.bind(this); - } - send(request: MsgSend): Promise { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.nft.v1beta1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/nft/v1beta1/tx.ts deleted file mode 100644 index a83163c4..00000000 --- a/packages/api/src/codegen/cosmos/nft/v1beta1/tx.ts +++ /dev/null @@ -1,237 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendAmino { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - class_id?: string; - /** id defines the unique identification of nft */ - id?: string; - /** sender is the address of the owner of nft */ - sender?: string; - /** receiver is the receiver address of nft */ - receiver?: string; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -function createBaseMsgSend(): MsgSend { - return { - classId: "", - id: "", - sender: "", - receiver: "" - }; -} -export const MsgSend = { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(34).string(message.receiver); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - id: isSet(object.id) ? String(object.id) : "", - sender: isSet(object.sender) ? String(object.sender) : "", - receiver: isSet(object.receiver) ? String(object.receiver) : "" - }; - }, - toJSON(message: MsgSend): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.id !== undefined && (obj.id = message.id); - message.sender !== undefined && (obj.sender = message.sender); - message.receiver !== undefined && (obj.receiver = message.receiver); - return obj; - }, - fromPartial(object: Partial): MsgSend { - const message = createBaseMsgSend(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - return message; - }, - fromAmino(object: MsgSendAmino): MsgSend { - const message = createBaseMsgSend(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.receiver !== undefined && object.receiver !== null) { - message.receiver = object.receiver; - } - return message; - }, - toAmino(message: MsgSend): MsgSendAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.id = message.id === "" ? undefined : message.id; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.receiver = message.receiver === "" ? undefined : message.receiver; - return obj; - }, - fromAminoMsg(object: MsgSendAminoMsg): MsgSend { - return MsgSend.fromAmino(object.value); - }, - toAminoMsg(message: MsgSend): MsgSendAminoMsg { - return { - type: "cosmos-sdk/MsgNFTSend", - value: MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSendProtoMsg): MsgSend { - return MsgSend.decode(message.value); - }, - toProto(message: MsgSend): Uint8Array { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message: MsgSend): MsgSendProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse(): MsgSendResponse { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse", - encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSendResponse { - return {}; - }, - toJSON(_: MsgSendResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_: MsgSendResponseAmino): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_: MsgSendResponse): MsgSendResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { - return MsgSendResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSendResponse", - value: MsgSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { - return MsgSendResponse.decode(message.value); - }, - toProto(message: MsgSendResponse): Uint8Array { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/orm/module/v1alpha1/module.ts b/packages/api/src/codegen/cosmos/orm/module/v1alpha1/module.ts deleted file mode 100644 index e9185adc..00000000 --- a/packages/api/src/codegen/cosmos/orm/module/v1alpha1/module.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface Module {} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.orm.module.v1alpha1.Module"; - value: Uint8Array; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleAmino {} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleSDKType {} -function createBaseModule(): Module { - return {}; -} -export const Module = { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Module { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): Module { - return {}; - }, - toJSON(_: Module): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): Module { - const message = createBaseModule(); - return message; - }, - fromAmino(_: ModuleAmino): Module { - const message = createBaseModule(); - return message; - }, - toAmino(_: Module): ModuleAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: ModuleAminoMsg): Module { - return Module.fromAmino(object.value); - }, - toAminoMsg(message: Module): ModuleAminoMsg { - return { - type: "cosmos-sdk/Module", - value: Module.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleProtoMsg): Module { - return Module.decode(message.value); - }, - toProto(message: Module): Uint8Array { - return Module.encode(message).finish(); - }, - toProtoMsg(message: Module): ModuleProtoMsg { - return { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - value: Module.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/orm/v1/orm.ts b/packages/api/src/codegen/cosmos/orm/v1/orm.ts deleted file mode 100644 index 7e420cb7..00000000 --- a/packages/api/src/codegen/cosmos/orm/v1/orm.ts +++ /dev/null @@ -1,621 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey?: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.TableDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorAmino { - /** primary_key defines the primary key for the table. */ - primary_key?: PrimaryKeyDescriptorAmino; - /** index defines one or more secondary indexes. */ - index?: SecondaryIndexDescriptorAmino[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface TableDescriptorAminoMsg { - type: "cosmos-sdk/TableDescriptor"; - value: TableDescriptorAmino; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key?: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -export interface PrimaryKeyDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorAmino { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields?: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - auto_increment?: boolean; -} -export interface PrimaryKeyDescriptorAminoMsg { - type: "cosmos-sdk/PrimaryKeyDescriptor"; - value: PrimaryKeyDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorAmino { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields?: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id?: number; - /** unique specifies that this an unique index. */ - unique?: boolean; -} -export interface SecondaryIndexDescriptorAminoMsg { - type: "cosmos-sdk/SecondaryIndexDescriptor"; - value: SecondaryIndexDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorAmino { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface SingletonDescriptorAminoMsg { - type: "cosmos-sdk/SingletonDescriptor"; - value: SingletonDescriptorAmino; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} -function createBaseTableDescriptor(): TableDescriptor { - return { - primaryKey: undefined, - index: [], - id: 0 - }; -} -export const TableDescriptor = { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - encode(message: TableDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.primaryKey !== undefined) { - PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.index) { - SecondaryIndexDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.id !== 0) { - writer.uint32(24).uint32(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTableDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TableDescriptor { - return { - primaryKey: isSet(object.primaryKey) ? PrimaryKeyDescriptor.fromJSON(object.primaryKey) : undefined, - index: Array.isArray(object?.index) ? object.index.map((e: any) => SecondaryIndexDescriptor.fromJSON(e)) : [], - id: isSet(object.id) ? Number(object.id) : 0 - }; - }, - toJSON(message: TableDescriptor): unknown { - const obj: any = {}; - message.primaryKey !== undefined && (obj.primaryKey = message.primaryKey ? PrimaryKeyDescriptor.toJSON(message.primaryKey) : undefined); - if (message.index) { - obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toJSON(e) : undefined); - } else { - obj.index = []; - } - message.id !== undefined && (obj.id = Math.round(message.id)); - return obj; - }, - fromPartial(object: Partial): TableDescriptor { - const message = createBaseTableDescriptor(); - message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; - message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || []; - message.id = object.id ?? 0; - return message; - }, - fromAmino(object: TableDescriptorAmino): TableDescriptor { - const message = createBaseTableDescriptor(); - if (object.primary_key !== undefined && object.primary_key !== null) { - message.primaryKey = PrimaryKeyDescriptor.fromAmino(object.primary_key); - } - message.index = object.index?.map(e => SecondaryIndexDescriptor.fromAmino(e)) || []; - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message: TableDescriptor): TableDescriptorAmino { - const obj: any = {}; - obj.primary_key = message.primaryKey ? PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; - if (message.index) { - obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toAmino(e) : undefined); - } else { - obj.index = message.index; - } - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor { - return TableDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg { - return { - type: "cosmos-sdk/TableDescriptor", - value: TableDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor { - return TableDescriptor.decode(message.value); - }, - toProto(message: TableDescriptor): Uint8Array { - return TableDescriptor.encode(message).finish(); - }, - toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg { - return { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - value: TableDescriptor.encode(message).finish() - }; - } -}; -function createBasePrimaryKeyDescriptor(): PrimaryKeyDescriptor { - return { - fields: "", - autoIncrement: false - }; -} -export const PrimaryKeyDescriptor = { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - encode(message: PrimaryKeyDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.autoIncrement === true) { - writer.uint32(16).bool(message.autoIncrement); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrimaryKeyDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.autoIncrement = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PrimaryKeyDescriptor { - return { - fields: isSet(object.fields) ? String(object.fields) : "", - autoIncrement: isSet(object.autoIncrement) ? Boolean(object.autoIncrement) : false - }; - }, - toJSON(message: PrimaryKeyDescriptor): unknown { - const obj: any = {}; - message.fields !== undefined && (obj.fields = message.fields); - message.autoIncrement !== undefined && (obj.autoIncrement = message.autoIncrement); - return obj; - }, - fromPartial(object: Partial): PrimaryKeyDescriptor { - const message = createBasePrimaryKeyDescriptor(); - message.fields = object.fields ?? ""; - message.autoIncrement = object.autoIncrement ?? false; - return message; - }, - fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor { - const message = createBasePrimaryKeyDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.auto_increment !== undefined && object.auto_increment !== null) { - message.autoIncrement = object.auto_increment; - } - return message; - }, - toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino { - const obj: any = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; - return obj; - }, - fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor { - return PrimaryKeyDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg { - return { - type: "cosmos-sdk/PrimaryKeyDescriptor", - value: PrimaryKeyDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor { - return PrimaryKeyDescriptor.decode(message.value); - }, - toProto(message: PrimaryKeyDescriptor): Uint8Array { - return PrimaryKeyDescriptor.encode(message).finish(); - }, - toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg { - return { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - value: PrimaryKeyDescriptor.encode(message).finish() - }; - } -}; -function createBaseSecondaryIndexDescriptor(): SecondaryIndexDescriptor { - return { - fields: "", - id: 0, - unique: false - }; -} -export const SecondaryIndexDescriptor = { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - encode(message: SecondaryIndexDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.id !== 0) { - writer.uint32(16).uint32(message.id); - } - if (message.unique === true) { - writer.uint32(24).bool(message.unique); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSecondaryIndexDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.id = reader.uint32(); - break; - case 3: - message.unique = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SecondaryIndexDescriptor { - return { - fields: isSet(object.fields) ? String(object.fields) : "", - id: isSet(object.id) ? Number(object.id) : 0, - unique: isSet(object.unique) ? Boolean(object.unique) : false - }; - }, - toJSON(message: SecondaryIndexDescriptor): unknown { - const obj: any = {}; - message.fields !== undefined && (obj.fields = message.fields); - message.id !== undefined && (obj.id = Math.round(message.id)); - message.unique !== undefined && (obj.unique = message.unique); - return obj; - }, - fromPartial(object: Partial): SecondaryIndexDescriptor { - const message = createBaseSecondaryIndexDescriptor(); - message.fields = object.fields ?? ""; - message.id = object.id ?? 0; - message.unique = object.unique ?? false; - return message; - }, - fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor { - const message = createBaseSecondaryIndexDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.unique !== undefined && object.unique !== null) { - message.unique = object.unique; - } - return message; - }, - toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino { - const obj: any = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.id = message.id === 0 ? undefined : message.id; - obj.unique = message.unique === false ? undefined : message.unique; - return obj; - }, - fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor { - return SecondaryIndexDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg { - return { - type: "cosmos-sdk/SecondaryIndexDescriptor", - value: SecondaryIndexDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor { - return SecondaryIndexDescriptor.decode(message.value); - }, - toProto(message: SecondaryIndexDescriptor): Uint8Array { - return SecondaryIndexDescriptor.encode(message).finish(); - }, - toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg { - return { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - value: SecondaryIndexDescriptor.encode(message).finish() - }; - } -}; -function createBaseSingletonDescriptor(): SingletonDescriptor { - return { - id: 0 - }; -} -export const SingletonDescriptor = { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - encode(message: SingletonDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSingletonDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SingletonDescriptor { - return { - id: isSet(object.id) ? Number(object.id) : 0 - }; - }, - toJSON(message: SingletonDescriptor): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = Math.round(message.id)); - return obj; - }, - fromPartial(object: Partial): SingletonDescriptor { - const message = createBaseSingletonDescriptor(); - message.id = object.id ?? 0; - return message; - }, - fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor { - const message = createBaseSingletonDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message: SingletonDescriptor): SingletonDescriptorAmino { - const obj: any = {}; - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor { - return SingletonDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg { - return { - type: "cosmos-sdk/SingletonDescriptor", - value: SingletonDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor { - return SingletonDescriptor.decode(message.value); - }, - toProto(message: SingletonDescriptor): Uint8Array { - return SingletonDescriptor.encode(message).finish(); - }, - toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg { - return { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - value: SingletonDescriptor.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/orm/v1alpha1/schema.ts b/packages/api/src/codegen/cosmos/orm/v1alpha1/schema.ts deleted file mode 100644 index 70e7de91..00000000 --- a/packages/api/src/codegen/cosmos/orm/v1alpha1/schema.ts +++ /dev/null @@ -1,378 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** StorageType */ -export enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. - */ - STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1, -} -export const StorageTypeSDKType = StorageType; -export const StorageTypeAmino = StorageType; -export function storageTypeFromJSON(object: any): StorageType { - switch (object) { - case 0: - case "STORAGE_TYPE_DEFAULT_UNSPECIFIED": - return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED; - case 1: - case "STORAGE_TYPE_MEMORY": - return StorageType.STORAGE_TYPE_MEMORY; - case 2: - case "STORAGE_TYPE_TRANSIENT": - return StorageType.STORAGE_TYPE_TRANSIENT; - case 3: - case "STORAGE_TYPE_INDEX": - return StorageType.STORAGE_TYPE_INDEX; - case 4: - case "STORAGE_TYPE_COMMITMENT": - return StorageType.STORAGE_TYPE_COMMITMENT; - case -1: - case "UNRECOGNIZED": - default: - return StorageType.UNRECOGNIZED; - } -} -export function storageTypeToJSON(object: StorageType): string { - switch (object) { - case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED: - return "STORAGE_TYPE_DEFAULT_UNSPECIFIED"; - case StorageType.STORAGE_TYPE_MEMORY: - return "STORAGE_TYPE_MEMORY"; - case StorageType.STORAGE_TYPE_TRANSIENT: - return "STORAGE_TYPE_TRANSIENT"; - case StorageType.STORAGE_TYPE_INDEX: - return "STORAGE_TYPE_INDEX"; - case StorageType.STORAGE_TYPE_COMMITMENT: - return "STORAGE_TYPE_COMMITMENT"; - case StorageType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; - value: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorAmino { - schema_file?: ModuleSchemaDescriptor_FileEntryAmino[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix?: string; -} -export interface ModuleSchemaDescriptorAminoMsg { - type: "cosmos-sdk/ModuleSchemaDescriptor"; - value: ModuleSchemaDescriptorAmino; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry"; - value: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntryAmino { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id?: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - proto_file_name?: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storage_type?: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryAminoMsg { - type: "cosmos-sdk/FileEntry"; - value: ModuleSchemaDescriptor_FileEntryAmino; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} -function createBaseModuleSchemaDescriptor(): ModuleSchemaDescriptor { - return { - schemaFile: [], - prefix: new Uint8Array() - }; -} -export const ModuleSchemaDescriptor = { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor", - encode(message: ModuleSchemaDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.schemaFile) { - ModuleSchemaDescriptor_FileEntry.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.prefix.length !== 0) { - writer.uint32(18).bytes(message.prefix); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleSchemaDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schemaFile.push(ModuleSchemaDescriptor_FileEntry.decode(reader, reader.uint32())); - break; - case 2: - message.prefix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleSchemaDescriptor { - return { - schemaFile: Array.isArray(object?.schemaFile) ? object.schemaFile.map((e: any) => ModuleSchemaDescriptor_FileEntry.fromJSON(e)) : [], - prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array() - }; - }, - toJSON(message: ModuleSchemaDescriptor): unknown { - const obj: any = {}; - if (message.schemaFile) { - obj.schemaFile = message.schemaFile.map(e => e ? ModuleSchemaDescriptor_FileEntry.toJSON(e) : undefined); - } else { - obj.schemaFile = []; - } - message.prefix !== undefined && (obj.prefix = base64FromBytes(message.prefix !== undefined ? message.prefix : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ModuleSchemaDescriptor { - const message = createBaseModuleSchemaDescriptor(); - message.schemaFile = object.schemaFile?.map(e => ModuleSchemaDescriptor_FileEntry.fromPartial(e)) || []; - message.prefix = object.prefix ?? new Uint8Array(); - return message; - }, - fromAmino(object: ModuleSchemaDescriptorAmino): ModuleSchemaDescriptor { - const message = createBaseModuleSchemaDescriptor(); - message.schemaFile = object.schema_file?.map(e => ModuleSchemaDescriptor_FileEntry.fromAmino(e)) || []; - if (object.prefix !== undefined && object.prefix !== null) { - message.prefix = bytesFromBase64(object.prefix); - } - return message; - }, - toAmino(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorAmino { - const obj: any = {}; - if (message.schemaFile) { - obj.schema_file = message.schemaFile.map(e => e ? ModuleSchemaDescriptor_FileEntry.toAmino(e) : undefined); - } else { - obj.schema_file = message.schemaFile; - } - obj.prefix = message.prefix ? base64FromBytes(message.prefix) : undefined; - return obj; - }, - fromAminoMsg(object: ModuleSchemaDescriptorAminoMsg): ModuleSchemaDescriptor { - return ModuleSchemaDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorAminoMsg { - return { - type: "cosmos-sdk/ModuleSchemaDescriptor", - value: ModuleSchemaDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleSchemaDescriptorProtoMsg): ModuleSchemaDescriptor { - return ModuleSchemaDescriptor.decode(message.value); - }, - toProto(message: ModuleSchemaDescriptor): Uint8Array { - return ModuleSchemaDescriptor.encode(message).finish(); - }, - toProtoMsg(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorProtoMsg { - return { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor", - value: ModuleSchemaDescriptor.encode(message).finish() - }; - } -}; -function createBaseModuleSchemaDescriptor_FileEntry(): ModuleSchemaDescriptor_FileEntry { - return { - id: 0, - protoFileName: "", - storageType: 0 - }; -} -export const ModuleSchemaDescriptor_FileEntry = { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry", - encode(message: ModuleSchemaDescriptor_FileEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.protoFileName !== "") { - writer.uint32(18).string(message.protoFileName); - } - if (message.storageType !== 0) { - writer.uint32(24).int32(message.storageType); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleSchemaDescriptor_FileEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - case 2: - message.protoFileName = reader.string(); - break; - case 3: - message.storageType = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleSchemaDescriptor_FileEntry { - return { - id: isSet(object.id) ? Number(object.id) : 0, - protoFileName: isSet(object.protoFileName) ? String(object.protoFileName) : "", - storageType: isSet(object.storageType) ? storageTypeFromJSON(object.storageType) : -1 - }; - }, - toJSON(message: ModuleSchemaDescriptor_FileEntry): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = Math.round(message.id)); - message.protoFileName !== undefined && (obj.protoFileName = message.protoFileName); - message.storageType !== undefined && (obj.storageType = storageTypeToJSON(message.storageType)); - return obj; - }, - fromPartial(object: Partial): ModuleSchemaDescriptor_FileEntry { - const message = createBaseModuleSchemaDescriptor_FileEntry(); - message.id = object.id ?? 0; - message.protoFileName = object.protoFileName ?? ""; - message.storageType = object.storageType ?? 0; - return message; - }, - fromAmino(object: ModuleSchemaDescriptor_FileEntryAmino): ModuleSchemaDescriptor_FileEntry { - const message = createBaseModuleSchemaDescriptor_FileEntry(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.proto_file_name !== undefined && object.proto_file_name !== null) { - message.protoFileName = object.proto_file_name; - } - if (object.storage_type !== undefined && object.storage_type !== null) { - message.storageType = object.storage_type; - } - return message; - }, - toAmino(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryAmino { - const obj: any = {}; - obj.id = message.id === 0 ? undefined : message.id; - obj.proto_file_name = message.protoFileName === "" ? undefined : message.protoFileName; - obj.storage_type = message.storageType === 0 ? undefined : message.storageType; - return obj; - }, - fromAminoMsg(object: ModuleSchemaDescriptor_FileEntryAminoMsg): ModuleSchemaDescriptor_FileEntry { - return ModuleSchemaDescriptor_FileEntry.fromAmino(object.value); - }, - toAminoMsg(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryAminoMsg { - return { - type: "cosmos-sdk/FileEntry", - value: ModuleSchemaDescriptor_FileEntry.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleSchemaDescriptor_FileEntryProtoMsg): ModuleSchemaDescriptor_FileEntry { - return ModuleSchemaDescriptor_FileEntry.decode(message.value); - }, - toProto(message: ModuleSchemaDescriptor_FileEntry): Uint8Array { - return ModuleSchemaDescriptor_FileEntry.encode(message).finish(); - }, - toProtoMsg(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryProtoMsg { - return { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry", - value: ModuleSchemaDescriptor_FileEntry.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/params/v1beta1/params.ts b/packages/api/src/codegen/cosmos/params/v1beta1/params.ts deleted file mode 100644 index 90793ec3..00000000 --- a/packages/api/src/codegen/cosmos/params/v1beta1/params.ts +++ /dev/null @@ -1,286 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChange[]; -} -export interface ParameterChangeProposalProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; - value: Uint8Array; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalAmino { - title?: string; - description?: string; - changes?: ParamChangeAmino[]; -} -export interface ParameterChangeProposalAminoMsg { - type: "cosmos-sdk/ParameterChangeProposal"; - value: ParameterChangeProposalAmino; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParamChange"; - value: Uint8Array; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeAmino { - subspace?: string; - key?: string; - value?: string; -} -export interface ParamChangeAminoMsg { - type: "cosmos-sdk/ParamChange"; - value: ParamChangeAmino; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} -function createBaseParameterChangeProposal(): ParameterChangeProposal { - return { - $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - title: "", - description: "", - changes: [] - }; -} -export const ParameterChangeProposal = { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - encode(message: ParameterChangeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - for (const v of message.changes) { - ParamChange.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParameterChangeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.changes.push(ParamChange.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ParameterChangeProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - changes: Array.isArray(object?.changes) ? object.changes.map((e: any) => ParamChange.fromJSON(e)) : [] - }; - }, - toJSON(message: ParameterChangeProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - if (message.changes) { - obj.changes = message.changes.map(e => e ? ParamChange.toJSON(e) : undefined); - } else { - obj.changes = []; - } - return obj; - }, - fromPartial(object: Partial): ParameterChangeProposal { - const message = createBaseParameterChangeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.changes = object.changes?.map(e => ParamChange.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ParameterChangeProposalAmino): ParameterChangeProposal { - const message = createBaseParameterChangeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.changes = object.changes?.map(e => ParamChange.fromAmino(e)) || []; - return message; - }, - toAmino(message: ParameterChangeProposal): ParameterChangeProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - if (message.changes) { - obj.changes = message.changes.map(e => e ? ParamChange.toAmino(e) : undefined); - } else { - obj.changes = message.changes; - } - return obj; - }, - fromAminoMsg(object: ParameterChangeProposalAminoMsg): ParameterChangeProposal { - return ParameterChangeProposal.fromAmino(object.value); - }, - toAminoMsg(message: ParameterChangeProposal): ParameterChangeProposalAminoMsg { - return { - type: "cosmos-sdk/ParameterChangeProposal", - value: ParameterChangeProposal.toAmino(message) - }; - }, - fromProtoMsg(message: ParameterChangeProposalProtoMsg): ParameterChangeProposal { - return ParameterChangeProposal.decode(message.value); - }, - toProto(message: ParameterChangeProposal): Uint8Array { - return ParameterChangeProposal.encode(message).finish(); - }, - toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - value: ParameterChangeProposal.encode(message).finish() - }; - } -}; -function createBaseParamChange(): ParamChange { - return { - subspace: "", - key: "", - value: "" - }; -} -export const ParamChange = { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - encode(message: ParamChange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - if (message.value !== "") { - writer.uint32(26).string(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ParamChange { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParamChange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - case 3: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ParamChange { - return { - subspace: isSet(object.subspace) ? String(object.subspace) : "", - key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) ? String(object.value) : "" - }; - }, - toJSON(message: ParamChange): unknown { - const obj: any = {}; - message.subspace !== undefined && (obj.subspace = message.subspace); - message.key !== undefined && (obj.key = message.key); - message.value !== undefined && (obj.value = message.value); - return obj; - }, - fromPartial(object: Partial): ParamChange { - const message = createBaseParamChange(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object: ParamChangeAmino): ParamChange { - const message = createBaseParamChange(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message: ParamChange): ParamChangeAmino { - const obj: any = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object: ParamChangeAminoMsg): ParamChange { - return ParamChange.fromAmino(object.value); - }, - toAminoMsg(message: ParamChange): ParamChangeAminoMsg { - return { - type: "cosmos-sdk/ParamChange", - value: ParamChange.toAmino(message) - }; - }, - fromProtoMsg(message: ParamChangeProtoMsg): ParamChange { - return ParamChange.decode(message.value); - }, - toProto(message: ParamChange): Uint8Array { - return ParamChange.encode(message).finish(); - }, - toProtoMsg(message: ParamChange): ParamChangeProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - value: ParamChange.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/params/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/params/v1beta1/query.lcd.ts deleted file mode 100644 index 30dd12e3..00000000 --- a/packages/api/src/codegen/cosmos/params/v1beta1/query.lcd.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - /* Params queries a specific parameter of a module, given its subspace and - key. */ - async params(params: QueryParamsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.subspace !== "undefined") { - options.params.subspace = params.subspace; - } - if (typeof params?.key !== "undefined") { - options.params.key = params.key; - } - const endpoint = `cosmos/params/v1beta1/params`; - return await this.req.get(endpoint, options); - } - /* Subspaces queries for all registered subspaces and all keys for a subspace. - - Since: cosmos-sdk 0.46 */ - async subspaces(_params: QuerySubspacesRequest = {}): Promise { - const endpoint = `cosmos/params/v1beta1/subspaces`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts deleted file mode 100644 index a432f94d..00000000 --- a/packages/api/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Params queries a specific parameter of a module, given its subspace and - * key. - */ - params(request: QueryParamsRequest): Promise; - /** - * Subspaces queries for all registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ - subspaces(request?: QuerySubspacesRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - params(request: QueryParamsRequest): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - subspaces(request: QuerySubspacesRequest = {}): Promise { - const data = QuerySubspacesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); - return promise.then(data => QuerySubspacesResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request: QueryParamsRequest): Promise { - return queryService.params(request); - }, - subspaces(request?: QuerySubspacesRequest): Promise { - return queryService.subspaces(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/params/v1beta1/query.ts b/packages/api/src/codegen/cosmos/params/v1beta1/query.ts deleted file mode 100644 index 761b2725..00000000 --- a/packages/api/src/codegen/cosmos/params/v1beta1/query.ts +++ /dev/null @@ -1,573 +0,0 @@ -import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** subspace defines the module to query the parameter for. */ - subspace: string; - /** key defines the key of the parameter in the subspace. */ - key: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** subspace defines the module to query the parameter for. */ - subspace?: string; - /** key defines the key of the parameter in the subspace. */ - key?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - subspace: string; - key: string; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** param defines the queried parameter. */ - param: ParamChange; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** param defines the queried parameter. */ - param?: ParamChangeAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - param: ParamChangeSDKType; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequest {} -export interface QuerySubspacesRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; - value: Uint8Array; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestAmino {} -export interface QuerySubspacesRequestAminoMsg { - type: "cosmos-sdk/QuerySubspacesRequest"; - value: QuerySubspacesRequestAmino; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestSDKType {} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponse { - subspaces: Subspace[]; -} -export interface QuerySubspacesResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; - value: Uint8Array; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseAmino { - subspaces?: SubspaceAmino[]; -} -export interface QuerySubspacesResponseAminoMsg { - type: "cosmos-sdk/QuerySubspacesResponse"; - value: QuerySubspacesResponseAmino; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseSDKType { - subspaces: SubspaceSDKType[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface Subspace { - subspace: string; - keys: string[]; -} -export interface SubspaceProtoMsg { - typeUrl: "/cosmos.params.v1beta1.Subspace"; - value: Uint8Array; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceAmino { - subspace?: string; - keys?: string[]; -} -export interface SubspaceAminoMsg { - type: "cosmos-sdk/Subspace"; - value: SubspaceAmino; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceSDKType { - subspace: string; - keys: string[]; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return { - subspace: "", - key: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsRequest { - return { - subspace: isSet(object.subspace) ? String(object.subspace) : "", - key: isSet(object.key) ? String(object.key) : "" - }; - }, - toJSON(message: QueryParamsRequest): unknown { - const obj: any = {}; - message.subspace !== undefined && (obj.subspace = message.subspace); - message.key !== undefined && (obj.key = message.key); - return obj; - }, - fromPartial(object: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - return message; - }, - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - return message; - }, - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - param: ParamChange.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.param !== undefined) { - ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.param = ParamChange.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - param: isSet(object.param) ? ParamChange.fromJSON(object.param) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.param !== undefined && (obj.param = message.param ? ParamChange.toJSON(message.param) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.param = object.param !== undefined && object.param !== null ? ParamChange.fromPartial(object.param) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.param !== undefined && object.param !== null) { - message.param = ParamChange.fromAmino(object.param); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.param = message.param ? ParamChange.toAmino(message.param) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesRequest(): QuerySubspacesRequest { - return {}; -} -export const QuerySubspacesRequest = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - encode(_: QuerySubspacesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QuerySubspacesRequest { - return {}; - }, - toJSON(_: QuerySubspacesRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QuerySubspacesRequest { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - fromAmino(_: QuerySubspacesRequestAmino): QuerySubspacesRequest { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - toAmino(_: QuerySubspacesRequest): QuerySubspacesRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QuerySubspacesRequestAminoMsg): QuerySubspacesRequest { - return QuerySubspacesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySubspacesRequest", - value: QuerySubspacesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySubspacesRequestProtoMsg): QuerySubspacesRequest { - return QuerySubspacesRequest.decode(message.value); - }, - toProto(message: QuerySubspacesRequest): Uint8Array { - return QuerySubspacesRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - value: QuerySubspacesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesResponse(): QuerySubspacesResponse { - return { - subspaces: [] - }; -} -export const QuerySubspacesResponse = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - encode(message: QuerySubspacesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.subspaces) { - Subspace.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspaces.push(Subspace.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySubspacesResponse { - return { - subspaces: Array.isArray(object?.subspaces) ? object.subspaces.map((e: any) => Subspace.fromJSON(e)) : [] - }; - }, - toJSON(message: QuerySubspacesResponse): unknown { - const obj: any = {}; - if (message.subspaces) { - obj.subspaces = message.subspaces.map(e => e ? Subspace.toJSON(e) : undefined); - } else { - obj.subspaces = []; - } - return obj; - }, - fromPartial(object: Partial): QuerySubspacesResponse { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => Subspace.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QuerySubspacesResponseAmino): QuerySubspacesResponse { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => Subspace.fromAmino(e)) || []; - return message; - }, - toAmino(message: QuerySubspacesResponse): QuerySubspacesResponseAmino { - const obj: any = {}; - if (message.subspaces) { - obj.subspaces = message.subspaces.map(e => e ? Subspace.toAmino(e) : undefined); - } else { - obj.subspaces = message.subspaces; - } - return obj; - }, - fromAminoMsg(object: QuerySubspacesResponseAminoMsg): QuerySubspacesResponse { - return QuerySubspacesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySubspacesResponse", - value: QuerySubspacesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySubspacesResponseProtoMsg): QuerySubspacesResponse { - return QuerySubspacesResponse.decode(message.value); - }, - toProto(message: QuerySubspacesResponse): Uint8Array { - return QuerySubspacesResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - value: QuerySubspacesResponse.encode(message).finish() - }; - } -}; -function createBaseSubspace(): Subspace { - return { - subspace: "", - keys: [] - }; -} -export const Subspace = { - typeUrl: "/cosmos.params.v1beta1.Subspace", - encode(message: Subspace, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - for (const v of message.keys) { - writer.uint32(18).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Subspace { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSubspace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.keys.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Subspace { - return { - subspace: isSet(object.subspace) ? String(object.subspace) : "", - keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: Subspace): unknown { - const obj: any = {}; - message.subspace !== undefined && (obj.subspace = message.subspace); - if (message.keys) { - obj.keys = message.keys.map(e => e); - } else { - obj.keys = []; - } - return obj; - }, - fromPartial(object: Partial): Subspace { - const message = createBaseSubspace(); - message.subspace = object.subspace ?? ""; - message.keys = object.keys?.map(e => e) || []; - return message; - }, - fromAmino(object: SubspaceAmino): Subspace { - const message = createBaseSubspace(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - message.keys = object.keys?.map(e => e) || []; - return message; - }, - toAmino(message: Subspace): SubspaceAmino { - const obj: any = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - if (message.keys) { - obj.keys = message.keys.map(e => e); - } else { - obj.keys = message.keys; - } - return obj; - }, - fromAminoMsg(object: SubspaceAminoMsg): Subspace { - return Subspace.fromAmino(object.value); - }, - toAminoMsg(message: Subspace): SubspaceAminoMsg { - return { - type: "cosmos-sdk/Subspace", - value: Subspace.toAmino(message) - }; - }, - fromProtoMsg(message: SubspaceProtoMsg): Subspace { - return Subspace.decode(message.value); - }, - toProto(message: Subspace): Uint8Array { - return Subspace.encode(message).finish(); - }, - toProtoMsg(message: Subspace): SubspaceProtoMsg { - return { - typeUrl: "/cosmos.params.v1beta1.Subspace", - value: Subspace.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/rpc.query.ts b/packages/api/src/codegen/cosmos/rpc.query.ts deleted file mode 100644 index 87be0773..00000000 --- a/packages/api/src/codegen/cosmos/rpc.query.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ - rpcEndpoint -}: { - rpcEndpoint: string | HttpEndpoint; -}) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - app: { - v1alpha1: (await import("./app/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) - }, - auth: { - v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("./base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - }, - tendermint: { - v1beta1: (await import("./base/tendermint/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - evidence: { - v1beta1: (await import("./evidence/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("./feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("./gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("./group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("./mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - nft: { - v1beta1: (await import("./nft/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("./params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - slashing: { - v1beta1: (await import("./slashing/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/rpc.tx.ts b/packages/api/src/codegen/cosmos/rpc.tx.ts deleted file mode 100644 index 3a4dbf9b..00000000 --- a/packages/api/src/codegen/cosmos/rpc.tx.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Rpc } from "../helpers"; -export const createRPCMsgClient = async ({ - rpc -}: { - rpc: Rpc; -}) => ({ - cosmos: { - authz: { - v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - crisis: { - v1beta1: new (await import("./crisis/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - evidence: { - v1beta1: new (await import("./evidence/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("./feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("./gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("./group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - nft: { - v1beta1: new (await import("./nft/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - slashing: { - v1beta1: new (await import("./slashing/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("./vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } -}); \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/genesis.ts deleted file mode 100644 index c8ccef29..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/genesis.ts +++ /dev/null @@ -1,541 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signing_infos?: SigningInfoAmino[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missed_blocks?: ValidatorMissedBlocksAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -export interface SigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo"; - value: Uint8Array; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoAmino { - /** address is the validator address. */ - address?: string; - /** validator_signing_info represents the signing info of this validator. */ - validator_signing_info?: ValidatorSigningInfoAmino; -} -export interface SigningInfoAminoMsg { - type: "cosmos-sdk/SigningInfo"; - value: SigningInfoAmino; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -export interface ValidatorMissedBlocksProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks"; - value: Uint8Array; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksAmino { - /** address is the validator address. */ - address?: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missed_blocks?: MissedBlockAmino[]; -} -export interface ValidatorMissedBlocksAminoMsg { - type: "cosmos-sdk/ValidatorMissedBlocks"; - value: ValidatorMissedBlocksAmino; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: bigint; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock"; - value: Uint8Array; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockAmino { - /** index is the height at which the block was missed. */ - index?: string; - /** missed is the missed status. */ - missed?: boolean; -} -export interface MissedBlockAminoMsg { - type: "cosmos-sdk/MissedBlock"; - value: MissedBlockAmino; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: bigint; - missed: boolean; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - signingInfos: [], - missedBlocks: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.signingInfos) { - SigningInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.missedBlocks) { - ValidatorMissedBlocks.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.signingInfos.push(SigningInfo.decode(reader, reader.uint32())); - break; - case 3: - message.missedBlocks.push(ValidatorMissedBlocks.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - signingInfos: Array.isArray(object?.signingInfos) ? object.signingInfos.map((e: any) => SigningInfo.fromJSON(e)) : [], - missedBlocks: Array.isArray(object?.missedBlocks) ? object.missedBlocks.map((e: any) => ValidatorMissedBlocks.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - if (message.signingInfos) { - obj.signingInfos = message.signingInfos.map(e => e ? SigningInfo.toJSON(e) : undefined); - } else { - obj.signingInfos = []; - } - if (message.missedBlocks) { - obj.missedBlocks = message.missedBlocks.map(e => e ? ValidatorMissedBlocks.toJSON(e) : undefined); - } else { - obj.missedBlocks = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.signingInfos = object.signingInfos?.map(e => SigningInfo.fromPartial(e)) || []; - message.missedBlocks = object.missedBlocks?.map(e => ValidatorMissedBlocks.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.signingInfos = object.signing_infos?.map(e => SigningInfo.fromAmino(e)) || []; - message.missedBlocks = object.missed_blocks?.map(e => ValidatorMissedBlocks.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.signingInfos) { - obj.signing_infos = message.signingInfos.map(e => e ? SigningInfo.toAmino(e) : undefined); - } else { - obj.signing_infos = message.signingInfos; - } - if (message.missedBlocks) { - obj.missed_blocks = message.missedBlocks.map(e => e ? ValidatorMissedBlocks.toAmino(e) : undefined); - } else { - obj.missed_blocks = message.missedBlocks; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseSigningInfo(): SigningInfo { - return { - address: "", - validatorSigningInfo: ValidatorSigningInfo.fromPartial({}) - }; -} -export const SigningInfo = { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", - encode(message: SigningInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.validatorSigningInfo !== undefined) { - ValidatorSigningInfo.encode(message.validatorSigningInfo, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SigningInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSigningInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.validatorSigningInfo = ValidatorSigningInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SigningInfo { - return { - address: isSet(object.address) ? String(object.address) : "", - validatorSigningInfo: isSet(object.validatorSigningInfo) ? ValidatorSigningInfo.fromJSON(object.validatorSigningInfo) : undefined - }; - }, - toJSON(message: SigningInfo): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.validatorSigningInfo !== undefined && (obj.validatorSigningInfo = message.validatorSigningInfo ? ValidatorSigningInfo.toJSON(message.validatorSigningInfo) : undefined); - return obj; - }, - fromPartial(object: Partial): SigningInfo { - const message = createBaseSigningInfo(); - message.address = object.address ?? ""; - message.validatorSigningInfo = object.validatorSigningInfo !== undefined && object.validatorSigningInfo !== null ? ValidatorSigningInfo.fromPartial(object.validatorSigningInfo) : undefined; - return message; - }, - fromAmino(object: SigningInfoAmino): SigningInfo { - const message = createBaseSigningInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.validator_signing_info !== undefined && object.validator_signing_info !== null) { - message.validatorSigningInfo = ValidatorSigningInfo.fromAmino(object.validator_signing_info); - } - return message; - }, - toAmino(message: SigningInfo): SigningInfoAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.validator_signing_info = message.validatorSigningInfo ? ValidatorSigningInfo.toAmino(message.validatorSigningInfo) : undefined; - return obj; - }, - fromAminoMsg(object: SigningInfoAminoMsg): SigningInfo { - return SigningInfo.fromAmino(object.value); - }, - toAminoMsg(message: SigningInfo): SigningInfoAminoMsg { - return { - type: "cosmos-sdk/SigningInfo", - value: SigningInfo.toAmino(message) - }; - }, - fromProtoMsg(message: SigningInfoProtoMsg): SigningInfo { - return SigningInfo.decode(message.value); - }, - toProto(message: SigningInfo): Uint8Array { - return SigningInfo.encode(message).finish(); - }, - toProtoMsg(message: SigningInfo): SigningInfoProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", - value: SigningInfo.encode(message).finish() - }; - } -}; -function createBaseValidatorMissedBlocks(): ValidatorMissedBlocks { - return { - address: "", - missedBlocks: [] - }; -} -export const ValidatorMissedBlocks = { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", - encode(message: ValidatorMissedBlocks, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.missedBlocks) { - MissedBlock.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorMissedBlocks { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorMissedBlocks(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.missedBlocks.push(MissedBlock.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorMissedBlocks { - return { - address: isSet(object.address) ? String(object.address) : "", - missedBlocks: Array.isArray(object?.missedBlocks) ? object.missedBlocks.map((e: any) => MissedBlock.fromJSON(e)) : [] - }; - }, - toJSON(message: ValidatorMissedBlocks): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - if (message.missedBlocks) { - obj.missedBlocks = message.missedBlocks.map(e => e ? MissedBlock.toJSON(e) : undefined); - } else { - obj.missedBlocks = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorMissedBlocks { - const message = createBaseValidatorMissedBlocks(); - message.address = object.address ?? ""; - message.missedBlocks = object.missedBlocks?.map(e => MissedBlock.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ValidatorMissedBlocksAmino): ValidatorMissedBlocks { - const message = createBaseValidatorMissedBlocks(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.missedBlocks = object.missed_blocks?.map(e => MissedBlock.fromAmino(e)) || []; - return message; - }, - toAmino(message: ValidatorMissedBlocks): ValidatorMissedBlocksAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.missedBlocks) { - obj.missed_blocks = message.missedBlocks.map(e => e ? MissedBlock.toAmino(e) : undefined); - } else { - obj.missed_blocks = message.missedBlocks; - } - return obj; - }, - fromAminoMsg(object: ValidatorMissedBlocksAminoMsg): ValidatorMissedBlocks { - return ValidatorMissedBlocks.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorMissedBlocks): ValidatorMissedBlocksAminoMsg { - return { - type: "cosmos-sdk/ValidatorMissedBlocks", - value: ValidatorMissedBlocks.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorMissedBlocksProtoMsg): ValidatorMissedBlocks { - return ValidatorMissedBlocks.decode(message.value); - }, - toProto(message: ValidatorMissedBlocks): Uint8Array { - return ValidatorMissedBlocks.encode(message).finish(); - }, - toProtoMsg(message: ValidatorMissedBlocks): ValidatorMissedBlocksProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", - value: ValidatorMissedBlocks.encode(message).finish() - }; - } -}; -function createBaseMissedBlock(): MissedBlock { - return { - index: BigInt(0), - missed: false - }; -} -export const MissedBlock = { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", - encode(message: MissedBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== BigInt(0)) { - writer.uint32(8).int64(message.index); - } - if (message.missed === true) { - writer.uint32(16).bool(message.missed); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MissedBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMissedBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.int64(); - break; - case 2: - message.missed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MissedBlock { - return { - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - missed: isSet(object.missed) ? Boolean(object.missed) : false - }; - }, - toJSON(message: MissedBlock): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - message.missed !== undefined && (obj.missed = message.missed); - return obj; - }, - fromPartial(object: Partial): MissedBlock { - const message = createBaseMissedBlock(); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.missed = object.missed ?? false; - return message; - }, - fromAmino(object: MissedBlockAmino): MissedBlock { - const message = createBaseMissedBlock(); - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.missed !== undefined && object.missed !== null) { - message.missed = object.missed; - } - return message; - }, - toAmino(message: MissedBlock): MissedBlockAmino { - const obj: any = {}; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.missed = message.missed === false ? undefined : message.missed; - return obj; - }, - fromAminoMsg(object: MissedBlockAminoMsg): MissedBlock { - return MissedBlock.fromAmino(object.value); - }, - toAminoMsg(message: MissedBlock): MissedBlockAminoMsg { - return { - type: "cosmos-sdk/MissedBlock", - value: MissedBlock.toAmino(message) - }; - }, - fromProtoMsg(message: MissedBlockProtoMsg): MissedBlock { - return MissedBlock.decode(message.value); - }, - toProto(message: MissedBlock): Uint8Array { - return MissedBlock.encode(message).finish(); - }, - toProtoMsg(message: MissedBlock): MissedBlockProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", - value: MissedBlock.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts deleted file mode 100644 index dbce4023..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.signingInfo = this.signingInfo.bind(this); - this.signingInfos = this.signingInfos.bind(this); - } - /* Params queries the parameters of slashing module */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/slashing/v1beta1/params`; - return await this.req.get(endpoint); - } - /* SigningInfo queries the signing info of given cons address */ - async signingInfo(params: QuerySigningInfoRequest): Promise { - const endpoint = `cosmos/slashing/v1beta1/signing_infos/${params.consAddress}`; - return await this.req.get(endpoint); - } - /* SigningInfos queries signing info of all validators */ - async signingInfos(params: QuerySigningInfosRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/slashing/v1beta1/signing_infos`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 83586b56..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySigningInfoRequest, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfosResponse } from "./query"; -/** Query provides defines the gRPC querier service */ -export interface Query { - /** Params queries the parameters of slashing module */ - params(request?: QueryParamsRequest): Promise; - /** SigningInfo queries the signing info of given cons address */ - signingInfo(request: QuerySigningInfoRequest): Promise; - /** SigningInfos queries signing info of all validators */ - signingInfos(request?: QuerySigningInfosRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.signingInfo = this.signingInfo.bind(this); - this.signingInfos = this.signingInfos.bind(this); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - signingInfo(request: QuerySigningInfoRequest): Promise { - const data = QuerySigningInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "SigningInfo", data); - return promise.then(data => QuerySigningInfoResponse.decode(new BinaryReader(data))); - } - signingInfos(request: QuerySigningInfosRequest = { - pagination: undefined - }): Promise { - const data = QuerySigningInfosRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "SigningInfos", data); - return promise.then(data => QuerySigningInfosResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - signingInfo(request: QuerySigningInfoRequest): Promise { - return queryService.signingInfo(request); - }, - signingInfos(request?: QuerySigningInfosRequest): Promise { - return queryService.signingInfos(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/query.ts deleted file mode 100644 index 788d726d..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/query.ts +++ /dev/null @@ -1,641 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseAmino { - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequest { - /** cons_address is the address to query signing info of */ - consAddress: string; -} -export interface QuerySigningInfoRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest"; - value: Uint8Array; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestAmino { - /** cons_address is the address to query signing info of */ - cons_address?: string; -} -export interface QuerySigningInfoRequestAminoMsg { - type: "cosmos-sdk/QuerySigningInfoRequest"; - value: QuerySigningInfoRequestAmino; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestSDKType { - cons_address: string; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponse { - /** val_signing_info is the signing info of requested val cons address */ - valSigningInfo: ValidatorSigningInfo; -} -export interface QuerySigningInfoResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse"; - value: Uint8Array; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseAmino { - /** val_signing_info is the signing info of requested val cons address */ - val_signing_info?: ValidatorSigningInfoAmino; -} -export interface QuerySigningInfoResponseAminoMsg { - type: "cosmos-sdk/QuerySigningInfoResponse"; - value: QuerySigningInfoResponseAmino; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseSDKType { - val_signing_info: ValidatorSigningInfoSDKType; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequest { - pagination?: PageRequest; -} -export interface QuerySigningInfosRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest"; - value: Uint8Array; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestAmino { - pagination?: PageRequestAmino; -} -export interface QuerySigningInfosRequestAminoMsg { - type: "cosmos-sdk/QuerySigningInfosRequest"; - value: QuerySigningInfosRequestAmino; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponse { - /** info is the signing info of all validators */ - info: ValidatorSigningInfo[]; - pagination?: PageResponse; -} -export interface QuerySigningInfosResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse"; - value: Uint8Array; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseAmino { - /** info is the signing info of all validators */ - info?: ValidatorSigningInfoAmino[]; - pagination?: PageResponseAmino; -} -export interface QuerySigningInfosResponseAminoMsg { - type: "cosmos-sdk/QuerySigningInfosResponse"; - value: QuerySigningInfosResponseAmino; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseSDKType { - info: ValidatorSigningInfoSDKType[]; - pagination?: PageResponseSDKType; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySigningInfoRequest(): QuerySigningInfoRequest { - return { - consAddress: "" - }; -} -export const QuerySigningInfoRequest = { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", - encode(message: QuerySigningInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.consAddress !== "") { - writer.uint32(10).string(message.consAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySigningInfoRequest { - return { - consAddress: isSet(object.consAddress) ? String(object.consAddress) : "" - }; - }, - toJSON(message: QuerySigningInfoRequest): unknown { - const obj: any = {}; - message.consAddress !== undefined && (obj.consAddress = message.consAddress); - return obj; - }, - fromPartial(object: Partial): QuerySigningInfoRequest { - const message = createBaseQuerySigningInfoRequest(); - message.consAddress = object.consAddress ?? ""; - return message; - }, - fromAmino(object: QuerySigningInfoRequestAmino): QuerySigningInfoRequest { - const message = createBaseQuerySigningInfoRequest(); - if (object.cons_address !== undefined && object.cons_address !== null) { - message.consAddress = object.cons_address; - } - return message; - }, - toAmino(message: QuerySigningInfoRequest): QuerySigningInfoRequestAmino { - const obj: any = {}; - obj.cons_address = message.consAddress === "" ? undefined : message.consAddress; - return obj; - }, - fromAminoMsg(object: QuerySigningInfoRequestAminoMsg): QuerySigningInfoRequest { - return QuerySigningInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySigningInfoRequest): QuerySigningInfoRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySigningInfoRequest", - value: QuerySigningInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySigningInfoRequestProtoMsg): QuerySigningInfoRequest { - return QuerySigningInfoRequest.decode(message.value); - }, - toProto(message: QuerySigningInfoRequest): Uint8Array { - return QuerySigningInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySigningInfoRequest): QuerySigningInfoRequestProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", - value: QuerySigningInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySigningInfoResponse(): QuerySigningInfoResponse { - return { - valSigningInfo: ValidatorSigningInfo.fromPartial({}) - }; -} -export const QuerySigningInfoResponse = { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", - encode(message: QuerySigningInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.valSigningInfo !== undefined) { - ValidatorSigningInfo.encode(message.valSigningInfo, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.valSigningInfo = ValidatorSigningInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySigningInfoResponse { - return { - valSigningInfo: isSet(object.valSigningInfo) ? ValidatorSigningInfo.fromJSON(object.valSigningInfo) : undefined - }; - }, - toJSON(message: QuerySigningInfoResponse): unknown { - const obj: any = {}; - message.valSigningInfo !== undefined && (obj.valSigningInfo = message.valSigningInfo ? ValidatorSigningInfo.toJSON(message.valSigningInfo) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySigningInfoResponse { - const message = createBaseQuerySigningInfoResponse(); - message.valSigningInfo = object.valSigningInfo !== undefined && object.valSigningInfo !== null ? ValidatorSigningInfo.fromPartial(object.valSigningInfo) : undefined; - return message; - }, - fromAmino(object: QuerySigningInfoResponseAmino): QuerySigningInfoResponse { - const message = createBaseQuerySigningInfoResponse(); - if (object.val_signing_info !== undefined && object.val_signing_info !== null) { - message.valSigningInfo = ValidatorSigningInfo.fromAmino(object.val_signing_info); - } - return message; - }, - toAmino(message: QuerySigningInfoResponse): QuerySigningInfoResponseAmino { - const obj: any = {}; - obj.val_signing_info = message.valSigningInfo ? ValidatorSigningInfo.toAmino(message.valSigningInfo) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySigningInfoResponseAminoMsg): QuerySigningInfoResponse { - return QuerySigningInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySigningInfoResponse): QuerySigningInfoResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySigningInfoResponse", - value: QuerySigningInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySigningInfoResponseProtoMsg): QuerySigningInfoResponse { - return QuerySigningInfoResponse.decode(message.value); - }, - toProto(message: QuerySigningInfoResponse): Uint8Array { - return QuerySigningInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySigningInfoResponse): QuerySigningInfoResponseProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", - value: QuerySigningInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySigningInfosRequest(): QuerySigningInfosRequest { - return { - pagination: undefined - }; -} -export const QuerySigningInfosRequest = { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", - encode(message: QuerySigningInfosRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfosRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySigningInfosRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySigningInfosRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySigningInfosRequest { - const message = createBaseQuerySigningInfosRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySigningInfosRequestAmino): QuerySigningInfosRequest { - const message = createBaseQuerySigningInfosRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySigningInfosRequest): QuerySigningInfosRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySigningInfosRequestAminoMsg): QuerySigningInfosRequest { - return QuerySigningInfosRequest.fromAmino(object.value); - }, - toAminoMsg(message: QuerySigningInfosRequest): QuerySigningInfosRequestAminoMsg { - return { - type: "cosmos-sdk/QuerySigningInfosRequest", - value: QuerySigningInfosRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySigningInfosRequestProtoMsg): QuerySigningInfosRequest { - return QuerySigningInfosRequest.decode(message.value); - }, - toProto(message: QuerySigningInfosRequest): Uint8Array { - return QuerySigningInfosRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySigningInfosRequest): QuerySigningInfosRequestProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", - value: QuerySigningInfosRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySigningInfosResponse(): QuerySigningInfosResponse { - return { - info: [], - pagination: undefined - }; -} -export const QuerySigningInfosResponse = { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", - encode(message: QuerySigningInfosResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.info) { - ValidatorSigningInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfosResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info.push(ValidatorSigningInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySigningInfosResponse { - return { - info: Array.isArray(object?.info) ? object.info.map((e: any) => ValidatorSigningInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySigningInfosResponse): unknown { - const obj: any = {}; - if (message.info) { - obj.info = message.info.map(e => e ? ValidatorSigningInfo.toJSON(e) : undefined); - } else { - obj.info = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySigningInfosResponse { - const message = createBaseQuerySigningInfosResponse(); - message.info = object.info?.map(e => ValidatorSigningInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySigningInfosResponseAmino): QuerySigningInfosResponse { - const message = createBaseQuerySigningInfosResponse(); - message.info = object.info?.map(e => ValidatorSigningInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySigningInfosResponse): QuerySigningInfosResponseAmino { - const obj: any = {}; - if (message.info) { - obj.info = message.info.map(e => e ? ValidatorSigningInfo.toAmino(e) : undefined); - } else { - obj.info = message.info; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySigningInfosResponseAminoMsg): QuerySigningInfosResponse { - return QuerySigningInfosResponse.fromAmino(object.value); - }, - toAminoMsg(message: QuerySigningInfosResponse): QuerySigningInfosResponseAminoMsg { - return { - type: "cosmos-sdk/QuerySigningInfosResponse", - value: QuerySigningInfosResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QuerySigningInfosResponseProtoMsg): QuerySigningInfosResponse { - return QuerySigningInfosResponse.decode(message.value); - }, - toProto(message: QuerySigningInfosResponse): Uint8Array { - return QuerySigningInfosResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySigningInfosResponse): QuerySigningInfosResponseProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", - value: QuerySigningInfosResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/slashing.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/slashing.ts deleted file mode 100644 index 2caeb9d7..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/slashing.ts +++ /dev/null @@ -1,394 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: bigint; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - indexOffset: bigint; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Timestamp; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: bigint; -} -export interface ValidatorSigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; - value: Uint8Array; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoAmino { - address?: string; - /** Height at which validator was first a candidate OR was unjailed */ - start_height?: string; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - index_offset?: string; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailed_until?: string; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned?: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missed_blocks_counter?: string; -} -export interface ValidatorSigningInfoAminoMsg { - type: "cosmos-sdk/ValidatorSigningInfo"; - value: ValidatorSigningInfoAmino; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: bigint; - index_offset: bigint; - jailed_until: TimestampSDKType; - tombstoned: boolean; - missed_blocks_counter: bigint; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: bigint; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.Params"; - value: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsAmino { - signed_blocks_window?: string; - min_signed_per_window?: string; - downtime_jail_duration?: DurationAmino; - slash_fraction_double_sign?: string; - slash_fraction_downtime?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: bigint; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -function createBaseValidatorSigningInfo(): ValidatorSigningInfo { - return { - address: "", - startHeight: BigInt(0), - indexOffset: BigInt(0), - jailedUntil: Timestamp.fromPartial({}), - tombstoned: false, - missedBlocksCounter: BigInt(0) - }; -} -export const ValidatorSigningInfo = { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", - encode(message: ValidatorSigningInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.startHeight !== BigInt(0)) { - writer.uint32(16).int64(message.startHeight); - } - if (message.indexOffset !== BigInt(0)) { - writer.uint32(24).int64(message.indexOffset); - } - if (message.jailedUntil !== undefined) { - Timestamp.encode(message.jailedUntil, writer.uint32(34).fork()).ldelim(); - } - if (message.tombstoned === true) { - writer.uint32(40).bool(message.tombstoned); - } - if (message.missedBlocksCounter !== BigInt(0)) { - writer.uint32(48).int64(message.missedBlocksCounter); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSigningInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSigningInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.startHeight = reader.int64(); - break; - case 3: - message.indexOffset = reader.int64(); - break; - case 4: - message.jailedUntil = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.tombstoned = reader.bool(); - break; - case 6: - message.missedBlocksCounter = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorSigningInfo { - return { - address: isSet(object.address) ? String(object.address) : "", - startHeight: isSet(object.startHeight) ? BigInt(object.startHeight.toString()) : BigInt(0), - indexOffset: isSet(object.indexOffset) ? BigInt(object.indexOffset.toString()) : BigInt(0), - jailedUntil: isSet(object.jailedUntil) ? fromJsonTimestamp(object.jailedUntil) : undefined, - tombstoned: isSet(object.tombstoned) ? Boolean(object.tombstoned) : false, - missedBlocksCounter: isSet(object.missedBlocksCounter) ? BigInt(object.missedBlocksCounter.toString()) : BigInt(0) - }; - }, - toJSON(message: ValidatorSigningInfo): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.startHeight !== undefined && (obj.startHeight = (message.startHeight || BigInt(0)).toString()); - message.indexOffset !== undefined && (obj.indexOffset = (message.indexOffset || BigInt(0)).toString()); - message.jailedUntil !== undefined && (obj.jailedUntil = fromTimestamp(message.jailedUntil).toISOString()); - message.tombstoned !== undefined && (obj.tombstoned = message.tombstoned); - message.missedBlocksCounter !== undefined && (obj.missedBlocksCounter = (message.missedBlocksCounter || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ValidatorSigningInfo { - const message = createBaseValidatorSigningInfo(); - message.address = object.address ?? ""; - message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? BigInt(object.startHeight.toString()) : BigInt(0); - message.indexOffset = object.indexOffset !== undefined && object.indexOffset !== null ? BigInt(object.indexOffset.toString()) : BigInt(0); - message.jailedUntil = object.jailedUntil !== undefined && object.jailedUntil !== null ? Timestamp.fromPartial(object.jailedUntil) : undefined; - message.tombstoned = object.tombstoned ?? false; - message.missedBlocksCounter = object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null ? BigInt(object.missedBlocksCounter.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorSigningInfoAmino): ValidatorSigningInfo { - const message = createBaseValidatorSigningInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.start_height !== undefined && object.start_height !== null) { - message.startHeight = BigInt(object.start_height); - } - if (object.index_offset !== undefined && object.index_offset !== null) { - message.indexOffset = BigInt(object.index_offset); - } - if (object.jailed_until !== undefined && object.jailed_until !== null) { - message.jailedUntil = Timestamp.fromAmino(object.jailed_until); - } - if (object.tombstoned !== undefined && object.tombstoned !== null) { - message.tombstoned = object.tombstoned; - } - if (object.missed_blocks_counter !== undefined && object.missed_blocks_counter !== null) { - message.missedBlocksCounter = BigInt(object.missed_blocks_counter); - } - return message; - }, - toAmino(message: ValidatorSigningInfo): ValidatorSigningInfoAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.start_height = message.startHeight !== BigInt(0) ? message.startHeight.toString() : undefined; - obj.index_offset = message.indexOffset !== BigInt(0) ? message.indexOffset.toString() : undefined; - obj.jailed_until = message.jailedUntil ? Timestamp.toAmino(message.jailedUntil) : undefined; - obj.tombstoned = message.tombstoned === false ? undefined : message.tombstoned; - obj.missed_blocks_counter = message.missedBlocksCounter !== BigInt(0) ? message.missedBlocksCounter.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorSigningInfoAminoMsg): ValidatorSigningInfo { - return ValidatorSigningInfo.fromAmino(object.value); - }, - toAminoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoAminoMsg { - return { - type: "cosmos-sdk/ValidatorSigningInfo", - value: ValidatorSigningInfo.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorSigningInfoProtoMsg): ValidatorSigningInfo { - return ValidatorSigningInfo.decode(message.value); - }, - toProto(message: ValidatorSigningInfo): Uint8Array { - return ValidatorSigningInfo.encode(message).finish(); - }, - toProtoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", - value: ValidatorSigningInfo.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - signedBlocksWindow: BigInt(0), - minSignedPerWindow: new Uint8Array(), - downtimeJailDuration: Duration.fromPartial({}), - slashFractionDoubleSign: new Uint8Array(), - slashFractionDowntime: new Uint8Array() - }; -} -export const Params = { - typeUrl: "/cosmos.slashing.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.signedBlocksWindow !== BigInt(0)) { - writer.uint32(8).int64(message.signedBlocksWindow); - } - if (message.minSignedPerWindow.length !== 0) { - writer.uint32(18).bytes(message.minSignedPerWindow); - } - if (message.downtimeJailDuration !== undefined) { - Duration.encode(message.downtimeJailDuration, writer.uint32(26).fork()).ldelim(); - } - if (message.slashFractionDoubleSign.length !== 0) { - writer.uint32(34).bytes(message.slashFractionDoubleSign); - } - if (message.slashFractionDowntime.length !== 0) { - writer.uint32(42).bytes(message.slashFractionDowntime); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedBlocksWindow = reader.int64(); - break; - case 2: - message.minSignedPerWindow = reader.bytes(); - break; - case 3: - message.downtimeJailDuration = Duration.decode(reader, reader.uint32()); - break; - case 4: - message.slashFractionDoubleSign = reader.bytes(); - break; - case 5: - message.slashFractionDowntime = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - signedBlocksWindow: isSet(object.signedBlocksWindow) ? BigInt(object.signedBlocksWindow.toString()) : BigInt(0), - minSignedPerWindow: isSet(object.minSignedPerWindow) ? bytesFromBase64(object.minSignedPerWindow) : new Uint8Array(), - downtimeJailDuration: isSet(object.downtimeJailDuration) ? Duration.fromJSON(object.downtimeJailDuration) : undefined, - slashFractionDoubleSign: isSet(object.slashFractionDoubleSign) ? bytesFromBase64(object.slashFractionDoubleSign) : new Uint8Array(), - slashFractionDowntime: isSet(object.slashFractionDowntime) ? bytesFromBase64(object.slashFractionDowntime) : new Uint8Array() - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.signedBlocksWindow !== undefined && (obj.signedBlocksWindow = (message.signedBlocksWindow || BigInt(0)).toString()); - message.minSignedPerWindow !== undefined && (obj.minSignedPerWindow = base64FromBytes(message.minSignedPerWindow !== undefined ? message.minSignedPerWindow : new Uint8Array())); - message.downtimeJailDuration !== undefined && (obj.downtimeJailDuration = message.downtimeJailDuration ? Duration.toJSON(message.downtimeJailDuration) : undefined); - message.slashFractionDoubleSign !== undefined && (obj.slashFractionDoubleSign = base64FromBytes(message.slashFractionDoubleSign !== undefined ? message.slashFractionDoubleSign : new Uint8Array())); - message.slashFractionDowntime !== undefined && (obj.slashFractionDowntime = base64FromBytes(message.slashFractionDowntime !== undefined ? message.slashFractionDowntime : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.signedBlocksWindow = object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null ? BigInt(object.signedBlocksWindow.toString()) : BigInt(0); - message.minSignedPerWindow = object.minSignedPerWindow ?? new Uint8Array(); - message.downtimeJailDuration = object.downtimeJailDuration !== undefined && object.downtimeJailDuration !== null ? Duration.fromPartial(object.downtimeJailDuration) : undefined; - message.slashFractionDoubleSign = object.slashFractionDoubleSign ?? new Uint8Array(); - message.slashFractionDowntime = object.slashFractionDowntime ?? new Uint8Array(); - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.signed_blocks_window !== undefined && object.signed_blocks_window !== null) { - message.signedBlocksWindow = BigInt(object.signed_blocks_window); - } - if (object.min_signed_per_window !== undefined && object.min_signed_per_window !== null) { - message.minSignedPerWindow = bytesFromBase64(object.min_signed_per_window); - } - if (object.downtime_jail_duration !== undefined && object.downtime_jail_duration !== null) { - message.downtimeJailDuration = Duration.fromAmino(object.downtime_jail_duration); - } - if (object.slash_fraction_double_sign !== undefined && object.slash_fraction_double_sign !== null) { - message.slashFractionDoubleSign = bytesFromBase64(object.slash_fraction_double_sign); - } - if (object.slash_fraction_downtime !== undefined && object.slash_fraction_downtime !== null) { - message.slashFractionDowntime = bytesFromBase64(object.slash_fraction_downtime); - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.signed_blocks_window = message.signedBlocksWindow !== BigInt(0) ? message.signedBlocksWindow.toString() : undefined; - obj.min_signed_per_window = message.minSignedPerWindow ? base64FromBytes(message.minSignedPerWindow) : undefined; - obj.downtime_jail_duration = message.downtimeJailDuration ? Duration.toAmino(message.downtimeJailDuration) : undefined; - obj.slash_fraction_double_sign = message.slashFractionDoubleSign ? base64FromBytes(message.slashFractionDoubleSign) : undefined; - obj.slash_fraction_downtime = message.slashFractionDowntime ? base64FromBytes(message.slashFractionDowntime) : undefined; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts deleted file mode 100644 index 9f638256..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgUnjail } from "./tx"; -export const AminoConverter = { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: "cosmos-sdk/MsgUnjail", - toAmino: MsgUnjail.toAmino, - fromAmino: MsgUnjail.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts deleted file mode 100644 index 9b87b671..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgUnjail } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.encode(value).finish() - }; - } - }, - withTypeUrl: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value - }; - } - }, - toJSON: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.toJSON(value) - }; - } - }, - fromJSON: { - unjail(value: any) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.fromJSON(value) - }; - } - }, - fromPartial: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 5a4b327d..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgUnjail, MsgUnjailResponse } from "./tx"; -/** Msg defines the slashing Msg service. */ -export interface Msg { - /** - * Unjail defines a method for unjailing a jailed validator, thus returning - * them into the bonded validator set, so they can begin receiving provisions - * and rewards again. - */ - unjail(request: MsgUnjail): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.unjail = this.unjail.bind(this); - } - unjail(request: MsgUnjail): Promise { - const data = MsgUnjail.encode(request).finish(); - const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data); - return promise.then(data => MsgUnjailResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.ts deleted file mode 100644 index ec88a21f..00000000 --- a/packages/api/src/codegen/cosmos/slashing/v1beta1/tx.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -export interface MsgUnjailProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail"; - value: Uint8Array; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailAmino { - validator_addr: string; -} -export interface MsgUnjailAminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: MsgUnjailAmino; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse {} -export interface MsgUnjailResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse"; - value: Uint8Array; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseAmino {} -export interface MsgUnjailResponseAminoMsg { - type: "cosmos-sdk/MsgUnjailResponse"; - value: MsgUnjailResponseAmino; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType {} -function createBaseMsgUnjail(): MsgUnjail { - return { - validatorAddr: "" - }; -} -export const MsgUnjail = { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - encode(message: MsgUnjail, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjail { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUnjail(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUnjail { - return { - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "" - }; - }, - toJSON(message: MsgUnjail): unknown { - const obj: any = {}; - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - return obj; - }, - fromPartial(object: Partial): MsgUnjail { - const message = createBaseMsgUnjail(); - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object: MsgUnjailAmino): MsgUnjail { - const message = createBaseMsgUnjail(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message: MsgUnjail): MsgUnjailAmino { - const obj: any = {}; - obj.validator_addr = message.validatorAddr ?? ""; - return obj; - }, - fromAminoMsg(object: MsgUnjailAminoMsg): MsgUnjail { - return MsgUnjail.fromAmino(object.value); - }, - toAminoMsg(message: MsgUnjail): MsgUnjailAminoMsg { - return { - type: "cosmos-sdk/MsgUnjail", - value: MsgUnjail.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUnjailProtoMsg): MsgUnjail { - return MsgUnjail.decode(message.value); - }, - toProto(message: MsgUnjail): Uint8Array { - return MsgUnjail.encode(message).finish(); - }, - toProtoMsg(message: MsgUnjail): MsgUnjailProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.encode(message).finish() - }; - } -}; -function createBaseMsgUnjailResponse(): MsgUnjailResponse { - return {}; -} -export const MsgUnjailResponse = { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", - encode(_: MsgUnjailResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjailResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUnjailResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUnjailResponse { - return {}; - }, - toJSON(_: MsgUnjailResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUnjailResponse { - const message = createBaseMsgUnjailResponse(); - return message; - }, - fromAmino(_: MsgUnjailResponseAmino): MsgUnjailResponse { - const message = createBaseMsgUnjailResponse(); - return message; - }, - toAmino(_: MsgUnjailResponse): MsgUnjailResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUnjailResponseAminoMsg): MsgUnjailResponse { - return MsgUnjailResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUnjailResponse): MsgUnjailResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUnjailResponse", - value: MsgUnjailResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUnjailResponseProtoMsg): MsgUnjailResponse { - return MsgUnjailResponse.decode(message.value); - }, - toProto(message: MsgUnjailResponse): Uint8Array { - return MsgUnjailResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUnjailResponse): MsgUnjailResponseProtoMsg { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", - value: MsgUnjailResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/authz.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/authz.ts deleted file mode 100644 index 558d0df5..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/authz.ts +++ /dev/null @@ -1,346 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export enum AuthorizationType { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AUTHORIZATION_TYPE_UNSPECIFIED = 0, - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AUTHORIZATION_TYPE_DELEGATE = 1, - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AUTHORIZATION_TYPE_UNDELEGATE = 2, - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AUTHORIZATION_TYPE_REDELEGATE = 3, - UNRECOGNIZED = -1, -} -export const AuthorizationTypeSDKType = AuthorizationType; -export const AuthorizationTypeAmino = AuthorizationType; -export function authorizationTypeFromJSON(object: any): AuthorizationType { - switch (object) { - case 0: - case "AUTHORIZATION_TYPE_UNSPECIFIED": - return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - case "AUTHORIZATION_TYPE_DELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; - case 2: - case "AUTHORIZATION_TYPE_UNDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; - case 3: - case "AUTHORIZATION_TYPE_REDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; - case -1: - case "UNRECOGNIZED": - default: - return AuthorizationType.UNRECOGNIZED; - } -} -export function authorizationTypeToJSON(object: AuthorizationType): string { - switch (object) { - case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: - return "AUTHORIZATION_TYPE_UNSPECIFIED"; - case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: - return "AUTHORIZATION_TYPE_DELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: - return "AUTHORIZATION_TYPE_UNDELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: - return "AUTHORIZATION_TYPE_REDELEGATE"; - case AuthorizationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorization { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - maxTokens?: Coin; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allowList?: StakeAuthorization_Validators; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - denyList?: StakeAuthorization_Validators; - /** authorization_type defines one of AuthorizationType. */ - authorizationType: AuthorizationType; -} -export interface StakeAuthorizationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; - value: Uint8Array; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationAmino { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - max_tokens?: CoinAmino; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allow_list?: StakeAuthorization_ValidatorsAmino; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - deny_list?: StakeAuthorization_ValidatorsAmino; - /** authorization_type defines one of AuthorizationType. */ - authorization_type?: AuthorizationType; -} -export interface StakeAuthorizationAminoMsg { - type: "cosmos-sdk/StakeAuthorization"; - value: StakeAuthorizationAmino; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationSDKType { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - max_tokens?: CoinSDKType; - allow_list?: StakeAuthorization_ValidatorsSDKType; - deny_list?: StakeAuthorization_ValidatorsSDKType; - authorization_type: AuthorizationType; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_Validators { - address: string[]; -} -export interface StakeAuthorization_ValidatorsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validators"; - value: Uint8Array; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsAmino { - address?: string[]; -} -export interface StakeAuthorization_ValidatorsAminoMsg { - type: "cosmos-sdk/Validators"; - value: StakeAuthorization_ValidatorsAmino; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsSDKType { - address: string[]; -} -function createBaseStakeAuthorization(): StakeAuthorization { - return { - $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - maxTokens: undefined, - allowList: undefined, - denyList: undefined, - authorizationType: 0 - }; -} -export const StakeAuthorization = { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - encode(message: StakeAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.maxTokens !== undefined) { - Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); - } - if (message.allowList !== undefined) { - StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); - } - if (message.denyList !== undefined) { - StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); - } - if (message.authorizationType !== 0) { - writer.uint32(32).int32(message.authorizationType); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTokens = Coin.decode(reader, reader.uint32()); - break; - case 2: - message.allowList = StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 3: - message.denyList = StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 4: - message.authorizationType = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): StakeAuthorization { - return { - maxTokens: isSet(object.maxTokens) ? Coin.fromJSON(object.maxTokens) : undefined, - allowList: isSet(object.allowList) ? StakeAuthorization_Validators.fromJSON(object.allowList) : undefined, - denyList: isSet(object.denyList) ? StakeAuthorization_Validators.fromJSON(object.denyList) : undefined, - authorizationType: isSet(object.authorizationType) ? authorizationTypeFromJSON(object.authorizationType) : -1 - }; - }, - toJSON(message: StakeAuthorization): unknown { - const obj: any = {}; - message.maxTokens !== undefined && (obj.maxTokens = message.maxTokens ? Coin.toJSON(message.maxTokens) : undefined); - message.allowList !== undefined && (obj.allowList = message.allowList ? StakeAuthorization_Validators.toJSON(message.allowList) : undefined); - message.denyList !== undefined && (obj.denyList = message.denyList ? StakeAuthorization_Validators.toJSON(message.denyList) : undefined); - message.authorizationType !== undefined && (obj.authorizationType = authorizationTypeToJSON(message.authorizationType)); - return obj; - }, - fromPartial(object: Partial): StakeAuthorization { - const message = createBaseStakeAuthorization(); - message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? Coin.fromPartial(object.maxTokens) : undefined; - message.allowList = object.allowList !== undefined && object.allowList !== null ? StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; - message.denyList = object.denyList !== undefined && object.denyList !== null ? StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; - message.authorizationType = object.authorizationType ?? 0; - return message; - }, - fromAmino(object: StakeAuthorizationAmino): StakeAuthorization { - const message = createBaseStakeAuthorization(); - if (object.max_tokens !== undefined && object.max_tokens !== null) { - message.maxTokens = Coin.fromAmino(object.max_tokens); - } - if (object.allow_list !== undefined && object.allow_list !== null) { - message.allowList = StakeAuthorization_Validators.fromAmino(object.allow_list); - } - if (object.deny_list !== undefined && object.deny_list !== null) { - message.denyList = StakeAuthorization_Validators.fromAmino(object.deny_list); - } - if (object.authorization_type !== undefined && object.authorization_type !== null) { - message.authorizationType = object.authorization_type; - } - return message; - }, - toAmino(message: StakeAuthorization): StakeAuthorizationAmino { - const obj: any = {}; - obj.max_tokens = message.maxTokens ? Coin.toAmino(message.maxTokens) : undefined; - obj.allow_list = message.allowList ? StakeAuthorization_Validators.toAmino(message.allowList) : undefined; - obj.deny_list = message.denyList ? StakeAuthorization_Validators.toAmino(message.denyList) : undefined; - obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; - return obj; - }, - fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization { - return StakeAuthorization.fromAmino(object.value); - }, - toAminoMsg(message: StakeAuthorization): StakeAuthorizationAminoMsg { - return { - type: "cosmos-sdk/StakeAuthorization", - value: StakeAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message: StakeAuthorizationProtoMsg): StakeAuthorization { - return StakeAuthorization.decode(message.value); - }, - toProto(message: StakeAuthorization): Uint8Array { - return StakeAuthorization.encode(message).finish(); - }, - toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: StakeAuthorization.encode(message).finish() - }; - } -}; -function createBaseStakeAuthorization_Validators(): StakeAuthorization_Validators { - return { - address: [] - }; -} -export const StakeAuthorization_Validators = { - typeUrl: "/cosmos.staking.v1beta1.Validators", - encode(message: StakeAuthorization_Validators, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.address) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization_Validators(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): StakeAuthorization_Validators { - return { - address: Array.isArray(object?.address) ? object.address.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: StakeAuthorization_Validators): unknown { - const obj: any = {}; - if (message.address) { - obj.address = message.address.map(e => e); - } else { - obj.address = []; - } - return obj; - }, - fromPartial(object: Partial): StakeAuthorization_Validators { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - fromAmino(object: StakeAuthorization_ValidatorsAmino): StakeAuthorization_Validators { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - toAmino(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAmino { - const obj: any = {}; - if (message.address) { - obj.address = message.address.map(e => e); - } else { - obj.address = message.address; - } - return obj; - }, - fromAminoMsg(object: StakeAuthorization_ValidatorsAminoMsg): StakeAuthorization_Validators { - return StakeAuthorization_Validators.fromAmino(object.value); - }, - toAminoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAminoMsg { - return { - type: "cosmos-sdk/Validators", - value: StakeAuthorization_Validators.toAmino(message) - }; - }, - fromProtoMsg(message: StakeAuthorization_ValidatorsProtoMsg): StakeAuthorization_Validators { - return StakeAuthorization_Validators.decode(message.value); - }, - toProto(message: StakeAuthorization_Validators): Uint8Array { - return StakeAuthorization_Validators.encode(message).finish(); - }, - toProtoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Validators", - value: StakeAuthorization_Validators.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/genesis.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/genesis.ts deleted file mode 100644 index 6f70bb3f..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/genesis.ts +++ /dev/null @@ -1,397 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - lastTotalPower: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - lastValidatorPowers: LastValidatorPower[]; - /** delegations defines the validator set at genesis. */ - validators: Validator[]; - /** delegations defines the delegations active at genesis. */ - delegations: Delegation[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbondingDelegations: UnbondingDelegation[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: Redelegation[]; - exported: boolean; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - last_total_power?: string; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - last_validator_powers?: LastValidatorPowerAmino[]; - /** delegations defines the validator set at genesis. */ - validators?: ValidatorAmino[]; - /** delegations defines the delegations active at genesis. */ - delegations?: DelegationAmino[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations?: UnbondingDelegationAmino[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations?: RedelegationAmino[]; - exported?: boolean; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - last_total_power: Uint8Array; - last_validator_powers: LastValidatorPowerSDKType[]; - validators: ValidatorSDKType[]; - delegations: DelegationSDKType[]; - unbonding_delegations: UnbondingDelegationSDKType[]; - redelegations: RedelegationSDKType[]; - exported: boolean; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPower { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: bigint; -} -export interface LastValidatorPowerProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; - value: Uint8Array; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerAmino { - /** address is the address of the validator. */ - address?: string; - /** power defines the power of the validator. */ - power?: string; -} -export interface LastValidatorPowerAminoMsg { - type: "cosmos-sdk/LastValidatorPower"; - value: LastValidatorPowerAmino; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerSDKType { - address: string; - power: bigint; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - lastTotalPower: new Uint8Array(), - lastValidatorPowers: [], - validators: [], - delegations: [], - unbondingDelegations: [], - redelegations: [], - exported: false - }; -} -export const GenesisState = { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.lastTotalPower.length !== 0) { - writer.uint32(18).bytes(message.lastTotalPower); - } - for (const v of message.lastValidatorPowers) { - LastValidatorPower.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.delegations) { - Delegation.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.unbondingDelegations) { - UnbondingDelegation.encode(v!, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.redelegations) { - Redelegation.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.exported === true) { - writer.uint32(64).bool(message.exported); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.lastTotalPower = reader.bytes(); - break; - case 3: - message.lastValidatorPowers.push(LastValidatorPower.decode(reader, reader.uint32())); - break; - case 4: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 5: - message.delegations.push(Delegation.decode(reader, reader.uint32())); - break; - case 6: - message.unbondingDelegations.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 7: - message.redelegations.push(Redelegation.decode(reader, reader.uint32())); - break; - case 8: - message.exported = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - lastTotalPower: isSet(object.lastTotalPower) ? bytesFromBase64(object.lastTotalPower) : new Uint8Array(), - lastValidatorPowers: Array.isArray(object?.lastValidatorPowers) ? object.lastValidatorPowers.map((e: any) => LastValidatorPower.fromJSON(e)) : [], - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - delegations: Array.isArray(object?.delegations) ? object.delegations.map((e: any) => Delegation.fromJSON(e)) : [], - unbondingDelegations: Array.isArray(object?.unbondingDelegations) ? object.unbondingDelegations.map((e: any) => UnbondingDelegation.fromJSON(e)) : [], - redelegations: Array.isArray(object?.redelegations) ? object.redelegations.map((e: any) => Redelegation.fromJSON(e)) : [], - exported: isSet(object.exported) ? Boolean(object.exported) : false - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - message.lastTotalPower !== undefined && (obj.lastTotalPower = base64FromBytes(message.lastTotalPower !== undefined ? message.lastTotalPower : new Uint8Array())); - if (message.lastValidatorPowers) { - obj.lastValidatorPowers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toJSON(e) : undefined); - } else { - obj.lastValidatorPowers = []; - } - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - if (message.delegations) { - obj.delegations = message.delegations.map(e => e ? Delegation.toJSON(e) : undefined); - } else { - obj.delegations = []; - } - if (message.unbondingDelegations) { - obj.unbondingDelegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toJSON(e) : undefined); - } else { - obj.unbondingDelegations = []; - } - if (message.redelegations) { - obj.redelegations = message.redelegations.map(e => e ? Redelegation.toJSON(e) : undefined); - } else { - obj.redelegations = []; - } - message.exported !== undefined && (obj.exported = message.exported); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); - message.lastValidatorPowers = object.lastValidatorPowers?.map(e => LastValidatorPower.fromPartial(e)) || []; - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.delegations = object.delegations?.map(e => Delegation.fromPartial(e)) || []; - message.unbondingDelegations = object.unbondingDelegations?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.redelegations = object.redelegations?.map(e => Redelegation.fromPartial(e)) || []; - message.exported = object.exported ?? false; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.last_total_power !== undefined && object.last_total_power !== null) { - message.lastTotalPower = bytesFromBase64(object.last_total_power); - } - message.lastValidatorPowers = object.last_validator_powers?.map(e => LastValidatorPower.fromAmino(e)) || []; - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - message.delegations = object.delegations?.map(e => Delegation.fromAmino(e)) || []; - message.unbondingDelegations = object.unbonding_delegations?.map(e => UnbondingDelegation.fromAmino(e)) || []; - message.redelegations = object.redelegations?.map(e => Redelegation.fromAmino(e)) || []; - if (object.exported !== undefined && object.exported !== null) { - message.exported = object.exported; - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.last_total_power = message.lastTotalPower ? base64FromBytes(message.lastTotalPower) : undefined; - if (message.lastValidatorPowers) { - obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toAmino(e) : undefined); - } else { - obj.last_validator_powers = message.lastValidatorPowers; - } - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - if (message.delegations) { - obj.delegations = message.delegations.map(e => e ? Delegation.toAmino(e) : undefined); - } else { - obj.delegations = message.delegations; - } - if (message.unbondingDelegations) { - obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } else { - obj.unbonding_delegations = message.unbondingDelegations; - } - if (message.redelegations) { - obj.redelegations = message.redelegations.map(e => e ? Redelegation.toAmino(e) : undefined); - } else { - obj.redelegations = message.redelegations; - } - obj.exported = message.exported === false ? undefined : message.exported; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseLastValidatorPower(): LastValidatorPower { - return { - address: "", - power: BigInt(0) - }; -} -export const LastValidatorPower = { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - encode(message: LastValidatorPower, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLastValidatorPower(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): LastValidatorPower { - return { - address: isSet(object.address) ? String(object.address) : "", - power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0) - }; - }, - toJSON(message: LastValidatorPower): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.power !== undefined && (obj.power = (message.power || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): LastValidatorPower { - const message = createBaseLastValidatorPower(); - message.address = object.address ?? ""; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object: LastValidatorPowerAmino): LastValidatorPower { - const message = createBaseLastValidatorPower(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message: LastValidatorPower): LastValidatorPowerAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower { - return LastValidatorPower.fromAmino(object.value); - }, - toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg { - return { - type: "cosmos-sdk/LastValidatorPower", - value: LastValidatorPower.toAmino(message) - }; - }, - fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower { - return LastValidatorPower.decode(message.value); - }, - toProto(message: LastValidatorPower): Uint8Array { - return LastValidatorPower.encode(message).finish(); - }, - toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - value: LastValidatorPower.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/query.lcd.ts deleted file mode 100644 index 4ba0b022..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - /* Validators queries all validators that match the given status. */ - async validators(params: QueryValidatorsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.status !== "undefined") { - options.params.status = params.status; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators`; - return await this.req.get(endpoint, options); - } - /* Validator queries validator info for given validator address. */ - async validator(params: QueryValidatorRequest): Promise { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* ValidatorDelegations queries delegate info for given validator. */ - async validatorDelegations(params: QueryValidatorDelegationsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; - return await this.req.get(endpoint, options); - } - /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - async validatorUnbondingDelegations(params: QueryValidatorUnbondingDelegationsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Delegation queries delegate info for given validator delegator pair. */ - async delegation(params: QueryDelegationRequest): Promise { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint); - } - /* UnbondingDelegation queries unbonding info for given validator delegator - pair. */ - async unbondingDelegation(params: QueryUnbondingDelegationRequest): Promise { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; - return await this.req.get(endpoint); - } - /* DelegatorDelegations queries all delegations of a given delegator address. */ - async delegatorDelegations(params: QueryDelegatorDelegationsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint, options); - } - /* DelegatorUnbondingDelegations queries all unbonding delegations of a given - delegator address. */ - async delegatorUnbondingDelegations(params: QueryDelegatorUnbondingDelegationsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Redelegations queries redelegations of given address. */ - async redelegations(params: QueryRedelegationsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.srcValidatorAddr !== "undefined") { - options.params.src_validator_addr = params.srcValidatorAddr; - } - if (typeof params?.dstValidatorAddr !== "undefined") { - options.params.dst_validator_addr = params.dstValidatorAddr; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidators queries all validators info for given delegator - address. */ - async delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidator queries validator info for given delegator validator - pair. */ - async delegatorValidator(params: QueryDelegatorValidatorRequest): Promise { - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* HistoricalInfo queries the historical info for given height. */ - async historicalInfo(params: QueryHistoricalInfoRequest): Promise { - const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; - return await this.req.get(endpoint); - } - /* Pool queries the pool info. */ - async pool(_params: QueryPoolRequest = {}): Promise { - const endpoint = `cosmos/staking/v1beta1/pool`; - return await this.req.get(endpoint); - } - /* Parameters queries the staking parameters. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/staking/v1beta1/params`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 1a204ce8..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Validators queries all validators that match the given status. */ - validators(request: QueryValidatorsRequest): Promise; - /** Validator queries validator info for given validator address. */ - validator(request: QueryValidatorRequest): Promise; - /** ValidatorDelegations queries delegate info for given validator. */ - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - /** Delegation queries delegate info for given validator delegator pair. */ - delegation(request: QueryDelegationRequest): Promise; - /** - * UnbondingDelegation queries unbonding info for given validator delegator - * pair. - */ - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - /** DelegatorDelegations queries all delegations of a given delegator address. */ - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - /** - * DelegatorUnbondingDelegations queries all unbonding delegations of a given - * delegator address. - */ - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - /** Redelegations queries redelegations of given address. */ - redelegations(request: QueryRedelegationsRequest): Promise; - /** - * DelegatorValidators queries all validators info for given delegator - * address. - */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** - * DelegatorValidator queries validator info for given delegator validator - * pair. - */ - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - /** HistoricalInfo queries the historical info for given height. */ - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - /** Pool queries the pool info. */ - pool(request?: QueryPoolRequest): Promise; - /** Parameters queries the staking parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - validators(request: QueryValidatorsRequest): Promise { - const data = QueryValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); - return promise.then(data => QueryValidatorsResponse.decode(new BinaryReader(data))); - } - validator(request: QueryValidatorRequest): Promise { - const data = QueryValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); - return promise.then(data => QueryValidatorResponse.decode(new BinaryReader(data))); - } - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { - const data = QueryValidatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); - return promise.then(data => QueryValidatorDelegationsResponse.decode(new BinaryReader(data))); - } - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { - const data = QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); - return promise.then(data => QueryValidatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); - } - delegation(request: QueryDelegationRequest): Promise { - const data = QueryDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); - return promise.then(data => QueryDelegationResponse.decode(new BinaryReader(data))); - } - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { - const data = QueryUnbondingDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); - return promise.then(data => QueryUnbondingDelegationResponse.decode(new BinaryReader(data))); - } - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { - const data = QueryDelegatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); - return promise.then(data => QueryDelegatorDelegationsResponse.decode(new BinaryReader(data))); - } - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { - const data = QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); - return promise.then(data => QueryDelegatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); - } - redelegations(request: QueryRedelegationsRequest): Promise { - const data = QueryRedelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); - return promise.then(data => QueryRedelegationsResponse.decode(new BinaryReader(data))); - } - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { - const data = QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); - } - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { - const data = QueryDelegatorValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); - return promise.then(data => QueryDelegatorValidatorResponse.decode(new BinaryReader(data))); - } - historicalInfo(request: QueryHistoricalInfoRequest): Promise { - const data = QueryHistoricalInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); - return promise.then(data => QueryHistoricalInfoResponse.decode(new BinaryReader(data))); - } - pool(request: QueryPoolRequest = {}): Promise { - const data = QueryPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); - return promise.then(data => QueryPoolResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - validators(request: QueryValidatorsRequest): Promise { - return queryService.validators(request); - }, - validator(request: QueryValidatorRequest): Promise { - return queryService.validator(request); - }, - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { - return queryService.validatorDelegations(request); - }, - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { - return queryService.validatorUnbondingDelegations(request); - }, - delegation(request: QueryDelegationRequest): Promise { - return queryService.delegation(request); - }, - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { - return queryService.unbondingDelegation(request); - }, - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { - return queryService.delegatorDelegations(request); - }, - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { - return queryService.delegatorUnbondingDelegations(request); - }, - redelegations(request: QueryRedelegationsRequest): Promise { - return queryService.redelegations(request); - }, - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { - return queryService.delegatorValidators(request); - }, - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { - return queryService.delegatorValidator(request); - }, - historicalInfo(request: QueryHistoricalInfoRequest): Promise { - return queryService.historicalInfo(request); - }, - pool(request?: QueryPoolRequest): Promise { - return queryService.pool(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/query.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/query.ts deleted file mode 100644 index e8bc5cde..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/query.ts +++ /dev/null @@ -1,3341 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequest { - /** status enables to query for validators matching a given status. */ - status: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; - value: Uint8Array; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestAmino { - /** status enables to query for validators matching a given status. */ - status?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorsRequest"; - value: QueryValidatorsRequestAmino; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestSDKType { - status: string; - pagination?: PageRequestSDKType; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponse { - /** validators contains all the queried validators. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; - value: Uint8Array; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseAmino { - /** validators contains all the queried validators. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorsResponse"; - value: QueryValidatorsResponseAmino; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; - value: Uint8Array; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorRequest"; - value: QueryValidatorRequestAmino; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestSDKType { - validator_addr: string; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; - value: Uint8Array; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorResponse"; - value: QueryValidatorResponseAmino; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsRequest"; - value: QueryValidatorDelegationsRequestAmino; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponse { - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseAmino { - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsResponse"; - value: QueryValidatorDelegationsResponseAmino; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest"; - value: QueryValidatorUnbondingDelegationsRequestAmino; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse"; - value: QueryValidatorUnbondingDelegationsResponseAmino; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; - value: Uint8Array; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRequest"; - value: QueryDelegationRequestAmino; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponse { - /** delegation_responses defines the delegation info of a delegation. */ - delegationResponse?: DelegationResponse; -} -export interface QueryDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; - value: Uint8Array; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseAmino { - /** delegation_responses defines the delegation info of a delegation. */ - delegation_response?: DelegationResponseAmino; -} -export interface QueryDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationResponse"; - value: QueryDelegationResponseAmino; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseSDKType { - delegation_response?: DelegationResponseSDKType; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryUnbondingDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryUnbondingDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationRequest"; - value: QueryUnbondingDelegationRequestAmino; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponse { - /** unbond defines the unbonding information of a delegation. */ - unbond: UnbondingDelegation; -} -export interface QueryUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseAmino { - /** unbond defines the unbonding information of a delegation. */ - unbond?: UnbondingDelegationAmino; -} -export interface QueryUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationResponse"; - value: QueryUnbondingDelegationResponseAmino; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseSDKType { - unbond: UnbondingDelegationSDKType; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest"; - value: QueryDelegatorDelegationsRequestAmino; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponse { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseAmino { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse"; - value: QueryDelegatorDelegationsResponseAmino; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest"; - value: QueryDelegatorUnbondingDelegationsRequestAmino; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse"; - value: QueryDelegatorUnbondingDelegationsResponseAmino; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** src_validator_addr defines the validator address to redelegate from. */ - srcValidatorAddr: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dstValidatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryRedelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; - value: Uint8Array; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** src_validator_addr defines the validator address to redelegate from. */ - src_validator_addr?: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dst_validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryRedelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryRedelegationsRequest"; - value: QueryRedelegationsRequestAmino; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestSDKType { - delegator_addr: string; - src_validator_addr: string; - dst_validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponse { - redelegationResponses: RedelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryRedelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; - value: Uint8Array; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseAmino { - redelegation_responses?: RedelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryRedelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryRedelegationsResponse"; - value: QueryRedelegationsResponseAmino; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseSDKType { - redelegation_responses: RedelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators' info of a delegator. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators' info of a delegator. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegatorValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegatorValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorRequest"; - value: QueryDelegatorValidatorRequestAmino; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryDelegatorValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryDelegatorValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorResponse"; - value: QueryDelegatorValidatorResponseAmino; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequest { - /** height defines at which height to query the historical info. */ - height: bigint; -} -export interface QueryHistoricalInfoRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestAmino { - /** height defines at which height to query the historical info. */ - height?: string; -} -export interface QueryHistoricalInfoRequestAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoRequest"; - value: QueryHistoricalInfoRequestAmino; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestSDKType { - height: bigint; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponse { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfo; -} -export interface QueryHistoricalInfoResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseAmino { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfoAmino; -} -export interface QueryHistoricalInfoResponseAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoResponse"; - value: QueryHistoricalInfoResponseAmino; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseSDKType { - hist?: HistoricalInfoSDKType; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequest {} -export interface QueryPoolRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; - value: Uint8Array; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestAmino {} -export interface QueryPoolRequestAminoMsg { - type: "cosmos-sdk/QueryPoolRequest"; - value: QueryPoolRequestAmino; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestSDKType {} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponse { - /** pool defines the pool info. */ - pool: Pool; -} -export interface QueryPoolResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; - value: Uint8Array; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseAmino { - /** pool defines the pool info. */ - pool?: PoolAmino; -} -export interface QueryPoolResponseAminoMsg { - type: "cosmos-sdk/QueryPoolResponse"; - value: QueryPoolResponseAmino; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseSDKType { - pool: PoolSDKType; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params holds all the parameters of this module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params holds all the parameters of this module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -function createBaseQueryValidatorsRequest(): QueryValidatorsRequest { - return { - status: "", - pagination: undefined - }; -} -export const QueryValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - encode(message: QueryValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorsRequest { - return { - status: isSet(object.status) ? String(object.status) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorsRequest): unknown { - const obj: any = {}; - message.status !== undefined && (obj.status = message.status); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorsRequest { - const message = createBaseQueryValidatorsRequest(); - message.status = object.status ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest { - const message = createBaseQueryValidatorsRequest(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino { - const obj: any = {}; - obj.status = message.status === "" ? undefined : message.status; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest { - return QueryValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorsRequest", - value: QueryValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest { - return QueryValidatorsRequest.decode(message.value); - }, - toProto(message: QueryValidatorsRequest): Uint8Array { - return QueryValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - value: QueryValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorsResponse(): QueryValidatorsResponse { - return { - validators: [], - pagination: undefined - }; -} -export const QueryValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - encode(message: QueryValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorsResponse { - return { - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorsResponse): unknown { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorsResponse { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse { - return QueryValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorsResponse", - value: QueryValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse { - return QueryValidatorsResponse.decode(message.value); - }, - toProto(message: QueryValidatorsResponse): Uint8Array { - return QueryValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - value: QueryValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorRequest(): QueryValidatorRequest { - return { - validatorAddr: "" - }; -} -export const QueryValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - encode(message: QueryValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorRequest { - return { - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "" - }; - }, - toJSON(message: QueryValidatorRequest): unknown { - const obj: any = {}; - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - return obj; - }, - fromPartial(object: Partial): QueryValidatorRequest { - const message = createBaseQueryValidatorRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest { - const message = createBaseQueryValidatorRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino { - const obj: any = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest { - return QueryValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorRequest", - value: QueryValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest { - return QueryValidatorRequest.decode(message.value); - }, - toProto(message: QueryValidatorRequest): Uint8Array { - return QueryValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - value: QueryValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorResponse(): QueryValidatorResponse { - return { - validator: Validator.fromPartial({}) - }; -} -export const QueryValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - encode(message: QueryValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorResponse { - return { - validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined - }; - }, - toJSON(message: QueryValidatorResponse): unknown { - const obj: any = {}; - message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorResponse { - const message = createBaseQueryValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse { - const message = createBaseQueryValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino { - const obj: any = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse { - return QueryValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorResponse", - value: QueryValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse { - return QueryValidatorResponse.decode(message.value); - }, - toProto(message: QueryValidatorResponse): Uint8Array { - return QueryValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - value: QueryValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsRequest(): QueryValidatorDelegationsRequest { - return { - validatorAddr: "", - pagination: undefined - }; -} -export const QueryValidatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - encode(message: QueryValidatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorDelegationsRequest { - return { - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorDelegationsRequest): unknown { - const obj: any = {}; - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorDelegationsRequest { - const message = createBaseQueryValidatorDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest { - const message = createBaseQueryValidatorDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino { - const obj: any = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest { - return QueryValidatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorDelegationsRequest", - value: QueryValidatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest { - return QueryValidatorDelegationsRequest.decode(message.value); - }, - toProto(message: QueryValidatorDelegationsRequest): Uint8Array { - return QueryValidatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - value: QueryValidatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsResponse(): QueryValidatorDelegationsResponse { - return { - delegationResponses: [], - pagination: undefined - }; -} -export const QueryValidatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - encode(message: QueryValidatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.delegationResponses) { - DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorDelegationsResponse { - return { - delegationResponses: Array.isArray(object?.delegationResponses) ? object.delegationResponses.map((e: any) => DelegationResponse.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorDelegationsResponse): unknown { - const obj: any = {}; - if (message.delegationResponses) { - obj.delegationResponses = message.delegationResponses.map(e => e ? DelegationResponse.toJSON(e) : undefined); - } else { - obj.delegationResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorDelegationsResponse { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino { - const obj: any = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); - } else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse { - return QueryValidatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorDelegationsResponse", - value: QueryValidatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse { - return QueryValidatorDelegationsResponse.decode(message.value); - }, - toProto(message: QueryValidatorDelegationsResponse): Uint8Array { - return QueryValidatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - value: QueryValidatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsRequest(): QueryValidatorUnbondingDelegationsRequest { - return { - validatorAddr: "", - pagination: undefined - }; -} -export const QueryValidatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - encode(message: QueryValidatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorUnbondingDelegationsRequest { - return { - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorUnbondingDelegationsRequest): unknown { - const obj: any = {}; - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino { - const obj: any = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest { - return QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", - value: QueryValidatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest { - return QueryValidatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array { - return QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - value: QueryValidatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsResponse(): QueryValidatorUnbondingDelegationsResponse { - return { - unbondingResponses: [], - pagination: undefined - }; -} -export const QueryValidatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - encode(message: QueryValidatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.unbondingResponses) { - UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryValidatorUnbondingDelegationsResponse { - return { - unbondingResponses: Array.isArray(object?.unbondingResponses) ? object.unbondingResponses.map((e: any) => UnbondingDelegation.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryValidatorUnbondingDelegationsResponse): unknown { - const obj: any = {}; - if (message.unbondingResponses) { - obj.unbondingResponses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toJSON(e) : undefined); - } else { - obj.unbondingResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino { - const obj: any = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse { - return QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", - value: QueryValidatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse { - return QueryValidatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array { - return QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - value: QueryValidatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRequest(): QueryDelegationRequest { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - encode(message: QueryDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "" - }; - }, - toJSON(message: QueryDelegationRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - return obj; - }, - fromPartial(object: Partial): QueryDelegationRequest { - const message = createBaseQueryDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest { - const message = createBaseQueryDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest { - return QueryDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationRequest", - value: QueryDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest { - return QueryDelegationRequest.decode(message.value); - }, - toProto(message: QueryDelegationRequest): Uint8Array { - return QueryDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - value: QueryDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationResponse(): QueryDelegationResponse { - return { - delegationResponse: undefined - }; -} -export const QueryDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - encode(message: QueryDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegationResponse !== undefined) { - DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponse = DelegationResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegationResponse { - return { - delegationResponse: isSet(object.delegationResponse) ? DelegationResponse.fromJSON(object.delegationResponse) : undefined - }; - }, - toJSON(message: QueryDelegationResponse): unknown { - const obj: any = {}; - message.delegationResponse !== undefined && (obj.delegationResponse = message.delegationResponse ? DelegationResponse.toJSON(message.delegationResponse) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegationResponse { - const message = createBaseQueryDelegationResponse(); - message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? DelegationResponse.fromPartial(object.delegationResponse) : undefined; - return message; - }, - fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse { - const message = createBaseQueryDelegationResponse(); - if (object.delegation_response !== undefined && object.delegation_response !== null) { - message.delegationResponse = DelegationResponse.fromAmino(object.delegation_response); - } - return message; - }, - toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino { - const obj: any = {}; - obj.delegation_response = message.delegationResponse ? DelegationResponse.toAmino(message.delegationResponse) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse { - return QueryDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegationResponse", - value: QueryDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse { - return QueryDelegationResponse.decode(message.value); - }, - toProto(message: QueryDelegationResponse): Uint8Array { - return QueryDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - value: QueryDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationRequest(): QueryUnbondingDelegationRequest { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryUnbondingDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - encode(message: QueryUnbondingDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUnbondingDelegationRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "" - }; - }, - toJSON(message: QueryUnbondingDelegationRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - return obj; - }, - fromPartial(object: Partial): QueryUnbondingDelegationRequest { - const message = createBaseQueryUnbondingDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest { - const message = createBaseQueryUnbondingDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest { - return QueryUnbondingDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg { - return { - type: "cosmos-sdk/QueryUnbondingDelegationRequest", - value: QueryUnbondingDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest { - return QueryUnbondingDelegationRequest.decode(message.value); - }, - toProto(message: QueryUnbondingDelegationRequest): Uint8Array { - return QueryUnbondingDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - value: QueryUnbondingDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationResponse(): QueryUnbondingDelegationResponse { - return { - unbond: UnbondingDelegation.fromPartial({}) - }; -} -export const QueryUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - encode(message: QueryUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.unbond !== undefined) { - UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbond = UnbondingDelegation.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUnbondingDelegationResponse { - return { - unbond: isSet(object.unbond) ? UnbondingDelegation.fromJSON(object.unbond) : undefined - }; - }, - toJSON(message: QueryUnbondingDelegationResponse): unknown { - const obj: any = {}; - message.unbond !== undefined && (obj.unbond = message.unbond ? UnbondingDelegation.toJSON(message.unbond) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryUnbondingDelegationResponse { - const message = createBaseQueryUnbondingDelegationResponse(); - message.unbond = object.unbond !== undefined && object.unbond !== null ? UnbondingDelegation.fromPartial(object.unbond) : undefined; - return message; - }, - fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse { - const message = createBaseQueryUnbondingDelegationResponse(); - if (object.unbond !== undefined && object.unbond !== null) { - message.unbond = UnbondingDelegation.fromAmino(object.unbond); - } - return message; - }, - toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino { - const obj: any = {}; - obj.unbond = message.unbond ? UnbondingDelegation.toAmino(message.unbond) : undefined; - return obj; - }, - fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse { - return QueryUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg { - return { - type: "cosmos-sdk/QueryUnbondingDelegationResponse", - value: QueryUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse { - return QueryUnbondingDelegationResponse.decode(message.value); - }, - toProto(message: QueryUnbondingDelegationResponse): Uint8Array { - return QueryUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - value: QueryUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsRequest(): QueryDelegatorDelegationsRequest { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - encode(message: QueryDelegatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorDelegationsRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorDelegationsRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorDelegationsRequest { - const message = createBaseQueryDelegatorDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest { - const message = createBaseQueryDelegatorDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest { - return QueryDelegatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest", - value: QueryDelegatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest { - return QueryDelegatorDelegationsRequest.decode(message.value); - }, - toProto(message: QueryDelegatorDelegationsRequest): Uint8Array { - return QueryDelegatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - value: QueryDelegatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsResponse(): QueryDelegatorDelegationsResponse { - return { - delegationResponses: [], - pagination: undefined - }; -} -export const QueryDelegatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - encode(message: QueryDelegatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.delegationResponses) { - DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorDelegationsResponse { - return { - delegationResponses: Array.isArray(object?.delegationResponses) ? object.delegationResponses.map((e: any) => DelegationResponse.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorDelegationsResponse): unknown { - const obj: any = {}; - if (message.delegationResponses) { - obj.delegationResponses = message.delegationResponses.map(e => e ? DelegationResponse.toJSON(e) : undefined); - } else { - obj.delegationResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorDelegationsResponse { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino { - const obj: any = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); - } else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse { - return QueryDelegatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse", - value: QueryDelegatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse { - return QueryDelegatorDelegationsResponse.decode(message.value); - }, - toProto(message: QueryDelegatorDelegationsResponse): Uint8Array { - return QueryDelegatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - value: QueryDelegatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsRequest(): QueryDelegatorUnbondingDelegationsRequest { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - encode(message: QueryDelegatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorUnbondingDelegationsRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorUnbondingDelegationsRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest { - return QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", - value: QueryDelegatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest { - return QueryDelegatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array { - return QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - value: QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsResponse(): QueryDelegatorUnbondingDelegationsResponse { - return { - unbondingResponses: [], - pagination: undefined - }; -} -export const QueryDelegatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - encode(message: QueryDelegatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.unbondingResponses) { - UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorUnbondingDelegationsResponse { - return { - unbondingResponses: Array.isArray(object?.unbondingResponses) ? object.unbondingResponses.map((e: any) => UnbondingDelegation.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorUnbondingDelegationsResponse): unknown { - const obj: any = {}; - if (message.unbondingResponses) { - obj.unbondingResponses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toJSON(e) : undefined); - } else { - obj.unbondingResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino { - const obj: any = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse { - return QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", - value: QueryDelegatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse { - return QueryDelegatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array { - return QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - value: QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsRequest(): QueryRedelegationsRequest { - return { - delegatorAddr: "", - srcValidatorAddr: "", - dstValidatorAddr: "", - pagination: undefined - }; -} -export const QueryRedelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - encode(message: QueryRedelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.srcValidatorAddr !== "") { - writer.uint32(18).string(message.srcValidatorAddr); - } - if (message.dstValidatorAddr !== "") { - writer.uint32(26).string(message.dstValidatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.srcValidatorAddr = reader.string(); - break; - case 3: - message.dstValidatorAddr = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryRedelegationsRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - srcValidatorAddr: isSet(object.srcValidatorAddr) ? String(object.srcValidatorAddr) : "", - dstValidatorAddr: isSet(object.dstValidatorAddr) ? String(object.dstValidatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryRedelegationsRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.srcValidatorAddr !== undefined && (obj.srcValidatorAddr = message.srcValidatorAddr); - message.dstValidatorAddr !== undefined && (obj.dstValidatorAddr = message.dstValidatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryRedelegationsRequest { - const message = createBaseQueryRedelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.srcValidatorAddr = object.srcValidatorAddr ?? ""; - message.dstValidatorAddr = object.dstValidatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest { - const message = createBaseQueryRedelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { - message.srcValidatorAddr = object.src_validator_addr; - } - if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { - message.dstValidatorAddr = object.dst_validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; - obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest { - return QueryRedelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryRedelegationsRequest", - value: QueryRedelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest { - return QueryRedelegationsRequest.decode(message.value); - }, - toProto(message: QueryRedelegationsRequest): Uint8Array { - return QueryRedelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - value: QueryRedelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsResponse(): QueryRedelegationsResponse { - return { - redelegationResponses: [], - pagination: undefined - }; -} -export const QueryRedelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - encode(message: QueryRedelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.redelegationResponses) { - RedelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryRedelegationsResponse { - return { - redelegationResponses: Array.isArray(object?.redelegationResponses) ? object.redelegationResponses.map((e: any) => RedelegationResponse.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryRedelegationsResponse): unknown { - const obj: any = {}; - if (message.redelegationResponses) { - obj.redelegationResponses = message.redelegationResponses.map(e => e ? RedelegationResponse.toJSON(e) : undefined); - } else { - obj.redelegationResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryRedelegationsResponse { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegationResponses?.map(e => RedelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegation_responses?.map(e => RedelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino { - const obj: any = {}; - if (message.redelegationResponses) { - obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined); - } else { - obj.redelegation_responses = message.redelegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse { - return QueryRedelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryRedelegationsResponse", - value: QueryRedelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse { - return QueryRedelegationsResponse.decode(message.value); - }, - toProto(message: QueryRedelegationsResponse): Uint8Array { - return QueryRedelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - value: QueryRedelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorsRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorValidatorsRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorsRequest { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest { - return QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest { - return QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array { - return QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse { - return { - validators: [], - pagination: undefined - }; -} -export const QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorsResponse { - return { - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDelegatorValidatorsResponse): unknown { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorsResponse { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse { - return QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse { - return QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array { - return QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorRequest(): QueryDelegatorValidatorRequest { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryDelegatorValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - encode(message: QueryDelegatorValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorRequest { - return { - delegatorAddr: isSet(object.delegatorAddr) ? String(object.delegatorAddr) : "", - validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : "" - }; - }, - toJSON(message: QueryDelegatorValidatorRequest): unknown { - const obj: any = {}; - message.delegatorAddr !== undefined && (obj.delegatorAddr = message.delegatorAddr); - message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorRequest { - const message = createBaseQueryDelegatorValidatorRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest { - const message = createBaseQueryDelegatorValidatorRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino { - const obj: any = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest { - return QueryDelegatorValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorRequest", - value: QueryDelegatorValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest { - return QueryDelegatorValidatorRequest.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorRequest): Uint8Array { - return QueryDelegatorValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - value: QueryDelegatorValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorResponse(): QueryDelegatorValidatorResponse { - return { - validator: Validator.fromPartial({}) - }; -} -export const QueryDelegatorValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - encode(message: QueryDelegatorValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDelegatorValidatorResponse { - return { - validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined - }; - }, - toJSON(message: QueryDelegatorValidatorResponse): unknown { - const obj: any = {}; - message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDelegatorValidatorResponse { - const message = createBaseQueryDelegatorValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse { - const message = createBaseQueryDelegatorValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino { - const obj: any = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse { - return QueryDelegatorValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDelegatorValidatorResponse", - value: QueryDelegatorValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse { - return QueryDelegatorValidatorResponse.decode(message.value); - }, - toProto(message: QueryDelegatorValidatorResponse): Uint8Array { - return QueryDelegatorValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - value: QueryDelegatorValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoRequest(): QueryHistoricalInfoRequest { - return { - height: BigInt(0) - }; -} -export const QueryHistoricalInfoRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - encode(message: QueryHistoricalInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryHistoricalInfoRequest { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryHistoricalInfoRequest): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryHistoricalInfoRequest { - const message = createBaseQueryHistoricalInfoRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest { - const message = createBaseQueryHistoricalInfoRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest { - return QueryHistoricalInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg { - return { - type: "cosmos-sdk/QueryHistoricalInfoRequest", - value: QueryHistoricalInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest { - return QueryHistoricalInfoRequest.decode(message.value); - }, - toProto(message: QueryHistoricalInfoRequest): Uint8Array { - return QueryHistoricalInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - value: QueryHistoricalInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoResponse(): QueryHistoricalInfoResponse { - return { - hist: undefined - }; -} -export const QueryHistoricalInfoResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - encode(message: QueryHistoricalInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hist !== undefined) { - HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hist = HistoricalInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryHistoricalInfoResponse { - return { - hist: isSet(object.hist) ? HistoricalInfo.fromJSON(object.hist) : undefined - }; - }, - toJSON(message: QueryHistoricalInfoResponse): unknown { - const obj: any = {}; - message.hist !== undefined && (obj.hist = message.hist ? HistoricalInfo.toJSON(message.hist) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryHistoricalInfoResponse { - const message = createBaseQueryHistoricalInfoResponse(); - message.hist = object.hist !== undefined && object.hist !== null ? HistoricalInfo.fromPartial(object.hist) : undefined; - return message; - }, - fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse { - const message = createBaseQueryHistoricalInfoResponse(); - if (object.hist !== undefined && object.hist !== null) { - message.hist = HistoricalInfo.fromAmino(object.hist); - } - return message; - }, - toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino { - const obj: any = {}; - obj.hist = message.hist ? HistoricalInfo.toAmino(message.hist) : undefined; - return obj; - }, - fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse { - return QueryHistoricalInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg { - return { - type: "cosmos-sdk/QueryHistoricalInfoResponse", - value: QueryHistoricalInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse { - return QueryHistoricalInfoResponse.decode(message.value); - }, - toProto(message: QueryHistoricalInfoResponse): Uint8Array { - return QueryHistoricalInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - value: QueryHistoricalInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryPoolRequest(): QueryPoolRequest { - return {}; -} -export const QueryPoolRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - encode(_: QueryPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryPoolRequest { - return {}; - }, - toJSON(_: QueryPoolRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryPoolRequest { - const message = createBaseQueryPoolRequest(); - return message; - }, - fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest { - const message = createBaseQueryPoolRequest(); - return message; - }, - toAmino(_: QueryPoolRequest): QueryPoolRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest { - return QueryPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg { - return { - type: "cosmos-sdk/QueryPoolRequest", - value: QueryPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest { - return QueryPoolRequest.decode(message.value); - }, - toProto(message: QueryPoolRequest): Uint8Array { - return QueryPoolRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - value: QueryPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryPoolResponse(): QueryPoolResponse { - return { - pool: Pool.fromPartial({}) - }; -} -export const QueryPoolResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - encode(message: QueryPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pool !== undefined) { - Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool = Pool.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryPoolResponse { - return { - pool: isSet(object.pool) ? Pool.fromJSON(object.pool) : undefined - }; - }, - toJSON(message: QueryPoolResponse): unknown { - const obj: any = {}; - message.pool !== undefined && (obj.pool = message.pool ? Pool.toJSON(message.pool) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryPoolResponse { - const message = createBaseQueryPoolResponse(); - message.pool = object.pool !== undefined && object.pool !== null ? Pool.fromPartial(object.pool) : undefined; - return message; - }, - fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse { - const message = createBaseQueryPoolResponse(); - if (object.pool !== undefined && object.pool !== null) { - message.pool = Pool.fromAmino(object.pool); - } - return message; - }, - toAmino(message: QueryPoolResponse): QueryPoolResponseAmino { - const obj: any = {}; - obj.pool = message.pool ? Pool.toAmino(message.pool) : undefined; - return obj; - }, - fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse { - return QueryPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg { - return { - type: "cosmos-sdk/QueryPoolResponse", - value: QueryPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse { - return QueryPoolResponse.decode(message.value); - }, - toProto(message: QueryPoolResponse): Uint8Array { - return QueryPoolResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - value: QueryPoolResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts deleted file mode 100644 index 24557558..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/staking.ts +++ /dev/null @@ -1,3077 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -import { Decimal } from "@cosmjs/math"; -import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; -import { Pubkey } from "@cosmjs/amino"; -/** BondStatus is the status of a validator. */ -export enum BondStatus { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BOND_STATUS_UNSPECIFIED = 0, - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BOND_STATUS_UNBONDED = 1, - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BOND_STATUS_UNBONDING = 2, - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BOND_STATUS_BONDED = 3, - UNRECOGNIZED = -1, -} -export const BondStatusSDKType = BondStatus; -export const BondStatusAmino = BondStatus; -export function bondStatusFromJSON(object: any): BondStatus { - switch (object) { - case 0: - case "BOND_STATUS_UNSPECIFIED": - return BondStatus.BOND_STATUS_UNSPECIFIED; - case 1: - case "BOND_STATUS_UNBONDED": - return BondStatus.BOND_STATUS_UNBONDED; - case 2: - case "BOND_STATUS_UNBONDING": - return BondStatus.BOND_STATUS_UNBONDING; - case 3: - case "BOND_STATUS_BONDED": - return BondStatus.BOND_STATUS_BONDED; - case -1: - case "UNRECOGNIZED": - default: - return BondStatus.UNRECOGNIZED; - } -} -export function bondStatusToJSON(object: BondStatus): string { - switch (object) { - case BondStatus.BOND_STATUS_UNSPECIFIED: - return "BOND_STATUS_UNSPECIFIED"; - case BondStatus.BOND_STATUS_UNBONDED: - return "BOND_STATUS_UNBONDED"; - case BondStatus.BOND_STATUS_UNBONDING: - return "BOND_STATUS_UNBONDING"; - case BondStatus.BOND_STATUS_BONDED: - return "BOND_STATUS_BONDED"; - case BondStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfo { - header: Header; - valset: Validator[]; -} -export interface HistoricalInfoProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; - value: Uint8Array; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoAmino { - header?: HeaderAmino; - valset?: ValidatorAmino[]; -} -export interface HistoricalInfoAminoMsg { - type: "cosmos-sdk/HistoricalInfo"; - value: HistoricalInfoAmino; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoSDKType { - header: HeaderSDKType; - valset: ValidatorSDKType[]; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - maxRate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - maxChangeRate: string; -} -export interface CommissionRatesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; - value: Uint8Array; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesAmino { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; -} -export interface CommissionRatesAminoMsg { - type: "cosmos-sdk/CommissionRates"; - value: CommissionRatesAmino; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesSDKType { - rate: string; - max_rate: string; - max_change_rate: string; -} -/** Commission defines commission parameters for a given validator. */ -export interface Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commissionRates: CommissionRates; - /** update_time is the last time the commission rate was changed. */ - updateTime: Timestamp; -} -export interface CommissionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Commission"; - value: Uint8Array; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionAmino { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: CommissionRatesAmino; - /** update_time is the last time the commission rate was changed. */ - update_time?: string; -} -export interface CommissionAminoMsg { - type: "cosmos-sdk/Commission"; - value: CommissionAmino; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionSDKType { - commission_rates: CommissionRatesSDKType; - update_time: TimestampSDKType; -} -/** Description defines a validator description. */ -export interface Description { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - securityContact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Description"; - value: Uint8Array; -} -/** Description defines a validator description. */ -export interface DescriptionAmino { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; -} -export interface DescriptionAminoMsg { - type: "cosmos-sdk/Description"; - value: DescriptionAmino; -} -/** Description defines a validator description. */ -export interface DescriptionSDKType { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operatorAddress: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey?: Any | undefined; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegatorShares: string; - /** description defines the description terms for the validator. */ - description: Description; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: bigint; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbondingTime: Timestamp; - /** commission defines the commission parameters. */ - commission: Commission; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - minSelfDelegation: string; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validator"; - value: Uint8Array; -} -export type ValidatorEncoded = Omit & { - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */consensusPubkey?: AnyProtoMsg | undefined; -}; -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorAmino { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensus_pubkey?: AnyAmino; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status?: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: DescriptionAmino; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height?: string; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: CommissionAmino; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - min_self_delegation?: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorSDKType { - operator_address: string; - consensus_pubkey?: AnySDKType | undefined; - jailed: boolean; - status: BondStatus; - tokens: string; - delegator_shares: string; - description: DescriptionSDKType; - unbonding_height: bigint; - unbonding_time: TimestampSDKType; - commission: CommissionSDKType; - min_self_delegation: string; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddresses { - addresses: string[]; -} -export interface ValAddressesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; - value: Uint8Array; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesAmino { - addresses?: string[]; -} -export interface ValAddressesAminoMsg { - type: "cosmos-sdk/ValAddresses"; - value: ValAddressesAmino; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesSDKType { - addresses: string[]; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPair { - delegatorAddress: string; - validatorAddress: string; -} -export interface DVPairProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPair"; - value: Uint8Array; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairAmino { - delegator_address?: string; - validator_address?: string; -} -export interface DVPairAminoMsg { - type: "cosmos-sdk/DVPair"; - value: DVPairAmino; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairSDKType { - delegator_address: string; - validator_address: string; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairs { - pairs: DVPair[]; -} -export interface DVPairsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPairs"; - value: Uint8Array; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsAmino { - pairs?: DVPairAmino[]; -} -export interface DVPairsAminoMsg { - type: "cosmos-sdk/DVPairs"; - value: DVPairsAmino; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsSDKType { - pairs: DVPairSDKType[]; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTriplet { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; -} -export interface DVVTripletProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; - value: Uint8Array; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; -} -export interface DVVTripletAminoMsg { - type: "cosmos-sdk/DVVTriplet"; - value: DVVTripletAmino; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTriplets { - triplets: DVVTriplet[]; -} -export interface DVVTripletsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; - value: Uint8Array; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsAmino { - triplets?: DVVTripletAmino[]; -} -export interface DVVTripletsAminoMsg { - type: "cosmos-sdk/DVVTriplets"; - value: DVVTripletsAmino; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsSDKType { - triplets: DVVTripletSDKType[]; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Delegation"; - value: Uint8Array; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; -} -export interface DelegationAminoMsg { - type: "cosmos-sdk/Delegation"; - value: DelegationAmino; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationSDKType { - delegator_address: string; - validator_address: string; - shares: string; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntry[]; -} -export interface UnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; - value: Uint8Array; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: UnbondingDelegationEntryAmino[]; -} -export interface UnbondingDelegationAminoMsg { - type: "cosmos-sdk/UnbondingDelegation"; - value: UnbondingDelegationAmino; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - entries: UnbondingDelegationEntrySDKType[]; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntry { - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; - /** completion_time is the unix time for unbonding completion. */ - completionTime: Timestamp; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initialBalance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; - value: Uint8Array; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntryAmino { - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; - /** completion_time is the unix time for unbonding completion. */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; -} -export interface UnbondingDelegationEntryAminoMsg { - type: "cosmos-sdk/UnbondingDelegationEntry"; - value: UnbondingDelegationEntryAmino; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntrySDKType { - creation_height: bigint; - completion_time: TimestampSDKType; - initial_balance: string; - balance: string; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntry { - /** creation_height defines the height which the redelegation took place. */ - creationHeight: bigint; - /** completion_time defines the unix time for redelegation completion. */ - completionTime: Timestamp; - /** initial_balance defines the initial balance when redelegation started. */ - initialBalance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - sharesDst: string; -} -export interface RedelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; - value: Uint8Array; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntryAmino { - /** creation_height defines the height which the redelegation took place. */ - creation_height?: string; - /** completion_time defines the unix time for redelegation completion. */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; -} -export interface RedelegationEntryAminoMsg { - type: "cosmos-sdk/RedelegationEntry"; - value: RedelegationEntryAmino; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntrySDKType { - creation_height: bigint; - completion_time: TimestampSDKType; - initial_balance: string; - shares_dst: string; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_src_address is the validator redelegation source operator address. */ - validatorSrcAddress: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validatorDstAddress: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntry[]; -} -export interface RedelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Redelegation"; - value: Uint8Array; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: RedelegationEntryAmino[]; -} -export interface RedelegationAminoMsg { - type: "cosmos-sdk/Redelegation"; - value: RedelegationAmino; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - entries: RedelegationEntrySDKType[]; -} -/** Params defines the parameters for the staking module. */ -export interface Params { - /** unbonding_time is the time duration of unbonding. */ - unbondingTime: Duration; - /** max_validators is the maximum number of validators. */ - maxValidators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - maxEntries: number; - /** historical_entries is the number of historical entries to persist. */ - historicalEntries: number; - /** bond_denom defines the bondable coin denomination. */ - bondDenom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - minCommissionRate: string; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsAmino { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: DurationAmino; - /** max_validators is the maximum number of validators. */ - max_validators?: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries?: number; - /** historical_entries is the number of historical entries to persist. */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsSDKType { - unbonding_time: DurationSDKType; - max_validators: number; - max_entries: number; - historical_entries: number; - bond_denom: string; - min_commission_rate: string; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponse { - delegation: Delegation; - balance: Coin; -} -export interface DelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; - value: Uint8Array; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseAmino { - delegation?: DelegationAmino; - balance?: CoinAmino; -} -export interface DelegationResponseAminoMsg { - type: "cosmos-sdk/DelegationResponse"; - value: DelegationResponseAmino; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseSDKType { - delegation: DelegationSDKType; - balance: CoinSDKType; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponse { - redelegationEntry: RedelegationEntry; - balance: string; -} -export interface RedelegationEntryResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; - value: Uint8Array; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseAmino { - redelegation_entry?: RedelegationEntryAmino; - balance?: string; -} -export interface RedelegationEntryResponseAminoMsg { - type: "cosmos-sdk/RedelegationEntryResponse"; - value: RedelegationEntryResponseAmino; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseSDKType { - redelegation_entry: RedelegationEntrySDKType; - balance: string; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponse { - redelegation: Redelegation; - entries: RedelegationEntryResponse[]; -} -export interface RedelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; - value: Uint8Array; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseAmino { - redelegation?: RedelegationAmino; - entries?: RedelegationEntryResponseAmino[]; -} -export interface RedelegationResponseAminoMsg { - type: "cosmos-sdk/RedelegationResponse"; - value: RedelegationResponseAmino; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseSDKType { - redelegation: RedelegationSDKType; - entries: RedelegationEntryResponseSDKType[]; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface Pool { - notBondedTokens: string; - bondedTokens: string; -} -export interface PoolProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Pool"; - value: Uint8Array; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolAmino { - not_bonded_tokens: string; - bonded_tokens: string; -} -export interface PoolAminoMsg { - type: "cosmos-sdk/Pool"; - value: PoolAmino; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolSDKType { - not_bonded_tokens: string; - bonded_tokens: string; -} -function createBaseHistoricalInfo(): HistoricalInfo { - return { - header: Header.fromPartial({}), - valset: [] - }; -} -export const HistoricalInfo = { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - encode(message: HistoricalInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.valset) { - Validator.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHistoricalInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.valset.push(Validator.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): HistoricalInfo { - return { - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - valset: Array.isArray(object?.valset) ? object.valset.map((e: any) => Validator.fromJSON(e)) : [] - }; - }, - toJSON(message: HistoricalInfo): unknown { - const obj: any = {}; - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - if (message.valset) { - obj.valset = message.valset.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.valset = []; - } - return obj; - }, - fromPartial(object: Partial): HistoricalInfo { - const message = createBaseHistoricalInfo(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.valset = object.valset?.map(e => Validator.fromPartial(e)) || []; - return message; - }, - fromAmino(object: HistoricalInfoAmino): HistoricalInfo { - const message = createBaseHistoricalInfo(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - message.valset = object.valset?.map(e => Validator.fromAmino(e)) || []; - return message; - }, - toAmino(message: HistoricalInfo): HistoricalInfoAmino { - const obj: any = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - if (message.valset) { - obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.valset = message.valset; - } - return obj; - }, - fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo { - return HistoricalInfo.fromAmino(object.value); - }, - toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg { - return { - type: "cosmos-sdk/HistoricalInfo", - value: HistoricalInfo.toAmino(message) - }; - }, - fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo { - return HistoricalInfo.decode(message.value); - }, - toProto(message: HistoricalInfo): Uint8Array { - return HistoricalInfo.encode(message).finish(); - }, - toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - value: HistoricalInfo.encode(message).finish() - }; - } -}; -function createBaseCommissionRates(): CommissionRates { - return { - rate: "", - maxRate: "", - maxChangeRate: "" - }; -} -export const CommissionRates = { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - encode(message: CommissionRates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.rate !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics); - } - if (message.maxRate !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics); - } - if (message.maxChangeRate !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommissionRates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommissionRates { - return { - rate: isSet(object.rate) ? String(object.rate) : "", - maxRate: isSet(object.maxRate) ? String(object.maxRate) : "", - maxChangeRate: isSet(object.maxChangeRate) ? String(object.maxChangeRate) : "" - }; - }, - toJSON(message: CommissionRates): unknown { - const obj: any = {}; - message.rate !== undefined && (obj.rate = message.rate); - message.maxRate !== undefined && (obj.maxRate = message.maxRate); - message.maxChangeRate !== undefined && (obj.maxChangeRate = message.maxChangeRate); - return obj; - }, - fromPartial(object: Partial): CommissionRates { - const message = createBaseCommissionRates(); - message.rate = object.rate ?? ""; - message.maxRate = object.maxRate ?? ""; - message.maxChangeRate = object.maxChangeRate ?? ""; - return message; - }, - fromAmino(object: CommissionRatesAmino): CommissionRates { - const message = createBaseCommissionRates(); - if (object.rate !== undefined && object.rate !== null) { - message.rate = object.rate; - } - if (object.max_rate !== undefined && object.max_rate !== null) { - message.maxRate = object.max_rate; - } - if (object.max_change_rate !== undefined && object.max_change_rate !== null) { - message.maxChangeRate = object.max_change_rate; - } - return message; - }, - toAmino(message: CommissionRates): CommissionRatesAmino { - const obj: any = {}; - obj.rate = message.rate === "" ? undefined : message.rate; - obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; - obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; - return obj; - }, - fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates { - return CommissionRates.fromAmino(object.value); - }, - toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg { - return { - type: "cosmos-sdk/CommissionRates", - value: CommissionRates.toAmino(message) - }; - }, - fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates { - return CommissionRates.decode(message.value); - }, - toProto(message: CommissionRates): Uint8Array { - return CommissionRates.encode(message).finish(); - }, - toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - value: CommissionRates.encode(message).finish() - }; - } -}; -function createBaseCommission(): Commission { - return { - commissionRates: CommissionRates.fromPartial({}), - updateTime: Timestamp.fromPartial({}) - }; -} -export const Commission = { - typeUrl: "/cosmos.staking.v1beta1.Commission", - encode(message: Commission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.commissionRates !== undefined) { - CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); - } - if (message.updateTime !== undefined) { - Timestamp.encode(message.updateTime, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Commission { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commissionRates = CommissionRates.decode(reader, reader.uint32()); - break; - case 2: - message.updateTime = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Commission { - return { - commissionRates: isSet(object.commissionRates) ? CommissionRates.fromJSON(object.commissionRates) : undefined, - updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined - }; - }, - toJSON(message: Commission): unknown { - const obj: any = {}; - message.commissionRates !== undefined && (obj.commissionRates = message.commissionRates ? CommissionRates.toJSON(message.commissionRates) : undefined); - message.updateTime !== undefined && (obj.updateTime = fromTimestamp(message.updateTime).toISOString()); - return obj; - }, - fromPartial(object: Partial): Commission { - const message = createBaseCommission(); - message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined; - message.updateTime = object.updateTime !== undefined && object.updateTime !== null ? Timestamp.fromPartial(object.updateTime) : undefined; - return message; - }, - fromAmino(object: CommissionAmino): Commission { - const message = createBaseCommission(); - if (object.commission_rates !== undefined && object.commission_rates !== null) { - message.commissionRates = CommissionRates.fromAmino(object.commission_rates); - } - if (object.update_time !== undefined && object.update_time !== null) { - message.updateTime = Timestamp.fromAmino(object.update_time); - } - return message; - }, - toAmino(message: Commission): CommissionAmino { - const obj: any = {}; - obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined; - obj.update_time = message.updateTime ? Timestamp.toAmino(message.updateTime) : undefined; - return obj; - }, - fromAminoMsg(object: CommissionAminoMsg): Commission { - return Commission.fromAmino(object.value); - }, - toAminoMsg(message: Commission): CommissionAminoMsg { - return { - type: "cosmos-sdk/Commission", - value: Commission.toAmino(message) - }; - }, - fromProtoMsg(message: CommissionProtoMsg): Commission { - return Commission.decode(message.value); - }, - toProto(message: Commission): Uint8Array { - return Commission.encode(message).finish(); - }, - toProtoMsg(message: Commission): CommissionProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Commission", - value: Commission.encode(message).finish() - }; - } -}; -function createBaseDescription(): Description { - return { - moniker: "", - identity: "", - website: "", - securityContact: "", - details: "" - }; -} -export const Description = { - typeUrl: "/cosmos.staking.v1beta1.Description", - encode(message: Description, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.moniker !== "") { - writer.uint32(10).string(message.moniker); - } - if (message.identity !== "") { - writer.uint32(18).string(message.identity); - } - if (message.website !== "") { - writer.uint32(26).string(message.website); - } - if (message.securityContact !== "") { - writer.uint32(34).string(message.securityContact); - } - if (message.details !== "") { - writer.uint32(42).string(message.details); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Description { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescription(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moniker = reader.string(); - break; - case 2: - message.identity = reader.string(); - break; - case 3: - message.website = reader.string(); - break; - case 4: - message.securityContact = reader.string(); - break; - case 5: - message.details = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Description { - return { - moniker: isSet(object.moniker) ? String(object.moniker) : "", - identity: isSet(object.identity) ? String(object.identity) : "", - website: isSet(object.website) ? String(object.website) : "", - securityContact: isSet(object.securityContact) ? String(object.securityContact) : "", - details: isSet(object.details) ? String(object.details) : "" - }; - }, - toJSON(message: Description): unknown { - const obj: any = {}; - message.moniker !== undefined && (obj.moniker = message.moniker); - message.identity !== undefined && (obj.identity = message.identity); - message.website !== undefined && (obj.website = message.website); - message.securityContact !== undefined && (obj.securityContact = message.securityContact); - message.details !== undefined && (obj.details = message.details); - return obj; - }, - fromPartial(object: Partial): Description { - const message = createBaseDescription(); - message.moniker = object.moniker ?? ""; - message.identity = object.identity ?? ""; - message.website = object.website ?? ""; - message.securityContact = object.securityContact ?? ""; - message.details = object.details ?? ""; - return message; - }, - fromAmino(object: DescriptionAmino): Description { - const message = createBaseDescription(); - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.identity !== undefined && object.identity !== null) { - message.identity = object.identity; - } - if (object.website !== undefined && object.website !== null) { - message.website = object.website; - } - if (object.security_contact !== undefined && object.security_contact !== null) { - message.securityContact = object.security_contact; - } - if (object.details !== undefined && object.details !== null) { - message.details = object.details; - } - return message; - }, - toAmino(message: Description): DescriptionAmino { - const obj: any = {}; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.identity = message.identity === "" ? undefined : message.identity; - obj.website = message.website === "" ? undefined : message.website; - obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; - obj.details = message.details === "" ? undefined : message.details; - return obj; - }, - fromAminoMsg(object: DescriptionAminoMsg): Description { - return Description.fromAmino(object.value); - }, - toAminoMsg(message: Description): DescriptionAminoMsg { - return { - type: "cosmos-sdk/Description", - value: Description.toAmino(message) - }; - }, - fromProtoMsg(message: DescriptionProtoMsg): Description { - return Description.decode(message.value); - }, - toProto(message: Description): Uint8Array { - return Description.encode(message).finish(); - }, - toProtoMsg(message: Description): DescriptionProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Description", - value: Description.encode(message).finish() - }; - } -}; -function createBaseValidator(): Validator { - return { - operatorAddress: "", - consensusPubkey: undefined, - jailed: false, - status: 0, - tokens: "", - delegatorShares: "", - description: Description.fromPartial({}), - unbondingHeight: BigInt(0), - unbondingTime: Timestamp.fromPartial({}), - commission: Commission.fromPartial({}), - minSelfDelegation: "" - }; -} -export const Validator = { - typeUrl: "/cosmos.staking.v1beta1.Validator", - encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.operatorAddress !== "") { - writer.uint32(10).string(message.operatorAddress); - } - if (message.consensusPubkey !== undefined) { - Any.encode((message.consensusPubkey as Any), writer.uint32(18).fork()).ldelim(); - } - if (message.jailed === true) { - writer.uint32(24).bool(message.jailed); - } - if (message.status !== 0) { - writer.uint32(32).int32(message.status); - } - if (message.tokens !== "") { - writer.uint32(42).string(message.tokens); - } - if (message.delegatorShares !== "") { - writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics); - } - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(58).fork()).ldelim(); - } - if (message.unbondingHeight !== BigInt(0)) { - writer.uint32(64).int64(message.unbondingHeight); - } - if (message.unbondingTime !== undefined) { - Timestamp.encode(message.unbondingTime, writer.uint32(74).fork()).ldelim(); - } - if (message.commission !== undefined) { - Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(90).string(message.minSelfDelegation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Validator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operatorAddress = reader.string(); - break; - case 2: - message.consensusPubkey = (Cosmos_cryptoPubKey_InterfaceDecoder(reader) as Any); - break; - case 3: - message.jailed = reader.bool(); - break; - case 4: - message.status = (reader.int32() as any); - break; - case 5: - message.tokens = reader.string(); - break; - case 6: - message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 7: - message.description = Description.decode(reader, reader.uint32()); - break; - case 8: - message.unbondingHeight = reader.int64(); - break; - case 9: - message.unbondingTime = Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.commission = Commission.decode(reader, reader.uint32()); - break; - case 11: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Validator { - return { - operatorAddress: isSet(object.operatorAddress) ? String(object.operatorAddress) : "", - consensusPubkey: isSet(object.consensusPubkey) ? Any.fromJSON(object.consensusPubkey) : undefined, - jailed: isSet(object.jailed) ? Boolean(object.jailed) : false, - status: isSet(object.status) ? bondStatusFromJSON(object.status) : -1, - tokens: isSet(object.tokens) ? String(object.tokens) : "", - delegatorShares: isSet(object.delegatorShares) ? String(object.delegatorShares) : "", - description: isSet(object.description) ? Description.fromJSON(object.description) : undefined, - unbondingHeight: isSet(object.unbondingHeight) ? BigInt(object.unbondingHeight.toString()) : BigInt(0), - unbondingTime: isSet(object.unbondingTime) ? fromJsonTimestamp(object.unbondingTime) : undefined, - commission: isSet(object.commission) ? Commission.fromJSON(object.commission) : undefined, - minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "" - }; - }, - toJSON(message: Validator): unknown { - const obj: any = {}; - message.operatorAddress !== undefined && (obj.operatorAddress = message.operatorAddress); - message.consensusPubkey !== undefined && (obj.consensusPubkey = message.consensusPubkey ? Any.toJSON(message.consensusPubkey) : undefined); - message.jailed !== undefined && (obj.jailed = message.jailed); - message.status !== undefined && (obj.status = bondStatusToJSON(message.status)); - message.tokens !== undefined && (obj.tokens = message.tokens); - message.delegatorShares !== undefined && (obj.delegatorShares = message.delegatorShares); - message.description !== undefined && (obj.description = message.description ? Description.toJSON(message.description) : undefined); - message.unbondingHeight !== undefined && (obj.unbondingHeight = (message.unbondingHeight || BigInt(0)).toString()); - message.unbondingTime !== undefined && (obj.unbondingTime = fromTimestamp(message.unbondingTime).toISOString()); - message.commission !== undefined && (obj.commission = message.commission ? Commission.toJSON(message.commission) : undefined); - message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation); - return obj; - }, - fromPartial(object: Partial): Validator { - const message = createBaseValidator(); - message.operatorAddress = object.operatorAddress ?? ""; - message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? Any.fromPartial(object.consensusPubkey) : undefined; - message.jailed = object.jailed ?? false; - message.status = object.status ?? 0; - message.tokens = object.tokens ?? ""; - message.delegatorShares = object.delegatorShares ?? ""; - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); - message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Timestamp.fromPartial(object.unbondingTime) : undefined; - message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object: ValidatorAmino): Validator { - const message = createBaseValidator(); - if (object.operator_address !== undefined && object.operator_address !== null) { - message.operatorAddress = object.operator_address; - } - if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { - message.consensusPubkey = encodePubkey(object.consensus_pubkey); - } - if (object.jailed !== undefined && object.jailed !== null) { - message.jailed = object.jailed; - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.tokens !== undefined && object.tokens !== null) { - message.tokens = object.tokens; - } - if (object.delegator_shares !== undefined && object.delegator_shares !== null) { - message.delegatorShares = object.delegator_shares; - } - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.unbonding_height !== undefined && object.unbonding_height !== null) { - message.unbondingHeight = BigInt(object.unbonding_height); - } - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = Timestamp.fromAmino(object.unbonding_time); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = Commission.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message: Validator): ValidatorAmino { - const obj: any = {}; - obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; - obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined; - obj.jailed = message.jailed === false ? undefined : message.jailed; - obj.status = message.status === 0 ? undefined : message.status; - obj.tokens = message.tokens === "" ? undefined : message.tokens; - obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; - obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(message.unbondingTime) : undefined; - obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object: ValidatorAminoMsg): Validator { - return Validator.fromAmino(object.value); - }, - toAminoMsg(message: Validator): ValidatorAminoMsg { - return { - type: "cosmos-sdk/Validator", - value: Validator.toAmino(message) - }; - }, - fromProtoMsg(message: ValidatorProtoMsg): Validator { - return Validator.decode(message.value); - }, - toProto(message: Validator): Uint8Array { - return Validator.encode(message).finish(); - }, - toProtoMsg(message: Validator): ValidatorProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseValAddresses(): ValAddresses { - return { - addresses: [] - }; -} -export const ValAddresses = { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - encode(message: ValAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.addresses) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValAddresses(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addresses.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValAddresses { - return { - addresses: Array.isArray(object?.addresses) ? object.addresses.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ValAddresses): unknown { - const obj: any = {}; - if (message.addresses) { - obj.addresses = message.addresses.map(e => e); - } else { - obj.addresses = []; - } - return obj; - }, - fromPartial(object: Partial): ValAddresses { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - fromAmino(object: ValAddressesAmino): ValAddresses { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - toAmino(message: ValAddresses): ValAddressesAmino { - const obj: any = {}; - if (message.addresses) { - obj.addresses = message.addresses.map(e => e); - } else { - obj.addresses = message.addresses; - } - return obj; - }, - fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses { - return ValAddresses.fromAmino(object.value); - }, - toAminoMsg(message: ValAddresses): ValAddressesAminoMsg { - return { - type: "cosmos-sdk/ValAddresses", - value: ValAddresses.toAmino(message) - }; - }, - fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses { - return ValAddresses.decode(message.value); - }, - toProto(message: ValAddresses): Uint8Array { - return ValAddresses.encode(message).finish(); - }, - toProtoMsg(message: ValAddresses): ValAddressesProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - value: ValAddresses.encode(message).finish() - }; - } -}; -function createBaseDVPair(): DVPair { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const DVPair = { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - encode(message: DVPair, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DVPair { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DVPair { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" - }; - }, - toJSON(message: DVPair): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - return obj; - }, - fromPartial(object: Partial): DVPair { - const message = createBaseDVPair(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object: DVPairAmino): DVPair { - const message = createBaseDVPair(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message: DVPair): DVPairAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object: DVPairAminoMsg): DVPair { - return DVPair.fromAmino(object.value); - }, - toAminoMsg(message: DVPair): DVPairAminoMsg { - return { - type: "cosmos-sdk/DVPair", - value: DVPair.toAmino(message) - }; - }, - fromProtoMsg(message: DVPairProtoMsg): DVPair { - return DVPair.decode(message.value); - }, - toProto(message: DVPair): Uint8Array { - return DVPair.encode(message).finish(); - }, - toProtoMsg(message: DVPair): DVPairProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - value: DVPair.encode(message).finish() - }; - } -}; -function createBaseDVPairs(): DVPairs { - return { - pairs: [] - }; -} -export const DVPairs = { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - encode(message: DVPairs, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.pairs) { - DVPair.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DVPairs { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPairs(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pairs.push(DVPair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DVPairs { - return { - pairs: Array.isArray(object?.pairs) ? object.pairs.map((e: any) => DVPair.fromJSON(e)) : [] - }; - }, - toJSON(message: DVPairs): unknown { - const obj: any = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? DVPair.toJSON(e) : undefined); - } else { - obj.pairs = []; - } - return obj; - }, - fromPartial(object: Partial): DVPairs { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => DVPair.fromPartial(e)) || []; - return message; - }, - fromAmino(object: DVPairsAmino): DVPairs { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => DVPair.fromAmino(e)) || []; - return message; - }, - toAmino(message: DVPairs): DVPairsAmino { - const obj: any = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined); - } else { - obj.pairs = message.pairs; - } - return obj; - }, - fromAminoMsg(object: DVPairsAminoMsg): DVPairs { - return DVPairs.fromAmino(object.value); - }, - toAminoMsg(message: DVPairs): DVPairsAminoMsg { - return { - type: "cosmos-sdk/DVPairs", - value: DVPairs.toAmino(message) - }; - }, - fromProtoMsg(message: DVPairsProtoMsg): DVPairs { - return DVPairs.decode(message.value); - }, - toProto(message: DVPairs): Uint8Array { - return DVPairs.encode(message).finish(); - }, - toProtoMsg(message: DVPairs): DVPairsProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - value: DVPairs.encode(message).finish() - }; - } -}; -function createBaseDVVTriplet(): DVVTriplet { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "" - }; -} -export const DVVTriplet = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - encode(message: DVVTriplet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DVVTriplet { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "", - validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "" - }; - }, - toJSON(message: DVVTriplet): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress); - message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress); - return obj; - }, - fromPartial(object: Partial): DVVTriplet { - const message = createBaseDVVTriplet(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - return message; - }, - fromAmino(object: DVVTripletAmino): DVVTriplet { - const message = createBaseDVVTriplet(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - return message; - }, - toAmino(message: DVVTriplet): DVVTripletAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - return obj; - }, - fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet { - return DVVTriplet.fromAmino(object.value); - }, - toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg { - return { - type: "cosmos-sdk/DVVTriplet", - value: DVVTriplet.toAmino(message) - }; - }, - fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet { - return DVVTriplet.decode(message.value); - }, - toProto(message: DVVTriplet): Uint8Array { - return DVVTriplet.encode(message).finish(); - }, - toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - value: DVVTriplet.encode(message).finish() - }; - } -}; -function createBaseDVVTriplets(): DVVTriplets { - return { - triplets: [] - }; -} -export const DVVTriplets = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - encode(message: DVVTriplets, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.triplets) { - DVVTriplet.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplets(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.triplets.push(DVVTriplet.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DVVTriplets { - return { - triplets: Array.isArray(object?.triplets) ? object.triplets.map((e: any) => DVVTriplet.fromJSON(e)) : [] - }; - }, - toJSON(message: DVVTriplets): unknown { - const obj: any = {}; - if (message.triplets) { - obj.triplets = message.triplets.map(e => e ? DVVTriplet.toJSON(e) : undefined); - } else { - obj.triplets = []; - } - return obj; - }, - fromPartial(object: Partial): DVVTriplets { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => DVVTriplet.fromPartial(e)) || []; - return message; - }, - fromAmino(object: DVVTripletsAmino): DVVTriplets { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => DVVTriplet.fromAmino(e)) || []; - return message; - }, - toAmino(message: DVVTriplets): DVVTripletsAmino { - const obj: any = {}; - if (message.triplets) { - obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined); - } else { - obj.triplets = message.triplets; - } - return obj; - }, - fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets { - return DVVTriplets.fromAmino(object.value); - }, - toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg { - return { - type: "cosmos-sdk/DVVTriplets", - value: DVVTriplets.toAmino(message) - }; - }, - fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets { - return DVVTriplets.decode(message.value); - }, - toProto(message: DVVTriplets): Uint8Array { - return DVVTriplets.encode(message).finish(); - }, - toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - value: DVVTriplets.encode(message).finish() - }; - } -}; -function createBaseDelegation(): Delegation { - return { - delegatorAddress: "", - validatorAddress: "", - shares: "" - }; -} -export const Delegation = { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - encode(message: Delegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.shares !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Delegation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.shares = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Delegation { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - shares: isSet(object.shares) ? String(object.shares) : "" - }; - }, - toJSON(message: Delegation): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.shares !== undefined && (obj.shares = message.shares); - return obj; - }, - fromPartial(object: Partial): Delegation { - const message = createBaseDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.shares = object.shares ?? ""; - return message; - }, - fromAmino(object: DelegationAmino): Delegation { - const message = createBaseDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.shares !== undefined && object.shares !== null) { - message.shares = object.shares; - } - return message; - }, - toAmino(message: Delegation): DelegationAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.shares = message.shares === "" ? undefined : message.shares; - return obj; - }, - fromAminoMsg(object: DelegationAminoMsg): Delegation { - return Delegation.fromAmino(object.value); - }, - toAminoMsg(message: Delegation): DelegationAminoMsg { - return { - type: "cosmos-sdk/Delegation", - value: Delegation.toAmino(message) - }; - }, - fromProtoMsg(message: DelegationProtoMsg): Delegation { - return Delegation.decode(message.value); - }, - toProto(message: Delegation): Uint8Array { - return Delegation.encode(message).finish(); - }, - toProtoMsg(message: Delegation): DelegationProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - value: Delegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegation(): UnbondingDelegation { - return { - delegatorAddress: "", - validatorAddress: "", - entries: [] - }; -} -export const UnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - encode(message: UnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - for (const v of message.entries) { - UnbondingDelegationEntry.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): UnbondingDelegation { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - entries: Array.isArray(object?.entries) ? object.entries.map((e: any) => UnbondingDelegationEntry.fromJSON(e)) : [] - }; - }, - toJSON(message: UnbondingDelegation): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - if (message.entries) { - obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toJSON(e) : undefined); - } else { - obj.entries = []; - } - return obj; - }, - fromPartial(object: Partial): UnbondingDelegation { - const message = createBaseUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation { - const message = createBaseUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message: UnbondingDelegation): UnbondingDelegationAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined); - } else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation { - return UnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg { - return { - type: "cosmos-sdk/UnbondingDelegation", - value: UnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation { - return UnbondingDelegation.decode(message.value); - }, - toProto(message: UnbondingDelegation): Uint8Array { - return UnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - value: UnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegationEntry(): UnbondingDelegationEntry { - return { - creationHeight: BigInt(0), - completionTime: Timestamp.fromPartial({}), - initialBalance: "", - balance: "" - }; -} -export const UnbondingDelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - encode(message: UnbondingDelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - Timestamp.encode(message.completionTime, writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): UnbondingDelegationEntry { - return { - creationHeight: isSet(object.creationHeight) ? BigInt(object.creationHeight.toString()) : BigInt(0), - completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined, - initialBalance: isSet(object.initialBalance) ? String(object.initialBalance) : "", - balance: isSet(object.balance) ? String(object.balance) : "" - }; - }, - toJSON(message: UnbondingDelegationEntry): unknown { - const obj: any = {}; - message.creationHeight !== undefined && (obj.creationHeight = (message.creationHeight || BigInt(0)).toString()); - message.completionTime !== undefined && (obj.completionTime = fromTimestamp(message.completionTime).toISOString()); - message.initialBalance !== undefined && (obj.initialBalance = message.initialBalance); - message.balance !== undefined && (obj.balance = message.balance); - return obj; - }, - fromPartial(object: Partial): UnbondingDelegationEntry { - const message = createBaseUnbondingDelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime !== undefined && object.completionTime !== null ? Timestamp.fromPartial(object.completionTime) : undefined; - message.initialBalance = object.initialBalance ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry { - const message = createBaseUnbondingDelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = Timestamp.fromAmino(object.completion_time); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino { - const obj: any = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? Timestamp.toAmino(message.completionTime) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry { - return UnbondingDelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg { - return { - type: "cosmos-sdk/UnbondingDelegationEntry", - value: UnbondingDelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry { - return UnbondingDelegationEntry.decode(message.value); - }, - toProto(message: UnbondingDelegationEntry): Uint8Array { - return UnbondingDelegationEntry.encode(message).finish(); - }, - toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - value: UnbondingDelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntry(): RedelegationEntry { - return { - creationHeight: BigInt(0), - completionTime: Timestamp.fromPartial({}), - initialBalance: "", - sharesDst: "" - }; -} -export const RedelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - encode(message: RedelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - Timestamp.encode(message.completionTime, writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.sharesDst !== "") { - writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RedelegationEntry { - return { - creationHeight: isSet(object.creationHeight) ? BigInt(object.creationHeight.toString()) : BigInt(0), - completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined, - initialBalance: isSet(object.initialBalance) ? String(object.initialBalance) : "", - sharesDst: isSet(object.sharesDst) ? String(object.sharesDst) : "" - }; - }, - toJSON(message: RedelegationEntry): unknown { - const obj: any = {}; - message.creationHeight !== undefined && (obj.creationHeight = (message.creationHeight || BigInt(0)).toString()); - message.completionTime !== undefined && (obj.completionTime = fromTimestamp(message.completionTime).toISOString()); - message.initialBalance !== undefined && (obj.initialBalance = message.initialBalance); - message.sharesDst !== undefined && (obj.sharesDst = message.sharesDst); - return obj; - }, - fromPartial(object: Partial): RedelegationEntry { - const message = createBaseRedelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime !== undefined && object.completionTime !== null ? Timestamp.fromPartial(object.completionTime) : undefined; - message.initialBalance = object.initialBalance ?? ""; - message.sharesDst = object.sharesDst ?? ""; - return message; - }, - fromAmino(object: RedelegationEntryAmino): RedelegationEntry { - const message = createBaseRedelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = Timestamp.fromAmino(object.completion_time); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.shares_dst !== undefined && object.shares_dst !== null) { - message.sharesDst = object.shares_dst; - } - return message; - }, - toAmino(message: RedelegationEntry): RedelegationEntryAmino { - const obj: any = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? Timestamp.toAmino(message.completionTime) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; - return obj; - }, - fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry { - return RedelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg { - return { - type: "cosmos-sdk/RedelegationEntry", - value: RedelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry { - return RedelegationEntry.decode(message.value); - }, - toProto(message: RedelegationEntry): Uint8Array { - return RedelegationEntry.encode(message).finish(); - }, - toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - value: RedelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegation(): Redelegation { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - entries: [] - }; -} -export const Redelegation = { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - encode(message: Redelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - for (const v of message.entries) { - RedelegationEntry.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Redelegation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.entries.push(RedelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Redelegation { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "", - validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "", - entries: Array.isArray(object?.entries) ? object.entries.map((e: any) => RedelegationEntry.fromJSON(e)) : [] - }; - }, - toJSON(message: Redelegation): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress); - message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress); - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntry.toJSON(e) : undefined); - } else { - obj.entries = []; - } - return obj; - }, - fromPartial(object: Partial): Redelegation { - const message = createBaseRedelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.entries = object.entries?.map(e => RedelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object: RedelegationAmino): Redelegation { - const message = createBaseRedelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - message.entries = object.entries?.map(e => RedelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message: Redelegation): RedelegationAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined); - } else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object: RedelegationAminoMsg): Redelegation { - return Redelegation.fromAmino(object.value); - }, - toAminoMsg(message: Redelegation): RedelegationAminoMsg { - return { - type: "cosmos-sdk/Redelegation", - value: Redelegation.toAmino(message) - }; - }, - fromProtoMsg(message: RedelegationProtoMsg): Redelegation { - return Redelegation.decode(message.value); - }, - toProto(message: Redelegation): Uint8Array { - return Redelegation.encode(message).finish(); - }, - toProtoMsg(message: Redelegation): RedelegationProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - value: Redelegation.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - unbondingTime: Duration.fromPartial({}), - maxValidators: 0, - maxEntries: 0, - historicalEntries: 0, - bondDenom: "", - minCommissionRate: "" - }; -} -export const Params = { - typeUrl: "/cosmos.staking.v1beta1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.unbondingTime !== undefined) { - Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); - } - if (message.maxValidators !== 0) { - writer.uint32(16).uint32(message.maxValidators); - } - if (message.maxEntries !== 0) { - writer.uint32(24).uint32(message.maxEntries); - } - if (message.historicalEntries !== 0) { - writer.uint32(32).uint32(message.historicalEntries); - } - if (message.bondDenom !== "") { - writer.uint32(42).string(message.bondDenom); - } - if (message.minCommissionRate !== "") { - writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingTime = Duration.decode(reader, reader.uint32()); - break; - case 2: - message.maxValidators = reader.uint32(); - break; - case 3: - message.maxEntries = reader.uint32(); - break; - case 4: - message.historicalEntries = reader.uint32(); - break; - case 5: - message.bondDenom = reader.string(); - break; - case 6: - message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - unbondingTime: isSet(object.unbondingTime) ? Duration.fromJSON(object.unbondingTime) : undefined, - maxValidators: isSet(object.maxValidators) ? Number(object.maxValidators) : 0, - maxEntries: isSet(object.maxEntries) ? Number(object.maxEntries) : 0, - historicalEntries: isSet(object.historicalEntries) ? Number(object.historicalEntries) : 0, - bondDenom: isSet(object.bondDenom) ? String(object.bondDenom) : "", - minCommissionRate: isSet(object.minCommissionRate) ? String(object.minCommissionRate) : "" - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.unbondingTime !== undefined && (obj.unbondingTime = message.unbondingTime ? Duration.toJSON(message.unbondingTime) : undefined); - message.maxValidators !== undefined && (obj.maxValidators = Math.round(message.maxValidators)); - message.maxEntries !== undefined && (obj.maxEntries = Math.round(message.maxEntries)); - message.historicalEntries !== undefined && (obj.historicalEntries = Math.round(message.historicalEntries)); - message.bondDenom !== undefined && (obj.bondDenom = message.bondDenom); - message.minCommissionRate !== undefined && (obj.minCommissionRate = message.minCommissionRate); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Duration.fromPartial(object.unbondingTime) : undefined; - message.maxValidators = object.maxValidators ?? 0; - message.maxEntries = object.maxEntries ?? 0; - message.historicalEntries = object.historicalEntries ?? 0; - message.bondDenom = object.bondDenom ?? ""; - message.minCommissionRate = object.minCommissionRate ?? ""; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = Duration.fromAmino(object.unbonding_time); - } - if (object.max_validators !== undefined && object.max_validators !== null) { - message.maxValidators = object.max_validators; - } - if (object.max_entries !== undefined && object.max_entries !== null) { - message.maxEntries = object.max_entries; - } - if (object.historical_entries !== undefined && object.historical_entries !== null) { - message.historicalEntries = object.historical_entries; - } - if (object.bond_denom !== undefined && object.bond_denom !== null) { - message.bondDenom = object.bond_denom; - } - if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { - message.minCommissionRate = object.min_commission_rate; - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined; - obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; - obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; - obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; - obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; - obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseDelegationResponse(): DelegationResponse { - return { - delegation: Delegation.fromPartial({}), - balance: Coin.fromPartial({}) - }; -} -export const DelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - encode(message: DelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegation !== undefined) { - Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegation = Delegation.decode(reader, reader.uint32()); - break; - case 2: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelegationResponse { - return { - delegation: isSet(object.delegation) ? Delegation.fromJSON(object.delegation) : undefined, - balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined - }; - }, - toJSON(message: DelegationResponse): unknown { - const obj: any = {}; - message.delegation !== undefined && (obj.delegation = message.delegation ? Delegation.toJSON(message.delegation) : undefined); - message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined); - return obj; - }, - fromPartial(object: Partial): DelegationResponse { - const message = createBaseDelegationResponse(); - message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined; - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object: DelegationResponseAmino): DelegationResponse { - const message = createBaseDelegationResponse(); - if (object.delegation !== undefined && object.delegation !== null) { - message.delegation = Delegation.fromAmino(object.delegation); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message: DelegationResponse): DelegationResponseAmino { - const obj: any = {}; - obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse { - return DelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg { - return { - type: "cosmos-sdk/DelegationResponse", - value: DelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse { - return DelegationResponse.decode(message.value); - }, - toProto(message: DelegationResponse): Uint8Array { - return DelegationResponse.encode(message).finish(); - }, - toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - value: DelegationResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntryResponse(): RedelegationEntryResponse { - return { - redelegationEntry: RedelegationEntry.fromPartial({}), - balance: "" - }; -} -export const RedelegationEntryResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - encode(message: RedelegationEntryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.redelegationEntry !== undefined) { - RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntryResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32()); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RedelegationEntryResponse { - return { - redelegationEntry: isSet(object.redelegationEntry) ? RedelegationEntry.fromJSON(object.redelegationEntry) : undefined, - balance: isSet(object.balance) ? String(object.balance) : "" - }; - }, - toJSON(message: RedelegationEntryResponse): unknown { - const obj: any = {}; - message.redelegationEntry !== undefined && (obj.redelegationEntry = message.redelegationEntry ? RedelegationEntry.toJSON(message.redelegationEntry) : undefined); - message.balance !== undefined && (obj.balance = message.balance); - return obj; - }, - fromPartial(object: Partial): RedelegationEntryResponse { - const message = createBaseRedelegationEntryResponse(); - message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse { - const message = createBaseRedelegationEntryResponse(); - if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { - message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino { - const obj: any = {}; - obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse { - return RedelegationEntryResponse.fromAmino(object.value); - }, - toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg { - return { - type: "cosmos-sdk/RedelegationEntryResponse", - value: RedelegationEntryResponse.toAmino(message) - }; - }, - fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse { - return RedelegationEntryResponse.decode(message.value); - }, - toProto(message: RedelegationEntryResponse): Uint8Array { - return RedelegationEntryResponse.encode(message).finish(); - }, - toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - value: RedelegationEntryResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationResponse(): RedelegationResponse { - return { - redelegation: Redelegation.fromPartial({}), - entries: [] - }; -} -export const RedelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - encode(message: RedelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.redelegation !== undefined) { - Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.entries) { - RedelegationEntryResponse.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegation = Redelegation.decode(reader, reader.uint32()); - break; - case 2: - message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RedelegationResponse { - return { - redelegation: isSet(object.redelegation) ? Redelegation.fromJSON(object.redelegation) : undefined, - entries: Array.isArray(object?.entries) ? object.entries.map((e: any) => RedelegationEntryResponse.fromJSON(e)) : [] - }; - }, - toJSON(message: RedelegationResponse): unknown { - const obj: any = {}; - message.redelegation !== undefined && (obj.redelegation = message.redelegation ? Redelegation.toJSON(message.redelegation) : undefined); - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toJSON(e) : undefined); - } else { - obj.entries = []; - } - return obj; - }, - fromPartial(object: Partial): RedelegationResponse { - const message = createBaseRedelegationResponse(); - message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined; - message.entries = object.entries?.map(e => RedelegationEntryResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object: RedelegationResponseAmino): RedelegationResponse { - const message = createBaseRedelegationResponse(); - if (object.redelegation !== undefined && object.redelegation !== null) { - message.redelegation = Redelegation.fromAmino(object.redelegation); - } - message.entries = object.entries?.map(e => RedelegationEntryResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message: RedelegationResponse): RedelegationResponseAmino { - const obj: any = {}; - obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined; - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined); - } else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse { - return RedelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg { - return { - type: "cosmos-sdk/RedelegationResponse", - value: RedelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse { - return RedelegationResponse.decode(message.value); - }, - toProto(message: RedelegationResponse): Uint8Array { - return RedelegationResponse.encode(message).finish(); - }, - toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - value: RedelegationResponse.encode(message).finish() - }; - } -}; -function createBasePool(): Pool { - return { - notBondedTokens: "", - bondedTokens: "" - }; -} -export const Pool = { - typeUrl: "/cosmos.staking.v1beta1.Pool", - encode(message: Pool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.notBondedTokens !== "") { - writer.uint32(10).string(message.notBondedTokens); - } - if (message.bondedTokens !== "") { - writer.uint32(18).string(message.bondedTokens); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Pool { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.notBondedTokens = reader.string(); - break; - case 2: - message.bondedTokens = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Pool { - return { - notBondedTokens: isSet(object.notBondedTokens) ? String(object.notBondedTokens) : "", - bondedTokens: isSet(object.bondedTokens) ? String(object.bondedTokens) : "" - }; - }, - toJSON(message: Pool): unknown { - const obj: any = {}; - message.notBondedTokens !== undefined && (obj.notBondedTokens = message.notBondedTokens); - message.bondedTokens !== undefined && (obj.bondedTokens = message.bondedTokens); - return obj; - }, - fromPartial(object: Partial): Pool { - const message = createBasePool(); - message.notBondedTokens = object.notBondedTokens ?? ""; - message.bondedTokens = object.bondedTokens ?? ""; - return message; - }, - fromAmino(object: PoolAmino): Pool { - const message = createBasePool(); - if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { - message.notBondedTokens = object.not_bonded_tokens; - } - if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { - message.bondedTokens = object.bonded_tokens; - } - return message; - }, - toAmino(message: Pool): PoolAmino { - const obj: any = {}; - obj.not_bonded_tokens = message.notBondedTokens ?? ""; - obj.bonded_tokens = message.bondedTokens ?? ""; - return obj; - }, - fromAminoMsg(object: PoolAminoMsg): Pool { - return Pool.fromAmino(object.value); - }, - toAminoMsg(message: Pool): PoolAminoMsg { - return { - type: "cosmos-sdk/Pool", - value: Pool.toAmino(message) - }; - }, - fromProtoMsg(message: PoolProtoMsg): Pool { - return Pool.decode(message.value); - }, - toProto(message: Pool): Uint8Array { - return Pool.encode(message).finish(); - }, - toProtoMsg(message: Pool): PoolProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.Pool", - value: Pool.encode(message).finish() - }; - } -}; -export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { - return encodePubkey(content); -}; -export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { - return decodePubkey(content); -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.amino.ts deleted file mode 100644 index d1dcf5c2..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +++ /dev/null @@ -1,34 +0,0 @@ -//@ts-nocheck -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export const AminoConverter = { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: "cosmos-sdk/MsgCreateValidator", - toAmino: MsgCreateValidator.toAmino, - fromAmino: MsgCreateValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: "cosmos-sdk/MsgEditValidator", - toAmino: MsgEditValidator.toAmino, - fromAmino: MsgEditValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: "cosmos-sdk/MsgDelegate", - toAmino: MsgDelegate.toAmino, - fromAmino: MsgDelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: "cosmos-sdk/MsgBeginRedelegate", - toAmino: MsgBeginRedelegate.toAmino, - fromAmino: MsgBeginRedelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: "cosmos-sdk/MsgUndelegate", - toAmino: MsgUndelegate.toAmino, - fromAmino: MsgUndelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", - toAmino: MsgCancelUnbondingDelegation.toAmino, - fromAmino: MsgCancelUnbondingDelegation.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.registry.ts deleted file mode 100644 index b663dc95..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createValidator(value: MsgCreateValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.encode(value).finish() - }; - }, - editValidator(value: MsgEditValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.encode(value).finish() - }; - }, - delegate(value: MsgDelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.encode(value).finish() - }; - }, - beginRedelegate(value: MsgBeginRedelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.encode(value).finish() - }; - }, - undelegate(value: MsgUndelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.encode(value).finish() - }; - }, - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.encode(value).finish() - }; - } - }, - withTypeUrl: { - createValidator(value: MsgCreateValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value - }; - }, - editValidator(value: MsgEditValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value - }; - }, - delegate(value: MsgDelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value - }; - }, - beginRedelegate(value: MsgBeginRedelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value - }; - }, - undelegate(value: MsgUndelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value - }; - }, - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value - }; - } - }, - toJSON: { - createValidator(value: MsgCreateValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.toJSON(value) - }; - }, - editValidator(value: MsgEditValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.toJSON(value) - }; - }, - delegate(value: MsgDelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.toJSON(value) - }; - }, - beginRedelegate(value: MsgBeginRedelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.toJSON(value) - }; - }, - undelegate(value: MsgUndelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.toJSON(value) - }; - }, - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.toJSON(value) - }; - } - }, - fromJSON: { - createValidator(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.fromJSON(value) - }; - }, - editValidator(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.fromJSON(value) - }; - }, - delegate(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.fromJSON(value) - }; - }, - beginRedelegate(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.fromJSON(value) - }; - }, - undelegate(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.fromJSON(value) - }; - }, - cancelUnbondingDelegation(value: any) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.fromJSON(value) - }; - } - }, - fromPartial: { - createValidator(value: MsgCreateValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.fromPartial(value) - }; - }, - editValidator(value: MsgEditValidator) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.fromPartial(value) - }; - }, - delegate(value: MsgDelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.fromPartial(value) - }; - }, - beginRedelegate(value: MsgBeginRedelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.fromPartial(value) - }; - }, - undelegate(value: MsgUndelegate) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.fromPartial(value) - }; - }, - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index 2325cd2c..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; -/** Msg defines the staking Msg service. */ -export interface Msg { - /** CreateValidator defines a method for creating a new validator. */ - createValidator(request: MsgCreateValidator): Promise; - /** EditValidator defines a method for editing an existing validator. */ - editValidator(request: MsgEditValidator): Promise; - /** - * Delegate defines a method for performing a delegation of coins - * from a delegator to a validator. - */ - delegate(request: MsgDelegate): Promise; - /** - * BeginRedelegate defines a method for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ - beginRedelegate(request: MsgBeginRedelegate): Promise; - /** - * Undelegate defines a method for performing an undelegation from a - * delegate and a validator. - */ - undelegate(request: MsgUndelegate): Promise; - /** - * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - * and delegate back to previous validator. - * - * Since: cosmos-sdk 0.46 - */ - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createValidator = this.createValidator.bind(this); - this.editValidator = this.editValidator.bind(this); - this.delegate = this.delegate.bind(this); - this.beginRedelegate = this.beginRedelegate.bind(this); - this.undelegate = this.undelegate.bind(this); - this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); - } - createValidator(request: MsgCreateValidator): Promise { - const data = MsgCreateValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); - return promise.then(data => MsgCreateValidatorResponse.decode(new BinaryReader(data))); - } - editValidator(request: MsgEditValidator): Promise { - const data = MsgEditValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); - return promise.then(data => MsgEditValidatorResponse.decode(new BinaryReader(data))); - } - delegate(request: MsgDelegate): Promise { - const data = MsgDelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); - return promise.then(data => MsgDelegateResponse.decode(new BinaryReader(data))); - } - beginRedelegate(request: MsgBeginRedelegate): Promise { - const data = MsgBeginRedelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); - return promise.then(data => MsgBeginRedelegateResponse.decode(new BinaryReader(data))); - } - undelegate(request: MsgUndelegate): Promise { - const data = MsgUndelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); - return promise.then(data => MsgUndelegateResponse.decode(new BinaryReader(data))); - } - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise { - const data = MsgCancelUnbondingDelegation.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); - return promise.then(data => MsgCancelUnbondingDelegationResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts deleted file mode 100644 index c312b56d..00000000 --- a/packages/api/src/codegen/cosmos/staking/v1beta1/tx.ts +++ /dev/null @@ -1,1516 +0,0 @@ -import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; -import { Decimal } from "@cosmjs/math"; -import { Pubkey } from "@cosmjs/amino"; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidator { - description: Description; - commission: CommissionRates; - minSelfDelegation: string; - delegatorAddress: string; - validatorAddress: string; - pubkey?: Any | undefined; - value: Coin; -} -export interface MsgCreateValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; - value: Uint8Array; -} -export type MsgCreateValidatorEncoded = Omit & { - pubkey?: AnyProtoMsg | undefined; -}; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorAmino { - description?: DescriptionAmino; - commission?: CommissionRatesAmino; - min_self_delegation?: string; - delegator_address?: string; - validator_address?: string; - pubkey?: AnyAmino; - value?: CoinAmino; -} -export interface MsgCreateValidatorAminoMsg { - type: "cosmos-sdk/MsgCreateValidator"; - value: MsgCreateValidatorAmino; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorSDKType { - description: DescriptionSDKType; - commission: CommissionRatesSDKType; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey?: AnySDKType | undefined; - value: CoinSDKType; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponse {} -export interface MsgCreateValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - value: Uint8Array; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseAmino {} -export interface MsgCreateValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgCreateValidatorResponse"; - value: MsgCreateValidatorResponseAmino; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseSDKType {} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidator { - description: Description; - validatorAddress: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commissionRate: string; - minSelfDelegation: string; -} -export interface MsgEditValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; - value: Uint8Array; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorAmino { - description?: DescriptionAmino; - validator_address?: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commission_rate?: string; - min_self_delegation?: string; -} -export interface MsgEditValidatorAminoMsg { - type: "cosmos-sdk/MsgEditValidator"; - value: MsgEditValidatorAmino; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorSDKType { - description: DescriptionSDKType; - validator_address: string; - commission_rate: string; - min_self_delegation: string; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponse {} -export interface MsgEditValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; - value: Uint8Array; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseAmino {} -export interface MsgEditValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgEditValidatorResponse"; - value: MsgEditValidatorResponseAmino; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseSDKType {} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgDelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; - value: Uint8Array; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgDelegateAminoMsg { - type: "cosmos-sdk/MsgDelegate"; - value: MsgDelegateAmino; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponse {} -export interface MsgDelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; - value: Uint8Array; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseAmino {} -export interface MsgDelegateResponseAminoMsg { - type: "cosmos-sdk/MsgDelegateResponse"; - value: MsgDelegateResponseAmino; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseSDKType {} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegate { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; - amount: Coin; -} -export interface MsgBeginRedelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; - value: Uint8Array; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; - amount?: CoinAmino; -} -export interface MsgBeginRedelegateAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegate"; - value: MsgBeginRedelegateAmino; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount: CoinSDKType; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponse { - completionTime: Timestamp; -} -export interface MsgBeginRedelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - value: Uint8Array; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseAmino { - completion_time?: string; -} -export interface MsgBeginRedelegateResponseAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegateResponse"; - value: MsgBeginRedelegateResponseAmino; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseSDKType { - completion_time: TimestampSDKType; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgUndelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; - value: Uint8Array; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgUndelegateAminoMsg { - type: "cosmos-sdk/MsgUndelegate"; - value: MsgUndelegateAmino; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponse { - completionTime: Timestamp; -} -export interface MsgUndelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; - value: Uint8Array; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseAmino { - completion_time?: string; -} -export interface MsgUndelegateResponseAminoMsg { - type: "cosmos-sdk/MsgUndelegateResponse"; - value: MsgUndelegateResponseAmino; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseSDKType { - completion_time: TimestampSDKType; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegation { - delegatorAddress: string; - validatorAddress: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount: Coin; - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; -} -export interface MsgCancelUnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationAmino { - delegator_address?: string; - validator_address?: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount?: CoinAmino; - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; -} -export interface MsgCancelUnbondingDelegationAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegation"; - value: MsgCancelUnbondingDelegationAmino; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; - creation_height: bigint; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponse {} -export interface MsgCancelUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseAmino {} -export interface MsgCancelUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse"; - value: MsgCancelUnbondingDelegationResponseAmino; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseSDKType {} -function createBaseMsgCreateValidator(): MsgCreateValidator { - return { - description: Description.fromPartial({}), - commission: CommissionRates.fromPartial({}), - minSelfDelegation: "", - delegatorAddress: "", - validatorAddress: "", - pubkey: undefined, - value: Coin.fromPartial({}) - }; -} -export const MsgCreateValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - encode(message: MsgCreateValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.commission !== undefined) { - CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(26).string(message.minSelfDelegation); - } - if (message.delegatorAddress !== "") { - writer.uint32(34).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(42).string(message.validatorAddress); - } - if (message.pubkey !== undefined) { - Any.encode((message.pubkey as Any), writer.uint32(50).fork()).ldelim(); - } - if (message.value !== undefined) { - Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = Description.decode(reader, reader.uint32()); - break; - case 2: - message.commission = CommissionRates.decode(reader, reader.uint32()); - break; - case 3: - message.minSelfDelegation = reader.string(); - break; - case 4: - message.delegatorAddress = reader.string(); - break; - case 5: - message.validatorAddress = reader.string(); - break; - case 6: - message.pubkey = (Cosmos_cryptoPubKey_InterfaceDecoder(reader) as Any); - break; - case 7: - message.value = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateValidator { - return { - description: isSet(object.description) ? Description.fromJSON(object.description) : undefined, - commission: isSet(object.commission) ? CommissionRates.fromJSON(object.commission) : undefined, - minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "", - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - pubkey: isSet(object.pubkey) ? Any.fromJSON(object.pubkey) : undefined, - value: isSet(object.value) ? Coin.fromJSON(object.value) : undefined - }; - }, - toJSON(message: MsgCreateValidator): unknown { - const obj: any = {}; - message.description !== undefined && (obj.description = message.description ? Description.toJSON(message.description) : undefined); - message.commission !== undefined && (obj.commission = message.commission ? CommissionRates.toJSON(message.commission) : undefined); - message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation); - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.pubkey !== undefined && (obj.pubkey = message.pubkey ? Any.toJSON(message.pubkey) : undefined); - message.value !== undefined && (obj.value = message.value ? Coin.toJSON(message.value) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgCreateValidator { - const message = createBaseMsgCreateValidator(); - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? Any.fromPartial(object.pubkey) : undefined; - message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined; - return message; - }, - fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator { - const message = createBaseMsgCreateValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = CommissionRates.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.pubkey !== undefined && object.pubkey !== null) { - message.pubkey = encodePubkey(object.pubkey); - } - if (object.value !== undefined && object.value !== null) { - message.value = Coin.fromAmino(object.value); - } - return message; - }, - toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino { - const obj: any = {}; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined; - obj.value = message.value ? Coin.toAmino(message.value) : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator { - return MsgCreateValidator.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg { - return { - type: "cosmos-sdk/MsgCreateValidator", - value: MsgCreateValidator.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator { - return MsgCreateValidator.decode(message.value); - }, - toProto(message: MsgCreateValidator): Uint8Array { - return MsgCreateValidator.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.encode(message).finish() - }; - } -}; -function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse { - return {}; -} -export const MsgCreateValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - encode(_: MsgCreateValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCreateValidatorResponse { - return {}; - }, - toJSON(_: MsgCreateValidatorResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCreateValidatorResponse { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse { - return MsgCreateValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateValidatorResponse", - value: MsgCreateValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse { - return MsgCreateValidatorResponse.decode(message.value); - }, - toProto(message: MsgCreateValidatorResponse): Uint8Array { - return MsgCreateValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - value: MsgCreateValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidator(): MsgEditValidator { - return { - description: Description.fromPartial({}), - validatorAddress: "", - commissionRate: "", - minSelfDelegation: "" - }; -} -export const MsgEditValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - encode(message: MsgEditValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.commissionRate !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics); - } - if (message.minSelfDelegation !== "") { - writer.uint32(34).string(message.minSelfDelegation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = Description.decode(reader, reader.uint32()); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgEditValidator { - return { - description: isSet(object.description) ? Description.fromJSON(object.description) : undefined, - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - commissionRate: isSet(object.commissionRate) ? String(object.commissionRate) : "", - minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "" - }; - }, - toJSON(message: MsgEditValidator): unknown { - const obj: any = {}; - message.description !== undefined && (obj.description = message.description ? Description.toJSON(message.description) : undefined); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.commissionRate !== undefined && (obj.commissionRate = message.commissionRate); - message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation); - return obj; - }, - fromPartial(object: Partial): MsgEditValidator { - const message = createBaseMsgEditValidator(); - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.validatorAddress = object.validatorAddress ?? ""; - message.commissionRate = object.commissionRate ?? ""; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object: MsgEditValidatorAmino): MsgEditValidator { - const message = createBaseMsgEditValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.commission_rate !== undefined && object.commission_rate !== null) { - message.commissionRate = object.commission_rate; - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message: MsgEditValidator): MsgEditValidatorAmino { - const obj: any = {}; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator { - return MsgEditValidator.fromAmino(object.value); - }, - toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg { - return { - type: "cosmos-sdk/MsgEditValidator", - value: MsgEditValidator.toAmino(message) - }; - }, - fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator { - return MsgEditValidator.decode(message.value); - }, - toProto(message: MsgEditValidator): Uint8Array { - return MsgEditValidator.encode(message).finish(); - }, - toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse { - return {}; -} -export const MsgEditValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - encode(_: MsgEditValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgEditValidatorResponse { - return {}; - }, - toJSON(_: MsgEditValidatorResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgEditValidatorResponse { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse { - return MsgEditValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg { - return { - type: "cosmos-sdk/MsgEditValidatorResponse", - value: MsgEditValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse { - return MsgEditValidatorResponse.decode(message.value); - }, - toProto(message: MsgEditValidatorResponse): Uint8Array { - return MsgEditValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - value: MsgEditValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDelegate(): MsgDelegate { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgDelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - encode(message: MsgDelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDelegate { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined - }; - }, - toJSON(message: MsgDelegate): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgDelegate { - const message = createBaseMsgDelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object: MsgDelegateAmino): MsgDelegate { - const message = createBaseMsgDelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message: MsgDelegate): MsgDelegateAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate { - return MsgDelegate.fromAmino(object.value); - }, - toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg { - return { - type: "cosmos-sdk/MsgDelegate", - value: MsgDelegate.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate { - return MsgDelegate.decode(message.value); - }, - toProto(message: MsgDelegate): Uint8Array { - return MsgDelegate.encode(message).finish(); - }, - toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.encode(message).finish() - }; - } -}; -function createBaseMsgDelegateResponse(): MsgDelegateResponse { - return {}; -} -export const MsgDelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - encode(_: MsgDelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgDelegateResponse { - return {}; - }, - toJSON(_: MsgDelegateResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgDelegateResponse { - const message = createBaseMsgDelegateResponse(); - return message; - }, - fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse { - const message = createBaseMsgDelegateResponse(); - return message; - }, - toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse { - return MsgDelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg { - return { - type: "cosmos-sdk/MsgDelegateResponse", - value: MsgDelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse { - return MsgDelegateResponse.decode(message.value); - }, - toProto(message: MsgDelegateResponse): Uint8Array { - return MsgDelegateResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - value: MsgDelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegate(): MsgBeginRedelegate { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgBeginRedelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - encode(message: MsgBeginRedelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBeginRedelegate { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "", - validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "", - amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined - }; - }, - toJSON(message: MsgBeginRedelegate): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress); - message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress); - message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgBeginRedelegate { - const message = createBaseMsgBeginRedelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate { - const message = createBaseMsgBeginRedelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate { - return MsgBeginRedelegate.fromAmino(object.value); - }, - toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg { - return { - type: "cosmos-sdk/MsgBeginRedelegate", - value: MsgBeginRedelegate.toAmino(message) - }; - }, - fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate { - return MsgBeginRedelegate.decode(message.value); - }, - toProto(message: MsgBeginRedelegate): Uint8Array { - return MsgBeginRedelegate.encode(message).finish(); - }, - toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse { - return { - completionTime: Timestamp.fromPartial({}) - }; -} -export const MsgBeginRedelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - encode(message: MsgBeginRedelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.completionTime !== undefined) { - Timestamp.encode(message.completionTime, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBeginRedelegateResponse { - return { - completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined - }; - }, - toJSON(message: MsgBeginRedelegateResponse): unknown { - const obj: any = {}; - message.completionTime !== undefined && (obj.completionTime = fromTimestamp(message.completionTime).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgBeginRedelegateResponse { - const message = createBaseMsgBeginRedelegateResponse(); - message.completionTime = object.completionTime !== undefined && object.completionTime !== null ? Timestamp.fromPartial(object.completionTime) : undefined; - return message; - }, - fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse { - const message = createBaseMsgBeginRedelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = Timestamp.fromAmino(object.completion_time); - } - return message; - }, - toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino { - const obj: any = {}; - obj.completion_time = message.completionTime ? Timestamp.toAmino(message.completionTime) : undefined; - return obj; - }, - fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse { - return MsgBeginRedelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg { - return { - type: "cosmos-sdk/MsgBeginRedelegateResponse", - value: MsgBeginRedelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse { - return MsgBeginRedelegateResponse.decode(message.value); - }, - toProto(message: MsgBeginRedelegateResponse): Uint8Array { - return MsgBeginRedelegateResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - value: MsgBeginRedelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegate(): MsgUndelegate { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgUndelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - encode(message: MsgUndelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUndelegate { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined - }; - }, - toJSON(message: MsgUndelegate): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgUndelegate { - const message = createBaseMsgUndelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object: MsgUndelegateAmino): MsgUndelegate { - const message = createBaseMsgUndelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message: MsgUndelegate): MsgUndelegateAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate { - return MsgUndelegate.fromAmino(object.value); - }, - toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg { - return { - type: "cosmos-sdk/MsgUndelegate", - value: MsgUndelegate.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate { - return MsgUndelegate.decode(message.value); - }, - toProto(message: MsgUndelegate): Uint8Array { - return MsgUndelegate.encode(message).finish(); - }, - toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegateResponse(): MsgUndelegateResponse { - return { - completionTime: Timestamp.fromPartial({}) - }; -} -export const MsgUndelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - encode(message: MsgUndelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.completionTime !== undefined) { - Timestamp.encode(message.completionTime, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUndelegateResponse { - return { - completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined - }; - }, - toJSON(message: MsgUndelegateResponse): unknown { - const obj: any = {}; - message.completionTime !== undefined && (obj.completionTime = fromTimestamp(message.completionTime).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgUndelegateResponse { - const message = createBaseMsgUndelegateResponse(); - message.completionTime = object.completionTime !== undefined && object.completionTime !== null ? Timestamp.fromPartial(object.completionTime) : undefined; - return message; - }, - fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse { - const message = createBaseMsgUndelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = Timestamp.fromAmino(object.completion_time); - } - return message; - }, - toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino { - const obj: any = {}; - obj.completion_time = message.completionTime ? Timestamp.toAmino(message.completionTime) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse { - return MsgUndelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUndelegateResponse", - value: MsgUndelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse { - return MsgUndelegateResponse.decode(message.value); - }, - toProto(message: MsgUndelegateResponse): Uint8Array { - return MsgUndelegateResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - value: MsgUndelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}), - creationHeight: BigInt(0) - }; -} -export const MsgCancelUnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - encode(message: MsgCancelUnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - if (message.creationHeight !== BigInt(0)) { - writer.uint32(32).int64(message.creationHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.creationHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancelUnbondingDelegation { - return { - delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "", - validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "", - amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined, - creationHeight: isSet(object.creationHeight) ? BigInt(object.creationHeight.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgCancelUnbondingDelegation): unknown { - const obj: any = {}; - message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress); - message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress); - message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined); - message.creationHeight !== undefined && (obj.creationHeight = (message.creationHeight || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgCancelUnbondingDelegation { - const message = createBaseMsgCancelUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation { - const message = createBaseMsgCancelUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - return message; - }, - toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino { - const obj: any = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation { - return MsgCancelUnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation { - return MsgCancelUnbondingDelegation.decode(message.value); - }, - toProto(message: MsgCancelUnbondingDelegation): Uint8Array { - return MsgCancelUnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse { - return {}; -} -export const MsgCancelUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - encode(_: MsgCancelUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCancelUnbondingDelegationResponse { - return {}; - }, - toJSON(_: MsgCancelUnbondingDelegationResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse { - return MsgCancelUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", - value: MsgCancelUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse { - return MsgCancelUnbondingDelegationResponse.decode(message.value); - }, - toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array { - return MsgCancelUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - value: MsgCancelUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { - return encodePubkey(content); -}; -export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { - return decodePubkey(content); -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/tx/signing/v1beta1/signing.ts b/packages/api/src/codegen/cosmos/tx/signing/v1beta1/signing.ts deleted file mode 100644 index fc4dc926..00000000 --- a/packages/api/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +++ /dev/null @@ -1,740 +0,0 @@ -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SIGN_MODE_UNSPECIFIED = 0, - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SIGN_MODE_DIRECT = 1, - /** - * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. - */ - SIGN_MODE_TEXTUAL = 2, - /** - * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. - * - * Since: cosmos-sdk 0.46 - */ - SIGN_MODE_DIRECT_AUX = 3, - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SIGN_MODE_LEGACY_AMINO_JSON = 127, - /** - * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - */ - SIGN_MODE_EIP_191 = 191, - UNRECOGNIZED = -1, -} -export const SignModeSDKType = SignMode; -export const SignModeAmino = SignMode; -export function signModeFromJSON(object: any): SignMode { - switch (object) { - case 0: - case "SIGN_MODE_UNSPECIFIED": - return SignMode.SIGN_MODE_UNSPECIFIED; - case 1: - case "SIGN_MODE_DIRECT": - return SignMode.SIGN_MODE_DIRECT; - case 2: - case "SIGN_MODE_TEXTUAL": - return SignMode.SIGN_MODE_TEXTUAL; - case 3: - case "SIGN_MODE_DIRECT_AUX": - return SignMode.SIGN_MODE_DIRECT_AUX; - case 127: - case "SIGN_MODE_LEGACY_AMINO_JSON": - return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; - case 191: - case "SIGN_MODE_EIP_191": - return SignMode.SIGN_MODE_EIP_191; - case -1: - case "UNRECOGNIZED": - default: - return SignMode.UNRECOGNIZED; - } -} -export function signModeToJSON(object: SignMode): string { - switch (object) { - case SignMode.SIGN_MODE_UNSPECIFIED: - return "SIGN_MODE_UNSPECIFIED"; - case SignMode.SIGN_MODE_DIRECT: - return "SIGN_MODE_DIRECT"; - case SignMode.SIGN_MODE_TEXTUAL: - return "SIGN_MODE_TEXTUAL"; - case SignMode.SIGN_MODE_DIRECT_AUX: - return "SIGN_MODE_DIRECT_AUX"; - case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: - return "SIGN_MODE_LEGACY_AMINO_JSON"; - case SignMode.SIGN_MODE_EIP_191: - return "SIGN_MODE_EIP_191"; - case SignMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptors { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptor[]; -} -export interface SignatureDescriptorsProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; - value: Uint8Array; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsAmino { - /** signatures are the signature descriptors */ - signatures?: SignatureDescriptorAmino[]; -} -export interface SignatureDescriptorsAminoMsg { - type: "cosmos-sdk/SignatureDescriptors"; - value: SignatureDescriptorsAmino; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsSDKType { - signatures: SignatureDescriptorSDKType[]; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptor { - /** public_key is the public key of the signer */ - publicKey?: Any; - data?: SignatureDescriptor_Data; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: bigint; -} -export interface SignatureDescriptorProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; - value: Uint8Array; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorAmino { - /** public_key is the public key of the signer */ - public_key?: AnyAmino; - data?: SignatureDescriptor_DataAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence?: string; -} -export interface SignatureDescriptorAminoMsg { - type: "cosmos-sdk/SignatureDescriptor"; - value: SignatureDescriptorAmino; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorSDKType { - public_key?: AnySDKType; - data?: SignatureDescriptor_DataSDKType; - sequence: bigint; -} -/** Data represents signature data */ -export interface SignatureDescriptor_Data { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_Single; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_Multi; -} -export interface SignatureDescriptor_DataProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Data"; - value: Uint8Array; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataAmino { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_SingleAmino; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_MultiAmino; -} -export interface SignatureDescriptor_DataAminoMsg { - type: "cosmos-sdk/Data"; - value: SignatureDescriptor_DataAmino; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataSDKType { - single?: SignatureDescriptor_Data_SingleSDKType; - multi?: SignatureDescriptor_Data_MultiSDKType; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Single"; - value: Uint8Array; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; - /** signature is the raw signature bytes */ - signature?: string; -} -export interface SignatureDescriptor_Data_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: SignatureDescriptor_Data_SingleAmino; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleSDKType { - mode: SignMode; - signature: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_Data[]; -} -export interface SignatureDescriptor_Data_MultiProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** signatures is the signatures of the multi-signature */ - signatures?: SignatureDescriptor_DataAmino[]; -} -export interface SignatureDescriptor_Data_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: SignatureDescriptor_Data_MultiAmino; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiSDKType { - bitarray?: CompactBitArraySDKType; - signatures: SignatureDescriptor_DataSDKType[]; -} -function createBaseSignatureDescriptors(): SignatureDescriptors { - return { - signatures: [] - }; -} -export const SignatureDescriptors = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - encode(message: SignatureDescriptors, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.signatures) { - SignatureDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptors(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(SignatureDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignatureDescriptors { - return { - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => SignatureDescriptor.fromJSON(e)) : [] - }; - }, - toJSON(message: SignatureDescriptors): unknown { - const obj: any = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toJSON(e) : undefined); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): SignatureDescriptors { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => SignatureDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SignatureDescriptorsAmino): SignatureDescriptors { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => SignatureDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message: SignatureDescriptors): SignatureDescriptorsAmino { - const obj: any = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toAmino(e) : undefined); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: SignatureDescriptorsAminoMsg): SignatureDescriptors { - return SignatureDescriptors.fromAmino(object.value); - }, - toAminoMsg(message: SignatureDescriptors): SignatureDescriptorsAminoMsg { - return { - type: "cosmos-sdk/SignatureDescriptors", - value: SignatureDescriptors.toAmino(message) - }; - }, - fromProtoMsg(message: SignatureDescriptorsProtoMsg): SignatureDescriptors { - return SignatureDescriptors.decode(message.value); - }, - toProto(message: SignatureDescriptors): Uint8Array { - return SignatureDescriptors.encode(message).finish(); - }, - toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - value: SignatureDescriptors.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor(): SignatureDescriptor { - return { - publicKey: undefined, - data: undefined, - sequence: BigInt(0) - }; -} -export const SignatureDescriptor = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - encode(message: SignatureDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 2: - message.data = SignatureDescriptor_Data.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignatureDescriptor { - return { - publicKey: isSet(object.publicKey) ? Any.fromJSON(object.publicKey) : undefined, - data: isSet(object.data) ? SignatureDescriptor_Data.fromJSON(object.data) : undefined, - sequence: isSet(object.sequence) ? BigInt(object.sequence.toString()) : BigInt(0) - }; - }, - toJSON(message: SignatureDescriptor): unknown { - const obj: any = {}; - message.publicKey !== undefined && (obj.publicKey = message.publicKey ? Any.toJSON(message.publicKey) : undefined); - message.data !== undefined && (obj.data = message.data ? SignatureDescriptor_Data.toJSON(message.data) : undefined); - message.sequence !== undefined && (obj.sequence = (message.sequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): SignatureDescriptor { - const message = createBaseSignatureDescriptor(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.data = object.data !== undefined && object.data !== null ? SignatureDescriptor_Data.fromPartial(object.data) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: SignatureDescriptorAmino): SignatureDescriptor { - const message = createBaseSignatureDescriptor(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.data !== undefined && object.data !== null) { - message.data = SignatureDescriptor_Data.fromAmino(object.data); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message: SignatureDescriptor): SignatureDescriptorAmino { - const obj: any = {}; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.data = message.data ? SignatureDescriptor_Data.toAmino(message.data) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor { - return SignatureDescriptor.fromAmino(object.value); - }, - toAminoMsg(message: SignatureDescriptor): SignatureDescriptorAminoMsg { - return { - type: "cosmos-sdk/SignatureDescriptor", - value: SignatureDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message: SignatureDescriptorProtoMsg): SignatureDescriptor { - return SignatureDescriptor.decode(message.value); - }, - toProto(message: SignatureDescriptor): Uint8Array { - return SignatureDescriptor.encode(message).finish(); - }, - toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - value: SignatureDescriptor.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data(): SignatureDescriptor_Data { - return { - single: undefined, - multi: undefined - }; -} -export const SignatureDescriptor_Data = { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - encode(message: SignatureDescriptor_Data, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.single !== undefined) { - SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignatureDescriptor_Data { - return { - single: isSet(object.single) ? SignatureDescriptor_Data_Single.fromJSON(object.single) : undefined, - multi: isSet(object.multi) ? SignatureDescriptor_Data_Multi.fromJSON(object.multi) : undefined - }; - }, - toJSON(message: SignatureDescriptor_Data): unknown { - const obj: any = {}; - message.single !== undefined && (obj.single = message.single ? SignatureDescriptor_Data_Single.toJSON(message.single) : undefined); - message.multi !== undefined && (obj.multi = message.multi ? SignatureDescriptor_Data_Multi.toJSON(message.multi) : undefined); - return obj; - }, - fromPartial(object: Partial): SignatureDescriptor_Data { - const message = createBaseSignatureDescriptor_Data(); - message.single = object.single !== undefined && object.single !== null ? SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object: SignatureDescriptor_DataAmino): SignatureDescriptor_Data { - const message = createBaseSignatureDescriptor_Data(); - if (object.single !== undefined && object.single !== null) { - message.single = SignatureDescriptor_Data_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = SignatureDescriptor_Data_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message: SignatureDescriptor_Data): SignatureDescriptor_DataAmino { - const obj: any = {}; - obj.single = message.single ? SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object: SignatureDescriptor_DataAminoMsg): SignatureDescriptor_Data { - return SignatureDescriptor_Data.fromAmino(object.value); - }, - toAminoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataAminoMsg { - return { - type: "cosmos-sdk/Data", - value: SignatureDescriptor_Data.toAmino(message) - }; - }, - fromProtoMsg(message: SignatureDescriptor_DataProtoMsg): SignatureDescriptor_Data { - return SignatureDescriptor_Data.decode(message.value); - }, - toProto(message: SignatureDescriptor_Data): Uint8Array { - return SignatureDescriptor_Data.encode(message).finish(); - }, - toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - value: SignatureDescriptor_Data.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Single(): SignatureDescriptor_Data_Single { - return { - mode: 0, - signature: new Uint8Array() - }; -} -export const SignatureDescriptor_Data_Single = { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - encode(message: SignatureDescriptor_Data_Single, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - if (message.signature.length !== 0) { - writer.uint32(18).bytes(message.signature); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = (reader.int32() as any); - break; - case 2: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignatureDescriptor_Data_Single { - return { - mode: isSet(object.mode) ? signModeFromJSON(object.mode) : -1, - signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array() - }; - }, - toJSON(message: SignatureDescriptor_Data_Single): unknown { - const obj: any = {}; - message.mode !== undefined && (obj.mode = signModeToJSON(message.mode)); - message.signature !== undefined && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): SignatureDescriptor_Data_Single { - const message = createBaseSignatureDescriptor_Data_Single(); - message.mode = object.mode ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single { - const message = createBaseSignatureDescriptor_Data_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino { - const obj: any = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object: SignatureDescriptor_Data_SingleAminoMsg): SignatureDescriptor_Data_Single { - return SignatureDescriptor_Data_Single.fromAmino(object.value); - }, - toAminoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAminoMsg { - return { - type: "cosmos-sdk/Single", - value: SignatureDescriptor_Data_Single.toAmino(message) - }; - }, - fromProtoMsg(message: SignatureDescriptor_Data_SingleProtoMsg): SignatureDescriptor_Data_Single { - return SignatureDescriptor_Data_Single.decode(message.value); - }, - toProto(message: SignatureDescriptor_Data_Single): Uint8Array { - return SignatureDescriptor_Data_Single.encode(message).finish(); - }, - toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - value: SignatureDescriptor_Data_Single.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Multi(): SignatureDescriptor_Data_Multi { - return { - bitarray: undefined, - signatures: [] - }; -} -export const SignatureDescriptor_Data_Multi = { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - encode(message: SignatureDescriptor_Data_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bitarray !== undefined) { - CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.signatures) { - SignatureDescriptor_Data.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.signatures.push(SignatureDescriptor_Data.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignatureDescriptor_Data_Multi { - return { - bitarray: isSet(object.bitarray) ? CompactBitArray.fromJSON(object.bitarray) : undefined, - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => SignatureDescriptor_Data.fromJSON(e)) : [] - }; - }, - toJSON(message: SignatureDescriptor_Data_Multi): unknown { - const obj: any = {}; - message.bitarray !== undefined && (obj.bitarray = message.bitarray ? CompactBitArray.toJSON(message.bitarray) : undefined); - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toJSON(e) : undefined); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): SignatureDescriptor_Data_Multi { - const message = createBaseSignatureDescriptor_Data_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; - message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SignatureDescriptor_Data_MultiAmino): SignatureDescriptor_Data_Multi { - const message = createBaseSignatureDescriptor_Data_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = CompactBitArray.fromAmino(object.bitarray); - } - message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromAmino(e)) || []; - return message; - }, - toAmino(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAmino { - const obj: any = {}; - obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toAmino(e) : undefined); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: SignatureDescriptor_Data_MultiAminoMsg): SignatureDescriptor_Data_Multi { - return SignatureDescriptor_Data_Multi.fromAmino(object.value); - }, - toAminoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAminoMsg { - return { - type: "cosmos-sdk/Multi", - value: SignatureDescriptor_Data_Multi.toAmino(message) - }; - }, - fromProtoMsg(message: SignatureDescriptor_Data_MultiProtoMsg): SignatureDescriptor_Data_Multi { - return SignatureDescriptor_Data_Multi.decode(message.value); - }, - toProto(message: SignatureDescriptor_Data_Multi): Uint8Array { - return SignatureDescriptor_Data_Multi.encode(message).finish(); - }, - toProtoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiProtoMsg { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - value: SignatureDescriptor_Data_Multi.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/tx/v1beta1/service.lcd.ts b/packages/api/src/codegen/cosmos/tx/v1beta1/service.lcd.ts deleted file mode 100644 index 18594347..00000000 --- a/packages/api/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.getTx = this.getTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - /* GetTx fetches a tx by hash. */ - async getTx(params: GetTxRequest): Promise { - const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; - return await this.req.get(endpoint); - } - /* GetTxsEvent fetches txs by event. */ - async getTxsEvent(params: GetTxsEventRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.events !== "undefined") { - options.params.events = params.events; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - if (typeof params?.orderBy !== "undefined") { - options.params.order_by = params.orderBy; - } - if (typeof params?.page !== "undefined") { - options.params.page = params.page; - } - if (typeof params?.limit !== "undefined") { - options.params.limit = params.limit; - } - const endpoint = `cosmos/tx/v1beta1/txs`; - return await this.req.get(endpoint, options); - } - /* GetBlockWithTxs fetches a block with decoded txs. - - Since: cosmos-sdk 0.45.2 */ - async getBlockWithTxs(params: GetBlockWithTxsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts b/packages/api/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts deleted file mode 100644 index 5a963175..00000000 --- a/packages/api/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; -/** Service defines a gRPC service for interacting with transactions. */ -export interface Service { - /** Simulate simulates executing a transaction for estimating gas usage. */ - simulate(request: SimulateRequest): Promise; - /** GetTx fetches a tx by hash. */ - getTx(request: GetTxRequest): Promise; - /** BroadcastTx broadcast transaction. */ - broadcastTx(request: BroadcastTxRequest): Promise; - /** GetTxsEvent fetches txs by event. */ - getTxsEvent(request: GetTxsEventRequest): Promise; - /** - * GetBlockWithTxs fetches a block with decoded txs. - * - * Since: cosmos-sdk 0.45.2 - */ - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -} -export class ServiceClientImpl implements Service { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.simulate = this.simulate.bind(this); - this.getTx = this.getTx.bind(this); - this.broadcastTx = this.broadcastTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - simulate(request: SimulateRequest): Promise { - const data = SimulateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); - return promise.then(data => SimulateResponse.decode(new BinaryReader(data))); - } - getTx(request: GetTxRequest): Promise { - const data = GetTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); - return promise.then(data => GetTxResponse.decode(new BinaryReader(data))); - } - broadcastTx(request: BroadcastTxRequest): Promise { - const data = BroadcastTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); - return promise.then(data => BroadcastTxResponse.decode(new BinaryReader(data))); - } - getTxsEvent(request: GetTxsEventRequest): Promise { - const data = GetTxsEventRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); - return promise.then(data => GetTxsEventResponse.decode(new BinaryReader(data))); - } - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { - const data = GetBlockWithTxsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); - return promise.then(data => GetBlockWithTxsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new ServiceClientImpl(rpc); - return { - simulate(request: SimulateRequest): Promise { - return queryService.simulate(request); - }, - getTx(request: GetTxRequest): Promise { - return queryService.getTx(request); - }, - broadcastTx(request: BroadcastTxRequest): Promise { - return queryService.broadcastTx(request); - }, - getTxsEvent(request: GetTxsEventRequest): Promise { - return queryService.getTxsEvent(request); - }, - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { - return queryService.getBlockWithTxs(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/tx/v1beta1/service.ts b/packages/api/src/codegen/cosmos/tx/v1beta1/service.ts deleted file mode 100644 index 81775aa1..00000000 --- a/packages/api/src/codegen/cosmos/tx/v1beta1/service.ts +++ /dev/null @@ -1,1549 +0,0 @@ -import { Tx, TxAmino, TxSDKType } from "./tx"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; -import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; -import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** OrderBy defines the sorting order */ -export enum OrderBy { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - ORDER_BY_UNSPECIFIED = 0, - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - ORDER_BY_ASC = 1, - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - ORDER_BY_DESC = 2, - UNRECOGNIZED = -1, -} -export const OrderBySDKType = OrderBy; -export const OrderByAmino = OrderBy; -export function orderByFromJSON(object: any): OrderBy { - switch (object) { - case 0: - case "ORDER_BY_UNSPECIFIED": - return OrderBy.ORDER_BY_UNSPECIFIED; - case 1: - case "ORDER_BY_ASC": - return OrderBy.ORDER_BY_ASC; - case 2: - case "ORDER_BY_DESC": - return OrderBy.ORDER_BY_DESC; - case -1: - case "UNRECOGNIZED": - default: - return OrderBy.UNRECOGNIZED; - } -} -export function orderByToJSON(object: OrderBy): string { - switch (object) { - case OrderBy.ORDER_BY_UNSPECIFIED: - return "ORDER_BY_UNSPECIFIED"; - case OrderBy.ORDER_BY_ASC: - return "ORDER_BY_ASC"; - case OrderBy.ORDER_BY_DESC: - return "ORDER_BY_DESC"; - case OrderBy.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export enum BroadcastMode { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BROADCAST_MODE_UNSPECIFIED = 0, - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BROADCAST_MODE_BLOCK = 1, - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BROADCAST_MODE_SYNC = 2, - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BROADCAST_MODE_ASYNC = 3, - UNRECOGNIZED = -1, -} -export const BroadcastModeSDKType = BroadcastMode; -export const BroadcastModeAmino = BroadcastMode; -export function broadcastModeFromJSON(object: any): BroadcastMode { - switch (object) { - case 0: - case "BROADCAST_MODE_UNSPECIFIED": - return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; - case 1: - case "BROADCAST_MODE_BLOCK": - return BroadcastMode.BROADCAST_MODE_BLOCK; - case 2: - case "BROADCAST_MODE_SYNC": - return BroadcastMode.BROADCAST_MODE_SYNC; - case 3: - case "BROADCAST_MODE_ASYNC": - return BroadcastMode.BROADCAST_MODE_ASYNC; - case -1: - case "UNRECOGNIZED": - default: - return BroadcastMode.UNRECOGNIZED; - } -} -export function broadcastModeToJSON(object: BroadcastMode): string { - switch (object) { - case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: - return "BROADCAST_MODE_UNSPECIFIED"; - case BroadcastMode.BROADCAST_MODE_BLOCK: - return "BROADCAST_MODE_BLOCK"; - case BroadcastMode.BROADCAST_MODE_SYNC: - return "BROADCAST_MODE_SYNC"; - case BroadcastMode.BROADCAST_MODE_ASYNC: - return "BROADCAST_MODE_ASYNC"; - case BroadcastMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequest { - /** events is the list of transaction event type. */ - events: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequest; - orderBy: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page: bigint; - /** - * 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. - */ - limit: bigint; -} -export interface GetTxsEventRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; - value: Uint8Array; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestAmino { - /** events is the list of transaction event type. */ - events?: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequestAmino; - order_by?: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page?: string; - /** - * 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. - */ - limit?: string; -} -export interface GetTxsEventRequestAminoMsg { - type: "cosmos-sdk/GetTxsEventRequest"; - value: GetTxsEventRequestAmino; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestSDKType { - events: string[]; - /** @deprecated */ - pagination?: PageRequestSDKType; - order_by: OrderBy; - page: bigint; - limit: bigint; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs: Tx[]; - /** tx_responses is the list of queried TxResponses. */ - txResponses: TxResponse[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponse; - /** total is total number of results available */ - total: bigint; -} -export interface GetTxsEventResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; - value: Uint8Array; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseAmino { - /** txs is the list of queried transactions. */ - txs?: TxAmino[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses?: TxResponseAmino[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponseAmino; - /** total is total number of results available */ - total?: string; -} -export interface GetTxsEventResponseAminoMsg { - type: "cosmos-sdk/GetTxsEventResponse"; - value: GetTxsEventResponseAmino; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseSDKType { - txs: TxSDKType[]; - tx_responses: TxResponseSDKType[]; - /** @deprecated */ - pagination?: PageResponseSDKType; - total: bigint; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequest { - /** tx_bytes is the raw transaction. */ - txBytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; - value: Uint8Array; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestAmino { - /** tx_bytes is the raw transaction. */ - tx_bytes?: string; - mode?: BroadcastMode; -} -export interface BroadcastTxRequestAminoMsg { - type: "cosmos-sdk/BroadcastTxRequest"; - value: BroadcastTxRequestAmino; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestSDKType { - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponse { - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface BroadcastTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; - value: Uint8Array; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseAmino { - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface BroadcastTxResponseAminoMsg { - type: "cosmos-sdk/BroadcastTxResponse"; - value: BroadcastTxResponseAmino; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseSDKType { - tx_response?: TxResponseSDKType; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequest { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: Tx; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - txBytes: Uint8Array; -} -export interface SimulateRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; - value: Uint8Array; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestAmino { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: TxAmino; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - tx_bytes?: string; -} -export interface SimulateRequestAminoMsg { - type: "cosmos-sdk/SimulateRequest"; - value: SimulateRequestAmino; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestSDKType { - /** @deprecated */ - tx?: TxSDKType; - tx_bytes: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gasInfo?: GasInfo; - /** result is the result of the simulation. */ - result?: Result; -} -export interface SimulateResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; - value: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseAmino { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: GasInfoAmino; - /** result is the result of the simulation. */ - result?: ResultAmino; -} -export interface SimulateResponseAminoMsg { - type: "cosmos-sdk/SimulateResponse"; - value: SimulateResponseAmino; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseSDKType { - gas_info?: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequest { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; - value: Uint8Array; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestAmino { - /** hash is the tx hash to query, encoded as a hex string. */ - hash?: string; -} -export interface GetTxRequestAminoMsg { - type: "cosmos-sdk/GetTxRequest"; - value: GetTxRequestAmino; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestSDKType { - hash: string; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponse { - /** tx is the queried transaction. */ - tx?: Tx; - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface GetTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; - value: Uint8Array; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseAmino { - /** tx is the queried transaction. */ - tx?: TxAmino; - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface GetTxResponseAminoMsg { - type: "cosmos-sdk/GetTxResponse"; - value: GetTxResponseAmino; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseSDKType { - tx?: TxSDKType; - tx_response?: TxResponseSDKType; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequest { - /** height is the height of the block to query. */ - height: bigint; - /** pagination defines a pagination for the request. */ - pagination?: PageRequest; -} -export interface GetBlockWithTxsRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - value: Uint8Array; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestAmino { - /** height is the height of the block to query. */ - height?: string; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetBlockWithTxsRequestAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsRequest"; - value: GetBlockWithTxsRequestAmino; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestSDKType { - height: bigint; - pagination?: PageRequestSDKType; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponse { - /** txs are the transactions in the block. */ - txs: Tx[]; - blockId?: BlockID; - block?: Block; - /** pagination defines a pagination for the response. */ - pagination?: PageResponse; -} -export interface GetBlockWithTxsResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - value: Uint8Array; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseAmino { - /** txs are the transactions in the block. */ - txs?: TxAmino[]; - block_id?: BlockIDAmino; - block?: BlockAmino; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetBlockWithTxsResponseAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsResponse"; - value: GetBlockWithTxsResponseAmino; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseSDKType { - txs: TxSDKType[]; - block_id?: BlockIDSDKType; - block?: BlockSDKType; - pagination?: PageResponseSDKType; -} -function createBaseGetTxsEventRequest(): GetTxsEventRequest { - return { - events: [], - pagination: undefined, - orderBy: 0, - page: BigInt(0), - limit: BigInt(0) - }; -} -export const GetTxsEventRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - encode(message: GetTxsEventRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.events) { - writer.uint32(10).string(v!); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - if (message.orderBy !== 0) { - writer.uint32(24).int32(message.orderBy); - } - if (message.page !== BigInt(0)) { - writer.uint32(32).uint64(message.page); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(reader.string()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - case 3: - message.orderBy = (reader.int32() as any); - break; - case 4: - message.page = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetTxsEventRequest { - return { - events: Array.isArray(object?.events) ? object.events.map((e: any) => String(e)) : [], - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, - orderBy: isSet(object.orderBy) ? orderByFromJSON(object.orderBy) : -1, - page: isSet(object.page) ? BigInt(object.page.toString()) : BigInt(0), - limit: isSet(object.limit) ? BigInt(object.limit.toString()) : BigInt(0) - }; - }, - toJSON(message: GetTxsEventRequest): unknown { - const obj: any = {}; - if (message.events) { - obj.events = message.events.map(e => e); - } else { - obj.events = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - message.orderBy !== undefined && (obj.orderBy = orderByToJSON(message.orderBy)); - message.page !== undefined && (obj.page = (message.page || BigInt(0)).toString()); - message.limit !== undefined && (obj.limit = (message.limit || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): GetTxsEventRequest { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - message.orderBy = object.orderBy ?? 0; - message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - return message; - }, - fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - if (object.order_by !== undefined && object.order_by !== null) { - message.orderBy = object.order_by; - } - if (object.page !== undefined && object.page !== null) { - message.page = BigInt(object.page); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - return message; - }, - toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino { - const obj: any = {}; - if (message.events) { - obj.events = message.events.map(e => e); - } else { - obj.events = message.events; - } - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; - obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - return obj; - }, - fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest { - return GetTxsEventRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg { - return { - type: "cosmos-sdk/GetTxsEventRequest", - value: GetTxsEventRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest { - return GetTxsEventRequest.decode(message.value); - }, - toProto(message: GetTxsEventRequest): Uint8Array { - return GetTxsEventRequest.encode(message).finish(); - }, - toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - value: GetTxsEventRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxsEventResponse(): GetTxsEventResponse { - return { - txs: [], - txResponses: [], - pagination: undefined, - total: BigInt(0) - }; -} -export const GetTxsEventResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - encode(message: GetTxsEventResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.txs) { - Tx.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.txResponses) { - TxResponse.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - if (message.total !== BigInt(0)) { - writer.uint32(32).uint64(message.total); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(Tx.decode(reader, reader.uint32())); - break; - case 2: - message.txResponses.push(TxResponse.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 4: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetTxsEventResponse { - return { - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => Tx.fromJSON(e)) : [], - txResponses: Array.isArray(object?.txResponses) ? object.txResponses.map((e: any) => TxResponse.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined, - total: isSet(object.total) ? BigInt(object.total.toString()) : BigInt(0) - }; - }, - toJSON(message: GetTxsEventResponse): unknown { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toJSON(e) : undefined); - } else { - obj.txs = []; - } - if (message.txResponses) { - obj.txResponses = message.txResponses.map(e => e ? TxResponse.toJSON(e) : undefined); - } else { - obj.txResponses = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - message.total !== undefined && (obj.total = (message.total || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): GetTxsEventResponse { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; - message.txResponses = object.txResponses?.map(e => TxResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; - message.txResponses = object.tx_responses?.map(e => TxResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); - } else { - obj.txs = message.txs; - } - if (message.txResponses) { - obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined); - } else { - obj.tx_responses = message.txResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse { - return GetTxsEventResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg { - return { - type: "cosmos-sdk/GetTxsEventResponse", - value: GetTxsEventResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse { - return GetTxsEventResponse.decode(message.value); - }, - toProto(message: GetTxsEventResponse): Uint8Array { - return GetTxsEventResponse.encode(message).finish(); - }, - toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - value: GetTxsEventResponse.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxRequest(): BroadcastTxRequest { - return { - txBytes: new Uint8Array(), - mode: 0 - }; -} -export const BroadcastTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - encode(message: BroadcastTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.txBytes.length !== 0) { - writer.uint32(10).bytes(message.txBytes); - } - if (message.mode !== 0) { - writer.uint32(16).int32(message.mode); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txBytes = reader.bytes(); - break; - case 2: - message.mode = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BroadcastTxRequest { - return { - txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array(), - mode: isSet(object.mode) ? broadcastModeFromJSON(object.mode) : -1 - }; - }, - toJSON(message: BroadcastTxRequest): unknown { - const obj: any = {}; - message.txBytes !== undefined && (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array())); - message.mode !== undefined && (obj.mode = broadcastModeToJSON(message.mode)); - return obj; - }, - fromPartial(object: Partial): BroadcastTxRequest { - const message = createBaseBroadcastTxRequest(); - message.txBytes = object.txBytes ?? new Uint8Array(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest { - const message = createBaseBroadcastTxRequest(); - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = bytesFromBase64(object.tx_bytes); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino { - const obj: any = {}; - obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest { - return BroadcastTxRequest.fromAmino(object.value); - }, - toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg { - return { - type: "cosmos-sdk/BroadcastTxRequest", - value: BroadcastTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest { - return BroadcastTxRequest.decode(message.value); - }, - toProto(message: BroadcastTxRequest): Uint8Array { - return BroadcastTxRequest.encode(message).finish(); - }, - toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - value: BroadcastTxRequest.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxResponse(): BroadcastTxResponse { - return { - txResponse: undefined - }; -} -export const BroadcastTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - encode(message: BroadcastTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.txResponse !== undefined) { - TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txResponse = TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BroadcastTxResponse { - return { - txResponse: isSet(object.txResponse) ? TxResponse.fromJSON(object.txResponse) : undefined - }; - }, - toJSON(message: BroadcastTxResponse): unknown { - const obj: any = {}; - message.txResponse !== undefined && (obj.txResponse = message.txResponse ? TxResponse.toJSON(message.txResponse) : undefined); - return obj; - }, - fromPartial(object: Partial): BroadcastTxResponse { - const message = createBaseBroadcastTxResponse(); - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse { - const message = createBaseBroadcastTxResponse(); - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino { - const obj: any = {}; - obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse { - return BroadcastTxResponse.fromAmino(object.value); - }, - toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg { - return { - type: "cosmos-sdk/BroadcastTxResponse", - value: BroadcastTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse { - return BroadcastTxResponse.decode(message.value); - }, - toProto(message: BroadcastTxResponse): Uint8Array { - return BroadcastTxResponse.encode(message).finish(); - }, - toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - value: BroadcastTxResponse.encode(message).finish() - }; - } -}; -function createBaseSimulateRequest(): SimulateRequest { - return { - tx: undefined, - txBytes: new Uint8Array() - }; -} -export const SimulateRequest = { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - encode(message: SimulateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tx !== undefined) { - Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txBytes.length !== 0) { - writer.uint32(18).bytes(message.txBytes); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SimulateRequest { - return { - tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined, - txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array() - }; - }, - toJSON(message: SimulateRequest): unknown { - const obj: any = {}; - message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined); - message.txBytes !== undefined && (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): SimulateRequest { - const message = createBaseSimulateRequest(); - message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; - message.txBytes = object.txBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object: SimulateRequestAmino): SimulateRequest { - const message = createBaseSimulateRequest(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = Tx.fromAmino(object.tx); - } - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = bytesFromBase64(object.tx_bytes); - } - return message; - }, - toAmino(message: SimulateRequest): SimulateRequestAmino { - const obj: any = {}; - obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; - obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; - return obj; - }, - fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest { - return SimulateRequest.fromAmino(object.value); - }, - toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg { - return { - type: "cosmos-sdk/SimulateRequest", - value: SimulateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest { - return SimulateRequest.decode(message.value); - }, - toProto(message: SimulateRequest): Uint8Array { - return SimulateRequest.encode(message).finish(); - }, - toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - value: SimulateRequest.encode(message).finish() - }; - } -}; -function createBaseSimulateResponse(): SimulateResponse { - return { - gasInfo: undefined, - result: undefined - }; -} -export const SimulateResponse = { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - encode(message: SimulateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.gasInfo !== undefined) { - GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SimulateResponse { - return { - gasInfo: isSet(object.gasInfo) ? GasInfo.fromJSON(object.gasInfo) : undefined, - result: isSet(object.result) ? Result.fromJSON(object.result) : undefined - }; - }, - toJSON(message: SimulateResponse): unknown { - const obj: any = {}; - message.gasInfo !== undefined && (obj.gasInfo = message.gasInfo ? GasInfo.toJSON(message.gasInfo) : undefined); - message.result !== undefined && (obj.result = message.result ? Result.toJSON(message.result) : undefined); - return obj; - }, - fromPartial(object: Partial): SimulateResponse { - const message = createBaseSimulateResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object: SimulateResponseAmino): SimulateResponse { - const message = createBaseSimulateResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = Result.fromAmino(object.result); - } - return message; - }, - toAmino(message: SimulateResponse): SimulateResponseAmino { - const obj: any = {}; - obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse { - return SimulateResponse.fromAmino(object.value); - }, - toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg { - return { - type: "cosmos-sdk/SimulateResponse", - value: SimulateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse { - return SimulateResponse.decode(message.value); - }, - toProto(message: SimulateResponse): Uint8Array { - return SimulateResponse.encode(message).finish(); - }, - toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - value: SimulateResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxRequest(): GetTxRequest { - return { - hash: "" - }; -} -export const GetTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - encode(message: GetTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetTxRequest { - return { - hash: isSet(object.hash) ? String(object.hash) : "" - }; - }, - toJSON(message: GetTxRequest): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = message.hash); - return obj; - }, - fromPartial(object: Partial): GetTxRequest { - const message = createBaseGetTxRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object: GetTxRequestAmino): GetTxRequest { - const message = createBaseGetTxRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message: GetTxRequest): GetTxRequestAmino { - const obj: any = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest { - return GetTxRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg { - return { - type: "cosmos-sdk/GetTxRequest", - value: GetTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest { - return GetTxRequest.decode(message.value); - }, - toProto(message: GetTxRequest): Uint8Array { - return GetTxRequest.encode(message).finish(); - }, - toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - value: GetTxRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxResponse(): GetTxResponse { - return { - tx: undefined, - txResponse: undefined - }; -} -export const GetTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - encode(message: GetTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tx !== undefined) { - Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txResponse !== undefined) { - TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txResponse = TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetTxResponse { - return { - tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined, - txResponse: isSet(object.txResponse) ? TxResponse.fromJSON(object.txResponse) : undefined - }; - }, - toJSON(message: GetTxResponse): unknown { - const obj: any = {}; - message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined); - message.txResponse !== undefined && (obj.txResponse = message.txResponse ? TxResponse.toJSON(message.txResponse) : undefined); - return obj; - }, - fromPartial(object: Partial): GetTxResponse { - const message = createBaseGetTxResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object: GetTxResponseAmino): GetTxResponse { - const message = createBaseGetTxResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = Tx.fromAmino(object.tx); - } - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message: GetTxResponse): GetTxResponseAmino { - const obj: any = {}; - obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; - obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse { - return GetTxResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg { - return { - type: "cosmos-sdk/GetTxResponse", - value: GetTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse { - return GetTxResponse.decode(message.value); - }, - toProto(message: GetTxResponse): Uint8Array { - return GetTxResponse.encode(message).finish(); - }, - toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - value: GetTxResponse.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsRequest(): GetBlockWithTxsRequest { - return { - height: BigInt(0), - pagination: undefined - }; -} -export const GetBlockWithTxsRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - encode(message: GetBlockWithTxsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetBlockWithTxsRequest { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetBlockWithTxsRequest): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetBlockWithTxsRequest { - const message = createBaseGetBlockWithTxsRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest { - const message = createBaseGetBlockWithTxsRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest { - return GetBlockWithTxsRequest.fromAmino(object.value); - }, - toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg { - return { - type: "cosmos-sdk/GetBlockWithTxsRequest", - value: GetBlockWithTxsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest { - return GetBlockWithTxsRequest.decode(message.value); - }, - toProto(message: GetBlockWithTxsRequest): Uint8Array { - return GetBlockWithTxsRequest.encode(message).finish(); - }, - toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - value: GetBlockWithTxsRequest.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsResponse(): GetBlockWithTxsResponse { - return { - txs: [], - blockId: undefined, - block: undefined, - pagination: undefined - }; -} -export const GetBlockWithTxsResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - encode(message: GetBlockWithTxsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.txs) { - Tx.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); - } - if (message.block !== undefined) { - Block.encode(message.block, writer.uint32(26).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(Tx.decode(reader, reader.uint32())); - break; - case 2: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 3: - message.block = Block.decode(reader, reader.uint32()); - break; - case 4: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GetBlockWithTxsResponse { - return { - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => Tx.fromJSON(e)) : [], - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - block: isSet(object.block) ? Block.fromJSON(object.block) : undefined, - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: GetBlockWithTxsResponse): unknown { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toJSON(e) : undefined); - } else { - obj.txs = []; - } - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.block !== undefined && (obj.block = message.block ? Block.toJSON(message.block) : undefined); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): GetBlockWithTxsResponse { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block !== undefined && object.block !== null) { - message.block = Block.fromAmino(object.block); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); - } else { - obj.txs = message.txs; - } - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block = message.block ? Block.toAmino(message.block) : undefined; - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse { - return GetBlockWithTxsResponse.fromAmino(object.value); - }, - toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg { - return { - type: "cosmos-sdk/GetBlockWithTxsResponse", - value: GetBlockWithTxsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse { - return GetBlockWithTxsResponse.decode(message.value); - }, - toProto(message: GetBlockWithTxsResponse): Uint8Array { - return GetBlockWithTxsResponse.encode(message).finish(); - }, - toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - value: GetBlockWithTxsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/tx/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/tx/v1beta1/tx.ts deleted file mode 100644 index 5775a835..00000000 --- a/packages/api/src/codegen/cosmos/tx/v1beta1/tx.ts +++ /dev/null @@ -1,2260 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode, signModeFromJSON, signModeToJSON } from "../signing/v1beta1/signing"; -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** Tx is the standard type used for broadcasting transactions. */ -export interface Tx { - /** body is the processable content of the transaction */ - body?: TxBody; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - authInfo?: AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tx"; - value: Uint8Array; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxAmino { - /** body is the processable content of the transaction */ - body?: TxBodyAmino; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - auth_info?: AuthInfoAmino; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxAminoMsg { - type: "cosmos-sdk/Tx"; - value: TxAmino; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxSDKType { - body?: TxBodySDKType; - auth_info?: AuthInfoSDKType; - signatures: Uint8Array[]; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRaw { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - authInfoBytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxRaw"; - value: Uint8Array; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawAmino { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - auth_info_bytes?: string; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxRawAminoMsg { - type: "cosmos-sdk/TxRaw"; - value: TxRawAmino; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - signatures: Uint8Array[]; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDoc { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - authInfoBytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chainId: string; - /** account_number is the account number of the account in state */ - accountNumber: bigint; -} -export interface SignDocProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDoc"; - value: Uint8Array; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - auth_info_bytes?: string; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chain_id?: string; - /** account_number is the account number of the account in state */ - account_number?: string; -} -export interface SignDocAminoMsg { - type: "cosmos-sdk/SignDoc"; - value: SignDocAmino; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - chain_id: string; - account_number: bigint; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAux { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** public_key is the public key of the signing account. */ - publicKey?: Any; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chainId: string; - /** account_number is the account number of the account in state. */ - accountNumber: bigint; - /** sequence is the sequence number of the signing account. */ - sequence: bigint; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: Tip; -} -export interface SignDocDirectAuxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; - value: Uint8Array; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** public_key is the public key of the signing account. */ - public_key?: AnyAmino; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chain_id?: string; - /** account_number is the account number of the account in state. */ - account_number?: string; - /** sequence is the sequence number of the signing account. */ - sequence?: string; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: TipAmino; -} -export interface SignDocDirectAuxAminoMsg { - type: "cosmos-sdk/SignDocDirectAux"; - value: SignDocDirectAuxAmino; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxSDKType { - body_bytes: Uint8Array; - public_key?: AnySDKType; - chain_id: string; - account_number: bigint; - sequence: bigint; - tip?: TipSDKType; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: Any[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeoutHeight: bigint; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extensionOptions: Any[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - nonCriticalExtensionOptions: Any[]; -} -export interface TxBodyProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxBody"; - value: Uint8Array; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodyAmino { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages?: AnyAmino[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo?: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeout_height?: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options?: AnyAmino[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options?: AnyAmino[]; -} -export interface TxBodyAminoMsg { - type: "cosmos-sdk/TxBody"; - value: TxBodyAmino; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodySDKType { - messages: AnySDKType[]; - memo: string; - timeout_height: bigint; - extension_options: AnySDKType[]; - non_critical_extension_options: AnySDKType[]; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signerInfos: SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: Fee; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: Tip; -} -export interface AuthInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; - value: Uint8Array; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoAmino { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos?: SignerInfoAmino[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: FeeAmino; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: TipAmino; -} -export interface AuthInfoAminoMsg { - type: "cosmos-sdk/AuthInfo"; - value: AuthInfoAmino; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoSDKType { - signer_infos: SignerInfoSDKType[]; - fee?: FeeSDKType; - tip?: TipSDKType; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfo { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - publicKey?: Any; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - modeInfo?: ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: bigint; -} -export interface SignerInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; - value: Uint8Array; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoAmino { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - public_key?: AnyAmino; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - mode_info?: ModeInfoAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence?: string; -} -export interface SignerInfoAminoMsg { - type: "cosmos-sdk/SignerInfo"; - value: SignerInfoAmino; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoSDKType { - public_key?: AnySDKType; - mode_info?: ModeInfoSDKType; - sequence: bigint; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfo { - /** single represents a single signer */ - single?: ModeInfo_Single; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_Multi; -} -export interface ModeInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; - value: Uint8Array; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoAmino { - /** single represents a single signer */ - single?: ModeInfo_SingleAmino; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_MultiAmino; -} -export interface ModeInfoAminoMsg { - type: "cosmos-sdk/ModeInfo"; - value: ModeInfoAmino; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoSDKType { - single?: ModeInfo_SingleSDKType; - multi?: ModeInfo_MultiSDKType; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Single"; - value: Uint8Array; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; -} -export interface ModeInfo_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: ModeInfo_SingleAmino; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleSDKType { - mode: SignMode; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - modeInfos: ModeInfo[]; -} -export interface ModeInfo_MultiProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos?: ModeInfoAmino[]; -} -export interface ModeInfo_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: ModeInfo_MultiAmino; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiSDKType { - bitarray?: CompactBitArraySDKType; - mode_infos: ModeInfoSDKType[]; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface Fee { - /** amount is the amount of coins to be paid as a fee */ - amount: Coin[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gasLimit: bigint; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Fee"; - value: Uint8Array; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeAmino { - /** amount is the amount of coins to be paid as a fee */ - amount?: CoinAmino[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gas_limit?: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer?: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter?: string; -} -export interface FeeAminoMsg { - type: "cosmos-sdk/Fee"; - value: FeeAmino; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeSDKType { - amount: CoinSDKType[]; - gas_limit: bigint; - payer: string; - granter: string; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface Tip { - /** amount is the amount of the tip */ - amount: Coin[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tip"; - value: Uint8Array; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipAmino { - /** amount is the amount of the tip */ - amount?: CoinAmino[]; - /** tipper is the address of the account paying for the tip */ - tipper?: string; -} -export interface TipAminoMsg { - type: "cosmos-sdk/Tip"; - value: TipAmino; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipSDKType { - amount: CoinSDKType[]; - tipper: string; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerData { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - signDoc?: SignDocDirectAux; - /** mode is the signing mode of the single signer. */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; - value: Uint8Array; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataAmino { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address?: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - sign_doc?: SignDocDirectAuxAmino; - /** mode is the signing mode of the single signer. */ - mode?: SignMode; - /** sig is the signature of the sign doc. */ - sig?: string; -} -export interface AuxSignerDataAminoMsg { - type: "cosmos-sdk/AuxSignerData"; - value: AuxSignerDataAmino; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataSDKType { - address: string; - sign_doc?: SignDocDirectAuxSDKType; - mode: SignMode; - sig: Uint8Array; -} -function createBaseTx(): Tx { - return { - body: undefined, - authInfo: undefined, - signatures: [] - }; -} -export const Tx = { - typeUrl: "/cosmos.tx.v1beta1.Tx", - encode(message: Tx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.body !== undefined) { - TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); - } - if (message.authInfo !== undefined) { - AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Tx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.body = TxBody.decode(reader, reader.uint32()); - break; - case 2: - message.authInfo = AuthInfo.decode(reader, reader.uint32()); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Tx { - return { - body: isSet(object.body) ? TxBody.fromJSON(object.body) : undefined, - authInfo: isSet(object.authInfo) ? AuthInfo.fromJSON(object.authInfo) : undefined, - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: Tx): unknown { - const obj: any = {}; - message.body !== undefined && (obj.body = message.body ? TxBody.toJSON(message.body) : undefined); - message.authInfo !== undefined && (obj.authInfo = message.authInfo ? AuthInfo.toJSON(message.authInfo) : undefined); - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): Tx { - const message = createBaseTx(); - message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined; - message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined; - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object: TxAmino): Tx { - const message = createBaseTx(); - if (object.body !== undefined && object.body !== null) { - message.body = TxBody.fromAmino(object.body); - } - if (object.auth_info !== undefined && object.auth_info !== null) { - message.authInfo = AuthInfo.fromAmino(object.auth_info); - } - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: Tx): TxAmino { - const obj: any = {}; - obj.body = message.body ? TxBody.toAmino(message.body) : undefined; - obj.auth_info = message.authInfo ? AuthInfo.toAmino(message.authInfo) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: TxAminoMsg): Tx { - return Tx.fromAmino(object.value); - }, - toAminoMsg(message: Tx): TxAminoMsg { - return { - type: "cosmos-sdk/Tx", - value: Tx.toAmino(message) - }; - }, - fromProtoMsg(message: TxProtoMsg): Tx { - return Tx.decode(message.value); - }, - toProto(message: Tx): Uint8Array { - return Tx.encode(message).finish(); - }, - toProtoMsg(message: Tx): TxProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.Tx", - value: Tx.encode(message).finish() - }; - } -}; -function createBaseTxRaw(): TxRaw { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - signatures: [] - }; -} -export const TxRaw = { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - encode(message: TxRaw, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxRaw { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxRaw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxRaw { - return { - bodyBytes: isSet(object.bodyBytes) ? bytesFromBase64(object.bodyBytes) : new Uint8Array(), - authInfoBytes: isSet(object.authInfoBytes) ? bytesFromBase64(object.authInfoBytes) : new Uint8Array(), - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: TxRaw): unknown { - const obj: any = {}; - message.bodyBytes !== undefined && (obj.bodyBytes = base64FromBytes(message.bodyBytes !== undefined ? message.bodyBytes : new Uint8Array())); - message.authInfoBytes !== undefined && (obj.authInfoBytes = base64FromBytes(message.authInfoBytes !== undefined ? message.authInfoBytes : new Uint8Array())); - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): TxRaw { - const message = createBaseTxRaw(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object: TxRawAmino): TxRaw { - const message = createBaseTxRaw(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); - } - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: TxRaw): TxRawAmino { - const obj: any = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: TxRawAminoMsg): TxRaw { - return TxRaw.fromAmino(object.value); - }, - toAminoMsg(message: TxRaw): TxRawAminoMsg { - return { - type: "cosmos-sdk/TxRaw", - value: TxRaw.toAmino(message) - }; - }, - fromProtoMsg(message: TxRawProtoMsg): TxRaw { - return TxRaw.decode(message.value); - }, - toProto(message: TxRaw): Uint8Array { - return TxRaw.encode(message).finish(); - }, - toProtoMsg(message: TxRaw): TxRawProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - value: TxRaw.encode(message).finish() - }; - } -}; -function createBaseSignDoc(): SignDoc { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - chainId: "", - accountNumber: BigInt(0) - }; -} -export const SignDoc = { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - encode(message: SignDoc, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignDoc { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDoc(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignDoc { - return { - bodyBytes: isSet(object.bodyBytes) ? bytesFromBase64(object.bodyBytes) : new Uint8Array(), - authInfoBytes: isSet(object.authInfoBytes) ? bytesFromBase64(object.authInfoBytes) : new Uint8Array(), - chainId: isSet(object.chainId) ? String(object.chainId) : "", - accountNumber: isSet(object.accountNumber) ? BigInt(object.accountNumber.toString()) : BigInt(0) - }; - }, - toJSON(message: SignDoc): unknown { - const obj: any = {}; - message.bodyBytes !== undefined && (obj.bodyBytes = base64FromBytes(message.bodyBytes !== undefined ? message.bodyBytes : new Uint8Array())); - message.authInfoBytes !== undefined && (obj.authInfoBytes = base64FromBytes(message.authInfoBytes !== undefined ? message.authInfoBytes : new Uint8Array())); - message.chainId !== undefined && (obj.chainId = message.chainId); - message.accountNumber !== undefined && (obj.accountNumber = (message.accountNumber || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): SignDoc { - const message = createBaseSignDoc(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object: SignDocAmino): SignDoc { - const message = createBaseSignDoc(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - return message; - }, - toAmino(message: SignDoc): SignDocAmino { - const obj: any = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object: SignDocAminoMsg): SignDoc { - return SignDoc.fromAmino(object.value); - }, - toAminoMsg(message: SignDoc): SignDocAminoMsg { - return { - type: "cosmos-sdk/SignDoc", - value: SignDoc.toAmino(message) - }; - }, - fromProtoMsg(message: SignDocProtoMsg): SignDoc { - return SignDoc.decode(message.value); - }, - toProto(message: SignDoc): Uint8Array { - return SignDoc.encode(message).finish(); - }, - toProtoMsg(message: SignDoc): SignDocProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - value: SignDoc.encode(message).finish() - }; - } -}; -function createBaseSignDocDirectAux(): SignDocDirectAux { - return { - bodyBytes: new Uint8Array(), - publicKey: undefined, - chainId: "", - accountNumber: BigInt(0), - sequence: BigInt(0), - tip: undefined - }; -} -export const SignDocDirectAux = { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - encode(message: SignDocDirectAux, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(40).uint64(message.sequence); - } - if (message.tip !== undefined) { - Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDocDirectAux(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - case 5: - message.sequence = reader.uint64(); - break; - case 6: - message.tip = Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignDocDirectAux { - return { - bodyBytes: isSet(object.bodyBytes) ? bytesFromBase64(object.bodyBytes) : new Uint8Array(), - publicKey: isSet(object.publicKey) ? Any.fromJSON(object.publicKey) : undefined, - chainId: isSet(object.chainId) ? String(object.chainId) : "", - accountNumber: isSet(object.accountNumber) ? BigInt(object.accountNumber.toString()) : BigInt(0), - sequence: isSet(object.sequence) ? BigInt(object.sequence.toString()) : BigInt(0), - tip: isSet(object.tip) ? Tip.fromJSON(object.tip) : undefined - }; - }, - toJSON(message: SignDocDirectAux): unknown { - const obj: any = {}; - message.bodyBytes !== undefined && (obj.bodyBytes = base64FromBytes(message.bodyBytes !== undefined ? message.bodyBytes : new Uint8Array())); - message.publicKey !== undefined && (obj.publicKey = message.publicKey ? Any.toJSON(message.publicKey) : undefined); - message.chainId !== undefined && (obj.chainId = message.chainId); - message.accountNumber !== undefined && (obj.accountNumber = (message.accountNumber || BigInt(0)).toString()); - message.sequence !== undefined && (obj.sequence = (message.sequence || BigInt(0)).toString()); - message.tip !== undefined && (obj.tip = message.tip ? Tip.toJSON(message.tip) : undefined); - return obj; - }, - fromPartial(object: Partial): SignDocDirectAux { - const message = createBaseSignDocDirectAux(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux { - const message = createBaseSignDocDirectAux(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino { - const obj: any = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux { - return SignDocDirectAux.fromAmino(object.value); - }, - toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg { - return { - type: "cosmos-sdk/SignDocDirectAux", - value: SignDocDirectAux.toAmino(message) - }; - }, - fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux { - return SignDocDirectAux.decode(message.value); - }, - toProto(message: SignDocDirectAux): Uint8Array { - return SignDocDirectAux.encode(message).finish(); - }, - toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - value: SignDocDirectAux.encode(message).finish() - }; - } -}; -function createBaseTxBody(): TxBody { - return { - messages: [], - memo: "", - timeoutHeight: BigInt(0), - extensionOptions: [], - nonCriticalExtensionOptions: [] - }; -} -export const TxBody = { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - encode(message: TxBody, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.messages) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.memo !== "") { - writer.uint32(18).string(message.memo); - } - if (message.timeoutHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.timeoutHeight); - } - for (const v of message.extensionOptions) { - Any.encode(v!, writer.uint32(8186).fork()).ldelim(); - } - for (const v of message.nonCriticalExtensionOptions) { - Any.encode(v!, writer.uint32(16378).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxBody { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxBody(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.memo = reader.string(); - break; - case 3: - message.timeoutHeight = reader.uint64(); - break; - case 1023: - message.extensionOptions.push(Any.decode(reader, reader.uint32())); - break; - case 2047: - message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxBody { - return { - messages: Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [], - memo: isSet(object.memo) ? String(object.memo) : "", - timeoutHeight: isSet(object.timeoutHeight) ? BigInt(object.timeoutHeight.toString()) : BigInt(0), - extensionOptions: Array.isArray(object?.extensionOptions) ? object.extensionOptions.map((e: any) => Any.fromJSON(e)) : [], - nonCriticalExtensionOptions: Array.isArray(object?.nonCriticalExtensionOptions) ? object.nonCriticalExtensionOptions.map((e: any) => Any.fromJSON(e)) : [] - }; - }, - toJSON(message: TxBody): unknown { - const obj: any = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.messages = []; - } - message.memo !== undefined && (obj.memo = message.memo); - message.timeoutHeight !== undefined && (obj.timeoutHeight = (message.timeoutHeight || BigInt(0)).toString()); - if (message.extensionOptions) { - obj.extensionOptions = message.extensionOptions.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.extensionOptions = []; - } - if (message.nonCriticalExtensionOptions) { - obj.nonCriticalExtensionOptions = message.nonCriticalExtensionOptions.map(e => e ? Any.toJSON(e) : undefined); - } else { - obj.nonCriticalExtensionOptions = []; - } - return obj; - }, - fromPartial(object: Partial): TxBody { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.memo = object.memo ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); - message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || []; - message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object: TxBodyAmino): TxBody { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.memo !== undefined && object.memo !== null) { - message.memo = object.memo; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = BigInt(object.timeout_height); - } - message.extensionOptions = object.extension_options?.map(e => Any.fromAmino(e)) || []; - message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message: TxBody): TxBodyAmino { - const obj: any = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.messages = message.messages; - } - obj.memo = message.memo === "" ? undefined : message.memo; - obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; - if (message.extensionOptions) { - obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.extension_options = message.extensionOptions; - } - if (message.nonCriticalExtensionOptions) { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined); - } else { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions; - } - return obj; - }, - fromAminoMsg(object: TxBodyAminoMsg): TxBody { - return TxBody.fromAmino(object.value); - }, - toAminoMsg(message: TxBody): TxBodyAminoMsg { - return { - type: "cosmos-sdk/TxBody", - value: TxBody.toAmino(message) - }; - }, - fromProtoMsg(message: TxBodyProtoMsg): TxBody { - return TxBody.decode(message.value); - }, - toProto(message: TxBody): Uint8Array { - return TxBody.encode(message).finish(); - }, - toProtoMsg(message: TxBody): TxBodyProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - value: TxBody.encode(message).finish() - }; - } -}; -function createBaseAuthInfo(): AuthInfo { - return { - signerInfos: [], - fee: undefined, - tip: undefined - }; -} -export const AuthInfo = { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - encode(message: AuthInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.signerInfos) { - SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.fee !== undefined) { - Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - if (message.tip !== undefined) { - Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signerInfos.push(SignerInfo.decode(reader, reader.uint32())); - break; - case 2: - message.fee = Fee.decode(reader, reader.uint32()); - break; - case 3: - message.tip = Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AuthInfo { - return { - signerInfos: Array.isArray(object?.signerInfos) ? object.signerInfos.map((e: any) => SignerInfo.fromJSON(e)) : [], - fee: isSet(object.fee) ? Fee.fromJSON(object.fee) : undefined, - tip: isSet(object.tip) ? Tip.fromJSON(object.tip) : undefined - }; - }, - toJSON(message: AuthInfo): unknown { - const obj: any = {}; - if (message.signerInfos) { - obj.signerInfos = message.signerInfos.map(e => e ? SignerInfo.toJSON(e) : undefined); - } else { - obj.signerInfos = []; - } - message.fee !== undefined && (obj.fee = message.fee ? Fee.toJSON(message.fee) : undefined); - message.tip !== undefined && (obj.tip = message.tip ? Tip.toJSON(message.tip) : undefined); - return obj; - }, - fromPartial(object: Partial): AuthInfo { - const message = createBaseAuthInfo(); - message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || []; - message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined; - message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object: AuthInfoAmino): AuthInfo { - const message = createBaseAuthInfo(); - message.signerInfos = object.signer_infos?.map(e => SignerInfo.fromAmino(e)) || []; - if (object.fee !== undefined && object.fee !== null) { - message.fee = Fee.fromAmino(object.fee); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message: AuthInfo): AuthInfoAmino { - const obj: any = {}; - if (message.signerInfos) { - obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined); - } else { - obj.signer_infos = message.signerInfos; - } - obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined; - obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo { - return AuthInfo.fromAmino(object.value); - }, - toAminoMsg(message: AuthInfo): AuthInfoAminoMsg { - return { - type: "cosmos-sdk/AuthInfo", - value: AuthInfo.toAmino(message) - }; - }, - fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo { - return AuthInfo.decode(message.value); - }, - toProto(message: AuthInfo): Uint8Array { - return AuthInfo.encode(message).finish(); - }, - toProtoMsg(message: AuthInfo): AuthInfoProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - value: AuthInfo.encode(message).finish() - }; - } -}; -function createBaseSignerInfo(): SignerInfo { - return { - publicKey: undefined, - modeInfo: undefined, - sequence: BigInt(0) - }; -} -export const SignerInfo = { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - encode(message: SignerInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.modeInfo !== undefined) { - ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignerInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfo = ModeInfo.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignerInfo { - return { - publicKey: isSet(object.publicKey) ? Any.fromJSON(object.publicKey) : undefined, - modeInfo: isSet(object.modeInfo) ? ModeInfo.fromJSON(object.modeInfo) : undefined, - sequence: isSet(object.sequence) ? BigInt(object.sequence.toString()) : BigInt(0) - }; - }, - toJSON(message: SignerInfo): unknown { - const obj: any = {}; - message.publicKey !== undefined && (obj.publicKey = message.publicKey ? Any.toJSON(message.publicKey) : undefined); - message.modeInfo !== undefined && (obj.modeInfo = message.modeInfo ? ModeInfo.toJSON(message.modeInfo) : undefined); - message.sequence !== undefined && (obj.sequence = (message.sequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): SignerInfo { - const message = createBaseSignerInfo(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: SignerInfoAmino): SignerInfo { - const message = createBaseSignerInfo(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.mode_info !== undefined && object.mode_info !== null) { - message.modeInfo = ModeInfo.fromAmino(object.mode_info); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message: SignerInfo): SignerInfoAmino { - const obj: any = {}; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo { - return SignerInfo.fromAmino(object.value); - }, - toAminoMsg(message: SignerInfo): SignerInfoAminoMsg { - return { - type: "cosmos-sdk/SignerInfo", - value: SignerInfo.toAmino(message) - }; - }, - fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo { - return SignerInfo.decode(message.value); - }, - toProto(message: SignerInfo): Uint8Array { - return SignerInfo.encode(message).finish(); - }, - toProtoMsg(message: SignerInfo): SignerInfoProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - value: SignerInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo(): ModeInfo { - return { - single: undefined, - multi: undefined - }; -} -export const ModeInfo = { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - encode(message: ModeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.single !== undefined) { - ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = ModeInfo_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = ModeInfo_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModeInfo { - return { - single: isSet(object.single) ? ModeInfo_Single.fromJSON(object.single) : undefined, - multi: isSet(object.multi) ? ModeInfo_Multi.fromJSON(object.multi) : undefined - }; - }, - toJSON(message: ModeInfo): unknown { - const obj: any = {}; - message.single !== undefined && (obj.single = message.single ? ModeInfo_Single.toJSON(message.single) : undefined); - message.multi !== undefined && (obj.multi = message.multi ? ModeInfo_Multi.toJSON(message.multi) : undefined); - return obj; - }, - fromPartial(object: Partial): ModeInfo { - const message = createBaseModeInfo(); - message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object: ModeInfoAmino): ModeInfo { - const message = createBaseModeInfo(); - if (object.single !== undefined && object.single !== null) { - message.single = ModeInfo_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = ModeInfo_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message: ModeInfo): ModeInfoAmino { - const obj: any = {}; - obj.single = message.single ? ModeInfo_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? ModeInfo_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo { - return ModeInfo.fromAmino(object.value); - }, - toAminoMsg(message: ModeInfo): ModeInfoAminoMsg { - return { - type: "cosmos-sdk/ModeInfo", - value: ModeInfo.toAmino(message) - }; - }, - fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo { - return ModeInfo.decode(message.value); - }, - toProto(message: ModeInfo): Uint8Array { - return ModeInfo.encode(message).finish(); - }, - toProtoMsg(message: ModeInfo): ModeInfoProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - value: ModeInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Single(): ModeInfo_Single { - return { - mode: 0 - }; -} -export const ModeInfo_Single = { - typeUrl: "/cosmos.tx.v1beta1.Single", - encode(message: ModeInfo_Single, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModeInfo_Single { - return { - mode: isSet(object.mode) ? signModeFromJSON(object.mode) : -1 - }; - }, - toJSON(message: ModeInfo_Single): unknown { - const obj: any = {}; - message.mode !== undefined && (obj.mode = signModeToJSON(message.mode)); - return obj; - }, - fromPartial(object: Partial): ModeInfo_Single { - const message = createBaseModeInfo_Single(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single { - const message = createBaseModeInfo_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino { - const obj: any = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single { - return ModeInfo_Single.fromAmino(object.value); - }, - toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg { - return { - type: "cosmos-sdk/Single", - value: ModeInfo_Single.toAmino(message) - }; - }, - fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single { - return ModeInfo_Single.decode(message.value); - }, - toProto(message: ModeInfo_Single): Uint8Array { - return ModeInfo_Single.encode(message).finish(); - }, - toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.Single", - value: ModeInfo_Single.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Multi(): ModeInfo_Multi { - return { - bitarray: undefined, - modeInfos: [] - }; -} -export const ModeInfo_Multi = { - typeUrl: "/cosmos.tx.v1beta1.Multi", - encode(message: ModeInfo_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bitarray !== undefined) { - CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.modeInfos) { - ModeInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfos.push(ModeInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModeInfo_Multi { - return { - bitarray: isSet(object.bitarray) ? CompactBitArray.fromJSON(object.bitarray) : undefined, - modeInfos: Array.isArray(object?.modeInfos) ? object.modeInfos.map((e: any) => ModeInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: ModeInfo_Multi): unknown { - const obj: any = {}; - message.bitarray !== undefined && (obj.bitarray = message.bitarray ? CompactBitArray.toJSON(message.bitarray) : undefined); - if (message.modeInfos) { - obj.modeInfos = message.modeInfos.map(e => e ? ModeInfo.toJSON(e) : undefined); - } else { - obj.modeInfos = []; - } - return obj; - }, - fromPartial(object: Partial): ModeInfo_Multi { - const message = createBaseModeInfo_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; - message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi { - const message = createBaseModeInfo_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = CompactBitArray.fromAmino(object.bitarray); - } - message.modeInfos = object.mode_infos?.map(e => ModeInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino { - const obj: any = {}; - obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.modeInfos) { - obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined); - } else { - obj.mode_infos = message.modeInfos; - } - return obj; - }, - fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi { - return ModeInfo_Multi.fromAmino(object.value); - }, - toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg { - return { - type: "cosmos-sdk/Multi", - value: ModeInfo_Multi.toAmino(message) - }; - }, - fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi { - return ModeInfo_Multi.decode(message.value); - }, - toProto(message: ModeInfo_Multi): Uint8Array { - return ModeInfo_Multi.encode(message).finish(); - }, - toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.Multi", - value: ModeInfo_Multi.encode(message).finish() - }; - } -}; -function createBaseFee(): Fee { - return { - amount: [], - gasLimit: BigInt(0), - payer: "", - granter: "" - }; -} -export const Fee = { - typeUrl: "/cosmos.tx.v1beta1.Fee", - encode(message: Fee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.gasLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.gasLimit); - } - if (message.payer !== "") { - writer.uint32(26).string(message.payer); - } - if (message.granter !== "") { - writer.uint32(34).string(message.granter); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Fee { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.gasLimit = reader.uint64(); - break; - case 3: - message.payer = reader.string(); - break; - case 4: - message.granter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Fee { - return { - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], - gasLimit: isSet(object.gasLimit) ? BigInt(object.gasLimit.toString()) : BigInt(0), - payer: isSet(object.payer) ? String(object.payer) : "", - granter: isSet(object.granter) ? String(object.granter) : "" - }; - }, - toJSON(message: Fee): unknown { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - message.gasLimit !== undefined && (obj.gasLimit = (message.gasLimit || BigInt(0)).toString()); - message.payer !== undefined && (obj.payer = message.payer); - message.granter !== undefined && (obj.granter = message.granter); - return obj; - }, - fromPartial(object: Partial): Fee { - const message = createBaseFee(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); - message.payer = object.payer ?? ""; - message.granter = object.granter ?? ""; - return message; - }, - fromAmino(object: FeeAmino): Fee { - const message = createBaseFee(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.gas_limit !== undefined && object.gas_limit !== null) { - message.gasLimit = BigInt(object.gas_limit); - } - if (object.payer !== undefined && object.payer !== null) { - message.payer = object.payer; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - return message; - }, - toAmino(message: Fee): FeeAmino { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; - obj.payer = message.payer === "" ? undefined : message.payer; - obj.granter = message.granter === "" ? undefined : message.granter; - return obj; - }, - fromAminoMsg(object: FeeAminoMsg): Fee { - return Fee.fromAmino(object.value); - }, - toAminoMsg(message: Fee): FeeAminoMsg { - return { - type: "cosmos-sdk/Fee", - value: Fee.toAmino(message) - }; - }, - fromProtoMsg(message: FeeProtoMsg): Fee { - return Fee.decode(message.value); - }, - toProto(message: Fee): Uint8Array { - return Fee.encode(message).finish(); - }, - toProtoMsg(message: Fee): FeeProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.Fee", - value: Fee.encode(message).finish() - }; - } -}; -function createBaseTip(): Tip { - return { - amount: [], - tipper: "" - }; -} -export const Tip = { - typeUrl: "/cosmos.tx.v1beta1.Tip", - encode(message: Tip, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.tipper !== "") { - writer.uint32(18).string(message.tipper); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Tip { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTip(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.tipper = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Tip { - return { - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], - tipper: isSet(object.tipper) ? String(object.tipper) : "" - }; - }, - toJSON(message: Tip): unknown { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - message.tipper !== undefined && (obj.tipper = message.tipper); - return obj; - }, - fromPartial(object: Partial): Tip { - const message = createBaseTip(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.tipper = object.tipper ?? ""; - return message; - }, - fromAmino(object: TipAmino): Tip { - const message = createBaseTip(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.tipper !== undefined && object.tipper !== null) { - message.tipper = object.tipper; - } - return message; - }, - toAmino(message: Tip): TipAmino { - const obj: any = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - obj.tipper = message.tipper === "" ? undefined : message.tipper; - return obj; - }, - fromAminoMsg(object: TipAminoMsg): Tip { - return Tip.fromAmino(object.value); - }, - toAminoMsg(message: Tip): TipAminoMsg { - return { - type: "cosmos-sdk/Tip", - value: Tip.toAmino(message) - }; - }, - fromProtoMsg(message: TipProtoMsg): Tip { - return Tip.decode(message.value); - }, - toProto(message: Tip): Uint8Array { - return Tip.encode(message).finish(); - }, - toProtoMsg(message: Tip): TipProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.Tip", - value: Tip.encode(message).finish() - }; - } -}; -function createBaseAuxSignerData(): AuxSignerData { - return { - address: "", - signDoc: undefined, - mode: 0, - sig: new Uint8Array() - }; -} -export const AuxSignerData = { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - encode(message: AuxSignerData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.signDoc !== undefined) { - SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); - } - if (message.mode !== 0) { - writer.uint32(24).int32(message.mode); - } - if (message.sig.length !== 0) { - writer.uint32(34).bytes(message.sig); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuxSignerData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.signDoc = SignDocDirectAux.decode(reader, reader.uint32()); - break; - case 3: - message.mode = (reader.int32() as any); - break; - case 4: - message.sig = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AuxSignerData { - return { - address: isSet(object.address) ? String(object.address) : "", - signDoc: isSet(object.signDoc) ? SignDocDirectAux.fromJSON(object.signDoc) : undefined, - mode: isSet(object.mode) ? signModeFromJSON(object.mode) : -1, - sig: isSet(object.sig) ? bytesFromBase64(object.sig) : new Uint8Array() - }; - }, - toJSON(message: AuxSignerData): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.signDoc !== undefined && (obj.signDoc = message.signDoc ? SignDocDirectAux.toJSON(message.signDoc) : undefined); - message.mode !== undefined && (obj.mode = signModeToJSON(message.mode)); - message.sig !== undefined && (obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): AuxSignerData { - const message = createBaseAuxSignerData(); - message.address = object.address ?? ""; - message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined; - message.mode = object.mode ?? 0; - message.sig = object.sig ?? new Uint8Array(); - return message; - }, - fromAmino(object: AuxSignerDataAmino): AuxSignerData { - const message = createBaseAuxSignerData(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.sign_doc !== undefined && object.sign_doc !== null) { - message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.sig !== undefined && object.sig !== null) { - message.sig = bytesFromBase64(object.sig); - } - return message; - }, - toAmino(message: AuxSignerData): AuxSignerDataAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.sig = message.sig ? base64FromBytes(message.sig) : undefined; - return obj; - }, - fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData { - return AuxSignerData.fromAmino(object.value); - }, - toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg { - return { - type: "cosmos-sdk/AuxSignerData", - value: AuxSignerData.toAmino(message) - }; - }, - fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData { - return AuxSignerData.decode(message.value); - }, - toProto(message: AuxSignerData): Uint8Array { - return AuxSignerData.encode(message).finish(); - }, - toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg { - return { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - value: AuxSignerData.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts deleted file mode 100644 index 40543d68..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - /* CurrentPlan queries the current upgrade plan. */ - async currentPlan(_params: QueryCurrentPlanRequest = {}): Promise { - const endpoint = `cosmos/upgrade/v1beta1/current_plan`; - return await this.req.get(endpoint); - } - /* AppliedPlan queries a previously applied upgrade plan by its name. */ - async appliedPlan(params: QueryAppliedPlanRequest): Promise { - const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries the consensus state that will serve - as a trusted kernel for the next version of this chain. It will only be - stored at the last height of this chain. - UpgradedConsensusState RPC not supported with legacy querier - This rpc is deprecated now that IBC has its own replacement - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ - async upgradedConsensusState(params: QueryUpgradedConsensusStateRequest): Promise { - const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; - return await this.req.get(endpoint); - } - /* ModuleVersions queries the list of module versions from state. - - Since: cosmos-sdk 0.43 */ - async moduleVersions(params: QueryModuleVersionsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.moduleName !== "undefined") { - options.params.module_name = params.moduleName; - } - const endpoint = `cosmos/upgrade/v1beta1/module_versions`; - return await this.req.get(endpoint, options); - } - /* Returns the account with authority to conduct upgrades - - Since: cosmos-sdk 0.46 */ - async authority(_params: QueryAuthorityRequest = {}): Promise { - const endpoint = `cosmos/upgrade/v1beta1/authority`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts deleted file mode 100644 index 042c6fde..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; -/** Query defines the gRPC upgrade querier service. */ -export interface Query { - /** CurrentPlan queries the current upgrade plan. */ - currentPlan(request?: QueryCurrentPlanRequest): Promise; - /** AppliedPlan queries a previously applied upgrade plan by its name. */ - appliedPlan(request: QueryAppliedPlanRequest): Promise; - /** - * UpgradedConsensusState queries the consensus state that will serve - * as a trusted kernel for the next version of this chain. It will only be - * stored at the last height of this chain. - * UpgradedConsensusState RPC not supported with legacy querier - * This rpc is deprecated now that IBC has its own replacement - * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - */ - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - /** - * ModuleVersions queries the list of module versions from state. - * - * Since: cosmos-sdk 0.43 - */ - moduleVersions(request: QueryModuleVersionsRequest): Promise; - /** - * Returns the account with authority to conduct upgrades - * - * Since: cosmos-sdk 0.46 - */ - authority(request?: QueryAuthorityRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - currentPlan(request: QueryCurrentPlanRequest = {}): Promise { - const data = QueryCurrentPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); - return promise.then(data => QueryCurrentPlanResponse.decode(new BinaryReader(data))); - } - appliedPlan(request: QueryAppliedPlanRequest): Promise { - const data = QueryAppliedPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); - return promise.then(data => QueryAppliedPlanResponse.decode(new BinaryReader(data))); - } - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { - const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); - return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); - } - moduleVersions(request: QueryModuleVersionsRequest): Promise { - const data = QueryModuleVersionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); - return promise.then(data => QueryModuleVersionsResponse.decode(new BinaryReader(data))); - } - authority(request: QueryAuthorityRequest = {}): Promise { - const data = QueryAuthorityRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); - return promise.then(data => QueryAuthorityResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - currentPlan(request?: QueryCurrentPlanRequest): Promise { - return queryService.currentPlan(request); - }, - appliedPlan(request: QueryAppliedPlanRequest): Promise { - return queryService.appliedPlan(request); - }, - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { - return queryService.upgradedConsensusState(request); - }, - moduleVersions(request: QueryModuleVersionsRequest): Promise { - return queryService.moduleVersions(request); - }, - authority(request?: QueryAuthorityRequest): Promise { - return queryService.authority(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.ts deleted file mode 100644 index 1dc03091..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/query.ts +++ /dev/null @@ -1,1097 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequest {} -export interface QueryCurrentPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestAmino {} -export interface QueryCurrentPlanRequestAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanRequest"; - value: QueryCurrentPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestSDKType {} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponse { - /** plan is the current upgrade plan. */ - plan?: Plan; -} -export interface QueryCurrentPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; - value: Uint8Array; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseAmino { - /** plan is the current upgrade plan. */ - plan?: PlanAmino; -} -export interface QueryCurrentPlanResponseAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanResponse"; - value: QueryCurrentPlanResponseAmino; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseSDKType { - plan?: PlanSDKType; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequest { - /** name is the name of the applied plan to query for. */ - name: string; -} -export interface QueryAppliedPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestAmino { - /** name is the name of the applied plan to query for. */ - name?: string; -} -export interface QueryAppliedPlanRequestAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanRequest"; - value: QueryAppliedPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestSDKType { - name: string; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponse { - /** height is the block height at which the plan was applied. */ - height: bigint; -} -export interface QueryAppliedPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; - value: Uint8Array; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseAmino { - /** height is the block height at which the plan was applied. */ - height?: string; -} -export interface QueryAppliedPlanResponseAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanResponse"; - value: QueryAppliedPlanResponseAmino; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseSDKType { - height: bigint; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequest { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - lastHeight: bigint; -} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestAmino { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - last_height?: string; -} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestSDKType { - last_height: bigint; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponse { - /** Since: cosmos-sdk 0.43 */ - upgradedConsensusState: Uint8Array; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Since: cosmos-sdk 0.43 */ - upgraded_consensus_state?: string; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequest { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - moduleName: string; -} -export interface QueryModuleVersionsRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; - value: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestAmino { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - module_name?: string; -} -export interface QueryModuleVersionsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsRequest"; - value: QueryModuleVersionsRequestAmino; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestSDKType { - module_name: string; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponse { - /** module_versions is a list of module names with their consensus versions. */ - moduleVersions: ModuleVersion[]; -} -export interface QueryModuleVersionsResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; - value: Uint8Array; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseAmino { - /** module_versions is a list of module names with their consensus versions. */ - module_versions?: ModuleVersionAmino[]; -} -export interface QueryModuleVersionsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsResponse"; - value: QueryModuleVersionsResponseAmino; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseSDKType { - module_versions: ModuleVersionSDKType[]; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequest {} -export interface QueryAuthorityRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; - value: Uint8Array; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestAmino {} -export interface QueryAuthorityRequestAminoMsg { - type: "cosmos-sdk/QueryAuthorityRequest"; - value: QueryAuthorityRequestAmino; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestSDKType {} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponse { - address: string; -} -export interface QueryAuthorityResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; - value: Uint8Array; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseAmino { - address?: string; -} -export interface QueryAuthorityResponseAminoMsg { - type: "cosmos-sdk/QueryAuthorityResponse"; - value: QueryAuthorityResponseAmino; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseSDKType { - address: string; -} -function createBaseQueryCurrentPlanRequest(): QueryCurrentPlanRequest { - return {}; -} -export const QueryCurrentPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - encode(_: QueryCurrentPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryCurrentPlanRequest { - return {}; - }, - toJSON(_: QueryCurrentPlanRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryCurrentPlanRequest { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest { - return QueryCurrentPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg { - return { - type: "cosmos-sdk/QueryCurrentPlanRequest", - value: QueryCurrentPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest { - return QueryCurrentPlanRequest.decode(message.value); - }, - toProto(message: QueryCurrentPlanRequest): Uint8Array { - return QueryCurrentPlanRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - value: QueryCurrentPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCurrentPlanResponse(): QueryCurrentPlanResponse { - return { - plan: undefined - }; -} -export const QueryCurrentPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - encode(message: QueryCurrentPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCurrentPlanResponse { - return { - plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined - }; - }, - toJSON(message: QueryCurrentPlanResponse): unknown { - const obj: any = {}; - message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryCurrentPlanResponse { - const message = createBaseQueryCurrentPlanResponse(); - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse { - const message = createBaseQueryCurrentPlanResponse(); - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino { - const obj: any = {}; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse { - return QueryCurrentPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg { - return { - type: "cosmos-sdk/QueryCurrentPlanResponse", - value: QueryCurrentPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse { - return QueryCurrentPlanResponse.decode(message.value); - }, - toProto(message: QueryCurrentPlanResponse): Uint8Array { - return QueryCurrentPlanResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - value: QueryCurrentPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanRequest(): QueryAppliedPlanRequest { - return { - name: "" - }; -} -export const QueryAppliedPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - encode(message: QueryAppliedPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAppliedPlanRequest { - return { - name: isSet(object.name) ? String(object.name) : "" - }; - }, - toJSON(message: QueryAppliedPlanRequest): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - return obj; - }, - fromPartial(object: Partial): QueryAppliedPlanRequest { - const message = createBaseQueryAppliedPlanRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest { - const message = createBaseQueryAppliedPlanRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest { - return QueryAppliedPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAppliedPlanRequest", - value: QueryAppliedPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest { - return QueryAppliedPlanRequest.decode(message.value); - }, - toProto(message: QueryAppliedPlanRequest): Uint8Array { - return QueryAppliedPlanRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - value: QueryAppliedPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanResponse(): QueryAppliedPlanResponse { - return { - height: BigInt(0) - }; -} -export const QueryAppliedPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - encode(message: QueryAppliedPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAppliedPlanResponse { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryAppliedPlanResponse): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryAppliedPlanResponse { - const message = createBaseQueryAppliedPlanResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse { - const message = createBaseQueryAppliedPlanResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse { - return QueryAppliedPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAppliedPlanResponse", - value: QueryAppliedPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse { - return QueryAppliedPlanResponse.decode(message.value); - }, - toProto(message: QueryAppliedPlanResponse): Uint8Array { - return QueryAppliedPlanResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - value: QueryAppliedPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest { - return { - lastHeight: BigInt(0) - }; -} -export const QueryUpgradedConsensusStateRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - encode(message: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.lastHeight !== BigInt(0)) { - writer.uint32(8).int64(message.lastHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUpgradedConsensusStateRequest { - return { - lastHeight: isSet(object.lastHeight) ? BigInt(object.lastHeight.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryUpgradedConsensusStateRequest): unknown { - const obj: any = {}; - message.lastHeight !== undefined && (obj.lastHeight = (message.lastHeight || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryUpgradedConsensusStateRequest { - const message = createBaseQueryUpgradedConsensusStateRequest(); - message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest { - const message = createBaseQueryUpgradedConsensusStateRequest(); - if (object.last_height !== undefined && object.last_height !== null) { - message.lastHeight = BigInt(object.last_height); - } - return message; - }, - toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino { - const obj: any = {}; - obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest { - return QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest { - return QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array { - return QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse { - return { - upgradedConsensusState: new Uint8Array() - }; -} -export const QueryUpgradedConsensusStateResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.upgradedConsensusState.length !== 0) { - writer.uint32(18).bytes(message.upgradedConsensusState); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.upgradedConsensusState = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUpgradedConsensusStateResponse { - return { - upgradedConsensusState: isSet(object.upgradedConsensusState) ? bytesFromBase64(object.upgradedConsensusState) : new Uint8Array() - }; - }, - toJSON(message: QueryUpgradedConsensusStateResponse): unknown { - const obj: any = {}; - message.upgradedConsensusState !== undefined && (obj.upgradedConsensusState = base64FromBytes(message.upgradedConsensusState !== undefined ? message.upgradedConsensusState : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); - return message; - }, - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = bytesFromBase64(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino { - const obj: any = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? base64FromBytes(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse { - return QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse { - return QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array { - return QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsRequest(): QueryModuleVersionsRequest { - return { - moduleName: "" - }; -} -export const QueryModuleVersionsRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - encode(message: QueryModuleVersionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.moduleName !== "") { - writer.uint32(10).string(message.moduleName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryModuleVersionsRequest { - return { - moduleName: isSet(object.moduleName) ? String(object.moduleName) : "" - }; - }, - toJSON(message: QueryModuleVersionsRequest): unknown { - const obj: any = {}; - message.moduleName !== undefined && (obj.moduleName = message.moduleName); - return obj; - }, - fromPartial(object: Partial): QueryModuleVersionsRequest { - const message = createBaseQueryModuleVersionsRequest(); - message.moduleName = object.moduleName ?? ""; - return message; - }, - fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest { - const message = createBaseQueryModuleVersionsRequest(); - if (object.module_name !== undefined && object.module_name !== null) { - message.moduleName = object.module_name; - } - return message; - }, - toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino { - const obj: any = {}; - obj.module_name = message.moduleName === "" ? undefined : message.moduleName; - return obj; - }, - fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest { - return QueryModuleVersionsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryModuleVersionsRequest", - value: QueryModuleVersionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest { - return QueryModuleVersionsRequest.decode(message.value); - }, - toProto(message: QueryModuleVersionsRequest): Uint8Array { - return QueryModuleVersionsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - value: QueryModuleVersionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsResponse(): QueryModuleVersionsResponse { - return { - moduleVersions: [] - }; -} -export const QueryModuleVersionsResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - encode(message: QueryModuleVersionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.moduleVersions) { - ModuleVersion.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryModuleVersionsResponse { - return { - moduleVersions: Array.isArray(object?.moduleVersions) ? object.moduleVersions.map((e: any) => ModuleVersion.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryModuleVersionsResponse): unknown { - const obj: any = {}; - if (message.moduleVersions) { - obj.moduleVersions = message.moduleVersions.map(e => e ? ModuleVersion.toJSON(e) : undefined); - } else { - obj.moduleVersions = []; - } - return obj; - }, - fromPartial(object: Partial): QueryModuleVersionsResponse { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.moduleVersions?.map(e => ModuleVersion.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.module_versions?.map(e => ModuleVersion.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino { - const obj: any = {}; - if (message.moduleVersions) { - obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined); - } else { - obj.module_versions = message.moduleVersions; - } - return obj; - }, - fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse { - return QueryModuleVersionsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryModuleVersionsResponse", - value: QueryModuleVersionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse { - return QueryModuleVersionsResponse.decode(message.value); - }, - toProto(message: QueryModuleVersionsResponse): Uint8Array { - return QueryModuleVersionsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - value: QueryModuleVersionsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityRequest(): QueryAuthorityRequest { - return {}; -} -export const QueryAuthorityRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - encode(_: QueryAuthorityRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryAuthorityRequest { - return {}; - }, - toJSON(_: QueryAuthorityRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryAuthorityRequest { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest { - return QueryAuthorityRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg { - return { - type: "cosmos-sdk/QueryAuthorityRequest", - value: QueryAuthorityRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest { - return QueryAuthorityRequest.decode(message.value); - }, - toProto(message: QueryAuthorityRequest): Uint8Array { - return QueryAuthorityRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - value: QueryAuthorityRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityResponse(): QueryAuthorityResponse { - return { - address: "" - }; -} -export const QueryAuthorityResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - encode(message: QueryAuthorityResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAuthorityResponse { - return { - address: isSet(object.address) ? String(object.address) : "" - }; - }, - toJSON(message: QueryAuthorityResponse): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - return obj; - }, - fromPartial(object: Partial): QueryAuthorityResponse { - const message = createBaseQueryAuthorityResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse { - const message = createBaseQueryAuthorityResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse { - return QueryAuthorityResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg { - return { - type: "cosmos-sdk/QueryAuthorityResponse", - value: QueryAuthorityResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse { - return QueryAuthorityResponse.decode(message.value); - }, - toProto(message: QueryAuthorityResponse): Uint8Array { - return QueryAuthorityResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - value: QueryAuthorityResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts deleted file mode 100644 index 1734b0fa..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export const AminoConverter = { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: "cosmos-sdk/MsgSoftwareUpgrade", - toAmino: MsgSoftwareUpgrade.toAmino, - fromAmino: MsgSoftwareUpgrade.fromAmino - }, - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: "cosmos-sdk/MsgCancelUpgrade", - toAmino: MsgCancelUpgrade.toAmino, - fromAmino: MsgCancelUpgrade.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts deleted file mode 100644 index 2ace489f..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - softwareUpgrade(value: MsgSoftwareUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.encode(value).finish() - }; - }, - cancelUpgrade(value: MsgCancelUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.encode(value).finish() - }; - } - }, - withTypeUrl: { - softwareUpgrade(value: MsgSoftwareUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value - }; - }, - cancelUpgrade(value: MsgCancelUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value - }; - } - }, - toJSON: { - softwareUpgrade(value: MsgSoftwareUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.toJSON(value) - }; - }, - cancelUpgrade(value: MsgCancelUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.toJSON(value) - }; - } - }, - fromJSON: { - softwareUpgrade(value: any) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.fromJSON(value) - }; - }, - cancelUpgrade(value: any) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.fromJSON(value) - }; - } - }, - fromPartial: { - softwareUpgrade(value: MsgSoftwareUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.fromPartial(value) - }; - }, - cancelUpgrade(value: MsgCancelUpgrade) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index cbef95a8..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; -/** Msg defines the upgrade Msg service. */ -export interface Msg { - /** - * SoftwareUpgrade is a governance operation for initiating a software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - softwareUpgrade(request: MsgSoftwareUpgrade): Promise; - /** - * CancelUpgrade is a governance operation for cancelling a previously - * approvid software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - cancelUpgrade(request: MsgCancelUpgrade): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.softwareUpgrade = this.softwareUpgrade.bind(this); - this.cancelUpgrade = this.cancelUpgrade.bind(this); - } - softwareUpgrade(request: MsgSoftwareUpgrade): Promise { - const data = MsgSoftwareUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); - return promise.then(data => MsgSoftwareUpgradeResponse.decode(new BinaryReader(data))); - } - cancelUpgrade(request: MsgCancelUpgrade): Promise { - const data = MsgCancelUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); - return promise.then(data => MsgCancelUpgradeResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.ts deleted file mode 100644 index 53b7baec..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/tx.ts +++ /dev/null @@ -1,426 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgrade { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan: Plan; -} -export interface MsgSoftwareUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** plan is the upgrade plan. */ - plan?: PlanAmino; -} -export interface MsgSoftwareUpgradeAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgrade"; - value: MsgSoftwareUpgradeAmino; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeSDKType { - authority: string; - plan: PlanSDKType; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponse {} -export interface MsgSoftwareUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseAmino {} -export interface MsgSoftwareUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; - value: MsgSoftwareUpgradeResponseAmino; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseSDKType {} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgrade { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - value: Uint8Array; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; -} -export interface MsgCancelUpgradeAminoMsg { - type: "cosmos-sdk/MsgCancelUpgrade"; - value: MsgCancelUpgradeAmino; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeSDKType { - authority: string; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponse {} -export interface MsgCancelUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseAmino {} -export interface MsgCancelUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUpgradeResponse"; - value: MsgCancelUpgradeResponseAmino; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseSDKType {} -function createBaseMsgSoftwareUpgrade(): MsgSoftwareUpgrade { - return { - authority: "", - plan: Plan.fromPartial({}) - }; -} -export const MsgSoftwareUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - encode(message: MsgSoftwareUpgrade, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSoftwareUpgrade { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined - }; - }, - toJSON(message: MsgSoftwareUpgrade): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgSoftwareUpgrade { - const message = createBaseMsgSoftwareUpgrade(); - message.authority = object.authority ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object: MsgSoftwareUpgradeAmino): MsgSoftwareUpgrade { - const message = createBaseMsgSoftwareUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object: MsgSoftwareUpgradeAminoMsg): MsgSoftwareUpgrade { - return MsgSoftwareUpgrade.fromAmino(object.value); - }, - toAminoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAminoMsg { - return { - type: "cosmos-sdk/MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSoftwareUpgradeProtoMsg): MsgSoftwareUpgrade { - return MsgSoftwareUpgrade.decode(message.value); - }, - toProto(message: MsgSoftwareUpgrade): Uint8Array { - return MsgSoftwareUpgrade.encode(message).finish(); - }, - toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgSoftwareUpgradeResponse(): MsgSoftwareUpgradeResponse { - return {}; -} -export const MsgSoftwareUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - encode(_: MsgSoftwareUpgradeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSoftwareUpgradeResponse { - return {}; - }, - toJSON(_: MsgSoftwareUpgradeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSoftwareUpgradeResponse { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - fromAmino(_: MsgSoftwareUpgradeResponseAmino): MsgSoftwareUpgradeResponse { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - toAmino(_: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSoftwareUpgradeResponseAminoMsg): MsgSoftwareUpgradeResponse { - return MsgSoftwareUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse", - value: MsgSoftwareUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSoftwareUpgradeResponseProtoMsg): MsgSoftwareUpgradeResponse { - return MsgSoftwareUpgradeResponse.decode(message.value); - }, - toProto(message: MsgSoftwareUpgradeResponse): Uint8Array { - return MsgSoftwareUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - value: MsgSoftwareUpgradeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgrade(): MsgCancelUpgrade { - return { - authority: "" - }; -} -export const MsgCancelUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - encode(message: MsgCancelUpgrade, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancelUpgrade { - return { - authority: isSet(object.authority) ? String(object.authority) : "" - }; - }, - toJSON(message: MsgCancelUpgrade): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - return obj; - }, - fromPartial(object: Partial): MsgCancelUpgrade { - const message = createBaseMsgCancelUpgrade(); - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object: MsgCancelUpgradeAmino): MsgCancelUpgrade { - const message = createBaseMsgCancelUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade { - return MsgCancelUpgrade.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeAminoMsg { - return { - type: "cosmos-sdk/MsgCancelUpgrade", - value: MsgCancelUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelUpgradeProtoMsg): MsgCancelUpgrade { - return MsgCancelUpgrade.decode(message.value); - }, - toProto(message: MsgCancelUpgrade): Uint8Array { - return MsgCancelUpgrade.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgradeResponse(): MsgCancelUpgradeResponse { - return {}; -} -export const MsgCancelUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - encode(_: MsgCancelUpgradeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCancelUpgradeResponse { - return {}; - }, - toJSON(_: MsgCancelUpgradeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCancelUpgradeResponse { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - fromAmino(_: MsgCancelUpgradeResponseAmino): MsgCancelUpgradeResponse { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - toAmino(_: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCancelUpgradeResponseAminoMsg): MsgCancelUpgradeResponse { - return MsgCancelUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCancelUpgradeResponse", - value: MsgCancelUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelUpgradeResponseProtoMsg): MsgCancelUpgradeResponse { - return MsgCancelUpgradeResponse.decode(message.value); - }, - toProto(message: MsgCancelUpgradeResponse): Uint8Array { - return MsgCancelUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - value: MsgCancelUpgradeResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts b/packages/api/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts deleted file mode 100644 index 3910122a..00000000 --- a/packages/api/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +++ /dev/null @@ -1,654 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time: Timestamp; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: bigint; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgradedClientState?: Any; -} -export interface PlanProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.Plan"; - value: Uint8Array; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanAmino { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgraded_client_state?: AnyAmino; -} -export interface PlanAminoMsg { - type: "cosmos-sdk/Plan"; - value: PlanAmino; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanSDKType { - name: string; - /** @deprecated */ - time: TimestampSDKType; - height: bigint; - info: string; - /** @deprecated */ - upgraded_client_state?: AnySDKType; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: Plan; -} -export interface SoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; -} -export interface SoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/SoftwareUpgradeProposal"; - value: SoftwareUpgradeProposalAmino; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalAmino { - title?: string; - description?: string; -} -export interface CancelSoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; - value: CancelSoftwareUpgradeProposalAmino; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersion { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: bigint; -} -export interface ModuleVersionProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; - value: Uint8Array; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionAmino { - /** name of the app module */ - name?: string; - /** consensus version of the app module */ - version?: string; -} -export interface ModuleVersionAminoMsg { - type: "cosmos-sdk/ModuleVersion"; - value: ModuleVersionAmino; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionSDKType { - name: string; - version: bigint; -} -function createBasePlan(): Plan { - return { - name: "", - time: Timestamp.fromPartial({}), - height: BigInt(0), - info: "", - upgradedClientState: undefined - }; -} -export const Plan = { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - encode(message: Plan, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Plan { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePlan(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Plan { - return { - name: isSet(object.name) ? String(object.name) : "", - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - info: isSet(object.info) ? String(object.info) : "", - upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined - }; - }, - toJSON(message: Plan): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.info !== undefined && (obj.info = message.info); - message.upgradedClientState !== undefined && (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined); - return obj; - }, - fromPartial(object: Partial): Plan { - const message = createBasePlan(); - message.name = object.name ?? ""; - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.info = object.info ?? ""; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object: PlanAmino): Plan { - const message = createBasePlan(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message: Plan): PlanAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.info = message.info === "" ? undefined : message.info; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object: PlanAminoMsg): Plan { - return Plan.fromAmino(object.value); - }, - toAminoMsg(message: Plan): PlanAminoMsg { - return { - type: "cosmos-sdk/Plan", - value: Plan.toAmino(message) - }; - }, - fromProtoMsg(message: PlanProtoMsg): Plan { - return Plan.decode(message.value); - }, - toProto(message: Plan): Uint8Array { - return Plan.encode(message).finish(); - }, - toProtoMsg(message: Plan): PlanProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - value: Plan.encode(message).finish() - }; - } -}; -function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - title: "", - description: "", - plan: Plan.fromPartial({}) - }; -} -export const SoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - encode(message: SoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SoftwareUpgradeProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined - }; - }, - toJSON(message: SoftwareUpgradeProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined); - return obj; - }, - fromPartial(object: Partial): SoftwareUpgradeProposal { - const message = createBaseSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal { - const message = createBaseSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal { - return SoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg { - return { - type: "cosmos-sdk/SoftwareUpgradeProposal", - value: SoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal { - return SoftwareUpgradeProposal.decode(message.value); - }, - toProto(message: SoftwareUpgradeProposal): Uint8Array { - return SoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - value: SoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - title: "", - description: "" - }; -} -export const CancelSoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - encode(message: CancelSoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCancelSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CancelSoftwareUpgradeProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "" - }; - }, - toJSON(message: CancelSoftwareUpgradeProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - return obj; - }, - fromPartial(object: Partial): CancelSoftwareUpgradeProposal { - const message = createBaseCancelSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal { - const message = createBaseCancelSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal { - return CancelSoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg { - return { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal", - value: CancelSoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal { - return CancelSoftwareUpgradeProposal.decode(message.value); - }, - toProto(message: CancelSoftwareUpgradeProposal): Uint8Array { - return CancelSoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - value: CancelSoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseModuleVersion(): ModuleVersion { - return { - name: "", - version: BigInt(0) - }; -} -export const ModuleVersion = { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - encode(message: ModuleVersion, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.version !== BigInt(0)) { - writer.uint32(16).uint64(message.version); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.version = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ModuleVersion { - return { - name: isSet(object.name) ? String(object.name) : "", - version: isSet(object.version) ? BigInt(object.version.toString()) : BigInt(0) - }; - }, - toJSON(message: ModuleVersion): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.version !== undefined && (obj.version = (message.version || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ModuleVersion { - const message = createBaseModuleVersion(); - message.name = object.name ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ModuleVersionAmino): ModuleVersion { - const message = createBaseModuleVersion(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - return message; - }, - toAmino(message: ModuleVersion): ModuleVersionAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion { - return ModuleVersion.fromAmino(object.value); - }, - toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg { - return { - type: "cosmos-sdk/ModuleVersion", - value: ModuleVersion.toAmino(message) - }; - }, - fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion { - return ModuleVersion.decode(message.value); - }, - toProto(message: ModuleVersion): Uint8Array { - return ModuleVersion.encode(message).finish(); - }, - toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg { - return { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - value: ModuleVersion.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts b/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts deleted file mode 100644 index a197b23b..00000000 --- a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export const AminoConverter = { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: "cosmos-sdk/MsgCreateVestingAccount", - toAmino: MsgCreateVestingAccount.toAmino, - fromAmino: MsgCreateVestingAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", - toAmino: MsgCreatePermanentLockedAccount.toAmino, - fromAmino: MsgCreatePermanentLockedAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - toAmino: MsgCreatePeriodicVestingAccount.toAmino, - fromAmino: MsgCreatePeriodicVestingAccount.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts b/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts deleted file mode 100644 index ba736f61..00000000 --- a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.encode(value).finish() - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.encode(value).finish() - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.encode(value).finish() - }; - } - }, - withTypeUrl: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value - }; - } - }, - toJSON: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.toJSON(value) - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.toJSON(value) - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.toJSON(value) - }; - } - }, - fromJSON: { - createVestingAccount(value: any) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.fromJSON(value) - }; - }, - createPermanentLockedAccount(value: any) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.fromJSON(value) - }; - }, - createPeriodicVestingAccount(value: any) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.fromJSON(value) - }; - } - }, - fromPartial: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.fromPartial(value) - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.fromPartial(value) - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts b/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts deleted file mode 100644 index e588f16d..00000000 --- a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** - * CreateVestingAccount defines a method that enables creating a vesting - * account. - */ - createVestingAccount(request: MsgCreateVestingAccount): Promise; - /** - * CreatePermanentLockedAccount defines a method that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - /** - * CreatePeriodicVestingAccount defines a method that enables creating a - * periodic vesting account. - * - * Since: cosmos-sdk 0.46 - */ - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createVestingAccount = this.createVestingAccount.bind(this); - this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); - this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); - } - createVestingAccount(request: MsgCreateVestingAccount): Promise { - const data = MsgCreateVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); - return promise.then(data => MsgCreateVestingAccountResponse.decode(new BinaryReader(data))); - } - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise { - const data = MsgCreatePermanentLockedAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); - return promise.then(data => MsgCreatePermanentLockedAccountResponse.decode(new BinaryReader(data))); - } - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise { - const data = MsgCreatePeriodicVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); - return promise.then(data => MsgCreatePeriodicVestingAccountResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.ts b/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.ts deleted file mode 100644 index d7acb006..00000000 --- a/packages/api/src/codegen/cosmos/vesting/v1beta1/tx.ts +++ /dev/null @@ -1,769 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: bigint; - delayed: boolean; -} -export interface MsgCreateVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; - end_time?: string; - delayed?: boolean; -} -export interface MsgCreateVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: MsgCreateVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: bigint; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse {} -export interface MsgCreateVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - value: Uint8Array; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseAmino {} -export interface MsgCreateVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccountResponse"; - value: MsgCreateVestingAccountResponseAmino; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType {} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgCreatePermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgCreatePermanentLockedAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: MsgCreatePermanentLockedAccountAmino; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponse {} -export interface MsgCreatePermanentLockedAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseAmino {} -export interface MsgCreatePermanentLockedAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; - value: MsgCreatePermanentLockedAccountResponseAmino; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseSDKType {} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface MsgCreatePeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountAmino { - from_address?: string; - to_address?: string; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface MsgCreatePeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: MsgCreatePeriodicVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponse {} -export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseAmino {} -export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; - value: MsgCreatePeriodicVestingAccountResponseAmino; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType {} -function createBaseMsgCreateVestingAccount(): MsgCreateVestingAccount { - return { - fromAddress: "", - toAddress: "", - amount: [], - endTime: BigInt(0), - delayed: false - }; -} -export const MsgCreateVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - encode(message: MsgCreateVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(32).int64(message.endTime); - } - if (message.delayed === true) { - writer.uint32(40).bool(message.delayed); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.endTime = reader.int64(); - break; - case 5: - message.delayed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateVestingAccount { - return { - fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", - toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], - endTime: isSet(object.endTime) ? BigInt(object.endTime.toString()) : BigInt(0), - delayed: isSet(object.delayed) ? Boolean(object.delayed) : false - }; - }, - toJSON(message: MsgCreateVestingAccount): unknown { - const obj: any = {}; - message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); - message.toAddress !== undefined && (obj.toAddress = message.toAddress); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - message.endTime !== undefined && (obj.endTime = (message.endTime || BigInt(0)).toString()); - message.delayed !== undefined && (obj.delayed = message.delayed); - return obj; - }, - fromPartial(object: Partial): MsgCreateVestingAccount { - const message = createBaseMsgCreateVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - message.delayed = object.delayed ?? false; - return message; - }, - fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount { - const message = createBaseMsgCreateVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - if (object.delayed !== undefined && object.delayed !== null) { - message.delayed = object.delayed; - } - return message; - }, - toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino { - const obj: any = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - obj.delayed = message.delayed === false ? undefined : message.delayed; - return obj; - }, - fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount { - return MsgCreateVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg { - return { - type: "cosmos-sdk/MsgCreateVestingAccount", - value: MsgCreateVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount { - return MsgCreateVestingAccount.decode(message.value); - }, - toProto(message: MsgCreateVestingAccount): Uint8Array { - return MsgCreateVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreateVestingAccountResponse(): MsgCreateVestingAccountResponse { - return {}; -} -export const MsgCreateVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - encode(_: MsgCreateVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCreateVestingAccountResponse { - return {}; - }, - toJSON(_: MsgCreateVestingAccountResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCreateVestingAccountResponse { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse { - return MsgCreateVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateVestingAccountResponse", - value: MsgCreateVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse { - return MsgCreateVestingAccountResponse.decode(message.value); - }, - toProto(message: MsgCreateVestingAccountResponse): Uint8Array { - return MsgCreateVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - value: MsgCreateVestingAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccount(): MsgCreatePermanentLockedAccount { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -export const MsgCreatePermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - encode(message: MsgCreatePermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreatePermanentLockedAccount { - return { - fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", - toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgCreatePermanentLockedAccount): unknown { - const obj: any = {}; - message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); - message.toAddress !== undefined && (obj.toAddress = message.toAddress); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): MsgCreatePermanentLockedAccount { - const message = createBaseMsgCreatePermanentLockedAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount { - const message = createBaseMsgCreatePermanentLockedAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino { - const obj: any = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount { - return MsgCreatePermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount { - return MsgCreatePermanentLockedAccount.decode(message.value); - }, - toProto(message: MsgCreatePermanentLockedAccount): Uint8Array { - return MsgCreatePermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccountResponse(): MsgCreatePermanentLockedAccountResponse { - return {}; -} -export const MsgCreatePermanentLockedAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - encode(_: MsgCreatePermanentLockedAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCreatePermanentLockedAccountResponse { - return {}; - }, - toJSON(_: MsgCreatePermanentLockedAccountResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse { - return MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", - value: MsgCreatePermanentLockedAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse { - return MsgCreatePermanentLockedAccountResponse.decode(message.value); - }, - toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array { - return MsgCreatePermanentLockedAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - value: MsgCreatePermanentLockedAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccount(): MsgCreatePeriodicVestingAccount { - return { - fromAddress: "", - toAddress: "", - startTime: BigInt(0), - vestingPeriods: [] - }; -} -export const MsgCreatePeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - encode(message: MsgCreatePeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(24).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.startTime = reader.int64(); - break; - case 4: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreatePeriodicVestingAccount { - return { - fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "", - toAddress: isSet(object.toAddress) ? String(object.toAddress) : "", - startTime: isSet(object.startTime) ? BigInt(object.startTime.toString()) : BigInt(0), - vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e: any) => Period.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgCreatePeriodicVestingAccount): unknown { - const obj: any = {}; - message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); - message.toAddress !== undefined && (obj.toAddress = message.toAddress); - message.startTime !== undefined && (obj.startTime = (message.startTime || BigInt(0)).toString()); - if (message.vestingPeriods) { - obj.vestingPeriods = message.vestingPeriods.map(e => e ? Period.toJSON(e) : undefined); - } else { - obj.vestingPeriods = []; - } - return obj; - }, - fromPartial(object: Partial): MsgCreatePeriodicVestingAccount { - const message = createBaseMsgCreatePeriodicVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount { - const message = createBaseMsgCreatePeriodicVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino { - const obj: any = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); - } else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount { - return MsgCreatePeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount { - return MsgCreatePeriodicVestingAccount.decode(message.value); - }, - toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array { - return MsgCreatePeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccountResponse(): MsgCreatePeriodicVestingAccountResponse { - return {}; -} -export const MsgCreatePeriodicVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - encode(_: MsgCreatePeriodicVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse { - return {}; - }, - toJSON(_: MsgCreatePeriodicVestingAccountResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse { - return MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", - value: MsgCreatePeriodicVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse { - return MsgCreatePeriodicVestingAccountResponse.decode(message.value); - }, - toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array { - return MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - value: MsgCreatePeriodicVestingAccountResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos/vesting/v1beta1/vesting.ts b/packages/api/src/codegen/cosmos/vesting/v1beta1/vesting.ts deleted file mode 100644 index f70704d3..00000000 --- a/packages/api/src/codegen/cosmos/vesting/v1beta1/vesting.ts +++ /dev/null @@ -1,821 +0,0 @@ -import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount?: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: bigint; -} -export interface BaseVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; - value: Uint8Array; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountAmino { - base_account?: BaseAccountAmino; - original_vesting?: CoinAmino[]; - delegated_free?: CoinAmino[]; - delegated_vesting?: CoinAmino[]; - end_time?: string; -} -export interface BaseVestingAccountAminoMsg { - type: "cosmos-sdk/BaseVestingAccount"; - value: BaseVestingAccountAmino; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account?: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: bigint; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; -} -export interface ContinuousVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; - value: Uint8Array; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; -} -export interface ContinuousVestingAccountAminoMsg { - type: "cosmos-sdk/ContinuousVestingAccount"; - value: ContinuousVestingAccountAmino; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface DelayedVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; - value: Uint8Array; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface DelayedVestingAccountAminoMsg { - type: "cosmos-sdk/DelayedVestingAccount"; - value: DelayedVestingAccountAmino; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: bigint; - amount: Coin[]; -} -export interface PeriodProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.Period"; - value: Uint8Array; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodAmino { - length?: string; - amount?: CoinAmino[]; -} -export interface PeriodAminoMsg { - type: "cosmos-sdk/Period"; - value: PeriodAmino; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: bigint; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface PeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; - value: Uint8Array; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface PeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/PeriodicVestingAccount"; - value: PeriodicVestingAccountAmino; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface PermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; - value: Uint8Array; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface PermanentLockedAccountAminoMsg { - type: "cosmos-sdk/PermanentLockedAccount"; - value: PermanentLockedAccountAmino; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -function createBaseBaseVestingAccount(): BaseVestingAccount { - return { - baseAccount: undefined, - originalVesting: [], - delegatedFree: [], - delegatedVesting: [], - endTime: BigInt(0) - }; -} -export const BaseVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - encode(message: BaseVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseAccount !== undefined) { - BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.originalVesting) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatedFree) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.delegatedVesting) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(40).int64(message.endTime); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.originalVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.delegatedFree.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.delegatedVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.endTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BaseVestingAccount { - return { - baseAccount: isSet(object.baseAccount) ? BaseAccount.fromJSON(object.baseAccount) : undefined, - originalVesting: Array.isArray(object?.originalVesting) ? object.originalVesting.map((e: any) => Coin.fromJSON(e)) : [], - delegatedFree: Array.isArray(object?.delegatedFree) ? object.delegatedFree.map((e: any) => Coin.fromJSON(e)) : [], - delegatedVesting: Array.isArray(object?.delegatedVesting) ? object.delegatedVesting.map((e: any) => Coin.fromJSON(e)) : [], - endTime: isSet(object.endTime) ? BigInt(object.endTime.toString()) : BigInt(0) - }; - }, - toJSON(message: BaseVestingAccount): unknown { - const obj: any = {}; - message.baseAccount !== undefined && (obj.baseAccount = message.baseAccount ? BaseAccount.toJSON(message.baseAccount) : undefined); - if (message.originalVesting) { - obj.originalVesting = message.originalVesting.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.originalVesting = []; - } - if (message.delegatedFree) { - obj.delegatedFree = message.delegatedFree.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.delegatedFree = []; - } - if (message.delegatedVesting) { - obj.delegatedVesting = message.delegatedVesting.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.delegatedVesting = []; - } - message.endTime !== undefined && (obj.endTime = (message.endTime || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BaseVestingAccount { - const message = createBaseBaseVestingAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; - message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || []; - message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || []; - message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount { - const message = createBaseBaseVestingAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = BaseAccount.fromAmino(object.base_account); - } - message.originalVesting = object.original_vesting?.map(e => Coin.fromAmino(e)) || []; - message.delegatedFree = object.delegated_free?.map(e => Coin.fromAmino(e)) || []; - message.delegatedVesting = object.delegated_vesting?.map(e => Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - return message; - }, - toAmino(message: BaseVestingAccount): BaseVestingAccountAmino { - const obj: any = {}; - obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; - if (message.originalVesting) { - obj.original_vesting = message.originalVesting.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.original_vesting = message.originalVesting; - } - if (message.delegatedFree) { - obj.delegated_free = message.delegatedFree.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.delegated_free = message.delegatedFree; - } - if (message.delegatedVesting) { - obj.delegated_vesting = message.delegatedVesting.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.delegated_vesting = message.delegatedVesting; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount { - return BaseVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg { - return { - type: "cosmos-sdk/BaseVestingAccount", - value: BaseVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount { - return BaseVestingAccount.decode(message.value); - }, - toProto(message: BaseVestingAccount): Uint8Array { - return BaseVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - value: BaseVestingAccount.encode(message).finish() - }; - } -}; -function createBaseContinuousVestingAccount(): ContinuousVestingAccount { - return { - baseVestingAccount: undefined, - startTime: BigInt(0) - }; -} -export const ContinuousVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - encode(message: ContinuousVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContinuousVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ContinuousVestingAccount { - return { - baseVestingAccount: isSet(object.baseVestingAccount) ? BaseVestingAccount.fromJSON(object.baseVestingAccount) : undefined, - startTime: isSet(object.startTime) ? BigInt(object.startTime.toString()) : BigInt(0) - }; - }, - toJSON(message: ContinuousVestingAccount): unknown { - const obj: any = {}; - message.baseVestingAccount !== undefined && (obj.baseVestingAccount = message.baseVestingAccount ? BaseVestingAccount.toJSON(message.baseVestingAccount) : undefined); - message.startTime !== undefined && (obj.startTime = (message.startTime || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ContinuousVestingAccount { - const message = createBaseContinuousVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount { - const message = createBaseContinuousVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - return message; - }, - toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino { - const obj: any = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount { - return ContinuousVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg { - return { - type: "cosmos-sdk/ContinuousVestingAccount", - value: ContinuousVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount { - return ContinuousVestingAccount.decode(message.value); - }, - toProto(message: ContinuousVestingAccount): Uint8Array { - return ContinuousVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - value: ContinuousVestingAccount.encode(message).finish() - }; - } -}; -function createBaseDelayedVestingAccount(): DelayedVestingAccount { - return { - baseVestingAccount: undefined - }; -} -export const DelayedVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - encode(message: DelayedVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelayedVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DelayedVestingAccount { - return { - baseVestingAccount: isSet(object.baseVestingAccount) ? BaseVestingAccount.fromJSON(object.baseVestingAccount) : undefined - }; - }, - toJSON(message: DelayedVestingAccount): unknown { - const obj: any = {}; - message.baseVestingAccount !== undefined && (obj.baseVestingAccount = message.baseVestingAccount ? BaseVestingAccount.toJSON(message.baseVestingAccount) : undefined); - return obj; - }, - fromPartial(object: Partial): DelayedVestingAccount { - const message = createBaseDelayedVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount { - const message = createBaseDelayedVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino { - const obj: any = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount { - return DelayedVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg { - return { - type: "cosmos-sdk/DelayedVestingAccount", - value: DelayedVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount { - return DelayedVestingAccount.decode(message.value); - }, - toProto(message: DelayedVestingAccount): Uint8Array { - return DelayedVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - value: DelayedVestingAccount.encode(message).finish() - }; - } -}; -function createBasePeriod(): Period { - return { - length: BigInt(0), - amount: [] - }; -} -export const Period = { - typeUrl: "/cosmos.vesting.v1beta1.Period", - encode(message: Period, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.length !== BigInt(0)) { - writer.uint32(8).int64(message.length); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Period { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriod(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.length = reader.int64(); - break; - case 2: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Period { - return { - length: isSet(object.length) ? BigInt(object.length.toString()) : BigInt(0), - amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Period): unknown { - const obj: any = {}; - message.length !== undefined && (obj.length = (message.length || BigInt(0)).toString()); - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.amount = []; - } - return obj; - }, - fromPartial(object: Partial): Period { - const message = createBasePeriod(); - message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: PeriodAmino): Period { - const message = createBasePeriod(); - if (object.length !== undefined && object.length !== null) { - message.length = BigInt(object.length); - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Period): PeriodAmino { - const obj: any = {}; - obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object: PeriodAminoMsg): Period { - return Period.fromAmino(object.value); - }, - toAminoMsg(message: Period): PeriodAminoMsg { - return { - type: "cosmos-sdk/Period", - value: Period.toAmino(message) - }; - }, - fromProtoMsg(message: PeriodProtoMsg): Period { - return Period.decode(message.value); - }, - toProto(message: Period): Uint8Array { - return Period.encode(message).finish(); - }, - toProtoMsg(message: Period): PeriodProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.Period", - value: Period.encode(message).finish() - }; - } -}; -function createBasePeriodicVestingAccount(): PeriodicVestingAccount { - return { - baseVestingAccount: undefined, - startTime: BigInt(0), - vestingPeriods: [] - }; -} -export const PeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - encode(message: PeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - case 3: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PeriodicVestingAccount { - return { - baseVestingAccount: isSet(object.baseVestingAccount) ? BaseVestingAccount.fromJSON(object.baseVestingAccount) : undefined, - startTime: isSet(object.startTime) ? BigInt(object.startTime.toString()) : BigInt(0), - vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e: any) => Period.fromJSON(e)) : [] - }; - }, - toJSON(message: PeriodicVestingAccount): unknown { - const obj: any = {}; - message.baseVestingAccount !== undefined && (obj.baseVestingAccount = message.baseVestingAccount ? BaseVestingAccount.toJSON(message.baseVestingAccount) : undefined); - message.startTime !== undefined && (obj.startTime = (message.startTime || BigInt(0)).toString()); - if (message.vestingPeriods) { - obj.vestingPeriods = message.vestingPeriods.map(e => e ? Period.toJSON(e) : undefined); - } else { - obj.vestingPeriods = []; - } - return obj; - }, - fromPartial(object: Partial): PeriodicVestingAccount { - const message = createBasePeriodicVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount { - const message = createBasePeriodicVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; - return message; - }, - toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino { - const obj: any = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); - } else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount { - return PeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg { - return { - type: "cosmos-sdk/PeriodicVestingAccount", - value: PeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount { - return PeriodicVestingAccount.decode(message.value); - }, - toProto(message: PeriodicVestingAccount): Uint8Array { - return PeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - value: PeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBasePermanentLockedAccount(): PermanentLockedAccount { - return { - baseVestingAccount: undefined - }; -} -export const PermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - encode(message: PermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PermanentLockedAccount { - return { - baseVestingAccount: isSet(object.baseVestingAccount) ? BaseVestingAccount.fromJSON(object.baseVestingAccount) : undefined - }; - }, - toJSON(message: PermanentLockedAccount): unknown { - const obj: any = {}; - message.baseVestingAccount !== undefined && (obj.baseVestingAccount = message.baseVestingAccount ? BaseVestingAccount.toJSON(message.baseVestingAccount) : undefined); - return obj; - }, - fromPartial(object: Partial): PermanentLockedAccount { - const message = createBasePermanentLockedAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount { - const message = createBasePermanentLockedAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino { - const obj: any = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount { - return PermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg { - return { - type: "cosmos-sdk/PermanentLockedAccount", - value: PermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount { - return PermanentLockedAccount.decode(message.value); - }, - toProto(message: PermanentLockedAccount): Uint8Array { - return PermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg { - return { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - value: PermanentLockedAccount.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos_proto/bundle.ts b/packages/api/src/codegen/cosmos_proto/bundle.ts deleted file mode 100644 index fd490026..00000000 --- a/packages/api/src/codegen/cosmos_proto/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _1 from "./cosmos"; -export const cosmos_proto = { - ..._1 -}; \ No newline at end of file diff --git a/packages/api/src/codegen/cosmos_proto/cosmos.ts b/packages/api/src/codegen/cosmos_proto/cosmos.ts deleted file mode 100644 index 2dcf956b..00000000 --- a/packages/api/src/codegen/cosmos_proto/cosmos.ts +++ /dev/null @@ -1,379 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../binary"; -import { isSet } from "../helpers"; -export enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2, - UNRECOGNIZED = -1, -} -export const ScalarTypeSDKType = ScalarType; -export const ScalarTypeAmino = ScalarType; -export function scalarTypeFromJSON(object: any): ScalarType { - switch (object) { - case 0: - case "SCALAR_TYPE_UNSPECIFIED": - return ScalarType.SCALAR_TYPE_UNSPECIFIED; - case 1: - case "SCALAR_TYPE_STRING": - return ScalarType.SCALAR_TYPE_STRING; - case 2: - case "SCALAR_TYPE_BYTES": - return ScalarType.SCALAR_TYPE_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return ScalarType.UNRECOGNIZED; - } -} -export function scalarTypeToJSON(object: ScalarType): string { - switch (object) { - case ScalarType.SCALAR_TYPE_UNSPECIFIED: - return "SCALAR_TYPE_UNSPECIFIED"; - case ScalarType.SCALAR_TYPE_STRING: - return "SCALAR_TYPE_STRING"; - case ScalarType.SCALAR_TYPE_BYTES: - return "SCALAR_TYPE_BYTES"; - case ScalarType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptor { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos_proto.InterfaceDescriptor"; - value: Uint8Array; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorAmino { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description?: string; -} -export interface InterfaceDescriptorAminoMsg { - type: "/cosmos_proto.InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorSDKType { - name: string; - description: string; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptor { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - fieldType: ScalarType[]; -} -export interface ScalarDescriptorProtoMsg { - typeUrl: "/cosmos_proto.ScalarDescriptor"; - value: Uint8Array; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorAmino { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description?: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - field_type?: ScalarType[]; -} -export interface ScalarDescriptorAminoMsg { - type: "/cosmos_proto.ScalarDescriptor"; - value: ScalarDescriptorAmino; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorSDKType { - name: string; - description: string; - field_type: ScalarType[]; -} -function createBaseInterfaceDescriptor(): InterfaceDescriptor { - return { - name: "", - description: "" - }; -} -export const InterfaceDescriptor = { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - encode(message: InterfaceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): InterfaceDescriptor { - return { - name: isSet(object.name) ? String(object.name) : "", - description: isSet(object.description) ? String(object.description) : "" - }; - }, - toJSON(message: InterfaceDescriptor): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.description !== undefined && (obj.description = message.description); - return obj; - }, - fromPartial(object: Partial): InterfaceDescriptor { - const message = createBaseInterfaceDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor { - const message = createBaseInterfaceDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor { - return InterfaceDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor { - return InterfaceDescriptor.decode(message.value); - }, - toProto(message: InterfaceDescriptor): Uint8Array { - return InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg { - return { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - value: InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseScalarDescriptor(): ScalarDescriptor { - return { - name: "", - description: "", - fieldType: [] - }; -} -export const ScalarDescriptor = { - typeUrl: "/cosmos_proto.ScalarDescriptor", - encode(message: ScalarDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - writer.uint32(26).fork(); - for (const v of message.fieldType) { - writer.int32(v); - } - writer.ldelim(); - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseScalarDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.fieldType.push((reader.int32() as any)); - } - } else { - message.fieldType.push((reader.int32() as any)); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ScalarDescriptor { - return { - name: isSet(object.name) ? String(object.name) : "", - description: isSet(object.description) ? String(object.description) : "", - fieldType: Array.isArray(object?.fieldType) ? object.fieldType.map((e: any) => scalarTypeFromJSON(e)) : [] - }; - }, - toJSON(message: ScalarDescriptor): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.description !== undefined && (obj.description = message.description); - if (message.fieldType) { - obj.fieldType = message.fieldType.map(e => scalarTypeToJSON(e)); - } else { - obj.fieldType = []; - } - return obj; - }, - fromPartial(object: Partial): ScalarDescriptor { - const message = createBaseScalarDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.fieldType = object.fieldType?.map(e => e) || []; - return message; - }, - fromAmino(object: ScalarDescriptorAmino): ScalarDescriptor { - const message = createBaseScalarDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.fieldType = object.field_type?.map(e => e) || []; - return message; - }, - toAmino(message: ScalarDescriptor): ScalarDescriptorAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - if (message.fieldType) { - obj.field_type = message.fieldType.map(e => e); - } else { - obj.field_type = message.fieldType; - } - return obj; - }, - fromAminoMsg(object: ScalarDescriptorAminoMsg): ScalarDescriptor { - return ScalarDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message: ScalarDescriptorProtoMsg): ScalarDescriptor { - return ScalarDescriptor.decode(message.value); - }, - toProto(message: ScalarDescriptor): Uint8Array { - return ScalarDescriptor.encode(message).finish(); - }, - toProtoMsg(message: ScalarDescriptor): ScalarDescriptorProtoMsg { - return { - typeUrl: "/cosmos_proto.ScalarDescriptor", - value: ScalarDescriptor.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/gogoproto/bundle.ts b/packages/api/src/codegen/gogoproto/bundle.ts deleted file mode 100644 index bc2c86ab..00000000 --- a/packages/api/src/codegen/gogoproto/bundle.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as _98 from "./gogo"; -export const gogoproto = { - ..._98 -}; \ No newline at end of file diff --git a/packages/api/src/codegen/gogoproto/gogo.ts b/packages/api/src/codegen/gogoproto/gogo.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/api/src/codegen/gogoproto/gogo.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/api/src/codegen/google/api/annotations.ts b/packages/api/src/codegen/google/api/annotations.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/api/src/codegen/google/api/annotations.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/api/src/codegen/google/api/http.ts b/packages/api/src/codegen/google/api/http.ts deleted file mode 100644 index bde50615..00000000 --- a/packages/api/src/codegen/google/api/http.ts +++ /dev/null @@ -1,1423 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet } from "../../helpers"; -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -export interface HttpProtoMsg { - typeUrl: "/google.api.Http"; - value: Uint8Array; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpAmino { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules?: HttpRuleAmino[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fully_decode_reserved_expansion?: boolean; -} -export interface HttpAminoMsg { - type: "/google.api.Http"; - value: HttpAmino; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -export interface HttpRuleProtoMsg { - typeUrl: "/google.api.HttpRule"; - value: Uint8Array; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleAmino { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - */ - selector?: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPatternAmino; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body?: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - response_body?: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additional_bindings?: HttpRuleAmino[]; -} -export interface HttpRuleAminoMsg { - type: "/google.api.HttpRule"; - value: HttpRuleAmino; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternProtoMsg { - typeUrl: "/google.api.CustomHttpPattern"; - value: Uint8Array; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternAmino { - /** The name of this custom HTTP verb. */ - kind?: string; - /** The path matched by this custom verb. */ - path?: string; -} -export interface CustomHttpPatternAminoMsg { - type: "/google.api.CustomHttpPattern"; - value: CustomHttpPatternAmino; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} -function createBaseHttp(): Http { - return { - rules: [], - fullyDecodeReservedExpansion: false - }; -} -export const Http = { - typeUrl: "/google.api.Http", - encode(message: Http, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.rules) { - HttpRule.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.fullyDecodeReservedExpansion === true) { - writer.uint32(16).bool(message.fullyDecodeReservedExpansion); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Http { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rules.push(HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Http { - return { - rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => HttpRule.fromJSON(e)) : [], - fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion) ? Boolean(object.fullyDecodeReservedExpansion) : false - }; - }, - toJSON(message: Http): unknown { - const obj: any = {}; - if (message.rules) { - obj.rules = message.rules.map(e => e ? HttpRule.toJSON(e) : undefined); - } else { - obj.rules = []; - } - message.fullyDecodeReservedExpansion !== undefined && (obj.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion); - return obj; - }, - fromPartial(object: Partial): Http { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; - message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; - return message; - }, - fromAmino(object: HttpAmino): Http { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || []; - if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { - message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; - } - return message; - }, - toAmino(message: Http): HttpAmino { - const obj: any = {}; - if (message.rules) { - obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined); - } else { - obj.rules = message.rules; - } - obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; - return obj; - }, - fromAminoMsg(object: HttpAminoMsg): Http { - return Http.fromAmino(object.value); - }, - fromProtoMsg(message: HttpProtoMsg): Http { - return Http.decode(message.value); - }, - toProto(message: Http): Uint8Array { - return Http.encode(message).finish(); - }, - toProtoMsg(message: Http): HttpProtoMsg { - return { - typeUrl: "/google.api.Http", - value: Http.encode(message).finish() - }; - } -}; -function createBaseHttpRule(): HttpRule { - return { - selector: "", - get: undefined, - put: undefined, - post: undefined, - delete: undefined, - patch: undefined, - custom: undefined, - body: "", - responseBody: "", - additionalBindings: [] - }; -} -export const HttpRule = { - typeUrl: "/google.api.HttpRule", - encode(message: HttpRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.selector !== "") { - writer.uint32(10).string(message.selector); - } - if (message.get !== undefined) { - writer.uint32(18).string(message.get); - } - if (message.put !== undefined) { - writer.uint32(26).string(message.put); - } - if (message.post !== undefined) { - writer.uint32(34).string(message.post); - } - if (message.delete !== undefined) { - writer.uint32(42).string(message.delete); - } - if (message.patch !== undefined) { - writer.uint32(50).string(message.patch); - } - if (message.custom !== undefined) { - CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); - } - if (message.body !== "") { - writer.uint32(58).string(message.body); - } - if (message.responseBody !== "") { - writer.uint32(98).string(message.responseBody); - } - for (const v of message.additionalBindings) { - HttpRule.encode(v!, writer.uint32(90).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): HttpRule { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttpRule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message.delete = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): HttpRule { - return { - selector: isSet(object.selector) ? String(object.selector) : "", - get: isSet(object.get) ? String(object.get) : undefined, - put: isSet(object.put) ? String(object.put) : undefined, - post: isSet(object.post) ? String(object.post) : undefined, - delete: isSet(object.delete) ? String(object.delete) : undefined, - patch: isSet(object.patch) ? String(object.patch) : undefined, - custom: isSet(object.custom) ? CustomHttpPattern.fromJSON(object.custom) : undefined, - body: isSet(object.body) ? String(object.body) : "", - responseBody: isSet(object.responseBody) ? String(object.responseBody) : "", - additionalBindings: Array.isArray(object?.additionalBindings) ? object.additionalBindings.map((e: any) => HttpRule.fromJSON(e)) : [] - }; - }, - toJSON(message: HttpRule): unknown { - const obj: any = {}; - message.selector !== undefined && (obj.selector = message.selector); - message.get !== undefined && (obj.get = message.get); - message.put !== undefined && (obj.put = message.put); - message.post !== undefined && (obj.post = message.post); - message.delete !== undefined && (obj.delete = message.delete); - message.patch !== undefined && (obj.patch = message.patch); - message.custom !== undefined && (obj.custom = message.custom ? CustomHttpPattern.toJSON(message.custom) : undefined); - message.body !== undefined && (obj.body = message.body); - message.responseBody !== undefined && (obj.responseBody = message.responseBody); - if (message.additionalBindings) { - obj.additionalBindings = message.additionalBindings.map(e => e ? HttpRule.toJSON(e) : undefined); - } else { - obj.additionalBindings = []; - } - return obj; - }, - fromPartial(object: Partial): HttpRule { - const message = createBaseHttpRule(); - message.selector = object.selector ?? ""; - message.get = object.get ?? undefined; - message.put = object.put ?? undefined; - message.post = object.post ?? undefined; - message.delete = object.delete ?? undefined; - message.patch = object.patch ?? undefined; - message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined; - message.body = object.body ?? ""; - message.responseBody = object.responseBody ?? ""; - message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; - return message; - }, - fromAmino(object: HttpRuleAmino): HttpRule { - const message = createBaseHttpRule(); - if (object.selector !== undefined && object.selector !== null) { - message.selector = object.selector; - } - if (object.get !== undefined && object.get !== null) { - message.get = object.get; - } - if (object.put !== undefined && object.put !== null) { - message.put = object.put; - } - if (object.post !== undefined && object.post !== null) { - message.post = object.post; - } - if (object.delete !== undefined && object.delete !== null) { - message.delete = object.delete; - } - if (object.patch !== undefined && object.patch !== null) { - message.patch = object.patch; - } - if (object.custom !== undefined && object.custom !== null) { - message.custom = CustomHttpPattern.fromAmino(object.custom); - } - if (object.body !== undefined && object.body !== null) { - message.body = object.body; - } - if (object.response_body !== undefined && object.response_body !== null) { - message.responseBody = object.response_body; - } - message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || []; - return message; - }, - toAmino(message: HttpRule): HttpRuleAmino { - const obj: any = {}; - obj.selector = message.selector === "" ? undefined : message.selector; - obj.get = message.get === null ? undefined : message.get; - obj.put = message.put === null ? undefined : message.put; - obj.post = message.post === null ? undefined : message.post; - obj.delete = message.delete === null ? undefined : message.delete; - obj.patch = message.patch === null ? undefined : message.patch; - obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined; - obj.body = message.body === "" ? undefined : message.body; - obj.response_body = message.responseBody === "" ? undefined : message.responseBody; - if (message.additionalBindings) { - obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined); - } else { - obj.additional_bindings = message.additionalBindings; - } - return obj; - }, - fromAminoMsg(object: HttpRuleAminoMsg): HttpRule { - return HttpRule.fromAmino(object.value); - }, - fromProtoMsg(message: HttpRuleProtoMsg): HttpRule { - return HttpRule.decode(message.value); - }, - toProto(message: HttpRule): Uint8Array { - return HttpRule.encode(message).finish(); - }, - toProtoMsg(message: HttpRule): HttpRuleProtoMsg { - return { - typeUrl: "/google.api.HttpRule", - value: HttpRule.encode(message).finish() - }; - } -}; -function createBaseCustomHttpPattern(): CustomHttpPattern { - return { - kind: "", - path: "" - }; -} -export const CustomHttpPattern = { - typeUrl: "/google.api.CustomHttpPattern", - encode(message: CustomHttpPattern, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.kind !== "") { - writer.uint32(10).string(message.kind); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCustomHttpPattern(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CustomHttpPattern { - return { - kind: isSet(object.kind) ? String(object.kind) : "", - path: isSet(object.path) ? String(object.path) : "" - }; - }, - toJSON(message: CustomHttpPattern): unknown { - const obj: any = {}; - message.kind !== undefined && (obj.kind = message.kind); - message.path !== undefined && (obj.path = message.path); - return obj; - }, - fromPartial(object: Partial): CustomHttpPattern { - const message = createBaseCustomHttpPattern(); - message.kind = object.kind ?? ""; - message.path = object.path ?? ""; - return message; - }, - fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern { - const message = createBaseCustomHttpPattern(); - if (object.kind !== undefined && object.kind !== null) { - message.kind = object.kind; - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - return message; - }, - toAmino(message: CustomHttpPattern): CustomHttpPatternAmino { - const obj: any = {}; - obj.kind = message.kind === "" ? undefined : message.kind; - obj.path = message.path === "" ? undefined : message.path; - return obj; - }, - fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern { - return CustomHttpPattern.fromAmino(object.value); - }, - fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern { - return CustomHttpPattern.decode(message.value); - }, - toProto(message: CustomHttpPattern): Uint8Array { - return CustomHttpPattern.encode(message).finish(); - }, - toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg { - return { - typeUrl: "/google.api.CustomHttpPattern", - value: CustomHttpPattern.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/google/bundle.ts b/packages/api/src/codegen/google/bundle.ts deleted file mode 100644 index c9d1e72f..00000000 --- a/packages/api/src/codegen/google/bundle.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as _99 from "./api/annotations"; -import * as _100 from "./api/http"; -import * as _101 from "./protobuf/descriptor"; -import * as _102 from "./protobuf/any"; -import * as _103 from "./protobuf/timestamp"; -import * as _104 from "./protobuf/duration"; -export namespace google { - export const api = { - ..._99, - ..._100 - }; - export const protobuf = { - ..._101, - ..._102, - ..._103, - ..._104 - }; -} \ No newline at end of file diff --git a/packages/api/src/codegen/google/protobuf/any.ts b/packages/api/src/codegen/google/protobuf/any.ts deleted file mode 100644 index cd43a3e7..00000000 --- a/packages/api/src/codegen/google/protobuf/any.ts +++ /dev/null @@ -1,411 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - $typeUrl?: "/google.protobuf.Any" | string; - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} -export interface AnyProtoMsg { - typeUrl: "/google.protobuf.Any"; - value: Uint8Array; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnyAmino { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: any; -} -export interface AnyAminoMsg { - type: string; - value: AnyAmino; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnySDKType { - $typeUrl?: "/google.protobuf.Any" | string; - type_url: string; - value: Uint8Array; -} -function createBaseAny(): Any { - return { - $typeUrl: "/google.protobuf.Any", - typeUrl: "", - value: new Uint8Array() - }; -} -export const Any = { - typeUrl: "/google.protobuf.Any", - encode(message: Any, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.typeUrl !== "") { - writer.uint32(10).string(message.typeUrl); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Any { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAny(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.typeUrl = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Any { - return { - typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "", - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array() - }; - }, - toJSON(message: Any): unknown { - const obj: any = {}; - message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Any { - const message = createBaseAny(); - message.typeUrl = object.typeUrl ?? ""; - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object: AnyAmino): Any { - return { - typeUrl: object.type, - value: object.value - }; - }, - toAmino(message: Any): AnyAmino { - const obj: any = {}; - obj.type = message.typeUrl; - obj.value = message.value; - return obj; - }, - fromAminoMsg(object: AnyAminoMsg): Any { - return Any.fromAmino(object.value); - }, - fromProtoMsg(message: AnyProtoMsg): Any { - return Any.decode(message.value); - }, - toProto(message: Any): Uint8Array { - return Any.encode(message).finish(); - }, - toProtoMsg(message: Any): AnyProtoMsg { - return { - typeUrl: "/google.protobuf.Any", - value: Any.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/google/protobuf/descriptor.ts b/packages/api/src/codegen/google/protobuf/descriptor.ts deleted file mode 100644 index febc7b37..00000000 --- a/packages/api/src/codegen/google/protobuf/descriptor.ts +++ /dev/null @@ -1,5788 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -export enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; -export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; -export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Type.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - case FieldDescriptorProto_Type.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - UNRECOGNIZED = -1, -} -export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; -export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; -export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Label.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - case FieldDescriptorProto_Label.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Generated classes can be optimized for speed or code size. */ -export enum FileOptions_OptimizeMode { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - SPEED = 1, - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3, - UNRECOGNIZED = -1, -} -export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; -export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; -export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - case -1: - case "UNRECOGNIZED": - default: - return FileOptions_OptimizeMode.UNRECOGNIZED; - } -} -export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - case FileOptions_OptimizeMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_CTypeSDKType = FieldOptions_CType; -export const FieldOptions_CTypeAmino = FieldOptions_CType; -export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_CType.UNRECOGNIZED; - } -} -export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - case FieldOptions_CType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2, - UNRECOGNIZED = -1, -} -export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; -export const FieldOptions_JSTypeAmino = FieldOptions_JSType; -export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_JSType.UNRECOGNIZED; - } -} -export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - case FieldOptions_JSType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2, - UNRECOGNIZED = -1, -} -export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; -export const MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; -export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - case -1: - case "UNRECOGNIZED": - default: - return MethodOptions_IdempotencyLevel.UNRECOGNIZED; - } -} -export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - case MethodOptions_IdempotencyLevel.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -export interface FileDescriptorSetProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorSet"; - value: Uint8Array; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetAmino { - file?: FileDescriptorProtoAmino[]; -} -export interface FileDescriptorSetAminoMsg { - type: "/google.protobuf.FileDescriptorSet"; - value: FileDescriptorSetAmino; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetSDKType { - file: FileDescriptorProtoSDKType[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorProto"; - value: Uint8Array; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoAmino { - /** file name, relative to root of source tree */ - name?: string; - package?: string; - /** Names of files imported by this file. */ - dependency?: string[]; - /** Indexes of the public imported files in the dependency list above. */ - public_dependency?: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weak_dependency?: number[]; - /** All top-level definitions in this file. */ - message_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - service?: ServiceDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - options?: FileOptionsAmino; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - source_code_info?: SourceCodeInfoAmino; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax?: string; -} -export interface FileDescriptorProtoAminoMsg { - type: "/google.protobuf.FileDescriptorProto"; - value: FileDescriptorProtoAmino; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoSDKType { - name: string; - package: string; - dependency: string[]; - public_dependency: number[]; - weak_dependency: number[]; - message_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - service: ServiceDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - options?: FileOptionsSDKType; - source_code_info?: SourceCodeInfoSDKType; - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options?: MessageOptions; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.DescriptorProto"; - value: Uint8Array; -} -/** Describes a message type. */ -export interface DescriptorProtoAmino { - name?: string; - field?: FieldDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - nested_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - extension_range?: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl?: OneofDescriptorProtoAmino[]; - options?: MessageOptionsAmino; - reserved_range?: DescriptorProto_ReservedRangeAmino[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reserved_name?: string[]; -} -export interface DescriptorProtoAminoMsg { - type: "/google.protobuf.DescriptorProto"; - value: DescriptorProtoAmino; -} -/** Describes a message type. */ -export interface DescriptorProtoSDKType { - name: string; - field: FieldDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - nested_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - extension_range: DescriptorProto_ExtensionRangeSDKType[]; - oneof_decl: OneofDescriptorProtoSDKType[]; - options?: MessageOptionsSDKType; - reserved_range: DescriptorProto_ReservedRangeSDKType[]; - reserved_name: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options?: ExtensionRangeOptions; -} -export interface DescriptorProto_ExtensionRangeProtoMsg { - typeUrl: "/google.protobuf.ExtensionRange"; - value: Uint8Array; -} -export interface DescriptorProto_ExtensionRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; - options?: ExtensionRangeOptionsAmino; -} -export interface DescriptorProto_ExtensionRangeAminoMsg { - type: "/google.protobuf.ExtensionRange"; - value: DescriptorProto_ExtensionRangeAmino; -} -export interface DescriptorProto_ExtensionRangeSDKType { - start: number; - end: number; - options?: ExtensionRangeOptionsSDKType; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeProtoMsg { - typeUrl: "/google.protobuf.ReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; -} -export interface DescriptorProto_ReservedRangeAminoMsg { - type: "/google.protobuf.ReservedRange"; - value: DescriptorProto_ReservedRangeAmino; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeSDKType { - start: number; - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ExtensionRangeOptionsProtoMsg { - typeUrl: "/google.protobuf.ExtensionRangeOptions"; - value: Uint8Array; -} -export interface ExtensionRangeOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ExtensionRangeOptionsAminoMsg { - type: "/google.protobuf.ExtensionRangeOptions"; - value: ExtensionRangeOptionsAmino; -} -export interface ExtensionRangeOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options?: FieldOptions; -} -export interface FieldDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FieldDescriptorProto"; - value: Uint8Array; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoAmino { - name?: string; - number?: number; - label?: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type?: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - type_name?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - default_value?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneof_index?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - json_name?: string; - options?: FieldOptionsAmino; -} -export interface FieldDescriptorProtoAminoMsg { - type: "/google.protobuf.FieldDescriptorProto"; - value: FieldDescriptorProtoAmino; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoSDKType { - name: string; - number: number; - label: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - type_name: string; - extendee: string; - default_value: string; - oneof_index: number; - json_name: string; - options?: FieldOptionsSDKType; -} -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options?: OneofOptions; -} -export interface OneofDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.OneofDescriptorProto"; - value: Uint8Array; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoAmino { - name?: string; - options?: OneofOptionsAmino; -} -export interface OneofDescriptorProtoAminoMsg { - type: "/google.protobuf.OneofDescriptorProto"; - value: OneofDescriptorProtoAmino; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoSDKType { - name: string; - options?: OneofOptionsSDKType; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -export interface EnumDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumDescriptorProto"; - value: Uint8Array; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoAmino { - name?: string; - value?: EnumValueDescriptorProtoAmino[]; - options?: EnumOptionsAmino; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reserved_name?: string[]; -} -export interface EnumDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumDescriptorProto"; - value: EnumDescriptorProtoAmino; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoSDKType { - name: string; - value: EnumValueDescriptorProtoSDKType[]; - options?: EnumOptionsSDKType; - reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { - typeUrl: "/google.protobuf.EnumReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Inclusive. */ - end?: number; -} -export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { - type: "/google.protobuf.EnumReservedRange"; - value: EnumDescriptorProto_EnumReservedRangeAmino; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeSDKType { - start: number; - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options?: EnumValueOptions; -} -export interface EnumValueDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumValueDescriptorProto"; - value: Uint8Array; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoAmino { - name?: string; - number?: number; - options?: EnumValueOptionsAmino; -} -export interface EnumValueDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumValueDescriptorProto"; - value: EnumValueDescriptorProtoAmino; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoSDKType { - name: string; - number: number; - options?: EnumValueOptionsSDKType; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options?: ServiceOptions; -} -export interface ServiceDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.ServiceDescriptorProto"; - value: Uint8Array; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoAmino { - name?: string; - method?: MethodDescriptorProtoAmino[]; - options?: ServiceOptionsAmino; -} -export interface ServiceDescriptorProtoAminoMsg { - type: "/google.protobuf.ServiceDescriptorProto"; - value: ServiceDescriptorProtoAmino; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoSDKType { - name: string; - method: MethodDescriptorProtoSDKType[]; - options?: ServiceOptionsSDKType; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options?: MethodOptions; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface MethodDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.MethodDescriptorProto"; - value: Uint8Array; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoAmino { - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - input_type?: string; - output_type?: string; - options?: MethodOptionsAmino; - /** Identifies if client streams multiple client messages */ - client_streaming?: boolean; - /** Identifies if server streams multiple server messages */ - server_streaming?: boolean; -} -export interface MethodDescriptorProtoAminoMsg { - type: "/google.protobuf.MethodDescriptorProto"; - value: MethodDescriptorProtoAmino; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoSDKType { - name: string; - input_type: string; - output_type: string; - options?: MethodOptionsSDKType; - client_streaming: boolean; - server_streaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - javaOuterClassname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** This option does nothing. */ - /** @deprecated */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FileOptionsProtoMsg { - typeUrl: "/google.protobuf.FileOptions"; - value: Uint8Array; -} -export interface FileOptionsAmino { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - java_package?: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - java_outer_classname?: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - java_multiple_files?: boolean; - /** This option does nothing. */ - /** @deprecated */ - java_generate_equals_and_hash?: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - java_string_check_utf8?: boolean; - optimize_for?: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - go_package?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - cc_generic_services?: boolean; - java_generic_services?: boolean; - py_generic_services?: boolean; - php_generic_services?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - cc_enable_arenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objc_class_prefix?: string; - /** Namespace for generated classes; defaults to the package. */ - csharp_namespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swift_prefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - php_class_prefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - php_namespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - php_metadata_namespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - ruby_package?: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FileOptionsAminoMsg { - type: "/google.protobuf.FileOptions"; - value: FileOptionsAmino; -} -export interface FileOptionsSDKType { - java_package: string; - java_outer_classname: string; - java_multiple_files: boolean; - /** @deprecated */ - java_generate_equals_and_hash: boolean; - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - go_package: string; - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - deprecated: boolean; - cc_enable_arenas: boolean; - objc_class_prefix: string; - csharp_namespace: string; - swift_prefix: string; - php_class_prefix: string; - php_namespace: string; - php_metadata_namespace: string; - ruby_package: string; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MessageOptionsProtoMsg { - typeUrl: "/google.protobuf.MessageOptions"; - value: Uint8Array; -} -export interface MessageOptionsAmino { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - message_set_wire_format?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - no_standard_descriptor_accessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated?: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - map_entry?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MessageOptionsAminoMsg { - type: "/google.protobuf.MessageOptions"; - value: MessageOptionsAmino; -} -export interface MessageOptionsSDKType { - message_set_wire_format: boolean; - no_standard_descriptor_accessor: boolean; - deprecated: boolean; - map_entry: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptionsProtoMsg { - typeUrl: "/google.protobuf.FieldOptions"; - value: Uint8Array; -} -export interface FieldOptionsAmino { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype?: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype?: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated?: boolean; - /** For Google-internal migration only. Do not use. */ - weak?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FieldOptionsAminoMsg { - type: "/google.protobuf.FieldOptions"; - value: FieldOptionsAmino; -} -export interface FieldOptionsSDKType { - ctype: FieldOptions_CType; - packed: boolean; - jstype: FieldOptions_JSType; - lazy: boolean; - deprecated: boolean; - weak: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface OneofOptionsProtoMsg { - typeUrl: "/google.protobuf.OneofOptions"; - value: Uint8Array; -} -export interface OneofOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface OneofOptionsAminoMsg { - type: "/google.protobuf.OneofOptions"; - value: OneofOptionsAmino; -} -export interface OneofOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumOptions"; - value: Uint8Array; -} -export interface EnumOptionsAmino { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allow_alias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumOptionsAminoMsg { - type: "/google.protobuf.EnumOptions"; - value: EnumOptionsAmino; -} -export interface EnumOptionsSDKType { - allow_alias: boolean; - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumValueOptions"; - value: Uint8Array; -} -export interface EnumValueOptionsAmino { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumValueOptionsAminoMsg { - type: "/google.protobuf.EnumValueOptions"; - value: EnumValueOptionsAmino; -} -export interface EnumValueOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptionsProtoMsg { - typeUrl: "/google.protobuf.ServiceOptions"; - value: Uint8Array; -} -export interface ServiceOptionsAmino { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ServiceOptionsAminoMsg { - type: "/google.protobuf.ServiceOptions"; - value: ServiceOptionsAmino; -} -export interface ServiceOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptionsProtoMsg { - typeUrl: "/google.protobuf.MethodOptions"; - value: Uint8Array; -} -export interface MethodOptionsAmino { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated?: boolean; - idempotency_level?: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MethodOptionsAminoMsg { - type: "/google.protobuf.MethodOptions"; - value: MethodOptionsAmino; -} -export interface MethodOptionsSDKType { - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: bigint; - negativeIntValue: bigint; - doubleValue: number; - stringValue: Uint8Array; - aggregateValue: string; -} -export interface UninterpretedOptionProtoMsg { - typeUrl: "/google.protobuf.UninterpretedOption"; - value: Uint8Array; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionAmino { - name?: UninterpretedOption_NamePartAmino[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifier_value?: string; - positive_int_value?: string; - negative_int_value?: string; - double_value?: number; - string_value?: string; - aggregate_value?: string; -} -export interface UninterpretedOptionAminoMsg { - type: "/google.protobuf.UninterpretedOption"; - value: UninterpretedOptionAmino; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionSDKType { - name: UninterpretedOption_NamePartSDKType[]; - identifier_value: string; - positive_int_value: bigint; - negative_int_value: bigint; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -export interface UninterpretedOption_NamePartProtoMsg { - typeUrl: "/google.protobuf.NamePart"; - value: Uint8Array; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartAmino { - name_part?: string; - is_extension?: boolean; -} -export interface UninterpretedOption_NamePartAminoMsg { - type: "/google.protobuf.NamePart"; - value: UninterpretedOption_NamePartAmino; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartSDKType { - name_part: string; - is_extension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfoProtoMsg { - typeUrl: "/google.protobuf.SourceCodeInfo"; - value: Uint8Array; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoAmino { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location?: SourceCodeInfo_LocationAmino[]; -} -export interface SourceCodeInfoAminoMsg { - type: "/google.protobuf.SourceCodeInfo"; - value: SourceCodeInfoAmino; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoSDKType { - location: SourceCodeInfo_LocationSDKType[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -export interface SourceCodeInfo_LocationProtoMsg { - typeUrl: "/google.protobuf.Location"; - value: Uint8Array; -} -export interface SourceCodeInfo_LocationAmino { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path?: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span?: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leading_comments?: string; - trailing_comments?: string; - leading_detached_comments?: string[]; -} -export interface SourceCodeInfo_LocationAminoMsg { - type: "/google.protobuf.Location"; - value: SourceCodeInfo_LocationAmino; -} -export interface SourceCodeInfo_LocationSDKType { - path: number[]; - span: number[]; - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfoProtoMsg { - typeUrl: "/google.protobuf.GeneratedCodeInfo"; - value: Uint8Array; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoAmino { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation?: GeneratedCodeInfo_AnnotationAmino[]; -} -export interface GeneratedCodeInfoAminoMsg { - type: "/google.protobuf.GeneratedCodeInfo"; - value: GeneratedCodeInfoAmino; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoSDKType { - annotation: GeneratedCodeInfo_AnnotationSDKType[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationProtoMsg { - typeUrl: "/google.protobuf.Annotation"; - value: Uint8Array; -} -export interface GeneratedCodeInfo_AnnotationAmino { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path?: number[]; - /** Identifies the filesystem path to the original source .proto. */ - source_file?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end?: number; -} -export interface GeneratedCodeInfo_AnnotationAminoMsg { - type: "/google.protobuf.Annotation"; - value: GeneratedCodeInfo_AnnotationAmino; -} -export interface GeneratedCodeInfo_AnnotationSDKType { - path: number[]; - source_file: string; - begin: number; - end: number; -} -function createBaseFileDescriptorSet(): FileDescriptorSet { - return { - file: [] - }; -} -export const FileDescriptorSet = { - typeUrl: "/google.protobuf.FileDescriptorSet", - encode(message: FileDescriptorSet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.file) { - FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.file.push(FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FileDescriptorSet { - return { - file: Array.isArray(object?.file) ? object.file.map((e: any) => FileDescriptorProto.fromJSON(e)) : [] - }; - }, - toJSON(message: FileDescriptorSet): unknown { - const obj: any = {}; - if (message.file) { - obj.file = message.file.map(e => e ? FileDescriptorProto.toJSON(e) : undefined); - } else { - obj.file = []; - } - return obj; - }, - fromPartial(object: Partial): FileDescriptorSet { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || []; - return message; - }, - fromAmino(object: FileDescriptorSetAmino): FileDescriptorSet { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => FileDescriptorProto.fromAmino(e)) || []; - return message; - }, - toAmino(message: FileDescriptorSet): FileDescriptorSetAmino { - const obj: any = {}; - if (message.file) { - obj.file = message.file.map(e => e ? FileDescriptorProto.toAmino(e) : undefined); - } else { - obj.file = message.file; - } - return obj; - }, - fromAminoMsg(object: FileDescriptorSetAminoMsg): FileDescriptorSet { - return FileDescriptorSet.fromAmino(object.value); - }, - fromProtoMsg(message: FileDescriptorSetProtoMsg): FileDescriptorSet { - return FileDescriptorSet.decode(message.value); - }, - toProto(message: FileDescriptorSet): Uint8Array { - return FileDescriptorSet.encode(message).finish(); - }, - toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg { - return { - typeUrl: "/google.protobuf.FileDescriptorSet", - value: FileDescriptorSet.encode(message).finish() - }; - } -}; -function createBaseFileDescriptorProto(): FileDescriptorProto { - return { - name: "", - package: "", - dependency: [], - publicDependency: [], - weakDependency: [], - messageType: [], - enumType: [], - service: [], - extension: [], - options: undefined, - sourceCodeInfo: undefined, - syntax: "" - }; -} -export const FileDescriptorProto = { - typeUrl: "/google.protobuf.FileDescriptorProto", - encode(message: FileDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.package !== "") { - writer.uint32(18).string(message.package); - } - for (const v of message.dependency) { - writer.uint32(26).string(v!); - } - writer.uint32(82).fork(); - for (const v of message.publicDependency) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(90).fork(); - for (const v of message.weakDependency) { - writer.int32(v); - } - writer.ldelim(); - for (const v of message.messageType) { - DescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.enumType) { - EnumDescriptorProto.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.service) { - ServiceDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.extension) { - FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.options !== undefined) { - FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - if (message.sourceCodeInfo !== undefined) { - SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); - } - if (message.syntax !== "") { - writer.uint32(98).string(message.syntax); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.package = reader.string(); - break; - case 3: - message.dependency.push(reader.string()); - break; - case 10: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.publicDependency.push(reader.int32()); - } - } else { - message.publicDependency.push(reader.int32()); - } - break; - case 11: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.weakDependency.push(reader.int32()); - } - } else { - message.weakDependency.push(reader.int32()); - } - break; - case 4: - message.messageType.push(DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FileDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - package: isSet(object.package) ? String(object.package) : "", - dependency: Array.isArray(object?.dependency) ? object.dependency.map((e: any) => String(e)) : [], - publicDependency: Array.isArray(object?.publicDependency) ? object.publicDependency.map((e: any) => Number(e)) : [], - weakDependency: Array.isArray(object?.weakDependency) ? object.weakDependency.map((e: any) => Number(e)) : [], - messageType: Array.isArray(object?.messageType) ? object.messageType.map((e: any) => DescriptorProto.fromJSON(e)) : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e)) : [], - service: Array.isArray(object?.service) ? object.service.map((e: any) => ServiceDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) ? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined, - sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, - syntax: isSet(object.syntax) ? String(object.syntax) : "" - }; - }, - toJSON(message: FileDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.package !== undefined && (obj.package = message.package); - if (message.dependency) { - obj.dependency = message.dependency.map(e => e); - } else { - obj.dependency = []; - } - if (message.publicDependency) { - obj.publicDependency = message.publicDependency.map(e => Math.round(e)); - } else { - obj.publicDependency = []; - } - if (message.weakDependency) { - obj.weakDependency = message.weakDependency.map(e => Math.round(e)); - } else { - obj.weakDependency = []; - } - if (message.messageType) { - obj.messageType = message.messageType.map(e => e ? DescriptorProto.toJSON(e) : undefined); - } else { - obj.messageType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map(e => e ? EnumDescriptorProto.toJSON(e) : undefined); - } else { - obj.enumType = []; - } - if (message.service) { - obj.service = message.service.map(e => e ? ServiceDescriptorProto.toJSON(e) : undefined); - } else { - obj.service = []; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toJSON(e) : undefined); - } else { - obj.extension = []; - } - message.options !== undefined && (obj.options = message.options ? FileOptions.toJSON(message.options) : undefined); - message.sourceCodeInfo !== undefined && (obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined); - message.syntax !== undefined && (obj.syntax = message.syntax); - return obj; - }, - fromPartial(object: Partial): FileDescriptorProto { - const message = createBaseFileDescriptorProto(); - message.name = object.name ?? ""; - message.package = object.package ?? ""; - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.publicDependency?.map(e => e) || []; - message.weakDependency = object.weakDependency?.map(e => e) || []; - message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; - message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined; - message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; - message.syntax = object.syntax ?? ""; - return message; - }, - fromAmino(object: FileDescriptorProtoAmino): FileDescriptorProto { - const message = createBaseFileDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.package !== undefined && object.package !== null) { - message.package = object.package; - } - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.public_dependency?.map(e => e) || []; - message.weakDependency = object.weak_dependency?.map(e => e) || []; - message.messageType = object.message_type?.map(e => DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; - message.service = object.service?.map(e => ServiceDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = FileOptions.fromAmino(object.options); - } - if (object.source_code_info !== undefined && object.source_code_info !== null) { - message.sourceCodeInfo = SourceCodeInfo.fromAmino(object.source_code_info); - } - if (object.syntax !== undefined && object.syntax !== null) { - message.syntax = object.syntax; - } - return message; - }, - toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.package = message.package === "" ? undefined : message.package; - if (message.dependency) { - obj.dependency = message.dependency.map(e => e); - } else { - obj.dependency = message.dependency; - } - if (message.publicDependency) { - obj.public_dependency = message.publicDependency.map(e => e); - } else { - obj.public_dependency = message.publicDependency; - } - if (message.weakDependency) { - obj.weak_dependency = message.weakDependency.map(e => e); - } else { - obj.weak_dependency = message.weakDependency; - } - if (message.messageType) { - obj.message_type = message.messageType.map(e => e ? DescriptorProto.toAmino(e) : undefined); - } else { - obj.message_type = message.messageType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); - } else { - obj.enum_type = message.enumType; - } - if (message.service) { - obj.service = message.service.map(e => e ? ServiceDescriptorProto.toAmino(e) : undefined); - } else { - obj.service = message.service; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } else { - obj.extension = message.extension; - } - obj.options = message.options ? FileOptions.toAmino(message.options) : undefined; - obj.source_code_info = message.sourceCodeInfo ? SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; - obj.syntax = message.syntax === "" ? undefined : message.syntax; - return obj; - }, - fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto { - return FileDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: FileDescriptorProtoProtoMsg): FileDescriptorProto { - return FileDescriptorProto.decode(message.value); - }, - toProto(message: FileDescriptorProto): Uint8Array { - return FileDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.FileDescriptorProto", - value: FileDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto(): DescriptorProto { - return { - name: "", - field: [], - extension: [], - nestedType: [], - enumType: [], - extensionRange: [], - oneofDecl: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -export const DescriptorProto = { - typeUrl: "/google.protobuf.DescriptorProto", - encode(message: DescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.field) { - FieldDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.extension) { - FieldDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.nestedType) { - DescriptorProto.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.enumType) { - EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.extensionRange) { - DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.oneofDecl) { - OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim(); - } - if (message.options !== undefined) { - MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.reservedRange) { - DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(82).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.field.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.nestedType.push(DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - field: Array.isArray(object?.field) ? object.field.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) ? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], - nestedType: Array.isArray(object?.nestedType) ? object.nestedType.map((e: any) => DescriptorProto.fromJSON(e)) : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e)) : [], - extensionRange: Array.isArray(object?.extensionRange) ? object.extensionRange.map((e: any) => DescriptorProto_ExtensionRange.fromJSON(e)) : [], - oneofDecl: Array.isArray(object?.oneofDecl) ? object.oneofDecl.map((e: any) => OneofDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? MessageOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) ? object.reservedRange.map((e: any) => DescriptorProto_ReservedRange.fromJSON(e)) : [], - reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: DescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - if (message.field) { - obj.field = message.field.map(e => e ? FieldDescriptorProto.toJSON(e) : undefined); - } else { - obj.field = []; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toJSON(e) : undefined); - } else { - obj.extension = []; - } - if (message.nestedType) { - obj.nestedType = message.nestedType.map(e => e ? DescriptorProto.toJSON(e) : undefined); - } else { - obj.nestedType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map(e => e ? EnumDescriptorProto.toJSON(e) : undefined); - } else { - obj.enumType = []; - } - if (message.extensionRange) { - obj.extensionRange = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toJSON(e) : undefined); - } else { - obj.extensionRange = []; - } - if (message.oneofDecl) { - obj.oneofDecl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toJSON(e) : undefined); - } else { - obj.oneofDecl = []; - } - message.options !== undefined && (obj.options = message.options ? MessageOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toJSON(e) : undefined); - } else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map(e => e); - } else { - obj.reservedName = []; - } - return obj; - }, - fromPartial(object: Partial): DescriptorProto { - const message = createBaseDescriptorProto(); - message.name = object.name ?? ""; - message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; - message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || []; - message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object: DescriptorProtoAmino): DescriptorProto { - const message = createBaseDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.field = object.field?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - message.nestedType = object.nested_type?.map(e => DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; - message.extensionRange = object.extension_range?.map(e => DescriptorProto_ExtensionRange.fromAmino(e)) || []; - message.oneofDecl = object.oneof_decl?.map(e => OneofDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = MessageOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => DescriptorProto_ReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message: DescriptorProto): DescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.field) { - obj.field = message.field.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } else { - obj.field = message.field; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } else { - obj.extension = message.extension; - } - if (message.nestedType) { - obj.nested_type = message.nestedType.map(e => e ? DescriptorProto.toAmino(e) : undefined); - } else { - obj.nested_type = message.nestedType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); - } else { - obj.enum_type = message.enumType; - } - if (message.extensionRange) { - obj.extension_range = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toAmino(e) : undefined); - } else { - obj.extension_range = message.extensionRange; - } - if (message.oneofDecl) { - obj.oneof_decl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toAmino(e) : undefined); - } else { - obj.oneof_decl = message.oneofDecl; - } - obj.options = message.options ? MessageOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toAmino(e) : undefined); - } else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object: DescriptorProtoAminoMsg): DescriptorProto { - return DescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: DescriptorProtoProtoMsg): DescriptorProto { - return DescriptorProto.decode(message.value); - }, - toProto(message: DescriptorProto): Uint8Array { - return DescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.DescriptorProto", - value: DescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange { - return { - start: 0, - end: 0, - options: undefined - }; -} -export const DescriptorProto_ExtensionRange = { - typeUrl: "/google.protobuf.ExtensionRange", - encode(message: DescriptorProto_ExtensionRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - if (message.options !== undefined) { - ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ExtensionRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DescriptorProto_ExtensionRange { - return { - start: isSet(object.start) ? Number(object.start) : 0, - end: isSet(object.end) ? Number(object.end) : 0, - options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined - }; - }, - toJSON(message: DescriptorProto_ExtensionRange): unknown { - const obj: any = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - message.options !== undefined && (obj.options = message.options ? ExtensionRangeOptions.toJSON(message.options) : undefined); - return obj; - }, - fromPartial(object: Partial): DescriptorProto_ExtensionRange { - const message = createBaseDescriptorProto_ExtensionRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object: DescriptorProto_ExtensionRangeAmino): DescriptorProto_ExtensionRange { - const message = createBaseDescriptorProto_ExtensionRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - if (object.options !== undefined && object.options !== null) { - message.options = ExtensionRangeOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino { - const obj: any = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - obj.options = message.options ? ExtensionRangeOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object: DescriptorProto_ExtensionRangeAminoMsg): DescriptorProto_ExtensionRange { - return DescriptorProto_ExtensionRange.fromAmino(object.value); - }, - fromProtoMsg(message: DescriptorProto_ExtensionRangeProtoMsg): DescriptorProto_ExtensionRange { - return DescriptorProto_ExtensionRange.decode(message.value); - }, - toProto(message: DescriptorProto_ExtensionRange): Uint8Array { - return DescriptorProto_ExtensionRange.encode(message).finish(); - }, - toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg { - return { - typeUrl: "/google.protobuf.ExtensionRange", - value: DescriptorProto_ExtensionRange.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange { - return { - start: 0, - end: 0 - }; -} -export const DescriptorProto_ReservedRange = { - typeUrl: "/google.protobuf.ReservedRange", - encode(message: DescriptorProto_ReservedRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DescriptorProto_ReservedRange { - return { - start: isSet(object.start) ? Number(object.start) : 0, - end: isSet(object.end) ? Number(object.end) : 0 - }; - }, - toJSON(message: DescriptorProto_ReservedRange): unknown { - const obj: any = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, - fromPartial(object: Partial): DescriptorProto_ReservedRange { - const message = createBaseDescriptorProto_ReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object: DescriptorProto_ReservedRangeAmino): DescriptorProto_ReservedRange { - const message = createBaseDescriptorProto_ReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino { - const obj: any = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange { - return DescriptorProto_ReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message: DescriptorProto_ReservedRangeProtoMsg): DescriptorProto_ReservedRange { - return DescriptorProto_ReservedRange.decode(message.value); - }, - toProto(message: DescriptorProto_ReservedRange): Uint8Array { - return DescriptorProto_ReservedRange.encode(message).finish(); - }, - toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg { - return { - typeUrl: "/google.protobuf.ReservedRange", - value: DescriptorProto_ReservedRange.encode(message).finish() - }; - } -}; -function createBaseExtensionRangeOptions(): ExtensionRangeOptions { - return { - uninterpretedOption: [] - }; -} -export const ExtensionRangeOptions = { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - encode(message: ExtensionRangeOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtensionRangeOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ExtensionRangeOptions { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: ExtensionRangeOptions): unknown { - const obj: any = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): ExtensionRangeOptions { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ExtensionRangeOptionsAmino): ExtensionRangeOptions { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: ExtensionRangeOptions): ExtensionRangeOptionsAmino { - const obj: any = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: ExtensionRangeOptionsAminoMsg): ExtensionRangeOptions { - return ExtensionRangeOptions.fromAmino(object.value); - }, - fromProtoMsg(message: ExtensionRangeOptionsProtoMsg): ExtensionRangeOptions { - return ExtensionRangeOptions.decode(message.value); - }, - toProto(message: ExtensionRangeOptions): Uint8Array { - return ExtensionRangeOptions.encode(message).finish(); - }, - toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - value: ExtensionRangeOptions.encode(message).finish() - }; - } -}; -function createBaseFieldDescriptorProto(): FieldDescriptorProto { - return { - name: "", - number: 0, - label: 1, - type: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - options: undefined - }; -} -export const FieldDescriptorProto = { - typeUrl: "/google.protobuf.FieldDescriptorProto", - encode(message: FieldDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(24).int32(message.number); - } - if (message.label !== 1) { - writer.uint32(32).int32(message.label); - } - if (message.type !== 1) { - writer.uint32(40).int32(message.type); - } - if (message.typeName !== "") { - writer.uint32(50).string(message.typeName); - } - if (message.extendee !== "") { - writer.uint32(18).string(message.extendee); - } - if (message.defaultValue !== "") { - writer.uint32(58).string(message.defaultValue); - } - if (message.oneofIndex !== 0) { - writer.uint32(72).int32(message.oneofIndex); - } - if (message.jsonName !== "") { - writer.uint32(82).string(message.jsonName); - } - if (message.options !== undefined) { - FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = (reader.int32() as any); - break; - case 5: - message.type = (reader.int32() as any); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FieldDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : -1, - type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : -1, - typeName: isSet(object.typeName) ? String(object.typeName) : "", - extendee: isSet(object.extendee) ? String(object.extendee) : "", - defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "", - oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0, - jsonName: isSet(object.jsonName) ? String(object.jsonName) : "", - options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined - }; - }, - toJSON(message: FieldDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.label !== undefined && (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); - message.type !== undefined && (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); - message.typeName !== undefined && (obj.typeName = message.typeName); - message.extendee !== undefined && (obj.extendee = message.extendee); - message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue); - message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex)); - message.jsonName !== undefined && (obj.jsonName = message.jsonName); - message.options !== undefined && (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); - return obj; - }, - fromPartial(object: Partial): FieldDescriptorProto { - const message = createBaseFieldDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.label = object.label ?? 1; - message.type = object.type ?? 1; - message.typeName = object.typeName ?? ""; - message.extendee = object.extendee ?? ""; - message.defaultValue = object.defaultValue ?? ""; - message.oneofIndex = object.oneofIndex ?? 0; - message.jsonName = object.jsonName ?? ""; - message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object: FieldDescriptorProtoAmino): FieldDescriptorProto { - const message = createBaseFieldDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.label !== undefined && object.label !== null) { - message.label = object.label; - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.type_name !== undefined && object.type_name !== null) { - message.typeName = object.type_name; - } - if (object.extendee !== undefined && object.extendee !== null) { - message.extendee = object.extendee; - } - if (object.default_value !== undefined && object.default_value !== null) { - message.defaultValue = object.default_value; - } - if (object.oneof_index !== undefined && object.oneof_index !== null) { - message.oneofIndex = object.oneof_index; - } - if (object.json_name !== undefined && object.json_name !== null) { - message.jsonName = object.json_name; - } - if (object.options !== undefined && object.options !== null) { - message.options = FieldOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.label = message.label === 1 ? undefined : message.label; - obj.type = message.type === 1 ? undefined : message.type; - obj.type_name = message.typeName === "" ? undefined : message.typeName; - obj.extendee = message.extendee === "" ? undefined : message.extendee; - obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; - obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; - obj.json_name = message.jsonName === "" ? undefined : message.jsonName; - obj.options = message.options ? FieldOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object: FieldDescriptorProtoAminoMsg): FieldDescriptorProto { - return FieldDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: FieldDescriptorProtoProtoMsg): FieldDescriptorProto { - return FieldDescriptorProto.decode(message.value); - }, - toProto(message: FieldDescriptorProto): Uint8Array { - return FieldDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.FieldDescriptorProto", - value: FieldDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseOneofDescriptorProto(): OneofDescriptorProto { - return { - name: "", - options: undefined - }; -} -export const OneofDescriptorProto = { - typeUrl: "/google.protobuf.OneofDescriptorProto", - encode(message: OneofDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.options !== undefined) { - OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = OneofOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): OneofDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined - }; - }, - toJSON(message: OneofDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.options !== undefined && (obj.options = message.options ? OneofOptions.toJSON(message.options) : undefined); - return obj; - }, - fromPartial(object: Partial): OneofDescriptorProto { - const message = createBaseOneofDescriptorProto(); - message.name = object.name ?? ""; - message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object: OneofDescriptorProtoAmino): OneofDescriptorProto { - const message = createBaseOneofDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.options !== undefined && object.options !== null) { - message.options = OneofOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.options = message.options ? OneofOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object: OneofDescriptorProtoAminoMsg): OneofDescriptorProto { - return OneofDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: OneofDescriptorProtoProtoMsg): OneofDescriptorProto { - return OneofDescriptorProto.decode(message.value); - }, - toProto(message: OneofDescriptorProto): Uint8Array { - return OneofDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.OneofDescriptorProto", - value: OneofDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto(): EnumDescriptorProto { - return { - name: "", - value: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -export const EnumDescriptorProto = { - typeUrl: "/google.protobuf.EnumDescriptorProto", - encode(message: EnumDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.value) { - EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.reservedRange) { - EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(42).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EnumDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - value: Array.isArray(object?.value) ? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) ? object.reservedRange.map((e: any) => EnumDescriptorProto_EnumReservedRange.fromJSON(e)) : [], - reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: EnumDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - if (message.value) { - obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toJSON(e) : undefined); - } else { - obj.value = []; - } - message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined); - } else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map(e => e); - } else { - obj.reservedName = []; - } - return obj; - }, - fromPartial(object: Partial): EnumDescriptorProto { - const message = createBaseEnumDescriptorProto(); - message.name = object.name ?? ""; - message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object: EnumDescriptorProtoAmino): EnumDescriptorProto { - const message = createBaseEnumDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.value = object.value?.map(e => EnumValueDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = EnumOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.value) { - obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toAmino(e) : undefined); - } else { - obj.value = message.value; - } - obj.options = message.options ? EnumOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); - } else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object: EnumDescriptorProtoAminoMsg): EnumDescriptorProto { - return EnumDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: EnumDescriptorProtoProtoMsg): EnumDescriptorProto { - return EnumDescriptorProto.decode(message.value); - }, - toProto(message: EnumDescriptorProto): Uint8Array { - return EnumDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.EnumDescriptorProto", - value: EnumDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange { - return { - start: 0, - end: 0 - }; -} -export const EnumDescriptorProto_EnumReservedRange = { - typeUrl: "/google.protobuf.EnumReservedRange", - encode(message: EnumDescriptorProto_EnumReservedRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EnumDescriptorProto_EnumReservedRange { - return { - start: isSet(object.start) ? Number(object.start) : 0, - end: isSet(object.end) ? Number(object.end) : 0 - }; - }, - toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown { - const obj: any = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, - fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object: EnumDescriptorProto_EnumReservedRangeAmino): EnumDescriptorProto_EnumReservedRange { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino { - const obj: any = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange { - return EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message: EnumDescriptorProto_EnumReservedRangeProtoMsg): EnumDescriptorProto_EnumReservedRange { - return EnumDescriptorProto_EnumReservedRange.decode(message.value); - }, - toProto(message: EnumDescriptorProto_EnumReservedRange): Uint8Array { - return EnumDescriptorProto_EnumReservedRange.encode(message).finish(); - }, - toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg { - return { - typeUrl: "/google.protobuf.EnumReservedRange", - value: EnumDescriptorProto_EnumReservedRange.encode(message).finish() - }; - } -}; -function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto { - return { - name: "", - number: 0, - options: undefined - }; -} -export const EnumValueDescriptorProto = { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - encode(message: EnumValueDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.options !== undefined) { - EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EnumValueDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined - }; - }, - toJSON(message: EnumValueDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.options !== undefined && (obj.options = message.options ? EnumValueOptions.toJSON(message.options) : undefined); - return obj; - }, - fromPartial(object: Partial): EnumValueDescriptorProto { - const message = createBaseEnumValueDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object: EnumValueDescriptorProtoAmino): EnumValueDescriptorProto { - const message = createBaseEnumValueDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.options !== undefined && object.options !== null) { - message.options = EnumValueOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.options = message.options ? EnumValueOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object: EnumValueDescriptorProtoAminoMsg): EnumValueDescriptorProto { - return EnumValueDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: EnumValueDescriptorProtoProtoMsg): EnumValueDescriptorProto { - return EnumValueDescriptorProto.decode(message.value); - }, - toProto(message: EnumValueDescriptorProto): Uint8Array { - return EnumValueDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - value: EnumValueDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseServiceDescriptorProto(): ServiceDescriptorProto { - return { - name: "", - method: [], - options: undefined - }; -} -export const ServiceDescriptorProto = { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - encode(message: ServiceDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.method) { - MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.method.push(MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = ServiceOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ServiceDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - method: Array.isArray(object?.method) ? object.method.map((e: any) => MethodDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined - }; - }, - toJSON(message: ServiceDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - if (message.method) { - obj.method = message.method.map(e => e ? MethodDescriptorProto.toJSON(e) : undefined); - } else { - obj.method = []; - } - message.options !== undefined && (obj.options = message.options ? ServiceOptions.toJSON(message.options) : undefined); - return obj; - }, - fromPartial(object: Partial): ServiceDescriptorProto { - const message = createBaseServiceDescriptorProto(); - message.name = object.name ?? ""; - message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object: ServiceDescriptorProtoAmino): ServiceDescriptorProto { - const message = createBaseServiceDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.method = object.method?.map(e => MethodDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = ServiceOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.method) { - obj.method = message.method.map(e => e ? MethodDescriptorProto.toAmino(e) : undefined); - } else { - obj.method = message.method; - } - obj.options = message.options ? ServiceOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object: ServiceDescriptorProtoAminoMsg): ServiceDescriptorProto { - return ServiceDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: ServiceDescriptorProtoProtoMsg): ServiceDescriptorProto { - return ServiceDescriptorProto.decode(message.value); - }, - toProto(message: ServiceDescriptorProto): Uint8Array { - return ServiceDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - value: ServiceDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseMethodDescriptorProto(): MethodDescriptorProto { - return { - name: "", - inputType: "", - outputType: "", - options: undefined, - clientStreaming: false, - serverStreaming: false - }; -} -export const MethodDescriptorProto = { - typeUrl: "/google.protobuf.MethodDescriptorProto", - encode(message: MethodDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.inputType !== "") { - writer.uint32(18).string(message.inputType); - } - if (message.outputType !== "") { - writer.uint32(26).string(message.outputType); - } - if (message.options !== undefined) { - MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); - } - if (message.clientStreaming === true) { - writer.uint32(40).bool(message.clientStreaming); - } - if (message.serverStreaming === true) { - writer.uint32(48).bool(message.serverStreaming); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MethodDescriptorProto { - return { - name: isSet(object.name) ? String(object.name) : "", - inputType: isSet(object.inputType) ? String(object.inputType) : "", - outputType: isSet(object.outputType) ? String(object.outputType) : "", - options: isSet(object.options) ? MethodOptions.fromJSON(object.options) : undefined, - clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false, - serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false - }; - }, - toJSON(message: MethodDescriptorProto): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.inputType !== undefined && (obj.inputType = message.inputType); - message.outputType !== undefined && (obj.outputType = message.outputType); - message.options !== undefined && (obj.options = message.options ? MethodOptions.toJSON(message.options) : undefined); - message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming); - message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming); - return obj; - }, - fromPartial(object: Partial): MethodDescriptorProto { - const message = createBaseMethodDescriptorProto(); - message.name = object.name ?? ""; - message.inputType = object.inputType ?? ""; - message.outputType = object.outputType ?? ""; - message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined; - message.clientStreaming = object.clientStreaming ?? false; - message.serverStreaming = object.serverStreaming ?? false; - return message; - }, - fromAmino(object: MethodDescriptorProtoAmino): MethodDescriptorProto { - const message = createBaseMethodDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.input_type !== undefined && object.input_type !== null) { - message.inputType = object.input_type; - } - if (object.output_type !== undefined && object.output_type !== null) { - message.outputType = object.output_type; - } - if (object.options !== undefined && object.options !== null) { - message.options = MethodOptions.fromAmino(object.options); - } - if (object.client_streaming !== undefined && object.client_streaming !== null) { - message.clientStreaming = object.client_streaming; - } - if (object.server_streaming !== undefined && object.server_streaming !== null) { - message.serverStreaming = object.server_streaming; - } - return message; - }, - toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.input_type = message.inputType === "" ? undefined : message.inputType; - obj.output_type = message.outputType === "" ? undefined : message.outputType; - obj.options = message.options ? MethodOptions.toAmino(message.options) : undefined; - obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; - obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; - return obj; - }, - fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto { - return MethodDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message: MethodDescriptorProtoProtoMsg): MethodDescriptorProto { - return MethodDescriptorProto.decode(message.value); - }, - toProto(message: MethodDescriptorProto): Uint8Array { - return MethodDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg { - return { - typeUrl: "/google.protobuf.MethodDescriptorProto", - value: MethodDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseFileOptions(): FileOptions { - return { - javaPackage: "", - javaOuterClassname: "", - javaMultipleFiles: false, - javaGenerateEqualsAndHash: false, - javaStringCheckUtf8: false, - optimizeFor: 1, - goPackage: "", - ccGenericServices: false, - javaGenericServices: false, - pyGenericServices: false, - phpGenericServices: false, - deprecated: false, - ccEnableArenas: false, - objcClassPrefix: "", - csharpNamespace: "", - swiftPrefix: "", - phpClassPrefix: "", - phpNamespace: "", - phpMetadataNamespace: "", - rubyPackage: "", - uninterpretedOption: [] - }; -} -export const FileOptions = { - typeUrl: "/google.protobuf.FileOptions", - encode(message: FileOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.javaPackage !== "") { - writer.uint32(10).string(message.javaPackage); - } - if (message.javaOuterClassname !== "") { - writer.uint32(66).string(message.javaOuterClassname); - } - if (message.javaMultipleFiles === true) { - writer.uint32(80).bool(message.javaMultipleFiles); - } - if (message.javaGenerateEqualsAndHash === true) { - writer.uint32(160).bool(message.javaGenerateEqualsAndHash); - } - if (message.javaStringCheckUtf8 === true) { - writer.uint32(216).bool(message.javaStringCheckUtf8); - } - if (message.optimizeFor !== 1) { - writer.uint32(72).int32(message.optimizeFor); - } - if (message.goPackage !== "") { - writer.uint32(90).string(message.goPackage); - } - if (message.ccGenericServices === true) { - writer.uint32(128).bool(message.ccGenericServices); - } - if (message.javaGenericServices === true) { - writer.uint32(136).bool(message.javaGenericServices); - } - if (message.pyGenericServices === true) { - writer.uint32(144).bool(message.pyGenericServices); - } - if (message.phpGenericServices === true) { - writer.uint32(336).bool(message.phpGenericServices); - } - if (message.deprecated === true) { - writer.uint32(184).bool(message.deprecated); - } - if (message.ccEnableArenas === true) { - writer.uint32(248).bool(message.ccEnableArenas); - } - if (message.objcClassPrefix !== "") { - writer.uint32(290).string(message.objcClassPrefix); - } - if (message.csharpNamespace !== "") { - writer.uint32(298).string(message.csharpNamespace); - } - if (message.swiftPrefix !== "") { - writer.uint32(314).string(message.swiftPrefix); - } - if (message.phpClassPrefix !== "") { - writer.uint32(322).string(message.phpClassPrefix); - } - if (message.phpNamespace !== "") { - writer.uint32(330).string(message.phpNamespace); - } - if (message.phpMetadataNamespace !== "") { - writer.uint32(354).string(message.phpMetadataNamespace); - } - if (message.rubyPackage !== "") { - writer.uint32(362).string(message.rubyPackage); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FileOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = (reader.int32() as any); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FileOptions { - return { - javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "", - javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "", - javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false, - javaGenerateEqualsAndHash: isSet(object.javaGenerateEqualsAndHash) ? Boolean(object.javaGenerateEqualsAndHash) : false, - javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false, - optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : -1, - goPackage: isSet(object.goPackage) ? String(object.goPackage) : "", - ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false, - javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false, - pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false, - phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false, - objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "", - csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "", - swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "", - phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "", - phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", - phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", - rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: FileOptions): unknown { - const obj: any = {}; - message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage); - message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname); - message.javaMultipleFiles !== undefined && (obj.javaMultipleFiles = message.javaMultipleFiles); - message.javaGenerateEqualsAndHash !== undefined && (obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash); - message.javaStringCheckUtf8 !== undefined && (obj.javaStringCheckUtf8 = message.javaStringCheckUtf8); - message.optimizeFor !== undefined && (obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor)); - message.goPackage !== undefined && (obj.goPackage = message.goPackage); - message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices); - message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices); - message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices); - message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas); - message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix); - message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace); - message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix); - message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix); - message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace); - message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace); - message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): FileOptions { - const message = createBaseFileOptions(); - message.javaPackage = object.javaPackage ?? ""; - message.javaOuterClassname = object.javaOuterClassname ?? ""; - message.javaMultipleFiles = object.javaMultipleFiles ?? false; - message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; - message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; - message.optimizeFor = object.optimizeFor ?? 1; - message.goPackage = object.goPackage ?? ""; - message.ccGenericServices = object.ccGenericServices ?? false; - message.javaGenericServices = object.javaGenericServices ?? false; - message.pyGenericServices = object.pyGenericServices ?? false; - message.phpGenericServices = object.phpGenericServices ?? false; - message.deprecated = object.deprecated ?? false; - message.ccEnableArenas = object.ccEnableArenas ?? false; - message.objcClassPrefix = object.objcClassPrefix ?? ""; - message.csharpNamespace = object.csharpNamespace ?? ""; - message.swiftPrefix = object.swiftPrefix ?? ""; - message.phpClassPrefix = object.phpClassPrefix ?? ""; - message.phpNamespace = object.phpNamespace ?? ""; - message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; - message.rubyPackage = object.rubyPackage ?? ""; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: FileOptionsAmino): FileOptions { - const message = createBaseFileOptions(); - if (object.java_package !== undefined && object.java_package !== null) { - message.javaPackage = object.java_package; - } - if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { - message.javaOuterClassname = object.java_outer_classname; - } - if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { - message.javaMultipleFiles = object.java_multiple_files; - } - if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { - message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; - } - if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { - message.javaStringCheckUtf8 = object.java_string_check_utf8; - } - if (object.optimize_for !== undefined && object.optimize_for !== null) { - message.optimizeFor = object.optimize_for; - } - if (object.go_package !== undefined && object.go_package !== null) { - message.goPackage = object.go_package; - } - if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { - message.ccGenericServices = object.cc_generic_services; - } - if (object.java_generic_services !== undefined && object.java_generic_services !== null) { - message.javaGenericServices = object.java_generic_services; - } - if (object.py_generic_services !== undefined && object.py_generic_services !== null) { - message.pyGenericServices = object.py_generic_services; - } - if (object.php_generic_services !== undefined && object.php_generic_services !== null) { - message.phpGenericServices = object.php_generic_services; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { - message.ccEnableArenas = object.cc_enable_arenas; - } - if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { - message.objcClassPrefix = object.objc_class_prefix; - } - if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { - message.csharpNamespace = object.csharp_namespace; - } - if (object.swift_prefix !== undefined && object.swift_prefix !== null) { - message.swiftPrefix = object.swift_prefix; - } - if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { - message.phpClassPrefix = object.php_class_prefix; - } - if (object.php_namespace !== undefined && object.php_namespace !== null) { - message.phpNamespace = object.php_namespace; - } - if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { - message.phpMetadataNamespace = object.php_metadata_namespace; - } - if (object.ruby_package !== undefined && object.ruby_package !== null) { - message.rubyPackage = object.ruby_package; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: FileOptions): FileOptionsAmino { - const obj: any = {}; - obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; - obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; - obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; - obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; - obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; - obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; - obj.go_package = message.goPackage === "" ? undefined : message.goPackage; - obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; - obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; - obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; - obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; - obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; - obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; - obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; - obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; - obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; - obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; - obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: FileOptionsAminoMsg): FileOptions { - return FileOptions.fromAmino(object.value); - }, - fromProtoMsg(message: FileOptionsProtoMsg): FileOptions { - return FileOptions.decode(message.value); - }, - toProto(message: FileOptions): Uint8Array { - return FileOptions.encode(message).finish(); - }, - toProtoMsg(message: FileOptions): FileOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.FileOptions", - value: FileOptions.encode(message).finish() - }; - } -}; -function createBaseMessageOptions(): MessageOptions { - return { - messageSetWireFormat: false, - noStandardDescriptorAccessor: false, - deprecated: false, - mapEntry: false, - uninterpretedOption: [] - }; -} -export const MessageOptions = { - typeUrl: "/google.protobuf.MessageOptions", - encode(message: MessageOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.messageSetWireFormat === true) { - writer.uint32(8).bool(message.messageSetWireFormat); - } - if (message.noStandardDescriptorAccessor === true) { - writer.uint32(16).bool(message.noStandardDescriptorAccessor); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.mapEntry === true) { - writer.uint32(56).bool(message.mapEntry); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMessageOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MessageOptions { - return { - messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false, - noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor) ? Boolean(object.noStandardDescriptorAccessor) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: MessageOptions): unknown { - const obj: any = {}; - message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat); - message.noStandardDescriptorAccessor !== undefined && (obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): MessageOptions { - const message = createBaseMessageOptions(); - message.messageSetWireFormat = object.messageSetWireFormat ?? false; - message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; - message.deprecated = object.deprecated ?? false; - message.mapEntry = object.mapEntry ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MessageOptionsAmino): MessageOptions { - const message = createBaseMessageOptions(); - if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { - message.messageSetWireFormat = object.message_set_wire_format; - } - if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { - message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.map_entry !== undefined && object.map_entry !== null) { - message.mapEntry = object.map_entry; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: MessageOptions): MessageOptionsAmino { - const obj: any = {}; - obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; - obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: MessageOptionsAminoMsg): MessageOptions { - return MessageOptions.fromAmino(object.value); - }, - fromProtoMsg(message: MessageOptionsProtoMsg): MessageOptions { - return MessageOptions.decode(message.value); - }, - toProto(message: MessageOptions): Uint8Array { - return MessageOptions.encode(message).finish(); - }, - toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.MessageOptions", - value: MessageOptions.encode(message).finish() - }; - } -}; -function createBaseFieldOptions(): FieldOptions { - return { - ctype: 1, - packed: false, - jstype: 1, - lazy: false, - deprecated: false, - weak: false, - uninterpretedOption: [] - }; -} -export const FieldOptions = { - typeUrl: "/google.protobuf.FieldOptions", - encode(message: FieldOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.ctype !== 1) { - writer.uint32(8).int32(message.ctype); - } - if (message.packed === true) { - writer.uint32(16).bool(message.packed); - } - if (message.jstype !== 1) { - writer.uint32(48).int32(message.jstype); - } - if (message.lazy === true) { - writer.uint32(40).bool(message.lazy); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.weak === true) { - writer.uint32(80).bool(message.weak); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ctype = (reader.int32() as any); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = (reader.int32() as any); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): FieldOptions { - return { - ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : -1, - packed: isSet(object.packed) ? Boolean(object.packed) : false, - jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : -1, - lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - weak: isSet(object.weak) ? Boolean(object.weak) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: FieldOptions): unknown { - const obj: any = {}; - message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); - message.packed !== undefined && (obj.packed = message.packed); - message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); - message.lazy !== undefined && (obj.lazy = message.lazy); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.weak !== undefined && (obj.weak = message.weak); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): FieldOptions { - const message = createBaseFieldOptions(); - message.ctype = object.ctype ?? 1; - message.packed = object.packed ?? false; - message.jstype = object.jstype ?? 1; - message.lazy = object.lazy ?? false; - message.deprecated = object.deprecated ?? false; - message.weak = object.weak ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: FieldOptionsAmino): FieldOptions { - const message = createBaseFieldOptions(); - if (object.ctype !== undefined && object.ctype !== null) { - message.ctype = object.ctype; - } - if (object.packed !== undefined && object.packed !== null) { - message.packed = object.packed; - } - if (object.jstype !== undefined && object.jstype !== null) { - message.jstype = object.jstype; - } - if (object.lazy !== undefined && object.lazy !== null) { - message.lazy = object.lazy; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.weak !== undefined && object.weak !== null) { - message.weak = object.weak; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: FieldOptions): FieldOptionsAmino { - const obj: any = {}; - obj.ctype = message.ctype === 1 ? undefined : message.ctype; - obj.packed = message.packed === false ? undefined : message.packed; - obj.jstype = message.jstype === 1 ? undefined : message.jstype; - obj.lazy = message.lazy === false ? undefined : message.lazy; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.weak = message.weak === false ? undefined : message.weak; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: FieldOptionsAminoMsg): FieldOptions { - return FieldOptions.fromAmino(object.value); - }, - fromProtoMsg(message: FieldOptionsProtoMsg): FieldOptions { - return FieldOptions.decode(message.value); - }, - toProto(message: FieldOptions): Uint8Array { - return FieldOptions.encode(message).finish(); - }, - toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.FieldOptions", - value: FieldOptions.encode(message).finish() - }; - } -}; -function createBaseOneofOptions(): OneofOptions { - return { - uninterpretedOption: [] - }; -} -export const OneofOptions = { - typeUrl: "/google.protobuf.OneofOptions", - encode(message: OneofOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): OneofOptions { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: OneofOptions): unknown { - const obj: any = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): OneofOptions { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: OneofOptionsAmino): OneofOptions { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: OneofOptions): OneofOptionsAmino { - const obj: any = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: OneofOptionsAminoMsg): OneofOptions { - return OneofOptions.fromAmino(object.value); - }, - fromProtoMsg(message: OneofOptionsProtoMsg): OneofOptions { - return OneofOptions.decode(message.value); - }, - toProto(message: OneofOptions): Uint8Array { - return OneofOptions.encode(message).finish(); - }, - toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.OneofOptions", - value: OneofOptions.encode(message).finish() - }; - } -}; -function createBaseEnumOptions(): EnumOptions { - return { - allowAlias: false, - deprecated: false, - uninterpretedOption: [] - }; -} -export const EnumOptions = { - typeUrl: "/google.protobuf.EnumOptions", - encode(message: EnumOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.allowAlias === true) { - writer.uint32(16).bool(message.allowAlias); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EnumOptions { - return { - allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: EnumOptions): unknown { - const obj: any = {}; - message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): EnumOptions { - const message = createBaseEnumOptions(); - message.allowAlias = object.allowAlias ?? false; - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: EnumOptionsAmino): EnumOptions { - const message = createBaseEnumOptions(); - if (object.allow_alias !== undefined && object.allow_alias !== null) { - message.allowAlias = object.allow_alias; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: EnumOptions): EnumOptionsAmino { - const obj: any = {}; - obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: EnumOptionsAminoMsg): EnumOptions { - return EnumOptions.fromAmino(object.value); - }, - fromProtoMsg(message: EnumOptionsProtoMsg): EnumOptions { - return EnumOptions.decode(message.value); - }, - toProto(message: EnumOptions): Uint8Array { - return EnumOptions.encode(message).finish(); - }, - toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.EnumOptions", - value: EnumOptions.encode(message).finish() - }; - } -}; -function createBaseEnumValueOptions(): EnumValueOptions { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -export const EnumValueOptions = { - typeUrl: "/google.protobuf.EnumValueOptions", - encode(message: EnumValueOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.deprecated === true) { - writer.uint32(8).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EnumValueOptions { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: EnumValueOptions): unknown { - const obj: any = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): EnumValueOptions { - const message = createBaseEnumValueOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: EnumValueOptionsAmino): EnumValueOptions { - const message = createBaseEnumValueOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: EnumValueOptions): EnumValueOptionsAmino { - const obj: any = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: EnumValueOptionsAminoMsg): EnumValueOptions { - return EnumValueOptions.fromAmino(object.value); - }, - fromProtoMsg(message: EnumValueOptionsProtoMsg): EnumValueOptions { - return EnumValueOptions.decode(message.value); - }, - toProto(message: EnumValueOptions): Uint8Array { - return EnumValueOptions.encode(message).finish(); - }, - toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.EnumValueOptions", - value: EnumValueOptions.encode(message).finish() - }; - } -}; -function createBaseServiceOptions(): ServiceOptions { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -export const ServiceOptions = { - typeUrl: "/google.protobuf.ServiceOptions", - encode(message: ServiceOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ServiceOptions { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: ServiceOptions): unknown { - const obj: any = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): ServiceOptions { - const message = createBaseServiceOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ServiceOptionsAmino): ServiceOptions { - const message = createBaseServiceOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: ServiceOptions): ServiceOptionsAmino { - const obj: any = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: ServiceOptionsAminoMsg): ServiceOptions { - return ServiceOptions.fromAmino(object.value); - }, - fromProtoMsg(message: ServiceOptionsProtoMsg): ServiceOptions { - return ServiceOptions.decode(message.value); - }, - toProto(message: ServiceOptions): Uint8Array { - return ServiceOptions.encode(message).finish(); - }, - toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.ServiceOptions", - value: ServiceOptions.encode(message).finish() - }; - } -}; -function createBaseMethodOptions(): MethodOptions { - return { - deprecated: false, - idempotencyLevel: 1, - uninterpretedOption: [] - }; -} -export const MethodOptions = { - typeUrl: "/google.protobuf.MethodOptions", - encode(message: MethodOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - if (message.idempotencyLevel !== 1) { - writer.uint32(272).int32(message.idempotencyLevel); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = (reader.int32() as any); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MethodOptions { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - idempotencyLevel: isSet(object.idempotencyLevel) ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) : -1, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [] - }; - }, - toJSON(message: MethodOptions): unknown { - const obj: any = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.idempotencyLevel !== undefined && (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel)); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map(e => e ? UninterpretedOption.toJSON(e) : undefined); - } else { - obj.uninterpretedOption = []; - } - return obj; - }, - fromPartial(object: Partial): MethodOptions { - const message = createBaseMethodOptions(); - message.deprecated = object.deprecated ?? false; - message.idempotencyLevel = object.idempotencyLevel ?? 1; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MethodOptionsAmino): MethodOptions { - const message = createBaseMethodOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.idempotency_level !== undefined && object.idempotency_level !== null) { - message.idempotencyLevel = object.idempotency_level; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message: MethodOptions): MethodOptionsAmino { - const obj: any = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object: MethodOptionsAminoMsg): MethodOptions { - return MethodOptions.fromAmino(object.value); - }, - fromProtoMsg(message: MethodOptionsProtoMsg): MethodOptions { - return MethodOptions.decode(message.value); - }, - toProto(message: MethodOptions): Uint8Array { - return MethodOptions.encode(message).finish(); - }, - toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg { - return { - typeUrl: "/google.protobuf.MethodOptions", - value: MethodOptions.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption(): UninterpretedOption { - return { - name: [], - identifierValue: "", - positiveIntValue: BigInt(0), - negativeIntValue: BigInt(0), - doubleValue: 0, - stringValue: new Uint8Array(), - aggregateValue: "" - }; -} -export const UninterpretedOption = { - typeUrl: "/google.protobuf.UninterpretedOption", - encode(message: UninterpretedOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.name) { - UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.identifierValue !== "") { - writer.uint32(26).string(message.identifierValue); - } - if (message.positiveIntValue !== BigInt(0)) { - writer.uint32(32).uint64(message.positiveIntValue); - } - if (message.negativeIntValue !== BigInt(0)) { - writer.uint32(40).int64(message.negativeIntValue); - } - if (message.doubleValue !== 0) { - writer.uint32(49).double(message.doubleValue); - } - if (message.stringValue.length !== 0) { - writer.uint32(58).bytes(message.stringValue); - } - if (message.aggregateValue !== "") { - writer.uint32(66).string(message.aggregateValue); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): UninterpretedOption { - return { - name: Array.isArray(object?.name) ? object.name.map((e: any) => UninterpretedOption_NamePart.fromJSON(e)) : [], - identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "", - positiveIntValue: isSet(object.positiveIntValue) ? BigInt(object.positiveIntValue.toString()) : BigInt(0), - negativeIntValue: isSet(object.negativeIntValue) ? BigInt(object.negativeIntValue.toString()) : BigInt(0), - doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0, - stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(), - aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "" - }; - }, - toJSON(message: UninterpretedOption): unknown { - const obj: any = {}; - if (message.name) { - obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toJSON(e) : undefined); - } else { - obj.name = []; - } - message.identifierValue !== undefined && (obj.identifierValue = message.identifierValue); - message.positiveIntValue !== undefined && (obj.positiveIntValue = (message.positiveIntValue || BigInt(0)).toString()); - message.negativeIntValue !== undefined && (obj.negativeIntValue = (message.negativeIntValue || BigInt(0)).toString()); - message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue); - message.stringValue !== undefined && (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : new Uint8Array())); - message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue); - return obj; - }, - fromPartial(object: Partial): UninterpretedOption { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || []; - message.identifierValue = object.identifierValue ?? ""; - message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); - message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); - message.doubleValue = object.doubleValue ?? 0; - message.stringValue = object.stringValue ?? new Uint8Array(); - message.aggregateValue = object.aggregateValue ?? ""; - return message; - }, - fromAmino(object: UninterpretedOptionAmino): UninterpretedOption { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => UninterpretedOption_NamePart.fromAmino(e)) || []; - if (object.identifier_value !== undefined && object.identifier_value !== null) { - message.identifierValue = object.identifier_value; - } - if (object.positive_int_value !== undefined && object.positive_int_value !== null) { - message.positiveIntValue = BigInt(object.positive_int_value); - } - if (object.negative_int_value !== undefined && object.negative_int_value !== null) { - message.negativeIntValue = BigInt(object.negative_int_value); - } - if (object.double_value !== undefined && object.double_value !== null) { - message.doubleValue = object.double_value; - } - if (object.string_value !== undefined && object.string_value !== null) { - message.stringValue = bytesFromBase64(object.string_value); - } - if (object.aggregate_value !== undefined && object.aggregate_value !== null) { - message.aggregateValue = object.aggregate_value; - } - return message; - }, - toAmino(message: UninterpretedOption): UninterpretedOptionAmino { - const obj: any = {}; - if (message.name) { - obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toAmino(e) : undefined); - } else { - obj.name = message.name; - } - obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; - obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; - obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; - obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; - obj.string_value = message.stringValue ? base64FromBytes(message.stringValue) : undefined; - obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; - return obj; - }, - fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption { - return UninterpretedOption.fromAmino(object.value); - }, - fromProtoMsg(message: UninterpretedOptionProtoMsg): UninterpretedOption { - return UninterpretedOption.decode(message.value); - }, - toProto(message: UninterpretedOption): Uint8Array { - return UninterpretedOption.encode(message).finish(); - }, - toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg { - return { - typeUrl: "/google.protobuf.UninterpretedOption", - value: UninterpretedOption.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart { - return { - namePart: "", - isExtension: false - }; -} -export const UninterpretedOption_NamePart = { - typeUrl: "/google.protobuf.NamePart", - encode(message: UninterpretedOption_NamePart, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.namePart !== "") { - writer.uint32(10).string(message.namePart); - } - if (message.isExtension === true) { - writer.uint32(16).bool(message.isExtension); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption_NamePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): UninterpretedOption_NamePart { - return { - namePart: isSet(object.namePart) ? String(object.namePart) : "", - isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false - }; - }, - toJSON(message: UninterpretedOption_NamePart): unknown { - const obj: any = {}; - message.namePart !== undefined && (obj.namePart = message.namePart); - message.isExtension !== undefined && (obj.isExtension = message.isExtension); - return obj; - }, - fromPartial(object: Partial): UninterpretedOption_NamePart { - const message = createBaseUninterpretedOption_NamePart(); - message.namePart = object.namePart ?? ""; - message.isExtension = object.isExtension ?? false; - return message; - }, - fromAmino(object: UninterpretedOption_NamePartAmino): UninterpretedOption_NamePart { - const message = createBaseUninterpretedOption_NamePart(); - if (object.name_part !== undefined && object.name_part !== null) { - message.namePart = object.name_part; - } - if (object.is_extension !== undefined && object.is_extension !== null) { - message.isExtension = object.is_extension; - } - return message; - }, - toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino { - const obj: any = {}; - obj.name_part = message.namePart === "" ? undefined : message.namePart; - obj.is_extension = message.isExtension === false ? undefined : message.isExtension; - return obj; - }, - fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart { - return UninterpretedOption_NamePart.fromAmino(object.value); - }, - fromProtoMsg(message: UninterpretedOption_NamePartProtoMsg): UninterpretedOption_NamePart { - return UninterpretedOption_NamePart.decode(message.value); - }, - toProto(message: UninterpretedOption_NamePart): Uint8Array { - return UninterpretedOption_NamePart.encode(message).finish(); - }, - toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg { - return { - typeUrl: "/google.protobuf.NamePart", - value: UninterpretedOption_NamePart.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo(): SourceCodeInfo { - return { - location: [] - }; -} -export const SourceCodeInfo = { - typeUrl: "/google.protobuf.SourceCodeInfo", - encode(message: SourceCodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.location) { - SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SourceCodeInfo { - return { - location: Array.isArray(object?.location) ? object.location.map((e: any) => SourceCodeInfo_Location.fromJSON(e)) : [] - }; - }, - toJSON(message: SourceCodeInfo): unknown { - const obj: any = {}; - if (message.location) { - obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toJSON(e) : undefined); - } else { - obj.location = []; - } - return obj; - }, - fromPartial(object: Partial): SourceCodeInfo { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || []; - return message; - }, - fromAmino(object: SourceCodeInfoAmino): SourceCodeInfo { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => SourceCodeInfo_Location.fromAmino(e)) || []; - return message; - }, - toAmino(message: SourceCodeInfo): SourceCodeInfoAmino { - const obj: any = {}; - if (message.location) { - obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toAmino(e) : undefined); - } else { - obj.location = message.location; - } - return obj; - }, - fromAminoMsg(object: SourceCodeInfoAminoMsg): SourceCodeInfo { - return SourceCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message: SourceCodeInfoProtoMsg): SourceCodeInfo { - return SourceCodeInfo.decode(message.value); - }, - toProto(message: SourceCodeInfo): Uint8Array { - return SourceCodeInfo.encode(message).finish(); - }, - toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg { - return { - typeUrl: "/google.protobuf.SourceCodeInfo", - value: SourceCodeInfo.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location { - return { - path: [], - span: [], - leadingComments: "", - trailingComments: "", - leadingDetachedComments: [] - }; -} -export const SourceCodeInfo_Location = { - typeUrl: "/google.protobuf.Location", - encode(message: SourceCodeInfo_Location, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(18).fork(); - for (const v of message.span) { - writer.int32(v); - } - writer.ldelim(); - if (message.leadingComments !== "") { - writer.uint32(26).string(message.leadingComments); - } - if (message.trailingComments !== "") { - writer.uint32(34).string(message.trailingComments); - } - for (const v of message.leadingDetachedComments) { - writer.uint32(50).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo_Location(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } else { - message.path.push(reader.int32()); - } - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.span.push(reader.int32()); - } - } else { - message.span.push(reader.int32()); - } - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SourceCodeInfo_Location { - return { - path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], - span: Array.isArray(object?.span) ? object.span.map((e: any) => Number(e)) : [], - leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "", - trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "", - leadingDetachedComments: Array.isArray(object?.leadingDetachedComments) ? object.leadingDetachedComments.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: SourceCodeInfo_Location): unknown { - const obj: any = {}; - if (message.path) { - obj.path = message.path.map(e => Math.round(e)); - } else { - obj.path = []; - } - if (message.span) { - obj.span = message.span.map(e => Math.round(e)); - } else { - obj.span = []; - } - message.leadingComments !== undefined && (obj.leadingComments = message.leadingComments); - message.trailingComments !== undefined && (obj.trailingComments = message.trailingComments); - if (message.leadingDetachedComments) { - obj.leadingDetachedComments = message.leadingDetachedComments.map(e => e); - } else { - obj.leadingDetachedComments = []; - } - return obj; - }, - fromPartial(object: Partial): SourceCodeInfo_Location { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - message.leadingComments = object.leadingComments ?? ""; - message.trailingComments = object.trailingComments ?? ""; - message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; - return message; - }, - fromAmino(object: SourceCodeInfo_LocationAmino): SourceCodeInfo_Location { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - if (object.leading_comments !== undefined && object.leading_comments !== null) { - message.leadingComments = object.leading_comments; - } - if (object.trailing_comments !== undefined && object.trailing_comments !== null) { - message.trailingComments = object.trailing_comments; - } - message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; - return message; - }, - toAmino(message: SourceCodeInfo_Location): SourceCodeInfo_LocationAmino { - const obj: any = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } else { - obj.path = message.path; - } - if (message.span) { - obj.span = message.span.map(e => e); - } else { - obj.span = message.span; - } - obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; - obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; - if (message.leadingDetachedComments) { - obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); - } else { - obj.leading_detached_comments = message.leadingDetachedComments; - } - return obj; - }, - fromAminoMsg(object: SourceCodeInfo_LocationAminoMsg): SourceCodeInfo_Location { - return SourceCodeInfo_Location.fromAmino(object.value); - }, - fromProtoMsg(message: SourceCodeInfo_LocationProtoMsg): SourceCodeInfo_Location { - return SourceCodeInfo_Location.decode(message.value); - }, - toProto(message: SourceCodeInfo_Location): Uint8Array { - return SourceCodeInfo_Location.encode(message).finish(); - }, - toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg { - return { - typeUrl: "/google.protobuf.Location", - value: SourceCodeInfo_Location.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo(): GeneratedCodeInfo { - return { - annotation: [] - }; -} -export const GeneratedCodeInfo = { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - encode(message: GeneratedCodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.annotation) { - GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GeneratedCodeInfo { - return { - annotation: Array.isArray(object?.annotation) ? object.annotation.map((e: any) => GeneratedCodeInfo_Annotation.fromJSON(e)) : [] - }; - }, - toJSON(message: GeneratedCodeInfo): unknown { - const obj: any = {}; - if (message.annotation) { - obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined); - } else { - obj.annotation = []; - } - return obj; - }, - fromPartial(object: Partial): GeneratedCodeInfo { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GeneratedCodeInfoAmino): GeneratedCodeInfo { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromAmino(e)) || []; - return message; - }, - toAmino(message: GeneratedCodeInfo): GeneratedCodeInfoAmino { - const obj: any = {}; - if (message.annotation) { - obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toAmino(e) : undefined); - } else { - obj.annotation = message.annotation; - } - return obj; - }, - fromAminoMsg(object: GeneratedCodeInfoAminoMsg): GeneratedCodeInfo { - return GeneratedCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message: GeneratedCodeInfoProtoMsg): GeneratedCodeInfo { - return GeneratedCodeInfo.decode(message.value); - }, - toProto(message: GeneratedCodeInfo): Uint8Array { - return GeneratedCodeInfo.encode(message).finish(); - }, - toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg { - return { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - value: GeneratedCodeInfo.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation { - return { - path: [], - sourceFile: "", - begin: 0, - end: 0 - }; -} -export const GeneratedCodeInfo_Annotation = { - typeUrl: "/google.protobuf.Annotation", - encode(message: GeneratedCodeInfo_Annotation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - if (message.sourceFile !== "") { - writer.uint32(18).string(message.sourceFile); - } - if (message.begin !== 0) { - writer.uint32(24).int32(message.begin); - } - if (message.end !== 0) { - writer.uint32(32).int32(message.end); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo_Annotation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } else { - message.path.push(reader.int32()); - } - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GeneratedCodeInfo_Annotation { - return { - path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], - sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", - begin: isSet(object.begin) ? Number(object.begin) : 0, - end: isSet(object.end) ? Number(object.end) : 0 - }; - }, - toJSON(message: GeneratedCodeInfo_Annotation): unknown { - const obj: any = {}; - if (message.path) { - obj.path = message.path.map(e => Math.round(e)); - } else { - obj.path = []; - } - message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile); - message.begin !== undefined && (obj.begin = Math.round(message.begin)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, - fromPartial(object: Partial): GeneratedCodeInfo_Annotation { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - message.sourceFile = object.sourceFile ?? ""; - message.begin = object.begin ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object: GeneratedCodeInfo_AnnotationAmino): GeneratedCodeInfo_Annotation { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - if (object.source_file !== undefined && object.source_file !== null) { - message.sourceFile = object.source_file; - } - if (object.begin !== undefined && object.begin !== null) { - message.begin = object.begin; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationAmino { - const obj: any = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } else { - obj.path = message.path; - } - obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; - obj.begin = message.begin === 0 ? undefined : message.begin; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation { - return GeneratedCodeInfo_Annotation.fromAmino(object.value); - }, - fromProtoMsg(message: GeneratedCodeInfo_AnnotationProtoMsg): GeneratedCodeInfo_Annotation { - return GeneratedCodeInfo_Annotation.decode(message.value); - }, - toProto(message: GeneratedCodeInfo_Annotation): Uint8Array { - return GeneratedCodeInfo_Annotation.encode(message).finish(); - }, - toProtoMsg(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationProtoMsg { - return { - typeUrl: "/google.protobuf.Annotation", - value: GeneratedCodeInfo_Annotation.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/google/protobuf/duration.ts b/packages/api/src/codegen/google/protobuf/duration.ts deleted file mode 100644 index 3a2aff40..00000000 --- a/packages/api/src/codegen/google/protobuf/duration.ts +++ /dev/null @@ -1,293 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet } from "../../helpers"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export interface DurationProtoMsg { - typeUrl: "/google.protobuf.Duration"; - value: Uint8Array; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export type DurationAmino = string; -export interface DurationAminoMsg { - type: "/google.protobuf.Duration"; - value: DurationAmino; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface DurationSDKType { - seconds: bigint; - nanos: number; -} -function createBaseDuration(): Duration { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -export const Duration = { - typeUrl: "/google.protobuf.Duration", - encode(message: Duration, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Duration { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuration(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Duration { - return { - seconds: isSet(object.seconds) ? BigInt(object.seconds.toString()) : BigInt(0), - nanos: isSet(object.nanos) ? Number(object.nanos) : 0 - }; - }, - toJSON(message: Duration): unknown { - const obj: any = {}; - message.seconds !== undefined && (obj.seconds = (message.seconds || BigInt(0)).toString()); - message.nanos !== undefined && (obj.nanos = Math.round(message.nanos)); - return obj; - }, - fromPartial(object: Partial): Duration { - const message = createBaseDuration(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object: DurationAmino): Duration { - const value = BigInt(object); - return { - seconds: value / BigInt("1000000000"), - nanos: Number(value % BigInt("1000000000")) - }; - }, - toAmino(message: Duration): DurationAmino { - return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); - }, - fromAminoMsg(object: DurationAminoMsg): Duration { - return Duration.fromAmino(object.value); - }, - fromProtoMsg(message: DurationProtoMsg): Duration { - return Duration.decode(message.value); - }, - toProto(message: Duration): Uint8Array { - return Duration.encode(message).finish(); - }, - toProtoMsg(message: Duration): DurationProtoMsg { - return { - typeUrl: "/google.protobuf.Duration", - value: Duration.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/google/protobuf/timestamp.ts b/packages/api/src/codegen/google/protobuf/timestamp.ts deleted file mode 100644 index 95533b11..00000000 --- a/packages/api/src/codegen/google/protobuf/timestamp.ts +++ /dev/null @@ -1,359 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../helpers"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export interface TimestampProtoMsg { - typeUrl: "/google.protobuf.Timestamp"; - value: Uint8Array; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export type TimestampAmino = string; -export interface TimestampAminoMsg { - type: "/google.protobuf.Timestamp"; - value: TimestampAmino; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface TimestampSDKType { - seconds: bigint; - nanos: number; -} -function createBaseTimestamp(): Timestamp { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -export const Timestamp = { - typeUrl: "/google.protobuf.Timestamp", - encode(message: Timestamp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Timestamp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTimestamp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Timestamp { - return { - seconds: isSet(object.seconds) ? BigInt(object.seconds.toString()) : BigInt(0), - nanos: isSet(object.nanos) ? Number(object.nanos) : 0 - }; - }, - toJSON(message: Timestamp): unknown { - const obj: any = {}; - message.seconds !== undefined && (obj.seconds = (message.seconds || BigInt(0)).toString()); - message.nanos !== undefined && (obj.nanos = Math.round(message.nanos)); - return obj; - }, - fromPartial(object: Partial): Timestamp { - const message = createBaseTimestamp(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object: TimestampAmino): Timestamp { - return fromJsonTimestamp(object); - }, - toAmino(message: Timestamp): TimestampAmino { - return fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z"); - }, - fromAminoMsg(object: TimestampAminoMsg): Timestamp { - return Timestamp.fromAmino(object.value); - }, - fromProtoMsg(message: TimestampProtoMsg): Timestamp { - return Timestamp.decode(message.value); - }, - toProto(message: Timestamp): Uint8Array { - return Timestamp.encode(message).finish(); - }, - toProtoMsg(message: Timestamp): TimestampProtoMsg { - return { - typeUrl: "/google.protobuf.Timestamp", - value: Timestamp.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/helpers.ts b/packages/api/src/codegen/helpers.ts deleted file mode 100644 index 8fb6b0ed..00000000 --- a/packages/api/src/codegen/helpers.ts +++ /dev/null @@ -1,255 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ - - -declare var self: any | undefined; -declare var window: any | undefined; -declare var global: any | undefined; -var globalThis: any = (() => { - if (typeof globalThis !== 'undefined') return globalThis; - if (typeof self !== 'undefined') return self; - if (typeof window !== 'undefined') return window; - if (typeof global !== 'undefined') return global; - throw 'Unable to locate global object'; -})(); - -const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); - -export function bytesFromBase64(b64: string): Uint8Array { - const bin = atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; -} - -const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); - -export function base64FromBytes(arr: Uint8Array): string { - const bin: string[] = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return btoa(bin.join('')); -} - -export interface AminoHeight { - readonly revision_number?: string; - readonly revision_height?: string; -} - -export function omitDefault( - input: T -): T | undefined { - if (typeof input === 'string') { - return input === '' ? undefined : input; - } - - if (typeof input === 'number') { - return input === 0 ? undefined : input; - } - - if (typeof input === "boolean"){ - return input === false ? undefined : input; - } - - if (typeof input === 'bigint') { - return input === BigInt(0) ? undefined : input; - } - - throw new Error(`Got unsupported type ${typeof input}`); -} - -interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - - nanos: number; -} - -export function toDuration(duration: string): Duration { - return { - seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), - nanos: parseInt(duration) % 1000000000 - }; -} - -export function fromDuration(duration: Duration): string { - return ( - parseInt(duration.seconds.toString()) * 1000000000 + - duration.nanos - ).toString(); -} - -export function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export function isObject(value: any): boolean { - return typeof value === 'object' && value !== null; -} - -export interface PageRequest { - key: Uint8Array; - offset: bigint; - limit: bigint; - countTotal: boolean; - reverse: boolean; -} - -export interface PageRequestParams { - 'pagination.key'?: string; - 'pagination.offset'?: string; - 'pagination.limit'?: string; - 'pagination.count_total'?: boolean; - 'pagination.reverse'?: boolean; -} - -export interface Params { - params: PageRequestParams; -} - -export const setPaginationParams = ( - options: Params, - pagination?: PageRequest -) => { - if (!pagination) { - return options; - } - - if (typeof pagination?.countTotal !== 'undefined') { - options.params['pagination.count_total'] = pagination.countTotal; - } - if (typeof pagination?.key !== 'undefined') { - // String to Uint8Array - // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); - - // Uint8Array to String - options.params['pagination.key'] = Buffer.from(pagination.key).toString( - 'base64' - ); - } - if (typeof pagination?.limit !== 'undefined') { - options.params['pagination.limit'] = pagination.limit.toString(); - } - if (typeof pagination?.offset !== 'undefined') { - options.params['pagination.offset'] = pagination.offset.toString(); - } - if (typeof pagination?.reverse !== 'undefined') { - options.params['pagination.reverse'] = pagination.reverse; - } - - return options; -}; - -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | bigint - | boolean - | undefined; - -export type DeepPartial = T extends Builtin - ? T - : T extends Array - ? Array> - : T extends ReadonlyArray - ? ReadonlyArray> - : T extends {} - ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin - ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; - -export interface Rpc { - request( - service: string, - method: string, - data: Uint8Array - ): Promise; -} - -interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - - nanos: number; -} - -export function toTimestamp(date: Date): Timestamp { - const seconds = numberToLong(date.getTime() / 1_000); - const nanos = (date.getTime() % 1000) * 1000000; - return { - seconds, - nanos - }; -} - -export function fromTimestamp(t: Timestamp): Date { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} - -const timestampFromJSON = (object: any): Timestamp => { - return { - seconds: isSet(object.seconds) - ? BigInt(object.seconds.toString()) - : BigInt(0), - nanos: isSet(object.nanos) ? Number(object.nanos) : 0 - }; -}; - -export function fromJsonTimestamp(o: any): Timestamp { - if (o instanceof Date) { - return toTimestamp(o); - } else if (typeof o === 'string') { - return toTimestamp(new Date(o)); - } else { - return timestampFromJSON(o); - } -} - -function numberToLong(number: number) { - return BigInt(Math.trunc(number)); -} - diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/genesis.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/genesis.ts deleted file mode 100644 index b1170c5f..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/genesis.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisState { - portId: string; - denomTraces: DenomTrace[]; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateAmino { - port_id?: string; - denom_traces?: DenomTraceAmino[]; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateSDKType { - port_id: string; - denom_traces: DenomTraceSDKType[]; - params: ParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - portId: "", - denomTraces: [], - params: Params.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - for (const v of message.denomTraces) { - DenomTrace.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); - break; - case 3: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - portId: isSet(object.portId) ? String(object.portId) : "", - denomTraces: Array.isArray(object?.denomTraces) ? object.denomTraces.map((e: any) => DenomTrace.fromJSON(e)) : [], - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.portId !== undefined && (obj.portId = message.portId); - if (message.denomTraces) { - obj.denomTraces = message.denomTraces.map(e => e ? DenomTrace.toJSON(e) : undefined); - } else { - obj.denomTraces = []; - } - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.portId = object.portId ?? ""; - message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); - } else { - obj.denom_traces = message.denomTraces; - } - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/query.lcd.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/query.lcd.ts deleted file mode 100644 index ea4047e7..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - /* DenomTrace queries a denomination trace information. */ - async denomTrace(params: QueryDenomTraceRequest): Promise { - const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; - return await this.req.get(endpoint); - } - /* DenomTraces queries all denomination traces. */ - async denomTraces(params: QueryDenomTracesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/apps/transfer/v1/denom_traces`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the ibc-transfer module. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `ibc/apps/transfer/v1/params`; - return await this.req.get(endpoint); - } - /* DenomHash queries a denomination hash information. */ - async denomHash(params: QueryDenomHashRequest): Promise { - const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; - return await this.req.get(endpoint); - } - /* EscrowAddress returns the escrow address for a particular port and channel id. */ - async escrowAddress(params: QueryEscrowAddressRequest): Promise { - const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts deleted file mode 100644 index d05b79df..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** DenomTrace queries a denomination trace information. */ - denomTrace(request: QueryDenomTraceRequest): Promise; - /** DenomTraces queries all denomination traces. */ - denomTraces(request?: QueryDenomTracesRequest): Promise; - /** Params queries all parameters of the ibc-transfer module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomHash queries a denomination hash information. */ - denomHash(request: QueryDenomHashRequest): Promise; - /** EscrowAddress returns the escrow address for a particular port and channel id. */ - escrowAddress(request: QueryEscrowAddressRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - denomTrace(request: QueryDenomTraceRequest): Promise { - const data = QueryDenomTraceRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); - return promise.then(data => QueryDenomTraceResponse.decode(new BinaryReader(data))); - } - denomTraces(request: QueryDenomTracesRequest = { - pagination: undefined - }): Promise { - const data = QueryDenomTracesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); - return promise.then(data => QueryDenomTracesResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - denomHash(request: QueryDenomHashRequest): Promise { - const data = QueryDenomHashRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); - return promise.then(data => QueryDenomHashResponse.decode(new BinaryReader(data))); - } - escrowAddress(request: QueryEscrowAddressRequest): Promise { - const data = QueryEscrowAddressRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); - return promise.then(data => QueryEscrowAddressResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - denomTrace(request: QueryDenomTraceRequest): Promise { - return queryService.denomTrace(request); - }, - denomTraces(request?: QueryDenomTracesRequest): Promise { - return queryService.denomTraces(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - denomHash(request: QueryDenomHashRequest): Promise { - return queryService.denomHash(request); - }, - escrowAddress(request: QueryEscrowAddressRequest): Promise { - return queryService.escrowAddress(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/query.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/query.ts deleted file mode 100644 index 0d8c1dd3..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/query.ts +++ /dev/null @@ -1,1088 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequest { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomTraceRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; - value: Uint8Array; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestAmino { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomTraceRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTraceRequest"; - value: QueryDenomTraceRequestAmino; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestSDKType { - hash: string; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponse { - /** denom_trace returns the requested denomination trace information. */ - denomTrace?: DenomTrace; -} -export interface QueryDenomTraceResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; - value: Uint8Array; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseAmino { - /** denom_trace returns the requested denomination trace information. */ - denom_trace?: DenomTraceAmino; -} -export interface QueryDenomTraceResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTraceResponse"; - value: QueryDenomTraceResponseAmino; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseSDKType { - denom_trace?: DenomTraceSDKType; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomTracesRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; - value: Uint8Array; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomTracesRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTracesRequest"; - value: QueryDenomTracesRequestAmino; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponse { - /** denom_traces returns all denominations trace information. */ - denomTraces: DenomTrace[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomTracesResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; - value: Uint8Array; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseAmino { - /** denom_traces returns all denominations trace information. */ - denom_traces?: DenomTraceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomTracesResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTracesResponse"; - value: QueryDenomTracesResponseAmino; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseSDKType { - denom_traces: DenomTraceSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequest { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace: string; -} -export interface QueryDenomHashRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest"; - value: Uint8Array; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestAmino { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace?: string; -} -export interface QueryDenomHashRequestAminoMsg { - type: "cosmos-sdk/QueryDenomHashRequest"; - value: QueryDenomHashRequestAmino; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestSDKType { - trace: string; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponse { - /** hash (in hex format) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomHashResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse"; - value: Uint8Array; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseAmino { - /** hash (in hex format) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomHashResponseAminoMsg { - type: "cosmos-sdk/QueryDenomHashResponse"; - value: QueryDenomHashResponseAmino; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseSDKType { - hash: string; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequest { - /** unique port identifier */ - portId: string; - /** unique channel identifier */ - channelId: string; -} -export interface QueryEscrowAddressRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest"; - value: Uint8Array; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestAmino { - /** unique port identifier */ - port_id?: string; - /** unique channel identifier */ - channel_id?: string; -} -export interface QueryEscrowAddressRequestAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressRequest"; - value: QueryEscrowAddressRequestAmino; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestSDKType { - port_id: string; - channel_id: string; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponse { - /** the escrow account address */ - escrowAddress: string; -} -export interface QueryEscrowAddressResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse"; - value: Uint8Array; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseAmino { - /** the escrow account address */ - escrow_address?: string; -} -export interface QueryEscrowAddressResponseAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressResponse"; - value: QueryEscrowAddressResponseAmino; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseSDKType { - escrow_address: string; -} -function createBaseQueryDenomTraceRequest(): QueryDenomTraceRequest { - return { - hash: "" - }; -} -export const QueryDenomTraceRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - encode(message: QueryDenomTraceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomTraceRequest { - return { - hash: isSet(object.hash) ? String(object.hash) : "" - }; - }, - toJSON(message: QueryDenomTraceRequest): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = message.hash); - return obj; - }, - fromPartial(object: Partial): QueryDenomTraceRequest { - const message = createBaseQueryDenomTraceRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object: QueryDenomTraceRequestAmino): QueryDenomTraceRequest { - const message = createBaseQueryDenomTraceRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino { - const obj: any = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest { - return QueryDenomTraceRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomTraceRequest", - value: QueryDenomTraceRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomTraceRequestProtoMsg): QueryDenomTraceRequest { - return QueryDenomTraceRequest.decode(message.value); - }, - toProto(message: QueryDenomTraceRequest): Uint8Array { - return QueryDenomTraceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - value: QueryDenomTraceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTraceResponse(): QueryDenomTraceResponse { - return { - denomTrace: undefined - }; -} -export const QueryDenomTraceResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - encode(message: QueryDenomTraceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denomTrace !== undefined) { - DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTrace = DenomTrace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomTraceResponse { - return { - denomTrace: isSet(object.denomTrace) ? DenomTrace.fromJSON(object.denomTrace) : undefined - }; - }, - toJSON(message: QueryDenomTraceResponse): unknown { - const obj: any = {}; - message.denomTrace !== undefined && (obj.denomTrace = message.denomTrace ? DenomTrace.toJSON(message.denomTrace) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomTraceResponse { - const message = createBaseQueryDenomTraceResponse(); - message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? DenomTrace.fromPartial(object.denomTrace) : undefined; - return message; - }, - fromAmino(object: QueryDenomTraceResponseAmino): QueryDenomTraceResponse { - const message = createBaseQueryDenomTraceResponse(); - if (object.denom_trace !== undefined && object.denom_trace !== null) { - message.denomTrace = DenomTrace.fromAmino(object.denom_trace); - } - return message; - }, - toAmino(message: QueryDenomTraceResponse): QueryDenomTraceResponseAmino { - const obj: any = {}; - obj.denom_trace = message.denomTrace ? DenomTrace.toAmino(message.denomTrace) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomTraceResponseAminoMsg): QueryDenomTraceResponse { - return QueryDenomTraceResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomTraceResponse", - value: QueryDenomTraceResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomTraceResponseProtoMsg): QueryDenomTraceResponse { - return QueryDenomTraceResponse.decode(message.value); - }, - toProto(message: QueryDenomTraceResponse): Uint8Array { - return QueryDenomTraceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - value: QueryDenomTraceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesRequest(): QueryDenomTracesRequest { - return { - pagination: undefined - }; -} -export const QueryDenomTracesRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - encode(message: QueryDenomTracesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomTracesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomTracesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomTracesRequest { - const message = createBaseQueryDenomTracesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomTracesRequestAmino): QueryDenomTracesRequest { - const message = createBaseQueryDenomTracesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomTracesRequest): QueryDenomTracesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomTracesRequestAminoMsg): QueryDenomTracesRequest { - return QueryDenomTracesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomTracesRequest", - value: QueryDenomTracesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomTracesRequestProtoMsg): QueryDenomTracesRequest { - return QueryDenomTracesRequest.decode(message.value); - }, - toProto(message: QueryDenomTracesRequest): Uint8Array { - return QueryDenomTracesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - value: QueryDenomTracesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesResponse(): QueryDenomTracesResponse { - return { - denomTraces: [], - pagination: undefined - }; -} -export const QueryDenomTracesResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - encode(message: QueryDenomTracesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.denomTraces) { - DenomTrace.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomTracesResponse { - return { - denomTraces: Array.isArray(object?.denomTraces) ? object.denomTraces.map((e: any) => DenomTrace.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryDenomTracesResponse): unknown { - const obj: any = {}; - if (message.denomTraces) { - obj.denomTraces = message.denomTraces.map(e => e ? DenomTrace.toJSON(e) : undefined); - } else { - obj.denomTraces = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryDenomTracesResponse { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryDenomTracesResponseAmino): QueryDenomTracesResponse { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryDenomTracesResponse): QueryDenomTracesResponseAmino { - const obj: any = {}; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); - } else { - obj.denom_traces = message.denomTraces; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryDenomTracesResponseAminoMsg): QueryDenomTracesResponse { - return QueryDenomTracesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomTracesResponse", - value: QueryDenomTracesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomTracesResponseProtoMsg): QueryDenomTracesResponse { - return QueryDenomTracesResponse.decode(message.value); - }, - toProto(message: QueryDenomTracesResponse): Uint8Array { - return QueryDenomTracesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - value: QueryDenomTracesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashRequest(): QueryDenomHashRequest { - return { - trace: "" - }; -} -export const QueryDenomHashRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - encode(message: QueryDenomHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.trace !== "") { - writer.uint32(10).string(message.trace); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.trace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomHashRequest { - return { - trace: isSet(object.trace) ? String(object.trace) : "" - }; - }, - toJSON(message: QueryDenomHashRequest): unknown { - const obj: any = {}; - message.trace !== undefined && (obj.trace = message.trace); - return obj; - }, - fromPartial(object: Partial): QueryDenomHashRequest { - const message = createBaseQueryDenomHashRequest(); - message.trace = object.trace ?? ""; - return message; - }, - fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest { - const message = createBaseQueryDenomHashRequest(); - if (object.trace !== undefined && object.trace !== null) { - message.trace = object.trace; - } - return message; - }, - toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino { - const obj: any = {}; - obj.trace = message.trace === "" ? undefined : message.trace; - return obj; - }, - fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest { - return QueryDenomHashRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg { - return { - type: "cosmos-sdk/QueryDenomHashRequest", - value: QueryDenomHashRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest { - return QueryDenomHashRequest.decode(message.value); - }, - toProto(message: QueryDenomHashRequest): Uint8Array { - return QueryDenomHashRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - value: QueryDenomHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashResponse(): QueryDenomHashResponse { - return { - hash: "" - }; -} -export const QueryDenomHashResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - encode(message: QueryDenomHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryDenomHashResponse { - return { - hash: isSet(object.hash) ? String(object.hash) : "" - }; - }, - toJSON(message: QueryDenomHashResponse): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = message.hash); - return obj; - }, - fromPartial(object: Partial): QueryDenomHashResponse { - const message = createBaseQueryDenomHashResponse(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse { - const message = createBaseQueryDenomHashResponse(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino { - const obj: any = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse { - return QueryDenomHashResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg { - return { - type: "cosmos-sdk/QueryDenomHashResponse", - value: QueryDenomHashResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse { - return QueryDenomHashResponse.decode(message.value); - }, - toProto(message: QueryDenomHashResponse): Uint8Array { - return QueryDenomHashResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - value: QueryDenomHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressRequest(): QueryEscrowAddressRequest { - return { - portId: "", - channelId: "" - }; -} -export const QueryEscrowAddressRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - encode(message: QueryEscrowAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - if (message.channelId !== "") { - writer.uint32(18).string(message.channelId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.channelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryEscrowAddressRequest { - return { - portId: isSet(object.portId) ? String(object.portId) : "", - channelId: isSet(object.channelId) ? String(object.channelId) : "" - }; - }, - toJSON(message: QueryEscrowAddressRequest): unknown { - const obj: any = {}; - message.portId !== undefined && (obj.portId = message.portId); - message.channelId !== undefined && (obj.channelId = message.channelId); - return obj; - }, - fromPartial(object: Partial): QueryEscrowAddressRequest { - const message = createBaseQueryEscrowAddressRequest(); - message.portId = object.portId ?? ""; - message.channelId = object.channelId ?? ""; - return message; - }, - fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest { - const message = createBaseQueryEscrowAddressRequest(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - if (object.channel_id !== undefined && object.channel_id !== null) { - message.channelId = object.channel_id; - } - return message; - }, - toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino { - const obj: any = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - obj.channel_id = message.channelId === "" ? undefined : message.channelId; - return obj; - }, - fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest { - return QueryEscrowAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg { - return { - type: "cosmos-sdk/QueryEscrowAddressRequest", - value: QueryEscrowAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest { - return QueryEscrowAddressRequest.decode(message.value); - }, - toProto(message: QueryEscrowAddressRequest): Uint8Array { - return QueryEscrowAddressRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - value: QueryEscrowAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressResponse(): QueryEscrowAddressResponse { - return { - escrowAddress: "" - }; -} -export const QueryEscrowAddressResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - encode(message: QueryEscrowAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.escrowAddress !== "") { - writer.uint32(10).string(message.escrowAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.escrowAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryEscrowAddressResponse { - return { - escrowAddress: isSet(object.escrowAddress) ? String(object.escrowAddress) : "" - }; - }, - toJSON(message: QueryEscrowAddressResponse): unknown { - const obj: any = {}; - message.escrowAddress !== undefined && (obj.escrowAddress = message.escrowAddress); - return obj; - }, - fromPartial(object: Partial): QueryEscrowAddressResponse { - const message = createBaseQueryEscrowAddressResponse(); - message.escrowAddress = object.escrowAddress ?? ""; - return message; - }, - fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse { - const message = createBaseQueryEscrowAddressResponse(); - if (object.escrow_address !== undefined && object.escrow_address !== null) { - message.escrowAddress = object.escrow_address; - } - return message; - }, - toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino { - const obj: any = {}; - obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; - return obj; - }, - fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse { - return QueryEscrowAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg { - return { - type: "cosmos-sdk/QueryEscrowAddressResponse", - value: QueryEscrowAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse { - return QueryEscrowAddressResponse.decode(message.value); - }, - toProto(message: QueryEscrowAddressResponse): Uint8Array { - return QueryEscrowAddressResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - value: QueryEscrowAddressResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/transfer.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/transfer.ts deleted file mode 100644 index 3e7a452c..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/transfer.ts +++ /dev/null @@ -1,284 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - baseDenom: string; -} -export interface DenomTraceProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; - value: Uint8Array; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceAmino { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; -} -export interface DenomTraceAminoMsg { - type: "cosmos-sdk/DenomTrace"; - value: DenomTraceAmino; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceSDKType { - path: string; - base_denom: string; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - sendEnabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receiveEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsAmino { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsSDKType { - send_enabled: boolean; - receive_enabled: boolean; -} -function createBaseDenomTrace(): DenomTrace { - return { - path: "", - baseDenom: "" - }; -} -export const DenomTrace = { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - encode(message: DenomTrace, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.path !== "") { - writer.uint32(10).string(message.path); - } - if (message.baseDenom !== "") { - writer.uint32(18).string(message.baseDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomTrace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.baseDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DenomTrace { - return { - path: isSet(object.path) ? String(object.path) : "", - baseDenom: isSet(object.baseDenom) ? String(object.baseDenom) : "" - }; - }, - toJSON(message: DenomTrace): unknown { - const obj: any = {}; - message.path !== undefined && (obj.path = message.path); - message.baseDenom !== undefined && (obj.baseDenom = message.baseDenom); - return obj; - }, - fromPartial(object: Partial): DenomTrace { - const message = createBaseDenomTrace(); - message.path = object.path ?? ""; - message.baseDenom = object.baseDenom ?? ""; - return message; - }, - fromAmino(object: DenomTraceAmino): DenomTrace { - const message = createBaseDenomTrace(); - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.base_denom !== undefined && object.base_denom !== null) { - message.baseDenom = object.base_denom; - } - return message; - }, - toAmino(message: DenomTrace): DenomTraceAmino { - const obj: any = {}; - obj.path = message.path === "" ? undefined : message.path; - obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; - return obj; - }, - fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace { - return DenomTrace.fromAmino(object.value); - }, - toAminoMsg(message: DenomTrace): DenomTraceAminoMsg { - return { - type: "cosmos-sdk/DenomTrace", - value: DenomTrace.toAmino(message) - }; - }, - fromProtoMsg(message: DenomTraceProtoMsg): DenomTrace { - return DenomTrace.decode(message.value); - }, - toProto(message: DenomTrace): Uint8Array { - return DenomTrace.encode(message).finish(); - }, - toProtoMsg(message: DenomTrace): DenomTraceProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - value: DenomTrace.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - sendEnabled: false, - receiveEnabled: false - }; -} -export const Params = { - typeUrl: "/ibc.applications.transfer.v1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sendEnabled === true) { - writer.uint32(8).bool(message.sendEnabled); - } - if (message.receiveEnabled === true) { - writer.uint32(16).bool(message.receiveEnabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled = reader.bool(); - break; - case 2: - message.receiveEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - sendEnabled: isSet(object.sendEnabled) ? Boolean(object.sendEnabled) : false, - receiveEnabled: isSet(object.receiveEnabled) ? Boolean(object.receiveEnabled) : false - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - message.sendEnabled !== undefined && (obj.sendEnabled = message.sendEnabled); - message.receiveEnabled !== undefined && (obj.receiveEnabled = message.receiveEnabled); - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled ?? false; - message.receiveEnabled = object.receiveEnabled ?? false; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - if (object.send_enabled !== undefined && object.send_enabled !== null) { - message.sendEnabled = object.send_enabled; - } - if (object.receive_enabled !== undefined && object.receive_enabled !== null) { - message.receiveEnabled = object.receive_enabled; - } - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; - obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.Params", - value: Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.amino.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/tx.amino.ts deleted file mode 100644 index 65002c1e..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgTransfer } from "./tx"; -export const AminoConverter = { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: "cosmos-sdk/MsgTransfer", - toAmino: MsgTransfer.toAmino, - fromAmino: MsgTransfer.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.registry.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/tx.registry.ts deleted file mode 100644 index 64de2734..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgTransfer } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - transfer(value: MsgTransfer) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.encode(value).finish() - }; - } - }, - withTypeUrl: { - transfer(value: MsgTransfer) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value - }; - } - }, - toJSON: { - transfer(value: MsgTransfer) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.toJSON(value) - }; - } - }, - fromJSON: { - transfer(value: any) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.fromJSON(value) - }; - } - }, - fromPartial: { - transfer(value: MsgTransfer) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts deleted file mode 100644 index c4f28579..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { MsgTransfer, MsgTransferResponse } from "./tx"; -/** Msg defines the ibc/transfer Msg service. */ -export interface Msg { - /** Transfer defines a rpc handler method for MsgTransfer. */ - transfer(request: MsgTransfer): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.transfer = this.transfer.bind(this); - } - transfer(request: MsgTransfer): Promise { - const data = MsgTransfer.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); - return promise.then(data => MsgTransferResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.ts b/packages/api/src/codegen/ibc/applications/transfer/v1/tx.ts deleted file mode 100644 index 915c5f9f..00000000 --- a/packages/api/src/codegen/ibc/applications/transfer/v1/tx.ts +++ /dev/null @@ -1,320 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransfer { - /** the port on which the packet will be sent */ - sourcePort: string; - /** the channel by which the packet will be sent */ - sourceChannel: string; - /** the tokens to be transferred */ - token: Coin; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Height; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: bigint; -} -export interface MsgTransferProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; - value: Uint8Array; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferAmino { - /** the port on which the packet will be sent */ - source_port?: string; - /** the channel by which the packet will be sent */ - source_channel?: string; - /** the tokens to be transferred */ - token?: CoinAmino; - /** the sender address */ - sender?: string; - /** the recipient address on the destination chain */ - receiver?: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height?: HeightAmino; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeout_timestamp?: string; -} -export interface MsgTransferAminoMsg { - type: "cosmos-sdk/MsgTransfer"; - value: MsgTransferAmino; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferSDKType { - source_port: string; - source_channel: string; - token: CoinSDKType; - sender: string; - receiver: string; - timeout_height: HeightSDKType; - timeout_timestamp: bigint; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponse {} -export interface MsgTransferResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; - value: Uint8Array; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseAmino {} -export interface MsgTransferResponseAminoMsg { - type: "cosmos-sdk/MsgTransferResponse"; - value: MsgTransferResponseAmino; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseSDKType {} -function createBaseMsgTransfer(): MsgTransfer { - return { - sourcePort: "", - sourceChannel: "", - token: Coin.fromPartial({}), - sender: "", - receiver: "", - timeoutHeight: Height.fromPartial({}), - timeoutTimestamp: BigInt(0) - }; -} -export const MsgTransfer = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - encode(message: MsgTransfer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sourcePort !== "") { - writer.uint32(10).string(message.sourcePort); - } - if (message.sourceChannel !== "") { - writer.uint32(18).string(message.sourceChannel); - } - if (message.token !== undefined) { - Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); - } - if (message.sender !== "") { - writer.uint32(34).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(42).string(message.receiver); - } - if (message.timeoutHeight !== undefined) { - Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); - } - if (message.timeoutTimestamp !== BigInt(0)) { - writer.uint32(56).uint64(message.timeoutTimestamp); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sourcePort = reader.string(); - break; - case 2: - message.sourceChannel = reader.string(); - break; - case 3: - message.token = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.sender = reader.string(); - break; - case 5: - message.receiver = reader.string(); - break; - case 6: - message.timeoutHeight = Height.decode(reader, reader.uint32()); - break; - case 7: - message.timeoutTimestamp = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgTransfer { - return { - sourcePort: isSet(object.sourcePort) ? String(object.sourcePort) : "", - sourceChannel: isSet(object.sourceChannel) ? String(object.sourceChannel) : "", - token: isSet(object.token) ? Coin.fromJSON(object.token) : undefined, - sender: isSet(object.sender) ? String(object.sender) : "", - receiver: isSet(object.receiver) ? String(object.receiver) : "", - timeoutHeight: isSet(object.timeoutHeight) ? Height.fromJSON(object.timeoutHeight) : undefined, - timeoutTimestamp: isSet(object.timeoutTimestamp) ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgTransfer): unknown { - const obj: any = {}; - message.sourcePort !== undefined && (obj.sourcePort = message.sourcePort); - message.sourceChannel !== undefined && (obj.sourceChannel = message.sourceChannel); - message.token !== undefined && (obj.token = message.token ? Coin.toJSON(message.token) : undefined); - message.sender !== undefined && (obj.sender = message.sender); - message.receiver !== undefined && (obj.receiver = message.receiver); - message.timeoutHeight !== undefined && (obj.timeoutHeight = message.timeoutHeight ? Height.toJSON(message.timeoutHeight) : undefined); - message.timeoutTimestamp !== undefined && (obj.timeoutTimestamp = (message.timeoutTimestamp || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgTransfer { - const message = createBaseMsgTransfer(); - message.sourcePort = object.sourcePort ?? ""; - message.sourceChannel = object.sourceChannel ?? ""; - message.token = object.token !== undefined && object.token !== null ? Coin.fromPartial(object.token) : undefined; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Height.fromPartial(object.timeoutHeight) : undefined; - message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgTransferAmino): MsgTransfer { - const message = createBaseMsgTransfer(); - if (object.source_port !== undefined && object.source_port !== null) { - message.sourcePort = object.source_port; - } - if (object.source_channel !== undefined && object.source_channel !== null) { - message.sourceChannel = object.source_channel; - } - if (object.token !== undefined && object.token !== null) { - message.token = Coin.fromAmino(object.token); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.receiver !== undefined && object.receiver !== null) { - message.receiver = object.receiver; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = Height.fromAmino(object.timeout_height); - } - if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { - message.timeoutTimestamp = BigInt(object.timeout_timestamp); - } - return message; - }, - toAmino(message: MsgTransfer): MsgTransferAmino { - const obj: any = {}; - obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; - obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; - obj.token = message.token ? Coin.toAmino(message.token) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.receiver = message.receiver === "" ? undefined : message.receiver; - obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; - obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer { - return MsgTransfer.fromAmino(object.value); - }, - toAminoMsg(message: MsgTransfer): MsgTransferAminoMsg { - return { - type: "cosmos-sdk/MsgTransfer", - value: MsgTransfer.toAmino(message) - }; - }, - fromProtoMsg(message: MsgTransferProtoMsg): MsgTransfer { - return MsgTransfer.decode(message.value); - }, - toProto(message: MsgTransfer): Uint8Array { - return MsgTransfer.encode(message).finish(); - }, - toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.encode(message).finish() - }; - } -}; -function createBaseMsgTransferResponse(): MsgTransferResponse { - return {}; -} -export const MsgTransferResponse = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - encode(_: MsgTransferResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransferResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgTransferResponse { - return {}; - }, - toJSON(_: MsgTransferResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgTransferResponse { - const message = createBaseMsgTransferResponse(); - return message; - }, - fromAmino(_: MsgTransferResponseAmino): MsgTransferResponse { - const message = createBaseMsgTransferResponse(); - return message; - }, - toAmino(_: MsgTransferResponse): MsgTransferResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgTransferResponseAminoMsg): MsgTransferResponse { - return MsgTransferResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgTransferResponse): MsgTransferResponseAminoMsg { - return { - type: "cosmos-sdk/MsgTransferResponse", - value: MsgTransferResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgTransferResponseProtoMsg): MsgTransferResponse { - return MsgTransferResponse.decode(message.value); - }, - toProto(message: MsgTransferResponse): Uint8Array { - return MsgTransferResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgTransferResponse): MsgTransferResponseProtoMsg { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - value: MsgTransferResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/bundle.ts b/packages/api/src/codegen/ibc/bundle.ts deleted file mode 100644 index 94f124a6..00000000 --- a/packages/api/src/codegen/ibc/bundle.ts +++ /dev/null @@ -1,58 +0,0 @@ -import * as _105 from "./applications/transfer/v1/genesis"; -import * as _106 from "./applications/transfer/v1/query"; -import * as _107 from "./applications/transfer/v1/transfer"; -import * as _108 from "./applications/transfer/v1/tx"; -import * as _109 from "./core/client/v1/client"; -import * as _110 from "./core/client/v1/genesis"; -import * as _111 from "./core/client/v1/query"; -import * as _112 from "./core/client/v1/tx"; -import * as _231 from "./applications/transfer/v1/tx.amino"; -import * as _232 from "./core/client/v1/tx.amino"; -import * as _233 from "./applications/transfer/v1/tx.registry"; -import * as _234 from "./core/client/v1/tx.registry"; -import * as _235 from "./applications/transfer/v1/query.lcd"; -import * as _236 from "./core/client/v1/query.lcd"; -import * as _237 from "./applications/transfer/v1/query.rpc.Query"; -import * as _238 from "./core/client/v1/query.rpc.Query"; -import * as _239 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _240 from "./core/client/v1/tx.rpc.msg"; -import * as _274 from "./lcd"; -import * as _275 from "./rpc.query"; -import * as _276 from "./rpc.tx"; -export namespace ibc { - export namespace applications { - export namespace transfer { - export const v1 = { - ..._105, - ..._106, - ..._107, - ..._108, - ..._231, - ..._233, - ..._235, - ..._237, - ..._239 - }; - } - } - export namespace core { - export namespace client { - export const v1 = { - ..._109, - ..._110, - ..._111, - ..._112, - ..._232, - ..._234, - ..._236, - ..._238, - ..._240 - }; - } - } - export const ClientFactory = { - ..._274, - ..._275, - ..._276 - }; -} \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/client.ts b/packages/api/src/codegen/ibc/client.ts deleted file mode 100644 index 7f972f22..00000000 --- a/packages/api/src/codegen/ibc/client.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry"; -import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry"; -import * as ibcApplicationsTransferV1TxAmino from "./applications/transfer/v1/tx.amino"; -import * as ibcCoreClientV1TxAmino from "./core/client/v1/tx.amino"; -export const ibcAminoConverters = { - ...ibcApplicationsTransferV1TxAmino.AminoConverter, - ...ibcCoreClientV1TxAmino.AminoConverter -}; -export const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; -export const getSigningIbcClientOptions = ({ - defaultTypes = defaultRegistryTypes -}: { - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -} = {}): { - registry: Registry; - aminoTypes: AminoTypes; -} => { - const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...ibcAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningIbcClient = async ({ - rpcEndpoint, - signer, - defaultTypes = defaultRegistryTypes -}: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => { - const { - registry, - aminoTypes - } = getSigningIbcClientOptions({ - defaultTypes - }); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: (registry as any), - aminoTypes - }); - return client; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/client.ts b/packages/api/src/codegen/ibc/core/client/v1/client.ts deleted file mode 100644 index 8137f85d..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/client.ts +++ /dev/null @@ -1,1013 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientState { - /** client identifier */ - clientId: string; - /** client state */ - clientState?: Any; -} -export interface IdentifiedClientStateProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; - value: Uint8Array; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateAmino { - /** client identifier */ - client_id?: string; - /** client state */ - client_state?: AnyAmino; -} -export interface IdentifiedClientStateAminoMsg { - type: "cosmos-sdk/IdentifiedClientState"; - value: IdentifiedClientStateAmino; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateSDKType { - client_id: string; - client_state?: AnySDKType; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeight { - /** consensus state height */ - height: Height; - /** consensus state */ - consensusState?: Any; -} -export interface ConsensusStateWithHeightProtoMsg { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; - value: Uint8Array; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightAmino { - /** consensus state height */ - height?: HeightAmino; - /** consensus state */ - consensus_state?: AnyAmino; -} -export interface ConsensusStateWithHeightAminoMsg { - type: "cosmos-sdk/ConsensusStateWithHeight"; - value: ConsensusStateWithHeightAmino; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightSDKType { - height: HeightSDKType; - consensus_state?: AnySDKType; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStates { - /** client identifier */ - clientId: string; - /** consensus states and their heights associated with the client */ - consensusStates: ConsensusStateWithHeight[]; -} -export interface ClientConsensusStatesProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; - value: Uint8Array; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesAmino { - /** client identifier */ - client_id?: string; - /** consensus states and their heights associated with the client */ - consensus_states?: ConsensusStateWithHeightAmino[]; -} -export interface ClientConsensusStatesAminoMsg { - type: "cosmos-sdk/ClientConsensusStates"; - value: ClientConsensusStatesAmino; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesSDKType { - client_id: string; - consensus_states: ConsensusStateWithHeightSDKType[]; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposal { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subjectClientId: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substituteClientId: string; -} -export interface ClientUpdateProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; - value: Uint8Array; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalAmino { - /** the title of the update proposal */ - title?: string; - /** the description of the proposal */ - description?: string; - /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id?: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substitute_client_id?: string; -} -export interface ClientUpdateProposalAminoMsg { - type: "cosmos-sdk/ClientUpdateProposal"; - value: ClientUpdateProposalAmino; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - title: string; - description: string; - subject_client_id: string; - substitute_client_id: string; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposal { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: Plan; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgradedClientState?: Any; -} -export interface UpgradeProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.UpgradeProposal"; - value: Uint8Array; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgraded_client_state?: AnyAmino; -} -export interface UpgradeProposalAminoMsg { - type: "cosmos-sdk/UpgradeProposal"; - value: UpgradeProposalAmino; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; - upgraded_client_state?: AnySDKType; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface Height { - /** the revision that the client is currently on */ - revisionNumber: bigint; - /** the height within the given revision */ - revisionHeight: bigint; -} -export interface HeightProtoMsg { - typeUrl: "/ibc.core.client.v1.Height"; - value: Uint8Array; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightAmino { - /** the revision that the client is currently on */ - revision_number?: string; - /** the height within the given revision */ - revision_height?: string; -} -export interface HeightAminoMsg { - type: "cosmos-sdk/Height"; - value: HeightAmino; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightSDKType { - revision_number: bigint; - revision_height: bigint; -} -/** Params defines the set of IBC light client parameters. */ -export interface Params { - /** allowed_clients defines the list of allowed client state types. */ - allowedClients: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.client.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsAmino { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsSDKType { - allowed_clients: string[]; -} -function createBaseIdentifiedClientState(): IdentifiedClientState { - return { - clientId: "", - clientState: undefined - }; -} -export const IdentifiedClientState = { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - encode(message: IdentifiedClientState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedClientState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): IdentifiedClientState { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined - }; - }, - toJSON(message: IdentifiedClientState): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.clientState !== undefined && (obj.clientState = message.clientState ? Any.toJSON(message.clientState) : undefined); - return obj; - }, - fromPartial(object: Partial): IdentifiedClientState { - const message = createBaseIdentifiedClientState(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - return message; - }, - fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState { - const message = createBaseIdentifiedClientState(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - return message; - }, - toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - return obj; - }, - fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState { - return IdentifiedClientState.fromAmino(object.value); - }, - toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg { - return { - type: "cosmos-sdk/IdentifiedClientState", - value: IdentifiedClientState.toAmino(message) - }; - }, - fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState { - return IdentifiedClientState.decode(message.value); - }, - toProto(message: IdentifiedClientState): Uint8Array { - return IdentifiedClientState.encode(message).finish(); - }, - toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - value: IdentifiedClientState.encode(message).finish() - }; - } -}; -function createBaseConsensusStateWithHeight(): ConsensusStateWithHeight { - return { - height: Height.fromPartial({}), - consensusState: undefined - }; -} -export const ConsensusStateWithHeight = { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - encode(message: ConsensusStateWithHeight, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== undefined) { - Height.encode(message.height, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusStateWithHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = Height.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConsensusStateWithHeight { - return { - height: isSet(object.height) ? Height.fromJSON(object.height) : undefined, - consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined - }; - }, - toJSON(message: ConsensusStateWithHeight): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = message.height ? Height.toJSON(message.height) : undefined); - message.consensusState !== undefined && (obj.consensusState = message.consensusState ? Any.toJSON(message.consensusState) : undefined); - return obj; - }, - fromPartial(object: Partial): ConsensusStateWithHeight { - const message = createBaseConsensusStateWithHeight(); - message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - return message; - }, - fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight { - const message = createBaseConsensusStateWithHeight(); - if (object.height !== undefined && object.height !== null) { - message.height = Height.fromAmino(object.height); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - return message; - }, - toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino { - const obj: any = {}; - obj.height = message.height ? Height.toAmino(message.height) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - return obj; - }, - fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight { - return ConsensusStateWithHeight.fromAmino(object.value); - }, - toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg { - return { - type: "cosmos-sdk/ConsensusStateWithHeight", - value: ConsensusStateWithHeight.toAmino(message) - }; - }, - fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight { - return ConsensusStateWithHeight.decode(message.value); - }, - toProto(message: ConsensusStateWithHeight): Uint8Array { - return ConsensusStateWithHeight.encode(message).finish(); - }, - toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - value: ConsensusStateWithHeight.encode(message).finish() - }; - } -}; -function createBaseClientConsensusStates(): ClientConsensusStates { - return { - clientId: "", - consensusStates: [] - }; -} -export const ClientConsensusStates = { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - encode(message: ClientConsensusStates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.consensusStates) { - ConsensusStateWithHeight.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientConsensusStates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClientConsensusStates { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - consensusStates: Array.isArray(object?.consensusStates) ? object.consensusStates.map((e: any) => ConsensusStateWithHeight.fromJSON(e)) : [] - }; - }, - toJSON(message: ClientConsensusStates): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - if (message.consensusStates) { - obj.consensusStates = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toJSON(e) : undefined); - } else { - obj.consensusStates = []; - } - return obj; - }, - fromPartial(object: Partial): ClientConsensusStates { - const message = createBaseClientConsensusStates(); - message.clientId = object.clientId ?? ""; - message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates { - const message = createBaseClientConsensusStates(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; - return message; - }, - toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); - } else { - obj.consensus_states = message.consensusStates; - } - return obj; - }, - fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates { - return ClientConsensusStates.fromAmino(object.value); - }, - toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg { - return { - type: "cosmos-sdk/ClientConsensusStates", - value: ClientConsensusStates.toAmino(message) - }; - }, - fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates { - return ClientConsensusStates.decode(message.value); - }, - toProto(message: ClientConsensusStates): Uint8Array { - return ClientConsensusStates.encode(message).finish(); - }, - toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - value: ClientConsensusStates.encode(message).finish() - }; - } -}; -function createBaseClientUpdateProposal(): ClientUpdateProposal { - return { - $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - title: "", - description: "", - subjectClientId: "", - substituteClientId: "" - }; -} -export const ClientUpdateProposal = { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - encode(message: ClientUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.subjectClientId !== "") { - writer.uint32(26).string(message.subjectClientId); - } - if (message.substituteClientId !== "") { - writer.uint32(34).string(message.substituteClientId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientUpdateProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.subjectClientId = reader.string(); - break; - case 4: - message.substituteClientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClientUpdateProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - subjectClientId: isSet(object.subjectClientId) ? String(object.subjectClientId) : "", - substituteClientId: isSet(object.substituteClientId) ? String(object.substituteClientId) : "" - }; - }, - toJSON(message: ClientUpdateProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.subjectClientId !== undefined && (obj.subjectClientId = message.subjectClientId); - message.substituteClientId !== undefined && (obj.substituteClientId = message.substituteClientId); - return obj; - }, - fromPartial(object: Partial): ClientUpdateProposal { - const message = createBaseClientUpdateProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.subjectClientId = object.subjectClientId ?? ""; - message.substituteClientId = object.substituteClientId ?? ""; - return message; - }, - fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal { - const message = createBaseClientUpdateProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.subject_client_id !== undefined && object.subject_client_id !== null) { - message.subjectClientId = object.subject_client_id; - } - if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { - message.substituteClientId = object.substitute_client_id; - } - return message; - }, - toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; - obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; - return obj; - }, - fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal { - return ClientUpdateProposal.fromAmino(object.value); - }, - toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg { - return { - type: "cosmos-sdk/ClientUpdateProposal", - value: ClientUpdateProposal.toAmino(message) - }; - }, - fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal { - return ClientUpdateProposal.decode(message.value); - }, - toProto(message: ClientUpdateProposal): Uint8Array { - return ClientUpdateProposal.encode(message).finish(); - }, - toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - value: ClientUpdateProposal.encode(message).finish() - }; - } -}; -function createBaseUpgradeProposal(): UpgradeProposal { - return { - $typeUrl: "/ibc.core.client.v1.UpgradeProposal", - title: "", - description: "", - plan: Plan.fromPartial({}), - upgradedClientState: undefined - }; -} -export const UpgradeProposal = { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - encode(message: UpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = Plan.decode(reader, reader.uint32()); - break; - case 4: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): UpgradeProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined, - upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined - }; - }, - toJSON(message: UpgradeProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined); - message.upgradedClientState !== undefined && (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined); - return obj; - }, - fromPartial(object: Partial): UpgradeProposal { - const message = createBaseUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object: UpgradeProposalAmino): UpgradeProposal { - const message = createBaseUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message: UpgradeProposal): UpgradeProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal { - return UpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg { - return { - type: "cosmos-sdk/UpgradeProposal", - value: UpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal { - return UpgradeProposal.decode(message.value); - }, - toProto(message: UpgradeProposal): Uint8Array { - return UpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - value: UpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseHeight(): Height { - return { - revisionNumber: BigInt(0), - revisionHeight: BigInt(0) - }; -} -export const Height = { - typeUrl: "/ibc.core.client.v1.Height", - encode(message: Height, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(8).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Height { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.revisionNumber = reader.uint64(); - break; - case 2: - message.revisionHeight = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Height { - return { - revisionNumber: isSet(object.revisionNumber) ? BigInt(object.revisionNumber.toString()) : BigInt(0), - revisionHeight: isSet(object.revisionHeight) ? BigInt(object.revisionHeight.toString()) : BigInt(0) - }; - }, - toJSON(message: Height): unknown { - const obj: any = {}; - message.revisionNumber !== undefined && (obj.revisionNumber = (message.revisionNumber || BigInt(0)).toString()); - message.revisionHeight !== undefined && (obj.revisionHeight = (message.revisionHeight || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Height { - const message = createBaseHeight(); - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object: HeightAmino): Height { - return { - revisionNumber: BigInt(object.revision_number || "0"), - revisionHeight: BigInt(object.revision_height || "0") - }; - }, - toAmino(message: Height): HeightAmino { - const obj: any = {}; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object: HeightAminoMsg): Height { - return Height.fromAmino(object.value); - }, - toAminoMsg(message: Height): HeightAminoMsg { - return { - type: "cosmos-sdk/Height", - value: Height.toAmino(message) - }; - }, - fromProtoMsg(message: HeightProtoMsg): Height { - return Height.decode(message.value); - }, - toProto(message: Height): Uint8Array { - return Height.encode(message).finish(); - }, - toProtoMsg(message: Height): HeightProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.Height", - value: Height.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - allowedClients: [] - }; -} -export const Params = { - typeUrl: "/ibc.core.client.v1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowedClients) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedClients.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - allowedClients: Array.isArray(object?.allowedClients) ? object.allowedClients.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - if (message.allowedClients) { - obj.allowedClients = message.allowedClients.map(e => e); - } else { - obj.allowedClients = []; - } - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.allowedClients = object.allowedClients?.map(e => e) || []; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - message.allowedClients = object.allowed_clients?.map(e => e) || []; - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - if (message.allowedClients) { - obj.allowed_clients = message.allowedClients.map(e => e); - } else { - obj.allowed_clients = message.allowedClients; - } - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - toAminoMsg(message: Params): ParamsAminoMsg { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.Params", - value: Params.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/genesis.ts b/packages/api/src/codegen/ibc/core/client/v1/genesis.ts deleted file mode 100644 index 2367e918..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/genesis.ts +++ /dev/null @@ -1,475 +0,0 @@ -import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisState { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientState[]; - /** consensus states from each client */ - clientsConsensus: ClientConsensusStates[]; - /** metadata from each client */ - clientsMetadata: IdentifiedGenesisMetadata[]; - params: Params; - /** create localhost on initialization */ - createLocalhost: boolean; - /** the sequence for the next generated client identifier */ - nextClientSequence: bigint; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateAmino { - /** client states with their corresponding identifiers */ - clients?: IdentifiedClientStateAmino[]; - /** consensus states from each client */ - clients_consensus?: ClientConsensusStatesAmino[]; - /** metadata from each client */ - clients_metadata?: IdentifiedGenesisMetadataAmino[]; - params?: ParamsAmino; - /** create localhost on initialization */ - create_localhost?: boolean; - /** the sequence for the next generated client identifier */ - next_client_sequence?: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateSDKType { - clients: IdentifiedClientStateSDKType[]; - clients_consensus: ClientConsensusStatesSDKType[]; - clients_metadata: IdentifiedGenesisMetadataSDKType[]; - params: ParamsSDKType; - create_localhost: boolean; - next_client_sequence: bigint; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadata { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisMetadata"; - value: Uint8Array; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataAmino { - /** store key of metadata without clientID-prefix */ - key?: string; - /** metadata value */ - value?: string; -} -export interface GenesisMetadataAminoMsg { - type: "cosmos-sdk/GenesisMetadata"; - value: GenesisMetadataAmino; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadata { - clientId: string; - clientMetadata: GenesisMetadata[]; -} -export interface IdentifiedGenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataAmino { - client_id?: string; - client_metadata?: GenesisMetadataAmino[]; -} -export interface IdentifiedGenesisMetadataAminoMsg { - type: "cosmos-sdk/IdentifiedGenesisMetadata"; - value: IdentifiedGenesisMetadataAmino; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataSDKType { - client_id: string; - client_metadata: GenesisMetadataSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - clients: [], - clientsConsensus: [], - clientsMetadata: [], - params: Params.fromPartial({}), - createLocalhost: false, - nextClientSequence: BigInt(0) - }; -} -export const GenesisState = { - typeUrl: "/ibc.core.client.v1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.clients) { - IdentifiedClientState.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.clientsConsensus) { - ClientConsensusStates.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.clientsMetadata) { - IdentifiedGenesisMetadata.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(34).fork()).ldelim(); - } - if (message.createLocalhost === true) { - writer.uint32(40).bool(message.createLocalhost); - } - if (message.nextClientSequence !== BigInt(0)) { - writer.uint32(48).uint64(message.nextClientSequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clients.push(IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.clientsConsensus.push(ClientConsensusStates.decode(reader, reader.uint32())); - break; - case 3: - message.clientsMetadata.push(IdentifiedGenesisMetadata.decode(reader, reader.uint32())); - break; - case 4: - message.params = Params.decode(reader, reader.uint32()); - break; - case 5: - message.createLocalhost = reader.bool(); - break; - case 6: - message.nextClientSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - clients: Array.isArray(object?.clients) ? object.clients.map((e: any) => IdentifiedClientState.fromJSON(e)) : [], - clientsConsensus: Array.isArray(object?.clientsConsensus) ? object.clientsConsensus.map((e: any) => ClientConsensusStates.fromJSON(e)) : [], - clientsMetadata: Array.isArray(object?.clientsMetadata) ? object.clientsMetadata.map((e: any) => IdentifiedGenesisMetadata.fromJSON(e)) : [], - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - createLocalhost: isSet(object.createLocalhost) ? Boolean(object.createLocalhost) : false, - nextClientSequence: isSet(object.nextClientSequence) ? BigInt(object.nextClientSequence.toString()) : BigInt(0) - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - if (message.clients) { - obj.clients = message.clients.map(e => e ? IdentifiedClientState.toJSON(e) : undefined); - } else { - obj.clients = []; - } - if (message.clientsConsensus) { - obj.clientsConsensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toJSON(e) : undefined); - } else { - obj.clientsConsensus = []; - } - if (message.clientsMetadata) { - obj.clientsMetadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toJSON(e) : undefined); - } else { - obj.clientsMetadata = []; - } - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - message.createLocalhost !== undefined && (obj.createLocalhost = message.createLocalhost); - message.nextClientSequence !== undefined && (obj.nextClientSequence = (message.nextClientSequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => IdentifiedClientState.fromPartial(e)) || []; - message.clientsConsensus = object.clientsConsensus?.map(e => ClientConsensusStates.fromPartial(e)) || []; - message.clientsMetadata = object.clientsMetadata?.map(e => IdentifiedGenesisMetadata.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.createLocalhost = object.createLocalhost ?? false; - message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => IdentifiedClientState.fromAmino(e)) || []; - message.clientsConsensus = object.clients_consensus?.map(e => ClientConsensusStates.fromAmino(e)) || []; - message.clientsMetadata = object.clients_metadata?.map(e => IdentifiedGenesisMetadata.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.create_localhost !== undefined && object.create_localhost !== null) { - message.createLocalhost = object.create_localhost; - } - if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { - message.nextClientSequence = BigInt(object.next_client_sequence); - } - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - if (message.clients) { - obj.clients = message.clients.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); - } else { - obj.clients = message.clients; - } - if (message.clientsConsensus) { - obj.clients_consensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toAmino(e) : undefined); - } else { - obj.clients_consensus = message.clientsConsensus; - } - if (message.clientsMetadata) { - obj.clients_metadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toAmino(e) : undefined); - } else { - obj.clients_metadata = message.clientsMetadata; - } - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; - obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message: GenesisState): GenesisStateAminoMsg { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseGenesisMetadata(): GenesisMetadata { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const GenesisMetadata = { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - encode(message: GenesisMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisMetadata { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array() - }; - }, - toJSON(message: GenesisMetadata): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): GenesisMetadata { - const message = createBaseGenesisMetadata(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object: GenesisMetadataAmino): GenesisMetadata { - const message = createBaseGenesisMetadata(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - return message; - }, - toAmino(message: GenesisMetadata): GenesisMetadataAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - return obj; - }, - fromAminoMsg(object: GenesisMetadataAminoMsg): GenesisMetadata { - return GenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message: GenesisMetadata): GenesisMetadataAminoMsg { - return { - type: "cosmos-sdk/GenesisMetadata", - value: GenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: GenesisMetadataProtoMsg): GenesisMetadata { - return GenesisMetadata.decode(message.value); - }, - toProto(message: GenesisMetadata): Uint8Array { - return GenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - value: GenesisMetadata.encode(message).finish() - }; - } -}; -function createBaseIdentifiedGenesisMetadata(): IdentifiedGenesisMetadata { - return { - clientId: "", - clientMetadata: [] - }; -} -export const IdentifiedGenesisMetadata = { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - encode(message: IdentifiedGenesisMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.clientMetadata) { - GenesisMetadata.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMetadata.push(GenesisMetadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): IdentifiedGenesisMetadata { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - clientMetadata: Array.isArray(object?.clientMetadata) ? object.clientMetadata.map((e: any) => GenesisMetadata.fromJSON(e)) : [] - }; - }, - toJSON(message: IdentifiedGenesisMetadata): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - if (message.clientMetadata) { - obj.clientMetadata = message.clientMetadata.map(e => e ? GenesisMetadata.toJSON(e) : undefined); - } else { - obj.clientMetadata = []; - } - return obj; - }, - fromPartial(object: Partial): IdentifiedGenesisMetadata { - const message = createBaseIdentifiedGenesisMetadata(); - message.clientId = object.clientId ?? ""; - message.clientMetadata = object.clientMetadata?.map(e => GenesisMetadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object: IdentifiedGenesisMetadataAmino): IdentifiedGenesisMetadata { - const message = createBaseIdentifiedGenesisMetadata(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.clientMetadata = object.client_metadata?.map(e => GenesisMetadata.fromAmino(e)) || []; - return message; - }, - toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.clientMetadata) { - obj.client_metadata = message.clientMetadata.map(e => e ? GenesisMetadata.toAmino(e) : undefined); - } else { - obj.client_metadata = message.clientMetadata; - } - return obj; - }, - fromAminoMsg(object: IdentifiedGenesisMetadataAminoMsg): IdentifiedGenesisMetadata { - return IdentifiedGenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAminoMsg { - return { - type: "cosmos-sdk/IdentifiedGenesisMetadata", - value: IdentifiedGenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: IdentifiedGenesisMetadataProtoMsg): IdentifiedGenesisMetadata { - return IdentifiedGenesisMetadata.decode(message.value); - }, - toProto(message: IdentifiedGenesisMetadata): Uint8Array { - return IdentifiedGenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - value: IdentifiedGenesisMetadata.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/query.lcd.ts b/packages/api/src/codegen/ibc/core/client/v1/query.lcd.ts deleted file mode 100644 index bdd5fd85..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/query.lcd.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - /* ClientState queries an IBC light client. */ - async clientState(params: QueryClientStateRequest): Promise { - const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientStates queries all the IBC light clients of a chain. */ - async clientStates(params: QueryClientStatesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/client_states`; - return await this.req.get(endpoint, options); - } - /* ConsensusState queries a consensus state associated with a client state at - a given height. */ - async consensusState(params: QueryConsensusStateRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.latestHeight !== "undefined") { - options.params.latest_height = params.latestHeight; - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStates queries all the consensus state associated with a given - client. */ - async consensusStates(params: QueryConsensusStatesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - async consensusStateHeights(params: QueryConsensusStateHeightsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; - return await this.req.get(endpoint, options); - } - /* Status queries the status of an IBC client. */ - async clientStatus(params: QueryClientStatusRequest): Promise { - const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientParams queries all parameters of the ibc client. */ - async clientParams(_params: QueryClientParamsRequest = {}): Promise { - const endpoint = `ibc/client/v1/params`; - return await this.req.get(endpoint); - } - /* UpgradedClientState queries an Upgraded IBC light client. */ - async upgradedClientState(_params: QueryUpgradedClientStateRequest = {}): Promise { - const endpoint = `ibc/core/client/v1/upgraded_client_states`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ - async upgradedConsensusState(_params: QueryUpgradedConsensusStateRequest = {}): Promise { - const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/query.rpc.Query.ts b/packages/api/src/codegen/ibc/core/client/v1/query.rpc.Query.ts deleted file mode 100644 index b859352b..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/query.rpc.Query.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; -/** Query provides defines the gRPC querier service */ -export interface Query { - /** ClientState queries an IBC light client. */ - clientState(request: QueryClientStateRequest): Promise; - /** ClientStates queries all the IBC light clients of a chain. */ - clientStates(request?: QueryClientStatesRequest): Promise; - /** - * ConsensusState queries a consensus state associated with a client state at - * a given height. - */ - consensusState(request: QueryConsensusStateRequest): Promise; - /** - * ConsensusStates queries all the consensus state associated with a given - * client. - */ - consensusStates(request: QueryConsensusStatesRequest): Promise; - /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - /** Status queries the status of an IBC client. */ - clientStatus(request: QueryClientStatusRequest): Promise; - /** ClientParams queries all parameters of the ibc client. */ - clientParams(request?: QueryClientParamsRequest): Promise; - /** UpgradedClientState queries an Upgraded IBC light client. */ - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - clientState(request: QueryClientStateRequest): Promise { - const data = QueryClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); - return promise.then(data => QueryClientStateResponse.decode(new BinaryReader(data))); - } - clientStates(request: QueryClientStatesRequest = { - pagination: undefined - }): Promise { - const data = QueryClientStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); - return promise.then(data => QueryClientStatesResponse.decode(new BinaryReader(data))); - } - consensusState(request: QueryConsensusStateRequest): Promise { - const data = QueryConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); - return promise.then(data => QueryConsensusStateResponse.decode(new BinaryReader(data))); - } - consensusStates(request: QueryConsensusStatesRequest): Promise { - const data = QueryConsensusStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); - return promise.then(data => QueryConsensusStatesResponse.decode(new BinaryReader(data))); - } - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise { - const data = QueryConsensusStateHeightsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); - return promise.then(data => QueryConsensusStateHeightsResponse.decode(new BinaryReader(data))); - } - clientStatus(request: QueryClientStatusRequest): Promise { - const data = QueryClientStatusRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); - return promise.then(data => QueryClientStatusResponse.decode(new BinaryReader(data))); - } - clientParams(request: QueryClientParamsRequest = {}): Promise { - const data = QueryClientParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); - return promise.then(data => QueryClientParamsResponse.decode(new BinaryReader(data))); - } - upgradedClientState(request: QueryUpgradedClientStateRequest = {}): Promise { - const data = QueryUpgradedClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); - return promise.then(data => QueryUpgradedClientStateResponse.decode(new BinaryReader(data))); - } - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest = {}): Promise { - const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); - return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - clientState(request: QueryClientStateRequest): Promise { - return queryService.clientState(request); - }, - clientStates(request?: QueryClientStatesRequest): Promise { - return queryService.clientStates(request); - }, - consensusState(request: QueryConsensusStateRequest): Promise { - return queryService.consensusState(request); - }, - consensusStates(request: QueryConsensusStatesRequest): Promise { - return queryService.consensusStates(request); - }, - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise { - return queryService.consensusStateHeights(request); - }, - clientStatus(request: QueryClientStatusRequest): Promise { - return queryService.clientStatus(request); - }, - clientParams(request?: QueryClientParamsRequest): Promise { - return queryService.clientParams(request); - }, - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise { - return queryService.upgradedClientState(request); - }, - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise { - return queryService.upgradedConsensusState(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/query.ts b/packages/api/src/codegen/ibc/core/client/v1/query.ts deleted file mode 100644 index ae857498..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/query.ts +++ /dev/null @@ -1,2169 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequest { - /** client state unique identifier */ - clientId: string; -} -export interface QueryClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; - value: Uint8Array; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestAmino { - /** client state unique identifier */ - client_id?: string; -} -export interface QueryClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryClientStateRequest"; - value: QueryClientStateRequestAmino; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestSDKType { - client_id: string; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponse { - /** client state associated with the request identifier */ - clientState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; - value: Uint8Array; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseAmino { - /** client state associated with the request identifier */ - client_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryClientStateResponse"; - value: QueryClientStateResponseAmino; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseSDKType { - client_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequest { - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryClientStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; - value: Uint8Array; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestAmino { - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryClientStatesRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatesRequest"; - value: QueryClientStatesRequestAmino; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponse { - /** list of stored ClientStates of the chain. */ - clientStates: IdentifiedClientState[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryClientStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; - value: Uint8Array; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseAmino { - /** list of stored ClientStates of the chain. */ - client_states?: IdentifiedClientStateAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryClientStatesResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatesResponse"; - value: QueryClientStatesResponseAmino; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseSDKType { - client_states: IdentifiedClientStateSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequest { - /** client identifier */ - clientId: string; - /** consensus state revision number */ - revisionNumber: bigint; - /** consensus state revision height */ - revisionHeight: bigint; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latestHeight: boolean; -} -export interface QueryConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestAmino { - /** client identifier */ - client_id?: string; - /** consensus state revision number */ - revision_number?: string; - /** consensus state revision height */ - revision_height?: string; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latest_height?: boolean; -} -export interface QueryConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateRequest"; - value: QueryConsensusStateRequestAmino; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestSDKType { - client_id: string; - revision_number: bigint; - revision_height: bigint; - latest_height: boolean; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponse { - /** consensus state associated with the client identifier at the given height */ - consensusState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseAmino { - /** consensus state associated with the client identifier at the given height */ - consensus_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateResponse"; - value: QueryConsensusStateResponseAmino; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseSDKType { - consensus_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStatesRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesRequest"; - value: QueryConsensusStatesRequestAmino; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponse { - /** consensus states associated with the identifier */ - consensusStates: ConsensusStateWithHeight[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseAmino { - /** consensus states associated with the identifier */ - consensus_states?: ConsensusStateWithHeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStatesResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesResponse"; - value: QueryConsensusStatesResponseAmino; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseSDKType { - consensus_states: ConsensusStateWithHeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStateHeightsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStateHeightsRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest"; - value: QueryConsensusStateHeightsRequestAmino; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponse { - /** consensus state heights */ - consensusStateHeights: Height[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStateHeightsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseAmino { - /** consensus state heights */ - consensus_state_heights?: HeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStateHeightsResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse"; - value: QueryConsensusStateHeightsResponseAmino; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseSDKType { - consensus_state_heights: HeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequest { - /** client unique identifier */ - clientId: string; -} -export interface QueryClientStatusRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; - value: Uint8Array; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestAmino { - /** client unique identifier */ - client_id?: string; -} -export interface QueryClientStatusRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatusRequest"; - value: QueryClientStatusRequestAmino; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestSDKType { - client_id: string; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponse { - status: string; -} -export interface QueryClientStatusResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; - value: Uint8Array; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseAmino { - status?: string; -} -export interface QueryClientStatusResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatusResponse"; - value: QueryClientStatusResponseAmino; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseSDKType { - status: string; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequest {} -export interface QueryClientParamsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; - value: Uint8Array; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestAmino {} -export interface QueryClientParamsRequestAminoMsg { - type: "cosmos-sdk/QueryClientParamsRequest"; - value: QueryClientParamsRequestAmino; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestSDKType {} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryClientParamsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; - value: Uint8Array; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryClientParamsResponseAminoMsg { - type: "cosmos-sdk/QueryClientParamsResponse"; - value: QueryClientParamsResponseAmino; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequest {} -export interface QueryUpgradedClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestAmino {} -export interface QueryUpgradedClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateRequest"; - value: QueryUpgradedClientStateRequestAmino; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestSDKType {} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponse { - /** client state associated with the request identifier */ - upgradedClientState?: Any; -} -export interface QueryUpgradedClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseAmino { - /** client state associated with the request identifier */ - upgraded_client_state?: AnyAmino; -} -export interface QueryUpgradedClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateResponse"; - value: QueryUpgradedClientStateResponseAmino; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseSDKType { - upgraded_client_state?: AnySDKType; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequest {} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestAmino {} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestSDKType {} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponse { - /** Consensus state associated with the request identifier */ - upgradedConsensusState?: Any; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Consensus state associated with the request identifier */ - upgraded_consensus_state?: AnyAmino; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state?: AnySDKType; -} -function createBaseQueryClientStateRequest(): QueryClientStateRequest { - return { - clientId: "" - }; -} -export const QueryClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - encode(message: QueryClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStateRequest { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "" - }; - }, - toJSON(message: QueryClientStateRequest): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - return obj; - }, - fromPartial(object: Partial): QueryClientStateRequest { - const message = createBaseQueryClientStateRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest { - const message = createBaseQueryClientStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest { - return QueryClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClientStateRequest", - value: QueryClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest { - return QueryClientStateRequest.decode(message.value); - }, - toProto(message: QueryClientStateRequest): Uint8Array { - return QueryClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - value: QueryClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStateResponse(): QueryClientStateResponse { - return { - clientState: undefined, - proof: new Uint8Array(), - proofHeight: Height.fromPartial({}) - }; -} -export const QueryClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - encode(message: QueryClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStateResponse { - return { - clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined, - proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(), - proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined - }; - }, - toJSON(message: QueryClientStateResponse): unknown { - const obj: any = {}; - message.clientState !== undefined && (obj.clientState = message.clientState ? Any.toJSON(message.clientState) : undefined); - message.proof !== undefined && (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array())); - message.proofHeight !== undefined && (obj.proofHeight = message.proofHeight ? Height.toJSON(message.proofHeight) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClientStateResponse { - const message = createBaseQueryClientStateResponse(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse { - const message = createBaseQueryClientStateResponse(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = bytesFromBase64(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino { - const obj: any = {}; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; - obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse { - return QueryClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClientStateResponse", - value: QueryClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse { - return QueryClientStateResponse.decode(message.value); - }, - toProto(message: QueryClientStateResponse): Uint8Array { - return QueryClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - value: QueryClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesRequest(): QueryClientStatesRequest { - return { - pagination: undefined - }; -} -export const QueryClientStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - encode(message: QueryClientStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStatesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClientStatesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClientStatesRequest { - const message = createBaseQueryClientStatesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest { - const message = createBaseQueryClientStatesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest { - return QueryClientStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClientStatesRequest", - value: QueryClientStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest { - return QueryClientStatesRequest.decode(message.value); - }, - toProto(message: QueryClientStatesRequest): Uint8Array { - return QueryClientStatesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - value: QueryClientStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesResponse(): QueryClientStatesResponse { - return { - clientStates: [], - pagination: undefined - }; -} -export const QueryClientStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - encode(message: QueryClientStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.clientStates) { - IdentifiedClientState.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStatesResponse { - return { - clientStates: Array.isArray(object?.clientStates) ? object.clientStates.map((e: any) => IdentifiedClientState.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClientStatesResponse): unknown { - const obj: any = {}; - if (message.clientStates) { - obj.clientStates = message.clientStates.map(e => e ? IdentifiedClientState.toJSON(e) : undefined); - } else { - obj.clientStates = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClientStatesResponse { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.clientStates?.map(e => IdentifiedClientState.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.client_states?.map(e => IdentifiedClientState.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino { - const obj: any = {}; - if (message.clientStates) { - obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); - } else { - obj.client_states = message.clientStates; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse { - return QueryClientStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClientStatesResponse", - value: QueryClientStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse { - return QueryClientStatesResponse.decode(message.value); - }, - toProto(message: QueryClientStatesResponse): Uint8Array { - return QueryClientStatesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - value: QueryClientStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateRequest(): QueryConsensusStateRequest { - return { - clientId: "", - revisionNumber: BigInt(0), - revisionHeight: BigInt(0), - latestHeight: false - }; -} -export const QueryConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - encode(message: QueryConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.revisionHeight); - } - if (message.latestHeight === true) { - writer.uint32(32).bool(message.latestHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.revisionNumber = reader.uint64(); - break; - case 3: - message.revisionHeight = reader.uint64(); - break; - case 4: - message.latestHeight = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStateRequest { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - revisionNumber: isSet(object.revisionNumber) ? BigInt(object.revisionNumber.toString()) : BigInt(0), - revisionHeight: isSet(object.revisionHeight) ? BigInt(object.revisionHeight.toString()) : BigInt(0), - latestHeight: isSet(object.latestHeight) ? Boolean(object.latestHeight) : false - }; - }, - toJSON(message: QueryConsensusStateRequest): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.revisionNumber !== undefined && (obj.revisionNumber = (message.revisionNumber || BigInt(0)).toString()); - message.revisionHeight !== undefined && (obj.revisionHeight = (message.revisionHeight || BigInt(0)).toString()); - message.latestHeight !== undefined && (obj.latestHeight = message.latestHeight); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStateRequest { - const message = createBaseQueryConsensusStateRequest(); - message.clientId = object.clientId ?? ""; - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - message.latestHeight = object.latestHeight ?? false; - return message; - }, - fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest { - const message = createBaseQueryConsensusStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.revision_number !== undefined && object.revision_number !== null) { - message.revisionNumber = BigInt(object.revision_number); - } - if (object.revision_height !== undefined && object.revision_height !== null) { - message.revisionHeight = BigInt(object.revision_height); - } - if (object.latest_height !== undefined && object.latest_height !== null) { - message.latestHeight = object.latest_height; - } - return message; - }, - toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; - return obj; - }, - fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest { - return QueryConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStateRequest", - value: QueryConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest { - return QueryConsensusStateRequest.decode(message.value); - }, - toProto(message: QueryConsensusStateRequest): Uint8Array { - return QueryConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - value: QueryConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateResponse(): QueryConsensusStateResponse { - return { - consensusState: undefined, - proof: new Uint8Array(), - proofHeight: Height.fromPartial({}) - }; -} -export const QueryConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - encode(message: QueryConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStateResponse { - return { - consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined, - proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(), - proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined - }; - }, - toJSON(message: QueryConsensusStateResponse): unknown { - const obj: any = {}; - message.consensusState !== undefined && (obj.consensusState = message.consensusState ? Any.toJSON(message.consensusState) : undefined); - message.proof !== undefined && (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array())); - message.proofHeight !== undefined && (obj.proofHeight = message.proofHeight ? Height.toJSON(message.proofHeight) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStateResponse { - const message = createBaseQueryConsensusStateResponse(); - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse { - const message = createBaseQueryConsensusStateResponse(); - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = bytesFromBase64(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino { - const obj: any = {}; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; - obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse { - return QueryConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStateResponse", - value: QueryConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse { - return QueryConsensusStateResponse.decode(message.value); - }, - toProto(message: QueryConsensusStateResponse): Uint8Array { - return QueryConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - value: QueryConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesRequest(): QueryConsensusStatesRequest { - return { - clientId: "", - pagination: undefined - }; -} -export const QueryConsensusStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - encode(message: QueryConsensusStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStatesRequest { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryConsensusStatesRequest): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStatesRequest { - const message = createBaseQueryConsensusStatesRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest { - const message = createBaseQueryConsensusStatesRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest { - return QueryConsensusStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStatesRequest", - value: QueryConsensusStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest { - return QueryConsensusStatesRequest.decode(message.value); - }, - toProto(message: QueryConsensusStatesRequest): Uint8Array { - return QueryConsensusStatesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - value: QueryConsensusStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesResponse(): QueryConsensusStatesResponse { - return { - consensusStates: [], - pagination: undefined - }; -} -export const QueryConsensusStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - encode(message: QueryConsensusStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.consensusStates) { - ConsensusStateWithHeight.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStatesResponse { - return { - consensusStates: Array.isArray(object?.consensusStates) ? object.consensusStates.map((e: any) => ConsensusStateWithHeight.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryConsensusStatesResponse): unknown { - const obj: any = {}; - if (message.consensusStates) { - obj.consensusStates = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toJSON(e) : undefined); - } else { - obj.consensusStates = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStatesResponse { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino { - const obj: any = {}; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); - } else { - obj.consensus_states = message.consensusStates; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse { - return QueryConsensusStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStatesResponse", - value: QueryConsensusStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse { - return QueryConsensusStatesResponse.decode(message.value); - }, - toProto(message: QueryConsensusStatesResponse): Uint8Array { - return QueryConsensusStatesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - value: QueryConsensusStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsRequest(): QueryConsensusStateHeightsRequest { - return { - clientId: "", - pagination: undefined - }; -} -export const QueryConsensusStateHeightsRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - encode(message: QueryConsensusStateHeightsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStateHeightsRequest { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryConsensusStateHeightsRequest): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStateHeightsRequest { - const message = createBaseQueryConsensusStateHeightsRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest { - const message = createBaseQueryConsensusStateHeightsRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest { - return QueryConsensusStateHeightsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest", - value: QueryConsensusStateHeightsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest { - return QueryConsensusStateHeightsRequest.decode(message.value); - }, - toProto(message: QueryConsensusStateHeightsRequest): Uint8Array { - return QueryConsensusStateHeightsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - value: QueryConsensusStateHeightsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsResponse(): QueryConsensusStateHeightsResponse { - return { - consensusStateHeights: [], - pagination: undefined - }; -} -export const QueryConsensusStateHeightsResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - encode(message: QueryConsensusStateHeightsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.consensusStateHeights) { - Height.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStateHeights.push(Height.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryConsensusStateHeightsResponse { - return { - consensusStateHeights: Array.isArray(object?.consensusStateHeights) ? object.consensusStateHeights.map((e: any) => Height.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryConsensusStateHeightsResponse): unknown { - const obj: any = {}; - if (message.consensusStateHeights) { - obj.consensusStateHeights = message.consensusStateHeights.map(e => e ? Height.toJSON(e) : undefined); - } else { - obj.consensusStateHeights = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryConsensusStateHeightsResponse { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensusStateHeights?.map(e => Height.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensus_state_heights?.map(e => Height.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino { - const obj: any = {}; - if (message.consensusStateHeights) { - obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? Height.toAmino(e) : undefined); - } else { - obj.consensus_state_heights = message.consensusStateHeights; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse { - return QueryConsensusStateHeightsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse", - value: QueryConsensusStateHeightsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse { - return QueryConsensusStateHeightsResponse.decode(message.value); - }, - toProto(message: QueryConsensusStateHeightsResponse): Uint8Array { - return QueryConsensusStateHeightsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - value: QueryConsensusStateHeightsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusRequest(): QueryClientStatusRequest { - return { - clientId: "" - }; -} -export const QueryClientStatusRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - encode(message: QueryClientStatusRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStatusRequest { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "" - }; - }, - toJSON(message: QueryClientStatusRequest): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - return obj; - }, - fromPartial(object: Partial): QueryClientStatusRequest { - const message = createBaseQueryClientStatusRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest { - const message = createBaseQueryClientStatusRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest { - return QueryClientStatusRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClientStatusRequest", - value: QueryClientStatusRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest { - return QueryClientStatusRequest.decode(message.value); - }, - toProto(message: QueryClientStatusRequest): Uint8Array { - return QueryClientStatusRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - value: QueryClientStatusRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusResponse(): QueryClientStatusResponse { - return { - status: "" - }; -} -export const QueryClientStatusResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - encode(message: QueryClientStatusResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientStatusResponse { - return { - status: isSet(object.status) ? String(object.status) : "" - }; - }, - toJSON(message: QueryClientStatusResponse): unknown { - const obj: any = {}; - message.status !== undefined && (obj.status = message.status); - return obj; - }, - fromPartial(object: Partial): QueryClientStatusResponse { - const message = createBaseQueryClientStatusResponse(); - message.status = object.status ?? ""; - return message; - }, - fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse { - const message = createBaseQueryClientStatusResponse(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino { - const obj: any = {}; - obj.status = message.status === "" ? undefined : message.status; - return obj; - }, - fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse { - return QueryClientStatusResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClientStatusResponse", - value: QueryClientStatusResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse { - return QueryClientStatusResponse.decode(message.value); - }, - toProto(message: QueryClientStatusResponse): Uint8Array { - return QueryClientStatusResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - value: QueryClientStatusResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsRequest(): QueryClientParamsRequest { - return {}; -} -export const QueryClientParamsRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - encode(_: QueryClientParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryClientParamsRequest { - return {}; - }, - toJSON(_: QueryClientParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryClientParamsRequest { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest { - return QueryClientParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg { - return { - type: "cosmos-sdk/QueryClientParamsRequest", - value: QueryClientParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest { - return QueryClientParamsRequest.decode(message.value); - }, - toProto(message: QueryClientParamsRequest): Uint8Array { - return QueryClientParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - value: QueryClientParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsResponse(): QueryClientParamsResponse { - return { - params: undefined - }; -} -export const QueryClientParamsResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - encode(message: QueryClientParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClientParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryClientParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClientParamsResponse { - const message = createBaseQueryClientParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse { - const message = createBaseQueryClientParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse { - return QueryClientParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg { - return { - type: "cosmos-sdk/QueryClientParamsResponse", - value: QueryClientParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse { - return QueryClientParamsResponse.decode(message.value); - }, - toProto(message: QueryClientParamsResponse): Uint8Array { - return QueryClientParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - value: QueryClientParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateRequest(): QueryUpgradedClientStateRequest { - return {}; -} -export const QueryUpgradedClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - encode(_: QueryUpgradedClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryUpgradedClientStateRequest { - return {}; - }, - toJSON(_: QueryUpgradedClientStateRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryUpgradedClientStateRequest { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest { - return QueryUpgradedClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedClientStateRequest", - value: QueryUpgradedClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest { - return QueryUpgradedClientStateRequest.decode(message.value); - }, - toProto(message: QueryUpgradedClientStateRequest): Uint8Array { - return QueryUpgradedClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - value: QueryUpgradedClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateResponse(): QueryUpgradedClientStateResponse { - return { - upgradedClientState: undefined - }; -} -export const QueryUpgradedClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - encode(message: QueryUpgradedClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUpgradedClientStateResponse { - return { - upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined - }; - }, - toJSON(message: QueryUpgradedClientStateResponse): unknown { - const obj: any = {}; - message.upgradedClientState !== undefined && (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryUpgradedClientStateResponse { - const message = createBaseQueryUpgradedClientStateResponse(); - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse { - const message = createBaseQueryUpgradedClientStateResponse(); - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino { - const obj: any = {}; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse { - return QueryUpgradedClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedClientStateResponse", - value: QueryUpgradedClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse { - return QueryUpgradedClientStateResponse.decode(message.value); - }, - toProto(message: QueryUpgradedClientStateResponse): Uint8Array { - return QueryUpgradedClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - value: QueryUpgradedClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest { - return {}; -} -export const QueryUpgradedConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - encode(_: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryUpgradedConsensusStateRequest { - return {}; - }, - toJSON(_: QueryUpgradedConsensusStateRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryUpgradedConsensusStateRequest { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest { - return QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest { - return QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array { - return QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse { - return { - upgradedConsensusState: undefined - }; -} -export const QueryUpgradedConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.upgradedConsensusState !== undefined) { - Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedConsensusState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryUpgradedConsensusStateResponse { - return { - upgradedConsensusState: isSet(object.upgradedConsensusState) ? Any.fromJSON(object.upgradedConsensusState) : undefined - }; - }, - toJSON(message: QueryUpgradedConsensusStateResponse): unknown { - const obj: any = {}; - message.upgradedConsensusState !== undefined && (obj.upgradedConsensusState = message.upgradedConsensusState ? Any.toJSON(message.upgradedConsensusState) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? Any.fromPartial(object.upgradedConsensusState) : undefined; - return message; - }, - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = Any.fromAmino(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino { - const obj: any = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? Any.toAmino(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse { - return QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse { - return QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array { - return QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/tx.amino.ts b/packages/api/src/codegen/ibc/core/client/v1/tx.amino.ts deleted file mode 100644 index a3cd3860..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/tx.amino.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export const AminoConverter = { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: "cosmos-sdk/MsgCreateClient", - toAmino: MsgCreateClient.toAmino, - fromAmino: MsgCreateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: "cosmos-sdk/MsgUpdateClient", - toAmino: MsgUpdateClient.toAmino, - fromAmino: MsgUpdateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: "cosmos-sdk/MsgUpgradeClient", - toAmino: MsgUpgradeClient.toAmino, - fromAmino: MsgUpgradeClient.fromAmino - }, - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", - toAmino: MsgSubmitMisbehaviour.toAmino, - fromAmino: MsgSubmitMisbehaviour.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/tx.registry.ts b/packages/api/src/codegen/ibc/core/client/v1/tx.registry.ts deleted file mode 100644 index ade3b5b0..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/tx.registry.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClient(value: MsgCreateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.encode(value).finish() - }; - }, - updateClient(value: MsgUpdateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.encode(value).finish() - }; - }, - upgradeClient(value: MsgUpgradeClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.encode(value).finish() - }; - }, - submitMisbehaviour(value: MsgSubmitMisbehaviour) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClient(value: MsgCreateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value - }; - }, - updateClient(value: MsgUpdateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value - }; - }, - upgradeClient(value: MsgUpgradeClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value - }; - }, - submitMisbehaviour(value: MsgSubmitMisbehaviour) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value - }; - } - }, - toJSON: { - createClient(value: MsgCreateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.toJSON(value) - }; - }, - updateClient(value: MsgUpdateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.toJSON(value) - }; - }, - upgradeClient(value: MsgUpgradeClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.toJSON(value) - }; - }, - submitMisbehaviour(value: MsgSubmitMisbehaviour) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.toJSON(value) - }; - } - }, - fromJSON: { - createClient(value: any) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.fromJSON(value) - }; - }, - updateClient(value: any) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.fromJSON(value) - }; - }, - upgradeClient(value: any) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.fromJSON(value) - }; - }, - submitMisbehaviour(value: any) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.fromJSON(value) - }; - } - }, - fromPartial: { - createClient(value: MsgCreateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.fromPartial(value) - }; - }, - updateClient(value: MsgUpdateClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.fromPartial(value) - }; - }, - upgradeClient(value: MsgUpgradeClient) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.fromPartial(value) - }; - }, - submitMisbehaviour(value: MsgSubmitMisbehaviour) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts b/packages/api/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts deleted file mode 100644 index 29890ac8..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; -/** Msg defines the ibc/client Msg service. */ -export interface Msg { - /** CreateClient defines a rpc handler method for MsgCreateClient. */ - createClient(request: MsgCreateClient): Promise; - /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ - updateClient(request: MsgUpdateClient): Promise; - /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ - upgradeClient(request: MsgUpgradeClient): Promise; - /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createClient = this.createClient.bind(this); - this.updateClient = this.updateClient.bind(this); - this.upgradeClient = this.upgradeClient.bind(this); - this.submitMisbehaviour = this.submitMisbehaviour.bind(this); - } - createClient(request: MsgCreateClient): Promise { - const data = MsgCreateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); - return promise.then(data => MsgCreateClientResponse.decode(new BinaryReader(data))); - } - updateClient(request: MsgUpdateClient): Promise { - const data = MsgUpdateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); - return promise.then(data => MsgUpdateClientResponse.decode(new BinaryReader(data))); - } - upgradeClient(request: MsgUpgradeClient): Promise { - const data = MsgUpgradeClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); - return promise.then(data => MsgUpgradeClientResponse.decode(new BinaryReader(data))); - } - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise { - const data = MsgSubmitMisbehaviour.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); - return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/core/client/v1/tx.ts b/packages/api/src/codegen/ibc/core/client/v1/tx.ts deleted file mode 100644 index f2f3b326..00000000 --- a/packages/api/src/codegen/ibc/core/client/v1/tx.ts +++ /dev/null @@ -1,984 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClient { - /** light client state */ - clientState?: Any; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensusState?: Any; - /** signer address */ - signer: string; -} -export interface MsgCreateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClient"; - value: Uint8Array; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientAmino { - /** light client state */ - client_state?: AnyAmino; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensus_state?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgCreateClientAminoMsg { - type: "cosmos-sdk/MsgCreateClient"; - value: MsgCreateClientAmino; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientSDKType { - client_state?: AnySDKType; - consensus_state?: AnySDKType; - signer: string; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponse {} -export interface MsgCreateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; - value: Uint8Array; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseAmino {} -export interface MsgCreateClientResponseAminoMsg { - type: "cosmos-sdk/MsgCreateClientResponse"; - value: MsgCreateClientResponseAmino; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseSDKType {} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClient { - /** client unique identifier */ - clientId: string; - /** client message to update the light client */ - clientMessage?: Any; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; - value: Uint8Array; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientAmino { - /** client unique identifier */ - client_id?: string; - /** client message to update the light client */ - client_message?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgUpdateClientAminoMsg { - type: "cosmos-sdk/MsgUpdateClient"; - value: MsgUpdateClientAmino; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientSDKType { - client_id: string; - client_message?: AnySDKType; - signer: string; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponse {} -export interface MsgUpdateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; - value: Uint8Array; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseAmino {} -export interface MsgUpdateClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateClientResponse"; - value: MsgUpdateClientResponseAmino; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseSDKType {} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClient { - /** client unique identifier */ - clientId: string; - /** upgraded client state */ - clientState?: Any; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensusState?: Any; - /** proof that old chain committed to new client */ - proofUpgradeClient: Uint8Array; - /** proof that old chain committed to new consensus state */ - proofUpgradeConsensusState: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; - value: Uint8Array; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientAmino { - /** client unique identifier */ - client_id?: string; - /** upgraded client state */ - client_state?: AnyAmino; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensus_state?: AnyAmino; - /** proof that old chain committed to new client */ - proof_upgrade_client?: string; - /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state?: string; - /** signer address */ - signer?: string; -} -export interface MsgUpgradeClientAminoMsg { - type: "cosmos-sdk/MsgUpgradeClient"; - value: MsgUpgradeClientAmino; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientSDKType { - client_id: string; - client_state?: AnySDKType; - consensus_state?: AnySDKType; - proof_upgrade_client: Uint8Array; - proof_upgrade_consensus_state: Uint8Array; - signer: string; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponse {} -export interface MsgUpgradeClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; - value: Uint8Array; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseAmino {} -export interface MsgUpgradeClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpgradeClientResponse"; - value: MsgUpgradeClientResponseAmino; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseSDKType {} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviour { - /** client unique identifier */ - /** @deprecated */ - clientId: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: Any; - /** signer address */ - /** @deprecated */ - signer: string; -} -export interface MsgSubmitMisbehaviourProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourAmino { - /** client unique identifier */ - /** @deprecated */ - client_id?: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: AnyAmino; - /** signer address */ - /** @deprecated */ - signer?: string; -} -export interface MsgSubmitMisbehaviourAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviour"; - value: MsgSubmitMisbehaviourAmino; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourSDKType { - /** @deprecated */ - client_id: string; - /** @deprecated */ - misbehaviour?: AnySDKType; - /** @deprecated */ - signer: string; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponse {} -export interface MsgSubmitMisbehaviourResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseAmino {} -export interface MsgSubmitMisbehaviourResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; - value: MsgSubmitMisbehaviourResponseAmino; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseSDKType {} -function createBaseMsgCreateClient(): MsgCreateClient { - return { - clientState: undefined, - consensusState: undefined, - signer: "" - }; -} -export const MsgCreateClient = { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - encode(message: MsgCreateClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateClient { - return { - clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined, - consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined, - signer: isSet(object.signer) ? String(object.signer) : "" - }; - }, - toJSON(message: MsgCreateClient): unknown { - const obj: any = {}; - message.clientState !== undefined && (obj.clientState = message.clientState ? Any.toJSON(message.clientState) : undefined); - message.consensusState !== undefined && (obj.consensusState = message.consensusState ? Any.toJSON(message.consensusState) : undefined); - message.signer !== undefined && (obj.signer = message.signer); - return obj; - }, - fromPartial(object: Partial): MsgCreateClient { - const message = createBaseMsgCreateClient(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object: MsgCreateClientAmino): MsgCreateClient { - const message = createBaseMsgCreateClient(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message: MsgCreateClient): MsgCreateClientAmino { - const obj: any = {}; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient { - return MsgCreateClient.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateClient): MsgCreateClientAminoMsg { - return { - type: "cosmos-sdk/MsgCreateClient", - value: MsgCreateClient.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateClientProtoMsg): MsgCreateClient { - return MsgCreateClient.decode(message.value); - }, - toProto(message: MsgCreateClient): Uint8Array { - return MsgCreateClient.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClientResponse(): MsgCreateClientResponse { - return {}; -} -export const MsgCreateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - encode(_: MsgCreateClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCreateClientResponse { - return {}; - }, - toJSON(_: MsgCreateClientResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCreateClientResponse { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - fromAmino(_: MsgCreateClientResponseAmino): MsgCreateClientResponse { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - toAmino(_: MsgCreateClientResponse): MsgCreateClientResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCreateClientResponseAminoMsg): MsgCreateClientResponse { - return MsgCreateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseAminoMsg { - return { - type: "cosmos-sdk/MsgCreateClientResponse", - value: MsgCreateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateClientResponseProtoMsg): MsgCreateClientResponse { - return MsgCreateClientResponse.decode(message.value); - }, - toProto(message: MsgCreateClientResponse): Uint8Array { - return MsgCreateClientResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - value: MsgCreateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClient(): MsgUpdateClient { - return { - clientId: "", - clientMessage: undefined, - signer: "" - }; -} -export const MsgUpdateClient = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - encode(message: MsgUpdateClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientMessage !== undefined) { - Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMessage = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClient { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - clientMessage: isSet(object.clientMessage) ? Any.fromJSON(object.clientMessage) : undefined, - signer: isSet(object.signer) ? String(object.signer) : "" - }; - }, - toJSON(message: MsgUpdateClient): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.clientMessage !== undefined && (obj.clientMessage = message.clientMessage ? Any.toJSON(message.clientMessage) : undefined); - message.signer !== undefined && (obj.signer = message.signer); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClient { - const message = createBaseMsgUpdateClient(); - message.clientId = object.clientId ?? ""; - message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? Any.fromPartial(object.clientMessage) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object: MsgUpdateClientAmino): MsgUpdateClient { - const message = createBaseMsgUpdateClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_message !== undefined && object.client_message !== null) { - message.clientMessage = Any.fromAmino(object.client_message); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message: MsgUpdateClient): MsgUpdateClientAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_message = message.clientMessage ? Any.toAmino(message.clientMessage) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient { - return MsgUpdateClient.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClient): MsgUpdateClientAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateClient", - value: MsgUpdateClient.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClientProtoMsg): MsgUpdateClient { - return MsgUpdateClient.decode(message.value); - }, - toProto(message: MsgUpdateClient): Uint8Array { - return MsgUpdateClient.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClientResponse(): MsgUpdateClientResponse { - return {}; -} -export const MsgUpdateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - encode(_: MsgUpdateClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClientResponse { - return {}; - }, - toJSON(_: MsgUpdateClientResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClientResponse { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - fromAmino(_: MsgUpdateClientResponseAmino): MsgUpdateClientResponse { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - toAmino(_: MsgUpdateClientResponse): MsgUpdateClientResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClientResponseAminoMsg): MsgUpdateClientResponse { - return MsgUpdateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpdateClientResponse", - value: MsgUpdateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClientResponseProtoMsg): MsgUpdateClientResponse { - return MsgUpdateClientResponse.decode(message.value); - }, - toProto(message: MsgUpdateClientResponse): Uint8Array { - return MsgUpdateClientResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - value: MsgUpdateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClient(): MsgUpgradeClient { - return { - clientId: "", - clientState: undefined, - consensusState: undefined, - proofUpgradeClient: new Uint8Array(), - proofUpgradeConsensusState: new Uint8Array(), - signer: "" - }; -} -export const MsgUpgradeClient = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - encode(message: MsgUpgradeClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); - } - if (message.proofUpgradeClient.length !== 0) { - writer.uint32(34).bytes(message.proofUpgradeClient); - } - if (message.proofUpgradeConsensusState.length !== 0) { - writer.uint32(42).bytes(message.proofUpgradeConsensusState); - } - if (message.signer !== "") { - writer.uint32(50).string(message.signer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 3: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 4: - message.proofUpgradeClient = reader.bytes(); - break; - case 5: - message.proofUpgradeConsensusState = reader.bytes(); - break; - case 6: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpgradeClient { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined, - consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined, - proofUpgradeClient: isSet(object.proofUpgradeClient) ? bytesFromBase64(object.proofUpgradeClient) : new Uint8Array(), - proofUpgradeConsensusState: isSet(object.proofUpgradeConsensusState) ? bytesFromBase64(object.proofUpgradeConsensusState) : new Uint8Array(), - signer: isSet(object.signer) ? String(object.signer) : "" - }; - }, - toJSON(message: MsgUpgradeClient): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.clientState !== undefined && (obj.clientState = message.clientState ? Any.toJSON(message.clientState) : undefined); - message.consensusState !== undefined && (obj.consensusState = message.consensusState ? Any.toJSON(message.consensusState) : undefined); - message.proofUpgradeClient !== undefined && (obj.proofUpgradeClient = base64FromBytes(message.proofUpgradeClient !== undefined ? message.proofUpgradeClient : new Uint8Array())); - message.proofUpgradeConsensusState !== undefined && (obj.proofUpgradeConsensusState = base64FromBytes(message.proofUpgradeConsensusState !== undefined ? message.proofUpgradeConsensusState : new Uint8Array())); - message.signer !== undefined && (obj.signer = message.signer); - return obj; - }, - fromPartial(object: Partial): MsgUpgradeClient { - const message = createBaseMsgUpgradeClient(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); - message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object: MsgUpgradeClientAmino): MsgUpgradeClient { - const message = createBaseMsgUpgradeClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { - message.proofUpgradeClient = bytesFromBase64(object.proof_upgrade_client); - } - if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { - message.proofUpgradeConsensusState = bytesFromBase64(object.proof_upgrade_consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.proof_upgrade_client = message.proofUpgradeClient ? base64FromBytes(message.proofUpgradeClient) : undefined; - obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? base64FromBytes(message.proofUpgradeConsensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient { - return MsgUpgradeClient.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpgradeClient): MsgUpgradeClientAminoMsg { - return { - type: "cosmos-sdk/MsgUpgradeClient", - value: MsgUpgradeClient.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpgradeClientProtoMsg): MsgUpgradeClient { - return MsgUpgradeClient.decode(message.value); - }, - toProto(message: MsgUpgradeClient): Uint8Array { - return MsgUpgradeClient.encode(message).finish(); - }, - toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClientResponse(): MsgUpgradeClientResponse { - return {}; -} -export const MsgUpgradeClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - encode(_: MsgUpgradeClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpgradeClientResponse { - return {}; - }, - toJSON(_: MsgUpgradeClientResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpgradeClientResponse { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - fromAmino(_: MsgUpgradeClientResponseAmino): MsgUpgradeClientResponse { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - toAmino(_: MsgUpgradeClientResponse): MsgUpgradeClientResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpgradeClientResponseAminoMsg): MsgUpgradeClientResponse { - return MsgUpgradeClientResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseAminoMsg { - return { - type: "cosmos-sdk/MsgUpgradeClientResponse", - value: MsgUpgradeClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpgradeClientResponseProtoMsg): MsgUpgradeClientResponse { - return MsgUpgradeClientResponse.decode(message.value); - }, - toProto(message: MsgUpgradeClientResponse): Uint8Array { - return MsgUpgradeClientResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - value: MsgUpgradeClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviour(): MsgSubmitMisbehaviour { - return { - clientId: "", - misbehaviour: undefined, - signer: "" - }; -} -export const MsgSubmitMisbehaviour = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - encode(message: MsgSubmitMisbehaviour, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.misbehaviour !== undefined) { - Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviour(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.misbehaviour = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitMisbehaviour { - return { - clientId: isSet(object.clientId) ? String(object.clientId) : "", - misbehaviour: isSet(object.misbehaviour) ? Any.fromJSON(object.misbehaviour) : undefined, - signer: isSet(object.signer) ? String(object.signer) : "" - }; - }, - toJSON(message: MsgSubmitMisbehaviour): unknown { - const obj: any = {}; - message.clientId !== undefined && (obj.clientId = message.clientId); - message.misbehaviour !== undefined && (obj.misbehaviour = message.misbehaviour ? Any.toJSON(message.misbehaviour) : undefined); - message.signer !== undefined && (obj.signer = message.signer); - return obj; - }, - fromPartial(object: Partial): MsgSubmitMisbehaviour { - const message = createBaseMsgSubmitMisbehaviour(); - message.clientId = object.clientId ?? ""; - message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? Any.fromPartial(object.misbehaviour) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object: MsgSubmitMisbehaviourAmino): MsgSubmitMisbehaviour { - const message = createBaseMsgSubmitMisbehaviour(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.misbehaviour !== undefined && object.misbehaviour !== null) { - message.misbehaviour = Any.fromAmino(object.misbehaviour); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino { - const obj: any = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.misbehaviour = message.misbehaviour ? Any.toAmino(message.misbehaviour) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour { - return MsgSubmitMisbehaviour.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitMisbehaviourProtoMsg): MsgSubmitMisbehaviour { - return MsgSubmitMisbehaviour.decode(message.value); - }, - toProto(message: MsgSubmitMisbehaviour): Uint8Array { - return MsgSubmitMisbehaviour.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviourResponse(): MsgSubmitMisbehaviourResponse { - return {}; -} -export const MsgSubmitMisbehaviourResponse = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - encode(_: MsgSubmitMisbehaviourResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviourResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSubmitMisbehaviourResponse { - return {}; - }, - toJSON(_: MsgSubmitMisbehaviourResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSubmitMisbehaviourResponse { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - fromAmino(_: MsgSubmitMisbehaviourResponseAmino): MsgSubmitMisbehaviourResponse { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - toAmino(_: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSubmitMisbehaviourResponseAminoMsg): MsgSubmitMisbehaviourResponse { - return MsgSubmitMisbehaviourResponse.fromAmino(object.value); - }, - toAminoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAminoMsg { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", - value: MsgSubmitMisbehaviourResponse.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSubmitMisbehaviourResponseProtoMsg): MsgSubmitMisbehaviourResponse { - return MsgSubmitMisbehaviourResponse.decode(message.value); - }, - toProto(message: MsgSubmitMisbehaviourResponse): Uint8Array { - return MsgSubmitMisbehaviourResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseProtoMsg { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - value: MsgSubmitMisbehaviourResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/lcd.ts b/packages/api/src/codegen/ibc/lcd.ts deleted file mode 100644 index 3afd3f59..00000000 --- a/packages/api/src/codegen/ibc/lcd.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ - restEndpoint -}: { - restEndpoint: string; -}) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tendermint: { - v1beta1: new (await import("../cosmos/base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await import("./applications/transfer/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - core: { - client: { - v1: new (await import("./core/client/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/rpc.query.ts b/packages/api/src/codegen/ibc/rpc.query.ts deleted file mode 100644 index 69f66c56..00000000 --- a/packages/api/src/codegen/ibc/rpc.query.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ - rpcEndpoint -}: { - rpcEndpoint: string | HttpEndpoint; -}) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - app: { - v1alpha1: (await import("../cosmos/app/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) - }, - auth: { - v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - }, - tendermint: { - v1beta1: (await import("../cosmos/base/tendermint/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - evidence: { - v1beta1: (await import("../cosmos/evidence/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - nft: { - v1beta1: (await import("../cosmos/nft/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - slashing: { - v1beta1: (await import("../cosmos/slashing/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - ibc: { - applications: { - transfer: { - v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - core: { - client: { - v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/ibc/rpc.tx.ts b/packages/api/src/codegen/ibc/rpc.tx.ts deleted file mode 100644 index c91f9711..00000000 --- a/packages/api/src/codegen/ibc/rpc.tx.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Rpc } from "../helpers"; -export const createRPCMsgClient = async ({ - rpc -}: { - rpc: Rpc; -}) => ({ - cosmos: { - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - crisis: { - v1beta1: new (await import("../cosmos/crisis/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - core: { - client: { - v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } - } -}); \ No newline at end of file diff --git a/packages/api/src/codegen/index.ts b/packages/api/src/codegen/index.ts deleted file mode 100644 index 9c1ad26a..00000000 --- a/packages/api/src/codegen/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ - -export * from "./amino/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmos/client"; -export * from "./gogoproto/bundle"; -export * from "./google/bundle"; -export * from "./ibc/bundle"; -export * from "./ibc/client"; -export * from "./regen/bundle"; -export * from "./regen/client"; -export * from "./tendermint/bundle"; -export * from "./varint"; -export * from "./utf8"; -export * from "./binary"; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/bundle.ts b/packages/api/src/codegen/regen/bundle.ts deleted file mode 100644 index 8c36ebb4..00000000 --- a/packages/api/src/codegen/regen/bundle.ts +++ /dev/null @@ -1,152 +0,0 @@ -import * as _113 from "./data/v1/events"; -import * as _114 from "./data/v1/query"; -import * as _115 from "./data/v1/state"; -import * as _116 from "./data/v1/tx"; -import * as _117 from "./data/v1/types"; -import * as _118 from "./ecocredit/basket/v1/events"; -import * as _119 from "./ecocredit/basket/v1/query"; -import * as _120 from "./ecocredit/basket/v1/state"; -import * as _121 from "./ecocredit/basket/v1/tx"; -import * as _122 from "./ecocredit/basket/v1/types"; -import * as _123 from "./ecocredit/marketplace/v1/events"; -import * as _124 from "./ecocredit/marketplace/v1/query"; -import * as _125 from "./ecocredit/marketplace/v1/state"; -import * as _126 from "./ecocredit/marketplace/v1/tx"; -import * as _127 from "./ecocredit/marketplace/v1/types"; -import * as _128 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _129 from "./ecocredit/v1/events"; -import * as _130 from "./ecocredit/v1/query"; -import * as _131 from "./ecocredit/v1/state"; -import * as _132 from "./ecocredit/v1/tx"; -import * as _133 from "./ecocredit/v1/types"; -import * as _134 from "./ecocredit/v1alpha1/events"; -import * as _135 from "./ecocredit/v1alpha1/genesis"; -import * as _136 from "./ecocredit/v1alpha1/query"; -import * as _137 from "./ecocredit/v1alpha1/tx"; -import * as _138 from "./ecocredit/v1alpha1/types"; -import * as _139 from "./intertx/v1/query"; -import * as _140 from "./intertx/v1/tx"; -import * as _241 from "./data/v1/tx.amino"; -import * as _242 from "./ecocredit/basket/v1/tx.amino"; -import * as _243 from "./ecocredit/marketplace/v1/tx.amino"; -import * as _244 from "./ecocredit/v1/tx.amino"; -import * as _245 from "./ecocredit/v1alpha1/tx.amino"; -import * as _246 from "./intertx/v1/tx.amino"; -import * as _247 from "./data/v1/tx.registry"; -import * as _248 from "./ecocredit/basket/v1/tx.registry"; -import * as _249 from "./ecocredit/marketplace/v1/tx.registry"; -import * as _250 from "./ecocredit/v1/tx.registry"; -import * as _251 from "./ecocredit/v1alpha1/tx.registry"; -import * as _252 from "./intertx/v1/tx.registry"; -import * as _253 from "./data/v1/query.lcd"; -import * as _254 from "./ecocredit/basket/v1/query.lcd"; -import * as _255 from "./ecocredit/marketplace/v1/query.lcd"; -import * as _256 from "./ecocredit/v1/query.lcd"; -import * as _257 from "./ecocredit/v1alpha1/query.lcd"; -import * as _258 from "./intertx/v1/query.lcd"; -import * as _259 from "./data/v1/query.rpc.Query"; -import * as _260 from "./ecocredit/basket/v1/query.rpc.Query"; -import * as _261 from "./ecocredit/marketplace/v1/query.rpc.Query"; -import * as _262 from "./ecocredit/v1/query.rpc.Query"; -import * as _263 from "./ecocredit/v1alpha1/query.rpc.Query"; -import * as _264 from "./intertx/v1/query.rpc.Query"; -import * as _265 from "./data/v1/tx.rpc.msg"; -import * as _266 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _267 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _268 from "./ecocredit/v1/tx.rpc.msg"; -import * as _269 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _270 from "./intertx/v1/tx.rpc.msg"; -import * as _277 from "./lcd"; -import * as _278 from "./rpc.query"; -import * as _279 from "./rpc.tx"; -export namespace regen { - export namespace data { - export const v1 = { - ..._113, - ..._114, - ..._115, - ..._116, - ..._117, - ..._241, - ..._247, - ..._253, - ..._259, - ..._265 - }; - } - export namespace ecocredit { - export namespace basket { - export const v1 = { - ..._118, - ..._119, - ..._120, - ..._121, - ..._122, - ..._242, - ..._248, - ..._254, - ..._260, - ..._266 - }; - } - export namespace marketplace { - export const v1 = { - ..._123, - ..._124, - ..._125, - ..._126, - ..._127, - ..._243, - ..._249, - ..._255, - ..._261, - ..._267 - }; - } - export namespace orderbook { - export const v1alpha1 = { - ..._128 - }; - } - export const v1 = { - ..._129, - ..._130, - ..._131, - ..._132, - ..._133, - ..._244, - ..._250, - ..._256, - ..._262, - ..._268 - }; - export const v1alpha1 = { - ..._134, - ..._135, - ..._136, - ..._137, - ..._138, - ..._245, - ..._251, - ..._257, - ..._263, - ..._269 - }; - } - export namespace intertx { - export const v1 = { - ..._139, - ..._140, - ..._246, - ..._252, - ..._258, - ..._264, - ..._270 - }; - } - export const ClientFactory = { - ..._277, - ..._278, - ..._279 - }; -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/client.ts b/packages/api/src/codegen/regen/client.ts deleted file mode 100644 index d5b188ac..00000000 --- a/packages/api/src/codegen/regen/client.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import * as regenDataV1TxRegistry from "./data/v1/tx.registry"; -import * as regenEcocreditBasketV1TxRegistry from "./ecocredit/basket/v1/tx.registry"; -import * as regenEcocreditMarketplaceV1TxRegistry from "./ecocredit/marketplace/v1/tx.registry"; -import * as regenEcocreditV1TxRegistry from "./ecocredit/v1/tx.registry"; -import * as regenEcocreditV1alpha1TxRegistry from "./ecocredit/v1alpha1/tx.registry"; -import * as regenIntertxV1TxRegistry from "./intertx/v1/tx.registry"; -import * as regenDataV1TxAmino from "./data/v1/tx.amino"; -import * as regenEcocreditBasketV1TxAmino from "./ecocredit/basket/v1/tx.amino"; -import * as regenEcocreditMarketplaceV1TxAmino from "./ecocredit/marketplace/v1/tx.amino"; -import * as regenEcocreditV1TxAmino from "./ecocredit/v1/tx.amino"; -import * as regenEcocreditV1alpha1TxAmino from "./ecocredit/v1alpha1/tx.amino"; -import * as regenIntertxV1TxAmino from "./intertx/v1/tx.amino"; -export const regenAminoConverters = { - ...regenDataV1TxAmino.AminoConverter, - ...regenEcocreditBasketV1TxAmino.AminoConverter, - ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, - ...regenEcocreditV1TxAmino.AminoConverter, - ...regenEcocreditV1alpha1TxAmino.AminoConverter, - ...regenIntertxV1TxAmino.AminoConverter -}; -export const regenProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; -export const getSigningRegenClientOptions = ({ - defaultTypes = defaultRegistryTypes -}: { - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -} = {}): { - registry: Registry; - aminoTypes: AminoTypes; -} => { - const registry = new Registry([...defaultTypes, ...regenProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...regenAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningRegenClient = async ({ - rpcEndpoint, - signer, - defaultTypes = defaultRegistryTypes -}: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => { - const { - registry, - aminoTypes - } = getSigningRegenClientOptions({ - defaultTypes - }); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: (registry as any), - aminoTypes - }); - return client; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/events.ts b/packages/api/src/codegen/regen/data/v1/events.ts deleted file mode 100644 index a3c5969d..00000000 --- a/packages/api/src/codegen/regen/data/v1/events.ts +++ /dev/null @@ -1,435 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchor { - /** iri is the IRI of the data anchored on chain. */ - iri: string; -} -export interface EventAnchorProtoMsg { - typeUrl: "/regen.data.v1.EventAnchor"; - value: Uint8Array; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorAmino { - /** iri is the IRI of the data anchored on chain. */ - iri?: string; -} -export interface EventAnchorAminoMsg { - type: "/regen.data.v1.EventAnchor"; - value: EventAnchorAmino; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorSDKType { - iri: string; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttest { - /** iri is the IRI of the data attested to. */ - iri: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor: string; -} -export interface EventAttestProtoMsg { - typeUrl: "/regen.data.v1.EventAttest"; - value: Uint8Array; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestAmino { - /** iri is the IRI of the data attested to. */ - iri?: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor?: string; -} -export interface EventAttestAminoMsg { - type: "/regen.data.v1.EventAttest"; - value: EventAttestAmino; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestSDKType { - iri: string; - attestor: string; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolver { - /** id is the ID of the defined resolver. */ - id: bigint; -} -export interface EventDefineResolverProtoMsg { - typeUrl: "/regen.data.v1.EventDefineResolver"; - value: Uint8Array; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverAmino { - /** id is the ID of the defined resolver. */ - id?: string; -} -export interface EventDefineResolverAminoMsg { - type: "/regen.data.v1.EventDefineResolver"; - value: EventDefineResolverAmino; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverSDKType { - id: bigint; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolver { - /** id is the ID of the resolver that the data was registered to. */ - id: bigint; - /** iri is the IRI of the data that was registered. */ - iri: string; -} -export interface EventRegisterResolverProtoMsg { - typeUrl: "/regen.data.v1.EventRegisterResolver"; - value: Uint8Array; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverAmino { - /** id is the ID of the resolver that the data was registered to. */ - id?: string; - /** iri is the IRI of the data that was registered. */ - iri?: string; -} -export interface EventRegisterResolverAminoMsg { - type: "/regen.data.v1.EventRegisterResolver"; - value: EventRegisterResolverAmino; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverSDKType { - id: bigint; - iri: string; -} -function createBaseEventAnchor(): EventAnchor { - return { - iri: "" - }; -} -export const EventAnchor = { - typeUrl: "/regen.data.v1.EventAnchor", - encode(message: EventAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventAnchor { - return { - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: EventAnchor): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): EventAnchor { - const message = createBaseEventAnchor(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: EventAnchorAmino): EventAnchor { - const message = createBaseEventAnchor(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: EventAnchor): EventAnchorAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: EventAnchorAminoMsg): EventAnchor { - return EventAnchor.fromAmino(object.value); - }, - fromProtoMsg(message: EventAnchorProtoMsg): EventAnchor { - return EventAnchor.decode(message.value); - }, - toProto(message: EventAnchor): Uint8Array { - return EventAnchor.encode(message).finish(); - }, - toProtoMsg(message: EventAnchor): EventAnchorProtoMsg { - return { - typeUrl: "/regen.data.v1.EventAnchor", - value: EventAnchor.encode(message).finish() - }; - } -}; -function createBaseEventAttest(): EventAttest { - return { - iri: "", - attestor: "" - }; -} -export const EventAttest = { - typeUrl: "/regen.data.v1.EventAttest", - encode(message: EventAttest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventAttest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventAttest { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - attestor: isSet(object.attestor) ? String(object.attestor) : "" - }; - }, - toJSON(message: EventAttest): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.attestor !== undefined && (obj.attestor = message.attestor); - return obj; - }, - fromPartial(object: Partial): EventAttest { - const message = createBaseEventAttest(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - return message; - }, - fromAmino(object: EventAttestAmino): EventAttest { - const message = createBaseEventAttest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - return message; - }, - toAmino(message: EventAttest): EventAttestAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - return obj; - }, - fromAminoMsg(object: EventAttestAminoMsg): EventAttest { - return EventAttest.fromAmino(object.value); - }, - fromProtoMsg(message: EventAttestProtoMsg): EventAttest { - return EventAttest.decode(message.value); - }, - toProto(message: EventAttest): Uint8Array { - return EventAttest.encode(message).finish(); - }, - toProtoMsg(message: EventAttest): EventAttestProtoMsg { - return { - typeUrl: "/regen.data.v1.EventAttest", - value: EventAttest.encode(message).finish() - }; - } -}; -function createBaseEventDefineResolver(): EventDefineResolver { - return { - id: BigInt(0) - }; -} -export const EventDefineResolver = { - typeUrl: "/regen.data.v1.EventDefineResolver", - encode(message: EventDefineResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventDefineResolver { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0) - }; - }, - toJSON(message: EventDefineResolver): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventDefineResolver { - const message = createBaseEventDefineResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventDefineResolverAmino): EventDefineResolver { - const message = createBaseEventDefineResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message: EventDefineResolver): EventDefineResolverAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventDefineResolverAminoMsg): EventDefineResolver { - return EventDefineResolver.fromAmino(object.value); - }, - fromProtoMsg(message: EventDefineResolverProtoMsg): EventDefineResolver { - return EventDefineResolver.decode(message.value); - }, - toProto(message: EventDefineResolver): Uint8Array { - return EventDefineResolver.encode(message).finish(); - }, - toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.EventDefineResolver", - value: EventDefineResolver.encode(message).finish() - }; - } -}; -function createBaseEventRegisterResolver(): EventRegisterResolver { - return { - id: BigInt(0), - iri: "" - }; -} -export const EventRegisterResolver = { - typeUrl: "/regen.data.v1.EventRegisterResolver", - encode(message: EventRegisterResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventRegisterResolver { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: EventRegisterResolver): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): EventRegisterResolver { - const message = createBaseEventRegisterResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: EventRegisterResolverAmino): EventRegisterResolver { - const message = createBaseEventRegisterResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: EventRegisterResolver): EventRegisterResolverAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: EventRegisterResolverAminoMsg): EventRegisterResolver { - return EventRegisterResolver.fromAmino(object.value); - }, - fromProtoMsg(message: EventRegisterResolverProtoMsg): EventRegisterResolver { - return EventRegisterResolver.decode(message.value); - }, - toProto(message: EventRegisterResolver): Uint8Array { - return EventRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message: EventRegisterResolver): EventRegisterResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.EventRegisterResolver", - value: EventRegisterResolver.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/query.lcd.ts b/packages/api/src/codegen/regen/data/v1/query.lcd.ts deleted file mode 100644 index 598d82ec..00000000 --- a/packages/api/src/codegen/regen/data/v1/query.lcd.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - } - /* AnchorByIRI queries a data anchor by the IRI of the data. */ - async anchorByIRI(params: QueryAnchorByIRIRequest): Promise { - const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; - return await this.req.get(endpoint); - } - /* AttestationsByAttestor queries data attestations by an attestor. */ - async attestationsByAttestor(params: QueryAttestationsByAttestorRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; - return await this.req.get(endpoint, options); - } - /* AttestationsByIRI queries data attestations by the IRI of the data. */ - async attestationsByIRI(params: QueryAttestationsByIRIRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* Resolver queries a resolver by its unique identifier. */ - async resolver(params: QueryResolverRequest): Promise { - const endpoint = `regen/data/v1/resolver/${params.id}`; - return await this.req.get(endpoint); - } - /* ResolversByIRI queries resolvers with registered data by the IRI of the - data. */ - async resolversByIRI(params: QueryResolversByIRIRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* ConvertIRIToHash converts an IRI to a ContentHash. */ - async convertIRIToHash(params: ConvertIRIToHashRequest): Promise { - const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/query.rpc.Query.ts b/packages/api/src/codegen/regen/data/v1/query.rpc.Query.ts deleted file mode 100644 index 6df7b048..00000000 --- a/packages/api/src/codegen/regen/data/v1/query.rpc.Query.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; -/** Query is the regen.data.v1 Query service */ -export interface Query { - /** AnchorByIRI queries a data anchor by the IRI of the data. */ - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - /** AnchorByHash queries a data anchor by the ContentHash of the data. */ - anchorByHash(request: QueryAnchorByHashRequest): Promise; - /** AttestationsByAttestor queries data attestations by an attestor. */ - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - /** AttestationsByIRI queries data attestations by the IRI of the data. */ - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - /** - * AttestationsByHash queries data attestations by the ContentHash of the - * data. - */ - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - /** Resolver queries a resolver by its unique identifier. */ - resolver(request: QueryResolverRequest): Promise; - /** - * ResolversByIRI queries resolvers with registered data by the IRI of the - * data. - */ - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - /** - * ResolversByHash queries resolvers with registered data by the ContentHash - * of the data. - */ - resolversByHash(request: QueryResolversByHashRequest): Promise; - /** ResolversByURL queries resolvers by URL. */ - resolversByURL(request: QueryResolversByURLRequest): Promise; - /** ConvertIRIToHash converts an IRI to a ContentHash. */ - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - /** ConvertHashToIRI converts a ContentHash to an IRI. */ - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.anchorByHash = this.anchorByHash.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.attestationsByHash = this.attestationsByHash.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.resolversByHash = this.resolversByHash.bind(this); - this.resolversByURL = this.resolversByURL.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - this.convertHashToIRI = this.convertHashToIRI.bind(this); - } - anchorByIRI(request: QueryAnchorByIRIRequest): Promise { - const data = QueryAnchorByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); - return promise.then(data => QueryAnchorByIRIResponse.decode(new BinaryReader(data))); - } - anchorByHash(request: QueryAnchorByHashRequest): Promise { - const data = QueryAnchorByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); - return promise.then(data => QueryAnchorByHashResponse.decode(new BinaryReader(data))); - } - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise { - const data = QueryAttestationsByAttestorRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); - return promise.then(data => QueryAttestationsByAttestorResponse.decode(new BinaryReader(data))); - } - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise { - const data = QueryAttestationsByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); - return promise.then(data => QueryAttestationsByIRIResponse.decode(new BinaryReader(data))); - } - attestationsByHash(request: QueryAttestationsByHashRequest): Promise { - const data = QueryAttestationsByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); - return promise.then(data => QueryAttestationsByHashResponse.decode(new BinaryReader(data))); - } - resolver(request: QueryResolverRequest): Promise { - const data = QueryResolverRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); - return promise.then(data => QueryResolverResponse.decode(new BinaryReader(data))); - } - resolversByIRI(request: QueryResolversByIRIRequest): Promise { - const data = QueryResolversByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); - return promise.then(data => QueryResolversByIRIResponse.decode(new BinaryReader(data))); - } - resolversByHash(request: QueryResolversByHashRequest): Promise { - const data = QueryResolversByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); - return promise.then(data => QueryResolversByHashResponse.decode(new BinaryReader(data))); - } - resolversByURL(request: QueryResolversByURLRequest): Promise { - const data = QueryResolversByURLRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); - return promise.then(data => QueryResolversByURLResponse.decode(new BinaryReader(data))); - } - convertIRIToHash(request: ConvertIRIToHashRequest): Promise { - const data = ConvertIRIToHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); - return promise.then(data => ConvertIRIToHashResponse.decode(new BinaryReader(data))); - } - convertHashToIRI(request: ConvertHashToIRIRequest): Promise { - const data = ConvertHashToIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); - return promise.then(data => ConvertHashToIRIResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - anchorByIRI(request: QueryAnchorByIRIRequest): Promise { - return queryService.anchorByIRI(request); - }, - anchorByHash(request: QueryAnchorByHashRequest): Promise { - return queryService.anchorByHash(request); - }, - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise { - return queryService.attestationsByAttestor(request); - }, - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise { - return queryService.attestationsByIRI(request); - }, - attestationsByHash(request: QueryAttestationsByHashRequest): Promise { - return queryService.attestationsByHash(request); - }, - resolver(request: QueryResolverRequest): Promise { - return queryService.resolver(request); - }, - resolversByIRI(request: QueryResolversByIRIRequest): Promise { - return queryService.resolversByIRI(request); - }, - resolversByHash(request: QueryResolversByHashRequest): Promise { - return queryService.resolversByHash(request); - }, - resolversByURL(request: QueryResolversByURLRequest): Promise { - return queryService.resolversByURL(request); - }, - convertIRIToHash(request: ConvertIRIToHashRequest): Promise { - return queryService.convertIRIToHash(request); - }, - convertHashToIRI(request: ConvertHashToIRIRequest): Promise { - return queryService.convertHashToIRI(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/query.ts b/packages/api/src/codegen/regen/data/v1/query.ts deleted file mode 100644 index 3b57e7b6..00000000 --- a/packages/api/src/codegen/regen/data/v1/query.ts +++ /dev/null @@ -1,2785 +0,0 @@ -import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; -} -export interface QueryAnchorByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: Uint8Array; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; -} -export interface QueryAnchorByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: QueryAnchorByIRIRequestAmino; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestSDKType { - iri: string; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: Uint8Array; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: QueryAnchorByIRIResponseAmino; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; -} -export interface QueryAnchorByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; - value: Uint8Array; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; -} -export interface QueryAnchorByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashRequest"; - value: QueryAnchorByHashRequestAmino; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; - value: Uint8Array; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashResponse"; - value: QueryAnchorByHashResponseAmino; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequest { - /** attestor is the address of the attestor. */ - attestor: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByAttestorRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestAmino { - /** attestor is the address of the attestor. */ - attestor?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByAttestorRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: QueryAttestationsByAttestorRequestAmino; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestSDKType { - attestor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponse { - /** attestations are the attestations by the attestor. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByAttestorResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseAmino { - /** attestations are the attestations by the attestor. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByAttestorResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: QueryAttestationsByAttestorResponseAmino; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: Uint8Array; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: QueryAttestationsByIRIRequestAmino; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: Uint8Array; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: QueryAttestationsByIRIResponseAmino; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: Uint8Array; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: QueryAttestationsByHashRequestAmino; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: QueryAttestationsByHashResponseAmino; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequest { - /** id is the ID of the resolver. */ - id: bigint; -} -export interface QueryResolverRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverRequest"; - value: Uint8Array; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestAmino { - /** id is the ID of the resolver. */ - id?: string; -} -export interface QueryResolverRequestAminoMsg { - type: "/regen.data.v1.QueryResolverRequest"; - value: QueryResolverRequestAmino; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestSDKType { - id: bigint; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponse { - /** resolver is information about the resolver. */ - resolver?: ResolverInfo; -} -export interface QueryResolverResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverResponse"; - value: Uint8Array; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseAmino { - /** resolver is information about the resolver. */ - resolver?: ResolverInfoAmino; -} -export interface QueryResolverResponseAminoMsg { - type: "/regen.data.v1.QueryResolverResponse"; - value: QueryResolverResponseAmino; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseSDKType { - resolver?: ResolverInfoSDKType; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; - value: Uint8Array; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIRequest"; - value: QueryResolversByIRIRequestAmino; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponse { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; - value: Uint8Array; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseAmino { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIResponse"; - value: QueryResolversByIRIResponseAmino; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; - value: Uint8Array; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByHashRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByHashRequest"; - value: QueryResolversByHashRequestAmino; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponse { - /** resolvers are the resolvers that have registered the data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; - value: Uint8Array; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseAmino { - /** resolvers are the resolvers that have registered the data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByHashResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByHashResponse"; - value: QueryResolversByHashResponseAmino; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequest { - /** url is the URL of the resolver. */ - url: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByURLRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; - value: Uint8Array; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestAmino { - /** url is the URL of the resolver. */ - url?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByURLRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByURLRequest"; - value: QueryResolversByURLRequestAmino; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestSDKType { - url: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponse { - /** resolvers are the resolvers that have a matching URL. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByURLResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; - value: Uint8Array; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseAmino { - /** resolvers are the resolvers that have a matching URL. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByURLResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByURLResponse"; - value: QueryResolversByURLResponseAmino; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequest { - /** iri is the IRI to convert to a ContentHash. */ - iri: string; -} -export interface ConvertIRIToHashRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest"; - value: Uint8Array; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestAmino { - /** iri is the IRI to convert to a ContentHash. */ - iri?: string; -} -export interface ConvertIRIToHashRequestAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashRequest"; - value: ConvertIRIToHashRequestAmino; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestSDKType { - iri: string; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponse { - /** content_hash is the ContentHash converted from the IRI. */ - contentHash?: ContentHash; -} -export interface ConvertIRIToHashResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; - value: Uint8Array; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseAmino { - /** content_hash is the ContentHash converted from the IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertIRIToHashResponseAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashResponse"; - value: ConvertIRIToHashResponseAmino; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequest { - /** content_hash is the ContentHash to convert to an IRI. */ - contentHash?: ContentHash; -} -export interface ConvertHashToIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; - value: Uint8Array; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestAmino { - /** content_hash is the ContentHash to convert to an IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertHashToIRIRequestAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIRequest"; - value: ConvertHashToIRIRequestAmino; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponse { - /** iri is the IRI converted from the ContentHash. */ - iri: string; -} -export interface ConvertHashToIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse"; - value: Uint8Array; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseAmino { - /** iri is the IRI converted from the ContentHash. */ - iri?: string; -} -export interface ConvertHashToIRIResponseAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIResponse"; - value: ConvertHashToIRIResponseAmino; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseSDKType { - iri: string; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** timestamp is the time at which the data was anchored. */ - timestamp?: Timestamp; -} -export interface AnchorInfoProtoMsg { - typeUrl: "/regen.data.v1.AnchorInfo"; - value: Uint8Array; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** timestamp is the time at which the data was anchored. */ - timestamp?: string; -} -export interface AnchorInfoAminoMsg { - type: "/regen.data.v1.AnchorInfo"; - value: AnchorInfoAmino; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoSDKType { - iri: string; - content_hash?: ContentHashSDKType; - timestamp?: TimestampSDKType; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: Timestamp; -} -export interface AttestationInfoProtoMsg { - typeUrl: "/regen.data.v1.AttestationInfo"; - value: Uint8Array; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor?: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: string; -} -export interface AttestationInfoAminoMsg { - type: "/regen.data.v1.AttestationInfo"; - value: AttestationInfoAmino; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoSDKType { - iri: string; - attestor: string; - timestamp?: TimestampSDKType; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfo { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** manager is the address of the account that manages the resolver. */ - manager: string; -} -export interface ResolverInfoProtoMsg { - typeUrl: "/regen.data.v1.ResolverInfo"; - value: Uint8Array; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** manager is the address of the account that manages the resolver. */ - manager?: string; -} -export interface ResolverInfoAminoMsg { - type: "/regen.data.v1.ResolverInfo"; - value: ResolverInfoAmino; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoSDKType { - id: bigint; - url: string; - manager: string; -} -function createBaseQueryAnchorByIRIRequest(): QueryAnchorByIRIRequest { - return { - iri: "" - }; -} -export const QueryAnchorByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - encode(message: QueryAnchorByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAnchorByIRIRequest { - return { - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: QueryAnchorByIRIRequest): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): QueryAnchorByIRIRequest { - const message = createBaseQueryAnchorByIRIRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: QueryAnchorByIRIRequestAmino): QueryAnchorByIRIRequest { - const message = createBaseQueryAnchorByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: QueryAnchorByIRIRequestAminoMsg): QueryAnchorByIRIRequest { - return QueryAnchorByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAnchorByIRIRequestProtoMsg): QueryAnchorByIRIRequest { - return QueryAnchorByIRIRequest.decode(message.value); - }, - toProto(message: QueryAnchorByIRIRequest): Uint8Array { - return QueryAnchorByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - value: QueryAnchorByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByIRIResponse(): QueryAnchorByIRIResponse { - return { - anchor: undefined - }; -} -export const QueryAnchorByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - encode(message: QueryAnchorByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.anchor !== undefined) { - AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAnchorByIRIResponse { - return { - anchor: isSet(object.anchor) ? AnchorInfo.fromJSON(object.anchor) : undefined - }; - }, - toJSON(message: QueryAnchorByIRIResponse): unknown { - const obj: any = {}; - message.anchor !== undefined && (obj.anchor = message.anchor ? AnchorInfo.toJSON(message.anchor) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAnchorByIRIResponse { - const message = createBaseQueryAnchorByIRIResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object: QueryAnchorByIRIResponseAmino): QueryAnchorByIRIResponse { - const message = createBaseQueryAnchorByIRIResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseAmino { - const obj: any = {}; - obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAnchorByIRIResponseAminoMsg): QueryAnchorByIRIResponse { - return QueryAnchorByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAnchorByIRIResponseProtoMsg): QueryAnchorByIRIResponse { - return QueryAnchorByIRIResponse.decode(message.value); - }, - toProto(message: QueryAnchorByIRIResponse): Uint8Array { - return QueryAnchorByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - value: QueryAnchorByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashRequest(): QueryAnchorByHashRequest { - return { - contentHash: undefined - }; -} -export const QueryAnchorByHashRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - encode(message: QueryAnchorByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAnchorByHashRequest { - return { - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined - }; - }, - toJSON(message: QueryAnchorByHashRequest): unknown { - const obj: any = {}; - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAnchorByHashRequest { - const message = createBaseQueryAnchorByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object: QueryAnchorByHashRequestAmino): QueryAnchorByHashRequest { - const message = createBaseQueryAnchorByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestAmino { - const obj: any = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAnchorByHashRequestAminoMsg): QueryAnchorByHashRequest { - return QueryAnchorByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAnchorByHashRequestProtoMsg): QueryAnchorByHashRequest { - return QueryAnchorByHashRequest.decode(message.value); - }, - toProto(message: QueryAnchorByHashRequest): Uint8Array { - return QueryAnchorByHashRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - value: QueryAnchorByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashResponse(): QueryAnchorByHashResponse { - return { - anchor: undefined - }; -} -export const QueryAnchorByHashResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - encode(message: QueryAnchorByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.anchor !== undefined) { - AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAnchorByHashResponse { - return { - anchor: isSet(object.anchor) ? AnchorInfo.fromJSON(object.anchor) : undefined - }; - }, - toJSON(message: QueryAnchorByHashResponse): unknown { - const obj: any = {}; - message.anchor !== undefined && (obj.anchor = message.anchor ? AnchorInfo.toJSON(message.anchor) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAnchorByHashResponse { - const message = createBaseQueryAnchorByHashResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object: QueryAnchorByHashResponseAmino): QueryAnchorByHashResponse { - const message = createBaseQueryAnchorByHashResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseAmino { - const obj: any = {}; - obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAnchorByHashResponseAminoMsg): QueryAnchorByHashResponse { - return QueryAnchorByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAnchorByHashResponseProtoMsg): QueryAnchorByHashResponse { - return QueryAnchorByHashResponse.decode(message.value); - }, - toProto(message: QueryAnchorByHashResponse): Uint8Array { - return QueryAnchorByHashResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - value: QueryAnchorByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorRequest(): QueryAttestationsByAttestorRequest { - return { - attestor: "", - pagination: undefined - }; -} -export const QueryAttestationsByAttestorRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - encode(message: QueryAttestationsByAttestorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByAttestorRequest { - return { - attestor: isSet(object.attestor) ? String(object.attestor) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByAttestorRequest): unknown { - const obj: any = {}; - message.attestor !== undefined && (obj.attestor = message.attestor); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByAttestorRequest { - const message = createBaseQueryAttestationsByAttestorRequest(); - message.attestor = object.attestor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByAttestorRequestAmino): QueryAttestationsByAttestorRequest { - const message = createBaseQueryAttestationsByAttestorRequest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestAmino { - const obj: any = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByAttestorRequestAminoMsg): QueryAttestationsByAttestorRequest { - return QueryAttestationsByAttestorRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByAttestorRequestProtoMsg): QueryAttestationsByAttestorRequest { - return QueryAttestationsByAttestorRequest.decode(message.value); - }, - toProto(message: QueryAttestationsByAttestorRequest): Uint8Array { - return QueryAttestationsByAttestorRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - value: QueryAttestationsByAttestorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorResponse(): QueryAttestationsByAttestorResponse { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByAttestorResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - encode(message: QueryAttestationsByAttestorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.attestations) { - AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByAttestorResponse { - return { - attestations: Array.isArray(object?.attestations) ? object.attestations.map((e: any) => AttestationInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByAttestorResponse): unknown { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toJSON(e) : undefined); - } else { - obj.attestations = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByAttestorResponse { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByAttestorResponseAmino): QueryAttestationsByAttestorResponse { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseAmino { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByAttestorResponseAminoMsg): QueryAttestationsByAttestorResponse { - return QueryAttestationsByAttestorResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByAttestorResponseProtoMsg): QueryAttestationsByAttestorResponse { - return QueryAttestationsByAttestorResponse.decode(message.value); - }, - toProto(message: QueryAttestationsByAttestorResponse): Uint8Array { - return QueryAttestationsByAttestorResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - value: QueryAttestationsByAttestorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIRequest(): QueryAttestationsByIRIRequest { - return { - iri: "", - pagination: undefined - }; -} -export const QueryAttestationsByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - encode(message: QueryAttestationsByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByIRIRequest { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByIRIRequest): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByIRIRequest { - const message = createBaseQueryAttestationsByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByIRIRequestAmino): QueryAttestationsByIRIRequest { - const message = createBaseQueryAttestationsByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByIRIRequestAminoMsg): QueryAttestationsByIRIRequest { - return QueryAttestationsByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByIRIRequestProtoMsg): QueryAttestationsByIRIRequest { - return QueryAttestationsByIRIRequest.decode(message.value); - }, - toProto(message: QueryAttestationsByIRIRequest): Uint8Array { - return QueryAttestationsByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - value: QueryAttestationsByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIResponse(): QueryAttestationsByIRIResponse { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - encode(message: QueryAttestationsByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.attestations) { - AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByIRIResponse { - return { - attestations: Array.isArray(object?.attestations) ? object.attestations.map((e: any) => AttestationInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByIRIResponse): unknown { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toJSON(e) : undefined); - } else { - obj.attestations = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByIRIResponse { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByIRIResponseAmino): QueryAttestationsByIRIResponse { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseAmino { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByIRIResponseAminoMsg): QueryAttestationsByIRIResponse { - return QueryAttestationsByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByIRIResponseProtoMsg): QueryAttestationsByIRIResponse { - return QueryAttestationsByIRIResponse.decode(message.value); - }, - toProto(message: QueryAttestationsByIRIResponse): Uint8Array { - return QueryAttestationsByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - value: QueryAttestationsByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashRequest(): QueryAttestationsByHashRequest { - return { - contentHash: undefined, - pagination: undefined - }; -} -export const QueryAttestationsByHashRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - encode(message: QueryAttestationsByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByHashRequest { - return { - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined, - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByHashRequest): unknown { - const obj: any = {}; - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByHashRequest { - const message = createBaseQueryAttestationsByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByHashRequestAmino): QueryAttestationsByHashRequest { - const message = createBaseQueryAttestationsByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestAmino { - const obj: any = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByHashRequestAminoMsg): QueryAttestationsByHashRequest { - return QueryAttestationsByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByHashRequestProtoMsg): QueryAttestationsByHashRequest { - return QueryAttestationsByHashRequest.decode(message.value); - }, - toProto(message: QueryAttestationsByHashRequest): Uint8Array { - return QueryAttestationsByHashRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - value: QueryAttestationsByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashResponse(): QueryAttestationsByHashResponse { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByHashResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - encode(message: QueryAttestationsByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.attestations) { - AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAttestationsByHashResponse { - return { - attestations: Array.isArray(object?.attestations) ? object.attestations.map((e: any) => AttestationInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAttestationsByHashResponse): unknown { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toJSON(e) : undefined); - } else { - obj.attestations = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAttestationsByHashResponse { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAttestationsByHashResponseAmino): QueryAttestationsByHashResponse { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseAmino { - const obj: any = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAttestationsByHashResponseAminoMsg): QueryAttestationsByHashResponse { - return QueryAttestationsByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAttestationsByHashResponseProtoMsg): QueryAttestationsByHashResponse { - return QueryAttestationsByHashResponse.decode(message.value); - }, - toProto(message: QueryAttestationsByHashResponse): Uint8Array { - return QueryAttestationsByHashResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - value: QueryAttestationsByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolverRequest(): QueryResolverRequest { - return { - id: BigInt(0) - }; -} -export const QueryResolverRequest = { - typeUrl: "/regen.data.v1.QueryResolverRequest", - encode(message: QueryResolverRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolverRequest { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0) - }; - }, - toJSON(message: QueryResolverRequest): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QueryResolverRequest { - const message = createBaseQueryResolverRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QueryResolverRequestAmino): QueryResolverRequest { - const message = createBaseQueryResolverRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message: QueryResolverRequest): QueryResolverRequestAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolverRequestAminoMsg): QueryResolverRequest { - return QueryResolverRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolverRequestProtoMsg): QueryResolverRequest { - return QueryResolverRequest.decode(message.value); - }, - toProto(message: QueryResolverRequest): Uint8Array { - return QueryResolverRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolverRequest", - value: QueryResolverRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolverResponse(): QueryResolverResponse { - return { - resolver: undefined - }; -} -export const QueryResolverResponse = { - typeUrl: "/regen.data.v1.QueryResolverResponse", - encode(message: QueryResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.resolver !== undefined) { - ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolver = ResolverInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolverResponse { - return { - resolver: isSet(object.resolver) ? ResolverInfo.fromJSON(object.resolver) : undefined - }; - }, - toJSON(message: QueryResolverResponse): unknown { - const obj: any = {}; - message.resolver !== undefined && (obj.resolver = message.resolver ? ResolverInfo.toJSON(message.resolver) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolverResponse { - const message = createBaseQueryResolverResponse(); - message.resolver = object.resolver !== undefined && object.resolver !== null ? ResolverInfo.fromPartial(object.resolver) : undefined; - return message; - }, - fromAmino(object: QueryResolverResponseAmino): QueryResolverResponse { - const message = createBaseQueryResolverResponse(); - if (object.resolver !== undefined && object.resolver !== null) { - message.resolver = ResolverInfo.fromAmino(object.resolver); - } - return message; - }, - toAmino(message: QueryResolverResponse): QueryResolverResponseAmino { - const obj: any = {}; - obj.resolver = message.resolver ? ResolverInfo.toAmino(message.resolver) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolverResponseAminoMsg): QueryResolverResponse { - return QueryResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolverResponseProtoMsg): QueryResolverResponse { - return QueryResolverResponse.decode(message.value); - }, - toProto(message: QueryResolverResponse): Uint8Array { - return QueryResolverResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolverResponse", - value: QueryResolverResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIRequest(): QueryResolversByIRIRequest { - return { - iri: "", - pagination: undefined - }; -} -export const QueryResolversByIRIRequest = { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - encode(message: QueryResolversByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByIRIRequest { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByIRIRequest): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByIRIRequest { - const message = createBaseQueryResolversByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByIRIRequestAmino): QueryResolversByIRIRequest { - const message = createBaseQueryResolversByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByIRIRequestAminoMsg): QueryResolversByIRIRequest { - return QueryResolversByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByIRIRequestProtoMsg): QueryResolversByIRIRequest { - return QueryResolversByIRIRequest.decode(message.value); - }, - toProto(message: QueryResolversByIRIRequest): Uint8Array { - return QueryResolversByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - value: QueryResolversByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIResponse(): QueryResolversByIRIResponse { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByIRIResponse = { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - encode(message: QueryResolversByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.resolvers) { - ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByIRIResponse { - return { - resolvers: Array.isArray(object?.resolvers) ? object.resolvers.map((e: any) => ResolverInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByIRIResponse): unknown { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toJSON(e) : undefined); - } else { - obj.resolvers = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByIRIResponse { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByIRIResponseAmino): QueryResolversByIRIResponse { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseAmino { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByIRIResponseAminoMsg): QueryResolversByIRIResponse { - return QueryResolversByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByIRIResponseProtoMsg): QueryResolversByIRIResponse { - return QueryResolversByIRIResponse.decode(message.value); - }, - toProto(message: QueryResolversByIRIResponse): Uint8Array { - return QueryResolversByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - value: QueryResolversByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashRequest(): QueryResolversByHashRequest { - return { - contentHash: undefined, - pagination: undefined - }; -} -export const QueryResolversByHashRequest = { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - encode(message: QueryResolversByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByHashRequest { - return { - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined, - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByHashRequest): unknown { - const obj: any = {}; - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByHashRequest { - const message = createBaseQueryResolversByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByHashRequestAmino): QueryResolversByHashRequest { - const message = createBaseQueryResolversByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByHashRequest): QueryResolversByHashRequestAmino { - const obj: any = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByHashRequestAminoMsg): QueryResolversByHashRequest { - return QueryResolversByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByHashRequestProtoMsg): QueryResolversByHashRequest { - return QueryResolversByHashRequest.decode(message.value); - }, - toProto(message: QueryResolversByHashRequest): Uint8Array { - return QueryResolversByHashRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - value: QueryResolversByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashResponse(): QueryResolversByHashResponse { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByHashResponse = { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - encode(message: QueryResolversByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.resolvers) { - ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByHashResponse { - return { - resolvers: Array.isArray(object?.resolvers) ? object.resolvers.map((e: any) => ResolverInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByHashResponse): unknown { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toJSON(e) : undefined); - } else { - obj.resolvers = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByHashResponse { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByHashResponseAmino): QueryResolversByHashResponse { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByHashResponse): QueryResolversByHashResponseAmino { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByHashResponseAminoMsg): QueryResolversByHashResponse { - return QueryResolversByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByHashResponseProtoMsg): QueryResolversByHashResponse { - return QueryResolversByHashResponse.decode(message.value); - }, - toProto(message: QueryResolversByHashResponse): Uint8Array { - return QueryResolversByHashResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - value: QueryResolversByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLRequest(): QueryResolversByURLRequest { - return { - url: "", - pagination: undefined - }; -} -export const QueryResolversByURLRequest = { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - encode(message: QueryResolversByURLRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.url !== "") { - writer.uint32(10).string(message.url); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByURLRequest { - return { - url: isSet(object.url) ? String(object.url) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByURLRequest): unknown { - const obj: any = {}; - message.url !== undefined && (obj.url = message.url); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByURLRequest { - const message = createBaseQueryResolversByURLRequest(); - message.url = object.url ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByURLRequestAmino): QueryResolversByURLRequest { - const message = createBaseQueryResolversByURLRequest(); - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByURLRequest): QueryResolversByURLRequestAmino { - const obj: any = {}; - obj.url = message.url === "" ? undefined : message.url; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByURLRequestAminoMsg): QueryResolversByURLRequest { - return QueryResolversByURLRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByURLRequestProtoMsg): QueryResolversByURLRequest { - return QueryResolversByURLRequest.decode(message.value); - }, - toProto(message: QueryResolversByURLRequest): Uint8Array { - return QueryResolversByURLRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - value: QueryResolversByURLRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLResponse(): QueryResolversByURLResponse { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByURLResponse = { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - encode(message: QueryResolversByURLResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.resolvers) { - ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryResolversByURLResponse { - return { - resolvers: Array.isArray(object?.resolvers) ? object.resolvers.map((e: any) => ResolverInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryResolversByURLResponse): unknown { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toJSON(e) : undefined); - } else { - obj.resolvers = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryResolversByURLResponse { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryResolversByURLResponseAmino): QueryResolversByURLResponse { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryResolversByURLResponse): QueryResolversByURLResponseAmino { - const obj: any = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryResolversByURLResponseAminoMsg): QueryResolversByURLResponse { - return QueryResolversByURLResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryResolversByURLResponseProtoMsg): QueryResolversByURLResponse { - return QueryResolversByURLResponse.decode(message.value); - }, - toProto(message: QueryResolversByURLResponse): Uint8Array { - return QueryResolversByURLResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - value: QueryResolversByURLResponse.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashRequest(): ConvertIRIToHashRequest { - return { - iri: "" - }; -} -export const ConvertIRIToHashRequest = { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - encode(message: ConvertIRIToHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConvertIRIToHashRequest { - return { - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: ConvertIRIToHashRequest): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): ConvertIRIToHashRequest { - const message = createBaseConvertIRIToHashRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: ConvertIRIToHashRequestAmino): ConvertIRIToHashRequest { - const message = createBaseConvertIRIToHashRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: ConvertIRIToHashRequestAminoMsg): ConvertIRIToHashRequest { - return ConvertIRIToHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message: ConvertIRIToHashRequestProtoMsg): ConvertIRIToHashRequest { - return ConvertIRIToHashRequest.decode(message.value); - }, - toProto(message: ConvertIRIToHashRequest): Uint8Array { - return ConvertIRIToHashRequest.encode(message).finish(); - }, - toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - value: ConvertIRIToHashRequest.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashResponse(): ConvertIRIToHashResponse { - return { - contentHash: undefined - }; -} -export const ConvertIRIToHashResponse = { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - encode(message: ConvertIRIToHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConvertIRIToHashResponse { - return { - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined - }; - }, - toJSON(message: ConvertIRIToHashResponse): unknown { - const obj: any = {}; - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - return obj; - }, - fromPartial(object: Partial): ConvertIRIToHashResponse { - const message = createBaseConvertIRIToHashResponse(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object: ConvertIRIToHashResponseAmino): ConvertIRIToHashResponse { - const message = createBaseConvertIRIToHashResponse(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseAmino { - const obj: any = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object: ConvertIRIToHashResponseAminoMsg): ConvertIRIToHashResponse { - return ConvertIRIToHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message: ConvertIRIToHashResponseProtoMsg): ConvertIRIToHashResponse { - return ConvertIRIToHashResponse.decode(message.value); - }, - toProto(message: ConvertIRIToHashResponse): Uint8Array { - return ConvertIRIToHashResponse.encode(message).finish(); - }, - toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - value: ConvertIRIToHashResponse.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIRequest(): ConvertHashToIRIRequest { - return { - contentHash: undefined - }; -} -export const ConvertHashToIRIRequest = { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - encode(message: ConvertHashToIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConvertHashToIRIRequest { - return { - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined - }; - }, - toJSON(message: ConvertHashToIRIRequest): unknown { - const obj: any = {}; - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - return obj; - }, - fromPartial(object: Partial): ConvertHashToIRIRequest { - const message = createBaseConvertHashToIRIRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object: ConvertHashToIRIRequestAmino): ConvertHashToIRIRequest { - const message = createBaseConvertHashToIRIRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestAmino { - const obj: any = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object: ConvertHashToIRIRequestAminoMsg): ConvertHashToIRIRequest { - return ConvertHashToIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message: ConvertHashToIRIRequestProtoMsg): ConvertHashToIRIRequest { - return ConvertHashToIRIRequest.decode(message.value); - }, - toProto(message: ConvertHashToIRIRequest): Uint8Array { - return ConvertHashToIRIRequest.encode(message).finish(); - }, - toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - value: ConvertHashToIRIRequest.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIResponse(): ConvertHashToIRIResponse { - return { - iri: "" - }; -} -export const ConvertHashToIRIResponse = { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - encode(message: ConvertHashToIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConvertHashToIRIResponse { - return { - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: ConvertHashToIRIResponse): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): ConvertHashToIRIResponse { - const message = createBaseConvertHashToIRIResponse(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: ConvertHashToIRIResponseAmino): ConvertHashToIRIResponse { - const message = createBaseConvertHashToIRIResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: ConvertHashToIRIResponseAminoMsg): ConvertHashToIRIResponse { - return ConvertHashToIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message: ConvertHashToIRIResponseProtoMsg): ConvertHashToIRIResponse { - return ConvertHashToIRIResponse.decode(message.value); - }, - toProto(message: ConvertHashToIRIResponse): Uint8Array { - return ConvertHashToIRIResponse.encode(message).finish(); - }, - toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - value: ConvertHashToIRIResponse.encode(message).finish() - }; - } -}; -function createBaseAnchorInfo(): AnchorInfo { - return { - iri: "", - contentHash: undefined, - timestamp: undefined - }; -} -export const AnchorInfo = { - typeUrl: "/regen.data.v1.AnchorInfo", - encode(message: AnchorInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAnchorInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 3: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AnchorInfo { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined, - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: AnchorInfo): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): AnchorInfo { - const message = createBaseAnchorInfo(); - message.iri = object.iri ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: AnchorInfoAmino): AnchorInfo { - const message = createBaseAnchorInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: AnchorInfo): AnchorInfoAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: AnchorInfoAminoMsg): AnchorInfo { - return AnchorInfo.fromAmino(object.value); - }, - fromProtoMsg(message: AnchorInfoProtoMsg): AnchorInfo { - return AnchorInfo.decode(message.value); - }, - toProto(message: AnchorInfo): Uint8Array { - return AnchorInfo.encode(message).finish(); - }, - toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg { - return { - typeUrl: "/regen.data.v1.AnchorInfo", - value: AnchorInfo.encode(message).finish() - }; - } -}; -function createBaseAttestationInfo(): AttestationInfo { - return { - iri: "", - attestor: "", - timestamp: undefined - }; -} -export const AttestationInfo = { - typeUrl: "/regen.data.v1.AttestationInfo", - encode(message: AttestationInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttestationInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - case 3: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AttestationInfo { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - attestor: isSet(object.attestor) ? String(object.attestor) : "", - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: AttestationInfo): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.attestor !== undefined && (obj.attestor = message.attestor); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): AttestationInfo { - const message = createBaseAttestationInfo(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: AttestationInfoAmino): AttestationInfo { - const message = createBaseAttestationInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: AttestationInfo): AttestationInfoAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: AttestationInfoAminoMsg): AttestationInfo { - return AttestationInfo.fromAmino(object.value); - }, - fromProtoMsg(message: AttestationInfoProtoMsg): AttestationInfo { - return AttestationInfo.decode(message.value); - }, - toProto(message: AttestationInfo): Uint8Array { - return AttestationInfo.encode(message).finish(); - }, - toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg { - return { - typeUrl: "/regen.data.v1.AttestationInfo", - value: AttestationInfo.encode(message).finish() - }; - } -}; -function createBaseResolverInfo(): ResolverInfo { - return { - id: BigInt(0), - url: "", - manager: "" - }; -} -export const ResolverInfo = { - typeUrl: "/regen.data.v1.ResolverInfo", - encode(message: ResolverInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager !== "") { - writer.uint32(26).string(message.manager); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolverInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResolverInfo { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - url: isSet(object.url) ? String(object.url) : "", - manager: isSet(object.manager) ? String(object.manager) : "" - }; - }, - toJSON(message: ResolverInfo): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.url !== undefined && (obj.url = message.url); - message.manager !== undefined && (obj.manager = message.manager); - return obj; - }, - fromPartial(object: Partial): ResolverInfo { - const message = createBaseResolverInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? ""; - return message; - }, - fromAmino(object: ResolverInfoAmino): ResolverInfo { - const message = createBaseResolverInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - return message; - }, - toAmino(message: ResolverInfo): ResolverInfoAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager === "" ? undefined : message.manager; - return obj; - }, - fromAminoMsg(object: ResolverInfoAminoMsg): ResolverInfo { - return ResolverInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ResolverInfoProtoMsg): ResolverInfo { - return ResolverInfo.decode(message.value); - }, - toProto(message: ResolverInfo): Uint8Array { - return ResolverInfo.encode(message).finish(); - }, - toProtoMsg(message: ResolverInfo): ResolverInfoProtoMsg { - return { - typeUrl: "/regen.data.v1.ResolverInfo", - value: ResolverInfo.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/state.ts b/packages/api/src/codegen/regen/data/v1/state.ts deleted file mode 100644 index c044e0d7..00000000 --- a/packages/api/src/codegen/regen/data/v1/state.ts +++ /dev/null @@ -1,632 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** DataID stores a compact data ID and its full IRI. */ -export interface DataID { - /** id is the compact automatically-generated data ID. */ - id: Uint8Array; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri: string; -} -export interface DataIDProtoMsg { - typeUrl: "/regen.data.v1.DataID"; - value: Uint8Array; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDAmino { - /** id is the compact automatically-generated data ID. */ - id?: string; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri?: string; -} -export interface DataIDAminoMsg { - type: "/regen.data.v1.DataID"; - value: DataIDAmino; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDSDKType { - id: Uint8Array; - iri: string; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchor { - /** id is the compact data ID. */ - id: Uint8Array; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: Timestamp; -} -export interface DataAnchorProtoMsg { - typeUrl: "/regen.data.v1.DataAnchor"; - value: Uint8Array; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorAmino { - /** id is the compact data ID. */ - id?: string; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: string; -} -export interface DataAnchorAminoMsg { - type: "/regen.data.v1.DataAnchor"; - value: DataAnchorAmino; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorSDKType { - id: Uint8Array; - timestamp?: TimestampSDKType; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestor { - /** id is the compact data ID. */ - id: Uint8Array; - /** attestor is the account address of the attestor. */ - attestor: Uint8Array; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: Timestamp; -} -export interface DataAttestorProtoMsg { - typeUrl: "/regen.data.v1.DataAttestor"; - value: Uint8Array; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorAmino { - /** id is the compact data ID. */ - id?: string; - /** attestor is the account address of the attestor. */ - attestor?: string; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: string; -} -export interface DataAttestorAminoMsg { - type: "/regen.data.v1.DataAttestor"; - value: DataAttestorAmino; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorSDKType { - id: Uint8Array; - attestor: Uint8Array; - timestamp?: TimestampSDKType; -} -/** Resolver describes a data resolver. */ -export interface Resolver { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager: Uint8Array; -} -export interface ResolverProtoMsg { - typeUrl: "/regen.data.v1.Resolver"; - value: Uint8Array; -} -/** Resolver describes a data resolver. */ -export interface ResolverAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager?: string; -} -export interface ResolverAminoMsg { - type: "/regen.data.v1.Resolver"; - value: ResolverAmino; -} -/** Resolver describes a data resolver. */ -export interface ResolverSDKType { - id: bigint; - url: string; - manager: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolver { - /** id is the compact data ID. */ - id: Uint8Array; - /** resolver_id is the ID of the resolver. */ - resolverId: bigint; -} -export interface DataResolverProtoMsg { - typeUrl: "/regen.data.v1.DataResolver"; - value: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverAmino { - /** id is the compact data ID. */ - id?: string; - /** resolver_id is the ID of the resolver. */ - resolver_id?: string; -} -export interface DataResolverAminoMsg { - type: "/regen.data.v1.DataResolver"; - value: DataResolverAmino; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverSDKType { - id: Uint8Array; - resolver_id: bigint; -} -function createBaseDataID(): DataID { - return { - id: new Uint8Array(), - iri: "" - }; -} -export const DataID = { - typeUrl: "/regen.data.v1.DataID", - encode(message: DataID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DataID { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DataID { - return { - id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(), - iri: isSet(object.iri) ? String(object.iri) : "" - }; - }, - toJSON(message: DataID): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = base64FromBytes(message.id !== undefined ? message.id : new Uint8Array())); - message.iri !== undefined && (obj.iri = message.iri); - return obj; - }, - fromPartial(object: Partial): DataID { - const message = createBaseDataID(); - message.id = object.id ?? new Uint8Array(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object: DataIDAmino): DataID { - const message = createBaseDataID(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message: DataID): DataIDAmino { - const obj: any = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object: DataIDAminoMsg): DataID { - return DataID.fromAmino(object.value); - }, - fromProtoMsg(message: DataIDProtoMsg): DataID { - return DataID.decode(message.value); - }, - toProto(message: DataID): Uint8Array { - return DataID.encode(message).finish(); - }, - toProtoMsg(message: DataID): DataIDProtoMsg { - return { - typeUrl: "/regen.data.v1.DataID", - value: DataID.encode(message).finish() - }; - } -}; -function createBaseDataAnchor(): DataAnchor { - return { - id: new Uint8Array(), - timestamp: undefined - }; -} -export const DataAnchor = { - typeUrl: "/regen.data.v1.DataAnchor", - encode(message: DataAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DataAnchor { - return { - id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(), - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: DataAnchor): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = base64FromBytes(message.id !== undefined ? message.id : new Uint8Array())); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): DataAnchor { - const message = createBaseDataAnchor(); - message.id = object.id ?? new Uint8Array(); - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: DataAnchorAmino): DataAnchor { - const message = createBaseDataAnchor(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: DataAnchor): DataAnchorAmino { - const obj: any = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: DataAnchorAminoMsg): DataAnchor { - return DataAnchor.fromAmino(object.value); - }, - fromProtoMsg(message: DataAnchorProtoMsg): DataAnchor { - return DataAnchor.decode(message.value); - }, - toProto(message: DataAnchor): Uint8Array { - return DataAnchor.encode(message).finish(); - }, - toProtoMsg(message: DataAnchor): DataAnchorProtoMsg { - return { - typeUrl: "/regen.data.v1.DataAnchor", - value: DataAnchor.encode(message).finish() - }; - } -}; -function createBaseDataAttestor(): DataAttestor { - return { - id: new Uint8Array(), - attestor: new Uint8Array(), - timestamp: undefined - }; -} -export const DataAttestor = { - typeUrl: "/regen.data.v1.DataAttestor", - encode(message: DataAttestor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.attestor.length !== 0) { - writer.uint32(18).bytes(message.attestor); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAttestor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.attestor = reader.bytes(); - break; - case 3: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DataAttestor { - return { - id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(), - attestor: isSet(object.attestor) ? bytesFromBase64(object.attestor) : new Uint8Array(), - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: DataAttestor): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = base64FromBytes(message.id !== undefined ? message.id : new Uint8Array())); - message.attestor !== undefined && (obj.attestor = base64FromBytes(message.attestor !== undefined ? message.attestor : new Uint8Array())); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): DataAttestor { - const message = createBaseDataAttestor(); - message.id = object.id ?? new Uint8Array(); - message.attestor = object.attestor ?? new Uint8Array(); - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: DataAttestorAmino): DataAttestor { - const message = createBaseDataAttestor(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = bytesFromBase64(object.attestor); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: DataAttestor): DataAttestorAmino { - const obj: any = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.attestor = message.attestor ? base64FromBytes(message.attestor) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: DataAttestorAminoMsg): DataAttestor { - return DataAttestor.fromAmino(object.value); - }, - fromProtoMsg(message: DataAttestorProtoMsg): DataAttestor { - return DataAttestor.decode(message.value); - }, - toProto(message: DataAttestor): Uint8Array { - return DataAttestor.encode(message).finish(); - }, - toProtoMsg(message: DataAttestor): DataAttestorProtoMsg { - return { - typeUrl: "/regen.data.v1.DataAttestor", - value: DataAttestor.encode(message).finish() - }; - } -}; -function createBaseResolver(): Resolver { - return { - id: BigInt(0), - url: "", - manager: new Uint8Array() - }; -} -export const Resolver = { - typeUrl: "/regen.data.v1.Resolver", - encode(message: Resolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager.length !== 0) { - writer.uint32(26).bytes(message.manager); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Resolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Resolver { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - url: isSet(object.url) ? String(object.url) : "", - manager: isSet(object.manager) ? bytesFromBase64(object.manager) : new Uint8Array() - }; - }, - toJSON(message: Resolver): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.url !== undefined && (obj.url = message.url); - message.manager !== undefined && (obj.manager = base64FromBytes(message.manager !== undefined ? message.manager : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Resolver { - const message = createBaseResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? new Uint8Array(); - return message; - }, - fromAmino(object: ResolverAmino): Resolver { - const message = createBaseResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = bytesFromBase64(object.manager); - } - return message; - }, - toAmino(message: Resolver): ResolverAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager ? base64FromBytes(message.manager) : undefined; - return obj; - }, - fromAminoMsg(object: ResolverAminoMsg): Resolver { - return Resolver.fromAmino(object.value); - }, - fromProtoMsg(message: ResolverProtoMsg): Resolver { - return Resolver.decode(message.value); - }, - toProto(message: Resolver): Uint8Array { - return Resolver.encode(message).finish(); - }, - toProtoMsg(message: Resolver): ResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.Resolver", - value: Resolver.encode(message).finish() - }; - } -}; -function createBaseDataResolver(): DataResolver { - return { - id: new Uint8Array(), - resolverId: BigInt(0) - }; -} -export const DataResolver = { - typeUrl: "/regen.data.v1.DataResolver", - encode(message: DataResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DataResolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DataResolver { - return { - id: isSet(object.id) ? bytesFromBase64(object.id) : new Uint8Array(), - resolverId: isSet(object.resolverId) ? BigInt(object.resolverId.toString()) : BigInt(0) - }; - }, - toJSON(message: DataResolver): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = base64FromBytes(message.id !== undefined ? message.id : new Uint8Array())); - message.resolverId !== undefined && (obj.resolverId = (message.resolverId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): DataResolver { - const message = createBaseDataResolver(); - message.id = object.id ?? new Uint8Array(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: DataResolverAmino): DataResolver { - const message = createBaseDataResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message: DataResolver): DataResolverAmino { - const obj: any = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: DataResolverAminoMsg): DataResolver { - return DataResolver.fromAmino(object.value); - }, - fromProtoMsg(message: DataResolverProtoMsg): DataResolver { - return DataResolver.decode(message.value); - }, - toProto(message: DataResolver): Uint8Array { - return DataResolver.encode(message).finish(); - }, - toProtoMsg(message: DataResolver): DataResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.DataResolver", - value: DataResolver.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/tx.amino.ts b/packages/api/src/codegen/regen/data/v1/tx.amino.ts deleted file mode 100644 index cd6bd3f9..00000000 --- a/packages/api/src/codegen/regen/data/v1/tx.amino.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export const AminoConverter = { - "/regen.data.v1.MsgAnchor": { - aminoType: "regen-ledger/MsgAnchor", - toAmino: MsgAnchor.toAmino, - fromAmino: MsgAnchor.fromAmino - }, - "/regen.data.v1.MsgAttest": { - aminoType: "regen-ledger/MsgAttest", - toAmino: MsgAttest.toAmino, - fromAmino: MsgAttest.fromAmino - }, - "/regen.data.v1.MsgDefineResolver": { - aminoType: "regen-ledger/MsgDefineResolver", - toAmino: MsgDefineResolver.toAmino, - fromAmino: MsgDefineResolver.fromAmino - }, - "/regen.data.v1.MsgRegisterResolver": { - aminoType: "regen-ledger/MsgRegisterResolver", - toAmino: MsgRegisterResolver.toAmino, - fromAmino: MsgRegisterResolver.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/tx.registry.ts b/packages/api/src/codegen/regen/data/v1/tx.registry.ts deleted file mode 100644 index 31af915c..00000000 --- a/packages/api/src/codegen/regen/data/v1/tx.registry.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.data.v1.MsgAnchor", MsgAnchor], ["/regen.data.v1.MsgAttest", MsgAttest], ["/regen.data.v1.MsgDefineResolver", MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", MsgRegisterResolver]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - anchor(value: MsgAnchor) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.encode(value).finish() - }; - }, - attest(value: MsgAttest) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.encode(value).finish() - }; - }, - defineResolver(value: MsgDefineResolver) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.encode(value).finish() - }; - }, - registerResolver(value: MsgRegisterResolver) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.encode(value).finish() - }; - } - }, - withTypeUrl: { - anchor(value: MsgAnchor) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value - }; - }, - attest(value: MsgAttest) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value - }; - }, - defineResolver(value: MsgDefineResolver) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value - }; - }, - registerResolver(value: MsgRegisterResolver) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value - }; - } - }, - toJSON: { - anchor(value: MsgAnchor) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.toJSON(value) - }; - }, - attest(value: MsgAttest) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.toJSON(value) - }; - }, - defineResolver(value: MsgDefineResolver) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.toJSON(value) - }; - }, - registerResolver(value: MsgRegisterResolver) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.toJSON(value) - }; - } - }, - fromJSON: { - anchor(value: any) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.fromJSON(value) - }; - }, - attest(value: any) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.fromJSON(value) - }; - }, - defineResolver(value: any) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.fromJSON(value) - }; - }, - registerResolver(value: any) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.fromJSON(value) - }; - } - }, - fromPartial: { - anchor(value: MsgAnchor) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.fromPartial(value) - }; - }, - attest(value: MsgAttest) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.fromPartial(value) - }; - }, - defineResolver(value: MsgDefineResolver) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.fromPartial(value) - }; - }, - registerResolver(value: MsgRegisterResolver) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/data/v1/tx.rpc.msg.ts deleted file mode 100644 index 9aa16713..00000000 --- a/packages/api/src/codegen/regen/data/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; -/** Msg is the regen.data.v1 Msg service */ -export interface Msg { - /** - * Anchor "anchors" a piece of data to the blockchain based on its secure - * hash, effectively providing a tamper resistant timestamp. - * - * The sender in Anchor is not attesting to the veracity of the underlying - * data. They can simply be an intermediary providing timestamp services. - * Attest should be used to create a digital signature attesting to the - * veracity of some piece of data. - */ - anchor(request: MsgAnchor): Promise; - /** - * Attest allows for digital signing of an arbitrary piece of data on the - * blockchain. By attesting to data, the attestor is making a statement about - * the veracity of the data itself. It is like signing a legal document, - * meaning that I agree to all conditions and to the best of my knowledge - * everything is true. When anchoring data, the sender is not attesting to the - * veracity of the data, they are simply communicating that it exists. - * - * On-chain signatures have the following benefits: - * - on-chain identities can be managed using different cryptographic keys - * that change over time through key rotation practices - * - an on-chain identity may represent an organization and through delegation - * individual members may sign on behalf of the group - * - the blockchain transaction envelope provides built-in replay protection - * and timestamping - * - * Attest implicitly calls Anchor if the data was not already anchored. - * - * Attest can be called multiple times for the same content hash with - * different attestors and those attestors will be appended to the list of - * attestors. If the same attestor attempts to attest to the same piece of - * data, the attestor will be ignored and a new attestation with a new - * timestamp will not be added. - */ - attest(request: MsgAttest): Promise; - /** - * DefineResolver defines a resolver URL and assigns it a new integer ID - * that can be used in calls to RegisterResolver. - */ - defineResolver(request: MsgDefineResolver): Promise; - /** RegisterResolver registers data content hashes */ - registerResolver(request: MsgRegisterResolver): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.anchor = this.anchor.bind(this); - this.attest = this.attest.bind(this); - this.defineResolver = this.defineResolver.bind(this); - this.registerResolver = this.registerResolver.bind(this); - } - anchor(request: MsgAnchor): Promise { - const data = MsgAnchor.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); - return promise.then(data => MsgAnchorResponse.decode(new BinaryReader(data))); - } - attest(request: MsgAttest): Promise { - const data = MsgAttest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); - return promise.then(data => MsgAttestResponse.decode(new BinaryReader(data))); - } - defineResolver(request: MsgDefineResolver): Promise { - const data = MsgDefineResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); - return promise.then(data => MsgDefineResolverResponse.decode(new BinaryReader(data))); - } - registerResolver(request: MsgRegisterResolver): Promise { - const data = MsgRegisterResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); - return promise.then(data => MsgRegisterResolverResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/tx.ts b/packages/api/src/codegen/regen/data/v1/tx.ts deleted file mode 100644 index 7c89be14..00000000 --- a/packages/api/src/codegen/regen/data/v1/tx.ts +++ /dev/null @@ -1,989 +0,0 @@ -import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** MsgAnchor is the Msg/Anchor request type. */ -export interface MsgAnchor { - /** - * sender is the address of the sender of the transaction. The sender in - * Anchor is not attesting to the veracity of the underlying data. They - * can simply be an intermediary providing services. - */ - sender: string; - /** content_hash is the content hash for the data to anchor. */ - contentHash?: ContentHash; -} -export interface MsgAnchorProtoMsg { - typeUrl: "/regen.data.v1.MsgAnchor"; - value: Uint8Array; -} -/** MsgAnchor is the Msg/Anchor request type. */ -export interface MsgAnchorAmino { - /** - * sender is the address of the sender of the transaction. The sender in - * Anchor is not attesting to the veracity of the underlying data. They - * can simply be an intermediary providing services. - */ - sender?: string; - /** content_hash is the content hash for the data to anchor. */ - content_hash?: ContentHashAmino; -} -export interface MsgAnchorAminoMsg { - type: "regen-ledger/MsgAnchor"; - value: MsgAnchorAmino; -} -/** MsgAnchor is the Msg/Anchor request type. */ -export interface MsgAnchorSDKType { - sender: string; - content_hash?: ContentHashSDKType; -} -/** MsgAnchor is the Msg/Anchor response type. */ -export interface MsgAnchorResponse { - /** iri is the IRI of the data that was anchored. */ - iri: string; - /** timestamp is the time at which the data was anchored. */ - timestamp?: Timestamp; -} -export interface MsgAnchorResponseProtoMsg { - typeUrl: "/regen.data.v1.MsgAnchorResponse"; - value: Uint8Array; -} -/** MsgAnchor is the Msg/Anchor response type. */ -export interface MsgAnchorResponseAmino { - /** iri is the IRI of the data that was anchored. */ - iri?: string; - /** timestamp is the time at which the data was anchored. */ - timestamp?: string; -} -export interface MsgAnchorResponseAminoMsg { - type: "/regen.data.v1.MsgAnchorResponse"; - value: MsgAnchorResponseAmino; -} -/** MsgAnchor is the Msg/Anchor response type. */ -export interface MsgAnchorResponseSDKType { - iri: string; - timestamp?: TimestampSDKType; -} -/** MsgAttest is the Msg/Attest request type. */ -export interface MsgAttest { - /** - * attestor is the addresses of the account attesting to the veracity of the - * data. By making an Attest request, the attestor is attesting to the - * veracity of the data referenced by the IRI. The precise meaning of this may - * vary depending on the underlying data. - */ - attestor: string; - /** - * content_hashes are the content hashes for anchored data. Only RDF graph - * data can be signed as its data model is intended to specifically convey - * semantic meaning. - */ - contentHashes: ContentHash_Graph[]; -} -export interface MsgAttestProtoMsg { - typeUrl: "/regen.data.v1.MsgAttest"; - value: Uint8Array; -} -/** MsgAttest is the Msg/Attest request type. */ -export interface MsgAttestAmino { - /** - * attestor is the addresses of the account attesting to the veracity of the - * data. By making an Attest request, the attestor is attesting to the - * veracity of the data referenced by the IRI. The precise meaning of this may - * vary depending on the underlying data. - */ - attestor?: string; - /** - * content_hashes are the content hashes for anchored data. Only RDF graph - * data can be signed as its data model is intended to specifically convey - * semantic meaning. - */ - content_hashes?: ContentHash_GraphAmino[]; -} -export interface MsgAttestAminoMsg { - type: "regen-ledger/MsgAttest"; - value: MsgAttestAmino; -} -/** MsgAttest is the Msg/Attest request type. */ -export interface MsgAttestSDKType { - attestor: string; - content_hashes: ContentHash_GraphSDKType[]; -} -/** MsgAttestResponse is the Msg/Attest response type. */ -export interface MsgAttestResponse { - /** - * iris are the IRIs of the data that was attested to. If the attestor attests - * to the same piece of data, the previous attestation will not be updated and - * the IRI will not be included in this list. - */ - iris: string[]; - /** timestamp is the time at which any new attestations were made. */ - timestamp?: Timestamp; -} -export interface MsgAttestResponseProtoMsg { - typeUrl: "/regen.data.v1.MsgAttestResponse"; - value: Uint8Array; -} -/** MsgAttestResponse is the Msg/Attest response type. */ -export interface MsgAttestResponseAmino { - /** - * iris are the IRIs of the data that was attested to. If the attestor attests - * to the same piece of data, the previous attestation will not be updated and - * the IRI will not be included in this list. - */ - iris?: string[]; - /** timestamp is the time at which any new attestations were made. */ - timestamp?: string; -} -export interface MsgAttestResponseAminoMsg { - type: "/regen.data.v1.MsgAttestResponse"; - value: MsgAttestResponseAmino; -} -/** MsgAttestResponse is the Msg/Attest response type. */ -export interface MsgAttestResponseSDKType { - iris: string[]; - timestamp?: TimestampSDKType; -} -/** MsgDefineResolver is the Msg/DefineResolver request type. */ -export interface MsgDefineResolver { - /** - * manager is the address of the resolver manager. The manager is able - * to make future calls using the ID returned by this operation with - * Msg/RegisterResolver. To authorize other accounts to register resolvers, - * the manager should make use of cosmos.authz. - */ - manager: string; - /** - * resolver_url is a resolver URL which should refer to an HTTP service - * which will respond to a GET request with the IRI of a ContentHash - * and return the content if it exists or a 404. For graph data, resolvers - * should use the HTTP Accept header to negotiate the RDF serialization - * format. - */ - resolverUrl: string; -} -export interface MsgDefineResolverProtoMsg { - typeUrl: "/regen.data.v1.MsgDefineResolver"; - value: Uint8Array; -} -/** MsgDefineResolver is the Msg/DefineResolver request type. */ -export interface MsgDefineResolverAmino { - /** - * manager is the address of the resolver manager. The manager is able - * to make future calls using the ID returned by this operation with - * Msg/RegisterResolver. To authorize other accounts to register resolvers, - * the manager should make use of cosmos.authz. - */ - manager?: string; - /** - * resolver_url is a resolver URL which should refer to an HTTP service - * which will respond to a GET request with the IRI of a ContentHash - * and return the content if it exists or a 404. For graph data, resolvers - * should use the HTTP Accept header to negotiate the RDF serialization - * format. - */ - resolver_url?: string; -} -export interface MsgDefineResolverAminoMsg { - type: "regen-ledger/MsgDefineResolver"; - value: MsgDefineResolverAmino; -} -/** MsgDefineResolver is the Msg/DefineResolver request type. */ -export interface MsgDefineResolverSDKType { - manager: string; - resolver_url: string; -} -/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ -export interface MsgDefineResolverResponse { - /** - * resolver_id is the integer ID of the resolver to be used in - * MsgRegisterResolver. - */ - resolverId: bigint; -} -export interface MsgDefineResolverResponseProtoMsg { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse"; - value: Uint8Array; -} -/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ -export interface MsgDefineResolverResponseAmino { - /** - * resolver_id is the integer ID of the resolver to be used in - * MsgRegisterResolver. - */ - resolver_id?: string; -} -export interface MsgDefineResolverResponseAminoMsg { - type: "/regen.data.v1.MsgDefineResolverResponse"; - value: MsgDefineResolverResponseAmino; -} -/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ -export interface MsgDefineResolverResponseSDKType { - resolver_id: bigint; -} -/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ -export interface MsgRegisterResolver { - /** - * manager is the address of the resolver manager who registered this - * resolver with Msg/DefinedResolver. - */ - manager: string; - /** resolver_id is the ID of a resolver defined with Msg/DefineResolver. */ - resolverId: bigint; - /** - * content_hashes is a list of content hashes which the resolver claims to - * serve. - */ - contentHashes: ContentHash[]; -} -export interface MsgRegisterResolverProtoMsg { - typeUrl: "/regen.data.v1.MsgRegisterResolver"; - value: Uint8Array; -} -/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ -export interface MsgRegisterResolverAmino { - /** - * manager is the address of the resolver manager who registered this - * resolver with Msg/DefinedResolver. - */ - manager?: string; - /** resolver_id is the ID of a resolver defined with Msg/DefineResolver. */ - resolver_id?: string; - /** - * content_hashes is a list of content hashes which the resolver claims to - * serve. - */ - content_hashes?: ContentHashAmino[]; -} -export interface MsgRegisterResolverAminoMsg { - type: "regen-ledger/MsgRegisterResolver"; - value: MsgRegisterResolverAmino; -} -/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ -export interface MsgRegisterResolverSDKType { - manager: string; - resolver_id: bigint; - content_hashes: ContentHashSDKType[]; -} -/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ -export interface MsgRegisterResolverResponse {} -export interface MsgRegisterResolverResponseProtoMsg { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse"; - value: Uint8Array; -} -/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ -export interface MsgRegisterResolverResponseAmino {} -export interface MsgRegisterResolverResponseAminoMsg { - type: "/regen.data.v1.MsgRegisterResolverResponse"; - value: MsgRegisterResolverResponseAmino; -} -/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ -export interface MsgRegisterResolverResponseSDKType {} -function createBaseMsgAnchor(): MsgAnchor { - return { - sender: "", - contentHash: undefined - }; -} -export const MsgAnchor = { - typeUrl: "/regen.data.v1.MsgAnchor", - encode(message: MsgAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAnchor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAnchor { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - contentHash: isSet(object.contentHash) ? ContentHash.fromJSON(object.contentHash) : undefined - }; - }, - toJSON(message: MsgAnchor): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.contentHash !== undefined && (obj.contentHash = message.contentHash ? ContentHash.toJSON(message.contentHash) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgAnchor { - const message = createBaseMsgAnchor(); - message.sender = object.sender ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object: MsgAnchorAmino): MsgAnchor { - const message = createBaseMsgAnchor(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message: MsgAnchor): MsgAnchorAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object: MsgAnchorAminoMsg): MsgAnchor { - return MsgAnchor.fromAmino(object.value); - }, - toAminoMsg(message: MsgAnchor): MsgAnchorAminoMsg { - return { - type: "regen-ledger/MsgAnchor", - value: MsgAnchor.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAnchorProtoMsg): MsgAnchor { - return MsgAnchor.decode(message.value); - }, - toProto(message: MsgAnchor): Uint8Array { - return MsgAnchor.encode(message).finish(); - }, - toProtoMsg(message: MsgAnchor): MsgAnchorProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.encode(message).finish() - }; - } -}; -function createBaseMsgAnchorResponse(): MsgAnchorResponse { - return { - iri: "", - timestamp: undefined - }; -} -export const MsgAnchorResponse = { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - encode(message: MsgAnchorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAnchorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAnchorResponse { - return { - iri: isSet(object.iri) ? String(object.iri) : "", - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: MsgAnchorResponse): unknown { - const obj: any = {}; - message.iri !== undefined && (obj.iri = message.iri); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgAnchorResponse { - const message = createBaseMsgAnchorResponse(); - message.iri = object.iri ?? ""; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: MsgAnchorResponseAmino): MsgAnchorResponse { - const message = createBaseMsgAnchorResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: MsgAnchorResponse): MsgAnchorResponseAmino { - const obj: any = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: MsgAnchorResponseAminoMsg): MsgAnchorResponse { - return MsgAnchorResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAnchorResponseProtoMsg): MsgAnchorResponse { - return MsgAnchorResponse.decode(message.value); - }, - toProto(message: MsgAnchorResponse): Uint8Array { - return MsgAnchorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAnchorResponse): MsgAnchorResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - value: MsgAnchorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAttest(): MsgAttest { - return { - attestor: "", - contentHashes: [] - }; -} -export const MsgAttest = { - typeUrl: "/regen.data.v1.MsgAttest", - encode(message: MsgAttest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - for (const v of message.contentHashes) { - ContentHash_Graph.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAttest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.contentHashes.push(ContentHash_Graph.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAttest { - return { - attestor: isSet(object.attestor) ? String(object.attestor) : "", - contentHashes: Array.isArray(object?.contentHashes) ? object.contentHashes.map((e: any) => ContentHash_Graph.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgAttest): unknown { - const obj: any = {}; - message.attestor !== undefined && (obj.attestor = message.attestor); - if (message.contentHashes) { - obj.contentHashes = message.contentHashes.map(e => e ? ContentHash_Graph.toJSON(e) : undefined); - } else { - obj.contentHashes = []; - } - return obj; - }, - fromPartial(object: Partial): MsgAttest { - const message = createBaseMsgAttest(); - message.attestor = object.attestor ?? ""; - message.contentHashes = object.contentHashes?.map(e => ContentHash_Graph.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgAttestAmino): MsgAttest { - const message = createBaseMsgAttest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - message.contentHashes = object.content_hashes?.map(e => ContentHash_Graph.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgAttest): MsgAttestAmino { - const obj: any = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash_Graph.toAmino(e) : undefined); - } else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object: MsgAttestAminoMsg): MsgAttest { - return MsgAttest.fromAmino(object.value); - }, - toAminoMsg(message: MsgAttest): MsgAttestAminoMsg { - return { - type: "regen-ledger/MsgAttest", - value: MsgAttest.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAttestProtoMsg): MsgAttest { - return MsgAttest.decode(message.value); - }, - toProto(message: MsgAttest): Uint8Array { - return MsgAttest.encode(message).finish(); - }, - toProtoMsg(message: MsgAttest): MsgAttestProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.encode(message).finish() - }; - } -}; -function createBaseMsgAttestResponse(): MsgAttestResponse { - return { - iris: [], - timestamp: undefined - }; -} -export const MsgAttestResponse = { - typeUrl: "/regen.data.v1.MsgAttestResponse", - encode(message: MsgAttestResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.iris) { - writer.uint32(10).string(v!); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAttestResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttestResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iris.push(reader.string()); - break; - case 2: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAttestResponse { - return { - iris: Array.isArray(object?.iris) ? object.iris.map((e: any) => String(e)) : [], - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: MsgAttestResponse): unknown { - const obj: any = {}; - if (message.iris) { - obj.iris = message.iris.map(e => e); - } else { - obj.iris = []; - } - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgAttestResponse { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: MsgAttestResponseAmino): MsgAttestResponse { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: MsgAttestResponse): MsgAttestResponseAmino { - const obj: any = {}; - if (message.iris) { - obj.iris = message.iris.map(e => e); - } else { - obj.iris = message.iris; - } - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: MsgAttestResponseAminoMsg): MsgAttestResponse { - return MsgAttestResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAttestResponseProtoMsg): MsgAttestResponse { - return MsgAttestResponse.decode(message.value); - }, - toProto(message: MsgAttestResponse): Uint8Array { - return MsgAttestResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAttestResponse): MsgAttestResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgAttestResponse", - value: MsgAttestResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolver(): MsgDefineResolver { - return { - manager: "", - resolverUrl: "" - }; -} -export const MsgDefineResolver = { - typeUrl: "/regen.data.v1.MsgDefineResolver", - encode(message: MsgDefineResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverUrl !== "") { - writer.uint32(18).string(message.resolverUrl); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDefineResolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDefineResolver { - return { - manager: isSet(object.manager) ? String(object.manager) : "", - resolverUrl: isSet(object.resolverUrl) ? String(object.resolverUrl) : "" - }; - }, - toJSON(message: MsgDefineResolver): unknown { - const obj: any = {}; - message.manager !== undefined && (obj.manager = message.manager); - message.resolverUrl !== undefined && (obj.resolverUrl = message.resolverUrl); - return obj; - }, - fromPartial(object: Partial): MsgDefineResolver { - const message = createBaseMsgDefineResolver(); - message.manager = object.manager ?? ""; - message.resolverUrl = object.resolverUrl ?? ""; - return message; - }, - fromAmino(object: MsgDefineResolverAmino): MsgDefineResolver { - const message = createBaseMsgDefineResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_url !== undefined && object.resolver_url !== null) { - message.resolverUrl = object.resolver_url; - } - return message; - }, - toAmino(message: MsgDefineResolver): MsgDefineResolverAmino { - const obj: any = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; - return obj; - }, - fromAminoMsg(object: MsgDefineResolverAminoMsg): MsgDefineResolver { - return MsgDefineResolver.fromAmino(object.value); - }, - toAminoMsg(message: MsgDefineResolver): MsgDefineResolverAminoMsg { - return { - type: "regen-ledger/MsgDefineResolver", - value: MsgDefineResolver.toAmino(message) - }; - }, - fromProtoMsg(message: MsgDefineResolverProtoMsg): MsgDefineResolver { - return MsgDefineResolver.decode(message.value); - }, - toProto(message: MsgDefineResolver): Uint8Array { - return MsgDefineResolver.encode(message).finish(); - }, - toProtoMsg(message: MsgDefineResolver): MsgDefineResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolverResponse(): MsgDefineResolverResponse { - return { - resolverId: BigInt(0) - }; -} -export const MsgDefineResolverResponse = { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - encode(message: MsgDefineResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.resolverId !== BigInt(0)) { - writer.uint32(8).uint64(message.resolverId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgDefineResolverResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgDefineResolverResponse { - return { - resolverId: isSet(object.resolverId) ? BigInt(object.resolverId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgDefineResolverResponse): unknown { - const obj: any = {}; - message.resolverId !== undefined && (obj.resolverId = (message.resolverId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgDefineResolverResponse { - const message = createBaseMsgDefineResolverResponse(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgDefineResolverResponseAmino): MsgDefineResolverResponse { - const message = createBaseMsgDefineResolverResponse(); - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message: MsgDefineResolverResponse): MsgDefineResolverResponseAmino { - const obj: any = {}; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgDefineResolverResponseAminoMsg): MsgDefineResolverResponse { - return MsgDefineResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgDefineResolverResponseProtoMsg): MsgDefineResolverResponse { - return MsgDefineResolverResponse.decode(message.value); - }, - toProto(message: MsgDefineResolverResponse): Uint8Array { - return MsgDefineResolverResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgDefineResolverResponse): MsgDefineResolverResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - value: MsgDefineResolverResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolver(): MsgRegisterResolver { - return { - manager: "", - resolverId: BigInt(0), - contentHashes: [] - }; -} -export const MsgRegisterResolver = { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - encode(message: MsgRegisterResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - for (const v of message.contentHashes) { - ContentHash.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterResolver { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - case 3: - message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRegisterResolver { - return { - manager: isSet(object.manager) ? String(object.manager) : "", - resolverId: isSet(object.resolverId) ? BigInt(object.resolverId.toString()) : BigInt(0), - contentHashes: Array.isArray(object?.contentHashes) ? object.contentHashes.map((e: any) => ContentHash.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgRegisterResolver): unknown { - const obj: any = {}; - message.manager !== undefined && (obj.manager = message.manager); - message.resolverId !== undefined && (obj.resolverId = (message.resolverId || BigInt(0)).toString()); - if (message.contentHashes) { - obj.contentHashes = message.contentHashes.map(e => e ? ContentHash.toJSON(e) : undefined); - } else { - obj.contentHashes = []; - } - return obj; - }, - fromPartial(object: Partial): MsgRegisterResolver { - const message = createBaseMsgRegisterResolver(); - message.manager = object.manager ?? ""; - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgRegisterResolverAmino): MsgRegisterResolver { - const message = createBaseMsgRegisterResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgRegisterResolver): MsgRegisterResolverAmino { - const obj: any = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); - } else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object: MsgRegisterResolverAminoMsg): MsgRegisterResolver { - return MsgRegisterResolver.fromAmino(object.value); - }, - toAminoMsg(message: MsgRegisterResolver): MsgRegisterResolverAminoMsg { - return { - type: "regen-ledger/MsgRegisterResolver", - value: MsgRegisterResolver.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRegisterResolverProtoMsg): MsgRegisterResolver { - return MsgRegisterResolver.decode(message.value); - }, - toProto(message: MsgRegisterResolver): Uint8Array { - return MsgRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message: MsgRegisterResolver): MsgRegisterResolverProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolverResponse(): MsgRegisterResolverResponse { - return {}; -} -export const MsgRegisterResolverResponse = { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - encode(_: MsgRegisterResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterResolverResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRegisterResolverResponse { - return {}; - }, - toJSON(_: MsgRegisterResolverResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRegisterResolverResponse { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - fromAmino(_: MsgRegisterResolverResponseAmino): MsgRegisterResolverResponse { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - toAmino(_: MsgRegisterResolverResponse): MsgRegisterResolverResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRegisterResolverResponseAminoMsg): MsgRegisterResolverResponse { - return MsgRegisterResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRegisterResolverResponseProtoMsg): MsgRegisterResolverResponse { - return MsgRegisterResolverResponse.decode(message.value); - }, - toProto(message: MsgRegisterResolverResponse): Uint8Array { - return MsgRegisterResolverResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRegisterResolverResponse): MsgRegisterResolverResponseProtoMsg { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - value: MsgRegisterResolverResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/data/v1/types.ts b/packages/api/src/codegen/regen/data/v1/types.ts deleted file mode 100644 index eb9a6c28..00000000 --- a/packages/api/src/codegen/regen/data/v1/types.ts +++ /dev/null @@ -1,789 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** DigestAlgorithm is the hash digest algorithm */ -export enum DigestAlgorithm { - /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - DIGEST_ALGORITHM_UNSPECIFIED = 0, - /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ - DIGEST_ALGORITHM_BLAKE2B_256 = 1, - UNRECOGNIZED = -1, -} -export const DigestAlgorithmSDKType = DigestAlgorithm; -export const DigestAlgorithmAmino = DigestAlgorithm; -export function digestAlgorithmFromJSON(object: any): DigestAlgorithm { - switch (object) { - case 0: - case "DIGEST_ALGORITHM_UNSPECIFIED": - return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; - case 1: - case "DIGEST_ALGORITHM_BLAKE2B_256": - return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; - case -1: - case "UNRECOGNIZED": - default: - return DigestAlgorithm.UNRECOGNIZED; - } -} -export function digestAlgorithmToJSON(object: DigestAlgorithm): string { - switch (object) { - case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: - return "DIGEST_ALGORITHM_UNSPECIFIED"; - case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: - return "DIGEST_ALGORITHM_BLAKE2B_256"; - case DigestAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ -export enum RawMediaType { - /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ - RAW_MEDIA_TYPE_UNSPECIFIED = 0, - /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ - RAW_MEDIA_TYPE_TEXT_PLAIN = 1, - /** RAW_MEDIA_TYPE_JSON - JSON */ - RAW_MEDIA_TYPE_JSON = 2, - /** RAW_MEDIA_TYPE_CSV - CSV */ - RAW_MEDIA_TYPE_CSV = 3, - /** RAW_MEDIA_TYPE_XML - XML */ - RAW_MEDIA_TYPE_XML = 4, - /** RAW_MEDIA_TYPE_PDF - PDF */ - RAW_MEDIA_TYPE_PDF = 5, - /** RAW_MEDIA_TYPE_TIFF - TIIF */ - RAW_MEDIA_TYPE_TIFF = 16, - /** RAW_MEDIA_TYPE_JPG - JPG */ - RAW_MEDIA_TYPE_JPG = 17, - /** RAW_MEDIA_TYPE_PNG - PNG */ - RAW_MEDIA_TYPE_PNG = 18, - /** RAW_MEDIA_TYPE_SVG - SVG */ - RAW_MEDIA_TYPE_SVG = 19, - /** RAW_MEDIA_TYPE_WEBP - WEBP */ - RAW_MEDIA_TYPE_WEBP = 20, - /** RAW_MEDIA_TYPE_AVIF - AVIF */ - RAW_MEDIA_TYPE_AVIF = 21, - /** RAW_MEDIA_TYPE_GIF - GIF */ - RAW_MEDIA_TYPE_GIF = 22, - /** RAW_MEDIA_TYPE_APNG - APNG */ - RAW_MEDIA_TYPE_APNG = 23, - /** RAW_MEDIA_TYPE_MPEG - MPEG */ - RAW_MEDIA_TYPE_MPEG = 32, - /** RAW_MEDIA_TYPE_MP4 - MP4 */ - RAW_MEDIA_TYPE_MP4 = 33, - /** RAW_MEDIA_TYPE_WEBM - WEBM */ - RAW_MEDIA_TYPE_WEBM = 34, - /** RAW_MEDIA_TYPE_OGG - OGG */ - RAW_MEDIA_TYPE_OGG = 35, - UNRECOGNIZED = -1, -} -export const RawMediaTypeSDKType = RawMediaType; -export const RawMediaTypeAmino = RawMediaType; -export function rawMediaTypeFromJSON(object: any): RawMediaType { - switch (object) { - case 0: - case "RAW_MEDIA_TYPE_UNSPECIFIED": - return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; - case 1: - case "RAW_MEDIA_TYPE_TEXT_PLAIN": - return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; - case 2: - case "RAW_MEDIA_TYPE_JSON": - return RawMediaType.RAW_MEDIA_TYPE_JSON; - case 3: - case "RAW_MEDIA_TYPE_CSV": - return RawMediaType.RAW_MEDIA_TYPE_CSV; - case 4: - case "RAW_MEDIA_TYPE_XML": - return RawMediaType.RAW_MEDIA_TYPE_XML; - case 5: - case "RAW_MEDIA_TYPE_PDF": - return RawMediaType.RAW_MEDIA_TYPE_PDF; - case 16: - case "RAW_MEDIA_TYPE_TIFF": - return RawMediaType.RAW_MEDIA_TYPE_TIFF; - case 17: - case "RAW_MEDIA_TYPE_JPG": - return RawMediaType.RAW_MEDIA_TYPE_JPG; - case 18: - case "RAW_MEDIA_TYPE_PNG": - return RawMediaType.RAW_MEDIA_TYPE_PNG; - case 19: - case "RAW_MEDIA_TYPE_SVG": - return RawMediaType.RAW_MEDIA_TYPE_SVG; - case 20: - case "RAW_MEDIA_TYPE_WEBP": - return RawMediaType.RAW_MEDIA_TYPE_WEBP; - case 21: - case "RAW_MEDIA_TYPE_AVIF": - return RawMediaType.RAW_MEDIA_TYPE_AVIF; - case 22: - case "RAW_MEDIA_TYPE_GIF": - return RawMediaType.RAW_MEDIA_TYPE_GIF; - case 23: - case "RAW_MEDIA_TYPE_APNG": - return RawMediaType.RAW_MEDIA_TYPE_APNG; - case 32: - case "RAW_MEDIA_TYPE_MPEG": - return RawMediaType.RAW_MEDIA_TYPE_MPEG; - case 33: - case "RAW_MEDIA_TYPE_MP4": - return RawMediaType.RAW_MEDIA_TYPE_MP4; - case 34: - case "RAW_MEDIA_TYPE_WEBM": - return RawMediaType.RAW_MEDIA_TYPE_WEBM; - case 35: - case "RAW_MEDIA_TYPE_OGG": - return RawMediaType.RAW_MEDIA_TYPE_OGG; - case -1: - case "UNRECOGNIZED": - default: - return RawMediaType.UNRECOGNIZED; - } -} -export function rawMediaTypeToJSON(object: RawMediaType): string { - switch (object) { - case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: - return "RAW_MEDIA_TYPE_UNSPECIFIED"; - case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: - return "RAW_MEDIA_TYPE_TEXT_PLAIN"; - case RawMediaType.RAW_MEDIA_TYPE_JSON: - return "RAW_MEDIA_TYPE_JSON"; - case RawMediaType.RAW_MEDIA_TYPE_CSV: - return "RAW_MEDIA_TYPE_CSV"; - case RawMediaType.RAW_MEDIA_TYPE_XML: - return "RAW_MEDIA_TYPE_XML"; - case RawMediaType.RAW_MEDIA_TYPE_PDF: - return "RAW_MEDIA_TYPE_PDF"; - case RawMediaType.RAW_MEDIA_TYPE_TIFF: - return "RAW_MEDIA_TYPE_TIFF"; - case RawMediaType.RAW_MEDIA_TYPE_JPG: - return "RAW_MEDIA_TYPE_JPG"; - case RawMediaType.RAW_MEDIA_TYPE_PNG: - return "RAW_MEDIA_TYPE_PNG"; - case RawMediaType.RAW_MEDIA_TYPE_SVG: - return "RAW_MEDIA_TYPE_SVG"; - case RawMediaType.RAW_MEDIA_TYPE_WEBP: - return "RAW_MEDIA_TYPE_WEBP"; - case RawMediaType.RAW_MEDIA_TYPE_AVIF: - return "RAW_MEDIA_TYPE_AVIF"; - case RawMediaType.RAW_MEDIA_TYPE_GIF: - return "RAW_MEDIA_TYPE_GIF"; - case RawMediaType.RAW_MEDIA_TYPE_APNG: - return "RAW_MEDIA_TYPE_APNG"; - case RawMediaType.RAW_MEDIA_TYPE_MPEG: - return "RAW_MEDIA_TYPE_MPEG"; - case RawMediaType.RAW_MEDIA_TYPE_MP4: - return "RAW_MEDIA_TYPE_MP4"; - case RawMediaType.RAW_MEDIA_TYPE_WEBM: - return "RAW_MEDIA_TYPE_WEBM"; - case RawMediaType.RAW_MEDIA_TYPE_OGG: - return "RAW_MEDIA_TYPE_OGG"; - case RawMediaType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ -export enum GraphCanonicalizationAlgorithm { - /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0, - /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ - GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1, - UNRECOGNIZED = -1, -} -export const GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; -export const GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; -export function graphCanonicalizationAlgorithmFromJSON(object: any): GraphCanonicalizationAlgorithm { - switch (object) { - case 0: - case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; - case 1: - case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; - case -1: - case "UNRECOGNIZED": - default: - return GraphCanonicalizationAlgorithm.UNRECOGNIZED; - } -} -export function graphCanonicalizationAlgorithmToJSON(object: GraphCanonicalizationAlgorithm): string { - switch (object) { - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: - return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: - return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; - case GraphCanonicalizationAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ -export enum GraphMerkleTree { - /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ - GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0, - UNRECOGNIZED = -1, -} -export const GraphMerkleTreeSDKType = GraphMerkleTree; -export const GraphMerkleTreeAmino = GraphMerkleTree; -export function graphMerkleTreeFromJSON(object: any): GraphMerkleTree { - switch (object) { - case 0: - case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": - return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; - case -1: - case "UNRECOGNIZED": - default: - return GraphMerkleTree.UNRECOGNIZED; - } -} -export function graphMerkleTreeToJSON(object: GraphMerkleTree): string { - switch (object) { - case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: - return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; - case GraphMerkleTree.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHash { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_Raw; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_Graph; -} -export interface ContentHashProtoMsg { - typeUrl: "/regen.data.v1.ContentHash"; - value: Uint8Array; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashAmino { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_RawAmino; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_GraphAmino; -} -export interface ContentHashAminoMsg { - type: "/regen.data.v1.ContentHash"; - value: ContentHashAmino; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashSDKType { - raw?: ContentHash_RawSDKType; - graph?: ContentHash_GraphSDKType; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_Raw { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - mediaType: RawMediaType; -} -export interface ContentHash_RawProtoMsg { - typeUrl: "/regen.data.v1.Raw"; - value: Uint8Array; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - media_type?: RawMediaType; -} -export interface ContentHash_RawAminoMsg { - type: "/regen.data.v1.Raw"; - value: ContentHash_RawAmino; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - media_type: RawMediaType; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_Graph { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalizationAlgorithm: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkleTree: GraphMerkleTree; -} -export interface ContentHash_GraphProtoMsg { - typeUrl: "/regen.data.v1.Graph"; - value: Uint8Array; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalization_algorithm?: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkle_tree?: GraphMerkleTree; -} -export interface ContentHash_GraphAminoMsg { - type: "/regen.data.v1.Graph"; - value: ContentHash_GraphAmino; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - canonicalization_algorithm: GraphCanonicalizationAlgorithm; - merkle_tree: GraphMerkleTree; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashes { - /** data is a list of content hashes which the resolver claims to serve. */ - contentHashes: ContentHash[]; -} -export interface ContentHashesProtoMsg { - typeUrl: "/regen.data.v1.ContentHashes"; - value: Uint8Array; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesAmino { - /** data is a list of content hashes which the resolver claims to serve. */ - content_hashes?: ContentHashAmino[]; -} -export interface ContentHashesAminoMsg { - type: "/regen.data.v1.ContentHashes"; - value: ContentHashesAmino; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesSDKType { - content_hashes: ContentHashSDKType[]; -} -function createBaseContentHash(): ContentHash { - return { - raw: undefined, - graph: undefined - }; -} -export const ContentHash = { - typeUrl: "/regen.data.v1.ContentHash", - encode(message: ContentHash, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.raw !== undefined) { - ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); - } - if (message.graph !== undefined) { - ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.raw = ContentHash_Raw.decode(reader, reader.uint32()); - break; - case 2: - message.graph = ContentHash_Graph.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ContentHash { - return { - raw: isSet(object.raw) ? ContentHash_Raw.fromJSON(object.raw) : undefined, - graph: isSet(object.graph) ? ContentHash_Graph.fromJSON(object.graph) : undefined - }; - }, - toJSON(message: ContentHash): unknown { - const obj: any = {}; - message.raw !== undefined && (obj.raw = message.raw ? ContentHash_Raw.toJSON(message.raw) : undefined); - message.graph !== undefined && (obj.graph = message.graph ? ContentHash_Graph.toJSON(message.graph) : undefined); - return obj; - }, - fromPartial(object: Partial): ContentHash { - const message = createBaseContentHash(); - message.raw = object.raw !== undefined && object.raw !== null ? ContentHash_Raw.fromPartial(object.raw) : undefined; - message.graph = object.graph !== undefined && object.graph !== null ? ContentHash_Graph.fromPartial(object.graph) : undefined; - return message; - }, - fromAmino(object: ContentHashAmino): ContentHash { - const message = createBaseContentHash(); - if (object.raw !== undefined && object.raw !== null) { - message.raw = ContentHash_Raw.fromAmino(object.raw); - } - if (object.graph !== undefined && object.graph !== null) { - message.graph = ContentHash_Graph.fromAmino(object.graph); - } - return message; - }, - toAmino(message: ContentHash): ContentHashAmino { - const obj: any = {}; - obj.raw = message.raw ? ContentHash_Raw.toAmino(message.raw) : undefined; - obj.graph = message.graph ? ContentHash_Graph.toAmino(message.graph) : undefined; - return obj; - }, - fromAminoMsg(object: ContentHashAminoMsg): ContentHash { - return ContentHash.fromAmino(object.value); - }, - fromProtoMsg(message: ContentHashProtoMsg): ContentHash { - return ContentHash.decode(message.value); - }, - toProto(message: ContentHash): Uint8Array { - return ContentHash.encode(message).finish(); - }, - toProtoMsg(message: ContentHash): ContentHashProtoMsg { - return { - typeUrl: "/regen.data.v1.ContentHash", - value: ContentHash.encode(message).finish() - }; - } -}; -function createBaseContentHash_Raw(): ContentHash_Raw { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - mediaType: 0 - }; -} -export const ContentHash_Raw = { - typeUrl: "/regen.data.v1.Raw", - encode(message: ContentHash_Raw, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.mediaType !== 0) { - writer.uint32(24).int32(message.mediaType); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Raw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = (reader.int32() as any); - break; - case 3: - message.mediaType = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ContentHash_Raw { - return { - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - digestAlgorithm: isSet(object.digestAlgorithm) ? digestAlgorithmFromJSON(object.digestAlgorithm) : -1, - mediaType: isSet(object.mediaType) ? rawMediaTypeFromJSON(object.mediaType) : -1 - }; - }, - toJSON(message: ContentHash_Raw): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.digestAlgorithm !== undefined && (obj.digestAlgorithm = digestAlgorithmToJSON(message.digestAlgorithm)); - message.mediaType !== undefined && (obj.mediaType = rawMediaTypeToJSON(message.mediaType)); - return obj; - }, - fromPartial(object: Partial): ContentHash_Raw { - const message = createBaseContentHash_Raw(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.mediaType = object.mediaType ?? 0; - return message; - }, - fromAmino(object: ContentHash_RawAmino): ContentHash_Raw { - const message = createBaseContentHash_Raw(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.media_type !== undefined && object.media_type !== null) { - message.mediaType = object.media_type; - } - return message; - }, - toAmino(message: ContentHash_Raw): ContentHash_RawAmino { - const obj: any = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; - return obj; - }, - fromAminoMsg(object: ContentHash_RawAminoMsg): ContentHash_Raw { - return ContentHash_Raw.fromAmino(object.value); - }, - fromProtoMsg(message: ContentHash_RawProtoMsg): ContentHash_Raw { - return ContentHash_Raw.decode(message.value); - }, - toProto(message: ContentHash_Raw): Uint8Array { - return ContentHash_Raw.encode(message).finish(); - }, - toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg { - return { - typeUrl: "/regen.data.v1.Raw", - value: ContentHash_Raw.encode(message).finish() - }; - } -}; -function createBaseContentHash_Graph(): ContentHash_Graph { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - canonicalizationAlgorithm: 0, - merkleTree: 0 - }; -} -export const ContentHash_Graph = { - typeUrl: "/regen.data.v1.Graph", - encode(message: ContentHash_Graph, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.canonicalizationAlgorithm !== 0) { - writer.uint32(24).int32(message.canonicalizationAlgorithm); - } - if (message.merkleTree !== 0) { - writer.uint32(32).int32(message.merkleTree); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Graph(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = (reader.int32() as any); - break; - case 3: - message.canonicalizationAlgorithm = (reader.int32() as any); - break; - case 4: - message.merkleTree = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ContentHash_Graph { - return { - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - digestAlgorithm: isSet(object.digestAlgorithm) ? digestAlgorithmFromJSON(object.digestAlgorithm) : -1, - canonicalizationAlgorithm: isSet(object.canonicalizationAlgorithm) ? graphCanonicalizationAlgorithmFromJSON(object.canonicalizationAlgorithm) : -1, - merkleTree: isSet(object.merkleTree) ? graphMerkleTreeFromJSON(object.merkleTree) : -1 - }; - }, - toJSON(message: ContentHash_Graph): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.digestAlgorithm !== undefined && (obj.digestAlgorithm = digestAlgorithmToJSON(message.digestAlgorithm)); - message.canonicalizationAlgorithm !== undefined && (obj.canonicalizationAlgorithm = graphCanonicalizationAlgorithmToJSON(message.canonicalizationAlgorithm)); - message.merkleTree !== undefined && (obj.merkleTree = graphMerkleTreeToJSON(message.merkleTree)); - return obj; - }, - fromPartial(object: Partial): ContentHash_Graph { - const message = createBaseContentHash_Graph(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; - message.merkleTree = object.merkleTree ?? 0; - return message; - }, - fromAmino(object: ContentHash_GraphAmino): ContentHash_Graph { - const message = createBaseContentHash_Graph(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { - message.canonicalizationAlgorithm = object.canonicalization_algorithm; - } - if (object.merkle_tree !== undefined && object.merkle_tree !== null) { - message.merkleTree = object.merkle_tree; - } - return message; - }, - toAmino(message: ContentHash_Graph): ContentHash_GraphAmino { - const obj: any = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; - obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; - return obj; - }, - fromAminoMsg(object: ContentHash_GraphAminoMsg): ContentHash_Graph { - return ContentHash_Graph.fromAmino(object.value); - }, - fromProtoMsg(message: ContentHash_GraphProtoMsg): ContentHash_Graph { - return ContentHash_Graph.decode(message.value); - }, - toProto(message: ContentHash_Graph): Uint8Array { - return ContentHash_Graph.encode(message).finish(); - }, - toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg { - return { - typeUrl: "/regen.data.v1.Graph", - value: ContentHash_Graph.encode(message).finish() - }; - } -}; -function createBaseContentHashes(): ContentHashes { - return { - contentHashes: [] - }; -} -export const ContentHashes = { - typeUrl: "/regen.data.v1.ContentHashes", - encode(message: ContentHashes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.contentHashes) { - ContentHash.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHashes(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ContentHashes { - return { - contentHashes: Array.isArray(object?.contentHashes) ? object.contentHashes.map((e: any) => ContentHash.fromJSON(e)) : [] - }; - }, - toJSON(message: ContentHashes): unknown { - const obj: any = {}; - if (message.contentHashes) { - obj.contentHashes = message.contentHashes.map(e => e ? ContentHash.toJSON(e) : undefined); - } else { - obj.contentHashes = []; - } - return obj; - }, - fromPartial(object: Partial): ContentHashes { - const message = createBaseContentHashes(); - message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ContentHashesAmino): ContentHashes { - const message = createBaseContentHashes(); - message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message: ContentHashes): ContentHashesAmino { - const obj: any = {}; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); - } else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object: ContentHashesAminoMsg): ContentHashes { - return ContentHashes.fromAmino(object.value); - }, - fromProtoMsg(message: ContentHashesProtoMsg): ContentHashes { - return ContentHashes.decode(message.value); - }, - toProto(message: ContentHashes): Uint8Array { - return ContentHashes.encode(message).finish(); - }, - toProtoMsg(message: ContentHashes): ContentHashesProtoMsg { - return { - typeUrl: "/regen.data.v1.ContentHashes", - value: ContentHashes.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/events.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/events.ts deleted file mode 100644 index 763931fe..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/events.ts +++ /dev/null @@ -1,735 +0,0 @@ -import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreate { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator: string; -} -export interface EventCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate"; - value: Uint8Array; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator?: string; -} -export interface EventCreateAminoMsg { - type: "/regen.ecocredit.basket.v1.EventCreate"; - value: EventCreateAmino; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateSDKType { - basket_denom: string; - /** @deprecated */ - curator: string; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPut { - /** owner is the owner of the credits put into the basket. */ - owner: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basketDenom: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventPut"; - value: Uint8Array; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutAmino { - /** owner is the owner of the credits put into the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basket_denom?: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventPutAminoMsg { - type: "/regen.ecocredit.basket.v1.EventPut"; - value: EventPutAmino; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTake { - /** owner is the owner of the credits taken from the basket. */ - owner: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basketDenom: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventTake"; - value: Uint8Array; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeAmino { - /** owner is the owner of the credits taken from the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basket_denom?: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventTakeAminoMsg { - type: "/regen.ecocredit.basket.v1.EventTake"; - value: EventTakeAmino; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCurator { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: Uint8Array; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateCuratorAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: EventUpdateCuratorAmino; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorSDKType { - denom: string; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteria { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: Uint8Array; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateDateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: EventUpdateDateCriteriaAmino; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaSDKType { - denom: string; -} -function createBaseEventCreate(): EventCreate { - return { - basketDenom: "", - curator: "" - }; -} -export const EventCreate = { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - encode(message: EventCreate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.curator !== "") { - writer.uint32(18).string(message.curator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreate { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - curator: isSet(object.curator) ? String(object.curator) : "" - }; - }, - toJSON(message: EventCreate): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.curator !== undefined && (obj.curator = message.curator); - return obj; - }, - fromPartial(object: Partial): EventCreate { - const message = createBaseEventCreate(); - message.basketDenom = object.basketDenom ?? ""; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object: EventCreateAmino): EventCreate { - const message = createBaseEventCreate(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message: EventCreate): EventCreateAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object: EventCreateAminoMsg): EventCreate { - return EventCreate.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateProtoMsg): EventCreate { - return EventCreate.decode(message.value); - }, - toProto(message: EventCreate): Uint8Array { - return EventCreate.encode(message).finish(); - }, - toProtoMsg(message: EventCreate): EventCreateProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - value: EventCreate.encode(message).finish() - }; - } -}; -function createBaseEventPut(): EventPut { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -export const EventPut = { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - encode(message: EventPut, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventPut { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventPut { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => BasketCredit.fromJSON(e)) : [], - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: EventPut): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toJSON(e) : undefined); - } else { - obj.credits = []; - } - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): EventPut { - const message = createBaseEventPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: EventPutAmino): EventPut { - const message = createBaseEventPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: EventPut): EventPutAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: EventPutAminoMsg): EventPut { - return EventPut.fromAmino(object.value); - }, - fromProtoMsg(message: EventPutProtoMsg): EventPut { - return EventPut.decode(message.value); - }, - toProto(message: EventPut): Uint8Array { - return EventPut.encode(message).finish(); - }, - toProtoMsg(message: EventPut): EventPutProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - value: EventPut.encode(message).finish() - }; - } -}; -function createBaseEventTake(): EventTake { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -export const EventTake = { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - encode(message: EventTake, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventTake { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventTake { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => BasketCredit.fromJSON(e)) : [], - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: EventTake): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toJSON(e) : undefined); - } else { - obj.credits = []; - } - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): EventTake { - const message = createBaseEventTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: EventTakeAmino): EventTake { - const message = createBaseEventTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: EventTake): EventTakeAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: EventTakeAminoMsg): EventTake { - return EventTake.fromAmino(object.value); - }, - fromProtoMsg(message: EventTakeProtoMsg): EventTake { - return EventTake.decode(message.value); - }, - toProto(message: EventTake): Uint8Array { - return EventTake.encode(message).finish(); - }, - toProtoMsg(message: EventTake): EventTakeProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - value: EventTake.encode(message).finish() - }; - } -}; -function createBaseEventUpdateCurator(): EventUpdateCurator { - return { - denom: "" - }; -} -export const EventUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - encode(message: EventUpdateCurator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateCurator { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: EventUpdateCurator): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): EventUpdateCurator { - const message = createBaseEventUpdateCurator(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: EventUpdateCuratorAmino): EventUpdateCurator { - const message = createBaseEventUpdateCurator(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: EventUpdateCurator): EventUpdateCuratorAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: EventUpdateCuratorAminoMsg): EventUpdateCurator { - return EventUpdateCurator.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateCuratorProtoMsg): EventUpdateCurator { - return EventUpdateCurator.decode(message.value); - }, - toProto(message: EventUpdateCurator): Uint8Array { - return EventUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - value: EventUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseEventUpdateDateCriteria(): EventUpdateDateCriteria { - return { - denom: "" - }; -} -export const EventUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - encode(message: EventUpdateDateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateDateCriteria { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: EventUpdateDateCriteria): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): EventUpdateDateCriteria { - const message = createBaseEventUpdateDateCriteria(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: EventUpdateDateCriteriaAmino): EventUpdateDateCriteria { - const message = createBaseEventUpdateDateCriteria(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: EventUpdateDateCriteria): EventUpdateDateCriteriaAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: EventUpdateDateCriteriaAminoMsg): EventUpdateDateCriteria { - return EventUpdateDateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateDateCriteriaProtoMsg): EventUpdateDateCriteria { - return EventUpdateDateCriteria.decode(message.value); - }, - toProto(message: EventUpdateDateCriteria): Uint8Array { - return EventUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateDateCriteria): EventUpdateDateCriteriaProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - value: EventUpdateDateCriteria.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.lcd.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/query.lcd.ts deleted file mode 100644 index 52d98baa..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.lcd.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - /* Basket queries one basket by denom. */ - async basket(params: QueryBasketRequest): Promise { - const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; - return await this.req.get(endpoint); - } - /* Baskets lists all baskets in the ecocredit module. */ - async baskets(params: QueryBasketsRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/baskets`; - return await this.req.get(endpoint, options); - } - /* BasketBalances lists the balance of each credit batch in the basket. */ - async basketBalances(params: QueryBasketBalancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; - return await this.req.get(endpoint, options); - } - /* BasketBalance queries the balance of a specific credit batch in the basket. */ - async basketBalance(params: QueryBasketBalanceRequest): Promise { - const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* BasketFee returns the basket creation fee. If not set, a basket creation - fee is not required. - - Since Revision 2 */ - async basketFee(_params: QueryBasketFeeRequest = {}): Promise { - const endpoint = `regen/ecocredit/basket/v1/basket-fee`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.rpc.Query.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/query.rpc.Query.ts deleted file mode 100644 index 31cd7e3a..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.rpc.Query.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; -/** Msg is the regen.ecocredit.basket.v1 Query service. */ -export interface Query { - /** Basket queries one basket by denom. */ - basket(request: QueryBasketRequest): Promise; - /** Baskets lists all baskets in the ecocredit module. */ - baskets(request?: QueryBasketsRequest): Promise; - /** BasketBalances lists the balance of each credit batch in the basket. */ - basketBalances(request: QueryBasketBalancesRequest): Promise; - /** BasketBalance queries the balance of a specific credit batch in the basket. */ - basketBalance(request: QueryBasketBalanceRequest): Promise; - /** - * BasketFee returns the basket creation fee. If not set, a basket creation - * fee is not required. - * - * Since Revision 2 - */ - basketFee(request?: QueryBasketFeeRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - basket(request: QueryBasketRequest): Promise { - const data = QueryBasketRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); - return promise.then(data => QueryBasketResponse.decode(new BinaryReader(data))); - } - baskets(request: QueryBasketsRequest = { - pagination: undefined - }): Promise { - const data = QueryBasketsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); - return promise.then(data => QueryBasketsResponse.decode(new BinaryReader(data))); - } - basketBalances(request: QueryBasketBalancesRequest): Promise { - const data = QueryBasketBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); - return promise.then(data => QueryBasketBalancesResponse.decode(new BinaryReader(data))); - } - basketBalance(request: QueryBasketBalanceRequest): Promise { - const data = QueryBasketBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); - return promise.then(data => QueryBasketBalanceResponse.decode(new BinaryReader(data))); - } - basketFee(request: QueryBasketFeeRequest = {}): Promise { - const data = QueryBasketFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); - return promise.then(data => QueryBasketFeeResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - basket(request: QueryBasketRequest): Promise { - return queryService.basket(request); - }, - baskets(request?: QueryBasketsRequest): Promise { - return queryService.baskets(request); - }, - basketBalances(request: QueryBasketBalancesRequest): Promise { - return queryService.basketBalances(request); - }, - basketBalance(request: QueryBasketBalanceRequest): Promise { - return queryService.basketBalance(request); - }, - basketFee(request?: QueryBasketFeeRequest): Promise { - return queryService.basketFee(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/query.ts deleted file mode 100644 index a8f2b9ee..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/query.ts +++ /dev/null @@ -1,1562 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequest { - /** basket_denom represents the denom of the basket to query. */ - basketDenom: string; -} -export interface QueryBasketRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: Uint8Array; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestAmino { - /** basket_denom represents the denom of the basket to query. */ - basket_denom?: string; -} -export interface QueryBasketRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: QueryBasketRequestAmino; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestSDKType { - basket_denom: string; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponse { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: Basket; - /** classes are the credit classes that can be deposited in the basket. */ - classes: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basketInfo?: BasketInfo; -} -export interface QueryBasketResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: Uint8Array; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseAmino { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: BasketAmino; - /** classes are the credit classes that can be deposited in the basket. */ - classes?: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basket_info?: BasketInfoAmino; -} -export interface QueryBasketResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: QueryBasketResponseAmino; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseSDKType { - /** @deprecated */ - basket?: BasketSDKType; - classes: string[]; - basket_info?: BasketInfoSDKType; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketsRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: Uint8Array; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketsRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: QueryBasketsRequestAmino; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponse { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets: Basket[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - basketsInfo: BasketInfo[]; -} -export interface QueryBasketsResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: Uint8Array; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseAmino { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets?: BasketAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - baskets_info?: BasketInfoAmino[]; -} -export interface QueryBasketsResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: QueryBasketsResponseAmino; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseSDKType { - /** @deprecated */ - baskets: BasketSDKType[]; - pagination?: PageResponseSDKType; - baskets_info: BasketInfoSDKType[]; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: Uint8Array; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketBalancesRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: QueryBasketBalancesRequestAmino; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestSDKType { - basket_denom: string; - pagination?: PageRequestSDKType; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponse { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances: BasketBalance[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balancesInfo: BasketBalanceInfo[]; -} -export interface QueryBasketBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: Uint8Array; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseAmino { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances?: BasketBalanceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balances_info?: BasketBalanceInfoAmino[]; -} -export interface QueryBasketBalancesResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: QueryBasketBalancesResponseAmino; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseSDKType { - /** @deprecated */ - balances: BasketBalanceSDKType[]; - pagination?: PageResponseSDKType; - balances_info: BasketBalanceInfoSDKType[]; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; -} -export interface QueryBasketBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: Uint8Array; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; -} -export interface QueryBasketBalanceRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: QueryBasketBalanceRequestAmino; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestSDKType { - basket_denom: string; - batch_denom: string; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponse { - /** balance is the amount of the queried credit batch in the basket. */ - balance: string; -} -export interface QueryBasketBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: Uint8Array; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseAmino { - /** balance is the amount of the queried credit batch in the basket. */ - balance?: string; -} -export interface QueryBasketBalanceResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: QueryBasketBalanceResponseAmino; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseSDKType { - balance: string; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfo { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; -} -export interface BasketInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo"; - value: Uint8Array; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; -} -export interface BasketInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketInfo"; - value: BasketInfoAmino; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoSDKType { - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - exponent: number; - curator: string; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfo { - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; -} -export interface BasketBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: Uint8Array; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoAmino { - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; -} -export interface BasketBalanceInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: BasketBalanceInfoAmino; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoSDKType { - batch_denom: string; - balance: string; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequest {} -export interface QueryBasketFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: Uint8Array; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestAmino {} -export interface QueryBasketFeeRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: QueryBasketFeeRequestAmino; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestSDKType {} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponse { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface QueryBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: Uint8Array; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface QueryBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: QueryBasketFeeResponseAmino; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseSDKType { - fee?: CoinSDKType; -} -function createBaseQueryBasketRequest(): QueryBasketRequest { - return { - basketDenom: "" - }; -} -export const QueryBasketRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - encode(message: QueryBasketRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketRequest { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "" - }; - }, - toJSON(message: QueryBasketRequest): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - return obj; - }, - fromPartial(object: Partial): QueryBasketRequest { - const message = createBaseQueryBasketRequest(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object: QueryBasketRequestAmino): QueryBasketRequest { - const message = createBaseQueryBasketRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message: QueryBasketRequest): QueryBasketRequestAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object: QueryBasketRequestAminoMsg): QueryBasketRequest { - return QueryBasketRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketRequestProtoMsg): QueryBasketRequest { - return QueryBasketRequest.decode(message.value); - }, - toProto(message: QueryBasketRequest): Uint8Array { - return QueryBasketRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - value: QueryBasketRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketResponse(): QueryBasketResponse { - return { - basket: undefined, - classes: [], - basketInfo: undefined - }; -} -export const QueryBasketResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - encode(message: QueryBasketResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basket !== undefined) { - Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classes) { - writer.uint32(18).string(v!); - } - if (message.basketInfo !== undefined) { - BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basket = Basket.decode(reader, reader.uint32()); - break; - case 2: - message.classes.push(reader.string()); - break; - case 3: - message.basketInfo = BasketInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketResponse { - return { - basket: isSet(object.basket) ? Basket.fromJSON(object.basket) : undefined, - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => String(e)) : [], - basketInfo: isSet(object.basketInfo) ? BasketInfo.fromJSON(object.basketInfo) : undefined - }; - }, - toJSON(message: QueryBasketResponse): unknown { - const obj: any = {}; - message.basket !== undefined && (obj.basket = message.basket ? Basket.toJSON(message.basket) : undefined); - if (message.classes) { - obj.classes = message.classes.map(e => e); - } else { - obj.classes = []; - } - message.basketInfo !== undefined && (obj.basketInfo = message.basketInfo ? BasketInfo.toJSON(message.basketInfo) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBasketResponse { - const message = createBaseQueryBasketResponse(); - message.basket = object.basket !== undefined && object.basket !== null ? Basket.fromPartial(object.basket) : undefined; - message.classes = object.classes?.map(e => e) || []; - message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? BasketInfo.fromPartial(object.basketInfo) : undefined; - return message; - }, - fromAmino(object: QueryBasketResponseAmino): QueryBasketResponse { - const message = createBaseQueryBasketResponse(); - if (object.basket !== undefined && object.basket !== null) { - message.basket = Basket.fromAmino(object.basket); - } - message.classes = object.classes?.map(e => e) || []; - if (object.basket_info !== undefined && object.basket_info !== null) { - message.basketInfo = BasketInfo.fromAmino(object.basket_info); - } - return message; - }, - toAmino(message: QueryBasketResponse): QueryBasketResponseAmino { - const obj: any = {}; - obj.basket = message.basket ? Basket.toAmino(message.basket) : undefined; - if (message.classes) { - obj.classes = message.classes.map(e => e); - } else { - obj.classes = message.classes; - } - obj.basket_info = message.basketInfo ? BasketInfo.toAmino(message.basketInfo) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBasketResponseAminoMsg): QueryBasketResponse { - return QueryBasketResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketResponseProtoMsg): QueryBasketResponse { - return QueryBasketResponse.decode(message.value); - }, - toProto(message: QueryBasketResponse): Uint8Array { - return QueryBasketResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - value: QueryBasketResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsRequest(): QueryBasketsRequest { - return { - pagination: undefined - }; -} -export const QueryBasketsRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - encode(message: QueryBasketsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketsRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBasketsRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBasketsRequest { - const message = createBaseQueryBasketsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBasketsRequestAmino): QueryBasketsRequest { - const message = createBaseQueryBasketsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBasketsRequest): QueryBasketsRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBasketsRequestAminoMsg): QueryBasketsRequest { - return QueryBasketsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketsRequestProtoMsg): QueryBasketsRequest { - return QueryBasketsRequest.decode(message.value); - }, - toProto(message: QueryBasketsRequest): Uint8Array { - return QueryBasketsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - value: QueryBasketsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsResponse(): QueryBasketsResponse { - return { - baskets: [], - pagination: undefined, - basketsInfo: [] - }; -} -export const QueryBasketsResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - encode(message: QueryBasketsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.baskets) { - Basket.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.basketsInfo) { - BasketInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baskets.push(Basket.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.basketsInfo.push(BasketInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketsResponse { - return { - baskets: Array.isArray(object?.baskets) ? object.baskets.map((e: any) => Basket.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined, - basketsInfo: Array.isArray(object?.basketsInfo) ? object.basketsInfo.map((e: any) => BasketInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryBasketsResponse): unknown { - const obj: any = {}; - if (message.baskets) { - obj.baskets = message.baskets.map(e => e ? Basket.toJSON(e) : undefined); - } else { - obj.baskets = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - if (message.basketsInfo) { - obj.basketsInfo = message.basketsInfo.map(e => e ? BasketInfo.toJSON(e) : undefined); - } else { - obj.basketsInfo = []; - } - return obj; - }, - fromPartial(object: Partial): QueryBasketsResponse { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => Basket.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.basketsInfo = object.basketsInfo?.map(e => BasketInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryBasketsResponseAmino): QueryBasketsResponse { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => Basket.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - message.basketsInfo = object.baskets_info?.map(e => BasketInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryBasketsResponse): QueryBasketsResponseAmino { - const obj: any = {}; - if (message.baskets) { - obj.baskets = message.baskets.map(e => e ? Basket.toAmino(e) : undefined); - } else { - obj.baskets = message.baskets; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - if (message.basketsInfo) { - obj.baskets_info = message.basketsInfo.map(e => e ? BasketInfo.toAmino(e) : undefined); - } else { - obj.baskets_info = message.basketsInfo; - } - return obj; - }, - fromAminoMsg(object: QueryBasketsResponseAminoMsg): QueryBasketsResponse { - return QueryBasketsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketsResponseProtoMsg): QueryBasketsResponse { - return QueryBasketsResponse.decode(message.value); - }, - toProto(message: QueryBasketsResponse): Uint8Array { - return QueryBasketsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - value: QueryBasketsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesRequest(): QueryBasketBalancesRequest { - return { - basketDenom: "", - pagination: undefined - }; -} -export const QueryBasketBalancesRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - encode(message: QueryBasketBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketBalancesRequest { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBasketBalancesRequest): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBasketBalancesRequest { - const message = createBaseQueryBasketBalancesRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBasketBalancesRequestAmino): QueryBasketBalancesRequest { - const message = createBaseQueryBasketBalancesRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBasketBalancesRequestAminoMsg): QueryBasketBalancesRequest { - return QueryBasketBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketBalancesRequestProtoMsg): QueryBasketBalancesRequest { - return QueryBasketBalancesRequest.decode(message.value); - }, - toProto(message: QueryBasketBalancesRequest): Uint8Array { - return QueryBasketBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - value: QueryBasketBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesResponse(): QueryBasketBalancesResponse { - return { - balances: [], - pagination: undefined, - balancesInfo: [] - }; -} -export const QueryBasketBalancesResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - encode(message: QueryBasketBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - BasketBalance.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.balancesInfo) { - BasketBalanceInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BasketBalance.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.balancesInfo.push(BasketBalanceInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketBalancesResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => BasketBalance.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined, - balancesInfo: Array.isArray(object?.balancesInfo) ? object.balancesInfo.map((e: any) => BasketBalanceInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryBasketBalancesResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BasketBalance.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - if (message.balancesInfo) { - obj.balancesInfo = message.balancesInfo.map(e => e ? BasketBalanceInfo.toJSON(e) : undefined); - } else { - obj.balancesInfo = []; - } - return obj; - }, - fromPartial(object: Partial): QueryBasketBalancesResponse { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => BasketBalance.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.balancesInfo = object.balancesInfo?.map(e => BasketBalanceInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryBasketBalancesResponseAmino): QueryBasketBalancesResponse { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => BasketBalance.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - message.balancesInfo = object.balances_info?.map(e => BasketBalanceInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BasketBalance.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - if (message.balancesInfo) { - obj.balances_info = message.balancesInfo.map(e => e ? BasketBalanceInfo.toAmino(e) : undefined); - } else { - obj.balances_info = message.balancesInfo; - } - return obj; - }, - fromAminoMsg(object: QueryBasketBalancesResponseAminoMsg): QueryBasketBalancesResponse { - return QueryBasketBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketBalancesResponseProtoMsg): QueryBasketBalancesResponse { - return QueryBasketBalancesResponse.decode(message.value); - }, - toProto(message: QueryBasketBalancesResponse): Uint8Array { - return QueryBasketBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - value: QueryBasketBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceRequest(): QueryBasketBalanceRequest { - return { - basketDenom: "", - batchDenom: "" - }; -} -export const QueryBasketBalanceRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - encode(message: QueryBasketBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketBalanceRequest { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QueryBasketBalanceRequest): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QueryBasketBalanceRequest { - const message = createBaseQueryBasketBalanceRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QueryBasketBalanceRequestAmino): QueryBasketBalanceRequest { - const message = createBaseQueryBasketBalanceRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QueryBasketBalanceRequestAminoMsg): QueryBasketBalanceRequest { - return QueryBasketBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketBalanceRequestProtoMsg): QueryBasketBalanceRequest { - return QueryBasketBalanceRequest.decode(message.value); - }, - toProto(message: QueryBasketBalanceRequest): Uint8Array { - return QueryBasketBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - value: QueryBasketBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceResponse(): QueryBasketBalanceResponse { - return { - balance: "" - }; -} -export const QueryBasketBalanceResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - encode(message: QueryBasketBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.balance !== "") { - writer.uint32(10).string(message.balance); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketBalanceResponse { - return { - balance: isSet(object.balance) ? String(object.balance) : "" - }; - }, - toJSON(message: QueryBasketBalanceResponse): unknown { - const obj: any = {}; - message.balance !== undefined && (obj.balance = message.balance); - return obj; - }, - fromPartial(object: Partial): QueryBasketBalanceResponse { - const message = createBaseQueryBasketBalanceResponse(); - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object: QueryBasketBalanceResponseAmino): QueryBasketBalanceResponse { - const message = createBaseQueryBasketBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseAmino { - const obj: any = {}; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object: QueryBasketBalanceResponseAminoMsg): QueryBasketBalanceResponse { - return QueryBasketBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketBalanceResponseProtoMsg): QueryBasketBalanceResponse { - return QueryBasketBalanceResponse.decode(message.value); - }, - toProto(message: QueryBasketBalanceResponse): Uint8Array { - return QueryBasketBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - value: QueryBasketBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseBasketInfo(): BasketInfo { - return { - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: "" - }; -} -export const BasketInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - encode(message: BasketInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(24).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(48).uint32(message.exponent); - } - if (message.curator !== "") { - writer.uint32(58).string(message.curator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.disableAutoRetire = reader.bool(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 6: - message.exponent = reader.uint32(); - break; - case 7: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketInfo { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - name: isSet(object.name) ? String(object.name) : "", - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - dateCriteria: isSet(object.dateCriteria) ? DateCriteria.fromJSON(object.dateCriteria) : undefined, - exponent: isSet(object.exponent) ? Number(object.exponent) : 0, - curator: isSet(object.curator) ? String(object.curator) : "" - }; - }, - toJSON(message: BasketInfo): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.name !== undefined && (obj.name = message.name); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - message.dateCriteria !== undefined && (obj.dateCriteria = message.dateCriteria ? DateCriteria.toJSON(message.dateCriteria) : undefined); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - message.curator !== undefined && (obj.curator = message.curator); - return obj; - }, - fromPartial(object: Partial): BasketInfo { - const message = createBaseBasketInfo(); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object: BasketInfoAmino): BasketInfo { - const message = createBaseBasketInfo(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message: BasketInfo): BasketInfoAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object: BasketInfoAminoMsg): BasketInfo { - return BasketInfo.fromAmino(object.value); - }, - fromProtoMsg(message: BasketInfoProtoMsg): BasketInfo { - return BasketInfo.decode(message.value); - }, - toProto(message: BasketInfo): Uint8Array { - return BasketInfo.encode(message).finish(); - }, - toProtoMsg(message: BasketInfo): BasketInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - value: BasketInfo.encode(message).finish() - }; - } -}; -function createBaseBasketBalanceInfo(): BasketBalanceInfo { - return { - batchDenom: "", - balance: "" - }; -} -export const BasketBalanceInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - encode(message: BasketBalanceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(18).string(message.balance); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketBalanceInfo { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - balance: isSet(object.balance) ? String(object.balance) : "" - }; - }, - toJSON(message: BasketBalanceInfo): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.balance !== undefined && (obj.balance = message.balance); - return obj; - }, - fromPartial(object: Partial): BasketBalanceInfo { - const message = createBaseBasketBalanceInfo(); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object: BasketBalanceInfoAmino): BasketBalanceInfo { - const message = createBaseBasketBalanceInfo(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message: BasketBalanceInfo): BasketBalanceInfoAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object: BasketBalanceInfoAminoMsg): BasketBalanceInfo { - return BasketBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message: BasketBalanceInfoProtoMsg): BasketBalanceInfo { - return BasketBalanceInfo.decode(message.value); - }, - toProto(message: BasketBalanceInfo): Uint8Array { - return BasketBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - value: BasketBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeRequest(): QueryBasketFeeRequest { - return {}; -} -export const QueryBasketFeeRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - encode(_: QueryBasketFeeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryBasketFeeRequest { - return {}; - }, - toJSON(_: QueryBasketFeeRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryBasketFeeRequest { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - fromAmino(_: QueryBasketFeeRequestAmino): QueryBasketFeeRequest { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - toAmino(_: QueryBasketFeeRequest): QueryBasketFeeRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryBasketFeeRequestAminoMsg): QueryBasketFeeRequest { - return QueryBasketFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketFeeRequestProtoMsg): QueryBasketFeeRequest { - return QueryBasketFeeRequest.decode(message.value); - }, - toProto(message: QueryBasketFeeRequest): Uint8Array { - return QueryBasketFeeRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - value: QueryBasketFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeResponse(): QueryBasketFeeResponse { - return { - fee: undefined - }; -} -export const QueryBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - encode(message: QueryBasketFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBasketFeeResponse { - return { - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: QueryBasketFeeResponse): unknown { - const obj: any = {}; - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBasketFeeResponse { - const message = createBaseQueryBasketFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: QueryBasketFeeResponseAmino): QueryBasketFeeResponse { - const message = createBaseQueryBasketFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: QueryBasketFeeResponse): QueryBasketFeeResponseAmino { - const obj: any = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBasketFeeResponseAminoMsg): QueryBasketFeeResponse { - return QueryBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBasketFeeResponseProtoMsg): QueryBasketFeeResponse { - return QueryBasketFeeResponse.decode(message.value); - }, - toProto(message: QueryBasketFeeResponse): Uint8Array { - return QueryBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBasketFeeResponse): QueryBasketFeeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - value: QueryBasketFeeResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/state.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/state.ts deleted file mode 100644 index 26c396e8..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/state.ts +++ /dev/null @@ -1,708 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../../../helpers"; -/** Basket represents a basket in state. */ -export interface Basket { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id: bigint; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator: Uint8Array; -} -export interface BasketProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.Basket"; - value: Uint8Array; -} -/** Basket represents a basket in state. */ -export interface BasketAmino { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id?: string; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator?: string; -} -export interface BasketAminoMsg { - type: "/regen.ecocredit.basket.v1.Basket"; - value: BasketAmino; -} -/** Basket represents a basket in state. */ -export interface BasketSDKType { - id: bigint; - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - /** @deprecated */ - exponent: number; - curator: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClass { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - classId: string; -} -export interface BasketClassProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass"; - value: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - class_id?: string; -} -export interface BasketClassAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketClass"; - value: BasketClassAmino; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassSDKType { - basket_id: bigint; - class_id: string; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalance { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batchStartDate?: Timestamp; -} -export interface BasketBalanceProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; - value: Uint8Array; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batch_start_date?: string; -} -export interface BasketBalanceAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalance"; - value: BasketBalanceAmino; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceSDKType { - basket_id: bigint; - batch_denom: string; - balance: string; - batch_start_date?: TimestampSDKType; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFee { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface BasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; - value: Uint8Array; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface BasketFeeAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketFee"; - value: BasketFeeAmino; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeSDKType { - fee?: CoinSDKType; -} -function createBaseBasket(): Basket { - return { - id: BigInt(0), - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: new Uint8Array() - }; -} -export const Basket = { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - encode(message: Basket, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(26).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(56).uint32(message.exponent); - } - if (message.curator.length !== 0) { - writer.uint32(66).bytes(message.curator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Basket { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - case 6: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 7: - message.exponent = reader.uint32(); - break; - case 8: - message.curator = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Basket { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - name: isSet(object.name) ? String(object.name) : "", - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - dateCriteria: isSet(object.dateCriteria) ? DateCriteria.fromJSON(object.dateCriteria) : undefined, - exponent: isSet(object.exponent) ? Number(object.exponent) : 0, - curator: isSet(object.curator) ? bytesFromBase64(object.curator) : new Uint8Array() - }; - }, - toJSON(message: Basket): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.name !== undefined && (obj.name = message.name); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - message.dateCriteria !== undefined && (obj.dateCriteria = message.dateCriteria ? DateCriteria.toJSON(message.dateCriteria) : undefined); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - message.curator !== undefined && (obj.curator = base64FromBytes(message.curator !== undefined ? message.curator : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Basket { - const message = createBaseBasket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? new Uint8Array(); - return message; - }, - fromAmino(object: BasketAmino): Basket { - const message = createBaseBasket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = bytesFromBase64(object.curator); - } - return message; - }, - toAmino(message: Basket): BasketAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator ? base64FromBytes(message.curator) : undefined; - return obj; - }, - fromAminoMsg(object: BasketAminoMsg): Basket { - return Basket.fromAmino(object.value); - }, - fromProtoMsg(message: BasketProtoMsg): Basket { - return Basket.decode(message.value); - }, - toProto(message: Basket): Uint8Array { - return Basket.encode(message).finish(); - }, - toProtoMsg(message: Basket): BasketProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - value: Basket.encode(message).finish() - }; - } -}; -function createBaseBasketClass(): BasketClass { - return { - basketId: BigInt(0), - classId: "" - }; -} -export const BasketClass = { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - encode(message: BasketClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketClass { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketClass { - return { - basketId: isSet(object.basketId) ? BigInt(object.basketId.toString()) : BigInt(0), - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: BasketClass): unknown { - const obj: any = {}; - message.basketId !== undefined && (obj.basketId = (message.basketId || BigInt(0)).toString()); - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): BasketClass { - const message = createBaseBasketClass(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: BasketClassAmino): BasketClass { - const message = createBaseBasketClass(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: BasketClass): BasketClassAmino { - const obj: any = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: BasketClassAminoMsg): BasketClass { - return BasketClass.fromAmino(object.value); - }, - fromProtoMsg(message: BasketClassProtoMsg): BasketClass { - return BasketClass.decode(message.value); - }, - toProto(message: BasketClass): Uint8Array { - return BasketClass.encode(message).finish(); - }, - toProtoMsg(message: BasketClass): BasketClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - value: BasketClass.encode(message).finish() - }; - } -}; -function createBaseBasketBalance(): BasketBalance { - return { - basketId: BigInt(0), - batchDenom: "", - balance: "", - batchStartDate: undefined - }; -} -export const BasketBalance = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - encode(message: BasketBalance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(26).string(message.balance); - } - if (message.batchStartDate !== undefined) { - Timestamp.encode(message.batchStartDate, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.balance = reader.string(); - break; - case 4: - message.batchStartDate = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketBalance { - return { - basketId: isSet(object.basketId) ? BigInt(object.basketId.toString()) : BigInt(0), - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - balance: isSet(object.balance) ? String(object.balance) : "", - batchStartDate: isSet(object.batchStartDate) ? fromJsonTimestamp(object.batchStartDate) : undefined - }; - }, - toJSON(message: BasketBalance): unknown { - const obj: any = {}; - message.basketId !== undefined && (obj.basketId = (message.basketId || BigInt(0)).toString()); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.balance !== undefined && (obj.balance = message.balance); - message.batchStartDate !== undefined && (obj.batchStartDate = fromTimestamp(message.batchStartDate).toISOString()); - return obj; - }, - fromPartial(object: Partial): BasketBalance { - const message = createBaseBasketBalance(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - message.batchStartDate = object.batchStartDate !== undefined && object.batchStartDate !== null ? Timestamp.fromPartial(object.batchStartDate) : undefined; - return message; - }, - fromAmino(object: BasketBalanceAmino): BasketBalance { - const message = createBaseBasketBalance(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - if (object.batch_start_date !== undefined && object.batch_start_date !== null) { - message.batchStartDate = Timestamp.fromAmino(object.batch_start_date); - } - return message; - }, - toAmino(message: BasketBalance): BasketBalanceAmino { - const obj: any = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - obj.batch_start_date = message.batchStartDate ? Timestamp.toAmino(message.batchStartDate) : undefined; - return obj; - }, - fromAminoMsg(object: BasketBalanceAminoMsg): BasketBalance { - return BasketBalance.fromAmino(object.value); - }, - fromProtoMsg(message: BasketBalanceProtoMsg): BasketBalance { - return BasketBalance.decode(message.value); - }, - toProto(message: BasketBalance): Uint8Array { - return BasketBalance.encode(message).finish(); - }, - toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - value: BasketBalance.encode(message).finish() - }; - } -}; -function createBaseBasketFee(): BasketFee { - return { - fee: undefined - }; -} -export const BasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - encode(message: BasketFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketFee { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketFee { - return { - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: BasketFee): unknown { - const obj: any = {}; - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): BasketFee { - const message = createBaseBasketFee(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: BasketFeeAmino): BasketFee { - const message = createBaseBasketFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: BasketFee): BasketFeeAmino { - const obj: any = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: BasketFeeAminoMsg): BasketFee { - return BasketFee.fromAmino(object.value); - }, - fromProtoMsg(message: BasketFeeProtoMsg): BasketFee { - return BasketFee.decode(message.value); - }, - toProto(message: BasketFee): Uint8Array { - return BasketFee.encode(message).finish(); - }, - toProtoMsg(message: BasketFee): BasketFeeProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - value: BasketFee.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.amino.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.amino.ts deleted file mode 100644 index 4555caf9..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.amino.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: "regen.basket/MsgCreate", - toAmino: MsgCreate.toAmino, - fromAmino: MsgCreate.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: "regen.basket/MsgPut", - toAmino: MsgPut.toAmino, - fromAmino: MsgPut.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: "regen.basket/MsgTake", - toAmino: MsgTake.toAmino, - fromAmino: MsgTake.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: "regen.basket/MsgUpdateBasketFee", - toAmino: MsgUpdateBasketFee.toAmino, - fromAmino: MsgUpdateBasketFee.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: "regen.basket/MsgUpdateCurator", - toAmino: MsgUpdateCurator.toAmino, - fromAmino: MsgUpdateCurator.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: "regen.basket/MsgUpdateDateCriteria", - toAmino: MsgUpdateDateCriteria.toAmino, - fromAmino: MsgUpdateDateCriteria.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.registry.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.registry.ts deleted file mode 100644 index 64eff96f..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.registry.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.basket.v1.MsgCreate", MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", MsgUpdateDateCriteria]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - create(value: MsgCreate) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.encode(value).finish() - }; - }, - put(value: MsgPut) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.encode(value).finish() - }; - }, - take(value: MsgTake) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.encode(value).finish() - }; - }, - updateBasketFee(value: MsgUpdateBasketFee) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.encode(value).finish() - }; - }, - updateCurator(value: MsgUpdateCurator) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.encode(value).finish() - }; - }, - updateDateCriteria(value: MsgUpdateDateCriteria) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.encode(value).finish() - }; - } - }, - withTypeUrl: { - create(value: MsgCreate) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value - }; - }, - put(value: MsgPut) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value - }; - }, - take(value: MsgTake) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value - }; - }, - updateBasketFee(value: MsgUpdateBasketFee) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value - }; - }, - updateCurator(value: MsgUpdateCurator) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value - }; - }, - updateDateCriteria(value: MsgUpdateDateCriteria) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value - }; - } - }, - toJSON: { - create(value: MsgCreate) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.toJSON(value) - }; - }, - put(value: MsgPut) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.toJSON(value) - }; - }, - take(value: MsgTake) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.toJSON(value) - }; - }, - updateBasketFee(value: MsgUpdateBasketFee) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.toJSON(value) - }; - }, - updateCurator(value: MsgUpdateCurator) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.toJSON(value) - }; - }, - updateDateCriteria(value: MsgUpdateDateCriteria) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.toJSON(value) - }; - } - }, - fromJSON: { - create(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.fromJSON(value) - }; - }, - put(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.fromJSON(value) - }; - }, - take(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.fromJSON(value) - }; - }, - updateBasketFee(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.fromJSON(value) - }; - }, - updateCurator(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.fromJSON(value) - }; - }, - updateDateCriteria(value: any) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.fromJSON(value) - }; - } - }, - fromPartial: { - create(value: MsgCreate) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.fromPartial(value) - }; - }, - put(value: MsgPut) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.fromPartial(value) - }; - }, - take(value: MsgTake) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.fromPartial(value) - }; - }, - updateBasketFee(value: MsgUpdateBasketFee) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.fromPartial(value) - }; - }, - updateCurator(value: MsgUpdateCurator) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.fromPartial(value) - }; - }, - updateDateCriteria(value: MsgUpdateDateCriteria) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.ts deleted file mode 100644 index 01d553ea..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; -/** Msg is the regen.ecocredit.basket.v1 Msg service. */ -export interface Msg { - /** - * Create creates a basket that can hold different types of ecocredits that - * meet the basket's criteria. Upon depositing ecocredits into the basket, - * basket tokens are minted and sent to depositor using the Cosmos SDK Bank - * module. This allows basket tokens to be utilized within IBC. Basket tokens - * are fully fungible with other basket tokens from the same basket. The - * basket token denom is derived from the basket name, credit type - * abbreviation, and credit type precision (i.e. basket name "foo", credit - * type exponent 6, and credit type abbreviation "C" generates the denom - * eco.uC.foo). Baskets can limit credit acceptance criteria based on a - * combination of credit type, credit classes, and credit batch start date. - * Credits can be taken from the basket in exchange for basket tokens. Taken - * credits will be immediately retired, unless disable_auto_retire is set to - * true. When set to true, credits may be received in either a tradable or - * retired state, depending on the taker's request. If the basket fee - * governance parameter is set, a fee of equal or greater value must be - * provided in the request. Only the amount specified in the fee parameter - * will be charged, even if a greater value fee is provided. Fees from - * creating a basket are burned. - */ - create(request: MsgCreate): Promise; - /** - * Put deposits credits into the basket from the holder's tradable balance in - * exchange for basket tokens. The amount of tokens received is calculated by - * the following formula: sum(credits_deposited) * 10^credit_type_exponent. - * The credits being deposited MUST adhere to the criteria of the basket. - */ - put(request: MsgPut): Promise; - /** - * Take exchanges basket tokens for credits from the specified basket. Credits - * are taken deterministically, ordered by oldest batch start date to the most - * recent batch start date. If the basket has disable_auto_retire set to - * false, both retirement_jurisdiction and retire_on_take must be set, and the - * taken credits will be retired immediately upon receipt. Otherwise, credits - * may be received as tradable or retired, based on the request. - */ - take(request: MsgTake): Promise; - /** - * UpdateBasketFee is a governance method that allows for updating the basket - * creation fee. If not set, the basket creation fee will be removed and no - * fee will be required to create a basket. - * - * Since Revision 2 - */ - updateBasketFee(request: MsgUpdateBasketFee): Promise; - /** - * UpdateCurator updates basket curator. - * - * Since Revision 2 - */ - updateCurator(request: MsgUpdateCurator): Promise; - /** - * UpdateDateCriteria is a governance method that allows for updating the date - * criteria of a basket. Updating basket date criteria could affect the value - * of basket tokens and therefore requires a network-wide governance process. - * - * Since Revision 3 - */ - updateDateCriteria(request: MsgUpdateDateCriteria): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.create = this.create.bind(this); - this.put = this.put.bind(this); - this.take = this.take.bind(this); - this.updateBasketFee = this.updateBasketFee.bind(this); - this.updateCurator = this.updateCurator.bind(this); - this.updateDateCriteria = this.updateDateCriteria.bind(this); - } - create(request: MsgCreate): Promise { - const data = MsgCreate.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); - return promise.then(data => MsgCreateResponse.decode(new BinaryReader(data))); - } - put(request: MsgPut): Promise { - const data = MsgPut.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); - return promise.then(data => MsgPutResponse.decode(new BinaryReader(data))); - } - take(request: MsgTake): Promise { - const data = MsgTake.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); - return promise.then(data => MsgTakeResponse.decode(new BinaryReader(data))); - } - updateBasketFee(request: MsgUpdateBasketFee): Promise { - const data = MsgUpdateBasketFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); - return promise.then(data => MsgUpdateBasketFeeResponse.decode(new BinaryReader(data))); - } - updateCurator(request: MsgUpdateCurator): Promise { - const data = MsgUpdateCurator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); - return promise.then(data => MsgUpdateCuratorResponse.decode(new BinaryReader(data))); - } - updateDateCriteria(request: MsgUpdateDateCriteria): Promise { - const data = MsgUpdateDateCriteria.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); - return promise.then(data => MsgUpdateDateCriteriaResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.ts deleted file mode 100644 index ffa3017e..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/tx.ts +++ /dev/null @@ -1,1765 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreate { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowedClasses: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - dateCriteria?: DateCriteria; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee: Coin[]; -} -export interface MsgCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate"; - value: Uint8Array; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateAmino { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name?: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description?: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent?: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowed_classes?: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - date_criteria?: DateCriteriaAmino; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee?: CoinAmino[]; -} -export interface MsgCreateAminoMsg { - type: "regen.basket/MsgCreate"; - value: MsgCreateAmino; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateSDKType { - curator: string; - name: string; - description: string; - /** @deprecated */ - exponent: number; - disable_auto_retire: boolean; - credit_type_abbrev: string; - allowed_classes: string[]; - date_criteria?: DateCriteriaSDKType; - fee: CoinSDKType[]; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponse { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basketDenom: string; -} -export interface MsgCreateResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: Uint8Array; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseAmino { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basket_denom?: string; -} -export interface MsgCreateResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: MsgCreateResponseAmino; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseSDKType { - basket_denom: string; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPut { - /** owner is the owner of credits being put into the basket. */ - owner: string; - /** basket_denom is the basket denom to add credits to. */ - basketDenom: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits: BasketCredit[]; -} -export interface MsgPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut"; - value: Uint8Array; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutAmino { - /** owner is the owner of credits being put into the basket. */ - owner?: string; - /** basket_denom is the basket denom to add credits to. */ - basket_denom?: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits?: BasketCreditAmino[]; -} -export interface MsgPutAminoMsg { - type: "regen.basket/MsgPut"; - value: MsgPutAmino; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutSDKType { - owner: string; - basket_denom: string; - credits: BasketCreditSDKType[]; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponse { - /** amount_received is the integer amount of basket tokens received. */ - amountReceived: string; -} -export interface MsgPutResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: Uint8Array; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseAmino { - /** amount_received is the integer amount of basket tokens received. */ - amount_received?: string; -} -export interface MsgPutResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: MsgPutResponseAmino; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseSDKType { - amount_received: string; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTake { - /** owner is the owner of the basket tokens. */ - owner: string; - /** basket_denom is the basket bank denom to take credits from. */ - basketDenom: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirementLocation: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retireOnTake: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake"; - value: Uint8Array; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeAmino { - /** owner is the owner of the basket tokens. */ - owner?: string; - /** basket_denom is the basket bank denom to take credits from. */ - basket_denom?: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount?: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirement_location?: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retire_on_take?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgTakeAminoMsg { - type: "regen.basket/MsgTake"; - value: MsgTakeAmino; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeSDKType { - owner: string; - basket_denom: string; - amount: string; - /** @deprecated */ - retirement_location: string; - retire_on_take: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponse { - /** credits are the credits taken out of the basket. */ - credits: BasketCredit[]; -} -export interface MsgTakeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: Uint8Array; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseAmino { - /** credits are the credits taken out of the basket. */ - credits?: BasketCreditAmino[]; -} -export interface MsgTakeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: MsgTakeResponseAmino; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseSDKType { - credits: BasketCreditSDKType[]; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: Coin; -} -export interface MsgUpdateBasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: CoinAmino; -} -export interface MsgUpdateBasketFeeAminoMsg { - type: "regen.basket/MsgUpdateBasketFee"; - value: MsgUpdateBasketFeeAmino; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponse {} -export interface MsgUpdateBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseAmino {} -export interface MsgUpdateBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: MsgUpdateBasketFeeResponseAmino; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseSDKType {} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCurator { - /** curator is the address of the basket curator. */ - curator: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - newCurator: string; -} -export interface MsgUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator"; - value: Uint8Array; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorAmino { - /** curator is the address of the basket curator. */ - curator?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - new_curator?: string; -} -export interface MsgUpdateCuratorAminoMsg { - type: "regen.basket/MsgUpdateCurator"; - value: MsgUpdateCuratorAmino; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorSDKType { - curator: string; - denom: string; - new_curator: string; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponse {} -export interface MsgUpdateCuratorResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: Uint8Array; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseAmino {} -export interface MsgUpdateCuratorResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: MsgUpdateCuratorResponseAmino; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseSDKType {} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteria { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - newDateCriteria?: DateCriteria; -} -export interface MsgUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - new_date_criteria?: DateCriteriaAmino; -} -export interface MsgUpdateDateCriteriaAminoMsg { - type: "regen.basket/MsgUpdateDateCriteria"; - value: MsgUpdateDateCriteriaAmino; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaSDKType { - authority: string; - denom: string; - new_date_criteria?: DateCriteriaSDKType; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponse {} -export interface MsgUpdateDateCriteriaResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseAmino {} -export interface MsgUpdateDateCriteriaResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: MsgUpdateDateCriteriaResponseAmino; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseSDKType {} -function createBaseMsgCreate(): MsgCreate { - return { - curator: "", - name: "", - description: "", - exponent: 0, - disableAutoRetire: false, - creditTypeAbbrev: "", - allowedClasses: [], - dateCriteria: undefined, - fee: [] - }; -} -export const MsgCreate = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - encode(message: MsgCreate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.description !== "") { - writer.uint32(26).string(message.description); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(50).string(message.creditTypeAbbrev); - } - for (const v of message.allowedClasses) { - writer.uint32(58).string(v!); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.fee) { - Coin.encode(v!, writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.creditTypeAbbrev = reader.string(); - break; - case 7: - message.allowedClasses.push(reader.string()); - break; - case 8: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 9: - message.fee.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreate { - return { - curator: isSet(object.curator) ? String(object.curator) : "", - name: isSet(object.name) ? String(object.name) : "", - description: isSet(object.description) ? String(object.description) : "", - exponent: isSet(object.exponent) ? Number(object.exponent) : 0, - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - allowedClasses: Array.isArray(object?.allowedClasses) ? object.allowedClasses.map((e: any) => String(e)) : [], - dateCriteria: isSet(object.dateCriteria) ? DateCriteria.fromJSON(object.dateCriteria) : undefined, - fee: Array.isArray(object?.fee) ? object.fee.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgCreate): unknown { - const obj: any = {}; - message.curator !== undefined && (obj.curator = message.curator); - message.name !== undefined && (obj.name = message.name); - message.description !== undefined && (obj.description = message.description); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - if (message.allowedClasses) { - obj.allowedClasses = message.allowedClasses.map(e => e); - } else { - obj.allowedClasses = []; - } - message.dateCriteria !== undefined && (obj.dateCriteria = message.dateCriteria ? DateCriteria.toJSON(message.dateCriteria) : undefined); - if (message.fee) { - obj.fee = message.fee.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.fee = []; - } - return obj; - }, - fromPartial(object: Partial): MsgCreate { - const message = createBaseMsgCreate(); - message.curator = object.curator ?? ""; - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.exponent = object.exponent ?? 0; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.allowedClasses = object.allowedClasses?.map(e => e) || []; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.fee = object.fee?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgCreateAmino): MsgCreate { - const message = createBaseMsgCreate(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - message.allowedClasses = object.allowed_classes?.map(e => e) || []; - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - message.fee = object.fee?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgCreate): MsgCreateAmino { - const obj: any = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - if (message.allowedClasses) { - obj.allowed_classes = message.allowedClasses.map(e => e); - } else { - obj.allowed_classes = message.allowedClasses; - } - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - if (message.fee) { - obj.fee = message.fee.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.fee = message.fee; - } - return obj; - }, - fromAminoMsg(object: MsgCreateAminoMsg): MsgCreate { - return MsgCreate.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreate): MsgCreateAminoMsg { - return { - type: "regen.basket/MsgCreate", - value: MsgCreate.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateProtoMsg): MsgCreate { - return MsgCreate.decode(message.value); - }, - toProto(message: MsgCreate): Uint8Array { - return MsgCreate.encode(message).finish(); - }, - toProtoMsg(message: MsgCreate): MsgCreateProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.encode(message).finish() - }; - } -}; -function createBaseMsgCreateResponse(): MsgCreateResponse { - return { - basketDenom: "" - }; -} -export const MsgCreateResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - encode(message: MsgCreateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateResponse { - return { - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "" - }; - }, - toJSON(message: MsgCreateResponse): unknown { - const obj: any = {}; - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - return obj; - }, - fromPartial(object: Partial): MsgCreateResponse { - const message = createBaseMsgCreateResponse(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object: MsgCreateResponseAmino): MsgCreateResponse { - const message = createBaseMsgCreateResponse(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message: MsgCreateResponse): MsgCreateResponseAmino { - const obj: any = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object: MsgCreateResponseAminoMsg): MsgCreateResponse { - return MsgCreateResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateResponseProtoMsg): MsgCreateResponse { - return MsgCreateResponse.decode(message.value); - }, - toProto(message: MsgCreateResponse): Uint8Array { - return MsgCreateResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - value: MsgCreateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgPut(): MsgPut { - return { - owner: "", - basketDenom: "", - credits: [] - }; -} -export const MsgPut = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - encode(message: MsgPut, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgPut { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgPut { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => BasketCredit.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgPut): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgPut { - const message = createBaseMsgPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgPutAmino): MsgPut { - const message = createBaseMsgPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgPut): MsgPutAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgPutAminoMsg): MsgPut { - return MsgPut.fromAmino(object.value); - }, - toAminoMsg(message: MsgPut): MsgPutAminoMsg { - return { - type: "regen.basket/MsgPut", - value: MsgPut.toAmino(message) - }; - }, - fromProtoMsg(message: MsgPutProtoMsg): MsgPut { - return MsgPut.decode(message.value); - }, - toProto(message: MsgPut): Uint8Array { - return MsgPut.encode(message).finish(); - }, - toProtoMsg(message: MsgPut): MsgPutProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.encode(message).finish() - }; - } -}; -function createBaseMsgPutResponse(): MsgPutResponse { - return { - amountReceived: "" - }; -} -export const MsgPutResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - encode(message: MsgPutResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.amountReceived !== "") { - writer.uint32(10).string(message.amountReceived); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPutResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amountReceived = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgPutResponse { - return { - amountReceived: isSet(object.amountReceived) ? String(object.amountReceived) : "" - }; - }, - toJSON(message: MsgPutResponse): unknown { - const obj: any = {}; - message.amountReceived !== undefined && (obj.amountReceived = message.amountReceived); - return obj; - }, - fromPartial(object: Partial): MsgPutResponse { - const message = createBaseMsgPutResponse(); - message.amountReceived = object.amountReceived ?? ""; - return message; - }, - fromAmino(object: MsgPutResponseAmino): MsgPutResponse { - const message = createBaseMsgPutResponse(); - if (object.amount_received !== undefined && object.amount_received !== null) { - message.amountReceived = object.amount_received; - } - return message; - }, - toAmino(message: MsgPutResponse): MsgPutResponseAmino { - const obj: any = {}; - obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; - return obj; - }, - fromAminoMsg(object: MsgPutResponseAminoMsg): MsgPutResponse { - return MsgPutResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgPutResponseProtoMsg): MsgPutResponse { - return MsgPutResponse.decode(message.value); - }, - toProto(message: MsgPutResponse): Uint8Array { - return MsgPutResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - value: MsgPutResponse.encode(message).finish() - }; - } -}; -function createBaseMsgTake(): MsgTake { - return { - owner: "", - basketDenom: "", - amount: "", - retirementLocation: "", - retireOnTake: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgTake = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - encode(message: MsgTake, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - if (message.retireOnTake === true) { - writer.uint32(40).bool(message.retireOnTake); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgTake { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - case 5: - message.retireOnTake = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgTake { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - retirementLocation: isSet(object.retirementLocation) ? String(object.retirementLocation) : "", - retireOnTake: isSet(object.retireOnTake) ? Boolean(object.retireOnTake) : false, - retirementJurisdiction: isSet(object.retirementJurisdiction) ? String(object.retirementJurisdiction) : "", - retirementReason: isSet(object.retirementReason) ? String(object.retirementReason) : "" - }; - }, - toJSON(message: MsgTake): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - message.amount !== undefined && (obj.amount = message.amount); - message.retirementLocation !== undefined && (obj.retirementLocation = message.retirementLocation); - message.retireOnTake !== undefined && (obj.retireOnTake = message.retireOnTake); - message.retirementJurisdiction !== undefined && (obj.retirementJurisdiction = message.retirementJurisdiction); - message.retirementReason !== undefined && (obj.retirementReason = message.retirementReason); - return obj; - }, - fromPartial(object: Partial): MsgTake { - const message = createBaseMsgTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.amount = object.amount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - message.retireOnTake = object.retireOnTake ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object: MsgTakeAmino): MsgTake { - const message = createBaseMsgTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - if (object.retire_on_take !== undefined && object.retire_on_take !== null) { - message.retireOnTake = object.retire_on_take; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message: MsgTake): MsgTakeAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object: MsgTakeAminoMsg): MsgTake { - return MsgTake.fromAmino(object.value); - }, - toAminoMsg(message: MsgTake): MsgTakeAminoMsg { - return { - type: "regen.basket/MsgTake", - value: MsgTake.toAmino(message) - }; - }, - fromProtoMsg(message: MsgTakeProtoMsg): MsgTake { - return MsgTake.decode(message.value); - }, - toProto(message: MsgTake): Uint8Array { - return MsgTake.encode(message).finish(); - }, - toProtoMsg(message: MsgTake): MsgTakeProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.encode(message).finish() - }; - } -}; -function createBaseMsgTakeResponse(): MsgTakeResponse { - return { - credits: [] - }; -} -export const MsgTakeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - encode(message: MsgTakeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.credits) { - BasketCredit.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTakeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgTakeResponse { - return { - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => BasketCredit.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgTakeResponse): unknown { - const obj: any = {}; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgTakeResponse { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgTakeResponseAmino): MsgTakeResponse { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgTakeResponse): MsgTakeResponseAmino { - const obj: any = {}; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgTakeResponseAminoMsg): MsgTakeResponse { - return MsgTakeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgTakeResponseProtoMsg): MsgTakeResponse { - return MsgTakeResponse.decode(message.value); - }, - toProto(message: MsgTakeResponse): Uint8Array { - return MsgTakeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - value: MsgTakeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFee(): MsgUpdateBasketFee { - return { - authority: "", - fee: undefined - }; -} -export const MsgUpdateBasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - encode(message: MsgUpdateBasketFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateBasketFee { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: MsgUpdateBasketFee): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgUpdateBasketFee { - const message = createBaseMsgUpdateBasketFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: MsgUpdateBasketFeeAmino): MsgUpdateBasketFee { - const message = createBaseMsgUpdateBasketFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateBasketFeeAminoMsg): MsgUpdateBasketFee { - return MsgUpdateBasketFee.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAminoMsg { - return { - type: "regen.basket/MsgUpdateBasketFee", - value: MsgUpdateBasketFee.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateBasketFeeProtoMsg): MsgUpdateBasketFee { - return MsgUpdateBasketFee.decode(message.value); - }, - toProto(message: MsgUpdateBasketFee): Uint8Array { - return MsgUpdateBasketFee.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFeeResponse(): MsgUpdateBasketFeeResponse { - return {}; -} -export const MsgUpdateBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - encode(_: MsgUpdateBasketFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateBasketFeeResponse { - return {}; - }, - toJSON(_: MsgUpdateBasketFeeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateBasketFeeResponse { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - fromAmino(_: MsgUpdateBasketFeeResponseAmino): MsgUpdateBasketFeeResponse { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - toAmino(_: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateBasketFeeResponseAminoMsg): MsgUpdateBasketFeeResponse { - return MsgUpdateBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateBasketFeeResponseProtoMsg): MsgUpdateBasketFeeResponse { - return MsgUpdateBasketFeeResponse.decode(message.value); - }, - toProto(message: MsgUpdateBasketFeeResponse): Uint8Array { - return MsgUpdateBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - value: MsgUpdateBasketFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCurator(): MsgUpdateCurator { - return { - curator: "", - denom: "", - newCurator: "" - }; -} -export const MsgUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - encode(message: MsgUpdateCurator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newCurator !== "") { - writer.uint32(26).string(message.newCurator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 3: - message.newCurator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateCurator { - return { - curator: isSet(object.curator) ? String(object.curator) : "", - denom: isSet(object.denom) ? String(object.denom) : "", - newCurator: isSet(object.newCurator) ? String(object.newCurator) : "" - }; - }, - toJSON(message: MsgUpdateCurator): unknown { - const obj: any = {}; - message.curator !== undefined && (obj.curator = message.curator); - message.denom !== undefined && (obj.denom = message.denom); - message.newCurator !== undefined && (obj.newCurator = message.newCurator); - return obj; - }, - fromPartial(object: Partial): MsgUpdateCurator { - const message = createBaseMsgUpdateCurator(); - message.curator = object.curator ?? ""; - message.denom = object.denom ?? ""; - message.newCurator = object.newCurator ?? ""; - return message; - }, - fromAmino(object: MsgUpdateCuratorAmino): MsgUpdateCurator { - const message = createBaseMsgUpdateCurator(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_curator !== undefined && object.new_curator !== null) { - message.newCurator = object.new_curator; - } - return message; - }, - toAmino(message: MsgUpdateCurator): MsgUpdateCuratorAmino { - const obj: any = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; - return obj; - }, - fromAminoMsg(object: MsgUpdateCuratorAminoMsg): MsgUpdateCurator { - return MsgUpdateCurator.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateCurator): MsgUpdateCuratorAminoMsg { - return { - type: "regen.basket/MsgUpdateCurator", - value: MsgUpdateCurator.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateCuratorProtoMsg): MsgUpdateCurator { - return MsgUpdateCurator.decode(message.value); - }, - toProto(message: MsgUpdateCurator): Uint8Array { - return MsgUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCuratorResponse(): MsgUpdateCuratorResponse { - return {}; -} -export const MsgUpdateCuratorResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - encode(_: MsgUpdateCuratorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCuratorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateCuratorResponse { - return {}; - }, - toJSON(_: MsgUpdateCuratorResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateCuratorResponse { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - fromAmino(_: MsgUpdateCuratorResponseAmino): MsgUpdateCuratorResponse { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - toAmino(_: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateCuratorResponseAminoMsg): MsgUpdateCuratorResponse { - return MsgUpdateCuratorResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateCuratorResponseProtoMsg): MsgUpdateCuratorResponse { - return MsgUpdateCuratorResponse.decode(message.value); - }, - toProto(message: MsgUpdateCuratorResponse): Uint8Array { - return MsgUpdateCuratorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - value: MsgUpdateCuratorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteria(): MsgUpdateDateCriteria { - return { - authority: "", - denom: "", - newDateCriteria: undefined - }; -} -export const MsgUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - encode(message: MsgUpdateDateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newDateCriteria !== undefined) { - DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 8: - message.newDateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateDateCriteria { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - denom: isSet(object.denom) ? String(object.denom) : "", - newDateCriteria: isSet(object.newDateCriteria) ? DateCriteria.fromJSON(object.newDateCriteria) : undefined - }; - }, - toJSON(message: MsgUpdateDateCriteria): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.denom !== undefined && (obj.denom = message.denom); - message.newDateCriteria !== undefined && (obj.newDateCriteria = message.newDateCriteria ? DateCriteria.toJSON(message.newDateCriteria) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgUpdateDateCriteria { - const message = createBaseMsgUpdateDateCriteria(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? DateCriteria.fromPartial(object.newDateCriteria) : undefined; - return message; - }, - fromAmino(object: MsgUpdateDateCriteriaAmino): MsgUpdateDateCriteria { - const message = createBaseMsgUpdateDateCriteria(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { - message.newDateCriteria = DateCriteria.fromAmino(object.new_date_criteria); - } - return message; - }, - toAmino(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_date_criteria = message.newDateCriteria ? DateCriteria.toAmino(message.newDateCriteria) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateDateCriteriaAminoMsg): MsgUpdateDateCriteria { - return MsgUpdateDateCriteria.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAminoMsg { - return { - type: "regen.basket/MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateDateCriteriaProtoMsg): MsgUpdateDateCriteria { - return MsgUpdateDateCriteria.decode(message.value); - }, - toProto(message: MsgUpdateDateCriteria): Uint8Array { - return MsgUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteriaResponse(): MsgUpdateDateCriteriaResponse { - return {}; -} -export const MsgUpdateDateCriteriaResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - encode(_: MsgUpdateDateCriteriaResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteriaResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateDateCriteriaResponse { - return {}; - }, - toJSON(_: MsgUpdateDateCriteriaResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateDateCriteriaResponse { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - fromAmino(_: MsgUpdateDateCriteriaResponseAmino): MsgUpdateDateCriteriaResponse { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - toAmino(_: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateDateCriteriaResponseAminoMsg): MsgUpdateDateCriteriaResponse { - return MsgUpdateDateCriteriaResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateDateCriteriaResponseProtoMsg): MsgUpdateDateCriteriaResponse { - return MsgUpdateDateCriteriaResponse.decode(message.value); - }, - toProto(message: MsgUpdateDateCriteriaResponse): Uint8Array { - return MsgUpdateDateCriteriaResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - value: MsgUpdateDateCriteriaResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/basket/v1/types.ts b/packages/api/src/codegen/regen/ecocredit/basket/v1/types.ts deleted file mode 100644 index 6a825326..00000000 --- a/packages/api/src/codegen/regen/ecocredit/basket/v1/types.ts +++ /dev/null @@ -1,308 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../../helpers"; -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCredit { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount: string; -} -export interface BasketCreditProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit"; - value: Uint8Array; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount?: string; -} -export interface BasketCreditAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketCredit"; - value: BasketCreditAmino; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditSDKType { - batch_denom: string; - amount: string; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteria { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - minStartDate?: Timestamp; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - startDateWindow?: Duration; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - yearsInThePast: number; -} -export interface DateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria"; - value: Uint8Array; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaAmino { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - min_start_date?: string; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - start_date_window?: DurationAmino; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - years_in_the_past?: number; -} -export interface DateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.DateCriteria"; - value: DateCriteriaAmino; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaSDKType { - min_start_date?: TimestampSDKType; - start_date_window?: DurationSDKType; - years_in_the_past: number; -} -function createBaseBasketCredit(): BasketCredit { - return { - batchDenom: "", - amount: "" - }; -} -export const BasketCredit = { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - encode(message: BasketCredit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketCredit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BasketCredit { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: BasketCredit): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): BasketCredit { - const message = createBaseBasketCredit(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: BasketCreditAmino): BasketCredit { - const message = createBaseBasketCredit(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: BasketCredit): BasketCreditAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: BasketCreditAminoMsg): BasketCredit { - return BasketCredit.fromAmino(object.value); - }, - fromProtoMsg(message: BasketCreditProtoMsg): BasketCredit { - return BasketCredit.decode(message.value); - }, - toProto(message: BasketCredit): Uint8Array { - return BasketCredit.encode(message).finish(); - }, - toProtoMsg(message: BasketCredit): BasketCreditProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - value: BasketCredit.encode(message).finish() - }; - } -}; -function createBaseDateCriteria(): DateCriteria { - return { - minStartDate: undefined, - startDateWindow: undefined, - yearsInThePast: 0 - }; -} -export const DateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - encode(message: DateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.minStartDate !== undefined) { - Timestamp.encode(message.minStartDate, writer.uint32(10).fork()).ldelim(); - } - if (message.startDateWindow !== undefined) { - Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); - } - if (message.yearsInThePast !== 0) { - writer.uint32(24).uint32(message.yearsInThePast); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minStartDate = Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.startDateWindow = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.yearsInThePast = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DateCriteria { - return { - minStartDate: isSet(object.minStartDate) ? fromJsonTimestamp(object.minStartDate) : undefined, - startDateWindow: isSet(object.startDateWindow) ? Duration.fromJSON(object.startDateWindow) : undefined, - yearsInThePast: isSet(object.yearsInThePast) ? Number(object.yearsInThePast) : 0 - }; - }, - toJSON(message: DateCriteria): unknown { - const obj: any = {}; - message.minStartDate !== undefined && (obj.minStartDate = fromTimestamp(message.minStartDate).toISOString()); - message.startDateWindow !== undefined && (obj.startDateWindow = message.startDateWindow ? Duration.toJSON(message.startDateWindow) : undefined); - message.yearsInThePast !== undefined && (obj.yearsInThePast = Math.round(message.yearsInThePast)); - return obj; - }, - fromPartial(object: Partial): DateCriteria { - const message = createBaseDateCriteria(); - message.minStartDate = object.minStartDate !== undefined && object.minStartDate !== null ? Timestamp.fromPartial(object.minStartDate) : undefined; - message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? Duration.fromPartial(object.startDateWindow) : undefined; - message.yearsInThePast = object.yearsInThePast ?? 0; - return message; - }, - fromAmino(object: DateCriteriaAmino): DateCriteria { - const message = createBaseDateCriteria(); - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = Timestamp.fromAmino(object.min_start_date); - } - if (object.start_date_window !== undefined && object.start_date_window !== null) { - message.startDateWindow = Duration.fromAmino(object.start_date_window); - } - if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { - message.yearsInThePast = object.years_in_the_past; - } - return message; - }, - toAmino(message: DateCriteria): DateCriteriaAmino { - const obj: any = {}; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(message.minStartDate) : undefined; - obj.start_date_window = message.startDateWindow ? Duration.toAmino(message.startDateWindow) : undefined; - obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; - return obj; - }, - fromAminoMsg(object: DateCriteriaAminoMsg): DateCriteria { - return DateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message: DateCriteriaProtoMsg): DateCriteria { - return DateCriteria.decode(message.value); - }, - toProto(message: DateCriteria): Uint8Array { - return DateCriteria.encode(message).finish(); - }, - toProtoMsg(message: DateCriteria): DateCriteriaProtoMsg { - return { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - value: DateCriteria.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/events.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/events.ts deleted file mode 100644 index 6e423b15..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/events.ts +++ /dev/null @@ -1,620 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSell { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sellOrderId: bigint; -} -export interface EventSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; - value: Uint8Array; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellAmino { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sell_order_id?: string; -} -export interface EventSellAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventSell"; - value: EventSellAmino; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellSDKType { - sell_order_id: bigint; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirect { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sellOrderId: bigint; -} -export interface EventBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: Uint8Array; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectAmino { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sell_order_id?: string; -} -export interface EventBuyDirectAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: EventBuyDirectAmino; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectSDKType { - sell_order_id: bigint; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrder { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sellOrderId: bigint; -} -export interface EventUpdateSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: Uint8Array; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderAmino { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sell_order_id?: string; -} -export interface EventUpdateSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: EventUpdateSellOrderAmino; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderSDKType { - sell_order_id: bigint; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrder { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sellOrderId: bigint; -} -export interface EventCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: Uint8Array; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderAmino { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sell_order_id?: string; -} -export interface EventCancelSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: EventCancelSellOrderAmino; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderSDKType { - sell_order_id: bigint; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventAllowDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: Uint8Array; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventAllowDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: EventAllowDenomAmino; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomSDKType { - denom: string; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventRemoveAllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: EventRemoveAllowedDenomAmino; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomSDKType { - denom: string; -} -function createBaseEventSell(): EventSell { - return { - sellOrderId: BigInt(0) - }; -} -export const EventSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - encode(message: EventSell, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventSell { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventSell { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventSell): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventSell { - const message = createBaseEventSell(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventSellAmino): EventSell { - const message = createBaseEventSell(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: EventSell): EventSellAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventSellAminoMsg): EventSell { - return EventSell.fromAmino(object.value); - }, - fromProtoMsg(message: EventSellProtoMsg): EventSell { - return EventSell.decode(message.value); - }, - toProto(message: EventSell): Uint8Array { - return EventSell.encode(message).finish(); - }, - toProtoMsg(message: EventSell): EventSellProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - value: EventSell.encode(message).finish() - }; - } -}; -function createBaseEventBuyDirect(): EventBuyDirect { - return { - sellOrderId: BigInt(0) - }; -} -export const EventBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - encode(message: EventBuyDirect, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventBuyDirect { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventBuyDirect): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventBuyDirect { - const message = createBaseEventBuyDirect(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventBuyDirectAmino): EventBuyDirect { - const message = createBaseEventBuyDirect(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: EventBuyDirect): EventBuyDirectAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventBuyDirectAminoMsg): EventBuyDirect { - return EventBuyDirect.fromAmino(object.value); - }, - fromProtoMsg(message: EventBuyDirectProtoMsg): EventBuyDirect { - return EventBuyDirect.decode(message.value); - }, - toProto(message: EventBuyDirect): Uint8Array { - return EventBuyDirect.encode(message).finish(); - }, - toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - value: EventBuyDirect.encode(message).finish() - }; - } -}; -function createBaseEventUpdateSellOrder(): EventUpdateSellOrder { - return { - sellOrderId: BigInt(0) - }; -} -export const EventUpdateSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - encode(message: EventUpdateSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateSellOrder { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventUpdateSellOrder): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventUpdateSellOrder { - const message = createBaseEventUpdateSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventUpdateSellOrderAmino): EventUpdateSellOrder { - const message = createBaseEventUpdateSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: EventUpdateSellOrder): EventUpdateSellOrderAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventUpdateSellOrderAminoMsg): EventUpdateSellOrder { - return EventUpdateSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateSellOrderProtoMsg): EventUpdateSellOrder { - return EventUpdateSellOrder.decode(message.value); - }, - toProto(message: EventUpdateSellOrder): Uint8Array { - return EventUpdateSellOrder.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - value: EventUpdateSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventCancelSellOrder(): EventCancelSellOrder { - return { - sellOrderId: BigInt(0) - }; -} -export const EventCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - encode(message: EventCancelSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCancelSellOrder { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: EventCancelSellOrder): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EventCancelSellOrder { - const message = createBaseEventCancelSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EventCancelSellOrderAmino): EventCancelSellOrder { - const message = createBaseEventCancelSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: EventCancelSellOrder): EventCancelSellOrderAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EventCancelSellOrderAminoMsg): EventCancelSellOrder { - return EventCancelSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message: EventCancelSellOrderProtoMsg): EventCancelSellOrder { - return EventCancelSellOrder.decode(message.value); - }, - toProto(message: EventCancelSellOrder): Uint8Array { - return EventCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - value: EventCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventAllowDenom(): EventAllowDenom { - return { - denom: "" - }; -} -export const EventAllowDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - encode(message: EventAllowDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAllowDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventAllowDenom { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: EventAllowDenom): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): EventAllowDenom { - const message = createBaseEventAllowDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: EventAllowDenomAmino): EventAllowDenom { - const message = createBaseEventAllowDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: EventAllowDenom): EventAllowDenomAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: EventAllowDenomAminoMsg): EventAllowDenom { - return EventAllowDenom.fromAmino(object.value); - }, - fromProtoMsg(message: EventAllowDenomProtoMsg): EventAllowDenom { - return EventAllowDenom.decode(message.value); - }, - toProto(message: EventAllowDenom): Uint8Array { - return EventAllowDenom.encode(message).finish(); - }, - toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - value: EventAllowDenom.encode(message).finish() - }; - } -}; -function createBaseEventRemoveAllowedDenom(): EventRemoveAllowedDenom { - return { - denom: "" - }; -} -export const EventRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - encode(message: EventRemoveAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventRemoveAllowedDenom { - return { - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: EventRemoveAllowedDenom): unknown { - const obj: any = {}; - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): EventRemoveAllowedDenom { - const message = createBaseEventRemoveAllowedDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: EventRemoveAllowedDenomAmino): EventRemoveAllowedDenom { - const message = createBaseEventRemoveAllowedDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomAmino { - const obj: any = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: EventRemoveAllowedDenomAminoMsg): EventRemoveAllowedDenom { - return EventRemoveAllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message: EventRemoveAllowedDenomProtoMsg): EventRemoveAllowedDenom { - return EventRemoveAllowedDenom.decode(message.value); - }, - toProto(message: EventRemoveAllowedDenom): Uint8Array { - return EventRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - value: EventRemoveAllowedDenom.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.lcd.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.lcd.ts deleted file mode 100644 index 2eb26fe6..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.lcd.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - /* SellOrder queries a sell order by its unique identifier. */ - async sellOrder(params: QuerySellOrderRequest): Promise { - const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; - return await this.req.get(endpoint); - } - /* SellOrders queries a paginated list of all sell orders. */ - async sellOrders(params: QuerySellOrdersRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; - return await this.req.get(endpoint, options); - } - /* SellOrdersByBatch queries a paginated list of all sell orders based on - the batch denom of the credits being sold. */ - async sellOrdersByBatch(params: QuerySellOrdersByBatchRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* SellOrdersBySeller queries a paginated list of all sell orders based on the - account address of the seller. */ - async sellOrdersBySeller(params: QuerySellOrdersBySellerRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; - return await this.req.get(endpoint, options); - } - /* AllowedDenoms queries a paginated list of all bank denoms allowed to be - used in the marketplace. */ - async allowedDenoms(params: QueryAllowedDenomsRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.ts deleted file mode 100644 index 7e029969..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; -/** Msg is the regen.ecocredit.marketplace.v1 Query service. */ -export interface Query { - /** SellOrder queries a sell order by its unique identifier. */ - sellOrder(request: QuerySellOrderRequest): Promise; - /** SellOrders queries a paginated list of all sell orders. */ - sellOrders(request?: QuerySellOrdersRequest): Promise; - /** - * SellOrdersByBatch queries a paginated list of all sell orders based on - * the batch denom of the credits being sold. - */ - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - /** - * SellOrdersBySeller queries a paginated list of all sell orders based on the - * account address of the seller. - */ - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - /** - * AllowedDenoms queries a paginated list of all bank denoms allowed to be - * used in the marketplace. - */ - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - sellOrder(request: QuerySellOrderRequest): Promise { - const data = QuerySellOrderRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); - return promise.then(data => QuerySellOrderResponse.decode(new BinaryReader(data))); - } - sellOrders(request: QuerySellOrdersRequest = { - pagination: undefined - }): Promise { - const data = QuerySellOrdersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); - return promise.then(data => QuerySellOrdersResponse.decode(new BinaryReader(data))); - } - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise { - const data = QuerySellOrdersByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); - return promise.then(data => QuerySellOrdersByBatchResponse.decode(new BinaryReader(data))); - } - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise { - const data = QuerySellOrdersBySellerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); - return promise.then(data => QuerySellOrdersBySellerResponse.decode(new BinaryReader(data))); - } - allowedDenoms(request: QueryAllowedDenomsRequest = { - pagination: undefined - }): Promise { - const data = QueryAllowedDenomsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); - return promise.then(data => QueryAllowedDenomsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - sellOrder(request: QuerySellOrderRequest): Promise { - return queryService.sellOrder(request); - }, - sellOrders(request?: QuerySellOrdersRequest): Promise { - return queryService.sellOrders(request); - }, - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise { - return queryService.sellOrdersByBatch(request); - }, - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise { - return queryService.sellOrdersBySeller(request); - }, - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise { - return queryService.allowedDenoms(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.ts deleted file mode 100644 index 4b90f451..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/query.ts +++ /dev/null @@ -1,1385 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../../helpers"; -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequest { - /** sell_order_id is the id of the requested sell order. */ - sellOrderId: bigint; -} -export interface QuerySellOrderRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: Uint8Array; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestAmino { - /** sell_order_id is the id of the requested sell order. */ - sell_order_id?: string; -} -export interface QuerySellOrderRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: QuerySellOrderRequestAmino; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestSDKType { - sell_order_id: bigint; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponse { - /** sell_order contains all information related to a sell order. */ - sellOrder?: SellOrderInfo; -} -export interface QuerySellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: Uint8Array; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseAmino { - /** sell_order contains all information related to a sell order. */ - sell_order?: SellOrderInfoAmino; -} -export interface QuerySellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: QuerySellOrderResponseAmino; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseSDKType { - sell_order?: SellOrderInfoSDKType; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: Uint8Array; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: QuerySellOrdersRequestAmino; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: Uint8Array; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: QuerySellOrdersResponseAmino; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequest { - /** batch_denom is an ecocredit denom */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestAmino { - /** batch_denom is an ecocredit denom */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersByBatchRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: QuerySellOrdersByBatchRequestAmino; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersByBatchResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: QuerySellOrdersByBatchResponseAmino; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequest { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersBySellerRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersBySellerRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: QuerySellOrdersBySellerRequestAmino; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestSDKType { - seller: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersBySellerResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersBySellerResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: QuerySellOrdersBySellerResponseAmino; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedDenomsRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: Uint8Array; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedDenomsRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: QueryAllowedDenomsRequestAmino; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponse { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowedDenoms: AllowedDenom[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedDenomsResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: Uint8Array; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseAmino { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowed_denoms?: AllowedDenomAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedDenomsResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: QueryAllowedDenomsResponseAmino; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseSDKType { - allowed_denoms: AllowedDenomSDKType[]; - pagination?: PageResponseSDKType; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfo { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: string; - /** batch_denom is denom of the credit batch being sold. */ - batchDenom: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - askDenom: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; -} -export interface SellOrderInfoProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: Uint8Array; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** batch_denom is denom of the credit batch being sold. */ - batch_denom?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - ask_denom?: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface SellOrderInfoAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: SellOrderInfoAmino; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoSDKType { - id: bigint; - seller: string; - batch_denom: string; - quantity: string; - ask_denom: string; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; -} -function createBaseQuerySellOrderRequest(): QuerySellOrderRequest { - return { - sellOrderId: BigInt(0) - }; -} -export const QuerySellOrderRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - encode(message: QuerySellOrderRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrderRequest { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: QuerySellOrderRequest): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): QuerySellOrderRequest { - const message = createBaseQuerySellOrderRequest(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: QuerySellOrderRequestAmino): QuerySellOrderRequest { - const message = createBaseQuerySellOrderRequest(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: QuerySellOrderRequest): QuerySellOrderRequestAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrderRequestAminoMsg): QuerySellOrderRequest { - return QuerySellOrderRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrderRequestProtoMsg): QuerySellOrderRequest { - return QuerySellOrderRequest.decode(message.value); - }, - toProto(message: QuerySellOrderRequest): Uint8Array { - return QuerySellOrderRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - value: QuerySellOrderRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrderResponse(): QuerySellOrderResponse { - return { - sellOrder: undefined - }; -} -export const QuerySellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - encode(message: QuerySellOrderResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrder !== undefined) { - SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrder = SellOrderInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrderResponse { - return { - sellOrder: isSet(object.sellOrder) ? SellOrderInfo.fromJSON(object.sellOrder) : undefined - }; - }, - toJSON(message: QuerySellOrderResponse): unknown { - const obj: any = {}; - message.sellOrder !== undefined && (obj.sellOrder = message.sellOrder ? SellOrderInfo.toJSON(message.sellOrder) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrderResponse { - const message = createBaseQuerySellOrderResponse(); - message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? SellOrderInfo.fromPartial(object.sellOrder) : undefined; - return message; - }, - fromAmino(object: QuerySellOrderResponseAmino): QuerySellOrderResponse { - const message = createBaseQuerySellOrderResponse(); - if (object.sell_order !== undefined && object.sell_order !== null) { - message.sellOrder = SellOrderInfo.fromAmino(object.sell_order); - } - return message; - }, - toAmino(message: QuerySellOrderResponse): QuerySellOrderResponseAmino { - const obj: any = {}; - obj.sell_order = message.sellOrder ? SellOrderInfo.toAmino(message.sellOrder) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrderResponseAminoMsg): QuerySellOrderResponse { - return QuerySellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrderResponseProtoMsg): QuerySellOrderResponse { - return QuerySellOrderResponse.decode(message.value); - }, - toProto(message: QuerySellOrderResponse): Uint8Array { - return QuerySellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - value: QuerySellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersRequest(): QuerySellOrdersRequest { - return { - pagination: undefined - }; -} -export const QuerySellOrdersRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - encode(message: QuerySellOrdersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersRequest { - const message = createBaseQuerySellOrdersRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersRequestAmino): QuerySellOrdersRequest { - const message = createBaseQuerySellOrdersRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersRequest): QuerySellOrdersRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersRequestAminoMsg): QuerySellOrdersRequest { - return QuerySellOrdersRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersRequestProtoMsg): QuerySellOrdersRequest { - return QuerySellOrdersRequest.decode(message.value); - }, - toProto(message: QuerySellOrdersRequest): Uint8Array { - return QuerySellOrdersRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - value: QuerySellOrdersRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersResponse(): QuerySellOrdersResponse { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - encode(message: QuerySellOrdersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersResponse { - return { - sellOrders: Array.isArray(object?.sellOrders) ? object.sellOrders.map((e: any) => SellOrderInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersResponse): unknown { - const obj: any = {}; - if (message.sellOrders) { - obj.sellOrders = message.sellOrders.map(e => e ? SellOrderInfo.toJSON(e) : undefined); - } else { - obj.sellOrders = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersResponse { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersResponseAmino): QuerySellOrdersResponse { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersResponse): QuerySellOrdersResponseAmino { - const obj: any = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersResponseAminoMsg): QuerySellOrdersResponse { - return QuerySellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersResponseProtoMsg): QuerySellOrdersResponse { - return QuerySellOrdersResponse.decode(message.value); - }, - toProto(message: QuerySellOrdersResponse): Uint8Array { - return QuerySellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - value: QuerySellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchRequest(): QuerySellOrdersByBatchRequest { - return { - batchDenom: "", - pagination: undefined - }; -} -export const QuerySellOrdersByBatchRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - encode(message: QuerySellOrdersByBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersByBatchRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersByBatchRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersByBatchRequest { - const message = createBaseQuerySellOrdersByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersByBatchRequestAmino): QuerySellOrdersByBatchRequest { - const message = createBaseQuerySellOrdersByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersByBatchRequestAminoMsg): QuerySellOrdersByBatchRequest { - return QuerySellOrdersByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersByBatchRequestProtoMsg): QuerySellOrdersByBatchRequest { - return QuerySellOrdersByBatchRequest.decode(message.value); - }, - toProto(message: QuerySellOrdersByBatchRequest): Uint8Array { - return QuerySellOrdersByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - value: QuerySellOrdersByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchResponse(): QuerySellOrdersByBatchResponse { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersByBatchResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - encode(message: QuerySellOrdersByBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersByBatchResponse { - return { - sellOrders: Array.isArray(object?.sellOrders) ? object.sellOrders.map((e: any) => SellOrderInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersByBatchResponse): unknown { - const obj: any = {}; - if (message.sellOrders) { - obj.sellOrders = message.sellOrders.map(e => e ? SellOrderInfo.toJSON(e) : undefined); - } else { - obj.sellOrders = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersByBatchResponse { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersByBatchResponseAmino): QuerySellOrdersByBatchResponse { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseAmino { - const obj: any = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersByBatchResponseAminoMsg): QuerySellOrdersByBatchResponse { - return QuerySellOrdersByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersByBatchResponseProtoMsg): QuerySellOrdersByBatchResponse { - return QuerySellOrdersByBatchResponse.decode(message.value); - }, - toProto(message: QuerySellOrdersByBatchResponse): Uint8Array { - return QuerySellOrdersByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - value: QuerySellOrdersByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerRequest(): QuerySellOrdersBySellerRequest { - return { - seller: "", - pagination: undefined - }; -} -export const QuerySellOrdersBySellerRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - encode(message: QuerySellOrdersBySellerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersBySellerRequest { - return { - seller: isSet(object.seller) ? String(object.seller) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersBySellerRequest): unknown { - const obj: any = {}; - message.seller !== undefined && (obj.seller = message.seller); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersBySellerRequest { - const message = createBaseQuerySellOrdersBySellerRequest(); - message.seller = object.seller ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersBySellerRequestAmino): QuerySellOrdersBySellerRequest { - const message = createBaseQuerySellOrdersBySellerRequest(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestAmino { - const obj: any = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersBySellerRequestAminoMsg): QuerySellOrdersBySellerRequest { - return QuerySellOrdersBySellerRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersBySellerRequestProtoMsg): QuerySellOrdersBySellerRequest { - return QuerySellOrdersBySellerRequest.decode(message.value); - }, - toProto(message: QuerySellOrdersBySellerRequest): Uint8Array { - return QuerySellOrdersBySellerRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - value: QuerySellOrdersBySellerRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerResponse(): QuerySellOrdersBySellerResponse { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersBySellerResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - encode(message: QuerySellOrdersBySellerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySellOrdersBySellerResponse { - return { - sellOrders: Array.isArray(object?.sellOrders) ? object.sellOrders.map((e: any) => SellOrderInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QuerySellOrdersBySellerResponse): unknown { - const obj: any = {}; - if (message.sellOrders) { - obj.sellOrders = message.sellOrders.map(e => e ? SellOrderInfo.toJSON(e) : undefined); - } else { - obj.sellOrders = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QuerySellOrdersBySellerResponse { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QuerySellOrdersBySellerResponseAmino): QuerySellOrdersBySellerResponse { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseAmino { - const obj: any = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QuerySellOrdersBySellerResponseAminoMsg): QuerySellOrdersBySellerResponse { - return QuerySellOrdersBySellerResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySellOrdersBySellerResponseProtoMsg): QuerySellOrdersBySellerResponse { - return QuerySellOrdersBySellerResponse.decode(message.value); - }, - toProto(message: QuerySellOrdersBySellerResponse): Uint8Array { - return QuerySellOrdersBySellerResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - value: QuerySellOrdersBySellerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsRequest(): QueryAllowedDenomsRequest { - return { - pagination: undefined - }; -} -export const QueryAllowedDenomsRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - encode(message: QueryAllowedDenomsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowedDenomsRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowedDenomsRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowedDenomsRequest { - const message = createBaseQueryAllowedDenomsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowedDenomsRequestAmino): QueryAllowedDenomsRequest { - const message = createBaseQueryAllowedDenomsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowedDenomsRequestAminoMsg): QueryAllowedDenomsRequest { - return QueryAllowedDenomsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedDenomsRequestProtoMsg): QueryAllowedDenomsRequest { - return QueryAllowedDenomsRequest.decode(message.value); - }, - toProto(message: QueryAllowedDenomsRequest): Uint8Array { - return QueryAllowedDenomsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - value: QueryAllowedDenomsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsResponse(): QueryAllowedDenomsResponse { - return { - allowedDenoms: [], - pagination: undefined - }; -} -export const QueryAllowedDenomsResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - encode(message: QueryAllowedDenomsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowedDenoms) { - AllowedDenom.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowedDenomsResponse { - return { - allowedDenoms: Array.isArray(object?.allowedDenoms) ? object.allowedDenoms.map((e: any) => AllowedDenom.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowedDenomsResponse): unknown { - const obj: any = {}; - if (message.allowedDenoms) { - obj.allowedDenoms = message.allowedDenoms.map(e => e ? AllowedDenom.toJSON(e) : undefined); - } else { - obj.allowedDenoms = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowedDenomsResponse { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowedDenomsResponseAmino): QueryAllowedDenomsResponse { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseAmino { - const obj: any = {}; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); - } else { - obj.allowed_denoms = message.allowedDenoms; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowedDenomsResponseAminoMsg): QueryAllowedDenomsResponse { - return QueryAllowedDenomsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedDenomsResponseProtoMsg): QueryAllowedDenomsResponse { - return QueryAllowedDenomsResponse.decode(message.value); - }, - toProto(message: QueryAllowedDenomsResponse): Uint8Array { - return QueryAllowedDenomsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - value: QueryAllowedDenomsResponse.encode(message).finish() - }; - } -}; -function createBaseSellOrderInfo(): SellOrderInfo { - return { - id: BigInt(0), - seller: "", - batchDenom: "", - quantity: "", - askDenom: "", - askAmount: "", - disableAutoRetire: false, - expiration: undefined - }; -} -export const SellOrderInfo = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - encode(message: SellOrderInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller !== "") { - writer.uint32(18).string(message.seller); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.askDenom !== "") { - writer.uint32(42).string(message.askDenom); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrderInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.askDenom = reader.string(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SellOrderInfo { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - seller: isSet(object.seller) ? String(object.seller) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - quantity: isSet(object.quantity) ? String(object.quantity) : "", - askDenom: isSet(object.askDenom) ? String(object.askDenom) : "", - askAmount: isSet(object.askAmount) ? String(object.askAmount) : "", - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined - }; - }, - toJSON(message: SellOrderInfo): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.seller !== undefined && (obj.seller = message.seller); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.quantity !== undefined && (obj.quantity = message.quantity); - message.askDenom !== undefined && (obj.askDenom = message.askDenom); - message.askAmount !== undefined && (obj.askAmount = message.askAmount); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): SellOrderInfo { - const message = createBaseSellOrderInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askDenom = object.askDenom ?? ""; - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - return message; - }, - fromAmino(object: SellOrderInfoAmino): SellOrderInfo { - const message = createBaseSellOrderInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_denom !== undefined && object.ask_denom !== null) { - message.askDenom = object.ask_denom; - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - return message; - }, - toAmino(message: SellOrderInfo): SellOrderInfoAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - return obj; - }, - fromAminoMsg(object: SellOrderInfoAminoMsg): SellOrderInfo { - return SellOrderInfo.fromAmino(object.value); - }, - fromProtoMsg(message: SellOrderInfoProtoMsg): SellOrderInfo { - return SellOrderInfo.decode(message.value); - }, - toProto(message: SellOrderInfo): Uint8Array { - return SellOrderInfo.encode(message).finish(); - }, - toProtoMsg(message: SellOrderInfo): SellOrderInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - value: SellOrderInfo.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/state.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/state.ts deleted file mode 100644 index fec20740..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/state.ts +++ /dev/null @@ -1,673 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, bytesFromBase64, fromJsonTimestamp, base64FromBytes, fromTimestamp } from "../../../../helpers"; -/** SellOrder represents the information for a sell order. */ -export interface SellOrder { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: Uint8Array; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batchKey: bigint; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - marketId: bigint; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker: boolean; -} -export interface SellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: Uint8Array; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batch_key?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - market_id?: string; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker?: boolean; -} -export interface SellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: SellOrderAmino; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderSDKType { - id: bigint; - seller: Uint8Array; - batch_key: bigint; - quantity: string; - market_id: bigint; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; - maker: boolean; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: Uint8Array; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface Market { - /** id is the unique ID of the market. */ - id: bigint; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; - /** bank_denom is an allowed bank denom. */ - bankDenom: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precisionModifier: number; -} -export interface MarketProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Market"; - value: Uint8Array; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketAmino { - /** id is the unique ID of the market. */ - id?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; - /** bank_denom is an allowed bank denom. */ - bank_denom?: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precision_modifier?: number; -} -export interface MarketAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Market"; - value: MarketAmino; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketSDKType { - id: bigint; - credit_type_abbrev: string; - bank_denom: string; - precision_modifier: number; -} -function createBaseSellOrder(): SellOrder { - return { - id: BigInt(0), - seller: new Uint8Array(), - batchKey: BigInt(0), - quantity: "", - marketId: BigInt(0), - askAmount: "", - disableAutoRetire: false, - expiration: undefined, - maker: false - }; -} -export const SellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - encode(message: SellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller.length !== 0) { - writer.uint32(18).bytes(message.seller); - } - if (message.batchKey !== BigInt(0)) { - writer.uint32(24).uint64(message.batchKey); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.marketId !== BigInt(0)) { - writer.uint32(40).uint64(message.marketId); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(74).fork()).ldelim(); - } - if (message.maker === true) { - writer.uint32(80).bool(message.maker); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SellOrder { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.bytes(); - break; - case 3: - message.batchKey = reader.uint64(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.marketId = reader.uint64(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.maker = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SellOrder { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - seller: isSet(object.seller) ? bytesFromBase64(object.seller) : new Uint8Array(), - batchKey: isSet(object.batchKey) ? BigInt(object.batchKey.toString()) : BigInt(0), - quantity: isSet(object.quantity) ? String(object.quantity) : "", - marketId: isSet(object.marketId) ? BigInt(object.marketId.toString()) : BigInt(0), - askAmount: isSet(object.askAmount) ? String(object.askAmount) : "", - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined, - maker: isSet(object.maker) ? Boolean(object.maker) : false - }; - }, - toJSON(message: SellOrder): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.seller !== undefined && (obj.seller = base64FromBytes(message.seller !== undefined ? message.seller : new Uint8Array())); - message.batchKey !== undefined && (obj.batchKey = (message.batchKey || BigInt(0)).toString()); - message.quantity !== undefined && (obj.quantity = message.quantity); - message.marketId !== undefined && (obj.marketId = (message.marketId || BigInt(0)).toString()); - message.askAmount !== undefined && (obj.askAmount = message.askAmount); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - message.maker !== undefined && (obj.maker = message.maker); - return obj; - }, - fromPartial(object: Partial): SellOrder { - const message = createBaseSellOrder(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? new Uint8Array(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - message.maker = object.maker ?? false; - return message; - }, - fromAmino(object: SellOrderAmino): SellOrder { - const message = createBaseSellOrder(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = bytesFromBase64(object.seller); - } - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - if (object.maker !== undefined && object.maker !== null) { - message.maker = object.maker; - } - return message; - }, - toAmino(message: SellOrder): SellOrderAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller ? base64FromBytes(message.seller) : undefined; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - obj.maker = message.maker === false ? undefined : message.maker; - return obj; - }, - fromAminoMsg(object: SellOrderAminoMsg): SellOrder { - return SellOrder.fromAmino(object.value); - }, - fromProtoMsg(message: SellOrderProtoMsg): SellOrder { - return SellOrder.decode(message.value); - }, - toProto(message: SellOrder): Uint8Array { - return SellOrder.encode(message).finish(); - }, - toProtoMsg(message: SellOrder): SellOrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - value: SellOrder.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom(): AllowedDenom { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const AllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - encode(message: AllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowedDenom { - return { - bankDenom: isSet(object.bankDenom) ? String(object.bankDenom) : "", - displayDenom: isSet(object.displayDenom) ? String(object.displayDenom) : "", - exponent: isSet(object.exponent) ? Number(object.exponent) : 0 - }; - }, - toJSON(message: AllowedDenom): unknown { - const obj: any = {}; - message.bankDenom !== undefined && (obj.bankDenom = message.bankDenom); - message.displayDenom !== undefined && (obj.displayDenom = message.displayDenom); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - return obj; - }, - fromPartial(object: Partial): AllowedDenom { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object: AllowedDenomAmino): AllowedDenom { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message: AllowedDenom): AllowedDenomAmino { - const obj: any = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom { - return AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom { - return AllowedDenom.decode(message.value); - }, - toProto(message: AllowedDenom): Uint8Array { - return AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - value: AllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMarket(): Market { - return { - id: BigInt(0), - creditTypeAbbrev: "", - bankDenom: "", - precisionModifier: 0 - }; -} -export const Market = { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - encode(message: Market, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(18).string(message.creditTypeAbbrev); - } - if (message.bankDenom !== "") { - writer.uint32(26).string(message.bankDenom); - } - if (message.precisionModifier !== 0) { - writer.uint32(32).uint32(message.precisionModifier); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Market { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMarket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.creditTypeAbbrev = reader.string(); - break; - case 3: - message.bankDenom = reader.string(); - break; - case 4: - message.precisionModifier = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Market { - return { - id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0), - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - bankDenom: isSet(object.bankDenom) ? String(object.bankDenom) : "", - precisionModifier: isSet(object.precisionModifier) ? Number(object.precisionModifier) : 0 - }; - }, - toJSON(message: Market): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString()); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - message.bankDenom !== undefined && (obj.bankDenom = message.bankDenom); - message.precisionModifier !== undefined && (obj.precisionModifier = Math.round(message.precisionModifier)); - return obj; - }, - fromPartial(object: Partial): Market { - const message = createBaseMarket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.precisionModifier = object.precisionModifier ?? 0; - return message; - }, - fromAmino(object: MarketAmino): Market { - const message = createBaseMarket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.precision_modifier !== undefined && object.precision_modifier !== null) { - message.precisionModifier = object.precision_modifier; - } - return message; - }, - toAmino(message: Market): MarketAmino { - const obj: any = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; - return obj; - }, - fromAminoMsg(object: MarketAminoMsg): Market { - return Market.fromAmino(object.value); - }, - fromProtoMsg(message: MarketProtoMsg): Market { - return Market.decode(message.value); - }, - toProto(message: Market): Uint8Array { - return Market.encode(message).finish(); - }, - toProtoMsg(message: Market): MarketProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - value: Market.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.amino.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.amino.ts deleted file mode 100644 index 32fc496b..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.amino.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: "regen.marketplace/MsgSell", - toAmino: MsgSell.toAmino, - fromAmino: MsgSell.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: "regen.marketplace/MsgUpdateSellOrders", - toAmino: MsgUpdateSellOrders.toAmino, - fromAmino: MsgUpdateSellOrders.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: "regen.marketplace/MsgCancelSellOrder", - toAmino: MsgCancelSellOrder.toAmino, - fromAmino: MsgCancelSellOrder.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: "regen.marketplace/MsgBuyDirect", - toAmino: MsgBuyDirect.toAmino, - fromAmino: MsgBuyDirect.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: "regen.marketplace/MsgAddAllowedDenom", - toAmino: MsgAddAllowedDenom.toAmino, - fromAmino: MsgAddAllowedDenom.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: "regen.marketplace/MsgRemoveAllowedDenom", - toAmino: MsgRemoveAllowedDenom.toAmino, - fromAmino: MsgRemoveAllowedDenom.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.registry.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.registry.ts deleted file mode 100644 index 4d05c618..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.registry.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.marketplace.v1.MsgSell", MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", MsgRemoveAllowedDenom]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - sell(value: MsgSell) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.encode(value).finish() - }; - }, - updateSellOrders(value: MsgUpdateSellOrders) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.encode(value).finish() - }; - }, - cancelSellOrder(value: MsgCancelSellOrder) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.encode(value).finish() - }; - }, - buyDirect(value: MsgBuyDirect) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.encode(value).finish() - }; - }, - addAllowedDenom(value: MsgAddAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.encode(value).finish() - }; - }, - removeAllowedDenom(value: MsgRemoveAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.encode(value).finish() - }; - } - }, - withTypeUrl: { - sell(value: MsgSell) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value - }; - }, - updateSellOrders(value: MsgUpdateSellOrders) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value - }; - }, - cancelSellOrder(value: MsgCancelSellOrder) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value - }; - }, - buyDirect(value: MsgBuyDirect) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value - }; - }, - addAllowedDenom(value: MsgAddAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value - }; - }, - removeAllowedDenom(value: MsgRemoveAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value - }; - } - }, - toJSON: { - sell(value: MsgSell) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.toJSON(value) - }; - }, - updateSellOrders(value: MsgUpdateSellOrders) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.toJSON(value) - }; - }, - cancelSellOrder(value: MsgCancelSellOrder) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.toJSON(value) - }; - }, - buyDirect(value: MsgBuyDirect) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.toJSON(value) - }; - }, - addAllowedDenom(value: MsgAddAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.toJSON(value) - }; - }, - removeAllowedDenom(value: MsgRemoveAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.toJSON(value) - }; - } - }, - fromJSON: { - sell(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.fromJSON(value) - }; - }, - updateSellOrders(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.fromJSON(value) - }; - }, - cancelSellOrder(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.fromJSON(value) - }; - }, - buyDirect(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.fromJSON(value) - }; - }, - addAllowedDenom(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.fromJSON(value) - }; - }, - removeAllowedDenom(value: any) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.fromJSON(value) - }; - } - }, - fromPartial: { - sell(value: MsgSell) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.fromPartial(value) - }; - }, - updateSellOrders(value: MsgUpdateSellOrders) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.fromPartial(value) - }; - }, - cancelSellOrder(value: MsgCancelSellOrder) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.fromPartial(value) - }; - }, - buyDirect(value: MsgBuyDirect) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.fromPartial(value) - }; - }, - addAllowedDenom(value: MsgAddAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.fromPartial(value) - }; - }, - removeAllowedDenom(value: MsgRemoveAllowedDenom) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts deleted file mode 100644 index a85d5b81..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { BinaryReader } from "../../../../binary"; -import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; -/** Msg is the regen.ecocredit.marketplace.v1 Msg service. */ -export interface Msg { - /** Sell creates new sell orders. */ - sell(request: MsgSell): Promise; - /** UpdateSellOrders updates existing sell orders. */ - updateSellOrders(request: MsgUpdateSellOrders): Promise; - /** CancelSellOrder cancels a sell order and returns the credits from escrow. */ - cancelSellOrder(request: MsgCancelSellOrder): Promise; - /** BuyDirect purchases credits directly from the specified sell order. */ - buyDirect(request: MsgBuyDirect): Promise; - /** - * AddAllowedDenom is a governance method that allows the addition of - * new allowed denom. - * - * Since Revision 1 - */ - addAllowedDenom(request: MsgAddAllowedDenom): Promise; - /** - * RemoveAllowedDenom is a governance method that removes allowed denom. - * - * Since Revision 1 - */ - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.sell = this.sell.bind(this); - this.updateSellOrders = this.updateSellOrders.bind(this); - this.cancelSellOrder = this.cancelSellOrder.bind(this); - this.buyDirect = this.buyDirect.bind(this); - this.addAllowedDenom = this.addAllowedDenom.bind(this); - this.removeAllowedDenom = this.removeAllowedDenom.bind(this); - } - sell(request: MsgSell): Promise { - const data = MsgSell.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); - return promise.then(data => MsgSellResponse.decode(new BinaryReader(data))); - } - updateSellOrders(request: MsgUpdateSellOrders): Promise { - const data = MsgUpdateSellOrders.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); - return promise.then(data => MsgUpdateSellOrdersResponse.decode(new BinaryReader(data))); - } - cancelSellOrder(request: MsgCancelSellOrder): Promise { - const data = MsgCancelSellOrder.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); - return promise.then(data => MsgCancelSellOrderResponse.decode(new BinaryReader(data))); - } - buyDirect(request: MsgBuyDirect): Promise { - const data = MsgBuyDirect.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); - return promise.then(data => MsgBuyDirectResponse.decode(new BinaryReader(data))); - } - addAllowedDenom(request: MsgAddAllowedDenom): Promise { - const data = MsgAddAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); - return promise.then(data => MsgAddAllowedDenomResponse.decode(new BinaryReader(data))); - } - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise { - const data = MsgRemoveAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); - return promise.then(data => MsgRemoveAllowedDenomResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.ts deleted file mode 100644 index f38b6e25..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/tx.ts +++ /dev/null @@ -1,1927 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../../helpers"; -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSell { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** orders are the sell orders being created. */ - orders: MsgSell_Order[]; -} -export interface MsgSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell"; - value: Uint8Array; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** orders are the sell orders being created. */ - orders?: MsgSell_OrderAmino[]; -} -export interface MsgSellAminoMsg { - type: "regen.marketplace/MsgSell"; - value: MsgSellAmino; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellSDKType { - seller: string; - orders: MsgSell_OrderSDKType[]; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_Order { - /** batch_denom is the credit batch being sold. */ - batchDenom: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - askPrice?: Coin; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; -} -export interface MsgSell_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderAmino { - /** batch_denom is the credit batch being sold. */ - batch_denom?: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity?: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - ask_price?: CoinAmino; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface MsgSell_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgSell_OrderAmino; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderSDKType { - batch_denom: string; - quantity: string; - ask_price?: CoinSDKType; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponse { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sellOrderIds: bigint[]; -} -export interface MsgSellResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: Uint8Array; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseAmino { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sell_order_ids?: string[]; -} -export interface MsgSellResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: MsgSellResponseAmino; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseSDKType { - sell_order_ids: bigint[]; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrders { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** updates are updates to existing sell orders. */ - updates: MsgUpdateSellOrders_Update[]; -} -export interface MsgUpdateSellOrdersProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders"; - value: Uint8Array; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** updates are updates to existing sell orders. */ - updates?: MsgUpdateSellOrders_UpdateAmino[]; -} -export interface MsgUpdateSellOrdersAminoMsg { - type: "regen.marketplace/MsgUpdateSellOrders"; - value: MsgUpdateSellOrdersAmino; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersSDKType { - seller: string; - updates: MsgUpdateSellOrders_UpdateSDKType[]; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_Update { - /** sell_order_id is the ID of an existing sell order. */ - sellOrderId: bigint; - /** new_quantity is the updated quantity of credits available to sell. */ - newQuantity: string; - /** new_ask_price is the new ask price for this sell order */ - newAskPrice?: Coin; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disableAutoRetire: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - newExpiration?: Timestamp; -} -export interface MsgUpdateSellOrders_UpdateProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Update"; - value: Uint8Array; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateAmino { - /** sell_order_id is the ID of an existing sell order. */ - sell_order_id?: string; - /** new_quantity is the updated quantity of credits available to sell. */ - new_quantity?: string; - /** new_ask_price is the new ask price for this sell order */ - new_ask_price?: CoinAmino; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disable_auto_retire?: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - new_expiration?: string; -} -export interface MsgUpdateSellOrders_UpdateAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Update"; - value: MsgUpdateSellOrders_UpdateAmino; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateSDKType { - sell_order_id: bigint; - new_quantity: string; - new_ask_price?: CoinSDKType; - disable_auto_retire: boolean; - new_expiration?: TimestampSDKType; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponse {} -export interface MsgUpdateSellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: Uint8Array; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseAmino {} -export interface MsgUpdateSellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: MsgUpdateSellOrdersResponseAmino; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseSDKType {} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrder { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller: string; - /** sell_order_id is the id of the seller order to cancel. */ - sellOrderId: bigint; -} -export interface MsgCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderAmino { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller?: string; - /** sell_order_id is the id of the seller order to cancel. */ - sell_order_id?: string; -} -export interface MsgCancelSellOrderAminoMsg { - type: "regen.marketplace/MsgCancelSellOrder"; - value: MsgCancelSellOrderAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderSDKType { - seller: string; - sell_order_id: bigint; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponse {} -export interface MsgCancelSellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseAmino {} -export interface MsgCancelSellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: MsgCancelSellOrderResponseAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseSDKType {} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirect { - /** buyer is the address of the account that is buying credits. */ - buyer: string; - /** orders is a list of orders for ecocredits. */ - orders: MsgBuyDirect_Order[]; -} -export interface MsgBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect"; - value: Uint8Array; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectAmino { - /** buyer is the address of the account that is buying credits. */ - buyer?: string; - /** orders is a list of orders for ecocredits. */ - orders?: MsgBuyDirect_OrderAmino[]; -} -export interface MsgBuyDirectAminoMsg { - type: "regen.marketplace/MsgBuyDirect"; - value: MsgBuyDirectAmino; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectSDKType { - buyer: string; - orders: MsgBuyDirect_OrderSDKType[]; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_Order { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sellOrderId: bigint; - /** quantity is the quantity of credits to buy. */ - quantity: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bidPrice?: Coin; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disableAutoRetire: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirementReason: string; -} -export interface MsgBuyDirect_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderAmino { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sell_order_id?: string; - /** quantity is the quantity of credits to buy. */ - quantity?: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bid_price?: CoinAmino; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disable_auto_retire?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirement_reason?: string; -} -export interface MsgBuyDirect_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgBuyDirect_OrderAmino; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderSDKType { - sell_order_id: bigint; - quantity: string; - bid_price?: CoinSDKType; - disable_auto_retire: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponse {} -export interface MsgBuyDirectResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: Uint8Array; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseAmino {} -export interface MsgBuyDirectResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: MsgBuyDirectResponseAmino; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseSDKType {} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface MsgAddAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface MsgAddAllowedDenomAminoMsg { - type: "regen.marketplace/MsgAddAllowedDenom"; - value: MsgAddAllowedDenomAmino; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomSDKType { - authority: string; - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponse {} -export interface MsgAddAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseAmino {} -export interface MsgAddAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: MsgAddAllowedDenomResponseAmino; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseSDKType {} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom: string; -} -export interface MsgRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom?: string; -} -export interface MsgRemoveAllowedDenomAminoMsg { - type: "regen.marketplace/MsgRemoveAllowedDenom"; - value: MsgRemoveAllowedDenomAmino; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomSDKType { - authority: string; - denom: string; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponse {} -export interface MsgRemoveAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseAmino {} -export interface MsgRemoveAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: MsgRemoveAllowedDenomResponseAmino; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseSDKType {} -function createBaseMsgSell(): MsgSell { - return { - seller: "", - orders: [] - }; -} -export const MsgSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - encode(message: MsgSell, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.orders) { - MsgSell_Order.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.orders.push(MsgSell_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSell { - return { - seller: isSet(object.seller) ? String(object.seller) : "", - orders: Array.isArray(object?.orders) ? object.orders.map((e: any) => MsgSell_Order.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgSell): unknown { - const obj: any = {}; - message.seller !== undefined && (obj.seller = message.seller); - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgSell_Order.toJSON(e) : undefined); - } else { - obj.orders = []; - } - return obj; - }, - fromPartial(object: Partial): MsgSell { - const message = createBaseMsgSell(); - message.seller = object.seller ?? ""; - message.orders = object.orders?.map(e => MsgSell_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgSellAmino): MsgSell { - const message = createBaseMsgSell(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.orders = object.orders?.map(e => MsgSell_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgSell): MsgSellAmino { - const obj: any = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgSell_Order.toAmino(e) : undefined); - } else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object: MsgSellAminoMsg): MsgSell { - return MsgSell.fromAmino(object.value); - }, - toAminoMsg(message: MsgSell): MsgSellAminoMsg { - return { - type: "regen.marketplace/MsgSell", - value: MsgSell.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSellProtoMsg): MsgSell { - return MsgSell.decode(message.value); - }, - toProto(message: MsgSell): Uint8Array { - return MsgSell.encode(message).finish(); - }, - toProtoMsg(message: MsgSell): MsgSellProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.encode(message).finish() - }; - } -}; -function createBaseMsgSell_Order(): MsgSell_Order { - return { - batchDenom: "", - quantity: "", - askPrice: undefined, - disableAutoRetire: false, - expiration: undefined - }; -} -export const MsgSell_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message: MsgSell_Order, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(18).string(message.quantity); - } - if (message.askPrice !== undefined) { - Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(message.expiration, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.quantity = reader.string(); - break; - case 3: - message.askPrice = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.expiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSell_Order { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - quantity: isSet(object.quantity) ? String(object.quantity) : "", - askPrice: isSet(object.askPrice) ? Coin.fromJSON(object.askPrice) : undefined, - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined - }; - }, - toJSON(message: MsgSell_Order): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.quantity !== undefined && (obj.quantity = message.quantity); - message.askPrice !== undefined && (obj.askPrice = message.askPrice ? Coin.toJSON(message.askPrice) : undefined); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgSell_Order { - const message = createBaseMsgSell_Order(); - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? Coin.fromPartial(object.askPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined; - return message; - }, - fromAmino(object: MsgSell_OrderAmino): MsgSell_Order { - const message = createBaseMsgSell_Order(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = Coin.fromAmino(object.ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = Timestamp.fromAmino(object.expiration); - } - return message; - }, - toAmino(message: MsgSell_Order): MsgSell_OrderAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_price = message.askPrice ? Coin.toAmino(message.askPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(message.expiration) : undefined; - return obj; - }, - fromAminoMsg(object: MsgSell_OrderAminoMsg): MsgSell_Order { - return MsgSell_Order.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSell_OrderProtoMsg): MsgSell_Order { - return MsgSell_Order.decode(message.value); - }, - toProto(message: MsgSell_Order): Uint8Array { - return MsgSell_Order.encode(message).finish(); - }, - toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: MsgSell_Order.encode(message).finish() - }; - } -}; -function createBaseMsgSellResponse(): MsgSellResponse { - return { - sellOrderIds: [] - }; -} -export const MsgSellResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - encode(message: MsgSellResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - writer.uint32(10).fork(); - for (const v of message.sellOrderIds) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSellResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.sellOrderIds.push(reader.uint64()); - } - } else { - message.sellOrderIds.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSellResponse { - return { - sellOrderIds: Array.isArray(object?.sellOrderIds) ? object.sellOrderIds.map((e: any) => BigInt(e.toString())) : [] - }; - }, - toJSON(message: MsgSellResponse): unknown { - const obj: any = {}; - if (message.sellOrderIds) { - obj.sellOrderIds = message.sellOrderIds.map(e => (e || BigInt(0)).toString()); - } else { - obj.sellOrderIds = []; - } - return obj; - }, - fromPartial(object: Partial): MsgSellResponse { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object: MsgSellResponseAmino): MsgSellResponse { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message: MsgSellResponse): MsgSellResponseAmino { - const obj: any = {}; - if (message.sellOrderIds) { - obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); - } else { - obj.sell_order_ids = message.sellOrderIds; - } - return obj; - }, - fromAminoMsg(object: MsgSellResponseAminoMsg): MsgSellResponse { - return MsgSellResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSellResponseProtoMsg): MsgSellResponse { - return MsgSellResponse.decode(message.value); - }, - toProto(message: MsgSellResponse): Uint8Array { - return MsgSellResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - value: MsgSellResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders(): MsgUpdateSellOrders { - return { - seller: "", - updates: [] - }; -} -export const MsgUpdateSellOrders = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - encode(message: MsgUpdateSellOrders, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.updates) { - MsgUpdateSellOrders_Update.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.updates.push(MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateSellOrders { - return { - seller: isSet(object.seller) ? String(object.seller) : "", - updates: Array.isArray(object?.updates) ? object.updates.map((e: any) => MsgUpdateSellOrders_Update.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgUpdateSellOrders): unknown { - const obj: any = {}; - message.seller !== undefined && (obj.seller = message.seller); - if (message.updates) { - obj.updates = message.updates.map(e => e ? MsgUpdateSellOrders_Update.toJSON(e) : undefined); - } else { - obj.updates = []; - } - return obj; - }, - fromPartial(object: Partial): MsgUpdateSellOrders { - const message = createBaseMsgUpdateSellOrders(); - message.seller = object.seller ?? ""; - message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgUpdateSellOrdersAmino): MsgUpdateSellOrders { - const message = createBaseMsgUpdateSellOrders(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAmino { - const obj: any = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.updates) { - obj.updates = message.updates.map(e => e ? MsgUpdateSellOrders_Update.toAmino(e) : undefined); - } else { - obj.updates = message.updates; - } - return obj; - }, - fromAminoMsg(object: MsgUpdateSellOrdersAminoMsg): MsgUpdateSellOrders { - return MsgUpdateSellOrders.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAminoMsg { - return { - type: "regen.marketplace/MsgUpdateSellOrders", - value: MsgUpdateSellOrders.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateSellOrdersProtoMsg): MsgUpdateSellOrders { - return MsgUpdateSellOrders.decode(message.value); - }, - toProto(message: MsgUpdateSellOrders): Uint8Array { - return MsgUpdateSellOrders.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders_Update(): MsgUpdateSellOrders_Update { - return { - sellOrderId: BigInt(0), - newQuantity: "", - newAskPrice: undefined, - disableAutoRetire: false, - newExpiration: undefined - }; -} -export const MsgUpdateSellOrders_Update = { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - encode(message: MsgUpdateSellOrders_Update, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - if (message.newQuantity !== "") { - writer.uint32(18).string(message.newQuantity); - } - if (message.newAskPrice !== undefined) { - Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.newExpiration !== undefined) { - Timestamp.encode(message.newExpiration, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders_Update(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - case 2: - message.newQuantity = reader.string(); - break; - case 3: - message.newAskPrice = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.newExpiration = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateSellOrders_Update { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0), - newQuantity: isSet(object.newQuantity) ? String(object.newQuantity) : "", - newAskPrice: isSet(object.newAskPrice) ? Coin.fromJSON(object.newAskPrice) : undefined, - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - newExpiration: isSet(object.newExpiration) ? fromJsonTimestamp(object.newExpiration) : undefined - }; - }, - toJSON(message: MsgUpdateSellOrders_Update): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - message.newQuantity !== undefined && (obj.newQuantity = message.newQuantity); - message.newAskPrice !== undefined && (obj.newAskPrice = message.newAskPrice ? Coin.toJSON(message.newAskPrice) : undefined); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.newExpiration !== undefined && (obj.newExpiration = fromTimestamp(message.newExpiration).toISOString()); - return obj; - }, - fromPartial(object: Partial): MsgUpdateSellOrders_Update { - const message = createBaseMsgUpdateSellOrders_Update(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.newQuantity = object.newQuantity ?? ""; - message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? Coin.fromPartial(object.newAskPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.newExpiration = object.newExpiration !== undefined && object.newExpiration !== null ? Timestamp.fromPartial(object.newExpiration) : undefined; - return message; - }, - fromAmino(object: MsgUpdateSellOrders_UpdateAmino): MsgUpdateSellOrders_Update { - const message = createBaseMsgUpdateSellOrders_Update(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.new_quantity !== undefined && object.new_quantity !== null) { - message.newQuantity = object.new_quantity; - } - if (object.new_ask_price !== undefined && object.new_ask_price !== null) { - message.newAskPrice = Coin.fromAmino(object.new_ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.new_expiration !== undefined && object.new_expiration !== null) { - message.newExpiration = Timestamp.fromAmino(object.new_expiration); - } - return message; - }, - toAmino(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; - obj.new_ask_price = message.newAskPrice ? Coin.toAmino(message.newAskPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.new_expiration = message.newExpiration ? Timestamp.toAmino(message.newExpiration) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateSellOrders_UpdateAminoMsg): MsgUpdateSellOrders_Update { - return MsgUpdateSellOrders_Update.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateSellOrders_UpdateProtoMsg): MsgUpdateSellOrders_Update { - return MsgUpdateSellOrders_Update.decode(message.value); - }, - toProto(message: MsgUpdateSellOrders_Update): Uint8Array { - return MsgUpdateSellOrders_Update.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - value: MsgUpdateSellOrders_Update.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrdersResponse(): MsgUpdateSellOrdersResponse { - return {}; -} -export const MsgUpdateSellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - encode(_: MsgUpdateSellOrdersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateSellOrdersResponse { - return {}; - }, - toJSON(_: MsgUpdateSellOrdersResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateSellOrdersResponse { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - fromAmino(_: MsgUpdateSellOrdersResponseAmino): MsgUpdateSellOrdersResponse { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - toAmino(_: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateSellOrdersResponseAminoMsg): MsgUpdateSellOrdersResponse { - return MsgUpdateSellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateSellOrdersResponseProtoMsg): MsgUpdateSellOrdersResponse { - return MsgUpdateSellOrdersResponse.decode(message.value); - }, - toProto(message: MsgUpdateSellOrdersResponse): Uint8Array { - return MsgUpdateSellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - value: MsgUpdateSellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrder(): MsgCancelSellOrder { - return { - seller: "", - sellOrderId: BigInt(0) - }; -} -export const MsgCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - encode(message: MsgCancelSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancelSellOrder { - return { - seller: isSet(object.seller) ? String(object.seller) : "", - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0) - }; - }, - toJSON(message: MsgCancelSellOrder): unknown { - const obj: any = {}; - message.seller !== undefined && (obj.seller = message.seller); - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): MsgCancelSellOrder { - const message = createBaseMsgCancelSellOrder(); - message.seller = object.seller ?? ""; - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MsgCancelSellOrderAmino): MsgCancelSellOrder { - const message = createBaseMsgCancelSellOrder(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message: MsgCancelSellOrder): MsgCancelSellOrderAmino { - const obj: any = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MsgCancelSellOrderAminoMsg): MsgCancelSellOrder { - return MsgCancelSellOrder.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderAminoMsg { - return { - type: "regen.marketplace/MsgCancelSellOrder", - value: MsgCancelSellOrder.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelSellOrderProtoMsg): MsgCancelSellOrder { - return MsgCancelSellOrder.decode(message.value); - }, - toProto(message: MsgCancelSellOrder): Uint8Array { - return MsgCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrderResponse(): MsgCancelSellOrderResponse { - return {}; -} -export const MsgCancelSellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - encode(_: MsgCancelSellOrderResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCancelSellOrderResponse { - return {}; - }, - toJSON(_: MsgCancelSellOrderResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCancelSellOrderResponse { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - fromAmino(_: MsgCancelSellOrderResponseAmino): MsgCancelSellOrderResponse { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - toAmino(_: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCancelSellOrderResponseAminoMsg): MsgCancelSellOrderResponse { - return MsgCancelSellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCancelSellOrderResponseProtoMsg): MsgCancelSellOrderResponse { - return MsgCancelSellOrderResponse.decode(message.value); - }, - toProto(message: MsgCancelSellOrderResponse): Uint8Array { - return MsgCancelSellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - value: MsgCancelSellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect(): MsgBuyDirect { - return { - buyer: "", - orders: [] - }; -} -export const MsgBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - encode(message: MsgBuyDirect, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.buyer !== "") { - writer.uint32(10).string(message.buyer); - } - for (const v of message.orders) { - MsgBuyDirect_Order.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyer = reader.string(); - break; - case 2: - message.orders.push(MsgBuyDirect_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBuyDirect { - return { - buyer: isSet(object.buyer) ? String(object.buyer) : "", - orders: Array.isArray(object?.orders) ? object.orders.map((e: any) => MsgBuyDirect_Order.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgBuyDirect): unknown { - const obj: any = {}; - message.buyer !== undefined && (obj.buyer = message.buyer); - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgBuyDirect_Order.toJSON(e) : undefined); - } else { - obj.orders = []; - } - return obj; - }, - fromPartial(object: Partial): MsgBuyDirect { - const message = createBaseMsgBuyDirect(); - message.buyer = object.buyer ?? ""; - message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgBuyDirectAmino): MsgBuyDirect { - const message = createBaseMsgBuyDirect(); - if (object.buyer !== undefined && object.buyer !== null) { - message.buyer = object.buyer; - } - message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgBuyDirect): MsgBuyDirectAmino { - const obj: any = {}; - obj.buyer = message.buyer === "" ? undefined : message.buyer; - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgBuyDirect_Order.toAmino(e) : undefined); - } else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object: MsgBuyDirectAminoMsg): MsgBuyDirect { - return MsgBuyDirect.fromAmino(object.value); - }, - toAminoMsg(message: MsgBuyDirect): MsgBuyDirectAminoMsg { - return { - type: "regen.marketplace/MsgBuyDirect", - value: MsgBuyDirect.toAmino(message) - }; - }, - fromProtoMsg(message: MsgBuyDirectProtoMsg): MsgBuyDirect { - return MsgBuyDirect.decode(message.value); - }, - toProto(message: MsgBuyDirect): Uint8Array { - return MsgBuyDirect.encode(message).finish(); - }, - toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect_Order(): MsgBuyDirect_Order { - return { - sellOrderId: BigInt(0), - quantity: "", - bidPrice: undefined, - disableAutoRetire: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgBuyDirect_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message: MsgBuyDirect_Order, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - if (message.quantity !== "") { - writer.uint32(26).string(message.quantity); - } - if (message.bidPrice !== undefined) { - Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.sellOrderId = reader.uint64(); - break; - case 3: - message.quantity = reader.string(); - break; - case 4: - message.bidPrice = Coin.decode(reader, reader.uint32()); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBuyDirect_Order { - return { - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0), - quantity: isSet(object.quantity) ? String(object.quantity) : "", - bidPrice: isSet(object.bidPrice) ? Coin.fromJSON(object.bidPrice) : undefined, - disableAutoRetire: isSet(object.disableAutoRetire) ? Boolean(object.disableAutoRetire) : false, - retirementJurisdiction: isSet(object.retirementJurisdiction) ? String(object.retirementJurisdiction) : "", - retirementReason: isSet(object.retirementReason) ? String(object.retirementReason) : "" - }; - }, - toJSON(message: MsgBuyDirect_Order): unknown { - const obj: any = {}; - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - message.quantity !== undefined && (obj.quantity = message.quantity); - message.bidPrice !== undefined && (obj.bidPrice = message.bidPrice ? Coin.toJSON(message.bidPrice) : undefined); - message.disableAutoRetire !== undefined && (obj.disableAutoRetire = message.disableAutoRetire); - message.retirementJurisdiction !== undefined && (obj.retirementJurisdiction = message.retirementJurisdiction); - message.retirementReason !== undefined && (obj.retirementReason = message.retirementReason); - return obj; - }, - fromPartial(object: Partial): MsgBuyDirect_Order { - const message = createBaseMsgBuyDirect_Order(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? Coin.fromPartial(object.bidPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object: MsgBuyDirect_OrderAmino): MsgBuyDirect_Order { - const message = createBaseMsgBuyDirect_Order(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.bid_price !== undefined && object.bid_price !== null) { - message.bidPrice = Coin.fromAmino(object.bid_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message: MsgBuyDirect_Order): MsgBuyDirect_OrderAmino { - const obj: any = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.bid_price = message.bidPrice ? Coin.toAmino(message.bidPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object: MsgBuyDirect_OrderAminoMsg): MsgBuyDirect_Order { - return MsgBuyDirect_Order.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBuyDirect_OrderProtoMsg): MsgBuyDirect_Order { - return MsgBuyDirect_Order.decode(message.value); - }, - toProto(message: MsgBuyDirect_Order): Uint8Array { - return MsgBuyDirect_Order.encode(message).finish(); - }, - toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: MsgBuyDirect_Order.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirectResponse(): MsgBuyDirectResponse { - return {}; -} -export const MsgBuyDirectResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - encode(_: MsgBuyDirectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgBuyDirectResponse { - return {}; - }, - toJSON(_: MsgBuyDirectResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgBuyDirectResponse { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - fromAmino(_: MsgBuyDirectResponseAmino): MsgBuyDirectResponse { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - toAmino(_: MsgBuyDirectResponse): MsgBuyDirectResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgBuyDirectResponseAminoMsg): MsgBuyDirectResponse { - return MsgBuyDirectResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBuyDirectResponseProtoMsg): MsgBuyDirectResponse { - return MsgBuyDirectResponse.decode(message.value); - }, - toProto(message: MsgBuyDirectResponse): Uint8Array { - return MsgBuyDirectResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - value: MsgBuyDirectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenom(): MsgAddAllowedDenom { - return { - authority: "", - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const MsgAddAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - encode(message: MsgAddAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.bankDenom !== "") { - writer.uint32(18).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(26).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.bankDenom = reader.string(); - break; - case 3: - message.displayDenom = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAddAllowedDenom { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - bankDenom: isSet(object.bankDenom) ? String(object.bankDenom) : "", - displayDenom: isSet(object.displayDenom) ? String(object.displayDenom) : "", - exponent: isSet(object.exponent) ? Number(object.exponent) : 0 - }; - }, - toJSON(message: MsgAddAllowedDenom): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.bankDenom !== undefined && (obj.bankDenom = message.bankDenom); - message.displayDenom !== undefined && (obj.displayDenom = message.displayDenom); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - return obj; - }, - fromPartial(object: Partial): MsgAddAllowedDenom { - const message = createBaseMsgAddAllowedDenom(); - message.authority = object.authority ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object: MsgAddAllowedDenomAmino): MsgAddAllowedDenom { - const message = createBaseMsgAddAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message: MsgAddAllowedDenom): MsgAddAllowedDenomAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object: MsgAddAllowedDenomAminoMsg): MsgAddAllowedDenom { - return MsgAddAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomAminoMsg { - return { - type: "regen.marketplace/MsgAddAllowedDenom", - value: MsgAddAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAddAllowedDenomProtoMsg): MsgAddAllowedDenom { - return MsgAddAllowedDenom.decode(message.value); - }, - toProto(message: MsgAddAllowedDenom): Uint8Array { - return MsgAddAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenomResponse(): MsgAddAllowedDenomResponse { - return {}; -} -export const MsgAddAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - encode(_: MsgAddAllowedDenomResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgAddAllowedDenomResponse { - return {}; - }, - toJSON(_: MsgAddAllowedDenomResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgAddAllowedDenomResponse { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - fromAmino(_: MsgAddAllowedDenomResponseAmino): MsgAddAllowedDenomResponse { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - toAmino(_: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgAddAllowedDenomResponseAminoMsg): MsgAddAllowedDenomResponse { - return MsgAddAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAddAllowedDenomResponseProtoMsg): MsgAddAllowedDenomResponse { - return MsgAddAllowedDenomResponse.decode(message.value); - }, - toProto(message: MsgAddAllowedDenomResponse): Uint8Array { - return MsgAddAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - value: MsgAddAllowedDenomResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenom(): MsgRemoveAllowedDenom { - return { - authority: "", - denom: "" - }; -} -export const MsgRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - encode(message: MsgRemoveAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRemoveAllowedDenom { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - denom: isSet(object.denom) ? String(object.denom) : "" - }; - }, - toJSON(message: MsgRemoveAllowedDenom): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.denom !== undefined && (obj.denom = message.denom); - return obj; - }, - fromPartial(object: Partial): MsgRemoveAllowedDenom { - const message = createBaseMsgRemoveAllowedDenom(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object: MsgRemoveAllowedDenomAmino): MsgRemoveAllowedDenom { - const message = createBaseMsgRemoveAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object: MsgRemoveAllowedDenomAminoMsg): MsgRemoveAllowedDenom { - return MsgRemoveAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAminoMsg { - return { - type: "regen.marketplace/MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRemoveAllowedDenomProtoMsg): MsgRemoveAllowedDenom { - return MsgRemoveAllowedDenom.decode(message.value); - }, - toProto(message: MsgRemoveAllowedDenom): Uint8Array { - return MsgRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenomResponse(): MsgRemoveAllowedDenomResponse { - return {}; -} -export const MsgRemoveAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - encode(_: MsgRemoveAllowedDenomResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRemoveAllowedDenomResponse { - return {}; - }, - toJSON(_: MsgRemoveAllowedDenomResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRemoveAllowedDenomResponse { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - fromAmino(_: MsgRemoveAllowedDenomResponseAmino): MsgRemoveAllowedDenomResponse { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - toAmino(_: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRemoveAllowedDenomResponseAminoMsg): MsgRemoveAllowedDenomResponse { - return MsgRemoveAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRemoveAllowedDenomResponseProtoMsg): MsgRemoveAllowedDenomResponse { - return MsgRemoveAllowedDenomResponse.decode(message.value); - }, - toProto(message: MsgRemoveAllowedDenomResponse): Uint8Array { - return MsgRemoveAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - value: MsgRemoveAllowedDenomResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/types.ts b/packages/api/src/codegen/regen/ecocredit/marketplace/v1/types.ts deleted file mode 100644 index 75ecde5e..00000000 --- a/packages/api/src/codegen/regen/ecocredit/marketplace/v1/types.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet } from "../../../../helpers"; -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenom; -} -export interface AllowDenomProposalProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: Uint8Array; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenomAmino; -} -export interface AllowDenomProposalAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: AllowDenomProposalAmino; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalSDKType { - title: string; - description: string; - denom?: AllowedDenomSDKType; -} -function createBaseAllowDenomProposal(): AllowDenomProposal { - return { - title: "", - description: "", - denom: undefined - }; -} -export const AllowDenomProposal = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - encode(message: AllowDenomProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.denom !== undefined) { - AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowDenomProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.denom = AllowedDenom.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowDenomProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - denom: isSet(object.denom) ? AllowedDenom.fromJSON(object.denom) : undefined - }; - }, - toJSON(message: AllowDenomProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.denom !== undefined && (obj.denom = message.denom ? AllowedDenom.toJSON(message.denom) : undefined); - return obj; - }, - fromPartial(object: Partial): AllowDenomProposal { - const message = createBaseAllowDenomProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.denom = object.denom !== undefined && object.denom !== null ? AllowedDenom.fromPartial(object.denom) : undefined; - return message; - }, - fromAmino(object: AllowDenomProposalAmino): AllowDenomProposal { - const message = createBaseAllowDenomProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = AllowedDenom.fromAmino(object.denom); - } - return message; - }, - toAmino(message: AllowDenomProposal): AllowDenomProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.denom = message.denom ? AllowedDenom.toAmino(message.denom) : undefined; - return obj; - }, - fromAminoMsg(object: AllowDenomProposalAminoMsg): AllowDenomProposal { - return AllowDenomProposal.fromAmino(object.value); - }, - fromProtoMsg(message: AllowDenomProposalProtoMsg): AllowDenomProposal { - return AllowDenomProposal.decode(message.value); - }, - toProto(message: AllowDenomProposal): Uint8Array { - return AllowDenomProposal.encode(message).finish(); - }, - toProtoMsg(message: AllowDenomProposal): AllowDenomProposalProtoMsg { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - value: AllowDenomProposal.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/orderbook/v1alpha1/memory.ts b/packages/api/src/codegen/regen/ecocredit/orderbook/v1alpha1/memory.ts deleted file mode 100644 index 207e4810..00000000 --- a/packages/api/src/codegen/regen/ecocredit/orderbook/v1alpha1/memory.ts +++ /dev/null @@ -1,636 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../../helpers"; -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatch { - /** market_id defines the market within which this match exists. */ - marketId: bigint; - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** sell_order_id is the sell order ID. */ - sellOrderId: bigint; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bidPriceComplement: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - askPrice: number; -} -export interface BuyOrderSellOrderMatchProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: Uint8Array; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchAmino { - /** market_id defines the market within which this match exists. */ - market_id?: string; - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** sell_order_id is the sell order ID. */ - sell_order_id?: string; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bid_price_complement?: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - ask_price?: number; -} -export interface BuyOrderSellOrderMatchAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: BuyOrderSellOrderMatchAmino; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchSDKType { - market_id: bigint; - buy_order_id: bigint; - sell_order_id: bigint; - bid_price_complement: number; - ask_price: number; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** class_id is the class ID. */ - classId: bigint; - /** project_location is the project location in the selector's criteria. */ - projectLocation: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Timestamp; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Timestamp; -} -export interface BuyOrderClassSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: Uint8Array; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** class_id is the class ID. */ - class_id?: string; - /** project_location is the project location in the selector's criteria. */ - project_location?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderClassSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: BuyOrderClassSelectorAmino; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorSDKType { - buy_order_id: bigint; - class_id: bigint; - project_location: string; - min_start_date?: TimestampSDKType; - max_end_date?: TimestampSDKType; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** project_id is the project ID. */ - projectId: bigint; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Timestamp; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Timestamp; -} -export interface BuyOrderProjectSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: Uint8Array; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** project_id is the project ID. */ - project_id?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderProjectSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: BuyOrderProjectSelectorAmino; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorSDKType { - buy_order_id: bigint; - project_id: bigint; - min_start_date?: TimestampSDKType; - max_end_date?: TimestampSDKType; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** batch_id is the batch ID. */ - batchId: bigint; -} -export interface BuyOrderBatchSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: Uint8Array; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** batch_id is the batch ID. */ - batch_id?: string; -} -export interface BuyOrderBatchSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: BuyOrderBatchSelectorAmino; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorSDKType { - buy_order_id: bigint; - batch_id: bigint; -} -function createBaseBuyOrderSellOrderMatch(): BuyOrderSellOrderMatch { - return { - marketId: BigInt(0), - buyOrderId: BigInt(0), - sellOrderId: BigInt(0), - bidPriceComplement: 0, - askPrice: 0 - }; -} -export const BuyOrderSellOrderMatch = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - encode(message: BuyOrderSellOrderMatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.marketId !== BigInt(0)) { - writer.uint32(8).uint64(message.marketId); - } - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.buyOrderId); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(24).uint64(message.sellOrderId); - } - if (message.bidPriceComplement !== 0) { - writer.uint32(37).fixed32(message.bidPriceComplement); - } - if (message.askPrice !== 0) { - writer.uint32(45).fixed32(message.askPrice); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderSellOrderMatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.marketId = reader.uint64(); - break; - case 2: - message.buyOrderId = reader.uint64(); - break; - case 3: - message.sellOrderId = reader.uint64(); - break; - case 4: - message.bidPriceComplement = reader.fixed32(); - break; - case 5: - message.askPrice = reader.fixed32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BuyOrderSellOrderMatch { - return { - marketId: isSet(object.marketId) ? BigInt(object.marketId.toString()) : BigInt(0), - buyOrderId: isSet(object.buyOrderId) ? BigInt(object.buyOrderId.toString()) : BigInt(0), - sellOrderId: isSet(object.sellOrderId) ? BigInt(object.sellOrderId.toString()) : BigInt(0), - bidPriceComplement: isSet(object.bidPriceComplement) ? Number(object.bidPriceComplement) : 0, - askPrice: isSet(object.askPrice) ? Number(object.askPrice) : 0 - }; - }, - toJSON(message: BuyOrderSellOrderMatch): unknown { - const obj: any = {}; - message.marketId !== undefined && (obj.marketId = (message.marketId || BigInt(0)).toString()); - message.buyOrderId !== undefined && (obj.buyOrderId = (message.buyOrderId || BigInt(0)).toString()); - message.sellOrderId !== undefined && (obj.sellOrderId = (message.sellOrderId || BigInt(0)).toString()); - message.bidPriceComplement !== undefined && (obj.bidPriceComplement = Math.round(message.bidPriceComplement)); - message.askPrice !== undefined && (obj.askPrice = Math.round(message.askPrice)); - return obj; - }, - fromPartial(object: Partial): BuyOrderSellOrderMatch { - const message = createBaseBuyOrderSellOrderMatch(); - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.bidPriceComplement = object.bidPriceComplement ?? 0; - message.askPrice = object.askPrice ?? 0; - return message; - }, - fromAmino(object: BuyOrderSellOrderMatchAmino): BuyOrderSellOrderMatch { - const message = createBaseBuyOrderSellOrderMatch(); - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { - message.bidPriceComplement = object.bid_price_complement; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = object.ask_price; - } - return message; - }, - toAmino(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchAmino { - const obj: any = {}; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; - obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; - return obj; - }, - fromAminoMsg(object: BuyOrderSellOrderMatchAminoMsg): BuyOrderSellOrderMatch { - return BuyOrderSellOrderMatch.fromAmino(object.value); - }, - fromProtoMsg(message: BuyOrderSellOrderMatchProtoMsg): BuyOrderSellOrderMatch { - return BuyOrderSellOrderMatch.decode(message.value); - }, - toProto(message: BuyOrderSellOrderMatch): Uint8Array { - return BuyOrderSellOrderMatch.encode(message).finish(); - }, - toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - value: BuyOrderSellOrderMatch.encode(message).finish() - }; - } -}; -function createBaseBuyOrderClassSelector(): BuyOrderClassSelector { - return { - buyOrderId: BigInt(0), - classId: BigInt(0), - projectLocation: "", - minStartDate: undefined, - maxEndDate: undefined - }; -} -export const BuyOrderClassSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - encode(message: BuyOrderClassSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.classId !== BigInt(0)) { - writer.uint32(16).uint64(message.classId); - } - if (message.projectLocation !== "") { - writer.uint32(26).string(message.projectLocation); - } - if (message.minStartDate !== undefined) { - Timestamp.encode(message.minStartDate, writer.uint32(34).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - Timestamp.encode(message.maxEndDate, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderClassSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.classId = reader.uint64(); - break; - case 3: - message.projectLocation = reader.string(); - break; - case 4: - message.minStartDate = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.maxEndDate = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BuyOrderClassSelector { - return { - buyOrderId: isSet(object.buyOrderId) ? BigInt(object.buyOrderId.toString()) : BigInt(0), - classId: isSet(object.classId) ? BigInt(object.classId.toString()) : BigInt(0), - projectLocation: isSet(object.projectLocation) ? String(object.projectLocation) : "", - minStartDate: isSet(object.minStartDate) ? fromJsonTimestamp(object.minStartDate) : undefined, - maxEndDate: isSet(object.maxEndDate) ? fromJsonTimestamp(object.maxEndDate) : undefined - }; - }, - toJSON(message: BuyOrderClassSelector): unknown { - const obj: any = {}; - message.buyOrderId !== undefined && (obj.buyOrderId = (message.buyOrderId || BigInt(0)).toString()); - message.classId !== undefined && (obj.classId = (message.classId || BigInt(0)).toString()); - message.projectLocation !== undefined && (obj.projectLocation = message.projectLocation); - message.minStartDate !== undefined && (obj.minStartDate = fromTimestamp(message.minStartDate).toISOString()); - message.maxEndDate !== undefined && (obj.maxEndDate = fromTimestamp(message.maxEndDate).toISOString()); - return obj; - }, - fromPartial(object: Partial): BuyOrderClassSelector { - const message = createBaseBuyOrderClassSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); - message.projectLocation = object.projectLocation ?? ""; - message.minStartDate = object.minStartDate !== undefined && object.minStartDate !== null ? Timestamp.fromPartial(object.minStartDate) : undefined; - message.maxEndDate = object.maxEndDate !== undefined && object.maxEndDate !== null ? Timestamp.fromPartial(object.maxEndDate) : undefined; - return message; - }, - fromAmino(object: BuyOrderClassSelectorAmino): BuyOrderClassSelector { - const message = createBaseBuyOrderClassSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = BigInt(object.class_id); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = Timestamp.fromAmino(object.min_start_date); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = Timestamp.fromAmino(object.max_end_date); - } - return message; - }, - toAmino(message: BuyOrderClassSelector): BuyOrderClassSelectorAmino { - const obj: any = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(message.minStartDate) : undefined; - obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(message.maxEndDate) : undefined; - return obj; - }, - fromAminoMsg(object: BuyOrderClassSelectorAminoMsg): BuyOrderClassSelector { - return BuyOrderClassSelector.fromAmino(object.value); - }, - fromProtoMsg(message: BuyOrderClassSelectorProtoMsg): BuyOrderClassSelector { - return BuyOrderClassSelector.decode(message.value); - }, - toProto(message: BuyOrderClassSelector): Uint8Array { - return BuyOrderClassSelector.encode(message).finish(); - }, - toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - value: BuyOrderClassSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderProjectSelector(): BuyOrderProjectSelector { - return { - buyOrderId: BigInt(0), - projectId: BigInt(0), - minStartDate: undefined, - maxEndDate: undefined - }; -} -export const BuyOrderProjectSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - encode(message: BuyOrderProjectSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.projectId !== BigInt(0)) { - writer.uint32(16).uint64(message.projectId); - } - if (message.minStartDate !== undefined) { - Timestamp.encode(message.minStartDate, writer.uint32(26).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - Timestamp.encode(message.maxEndDate, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderProjectSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.projectId = reader.uint64(); - break; - case 3: - message.minStartDate = Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.maxEndDate = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BuyOrderProjectSelector { - return { - buyOrderId: isSet(object.buyOrderId) ? BigInt(object.buyOrderId.toString()) : BigInt(0), - projectId: isSet(object.projectId) ? BigInt(object.projectId.toString()) : BigInt(0), - minStartDate: isSet(object.minStartDate) ? fromJsonTimestamp(object.minStartDate) : undefined, - maxEndDate: isSet(object.maxEndDate) ? fromJsonTimestamp(object.maxEndDate) : undefined - }; - }, - toJSON(message: BuyOrderProjectSelector): unknown { - const obj: any = {}; - message.buyOrderId !== undefined && (obj.buyOrderId = (message.buyOrderId || BigInt(0)).toString()); - message.projectId !== undefined && (obj.projectId = (message.projectId || BigInt(0)).toString()); - message.minStartDate !== undefined && (obj.minStartDate = fromTimestamp(message.minStartDate).toISOString()); - message.maxEndDate !== undefined && (obj.maxEndDate = fromTimestamp(message.maxEndDate).toISOString()); - return obj; - }, - fromPartial(object: Partial): BuyOrderProjectSelector { - const message = createBaseBuyOrderProjectSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); - message.minStartDate = object.minStartDate !== undefined && object.minStartDate !== null ? Timestamp.fromPartial(object.minStartDate) : undefined; - message.maxEndDate = object.maxEndDate !== undefined && object.maxEndDate !== null ? Timestamp.fromPartial(object.maxEndDate) : undefined; - return message; - }, - fromAmino(object: BuyOrderProjectSelectorAmino): BuyOrderProjectSelector { - const message = createBaseBuyOrderProjectSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = BigInt(object.project_id); - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = Timestamp.fromAmino(object.min_start_date); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = Timestamp.fromAmino(object.max_end_date); - } - return message; - }, - toAmino(message: BuyOrderProjectSelector): BuyOrderProjectSelectorAmino { - const obj: any = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(message.minStartDate) : undefined; - obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(message.maxEndDate) : undefined; - return obj; - }, - fromAminoMsg(object: BuyOrderProjectSelectorAminoMsg): BuyOrderProjectSelector { - return BuyOrderProjectSelector.fromAmino(object.value); - }, - fromProtoMsg(message: BuyOrderProjectSelectorProtoMsg): BuyOrderProjectSelector { - return BuyOrderProjectSelector.decode(message.value); - }, - toProto(message: BuyOrderProjectSelector): Uint8Array { - return BuyOrderProjectSelector.encode(message).finish(); - }, - toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - value: BuyOrderProjectSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderBatchSelector(): BuyOrderBatchSelector { - return { - buyOrderId: BigInt(0), - batchId: BigInt(0) - }; -} -export const BuyOrderBatchSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - encode(message: BuyOrderBatchSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.batchId !== BigInt(0)) { - writer.uint32(16).uint64(message.batchId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderBatchSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.batchId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BuyOrderBatchSelector { - return { - buyOrderId: isSet(object.buyOrderId) ? BigInt(object.buyOrderId.toString()) : BigInt(0), - batchId: isSet(object.batchId) ? BigInt(object.batchId.toString()) : BigInt(0) - }; - }, - toJSON(message: BuyOrderBatchSelector): unknown { - const obj: any = {}; - message.buyOrderId !== undefined && (obj.buyOrderId = (message.buyOrderId || BigInt(0)).toString()); - message.batchId !== undefined && (obj.batchId = (message.batchId || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BuyOrderBatchSelector { - const message = createBaseBuyOrderBatchSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BuyOrderBatchSelectorAmino): BuyOrderBatchSelector { - const message = createBaseBuyOrderBatchSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.batch_id !== undefined && object.batch_id !== null) { - message.batchId = BigInt(object.batch_id); - } - return message; - }, - toAmino(message: BuyOrderBatchSelector): BuyOrderBatchSelectorAmino { - const obj: any = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BuyOrderBatchSelectorAminoMsg): BuyOrderBatchSelector { - return BuyOrderBatchSelector.fromAmino(object.value); - }, - fromProtoMsg(message: BuyOrderBatchSelectorProtoMsg): BuyOrderBatchSelector { - return BuyOrderBatchSelector.decode(message.value); - }, - toProto(message: BuyOrderBatchSelector): Uint8Array { - return BuyOrderBatchSelector.encode(message).finish(); - }, - toProtoMsg(message: BuyOrderBatchSelector): BuyOrderBatchSelectorProtoMsg { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - value: BuyOrderBatchSelector.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/events.ts b/packages/api/src/codegen/regen/ecocredit/v1/events.ts deleted file mode 100644 index 9e874abe..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/events.ts +++ /dev/null @@ -1,2379 +0,0 @@ -import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProject { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface EventCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateProject"; - value: Uint8Array; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface EventCreateProjectAminoMsg { - type: "/regen.ecocredit.v1.EventCreateProject"; - value: EventCreateProjectAmino; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectSDKType { - project_id: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - originTx?: OriginTx; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMint { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradableAmount: string; - /** retired_amount is the amount of retired credits minted. */ - retiredAmount: string; -} -export interface EventMintProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMint"; - value: Uint8Array; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradable_amount?: string; - /** retired_amount is the amount of retired credits minted. */ - retired_amount?: string; -} -export interface EventMintAminoMsg { - type: "/regen.ecocredit.v1.EventMint"; - value: EventMintAmino; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCredits { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - originTx?: OriginTx; -} -export interface EventMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: Uint8Array; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventMintBatchCreditsAminoMsg { - type: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: EventMintBatchCreditsAmino; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransfer { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; -} -export interface EventTransferProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventTransfer"; - value: Uint8Array; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferAmino { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender?: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; -} -export interface EventTransferAminoMsg { - type: "/regen.ecocredit.v1.EventTransfer"; - value: EventTransferAmino; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - owner: string; - batch_denom: string; - amount: string; - jurisdiction: string; - reason: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** owner is the address of the account that cancelled the credits. */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; - /** reason is the reason the credits were cancelled. */ - reason: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** owner is the address of the account that cancelled the credits. */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; - /** reason is the reason the credits were cancelled. */ - reason?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - owner: string; - batch_denom: string; - amount: string; - reason: string; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdmin { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: Uint8Array; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: EventUpdateClassAdminAmino; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminSDKType { - class_id: string; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuers { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: Uint8Array; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: EventUpdateClassIssuersAmino; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersSDKType { - class_id: string; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadata { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: Uint8Array; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: EventUpdateClassMetadataAmino; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataSDKType { - class_id: string; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdmin { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: Uint8Array; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: EventUpdateProjectAdminAmino; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminSDKType { - project_id: string; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadata { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: Uint8Array; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: EventUpdateProjectMetadataAmino; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataSDKType { - project_id: string; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadata { - /** batch_denom is the unique identifier of the batch that was updated. */ - batchDenom: string; -} -export interface EventUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataAmino { - /** batch_denom is the unique identifier of the batch that was updated. */ - batch_denom?: string; -} -export interface EventUpdateBatchMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: EventUpdateBatchMetadataAmino; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataSDKType { - batch_denom: string; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatch { - /** batch_denom is the denom of the batch that was sealed. */ - batchDenom: string; -} -export interface EventSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventSealBatch"; - value: Uint8Array; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchAmino { - /** batch_denom is the denom of the batch that was sealed. */ - batch_denom?: string; -} -export interface EventSealBatchAminoMsg { - type: "/regen.ecocredit.v1.EventSealBatch"; - value: EventSealBatchAmino; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchSDKType { - batch_denom: string; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditType { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface EventAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType"; - value: Uint8Array; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface EventAddCreditTypeAminoMsg { - type: "/regen.ecocredit.v1.EventAddCreditType"; - value: EventAddCreditTypeAmino; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeSDKType { - abbreviation: string; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridge { - /** target is the target chain. */ - target: string; - /** recipient is the recipient address. */ - recipient: string; - /** contract is the contract address. */ - contract: string; - /** amount is the amount of credits. */ - amount: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batchDenom: string; -} -export interface EventBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridge"; - value: Uint8Array; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeAmino { - /** target is the target chain. */ - target?: string; - /** recipient is the recipient address. */ - recipient?: string; - /** contract is the contract address. */ - contract?: string; - /** amount is the amount of credits. */ - amount?: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner?: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batch_denom?: string; -} -export interface EventBridgeAminoMsg { - type: "/regen.ecocredit.v1.EventBridge"; - value: EventBridgeAmino; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeSDKType { - target: string; - recipient: string; - contract: string; - amount: string; - owner: string; - batch_denom: string; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceive { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - originTx?: OriginTx; -} -export interface EventBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; - value: Uint8Array; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveAmino { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - origin_tx?: OriginTxAmino; -} -export interface EventBridgeReceiveAminoMsg { - type: "/regen.ecocredit.v1.EventBridgeReceive"; - value: EventBridgeReceiveAmino; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveSDKType { - project_id: string; - batch_denom: string; - amount: string; - origin_tx?: OriginTxSDKType; -} -function createBaseEventCreateClass(): EventCreateClass { - return { - classId: "" - }; -} -export const EventCreateClass = { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - encode(message: EventCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateClass { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: EventCreateClass): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): EventCreateClass { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: EventCreateClassAmino): EventCreateClass { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: EventCreateClass): EventCreateClassAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass { - return EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass { - return EventCreateClass.decode(message.value); - }, - toProto(message: EventCreateClass): Uint8Array { - return EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - value: EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateProject(): EventCreateProject { - return { - projectId: "" - }; -} -export const EventCreateProject = { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - encode(message: EventCreateProject, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateProject { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: EventCreateProject): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): EventCreateProject { - const message = createBaseEventCreateProject(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: EventCreateProjectAmino): EventCreateProject { - const message = createBaseEventCreateProject(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: EventCreateProject): EventCreateProjectAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: EventCreateProjectAminoMsg): EventCreateProject { - return EventCreateProject.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateProjectProtoMsg): EventCreateProject { - return EventCreateProject.decode(message.value); - }, - toProto(message: EventCreateProject): Uint8Array { - return EventCreateProject.encode(message).finish(); - }, - toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - value: EventCreateProject.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch(): EventCreateBatch { - return { - batchDenom: "", - originTx: undefined - }; -} -export const EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - encode(message: EventCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateBatch { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: EventCreateBatch): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): EventCreateBatch { - const message = createBaseEventCreateBatch(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: EventCreateBatchAmino): EventCreateBatch { - const message = createBaseEventCreateBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: EventCreateBatch): EventCreateBatchAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch { - return EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch { - return EventCreateBatch.decode(message.value); - }, - toProto(message: EventCreateBatch): Uint8Array { - return EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - value: EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventMint(): EventMint { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -export const EventMint = { - typeUrl: "/regen.ecocredit.v1.EventMint", - encode(message: EventMint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventMint { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMint(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventMint { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "" - }; - }, - toJSON(message: EventMint): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - return obj; - }, - fromPartial(object: Partial): EventMint { - const message = createBaseEventMint(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object: EventMintAmino): EventMint { - const message = createBaseEventMint(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message: EventMint): EventMintAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object: EventMintAminoMsg): EventMint { - return EventMint.fromAmino(object.value); - }, - fromProtoMsg(message: EventMintProtoMsg): EventMint { - return EventMint.decode(message.value); - }, - toProto(message: EventMint): Uint8Array { - return EventMint.encode(message).finish(); - }, - toProtoMsg(message: EventMint): EventMintProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventMint", - value: EventMint.encode(message).finish() - }; - } -}; -function createBaseEventMintBatchCredits(): EventMintBatchCredits { - return { - batchDenom: "", - originTx: undefined - }; -} -export const EventMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - encode(message: EventMintBatchCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventMintBatchCredits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: EventMintBatchCredits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): EventMintBatchCredits { - const message = createBaseEventMintBatchCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: EventMintBatchCreditsAmino): EventMintBatchCredits { - const message = createBaseEventMintBatchCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: EventMintBatchCredits): EventMintBatchCreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: EventMintBatchCreditsAminoMsg): EventMintBatchCredits { - return EventMintBatchCredits.fromAmino(object.value); - }, - fromProtoMsg(message: EventMintBatchCreditsProtoMsg): EventMintBatchCredits { - return EventMintBatchCredits.decode(message.value); - }, - toProto(message: EventMintBatchCredits): Uint8Array { - return EventMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - value: EventMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseEventTransfer(): EventTransfer { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -export const EventTransfer = { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - encode(message: EventTransfer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventTransfer { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "" - }; - }, - toJSON(message: EventTransfer): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.recipient !== undefined && (obj.recipient = message.recipient); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - return obj; - }, - fromPartial(object: Partial): EventTransfer { - const message = createBaseEventTransfer(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object: EventTransferAmino): EventTransfer { - const message = createBaseEventTransfer(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message: EventTransfer): EventTransferAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object: EventTransferAminoMsg): EventTransfer { - return EventTransfer.fromAmino(object.value); - }, - fromProtoMsg(message: EventTransferProtoMsg): EventTransfer { - return EventTransfer.decode(message.value); - }, - toProto(message: EventTransfer): Uint8Array { - return EventTransfer.encode(message).finish(); - }, - toProtoMsg(message: EventTransfer): EventTransferProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - value: EventTransfer.encode(message).finish() - }; - } -}; -function createBaseEventRetire(): EventRetire { - return { - owner: "", - batchDenom: "", - amount: "", - jurisdiction: "", - reason: "" - }; -} -export const EventRetire = { - typeUrl: "/regen.ecocredit.v1.EventRetire", - encode(message: EventRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(42).string(message.reason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventRetire { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - reason: isSet(object.reason) ? String(object.reason) : "" - }; - }, - toJSON(message: EventRetire): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.reason !== undefined && (obj.reason = message.reason); - return obj; - }, - fromPartial(object: Partial): EventRetire { - const message = createBaseEventRetire(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object: EventRetireAmino): EventRetire { - const message = createBaseEventRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message: EventRetire): EventRetireAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object: EventRetireAminoMsg): EventRetire { - return EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message: EventRetireProtoMsg): EventRetire { - return EventRetire.decode(message.value); - }, - toProto(message: EventRetire): Uint8Array { - return EventRetire.encode(message).finish(); - }, - toProtoMsg(message: EventRetire): EventRetireProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventRetire", - value: EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel(): EventCancel { - return { - owner: "", - batchDenom: "", - amount: "", - reason: "" - }; -} -export const EventCancel = { - typeUrl: "/regen.ecocredit.v1.EventCancel", - encode(message: EventCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCancel { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - reason: isSet(object.reason) ? String(object.reason) : "" - }; - }, - toJSON(message: EventCancel): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - message.reason !== undefined && (obj.reason = message.reason); - return obj; - }, - fromPartial(object: Partial): EventCancel { - const message = createBaseEventCancel(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object: EventCancelAmino): EventCancel { - const message = createBaseEventCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message: EventCancel): EventCancelAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object: EventCancelAminoMsg): EventCancel { - return EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message: EventCancelProtoMsg): EventCancel { - return EventCancel.decode(message.value); - }, - toProto(message: EventCancel): Uint8Array { - return EventCancel.encode(message).finish(); - }, - toProtoMsg(message: EventCancel): EventCancelProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventCancel", - value: EventCancel.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassAdmin(): EventUpdateClassAdmin { - return { - classId: "" - }; -} -export const EventUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - encode(message: EventUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateClassAdmin { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: EventUpdateClassAdmin): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): EventUpdateClassAdmin { - const message = createBaseEventUpdateClassAdmin(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: EventUpdateClassAdminAmino): EventUpdateClassAdmin { - const message = createBaseEventUpdateClassAdmin(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: EventUpdateClassAdmin): EventUpdateClassAdminAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: EventUpdateClassAdminAminoMsg): EventUpdateClassAdmin { - return EventUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateClassAdminProtoMsg): EventUpdateClassAdmin { - return EventUpdateClassAdmin.decode(message.value); - }, - toProto(message: EventUpdateClassAdmin): Uint8Array { - return EventUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - value: EventUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassIssuers(): EventUpdateClassIssuers { - return { - classId: "" - }; -} -export const EventUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - encode(message: EventUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateClassIssuers { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: EventUpdateClassIssuers): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): EventUpdateClassIssuers { - const message = createBaseEventUpdateClassIssuers(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: EventUpdateClassIssuersAmino): EventUpdateClassIssuers { - const message = createBaseEventUpdateClassIssuers(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: EventUpdateClassIssuers): EventUpdateClassIssuersAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: EventUpdateClassIssuersAminoMsg): EventUpdateClassIssuers { - return EventUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateClassIssuersProtoMsg): EventUpdateClassIssuers { - return EventUpdateClassIssuers.decode(message.value); - }, - toProto(message: EventUpdateClassIssuers): Uint8Array { - return EventUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - value: EventUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassMetadata(): EventUpdateClassMetadata { - return { - classId: "" - }; -} -export const EventUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - encode(message: EventUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateClassMetadata { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: EventUpdateClassMetadata): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): EventUpdateClassMetadata { - const message = createBaseEventUpdateClassMetadata(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: EventUpdateClassMetadataAmino): EventUpdateClassMetadata { - const message = createBaseEventUpdateClassMetadata(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: EventUpdateClassMetadata): EventUpdateClassMetadataAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: EventUpdateClassMetadataAminoMsg): EventUpdateClassMetadata { - return EventUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateClassMetadataProtoMsg): EventUpdateClassMetadata { - return EventUpdateClassMetadata.decode(message.value); - }, - toProto(message: EventUpdateClassMetadata): Uint8Array { - return EventUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - value: EventUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectAdmin(): EventUpdateProjectAdmin { - return { - projectId: "" - }; -} -export const EventUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - encode(message: EventUpdateProjectAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateProjectAdmin { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: EventUpdateProjectAdmin): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): EventUpdateProjectAdmin { - const message = createBaseEventUpdateProjectAdmin(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: EventUpdateProjectAdminAmino): EventUpdateProjectAdmin { - const message = createBaseEventUpdateProjectAdmin(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: EventUpdateProjectAdmin): EventUpdateProjectAdminAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: EventUpdateProjectAdminAminoMsg): EventUpdateProjectAdmin { - return EventUpdateProjectAdmin.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateProjectAdminProtoMsg): EventUpdateProjectAdmin { - return EventUpdateProjectAdmin.decode(message.value); - }, - toProto(message: EventUpdateProjectAdmin): Uint8Array { - return EventUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - value: EventUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectMetadata(): EventUpdateProjectMetadata { - return { - projectId: "" - }; -} -export const EventUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - encode(message: EventUpdateProjectMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateProjectMetadata { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: EventUpdateProjectMetadata): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): EventUpdateProjectMetadata { - const message = createBaseEventUpdateProjectMetadata(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: EventUpdateProjectMetadataAmino): EventUpdateProjectMetadata { - const message = createBaseEventUpdateProjectMetadata(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: EventUpdateProjectMetadataAminoMsg): EventUpdateProjectMetadata { - return EventUpdateProjectMetadata.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateProjectMetadataProtoMsg): EventUpdateProjectMetadata { - return EventUpdateProjectMetadata.decode(message.value); - }, - toProto(message: EventUpdateProjectMetadata): Uint8Array { - return EventUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - value: EventUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateBatchMetadata(): EventUpdateBatchMetadata { - return { - batchDenom: "" - }; -} -export const EventUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - encode(message: EventUpdateBatchMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventUpdateBatchMetadata { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: EventUpdateBatchMetadata): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): EventUpdateBatchMetadata { - const message = createBaseEventUpdateBatchMetadata(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: EventUpdateBatchMetadataAmino): EventUpdateBatchMetadata { - const message = createBaseEventUpdateBatchMetadata(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: EventUpdateBatchMetadataAminoMsg): EventUpdateBatchMetadata { - return EventUpdateBatchMetadata.fromAmino(object.value); - }, - fromProtoMsg(message: EventUpdateBatchMetadataProtoMsg): EventUpdateBatchMetadata { - return EventUpdateBatchMetadata.decode(message.value); - }, - toProto(message: EventUpdateBatchMetadata): Uint8Array { - return EventUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - value: EventUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseEventSealBatch(): EventSealBatch { - return { - batchDenom: "" - }; -} -export const EventSealBatch = { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - encode(message: EventSealBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventSealBatch { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: EventSealBatch): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): EventSealBatch { - const message = createBaseEventSealBatch(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: EventSealBatchAmino): EventSealBatch { - const message = createBaseEventSealBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: EventSealBatch): EventSealBatchAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: EventSealBatchAminoMsg): EventSealBatch { - return EventSealBatch.fromAmino(object.value); - }, - fromProtoMsg(message: EventSealBatchProtoMsg): EventSealBatch { - return EventSealBatch.decode(message.value); - }, - toProto(message: EventSealBatch): Uint8Array { - return EventSealBatch.encode(message).finish(); - }, - toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - value: EventSealBatch.encode(message).finish() - }; - } -}; -function createBaseEventAddCreditType(): EventAddCreditType { - return { - abbreviation: "" - }; -} -export const EventAddCreditType = { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - encode(message: EventAddCreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventAddCreditType { - return { - abbreviation: isSet(object.abbreviation) ? String(object.abbreviation) : "" - }; - }, - toJSON(message: EventAddCreditType): unknown { - const obj: any = {}; - message.abbreviation !== undefined && (obj.abbreviation = message.abbreviation); - return obj; - }, - fromPartial(object: Partial): EventAddCreditType { - const message = createBaseEventAddCreditType(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object: EventAddCreditTypeAmino): EventAddCreditType { - const message = createBaseEventAddCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message: EventAddCreditType): EventAddCreditTypeAmino { - const obj: any = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object: EventAddCreditTypeAminoMsg): EventAddCreditType { - return EventAddCreditType.fromAmino(object.value); - }, - fromProtoMsg(message: EventAddCreditTypeProtoMsg): EventAddCreditType { - return EventAddCreditType.decode(message.value); - }, - toProto(message: EventAddCreditType): Uint8Array { - return EventAddCreditType.encode(message).finish(); - }, - toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - value: EventAddCreditType.encode(message).finish() - }; - } -}; -function createBaseEventBridge(): EventBridge { - return { - target: "", - recipient: "", - contract: "", - amount: "", - owner: "", - batchDenom: "" - }; -} -export const EventBridge = { - typeUrl: "/regen.ecocredit.v1.EventBridge", - encode(message: EventBridge, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.target !== "") { - writer.uint32(10).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.owner !== "") { - writer.uint32(42).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(50).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventBridge { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.target = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.owner = reader.string(); - break; - case 6: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventBridge { - return { - target: isSet(object.target) ? String(object.target) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - contract: isSet(object.contract) ? String(object.contract) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - owner: isSet(object.owner) ? String(object.owner) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: EventBridge): unknown { - const obj: any = {}; - message.target !== undefined && (obj.target = message.target); - message.recipient !== undefined && (obj.recipient = message.recipient); - message.contract !== undefined && (obj.contract = message.contract); - message.amount !== undefined && (obj.amount = message.amount); - message.owner !== undefined && (obj.owner = message.owner); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): EventBridge { - const message = createBaseEventBridge(); - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.contract = object.contract ?? ""; - message.amount = object.amount ?? ""; - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: EventBridgeAmino): EventBridge { - const message = createBaseEventBridge(); - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: EventBridge): EventBridgeAmino { - const obj: any = {}; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: EventBridgeAminoMsg): EventBridge { - return EventBridge.fromAmino(object.value); - }, - fromProtoMsg(message: EventBridgeProtoMsg): EventBridge { - return EventBridge.decode(message.value); - }, - toProto(message: EventBridge): Uint8Array { - return EventBridge.encode(message).finish(); - }, - toProtoMsg(message: EventBridge): EventBridgeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventBridge", - value: EventBridge.encode(message).finish() - }; - } -}; -function createBaseEventBridgeReceive(): EventBridgeReceive { - return { - projectId: "", - batchDenom: "", - amount: "", - originTx: undefined - }; -} -export const EventBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - encode(message: EventBridgeReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventBridgeReceive { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: EventBridgeReceive): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): EventBridgeReceive { - const message = createBaseEventBridgeReceive(); - message.projectId = object.projectId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: EventBridgeReceiveAmino): EventBridgeReceive { - const message = createBaseEventBridgeReceive(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: EventBridgeReceive): EventBridgeReceiveAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: EventBridgeReceiveAminoMsg): EventBridgeReceive { - return EventBridgeReceive.fromAmino(object.value); - }, - fromProtoMsg(message: EventBridgeReceiveProtoMsg): EventBridgeReceive { - return EventBridgeReceive.decode(message.value); - }, - toProto(message: EventBridgeReceive): Uint8Array { - return EventBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message: EventBridgeReceive): EventBridgeReceiveProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - value: EventBridgeReceive.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/query.lcd.ts b/packages/api/src/codegen/regen/ecocredit/v1/query.lcd.ts deleted file mode 100644 index 64fa9b0d..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/query.lcd.ts +++ /dev/null @@ -1,293 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params: QueryClassesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassesByAdmin queries for all credit classes with a specific admin - address. */ - async classesByAdmin(params: QueryClassesByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Class queries for information on a credit class. */ - async class(params: QueryClassRequest): Promise { - const endpoint = `regen/ecocredit/v1/class/${params.classId}`; - return await this.req.get(endpoint); - } - /* ClassIssuers queries for the addresses of the issuers for a credit class. */ - async classIssuers(params: QueryClassIssuersRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* Projects queries for all projects with pagination. */ - async projects(params: QueryProjectsRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects`; - return await this.req.get(endpoint, options); - } - /* ProjectsByClass queries for all projects within a class with pagination. */ - async projectsByClass(params: QueryProjectsByClassRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByReferenceId queries for all projects by reference-id with - pagination. */ - async projectsByReferenceId(params: QueryProjectsByReferenceIdRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByAdmin queries for all projects by admin with - pagination. */ - async projectsByAdmin(params: QueryProjectsByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Project queries for information on a project. */ - async project(params: QueryProjectRequest): Promise { - const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches with pagination. */ - async batches(params: QueryBatchesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches`; - return await this.req.get(endpoint, options); - } - /* BatchesByIssuer queries all batches issued from a given issuer address. */ - async batchesByIssuer(params: QueryBatchesByIssuerRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; - return await this.req.get(endpoint, options); - } - /* BatchesByClass queries all batches issued from a given class. */ - async batchesByClass(params: QueryBatchesByClassRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* BatchesByProject queries for all batches from a given project with - pagination. */ - async batchesByProject(params: QueryBatchesByProjectRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; - return await this.req.get(endpoint, options); - } - /* Batch queries for information on a credit batch. */ - async batch(params: QueryBatchRequest): Promise { - const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account address. */ - async balance(params: QueryBalanceRequest): Promise { - const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; - return await this.req.get(endpoint); - } - /* Balances queries all credit balances the given account holds. */ - async balances(params: QueryBalancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* BalancesByBatch queries all credit balances from a given batch. - - Since Revision 2 */ - async balancesByBatch(params: QueryBalancesByBatchRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries all credit balances. - - Since Revision 2 */ - async allBalances(params: QueryAllBalancesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/all-balances`; - return await this.req.get(endpoint, options); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params: QuerySupplyRequest): Promise { - const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params: QueryCreditTypesRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. - - Deprecated (Since Revision 2): This rpc will be removed in the next - version. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1/params`; - return await this.req.get(endpoint); - } - /* CreditType queries credit type information by abbreviation. */ - async creditType(params: QueryCreditTypeRequest): Promise { - const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; - return await this.req.get(endpoint); - } - /* ClassCreatorAllowlist queries the credit class creator allowlist - enabled setting. - - Since Revision 2 */ - async classCreatorAllowlist(_params: QueryClassCreatorAllowlistRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; - return await this.req.get(endpoint); - } - /* AllowedClassCreators queries allowed credit class creators list. - - Since Revision 2 */ - async allowedClassCreators(params: QueryAllowedClassCreatorsRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/allowed-class-creators`; - return await this.req.get(endpoint, options); - } - /* ClassFee returns the credit class creation fee. If not set, a credit class - creation fee is not required. - - Since Revision 2 */ - async classFee(_params: QueryClassFeeRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1/class-fee`; - return await this.req.get(endpoint); - } - /* AllowedBridgeChains queries the list of chains allowed to be used in bridge - operations. - - Since Revision 2 */ - async allowedBridgeChains(_params: QueryAllowedBridgeChainsRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/query.rpc.Query.ts b/packages/api/src/codegen/regen/ecocredit/v1/query.rpc.Query.ts deleted file mode 100644 index 366c0cc7..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/query.rpc.Query.ts +++ /dev/null @@ -1,365 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** - * ClassesByAdmin queries for all credit classes with a specific admin - * address. - */ - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - /** Class queries for information on a credit class. */ - class(request: QueryClassRequest): Promise; - /** ClassIssuers queries for the addresses of the issuers for a credit class. */ - classIssuers(request: QueryClassIssuersRequest): Promise; - /** Projects queries for all projects with pagination. */ - projects(request?: QueryProjectsRequest): Promise; - /** ProjectsByClass queries for all projects within a class with pagination. */ - projectsByClass(request: QueryProjectsByClassRequest): Promise; - /** - * ProjectsByReferenceId queries for all projects by reference-id with - * pagination. - */ - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - /** - * ProjectsByAdmin queries for all projects by admin with - * pagination. - */ - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - /** Project queries for information on a project. */ - project(request: QueryProjectRequest): Promise; - /** Batches queries for all batches with pagination. */ - batches(request?: QueryBatchesRequest): Promise; - /** BatchesByIssuer queries all batches issued from a given issuer address. */ - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - /** BatchesByClass queries all batches issued from a given class. */ - batchesByClass(request: QueryBatchesByClassRequest): Promise; - /** - * BatchesByProject queries for all batches from a given project with - * pagination. - */ - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - /** Batch queries for information on a credit batch. */ - batch(request: QueryBatchRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account address. - */ - balance(request: QueryBalanceRequest): Promise; - /** Balances queries all credit balances the given account holds. */ - balances(request: QueryBalancesRequest): Promise; - /** - * BalancesByBatch queries all credit balances from a given batch. - * - * Since Revision 2 - */ - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - /** - * AllBalances queries all credit balances. - * - * Since Revision 2 - */ - allBalances(request?: QueryAllBalancesRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** - * Params queries the ecocredit module parameters. - * - * Deprecated (Since Revision 2): This rpc will be removed in the next - * version. - */ - params(request?: QueryParamsRequest): Promise; - /** CreditType queries credit type information by abbreviation. */ - creditType(request: QueryCreditTypeRequest): Promise; - /** - * ClassCreatorAllowlist queries the credit class creator allowlist - * enabled setting. - * - * Since Revision 2 - */ - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - /** - * AllowedClassCreators queries allowed credit class creators list. - * - * Since Revision 2 - */ - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - /** - * ClassFee returns the credit class creation fee. If not set, a credit class - * creation fee is not required. - * - * Since Revision 2 - */ - classFee(request?: QueryClassFeeRequest): Promise; - /** - * AllowedBridgeChains queries the list of chains allowed to be used in bridge - * operations. - * - * Since Revision 2 - */ - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - classes(request: QueryClassesRequest = { - pagination: undefined - }): Promise { - const data = QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); - return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); - } - classesByAdmin(request: QueryClassesByAdminRequest): Promise { - const data = QueryClassesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); - return promise.then(data => QueryClassesByAdminResponse.decode(new BinaryReader(data))); - } - class(request: QueryClassRequest): Promise { - const data = QueryClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); - return promise.then(data => QueryClassResponse.decode(new BinaryReader(data))); - } - classIssuers(request: QueryClassIssuersRequest): Promise { - const data = QueryClassIssuersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); - return promise.then(data => QueryClassIssuersResponse.decode(new BinaryReader(data))); - } - projects(request: QueryProjectsRequest = { - pagination: undefined - }): Promise { - const data = QueryProjectsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); - return promise.then(data => QueryProjectsResponse.decode(new BinaryReader(data))); - } - projectsByClass(request: QueryProjectsByClassRequest): Promise { - const data = QueryProjectsByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); - return promise.then(data => QueryProjectsByClassResponse.decode(new BinaryReader(data))); - } - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise { - const data = QueryProjectsByReferenceIdRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); - return promise.then(data => QueryProjectsByReferenceIdResponse.decode(new BinaryReader(data))); - } - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise { - const data = QueryProjectsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); - return promise.then(data => QueryProjectsByAdminResponse.decode(new BinaryReader(data))); - } - project(request: QueryProjectRequest): Promise { - const data = QueryProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); - return promise.then(data => QueryProjectResponse.decode(new BinaryReader(data))); - } - batches(request: QueryBatchesRequest = { - pagination: undefined - }): Promise { - const data = QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); - return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); - } - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise { - const data = QueryBatchesByIssuerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); - return promise.then(data => QueryBatchesByIssuerResponse.decode(new BinaryReader(data))); - } - batchesByClass(request: QueryBatchesByClassRequest): Promise { - const data = QueryBatchesByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); - return promise.then(data => QueryBatchesByClassResponse.decode(new BinaryReader(data))); - } - batchesByProject(request: QueryBatchesByProjectRequest): Promise { - const data = QueryBatchesByProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); - return promise.then(data => QueryBatchesByProjectResponse.decode(new BinaryReader(data))); - } - batch(request: QueryBatchRequest): Promise { - const data = QueryBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); - return promise.then(data => QueryBatchResponse.decode(new BinaryReader(data))); - } - balance(request: QueryBalanceRequest): Promise { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - balances(request: QueryBalancesRequest): Promise { - const data = QueryBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); - return promise.then(data => QueryBalancesResponse.decode(new BinaryReader(data))); - } - balancesByBatch(request: QueryBalancesByBatchRequest): Promise { - const data = QueryBalancesByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); - return promise.then(data => QueryBalancesByBatchResponse.decode(new BinaryReader(data))); - } - allBalances(request: QueryAllBalancesRequest = { - pagination: undefined - }): Promise { - const data = QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); - return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); - } - supply(request: QuerySupplyRequest): Promise { - const data = QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); - return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); - } - creditTypes(request: QueryCreditTypesRequest = {}): Promise { - const data = QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); - return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - creditType(request: QueryCreditTypeRequest): Promise { - const data = QueryCreditTypeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); - return promise.then(data => QueryCreditTypeResponse.decode(new BinaryReader(data))); - } - classCreatorAllowlist(request: QueryClassCreatorAllowlistRequest = {}): Promise { - const data = QueryClassCreatorAllowlistRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); - return promise.then(data => QueryClassCreatorAllowlistResponse.decode(new BinaryReader(data))); - } - allowedClassCreators(request: QueryAllowedClassCreatorsRequest = { - pagination: undefined - }): Promise { - const data = QueryAllowedClassCreatorsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); - return promise.then(data => QueryAllowedClassCreatorsResponse.decode(new BinaryReader(data))); - } - classFee(request: QueryClassFeeRequest = {}): Promise { - const data = QueryClassFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); - return promise.then(data => QueryClassFeeResponse.decode(new BinaryReader(data))); - } - allowedBridgeChains(request: QueryAllowedBridgeChainsRequest = {}): Promise { - const data = QueryAllowedBridgeChainsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); - return promise.then(data => QueryAllowedBridgeChainsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request?: QueryClassesRequest): Promise { - return queryService.classes(request); - }, - classesByAdmin(request: QueryClassesByAdminRequest): Promise { - return queryService.classesByAdmin(request); - }, - class(request: QueryClassRequest): Promise { - return queryService.class(request); - }, - classIssuers(request: QueryClassIssuersRequest): Promise { - return queryService.classIssuers(request); - }, - projects(request?: QueryProjectsRequest): Promise { - return queryService.projects(request); - }, - projectsByClass(request: QueryProjectsByClassRequest): Promise { - return queryService.projectsByClass(request); - }, - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise { - return queryService.projectsByReferenceId(request); - }, - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise { - return queryService.projectsByAdmin(request); - }, - project(request: QueryProjectRequest): Promise { - return queryService.project(request); - }, - batches(request?: QueryBatchesRequest): Promise { - return queryService.batches(request); - }, - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise { - return queryService.batchesByIssuer(request); - }, - batchesByClass(request: QueryBatchesByClassRequest): Promise { - return queryService.batchesByClass(request); - }, - batchesByProject(request: QueryBatchesByProjectRequest): Promise { - return queryService.batchesByProject(request); - }, - batch(request: QueryBatchRequest): Promise { - return queryService.batch(request); - }, - balance(request: QueryBalanceRequest): Promise { - return queryService.balance(request); - }, - balances(request: QueryBalancesRequest): Promise { - return queryService.balances(request); - }, - balancesByBatch(request: QueryBalancesByBatchRequest): Promise { - return queryService.balancesByBatch(request); - }, - allBalances(request?: QueryAllBalancesRequest): Promise { - return queryService.allBalances(request); - }, - supply(request: QuerySupplyRequest): Promise { - return queryService.supply(request); - }, - creditTypes(request?: QueryCreditTypesRequest): Promise { - return queryService.creditTypes(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - }, - creditType(request: QueryCreditTypeRequest): Promise { - return queryService.creditType(request); - }, - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise { - return queryService.classCreatorAllowlist(request); - }, - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise { - return queryService.allowedClassCreators(request); - }, - classFee(request?: QueryClassFeeRequest): Promise { - return queryService.classFee(request); - }, - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise { - return queryService.allowedBridgeChains(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/query.ts b/packages/api/src/codegen/regen/ecocredit/v1/query.ts deleted file mode 100644 index e99c5058..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/query.ts +++ /dev/null @@ -1,6500 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { Params, ParamsAmino, ParamsSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequest { - /** admin is the address of the admin of the class. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: Uint8Array; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestAmino { - /** admin is the address of the admin of the class. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: QueryClassesByAdminRequestAmino; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: Uint8Array; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: QueryClassesByAdminResponseAmino; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; -} -export interface QueryClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest"; - value: Uint8Array; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; -} -export interface QueryClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassRequest"; - value: QueryClassRequestAmino; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponse { - /** class is the fetched credit class. */ - class?: ClassInfo; -} -export interface QueryClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; - value: Uint8Array; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseAmino { - /** class is the fetched credit class. */ - class?: ClassInfoAmino; -} -export interface QueryClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassResponse"; - value: QueryClassResponseAmino; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseSDKType { - class?: ClassInfoSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassIssuersRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassIssuersRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: QueryClassIssuersRequestAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponse { - /** issuers is a list of issuers for the credit class */ - issuers: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseAmino { - /** issuers is a list of issuers for the credit class */ - issuers?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: QueryClassIssuersResponseAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseSDKType { - issuers: string[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: Uint8Array; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: QueryProjectsRequestAmino; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: Uint8Array; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: QueryProjectsResponseAmino; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: Uint8Array; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: QueryProjectsByClassRequestAmino; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: Uint8Array; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: QueryProjectsByClassResponseAmino; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequest { - /** reference_id is the project reference id. */ - referenceId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByReferenceIdRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestAmino { - /** reference_id is the project reference id. */ - reference_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByReferenceIdRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: QueryProjectsByReferenceIdRequestAmino; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestSDKType { - reference_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByReferenceIdResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByReferenceIdResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: QueryProjectsByReferenceIdResponseAmino; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequest { - /** admin is the account address of project admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: Uint8Array; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestAmino { - /** admin is the account address of project admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: QueryProjectsByAdminRequestAmino; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: Uint8Array; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: QueryProjectsByAdminResponseAmino; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; -} -export interface QueryProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest"; - value: Uint8Array; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; -} -export interface QueryProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectRequest"; - value: QueryProjectRequestAmino; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestSDKType { - project_id: string; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponse { - /** project is the fetched project. */ - project?: ProjectInfo; -} -export interface QueryProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; - value: Uint8Array; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseAmino { - /** project is the fetched project. */ - project?: ProjectInfoAmino; -} -export interface QueryProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectResponse"; - value: QueryProjectResponseAmino; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseSDKType { - project?: ProjectInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequest { - /** issuer is the address that issued the batch */ - issuer: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByIssuerRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: Uint8Array; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestAmino { - /** issuer is the address that issued the batch */ - issuer?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByIssuerRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: QueryBatchesByIssuerRequestAmino; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestSDKType { - issuer: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByIssuerResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: Uint8Array; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByIssuerResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: QueryBatchesByIssuerResponseAmino; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: Uint8Array; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: QueryBatchesByClassRequestAmino; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: Uint8Array; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: QueryBatchesByProjectRequestAmino; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestSDKType { - project_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: Uint8Array; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: QueryBatchesByProjectResponseAmino; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: Uint8Array; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: QueryBatchesByClassResponseAmino; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest"; - value: Uint8Array; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchRequest"; - value: QueryBatchRequestAmino; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestSDKType { - batch_denom: string; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponse { - /** batch is the fetched credit batch. */ - batch?: BatchInfo; -} -export interface QueryBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; - value: Uint8Array; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseAmino { - /** batch is the fetched credit batch. */ - batch?: BatchInfoAmino; -} -export interface QueryBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchResponse"; - value: QueryBatchResponseAmino; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseSDKType { - batch?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - address: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfo; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfoAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - balance?: BatchBalanceInfoSDKType; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: Uint8Array; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: QueryBalancesRequestAmino; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: Uint8Array; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: QueryBalancesResponseAmino; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequest { - /** batch_denom is the denom of the batch to query by. */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestAmino { - /** batch_denom is the denom of the batch to query by. */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesByBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: QueryBalancesByBatchRequestAmino; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesByBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: QueryBalancesByBatchResponseAmino; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradableAmount: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retiredAmount: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelledAmount: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradable_amount?: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retired_amount?: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelled_amount?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest {} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino {} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType {} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** credit_types are the fetched credit types. */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** credit_types are the fetched credit types. */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequest { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface QueryCreditTypeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: Uint8Array; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface QueryCreditTypeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: QueryCreditTypeRequestAmino; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestSDKType { - abbreviation: string; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponse { - /** credit_type is the fetched credit type. */ - creditType?: CreditType; -} -export interface QueryCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: Uint8Array; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseAmino { - /** credit_type is the fetched credit type. */ - credit_type?: CreditTypeAmino; -} -export interface QueryCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: QueryCreditTypeResponseAmino; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseSDKType { - credit_type?: CreditTypeSDKType; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfo { - /** id is the unique identifier of the credit class. */ - id: string; - /** admin is the admin of the credit class. */ - admin: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - creditTypeAbbrev: string; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoAmino { - /** id is the unique identifier of the credit class. */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - credit_type_abbrev?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoSDKType { - id: string; - admin: string; - metadata: string; - credit_type_abbrev: string; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfo { - /** id is the unique identifier of the project. */ - id: string; - /** admin is the admin of the project. */ - admin: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - classId: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - referenceId: string; -} -export interface ProjectInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectInfo"; - value: Uint8Array; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoAmino { - /** id is the unique identifier of the project. */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - class_id?: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - reference_id?: string; -} -export interface ProjectInfoAminoMsg { - type: "/regen.ecocredit.v1.ProjectInfo"; - value: ProjectInfoAmino; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoSDKType { - id: string; - admin: string; - class_id: string; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfo { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - projectId: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Timestamp; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open: boolean; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoAmino { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - project_id?: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open?: boolean; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoSDKType { - issuer: string; - project_id: string; - denom: string; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - issuance_date?: TimestampSDKType; - open: boolean; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfo { - /** address is the address of the account that owns the credits. */ - address: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: Uint8Array; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoAmino { - /** address is the address of the account that owns the credits. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: BatchBalanceInfoAmino; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoSDKType { - address: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequest {} -export interface QueryClassCreatorAllowlistRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestAmino {} -export interface QueryClassCreatorAllowlistRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: QueryClassCreatorAllowlistRequestAmino; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestSDKType {} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponse { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled: boolean; -} -export interface QueryClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseAmino { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled?: boolean; -} -export interface QueryClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: QueryClassCreatorAllowlistResponseAmino; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseSDKType { - enabled: boolean; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedClassCreatorsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedClassCreatorsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: QueryAllowedClassCreatorsRequestAmino; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponse { - /** class_creators is the list of allowed credit class creators. */ - classCreators: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedClassCreatorsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseAmino { - /** class_creators is the list of allowed credit class creators. */ - class_creators?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedClassCreatorsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: QueryAllowedClassCreatorsResponseAmino; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseSDKType { - class_creators: string[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequest {} -export interface QueryClassFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: Uint8Array; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestAmino {} -export interface QueryClassFeeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: QueryClassFeeRequestAmino; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestSDKType {} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponse { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface QueryClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: Uint8Array; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface QueryClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: QueryClassFeeResponseAmino; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseSDKType { - fee?: CoinSDKType; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequest {} -export interface QueryAllowedBridgeChainsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestAmino {} -export interface QueryAllowedBridgeChainsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: QueryAllowedBridgeChainsRequestAmino; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestSDKType {} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponse { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowedBridgeChains: string[]; -} -export interface QueryAllowedBridgeChainsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseAmino { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowed_bridge_chains?: string[]; -} -export interface QueryAllowedBridgeChainsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: QueryAllowedBridgeChainsResponseAmino; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseSDKType { - allowed_bridge_chains: string[]; -} -function createBaseQueryClassesRequest(): QueryClassesRequest { - return { - pagination: undefined - }; -} -export const QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest { - return QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest { - return QueryClassesRequest.decode(message.value); - }, - toProto(message: QueryClassesRequest): Uint8Array { - return QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - value: QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse(): QueryClassesResponse { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classes) { - ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesResponse { - return { - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => ClassInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesResponse): unknown { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toJSON(e) : undefined); - } else { - obj.classes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse { - return QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse { - return QueryClassesResponse.decode(message.value); - }, - toProto(message: QueryClassesResponse): Uint8Array { - return QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - value: QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminRequest(): QueryClassesByAdminRequest { - return { - admin: "", - pagination: undefined - }; -} -export const QueryClassesByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - encode(message: QueryClassesByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesByAdminRequest { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesByAdminRequest): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesByAdminRequest { - const message = createBaseQueryClassesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesByAdminRequestAmino): QueryClassesByAdminRequest { - const message = createBaseQueryClassesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesByAdminRequestAminoMsg): QueryClassesByAdminRequest { - return QueryClassesByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesByAdminRequestProtoMsg): QueryClassesByAdminRequest { - return QueryClassesByAdminRequest.decode(message.value); - }, - toProto(message: QueryClassesByAdminRequest): Uint8Array { - return QueryClassesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - value: QueryClassesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminResponse(): QueryClassesByAdminResponse { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - encode(message: QueryClassesByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classes) { - ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesByAdminResponse { - return { - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => ClassInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesByAdminResponse): unknown { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toJSON(e) : undefined); - } else { - obj.classes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesByAdminResponse { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesByAdminResponseAmino): QueryClassesByAdminResponse { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseAmino { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesByAdminResponseAminoMsg): QueryClassesByAdminResponse { - return QueryClassesByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesByAdminResponseProtoMsg): QueryClassesByAdminResponse { - return QueryClassesByAdminResponse.decode(message.value); - }, - toProto(message: QueryClassesByAdminResponse): Uint8Array { - return QueryClassesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - value: QueryClassesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassRequest(): QueryClassRequest { - return { - classId: "" - }; -} -export const QueryClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - encode(message: QueryClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: QueryClassRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): QueryClassRequest { - const message = createBaseQueryClassRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: QueryClassRequestAmino): QueryClassRequest { - const message = createBaseQueryClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: QueryClassRequest): QueryClassRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest { - return QueryClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest { - return QueryClassRequest.decode(message.value); - }, - toProto(message: QueryClassRequest): Uint8Array { - return QueryClassRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - value: QueryClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassResponse(): QueryClassResponse { - return { - class: undefined - }; -} -export const QueryClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - encode(message: QueryClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.class !== undefined) { - ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.class = ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassResponse { - return { - class: isSet(object.class) ? ClassInfo.fromJSON(object.class) : undefined - }; - }, - toJSON(message: QueryClassResponse): unknown { - const obj: any = {}; - message.class !== undefined && (obj.class = message.class ? ClassInfo.toJSON(message.class) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassResponse { - const message = createBaseQueryClassResponse(); - message.class = object.class !== undefined && object.class !== null ? ClassInfo.fromPartial(object.class) : undefined; - return message; - }, - fromAmino(object: QueryClassResponseAmino): QueryClassResponse { - const message = createBaseQueryClassResponse(); - if (object.class !== undefined && object.class !== null) { - message.class = ClassInfo.fromAmino(object.class); - } - return message; - }, - toAmino(message: QueryClassResponse): QueryClassResponseAmino { - const obj: any = {}; - obj.class = message.class ? ClassInfo.toAmino(message.class) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse { - return QueryClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse { - return QueryClassResponse.decode(message.value); - }, - toProto(message: QueryClassResponse): Uint8Array { - return QueryClassResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - value: QueryClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersRequest(): QueryClassIssuersRequest { - return { - classId: "", - pagination: undefined - }; -} -export const QueryClassIssuersRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - encode(message: QueryClassIssuersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassIssuersRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassIssuersRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassIssuersRequest { - const message = createBaseQueryClassIssuersRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassIssuersRequestAmino): QueryClassIssuersRequest { - const message = createBaseQueryClassIssuersRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassIssuersRequest): QueryClassIssuersRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassIssuersRequestAminoMsg): QueryClassIssuersRequest { - return QueryClassIssuersRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassIssuersRequestProtoMsg): QueryClassIssuersRequest { - return QueryClassIssuersRequest.decode(message.value); - }, - toProto(message: QueryClassIssuersRequest): Uint8Array { - return QueryClassIssuersRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - value: QueryClassIssuersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersResponse(): QueryClassIssuersResponse { - return { - issuers: [], - pagination: undefined - }; -} -export const QueryClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - encode(message: QueryClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.issuers) { - writer.uint32(10).string(v!); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuers.push(reader.string()); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassIssuersResponse { - return { - issuers: Array.isArray(object?.issuers) ? object.issuers.map((e: any) => String(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassIssuersResponse): unknown { - const obj: any = {}; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassIssuersResponse { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassIssuersResponseAmino): QueryClassIssuersResponse { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassIssuersResponse): QueryClassIssuersResponseAmino { - const obj: any = {}; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = message.issuers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassIssuersResponseAminoMsg): QueryClassIssuersResponse { - return QueryClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassIssuersResponseProtoMsg): QueryClassIssuersResponse { - return QueryClassIssuersResponse.decode(message.value); - }, - toProto(message: QueryClassIssuersResponse): Uint8Array { - return QueryClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - value: QueryClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsRequest(): QueryProjectsRequest { - return { - pagination: undefined - }; -} -export const QueryProjectsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - encode(message: QueryProjectsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsRequest { - const message = createBaseQueryProjectsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsRequestAmino): QueryProjectsRequest { - const message = createBaseQueryProjectsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsRequest): QueryProjectsRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsRequestAminoMsg): QueryProjectsRequest { - return QueryProjectsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsRequestProtoMsg): QueryProjectsRequest { - return QueryProjectsRequest.decode(message.value); - }, - toProto(message: QueryProjectsRequest): Uint8Array { - return QueryProjectsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - value: QueryProjectsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsResponse(): QueryProjectsResponse { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - encode(message: QueryProjectsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.projects) { - ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsResponse { - return { - projects: Array.isArray(object?.projects) ? object.projects.map((e: any) => ProjectInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsResponse): unknown { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toJSON(e) : undefined); - } else { - obj.projects = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsResponse { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsResponseAmino): QueryProjectsResponse { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsResponse): QueryProjectsResponseAmino { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsResponseAminoMsg): QueryProjectsResponse { - return QueryProjectsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsResponseProtoMsg): QueryProjectsResponse { - return QueryProjectsResponse.decode(message.value); - }, - toProto(message: QueryProjectsResponse): Uint8Array { - return QueryProjectsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - value: QueryProjectsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassRequest(): QueryProjectsByClassRequest { - return { - classId: "", - pagination: undefined - }; -} -export const QueryProjectsByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - encode(message: QueryProjectsByClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByClassRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByClassRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByClassRequest { - const message = createBaseQueryProjectsByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByClassRequestAmino): QueryProjectsByClassRequest { - const message = createBaseQueryProjectsByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByClassRequestAminoMsg): QueryProjectsByClassRequest { - return QueryProjectsByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByClassRequestProtoMsg): QueryProjectsByClassRequest { - return QueryProjectsByClassRequest.decode(message.value); - }, - toProto(message: QueryProjectsByClassRequest): Uint8Array { - return QueryProjectsByClassRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - value: QueryProjectsByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassResponse(): QueryProjectsByClassResponse { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - encode(message: QueryProjectsByClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.projects) { - ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByClassResponse { - return { - projects: Array.isArray(object?.projects) ? object.projects.map((e: any) => ProjectInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByClassResponse): unknown { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toJSON(e) : undefined); - } else { - obj.projects = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByClassResponse { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByClassResponseAmino): QueryProjectsByClassResponse { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseAmino { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByClassResponseAminoMsg): QueryProjectsByClassResponse { - return QueryProjectsByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByClassResponseProtoMsg): QueryProjectsByClassResponse { - return QueryProjectsByClassResponse.decode(message.value); - }, - toProto(message: QueryProjectsByClassResponse): Uint8Array { - return QueryProjectsByClassResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - value: QueryProjectsByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdRequest(): QueryProjectsByReferenceIdRequest { - return { - referenceId: "", - pagination: undefined - }; -} -export const QueryProjectsByReferenceIdRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - encode(message: QueryProjectsByReferenceIdRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByReferenceIdRequest { - return { - referenceId: isSet(object.referenceId) ? String(object.referenceId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByReferenceIdRequest): unknown { - const obj: any = {}; - message.referenceId !== undefined && (obj.referenceId = message.referenceId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByReferenceIdRequest { - const message = createBaseQueryProjectsByReferenceIdRequest(); - message.referenceId = object.referenceId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByReferenceIdRequestAmino): QueryProjectsByReferenceIdRequest { - const message = createBaseQueryProjectsByReferenceIdRequest(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestAmino { - const obj: any = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByReferenceIdRequestAminoMsg): QueryProjectsByReferenceIdRequest { - return QueryProjectsByReferenceIdRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByReferenceIdRequestProtoMsg): QueryProjectsByReferenceIdRequest { - return QueryProjectsByReferenceIdRequest.decode(message.value); - }, - toProto(message: QueryProjectsByReferenceIdRequest): Uint8Array { - return QueryProjectsByReferenceIdRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - value: QueryProjectsByReferenceIdRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdResponse(): QueryProjectsByReferenceIdResponse { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByReferenceIdResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - encode(message: QueryProjectsByReferenceIdResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.projects) { - ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByReferenceIdResponse { - return { - projects: Array.isArray(object?.projects) ? object.projects.map((e: any) => ProjectInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByReferenceIdResponse): unknown { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toJSON(e) : undefined); - } else { - obj.projects = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByReferenceIdResponse { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByReferenceIdResponseAmino): QueryProjectsByReferenceIdResponse { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseAmino { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByReferenceIdResponseAminoMsg): QueryProjectsByReferenceIdResponse { - return QueryProjectsByReferenceIdResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByReferenceIdResponseProtoMsg): QueryProjectsByReferenceIdResponse { - return QueryProjectsByReferenceIdResponse.decode(message.value); - }, - toProto(message: QueryProjectsByReferenceIdResponse): Uint8Array { - return QueryProjectsByReferenceIdResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - value: QueryProjectsByReferenceIdResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminRequest(): QueryProjectsByAdminRequest { - return { - admin: "", - pagination: undefined - }; -} -export const QueryProjectsByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - encode(message: QueryProjectsByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByAdminRequest { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByAdminRequest): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByAdminRequest { - const message = createBaseQueryProjectsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByAdminRequestAmino): QueryProjectsByAdminRequest { - const message = createBaseQueryProjectsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByAdminRequestAminoMsg): QueryProjectsByAdminRequest { - return QueryProjectsByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByAdminRequestProtoMsg): QueryProjectsByAdminRequest { - return QueryProjectsByAdminRequest.decode(message.value); - }, - toProto(message: QueryProjectsByAdminRequest): Uint8Array { - return QueryProjectsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - value: QueryProjectsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminResponse(): QueryProjectsByAdminResponse { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - encode(message: QueryProjectsByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.projects) { - ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectsByAdminResponse { - return { - projects: Array.isArray(object?.projects) ? object.projects.map((e: any) => ProjectInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryProjectsByAdminResponse): unknown { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toJSON(e) : undefined); - } else { - obj.projects = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectsByAdminResponse { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryProjectsByAdminResponseAmino): QueryProjectsByAdminResponse { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseAmino { - const obj: any = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectsByAdminResponseAminoMsg): QueryProjectsByAdminResponse { - return QueryProjectsByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectsByAdminResponseProtoMsg): QueryProjectsByAdminResponse { - return QueryProjectsByAdminResponse.decode(message.value); - }, - toProto(message: QueryProjectsByAdminResponse): Uint8Array { - return QueryProjectsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - value: QueryProjectsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectRequest(): QueryProjectRequest { - return { - projectId: "" - }; -} -export const QueryProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - encode(message: QueryProjectRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectRequest { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: QueryProjectRequest): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): QueryProjectRequest { - const message = createBaseQueryProjectRequest(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: QueryProjectRequestAmino): QueryProjectRequest { - const message = createBaseQueryProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: QueryProjectRequest): QueryProjectRequestAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: QueryProjectRequestAminoMsg): QueryProjectRequest { - return QueryProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectRequestProtoMsg): QueryProjectRequest { - return QueryProjectRequest.decode(message.value); - }, - toProto(message: QueryProjectRequest): Uint8Array { - return QueryProjectRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - value: QueryProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectResponse(): QueryProjectResponse { - return { - project: undefined - }; -} -export const QueryProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - encode(message: QueryProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.project !== undefined) { - ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = ProjectInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryProjectResponse { - return { - project: isSet(object.project) ? ProjectInfo.fromJSON(object.project) : undefined - }; - }, - toJSON(message: QueryProjectResponse): unknown { - const obj: any = {}; - message.project !== undefined && (obj.project = message.project ? ProjectInfo.toJSON(message.project) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryProjectResponse { - const message = createBaseQueryProjectResponse(); - message.project = object.project !== undefined && object.project !== null ? ProjectInfo.fromPartial(object.project) : undefined; - return message; - }, - fromAmino(object: QueryProjectResponseAmino): QueryProjectResponse { - const message = createBaseQueryProjectResponse(); - if (object.project !== undefined && object.project !== null) { - message.project = ProjectInfo.fromAmino(object.project); - } - return message; - }, - toAmino(message: QueryProjectResponse): QueryProjectResponseAmino { - const obj: any = {}; - obj.project = message.project ? ProjectInfo.toAmino(message.project) : undefined; - return obj; - }, - fromAminoMsg(object: QueryProjectResponseAminoMsg): QueryProjectResponse { - return QueryProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryProjectResponseProtoMsg): QueryProjectResponse { - return QueryProjectResponse.decode(message.value); - }, - toProto(message: QueryProjectResponse): Uint8Array { - return QueryProjectResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - value: QueryProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest(): QueryBatchesRequest { - return { - pagination: undefined - }; -} -export const QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - encode(message: QueryBatchesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesRequest { - const message = createBaseQueryBatchesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest { - const message = createBaseQueryBatchesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest { - return QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest { - return QueryBatchesRequest.decode(message.value); - }, - toProto(message: QueryBatchesRequest): Uint8Array { - return QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - value: QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse(): QueryBatchesResponse { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - encode(message: QueryBatchesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.batches) { - BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesResponse { - return { - batches: Array.isArray(object?.batches) ? object.batches.map((e: any) => BatchInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesResponse): unknown { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batches = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesResponse { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse { - return QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse { - return QueryBatchesResponse.decode(message.value); - }, - toProto(message: QueryBatchesResponse): Uint8Array { - return QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - value: QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerRequest(): QueryBatchesByIssuerRequest { - return { - issuer: "", - pagination: undefined - }; -} -export const QueryBatchesByIssuerRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - encode(message: QueryBatchesByIssuerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByIssuerRequest { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByIssuerRequest): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByIssuerRequest { - const message = createBaseQueryBatchesByIssuerRequest(); - message.issuer = object.issuer ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByIssuerRequestAmino): QueryBatchesByIssuerRequest { - const message = createBaseQueryBatchesByIssuerRequest(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByIssuerRequestAminoMsg): QueryBatchesByIssuerRequest { - return QueryBatchesByIssuerRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByIssuerRequestProtoMsg): QueryBatchesByIssuerRequest { - return QueryBatchesByIssuerRequest.decode(message.value); - }, - toProto(message: QueryBatchesByIssuerRequest): Uint8Array { - return QueryBatchesByIssuerRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - value: QueryBatchesByIssuerRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerResponse(): QueryBatchesByIssuerResponse { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByIssuerResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - encode(message: QueryBatchesByIssuerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.batches) { - BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByIssuerResponse { - return { - batches: Array.isArray(object?.batches) ? object.batches.map((e: any) => BatchInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByIssuerResponse): unknown { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batches = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByIssuerResponse { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByIssuerResponseAmino): QueryBatchesByIssuerResponse { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseAmino { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByIssuerResponseAminoMsg): QueryBatchesByIssuerResponse { - return QueryBatchesByIssuerResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByIssuerResponseProtoMsg): QueryBatchesByIssuerResponse { - return QueryBatchesByIssuerResponse.decode(message.value); - }, - toProto(message: QueryBatchesByIssuerResponse): Uint8Array { - return QueryBatchesByIssuerResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - value: QueryBatchesByIssuerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassRequest(): QueryBatchesByClassRequest { - return { - classId: "", - pagination: undefined - }; -} -export const QueryBatchesByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - encode(message: QueryBatchesByClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByClassRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByClassRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByClassRequest { - const message = createBaseQueryBatchesByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByClassRequestAmino): QueryBatchesByClassRequest { - const message = createBaseQueryBatchesByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByClassRequestAminoMsg): QueryBatchesByClassRequest { - return QueryBatchesByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByClassRequestProtoMsg): QueryBatchesByClassRequest { - return QueryBatchesByClassRequest.decode(message.value); - }, - toProto(message: QueryBatchesByClassRequest): Uint8Array { - return QueryBatchesByClassRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - value: QueryBatchesByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectRequest(): QueryBatchesByProjectRequest { - return { - projectId: "", - pagination: undefined - }; -} -export const QueryBatchesByProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - encode(message: QueryBatchesByProjectRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByProjectRequest { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByProjectRequest): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByProjectRequest { - const message = createBaseQueryBatchesByProjectRequest(); - message.projectId = object.projectId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByProjectRequestAmino): QueryBatchesByProjectRequest { - const message = createBaseQueryBatchesByProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByProjectRequestAminoMsg): QueryBatchesByProjectRequest { - return QueryBatchesByProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByProjectRequestProtoMsg): QueryBatchesByProjectRequest { - return QueryBatchesByProjectRequest.decode(message.value); - }, - toProto(message: QueryBatchesByProjectRequest): Uint8Array { - return QueryBatchesByProjectRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - value: QueryBatchesByProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectResponse(): QueryBatchesByProjectResponse { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - encode(message: QueryBatchesByProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.batches) { - BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByProjectResponse { - return { - batches: Array.isArray(object?.batches) ? object.batches.map((e: any) => BatchInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByProjectResponse): unknown { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batches = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByProjectResponse { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByProjectResponseAmino): QueryBatchesByProjectResponse { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseAmino { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByProjectResponseAminoMsg): QueryBatchesByProjectResponse { - return QueryBatchesByProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByProjectResponseProtoMsg): QueryBatchesByProjectResponse { - return QueryBatchesByProjectResponse.decode(message.value); - }, - toProto(message: QueryBatchesByProjectResponse): Uint8Array { - return QueryBatchesByProjectResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - value: QueryBatchesByProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassResponse(): QueryBatchesByClassResponse { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - encode(message: QueryBatchesByClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.batches) { - BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesByClassResponse { - return { - batches: Array.isArray(object?.batches) ? object.batches.map((e: any) => BatchInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesByClassResponse): unknown { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batches = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesByClassResponse { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesByClassResponseAmino): QueryBatchesByClassResponse { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseAmino { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesByClassResponseAminoMsg): QueryBatchesByClassResponse { - return QueryBatchesByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesByClassResponseProtoMsg): QueryBatchesByClassResponse { - return QueryBatchesByClassResponse.decode(message.value); - }, - toProto(message: QueryBatchesByClassResponse): Uint8Array { - return QueryBatchesByClassResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - value: QueryBatchesByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchRequest(): QueryBatchRequest { - return { - batchDenom: "" - }; -} -export const QueryBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - encode(message: QueryBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QueryBatchRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QueryBatchRequest { - const message = createBaseQueryBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QueryBatchRequestAmino): QueryBatchRequest { - const message = createBaseQueryBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QueryBatchRequest): QueryBatchRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QueryBatchRequestAminoMsg): QueryBatchRequest { - return QueryBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchRequestProtoMsg): QueryBatchRequest { - return QueryBatchRequest.decode(message.value); - }, - toProto(message: QueryBatchRequest): Uint8Array { - return QueryBatchRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - value: QueryBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchResponse(): QueryBatchResponse { - return { - batch: undefined - }; -} -export const QueryBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - encode(message: QueryBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batch !== undefined) { - BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batch = BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchResponse { - return { - batch: isSet(object.batch) ? BatchInfo.fromJSON(object.batch) : undefined - }; - }, - toJSON(message: QueryBatchResponse): unknown { - const obj: any = {}; - message.batch !== undefined && (obj.batch = message.batch ? BatchInfo.toJSON(message.batch) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchResponse { - const message = createBaseQueryBatchResponse(); - message.batch = object.batch !== undefined && object.batch !== null ? BatchInfo.fromPartial(object.batch) : undefined; - return message; - }, - fromAmino(object: QueryBatchResponseAmino): QueryBatchResponse { - const message = createBaseQueryBatchResponse(); - if (object.batch !== undefined && object.batch !== null) { - message.batch = BatchInfo.fromAmino(object.batch); - } - return message; - }, - toAmino(message: QueryBatchResponse): QueryBatchResponseAmino { - const obj: any = {}; - obj.batch = message.batch ? BatchInfo.toAmino(message.batch) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchResponseAminoMsg): QueryBatchResponse { - return QueryBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchResponseProtoMsg): QueryBatchResponse { - return QueryBatchResponse.decode(message.value); - }, - toProto(message: QueryBatchResponse): Uint8Array { - return QueryBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - value: QueryBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest(): QueryBalanceRequest { - return { - address: "", - batchDenom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QueryBalanceRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { - return QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message: QueryBalanceRequest): Uint8Array { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse(): QueryBalanceResponse { - return { - balance: undefined - }; -} -export const QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.balance !== undefined) { - BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = BatchBalanceInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceResponse { - return { - balance: isSet(object.balance) ? BatchBalanceInfo.fromJSON(object.balance) : undefined - }; - }, - toJSON(message: QueryBalanceResponse): unknown { - const obj: any = {}; - message.balance !== undefined && (obj.balance = message.balance ? BatchBalanceInfo.toJSON(message.balance) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? BatchBalanceInfo.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = BatchBalanceInfo.fromAmino(object.balance); - } - return message; - }, - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { - const obj: any = {}; - obj.balance = message.balance ? BatchBalanceInfo.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { - return QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message: QueryBalanceResponse): Uint8Array { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesRequest(): QueryBalancesRequest { - return { - address: "", - pagination: undefined - }; -} -export const QueryBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - encode(message: QueryBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalancesRequest { - return { - address: isSet(object.address) ? String(object.address) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBalancesRequest): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalancesRequest { - const message = createBaseQueryBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBalancesRequestAmino): QueryBalancesRequest { - const message = createBaseQueryBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBalancesRequest): QueryBalancesRequestAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalancesRequestAminoMsg): QueryBalancesRequest { - return QueryBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalancesRequestProtoMsg): QueryBalancesRequest { - return QueryBalancesRequest.decode(message.value); - }, - toProto(message: QueryBalancesRequest): Uint8Array { - return QueryBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - value: QueryBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesResponse(): QueryBalancesResponse { - return { - balances: [], - pagination: undefined - }; -} -export const QueryBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - encode(message: QueryBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalancesResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => BatchBalanceInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBalancesResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalancesResponse { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBalancesResponseAmino): QueryBalancesResponse { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBalancesResponse): QueryBalancesResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalancesResponseAminoMsg): QueryBalancesResponse { - return QueryBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalancesResponseProtoMsg): QueryBalancesResponse { - return QueryBalancesResponse.decode(message.value); - }, - toProto(message: QueryBalancesResponse): Uint8Array { - return QueryBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - value: QueryBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchRequest(): QueryBalancesByBatchRequest { - return { - batchDenom: "", - pagination: undefined - }; -} -export const QueryBalancesByBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - encode(message: QueryBalancesByBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalancesByBatchRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBalancesByBatchRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalancesByBatchRequest { - const message = createBaseQueryBalancesByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBalancesByBatchRequestAmino): QueryBalancesByBatchRequest { - const message = createBaseQueryBalancesByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalancesByBatchRequestAminoMsg): QueryBalancesByBatchRequest { - return QueryBalancesByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalancesByBatchRequestProtoMsg): QueryBalancesByBatchRequest { - return QueryBalancesByBatchRequest.decode(message.value); - }, - toProto(message: QueryBalancesByBatchRequest): Uint8Array { - return QueryBalancesByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - value: QueryBalancesByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchResponse(): QueryBalancesByBatchResponse { - return { - balances: [], - pagination: undefined - }; -} -export const QueryBalancesByBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - encode(message: QueryBalancesByBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalancesByBatchResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => BatchBalanceInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBalancesByBatchResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBalancesByBatchResponse { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBalancesByBatchResponseAmino): QueryBalancesByBatchResponse { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBalancesByBatchResponseAminoMsg): QueryBalancesByBatchResponse { - return QueryBalancesByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalancesByBatchResponseProtoMsg): QueryBalancesByBatchResponse { - return QueryBalancesByBatchResponse.decode(message.value); - }, - toProto(message: QueryBalancesByBatchResponse): Uint8Array { - return QueryBalancesByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - value: QueryBalancesByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest(): QueryAllBalancesRequest { - return { - pagination: undefined - }; -} -export const QueryAllBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - encode(message: QueryAllBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllBalancesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllBalancesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllBalancesRequest { - const message = createBaseQueryAllBalancesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest { - const message = createBaseQueryAllBalancesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest { - return QueryAllBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest { - return QueryAllBalancesRequest.decode(message.value); - }, - toProto(message: QueryAllBalancesRequest): Uint8Array { - return QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - value: QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse(): QueryAllBalancesResponse { - return { - balances: [], - pagination: undefined - }; -} -export const QueryAllBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - encode(message: QueryAllBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.balances) { - BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllBalancesResponse { - return { - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => BatchBalanceInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllBalancesResponse): unknown { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toJSON(e) : undefined); - } else { - obj.balances = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllBalancesResponse { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino { - const obj: any = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse { - return QueryAllBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse { - return QueryAllBalancesResponse.decode(message.value); - }, - toProto(message: QueryAllBalancesResponse): Uint8Array { - return QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - value: QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest(): QuerySupplyRequest { - return { - batchDenom: "" - }; -} -export const QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QuerySupplyRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest { - return QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest { - return QuerySupplyRequest.decode(message.value); - }, - toProto(message: QuerySupplyRequest): Uint8Array { - return QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - value: QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse(): QuerySupplyResponse { - return { - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -export const QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(26).string(message.cancelledAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - case 3: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyResponse { - return { - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - cancelledAmount: isSet(object.cancelledAmount) ? String(object.cancelledAmount) : "" - }; - }, - toJSON(message: QuerySupplyResponse): unknown { - const obj: any = {}; - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.cancelledAmount !== undefined && (obj.cancelledAmount = message.cancelledAmount); - return obj; - }, - fromPartial(object: Partial): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino { - const obj: any = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse { - return QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse { - return QuerySupplyResponse.decode(message.value); - }, - toProto(message: QuerySupplyResponse): Uint8Array { - return QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - value: QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest(): QueryCreditTypesRequest { - return {}; -} -export const QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - encode(_: QueryCreditTypesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryCreditTypesRequest { - return {}; - }, - toJSON(_: QueryCreditTypesRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryCreditTypesRequest { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest { - return QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest { - return QueryCreditTypesRequest.decode(message.value); - }, - toProto(message: QueryCreditTypesRequest): Uint8Array { - return QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - value: QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse(): QueryCreditTypesResponse { - return { - creditTypes: [] - }; -} -export const QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - encode(message: QueryCreditTypesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.creditTypes) { - CreditType.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCreditTypesResponse { - return { - creditTypes: Array.isArray(object?.creditTypes) ? object.creditTypes.map((e: any) => CreditType.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryCreditTypesResponse): unknown { - const obj: any = {}; - if (message.creditTypes) { - obj.creditTypes = message.creditTypes.map(e => e ? CreditType.toJSON(e) : undefined); - } else { - obj.creditTypes = []; - } - return obj; - }, - fromPartial(object: Partial): QueryCreditTypesResponse { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino { - const obj: any = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse { - return QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse { - return QueryCreditTypesResponse.decode(message.value); - }, - toProto(message: QueryCreditTypesResponse): Uint8Array { - return QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - value: QueryCreditTypesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeRequest(): QueryCreditTypeRequest { - return { - abbreviation: "" - }; -} -export const QueryCreditTypeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - encode(message: QueryCreditTypeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCreditTypeRequest { - return { - abbreviation: isSet(object.abbreviation) ? String(object.abbreviation) : "" - }; - }, - toJSON(message: QueryCreditTypeRequest): unknown { - const obj: any = {}; - message.abbreviation !== undefined && (obj.abbreviation = message.abbreviation); - return obj; - }, - fromPartial(object: Partial): QueryCreditTypeRequest { - const message = createBaseQueryCreditTypeRequest(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object: QueryCreditTypeRequestAmino): QueryCreditTypeRequest { - const message = createBaseQueryCreditTypeRequest(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message: QueryCreditTypeRequest): QueryCreditTypeRequestAmino { - const obj: any = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object: QueryCreditTypeRequestAminoMsg): QueryCreditTypeRequest { - return QueryCreditTypeRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypeRequestProtoMsg): QueryCreditTypeRequest { - return QueryCreditTypeRequest.decode(message.value); - }, - toProto(message: QueryCreditTypeRequest): Uint8Array { - return QueryCreditTypeRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - value: QueryCreditTypeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeResponse(): QueryCreditTypeResponse { - return { - creditType: undefined - }; -} -export const QueryCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - encode(message: QueryCreditTypeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCreditTypeResponse { - return { - creditType: isSet(object.creditType) ? CreditType.fromJSON(object.creditType) : undefined - }; - }, - toJSON(message: QueryCreditTypeResponse): unknown { - const obj: any = {}; - message.creditType !== undefined && (obj.creditType = message.creditType ? CreditType.toJSON(message.creditType) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryCreditTypeResponse { - const message = createBaseQueryCreditTypeResponse(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object: QueryCreditTypeResponseAmino): QueryCreditTypeResponse { - const message = createBaseQueryCreditTypeResponse(); - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message: QueryCreditTypeResponse): QueryCreditTypeResponseAmino { - const obj: any = {}; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object: QueryCreditTypeResponseAminoMsg): QueryCreditTypeResponse { - return QueryCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypeResponseProtoMsg): QueryCreditTypeResponse { - return QueryCreditTypeResponse.decode(message.value); - }, - toProto(message: QueryCreditTypeResponse): Uint8Array { - return QueryCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - value: QueryCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseClassInfo(): ClassInfo { - return { - id: "", - admin: "", - metadata: "", - creditTypeAbbrev: "" - }; -} -export const ClassInfo = { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - encode(message: ClassInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassInfo { - return { - id: isSet(object.id) ? String(object.id) : "", - admin: isSet(object.admin) ? String(object.admin) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "" - }; - }, - toJSON(message: ClassInfo): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - message.admin !== undefined && (obj.admin = message.admin); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - return obj; - }, - fromPartial(object: Partial): ClassInfo { - const message = createBaseClassInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object: ClassInfoAmino): ClassInfo { - const message = createBaseClassInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message: ClassInfo): ClassInfoAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo { - return ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo { - return ClassInfo.decode(message.value); - }, - toProto(message: ClassInfo): Uint8Array { - return ClassInfo.encode(message).finish(); - }, - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - value: ClassInfo.encode(message).finish() - }; - } -}; -function createBaseProjectInfo(): ProjectInfo { - return { - id: "", - admin: "", - classId: "", - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -export const ProjectInfo = { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - encode(message: ProjectInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(26).string(message.classId); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(50).string(message.referenceId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.classId = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProjectInfo { - return { - id: isSet(object.id) ? String(object.id) : "", - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - referenceId: isSet(object.referenceId) ? String(object.referenceId) : "" - }; - }, - toJSON(message: ProjectInfo): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.referenceId !== undefined && (obj.referenceId = message.referenceId); - return obj; - }, - fromPartial(object: Partial): ProjectInfo { - const message = createBaseProjectInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object: ProjectInfoAmino): ProjectInfo { - const message = createBaseProjectInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message: ProjectInfo): ProjectInfoAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object: ProjectInfoAminoMsg): ProjectInfo { - return ProjectInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ProjectInfoProtoMsg): ProjectInfo { - return ProjectInfo.decode(message.value); - }, - toProto(message: ProjectInfo): Uint8Array { - return ProjectInfo.encode(message).finish(); - }, - toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - value: ProjectInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo(): BatchInfo { - return { - issuer: "", - projectId: "", - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -export const BatchInfo = { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - encode(message: BatchInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.denom !== "") { - writer.uint32(26).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(50).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - Timestamp.encode(message.issuanceDate, writer.uint32(58).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(64).bool(message.open); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.denom = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.issuanceDate = Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchInfo { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - projectId: isSet(object.projectId) ? String(object.projectId) : "", - denom: isSet(object.denom) ? String(object.denom) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - issuanceDate: isSet(object.issuanceDate) ? fromJsonTimestamp(object.issuanceDate) : undefined, - open: isSet(object.open) ? Boolean(object.open) : false - }; - }, - toJSON(message: BatchInfo): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.projectId !== undefined && (obj.projectId = message.projectId); - message.denom !== undefined && (obj.denom = message.denom); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.issuanceDate !== undefined && (obj.issuanceDate = fromTimestamp(message.issuanceDate).toISOString()); - message.open !== undefined && (obj.open = message.open); - return obj; - }, - fromPartial(object: Partial): BatchInfo { - const message = createBaseBatchInfo(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.issuanceDate = object.issuanceDate !== undefined && object.issuanceDate !== null ? Timestamp.fromPartial(object.issuanceDate) : undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object: BatchInfoAmino): BatchInfo { - const message = createBaseBatchInfo(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = Timestamp.fromAmino(object.issuance_date); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message: BatchInfo): BatchInfoAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(message.issuanceDate) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo { - return BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo { - return BatchInfo.decode(message.value); - }, - toProto(message: BatchInfo): Uint8Array { - return BatchInfo.encode(message).finish(); - }, - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - value: BatchInfo.encode(message).finish() - }; - } -}; -function createBaseBatchBalanceInfo(): BatchBalanceInfo { - return { - address: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -export const BatchBalanceInfo = { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - encode(message: BatchBalanceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchBalanceInfo { - return { - address: isSet(object.address) ? String(object.address) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - escrowedAmount: isSet(object.escrowedAmount) ? String(object.escrowedAmount) : "" - }; - }, - toJSON(message: BatchBalanceInfo): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.escrowedAmount !== undefined && (obj.escrowedAmount = message.escrowedAmount); - return obj; - }, - fromPartial(object: Partial): BatchBalanceInfo { - const message = createBaseBatchBalanceInfo(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object: BatchBalanceInfoAmino): BatchBalanceInfo { - const message = createBaseBatchBalanceInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message: BatchBalanceInfo): BatchBalanceInfoAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object: BatchBalanceInfoAminoMsg): BatchBalanceInfo { - return BatchBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message: BatchBalanceInfoProtoMsg): BatchBalanceInfo { - return BatchBalanceInfo.decode(message.value); - }, - toProto(message: BatchBalanceInfo): Uint8Array { - return BatchBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - value: BatchBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistRequest(): QueryClassCreatorAllowlistRequest { - return {}; -} -export const QueryClassCreatorAllowlistRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - encode(_: QueryClassCreatorAllowlistRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryClassCreatorAllowlistRequest { - return {}; - }, - toJSON(_: QueryClassCreatorAllowlistRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryClassCreatorAllowlistRequest { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - fromAmino(_: QueryClassCreatorAllowlistRequestAmino): QueryClassCreatorAllowlistRequest { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - toAmino(_: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryClassCreatorAllowlistRequestAminoMsg): QueryClassCreatorAllowlistRequest { - return QueryClassCreatorAllowlistRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassCreatorAllowlistRequestProtoMsg): QueryClassCreatorAllowlistRequest { - return QueryClassCreatorAllowlistRequest.decode(message.value); - }, - toProto(message: QueryClassCreatorAllowlistRequest): Uint8Array { - return QueryClassCreatorAllowlistRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - value: QueryClassCreatorAllowlistRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistResponse(): QueryClassCreatorAllowlistResponse { - return { - enabled: false - }; -} -export const QueryClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - encode(message: QueryClassCreatorAllowlistResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassCreatorAllowlistResponse { - return { - enabled: isSet(object.enabled) ? Boolean(object.enabled) : false - }; - }, - toJSON(message: QueryClassCreatorAllowlistResponse): unknown { - const obj: any = {}; - message.enabled !== undefined && (obj.enabled = message.enabled); - return obj; - }, - fromPartial(object: Partial): QueryClassCreatorAllowlistResponse { - const message = createBaseQueryClassCreatorAllowlistResponse(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object: QueryClassCreatorAllowlistResponseAmino): QueryClassCreatorAllowlistResponse { - const message = createBaseQueryClassCreatorAllowlistResponse(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseAmino { - const obj: any = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object: QueryClassCreatorAllowlistResponseAminoMsg): QueryClassCreatorAllowlistResponse { - return QueryClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassCreatorAllowlistResponseProtoMsg): QueryClassCreatorAllowlistResponse { - return QueryClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message: QueryClassCreatorAllowlistResponse): Uint8Array { - return QueryClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - value: QueryClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsRequest(): QueryAllowedClassCreatorsRequest { - return { - pagination: undefined - }; -} -export const QueryAllowedClassCreatorsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - encode(message: QueryAllowedClassCreatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowedClassCreatorsRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowedClassCreatorsRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowedClassCreatorsRequest { - const message = createBaseQueryAllowedClassCreatorsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowedClassCreatorsRequestAmino): QueryAllowedClassCreatorsRequest { - const message = createBaseQueryAllowedClassCreatorsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowedClassCreatorsRequestAminoMsg): QueryAllowedClassCreatorsRequest { - return QueryAllowedClassCreatorsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedClassCreatorsRequestProtoMsg): QueryAllowedClassCreatorsRequest { - return QueryAllowedClassCreatorsRequest.decode(message.value); - }, - toProto(message: QueryAllowedClassCreatorsRequest): Uint8Array { - return QueryAllowedClassCreatorsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - value: QueryAllowedClassCreatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsResponse(): QueryAllowedClassCreatorsResponse { - return { - classCreators: [], - pagination: undefined - }; -} -export const QueryAllowedClassCreatorsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - encode(message: QueryAllowedClassCreatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classCreators) { - writer.uint32(10).string(v!); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classCreators.push(reader.string()); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowedClassCreatorsResponse { - return { - classCreators: Array.isArray(object?.classCreators) ? object.classCreators.map((e: any) => String(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryAllowedClassCreatorsResponse): unknown { - const obj: any = {}; - if (message.classCreators) { - obj.classCreators = message.classCreators.map(e => e); - } else { - obj.classCreators = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryAllowedClassCreatorsResponse { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.classCreators?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryAllowedClassCreatorsResponseAmino): QueryAllowedClassCreatorsResponse { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.class_creators?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseAmino { - const obj: any = {}; - if (message.classCreators) { - obj.class_creators = message.classCreators.map(e => e); - } else { - obj.class_creators = message.classCreators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryAllowedClassCreatorsResponseAminoMsg): QueryAllowedClassCreatorsResponse { - return QueryAllowedClassCreatorsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedClassCreatorsResponseProtoMsg): QueryAllowedClassCreatorsResponse { - return QueryAllowedClassCreatorsResponse.decode(message.value); - }, - toProto(message: QueryAllowedClassCreatorsResponse): Uint8Array { - return QueryAllowedClassCreatorsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - value: QueryAllowedClassCreatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeRequest(): QueryClassFeeRequest { - return {}; -} -export const QueryClassFeeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - encode(_: QueryClassFeeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryClassFeeRequest { - return {}; - }, - toJSON(_: QueryClassFeeRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryClassFeeRequest { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - fromAmino(_: QueryClassFeeRequestAmino): QueryClassFeeRequest { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - toAmino(_: QueryClassFeeRequest): QueryClassFeeRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryClassFeeRequestAminoMsg): QueryClassFeeRequest { - return QueryClassFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassFeeRequestProtoMsg): QueryClassFeeRequest { - return QueryClassFeeRequest.decode(message.value); - }, - toProto(message: QueryClassFeeRequest): Uint8Array { - return QueryClassFeeRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - value: QueryClassFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeResponse(): QueryClassFeeResponse { - return { - fee: undefined - }; -} -export const QueryClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - encode(message: QueryClassFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassFeeResponse { - return { - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: QueryClassFeeResponse): unknown { - const obj: any = {}; - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassFeeResponse { - const message = createBaseQueryClassFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: QueryClassFeeResponseAmino): QueryClassFeeResponse { - const message = createBaseQueryClassFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: QueryClassFeeResponse): QueryClassFeeResponseAmino { - const obj: any = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassFeeResponseAminoMsg): QueryClassFeeResponse { - return QueryClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassFeeResponseProtoMsg): QueryClassFeeResponse { - return QueryClassFeeResponse.decode(message.value); - }, - toProto(message: QueryClassFeeResponse): Uint8Array { - return QueryClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - value: QueryClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsRequest(): QueryAllowedBridgeChainsRequest { - return {}; -} -export const QueryAllowedBridgeChainsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - encode(_: QueryAllowedBridgeChainsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryAllowedBridgeChainsRequest { - return {}; - }, - toJSON(_: QueryAllowedBridgeChainsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryAllowedBridgeChainsRequest { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - fromAmino(_: QueryAllowedBridgeChainsRequestAmino): QueryAllowedBridgeChainsRequest { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - toAmino(_: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryAllowedBridgeChainsRequestAminoMsg): QueryAllowedBridgeChainsRequest { - return QueryAllowedBridgeChainsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedBridgeChainsRequestProtoMsg): QueryAllowedBridgeChainsRequest { - return QueryAllowedBridgeChainsRequest.decode(message.value); - }, - toProto(message: QueryAllowedBridgeChainsRequest): Uint8Array { - return QueryAllowedBridgeChainsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - value: QueryAllowedBridgeChainsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsResponse(): QueryAllowedBridgeChainsResponse { - return { - allowedBridgeChains: [] - }; -} -export const QueryAllowedBridgeChainsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - encode(message: QueryAllowedBridgeChainsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.allowedBridgeChains) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryAllowedBridgeChainsResponse { - return { - allowedBridgeChains: Array.isArray(object?.allowedBridgeChains) ? object.allowedBridgeChains.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: QueryAllowedBridgeChainsResponse): unknown { - const obj: any = {}; - if (message.allowedBridgeChains) { - obj.allowedBridgeChains = message.allowedBridgeChains.map(e => e); - } else { - obj.allowedBridgeChains = []; - } - return obj; - }, - fromPartial(object: Partial): QueryAllowedBridgeChainsResponse { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object: QueryAllowedBridgeChainsResponseAmino): QueryAllowedBridgeChainsResponse { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseAmino { - const obj: any = {}; - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object: QueryAllowedBridgeChainsResponseAminoMsg): QueryAllowedBridgeChainsResponse { - return QueryAllowedBridgeChainsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryAllowedBridgeChainsResponseProtoMsg): QueryAllowedBridgeChainsResponse { - return QueryAllowedBridgeChainsResponse.decode(message.value); - }, - toProto(message: QueryAllowedBridgeChainsResponse): Uint8Array { - return QueryAllowedBridgeChainsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - value: QueryAllowedBridgeChainsResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/state.ts b/packages/api/src/codegen/regen/ecocredit/v1/state.ts deleted file mode 100644 index 3a76113f..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/state.ts +++ /dev/null @@ -1,2592 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit: string; - /** precision is the decimal precision of the credit type. */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name?: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit?: string; - /** precision is the decimal precision of the credit type. */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - abbreviation: string; - name: string; - unit: string; - precision: number; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface Class { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id: string; - /** admin is the admin of the credit class. */ - admin: Uint8Array; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; -} -export interface ClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.Class"; - value: Uint8Array; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassAmino { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; -} -export interface ClassAminoMsg { - type: "/regen.ecocredit.v1.Class"; - value: ClassAmino; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassSDKType { - key: bigint; - id: string; - admin: Uint8Array; - metadata: string; - credit_type_abbrev: string; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuer { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - classKey: bigint; - /** issuer is the approved issuer of the credit class. */ - issuer: Uint8Array; -} -export interface ClassIssuerProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassIssuer"; - value: Uint8Array; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - class_key?: string; - /** issuer is the approved issuer of the credit class. */ - issuer?: string; -} -export interface ClassIssuerAminoMsg { - type: "/regen.ecocredit.v1.ClassIssuer"; - value: ClassIssuerAmino; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerSDKType { - class_key: bigint; - issuer: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface Project { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id: string; - /** admin is the admin of the project. */ - admin: Uint8Array; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - classKey: bigint; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string used to reference the project. */ - referenceId: string; -} -export interface ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectAmino { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - class_key?: string; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string used to reference the project. */ - reference_id?: string; -} -export interface ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: ProjectAmino; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectSDKType { - key: bigint; - id: string; - admin: Uint8Array; - class_key: bigint; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface Batch { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer: Uint8Array; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - projectKey: bigint; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Timestamp; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open: boolean; -} -export interface BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchAmino { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer?: string; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - project_key?: string; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open?: boolean; -} -export interface BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: BatchAmino; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchSDKType { - key: bigint; - issuer: Uint8Array; - project_key: bigint; - denom: string; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - issuance_date?: TimestampSDKType; - open: boolean; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequence { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - creditTypeAbbrev: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - nextSequence: bigint; -} -export interface ClassSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassSequence"; - value: Uint8Array; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceAmino { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - credit_type_abbrev?: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - next_sequence?: string; -} -export interface ClassSequenceAminoMsg { - type: "/regen.ecocredit.v1.ClassSequence"; - value: ClassSequenceAmino; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceSDKType { - credit_type_abbrev: string; - next_sequence: bigint; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequence { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - classKey: bigint; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - nextSequence: bigint; -} -export interface ProjectSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectSequence"; - value: Uint8Array; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - class_key?: string; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - next_sequence?: string; -} -export interface ProjectSequenceAminoMsg { - type: "/regen.ecocredit.v1.ProjectSequence"; - value: ProjectSequenceAmino; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceSDKType { - class_key: bigint; - next_sequence: bigint; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequence { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - projectKey: bigint; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - nextSequence: bigint; -} -export interface BatchSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSequence"; - value: Uint8Array; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceAmino { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - project_key?: string; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - next_sequence?: string; -} -export interface BatchSequenceAminoMsg { - type: "/regen.ecocredit.v1.BatchSequence"; - value: BatchSequenceAmino; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceSDKType { - project_key: bigint; - next_sequence: bigint; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalance { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batchKey: bigint; - /** address is the address of the account that owns the credits. */ - address: Uint8Array; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalance"; - value: Uint8Array; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batch_key?: string; - /** address is the address of the account that owns the credits. */ - address?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceAminoMsg { - type: "/regen.ecocredit.v1.BatchBalance"; - value: BatchBalanceAmino; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceSDKType { - batch_key: bigint; - address: Uint8Array; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupply { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batchKey: bigint; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradableAmount: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retiredAmount: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelledAmount: string; -} -export interface BatchSupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSupply"; - value: Uint8Array; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplyAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batch_key?: string; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradable_amount?: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retired_amount?: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelled_amount?: string; -} -export interface BatchSupplyAminoMsg { - type: "/regen.ecocredit.v1.BatchSupply"; - value: BatchSupplyAmino; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplySDKType { - batch_key: bigint; - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndex { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - classKey: bigint; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source: string; -} -export interface OriginTxIndexProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex"; - value: Uint8Array; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexAmino { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - class_key?: string; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source?: string; -} -export interface OriginTxIndexAminoMsg { - type: "/regen.ecocredit.v1.OriginTxIndex"; - value: OriginTxIndexAmino; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexSDKType { - class_key: bigint; - id: string; - source: string; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContract { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batchKey: bigint; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - classKey: bigint; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract: string; -} -export interface BatchContractProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchContract"; - value: Uint8Array; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batch_key?: string; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - class_key?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract?: string; -} -export interface BatchContractAminoMsg { - type: "/regen.ecocredit.v1.BatchContract"; - value: BatchContractAmino; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractSDKType { - batch_key: bigint; - class_key: bigint; - contract: string; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlist { - /** enabled is whether or not the allow list is enabled. */ - enabled: boolean; -} -export interface ClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistAmino { - /** enabled is whether or not the allow list is enabled. */ - enabled?: boolean; -} -export interface ClassCreatorAllowlistAminoMsg { - type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: ClassCreatorAllowlistAmino; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistSDKType { - enabled: boolean; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreator { - /** address is the address that is allowed to create credit classes */ - address: Uint8Array; -} -export interface AllowedClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator"; - value: Uint8Array; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorAmino { - /** address is the address that is allowed to create credit classes */ - address?: string; -} -export interface AllowedClassCreatorAminoMsg { - type: "/regen.ecocredit.v1.AllowedClassCreator"; - value: AllowedClassCreatorAmino; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorSDKType { - address: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFee { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface ClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassFee"; - value: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface ClassFeeAminoMsg { - type: "/regen.ecocredit.v1.ClassFee"; - value: ClassFeeAmino; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeSDKType { - fee?: CoinSDKType; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChain { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chainName: string; -} -export interface AllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: Uint8Array; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainAmino { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chain_name?: string; -} -export interface AllowedBridgeChainAminoMsg { - type: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: AllowedBridgeChainAmino; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainSDKType { - chain_name: string; -} -function createBaseCreditType(): CreditType { - return { - abbreviation: "", - name: "", - unit: "", - precision: 0 - }; -} -export const CreditType = { - typeUrl: "/regen.ecocredit.v1.CreditType", - encode(message: CreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CreditType { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CreditType { - return { - abbreviation: isSet(object.abbreviation) ? String(object.abbreviation) : "", - name: isSet(object.name) ? String(object.name) : "", - unit: isSet(object.unit) ? String(object.unit) : "", - precision: isSet(object.precision) ? Number(object.precision) : 0 - }; - }, - toJSON(message: CreditType): unknown { - const obj: any = {}; - message.abbreviation !== undefined && (obj.abbreviation = message.abbreviation); - message.name !== undefined && (obj.name = message.name); - message.unit !== undefined && (obj.unit = message.unit); - message.precision !== undefined && (obj.precision = Math.round(message.precision)); - return obj; - }, - fromPartial(object: Partial): CreditType { - const message = createBaseCreditType(); - message.abbreviation = object.abbreviation ?? ""; - message.name = object.name ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object: CreditTypeAmino): CreditType { - const message = createBaseCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message: CreditType): CreditTypeAmino { - const obj: any = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.name = message.name === "" ? undefined : message.name; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object: CreditTypeAminoMsg): CreditType { - return CreditType.fromAmino(object.value); - }, - fromProtoMsg(message: CreditTypeProtoMsg): CreditType { - return CreditType.decode(message.value); - }, - toProto(message: CreditType): Uint8Array { - return CreditType.encode(message).finish(); - }, - toProtoMsg(message: CreditType): CreditTypeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.CreditType", - value: CreditType.encode(message).finish() - }; - } -}; -function createBaseClass(): Class { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - metadata: "", - creditTypeAbbrev: "" - }; -} -export const Class = { - typeUrl: "/regen.ecocredit.v1.Class", - encode(message: Class, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Class { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Class { - return { - key: isSet(object.key) ? BigInt(object.key.toString()) : BigInt(0), - id: isSet(object.id) ? String(object.id) : "", - admin: isSet(object.admin) ? bytesFromBase64(object.admin) : new Uint8Array(), - metadata: isSet(object.metadata) ? String(object.metadata) : "", - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "" - }; - }, - toJSON(message: Class): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = (message.key || BigInt(0)).toString()); - message.id !== undefined && (obj.id = message.id); - message.admin !== undefined && (obj.admin = base64FromBytes(message.admin !== undefined ? message.admin : new Uint8Array())); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - return obj; - }, - fromPartial(object: Partial): Class { - const message = createBaseClass(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object: ClassAmino): Class { - const message = createBaseClass(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = bytesFromBase64(object.admin); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message: Class): ClassAmino { - const obj: any = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object: ClassAminoMsg): Class { - return Class.fromAmino(object.value); - }, - fromProtoMsg(message: ClassProtoMsg): Class { - return Class.decode(message.value); - }, - toProto(message: Class): Uint8Array { - return Class.encode(message).finish(); - }, - toProtoMsg(message: Class): ClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Class", - value: Class.encode(message).finish() - }; - } -}; -function createBaseClassIssuer(): ClassIssuer { - return { - classKey: BigInt(0), - issuer: new Uint8Array() - }; -} -export const ClassIssuer = { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - encode(message: ClassIssuer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassIssuer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassIssuer { - return { - classKey: isSet(object.classKey) ? BigInt(object.classKey.toString()) : BigInt(0), - issuer: isSet(object.issuer) ? bytesFromBase64(object.issuer) : new Uint8Array() - }; - }, - toJSON(message: ClassIssuer): unknown { - const obj: any = {}; - message.classKey !== undefined && (obj.classKey = (message.classKey || BigInt(0)).toString()); - message.issuer !== undefined && (obj.issuer = base64FromBytes(message.issuer !== undefined ? message.issuer : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ClassIssuer { - const message = createBaseClassIssuer(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - return message; - }, - fromAmino(object: ClassIssuerAmino): ClassIssuer { - const message = createBaseClassIssuer(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = bytesFromBase64(object.issuer); - } - return message; - }, - toAmino(message: ClassIssuer): ClassIssuerAmino { - const obj: any = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; - return obj; - }, - fromAminoMsg(object: ClassIssuerAminoMsg): ClassIssuer { - return ClassIssuer.fromAmino(object.value); - }, - fromProtoMsg(message: ClassIssuerProtoMsg): ClassIssuer { - return ClassIssuer.decode(message.value); - }, - toProto(message: ClassIssuer): Uint8Array { - return ClassIssuer.encode(message).finish(); - }, - toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - value: ClassIssuer.encode(message).finish() - }; - } -}; -function createBaseProject(): Project { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - classKey: BigInt(0), - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -export const Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message: Project, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(32).uint64(message.classKey); - } - if (message.jurisdiction !== "") { - writer.uint32(42).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(50).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(58).string(message.referenceId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Project { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.classKey = reader.uint64(); - break; - case 5: - message.jurisdiction = reader.string(); - break; - case 6: - message.metadata = reader.string(); - break; - case 7: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Project { - return { - key: isSet(object.key) ? BigInt(object.key.toString()) : BigInt(0), - id: isSet(object.id) ? String(object.id) : "", - admin: isSet(object.admin) ? bytesFromBase64(object.admin) : new Uint8Array(), - classKey: isSet(object.classKey) ? BigInt(object.classKey.toString()) : BigInt(0), - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - referenceId: isSet(object.referenceId) ? String(object.referenceId) : "" - }; - }, - toJSON(message: Project): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = (message.key || BigInt(0)).toString()); - message.id !== undefined && (obj.id = message.id); - message.admin !== undefined && (obj.admin = base64FromBytes(message.admin !== undefined ? message.admin : new Uint8Array())); - message.classKey !== undefined && (obj.classKey = (message.classKey || BigInt(0)).toString()); - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.referenceId !== undefined && (obj.referenceId = message.referenceId); - return obj; - }, - fromPartial(object: Partial): Project { - const message = createBaseProject(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object: ProjectAmino): Project { - const message = createBaseProject(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = bytesFromBase64(object.admin); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message: Project): ProjectAmino { - const obj: any = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object: ProjectAminoMsg): Project { - return Project.fromAmino(object.value); - }, - fromProtoMsg(message: ProjectProtoMsg): Project { - return Project.decode(message.value); - }, - toProto(message: Project): Uint8Array { - return Project.encode(message).finish(); - }, - toProtoMsg(message: Project): ProjectProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: Project.encode(message).finish() - }; - } -}; -function createBaseBatch(): Batch { - return { - key: BigInt(0), - issuer: new Uint8Array(), - projectKey: BigInt(0), - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -export const Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message: Batch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - if (message.projectKey !== BigInt(0)) { - writer.uint32(24).uint64(message.projectKey); - } - if (message.denom !== "") { - writer.uint32(34).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(50).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(58).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - Timestamp.encode(message.issuanceDate, writer.uint32(66).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(72).bool(message.open); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Batch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - case 3: - message.projectKey = reader.uint64(); - break; - case 4: - message.denom = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.issuanceDate = Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Batch { - return { - key: isSet(object.key) ? BigInt(object.key.toString()) : BigInt(0), - issuer: isSet(object.issuer) ? bytesFromBase64(object.issuer) : new Uint8Array(), - projectKey: isSet(object.projectKey) ? BigInt(object.projectKey.toString()) : BigInt(0), - denom: isSet(object.denom) ? String(object.denom) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - issuanceDate: isSet(object.issuanceDate) ? fromJsonTimestamp(object.issuanceDate) : undefined, - open: isSet(object.open) ? Boolean(object.open) : false - }; - }, - toJSON(message: Batch): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = (message.key || BigInt(0)).toString()); - message.issuer !== undefined && (obj.issuer = base64FromBytes(message.issuer !== undefined ? message.issuer : new Uint8Array())); - message.projectKey !== undefined && (obj.projectKey = (message.projectKey || BigInt(0)).toString()); - message.denom !== undefined && (obj.denom = message.denom); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.issuanceDate !== undefined && (obj.issuanceDate = fromTimestamp(message.issuanceDate).toISOString()); - message.open !== undefined && (obj.open = message.open); - return obj; - }, - fromPartial(object: Partial): Batch { - const message = createBaseBatch(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.issuanceDate = object.issuanceDate !== undefined && object.issuanceDate !== null ? Timestamp.fromPartial(object.issuanceDate) : undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object: BatchAmino): Batch { - const message = createBaseBatch(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = bytesFromBase64(object.issuer); - } - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = Timestamp.fromAmino(object.issuance_date); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message: Batch): BatchAmino { - const obj: any = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(message.issuanceDate) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object: BatchAminoMsg): Batch { - return Batch.fromAmino(object.value); - }, - fromProtoMsg(message: BatchProtoMsg): Batch { - return Batch.decode(message.value); - }, - toProto(message: Batch): Uint8Array { - return Batch.encode(message).finish(); - }, - toProtoMsg(message: Batch): BatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: Batch.encode(message).finish() - }; - } -}; -function createBaseClassSequence(): ClassSequence { - return { - creditTypeAbbrev: "", - nextSequence: BigInt(0) - }; -} -export const ClassSequence = { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - encode(message: ClassSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.creditTypeAbbrev !== "") { - writer.uint32(10).string(message.creditTypeAbbrev); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypeAbbrev = reader.string(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassSequence { - return { - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - nextSequence: isSet(object.nextSequence) ? BigInt(object.nextSequence.toString()) : BigInt(0) - }; - }, - toJSON(message: ClassSequence): unknown { - const obj: any = {}; - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - message.nextSequence !== undefined && (obj.nextSequence = (message.nextSequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ClassSequence { - const message = createBaseClassSequence(); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ClassSequenceAmino): ClassSequence { - const message = createBaseClassSequence(); - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message: ClassSequence): ClassSequenceAmino { - const obj: any = {}; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ClassSequenceAminoMsg): ClassSequence { - return ClassSequence.fromAmino(object.value); - }, - fromProtoMsg(message: ClassSequenceProtoMsg): ClassSequence { - return ClassSequence.decode(message.value); - }, - toProto(message: ClassSequence): Uint8Array { - return ClassSequence.encode(message).finish(); - }, - toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - value: ClassSequence.encode(message).finish() - }; - } -}; -function createBaseProjectSequence(): ProjectSequence { - return { - classKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -export const ProjectSequence = { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - encode(message: ProjectSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProjectSequence { - return { - classKey: isSet(object.classKey) ? BigInt(object.classKey.toString()) : BigInt(0), - nextSequence: isSet(object.nextSequence) ? BigInt(object.nextSequence.toString()) : BigInt(0) - }; - }, - toJSON(message: ProjectSequence): unknown { - const obj: any = {}; - message.classKey !== undefined && (obj.classKey = (message.classKey || BigInt(0)).toString()); - message.nextSequence !== undefined && (obj.nextSequence = (message.nextSequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ProjectSequence { - const message = createBaseProjectSequence(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ProjectSequenceAmino): ProjectSequence { - const message = createBaseProjectSequence(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message: ProjectSequence): ProjectSequenceAmino { - const obj: any = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ProjectSequenceAminoMsg): ProjectSequence { - return ProjectSequence.fromAmino(object.value); - }, - fromProtoMsg(message: ProjectSequenceProtoMsg): ProjectSequence { - return ProjectSequence.decode(message.value); - }, - toProto(message: ProjectSequence): Uint8Array { - return ProjectSequence.encode(message).finish(); - }, - toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - value: ProjectSequence.encode(message).finish() - }; - } -}; -function createBaseBatchSequence(): BatchSequence { - return { - projectKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -export const BatchSequence = { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - encode(message: BatchSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectKey !== BigInt(0)) { - writer.uint32(8).uint64(message.projectKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchSequence { - return { - projectKey: isSet(object.projectKey) ? BigInt(object.projectKey.toString()) : BigInt(0), - nextSequence: isSet(object.nextSequence) ? BigInt(object.nextSequence.toString()) : BigInt(0) - }; - }, - toJSON(message: BatchSequence): unknown { - const obj: any = {}; - message.projectKey !== undefined && (obj.projectKey = (message.projectKey || BigInt(0)).toString()); - message.nextSequence !== undefined && (obj.nextSequence = (message.nextSequence || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BatchSequence { - const message = createBaseBatchSequence(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BatchSequenceAmino): BatchSequence { - const message = createBaseBatchSequence(); - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message: BatchSequence): BatchSequenceAmino { - const obj: any = {}; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BatchSequenceAminoMsg): BatchSequence { - return BatchSequence.fromAmino(object.value); - }, - fromProtoMsg(message: BatchSequenceProtoMsg): BatchSequence { - return BatchSequence.decode(message.value); - }, - toProto(message: BatchSequence): Uint8Array { - return BatchSequence.encode(message).finish(); - }, - toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - value: BatchSequence.encode(message).finish() - }; - } -}; -function createBaseBatchBalance(): BatchBalance { - return { - batchKey: BigInt(0), - address: new Uint8Array(), - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -export const BatchBalance = { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - encode(message: BatchBalance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.address.length !== 0) { - writer.uint32(18).bytes(message.address); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.address = reader.bytes(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchBalance { - return { - batchKey: isSet(object.batchKey) ? BigInt(object.batchKey.toString()) : BigInt(0), - address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(), - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - escrowedAmount: isSet(object.escrowedAmount) ? String(object.escrowedAmount) : "" - }; - }, - toJSON(message: BatchBalance): unknown { - const obj: any = {}; - message.batchKey !== undefined && (obj.batchKey = (message.batchKey || BigInt(0)).toString()); - message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array())); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.escrowedAmount !== undefined && (obj.escrowedAmount = message.escrowedAmount); - return obj; - }, - fromPartial(object: Partial): BatchBalance { - const message = createBaseBatchBalance(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.address = object.address ?? new Uint8Array(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object: BatchBalanceAmino): BatchBalance { - const message = createBaseBatchBalance(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message: BatchBalance): BatchBalanceAmino { - const obj: any = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object: BatchBalanceAminoMsg): BatchBalance { - return BatchBalance.fromAmino(object.value); - }, - fromProtoMsg(message: BatchBalanceProtoMsg): BatchBalance { - return BatchBalance.decode(message.value); - }, - toProto(message: BatchBalance): Uint8Array { - return BatchBalance.encode(message).finish(); - }, - toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - value: BatchBalance.encode(message).finish() - }; - } -}; -function createBaseBatchSupply(): BatchSupply { - return { - batchKey: BigInt(0), - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -export const BatchSupply = { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - encode(message: BatchSupply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(34).string(message.cancelledAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchSupply { - return { - batchKey: isSet(object.batchKey) ? BigInt(object.batchKey.toString()) : BigInt(0), - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - cancelledAmount: isSet(object.cancelledAmount) ? String(object.cancelledAmount) : "" - }; - }, - toJSON(message: BatchSupply): unknown { - const obj: any = {}; - message.batchKey !== undefined && (obj.batchKey = (message.batchKey || BigInt(0)).toString()); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.cancelledAmount !== undefined && (obj.cancelledAmount = message.cancelledAmount); - return obj; - }, - fromPartial(object: Partial): BatchSupply { - const message = createBaseBatchSupply(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object: BatchSupplyAmino): BatchSupply { - const message = createBaseBatchSupply(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message: BatchSupply): BatchSupplyAmino { - const obj: any = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object: BatchSupplyAminoMsg): BatchSupply { - return BatchSupply.fromAmino(object.value); - }, - fromProtoMsg(message: BatchSupplyProtoMsg): BatchSupply { - return BatchSupply.decode(message.value); - }, - toProto(message: BatchSupply): Uint8Array { - return BatchSupply.encode(message).finish(); - }, - toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - value: BatchSupply.encode(message).finish() - }; - } -}; -function createBaseOriginTxIndex(): OriginTxIndex { - return { - classKey: BigInt(0), - id: "", - source: "" - }; -} -export const OriginTxIndex = { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - encode(message: OriginTxIndex, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.source !== "") { - writer.uint32(26).string(message.source); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTxIndex(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.source = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): OriginTxIndex { - return { - classKey: isSet(object.classKey) ? BigInt(object.classKey.toString()) : BigInt(0), - id: isSet(object.id) ? String(object.id) : "", - source: isSet(object.source) ? String(object.source) : "" - }; - }, - toJSON(message: OriginTxIndex): unknown { - const obj: any = {}; - message.classKey !== undefined && (obj.classKey = (message.classKey || BigInt(0)).toString()); - message.id !== undefined && (obj.id = message.id); - message.source !== undefined && (obj.source = message.source); - return obj; - }, - fromPartial(object: Partial): OriginTxIndex { - const message = createBaseOriginTxIndex(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - return message; - }, - fromAmino(object: OriginTxIndexAmino): OriginTxIndex { - const message = createBaseOriginTxIndex(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - return message; - }, - toAmino(message: OriginTxIndex): OriginTxIndexAmino { - const obj: any = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - return obj; - }, - fromAminoMsg(object: OriginTxIndexAminoMsg): OriginTxIndex { - return OriginTxIndex.fromAmino(object.value); - }, - fromProtoMsg(message: OriginTxIndexProtoMsg): OriginTxIndex { - return OriginTxIndex.decode(message.value); - }, - toProto(message: OriginTxIndex): Uint8Array { - return OriginTxIndex.encode(message).finish(); - }, - toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - value: OriginTxIndex.encode(message).finish() - }; - } -}; -function createBaseBatchContract(): BatchContract { - return { - batchKey: BigInt(0), - classKey: BigInt(0), - contract: "" - }; -} -export const BatchContract = { - typeUrl: "/regen.ecocredit.v1.BatchContract", - encode(message: BatchContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(16).uint64(message.classKey); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchContract { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchContract(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.classKey = reader.uint64(); - break; - case 3: - message.contract = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchContract { - return { - batchKey: isSet(object.batchKey) ? BigInt(object.batchKey.toString()) : BigInt(0), - classKey: isSet(object.classKey) ? BigInt(object.classKey.toString()) : BigInt(0), - contract: isSet(object.contract) ? String(object.contract) : "" - }; - }, - toJSON(message: BatchContract): unknown { - const obj: any = {}; - message.batchKey !== undefined && (obj.batchKey = (message.batchKey || BigInt(0)).toString()); - message.classKey !== undefined && (obj.classKey = (message.classKey || BigInt(0)).toString()); - message.contract !== undefined && (obj.contract = message.contract); - return obj; - }, - fromPartial(object: Partial): BatchContract { - const message = createBaseBatchContract(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.contract = object.contract ?? ""; - return message; - }, - fromAmino(object: BatchContractAmino): BatchContract { - const message = createBaseBatchContract(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - return message; - }, - toAmino(message: BatchContract): BatchContractAmino { - const obj: any = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.contract = message.contract === "" ? undefined : message.contract; - return obj; - }, - fromAminoMsg(object: BatchContractAminoMsg): BatchContract { - return BatchContract.fromAmino(object.value); - }, - fromProtoMsg(message: BatchContractProtoMsg): BatchContract { - return BatchContract.decode(message.value); - }, - toProto(message: BatchContract): Uint8Array { - return BatchContract.encode(message).finish(); - }, - toProtoMsg(message: BatchContract): BatchContractProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchContract", - value: BatchContract.encode(message).finish() - }; - } -}; -function createBaseClassCreatorAllowlist(): ClassCreatorAllowlist { - return { - enabled: false - }; -} -export const ClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - encode(message: ClassCreatorAllowlist, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassCreatorAllowlist { - return { - enabled: isSet(object.enabled) ? Boolean(object.enabled) : false - }; - }, - toJSON(message: ClassCreatorAllowlist): unknown { - const obj: any = {}; - message.enabled !== undefined && (obj.enabled = message.enabled); - return obj; - }, - fromPartial(object: Partial): ClassCreatorAllowlist { - const message = createBaseClassCreatorAllowlist(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object: ClassCreatorAllowlistAmino): ClassCreatorAllowlist { - const message = createBaseClassCreatorAllowlist(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message: ClassCreatorAllowlist): ClassCreatorAllowlistAmino { - const obj: any = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object: ClassCreatorAllowlistAminoMsg): ClassCreatorAllowlist { - return ClassCreatorAllowlist.fromAmino(object.value); - }, - fromProtoMsg(message: ClassCreatorAllowlistProtoMsg): ClassCreatorAllowlist { - return ClassCreatorAllowlist.decode(message.value); - }, - toProto(message: ClassCreatorAllowlist): Uint8Array { - return ClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - value: ClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseAllowedClassCreator(): AllowedClassCreator { - return { - address: new Uint8Array() - }; -} -export const AllowedClassCreator = { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - encode(message: AllowedClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowedClassCreator { - return { - address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array() - }; - }, - toJSON(message: AllowedClassCreator): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): AllowedClassCreator { - const message = createBaseAllowedClassCreator(); - message.address = object.address ?? new Uint8Array(); - return message; - }, - fromAmino(object: AllowedClassCreatorAmino): AllowedClassCreator { - const message = createBaseAllowedClassCreator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - return message; - }, - toAmino(message: AllowedClassCreator): AllowedClassCreatorAmino { - const obj: any = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - return obj; - }, - fromAminoMsg(object: AllowedClassCreatorAminoMsg): AllowedClassCreator { - return AllowedClassCreator.fromAmino(object.value); - }, - fromProtoMsg(message: AllowedClassCreatorProtoMsg): AllowedClassCreator { - return AllowedClassCreator.decode(message.value); - }, - toProto(message: AllowedClassCreator): Uint8Array { - return AllowedClassCreator.encode(message).finish(); - }, - toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - value: AllowedClassCreator.encode(message).finish() - }; - } -}; -function createBaseClassFee(): ClassFee { - return { - fee: undefined - }; -} -export const ClassFee = { - typeUrl: "/regen.ecocredit.v1.ClassFee", - encode(message: ClassFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassFee { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassFee { - return { - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: ClassFee): unknown { - const obj: any = {}; - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): ClassFee { - const message = createBaseClassFee(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: ClassFeeAmino): ClassFee { - const message = createBaseClassFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: ClassFee): ClassFeeAmino { - const obj: any = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: ClassFeeAminoMsg): ClassFee { - return ClassFee.fromAmino(object.value); - }, - fromProtoMsg(message: ClassFeeProtoMsg): ClassFee { - return ClassFee.decode(message.value); - }, - toProto(message: ClassFee): Uint8Array { - return ClassFee.encode(message).finish(); - }, - toProtoMsg(message: ClassFee): ClassFeeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.ClassFee", - value: ClassFee.encode(message).finish() - }; - } -}; -function createBaseAllowedBridgeChain(): AllowedBridgeChain { - return { - chainName: "" - }; -} -export const AllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - encode(message: AllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.chainName !== "") { - writer.uint32(10).string(message.chainName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowedBridgeChain { - return { - chainName: isSet(object.chainName) ? String(object.chainName) : "" - }; - }, - toJSON(message: AllowedBridgeChain): unknown { - const obj: any = {}; - message.chainName !== undefined && (obj.chainName = message.chainName); - return obj; - }, - fromPartial(object: Partial): AllowedBridgeChain { - const message = createBaseAllowedBridgeChain(); - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object: AllowedBridgeChainAmino): AllowedBridgeChain { - const message = createBaseAllowedBridgeChain(); - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message: AllowedBridgeChain): AllowedBridgeChainAmino { - const obj: any = {}; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object: AllowedBridgeChainAminoMsg): AllowedBridgeChain { - return AllowedBridgeChain.fromAmino(object.value); - }, - fromProtoMsg(message: AllowedBridgeChainProtoMsg): AllowedBridgeChain { - return AllowedBridgeChain.decode(message.value); - }, - toProto(message: AllowedBridgeChain): Uint8Array { - return AllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message: AllowedBridgeChain): AllowedBridgeChainProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - value: AllowedBridgeChain.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/tx.amino.ts b/packages/api/src/codegen/regen/ecocredit/v1/tx.amino.ts deleted file mode 100644 index fab780c2..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/tx.amino.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: "regen/MsgCreateClass", - toAmino: MsgCreateClass.toAmino, - fromAmino: MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: "regen/MsgCreateProject", - toAmino: MsgCreateProject.toAmino, - fromAmino: MsgCreateProject.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: "regen/MsgCreateBatch", - toAmino: MsgCreateBatch.toAmino, - fromAmino: MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: "regen/MsgMintBatchCredits", - toAmino: MsgMintBatchCredits.toAmino, - fromAmino: MsgMintBatchCredits.fromAmino - }, - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: "regen/MsgSealBatch", - toAmino: MsgSealBatch.toAmino, - fromAmino: MsgSealBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgSend": { - aminoType: "regen/MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/regen.ecocredit.v1.MsgRetire": { - aminoType: "regen/MsgRetire", - toAmino: MsgRetire.toAmino, - fromAmino: MsgRetire.fromAmino - }, - "/regen.ecocredit.v1.MsgCancel": { - aminoType: "regen/MsgCancel", - toAmino: MsgCancel.toAmino, - fromAmino: MsgCancel.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: "regen/MsgUpdateClassAdmin", - toAmino: MsgUpdateClassAdmin.toAmino, - fromAmino: MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: "regen/MsgUpdateClassIssuers", - toAmino: MsgUpdateClassIssuers.toAmino, - fromAmino: MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: "regen/MsgUpdateClassMetadata", - toAmino: MsgUpdateClassMetadata.toAmino, - fromAmino: MsgUpdateClassMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: "regen/MsgUpdateProjectAdmin", - toAmino: MsgUpdateProjectAdmin.toAmino, - fromAmino: MsgUpdateProjectAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: "regen/MsgUpdateProjectMetadata", - toAmino: MsgUpdateProjectMetadata.toAmino, - fromAmino: MsgUpdateProjectMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: "regen/MsgUpdateBatchMetadata", - toAmino: MsgUpdateBatchMetadata.toAmino, - fromAmino: MsgUpdateBatchMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgBridge": { - aminoType: "regen/MsgBridge", - toAmino: MsgBridge.toAmino, - fromAmino: MsgBridge.fromAmino - }, - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: "regen/MsgBridgeReceive", - toAmino: MsgBridgeReceive.toAmino, - fromAmino: MsgBridgeReceive.fromAmino - }, - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: "regen/MsgAddCreditType", - toAmino: MsgAddCreditType.toAmino, - fromAmino: MsgAddCreditType.fromAmino - }, - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: "regen/MsgSetClassCreatorAllowlist", - toAmino: MsgSetClassCreatorAllowlist.toAmino, - fromAmino: MsgSetClassCreatorAllowlist.fromAmino - }, - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: "regen/MsgAddClassCreator", - toAmino: MsgAddClassCreator.toAmino, - fromAmino: MsgAddClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: "regen/MsgRemoveClassCreator", - toAmino: MsgRemoveClassCreator.toAmino, - fromAmino: MsgRemoveClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: "regen/MsgUpdateClassFee", - toAmino: MsgUpdateClassFee.toAmino, - fromAmino: MsgUpdateClassFee.fromAmino - }, - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: "regen/MsgAddAllowedBridgeChain", - toAmino: MsgAddAllowedBridgeChain.toAmino, - fromAmino: MsgAddAllowedBridgeChain.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: "regen/MsgRemoveAllowedBridgeChain", - toAmino: MsgRemoveAllowedBridgeChain.toAmino, - fromAmino: MsgRemoveAllowedBridgeChain.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/tx.registry.ts b/packages/api/src/codegen/regen/ecocredit/v1/tx.registry.ts deleted file mode 100644 index 661ffd4e..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/tx.registry.ts +++ /dev/null @@ -1,710 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.v1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", MsgSend], ["/regen.ecocredit.v1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", MsgRemoveAllowedBridgeChain]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.encode(value).finish() - }; - }, - createProject(value: MsgCreateProject) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.encode(value).finish() - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.encode(value).finish() - }; - }, - mintBatchCredits(value: MsgMintBatchCredits) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.encode(value).finish() - }; - }, - sealBatch(value: MsgSealBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.encode(value).finish() - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.encode(value).finish() - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(value).finish() - }; - }, - updateProjectAdmin(value: MsgUpdateProjectAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.encode(value).finish() - }; - }, - updateProjectMetadata(value: MsgUpdateProjectMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.encode(value).finish() - }; - }, - updateBatchMetadata(value: MsgUpdateBatchMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.encode(value).finish() - }; - }, - bridge(value: MsgBridge) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.encode(value).finish() - }; - }, - bridgeReceive(value: MsgBridgeReceive) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.encode(value).finish() - }; - }, - addCreditType(value: MsgAddCreditType) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.encode(value).finish() - }; - }, - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.encode(value).finish() - }; - }, - addClassCreator(value: MsgAddClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.encode(value).finish() - }; - }, - removeClassCreator(value: MsgRemoveClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.encode(value).finish() - }; - }, - updateClassFee(value: MsgUpdateClassFee) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.encode(value).finish() - }; - }, - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.encode(value).finish() - }; - }, - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value - }; - }, - createProject(value: MsgCreateProject) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value - }; - }, - mintBatchCredits(value: MsgMintBatchCredits) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value - }; - }, - sealBatch(value: MsgSealBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value - }; - }, - updateProjectAdmin(value: MsgUpdateProjectAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value - }; - }, - updateProjectMetadata(value: MsgUpdateProjectMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value - }; - }, - updateBatchMetadata(value: MsgUpdateBatchMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value - }; - }, - bridge(value: MsgBridge) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value - }; - }, - bridgeReceive(value: MsgBridgeReceive) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value - }; - }, - addCreditType(value: MsgAddCreditType) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value - }; - }, - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value - }; - }, - addClassCreator(value: MsgAddClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value - }; - }, - removeClassCreator(value: MsgRemoveClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value - }; - }, - updateClassFee(value: MsgUpdateClassFee) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value - }; - }, - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value - }; - }, - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value - }; - } - }, - toJSON: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.toJSON(value) - }; - }, - createProject(value: MsgCreateProject) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.toJSON(value) - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.toJSON(value) - }; - }, - mintBatchCredits(value: MsgMintBatchCredits) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.toJSON(value) - }; - }, - sealBatch(value: MsgSealBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.toJSON(value) - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.toJSON(value) - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.toJSON(value) - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.toJSON(value) - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.toJSON(value) - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.toJSON(value) - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.toJSON(value) - }; - }, - updateProjectAdmin(value: MsgUpdateProjectAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.toJSON(value) - }; - }, - updateProjectMetadata(value: MsgUpdateProjectMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.toJSON(value) - }; - }, - updateBatchMetadata(value: MsgUpdateBatchMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.toJSON(value) - }; - }, - bridge(value: MsgBridge) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.toJSON(value) - }; - }, - bridgeReceive(value: MsgBridgeReceive) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.toJSON(value) - }; - }, - addCreditType(value: MsgAddCreditType) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.toJSON(value) - }; - }, - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.toJSON(value) - }; - }, - addClassCreator(value: MsgAddClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.toJSON(value) - }; - }, - removeClassCreator(value: MsgRemoveClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.toJSON(value) - }; - }, - updateClassFee(value: MsgUpdateClassFee) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.toJSON(value) - }; - }, - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.toJSON(value) - }; - }, - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.toJSON(value) - }; - } - }, - fromJSON: { - createClass(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.fromJSON(value) - }; - }, - createProject(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.fromJSON(value) - }; - }, - createBatch(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.fromJSON(value) - }; - }, - mintBatchCredits(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.fromJSON(value) - }; - }, - sealBatch(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.fromJSON(value) - }; - }, - send(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.fromJSON(value) - }; - }, - retire(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.fromJSON(value) - }; - }, - cancel(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.fromJSON(value) - }; - }, - updateClassAdmin(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromJSON(value) - }; - }, - updateClassIssuers(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromJSON(value) - }; - }, - updateClassMetadata(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromJSON(value) - }; - }, - updateProjectAdmin(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.fromJSON(value) - }; - }, - updateProjectMetadata(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.fromJSON(value) - }; - }, - updateBatchMetadata(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.fromJSON(value) - }; - }, - bridge(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.fromJSON(value) - }; - }, - bridgeReceive(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.fromJSON(value) - }; - }, - addCreditType(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.fromJSON(value) - }; - }, - setClassCreatorAllowlist(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.fromJSON(value) - }; - }, - addClassCreator(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.fromJSON(value) - }; - }, - removeClassCreator(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.fromJSON(value) - }; - }, - updateClassFee(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.fromJSON(value) - }; - }, - addAllowedBridgeChain(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.fromJSON(value) - }; - }, - removeAllowedBridgeChain(value: any) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.fromJSON(value) - }; - } - }, - fromPartial: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.fromPartial(value) - }; - }, - createProject(value: MsgCreateProject) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.fromPartial(value) - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.fromPartial(value) - }; - }, - mintBatchCredits(value: MsgMintBatchCredits) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.fromPartial(value) - }; - }, - sealBatch(value: MsgSealBatch) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.fromPartial(value) - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.fromPartial(value) - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromPartial(value) - }; - }, - updateProjectAdmin(value: MsgUpdateProjectAdmin) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.fromPartial(value) - }; - }, - updateProjectMetadata(value: MsgUpdateProjectMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.fromPartial(value) - }; - }, - updateBatchMetadata(value: MsgUpdateBatchMetadata) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.fromPartial(value) - }; - }, - bridge(value: MsgBridge) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.fromPartial(value) - }; - }, - bridgeReceive(value: MsgBridgeReceive) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.fromPartial(value) - }; - }, - addCreditType(value: MsgAddCreditType) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.fromPartial(value) - }; - }, - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.fromPartial(value) - }; - }, - addClassCreator(value: MsgAddClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.fromPartial(value) - }; - }, - removeClassCreator(value: MsgRemoveClassCreator) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.fromPartial(value) - }; - }, - updateClassFee(value: MsgUpdateClassFee) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.fromPartial(value) - }; - }, - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.fromPartial(value) - }; - }, - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/ecocredit/v1/tx.rpc.msg.ts deleted file mode 100644 index e97311dd..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,320 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class under the given credit type with an - * approved list of issuers and optional metadata. If the class fee parameter - * is set, the fee field must be populated with equal value. A greater fee can - * be provided, however, the creator will only be charged the amount specified - * in the fee parameter. The creator of the credit class becomes the admin of - * the credit class upon creation. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateProject creates a new project under the given credit class with a - * jurisdiction, optional metadata, and an optional reference ID. The creator - * of the project must be an approved credit class issuer for the given credit - * class. The creator becomes the admin of the project upon creation. - */ - createProject(request: MsgCreateProject): Promise; - /** - * CreateBatch creates a new batch of credits under the given project with a - * start and end date representing the monitoring period, a list of credits to - * be issued with each issuance specifying a recipient, the amount of tradable - * and retired credits, and the retirement jurisdiction (if credits are to be - * retired upon receipt), and optional metadata. The credit batch creator must - * be listed as an approved issuer within the credit class of the project that - * the credits are being issued under. - * - * The default behavior is for a new credit batch to be "sealed" as opposed to - * being "open". When a credit batch is "open", new credits can be dynamically - * minted to the credit batch following the creation of the credit batch. This - * "open" option should only be set to true when bridging credits from another - * chain or registry as a result of a bridge operation and is not intended for - * native credit issuance. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * MintBatchCredits dynamically mints credits to an "open" credit batch. This - * feature is only meant to be used when bridging credits from another chain - * or registry and is not intended for native credit issuance. When bridging - * credits from the same vintage (or monitoring period) as an existing credit - * batch, the credits can be dynamically minted to the existing credit batch - * if the credit batch is "open". - */ - mintBatchCredits(request: MsgMintBatchCredits): Promise; - /** - * MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed - * (i.e. once "open" is set to false), credits can no longer be dynamically - * minted to the credit batch. A sealed credit batch cannot be unsealed and - * only the credit batch issuer can seal a credit batch. - */ - sealBatch(request: MsgSealBatch): Promise; - /** - * Send sends a specified amount of tradable credits from the credit owner's - * account to another account. Sent credits can either remain tradable or be - * retired upon receipt. - */ - send(request: MsgSend): Promise; - /** - * Retire retires a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and adding it to their retired - * balance. Retiring credits is permanent and implies the credits are being - * consumed as a offset. - */ - retire(request: MsgRetire): Promise; - /** - * Cancel cancels a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and removing the amount from the - * credit batch's tradable supply. Cancelling credits is permanent and implies - * the credits have been moved to another chain or registry. - */ - cancel(request: MsgCancel): Promise; - /** - * UpdateClassAdmin updates the credit class admin. Only the admin of the - * credit class can update the credit class. - */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** - * UpdateClassIssuers updates the credit class issuer list. Only the admin of - * the credit class can update the credit class. - */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** - * UpdateClassMetadata updates the credit class metadata. Only the admin of - * the credit class can update the credit class. - */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; - /** - * UpdateProjectAdmin updates the project admin address. Only the admin of the - * project can update the project. - */ - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; - /** - * UpdateProjectMetadata updates the project metadata. Only the admin of the - * project can update the project. - */ - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; - /** - * UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be - * updated and only the issuer of the batch can update the batch. - * - * Since Revision 2 - */ - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; - /** - * Bridge processes credits being sent back to the source chain. When credits - * are sent back to the source chain, the credits are cancelled and an event - * is emitted to be handled by an external bridge service. - */ - bridge(request: MsgBridge): Promise; - /** - * BridgeReceive processes credits being sent from another chain. When the - * credits are sent from the same vintage as an existing credit batch within - * the scope of the provided credit class, the credits will be minted to the - * existing credit batch, otherwise the credits will be issued in a new credit - * batch. The new credit batch will be created under an existing project if a - * project with a matching reference id already exists within the scope of the - * credit class, otherwise a new project will be created. - */ - bridgeReceive(request: MsgBridgeReceive): Promise; - /** - * AddCreditType is a governance method that allows the addition of new - * credit types to the network. - * - * Since Revision 2 - */ - addCreditType(request: MsgAddCreditType): Promise; - /** - * SetClassCreatorAllowlist is a governance method that updates the class - * creator allowlist enabled setting. When enabled, only addresses listed in - * the allowlist can create credit classes. When disabled, any address can - * create credit classes. - * - * Since Revision 2 - */ - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; - /** - * AddClassCreator is a governance method that allows the addition of a new - * address to the class creation allowlist. - * - * Since Revision 2 - */ - addClassCreator(request: MsgAddClassCreator): Promise; - /** - * RemoveClassCreator is a governance method that removes an - * address from the class creation allowlist. - * - * Since Revision 2 - */ - removeClassCreator(request: MsgRemoveClassCreator): Promise; - /** - * UpdateClassFee is a governance method that allows for updating the credit - * class creation fee. If no fee is specified in the request, the credit - * class creation fee will be removed and no fee will be required to create - * a credit class. - * - * Since Revision 2 - */ - updateClassFee(request: MsgUpdateClassFee): Promise; - /** - * AddAllowedBridgeChain is a governance method that allows for the - * addition of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; - /** - * RemoveAllowedBridgeChain is a governance method that allows for the - * removal of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createProject = this.createProject.bind(this); - this.createBatch = this.createBatch.bind(this); - this.mintBatchCredits = this.mintBatchCredits.bind(this); - this.sealBatch = this.sealBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - this.updateProjectAdmin = this.updateProjectAdmin.bind(this); - this.updateProjectMetadata = this.updateProjectMetadata.bind(this); - this.updateBatchMetadata = this.updateBatchMetadata.bind(this); - this.bridge = this.bridge.bind(this); - this.bridgeReceive = this.bridgeReceive.bind(this); - this.addCreditType = this.addCreditType.bind(this); - this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); - this.addClassCreator = this.addClassCreator.bind(this); - this.removeClassCreator = this.removeClassCreator.bind(this); - this.updateClassFee = this.updateClassFee.bind(this); - this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); - this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); - } - createClass(request: MsgCreateClass): Promise { - const data = MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); - return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); - } - createProject(request: MsgCreateProject): Promise { - const data = MsgCreateProject.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); - return promise.then(data => MsgCreateProjectResponse.decode(new BinaryReader(data))); - } - createBatch(request: MsgCreateBatch): Promise { - const data = MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); - return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); - } - mintBatchCredits(request: MsgMintBatchCredits): Promise { - const data = MsgMintBatchCredits.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); - return promise.then(data => MsgMintBatchCreditsResponse.decode(new BinaryReader(data))); - } - sealBatch(request: MsgSealBatch): Promise { - const data = MsgSealBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); - return promise.then(data => MsgSealBatchResponse.decode(new BinaryReader(data))); - } - send(request: MsgSend): Promise { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - retire(request: MsgRetire): Promise { - const data = MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); - return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); - } - cancel(request: MsgCancel): Promise { - const data = MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); - return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); - } - updateClassAdmin(request: MsgUpdateClassAdmin): Promise { - const data = MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); - return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); - } - updateClassIssuers(request: MsgUpdateClassIssuers): Promise { - const data = MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); - return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); - } - updateClassMetadata(request: MsgUpdateClassMetadata): Promise { - const data = MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); - return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); - } - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise { - const data = MsgUpdateProjectAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); - return promise.then(data => MsgUpdateProjectAdminResponse.decode(new BinaryReader(data))); - } - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise { - const data = MsgUpdateProjectMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); - return promise.then(data => MsgUpdateProjectMetadataResponse.decode(new BinaryReader(data))); - } - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise { - const data = MsgUpdateBatchMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); - return promise.then(data => MsgUpdateBatchMetadataResponse.decode(new BinaryReader(data))); - } - bridge(request: MsgBridge): Promise { - const data = MsgBridge.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); - return promise.then(data => MsgBridgeResponse.decode(new BinaryReader(data))); - } - bridgeReceive(request: MsgBridgeReceive): Promise { - const data = MsgBridgeReceive.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); - return promise.then(data => MsgBridgeReceiveResponse.decode(new BinaryReader(data))); - } - addCreditType(request: MsgAddCreditType): Promise { - const data = MsgAddCreditType.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); - return promise.then(data => MsgAddCreditTypeResponse.decode(new BinaryReader(data))); - } - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise { - const data = MsgSetClassCreatorAllowlist.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); - return promise.then(data => MsgSetClassCreatorAllowlistResponse.decode(new BinaryReader(data))); - } - addClassCreator(request: MsgAddClassCreator): Promise { - const data = MsgAddClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); - return promise.then(data => MsgAddClassCreatorResponse.decode(new BinaryReader(data))); - } - removeClassCreator(request: MsgRemoveClassCreator): Promise { - const data = MsgRemoveClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); - return promise.then(data => MsgRemoveClassCreatorResponse.decode(new BinaryReader(data))); - } - updateClassFee(request: MsgUpdateClassFee): Promise { - const data = MsgUpdateClassFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); - return promise.then(data => MsgUpdateClassFeeResponse.decode(new BinaryReader(data))); - } - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise { - const data = MsgAddAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); - return promise.then(data => MsgAddAllowedBridgeChainResponse.decode(new BinaryReader(data))); - } - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise { - const data = MsgRemoveAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); - return promise.then(data => MsgRemoveAllowedBridgeChainResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/tx.ts b/packages/api/src/codegen/regen/ecocredit/v1/tx.ts deleted file mode 100644 index 5721b2bc..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/tx.ts +++ /dev/null @@ -1,6223 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditType { - /** authority is the address of the governance account. */ - authority: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - creditType?: CreditType; -} -export interface MsgAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; - value: Uint8Array; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - credit_type?: CreditTypeAmino; -} -export interface MsgAddCreditTypeAminoMsg { - type: "regen/MsgAddCreditType"; - value: MsgAddCreditTypeAmino; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeSDKType { - authority: string; - credit_type?: CreditTypeSDKType; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponse {} -export interface MsgAddCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: Uint8Array; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseAmino {} -export interface MsgAddCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: MsgAddCreditTypeResponseAmino; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseSDKType {} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - creditTypeAbbrev: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: Coin; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin?: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers?: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - credit_type_abbrev?: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: CoinAmino; -} -export interface MsgCreateClassAminoMsg { - type: "regen/MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: string; - credit_type_abbrev: string; - fee?: CoinSDKType; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProject { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - classId: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - referenceId: string; -} -export interface MsgCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectAmino { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin?: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - class_id?: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata?: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - reference_id?: string; -} -export interface MsgCreateProjectAminoMsg { - type: "regen/MsgCreateProject"; - value: MsgCreateProjectAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectSDKType { - admin: string; - class_id: string; - metadata: string; - jurisdiction: string; - reference_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponse { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface MsgCreateProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface MsgCreateProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: MsgCreateProjectResponseAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseSDKType { - project_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - projectId: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - originTx?: OriginTx; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - project_id?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open?: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgCreateBatchAminoMsg { - type: "regen/MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - project_id: string; - issuance: BatchIssuanceSDKType[]; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - open: boolean; - origin_tx?: OriginTxSDKType; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCredits { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - originTx?: OriginTx; -} -export interface MsgMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; - value: Uint8Array; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsAmino { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgMintBatchCreditsAminoMsg { - type: "regen/MsgMintBatchCredits"; - value: MsgMintBatchCreditsAmino; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsSDKType { - issuer: string; - batch_denom: string; - issuance: BatchIssuanceSDKType[]; - origin_tx?: OriginTxSDKType; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponse {} -export interface MsgMintBatchCreditsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: Uint8Array; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseAmino {} -export interface MsgMintBatchCreditsResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: MsgMintBatchCreditsResponseAmino; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseSDKType {} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatch { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch"; - value: Uint8Array; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchAmino { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgSealBatchAminoMsg { - type: "regen/MsgSealBatch"; - value: MsgSealBatchAmino; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchSDKType { - issuer: string; - batch_denom: string; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponse {} -export interface MsgSealBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: Uint8Array; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseAmino {} -export interface MsgSealBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: MsgSealBatchResponseAmino; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseSDKType {} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** recipient is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent to the recipient. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** recipient is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent to the recipient. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "regen/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** owner is the address of the account that owns the credits being retired. */ - owner: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits: Credits[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** owner is the address of the account that owns the credits being retired. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits?: CreditsAmino[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface MsgRetireAminoMsg { - type: "regen/MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - owner: string; - credits: CreditsSDKType[]; - jurisdiction: string; - reason: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse {} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino {} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType {} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** owner is the address of the account that owns the credits being cancelled. */ - owner: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits: Credits[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason: string; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** owner is the address of the account that owns the credits being cancelled. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits?: CreditsAmino[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason?: string; -} -export interface MsgCancelAminoMsg { - type: "regen/MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - owner: string; - credits: CreditsSDKType[]; - reason: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse {} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino {} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType {} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "regen/MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse {} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino {} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType {} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - addIssuers: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - removeIssuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - add_issuers?: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - remove_issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "regen/MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - add_issuers: string[]; - remove_issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse {} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino {} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType {} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - newMetadata: string; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - new_metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "regen/MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - new_metadata: string; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse {} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino {} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType {} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdmin { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - newAdmin: string; -} -export interface MsgUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminAmino { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - new_admin?: string; -} -export interface MsgUpdateProjectAdminAminoMsg { - type: "regen/MsgUpdateProjectAdmin"; - value: MsgUpdateProjectAdminAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminSDKType { - admin: string; - project_id: string; - new_admin: string; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponse {} -export interface MsgUpdateProjectAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseAmino {} -export interface MsgUpdateProjectAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: MsgUpdateProjectAdminResponseAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseSDKType {} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadata { - /** admin is the address of the account that is the admin of the project. */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - newMetadata: string; -} -export interface MsgUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata"; - value: Uint8Array; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataAmino { - /** admin is the address of the account that is the admin of the project. */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - new_metadata?: string; -} -export interface MsgUpdateProjectMetadataAminoMsg { - type: "regen/MsgUpdateProjectMetadata"; - value: MsgUpdateProjectMetadataAmino; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataSDKType { - admin: string; - project_id: string; - new_metadata: string; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponse {} -export interface MsgUpdateProjectMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseAmino {} -export interface MsgUpdateProjectMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: MsgUpdateProjectMetadataResponseAmino; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseSDKType {} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridge { - /** owner is the address of the account that owns the credits being bridged. */ - owner: string; - /** target is the name of the target chain or registry. */ - target: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits: Credits[]; -} -export interface MsgBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridge"; - value: Uint8Array; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeAmino { - /** owner is the address of the account that owns the credits being bridged. */ - owner?: string; - /** target is the name of the target chain or registry. */ - target?: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient?: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits?: CreditsAmino[]; -} -export interface MsgBridgeAminoMsg { - type: "regen/MsgBridge"; - value: MsgBridgeAmino; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeSDKType { - owner: string; - target: string; - recipient: string; - credits: CreditsSDKType[]; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadata { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer: string; - /** batch_denom is the unique identifier of the batch. */ - batchDenom: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - newMetadata: string; -} -export interface MsgUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataAmino { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer?: string; - /** batch_denom is the unique identifier of the batch. */ - batch_denom?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - new_metadata?: string; -} -export interface MsgUpdateBatchMetadataAminoMsg { - type: "regen/MsgUpdateBatchMetadata"; - value: MsgUpdateBatchMetadataAmino; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataSDKType { - issuer: string; - batch_denom: string; - new_metadata: string; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponse {} -export interface MsgUpdateBatchMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseAmino {} -export interface MsgUpdateBatchMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: MsgUpdateBatchMetadataResponseAmino; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseSDKType {} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponse {} -export interface MsgBridgeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: Uint8Array; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseAmino {} -export interface MsgBridgeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: MsgBridgeResponseAmino; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseSDKType {} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceive { - /** issuer is the account address of the service bridging the credits. */ - issuer: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - classId: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_Project; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_Batch; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - originTx?: OriginTx; -} -export interface MsgBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; - value: Uint8Array; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveAmino { - /** issuer is the account address of the service bridging the credits. */ - issuer?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - class_id?: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_ProjectAmino; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_BatchAmino; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgBridgeReceiveAminoMsg { - type: "regen/MsgBridgeReceive"; - value: MsgBridgeReceiveAmino; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveSDKType { - issuer: string; - class_id: string; - project?: MsgBridgeReceive_ProjectSDKType; - batch?: MsgBridgeReceive_BatchSDKType; - origin_tx?: OriginTxSDKType; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_Batch { - /** recipient is the recipient of the bridged credits. */ - recipient: string; - /** amount is the amount of credits being bridged. */ - amount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** metadata is the metadata for the credit batch. */ - metadata: string; -} -export interface MsgBridgeReceive_BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchAmino { - /** recipient is the recipient of the bridged credits. */ - recipient?: string; - /** amount is the amount of credits being bridged. */ - amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** metadata is the metadata for the credit batch. */ - metadata?: string; -} -export interface MsgBridgeReceive_BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: MsgBridgeReceive_BatchAmino; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchSDKType { - recipient: string; - amount: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - metadata: string; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_Project { - /** reference_id is the reference id of the project. */ - referenceId: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction: string; - /** metadata is the metadata for the project. */ - metadata: string; -} -export interface MsgBridgeReceive_ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectAmino { - /** reference_id is the reference id of the project. */ - reference_id?: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction?: string; - /** metadata is the metadata for the project. */ - metadata?: string; -} -export interface MsgBridgeReceive_ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: MsgBridgeReceive_ProjectAmino; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectSDKType { - reference_id: string; - jurisdiction: string; - metadata: string; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponse { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; -} -export interface MsgBridgeReceiveResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: Uint8Array; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseAmino { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; -} -export interface MsgBridgeReceiveResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: MsgBridgeReceiveResponseAmino; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseSDKType { - batch_denom: string; - project_id: string; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to add to the class creator list. */ - creator: string; -} -export interface MsgAddClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator"; - value: Uint8Array; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to add to the class creator list. */ - creator?: string; -} -export interface MsgAddClassCreatorAminoMsg { - type: "regen/MsgAddClassCreator"; - value: MsgAddClassCreatorAmino; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponse {} -export interface MsgAddClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseAmino {} -export interface MsgAddClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: MsgAddClassCreatorResponseAmino; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseSDKType {} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlist { - /** authority is the address of the governance account. */ - authority: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled: boolean; -} -export interface MsgSetClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled?: boolean; -} -export interface MsgSetClassCreatorAllowlistAminoMsg { - type: "regen/MsgSetClassCreatorAllowlist"; - value: MsgSetClassCreatorAllowlistAmino; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistSDKType { - authority: string; - enabled: boolean; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponse {} -export interface MsgSetClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseAmino {} -export interface MsgSetClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: MsgSetClassCreatorAllowlistResponseAmino; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseSDKType {} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to remove from the class creator list. */ - creator: string; -} -export interface MsgRemoveClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to remove from the class creator list. */ - creator?: string; -} -export interface MsgRemoveClassCreatorAminoMsg { - type: "regen/MsgRemoveClassCreator"; - value: MsgRemoveClassCreatorAmino; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponse {} -export interface MsgRemoveClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseAmino {} -export interface MsgRemoveClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: MsgRemoveClassCreatorResponseAmino; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseSDKType {} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: Coin; -} -export interface MsgUpdateClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; - value: Uint8Array; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: CoinAmino; -} -export interface MsgUpdateClassFeeAminoMsg { - type: "regen/MsgUpdateClassFee"; - value: MsgUpdateClassFeeAmino; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponse {} -export interface MsgUpdateClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseAmino {} -export interface MsgUpdateClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: MsgUpdateClassFeeResponseAmino; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseSDKType {} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgAddAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgAddAllowedBridgeChainAminoMsg { - type: "regen/MsgAddAllowedBridgeChain"; - value: MsgAddAllowedBridgeChainAmino; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponse {} -export interface MsgAddAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseAmino {} -export interface MsgAddAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: MsgAddAllowedBridgeChainResponseAmino; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseSDKType {} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgRemoveAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgRemoveAllowedBridgeChainAminoMsg { - type: "regen/MsgRemoveAllowedBridgeChain"; - value: MsgRemoveAllowedBridgeChainAmino; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponse {} -export interface MsgRemoveAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseAmino {} -export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: MsgRemoveAllowedBridgeChainResponseAmino; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseSDKType {} -function createBaseMsgAddCreditType(): MsgAddCreditType { - return { - authority: "", - creditType: undefined - }; -} -export const MsgAddCreditType = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - encode(message: MsgAddCreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAddCreditType { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - creditType: isSet(object.creditType) ? CreditType.fromJSON(object.creditType) : undefined - }; - }, - toJSON(message: MsgAddCreditType): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.creditType !== undefined && (obj.creditType = message.creditType ? CreditType.toJSON(message.creditType) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgAddCreditType { - const message = createBaseMsgAddCreditType(); - message.authority = object.authority ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object: MsgAddCreditTypeAmino): MsgAddCreditType { - const message = createBaseMsgAddCreditType(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message: MsgAddCreditType): MsgAddCreditTypeAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object: MsgAddCreditTypeAminoMsg): MsgAddCreditType { - return MsgAddCreditType.fromAmino(object.value); - }, - toAminoMsg(message: MsgAddCreditType): MsgAddCreditTypeAminoMsg { - return { - type: "regen/MsgAddCreditType", - value: MsgAddCreditType.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAddCreditTypeProtoMsg): MsgAddCreditType { - return MsgAddCreditType.decode(message.value); - }, - toProto(message: MsgAddCreditType): Uint8Array { - return MsgAddCreditType.encode(message).finish(); - }, - toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.encode(message).finish() - }; - } -}; -function createBaseMsgAddCreditTypeResponse(): MsgAddCreditTypeResponse { - return {}; -} -export const MsgAddCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - encode(_: MsgAddCreditTypeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgAddCreditTypeResponse { - return {}; - }, - toJSON(_: MsgAddCreditTypeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgAddCreditTypeResponse { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - fromAmino(_: MsgAddCreditTypeResponseAmino): MsgAddCreditTypeResponse { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - toAmino(_: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgAddCreditTypeResponseAminoMsg): MsgAddCreditTypeResponse { - return MsgAddCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAddCreditTypeResponseProtoMsg): MsgAddCreditTypeResponse { - return MsgAddCreditTypeResponse.decode(message.value); - }, - toProto(message: MsgAddCreditTypeResponse): Uint8Array { - return MsgAddCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - value: MsgAddCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClass(): MsgCreateClass { - return { - admin: "", - issuers: [], - metadata: "", - creditTypeAbbrev: "", - fee: undefined - }; -} -export const MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - encode(message: MsgCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v!); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateClass { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - issuers: Array.isArray(object?.issuers) ? object.issuers.map((e: any) => String(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "", - creditTypeAbbrev: isSet(object.creditTypeAbbrev) ? String(object.creditTypeAbbrev) : "", - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: MsgCreateClass): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - message.creditTypeAbbrev !== undefined && (obj.creditTypeAbbrev = message.creditTypeAbbrev); - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgCreateClass { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: MsgCreateClassAmino): MsgCreateClass { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: MsgCreateClass): MsgCreateClassAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass { - return MsgCreateClass.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateClass): MsgCreateClassAminoMsg { - return { - type: "regen/MsgCreateClass", - value: MsgCreateClass.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass { - return MsgCreateClass.decode(message.value); - }, - toProto(message: MsgCreateClass): Uint8Array { - return MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse(): MsgCreateClassResponse { - return { - classId: "" - }; -} -export const MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - encode(message: MsgCreateClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateClassResponse { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: MsgCreateClassResponse): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): MsgCreateClassResponse { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse { - return MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse { - return MsgCreateClassResponse.decode(message.value); - }, - toProto(message: MsgCreateClassResponse): Uint8Array { - return MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - value: MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProject(): MsgCreateProject { - return { - admin: "", - classId: "", - metadata: "", - jurisdiction: "", - referenceId: "" - }; -} -export const MsgCreateProject = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - encode(message: MsgCreateProject, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.referenceId !== "") { - writer.uint32(42).string(message.referenceId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateProject { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "", - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - referenceId: isSet(object.referenceId) ? String(object.referenceId) : "" - }; - }, - toJSON(message: MsgCreateProject): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.metadata !== undefined && (obj.metadata = message.metadata); - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.referenceId !== undefined && (obj.referenceId = message.referenceId); - return obj; - }, - fromPartial(object: Partial): MsgCreateProject { - const message = createBaseMsgCreateProject(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object: MsgCreateProjectAmino): MsgCreateProject { - const message = createBaseMsgCreateProject(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message: MsgCreateProject): MsgCreateProjectAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object: MsgCreateProjectAminoMsg): MsgCreateProject { - return MsgCreateProject.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateProject): MsgCreateProjectAminoMsg { - return { - type: "regen/MsgCreateProject", - value: MsgCreateProject.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateProjectProtoMsg): MsgCreateProject { - return MsgCreateProject.decode(message.value); - }, - toProto(message: MsgCreateProject): Uint8Array { - return MsgCreateProject.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProjectResponse(): MsgCreateProjectResponse { - return { - projectId: "" - }; -} -export const MsgCreateProjectResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - encode(message: MsgCreateProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateProjectResponse { - return { - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: MsgCreateProjectResponse): unknown { - const obj: any = {}; - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): MsgCreateProjectResponse { - const message = createBaseMsgCreateProjectResponse(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: MsgCreateProjectResponseAmino): MsgCreateProjectResponse { - const message = createBaseMsgCreateProjectResponse(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: MsgCreateProjectResponse): MsgCreateProjectResponseAmino { - const obj: any = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: MsgCreateProjectResponseAminoMsg): MsgCreateProjectResponse { - return MsgCreateProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateProjectResponseProtoMsg): MsgCreateProjectResponse { - return MsgCreateProjectResponse.decode(message.value); - }, - toProto(message: MsgCreateProjectResponse): Uint8Array { - return MsgCreateProjectResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - value: MsgCreateProjectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch(): MsgCreateBatch { - return { - issuer: "", - projectId: "", - issuance: [], - metadata: "", - startDate: undefined, - endDate: undefined, - open: false, - originTx: undefined - }; -} -export const MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - encode(message: MsgCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - for (const v of message.issuance) { - BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(50).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(56).bool(message.open); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.open = reader.bool(); - break; - case 8: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateBatch { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - projectId: isSet(object.projectId) ? String(object.projectId) : "", - issuance: Array.isArray(object?.issuance) ? object.issuance.map((e: any) => BatchIssuance.fromJSON(e)) : [], - metadata: isSet(object.metadata) ? String(object.metadata) : "", - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - open: isSet(object.open) ? Boolean(object.open) : false, - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: MsgCreateBatch): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.projectId !== undefined && (obj.projectId = message.projectId); - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toJSON(e) : undefined); - } else { - obj.issuance = []; - } - message.metadata !== undefined && (obj.metadata = message.metadata); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.open !== undefined && (obj.open = message.open); - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgCreateBatch { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.open = object.open ?? false; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); - } else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.open = message.open === false ? undefined : message.open; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch { - return MsgCreateBatch.fromAmino(object.value); - }, - toAminoMsg(message: MsgCreateBatch): MsgCreateBatchAminoMsg { - return { - type: "regen/MsgCreateBatch", - value: MsgCreateBatch.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch { - return MsgCreateBatch.decode(message.value); - }, - toProto(message: MsgCreateBatch): Uint8Array { - return MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse(): MsgCreateBatchResponse { - return { - batchDenom: "" - }; -} -export const MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - encode(message: MsgCreateBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateBatchResponse { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: MsgCreateBatchResponse): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): MsgCreateBatchResponse { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse { - return MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse { - return MsgCreateBatchResponse.decode(message.value); - }, - toProto(message: MsgCreateBatchResponse): Uint8Array { - return MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - value: MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCredits(): MsgMintBatchCredits { - return { - issuer: "", - batchDenom: "", - issuance: [], - originTx: undefined - }; -} -export const MsgMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - encode(message: MsgMintBatchCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - for (const v of message.issuance) { - BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgMintBatchCredits { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - issuance: Array.isArray(object?.issuance) ? object.issuance.map((e: any) => BatchIssuance.fromJSON(e)) : [], - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: MsgMintBatchCredits): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toJSON(e) : undefined); - } else { - obj.issuance = []; - } - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgMintBatchCredits { - const message = createBaseMsgMintBatchCredits(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: MsgMintBatchCreditsAmino): MsgMintBatchCredits { - const message = createBaseMsgMintBatchCredits(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: MsgMintBatchCredits): MsgMintBatchCreditsAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); - } else { - obj.issuance = message.issuance; - } - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: MsgMintBatchCreditsAminoMsg): MsgMintBatchCredits { - return MsgMintBatchCredits.fromAmino(object.value); - }, - toAminoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsAminoMsg { - return { - type: "regen/MsgMintBatchCredits", - value: MsgMintBatchCredits.toAmino(message) - }; - }, - fromProtoMsg(message: MsgMintBatchCreditsProtoMsg): MsgMintBatchCredits { - return MsgMintBatchCredits.decode(message.value); - }, - toProto(message: MsgMintBatchCredits): Uint8Array { - return MsgMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCreditsResponse(): MsgMintBatchCreditsResponse { - return {}; -} -export const MsgMintBatchCreditsResponse = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - encode(_: MsgMintBatchCreditsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCreditsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgMintBatchCreditsResponse { - return {}; - }, - toJSON(_: MsgMintBatchCreditsResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgMintBatchCreditsResponse { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - fromAmino(_: MsgMintBatchCreditsResponseAmino): MsgMintBatchCreditsResponse { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - toAmino(_: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgMintBatchCreditsResponseAminoMsg): MsgMintBatchCreditsResponse { - return MsgMintBatchCreditsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgMintBatchCreditsResponseProtoMsg): MsgMintBatchCreditsResponse { - return MsgMintBatchCreditsResponse.decode(message.value); - }, - toProto(message: MsgMintBatchCreditsResponse): Uint8Array { - return MsgMintBatchCreditsResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - value: MsgMintBatchCreditsResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatch(): MsgSealBatch { - return { - issuer: "", - batchDenom: "" - }; -} -export const MsgSealBatch = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - encode(message: MsgSealBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSealBatch { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: MsgSealBatch): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): MsgSealBatch { - const message = createBaseMsgSealBatch(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: MsgSealBatchAmino): MsgSealBatch { - const message = createBaseMsgSealBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: MsgSealBatch): MsgSealBatchAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: MsgSealBatchAminoMsg): MsgSealBatch { - return MsgSealBatch.fromAmino(object.value); - }, - toAminoMsg(message: MsgSealBatch): MsgSealBatchAminoMsg { - return { - type: "regen/MsgSealBatch", - value: MsgSealBatch.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSealBatchProtoMsg): MsgSealBatch { - return MsgSealBatch.decode(message.value); - }, - toProto(message: MsgSealBatch): Uint8Array { - return MsgSealBatch.encode(message).finish(); - }, - toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatchResponse(): MsgSealBatchResponse { - return {}; -} -export const MsgSealBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - encode(_: MsgSealBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSealBatchResponse { - return {}; - }, - toJSON(_: MsgSealBatchResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSealBatchResponse { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - fromAmino(_: MsgSealBatchResponseAmino): MsgSealBatchResponse { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - toAmino(_: MsgSealBatchResponse): MsgSealBatchResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSealBatchResponseAminoMsg): MsgSealBatchResponse { - return MsgSealBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSealBatchResponseProtoMsg): MsgSealBatchResponse { - return MsgSealBatchResponse.decode(message.value); - }, - toProto(message: MsgSealBatchResponse): Uint8Array { - return MsgSealBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - value: MsgSealBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend(): MsgSend { - return { - sender: "", - recipient: "", - credits: [] - }; -} -export const MsgSend = { - typeUrl: "/regen.ecocredit.v1.MsgSend", - encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - MsgSend_SendCredits.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => MsgSend_SendCredits.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgSend): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.recipient !== undefined && (obj.recipient = message.recipient); - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgSend { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgSendAmino): MsgSend { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgSend): MsgSendAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgSendAminoMsg): MsgSend { - return MsgSend.fromAmino(object.value); - }, - toAminoMsg(message: MsgSend): MsgSendAminoMsg { - return { - type: "regen/MsgSend", - value: MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSendProtoMsg): MsgSend { - return MsgSend.decode(message.value); - }, - toProto(message: MsgSend): Uint8Array { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message: MsgSend): MsgSendProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits(): MsgSend_SendCredits { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1.SendCredits", - encode(message: MsgSend_SendCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend_SendCredits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - retirementJurisdiction: isSet(object.retirementJurisdiction) ? String(object.retirementJurisdiction) : "", - retirementReason: isSet(object.retirementReason) ? String(object.retirementReason) : "" - }; - }, - toJSON(message: MsgSend_SendCredits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.retirementJurisdiction !== undefined && (obj.retirementJurisdiction = message.retirementJurisdiction); - message.retirementReason !== undefined && (obj.retirementReason = message.retirementReason); - return obj; - }, - fromPartial(object: Partial): MsgSend_SendCredits { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits { - return MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits { - return MsgSend_SendCredits.decode(message.value); - }, - toProto(message: MsgSend_SendCredits): Uint8Array { - return MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.SendCredits", - value: MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse(): MsgSendResponse { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSendResponse { - return {}; - }, - toJSON(_: MsgSendResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_: MsgSendResponseAmino): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_: MsgSendResponse): MsgSendResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { - return MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { - return MsgSendResponse.decode(message.value); - }, - toProto(message: MsgSendResponse): Uint8Array { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire(): MsgRetire { - return { - owner: "", - credits: [], - jurisdiction: "", - reason: "" - }; -} -export const MsgRetire = { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - encode(message: MsgRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - Credits.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.jurisdiction !== "") { - writer.uint32(26).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - case 3: - message.jurisdiction = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRetire { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => Credits.fromJSON(e)) : [], - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - reason: isSet(object.reason) ? String(object.reason) : "" - }; - }, - toJSON(message: MsgRetire): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.reason !== undefined && (obj.reason = message.reason); - return obj; - }, - fromPartial(object: Partial): MsgRetire { - const message = createBaseMsgRetire(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object: MsgRetireAmino): MsgRetire { - const message = createBaseMsgRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message: MsgRetire): MsgRetireAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire { - return MsgRetire.fromAmino(object.value); - }, - toAminoMsg(message: MsgRetire): MsgRetireAminoMsg { - return { - type: "regen/MsgRetire", - value: MsgRetire.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire { - return MsgRetire.decode(message.value); - }, - toProto(message: MsgRetire): Uint8Array { - return MsgRetire.encode(message).finish(); - }, - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse(): MsgRetireResponse { - return {}; -} -export const MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - encode(_: MsgRetireResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRetireResponse { - return {}; - }, - toJSON(_: MsgRetireResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRetireResponse { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse { - return MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse { - return MsgRetireResponse.decode(message.value); - }, - toProto(message: MsgRetireResponse): Uint8Array { - return MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - value: MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel(): MsgCancel { - return { - owner: "", - credits: [], - reason: "" - }; -} -export const MsgCancel = { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - encode(message: MsgCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - Credits.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.reason !== "") { - writer.uint32(26).string(message.reason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - case 3: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancel { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => Credits.fromJSON(e)) : [], - reason: isSet(object.reason) ? String(object.reason) : "" - }; - }, - toJSON(message: MsgCancel): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - message.reason !== undefined && (obj.reason = message.reason); - return obj; - }, - fromPartial(object: Partial): MsgCancel { - const message = createBaseMsgCancel(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object: MsgCancelAmino): MsgCancel { - const message = createBaseMsgCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message: MsgCancel): MsgCancelAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel { - return MsgCancel.fromAmino(object.value); - }, - toAminoMsg(message: MsgCancel): MsgCancelAminoMsg { - return { - type: "regen/MsgCancel", - value: MsgCancel.toAmino(message) - }; - }, - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel { - return MsgCancel.decode(message.value); - }, - toProto(message: MsgCancel): Uint8Array { - return MsgCancel.encode(message).finish(); - }, - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse(): MsgCancelResponse { - return {}; -} -export const MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - encode(_: MsgCancelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCancelResponse { - return {}; - }, - toJSON(_: MsgCancelResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCancelResponse { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse { - return MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse { - return MsgCancelResponse.decode(message.value); - }, - toProto(message: MsgCancelResponse): Uint8Array { - return MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - value: MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin(): MsgUpdateClassAdmin { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -export const MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - encode(message: MsgUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassAdmin { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : "" - }; - }, - toJSON(message: MsgUpdateClassAdmin): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassAdmin { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin { - return MsgUpdateClassAdmin.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAminoMsg { - return { - type: "regen/MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin { - return MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message: MsgUpdateClassAdmin): Uint8Array { - return MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse(): MsgUpdateClassAdminResponse { - return {}; -} -export const MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - encode(_: MsgUpdateClassAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassAdminResponse { - return {}; - }, - toJSON(_: MsgUpdateClassAdminResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassAdminResponse { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse { - return MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse { - return MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassAdminResponse): Uint8Array { - return MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - value: MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers(): MsgUpdateClassIssuers { - return { - admin: "", - classId: "", - addIssuers: [], - removeIssuers: [] - }; -} -export const MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - encode(message: MsgUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.addIssuers) { - writer.uint32(26).string(v!); - } - for (const v of message.removeIssuers) { - writer.uint32(34).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.addIssuers.push(reader.string()); - break; - case 4: - message.removeIssuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassIssuers { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - addIssuers: Array.isArray(object?.addIssuers) ? object.addIssuers.map((e: any) => String(e)) : [], - removeIssuers: Array.isArray(object?.removeIssuers) ? object.removeIssuers.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: MsgUpdateClassIssuers): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - if (message.addIssuers) { - obj.addIssuers = message.addIssuers.map(e => e); - } else { - obj.addIssuers = []; - } - if (message.removeIssuers) { - obj.removeIssuers = message.removeIssuers.map(e => e); - } else { - obj.removeIssuers = []; - } - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassIssuers { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.addIssuers = object.addIssuers?.map(e => e) || []; - message.removeIssuers = object.removeIssuers?.map(e => e) || []; - return message; - }, - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.addIssuers = object.add_issuers?.map(e => e) || []; - message.removeIssuers = object.remove_issuers?.map(e => e) || []; - return message; - }, - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.addIssuers) { - obj.add_issuers = message.addIssuers.map(e => e); - } else { - obj.add_issuers = message.addIssuers; - } - if (message.removeIssuers) { - obj.remove_issuers = message.removeIssuers.map(e => e); - } else { - obj.remove_issuers = message.removeIssuers; - } - return obj; - }, - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers { - return MsgUpdateClassIssuers.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAminoMsg { - return { - type: "regen/MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers { - return MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message: MsgUpdateClassIssuers): Uint8Array { - return MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse(): MsgUpdateClassIssuersResponse { - return {}; -} -export const MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - encode(_: MsgUpdateClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassIssuersResponse { - return {}; - }, - toJSON(_: MsgUpdateClassIssuersResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassIssuersResponse { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse { - return MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse { - return MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array { - return MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - value: MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata(): MsgUpdateClassMetadata { - return { - admin: "", - classId: "", - newMetadata: "" - }; -} -export const MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - encode(message: MsgUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassMetadata { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - newMetadata: isSet(object.newMetadata) ? String(object.newMetadata) : "" - }; - }, - toJSON(message: MsgUpdateClassMetadata): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.newMetadata !== undefined && (obj.newMetadata = message.newMetadata); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassMetadata { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata { - return MsgUpdateClassMetadata.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAminoMsg { - return { - type: "regen/MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata { - return MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message: MsgUpdateClassMetadata): Uint8Array { - return MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse(): MsgUpdateClassMetadataResponse { - return {}; -} -export const MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - encode(_: MsgUpdateClassMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateClassMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassMetadataResponse { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse { - return MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse { - return MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array { - return MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - value: MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdmin(): MsgUpdateProjectAdmin { - return { - admin: "", - projectId: "", - newAdmin: "" - }; -} -export const MsgUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - encode(message: MsgUpdateProjectAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateProjectAdmin { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - projectId: isSet(object.projectId) ? String(object.projectId) : "", - newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : "" - }; - }, - toJSON(message: MsgUpdateProjectAdmin): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.projectId !== undefined && (obj.projectId = message.projectId); - message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin); - return obj; - }, - fromPartial(object: Partial): MsgUpdateProjectAdmin { - const message = createBaseMsgUpdateProjectAdmin(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object: MsgUpdateProjectAdminAmino): MsgUpdateProjectAdmin { - const message = createBaseMsgUpdateProjectAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object: MsgUpdateProjectAdminAminoMsg): MsgUpdateProjectAdmin { - return MsgUpdateProjectAdmin.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAminoMsg { - return { - type: "regen/MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateProjectAdminProtoMsg): MsgUpdateProjectAdmin { - return MsgUpdateProjectAdmin.decode(message.value); - }, - toProto(message: MsgUpdateProjectAdmin): Uint8Array { - return MsgUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdminResponse(): MsgUpdateProjectAdminResponse { - return {}; -} -export const MsgUpdateProjectAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - encode(_: MsgUpdateProjectAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateProjectAdminResponse { - return {}; - }, - toJSON(_: MsgUpdateProjectAdminResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateProjectAdminResponse { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - fromAmino(_: MsgUpdateProjectAdminResponseAmino): MsgUpdateProjectAdminResponse { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - toAmino(_: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateProjectAdminResponseAminoMsg): MsgUpdateProjectAdminResponse { - return MsgUpdateProjectAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateProjectAdminResponseProtoMsg): MsgUpdateProjectAdminResponse { - return MsgUpdateProjectAdminResponse.decode(message.value); - }, - toProto(message: MsgUpdateProjectAdminResponse): Uint8Array { - return MsgUpdateProjectAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - value: MsgUpdateProjectAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadata(): MsgUpdateProjectMetadata { - return { - admin: "", - projectId: "", - newMetadata: "" - }; -} -export const MsgUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - encode(message: MsgUpdateProjectMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateProjectMetadata { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - projectId: isSet(object.projectId) ? String(object.projectId) : "", - newMetadata: isSet(object.newMetadata) ? String(object.newMetadata) : "" - }; - }, - toJSON(message: MsgUpdateProjectMetadata): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.projectId !== undefined && (obj.projectId = message.projectId); - message.newMetadata !== undefined && (obj.newMetadata = message.newMetadata); - return obj; - }, - fromPartial(object: Partial): MsgUpdateProjectMetadata { - const message = createBaseMsgUpdateProjectMetadata(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object: MsgUpdateProjectMetadataAmino): MsgUpdateProjectMetadata { - const message = createBaseMsgUpdateProjectMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object: MsgUpdateProjectMetadataAminoMsg): MsgUpdateProjectMetadata { - return MsgUpdateProjectMetadata.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAminoMsg { - return { - type: "regen/MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateProjectMetadataProtoMsg): MsgUpdateProjectMetadata { - return MsgUpdateProjectMetadata.decode(message.value); - }, - toProto(message: MsgUpdateProjectMetadata): Uint8Array { - return MsgUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadataResponse(): MsgUpdateProjectMetadataResponse { - return {}; -} -export const MsgUpdateProjectMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - encode(_: MsgUpdateProjectMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateProjectMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateProjectMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateProjectMetadataResponse { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateProjectMetadataResponseAmino): MsgUpdateProjectMetadataResponse { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateProjectMetadataResponseAminoMsg): MsgUpdateProjectMetadataResponse { - return MsgUpdateProjectMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateProjectMetadataResponseProtoMsg): MsgUpdateProjectMetadataResponse { - return MsgUpdateProjectMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateProjectMetadataResponse): Uint8Array { - return MsgUpdateProjectMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - value: MsgUpdateProjectMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridge(): MsgBridge { - return { - owner: "", - target: "", - recipient: "", - credits: [] - }; -} -export const MsgBridge = { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - encode(message: MsgBridge, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.target !== "") { - writer.uint32(18).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.credits) { - Credits.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.target = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBridge { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - target: isSet(object.target) ? String(object.target) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => Credits.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgBridge): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.target !== undefined && (obj.target = message.target); - message.recipient !== undefined && (obj.recipient = message.recipient); - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgBridge { - const message = createBaseMsgBridge(); - message.owner = object.owner ?? ""; - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgBridgeAmino): MsgBridge { - const message = createBaseMsgBridge(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgBridge): MsgBridgeAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgBridgeAminoMsg): MsgBridge { - return MsgBridge.fromAmino(object.value); - }, - toAminoMsg(message: MsgBridge): MsgBridgeAminoMsg { - return { - type: "regen/MsgBridge", - value: MsgBridge.toAmino(message) - }; - }, - fromProtoMsg(message: MsgBridgeProtoMsg): MsgBridge { - return MsgBridge.decode(message.value); - }, - toProto(message: MsgBridge): Uint8Array { - return MsgBridge.encode(message).finish(); - }, - toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadata(): MsgUpdateBatchMetadata { - return { - issuer: "", - batchDenom: "", - newMetadata: "" - }; -} -export const MsgUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - encode(message: MsgUpdateBatchMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateBatchMetadata { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - newMetadata: isSet(object.newMetadata) ? String(object.newMetadata) : "" - }; - }, - toJSON(message: MsgUpdateBatchMetadata): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.newMetadata !== undefined && (obj.newMetadata = message.newMetadata); - return obj; - }, - fromPartial(object: Partial): MsgUpdateBatchMetadata { - const message = createBaseMsgUpdateBatchMetadata(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object: MsgUpdateBatchMetadataAmino): MsgUpdateBatchMetadata { - const message = createBaseMsgUpdateBatchMetadata(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object: MsgUpdateBatchMetadataAminoMsg): MsgUpdateBatchMetadata { - return MsgUpdateBatchMetadata.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAminoMsg { - return { - type: "regen/MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateBatchMetadataProtoMsg): MsgUpdateBatchMetadata { - return MsgUpdateBatchMetadata.decode(message.value); - }, - toProto(message: MsgUpdateBatchMetadata): Uint8Array { - return MsgUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadataResponse(): MsgUpdateBatchMetadataResponse { - return {}; -} -export const MsgUpdateBatchMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - encode(_: MsgUpdateBatchMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateBatchMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateBatchMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateBatchMetadataResponse { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateBatchMetadataResponseAmino): MsgUpdateBatchMetadataResponse { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateBatchMetadataResponseAminoMsg): MsgUpdateBatchMetadataResponse { - return MsgUpdateBatchMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateBatchMetadataResponseProtoMsg): MsgUpdateBatchMetadataResponse { - return MsgUpdateBatchMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateBatchMetadataResponse): Uint8Array { - return MsgUpdateBatchMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - value: MsgUpdateBatchMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeResponse(): MsgBridgeResponse { - return {}; -} -export const MsgBridgeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - encode(_: MsgBridgeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgBridgeResponse { - return {}; - }, - toJSON(_: MsgBridgeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgBridgeResponse { - const message = createBaseMsgBridgeResponse(); - return message; - }, - fromAmino(_: MsgBridgeResponseAmino): MsgBridgeResponse { - const message = createBaseMsgBridgeResponse(); - return message; - }, - toAmino(_: MsgBridgeResponse): MsgBridgeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgBridgeResponseAminoMsg): MsgBridgeResponse { - return MsgBridgeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBridgeResponseProtoMsg): MsgBridgeResponse { - return MsgBridgeResponse.decode(message.value); - }, - toProto(message: MsgBridgeResponse): Uint8Array { - return MsgBridgeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - value: MsgBridgeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive(): MsgBridgeReceive { - return { - issuer: "", - classId: "", - project: undefined, - batch: undefined, - originTx: undefined - }; -} -export const MsgBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - encode(message: MsgBridgeReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.project !== undefined) { - MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); - } - if (message.batch !== undefined) { - MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.project = MsgBridgeReceive_Project.decode(reader, reader.uint32()); - break; - case 4: - message.batch = MsgBridgeReceive_Batch.decode(reader, reader.uint32()); - break; - case 5: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBridgeReceive { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - project: isSet(object.project) ? MsgBridgeReceive_Project.fromJSON(object.project) : undefined, - batch: isSet(object.batch) ? MsgBridgeReceive_Batch.fromJSON(object.batch) : undefined, - originTx: isSet(object.originTx) ? OriginTx.fromJSON(object.originTx) : undefined - }; - }, - toJSON(message: MsgBridgeReceive): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.classId !== undefined && (obj.classId = message.classId); - message.project !== undefined && (obj.project = message.project ? MsgBridgeReceive_Project.toJSON(message.project) : undefined); - message.batch !== undefined && (obj.batch = message.batch ? MsgBridgeReceive_Batch.toJSON(message.batch) : undefined); - message.originTx !== undefined && (obj.originTx = message.originTx ? OriginTx.toJSON(message.originTx) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgBridgeReceive { - const message = createBaseMsgBridgeReceive(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.project = object.project !== undefined && object.project !== null ? MsgBridgeReceive_Project.fromPartial(object.project) : undefined; - message.batch = object.batch !== undefined && object.batch !== null ? MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object: MsgBridgeReceiveAmino): MsgBridgeReceive { - const message = createBaseMsgBridgeReceive(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.project !== undefined && object.project !== null) { - message.project = MsgBridgeReceive_Project.fromAmino(object.project); - } - if (object.batch !== undefined && object.batch !== null) { - message.batch = MsgBridgeReceive_Batch.fromAmino(object.batch); - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message: MsgBridgeReceive): MsgBridgeReceiveAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.project = message.project ? MsgBridgeReceive_Project.toAmino(message.project) : undefined; - obj.batch = message.batch ? MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object: MsgBridgeReceiveAminoMsg): MsgBridgeReceive { - return MsgBridgeReceive.fromAmino(object.value); - }, - toAminoMsg(message: MsgBridgeReceive): MsgBridgeReceiveAminoMsg { - return { - type: "regen/MsgBridgeReceive", - value: MsgBridgeReceive.toAmino(message) - }; - }, - fromProtoMsg(message: MsgBridgeReceiveProtoMsg): MsgBridgeReceive { - return MsgBridgeReceive.decode(message.value); - }, - toProto(message: MsgBridgeReceive): Uint8Array { - return MsgBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Batch(): MsgBridgeReceive_Batch { - return { - recipient: "", - amount: "", - startDate: undefined, - endDate: undefined, - metadata: "" - }; -} -export const MsgBridgeReceive_Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message: MsgBridgeReceive_Batch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(26).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Batch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - case 3: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBridgeReceive_Batch { - return { - recipient: isSet(object.recipient) ? String(object.recipient) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgBridgeReceive_Batch): unknown { - const obj: any = {}; - message.recipient !== undefined && (obj.recipient = message.recipient); - message.amount !== undefined && (obj.amount = message.amount); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgBridgeReceive_Batch { - const message = createBaseMsgBridgeReceive_Batch(); - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgBridgeReceive_BatchAmino): MsgBridgeReceive_Batch { - const message = createBaseMsgBridgeReceive_Batch(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchAmino { - const obj: any = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgBridgeReceive_BatchAminoMsg): MsgBridgeReceive_Batch { - return MsgBridgeReceive_Batch.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBridgeReceive_BatchProtoMsg): MsgBridgeReceive_Batch { - return MsgBridgeReceive_Batch.decode(message.value); - }, - toProto(message: MsgBridgeReceive_Batch): Uint8Array { - return MsgBridgeReceive_Batch.encode(message).finish(); - }, - toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: MsgBridgeReceive_Batch.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Project(): MsgBridgeReceive_Project { - return { - referenceId: "", - jurisdiction: "", - metadata: "" - }; -} -export const MsgBridgeReceive_Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message: MsgBridgeReceive_Project, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.jurisdiction !== "") { - writer.uint32(18).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Project(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.jurisdiction = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBridgeReceive_Project { - return { - referenceId: isSet(object.referenceId) ? String(object.referenceId) : "", - jurisdiction: isSet(object.jurisdiction) ? String(object.jurisdiction) : "", - metadata: isSet(object.metadata) ? String(object.metadata) : "" - }; - }, - toJSON(message: MsgBridgeReceive_Project): unknown { - const obj: any = {}; - message.referenceId !== undefined && (obj.referenceId = message.referenceId); - message.jurisdiction !== undefined && (obj.jurisdiction = message.jurisdiction); - message.metadata !== undefined && (obj.metadata = message.metadata); - return obj; - }, - fromPartial(object: Partial): MsgBridgeReceive_Project { - const message = createBaseMsgBridgeReceive_Project(); - message.referenceId = object.referenceId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object: MsgBridgeReceive_ProjectAmino): MsgBridgeReceive_Project { - const message = createBaseMsgBridgeReceive_Project(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectAmino { - const obj: any = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object: MsgBridgeReceive_ProjectAminoMsg): MsgBridgeReceive_Project { - return MsgBridgeReceive_Project.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBridgeReceive_ProjectProtoMsg): MsgBridgeReceive_Project { - return MsgBridgeReceive_Project.decode(message.value); - }, - toProto(message: MsgBridgeReceive_Project): Uint8Array { - return MsgBridgeReceive_Project.encode(message).finish(); - }, - toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: MsgBridgeReceive_Project.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceiveResponse(): MsgBridgeReceiveResponse { - return { - batchDenom: "", - projectId: "" - }; -} -export const MsgBridgeReceiveResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - encode(message: MsgBridgeReceiveResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceiveResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgBridgeReceiveResponse { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - projectId: isSet(object.projectId) ? String(object.projectId) : "" - }; - }, - toJSON(message: MsgBridgeReceiveResponse): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.projectId !== undefined && (obj.projectId = message.projectId); - return obj; - }, - fromPartial(object: Partial): MsgBridgeReceiveResponse { - const message = createBaseMsgBridgeReceiveResponse(); - message.batchDenom = object.batchDenom ?? ""; - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object: MsgBridgeReceiveResponseAmino): MsgBridgeReceiveResponse { - const message = createBaseMsgBridgeReceiveResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object: MsgBridgeReceiveResponseAminoMsg): MsgBridgeReceiveResponse { - return MsgBridgeReceiveResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgBridgeReceiveResponseProtoMsg): MsgBridgeReceiveResponse { - return MsgBridgeReceiveResponse.decode(message.value); - }, - toProto(message: MsgBridgeReceiveResponse): Uint8Array { - return MsgBridgeReceiveResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - value: MsgBridgeReceiveResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreator(): MsgAddClassCreator { - return { - authority: "", - creator: "" - }; -} -export const MsgAddClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - encode(message: MsgAddClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAddClassCreator { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - creator: isSet(object.creator) ? String(object.creator) : "" - }; - }, - toJSON(message: MsgAddClassCreator): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.creator !== undefined && (obj.creator = message.creator); - return obj; - }, - fromPartial(object: Partial): MsgAddClassCreator { - const message = createBaseMsgAddClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object: MsgAddClassCreatorAmino): MsgAddClassCreator { - const message = createBaseMsgAddClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message: MsgAddClassCreator): MsgAddClassCreatorAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object: MsgAddClassCreatorAminoMsg): MsgAddClassCreator { - return MsgAddClassCreator.fromAmino(object.value); - }, - toAminoMsg(message: MsgAddClassCreator): MsgAddClassCreatorAminoMsg { - return { - type: "regen/MsgAddClassCreator", - value: MsgAddClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAddClassCreatorProtoMsg): MsgAddClassCreator { - return MsgAddClassCreator.decode(message.value); - }, - toProto(message: MsgAddClassCreator): Uint8Array { - return MsgAddClassCreator.encode(message).finish(); - }, - toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreatorResponse(): MsgAddClassCreatorResponse { - return {}; -} -export const MsgAddClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - encode(_: MsgAddClassCreatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgAddClassCreatorResponse { - return {}; - }, - toJSON(_: MsgAddClassCreatorResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgAddClassCreatorResponse { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - fromAmino(_: MsgAddClassCreatorResponseAmino): MsgAddClassCreatorResponse { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - toAmino(_: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgAddClassCreatorResponseAminoMsg): MsgAddClassCreatorResponse { - return MsgAddClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAddClassCreatorResponseProtoMsg): MsgAddClassCreatorResponse { - return MsgAddClassCreatorResponse.decode(message.value); - }, - toProto(message: MsgAddClassCreatorResponse): Uint8Array { - return MsgAddClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - value: MsgAddClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlist(): MsgSetClassCreatorAllowlist { - return { - authority: "", - enabled: false - }; -} -export const MsgSetClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - encode(message: MsgSetClassCreatorAllowlist, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSetClassCreatorAllowlist { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - enabled: isSet(object.enabled) ? Boolean(object.enabled) : false - }; - }, - toJSON(message: MsgSetClassCreatorAllowlist): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.enabled !== undefined && (obj.enabled = message.enabled); - return obj; - }, - fromPartial(object: Partial): MsgSetClassCreatorAllowlist { - const message = createBaseMsgSetClassCreatorAllowlist(); - message.authority = object.authority ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object: MsgSetClassCreatorAllowlistAmino): MsgSetClassCreatorAllowlist { - const message = createBaseMsgSetClassCreatorAllowlist(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object: MsgSetClassCreatorAllowlistAminoMsg): MsgSetClassCreatorAllowlist { - return MsgSetClassCreatorAllowlist.fromAmino(object.value); - }, - toAminoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAminoMsg { - return { - type: "regen/MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.toAmino(message) - }; - }, - fromProtoMsg(message: MsgSetClassCreatorAllowlistProtoMsg): MsgSetClassCreatorAllowlist { - return MsgSetClassCreatorAllowlist.decode(message.value); - }, - toProto(message: MsgSetClassCreatorAllowlist): Uint8Array { - return MsgSetClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlistResponse(): MsgSetClassCreatorAllowlistResponse { - return {}; -} -export const MsgSetClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - encode(_: MsgSetClassCreatorAllowlistResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSetClassCreatorAllowlistResponse { - return {}; - }, - toJSON(_: MsgSetClassCreatorAllowlistResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - fromAmino(_: MsgSetClassCreatorAllowlistResponseAmino): MsgSetClassCreatorAllowlistResponse { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - toAmino(_: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSetClassCreatorAllowlistResponseAminoMsg): MsgSetClassCreatorAllowlistResponse { - return MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSetClassCreatorAllowlistResponseProtoMsg): MsgSetClassCreatorAllowlistResponse { - return MsgSetClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message: MsgSetClassCreatorAllowlistResponse): Uint8Array { - return MsgSetClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - value: MsgSetClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreator(): MsgRemoveClassCreator { - return { - authority: "", - creator: "" - }; -} -export const MsgRemoveClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - encode(message: MsgRemoveClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRemoveClassCreator { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - creator: isSet(object.creator) ? String(object.creator) : "" - }; - }, - toJSON(message: MsgRemoveClassCreator): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.creator !== undefined && (obj.creator = message.creator); - return obj; - }, - fromPartial(object: Partial): MsgRemoveClassCreator { - const message = createBaseMsgRemoveClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object: MsgRemoveClassCreatorAmino): MsgRemoveClassCreator { - const message = createBaseMsgRemoveClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object: MsgRemoveClassCreatorAminoMsg): MsgRemoveClassCreator { - return MsgRemoveClassCreator.fromAmino(object.value); - }, - toAminoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAminoMsg { - return { - type: "regen/MsgRemoveClassCreator", - value: MsgRemoveClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRemoveClassCreatorProtoMsg): MsgRemoveClassCreator { - return MsgRemoveClassCreator.decode(message.value); - }, - toProto(message: MsgRemoveClassCreator): Uint8Array { - return MsgRemoveClassCreator.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreatorResponse(): MsgRemoveClassCreatorResponse { - return {}; -} -export const MsgRemoveClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - encode(_: MsgRemoveClassCreatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRemoveClassCreatorResponse { - return {}; - }, - toJSON(_: MsgRemoveClassCreatorResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRemoveClassCreatorResponse { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - fromAmino(_: MsgRemoveClassCreatorResponseAmino): MsgRemoveClassCreatorResponse { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - toAmino(_: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRemoveClassCreatorResponseAminoMsg): MsgRemoveClassCreatorResponse { - return MsgRemoveClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRemoveClassCreatorResponseProtoMsg): MsgRemoveClassCreatorResponse { - return MsgRemoveClassCreatorResponse.decode(message.value); - }, - toProto(message: MsgRemoveClassCreatorResponse): Uint8Array { - return MsgRemoveClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - value: MsgRemoveClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFee(): MsgUpdateClassFee { - return { - authority: "", - fee: undefined - }; -} -export const MsgUpdateClassFee = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - encode(message: MsgUpdateClassFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassFee { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined - }; - }, - toJSON(message: MsgUpdateClassFee): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.fee !== undefined && (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassFee { - const message = createBaseMsgUpdateClassFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object: MsgUpdateClassFeeAmino): MsgUpdateClassFee { - const message = createBaseMsgUpdateClassFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message: MsgUpdateClassFee): MsgUpdateClassFeeAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassFeeAminoMsg): MsgUpdateClassFee { - return MsgUpdateClassFee.fromAmino(object.value); - }, - toAminoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeAminoMsg { - return { - type: "regen/MsgUpdateClassFee", - value: MsgUpdateClassFee.toAmino(message) - }; - }, - fromProtoMsg(message: MsgUpdateClassFeeProtoMsg): MsgUpdateClassFee { - return MsgUpdateClassFee.decode(message.value); - }, - toProto(message: MsgUpdateClassFee): Uint8Array { - return MsgUpdateClassFee.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFeeResponse(): MsgUpdateClassFeeResponse { - return {}; -} -export const MsgUpdateClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - encode(_: MsgUpdateClassFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassFeeResponse { - return {}; - }, - toJSON(_: MsgUpdateClassFeeResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassFeeResponse { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassFeeResponseAmino): MsgUpdateClassFeeResponse { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - toAmino(_: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassFeeResponseAminoMsg): MsgUpdateClassFeeResponse { - return MsgUpdateClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassFeeResponseProtoMsg): MsgUpdateClassFeeResponse { - return MsgUpdateClassFeeResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassFeeResponse): Uint8Array { - return MsgUpdateClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - value: MsgUpdateClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChain(): MsgAddAllowedBridgeChain { - return { - authority: "", - chainName: "" - }; -} -export const MsgAddAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - encode(message: MsgAddAllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgAddAllowedBridgeChain { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - chainName: isSet(object.chainName) ? String(object.chainName) : "" - }; - }, - toJSON(message: MsgAddAllowedBridgeChain): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.chainName !== undefined && (obj.chainName = message.chainName); - return obj; - }, - fromPartial(object: Partial): MsgAddAllowedBridgeChain { - const message = createBaseMsgAddAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object: MsgAddAllowedBridgeChainAmino): MsgAddAllowedBridgeChain { - const message = createBaseMsgAddAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object: MsgAddAllowedBridgeChainAminoMsg): MsgAddAllowedBridgeChain { - return MsgAddAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAminoMsg { - return { - type: "regen/MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message: MsgAddAllowedBridgeChainProtoMsg): MsgAddAllowedBridgeChain { - return MsgAddAllowedBridgeChain.decode(message.value); - }, - toProto(message: MsgAddAllowedBridgeChain): Uint8Array { - return MsgAddAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChainResponse(): MsgAddAllowedBridgeChainResponse { - return {}; -} -export const MsgAddAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - encode(_: MsgAddAllowedBridgeChainResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgAddAllowedBridgeChainResponse { - return {}; - }, - toJSON(_: MsgAddAllowedBridgeChainResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_: MsgAddAllowedBridgeChainResponseAmino): MsgAddAllowedBridgeChainResponse { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - toAmino(_: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgAddAllowedBridgeChainResponseAminoMsg): MsgAddAllowedBridgeChainResponse { - return MsgAddAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgAddAllowedBridgeChainResponseProtoMsg): MsgAddAllowedBridgeChainResponse { - return MsgAddAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message: MsgAddAllowedBridgeChainResponse): Uint8Array { - return MsgAddAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - value: MsgAddAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChain(): MsgRemoveAllowedBridgeChain { - return { - authority: "", - chainName: "" - }; -} -export const MsgRemoveAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - encode(message: MsgRemoveAllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRemoveAllowedBridgeChain { - return { - authority: isSet(object.authority) ? String(object.authority) : "", - chainName: isSet(object.chainName) ? String(object.chainName) : "" - }; - }, - toJSON(message: MsgRemoveAllowedBridgeChain): unknown { - const obj: any = {}; - message.authority !== undefined && (obj.authority = message.authority); - message.chainName !== undefined && (obj.chainName = message.chainName); - return obj; - }, - fromPartial(object: Partial): MsgRemoveAllowedBridgeChain { - const message = createBaseMsgRemoveAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object: MsgRemoveAllowedBridgeChainAmino): MsgRemoveAllowedBridgeChain { - const message = createBaseMsgRemoveAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAmino { - const obj: any = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object: MsgRemoveAllowedBridgeChainAminoMsg): MsgRemoveAllowedBridgeChain { - return MsgRemoveAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAminoMsg { - return { - type: "regen/MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message: MsgRemoveAllowedBridgeChainProtoMsg): MsgRemoveAllowedBridgeChain { - return MsgRemoveAllowedBridgeChain.decode(message.value); - }, - toProto(message: MsgRemoveAllowedBridgeChain): Uint8Array { - return MsgRemoveAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChainResponse(): MsgRemoveAllowedBridgeChainResponse { - return {}; -} -export const MsgRemoveAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - encode(_: MsgRemoveAllowedBridgeChainResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRemoveAllowedBridgeChainResponse { - return {}; - }, - toJSON(_: MsgRemoveAllowedBridgeChainResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_: MsgRemoveAllowedBridgeChainResponseAmino): MsgRemoveAllowedBridgeChainResponse { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - toAmino(_: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRemoveAllowedBridgeChainResponseAminoMsg): MsgRemoveAllowedBridgeChainResponse { - return MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRemoveAllowedBridgeChainResponseProtoMsg): MsgRemoveAllowedBridgeChainResponse { - return MsgRemoveAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message: MsgRemoveAllowedBridgeChainResponse): Uint8Array { - return MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - value: MsgRemoveAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1/types.ts b/packages/api/src/codegen/regen/ecocredit/v1/types.ts deleted file mode 100644 index ce793d09..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1/types.ts +++ /dev/null @@ -1,1128 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - creditClassFee: Coin[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basketFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlistEnabled: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowedDenoms: AllowedDenom[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowedBridgeChains: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - credit_class_fee?: CoinAmino[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basket_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlist_enabled?: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowed_denoms?: AllowedDenomAmino[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowed_bridge_chains?: string[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - basket_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - allowed_denoms: AllowedDenomSDKType[]; - allowed_bridge_chains: string[]; -} -/** Credits represents a simple structure for credits. */ -export interface Credits { - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; - /** amount is the amount of credits. */ - amount: string; -} -export interface CreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Credits"; - value: Uint8Array; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsAmino { - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; - /** amount is the amount of credits. */ - amount?: string; -} -export interface CreditsAminoMsg { - type: "/regen.ecocredit.v1.Credits"; - value: CreditsAmino; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsSDKType { - batch_denom: string; - amount: string; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuance { - /** recipient is the address of the account receiving the issued credits. */ - recipient: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchIssuance"; - value: Uint8Array; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceAmino { - /** recipient is the address of the account receiving the issued credits. */ - recipient?: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1.BatchIssuance"; - value: BatchIssuanceAmino; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTx { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note: string; -} -export interface OriginTxProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTx"; - value: Uint8Array; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxAmino { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract?: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note?: string; -} -export interface OriginTxAminoMsg { - type: "/regen.ecocredit.v1.OriginTx"; - value: OriginTxAmino; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxSDKType { - id: string; - source: string; - contract: string; - note: string; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - creditType?: CreditType; -} -export interface CreditTypeProposalProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; - value: Uint8Array; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - credit_type?: CreditTypeAmino; -} -export interface CreditTypeProposalAminoMsg { - type: "/regen.ecocredit.v1.CreditTypeProposal"; - value: CreditTypeProposalAmino; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalSDKType { - title: string; - description: string; - credit_type?: CreditTypeSDKType; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedDenom"; - value: Uint8Array; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -function createBaseParams(): Params { - return { - creditClassFee: [], - basketFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - allowedDenoms: [], - allowedBridgeChains: [] - }; -} -export const Params = { - typeUrl: "/regen.ecocredit.v1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.creditClassFee) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.basketFee) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(26).string(v!); - } - if (message.allowlistEnabled === true) { - writer.uint32(32).bool(message.allowlistEnabled); - } - for (const v of message.allowedDenoms) { - AllowedDenom.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.allowedBridgeChains) { - writer.uint32(50).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.basketFee.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.allowedClassCreators.push(reader.string()); - break; - case 4: - message.allowlistEnabled = reader.bool(); - break; - case 5: - message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); - break; - case 6: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - creditClassFee: Array.isArray(object?.creditClassFee) ? object.creditClassFee.map((e: any) => Coin.fromJSON(e)) : [], - basketFee: Array.isArray(object?.basketFee) ? object.basketFee.map((e: any) => Coin.fromJSON(e)) : [], - allowedClassCreators: Array.isArray(object?.allowedClassCreators) ? object.allowedClassCreators.map((e: any) => String(e)) : [], - allowlistEnabled: isSet(object.allowlistEnabled) ? Boolean(object.allowlistEnabled) : false, - allowedDenoms: Array.isArray(object?.allowedDenoms) ? object.allowedDenoms.map((e: any) => AllowedDenom.fromJSON(e)) : [], - allowedBridgeChains: Array.isArray(object?.allowedBridgeChains) ? object.allowedBridgeChains.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - if (message.creditClassFee) { - obj.creditClassFee = message.creditClassFee.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.creditClassFee = []; - } - if (message.basketFee) { - obj.basketFee = message.basketFee.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.basketFee = []; - } - if (message.allowedClassCreators) { - obj.allowedClassCreators = message.allowedClassCreators.map(e => e); - } else { - obj.allowedClassCreators = []; - } - message.allowlistEnabled !== undefined && (obj.allowlistEnabled = message.allowlistEnabled); - if (message.allowedDenoms) { - obj.allowedDenoms = message.allowedDenoms.map(e => e ? AllowedDenom.toJSON(e) : undefined); - } else { - obj.allowedDenoms = []; - } - if (message.allowedBridgeChains) { - obj.allowedBridgeChains = message.allowedBridgeChains.map(e => e); - } else { - obj.allowedBridgeChains = []; - } - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; - message.basketFee = object.basketFee?.map(e => Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; - message.basketFee = object.basket_fee?.map(e => Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.basketFee) { - obj.basket_fee = message.basketFee.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.basket_fee = message.basketFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); - } else { - obj.allowed_denoms = message.allowedDenoms; - } - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseCredits(): Credits { - return { - batchDenom: "", - amount: "" - }; -} -export const Credits = { - typeUrl: "/regen.ecocredit.v1.Credits", - encode(message: Credits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Credits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Credits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: Credits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): Credits { - const message = createBaseCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: CreditsAmino): Credits { - const message = createBaseCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: Credits): CreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: CreditsAminoMsg): Credits { - return Credits.fromAmino(object.value); - }, - fromProtoMsg(message: CreditsProtoMsg): Credits { - return Credits.decode(message.value); - }, - toProto(message: Credits): Uint8Array { - return Credits.encode(message).finish(); - }, - toProtoMsg(message: Credits): CreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.Credits", - value: Credits.encode(message).finish() - }; - } -}; -function createBaseBatchIssuance(): BatchIssuance { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const BatchIssuance = { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - encode(message: BatchIssuance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchIssuance { - return { - recipient: isSet(object.recipient) ? String(object.recipient) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - retirementJurisdiction: isSet(object.retirementJurisdiction) ? String(object.retirementJurisdiction) : "", - retirementReason: isSet(object.retirementReason) ? String(object.retirementReason) : "" - }; - }, - toJSON(message: BatchIssuance): unknown { - const obj: any = {}; - message.recipient !== undefined && (obj.recipient = message.recipient); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.retirementJurisdiction !== undefined && (obj.retirementJurisdiction = message.retirementJurisdiction); - message.retirementReason !== undefined && (obj.retirementReason = message.retirementReason); - return obj; - }, - fromPartial(object: Partial): BatchIssuance { - const message = createBaseBatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object: BatchIssuanceAmino): BatchIssuance { - const message = createBaseBatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message: BatchIssuance): BatchIssuanceAmino { - const obj: any = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object: BatchIssuanceAminoMsg): BatchIssuance { - return BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message: BatchIssuanceProtoMsg): BatchIssuance { - return BatchIssuance.decode(message.value); - }, - toProto(message: BatchIssuance): Uint8Array { - return BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - value: BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseOriginTx(): OriginTx { - return { - id: "", - source: "", - contract: "", - note: "" - }; -} -export const OriginTx = { - typeUrl: "/regen.ecocredit.v1.OriginTx", - encode(message: OriginTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.source !== "") { - writer.uint32(18).string(message.source); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.note !== "") { - writer.uint32(34).string(message.note); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): OriginTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.source = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.note = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): OriginTx { - return { - id: isSet(object.id) ? String(object.id) : "", - source: isSet(object.source) ? String(object.source) : "", - contract: isSet(object.contract) ? String(object.contract) : "", - note: isSet(object.note) ? String(object.note) : "" - }; - }, - toJSON(message: OriginTx): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - message.source !== undefined && (obj.source = message.source); - message.contract !== undefined && (obj.contract = message.contract); - message.note !== undefined && (obj.note = message.note); - return obj; - }, - fromPartial(object: Partial): OriginTx { - const message = createBaseOriginTx(); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - message.contract = object.contract ?? ""; - message.note = object.note ?? ""; - return message; - }, - fromAmino(object: OriginTxAmino): OriginTx { - const message = createBaseOriginTx(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.note !== undefined && object.note !== null) { - message.note = object.note; - } - return message; - }, - toAmino(message: OriginTx): OriginTxAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.note = message.note === "" ? undefined : message.note; - return obj; - }, - fromAminoMsg(object: OriginTxAminoMsg): OriginTx { - return OriginTx.fromAmino(object.value); - }, - fromProtoMsg(message: OriginTxProtoMsg): OriginTx { - return OriginTx.decode(message.value); - }, - toProto(message: OriginTx): Uint8Array { - return OriginTx.encode(message).finish(); - }, - toProtoMsg(message: OriginTx): OriginTxProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.OriginTx", - value: OriginTx.encode(message).finish() - }; - } -}; -function createBaseCreditTypeProposal(): CreditTypeProposal { - return { - title: "", - description: "", - creditType: undefined - }; -} -export const CreditTypeProposal = { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - encode(message: CreditTypeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CreditTypeProposal { - return { - title: isSet(object.title) ? String(object.title) : "", - description: isSet(object.description) ? String(object.description) : "", - creditType: isSet(object.creditType) ? CreditType.fromJSON(object.creditType) : undefined - }; - }, - toJSON(message: CreditTypeProposal): unknown { - const obj: any = {}; - message.title !== undefined && (obj.title = message.title); - message.description !== undefined && (obj.description = message.description); - message.creditType !== undefined && (obj.creditType = message.creditType ? CreditType.toJSON(message.creditType) : undefined); - return obj; - }, - fromPartial(object: Partial): CreditTypeProposal { - const message = createBaseCreditTypeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object: CreditTypeProposalAmino): CreditTypeProposal { - const message = createBaseCreditTypeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message: CreditTypeProposal): CreditTypeProposalAmino { - const obj: any = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object: CreditTypeProposalAminoMsg): CreditTypeProposal { - return CreditTypeProposal.fromAmino(object.value); - }, - fromProtoMsg(message: CreditTypeProposalProtoMsg): CreditTypeProposal { - return CreditTypeProposal.decode(message.value); - }, - toProto(message: CreditTypeProposal): Uint8Array { - return CreditTypeProposal.encode(message).finish(); - }, - toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - value: CreditTypeProposal.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom(): AllowedDenom { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const AllowedDenom = { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - encode(message: AllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): AllowedDenom { - return { - bankDenom: isSet(object.bankDenom) ? String(object.bankDenom) : "", - displayDenom: isSet(object.displayDenom) ? String(object.displayDenom) : "", - exponent: isSet(object.exponent) ? Number(object.exponent) : 0 - }; - }, - toJSON(message: AllowedDenom): unknown { - const obj: any = {}; - message.bankDenom !== undefined && (obj.bankDenom = message.bankDenom); - message.displayDenom !== undefined && (obj.displayDenom = message.displayDenom); - message.exponent !== undefined && (obj.exponent = Math.round(message.exponent)); - return obj; - }, - fromPartial(object: Partial): AllowedDenom { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object: AllowedDenomAmino): AllowedDenom { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message: AllowedDenom): AllowedDenomAmino { - const obj: any = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom { - return AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom { - return AllowedDenom.decode(message.value); - }, - toProto(message: AllowedDenom): Uint8Array { - return AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - value: AllowedDenom.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/events.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/events.ts deleted file mode 100644 index 8b3be7ca..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/events.ts +++ /dev/null @@ -1,901 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; - admin: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer: string; - /** total_amount is the total number of credits in the credit batch. */ - totalAmount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer?: string; - /** total_amount is the total number of credits in the credit batch. */ - total_amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - start_date: string; - end_date: string; - project_location: string; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceive { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender: string; - /** recipient is the recipient of the credits. */ - recipient: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basketDenom: string; -} -export interface EventReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive"; - value: Uint8Array; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveAmino { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender?: string; - /** recipient is the recipient of the credits. */ - recipient?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basket_denom?: string; -} -export interface EventReceiveAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventReceive"; - value: EventReceiveAmino; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - basket_denom: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - retirer: string; - batch_denom: string; - amount: string; - location: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - canceller: string; - batch_denom: string; - amount: string; -} -function createBaseEventCreateClass(): EventCreateClass { - return { - classId: "", - admin: "" - }; -} -export const EventCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - encode(message: EventCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateClass { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - admin: isSet(object.admin) ? String(object.admin) : "" - }; - }, - toJSON(message: EventCreateClass): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.admin !== undefined && (obj.admin = message.admin); - return obj; - }, - fromPartial(object: Partial): EventCreateClass { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - return message; - }, - fromAmino(object: EventCreateClassAmino): EventCreateClass { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - return message; - }, - toAmino(message: EventCreateClass): EventCreateClassAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - return obj; - }, - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass { - return EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass { - return EventCreateClass.decode(message.value); - }, - toProto(message: EventCreateClass): Uint8Array { - return EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - value: EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch(): EventCreateBatch { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - startDate: "", - endDate: "", - projectLocation: "" - }; -} -export const EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - encode(message: EventCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.startDate !== "") { - writer.uint32(42).string(message.startDate); - } - if (message.endDate !== "") { - writer.uint32(50).string(message.endDate); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.startDate = reader.string(); - break; - case 6: - message.endDate = reader.string(); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCreateBatch { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - issuer: isSet(object.issuer) ? String(object.issuer) : "", - totalAmount: isSet(object.totalAmount) ? String(object.totalAmount) : "", - startDate: isSet(object.startDate) ? String(object.startDate) : "", - endDate: isSet(object.endDate) ? String(object.endDate) : "", - projectLocation: isSet(object.projectLocation) ? String(object.projectLocation) : "" - }; - }, - toJSON(message: EventCreateBatch): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.issuer !== undefined && (obj.issuer = message.issuer); - message.totalAmount !== undefined && (obj.totalAmount = message.totalAmount); - message.startDate !== undefined && (obj.startDate = message.startDate); - message.endDate !== undefined && (obj.endDate = message.endDate); - message.projectLocation !== undefined && (obj.projectLocation = message.projectLocation); - return obj; - }, - fromPartial(object: Partial): EventCreateBatch { - const message = createBaseEventCreateBatch(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.startDate = object.startDate ?? ""; - message.endDate = object.endDate ?? ""; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object: EventCreateBatchAmino): EventCreateBatch { - const message = createBaseEventCreateBatch(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = object.start_date; - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = object.end_date; - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message: EventCreateBatch): EventCreateBatchAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.start_date = message.startDate === "" ? undefined : message.startDate; - obj.end_date = message.endDate === "" ? undefined : message.endDate; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch { - return EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch { - return EventCreateBatch.decode(message.value); - }, - toProto(message: EventCreateBatch): Uint8Array { - return EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - value: EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventReceive(): EventReceive { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - basketDenom: "" - }; -} -export const EventReceive = { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - encode(message: EventReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - if (message.basketDenom !== "") { - writer.uint32(50).string(message.basketDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventReceive { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - case 6: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventReceive { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - basketDenom: isSet(object.basketDenom) ? String(object.basketDenom) : "" - }; - }, - toJSON(message: EventReceive): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.recipient !== undefined && (obj.recipient = message.recipient); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.basketDenom !== undefined && (obj.basketDenom = message.basketDenom); - return obj; - }, - fromPartial(object: Partial): EventReceive { - const message = createBaseEventReceive(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object: EventReceiveAmino): EventReceive { - const message = createBaseEventReceive(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message: EventReceive): EventReceiveAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object: EventReceiveAminoMsg): EventReceive { - return EventReceive.fromAmino(object.value); - }, - fromProtoMsg(message: EventReceiveProtoMsg): EventReceive { - return EventReceive.decode(message.value); - }, - toProto(message: EventReceive): Uint8Array { - return EventReceive.encode(message).finish(); - }, - toProtoMsg(message: EventReceive): EventReceiveProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - value: EventReceive.encode(message).finish() - }; - } -}; -function createBaseEventRetire(): EventRetire { - return { - retirer: "", - batchDenom: "", - amount: "", - location: "" - }; -} -export const EventRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - encode(message: EventRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.retirer !== "") { - writer.uint32(10).string(message.retirer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.location !== "") { - writer.uint32(34).string(message.location); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.retirer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventRetire { - return { - retirer: isSet(object.retirer) ? String(object.retirer) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "", - location: isSet(object.location) ? String(object.location) : "" - }; - }, - toJSON(message: EventRetire): unknown { - const obj: any = {}; - message.retirer !== undefined && (obj.retirer = message.retirer); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - message.location !== undefined && (obj.location = message.location); - return obj; - }, - fromPartial(object: Partial): EventRetire { - const message = createBaseEventRetire(); - message.retirer = object.retirer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object: EventRetireAmino): EventRetire { - const message = createBaseEventRetire(); - if (object.retirer !== undefined && object.retirer !== null) { - message.retirer = object.retirer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message: EventRetire): EventRetireAmino { - const obj: any = {}; - obj.retirer = message.retirer === "" ? undefined : message.retirer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object: EventRetireAminoMsg): EventRetire { - return EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message: EventRetireProtoMsg): EventRetire { - return EventRetire.decode(message.value); - }, - toProto(message: EventRetire): Uint8Array { - return EventRetire.encode(message).finish(); - }, - toProtoMsg(message: EventRetire): EventRetireProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - value: EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel(): EventCancel { - return { - canceller: "", - batchDenom: "", - amount: "" - }; -} -export const EventCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - encode(message: EventCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.canceller !== "") { - writer.uint32(10).string(message.canceller); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.canceller = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventCancel { - return { - canceller: isSet(object.canceller) ? String(object.canceller) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: EventCancel): unknown { - const obj: any = {}; - message.canceller !== undefined && (obj.canceller = message.canceller); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): EventCancel { - const message = createBaseEventCancel(); - message.canceller = object.canceller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: EventCancelAmino): EventCancel { - const message = createBaseEventCancel(); - if (object.canceller !== undefined && object.canceller !== null) { - message.canceller = object.canceller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: EventCancel): EventCancelAmino { - const obj: any = {}; - obj.canceller = message.canceller === "" ? undefined : message.canceller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: EventCancelAminoMsg): EventCancel { - return EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message: EventCancelProtoMsg): EventCancel { - return EventCancel.decode(message.value); - }, - toProto(message: EventCancel): Uint8Array { - return EventCancel.encode(message).finish(); - }, - toProtoMsg(message: EventCancel): EventCancelProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - value: EventCancel.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/genesis.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/genesis.ts deleted file mode 100644 index e971f0be..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/genesis.ts +++ /dev/null @@ -1,523 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisState { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params: Params; - /** class_info is the list of credit class info. */ - classInfo: ClassInfo[]; - /** batch_info is the list of credit batch info. */ - batchInfo: BatchInfo[]; - /** sequences is the list of credit type sequence. */ - sequences: CreditTypeSeq[]; - /** balances is the list of credit batch tradable/retired units. */ - balances: Balance[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies: Supply[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateAmino { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params?: ParamsAmino; - /** class_info is the list of credit class info. */ - class_info?: ClassInfoAmino[]; - /** batch_info is the list of credit batch info. */ - batch_info?: BatchInfoAmino[]; - /** sequences is the list of credit type sequence. */ - sequences?: CreditTypeSeqAmino[]; - /** balances is the list of credit batch tradable/retired units. */ - balances?: BalanceAmino[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies?: SupplyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/regen.ecocredit.v1alpha1.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - class_info: ClassInfoSDKType[]; - batch_info: BatchInfoSDKType[]; - sequences: CreditTypeSeqSDKType[]; - balances: BalanceSDKType[]; - supplies: SupplySDKType[]; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface Balance { - /** address is the account address of the account holding credits. */ - address: string; - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradableBalance: string; - /** retired_balance is the retired balance of the credit batch. */ - retiredBalance: string; -} -export interface BalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Balance"; - value: Uint8Array; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceAmino { - /** address is the account address of the account holding credits. */ - address?: string; - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradable_balance?: string; - /** retired_balance is the retired balance of the credit batch. */ - retired_balance?: string; -} -export interface BalanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.Balance"; - value: BalanceAmino; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceSDKType { - address: string; - batch_denom: string; - tradable_balance: string; - retired_balance: string; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface Supply { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradableSupply: string; - /** retired_supply is the retired supply of the credit batch. */ - retiredSupply: string; -} -export interface SupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Supply"; - value: Uint8Array; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplyAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradable_supply?: string; - /** retired_supply is the retired supply of the credit batch. */ - retired_supply?: string; -} -export interface SupplyAminoMsg { - type: "/regen.ecocredit.v1alpha1.Supply"; - value: SupplyAmino; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplySDKType { - batch_denom: string; - tradable_supply: string; - retired_supply: string; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - classInfo: [], - batchInfo: [], - sequences: [], - balances: [], - supplies: [] - }; -} -export const GenesisState = { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classInfo) { - ClassInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.batchInfo) { - BatchInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.sequences) { - CreditTypeSeq.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.balances) { - Balance.encode(v!, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.supplies) { - Supply.encode(v!, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.classInfo.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 3: - message.batchInfo.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 4: - message.sequences.push(CreditTypeSeq.decode(reader, reader.uint32())); - break; - case 5: - message.balances.push(Balance.decode(reader, reader.uint32())); - break; - case 6: - message.supplies.push(Supply.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): GenesisState { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, - classInfo: Array.isArray(object?.classInfo) ? object.classInfo.map((e: any) => ClassInfo.fromJSON(e)) : [], - batchInfo: Array.isArray(object?.batchInfo) ? object.batchInfo.map((e: any) => BatchInfo.fromJSON(e)) : [], - sequences: Array.isArray(object?.sequences) ? object.sequences.map((e: any) => CreditTypeSeq.fromJSON(e)) : [], - balances: Array.isArray(object?.balances) ? object.balances.map((e: any) => Balance.fromJSON(e)) : [], - supplies: Array.isArray(object?.supplies) ? object.supplies.map((e: any) => Supply.fromJSON(e)) : [] - }; - }, - toJSON(message: GenesisState): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - if (message.classInfo) { - obj.classInfo = message.classInfo.map(e => e ? ClassInfo.toJSON(e) : undefined); - } else { - obj.classInfo = []; - } - if (message.batchInfo) { - obj.batchInfo = message.batchInfo.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batchInfo = []; - } - if (message.sequences) { - obj.sequences = message.sequences.map(e => e ? CreditTypeSeq.toJSON(e) : undefined); - } else { - obj.sequences = []; - } - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toJSON(e) : undefined); - } else { - obj.balances = []; - } - if (message.supplies) { - obj.supplies = message.supplies.map(e => e ? Supply.toJSON(e) : undefined); - } else { - obj.supplies = []; - } - return obj; - }, - fromPartial(object: Partial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.classInfo = object.classInfo?.map(e => ClassInfo.fromPartial(e)) || []; - message.batchInfo = object.batchInfo?.map(e => BatchInfo.fromPartial(e)) || []; - message.sequences = object.sequences?.map(e => CreditTypeSeq.fromPartial(e)) || []; - message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; - message.supplies = object.supplies?.map(e => Supply.fromPartial(e)) || []; - return message; - }, - fromAmino(object: GenesisStateAmino): GenesisState { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.classInfo = object.class_info?.map(e => ClassInfo.fromAmino(e)) || []; - message.batchInfo = object.batch_info?.map(e => BatchInfo.fromAmino(e)) || []; - message.sequences = object.sequences?.map(e => CreditTypeSeq.fromAmino(e)) || []; - message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; - message.supplies = object.supplies?.map(e => Supply.fromAmino(e)) || []; - return message; - }, - toAmino(message: GenesisState): GenesisStateAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.classInfo) { - obj.class_info = message.classInfo.map(e => e ? ClassInfo.toAmino(e) : undefined); - } else { - obj.class_info = message.classInfo; - } - if (message.batchInfo) { - obj.batch_info = message.batchInfo.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batch_info = message.batchInfo; - } - if (message.sequences) { - obj.sequences = message.sequences.map(e => e ? CreditTypeSeq.toAmino(e) : undefined); - } else { - obj.sequences = message.sequences; - } - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); - } else { - obj.balances = message.balances; - } - if (message.supplies) { - obj.supplies = message.supplies.map(e => e ? Supply.toAmino(e) : undefined); - } else { - obj.supplies = message.supplies; - } - return obj; - }, - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { - return GenesisState.fromAmino(object.value); - }, - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { - return GenesisState.decode(message.value); - }, - toProto(message: GenesisState): Uint8Array { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message: GenesisState): GenesisStateProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance(): Balance { - return { - address: "", - batchDenom: "", - tradableBalance: "", - retiredBalance: "" - }; -} -export const Balance = { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - encode(message: Balance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableBalance !== "") { - writer.uint32(26).string(message.tradableBalance); - } - if (message.retiredBalance !== "") { - writer.uint32(34).string(message.retiredBalance); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Balance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableBalance = reader.string(); - break; - case 4: - message.retiredBalance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Balance { - return { - address: isSet(object.address) ? String(object.address) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableBalance: isSet(object.tradableBalance) ? String(object.tradableBalance) : "", - retiredBalance: isSet(object.retiredBalance) ? String(object.retiredBalance) : "" - }; - }, - toJSON(message: Balance): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = message.address); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableBalance !== undefined && (obj.tradableBalance = message.tradableBalance); - message.retiredBalance !== undefined && (obj.retiredBalance = message.retiredBalance); - return obj; - }, - fromPartial(object: Partial): Balance { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableBalance = object.tradableBalance ?? ""; - message.retiredBalance = object.retiredBalance ?? ""; - return message; - }, - fromAmino(object: BalanceAmino): Balance { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_balance !== undefined && object.tradable_balance !== null) { - message.tradableBalance = object.tradable_balance; - } - if (object.retired_balance !== undefined && object.retired_balance !== null) { - message.retiredBalance = object.retired_balance; - } - return message; - }, - toAmino(message: Balance): BalanceAmino { - const obj: any = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; - obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; - return obj; - }, - fromAminoMsg(object: BalanceAminoMsg): Balance { - return Balance.fromAmino(object.value); - }, - fromProtoMsg(message: BalanceProtoMsg): Balance { - return Balance.decode(message.value); - }, - toProto(message: Balance): Uint8Array { - return Balance.encode(message).finish(); - }, - toProtoMsg(message: Balance): BalanceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - value: Balance.encode(message).finish() - }; - } -}; -function createBaseSupply(): Supply { - return { - batchDenom: "", - tradableSupply: "", - retiredSupply: "" - }; -} -export const Supply = { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - encode(message: Supply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableSupply !== "") { - writer.uint32(18).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(26).string(message.retiredSupply); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Supply { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableSupply = reader.string(); - break; - case 3: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Supply { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableSupply: isSet(object.tradableSupply) ? String(object.tradableSupply) : "", - retiredSupply: isSet(object.retiredSupply) ? String(object.retiredSupply) : "" - }; - }, - toJSON(message: Supply): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableSupply !== undefined && (obj.tradableSupply = message.tradableSupply); - message.retiredSupply !== undefined && (obj.retiredSupply = message.retiredSupply); - return obj; - }, - fromPartial(object: Partial): Supply { - const message = createBaseSupply(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object: SupplyAmino): Supply { - const message = createBaseSupply(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message: Supply): SupplyAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object: SupplyAminoMsg): Supply { - return Supply.fromAmino(object.value); - }, - fromProtoMsg(message: SupplyProtoMsg): Supply { - return Supply.decode(message.value); - }, - toProto(message: Supply): Uint8Array { - return Supply.encode(message).finish(); - }, - toProtoMsg(message: Supply): SupplyProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - value: Supply.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.lcd.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.lcd.ts deleted file mode 100644 index bd0cec64..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.lcd.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params: QueryClassesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassInfo queries for information on a credit class. */ - async classInfo(params: QueryClassInfoRequest): Promise { - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches in the given credit class with pagination. */ - async batches(params: QueryBatchesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; - return await this.req.get(endpoint, options); - } - /* BatchInfo queries for information on a credit batch. */ - async batchInfo(params: QueryBatchInfoRequest): Promise { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account. */ - async balance(params: QueryBalanceRequest): Promise { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; - return await this.req.get(endpoint); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params: QuerySupplyRequest): Promise { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params: QueryCreditTypesRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1alpha1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `regen/ecocredit/v1alpha1/params`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.ts deleted file mode 100644 index 242518c5..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1alpha1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** ClassInfo queries for information on a credit class. */ - classInfo(request: QueryClassInfoRequest): Promise; - /** Batches queries for all batches in the given credit class with pagination. */ - batches(request: QueryBatchesRequest): Promise; - /** BatchInfo queries for information on a credit batch. */ - batchInfo(request: QueryBatchInfoRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account. - */ - balance(request: QueryBalanceRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** Params queries the ecocredit module parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - classes(request: QueryClassesRequest = { - pagination: undefined - }): Promise { - const data = QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); - return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); - } - classInfo(request: QueryClassInfoRequest): Promise { - const data = QueryClassInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); - return promise.then(data => QueryClassInfoResponse.decode(new BinaryReader(data))); - } - batches(request: QueryBatchesRequest): Promise { - const data = QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); - return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); - } - batchInfo(request: QueryBatchInfoRequest): Promise { - const data = QueryBatchInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); - return promise.then(data => QueryBatchInfoResponse.decode(new BinaryReader(data))); - } - balance(request: QueryBalanceRequest): Promise { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - supply(request: QuerySupplyRequest): Promise { - const data = QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); - return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); - } - creditTypes(request: QueryCreditTypesRequest = {}): Promise { - const data = QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); - return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); - } - params(request: QueryParamsRequest = {}): Promise { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request?: QueryClassesRequest): Promise { - return queryService.classes(request); - }, - classInfo(request: QueryClassInfoRequest): Promise { - return queryService.classInfo(request); - }, - batches(request: QueryBatchesRequest): Promise { - return queryService.batches(request); - }, - batchInfo(request: QueryBatchInfoRequest): Promise { - return queryService.batchInfo(request); - }, - balance(request: QueryBalanceRequest): Promise { - return queryService.balance(request); - }, - supply(request: QuerySupplyRequest): Promise { - return queryService.supply(request); - }, - creditTypes(request?: QueryCreditTypesRequest): Promise { - return queryService.creditTypes(request); - }, - params(request?: QueryParamsRequest): Promise { - return queryService.params(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.ts deleted file mode 100644 index 10aaa4bf..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/query.ts +++ /dev/null @@ -1,1620 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest {} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino {} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequest { - /** class_id is the unique ID of credit class to query. */ - classId: string; -} -export interface QueryClassInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: Uint8Array; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestAmino { - /** class_id is the unique ID of credit class to query. */ - class_id?: string; -} -export interface QueryClassInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: QueryClassInfoRequestAmino; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestSDKType { - class_id: string; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponse { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfo; -} -export interface QueryClassInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: Uint8Array; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseAmino { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfoAmino; -} -export interface QueryClassInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: QueryClassInfoResponseAmino; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseSDKType { - info?: ClassInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** class_id is the unique ID of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** class_id is the unique ID of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches within the class. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches within the class. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: Uint8Array; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: QueryBatchInfoRequestAmino; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestSDKType { - batch_denom: string; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponse { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfo; -} -export interface QueryBatchInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: Uint8Array; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseAmino { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfoAmino; -} -export interface QueryBatchInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: QueryBatchInfoResponseAmino; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseSDKType { - info?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** account is the address of the account whose balance is being queried. */ - account: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** account is the address of the account whose balance is being queried. */ - account?: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - account: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** tradable_amount is the decimal number of tradable credits. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits. */ - retiredAmount: string; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** tradable_amount is the decimal number of tradable credits. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits. */ - retired_amount?: string; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - tradable_amount: string; - retired_amount: string; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradableSupply: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retiredSupply: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradable_supply?: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retired_supply?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_supply: string; - retired_supply: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest {} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino {} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType {} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** list of credit types */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** list of credit types */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryParamsRequest { - return {}; - }, - toJSON(_: QueryParamsRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { - return QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { - return QueryParamsRequest.decode(message.value); - }, - toProto(message: QueryParamsRequest): Uint8Array { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryParamsResponse { - return { - params: isSet(object.params) ? Params.fromJSON(object.params) : undefined - }; - }, - toJSON(message: QueryParamsResponse): unknown { - const obj: any = {}; - message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { - const obj: any = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { - return QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { - return QueryParamsResponse.decode(message.value); - }, - toProto(message: QueryParamsResponse): Uint8Array { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesRequest(): QueryClassesRequest { - return { - pagination: undefined - }; -} -export const QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesRequest { - return { - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesRequest): unknown { - const obj: any = {}; - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino { - const obj: any = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest { - return QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest { - return QueryClassesRequest.decode(message.value); - }, - toProto(message: QueryClassesRequest): Uint8Array { - return QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - value: QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse(): QueryClassesResponse { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.classes) { - ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassesResponse { - return { - classes: Array.isArray(object?.classes) ? object.classes.map((e: any) => ClassInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryClassesResponse): unknown { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toJSON(e) : undefined); - } else { - obj.classes = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino { - const obj: any = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse { - return QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse { - return QueryClassesResponse.decode(message.value); - }, - toProto(message: QueryClassesResponse): Uint8Array { - return QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - value: QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoRequest(): QueryClassInfoRequest { - return { - classId: "" - }; -} -export const QueryClassInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - encode(message: QueryClassInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassInfoRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: QueryClassInfoRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): QueryClassInfoRequest { - const message = createBaseQueryClassInfoRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: QueryClassInfoRequestAmino): QueryClassInfoRequest { - const message = createBaseQueryClassInfoRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: QueryClassInfoRequest): QueryClassInfoRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: QueryClassInfoRequestAminoMsg): QueryClassInfoRequest { - return QueryClassInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassInfoRequestProtoMsg): QueryClassInfoRequest { - return QueryClassInfoRequest.decode(message.value); - }, - toProto(message: QueryClassInfoRequest): Uint8Array { - return QueryClassInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - value: QueryClassInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoResponse(): QueryClassInfoResponse { - return { - info: undefined - }; -} -export const QueryClassInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - encode(message: QueryClassInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.info !== undefined) { - ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryClassInfoResponse { - return { - info: isSet(object.info) ? ClassInfo.fromJSON(object.info) : undefined - }; - }, - toJSON(message: QueryClassInfoResponse): unknown { - const obj: any = {}; - message.info !== undefined && (obj.info = message.info ? ClassInfo.toJSON(message.info) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryClassInfoResponse { - const message = createBaseQueryClassInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? ClassInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object: QueryClassInfoResponseAmino): QueryClassInfoResponse { - const message = createBaseQueryClassInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = ClassInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message: QueryClassInfoResponse): QueryClassInfoResponseAmino { - const obj: any = {}; - obj.info = message.info ? ClassInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object: QueryClassInfoResponseAminoMsg): QueryClassInfoResponse { - return QueryClassInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryClassInfoResponseProtoMsg): QueryClassInfoResponse { - return QueryClassInfoResponse.decode(message.value); - }, - toProto(message: QueryClassInfoResponse): Uint8Array { - return QueryClassInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - value: QueryClassInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest(): QueryBatchesRequest { - return { - classId: "", - pagination: undefined - }; -} -export const QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - encode(message: QueryBatchesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesRequest { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesRequest): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesRequest { - const message = createBaseQueryBatchesRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest { - const message = createBaseQueryBatchesRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest { - return QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest { - return QueryBatchesRequest.decode(message.value); - }, - toProto(message: QueryBatchesRequest): Uint8Array { - return QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - value: QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse(): QueryBatchesResponse { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - encode(message: QueryBatchesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.batches) { - BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchesResponse { - return { - batches: Array.isArray(object?.batches) ? object.batches.map((e: any) => BatchInfo.fromJSON(e)) : [], - pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined - }; - }, - toJSON(message: QueryBatchesResponse): unknown { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toJSON(e) : undefined); - } else { - obj.batches = []; - } - message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchesResponse { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino { - const obj: any = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse { - return QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse { - return QueryBatchesResponse.decode(message.value); - }, - toProto(message: QueryBatchesResponse): Uint8Array { - return QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - value: QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoRequest(): QueryBatchInfoRequest { - return { - batchDenom: "" - }; -} -export const QueryBatchInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - encode(message: QueryBatchInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchInfoRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QueryBatchInfoRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QueryBatchInfoRequest { - const message = createBaseQueryBatchInfoRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QueryBatchInfoRequestAmino): QueryBatchInfoRequest { - const message = createBaseQueryBatchInfoRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QueryBatchInfoRequest): QueryBatchInfoRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QueryBatchInfoRequestAminoMsg): QueryBatchInfoRequest { - return QueryBatchInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchInfoRequestProtoMsg): QueryBatchInfoRequest { - return QueryBatchInfoRequest.decode(message.value); - }, - toProto(message: QueryBatchInfoRequest): Uint8Array { - return QueryBatchInfoRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - value: QueryBatchInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoResponse(): QueryBatchInfoResponse { - return { - info: undefined - }; -} -export const QueryBatchInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - encode(message: QueryBatchInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.info !== undefined) { - BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBatchInfoResponse { - return { - info: isSet(object.info) ? BatchInfo.fromJSON(object.info) : undefined - }; - }, - toJSON(message: QueryBatchInfoResponse): unknown { - const obj: any = {}; - message.info !== undefined && (obj.info = message.info ? BatchInfo.toJSON(message.info) : undefined); - return obj; - }, - fromPartial(object: Partial): QueryBatchInfoResponse { - const message = createBaseQueryBatchInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? BatchInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object: QueryBatchInfoResponseAmino): QueryBatchInfoResponse { - const message = createBaseQueryBatchInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = BatchInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message: QueryBatchInfoResponse): QueryBatchInfoResponseAmino { - const obj: any = {}; - obj.info = message.info ? BatchInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object: QueryBatchInfoResponseAminoMsg): QueryBatchInfoResponse { - return QueryBatchInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBatchInfoResponseProtoMsg): QueryBatchInfoResponse { - return QueryBatchInfoResponse.decode(message.value); - }, - toProto(message: QueryBatchInfoResponse): Uint8Array { - return QueryBatchInfoResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - value: QueryBatchInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest(): QueryBalanceRequest { - return { - account: "", - batchDenom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.account !== "") { - writer.uint32(10).string(message.account); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceRequest { - return { - account: isSet(object.account) ? String(object.account) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QueryBalanceRequest): unknown { - const obj: any = {}; - message.account !== undefined && (obj.account = message.account); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - message.account = object.account ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { - const obj: any = {}; - obj.account = message.account === "" ? undefined : message.account; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { - return QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message: QueryBalanceRequest): Uint8Array { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse(): QueryBalanceResponse { - return { - tradableAmount: "", - retiredAmount: "" - }; -} -export const QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryBalanceResponse { - return { - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "" - }; - }, - toJSON(message: QueryBalanceResponse): unknown { - const obj: any = {}; - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - return obj; - }, - fromPartial(object: Partial): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { - const obj: any = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { - return QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message: QueryBalanceResponse): Uint8Array { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest(): QuerySupplyRequest { - return { - batchDenom: "" - }; -} -export const QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyRequest { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: QuerySupplyRequest): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest { - return QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest { - return QuerySupplyRequest.decode(message.value); - }, - toProto(message: QuerySupplyRequest): Uint8Array { - return QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - value: QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse(): QuerySupplyResponse { - return { - tradableSupply: "", - retiredSupply: "" - }; -} -export const QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tradableSupply !== "") { - writer.uint32(10).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(18).string(message.retiredSupply); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableSupply = reader.string(); - break; - case 2: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QuerySupplyResponse { - return { - tradableSupply: isSet(object.tradableSupply) ? String(object.tradableSupply) : "", - retiredSupply: isSet(object.retiredSupply) ? String(object.retiredSupply) : "" - }; - }, - toJSON(message: QuerySupplyResponse): unknown { - const obj: any = {}; - message.tradableSupply !== undefined && (obj.tradableSupply = message.tradableSupply); - message.retiredSupply !== undefined && (obj.retiredSupply = message.retiredSupply); - return obj; - }, - fromPartial(object: Partial): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino { - const obj: any = {}; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse { - return QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse { - return QuerySupplyResponse.decode(message.value); - }, - toProto(message: QuerySupplyResponse): Uint8Array { - return QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - value: QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest(): QueryCreditTypesRequest { - return {}; -} -export const QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - encode(_: QueryCreditTypesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): QueryCreditTypesRequest { - return {}; - }, - toJSON(_: QueryCreditTypesRequest): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): QueryCreditTypesRequest { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest { - return QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest { - return QueryCreditTypesRequest.decode(message.value); - }, - toProto(message: QueryCreditTypesRequest): Uint8Array { - return QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - value: QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse(): QueryCreditTypesResponse { - return { - creditTypes: [] - }; -} -export const QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - encode(message: QueryCreditTypesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.creditTypes) { - CreditType.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryCreditTypesResponse { - return { - creditTypes: Array.isArray(object?.creditTypes) ? object.creditTypes.map((e: any) => CreditType.fromJSON(e)) : [] - }; - }, - toJSON(message: QueryCreditTypesResponse): unknown { - const obj: any = {}; - if (message.creditTypes) { - obj.creditTypes = message.creditTypes.map(e => e ? CreditType.toJSON(e) : undefined); - } else { - obj.creditTypes = []; - } - return obj; - }, - fromPartial(object: Partial): QueryCreditTypesResponse { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino { - const obj: any = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse { - return QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse { - return QueryCreditTypesResponse.decode(message.value); - }, - toProto(message: QueryCreditTypesResponse): Uint8Array { - return QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - value: QueryCreditTypesResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.amino.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.amino.ts deleted file mode 100644 index 749c8871..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.amino.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", - toAmino: MsgCreateClass.toAmino, - fromAmino: MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - toAmino: MsgCreateBatch.toAmino, - fromAmino: MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: "/regen.ecocredit.v1alpha1.MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", - toAmino: MsgRetire.toAmino, - fromAmino: MsgRetire.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", - toAmino: MsgCancel.toAmino, - fromAmino: MsgCancel.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - toAmino: MsgUpdateClassAdmin.toAmino, - fromAmino: MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - toAmino: MsgUpdateClassIssuers.toAmino, - fromAmino: MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - toAmino: MsgUpdateClassMetadata.toAmino, - fromAmino: MsgUpdateClassMetadata.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.registry.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.registry.ts deleted file mode 100644 index 23ce97aa..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.registry.ts +++ /dev/null @@ -1,260 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.v1alpha1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", MsgUpdateClassMetadata]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.encode(value).finish() - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.encode(value).finish() - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.encode(value).finish() - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value - }; - } - }, - toJSON: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.toJSON(value) - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.toJSON(value) - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.toJSON(value) - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.toJSON(value) - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.toJSON(value) - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.toJSON(value) - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.toJSON(value) - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.toJSON(value) - }; - } - }, - fromJSON: { - createClass(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.fromJSON(value) - }; - }, - createBatch(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.fromJSON(value) - }; - }, - send(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.fromJSON(value) - }; - }, - retire(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.fromJSON(value) - }; - }, - cancel(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.fromJSON(value) - }; - }, - updateClassAdmin(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromJSON(value) - }; - }, - updateClassIssuers(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromJSON(value) - }; - }, - updateClassMetadata(value: any) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromJSON(value) - }; - } - }, - fromPartial: { - createClass(value: MsgCreateClass) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.fromPartial(value) - }; - }, - createBatch(value: MsgCreateBatch) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.fromPartial(value) - }; - }, - send(value: MsgSend) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - retire(value: MsgRetire) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.fromPartial(value) - }; - }, - cancel(value: MsgCancel) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value: MsgUpdateClassAdmin) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value: MsgUpdateClassIssuers) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value: MsgUpdateClassMetadata) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.ts deleted file mode 100644 index a92a34bb..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1alpha1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class with an approved list of issuers and - * optional metadata. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateBatch creates a new batch of credits for an existing credit class. - * This will create a new batch denom with a fixed supply. Issued credits can - * be distributed to recipients in either tradable or retired form. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * Send sends tradable credits from one account to another account. Sent - * credits can either be tradable or retired on receipt. - */ - send(request: MsgSend): Promise; - /** Retire retires a specified number of credits in the holder's account. */ - retire(request: MsgRetire): Promise; - /** - * Cancel removes a number of credits from the holder's account and also - * deducts them from the tradable supply, effectively cancelling their - * issuance on Regen Ledger - */ - cancel(request: MsgCancel): Promise; - /** UpdateClassAdmin updates the credit class admin */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** UpdateClassIssuers updates the credit class issuer list */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** UpdateClassMetadata updates the credit class metadata */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createBatch = this.createBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - } - createClass(request: MsgCreateClass): Promise { - const data = MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); - return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); - } - createBatch(request: MsgCreateBatch): Promise { - const data = MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); - return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); - } - send(request: MsgSend): Promise { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - retire(request: MsgRetire): Promise { - const data = MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); - return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); - } - cancel(request: MsgCancel): Promise { - const data = MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); - return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); - } - updateClassAdmin(request: MsgUpdateClassAdmin): Promise { - const data = MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); - return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); - } - updateClassIssuers(request: MsgUpdateClassIssuers): Promise { - const data = MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); - return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); - } - updateClassMetadata(request: MsgUpdateClassMetadata): Promise { - const data = MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); - return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.ts deleted file mode 100644 index 61db3a7a..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/tx.ts +++ /dev/null @@ -1,2472 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** admin is the address of the account that created the credit class. */ - admin: string; - /** issuers are the account addresses of the approved issuers. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - creditTypeName: string; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** admin is the address of the account that created the credit class. */ - admin?: string; - /** issuers are the account addresses of the approved issuers. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - credit_type_name?: string; -} -export interface MsgCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type_name: string; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique ID of the newly created credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique ID of the newly created credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** issuer is the address of the batch issuer. */ - issuer: string; - /** class_id is the unique ID of the class. */ - classId: string; - /** issuance are the credits issued in the batch. */ - issuance: MsgCreateBatch_BatchIssuance[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - projectLocation: string; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** issuer is the address of the batch issuer. */ - issuer?: string; - /** class_id is the unique ID of the class. */ - class_id?: string; - /** issuance are the credits issued in the batch. */ - issuance?: MsgCreateBatch_BatchIssuanceAmino[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - project_location?: string; -} -export interface MsgCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - class_id: string; - issuance: MsgCreateBatch_BatchIssuanceSDKType[]; - metadata: Uint8Array; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - project_location: string; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuance { - /** recipient is the account of the recipient. */ - recipient: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgCreateBatch_BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: Uint8Array; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceAmino { - /** recipient is the account of the recipient. */ - recipient?: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgCreateBatch_BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: MsgCreateBatch_BatchIssuanceAmino; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** sender is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** sender is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse {} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino {} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being retired. */ - credits: MsgRetire_RetireCredits[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being retired. */ - credits?: MsgRetire_RetireCreditsAmino[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface MsgRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - holder: string; - credits: MsgRetire_RetireCreditsSDKType[]; - location: string; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgRetire_RetireCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: Uint8Array; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgRetire_RetireCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: MsgRetire_RetireCreditsAmino; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse {} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino {} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType {} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being cancelled. */ - credits: MsgCancel_CancelCredits[]; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being cancelled. */ - credits?: MsgCancel_CancelCreditsAmino[]; -} -export interface MsgCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - holder: string; - credits: MsgCancel_CancelCreditsSDKType[]; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgCancel_CancelCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: Uint8Array; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgCancel_CancelCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: MsgCancel_CancelCreditsAmino; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse {} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino {} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType {} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** new_admin is the address of the new admin of the credit class. */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** new_admin is the address of the new admin of the credit class. */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse {} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino {} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType {} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse {} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino {} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType {} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata: Uint8Array; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - metadata: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse {} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino {} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType {} -function createBaseMsgCreateClass(): MsgCreateClass { - return { - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditTypeName: "" - }; -} -export const MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - encode(message: MsgCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v!); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - if (message.creditTypeName !== "") { - writer.uint32(34).string(message.creditTypeName); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.bytes(); - break; - case 4: - message.creditTypeName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateClass { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - issuers: Array.isArray(object?.issuers) ? object.issuers.map((e: any) => String(e)) : [], - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array(), - creditTypeName: isSet(object.creditTypeName) ? String(object.creditTypeName) : "" - }; - }, - toJSON(message: MsgCreateClass): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = []; - } - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - message.creditTypeName !== undefined && (obj.creditTypeName = message.creditTypeName); - return obj; - }, - fromPartial(object: Partial): MsgCreateClass { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditTypeName = object.creditTypeName ?? ""; - return message; - }, - fromAmino(object: MsgCreateClassAmino): MsgCreateClass { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.credit_type_name !== undefined && object.credit_type_name !== null) { - message.creditTypeName = object.credit_type_name; - } - return message; - }, - toAmino(message: MsgCreateClass): MsgCreateClassAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; - return obj; - }, - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass { - return MsgCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass { - return MsgCreateClass.decode(message.value); - }, - toProto(message: MsgCreateClass): Uint8Array { - return MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse(): MsgCreateClassResponse { - return { - classId: "" - }; -} -export const MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - encode(message: MsgCreateClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateClassResponse { - return { - classId: isSet(object.classId) ? String(object.classId) : "" - }; - }, - toJSON(message: MsgCreateClassResponse): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - return obj; - }, - fromPartial(object: Partial): MsgCreateClassResponse { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse { - return MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse { - return MsgCreateClassResponse.decode(message.value); - }, - toProto(message: MsgCreateClassResponse): Uint8Array { - return MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - value: MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch(): MsgCreateBatch { - return { - issuer: "", - classId: "", - issuance: [], - metadata: new Uint8Array(), - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -export const MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - encode(message: MsgCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuance) { - MsgCreateBatch_BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(50).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuance.push(MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateBatch { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - issuance: Array.isArray(object?.issuance) ? object.issuance.map((e: any) => MsgCreateBatch_BatchIssuance.fromJSON(e)) : [], - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array(), - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - projectLocation: isSet(object.projectLocation) ? String(object.projectLocation) : "" - }; - }, - toJSON(message: MsgCreateBatch): unknown { - const obj: any = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.classId !== undefined && (obj.classId = message.classId); - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? MsgCreateBatch_BatchIssuance.toJSON(e) : undefined); - } else { - obj.issuance = []; - } - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.projectLocation !== undefined && (obj.projectLocation = message.projectLocation); - return obj; - }, - fromPartial(object: Partial): MsgCreateBatch { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino { - const obj: any = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); - } else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch { - return MsgCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch { - return MsgCreateBatch.decode(message.value); - }, - toProto(message: MsgCreateBatch): Uint8Array { - return MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch_BatchIssuance(): MsgCreateBatch_BatchIssuance { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -export const MsgCreateBatch_BatchIssuance = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - encode(message: MsgCreateBatch_BatchIssuance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch_BatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateBatch_BatchIssuance { - return { - recipient: isSet(object.recipient) ? String(object.recipient) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - retirementLocation: isSet(object.retirementLocation) ? String(object.retirementLocation) : "" - }; - }, - toJSON(message: MsgCreateBatch_BatchIssuance): unknown { - const obj: any = {}; - message.recipient !== undefined && (obj.recipient = message.recipient); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.retirementLocation !== undefined && (obj.retirementLocation = message.retirementLocation); - return obj; - }, - fromPartial(object: Partial): MsgCreateBatch_BatchIssuance { - const message = createBaseMsgCreateBatch_BatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object: MsgCreateBatch_BatchIssuanceAmino): MsgCreateBatch_BatchIssuance { - const message = createBaseMsgCreateBatch_BatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceAmino { - const obj: any = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object: MsgCreateBatch_BatchIssuanceAminoMsg): MsgCreateBatch_BatchIssuance { - return MsgCreateBatch_BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateBatch_BatchIssuanceProtoMsg): MsgCreateBatch_BatchIssuance { - return MsgCreateBatch_BatchIssuance.decode(message.value); - }, - toProto(message: MsgCreateBatch_BatchIssuance): Uint8Array { - return MsgCreateBatch_BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - value: MsgCreateBatch_BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse(): MsgCreateBatchResponse { - return { - batchDenom: "" - }; -} -export const MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - encode(message: MsgCreateBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCreateBatchResponse { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "" - }; - }, - toJSON(message: MsgCreateBatchResponse): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - return obj; - }, - fromPartial(object: Partial): MsgCreateBatchResponse { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse { - return MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse { - return MsgCreateBatchResponse.decode(message.value); - }, - toProto(message: MsgCreateBatchResponse): Uint8Array { - return MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - value: MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend(): MsgSend { - return { - sender: "", - recipient: "", - credits: [] - }; -} -export const MsgSend = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - MsgSend_SendCredits.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend { - return { - sender: isSet(object.sender) ? String(object.sender) : "", - recipient: isSet(object.recipient) ? String(object.recipient) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => MsgSend_SendCredits.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgSend): unknown { - const obj: any = {}; - message.sender !== undefined && (obj.sender = message.sender); - message.recipient !== undefined && (obj.recipient = message.recipient); - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgSend { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgSendAmino): MsgSend { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgSend): MsgSendAmino { - const obj: any = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgSendAminoMsg): MsgSend { - return MsgSend.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSendProtoMsg): MsgSend { - return MsgSend.decode(message.value); - }, - toProto(message: MsgSend): Uint8Array { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message: MsgSend): MsgSendProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits(): MsgSend_SendCredits { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -export const MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - encode(message: MsgSend_SendCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSend_SendCredits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - tradableAmount: isSet(object.tradableAmount) ? String(object.tradableAmount) : "", - retiredAmount: isSet(object.retiredAmount) ? String(object.retiredAmount) : "", - retirementLocation: isSet(object.retirementLocation) ? String(object.retirementLocation) : "" - }; - }, - toJSON(message: MsgSend_SendCredits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.tradableAmount !== undefined && (obj.tradableAmount = message.tradableAmount); - message.retiredAmount !== undefined && (obj.retiredAmount = message.retiredAmount); - message.retirementLocation !== undefined && (obj.retirementLocation = message.retirementLocation); - return obj; - }, - fromPartial(object: Partial): MsgSend_SendCredits { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits { - return MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits { - return MsgSend_SendCredits.decode(message.value); - }, - toProto(message: MsgSend_SendCredits): Uint8Array { - return MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - value: MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse(): MsgSendResponse { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSendResponse { - return {}; - }, - toJSON(_: MsgSendResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_: MsgSendResponseAmino): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_: MsgSendResponse): MsgSendResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { - return MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { - return MsgSendResponse.decode(message.value); - }, - toProto(message: MsgSendResponse): Uint8Array { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire(): MsgRetire { - return { - holder: "", - credits: [], - location: "" - }; -} -export const MsgRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - encode(message: MsgRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - MsgRetire_RetireCredits.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.location !== "") { - writer.uint32(26).string(message.location); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(MsgRetire_RetireCredits.decode(reader, reader.uint32())); - break; - case 3: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRetire { - return { - holder: isSet(object.holder) ? String(object.holder) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => MsgRetire_RetireCredits.fromJSON(e)) : [], - location: isSet(object.location) ? String(object.location) : "" - }; - }, - toJSON(message: MsgRetire): unknown { - const obj: any = {}; - message.holder !== undefined && (obj.holder = message.holder); - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgRetire_RetireCredits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - message.location !== undefined && (obj.location = message.location); - return obj; - }, - fromPartial(object: Partial): MsgRetire { - const message = createBaseMsgRetire(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromPartial(e)) || []; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object: MsgRetireAmino): MsgRetire { - const message = createBaseMsgRetire(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromAmino(e)) || []; - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message: MsgRetire): MsgRetireAmino { - const obj: any = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgRetire_RetireCredits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire { - return MsgRetire.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire { - return MsgRetire.decode(message.value); - }, - toProto(message: MsgRetire): Uint8Array { - return MsgRetire.encode(message).finish(); - }, - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetire_RetireCredits(): MsgRetire_RetireCredits { - return { - batchDenom: "", - amount: "" - }; -} -export const MsgRetire_RetireCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - encode(message: MsgRetire_RetireCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire_RetireCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRetire_RetireCredits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: MsgRetire_RetireCredits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): MsgRetire_RetireCredits { - const message = createBaseMsgRetire_RetireCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: MsgRetire_RetireCreditsAmino): MsgRetire_RetireCredits { - const message = createBaseMsgRetire_RetireCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: MsgRetire_RetireCreditsAminoMsg): MsgRetire_RetireCredits { - return MsgRetire_RetireCredits.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRetire_RetireCreditsProtoMsg): MsgRetire_RetireCredits { - return MsgRetire_RetireCredits.decode(message.value); - }, - toProto(message: MsgRetire_RetireCredits): Uint8Array { - return MsgRetire_RetireCredits.encode(message).finish(); - }, - toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - value: MsgRetire_RetireCredits.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse(): MsgRetireResponse { - return {}; -} -export const MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - encode(_: MsgRetireResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRetireResponse { - return {}; - }, - toJSON(_: MsgRetireResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRetireResponse { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse { - return MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse { - return MsgRetireResponse.decode(message.value); - }, - toProto(message: MsgRetireResponse): Uint8Array { - return MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - value: MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel(): MsgCancel { - return { - holder: "", - credits: [] - }; -} -export const MsgCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - encode(message: MsgCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - MsgCancel_CancelCredits.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(MsgCancel_CancelCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancel { - return { - holder: isSet(object.holder) ? String(object.holder) : "", - credits: Array.isArray(object?.credits) ? object.credits.map((e: any) => MsgCancel_CancelCredits.fromJSON(e)) : [] - }; - }, - toJSON(message: MsgCancel): unknown { - const obj: any = {}; - message.holder !== undefined && (obj.holder = message.holder); - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgCancel_CancelCredits.toJSON(e) : undefined); - } else { - obj.credits = []; - } - return obj; - }, - fromPartial(object: Partial): MsgCancel { - const message = createBaseMsgCancel(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object: MsgCancelAmino): MsgCancel { - const message = createBaseMsgCancel(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message: MsgCancel): MsgCancelAmino { - const obj: any = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgCancel_CancelCredits.toAmino(e) : undefined); - } else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel { - return MsgCancel.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel { - return MsgCancel.decode(message.value); - }, - toProto(message: MsgCancel): Uint8Array { - return MsgCancel.encode(message).finish(); - }, - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancel_CancelCredits(): MsgCancel_CancelCredits { - return { - batchDenom: "", - amount: "" - }; -} -export const MsgCancel_CancelCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - encode(message: MsgCancel_CancelCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel_CancelCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgCancel_CancelCredits { - return { - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - amount: isSet(object.amount) ? String(object.amount) : "" - }; - }, - toJSON(message: MsgCancel_CancelCredits): unknown { - const obj: any = {}; - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.amount !== undefined && (obj.amount = message.amount); - return obj; - }, - fromPartial(object: Partial): MsgCancel_CancelCredits { - const message = createBaseMsgCancel_CancelCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object: MsgCancel_CancelCreditsAmino): MsgCancel_CancelCredits { - const message = createBaseMsgCancel_CancelCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsAmino { - const obj: any = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object: MsgCancel_CancelCreditsAminoMsg): MsgCancel_CancelCredits { - return MsgCancel_CancelCredits.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCancel_CancelCreditsProtoMsg): MsgCancel_CancelCredits { - return MsgCancel_CancelCredits.decode(message.value); - }, - toProto(message: MsgCancel_CancelCredits): Uint8Array { - return MsgCancel_CancelCredits.encode(message).finish(); - }, - toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - value: MsgCancel_CancelCredits.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse(): MsgCancelResponse { - return {}; -} -export const MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - encode(_: MsgCancelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgCancelResponse { - return {}; - }, - toJSON(_: MsgCancelResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgCancelResponse { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse { - return MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse { - return MsgCancelResponse.decode(message.value); - }, - toProto(message: MsgCancelResponse): Uint8Array { - return MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - value: MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin(): MsgUpdateClassAdmin { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -export const MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - encode(message: MsgUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassAdmin { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - newAdmin: isSet(object.newAdmin) ? String(object.newAdmin) : "" - }; - }, - toJSON(message: MsgUpdateClassAdmin): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.newAdmin !== undefined && (obj.newAdmin = message.newAdmin); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassAdmin { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin { - return MsgUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin { - return MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message: MsgUpdateClassAdmin): Uint8Array { - return MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse(): MsgUpdateClassAdminResponse { - return {}; -} -export const MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - encode(_: MsgUpdateClassAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassAdminResponse { - return {}; - }, - toJSON(_: MsgUpdateClassAdminResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassAdminResponse { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse { - return MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse { - return MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassAdminResponse): Uint8Array { - return MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - value: MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers(): MsgUpdateClassIssuers { - return { - admin: "", - classId: "", - issuers: [] - }; -} -export const MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - encode(message: MsgUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuers) { - writer.uint32(26).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassIssuers { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - issuers: Array.isArray(object?.issuers) ? object.issuers.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: MsgUpdateClassIssuers): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = []; - } - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassIssuers { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = message.issuers; - } - return obj; - }, - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers { - return MsgUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers { - return MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message: MsgUpdateClassIssuers): Uint8Array { - return MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse(): MsgUpdateClassIssuersResponse { - return {}; -} -export const MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - encode(_: MsgUpdateClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassIssuersResponse { - return {}; - }, - toJSON(_: MsgUpdateClassIssuersResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassIssuersResponse { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse { - return MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse { - return MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array { - return MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - value: MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata(): MsgUpdateClassMetadata { - return { - admin: "", - classId: "", - metadata: new Uint8Array() - }; -} -export const MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - encode(message: MsgUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgUpdateClassMetadata { - return { - admin: isSet(object.admin) ? String(object.admin) : "", - classId: isSet(object.classId) ? String(object.classId) : "", - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array() - }; - }, - toJSON(message: MsgUpdateClassMetadata): unknown { - const obj: any = {}; - message.admin !== undefined && (obj.admin = message.admin); - message.classId !== undefined && (obj.classId = message.classId); - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): MsgUpdateClassMetadata { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - return message; - }, - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino { - const obj: any = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata { - return MsgUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata { - return MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message: MsgUpdateClassMetadata): Uint8Array { - return MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse(): MsgUpdateClassMetadataResponse { - return {}; -} -export const MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - encode(_: MsgUpdateClassMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgUpdateClassMetadataResponse { - return {}; - }, - toJSON(_: MsgUpdateClassMetadataResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgUpdateClassMetadataResponse { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse { - return MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse { - return MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array { - return MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - value: MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/ecocredit/v1alpha1/types.ts b/packages/api/src/codegen/regen/ecocredit/v1alpha1/types.ts deleted file mode 100644 index 18c761e5..00000000 --- a/packages/api/src/codegen/regen/ecocredit/v1alpha1/types.ts +++ /dev/null @@ -1,999 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../../helpers"; -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; - /** issuers are the approved issuers of the credit class. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - creditType?: CreditType; - /** The number of batches issued in this credit class. */ - numBatches: bigint; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** issuers are the approved issuers of the credit class. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - credit_type?: CreditTypeAmino; - /** The number of batches issued in this credit class. */ - num_batches?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoSDKType { - class_id: string; - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type?: CreditTypeSDKType; - num_batches: bigint; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the issuer of the credit batch. */ - issuer: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - totalAmount: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amountCancelled: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the issuer of the credit batch. */ - issuer?: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - total_amount?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amount_cancelled?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - metadata: Uint8Array; - amount_cancelled: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - project_location: string; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - creditClassFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlistEnabled: boolean; - /** credit_types is a list of definitions for credit types */ - creditTypes: CreditType[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basketCreationFee: Coin[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - credit_class_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlist_enabled?: boolean; - /** credit_types is a list of definitions for credit types */ - credit_types?: CreditTypeAmino[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basket_creation_fee?: CoinAmino[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1alpha1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - credit_types: CreditTypeSDKType[]; - basket_creation_fee: CoinSDKType[]; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit: string; - /** the decimal precision */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name?: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit?: string; - /** the decimal precision */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - name: string; - abbreviation: string; - unit: string; - precision: number; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeq { - /** The credit type abbreviation */ - abbreviation: string; - /** The sequence number of classes of the credit type */ - seqNumber: bigint; -} -export interface CreditTypeSeqProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: Uint8Array; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqAmino { - /** The credit type abbreviation */ - abbreviation?: string; - /** The sequence number of classes of the credit type */ - seq_number?: string; -} -export interface CreditTypeSeqAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: CreditTypeSeqAmino; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqSDKType { - abbreviation: string; - seq_number: bigint; -} -function createBaseClassInfo(): ClassInfo { - return { - classId: "", - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditType: undefined, - numBatches: BigInt(0) - }; -} -export const ClassInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - encode(message: ClassInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(26).string(v!); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); - } - if (message.numBatches !== BigInt(0)) { - writer.uint32(48).uint64(message.numBatches); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - case 6: - message.numBatches = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ClassInfo { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - admin: isSet(object.admin) ? String(object.admin) : "", - issuers: Array.isArray(object?.issuers) ? object.issuers.map((e: any) => String(e)) : [], - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array(), - creditType: isSet(object.creditType) ? CreditType.fromJSON(object.creditType) : undefined, - numBatches: isSet(object.numBatches) ? BigInt(object.numBatches.toString()) : BigInt(0) - }; - }, - toJSON(message: ClassInfo): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.admin !== undefined && (obj.admin = message.admin); - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = []; - } - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - message.creditType !== undefined && (obj.creditType = message.creditType ? CreditType.toJSON(message.creditType) : undefined); - message.numBatches !== undefined && (obj.numBatches = (message.numBatches || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ClassInfo { - const message = createBaseClassInfo(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ClassInfoAmino): ClassInfo { - const message = createBaseClassInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - if (object.num_batches !== undefined && object.num_batches !== null) { - message.numBatches = BigInt(object.num_batches); - } - return message; - }, - toAmino(message: ClassInfo): ClassInfoAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo { - return ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo { - return ClassInfo.decode(message.value); - }, - toProto(message: ClassInfo): Uint8Array { - return ClassInfo.encode(message).finish(); - }, - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - value: ClassInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo(): BatchInfo { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - metadata: new Uint8Array(), - amountCancelled: "", - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -export const BatchInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - encode(message: BatchInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - if (message.amountCancelled !== "") { - writer.uint32(50).string(message.amountCancelled); - } - if (message.startDate !== undefined) { - Timestamp.encode(message.startDate, writer.uint32(58).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(message.endDate, writer.uint32(66).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(74).string(message.projectLocation); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.metadata = reader.bytes(); - break; - case 6: - message.amountCancelled = reader.string(); - break; - case 7: - message.startDate = Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.endDate = Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BatchInfo { - return { - classId: isSet(object.classId) ? String(object.classId) : "", - batchDenom: isSet(object.batchDenom) ? String(object.batchDenom) : "", - issuer: isSet(object.issuer) ? String(object.issuer) : "", - totalAmount: isSet(object.totalAmount) ? String(object.totalAmount) : "", - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array(), - amountCancelled: isSet(object.amountCancelled) ? String(object.amountCancelled) : "", - startDate: isSet(object.startDate) ? fromJsonTimestamp(object.startDate) : undefined, - endDate: isSet(object.endDate) ? fromJsonTimestamp(object.endDate) : undefined, - projectLocation: isSet(object.projectLocation) ? String(object.projectLocation) : "" - }; - }, - toJSON(message: BatchInfo): unknown { - const obj: any = {}; - message.classId !== undefined && (obj.classId = message.classId); - message.batchDenom !== undefined && (obj.batchDenom = message.batchDenom); - message.issuer !== undefined && (obj.issuer = message.issuer); - message.totalAmount !== undefined && (obj.totalAmount = message.totalAmount); - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - message.amountCancelled !== undefined && (obj.amountCancelled = message.amountCancelled); - message.startDate !== undefined && (obj.startDate = fromTimestamp(message.startDate).toISOString()); - message.endDate !== undefined && (obj.endDate = fromTimestamp(message.endDate).toISOString()); - message.projectLocation !== undefined && (obj.projectLocation = message.projectLocation); - return obj; - }, - fromPartial(object: Partial): BatchInfo { - const message = createBaseBatchInfo(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - message.amountCancelled = object.amountCancelled ?? ""; - message.startDate = object.startDate !== undefined && object.startDate !== null ? Timestamp.fromPartial(object.startDate) : undefined; - message.endDate = object.endDate !== undefined && object.endDate !== null ? Timestamp.fromPartial(object.endDate) : undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object: BatchInfoAmino): BatchInfo { - const message = createBaseBatchInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { - message.amountCancelled = object.amount_cancelled; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = Timestamp.fromAmino(object.start_date); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = Timestamp.fromAmino(object.end_date); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message: BatchInfo): BatchInfoAmino { - const obj: any = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; - obj.start_date = message.startDate ? Timestamp.toAmino(message.startDate) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(message.endDate) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo { - return BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo { - return BatchInfo.decode(message.value); - }, - toProto(message: BatchInfo): Uint8Array { - return BatchInfo.encode(message).finish(); - }, - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - value: BatchInfo.encode(message).finish() - }; - } -}; -function createBaseParams(): Params { - return { - creditClassFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - creditTypes: [], - basketCreationFee: [] - }; -} -export const Params = { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.creditClassFee) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(18).string(v!); - } - if (message.allowlistEnabled === true) { - writer.uint32(24).bool(message.allowlistEnabled); - } - for (const v of message.creditTypes) { - CreditType.encode(v!, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.basketCreationFee) { - Coin.encode(v!, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Params { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.allowedClassCreators.push(reader.string()); - break; - case 3: - message.allowlistEnabled = reader.bool(); - break; - case 4: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - case 5: - message.basketCreationFee.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Params { - return { - creditClassFee: Array.isArray(object?.creditClassFee) ? object.creditClassFee.map((e: any) => Coin.fromJSON(e)) : [], - allowedClassCreators: Array.isArray(object?.allowedClassCreators) ? object.allowedClassCreators.map((e: any) => String(e)) : [], - allowlistEnabled: isSet(object.allowlistEnabled) ? Boolean(object.allowlistEnabled) : false, - creditTypes: Array.isArray(object?.creditTypes) ? object.creditTypes.map((e: any) => CreditType.fromJSON(e)) : [], - basketCreationFee: Array.isArray(object?.basketCreationFee) ? object.basketCreationFee.map((e: any) => Coin.fromJSON(e)) : [] - }; - }, - toJSON(message: Params): unknown { - const obj: any = {}; - if (message.creditClassFee) { - obj.creditClassFee = message.creditClassFee.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.creditClassFee = []; - } - if (message.allowedClassCreators) { - obj.allowedClassCreators = message.allowedClassCreators.map(e => e); - } else { - obj.allowedClassCreators = []; - } - message.allowlistEnabled !== undefined && (obj.allowlistEnabled = message.allowlistEnabled); - if (message.creditTypes) { - obj.creditTypes = message.creditTypes.map(e => e ? CreditType.toJSON(e) : undefined); - } else { - obj.creditTypes = []; - } - if (message.basketCreationFee) { - obj.basketCreationFee = message.basketCreationFee.map(e => e ? Coin.toJSON(e) : undefined); - } else { - obj.basketCreationFee = []; - } - return obj; - }, - fromPartial(object: Partial): Params { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - message.basketCreationFee = object.basketCreationFee?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ParamsAmino): Params { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - message.basketCreationFee = object.basket_creation_fee?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message: Params): ParamsAmino { - const obj: any = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } else { - obj.credit_types = message.creditTypes; - } - if (message.basketCreationFee) { - obj.basket_creation_fee = message.basketCreationFee.map(e => e ? Coin.toAmino(e) : undefined); - } else { - obj.basket_creation_fee = message.basketCreationFee; - } - return obj; - }, - fromAminoMsg(object: ParamsAminoMsg): Params { - return Params.fromAmino(object.value); - }, - fromProtoMsg(message: ParamsProtoMsg): Params { - return Params.decode(message.value); - }, - toProto(message: Params): Uint8Array { - return Params.encode(message).finish(); - }, - toProtoMsg(message: Params): ParamsProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseCreditType(): CreditType { - return { - name: "", - abbreviation: "", - unit: "", - precision: 0 - }; -} -export const CreditType = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - encode(message: CreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.abbreviation !== "") { - writer.uint32(18).string(message.abbreviation); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CreditType { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.abbreviation = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CreditType { - return { - name: isSet(object.name) ? String(object.name) : "", - abbreviation: isSet(object.abbreviation) ? String(object.abbreviation) : "", - unit: isSet(object.unit) ? String(object.unit) : "", - precision: isSet(object.precision) ? Number(object.precision) : 0 - }; - }, - toJSON(message: CreditType): unknown { - const obj: any = {}; - message.name !== undefined && (obj.name = message.name); - message.abbreviation !== undefined && (obj.abbreviation = message.abbreviation); - message.unit !== undefined && (obj.unit = message.unit); - message.precision !== undefined && (obj.precision = Math.round(message.precision)); - return obj; - }, - fromPartial(object: Partial): CreditType { - const message = createBaseCreditType(); - message.name = object.name ?? ""; - message.abbreviation = object.abbreviation ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object: CreditTypeAmino): CreditType { - const message = createBaseCreditType(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message: CreditType): CreditTypeAmino { - const obj: any = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object: CreditTypeAminoMsg): CreditType { - return CreditType.fromAmino(object.value); - }, - fromProtoMsg(message: CreditTypeProtoMsg): CreditType { - return CreditType.decode(message.value); - }, - toProto(message: CreditType): Uint8Array { - return CreditType.encode(message).finish(); - }, - toProtoMsg(message: CreditType): CreditTypeProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - value: CreditType.encode(message).finish() - }; - } -}; -function createBaseCreditTypeSeq(): CreditTypeSeq { - return { - abbreviation: "", - seqNumber: BigInt(0) - }; -} -export const CreditTypeSeq = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - encode(message: CreditTypeSeq, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.seqNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.seqNumber); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeSeq(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.seqNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CreditTypeSeq { - return { - abbreviation: isSet(object.abbreviation) ? String(object.abbreviation) : "", - seqNumber: isSet(object.seqNumber) ? BigInt(object.seqNumber.toString()) : BigInt(0) - }; - }, - toJSON(message: CreditTypeSeq): unknown { - const obj: any = {}; - message.abbreviation !== undefined && (obj.abbreviation = message.abbreviation); - message.seqNumber !== undefined && (obj.seqNumber = (message.seqNumber || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): CreditTypeSeq { - const message = createBaseCreditTypeSeq(); - message.abbreviation = object.abbreviation ?? ""; - message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object: CreditTypeSeqAmino): CreditTypeSeq { - const message = createBaseCreditTypeSeq(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.seq_number !== undefined && object.seq_number !== null) { - message.seqNumber = BigInt(object.seq_number); - } - return message; - }, - toAmino(message: CreditTypeSeq): CreditTypeSeqAmino { - const obj: any = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object: CreditTypeSeqAminoMsg): CreditTypeSeq { - return CreditTypeSeq.fromAmino(object.value); - }, - fromProtoMsg(message: CreditTypeSeqProtoMsg): CreditTypeSeq { - return CreditTypeSeq.decode(message.value); - }, - toProto(message: CreditTypeSeq): Uint8Array { - return CreditTypeSeq.encode(message).finish(); - }, - toProtoMsg(message: CreditTypeSeq): CreditTypeSeqProtoMsg { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - value: CreditTypeSeq.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/query.lcd.ts b/packages/api/src/codegen/regen/intertx/v1/query.lcd.ts deleted file mode 100644 index 069ad52d..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/query.lcd.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.interchainAccount = this.interchainAccount.bind(this); - } - /* QueryInterchainAccount returns the interchain account for given owner - address on a given connection pair */ - async interchainAccount(params: QueryInterchainAccountRequest): Promise { - const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/query.rpc.Query.ts b/packages/api/src/codegen/regen/intertx/v1/query.rpc.Query.ts deleted file mode 100644 index d0b2289b..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/query.rpc.Query.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * QueryInterchainAccount returns the interchain account for given owner - * address on a given connection pair - */ - interchainAccount(request: QueryInterchainAccountRequest): Promise; -} -export class QueryClientImpl implements Query { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.interchainAccount = this.interchainAccount.bind(this); - } - interchainAccount(request: QueryInterchainAccountRequest): Promise { - const data = QueryInterchainAccountRequest.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); - return promise.then(data => QueryInterchainAccountResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base: QueryClient) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - interchainAccount(request: QueryInterchainAccountRequest): Promise { - return queryService.interchainAccount(request); - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/query.ts b/packages/api/src/codegen/regen/intertx/v1/query.ts deleted file mode 100644 index 659416ef..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/query.ts +++ /dev/null @@ -1,229 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequest { - /** owner is the address of the account that owns the ICA. */ - owner: string; - /** connection_id is the connection the ICA claimed. */ - connectionId: string; -} -export interface QueryInterchainAccountRequestProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: Uint8Array; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestAmino { - /** owner is the address of the account that owns the ICA. */ - owner?: string; - /** connection_id is the connection the ICA claimed. */ - connection_id?: string; -} -export interface QueryInterchainAccountRequestAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: QueryInterchainAccountRequestAmino; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestSDKType { - owner: string; - connection_id: string; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponse { - /** interchain_account_address is the address of the ICA. */ - interchainAccountAddress: string; -} -export interface QueryInterchainAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: Uint8Array; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseAmino { - /** interchain_account_address is the address of the ICA. */ - interchain_account_address?: string; -} -export interface QueryInterchainAccountResponseAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: QueryInterchainAccountResponseAmino; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseSDKType { - interchain_account_address: string; -} -function createBaseQueryInterchainAccountRequest(): QueryInterchainAccountRequest { - return { - owner: "", - connectionId: "" - }; -} -export const QueryInterchainAccountRequest = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - encode(message: QueryInterchainAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryInterchainAccountRequest { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - connectionId: isSet(object.connectionId) ? String(object.connectionId) : "" - }; - }, - toJSON(message: QueryInterchainAccountRequest): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.connectionId !== undefined && (obj.connectionId = message.connectionId); - return obj; - }, - fromPartial(object: Partial): QueryInterchainAccountRequest { - const message = createBaseQueryInterchainAccountRequest(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - return message; - }, - fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest { - const message = createBaseQueryInterchainAccountRequest(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - return message; - }, - toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - return obj; - }, - fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest { - return QueryInterchainAccountRequest.fromAmino(object.value); - }, - fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest { - return QueryInterchainAccountRequest.decode(message.value); - }, - toProto(message: QueryInterchainAccountRequest): Uint8Array { - return QueryInterchainAccountRequest.encode(message).finish(); - }, - toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - value: QueryInterchainAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInterchainAccountResponse(): QueryInterchainAccountResponse { - return { - interchainAccountAddress: "" - }; -} -export const QueryInterchainAccountResponse = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - encode(message: QueryInterchainAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.interchainAccountAddress !== "") { - writer.uint32(10).string(message.interchainAccountAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interchainAccountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): QueryInterchainAccountResponse { - return { - interchainAccountAddress: isSet(object.interchainAccountAddress) ? String(object.interchainAccountAddress) : "" - }; - }, - toJSON(message: QueryInterchainAccountResponse): unknown { - const obj: any = {}; - message.interchainAccountAddress !== undefined && (obj.interchainAccountAddress = message.interchainAccountAddress); - return obj; - }, - fromPartial(object: Partial): QueryInterchainAccountResponse { - const message = createBaseQueryInterchainAccountResponse(); - message.interchainAccountAddress = object.interchainAccountAddress ?? ""; - return message; - }, - fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse { - const message = createBaseQueryInterchainAccountResponse(); - if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { - message.interchainAccountAddress = object.interchain_account_address; - } - return message; - }, - toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino { - const obj: any = {}; - obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; - return obj; - }, - fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse { - return QueryInterchainAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse { - return QueryInterchainAccountResponse.decode(message.value); - }, - toProto(message: QueryInterchainAccountResponse): Uint8Array { - return QueryInterchainAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - value: QueryInterchainAccountResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/tx.amino.ts b/packages/api/src/codegen/regen/intertx/v1/tx.amino.ts deleted file mode 100644 index 81979e62..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/tx.amino.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export const AminoConverter = { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: "/regen.intertx.v1.MsgRegisterAccount", - toAmino: MsgRegisterAccount.toAmino, - fromAmino: MsgRegisterAccount.fromAmino - }, - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: "/regen.intertx.v1.MsgSubmitTx", - toAmino: MsgSubmitTx.toAmino, - fromAmino: MsgSubmitTx.fromAmino - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/tx.registry.ts b/packages/api/src/codegen/regen/intertx/v1/tx.registry.ts deleted file mode 100644 index 56509509..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/tx.registry.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.intertx.v1.MsgRegisterAccount", MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", MsgSubmitTx]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - registerAccount(value: MsgRegisterAccount) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.encode(value).finish() - }; - }, - submitTx(value: MsgSubmitTx) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.encode(value).finish() - }; - } - }, - withTypeUrl: { - registerAccount(value: MsgRegisterAccount) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value - }; - }, - submitTx(value: MsgSubmitTx) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value - }; - } - }, - toJSON: { - registerAccount(value: MsgRegisterAccount) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.toJSON(value) - }; - }, - submitTx(value: MsgSubmitTx) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.toJSON(value) - }; - } - }, - fromJSON: { - registerAccount(value: any) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.fromJSON(value) - }; - }, - submitTx(value: any) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.fromJSON(value) - }; - } - }, - fromPartial: { - registerAccount(value: MsgRegisterAccount) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.fromPartial(value) - }; - }, - submitTx(value: MsgSubmitTx) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/tx.rpc.msg.ts b/packages/api/src/codegen/regen/intertx/v1/tx.rpc.msg.ts deleted file mode 100644 index 23e7216c..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/tx.rpc.msg.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { BinaryReader } from "../../../binary"; -import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; -/** Msg defines the intertx Msg service. */ -export interface Msg { - /** Register defines a rpc handler for MsgRegisterAccount */ - registerAccount(request: MsgRegisterAccount): Promise; - /** SubmitTx defines a rpc handler for MsgSubmitTx */ - submitTx(request: MsgSubmitTx): Promise; -} -export class MsgClientImpl implements Msg { - private readonly rpc: Rpc; - constructor(rpc: Rpc) { - this.rpc = rpc; - this.registerAccount = this.registerAccount.bind(this); - this.submitTx = this.submitTx.bind(this); - } - registerAccount(request: MsgRegisterAccount): Promise { - const data = MsgRegisterAccount.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); - return promise.then(data => MsgRegisterAccountResponse.decode(new BinaryReader(data))); - } - submitTx(request: MsgSubmitTx): Promise { - const data = MsgSubmitTx.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); - return promise.then(data => MsgSubmitTxResponse.decode(new BinaryReader(data))); - } -} \ No newline at end of file diff --git a/packages/api/src/codegen/regen/intertx/v1/tx.ts b/packages/api/src/codegen/regen/intertx/v1/tx.ts deleted file mode 100644 index ecf73724..00000000 --- a/packages/api/src/codegen/regen/intertx/v1/tx.ts +++ /dev/null @@ -1,419 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccount { - /** owner is the address of the interchain account owner. */ - owner: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connectionId: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version: string; -} -export interface MsgRegisterAccountProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount"; - value: Uint8Array; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountAmino { - /** owner is the address of the interchain account owner. */ - owner?: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connection_id?: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version?: string; -} -export interface MsgRegisterAccountAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccount"; - value: MsgRegisterAccountAmino; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountSDKType { - owner: string; - connection_id: string; - version: string; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponse {} -export interface MsgRegisterAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: Uint8Array; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseAmino {} -export interface MsgRegisterAccountResponseAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: MsgRegisterAccountResponseAmino; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseSDKType {} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTx { - /** owner is the owner address of the interchain account. */ - owner: string; - /** connection_id is the id of the connection. */ - connectionId: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: Any; -} -export interface MsgSubmitTxProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTx"; - value: Uint8Array; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxAmino { - /** owner is the owner address of the interchain account. */ - owner?: string; - /** connection_id is the id of the connection. */ - connection_id?: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: AnyAmino; -} -export interface MsgSubmitTxAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTx"; - value: MsgSubmitTxAmino; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxSDKType { - owner: string; - connection_id: string; - msg?: AnySDKType; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponse {} -export interface MsgSubmitTxResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: Uint8Array; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseAmino {} -export interface MsgSubmitTxResponseAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: MsgSubmitTxResponseAmino; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseSDKType {} -function createBaseMsgRegisterAccount(): MsgRegisterAccount { - return { - owner: "", - connectionId: "", - version: "" - }; -} -export const MsgRegisterAccount = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - encode(message: MsgRegisterAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.version !== "") { - writer.uint32(26).string(message.version); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgRegisterAccount { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - connectionId: isSet(object.connectionId) ? String(object.connectionId) : "", - version: isSet(object.version) ? String(object.version) : "" - }; - }, - toJSON(message: MsgRegisterAccount): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.connectionId !== undefined && (obj.connectionId = message.connectionId); - message.version !== undefined && (obj.version = message.version); - return obj; - }, - fromPartial(object: Partial): MsgRegisterAccount { - const message = createBaseMsgRegisterAccount(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.version = object.version ?? ""; - return message; - }, - fromAmino(object: MsgRegisterAccountAmino): MsgRegisterAccount { - const message = createBaseMsgRegisterAccount(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - return message; - }, - toAmino(message: MsgRegisterAccount): MsgRegisterAccountAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.version = message.version === "" ? undefined : message.version; - return obj; - }, - fromAminoMsg(object: MsgRegisterAccountAminoMsg): MsgRegisterAccount { - return MsgRegisterAccount.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRegisterAccountProtoMsg): MsgRegisterAccount { - return MsgRegisterAccount.decode(message.value); - }, - toProto(message: MsgRegisterAccount): Uint8Array { - return MsgRegisterAccount.encode(message).finish(); - }, - toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterAccountResponse(): MsgRegisterAccountResponse { - return {}; -} -export const MsgRegisterAccountResponse = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - encode(_: MsgRegisterAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgRegisterAccountResponse { - return {}; - }, - toJSON(_: MsgRegisterAccountResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgRegisterAccountResponse { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - fromAmino(_: MsgRegisterAccountResponseAmino): MsgRegisterAccountResponse { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - toAmino(_: MsgRegisterAccountResponse): MsgRegisterAccountResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgRegisterAccountResponseAminoMsg): MsgRegisterAccountResponse { - return MsgRegisterAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgRegisterAccountResponseProtoMsg): MsgRegisterAccountResponse { - return MsgRegisterAccountResponse.decode(message.value); - }, - toProto(message: MsgRegisterAccountResponse): Uint8Array { - return MsgRegisterAccountResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - value: MsgRegisterAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTx(): MsgSubmitTx { - return { - owner: "", - connectionId: "", - msg: undefined - }; -} -export const MsgSubmitTx = { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - encode(message: MsgSubmitTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.msg !== undefined) { - Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.msg = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): MsgSubmitTx { - return { - owner: isSet(object.owner) ? String(object.owner) : "", - connectionId: isSet(object.connectionId) ? String(object.connectionId) : "", - msg: isSet(object.msg) ? Any.fromJSON(object.msg) : undefined - }; - }, - toJSON(message: MsgSubmitTx): unknown { - const obj: any = {}; - message.owner !== undefined && (obj.owner = message.owner); - message.connectionId !== undefined && (obj.connectionId = message.connectionId); - message.msg !== undefined && (obj.msg = message.msg ? Any.toJSON(message.msg) : undefined); - return obj; - }, - fromPartial(object: Partial): MsgSubmitTx { - const message = createBaseMsgSubmitTx(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.msg = object.msg !== undefined && object.msg !== null ? Any.fromPartial(object.msg) : undefined; - return message; - }, - fromAmino(object: MsgSubmitTxAmino): MsgSubmitTx { - const message = createBaseMsgSubmitTx(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.msg !== undefined && object.msg !== null) { - message.msg = Any.fromAmino(object.msg); - } - return message; - }, - toAmino(message: MsgSubmitTx): MsgSubmitTxAmino { - const obj: any = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.msg = message.msg ? Any.toAmino(message.msg) : undefined; - return obj; - }, - fromAminoMsg(object: MsgSubmitTxAminoMsg): MsgSubmitTx { - return MsgSubmitTx.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSubmitTxProtoMsg): MsgSubmitTx { - return MsgSubmitTx.decode(message.value); - }, - toProto(message: MsgSubmitTx): Uint8Array { - return MsgSubmitTx.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTxResponse(): MsgSubmitTxResponse { - return {}; -} -export const MsgSubmitTxResponse = { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - encode(_: MsgSubmitTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): MsgSubmitTxResponse { - return {}; - }, - toJSON(_: MsgSubmitTxResponse): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): MsgSubmitTxResponse { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - fromAmino(_: MsgSubmitTxResponseAmino): MsgSubmitTxResponse { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - toAmino(_: MsgSubmitTxResponse): MsgSubmitTxResponseAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: MsgSubmitTxResponseAminoMsg): MsgSubmitTxResponse { - return MsgSubmitTxResponse.fromAmino(object.value); - }, - fromProtoMsg(message: MsgSubmitTxResponseProtoMsg): MsgSubmitTxResponse { - return MsgSubmitTxResponse.decode(message.value); - }, - toProto(message: MsgSubmitTxResponse): Uint8Array { - return MsgSubmitTxResponse.encode(message).finish(); - }, - toProtoMsg(message: MsgSubmitTxResponse): MsgSubmitTxResponseProtoMsg { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - value: MsgSubmitTxResponse.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/lcd.ts b/packages/api/src/codegen/regen/lcd.ts deleted file mode 100644 index 006d3f41..00000000 --- a/packages/api/src/codegen/regen/lcd.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ - restEndpoint -}: { - restEndpoint: string; -}) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tendermint: { - v1beta1: new (await import("../cosmos/base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - regen: { - data: { - v1: new (await import("./data/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - ecocredit: { - basket: { - v1: new (await import("./ecocredit/basket/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - marketplace: { - v1: new (await import("./ecocredit/marketplace/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - v1: new (await import("./ecocredit/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1alpha1: new (await import("./ecocredit/v1alpha1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - intertx: { - v1: new (await import("./intertx/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/rpc.query.ts b/packages/api/src/codegen/regen/rpc.query.ts deleted file mode 100644 index 1d82acfc..00000000 --- a/packages/api/src/codegen/regen/rpc.query.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ - rpcEndpoint -}: { - rpcEndpoint: string | HttpEndpoint; -}) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - app: { - v1alpha1: (await import("../cosmos/app/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) - }, - auth: { - v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - }, - tendermint: { - v1beta1: (await import("../cosmos/base/tendermint/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - evidence: { - v1beta1: (await import("../cosmos/evidence/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - nft: { - v1beta1: (await import("../cosmos/nft/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - slashing: { - v1beta1: (await import("../cosmos/slashing/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - regen: { - data: { - v1: (await import("./data/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - ecocredit: { - basket: { - v1: (await import("./ecocredit/basket/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - marketplace: { - v1: (await import("./ecocredit/marketplace/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - v1: (await import("./ecocredit/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1alpha1: (await import("./ecocredit/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) - }, - intertx: { - v1: (await import("./intertx/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - }; -}; \ No newline at end of file diff --git a/packages/api/src/codegen/regen/rpc.tx.ts b/packages/api/src/codegen/regen/rpc.tx.ts deleted file mode 100644 index 0d3e736c..00000000 --- a/packages/api/src/codegen/regen/rpc.tx.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Rpc } from "../helpers"; -export const createRPCMsgClient = async ({ - rpc -}: { - rpc: Rpc; -}) => ({ - cosmos: { - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - crisis: { - v1beta1: new (await import("../cosmos/crisis/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - regen: { - data: { - v1: new (await import("./data/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - ecocredit: { - basket: { - v1: new (await import("./ecocredit/basket/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - marketplace: { - v1: new (await import("./ecocredit/marketplace/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - v1: new (await import("./ecocredit/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1alpha1: new (await import("./ecocredit/v1alpha1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - intertx: { - v1: new (await import("./intertx/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } -}); \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/abci/types.ts b/packages/api/src/codegen/tendermint/abci/types.ts deleted file mode 100644 index 8a083802..00000000 --- a/packages/api/src/codegen/tendermint/abci/types.ts +++ /dev/null @@ -1,6641 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; -import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; -import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, fromJsonTimestamp, bytesFromBase64, fromTimestamp, base64FromBytes } from "../../helpers"; -export enum CheckTxType { - NEW = 0, - RECHECK = 1, - UNRECOGNIZED = -1, -} -export const CheckTxTypeSDKType = CheckTxType; -export const CheckTxTypeAmino = CheckTxType; -export function checkTxTypeFromJSON(object: any): CheckTxType { - switch (object) { - case 0: - case "NEW": - return CheckTxType.NEW; - case 1: - case "RECHECK": - return CheckTxType.RECHECK; - case -1: - case "UNRECOGNIZED": - default: - return CheckTxType.UNRECOGNIZED; - } -} -export function checkTxTypeToJSON(object: CheckTxType): string { - switch (object) { - case CheckTxType.NEW: - return "NEW"; - case CheckTxType.RECHECK: - return "RECHECK"; - case CheckTxType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseOfferSnapshot_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Snapshot accepted, apply chunks */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** REJECT - Reject this specific snapshot, try others */ - REJECT = 3, - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - REJECT_FORMAT = 4, - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - REJECT_SENDER = 5, - UNRECOGNIZED = -1, -} -export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; -export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; -export function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseOfferSnapshot_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseOfferSnapshot_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseOfferSnapshot_Result.ABORT; - case 3: - case "REJECT": - return ResponseOfferSnapshot_Result.REJECT; - case 4: - case "REJECT_FORMAT": - return ResponseOfferSnapshot_Result.REJECT_FORMAT; - case 5: - case "REJECT_SENDER": - return ResponseOfferSnapshot_Result.REJECT_SENDER; - case -1: - case "UNRECOGNIZED": - default: - return ResponseOfferSnapshot_Result.UNRECOGNIZED; - } -} -export function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string { - switch (object) { - case ResponseOfferSnapshot_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseOfferSnapshot_Result.ACCEPT: - return "ACCEPT"; - case ResponseOfferSnapshot_Result.ABORT: - return "ABORT"; - case ResponseOfferSnapshot_Result.REJECT: - return "REJECT"; - case ResponseOfferSnapshot_Result.REJECT_FORMAT: - return "REJECT_FORMAT"; - case ResponseOfferSnapshot_Result.REJECT_SENDER: - return "REJECT_SENDER"; - case ResponseOfferSnapshot_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseApplySnapshotChunk_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Chunk successfully accepted */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** RETRY - Retry chunk (combine with refetch and reject) */ - RETRY = 3, - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - RETRY_SNAPSHOT = 4, - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - REJECT_SNAPSHOT = 5, - UNRECOGNIZED = -1, -} -export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; -export const ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; -export function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseApplySnapshotChunk_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseApplySnapshotChunk_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseApplySnapshotChunk_Result.ABORT; - case 3: - case "RETRY": - return ResponseApplySnapshotChunk_Result.RETRY; - case 4: - case "RETRY_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; - case 5: - case "REJECT_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; - } -} -export function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string { - switch (object) { - case ResponseApplySnapshotChunk_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseApplySnapshotChunk_Result.ACCEPT: - return "ACCEPT"; - case ResponseApplySnapshotChunk_Result.ABORT: - return "ABORT"; - case ResponseApplySnapshotChunk_Result.RETRY: - return "RETRY"; - case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: - return "RETRY_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: - return "REJECT_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum ResponseProcessProposal_ProposalStatus { - UNKNOWN = 0, - ACCEPT = 1, - REJECT = 2, - UNRECOGNIZED = -1, -} -export const ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; -export const ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; -export function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseProcessProposal_ProposalStatus.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseProcessProposal_ProposalStatus.ACCEPT; - case 2: - case "REJECT": - return ResponseProcessProposal_ProposalStatus.REJECT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; - } -} -export function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string { - switch (object) { - case ResponseProcessProposal_ProposalStatus.UNKNOWN: - return "UNKNOWN"; - case ResponseProcessProposal_ProposalStatus.ACCEPT: - return "ACCEPT"; - case ResponseProcessProposal_ProposalStatus.REJECT: - return "REJECT"; - case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export enum MisbehaviorType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2, - UNRECOGNIZED = -1, -} -export const MisbehaviorTypeSDKType = MisbehaviorType; -export const MisbehaviorTypeAmino = MisbehaviorType; -export function misbehaviorTypeFromJSON(object: any): MisbehaviorType { - switch (object) { - case 0: - case "UNKNOWN": - return MisbehaviorType.UNKNOWN; - case 1: - case "DUPLICATE_VOTE": - return MisbehaviorType.DUPLICATE_VOTE; - case 2: - case "LIGHT_CLIENT_ATTACK": - return MisbehaviorType.LIGHT_CLIENT_ATTACK; - case -1: - case "UNRECOGNIZED": - default: - return MisbehaviorType.UNRECOGNIZED; - } -} -export function misbehaviorTypeToJSON(object: MisbehaviorType): string { - switch (object) { - case MisbehaviorType.UNKNOWN: - return "UNKNOWN"; - case MisbehaviorType.DUPLICATE_VOTE: - return "DUPLICATE_VOTE"; - case MisbehaviorType.LIGHT_CLIENT_ATTACK: - return "LIGHT_CLIENT_ATTACK"; - case MisbehaviorType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export interface Request { - echo?: RequestEcho; - flush?: RequestFlush; - info?: RequestInfo; - initChain?: RequestInitChain; - query?: RequestQuery; - beginBlock?: RequestBeginBlock; - checkTx?: RequestCheckTx; - deliverTx?: RequestDeliverTx; - endBlock?: RequestEndBlock; - commit?: RequestCommit; - listSnapshots?: RequestListSnapshots; - offerSnapshot?: RequestOfferSnapshot; - loadSnapshotChunk?: RequestLoadSnapshotChunk; - applySnapshotChunk?: RequestApplySnapshotChunk; - prepareProposal?: RequestPrepareProposal; - processProposal?: RequestProcessProposal; -} -export interface RequestProtoMsg { - typeUrl: "/tendermint.abci.Request"; - value: Uint8Array; -} -export interface RequestAmino { - echo?: RequestEchoAmino; - flush?: RequestFlushAmino; - info?: RequestInfoAmino; - init_chain?: RequestInitChainAmino; - query?: RequestQueryAmino; - begin_block?: RequestBeginBlockAmino; - check_tx?: RequestCheckTxAmino; - deliver_tx?: RequestDeliverTxAmino; - end_block?: RequestEndBlockAmino; - commit?: RequestCommitAmino; - list_snapshots?: RequestListSnapshotsAmino; - offer_snapshot?: RequestOfferSnapshotAmino; - load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; - apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; - prepare_proposal?: RequestPrepareProposalAmino; - process_proposal?: RequestProcessProposalAmino; -} -export interface RequestAminoMsg { - type: "/tendermint.abci.Request"; - value: RequestAmino; -} -export interface RequestSDKType { - echo?: RequestEchoSDKType; - flush?: RequestFlushSDKType; - info?: RequestInfoSDKType; - init_chain?: RequestInitChainSDKType; - query?: RequestQuerySDKType; - begin_block?: RequestBeginBlockSDKType; - check_tx?: RequestCheckTxSDKType; - deliver_tx?: RequestDeliverTxSDKType; - end_block?: RequestEndBlockSDKType; - commit?: RequestCommitSDKType; - list_snapshots?: RequestListSnapshotsSDKType; - offer_snapshot?: RequestOfferSnapshotSDKType; - load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; - prepare_proposal?: RequestPrepareProposalSDKType; - process_proposal?: RequestProcessProposalSDKType; -} -export interface RequestEcho { - message: string; -} -export interface RequestEchoProtoMsg { - typeUrl: "/tendermint.abci.RequestEcho"; - value: Uint8Array; -} -export interface RequestEchoAmino { - message?: string; -} -export interface RequestEchoAminoMsg { - type: "/tendermint.abci.RequestEcho"; - value: RequestEchoAmino; -} -export interface RequestEchoSDKType { - message: string; -} -export interface RequestFlush {} -export interface RequestFlushProtoMsg { - typeUrl: "/tendermint.abci.RequestFlush"; - value: Uint8Array; -} -export interface RequestFlushAmino {} -export interface RequestFlushAminoMsg { - type: "/tendermint.abci.RequestFlush"; - value: RequestFlushAmino; -} -export interface RequestFlushSDKType {} -export interface RequestInfo { - version: string; - blockVersion: bigint; - p2pVersion: bigint; - abciVersion: string; -} -export interface RequestInfoProtoMsg { - typeUrl: "/tendermint.abci.RequestInfo"; - value: Uint8Array; -} -export interface RequestInfoAmino { - version?: string; - block_version?: string; - p2p_version?: string; - abci_version?: string; -} -export interface RequestInfoAminoMsg { - type: "/tendermint.abci.RequestInfo"; - value: RequestInfoAmino; -} -export interface RequestInfoSDKType { - version: string; - block_version: bigint; - p2p_version: bigint; - abci_version: string; -} -export interface RequestInitChain { - time: Timestamp; - chainId: string; - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appStateBytes: Uint8Array; - initialHeight: bigint; -} -export interface RequestInitChainProtoMsg { - typeUrl: "/tendermint.abci.RequestInitChain"; - value: Uint8Array; -} -export interface RequestInitChainAmino { - time?: string; - chain_id?: string; - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_state_bytes?: string; - initial_height?: string; -} -export interface RequestInitChainAminoMsg { - type: "/tendermint.abci.RequestInitChain"; - value: RequestInitChainAmino; -} -export interface RequestInitChainSDKType { - time: TimestampSDKType; - chain_id: string; - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_state_bytes: Uint8Array; - initial_height: bigint; -} -export interface RequestQuery { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestQueryProtoMsg { - typeUrl: "/tendermint.abci.RequestQuery"; - value: Uint8Array; -} -export interface RequestQueryAmino { - data?: string; - path?: string; - height?: string; - prove?: boolean; -} -export interface RequestQueryAminoMsg { - type: "/tendermint.abci.RequestQuery"; - value: RequestQueryAmino; -} -export interface RequestQuerySDKType { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestBeginBlock { - hash: Uint8Array; - header: Header; - lastCommitInfo: CommitInfo; - byzantineValidators: Misbehavior[]; -} -export interface RequestBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestBeginBlock"; - value: Uint8Array; -} -export interface RequestBeginBlockAmino { - hash?: string; - header?: HeaderAmino; - last_commit_info?: CommitInfoAmino; - byzantine_validators?: MisbehaviorAmino[]; -} -export interface RequestBeginBlockAminoMsg { - type: "/tendermint.abci.RequestBeginBlock"; - value: RequestBeginBlockAmino; -} -export interface RequestBeginBlockSDKType { - hash: Uint8Array; - header: HeaderSDKType; - last_commit_info: CommitInfoSDKType; - byzantine_validators: MisbehaviorSDKType[]; -} -export interface RequestCheckTx { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxProtoMsg { - typeUrl: "/tendermint.abci.RequestCheckTx"; - value: Uint8Array; -} -export interface RequestCheckTxAmino { - tx?: string; - type?: CheckTxType; -} -export interface RequestCheckTxAminoMsg { - type: "/tendermint.abci.RequestCheckTx"; - value: RequestCheckTxAmino; -} -export interface RequestCheckTxSDKType { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestDeliverTx { - tx: Uint8Array; -} -export interface RequestDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.RequestDeliverTx"; - value: Uint8Array; -} -export interface RequestDeliverTxAmino { - tx?: string; -} -export interface RequestDeliverTxAminoMsg { - type: "/tendermint.abci.RequestDeliverTx"; - value: RequestDeliverTxAmino; -} -export interface RequestDeliverTxSDKType { - tx: Uint8Array; -} -export interface RequestEndBlock { - height: bigint; -} -export interface RequestEndBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestEndBlock"; - value: Uint8Array; -} -export interface RequestEndBlockAmino { - height?: string; -} -export interface RequestEndBlockAminoMsg { - type: "/tendermint.abci.RequestEndBlock"; - value: RequestEndBlockAmino; -} -export interface RequestEndBlockSDKType { - height: bigint; -} -export interface RequestCommit {} -export interface RequestCommitProtoMsg { - typeUrl: "/tendermint.abci.RequestCommit"; - value: Uint8Array; -} -export interface RequestCommitAmino {} -export interface RequestCommitAminoMsg { - type: "/tendermint.abci.RequestCommit"; - value: RequestCommitAmino; -} -export interface RequestCommitSDKType {} -/** lists available snapshots */ -export interface RequestListSnapshots {} -export interface RequestListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.RequestListSnapshots"; - value: Uint8Array; -} -/** lists available snapshots */ -export interface RequestListSnapshotsAmino {} -export interface RequestListSnapshotsAminoMsg { - type: "/tendermint.abci.RequestListSnapshots"; - value: RequestListSnapshotsAmino; -} -/** lists available snapshots */ -export interface RequestListSnapshotsSDKType {} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshot { - /** snapshot offered by peers */ - snapshot?: Snapshot; - /** light client-verified app hash for snapshot height */ - appHash: Uint8Array; -} -export interface RequestOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.RequestOfferSnapshot"; - value: Uint8Array; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotAmino { - /** snapshot offered by peers */ - snapshot?: SnapshotAmino; - /** light client-verified app hash for snapshot height */ - app_hash?: string; -} -export interface RequestOfferSnapshotAminoMsg { - type: "/tendermint.abci.RequestOfferSnapshot"; - value: RequestOfferSnapshotAmino; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotSDKType { - snapshot?: SnapshotSDKType; - app_hash: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunk { - height: bigint; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkAmino { - height?: string; - format?: number; - chunk?: number; -} -export interface RequestLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: RequestLoadSnapshotChunkAmino; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkSDKType { - height: bigint; - format: number; - chunk: number; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunk { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; - value: Uint8Array; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkAmino { - index?: number; - chunk?: string; - sender?: string; -} -export interface RequestApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestApplySnapshotChunk"; - value: RequestApplySnapshotChunkAmino; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkSDKType { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestPrepareProposal { - /** the modified transactions cannot exceed this size. */ - maxTxBytes: bigint; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs: Uint8Array[]; - localLastCommit: ExtendedCommitInfo; - misbehavior: Misbehavior[]; - height: bigint; - time: Timestamp; - nextValidatorsHash: Uint8Array; - /** address of the public key of the validator proposing the block. */ - proposerAddress: Uint8Array; -} -export interface RequestPrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestPrepareProposal"; - value: Uint8Array; -} -export interface RequestPrepareProposalAmino { - /** the modified transactions cannot exceed this size. */ - max_tx_bytes?: string; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs?: string[]; - local_last_commit?: ExtendedCommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the validator proposing the block. */ - proposer_address?: string; -} -export interface RequestPrepareProposalAminoMsg { - type: "/tendermint.abci.RequestPrepareProposal"; - value: RequestPrepareProposalAmino; -} -export interface RequestPrepareProposalSDKType { - max_tx_bytes: bigint; - txs: Uint8Array[]; - local_last_commit: ExtendedCommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - height: bigint; - time: TimestampSDKType; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface RequestProcessProposal { - txs: Uint8Array[]; - proposedLastCommit: CommitInfo; - misbehavior: Misbehavior[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash: Uint8Array; - height: bigint; - time: Timestamp; - nextValidatorsHash: Uint8Array; - /** address of the public key of the original proposer of the block. */ - proposerAddress: Uint8Array; -} -export interface RequestProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestProcessProposal"; - value: Uint8Array; -} -export interface RequestProcessProposalAmino { - txs?: string[]; - proposed_last_commit?: CommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash?: string; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the original proposer of the block. */ - proposer_address?: string; -} -export interface RequestProcessProposalAminoMsg { - type: "/tendermint.abci.RequestProcessProposal"; - value: RequestProcessProposalAmino; -} -export interface RequestProcessProposalSDKType { - txs: Uint8Array[]; - proposed_last_commit: CommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - hash: Uint8Array; - height: bigint; - time: TimestampSDKType; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface Response { - exception?: ResponseException; - echo?: ResponseEcho; - flush?: ResponseFlush; - info?: ResponseInfo; - initChain?: ResponseInitChain; - query?: ResponseQuery; - beginBlock?: ResponseBeginBlock; - checkTx?: ResponseCheckTx; - deliverTx?: ResponseDeliverTx; - endBlock?: ResponseEndBlock; - commit?: ResponseCommit; - listSnapshots?: ResponseListSnapshots; - offerSnapshot?: ResponseOfferSnapshot; - loadSnapshotChunk?: ResponseLoadSnapshotChunk; - applySnapshotChunk?: ResponseApplySnapshotChunk; - prepareProposal?: ResponsePrepareProposal; - processProposal?: ResponseProcessProposal; -} -export interface ResponseProtoMsg { - typeUrl: "/tendermint.abci.Response"; - value: Uint8Array; -} -export interface ResponseAmino { - exception?: ResponseExceptionAmino; - echo?: ResponseEchoAmino; - flush?: ResponseFlushAmino; - info?: ResponseInfoAmino; - init_chain?: ResponseInitChainAmino; - query?: ResponseQueryAmino; - begin_block?: ResponseBeginBlockAmino; - check_tx?: ResponseCheckTxAmino; - deliver_tx?: ResponseDeliverTxAmino; - end_block?: ResponseEndBlockAmino; - commit?: ResponseCommitAmino; - list_snapshots?: ResponseListSnapshotsAmino; - offer_snapshot?: ResponseOfferSnapshotAmino; - load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; - apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; - prepare_proposal?: ResponsePrepareProposalAmino; - process_proposal?: ResponseProcessProposalAmino; -} -export interface ResponseAminoMsg { - type: "/tendermint.abci.Response"; - value: ResponseAmino; -} -export interface ResponseSDKType { - exception?: ResponseExceptionSDKType; - echo?: ResponseEchoSDKType; - flush?: ResponseFlushSDKType; - info?: ResponseInfoSDKType; - init_chain?: ResponseInitChainSDKType; - query?: ResponseQuerySDKType; - begin_block?: ResponseBeginBlockSDKType; - check_tx?: ResponseCheckTxSDKType; - deliver_tx?: ResponseDeliverTxSDKType; - end_block?: ResponseEndBlockSDKType; - commit?: ResponseCommitSDKType; - list_snapshots?: ResponseListSnapshotsSDKType; - offer_snapshot?: ResponseOfferSnapshotSDKType; - load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; - prepare_proposal?: ResponsePrepareProposalSDKType; - process_proposal?: ResponseProcessProposalSDKType; -} -/** nondeterministic */ -export interface ResponseException { - error: string; -} -export interface ResponseExceptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseException"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseExceptionAmino { - error?: string; -} -export interface ResponseExceptionAminoMsg { - type: "/tendermint.abci.ResponseException"; - value: ResponseExceptionAmino; -} -/** nondeterministic */ -export interface ResponseExceptionSDKType { - error: string; -} -export interface ResponseEcho { - message: string; -} -export interface ResponseEchoProtoMsg { - typeUrl: "/tendermint.abci.ResponseEcho"; - value: Uint8Array; -} -export interface ResponseEchoAmino { - message?: string; -} -export interface ResponseEchoAminoMsg { - type: "/tendermint.abci.ResponseEcho"; - value: ResponseEchoAmino; -} -export interface ResponseEchoSDKType { - message: string; -} -export interface ResponseFlush {} -export interface ResponseFlushProtoMsg { - typeUrl: "/tendermint.abci.ResponseFlush"; - value: Uint8Array; -} -export interface ResponseFlushAmino {} -export interface ResponseFlushAminoMsg { - type: "/tendermint.abci.ResponseFlush"; - value: ResponseFlushAmino; -} -export interface ResponseFlushSDKType {} -export interface ResponseInfo { - data: string; - version: string; - appVersion: bigint; - lastBlockHeight: bigint; - lastBlockAppHash: Uint8Array; -} -export interface ResponseInfoProtoMsg { - typeUrl: "/tendermint.abci.ResponseInfo"; - value: Uint8Array; -} -export interface ResponseInfoAmino { - data?: string; - version?: string; - app_version?: string; - last_block_height?: string; - last_block_app_hash?: string; -} -export interface ResponseInfoAminoMsg { - type: "/tendermint.abci.ResponseInfo"; - value: ResponseInfoAmino; -} -export interface ResponseInfoSDKType { - data: string; - version: string; - app_version: bigint; - last_block_height: bigint; - last_block_app_hash: Uint8Array; -} -export interface ResponseInitChain { - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appHash: Uint8Array; -} -export interface ResponseInitChainProtoMsg { - typeUrl: "/tendermint.abci.ResponseInitChain"; - value: Uint8Array; -} -export interface ResponseInitChainAmino { - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_hash?: string; -} -export interface ResponseInitChainAminoMsg { - type: "/tendermint.abci.ResponseInitChain"; - value: ResponseInitChainAmino; -} -export interface ResponseInitChainSDKType { - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_hash: Uint8Array; -} -export interface ResponseQuery { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proofOps?: ProofOps; - height: bigint; - codespace: string; -} -export interface ResponseQueryProtoMsg { - typeUrl: "/tendermint.abci.ResponseQuery"; - value: Uint8Array; -} -export interface ResponseQueryAmino { - code?: number; - /** bytes data = 2; // use "value" instead. */ - log?: string; - /** nondeterministic */ - info?: string; - index?: string; - key?: string; - value?: string; - proof_ops?: ProofOpsAmino; - height?: string; - codespace?: string; -} -export interface ResponseQueryAminoMsg { - type: "/tendermint.abci.ResponseQuery"; - value: ResponseQueryAmino; -} -export interface ResponseQuerySDKType { - code: number; - log: string; - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsSDKType; - height: bigint; - codespace: string; -} -export interface ResponseBeginBlock { - events: Event[]; -} -export interface ResponseBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseBeginBlock"; - value: Uint8Array; -} -export interface ResponseBeginBlockAmino { - events?: EventAmino[]; -} -export interface ResponseBeginBlockAminoMsg { - type: "/tendermint.abci.ResponseBeginBlock"; - value: ResponseBeginBlockAmino; -} -export interface ResponseBeginBlockSDKType { - events: EventSDKType[]; -} -export interface ResponseCheckTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; - sender: string; - priority: bigint; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempoolError: string; -} -export interface ResponseCheckTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseCheckTx"; - value: Uint8Array; -} -export interface ResponseCheckTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; - sender?: string; - priority?: string; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempool_error?: string; -} -export interface ResponseCheckTxAminoMsg { - type: "/tendermint.abci.ResponseCheckTx"; - value: ResponseCheckTxAmino; -} -export interface ResponseCheckTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; - sender: string; - priority: bigint; - mempool_error: string; -} -export interface ResponseDeliverTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; -} -export interface ResponseDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseDeliverTx"; - value: Uint8Array; -} -export interface ResponseDeliverTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; -} -export interface ResponseDeliverTxAminoMsg { - type: "/tendermint.abci.ResponseDeliverTx"; - value: ResponseDeliverTxAmino; -} -export interface ResponseDeliverTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseEndBlock { - validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates?: ConsensusParams; - events: Event[]; -} -export interface ResponseEndBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseEndBlock"; - value: Uint8Array; -} -export interface ResponseEndBlockAmino { - validator_updates?: ValidatorUpdateAmino[]; - consensus_param_updates?: ConsensusParamsAmino; - events?: EventAmino[]; -} -export interface ResponseEndBlockAminoMsg { - type: "/tendermint.abci.ResponseEndBlock"; - value: ResponseEndBlockAmino; -} -export interface ResponseEndBlockSDKType { - validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates?: ConsensusParamsSDKType; - events: EventSDKType[]; -} -export interface ResponseCommit { - /** reserve 1 */ - data: Uint8Array; - retainHeight: bigint; -} -export interface ResponseCommitProtoMsg { - typeUrl: "/tendermint.abci.ResponseCommit"; - value: Uint8Array; -} -export interface ResponseCommitAmino { - /** reserve 1 */ - data?: string; - retain_height?: string; -} -export interface ResponseCommitAminoMsg { - type: "/tendermint.abci.ResponseCommit"; - value: ResponseCommitAmino; -} -export interface ResponseCommitSDKType { - data: Uint8Array; - retain_height: bigint; -} -export interface ResponseListSnapshots { - snapshots: Snapshot[]; -} -export interface ResponseListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.ResponseListSnapshots"; - value: Uint8Array; -} -export interface ResponseListSnapshotsAmino { - snapshots?: SnapshotAmino[]; -} -export interface ResponseListSnapshotsAminoMsg { - type: "/tendermint.abci.ResponseListSnapshots"; - value: ResponseListSnapshotsAmino; -} -export interface ResponseListSnapshotsSDKType { - snapshots: SnapshotSDKType[]; -} -export interface ResponseOfferSnapshot { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; - value: Uint8Array; -} -export interface ResponseOfferSnapshotAmino { - result?: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotAminoMsg { - type: "/tendermint.abci.ResponseOfferSnapshot"; - value: ResponseOfferSnapshotAmino; -} -export interface ResponseOfferSnapshotSDKType { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseLoadSnapshotChunk { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAmino { - chunk?: string; -} -export interface ResponseLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: ResponseLoadSnapshotChunkAmino; -} -export interface ResponseLoadSnapshotChunkSDKType { - chunk: Uint8Array; -} -export interface ResponseApplySnapshotChunk { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetchChunks: number[]; - /** Chunk senders to reject and ban */ - rejectSenders: string[]; -} -export interface ResponseApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: Uint8Array; -} -export interface ResponseApplySnapshotChunkAmino { - result?: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetch_chunks?: number[]; - /** Chunk senders to reject and ban */ - reject_senders?: string[]; -} -export interface ResponseApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: ResponseApplySnapshotChunkAmino; -} -export interface ResponseApplySnapshotChunkSDKType { - result: ResponseApplySnapshotChunk_Result; - refetch_chunks: number[]; - reject_senders: string[]; -} -export interface ResponsePrepareProposal { - txs: Uint8Array[]; -} -export interface ResponsePrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponsePrepareProposal"; - value: Uint8Array; -} -export interface ResponsePrepareProposalAmino { - txs?: string[]; -} -export interface ResponsePrepareProposalAminoMsg { - type: "/tendermint.abci.ResponsePrepareProposal"; - value: ResponsePrepareProposalAmino; -} -export interface ResponsePrepareProposalSDKType { - txs: Uint8Array[]; -} -export interface ResponseProcessProposal { - status: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponseProcessProposal"; - value: Uint8Array; -} -export interface ResponseProcessProposalAmino { - status?: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalAminoMsg { - type: "/tendermint.abci.ResponseProcessProposal"; - value: ResponseProcessProposalAmino; -} -export interface ResponseProcessProposalSDKType { - status: ResponseProcessProposal_ProposalStatus; -} -export interface CommitInfo { - round: number; - votes: VoteInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/tendermint.abci.CommitInfo"; - value: Uint8Array; -} -export interface CommitInfoAmino { - round?: number; - votes?: VoteInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "/tendermint.abci.CommitInfo"; - value: CommitInfoAmino; -} -export interface CommitInfoSDKType { - round: number; - votes: VoteInfoSDKType[]; -} -export interface ExtendedCommitInfo { - /** The round at which the block proposer decided in the previous height. */ - round: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes: ExtendedVoteInfo[]; -} -export interface ExtendedCommitInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedCommitInfo"; - value: Uint8Array; -} -export interface ExtendedCommitInfoAmino { - /** The round at which the block proposer decided in the previous height. */ - round?: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes?: ExtendedVoteInfoAmino[]; -} -export interface ExtendedCommitInfoAminoMsg { - type: "/tendermint.abci.ExtendedCommitInfo"; - value: ExtendedCommitInfoAmino; -} -export interface ExtendedCommitInfoSDKType { - round: number; - votes: ExtendedVoteInfoSDKType[]; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface Event { - type: string; - attributes: EventAttribute[]; -} -export interface EventProtoMsg { - typeUrl: "/tendermint.abci.Event"; - value: Uint8Array; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventAmino { - type?: string; - attributes?: EventAttributeAmino[]; -} -export interface EventAminoMsg { - type: "/tendermint.abci.Event"; - value: EventAmino; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventSDKType { - type: string; - attributes: EventAttributeSDKType[]; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttribute { - key: string; - value: string; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeProtoMsg { - typeUrl: "/tendermint.abci.EventAttribute"; - value: Uint8Array; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeAmino { - key?: string; - value?: string; - /** nondeterministic */ - index?: boolean; -} -export interface EventAttributeAminoMsg { - type: "/tendermint.abci.EventAttribute"; - value: EventAttributeAmino; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeSDKType { - key: string; - value: string; - index: boolean; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResult { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTx; -} -export interface TxResultProtoMsg { - typeUrl: "/tendermint.abci.TxResult"; - value: Uint8Array; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultAmino { - height?: string; - index?: number; - tx?: string; - result?: ResponseDeliverTxAmino; -} -export interface TxResultAminoMsg { - type: "/tendermint.abci.TxResult"; - value: TxResultAmino; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultSDKType { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTxSDKType; -} -/** Validator */ -export interface Validator { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.abci.Validator"; - value: Uint8Array; -} -/** Validator */ -export interface ValidatorAmino { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address?: string; - /** The voting power */ - power?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.abci.Validator"; - value: ValidatorAmino; -} -/** Validator */ -export interface ValidatorSDKType { - address: Uint8Array; - power: bigint; -} -/** ValidatorUpdate */ -export interface ValidatorUpdate { - pubKey: PublicKey; - power: bigint; -} -export interface ValidatorUpdateProtoMsg { - typeUrl: "/tendermint.abci.ValidatorUpdate"; - value: Uint8Array; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateAmino { - pub_key?: PublicKeyAmino; - power?: string; -} -export interface ValidatorUpdateAminoMsg { - type: "/tendermint.abci.ValidatorUpdate"; - value: ValidatorUpdateAmino; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateSDKType { - pub_key: PublicKeySDKType; - power: bigint; -} -/** VoteInfo */ -export interface VoteInfo { - validator: Validator; - signedLastBlock: boolean; -} -export interface VoteInfoProtoMsg { - typeUrl: "/tendermint.abci.VoteInfo"; - value: Uint8Array; -} -/** VoteInfo */ -export interface VoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; -} -export interface VoteInfoAminoMsg { - type: "/tendermint.abci.VoteInfo"; - value: VoteInfoAmino; -} -/** VoteInfo */ -export interface VoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; -} -export interface ExtendedVoteInfo { - validator: Validator; - signedLastBlock: boolean; - /** Reserved for future use */ - voteExtension: Uint8Array; -} -export interface ExtendedVoteInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedVoteInfo"; - value: Uint8Array; -} -export interface ExtendedVoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; - /** Reserved for future use */ - vote_extension?: string; -} -export interface ExtendedVoteInfoAminoMsg { - type: "/tendermint.abci.ExtendedVoteInfo"; - value: ExtendedVoteInfoAmino; -} -export interface ExtendedVoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; - vote_extension: Uint8Array; -} -export interface Misbehavior { - type: MisbehaviorType; - /** The offending validator */ - validator: Validator; - /** The height when the offense occurred */ - height: bigint; - /** The corresponding time where the offense occurred */ - time: Timestamp; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - totalVotingPower: bigint; -} -export interface MisbehaviorProtoMsg { - typeUrl: "/tendermint.abci.Misbehavior"; - value: Uint8Array; -} -export interface MisbehaviorAmino { - type?: MisbehaviorType; - /** The offending validator */ - validator?: ValidatorAmino; - /** The height when the offense occurred */ - height?: string; - /** The corresponding time where the offense occurred */ - time?: string; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - total_voting_power?: string; -} -export interface MisbehaviorAminoMsg { - type: "/tendermint.abci.Misbehavior"; - value: MisbehaviorAmino; -} -export interface MisbehaviorSDKType { - type: MisbehaviorType; - validator: ValidatorSDKType; - height: bigint; - time: TimestampSDKType; - total_voting_power: bigint; -} -export interface Snapshot { - /** The height at which the snapshot was taken */ - height: bigint; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotProtoMsg { - typeUrl: "/tendermint.abci.Snapshot"; - value: Uint8Array; -} -export interface SnapshotAmino { - /** The height at which the snapshot was taken */ - height?: string; - /** The application-specific snapshot format */ - format?: number; - /** Number of chunks in the snapshot */ - chunks?: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash?: string; - /** Arbitrary application metadata */ - metadata?: string; -} -export interface SnapshotAminoMsg { - type: "/tendermint.abci.Snapshot"; - value: SnapshotAmino; -} -export interface SnapshotSDKType { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Uint8Array; -} -function createBaseRequest(): Request { - return { - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -export const Request = { - typeUrl: "/tendermint.abci.Request", - encode(message: Request, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.echo !== undefined) { - RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); - } - if (message.flush !== undefined) { - RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); - } - if (message.info !== undefined) { - RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); - } - if (message.initChain !== undefined) { - RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); - } - if (message.query !== undefined) { - RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); - } - if (message.commit !== undefined) { - RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Request { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.echo = RequestEcho.decode(reader, reader.uint32()); - break; - case 2: - message.flush = RequestFlush.decode(reader, reader.uint32()); - break; - case 3: - message.info = RequestInfo.decode(reader, reader.uint32()); - break; - case 5: - message.initChain = RequestInitChain.decode(reader, reader.uint32()); - break; - case 6: - message.query = RequestQuery.decode(reader, reader.uint32()); - break; - case 7: - message.beginBlock = RequestBeginBlock.decode(reader, reader.uint32()); - break; - case 8: - message.checkTx = RequestCheckTx.decode(reader, reader.uint32()); - break; - case 9: - message.deliverTx = RequestDeliverTx.decode(reader, reader.uint32()); - break; - case 10: - message.endBlock = RequestEndBlock.decode(reader, reader.uint32()); - break; - case 11: - message.commit = RequestCommit.decode(reader, reader.uint32()); - break; - case 12: - message.listSnapshots = RequestListSnapshots.decode(reader, reader.uint32()); - break; - case 13: - message.offerSnapshot = RequestOfferSnapshot.decode(reader, reader.uint32()); - break; - case 14: - message.loadSnapshotChunk = RequestLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 15: - message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32()); - break; - case 17: - message.processProposal = RequestProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Request { - return { - echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined, - flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined, - info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined, - initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined, - query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined, - beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined, - checkTx: isSet(object.checkTx) ? RequestCheckTx.fromJSON(object.checkTx) : undefined, - deliverTx: isSet(object.deliverTx) ? RequestDeliverTx.fromJSON(object.deliverTx) : undefined, - endBlock: isSet(object.endBlock) ? RequestEndBlock.fromJSON(object.endBlock) : undefined, - commit: isSet(object.commit) ? RequestCommit.fromJSON(object.commit) : undefined, - listSnapshots: isSet(object.listSnapshots) ? RequestListSnapshots.fromJSON(object.listSnapshots) : undefined, - offerSnapshot: isSet(object.offerSnapshot) ? RequestOfferSnapshot.fromJSON(object.offerSnapshot) : undefined, - loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? RequestLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined, - applySnapshotChunk: isSet(object.applySnapshotChunk) ? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined, - prepareProposal: isSet(object.prepareProposal) ? RequestPrepareProposal.fromJSON(object.prepareProposal) : undefined, - processProposal: isSet(object.processProposal) ? RequestProcessProposal.fromJSON(object.processProposal) : undefined - }; - }, - toJSON(message: Request): unknown { - const obj: any = {}; - message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined); - message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined); - message.info !== undefined && (obj.info = message.info ? RequestInfo.toJSON(message.info) : undefined); - message.initChain !== undefined && (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined); - message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined); - message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? RequestBeginBlock.toJSON(message.beginBlock) : undefined); - message.checkTx !== undefined && (obj.checkTx = message.checkTx ? RequestCheckTx.toJSON(message.checkTx) : undefined); - message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? RequestDeliverTx.toJSON(message.deliverTx) : undefined); - message.endBlock !== undefined && (obj.endBlock = message.endBlock ? RequestEndBlock.toJSON(message.endBlock) : undefined); - message.commit !== undefined && (obj.commit = message.commit ? RequestCommit.toJSON(message.commit) : undefined); - message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? RequestListSnapshots.toJSON(message.listSnapshots) : undefined); - message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? RequestOfferSnapshot.toJSON(message.offerSnapshot) : undefined); - message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined); - message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined); - message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal ? RequestPrepareProposal.toJSON(message.prepareProposal) : undefined); - message.processProposal !== undefined && (obj.processProposal = message.processProposal ? RequestProcessProposal.toJSON(message.processProposal) : undefined); - return obj; - }, - fromPartial(object: Partial): Request { - const message = createBaseRequest(); - message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? RequestInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? RequestInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? RequestQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? RequestBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? RequestCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? RequestDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? RequestEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? RequestCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? RequestProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object: RequestAmino): Request { - const message = createBaseRequest(); - if (object.echo !== undefined && object.echo !== null) { - message.echo = RequestEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = RequestFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = RequestInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = RequestInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = RequestQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = RequestBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = RequestCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = RequestDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = RequestEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = RequestCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = RequestListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = RequestOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = RequestPrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = RequestProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message: Request): RequestAmino { - const obj: any = {}; - obj.echo = message.echo ? RequestEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? RequestFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? RequestInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? RequestInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? RequestQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? RequestBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? RequestCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? RequestDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? RequestEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? RequestCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? RequestListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? RequestProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object: RequestAminoMsg): Request { - return Request.fromAmino(object.value); - }, - fromProtoMsg(message: RequestProtoMsg): Request { - return Request.decode(message.value); - }, - toProto(message: Request): Uint8Array { - return Request.encode(message).finish(); - }, - toProtoMsg(message: Request): RequestProtoMsg { - return { - typeUrl: "/tendermint.abci.Request", - value: Request.encode(message).finish() - }; - } -}; -function createBaseRequestEcho(): RequestEcho { - return { - message: "" - }; -} -export const RequestEcho = { - typeUrl: "/tendermint.abci.RequestEcho", - encode(message: RequestEcho, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestEcho { - return { - message: isSet(object.message) ? String(object.message) : "" - }; - }, - toJSON(message: RequestEcho): unknown { - const obj: any = {}; - message.message !== undefined && (obj.message = message.message); - return obj; - }, - fromPartial(object: Partial): RequestEcho { - const message = createBaseRequestEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object: RequestEchoAmino): RequestEcho { - const message = createBaseRequestEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message: RequestEcho): RequestEchoAmino { - const obj: any = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho { - return RequestEcho.fromAmino(object.value); - }, - fromProtoMsg(message: RequestEchoProtoMsg): RequestEcho { - return RequestEcho.decode(message.value); - }, - toProto(message: RequestEcho): Uint8Array { - return RequestEcho.encode(message).finish(); - }, - toProtoMsg(message: RequestEcho): RequestEchoProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestEcho", - value: RequestEcho.encode(message).finish() - }; - } -}; -function createBaseRequestFlush(): RequestFlush { - return {}; -} -export const RequestFlush = { - typeUrl: "/tendermint.abci.RequestFlush", - encode(_: RequestFlush, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): RequestFlush { - return {}; - }, - toJSON(_: RequestFlush): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): RequestFlush { - const message = createBaseRequestFlush(); - return message; - }, - fromAmino(_: RequestFlushAmino): RequestFlush { - const message = createBaseRequestFlush(); - return message; - }, - toAmino(_: RequestFlush): RequestFlushAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: RequestFlushAminoMsg): RequestFlush { - return RequestFlush.fromAmino(object.value); - }, - fromProtoMsg(message: RequestFlushProtoMsg): RequestFlush { - return RequestFlush.decode(message.value); - }, - toProto(message: RequestFlush): Uint8Array { - return RequestFlush.encode(message).finish(); - }, - toProtoMsg(message: RequestFlush): RequestFlushProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestFlush", - value: RequestFlush.encode(message).finish() - }; - } -}; -function createBaseRequestInfo(): RequestInfo { - return { - version: "", - blockVersion: BigInt(0), - p2pVersion: BigInt(0), - abciVersion: "" - }; -} -export const RequestInfo = { - typeUrl: "/tendermint.abci.RequestInfo", - encode(message: RequestInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.version !== "") { - writer.uint32(10).string(message.version); - } - if (message.blockVersion !== BigInt(0)) { - writer.uint32(16).uint64(message.blockVersion); - } - if (message.p2pVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.p2pVersion); - } - if (message.abciVersion !== "") { - writer.uint32(34).string(message.abciVersion); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.blockVersion = reader.uint64(); - break; - case 3: - message.p2pVersion = reader.uint64(); - break; - case 4: - message.abciVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestInfo { - return { - version: isSet(object.version) ? String(object.version) : "", - blockVersion: isSet(object.blockVersion) ? BigInt(object.blockVersion.toString()) : BigInt(0), - p2pVersion: isSet(object.p2pVersion) ? BigInt(object.p2pVersion.toString()) : BigInt(0), - abciVersion: isSet(object.abciVersion) ? String(object.abciVersion) : "" - }; - }, - toJSON(message: RequestInfo): unknown { - const obj: any = {}; - message.version !== undefined && (obj.version = message.version); - message.blockVersion !== undefined && (obj.blockVersion = (message.blockVersion || BigInt(0)).toString()); - message.p2pVersion !== undefined && (obj.p2pVersion = (message.p2pVersion || BigInt(0)).toString()); - message.abciVersion !== undefined && (obj.abciVersion = message.abciVersion); - return obj; - }, - fromPartial(object: Partial): RequestInfo { - const message = createBaseRequestInfo(); - message.version = object.version ?? ""; - message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); - message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); - message.abciVersion = object.abciVersion ?? ""; - return message; - }, - fromAmino(object: RequestInfoAmino): RequestInfo { - const message = createBaseRequestInfo(); - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.block_version !== undefined && object.block_version !== null) { - message.blockVersion = BigInt(object.block_version); - } - if (object.p2p_version !== undefined && object.p2p_version !== null) { - message.p2pVersion = BigInt(object.p2p_version); - } - if (object.abci_version !== undefined && object.abci_version !== null) { - message.abciVersion = object.abci_version; - } - return message; - }, - toAmino(message: RequestInfo): RequestInfoAmino { - const obj: any = {}; - obj.version = message.version === "" ? undefined : message.version; - obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; - obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; - obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; - return obj; - }, - fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo { - return RequestInfo.fromAmino(object.value); - }, - fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo { - return RequestInfo.decode(message.value); - }, - toProto(message: RequestInfo): Uint8Array { - return RequestInfo.encode(message).finish(); - }, - toProtoMsg(message: RequestInfo): RequestInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestInfo", - value: RequestInfo.encode(message).finish() - }; - } -}; -function createBaseRequestInitChain(): RequestInitChain { - return { - time: Timestamp.fromPartial({}), - chainId: "", - consensusParams: undefined, - validators: [], - appStateBytes: new Uint8Array(), - initialHeight: BigInt(0) - }; -} -export const RequestInitChain = { - typeUrl: "/tendermint.abci.RequestInitChain", - encode(message: RequestInitChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.consensusParams !== undefined) { - ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - ValidatorUpdate.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.appStateBytes.length !== 0) { - writer.uint32(42).bytes(message.appStateBytes); - } - if (message.initialHeight !== BigInt(0)) { - writer.uint32(48).int64(message.initialHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); - break; - case 4: - message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 5: - message.appStateBytes = reader.bytes(); - break; - case 6: - message.initialHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestInitChain { - return { - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - chainId: isSet(object.chainId) ? String(object.chainId) : "", - consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined, - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [], - appStateBytes: isSet(object.appStateBytes) ? bytesFromBase64(object.appStateBytes) : new Uint8Array(), - initialHeight: isSet(object.initialHeight) ? BigInt(object.initialHeight.toString()) : BigInt(0) - }; - }, - toJSON(message: RequestInitChain): unknown { - const obj: any = {}; - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.chainId !== undefined && (obj.chainId = message.chainId); - message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined); - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.appStateBytes !== undefined && (obj.appStateBytes = base64FromBytes(message.appStateBytes !== undefined ? message.appStateBytes : new Uint8Array())); - message.initialHeight !== undefined && (obj.initialHeight = (message.initialHeight || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): RequestInitChain { - const message = createBaseRequestInitChain(); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.chainId = object.chainId ?? ""; - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.appStateBytes = object.appStateBytes ?? new Uint8Array(); - message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object: RequestInitChainAmino): RequestInitChain { - const message = createBaseRequestInitChain(); - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { - message.appStateBytes = bytesFromBase64(object.app_state_bytes); - } - if (object.initial_height !== undefined && object.initial_height !== null) { - message.initialHeight = BigInt(object.initial_height); - } - return message; - }, - toAmino(message: RequestInitChain): RequestInitChainAmino { - const obj: any = {}; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.app_state_bytes = message.appStateBytes ? base64FromBytes(message.appStateBytes) : undefined; - obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain { - return RequestInitChain.fromAmino(object.value); - }, - fromProtoMsg(message: RequestInitChainProtoMsg): RequestInitChain { - return RequestInitChain.decode(message.value); - }, - toProto(message: RequestInitChain): Uint8Array { - return RequestInitChain.encode(message).finish(); - }, - toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestInitChain", - value: RequestInitChain.encode(message).finish() - }; - } -}; -function createBaseRequestQuery(): RequestQuery { - return { - data: new Uint8Array(), - path: "", - height: BigInt(0), - prove: false - }; -} -export const RequestQuery = { - typeUrl: "/tendermint.abci.RequestQuery", - encode(message: RequestQuery, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.prove === true) { - writer.uint32(32).bool(message.prove); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.path = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestQuery { - return { - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - path: isSet(object.path) ? String(object.path) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - prove: isSet(object.prove) ? Boolean(object.prove) : false - }; - }, - toJSON(message: RequestQuery): unknown { - const obj: any = {}; - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.path !== undefined && (obj.path = message.path); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.prove !== undefined && (obj.prove = message.prove); - return obj; - }, - fromPartial(object: Partial): RequestQuery { - const message = createBaseRequestQuery(); - message.data = object.data ?? new Uint8Array(); - message.path = object.path ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.prove = object.prove ?? false; - return message; - }, - fromAmino(object: RequestQueryAmino): RequestQuery { - const message = createBaseRequestQuery(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.prove !== undefined && object.prove !== null) { - message.prove = object.prove; - } - return message; - }, - toAmino(message: RequestQuery): RequestQueryAmino { - const obj: any = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.path = message.path === "" ? undefined : message.path; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.prove = message.prove === false ? undefined : message.prove; - return obj; - }, - fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery { - return RequestQuery.fromAmino(object.value); - }, - fromProtoMsg(message: RequestQueryProtoMsg): RequestQuery { - return RequestQuery.decode(message.value); - }, - toProto(message: RequestQuery): Uint8Array { - return RequestQuery.encode(message).finish(); - }, - toProtoMsg(message: RequestQuery): RequestQueryProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestQuery", - value: RequestQuery.encode(message).finish() - }; - } -}; -function createBaseRequestBeginBlock(): RequestBeginBlock { - return { - hash: new Uint8Array(), - header: Header.fromPartial({}), - lastCommitInfo: CommitInfo.fromPartial({}), - byzantineValidators: [] - }; -} -export const RequestBeginBlock = { - typeUrl: "/tendermint.abci.RequestBeginBlock", - encode(message: RequestBeginBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(18).fork()).ldelim(); - } - if (message.lastCommitInfo !== undefined) { - CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.byzantineValidators) { - Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.header = Header.decode(reader, reader.uint32()); - break; - case 3: - message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestBeginBlock { - return { - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - lastCommitInfo: isSet(object.lastCommitInfo) ? CommitInfo.fromJSON(object.lastCommitInfo) : undefined, - byzantineValidators: Array.isArray(object?.byzantineValidators) ? object.byzantineValidators.map((e: any) => Misbehavior.fromJSON(e)) : [] - }; - }, - toJSON(message: RequestBeginBlock): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - message.lastCommitInfo !== undefined && (obj.lastCommitInfo = message.lastCommitInfo ? CommitInfo.toJSON(message.lastCommitInfo) : undefined); - if (message.byzantineValidators) { - obj.byzantineValidators = message.byzantineValidators.map(e => e ? Misbehavior.toJSON(e) : undefined); - } else { - obj.byzantineValidators = []; - } - return obj; - }, - fromPartial(object: Partial): RequestBeginBlock { - const message = createBaseRequestBeginBlock(); - message.hash = object.hash ?? new Uint8Array(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? CommitInfo.fromPartial(object.lastCommitInfo) : undefined; - message.byzantineValidators = object.byzantineValidators?.map(e => Misbehavior.fromPartial(e)) || []; - return message; - }, - fromAmino(object: RequestBeginBlockAmino): RequestBeginBlock { - const message = createBaseRequestBeginBlock(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.last_commit_info !== undefined && object.last_commit_info !== null) { - message.lastCommitInfo = CommitInfo.fromAmino(object.last_commit_info); - } - message.byzantineValidators = object.byzantine_validators?.map(e => Misbehavior.fromAmino(e)) || []; - return message; - }, - toAmino(message: RequestBeginBlock): RequestBeginBlockAmino { - const obj: any = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.last_commit_info = message.lastCommitInfo ? CommitInfo.toAmino(message.lastCommitInfo) : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? Misbehavior.toAmino(e) : undefined); - } else { - obj.byzantine_validators = message.byzantineValidators; - } - return obj; - }, - fromAminoMsg(object: RequestBeginBlockAminoMsg): RequestBeginBlock { - return RequestBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message: RequestBeginBlockProtoMsg): RequestBeginBlock { - return RequestBeginBlock.decode(message.value); - }, - toProto(message: RequestBeginBlock): Uint8Array { - return RequestBeginBlock.encode(message).finish(); - }, - toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestBeginBlock", - value: RequestBeginBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCheckTx(): RequestCheckTx { - return { - tx: new Uint8Array(), - type: 0 - }; -} -export const RequestCheckTx = { - typeUrl: "/tendermint.abci.RequestCheckTx", - encode(message: RequestCheckTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - if (message.type !== 0) { - writer.uint32(16).int32(message.type); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - case 2: - message.type = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestCheckTx { - return { - tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(), - type: isSet(object.type) ? checkTxTypeFromJSON(object.type) : -1 - }; - }, - toJSON(message: RequestCheckTx): unknown { - const obj: any = {}; - message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array())); - message.type !== undefined && (obj.type = checkTxTypeToJSON(message.type)); - return obj; - }, - fromPartial(object: Partial): RequestCheckTx { - const message = createBaseRequestCheckTx(); - message.tx = object.tx ?? new Uint8Array(); - message.type = object.type ?? 0; - return message; - }, - fromAmino(object: RequestCheckTxAmino): RequestCheckTx { - const message = createBaseRequestCheckTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - return message; - }, - toAmino(message: RequestCheckTx): RequestCheckTxAmino { - const obj: any = {}; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - obj.type = message.type === 0 ? undefined : message.type; - return obj; - }, - fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx { - return RequestCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message: RequestCheckTxProtoMsg): RequestCheckTx { - return RequestCheckTx.decode(message.value); - }, - toProto(message: RequestCheckTx): Uint8Array { - return RequestCheckTx.encode(message).finish(); - }, - toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestCheckTx", - value: RequestCheckTx.encode(message).finish() - }; - } -}; -function createBaseRequestDeliverTx(): RequestDeliverTx { - return { - tx: new Uint8Array() - }; -} -export const RequestDeliverTx = { - typeUrl: "/tendermint.abci.RequestDeliverTx", - encode(message: RequestDeliverTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestDeliverTx { - return { - tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array() - }; - }, - toJSON(message: RequestDeliverTx): unknown { - const obj: any = {}; - message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): RequestDeliverTx { - const message = createBaseRequestDeliverTx(); - message.tx = object.tx ?? new Uint8Array(); - return message; - }, - fromAmino(object: RequestDeliverTxAmino): RequestDeliverTx { - const message = createBaseRequestDeliverTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - return message; - }, - toAmino(message: RequestDeliverTx): RequestDeliverTxAmino { - const obj: any = {}; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object: RequestDeliverTxAminoMsg): RequestDeliverTx { - return RequestDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message: RequestDeliverTxProtoMsg): RequestDeliverTx { - return RequestDeliverTx.decode(message.value); - }, - toProto(message: RequestDeliverTx): Uint8Array { - return RequestDeliverTx.encode(message).finish(); - }, - toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestDeliverTx", - value: RequestDeliverTx.encode(message).finish() - }; - } -}; -function createBaseRequestEndBlock(): RequestEndBlock { - return { - height: BigInt(0) - }; -} -export const RequestEndBlock = { - typeUrl: "/tendermint.abci.RequestEndBlock", - encode(message: RequestEndBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestEndBlock { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0) - }; - }, - toJSON(message: RequestEndBlock): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): RequestEndBlock { - const message = createBaseRequestEndBlock(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object: RequestEndBlockAmino): RequestEndBlock { - const message = createBaseRequestEndBlock(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message: RequestEndBlock): RequestEndBlockAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock { - return RequestEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message: RequestEndBlockProtoMsg): RequestEndBlock { - return RequestEndBlock.decode(message.value); - }, - toProto(message: RequestEndBlock): Uint8Array { - return RequestEndBlock.encode(message).finish(); - }, - toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestEndBlock", - value: RequestEndBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCommit(): RequestCommit { - return {}; -} -export const RequestCommit = { - typeUrl: "/tendermint.abci.RequestCommit", - encode(_: RequestCommit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): RequestCommit { - return {}; - }, - toJSON(_: RequestCommit): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): RequestCommit { - const message = createBaseRequestCommit(); - return message; - }, - fromAmino(_: RequestCommitAmino): RequestCommit { - const message = createBaseRequestCommit(); - return message; - }, - toAmino(_: RequestCommit): RequestCommitAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: RequestCommitAminoMsg): RequestCommit { - return RequestCommit.fromAmino(object.value); - }, - fromProtoMsg(message: RequestCommitProtoMsg): RequestCommit { - return RequestCommit.decode(message.value); - }, - toProto(message: RequestCommit): Uint8Array { - return RequestCommit.encode(message).finish(); - }, - toProtoMsg(message: RequestCommit): RequestCommitProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestCommit", - value: RequestCommit.encode(message).finish() - }; - } -}; -function createBaseRequestListSnapshots(): RequestListSnapshots { - return {}; -} -export const RequestListSnapshots = { - typeUrl: "/tendermint.abci.RequestListSnapshots", - encode(_: RequestListSnapshots, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): RequestListSnapshots { - return {}; - }, - toJSON(_: RequestListSnapshots): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): RequestListSnapshots { - const message = createBaseRequestListSnapshots(); - return message; - }, - fromAmino(_: RequestListSnapshotsAmino): RequestListSnapshots { - const message = createBaseRequestListSnapshots(); - return message; - }, - toAmino(_: RequestListSnapshots): RequestListSnapshotsAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: RequestListSnapshotsAminoMsg): RequestListSnapshots { - return RequestListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message: RequestListSnapshotsProtoMsg): RequestListSnapshots { - return RequestListSnapshots.decode(message.value); - }, - toProto(message: RequestListSnapshots): Uint8Array { - return RequestListSnapshots.encode(message).finish(); - }, - toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestListSnapshots", - value: RequestListSnapshots.encode(message).finish() - }; - } -}; -function createBaseRequestOfferSnapshot(): RequestOfferSnapshot { - return { - snapshot: undefined, - appHash: new Uint8Array() - }; -} -export const RequestOfferSnapshot = { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - encode(message: RequestOfferSnapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.snapshot !== undefined) { - Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(18).bytes(message.appHash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshot = Snapshot.decode(reader, reader.uint32()); - break; - case 2: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestOfferSnapshot { - return { - snapshot: isSet(object.snapshot) ? Snapshot.fromJSON(object.snapshot) : undefined, - appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array() - }; - }, - toJSON(message: RequestOfferSnapshot): unknown { - const obj: any = {}; - message.snapshot !== undefined && (obj.snapshot = message.snapshot ? Snapshot.toJSON(message.snapshot) : undefined); - message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): RequestOfferSnapshot { - const message = createBaseRequestOfferSnapshot(); - message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object: RequestOfferSnapshotAmino): RequestOfferSnapshot { - const message = createBaseRequestOfferSnapshot(); - if (object.snapshot !== undefined && object.snapshot !== null) { - message.snapshot = Snapshot.fromAmino(object.snapshot); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - return message; - }, - toAmino(message: RequestOfferSnapshot): RequestOfferSnapshotAmino { - const obj: any = {}; - obj.snapshot = message.snapshot ? Snapshot.toAmino(message.snapshot) : undefined; - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object: RequestOfferSnapshotAminoMsg): RequestOfferSnapshot { - return RequestOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message: RequestOfferSnapshotProtoMsg): RequestOfferSnapshot { - return RequestOfferSnapshot.decode(message.value); - }, - toProto(message: RequestOfferSnapshot): Uint8Array { - return RequestOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - value: RequestOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseRequestLoadSnapshotChunk(): RequestLoadSnapshotChunk { - return { - height: BigInt(0), - format: 0, - chunk: 0 - }; -} -export const RequestLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - encode(message: RequestLoadSnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunk !== 0) { - writer.uint32(24).uint32(message.chunk); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunk = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestLoadSnapshotChunk { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - format: isSet(object.format) ? Number(object.format) : 0, - chunk: isSet(object.chunk) ? Number(object.chunk) : 0 - }; - }, - toJSON(message: RequestLoadSnapshotChunk): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.format !== undefined && (obj.format = Math.round(message.format)); - message.chunk !== undefined && (obj.chunk = Math.round(message.chunk)); - return obj; - }, - fromPartial(object: Partial): RequestLoadSnapshotChunk { - const message = createBaseRequestLoadSnapshotChunk(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunk = object.chunk ?? 0; - return message; - }, - fromAmino(object: RequestLoadSnapshotChunkAmino): RequestLoadSnapshotChunk { - const message = createBaseRequestLoadSnapshotChunk(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = object.chunk; - } - return message; - }, - toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunk = message.chunk === 0 ? undefined : message.chunk; - return obj; - }, - fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk { - return RequestLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message: RequestLoadSnapshotChunkProtoMsg): RequestLoadSnapshotChunk { - return RequestLoadSnapshotChunk.decode(message.value); - }, - toProto(message: RequestLoadSnapshotChunk): Uint8Array { - return RequestLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - value: RequestLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestApplySnapshotChunk(): RequestApplySnapshotChunk { - return { - index: 0, - chunk: new Uint8Array(), - sender: "" - }; -} -export const RequestApplySnapshotChunk = { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - encode(message: RequestApplySnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.chunk.length !== 0) { - writer.uint32(18).bytes(message.chunk); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.chunk = reader.bytes(); - break; - case 3: - message.sender = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestApplySnapshotChunk { - return { - index: isSet(object.index) ? Number(object.index) : 0, - chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array(), - sender: isSet(object.sender) ? String(object.sender) : "" - }; - }, - toJSON(message: RequestApplySnapshotChunk): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = Math.round(message.index)); - message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array())); - message.sender !== undefined && (obj.sender = message.sender); - return obj; - }, - fromPartial(object: Partial): RequestApplySnapshotChunk { - const message = createBaseRequestApplySnapshotChunk(); - message.index = object.index ?? 0; - message.chunk = object.chunk ?? new Uint8Array(); - message.sender = object.sender ?? ""; - return message; - }, - fromAmino(object: RequestApplySnapshotChunkAmino): RequestApplySnapshotChunk { - const message = createBaseRequestApplySnapshotChunk(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = bytesFromBase64(object.chunk); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - return message; - }, - toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino { - const obj: any = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - return obj; - }, - fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk { - return RequestApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message: RequestApplySnapshotChunkProtoMsg): RequestApplySnapshotChunk { - return RequestApplySnapshotChunk.decode(message.value); - }, - toProto(message: RequestApplySnapshotChunk): Uint8Array { - return RequestApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - value: RequestApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestPrepareProposal(): RequestPrepareProposal { - return { - maxTxBytes: BigInt(0), - txs: [], - localLastCommit: ExtendedCommitInfo.fromPartial({}), - misbehavior: [], - height: BigInt(0), - time: Timestamp.fromPartial({}), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const RequestPrepareProposal = { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - encode(message: RequestPrepareProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.maxTxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxTxBytes); - } - for (const v of message.txs) { - writer.uint32(18).bytes(v!); - } - if (message.localLastCommit !== undefined) { - ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.misbehavior) { - Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestPrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTxBytes = reader.int64(); - break; - case 2: - message.txs.push(reader.bytes()); - break; - case 3: - message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestPrepareProposal { - return { - maxTxBytes: isSet(object.maxTxBytes) ? BigInt(object.maxTxBytes.toString()) : BigInt(0), - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [], - localLastCommit: isSet(object.localLastCommit) ? ExtendedCommitInfo.fromJSON(object.localLastCommit) : undefined, - misbehavior: Array.isArray(object?.misbehavior) ? object.misbehavior.map((e: any) => Misbehavior.fromJSON(e)) : [], - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - nextValidatorsHash: isSet(object.nextValidatorsHash) ? bytesFromBase64(object.nextValidatorsHash) : new Uint8Array(), - proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array() - }; - }, - toJSON(message: RequestPrepareProposal): unknown { - const obj: any = {}; - message.maxTxBytes !== undefined && (obj.maxTxBytes = (message.maxTxBytes || BigInt(0)).toString()); - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.txs = []; - } - message.localLastCommit !== undefined && (obj.localLastCommit = message.localLastCommit ? ExtendedCommitInfo.toJSON(message.localLastCommit) : undefined); - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toJSON(e) : undefined); - } else { - obj.misbehavior = []; - } - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.nextValidatorsHash !== undefined && (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array())); - message.proposerAddress !== undefined && (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): RequestPrepareProposal { - const message = createBaseRequestPrepareProposal(); - message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); - message.txs = object.txs?.map(e => e) || []; - message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object: RequestPrepareProposalAmino): RequestPrepareProposal { - const message = createBaseRequestPrepareProposal(); - if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { - message.maxTxBytes = BigInt(object.max_tx_bytes); - } - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - if (object.local_last_commit !== undefined && object.local_last_commit !== null) { - message.localLastCommit = ExtendedCommitInfo.fromAmino(object.local_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message: RequestPrepareProposal): RequestPrepareProposalAmino { - const obj: any = {}; - obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } else { - obj.txs = message.txs; - } - obj.local_last_commit = message.localLastCommit ? ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); - } else { - obj.misbehavior = message.misbehavior; - } - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object: RequestPrepareProposalAminoMsg): RequestPrepareProposal { - return RequestPrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message: RequestPrepareProposalProtoMsg): RequestPrepareProposal { - return RequestPrepareProposal.decode(message.value); - }, - toProto(message: RequestPrepareProposal): Uint8Array { - return RequestPrepareProposal.encode(message).finish(); - }, - toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - value: RequestPrepareProposal.encode(message).finish() - }; - } -}; -function createBaseRequestProcessProposal(): RequestProcessProposal { - return { - txs: [], - proposedLastCommit: CommitInfo.fromPartial({}), - misbehavior: [], - hash: new Uint8Array(), - height: BigInt(0), - time: Timestamp.fromPartial({}), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const RequestProcessProposal = { - typeUrl: "/tendermint.abci.RequestProcessProposal", - encode(message: RequestProcessProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.txs) { - writer.uint32(10).bytes(v!); - } - if (message.proposedLastCommit !== undefined) { - CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.misbehavior) { - Misbehavior.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - case 2: - message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32()); - break; - case 3: - message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): RequestProcessProposal { - return { - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [], - proposedLastCommit: isSet(object.proposedLastCommit) ? CommitInfo.fromJSON(object.proposedLastCommit) : undefined, - misbehavior: Array.isArray(object?.misbehavior) ? object.misbehavior.map((e: any) => Misbehavior.fromJSON(e)) : [], - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - nextValidatorsHash: isSet(object.nextValidatorsHash) ? bytesFromBase64(object.nextValidatorsHash) : new Uint8Array(), - proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array() - }; - }, - toJSON(message: RequestProcessProposal): unknown { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.txs = []; - } - message.proposedLastCommit !== undefined && (obj.proposedLastCommit = message.proposedLastCommit ? CommitInfo.toJSON(message.proposedLastCommit) : undefined); - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toJSON(e) : undefined); - } else { - obj.misbehavior = []; - } - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.nextValidatorsHash !== undefined && (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array())); - message.proposerAddress !== undefined && (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): RequestProcessProposal { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => e) || []; - message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? CommitInfo.fromPartial(object.proposedLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; - message.hash = object.hash ?? new Uint8Array(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object: RequestProcessProposalAmino): RequestProcessProposal { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { - message.proposedLastCommit = CommitInfo.fromAmino(object.proposed_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message: RequestProcessProposal): RequestProcessProposalAmino { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } else { - obj.txs = message.txs; - } - obj.proposed_last_commit = message.proposedLastCommit ? CommitInfo.toAmino(message.proposedLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); - } else { - obj.misbehavior = message.misbehavior; - } - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object: RequestProcessProposalAminoMsg): RequestProcessProposal { - return RequestProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message: RequestProcessProposalProtoMsg): RequestProcessProposal { - return RequestProcessProposal.decode(message.value); - }, - toProto(message: RequestProcessProposal): Uint8Array { - return RequestProcessProposal.encode(message).finish(); - }, - toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg { - return { - typeUrl: "/tendermint.abci.RequestProcessProposal", - value: RequestProcessProposal.encode(message).finish() - }; - } -}; -function createBaseResponse(): Response { - return { - exception: undefined, - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -export const Response = { - typeUrl: "/tendermint.abci.Response", - encode(message: Response, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.exception !== undefined) { - ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); - } - if (message.echo !== undefined) { - ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); - } - if (message.flush !== undefined) { - ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); - } - if (message.info !== undefined) { - ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); - } - if (message.initChain !== undefined) { - ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); - } - if (message.query !== undefined) { - ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); - } - if (message.commit !== undefined) { - ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Response { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exception = ResponseException.decode(reader, reader.uint32()); - break; - case 2: - message.echo = ResponseEcho.decode(reader, reader.uint32()); - break; - case 3: - message.flush = ResponseFlush.decode(reader, reader.uint32()); - break; - case 4: - message.info = ResponseInfo.decode(reader, reader.uint32()); - break; - case 6: - message.initChain = ResponseInitChain.decode(reader, reader.uint32()); - break; - case 7: - message.query = ResponseQuery.decode(reader, reader.uint32()); - break; - case 8: - message.beginBlock = ResponseBeginBlock.decode(reader, reader.uint32()); - break; - case 9: - message.checkTx = ResponseCheckTx.decode(reader, reader.uint32()); - break; - case 10: - message.deliverTx = ResponseDeliverTx.decode(reader, reader.uint32()); - break; - case 11: - message.endBlock = ResponseEndBlock.decode(reader, reader.uint32()); - break; - case 12: - message.commit = ResponseCommit.decode(reader, reader.uint32()); - break; - case 13: - message.listSnapshots = ResponseListSnapshots.decode(reader, reader.uint32()); - break; - case 14: - message.offerSnapshot = ResponseOfferSnapshot.decode(reader, reader.uint32()); - break; - case 15: - message.loadSnapshotChunk = ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 17: - message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32()); - break; - case 18: - message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Response { - return { - exception: isSet(object.exception) ? ResponseException.fromJSON(object.exception) : undefined, - echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined, - flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined, - info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined, - initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined, - query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined, - beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined, - checkTx: isSet(object.checkTx) ? ResponseCheckTx.fromJSON(object.checkTx) : undefined, - deliverTx: isSet(object.deliverTx) ? ResponseDeliverTx.fromJSON(object.deliverTx) : undefined, - endBlock: isSet(object.endBlock) ? ResponseEndBlock.fromJSON(object.endBlock) : undefined, - commit: isSet(object.commit) ? ResponseCommit.fromJSON(object.commit) : undefined, - listSnapshots: isSet(object.listSnapshots) ? ResponseListSnapshots.fromJSON(object.listSnapshots) : undefined, - offerSnapshot: isSet(object.offerSnapshot) ? ResponseOfferSnapshot.fromJSON(object.offerSnapshot) : undefined, - loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? ResponseLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined, - applySnapshotChunk: isSet(object.applySnapshotChunk) ? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined, - prepareProposal: isSet(object.prepareProposal) ? ResponsePrepareProposal.fromJSON(object.prepareProposal) : undefined, - processProposal: isSet(object.processProposal) ? ResponseProcessProposal.fromJSON(object.processProposal) : undefined - }; - }, - toJSON(message: Response): unknown { - const obj: any = {}; - message.exception !== undefined && (obj.exception = message.exception ? ResponseException.toJSON(message.exception) : undefined); - message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined); - message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined); - message.info !== undefined && (obj.info = message.info ? ResponseInfo.toJSON(message.info) : undefined); - message.initChain !== undefined && (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined); - message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined); - message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? ResponseBeginBlock.toJSON(message.beginBlock) : undefined); - message.checkTx !== undefined && (obj.checkTx = message.checkTx ? ResponseCheckTx.toJSON(message.checkTx) : undefined); - message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? ResponseDeliverTx.toJSON(message.deliverTx) : undefined); - message.endBlock !== undefined && (obj.endBlock = message.endBlock ? ResponseEndBlock.toJSON(message.endBlock) : undefined); - message.commit !== undefined && (obj.commit = message.commit ? ResponseCommit.toJSON(message.commit) : undefined); - message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? ResponseListSnapshots.toJSON(message.listSnapshots) : undefined); - message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? ResponseOfferSnapshot.toJSON(message.offerSnapshot) : undefined); - message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined); - message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined); - message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal ? ResponsePrepareProposal.toJSON(message.prepareProposal) : undefined); - message.processProposal !== undefined && (obj.processProposal = message.processProposal ? ResponseProcessProposal.toJSON(message.processProposal) : undefined); - return obj; - }, - fromPartial(object: Partial): Response { - const message = createBaseResponse(); - message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined; - message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? ResponseFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? ResponseInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? ResponseInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? ResponseQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? ResponseCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? ResponseEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? ResponseCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? ResponseProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object: ResponseAmino): Response { - const message = createBaseResponse(); - if (object.exception !== undefined && object.exception !== null) { - message.exception = ResponseException.fromAmino(object.exception); - } - if (object.echo !== undefined && object.echo !== null) { - message.echo = ResponseEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = ResponseFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = ResponseInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = ResponseInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = ResponseQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = ResponseBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = ResponseCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = ResponseDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = ResponseEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = ResponseCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = ResponseListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = ResponseOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = ResponsePrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = ResponseProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message: Response): ResponseAmino { - const obj: any = {}; - obj.exception = message.exception ? ResponseException.toAmino(message.exception) : undefined; - obj.echo = message.echo ? ResponseEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? ResponseFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? ResponseInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? ResponseInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? ResponseQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? ResponseBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? ResponseCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? ResponseDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? ResponseEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? ResponseCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? ResponseProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object: ResponseAminoMsg): Response { - return Response.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseProtoMsg): Response { - return Response.decode(message.value); - }, - toProto(message: Response): Uint8Array { - return Response.encode(message).finish(); - }, - toProtoMsg(message: Response): ResponseProtoMsg { - return { - typeUrl: "/tendermint.abci.Response", - value: Response.encode(message).finish() - }; - } -}; -function createBaseResponseException(): ResponseException { - return { - error: "" - }; -} -export const ResponseException = { - typeUrl: "/tendermint.abci.ResponseException", - encode(message: ResponseException, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.error !== "") { - writer.uint32(10).string(message.error); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseException { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseException(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseException { - return { - error: isSet(object.error) ? String(object.error) : "" - }; - }, - toJSON(message: ResponseException): unknown { - const obj: any = {}; - message.error !== undefined && (obj.error = message.error); - return obj; - }, - fromPartial(object: Partial): ResponseException { - const message = createBaseResponseException(); - message.error = object.error ?? ""; - return message; - }, - fromAmino(object: ResponseExceptionAmino): ResponseException { - const message = createBaseResponseException(); - if (object.error !== undefined && object.error !== null) { - message.error = object.error; - } - return message; - }, - toAmino(message: ResponseException): ResponseExceptionAmino { - const obj: any = {}; - obj.error = message.error === "" ? undefined : message.error; - return obj; - }, - fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException { - return ResponseException.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseExceptionProtoMsg): ResponseException { - return ResponseException.decode(message.value); - }, - toProto(message: ResponseException): Uint8Array { - return ResponseException.encode(message).finish(); - }, - toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseException", - value: ResponseException.encode(message).finish() - }; - } -}; -function createBaseResponseEcho(): ResponseEcho { - return { - message: "" - }; -} -export const ResponseEcho = { - typeUrl: "/tendermint.abci.ResponseEcho", - encode(message: ResponseEcho, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseEcho { - return { - message: isSet(object.message) ? String(object.message) : "" - }; - }, - toJSON(message: ResponseEcho): unknown { - const obj: any = {}; - message.message !== undefined && (obj.message = message.message); - return obj; - }, - fromPartial(object: Partial): ResponseEcho { - const message = createBaseResponseEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object: ResponseEchoAmino): ResponseEcho { - const message = createBaseResponseEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message: ResponseEcho): ResponseEchoAmino { - const obj: any = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho { - return ResponseEcho.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseEchoProtoMsg): ResponseEcho { - return ResponseEcho.decode(message.value); - }, - toProto(message: ResponseEcho): Uint8Array { - return ResponseEcho.encode(message).finish(); - }, - toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseEcho", - value: ResponseEcho.encode(message).finish() - }; - } -}; -function createBaseResponseFlush(): ResponseFlush { - return {}; -} -export const ResponseFlush = { - typeUrl: "/tendermint.abci.ResponseFlush", - encode(_: ResponseFlush, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(_: any): ResponseFlush { - return {}; - }, - toJSON(_: ResponseFlush): unknown { - const obj: any = {}; - return obj; - }, - fromPartial(_: Partial): ResponseFlush { - const message = createBaseResponseFlush(); - return message; - }, - fromAmino(_: ResponseFlushAmino): ResponseFlush { - const message = createBaseResponseFlush(); - return message; - }, - toAmino(_: ResponseFlush): ResponseFlushAmino { - const obj: any = {}; - return obj; - }, - fromAminoMsg(object: ResponseFlushAminoMsg): ResponseFlush { - return ResponseFlush.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseFlushProtoMsg): ResponseFlush { - return ResponseFlush.decode(message.value); - }, - toProto(message: ResponseFlush): Uint8Array { - return ResponseFlush.encode(message).finish(); - }, - toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseFlush", - value: ResponseFlush.encode(message).finish() - }; - } -}; -function createBaseResponseInfo(): ResponseInfo { - return { - data: "", - version: "", - appVersion: BigInt(0), - lastBlockHeight: BigInt(0), - lastBlockAppHash: new Uint8Array() - }; -} -export const ResponseInfo = { - typeUrl: "/tendermint.abci.ResponseInfo", - encode(message: ResponseInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.data !== "") { - writer.uint32(10).string(message.data); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - if (message.appVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.appVersion); - } - if (message.lastBlockHeight !== BigInt(0)) { - writer.uint32(32).int64(message.lastBlockHeight); - } - if (message.lastBlockAppHash.length !== 0) { - writer.uint32(42).bytes(message.lastBlockAppHash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.appVersion = reader.uint64(); - break; - case 4: - message.lastBlockHeight = reader.int64(); - break; - case 5: - message.lastBlockAppHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseInfo { - return { - data: isSet(object.data) ? String(object.data) : "", - version: isSet(object.version) ? String(object.version) : "", - appVersion: isSet(object.appVersion) ? BigInt(object.appVersion.toString()) : BigInt(0), - lastBlockHeight: isSet(object.lastBlockHeight) ? BigInt(object.lastBlockHeight.toString()) : BigInt(0), - lastBlockAppHash: isSet(object.lastBlockAppHash) ? bytesFromBase64(object.lastBlockAppHash) : new Uint8Array() - }; - }, - toJSON(message: ResponseInfo): unknown { - const obj: any = {}; - message.data !== undefined && (obj.data = message.data); - message.version !== undefined && (obj.version = message.version); - message.appVersion !== undefined && (obj.appVersion = (message.appVersion || BigInt(0)).toString()); - message.lastBlockHeight !== undefined && (obj.lastBlockHeight = (message.lastBlockHeight || BigInt(0)).toString()); - message.lastBlockAppHash !== undefined && (obj.lastBlockAppHash = base64FromBytes(message.lastBlockAppHash !== undefined ? message.lastBlockAppHash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ResponseInfo { - const message = createBaseResponseInfo(); - message.data = object.data ?? ""; - message.version = object.version ?? ""; - message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); - message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); - message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); - return message; - }, - fromAmino(object: ResponseInfoAmino): ResponseInfo { - const message = createBaseResponseInfo(); - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.app_version !== undefined && object.app_version !== null) { - message.appVersion = BigInt(object.app_version); - } - if (object.last_block_height !== undefined && object.last_block_height !== null) { - message.lastBlockHeight = BigInt(object.last_block_height); - } - if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { - message.lastBlockAppHash = bytesFromBase64(object.last_block_app_hash); - } - return message; - }, - toAmino(message: ResponseInfo): ResponseInfoAmino { - const obj: any = {}; - obj.data = message.data === "" ? undefined : message.data; - obj.version = message.version === "" ? undefined : message.version; - obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; - obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; - obj.last_block_app_hash = message.lastBlockAppHash ? base64FromBytes(message.lastBlockAppHash) : undefined; - return obj; - }, - fromAminoMsg(object: ResponseInfoAminoMsg): ResponseInfo { - return ResponseInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseInfoProtoMsg): ResponseInfo { - return ResponseInfo.decode(message.value); - }, - toProto(message: ResponseInfo): Uint8Array { - return ResponseInfo.encode(message).finish(); - }, - toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseInfo", - value: ResponseInfo.encode(message).finish() - }; - } -}; -function createBaseResponseInitChain(): ResponseInitChain { - return { - consensusParams: undefined, - validators: [], - appHash: new Uint8Array() - }; -} -export const ResponseInitChain = { - typeUrl: "/tendermint.abci.ResponseInitChain", - encode(message: ResponseInitChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.consensusParams !== undefined) { - ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.validators) { - ValidatorUpdate.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(26).bytes(message.appHash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); - break; - case 2: - message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 3: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseInitChain { - return { - consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined, - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [], - appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array() - }; - }, - toJSON(message: ResponseInitChain): unknown { - const obj: any = {}; - message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined); - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ResponseInitChain { - const message = createBaseResponseInitChain(); - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object: ResponseInitChainAmino): ResponseInitChain { - const message = createBaseResponseInitChain(); - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - return message; - }, - toAmino(message: ResponseInitChain): ResponseInitChainAmino { - const obj: any = {}; - obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object: ResponseInitChainAminoMsg): ResponseInitChain { - return ResponseInitChain.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseInitChainProtoMsg): ResponseInitChain { - return ResponseInitChain.decode(message.value); - }, - toProto(message: ResponseInitChain): Uint8Array { - return ResponseInitChain.encode(message).finish(); - }, - toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseInitChain", - value: ResponseInitChain.encode(message).finish() - }; - } -}; -function createBaseResponseQuery(): ResponseQuery { - return { - code: 0, - log: "", - info: "", - index: BigInt(0), - key: new Uint8Array(), - value: new Uint8Array(), - proofOps: undefined, - height: BigInt(0), - codespace: "" - }; -} -export const ResponseQuery = { - typeUrl: "/tendermint.abci.ResponseQuery", - encode(message: ResponseQuery, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.index !== BigInt(0)) { - writer.uint32(40).int64(message.index); - } - if (message.key.length !== 0) { - writer.uint32(50).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(58).bytes(message.value); - } - if (message.proofOps !== undefined) { - ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(72).int64(message.height); - } - if (message.codespace !== "") { - writer.uint32(82).string(message.codespace); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.index = reader.int64(); - break; - case 6: - message.key = reader.bytes(); - break; - case 7: - message.value = reader.bytes(); - break; - case 8: - message.proofOps = ProofOps.decode(reader, reader.uint32()); - break; - case 9: - message.height = reader.int64(); - break; - case 10: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseQuery { - return { - code: isSet(object.code) ? Number(object.code) : 0, - log: isSet(object.log) ? String(object.log) : "", - info: isSet(object.info) ? String(object.info) : "", - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(), - proofOps: isSet(object.proofOps) ? ProofOps.fromJSON(object.proofOps) : undefined, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - codespace: isSet(object.codespace) ? String(object.codespace) : "" - }; - }, - toJSON(message: ResponseQuery): unknown { - const obj: any = {}; - message.code !== undefined && (obj.code = Math.round(message.code)); - message.log !== undefined && (obj.log = message.log); - message.info !== undefined && (obj.info = message.info); - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); - message.proofOps !== undefined && (obj.proofOps = message.proofOps ? ProofOps.toJSON(message.proofOps) : undefined); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.codespace !== undefined && (obj.codespace = message.codespace); - return obj; - }, - fromPartial(object: Partial): ResponseQuery { - const message = createBaseResponseQuery(); - message.code = object.code ?? 0; - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object: ResponseQueryAmino): ResponseQuery { - const message = createBaseResponseQuery(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - if (object.proof_ops !== undefined && object.proof_ops !== null) { - message.proofOps = ProofOps.fromAmino(object.proof_ops); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message: ResponseQuery): ResponseQueryAmino { - const obj: any = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery { - return ResponseQuery.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseQueryProtoMsg): ResponseQuery { - return ResponseQuery.decode(message.value); - }, - toProto(message: ResponseQuery): Uint8Array { - return ResponseQuery.encode(message).finish(); - }, - toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseQuery", - value: ResponseQuery.encode(message).finish() - }; - } -}; -function createBaseResponseBeginBlock(): ResponseBeginBlock { - return { - events: [] - }; -} -export const ResponseBeginBlock = { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - encode(message: ResponseBeginBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.events) { - Event.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseBeginBlock { - return { - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [] - }; - }, - toJSON(message: ResponseBeginBlock): unknown { - const obj: any = {}; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - return obj; - }, - fromPartial(object: Partial): ResponseBeginBlock { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ResponseBeginBlockAmino): ResponseBeginBlock { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message: ResponseBeginBlock): ResponseBeginBlockAmino { - const obj: any = {}; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object: ResponseBeginBlockAminoMsg): ResponseBeginBlock { - return ResponseBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseBeginBlockProtoMsg): ResponseBeginBlock { - return ResponseBeginBlock.decode(message.value); - }, - toProto(message: ResponseBeginBlock): Uint8Array { - return ResponseBeginBlock.encode(message).finish(); - }, - toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - value: ResponseBeginBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCheckTx(): ResponseCheckTx { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "", - sender: "", - priority: BigInt(0), - mempoolError: "" - }; -} -export const ResponseCheckTx = { - typeUrl: "/tendermint.abci.ResponseCheckTx", - encode(message: ResponseCheckTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - Event.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - if (message.sender !== "") { - writer.uint32(74).string(message.sender); - } - if (message.priority !== BigInt(0)) { - writer.uint32(80).int64(message.priority); - } - if (message.mempoolError !== "") { - writer.uint32(90).string(message.mempoolError); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - case 9: - message.sender = reader.string(); - break; - case 10: - message.priority = reader.int64(); - break; - case 11: - message.mempoolError = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseCheckTx { - return { - code: isSet(object.code) ? Number(object.code) : 0, - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - log: isSet(object.log) ? String(object.log) : "", - info: isSet(object.info) ? String(object.info) : "", - gasWanted: isSet(object.gas_wanted) ? BigInt(object.gas_wanted.toString()) : BigInt(0), - gasUsed: isSet(object.gas_used) ? BigInt(object.gas_used.toString()) : BigInt(0), - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [], - codespace: isSet(object.codespace) ? String(object.codespace) : "", - sender: isSet(object.sender) ? String(object.sender) : "", - priority: isSet(object.priority) ? BigInt(object.priority.toString()) : BigInt(0), - mempoolError: isSet(object.mempoolError) ? String(object.mempoolError) : "" - }; - }, - toJSON(message: ResponseCheckTx): unknown { - const obj: any = {}; - message.code !== undefined && (obj.code = Math.round(message.code)); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.log !== undefined && (obj.log = message.log); - message.info !== undefined && (obj.info = message.info); - message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || BigInt(0)).toString()); - message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || BigInt(0)).toString()); - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - message.codespace !== undefined && (obj.codespace = message.codespace); - message.sender !== undefined && (obj.sender = message.sender); - message.priority !== undefined && (obj.priority = (message.priority || BigInt(0)).toString()); - message.mempoolError !== undefined && (obj.mempoolError = message.mempoolError); - return obj; - }, - fromPartial(object: Partial): ResponseCheckTx { - const message = createBaseResponseCheckTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - message.sender = object.sender ?? ""; - message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); - message.mempoolError = object.mempoolError ?? ""; - return message; - }, - fromAmino(object: ResponseCheckTxAmino): ResponseCheckTx { - const message = createBaseResponseCheckTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.priority !== undefined && object.priority !== null) { - message.priority = BigInt(object.priority); - } - if (object.mempool_error !== undefined && object.mempool_error !== null) { - message.mempoolError = object.mempool_error; - } - return message; - }, - toAmino(message: ResponseCheckTx): ResponseCheckTxAmino { - const obj: any = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; - obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; - return obj; - }, - fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx { - return ResponseCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseCheckTxProtoMsg): ResponseCheckTx { - return ResponseCheckTx.decode(message.value); - }, - toProto(message: ResponseCheckTx): Uint8Array { - return ResponseCheckTx.encode(message).finish(); - }, - toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseCheckTx", - value: ResponseCheckTx.encode(message).finish() - }; - } -}; -function createBaseResponseDeliverTx(): ResponseDeliverTx { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "" - }; -} -export const ResponseDeliverTx = { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - encode(message: ResponseDeliverTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - Event.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseDeliverTx { - return { - code: isSet(object.code) ? Number(object.code) : 0, - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - log: isSet(object.log) ? String(object.log) : "", - info: isSet(object.info) ? String(object.info) : "", - gasWanted: isSet(object.gas_wanted) ? BigInt(object.gas_wanted.toString()) : BigInt(0), - gasUsed: isSet(object.gas_used) ? BigInt(object.gas_used.toString()) : BigInt(0), - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [], - codespace: isSet(object.codespace) ? String(object.codespace) : "" - }; - }, - toJSON(message: ResponseDeliverTx): unknown { - const obj: any = {}; - message.code !== undefined && (obj.code = Math.round(message.code)); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.log !== undefined && (obj.log = message.log); - message.info !== undefined && (obj.info = message.info); - message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || BigInt(0)).toString()); - message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || BigInt(0)).toString()); - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - message.codespace !== undefined && (obj.codespace = message.codespace); - return obj; - }, - fromPartial(object: Partial): ResponseDeliverTx { - const message = createBaseResponseDeliverTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object: ResponseDeliverTxAmino): ResponseDeliverTx { - const message = createBaseResponseDeliverTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino { - const obj: any = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx { - return ResponseDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseDeliverTxProtoMsg): ResponseDeliverTx { - return ResponseDeliverTx.decode(message.value); - }, - toProto(message: ResponseDeliverTx): Uint8Array { - return ResponseDeliverTx.encode(message).finish(); - }, - toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - value: ResponseDeliverTx.encode(message).finish() - }; - } -}; -function createBaseResponseEndBlock(): ResponseEndBlock { - return { - validatorUpdates: [], - consensusParamUpdates: undefined, - events: [] - }; -} -export const ResponseEndBlock = { - typeUrl: "/tendermint.abci.ResponseEndBlock", - encode(message: ResponseEndBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validatorUpdates) { - ValidatorUpdate.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusParamUpdates !== undefined) { - ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.events) { - Event.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorUpdates.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 2: - message.consensusParamUpdates = ConsensusParams.decode(reader, reader.uint32()); - break; - case 3: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseEndBlock { - return { - validatorUpdates: Array.isArray(object?.validatorUpdates) ? object.validatorUpdates.map((e: any) => ValidatorUpdate.fromJSON(e)) : [], - consensusParamUpdates: isSet(object.consensusParamUpdates) ? ConsensusParams.fromJSON(object.consensusParamUpdates) : undefined, - events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [] - }; - }, - toJSON(message: ResponseEndBlock): unknown { - const obj: any = {}; - if (message.validatorUpdates) { - obj.validatorUpdates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toJSON(e) : undefined); - } else { - obj.validatorUpdates = []; - } - message.consensusParamUpdates !== undefined && (obj.consensusParamUpdates = message.consensusParamUpdates ? ConsensusParams.toJSON(message.consensusParamUpdates) : undefined); - if (message.events) { - obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined); - } else { - obj.events = []; - } - return obj; - }, - fromPartial(object: Partial): ResponseEndBlock { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ResponseEndBlockAmino): ResponseEndBlock { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validator_updates?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { - message.consensusParamUpdates = ConsensusParams.fromAmino(object.consensus_param_updates); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message: ResponseEndBlock): ResponseEndBlockAmino { - const obj: any = {}; - if (message.validatorUpdates) { - obj.validator_updates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } else { - obj.validator_updates = message.validatorUpdates; - } - obj.consensus_param_updates = message.consensusParamUpdates ? ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object: ResponseEndBlockAminoMsg): ResponseEndBlock { - return ResponseEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseEndBlockProtoMsg): ResponseEndBlock { - return ResponseEndBlock.decode(message.value); - }, - toProto(message: ResponseEndBlock): Uint8Array { - return ResponseEndBlock.encode(message).finish(); - }, - toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseEndBlock", - value: ResponseEndBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCommit(): ResponseCommit { - return { - data: new Uint8Array(), - retainHeight: BigInt(0) - }; -} -export const ResponseCommit = { - typeUrl: "/tendermint.abci.ResponseCommit", - encode(message: ResponseCommit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.retainHeight !== BigInt(0)) { - writer.uint32(24).int64(message.retainHeight); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.data = reader.bytes(); - break; - case 3: - message.retainHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseCommit { - return { - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - retainHeight: isSet(object.retainHeight) ? BigInt(object.retainHeight.toString()) : BigInt(0) - }; - }, - toJSON(message: ResponseCommit): unknown { - const obj: any = {}; - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.retainHeight !== undefined && (obj.retainHeight = (message.retainHeight || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ResponseCommit { - const message = createBaseResponseCommit(); - message.data = object.data ?? new Uint8Array(); - message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ResponseCommitAmino): ResponseCommit { - const message = createBaseResponseCommit(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.retain_height !== undefined && object.retain_height !== null) { - message.retainHeight = BigInt(object.retain_height); - } - return message; - }, - toAmino(message: ResponseCommit): ResponseCommitAmino { - const obj: any = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit { - return ResponseCommit.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseCommitProtoMsg): ResponseCommit { - return ResponseCommit.decode(message.value); - }, - toProto(message: ResponseCommit): Uint8Array { - return ResponseCommit.encode(message).finish(); - }, - toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseCommit", - value: ResponseCommit.encode(message).finish() - }; - } -}; -function createBaseResponseListSnapshots(): ResponseListSnapshots { - return { - snapshots: [] - }; -} -export const ResponseListSnapshots = { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - encode(message: ResponseListSnapshots, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.snapshots) { - Snapshot.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshots.push(Snapshot.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseListSnapshots { - return { - snapshots: Array.isArray(object?.snapshots) ? object.snapshots.map((e: any) => Snapshot.fromJSON(e)) : [] - }; - }, - toJSON(message: ResponseListSnapshots): unknown { - const obj: any = {}; - if (message.snapshots) { - obj.snapshots = message.snapshots.map(e => e ? Snapshot.toJSON(e) : undefined); - } else { - obj.snapshots = []; - } - return obj; - }, - fromPartial(object: Partial): ResponseListSnapshots { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ResponseListSnapshotsAmino): ResponseListSnapshots { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => Snapshot.fromAmino(e)) || []; - return message; - }, - toAmino(message: ResponseListSnapshots): ResponseListSnapshotsAmino { - const obj: any = {}; - if (message.snapshots) { - obj.snapshots = message.snapshots.map(e => e ? Snapshot.toAmino(e) : undefined); - } else { - obj.snapshots = message.snapshots; - } - return obj; - }, - fromAminoMsg(object: ResponseListSnapshotsAminoMsg): ResponseListSnapshots { - return ResponseListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseListSnapshotsProtoMsg): ResponseListSnapshots { - return ResponseListSnapshots.decode(message.value); - }, - toProto(message: ResponseListSnapshots): Uint8Array { - return ResponseListSnapshots.encode(message).finish(); - }, - toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - value: ResponseListSnapshots.encode(message).finish() - }; - } -}; -function createBaseResponseOfferSnapshot(): ResponseOfferSnapshot { - return { - result: 0 - }; -} -export const ResponseOfferSnapshot = { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - encode(message: ResponseOfferSnapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseOfferSnapshot { - return { - result: isSet(object.result) ? responseOfferSnapshot_ResultFromJSON(object.result) : -1 - }; - }, - toJSON(message: ResponseOfferSnapshot): unknown { - const obj: any = {}; - message.result !== undefined && (obj.result = responseOfferSnapshot_ResultToJSON(message.result)); - return obj; - }, - fromPartial(object: Partial): ResponseOfferSnapshot { - const message = createBaseResponseOfferSnapshot(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot { - const message = createBaseResponseOfferSnapshot(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino { - const obj: any = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot { - return ResponseOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseOfferSnapshotProtoMsg): ResponseOfferSnapshot { - return ResponseOfferSnapshot.decode(message.value); - }, - toProto(message: ResponseOfferSnapshot): Uint8Array { - return ResponseOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - value: ResponseOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseResponseLoadSnapshotChunk(): ResponseLoadSnapshotChunk { - return { - chunk: new Uint8Array() - }; -} -export const ResponseLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - encode(message: ResponseLoadSnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.chunk.length !== 0) { - writer.uint32(10).bytes(message.chunk); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chunk = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseLoadSnapshotChunk { - return { - chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array() - }; - }, - toJSON(message: ResponseLoadSnapshotChunk): unknown { - const obj: any = {}; - message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ResponseLoadSnapshotChunk { - const message = createBaseResponseLoadSnapshotChunk(); - message.chunk = object.chunk ?? new Uint8Array(); - return message; - }, - fromAmino(object: ResponseLoadSnapshotChunkAmino): ResponseLoadSnapshotChunk { - const message = createBaseResponseLoadSnapshotChunk(); - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = bytesFromBase64(object.chunk); - } - return message; - }, - toAmino(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkAmino { - const obj: any = {}; - obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; - return obj; - }, - fromAminoMsg(object: ResponseLoadSnapshotChunkAminoMsg): ResponseLoadSnapshotChunk { - return ResponseLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseLoadSnapshotChunkProtoMsg): ResponseLoadSnapshotChunk { - return ResponseLoadSnapshotChunk.decode(message.value); - }, - toProto(message: ResponseLoadSnapshotChunk): Uint8Array { - return ResponseLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - value: ResponseLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponseApplySnapshotChunk(): ResponseApplySnapshotChunk { - return { - result: 0, - refetchChunks: [], - rejectSenders: [] - }; -} -export const ResponseApplySnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - encode(message: ResponseApplySnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - writer.uint32(18).fork(); - for (const v of message.refetchChunks) { - writer.uint32(v); - } - writer.ldelim(); - for (const v of message.rejectSenders) { - writer.uint32(26).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = (reader.int32() as any); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.refetchChunks.push(reader.uint32()); - } - } else { - message.refetchChunks.push(reader.uint32()); - } - break; - case 3: - message.rejectSenders.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseApplySnapshotChunk { - return { - result: isSet(object.result) ? responseApplySnapshotChunk_ResultFromJSON(object.result) : -1, - refetchChunks: Array.isArray(object?.refetchChunks) ? object.refetchChunks.map((e: any) => Number(e)) : [], - rejectSenders: Array.isArray(object?.rejectSenders) ? object.rejectSenders.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ResponseApplySnapshotChunk): unknown { - const obj: any = {}; - message.result !== undefined && (obj.result = responseApplySnapshotChunk_ResultToJSON(message.result)); - if (message.refetchChunks) { - obj.refetchChunks = message.refetchChunks.map(e => Math.round(e)); - } else { - obj.refetchChunks = []; - } - if (message.rejectSenders) { - obj.rejectSenders = message.rejectSenders.map(e => e); - } else { - obj.rejectSenders = []; - } - return obj; - }, - fromPartial(object: Partial): ResponseApplySnapshotChunk { - const message = createBaseResponseApplySnapshotChunk(); - message.result = object.result ?? 0; - message.refetchChunks = object.refetchChunks?.map(e => e) || []; - message.rejectSenders = object.rejectSenders?.map(e => e) || []; - return message; - }, - fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk { - const message = createBaseResponseApplySnapshotChunk(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - message.refetchChunks = object.refetch_chunks?.map(e => e) || []; - message.rejectSenders = object.reject_senders?.map(e => e) || []; - return message; - }, - toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino { - const obj: any = {}; - obj.result = message.result === 0 ? undefined : message.result; - if (message.refetchChunks) { - obj.refetch_chunks = message.refetchChunks.map(e => e); - } else { - obj.refetch_chunks = message.refetchChunks; - } - if (message.rejectSenders) { - obj.reject_senders = message.rejectSenders.map(e => e); - } else { - obj.reject_senders = message.rejectSenders; - } - return obj; - }, - fromAminoMsg(object: ResponseApplySnapshotChunkAminoMsg): ResponseApplySnapshotChunk { - return ResponseApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseApplySnapshotChunkProtoMsg): ResponseApplySnapshotChunk { - return ResponseApplySnapshotChunk.decode(message.value); - }, - toProto(message: ResponseApplySnapshotChunk): Uint8Array { - return ResponseApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - value: ResponseApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponsePrepareProposal(): ResponsePrepareProposal { - return { - txs: [] - }; -} -export const ResponsePrepareProposal = { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - encode(message: ResponsePrepareProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.txs) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponsePrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponsePrepareProposal { - return { - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: ResponsePrepareProposal): unknown { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.txs = []; - } - return obj; - }, - fromPartial(object: Partial): ResponsePrepareProposal { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object: ResponsePrepareProposalAmino): ResponsePrepareProposal { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: ResponsePrepareProposal): ResponsePrepareProposalAmino { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object: ResponsePrepareProposalAminoMsg): ResponsePrepareProposal { - return ResponsePrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message: ResponsePrepareProposalProtoMsg): ResponsePrepareProposal { - return ResponsePrepareProposal.decode(message.value); - }, - toProto(message: ResponsePrepareProposal): Uint8Array { - return ResponsePrepareProposal.encode(message).finish(); - }, - toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - value: ResponsePrepareProposal.encode(message).finish() - }; - } -}; -function createBaseResponseProcessProposal(): ResponseProcessProposal { - return { - status: 0 - }; -} -export const ResponseProcessProposal = { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - encode(message: ResponseProcessProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.status !== 0) { - writer.uint32(8).int32(message.status); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ResponseProcessProposal { - return { - status: isSet(object.status) ? responseProcessProposal_ProposalStatusFromJSON(object.status) : -1 - }; - }, - toJSON(message: ResponseProcessProposal): unknown { - const obj: any = {}; - message.status !== undefined && (obj.status = responseProcessProposal_ProposalStatusToJSON(message.status)); - return obj; - }, - fromPartial(object: Partial): ResponseProcessProposal { - const message = createBaseResponseProcessProposal(); - message.status = object.status ?? 0; - return message; - }, - fromAmino(object: ResponseProcessProposalAmino): ResponseProcessProposal { - const message = createBaseResponseProcessProposal(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message: ResponseProcessProposal): ResponseProcessProposalAmino { - const obj: any = {}; - obj.status = message.status === 0 ? undefined : message.status; - return obj; - }, - fromAminoMsg(object: ResponseProcessProposalAminoMsg): ResponseProcessProposal { - return ResponseProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message: ResponseProcessProposalProtoMsg): ResponseProcessProposal { - return ResponseProcessProposal.decode(message.value); - }, - toProto(message: ResponseProcessProposal): Uint8Array { - return ResponseProcessProposal.encode(message).finish(); - }, - toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg { - return { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - value: ResponseProcessProposal.encode(message).finish() - }; - } -}; -function createBaseCommitInfo(): CommitInfo { - return { - round: 0, - votes: [] - }; -} -export const CommitInfo = { - typeUrl: "/tendermint.abci.CommitInfo", - encode(message: CommitInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - VoteInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(VoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommitInfo { - return { - round: isSet(object.round) ? Number(object.round) : 0, - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => VoteInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: CommitInfo): unknown { - const obj: any = {}; - message.round !== undefined && (obj.round = Math.round(message.round)); - if (message.votes) { - obj.votes = message.votes.map(e => e ? VoteInfo.toJSON(e) : undefined); - } else { - obj.votes = []; - } - return obj; - }, - fromPartial(object: Partial): CommitInfo { - const message = createBaseCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CommitInfoAmino): CommitInfo { - const message = createBaseCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => VoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: CommitInfo): CommitInfoAmino { - const obj: any = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? VoteInfo.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo { - return CommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo { - return CommitInfo.decode(message.value); - }, - toProto(message: CommitInfo): Uint8Array { - return CommitInfo.encode(message).finish(); - }, - toProtoMsg(message: CommitInfo): CommitInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.CommitInfo", - value: CommitInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedCommitInfo(): ExtendedCommitInfo { - return { - round: 0, - votes: [] - }; -} -export const ExtendedCommitInfo = { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - encode(message: ExtendedCommitInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - ExtendedVoteInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ExtendedCommitInfo { - return { - round: isSet(object.round) ? Number(object.round) : 0, - votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => ExtendedVoteInfo.fromJSON(e)) : [] - }; - }, - toJSON(message: ExtendedCommitInfo): unknown { - const obj: any = {}; - message.round !== undefined && (obj.round = Math.round(message.round)); - if (message.votes) { - obj.votes = message.votes.map(e => e ? ExtendedVoteInfo.toJSON(e) : undefined); - } else { - obj.votes = []; - } - return obj; - }, - fromPartial(object: Partial): ExtendedCommitInfo { - const message = createBaseExtendedCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => ExtendedVoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ExtendedCommitInfoAmino): ExtendedCommitInfo { - const message = createBaseExtendedCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => ExtendedVoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message: ExtendedCommitInfo): ExtendedCommitInfoAmino { - const obj: any = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? ExtendedVoteInfo.toAmino(e) : undefined); - } else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object: ExtendedCommitInfoAminoMsg): ExtendedCommitInfo { - return ExtendedCommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ExtendedCommitInfoProtoMsg): ExtendedCommitInfo { - return ExtendedCommitInfo.decode(message.value); - }, - toProto(message: ExtendedCommitInfo): Uint8Array { - return ExtendedCommitInfo.encode(message).finish(); - }, - toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - value: ExtendedCommitInfo.encode(message).finish() - }; - } -}; -function createBaseEvent(): Event { - return { - type: "", - attributes: [] - }; -} -export const Event = { - typeUrl: "/tendermint.abci.Event", - encode(message: Event, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - EventAttribute.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Event { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(EventAttribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Event { - return { - type: isSet(object.type) ? String(object.type) : "", - attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => EventAttribute.fromJSON(e)) : [] - }; - }, - toJSON(message: Event): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = message.type); - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? EventAttribute.toJSON(e) : undefined); - } else { - obj.attributes = []; - } - return obj; - }, - fromPartial(object: Partial): Event { - const message = createBaseEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object: EventAmino): Event { - const message = createBaseEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => EventAttribute.fromAmino(e)) || []; - return message; - }, - toAmino(message: Event): EventAmino { - const obj: any = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? EventAttribute.toAmino(e) : undefined); - } else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object: EventAminoMsg): Event { - return Event.fromAmino(object.value); - }, - fromProtoMsg(message: EventProtoMsg): Event { - return Event.decode(message.value); - }, - toProto(message: Event): Uint8Array { - return Event.encode(message).finish(); - }, - toProtoMsg(message: Event): EventProtoMsg { - return { - typeUrl: "/tendermint.abci.Event", - value: Event.encode(message).finish() - }; - } -}; -function createBaseEventAttribute(): EventAttribute { - return { - key: "", - value: "", - index: false - }; -} -export const EventAttribute = { - typeUrl: "/tendermint.abci.EventAttribute", - encode(message: EventAttribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - if (message.index === true) { - writer.uint32(24).bool(message.index); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.index = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EventAttribute { - return { - key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) ? String(object.value) : "", - index: isSet(object.index) ? Boolean(object.index) : false - }; - }, - toJSON(message: EventAttribute): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = message.key); - message.value !== undefined && (obj.value = message.value); - message.index !== undefined && (obj.index = message.index); - return obj; - }, - fromPartial(object: Partial): EventAttribute { - const message = createBaseEventAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - message.index = object.index ?? false; - return message; - }, - fromAmino(object: EventAttributeAmino): EventAttribute { - const message = createBaseEventAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - return message; - }, - toAmino(message: EventAttribute): EventAttributeAmino { - const obj: any = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - obj.index = message.index === false ? undefined : message.index; - return obj; - }, - fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute { - return EventAttribute.fromAmino(object.value); - }, - fromProtoMsg(message: EventAttributeProtoMsg): EventAttribute { - return EventAttribute.decode(message.value); - }, - toProto(message: EventAttribute): Uint8Array { - return EventAttribute.encode(message).finish(); - }, - toProtoMsg(message: EventAttribute): EventAttributeProtoMsg { - return { - typeUrl: "/tendermint.abci.EventAttribute", - value: EventAttribute.encode(message).finish() - }; - } -}; -function createBaseTxResult(): TxResult { - return { - height: BigInt(0), - index: 0, - tx: new Uint8Array(), - result: ResponseDeliverTx.fromPartial({}) - }; -} -export const TxResult = { - typeUrl: "/tendermint.abci.TxResult", - encode(message: TxResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.index !== 0) { - writer.uint32(16).uint32(message.index); - } - if (message.tx.length !== 0) { - writer.uint32(26).bytes(message.tx); - } - if (message.result !== undefined) { - ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxResult { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.index = reader.uint32(); - break; - case 3: - message.tx = reader.bytes(); - break; - case 4: - message.result = ResponseDeliverTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxResult { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - index: isSet(object.index) ? Number(object.index) : 0, - tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(), - result: isSet(object.result) ? ResponseDeliverTx.fromJSON(object.result) : undefined - }; - }, - toJSON(message: TxResult): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.index !== undefined && (obj.index = Math.round(message.index)); - message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array())); - message.result !== undefined && (obj.result = message.result ? ResponseDeliverTx.toJSON(message.result) : undefined); - return obj; - }, - fromPartial(object: Partial): TxResult { - const message = createBaseTxResult(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.index = object.index ?? 0; - message.tx = object.tx ?? new Uint8Array(); - message.result = object.result !== undefined && object.result !== null ? ResponseDeliverTx.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object: TxResultAmino): TxResult { - const message = createBaseTxResult(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - if (object.result !== undefined && object.result !== null) { - message.result = ResponseDeliverTx.fromAmino(object.result); - } - return message; - }, - toAmino(message: TxResult): TxResultAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.index = message.index === 0 ? undefined : message.index; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - obj.result = message.result ? ResponseDeliverTx.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object: TxResultAminoMsg): TxResult { - return TxResult.fromAmino(object.value); - }, - fromProtoMsg(message: TxResultProtoMsg): TxResult { - return TxResult.decode(message.value); - }, - toProto(message: TxResult): Uint8Array { - return TxResult.encode(message).finish(); - }, - toProtoMsg(message: TxResult): TxResultProtoMsg { - return { - typeUrl: "/tendermint.abci.TxResult", - value: TxResult.encode(message).finish() - }; - } -}; -function createBaseValidator(): Validator { - return { - address: new Uint8Array(), - power: BigInt(0) - }; -} -export const Validator = { - typeUrl: "/tendermint.abci.Validator", - encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(24).int64(message.power); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Validator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 3: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Validator { - return { - address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(), - power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0) - }; - }, - toJSON(message: Validator): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array())); - message.power !== undefined && (obj.power = (message.power || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Validator { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorAmino): Validator { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message: Validator): ValidatorAmino { - const obj: any = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorAminoMsg): Validator { - return Validator.fromAmino(object.value); - }, - fromProtoMsg(message: ValidatorProtoMsg): Validator { - return Validator.decode(message.value); - }, - toProto(message: Validator): Uint8Array { - return Validator.encode(message).finish(); - }, - toProtoMsg(message: Validator): ValidatorProtoMsg { - return { - typeUrl: "/tendermint.abci.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseValidatorUpdate(): ValidatorUpdate { - return { - pubKey: PublicKey.fromPartial({}), - power: BigInt(0) - }; -} -export const ValidatorUpdate = { - typeUrl: "/tendermint.abci.ValidatorUpdate", - encode(message: ValidatorUpdate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorUpdate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorUpdate { - return { - pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined, - power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0) - }; - }, - toJSON(message: ValidatorUpdate): unknown { - const obj: any = {}; - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? PublicKey.toJSON(message.pubKey) : undefined); - message.power !== undefined && (obj.power = (message.power || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ValidatorUpdate { - const message = createBaseValidatorUpdate(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorUpdateAmino): ValidatorUpdate { - const message = createBaseValidatorUpdate(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message: ValidatorUpdate): ValidatorUpdateAmino { - const obj: any = {}; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate { - return ValidatorUpdate.fromAmino(object.value); - }, - fromProtoMsg(message: ValidatorUpdateProtoMsg): ValidatorUpdate { - return ValidatorUpdate.decode(message.value); - }, - toProto(message: ValidatorUpdate): Uint8Array { - return ValidatorUpdate.encode(message).finish(); - }, - toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg { - return { - typeUrl: "/tendermint.abci.ValidatorUpdate", - value: ValidatorUpdate.encode(message).finish() - }; - } -}; -function createBaseVoteInfo(): VoteInfo { - return { - validator: Validator.fromPartial({}), - signedLastBlock: false - }; -} -export const VoteInfo = { - typeUrl: "/tendermint.abci.VoteInfo", - encode(message: VoteInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): VoteInfo { - return { - validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined, - signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false - }; - }, - toJSON(message: VoteInfo): unknown { - const obj: any = {}; - message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined); - message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock); - return obj; - }, - fromPartial(object: Partial): VoteInfo { - const message = createBaseVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - return message; - }, - fromAmino(object: VoteInfoAmino): VoteInfo { - const message = createBaseVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - return message; - }, - toAmino(message: VoteInfo): VoteInfoAmino { - const obj: any = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - return obj; - }, - fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo { - return VoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message: VoteInfoProtoMsg): VoteInfo { - return VoteInfo.decode(message.value); - }, - toProto(message: VoteInfo): Uint8Array { - return VoteInfo.encode(message).finish(); - }, - toProtoMsg(message: VoteInfo): VoteInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.VoteInfo", - value: VoteInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedVoteInfo(): ExtendedVoteInfo { - return { - validator: Validator.fromPartial({}), - signedLastBlock: false, - voteExtension: new Uint8Array() - }; -} -export const ExtendedVoteInfo = { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - encode(message: ExtendedVoteInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - if (message.voteExtension.length !== 0) { - writer.uint32(26).bytes(message.voteExtension); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - case 3: - message.voteExtension = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ExtendedVoteInfo { - return { - validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined, - signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false, - voteExtension: isSet(object.voteExtension) ? bytesFromBase64(object.voteExtension) : new Uint8Array() - }; - }, - toJSON(message: ExtendedVoteInfo): unknown { - const obj: any = {}; - message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined); - message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock); - message.voteExtension !== undefined && (obj.voteExtension = base64FromBytes(message.voteExtension !== undefined ? message.voteExtension : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ExtendedVoteInfo { - const message = createBaseExtendedVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - message.voteExtension = object.voteExtension ?? new Uint8Array(); - return message; - }, - fromAmino(object: ExtendedVoteInfoAmino): ExtendedVoteInfo { - const message = createBaseExtendedVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - if (object.vote_extension !== undefined && object.vote_extension !== null) { - message.voteExtension = bytesFromBase64(object.vote_extension); - } - return message; - }, - toAmino(message: ExtendedVoteInfo): ExtendedVoteInfoAmino { - const obj: any = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - obj.vote_extension = message.voteExtension ? base64FromBytes(message.voteExtension) : undefined; - return obj; - }, - fromAminoMsg(object: ExtendedVoteInfoAminoMsg): ExtendedVoteInfo { - return ExtendedVoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message: ExtendedVoteInfoProtoMsg): ExtendedVoteInfo { - return ExtendedVoteInfo.decode(message.value); - }, - toProto(message: ExtendedVoteInfo): Uint8Array { - return ExtendedVoteInfo.encode(message).finish(); - }, - toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg { - return { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - value: ExtendedVoteInfo.encode(message).finish() - }; - } -}; -function createBaseMisbehavior(): Misbehavior { - return { - type: 0, - validator: Validator.fromPartial({}), - height: BigInt(0), - time: Timestamp.fromPartial({}), - totalVotingPower: BigInt(0) - }; -} -export const Misbehavior = { - typeUrl: "/tendermint.abci.Misbehavior", - encode(message: Misbehavior, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(40).int64(message.totalVotingPower); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMisbehavior(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = (reader.int32() as any); - break; - case 2: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Misbehavior { - return { - type: isSet(object.type) ? misbehaviorTypeFromJSON(object.type) : -1, - validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - totalVotingPower: isSet(object.totalVotingPower) ? BigInt(object.totalVotingPower.toString()) : BigInt(0) - }; - }, - toJSON(message: Misbehavior): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = misbehaviorTypeToJSON(message.type)); - message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Misbehavior { - const message = createBaseMisbehavior(); - message.type = object.type ?? 0; - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object: MisbehaviorAmino): Misbehavior { - const message = createBaseMisbehavior(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message: Misbehavior): MisbehaviorAmino { - const obj: any = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object: MisbehaviorAminoMsg): Misbehavior { - return Misbehavior.fromAmino(object.value); - }, - fromProtoMsg(message: MisbehaviorProtoMsg): Misbehavior { - return Misbehavior.decode(message.value); - }, - toProto(message: Misbehavior): Uint8Array { - return Misbehavior.encode(message).finish(); - }, - toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg { - return { - typeUrl: "/tendermint.abci.Misbehavior", - value: Misbehavior.encode(message).finish() - }; - } -}; -function createBaseSnapshot(): Snapshot { - return { - height: BigInt(0), - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: new Uint8Array() - }; -} -export const Snapshot = { - typeUrl: "/tendermint.abci.Snapshot", - encode(message: Snapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunks !== 0) { - writer.uint32(24).uint32(message.chunks); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Snapshot { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunks = reader.uint32(); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Snapshot { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - format: isSet(object.format) ? Number(object.format) : 0, - chunks: isSet(object.chunks) ? Number(object.chunks) : 0, - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array() - }; - }, - toJSON(message: Snapshot): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.format !== undefined && (obj.format = Math.round(message.format)); - message.chunks !== undefined && (obj.chunks = Math.round(message.chunks)); - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Snapshot { - const message = createBaseSnapshot(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunks = object.chunks ?? 0; - message.hash = object.hash ?? new Uint8Array(); - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object: SnapshotAmino): Snapshot { - const message = createBaseSnapshot(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunks !== undefined && object.chunks !== null) { - message.chunks = object.chunks; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - return message; - }, - toAmino(message: Snapshot): SnapshotAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunks = message.chunks === 0 ? undefined : message.chunks; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object: SnapshotAminoMsg): Snapshot { - return Snapshot.fromAmino(object.value); - }, - fromProtoMsg(message: SnapshotProtoMsg): Snapshot { - return Snapshot.decode(message.value); - }, - toProto(message: Snapshot): Uint8Array { - return Snapshot.encode(message).finish(); - }, - toProtoMsg(message: Snapshot): SnapshotProtoMsg { - return { - typeUrl: "/tendermint.abci.Snapshot", - value: Snapshot.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/bundle.ts b/packages/api/src/codegen/tendermint/bundle.ts deleted file mode 100644 index bc07ef42..00000000 --- a/packages/api/src/codegen/tendermint/bundle.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as _141 from "./abci/types"; -import * as _142 from "./crypto/keys"; -import * as _143 from "./crypto/proof"; -import * as _144 from "./libs/bits/types"; -import * as _145 from "./p2p/types"; -import * as _146 from "./types/block"; -import * as _147 from "./types/evidence"; -import * as _148 from "./types/params"; -import * as _149 from "./types/types"; -import * as _150 from "./types/validator"; -import * as _151 from "./version/types"; -export namespace tendermint { - export const abci = { - ..._141 - }; - export const crypto = { - ..._142, - ..._143 - }; - export namespace libs { - export const bits = { - ..._144 - }; - } - export const p2p = { - ..._145 - }; - export const types = { - ..._146, - ..._147, - ..._148, - ..._149, - ..._150 - }; - export const version = { - ..._151 - }; -} \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/crypto/keys.ts b/packages/api/src/codegen/tendermint/crypto/keys.ts deleted file mode 100644 index ee91c178..00000000 --- a/packages/api/src/codegen/tendermint/crypto/keys.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKey { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyProtoMsg { - typeUrl: "/tendermint.crypto.PublicKey"; - value: Uint8Array; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeyAmino { - ed25519?: string; - secp256k1?: string; -} -export interface PublicKeyAminoMsg { - type: "/tendermint.crypto.PublicKey"; - value: PublicKeyAmino; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeySDKType { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -function createBasePublicKey(): PublicKey { - return { - ed25519: undefined, - secp256k1: undefined - }; -} -export const PublicKey = { - typeUrl: "/tendermint.crypto.PublicKey", - encode(message: PublicKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.ed25519 !== undefined) { - writer.uint32(10).bytes(message.ed25519); - } - if (message.secp256k1 !== undefined) { - writer.uint32(18).bytes(message.secp256k1); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PublicKey { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePublicKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ed25519 = reader.bytes(); - break; - case 2: - message.secp256k1 = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PublicKey { - return { - ed25519: isSet(object.ed25519) ? bytesFromBase64(object.ed25519) : undefined, - secp256k1: isSet(object.secp256k1) ? bytesFromBase64(object.secp256k1) : undefined - }; - }, - toJSON(message: PublicKey): unknown { - const obj: any = {}; - message.ed25519 !== undefined && (obj.ed25519 = message.ed25519 !== undefined ? base64FromBytes(message.ed25519) : undefined); - message.secp256k1 !== undefined && (obj.secp256k1 = message.secp256k1 !== undefined ? base64FromBytes(message.secp256k1) : undefined); - return obj; - }, - fromPartial(object: Partial): PublicKey { - const message = createBasePublicKey(); - message.ed25519 = object.ed25519 ?? undefined; - message.secp256k1 = object.secp256k1 ?? undefined; - return message; - }, - fromAmino(object: PublicKeyAmino): PublicKey { - const message = createBasePublicKey(); - if (object.ed25519 !== undefined && object.ed25519 !== null) { - message.ed25519 = bytesFromBase64(object.ed25519); - } - if (object.secp256k1 !== undefined && object.secp256k1 !== null) { - message.secp256k1 = bytesFromBase64(object.secp256k1); - } - return message; - }, - toAmino(message: PublicKey): PublicKeyAmino { - const obj: any = {}; - obj.ed25519 = message.ed25519 ? base64FromBytes(message.ed25519) : undefined; - obj.secp256k1 = message.secp256k1 ? base64FromBytes(message.secp256k1) : undefined; - return obj; - }, - fromAminoMsg(object: PublicKeyAminoMsg): PublicKey { - return PublicKey.fromAmino(object.value); - }, - fromProtoMsg(message: PublicKeyProtoMsg): PublicKey { - return PublicKey.decode(message.value); - }, - toProto(message: PublicKey): Uint8Array { - return PublicKey.encode(message).finish(); - }, - toProtoMsg(message: PublicKey): PublicKeyProtoMsg { - return { - typeUrl: "/tendermint.crypto.PublicKey", - value: PublicKey.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/crypto/proof.ts b/packages/api/src/codegen/tendermint/crypto/proof.ts deleted file mode 100644 index 06602d95..00000000 --- a/packages/api/src/codegen/tendermint/crypto/proof.ts +++ /dev/null @@ -1,622 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -export interface Proof { - total: bigint; - index: bigint; - leafHash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofProtoMsg { - typeUrl: "/tendermint.crypto.Proof"; - value: Uint8Array; -} -export interface ProofAmino { - total?: string; - index?: string; - leaf_hash?: string; - aunts?: string[]; -} -export interface ProofAminoMsg { - type: "/tendermint.crypto.Proof"; - value: ProofAmino; -} -export interface ProofSDKType { - total: bigint; - index: bigint; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ValueOp { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof?: Proof; -} -export interface ValueOpProtoMsg { - typeUrl: "/tendermint.crypto.ValueOp"; - value: Uint8Array; -} -export interface ValueOpAmino { - /** Encoded in ProofOp.Key. */ - key?: string; - /** To encode in ProofOp.Data */ - proof?: ProofAmino; -} -export interface ValueOpAminoMsg { - type: "/tendermint.crypto.ValueOp"; - value: ValueOpAmino; -} -export interface ValueOpSDKType { - key: Uint8Array; - proof?: ProofSDKType; -} -export interface DominoOp { - key: string; - input: string; - output: string; -} -export interface DominoOpProtoMsg { - typeUrl: "/tendermint.crypto.DominoOp"; - value: Uint8Array; -} -export interface DominoOpAmino { - key?: string; - input?: string; - output?: string; -} -export interface DominoOpAminoMsg { - type: "/tendermint.crypto.DominoOp"; - value: DominoOpAmino; -} -export interface DominoOpSDKType { - key: string; - input: string; - output: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/tendermint.crypto.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpAmino { - type?: string; - key?: string; - data?: string; -} -export interface ProofOpAminoMsg { - type: "/tendermint.crypto.ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/tendermint.crypto.ProofOps"; - value: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsAmino { - ops?: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "/tendermint.crypto.ProofOps"; - value: ProofOpsAmino; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} -function createBaseProof(): Proof { - return { - total: BigInt(0), - index: BigInt(0), - leafHash: new Uint8Array(), - aunts: [] - }; -} -export const Proof = { - typeUrl: "/tendermint.crypto.Proof", - encode(message: Proof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.total !== BigInt(0)) { - writer.uint32(8).int64(message.total); - } - if (message.index !== BigInt(0)) { - writer.uint32(16).int64(message.index); - } - if (message.leafHash.length !== 0) { - writer.uint32(26).bytes(message.leafHash); - } - for (const v of message.aunts) { - writer.uint32(34).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Proof { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.int64(); - break; - case 2: - message.index = reader.int64(); - break; - case 3: - message.leafHash = reader.bytes(); - break; - case 4: - message.aunts.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Proof { - return { - total: isSet(object.total) ? BigInt(object.total.toString()) : BigInt(0), - index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0), - leafHash: isSet(object.leafHash) ? bytesFromBase64(object.leafHash) : new Uint8Array(), - aunts: Array.isArray(object?.aunts) ? object.aunts.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: Proof): unknown { - const obj: any = {}; - message.total !== undefined && (obj.total = (message.total || BigInt(0)).toString()); - message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString()); - message.leafHash !== undefined && (obj.leafHash = base64FromBytes(message.leafHash !== undefined ? message.leafHash : new Uint8Array())); - if (message.aunts) { - obj.aunts = message.aunts.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.aunts = []; - } - return obj; - }, - fromPartial(object: Partial): Proof { - const message = createBaseProof(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.leafHash = object.leafHash ?? new Uint8Array(); - message.aunts = object.aunts?.map(e => e) || []; - return message; - }, - fromAmino(object: ProofAmino): Proof { - const message = createBaseProof(); - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.leaf_hash !== undefined && object.leaf_hash !== null) { - message.leafHash = bytesFromBase64(object.leaf_hash); - } - message.aunts = object.aunts?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: Proof): ProofAmino { - const obj: any = {}; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined; - if (message.aunts) { - obj.aunts = message.aunts.map(e => base64FromBytes(e)); - } else { - obj.aunts = message.aunts; - } - return obj; - }, - fromAminoMsg(object: ProofAminoMsg): Proof { - return Proof.fromAmino(object.value); - }, - fromProtoMsg(message: ProofProtoMsg): Proof { - return Proof.decode(message.value); - }, - toProto(message: Proof): Uint8Array { - return Proof.encode(message).finish(); - }, - toProtoMsg(message: Proof): ProofProtoMsg { - return { - typeUrl: "/tendermint.crypto.Proof", - value: Proof.encode(message).finish() - }; - } -}; -function createBaseValueOp(): ValueOp { - return { - key: new Uint8Array(), - proof: undefined - }; -} -export const ValueOp = { - typeUrl: "/tendermint.crypto.ValueOp", - encode(message: ValueOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValueOp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValueOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValueOp { - return { - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : undefined - }; - }, - toJSON(message: ValueOp): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.proof !== undefined && (obj.proof = message.proof ? Proof.toJSON(message.proof) : undefined); - return obj; - }, - fromPartial(object: Partial): ValueOp { - const message = createBaseValueOp(); - message.key = object.key ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object: ValueOpAmino): ValueOp { - const message = createBaseValueOp(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message: ValueOp): ValueOpAmino { - const obj: any = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object: ValueOpAminoMsg): ValueOp { - return ValueOp.fromAmino(object.value); - }, - fromProtoMsg(message: ValueOpProtoMsg): ValueOp { - return ValueOp.decode(message.value); - }, - toProto(message: ValueOp): Uint8Array { - return ValueOp.encode(message).finish(); - }, - toProtoMsg(message: ValueOp): ValueOpProtoMsg { - return { - typeUrl: "/tendermint.crypto.ValueOp", - value: ValueOp.encode(message).finish() - }; - } -}; -function createBaseDominoOp(): DominoOp { - return { - key: "", - input: "", - output: "" - }; -} -export const DominoOp = { - typeUrl: "/tendermint.crypto.DominoOp", - encode(message: DominoOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.input !== "") { - writer.uint32(18).string(message.input); - } - if (message.output !== "") { - writer.uint32(26).string(message.output); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DominoOp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDominoOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.input = reader.string(); - break; - case 3: - message.output = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DominoOp { - return { - key: isSet(object.key) ? String(object.key) : "", - input: isSet(object.input) ? String(object.input) : "", - output: isSet(object.output) ? String(object.output) : "" - }; - }, - toJSON(message: DominoOp): unknown { - const obj: any = {}; - message.key !== undefined && (obj.key = message.key); - message.input !== undefined && (obj.input = message.input); - message.output !== undefined && (obj.output = message.output); - return obj; - }, - fromPartial(object: Partial): DominoOp { - const message = createBaseDominoOp(); - message.key = object.key ?? ""; - message.input = object.input ?? ""; - message.output = object.output ?? ""; - return message; - }, - fromAmino(object: DominoOpAmino): DominoOp { - const message = createBaseDominoOp(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.input !== undefined && object.input !== null) { - message.input = object.input; - } - if (object.output !== undefined && object.output !== null) { - message.output = object.output; - } - return message; - }, - toAmino(message: DominoOp): DominoOpAmino { - const obj: any = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.input = message.input === "" ? undefined : message.input; - obj.output = message.output === "" ? undefined : message.output; - return obj; - }, - fromAminoMsg(object: DominoOpAminoMsg): DominoOp { - return DominoOp.fromAmino(object.value); - }, - fromProtoMsg(message: DominoOpProtoMsg): DominoOp { - return DominoOp.decode(message.value); - }, - toProto(message: DominoOp): Uint8Array { - return DominoOp.encode(message).finish(); - }, - toProtoMsg(message: DominoOp): DominoOpProtoMsg { - return { - typeUrl: "/tendermint.crypto.DominoOp", - value: DominoOp.encode(message).finish() - }; - } -}; -function createBaseProofOp(): ProofOp { - return { - type: "", - key: new Uint8Array(), - data: new Uint8Array() - }; -} -export const ProofOp = { - typeUrl: "/tendermint.crypto.ProofOp", - encode(message: ProofOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - if (message.key.length !== 0) { - writer.uint32(18).bytes(message.key); - } - if (message.data.length !== 0) { - writer.uint32(26).bytes(message.data); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProofOp { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; - case 3: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProofOp { - return { - type: isSet(object.type) ? String(object.type) : "", - key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(), - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array() - }; - }, - toJSON(message: ProofOp): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = message.type); - message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array())); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): ProofOp { - const message = createBaseProofOp(); - message.type = object.type ?? ""; - message.key = object.key ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object: ProofOpAmino): ProofOp { - const message = createBaseProofOp(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - return message; - }, - toAmino(message: ProofOp): ProofOpAmino { - const obj: any = {}; - obj.type = message.type === "" ? undefined : message.type; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - return obj; - }, - fromAminoMsg(object: ProofOpAminoMsg): ProofOp { - return ProofOp.fromAmino(object.value); - }, - fromProtoMsg(message: ProofOpProtoMsg): ProofOp { - return ProofOp.decode(message.value); - }, - toProto(message: ProofOp): Uint8Array { - return ProofOp.encode(message).finish(); - }, - toProtoMsg(message: ProofOp): ProofOpProtoMsg { - return { - typeUrl: "/tendermint.crypto.ProofOp", - value: ProofOp.encode(message).finish() - }; - } -}; -function createBaseProofOps(): ProofOps { - return { - ops: [] - }; -} -export const ProofOps = { - typeUrl: "/tendermint.crypto.ProofOps", - encode(message: ProofOps, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.ops) { - ProofOp.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProofOps { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOps(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ops.push(ProofOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProofOps { - return { - ops: Array.isArray(object?.ops) ? object.ops.map((e: any) => ProofOp.fromJSON(e)) : [] - }; - }, - toJSON(message: ProofOps): unknown { - const obj: any = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? ProofOp.toJSON(e) : undefined); - } else { - obj.ops = []; - } - return obj; - }, - fromPartial(object: Partial): ProofOps { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || []; - return message; - }, - fromAmino(object: ProofOpsAmino): ProofOps { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || []; - return message; - }, - toAmino(message: ProofOps): ProofOpsAmino { - const obj: any = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); - } else { - obj.ops = message.ops; - } - return obj; - }, - fromAminoMsg(object: ProofOpsAminoMsg): ProofOps { - return ProofOps.fromAmino(object.value); - }, - fromProtoMsg(message: ProofOpsProtoMsg): ProofOps { - return ProofOps.decode(message.value); - }, - toProto(message: ProofOps): Uint8Array { - return ProofOps.encode(message).finish(); - }, - toProtoMsg(message: ProofOps): ProofOpsProtoMsg { - return { - typeUrl: "/tendermint.crypto.ProofOps", - value: ProofOps.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/libs/bits/types.ts b/packages/api/src/codegen/tendermint/libs/bits/types.ts deleted file mode 100644 index 23de8970..00000000 --- a/packages/api/src/codegen/tendermint/libs/bits/types.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { isSet } from "../../../helpers"; -export interface BitArray { - bits: bigint; - elems: bigint[]; -} -export interface BitArrayProtoMsg { - typeUrl: "/tendermint.libs.bits.BitArray"; - value: Uint8Array; -} -export interface BitArrayAmino { - bits?: string; - elems?: string[]; -} -export interface BitArrayAminoMsg { - type: "/tendermint.libs.bits.BitArray"; - value: BitArrayAmino; -} -export interface BitArraySDKType { - bits: bigint; - elems: bigint[]; -} -function createBaseBitArray(): BitArray { - return { - bits: BigInt(0), - elems: [] - }; -} -export const BitArray = { - typeUrl: "/tendermint.libs.bits.BitArray", - encode(message: BitArray, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.bits !== BigInt(0)) { - writer.uint32(8).int64(message.bits); - } - writer.uint32(18).fork(); - for (const v of message.elems) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BitArray { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bits = reader.int64(); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.elems.push(reader.uint64()); - } - } else { - message.elems.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BitArray { - return { - bits: isSet(object.bits) ? BigInt(object.bits.toString()) : BigInt(0), - elems: Array.isArray(object?.elems) ? object.elems.map((e: any) => BigInt(e.toString())) : [] - }; - }, - toJSON(message: BitArray): unknown { - const obj: any = {}; - message.bits !== undefined && (obj.bits = (message.bits || BigInt(0)).toString()); - if (message.elems) { - obj.elems = message.elems.map(e => (e || BigInt(0)).toString()); - } else { - obj.elems = []; - } - return obj; - }, - fromPartial(object: Partial): BitArray { - const message = createBaseBitArray(); - message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); - message.elems = object.elems?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object: BitArrayAmino): BitArray { - const message = createBaseBitArray(); - if (object.bits !== undefined && object.bits !== null) { - message.bits = BigInt(object.bits); - } - message.elems = object.elems?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message: BitArray): BitArrayAmino { - const obj: any = {}; - obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; - if (message.elems) { - obj.elems = message.elems.map(e => e.toString()); - } else { - obj.elems = message.elems; - } - return obj; - }, - fromAminoMsg(object: BitArrayAminoMsg): BitArray { - return BitArray.fromAmino(object.value); - }, - fromProtoMsg(message: BitArrayProtoMsg): BitArray { - return BitArray.decode(message.value); - }, - toProto(message: BitArray): Uint8Array { - return BitArray.encode(message).finish(); - }, - toProtoMsg(message: BitArray): BitArrayProtoMsg { - return { - typeUrl: "/tendermint.libs.bits.BitArray", - value: BitArray.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/p2p/types.ts b/packages/api/src/codegen/tendermint/p2p/types.ts deleted file mode 100644 index 7f5abb49..00000000 --- a/packages/api/src/codegen/tendermint/p2p/types.ts +++ /dev/null @@ -1,566 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -export interface NetAddress { - id: string; - ip: string; - port: number; -} -export interface NetAddressProtoMsg { - typeUrl: "/tendermint.p2p.NetAddress"; - value: Uint8Array; -} -export interface NetAddressAmino { - id?: string; - ip?: string; - port?: number; -} -export interface NetAddressAminoMsg { - type: "/tendermint.p2p.NetAddress"; - value: NetAddressAmino; -} -export interface NetAddressSDKType { - id: string; - ip: string; - port: number; -} -export interface ProtocolVersion { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface ProtocolVersionProtoMsg { - typeUrl: "/tendermint.p2p.ProtocolVersion"; - value: Uint8Array; -} -export interface ProtocolVersionAmino { - p2p?: string; - block?: string; - app?: string; -} -export interface ProtocolVersionAminoMsg { - type: "/tendermint.p2p.ProtocolVersion"; - value: ProtocolVersionAmino; -} -export interface ProtocolVersionSDKType { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface DefaultNodeInfo { - protocolVersion: ProtocolVersion; - defaultNodeId: string; - listenAddr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOther; -} -export interface DefaultNodeInfoProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfo"; - value: Uint8Array; -} -export interface DefaultNodeInfoAmino { - protocol_version?: ProtocolVersionAmino; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - channels?: string; - moniker?: string; - other?: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfo"; - value: DefaultNodeInfoAmino; -} -export interface DefaultNodeInfoSDKType { - protocol_version: ProtocolVersionSDKType; - default_node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOtherSDKType; -} -export interface DefaultNodeInfoOther { - txIndex: string; - rpcAddress: string; -} -export interface DefaultNodeInfoOtherProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther"; - value: Uint8Array; -} -export interface DefaultNodeInfoOtherAmino { - tx_index?: string; - rpc_address?: string; -} -export interface DefaultNodeInfoOtherAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfoOther"; - value: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoOtherSDKType { - tx_index: string; - rpc_address: string; -} -function createBaseNetAddress(): NetAddress { - return { - id: "", - ip: "", - port: 0 - }; -} -export const NetAddress = { - typeUrl: "/tendermint.p2p.NetAddress", - encode(message: NetAddress, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.ip !== "") { - writer.uint32(18).string(message.ip); - } - if (message.port !== 0) { - writer.uint32(24).uint32(message.port); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): NetAddress { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseNetAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.ip = reader.string(); - break; - case 3: - message.port = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): NetAddress { - return { - id: isSet(object.id) ? String(object.id) : "", - ip: isSet(object.ip) ? String(object.ip) : "", - port: isSet(object.port) ? Number(object.port) : 0 - }; - }, - toJSON(message: NetAddress): unknown { - const obj: any = {}; - message.id !== undefined && (obj.id = message.id); - message.ip !== undefined && (obj.ip = message.ip); - message.port !== undefined && (obj.port = Math.round(message.port)); - return obj; - }, - fromPartial(object: Partial): NetAddress { - const message = createBaseNetAddress(); - message.id = object.id ?? ""; - message.ip = object.ip ?? ""; - message.port = object.port ?? 0; - return message; - }, - fromAmino(object: NetAddressAmino): NetAddress { - const message = createBaseNetAddress(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.ip !== undefined && object.ip !== null) { - message.ip = object.ip; - } - if (object.port !== undefined && object.port !== null) { - message.port = object.port; - } - return message; - }, - toAmino(message: NetAddress): NetAddressAmino { - const obj: any = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.ip = message.ip === "" ? undefined : message.ip; - obj.port = message.port === 0 ? undefined : message.port; - return obj; - }, - fromAminoMsg(object: NetAddressAminoMsg): NetAddress { - return NetAddress.fromAmino(object.value); - }, - fromProtoMsg(message: NetAddressProtoMsg): NetAddress { - return NetAddress.decode(message.value); - }, - toProto(message: NetAddress): Uint8Array { - return NetAddress.encode(message).finish(); - }, - toProtoMsg(message: NetAddress): NetAddressProtoMsg { - return { - typeUrl: "/tendermint.p2p.NetAddress", - value: NetAddress.encode(message).finish() - }; - } -}; -function createBaseProtocolVersion(): ProtocolVersion { - return { - p2p: BigInt(0), - block: BigInt(0), - app: BigInt(0) - }; -} -export const ProtocolVersion = { - typeUrl: "/tendermint.p2p.ProtocolVersion", - encode(message: ProtocolVersion, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.p2p !== BigInt(0)) { - writer.uint32(8).uint64(message.p2p); - } - if (message.block !== BigInt(0)) { - writer.uint32(16).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(24).uint64(message.app); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProtocolVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.p2p = reader.uint64(); - break; - case 2: - message.block = reader.uint64(); - break; - case 3: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ProtocolVersion { - return { - p2p: isSet(object.p2p) ? BigInt(object.p2p.toString()) : BigInt(0), - block: isSet(object.block) ? BigInt(object.block.toString()) : BigInt(0), - app: isSet(object.app) ? BigInt(object.app.toString()) : BigInt(0) - }; - }, - toJSON(message: ProtocolVersion): unknown { - const obj: any = {}; - message.p2p !== undefined && (obj.p2p = (message.p2p || BigInt(0)).toString()); - message.block !== undefined && (obj.block = (message.block || BigInt(0)).toString()); - message.app !== undefined && (obj.app = (message.app || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ProtocolVersion { - const message = createBaseProtocolVersion(); - message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ProtocolVersionAmino): ProtocolVersion { - const message = createBaseProtocolVersion(); - if (object.p2p !== undefined && object.p2p !== null) { - message.p2p = BigInt(object.p2p); - } - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message: ProtocolVersion): ProtocolVersionAmino { - const obj: any = {}; - obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion { - return ProtocolVersion.fromAmino(object.value); - }, - fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion { - return ProtocolVersion.decode(message.value); - }, - toProto(message: ProtocolVersion): Uint8Array { - return ProtocolVersion.encode(message).finish(); - }, - toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg { - return { - typeUrl: "/tendermint.p2p.ProtocolVersion", - value: ProtocolVersion.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfo(): DefaultNodeInfo { - return { - protocolVersion: ProtocolVersion.fromPartial({}), - defaultNodeId: "", - listenAddr: "", - network: "", - version: "", - channels: new Uint8Array(), - moniker: "", - other: DefaultNodeInfoOther.fromPartial({}) - }; -} -export const DefaultNodeInfo = { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - encode(message: DefaultNodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.protocolVersion !== undefined) { - ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultNodeId !== "") { - writer.uint32(18).string(message.defaultNodeId); - } - if (message.listenAddr !== "") { - writer.uint32(26).string(message.listenAddr); - } - if (message.network !== "") { - writer.uint32(34).string(message.network); - } - if (message.version !== "") { - writer.uint32(42).string(message.version); - } - if (message.channels.length !== 0) { - writer.uint32(50).bytes(message.channels); - } - if (message.moniker !== "") { - writer.uint32(58).string(message.moniker); - } - if (message.other !== undefined) { - DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocolVersion = ProtocolVersion.decode(reader, reader.uint32()); - break; - case 2: - message.defaultNodeId = reader.string(); - break; - case 3: - message.listenAddr = reader.string(); - break; - case 4: - message.network = reader.string(); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.channels = reader.bytes(); - break; - case 7: - message.moniker = reader.string(); - break; - case 8: - message.other = DefaultNodeInfoOther.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DefaultNodeInfo { - return { - protocolVersion: isSet(object.protocolVersion) ? ProtocolVersion.fromJSON(object.protocolVersion) : undefined, - defaultNodeId: isSet(object.defaultNodeId) ? String(object.defaultNodeId) : "", - listenAddr: isSet(object.listenAddr) ? String(object.listenAddr) : "", - network: isSet(object.network) ? String(object.network) : "", - version: isSet(object.version) ? String(object.version) : "", - channels: isSet(object.channels) ? bytesFromBase64(object.channels) : new Uint8Array(), - moniker: isSet(object.moniker) ? String(object.moniker) : "", - other: isSet(object.other) ? DefaultNodeInfoOther.fromJSON(object.other) : undefined - }; - }, - toJSON(message: DefaultNodeInfo): unknown { - const obj: any = {}; - message.protocolVersion !== undefined && (obj.protocolVersion = message.protocolVersion ? ProtocolVersion.toJSON(message.protocolVersion) : undefined); - message.defaultNodeId !== undefined && (obj.defaultNodeId = message.defaultNodeId); - message.listenAddr !== undefined && (obj.listenAddr = message.listenAddr); - message.network !== undefined && (obj.network = message.network); - message.version !== undefined && (obj.version = message.version); - message.channels !== undefined && (obj.channels = base64FromBytes(message.channels !== undefined ? message.channels : new Uint8Array())); - message.moniker !== undefined && (obj.moniker = message.moniker); - message.other !== undefined && (obj.other = message.other ? DefaultNodeInfoOther.toJSON(message.other) : undefined); - return obj; - }, - fromPartial(object: Partial): DefaultNodeInfo { - const message = createBaseDefaultNodeInfo(); - message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? ProtocolVersion.fromPartial(object.protocolVersion) : undefined; - message.defaultNodeId = object.defaultNodeId ?? ""; - message.listenAddr = object.listenAddr ?? ""; - message.network = object.network ?? ""; - message.version = object.version ?? ""; - message.channels = object.channels ?? new Uint8Array(); - message.moniker = object.moniker ?? ""; - message.other = object.other !== undefined && object.other !== null ? DefaultNodeInfoOther.fromPartial(object.other) : undefined; - return message; - }, - fromAmino(object: DefaultNodeInfoAmino): DefaultNodeInfo { - const message = createBaseDefaultNodeInfo(); - if (object.protocol_version !== undefined && object.protocol_version !== null) { - message.protocolVersion = ProtocolVersion.fromAmino(object.protocol_version); - } - if (object.default_node_id !== undefined && object.default_node_id !== null) { - message.defaultNodeId = object.default_node_id; - } - if (object.listen_addr !== undefined && object.listen_addr !== null) { - message.listenAddr = object.listen_addr; - } - if (object.network !== undefined && object.network !== null) { - message.network = object.network; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.channels !== undefined && object.channels !== null) { - message.channels = bytesFromBase64(object.channels); - } - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.other !== undefined && object.other !== null) { - message.other = DefaultNodeInfoOther.fromAmino(object.other); - } - return message; - }, - toAmino(message: DefaultNodeInfo): DefaultNodeInfoAmino { - const obj: any = {}; - obj.protocol_version = message.protocolVersion ? ProtocolVersion.toAmino(message.protocolVersion) : undefined; - obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; - obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; - obj.network = message.network === "" ? undefined : message.network; - obj.version = message.version === "" ? undefined : message.version; - obj.channels = message.channels ? base64FromBytes(message.channels) : undefined; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.other = message.other ? DefaultNodeInfoOther.toAmino(message.other) : undefined; - return obj; - }, - fromAminoMsg(object: DefaultNodeInfoAminoMsg): DefaultNodeInfo { - return DefaultNodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message: DefaultNodeInfoProtoMsg): DefaultNodeInfo { - return DefaultNodeInfo.decode(message.value); - }, - toProto(message: DefaultNodeInfo): Uint8Array { - return DefaultNodeInfo.encode(message).finish(); - }, - toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - value: DefaultNodeInfo.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfoOther(): DefaultNodeInfoOther { - return { - txIndex: "", - rpcAddress: "" - }; -} -export const DefaultNodeInfoOther = { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - encode(message: DefaultNodeInfoOther, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.txIndex !== "") { - writer.uint32(10).string(message.txIndex); - } - if (message.rpcAddress !== "") { - writer.uint32(18).string(message.rpcAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfoOther(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txIndex = reader.string(); - break; - case 2: - message.rpcAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DefaultNodeInfoOther { - return { - txIndex: isSet(object.txIndex) ? String(object.txIndex) : "", - rpcAddress: isSet(object.rpcAddress) ? String(object.rpcAddress) : "" - }; - }, - toJSON(message: DefaultNodeInfoOther): unknown { - const obj: any = {}; - message.txIndex !== undefined && (obj.txIndex = message.txIndex); - message.rpcAddress !== undefined && (obj.rpcAddress = message.rpcAddress); - return obj; - }, - fromPartial(object: Partial): DefaultNodeInfoOther { - const message = createBaseDefaultNodeInfoOther(); - message.txIndex = object.txIndex ?? ""; - message.rpcAddress = object.rpcAddress ?? ""; - return message; - }, - fromAmino(object: DefaultNodeInfoOtherAmino): DefaultNodeInfoOther { - const message = createBaseDefaultNodeInfoOther(); - if (object.tx_index !== undefined && object.tx_index !== null) { - message.txIndex = object.tx_index; - } - if (object.rpc_address !== undefined && object.rpc_address !== null) { - message.rpcAddress = object.rpc_address; - } - return message; - }, - toAmino(message: DefaultNodeInfoOther): DefaultNodeInfoOtherAmino { - const obj: any = {}; - obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; - obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; - return obj; - }, - fromAminoMsg(object: DefaultNodeInfoOtherAminoMsg): DefaultNodeInfoOther { - return DefaultNodeInfoOther.fromAmino(object.value); - }, - fromProtoMsg(message: DefaultNodeInfoOtherProtoMsg): DefaultNodeInfoOther { - return DefaultNodeInfoOther.decode(message.value); - }, - toProto(message: DefaultNodeInfoOther): Uint8Array { - return DefaultNodeInfoOther.encode(message).finish(); - }, - toProtoMsg(message: DefaultNodeInfoOther): DefaultNodeInfoOtherProtoMsg { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - value: DefaultNodeInfoOther.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/types/block.ts b/packages/api/src/codegen/tendermint/types/block.ts deleted file mode 100644 index 1b69647e..00000000 --- a/packages/api/src/codegen/tendermint/types/block.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; -import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet } from "../../helpers"; -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit?: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/tendermint.types.Block"; - value: Uint8Array; -} -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "/tendermint.types.Block"; - value: BlockAmino; -} -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit?: CommitSDKType; -} -function createBaseBlock(): Block { - return { - header: Header.fromPartial({}), - data: Data.fromPartial({}), - evidence: EvidenceList.fromPartial({}), - lastCommit: undefined - }; -} -export const Block = { - typeUrl: "/tendermint.types.Block", - encode(message: Block, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.evidence !== undefined) { - EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); - } - if (message.lastCommit !== undefined) { - Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Block { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.data = Data.decode(reader, reader.uint32()); - break; - case 3: - message.evidence = EvidenceList.decode(reader, reader.uint32()); - break; - case 4: - message.lastCommit = Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Block { - return { - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - data: isSet(object.data) ? Data.fromJSON(object.data) : undefined, - evidence: isSet(object.evidence) ? EvidenceList.fromJSON(object.evidence) : undefined, - lastCommit: isSet(object.lastCommit) ? Commit.fromJSON(object.lastCommit) : undefined - }; - }, - toJSON(message: Block): unknown { - const obj: any = {}; - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - message.data !== undefined && (obj.data = message.data ? Data.toJSON(message.data) : undefined); - message.evidence !== undefined && (obj.evidence = message.evidence ? EvidenceList.toJSON(message.evidence) : undefined); - message.lastCommit !== undefined && (obj.lastCommit = message.lastCommit ? Commit.toJSON(message.lastCommit) : undefined); - return obj; - }, - fromPartial(object: Partial): Block { - const message = createBaseBlock(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.data = object.data !== undefined && object.data !== null ? Data.fromPartial(object.data) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceList.fromPartial(object.evidence) : undefined; - message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? Commit.fromPartial(object.lastCommit) : undefined; - return message; - }, - fromAmino(object: BlockAmino): Block { - const message = createBaseBlock(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.data !== undefined && object.data !== null) { - message.data = Data.fromAmino(object.data); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = EvidenceList.fromAmino(object.evidence); - } - if (object.last_commit !== undefined && object.last_commit !== null) { - message.lastCommit = Commit.fromAmino(object.last_commit); - } - return message; - }, - toAmino(message: Block): BlockAmino { - const obj: any = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.data = message.data ? Data.toAmino(message.data) : undefined; - obj.evidence = message.evidence ? EvidenceList.toAmino(message.evidence) : undefined; - obj.last_commit = message.lastCommit ? Commit.toAmino(message.lastCommit) : undefined; - return obj; - }, - fromAminoMsg(object: BlockAminoMsg): Block { - return Block.fromAmino(object.value); - }, - fromProtoMsg(message: BlockProtoMsg): Block { - return Block.decode(message.value); - }, - toProto(message: Block): Uint8Array { - return Block.encode(message).finish(); - }, - toProtoMsg(message: Block): BlockProtoMsg { - return { - typeUrl: "/tendermint.types.Block", - value: Block.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/types/evidence.ts b/packages/api/src/codegen/tendermint/types/evidence.ts deleted file mode 100644 index d026ae91..00000000 --- a/packages/api/src/codegen/tendermint/types/evidence.ts +++ /dev/null @@ -1,536 +0,0 @@ -import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, fromJsonTimestamp, fromTimestamp } from "../../helpers"; -export interface Evidence { - duplicateVoteEvidence?: DuplicateVoteEvidence; - lightClientAttackEvidence?: LightClientAttackEvidence; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.types.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; - light_client_attack_evidence?: LightClientAttackEvidenceAmino; -} -export interface EvidenceAminoMsg { - type: "/tendermint.types.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; - light_client_attack_evidence?: LightClientAttackEvidenceSDKType; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidence { - voteA?: Vote; - voteB?: Vote; - totalVotingPower: bigint; - validatorPower: bigint; - timestamp: Timestamp; -} -export interface DuplicateVoteEvidenceProtoMsg { - typeUrl: "/tendermint.types.DuplicateVoteEvidence"; - value: Uint8Array; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceAmino { - vote_a?: VoteAmino; - vote_b?: VoteAmino; - total_voting_power?: string; - validator_power?: string; - timestamp?: string; -} -export interface DuplicateVoteEvidenceAminoMsg { - type: "/tendermint.types.DuplicateVoteEvidence"; - value: DuplicateVoteEvidenceAmino; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceSDKType { - vote_a?: VoteSDKType; - vote_b?: VoteSDKType; - total_voting_power: bigint; - validator_power: bigint; - timestamp: TimestampSDKType; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidence { - conflictingBlock?: LightBlock; - commonHeight: bigint; - byzantineValidators: Validator[]; - totalVotingPower: bigint; - timestamp: Timestamp; -} -export interface LightClientAttackEvidenceProtoMsg { - typeUrl: "/tendermint.types.LightClientAttackEvidence"; - value: Uint8Array; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceAmino { - conflicting_block?: LightBlockAmino; - common_height?: string; - byzantine_validators?: ValidatorAmino[]; - total_voting_power?: string; - timestamp?: string; -} -export interface LightClientAttackEvidenceAminoMsg { - type: "/tendermint.types.LightClientAttackEvidence"; - value: LightClientAttackEvidenceAmino; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceSDKType { - conflicting_block?: LightBlockSDKType; - common_height: bigint; - byzantine_validators: ValidatorSDKType[]; - total_voting_power: bigint; - timestamp: TimestampSDKType; -} -export interface EvidenceList { - evidence: Evidence[]; -} -export interface EvidenceListProtoMsg { - typeUrl: "/tendermint.types.EvidenceList"; - value: Uint8Array; -} -export interface EvidenceListAmino { - evidence?: EvidenceAmino[]; -} -export interface EvidenceListAminoMsg { - type: "/tendermint.types.EvidenceList"; - value: EvidenceListAmino; -} -export interface EvidenceListSDKType { - evidence: EvidenceSDKType[]; -} -function createBaseEvidence(): Evidence { - return { - duplicateVoteEvidence: undefined, - lightClientAttackEvidence: undefined - }; -} -export const Evidence = { - typeUrl: "/tendermint.types.Evidence", - encode(message: Evidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.duplicateVoteEvidence !== undefined) { - DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); - } - if (message.lightClientAttackEvidence !== undefined) { - LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Evidence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.duplicateVoteEvidence = DuplicateVoteEvidence.decode(reader, reader.uint32()); - break; - case 2: - message.lightClientAttackEvidence = LightClientAttackEvidence.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Evidence { - return { - duplicateVoteEvidence: isSet(object.duplicateVoteEvidence) ? DuplicateVoteEvidence.fromJSON(object.duplicateVoteEvidence) : undefined, - lightClientAttackEvidence: isSet(object.lightClientAttackEvidence) ? LightClientAttackEvidence.fromJSON(object.lightClientAttackEvidence) : undefined - }; - }, - toJSON(message: Evidence): unknown { - const obj: any = {}; - message.duplicateVoteEvidence !== undefined && (obj.duplicateVoteEvidence = message.duplicateVoteEvidence ? DuplicateVoteEvidence.toJSON(message.duplicateVoteEvidence) : undefined); - message.lightClientAttackEvidence !== undefined && (obj.lightClientAttackEvidence = message.lightClientAttackEvidence ? LightClientAttackEvidence.toJSON(message.lightClientAttackEvidence) : undefined); - return obj; - }, - fromPartial(object: Partial): Evidence { - const message = createBaseEvidence(); - message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; - message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; - return message; - }, - fromAmino(object: EvidenceAmino): Evidence { - const message = createBaseEvidence(); - if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { - message.duplicateVoteEvidence = DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); - } - if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { - message.lightClientAttackEvidence = LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); - } - return message; - }, - toAmino(message: Evidence): EvidenceAmino { - const obj: any = {}; - obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; - obj.light_client_attack_evidence = message.lightClientAttackEvidence ? LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; - return obj; - }, - fromAminoMsg(object: EvidenceAminoMsg): Evidence { - return Evidence.fromAmino(object.value); - }, - fromProtoMsg(message: EvidenceProtoMsg): Evidence { - return Evidence.decode(message.value); - }, - toProto(message: Evidence): Uint8Array { - return Evidence.encode(message).finish(); - }, - toProtoMsg(message: Evidence): EvidenceProtoMsg { - return { - typeUrl: "/tendermint.types.Evidence", - value: Evidence.encode(message).finish() - }; - } -}; -function createBaseDuplicateVoteEvidence(): DuplicateVoteEvidence { - return { - voteA: undefined, - voteB: undefined, - totalVotingPower: BigInt(0), - validatorPower: BigInt(0), - timestamp: Timestamp.fromPartial({}) - }; -} -export const DuplicateVoteEvidence = { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - encode(message: DuplicateVoteEvidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.voteA !== undefined) { - Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); - } - if (message.voteB !== undefined) { - Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - if (message.validatorPower !== BigInt(0)) { - writer.uint32(32).int64(message.validatorPower); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuplicateVoteEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voteA = Vote.decode(reader, reader.uint32()); - break; - case 2: - message.voteB = Vote.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - case 4: - message.validatorPower = reader.int64(); - break; - case 5: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): DuplicateVoteEvidence { - return { - voteA: isSet(object.voteA) ? Vote.fromJSON(object.voteA) : undefined, - voteB: isSet(object.voteB) ? Vote.fromJSON(object.voteB) : undefined, - totalVotingPower: isSet(object.totalVotingPower) ? BigInt(object.totalVotingPower.toString()) : BigInt(0), - validatorPower: isSet(object.validatorPower) ? BigInt(object.validatorPower.toString()) : BigInt(0), - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: DuplicateVoteEvidence): unknown { - const obj: any = {}; - message.voteA !== undefined && (obj.voteA = message.voteA ? Vote.toJSON(message.voteA) : undefined); - message.voteB !== undefined && (obj.voteB = message.voteB ? Vote.toJSON(message.voteB) : undefined); - message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || BigInt(0)).toString()); - message.validatorPower !== undefined && (obj.validatorPower = (message.validatorPower || BigInt(0)).toString()); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): DuplicateVoteEvidence { - const message = createBaseDuplicateVoteEvidence(); - message.voteA = object.voteA !== undefined && object.voteA !== null ? Vote.fromPartial(object.voteA) : undefined; - message.voteB = object.voteB !== undefined && object.voteB !== null ? Vote.fromPartial(object.voteB) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: DuplicateVoteEvidenceAmino): DuplicateVoteEvidence { - const message = createBaseDuplicateVoteEvidence(); - if (object.vote_a !== undefined && object.vote_a !== null) { - message.voteA = Vote.fromAmino(object.vote_a); - } - if (object.vote_b !== undefined && object.vote_b !== null) { - message.voteB = Vote.fromAmino(object.vote_b); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.validator_power !== undefined && object.validator_power !== null) { - message.validatorPower = BigInt(object.validator_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: DuplicateVoteEvidence): DuplicateVoteEvidenceAmino { - const obj: any = {}; - obj.vote_a = message.voteA ? Vote.toAmino(message.voteA) : undefined; - obj.vote_b = message.voteB ? Vote.toAmino(message.voteB) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: DuplicateVoteEvidenceAminoMsg): DuplicateVoteEvidence { - return DuplicateVoteEvidence.fromAmino(object.value); - }, - fromProtoMsg(message: DuplicateVoteEvidenceProtoMsg): DuplicateVoteEvidence { - return DuplicateVoteEvidence.decode(message.value); - }, - toProto(message: DuplicateVoteEvidence): Uint8Array { - return DuplicateVoteEvidence.encode(message).finish(); - }, - toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg { - return { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - value: DuplicateVoteEvidence.encode(message).finish() - }; - } -}; -function createBaseLightClientAttackEvidence(): LightClientAttackEvidence { - return { - conflictingBlock: undefined, - commonHeight: BigInt(0), - byzantineValidators: [], - totalVotingPower: BigInt(0), - timestamp: Timestamp.fromPartial({}) - }; -} -export const LightClientAttackEvidence = { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - encode(message: LightClientAttackEvidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.conflictingBlock !== undefined) { - LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); - } - if (message.commonHeight !== BigInt(0)) { - writer.uint32(16).int64(message.commonHeight); - } - for (const v of message.byzantineValidators) { - Validator.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(32).int64(message.totalVotingPower); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightClientAttackEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conflictingBlock = LightBlock.decode(reader, reader.uint32()); - break; - case 2: - message.commonHeight = reader.int64(); - break; - case 3: - message.byzantineValidators.push(Validator.decode(reader, reader.uint32())); - break; - case 4: - message.totalVotingPower = reader.int64(); - break; - case 5: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): LightClientAttackEvidence { - return { - conflictingBlock: isSet(object.conflictingBlock) ? LightBlock.fromJSON(object.conflictingBlock) : undefined, - commonHeight: isSet(object.commonHeight) ? BigInt(object.commonHeight.toString()) : BigInt(0), - byzantineValidators: Array.isArray(object?.byzantineValidators) ? object.byzantineValidators.map((e: any) => Validator.fromJSON(e)) : [], - totalVotingPower: isSet(object.totalVotingPower) ? BigInt(object.totalVotingPower.toString()) : BigInt(0), - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined - }; - }, - toJSON(message: LightClientAttackEvidence): unknown { - const obj: any = {}; - message.conflictingBlock !== undefined && (obj.conflictingBlock = message.conflictingBlock ? LightBlock.toJSON(message.conflictingBlock) : undefined); - message.commonHeight !== undefined && (obj.commonHeight = (message.commonHeight || BigInt(0)).toString()); - if (message.byzantineValidators) { - obj.byzantineValidators = message.byzantineValidators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.byzantineValidators = []; - } - message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || BigInt(0)).toString()); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - return obj; - }, - fromPartial(object: Partial): LightClientAttackEvidence { - const message = createBaseLightClientAttackEvidence(); - message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? LightBlock.fromPartial(object.conflictingBlock) : undefined; - message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); - message.byzantineValidators = object.byzantineValidators?.map(e => Validator.fromPartial(e)) || []; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - return message; - }, - fromAmino(object: LightClientAttackEvidenceAmino): LightClientAttackEvidence { - const message = createBaseLightClientAttackEvidence(); - if (object.conflicting_block !== undefined && object.conflicting_block !== null) { - message.conflictingBlock = LightBlock.fromAmino(object.conflicting_block); - } - if (object.common_height !== undefined && object.common_height !== null) { - message.commonHeight = BigInt(object.common_height); - } - message.byzantineValidators = object.byzantine_validators?.map(e => Validator.fromAmino(e)) || []; - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - return message; - }, - toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino { - const obj: any = {}; - obj.conflicting_block = message.conflictingBlock ? LightBlock.toAmino(message.conflictingBlock) : undefined; - obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.byzantine_validators = message.byzantineValidators; - } - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - return obj; - }, - fromAminoMsg(object: LightClientAttackEvidenceAminoMsg): LightClientAttackEvidence { - return LightClientAttackEvidence.fromAmino(object.value); - }, - fromProtoMsg(message: LightClientAttackEvidenceProtoMsg): LightClientAttackEvidence { - return LightClientAttackEvidence.decode(message.value); - }, - toProto(message: LightClientAttackEvidence): Uint8Array { - return LightClientAttackEvidence.encode(message).finish(); - }, - toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg { - return { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - value: LightClientAttackEvidence.encode(message).finish() - }; - } -}; -function createBaseEvidenceList(): EvidenceList { - return { - evidence: [] - }; -} -export const EvidenceList = { - typeUrl: "/tendermint.types.EvidenceList", - encode(message: EvidenceList, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.evidence) { - Evidence.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceList(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Evidence.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EvidenceList { - return { - evidence: Array.isArray(object?.evidence) ? object.evidence.map((e: any) => Evidence.fromJSON(e)) : [] - }; - }, - toJSON(message: EvidenceList): unknown { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Evidence.toJSON(e) : undefined); - } else { - obj.evidence = []; - } - return obj; - }, - fromPartial(object: Partial): EvidenceList { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => Evidence.fromPartial(e)) || []; - return message; - }, - fromAmino(object: EvidenceListAmino): EvidenceList { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => Evidence.fromAmino(e)) || []; - return message; - }, - toAmino(message: EvidenceList): EvidenceListAmino { - const obj: any = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Evidence.toAmino(e) : undefined); - } else { - obj.evidence = message.evidence; - } - return obj; - }, - fromAminoMsg(object: EvidenceListAminoMsg): EvidenceList { - return EvidenceList.fromAmino(object.value); - }, - fromProtoMsg(message: EvidenceListProtoMsg): EvidenceList { - return EvidenceList.decode(message.value); - }, - toProto(message: EvidenceList): Uint8Array { - return EvidenceList.encode(message).finish(); - }, - toProtoMsg(message: EvidenceList): EvidenceListProtoMsg { - return { - typeUrl: "/tendermint.types.EvidenceList", - value: EvidenceList.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/types/params.ts b/packages/api/src/codegen/tendermint/types/params.ts deleted file mode 100644 index 7bbaf54e..00000000 --- a/packages/api/src/codegen/tendermint/types/params.ts +++ /dev/null @@ -1,768 +0,0 @@ -import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet } from "../../helpers"; -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParams { - block?: BlockParams; - evidence?: EvidenceParams; - validator?: ValidatorParams; - version?: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.types.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.types.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsSDKType { - block?: BlockParamsSDKType; - evidence?: EvidenceParamsSDKType; - validator?: ValidatorParamsSDKType; - version?: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - maxBytes: bigint; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - maxGas: bigint; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.types.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - max_bytes?: string; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - max_gas?: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.types.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: bigint; - max_gas: bigint; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParams { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - maxAgeNumBlocks: bigint; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - maxAgeDuration: Duration; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - maxBytes: bigint; -} -export interface EvidenceParamsProtoMsg { - typeUrl: "/tendermint.types.EvidenceParams"; - value: Uint8Array; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsAmino { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - max_age_num_blocks?: string; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - max_age_duration?: DurationAmino; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - max_bytes?: string; -} -export interface EvidenceParamsAminoMsg { - type: "/tendermint.types.EvidenceParams"; - value: EvidenceParamsAmino; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsSDKType { - max_age_num_blocks: bigint; - max_age_duration: DurationSDKType; - max_bytes: bigint; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParams { - pubKeyTypes: string[]; -} -export interface ValidatorParamsProtoMsg { - typeUrl: "/tendermint.types.ValidatorParams"; - value: Uint8Array; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsAmino { - pub_key_types?: string[]; -} -export interface ValidatorParamsAminoMsg { - type: "/tendermint.types.ValidatorParams"; - value: ValidatorParamsAmino; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsSDKType { - pub_key_types: string[]; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParams { - app: bigint; -} -export interface VersionParamsProtoMsg { - typeUrl: "/tendermint.types.VersionParams"; - value: Uint8Array; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsAmino { - app?: string; -} -export interface VersionParamsAminoMsg { - type: "/tendermint.types.VersionParams"; - value: VersionParamsAmino; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsSDKType { - app: bigint; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParams { - blockMaxBytes: bigint; - blockMaxGas: bigint; -} -export interface HashedParamsProtoMsg { - typeUrl: "/tendermint.types.HashedParams"; - value: Uint8Array; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsAmino { - block_max_bytes?: string; - block_max_gas?: string; -} -export interface HashedParamsAminoMsg { - type: "/tendermint.types.HashedParams"; - value: HashedParamsAmino; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsSDKType { - block_max_bytes: bigint; - block_max_gas: bigint; -} -function createBaseConsensusParams(): ConsensusParams { - return { - block: undefined, - evidence: undefined, - validator: undefined, - version: undefined - }; -} -export const ConsensusParams = { - typeUrl: "/tendermint.types.ConsensusParams", - encode(message: ConsensusParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.block !== undefined) { - BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); - } - if (message.evidence !== undefined) { - EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); - } - if (message.validator !== undefined) { - ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); - } - if (message.version !== undefined) { - VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = BlockParams.decode(reader, reader.uint32()); - break; - case 2: - message.evidence = EvidenceParams.decode(reader, reader.uint32()); - break; - case 3: - message.validator = ValidatorParams.decode(reader, reader.uint32()); - break; - case 4: - message.version = VersionParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ConsensusParams { - return { - block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined, - evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined, - validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined, - version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined - }; - }, - toJSON(message: ConsensusParams): unknown { - const obj: any = {}; - message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined); - message.evidence !== undefined && (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined); - message.validator !== undefined && (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined); - message.version !== undefined && (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined); - return obj; - }, - fromPartial(object: Partial): ConsensusParams { - const message = createBaseConsensusParams(); - message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined; - message.validator = object.validator !== undefined && object.validator !== null ? ValidatorParams.fromPartial(object.validator) : undefined; - message.version = object.version !== undefined && object.version !== null ? VersionParams.fromPartial(object.version) : undefined; - return message; - }, - fromAmino(object: ConsensusParamsAmino): ConsensusParams { - const message = createBaseConsensusParams(); - if (object.block !== undefined && object.block !== null) { - message.block = BlockParams.fromAmino(object.block); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = EvidenceParams.fromAmino(object.evidence); - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = ValidatorParams.fromAmino(object.validator); - } - if (object.version !== undefined && object.version !== null) { - message.version = VersionParams.fromAmino(object.version); - } - return message; - }, - toAmino(message: ConsensusParams): ConsensusParamsAmino { - const obj: any = {}; - obj.block = message.block ? BlockParams.toAmino(message.block) : undefined; - obj.evidence = message.evidence ? EvidenceParams.toAmino(message.evidence) : undefined; - obj.validator = message.validator ? ValidatorParams.toAmino(message.validator) : undefined; - obj.version = message.version ? VersionParams.toAmino(message.version) : undefined; - return obj; - }, - fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams { - return ConsensusParams.fromAmino(object.value); - }, - fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams { - return ConsensusParams.decode(message.value); - }, - toProto(message: ConsensusParams): Uint8Array { - return ConsensusParams.encode(message).finish(); - }, - toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg { - return { - typeUrl: "/tendermint.types.ConsensusParams", - value: ConsensusParams.encode(message).finish() - }; - } -}; -function createBaseBlockParams(): BlockParams { - return { - maxBytes: BigInt(0), - maxGas: BigInt(0) - }; -} -export const BlockParams = { - typeUrl: "/tendermint.types.BlockParams", - encode(message: BlockParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.maxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxBytes); - } - if (message.maxGas !== BigInt(0)) { - writer.uint32(16).int64(message.maxGas); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BlockParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxBytes = reader.int64(); - break; - case 2: - message.maxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BlockParams { - return { - maxBytes: isSet(object.maxBytes) ? BigInt(object.maxBytes.toString()) : BigInt(0), - maxGas: isSet(object.maxGas) ? BigInt(object.maxGas.toString()) : BigInt(0) - }; - }, - toJSON(message: BlockParams): unknown { - const obj: any = {}; - message.maxBytes !== undefined && (obj.maxBytes = (message.maxBytes || BigInt(0)).toString()); - message.maxGas !== undefined && (obj.maxGas = (message.maxGas || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BlockParams { - const message = createBaseBlockParams(); - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BlockParamsAmino): BlockParams { - const message = createBaseBlockParams(); - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - if (object.max_gas !== undefined && object.max_gas !== null) { - message.maxGas = BigInt(object.max_gas); - } - return message; - }, - toAmino(message: BlockParams): BlockParamsAmino { - const obj: any = {}; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BlockParamsAminoMsg): BlockParams { - return BlockParams.fromAmino(object.value); - }, - fromProtoMsg(message: BlockParamsProtoMsg): BlockParams { - return BlockParams.decode(message.value); - }, - toProto(message: BlockParams): Uint8Array { - return BlockParams.encode(message).finish(); - }, - toProtoMsg(message: BlockParams): BlockParamsProtoMsg { - return { - typeUrl: "/tendermint.types.BlockParams", - value: BlockParams.encode(message).finish() - }; - } -}; -function createBaseEvidenceParams(): EvidenceParams { - return { - maxAgeNumBlocks: BigInt(0), - maxAgeDuration: Duration.fromPartial({}), - maxBytes: BigInt(0) - }; -} -export const EvidenceParams = { - typeUrl: "/tendermint.types.EvidenceParams", - encode(message: EvidenceParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.maxAgeNumBlocks !== BigInt(0)) { - writer.uint32(8).int64(message.maxAgeNumBlocks); - } - if (message.maxAgeDuration !== undefined) { - Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); - } - if (message.maxBytes !== BigInt(0)) { - writer.uint32(24).int64(message.maxBytes); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxAgeNumBlocks = reader.int64(); - break; - case 2: - message.maxAgeDuration = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.maxBytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): EvidenceParams { - return { - maxAgeNumBlocks: isSet(object.maxAgeNumBlocks) ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0), - maxAgeDuration: isSet(object.maxAgeDuration) ? Duration.fromJSON(object.maxAgeDuration) : undefined, - maxBytes: isSet(object.maxBytes) ? BigInt(object.maxBytes.toString()) : BigInt(0) - }; - }, - toJSON(message: EvidenceParams): unknown { - const obj: any = {}; - message.maxAgeNumBlocks !== undefined && (obj.maxAgeNumBlocks = (message.maxAgeNumBlocks || BigInt(0)).toString()); - message.maxAgeDuration !== undefined && (obj.maxAgeDuration = message.maxAgeDuration ? Duration.toJSON(message.maxAgeDuration) : undefined); - message.maxBytes !== undefined && (obj.maxBytes = (message.maxBytes || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): EvidenceParams { - const message = createBaseEvidenceParams(); - message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); - message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? Duration.fromPartial(object.maxAgeDuration) : undefined; - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - return message; - }, - fromAmino(object: EvidenceParamsAmino): EvidenceParams { - const message = createBaseEvidenceParams(); - if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { - message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); - } - if (object.max_age_duration !== undefined && object.max_age_duration !== null) { - message.maxAgeDuration = Duration.fromAmino(object.max_age_duration); - } - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - return message; - }, - toAmino(message: EvidenceParams): EvidenceParamsAmino { - const obj: any = {}; - obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; - obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - return obj; - }, - fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams { - return EvidenceParams.fromAmino(object.value); - }, - fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams { - return EvidenceParams.decode(message.value); - }, - toProto(message: EvidenceParams): Uint8Array { - return EvidenceParams.encode(message).finish(); - }, - toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg { - return { - typeUrl: "/tendermint.types.EvidenceParams", - value: EvidenceParams.encode(message).finish() - }; - } -}; -function createBaseValidatorParams(): ValidatorParams { - return { - pubKeyTypes: [] - }; -} -export const ValidatorParams = { - typeUrl: "/tendermint.types.ValidatorParams", - encode(message: ValidatorParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.pubKeyTypes) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKeyTypes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorParams { - return { - pubKeyTypes: Array.isArray(object?.pubKeyTypes) ? object.pubKeyTypes.map((e: any) => String(e)) : [] - }; - }, - toJSON(message: ValidatorParams): unknown { - const obj: any = {}; - if (message.pubKeyTypes) { - obj.pubKeyTypes = message.pubKeyTypes.map(e => e); - } else { - obj.pubKeyTypes = []; - } - return obj; - }, - fromPartial(object: Partial): ValidatorParams { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; - return message; - }, - fromAmino(object: ValidatorParamsAmino): ValidatorParams { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; - return message; - }, - toAmino(message: ValidatorParams): ValidatorParamsAmino { - const obj: any = {}; - if (message.pubKeyTypes) { - obj.pub_key_types = message.pubKeyTypes.map(e => e); - } else { - obj.pub_key_types = message.pubKeyTypes; - } - return obj; - }, - fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams { - return ValidatorParams.fromAmino(object.value); - }, - fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams { - return ValidatorParams.decode(message.value); - }, - toProto(message: ValidatorParams): Uint8Array { - return ValidatorParams.encode(message).finish(); - }, - toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg { - return { - typeUrl: "/tendermint.types.ValidatorParams", - value: ValidatorParams.encode(message).finish() - }; - } -}; -function createBaseVersionParams(): VersionParams { - return { - app: BigInt(0) - }; -} -export const VersionParams = { - typeUrl: "/tendermint.types.VersionParams", - encode(message: VersionParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.app !== BigInt(0)) { - writer.uint32(8).uint64(message.app); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): VersionParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVersionParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): VersionParams { - return { - app: isSet(object.app) ? BigInt(object.app.toString()) : BigInt(0) - }; - }, - toJSON(message: VersionParams): unknown { - const obj: any = {}; - message.app !== undefined && (obj.app = (message.app || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): VersionParams { - const message = createBaseVersionParams(); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object: VersionParamsAmino): VersionParams { - const message = createBaseVersionParams(); - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message: VersionParams): VersionParamsAmino { - const obj: any = {}; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object: VersionParamsAminoMsg): VersionParams { - return VersionParams.fromAmino(object.value); - }, - fromProtoMsg(message: VersionParamsProtoMsg): VersionParams { - return VersionParams.decode(message.value); - }, - toProto(message: VersionParams): Uint8Array { - return VersionParams.encode(message).finish(); - }, - toProtoMsg(message: VersionParams): VersionParamsProtoMsg { - return { - typeUrl: "/tendermint.types.VersionParams", - value: VersionParams.encode(message).finish() - }; - } -}; -function createBaseHashedParams(): HashedParams { - return { - blockMaxBytes: BigInt(0), - blockMaxGas: BigInt(0) - }; -} -export const HashedParams = { - typeUrl: "/tendermint.types.HashedParams", - encode(message: HashedParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockMaxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.blockMaxBytes); - } - if (message.blockMaxGas !== BigInt(0)) { - writer.uint32(16).int64(message.blockMaxGas); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): HashedParams { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHashedParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockMaxBytes = reader.int64(); - break; - case 2: - message.blockMaxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): HashedParams { - return { - blockMaxBytes: isSet(object.blockMaxBytes) ? BigInt(object.blockMaxBytes.toString()) : BigInt(0), - blockMaxGas: isSet(object.blockMaxGas) ? BigInt(object.blockMaxGas.toString()) : BigInt(0) - }; - }, - toJSON(message: HashedParams): unknown { - const obj: any = {}; - message.blockMaxBytes !== undefined && (obj.blockMaxBytes = (message.blockMaxBytes || BigInt(0)).toString()); - message.blockMaxGas !== undefined && (obj.blockMaxGas = (message.blockMaxGas || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): HashedParams { - const message = createBaseHashedParams(); - message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); - message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object: HashedParamsAmino): HashedParams { - const message = createBaseHashedParams(); - if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { - message.blockMaxBytes = BigInt(object.block_max_bytes); - } - if (object.block_max_gas !== undefined && object.block_max_gas !== null) { - message.blockMaxGas = BigInt(object.block_max_gas); - } - return message; - }, - toAmino(message: HashedParams): HashedParamsAmino { - const obj: any = {}; - obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; - obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object: HashedParamsAminoMsg): HashedParams { - return HashedParams.fromAmino(object.value); - }, - fromProtoMsg(message: HashedParamsProtoMsg): HashedParams { - return HashedParams.decode(message.value); - }, - toProto(message: HashedParams): Uint8Array { - return HashedParams.encode(message).finish(); - }, - toProtoMsg(message: HashedParams): HashedParamsProtoMsg { - return { - typeUrl: "/tendermint.types.HashedParams", - value: HashedParams.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/types/types.ts b/packages/api/src/codegen/tendermint/types/types.ts deleted file mode 100644 index 521bbe32..00000000 --- a/packages/api/src/codegen/tendermint/types/types.ts +++ /dev/null @@ -1,2072 +0,0 @@ -import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp } from "../../helpers"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3, - UNRECOGNIZED = -1, -} -export const BlockIDFlagSDKType = BlockIDFlag; -export const BlockIDFlagAmino = BlockIDFlag; -export function blockIDFlagFromJSON(object: any): BlockIDFlag { - switch (object) { - case 0: - case "BLOCK_ID_FLAG_UNKNOWN": - return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - case 1: - case "BLOCK_ID_FLAG_ABSENT": - return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; - case 2: - case "BLOCK_ID_FLAG_COMMIT": - return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; - case 3: - case "BLOCK_ID_FLAG_NIL": - return BlockIDFlag.BLOCK_ID_FLAG_NIL; - case -1: - case "UNRECOGNIZED": - default: - return BlockIDFlag.UNRECOGNIZED; - } -} -export function blockIDFlagToJSON(object: BlockIDFlag): string { - switch (object) { - case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: - return "BLOCK_ID_FLAG_UNKNOWN"; - case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: - return "BLOCK_ID_FLAG_ABSENT"; - case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: - return "BLOCK_ID_FLAG_COMMIT"; - case BlockIDFlag.BLOCK_ID_FLAG_NIL: - return "BLOCK_ID_FLAG_NIL"; - case BlockIDFlag.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignedMsgType is a type of signed message in the consensus. */ -export enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SIGNED_MSG_TYPE_PROPOSAL = 32, - UNRECOGNIZED = -1, -} -export const SignedMsgTypeSDKType = SignedMsgType; -export const SignedMsgTypeAmino = SignedMsgType; -export function signedMsgTypeFromJSON(object: any): SignedMsgType { - switch (object) { - case 0: - case "SIGNED_MSG_TYPE_UNKNOWN": - return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; - case 1: - case "SIGNED_MSG_TYPE_PREVOTE": - return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; - case 2: - case "SIGNED_MSG_TYPE_PRECOMMIT": - return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; - case 32: - case "SIGNED_MSG_TYPE_PROPOSAL": - return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; - case -1: - case "UNRECOGNIZED": - default: - return SignedMsgType.UNRECOGNIZED; - } -} -export function signedMsgTypeToJSON(object: SignedMsgType): string { - switch (object) { - case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: - return "SIGNED_MSG_TYPE_UNKNOWN"; - case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: - return "SIGNED_MSG_TYPE_PREVOTE"; - case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: - return "SIGNED_MSG_TYPE_PRECOMMIT"; - case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: - return "SIGNED_MSG_TYPE_PROPOSAL"; - case SignedMsgType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** PartsetHeader */ -export interface PartSetHeader { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderProtoMsg { - typeUrl: "/tendermint.types.PartSetHeader"; - value: Uint8Array; -} -/** PartsetHeader */ -export interface PartSetHeaderAmino { - total?: number; - hash?: string; -} -export interface PartSetHeaderAminoMsg { - type: "/tendermint.types.PartSetHeader"; - value: PartSetHeaderAmino; -} -/** PartsetHeader */ -export interface PartSetHeaderSDKType { - total: number; - hash: Uint8Array; -} -export interface Part { - index: number; - bytes: Uint8Array; - proof: Proof; -} -export interface PartProtoMsg { - typeUrl: "/tendermint.types.Part"; - value: Uint8Array; -} -export interface PartAmino { - index?: number; - bytes?: string; - proof?: ProofAmino; -} -export interface PartAminoMsg { - type: "/tendermint.types.Part"; - value: PartAmino; -} -export interface PartSDKType { - index: number; - bytes: Uint8Array; - proof: ProofSDKType; -} -/** BlockID */ -export interface BlockID { - hash: Uint8Array; - partSetHeader: PartSetHeader; -} -export interface BlockIDProtoMsg { - typeUrl: "/tendermint.types.BlockID"; - value: Uint8Array; -} -/** BlockID */ -export interface BlockIDAmino { - hash?: string; - part_set_header?: PartSetHeaderAmino; -} -export interface BlockIDAminoMsg { - type: "/tendermint.types.BlockID"; - value: BlockIDAmino; -} -/** BlockID */ -export interface BlockIDSDKType { - hash: Uint8Array; - part_set_header: PartSetHeaderSDKType; -} -/** Header defines the structure of a block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: bigint; - time: Timestamp; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** original proposer of the block */ - proposerAddress: Uint8Array; -} -export interface HeaderProtoMsg { - typeUrl: "/tendermint.types.Header"; - value: Uint8Array; -} -/** Header defines the structure of a block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id?: string; - height?: string; - time?: string; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash?: string; - data_hash?: string; - /** hashes from the app output from the prev block */ - validators_hash?: string; - /** validators for the next block */ - next_validators_hash?: string; - /** consensus params for current block */ - consensus_hash?: string; - /** state after txs from the previous block */ - app_hash?: string; - last_results_hash?: string; - /** consensus info */ - evidence_hash?: string; - /** original proposer of the block */ - proposer_address?: string; -} -export interface HeaderAminoMsg { - type: "/tendermint.types.Header"; - value: HeaderAmino; -} -/** Header defines the structure of a block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: bigint; - time: TimestampSDKType; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface Data { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataProtoMsg { - typeUrl: "/tendermint.types.Data"; - value: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface DataAmino { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; -} -export interface DataAminoMsg { - type: "/tendermint.types.Data"; - value: DataAmino; -} -/** Data contains the set of transactions included in the block */ -export interface DataSDKType { - txs: Uint8Array[]; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface Vote { - type: SignedMsgType; - height: bigint; - round: number; - blockId: BlockID; - timestamp: Timestamp; - validatorAddress: Uint8Array; - validatorIndex: number; - signature: Uint8Array; -} -export interface VoteProtoMsg { - typeUrl: "/tendermint.types.Vote"; - value: Uint8Array; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteAmino { - type?: SignedMsgType; - height?: string; - round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - validator_address?: string; - validator_index?: number; - signature?: string; -} -export interface VoteAminoMsg { - type: "/tendermint.types.Vote"; - value: VoteAmino; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteSDKType { - type: SignedMsgType; - height: bigint; - round: number; - block_id: BlockIDSDKType; - timestamp: TimestampSDKType; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface Commit { - height: bigint; - round: number; - blockId: BlockID; - signatures: CommitSig[]; -} -export interface CommitProtoMsg { - typeUrl: "/tendermint.types.Commit"; - value: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitAmino { - height?: string; - round?: number; - block_id?: BlockIDAmino; - signatures?: CommitSigAmino[]; -} -export interface CommitAminoMsg { - type: "/tendermint.types.Commit"; - value: CommitAmino; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitSDKType { - height: bigint; - round: number; - block_id: BlockIDSDKType; - signatures: CommitSigSDKType[]; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSig { - blockIdFlag: BlockIDFlag; - validatorAddress: Uint8Array; - timestamp: Timestamp; - signature: Uint8Array; -} -export interface CommitSigProtoMsg { - typeUrl: "/tendermint.types.CommitSig"; - value: Uint8Array; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigAmino { - block_id_flag?: BlockIDFlag; - validator_address?: string; - timestamp?: string; - signature?: string; -} -export interface CommitSigAminoMsg { - type: "/tendermint.types.CommitSig"; - value: CommitSigAmino; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigSDKType { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp: TimestampSDKType; - signature: Uint8Array; -} -export interface Proposal { - type: SignedMsgType; - height: bigint; - round: number; - polRound: number; - blockId: BlockID; - timestamp: Timestamp; - signature: Uint8Array; -} -export interface ProposalProtoMsg { - typeUrl: "/tendermint.types.Proposal"; - value: Uint8Array; -} -export interface ProposalAmino { - type?: SignedMsgType; - height?: string; - round?: number; - pol_round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - signature?: string; -} -export interface ProposalAminoMsg { - type: "/tendermint.types.Proposal"; - value: ProposalAmino; -} -export interface ProposalSDKType { - type: SignedMsgType; - height: bigint; - round: number; - pol_round: number; - block_id: BlockIDSDKType; - timestamp: TimestampSDKType; - signature: Uint8Array; -} -export interface SignedHeader { - header?: Header; - commit?: Commit; -} -export interface SignedHeaderProtoMsg { - typeUrl: "/tendermint.types.SignedHeader"; - value: Uint8Array; -} -export interface SignedHeaderAmino { - header?: HeaderAmino; - commit?: CommitAmino; -} -export interface SignedHeaderAminoMsg { - type: "/tendermint.types.SignedHeader"; - value: SignedHeaderAmino; -} -export interface SignedHeaderSDKType { - header?: HeaderSDKType; - commit?: CommitSDKType; -} -export interface LightBlock { - signedHeader?: SignedHeader; - validatorSet?: ValidatorSet; -} -export interface LightBlockProtoMsg { - typeUrl: "/tendermint.types.LightBlock"; - value: Uint8Array; -} -export interface LightBlockAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; -} -export interface LightBlockAminoMsg { - type: "/tendermint.types.LightBlock"; - value: LightBlockAmino; -} -export interface LightBlockSDKType { - signed_header?: SignedHeaderSDKType; - validator_set?: ValidatorSetSDKType; -} -export interface BlockMeta { - blockId: BlockID; - blockSize: bigint; - header: Header; - numTxs: bigint; -} -export interface BlockMetaProtoMsg { - typeUrl: "/tendermint.types.BlockMeta"; - value: Uint8Array; -} -export interface BlockMetaAmino { - block_id?: BlockIDAmino; - block_size?: string; - header?: HeaderAmino; - num_txs?: string; -} -export interface BlockMetaAminoMsg { - type: "/tendermint.types.BlockMeta"; - value: BlockMetaAmino; -} -export interface BlockMetaSDKType { - block_id: BlockIDSDKType; - block_size: bigint; - header: HeaderSDKType; - num_txs: bigint; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProof { - rootHash: Uint8Array; - data: Uint8Array; - proof?: Proof; -} -export interface TxProofProtoMsg { - typeUrl: "/tendermint.types.TxProof"; - value: Uint8Array; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofAmino { - root_hash?: string; - data?: string; - proof?: ProofAmino; -} -export interface TxProofAminoMsg { - type: "/tendermint.types.TxProof"; - value: TxProofAmino; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofSDKType { - root_hash: Uint8Array; - data: Uint8Array; - proof?: ProofSDKType; -} -function createBasePartSetHeader(): PartSetHeader { - return { - total: 0, - hash: new Uint8Array() - }; -} -export const PartSetHeader = { - typeUrl: "/tendermint.types.PartSetHeader", - encode(message: PartSetHeader, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.total !== 0) { - writer.uint32(8).uint32(message.total); - } - if (message.hash.length !== 0) { - writer.uint32(18).bytes(message.hash); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePartSetHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.uint32(); - break; - case 2: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): PartSetHeader { - return { - total: isSet(object.total) ? Number(object.total) : 0, - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array() - }; - }, - toJSON(message: PartSetHeader): unknown { - const obj: any = {}; - message.total !== undefined && (obj.total = Math.round(message.total)); - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): PartSetHeader { - const message = createBasePartSetHeader(); - message.total = object.total ?? 0; - message.hash = object.hash ?? new Uint8Array(); - return message; - }, - fromAmino(object: PartSetHeaderAmino): PartSetHeader { - const message = createBasePartSetHeader(); - if (object.total !== undefined && object.total !== null) { - message.total = object.total; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - return message; - }, - toAmino(message: PartSetHeader): PartSetHeaderAmino { - const obj: any = {}; - obj.total = message.total === 0 ? undefined : message.total; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - return obj; - }, - fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader { - return PartSetHeader.fromAmino(object.value); - }, - fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader { - return PartSetHeader.decode(message.value); - }, - toProto(message: PartSetHeader): Uint8Array { - return PartSetHeader.encode(message).finish(); - }, - toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg { - return { - typeUrl: "/tendermint.types.PartSetHeader", - value: PartSetHeader.encode(message).finish() - }; - } -}; -function createBasePart(): Part { - return { - index: 0, - bytes: new Uint8Array(), - proof: Proof.fromPartial({}) - }; -} -export const Part = { - typeUrl: "/tendermint.types.Part", - encode(message: Part, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.bytes.length !== 0) { - writer.uint32(18).bytes(message.bytes); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Part { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.bytes = reader.bytes(); - break; - case 3: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Part { - return { - index: isSet(object.index) ? Number(object.index) : 0, - bytes: isSet(object.bytes) ? bytesFromBase64(object.bytes) : new Uint8Array(), - proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : undefined - }; - }, - toJSON(message: Part): unknown { - const obj: any = {}; - message.index !== undefined && (obj.index = Math.round(message.index)); - message.bytes !== undefined && (obj.bytes = base64FromBytes(message.bytes !== undefined ? message.bytes : new Uint8Array())); - message.proof !== undefined && (obj.proof = message.proof ? Proof.toJSON(message.proof) : undefined); - return obj; - }, - fromPartial(object: Partial): Part { - const message = createBasePart(); - message.index = object.index ?? 0; - message.bytes = object.bytes ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object: PartAmino): Part { - const message = createBasePart(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.bytes !== undefined && object.bytes !== null) { - message.bytes = bytesFromBase64(object.bytes); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message: Part): PartAmino { - const obj: any = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.bytes = message.bytes ? base64FromBytes(message.bytes) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object: PartAminoMsg): Part { - return Part.fromAmino(object.value); - }, - fromProtoMsg(message: PartProtoMsg): Part { - return Part.decode(message.value); - }, - toProto(message: Part): Uint8Array { - return Part.encode(message).finish(); - }, - toProtoMsg(message: Part): PartProtoMsg { - return { - typeUrl: "/tendermint.types.Part", - value: Part.encode(message).finish() - }; - } -}; -function createBaseBlockID(): BlockID { - return { - hash: new Uint8Array(), - partSetHeader: PartSetHeader.fromPartial({}) - }; -} -export const BlockID = { - typeUrl: "/tendermint.types.BlockID", - encode(message: BlockID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.partSetHeader !== undefined) { - PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BlockID { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.partSetHeader = PartSetHeader.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BlockID { - return { - hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(), - partSetHeader: isSet(object.partSetHeader) ? PartSetHeader.fromJSON(object.partSetHeader) : undefined - }; - }, - toJSON(message: BlockID): unknown { - const obj: any = {}; - message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array())); - message.partSetHeader !== undefined && (obj.partSetHeader = message.partSetHeader ? PartSetHeader.toJSON(message.partSetHeader) : undefined); - return obj; - }, - fromPartial(object: Partial): BlockID { - const message = createBaseBlockID(); - message.hash = object.hash ?? new Uint8Array(); - message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? PartSetHeader.fromPartial(object.partSetHeader) : undefined; - return message; - }, - fromAmino(object: BlockIDAmino): BlockID { - const message = createBaseBlockID(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.part_set_header !== undefined && object.part_set_header !== null) { - message.partSetHeader = PartSetHeader.fromAmino(object.part_set_header); - } - return message; - }, - toAmino(message: BlockID): BlockIDAmino { - const obj: any = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.part_set_header = message.partSetHeader ? PartSetHeader.toAmino(message.partSetHeader) : undefined; - return obj; - }, - fromAminoMsg(object: BlockIDAminoMsg): BlockID { - return BlockID.fromAmino(object.value); - }, - fromProtoMsg(message: BlockIDProtoMsg): BlockID { - return BlockID.decode(message.value); - }, - toProto(message: BlockID): Uint8Array { - return BlockID.encode(message).finish(); - }, - toProtoMsg(message: BlockID): BlockIDProtoMsg { - return { - typeUrl: "/tendermint.types.BlockID", - value: BlockID.encode(message).finish() - }; - } -}; -function createBaseHeader(): Header { - return { - version: Consensus.fromPartial({}), - chainId: "", - height: BigInt(0), - time: Timestamp.fromPartial({}), - lastBlockId: BlockID.fromPartial({}), - lastCommitHash: new Uint8Array(), - dataHash: new Uint8Array(), - validatorsHash: new Uint8Array(), - nextValidatorsHash: new Uint8Array(), - consensusHash: new Uint8Array(), - appHash: new Uint8Array(), - lastResultsHash: new Uint8Array(), - evidenceHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const Header = { - typeUrl: "/tendermint.types.Header", - encode(message: Header, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.version !== undefined) { - Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim(); - } - if (message.lastBlockId !== undefined) { - BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); - } - if (message.lastCommitHash.length !== 0) { - writer.uint32(50).bytes(message.lastCommitHash); - } - if (message.dataHash.length !== 0) { - writer.uint32(58).bytes(message.dataHash); - } - if (message.validatorsHash.length !== 0) { - writer.uint32(66).bytes(message.validatorsHash); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(74).bytes(message.nextValidatorsHash); - } - if (message.consensusHash.length !== 0) { - writer.uint32(82).bytes(message.consensusHash); - } - if (message.appHash.length !== 0) { - writer.uint32(90).bytes(message.appHash); - } - if (message.lastResultsHash.length !== 0) { - writer.uint32(98).bytes(message.lastResultsHash); - } - if (message.evidenceHash.length !== 0) { - writer.uint32(106).bytes(message.evidenceHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(114).bytes(message.proposerAddress); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Header { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = Consensus.decode(reader, reader.uint32()); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.lastBlockId = BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.lastCommitHash = reader.bytes(); - break; - case 7: - message.dataHash = reader.bytes(); - break; - case 8: - message.validatorsHash = reader.bytes(); - break; - case 9: - message.nextValidatorsHash = reader.bytes(); - break; - case 10: - message.consensusHash = reader.bytes(); - break; - case 11: - message.appHash = reader.bytes(); - break; - case 12: - message.lastResultsHash = reader.bytes(); - break; - case 13: - message.evidenceHash = reader.bytes(); - break; - case 14: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Header { - return { - version: isSet(object.version) ? Consensus.fromJSON(object.version) : undefined, - chainId: isSet(object.chainId) ? String(object.chainId) : "", - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined, - lastBlockId: isSet(object.lastBlockId) ? BlockID.fromJSON(object.lastBlockId) : undefined, - lastCommitHash: isSet(object.lastCommitHash) ? bytesFromBase64(object.lastCommitHash) : new Uint8Array(), - dataHash: isSet(object.dataHash) ? bytesFromBase64(object.dataHash) : new Uint8Array(), - validatorsHash: isSet(object.validatorsHash) ? bytesFromBase64(object.validatorsHash) : new Uint8Array(), - nextValidatorsHash: isSet(object.nextValidatorsHash) ? bytesFromBase64(object.nextValidatorsHash) : new Uint8Array(), - consensusHash: isSet(object.consensusHash) ? bytesFromBase64(object.consensusHash) : new Uint8Array(), - appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array(), - lastResultsHash: isSet(object.lastResultsHash) ? bytesFromBase64(object.lastResultsHash) : new Uint8Array(), - evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array(), - proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array() - }; - }, - toJSON(message: Header): unknown { - const obj: any = {}; - message.version !== undefined && (obj.version = message.version ? Consensus.toJSON(message.version) : undefined); - message.chainId !== undefined && (obj.chainId = message.chainId); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString()); - message.lastBlockId !== undefined && (obj.lastBlockId = message.lastBlockId ? BlockID.toJSON(message.lastBlockId) : undefined); - message.lastCommitHash !== undefined && (obj.lastCommitHash = base64FromBytes(message.lastCommitHash !== undefined ? message.lastCommitHash : new Uint8Array())); - message.dataHash !== undefined && (obj.dataHash = base64FromBytes(message.dataHash !== undefined ? message.dataHash : new Uint8Array())); - message.validatorsHash !== undefined && (obj.validatorsHash = base64FromBytes(message.validatorsHash !== undefined ? message.validatorsHash : new Uint8Array())); - message.nextValidatorsHash !== undefined && (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array())); - message.consensusHash !== undefined && (obj.consensusHash = base64FromBytes(message.consensusHash !== undefined ? message.consensusHash : new Uint8Array())); - message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array())); - message.lastResultsHash !== undefined && (obj.lastResultsHash = base64FromBytes(message.lastResultsHash !== undefined ? message.lastResultsHash : new Uint8Array())); - message.evidenceHash !== undefined && (obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array())); - message.proposerAddress !== undefined && (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial
): Header { - const message = createBaseHeader(); - message.version = object.version !== undefined && object.version !== null ? Consensus.fromPartial(object.version) : undefined; - message.chainId = object.chainId ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined; - message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? BlockID.fromPartial(object.lastBlockId) : undefined; - message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); - message.dataHash = object.dataHash ?? new Uint8Array(); - message.validatorsHash = object.validatorsHash ?? new Uint8Array(); - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.consensusHash = object.consensusHash ?? new Uint8Array(); - message.appHash = object.appHash ?? new Uint8Array(); - message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object: HeaderAmino): Header { - const message = createBaseHeader(); - if (object.version !== undefined && object.version !== null) { - message.version = Consensus.fromAmino(object.version); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = Timestamp.fromAmino(object.time); - } - if (object.last_block_id !== undefined && object.last_block_id !== null) { - message.lastBlockId = BlockID.fromAmino(object.last_block_id); - } - if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { - message.lastCommitHash = bytesFromBase64(object.last_commit_hash); - } - if (object.data_hash !== undefined && object.data_hash !== null) { - message.dataHash = bytesFromBase64(object.data_hash); - } - if (object.validators_hash !== undefined && object.validators_hash !== null) { - message.validatorsHash = bytesFromBase64(object.validators_hash); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.consensus_hash !== undefined && object.consensus_hash !== null) { - message.consensusHash = bytesFromBase64(object.consensus_hash); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - if (object.last_results_hash !== undefined && object.last_results_hash !== null) { - message.lastResultsHash = bytesFromBase64(object.last_results_hash); - } - if (object.evidence_hash !== undefined && object.evidence_hash !== null) { - message.evidenceHash = bytesFromBase64(object.evidence_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message: Header): HeaderAmino { - const obj: any = {}; - obj.version = message.version ? Consensus.toAmino(message.version) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(message.time) : undefined; - obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; - obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; - obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; - obj.validators_hash = message.validatorsHash ? base64FromBytes(message.validatorsHash) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.consensus_hash = message.consensusHash ? base64FromBytes(message.consensusHash) : undefined; - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - obj.last_results_hash = message.lastResultsHash ? base64FromBytes(message.lastResultsHash) : undefined; - obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object: HeaderAminoMsg): Header { - return Header.fromAmino(object.value); - }, - fromProtoMsg(message: HeaderProtoMsg): Header { - return Header.decode(message.value); - }, - toProto(message: Header): Uint8Array { - return Header.encode(message).finish(); - }, - toProtoMsg(message: Header): HeaderProtoMsg { - return { - typeUrl: "/tendermint.types.Header", - value: Header.encode(message).finish() - }; - } -}; -function createBaseData(): Data { - return { - txs: [] - }; -} -export const Data = { - typeUrl: "/tendermint.types.Data", - encode(message: Data, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.txs) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Data { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Data { - return { - txs: Array.isArray(object?.txs) ? object.txs.map((e: any) => bytesFromBase64(e)) : [] - }; - }, - toJSON(message: Data): unknown { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e !== undefined ? e : new Uint8Array())); - } else { - obj.txs = []; - } - return obj; - }, - fromPartial(object: Partial): Data { - const message = createBaseData(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object: DataAmino): Data { - const message = createBaseData(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message: Data): DataAmino { - const obj: any = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object: DataAminoMsg): Data { - return Data.fromAmino(object.value); - }, - fromProtoMsg(message: DataProtoMsg): Data { - return Data.decode(message.value); - }, - toProto(message: Data): Uint8Array { - return Data.encode(message).finish(); - }, - toProtoMsg(message: Data): DataProtoMsg { - return { - typeUrl: "/tendermint.types.Data", - value: Data.encode(message).finish() - }; - } -}; -function createBaseVote(): Vote { - return { - type: 0, - height: BigInt(0), - round: 0, - blockId: BlockID.fromPartial({}), - timestamp: Timestamp.fromPartial({}), - validatorAddress: new Uint8Array(), - validatorIndex: 0, - signature: new Uint8Array() - }; -} -export const Vote = { - typeUrl: "/tendermint.types.Vote", - encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(42).fork()).ldelim(); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(50).bytes(message.validatorAddress); - } - if (message.validatorIndex !== 0) { - writer.uint32(56).int32(message.validatorIndex); - } - if (message.signature.length !== 0) { - writer.uint32(66).bytes(message.signature); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Vote { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = (reader.int32() as any); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 5: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.validatorAddress = reader.bytes(); - break; - case 7: - message.validatorIndex = reader.int32(); - break; - case 8: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Vote { - return { - type: isSet(object.type) ? signedMsgTypeFromJSON(object.type) : -1, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - round: isSet(object.round) ? Number(object.round) : 0, - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined, - validatorAddress: isSet(object.validatorAddress) ? bytesFromBase64(object.validatorAddress) : new Uint8Array(), - validatorIndex: isSet(object.validatorIndex) ? Number(object.validatorIndex) : 0, - signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array() - }; - }, - toJSON(message: Vote): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = signedMsgTypeToJSON(message.type)); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.round !== undefined && (obj.round = Math.round(message.round)); - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - message.validatorAddress !== undefined && (obj.validatorAddress = base64FromBytes(message.validatorAddress !== undefined ? message.validatorAddress : new Uint8Array())); - message.validatorIndex !== undefined && (obj.validatorIndex = Math.round(message.validatorIndex)); - message.signature !== undefined && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Vote { - const message = createBaseVote(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.validatorIndex = object.validatorIndex ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object: VoteAmino): Vote { - const message = createBaseVote(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = bytesFromBase64(object.validator_address); - } - if (object.validator_index !== undefined && object.validator_index !== null) { - message.validatorIndex = object.validator_index; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message: Vote): VoteAmino { - const obj: any = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; - obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object: VoteAminoMsg): Vote { - return Vote.fromAmino(object.value); - }, - fromProtoMsg(message: VoteProtoMsg): Vote { - return Vote.decode(message.value); - }, - toProto(message: Vote): Uint8Array { - return Vote.encode(message).finish(); - }, - toProtoMsg(message: Vote): VoteProtoMsg { - return { - typeUrl: "/tendermint.types.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseCommit(): Commit { - return { - height: BigInt(0), - round: 0, - blockId: BlockID.fromPartial({}), - signatures: [] - }; -} -export const Commit = { - typeUrl: "/tendermint.types.Commit", - encode(message: Commit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(16).int32(message.round); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.signatures) { - CommitSig.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Commit { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.round = reader.int32(); - break; - case 3: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 4: - message.signatures.push(CommitSig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Commit { - return { - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - round: isSet(object.round) ? Number(object.round) : 0, - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => CommitSig.fromJSON(e)) : [] - }; - }, - toJSON(message: Commit): unknown { - const obj: any = {}; - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.round !== undefined && (obj.round = Math.round(message.round)); - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? CommitSig.toJSON(e) : undefined); - } else { - obj.signatures = []; - } - return obj; - }, - fromPartial(object: Partial): Commit { - const message = createBaseCommit(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.signatures = object.signatures?.map(e => CommitSig.fromPartial(e)) || []; - return message; - }, - fromAmino(object: CommitAmino): Commit { - const message = createBaseCommit(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - message.signatures = object.signatures?.map(e => CommitSig.fromAmino(e)) || []; - return message; - }, - toAmino(message: Commit): CommitAmino { - const obj: any = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? CommitSig.toAmino(e) : undefined); - } else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object: CommitAminoMsg): Commit { - return Commit.fromAmino(object.value); - }, - fromProtoMsg(message: CommitProtoMsg): Commit { - return Commit.decode(message.value); - }, - toProto(message: Commit): Uint8Array { - return Commit.encode(message).finish(); - }, - toProtoMsg(message: Commit): CommitProtoMsg { - return { - typeUrl: "/tendermint.types.Commit", - value: Commit.encode(message).finish() - }; - } -}; -function createBaseCommitSig(): CommitSig { - return { - blockIdFlag: 0, - validatorAddress: new Uint8Array(), - timestamp: Timestamp.fromPartial({}), - signature: new Uint8Array() - }; -} -export const CommitSig = { - typeUrl: "/tendermint.types.CommitSig", - encode(message: CommitSig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockIdFlag !== 0) { - writer.uint32(8).int32(message.blockIdFlag); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(18).bytes(message.validatorAddress); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(26).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(34).bytes(message.signature); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): CommitSig { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitSig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockIdFlag = (reader.int32() as any); - break; - case 2: - message.validatorAddress = reader.bytes(); - break; - case 3: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): CommitSig { - return { - blockIdFlag: isSet(object.blockIdFlag) ? blockIDFlagFromJSON(object.blockIdFlag) : -1, - validatorAddress: isSet(object.validatorAddress) ? bytesFromBase64(object.validatorAddress) : new Uint8Array(), - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined, - signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array() - }; - }, - toJSON(message: CommitSig): unknown { - const obj: any = {}; - message.blockIdFlag !== undefined && (obj.blockIdFlag = blockIDFlagToJSON(message.blockIdFlag)); - message.validatorAddress !== undefined && (obj.validatorAddress = base64FromBytes(message.validatorAddress !== undefined ? message.validatorAddress : new Uint8Array())); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - message.signature !== undefined && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): CommitSig { - const message = createBaseCommitSig(); - message.blockIdFlag = object.blockIdFlag ?? 0; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object: CommitSigAmino): CommitSig { - const message = createBaseCommitSig(); - if (object.block_id_flag !== undefined && object.block_id_flag !== null) { - message.blockIdFlag = object.block_id_flag; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = bytesFromBase64(object.validator_address); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message: CommitSig): CommitSigAmino { - const obj: any = {}; - obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; - obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object: CommitSigAminoMsg): CommitSig { - return CommitSig.fromAmino(object.value); - }, - fromProtoMsg(message: CommitSigProtoMsg): CommitSig { - return CommitSig.decode(message.value); - }, - toProto(message: CommitSig): Uint8Array { - return CommitSig.encode(message).finish(); - }, - toProtoMsg(message: CommitSig): CommitSigProtoMsg { - return { - typeUrl: "/tendermint.types.CommitSig", - value: CommitSig.encode(message).finish() - }; - } -}; -function createBaseProposal(): Proposal { - return { - type: 0, - height: BigInt(0), - round: 0, - polRound: 0, - blockId: BlockID.fromPartial({}), - timestamp: Timestamp.fromPartial({}), - signature: new Uint8Array() - }; -} -export const Proposal = { - typeUrl: "/tendermint.types.Proposal", - encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.polRound !== 0) { - writer.uint32(32).int32(message.polRound); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(message.timestamp, writer.uint32(50).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(58).bytes(message.signature); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Proposal { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = (reader.int32() as any); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.polRound = reader.int32(); - break; - case 5: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.timestamp = Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Proposal { - return { - type: isSet(object.type) ? signedMsgTypeFromJSON(object.type) : -1, - height: isSet(object.height) ? BigInt(object.height.toString()) : BigInt(0), - round: isSet(object.round) ? Number(object.round) : 0, - polRound: isSet(object.polRound) ? Number(object.polRound) : 0, - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined, - signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array() - }; - }, - toJSON(message: Proposal): unknown { - const obj: any = {}; - message.type !== undefined && (obj.type = signedMsgTypeToJSON(message.type)); - message.height !== undefined && (obj.height = (message.height || BigInt(0)).toString()); - message.round !== undefined && (obj.round = Math.round(message.round)); - message.polRound !== undefined && (obj.polRound = Math.round(message.polRound)); - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.timestamp !== undefined && (obj.timestamp = fromTimestamp(message.timestamp).toISOString()); - message.signature !== undefined && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array())); - return obj; - }, - fromPartial(object: Partial): Proposal { - const message = createBaseProposal(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.polRound = object.polRound ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? Timestamp.fromPartial(object.timestamp) : undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object: ProposalAmino): Proposal { - const message = createBaseProposal(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.pol_round !== undefined && object.pol_round !== null) { - message.polRound = object.pol_round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = Timestamp.fromAmino(object.timestamp); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message: Proposal): ProposalAmino { - const obj: any = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.pol_round = message.polRound === 0 ? undefined : message.polRound; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(message.timestamp) : undefined; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object: ProposalAminoMsg): Proposal { - return Proposal.fromAmino(object.value); - }, - fromProtoMsg(message: ProposalProtoMsg): Proposal { - return Proposal.decode(message.value); - }, - toProto(message: Proposal): Uint8Array { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message: Proposal): ProposalProtoMsg { - return { - typeUrl: "/tendermint.types.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseSignedHeader(): SignedHeader { - return { - header: undefined, - commit: undefined - }; -} -export const SignedHeader = { - typeUrl: "/tendermint.types.SignedHeader", - encode(message: SignedHeader, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.commit !== undefined) { - Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignedHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.commit = Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SignedHeader { - return { - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - commit: isSet(object.commit) ? Commit.fromJSON(object.commit) : undefined - }; - }, - toJSON(message: SignedHeader): unknown { - const obj: any = {}; - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - message.commit !== undefined && (obj.commit = message.commit ? Commit.toJSON(message.commit) : undefined); - return obj; - }, - fromPartial(object: Partial): SignedHeader { - const message = createBaseSignedHeader(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? Commit.fromPartial(object.commit) : undefined; - return message; - }, - fromAmino(object: SignedHeaderAmino): SignedHeader { - const message = createBaseSignedHeader(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = Commit.fromAmino(object.commit); - } - return message; - }, - toAmino(message: SignedHeader): SignedHeaderAmino { - const obj: any = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.commit = message.commit ? Commit.toAmino(message.commit) : undefined; - return obj; - }, - fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader { - return SignedHeader.fromAmino(object.value); - }, - fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader { - return SignedHeader.decode(message.value); - }, - toProto(message: SignedHeader): Uint8Array { - return SignedHeader.encode(message).finish(); - }, - toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg { - return { - typeUrl: "/tendermint.types.SignedHeader", - value: SignedHeader.encode(message).finish() - }; - } -}; -function createBaseLightBlock(): LightBlock { - return { - signedHeader: undefined, - validatorSet: undefined - }; -} -export const LightBlock = { - typeUrl: "/tendermint.types.LightBlock", - encode(message: LightBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.signedHeader !== undefined) { - SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorSet !== undefined) { - ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): LightBlock { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedHeader = SignedHeader.decode(reader, reader.uint32()); - break; - case 2: - message.validatorSet = ValidatorSet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): LightBlock { - return { - signedHeader: isSet(object.signedHeader) ? SignedHeader.fromJSON(object.signedHeader) : undefined, - validatorSet: isSet(object.validatorSet) ? ValidatorSet.fromJSON(object.validatorSet) : undefined - }; - }, - toJSON(message: LightBlock): unknown { - const obj: any = {}; - message.signedHeader !== undefined && (obj.signedHeader = message.signedHeader ? SignedHeader.toJSON(message.signedHeader) : undefined); - message.validatorSet !== undefined && (obj.validatorSet = message.validatorSet ? ValidatorSet.toJSON(message.validatorSet) : undefined); - return obj; - }, - fromPartial(object: Partial): LightBlock { - const message = createBaseLightBlock(); - message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? SignedHeader.fromPartial(object.signedHeader) : undefined; - message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? ValidatorSet.fromPartial(object.validatorSet) : undefined; - return message; - }, - fromAmino(object: LightBlockAmino): LightBlock { - const message = createBaseLightBlock(); - if (object.signed_header !== undefined && object.signed_header !== null) { - message.signedHeader = SignedHeader.fromAmino(object.signed_header); - } - if (object.validator_set !== undefined && object.validator_set !== null) { - message.validatorSet = ValidatorSet.fromAmino(object.validator_set); - } - return message; - }, - toAmino(message: LightBlock): LightBlockAmino { - const obj: any = {}; - obj.signed_header = message.signedHeader ? SignedHeader.toAmino(message.signedHeader) : undefined; - obj.validator_set = message.validatorSet ? ValidatorSet.toAmino(message.validatorSet) : undefined; - return obj; - }, - fromAminoMsg(object: LightBlockAminoMsg): LightBlock { - return LightBlock.fromAmino(object.value); - }, - fromProtoMsg(message: LightBlockProtoMsg): LightBlock { - return LightBlock.decode(message.value); - }, - toProto(message: LightBlock): Uint8Array { - return LightBlock.encode(message).finish(); - }, - toProtoMsg(message: LightBlock): LightBlockProtoMsg { - return { - typeUrl: "/tendermint.types.LightBlock", - value: LightBlock.encode(message).finish() - }; - } -}; -function createBaseBlockMeta(): BlockMeta { - return { - blockId: BlockID.fromPartial({}), - blockSize: BigInt(0), - header: Header.fromPartial({}), - numTxs: BigInt(0) - }; -} -export const BlockMeta = { - typeUrl: "/tendermint.types.BlockMeta", - encode(message: BlockMeta, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.blockSize !== BigInt(0)) { - writer.uint32(16).int64(message.blockSize); - } - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(26).fork()).ldelim(); - } - if (message.numTxs !== BigInt(0)) { - writer.uint32(32).int64(message.numTxs); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockMeta(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.blockSize = reader.int64(); - break; - case 3: - message.header = Header.decode(reader, reader.uint32()); - break; - case 4: - message.numTxs = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): BlockMeta { - return { - blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined, - blockSize: isSet(object.blockSize) ? BigInt(object.blockSize.toString()) : BigInt(0), - header: isSet(object.header) ? Header.fromJSON(object.header) : undefined, - numTxs: isSet(object.numTxs) ? BigInt(object.numTxs.toString()) : BigInt(0) - }; - }, - toJSON(message: BlockMeta): unknown { - const obj: any = {}; - message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined); - message.blockSize !== undefined && (obj.blockSize = (message.blockSize || BigInt(0)).toString()); - message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined); - message.numTxs !== undefined && (obj.numTxs = (message.numTxs || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): BlockMeta { - const message = createBaseBlockMeta(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); - return message; - }, - fromAmino(object: BlockMetaAmino): BlockMeta { - const message = createBaseBlockMeta(); - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block_size !== undefined && object.block_size !== null) { - message.blockSize = BigInt(object.block_size); - } - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.num_txs !== undefined && object.num_txs !== null) { - message.numTxs = BigInt(object.num_txs); - } - return message; - }, - toAmino(message: BlockMeta): BlockMetaAmino { - const obj: any = {}; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; - return obj; - }, - fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta { - return BlockMeta.fromAmino(object.value); - }, - fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta { - return BlockMeta.decode(message.value); - }, - toProto(message: BlockMeta): Uint8Array { - return BlockMeta.encode(message).finish(); - }, - toProtoMsg(message: BlockMeta): BlockMetaProtoMsg { - return { - typeUrl: "/tendermint.types.BlockMeta", - value: BlockMeta.encode(message).finish() - }; - } -}; -function createBaseTxProof(): TxProof { - return { - rootHash: new Uint8Array(), - data: new Uint8Array(), - proof: undefined - }; -} -export const TxProof = { - typeUrl: "/tendermint.types.TxProof", - encode(message: TxProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.rootHash.length !== 0) { - writer.uint32(10).bytes(message.rootHash); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): TxProof { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rootHash = reader.bytes(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): TxProof { - return { - rootHash: isSet(object.rootHash) ? bytesFromBase64(object.rootHash) : new Uint8Array(), - data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(), - proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : undefined - }; - }, - toJSON(message: TxProof): unknown { - const obj: any = {}; - message.rootHash !== undefined && (obj.rootHash = base64FromBytes(message.rootHash !== undefined ? message.rootHash : new Uint8Array())); - message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array())); - message.proof !== undefined && (obj.proof = message.proof ? Proof.toJSON(message.proof) : undefined); - return obj; - }, - fromPartial(object: Partial): TxProof { - const message = createBaseTxProof(); - message.rootHash = object.rootHash ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object: TxProofAmino): TxProof { - const message = createBaseTxProof(); - if (object.root_hash !== undefined && object.root_hash !== null) { - message.rootHash = bytesFromBase64(object.root_hash); - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message: TxProof): TxProofAmino { - const obj: any = {}; - obj.root_hash = message.rootHash ? base64FromBytes(message.rootHash) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object: TxProofAminoMsg): TxProof { - return TxProof.fromAmino(object.value); - }, - fromProtoMsg(message: TxProofProtoMsg): TxProof { - return TxProof.decode(message.value); - }, - toProto(message: TxProof): Uint8Array { - return TxProof.encode(message).finish(); - }, - toProtoMsg(message: TxProof): TxProofProtoMsg { - return { - typeUrl: "/tendermint.types.TxProof", - value: TxProof.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/types/validator.ts b/packages/api/src/codegen/tendermint/types/validator.ts deleted file mode 100644 index 67d12b64..00000000 --- a/packages/api/src/codegen/tendermint/types/validator.ts +++ /dev/null @@ -1,381 +0,0 @@ -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet, bytesFromBase64, base64FromBytes } from "../../helpers"; -export interface ValidatorSet { - validators: Validator[]; - proposer?: Validator; - totalVotingPower: bigint; -} -export interface ValidatorSetProtoMsg { - typeUrl: "/tendermint.types.ValidatorSet"; - value: Uint8Array; -} -export interface ValidatorSetAmino { - validators?: ValidatorAmino[]; - proposer?: ValidatorAmino; - total_voting_power?: string; -} -export interface ValidatorSetAminoMsg { - type: "/tendermint.types.ValidatorSet"; - value: ValidatorSetAmino; -} -export interface ValidatorSetSDKType { - validators: ValidatorSDKType[]; - proposer?: ValidatorSDKType; - total_voting_power: bigint; -} -export interface Validator { - address: Uint8Array; - pubKey: PublicKey; - votingPower: bigint; - proposerPriority: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.types.Validator"; - value: Uint8Array; -} -export interface ValidatorAmino { - address?: string; - pub_key?: PublicKeyAmino; - voting_power?: string; - proposer_priority?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.types.Validator"; - value: ValidatorAmino; -} -export interface ValidatorSDKType { - address: Uint8Array; - pub_key: PublicKeySDKType; - voting_power: bigint; - proposer_priority: bigint; -} -export interface SimpleValidator { - pubKey?: PublicKey; - votingPower: bigint; -} -export interface SimpleValidatorProtoMsg { - typeUrl: "/tendermint.types.SimpleValidator"; - value: Uint8Array; -} -export interface SimpleValidatorAmino { - pub_key?: PublicKeyAmino; - voting_power?: string; -} -export interface SimpleValidatorAminoMsg { - type: "/tendermint.types.SimpleValidator"; - value: SimpleValidatorAmino; -} -export interface SimpleValidatorSDKType { - pub_key?: PublicKeySDKType; - voting_power: bigint; -} -function createBaseValidatorSet(): ValidatorSet { - return { - validators: [], - proposer: undefined, - totalVotingPower: BigInt(0) - }; -} -export const ValidatorSet = { - typeUrl: "/tendermint.types.ValidatorSet", - encode(message: ValidatorSet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.proposer !== undefined) { - Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.proposer = Validator.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): ValidatorSet { - return { - validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [], - proposer: isSet(object.proposer) ? Validator.fromJSON(object.proposer) : undefined, - totalVotingPower: isSet(object.totalVotingPower) ? BigInt(object.totalVotingPower.toString()) : BigInt(0) - }; - }, - toJSON(message: ValidatorSet): unknown { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined); - } else { - obj.validators = []; - } - message.proposer !== undefined && (obj.proposer = message.proposer ? Validator.toJSON(message.proposer) : undefined); - message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): ValidatorSet { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.proposer = object.proposer !== undefined && object.proposer !== null ? Validator.fromPartial(object.proposer) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorSetAmino): ValidatorSet { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = Validator.fromAmino(object.proposer); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message: ValidatorSet): ValidatorSetAmino { - const obj: any = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } else { - obj.validators = message.validators; - } - obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet { - return ValidatorSet.fromAmino(object.value); - }, - fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet { - return ValidatorSet.decode(message.value); - }, - toProto(message: ValidatorSet): Uint8Array { - return ValidatorSet.encode(message).finish(); - }, - toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg { - return { - typeUrl: "/tendermint.types.ValidatorSet", - value: ValidatorSet.encode(message).finish() - }; - } -}; -function createBaseValidator(): Validator { - return { - address: new Uint8Array(), - pubKey: PublicKey.fromPartial({}), - votingPower: BigInt(0), - proposerPriority: BigInt(0) - }; -} -export const Validator = { - typeUrl: "/tendermint.types.Validator", - encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(24).int64(message.votingPower); - } - if (message.proposerPriority !== BigInt(0)) { - writer.uint32(32).int64(message.proposerPriority); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Validator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 2: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 3: - message.votingPower = reader.int64(); - break; - case 4: - message.proposerPriority = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Validator { - return { - address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(), - pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined, - votingPower: isSet(object.votingPower) ? BigInt(object.votingPower.toString()) : BigInt(0), - proposerPriority: isSet(object.proposerPriority) ? BigInt(object.proposerPriority.toString()) : BigInt(0) - }; - }, - toJSON(message: Validator): unknown { - const obj: any = {}; - message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array())); - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? PublicKey.toJSON(message.pubKey) : undefined); - message.votingPower !== undefined && (obj.votingPower = (message.votingPower || BigInt(0)).toString()); - message.proposerPriority !== undefined && (obj.proposerPriority = (message.proposerPriority || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Validator { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ValidatorAmino): Validator { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - if (object.proposer_priority !== undefined && object.proposer_priority !== null) { - message.proposerPriority = BigInt(object.proposer_priority); - } - return message; - }, - toAmino(message: Validator): ValidatorAmino { - const obj: any = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ValidatorAminoMsg): Validator { - return Validator.fromAmino(object.value); - }, - fromProtoMsg(message: ValidatorProtoMsg): Validator { - return Validator.decode(message.value); - }, - toProto(message: Validator): Uint8Array { - return Validator.encode(message).finish(); - }, - toProtoMsg(message: Validator): ValidatorProtoMsg { - return { - typeUrl: "/tendermint.types.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseSimpleValidator(): SimpleValidator { - return { - pubKey: undefined, - votingPower: BigInt(0) - }; -} -export const SimpleValidator = { - typeUrl: "/tendermint.types.SimpleValidator", - encode(message: SimpleValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(16).int64(message.votingPower); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimpleValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.votingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): SimpleValidator { - return { - pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined, - votingPower: isSet(object.votingPower) ? BigInt(object.votingPower.toString()) : BigInt(0) - }; - }, - toJSON(message: SimpleValidator): unknown { - const obj: any = {}; - message.pubKey !== undefined && (obj.pubKey = message.pubKey ? PublicKey.toJSON(message.pubKey) : undefined); - message.votingPower !== undefined && (obj.votingPower = (message.votingPower || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): SimpleValidator { - const message = createBaseSimpleValidator(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object: SimpleValidatorAmino): SimpleValidator { - const message = createBaseSimpleValidator(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - return message; - }, - toAmino(message: SimpleValidator): SimpleValidatorAmino { - const obj: any = {}; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator { - return SimpleValidator.fromAmino(object.value); - }, - fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator { - return SimpleValidator.decode(message.value); - }, - toProto(message: SimpleValidator): Uint8Array { - return SimpleValidator.encode(message).finish(); - }, - toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg { - return { - typeUrl: "/tendermint.types.SimpleValidator", - value: SimpleValidator.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/tendermint/version/types.ts b/packages/api/src/codegen/tendermint/version/types.ts deleted file mode 100644 index 46480faa..00000000 --- a/packages/api/src/codegen/tendermint/version/types.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -import { isSet } from "../../helpers"; -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface App { - protocol: bigint; - software: string; -} -export interface AppProtoMsg { - typeUrl: "/tendermint.version.App"; - value: Uint8Array; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppAmino { - protocol?: string; - software?: string; -} -export interface AppAminoMsg { - type: "/tendermint.version.App"; - value: AppAmino; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppSDKType { - protocol: bigint; - software: string; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface Consensus { - block: bigint; - app: bigint; -} -export interface ConsensusProtoMsg { - typeUrl: "/tendermint.version.Consensus"; - value: Uint8Array; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusAmino { - block?: string; - app?: string; -} -export interface ConsensusAminoMsg { - type: "/tendermint.version.Consensus"; - value: ConsensusAmino; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusSDKType { - block: bigint; - app: bigint; -} -function createBaseApp(): App { - return { - protocol: BigInt(0), - software: "" - }; -} -export const App = { - typeUrl: "/tendermint.version.App", - encode(message: App, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.protocol !== BigInt(0)) { - writer.uint32(8).uint64(message.protocol); - } - if (message.software !== "") { - writer.uint32(18).string(message.software); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): App { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseApp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocol = reader.uint64(); - break; - case 2: - message.software = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): App { - return { - protocol: isSet(object.protocol) ? BigInt(object.protocol.toString()) : BigInt(0), - software: isSet(object.software) ? String(object.software) : "" - }; - }, - toJSON(message: App): unknown { - const obj: any = {}; - message.protocol !== undefined && (obj.protocol = (message.protocol || BigInt(0)).toString()); - message.software !== undefined && (obj.software = message.software); - return obj; - }, - fromPartial(object: Partial): App { - const message = createBaseApp(); - message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); - message.software = object.software ?? ""; - return message; - }, - fromAmino(object: AppAmino): App { - const message = createBaseApp(); - if (object.protocol !== undefined && object.protocol !== null) { - message.protocol = BigInt(object.protocol); - } - if (object.software !== undefined && object.software !== null) { - message.software = object.software; - } - return message; - }, - toAmino(message: App): AppAmino { - const obj: any = {}; - obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; - obj.software = message.software === "" ? undefined : message.software; - return obj; - }, - fromAminoMsg(object: AppAminoMsg): App { - return App.fromAmino(object.value); - }, - fromProtoMsg(message: AppProtoMsg): App { - return App.decode(message.value); - }, - toProto(message: App): Uint8Array { - return App.encode(message).finish(); - }, - toProtoMsg(message: App): AppProtoMsg { - return { - typeUrl: "/tendermint.version.App", - value: App.encode(message).finish() - }; - } -}; -function createBaseConsensus(): Consensus { - return { - block: BigInt(0), - app: BigInt(0) - }; -} -export const Consensus = { - typeUrl: "/tendermint.version.Consensus", - encode(message: Consensus, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { - if (message.block !== BigInt(0)) { - writer.uint32(8).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(16).uint64(message.app); - } - return writer; - }, - decode(input: BinaryReader | Uint8Array, length?: number): Consensus { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensus(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = reader.uint64(); - break; - case 2: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromJSON(object: any): Consensus { - return { - block: isSet(object.block) ? BigInt(object.block.toString()) : BigInt(0), - app: isSet(object.app) ? BigInt(object.app.toString()) : BigInt(0) - }; - }, - toJSON(message: Consensus): unknown { - const obj: any = {}; - message.block !== undefined && (obj.block = (message.block || BigInt(0)).toString()); - message.app !== undefined && (obj.app = (message.app || BigInt(0)).toString()); - return obj; - }, - fromPartial(object: Partial): Consensus { - const message = createBaseConsensus(); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object: ConsensusAmino): Consensus { - const message = createBaseConsensus(); - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message: Consensus): ConsensusAmino { - const obj: any = {}; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object: ConsensusAminoMsg): Consensus { - return Consensus.fromAmino(object.value); - }, - fromProtoMsg(message: ConsensusProtoMsg): Consensus { - return Consensus.decode(message.value); - }, - toProto(message: Consensus): Uint8Array { - return Consensus.encode(message).finish(); - }, - toProtoMsg(message: Consensus): ConsensusProtoMsg { - return { - typeUrl: "/tendermint.version.Consensus", - value: Consensus.encode(message).finish() - }; - } -}; \ No newline at end of file diff --git a/packages/api/src/codegen/utf8.ts b/packages/api/src/codegen/utf8.ts deleted file mode 100644 index 3e09013c..00000000 --- a/packages/api/src/codegen/utf8.ts +++ /dev/null @@ -1,148 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ - - -// Copyright (c) 2016, Daniel Wirtz All rights reserved. - -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: - -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. - -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -"use strict"; - -/** - * Calculates the UTF8 byte length of a string. - * @param {string} string String - * @returns {number} Byte length - */ -export function utf8Length(str: string) { - let len = 0, - c = 0; - for (let i = 0; i < str.length; ++i) { - c = str.charCodeAt(i); - if (c < 128) len += 1; - else if (c < 2048) len += 2; - else if ( - (c & 0xfc00) === 0xd800 && - (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00 - ) { - ++i; - len += 4; - } else len += 3; - } - return len; -} - -/** - * Reads UTF8 bytes as a string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} String read - */ -export function utf8Read( - buffer: ArrayLike, - start: number, - end: number -) { - const len = end - start; - if (len < 1) return ""; - const chunk = []; - let parts: string[] = [], - i = 0, // char offset - t; // temporary - while (start < end) { - t = buffer[start++]; - if (t < 128) chunk[i++] = t; - else if (t > 191 && t < 224) - chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); - else if (t > 239 && t < 365) { - t = - (((t & 7) << 18) | - ((buffer[start++] & 63) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63)) - - 0x10000; - chunk[i++] = 0xd800 + (t >> 10); - chunk[i++] = 0xdc00 + (t & 1023); - } else - chunk[i++] = - ((t & 15) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63); - if (i > 8191) { - (parts || (parts = [])).push(String.fromCharCode(...chunk)); - i = 0; - } - } - if (parts) { - if (i) parts.push(String.fromCharCode(...chunk.slice(0, i))); - return parts.join(""); - } - return String.fromCharCode(...chunk.slice(0, i)); -} - -/** - * Writes a string as UTF8 bytes. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Bytes written - */ -export function utf8Write( - str: string, - buffer: Uint8Array | Array, - offset: number -) { - const start = offset; - let c1, // character 1 - c2; // character 2 - for (let i = 0; i < str.length; ++i) { - c1 = str.charCodeAt(i); - if (c1 < 128) { - buffer[offset++] = c1; - } else if (c1 < 2048) { - buffer[offset++] = (c1 >> 6) | 192; - buffer[offset++] = (c1 & 63) | 128; - } else if ( - (c1 & 0xfc00) === 0xd800 && - ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00 - ) { - c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); - ++i; - buffer[offset++] = (c1 >> 18) | 240; - buffer[offset++] = ((c1 >> 12) & 63) | 128; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } else { - buffer[offset++] = (c1 >> 12) | 224; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } - } - return offset - start; -} diff --git a/packages/api/src/codegen/varint.ts b/packages/api/src/codegen/varint.ts deleted file mode 100644 index 02a02185..00000000 --- a/packages/api/src/codegen/varint.ts +++ /dev/null @@ -1,488 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ - - -// Copyright 2008 Google Inc. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// Code generated by the Protocol Buffer compiler is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. - -/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ - -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export function varint64read(this: ReaderLike): [number, number] { - let lowBits = 0; - let highBits = 0; - - for (let shift = 0; shift < 28; shift += 7) { - let b = this.buf[this.pos++]; - lowBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - - let middleByte = this.buf[this.pos++]; - - // last four bits of the first 32 bit number - lowBits |= (middleByte & 0x0f) << 28; - - // 3 upper bits are part of the next 32 bit number - highBits = (middleByte & 0x70) >> 4; - - if ((middleByte & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - - for (let shift = 3; shift <= 31; shift += 7) { - let b = this.buf[this.pos++]; - highBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - - throw new Error("invalid varint"); -} - -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export function varint64write(lo: number, hi: number, bytes: number[]): void { - for (let i = 0; i < 28; i = i + 7) { - const shift = lo >>> i; - const hasNext = !(shift >>> 7 == 0 && hi == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - - const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); - const hasMoreBits = !(hi >> 3 == 0); - bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); - - if (!hasMoreBits) { - return; - } - - for (let i = 3; i < 31; i = i + 7) { - const shift = hi >>> i; - const hasNext = !(shift >>> 7 == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - - bytes.push((hi >>> 31) & 0x01); -} - -// constants for binary math -const TWO_PWR_32_DBL = 0x100000000; - -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64FromString(dec: string): { lo: number; hi: number } { - // Check for minus sign. - const minus = dec[0] === "-"; - if (minus) { - dec = dec.slice(1); - } - - // Work 6 decimal digits at a time, acting like we're converting base 1e6 - // digits to binary. This is safe to do with floating point math because - // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. - const base = 1e6; - let lowBits = 0; - let highBits = 0; - - function add1e6digit(begin: number, end?: number) { - // Note: Number('') is 0. - const digit1e6 = Number(dec.slice(begin, end)); - highBits *= base; - lowBits = lowBits * base + digit1e6; - // Carry bits from lowBits to - if (lowBits >= TWO_PWR_32_DBL) { - highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); - lowBits = lowBits % TWO_PWR_32_DBL; - } - } - - add1e6digit(-24, -18); - add1e6digit(-18, -12); - add1e6digit(-12, -6); - add1e6digit(-6); - return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); -} - -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64ToString(lo: number, hi: number): string { - let bits = newBits(lo, hi); - // If we're treating the input as a signed value and the high bit is set, do - // a manual two's complement conversion before the decimal conversion. - const negative = bits.hi & 0x80000000; - if (negative) { - bits = negate(bits.lo, bits.hi); - } - const result = uInt64ToString(bits.lo, bits.hi); - return negative ? "-" + result : result; -} - -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function uInt64ToString(lo: number, hi: number): string { - ({ lo, hi } = toUnsigned(lo, hi)); - // Skip the expensive conversion if the number is small enough to use the - // built-in conversions. - // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with - // highBits <= 0x1FFFFF can be safely expressed with a double and retain - // integer precision. - // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. - if (hi <= 0x1fffff) { - return String(TWO_PWR_32_DBL * hi + lo); - } - - // What this code is doing is essentially converting the input number from - // base-2 to base-1e7, which allows us to represent the 64-bit range with - // only 3 (very large) digits. Those digits are then trivial to convert to - // a base-10 string. - - // The magic numbers used here are - - // 2^24 = 16777216 = (1,6777216) in base-1e7. - // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. - - // Split 32:32 representation into 16:24:24 representation so our - // intermediate digits don't overflow. - const low = lo & 0xffffff; - const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; - const high = (hi >> 16) & 0xffff; - - // Assemble our three base-1e7 digits, ignoring carries. The maximum - // value in a digit at this step is representable as a 48-bit integer, which - // can be stored in a 64-bit floating point number. - let digitA = low + mid * 6777216 + high * 6710656; - let digitB = mid + high * 8147497; - let digitC = high * 2; - - // Apply carries from A to B and from B to C. - const base = 10000000; - if (digitA >= base) { - digitB += Math.floor(digitA / base); - digitA %= base; - } - - if (digitB >= base) { - digitC += Math.floor(digitB / base); - digitB %= base; - } - - // If digitC is 0, then we should have returned in the trivial code path - // at the top for non-safe integers. Given this, we can assume both digitB - // and digitA need leading zeros. - return ( - digitC.toString() + - decimalFrom1e7WithLeadingZeros(digitB) + - decimalFrom1e7WithLeadingZeros(digitA) - ); -} - -function toUnsigned(lo: number, hi: number): { lo: number; hi: number } { - return { lo: lo >>> 0, hi: hi >>> 0 }; -} - -function newBits(lo: number, hi: number): { lo: number; hi: number } { - return { lo: lo | 0, hi: hi | 0 }; -} - -/** - * Returns two's compliment negation of input. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers - */ -function negate(lowBits: number, highBits: number) { - highBits = ~highBits; - if (lowBits) { - lowBits = ~lowBits + 1; - } else { - // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, - // adding 1 to that, results in 0x100000000, which leaves - // the low bits 0x0 and simply adds one to the high bits. - highBits += 1; - } - return newBits(lowBits, highBits); -} - -/** - * Returns decimal representation of digit1e7 with leading zeros. - */ -const decimalFrom1e7WithLeadingZeros = (digit1e7: number) => { - const partial = String(digit1e7); - return "0000000".slice(partial.length) + partial; -}; - -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export function varint32write(value: number, bytes: number[]): void { - if (value >= 0) { - // write value as varint 32 - while (value > 0x7f) { - bytes.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - bytes.push(value); - } else { - for (let i = 0; i < 9; i++) { - bytes.push((value & 127) | 128); - value = value >> 7; - } - bytes.push(1); - } -} - -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export function varint32read(this: ReaderLike): number { - let b = this.buf[this.pos++]; - let result = b & 0x7f; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 7; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 14; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 21; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - - // Extract only last 4 bits - b = this.buf[this.pos++]; - result |= (b & 0x0f) << 28; - - for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) - b = this.buf[this.pos++]; - - if ((b & 0x80) != 0) throw new Error("invalid varint"); - - this.assertBounds(); - - // Result can have 32 bits, convert it to unsigned - return result >>> 0; -} - -type ReaderLike = { - buf: Uint8Array; - pos: number; - len: number; - assertBounds(): void; -}; - -/** - * encode zig zag - */ -export function zzEncode(lo: number, hi: number) { - let mask = hi >> 31; - hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; - lo = ((lo << 1) ^ mask) >>> 0; - return [lo, hi]; -} - -/** - * decode zig zag - */ -export function zzDecode(lo: number, hi: number) { - let mask = -(lo & 1); - lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; - hi = ((hi >>> 1) ^ mask) >>> 0; - return [lo, hi]; -} - -/** - * unsigned int32 without moving pos. - */ -export function readUInt32(buf: Uint8Array, pos: number) { - return ( - (buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - buf[pos + 3] * 0x1000000 - ); -} - -/** - * signed int32 without moving pos. - */ -export function readInt32(buf: Uint8Array, pos: number) { - return ( - (buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - (buf[pos + 3] << 24) - ); -} - -/** - * writing varint32 to pos - */ -export function writeVarint32( - val: number, - buf: Uint8Array | number[], - pos: number -) { - while (val > 127) { - buf[pos++] = (val & 127) | 128; - val >>>= 7; - } - buf[pos] = val; -} - -/** - * writing varint64 to pos - */ -export function writeVarint64( - val: { lo: number; hi: number }, - buf: Uint8Array | number[], - pos: number -) { - while (val.hi) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; - val.hi >>>= 7; - } - while (val.lo > 127) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = val.lo >>> 7; - } - buf[pos++] = val.lo; -} - -export function int64Length(lo: number, hi: number) { - let part0 = lo, - part1 = ((lo >>> 28) | (hi << 4)) >>> 0, - part2 = hi >>> 24; - return part2 === 0 - ? part1 === 0 - ? part0 < 16384 - ? part0 < 128 - ? 1 - : 2 - : part0 < 2097152 - ? 3 - : 4 - : part1 < 16384 - ? part1 < 128 - ? 5 - : 6 - : part1 < 2097152 - ? 7 - : 8 - : part2 < 128 - ? 9 - : 10; -} - -export function writeFixed32( - val: number, - buf: Uint8Array | number[], - pos: number -) { - buf[pos] = val & 255; - buf[pos + 1] = (val >>> 8) & 255; - buf[pos + 2] = (val >>> 16) & 255; - buf[pos + 3] = val >>> 24; -} - -export function writeByte( - val: number, - buf: Uint8Array | number[], - pos: number -) { - buf[pos] = val & 255; -} diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 646541b5..ba6c1f89 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -1 +1,21 @@ -export * from './codegen'; +//@ts-nocheck +/** + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 + * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain + * and run the transpile command or yarn proto command to regenerate this bundle. + */ + +export * from "./amino/bundle"; +export * from "./cosmos_proto/bundle"; +export * from "./cosmos/bundle"; +export * from "./cosmos/client"; +export * from "./gogoproto/bundle"; +export * from "./ibc/bundle"; +export * from "./ibc/client"; +export * from "./regen/bundle"; +export * from "./regen/client"; +export * from "./tendermint/bundle"; +export * from "./google/bundle"; +export * from "./varint"; +export * from "./utf8"; +export * from "./binary"; \ No newline at end of file diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index 90e5163d..1a9d5696 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -1,21 +1,9 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "declaration": true, - "declarationDir": "./types", - "emitDeclarationOnly": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "esModuleInterop": true, - "allowJs": true, - "lib": [ - "es2015" - ] + "outDir": "dist", + "rootDir": "src/" }, - "include": [ - "src/**/*" - ], - "exclude": [ - "node_modules" - ] + "include": ["src/**/*.ts"], + "exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] } diff --git a/packages/api/types/codegen/amino/amino.d.ts b/packages/api/types/codegen/amino/amino.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/types/codegen/amino/amino.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/types/codegen/amino/bundle.d.ts b/packages/api/types/codegen/amino/bundle.d.ts deleted file mode 100644 index 67f7ba53..00000000 --- a/packages/api/types/codegen/amino/bundle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const amino: {}; diff --git a/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts deleted file mode 100644 index 3bad71a6..00000000 --- a/packages/api/types/codegen/cosmos/app/module/v1alpha1/module.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface Module { -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.app.module.v1alpha1.Module"; - value: Uint8Array; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleAmino { -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleSDKType { -} -export declare const Module: { - typeUrl: string; - encode(_: Module, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Module; - fromJSON(_: any): Module; - toJSON(_: Module): unknown; - fromPartial(_: Partial): Module; - fromAmino(_: ModuleAmino): Module; - toAmino(_: Module): ModuleAmino; - fromAminoMsg(object: ModuleAminoMsg): Module; - toAminoMsg(message: Module): ModuleAminoMsg; - fromProtoMsg(message: ModuleProtoMsg): Module; - toProto(message: Module): Uint8Array; - toProtoMsg(message: Module): ModuleProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts deleted file mode 100644 index 5d154fc6..00000000 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/config.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -export interface ConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.Config"; - value: Uint8Array; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigAmino { - /** modules are the module configurations for the app. */ - modules?: ModuleConfigAmino[]; -} -export interface ConfigAminoMsg { - type: "cosmos-sdk/Config"; - value: ConfigAmino; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: Any; -} -export interface ModuleConfigProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; - value: Uint8Array; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigAmino { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name?: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config?: AnyAmino; -} -export interface ModuleConfigAminoMsg { - type: "cosmos-sdk/ModuleConfig"; - value: ModuleConfigAmino; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config?: AnySDKType; -} -export declare const Config: { - typeUrl: string; - encode(message: Config, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Config; - fromJSON(object: any): Config; - toJSON(message: Config): unknown; - fromPartial(object: Partial): Config; - fromAmino(object: ConfigAmino): Config; - toAmino(message: Config): ConfigAmino; - fromAminoMsg(object: ConfigAminoMsg): Config; - toAminoMsg(message: Config): ConfigAminoMsg; - fromProtoMsg(message: ConfigProtoMsg): Config; - toProto(message: Config): Uint8Array; - toProtoMsg(message: Config): ConfigProtoMsg; -}; -export declare const ModuleConfig: { - typeUrl: string; - encode(message: ModuleConfig, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleConfig; - fromJSON(object: any): ModuleConfig; - toJSON(message: ModuleConfig): unknown; - fromPartial(object: Partial): ModuleConfig; - fromAmino(object: ModuleConfigAmino): ModuleConfig; - toAmino(message: ModuleConfig): ModuleConfigAmino; - fromAminoMsg(object: ModuleConfigAminoMsg): ModuleConfig; - toAminoMsg(message: ModuleConfig): ModuleConfigAminoMsg; - fromProtoMsg(message: ModuleConfigProtoMsg): ModuleConfig; - toProto(message: ModuleConfig): Uint8Array; - toProtoMsg(message: ModuleConfig): ModuleConfigProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts deleted file mode 100644 index bb3f836a..00000000 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/module.d.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -export interface ModuleDescriptorProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; - value: Uint8Array; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorAmino { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - go_import?: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - use_package?: PackageReferenceAmino[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - can_migrate_from?: MigrateFromInfoAmino[]; -} -export interface ModuleDescriptorAminoMsg { - type: "cosmos-sdk/ModuleDescriptor"; - value: ModuleDescriptorAmino; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.PackageReference"; - value: Uint8Array; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceAmino { - /** name is the fully-qualified name of the package. */ - name?: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision?: number; -} -export interface PackageReferenceAminoMsg { - type: "cosmos-sdk/PackageReference"; - value: PackageReferenceAmino; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; - value: Uint8Array; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoAmino { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module?: string; -} -export interface MigrateFromInfoAminoMsg { - type: "cosmos-sdk/MigrateFromInfo"; - value: MigrateFromInfoAmino; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} -export declare const ModuleDescriptor: { - typeUrl: string; - encode(message: ModuleDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor; - fromJSON(object: any): ModuleDescriptor; - toJSON(message: ModuleDescriptor): unknown; - fromPartial(object: Partial): ModuleDescriptor; - fromAmino(object: ModuleDescriptorAmino): ModuleDescriptor; - toAmino(message: ModuleDescriptor): ModuleDescriptorAmino; - fromAminoMsg(object: ModuleDescriptorAminoMsg): ModuleDescriptor; - toAminoMsg(message: ModuleDescriptor): ModuleDescriptorAminoMsg; - fromProtoMsg(message: ModuleDescriptorProtoMsg): ModuleDescriptor; - toProto(message: ModuleDescriptor): Uint8Array; - toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg; -}; -export declare const PackageReference: { - typeUrl: string; - encode(message: PackageReference, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PackageReference; - fromJSON(object: any): PackageReference; - toJSON(message: PackageReference): unknown; - fromPartial(object: Partial): PackageReference; - fromAmino(object: PackageReferenceAmino): PackageReference; - toAmino(message: PackageReference): PackageReferenceAmino; - fromAminoMsg(object: PackageReferenceAminoMsg): PackageReference; - toAminoMsg(message: PackageReference): PackageReferenceAminoMsg; - fromProtoMsg(message: PackageReferenceProtoMsg): PackageReference; - toProto(message: PackageReference): Uint8Array; - toProtoMsg(message: PackageReference): PackageReferenceProtoMsg; -}; -export declare const MigrateFromInfo: { - typeUrl: string; - encode(message: MigrateFromInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo; - fromJSON(object: any): MigrateFromInfo; - toJSON(message: MigrateFromInfo): unknown; - fromPartial(object: Partial): MigrateFromInfo; - fromAmino(object: MigrateFromInfoAmino): MigrateFromInfo; - toAmino(message: MigrateFromInfo): MigrateFromInfoAmino; - fromAminoMsg(object: MigrateFromInfoAminoMsg): MigrateFromInfo; - toAminoMsg(message: MigrateFromInfo): MigrateFromInfoAminoMsg; - fromProtoMsg(message: MigrateFromInfoProtoMsg): MigrateFromInfo; - toProto(message: MigrateFromInfo): Uint8Array; - toProtoMsg(message: MigrateFromInfo): MigrateFromInfoProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts deleted file mode 100644 index 678064f7..00000000 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/query.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Config, ConfigAmino, ConfigSDKType } from "./config"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequest { -} -export interface QueryConfigRequestProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigRequest"; - value: Uint8Array; -} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestAmino { -} -export interface QueryConfigRequestAminoMsg { - type: "cosmos-sdk/QueryConfigRequest"; - value: QueryConfigRequestAmino; -} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestSDKType { -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponse { - /** config is the current app config. */ - config?: Config; -} -export interface QueryConfigResponseProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse"; - value: Uint8Array; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseAmino { - /** config is the current app config. */ - config?: ConfigAmino; -} -export interface QueryConfigResponseAminoMsg { - type: "cosmos-sdk/QueryConfigResponse"; - value: QueryConfigResponseAmino; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseSDKType { - config?: ConfigSDKType; -} -export declare const QueryConfigRequest: { - typeUrl: string; - encode(_: QueryConfigRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigRequest; - fromJSON(_: any): QueryConfigRequest; - toJSON(_: QueryConfigRequest): unknown; - fromPartial(_: Partial): QueryConfigRequest; - fromAmino(_: QueryConfigRequestAmino): QueryConfigRequest; - toAmino(_: QueryConfigRequest): QueryConfigRequestAmino; - fromAminoMsg(object: QueryConfigRequestAminoMsg): QueryConfigRequest; - toAminoMsg(message: QueryConfigRequest): QueryConfigRequestAminoMsg; - fromProtoMsg(message: QueryConfigRequestProtoMsg): QueryConfigRequest; - toProto(message: QueryConfigRequest): Uint8Array; - toProtoMsg(message: QueryConfigRequest): QueryConfigRequestProtoMsg; -}; -export declare const QueryConfigResponse: { - typeUrl: string; - encode(message: QueryConfigResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConfigResponse; - fromJSON(object: any): QueryConfigResponse; - toJSON(message: QueryConfigResponse): unknown; - fromPartial(object: Partial): QueryConfigResponse; - fromAmino(object: QueryConfigResponseAmino): QueryConfigResponse; - toAmino(message: QueryConfigResponse): QueryConfigResponseAmino; - fromAminoMsg(object: QueryConfigResponseAminoMsg): QueryConfigResponse; - toAminoMsg(message: QueryConfigResponse): QueryConfigResponseAminoMsg; - fromProtoMsg(message: QueryConfigResponseProtoMsg): QueryConfigResponse; - toProto(message: QueryConfigResponse): Uint8Array; - toProtoMsg(message: QueryConfigResponse): QueryConfigResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/app/v1alpha1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/app/v1alpha1/query.rpc.Query.d.ts deleted file mode 100644 index 5022d334..00000000 --- a/packages/api/types/codegen/cosmos/app/v1alpha1/query.rpc.Query.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryConfigRequest, QueryConfigResponse } from "./query"; -/** Query is the app module query service. */ -export interface Query { - /** Config returns the current app config. */ - config(request?: QueryConfigRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - config(request?: QueryConfigRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - config(request?: QueryConfigRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts deleted file mode 100644 index 732ab294..00000000 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/auth.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccount { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pubKey?: Any; - accountNumber: bigint; - sequence: bigint; -} -export interface BaseAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; - value: Uint8Array; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountAmino { - address?: string; - pub_key?: AnyAmino; - account_number?: string; - sequence?: string; -} -export interface BaseAccountAminoMsg { - type: "cosmos-sdk/BaseAccount"; - value: BaseAccountAmino; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pub_key?: AnySDKType; - account_number: bigint; - sequence: bigint; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccount { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - baseAccount?: BaseAccount; - name: string; - permissions: string[]; -} -export interface ModuleAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; - value: Uint8Array; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountAmino { - base_account?: BaseAccountAmino; - name?: string; - permissions?: string[]; -} -export interface ModuleAccountAminoMsg { - type: "cosmos-sdk/ModuleAccount"; - value: ModuleAccountAmino; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - base_account?: BaseAccountSDKType; - name: string; - permissions: string[]; -} -/** Params defines the parameters for the auth module. */ -export interface Params { - maxMemoCharacters: bigint; - txSigLimit: bigint; - txSizeCostPerByte: bigint; - sigVerifyCostEd25519: bigint; - sigVerifyCostSecp256k1: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsAmino { - max_memo_characters?: string; - tx_sig_limit?: string; - tx_size_cost_per_byte?: string; - sig_verify_cost_ed25519?: string; - sig_verify_cost_secp256k1?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsSDKType { - max_memo_characters: bigint; - tx_sig_limit: bigint; - tx_size_cost_per_byte: bigint; - sig_verify_cost_ed25519: bigint; - sig_verify_cost_secp256k1: bigint; -} -export declare const BaseAccount: { - typeUrl: string; - encode(message: BaseAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount; - fromJSON(object: any): BaseAccount; - toJSON(message: BaseAccount): unknown; - fromPartial(object: Partial): BaseAccount; - fromAmino(object: BaseAccountAmino): BaseAccount; - toAmino(message: BaseAccount): BaseAccountAmino; - fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount; - toAminoMsg(message: BaseAccount): BaseAccountAminoMsg; - fromProtoMsg(message: BaseAccountProtoMsg): BaseAccount; - toProto(message: BaseAccount): Uint8Array; - toProtoMsg(message: BaseAccount): BaseAccountProtoMsg; -}; -export declare const ModuleAccount: { - typeUrl: string; - encode(message: ModuleAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount; - fromJSON(object: any): ModuleAccount; - toJSON(message: ModuleAccount): unknown; - fromPartial(object: Partial): ModuleAccount; - fromAmino(object: ModuleAccountAmino): ModuleAccount; - toAmino(message: ModuleAccount): ModuleAccountAmino; - fromAminoMsg(object: ModuleAccountAminoMsg): ModuleAccount; - toAminoMsg(message: ModuleAccount): ModuleAccountAminoMsg; - fromProtoMsg(message: ModuleAccountProtoMsg): ModuleAccount; - toProto(message: ModuleAccount): Uint8Array; - toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts deleted file mode 100644 index 65543b5f..00000000 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./auth"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** accounts are the accounts present at genesis. */ - accounts: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** accounts are the accounts present at genesis. */ - accounts?: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - accounts: AnySDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts deleted file mode 100644 index 33b1fefb..00000000 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/query.d.ts +++ /dev/null @@ -1,812 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; - value: Uint8Array; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryAccountsRequest"; - value: QueryAccountsRequestAmino; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponse { - /** accounts are the existing accounts */ - accounts: (BaseAccount & Any)[] | Any[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; - value: Uint8Array; -} -export type QueryAccountsResponseEncoded = Omit & { - /** accounts are the existing accounts */ accounts: (BaseAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseAmino { - /** accounts are the existing accounts */ - accounts?: AnyAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryAccountsResponse"; - value: QueryAccountsResponseAmino; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseSDKType { - accounts: (BaseAccountSDKType | AnySDKType)[]; - pagination?: PageResponseSDKType; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequest { - /** address defines the address to query for. */ - address: string; -} -export interface QueryAccountRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; - value: Uint8Array; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestAmino { - /** address defines the address to query for. */ - address?: string; -} -export interface QueryAccountRequestAminoMsg { - type: "cosmos-sdk/QueryAccountRequest"; - value: QueryAccountRequestAmino; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestSDKType { - address: string; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponse { - /** account defines the account of the corresponding address. */ - account?: (BaseAccount & Any) | undefined; -} -export interface QueryAccountResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; - value: Uint8Array; -} -export type QueryAccountResponseEncoded = Omit & { - /** account defines the account of the corresponding address. */ account?: BaseAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseAmino { - /** account defines the account of the corresponding address. */ - account?: AnyAmino; -} -export interface QueryAccountResponseAminoMsg { - type: "cosmos-sdk/QueryAccountResponse"; - value: QueryAccountResponseAmino; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseSDKType { - account?: BaseAccountSDKType | AnySDKType | undefined; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequest { -} -export interface QueryModuleAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; - value: Uint8Array; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestAmino { -} -export interface QueryModuleAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsRequest"; - value: QueryModuleAccountsRequestAmino; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestSDKType { -} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponse { - accounts: (ModuleAccount & Any)[] | Any[]; -} -export interface QueryModuleAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; - value: Uint8Array; -} -export type QueryModuleAccountsResponseEncoded = Omit & { - accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseAmino { - accounts?: AnyAmino[]; -} -export interface QueryModuleAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsResponse"; - value: QueryModuleAccountsResponseAmino; -} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseSDKType { - accounts: (ModuleAccountSDKType | AnySDKType)[]; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequest { - name: string; -} -export interface QueryModuleAccountByNameRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; - value: Uint8Array; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestAmino { - name?: string; -} -export interface QueryModuleAccountByNameRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameRequest"; - value: QueryModuleAccountByNameRequestAmino; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestSDKType { - name: string; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponse { - account?: (ModuleAccount & Any) | undefined; -} -export interface QueryModuleAccountByNameResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; - value: Uint8Array; -} -export type QueryModuleAccountByNameResponseEncoded = Omit & { - account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseAmino { - account?: AnyAmino; -} -export interface QueryModuleAccountByNameResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameResponse"; - value: QueryModuleAccountByNameResponseAmino; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseSDKType { - account?: ModuleAccountSDKType | AnySDKType | undefined; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequest { -} -export interface Bech32PrefixRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; - value: Uint8Array; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestAmino { -} -export interface Bech32PrefixRequestAminoMsg { - type: "cosmos-sdk/Bech32PrefixRequest"; - value: Bech32PrefixRequestAmino; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestSDKType { -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponse { - bech32Prefix: string; -} -export interface Bech32PrefixResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; - value: Uint8Array; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseAmino { - bech32_prefix?: string; -} -export interface Bech32PrefixResponseAminoMsg { - type: "cosmos-sdk/Bech32PrefixResponse"; - value: Bech32PrefixResponseAmino; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseSDKType { - bech32_prefix: string; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequest { - addressBytes: Uint8Array; -} -export interface AddressBytesToStringRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; - value: Uint8Array; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestAmino { - address_bytes?: string; -} -export interface AddressBytesToStringRequestAminoMsg { - type: "cosmos-sdk/AddressBytesToStringRequest"; - value: AddressBytesToStringRequestAmino; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestSDKType { - address_bytes: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponse { - addressString: string; -} -export interface AddressBytesToStringResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; - value: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseAmino { - address_string?: string; -} -export interface AddressBytesToStringResponseAminoMsg { - type: "cosmos-sdk/AddressBytesToStringResponse"; - value: AddressBytesToStringResponseAmino; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseSDKType { - address_string: string; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequest { - addressString: string; -} -export interface AddressStringToBytesRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; - value: Uint8Array; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestAmino { - address_string?: string; -} -export interface AddressStringToBytesRequestAminoMsg { - type: "cosmos-sdk/AddressStringToBytesRequest"; - value: AddressStringToBytesRequestAmino; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestSDKType { - address_string: string; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponse { - addressBytes: Uint8Array; -} -export interface AddressStringToBytesResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; - value: Uint8Array; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseAmino { - address_bytes?: string; -} -export interface AddressStringToBytesResponseAminoMsg { - type: "cosmos-sdk/AddressStringToBytesResponse"; - value: AddressStringToBytesResponseAmino; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseSDKType { - address_bytes: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequest { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id: bigint; -} -export interface QueryAccountAddressByIDRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestAmino { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id?: string; -} -export interface QueryAccountAddressByIDRequestAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDRequest"; - value: QueryAccountAddressByIDRequestAmino; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestSDKType { - id: bigint; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponse { - accountAddress: string; -} -export interface QueryAccountAddressByIDResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseAmino { - account_address?: string; -} -export interface QueryAccountAddressByIDResponseAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDResponse"; - value: QueryAccountAddressByIDResponseAmino; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseSDKType { - account_address: string; -} -export declare const QueryAccountsRequest: { - typeUrl: string; - encode(message: QueryAccountsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest; - fromJSON(object: any): QueryAccountsRequest; - toJSON(message: QueryAccountsRequest): unknown; - fromPartial(object: Partial): QueryAccountsRequest; - fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest; - toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino; - fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest; - toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg; - fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest; - toProto(message: QueryAccountsRequest): Uint8Array; - toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg; -}; -export declare const QueryAccountsResponse: { - typeUrl: string; - encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; - fromJSON(object: any): QueryAccountsResponse; - toJSON(message: QueryAccountsResponse): unknown; - fromPartial(object: Partial): QueryAccountsResponse; - fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse; - toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino; - fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse; - toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg; - fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse; - toProto(message: QueryAccountsResponse): Uint8Array; - toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg; -}; -export declare const QueryAccountRequest: { - typeUrl: string; - encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; - fromJSON(object: any): QueryAccountRequest; - toJSON(message: QueryAccountRequest): unknown; - fromPartial(object: Partial): QueryAccountRequest; - fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest; - toAmino(message: QueryAccountRequest): QueryAccountRequestAmino; - fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest; - toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg; - fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest; - toProto(message: QueryAccountRequest): Uint8Array; - toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg; -}; -export declare const QueryAccountResponse: { - typeUrl: string; - encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; - fromJSON(object: any): QueryAccountResponse; - toJSON(message: QueryAccountResponse): unknown; - fromPartial(object: Partial): QueryAccountResponse; - fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse; - toAmino(message: QueryAccountResponse): QueryAccountResponseAmino; - fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse; - toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg; - fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse; - toProto(message: QueryAccountResponse): Uint8Array; - toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryModuleAccountsRequest: { - typeUrl: string; - encode(_: QueryModuleAccountsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest; - fromJSON(_: any): QueryModuleAccountsRequest; - toJSON(_: QueryModuleAccountsRequest): unknown; - fromPartial(_: Partial): QueryModuleAccountsRequest; - fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest; - toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino; - fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest; - toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg; - fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest; - toProto(message: QueryModuleAccountsRequest): Uint8Array; - toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg; -}; -export declare const QueryModuleAccountsResponse: { - typeUrl: string; - encode(message: QueryModuleAccountsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse; - fromJSON(object: any): QueryModuleAccountsResponse; - toJSON(message: QueryModuleAccountsResponse): unknown; - fromPartial(object: Partial): QueryModuleAccountsResponse; - fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse; - toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino; - fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse; - toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg; - fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse; - toProto(message: QueryModuleAccountsResponse): Uint8Array; - toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg; -}; -export declare const QueryModuleAccountByNameRequest: { - typeUrl: string; - encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; - fromJSON(object: any): QueryModuleAccountByNameRequest; - toJSON(message: QueryModuleAccountByNameRequest): unknown; - fromPartial(object: Partial): QueryModuleAccountByNameRequest; - fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest; - toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino; - fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest; - toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg; - fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest; - toProto(message: QueryModuleAccountByNameRequest): Uint8Array; - toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg; -}; -export declare const QueryModuleAccountByNameResponse: { - typeUrl: string; - encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; - fromJSON(object: any): QueryModuleAccountByNameResponse; - toJSON(message: QueryModuleAccountByNameResponse): unknown; - fromPartial(object: Partial): QueryModuleAccountByNameResponse; - fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse; - toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino; - fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse; - toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg; - fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse; - toProto(message: QueryModuleAccountByNameResponse): Uint8Array; - toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg; -}; -export declare const Bech32PrefixRequest: { - typeUrl: string; - encode(_: Bech32PrefixRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest; - fromJSON(_: any): Bech32PrefixRequest; - toJSON(_: Bech32PrefixRequest): unknown; - fromPartial(_: Partial): Bech32PrefixRequest; - fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest; - toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino; - fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest; - toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg; - fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest; - toProto(message: Bech32PrefixRequest): Uint8Array; - toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg; -}; -export declare const Bech32PrefixResponse: { - typeUrl: string; - encode(message: Bech32PrefixResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse; - fromJSON(object: any): Bech32PrefixResponse; - toJSON(message: Bech32PrefixResponse): unknown; - fromPartial(object: Partial): Bech32PrefixResponse; - fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse; - toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino; - fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse; - toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg; - fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse; - toProto(message: Bech32PrefixResponse): Uint8Array; - toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg; -}; -export declare const AddressBytesToStringRequest: { - typeUrl: string; - encode(message: AddressBytesToStringRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest; - fromJSON(object: any): AddressBytesToStringRequest; - toJSON(message: AddressBytesToStringRequest): unknown; - fromPartial(object: Partial): AddressBytesToStringRequest; - fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest; - toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino; - fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest; - toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg; - fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest; - toProto(message: AddressBytesToStringRequest): Uint8Array; - toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg; -}; -export declare const AddressBytesToStringResponse: { - typeUrl: string; - encode(message: AddressBytesToStringResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse; - fromJSON(object: any): AddressBytesToStringResponse; - toJSON(message: AddressBytesToStringResponse): unknown; - fromPartial(object: Partial): AddressBytesToStringResponse; - fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse; - toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino; - fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse; - toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg; - fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse; - toProto(message: AddressBytesToStringResponse): Uint8Array; - toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg; -}; -export declare const AddressStringToBytesRequest: { - typeUrl: string; - encode(message: AddressStringToBytesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest; - fromJSON(object: any): AddressStringToBytesRequest; - toJSON(message: AddressStringToBytesRequest): unknown; - fromPartial(object: Partial): AddressStringToBytesRequest; - fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest; - toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino; - fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest; - toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg; - fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest; - toProto(message: AddressStringToBytesRequest): Uint8Array; - toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg; -}; -export declare const AddressStringToBytesResponse: { - typeUrl: string; - encode(message: AddressStringToBytesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse; - fromJSON(object: any): AddressStringToBytesResponse; - toJSON(message: AddressStringToBytesResponse): unknown; - fromPartial(object: Partial): AddressStringToBytesResponse; - fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse; - toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino; - fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse; - toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg; - fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse; - toProto(message: AddressStringToBytesResponse): Uint8Array; - toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg; -}; -export declare const QueryAccountAddressByIDRequest: { - typeUrl: string; - encode(message: QueryAccountAddressByIDRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; - fromJSON(object: any): QueryAccountAddressByIDRequest; - toJSON(message: QueryAccountAddressByIDRequest): unknown; - fromPartial(object: Partial): QueryAccountAddressByIDRequest; - fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest; - toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino; - fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest; - toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg; - fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest; - toProto(message: QueryAccountAddressByIDRequest): Uint8Array; - toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg; -}; -export declare const QueryAccountAddressByIDResponse: { - typeUrl: string; - encode(message: QueryAccountAddressByIDResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; - fromJSON(object: any): QueryAccountAddressByIDResponse; - toJSON(message: QueryAccountAddressByIDResponse): unknown; - fromPartial(object: Partial): QueryAccountAddressByIDResponse; - fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse; - toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino; - fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse; - toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg; - fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse; - toProto(message: QueryAccountAddressByIDResponse): Uint8Array; - toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg; -}; -export declare const AccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BaseAccount | Any; -export declare const AccountI_FromAmino: (content: AnyAmino) => Any; -export declare const AccountI_ToAmino: (content: Any) => AnyAmino; -export declare const ModuleAccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ModuleAccount | Any; -export declare const ModuleAccountI_FromAmino: (content: AnyAmino) => Any; -export declare const ModuleAccountI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts deleted file mode 100644 index edc1c862..00000000 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - accounts(params?: QueryAccountsRequest): Promise; - account(params: QueryAccountRequest): Promise; - accountAddressByID(params: QueryAccountAddressByIDRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - moduleAccounts(_params?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(params: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(_params?: Bech32PrefixRequest): Promise; - addressBytesToString(params: AddressBytesToStringRequest): Promise; - addressStringToBytes(params: AddressStringToBytesRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/auth/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/auth/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index b74fda81..00000000 --- a/packages/api/types/codegen/cosmos/auth/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Accounts returns all the existing accounts - * - * Since: cosmos-sdk 0.43 - */ - accounts(request?: QueryAccountsRequest): Promise; - /** Account returns account details based on address. */ - account(request: QueryAccountRequest): Promise; - /** - * AccountAddressByID returns account address based on account number. - * - * Since: cosmos-sdk 0.46.2 - */ - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - /** Params queries all parameters. */ - params(request?: QueryParamsRequest): Promise; - /** - * ModuleAccounts returns all the existing module accounts. - * - * Since: cosmos-sdk 0.46 - */ - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - /** ModuleAccountByName returns the module account info by module name */ - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - /** - * Bech32Prefix queries bech32Prefix - * - * Since: cosmos-sdk 0.46 - */ - bech32Prefix(request?: Bech32PrefixRequest): Promise; - /** - * AddressBytesToString converts Account Address bytes to string - * - * Since: cosmos-sdk 0.46 - */ - addressBytesToString(request: AddressBytesToStringRequest): Promise; - /** - * AddressStringToBytes converts Address string to bytes - * - * Since: cosmos-sdk 0.46 - */ - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - accounts(request?: QueryAccountsRequest): Promise; - account(request: QueryAccountRequest): Promise; - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - params(request?: QueryParamsRequest): Promise; - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: Bech32PrefixRequest): Promise; - addressBytesToString(request: AddressBytesToStringRequest): Promise; - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - accounts(request?: QueryAccountsRequest): Promise; - account(request: QueryAccountRequest): Promise; - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - params(request?: QueryParamsRequest): Promise; - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: Bech32PrefixRequest): Promise; - addressBytesToString(request: AddressBytesToStringRequest): Promise; - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts deleted file mode 100644 index b3b46283..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/authz.d.ts +++ /dev/null @@ -1,209 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; -import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorization { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; - value: Uint8Array; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationAmino { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg?: string; -} -export interface GenericAuthorizationAminoMsg { - type: "cosmos-sdk/GenericAuthorization"; - value: GenericAuthorizationAmino; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationSDKType { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - msg: string; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface Grant { - authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Timestamp; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantAmino { - authorization?: AnyAmino; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: string; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantSDKType { - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: TimestampSDKType; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorization { - granter: string; - grantee: string; - authorization?: (GenericAuthorization & SendAuthorization & StakeAuthorization & Any) | undefined; - expiration?: Timestamp; -} -export interface GrantAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; - value: Uint8Array; -} -export type GrantAuthorizationEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationAmino { - granter?: string; - grantee?: string; - authorization?: AnyAmino; - expiration?: string; -} -export interface GrantAuthorizationAminoMsg { - type: "cosmos-sdk/GrantAuthorization"; - value: GrantAuthorizationAmino; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationSDKType { - granter: string; - grantee: string; - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: TimestampSDKType; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItem { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msgTypeUrls: string[]; -} -export interface GrantQueueItemProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; - value: Uint8Array; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemAmino { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msg_type_urls?: string[]; -} -export interface GrantQueueItemAminoMsg { - type: "cosmos-sdk/GrantQueueItem"; - value: GrantQueueItemAmino; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemSDKType { - msg_type_urls: string[]; -} -export declare const GenericAuthorization: { - typeUrl: string; - encode(message: GenericAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization; - fromJSON(object: any): GenericAuthorization; - toJSON(message: GenericAuthorization): unknown; - fromPartial(object: Partial): GenericAuthorization; - fromAmino(object: GenericAuthorizationAmino): GenericAuthorization; - toAmino(message: GenericAuthorization): GenericAuthorizationAmino; - fromAminoMsg(object: GenericAuthorizationAminoMsg): GenericAuthorization; - toAminoMsg(message: GenericAuthorization): GenericAuthorizationAminoMsg; - fromProtoMsg(message: GenericAuthorizationProtoMsg): GenericAuthorization; - toProto(message: GenericAuthorization): Uint8Array; - toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg; -}; -export declare const Grant: { - typeUrl: string; - encode(message: Grant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Grant; - fromJSON(object: any): Grant; - toJSON(message: Grant): unknown; - fromPartial(object: Partial): Grant; - fromAmino(object: GrantAmino): Grant; - toAmino(message: Grant): GrantAmino; - fromAminoMsg(object: GrantAminoMsg): Grant; - toAminoMsg(message: Grant): GrantAminoMsg; - fromProtoMsg(message: GrantProtoMsg): Grant; - toProto(message: Grant): Uint8Array; - toProtoMsg(message: Grant): GrantProtoMsg; -}; -export declare const GrantAuthorization: { - typeUrl: string; - encode(message: GrantAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization; - fromJSON(object: any): GrantAuthorization; - toJSON(message: GrantAuthorization): unknown; - fromPartial(object: Partial): GrantAuthorization; - fromAmino(object: GrantAuthorizationAmino): GrantAuthorization; - toAmino(message: GrantAuthorization): GrantAuthorizationAmino; - fromAminoMsg(object: GrantAuthorizationAminoMsg): GrantAuthorization; - toAminoMsg(message: GrantAuthorization): GrantAuthorizationAminoMsg; - fromProtoMsg(message: GrantAuthorizationProtoMsg): GrantAuthorization; - toProto(message: GrantAuthorization): Uint8Array; - toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg; -}; -export declare const GrantQueueItem: { - typeUrl: string; - encode(message: GrantQueueItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem; - fromJSON(object: any): GrantQueueItem; - toJSON(message: GrantQueueItem): unknown; - fromPartial(object: Partial): GrantQueueItem; - fromAmino(object: GrantQueueItemAmino): GrantQueueItem; - toAmino(message: GrantQueueItem): GrantQueueItemAmino; - fromAminoMsg(object: GrantQueueItemAminoMsg): GrantQueueItem; - toAminoMsg(message: GrantQueueItem): GrantQueueItemAminoMsg; - fromProtoMsg(message: GrantQueueItemProtoMsg): GrantQueueItem; - toProto(message: GrantQueueItem): Uint8Array; - toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg; -}; -export declare const Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => GenericAuthorization | SendAuthorization | StakeAuthorization | Any; -export declare const Authorization_FromAmino: (content: AnyAmino) => Any; -export declare const Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts deleted file mode 100644 index 7ec7619c..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/event.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrant { - /** Msg type URL for which an autorization is granted */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventGrant"; - value: Uint8Array; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantAmino { - /** Msg type URL for which an autorization is granted */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventGrantAminoMsg { - type: "cosmos-sdk/EventGrant"; - value: EventGrantAmino; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevoke { - /** Msg type URL for which an autorization is revoked */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; - value: Uint8Array; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeAmino { - /** Msg type URL for which an autorization is revoked */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventRevokeAminoMsg { - type: "cosmos-sdk/EventRevoke"; - value: EventRevokeAmino; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -export declare const EventGrant: { - typeUrl: string; - encode(message: EventGrant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventGrant; - fromJSON(object: any): EventGrant; - toJSON(message: EventGrant): unknown; - fromPartial(object: Partial): EventGrant; - fromAmino(object: EventGrantAmino): EventGrant; - toAmino(message: EventGrant): EventGrantAmino; - fromAminoMsg(object: EventGrantAminoMsg): EventGrant; - toAminoMsg(message: EventGrant): EventGrantAminoMsg; - fromProtoMsg(message: EventGrantProtoMsg): EventGrant; - toProto(message: EventGrant): Uint8Array; - toProtoMsg(message: EventGrant): EventGrantProtoMsg; -}; -export declare const EventRevoke: { - typeUrl: string; - encode(message: EventRevoke, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke; - fromJSON(object: any): EventRevoke; - toJSON(message: EventRevoke): unknown; - fromPartial(object: Partial): EventRevoke; - fromAmino(object: EventRevokeAmino): EventRevoke; - toAmino(message: EventRevoke): EventRevokeAmino; - fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke; - toAminoMsg(message: EventRevoke): EventRevokeAminoMsg; - fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke; - toProto(message: EventRevoke): Uint8Array; - toProtoMsg(message: EventRevoke): EventRevokeProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts deleted file mode 100644 index 0936e1b3..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisState { - authorization: GrantAuthorization[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateAmino { - authorization?: GrantAuthorizationAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateSDKType { - authorization: GrantAuthorizationSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts deleted file mode 100644 index 1ccae755..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/query.d.ts +++ /dev/null @@ -1,257 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequest { - granter: string; - grantee: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msgTypeUrl: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; - value: Uint8Array; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestAmino { - granter?: string; - grantee?: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msg_type_url?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGrantsRequest"; - value: QueryGrantsRequestAmino; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestSDKType { - granter: string; - grantee: string; - msg_type_url: string; - pagination?: PageRequestSDKType; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponse { - /** authorizations is a list of grants granted for grantee by granter. */ - grants: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; - value: Uint8Array; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseAmino { - /** authorizations is a list of grants granted for grantee by granter. */ - grants?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGrantsResponse"; - value: QueryGrantsResponseAmino; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseSDKType { - grants: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranterGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; - value: Uint8Array; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranterGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsRequest"; - value: QueryGranterGrantsRequestAmino; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponse { - /** grants is a list of grants granted by the granter. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranterGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; - value: Uint8Array; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseAmino { - /** grants is a list of grants granted by the granter. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranterGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsResponse"; - value: QueryGranterGrantsResponseAmino; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranteeGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; - value: Uint8Array; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranteeGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsRequest"; - value: QueryGranteeGrantsRequestAmino; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponse { - /** grants is a list of grants granted to the grantee. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranteeGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; - value: Uint8Array; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseAmino { - /** grants is a list of grants granted to the grantee. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranteeGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsResponse"; - value: QueryGranteeGrantsResponseAmino; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryGrantsRequest: { - typeUrl: string; - encode(message: QueryGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest; - fromJSON(object: any): QueryGrantsRequest; - toJSON(message: QueryGrantsRequest): unknown; - fromPartial(object: Partial): QueryGrantsRequest; - fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest; - toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino; - fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest; - toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest; - toProto(message: QueryGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg; -}; -export declare const QueryGrantsResponse: { - typeUrl: string; - encode(message: QueryGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse; - fromJSON(object: any): QueryGrantsResponse; - toJSON(message: QueryGrantsResponse): unknown; - fromPartial(object: Partial): QueryGrantsResponse; - fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse; - toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino; - fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse; - toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse; - toProto(message: QueryGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg; -}; -export declare const QueryGranterGrantsRequest: { - typeUrl: string; - encode(message: QueryGranterGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest; - fromJSON(object: any): QueryGranterGrantsRequest; - toJSON(message: QueryGranterGrantsRequest): unknown; - fromPartial(object: Partial): QueryGranterGrantsRequest; - fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest; - toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino; - fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest; - toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest; - toProto(message: QueryGranterGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg; -}; -export declare const QueryGranterGrantsResponse: { - typeUrl: string; - encode(message: QueryGranterGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse; - fromJSON(object: any): QueryGranterGrantsResponse; - toJSON(message: QueryGranterGrantsResponse): unknown; - fromPartial(object: Partial): QueryGranterGrantsResponse; - fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse; - toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino; - fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse; - toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse; - toProto(message: QueryGranterGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg; -}; -export declare const QueryGranteeGrantsRequest: { - typeUrl: string; - encode(message: QueryGranteeGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest; - fromJSON(object: any): QueryGranteeGrantsRequest; - toJSON(message: QueryGranteeGrantsRequest): unknown; - fromPartial(object: Partial): QueryGranteeGrantsRequest; - fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest; - toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino; - fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest; - toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest; - toProto(message: QueryGranteeGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg; -}; -export declare const QueryGranteeGrantsResponse: { - typeUrl: string; - encode(message: QueryGranteeGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse; - fromJSON(object: any): QueryGranteeGrantsResponse; - toJSON(message: QueryGranteeGrantsResponse): unknown; - fromPartial(object: Partial): QueryGranteeGrantsResponse; - fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse; - toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino; - fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse; - toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse; - toProto(message: QueryGranteeGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts deleted file mode 100644 index 9bcb87c9..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - grants(params: QueryGrantsRequest): Promise; - granterGrants(params: QueryGranterGrantsRequest): Promise; - granteeGrants(params: QueryGranteeGrantsRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index d7f1381d..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Returns list of `Authorization`, granted to the grantee by the granter. */ - grants(request: QueryGrantsRequest): Promise; - /** - * GranterGrants returns list of `GrantAuthorization`, granted by granter. - * - * Since: cosmos-sdk 0.46 - */ - granterGrants(request: QueryGranterGrantsRequest): Promise; - /** - * GranteeGrants returns a list of `GrantAuthorization` by grantee. - * - * Since: cosmos-sdk 0.46 - */ - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - grants(request: QueryGrantsRequest): Promise; - granterGrants(request: QueryGranterGrantsRequest): Promise; - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - grants(request: QueryGrantsRequest): Promise; - granterGrants(request: QueryGranterGrantsRequest): Promise; - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts deleted file mode 100644 index 6f44ab84..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export declare const AminoConverter: { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: MsgGrant) => import("./tx").MsgGrantAmino; - fromAmino: (object: import("./tx").MsgGrantAmino) => MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; - fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: MsgRevoke) => import("./tx").MsgRevokeAmino; - fromAmino: (object: import("./tx").MsgRevokeAmino) => MsgRevoke; - }; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts deleted file mode 100644 index 8db4a936..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.d.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./authz"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrant { - granter: string; - grantee: string; - grant: Grant; -} -export interface MsgGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; - value: Uint8Array; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantAmino { - granter?: string; - grantee?: string; - grant?: GrantAmino; -} -export interface MsgGrantAminoMsg { - type: "cosmos-sdk/MsgGrant"; - value: MsgGrantAmino; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantSDKType { - granter: string; - grantee: string; - grant: GrantSDKType; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponse { - results: Uint8Array[]; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseAmino { - results?: string[]; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseSDKType { - results: Uint8Array[]; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExec { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (Any)[] | Any[]; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExec"; - value: Uint8Array; -} -export type MsgExecEncoded = Omit & { - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (AnyProtoMsg)[]; -}; -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecAmino { - grantee?: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs?: AnyAmino[]; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/MsgExec"; - value: MsgExecAmino; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecSDKType { - grantee: string; - msgs: (AnySDKType)[]; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponse { -} -export interface MsgGrantResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; - value: Uint8Array; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseAmino { -} -export interface MsgGrantResponseAminoMsg { - type: "cosmos-sdk/MsgGrantResponse"; - value: MsgGrantResponseAmino; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseSDKType { -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevoke { - granter: string; - grantee: string; - msgTypeUrl: string; -} -export interface MsgRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; - value: Uint8Array; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeAmino { - granter?: string; - grantee?: string; - msg_type_url?: string; -} -export interface MsgRevokeAminoMsg { - type: "cosmos-sdk/MsgRevoke"; - value: MsgRevokeAmino; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeSDKType { - granter: string; - grantee: string; - msg_type_url: string; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponse { -} -export interface MsgRevokeResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; - value: Uint8Array; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseAmino { -} -export interface MsgRevokeResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeResponse"; - value: MsgRevokeResponseAmino; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseSDKType { -} -export declare const MsgGrant: { - typeUrl: string; - encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; - fromJSON(object: any): MsgGrant; - toJSON(message: MsgGrant): unknown; - fromPartial(object: Partial): MsgGrant; - fromAmino(object: MsgGrantAmino): MsgGrant; - toAmino(message: MsgGrant): MsgGrantAmino; - fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant; - toAminoMsg(message: MsgGrant): MsgGrantAminoMsg; - fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant; - toProto(message: MsgGrant): Uint8Array; - toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; -}; -export declare const MsgExecResponse: { - typeUrl: string; - encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; - fromJSON(object: any): MsgExecResponse; - toJSON(message: MsgExecResponse): unknown; - fromPartial(object: Partial): MsgExecResponse; - fromAmino(object: MsgExecResponseAmino): MsgExecResponse; - toAmino(message: MsgExecResponse): MsgExecResponseAmino; - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; - toProto(message: MsgExecResponse): Uint8Array; - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; -}; -export declare const MsgExec: { - typeUrl: string; - encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; - fromJSON(object: any): MsgExec; - toJSON(message: MsgExec): unknown; - fromPartial(object: Partial): MsgExec; - fromAmino(object: MsgExecAmino): MsgExec; - toAmino(message: MsgExec): MsgExecAmino; - fromAminoMsg(object: MsgExecAminoMsg): MsgExec; - toAminoMsg(message: MsgExec): MsgExecAminoMsg; - fromProtoMsg(message: MsgExecProtoMsg): MsgExec; - toProto(message: MsgExec): Uint8Array; - toProtoMsg(message: MsgExec): MsgExecProtoMsg; -}; -export declare const MsgGrantResponse: { - typeUrl: string; - encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; - fromJSON(_: any): MsgGrantResponse; - toJSON(_: MsgGrantResponse): unknown; - fromPartial(_: Partial): MsgGrantResponse; - fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse; - toAmino(_: MsgGrantResponse): MsgGrantResponseAmino; - fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse; - toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg; - fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse; - toProto(message: MsgGrantResponse): Uint8Array; - toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg; -}; -export declare const MsgRevoke: { - typeUrl: string; - encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; - fromJSON(object: any): MsgRevoke; - toJSON(message: MsgRevoke): unknown; - fromPartial(object: Partial): MsgRevoke; - fromAmino(object: MsgRevokeAmino): MsgRevoke; - toAmino(message: MsgRevoke): MsgRevokeAmino; - fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke; - toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg; - fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke; - toProto(message: MsgRevoke): Uint8Array; - toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg; -}; -export declare const MsgRevokeResponse: { - typeUrl: string; - encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; - fromJSON(_: any): MsgRevokeResponse; - toJSON(_: MsgRevokeResponse): unknown; - fromPartial(_: Partial): MsgRevokeResponse; - fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse; - toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino; - fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse; - toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg; - fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse; - toProto(message: MsgRevokeResponse): Uint8Array; - toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg; -}; -export declare const Sdk_Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Sdk_Msg_FromAmino: (content: AnyAmino) => Any; -export declare const Sdk_Msg_ToAmino: (content: Any) => AnyAmino; -export declare const Authz_Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Authz_Authorization_FromAmino: (content: AnyAmino) => Any; -export declare const Authz_Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts deleted file mode 100644 index b21a4bcb..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - grant(value: MsgGrant): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grant(value: MsgGrant): { - typeUrl: string; - value: MsgGrant; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: MsgRevoke; - }; - }; - toJSON: { - grant(value: MsgGrant): { - typeUrl: string; - value: unknown; - }; - exec(value: MsgExec): { - typeUrl: string; - value: unknown; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - grant(value: any): { - typeUrl: string; - value: MsgGrant; - }; - exec(value: any): { - typeUrl: string; - value: MsgExec; - }; - revoke(value: any): { - typeUrl: string; - value: MsgRevoke; - }; - }; - fromPartial: { - grant(value: MsgGrant): { - typeUrl: string; - value: MsgGrant; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: MsgRevoke; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 3bcce35a..00000000 --- a/packages/api/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; -/** Msg defines the authz Msg service. */ -export interface Msg { - /** - * Grant grants the provided authorization to the grantee on the granter's - * account with the provided expiration time. If there is already a grant - * for the given (granter, grantee, Authorization) triple, then the grant - * will be overwritten. - */ - grant(request: MsgGrant): Promise; - /** - * Exec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ - exec(request: MsgExec): Promise; - /** - * Revoke revokes any authorization corresponding to the provided method name on the - * granter's account that has been granted to the grantee. - */ - revoke(request: MsgRevoke): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - grant(request: MsgGrant): Promise; - exec(request: MsgExec): Promise; - revoke(request: MsgRevoke): Promise; -} diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts deleted file mode 100644 index d6fa02e7..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/authz.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorization { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spendLimit: Coin[]; -} -export interface SendAuthorizationProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; - value: Uint8Array; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationAmino { - spend_limit?: CoinAmino[]; -} -export interface SendAuthorizationAminoMsg { - type: "cosmos-sdk/SendAuthorization"; - value: SendAuthorizationAmino; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationSDKType { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spend_limit: CoinSDKType[]; -} -export declare const SendAuthorization: { - typeUrl: string; - encode(message: SendAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization; - fromJSON(object: any): SendAuthorization; - toJSON(message: SendAuthorization): unknown; - fromPartial(object: Partial): SendAuthorization; - fromAmino(object: SendAuthorizationAmino): SendAuthorization; - toAmino(message: SendAuthorization): SendAuthorizationAmino; - fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization; - toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg; - fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization; - toProto(message: SendAuthorization): Uint8Array; - toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts deleted file mode 100644 index b05d4ff3..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/bank.d.ts +++ /dev/null @@ -1,404 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Params defines the parameters for the bank module. */ -export interface Params { - sendEnabled: SendEnabled[]; - defaultSendEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsAmino { - send_enabled?: SendEnabledAmino[]; - default_send_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsSDKType { - send_enabled: SendEnabledSDKType[]; - default_send_enabled: boolean; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabled { - denom: string; - enabled: boolean; -} -export interface SendEnabledProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; - value: Uint8Array; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledAmino { - denom?: string; - enabled?: boolean; -} -export interface SendEnabledAminoMsg { - type: "cosmos-sdk/SendEnabled"; - value: SendEnabledAmino; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledSDKType { - denom: string; - enabled: boolean; -} -/** Input models transaction input. */ -export interface Input { - address: string; - coins: Coin[]; -} -export interface InputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Input"; - value: Uint8Array; -} -/** Input models transaction input. */ -export interface InputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface InputAminoMsg { - type: "cosmos-sdk/Input"; - value: InputAmino; -} -/** Input models transaction input. */ -export interface InputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** Output models transaction outputs. */ -export interface Output { - address: string; - coins: Coin[]; -} -export interface OutputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Output"; - value: Uint8Array; -} -/** Output models transaction outputs. */ -export interface OutputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface OutputAminoMsg { - type: "cosmos-sdk/Output"; - value: OutputAmino; -} -/** Output models transaction outputs. */ -export interface OutputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface Supply { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: Coin[]; -} -export interface SupplyProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Supply"; - value: Uint8Array; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplyAmino { - total?: CoinAmino[]; -} -export interface SupplyAminoMsg { - type: "cosmos-sdk/Supply"; - value: SupplyAmino; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplySDKType { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: CoinSDKType[]; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; - value: Uint8Array; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitAmino { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; -} -export interface DenomUnitAminoMsg { - type: "cosmos-sdk/DenomUnit"; - value: DenomUnitAmino; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitSDKType { - denom: string; - exponent: number; - aliases: string[]; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface Metadata { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denomUnits: DenomUnit[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uriHash: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Metadata"; - value: Uint8Array; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataAmino { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: DenomUnitAmino[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name?: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol?: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri?: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri_hash?: string; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataSDKType { - description: string; - denom_units: DenomUnitSDKType[]; - base: string; - display: string; - name: string; - symbol: string; - uri: string; - uri_hash: string; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const SendEnabled: { - typeUrl: string; - encode(message: SendEnabled, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled; - fromJSON(object: any): SendEnabled; - toJSON(message: SendEnabled): unknown; - fromPartial(object: Partial): SendEnabled; - fromAmino(object: SendEnabledAmino): SendEnabled; - toAmino(message: SendEnabled): SendEnabledAmino; - fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled; - toAminoMsg(message: SendEnabled): SendEnabledAminoMsg; - fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled; - toProto(message: SendEnabled): Uint8Array; - toProtoMsg(message: SendEnabled): SendEnabledProtoMsg; -}; -export declare const Input: { - typeUrl: string; - encode(message: Input, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Input; - fromJSON(object: any): Input; - toJSON(message: Input): unknown; - fromPartial(object: Partial): Input; - fromAmino(object: InputAmino): Input; - toAmino(message: Input): InputAmino; - fromAminoMsg(object: InputAminoMsg): Input; - toAminoMsg(message: Input): InputAminoMsg; - fromProtoMsg(message: InputProtoMsg): Input; - toProto(message: Input): Uint8Array; - toProtoMsg(message: Input): InputProtoMsg; -}; -export declare const Output: { - typeUrl: string; - encode(message: Output, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Output; - fromJSON(object: any): Output; - toJSON(message: Output): unknown; - fromPartial(object: Partial): Output; - fromAmino(object: OutputAmino): Output; - toAmino(message: Output): OutputAmino; - fromAminoMsg(object: OutputAminoMsg): Output; - toAminoMsg(message: Output): OutputAminoMsg; - fromProtoMsg(message: OutputProtoMsg): Output; - toProto(message: Output): Uint8Array; - toProtoMsg(message: Output): OutputProtoMsg; -}; -export declare const Supply: { - typeUrl: string; - encode(message: Supply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Supply; - fromJSON(object: any): Supply; - toJSON(message: Supply): unknown; - fromPartial(object: Partial): Supply; - fromAmino(object: SupplyAmino): Supply; - toAmino(message: Supply): SupplyAmino; - fromAminoMsg(object: SupplyAminoMsg): Supply; - toAminoMsg(message: Supply): SupplyAminoMsg; - fromProtoMsg(message: SupplyProtoMsg): Supply; - toProto(message: Supply): Uint8Array; - toProtoMsg(message: Supply): SupplyProtoMsg; -}; -export declare const DenomUnit: { - typeUrl: string; - encode(message: DenomUnit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit; - fromJSON(object: any): DenomUnit; - toJSON(message: DenomUnit): unknown; - fromPartial(object: Partial): DenomUnit; - fromAmino(object: DenomUnitAmino): DenomUnit; - toAmino(message: DenomUnit): DenomUnitAmino; - fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit; - toAminoMsg(message: DenomUnit): DenomUnitAminoMsg; - fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit; - toProto(message: DenomUnit): Uint8Array; - toProtoMsg(message: DenomUnit): DenomUnitProtoMsg; -}; -export declare const Metadata: { - typeUrl: string; - encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Metadata; - fromJSON(object: any): Metadata; - toJSON(message: Metadata): unknown; - fromPartial(object: Partial): Metadata; - fromAmino(object: MetadataAmino): Metadata; - toAmino(message: Metadata): MetadataAmino; - fromAminoMsg(object: MetadataAminoMsg): Metadata; - toAminoMsg(message: Metadata): MetadataAminoMsg; - fromProtoMsg(message: MetadataProtoMsg): Metadata; - toProto(message: Metadata): Uint8Array; - toProtoMsg(message: Metadata): MetadataProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts deleted file mode 100644 index 76167c70..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** balances is an array containing the balances of all the accounts. */ - balances: Balance[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: Coin[]; - /** denom_metadata defines the metadata of the differents coins. */ - denomMetadata: Metadata[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** balances is an array containing the balances of all the accounts. */ - balances?: BalanceAmino[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply?: CoinAmino[]; - /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata?: MetadataAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - balances: BalanceSDKType[]; - supply: CoinSDKType[]; - denom_metadata: MetadataSDKType[]; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface Balance { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: Coin[]; -} -export interface BalanceProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Balance"; - value: Uint8Array; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceAmino { - /** address is the address of the balance holder. */ - address?: string; - /** coins defines the different coins this balance holds. */ - coins?: CoinAmino[]; -} -export interface BalanceAminoMsg { - type: "cosmos-sdk/Balance"; - value: BalanceAmino; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceSDKType { - address: string; - coins: CoinSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const Balance: { - typeUrl: string; - encode(message: Balance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Balance; - fromJSON(object: any): Balance; - toJSON(message: Balance): unknown; - fromPartial(object: Partial): Balance; - fromAmino(object: BalanceAmino): Balance; - toAmino(message: Balance): BalanceAmino; - fromAminoMsg(object: BalanceAminoMsg): Balance; - toAminoMsg(message: Balance): BalanceAminoMsg; - fromProtoMsg(message: BalanceProtoMsg): Balance; - toProto(message: Balance): Uint8Array; - toProtoMsg(message: Balance): BalanceProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts deleted file mode 100644 index 287626f0..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/query.d.ts +++ /dev/null @@ -1,881 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequest { - /** address is the address to query balances for. */ - address: string; - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "cosmos-sdk/QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestSDKType { - address: string; - denom: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponse { - /** balance is the balance of the coin. */ - balance?: Coin; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the coin. */ - balance?: CoinAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "cosmos-sdk/QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseSDKType { - balance?: CoinSDKType; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequest { - /** address is the address to query balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponse { - /** balances is the balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseAmino { - /** balances is the balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequest { - /** address is the address to query spendable balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySpendableBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestAmino { - /** address is the address to query spendable balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySpendableBalancesRequestAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesRequest"; - value: QuerySpendableBalancesRequestAmino; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponse { - /** balances is the spendable balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySpendableBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseAmino { - /** balances is the spendable balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySpendableBalancesResponseAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesResponse"; - value: QuerySpendableBalancesResponseAmino; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequest { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequest; -} -export interface QueryTotalSupplyRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; - value: Uint8Array; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestAmino { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequestAmino; -} -export interface QueryTotalSupplyRequestAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyRequest"; - value: QueryTotalSupplyRequestAmino; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponse { - /** supply is the supply of the coins */ - supply: Coin[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponse; -} -export interface QueryTotalSupplyResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; - value: Uint8Array; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseAmino { - /** supply is the supply of the coins */ - supply?: CoinAmino[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponseAmino; -} -export interface QueryTotalSupplyResponseAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyResponse"; - value: QueryTotalSupplyResponseAmino; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseSDKType { - supply: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequest { - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QuerySupplyOfRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; - value: Uint8Array; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestAmino { - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QuerySupplyOfRequestAminoMsg { - type: "cosmos-sdk/QuerySupplyOfRequest"; - value: QuerySupplyOfRequestAmino; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestSDKType { - denom: string; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponse { - /** amount is the supply of the coin. */ - amount: Coin; -} -export interface QuerySupplyOfResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; - value: Uint8Array; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseAmino { - /** amount is the supply of the coin. */ - amount?: CoinAmino; -} -export interface QuerySupplyOfResponseAminoMsg { - type: "cosmos-sdk/QuerySupplyOfResponse"; - value: QuerySupplyOfResponseAmino; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseSDKType { - amount: CoinSDKType; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseAmino { - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomsMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomsMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataRequest"; - value: QueryDenomsMetadataRequestAmino; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponse { - /** metadata provides the client information for all the registered tokens. */ - metadatas: Metadata[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomsMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseAmino { - /** metadata provides the client information for all the registered tokens. */ - metadatas?: MetadataAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomsMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataResponse"; - value: QueryDenomsMetadataResponseAmino; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseSDKType { - metadatas: MetadataSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequest { - /** denom is the coin denom to query the metadata for. */ - denom: string; -} -export interface QueryDenomMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestAmino { - /** denom is the coin denom to query the metadata for. */ - denom?: string; -} -export interface QueryDenomMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataRequest"; - value: QueryDenomMetadataRequestAmino; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestSDKType { - denom: string; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponse { - /** metadata describes and provides all the client information for the requested token. */ - metadata: Metadata; -} -export interface QueryDenomMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseAmino { - /** metadata describes and provides all the client information for the requested token. */ - metadata?: MetadataAmino; -} -export interface QueryDenomMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataResponse"; - value: QueryDenomMetadataResponseAmino; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseSDKType { - metadata: MetadataSDKType; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequest { - /** denom defines the coin denomination to query all account holders for. */ - denom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomOwnersRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; - value: Uint8Array; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestAmino { - /** denom defines the coin denomination to query all account holders for. */ - denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomOwnersRequestAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersRequest"; - value: QueryDenomOwnersRequestAmino; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestSDKType { - denom: string; - pagination?: PageRequestSDKType; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwner { - /** address defines the address that owns a particular denomination. */ - address: string; - /** balance is the balance of the denominated coin for an account. */ - balance: Coin; -} -export interface DenomOwnerProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; - value: Uint8Array; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerAmino { - /** address defines the address that owns a particular denomination. */ - address?: string; - /** balance is the balance of the denominated coin for an account. */ - balance?: CoinAmino; -} -export interface DenomOwnerAminoMsg { - type: "cosmos-sdk/DenomOwner"; - value: DenomOwnerAmino; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerSDKType { - address: string; - balance: CoinSDKType; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponse { - denomOwners: DenomOwner[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomOwnersResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; - value: Uint8Array; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseAmino { - denom_owners?: DenomOwnerAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomOwnersResponseAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersResponse"; - value: QueryDenomOwnersResponseAmino; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseSDKType { - denom_owners: DenomOwnerSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromJSON(object: any): QueryBalanceRequest; - toJSON(message: QueryBalanceRequest): unknown; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromJSON(object: any): QueryBalanceResponse; - toJSON(message: QueryBalanceResponse): unknown; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QueryAllBalancesRequest: { - typeUrl: string; - encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; - fromJSON(object: any): QueryAllBalancesRequest; - toJSON(message: QueryAllBalancesRequest): unknown; - fromPartial(object: Partial): QueryAllBalancesRequest; - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; - toAminoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestAminoMsg; - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; - toProto(message: QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; -}; -export declare const QueryAllBalancesResponse: { - typeUrl: string; - encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; - fromJSON(object: any): QueryAllBalancesResponse; - toJSON(message: QueryAllBalancesResponse): unknown; - fromPartial(object: Partial): QueryAllBalancesResponse; - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; - toAminoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseAminoMsg; - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; - toProto(message: QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; -}; -export declare const QuerySpendableBalancesRequest: { - typeUrl: string; - encode(message: QuerySpendableBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest; - fromJSON(object: any): QuerySpendableBalancesRequest; - toJSON(message: QuerySpendableBalancesRequest): unknown; - fromPartial(object: Partial): QuerySpendableBalancesRequest; - fromAmino(object: QuerySpendableBalancesRequestAmino): QuerySpendableBalancesRequest; - toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino; - fromAminoMsg(object: QuerySpendableBalancesRequestAminoMsg): QuerySpendableBalancesRequest; - toAminoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAminoMsg; - fromProtoMsg(message: QuerySpendableBalancesRequestProtoMsg): QuerySpendableBalancesRequest; - toProto(message: QuerySpendableBalancesRequest): Uint8Array; - toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg; -}; -export declare const QuerySpendableBalancesResponse: { - typeUrl: string; - encode(message: QuerySpendableBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse; - fromJSON(object: any): QuerySpendableBalancesResponse; - toJSON(message: QuerySpendableBalancesResponse): unknown; - fromPartial(object: Partial): QuerySpendableBalancesResponse; - fromAmino(object: QuerySpendableBalancesResponseAmino): QuerySpendableBalancesResponse; - toAmino(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAmino; - fromAminoMsg(object: QuerySpendableBalancesResponseAminoMsg): QuerySpendableBalancesResponse; - toAminoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAminoMsg; - fromProtoMsg(message: QuerySpendableBalancesResponseProtoMsg): QuerySpendableBalancesResponse; - toProto(message: QuerySpendableBalancesResponse): Uint8Array; - toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg; -}; -export declare const QueryTotalSupplyRequest: { - typeUrl: string; - encode(message: QueryTotalSupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest; - fromJSON(object: any): QueryTotalSupplyRequest; - toJSON(message: QueryTotalSupplyRequest): unknown; - fromPartial(object: Partial): QueryTotalSupplyRequest; - fromAmino(object: QueryTotalSupplyRequestAmino): QueryTotalSupplyRequest; - toAmino(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAmino; - fromAminoMsg(object: QueryTotalSupplyRequestAminoMsg): QueryTotalSupplyRequest; - toAminoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAminoMsg; - fromProtoMsg(message: QueryTotalSupplyRequestProtoMsg): QueryTotalSupplyRequest; - toProto(message: QueryTotalSupplyRequest): Uint8Array; - toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg; -}; -export declare const QueryTotalSupplyResponse: { - typeUrl: string; - encode(message: QueryTotalSupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse; - fromJSON(object: any): QueryTotalSupplyResponse; - toJSON(message: QueryTotalSupplyResponse): unknown; - fromPartial(object: Partial): QueryTotalSupplyResponse; - fromAmino(object: QueryTotalSupplyResponseAmino): QueryTotalSupplyResponse; - toAmino(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAmino; - fromAminoMsg(object: QueryTotalSupplyResponseAminoMsg): QueryTotalSupplyResponse; - toAminoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAminoMsg; - fromProtoMsg(message: QueryTotalSupplyResponseProtoMsg): QueryTotalSupplyResponse; - toProto(message: QueryTotalSupplyResponse): Uint8Array; - toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg; -}; -export declare const QuerySupplyOfRequest: { - typeUrl: string; - encode(message: QuerySupplyOfRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest; - fromJSON(object: any): QuerySupplyOfRequest; - toJSON(message: QuerySupplyOfRequest): unknown; - fromPartial(object: Partial): QuerySupplyOfRequest; - fromAmino(object: QuerySupplyOfRequestAmino): QuerySupplyOfRequest; - toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino; - fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest; - toAminoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestAminoMsg; - fromProtoMsg(message: QuerySupplyOfRequestProtoMsg): QuerySupplyOfRequest; - toProto(message: QuerySupplyOfRequest): Uint8Array; - toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg; -}; -export declare const QuerySupplyOfResponse: { - typeUrl: string; - encode(message: QuerySupplyOfResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse; - fromJSON(object: any): QuerySupplyOfResponse; - toJSON(message: QuerySupplyOfResponse): unknown; - fromPartial(object: Partial): QuerySupplyOfResponse; - fromAmino(object: QuerySupplyOfResponseAmino): QuerySupplyOfResponse; - toAmino(message: QuerySupplyOfResponse): QuerySupplyOfResponseAmino; - fromAminoMsg(object: QuerySupplyOfResponseAminoMsg): QuerySupplyOfResponse; - toAminoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseAminoMsg; - fromProtoMsg(message: QuerySupplyOfResponseProtoMsg): QuerySupplyOfResponse; - toProto(message: QuerySupplyOfResponse): Uint8Array; - toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDenomsMetadataRequest: { - typeUrl: string; - encode(message: QueryDenomsMetadataRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest; - fromJSON(object: any): QueryDenomsMetadataRequest; - toJSON(message: QueryDenomsMetadataRequest): unknown; - fromPartial(object: Partial): QueryDenomsMetadataRequest; - fromAmino(object: QueryDenomsMetadataRequestAmino): QueryDenomsMetadataRequest; - toAmino(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAmino; - fromAminoMsg(object: QueryDenomsMetadataRequestAminoMsg): QueryDenomsMetadataRequest; - toAminoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAminoMsg; - fromProtoMsg(message: QueryDenomsMetadataRequestProtoMsg): QueryDenomsMetadataRequest; - toProto(message: QueryDenomsMetadataRequest): Uint8Array; - toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg; -}; -export declare const QueryDenomsMetadataResponse: { - typeUrl: string; - encode(message: QueryDenomsMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse; - fromJSON(object: any): QueryDenomsMetadataResponse; - toJSON(message: QueryDenomsMetadataResponse): unknown; - fromPartial(object: Partial): QueryDenomsMetadataResponse; - fromAmino(object: QueryDenomsMetadataResponseAmino): QueryDenomsMetadataResponse; - toAmino(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAmino; - fromAminoMsg(object: QueryDenomsMetadataResponseAminoMsg): QueryDenomsMetadataResponse; - toAminoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAminoMsg; - fromProtoMsg(message: QueryDenomsMetadataResponseProtoMsg): QueryDenomsMetadataResponse; - toProto(message: QueryDenomsMetadataResponse): Uint8Array; - toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg; -}; -export declare const QueryDenomMetadataRequest: { - typeUrl: string; - encode(message: QueryDenomMetadataRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest; - fromJSON(object: any): QueryDenomMetadataRequest; - toJSON(message: QueryDenomMetadataRequest): unknown; - fromPartial(object: Partial): QueryDenomMetadataRequest; - fromAmino(object: QueryDenomMetadataRequestAmino): QueryDenomMetadataRequest; - toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino; - fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest; - toAminoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAminoMsg; - fromProtoMsg(message: QueryDenomMetadataRequestProtoMsg): QueryDenomMetadataRequest; - toProto(message: QueryDenomMetadataRequest): Uint8Array; - toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg; -}; -export declare const QueryDenomMetadataResponse: { - typeUrl: string; - encode(message: QueryDenomMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse; - fromJSON(object: any): QueryDenomMetadataResponse; - toJSON(message: QueryDenomMetadataResponse): unknown; - fromPartial(object: Partial): QueryDenomMetadataResponse; - fromAmino(object: QueryDenomMetadataResponseAmino): QueryDenomMetadataResponse; - toAmino(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAmino; - fromAminoMsg(object: QueryDenomMetadataResponseAminoMsg): QueryDenomMetadataResponse; - toAminoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAminoMsg; - fromProtoMsg(message: QueryDenomMetadataResponseProtoMsg): QueryDenomMetadataResponse; - toProto(message: QueryDenomMetadataResponse): Uint8Array; - toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg; -}; -export declare const QueryDenomOwnersRequest: { - typeUrl: string; - encode(message: QueryDenomOwnersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest; - fromJSON(object: any): QueryDenomOwnersRequest; - toJSON(message: QueryDenomOwnersRequest): unknown; - fromPartial(object: Partial): QueryDenomOwnersRequest; - fromAmino(object: QueryDenomOwnersRequestAmino): QueryDenomOwnersRequest; - toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino; - fromAminoMsg(object: QueryDenomOwnersRequestAminoMsg): QueryDenomOwnersRequest; - toAminoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAminoMsg; - fromProtoMsg(message: QueryDenomOwnersRequestProtoMsg): QueryDenomOwnersRequest; - toProto(message: QueryDenomOwnersRequest): Uint8Array; - toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg; -}; -export declare const DenomOwner: { - typeUrl: string; - encode(message: DenomOwner, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner; - fromJSON(object: any): DenomOwner; - toJSON(message: DenomOwner): unknown; - fromPartial(object: Partial): DenomOwner; - fromAmino(object: DenomOwnerAmino): DenomOwner; - toAmino(message: DenomOwner): DenomOwnerAmino; - fromAminoMsg(object: DenomOwnerAminoMsg): DenomOwner; - toAminoMsg(message: DenomOwner): DenomOwnerAminoMsg; - fromProtoMsg(message: DenomOwnerProtoMsg): DenomOwner; - toProto(message: DenomOwner): Uint8Array; - toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg; -}; -export declare const QueryDenomOwnersResponse: { - typeUrl: string; - encode(message: QueryDenomOwnersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse; - fromJSON(object: any): QueryDenomOwnersResponse; - toJSON(message: QueryDenomOwnersResponse): unknown; - fromPartial(object: Partial): QueryDenomOwnersResponse; - fromAmino(object: QueryDenomOwnersResponseAmino): QueryDenomOwnersResponse; - toAmino(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAmino; - fromAminoMsg(object: QueryDenomOwnersResponseAminoMsg): QueryDenomOwnersResponse; - toAminoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAminoMsg; - fromProtoMsg(message: QueryDenomOwnersResponseProtoMsg): QueryDenomOwnersResponse; - toProto(message: QueryDenomOwnersResponse): Uint8Array; - toProtoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts deleted file mode 100644 index 3ae16b28..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - balance(params: QueryBalanceRequest): Promise; - allBalances(params: QueryAllBalancesRequest): Promise; - spendableBalances(params: QuerySpendableBalancesRequest): Promise; - totalSupply(params?: QueryTotalSupplyRequest): Promise; - supplyOf(params: QuerySupplyOfRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - denomMetadata(params: QueryDenomMetadataRequest): Promise; - denomsMetadata(params?: QueryDenomsMetadataRequest): Promise; - denomOwners(params: QueryDenomOwnersRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index e4a79cca..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Balance queries the balance of a single coin for a single account. */ - balance(request: QueryBalanceRequest): Promise; - /** AllBalances queries the balance of all coins for a single account. */ - allBalances(request: QueryAllBalancesRequest): Promise; - /** - * SpendableBalances queries the spenable balance of all coins for a single - * account. - * - * Since: cosmos-sdk 0.46 - */ - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - /** TotalSupply queries the total supply of all coins. */ - totalSupply(request?: QueryTotalSupplyRequest): Promise; - /** SupplyOf queries the supply of a single coin. */ - supplyOf(request: QuerySupplyOfRequest): Promise; - /** Params queries the parameters of x/bank module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomsMetadata queries the client metadata of a given coin denomination. */ - denomMetadata(request: QueryDenomMetadataRequest): Promise; - /** - * DenomsMetadata queries the client metadata for all registered coin - * denominations. - */ - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - /** - * DenomOwners queries for all account addresses that own a particular token - * denomination. - * - * Since: cosmos-sdk 0.46 - */ - denomOwners(request: QueryDenomOwnersRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - balance(request: QueryBalanceRequest): Promise; - allBalances(request: QueryAllBalancesRequest): Promise; - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - totalSupply(request?: QueryTotalSupplyRequest): Promise; - supplyOf(request: QuerySupplyOfRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomMetadata(request: QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - denomOwners(request: QueryDenomOwnersRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - balance(request: QueryBalanceRequest): Promise; - allBalances(request: QueryAllBalancesRequest): Promise; - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - totalSupply(request?: QueryTotalSupplyRequest): Promise; - supplyOf(request: QuerySupplyOfRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomMetadata(request: QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - denomOwners(request: QueryDenomOwnersRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts deleted file mode 100644 index ad7ed74a..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSend, MsgMultiSend } from "./tx"; -export declare const AminoConverter: { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: MsgMultiSend) => import("./tx").MsgMultiSendAmino; - fromAmino: (object: import("./tx").MsgMultiSendAmino) => MsgMultiSend; - }; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts deleted file mode 100644 index ecde06fe..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.d.ts +++ /dev/null @@ -1,146 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSend { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSend { - inputs: Input[]; - outputs: Output[]; -} -export interface MsgMultiSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; - value: Uint8Array; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendAmino { - inputs?: InputAmino[]; - outputs?: OutputAmino[]; -} -export interface MsgMultiSendAminoMsg { - type: "cosmos-sdk/MsgMultiSend"; - value: MsgMultiSendAmino; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendSDKType { - inputs: InputSDKType[]; - outputs: OutputSDKType[]; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponse { -} -export interface MsgMultiSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; - value: Uint8Array; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseAmino { -} -export interface MsgMultiSendResponseAminoMsg { - type: "cosmos-sdk/MsgMultiSendResponse"; - value: MsgMultiSendResponseAmino; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseSDKType { -} -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromJSON(object: any): MsgSend; - toJSON(message: MsgSend): unknown; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - toAminoMsg(message: MsgSend): MsgSendAminoMsg; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromJSON(_: any): MsgSendResponse; - toJSON(_: MsgSendResponse): unknown; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgMultiSend: { - typeUrl: string; - encode(message: MsgMultiSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend; - fromJSON(object: any): MsgMultiSend; - toJSON(message: MsgMultiSend): unknown; - fromPartial(object: Partial): MsgMultiSend; - fromAmino(object: MsgMultiSendAmino): MsgMultiSend; - toAmino(message: MsgMultiSend): MsgMultiSendAmino; - fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend; - toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg; - fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend; - toProto(message: MsgMultiSend): Uint8Array; - toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg; -}; -export declare const MsgMultiSendResponse: { - typeUrl: string; - encode(_: MsgMultiSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse; - fromJSON(_: any): MsgMultiSendResponse; - toJSON(_: MsgMultiSendResponse): unknown; - fromPartial(_: Partial): MsgMultiSendResponse; - fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse; - toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino; - fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse; - toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg; - fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse; - toProto(message: MsgMultiSendResponse): Uint8Array; - toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts deleted file mode 100644 index 65fc0e8d..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend, MsgMultiSend } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: MsgMultiSend; - }; - }; - toJSON: { - send(value: MsgSend): { - typeUrl: string; - value: unknown; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - send(value: any): { - typeUrl: string; - value: MsgSend; - }; - multiSend(value: any): { - typeUrl: string; - value: MsgMultiSend; - }; - }; - fromPartial: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: MsgMultiSend; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index ac12e6ab..00000000 --- a/packages/api/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** Send defines a method for sending coins from one account to another account. */ - send(request: MsgSend): Promise; - /** MultiSend defines a method for sending coins from some accounts to other accounts. */ - multiSend(request: MsgMultiSend): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - send(request: MsgSend): Promise; - multiSend(request: MsgMultiSend): Promise; -} diff --git a/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts b/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts deleted file mode 100644 index 9665f9b8..00000000 --- a/packages/api/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +++ /dev/null @@ -1,622 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponse { - /** The block height */ - height: bigint; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - rawLog: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLog[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gasWanted: bigint; - /** Amount of gas consumed by transaction. */ - gasUsed: bigint; - /** The request transaction bytes. */ - tx?: Any; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: Event[]; -} -export interface TxResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; - value: Uint8Array; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseAmino { - /** The block height */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** Response code. */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: ABCIMessageLogAmino[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** Amount of gas requested for transaction. */ - gas_wanted?: string; - /** Amount of gas consumed by transaction. */ - gas_used?: string; - /** The request transaction bytes. */ - tx?: AnyAmino; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events?: EventAmino[]; -} -export interface TxResponseAminoMsg { - type: "cosmos-sdk/TxResponse"; - value: TxResponseAmino; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseSDKType { - height: bigint; - txhash: string; - codespace: string; - code: number; - data: string; - raw_log: string; - logs: ABCIMessageLogSDKType[]; - info: string; - gas_wanted: bigint; - gas_used: bigint; - tx?: AnySDKType; - timestamp: string; - events: EventSDKType[]; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLog { - msgIndex: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEvent[]; -} -export interface ABCIMessageLogProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; - value: Uint8Array; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogAmino { - msg_index: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: StringEventAmino[]; -} -export interface ABCIMessageLogAminoMsg { - type: "cosmos-sdk/ABCIMessageLog"; - value: ABCIMessageLogAmino; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogSDKType { - msg_index: number; - log: string; - events: StringEventSDKType[]; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEvent { - type: string; - attributes: Attribute[]; -} -export interface StringEventProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; - value: Uint8Array; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventAmino { - type?: string; - attributes?: AttributeAmino[]; -} -export interface StringEventAminoMsg { - type: "cosmos-sdk/StringEvent"; - value: StringEventAmino; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventSDKType { - type: string; - attributes: AttributeSDKType[]; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface Attribute { - key: string; - value: string; -} -export interface AttributeProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; - value: Uint8Array; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeAmino { - key?: string; - value?: string; -} -export interface AttributeAminoMsg { - type: "cosmos-sdk/Attribute"; - value: AttributeAmino; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeSDKType { - key: string; - value: string; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfo { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: bigint; - /** GasUsed is the amount of gas actually consumed. */ - gasUsed: bigint; -} -export interface GasInfoProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; - value: Uint8Array; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoAmino { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted?: string; - /** GasUsed is the amount of gas actually consumed. */ - gas_used?: string; -} -export interface GasInfoAminoMsg { - type: "cosmos-sdk/GasInfo"; - value: GasInfoAmino; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoSDKType { - gas_wanted: bigint; - gas_used: bigint; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: Event[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface ResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Result"; - value: Uint8Array; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultAmino { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: EventAmino[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface ResultAminoMsg { - type: "cosmos-sdk/Result"; - value: ResultAmino; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultSDKType { - /** @deprecated */ - data: Uint8Array; - log: string; - events: EventSDKType[]; - msg_responses: AnySDKType[]; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponse { - gasInfo: GasInfo; - result?: Result; -} -export interface SimulationResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; - value: Uint8Array; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseAmino { - gas_info?: GasInfoAmino; - result?: ResultAmino; -} -export interface SimulationResponseAminoMsg { - type: "cosmos-sdk/SimulationResponse"; - value: SimulationResponseAmino; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseSDKType { - gas_info: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgData { - msgType: string; - data: Uint8Array; -} -export interface MsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; - value: Uint8Array; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataAmino { - msg_type?: string; - data?: string; -} -export interface MsgDataAminoMsg { - type: "cosmos-sdk/MsgData"; - value: MsgDataAmino; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataSDKType { - msg_type: string; - data: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgData { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgData[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface TxMsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; - value: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataAmino { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data?: MsgDataAmino[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface TxMsgDataAminoMsg { - type: "cosmos-sdk/TxMsgData"; - value: TxMsgDataAmino; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataSDKType { - /** @deprecated */ - data: MsgDataSDKType[]; - msg_responses: AnySDKType[]; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResult { - /** Count of all txs */ - totalCount: bigint; - /** Count of txs in current page */ - count: bigint; - /** Index of current page, start from 1 */ - pageNumber: bigint; - /** Count of total pages */ - pageTotal: bigint; - /** Max count txs per page */ - limit: bigint; - /** List of txs in current page */ - txs: TxResponse[]; -} -export interface SearchTxsResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; - value: Uint8Array; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultAmino { - /** Count of all txs */ - total_count?: string; - /** Count of txs in current page */ - count?: string; - /** Index of current page, start from 1 */ - page_number?: string; - /** Count of total pages */ - page_total?: string; - /** Max count txs per page */ - limit?: string; - /** List of txs in current page */ - txs?: TxResponseAmino[]; -} -export interface SearchTxsResultAminoMsg { - type: "cosmos-sdk/SearchTxsResult"; - value: SearchTxsResultAmino; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultSDKType { - total_count: bigint; - count: bigint; - page_number: bigint; - page_total: bigint; - limit: bigint; - txs: TxResponseSDKType[]; -} -export declare const TxResponse: { - typeUrl: string; - encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; - fromJSON(object: any): TxResponse; - toJSON(message: TxResponse): unknown; - fromPartial(object: Partial): TxResponse; - fromAmino(object: TxResponseAmino): TxResponse; - toAmino(message: TxResponse): TxResponseAmino; - fromAminoMsg(object: TxResponseAminoMsg): TxResponse; - toAminoMsg(message: TxResponse): TxResponseAminoMsg; - fromProtoMsg(message: TxResponseProtoMsg): TxResponse; - toProto(message: TxResponse): Uint8Array; - toProtoMsg(message: TxResponse): TxResponseProtoMsg; -}; -export declare const ABCIMessageLog: { - typeUrl: string; - encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; - fromJSON(object: any): ABCIMessageLog; - toJSON(message: ABCIMessageLog): unknown; - fromPartial(object: Partial): ABCIMessageLog; - fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog; - toAmino(message: ABCIMessageLog): ABCIMessageLogAmino; - fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog; - toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg; - fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog; - toProto(message: ABCIMessageLog): Uint8Array; - toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg; -}; -export declare const StringEvent: { - typeUrl: string; - encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; - fromJSON(object: any): StringEvent; - toJSON(message: StringEvent): unknown; - fromPartial(object: Partial): StringEvent; - fromAmino(object: StringEventAmino): StringEvent; - toAmino(message: StringEvent): StringEventAmino; - fromAminoMsg(object: StringEventAminoMsg): StringEvent; - toAminoMsg(message: StringEvent): StringEventAminoMsg; - fromProtoMsg(message: StringEventProtoMsg): StringEvent; - toProto(message: StringEvent): Uint8Array; - toProtoMsg(message: StringEvent): StringEventProtoMsg; -}; -export declare const Attribute: { - typeUrl: string; - encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Attribute; - fromJSON(object: any): Attribute; - toJSON(message: Attribute): unknown; - fromPartial(object: Partial): Attribute; - fromAmino(object: AttributeAmino): Attribute; - toAmino(message: Attribute): AttributeAmino; - fromAminoMsg(object: AttributeAminoMsg): Attribute; - toAminoMsg(message: Attribute): AttributeAminoMsg; - fromProtoMsg(message: AttributeProtoMsg): Attribute; - toProto(message: Attribute): Uint8Array; - toProtoMsg(message: Attribute): AttributeProtoMsg; -}; -export declare const GasInfo: { - typeUrl: string; - encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; - fromJSON(object: any): GasInfo; - toJSON(message: GasInfo): unknown; - fromPartial(object: Partial): GasInfo; - fromAmino(object: GasInfoAmino): GasInfo; - toAmino(message: GasInfo): GasInfoAmino; - fromAminoMsg(object: GasInfoAminoMsg): GasInfo; - toAminoMsg(message: GasInfo): GasInfoAminoMsg; - fromProtoMsg(message: GasInfoProtoMsg): GasInfo; - toProto(message: GasInfo): Uint8Array; - toProtoMsg(message: GasInfo): GasInfoProtoMsg; -}; -export declare const Result: { - typeUrl: string; - encode(message: Result, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Result; - fromJSON(object: any): Result; - toJSON(message: Result): unknown; - fromPartial(object: Partial): Result; - fromAmino(object: ResultAmino): Result; - toAmino(message: Result): ResultAmino; - fromAminoMsg(object: ResultAminoMsg): Result; - toAminoMsg(message: Result): ResultAminoMsg; - fromProtoMsg(message: ResultProtoMsg): Result; - toProto(message: Result): Uint8Array; - toProtoMsg(message: Result): ResultProtoMsg; -}; -export declare const SimulationResponse: { - typeUrl: string; - encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; - fromJSON(object: any): SimulationResponse; - toJSON(message: SimulationResponse): unknown; - fromPartial(object: Partial): SimulationResponse; - fromAmino(object: SimulationResponseAmino): SimulationResponse; - toAmino(message: SimulationResponse): SimulationResponseAmino; - fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse; - toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg; - fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse; - toProto(message: SimulationResponse): Uint8Array; - toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg; -}; -export declare const MsgData: { - typeUrl: string; - encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgData; - fromJSON(object: any): MsgData; - toJSON(message: MsgData): unknown; - fromPartial(object: Partial): MsgData; - fromAmino(object: MsgDataAmino): MsgData; - toAmino(message: MsgData): MsgDataAmino; - fromAminoMsg(object: MsgDataAminoMsg): MsgData; - toAminoMsg(message: MsgData): MsgDataAminoMsg; - fromProtoMsg(message: MsgDataProtoMsg): MsgData; - toProto(message: MsgData): Uint8Array; - toProtoMsg(message: MsgData): MsgDataProtoMsg; -}; -export declare const TxMsgData: { - typeUrl: string; - encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; - fromJSON(object: any): TxMsgData; - toJSON(message: TxMsgData): unknown; - fromPartial(object: Partial): TxMsgData; - fromAmino(object: TxMsgDataAmino): TxMsgData; - toAmino(message: TxMsgData): TxMsgDataAmino; - fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData; - toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg; - fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData; - toProto(message: TxMsgData): Uint8Array; - toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg; -}; -export declare const SearchTxsResult: { - typeUrl: string; - encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; - fromJSON(object: any): SearchTxsResult; - toJSON(message: SearchTxsResult): unknown; - fromPartial(object: Partial): SearchTxsResult; - fromAmino(object: SearchTxsResultAmino): SearchTxsResult; - toAmino(message: SearchTxsResult): SearchTxsResultAmino; - fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult; - toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg; - fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult; - toProto(message: SearchTxsResult): Uint8Array; - toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts b/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts deleted file mode 100644 index 23fb4bd6..00000000 --- a/packages/api/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -export interface PairsProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pairs"; - value: Uint8Array; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsAmino { - pairs?: PairAmino[]; -} -export interface PairsAminoMsg { - type: "cosmos-sdk/Pairs"; - value: PairsAmino; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -export interface PairProtoMsg { - typeUrl: "/cosmos.base.kv.v1beta1.Pair"; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairAmino { - key?: string; - value?: string; -} -export interface PairAminoMsg { - type: "cosmos-sdk/Pair"; - value: PairAmino; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} -export declare const Pairs: { - typeUrl: string; - encode(message: Pairs, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Pairs; - fromJSON(object: any): Pairs; - toJSON(message: Pairs): unknown; - fromPartial(object: Partial): Pairs; - fromAmino(object: PairsAmino): Pairs; - toAmino(message: Pairs): PairsAmino; - fromAminoMsg(object: PairsAminoMsg): Pairs; - toAminoMsg(message: Pairs): PairsAminoMsg; - fromProtoMsg(message: PairsProtoMsg): Pairs; - toProto(message: Pairs): Uint8Array; - toProtoMsg(message: Pairs): PairsProtoMsg; -}; -export declare const Pair: { - typeUrl: string; - encode(message: Pair, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Pair; - fromJSON(object: any): Pair; - toJSON(message: Pair): unknown; - fromPartial(object: Partial): Pair; - fromAmino(object: PairAmino): Pair; - toAmino(message: Pair): PairAmino; - fromAminoMsg(object: PairAminoMsg): Pair; - toAminoMsg(message: Pair): PairAminoMsg; - fromProtoMsg(message: PairProtoMsg): Pair; - toProto(message: Pair): Uint8Array; - toProtoMsg(message: Pair): PairProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts deleted file mode 100644 index a8e4a2a3..00000000 --- a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequest { -} -export interface ConfigRequestProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest"; - value: Uint8Array; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestAmino { -} -export interface ConfigRequestAminoMsg { - type: "cosmos-sdk/ConfigRequest"; - value: ConfigRequestAmino; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestSDKType { -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponse { - minimumGasPrice: string; -} -export interface ConfigResponseProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse"; - value: Uint8Array; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseAmino { - minimum_gas_price?: string; -} -export interface ConfigResponseAminoMsg { - type: "cosmos-sdk/ConfigResponse"; - value: ConfigResponseAmino; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseSDKType { - minimum_gas_price: string; -} -export declare const ConfigRequest: { - typeUrl: string; - encode(_: ConfigRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest; - fromJSON(_: any): ConfigRequest; - toJSON(_: ConfigRequest): unknown; - fromPartial(_: Partial): ConfigRequest; - fromAmino(_: ConfigRequestAmino): ConfigRequest; - toAmino(_: ConfigRequest): ConfigRequestAmino; - fromAminoMsg(object: ConfigRequestAminoMsg): ConfigRequest; - toAminoMsg(message: ConfigRequest): ConfigRequestAminoMsg; - fromProtoMsg(message: ConfigRequestProtoMsg): ConfigRequest; - toProto(message: ConfigRequest): Uint8Array; - toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg; -}; -export declare const ConfigResponse: { - typeUrl: string; - encode(message: ConfigResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse; - fromJSON(object: any): ConfigResponse; - toJSON(message: ConfigResponse): unknown; - fromPartial(object: Partial): ConfigResponse; - fromAmino(object: ConfigResponseAmino): ConfigResponse; - toAmino(message: ConfigResponse): ConfigResponseAmino; - fromAminoMsg(object: ConfigResponseAminoMsg): ConfigResponse; - toAminoMsg(message: ConfigResponse): ConfigResponseAminoMsg; - fromProtoMsg(message: ConfigResponseProtoMsg): ConfigResponse; - toProto(message: ConfigResponse): Uint8Array; - toProtoMsg(message: ConfigResponse): ConfigResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts deleted file mode 100644 index 0855fb5b..00000000 --- a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { ConfigRequest, ConfigResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - config(_params?: ConfigRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.rpc.Service.d.ts b/packages/api/types/codegen/cosmos/base/node/v1beta1/query.rpc.Service.d.ts deleted file mode 100644 index f1f8deab..00000000 --- a/packages/api/types/codegen/cosmos/base/node/v1beta1/query.rpc.Service.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { ConfigRequest, ConfigResponse } from "./query"; -/** Service defines the gRPC querier service for node related queries. */ -export interface Service { - /** Config queries for the operator configuration. */ - config(request?: ConfigRequest): Promise; -} -export declare class ServiceClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - config(request?: ConfigRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - config(request?: ConfigRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts b/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts deleted file mode 100644 index c72e3a13..00000000 --- a/packages/api/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequest { - /** - * 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. - */ - key: Uint8Array; - /** - * 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. - */ - offset: bigint; - /** - * 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. - */ - limit: bigint; - /** - * 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. - */ - countTotal: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; - value: Uint8Array; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestAmino { - /** - * 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. - */ - key?: string; - /** - * 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. - */ - offset?: string; - /** - * 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. - */ - limit?: string; - /** - * 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. - */ - count_total?: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse?: boolean; -} -export interface PageRequestAminoMsg { - type: "cosmos-sdk/PageRequest"; - value: PageRequestAmino; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestSDKType { - key: Uint8Array; - offset: bigint; - limit: bigint; - count_total: boolean; - reverse: boolean; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - nextKey: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: bigint; -} -export interface PageResponseProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; - value: Uint8Array; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseAmino { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total?: string; -} -export interface PageResponseAminoMsg { - type: "cosmos-sdk/PageResponse"; - value: PageResponseAmino; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseSDKType { - next_key: Uint8Array; - total: bigint; -} -export declare const PageRequest: { - typeUrl: string; - encode(message: PageRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PageRequest; - fromJSON(object: any): PageRequest; - toJSON(message: PageRequest): unknown; - fromPartial(object: Partial): PageRequest; - fromAmino(object: PageRequestAmino): PageRequest; - toAmino(message: PageRequest): PageRequestAmino; - fromAminoMsg(object: PageRequestAminoMsg): PageRequest; - toAminoMsg(message: PageRequest): PageRequestAminoMsg; - fromProtoMsg(message: PageRequestProtoMsg): PageRequest; - toProto(message: PageRequest): Uint8Array; - toProtoMsg(message: PageRequest): PageRequestProtoMsg; -}; -export declare const PageResponse: { - typeUrl: string; - encode(message: PageResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PageResponse; - fromJSON(object: any): PageResponse; - toJSON(message: PageResponse): unknown; - fromPartial(object: Partial): PageResponse; - fromAmino(object: PageResponseAmino): PageResponse; - toAmino(message: PageResponse): PageResponseAmino; - fromAminoMsg(object: PageResponseAminoMsg): PageResponse; - toAminoMsg(message: PageResponse): PageResponseAminoMsg; - fromProtoMsg(message: PageResponseProtoMsg): PageResponse; - toProto(message: PageResponse): Uint8Array; - toProtoMsg(message: PageResponse): PageResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts b/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts deleted file mode 100644 index 05c53b19..00000000 --- a/packages/api/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest { -} -export interface ListAllInterfacesRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; - value: Uint8Array; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestAmino { -} -export interface ListAllInterfacesRequestAminoMsg { - type: "cosmos-sdk/ListAllInterfacesRequest"; - value: ListAllInterfacesRequestAmino; -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType { -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -export interface ListAllInterfacesResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; - value: Uint8Array; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseAmino { - /** interface_names is an array of all the registered interfaces. */ - interface_names?: string[]; -} -export interface ListAllInterfacesResponseAminoMsg { - type: "cosmos-sdk/ListAllInterfacesResponse"; - value: ListAllInterfacesResponseAmino; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -export interface ListImplementationsRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; - value: Uint8Array; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestAmino { - /** interface_name defines the interface to query the implementations for. */ - interface_name?: string; -} -export interface ListImplementationsRequestAminoMsg { - type: "cosmos-sdk/ListImplementationsRequest"; - value: ListImplementationsRequestAmino; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -export interface ListImplementationsResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; - value: Uint8Array; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseAmino { - implementation_message_names?: string[]; -} -export interface ListImplementationsResponseAminoMsg { - type: "cosmos-sdk/ListImplementationsResponse"; - value: ListImplementationsResponseAmino; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} -export declare const ListAllInterfacesRequest: { - typeUrl: string; - encode(_: ListAllInterfacesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest; - fromJSON(_: any): ListAllInterfacesRequest; - toJSON(_: ListAllInterfacesRequest): unknown; - fromPartial(_: Partial): ListAllInterfacesRequest; - fromAmino(_: ListAllInterfacesRequestAmino): ListAllInterfacesRequest; - toAmino(_: ListAllInterfacesRequest): ListAllInterfacesRequestAmino; - fromAminoMsg(object: ListAllInterfacesRequestAminoMsg): ListAllInterfacesRequest; - toAminoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestAminoMsg; - fromProtoMsg(message: ListAllInterfacesRequestProtoMsg): ListAllInterfacesRequest; - toProto(message: ListAllInterfacesRequest): Uint8Array; - toProtoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestProtoMsg; -}; -export declare const ListAllInterfacesResponse: { - typeUrl: string; - encode(message: ListAllInterfacesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse; - fromJSON(object: any): ListAllInterfacesResponse; - toJSON(message: ListAllInterfacesResponse): unknown; - fromPartial(object: Partial): ListAllInterfacesResponse; - fromAmino(object: ListAllInterfacesResponseAmino): ListAllInterfacesResponse; - toAmino(message: ListAllInterfacesResponse): ListAllInterfacesResponseAmino; - fromAminoMsg(object: ListAllInterfacesResponseAminoMsg): ListAllInterfacesResponse; - toAminoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseAminoMsg; - fromProtoMsg(message: ListAllInterfacesResponseProtoMsg): ListAllInterfacesResponse; - toProto(message: ListAllInterfacesResponse): Uint8Array; - toProtoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseProtoMsg; -}; -export declare const ListImplementationsRequest: { - typeUrl: string; - encode(message: ListImplementationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest; - fromJSON(object: any): ListImplementationsRequest; - toJSON(message: ListImplementationsRequest): unknown; - fromPartial(object: Partial): ListImplementationsRequest; - fromAmino(object: ListImplementationsRequestAmino): ListImplementationsRequest; - toAmino(message: ListImplementationsRequest): ListImplementationsRequestAmino; - fromAminoMsg(object: ListImplementationsRequestAminoMsg): ListImplementationsRequest; - toAminoMsg(message: ListImplementationsRequest): ListImplementationsRequestAminoMsg; - fromProtoMsg(message: ListImplementationsRequestProtoMsg): ListImplementationsRequest; - toProto(message: ListImplementationsRequest): Uint8Array; - toProtoMsg(message: ListImplementationsRequest): ListImplementationsRequestProtoMsg; -}; -export declare const ListImplementationsResponse: { - typeUrl: string; - encode(message: ListImplementationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse; - fromJSON(object: any): ListImplementationsResponse; - toJSON(message: ListImplementationsResponse): unknown; - fromPartial(object: Partial): ListImplementationsResponse; - fromAmino(object: ListImplementationsResponseAmino): ListImplementationsResponse; - toAmino(message: ListImplementationsResponse): ListImplementationsResponseAmino; - fromAminoMsg(object: ListImplementationsResponseAminoMsg): ListImplementationsResponse; - toAminoMsg(message: ListImplementationsResponse): ListImplementationsResponseAminoMsg; - fromProtoMsg(message: ListImplementationsResponseProtoMsg): ListImplementationsResponse; - toProto(message: ListImplementationsResponse): Uint8Array; - toProtoMsg(message: ListImplementationsResponse): ListImplementationsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts b/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts deleted file mode 100644 index 25485ec9..00000000 --- a/packages/api/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +++ /dev/null @@ -1,1109 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptor { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptor; - /** chain provides the chain descriptor */ - chain?: ChainDescriptor; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptor; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptor; - /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices?: QueryServicesDescriptor; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptor; -} -export interface AppDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; - value: Uint8Array; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorAmino { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptorAmino; - /** chain provides the chain descriptor */ - chain?: ChainDescriptorAmino; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptorAmino; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptorAmino; - /** query_services provides metadata information regarding the available queriable endpoints */ - query_services?: QueryServicesDescriptorAmino; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptorAmino; -} -export interface AppDescriptorAminoMsg { - type: "cosmos-sdk/AppDescriptor"; - value: AppDescriptorAmino; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorSDKType { - authn?: AuthnDescriptorSDKType; - chain?: ChainDescriptorSDKType; - codec?: CodecDescriptorSDKType; - configuration?: ConfigurationDescriptorSDKType; - query_services?: QueryServicesDescriptorSDKType; - tx?: TxDescriptorSDKType; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptor { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptor[]; -} -export interface TxDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; - value: Uint8Array; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorAmino { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname?: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs?: MsgDescriptorAmino[]; -} -export interface TxDescriptorAminoMsg { - type: "cosmos-sdk/TxDescriptor"; - value: TxDescriptorAmino; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorSDKType { - fullname: string; - msgs: MsgDescriptorSDKType[]; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptor { - /** sign_modes defines the supported signature algorithm */ - signModes: SigningModeDescriptor[]; -} -export interface AuthnDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - value: Uint8Array; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorAmino { - /** sign_modes defines the supported signature algorithm */ - sign_modes?: SigningModeDescriptorAmino[]; -} -export interface AuthnDescriptorAminoMsg { - type: "cosmos-sdk/AuthnDescriptor"; - value: AuthnDescriptorAmino; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorSDKType { - sign_modes: SigningModeDescriptorSDKType[]; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptor { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authnInfoProviderMethodFullname: string; -} -export interface SigningModeDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - value: Uint8Array; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorAmino { - /** name defines the unique name of the signing mode */ - name?: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number?: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authn_info_provider_method_fullname?: string; -} -export interface SigningModeDescriptorAminoMsg { - type: "cosmos-sdk/SigningModeDescriptor"; - value: SigningModeDescriptorAmino; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorSDKType { - name: string; - number: number; - authn_info_provider_method_fullname: string; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptor { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; - value: Uint8Array; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorAmino { - /** id is the chain id */ - id?: string; -} -export interface ChainDescriptorAminoMsg { - type: "cosmos-sdk/ChainDescriptor"; - value: ChainDescriptorAmino; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorSDKType { - id: string; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptor { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptor[]; -} -export interface CodecDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; - value: Uint8Array; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorAmino { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces?: InterfaceDescriptorAmino[]; -} -export interface CodecDescriptorAminoMsg { - type: "cosmos-sdk/CodecDescriptor"; - value: CodecDescriptorAmino; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorSDKType { - interfaces: InterfaceDescriptorSDKType[]; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptor { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interfaceImplementers: InterfaceImplementerDescriptor[]; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - value: Uint8Array; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorAmino { - /** fullname is the name of the interface */ - fullname?: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers?: InterfaceImplementerDescriptorAmino[]; -} -export interface InterfaceDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorSDKType { - fullname: string; - interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; - interface_implementers: InterfaceImplementerDescriptorSDKType[]; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptor { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - typeUrl: string; -} -export interface InterfaceImplementerDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - value: Uint8Array; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorAmino { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname?: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - type_url?: string; -} -export interface InterfaceImplementerDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceImplementerDescriptor"; - value: InterfaceImplementerDescriptorAmino; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorSDKType { - fullname: string; - type_url: string; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptor { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - fieldDescriptorNames: string[]; -} -export interface InterfaceAcceptingMessageDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - value: Uint8Array; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorAmino { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname?: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - field_descriptor_names?: string[]; -} -export interface InterfaceAcceptingMessageDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; - value: InterfaceAcceptingMessageDescriptorAmino; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorSDKType { - fullname: string; - field_descriptor_names: string[]; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptor { - /** bech32_account_address_prefix is the account address prefix */ - bech32AccountAddressPrefix: string; -} -export interface ConfigurationDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - value: Uint8Array; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorAmino { - /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix?: string; -} -export interface ConfigurationDescriptorAminoMsg { - type: "cosmos-sdk/ConfigurationDescriptor"; - value: ConfigurationDescriptorAmino; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorSDKType { - bech32_account_address_prefix: string; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptor { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msgTypeUrl: string; -} -export interface MsgDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; - value: Uint8Array; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorAmino { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url?: string; -} -export interface MsgDescriptorAminoMsg { - type: "cosmos-sdk/MsgDescriptor"; - value: MsgDescriptorAmino; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorSDKType { - msg_type_url: string; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequest { -} -export interface GetAuthnDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - value: Uint8Array; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestAmino { -} -export interface GetAuthnDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorRequest"; - value: GetAuthnDescriptorRequestAmino; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestSDKType { -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponse { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptor; -} -export interface GetAuthnDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - value: Uint8Array; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseAmino { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptorAmino; -} -export interface GetAuthnDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorResponse"; - value: GetAuthnDescriptorResponseAmino; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseSDKType { - authn?: AuthnDescriptorSDKType; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequest { -} -export interface GetChainDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - value: Uint8Array; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestAmino { -} -export interface GetChainDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetChainDescriptorRequest"; - value: GetChainDescriptorRequestAmino; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestSDKType { -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponse { - /** chain describes application chain information */ - chain?: ChainDescriptor; -} -export interface GetChainDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - value: Uint8Array; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseAmino { - /** chain describes application chain information */ - chain?: ChainDescriptorAmino; -} -export interface GetChainDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetChainDescriptorResponse"; - value: GetChainDescriptorResponseAmino; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseSDKType { - chain?: ChainDescriptorSDKType; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequest { -} -export interface GetCodecDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - value: Uint8Array; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestAmino { -} -export interface GetCodecDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorRequest"; - value: GetCodecDescriptorRequestAmino; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestSDKType { -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponse { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptor; -} -export interface GetCodecDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - value: Uint8Array; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseAmino { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptorAmino; -} -export interface GetCodecDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorResponse"; - value: GetCodecDescriptorResponseAmino; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseSDKType { - codec?: CodecDescriptorSDKType; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequest { -} -export interface GetConfigurationDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - value: Uint8Array; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestAmino { -} -export interface GetConfigurationDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorRequest"; - value: GetConfigurationDescriptorRequestAmino; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestSDKType { -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponse { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptor; -} -export interface GetConfigurationDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - value: Uint8Array; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseAmino { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptorAmino; -} -export interface GetConfigurationDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorResponse"; - value: GetConfigurationDescriptorResponseAmino; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseSDKType { - config?: ConfigurationDescriptorSDKType; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequest { -} -export interface GetQueryServicesDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestAmino { -} -export interface GetQueryServicesDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; - value: GetQueryServicesDescriptorRequestAmino; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestSDKType { -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponse { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptor; -} -export interface GetQueryServicesDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseAmino { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptorAmino; -} -export interface GetQueryServicesDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; - value: GetQueryServicesDescriptorResponseAmino; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseSDKType { - queries?: QueryServicesDescriptorSDKType; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequest { -} -export interface GetTxDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - value: Uint8Array; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestAmino { -} -export interface GetTxDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetTxDescriptorRequest"; - value: GetTxDescriptorRequestAmino; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestSDKType { -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponse { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptor; -} -export interface GetTxDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - value: Uint8Array; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseAmino { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptorAmino; -} -export interface GetTxDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetTxDescriptorResponse"; - value: GetTxDescriptorResponseAmino; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseSDKType { - tx?: TxDescriptorSDKType; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptor { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - queryServices: QueryServiceDescriptor[]; -} -export interface QueryServicesDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - value: Uint8Array; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorAmino { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services?: QueryServiceDescriptorAmino[]; -} -export interface QueryServicesDescriptorAminoMsg { - type: "cosmos-sdk/QueryServicesDescriptor"; - value: QueryServicesDescriptorAmino; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorSDKType { - query_services: QueryServiceDescriptorSDKType[]; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptor { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - isModule: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptor[]; -} -export interface QueryServiceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - value: Uint8Array; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorAmino { - /** fullname is the protobuf fullname of the service descriptor */ - fullname?: string; - /** is_module describes if this service is actually exposed by an application's module */ - is_module?: boolean; - /** methods provides a list of query service methods */ - methods?: QueryMethodDescriptorAmino[]; -} -export interface QueryServiceDescriptorAminoMsg { - type: "cosmos-sdk/QueryServiceDescriptor"; - value: QueryServiceDescriptorAmino; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorSDKType { - fullname: string; - is_module: boolean; - methods: QueryMethodDescriptorSDKType[]; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptor { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - fullQueryPath: string; -} -export interface QueryMethodDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - value: Uint8Array; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorAmino { - /** name is the protobuf name (not fullname) of the method */ - name?: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - full_query_path?: string; -} -export interface QueryMethodDescriptorAminoMsg { - type: "cosmos-sdk/QueryMethodDescriptor"; - value: QueryMethodDescriptorAmino; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorSDKType { - name: string; - full_query_path: string; -} -export declare const AppDescriptor: { - typeUrl: string; - encode(message: AppDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor; - fromJSON(object: any): AppDescriptor; - toJSON(message: AppDescriptor): unknown; - fromPartial(object: Partial): AppDescriptor; - fromAmino(object: AppDescriptorAmino): AppDescriptor; - toAmino(message: AppDescriptor): AppDescriptorAmino; - fromAminoMsg(object: AppDescriptorAminoMsg): AppDescriptor; - toAminoMsg(message: AppDescriptor): AppDescriptorAminoMsg; - fromProtoMsg(message: AppDescriptorProtoMsg): AppDescriptor; - toProto(message: AppDescriptor): Uint8Array; - toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg; -}; -export declare const TxDescriptor: { - typeUrl: string; - encode(message: TxDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor; - fromJSON(object: any): TxDescriptor; - toJSON(message: TxDescriptor): unknown; - fromPartial(object: Partial): TxDescriptor; - fromAmino(object: TxDescriptorAmino): TxDescriptor; - toAmino(message: TxDescriptor): TxDescriptorAmino; - fromAminoMsg(object: TxDescriptorAminoMsg): TxDescriptor; - toAminoMsg(message: TxDescriptor): TxDescriptorAminoMsg; - fromProtoMsg(message: TxDescriptorProtoMsg): TxDescriptor; - toProto(message: TxDescriptor): Uint8Array; - toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg; -}; -export declare const AuthnDescriptor: { - typeUrl: string; - encode(message: AuthnDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor; - fromJSON(object: any): AuthnDescriptor; - toJSON(message: AuthnDescriptor): unknown; - fromPartial(object: Partial): AuthnDescriptor; - fromAmino(object: AuthnDescriptorAmino): AuthnDescriptor; - toAmino(message: AuthnDescriptor): AuthnDescriptorAmino; - fromAminoMsg(object: AuthnDescriptorAminoMsg): AuthnDescriptor; - toAminoMsg(message: AuthnDescriptor): AuthnDescriptorAminoMsg; - fromProtoMsg(message: AuthnDescriptorProtoMsg): AuthnDescriptor; - toProto(message: AuthnDescriptor): Uint8Array; - toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg; -}; -export declare const SigningModeDescriptor: { - typeUrl: string; - encode(message: SigningModeDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor; - fromJSON(object: any): SigningModeDescriptor; - toJSON(message: SigningModeDescriptor): unknown; - fromPartial(object: Partial): SigningModeDescriptor; - fromAmino(object: SigningModeDescriptorAmino): SigningModeDescriptor; - toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino; - fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor; - toAminoMsg(message: SigningModeDescriptor): SigningModeDescriptorAminoMsg; - fromProtoMsg(message: SigningModeDescriptorProtoMsg): SigningModeDescriptor; - toProto(message: SigningModeDescriptor): Uint8Array; - toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg; -}; -export declare const ChainDescriptor: { - typeUrl: string; - encode(message: ChainDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor; - fromJSON(object: any): ChainDescriptor; - toJSON(message: ChainDescriptor): unknown; - fromPartial(object: Partial): ChainDescriptor; - fromAmino(object: ChainDescriptorAmino): ChainDescriptor; - toAmino(message: ChainDescriptor): ChainDescriptorAmino; - fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor; - toAminoMsg(message: ChainDescriptor): ChainDescriptorAminoMsg; - fromProtoMsg(message: ChainDescriptorProtoMsg): ChainDescriptor; - toProto(message: ChainDescriptor): Uint8Array; - toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg; -}; -export declare const CodecDescriptor: { - typeUrl: string; - encode(message: CodecDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor; - fromJSON(object: any): CodecDescriptor; - toJSON(message: CodecDescriptor): unknown; - fromPartial(object: Partial): CodecDescriptor; - fromAmino(object: CodecDescriptorAmino): CodecDescriptor; - toAmino(message: CodecDescriptor): CodecDescriptorAmino; - fromAminoMsg(object: CodecDescriptorAminoMsg): CodecDescriptor; - toAminoMsg(message: CodecDescriptor): CodecDescriptorAminoMsg; - fromProtoMsg(message: CodecDescriptorProtoMsg): CodecDescriptor; - toProto(message: CodecDescriptor): Uint8Array; - toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg; -}; -export declare const InterfaceDescriptor: { - typeUrl: string; - encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; - fromJSON(object: any): InterfaceDescriptor; - toJSON(message: InterfaceDescriptor): unknown; - fromPartial(object: Partial): InterfaceDescriptor; - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; - toAminoMsg(message: InterfaceDescriptor): InterfaceDescriptorAminoMsg; - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; - toProto(message: InterfaceDescriptor): Uint8Array; - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; -}; -export declare const InterfaceImplementerDescriptor: { - typeUrl: string; - encode(message: InterfaceImplementerDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor; - fromJSON(object: any): InterfaceImplementerDescriptor; - toJSON(message: InterfaceImplementerDescriptor): unknown; - fromPartial(object: Partial): InterfaceImplementerDescriptor; - fromAmino(object: InterfaceImplementerDescriptorAmino): InterfaceImplementerDescriptor; - toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino; - fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor; - toAminoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAminoMsg; - fromProtoMsg(message: InterfaceImplementerDescriptorProtoMsg): InterfaceImplementerDescriptor; - toProto(message: InterfaceImplementerDescriptor): Uint8Array; - toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg; -}; -export declare const InterfaceAcceptingMessageDescriptor: { - typeUrl: string; - encode(message: InterfaceAcceptingMessageDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; - fromJSON(object: any): InterfaceAcceptingMessageDescriptor; - toJSON(message: InterfaceAcceptingMessageDescriptor): unknown; - fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor; - fromAmino(object: InterfaceAcceptingMessageDescriptorAmino): InterfaceAcceptingMessageDescriptor; - toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino; - fromAminoMsg(object: InterfaceAcceptingMessageDescriptorAminoMsg): InterfaceAcceptingMessageDescriptor; - toAminoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAminoMsg; - fromProtoMsg(message: InterfaceAcceptingMessageDescriptorProtoMsg): InterfaceAcceptingMessageDescriptor; - toProto(message: InterfaceAcceptingMessageDescriptor): Uint8Array; - toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg; -}; -export declare const ConfigurationDescriptor: { - typeUrl: string; - encode(message: ConfigurationDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor; - fromJSON(object: any): ConfigurationDescriptor; - toJSON(message: ConfigurationDescriptor): unknown; - fromPartial(object: Partial): ConfigurationDescriptor; - fromAmino(object: ConfigurationDescriptorAmino): ConfigurationDescriptor; - toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino; - fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor; - toAminoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorAminoMsg; - fromProtoMsg(message: ConfigurationDescriptorProtoMsg): ConfigurationDescriptor; - toProto(message: ConfigurationDescriptor): Uint8Array; - toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg; -}; -export declare const MsgDescriptor: { - typeUrl: string; - encode(message: MsgDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor; - fromJSON(object: any): MsgDescriptor; - toJSON(message: MsgDescriptor): unknown; - fromPartial(object: Partial): MsgDescriptor; - fromAmino(object: MsgDescriptorAmino): MsgDescriptor; - toAmino(message: MsgDescriptor): MsgDescriptorAmino; - fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor; - toAminoMsg(message: MsgDescriptor): MsgDescriptorAminoMsg; - fromProtoMsg(message: MsgDescriptorProtoMsg): MsgDescriptor; - toProto(message: MsgDescriptor): Uint8Array; - toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg; -}; -export declare const GetAuthnDescriptorRequest: { - typeUrl: string; - encode(_: GetAuthnDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest; - fromJSON(_: any): GetAuthnDescriptorRequest; - toJSON(_: GetAuthnDescriptorRequest): unknown; - fromPartial(_: Partial): GetAuthnDescriptorRequest; - fromAmino(_: GetAuthnDescriptorRequestAmino): GetAuthnDescriptorRequest; - toAmino(_: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAmino; - fromAminoMsg(object: GetAuthnDescriptorRequestAminoMsg): GetAuthnDescriptorRequest; - toAminoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAminoMsg; - fromProtoMsg(message: GetAuthnDescriptorRequestProtoMsg): GetAuthnDescriptorRequest; - toProto(message: GetAuthnDescriptorRequest): Uint8Array; - toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg; -}; -export declare const GetAuthnDescriptorResponse: { - typeUrl: string; - encode(message: GetAuthnDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse; - fromJSON(object: any): GetAuthnDescriptorResponse; - toJSON(message: GetAuthnDescriptorResponse): unknown; - fromPartial(object: Partial): GetAuthnDescriptorResponse; - fromAmino(object: GetAuthnDescriptorResponseAmino): GetAuthnDescriptorResponse; - toAmino(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAmino; - fromAminoMsg(object: GetAuthnDescriptorResponseAminoMsg): GetAuthnDescriptorResponse; - toAminoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAminoMsg; - fromProtoMsg(message: GetAuthnDescriptorResponseProtoMsg): GetAuthnDescriptorResponse; - toProto(message: GetAuthnDescriptorResponse): Uint8Array; - toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg; -}; -export declare const GetChainDescriptorRequest: { - typeUrl: string; - encode(_: GetChainDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest; - fromJSON(_: any): GetChainDescriptorRequest; - toJSON(_: GetChainDescriptorRequest): unknown; - fromPartial(_: Partial): GetChainDescriptorRequest; - fromAmino(_: GetChainDescriptorRequestAmino): GetChainDescriptorRequest; - toAmino(_: GetChainDescriptorRequest): GetChainDescriptorRequestAmino; - fromAminoMsg(object: GetChainDescriptorRequestAminoMsg): GetChainDescriptorRequest; - toAminoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestAminoMsg; - fromProtoMsg(message: GetChainDescriptorRequestProtoMsg): GetChainDescriptorRequest; - toProto(message: GetChainDescriptorRequest): Uint8Array; - toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg; -}; -export declare const GetChainDescriptorResponse: { - typeUrl: string; - encode(message: GetChainDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse; - fromJSON(object: any): GetChainDescriptorResponse; - toJSON(message: GetChainDescriptorResponse): unknown; - fromPartial(object: Partial): GetChainDescriptorResponse; - fromAmino(object: GetChainDescriptorResponseAmino): GetChainDescriptorResponse; - toAmino(message: GetChainDescriptorResponse): GetChainDescriptorResponseAmino; - fromAminoMsg(object: GetChainDescriptorResponseAminoMsg): GetChainDescriptorResponse; - toAminoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseAminoMsg; - fromProtoMsg(message: GetChainDescriptorResponseProtoMsg): GetChainDescriptorResponse; - toProto(message: GetChainDescriptorResponse): Uint8Array; - toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg; -}; -export declare const GetCodecDescriptorRequest: { - typeUrl: string; - encode(_: GetCodecDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest; - fromJSON(_: any): GetCodecDescriptorRequest; - toJSON(_: GetCodecDescriptorRequest): unknown; - fromPartial(_: Partial): GetCodecDescriptorRequest; - fromAmino(_: GetCodecDescriptorRequestAmino): GetCodecDescriptorRequest; - toAmino(_: GetCodecDescriptorRequest): GetCodecDescriptorRequestAmino; - fromAminoMsg(object: GetCodecDescriptorRequestAminoMsg): GetCodecDescriptorRequest; - toAminoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestAminoMsg; - fromProtoMsg(message: GetCodecDescriptorRequestProtoMsg): GetCodecDescriptorRequest; - toProto(message: GetCodecDescriptorRequest): Uint8Array; - toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg; -}; -export declare const GetCodecDescriptorResponse: { - typeUrl: string; - encode(message: GetCodecDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse; - fromJSON(object: any): GetCodecDescriptorResponse; - toJSON(message: GetCodecDescriptorResponse): unknown; - fromPartial(object: Partial): GetCodecDescriptorResponse; - fromAmino(object: GetCodecDescriptorResponseAmino): GetCodecDescriptorResponse; - toAmino(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAmino; - fromAminoMsg(object: GetCodecDescriptorResponseAminoMsg): GetCodecDescriptorResponse; - toAminoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAminoMsg; - fromProtoMsg(message: GetCodecDescriptorResponseProtoMsg): GetCodecDescriptorResponse; - toProto(message: GetCodecDescriptorResponse): Uint8Array; - toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg; -}; -export declare const GetConfigurationDescriptorRequest: { - typeUrl: string; - encode(_: GetConfigurationDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; - fromJSON(_: any): GetConfigurationDescriptorRequest; - toJSON(_: GetConfigurationDescriptorRequest): unknown; - fromPartial(_: Partial): GetConfigurationDescriptorRequest; - fromAmino(_: GetConfigurationDescriptorRequestAmino): GetConfigurationDescriptorRequest; - toAmino(_: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAmino; - fromAminoMsg(object: GetConfigurationDescriptorRequestAminoMsg): GetConfigurationDescriptorRequest; - toAminoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAminoMsg; - fromProtoMsg(message: GetConfigurationDescriptorRequestProtoMsg): GetConfigurationDescriptorRequest; - toProto(message: GetConfigurationDescriptorRequest): Uint8Array; - toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg; -}; -export declare const GetConfigurationDescriptorResponse: { - typeUrl: string; - encode(message: GetConfigurationDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; - fromJSON(object: any): GetConfigurationDescriptorResponse; - toJSON(message: GetConfigurationDescriptorResponse): unknown; - fromPartial(object: Partial): GetConfigurationDescriptorResponse; - fromAmino(object: GetConfigurationDescriptorResponseAmino): GetConfigurationDescriptorResponse; - toAmino(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAmino; - fromAminoMsg(object: GetConfigurationDescriptorResponseAminoMsg): GetConfigurationDescriptorResponse; - toAminoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAminoMsg; - fromProtoMsg(message: GetConfigurationDescriptorResponseProtoMsg): GetConfigurationDescriptorResponse; - toProto(message: GetConfigurationDescriptorResponse): Uint8Array; - toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg; -}; -export declare const GetQueryServicesDescriptorRequest: { - typeUrl: string; - encode(_: GetQueryServicesDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; - fromJSON(_: any): GetQueryServicesDescriptorRequest; - toJSON(_: GetQueryServicesDescriptorRequest): unknown; - fromPartial(_: Partial): GetQueryServicesDescriptorRequest; - fromAmino(_: GetQueryServicesDescriptorRequestAmino): GetQueryServicesDescriptorRequest; - toAmino(_: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAmino; - fromAminoMsg(object: GetQueryServicesDescriptorRequestAminoMsg): GetQueryServicesDescriptorRequest; - toAminoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAminoMsg; - fromProtoMsg(message: GetQueryServicesDescriptorRequestProtoMsg): GetQueryServicesDescriptorRequest; - toProto(message: GetQueryServicesDescriptorRequest): Uint8Array; - toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg; -}; -export declare const GetQueryServicesDescriptorResponse: { - typeUrl: string; - encode(message: GetQueryServicesDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; - fromJSON(object: any): GetQueryServicesDescriptorResponse; - toJSON(message: GetQueryServicesDescriptorResponse): unknown; - fromPartial(object: Partial): GetQueryServicesDescriptorResponse; - fromAmino(object: GetQueryServicesDescriptorResponseAmino): GetQueryServicesDescriptorResponse; - toAmino(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAmino; - fromAminoMsg(object: GetQueryServicesDescriptorResponseAminoMsg): GetQueryServicesDescriptorResponse; - toAminoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAminoMsg; - fromProtoMsg(message: GetQueryServicesDescriptorResponseProtoMsg): GetQueryServicesDescriptorResponse; - toProto(message: GetQueryServicesDescriptorResponse): Uint8Array; - toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg; -}; -export declare const GetTxDescriptorRequest: { - typeUrl: string; - encode(_: GetTxDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest; - fromJSON(_: any): GetTxDescriptorRequest; - toJSON(_: GetTxDescriptorRequest): unknown; - fromPartial(_: Partial): GetTxDescriptorRequest; - fromAmino(_: GetTxDescriptorRequestAmino): GetTxDescriptorRequest; - toAmino(_: GetTxDescriptorRequest): GetTxDescriptorRequestAmino; - fromAminoMsg(object: GetTxDescriptorRequestAminoMsg): GetTxDescriptorRequest; - toAminoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestAminoMsg; - fromProtoMsg(message: GetTxDescriptorRequestProtoMsg): GetTxDescriptorRequest; - toProto(message: GetTxDescriptorRequest): Uint8Array; - toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg; -}; -export declare const GetTxDescriptorResponse: { - typeUrl: string; - encode(message: GetTxDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse; - fromJSON(object: any): GetTxDescriptorResponse; - toJSON(message: GetTxDescriptorResponse): unknown; - fromPartial(object: Partial): GetTxDescriptorResponse; - fromAmino(object: GetTxDescriptorResponseAmino): GetTxDescriptorResponse; - toAmino(message: GetTxDescriptorResponse): GetTxDescriptorResponseAmino; - fromAminoMsg(object: GetTxDescriptorResponseAminoMsg): GetTxDescriptorResponse; - toAminoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseAminoMsg; - fromProtoMsg(message: GetTxDescriptorResponseProtoMsg): GetTxDescriptorResponse; - toProto(message: GetTxDescriptorResponse): Uint8Array; - toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg; -}; -export declare const QueryServicesDescriptor: { - typeUrl: string; - encode(message: QueryServicesDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor; - fromJSON(object: any): QueryServicesDescriptor; - toJSON(message: QueryServicesDescriptor): unknown; - fromPartial(object: Partial): QueryServicesDescriptor; - fromAmino(object: QueryServicesDescriptorAmino): QueryServicesDescriptor; - toAmino(message: QueryServicesDescriptor): QueryServicesDescriptorAmino; - fromAminoMsg(object: QueryServicesDescriptorAminoMsg): QueryServicesDescriptor; - toAminoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorAminoMsg; - fromProtoMsg(message: QueryServicesDescriptorProtoMsg): QueryServicesDescriptor; - toProto(message: QueryServicesDescriptor): Uint8Array; - toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg; -}; -export declare const QueryServiceDescriptor: { - typeUrl: string; - encode(message: QueryServiceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor; - fromJSON(object: any): QueryServiceDescriptor; - toJSON(message: QueryServiceDescriptor): unknown; - fromPartial(object: Partial): QueryServiceDescriptor; - fromAmino(object: QueryServiceDescriptorAmino): QueryServiceDescriptor; - toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino; - fromAminoMsg(object: QueryServiceDescriptorAminoMsg): QueryServiceDescriptor; - toAminoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorAminoMsg; - fromProtoMsg(message: QueryServiceDescriptorProtoMsg): QueryServiceDescriptor; - toProto(message: QueryServiceDescriptor): Uint8Array; - toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg; -}; -export declare const QueryMethodDescriptor: { - typeUrl: string; - encode(message: QueryMethodDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor; - fromJSON(object: any): QueryMethodDescriptor; - toJSON(message: QueryMethodDescriptor): unknown; - fromPartial(object: Partial): QueryMethodDescriptor; - fromAmino(object: QueryMethodDescriptorAmino): QueryMethodDescriptor; - toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino; - fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor; - toAminoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorAminoMsg; - fromProtoMsg(message: QueryMethodDescriptorProtoMsg): QueryMethodDescriptor; - toProto(message: QueryMethodDescriptor): Uint8Array; - toProtoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts b/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts deleted file mode 100644 index 5c8444d9..00000000 --- a/packages/api/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +++ /dev/null @@ -1,448 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -export interface SnapshotProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot"; - value: Uint8Array; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotAmino { - height?: string; - format?: number; - chunks?: number; - hash?: string; - metadata?: MetadataAmino; -} -export interface SnapshotAminoMsg { - type: "cosmos-sdk/Snapshot"; - value: SnapshotAmino; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata"; - value: Uint8Array; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataAmino { - /** SHA-256 chunk hashes */ - chunk_hashes?: string[]; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -export interface SnapshotItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem"; - value: Uint8Array; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItemAmino { - store?: SnapshotStoreItemAmino; - iavl?: SnapshotIAVLItemAmino; - extension?: SnapshotExtensionMetaAmino; - extension_payload?: SnapshotExtensionPayloadAmino; - kv?: SnapshotKVItemAmino; - schema?: SnapshotSchemaAmino; -} -export interface SnapshotItemAminoMsg { - type: "cosmos-sdk/SnapshotItem"; - value: SnapshotItemAmino; -} -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItem { - name: string; -} -export interface SnapshotStoreItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; - value: Uint8Array; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItemAmino { - name?: string; -} -export interface SnapshotStoreItemAminoMsg { - type: "cosmos-sdk/SnapshotStoreItem"; - value: SnapshotStoreItemAmino; -} -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: bigint; - /** height is depth of the tree. */ - height: number; -} -export interface SnapshotIAVLItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; - value: Uint8Array; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItemAmino { - key?: string; - value?: string; - /** version is block height */ - version?: string; - /** height is depth of the tree. */ - height?: number; -} -export interface SnapshotIAVLItemAminoMsg { - type: "cosmos-sdk/SnapshotIAVLItem"; - value: SnapshotIAVLItemAmino; -} -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: bigint; - height: number; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -export interface SnapshotExtensionMetaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; - value: Uint8Array; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMetaAmino { - name?: string; - format?: number; -} -export interface SnapshotExtensionMetaAminoMsg { - type: "cosmos-sdk/SnapshotExtensionMeta"; - value: SnapshotExtensionMetaAmino; -} -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -export interface SnapshotExtensionPayloadProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; - value: Uint8Array; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayloadAmino { - payload?: string; -} -export interface SnapshotExtensionPayloadAminoMsg { - type: "cosmos-sdk/SnapshotExtensionPayload"; - value: SnapshotExtensionPayloadAmino; -} -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -export interface SnapshotKVItemProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - value: Uint8Array; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItemAmino { - key?: string; - value?: string; -} -export interface SnapshotKVItemAminoMsg { - type: "cosmos-sdk/SnapshotKVItem"; - value: SnapshotKVItemAmino; -} -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -export interface SnapshotSchemaProtoMsg { - typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema"; - value: Uint8Array; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchemaAmino { - keys?: string[]; -} -export interface SnapshotSchemaAminoMsg { - type: "cosmos-sdk/SnapshotSchema"; - value: SnapshotSchemaAmino; -} -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} -export declare const Snapshot: { - typeUrl: string; - encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; - fromJSON(object: any): Snapshot; - toJSON(message: Snapshot): unknown; - fromPartial(object: Partial): Snapshot; - fromAmino(object: SnapshotAmino): Snapshot; - toAmino(message: Snapshot): SnapshotAmino; - fromAminoMsg(object: SnapshotAminoMsg): Snapshot; - toAminoMsg(message: Snapshot): SnapshotAminoMsg; - fromProtoMsg(message: SnapshotProtoMsg): Snapshot; - toProto(message: Snapshot): Uint8Array; - toProtoMsg(message: Snapshot): SnapshotProtoMsg; -}; -export declare const Metadata: { - typeUrl: string; - encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Metadata; - fromJSON(object: any): Metadata; - toJSON(message: Metadata): unknown; - fromPartial(object: Partial): Metadata; - fromAmino(object: MetadataAmino): Metadata; - toAmino(message: Metadata): MetadataAmino; - fromAminoMsg(object: MetadataAminoMsg): Metadata; - toAminoMsg(message: Metadata): MetadataAminoMsg; - fromProtoMsg(message: MetadataProtoMsg): Metadata; - toProto(message: Metadata): Uint8Array; - toProtoMsg(message: Metadata): MetadataProtoMsg; -}; -export declare const SnapshotItem: { - typeUrl: string; - encode(message: SnapshotItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotItem; - fromJSON(object: any): SnapshotItem; - toJSON(message: SnapshotItem): unknown; - fromPartial(object: Partial): SnapshotItem; - fromAmino(object: SnapshotItemAmino): SnapshotItem; - toAmino(message: SnapshotItem): SnapshotItemAmino; - fromAminoMsg(object: SnapshotItemAminoMsg): SnapshotItem; - toAminoMsg(message: SnapshotItem): SnapshotItemAminoMsg; - fromProtoMsg(message: SnapshotItemProtoMsg): SnapshotItem; - toProto(message: SnapshotItem): Uint8Array; - toProtoMsg(message: SnapshotItem): SnapshotItemProtoMsg; -}; -export declare const SnapshotStoreItem: { - typeUrl: string; - encode(message: SnapshotStoreItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotStoreItem; - fromJSON(object: any): SnapshotStoreItem; - toJSON(message: SnapshotStoreItem): unknown; - fromPartial(object: Partial): SnapshotStoreItem; - fromAmino(object: SnapshotStoreItemAmino): SnapshotStoreItem; - toAmino(message: SnapshotStoreItem): SnapshotStoreItemAmino; - fromAminoMsg(object: SnapshotStoreItemAminoMsg): SnapshotStoreItem; - toAminoMsg(message: SnapshotStoreItem): SnapshotStoreItemAminoMsg; - fromProtoMsg(message: SnapshotStoreItemProtoMsg): SnapshotStoreItem; - toProto(message: SnapshotStoreItem): Uint8Array; - toProtoMsg(message: SnapshotStoreItem): SnapshotStoreItemProtoMsg; -}; -export declare const SnapshotIAVLItem: { - typeUrl: string; - encode(message: SnapshotIAVLItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotIAVLItem; - fromJSON(object: any): SnapshotIAVLItem; - toJSON(message: SnapshotIAVLItem): unknown; - fromPartial(object: Partial): SnapshotIAVLItem; - fromAmino(object: SnapshotIAVLItemAmino): SnapshotIAVLItem; - toAmino(message: SnapshotIAVLItem): SnapshotIAVLItemAmino; - fromAminoMsg(object: SnapshotIAVLItemAminoMsg): SnapshotIAVLItem; - toAminoMsg(message: SnapshotIAVLItem): SnapshotIAVLItemAminoMsg; - fromProtoMsg(message: SnapshotIAVLItemProtoMsg): SnapshotIAVLItem; - toProto(message: SnapshotIAVLItem): Uint8Array; - toProtoMsg(message: SnapshotIAVLItem): SnapshotIAVLItemProtoMsg; -}; -export declare const SnapshotExtensionMeta: { - typeUrl: string; - encode(message: SnapshotExtensionMeta, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionMeta; - fromJSON(object: any): SnapshotExtensionMeta; - toJSON(message: SnapshotExtensionMeta): unknown; - fromPartial(object: Partial): SnapshotExtensionMeta; - fromAmino(object: SnapshotExtensionMetaAmino): SnapshotExtensionMeta; - toAmino(message: SnapshotExtensionMeta): SnapshotExtensionMetaAmino; - fromAminoMsg(object: SnapshotExtensionMetaAminoMsg): SnapshotExtensionMeta; - toAminoMsg(message: SnapshotExtensionMeta): SnapshotExtensionMetaAminoMsg; - fromProtoMsg(message: SnapshotExtensionMetaProtoMsg): SnapshotExtensionMeta; - toProto(message: SnapshotExtensionMeta): Uint8Array; - toProtoMsg(message: SnapshotExtensionMeta): SnapshotExtensionMetaProtoMsg; -}; -export declare const SnapshotExtensionPayload: { - typeUrl: string; - encode(message: SnapshotExtensionPayload, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotExtensionPayload; - fromJSON(object: any): SnapshotExtensionPayload; - toJSON(message: SnapshotExtensionPayload): unknown; - fromPartial(object: Partial): SnapshotExtensionPayload; - fromAmino(object: SnapshotExtensionPayloadAmino): SnapshotExtensionPayload; - toAmino(message: SnapshotExtensionPayload): SnapshotExtensionPayloadAmino; - fromAminoMsg(object: SnapshotExtensionPayloadAminoMsg): SnapshotExtensionPayload; - toAminoMsg(message: SnapshotExtensionPayload): SnapshotExtensionPayloadAminoMsg; - fromProtoMsg(message: SnapshotExtensionPayloadProtoMsg): SnapshotExtensionPayload; - toProto(message: SnapshotExtensionPayload): Uint8Array; - toProtoMsg(message: SnapshotExtensionPayload): SnapshotExtensionPayloadProtoMsg; -}; -export declare const SnapshotKVItem: { - typeUrl: string; - encode(message: SnapshotKVItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotKVItem; - fromJSON(object: any): SnapshotKVItem; - toJSON(message: SnapshotKVItem): unknown; - fromPartial(object: Partial): SnapshotKVItem; - fromAmino(object: SnapshotKVItemAmino): SnapshotKVItem; - toAmino(message: SnapshotKVItem): SnapshotKVItemAmino; - fromAminoMsg(object: SnapshotKVItemAminoMsg): SnapshotKVItem; - toAminoMsg(message: SnapshotKVItem): SnapshotKVItemAminoMsg; - fromProtoMsg(message: SnapshotKVItemProtoMsg): SnapshotKVItem; - toProto(message: SnapshotKVItem): Uint8Array; - toProtoMsg(message: SnapshotKVItem): SnapshotKVItemProtoMsg; -}; -export declare const SnapshotSchema: { - typeUrl: string; - encode(message: SnapshotSchema, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SnapshotSchema; - fromJSON(object: any): SnapshotSchema; - toJSON(message: SnapshotSchema): unknown; - fromPartial(object: Partial): SnapshotSchema; - fromAmino(object: SnapshotSchemaAmino): SnapshotSchema; - toAmino(message: SnapshotSchema): SnapshotSchemaAmino; - fromAminoMsg(object: SnapshotSchemaAminoMsg): SnapshotSchema; - toAminoMsg(message: SnapshotSchema): SnapshotSchemaAminoMsg; - fromProtoMsg(message: SnapshotSchemaProtoMsg): SnapshotSchema; - toProto(message: SnapshotSchema): Uint8Array; - toProtoMsg(message: SnapshotSchema): SnapshotSchemaProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts b/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts deleted file mode 100644 index d407e8d1..00000000 --- a/packages/api/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: bigint; - storeInfos: StoreInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitInfo"; - value: Uint8Array; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoAmino { - version?: string; - store_infos?: StoreInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "cosmos-sdk/CommitInfo"; - value: CommitInfoAmino; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: bigint; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -export interface StoreInfoProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreInfo"; - value: Uint8Array; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoAmino { - name?: string; - commit_id?: CommitIDAmino; -} -export interface StoreInfoAminoMsg { - type: "cosmos-sdk/StoreInfo"; - value: StoreInfoAmino; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: bigint; - hash: Uint8Array; -} -export interface CommitIDProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.CommitID"; - value: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDAmino { - version?: string; - hash?: string; -} -export interface CommitIDAminoMsg { - type: "cosmos-sdk/CommitID"; - value: CommitIDAmino; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: bigint; - hash: Uint8Array; -} -export declare const CommitInfo: { - typeUrl: string; - encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; - fromJSON(object: any): CommitInfo; - toJSON(message: CommitInfo): unknown; - fromPartial(object: Partial): CommitInfo; - fromAmino(object: CommitInfoAmino): CommitInfo; - toAmino(message: CommitInfo): CommitInfoAmino; - fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo; - toAminoMsg(message: CommitInfo): CommitInfoAminoMsg; - fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo; - toProto(message: CommitInfo): Uint8Array; - toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; -}; -export declare const StoreInfo: { - typeUrl: string; - encode(message: StoreInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StoreInfo; - fromJSON(object: any): StoreInfo; - toJSON(message: StoreInfo): unknown; - fromPartial(object: Partial): StoreInfo; - fromAmino(object: StoreInfoAmino): StoreInfo; - toAmino(message: StoreInfo): StoreInfoAmino; - fromAminoMsg(object: StoreInfoAminoMsg): StoreInfo; - toAminoMsg(message: StoreInfo): StoreInfoAminoMsg; - fromProtoMsg(message: StoreInfoProtoMsg): StoreInfo; - toProto(message: StoreInfo): Uint8Array; - toProtoMsg(message: StoreInfo): StoreInfoProtoMsg; -}; -export declare const CommitID: { - typeUrl: string; - encode(message: CommitID, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitID; - fromJSON(object: any): CommitID; - toJSON(message: CommitID): unknown; - fromPartial(object: Partial): CommitID; - fromAmino(object: CommitIDAmino): CommitID; - toAmino(message: CommitID): CommitIDAmino; - fromAminoMsg(object: CommitIDAminoMsg): CommitID; - toAminoMsg(message: CommitID): CommitIDAminoMsg; - fromProtoMsg(message: CommitIDProtoMsg): CommitID; - toProto(message: CommitID): Uint8Array; - toProtoMsg(message: CommitID): CommitIDProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts b/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts deleted file mode 100644 index 6cb28fc4..00000000 --- a/packages/api/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +++ /dev/null @@ -1,165 +0,0 @@ -import { RequestDeliverTx, RequestDeliverTxAmino, RequestDeliverTxSDKType, ResponseDeliverTx, ResponseDeliverTxAmino, ResponseDeliverTxSDKType, RequestBeginBlock, RequestBeginBlockAmino, RequestBeginBlockSDKType, ResponseBeginBlock, ResponseBeginBlockAmino, ResponseBeginBlockSDKType, RequestEndBlock, RequestEndBlockAmino, RequestEndBlockSDKType, ResponseEndBlock, ResponseEndBlockAmino, ResponseEndBlockSDKType, ResponseCommit, ResponseCommitAmino, ResponseCommitSDKType } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export interface StoreKVPairProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair"; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairAmino { - /** the store key for the KVStore this pair originates from */ - store_key?: string; - /** true indicates a delete operation, false indicates a set operation */ - delete?: boolean; - key?: string; - value?: string; -} -export interface StoreKVPairAminoMsg { - type: "cosmos-sdk/StoreKVPair"; - value: StoreKVPairAmino; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadata { - requestBeginBlock?: RequestBeginBlock; - responseBeginBlock?: ResponseBeginBlock; - deliverTxs: BlockMetadata_DeliverTx[]; - requestEndBlock?: RequestEndBlock; - responseEndBlock?: ResponseEndBlock; - responseCommit?: ResponseCommit; -} -export interface BlockMetadataProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.BlockMetadata"; - value: Uint8Array; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadataAmino { - request_begin_block?: RequestBeginBlockAmino; - response_begin_block?: ResponseBeginBlockAmino; - deliver_txs?: BlockMetadata_DeliverTxAmino[]; - request_end_block?: RequestEndBlockAmino; - response_end_block?: ResponseEndBlockAmino; - response_commit?: ResponseCommitAmino; -} -export interface BlockMetadataAminoMsg { - type: "cosmos-sdk/BlockMetadata"; - value: BlockMetadataAmino; -} -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - */ -export interface BlockMetadataSDKType { - request_begin_block?: RequestBeginBlockSDKType; - response_begin_block?: ResponseBeginBlockSDKType; - deliver_txs: BlockMetadata_DeliverTxSDKType[]; - request_end_block?: RequestEndBlockSDKType; - response_end_block?: ResponseEndBlockSDKType; - response_commit?: ResponseCommitSDKType; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTx { - request?: RequestDeliverTx; - response?: ResponseDeliverTx; -} -export interface BlockMetadata_DeliverTxProtoMsg { - typeUrl: "/cosmos.base.store.v1beta1.DeliverTx"; - value: Uint8Array; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTxAmino { - request?: RequestDeliverTxAmino; - response?: ResponseDeliverTxAmino; -} -export interface BlockMetadata_DeliverTxAminoMsg { - type: "cosmos-sdk/DeliverTx"; - value: BlockMetadata_DeliverTxAmino; -} -/** DeliverTx encapulate deliver tx request and response. */ -export interface BlockMetadata_DeliverTxSDKType { - request?: RequestDeliverTxSDKType; - response?: ResponseDeliverTxSDKType; -} -export declare const StoreKVPair: { - typeUrl: string; - encode(message: StoreKVPair, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StoreKVPair; - fromJSON(object: any): StoreKVPair; - toJSON(message: StoreKVPair): unknown; - fromPartial(object: Partial): StoreKVPair; - fromAmino(object: StoreKVPairAmino): StoreKVPair; - toAmino(message: StoreKVPair): StoreKVPairAmino; - fromAminoMsg(object: StoreKVPairAminoMsg): StoreKVPair; - toAminoMsg(message: StoreKVPair): StoreKVPairAminoMsg; - fromProtoMsg(message: StoreKVPairProtoMsg): StoreKVPair; - toProto(message: StoreKVPair): Uint8Array; - toProtoMsg(message: StoreKVPair): StoreKVPairProtoMsg; -}; -export declare const BlockMetadata: { - typeUrl: string; - encode(message: BlockMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata; - fromJSON(object: any): BlockMetadata; - toJSON(message: BlockMetadata): unknown; - fromPartial(object: Partial): BlockMetadata; - fromAmino(object: BlockMetadataAmino): BlockMetadata; - toAmino(message: BlockMetadata): BlockMetadataAmino; - fromAminoMsg(object: BlockMetadataAminoMsg): BlockMetadata; - toAminoMsg(message: BlockMetadata): BlockMetadataAminoMsg; - fromProtoMsg(message: BlockMetadataProtoMsg): BlockMetadata; - toProto(message: BlockMetadata): Uint8Array; - toProtoMsg(message: BlockMetadata): BlockMetadataProtoMsg; -}; -export declare const BlockMetadata_DeliverTx: { - typeUrl: string; - encode(message: BlockMetadata_DeliverTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata_DeliverTx; - fromJSON(object: any): BlockMetadata_DeliverTx; - toJSON(message: BlockMetadata_DeliverTx): unknown; - fromPartial(object: Partial): BlockMetadata_DeliverTx; - fromAmino(object: BlockMetadata_DeliverTxAmino): BlockMetadata_DeliverTx; - toAmino(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxAmino; - fromAminoMsg(object: BlockMetadata_DeliverTxAminoMsg): BlockMetadata_DeliverTx; - toAminoMsg(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxAminoMsg; - fromProtoMsg(message: BlockMetadata_DeliverTxProtoMsg): BlockMetadata_DeliverTx; - toProto(message: BlockMetadata_DeliverTx): Uint8Array; - toProtoMsg(message: BlockMetadata_DeliverTx): BlockMetadata_DeliverTxProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts deleted file mode 100644 index 3e3982f9..00000000 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +++ /dev/null @@ -1,935 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { Block as Block1 } from "../../../../tendermint/types/block"; -import { BlockAmino as Block1Amino } from "../../../../tendermint/types/block"; -import { BlockSDKType as Block1SDKType } from "../../../../tendermint/types/block"; -import { Block as Block2 } from "./types"; -import { BlockAmino as Block2Amino } from "./types"; -import { BlockSDKType as Block2SDKType } from "./types"; -import { DefaultNodeInfo, DefaultNodeInfoAmino, DefaultNodeInfoSDKType } from "../../../../tendermint/p2p/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequest { - height: bigint; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface GetValidatorSetByHeightRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest"; - value: Uint8Array; -} -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequestAmino { - height?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetValidatorSetByHeightRequestAminoMsg { - type: "cosmos-sdk/GetValidatorSetByHeightRequest"; - value: GetValidatorSetByHeightRequestAmino; -} -/** - * GetValidatorSetByHeightRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightRequestSDKType { - height: bigint; - pagination?: PageRequestSDKType; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponse { - blockHeight: bigint; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface GetValidatorSetByHeightResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse"; - value: Uint8Array; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponseAmino { - block_height?: string; - validators?: ValidatorAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetValidatorSetByHeightResponseAminoMsg { - type: "cosmos-sdk/GetValidatorSetByHeightResponse"; - value: GetValidatorSetByHeightResponseAmino; -} -/** - * GetValidatorSetByHeightResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetValidatorSetByHeightResponseSDKType { - block_height: bigint; - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequest { - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface GetLatestValidatorSetRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest"; - value: Uint8Array; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequestAmino { - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetLatestValidatorSetRequestAminoMsg { - type: "cosmos-sdk/GetLatestValidatorSetRequest"; - value: GetLatestValidatorSetRequestAmino; -} -/** - * GetLatestValidatorSetRequest is the request type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponse { - blockHeight: bigint; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface GetLatestValidatorSetResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse"; - value: Uint8Array; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponseAmino { - block_height?: string; - validators?: ValidatorAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetLatestValidatorSetResponseAminoMsg { - type: "cosmos-sdk/GetLatestValidatorSetResponse"; - value: GetLatestValidatorSetResponseAmino; -} -/** - * GetLatestValidatorSetResponse is the response type for the - * Query/GetValidatorSetByHeight RPC method. - */ -export interface GetLatestValidatorSetResponseSDKType { - block_height: bigint; - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** Validator is the type for the validator-set. */ -export interface Validator { - address: string; - pubKey?: Any; - votingPower: bigint; - proposerPriority: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Validator"; - value: Uint8Array; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorAmino { - address?: string; - pub_key?: AnyAmino; - voting_power?: string; - proposer_priority?: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorSDKType { - address: string; - pub_key?: AnySDKType; - voting_power: bigint; - proposer_priority: bigint; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequest { - height: bigint; -} -export interface GetBlockByHeightRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest"; - value: Uint8Array; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequestAmino { - height?: string; -} -export interface GetBlockByHeightRequestAminoMsg { - type: "cosmos-sdk/GetBlockByHeightRequest"; - value: GetBlockByHeightRequestAmino; -} -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightRequestSDKType { - height: bigint; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponse { - blockId?: BlockID; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1; - /** Since: cosmos-sdk 0.47 */ - sdkBlock?: Block2; -} -export interface GetBlockByHeightResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse"; - value: Uint8Array; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponseAmino { - block_id?: BlockIDAmino; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1Amino; - /** Since: cosmos-sdk 0.47 */ - sdk_block?: Block2Amino; -} -export interface GetBlockByHeightResponseAminoMsg { - type: "cosmos-sdk/GetBlockByHeightResponse"; - value: GetBlockByHeightResponseAmino; -} -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight - * RPC method. - */ -export interface GetBlockByHeightResponseSDKType { - block_id?: BlockIDSDKType; - block?: Block1SDKType; - sdk_block?: Block2SDKType; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequest { -} -export interface GetLatestBlockRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest"; - value: Uint8Array; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequestAmino { -} -export interface GetLatestBlockRequestAminoMsg { - type: "cosmos-sdk/GetLatestBlockRequest"; - value: GetLatestBlockRequestAmino; -} -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockRequestSDKType { -} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponse { - blockId?: BlockID; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1; - /** Since: cosmos-sdk 0.47 */ - sdkBlock?: Block2; -} -export interface GetLatestBlockResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse"; - value: Uint8Array; -} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponseAmino { - block_id?: BlockIDAmino; - /** Deprecated: please use `sdk_block` instead */ - block?: Block1Amino; - /** Since: cosmos-sdk 0.47 */ - sdk_block?: Block2Amino; -} -export interface GetLatestBlockResponseAminoMsg { - type: "cosmos-sdk/GetLatestBlockResponse"; - value: GetLatestBlockResponseAmino; -} -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC - * method. - */ -export interface GetLatestBlockResponseSDKType { - block_id?: BlockIDSDKType; - block?: Block1SDKType; - sdk_block?: Block2SDKType; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequest { -} -export interface GetSyncingRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest"; - value: Uint8Array; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestAmino { -} -export interface GetSyncingRequestAminoMsg { - type: "cosmos-sdk/GetSyncingRequest"; - value: GetSyncingRequestAmino; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestSDKType { -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponse { - syncing: boolean; -} -export interface GetSyncingResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse"; - value: Uint8Array; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseAmino { - syncing?: boolean; -} -export interface GetSyncingResponseAminoMsg { - type: "cosmos-sdk/GetSyncingResponse"; - value: GetSyncingResponseAmino; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseSDKType { - syncing: boolean; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequest { -} -export interface GetNodeInfoRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest"; - value: Uint8Array; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestAmino { -} -export interface GetNodeInfoRequestAminoMsg { - type: "cosmos-sdk/GetNodeInfoRequest"; - value: GetNodeInfoRequestAmino; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestSDKType { -} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponse { - defaultNodeInfo?: DefaultNodeInfo; - applicationVersion?: VersionInfo; -} -export interface GetNodeInfoResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"; - value: Uint8Array; -} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponseAmino { - default_node_info?: DefaultNodeInfoAmino; - application_version?: VersionInfoAmino; -} -export interface GetNodeInfoResponseAminoMsg { - type: "cosmos-sdk/GetNodeInfoResponse"; - value: GetNodeInfoResponseAmino; -} -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - * method. - */ -export interface GetNodeInfoResponseSDKType { - default_node_info?: DefaultNodeInfoSDKType; - application_version?: VersionInfoSDKType; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfo { - name: string; - appName: string; - version: string; - gitCommit: string; - buildTags: string; - goVersion: string; - buildDeps: Module[]; - /** Since: cosmos-sdk 0.43 */ - cosmosSdkVersion: string; -} -export interface VersionInfoProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo"; - value: Uint8Array; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoAmino { - name?: string; - app_name?: string; - version?: string; - git_commit?: string; - build_tags?: string; - go_version?: string; - build_deps?: ModuleAmino[]; - /** Since: cosmos-sdk 0.43 */ - cosmos_sdk_version?: string; -} -export interface VersionInfoAminoMsg { - type: "cosmos-sdk/VersionInfo"; - value: VersionInfoAmino; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoSDKType { - name: string; - app_name: string; - version: string; - git_commit: string; - build_tags: string; - go_version: string; - build_deps: ModuleSDKType[]; - cosmos_sdk_version: string; -} -/** Module is the type for VersionInfo */ -export interface Module { - /** module path */ - path: string; - /** module version */ - version: string; - /** checksum */ - sum: string; -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Module"; - value: Uint8Array; -} -/** Module is the type for VersionInfo */ -export interface ModuleAmino { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** Module is the type for VersionInfo */ -export interface ModuleSDKType { - path: string; - version: string; - sum: string; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequest { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface ABCIQueryRequestProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest"; - value: Uint8Array; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequestAmino { - data?: string; - path?: string; - height?: string; - prove?: boolean; -} -export interface ABCIQueryRequestAminoMsg { - type: "cosmos-sdk/ABCIQueryRequest"; - value: ABCIQueryRequestAmino; -} -/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */ -export interface ABCIQueryRequestSDKType { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponse { - code: number; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proofOps?: ProofOps; - height: bigint; - codespace: string; -} -export interface ABCIQueryResponseProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse"; - value: Uint8Array; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponseAmino { - code?: number; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - index?: string; - key?: string; - value?: string; - proof_ops?: ProofOpsAmino; - height?: string; - codespace?: string; -} -export interface ABCIQueryResponseAminoMsg { - type: "cosmos-sdk/ABCIQueryResponse"; - value: ABCIQueryResponseAmino; -} -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - * query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - */ -export interface ABCIQueryResponseSDKType { - code: number; - log: string; - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsSDKType; - height: bigint; - codespace: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOpAmino { - type?: string; - key?: string; - data?: string; -} -export interface ProofOpAminoMsg { - type: "cosmos-sdk/ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing nessecary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in - * Tendermint. - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps"; - value: Uint8Array; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOpsAmino { - ops?: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "cosmos-sdk/ProofOps"; - value: ProofOpsAmino; -} -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in - * Tendermint. - */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} -export declare const GetValidatorSetByHeightRequest: { - typeUrl: string; - encode(message: GetValidatorSetByHeightRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest; - fromJSON(object: any): GetValidatorSetByHeightRequest; - toJSON(message: GetValidatorSetByHeightRequest): unknown; - fromPartial(object: Partial): GetValidatorSetByHeightRequest; - fromAmino(object: GetValidatorSetByHeightRequestAmino): GetValidatorSetByHeightRequest; - toAmino(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAmino; - fromAminoMsg(object: GetValidatorSetByHeightRequestAminoMsg): GetValidatorSetByHeightRequest; - toAminoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAminoMsg; - fromProtoMsg(message: GetValidatorSetByHeightRequestProtoMsg): GetValidatorSetByHeightRequest; - toProto(message: GetValidatorSetByHeightRequest): Uint8Array; - toProtoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestProtoMsg; -}; -export declare const GetValidatorSetByHeightResponse: { - typeUrl: string; - encode(message: GetValidatorSetByHeightResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse; - fromJSON(object: any): GetValidatorSetByHeightResponse; - toJSON(message: GetValidatorSetByHeightResponse): unknown; - fromPartial(object: Partial): GetValidatorSetByHeightResponse; - fromAmino(object: GetValidatorSetByHeightResponseAmino): GetValidatorSetByHeightResponse; - toAmino(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAmino; - fromAminoMsg(object: GetValidatorSetByHeightResponseAminoMsg): GetValidatorSetByHeightResponse; - toAminoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAminoMsg; - fromProtoMsg(message: GetValidatorSetByHeightResponseProtoMsg): GetValidatorSetByHeightResponse; - toProto(message: GetValidatorSetByHeightResponse): Uint8Array; - toProtoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseProtoMsg; -}; -export declare const GetLatestValidatorSetRequest: { - typeUrl: string; - encode(message: GetLatestValidatorSetRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest; - fromJSON(object: any): GetLatestValidatorSetRequest; - toJSON(message: GetLatestValidatorSetRequest): unknown; - fromPartial(object: Partial): GetLatestValidatorSetRequest; - fromAmino(object: GetLatestValidatorSetRequestAmino): GetLatestValidatorSetRequest; - toAmino(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAmino; - fromAminoMsg(object: GetLatestValidatorSetRequestAminoMsg): GetLatestValidatorSetRequest; - toAminoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAminoMsg; - fromProtoMsg(message: GetLatestValidatorSetRequestProtoMsg): GetLatestValidatorSetRequest; - toProto(message: GetLatestValidatorSetRequest): Uint8Array; - toProtoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestProtoMsg; -}; -export declare const GetLatestValidatorSetResponse: { - typeUrl: string; - encode(message: GetLatestValidatorSetResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse; - fromJSON(object: any): GetLatestValidatorSetResponse; - toJSON(message: GetLatestValidatorSetResponse): unknown; - fromPartial(object: Partial): GetLatestValidatorSetResponse; - fromAmino(object: GetLatestValidatorSetResponseAmino): GetLatestValidatorSetResponse; - toAmino(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAmino; - fromAminoMsg(object: GetLatestValidatorSetResponseAminoMsg): GetLatestValidatorSetResponse; - toAminoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAminoMsg; - fromProtoMsg(message: GetLatestValidatorSetResponseProtoMsg): GetLatestValidatorSetResponse; - toProto(message: GetLatestValidatorSetResponse): Uint8Array; - toProtoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromJSON(object: any): Validator; - toJSON(message: Validator): unknown; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - toAminoMsg(message: Validator): ValidatorAminoMsg; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const GetBlockByHeightRequest: { - typeUrl: string; - encode(message: GetBlockByHeightRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest; - fromJSON(object: any): GetBlockByHeightRequest; - toJSON(message: GetBlockByHeightRequest): unknown; - fromPartial(object: Partial): GetBlockByHeightRequest; - fromAmino(object: GetBlockByHeightRequestAmino): GetBlockByHeightRequest; - toAmino(message: GetBlockByHeightRequest): GetBlockByHeightRequestAmino; - fromAminoMsg(object: GetBlockByHeightRequestAminoMsg): GetBlockByHeightRequest; - toAminoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestAminoMsg; - fromProtoMsg(message: GetBlockByHeightRequestProtoMsg): GetBlockByHeightRequest; - toProto(message: GetBlockByHeightRequest): Uint8Array; - toProtoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestProtoMsg; -}; -export declare const GetBlockByHeightResponse: { - typeUrl: string; - encode(message: GetBlockByHeightResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse; - fromJSON(object: any): GetBlockByHeightResponse; - toJSON(message: GetBlockByHeightResponse): unknown; - fromPartial(object: Partial): GetBlockByHeightResponse; - fromAmino(object: GetBlockByHeightResponseAmino): GetBlockByHeightResponse; - toAmino(message: GetBlockByHeightResponse): GetBlockByHeightResponseAmino; - fromAminoMsg(object: GetBlockByHeightResponseAminoMsg): GetBlockByHeightResponse; - toAminoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseAminoMsg; - fromProtoMsg(message: GetBlockByHeightResponseProtoMsg): GetBlockByHeightResponse; - toProto(message: GetBlockByHeightResponse): Uint8Array; - toProtoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseProtoMsg; -}; -export declare const GetLatestBlockRequest: { - typeUrl: string; - encode(_: GetLatestBlockRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest; - fromJSON(_: any): GetLatestBlockRequest; - toJSON(_: GetLatestBlockRequest): unknown; - fromPartial(_: Partial): GetLatestBlockRequest; - fromAmino(_: GetLatestBlockRequestAmino): GetLatestBlockRequest; - toAmino(_: GetLatestBlockRequest): GetLatestBlockRequestAmino; - fromAminoMsg(object: GetLatestBlockRequestAminoMsg): GetLatestBlockRequest; - toAminoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestAminoMsg; - fromProtoMsg(message: GetLatestBlockRequestProtoMsg): GetLatestBlockRequest; - toProto(message: GetLatestBlockRequest): Uint8Array; - toProtoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestProtoMsg; -}; -export declare const GetLatestBlockResponse: { - typeUrl: string; - encode(message: GetLatestBlockResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse; - fromJSON(object: any): GetLatestBlockResponse; - toJSON(message: GetLatestBlockResponse): unknown; - fromPartial(object: Partial): GetLatestBlockResponse; - fromAmino(object: GetLatestBlockResponseAmino): GetLatestBlockResponse; - toAmino(message: GetLatestBlockResponse): GetLatestBlockResponseAmino; - fromAminoMsg(object: GetLatestBlockResponseAminoMsg): GetLatestBlockResponse; - toAminoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseAminoMsg; - fromProtoMsg(message: GetLatestBlockResponseProtoMsg): GetLatestBlockResponse; - toProto(message: GetLatestBlockResponse): Uint8Array; - toProtoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseProtoMsg; -}; -export declare const GetSyncingRequest: { - typeUrl: string; - encode(_: GetSyncingRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest; - fromJSON(_: any): GetSyncingRequest; - toJSON(_: GetSyncingRequest): unknown; - fromPartial(_: Partial): GetSyncingRequest; - fromAmino(_: GetSyncingRequestAmino): GetSyncingRequest; - toAmino(_: GetSyncingRequest): GetSyncingRequestAmino; - fromAminoMsg(object: GetSyncingRequestAminoMsg): GetSyncingRequest; - toAminoMsg(message: GetSyncingRequest): GetSyncingRequestAminoMsg; - fromProtoMsg(message: GetSyncingRequestProtoMsg): GetSyncingRequest; - toProto(message: GetSyncingRequest): Uint8Array; - toProtoMsg(message: GetSyncingRequest): GetSyncingRequestProtoMsg; -}; -export declare const GetSyncingResponse: { - typeUrl: string; - encode(message: GetSyncingResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse; - fromJSON(object: any): GetSyncingResponse; - toJSON(message: GetSyncingResponse): unknown; - fromPartial(object: Partial): GetSyncingResponse; - fromAmino(object: GetSyncingResponseAmino): GetSyncingResponse; - toAmino(message: GetSyncingResponse): GetSyncingResponseAmino; - fromAminoMsg(object: GetSyncingResponseAminoMsg): GetSyncingResponse; - toAminoMsg(message: GetSyncingResponse): GetSyncingResponseAminoMsg; - fromProtoMsg(message: GetSyncingResponseProtoMsg): GetSyncingResponse; - toProto(message: GetSyncingResponse): Uint8Array; - toProtoMsg(message: GetSyncingResponse): GetSyncingResponseProtoMsg; -}; -export declare const GetNodeInfoRequest: { - typeUrl: string; - encode(_: GetNodeInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest; - fromJSON(_: any): GetNodeInfoRequest; - toJSON(_: GetNodeInfoRequest): unknown; - fromPartial(_: Partial): GetNodeInfoRequest; - fromAmino(_: GetNodeInfoRequestAmino): GetNodeInfoRequest; - toAmino(_: GetNodeInfoRequest): GetNodeInfoRequestAmino; - fromAminoMsg(object: GetNodeInfoRequestAminoMsg): GetNodeInfoRequest; - toAminoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestAminoMsg; - fromProtoMsg(message: GetNodeInfoRequestProtoMsg): GetNodeInfoRequest; - toProto(message: GetNodeInfoRequest): Uint8Array; - toProtoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestProtoMsg; -}; -export declare const GetNodeInfoResponse: { - typeUrl: string; - encode(message: GetNodeInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse; - fromJSON(object: any): GetNodeInfoResponse; - toJSON(message: GetNodeInfoResponse): unknown; - fromPartial(object: Partial): GetNodeInfoResponse; - fromAmino(object: GetNodeInfoResponseAmino): GetNodeInfoResponse; - toAmino(message: GetNodeInfoResponse): GetNodeInfoResponseAmino; - fromAminoMsg(object: GetNodeInfoResponseAminoMsg): GetNodeInfoResponse; - toAminoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseAminoMsg; - fromProtoMsg(message: GetNodeInfoResponseProtoMsg): GetNodeInfoResponse; - toProto(message: GetNodeInfoResponse): Uint8Array; - toProtoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseProtoMsg; -}; -export declare const VersionInfo: { - typeUrl: string; - encode(message: VersionInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo; - fromJSON(object: any): VersionInfo; - toJSON(message: VersionInfo): unknown; - fromPartial(object: Partial): VersionInfo; - fromAmino(object: VersionInfoAmino): VersionInfo; - toAmino(message: VersionInfo): VersionInfoAmino; - fromAminoMsg(object: VersionInfoAminoMsg): VersionInfo; - toAminoMsg(message: VersionInfo): VersionInfoAminoMsg; - fromProtoMsg(message: VersionInfoProtoMsg): VersionInfo; - toProto(message: VersionInfo): Uint8Array; - toProtoMsg(message: VersionInfo): VersionInfoProtoMsg; -}; -export declare const Module: { - typeUrl: string; - encode(message: Module, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Module; - fromJSON(object: any): Module; - toJSON(message: Module): unknown; - fromPartial(object: Partial): Module; - fromAmino(object: ModuleAmino): Module; - toAmino(message: Module): ModuleAmino; - fromAminoMsg(object: ModuleAminoMsg): Module; - toAminoMsg(message: Module): ModuleAminoMsg; - fromProtoMsg(message: ModuleProtoMsg): Module; - toProto(message: Module): Uint8Array; - toProtoMsg(message: Module): ModuleProtoMsg; -}; -export declare const ABCIQueryRequest: { - typeUrl: string; - encode(message: ABCIQueryRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest; - fromJSON(object: any): ABCIQueryRequest; - toJSON(message: ABCIQueryRequest): unknown; - fromPartial(object: Partial): ABCIQueryRequest; - fromAmino(object: ABCIQueryRequestAmino): ABCIQueryRequest; - toAmino(message: ABCIQueryRequest): ABCIQueryRequestAmino; - fromAminoMsg(object: ABCIQueryRequestAminoMsg): ABCIQueryRequest; - toAminoMsg(message: ABCIQueryRequest): ABCIQueryRequestAminoMsg; - fromProtoMsg(message: ABCIQueryRequestProtoMsg): ABCIQueryRequest; - toProto(message: ABCIQueryRequest): Uint8Array; - toProtoMsg(message: ABCIQueryRequest): ABCIQueryRequestProtoMsg; -}; -export declare const ABCIQueryResponse: { - typeUrl: string; - encode(message: ABCIQueryResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse; - fromJSON(object: any): ABCIQueryResponse; - toJSON(message: ABCIQueryResponse): unknown; - fromPartial(object: Partial): ABCIQueryResponse; - fromAmino(object: ABCIQueryResponseAmino): ABCIQueryResponse; - toAmino(message: ABCIQueryResponse): ABCIQueryResponseAmino; - fromAminoMsg(object: ABCIQueryResponseAminoMsg): ABCIQueryResponse; - toAminoMsg(message: ABCIQueryResponse): ABCIQueryResponseAminoMsg; - fromProtoMsg(message: ABCIQueryResponseProtoMsg): ABCIQueryResponse; - toProto(message: ABCIQueryResponse): Uint8Array; - toProtoMsg(message: ABCIQueryResponse): ABCIQueryResponseProtoMsg; -}; -export declare const ProofOp: { - typeUrl: string; - encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; - fromJSON(object: any): ProofOp; - toJSON(message: ProofOp): unknown; - fromPartial(object: Partial): ProofOp; - fromAmino(object: ProofOpAmino): ProofOp; - toAmino(message: ProofOp): ProofOpAmino; - fromAminoMsg(object: ProofOpAminoMsg): ProofOp; - toAminoMsg(message: ProofOp): ProofOpAminoMsg; - fromProtoMsg(message: ProofOpProtoMsg): ProofOp; - toProto(message: ProofOp): Uint8Array; - toProtoMsg(message: ProofOp): ProofOpProtoMsg; -}; -export declare const ProofOps: { - typeUrl: string; - encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; - fromJSON(object: any): ProofOps; - toJSON(message: ProofOps): unknown; - fromPartial(object: Partial): ProofOps; - fromAmino(object: ProofOpsAmino): ProofOps; - toAmino(message: ProofOps): ProofOpsAmino; - fromAminoMsg(object: ProofOpsAminoMsg): ProofOps; - toAminoMsg(message: ProofOps): ProofOpsAminoMsg; - fromProtoMsg(message: ProofOpsProtoMsg): ProofOps; - toProto(message: ProofOps): Uint8Array; - toProtoMsg(message: ProofOps): ProofOpsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts deleted file mode 100644 index 68c1b44e..00000000 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType, ABCIQueryRequest, ABCIQueryResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - getNodeInfo(_params?: GetNodeInfoRequest): Promise; - getSyncing(_params?: GetSyncingRequest): Promise; - getLatestBlock(_params?: GetLatestBlockRequest): Promise; - getBlockByHeight(params: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(params?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise; - aBCIQuery(params: ABCIQueryRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts deleted file mode 100644 index 2b2708d3..00000000 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ABCIQueryRequest, ABCIQueryResponse } from "./query"; -/** Service defines the gRPC querier service for tendermint queries. */ -export interface Service { - /** GetNodeInfo queries the current node info. */ - getNodeInfo(request?: GetNodeInfoRequest): Promise; - /** GetSyncing queries node syncing. */ - getSyncing(request?: GetSyncingRequest): Promise; - /** GetLatestBlock returns the latest block. */ - getLatestBlock(request?: GetLatestBlockRequest): Promise; - /** GetBlockByHeight queries block for given height. */ - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - /** GetLatestValidatorSet queries latest validator-set. */ - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - /** GetValidatorSetByHeight queries validator-set at a given height. */ - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; - /** - * ABCIQuery defines a query handler that supports ABCI queries directly to - * the application, bypassing Tendermint completely. The ABCI query must - * contain a valid and supported path, including app, custom, p2p, and store. - * - * Since: cosmos-sdk 0.46 - */ - aBCIQuery(request: ABCIQueryRequest): Promise; -} -export declare class ServiceClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - getNodeInfo(request?: GetNodeInfoRequest): Promise; - getSyncing(request?: GetSyncingRequest): Promise; - getLatestBlock(request?: GetLatestBlockRequest): Promise; - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: ABCIQueryRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - getNodeInfo(request?: GetNodeInfoRequest): Promise; - getSyncing(request?: GetSyncingRequest): Promise; - getLatestBlock(request?: GetLatestBlockRequest): Promise; - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: ABCIQueryRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts b/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts deleted file mode 100644 index 757f589c..00000000 --- a/packages/api/types/codegen/cosmos/base/tendermint/v1beta1/types.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType, BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "../../../../tendermint/types/evidence"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../../../../tendermint/version/types"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit?: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Block"; - value: Uint8Array; -} -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "cosmos-sdk/Block"; - value: BlockAmino; -} -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - */ -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit?: CommitSDKType; -} -/** Header defines the structure of a Tendermint block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: bigint; - time: Timestamp; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** - * proposer_address is the original block proposer address, formatted as a Bech32 string. - * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string - * for better UX. - */ - proposerAddress: string; -} -export interface HeaderProtoMsg { - typeUrl: "/cosmos.base.tendermint.v1beta1.Header"; - value: Uint8Array; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id?: string; - height?: string; - time?: string; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash?: string; - data_hash?: string; - /** hashes from the app output from the prev block */ - validators_hash?: string; - /** validators for the next block */ - next_validators_hash?: string; - /** consensus params for current block */ - consensus_hash?: string; - /** state after txs from the previous block */ - app_hash?: string; - last_results_hash?: string; - /** consensus info */ - evidence_hash?: string; - /** - * proposer_address is the original block proposer address, formatted as a Bech32 string. - * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string - * for better UX. - */ - proposer_address?: string; -} -export interface HeaderAminoMsg { - type: "cosmos-sdk/Header"; - value: HeaderAmino; -} -/** Header defines the structure of a Tendermint block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: bigint; - time: TimestampSDKType; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: string; -} -export declare const Block: { - typeUrl: string; - encode(message: Block, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Block; - fromJSON(object: any): Block; - toJSON(message: Block): unknown; - fromPartial(object: Partial): Block; - fromAmino(object: BlockAmino): Block; - toAmino(message: Block): BlockAmino; - fromAminoMsg(object: BlockAminoMsg): Block; - toAminoMsg(message: Block): BlockAminoMsg; - fromProtoMsg(message: BlockProtoMsg): Block; - toProto(message: Block): Uint8Array; - toProtoMsg(message: Block): BlockProtoMsg; -}; -export declare const Header: { - typeUrl: string; - encode(message: Header, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Header; - fromJSON(object: any): Header; - toJSON(message: Header): unknown; - fromPartial(object: Partial
): Header; - fromAmino(object: HeaderAmino): Header; - toAmino(message: Header): HeaderAmino; - fromAminoMsg(object: HeaderAminoMsg): Header; - toAminoMsg(message: Header): HeaderAminoMsg; - fromProtoMsg(message: HeaderProtoMsg): Header; - toProto(message: Header): Uint8Array; - toProtoMsg(message: Header): HeaderProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts b/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts deleted file mode 100644 index a1018ca4..00000000 --- a/packages/api/types/codegen/cosmos/base/v1beta1/coin.d.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface Coin { - denom: string; - amount: string; -} -export interface CoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.Coin"; - value: Uint8Array; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinAmino { - denom?: string; - amount?: string; -} -export interface CoinAminoMsg { - type: "cosmos-sdk/Coin"; - value: CoinAmino; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinSDKType { - denom: string; - amount: string; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoin { - denom: string; - amount: string; -} -export interface DecCoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecCoin"; - value: Uint8Array; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinAmino { - denom?: string; - amount?: string; -} -export interface DecCoinAminoMsg { - type: "cosmos-sdk/DecCoin"; - value: DecCoinAmino; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinSDKType { - denom: string; - amount: string; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - int: string; -} -export interface IntProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.IntProto"; - value: Uint8Array; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoAmino { - int?: string; -} -export interface IntProtoAminoMsg { - type: "cosmos-sdk/IntProto"; - value: IntProtoAmino; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoSDKType { - int: string; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - dec: string; -} -export interface DecProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecProto"; - value: Uint8Array; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoAmino { - dec?: string; -} -export interface DecProtoAminoMsg { - type: "cosmos-sdk/DecProto"; - value: DecProtoAmino; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoSDKType { - dec: string; -} -export declare const Coin: { - typeUrl: string; - encode(message: Coin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Coin; - fromJSON(object: any): Coin; - toJSON(message: Coin): unknown; - fromPartial(object: Partial): Coin; - fromAmino(object: CoinAmino): Coin; - toAmino(message: Coin): CoinAmino; - fromAminoMsg(object: CoinAminoMsg): Coin; - toAminoMsg(message: Coin): CoinAminoMsg; - fromProtoMsg(message: CoinProtoMsg): Coin; - toProto(message: Coin): Uint8Array; - toProtoMsg(message: Coin): CoinProtoMsg; -}; -export declare const DecCoin: { - typeUrl: string; - encode(message: DecCoin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecCoin; - fromJSON(object: any): DecCoin; - toJSON(message: DecCoin): unknown; - fromPartial(object: Partial): DecCoin; - fromAmino(object: DecCoinAmino): DecCoin; - toAmino(message: DecCoin): DecCoinAmino; - fromAminoMsg(object: DecCoinAminoMsg): DecCoin; - toAminoMsg(message: DecCoin): DecCoinAminoMsg; - fromProtoMsg(message: DecCoinProtoMsg): DecCoin; - toProto(message: DecCoin): Uint8Array; - toProtoMsg(message: DecCoin): DecCoinProtoMsg; -}; -export declare const IntProto: { - typeUrl: string; - encode(message: IntProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IntProto; - fromJSON(object: any): IntProto; - toJSON(message: IntProto): unknown; - fromPartial(object: Partial): IntProto; - fromAmino(object: IntProtoAmino): IntProto; - toAmino(message: IntProto): IntProtoAmino; - fromAminoMsg(object: IntProtoAminoMsg): IntProto; - toAminoMsg(message: IntProto): IntProtoAminoMsg; - fromProtoMsg(message: IntProtoProtoMsg): IntProto; - toProto(message: IntProto): Uint8Array; - toProtoMsg(message: IntProto): IntProtoProtoMsg; -}; -export declare const DecProto: { - typeUrl: string; - encode(message: DecProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecProto; - fromJSON(object: any): DecProto; - toJSON(message: DecProto): unknown; - fromPartial(object: Partial): DecProto; - fromAmino(object: DecProtoAmino): DecProto; - toAmino(message: DecProto): DecProtoAmino; - fromAminoMsg(object: DecProtoAminoMsg): DecProto; - toAminoMsg(message: DecProto): DecProtoAminoMsg; - fromProtoMsg(message: DecProtoProtoMsg): DecProto; - toProto(message: DecProto): Uint8Array; - toProtoMsg(message: DecProto): DecProtoProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/bundle.d.ts b/packages/api/types/codegen/cosmos/bundle.d.ts deleted file mode 100644 index a4088c46..00000000 --- a/packages/api/types/codegen/cosmos/bundle.d.ts +++ /dev/null @@ -1,11137 +0,0 @@ -import * as _2 from "./app/module/v1alpha1/module"; -import * as _3 from "./app/v1alpha1/config"; -import * as _4 from "./app/v1alpha1/module"; -import * as _5 from "./app/v1alpha1/query"; -import * as _6 from "./auth/v1beta1/auth"; -import * as _7 from "./auth/v1beta1/genesis"; -import * as _8 from "./auth/v1beta1/query"; -import * as _9 from "./authz/v1beta1/authz"; -import * as _10 from "./authz/v1beta1/event"; -import * as _11 from "./authz/v1beta1/genesis"; -import * as _12 from "./authz/v1beta1/query"; -import * as _13 from "./authz/v1beta1/tx"; -import * as _14 from "./bank/v1beta1/authz"; -import * as _15 from "./bank/v1beta1/bank"; -import * as _16 from "./bank/v1beta1/genesis"; -import * as _17 from "./bank/v1beta1/query"; -import * as _18 from "./bank/v1beta1/tx"; -import * as _19 from "./base/abci/v1beta1/abci"; -import * as _20 from "./base/kv/v1beta1/kv"; -import * as _21 from "./base/node/v1beta1/query"; -import * as _22 from "./base/query/v1beta1/pagination"; -import * as _23 from "./base/reflection/v1beta1/reflection"; -import * as _24 from "./base/reflection/v2alpha1/reflection"; -import * as _25 from "./base/snapshots/v1beta1/snapshot"; -import * as _26 from "./base/store/v1beta1/commit_info"; -import * as _27 from "./base/store/v1beta1/listening"; -import * as _28 from "./base/tendermint/v1beta1/query"; -import * as _29 from "./base/tendermint/v1beta1/types"; -import * as _30 from "./base/v1beta1/coin"; -import * as _31 from "./capability/v1beta1/capability"; -import * as _32 from "./capability/v1beta1/genesis"; -import * as _33 from "./crisis/v1beta1/genesis"; -import * as _34 from "./crisis/v1beta1/tx"; -import * as _35 from "./crypto/ed25519/keys"; -import * as _36 from "./crypto/hd/v1/hd"; -import * as _37 from "./crypto/keyring/v1/record"; -import * as _38 from "./crypto/multisig/keys"; -import * as _39 from "./crypto/secp256k1/keys"; -import * as _40 from "./crypto/secp256r1/keys"; -import * as _41 from "./distribution/v1beta1/distribution"; -import * as _42 from "./distribution/v1beta1/genesis"; -import * as _43 from "./distribution/v1beta1/query"; -import * as _44 from "./distribution/v1beta1/tx"; -import * as _45 from "./evidence/v1beta1/evidence"; -import * as _46 from "./evidence/v1beta1/genesis"; -import * as _47 from "./evidence/v1beta1/query"; -import * as _48 from "./evidence/v1beta1/tx"; -import * as _49 from "./feegrant/v1beta1/feegrant"; -import * as _50 from "./feegrant/v1beta1/genesis"; -import * as _51 from "./feegrant/v1beta1/query"; -import * as _52 from "./feegrant/v1beta1/tx"; -import * as _53 from "./genutil/v1beta1/genesis"; -import * as _54 from "./gov/v1/genesis"; -import * as _55 from "./gov/v1/gov"; -import * as _56 from "./gov/v1/query"; -import * as _57 from "./gov/v1/tx"; -import * as _58 from "./gov/v1beta1/genesis"; -import * as _59 from "./gov/v1beta1/gov"; -import * as _60 from "./gov/v1beta1/query"; -import * as _61 from "./gov/v1beta1/tx"; -import * as _62 from "./group/v1/events"; -import * as _63 from "./group/v1/genesis"; -import * as _64 from "./group/v1/query"; -import * as _65 from "./group/v1/tx"; -import * as _66 from "./group/v1/types"; -import * as _67 from "./mint/v1beta1/genesis"; -import * as _68 from "./mint/v1beta1/mint"; -import * as _69 from "./mint/v1beta1/query"; -import * as _71 from "./nft/v1beta1/event"; -import * as _72 from "./nft/v1beta1/genesis"; -import * as _73 from "./nft/v1beta1/nft"; -import * as _74 from "./nft/v1beta1/query"; -import * as _75 from "./nft/v1beta1/tx"; -import * as _76 from "./orm/module/v1alpha1/module"; -import * as _77 from "./orm/v1/orm"; -import * as _78 from "./orm/v1alpha1/schema"; -import * as _79 from "./params/v1beta1/params"; -import * as _80 from "./params/v1beta1/query"; -import * as _81 from "./slashing/v1beta1/genesis"; -import * as _82 from "./slashing/v1beta1/query"; -import * as _83 from "./slashing/v1beta1/slashing"; -import * as _84 from "./slashing/v1beta1/tx"; -import * as _85 from "./staking/v1beta1/authz"; -import * as _86 from "./staking/v1beta1/genesis"; -import * as _87 from "./staking/v1beta1/query"; -import * as _88 from "./staking/v1beta1/staking"; -import * as _89 from "./staking/v1beta1/tx"; -import * as _90 from "./tx/signing/v1beta1/signing"; -import * as _91 from "./tx/v1beta1/service"; -import * as _92 from "./tx/v1beta1/tx"; -import * as _93 from "./upgrade/v1beta1/query"; -import * as _94 from "./upgrade/v1beta1/tx"; -import * as _95 from "./upgrade/v1beta1/upgrade"; -import * as _96 from "./vesting/v1beta1/tx"; -import * as _97 from "./vesting/v1beta1/vesting"; -import * as _180 from "./auth/v1beta1/query.lcd"; -import * as _181 from "./authz/v1beta1/query.lcd"; -import * as _182 from "./bank/v1beta1/query.lcd"; -import * as _183 from "./base/node/v1beta1/query.lcd"; -import * as _184 from "./base/tendermint/v1beta1/query.lcd"; -import * as _185 from "./distribution/v1beta1/query.lcd"; -import * as _186 from "./evidence/v1beta1/query.lcd"; -import * as _187 from "./feegrant/v1beta1/query.lcd"; -import * as _188 from "./gov/v1/query.lcd"; -import * as _189 from "./gov/v1beta1/query.lcd"; -import * as _190 from "./group/v1/query.lcd"; -import * as _191 from "./mint/v1beta1/query.lcd"; -import * as _192 from "./nft/v1beta1/query.lcd"; -import * as _193 from "./params/v1beta1/query.lcd"; -import * as _194 from "./slashing/v1beta1/query.lcd"; -import * as _195 from "./staking/v1beta1/query.lcd"; -import * as _196 from "./tx/v1beta1/service.lcd"; -import * as _197 from "./upgrade/v1beta1/query.lcd"; -import * as _198 from "./app/v1alpha1/query.rpc.Query"; -import * as _199 from "./auth/v1beta1/query.rpc.Query"; -import * as _200 from "./authz/v1beta1/query.rpc.Query"; -import * as _201 from "./bank/v1beta1/query.rpc.Query"; -import * as _202 from "./base/node/v1beta1/query.rpc.Service"; -import * as _203 from "./base/tendermint/v1beta1/query.rpc.Service"; -import * as _204 from "./distribution/v1beta1/query.rpc.Query"; -import * as _205 from "./evidence/v1beta1/query.rpc.Query"; -import * as _206 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _207 from "./gov/v1/query.rpc.Query"; -import * as _208 from "./gov/v1beta1/query.rpc.Query"; -import * as _209 from "./group/v1/query.rpc.Query"; -import * as _210 from "./mint/v1beta1/query.rpc.Query"; -import * as _211 from "./nft/v1beta1/query.rpc.Query"; -import * as _212 from "./params/v1beta1/query.rpc.Query"; -import * as _213 from "./slashing/v1beta1/query.rpc.Query"; -import * as _214 from "./staking/v1beta1/query.rpc.Query"; -import * as _215 from "./tx/v1beta1/service.rpc.Service"; -import * as _216 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _217 from "./authz/v1beta1/tx.rpc.msg"; -import * as _218 from "./bank/v1beta1/tx.rpc.msg"; -import * as _219 from "./crisis/v1beta1/tx.rpc.msg"; -import * as _220 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _221 from "./evidence/v1beta1/tx.rpc.msg"; -import * as _222 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _223 from "./gov/v1/tx.rpc.msg"; -import * as _224 from "./gov/v1beta1/tx.rpc.msg"; -import * as _225 from "./group/v1/tx.rpc.msg"; -import * as _226 from "./nft/v1beta1/tx.rpc.msg"; -import * as _227 from "./slashing/v1beta1/tx.rpc.msg"; -import * as _228 from "./staking/v1beta1/tx.rpc.msg"; -import * as _229 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _230 from "./vesting/v1beta1/tx.rpc.msg"; -export declare namespace cosmos { - namespace app { - namespace module { - const v1alpha1: { - Module: { - typeUrl: string; - encode(_: _2.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _2.Module; - fromJSON(_: any): _2.Module; - toJSON(_: _2.Module): unknown; - fromPartial(_: Partial<_2.Module>): _2.Module; - fromAmino(_: _2.ModuleAmino): _2.Module; - toAmino(_: _2.Module): _2.ModuleAmino; - fromAminoMsg(object: _2.ModuleAminoMsg): _2.Module; - toAminoMsg(message: _2.Module): _2.ModuleAminoMsg; - fromProtoMsg(message: _2.ModuleProtoMsg): _2.Module; - toProto(message: _2.Module): Uint8Array; - toProtoMsg(message: _2.Module): _2.ModuleProtoMsg; - }; - }; - } - const v1alpha1: { - QueryClientImpl: typeof _198.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - config(request?: _5.QueryConfigRequest | undefined): Promise<_5.QueryConfigResponse>; - }; - QueryConfigRequest: { - typeUrl: string; - encode(_: _5.QueryConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _5.QueryConfigRequest; - fromJSON(_: any): _5.QueryConfigRequest; - toJSON(_: _5.QueryConfigRequest): unknown; - fromPartial(_: Partial<_5.QueryConfigRequest>): _5.QueryConfigRequest; - fromAmino(_: _5.QueryConfigRequestAmino): _5.QueryConfigRequest; - toAmino(_: _5.QueryConfigRequest): _5.QueryConfigRequestAmino; - fromAminoMsg(object: _5.QueryConfigRequestAminoMsg): _5.QueryConfigRequest; - toAminoMsg(message: _5.QueryConfigRequest): _5.QueryConfigRequestAminoMsg; - fromProtoMsg(message: _5.QueryConfigRequestProtoMsg): _5.QueryConfigRequest; - toProto(message: _5.QueryConfigRequest): Uint8Array; - toProtoMsg(message: _5.QueryConfigRequest): _5.QueryConfigRequestProtoMsg; - }; - QueryConfigResponse: { - typeUrl: string; - encode(message: _5.QueryConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _5.QueryConfigResponse; - fromJSON(object: any): _5.QueryConfigResponse; - toJSON(message: _5.QueryConfigResponse): unknown; - fromPartial(object: Partial<_5.QueryConfigResponse>): _5.QueryConfigResponse; - fromAmino(object: _5.QueryConfigResponseAmino): _5.QueryConfigResponse; - toAmino(message: _5.QueryConfigResponse): _5.QueryConfigResponseAmino; - fromAminoMsg(object: _5.QueryConfigResponseAminoMsg): _5.QueryConfigResponse; - toAminoMsg(message: _5.QueryConfigResponse): _5.QueryConfigResponseAminoMsg; - fromProtoMsg(message: _5.QueryConfigResponseProtoMsg): _5.QueryConfigResponse; - toProto(message: _5.QueryConfigResponse): Uint8Array; - toProtoMsg(message: _5.QueryConfigResponse): _5.QueryConfigResponseProtoMsg; - }; - ModuleDescriptor: { - typeUrl: string; - encode(message: _4.ModuleDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.ModuleDescriptor; - fromJSON(object: any): _4.ModuleDescriptor; - toJSON(message: _4.ModuleDescriptor): unknown; - fromPartial(object: Partial<_4.ModuleDescriptor>): _4.ModuleDescriptor; - fromAmino(object: _4.ModuleDescriptorAmino): _4.ModuleDescriptor; - toAmino(message: _4.ModuleDescriptor): _4.ModuleDescriptorAmino; - fromAminoMsg(object: _4.ModuleDescriptorAminoMsg): _4.ModuleDescriptor; - toAminoMsg(message: _4.ModuleDescriptor): _4.ModuleDescriptorAminoMsg; - fromProtoMsg(message: _4.ModuleDescriptorProtoMsg): _4.ModuleDescriptor; - toProto(message: _4.ModuleDescriptor): Uint8Array; - toProtoMsg(message: _4.ModuleDescriptor): _4.ModuleDescriptorProtoMsg; - }; - PackageReference: { - typeUrl: string; - encode(message: _4.PackageReference, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.PackageReference; - fromJSON(object: any): _4.PackageReference; - toJSON(message: _4.PackageReference): unknown; - fromPartial(object: Partial<_4.PackageReference>): _4.PackageReference; - fromAmino(object: _4.PackageReferenceAmino): _4.PackageReference; - toAmino(message: _4.PackageReference): _4.PackageReferenceAmino; - fromAminoMsg(object: _4.PackageReferenceAminoMsg): _4.PackageReference; - toAminoMsg(message: _4.PackageReference): _4.PackageReferenceAminoMsg; - fromProtoMsg(message: _4.PackageReferenceProtoMsg): _4.PackageReference; - toProto(message: _4.PackageReference): Uint8Array; - toProtoMsg(message: _4.PackageReference): _4.PackageReferenceProtoMsg; - }; - MigrateFromInfo: { - typeUrl: string; - encode(message: _4.MigrateFromInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _4.MigrateFromInfo; - fromJSON(object: any): _4.MigrateFromInfo; - toJSON(message: _4.MigrateFromInfo): unknown; - fromPartial(object: Partial<_4.MigrateFromInfo>): _4.MigrateFromInfo; - fromAmino(object: _4.MigrateFromInfoAmino): _4.MigrateFromInfo; - toAmino(message: _4.MigrateFromInfo): _4.MigrateFromInfoAmino; - fromAminoMsg(object: _4.MigrateFromInfoAminoMsg): _4.MigrateFromInfo; - toAminoMsg(message: _4.MigrateFromInfo): _4.MigrateFromInfoAminoMsg; - fromProtoMsg(message: _4.MigrateFromInfoProtoMsg): _4.MigrateFromInfo; - toProto(message: _4.MigrateFromInfo): Uint8Array; - toProtoMsg(message: _4.MigrateFromInfo): _4.MigrateFromInfoProtoMsg; - }; - Config: { - typeUrl: string; - encode(message: _3.Config, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _3.Config; - fromJSON(object: any): _3.Config; - toJSON(message: _3.Config): unknown; - fromPartial(object: Partial<_3.Config>): _3.Config; - fromAmino(object: _3.ConfigAmino): _3.Config; - toAmino(message: _3.Config): _3.ConfigAmino; - fromAminoMsg(object: _3.ConfigAminoMsg): _3.Config; - toAminoMsg(message: _3.Config): _3.ConfigAminoMsg; - fromProtoMsg(message: _3.ConfigProtoMsg): _3.Config; - toProto(message: _3.Config): Uint8Array; - toProtoMsg(message: _3.Config): _3.ConfigProtoMsg; - }; - ModuleConfig: { - typeUrl: string; - encode(message: _3.ModuleConfig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _3.ModuleConfig; - fromJSON(object: any): _3.ModuleConfig; - toJSON(message: _3.ModuleConfig): unknown; - fromPartial(object: Partial<_3.ModuleConfig>): _3.ModuleConfig; - fromAmino(object: _3.ModuleConfigAmino): _3.ModuleConfig; - toAmino(message: _3.ModuleConfig): _3.ModuleConfigAmino; - fromAminoMsg(object: _3.ModuleConfigAminoMsg): _3.ModuleConfig; - toAminoMsg(message: _3.ModuleConfig): _3.ModuleConfigAminoMsg; - fromProtoMsg(message: _3.ModuleConfigProtoMsg): _3.ModuleConfig; - toProto(message: _3.ModuleConfig): Uint8Array; - toProtoMsg(message: _3.ModuleConfig): _3.ModuleConfigProtoMsg; - }; - }; - } - namespace auth { - const v1beta1: { - QueryClientImpl: typeof _199.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - accounts(request?: _8.QueryAccountsRequest | undefined): Promise<_8.QueryAccountsResponse>; - account(request: _8.QueryAccountRequest): Promise<_8.QueryAccountResponse>; - accountAddressByID(request: _8.QueryAccountAddressByIDRequest): Promise<_8.QueryAccountAddressByIDResponse>; - params(request?: _8.QueryParamsRequest | undefined): Promise<_8.QueryParamsResponse>; - moduleAccounts(request?: _8.QueryModuleAccountsRequest | undefined): Promise<_8.QueryModuleAccountsResponse>; - moduleAccountByName(request: _8.QueryModuleAccountByNameRequest): Promise<_8.QueryModuleAccountByNameResponse>; - bech32Prefix(request?: _8.Bech32PrefixRequest | undefined): Promise<_8.Bech32PrefixResponse>; - addressBytesToString(request: _8.AddressBytesToStringRequest): Promise<_8.AddressBytesToStringResponse>; - addressStringToBytes(request: _8.AddressStringToBytesRequest): Promise<_8.AddressStringToBytesResponse>; - }; - LCDQueryClient: typeof _180.LCDQueryClient; - QueryAccountsRequest: { - typeUrl: string; - encode(message: _8.QueryAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountsRequest; - fromJSON(object: any): _8.QueryAccountsRequest; - toJSON(message: _8.QueryAccountsRequest): unknown; - fromPartial(object: Partial<_8.QueryAccountsRequest>): _8.QueryAccountsRequest; - fromAmino(object: _8.QueryAccountsRequestAmino): _8.QueryAccountsRequest; - toAmino(message: _8.QueryAccountsRequest): _8.QueryAccountsRequestAmino; - fromAminoMsg(object: _8.QueryAccountsRequestAminoMsg): _8.QueryAccountsRequest; - toAminoMsg(message: _8.QueryAccountsRequest): _8.QueryAccountsRequestAminoMsg; - fromProtoMsg(message: _8.QueryAccountsRequestProtoMsg): _8.QueryAccountsRequest; - toProto(message: _8.QueryAccountsRequest): Uint8Array; - toProtoMsg(message: _8.QueryAccountsRequest): _8.QueryAccountsRequestProtoMsg; - }; - QueryAccountsResponse: { - typeUrl: string; - encode(message: _8.QueryAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountsResponse; - fromJSON(object: any): _8.QueryAccountsResponse; - toJSON(message: _8.QueryAccountsResponse): unknown; - fromPartial(object: Partial<_8.QueryAccountsResponse>): _8.QueryAccountsResponse; - fromAmino(object: _8.QueryAccountsResponseAmino): _8.QueryAccountsResponse; - toAmino(message: _8.QueryAccountsResponse): _8.QueryAccountsResponseAmino; - fromAminoMsg(object: _8.QueryAccountsResponseAminoMsg): _8.QueryAccountsResponse; - toAminoMsg(message: _8.QueryAccountsResponse): _8.QueryAccountsResponseAminoMsg; - fromProtoMsg(message: _8.QueryAccountsResponseProtoMsg): _8.QueryAccountsResponse; - toProto(message: _8.QueryAccountsResponse): Uint8Array; - toProtoMsg(message: _8.QueryAccountsResponse): _8.QueryAccountsResponseProtoMsg; - }; - QueryAccountRequest: { - typeUrl: string; - encode(message: _8.QueryAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountRequest; - fromJSON(object: any): _8.QueryAccountRequest; - toJSON(message: _8.QueryAccountRequest): unknown; - fromPartial(object: Partial<_8.QueryAccountRequest>): _8.QueryAccountRequest; - fromAmino(object: _8.QueryAccountRequestAmino): _8.QueryAccountRequest; - toAmino(message: _8.QueryAccountRequest): _8.QueryAccountRequestAmino; - fromAminoMsg(object: _8.QueryAccountRequestAminoMsg): _8.QueryAccountRequest; - toAminoMsg(message: _8.QueryAccountRequest): _8.QueryAccountRequestAminoMsg; - fromProtoMsg(message: _8.QueryAccountRequestProtoMsg): _8.QueryAccountRequest; - toProto(message: _8.QueryAccountRequest): Uint8Array; - toProtoMsg(message: _8.QueryAccountRequest): _8.QueryAccountRequestProtoMsg; - }; - QueryAccountResponse: { - typeUrl: string; - encode(message: _8.QueryAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountResponse; - fromJSON(object: any): _8.QueryAccountResponse; - toJSON(message: _8.QueryAccountResponse): unknown; - fromPartial(object: Partial<_8.QueryAccountResponse>): _8.QueryAccountResponse; - fromAmino(object: _8.QueryAccountResponseAmino): _8.QueryAccountResponse; - toAmino(message: _8.QueryAccountResponse): _8.QueryAccountResponseAmino; - fromAminoMsg(object: _8.QueryAccountResponseAminoMsg): _8.QueryAccountResponse; - toAminoMsg(message: _8.QueryAccountResponse): _8.QueryAccountResponseAminoMsg; - fromProtoMsg(message: _8.QueryAccountResponseProtoMsg): _8.QueryAccountResponse; - toProto(message: _8.QueryAccountResponse): Uint8Array; - toProtoMsg(message: _8.QueryAccountResponse): _8.QueryAccountResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _8.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryParamsRequest; - fromJSON(_: any): _8.QueryParamsRequest; - toJSON(_: _8.QueryParamsRequest): unknown; - fromPartial(_: Partial<_8.QueryParamsRequest>): _8.QueryParamsRequest; - fromAmino(_: _8.QueryParamsRequestAmino): _8.QueryParamsRequest; - toAmino(_: _8.QueryParamsRequest): _8.QueryParamsRequestAmino; - fromAminoMsg(object: _8.QueryParamsRequestAminoMsg): _8.QueryParamsRequest; - toAminoMsg(message: _8.QueryParamsRequest): _8.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _8.QueryParamsRequestProtoMsg): _8.QueryParamsRequest; - toProto(message: _8.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _8.QueryParamsRequest): _8.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _8.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryParamsResponse; - fromJSON(object: any): _8.QueryParamsResponse; - toJSON(message: _8.QueryParamsResponse): unknown; - fromPartial(object: Partial<_8.QueryParamsResponse>): _8.QueryParamsResponse; - fromAmino(object: _8.QueryParamsResponseAmino): _8.QueryParamsResponse; - toAmino(message: _8.QueryParamsResponse): _8.QueryParamsResponseAmino; - fromAminoMsg(object: _8.QueryParamsResponseAminoMsg): _8.QueryParamsResponse; - toAminoMsg(message: _8.QueryParamsResponse): _8.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _8.QueryParamsResponseProtoMsg): _8.QueryParamsResponse; - toProto(message: _8.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _8.QueryParamsResponse): _8.QueryParamsResponseProtoMsg; - }; - QueryModuleAccountsRequest: { - typeUrl: string; - encode(_: _8.QueryModuleAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountsRequest; - fromJSON(_: any): _8.QueryModuleAccountsRequest; - toJSON(_: _8.QueryModuleAccountsRequest): unknown; - fromPartial(_: Partial<_8.QueryModuleAccountsRequest>): _8.QueryModuleAccountsRequest; - fromAmino(_: _8.QueryModuleAccountsRequestAmino): _8.QueryModuleAccountsRequest; - toAmino(_: _8.QueryModuleAccountsRequest): _8.QueryModuleAccountsRequestAmino; - fromAminoMsg(object: _8.QueryModuleAccountsRequestAminoMsg): _8.QueryModuleAccountsRequest; - toAminoMsg(message: _8.QueryModuleAccountsRequest): _8.QueryModuleAccountsRequestAminoMsg; - fromProtoMsg(message: _8.QueryModuleAccountsRequestProtoMsg): _8.QueryModuleAccountsRequest; - toProto(message: _8.QueryModuleAccountsRequest): Uint8Array; - toProtoMsg(message: _8.QueryModuleAccountsRequest): _8.QueryModuleAccountsRequestProtoMsg; - }; - QueryModuleAccountsResponse: { - typeUrl: string; - encode(message: _8.QueryModuleAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountsResponse; - fromJSON(object: any): _8.QueryModuleAccountsResponse; - toJSON(message: _8.QueryModuleAccountsResponse): unknown; - fromPartial(object: Partial<_8.QueryModuleAccountsResponse>): _8.QueryModuleAccountsResponse; - fromAmino(object: _8.QueryModuleAccountsResponseAmino): _8.QueryModuleAccountsResponse; - toAmino(message: _8.QueryModuleAccountsResponse): _8.QueryModuleAccountsResponseAmino; - fromAminoMsg(object: _8.QueryModuleAccountsResponseAminoMsg): _8.QueryModuleAccountsResponse; - toAminoMsg(message: _8.QueryModuleAccountsResponse): _8.QueryModuleAccountsResponseAminoMsg; - fromProtoMsg(message: _8.QueryModuleAccountsResponseProtoMsg): _8.QueryModuleAccountsResponse; - toProto(message: _8.QueryModuleAccountsResponse): Uint8Array; - toProtoMsg(message: _8.QueryModuleAccountsResponse): _8.QueryModuleAccountsResponseProtoMsg; - }; - QueryModuleAccountByNameRequest: { - typeUrl: string; - encode(message: _8.QueryModuleAccountByNameRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountByNameRequest; - fromJSON(object: any): _8.QueryModuleAccountByNameRequest; - toJSON(message: _8.QueryModuleAccountByNameRequest): unknown; - fromPartial(object: Partial<_8.QueryModuleAccountByNameRequest>): _8.QueryModuleAccountByNameRequest; - fromAmino(object: _8.QueryModuleAccountByNameRequestAmino): _8.QueryModuleAccountByNameRequest; - toAmino(message: _8.QueryModuleAccountByNameRequest): _8.QueryModuleAccountByNameRequestAmino; - fromAminoMsg(object: _8.QueryModuleAccountByNameRequestAminoMsg): _8.QueryModuleAccountByNameRequest; - toAminoMsg(message: _8.QueryModuleAccountByNameRequest): _8.QueryModuleAccountByNameRequestAminoMsg; - fromProtoMsg(message: _8.QueryModuleAccountByNameRequestProtoMsg): _8.QueryModuleAccountByNameRequest; - toProto(message: _8.QueryModuleAccountByNameRequest): Uint8Array; - toProtoMsg(message: _8.QueryModuleAccountByNameRequest): _8.QueryModuleAccountByNameRequestProtoMsg; - }; - QueryModuleAccountByNameResponse: { - typeUrl: string; - encode(message: _8.QueryModuleAccountByNameResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryModuleAccountByNameResponse; - fromJSON(object: any): _8.QueryModuleAccountByNameResponse; - toJSON(message: _8.QueryModuleAccountByNameResponse): unknown; - fromPartial(object: Partial<_8.QueryModuleAccountByNameResponse>): _8.QueryModuleAccountByNameResponse; - fromAmino(object: _8.QueryModuleAccountByNameResponseAmino): _8.QueryModuleAccountByNameResponse; - toAmino(message: _8.QueryModuleAccountByNameResponse): _8.QueryModuleAccountByNameResponseAmino; - fromAminoMsg(object: _8.QueryModuleAccountByNameResponseAminoMsg): _8.QueryModuleAccountByNameResponse; - toAminoMsg(message: _8.QueryModuleAccountByNameResponse): _8.QueryModuleAccountByNameResponseAminoMsg; - fromProtoMsg(message: _8.QueryModuleAccountByNameResponseProtoMsg): _8.QueryModuleAccountByNameResponse; - toProto(message: _8.QueryModuleAccountByNameResponse): Uint8Array; - toProtoMsg(message: _8.QueryModuleAccountByNameResponse): _8.QueryModuleAccountByNameResponseProtoMsg; - }; - Bech32PrefixRequest: { - typeUrl: string; - encode(_: _8.Bech32PrefixRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.Bech32PrefixRequest; - fromJSON(_: any): _8.Bech32PrefixRequest; - toJSON(_: _8.Bech32PrefixRequest): unknown; - fromPartial(_: Partial<_8.Bech32PrefixRequest>): _8.Bech32PrefixRequest; - fromAmino(_: _8.Bech32PrefixRequestAmino): _8.Bech32PrefixRequest; - toAmino(_: _8.Bech32PrefixRequest): _8.Bech32PrefixRequestAmino; - fromAminoMsg(object: _8.Bech32PrefixRequestAminoMsg): _8.Bech32PrefixRequest; - toAminoMsg(message: _8.Bech32PrefixRequest): _8.Bech32PrefixRequestAminoMsg; - fromProtoMsg(message: _8.Bech32PrefixRequestProtoMsg): _8.Bech32PrefixRequest; - toProto(message: _8.Bech32PrefixRequest): Uint8Array; - toProtoMsg(message: _8.Bech32PrefixRequest): _8.Bech32PrefixRequestProtoMsg; - }; - Bech32PrefixResponse: { - typeUrl: string; - encode(message: _8.Bech32PrefixResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.Bech32PrefixResponse; - fromJSON(object: any): _8.Bech32PrefixResponse; - toJSON(message: _8.Bech32PrefixResponse): unknown; - fromPartial(object: Partial<_8.Bech32PrefixResponse>): _8.Bech32PrefixResponse; - fromAmino(object: _8.Bech32PrefixResponseAmino): _8.Bech32PrefixResponse; - toAmino(message: _8.Bech32PrefixResponse): _8.Bech32PrefixResponseAmino; - fromAminoMsg(object: _8.Bech32PrefixResponseAminoMsg): _8.Bech32PrefixResponse; - toAminoMsg(message: _8.Bech32PrefixResponse): _8.Bech32PrefixResponseAminoMsg; - fromProtoMsg(message: _8.Bech32PrefixResponseProtoMsg): _8.Bech32PrefixResponse; - toProto(message: _8.Bech32PrefixResponse): Uint8Array; - toProtoMsg(message: _8.Bech32PrefixResponse): _8.Bech32PrefixResponseProtoMsg; - }; - AddressBytesToStringRequest: { - typeUrl: string; - encode(message: _8.AddressBytesToStringRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressBytesToStringRequest; - fromJSON(object: any): _8.AddressBytesToStringRequest; - toJSON(message: _8.AddressBytesToStringRequest): unknown; - fromPartial(object: Partial<_8.AddressBytesToStringRequest>): _8.AddressBytesToStringRequest; - fromAmino(object: _8.AddressBytesToStringRequestAmino): _8.AddressBytesToStringRequest; - toAmino(message: _8.AddressBytesToStringRequest): _8.AddressBytesToStringRequestAmino; - fromAminoMsg(object: _8.AddressBytesToStringRequestAminoMsg): _8.AddressBytesToStringRequest; - toAminoMsg(message: _8.AddressBytesToStringRequest): _8.AddressBytesToStringRequestAminoMsg; - fromProtoMsg(message: _8.AddressBytesToStringRequestProtoMsg): _8.AddressBytesToStringRequest; - toProto(message: _8.AddressBytesToStringRequest): Uint8Array; - toProtoMsg(message: _8.AddressBytesToStringRequest): _8.AddressBytesToStringRequestProtoMsg; - }; - AddressBytesToStringResponse: { - typeUrl: string; - encode(message: _8.AddressBytesToStringResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressBytesToStringResponse; - fromJSON(object: any): _8.AddressBytesToStringResponse; - toJSON(message: _8.AddressBytesToStringResponse): unknown; - fromPartial(object: Partial<_8.AddressBytesToStringResponse>): _8.AddressBytesToStringResponse; - fromAmino(object: _8.AddressBytesToStringResponseAmino): _8.AddressBytesToStringResponse; - toAmino(message: _8.AddressBytesToStringResponse): _8.AddressBytesToStringResponseAmino; - fromAminoMsg(object: _8.AddressBytesToStringResponseAminoMsg): _8.AddressBytesToStringResponse; - toAminoMsg(message: _8.AddressBytesToStringResponse): _8.AddressBytesToStringResponseAminoMsg; - fromProtoMsg(message: _8.AddressBytesToStringResponseProtoMsg): _8.AddressBytesToStringResponse; - toProto(message: _8.AddressBytesToStringResponse): Uint8Array; - toProtoMsg(message: _8.AddressBytesToStringResponse): _8.AddressBytesToStringResponseProtoMsg; - }; - AddressStringToBytesRequest: { - typeUrl: string; - encode(message: _8.AddressStringToBytesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressStringToBytesRequest; - fromJSON(object: any): _8.AddressStringToBytesRequest; - toJSON(message: _8.AddressStringToBytesRequest): unknown; - fromPartial(object: Partial<_8.AddressStringToBytesRequest>): _8.AddressStringToBytesRequest; - fromAmino(object: _8.AddressStringToBytesRequestAmino): _8.AddressStringToBytesRequest; - toAmino(message: _8.AddressStringToBytesRequest): _8.AddressStringToBytesRequestAmino; - fromAminoMsg(object: _8.AddressStringToBytesRequestAminoMsg): _8.AddressStringToBytesRequest; - toAminoMsg(message: _8.AddressStringToBytesRequest): _8.AddressStringToBytesRequestAminoMsg; - fromProtoMsg(message: _8.AddressStringToBytesRequestProtoMsg): _8.AddressStringToBytesRequest; - toProto(message: _8.AddressStringToBytesRequest): Uint8Array; - toProtoMsg(message: _8.AddressStringToBytesRequest): _8.AddressStringToBytesRequestProtoMsg; - }; - AddressStringToBytesResponse: { - typeUrl: string; - encode(message: _8.AddressStringToBytesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.AddressStringToBytesResponse; - fromJSON(object: any): _8.AddressStringToBytesResponse; - toJSON(message: _8.AddressStringToBytesResponse): unknown; - fromPartial(object: Partial<_8.AddressStringToBytesResponse>): _8.AddressStringToBytesResponse; - fromAmino(object: _8.AddressStringToBytesResponseAmino): _8.AddressStringToBytesResponse; - toAmino(message: _8.AddressStringToBytesResponse): _8.AddressStringToBytesResponseAmino; - fromAminoMsg(object: _8.AddressStringToBytesResponseAminoMsg): _8.AddressStringToBytesResponse; - toAminoMsg(message: _8.AddressStringToBytesResponse): _8.AddressStringToBytesResponseAminoMsg; - fromProtoMsg(message: _8.AddressStringToBytesResponseProtoMsg): _8.AddressStringToBytesResponse; - toProto(message: _8.AddressStringToBytesResponse): Uint8Array; - toProtoMsg(message: _8.AddressStringToBytesResponse): _8.AddressStringToBytesResponseProtoMsg; - }; - QueryAccountAddressByIDRequest: { - typeUrl: string; - encode(message: _8.QueryAccountAddressByIDRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountAddressByIDRequest; - fromJSON(object: any): _8.QueryAccountAddressByIDRequest; - toJSON(message: _8.QueryAccountAddressByIDRequest): unknown; - fromPartial(object: Partial<_8.QueryAccountAddressByIDRequest>): _8.QueryAccountAddressByIDRequest; - fromAmino(object: _8.QueryAccountAddressByIDRequestAmino): _8.QueryAccountAddressByIDRequest; - toAmino(message: _8.QueryAccountAddressByIDRequest): _8.QueryAccountAddressByIDRequestAmino; - fromAminoMsg(object: _8.QueryAccountAddressByIDRequestAminoMsg): _8.QueryAccountAddressByIDRequest; - toAminoMsg(message: _8.QueryAccountAddressByIDRequest): _8.QueryAccountAddressByIDRequestAminoMsg; - fromProtoMsg(message: _8.QueryAccountAddressByIDRequestProtoMsg): _8.QueryAccountAddressByIDRequest; - toProto(message: _8.QueryAccountAddressByIDRequest): Uint8Array; - toProtoMsg(message: _8.QueryAccountAddressByIDRequest): _8.QueryAccountAddressByIDRequestProtoMsg; - }; - QueryAccountAddressByIDResponse: { - typeUrl: string; - encode(message: _8.QueryAccountAddressByIDResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _8.QueryAccountAddressByIDResponse; - fromJSON(object: any): _8.QueryAccountAddressByIDResponse; - toJSON(message: _8.QueryAccountAddressByIDResponse): unknown; - fromPartial(object: Partial<_8.QueryAccountAddressByIDResponse>): _8.QueryAccountAddressByIDResponse; - fromAmino(object: _8.QueryAccountAddressByIDResponseAmino): _8.QueryAccountAddressByIDResponse; - toAmino(message: _8.QueryAccountAddressByIDResponse): _8.QueryAccountAddressByIDResponseAmino; - fromAminoMsg(object: _8.QueryAccountAddressByIDResponseAminoMsg): _8.QueryAccountAddressByIDResponse; - toAminoMsg(message: _8.QueryAccountAddressByIDResponse): _8.QueryAccountAddressByIDResponseAminoMsg; - fromProtoMsg(message: _8.QueryAccountAddressByIDResponseProtoMsg): _8.QueryAccountAddressByIDResponse; - toProto(message: _8.QueryAccountAddressByIDResponse): Uint8Array; - toProtoMsg(message: _8.QueryAccountAddressByIDResponse): _8.QueryAccountAddressByIDResponseProtoMsg; - }; - AccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _6.BaseAccount; - AccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - AccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - ModuleAccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _6.ModuleAccount; - ModuleAccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - ModuleAccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - GenesisState: { - typeUrl: string; - encode(message: _7.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _7.GenesisState; - fromJSON(object: any): _7.GenesisState; - toJSON(message: _7.GenesisState): unknown; - fromPartial(object: Partial<_7.GenesisState>): _7.GenesisState; - fromAmino(object: _7.GenesisStateAmino): _7.GenesisState; - toAmino(message: _7.GenesisState): _7.GenesisStateAmino; - fromAminoMsg(object: _7.GenesisStateAminoMsg): _7.GenesisState; - toAminoMsg(message: _7.GenesisState): _7.GenesisStateAminoMsg; - fromProtoMsg(message: _7.GenesisStateProtoMsg): _7.GenesisState; - toProto(message: _7.GenesisState): Uint8Array; - toProtoMsg(message: _7.GenesisState): _7.GenesisStateProtoMsg; - }; - BaseAccount: { - typeUrl: string; - encode(message: _6.BaseAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.BaseAccount; - fromJSON(object: any): _6.BaseAccount; - toJSON(message: _6.BaseAccount): unknown; - fromPartial(object: Partial<_6.BaseAccount>): _6.BaseAccount; - fromAmino(object: _6.BaseAccountAmino): _6.BaseAccount; - toAmino(message: _6.BaseAccount): _6.BaseAccountAmino; - fromAminoMsg(object: _6.BaseAccountAminoMsg): _6.BaseAccount; - toAminoMsg(message: _6.BaseAccount): _6.BaseAccountAminoMsg; - fromProtoMsg(message: _6.BaseAccountProtoMsg): _6.BaseAccount; - toProto(message: _6.BaseAccount): Uint8Array; - toProtoMsg(message: _6.BaseAccount): _6.BaseAccountProtoMsg; - }; - ModuleAccount: { - typeUrl: string; - encode(message: _6.ModuleAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.ModuleAccount; - fromJSON(object: any): _6.ModuleAccount; - toJSON(message: _6.ModuleAccount): unknown; - fromPartial(object: Partial<_6.ModuleAccount>): _6.ModuleAccount; - fromAmino(object: _6.ModuleAccountAmino): _6.ModuleAccount; - toAmino(message: _6.ModuleAccount): _6.ModuleAccountAmino; - fromAminoMsg(object: _6.ModuleAccountAminoMsg): _6.ModuleAccount; - toAminoMsg(message: _6.ModuleAccount): _6.ModuleAccountAminoMsg; - fromProtoMsg(message: _6.ModuleAccountProtoMsg): _6.ModuleAccount; - toProto(message: _6.ModuleAccount): Uint8Array; - toProtoMsg(message: _6.ModuleAccount): _6.ModuleAccountProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _6.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _6.Params; - fromJSON(object: any): _6.Params; - toJSON(message: _6.Params): unknown; - fromPartial(object: Partial<_6.Params>): _6.Params; - fromAmino(object: _6.ParamsAmino): _6.Params; - toAmino(message: _6.Params): _6.ParamsAmino; - fromAminoMsg(object: _6.ParamsAminoMsg): _6.Params; - toAminoMsg(message: _6.Params): _6.ParamsAminoMsg; - fromProtoMsg(message: _6.ParamsProtoMsg): _6.Params; - toProto(message: _6.Params): Uint8Array; - toProtoMsg(message: _6.Params): _6.ParamsProtoMsg; - }; - }; - } - namespace authz { - const v1beta1: { - MsgClientImpl: typeof _217.MsgClientImpl; - QueryClientImpl: typeof _200.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - grants(request: _12.QueryGrantsRequest): Promise<_12.QueryGrantsResponse>; - granterGrants(request: _12.QueryGranterGrantsRequest): Promise<_12.QueryGranterGrantsResponse>; - granteeGrants(request: _12.QueryGranteeGrantsRequest): Promise<_12.QueryGranteeGrantsResponse>; - }; - LCDQueryClient: typeof _181.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - grant(value: _13.MsgGrant): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: _13.MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - revoke(value: _13.MsgRevoke): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grant(value: _13.MsgGrant): { - typeUrl: string; - value: _13.MsgGrant; - }; - exec(value: _13.MsgExec): { - typeUrl: string; - value: _13.MsgExec; - }; - revoke(value: _13.MsgRevoke): { - typeUrl: string; - value: _13.MsgRevoke; - }; - }; - toJSON: { - grant(value: _13.MsgGrant): { - typeUrl: string; - value: unknown; - }; - exec(value: _13.MsgExec): { - typeUrl: string; - value: unknown; - }; - revoke(value: _13.MsgRevoke): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - grant(value: any): { - typeUrl: string; - value: _13.MsgGrant; - }; - exec(value: any): { - typeUrl: string; - value: _13.MsgExec; - }; - revoke(value: any): { - typeUrl: string; - value: _13.MsgRevoke; - }; - }; - fromPartial: { - grant(value: _13.MsgGrant): { - typeUrl: string; - value: _13.MsgGrant; - }; - exec(value: _13.MsgExec): { - typeUrl: string; - value: _13.MsgExec; - }; - revoke(value: _13.MsgRevoke): { - typeUrl: string; - value: _13.MsgRevoke; - }; - }; - }; - AminoConverter: { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: _13.MsgGrant) => _13.MsgGrantAmino; - fromAmino: (object: _13.MsgGrantAmino) => _13.MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: _13.MsgExec) => _13.MsgExecAmino; - fromAmino: (object: _13.MsgExecAmino) => _13.MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: _13.MsgRevoke) => _13.MsgRevokeAmino; - fromAmino: (object: _13.MsgRevokeAmino) => _13.MsgRevoke; - }; - }; - MsgGrant: { - typeUrl: string; - encode(message: _13.MsgGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgGrant; - fromJSON(object: any): _13.MsgGrant; - toJSON(message: _13.MsgGrant): unknown; - fromPartial(object: Partial<_13.MsgGrant>): _13.MsgGrant; - fromAmino(object: _13.MsgGrantAmino): _13.MsgGrant; - toAmino(message: _13.MsgGrant): _13.MsgGrantAmino; - fromAminoMsg(object: _13.MsgGrantAminoMsg): _13.MsgGrant; - toAminoMsg(message: _13.MsgGrant): _13.MsgGrantAminoMsg; - fromProtoMsg(message: _13.MsgGrantProtoMsg): _13.MsgGrant; - toProto(message: _13.MsgGrant): Uint8Array; - toProtoMsg(message: _13.MsgGrant): _13.MsgGrantProtoMsg; - }; - MsgExecResponse: { - typeUrl: string; - encode(message: _13.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgExecResponse; - fromJSON(object: any): _13.MsgExecResponse; - toJSON(message: _13.MsgExecResponse): unknown; - fromPartial(object: Partial<_13.MsgExecResponse>): _13.MsgExecResponse; - fromAmino(object: _13.MsgExecResponseAmino): _13.MsgExecResponse; - toAmino(message: _13.MsgExecResponse): _13.MsgExecResponseAmino; - fromAminoMsg(object: _13.MsgExecResponseAminoMsg): _13.MsgExecResponse; - toAminoMsg(message: _13.MsgExecResponse): _13.MsgExecResponseAminoMsg; - fromProtoMsg(message: _13.MsgExecResponseProtoMsg): _13.MsgExecResponse; - toProto(message: _13.MsgExecResponse): Uint8Array; - toProtoMsg(message: _13.MsgExecResponse): _13.MsgExecResponseProtoMsg; - }; - MsgExec: { - typeUrl: string; - encode(message: _13.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgExec; - fromJSON(object: any): _13.MsgExec; - toJSON(message: _13.MsgExec): unknown; - fromPartial(object: Partial<_13.MsgExec>): _13.MsgExec; - fromAmino(object: _13.MsgExecAmino): _13.MsgExec; - toAmino(message: _13.MsgExec): _13.MsgExecAmino; - fromAminoMsg(object: _13.MsgExecAminoMsg): _13.MsgExec; - toAminoMsg(message: _13.MsgExec): _13.MsgExecAminoMsg; - fromProtoMsg(message: _13.MsgExecProtoMsg): _13.MsgExec; - toProto(message: _13.MsgExec): Uint8Array; - toProtoMsg(message: _13.MsgExec): _13.MsgExecProtoMsg; - }; - MsgGrantResponse: { - typeUrl: string; - encode(_: _13.MsgGrantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgGrantResponse; - fromJSON(_: any): _13.MsgGrantResponse; - toJSON(_: _13.MsgGrantResponse): unknown; - fromPartial(_: Partial<_13.MsgGrantResponse>): _13.MsgGrantResponse; - fromAmino(_: _13.MsgGrantResponseAmino): _13.MsgGrantResponse; - toAmino(_: _13.MsgGrantResponse): _13.MsgGrantResponseAmino; - fromAminoMsg(object: _13.MsgGrantResponseAminoMsg): _13.MsgGrantResponse; - toAminoMsg(message: _13.MsgGrantResponse): _13.MsgGrantResponseAminoMsg; - fromProtoMsg(message: _13.MsgGrantResponseProtoMsg): _13.MsgGrantResponse; - toProto(message: _13.MsgGrantResponse): Uint8Array; - toProtoMsg(message: _13.MsgGrantResponse): _13.MsgGrantResponseProtoMsg; - }; - MsgRevoke: { - typeUrl: string; - encode(message: _13.MsgRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgRevoke; - fromJSON(object: any): _13.MsgRevoke; - toJSON(message: _13.MsgRevoke): unknown; - fromPartial(object: Partial<_13.MsgRevoke>): _13.MsgRevoke; - fromAmino(object: _13.MsgRevokeAmino): _13.MsgRevoke; - toAmino(message: _13.MsgRevoke): _13.MsgRevokeAmino; - fromAminoMsg(object: _13.MsgRevokeAminoMsg): _13.MsgRevoke; - toAminoMsg(message: _13.MsgRevoke): _13.MsgRevokeAminoMsg; - fromProtoMsg(message: _13.MsgRevokeProtoMsg): _13.MsgRevoke; - toProto(message: _13.MsgRevoke): Uint8Array; - toProtoMsg(message: _13.MsgRevoke): _13.MsgRevokeProtoMsg; - }; - MsgRevokeResponse: { - typeUrl: string; - encode(_: _13.MsgRevokeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _13.MsgRevokeResponse; - fromJSON(_: any): _13.MsgRevokeResponse; - toJSON(_: _13.MsgRevokeResponse): unknown; - fromPartial(_: Partial<_13.MsgRevokeResponse>): _13.MsgRevokeResponse; - fromAmino(_: _13.MsgRevokeResponseAmino): _13.MsgRevokeResponse; - toAmino(_: _13.MsgRevokeResponse): _13.MsgRevokeResponseAmino; - fromAminoMsg(object: _13.MsgRevokeResponseAminoMsg): _13.MsgRevokeResponse; - toAminoMsg(message: _13.MsgRevokeResponse): _13.MsgRevokeResponseAminoMsg; - fromProtoMsg(message: _13.MsgRevokeResponseProtoMsg): _13.MsgRevokeResponse; - toProto(message: _13.MsgRevokeResponse): Uint8Array; - toProtoMsg(message: _13.MsgRevokeResponse): _13.MsgRevokeResponseProtoMsg; - }; - Sdk_Msg_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Sdk_Msg_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Sdk_Msg_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - Authz_Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Authz_Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Authz_Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryGrantsRequest: { - typeUrl: string; - encode(message: _12.QueryGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGrantsRequest; - fromJSON(object: any): _12.QueryGrantsRequest; - toJSON(message: _12.QueryGrantsRequest): unknown; - fromPartial(object: Partial<_12.QueryGrantsRequest>): _12.QueryGrantsRequest; - fromAmino(object: _12.QueryGrantsRequestAmino): _12.QueryGrantsRequest; - toAmino(message: _12.QueryGrantsRequest): _12.QueryGrantsRequestAmino; - fromAminoMsg(object: _12.QueryGrantsRequestAminoMsg): _12.QueryGrantsRequest; - toAminoMsg(message: _12.QueryGrantsRequest): _12.QueryGrantsRequestAminoMsg; - fromProtoMsg(message: _12.QueryGrantsRequestProtoMsg): _12.QueryGrantsRequest; - toProto(message: _12.QueryGrantsRequest): Uint8Array; - toProtoMsg(message: _12.QueryGrantsRequest): _12.QueryGrantsRequestProtoMsg; - }; - QueryGrantsResponse: { - typeUrl: string; - encode(message: _12.QueryGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGrantsResponse; - fromJSON(object: any): _12.QueryGrantsResponse; - toJSON(message: _12.QueryGrantsResponse): unknown; - fromPartial(object: Partial<_12.QueryGrantsResponse>): _12.QueryGrantsResponse; - fromAmino(object: _12.QueryGrantsResponseAmino): _12.QueryGrantsResponse; - toAmino(message: _12.QueryGrantsResponse): _12.QueryGrantsResponseAmino; - fromAminoMsg(object: _12.QueryGrantsResponseAminoMsg): _12.QueryGrantsResponse; - toAminoMsg(message: _12.QueryGrantsResponse): _12.QueryGrantsResponseAminoMsg; - fromProtoMsg(message: _12.QueryGrantsResponseProtoMsg): _12.QueryGrantsResponse; - toProto(message: _12.QueryGrantsResponse): Uint8Array; - toProtoMsg(message: _12.QueryGrantsResponse): _12.QueryGrantsResponseProtoMsg; - }; - QueryGranterGrantsRequest: { - typeUrl: string; - encode(message: _12.QueryGranterGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranterGrantsRequest; - fromJSON(object: any): _12.QueryGranterGrantsRequest; - toJSON(message: _12.QueryGranterGrantsRequest): unknown; - fromPartial(object: Partial<_12.QueryGranterGrantsRequest>): _12.QueryGranterGrantsRequest; - fromAmino(object: _12.QueryGranterGrantsRequestAmino): _12.QueryGranterGrantsRequest; - toAmino(message: _12.QueryGranterGrantsRequest): _12.QueryGranterGrantsRequestAmino; - fromAminoMsg(object: _12.QueryGranterGrantsRequestAminoMsg): _12.QueryGranterGrantsRequest; - toAminoMsg(message: _12.QueryGranterGrantsRequest): _12.QueryGranterGrantsRequestAminoMsg; - fromProtoMsg(message: _12.QueryGranterGrantsRequestProtoMsg): _12.QueryGranterGrantsRequest; - toProto(message: _12.QueryGranterGrantsRequest): Uint8Array; - toProtoMsg(message: _12.QueryGranterGrantsRequest): _12.QueryGranterGrantsRequestProtoMsg; - }; - QueryGranterGrantsResponse: { - typeUrl: string; - encode(message: _12.QueryGranterGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranterGrantsResponse; - fromJSON(object: any): _12.QueryGranterGrantsResponse; - toJSON(message: _12.QueryGranterGrantsResponse): unknown; - fromPartial(object: Partial<_12.QueryGranterGrantsResponse>): _12.QueryGranterGrantsResponse; - fromAmino(object: _12.QueryGranterGrantsResponseAmino): _12.QueryGranterGrantsResponse; - toAmino(message: _12.QueryGranterGrantsResponse): _12.QueryGranterGrantsResponseAmino; - fromAminoMsg(object: _12.QueryGranterGrantsResponseAminoMsg): _12.QueryGranterGrantsResponse; - toAminoMsg(message: _12.QueryGranterGrantsResponse): _12.QueryGranterGrantsResponseAminoMsg; - fromProtoMsg(message: _12.QueryGranterGrantsResponseProtoMsg): _12.QueryGranterGrantsResponse; - toProto(message: _12.QueryGranterGrantsResponse): Uint8Array; - toProtoMsg(message: _12.QueryGranterGrantsResponse): _12.QueryGranterGrantsResponseProtoMsg; - }; - QueryGranteeGrantsRequest: { - typeUrl: string; - encode(message: _12.QueryGranteeGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranteeGrantsRequest; - fromJSON(object: any): _12.QueryGranteeGrantsRequest; - toJSON(message: _12.QueryGranteeGrantsRequest): unknown; - fromPartial(object: Partial<_12.QueryGranteeGrantsRequest>): _12.QueryGranteeGrantsRequest; - fromAmino(object: _12.QueryGranteeGrantsRequestAmino): _12.QueryGranteeGrantsRequest; - toAmino(message: _12.QueryGranteeGrantsRequest): _12.QueryGranteeGrantsRequestAmino; - fromAminoMsg(object: _12.QueryGranteeGrantsRequestAminoMsg): _12.QueryGranteeGrantsRequest; - toAminoMsg(message: _12.QueryGranteeGrantsRequest): _12.QueryGranteeGrantsRequestAminoMsg; - fromProtoMsg(message: _12.QueryGranteeGrantsRequestProtoMsg): _12.QueryGranteeGrantsRequest; - toProto(message: _12.QueryGranteeGrantsRequest): Uint8Array; - toProtoMsg(message: _12.QueryGranteeGrantsRequest): _12.QueryGranteeGrantsRequestProtoMsg; - }; - QueryGranteeGrantsResponse: { - typeUrl: string; - encode(message: _12.QueryGranteeGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _12.QueryGranteeGrantsResponse; - fromJSON(object: any): _12.QueryGranteeGrantsResponse; - toJSON(message: _12.QueryGranteeGrantsResponse): unknown; - fromPartial(object: Partial<_12.QueryGranteeGrantsResponse>): _12.QueryGranteeGrantsResponse; - fromAmino(object: _12.QueryGranteeGrantsResponseAmino): _12.QueryGranteeGrantsResponse; - toAmino(message: _12.QueryGranteeGrantsResponse): _12.QueryGranteeGrantsResponseAmino; - fromAminoMsg(object: _12.QueryGranteeGrantsResponseAminoMsg): _12.QueryGranteeGrantsResponse; - toAminoMsg(message: _12.QueryGranteeGrantsResponse): _12.QueryGranteeGrantsResponseAminoMsg; - fromProtoMsg(message: _12.QueryGranteeGrantsResponseProtoMsg): _12.QueryGranteeGrantsResponse; - toProto(message: _12.QueryGranteeGrantsResponse): Uint8Array; - toProtoMsg(message: _12.QueryGranteeGrantsResponse): _12.QueryGranteeGrantsResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _11.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _11.GenesisState; - fromJSON(object: any): _11.GenesisState; - toJSON(message: _11.GenesisState): unknown; - fromPartial(object: Partial<_11.GenesisState>): _11.GenesisState; - fromAmino(object: _11.GenesisStateAmino): _11.GenesisState; - toAmino(message: _11.GenesisState): _11.GenesisStateAmino; - fromAminoMsg(object: _11.GenesisStateAminoMsg): _11.GenesisState; - toAminoMsg(message: _11.GenesisState): _11.GenesisStateAminoMsg; - fromProtoMsg(message: _11.GenesisStateProtoMsg): _11.GenesisState; - toProto(message: _11.GenesisState): Uint8Array; - toProtoMsg(message: _11.GenesisState): _11.GenesisStateProtoMsg; - }; - EventGrant: { - typeUrl: string; - encode(message: _10.EventGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _10.EventGrant; - fromJSON(object: any): _10.EventGrant; - toJSON(message: _10.EventGrant): unknown; - fromPartial(object: Partial<_10.EventGrant>): _10.EventGrant; - fromAmino(object: _10.EventGrantAmino): _10.EventGrant; - toAmino(message: _10.EventGrant): _10.EventGrantAmino; - fromAminoMsg(object: _10.EventGrantAminoMsg): _10.EventGrant; - toAminoMsg(message: _10.EventGrant): _10.EventGrantAminoMsg; - fromProtoMsg(message: _10.EventGrantProtoMsg): _10.EventGrant; - toProto(message: _10.EventGrant): Uint8Array; - toProtoMsg(message: _10.EventGrant): _10.EventGrantProtoMsg; - }; - EventRevoke: { - typeUrl: string; - encode(message: _10.EventRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _10.EventRevoke; - fromJSON(object: any): _10.EventRevoke; - toJSON(message: _10.EventRevoke): unknown; - fromPartial(object: Partial<_10.EventRevoke>): _10.EventRevoke; - fromAmino(object: _10.EventRevokeAmino): _10.EventRevoke; - toAmino(message: _10.EventRevoke): _10.EventRevokeAmino; - fromAminoMsg(object: _10.EventRevokeAminoMsg): _10.EventRevoke; - toAminoMsg(message: _10.EventRevoke): _10.EventRevokeAminoMsg; - fromProtoMsg(message: _10.EventRevokeProtoMsg): _10.EventRevoke; - toProto(message: _10.EventRevoke): Uint8Array; - toProtoMsg(message: _10.EventRevoke): _10.EventRevokeProtoMsg; - }; - GenericAuthorization: { - typeUrl: string; - encode(message: _9.GenericAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GenericAuthorization; - fromJSON(object: any): _9.GenericAuthorization; - toJSON(message: _9.GenericAuthorization): unknown; - fromPartial(object: Partial<_9.GenericAuthorization>): _9.GenericAuthorization; - fromAmino(object: _9.GenericAuthorizationAmino): _9.GenericAuthorization; - toAmino(message: _9.GenericAuthorization): _9.GenericAuthorizationAmino; - fromAminoMsg(object: _9.GenericAuthorizationAminoMsg): _9.GenericAuthorization; - toAminoMsg(message: _9.GenericAuthorization): _9.GenericAuthorizationAminoMsg; - fromProtoMsg(message: _9.GenericAuthorizationProtoMsg): _9.GenericAuthorization; - toProto(message: _9.GenericAuthorization): Uint8Array; - toProtoMsg(message: _9.GenericAuthorization): _9.GenericAuthorizationProtoMsg; - }; - Grant: { - typeUrl: string; - encode(message: _9.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.Grant; - fromJSON(object: any): _9.Grant; - toJSON(message: _9.Grant): unknown; - fromPartial(object: Partial<_9.Grant>): _9.Grant; - fromAmino(object: _9.GrantAmino): _9.Grant; - toAmino(message: _9.Grant): _9.GrantAmino; - fromAminoMsg(object: _9.GrantAminoMsg): _9.Grant; - toAminoMsg(message: _9.Grant): _9.GrantAminoMsg; - fromProtoMsg(message: _9.GrantProtoMsg): _9.Grant; - toProto(message: _9.Grant): Uint8Array; - toProtoMsg(message: _9.Grant): _9.GrantProtoMsg; - }; - GrantAuthorization: { - typeUrl: string; - encode(message: _9.GrantAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GrantAuthorization; - fromJSON(object: any): _9.GrantAuthorization; - toJSON(message: _9.GrantAuthorization): unknown; - fromPartial(object: Partial<_9.GrantAuthorization>): _9.GrantAuthorization; - fromAmino(object: _9.GrantAuthorizationAmino): _9.GrantAuthorization; - toAmino(message: _9.GrantAuthorization): _9.GrantAuthorizationAmino; - fromAminoMsg(object: _9.GrantAuthorizationAminoMsg): _9.GrantAuthorization; - toAminoMsg(message: _9.GrantAuthorization): _9.GrantAuthorizationAminoMsg; - fromProtoMsg(message: _9.GrantAuthorizationProtoMsg): _9.GrantAuthorization; - toProto(message: _9.GrantAuthorization): Uint8Array; - toProtoMsg(message: _9.GrantAuthorization): _9.GrantAuthorizationProtoMsg; - }; - GrantQueueItem: { - typeUrl: string; - encode(message: _9.GrantQueueItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _9.GrantQueueItem; - fromJSON(object: any): _9.GrantQueueItem; - toJSON(message: _9.GrantQueueItem): unknown; - fromPartial(object: Partial<_9.GrantQueueItem>): _9.GrantQueueItem; - fromAmino(object: _9.GrantQueueItemAmino): _9.GrantQueueItem; - toAmino(message: _9.GrantQueueItem): _9.GrantQueueItemAmino; - fromAminoMsg(object: _9.GrantQueueItemAminoMsg): _9.GrantQueueItem; - toAminoMsg(message: _9.GrantQueueItem): _9.GrantQueueItemAminoMsg; - fromProtoMsg(message: _9.GrantQueueItemProtoMsg): _9.GrantQueueItem; - toProto(message: _9.GrantQueueItem): Uint8Array; - toProtoMsg(message: _9.GrantQueueItem): _9.GrantQueueItemProtoMsg; - }; - Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _14.SendAuthorization | _85.StakeAuthorization | _9.GenericAuthorization; - Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - }; - } - namespace bank { - const v1beta1: { - MsgClientImpl: typeof _218.MsgClientImpl; - QueryClientImpl: typeof _201.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - balance(request: _17.QueryBalanceRequest): Promise<_17.QueryBalanceResponse>; - allBalances(request: _17.QueryAllBalancesRequest): Promise<_17.QueryAllBalancesResponse>; - spendableBalances(request: _17.QuerySpendableBalancesRequest): Promise<_17.QuerySpendableBalancesResponse>; - totalSupply(request?: _17.QueryTotalSupplyRequest | undefined): Promise<_17.QueryTotalSupplyResponse>; - supplyOf(request: _17.QuerySupplyOfRequest): Promise<_17.QuerySupplyOfResponse>; - params(request?: _17.QueryParamsRequest | undefined): Promise<_17.QueryParamsResponse>; - denomMetadata(request: _17.QueryDenomMetadataRequest): Promise<_17.QueryDenomMetadataResponse>; - denomsMetadata(request?: _17.QueryDenomsMetadataRequest | undefined): Promise<_17.QueryDenomsMetadataResponse>; - denomOwners(request: _17.QueryDenomOwnersRequest): Promise<_17.QueryDenomOwnersResponse>; - }; - LCDQueryClient: typeof _182.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - send(value: _18.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - multiSend(value: _18.MsgMultiSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: _18.MsgSend): { - typeUrl: string; - value: _18.MsgSend; - }; - multiSend(value: _18.MsgMultiSend): { - typeUrl: string; - value: _18.MsgMultiSend; - }; - }; - toJSON: { - send(value: _18.MsgSend): { - typeUrl: string; - value: unknown; - }; - multiSend(value: _18.MsgMultiSend): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - send(value: any): { - typeUrl: string; - value: _18.MsgSend; - }; - multiSend(value: any): { - typeUrl: string; - value: _18.MsgMultiSend; - }; - }; - fromPartial: { - send(value: _18.MsgSend): { - typeUrl: string; - value: _18.MsgSend; - }; - multiSend(value: _18.MsgMultiSend): { - typeUrl: string; - value: _18.MsgMultiSend; - }; - }; - }; - AminoConverter: { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: _18.MsgSend) => _18.MsgSendAmino; - fromAmino: (object: _18.MsgSendAmino) => _18.MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: _18.MsgMultiSend) => _18.MsgMultiSendAmino; - fromAmino: (object: _18.MsgMultiSendAmino) => _18.MsgMultiSend; - }; - }; - MsgSend: { - typeUrl: string; - encode(message: _18.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgSend; - fromJSON(object: any): _18.MsgSend; - toJSON(message: _18.MsgSend): unknown; - fromPartial(object: Partial<_18.MsgSend>): _18.MsgSend; - fromAmino(object: _18.MsgSendAmino): _18.MsgSend; - toAmino(message: _18.MsgSend): _18.MsgSendAmino; - fromAminoMsg(object: _18.MsgSendAminoMsg): _18.MsgSend; - toAminoMsg(message: _18.MsgSend): _18.MsgSendAminoMsg; - fromProtoMsg(message: _18.MsgSendProtoMsg): _18.MsgSend; - toProto(message: _18.MsgSend): Uint8Array; - toProtoMsg(message: _18.MsgSend): _18.MsgSendProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _18.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgSendResponse; - fromJSON(_: any): _18.MsgSendResponse; - toJSON(_: _18.MsgSendResponse): unknown; - fromPartial(_: Partial<_18.MsgSendResponse>): _18.MsgSendResponse; - fromAmino(_: _18.MsgSendResponseAmino): _18.MsgSendResponse; - toAmino(_: _18.MsgSendResponse): _18.MsgSendResponseAmino; - fromAminoMsg(object: _18.MsgSendResponseAminoMsg): _18.MsgSendResponse; - toAminoMsg(message: _18.MsgSendResponse): _18.MsgSendResponseAminoMsg; - fromProtoMsg(message: _18.MsgSendResponseProtoMsg): _18.MsgSendResponse; - toProto(message: _18.MsgSendResponse): Uint8Array; - toProtoMsg(message: _18.MsgSendResponse): _18.MsgSendResponseProtoMsg; - }; - MsgMultiSend: { - typeUrl: string; - encode(message: _18.MsgMultiSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgMultiSend; - fromJSON(object: any): _18.MsgMultiSend; - toJSON(message: _18.MsgMultiSend): unknown; - fromPartial(object: Partial<_18.MsgMultiSend>): _18.MsgMultiSend; - fromAmino(object: _18.MsgMultiSendAmino): _18.MsgMultiSend; - toAmino(message: _18.MsgMultiSend): _18.MsgMultiSendAmino; - fromAminoMsg(object: _18.MsgMultiSendAminoMsg): _18.MsgMultiSend; - toAminoMsg(message: _18.MsgMultiSend): _18.MsgMultiSendAminoMsg; - fromProtoMsg(message: _18.MsgMultiSendProtoMsg): _18.MsgMultiSend; - toProto(message: _18.MsgMultiSend): Uint8Array; - toProtoMsg(message: _18.MsgMultiSend): _18.MsgMultiSendProtoMsg; - }; - MsgMultiSendResponse: { - typeUrl: string; - encode(_: _18.MsgMultiSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _18.MsgMultiSendResponse; - fromJSON(_: any): _18.MsgMultiSendResponse; - toJSON(_: _18.MsgMultiSendResponse): unknown; - fromPartial(_: Partial<_18.MsgMultiSendResponse>): _18.MsgMultiSendResponse; - fromAmino(_: _18.MsgMultiSendResponseAmino): _18.MsgMultiSendResponse; - toAmino(_: _18.MsgMultiSendResponse): _18.MsgMultiSendResponseAmino; - fromAminoMsg(object: _18.MsgMultiSendResponseAminoMsg): _18.MsgMultiSendResponse; - toAminoMsg(message: _18.MsgMultiSendResponse): _18.MsgMultiSendResponseAminoMsg; - fromProtoMsg(message: _18.MsgMultiSendResponseProtoMsg): _18.MsgMultiSendResponse; - toProto(message: _18.MsgMultiSendResponse): Uint8Array; - toProtoMsg(message: _18.MsgMultiSendResponse): _18.MsgMultiSendResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _17.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryBalanceRequest; - fromJSON(object: any): _17.QueryBalanceRequest; - toJSON(message: _17.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_17.QueryBalanceRequest>): _17.QueryBalanceRequest; - fromAmino(object: _17.QueryBalanceRequestAmino): _17.QueryBalanceRequest; - toAmino(message: _17.QueryBalanceRequest): _17.QueryBalanceRequestAmino; - fromAminoMsg(object: _17.QueryBalanceRequestAminoMsg): _17.QueryBalanceRequest; - toAminoMsg(message: _17.QueryBalanceRequest): _17.QueryBalanceRequestAminoMsg; - fromProtoMsg(message: _17.QueryBalanceRequestProtoMsg): _17.QueryBalanceRequest; - toProto(message: _17.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _17.QueryBalanceRequest): _17.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _17.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryBalanceResponse; - fromJSON(object: any): _17.QueryBalanceResponse; - toJSON(message: _17.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_17.QueryBalanceResponse>): _17.QueryBalanceResponse; - fromAmino(object: _17.QueryBalanceResponseAmino): _17.QueryBalanceResponse; - toAmino(message: _17.QueryBalanceResponse): _17.QueryBalanceResponseAmino; - fromAminoMsg(object: _17.QueryBalanceResponseAminoMsg): _17.QueryBalanceResponse; - toAminoMsg(message: _17.QueryBalanceResponse): _17.QueryBalanceResponseAminoMsg; - fromProtoMsg(message: _17.QueryBalanceResponseProtoMsg): _17.QueryBalanceResponse; - toProto(message: _17.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _17.QueryBalanceResponse): _17.QueryBalanceResponseProtoMsg; - }; - QueryAllBalancesRequest: { - typeUrl: string; - encode(message: _17.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryAllBalancesRequest; - fromJSON(object: any): _17.QueryAllBalancesRequest; - toJSON(message: _17.QueryAllBalancesRequest): unknown; - fromPartial(object: Partial<_17.QueryAllBalancesRequest>): _17.QueryAllBalancesRequest; - fromAmino(object: _17.QueryAllBalancesRequestAmino): _17.QueryAllBalancesRequest; - toAmino(message: _17.QueryAllBalancesRequest): _17.QueryAllBalancesRequestAmino; - fromAminoMsg(object: _17.QueryAllBalancesRequestAminoMsg): _17.QueryAllBalancesRequest; - toAminoMsg(message: _17.QueryAllBalancesRequest): _17.QueryAllBalancesRequestAminoMsg; - fromProtoMsg(message: _17.QueryAllBalancesRequestProtoMsg): _17.QueryAllBalancesRequest; - toProto(message: _17.QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: _17.QueryAllBalancesRequest): _17.QueryAllBalancesRequestProtoMsg; - }; - QueryAllBalancesResponse: { - typeUrl: string; - encode(message: _17.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryAllBalancesResponse; - fromJSON(object: any): _17.QueryAllBalancesResponse; - toJSON(message: _17.QueryAllBalancesResponse): unknown; - fromPartial(object: Partial<_17.QueryAllBalancesResponse>): _17.QueryAllBalancesResponse; - fromAmino(object: _17.QueryAllBalancesResponseAmino): _17.QueryAllBalancesResponse; - toAmino(message: _17.QueryAllBalancesResponse): _17.QueryAllBalancesResponseAmino; - fromAminoMsg(object: _17.QueryAllBalancesResponseAminoMsg): _17.QueryAllBalancesResponse; - toAminoMsg(message: _17.QueryAllBalancesResponse): _17.QueryAllBalancesResponseAminoMsg; - fromProtoMsg(message: _17.QueryAllBalancesResponseProtoMsg): _17.QueryAllBalancesResponse; - toProto(message: _17.QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: _17.QueryAllBalancesResponse): _17.QueryAllBalancesResponseProtoMsg; - }; - QuerySpendableBalancesRequest: { - typeUrl: string; - encode(message: _17.QuerySpendableBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySpendableBalancesRequest; - fromJSON(object: any): _17.QuerySpendableBalancesRequest; - toJSON(message: _17.QuerySpendableBalancesRequest): unknown; - fromPartial(object: Partial<_17.QuerySpendableBalancesRequest>): _17.QuerySpendableBalancesRequest; - fromAmino(object: _17.QuerySpendableBalancesRequestAmino): _17.QuerySpendableBalancesRequest; - toAmino(message: _17.QuerySpendableBalancesRequest): _17.QuerySpendableBalancesRequestAmino; - fromAminoMsg(object: _17.QuerySpendableBalancesRequestAminoMsg): _17.QuerySpendableBalancesRequest; - toAminoMsg(message: _17.QuerySpendableBalancesRequest): _17.QuerySpendableBalancesRequestAminoMsg; - fromProtoMsg(message: _17.QuerySpendableBalancesRequestProtoMsg): _17.QuerySpendableBalancesRequest; - toProto(message: _17.QuerySpendableBalancesRequest): Uint8Array; - toProtoMsg(message: _17.QuerySpendableBalancesRequest): _17.QuerySpendableBalancesRequestProtoMsg; - }; - QuerySpendableBalancesResponse: { - typeUrl: string; - encode(message: _17.QuerySpendableBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySpendableBalancesResponse; - fromJSON(object: any): _17.QuerySpendableBalancesResponse; - toJSON(message: _17.QuerySpendableBalancesResponse): unknown; - fromPartial(object: Partial<_17.QuerySpendableBalancesResponse>): _17.QuerySpendableBalancesResponse; - fromAmino(object: _17.QuerySpendableBalancesResponseAmino): _17.QuerySpendableBalancesResponse; - toAmino(message: _17.QuerySpendableBalancesResponse): _17.QuerySpendableBalancesResponseAmino; - fromAminoMsg(object: _17.QuerySpendableBalancesResponseAminoMsg): _17.QuerySpendableBalancesResponse; - toAminoMsg(message: _17.QuerySpendableBalancesResponse): _17.QuerySpendableBalancesResponseAminoMsg; - fromProtoMsg(message: _17.QuerySpendableBalancesResponseProtoMsg): _17.QuerySpendableBalancesResponse; - toProto(message: _17.QuerySpendableBalancesResponse): Uint8Array; - toProtoMsg(message: _17.QuerySpendableBalancesResponse): _17.QuerySpendableBalancesResponseProtoMsg; - }; - QueryTotalSupplyRequest: { - typeUrl: string; - encode(message: _17.QueryTotalSupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryTotalSupplyRequest; - fromJSON(object: any): _17.QueryTotalSupplyRequest; - toJSON(message: _17.QueryTotalSupplyRequest): unknown; - fromPartial(object: Partial<_17.QueryTotalSupplyRequest>): _17.QueryTotalSupplyRequest; - fromAmino(object: _17.QueryTotalSupplyRequestAmino): _17.QueryTotalSupplyRequest; - toAmino(message: _17.QueryTotalSupplyRequest): _17.QueryTotalSupplyRequestAmino; - fromAminoMsg(object: _17.QueryTotalSupplyRequestAminoMsg): _17.QueryTotalSupplyRequest; - toAminoMsg(message: _17.QueryTotalSupplyRequest): _17.QueryTotalSupplyRequestAminoMsg; - fromProtoMsg(message: _17.QueryTotalSupplyRequestProtoMsg): _17.QueryTotalSupplyRequest; - toProto(message: _17.QueryTotalSupplyRequest): Uint8Array; - toProtoMsg(message: _17.QueryTotalSupplyRequest): _17.QueryTotalSupplyRequestProtoMsg; - }; - QueryTotalSupplyResponse: { - typeUrl: string; - encode(message: _17.QueryTotalSupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryTotalSupplyResponse; - fromJSON(object: any): _17.QueryTotalSupplyResponse; - toJSON(message: _17.QueryTotalSupplyResponse): unknown; - fromPartial(object: Partial<_17.QueryTotalSupplyResponse>): _17.QueryTotalSupplyResponse; - fromAmino(object: _17.QueryTotalSupplyResponseAmino): _17.QueryTotalSupplyResponse; - toAmino(message: _17.QueryTotalSupplyResponse): _17.QueryTotalSupplyResponseAmino; - fromAminoMsg(object: _17.QueryTotalSupplyResponseAminoMsg): _17.QueryTotalSupplyResponse; - toAminoMsg(message: _17.QueryTotalSupplyResponse): _17.QueryTotalSupplyResponseAminoMsg; - fromProtoMsg(message: _17.QueryTotalSupplyResponseProtoMsg): _17.QueryTotalSupplyResponse; - toProto(message: _17.QueryTotalSupplyResponse): Uint8Array; - toProtoMsg(message: _17.QueryTotalSupplyResponse): _17.QueryTotalSupplyResponseProtoMsg; - }; - QuerySupplyOfRequest: { - typeUrl: string; - encode(message: _17.QuerySupplyOfRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySupplyOfRequest; - fromJSON(object: any): _17.QuerySupplyOfRequest; - toJSON(message: _17.QuerySupplyOfRequest): unknown; - fromPartial(object: Partial<_17.QuerySupplyOfRequest>): _17.QuerySupplyOfRequest; - fromAmino(object: _17.QuerySupplyOfRequestAmino): _17.QuerySupplyOfRequest; - toAmino(message: _17.QuerySupplyOfRequest): _17.QuerySupplyOfRequestAmino; - fromAminoMsg(object: _17.QuerySupplyOfRequestAminoMsg): _17.QuerySupplyOfRequest; - toAminoMsg(message: _17.QuerySupplyOfRequest): _17.QuerySupplyOfRequestAminoMsg; - fromProtoMsg(message: _17.QuerySupplyOfRequestProtoMsg): _17.QuerySupplyOfRequest; - toProto(message: _17.QuerySupplyOfRequest): Uint8Array; - toProtoMsg(message: _17.QuerySupplyOfRequest): _17.QuerySupplyOfRequestProtoMsg; - }; - QuerySupplyOfResponse: { - typeUrl: string; - encode(message: _17.QuerySupplyOfResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QuerySupplyOfResponse; - fromJSON(object: any): _17.QuerySupplyOfResponse; - toJSON(message: _17.QuerySupplyOfResponse): unknown; - fromPartial(object: Partial<_17.QuerySupplyOfResponse>): _17.QuerySupplyOfResponse; - fromAmino(object: _17.QuerySupplyOfResponseAmino): _17.QuerySupplyOfResponse; - toAmino(message: _17.QuerySupplyOfResponse): _17.QuerySupplyOfResponseAmino; - fromAminoMsg(object: _17.QuerySupplyOfResponseAminoMsg): _17.QuerySupplyOfResponse; - toAminoMsg(message: _17.QuerySupplyOfResponse): _17.QuerySupplyOfResponseAminoMsg; - fromProtoMsg(message: _17.QuerySupplyOfResponseProtoMsg): _17.QuerySupplyOfResponse; - toProto(message: _17.QuerySupplyOfResponse): Uint8Array; - toProtoMsg(message: _17.QuerySupplyOfResponse): _17.QuerySupplyOfResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _17.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryParamsRequest; - fromJSON(_: any): _17.QueryParamsRequest; - toJSON(_: _17.QueryParamsRequest): unknown; - fromPartial(_: Partial<_17.QueryParamsRequest>): _17.QueryParamsRequest; - fromAmino(_: _17.QueryParamsRequestAmino): _17.QueryParamsRequest; - toAmino(_: _17.QueryParamsRequest): _17.QueryParamsRequestAmino; - fromAminoMsg(object: _17.QueryParamsRequestAminoMsg): _17.QueryParamsRequest; - toAminoMsg(message: _17.QueryParamsRequest): _17.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _17.QueryParamsRequestProtoMsg): _17.QueryParamsRequest; - toProto(message: _17.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _17.QueryParamsRequest): _17.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _17.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryParamsResponse; - fromJSON(object: any): _17.QueryParamsResponse; - toJSON(message: _17.QueryParamsResponse): unknown; - fromPartial(object: Partial<_17.QueryParamsResponse>): _17.QueryParamsResponse; - fromAmino(object: _17.QueryParamsResponseAmino): _17.QueryParamsResponse; - toAmino(message: _17.QueryParamsResponse): _17.QueryParamsResponseAmino; - fromAminoMsg(object: _17.QueryParamsResponseAminoMsg): _17.QueryParamsResponse; - toAminoMsg(message: _17.QueryParamsResponse): _17.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _17.QueryParamsResponseProtoMsg): _17.QueryParamsResponse; - toProto(message: _17.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _17.QueryParamsResponse): _17.QueryParamsResponseProtoMsg; - }; - QueryDenomsMetadataRequest: { - typeUrl: string; - encode(message: _17.QueryDenomsMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomsMetadataRequest; - fromJSON(object: any): _17.QueryDenomsMetadataRequest; - toJSON(message: _17.QueryDenomsMetadataRequest): unknown; - fromPartial(object: Partial<_17.QueryDenomsMetadataRequest>): _17.QueryDenomsMetadataRequest; - fromAmino(object: _17.QueryDenomsMetadataRequestAmino): _17.QueryDenomsMetadataRequest; - toAmino(message: _17.QueryDenomsMetadataRequest): _17.QueryDenomsMetadataRequestAmino; - fromAminoMsg(object: _17.QueryDenomsMetadataRequestAminoMsg): _17.QueryDenomsMetadataRequest; - toAminoMsg(message: _17.QueryDenomsMetadataRequest): _17.QueryDenomsMetadataRequestAminoMsg; - fromProtoMsg(message: _17.QueryDenomsMetadataRequestProtoMsg): _17.QueryDenomsMetadataRequest; - toProto(message: _17.QueryDenomsMetadataRequest): Uint8Array; - toProtoMsg(message: _17.QueryDenomsMetadataRequest): _17.QueryDenomsMetadataRequestProtoMsg; - }; - QueryDenomsMetadataResponse: { - typeUrl: string; - encode(message: _17.QueryDenomsMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomsMetadataResponse; - fromJSON(object: any): _17.QueryDenomsMetadataResponse; - toJSON(message: _17.QueryDenomsMetadataResponse): unknown; - fromPartial(object: Partial<_17.QueryDenomsMetadataResponse>): _17.QueryDenomsMetadataResponse; - fromAmino(object: _17.QueryDenomsMetadataResponseAmino): _17.QueryDenomsMetadataResponse; - toAmino(message: _17.QueryDenomsMetadataResponse): _17.QueryDenomsMetadataResponseAmino; - fromAminoMsg(object: _17.QueryDenomsMetadataResponseAminoMsg): _17.QueryDenomsMetadataResponse; - toAminoMsg(message: _17.QueryDenomsMetadataResponse): _17.QueryDenomsMetadataResponseAminoMsg; - fromProtoMsg(message: _17.QueryDenomsMetadataResponseProtoMsg): _17.QueryDenomsMetadataResponse; - toProto(message: _17.QueryDenomsMetadataResponse): Uint8Array; - toProtoMsg(message: _17.QueryDenomsMetadataResponse): _17.QueryDenomsMetadataResponseProtoMsg; - }; - QueryDenomMetadataRequest: { - typeUrl: string; - encode(message: _17.QueryDenomMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomMetadataRequest; - fromJSON(object: any): _17.QueryDenomMetadataRequest; - toJSON(message: _17.QueryDenomMetadataRequest): unknown; - fromPartial(object: Partial<_17.QueryDenomMetadataRequest>): _17.QueryDenomMetadataRequest; - fromAmino(object: _17.QueryDenomMetadataRequestAmino): _17.QueryDenomMetadataRequest; - toAmino(message: _17.QueryDenomMetadataRequest): _17.QueryDenomMetadataRequestAmino; - fromAminoMsg(object: _17.QueryDenomMetadataRequestAminoMsg): _17.QueryDenomMetadataRequest; - toAminoMsg(message: _17.QueryDenomMetadataRequest): _17.QueryDenomMetadataRequestAminoMsg; - fromProtoMsg(message: _17.QueryDenomMetadataRequestProtoMsg): _17.QueryDenomMetadataRequest; - toProto(message: _17.QueryDenomMetadataRequest): Uint8Array; - toProtoMsg(message: _17.QueryDenomMetadataRequest): _17.QueryDenomMetadataRequestProtoMsg; - }; - QueryDenomMetadataResponse: { - typeUrl: string; - encode(message: _17.QueryDenomMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomMetadataResponse; - fromJSON(object: any): _17.QueryDenomMetadataResponse; - toJSON(message: _17.QueryDenomMetadataResponse): unknown; - fromPartial(object: Partial<_17.QueryDenomMetadataResponse>): _17.QueryDenomMetadataResponse; - fromAmino(object: _17.QueryDenomMetadataResponseAmino): _17.QueryDenomMetadataResponse; - toAmino(message: _17.QueryDenomMetadataResponse): _17.QueryDenomMetadataResponseAmino; - fromAminoMsg(object: _17.QueryDenomMetadataResponseAminoMsg): _17.QueryDenomMetadataResponse; - toAminoMsg(message: _17.QueryDenomMetadataResponse): _17.QueryDenomMetadataResponseAminoMsg; - fromProtoMsg(message: _17.QueryDenomMetadataResponseProtoMsg): _17.QueryDenomMetadataResponse; - toProto(message: _17.QueryDenomMetadataResponse): Uint8Array; - toProtoMsg(message: _17.QueryDenomMetadataResponse): _17.QueryDenomMetadataResponseProtoMsg; - }; - QueryDenomOwnersRequest: { - typeUrl: string; - encode(message: _17.QueryDenomOwnersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomOwnersRequest; - fromJSON(object: any): _17.QueryDenomOwnersRequest; - toJSON(message: _17.QueryDenomOwnersRequest): unknown; - fromPartial(object: Partial<_17.QueryDenomOwnersRequest>): _17.QueryDenomOwnersRequest; - fromAmino(object: _17.QueryDenomOwnersRequestAmino): _17.QueryDenomOwnersRequest; - toAmino(message: _17.QueryDenomOwnersRequest): _17.QueryDenomOwnersRequestAmino; - fromAminoMsg(object: _17.QueryDenomOwnersRequestAminoMsg): _17.QueryDenomOwnersRequest; - toAminoMsg(message: _17.QueryDenomOwnersRequest): _17.QueryDenomOwnersRequestAminoMsg; - fromProtoMsg(message: _17.QueryDenomOwnersRequestProtoMsg): _17.QueryDenomOwnersRequest; - toProto(message: _17.QueryDenomOwnersRequest): Uint8Array; - toProtoMsg(message: _17.QueryDenomOwnersRequest): _17.QueryDenomOwnersRequestProtoMsg; - }; - DenomOwner: { - typeUrl: string; - encode(message: _17.DenomOwner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.DenomOwner; - fromJSON(object: any): _17.DenomOwner; - toJSON(message: _17.DenomOwner): unknown; - fromPartial(object: Partial<_17.DenomOwner>): _17.DenomOwner; - fromAmino(object: _17.DenomOwnerAmino): _17.DenomOwner; - toAmino(message: _17.DenomOwner): _17.DenomOwnerAmino; - fromAminoMsg(object: _17.DenomOwnerAminoMsg): _17.DenomOwner; - toAminoMsg(message: _17.DenomOwner): _17.DenomOwnerAminoMsg; - fromProtoMsg(message: _17.DenomOwnerProtoMsg): _17.DenomOwner; - toProto(message: _17.DenomOwner): Uint8Array; - toProtoMsg(message: _17.DenomOwner): _17.DenomOwnerProtoMsg; - }; - QueryDenomOwnersResponse: { - typeUrl: string; - encode(message: _17.QueryDenomOwnersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _17.QueryDenomOwnersResponse; - fromJSON(object: any): _17.QueryDenomOwnersResponse; - toJSON(message: _17.QueryDenomOwnersResponse): unknown; - fromPartial(object: Partial<_17.QueryDenomOwnersResponse>): _17.QueryDenomOwnersResponse; - fromAmino(object: _17.QueryDenomOwnersResponseAmino): _17.QueryDenomOwnersResponse; - toAmino(message: _17.QueryDenomOwnersResponse): _17.QueryDenomOwnersResponseAmino; - fromAminoMsg(object: _17.QueryDenomOwnersResponseAminoMsg): _17.QueryDenomOwnersResponse; - toAminoMsg(message: _17.QueryDenomOwnersResponse): _17.QueryDenomOwnersResponseAminoMsg; - fromProtoMsg(message: _17.QueryDenomOwnersResponseProtoMsg): _17.QueryDenomOwnersResponse; - toProto(message: _17.QueryDenomOwnersResponse): Uint8Array; - toProtoMsg(message: _17.QueryDenomOwnersResponse): _17.QueryDenomOwnersResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _16.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _16.GenesisState; - fromJSON(object: any): _16.GenesisState; - toJSON(message: _16.GenesisState): unknown; - fromPartial(object: Partial<_16.GenesisState>): _16.GenesisState; - fromAmino(object: _16.GenesisStateAmino): _16.GenesisState; - toAmino(message: _16.GenesisState): _16.GenesisStateAmino; - fromAminoMsg(object: _16.GenesisStateAminoMsg): _16.GenesisState; - toAminoMsg(message: _16.GenesisState): _16.GenesisStateAminoMsg; - fromProtoMsg(message: _16.GenesisStateProtoMsg): _16.GenesisState; - toProto(message: _16.GenesisState): Uint8Array; - toProtoMsg(message: _16.GenesisState): _16.GenesisStateProtoMsg; - }; - Balance: { - typeUrl: string; - encode(message: _16.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _16.Balance; - fromJSON(object: any): _16.Balance; - toJSON(message: _16.Balance): unknown; - fromPartial(object: Partial<_16.Balance>): _16.Balance; - fromAmino(object: _16.BalanceAmino): _16.Balance; - toAmino(message: _16.Balance): _16.BalanceAmino; - fromAminoMsg(object: _16.BalanceAminoMsg): _16.Balance; - toAminoMsg(message: _16.Balance): _16.BalanceAminoMsg; - fromProtoMsg(message: _16.BalanceProtoMsg): _16.Balance; - toProto(message: _16.Balance): Uint8Array; - toProtoMsg(message: _16.Balance): _16.BalanceProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _15.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Params; - fromJSON(object: any): _15.Params; - toJSON(message: _15.Params): unknown; - fromPartial(object: Partial<_15.Params>): _15.Params; - fromAmino(object: _15.ParamsAmino): _15.Params; - toAmino(message: _15.Params): _15.ParamsAmino; - fromAminoMsg(object: _15.ParamsAminoMsg): _15.Params; - toAminoMsg(message: _15.Params): _15.ParamsAminoMsg; - fromProtoMsg(message: _15.ParamsProtoMsg): _15.Params; - toProto(message: _15.Params): Uint8Array; - toProtoMsg(message: _15.Params): _15.ParamsProtoMsg; - }; - SendEnabled: { - typeUrl: string; - encode(message: _15.SendEnabled, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.SendEnabled; - fromJSON(object: any): _15.SendEnabled; - toJSON(message: _15.SendEnabled): unknown; - fromPartial(object: Partial<_15.SendEnabled>): _15.SendEnabled; - fromAmino(object: _15.SendEnabledAmino): _15.SendEnabled; - toAmino(message: _15.SendEnabled): _15.SendEnabledAmino; - fromAminoMsg(object: _15.SendEnabledAminoMsg): _15.SendEnabled; - toAminoMsg(message: _15.SendEnabled): _15.SendEnabledAminoMsg; - fromProtoMsg(message: _15.SendEnabledProtoMsg): _15.SendEnabled; - toProto(message: _15.SendEnabled): Uint8Array; - toProtoMsg(message: _15.SendEnabled): _15.SendEnabledProtoMsg; - }; - Input: { - typeUrl: string; - encode(message: _15.Input, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Input; - fromJSON(object: any): _15.Input; - toJSON(message: _15.Input): unknown; - fromPartial(object: Partial<_15.Input>): _15.Input; - fromAmino(object: _15.InputAmino): _15.Input; - toAmino(message: _15.Input): _15.InputAmino; - fromAminoMsg(object: _15.InputAminoMsg): _15.Input; - toAminoMsg(message: _15.Input): _15.InputAminoMsg; - fromProtoMsg(message: _15.InputProtoMsg): _15.Input; - toProto(message: _15.Input): Uint8Array; - toProtoMsg(message: _15.Input): _15.InputProtoMsg; - }; - Output: { - typeUrl: string; - encode(message: _15.Output, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Output; - fromJSON(object: any): _15.Output; - toJSON(message: _15.Output): unknown; - fromPartial(object: Partial<_15.Output>): _15.Output; - fromAmino(object: _15.OutputAmino): _15.Output; - toAmino(message: _15.Output): _15.OutputAmino; - fromAminoMsg(object: _15.OutputAminoMsg): _15.Output; - toAminoMsg(message: _15.Output): _15.OutputAminoMsg; - fromProtoMsg(message: _15.OutputProtoMsg): _15.Output; - toProto(message: _15.Output): Uint8Array; - toProtoMsg(message: _15.Output): _15.OutputProtoMsg; - }; - Supply: { - typeUrl: string; - encode(message: _15.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Supply; - fromJSON(object: any): _15.Supply; - toJSON(message: _15.Supply): unknown; - fromPartial(object: Partial<_15.Supply>): _15.Supply; - fromAmino(object: _15.SupplyAmino): _15.Supply; - toAmino(message: _15.Supply): _15.SupplyAmino; - fromAminoMsg(object: _15.SupplyAminoMsg): _15.Supply; - toAminoMsg(message: _15.Supply): _15.SupplyAminoMsg; - fromProtoMsg(message: _15.SupplyProtoMsg): _15.Supply; - toProto(message: _15.Supply): Uint8Array; - toProtoMsg(message: _15.Supply): _15.SupplyProtoMsg; - }; - DenomUnit: { - typeUrl: string; - encode(message: _15.DenomUnit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.DenomUnit; - fromJSON(object: any): _15.DenomUnit; - toJSON(message: _15.DenomUnit): unknown; - fromPartial(object: Partial<_15.DenomUnit>): _15.DenomUnit; - fromAmino(object: _15.DenomUnitAmino): _15.DenomUnit; - toAmino(message: _15.DenomUnit): _15.DenomUnitAmino; - fromAminoMsg(object: _15.DenomUnitAminoMsg): _15.DenomUnit; - toAminoMsg(message: _15.DenomUnit): _15.DenomUnitAminoMsg; - fromProtoMsg(message: _15.DenomUnitProtoMsg): _15.DenomUnit; - toProto(message: _15.DenomUnit): Uint8Array; - toProtoMsg(message: _15.DenomUnit): _15.DenomUnitProtoMsg; - }; - Metadata: { - typeUrl: string; - encode(message: _15.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _15.Metadata; - fromJSON(object: any): _15.Metadata; - toJSON(message: _15.Metadata): unknown; - fromPartial(object: Partial<_15.Metadata>): _15.Metadata; - fromAmino(object: _15.MetadataAmino): _15.Metadata; - toAmino(message: _15.Metadata): _15.MetadataAmino; - fromAminoMsg(object: _15.MetadataAminoMsg): _15.Metadata; - toAminoMsg(message: _15.Metadata): _15.MetadataAminoMsg; - fromProtoMsg(message: _15.MetadataProtoMsg): _15.Metadata; - toProto(message: _15.Metadata): Uint8Array; - toProtoMsg(message: _15.Metadata): _15.MetadataProtoMsg; - }; - SendAuthorization: { - typeUrl: string; - encode(message: _14.SendAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _14.SendAuthorization; - fromJSON(object: any): _14.SendAuthorization; - toJSON(message: _14.SendAuthorization): unknown; - fromPartial(object: Partial<_14.SendAuthorization>): _14.SendAuthorization; - fromAmino(object: _14.SendAuthorizationAmino): _14.SendAuthorization; - toAmino(message: _14.SendAuthorization): _14.SendAuthorizationAmino; - fromAminoMsg(object: _14.SendAuthorizationAminoMsg): _14.SendAuthorization; - toAminoMsg(message: _14.SendAuthorization): _14.SendAuthorizationAminoMsg; - fromProtoMsg(message: _14.SendAuthorizationProtoMsg): _14.SendAuthorization; - toProto(message: _14.SendAuthorization): Uint8Array; - toProtoMsg(message: _14.SendAuthorization): _14.SendAuthorizationProtoMsg; - }; - }; - } - namespace base { - namespace abci { - const v1beta1: { - TxResponse: { - typeUrl: string; - encode(message: _19.TxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.TxResponse; - fromJSON(object: any): _19.TxResponse; - toJSON(message: _19.TxResponse): unknown; - fromPartial(object: Partial<_19.TxResponse>): _19.TxResponse; - fromAmino(object: _19.TxResponseAmino): _19.TxResponse; - toAmino(message: _19.TxResponse): _19.TxResponseAmino; - fromAminoMsg(object: _19.TxResponseAminoMsg): _19.TxResponse; - toAminoMsg(message: _19.TxResponse): _19.TxResponseAminoMsg; - fromProtoMsg(message: _19.TxResponseProtoMsg): _19.TxResponse; - toProto(message: _19.TxResponse): Uint8Array; - toProtoMsg(message: _19.TxResponse): _19.TxResponseProtoMsg; - }; - ABCIMessageLog: { - typeUrl: string; - encode(message: _19.ABCIMessageLog, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.ABCIMessageLog; - fromJSON(object: any): _19.ABCIMessageLog; - toJSON(message: _19.ABCIMessageLog): unknown; - fromPartial(object: Partial<_19.ABCIMessageLog>): _19.ABCIMessageLog; - fromAmino(object: _19.ABCIMessageLogAmino): _19.ABCIMessageLog; - toAmino(message: _19.ABCIMessageLog): _19.ABCIMessageLogAmino; - fromAminoMsg(object: _19.ABCIMessageLogAminoMsg): _19.ABCIMessageLog; - toAminoMsg(message: _19.ABCIMessageLog): _19.ABCIMessageLogAminoMsg; - fromProtoMsg(message: _19.ABCIMessageLogProtoMsg): _19.ABCIMessageLog; - toProto(message: _19.ABCIMessageLog): Uint8Array; - toProtoMsg(message: _19.ABCIMessageLog): _19.ABCIMessageLogProtoMsg; - }; - StringEvent: { - typeUrl: string; - encode(message: _19.StringEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.StringEvent; - fromJSON(object: any): _19.StringEvent; - toJSON(message: _19.StringEvent): unknown; - fromPartial(object: Partial<_19.StringEvent>): _19.StringEvent; - fromAmino(object: _19.StringEventAmino): _19.StringEvent; - toAmino(message: _19.StringEvent): _19.StringEventAmino; - fromAminoMsg(object: _19.StringEventAminoMsg): _19.StringEvent; - toAminoMsg(message: _19.StringEvent): _19.StringEventAminoMsg; - fromProtoMsg(message: _19.StringEventProtoMsg): _19.StringEvent; - toProto(message: _19.StringEvent): Uint8Array; - toProtoMsg(message: _19.StringEvent): _19.StringEventProtoMsg; - }; - Attribute: { - typeUrl: string; - encode(message: _19.Attribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.Attribute; - fromJSON(object: any): _19.Attribute; - toJSON(message: _19.Attribute): unknown; - fromPartial(object: Partial<_19.Attribute>): _19.Attribute; - fromAmino(object: _19.AttributeAmino): _19.Attribute; - toAmino(message: _19.Attribute): _19.AttributeAmino; - fromAminoMsg(object: _19.AttributeAminoMsg): _19.Attribute; - toAminoMsg(message: _19.Attribute): _19.AttributeAminoMsg; - fromProtoMsg(message: _19.AttributeProtoMsg): _19.Attribute; - toProto(message: _19.Attribute): Uint8Array; - toProtoMsg(message: _19.Attribute): _19.AttributeProtoMsg; - }; - GasInfo: { - typeUrl: string; - encode(message: _19.GasInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.GasInfo; - fromJSON(object: any): _19.GasInfo; - toJSON(message: _19.GasInfo): unknown; - fromPartial(object: Partial<_19.GasInfo>): _19.GasInfo; - fromAmino(object: _19.GasInfoAmino): _19.GasInfo; - toAmino(message: _19.GasInfo): _19.GasInfoAmino; - fromAminoMsg(object: _19.GasInfoAminoMsg): _19.GasInfo; - toAminoMsg(message: _19.GasInfo): _19.GasInfoAminoMsg; - fromProtoMsg(message: _19.GasInfoProtoMsg): _19.GasInfo; - toProto(message: _19.GasInfo): Uint8Array; - toProtoMsg(message: _19.GasInfo): _19.GasInfoProtoMsg; - }; - Result: { - typeUrl: string; - encode(message: _19.Result, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.Result; - fromJSON(object: any): _19.Result; - toJSON(message: _19.Result): unknown; - fromPartial(object: Partial<_19.Result>): _19.Result; - fromAmino(object: _19.ResultAmino): _19.Result; - toAmino(message: _19.Result): _19.ResultAmino; - fromAminoMsg(object: _19.ResultAminoMsg): _19.Result; - toAminoMsg(message: _19.Result): _19.ResultAminoMsg; - fromProtoMsg(message: _19.ResultProtoMsg): _19.Result; - toProto(message: _19.Result): Uint8Array; - toProtoMsg(message: _19.Result): _19.ResultProtoMsg; - }; - SimulationResponse: { - typeUrl: string; - encode(message: _19.SimulationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.SimulationResponse; - fromJSON(object: any): _19.SimulationResponse; - toJSON(message: _19.SimulationResponse): unknown; - fromPartial(object: Partial<_19.SimulationResponse>): _19.SimulationResponse; - fromAmino(object: _19.SimulationResponseAmino): _19.SimulationResponse; - toAmino(message: _19.SimulationResponse): _19.SimulationResponseAmino; - fromAminoMsg(object: _19.SimulationResponseAminoMsg): _19.SimulationResponse; - toAminoMsg(message: _19.SimulationResponse): _19.SimulationResponseAminoMsg; - fromProtoMsg(message: _19.SimulationResponseProtoMsg): _19.SimulationResponse; - toProto(message: _19.SimulationResponse): Uint8Array; - toProtoMsg(message: _19.SimulationResponse): _19.SimulationResponseProtoMsg; - }; - MsgData: { - typeUrl: string; - encode(message: _19.MsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.MsgData; - fromJSON(object: any): _19.MsgData; - toJSON(message: _19.MsgData): unknown; - fromPartial(object: Partial<_19.MsgData>): _19.MsgData; - fromAmino(object: _19.MsgDataAmino): _19.MsgData; - toAmino(message: _19.MsgData): _19.MsgDataAmino; - fromAminoMsg(object: _19.MsgDataAminoMsg): _19.MsgData; - toAminoMsg(message: _19.MsgData): _19.MsgDataAminoMsg; - fromProtoMsg(message: _19.MsgDataProtoMsg): _19.MsgData; - toProto(message: _19.MsgData): Uint8Array; - toProtoMsg(message: _19.MsgData): _19.MsgDataProtoMsg; - }; - TxMsgData: { - typeUrl: string; - encode(message: _19.TxMsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.TxMsgData; - fromJSON(object: any): _19.TxMsgData; - toJSON(message: _19.TxMsgData): unknown; - fromPartial(object: Partial<_19.TxMsgData>): _19.TxMsgData; - fromAmino(object: _19.TxMsgDataAmino): _19.TxMsgData; - toAmino(message: _19.TxMsgData): _19.TxMsgDataAmino; - fromAminoMsg(object: _19.TxMsgDataAminoMsg): _19.TxMsgData; - toAminoMsg(message: _19.TxMsgData): _19.TxMsgDataAminoMsg; - fromProtoMsg(message: _19.TxMsgDataProtoMsg): _19.TxMsgData; - toProto(message: _19.TxMsgData): Uint8Array; - toProtoMsg(message: _19.TxMsgData): _19.TxMsgDataProtoMsg; - }; - SearchTxsResult: { - typeUrl: string; - encode(message: _19.SearchTxsResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _19.SearchTxsResult; - fromJSON(object: any): _19.SearchTxsResult; - toJSON(message: _19.SearchTxsResult): unknown; - fromPartial(object: Partial<_19.SearchTxsResult>): _19.SearchTxsResult; - fromAmino(object: _19.SearchTxsResultAmino): _19.SearchTxsResult; - toAmino(message: _19.SearchTxsResult): _19.SearchTxsResultAmino; - fromAminoMsg(object: _19.SearchTxsResultAminoMsg): _19.SearchTxsResult; - toAminoMsg(message: _19.SearchTxsResult): _19.SearchTxsResultAminoMsg; - fromProtoMsg(message: _19.SearchTxsResultProtoMsg): _19.SearchTxsResult; - toProto(message: _19.SearchTxsResult): Uint8Array; - toProtoMsg(message: _19.SearchTxsResult): _19.SearchTxsResultProtoMsg; - }; - }; - } - namespace kv { - const v1beta1: { - Pairs: { - typeUrl: string; - encode(message: _20.Pairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _20.Pairs; - fromJSON(object: any): _20.Pairs; - toJSON(message: _20.Pairs): unknown; - fromPartial(object: Partial<_20.Pairs>): _20.Pairs; - fromAmino(object: _20.PairsAmino): _20.Pairs; - toAmino(message: _20.Pairs): _20.PairsAmino; - fromAminoMsg(object: _20.PairsAminoMsg): _20.Pairs; - toAminoMsg(message: _20.Pairs): _20.PairsAminoMsg; - fromProtoMsg(message: _20.PairsProtoMsg): _20.Pairs; - toProto(message: _20.Pairs): Uint8Array; - toProtoMsg(message: _20.Pairs): _20.PairsProtoMsg; - }; - Pair: { - typeUrl: string; - encode(message: _20.Pair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _20.Pair; - fromJSON(object: any): _20.Pair; - toJSON(message: _20.Pair): unknown; - fromPartial(object: Partial<_20.Pair>): _20.Pair; - fromAmino(object: _20.PairAmino): _20.Pair; - toAmino(message: _20.Pair): _20.PairAmino; - fromAminoMsg(object: _20.PairAminoMsg): _20.Pair; - toAminoMsg(message: _20.Pair): _20.PairAminoMsg; - fromProtoMsg(message: _20.PairProtoMsg): _20.Pair; - toProto(message: _20.Pair): Uint8Array; - toProtoMsg(message: _20.Pair): _20.PairProtoMsg; - }; - }; - } - namespace node { - const v1beta1: { - ServiceClientImpl: typeof _202.ServiceClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - config(request?: _21.ConfigRequest | undefined): Promise<_21.ConfigResponse>; - }; - LCDQueryClient: typeof _183.LCDQueryClient; - ConfigRequest: { - typeUrl: string; - encode(_: _21.ConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _21.ConfigRequest; - fromJSON(_: any): _21.ConfigRequest; - toJSON(_: _21.ConfigRequest): unknown; - fromPartial(_: Partial<_21.ConfigRequest>): _21.ConfigRequest; - fromAmino(_: _21.ConfigRequestAmino): _21.ConfigRequest; - toAmino(_: _21.ConfigRequest): _21.ConfigRequestAmino; - fromAminoMsg(object: _21.ConfigRequestAminoMsg): _21.ConfigRequest; - toAminoMsg(message: _21.ConfigRequest): _21.ConfigRequestAminoMsg; - fromProtoMsg(message: _21.ConfigRequestProtoMsg): _21.ConfigRequest; - toProto(message: _21.ConfigRequest): Uint8Array; - toProtoMsg(message: _21.ConfigRequest): _21.ConfigRequestProtoMsg; - }; - ConfigResponse: { - typeUrl: string; - encode(message: _21.ConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _21.ConfigResponse; - fromJSON(object: any): _21.ConfigResponse; - toJSON(message: _21.ConfigResponse): unknown; - fromPartial(object: Partial<_21.ConfigResponse>): _21.ConfigResponse; - fromAmino(object: _21.ConfigResponseAmino): _21.ConfigResponse; - toAmino(message: _21.ConfigResponse): _21.ConfigResponseAmino; - fromAminoMsg(object: _21.ConfigResponseAminoMsg): _21.ConfigResponse; - toAminoMsg(message: _21.ConfigResponse): _21.ConfigResponseAminoMsg; - fromProtoMsg(message: _21.ConfigResponseProtoMsg): _21.ConfigResponse; - toProto(message: _21.ConfigResponse): Uint8Array; - toProtoMsg(message: _21.ConfigResponse): _21.ConfigResponseProtoMsg; - }; - }; - } - namespace query { - const v1beta1: { - PageRequest: { - typeUrl: string; - encode(message: _22.PageRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _22.PageRequest; - fromJSON(object: any): _22.PageRequest; - toJSON(message: _22.PageRequest): unknown; - fromPartial(object: Partial<_22.PageRequest>): _22.PageRequest; - fromAmino(object: _22.PageRequestAmino): _22.PageRequest; - toAmino(message: _22.PageRequest): _22.PageRequestAmino; - fromAminoMsg(object: _22.PageRequestAminoMsg): _22.PageRequest; - toAminoMsg(message: _22.PageRequest): _22.PageRequestAminoMsg; - fromProtoMsg(message: _22.PageRequestProtoMsg): _22.PageRequest; - toProto(message: _22.PageRequest): Uint8Array; - toProtoMsg(message: _22.PageRequest): _22.PageRequestProtoMsg; - }; - PageResponse: { - typeUrl: string; - encode(message: _22.PageResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _22.PageResponse; - fromJSON(object: any): _22.PageResponse; - toJSON(message: _22.PageResponse): unknown; - fromPartial(object: Partial<_22.PageResponse>): _22.PageResponse; - fromAmino(object: _22.PageResponseAmino): _22.PageResponse; - toAmino(message: _22.PageResponse): _22.PageResponseAmino; - fromAminoMsg(object: _22.PageResponseAminoMsg): _22.PageResponse; - toAminoMsg(message: _22.PageResponse): _22.PageResponseAminoMsg; - fromProtoMsg(message: _22.PageResponseProtoMsg): _22.PageResponse; - toProto(message: _22.PageResponse): Uint8Array; - toProtoMsg(message: _22.PageResponse): _22.PageResponseProtoMsg; - }; - }; - } - namespace reflection { - const v1beta1: { - ListAllInterfacesRequest: { - typeUrl: string; - encode(_: _23.ListAllInterfacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListAllInterfacesRequest; - fromJSON(_: any): _23.ListAllInterfacesRequest; - toJSON(_: _23.ListAllInterfacesRequest): unknown; - fromPartial(_: Partial<_23.ListAllInterfacesRequest>): _23.ListAllInterfacesRequest; - fromAmino(_: _23.ListAllInterfacesRequestAmino): _23.ListAllInterfacesRequest; - toAmino(_: _23.ListAllInterfacesRequest): _23.ListAllInterfacesRequestAmino; - fromAminoMsg(object: _23.ListAllInterfacesRequestAminoMsg): _23.ListAllInterfacesRequest; - toAminoMsg(message: _23.ListAllInterfacesRequest): _23.ListAllInterfacesRequestAminoMsg; - fromProtoMsg(message: _23.ListAllInterfacesRequestProtoMsg): _23.ListAllInterfacesRequest; - toProto(message: _23.ListAllInterfacesRequest): Uint8Array; - toProtoMsg(message: _23.ListAllInterfacesRequest): _23.ListAllInterfacesRequestProtoMsg; - }; - ListAllInterfacesResponse: { - typeUrl: string; - encode(message: _23.ListAllInterfacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListAllInterfacesResponse; - fromJSON(object: any): _23.ListAllInterfacesResponse; - toJSON(message: _23.ListAllInterfacesResponse): unknown; - fromPartial(object: Partial<_23.ListAllInterfacesResponse>): _23.ListAllInterfacesResponse; - fromAmino(object: _23.ListAllInterfacesResponseAmino): _23.ListAllInterfacesResponse; - toAmino(message: _23.ListAllInterfacesResponse): _23.ListAllInterfacesResponseAmino; - fromAminoMsg(object: _23.ListAllInterfacesResponseAminoMsg): _23.ListAllInterfacesResponse; - toAminoMsg(message: _23.ListAllInterfacesResponse): _23.ListAllInterfacesResponseAminoMsg; - fromProtoMsg(message: _23.ListAllInterfacesResponseProtoMsg): _23.ListAllInterfacesResponse; - toProto(message: _23.ListAllInterfacesResponse): Uint8Array; - toProtoMsg(message: _23.ListAllInterfacesResponse): _23.ListAllInterfacesResponseProtoMsg; - }; - ListImplementationsRequest: { - typeUrl: string; - encode(message: _23.ListImplementationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListImplementationsRequest; - fromJSON(object: any): _23.ListImplementationsRequest; - toJSON(message: _23.ListImplementationsRequest): unknown; - fromPartial(object: Partial<_23.ListImplementationsRequest>): _23.ListImplementationsRequest; - fromAmino(object: _23.ListImplementationsRequestAmino): _23.ListImplementationsRequest; - toAmino(message: _23.ListImplementationsRequest): _23.ListImplementationsRequestAmino; - fromAminoMsg(object: _23.ListImplementationsRequestAminoMsg): _23.ListImplementationsRequest; - toAminoMsg(message: _23.ListImplementationsRequest): _23.ListImplementationsRequestAminoMsg; - fromProtoMsg(message: _23.ListImplementationsRequestProtoMsg): _23.ListImplementationsRequest; - toProto(message: _23.ListImplementationsRequest): Uint8Array; - toProtoMsg(message: _23.ListImplementationsRequest): _23.ListImplementationsRequestProtoMsg; - }; - ListImplementationsResponse: { - typeUrl: string; - encode(message: _23.ListImplementationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _23.ListImplementationsResponse; - fromJSON(object: any): _23.ListImplementationsResponse; - toJSON(message: _23.ListImplementationsResponse): unknown; - fromPartial(object: Partial<_23.ListImplementationsResponse>): _23.ListImplementationsResponse; - fromAmino(object: _23.ListImplementationsResponseAmino): _23.ListImplementationsResponse; - toAmino(message: _23.ListImplementationsResponse): _23.ListImplementationsResponseAmino; - fromAminoMsg(object: _23.ListImplementationsResponseAminoMsg): _23.ListImplementationsResponse; - toAminoMsg(message: _23.ListImplementationsResponse): _23.ListImplementationsResponseAminoMsg; - fromProtoMsg(message: _23.ListImplementationsResponseProtoMsg): _23.ListImplementationsResponse; - toProto(message: _23.ListImplementationsResponse): Uint8Array; - toProtoMsg(message: _23.ListImplementationsResponse): _23.ListImplementationsResponseProtoMsg; - }; - }; - const v2alpha1: { - AppDescriptor: { - typeUrl: string; - encode(message: _24.AppDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.AppDescriptor; - fromJSON(object: any): _24.AppDescriptor; - toJSON(message: _24.AppDescriptor): unknown; - fromPartial(object: Partial<_24.AppDescriptor>): _24.AppDescriptor; - fromAmino(object: _24.AppDescriptorAmino): _24.AppDescriptor; - toAmino(message: _24.AppDescriptor): _24.AppDescriptorAmino; - fromAminoMsg(object: _24.AppDescriptorAminoMsg): _24.AppDescriptor; - toAminoMsg(message: _24.AppDescriptor): _24.AppDescriptorAminoMsg; - fromProtoMsg(message: _24.AppDescriptorProtoMsg): _24.AppDescriptor; - toProto(message: _24.AppDescriptor): Uint8Array; - toProtoMsg(message: _24.AppDescriptor): _24.AppDescriptorProtoMsg; - }; - TxDescriptor: { - typeUrl: string; - encode(message: _24.TxDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.TxDescriptor; - fromJSON(object: any): _24.TxDescriptor; - toJSON(message: _24.TxDescriptor): unknown; - fromPartial(object: Partial<_24.TxDescriptor>): _24.TxDescriptor; - fromAmino(object: _24.TxDescriptorAmino): _24.TxDescriptor; - toAmino(message: _24.TxDescriptor): _24.TxDescriptorAmino; - fromAminoMsg(object: _24.TxDescriptorAminoMsg): _24.TxDescriptor; - toAminoMsg(message: _24.TxDescriptor): _24.TxDescriptorAminoMsg; - fromProtoMsg(message: _24.TxDescriptorProtoMsg): _24.TxDescriptor; - toProto(message: _24.TxDescriptor): Uint8Array; - toProtoMsg(message: _24.TxDescriptor): _24.TxDescriptorProtoMsg; - }; - AuthnDescriptor: { - typeUrl: string; - encode(message: _24.AuthnDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.AuthnDescriptor; - fromJSON(object: any): _24.AuthnDescriptor; - toJSON(message: _24.AuthnDescriptor): unknown; - fromPartial(object: Partial<_24.AuthnDescriptor>): _24.AuthnDescriptor; - fromAmino(object: _24.AuthnDescriptorAmino): _24.AuthnDescriptor; - toAmino(message: _24.AuthnDescriptor): _24.AuthnDescriptorAmino; - fromAminoMsg(object: _24.AuthnDescriptorAminoMsg): _24.AuthnDescriptor; - toAminoMsg(message: _24.AuthnDescriptor): _24.AuthnDescriptorAminoMsg; - fromProtoMsg(message: _24.AuthnDescriptorProtoMsg): _24.AuthnDescriptor; - toProto(message: _24.AuthnDescriptor): Uint8Array; - toProtoMsg(message: _24.AuthnDescriptor): _24.AuthnDescriptorProtoMsg; - }; - SigningModeDescriptor: { - typeUrl: string; - encode(message: _24.SigningModeDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.SigningModeDescriptor; - fromJSON(object: any): _24.SigningModeDescriptor; - toJSON(message: _24.SigningModeDescriptor): unknown; - fromPartial(object: Partial<_24.SigningModeDescriptor>): _24.SigningModeDescriptor; - fromAmino(object: _24.SigningModeDescriptorAmino): _24.SigningModeDescriptor; - toAmino(message: _24.SigningModeDescriptor): _24.SigningModeDescriptorAmino; - fromAminoMsg(object: _24.SigningModeDescriptorAminoMsg): _24.SigningModeDescriptor; - toAminoMsg(message: _24.SigningModeDescriptor): _24.SigningModeDescriptorAminoMsg; - fromProtoMsg(message: _24.SigningModeDescriptorProtoMsg): _24.SigningModeDescriptor; - toProto(message: _24.SigningModeDescriptor): Uint8Array; - toProtoMsg(message: _24.SigningModeDescriptor): _24.SigningModeDescriptorProtoMsg; - }; - ChainDescriptor: { - typeUrl: string; - encode(message: _24.ChainDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.ChainDescriptor; - fromJSON(object: any): _24.ChainDescriptor; - toJSON(message: _24.ChainDescriptor): unknown; - fromPartial(object: Partial<_24.ChainDescriptor>): _24.ChainDescriptor; - fromAmino(object: _24.ChainDescriptorAmino): _24.ChainDescriptor; - toAmino(message: _24.ChainDescriptor): _24.ChainDescriptorAmino; - fromAminoMsg(object: _24.ChainDescriptorAminoMsg): _24.ChainDescriptor; - toAminoMsg(message: _24.ChainDescriptor): _24.ChainDescriptorAminoMsg; - fromProtoMsg(message: _24.ChainDescriptorProtoMsg): _24.ChainDescriptor; - toProto(message: _24.ChainDescriptor): Uint8Array; - toProtoMsg(message: _24.ChainDescriptor): _24.ChainDescriptorProtoMsg; - }; - CodecDescriptor: { - typeUrl: string; - encode(message: _24.CodecDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.CodecDescriptor; - fromJSON(object: any): _24.CodecDescriptor; - toJSON(message: _24.CodecDescriptor): unknown; - fromPartial(object: Partial<_24.CodecDescriptor>): _24.CodecDescriptor; - fromAmino(object: _24.CodecDescriptorAmino): _24.CodecDescriptor; - toAmino(message: _24.CodecDescriptor): _24.CodecDescriptorAmino; - fromAminoMsg(object: _24.CodecDescriptorAminoMsg): _24.CodecDescriptor; - toAminoMsg(message: _24.CodecDescriptor): _24.CodecDescriptorAminoMsg; - fromProtoMsg(message: _24.CodecDescriptorProtoMsg): _24.CodecDescriptor; - toProto(message: _24.CodecDescriptor): Uint8Array; - toProtoMsg(message: _24.CodecDescriptor): _24.CodecDescriptorProtoMsg; - }; - InterfaceDescriptor: { - typeUrl: string; - encode(message: _24.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceDescriptor; - fromJSON(object: any): _24.InterfaceDescriptor; - toJSON(message: _24.InterfaceDescriptor): unknown; - fromPartial(object: Partial<_24.InterfaceDescriptor>): _24.InterfaceDescriptor; - fromAmino(object: _24.InterfaceDescriptorAmino): _24.InterfaceDescriptor; - toAmino(message: _24.InterfaceDescriptor): _24.InterfaceDescriptorAmino; - fromAminoMsg(object: _24.InterfaceDescriptorAminoMsg): _24.InterfaceDescriptor; - toAminoMsg(message: _24.InterfaceDescriptor): _24.InterfaceDescriptorAminoMsg; - fromProtoMsg(message: _24.InterfaceDescriptorProtoMsg): _24.InterfaceDescriptor; - toProto(message: _24.InterfaceDescriptor): Uint8Array; - toProtoMsg(message: _24.InterfaceDescriptor): _24.InterfaceDescriptorProtoMsg; - }; - InterfaceImplementerDescriptor: { - typeUrl: string; - encode(message: _24.InterfaceImplementerDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceImplementerDescriptor; - fromJSON(object: any): _24.InterfaceImplementerDescriptor; - toJSON(message: _24.InterfaceImplementerDescriptor): unknown; - fromPartial(object: Partial<_24.InterfaceImplementerDescriptor>): _24.InterfaceImplementerDescriptor; - fromAmino(object: _24.InterfaceImplementerDescriptorAmino): _24.InterfaceImplementerDescriptor; - toAmino(message: _24.InterfaceImplementerDescriptor): _24.InterfaceImplementerDescriptorAmino; - fromAminoMsg(object: _24.InterfaceImplementerDescriptorAminoMsg): _24.InterfaceImplementerDescriptor; - toAminoMsg(message: _24.InterfaceImplementerDescriptor): _24.InterfaceImplementerDescriptorAminoMsg; - fromProtoMsg(message: _24.InterfaceImplementerDescriptorProtoMsg): _24.InterfaceImplementerDescriptor; - toProto(message: _24.InterfaceImplementerDescriptor): Uint8Array; - toProtoMsg(message: _24.InterfaceImplementerDescriptor): _24.InterfaceImplementerDescriptorProtoMsg; - }; - InterfaceAcceptingMessageDescriptor: { - typeUrl: string; - encode(message: _24.InterfaceAcceptingMessageDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.InterfaceAcceptingMessageDescriptor; - fromJSON(object: any): _24.InterfaceAcceptingMessageDescriptor; - toJSON(message: _24.InterfaceAcceptingMessageDescriptor): unknown; - fromPartial(object: Partial<_24.InterfaceAcceptingMessageDescriptor>): _24.InterfaceAcceptingMessageDescriptor; - fromAmino(object: _24.InterfaceAcceptingMessageDescriptorAmino): _24.InterfaceAcceptingMessageDescriptor; - toAmino(message: _24.InterfaceAcceptingMessageDescriptor): _24.InterfaceAcceptingMessageDescriptorAmino; - fromAminoMsg(object: _24.InterfaceAcceptingMessageDescriptorAminoMsg): _24.InterfaceAcceptingMessageDescriptor; - toAminoMsg(message: _24.InterfaceAcceptingMessageDescriptor): _24.InterfaceAcceptingMessageDescriptorAminoMsg; - fromProtoMsg(message: _24.InterfaceAcceptingMessageDescriptorProtoMsg): _24.InterfaceAcceptingMessageDescriptor; - toProto(message: _24.InterfaceAcceptingMessageDescriptor): Uint8Array; - toProtoMsg(message: _24.InterfaceAcceptingMessageDescriptor): _24.InterfaceAcceptingMessageDescriptorProtoMsg; - }; - ConfigurationDescriptor: { - typeUrl: string; - encode(message: _24.ConfigurationDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.ConfigurationDescriptor; - fromJSON(object: any): _24.ConfigurationDescriptor; - toJSON(message: _24.ConfigurationDescriptor): unknown; - fromPartial(object: Partial<_24.ConfigurationDescriptor>): _24.ConfigurationDescriptor; - fromAmino(object: _24.ConfigurationDescriptorAmino): _24.ConfigurationDescriptor; - toAmino(message: _24.ConfigurationDescriptor): _24.ConfigurationDescriptorAmino; - fromAminoMsg(object: _24.ConfigurationDescriptorAminoMsg): _24.ConfigurationDescriptor; - toAminoMsg(message: _24.ConfigurationDescriptor): _24.ConfigurationDescriptorAminoMsg; - fromProtoMsg(message: _24.ConfigurationDescriptorProtoMsg): _24.ConfigurationDescriptor; - toProto(message: _24.ConfigurationDescriptor): Uint8Array; - toProtoMsg(message: _24.ConfigurationDescriptor): _24.ConfigurationDescriptorProtoMsg; - }; - MsgDescriptor: { - typeUrl: string; - encode(message: _24.MsgDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.MsgDescriptor; - fromJSON(object: any): _24.MsgDescriptor; - toJSON(message: _24.MsgDescriptor): unknown; - fromPartial(object: Partial<_24.MsgDescriptor>): _24.MsgDescriptor; - fromAmino(object: _24.MsgDescriptorAmino): _24.MsgDescriptor; - toAmino(message: _24.MsgDescriptor): _24.MsgDescriptorAmino; - fromAminoMsg(object: _24.MsgDescriptorAminoMsg): _24.MsgDescriptor; - toAminoMsg(message: _24.MsgDescriptor): _24.MsgDescriptorAminoMsg; - fromProtoMsg(message: _24.MsgDescriptorProtoMsg): _24.MsgDescriptor; - toProto(message: _24.MsgDescriptor): Uint8Array; - toProtoMsg(message: _24.MsgDescriptor): _24.MsgDescriptorProtoMsg; - }; - GetAuthnDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetAuthnDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetAuthnDescriptorRequest; - fromJSON(_: any): _24.GetAuthnDescriptorRequest; - toJSON(_: _24.GetAuthnDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetAuthnDescriptorRequest>): _24.GetAuthnDescriptorRequest; - fromAmino(_: _24.GetAuthnDescriptorRequestAmino): _24.GetAuthnDescriptorRequest; - toAmino(_: _24.GetAuthnDescriptorRequest): _24.GetAuthnDescriptorRequestAmino; - fromAminoMsg(object: _24.GetAuthnDescriptorRequestAminoMsg): _24.GetAuthnDescriptorRequest; - toAminoMsg(message: _24.GetAuthnDescriptorRequest): _24.GetAuthnDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetAuthnDescriptorRequestProtoMsg): _24.GetAuthnDescriptorRequest; - toProto(message: _24.GetAuthnDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetAuthnDescriptorRequest): _24.GetAuthnDescriptorRequestProtoMsg; - }; - GetAuthnDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetAuthnDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetAuthnDescriptorResponse; - fromJSON(object: any): _24.GetAuthnDescriptorResponse; - toJSON(message: _24.GetAuthnDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetAuthnDescriptorResponse>): _24.GetAuthnDescriptorResponse; - fromAmino(object: _24.GetAuthnDescriptorResponseAmino): _24.GetAuthnDescriptorResponse; - toAmino(message: _24.GetAuthnDescriptorResponse): _24.GetAuthnDescriptorResponseAmino; - fromAminoMsg(object: _24.GetAuthnDescriptorResponseAminoMsg): _24.GetAuthnDescriptorResponse; - toAminoMsg(message: _24.GetAuthnDescriptorResponse): _24.GetAuthnDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetAuthnDescriptorResponseProtoMsg): _24.GetAuthnDescriptorResponse; - toProto(message: _24.GetAuthnDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetAuthnDescriptorResponse): _24.GetAuthnDescriptorResponseProtoMsg; - }; - GetChainDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetChainDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetChainDescriptorRequest; - fromJSON(_: any): _24.GetChainDescriptorRequest; - toJSON(_: _24.GetChainDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetChainDescriptorRequest>): _24.GetChainDescriptorRequest; - fromAmino(_: _24.GetChainDescriptorRequestAmino): _24.GetChainDescriptorRequest; - toAmino(_: _24.GetChainDescriptorRequest): _24.GetChainDescriptorRequestAmino; - fromAminoMsg(object: _24.GetChainDescriptorRequestAminoMsg): _24.GetChainDescriptorRequest; - toAminoMsg(message: _24.GetChainDescriptorRequest): _24.GetChainDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetChainDescriptorRequestProtoMsg): _24.GetChainDescriptorRequest; - toProto(message: _24.GetChainDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetChainDescriptorRequest): _24.GetChainDescriptorRequestProtoMsg; - }; - GetChainDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetChainDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetChainDescriptorResponse; - fromJSON(object: any): _24.GetChainDescriptorResponse; - toJSON(message: _24.GetChainDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetChainDescriptorResponse>): _24.GetChainDescriptorResponse; - fromAmino(object: _24.GetChainDescriptorResponseAmino): _24.GetChainDescriptorResponse; - toAmino(message: _24.GetChainDescriptorResponse): _24.GetChainDescriptorResponseAmino; - fromAminoMsg(object: _24.GetChainDescriptorResponseAminoMsg): _24.GetChainDescriptorResponse; - toAminoMsg(message: _24.GetChainDescriptorResponse): _24.GetChainDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetChainDescriptorResponseProtoMsg): _24.GetChainDescriptorResponse; - toProto(message: _24.GetChainDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetChainDescriptorResponse): _24.GetChainDescriptorResponseProtoMsg; - }; - GetCodecDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetCodecDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetCodecDescriptorRequest; - fromJSON(_: any): _24.GetCodecDescriptorRequest; - toJSON(_: _24.GetCodecDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetCodecDescriptorRequest>): _24.GetCodecDescriptorRequest; - fromAmino(_: _24.GetCodecDescriptorRequestAmino): _24.GetCodecDescriptorRequest; - toAmino(_: _24.GetCodecDescriptorRequest): _24.GetCodecDescriptorRequestAmino; - fromAminoMsg(object: _24.GetCodecDescriptorRequestAminoMsg): _24.GetCodecDescriptorRequest; - toAminoMsg(message: _24.GetCodecDescriptorRequest): _24.GetCodecDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetCodecDescriptorRequestProtoMsg): _24.GetCodecDescriptorRequest; - toProto(message: _24.GetCodecDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetCodecDescriptorRequest): _24.GetCodecDescriptorRequestProtoMsg; - }; - GetCodecDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetCodecDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetCodecDescriptorResponse; - fromJSON(object: any): _24.GetCodecDescriptorResponse; - toJSON(message: _24.GetCodecDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetCodecDescriptorResponse>): _24.GetCodecDescriptorResponse; - fromAmino(object: _24.GetCodecDescriptorResponseAmino): _24.GetCodecDescriptorResponse; - toAmino(message: _24.GetCodecDescriptorResponse): _24.GetCodecDescriptorResponseAmino; - fromAminoMsg(object: _24.GetCodecDescriptorResponseAminoMsg): _24.GetCodecDescriptorResponse; - toAminoMsg(message: _24.GetCodecDescriptorResponse): _24.GetCodecDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetCodecDescriptorResponseProtoMsg): _24.GetCodecDescriptorResponse; - toProto(message: _24.GetCodecDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetCodecDescriptorResponse): _24.GetCodecDescriptorResponseProtoMsg; - }; - GetConfigurationDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetConfigurationDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetConfigurationDescriptorRequest; - fromJSON(_: any): _24.GetConfigurationDescriptorRequest; - toJSON(_: _24.GetConfigurationDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetConfigurationDescriptorRequest>): _24.GetConfigurationDescriptorRequest; - fromAmino(_: _24.GetConfigurationDescriptorRequestAmino): _24.GetConfigurationDescriptorRequest; - toAmino(_: _24.GetConfigurationDescriptorRequest): _24.GetConfigurationDescriptorRequestAmino; - fromAminoMsg(object: _24.GetConfigurationDescriptorRequestAminoMsg): _24.GetConfigurationDescriptorRequest; - toAminoMsg(message: _24.GetConfigurationDescriptorRequest): _24.GetConfigurationDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetConfigurationDescriptorRequestProtoMsg): _24.GetConfigurationDescriptorRequest; - toProto(message: _24.GetConfigurationDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetConfigurationDescriptorRequest): _24.GetConfigurationDescriptorRequestProtoMsg; - }; - GetConfigurationDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetConfigurationDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetConfigurationDescriptorResponse; - fromJSON(object: any): _24.GetConfigurationDescriptorResponse; - toJSON(message: _24.GetConfigurationDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetConfigurationDescriptorResponse>): _24.GetConfigurationDescriptorResponse; - fromAmino(object: _24.GetConfigurationDescriptorResponseAmino): _24.GetConfigurationDescriptorResponse; - toAmino(message: _24.GetConfigurationDescriptorResponse): _24.GetConfigurationDescriptorResponseAmino; - fromAminoMsg(object: _24.GetConfigurationDescriptorResponseAminoMsg): _24.GetConfigurationDescriptorResponse; - toAminoMsg(message: _24.GetConfigurationDescriptorResponse): _24.GetConfigurationDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetConfigurationDescriptorResponseProtoMsg): _24.GetConfigurationDescriptorResponse; - toProto(message: _24.GetConfigurationDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetConfigurationDescriptorResponse): _24.GetConfigurationDescriptorResponseProtoMsg; - }; - GetQueryServicesDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetQueryServicesDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetQueryServicesDescriptorRequest; - fromJSON(_: any): _24.GetQueryServicesDescriptorRequest; - toJSON(_: _24.GetQueryServicesDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetQueryServicesDescriptorRequest>): _24.GetQueryServicesDescriptorRequest; - fromAmino(_: _24.GetQueryServicesDescriptorRequestAmino): _24.GetQueryServicesDescriptorRequest; - toAmino(_: _24.GetQueryServicesDescriptorRequest): _24.GetQueryServicesDescriptorRequestAmino; - fromAminoMsg(object: _24.GetQueryServicesDescriptorRequestAminoMsg): _24.GetQueryServicesDescriptorRequest; - toAminoMsg(message: _24.GetQueryServicesDescriptorRequest): _24.GetQueryServicesDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetQueryServicesDescriptorRequestProtoMsg): _24.GetQueryServicesDescriptorRequest; - toProto(message: _24.GetQueryServicesDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetQueryServicesDescriptorRequest): _24.GetQueryServicesDescriptorRequestProtoMsg; - }; - GetQueryServicesDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetQueryServicesDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetQueryServicesDescriptorResponse; - fromJSON(object: any): _24.GetQueryServicesDescriptorResponse; - toJSON(message: _24.GetQueryServicesDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetQueryServicesDescriptorResponse>): _24.GetQueryServicesDescriptorResponse; - fromAmino(object: _24.GetQueryServicesDescriptorResponseAmino): _24.GetQueryServicesDescriptorResponse; - toAmino(message: _24.GetQueryServicesDescriptorResponse): _24.GetQueryServicesDescriptorResponseAmino; - fromAminoMsg(object: _24.GetQueryServicesDescriptorResponseAminoMsg): _24.GetQueryServicesDescriptorResponse; - toAminoMsg(message: _24.GetQueryServicesDescriptorResponse): _24.GetQueryServicesDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetQueryServicesDescriptorResponseProtoMsg): _24.GetQueryServicesDescriptorResponse; - toProto(message: _24.GetQueryServicesDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetQueryServicesDescriptorResponse): _24.GetQueryServicesDescriptorResponseProtoMsg; - }; - GetTxDescriptorRequest: { - typeUrl: string; - encode(_: _24.GetTxDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetTxDescriptorRequest; - fromJSON(_: any): _24.GetTxDescriptorRequest; - toJSON(_: _24.GetTxDescriptorRequest): unknown; - fromPartial(_: Partial<_24.GetTxDescriptorRequest>): _24.GetTxDescriptorRequest; - fromAmino(_: _24.GetTxDescriptorRequestAmino): _24.GetTxDescriptorRequest; - toAmino(_: _24.GetTxDescriptorRequest): _24.GetTxDescriptorRequestAmino; - fromAminoMsg(object: _24.GetTxDescriptorRequestAminoMsg): _24.GetTxDescriptorRequest; - toAminoMsg(message: _24.GetTxDescriptorRequest): _24.GetTxDescriptorRequestAminoMsg; - fromProtoMsg(message: _24.GetTxDescriptorRequestProtoMsg): _24.GetTxDescriptorRequest; - toProto(message: _24.GetTxDescriptorRequest): Uint8Array; - toProtoMsg(message: _24.GetTxDescriptorRequest): _24.GetTxDescriptorRequestProtoMsg; - }; - GetTxDescriptorResponse: { - typeUrl: string; - encode(message: _24.GetTxDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.GetTxDescriptorResponse; - fromJSON(object: any): _24.GetTxDescriptorResponse; - toJSON(message: _24.GetTxDescriptorResponse): unknown; - fromPartial(object: Partial<_24.GetTxDescriptorResponse>): _24.GetTxDescriptorResponse; - fromAmino(object: _24.GetTxDescriptorResponseAmino): _24.GetTxDescriptorResponse; - toAmino(message: _24.GetTxDescriptorResponse): _24.GetTxDescriptorResponseAmino; - fromAminoMsg(object: _24.GetTxDescriptorResponseAminoMsg): _24.GetTxDescriptorResponse; - toAminoMsg(message: _24.GetTxDescriptorResponse): _24.GetTxDescriptorResponseAminoMsg; - fromProtoMsg(message: _24.GetTxDescriptorResponseProtoMsg): _24.GetTxDescriptorResponse; - toProto(message: _24.GetTxDescriptorResponse): Uint8Array; - toProtoMsg(message: _24.GetTxDescriptorResponse): _24.GetTxDescriptorResponseProtoMsg; - }; - QueryServicesDescriptor: { - typeUrl: string; - encode(message: _24.QueryServicesDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryServicesDescriptor; - fromJSON(object: any): _24.QueryServicesDescriptor; - toJSON(message: _24.QueryServicesDescriptor): unknown; - fromPartial(object: Partial<_24.QueryServicesDescriptor>): _24.QueryServicesDescriptor; - fromAmino(object: _24.QueryServicesDescriptorAmino): _24.QueryServicesDescriptor; - toAmino(message: _24.QueryServicesDescriptor): _24.QueryServicesDescriptorAmino; - fromAminoMsg(object: _24.QueryServicesDescriptorAminoMsg): _24.QueryServicesDescriptor; - toAminoMsg(message: _24.QueryServicesDescriptor): _24.QueryServicesDescriptorAminoMsg; - fromProtoMsg(message: _24.QueryServicesDescriptorProtoMsg): _24.QueryServicesDescriptor; - toProto(message: _24.QueryServicesDescriptor): Uint8Array; - toProtoMsg(message: _24.QueryServicesDescriptor): _24.QueryServicesDescriptorProtoMsg; - }; - QueryServiceDescriptor: { - typeUrl: string; - encode(message: _24.QueryServiceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryServiceDescriptor; - fromJSON(object: any): _24.QueryServiceDescriptor; - toJSON(message: _24.QueryServiceDescriptor): unknown; - fromPartial(object: Partial<_24.QueryServiceDescriptor>): _24.QueryServiceDescriptor; - fromAmino(object: _24.QueryServiceDescriptorAmino): _24.QueryServiceDescriptor; - toAmino(message: _24.QueryServiceDescriptor): _24.QueryServiceDescriptorAmino; - fromAminoMsg(object: _24.QueryServiceDescriptorAminoMsg): _24.QueryServiceDescriptor; - toAminoMsg(message: _24.QueryServiceDescriptor): _24.QueryServiceDescriptorAminoMsg; - fromProtoMsg(message: _24.QueryServiceDescriptorProtoMsg): _24.QueryServiceDescriptor; - toProto(message: _24.QueryServiceDescriptor): Uint8Array; - toProtoMsg(message: _24.QueryServiceDescriptor): _24.QueryServiceDescriptorProtoMsg; - }; - QueryMethodDescriptor: { - typeUrl: string; - encode(message: _24.QueryMethodDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _24.QueryMethodDescriptor; - fromJSON(object: any): _24.QueryMethodDescriptor; - toJSON(message: _24.QueryMethodDescriptor): unknown; - fromPartial(object: Partial<_24.QueryMethodDescriptor>): _24.QueryMethodDescriptor; - fromAmino(object: _24.QueryMethodDescriptorAmino): _24.QueryMethodDescriptor; - toAmino(message: _24.QueryMethodDescriptor): _24.QueryMethodDescriptorAmino; - fromAminoMsg(object: _24.QueryMethodDescriptorAminoMsg): _24.QueryMethodDescriptor; - toAminoMsg(message: _24.QueryMethodDescriptor): _24.QueryMethodDescriptorAminoMsg; - fromProtoMsg(message: _24.QueryMethodDescriptorProtoMsg): _24.QueryMethodDescriptor; - toProto(message: _24.QueryMethodDescriptor): Uint8Array; - toProtoMsg(message: _24.QueryMethodDescriptor): _24.QueryMethodDescriptorProtoMsg; - }; - }; - } - namespace snapshots { - const v1beta1: { - Snapshot: { - typeUrl: string; - encode(message: _25.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.Snapshot; - fromJSON(object: any): _25.Snapshot; - toJSON(message: _25.Snapshot): unknown; - fromPartial(object: Partial<_25.Snapshot>): _25.Snapshot; - fromAmino(object: _25.SnapshotAmino): _25.Snapshot; - toAmino(message: _25.Snapshot): _25.SnapshotAmino; - fromAminoMsg(object: _25.SnapshotAminoMsg): _25.Snapshot; - toAminoMsg(message: _25.Snapshot): _25.SnapshotAminoMsg; - fromProtoMsg(message: _25.SnapshotProtoMsg): _25.Snapshot; - toProto(message: _25.Snapshot): Uint8Array; - toProtoMsg(message: _25.Snapshot): _25.SnapshotProtoMsg; - }; - Metadata: { - typeUrl: string; - encode(message: _25.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.Metadata; - fromJSON(object: any): _25.Metadata; - toJSON(message: _25.Metadata): unknown; - fromPartial(object: Partial<_25.Metadata>): _25.Metadata; - fromAmino(object: _25.MetadataAmino): _25.Metadata; - toAmino(message: _25.Metadata): _25.MetadataAmino; - fromAminoMsg(object: _25.MetadataAminoMsg): _25.Metadata; - toAminoMsg(message: _25.Metadata): _25.MetadataAminoMsg; - fromProtoMsg(message: _25.MetadataProtoMsg): _25.Metadata; - toProto(message: _25.Metadata): Uint8Array; - toProtoMsg(message: _25.Metadata): _25.MetadataProtoMsg; - }; - SnapshotItem: { - typeUrl: string; - encode(message: _25.SnapshotItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotItem; - fromJSON(object: any): _25.SnapshotItem; - toJSON(message: _25.SnapshotItem): unknown; - fromPartial(object: Partial<_25.SnapshotItem>): _25.SnapshotItem; - fromAmino(object: _25.SnapshotItemAmino): _25.SnapshotItem; - toAmino(message: _25.SnapshotItem): _25.SnapshotItemAmino; - fromAminoMsg(object: _25.SnapshotItemAminoMsg): _25.SnapshotItem; - toAminoMsg(message: _25.SnapshotItem): _25.SnapshotItemAminoMsg; - fromProtoMsg(message: _25.SnapshotItemProtoMsg): _25.SnapshotItem; - toProto(message: _25.SnapshotItem): Uint8Array; - toProtoMsg(message: _25.SnapshotItem): _25.SnapshotItemProtoMsg; - }; - SnapshotStoreItem: { - typeUrl: string; - encode(message: _25.SnapshotStoreItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotStoreItem; - fromJSON(object: any): _25.SnapshotStoreItem; - toJSON(message: _25.SnapshotStoreItem): unknown; - fromPartial(object: Partial<_25.SnapshotStoreItem>): _25.SnapshotStoreItem; - fromAmino(object: _25.SnapshotStoreItemAmino): _25.SnapshotStoreItem; - toAmino(message: _25.SnapshotStoreItem): _25.SnapshotStoreItemAmino; - fromAminoMsg(object: _25.SnapshotStoreItemAminoMsg): _25.SnapshotStoreItem; - toAminoMsg(message: _25.SnapshotStoreItem): _25.SnapshotStoreItemAminoMsg; - fromProtoMsg(message: _25.SnapshotStoreItemProtoMsg): _25.SnapshotStoreItem; - toProto(message: _25.SnapshotStoreItem): Uint8Array; - toProtoMsg(message: _25.SnapshotStoreItem): _25.SnapshotStoreItemProtoMsg; - }; - SnapshotIAVLItem: { - typeUrl: string; - encode(message: _25.SnapshotIAVLItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotIAVLItem; - fromJSON(object: any): _25.SnapshotIAVLItem; - toJSON(message: _25.SnapshotIAVLItem): unknown; - fromPartial(object: Partial<_25.SnapshotIAVLItem>): _25.SnapshotIAVLItem; - fromAmino(object: _25.SnapshotIAVLItemAmino): _25.SnapshotIAVLItem; - toAmino(message: _25.SnapshotIAVLItem): _25.SnapshotIAVLItemAmino; - fromAminoMsg(object: _25.SnapshotIAVLItemAminoMsg): _25.SnapshotIAVLItem; - toAminoMsg(message: _25.SnapshotIAVLItem): _25.SnapshotIAVLItemAminoMsg; - fromProtoMsg(message: _25.SnapshotIAVLItemProtoMsg): _25.SnapshotIAVLItem; - toProto(message: _25.SnapshotIAVLItem): Uint8Array; - toProtoMsg(message: _25.SnapshotIAVLItem): _25.SnapshotIAVLItemProtoMsg; - }; - SnapshotExtensionMeta: { - typeUrl: string; - encode(message: _25.SnapshotExtensionMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotExtensionMeta; - fromJSON(object: any): _25.SnapshotExtensionMeta; - toJSON(message: _25.SnapshotExtensionMeta): unknown; - fromPartial(object: Partial<_25.SnapshotExtensionMeta>): _25.SnapshotExtensionMeta; - fromAmino(object: _25.SnapshotExtensionMetaAmino): _25.SnapshotExtensionMeta; - toAmino(message: _25.SnapshotExtensionMeta): _25.SnapshotExtensionMetaAmino; - fromAminoMsg(object: _25.SnapshotExtensionMetaAminoMsg): _25.SnapshotExtensionMeta; - toAminoMsg(message: _25.SnapshotExtensionMeta): _25.SnapshotExtensionMetaAminoMsg; - fromProtoMsg(message: _25.SnapshotExtensionMetaProtoMsg): _25.SnapshotExtensionMeta; - toProto(message: _25.SnapshotExtensionMeta): Uint8Array; - toProtoMsg(message: _25.SnapshotExtensionMeta): _25.SnapshotExtensionMetaProtoMsg; - }; - SnapshotExtensionPayload: { - typeUrl: string; - encode(message: _25.SnapshotExtensionPayload, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotExtensionPayload; - fromJSON(object: any): _25.SnapshotExtensionPayload; - toJSON(message: _25.SnapshotExtensionPayload): unknown; - fromPartial(object: Partial<_25.SnapshotExtensionPayload>): _25.SnapshotExtensionPayload; - fromAmino(object: _25.SnapshotExtensionPayloadAmino): _25.SnapshotExtensionPayload; - toAmino(message: _25.SnapshotExtensionPayload): _25.SnapshotExtensionPayloadAmino; - fromAminoMsg(object: _25.SnapshotExtensionPayloadAminoMsg): _25.SnapshotExtensionPayload; - toAminoMsg(message: _25.SnapshotExtensionPayload): _25.SnapshotExtensionPayloadAminoMsg; - fromProtoMsg(message: _25.SnapshotExtensionPayloadProtoMsg): _25.SnapshotExtensionPayload; - toProto(message: _25.SnapshotExtensionPayload): Uint8Array; - toProtoMsg(message: _25.SnapshotExtensionPayload): _25.SnapshotExtensionPayloadProtoMsg; - }; - SnapshotKVItem: { - typeUrl: string; - encode(message: _25.SnapshotKVItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotKVItem; - fromJSON(object: any): _25.SnapshotKVItem; - toJSON(message: _25.SnapshotKVItem): unknown; - fromPartial(object: Partial<_25.SnapshotKVItem>): _25.SnapshotKVItem; - fromAmino(object: _25.SnapshotKVItemAmino): _25.SnapshotKVItem; - toAmino(message: _25.SnapshotKVItem): _25.SnapshotKVItemAmino; - fromAminoMsg(object: _25.SnapshotKVItemAminoMsg): _25.SnapshotKVItem; - toAminoMsg(message: _25.SnapshotKVItem): _25.SnapshotKVItemAminoMsg; - fromProtoMsg(message: _25.SnapshotKVItemProtoMsg): _25.SnapshotKVItem; - toProto(message: _25.SnapshotKVItem): Uint8Array; - toProtoMsg(message: _25.SnapshotKVItem): _25.SnapshotKVItemProtoMsg; - }; - SnapshotSchema: { - typeUrl: string; - encode(message: _25.SnapshotSchema, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _25.SnapshotSchema; - fromJSON(object: any): _25.SnapshotSchema; - toJSON(message: _25.SnapshotSchema): unknown; - fromPartial(object: Partial<_25.SnapshotSchema>): _25.SnapshotSchema; - fromAmino(object: _25.SnapshotSchemaAmino): _25.SnapshotSchema; - toAmino(message: _25.SnapshotSchema): _25.SnapshotSchemaAmino; - fromAminoMsg(object: _25.SnapshotSchemaAminoMsg): _25.SnapshotSchema; - toAminoMsg(message: _25.SnapshotSchema): _25.SnapshotSchemaAminoMsg; - fromProtoMsg(message: _25.SnapshotSchemaProtoMsg): _25.SnapshotSchema; - toProto(message: _25.SnapshotSchema): Uint8Array; - toProtoMsg(message: _25.SnapshotSchema): _25.SnapshotSchemaProtoMsg; - }; - }; - } - namespace store { - const v1beta1: { - StoreKVPair: { - typeUrl: string; - encode(message: _27.StoreKVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.StoreKVPair; - fromJSON(object: any): _27.StoreKVPair; - toJSON(message: _27.StoreKVPair): unknown; - fromPartial(object: Partial<_27.StoreKVPair>): _27.StoreKVPair; - fromAmino(object: _27.StoreKVPairAmino): _27.StoreKVPair; - toAmino(message: _27.StoreKVPair): _27.StoreKVPairAmino; - fromAminoMsg(object: _27.StoreKVPairAminoMsg): _27.StoreKVPair; - toAminoMsg(message: _27.StoreKVPair): _27.StoreKVPairAminoMsg; - fromProtoMsg(message: _27.StoreKVPairProtoMsg): _27.StoreKVPair; - toProto(message: _27.StoreKVPair): Uint8Array; - toProtoMsg(message: _27.StoreKVPair): _27.StoreKVPairProtoMsg; - }; - BlockMetadata: { - typeUrl: string; - encode(message: _27.BlockMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.BlockMetadata; - fromJSON(object: any): _27.BlockMetadata; - toJSON(message: _27.BlockMetadata): unknown; - fromPartial(object: Partial<_27.BlockMetadata>): _27.BlockMetadata; - fromAmino(object: _27.BlockMetadataAmino): _27.BlockMetadata; - toAmino(message: _27.BlockMetadata): _27.BlockMetadataAmino; - fromAminoMsg(object: _27.BlockMetadataAminoMsg): _27.BlockMetadata; - toAminoMsg(message: _27.BlockMetadata): _27.BlockMetadataAminoMsg; - fromProtoMsg(message: _27.BlockMetadataProtoMsg): _27.BlockMetadata; - toProto(message: _27.BlockMetadata): Uint8Array; - toProtoMsg(message: _27.BlockMetadata): _27.BlockMetadataProtoMsg; - }; - BlockMetadata_DeliverTx: { - typeUrl: string; - encode(message: _27.BlockMetadata_DeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _27.BlockMetadata_DeliverTx; - fromJSON(object: any): _27.BlockMetadata_DeliverTx; - toJSON(message: _27.BlockMetadata_DeliverTx): unknown; - fromPartial(object: Partial<_27.BlockMetadata_DeliverTx>): _27.BlockMetadata_DeliverTx; - fromAmino(object: _27.BlockMetadata_DeliverTxAmino): _27.BlockMetadata_DeliverTx; - toAmino(message: _27.BlockMetadata_DeliverTx): _27.BlockMetadata_DeliverTxAmino; - fromAminoMsg(object: _27.BlockMetadata_DeliverTxAminoMsg): _27.BlockMetadata_DeliverTx; - toAminoMsg(message: _27.BlockMetadata_DeliverTx): _27.BlockMetadata_DeliverTxAminoMsg; - fromProtoMsg(message: _27.BlockMetadata_DeliverTxProtoMsg): _27.BlockMetadata_DeliverTx; - toProto(message: _27.BlockMetadata_DeliverTx): Uint8Array; - toProtoMsg(message: _27.BlockMetadata_DeliverTx): _27.BlockMetadata_DeliverTxProtoMsg; - }; - CommitInfo: { - typeUrl: string; - encode(message: _26.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.CommitInfo; - fromJSON(object: any): _26.CommitInfo; - toJSON(message: _26.CommitInfo): unknown; - fromPartial(object: Partial<_26.CommitInfo>): _26.CommitInfo; - fromAmino(object: _26.CommitInfoAmino): _26.CommitInfo; - toAmino(message: _26.CommitInfo): _26.CommitInfoAmino; - fromAminoMsg(object: _26.CommitInfoAminoMsg): _26.CommitInfo; - toAminoMsg(message: _26.CommitInfo): _26.CommitInfoAminoMsg; - fromProtoMsg(message: _26.CommitInfoProtoMsg): _26.CommitInfo; - toProto(message: _26.CommitInfo): Uint8Array; - toProtoMsg(message: _26.CommitInfo): _26.CommitInfoProtoMsg; - }; - StoreInfo: { - typeUrl: string; - encode(message: _26.StoreInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.StoreInfo; - fromJSON(object: any): _26.StoreInfo; - toJSON(message: _26.StoreInfo): unknown; - fromPartial(object: Partial<_26.StoreInfo>): _26.StoreInfo; - fromAmino(object: _26.StoreInfoAmino): _26.StoreInfo; - toAmino(message: _26.StoreInfo): _26.StoreInfoAmino; - fromAminoMsg(object: _26.StoreInfoAminoMsg): _26.StoreInfo; - toAminoMsg(message: _26.StoreInfo): _26.StoreInfoAminoMsg; - fromProtoMsg(message: _26.StoreInfoProtoMsg): _26.StoreInfo; - toProto(message: _26.StoreInfo): Uint8Array; - toProtoMsg(message: _26.StoreInfo): _26.StoreInfoProtoMsg; - }; - CommitID: { - typeUrl: string; - encode(message: _26.CommitID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _26.CommitID; - fromJSON(object: any): _26.CommitID; - toJSON(message: _26.CommitID): unknown; - fromPartial(object: Partial<_26.CommitID>): _26.CommitID; - fromAmino(object: _26.CommitIDAmino): _26.CommitID; - toAmino(message: _26.CommitID): _26.CommitIDAmino; - fromAminoMsg(object: _26.CommitIDAminoMsg): _26.CommitID; - toAminoMsg(message: _26.CommitID): _26.CommitIDAminoMsg; - fromProtoMsg(message: _26.CommitIDProtoMsg): _26.CommitID; - toProto(message: _26.CommitID): Uint8Array; - toProtoMsg(message: _26.CommitID): _26.CommitIDProtoMsg; - }; - }; - } - namespace tendermint { - const v1beta1: { - ServiceClientImpl: typeof _203.ServiceClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - getNodeInfo(request?: _28.GetNodeInfoRequest | undefined): Promise<_28.GetNodeInfoResponse>; - getSyncing(request?: _28.GetSyncingRequest | undefined): Promise<_28.GetSyncingResponse>; - getLatestBlock(request?: _28.GetLatestBlockRequest | undefined): Promise<_28.GetLatestBlockResponse>; - getBlockByHeight(request: _28.GetBlockByHeightRequest): Promise<_28.GetBlockByHeightResponse>; - getLatestValidatorSet(request?: _28.GetLatestValidatorSetRequest | undefined): Promise<_28.GetLatestValidatorSetResponse>; - getValidatorSetByHeight(request: _28.GetValidatorSetByHeightRequest): Promise<_28.GetValidatorSetByHeightResponse>; - aBCIQuery(request: _28.ABCIQueryRequest): Promise<_28.ABCIQueryResponse>; - }; - LCDQueryClient: typeof _184.LCDQueryClient; - Block: { - typeUrl: string; - encode(message: _29.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _29.Block; - fromJSON(object: any): _29.Block; - toJSON(message: _29.Block): unknown; - fromPartial(object: Partial<_29.Block>): _29.Block; - fromAmino(object: _29.BlockAmino): _29.Block; - toAmino(message: _29.Block): _29.BlockAmino; - fromAminoMsg(object: _29.BlockAminoMsg): _29.Block; - toAminoMsg(message: _29.Block): _29.BlockAminoMsg; - fromProtoMsg(message: _29.BlockProtoMsg): _29.Block; - toProto(message: _29.Block): Uint8Array; - toProtoMsg(message: _29.Block): _29.BlockProtoMsg; - }; - Header: { - typeUrl: string; - encode(message: _29.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _29.Header; - fromJSON(object: any): _29.Header; - toJSON(message: _29.Header): unknown; - fromPartial(object: Partial<_29.Header>): _29.Header; - fromAmino(object: _29.HeaderAmino): _29.Header; - toAmino(message: _29.Header): _29.HeaderAmino; - fromAminoMsg(object: _29.HeaderAminoMsg): _29.Header; - toAminoMsg(message: _29.Header): _29.HeaderAminoMsg; - fromProtoMsg(message: _29.HeaderProtoMsg): _29.Header; - toProto(message: _29.Header): Uint8Array; - toProtoMsg(message: _29.Header): _29.HeaderProtoMsg; - }; - GetValidatorSetByHeightRequest: { - typeUrl: string; - encode(message: _28.GetValidatorSetByHeightRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetValidatorSetByHeightRequest; - fromJSON(object: any): _28.GetValidatorSetByHeightRequest; - toJSON(message: _28.GetValidatorSetByHeightRequest): unknown; - fromPartial(object: Partial<_28.GetValidatorSetByHeightRequest>): _28.GetValidatorSetByHeightRequest; - fromAmino(object: _28.GetValidatorSetByHeightRequestAmino): _28.GetValidatorSetByHeightRequest; - toAmino(message: _28.GetValidatorSetByHeightRequest): _28.GetValidatorSetByHeightRequestAmino; - fromAminoMsg(object: _28.GetValidatorSetByHeightRequestAminoMsg): _28.GetValidatorSetByHeightRequest; - toAminoMsg(message: _28.GetValidatorSetByHeightRequest): _28.GetValidatorSetByHeightRequestAminoMsg; - fromProtoMsg(message: _28.GetValidatorSetByHeightRequestProtoMsg): _28.GetValidatorSetByHeightRequest; - toProto(message: _28.GetValidatorSetByHeightRequest): Uint8Array; - toProtoMsg(message: _28.GetValidatorSetByHeightRequest): _28.GetValidatorSetByHeightRequestProtoMsg; - }; - GetValidatorSetByHeightResponse: { - typeUrl: string; - encode(message: _28.GetValidatorSetByHeightResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetValidatorSetByHeightResponse; - fromJSON(object: any): _28.GetValidatorSetByHeightResponse; - toJSON(message: _28.GetValidatorSetByHeightResponse): unknown; - fromPartial(object: Partial<_28.GetValidatorSetByHeightResponse>): _28.GetValidatorSetByHeightResponse; - fromAmino(object: _28.GetValidatorSetByHeightResponseAmino): _28.GetValidatorSetByHeightResponse; - toAmino(message: _28.GetValidatorSetByHeightResponse): _28.GetValidatorSetByHeightResponseAmino; - fromAminoMsg(object: _28.GetValidatorSetByHeightResponseAminoMsg): _28.GetValidatorSetByHeightResponse; - toAminoMsg(message: _28.GetValidatorSetByHeightResponse): _28.GetValidatorSetByHeightResponseAminoMsg; - fromProtoMsg(message: _28.GetValidatorSetByHeightResponseProtoMsg): _28.GetValidatorSetByHeightResponse; - toProto(message: _28.GetValidatorSetByHeightResponse): Uint8Array; - toProtoMsg(message: _28.GetValidatorSetByHeightResponse): _28.GetValidatorSetByHeightResponseProtoMsg; - }; - GetLatestValidatorSetRequest: { - typeUrl: string; - encode(message: _28.GetLatestValidatorSetRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestValidatorSetRequest; - fromJSON(object: any): _28.GetLatestValidatorSetRequest; - toJSON(message: _28.GetLatestValidatorSetRequest): unknown; - fromPartial(object: Partial<_28.GetLatestValidatorSetRequest>): _28.GetLatestValidatorSetRequest; - fromAmino(object: _28.GetLatestValidatorSetRequestAmino): _28.GetLatestValidatorSetRequest; - toAmino(message: _28.GetLatestValidatorSetRequest): _28.GetLatestValidatorSetRequestAmino; - fromAminoMsg(object: _28.GetLatestValidatorSetRequestAminoMsg): _28.GetLatestValidatorSetRequest; - toAminoMsg(message: _28.GetLatestValidatorSetRequest): _28.GetLatestValidatorSetRequestAminoMsg; - fromProtoMsg(message: _28.GetLatestValidatorSetRequestProtoMsg): _28.GetLatestValidatorSetRequest; - toProto(message: _28.GetLatestValidatorSetRequest): Uint8Array; - toProtoMsg(message: _28.GetLatestValidatorSetRequest): _28.GetLatestValidatorSetRequestProtoMsg; - }; - GetLatestValidatorSetResponse: { - typeUrl: string; - encode(message: _28.GetLatestValidatorSetResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestValidatorSetResponse; - fromJSON(object: any): _28.GetLatestValidatorSetResponse; - toJSON(message: _28.GetLatestValidatorSetResponse): unknown; - fromPartial(object: Partial<_28.GetLatestValidatorSetResponse>): _28.GetLatestValidatorSetResponse; - fromAmino(object: _28.GetLatestValidatorSetResponseAmino): _28.GetLatestValidatorSetResponse; - toAmino(message: _28.GetLatestValidatorSetResponse): _28.GetLatestValidatorSetResponseAmino; - fromAminoMsg(object: _28.GetLatestValidatorSetResponseAminoMsg): _28.GetLatestValidatorSetResponse; - toAminoMsg(message: _28.GetLatestValidatorSetResponse): _28.GetLatestValidatorSetResponseAminoMsg; - fromProtoMsg(message: _28.GetLatestValidatorSetResponseProtoMsg): _28.GetLatestValidatorSetResponse; - toProto(message: _28.GetLatestValidatorSetResponse): Uint8Array; - toProtoMsg(message: _28.GetLatestValidatorSetResponse): _28.GetLatestValidatorSetResponseProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _28.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.Validator; - fromJSON(object: any): _28.Validator; - toJSON(message: _28.Validator): unknown; - fromPartial(object: Partial<_28.Validator>): _28.Validator; - fromAmino(object: _28.ValidatorAmino): _28.Validator; - toAmino(message: _28.Validator): _28.ValidatorAmino; - fromAminoMsg(object: _28.ValidatorAminoMsg): _28.Validator; - toAminoMsg(message: _28.Validator): _28.ValidatorAminoMsg; - fromProtoMsg(message: _28.ValidatorProtoMsg): _28.Validator; - toProto(message: _28.Validator): Uint8Array; - toProtoMsg(message: _28.Validator): _28.ValidatorProtoMsg; - }; - GetBlockByHeightRequest: { - typeUrl: string; - encode(message: _28.GetBlockByHeightRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetBlockByHeightRequest; - fromJSON(object: any): _28.GetBlockByHeightRequest; - toJSON(message: _28.GetBlockByHeightRequest): unknown; - fromPartial(object: Partial<_28.GetBlockByHeightRequest>): _28.GetBlockByHeightRequest; - fromAmino(object: _28.GetBlockByHeightRequestAmino): _28.GetBlockByHeightRequest; - toAmino(message: _28.GetBlockByHeightRequest): _28.GetBlockByHeightRequestAmino; - fromAminoMsg(object: _28.GetBlockByHeightRequestAminoMsg): _28.GetBlockByHeightRequest; - toAminoMsg(message: _28.GetBlockByHeightRequest): _28.GetBlockByHeightRequestAminoMsg; - fromProtoMsg(message: _28.GetBlockByHeightRequestProtoMsg): _28.GetBlockByHeightRequest; - toProto(message: _28.GetBlockByHeightRequest): Uint8Array; - toProtoMsg(message: _28.GetBlockByHeightRequest): _28.GetBlockByHeightRequestProtoMsg; - }; - GetBlockByHeightResponse: { - typeUrl: string; - encode(message: _28.GetBlockByHeightResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetBlockByHeightResponse; - fromJSON(object: any): _28.GetBlockByHeightResponse; - toJSON(message: _28.GetBlockByHeightResponse): unknown; - fromPartial(object: Partial<_28.GetBlockByHeightResponse>): _28.GetBlockByHeightResponse; - fromAmino(object: _28.GetBlockByHeightResponseAmino): _28.GetBlockByHeightResponse; - toAmino(message: _28.GetBlockByHeightResponse): _28.GetBlockByHeightResponseAmino; - fromAminoMsg(object: _28.GetBlockByHeightResponseAminoMsg): _28.GetBlockByHeightResponse; - toAminoMsg(message: _28.GetBlockByHeightResponse): _28.GetBlockByHeightResponseAminoMsg; - fromProtoMsg(message: _28.GetBlockByHeightResponseProtoMsg): _28.GetBlockByHeightResponse; - toProto(message: _28.GetBlockByHeightResponse): Uint8Array; - toProtoMsg(message: _28.GetBlockByHeightResponse): _28.GetBlockByHeightResponseProtoMsg; - }; - GetLatestBlockRequest: { - typeUrl: string; - encode(_: _28.GetLatestBlockRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestBlockRequest; - fromJSON(_: any): _28.GetLatestBlockRequest; - toJSON(_: _28.GetLatestBlockRequest): unknown; - fromPartial(_: Partial<_28.GetLatestBlockRequest>): _28.GetLatestBlockRequest; - fromAmino(_: _28.GetLatestBlockRequestAmino): _28.GetLatestBlockRequest; - toAmino(_: _28.GetLatestBlockRequest): _28.GetLatestBlockRequestAmino; - fromAminoMsg(object: _28.GetLatestBlockRequestAminoMsg): _28.GetLatestBlockRequest; - toAminoMsg(message: _28.GetLatestBlockRequest): _28.GetLatestBlockRequestAminoMsg; - fromProtoMsg(message: _28.GetLatestBlockRequestProtoMsg): _28.GetLatestBlockRequest; - toProto(message: _28.GetLatestBlockRequest): Uint8Array; - toProtoMsg(message: _28.GetLatestBlockRequest): _28.GetLatestBlockRequestProtoMsg; - }; - GetLatestBlockResponse: { - typeUrl: string; - encode(message: _28.GetLatestBlockResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetLatestBlockResponse; - fromJSON(object: any): _28.GetLatestBlockResponse; - toJSON(message: _28.GetLatestBlockResponse): unknown; - fromPartial(object: Partial<_28.GetLatestBlockResponse>): _28.GetLatestBlockResponse; - fromAmino(object: _28.GetLatestBlockResponseAmino): _28.GetLatestBlockResponse; - toAmino(message: _28.GetLatestBlockResponse): _28.GetLatestBlockResponseAmino; - fromAminoMsg(object: _28.GetLatestBlockResponseAminoMsg): _28.GetLatestBlockResponse; - toAminoMsg(message: _28.GetLatestBlockResponse): _28.GetLatestBlockResponseAminoMsg; - fromProtoMsg(message: _28.GetLatestBlockResponseProtoMsg): _28.GetLatestBlockResponse; - toProto(message: _28.GetLatestBlockResponse): Uint8Array; - toProtoMsg(message: _28.GetLatestBlockResponse): _28.GetLatestBlockResponseProtoMsg; - }; - GetSyncingRequest: { - typeUrl: string; - encode(_: _28.GetSyncingRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetSyncingRequest; - fromJSON(_: any): _28.GetSyncingRequest; - toJSON(_: _28.GetSyncingRequest): unknown; - fromPartial(_: Partial<_28.GetSyncingRequest>): _28.GetSyncingRequest; - fromAmino(_: _28.GetSyncingRequestAmino): _28.GetSyncingRequest; - toAmino(_: _28.GetSyncingRequest): _28.GetSyncingRequestAmino; - fromAminoMsg(object: _28.GetSyncingRequestAminoMsg): _28.GetSyncingRequest; - toAminoMsg(message: _28.GetSyncingRequest): _28.GetSyncingRequestAminoMsg; - fromProtoMsg(message: _28.GetSyncingRequestProtoMsg): _28.GetSyncingRequest; - toProto(message: _28.GetSyncingRequest): Uint8Array; - toProtoMsg(message: _28.GetSyncingRequest): _28.GetSyncingRequestProtoMsg; - }; - GetSyncingResponse: { - typeUrl: string; - encode(message: _28.GetSyncingResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetSyncingResponse; - fromJSON(object: any): _28.GetSyncingResponse; - toJSON(message: _28.GetSyncingResponse): unknown; - fromPartial(object: Partial<_28.GetSyncingResponse>): _28.GetSyncingResponse; - fromAmino(object: _28.GetSyncingResponseAmino): _28.GetSyncingResponse; - toAmino(message: _28.GetSyncingResponse): _28.GetSyncingResponseAmino; - fromAminoMsg(object: _28.GetSyncingResponseAminoMsg): _28.GetSyncingResponse; - toAminoMsg(message: _28.GetSyncingResponse): _28.GetSyncingResponseAminoMsg; - fromProtoMsg(message: _28.GetSyncingResponseProtoMsg): _28.GetSyncingResponse; - toProto(message: _28.GetSyncingResponse): Uint8Array; - toProtoMsg(message: _28.GetSyncingResponse): _28.GetSyncingResponseProtoMsg; - }; - GetNodeInfoRequest: { - typeUrl: string; - encode(_: _28.GetNodeInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetNodeInfoRequest; - fromJSON(_: any): _28.GetNodeInfoRequest; - toJSON(_: _28.GetNodeInfoRequest): unknown; - fromPartial(_: Partial<_28.GetNodeInfoRequest>): _28.GetNodeInfoRequest; - fromAmino(_: _28.GetNodeInfoRequestAmino): _28.GetNodeInfoRequest; - toAmino(_: _28.GetNodeInfoRequest): _28.GetNodeInfoRequestAmino; - fromAminoMsg(object: _28.GetNodeInfoRequestAminoMsg): _28.GetNodeInfoRequest; - toAminoMsg(message: _28.GetNodeInfoRequest): _28.GetNodeInfoRequestAminoMsg; - fromProtoMsg(message: _28.GetNodeInfoRequestProtoMsg): _28.GetNodeInfoRequest; - toProto(message: _28.GetNodeInfoRequest): Uint8Array; - toProtoMsg(message: _28.GetNodeInfoRequest): _28.GetNodeInfoRequestProtoMsg; - }; - GetNodeInfoResponse: { - typeUrl: string; - encode(message: _28.GetNodeInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.GetNodeInfoResponse; - fromJSON(object: any): _28.GetNodeInfoResponse; - toJSON(message: _28.GetNodeInfoResponse): unknown; - fromPartial(object: Partial<_28.GetNodeInfoResponse>): _28.GetNodeInfoResponse; - fromAmino(object: _28.GetNodeInfoResponseAmino): _28.GetNodeInfoResponse; - toAmino(message: _28.GetNodeInfoResponse): _28.GetNodeInfoResponseAmino; - fromAminoMsg(object: _28.GetNodeInfoResponseAminoMsg): _28.GetNodeInfoResponse; - toAminoMsg(message: _28.GetNodeInfoResponse): _28.GetNodeInfoResponseAminoMsg; - fromProtoMsg(message: _28.GetNodeInfoResponseProtoMsg): _28.GetNodeInfoResponse; - toProto(message: _28.GetNodeInfoResponse): Uint8Array; - toProtoMsg(message: _28.GetNodeInfoResponse): _28.GetNodeInfoResponseProtoMsg; - }; - VersionInfo: { - typeUrl: string; - encode(message: _28.VersionInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.VersionInfo; - fromJSON(object: any): _28.VersionInfo; - toJSON(message: _28.VersionInfo): unknown; - fromPartial(object: Partial<_28.VersionInfo>): _28.VersionInfo; - fromAmino(object: _28.VersionInfoAmino): _28.VersionInfo; - toAmino(message: _28.VersionInfo): _28.VersionInfoAmino; - fromAminoMsg(object: _28.VersionInfoAminoMsg): _28.VersionInfo; - toAminoMsg(message: _28.VersionInfo): _28.VersionInfoAminoMsg; - fromProtoMsg(message: _28.VersionInfoProtoMsg): _28.VersionInfo; - toProto(message: _28.VersionInfo): Uint8Array; - toProtoMsg(message: _28.VersionInfo): _28.VersionInfoProtoMsg; - }; - Module: { - typeUrl: string; - encode(message: _28.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.Module; - fromJSON(object: any): _28.Module; - toJSON(message: _28.Module): unknown; - fromPartial(object: Partial<_28.Module>): _28.Module; - fromAmino(object: _28.ModuleAmino): _28.Module; - toAmino(message: _28.Module): _28.ModuleAmino; - fromAminoMsg(object: _28.ModuleAminoMsg): _28.Module; - toAminoMsg(message: _28.Module): _28.ModuleAminoMsg; - fromProtoMsg(message: _28.ModuleProtoMsg): _28.Module; - toProto(message: _28.Module): Uint8Array; - toProtoMsg(message: _28.Module): _28.ModuleProtoMsg; - }; - ABCIQueryRequest: { - typeUrl: string; - encode(message: _28.ABCIQueryRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ABCIQueryRequest; - fromJSON(object: any): _28.ABCIQueryRequest; - toJSON(message: _28.ABCIQueryRequest): unknown; - fromPartial(object: Partial<_28.ABCIQueryRequest>): _28.ABCIQueryRequest; - fromAmino(object: _28.ABCIQueryRequestAmino): _28.ABCIQueryRequest; - toAmino(message: _28.ABCIQueryRequest): _28.ABCIQueryRequestAmino; - fromAminoMsg(object: _28.ABCIQueryRequestAminoMsg): _28.ABCIQueryRequest; - toAminoMsg(message: _28.ABCIQueryRequest): _28.ABCIQueryRequestAminoMsg; - fromProtoMsg(message: _28.ABCIQueryRequestProtoMsg): _28.ABCIQueryRequest; - toProto(message: _28.ABCIQueryRequest): Uint8Array; - toProtoMsg(message: _28.ABCIQueryRequest): _28.ABCIQueryRequestProtoMsg; - }; - ABCIQueryResponse: { - typeUrl: string; - encode(message: _28.ABCIQueryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ABCIQueryResponse; - fromJSON(object: any): _28.ABCIQueryResponse; - toJSON(message: _28.ABCIQueryResponse): unknown; - fromPartial(object: Partial<_28.ABCIQueryResponse>): _28.ABCIQueryResponse; - fromAmino(object: _28.ABCIQueryResponseAmino): _28.ABCIQueryResponse; - toAmino(message: _28.ABCIQueryResponse): _28.ABCIQueryResponseAmino; - fromAminoMsg(object: _28.ABCIQueryResponseAminoMsg): _28.ABCIQueryResponse; - toAminoMsg(message: _28.ABCIQueryResponse): _28.ABCIQueryResponseAminoMsg; - fromProtoMsg(message: _28.ABCIQueryResponseProtoMsg): _28.ABCIQueryResponse; - toProto(message: _28.ABCIQueryResponse): Uint8Array; - toProtoMsg(message: _28.ABCIQueryResponse): _28.ABCIQueryResponseProtoMsg; - }; - ProofOp: { - typeUrl: string; - encode(message: _28.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ProofOp; - fromJSON(object: any): _28.ProofOp; - toJSON(message: _28.ProofOp): unknown; - fromPartial(object: Partial<_28.ProofOp>): _28.ProofOp; - fromAmino(object: _28.ProofOpAmino): _28.ProofOp; - toAmino(message: _28.ProofOp): _28.ProofOpAmino; - fromAminoMsg(object: _28.ProofOpAminoMsg): _28.ProofOp; - toAminoMsg(message: _28.ProofOp): _28.ProofOpAminoMsg; - fromProtoMsg(message: _28.ProofOpProtoMsg): _28.ProofOp; - toProto(message: _28.ProofOp): Uint8Array; - toProtoMsg(message: _28.ProofOp): _28.ProofOpProtoMsg; - }; - ProofOps: { - typeUrl: string; - encode(message: _28.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _28.ProofOps; - fromJSON(object: any): _28.ProofOps; - toJSON(message: _28.ProofOps): unknown; - fromPartial(object: Partial<_28.ProofOps>): _28.ProofOps; - fromAmino(object: _28.ProofOpsAmino): _28.ProofOps; - toAmino(message: _28.ProofOps): _28.ProofOpsAmino; - fromAminoMsg(object: _28.ProofOpsAminoMsg): _28.ProofOps; - toAminoMsg(message: _28.ProofOps): _28.ProofOpsAminoMsg; - fromProtoMsg(message: _28.ProofOpsProtoMsg): _28.ProofOps; - toProto(message: _28.ProofOps): Uint8Array; - toProtoMsg(message: _28.ProofOps): _28.ProofOpsProtoMsg; - }; - }; - } - const v1beta1: { - Coin: { - typeUrl: string; - encode(message: _30.Coin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.Coin; - fromJSON(object: any): _30.Coin; - toJSON(message: _30.Coin): unknown; - fromPartial(object: Partial<_30.Coin>): _30.Coin; - fromAmino(object: _30.CoinAmino): _30.Coin; - toAmino(message: _30.Coin): _30.CoinAmino; - fromAminoMsg(object: _30.CoinAminoMsg): _30.Coin; - toAminoMsg(message: _30.Coin): _30.CoinAminoMsg; - fromProtoMsg(message: _30.CoinProtoMsg): _30.Coin; - toProto(message: _30.Coin): Uint8Array; - toProtoMsg(message: _30.Coin): _30.CoinProtoMsg; - }; - DecCoin: { - typeUrl: string; - encode(message: _30.DecCoin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.DecCoin; - fromJSON(object: any): _30.DecCoin; - toJSON(message: _30.DecCoin): unknown; - fromPartial(object: Partial<_30.DecCoin>): _30.DecCoin; - fromAmino(object: _30.DecCoinAmino): _30.DecCoin; - toAmino(message: _30.DecCoin): _30.DecCoinAmino; - fromAminoMsg(object: _30.DecCoinAminoMsg): _30.DecCoin; - toAminoMsg(message: _30.DecCoin): _30.DecCoinAminoMsg; - fromProtoMsg(message: _30.DecCoinProtoMsg): _30.DecCoin; - toProto(message: _30.DecCoin): Uint8Array; - toProtoMsg(message: _30.DecCoin): _30.DecCoinProtoMsg; - }; - IntProto: { - typeUrl: string; - encode(message: _30.IntProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.IntProto; - fromJSON(object: any): _30.IntProto; - toJSON(message: _30.IntProto): unknown; - fromPartial(object: Partial<_30.IntProto>): _30.IntProto; - fromAmino(object: _30.IntProtoAmino): _30.IntProto; - toAmino(message: _30.IntProto): _30.IntProtoAmino; - fromAminoMsg(object: _30.IntProtoAminoMsg): _30.IntProto; - toAminoMsg(message: _30.IntProto): _30.IntProtoAminoMsg; - fromProtoMsg(message: _30.IntProtoProtoMsg): _30.IntProto; - toProto(message: _30.IntProto): Uint8Array; - toProtoMsg(message: _30.IntProto): _30.IntProtoProtoMsg; - }; - DecProto: { - typeUrl: string; - encode(message: _30.DecProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _30.DecProto; - fromJSON(object: any): _30.DecProto; - toJSON(message: _30.DecProto): unknown; - fromPartial(object: Partial<_30.DecProto>): _30.DecProto; - fromAmino(object: _30.DecProtoAmino): _30.DecProto; - toAmino(message: _30.DecProto): _30.DecProtoAmino; - fromAminoMsg(object: _30.DecProtoAminoMsg): _30.DecProto; - toAminoMsg(message: _30.DecProto): _30.DecProtoAminoMsg; - fromProtoMsg(message: _30.DecProtoProtoMsg): _30.DecProto; - toProto(message: _30.DecProto): Uint8Array; - toProtoMsg(message: _30.DecProto): _30.DecProtoProtoMsg; - }; - }; - } - namespace capability { - const v1beta1: { - GenesisOwners: { - typeUrl: string; - encode(message: _32.GenesisOwners, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _32.GenesisOwners; - fromJSON(object: any): _32.GenesisOwners; - toJSON(message: _32.GenesisOwners): unknown; - fromPartial(object: Partial<_32.GenesisOwners>): _32.GenesisOwners; - fromAmino(object: _32.GenesisOwnersAmino): _32.GenesisOwners; - toAmino(message: _32.GenesisOwners): _32.GenesisOwnersAmino; - fromAminoMsg(object: _32.GenesisOwnersAminoMsg): _32.GenesisOwners; - toAminoMsg(message: _32.GenesisOwners): _32.GenesisOwnersAminoMsg; - fromProtoMsg(message: _32.GenesisOwnersProtoMsg): _32.GenesisOwners; - toProto(message: _32.GenesisOwners): Uint8Array; - toProtoMsg(message: _32.GenesisOwners): _32.GenesisOwnersProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _32.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _32.GenesisState; - fromJSON(object: any): _32.GenesisState; - toJSON(message: _32.GenesisState): unknown; - fromPartial(object: Partial<_32.GenesisState>): _32.GenesisState; - fromAmino(object: _32.GenesisStateAmino): _32.GenesisState; - toAmino(message: _32.GenesisState): _32.GenesisStateAmino; - fromAminoMsg(object: _32.GenesisStateAminoMsg): _32.GenesisState; - toAminoMsg(message: _32.GenesisState): _32.GenesisStateAminoMsg; - fromProtoMsg(message: _32.GenesisStateProtoMsg): _32.GenesisState; - toProto(message: _32.GenesisState): Uint8Array; - toProtoMsg(message: _32.GenesisState): _32.GenesisStateProtoMsg; - }; - Capability: { - typeUrl: string; - encode(message: _31.Capability, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.Capability; - fromJSON(object: any): _31.Capability; - toJSON(message: _31.Capability): unknown; - fromPartial(object: Partial<_31.Capability>): _31.Capability; - fromAmino(object: _31.CapabilityAmino): _31.Capability; - toAmino(message: _31.Capability): _31.CapabilityAmino; - fromAminoMsg(object: _31.CapabilityAminoMsg): _31.Capability; - toAminoMsg(message: _31.Capability): _31.CapabilityAminoMsg; - fromProtoMsg(message: _31.CapabilityProtoMsg): _31.Capability; - toProto(message: _31.Capability): Uint8Array; - toProtoMsg(message: _31.Capability): _31.CapabilityProtoMsg; - }; - Owner: { - typeUrl: string; - encode(message: _31.Owner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.Owner; - fromJSON(object: any): _31.Owner; - toJSON(message: _31.Owner): unknown; - fromPartial(object: Partial<_31.Owner>): _31.Owner; - fromAmino(object: _31.OwnerAmino): _31.Owner; - toAmino(message: _31.Owner): _31.OwnerAmino; - fromAminoMsg(object: _31.OwnerAminoMsg): _31.Owner; - toAminoMsg(message: _31.Owner): _31.OwnerAminoMsg; - fromProtoMsg(message: _31.OwnerProtoMsg): _31.Owner; - toProto(message: _31.Owner): Uint8Array; - toProtoMsg(message: _31.Owner): _31.OwnerProtoMsg; - }; - CapabilityOwners: { - typeUrl: string; - encode(message: _31.CapabilityOwners, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _31.CapabilityOwners; - fromJSON(object: any): _31.CapabilityOwners; - toJSON(message: _31.CapabilityOwners): unknown; - fromPartial(object: Partial<_31.CapabilityOwners>): _31.CapabilityOwners; - fromAmino(object: _31.CapabilityOwnersAmino): _31.CapabilityOwners; - toAmino(message: _31.CapabilityOwners): _31.CapabilityOwnersAmino; - fromAminoMsg(object: _31.CapabilityOwnersAminoMsg): _31.CapabilityOwners; - toAminoMsg(message: _31.CapabilityOwners): _31.CapabilityOwnersAminoMsg; - fromProtoMsg(message: _31.CapabilityOwnersProtoMsg): _31.CapabilityOwners; - toProto(message: _31.CapabilityOwners): Uint8Array; - toProtoMsg(message: _31.CapabilityOwners): _31.CapabilityOwnersProtoMsg; - }; - }; - } - namespace crisis { - const v1beta1: { - MsgClientImpl: typeof _219.MsgClientImpl; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - verifyInvariant(value: _34.MsgVerifyInvariant): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - verifyInvariant(value: _34.MsgVerifyInvariant): { - typeUrl: string; - value: _34.MsgVerifyInvariant; - }; - }; - toJSON: { - verifyInvariant(value: _34.MsgVerifyInvariant): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - verifyInvariant(value: any): { - typeUrl: string; - value: _34.MsgVerifyInvariant; - }; - }; - fromPartial: { - verifyInvariant(value: _34.MsgVerifyInvariant): { - typeUrl: string; - value: _34.MsgVerifyInvariant; - }; - }; - }; - AminoConverter: { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: (message: _34.MsgVerifyInvariant) => _34.MsgVerifyInvariantAmino; - fromAmino: (object: _34.MsgVerifyInvariantAmino) => _34.MsgVerifyInvariant; - }; - }; - MsgVerifyInvariant: { - typeUrl: string; - encode(message: _34.MsgVerifyInvariant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _34.MsgVerifyInvariant; - fromJSON(object: any): _34.MsgVerifyInvariant; - toJSON(message: _34.MsgVerifyInvariant): unknown; - fromPartial(object: Partial<_34.MsgVerifyInvariant>): _34.MsgVerifyInvariant; - fromAmino(object: _34.MsgVerifyInvariantAmino): _34.MsgVerifyInvariant; - toAmino(message: _34.MsgVerifyInvariant): _34.MsgVerifyInvariantAmino; - fromAminoMsg(object: _34.MsgVerifyInvariantAminoMsg): _34.MsgVerifyInvariant; - toAminoMsg(message: _34.MsgVerifyInvariant): _34.MsgVerifyInvariantAminoMsg; - fromProtoMsg(message: _34.MsgVerifyInvariantProtoMsg): _34.MsgVerifyInvariant; - toProto(message: _34.MsgVerifyInvariant): Uint8Array; - toProtoMsg(message: _34.MsgVerifyInvariant): _34.MsgVerifyInvariantProtoMsg; - }; - MsgVerifyInvariantResponse: { - typeUrl: string; - encode(_: _34.MsgVerifyInvariantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _34.MsgVerifyInvariantResponse; - fromJSON(_: any): _34.MsgVerifyInvariantResponse; - toJSON(_: _34.MsgVerifyInvariantResponse): unknown; - fromPartial(_: Partial<_34.MsgVerifyInvariantResponse>): _34.MsgVerifyInvariantResponse; - fromAmino(_: _34.MsgVerifyInvariantResponseAmino): _34.MsgVerifyInvariantResponse; - toAmino(_: _34.MsgVerifyInvariantResponse): _34.MsgVerifyInvariantResponseAmino; - fromAminoMsg(object: _34.MsgVerifyInvariantResponseAminoMsg): _34.MsgVerifyInvariantResponse; - toAminoMsg(message: _34.MsgVerifyInvariantResponse): _34.MsgVerifyInvariantResponseAminoMsg; - fromProtoMsg(message: _34.MsgVerifyInvariantResponseProtoMsg): _34.MsgVerifyInvariantResponse; - toProto(message: _34.MsgVerifyInvariantResponse): Uint8Array; - toProtoMsg(message: _34.MsgVerifyInvariantResponse): _34.MsgVerifyInvariantResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _33.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _33.GenesisState; - fromJSON(object: any): _33.GenesisState; - toJSON(message: _33.GenesisState): unknown; - fromPartial(object: Partial<_33.GenesisState>): _33.GenesisState; - fromAmino(object: _33.GenesisStateAmino): _33.GenesisState; - toAmino(message: _33.GenesisState): _33.GenesisStateAmino; - fromAminoMsg(object: _33.GenesisStateAminoMsg): _33.GenesisState; - toAminoMsg(message: _33.GenesisState): _33.GenesisStateAminoMsg; - fromProtoMsg(message: _33.GenesisStateProtoMsg): _33.GenesisState; - toProto(message: _33.GenesisState): Uint8Array; - toProtoMsg(message: _33.GenesisState): _33.GenesisStateProtoMsg; - }; - }; - } - namespace crypto { - const ed25519: { - PubKey: { - typeUrl: string; - encode(message: _35.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _35.PubKey; - fromJSON(object: any): _35.PubKey; - toJSON(message: _35.PubKey): unknown; - fromPartial(object: Partial<_35.PubKey>): _35.PubKey; - fromAmino(object: _35.PubKeyAmino): _35.PubKey; - toAmino(message: _35.PubKey): _35.PubKeyAmino; - fromAminoMsg(object: _35.PubKeyAminoMsg): _35.PubKey; - toAminoMsg(message: _35.PubKey): _35.PubKeyAminoMsg; - fromProtoMsg(message: _35.PubKeyProtoMsg): _35.PubKey; - toProto(message: _35.PubKey): Uint8Array; - toProtoMsg(message: _35.PubKey): _35.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _35.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _35.PrivKey; - fromJSON(object: any): _35.PrivKey; - toJSON(message: _35.PrivKey): unknown; - fromPartial(object: Partial<_35.PrivKey>): _35.PrivKey; - fromAmino(object: _35.PrivKeyAmino): _35.PrivKey; - toAmino(message: _35.PrivKey): _35.PrivKeyAmino; - fromAminoMsg(object: _35.PrivKeyAminoMsg): _35.PrivKey; - toAminoMsg(message: _35.PrivKey): _35.PrivKeyAminoMsg; - fromProtoMsg(message: _35.PrivKeyProtoMsg): _35.PrivKey; - toProto(message: _35.PrivKey): Uint8Array; - toProtoMsg(message: _35.PrivKey): _35.PrivKeyProtoMsg; - }; - }; - namespace hd { - const v1: { - BIP44Params: { - typeUrl: string; - encode(message: _36.BIP44Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _36.BIP44Params; - fromJSON(object: any): _36.BIP44Params; - toJSON(message: _36.BIP44Params): unknown; - fromPartial(object: Partial<_36.BIP44Params>): _36.BIP44Params; - fromAmino(object: _36.BIP44ParamsAmino): _36.BIP44Params; - toAmino(message: _36.BIP44Params): _36.BIP44ParamsAmino; - fromAminoMsg(object: _36.BIP44ParamsAminoMsg): _36.BIP44Params; - toAminoMsg(message: _36.BIP44Params): _36.BIP44ParamsAminoMsg; - fromProtoMsg(message: _36.BIP44ParamsProtoMsg): _36.BIP44Params; - toProto(message: _36.BIP44Params): Uint8Array; - toProtoMsg(message: _36.BIP44Params): _36.BIP44ParamsProtoMsg; - }; - }; - } - namespace keyring { - const v1: { - Record: { - typeUrl: string; - encode(message: _37.Record, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record; - fromJSON(object: any): _37.Record; - toJSON(message: _37.Record): unknown; - fromPartial(object: Partial<_37.Record>): _37.Record; - fromAmino(object: _37.RecordAmino): _37.Record; - toAmino(message: _37.Record): _37.RecordAmino; - fromAminoMsg(object: _37.RecordAminoMsg): _37.Record; - toAminoMsg(message: _37.Record): _37.RecordAminoMsg; - fromProtoMsg(message: _37.RecordProtoMsg): _37.Record; - toProto(message: _37.Record): Uint8Array; - toProtoMsg(message: _37.Record): _37.RecordProtoMsg; - }; - Record_Local: { - typeUrl: string; - encode(message: _37.Record_Local, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Local; - fromJSON(object: any): _37.Record_Local; - toJSON(message: _37.Record_Local): unknown; - fromPartial(object: Partial<_37.Record_Local>): _37.Record_Local; - fromAmino(object: _37.Record_LocalAmino): _37.Record_Local; - toAmino(message: _37.Record_Local): _37.Record_LocalAmino; - fromAminoMsg(object: _37.Record_LocalAminoMsg): _37.Record_Local; - toAminoMsg(message: _37.Record_Local): _37.Record_LocalAminoMsg; - fromProtoMsg(message: _37.Record_LocalProtoMsg): _37.Record_Local; - toProto(message: _37.Record_Local): Uint8Array; - toProtoMsg(message: _37.Record_Local): _37.Record_LocalProtoMsg; - }; - Record_Ledger: { - typeUrl: string; - encode(message: _37.Record_Ledger, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Ledger; - fromJSON(object: any): _37.Record_Ledger; - toJSON(message: _37.Record_Ledger): unknown; - fromPartial(object: Partial<_37.Record_Ledger>): _37.Record_Ledger; - fromAmino(object: _37.Record_LedgerAmino): _37.Record_Ledger; - toAmino(message: _37.Record_Ledger): _37.Record_LedgerAmino; - fromAminoMsg(object: _37.Record_LedgerAminoMsg): _37.Record_Ledger; - toAminoMsg(message: _37.Record_Ledger): _37.Record_LedgerAminoMsg; - fromProtoMsg(message: _37.Record_LedgerProtoMsg): _37.Record_Ledger; - toProto(message: _37.Record_Ledger): Uint8Array; - toProtoMsg(message: _37.Record_Ledger): _37.Record_LedgerProtoMsg; - }; - Record_Multi: { - typeUrl: string; - encode(_: _37.Record_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Multi; - fromJSON(_: any): _37.Record_Multi; - toJSON(_: _37.Record_Multi): unknown; - fromPartial(_: Partial<_37.Record_Multi>): _37.Record_Multi; - fromAmino(_: _37.Record_MultiAmino): _37.Record_Multi; - toAmino(_: _37.Record_Multi): _37.Record_MultiAmino; - fromAminoMsg(object: _37.Record_MultiAminoMsg): _37.Record_Multi; - toAminoMsg(message: _37.Record_Multi): _37.Record_MultiAminoMsg; - fromProtoMsg(message: _37.Record_MultiProtoMsg): _37.Record_Multi; - toProto(message: _37.Record_Multi): Uint8Array; - toProtoMsg(message: _37.Record_Multi): _37.Record_MultiProtoMsg; - }; - Record_Offline: { - typeUrl: string; - encode(_: _37.Record_Offline, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _37.Record_Offline; - fromJSON(_: any): _37.Record_Offline; - toJSON(_: _37.Record_Offline): unknown; - fromPartial(_: Partial<_37.Record_Offline>): _37.Record_Offline; - fromAmino(_: _37.Record_OfflineAmino): _37.Record_Offline; - toAmino(_: _37.Record_Offline): _37.Record_OfflineAmino; - fromAminoMsg(object: _37.Record_OfflineAminoMsg): _37.Record_Offline; - toAminoMsg(message: _37.Record_Offline): _37.Record_OfflineAminoMsg; - fromProtoMsg(message: _37.Record_OfflineProtoMsg): _37.Record_Offline; - toProto(message: _37.Record_Offline): Uint8Array; - toProtoMsg(message: _37.Record_Offline): _37.Record_OfflineProtoMsg; - }; - }; - } - const multisig: { - LegacyAminoPubKey: { - typeUrl: string; - encode(message: _38.LegacyAminoPubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _38.LegacyAminoPubKey; - fromJSON(object: any): _38.LegacyAminoPubKey; - toJSON(message: _38.LegacyAminoPubKey): unknown; - fromPartial(object: Partial<_38.LegacyAminoPubKey>): _38.LegacyAminoPubKey; - fromAmino(object: _38.LegacyAminoPubKeyAmino): _38.LegacyAminoPubKey; - toAmino(message: _38.LegacyAminoPubKey): _38.LegacyAminoPubKeyAmino; - fromAminoMsg(object: _38.LegacyAminoPubKeyAminoMsg): _38.LegacyAminoPubKey; - toAminoMsg(message: _38.LegacyAminoPubKey): _38.LegacyAminoPubKeyAminoMsg; - fromProtoMsg(message: _38.LegacyAminoPubKeyProtoMsg): _38.LegacyAminoPubKey; - toProto(message: _38.LegacyAminoPubKey): Uint8Array; - toProtoMsg(message: _38.LegacyAminoPubKey): _38.LegacyAminoPubKeyProtoMsg; - }; - }; - const secp256k1: { - PubKey: { - typeUrl: string; - encode(message: _39.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _39.PubKey; - fromJSON(object: any): _39.PubKey; - toJSON(message: _39.PubKey): unknown; - fromPartial(object: Partial<_39.PubKey>): _39.PubKey; - fromAmino(object: _39.PubKeyAmino): _39.PubKey; - toAmino(message: _39.PubKey): _39.PubKeyAmino; - fromAminoMsg(object: _39.PubKeyAminoMsg): _39.PubKey; - toAminoMsg(message: _39.PubKey): _39.PubKeyAminoMsg; - fromProtoMsg(message: _39.PubKeyProtoMsg): _39.PubKey; - toProto(message: _39.PubKey): Uint8Array; - toProtoMsg(message: _39.PubKey): _39.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _39.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _39.PrivKey; - fromJSON(object: any): _39.PrivKey; - toJSON(message: _39.PrivKey): unknown; - fromPartial(object: Partial<_39.PrivKey>): _39.PrivKey; - fromAmino(object: _39.PrivKeyAmino): _39.PrivKey; - toAmino(message: _39.PrivKey): _39.PrivKeyAmino; - fromAminoMsg(object: _39.PrivKeyAminoMsg): _39.PrivKey; - toAminoMsg(message: _39.PrivKey): _39.PrivKeyAminoMsg; - fromProtoMsg(message: _39.PrivKeyProtoMsg): _39.PrivKey; - toProto(message: _39.PrivKey): Uint8Array; - toProtoMsg(message: _39.PrivKey): _39.PrivKeyProtoMsg; - }; - }; - const secp256r1: { - PubKey: { - typeUrl: string; - encode(message: _40.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _40.PubKey; - fromJSON(object: any): _40.PubKey; - toJSON(message: _40.PubKey): unknown; - fromPartial(object: Partial<_40.PubKey>): _40.PubKey; - fromAmino(object: _40.PubKeyAmino): _40.PubKey; - toAmino(message: _40.PubKey): _40.PubKeyAmino; - fromAminoMsg(object: _40.PubKeyAminoMsg): _40.PubKey; - toAminoMsg(message: _40.PubKey): _40.PubKeyAminoMsg; - fromProtoMsg(message: _40.PubKeyProtoMsg): _40.PubKey; - toProto(message: _40.PubKey): Uint8Array; - toProtoMsg(message: _40.PubKey): _40.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _40.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _40.PrivKey; - fromJSON(object: any): _40.PrivKey; - toJSON(message: _40.PrivKey): unknown; - fromPartial(object: Partial<_40.PrivKey>): _40.PrivKey; - fromAmino(object: _40.PrivKeyAmino): _40.PrivKey; - toAmino(message: _40.PrivKey): _40.PrivKeyAmino; - fromAminoMsg(object: _40.PrivKeyAminoMsg): _40.PrivKey; - toAminoMsg(message: _40.PrivKey): _40.PrivKeyAminoMsg; - fromProtoMsg(message: _40.PrivKeyProtoMsg): _40.PrivKey; - toProto(message: _40.PrivKey): Uint8Array; - toProtoMsg(message: _40.PrivKey): _40.PrivKeyProtoMsg; - }; - }; - } - namespace distribution { - const v1beta1: { - MsgClientImpl: typeof _220.MsgClientImpl; - QueryClientImpl: typeof _204.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request?: _43.QueryParamsRequest | undefined): Promise<_43.QueryParamsResponse>; - validatorOutstandingRewards(request: _43.QueryValidatorOutstandingRewardsRequest): Promise<_43.QueryValidatorOutstandingRewardsResponse>; - validatorCommission(request: _43.QueryValidatorCommissionRequest): Promise<_43.QueryValidatorCommissionResponse>; - validatorSlashes(request: _43.QueryValidatorSlashesRequest): Promise<_43.QueryValidatorSlashesResponse>; - delegationRewards(request: _43.QueryDelegationRewardsRequest): Promise<_43.QueryDelegationRewardsResponse>; - delegationTotalRewards(request: _43.QueryDelegationTotalRewardsRequest): Promise<_43.QueryDelegationTotalRewardsResponse>; - delegatorValidators(request: _43.QueryDelegatorValidatorsRequest): Promise<_43.QueryDelegatorValidatorsResponse>; - delegatorWithdrawAddress(request: _43.QueryDelegatorWithdrawAddressRequest): Promise<_43.QueryDelegatorWithdrawAddressResponse>; - communityPool(request?: _43.QueryCommunityPoolRequest | undefined): Promise<_43.QueryCommunityPoolResponse>; - }; - LCDQueryClient: typeof _185.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - setWithdrawAddress(value: _44.MsgSetWithdrawAddress): { - typeUrl: string; - value: Uint8Array; - }; - withdrawDelegatorReward(value: _44.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: Uint8Array; - }; - withdrawValidatorCommission(value: _44.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: Uint8Array; - }; - fundCommunityPool(value: _44.MsgFundCommunityPool): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - setWithdrawAddress(value: _44.MsgSetWithdrawAddress): { - typeUrl: string; - value: _44.MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: _44.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: _44.MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: _44.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: _44.MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: _44.MsgFundCommunityPool): { - typeUrl: string; - value: _44.MsgFundCommunityPool; - }; - }; - toJSON: { - setWithdrawAddress(value: _44.MsgSetWithdrawAddress): { - typeUrl: string; - value: unknown; - }; - withdrawDelegatorReward(value: _44.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: unknown; - }; - withdrawValidatorCommission(value: _44.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: unknown; - }; - fundCommunityPool(value: _44.MsgFundCommunityPool): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - setWithdrawAddress(value: any): { - typeUrl: string; - value: _44.MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: any): { - typeUrl: string; - value: _44.MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: any): { - typeUrl: string; - value: _44.MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: any): { - typeUrl: string; - value: _44.MsgFundCommunityPool; - }; - }; - fromPartial: { - setWithdrawAddress(value: _44.MsgSetWithdrawAddress): { - typeUrl: string; - value: _44.MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: _44.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: _44.MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: _44.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: _44.MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: _44.MsgFundCommunityPool): { - typeUrl: string; - value: _44.MsgFundCommunityPool; - }; - }; - }; - AminoConverter: { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: _44.MsgSetWithdrawAddress) => _44.MsgSetWithdrawAddressAmino; - fromAmino: (object: _44.MsgSetWithdrawAddressAmino) => _44.MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: _44.MsgWithdrawDelegatorReward) => _44.MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: _44.MsgWithdrawDelegatorRewardAmino) => _44.MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: _44.MsgWithdrawValidatorCommission) => _44.MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: _44.MsgWithdrawValidatorCommissionAmino) => _44.MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: _44.MsgFundCommunityPool) => _44.MsgFundCommunityPoolAmino; - fromAmino: (object: _44.MsgFundCommunityPoolAmino) => _44.MsgFundCommunityPool; - }; - }; - MsgSetWithdrawAddress: { - typeUrl: string; - encode(message: _44.MsgSetWithdrawAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgSetWithdrawAddress; - fromJSON(object: any): _44.MsgSetWithdrawAddress; - toJSON(message: _44.MsgSetWithdrawAddress): unknown; - fromPartial(object: Partial<_44.MsgSetWithdrawAddress>): _44.MsgSetWithdrawAddress; - fromAmino(object: _44.MsgSetWithdrawAddressAmino): _44.MsgSetWithdrawAddress; - toAmino(message: _44.MsgSetWithdrawAddress): _44.MsgSetWithdrawAddressAmino; - fromAminoMsg(object: _44.MsgSetWithdrawAddressAminoMsg): _44.MsgSetWithdrawAddress; - toAminoMsg(message: _44.MsgSetWithdrawAddress): _44.MsgSetWithdrawAddressAminoMsg; - fromProtoMsg(message: _44.MsgSetWithdrawAddressProtoMsg): _44.MsgSetWithdrawAddress; - toProto(message: _44.MsgSetWithdrawAddress): Uint8Array; - toProtoMsg(message: _44.MsgSetWithdrawAddress): _44.MsgSetWithdrawAddressProtoMsg; - }; - MsgSetWithdrawAddressResponse: { - typeUrl: string; - encode(_: _44.MsgSetWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgSetWithdrawAddressResponse; - fromJSON(_: any): _44.MsgSetWithdrawAddressResponse; - toJSON(_: _44.MsgSetWithdrawAddressResponse): unknown; - fromPartial(_: Partial<_44.MsgSetWithdrawAddressResponse>): _44.MsgSetWithdrawAddressResponse; - fromAmino(_: _44.MsgSetWithdrawAddressResponseAmino): _44.MsgSetWithdrawAddressResponse; - toAmino(_: _44.MsgSetWithdrawAddressResponse): _44.MsgSetWithdrawAddressResponseAmino; - fromAminoMsg(object: _44.MsgSetWithdrawAddressResponseAminoMsg): _44.MsgSetWithdrawAddressResponse; - toAminoMsg(message: _44.MsgSetWithdrawAddressResponse): _44.MsgSetWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: _44.MsgSetWithdrawAddressResponseProtoMsg): _44.MsgSetWithdrawAddressResponse; - toProto(message: _44.MsgSetWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: _44.MsgSetWithdrawAddressResponse): _44.MsgSetWithdrawAddressResponseProtoMsg; - }; - MsgWithdrawDelegatorReward: { - typeUrl: string; - encode(message: _44.MsgWithdrawDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawDelegatorReward; - fromJSON(object: any): _44.MsgWithdrawDelegatorReward; - toJSON(message: _44.MsgWithdrawDelegatorReward): unknown; - fromPartial(object: Partial<_44.MsgWithdrawDelegatorReward>): _44.MsgWithdrawDelegatorReward; - fromAmino(object: _44.MsgWithdrawDelegatorRewardAmino): _44.MsgWithdrawDelegatorReward; - toAmino(message: _44.MsgWithdrawDelegatorReward): _44.MsgWithdrawDelegatorRewardAmino; - fromAminoMsg(object: _44.MsgWithdrawDelegatorRewardAminoMsg): _44.MsgWithdrawDelegatorReward; - toAminoMsg(message: _44.MsgWithdrawDelegatorReward): _44.MsgWithdrawDelegatorRewardAminoMsg; - fromProtoMsg(message: _44.MsgWithdrawDelegatorRewardProtoMsg): _44.MsgWithdrawDelegatorReward; - toProto(message: _44.MsgWithdrawDelegatorReward): Uint8Array; - toProtoMsg(message: _44.MsgWithdrawDelegatorReward): _44.MsgWithdrawDelegatorRewardProtoMsg; - }; - MsgWithdrawDelegatorRewardResponse: { - typeUrl: string; - encode(message: _44.MsgWithdrawDelegatorRewardResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawDelegatorRewardResponse; - fromJSON(object: any): _44.MsgWithdrawDelegatorRewardResponse; - toJSON(message: _44.MsgWithdrawDelegatorRewardResponse): unknown; - fromPartial(object: Partial<_44.MsgWithdrawDelegatorRewardResponse>): _44.MsgWithdrawDelegatorRewardResponse; - fromAmino(object: _44.MsgWithdrawDelegatorRewardResponseAmino): _44.MsgWithdrawDelegatorRewardResponse; - toAmino(message: _44.MsgWithdrawDelegatorRewardResponse): _44.MsgWithdrawDelegatorRewardResponseAmino; - fromAminoMsg(object: _44.MsgWithdrawDelegatorRewardResponseAminoMsg): _44.MsgWithdrawDelegatorRewardResponse; - toAminoMsg(message: _44.MsgWithdrawDelegatorRewardResponse): _44.MsgWithdrawDelegatorRewardResponseAminoMsg; - fromProtoMsg(message: _44.MsgWithdrawDelegatorRewardResponseProtoMsg): _44.MsgWithdrawDelegatorRewardResponse; - toProto(message: _44.MsgWithdrawDelegatorRewardResponse): Uint8Array; - toProtoMsg(message: _44.MsgWithdrawDelegatorRewardResponse): _44.MsgWithdrawDelegatorRewardResponseProtoMsg; - }; - MsgWithdrawValidatorCommission: { - typeUrl: string; - encode(message: _44.MsgWithdrawValidatorCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawValidatorCommission; - fromJSON(object: any): _44.MsgWithdrawValidatorCommission; - toJSON(message: _44.MsgWithdrawValidatorCommission): unknown; - fromPartial(object: Partial<_44.MsgWithdrawValidatorCommission>): _44.MsgWithdrawValidatorCommission; - fromAmino(object: _44.MsgWithdrawValidatorCommissionAmino): _44.MsgWithdrawValidatorCommission; - toAmino(message: _44.MsgWithdrawValidatorCommission): _44.MsgWithdrawValidatorCommissionAmino; - fromAminoMsg(object: _44.MsgWithdrawValidatorCommissionAminoMsg): _44.MsgWithdrawValidatorCommission; - toAminoMsg(message: _44.MsgWithdrawValidatorCommission): _44.MsgWithdrawValidatorCommissionAminoMsg; - fromProtoMsg(message: _44.MsgWithdrawValidatorCommissionProtoMsg): _44.MsgWithdrawValidatorCommission; - toProto(message: _44.MsgWithdrawValidatorCommission): Uint8Array; - toProtoMsg(message: _44.MsgWithdrawValidatorCommission): _44.MsgWithdrawValidatorCommissionProtoMsg; - }; - MsgWithdrawValidatorCommissionResponse: { - typeUrl: string; - encode(message: _44.MsgWithdrawValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgWithdrawValidatorCommissionResponse; - fromJSON(object: any): _44.MsgWithdrawValidatorCommissionResponse; - toJSON(message: _44.MsgWithdrawValidatorCommissionResponse): unknown; - fromPartial(object: Partial<_44.MsgWithdrawValidatorCommissionResponse>): _44.MsgWithdrawValidatorCommissionResponse; - fromAmino(object: _44.MsgWithdrawValidatorCommissionResponseAmino): _44.MsgWithdrawValidatorCommissionResponse; - toAmino(message: _44.MsgWithdrawValidatorCommissionResponse): _44.MsgWithdrawValidatorCommissionResponseAmino; - fromAminoMsg(object: _44.MsgWithdrawValidatorCommissionResponseAminoMsg): _44.MsgWithdrawValidatorCommissionResponse; - toAminoMsg(message: _44.MsgWithdrawValidatorCommissionResponse): _44.MsgWithdrawValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: _44.MsgWithdrawValidatorCommissionResponseProtoMsg): _44.MsgWithdrawValidatorCommissionResponse; - toProto(message: _44.MsgWithdrawValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: _44.MsgWithdrawValidatorCommissionResponse): _44.MsgWithdrawValidatorCommissionResponseProtoMsg; - }; - MsgFundCommunityPool: { - typeUrl: string; - encode(message: _44.MsgFundCommunityPool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgFundCommunityPool; - fromJSON(object: any): _44.MsgFundCommunityPool; - toJSON(message: _44.MsgFundCommunityPool): unknown; - fromPartial(object: Partial<_44.MsgFundCommunityPool>): _44.MsgFundCommunityPool; - fromAmino(object: _44.MsgFundCommunityPoolAmino): _44.MsgFundCommunityPool; - toAmino(message: _44.MsgFundCommunityPool): _44.MsgFundCommunityPoolAmino; - fromAminoMsg(object: _44.MsgFundCommunityPoolAminoMsg): _44.MsgFundCommunityPool; - toAminoMsg(message: _44.MsgFundCommunityPool): _44.MsgFundCommunityPoolAminoMsg; - fromProtoMsg(message: _44.MsgFundCommunityPoolProtoMsg): _44.MsgFundCommunityPool; - toProto(message: _44.MsgFundCommunityPool): Uint8Array; - toProtoMsg(message: _44.MsgFundCommunityPool): _44.MsgFundCommunityPoolProtoMsg; - }; - MsgFundCommunityPoolResponse: { - typeUrl: string; - encode(_: _44.MsgFundCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _44.MsgFundCommunityPoolResponse; - fromJSON(_: any): _44.MsgFundCommunityPoolResponse; - toJSON(_: _44.MsgFundCommunityPoolResponse): unknown; - fromPartial(_: Partial<_44.MsgFundCommunityPoolResponse>): _44.MsgFundCommunityPoolResponse; - fromAmino(_: _44.MsgFundCommunityPoolResponseAmino): _44.MsgFundCommunityPoolResponse; - toAmino(_: _44.MsgFundCommunityPoolResponse): _44.MsgFundCommunityPoolResponseAmino; - fromAminoMsg(object: _44.MsgFundCommunityPoolResponseAminoMsg): _44.MsgFundCommunityPoolResponse; - toAminoMsg(message: _44.MsgFundCommunityPoolResponse): _44.MsgFundCommunityPoolResponseAminoMsg; - fromProtoMsg(message: _44.MsgFundCommunityPoolResponseProtoMsg): _44.MsgFundCommunityPoolResponse; - toProto(message: _44.MsgFundCommunityPoolResponse): Uint8Array; - toProtoMsg(message: _44.MsgFundCommunityPoolResponse): _44.MsgFundCommunityPoolResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _43.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryParamsRequest; - fromJSON(_: any): _43.QueryParamsRequest; - toJSON(_: _43.QueryParamsRequest): unknown; - fromPartial(_: Partial<_43.QueryParamsRequest>): _43.QueryParamsRequest; - fromAmino(_: _43.QueryParamsRequestAmino): _43.QueryParamsRequest; - toAmino(_: _43.QueryParamsRequest): _43.QueryParamsRequestAmino; - fromAminoMsg(object: _43.QueryParamsRequestAminoMsg): _43.QueryParamsRequest; - toAminoMsg(message: _43.QueryParamsRequest): _43.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _43.QueryParamsRequestProtoMsg): _43.QueryParamsRequest; - toProto(message: _43.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _43.QueryParamsRequest): _43.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _43.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryParamsResponse; - fromJSON(object: any): _43.QueryParamsResponse; - toJSON(message: _43.QueryParamsResponse): unknown; - fromPartial(object: Partial<_43.QueryParamsResponse>): _43.QueryParamsResponse; - fromAmino(object: _43.QueryParamsResponseAmino): _43.QueryParamsResponse; - toAmino(message: _43.QueryParamsResponse): _43.QueryParamsResponseAmino; - fromAminoMsg(object: _43.QueryParamsResponseAminoMsg): _43.QueryParamsResponse; - toAminoMsg(message: _43.QueryParamsResponse): _43.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _43.QueryParamsResponseProtoMsg): _43.QueryParamsResponse; - toProto(message: _43.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _43.QueryParamsResponse): _43.QueryParamsResponseProtoMsg; - }; - QueryValidatorOutstandingRewardsRequest: { - typeUrl: string; - encode(message: _43.QueryValidatorOutstandingRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsRequest; - fromJSON(object: any): _43.QueryValidatorOutstandingRewardsRequest; - toJSON(message: _43.QueryValidatorOutstandingRewardsRequest): unknown; - fromPartial(object: Partial<_43.QueryValidatorOutstandingRewardsRequest>): _43.QueryValidatorOutstandingRewardsRequest; - fromAmino(object: _43.QueryValidatorOutstandingRewardsRequestAmino): _43.QueryValidatorOutstandingRewardsRequest; - toAmino(message: _43.QueryValidatorOutstandingRewardsRequest): _43.QueryValidatorOutstandingRewardsRequestAmino; - fromAminoMsg(object: _43.QueryValidatorOutstandingRewardsRequestAminoMsg): _43.QueryValidatorOutstandingRewardsRequest; - toAminoMsg(message: _43.QueryValidatorOutstandingRewardsRequest): _43.QueryValidatorOutstandingRewardsRequestAminoMsg; - fromProtoMsg(message: _43.QueryValidatorOutstandingRewardsRequestProtoMsg): _43.QueryValidatorOutstandingRewardsRequest; - toProto(message: _43.QueryValidatorOutstandingRewardsRequest): Uint8Array; - toProtoMsg(message: _43.QueryValidatorOutstandingRewardsRequest): _43.QueryValidatorOutstandingRewardsRequestProtoMsg; - }; - QueryValidatorOutstandingRewardsResponse: { - typeUrl: string; - encode(message: _43.QueryValidatorOutstandingRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorOutstandingRewardsResponse; - fromJSON(object: any): _43.QueryValidatorOutstandingRewardsResponse; - toJSON(message: _43.QueryValidatorOutstandingRewardsResponse): unknown; - fromPartial(object: Partial<_43.QueryValidatorOutstandingRewardsResponse>): _43.QueryValidatorOutstandingRewardsResponse; - fromAmino(object: _43.QueryValidatorOutstandingRewardsResponseAmino): _43.QueryValidatorOutstandingRewardsResponse; - toAmino(message: _43.QueryValidatorOutstandingRewardsResponse): _43.QueryValidatorOutstandingRewardsResponseAmino; - fromAminoMsg(object: _43.QueryValidatorOutstandingRewardsResponseAminoMsg): _43.QueryValidatorOutstandingRewardsResponse; - toAminoMsg(message: _43.QueryValidatorOutstandingRewardsResponse): _43.QueryValidatorOutstandingRewardsResponseAminoMsg; - fromProtoMsg(message: _43.QueryValidatorOutstandingRewardsResponseProtoMsg): _43.QueryValidatorOutstandingRewardsResponse; - toProto(message: _43.QueryValidatorOutstandingRewardsResponse): Uint8Array; - toProtoMsg(message: _43.QueryValidatorOutstandingRewardsResponse): _43.QueryValidatorOutstandingRewardsResponseProtoMsg; - }; - QueryValidatorCommissionRequest: { - typeUrl: string; - encode(message: _43.QueryValidatorCommissionRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorCommissionRequest; - fromJSON(object: any): _43.QueryValidatorCommissionRequest; - toJSON(message: _43.QueryValidatorCommissionRequest): unknown; - fromPartial(object: Partial<_43.QueryValidatorCommissionRequest>): _43.QueryValidatorCommissionRequest; - fromAmino(object: _43.QueryValidatorCommissionRequestAmino): _43.QueryValidatorCommissionRequest; - toAmino(message: _43.QueryValidatorCommissionRequest): _43.QueryValidatorCommissionRequestAmino; - fromAminoMsg(object: _43.QueryValidatorCommissionRequestAminoMsg): _43.QueryValidatorCommissionRequest; - toAminoMsg(message: _43.QueryValidatorCommissionRequest): _43.QueryValidatorCommissionRequestAminoMsg; - fromProtoMsg(message: _43.QueryValidatorCommissionRequestProtoMsg): _43.QueryValidatorCommissionRequest; - toProto(message: _43.QueryValidatorCommissionRequest): Uint8Array; - toProtoMsg(message: _43.QueryValidatorCommissionRequest): _43.QueryValidatorCommissionRequestProtoMsg; - }; - QueryValidatorCommissionResponse: { - typeUrl: string; - encode(message: _43.QueryValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorCommissionResponse; - fromJSON(object: any): _43.QueryValidatorCommissionResponse; - toJSON(message: _43.QueryValidatorCommissionResponse): unknown; - fromPartial(object: Partial<_43.QueryValidatorCommissionResponse>): _43.QueryValidatorCommissionResponse; - fromAmino(object: _43.QueryValidatorCommissionResponseAmino): _43.QueryValidatorCommissionResponse; - toAmino(message: _43.QueryValidatorCommissionResponse): _43.QueryValidatorCommissionResponseAmino; - fromAminoMsg(object: _43.QueryValidatorCommissionResponseAminoMsg): _43.QueryValidatorCommissionResponse; - toAminoMsg(message: _43.QueryValidatorCommissionResponse): _43.QueryValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: _43.QueryValidatorCommissionResponseProtoMsg): _43.QueryValidatorCommissionResponse; - toProto(message: _43.QueryValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: _43.QueryValidatorCommissionResponse): _43.QueryValidatorCommissionResponseProtoMsg; - }; - QueryValidatorSlashesRequest: { - typeUrl: string; - encode(message: _43.QueryValidatorSlashesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorSlashesRequest; - fromJSON(object: any): _43.QueryValidatorSlashesRequest; - toJSON(message: _43.QueryValidatorSlashesRequest): unknown; - fromPartial(object: Partial<_43.QueryValidatorSlashesRequest>): _43.QueryValidatorSlashesRequest; - fromAmino(object: _43.QueryValidatorSlashesRequestAmino): _43.QueryValidatorSlashesRequest; - toAmino(message: _43.QueryValidatorSlashesRequest): _43.QueryValidatorSlashesRequestAmino; - fromAminoMsg(object: _43.QueryValidatorSlashesRequestAminoMsg): _43.QueryValidatorSlashesRequest; - toAminoMsg(message: _43.QueryValidatorSlashesRequest): _43.QueryValidatorSlashesRequestAminoMsg; - fromProtoMsg(message: _43.QueryValidatorSlashesRequestProtoMsg): _43.QueryValidatorSlashesRequest; - toProto(message: _43.QueryValidatorSlashesRequest): Uint8Array; - toProtoMsg(message: _43.QueryValidatorSlashesRequest): _43.QueryValidatorSlashesRequestProtoMsg; - }; - QueryValidatorSlashesResponse: { - typeUrl: string; - encode(message: _43.QueryValidatorSlashesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryValidatorSlashesResponse; - fromJSON(object: any): _43.QueryValidatorSlashesResponse; - toJSON(message: _43.QueryValidatorSlashesResponse): unknown; - fromPartial(object: Partial<_43.QueryValidatorSlashesResponse>): _43.QueryValidatorSlashesResponse; - fromAmino(object: _43.QueryValidatorSlashesResponseAmino): _43.QueryValidatorSlashesResponse; - toAmino(message: _43.QueryValidatorSlashesResponse): _43.QueryValidatorSlashesResponseAmino; - fromAminoMsg(object: _43.QueryValidatorSlashesResponseAminoMsg): _43.QueryValidatorSlashesResponse; - toAminoMsg(message: _43.QueryValidatorSlashesResponse): _43.QueryValidatorSlashesResponseAminoMsg; - fromProtoMsg(message: _43.QueryValidatorSlashesResponseProtoMsg): _43.QueryValidatorSlashesResponse; - toProto(message: _43.QueryValidatorSlashesResponse): Uint8Array; - toProtoMsg(message: _43.QueryValidatorSlashesResponse): _43.QueryValidatorSlashesResponseProtoMsg; - }; - QueryDelegationRewardsRequest: { - typeUrl: string; - encode(message: _43.QueryDelegationRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationRewardsRequest; - fromJSON(object: any): _43.QueryDelegationRewardsRequest; - toJSON(message: _43.QueryDelegationRewardsRequest): unknown; - fromPartial(object: Partial<_43.QueryDelegationRewardsRequest>): _43.QueryDelegationRewardsRequest; - fromAmino(object: _43.QueryDelegationRewardsRequestAmino): _43.QueryDelegationRewardsRequest; - toAmino(message: _43.QueryDelegationRewardsRequest): _43.QueryDelegationRewardsRequestAmino; - fromAminoMsg(object: _43.QueryDelegationRewardsRequestAminoMsg): _43.QueryDelegationRewardsRequest; - toAminoMsg(message: _43.QueryDelegationRewardsRequest): _43.QueryDelegationRewardsRequestAminoMsg; - fromProtoMsg(message: _43.QueryDelegationRewardsRequestProtoMsg): _43.QueryDelegationRewardsRequest; - toProto(message: _43.QueryDelegationRewardsRequest): Uint8Array; - toProtoMsg(message: _43.QueryDelegationRewardsRequest): _43.QueryDelegationRewardsRequestProtoMsg; - }; - QueryDelegationRewardsResponse: { - typeUrl: string; - encode(message: _43.QueryDelegationRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationRewardsResponse; - fromJSON(object: any): _43.QueryDelegationRewardsResponse; - toJSON(message: _43.QueryDelegationRewardsResponse): unknown; - fromPartial(object: Partial<_43.QueryDelegationRewardsResponse>): _43.QueryDelegationRewardsResponse; - fromAmino(object: _43.QueryDelegationRewardsResponseAmino): _43.QueryDelegationRewardsResponse; - toAmino(message: _43.QueryDelegationRewardsResponse): _43.QueryDelegationRewardsResponseAmino; - fromAminoMsg(object: _43.QueryDelegationRewardsResponseAminoMsg): _43.QueryDelegationRewardsResponse; - toAminoMsg(message: _43.QueryDelegationRewardsResponse): _43.QueryDelegationRewardsResponseAminoMsg; - fromProtoMsg(message: _43.QueryDelegationRewardsResponseProtoMsg): _43.QueryDelegationRewardsResponse; - toProto(message: _43.QueryDelegationRewardsResponse): Uint8Array; - toProtoMsg(message: _43.QueryDelegationRewardsResponse): _43.QueryDelegationRewardsResponseProtoMsg; - }; - QueryDelegationTotalRewardsRequest: { - typeUrl: string; - encode(message: _43.QueryDelegationTotalRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationTotalRewardsRequest; - fromJSON(object: any): _43.QueryDelegationTotalRewardsRequest; - toJSON(message: _43.QueryDelegationTotalRewardsRequest): unknown; - fromPartial(object: Partial<_43.QueryDelegationTotalRewardsRequest>): _43.QueryDelegationTotalRewardsRequest; - fromAmino(object: _43.QueryDelegationTotalRewardsRequestAmino): _43.QueryDelegationTotalRewardsRequest; - toAmino(message: _43.QueryDelegationTotalRewardsRequest): _43.QueryDelegationTotalRewardsRequestAmino; - fromAminoMsg(object: _43.QueryDelegationTotalRewardsRequestAminoMsg): _43.QueryDelegationTotalRewardsRequest; - toAminoMsg(message: _43.QueryDelegationTotalRewardsRequest): _43.QueryDelegationTotalRewardsRequestAminoMsg; - fromProtoMsg(message: _43.QueryDelegationTotalRewardsRequestProtoMsg): _43.QueryDelegationTotalRewardsRequest; - toProto(message: _43.QueryDelegationTotalRewardsRequest): Uint8Array; - toProtoMsg(message: _43.QueryDelegationTotalRewardsRequest): _43.QueryDelegationTotalRewardsRequestProtoMsg; - }; - QueryDelegationTotalRewardsResponse: { - typeUrl: string; - encode(message: _43.QueryDelegationTotalRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegationTotalRewardsResponse; - fromJSON(object: any): _43.QueryDelegationTotalRewardsResponse; - toJSON(message: _43.QueryDelegationTotalRewardsResponse): unknown; - fromPartial(object: Partial<_43.QueryDelegationTotalRewardsResponse>): _43.QueryDelegationTotalRewardsResponse; - fromAmino(object: _43.QueryDelegationTotalRewardsResponseAmino): _43.QueryDelegationTotalRewardsResponse; - toAmino(message: _43.QueryDelegationTotalRewardsResponse): _43.QueryDelegationTotalRewardsResponseAmino; - fromAminoMsg(object: _43.QueryDelegationTotalRewardsResponseAminoMsg): _43.QueryDelegationTotalRewardsResponse; - toAminoMsg(message: _43.QueryDelegationTotalRewardsResponse): _43.QueryDelegationTotalRewardsResponseAminoMsg; - fromProtoMsg(message: _43.QueryDelegationTotalRewardsResponseProtoMsg): _43.QueryDelegationTotalRewardsResponse; - toProto(message: _43.QueryDelegationTotalRewardsResponse): Uint8Array; - toProtoMsg(message: _43.QueryDelegationTotalRewardsResponse): _43.QueryDelegationTotalRewardsResponseProtoMsg; - }; - QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: _43.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorValidatorsRequest; - fromJSON(object: any): _43.QueryDelegatorValidatorsRequest; - toJSON(message: _43.QueryDelegatorValidatorsRequest): unknown; - fromPartial(object: Partial<_43.QueryDelegatorValidatorsRequest>): _43.QueryDelegatorValidatorsRequest; - fromAmino(object: _43.QueryDelegatorValidatorsRequestAmino): _43.QueryDelegatorValidatorsRequest; - toAmino(message: _43.QueryDelegatorValidatorsRequest): _43.QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: _43.QueryDelegatorValidatorsRequestAminoMsg): _43.QueryDelegatorValidatorsRequest; - toAminoMsg(message: _43.QueryDelegatorValidatorsRequest): _43.QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: _43.QueryDelegatorValidatorsRequestProtoMsg): _43.QueryDelegatorValidatorsRequest; - toProto(message: _43.QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: _43.QueryDelegatorValidatorsRequest): _43.QueryDelegatorValidatorsRequestProtoMsg; - }; - QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: _43.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorValidatorsResponse; - fromJSON(object: any): _43.QueryDelegatorValidatorsResponse; - toJSON(message: _43.QueryDelegatorValidatorsResponse): unknown; - fromPartial(object: Partial<_43.QueryDelegatorValidatorsResponse>): _43.QueryDelegatorValidatorsResponse; - fromAmino(object: _43.QueryDelegatorValidatorsResponseAmino): _43.QueryDelegatorValidatorsResponse; - toAmino(message: _43.QueryDelegatorValidatorsResponse): _43.QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: _43.QueryDelegatorValidatorsResponseAminoMsg): _43.QueryDelegatorValidatorsResponse; - toAminoMsg(message: _43.QueryDelegatorValidatorsResponse): _43.QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: _43.QueryDelegatorValidatorsResponseProtoMsg): _43.QueryDelegatorValidatorsResponse; - toProto(message: _43.QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: _43.QueryDelegatorValidatorsResponse): _43.QueryDelegatorValidatorsResponseProtoMsg; - }; - QueryDelegatorWithdrawAddressRequest: { - typeUrl: string; - encode(message: _43.QueryDelegatorWithdrawAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressRequest; - fromJSON(object: any): _43.QueryDelegatorWithdrawAddressRequest; - toJSON(message: _43.QueryDelegatorWithdrawAddressRequest): unknown; - fromPartial(object: Partial<_43.QueryDelegatorWithdrawAddressRequest>): _43.QueryDelegatorWithdrawAddressRequest; - fromAmino(object: _43.QueryDelegatorWithdrawAddressRequestAmino): _43.QueryDelegatorWithdrawAddressRequest; - toAmino(message: _43.QueryDelegatorWithdrawAddressRequest): _43.QueryDelegatorWithdrawAddressRequestAmino; - fromAminoMsg(object: _43.QueryDelegatorWithdrawAddressRequestAminoMsg): _43.QueryDelegatorWithdrawAddressRequest; - toAminoMsg(message: _43.QueryDelegatorWithdrawAddressRequest): _43.QueryDelegatorWithdrawAddressRequestAminoMsg; - fromProtoMsg(message: _43.QueryDelegatorWithdrawAddressRequestProtoMsg): _43.QueryDelegatorWithdrawAddressRequest; - toProto(message: _43.QueryDelegatorWithdrawAddressRequest): Uint8Array; - toProtoMsg(message: _43.QueryDelegatorWithdrawAddressRequest): _43.QueryDelegatorWithdrawAddressRequestProtoMsg; - }; - QueryDelegatorWithdrawAddressResponse: { - typeUrl: string; - encode(message: _43.QueryDelegatorWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryDelegatorWithdrawAddressResponse; - fromJSON(object: any): _43.QueryDelegatorWithdrawAddressResponse; - toJSON(message: _43.QueryDelegatorWithdrawAddressResponse): unknown; - fromPartial(object: Partial<_43.QueryDelegatorWithdrawAddressResponse>): _43.QueryDelegatorWithdrawAddressResponse; - fromAmino(object: _43.QueryDelegatorWithdrawAddressResponseAmino): _43.QueryDelegatorWithdrawAddressResponse; - toAmino(message: _43.QueryDelegatorWithdrawAddressResponse): _43.QueryDelegatorWithdrawAddressResponseAmino; - fromAminoMsg(object: _43.QueryDelegatorWithdrawAddressResponseAminoMsg): _43.QueryDelegatorWithdrawAddressResponse; - toAminoMsg(message: _43.QueryDelegatorWithdrawAddressResponse): _43.QueryDelegatorWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: _43.QueryDelegatorWithdrawAddressResponseProtoMsg): _43.QueryDelegatorWithdrawAddressResponse; - toProto(message: _43.QueryDelegatorWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: _43.QueryDelegatorWithdrawAddressResponse): _43.QueryDelegatorWithdrawAddressResponseProtoMsg; - }; - QueryCommunityPoolRequest: { - typeUrl: string; - encode(_: _43.QueryCommunityPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryCommunityPoolRequest; - fromJSON(_: any): _43.QueryCommunityPoolRequest; - toJSON(_: _43.QueryCommunityPoolRequest): unknown; - fromPartial(_: Partial<_43.QueryCommunityPoolRequest>): _43.QueryCommunityPoolRequest; - fromAmino(_: _43.QueryCommunityPoolRequestAmino): _43.QueryCommunityPoolRequest; - toAmino(_: _43.QueryCommunityPoolRequest): _43.QueryCommunityPoolRequestAmino; - fromAminoMsg(object: _43.QueryCommunityPoolRequestAminoMsg): _43.QueryCommunityPoolRequest; - toAminoMsg(message: _43.QueryCommunityPoolRequest): _43.QueryCommunityPoolRequestAminoMsg; - fromProtoMsg(message: _43.QueryCommunityPoolRequestProtoMsg): _43.QueryCommunityPoolRequest; - toProto(message: _43.QueryCommunityPoolRequest): Uint8Array; - toProtoMsg(message: _43.QueryCommunityPoolRequest): _43.QueryCommunityPoolRequestProtoMsg; - }; - QueryCommunityPoolResponse: { - typeUrl: string; - encode(message: _43.QueryCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _43.QueryCommunityPoolResponse; - fromJSON(object: any): _43.QueryCommunityPoolResponse; - toJSON(message: _43.QueryCommunityPoolResponse): unknown; - fromPartial(object: Partial<_43.QueryCommunityPoolResponse>): _43.QueryCommunityPoolResponse; - fromAmino(object: _43.QueryCommunityPoolResponseAmino): _43.QueryCommunityPoolResponse; - toAmino(message: _43.QueryCommunityPoolResponse): _43.QueryCommunityPoolResponseAmino; - fromAminoMsg(object: _43.QueryCommunityPoolResponseAminoMsg): _43.QueryCommunityPoolResponse; - toAminoMsg(message: _43.QueryCommunityPoolResponse): _43.QueryCommunityPoolResponseAminoMsg; - fromProtoMsg(message: _43.QueryCommunityPoolResponseProtoMsg): _43.QueryCommunityPoolResponse; - toProto(message: _43.QueryCommunityPoolResponse): Uint8Array; - toProtoMsg(message: _43.QueryCommunityPoolResponse): _43.QueryCommunityPoolResponseProtoMsg; - }; - DelegatorWithdrawInfo: { - typeUrl: string; - encode(message: _42.DelegatorWithdrawInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.DelegatorWithdrawInfo; - fromJSON(object: any): _42.DelegatorWithdrawInfo; - toJSON(message: _42.DelegatorWithdrawInfo): unknown; - fromPartial(object: Partial<_42.DelegatorWithdrawInfo>): _42.DelegatorWithdrawInfo; - fromAmino(object: _42.DelegatorWithdrawInfoAmino): _42.DelegatorWithdrawInfo; - toAmino(message: _42.DelegatorWithdrawInfo): _42.DelegatorWithdrawInfoAmino; - fromAminoMsg(object: _42.DelegatorWithdrawInfoAminoMsg): _42.DelegatorWithdrawInfo; - toAminoMsg(message: _42.DelegatorWithdrawInfo): _42.DelegatorWithdrawInfoAminoMsg; - fromProtoMsg(message: _42.DelegatorWithdrawInfoProtoMsg): _42.DelegatorWithdrawInfo; - toProto(message: _42.DelegatorWithdrawInfo): Uint8Array; - toProtoMsg(message: _42.DelegatorWithdrawInfo): _42.DelegatorWithdrawInfoProtoMsg; - }; - ValidatorOutstandingRewardsRecord: { - typeUrl: string; - encode(message: _42.ValidatorOutstandingRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorOutstandingRewardsRecord; - fromJSON(object: any): _42.ValidatorOutstandingRewardsRecord; - toJSON(message: _42.ValidatorOutstandingRewardsRecord): unknown; - fromPartial(object: Partial<_42.ValidatorOutstandingRewardsRecord>): _42.ValidatorOutstandingRewardsRecord; - fromAmino(object: _42.ValidatorOutstandingRewardsRecordAmino): _42.ValidatorOutstandingRewardsRecord; - toAmino(message: _42.ValidatorOutstandingRewardsRecord): _42.ValidatorOutstandingRewardsRecordAmino; - fromAminoMsg(object: _42.ValidatorOutstandingRewardsRecordAminoMsg): _42.ValidatorOutstandingRewardsRecord; - toAminoMsg(message: _42.ValidatorOutstandingRewardsRecord): _42.ValidatorOutstandingRewardsRecordAminoMsg; - fromProtoMsg(message: _42.ValidatorOutstandingRewardsRecordProtoMsg): _42.ValidatorOutstandingRewardsRecord; - toProto(message: _42.ValidatorOutstandingRewardsRecord): Uint8Array; - toProtoMsg(message: _42.ValidatorOutstandingRewardsRecord): _42.ValidatorOutstandingRewardsRecordProtoMsg; - }; - ValidatorAccumulatedCommissionRecord: { - typeUrl: string; - encode(message: _42.ValidatorAccumulatedCommissionRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorAccumulatedCommissionRecord; - fromJSON(object: any): _42.ValidatorAccumulatedCommissionRecord; - toJSON(message: _42.ValidatorAccumulatedCommissionRecord): unknown; - fromPartial(object: Partial<_42.ValidatorAccumulatedCommissionRecord>): _42.ValidatorAccumulatedCommissionRecord; - fromAmino(object: _42.ValidatorAccumulatedCommissionRecordAmino): _42.ValidatorAccumulatedCommissionRecord; - toAmino(message: _42.ValidatorAccumulatedCommissionRecord): _42.ValidatorAccumulatedCommissionRecordAmino; - fromAminoMsg(object: _42.ValidatorAccumulatedCommissionRecordAminoMsg): _42.ValidatorAccumulatedCommissionRecord; - toAminoMsg(message: _42.ValidatorAccumulatedCommissionRecord): _42.ValidatorAccumulatedCommissionRecordAminoMsg; - fromProtoMsg(message: _42.ValidatorAccumulatedCommissionRecordProtoMsg): _42.ValidatorAccumulatedCommissionRecord; - toProto(message: _42.ValidatorAccumulatedCommissionRecord): Uint8Array; - toProtoMsg(message: _42.ValidatorAccumulatedCommissionRecord): _42.ValidatorAccumulatedCommissionRecordProtoMsg; - }; - ValidatorHistoricalRewardsRecord: { - typeUrl: string; - encode(message: _42.ValidatorHistoricalRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorHistoricalRewardsRecord; - fromJSON(object: any): _42.ValidatorHistoricalRewardsRecord; - toJSON(message: _42.ValidatorHistoricalRewardsRecord): unknown; - fromPartial(object: Partial<_42.ValidatorHistoricalRewardsRecord>): _42.ValidatorHistoricalRewardsRecord; - fromAmino(object: _42.ValidatorHistoricalRewardsRecordAmino): _42.ValidatorHistoricalRewardsRecord; - toAmino(message: _42.ValidatorHistoricalRewardsRecord): _42.ValidatorHistoricalRewardsRecordAmino; - fromAminoMsg(object: _42.ValidatorHistoricalRewardsRecordAminoMsg): _42.ValidatorHistoricalRewardsRecord; - toAminoMsg(message: _42.ValidatorHistoricalRewardsRecord): _42.ValidatorHistoricalRewardsRecordAminoMsg; - fromProtoMsg(message: _42.ValidatorHistoricalRewardsRecordProtoMsg): _42.ValidatorHistoricalRewardsRecord; - toProto(message: _42.ValidatorHistoricalRewardsRecord): Uint8Array; - toProtoMsg(message: _42.ValidatorHistoricalRewardsRecord): _42.ValidatorHistoricalRewardsRecordProtoMsg; - }; - ValidatorCurrentRewardsRecord: { - typeUrl: string; - encode(message: _42.ValidatorCurrentRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorCurrentRewardsRecord; - fromJSON(object: any): _42.ValidatorCurrentRewardsRecord; - toJSON(message: _42.ValidatorCurrentRewardsRecord): unknown; - fromPartial(object: Partial<_42.ValidatorCurrentRewardsRecord>): _42.ValidatorCurrentRewardsRecord; - fromAmino(object: _42.ValidatorCurrentRewardsRecordAmino): _42.ValidatorCurrentRewardsRecord; - toAmino(message: _42.ValidatorCurrentRewardsRecord): _42.ValidatorCurrentRewardsRecordAmino; - fromAminoMsg(object: _42.ValidatorCurrentRewardsRecordAminoMsg): _42.ValidatorCurrentRewardsRecord; - toAminoMsg(message: _42.ValidatorCurrentRewardsRecord): _42.ValidatorCurrentRewardsRecordAminoMsg; - fromProtoMsg(message: _42.ValidatorCurrentRewardsRecordProtoMsg): _42.ValidatorCurrentRewardsRecord; - toProto(message: _42.ValidatorCurrentRewardsRecord): Uint8Array; - toProtoMsg(message: _42.ValidatorCurrentRewardsRecord): _42.ValidatorCurrentRewardsRecordProtoMsg; - }; - DelegatorStartingInfoRecord: { - typeUrl: string; - encode(message: _42.DelegatorStartingInfoRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.DelegatorStartingInfoRecord; - fromJSON(object: any): _42.DelegatorStartingInfoRecord; - toJSON(message: _42.DelegatorStartingInfoRecord): unknown; - fromPartial(object: Partial<_42.DelegatorStartingInfoRecord>): _42.DelegatorStartingInfoRecord; - fromAmino(object: _42.DelegatorStartingInfoRecordAmino): _42.DelegatorStartingInfoRecord; - toAmino(message: _42.DelegatorStartingInfoRecord): _42.DelegatorStartingInfoRecordAmino; - fromAminoMsg(object: _42.DelegatorStartingInfoRecordAminoMsg): _42.DelegatorStartingInfoRecord; - toAminoMsg(message: _42.DelegatorStartingInfoRecord): _42.DelegatorStartingInfoRecordAminoMsg; - fromProtoMsg(message: _42.DelegatorStartingInfoRecordProtoMsg): _42.DelegatorStartingInfoRecord; - toProto(message: _42.DelegatorStartingInfoRecord): Uint8Array; - toProtoMsg(message: _42.DelegatorStartingInfoRecord): _42.DelegatorStartingInfoRecordProtoMsg; - }; - ValidatorSlashEventRecord: { - typeUrl: string; - encode(message: _42.ValidatorSlashEventRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.ValidatorSlashEventRecord; - fromJSON(object: any): _42.ValidatorSlashEventRecord; - toJSON(message: _42.ValidatorSlashEventRecord): unknown; - fromPartial(object: Partial<_42.ValidatorSlashEventRecord>): _42.ValidatorSlashEventRecord; - fromAmino(object: _42.ValidatorSlashEventRecordAmino): _42.ValidatorSlashEventRecord; - toAmino(message: _42.ValidatorSlashEventRecord): _42.ValidatorSlashEventRecordAmino; - fromAminoMsg(object: _42.ValidatorSlashEventRecordAminoMsg): _42.ValidatorSlashEventRecord; - toAminoMsg(message: _42.ValidatorSlashEventRecord): _42.ValidatorSlashEventRecordAminoMsg; - fromProtoMsg(message: _42.ValidatorSlashEventRecordProtoMsg): _42.ValidatorSlashEventRecord; - toProto(message: _42.ValidatorSlashEventRecord): Uint8Array; - toProtoMsg(message: _42.ValidatorSlashEventRecord): _42.ValidatorSlashEventRecordProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _42.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _42.GenesisState; - fromJSON(object: any): _42.GenesisState; - toJSON(message: _42.GenesisState): unknown; - fromPartial(object: Partial<_42.GenesisState>): _42.GenesisState; - fromAmino(object: _42.GenesisStateAmino): _42.GenesisState; - toAmino(message: _42.GenesisState): _42.GenesisStateAmino; - fromAminoMsg(object: _42.GenesisStateAminoMsg): _42.GenesisState; - toAminoMsg(message: _42.GenesisState): _42.GenesisStateAminoMsg; - fromProtoMsg(message: _42.GenesisStateProtoMsg): _42.GenesisState; - toProto(message: _42.GenesisState): Uint8Array; - toProtoMsg(message: _42.GenesisState): _42.GenesisStateProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _41.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.Params; - fromJSON(object: any): _41.Params; - toJSON(message: _41.Params): unknown; - fromPartial(object: Partial<_41.Params>): _41.Params; - fromAmino(object: _41.ParamsAmino): _41.Params; - toAmino(message: _41.Params): _41.ParamsAmino; - fromAminoMsg(object: _41.ParamsAminoMsg): _41.Params; - toAminoMsg(message: _41.Params): _41.ParamsAminoMsg; - fromProtoMsg(message: _41.ParamsProtoMsg): _41.Params; - toProto(message: _41.Params): Uint8Array; - toProtoMsg(message: _41.Params): _41.ParamsProtoMsg; - }; - ValidatorHistoricalRewards: { - typeUrl: string; - encode(message: _41.ValidatorHistoricalRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorHistoricalRewards; - fromJSON(object: any): _41.ValidatorHistoricalRewards; - toJSON(message: _41.ValidatorHistoricalRewards): unknown; - fromPartial(object: Partial<_41.ValidatorHistoricalRewards>): _41.ValidatorHistoricalRewards; - fromAmino(object: _41.ValidatorHistoricalRewardsAmino): _41.ValidatorHistoricalRewards; - toAmino(message: _41.ValidatorHistoricalRewards): _41.ValidatorHistoricalRewardsAmino; - fromAminoMsg(object: _41.ValidatorHistoricalRewardsAminoMsg): _41.ValidatorHistoricalRewards; - toAminoMsg(message: _41.ValidatorHistoricalRewards): _41.ValidatorHistoricalRewardsAminoMsg; - fromProtoMsg(message: _41.ValidatorHistoricalRewardsProtoMsg): _41.ValidatorHistoricalRewards; - toProto(message: _41.ValidatorHistoricalRewards): Uint8Array; - toProtoMsg(message: _41.ValidatorHistoricalRewards): _41.ValidatorHistoricalRewardsProtoMsg; - }; - ValidatorCurrentRewards: { - typeUrl: string; - encode(message: _41.ValidatorCurrentRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorCurrentRewards; - fromJSON(object: any): _41.ValidatorCurrentRewards; - toJSON(message: _41.ValidatorCurrentRewards): unknown; - fromPartial(object: Partial<_41.ValidatorCurrentRewards>): _41.ValidatorCurrentRewards; - fromAmino(object: _41.ValidatorCurrentRewardsAmino): _41.ValidatorCurrentRewards; - toAmino(message: _41.ValidatorCurrentRewards): _41.ValidatorCurrentRewardsAmino; - fromAminoMsg(object: _41.ValidatorCurrentRewardsAminoMsg): _41.ValidatorCurrentRewards; - toAminoMsg(message: _41.ValidatorCurrentRewards): _41.ValidatorCurrentRewardsAminoMsg; - fromProtoMsg(message: _41.ValidatorCurrentRewardsProtoMsg): _41.ValidatorCurrentRewards; - toProto(message: _41.ValidatorCurrentRewards): Uint8Array; - toProtoMsg(message: _41.ValidatorCurrentRewards): _41.ValidatorCurrentRewardsProtoMsg; - }; - ValidatorAccumulatedCommission: { - typeUrl: string; - encode(message: _41.ValidatorAccumulatedCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorAccumulatedCommission; - fromJSON(object: any): _41.ValidatorAccumulatedCommission; - toJSON(message: _41.ValidatorAccumulatedCommission): unknown; - fromPartial(object: Partial<_41.ValidatorAccumulatedCommission>): _41.ValidatorAccumulatedCommission; - fromAmino(object: _41.ValidatorAccumulatedCommissionAmino): _41.ValidatorAccumulatedCommission; - toAmino(message: _41.ValidatorAccumulatedCommission): _41.ValidatorAccumulatedCommissionAmino; - fromAminoMsg(object: _41.ValidatorAccumulatedCommissionAminoMsg): _41.ValidatorAccumulatedCommission; - toAminoMsg(message: _41.ValidatorAccumulatedCommission): _41.ValidatorAccumulatedCommissionAminoMsg; - fromProtoMsg(message: _41.ValidatorAccumulatedCommissionProtoMsg): _41.ValidatorAccumulatedCommission; - toProto(message: _41.ValidatorAccumulatedCommission): Uint8Array; - toProtoMsg(message: _41.ValidatorAccumulatedCommission): _41.ValidatorAccumulatedCommissionProtoMsg; - }; - ValidatorOutstandingRewards: { - typeUrl: string; - encode(message: _41.ValidatorOutstandingRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorOutstandingRewards; - fromJSON(object: any): _41.ValidatorOutstandingRewards; - toJSON(message: _41.ValidatorOutstandingRewards): unknown; - fromPartial(object: Partial<_41.ValidatorOutstandingRewards>): _41.ValidatorOutstandingRewards; - fromAmino(object: _41.ValidatorOutstandingRewardsAmino): _41.ValidatorOutstandingRewards; - toAmino(message: _41.ValidatorOutstandingRewards): _41.ValidatorOutstandingRewardsAmino; - fromAminoMsg(object: _41.ValidatorOutstandingRewardsAminoMsg): _41.ValidatorOutstandingRewards; - toAminoMsg(message: _41.ValidatorOutstandingRewards): _41.ValidatorOutstandingRewardsAminoMsg; - fromProtoMsg(message: _41.ValidatorOutstandingRewardsProtoMsg): _41.ValidatorOutstandingRewards; - toProto(message: _41.ValidatorOutstandingRewards): Uint8Array; - toProtoMsg(message: _41.ValidatorOutstandingRewards): _41.ValidatorOutstandingRewardsProtoMsg; - }; - ValidatorSlashEvent: { - typeUrl: string; - encode(message: _41.ValidatorSlashEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorSlashEvent; - fromJSON(object: any): _41.ValidatorSlashEvent; - toJSON(message: _41.ValidatorSlashEvent): unknown; - fromPartial(object: Partial<_41.ValidatorSlashEvent>): _41.ValidatorSlashEvent; - fromAmino(object: _41.ValidatorSlashEventAmino): _41.ValidatorSlashEvent; - toAmino(message: _41.ValidatorSlashEvent): _41.ValidatorSlashEventAmino; - fromAminoMsg(object: _41.ValidatorSlashEventAminoMsg): _41.ValidatorSlashEvent; - toAminoMsg(message: _41.ValidatorSlashEvent): _41.ValidatorSlashEventAminoMsg; - fromProtoMsg(message: _41.ValidatorSlashEventProtoMsg): _41.ValidatorSlashEvent; - toProto(message: _41.ValidatorSlashEvent): Uint8Array; - toProtoMsg(message: _41.ValidatorSlashEvent): _41.ValidatorSlashEventProtoMsg; - }; - ValidatorSlashEvents: { - typeUrl: string; - encode(message: _41.ValidatorSlashEvents, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.ValidatorSlashEvents; - fromJSON(object: any): _41.ValidatorSlashEvents; - toJSON(message: _41.ValidatorSlashEvents): unknown; - fromPartial(object: Partial<_41.ValidatorSlashEvents>): _41.ValidatorSlashEvents; - fromAmino(object: _41.ValidatorSlashEventsAmino): _41.ValidatorSlashEvents; - toAmino(message: _41.ValidatorSlashEvents): _41.ValidatorSlashEventsAmino; - fromAminoMsg(object: _41.ValidatorSlashEventsAminoMsg): _41.ValidatorSlashEvents; - toAminoMsg(message: _41.ValidatorSlashEvents): _41.ValidatorSlashEventsAminoMsg; - fromProtoMsg(message: _41.ValidatorSlashEventsProtoMsg): _41.ValidatorSlashEvents; - toProto(message: _41.ValidatorSlashEvents): Uint8Array; - toProtoMsg(message: _41.ValidatorSlashEvents): _41.ValidatorSlashEventsProtoMsg; - }; - FeePool: { - typeUrl: string; - encode(message: _41.FeePool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.FeePool; - fromJSON(object: any): _41.FeePool; - toJSON(message: _41.FeePool): unknown; - fromPartial(object: Partial<_41.FeePool>): _41.FeePool; - fromAmino(object: _41.FeePoolAmino): _41.FeePool; - toAmino(message: _41.FeePool): _41.FeePoolAmino; - fromAminoMsg(object: _41.FeePoolAminoMsg): _41.FeePool; - toAminoMsg(message: _41.FeePool): _41.FeePoolAminoMsg; - fromProtoMsg(message: _41.FeePoolProtoMsg): _41.FeePool; - toProto(message: _41.FeePool): Uint8Array; - toProtoMsg(message: _41.FeePool): _41.FeePoolProtoMsg; - }; - CommunityPoolSpendProposal: { - typeUrl: string; - encode(message: _41.CommunityPoolSpendProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.CommunityPoolSpendProposal; - fromJSON(object: any): _41.CommunityPoolSpendProposal; - toJSON(message: _41.CommunityPoolSpendProposal): unknown; - fromPartial(object: Partial<_41.CommunityPoolSpendProposal>): _41.CommunityPoolSpendProposal; - fromAmino(object: _41.CommunityPoolSpendProposalAmino): _41.CommunityPoolSpendProposal; - toAmino(message: _41.CommunityPoolSpendProposal): _41.CommunityPoolSpendProposalAmino; - fromAminoMsg(object: _41.CommunityPoolSpendProposalAminoMsg): _41.CommunityPoolSpendProposal; - toAminoMsg(message: _41.CommunityPoolSpendProposal): _41.CommunityPoolSpendProposalAminoMsg; - fromProtoMsg(message: _41.CommunityPoolSpendProposalProtoMsg): _41.CommunityPoolSpendProposal; - toProto(message: _41.CommunityPoolSpendProposal): Uint8Array; - toProtoMsg(message: _41.CommunityPoolSpendProposal): _41.CommunityPoolSpendProposalProtoMsg; - }; - DelegatorStartingInfo: { - typeUrl: string; - encode(message: _41.DelegatorStartingInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.DelegatorStartingInfo; - fromJSON(object: any): _41.DelegatorStartingInfo; - toJSON(message: _41.DelegatorStartingInfo): unknown; - fromPartial(object: Partial<_41.DelegatorStartingInfo>): _41.DelegatorStartingInfo; - fromAmino(object: _41.DelegatorStartingInfoAmino): _41.DelegatorStartingInfo; - toAmino(message: _41.DelegatorStartingInfo): _41.DelegatorStartingInfoAmino; - fromAminoMsg(object: _41.DelegatorStartingInfoAminoMsg): _41.DelegatorStartingInfo; - toAminoMsg(message: _41.DelegatorStartingInfo): _41.DelegatorStartingInfoAminoMsg; - fromProtoMsg(message: _41.DelegatorStartingInfoProtoMsg): _41.DelegatorStartingInfo; - toProto(message: _41.DelegatorStartingInfo): Uint8Array; - toProtoMsg(message: _41.DelegatorStartingInfo): _41.DelegatorStartingInfoProtoMsg; - }; - DelegationDelegatorReward: { - typeUrl: string; - encode(message: _41.DelegationDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.DelegationDelegatorReward; - fromJSON(object: any): _41.DelegationDelegatorReward; - toJSON(message: _41.DelegationDelegatorReward): unknown; - fromPartial(object: Partial<_41.DelegationDelegatorReward>): _41.DelegationDelegatorReward; - fromAmino(object: _41.DelegationDelegatorRewardAmino): _41.DelegationDelegatorReward; - toAmino(message: _41.DelegationDelegatorReward): _41.DelegationDelegatorRewardAmino; - fromAminoMsg(object: _41.DelegationDelegatorRewardAminoMsg): _41.DelegationDelegatorReward; - toAminoMsg(message: _41.DelegationDelegatorReward): _41.DelegationDelegatorRewardAminoMsg; - fromProtoMsg(message: _41.DelegationDelegatorRewardProtoMsg): _41.DelegationDelegatorReward; - toProto(message: _41.DelegationDelegatorReward): Uint8Array; - toProtoMsg(message: _41.DelegationDelegatorReward): _41.DelegationDelegatorRewardProtoMsg; - }; - CommunityPoolSpendProposalWithDeposit: { - typeUrl: string; - encode(message: _41.CommunityPoolSpendProposalWithDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _41.CommunityPoolSpendProposalWithDeposit; - fromJSON(object: any): _41.CommunityPoolSpendProposalWithDeposit; - toJSON(message: _41.CommunityPoolSpendProposalWithDeposit): unknown; - fromPartial(object: Partial<_41.CommunityPoolSpendProposalWithDeposit>): _41.CommunityPoolSpendProposalWithDeposit; - fromAmino(object: _41.CommunityPoolSpendProposalWithDepositAmino): _41.CommunityPoolSpendProposalWithDeposit; - toAmino(message: _41.CommunityPoolSpendProposalWithDeposit): _41.CommunityPoolSpendProposalWithDepositAmino; - fromAminoMsg(object: _41.CommunityPoolSpendProposalWithDepositAminoMsg): _41.CommunityPoolSpendProposalWithDeposit; - toAminoMsg(message: _41.CommunityPoolSpendProposalWithDeposit): _41.CommunityPoolSpendProposalWithDepositAminoMsg; - fromProtoMsg(message: _41.CommunityPoolSpendProposalWithDepositProtoMsg): _41.CommunityPoolSpendProposalWithDeposit; - toProto(message: _41.CommunityPoolSpendProposalWithDeposit): Uint8Array; - toProtoMsg(message: _41.CommunityPoolSpendProposalWithDeposit): _41.CommunityPoolSpendProposalWithDepositProtoMsg; - }; - }; - } - namespace evidence { - const v1beta1: { - MsgClientImpl: typeof _221.MsgClientImpl; - QueryClientImpl: typeof _205.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - evidence(request: _47.QueryEvidenceRequest): Promise<_47.QueryEvidenceResponse>; - allEvidence(request?: _47.QueryAllEvidenceRequest | undefined): Promise<_47.QueryAllEvidenceResponse>; - }; - LCDQueryClient: typeof _186.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitEvidence(value: _48.MsgSubmitEvidence): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitEvidence(value: _48.MsgSubmitEvidence): { - typeUrl: string; - value: _48.MsgSubmitEvidence; - }; - }; - toJSON: { - submitEvidence(value: _48.MsgSubmitEvidence): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitEvidence(value: any): { - typeUrl: string; - value: _48.MsgSubmitEvidence; - }; - }; - fromPartial: { - submitEvidence(value: _48.MsgSubmitEvidence): { - typeUrl: string; - value: _48.MsgSubmitEvidence; - }; - }; - }; - AminoConverter: { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: (message: _48.MsgSubmitEvidence) => _48.MsgSubmitEvidenceAmino; - fromAmino: (object: _48.MsgSubmitEvidenceAmino) => _48.MsgSubmitEvidence; - }; - }; - MsgSubmitEvidence: { - typeUrl: string; - encode(message: _48.MsgSubmitEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _48.MsgSubmitEvidence; - fromJSON(object: any): _48.MsgSubmitEvidence; - toJSON(message: _48.MsgSubmitEvidence): unknown; - fromPartial(object: Partial<_48.MsgSubmitEvidence>): _48.MsgSubmitEvidence; - fromAmino(object: _48.MsgSubmitEvidenceAmino): _48.MsgSubmitEvidence; - toAmino(message: _48.MsgSubmitEvidence): _48.MsgSubmitEvidenceAmino; - fromAminoMsg(object: _48.MsgSubmitEvidenceAminoMsg): _48.MsgSubmitEvidence; - toAminoMsg(message: _48.MsgSubmitEvidence): _48.MsgSubmitEvidenceAminoMsg; - fromProtoMsg(message: _48.MsgSubmitEvidenceProtoMsg): _48.MsgSubmitEvidence; - toProto(message: _48.MsgSubmitEvidence): Uint8Array; - toProtoMsg(message: _48.MsgSubmitEvidence): _48.MsgSubmitEvidenceProtoMsg; - }; - MsgSubmitEvidenceResponse: { - typeUrl: string; - encode(message: _48.MsgSubmitEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _48.MsgSubmitEvidenceResponse; - fromJSON(object: any): _48.MsgSubmitEvidenceResponse; - toJSON(message: _48.MsgSubmitEvidenceResponse): unknown; - fromPartial(object: Partial<_48.MsgSubmitEvidenceResponse>): _48.MsgSubmitEvidenceResponse; - fromAmino(object: _48.MsgSubmitEvidenceResponseAmino): _48.MsgSubmitEvidenceResponse; - toAmino(message: _48.MsgSubmitEvidenceResponse): _48.MsgSubmitEvidenceResponseAmino; - fromAminoMsg(object: _48.MsgSubmitEvidenceResponseAminoMsg): _48.MsgSubmitEvidenceResponse; - toAminoMsg(message: _48.MsgSubmitEvidenceResponse): _48.MsgSubmitEvidenceResponseAminoMsg; - fromProtoMsg(message: _48.MsgSubmitEvidenceResponseProtoMsg): _48.MsgSubmitEvidenceResponse; - toProto(message: _48.MsgSubmitEvidenceResponse): Uint8Array; - toProtoMsg(message: _48.MsgSubmitEvidenceResponse): _48.MsgSubmitEvidenceResponseProtoMsg; - }; - Evidence_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Evidence_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Evidence_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryEvidenceRequest: { - typeUrl: string; - encode(message: _47.QueryEvidenceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryEvidenceRequest; - fromJSON(object: any): _47.QueryEvidenceRequest; - toJSON(message: _47.QueryEvidenceRequest): unknown; - fromPartial(object: Partial<_47.QueryEvidenceRequest>): _47.QueryEvidenceRequest; - fromAmino(object: _47.QueryEvidenceRequestAmino): _47.QueryEvidenceRequest; - toAmino(message: _47.QueryEvidenceRequest): _47.QueryEvidenceRequestAmino; - fromAminoMsg(object: _47.QueryEvidenceRequestAminoMsg): _47.QueryEvidenceRequest; - toAminoMsg(message: _47.QueryEvidenceRequest): _47.QueryEvidenceRequestAminoMsg; - fromProtoMsg(message: _47.QueryEvidenceRequestProtoMsg): _47.QueryEvidenceRequest; - toProto(message: _47.QueryEvidenceRequest): Uint8Array; - toProtoMsg(message: _47.QueryEvidenceRequest): _47.QueryEvidenceRequestProtoMsg; - }; - QueryEvidenceResponse: { - typeUrl: string; - encode(message: _47.QueryEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryEvidenceResponse; - fromJSON(object: any): _47.QueryEvidenceResponse; - toJSON(message: _47.QueryEvidenceResponse): unknown; - fromPartial(object: Partial<_47.QueryEvidenceResponse>): _47.QueryEvidenceResponse; - fromAmino(object: _47.QueryEvidenceResponseAmino): _47.QueryEvidenceResponse; - toAmino(message: _47.QueryEvidenceResponse): _47.QueryEvidenceResponseAmino; - fromAminoMsg(object: _47.QueryEvidenceResponseAminoMsg): _47.QueryEvidenceResponse; - toAminoMsg(message: _47.QueryEvidenceResponse): _47.QueryEvidenceResponseAminoMsg; - fromProtoMsg(message: _47.QueryEvidenceResponseProtoMsg): _47.QueryEvidenceResponse; - toProto(message: _47.QueryEvidenceResponse): Uint8Array; - toProtoMsg(message: _47.QueryEvidenceResponse): _47.QueryEvidenceResponseProtoMsg; - }; - QueryAllEvidenceRequest: { - typeUrl: string; - encode(message: _47.QueryAllEvidenceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryAllEvidenceRequest; - fromJSON(object: any): _47.QueryAllEvidenceRequest; - toJSON(message: _47.QueryAllEvidenceRequest): unknown; - fromPartial(object: Partial<_47.QueryAllEvidenceRequest>): _47.QueryAllEvidenceRequest; - fromAmino(object: _47.QueryAllEvidenceRequestAmino): _47.QueryAllEvidenceRequest; - toAmino(message: _47.QueryAllEvidenceRequest): _47.QueryAllEvidenceRequestAmino; - fromAminoMsg(object: _47.QueryAllEvidenceRequestAminoMsg): _47.QueryAllEvidenceRequest; - toAminoMsg(message: _47.QueryAllEvidenceRequest): _47.QueryAllEvidenceRequestAminoMsg; - fromProtoMsg(message: _47.QueryAllEvidenceRequestProtoMsg): _47.QueryAllEvidenceRequest; - toProto(message: _47.QueryAllEvidenceRequest): Uint8Array; - toProtoMsg(message: _47.QueryAllEvidenceRequest): _47.QueryAllEvidenceRequestProtoMsg; - }; - QueryAllEvidenceResponse: { - typeUrl: string; - encode(message: _47.QueryAllEvidenceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _47.QueryAllEvidenceResponse; - fromJSON(object: any): _47.QueryAllEvidenceResponse; - toJSON(message: _47.QueryAllEvidenceResponse): unknown; - fromPartial(object: Partial<_47.QueryAllEvidenceResponse>): _47.QueryAllEvidenceResponse; - fromAmino(object: _47.QueryAllEvidenceResponseAmino): _47.QueryAllEvidenceResponse; - toAmino(message: _47.QueryAllEvidenceResponse): _47.QueryAllEvidenceResponseAmino; - fromAminoMsg(object: _47.QueryAllEvidenceResponseAminoMsg): _47.QueryAllEvidenceResponse; - toAminoMsg(message: _47.QueryAllEvidenceResponse): _47.QueryAllEvidenceResponseAminoMsg; - fromProtoMsg(message: _47.QueryAllEvidenceResponseProtoMsg): _47.QueryAllEvidenceResponse; - toProto(message: _47.QueryAllEvidenceResponse): Uint8Array; - toProtoMsg(message: _47.QueryAllEvidenceResponse): _47.QueryAllEvidenceResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _46.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _46.GenesisState; - fromJSON(object: any): _46.GenesisState; - toJSON(message: _46.GenesisState): unknown; - fromPartial(object: Partial<_46.GenesisState>): _46.GenesisState; - fromAmino(object: _46.GenesisStateAmino): _46.GenesisState; - toAmino(message: _46.GenesisState): _46.GenesisStateAmino; - fromAminoMsg(object: _46.GenesisStateAminoMsg): _46.GenesisState; - toAminoMsg(message: _46.GenesisState): _46.GenesisStateAminoMsg; - fromProtoMsg(message: _46.GenesisStateProtoMsg): _46.GenesisState; - toProto(message: _46.GenesisState): Uint8Array; - toProtoMsg(message: _46.GenesisState): _46.GenesisStateProtoMsg; - }; - Equivocation: { - typeUrl: string; - encode(message: _45.Equivocation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _45.Equivocation; - fromJSON(object: any): _45.Equivocation; - toJSON(message: _45.Equivocation): unknown; - fromPartial(object: Partial<_45.Equivocation>): _45.Equivocation; - fromAmino(object: _45.EquivocationAmino): _45.Equivocation; - toAmino(message: _45.Equivocation): _45.EquivocationAmino; - fromAminoMsg(object: _45.EquivocationAminoMsg): _45.Equivocation; - toAminoMsg(message: _45.Equivocation): _45.EquivocationAminoMsg; - fromProtoMsg(message: _45.EquivocationProtoMsg): _45.Equivocation; - toProto(message: _45.Equivocation): Uint8Array; - toProtoMsg(message: _45.Equivocation): _45.EquivocationProtoMsg; - }; - }; - } - namespace feegrant { - const v1beta1: { - MsgClientImpl: typeof _222.MsgClientImpl; - QueryClientImpl: typeof _206.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - allowance(request: _51.QueryAllowanceRequest): Promise<_51.QueryAllowanceResponse>; - allowances(request: _51.QueryAllowancesRequest): Promise<_51.QueryAllowancesResponse>; - allowancesByGranter(request: _51.QueryAllowancesByGranterRequest): Promise<_51.QueryAllowancesByGranterResponse>; - }; - LCDQueryClient: typeof _187.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - grantAllowance(value: _52.MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: _52.MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: _52.MsgGrantAllowance): { - typeUrl: string; - value: _52.MsgGrantAllowance; - }; - revokeAllowance(value: _52.MsgRevokeAllowance): { - typeUrl: string; - value: _52.MsgRevokeAllowance; - }; - }; - toJSON: { - grantAllowance(value: _52.MsgGrantAllowance): { - typeUrl: string; - value: unknown; - }; - revokeAllowance(value: _52.MsgRevokeAllowance): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - grantAllowance(value: any): { - typeUrl: string; - value: _52.MsgGrantAllowance; - }; - revokeAllowance(value: any): { - typeUrl: string; - value: _52.MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: _52.MsgGrantAllowance): { - typeUrl: string; - value: _52.MsgGrantAllowance; - }; - revokeAllowance(value: _52.MsgRevokeAllowance): { - typeUrl: string; - value: _52.MsgRevokeAllowance; - }; - }; - }; - AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: _52.MsgGrantAllowance) => _52.MsgGrantAllowanceAmino; - fromAmino: (object: _52.MsgGrantAllowanceAmino) => _52.MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: _52.MsgRevokeAllowance) => _52.MsgRevokeAllowanceAmino; - fromAmino: (object: _52.MsgRevokeAllowanceAmino) => _52.MsgRevokeAllowance; - }; - }; - MsgGrantAllowance: { - typeUrl: string; - encode(message: _52.MsgGrantAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgGrantAllowance; - fromJSON(object: any): _52.MsgGrantAllowance; - toJSON(message: _52.MsgGrantAllowance): unknown; - fromPartial(object: Partial<_52.MsgGrantAllowance>): _52.MsgGrantAllowance; - fromAmino(object: _52.MsgGrantAllowanceAmino): _52.MsgGrantAllowance; - toAmino(message: _52.MsgGrantAllowance): _52.MsgGrantAllowanceAmino; - fromAminoMsg(object: _52.MsgGrantAllowanceAminoMsg): _52.MsgGrantAllowance; - toAminoMsg(message: _52.MsgGrantAllowance): _52.MsgGrantAllowanceAminoMsg; - fromProtoMsg(message: _52.MsgGrantAllowanceProtoMsg): _52.MsgGrantAllowance; - toProto(message: _52.MsgGrantAllowance): Uint8Array; - toProtoMsg(message: _52.MsgGrantAllowance): _52.MsgGrantAllowanceProtoMsg; - }; - MsgGrantAllowanceResponse: { - typeUrl: string; - encode(_: _52.MsgGrantAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgGrantAllowanceResponse; - fromJSON(_: any): _52.MsgGrantAllowanceResponse; - toJSON(_: _52.MsgGrantAllowanceResponse): unknown; - fromPartial(_: Partial<_52.MsgGrantAllowanceResponse>): _52.MsgGrantAllowanceResponse; - fromAmino(_: _52.MsgGrantAllowanceResponseAmino): _52.MsgGrantAllowanceResponse; - toAmino(_: _52.MsgGrantAllowanceResponse): _52.MsgGrantAllowanceResponseAmino; - fromAminoMsg(object: _52.MsgGrantAllowanceResponseAminoMsg): _52.MsgGrantAllowanceResponse; - toAminoMsg(message: _52.MsgGrantAllowanceResponse): _52.MsgGrantAllowanceResponseAminoMsg; - fromProtoMsg(message: _52.MsgGrantAllowanceResponseProtoMsg): _52.MsgGrantAllowanceResponse; - toProto(message: _52.MsgGrantAllowanceResponse): Uint8Array; - toProtoMsg(message: _52.MsgGrantAllowanceResponse): _52.MsgGrantAllowanceResponseProtoMsg; - }; - MsgRevokeAllowance: { - typeUrl: string; - encode(message: _52.MsgRevokeAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgRevokeAllowance; - fromJSON(object: any): _52.MsgRevokeAllowance; - toJSON(message: _52.MsgRevokeAllowance): unknown; - fromPartial(object: Partial<_52.MsgRevokeAllowance>): _52.MsgRevokeAllowance; - fromAmino(object: _52.MsgRevokeAllowanceAmino): _52.MsgRevokeAllowance; - toAmino(message: _52.MsgRevokeAllowance): _52.MsgRevokeAllowanceAmino; - fromAminoMsg(object: _52.MsgRevokeAllowanceAminoMsg): _52.MsgRevokeAllowance; - toAminoMsg(message: _52.MsgRevokeAllowance): _52.MsgRevokeAllowanceAminoMsg; - fromProtoMsg(message: _52.MsgRevokeAllowanceProtoMsg): _52.MsgRevokeAllowance; - toProto(message: _52.MsgRevokeAllowance): Uint8Array; - toProtoMsg(message: _52.MsgRevokeAllowance): _52.MsgRevokeAllowanceProtoMsg; - }; - MsgRevokeAllowanceResponse: { - typeUrl: string; - encode(_: _52.MsgRevokeAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _52.MsgRevokeAllowanceResponse; - fromJSON(_: any): _52.MsgRevokeAllowanceResponse; - toJSON(_: _52.MsgRevokeAllowanceResponse): unknown; - fromPartial(_: Partial<_52.MsgRevokeAllowanceResponse>): _52.MsgRevokeAllowanceResponse; - fromAmino(_: _52.MsgRevokeAllowanceResponseAmino): _52.MsgRevokeAllowanceResponse; - toAmino(_: _52.MsgRevokeAllowanceResponse): _52.MsgRevokeAllowanceResponseAmino; - fromAminoMsg(object: _52.MsgRevokeAllowanceResponseAminoMsg): _52.MsgRevokeAllowanceResponse; - toAminoMsg(message: _52.MsgRevokeAllowanceResponse): _52.MsgRevokeAllowanceResponseAminoMsg; - fromProtoMsg(message: _52.MsgRevokeAllowanceResponseProtoMsg): _52.MsgRevokeAllowanceResponse; - toProto(message: _52.MsgRevokeAllowanceResponse): Uint8Array; - toProtoMsg(message: _52.MsgRevokeAllowanceResponse): _52.MsgRevokeAllowanceResponseProtoMsg; - }; - FeeAllowanceI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _49.BasicAllowance | _49.PeriodicAllowance | _49.AllowedMsgAllowance; - FeeAllowanceI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - FeeAllowanceI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryAllowanceRequest: { - typeUrl: string; - encode(message: _51.QueryAllowanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowanceRequest; - fromJSON(object: any): _51.QueryAllowanceRequest; - toJSON(message: _51.QueryAllowanceRequest): unknown; - fromPartial(object: Partial<_51.QueryAllowanceRequest>): _51.QueryAllowanceRequest; - fromAmino(object: _51.QueryAllowanceRequestAmino): _51.QueryAllowanceRequest; - toAmino(message: _51.QueryAllowanceRequest): _51.QueryAllowanceRequestAmino; - fromAminoMsg(object: _51.QueryAllowanceRequestAminoMsg): _51.QueryAllowanceRequest; - toAminoMsg(message: _51.QueryAllowanceRequest): _51.QueryAllowanceRequestAminoMsg; - fromProtoMsg(message: _51.QueryAllowanceRequestProtoMsg): _51.QueryAllowanceRequest; - toProto(message: _51.QueryAllowanceRequest): Uint8Array; - toProtoMsg(message: _51.QueryAllowanceRequest): _51.QueryAllowanceRequestProtoMsg; - }; - QueryAllowanceResponse: { - typeUrl: string; - encode(message: _51.QueryAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowanceResponse; - fromJSON(object: any): _51.QueryAllowanceResponse; - toJSON(message: _51.QueryAllowanceResponse): unknown; - fromPartial(object: Partial<_51.QueryAllowanceResponse>): _51.QueryAllowanceResponse; - fromAmino(object: _51.QueryAllowanceResponseAmino): _51.QueryAllowanceResponse; - toAmino(message: _51.QueryAllowanceResponse): _51.QueryAllowanceResponseAmino; - fromAminoMsg(object: _51.QueryAllowanceResponseAminoMsg): _51.QueryAllowanceResponse; - toAminoMsg(message: _51.QueryAllowanceResponse): _51.QueryAllowanceResponseAminoMsg; - fromProtoMsg(message: _51.QueryAllowanceResponseProtoMsg): _51.QueryAllowanceResponse; - toProto(message: _51.QueryAllowanceResponse): Uint8Array; - toProtoMsg(message: _51.QueryAllowanceResponse): _51.QueryAllowanceResponseProtoMsg; - }; - QueryAllowancesRequest: { - typeUrl: string; - encode(message: _51.QueryAllowancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesRequest; - fromJSON(object: any): _51.QueryAllowancesRequest; - toJSON(message: _51.QueryAllowancesRequest): unknown; - fromPartial(object: Partial<_51.QueryAllowancesRequest>): _51.QueryAllowancesRequest; - fromAmino(object: _51.QueryAllowancesRequestAmino): _51.QueryAllowancesRequest; - toAmino(message: _51.QueryAllowancesRequest): _51.QueryAllowancesRequestAmino; - fromAminoMsg(object: _51.QueryAllowancesRequestAminoMsg): _51.QueryAllowancesRequest; - toAminoMsg(message: _51.QueryAllowancesRequest): _51.QueryAllowancesRequestAminoMsg; - fromProtoMsg(message: _51.QueryAllowancesRequestProtoMsg): _51.QueryAllowancesRequest; - toProto(message: _51.QueryAllowancesRequest): Uint8Array; - toProtoMsg(message: _51.QueryAllowancesRequest): _51.QueryAllowancesRequestProtoMsg; - }; - QueryAllowancesResponse: { - typeUrl: string; - encode(message: _51.QueryAllowancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesResponse; - fromJSON(object: any): _51.QueryAllowancesResponse; - toJSON(message: _51.QueryAllowancesResponse): unknown; - fromPartial(object: Partial<_51.QueryAllowancesResponse>): _51.QueryAllowancesResponse; - fromAmino(object: _51.QueryAllowancesResponseAmino): _51.QueryAllowancesResponse; - toAmino(message: _51.QueryAllowancesResponse): _51.QueryAllowancesResponseAmino; - fromAminoMsg(object: _51.QueryAllowancesResponseAminoMsg): _51.QueryAllowancesResponse; - toAminoMsg(message: _51.QueryAllowancesResponse): _51.QueryAllowancesResponseAminoMsg; - fromProtoMsg(message: _51.QueryAllowancesResponseProtoMsg): _51.QueryAllowancesResponse; - toProto(message: _51.QueryAllowancesResponse): Uint8Array; - toProtoMsg(message: _51.QueryAllowancesResponse): _51.QueryAllowancesResponseProtoMsg; - }; - QueryAllowancesByGranterRequest: { - typeUrl: string; - encode(message: _51.QueryAllowancesByGranterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesByGranterRequest; - fromJSON(object: any): _51.QueryAllowancesByGranterRequest; - toJSON(message: _51.QueryAllowancesByGranterRequest): unknown; - fromPartial(object: Partial<_51.QueryAllowancesByGranterRequest>): _51.QueryAllowancesByGranterRequest; - fromAmino(object: _51.QueryAllowancesByGranterRequestAmino): _51.QueryAllowancesByGranterRequest; - toAmino(message: _51.QueryAllowancesByGranterRequest): _51.QueryAllowancesByGranterRequestAmino; - fromAminoMsg(object: _51.QueryAllowancesByGranterRequestAminoMsg): _51.QueryAllowancesByGranterRequest; - toAminoMsg(message: _51.QueryAllowancesByGranterRequest): _51.QueryAllowancesByGranterRequestAminoMsg; - fromProtoMsg(message: _51.QueryAllowancesByGranterRequestProtoMsg): _51.QueryAllowancesByGranterRequest; - toProto(message: _51.QueryAllowancesByGranterRequest): Uint8Array; - toProtoMsg(message: _51.QueryAllowancesByGranterRequest): _51.QueryAllowancesByGranterRequestProtoMsg; - }; - QueryAllowancesByGranterResponse: { - typeUrl: string; - encode(message: _51.QueryAllowancesByGranterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _51.QueryAllowancesByGranterResponse; - fromJSON(object: any): _51.QueryAllowancesByGranterResponse; - toJSON(message: _51.QueryAllowancesByGranterResponse): unknown; - fromPartial(object: Partial<_51.QueryAllowancesByGranterResponse>): _51.QueryAllowancesByGranterResponse; - fromAmino(object: _51.QueryAllowancesByGranterResponseAmino): _51.QueryAllowancesByGranterResponse; - toAmino(message: _51.QueryAllowancesByGranterResponse): _51.QueryAllowancesByGranterResponseAmino; - fromAminoMsg(object: _51.QueryAllowancesByGranterResponseAminoMsg): _51.QueryAllowancesByGranterResponse; - toAminoMsg(message: _51.QueryAllowancesByGranterResponse): _51.QueryAllowancesByGranterResponseAminoMsg; - fromProtoMsg(message: _51.QueryAllowancesByGranterResponseProtoMsg): _51.QueryAllowancesByGranterResponse; - toProto(message: _51.QueryAllowancesByGranterResponse): Uint8Array; - toProtoMsg(message: _51.QueryAllowancesByGranterResponse): _51.QueryAllowancesByGranterResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _50.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _50.GenesisState; - fromJSON(object: any): _50.GenesisState; - toJSON(message: _50.GenesisState): unknown; - fromPartial(object: Partial<_50.GenesisState>): _50.GenesisState; - fromAmino(object: _50.GenesisStateAmino): _50.GenesisState; - toAmino(message: _50.GenesisState): _50.GenesisStateAmino; - fromAminoMsg(object: _50.GenesisStateAminoMsg): _50.GenesisState; - toAminoMsg(message: _50.GenesisState): _50.GenesisStateAminoMsg; - fromProtoMsg(message: _50.GenesisStateProtoMsg): _50.GenesisState; - toProto(message: _50.GenesisState): Uint8Array; - toProtoMsg(message: _50.GenesisState): _50.GenesisStateProtoMsg; - }; - BasicAllowance: { - typeUrl: string; - encode(message: _49.BasicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.BasicAllowance; - fromJSON(object: any): _49.BasicAllowance; - toJSON(message: _49.BasicAllowance): unknown; - fromPartial(object: Partial<_49.BasicAllowance>): _49.BasicAllowance; - fromAmino(object: _49.BasicAllowanceAmino): _49.BasicAllowance; - toAmino(message: _49.BasicAllowance): _49.BasicAllowanceAmino; - fromAminoMsg(object: _49.BasicAllowanceAminoMsg): _49.BasicAllowance; - toAminoMsg(message: _49.BasicAllowance): _49.BasicAllowanceAminoMsg; - fromProtoMsg(message: _49.BasicAllowanceProtoMsg): _49.BasicAllowance; - toProto(message: _49.BasicAllowance): Uint8Array; - toProtoMsg(message: _49.BasicAllowance): _49.BasicAllowanceProtoMsg; - }; - PeriodicAllowance: { - typeUrl: string; - encode(message: _49.PeriodicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.PeriodicAllowance; - fromJSON(object: any): _49.PeriodicAllowance; - toJSON(message: _49.PeriodicAllowance): unknown; - fromPartial(object: Partial<_49.PeriodicAllowance>): _49.PeriodicAllowance; - fromAmino(object: _49.PeriodicAllowanceAmino): _49.PeriodicAllowance; - toAmino(message: _49.PeriodicAllowance): _49.PeriodicAllowanceAmino; - fromAminoMsg(object: _49.PeriodicAllowanceAminoMsg): _49.PeriodicAllowance; - toAminoMsg(message: _49.PeriodicAllowance): _49.PeriodicAllowanceAminoMsg; - fromProtoMsg(message: _49.PeriodicAllowanceProtoMsg): _49.PeriodicAllowance; - toProto(message: _49.PeriodicAllowance): Uint8Array; - toProtoMsg(message: _49.PeriodicAllowance): _49.PeriodicAllowanceProtoMsg; - }; - AllowedMsgAllowance: { - typeUrl: string; - encode(message: _49.AllowedMsgAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.AllowedMsgAllowance; - fromJSON(object: any): _49.AllowedMsgAllowance; - toJSON(message: _49.AllowedMsgAllowance): unknown; - fromPartial(object: Partial<_49.AllowedMsgAllowance>): _49.AllowedMsgAllowance; - fromAmino(object: _49.AllowedMsgAllowanceAmino): _49.AllowedMsgAllowance; - toAmino(message: _49.AllowedMsgAllowance): _49.AllowedMsgAllowanceAmino; - fromAminoMsg(object: _49.AllowedMsgAllowanceAminoMsg): _49.AllowedMsgAllowance; - toAminoMsg(message: _49.AllowedMsgAllowance): _49.AllowedMsgAllowanceAminoMsg; - fromProtoMsg(message: _49.AllowedMsgAllowanceProtoMsg): _49.AllowedMsgAllowance; - toProto(message: _49.AllowedMsgAllowance): Uint8Array; - toProtoMsg(message: _49.AllowedMsgAllowance): _49.AllowedMsgAllowanceProtoMsg; - }; - Grant: { - typeUrl: string; - encode(message: _49.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _49.Grant; - fromJSON(object: any): _49.Grant; - toJSON(message: _49.Grant): unknown; - fromPartial(object: Partial<_49.Grant>): _49.Grant; - fromAmino(object: _49.GrantAmino): _49.Grant; - toAmino(message: _49.Grant): _49.GrantAmino; - fromAminoMsg(object: _49.GrantAminoMsg): _49.Grant; - toAminoMsg(message: _49.Grant): _49.GrantAminoMsg; - fromProtoMsg(message: _49.GrantProtoMsg): _49.Grant; - toProto(message: _49.Grant): Uint8Array; - toProtoMsg(message: _49.Grant): _49.GrantProtoMsg; - }; - }; - } - namespace genutil { - const v1beta1: { - GenesisState: { - typeUrl: string; - encode(message: _53.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _53.GenesisState; - fromJSON(object: any): _53.GenesisState; - toJSON(message: _53.GenesisState): unknown; - fromPartial(object: Partial<_53.GenesisState>): _53.GenesisState; - fromAmino(object: _53.GenesisStateAmino): _53.GenesisState; - toAmino(message: _53.GenesisState): _53.GenesisStateAmino; - fromAminoMsg(object: _53.GenesisStateAminoMsg): _53.GenesisState; - toAminoMsg(message: _53.GenesisState): _53.GenesisStateAminoMsg; - fromProtoMsg(message: _53.GenesisStateProtoMsg): _53.GenesisState; - toProto(message: _53.GenesisState): Uint8Array; - toProtoMsg(message: _53.GenesisState): _53.GenesisStateProtoMsg; - }; - }; - } - namespace gov { - const v1: { - MsgClientImpl: typeof _223.MsgClientImpl; - QueryClientImpl: typeof _207.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - proposal(request: _56.QueryProposalRequest): Promise<_56.QueryProposalResponse>; - proposals(request: _56.QueryProposalsRequest): Promise<_56.QueryProposalsResponse>; - vote(request: _56.QueryVoteRequest): Promise<_56.QueryVoteResponse>; - votes(request: _56.QueryVotesRequest): Promise<_56.QueryVotesResponse>; - params(request: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; - deposit(request: _56.QueryDepositRequest): Promise<_56.QueryDepositResponse>; - deposits(request: _56.QueryDepositsRequest): Promise<_56.QueryDepositsResponse>; - tallyResult(request: _56.QueryTallyResultRequest): Promise<_56.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _188.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitProposal(value: _57.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: _57.MsgExecLegacyContent): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _57.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: _57.MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: _57.MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: _57.MsgSubmitProposal): { - typeUrl: string; - value: _57.MsgSubmitProposal; - }; - execLegacyContent(value: _57.MsgExecLegacyContent): { - typeUrl: string; - value: _57.MsgExecLegacyContent; - }; - vote(value: _57.MsgVote): { - typeUrl: string; - value: _57.MsgVote; - }; - voteWeighted(value: _57.MsgVoteWeighted): { - typeUrl: string; - value: _57.MsgVoteWeighted; - }; - deposit(value: _57.MsgDeposit): { - typeUrl: string; - value: _57.MsgDeposit; - }; - }; - toJSON: { - submitProposal(value: _57.MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - execLegacyContent(value: _57.MsgExecLegacyContent): { - typeUrl: string; - value: unknown; - }; - vote(value: _57.MsgVote): { - typeUrl: string; - value: unknown; - }; - voteWeighted(value: _57.MsgVoteWeighted): { - typeUrl: string; - value: unknown; - }; - deposit(value: _57.MsgDeposit): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitProposal(value: any): { - typeUrl: string; - value: _57.MsgSubmitProposal; - }; - execLegacyContent(value: any): { - typeUrl: string; - value: _57.MsgExecLegacyContent; - }; - vote(value: any): { - typeUrl: string; - value: _57.MsgVote; - }; - voteWeighted(value: any): { - typeUrl: string; - value: _57.MsgVoteWeighted; - }; - deposit(value: any): { - typeUrl: string; - value: _57.MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: _57.MsgSubmitProposal): { - typeUrl: string; - value: _57.MsgSubmitProposal; - }; - execLegacyContent(value: _57.MsgExecLegacyContent): { - typeUrl: string; - value: _57.MsgExecLegacyContent; - }; - vote(value: _57.MsgVote): { - typeUrl: string; - value: _57.MsgVote; - }; - voteWeighted(value: _57.MsgVoteWeighted): { - typeUrl: string; - value: _57.MsgVoteWeighted; - }; - deposit(value: _57.MsgDeposit): { - typeUrl: string; - value: _57.MsgDeposit; - }; - }; - }; - AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _57.MsgSubmitProposal) => _57.MsgSubmitProposalAmino; - fromAmino: (object: _57.MsgSubmitProposalAmino) => _57.MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: _57.MsgExecLegacyContent) => _57.MsgExecLegacyContentAmino; - fromAmino: (object: _57.MsgExecLegacyContentAmino) => _57.MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: _57.MsgVote) => _57.MsgVoteAmino; - fromAmino: (object: _57.MsgVoteAmino) => _57.MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: _57.MsgVoteWeighted) => _57.MsgVoteWeightedAmino; - fromAmino: (object: _57.MsgVoteWeightedAmino) => _57.MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: _57.MsgDeposit) => _57.MsgDepositAmino; - fromAmino: (object: _57.MsgDepositAmino) => _57.MsgDeposit; - }; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _57.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgSubmitProposal; - fromJSON(object: any): _57.MsgSubmitProposal; - toJSON(message: _57.MsgSubmitProposal): unknown; - fromPartial(object: Partial<_57.MsgSubmitProposal>): _57.MsgSubmitProposal; - fromAmino(object: _57.MsgSubmitProposalAmino): _57.MsgSubmitProposal; - toAmino(message: _57.MsgSubmitProposal): _57.MsgSubmitProposalAmino; - fromAminoMsg(object: _57.MsgSubmitProposalAminoMsg): _57.MsgSubmitProposal; - toAminoMsg(message: _57.MsgSubmitProposal): _57.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _57.MsgSubmitProposalProtoMsg): _57.MsgSubmitProposal; - toProto(message: _57.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _57.MsgSubmitProposal): _57.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _57.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgSubmitProposalResponse; - fromJSON(object: any): _57.MsgSubmitProposalResponse; - toJSON(message: _57.MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial<_57.MsgSubmitProposalResponse>): _57.MsgSubmitProposalResponse; - fromAmino(object: _57.MsgSubmitProposalResponseAmino): _57.MsgSubmitProposalResponse; - toAmino(message: _57.MsgSubmitProposalResponse): _57.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _57.MsgSubmitProposalResponseAminoMsg): _57.MsgSubmitProposalResponse; - toAminoMsg(message: _57.MsgSubmitProposalResponse): _57.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _57.MsgSubmitProposalResponseProtoMsg): _57.MsgSubmitProposalResponse; - toProto(message: _57.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _57.MsgSubmitProposalResponse): _57.MsgSubmitProposalResponseProtoMsg; - }; - MsgExecLegacyContent: { - typeUrl: string; - encode(message: _57.MsgExecLegacyContent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgExecLegacyContent; - fromJSON(object: any): _57.MsgExecLegacyContent; - toJSON(message: _57.MsgExecLegacyContent): unknown; - fromPartial(object: Partial<_57.MsgExecLegacyContent>): _57.MsgExecLegacyContent; - fromAmino(object: _57.MsgExecLegacyContentAmino): _57.MsgExecLegacyContent; - toAmino(message: _57.MsgExecLegacyContent): _57.MsgExecLegacyContentAmino; - fromAminoMsg(object: _57.MsgExecLegacyContentAminoMsg): _57.MsgExecLegacyContent; - toAminoMsg(message: _57.MsgExecLegacyContent): _57.MsgExecLegacyContentAminoMsg; - fromProtoMsg(message: _57.MsgExecLegacyContentProtoMsg): _57.MsgExecLegacyContent; - toProto(message: _57.MsgExecLegacyContent): Uint8Array; - toProtoMsg(message: _57.MsgExecLegacyContent): _57.MsgExecLegacyContentProtoMsg; - }; - MsgExecLegacyContentResponse: { - typeUrl: string; - encode(_: _57.MsgExecLegacyContentResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgExecLegacyContentResponse; - fromJSON(_: any): _57.MsgExecLegacyContentResponse; - toJSON(_: _57.MsgExecLegacyContentResponse): unknown; - fromPartial(_: Partial<_57.MsgExecLegacyContentResponse>): _57.MsgExecLegacyContentResponse; - fromAmino(_: _57.MsgExecLegacyContentResponseAmino): _57.MsgExecLegacyContentResponse; - toAmino(_: _57.MsgExecLegacyContentResponse): _57.MsgExecLegacyContentResponseAmino; - fromAminoMsg(object: _57.MsgExecLegacyContentResponseAminoMsg): _57.MsgExecLegacyContentResponse; - toAminoMsg(message: _57.MsgExecLegacyContentResponse): _57.MsgExecLegacyContentResponseAminoMsg; - fromProtoMsg(message: _57.MsgExecLegacyContentResponseProtoMsg): _57.MsgExecLegacyContentResponse; - toProto(message: _57.MsgExecLegacyContentResponse): Uint8Array; - toProtoMsg(message: _57.MsgExecLegacyContentResponse): _57.MsgExecLegacyContentResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _57.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVote; - fromJSON(object: any): _57.MsgVote; - toJSON(message: _57.MsgVote): unknown; - fromPartial(object: Partial<_57.MsgVote>): _57.MsgVote; - fromAmino(object: _57.MsgVoteAmino): _57.MsgVote; - toAmino(message: _57.MsgVote): _57.MsgVoteAmino; - fromAminoMsg(object: _57.MsgVoteAminoMsg): _57.MsgVote; - toAminoMsg(message: _57.MsgVote): _57.MsgVoteAminoMsg; - fromProtoMsg(message: _57.MsgVoteProtoMsg): _57.MsgVote; - toProto(message: _57.MsgVote): Uint8Array; - toProtoMsg(message: _57.MsgVote): _57.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _57.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteResponse; - fromJSON(_: any): _57.MsgVoteResponse; - toJSON(_: _57.MsgVoteResponse): unknown; - fromPartial(_: Partial<_57.MsgVoteResponse>): _57.MsgVoteResponse; - fromAmino(_: _57.MsgVoteResponseAmino): _57.MsgVoteResponse; - toAmino(_: _57.MsgVoteResponse): _57.MsgVoteResponseAmino; - fromAminoMsg(object: _57.MsgVoteResponseAminoMsg): _57.MsgVoteResponse; - toAminoMsg(message: _57.MsgVoteResponse): _57.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _57.MsgVoteResponseProtoMsg): _57.MsgVoteResponse; - toProto(message: _57.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _57.MsgVoteResponse): _57.MsgVoteResponseProtoMsg; - }; - MsgVoteWeighted: { - typeUrl: string; - encode(message: _57.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteWeighted; - fromJSON(object: any): _57.MsgVoteWeighted; - toJSON(message: _57.MsgVoteWeighted): unknown; - fromPartial(object: Partial<_57.MsgVoteWeighted>): _57.MsgVoteWeighted; - fromAmino(object: _57.MsgVoteWeightedAmino): _57.MsgVoteWeighted; - toAmino(message: _57.MsgVoteWeighted): _57.MsgVoteWeightedAmino; - fromAminoMsg(object: _57.MsgVoteWeightedAminoMsg): _57.MsgVoteWeighted; - toAminoMsg(message: _57.MsgVoteWeighted): _57.MsgVoteWeightedAminoMsg; - fromProtoMsg(message: _57.MsgVoteWeightedProtoMsg): _57.MsgVoteWeighted; - toProto(message: _57.MsgVoteWeighted): Uint8Array; - toProtoMsg(message: _57.MsgVoteWeighted): _57.MsgVoteWeightedProtoMsg; - }; - MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: _57.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgVoteWeightedResponse; - fromJSON(_: any): _57.MsgVoteWeightedResponse; - toJSON(_: _57.MsgVoteWeightedResponse): unknown; - fromPartial(_: Partial<_57.MsgVoteWeightedResponse>): _57.MsgVoteWeightedResponse; - fromAmino(_: _57.MsgVoteWeightedResponseAmino): _57.MsgVoteWeightedResponse; - toAmino(_: _57.MsgVoteWeightedResponse): _57.MsgVoteWeightedResponseAmino; - fromAminoMsg(object: _57.MsgVoteWeightedResponseAminoMsg): _57.MsgVoteWeightedResponse; - toAminoMsg(message: _57.MsgVoteWeightedResponse): _57.MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: _57.MsgVoteWeightedResponseProtoMsg): _57.MsgVoteWeightedResponse; - toProto(message: _57.MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: _57.MsgVoteWeightedResponse): _57.MsgVoteWeightedResponseProtoMsg; - }; - MsgDeposit: { - typeUrl: string; - encode(message: _57.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgDeposit; - fromJSON(object: any): _57.MsgDeposit; - toJSON(message: _57.MsgDeposit): unknown; - fromPartial(object: Partial<_57.MsgDeposit>): _57.MsgDeposit; - fromAmino(object: _57.MsgDepositAmino): _57.MsgDeposit; - toAmino(message: _57.MsgDeposit): _57.MsgDepositAmino; - fromAminoMsg(object: _57.MsgDepositAminoMsg): _57.MsgDeposit; - toAminoMsg(message: _57.MsgDeposit): _57.MsgDepositAminoMsg; - fromProtoMsg(message: _57.MsgDepositProtoMsg): _57.MsgDeposit; - toProto(message: _57.MsgDeposit): Uint8Array; - toProtoMsg(message: _57.MsgDeposit): _57.MsgDepositProtoMsg; - }; - MsgDepositResponse: { - typeUrl: string; - encode(_: _57.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _57.MsgDepositResponse; - fromJSON(_: any): _57.MsgDepositResponse; - toJSON(_: _57.MsgDepositResponse): unknown; - fromPartial(_: Partial<_57.MsgDepositResponse>): _57.MsgDepositResponse; - fromAmino(_: _57.MsgDepositResponseAmino): _57.MsgDepositResponse; - toAmino(_: _57.MsgDepositResponse): _57.MsgDepositResponseAmino; - fromAminoMsg(object: _57.MsgDepositResponseAminoMsg): _57.MsgDepositResponse; - toAminoMsg(message: _57.MsgDepositResponse): _57.MsgDepositResponseAminoMsg; - fromProtoMsg(message: _57.MsgDepositResponseProtoMsg): _57.MsgDepositResponse; - toProto(message: _57.MsgDepositResponse): Uint8Array; - toProtoMsg(message: _57.MsgDepositResponse): _57.MsgDepositResponseProtoMsg; - }; - Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _59.TextProposal; - Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryProposalRequest: { - typeUrl: string; - encode(message: _56.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalRequest; - fromJSON(object: any): _56.QueryProposalRequest; - toJSON(message: _56.QueryProposalRequest): unknown; - fromPartial(object: Partial<_56.QueryProposalRequest>): _56.QueryProposalRequest; - fromAmino(object: _56.QueryProposalRequestAmino): _56.QueryProposalRequest; - toAmino(message: _56.QueryProposalRequest): _56.QueryProposalRequestAmino; - fromAminoMsg(object: _56.QueryProposalRequestAminoMsg): _56.QueryProposalRequest; - toAminoMsg(message: _56.QueryProposalRequest): _56.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _56.QueryProposalRequestProtoMsg): _56.QueryProposalRequest; - toProto(message: _56.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _56.QueryProposalRequest): _56.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _56.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalResponse; - fromJSON(object: any): _56.QueryProposalResponse; - toJSON(message: _56.QueryProposalResponse): unknown; - fromPartial(object: Partial<_56.QueryProposalResponse>): _56.QueryProposalResponse; - fromAmino(object: _56.QueryProposalResponseAmino): _56.QueryProposalResponse; - toAmino(message: _56.QueryProposalResponse): _56.QueryProposalResponseAmino; - fromAminoMsg(object: _56.QueryProposalResponseAminoMsg): _56.QueryProposalResponse; - toAminoMsg(message: _56.QueryProposalResponse): _56.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _56.QueryProposalResponseProtoMsg): _56.QueryProposalResponse; - toProto(message: _56.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _56.QueryProposalResponse): _56.QueryProposalResponseProtoMsg; - }; - QueryProposalsRequest: { - typeUrl: string; - encode(message: _56.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalsRequest; - fromJSON(object: any): _56.QueryProposalsRequest; - toJSON(message: _56.QueryProposalsRequest): unknown; - fromPartial(object: Partial<_56.QueryProposalsRequest>): _56.QueryProposalsRequest; - fromAmino(object: _56.QueryProposalsRequestAmino): _56.QueryProposalsRequest; - toAmino(message: _56.QueryProposalsRequest): _56.QueryProposalsRequestAmino; - fromAminoMsg(object: _56.QueryProposalsRequestAminoMsg): _56.QueryProposalsRequest; - toAminoMsg(message: _56.QueryProposalsRequest): _56.QueryProposalsRequestAminoMsg; - fromProtoMsg(message: _56.QueryProposalsRequestProtoMsg): _56.QueryProposalsRequest; - toProto(message: _56.QueryProposalsRequest): Uint8Array; - toProtoMsg(message: _56.QueryProposalsRequest): _56.QueryProposalsRequestProtoMsg; - }; - QueryProposalsResponse: { - typeUrl: string; - encode(message: _56.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryProposalsResponse; - fromJSON(object: any): _56.QueryProposalsResponse; - toJSON(message: _56.QueryProposalsResponse): unknown; - fromPartial(object: Partial<_56.QueryProposalsResponse>): _56.QueryProposalsResponse; - fromAmino(object: _56.QueryProposalsResponseAmino): _56.QueryProposalsResponse; - toAmino(message: _56.QueryProposalsResponse): _56.QueryProposalsResponseAmino; - fromAminoMsg(object: _56.QueryProposalsResponseAminoMsg): _56.QueryProposalsResponse; - toAminoMsg(message: _56.QueryProposalsResponse): _56.QueryProposalsResponseAminoMsg; - fromProtoMsg(message: _56.QueryProposalsResponseProtoMsg): _56.QueryProposalsResponse; - toProto(message: _56.QueryProposalsResponse): Uint8Array; - toProtoMsg(message: _56.QueryProposalsResponse): _56.QueryProposalsResponseProtoMsg; - }; - QueryVoteRequest: { - typeUrl: string; - encode(message: _56.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVoteRequest; - fromJSON(object: any): _56.QueryVoteRequest; - toJSON(message: _56.QueryVoteRequest): unknown; - fromPartial(object: Partial<_56.QueryVoteRequest>): _56.QueryVoteRequest; - fromAmino(object: _56.QueryVoteRequestAmino): _56.QueryVoteRequest; - toAmino(message: _56.QueryVoteRequest): _56.QueryVoteRequestAmino; - fromAminoMsg(object: _56.QueryVoteRequestAminoMsg): _56.QueryVoteRequest; - toAminoMsg(message: _56.QueryVoteRequest): _56.QueryVoteRequestAminoMsg; - fromProtoMsg(message: _56.QueryVoteRequestProtoMsg): _56.QueryVoteRequest; - toProto(message: _56.QueryVoteRequest): Uint8Array; - toProtoMsg(message: _56.QueryVoteRequest): _56.QueryVoteRequestProtoMsg; - }; - QueryVoteResponse: { - typeUrl: string; - encode(message: _56.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVoteResponse; - fromJSON(object: any): _56.QueryVoteResponse; - toJSON(message: _56.QueryVoteResponse): unknown; - fromPartial(object: Partial<_56.QueryVoteResponse>): _56.QueryVoteResponse; - fromAmino(object: _56.QueryVoteResponseAmino): _56.QueryVoteResponse; - toAmino(message: _56.QueryVoteResponse): _56.QueryVoteResponseAmino; - fromAminoMsg(object: _56.QueryVoteResponseAminoMsg): _56.QueryVoteResponse; - toAminoMsg(message: _56.QueryVoteResponse): _56.QueryVoteResponseAminoMsg; - fromProtoMsg(message: _56.QueryVoteResponseProtoMsg): _56.QueryVoteResponse; - toProto(message: _56.QueryVoteResponse): Uint8Array; - toProtoMsg(message: _56.QueryVoteResponse): _56.QueryVoteResponseProtoMsg; - }; - QueryVotesRequest: { - typeUrl: string; - encode(message: _56.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVotesRequest; - fromJSON(object: any): _56.QueryVotesRequest; - toJSON(message: _56.QueryVotesRequest): unknown; - fromPartial(object: Partial<_56.QueryVotesRequest>): _56.QueryVotesRequest; - fromAmino(object: _56.QueryVotesRequestAmino): _56.QueryVotesRequest; - toAmino(message: _56.QueryVotesRequest): _56.QueryVotesRequestAmino; - fromAminoMsg(object: _56.QueryVotesRequestAminoMsg): _56.QueryVotesRequest; - toAminoMsg(message: _56.QueryVotesRequest): _56.QueryVotesRequestAminoMsg; - fromProtoMsg(message: _56.QueryVotesRequestProtoMsg): _56.QueryVotesRequest; - toProto(message: _56.QueryVotesRequest): Uint8Array; - toProtoMsg(message: _56.QueryVotesRequest): _56.QueryVotesRequestProtoMsg; - }; - QueryVotesResponse: { - typeUrl: string; - encode(message: _56.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryVotesResponse; - fromJSON(object: any): _56.QueryVotesResponse; - toJSON(message: _56.QueryVotesResponse): unknown; - fromPartial(object: Partial<_56.QueryVotesResponse>): _56.QueryVotesResponse; - fromAmino(object: _56.QueryVotesResponseAmino): _56.QueryVotesResponse; - toAmino(message: _56.QueryVotesResponse): _56.QueryVotesResponseAmino; - fromAminoMsg(object: _56.QueryVotesResponseAminoMsg): _56.QueryVotesResponse; - toAminoMsg(message: _56.QueryVotesResponse): _56.QueryVotesResponseAminoMsg; - fromProtoMsg(message: _56.QueryVotesResponseProtoMsg): _56.QueryVotesResponse; - toProto(message: _56.QueryVotesResponse): Uint8Array; - toProtoMsg(message: _56.QueryVotesResponse): _56.QueryVotesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(message: _56.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryParamsRequest; - fromJSON(object: any): _56.QueryParamsRequest; - toJSON(message: _56.QueryParamsRequest): unknown; - fromPartial(object: Partial<_56.QueryParamsRequest>): _56.QueryParamsRequest; - fromAmino(object: _56.QueryParamsRequestAmino): _56.QueryParamsRequest; - toAmino(message: _56.QueryParamsRequest): _56.QueryParamsRequestAmino; - fromAminoMsg(object: _56.QueryParamsRequestAminoMsg): _56.QueryParamsRequest; - toAminoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _56.QueryParamsRequestProtoMsg): _56.QueryParamsRequest; - toProto(message: _56.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _56.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryParamsResponse; - fromJSON(object: any): _56.QueryParamsResponse; - toJSON(message: _56.QueryParamsResponse): unknown; - fromPartial(object: Partial<_56.QueryParamsResponse>): _56.QueryParamsResponse; - fromAmino(object: _56.QueryParamsResponseAmino): _56.QueryParamsResponse; - toAmino(message: _56.QueryParamsResponse): _56.QueryParamsResponseAmino; - fromAminoMsg(object: _56.QueryParamsResponseAminoMsg): _56.QueryParamsResponse; - toAminoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _56.QueryParamsResponseProtoMsg): _56.QueryParamsResponse; - toProto(message: _56.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseProtoMsg; - }; - QueryDepositRequest: { - typeUrl: string; - encode(message: _56.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositRequest; - fromJSON(object: any): _56.QueryDepositRequest; - toJSON(message: _56.QueryDepositRequest): unknown; - fromPartial(object: Partial<_56.QueryDepositRequest>): _56.QueryDepositRequest; - fromAmino(object: _56.QueryDepositRequestAmino): _56.QueryDepositRequest; - toAmino(message: _56.QueryDepositRequest): _56.QueryDepositRequestAmino; - fromAminoMsg(object: _56.QueryDepositRequestAminoMsg): _56.QueryDepositRequest; - toAminoMsg(message: _56.QueryDepositRequest): _56.QueryDepositRequestAminoMsg; - fromProtoMsg(message: _56.QueryDepositRequestProtoMsg): _56.QueryDepositRequest; - toProto(message: _56.QueryDepositRequest): Uint8Array; - toProtoMsg(message: _56.QueryDepositRequest): _56.QueryDepositRequestProtoMsg; - }; - QueryDepositResponse: { - typeUrl: string; - encode(message: _56.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositResponse; - fromJSON(object: any): _56.QueryDepositResponse; - toJSON(message: _56.QueryDepositResponse): unknown; - fromPartial(object: Partial<_56.QueryDepositResponse>): _56.QueryDepositResponse; - fromAmino(object: _56.QueryDepositResponseAmino): _56.QueryDepositResponse; - toAmino(message: _56.QueryDepositResponse): _56.QueryDepositResponseAmino; - fromAminoMsg(object: _56.QueryDepositResponseAminoMsg): _56.QueryDepositResponse; - toAminoMsg(message: _56.QueryDepositResponse): _56.QueryDepositResponseAminoMsg; - fromProtoMsg(message: _56.QueryDepositResponseProtoMsg): _56.QueryDepositResponse; - toProto(message: _56.QueryDepositResponse): Uint8Array; - toProtoMsg(message: _56.QueryDepositResponse): _56.QueryDepositResponseProtoMsg; - }; - QueryDepositsRequest: { - typeUrl: string; - encode(message: _56.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositsRequest; - fromJSON(object: any): _56.QueryDepositsRequest; - toJSON(message: _56.QueryDepositsRequest): unknown; - fromPartial(object: Partial<_56.QueryDepositsRequest>): _56.QueryDepositsRequest; - fromAmino(object: _56.QueryDepositsRequestAmino): _56.QueryDepositsRequest; - toAmino(message: _56.QueryDepositsRequest): _56.QueryDepositsRequestAmino; - fromAminoMsg(object: _56.QueryDepositsRequestAminoMsg): _56.QueryDepositsRequest; - toAminoMsg(message: _56.QueryDepositsRequest): _56.QueryDepositsRequestAminoMsg; - fromProtoMsg(message: _56.QueryDepositsRequestProtoMsg): _56.QueryDepositsRequest; - toProto(message: _56.QueryDepositsRequest): Uint8Array; - toProtoMsg(message: _56.QueryDepositsRequest): _56.QueryDepositsRequestProtoMsg; - }; - QueryDepositsResponse: { - typeUrl: string; - encode(message: _56.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryDepositsResponse; - fromJSON(object: any): _56.QueryDepositsResponse; - toJSON(message: _56.QueryDepositsResponse): unknown; - fromPartial(object: Partial<_56.QueryDepositsResponse>): _56.QueryDepositsResponse; - fromAmino(object: _56.QueryDepositsResponseAmino): _56.QueryDepositsResponse; - toAmino(message: _56.QueryDepositsResponse): _56.QueryDepositsResponseAmino; - fromAminoMsg(object: _56.QueryDepositsResponseAminoMsg): _56.QueryDepositsResponse; - toAminoMsg(message: _56.QueryDepositsResponse): _56.QueryDepositsResponseAminoMsg; - fromProtoMsg(message: _56.QueryDepositsResponseProtoMsg): _56.QueryDepositsResponse; - toProto(message: _56.QueryDepositsResponse): Uint8Array; - toProtoMsg(message: _56.QueryDepositsResponse): _56.QueryDepositsResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _56.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryTallyResultRequest; - fromJSON(object: any): _56.QueryTallyResultRequest; - toJSON(message: _56.QueryTallyResultRequest): unknown; - fromPartial(object: Partial<_56.QueryTallyResultRequest>): _56.QueryTallyResultRequest; - fromAmino(object: _56.QueryTallyResultRequestAmino): _56.QueryTallyResultRequest; - toAmino(message: _56.QueryTallyResultRequest): _56.QueryTallyResultRequestAmino; - fromAminoMsg(object: _56.QueryTallyResultRequestAminoMsg): _56.QueryTallyResultRequest; - toAminoMsg(message: _56.QueryTallyResultRequest): _56.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _56.QueryTallyResultRequestProtoMsg): _56.QueryTallyResultRequest; - toProto(message: _56.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _56.QueryTallyResultRequest): _56.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _56.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _56.QueryTallyResultResponse; - fromJSON(object: any): _56.QueryTallyResultResponse; - toJSON(message: _56.QueryTallyResultResponse): unknown; - fromPartial(object: Partial<_56.QueryTallyResultResponse>): _56.QueryTallyResultResponse; - fromAmino(object: _56.QueryTallyResultResponseAmino): _56.QueryTallyResultResponse; - toAmino(message: _56.QueryTallyResultResponse): _56.QueryTallyResultResponseAmino; - fromAminoMsg(object: _56.QueryTallyResultResponseAminoMsg): _56.QueryTallyResultResponse; - toAminoMsg(message: _56.QueryTallyResultResponse): _56.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _56.QueryTallyResultResponseProtoMsg): _56.QueryTallyResultResponse; - toProto(message: _56.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _56.QueryTallyResultResponse): _56.QueryTallyResultResponseProtoMsg; - }; - voteOptionFromJSON(object: any): _55.VoteOption; - voteOptionToJSON(object: _55.VoteOption): string; - proposalStatusFromJSON(object: any): _55.ProposalStatus; - proposalStatusToJSON(object: _55.ProposalStatus): string; - VoteOption: typeof _55.VoteOption; - VoteOptionSDKType: typeof _55.VoteOption; - VoteOptionAmino: typeof _55.VoteOption; - ProposalStatus: typeof _55.ProposalStatus; - ProposalStatusSDKType: typeof _55.ProposalStatus; - ProposalStatusAmino: typeof _55.ProposalStatus; - WeightedVoteOption: { - typeUrl: string; - encode(message: _55.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.WeightedVoteOption; - fromJSON(object: any): _55.WeightedVoteOption; - toJSON(message: _55.WeightedVoteOption): unknown; - fromPartial(object: Partial<_55.WeightedVoteOption>): _55.WeightedVoteOption; - fromAmino(object: _55.WeightedVoteOptionAmino): _55.WeightedVoteOption; - toAmino(message: _55.WeightedVoteOption): _55.WeightedVoteOptionAmino; - fromAminoMsg(object: _55.WeightedVoteOptionAminoMsg): _55.WeightedVoteOption; - toAminoMsg(message: _55.WeightedVoteOption): _55.WeightedVoteOptionAminoMsg; - fromProtoMsg(message: _55.WeightedVoteOptionProtoMsg): _55.WeightedVoteOption; - toProto(message: _55.WeightedVoteOption): Uint8Array; - toProtoMsg(message: _55.WeightedVoteOption): _55.WeightedVoteOptionProtoMsg; - }; - Deposit: { - typeUrl: string; - encode(message: _55.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Deposit; - fromJSON(object: any): _55.Deposit; - toJSON(message: _55.Deposit): unknown; - fromPartial(object: Partial<_55.Deposit>): _55.Deposit; - fromAmino(object: _55.DepositAmino): _55.Deposit; - toAmino(message: _55.Deposit): _55.DepositAmino; - fromAminoMsg(object: _55.DepositAminoMsg): _55.Deposit; - toAminoMsg(message: _55.Deposit): _55.DepositAminoMsg; - fromProtoMsg(message: _55.DepositProtoMsg): _55.Deposit; - toProto(message: _55.Deposit): Uint8Array; - toProtoMsg(message: _55.Deposit): _55.DepositProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _55.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Proposal; - fromJSON(object: any): _55.Proposal; - toJSON(message: _55.Proposal): unknown; - fromPartial(object: Partial<_55.Proposal>): _55.Proposal; - fromAmino(object: _55.ProposalAmino): _55.Proposal; - toAmino(message: _55.Proposal): _55.ProposalAmino; - fromAminoMsg(object: _55.ProposalAminoMsg): _55.Proposal; - toAminoMsg(message: _55.Proposal): _55.ProposalAminoMsg; - fromProtoMsg(message: _55.ProposalProtoMsg): _55.Proposal; - toProto(message: _55.Proposal): Uint8Array; - toProtoMsg(message: _55.Proposal): _55.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _55.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.TallyResult; - fromJSON(object: any): _55.TallyResult; - toJSON(message: _55.TallyResult): unknown; - fromPartial(object: Partial<_55.TallyResult>): _55.TallyResult; - fromAmino(object: _55.TallyResultAmino): _55.TallyResult; - toAmino(message: _55.TallyResult): _55.TallyResultAmino; - fromAminoMsg(object: _55.TallyResultAminoMsg): _55.TallyResult; - toAminoMsg(message: _55.TallyResult): _55.TallyResultAminoMsg; - fromProtoMsg(message: _55.TallyResultProtoMsg): _55.TallyResult; - toProto(message: _55.TallyResult): Uint8Array; - toProtoMsg(message: _55.TallyResult): _55.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _55.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.Vote; - fromJSON(object: any): _55.Vote; - toJSON(message: _55.Vote): unknown; - fromPartial(object: Partial<_55.Vote>): _55.Vote; - fromAmino(object: _55.VoteAmino): _55.Vote; - toAmino(message: _55.Vote): _55.VoteAmino; - fromAminoMsg(object: _55.VoteAminoMsg): _55.Vote; - toAminoMsg(message: _55.Vote): _55.VoteAminoMsg; - fromProtoMsg(message: _55.VoteProtoMsg): _55.Vote; - toProto(message: _55.Vote): Uint8Array; - toProtoMsg(message: _55.Vote): _55.VoteProtoMsg; - }; - DepositParams: { - typeUrl: string; - encode(message: _55.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.DepositParams; - fromJSON(object: any): _55.DepositParams; - toJSON(message: _55.DepositParams): unknown; - fromPartial(object: Partial<_55.DepositParams>): _55.DepositParams; - fromAmino(object: _55.DepositParamsAmino): _55.DepositParams; - toAmino(message: _55.DepositParams): _55.DepositParamsAmino; - fromAminoMsg(object: _55.DepositParamsAminoMsg): _55.DepositParams; - toAminoMsg(message: _55.DepositParams): _55.DepositParamsAminoMsg; - fromProtoMsg(message: _55.DepositParamsProtoMsg): _55.DepositParams; - toProto(message: _55.DepositParams): Uint8Array; - toProtoMsg(message: _55.DepositParams): _55.DepositParamsProtoMsg; - }; - VotingParams: { - typeUrl: string; - encode(message: _55.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.VotingParams; - fromJSON(object: any): _55.VotingParams; - toJSON(message: _55.VotingParams): unknown; - fromPartial(object: Partial<_55.VotingParams>): _55.VotingParams; - fromAmino(object: _55.VotingParamsAmino): _55.VotingParams; - toAmino(message: _55.VotingParams): _55.VotingParamsAmino; - fromAminoMsg(object: _55.VotingParamsAminoMsg): _55.VotingParams; - toAminoMsg(message: _55.VotingParams): _55.VotingParamsAminoMsg; - fromProtoMsg(message: _55.VotingParamsProtoMsg): _55.VotingParams; - toProto(message: _55.VotingParams): Uint8Array; - toProtoMsg(message: _55.VotingParams): _55.VotingParamsProtoMsg; - }; - TallyParams: { - typeUrl: string; - encode(message: _55.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _55.TallyParams; - fromJSON(object: any): _55.TallyParams; - toJSON(message: _55.TallyParams): unknown; - fromPartial(object: Partial<_55.TallyParams>): _55.TallyParams; - fromAmino(object: _55.TallyParamsAmino): _55.TallyParams; - toAmino(message: _55.TallyParams): _55.TallyParamsAmino; - fromAminoMsg(object: _55.TallyParamsAminoMsg): _55.TallyParams; - toAminoMsg(message: _55.TallyParams): _55.TallyParamsAminoMsg; - fromProtoMsg(message: _55.TallyParamsProtoMsg): _55.TallyParams; - toProto(message: _55.TallyParams): Uint8Array; - toProtoMsg(message: _55.TallyParams): _55.TallyParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _54.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _54.GenesisState; - fromJSON(object: any): _54.GenesisState; - toJSON(message: _54.GenesisState): unknown; - fromPartial(object: Partial<_54.GenesisState>): _54.GenesisState; - fromAmino(object: _54.GenesisStateAmino): _54.GenesisState; - toAmino(message: _54.GenesisState): _54.GenesisStateAmino; - fromAminoMsg(object: _54.GenesisStateAminoMsg): _54.GenesisState; - toAminoMsg(message: _54.GenesisState): _54.GenesisStateAminoMsg; - fromProtoMsg(message: _54.GenesisStateProtoMsg): _54.GenesisState; - toProto(message: _54.GenesisState): Uint8Array; - toProtoMsg(message: _54.GenesisState): _54.GenesisStateProtoMsg; - }; - }; - const v1beta1: { - MsgClientImpl: typeof _224.MsgClientImpl; - QueryClientImpl: typeof _208.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - proposal(request: _60.QueryProposalRequest): Promise<_60.QueryProposalResponse>; - proposals(request: _60.QueryProposalsRequest): Promise<_60.QueryProposalsResponse>; - vote(request: _60.QueryVoteRequest): Promise<_60.QueryVoteResponse>; - votes(request: _60.QueryVotesRequest): Promise<_60.QueryVotesResponse>; - params(request: _60.QueryParamsRequest): Promise<_60.QueryParamsResponse>; - deposit(request: _60.QueryDepositRequest): Promise<_60.QueryDepositResponse>; - deposits(request: _60.QueryDepositsRequest): Promise<_60.QueryDepositsResponse>; - tallyResult(request: _60.QueryTallyResultRequest): Promise<_60.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _189.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitProposal(value: _61.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _61.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: _61.MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: _61.MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: _61.MsgSubmitProposal): { - typeUrl: string; - value: _61.MsgSubmitProposal; - }; - vote(value: _61.MsgVote): { - typeUrl: string; - value: _61.MsgVote; - }; - voteWeighted(value: _61.MsgVoteWeighted): { - typeUrl: string; - value: _61.MsgVoteWeighted; - }; - deposit(value: _61.MsgDeposit): { - typeUrl: string; - value: _61.MsgDeposit; - }; - }; - toJSON: { - submitProposal(value: _61.MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - vote(value: _61.MsgVote): { - typeUrl: string; - value: unknown; - }; - voteWeighted(value: _61.MsgVoteWeighted): { - typeUrl: string; - value: unknown; - }; - deposit(value: _61.MsgDeposit): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitProposal(value: any): { - typeUrl: string; - value: _61.MsgSubmitProposal; - }; - vote(value: any): { - typeUrl: string; - value: _61.MsgVote; - }; - voteWeighted(value: any): { - typeUrl: string; - value: _61.MsgVoteWeighted; - }; - deposit(value: any): { - typeUrl: string; - value: _61.MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: _61.MsgSubmitProposal): { - typeUrl: string; - value: _61.MsgSubmitProposal; - }; - vote(value: _61.MsgVote): { - typeUrl: string; - value: _61.MsgVote; - }; - voteWeighted(value: _61.MsgVoteWeighted): { - typeUrl: string; - value: _61.MsgVoteWeighted; - }; - deposit(value: _61.MsgDeposit): { - typeUrl: string; - value: _61.MsgDeposit; - }; - }; - }; - AminoConverter: { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _61.MsgSubmitProposal) => _61.MsgSubmitProposalAmino; - fromAmino: (object: _61.MsgSubmitProposalAmino) => _61.MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: _61.MsgVote) => _61.MsgVoteAmino; - fromAmino: (object: _61.MsgVoteAmino) => _61.MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: _61.MsgVoteWeighted) => _61.MsgVoteWeightedAmino; - fromAmino: (object: _61.MsgVoteWeightedAmino) => _61.MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: _61.MsgDeposit) => _61.MsgDepositAmino; - fromAmino: (object: _61.MsgDepositAmino) => _61.MsgDeposit; - }; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _61.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgSubmitProposal; - fromJSON(object: any): _61.MsgSubmitProposal; - toJSON(message: _61.MsgSubmitProposal): unknown; - fromPartial(object: Partial<_61.MsgSubmitProposal>): _61.MsgSubmitProposal; - fromAmino(object: _61.MsgSubmitProposalAmino): _61.MsgSubmitProposal; - toAmino(message: _61.MsgSubmitProposal): _61.MsgSubmitProposalAmino; - fromAminoMsg(object: _61.MsgSubmitProposalAminoMsg): _61.MsgSubmitProposal; - toAminoMsg(message: _61.MsgSubmitProposal): _61.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _61.MsgSubmitProposalProtoMsg): _61.MsgSubmitProposal; - toProto(message: _61.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _61.MsgSubmitProposal): _61.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _61.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgSubmitProposalResponse; - fromJSON(object: any): _61.MsgSubmitProposalResponse; - toJSON(message: _61.MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial<_61.MsgSubmitProposalResponse>): _61.MsgSubmitProposalResponse; - fromAmino(object: _61.MsgSubmitProposalResponseAmino): _61.MsgSubmitProposalResponse; - toAmino(message: _61.MsgSubmitProposalResponse): _61.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _61.MsgSubmitProposalResponseAminoMsg): _61.MsgSubmitProposalResponse; - toAminoMsg(message: _61.MsgSubmitProposalResponse): _61.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _61.MsgSubmitProposalResponseProtoMsg): _61.MsgSubmitProposalResponse; - toProto(message: _61.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _61.MsgSubmitProposalResponse): _61.MsgSubmitProposalResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _61.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVote; - fromJSON(object: any): _61.MsgVote; - toJSON(message: _61.MsgVote): unknown; - fromPartial(object: Partial<_61.MsgVote>): _61.MsgVote; - fromAmino(object: _61.MsgVoteAmino): _61.MsgVote; - toAmino(message: _61.MsgVote): _61.MsgVoteAmino; - fromAminoMsg(object: _61.MsgVoteAminoMsg): _61.MsgVote; - toAminoMsg(message: _61.MsgVote): _61.MsgVoteAminoMsg; - fromProtoMsg(message: _61.MsgVoteProtoMsg): _61.MsgVote; - toProto(message: _61.MsgVote): Uint8Array; - toProtoMsg(message: _61.MsgVote): _61.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _61.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteResponse; - fromJSON(_: any): _61.MsgVoteResponse; - toJSON(_: _61.MsgVoteResponse): unknown; - fromPartial(_: Partial<_61.MsgVoteResponse>): _61.MsgVoteResponse; - fromAmino(_: _61.MsgVoteResponseAmino): _61.MsgVoteResponse; - toAmino(_: _61.MsgVoteResponse): _61.MsgVoteResponseAmino; - fromAminoMsg(object: _61.MsgVoteResponseAminoMsg): _61.MsgVoteResponse; - toAminoMsg(message: _61.MsgVoteResponse): _61.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _61.MsgVoteResponseProtoMsg): _61.MsgVoteResponse; - toProto(message: _61.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _61.MsgVoteResponse): _61.MsgVoteResponseProtoMsg; - }; - MsgVoteWeighted: { - typeUrl: string; - encode(message: _61.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteWeighted; - fromJSON(object: any): _61.MsgVoteWeighted; - toJSON(message: _61.MsgVoteWeighted): unknown; - fromPartial(object: Partial<_61.MsgVoteWeighted>): _61.MsgVoteWeighted; - fromAmino(object: _61.MsgVoteWeightedAmino): _61.MsgVoteWeighted; - toAmino(message: _61.MsgVoteWeighted): _61.MsgVoteWeightedAmino; - fromAminoMsg(object: _61.MsgVoteWeightedAminoMsg): _61.MsgVoteWeighted; - toAminoMsg(message: _61.MsgVoteWeighted): _61.MsgVoteWeightedAminoMsg; - fromProtoMsg(message: _61.MsgVoteWeightedProtoMsg): _61.MsgVoteWeighted; - toProto(message: _61.MsgVoteWeighted): Uint8Array; - toProtoMsg(message: _61.MsgVoteWeighted): _61.MsgVoteWeightedProtoMsg; - }; - MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: _61.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgVoteWeightedResponse; - fromJSON(_: any): _61.MsgVoteWeightedResponse; - toJSON(_: _61.MsgVoteWeightedResponse): unknown; - fromPartial(_: Partial<_61.MsgVoteWeightedResponse>): _61.MsgVoteWeightedResponse; - fromAmino(_: _61.MsgVoteWeightedResponseAmino): _61.MsgVoteWeightedResponse; - toAmino(_: _61.MsgVoteWeightedResponse): _61.MsgVoteWeightedResponseAmino; - fromAminoMsg(object: _61.MsgVoteWeightedResponseAminoMsg): _61.MsgVoteWeightedResponse; - toAminoMsg(message: _61.MsgVoteWeightedResponse): _61.MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: _61.MsgVoteWeightedResponseProtoMsg): _61.MsgVoteWeightedResponse; - toProto(message: _61.MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: _61.MsgVoteWeightedResponse): _61.MsgVoteWeightedResponseProtoMsg; - }; - MsgDeposit: { - typeUrl: string; - encode(message: _61.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgDeposit; - fromJSON(object: any): _61.MsgDeposit; - toJSON(message: _61.MsgDeposit): unknown; - fromPartial(object: Partial<_61.MsgDeposit>): _61.MsgDeposit; - fromAmino(object: _61.MsgDepositAmino): _61.MsgDeposit; - toAmino(message: _61.MsgDeposit): _61.MsgDepositAmino; - fromAminoMsg(object: _61.MsgDepositAminoMsg): _61.MsgDeposit; - toAminoMsg(message: _61.MsgDeposit): _61.MsgDepositAminoMsg; - fromProtoMsg(message: _61.MsgDepositProtoMsg): _61.MsgDeposit; - toProto(message: _61.MsgDeposit): Uint8Array; - toProtoMsg(message: _61.MsgDeposit): _61.MsgDepositProtoMsg; - }; - MsgDepositResponse: { - typeUrl: string; - encode(_: _61.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _61.MsgDepositResponse; - fromJSON(_: any): _61.MsgDepositResponse; - toJSON(_: _61.MsgDepositResponse): unknown; - fromPartial(_: Partial<_61.MsgDepositResponse>): _61.MsgDepositResponse; - fromAmino(_: _61.MsgDepositResponseAmino): _61.MsgDepositResponse; - toAmino(_: _61.MsgDepositResponse): _61.MsgDepositResponseAmino; - fromAminoMsg(object: _61.MsgDepositResponseAminoMsg): _61.MsgDepositResponse; - toAminoMsg(message: _61.MsgDepositResponse): _61.MsgDepositResponseAminoMsg; - fromProtoMsg(message: _61.MsgDepositResponseProtoMsg): _61.MsgDepositResponse; - toProto(message: _61.MsgDepositResponse): Uint8Array; - toProtoMsg(message: _61.MsgDepositResponse): _61.MsgDepositResponseProtoMsg; - }; - Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _59.TextProposal; - Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryProposalRequest: { - typeUrl: string; - encode(message: _60.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalRequest; - fromJSON(object: any): _60.QueryProposalRequest; - toJSON(message: _60.QueryProposalRequest): unknown; - fromPartial(object: Partial<_60.QueryProposalRequest>): _60.QueryProposalRequest; - fromAmino(object: _60.QueryProposalRequestAmino): _60.QueryProposalRequest; - toAmino(message: _60.QueryProposalRequest): _60.QueryProposalRequestAmino; - fromAminoMsg(object: _60.QueryProposalRequestAminoMsg): _60.QueryProposalRequest; - toAminoMsg(message: _60.QueryProposalRequest): _60.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _60.QueryProposalRequestProtoMsg): _60.QueryProposalRequest; - toProto(message: _60.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _60.QueryProposalRequest): _60.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _60.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalResponse; - fromJSON(object: any): _60.QueryProposalResponse; - toJSON(message: _60.QueryProposalResponse): unknown; - fromPartial(object: Partial<_60.QueryProposalResponse>): _60.QueryProposalResponse; - fromAmino(object: _60.QueryProposalResponseAmino): _60.QueryProposalResponse; - toAmino(message: _60.QueryProposalResponse): _60.QueryProposalResponseAmino; - fromAminoMsg(object: _60.QueryProposalResponseAminoMsg): _60.QueryProposalResponse; - toAminoMsg(message: _60.QueryProposalResponse): _60.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _60.QueryProposalResponseProtoMsg): _60.QueryProposalResponse; - toProto(message: _60.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _60.QueryProposalResponse): _60.QueryProposalResponseProtoMsg; - }; - QueryProposalsRequest: { - typeUrl: string; - encode(message: _60.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalsRequest; - fromJSON(object: any): _60.QueryProposalsRequest; - toJSON(message: _60.QueryProposalsRequest): unknown; - fromPartial(object: Partial<_60.QueryProposalsRequest>): _60.QueryProposalsRequest; - fromAmino(object: _60.QueryProposalsRequestAmino): _60.QueryProposalsRequest; - toAmino(message: _60.QueryProposalsRequest): _60.QueryProposalsRequestAmino; - fromAminoMsg(object: _60.QueryProposalsRequestAminoMsg): _60.QueryProposalsRequest; - toAminoMsg(message: _60.QueryProposalsRequest): _60.QueryProposalsRequestAminoMsg; - fromProtoMsg(message: _60.QueryProposalsRequestProtoMsg): _60.QueryProposalsRequest; - toProto(message: _60.QueryProposalsRequest): Uint8Array; - toProtoMsg(message: _60.QueryProposalsRequest): _60.QueryProposalsRequestProtoMsg; - }; - QueryProposalsResponse: { - typeUrl: string; - encode(message: _60.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryProposalsResponse; - fromJSON(object: any): _60.QueryProposalsResponse; - toJSON(message: _60.QueryProposalsResponse): unknown; - fromPartial(object: Partial<_60.QueryProposalsResponse>): _60.QueryProposalsResponse; - fromAmino(object: _60.QueryProposalsResponseAmino): _60.QueryProposalsResponse; - toAmino(message: _60.QueryProposalsResponse): _60.QueryProposalsResponseAmino; - fromAminoMsg(object: _60.QueryProposalsResponseAminoMsg): _60.QueryProposalsResponse; - toAminoMsg(message: _60.QueryProposalsResponse): _60.QueryProposalsResponseAminoMsg; - fromProtoMsg(message: _60.QueryProposalsResponseProtoMsg): _60.QueryProposalsResponse; - toProto(message: _60.QueryProposalsResponse): Uint8Array; - toProtoMsg(message: _60.QueryProposalsResponse): _60.QueryProposalsResponseProtoMsg; - }; - QueryVoteRequest: { - typeUrl: string; - encode(message: _60.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVoteRequest; - fromJSON(object: any): _60.QueryVoteRequest; - toJSON(message: _60.QueryVoteRequest): unknown; - fromPartial(object: Partial<_60.QueryVoteRequest>): _60.QueryVoteRequest; - fromAmino(object: _60.QueryVoteRequestAmino): _60.QueryVoteRequest; - toAmino(message: _60.QueryVoteRequest): _60.QueryVoteRequestAmino; - fromAminoMsg(object: _60.QueryVoteRequestAminoMsg): _60.QueryVoteRequest; - toAminoMsg(message: _60.QueryVoteRequest): _60.QueryVoteRequestAminoMsg; - fromProtoMsg(message: _60.QueryVoteRequestProtoMsg): _60.QueryVoteRequest; - toProto(message: _60.QueryVoteRequest): Uint8Array; - toProtoMsg(message: _60.QueryVoteRequest): _60.QueryVoteRequestProtoMsg; - }; - QueryVoteResponse: { - typeUrl: string; - encode(message: _60.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVoteResponse; - fromJSON(object: any): _60.QueryVoteResponse; - toJSON(message: _60.QueryVoteResponse): unknown; - fromPartial(object: Partial<_60.QueryVoteResponse>): _60.QueryVoteResponse; - fromAmino(object: _60.QueryVoteResponseAmino): _60.QueryVoteResponse; - toAmino(message: _60.QueryVoteResponse): _60.QueryVoteResponseAmino; - fromAminoMsg(object: _60.QueryVoteResponseAminoMsg): _60.QueryVoteResponse; - toAminoMsg(message: _60.QueryVoteResponse): _60.QueryVoteResponseAminoMsg; - fromProtoMsg(message: _60.QueryVoteResponseProtoMsg): _60.QueryVoteResponse; - toProto(message: _60.QueryVoteResponse): Uint8Array; - toProtoMsg(message: _60.QueryVoteResponse): _60.QueryVoteResponseProtoMsg; - }; - QueryVotesRequest: { - typeUrl: string; - encode(message: _60.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVotesRequest; - fromJSON(object: any): _60.QueryVotesRequest; - toJSON(message: _60.QueryVotesRequest): unknown; - fromPartial(object: Partial<_60.QueryVotesRequest>): _60.QueryVotesRequest; - fromAmino(object: _60.QueryVotesRequestAmino): _60.QueryVotesRequest; - toAmino(message: _60.QueryVotesRequest): _60.QueryVotesRequestAmino; - fromAminoMsg(object: _60.QueryVotesRequestAminoMsg): _60.QueryVotesRequest; - toAminoMsg(message: _60.QueryVotesRequest): _60.QueryVotesRequestAminoMsg; - fromProtoMsg(message: _60.QueryVotesRequestProtoMsg): _60.QueryVotesRequest; - toProto(message: _60.QueryVotesRequest): Uint8Array; - toProtoMsg(message: _60.QueryVotesRequest): _60.QueryVotesRequestProtoMsg; - }; - QueryVotesResponse: { - typeUrl: string; - encode(message: _60.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryVotesResponse; - fromJSON(object: any): _60.QueryVotesResponse; - toJSON(message: _60.QueryVotesResponse): unknown; - fromPartial(object: Partial<_60.QueryVotesResponse>): _60.QueryVotesResponse; - fromAmino(object: _60.QueryVotesResponseAmino): _60.QueryVotesResponse; - toAmino(message: _60.QueryVotesResponse): _60.QueryVotesResponseAmino; - fromAminoMsg(object: _60.QueryVotesResponseAminoMsg): _60.QueryVotesResponse; - toAminoMsg(message: _60.QueryVotesResponse): _60.QueryVotesResponseAminoMsg; - fromProtoMsg(message: _60.QueryVotesResponseProtoMsg): _60.QueryVotesResponse; - toProto(message: _60.QueryVotesResponse): Uint8Array; - toProtoMsg(message: _60.QueryVotesResponse): _60.QueryVotesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(message: _60.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryParamsRequest; - fromJSON(object: any): _60.QueryParamsRequest; - toJSON(message: _60.QueryParamsRequest): unknown; - fromPartial(object: Partial<_60.QueryParamsRequest>): _60.QueryParamsRequest; - fromAmino(object: _60.QueryParamsRequestAmino): _60.QueryParamsRequest; - toAmino(message: _60.QueryParamsRequest): _60.QueryParamsRequestAmino; - fromAminoMsg(object: _60.QueryParamsRequestAminoMsg): _60.QueryParamsRequest; - toAminoMsg(message: _60.QueryParamsRequest): _60.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _60.QueryParamsRequestProtoMsg): _60.QueryParamsRequest; - toProto(message: _60.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _60.QueryParamsRequest): _60.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _60.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryParamsResponse; - fromJSON(object: any): _60.QueryParamsResponse; - toJSON(message: _60.QueryParamsResponse): unknown; - fromPartial(object: Partial<_60.QueryParamsResponse>): _60.QueryParamsResponse; - fromAmino(object: _60.QueryParamsResponseAmino): _60.QueryParamsResponse; - toAmino(message: _60.QueryParamsResponse): _60.QueryParamsResponseAmino; - fromAminoMsg(object: _60.QueryParamsResponseAminoMsg): _60.QueryParamsResponse; - toAminoMsg(message: _60.QueryParamsResponse): _60.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _60.QueryParamsResponseProtoMsg): _60.QueryParamsResponse; - toProto(message: _60.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _60.QueryParamsResponse): _60.QueryParamsResponseProtoMsg; - }; - QueryDepositRequest: { - typeUrl: string; - encode(message: _60.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositRequest; - fromJSON(object: any): _60.QueryDepositRequest; - toJSON(message: _60.QueryDepositRequest): unknown; - fromPartial(object: Partial<_60.QueryDepositRequest>): _60.QueryDepositRequest; - fromAmino(object: _60.QueryDepositRequestAmino): _60.QueryDepositRequest; - toAmino(message: _60.QueryDepositRequest): _60.QueryDepositRequestAmino; - fromAminoMsg(object: _60.QueryDepositRequestAminoMsg): _60.QueryDepositRequest; - toAminoMsg(message: _60.QueryDepositRequest): _60.QueryDepositRequestAminoMsg; - fromProtoMsg(message: _60.QueryDepositRequestProtoMsg): _60.QueryDepositRequest; - toProto(message: _60.QueryDepositRequest): Uint8Array; - toProtoMsg(message: _60.QueryDepositRequest): _60.QueryDepositRequestProtoMsg; - }; - QueryDepositResponse: { - typeUrl: string; - encode(message: _60.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositResponse; - fromJSON(object: any): _60.QueryDepositResponse; - toJSON(message: _60.QueryDepositResponse): unknown; - fromPartial(object: Partial<_60.QueryDepositResponse>): _60.QueryDepositResponse; - fromAmino(object: _60.QueryDepositResponseAmino): _60.QueryDepositResponse; - toAmino(message: _60.QueryDepositResponse): _60.QueryDepositResponseAmino; - fromAminoMsg(object: _60.QueryDepositResponseAminoMsg): _60.QueryDepositResponse; - toAminoMsg(message: _60.QueryDepositResponse): _60.QueryDepositResponseAminoMsg; - fromProtoMsg(message: _60.QueryDepositResponseProtoMsg): _60.QueryDepositResponse; - toProto(message: _60.QueryDepositResponse): Uint8Array; - toProtoMsg(message: _60.QueryDepositResponse): _60.QueryDepositResponseProtoMsg; - }; - QueryDepositsRequest: { - typeUrl: string; - encode(message: _60.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositsRequest; - fromJSON(object: any): _60.QueryDepositsRequest; - toJSON(message: _60.QueryDepositsRequest): unknown; - fromPartial(object: Partial<_60.QueryDepositsRequest>): _60.QueryDepositsRequest; - fromAmino(object: _60.QueryDepositsRequestAmino): _60.QueryDepositsRequest; - toAmino(message: _60.QueryDepositsRequest): _60.QueryDepositsRequestAmino; - fromAminoMsg(object: _60.QueryDepositsRequestAminoMsg): _60.QueryDepositsRequest; - toAminoMsg(message: _60.QueryDepositsRequest): _60.QueryDepositsRequestAminoMsg; - fromProtoMsg(message: _60.QueryDepositsRequestProtoMsg): _60.QueryDepositsRequest; - toProto(message: _60.QueryDepositsRequest): Uint8Array; - toProtoMsg(message: _60.QueryDepositsRequest): _60.QueryDepositsRequestProtoMsg; - }; - QueryDepositsResponse: { - typeUrl: string; - encode(message: _60.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryDepositsResponse; - fromJSON(object: any): _60.QueryDepositsResponse; - toJSON(message: _60.QueryDepositsResponse): unknown; - fromPartial(object: Partial<_60.QueryDepositsResponse>): _60.QueryDepositsResponse; - fromAmino(object: _60.QueryDepositsResponseAmino): _60.QueryDepositsResponse; - toAmino(message: _60.QueryDepositsResponse): _60.QueryDepositsResponseAmino; - fromAminoMsg(object: _60.QueryDepositsResponseAminoMsg): _60.QueryDepositsResponse; - toAminoMsg(message: _60.QueryDepositsResponse): _60.QueryDepositsResponseAminoMsg; - fromProtoMsg(message: _60.QueryDepositsResponseProtoMsg): _60.QueryDepositsResponse; - toProto(message: _60.QueryDepositsResponse): Uint8Array; - toProtoMsg(message: _60.QueryDepositsResponse): _60.QueryDepositsResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _60.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryTallyResultRequest; - fromJSON(object: any): _60.QueryTallyResultRequest; - toJSON(message: _60.QueryTallyResultRequest): unknown; - fromPartial(object: Partial<_60.QueryTallyResultRequest>): _60.QueryTallyResultRequest; - fromAmino(object: _60.QueryTallyResultRequestAmino): _60.QueryTallyResultRequest; - toAmino(message: _60.QueryTallyResultRequest): _60.QueryTallyResultRequestAmino; - fromAminoMsg(object: _60.QueryTallyResultRequestAminoMsg): _60.QueryTallyResultRequest; - toAminoMsg(message: _60.QueryTallyResultRequest): _60.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _60.QueryTallyResultRequestProtoMsg): _60.QueryTallyResultRequest; - toProto(message: _60.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _60.QueryTallyResultRequest): _60.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _60.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _60.QueryTallyResultResponse; - fromJSON(object: any): _60.QueryTallyResultResponse; - toJSON(message: _60.QueryTallyResultResponse): unknown; - fromPartial(object: Partial<_60.QueryTallyResultResponse>): _60.QueryTallyResultResponse; - fromAmino(object: _60.QueryTallyResultResponseAmino): _60.QueryTallyResultResponse; - toAmino(message: _60.QueryTallyResultResponse): _60.QueryTallyResultResponseAmino; - fromAminoMsg(object: _60.QueryTallyResultResponseAminoMsg): _60.QueryTallyResultResponse; - toAminoMsg(message: _60.QueryTallyResultResponse): _60.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _60.QueryTallyResultResponseProtoMsg): _60.QueryTallyResultResponse; - toProto(message: _60.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _60.QueryTallyResultResponse): _60.QueryTallyResultResponseProtoMsg; - }; - voteOptionFromJSON(object: any): _59.VoteOption; - voteOptionToJSON(object: _59.VoteOption): string; - proposalStatusFromJSON(object: any): _59.ProposalStatus; - proposalStatusToJSON(object: _59.ProposalStatus): string; - VoteOption: typeof _59.VoteOption; - VoteOptionSDKType: typeof _59.VoteOption; - VoteOptionAmino: typeof _59.VoteOption; - ProposalStatus: typeof _59.ProposalStatus; - ProposalStatusSDKType: typeof _59.ProposalStatus; - ProposalStatusAmino: typeof _59.ProposalStatus; - WeightedVoteOption: { - typeUrl: string; - encode(message: _59.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.WeightedVoteOption; - fromJSON(object: any): _59.WeightedVoteOption; - toJSON(message: _59.WeightedVoteOption): unknown; - fromPartial(object: Partial<_59.WeightedVoteOption>): _59.WeightedVoteOption; - fromAmino(object: _59.WeightedVoteOptionAmino): _59.WeightedVoteOption; - toAmino(message: _59.WeightedVoteOption): _59.WeightedVoteOptionAmino; - fromAminoMsg(object: _59.WeightedVoteOptionAminoMsg): _59.WeightedVoteOption; - toAminoMsg(message: _59.WeightedVoteOption): _59.WeightedVoteOptionAminoMsg; - fromProtoMsg(message: _59.WeightedVoteOptionProtoMsg): _59.WeightedVoteOption; - toProto(message: _59.WeightedVoteOption): Uint8Array; - toProtoMsg(message: _59.WeightedVoteOption): _59.WeightedVoteOptionProtoMsg; - }; - TextProposal: { - typeUrl: string; - encode(message: _59.TextProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TextProposal; - fromJSON(object: any): _59.TextProposal; - toJSON(message: _59.TextProposal): unknown; - fromPartial(object: Partial<_59.TextProposal>): _59.TextProposal; - fromAmino(object: _59.TextProposalAmino): _59.TextProposal; - toAmino(message: _59.TextProposal): _59.TextProposalAmino; - fromAminoMsg(object: _59.TextProposalAminoMsg): _59.TextProposal; - toAminoMsg(message: _59.TextProposal): _59.TextProposalAminoMsg; - fromProtoMsg(message: _59.TextProposalProtoMsg): _59.TextProposal; - toProto(message: _59.TextProposal): Uint8Array; - toProtoMsg(message: _59.TextProposal): _59.TextProposalProtoMsg; - }; - Deposit: { - typeUrl: string; - encode(message: _59.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Deposit; - fromJSON(object: any): _59.Deposit; - toJSON(message: _59.Deposit): unknown; - fromPartial(object: Partial<_59.Deposit>): _59.Deposit; - fromAmino(object: _59.DepositAmino): _59.Deposit; - toAmino(message: _59.Deposit): _59.DepositAmino; - fromAminoMsg(object: _59.DepositAminoMsg): _59.Deposit; - toAminoMsg(message: _59.Deposit): _59.DepositAminoMsg; - fromProtoMsg(message: _59.DepositProtoMsg): _59.Deposit; - toProto(message: _59.Deposit): Uint8Array; - toProtoMsg(message: _59.Deposit): _59.DepositProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _59.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Proposal; - fromJSON(object: any): _59.Proposal; - toJSON(message: _59.Proposal): unknown; - fromPartial(object: Partial<_59.Proposal>): _59.Proposal; - fromAmino(object: _59.ProposalAmino): _59.Proposal; - toAmino(message: _59.Proposal): _59.ProposalAmino; - fromAminoMsg(object: _59.ProposalAminoMsg): _59.Proposal; - toAminoMsg(message: _59.Proposal): _59.ProposalAminoMsg; - fromProtoMsg(message: _59.ProposalProtoMsg): _59.Proposal; - toProto(message: _59.Proposal): Uint8Array; - toProtoMsg(message: _59.Proposal): _59.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _59.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TallyResult; - fromJSON(object: any): _59.TallyResult; - toJSON(message: _59.TallyResult): unknown; - fromPartial(object: Partial<_59.TallyResult>): _59.TallyResult; - fromAmino(object: _59.TallyResultAmino): _59.TallyResult; - toAmino(message: _59.TallyResult): _59.TallyResultAmino; - fromAminoMsg(object: _59.TallyResultAminoMsg): _59.TallyResult; - toAminoMsg(message: _59.TallyResult): _59.TallyResultAminoMsg; - fromProtoMsg(message: _59.TallyResultProtoMsg): _59.TallyResult; - toProto(message: _59.TallyResult): Uint8Array; - toProtoMsg(message: _59.TallyResult): _59.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _59.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.Vote; - fromJSON(object: any): _59.Vote; - toJSON(message: _59.Vote): unknown; - fromPartial(object: Partial<_59.Vote>): _59.Vote; - fromAmino(object: _59.VoteAmino): _59.Vote; - toAmino(message: _59.Vote): _59.VoteAmino; - fromAminoMsg(object: _59.VoteAminoMsg): _59.Vote; - toAminoMsg(message: _59.Vote): _59.VoteAminoMsg; - fromProtoMsg(message: _59.VoteProtoMsg): _59.Vote; - toProto(message: _59.Vote): Uint8Array; - toProtoMsg(message: _59.Vote): _59.VoteProtoMsg; - }; - DepositParams: { - typeUrl: string; - encode(message: _59.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.DepositParams; - fromJSON(object: any): _59.DepositParams; - toJSON(message: _59.DepositParams): unknown; - fromPartial(object: Partial<_59.DepositParams>): _59.DepositParams; - fromAmino(object: _59.DepositParamsAmino): _59.DepositParams; - toAmino(message: _59.DepositParams): _59.DepositParamsAmino; - fromAminoMsg(object: _59.DepositParamsAminoMsg): _59.DepositParams; - toAminoMsg(message: _59.DepositParams): _59.DepositParamsAminoMsg; - fromProtoMsg(message: _59.DepositParamsProtoMsg): _59.DepositParams; - toProto(message: _59.DepositParams): Uint8Array; - toProtoMsg(message: _59.DepositParams): _59.DepositParamsProtoMsg; - }; - VotingParams: { - typeUrl: string; - encode(message: _59.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.VotingParams; - fromJSON(object: any): _59.VotingParams; - toJSON(message: _59.VotingParams): unknown; - fromPartial(object: Partial<_59.VotingParams>): _59.VotingParams; - fromAmino(object: _59.VotingParamsAmino): _59.VotingParams; - toAmino(message: _59.VotingParams): _59.VotingParamsAmino; - fromAminoMsg(object: _59.VotingParamsAminoMsg): _59.VotingParams; - toAminoMsg(message: _59.VotingParams): _59.VotingParamsAminoMsg; - fromProtoMsg(message: _59.VotingParamsProtoMsg): _59.VotingParams; - toProto(message: _59.VotingParams): Uint8Array; - toProtoMsg(message: _59.VotingParams): _59.VotingParamsProtoMsg; - }; - TallyParams: { - typeUrl: string; - encode(message: _59.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _59.TallyParams; - fromJSON(object: any): _59.TallyParams; - toJSON(message: _59.TallyParams): unknown; - fromPartial(object: Partial<_59.TallyParams>): _59.TallyParams; - fromAmino(object: _59.TallyParamsAmino): _59.TallyParams; - toAmino(message: _59.TallyParams): _59.TallyParamsAmino; - fromAminoMsg(object: _59.TallyParamsAminoMsg): _59.TallyParams; - toAminoMsg(message: _59.TallyParams): _59.TallyParamsAminoMsg; - fromProtoMsg(message: _59.TallyParamsProtoMsg): _59.TallyParams; - toProto(message: _59.TallyParams): Uint8Array; - toProtoMsg(message: _59.TallyParams): _59.TallyParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _58.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _58.GenesisState; - fromJSON(object: any): _58.GenesisState; - toJSON(message: _58.GenesisState): unknown; - fromPartial(object: Partial<_58.GenesisState>): _58.GenesisState; - fromAmino(object: _58.GenesisStateAmino): _58.GenesisState; - toAmino(message: _58.GenesisState): _58.GenesisStateAmino; - fromAminoMsg(object: _58.GenesisStateAminoMsg): _58.GenesisState; - toAminoMsg(message: _58.GenesisState): _58.GenesisStateAminoMsg; - fromProtoMsg(message: _58.GenesisStateProtoMsg): _58.GenesisState; - toProto(message: _58.GenesisState): Uint8Array; - toProtoMsg(message: _58.GenesisState): _58.GenesisStateProtoMsg; - }; - }; - } - namespace group { - const v1: { - MsgClientImpl: typeof _225.MsgClientImpl; - QueryClientImpl: typeof _209.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - groupInfo(request: _64.QueryGroupInfoRequest): Promise<_64.QueryGroupInfoResponse>; - groupPolicyInfo(request: _64.QueryGroupPolicyInfoRequest): Promise<_64.QueryGroupPolicyInfoResponse>; - groupMembers(request: _64.QueryGroupMembersRequest): Promise<_64.QueryGroupMembersResponse>; - groupsByAdmin(request: _64.QueryGroupsByAdminRequest): Promise<_64.QueryGroupsByAdminResponse>; - groupPoliciesByGroup(request: _64.QueryGroupPoliciesByGroupRequest): Promise<_64.QueryGroupPoliciesByGroupResponse>; - groupPoliciesByAdmin(request: _64.QueryGroupPoliciesByAdminRequest): Promise<_64.QueryGroupPoliciesByAdminResponse>; - proposal(request: _64.QueryProposalRequest): Promise<_64.QueryProposalResponse>; - proposalsByGroupPolicy(request: _64.QueryProposalsByGroupPolicyRequest): Promise<_64.QueryProposalsByGroupPolicyResponse>; - voteByProposalVoter(request: _64.QueryVoteByProposalVoterRequest): Promise<_64.QueryVoteByProposalVoterResponse>; - votesByProposal(request: _64.QueryVotesByProposalRequest): Promise<_64.QueryVotesByProposalResponse>; - votesByVoter(request: _64.QueryVotesByVoterRequest): Promise<_64.QueryVotesByVoterResponse>; - groupsByMember(request: _64.QueryGroupsByMemberRequest): Promise<_64.QueryGroupsByMemberResponse>; - tallyResult(request: _64.QueryTallyResultRequest): Promise<_64.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _190.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createGroup(value: _65.MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: _65.MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: _65.MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: _65.MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: _65.MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: _65.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: _65.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: _65.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: _65.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: _65.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: _65.MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _65.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: _65.MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: _65.MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: _65.MsgCreateGroup): { - typeUrl: string; - value: _65.MsgCreateGroup; - }; - updateGroupMembers(value: _65.MsgUpdateGroupMembers): { - typeUrl: string; - value: _65.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _65.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _65.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _65.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _65.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _65.MsgCreateGroupPolicy): { - typeUrl: string; - value: _65.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _65.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _65.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _65.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _65.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _65.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _65.MsgSubmitProposal): { - typeUrl: string; - value: _65.MsgSubmitProposal; - }; - withdrawProposal(value: _65.MsgWithdrawProposal): { - typeUrl: string; - value: _65.MsgWithdrawProposal; - }; - vote(value: _65.MsgVote): { - typeUrl: string; - value: _65.MsgVote; - }; - exec(value: _65.MsgExec): { - typeUrl: string; - value: _65.MsgExec; - }; - leaveGroup(value: _65.MsgLeaveGroup): { - typeUrl: string; - value: _65.MsgLeaveGroup; - }; - }; - toJSON: { - createGroup(value: _65.MsgCreateGroup): { - typeUrl: string; - value: unknown; - }; - updateGroupMembers(value: _65.MsgUpdateGroupMembers): { - typeUrl: string; - value: unknown; - }; - updateGroupAdmin(value: _65.MsgUpdateGroupAdmin): { - typeUrl: string; - value: unknown; - }; - updateGroupMetadata(value: _65.MsgUpdateGroupMetadata): { - typeUrl: string; - value: unknown; - }; - createGroupPolicy(value: _65.MsgCreateGroupPolicy): { - typeUrl: string; - value: unknown; - }; - createGroupWithPolicy(value: _65.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyAdmin(value: _65.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyDecisionPolicy(value: _65.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyMetadata(value: _65.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: unknown; - }; - submitProposal(value: _65.MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - withdrawProposal(value: _65.MsgWithdrawProposal): { - typeUrl: string; - value: unknown; - }; - vote(value: _65.MsgVote): { - typeUrl: string; - value: unknown; - }; - exec(value: _65.MsgExec): { - typeUrl: string; - value: unknown; - }; - leaveGroup(value: _65.MsgLeaveGroup): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createGroup(value: any): { - typeUrl: string; - value: _65.MsgCreateGroup; - }; - updateGroupMembers(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: any): { - typeUrl: string; - value: _65.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: any): { - typeUrl: string; - value: _65.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: any): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: any): { - typeUrl: string; - value: _65.MsgSubmitProposal; - }; - withdrawProposal(value: any): { - typeUrl: string; - value: _65.MsgWithdrawProposal; - }; - vote(value: any): { - typeUrl: string; - value: _65.MsgVote; - }; - exec(value: any): { - typeUrl: string; - value: _65.MsgExec; - }; - leaveGroup(value: any): { - typeUrl: string; - value: _65.MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: _65.MsgCreateGroup): { - typeUrl: string; - value: _65.MsgCreateGroup; - }; - updateGroupMembers(value: _65.MsgUpdateGroupMembers): { - typeUrl: string; - value: _65.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _65.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _65.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _65.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _65.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _65.MsgCreateGroupPolicy): { - typeUrl: string; - value: _65.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _65.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _65.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _65.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _65.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _65.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _65.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _65.MsgSubmitProposal): { - typeUrl: string; - value: _65.MsgSubmitProposal; - }; - withdrawProposal(value: _65.MsgWithdrawProposal): { - typeUrl: string; - value: _65.MsgWithdrawProposal; - }; - vote(value: _65.MsgVote): { - typeUrl: string; - value: _65.MsgVote; - }; - exec(value: _65.MsgExec): { - typeUrl: string; - value: _65.MsgExec; - }; - leaveGroup(value: _65.MsgLeaveGroup): { - typeUrl: string; - value: _65.MsgLeaveGroup; - }; - }; - }; - AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: _65.MsgCreateGroup) => _65.MsgCreateGroupAmino; - fromAmino: (object: _65.MsgCreateGroupAmino) => _65.MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupMembers) => _65.MsgUpdateGroupMembersAmino; - fromAmino: (object: _65.MsgUpdateGroupMembersAmino) => _65.MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupAdmin) => _65.MsgUpdateGroupAdminAmino; - fromAmino: (object: _65.MsgUpdateGroupAdminAmino) => _65.MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupMetadata) => _65.MsgUpdateGroupMetadataAmino; - fromAmino: (object: _65.MsgUpdateGroupMetadataAmino) => _65.MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: _65.MsgCreateGroupPolicy) => _65.MsgCreateGroupPolicyAmino; - fromAmino: (object: _65.MsgCreateGroupPolicyAmino) => _65.MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: _65.MsgCreateGroupWithPolicy) => _65.MsgCreateGroupWithPolicyAmino; - fromAmino: (object: _65.MsgCreateGroupWithPolicyAmino) => _65.MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupPolicyAdmin) => _65.MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: _65.MsgUpdateGroupPolicyAdminAmino) => _65.MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupPolicyDecisionPolicy) => _65.MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: _65.MsgUpdateGroupPolicyDecisionPolicyAmino) => _65.MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: _65.MsgUpdateGroupPolicyMetadata) => _65.MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: _65.MsgUpdateGroupPolicyMetadataAmino) => _65.MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _65.MsgSubmitProposal) => _65.MsgSubmitProposalAmino; - fromAmino: (object: _65.MsgSubmitProposalAmino) => _65.MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: _65.MsgWithdrawProposal) => _65.MsgWithdrawProposalAmino; - fromAmino: (object: _65.MsgWithdrawProposalAmino) => _65.MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: _65.MsgVote) => _65.MsgVoteAmino; - fromAmino: (object: _65.MsgVoteAmino) => _65.MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: _65.MsgExec) => _65.MsgExecAmino; - fromAmino: (object: _65.MsgExecAmino) => _65.MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: _65.MsgLeaveGroup) => _65.MsgLeaveGroupAmino; - fromAmino: (object: _65.MsgLeaveGroupAmino) => _65.MsgLeaveGroup; - }; - }; - voteOptionFromJSON(object: any): _66.VoteOption; - voteOptionToJSON(object: _66.VoteOption): string; - proposalStatusFromJSON(object: any): _66.ProposalStatus; - proposalStatusToJSON(object: _66.ProposalStatus): string; - proposalExecutorResultFromJSON(object: any): _66.ProposalExecutorResult; - proposalExecutorResultToJSON(object: _66.ProposalExecutorResult): string; - VoteOption: typeof _66.VoteOption; - VoteOptionSDKType: typeof _66.VoteOption; - VoteOptionAmino: typeof _66.VoteOption; - ProposalStatus: typeof _66.ProposalStatus; - ProposalStatusSDKType: typeof _66.ProposalStatus; - ProposalStatusAmino: typeof _66.ProposalStatus; - ProposalExecutorResult: typeof _66.ProposalExecutorResult; - ProposalExecutorResultSDKType: typeof _66.ProposalExecutorResult; - ProposalExecutorResultAmino: typeof _66.ProposalExecutorResult; - Member: { - typeUrl: string; - encode(message: _66.Member, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Member; - fromJSON(object: any): _66.Member; - toJSON(message: _66.Member): unknown; - fromPartial(object: Partial<_66.Member>): _66.Member; - fromAmino(object: _66.MemberAmino): _66.Member; - toAmino(message: _66.Member): _66.MemberAmino; - fromAminoMsg(object: _66.MemberAminoMsg): _66.Member; - toAminoMsg(message: _66.Member): _66.MemberAminoMsg; - fromProtoMsg(message: _66.MemberProtoMsg): _66.Member; - toProto(message: _66.Member): Uint8Array; - toProtoMsg(message: _66.Member): _66.MemberProtoMsg; - }; - MemberRequest: { - typeUrl: string; - encode(message: _66.MemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.MemberRequest; - fromJSON(object: any): _66.MemberRequest; - toJSON(message: _66.MemberRequest): unknown; - fromPartial(object: Partial<_66.MemberRequest>): _66.MemberRequest; - fromAmino(object: _66.MemberRequestAmino): _66.MemberRequest; - toAmino(message: _66.MemberRequest): _66.MemberRequestAmino; - fromAminoMsg(object: _66.MemberRequestAminoMsg): _66.MemberRequest; - toAminoMsg(message: _66.MemberRequest): _66.MemberRequestAminoMsg; - fromProtoMsg(message: _66.MemberRequestProtoMsg): _66.MemberRequest; - toProto(message: _66.MemberRequest): Uint8Array; - toProtoMsg(message: _66.MemberRequest): _66.MemberRequestProtoMsg; - }; - ThresholdDecisionPolicy: { - typeUrl: string; - encode(message: _66.ThresholdDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.ThresholdDecisionPolicy; - fromJSON(object: any): _66.ThresholdDecisionPolicy; - toJSON(message: _66.ThresholdDecisionPolicy): unknown; - fromPartial(object: Partial<_66.ThresholdDecisionPolicy>): _66.ThresholdDecisionPolicy; - fromAmino(object: _66.ThresholdDecisionPolicyAmino): _66.ThresholdDecisionPolicy; - toAmino(message: _66.ThresholdDecisionPolicy): _66.ThresholdDecisionPolicyAmino; - fromAminoMsg(object: _66.ThresholdDecisionPolicyAminoMsg): _66.ThresholdDecisionPolicy; - toAminoMsg(message: _66.ThresholdDecisionPolicy): _66.ThresholdDecisionPolicyAminoMsg; - fromProtoMsg(message: _66.ThresholdDecisionPolicyProtoMsg): _66.ThresholdDecisionPolicy; - toProto(message: _66.ThresholdDecisionPolicy): Uint8Array; - toProtoMsg(message: _66.ThresholdDecisionPolicy): _66.ThresholdDecisionPolicyProtoMsg; - }; - PercentageDecisionPolicy: { - typeUrl: string; - encode(message: _66.PercentageDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.PercentageDecisionPolicy; - fromJSON(object: any): _66.PercentageDecisionPolicy; - toJSON(message: _66.PercentageDecisionPolicy): unknown; - fromPartial(object: Partial<_66.PercentageDecisionPolicy>): _66.PercentageDecisionPolicy; - fromAmino(object: _66.PercentageDecisionPolicyAmino): _66.PercentageDecisionPolicy; - toAmino(message: _66.PercentageDecisionPolicy): _66.PercentageDecisionPolicyAmino; - fromAminoMsg(object: _66.PercentageDecisionPolicyAminoMsg): _66.PercentageDecisionPolicy; - toAminoMsg(message: _66.PercentageDecisionPolicy): _66.PercentageDecisionPolicyAminoMsg; - fromProtoMsg(message: _66.PercentageDecisionPolicyProtoMsg): _66.PercentageDecisionPolicy; - toProto(message: _66.PercentageDecisionPolicy): Uint8Array; - toProtoMsg(message: _66.PercentageDecisionPolicy): _66.PercentageDecisionPolicyProtoMsg; - }; - DecisionPolicyWindows: { - typeUrl: string; - encode(message: _66.DecisionPolicyWindows, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.DecisionPolicyWindows; - fromJSON(object: any): _66.DecisionPolicyWindows; - toJSON(message: _66.DecisionPolicyWindows): unknown; - fromPartial(object: Partial<_66.DecisionPolicyWindows>): _66.DecisionPolicyWindows; - fromAmino(object: _66.DecisionPolicyWindowsAmino): _66.DecisionPolicyWindows; - toAmino(message: _66.DecisionPolicyWindows): _66.DecisionPolicyWindowsAmino; - fromAminoMsg(object: _66.DecisionPolicyWindowsAminoMsg): _66.DecisionPolicyWindows; - toAminoMsg(message: _66.DecisionPolicyWindows): _66.DecisionPolicyWindowsAminoMsg; - fromProtoMsg(message: _66.DecisionPolicyWindowsProtoMsg): _66.DecisionPolicyWindows; - toProto(message: _66.DecisionPolicyWindows): Uint8Array; - toProtoMsg(message: _66.DecisionPolicyWindows): _66.DecisionPolicyWindowsProtoMsg; - }; - GroupInfo: { - typeUrl: string; - encode(message: _66.GroupInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupInfo; - fromJSON(object: any): _66.GroupInfo; - toJSON(message: _66.GroupInfo): unknown; - fromPartial(object: Partial<_66.GroupInfo>): _66.GroupInfo; - fromAmino(object: _66.GroupInfoAmino): _66.GroupInfo; - toAmino(message: _66.GroupInfo): _66.GroupInfoAmino; - fromAminoMsg(object: _66.GroupInfoAminoMsg): _66.GroupInfo; - toAminoMsg(message: _66.GroupInfo): _66.GroupInfoAminoMsg; - fromProtoMsg(message: _66.GroupInfoProtoMsg): _66.GroupInfo; - toProto(message: _66.GroupInfo): Uint8Array; - toProtoMsg(message: _66.GroupInfo): _66.GroupInfoProtoMsg; - }; - GroupMember: { - typeUrl: string; - encode(message: _66.GroupMember, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupMember; - fromJSON(object: any): _66.GroupMember; - toJSON(message: _66.GroupMember): unknown; - fromPartial(object: Partial<_66.GroupMember>): _66.GroupMember; - fromAmino(object: _66.GroupMemberAmino): _66.GroupMember; - toAmino(message: _66.GroupMember): _66.GroupMemberAmino; - fromAminoMsg(object: _66.GroupMemberAminoMsg): _66.GroupMember; - toAminoMsg(message: _66.GroupMember): _66.GroupMemberAminoMsg; - fromProtoMsg(message: _66.GroupMemberProtoMsg): _66.GroupMember; - toProto(message: _66.GroupMember): Uint8Array; - toProtoMsg(message: _66.GroupMember): _66.GroupMemberProtoMsg; - }; - GroupPolicyInfo: { - typeUrl: string; - encode(message: _66.GroupPolicyInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.GroupPolicyInfo; - fromJSON(object: any): _66.GroupPolicyInfo; - toJSON(message: _66.GroupPolicyInfo): unknown; - fromPartial(object: Partial<_66.GroupPolicyInfo>): _66.GroupPolicyInfo; - fromAmino(object: _66.GroupPolicyInfoAmino): _66.GroupPolicyInfo; - toAmino(message: _66.GroupPolicyInfo): _66.GroupPolicyInfoAmino; - fromAminoMsg(object: _66.GroupPolicyInfoAminoMsg): _66.GroupPolicyInfo; - toAminoMsg(message: _66.GroupPolicyInfo): _66.GroupPolicyInfoAminoMsg; - fromProtoMsg(message: _66.GroupPolicyInfoProtoMsg): _66.GroupPolicyInfo; - toProto(message: _66.GroupPolicyInfo): Uint8Array; - toProtoMsg(message: _66.GroupPolicyInfo): _66.GroupPolicyInfoProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _66.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Proposal; - fromJSON(object: any): _66.Proposal; - toJSON(message: _66.Proposal): unknown; - fromPartial(object: Partial<_66.Proposal>): _66.Proposal; - fromAmino(object: _66.ProposalAmino): _66.Proposal; - toAmino(message: _66.Proposal): _66.ProposalAmino; - fromAminoMsg(object: _66.ProposalAminoMsg): _66.Proposal; - toAminoMsg(message: _66.Proposal): _66.ProposalAminoMsg; - fromProtoMsg(message: _66.ProposalProtoMsg): _66.Proposal; - toProto(message: _66.Proposal): Uint8Array; - toProtoMsg(message: _66.Proposal): _66.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _66.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.TallyResult; - fromJSON(object: any): _66.TallyResult; - toJSON(message: _66.TallyResult): unknown; - fromPartial(object: Partial<_66.TallyResult>): _66.TallyResult; - fromAmino(object: _66.TallyResultAmino): _66.TallyResult; - toAmino(message: _66.TallyResult): _66.TallyResultAmino; - fromAminoMsg(object: _66.TallyResultAminoMsg): _66.TallyResult; - toAminoMsg(message: _66.TallyResult): _66.TallyResultAminoMsg; - fromProtoMsg(message: _66.TallyResultProtoMsg): _66.TallyResult; - toProto(message: _66.TallyResult): Uint8Array; - toProtoMsg(message: _66.TallyResult): _66.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _66.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _66.Vote; - fromJSON(object: any): _66.Vote; - toJSON(message: _66.Vote): unknown; - fromPartial(object: Partial<_66.Vote>): _66.Vote; - fromAmino(object: _66.VoteAmino): _66.Vote; - toAmino(message: _66.Vote): _66.VoteAmino; - fromAminoMsg(object: _66.VoteAminoMsg): _66.Vote; - toAminoMsg(message: _66.Vote): _66.VoteAminoMsg; - fromProtoMsg(message: _66.VoteProtoMsg): _66.Vote; - toProto(message: _66.Vote): Uint8Array; - toProtoMsg(message: _66.Vote): _66.VoteProtoMsg; - }; - DecisionPolicy_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _66.ThresholdDecisionPolicy | _66.PercentageDecisionPolicy; - DecisionPolicy_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - DecisionPolicy_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - execFromJSON(object: any): _65.Exec; - execToJSON(object: _65.Exec): string; - Exec: typeof _65.Exec; - ExecSDKType: typeof _65.Exec; - ExecAmino: typeof _65.Exec; - MsgCreateGroup: { - typeUrl: string; - encode(message: _65.MsgCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroup; - fromJSON(object: any): _65.MsgCreateGroup; - toJSON(message: _65.MsgCreateGroup): unknown; - fromPartial(object: Partial<_65.MsgCreateGroup>): _65.MsgCreateGroup; - fromAmino(object: _65.MsgCreateGroupAmino): _65.MsgCreateGroup; - toAmino(message: _65.MsgCreateGroup): _65.MsgCreateGroupAmino; - fromAminoMsg(object: _65.MsgCreateGroupAminoMsg): _65.MsgCreateGroup; - toAminoMsg(message: _65.MsgCreateGroup): _65.MsgCreateGroupAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupProtoMsg): _65.MsgCreateGroup; - toProto(message: _65.MsgCreateGroup): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroup): _65.MsgCreateGroupProtoMsg; - }; - MsgCreateGroupResponse: { - typeUrl: string; - encode(message: _65.MsgCreateGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupResponse; - fromJSON(object: any): _65.MsgCreateGroupResponse; - toJSON(message: _65.MsgCreateGroupResponse): unknown; - fromPartial(object: Partial<_65.MsgCreateGroupResponse>): _65.MsgCreateGroupResponse; - fromAmino(object: _65.MsgCreateGroupResponseAmino): _65.MsgCreateGroupResponse; - toAmino(message: _65.MsgCreateGroupResponse): _65.MsgCreateGroupResponseAmino; - fromAminoMsg(object: _65.MsgCreateGroupResponseAminoMsg): _65.MsgCreateGroupResponse; - toAminoMsg(message: _65.MsgCreateGroupResponse): _65.MsgCreateGroupResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupResponseProtoMsg): _65.MsgCreateGroupResponse; - toProto(message: _65.MsgCreateGroupResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroupResponse): _65.MsgCreateGroupResponseProtoMsg; - }; - MsgUpdateGroupMembers: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupMembers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMembers; - fromJSON(object: any): _65.MsgUpdateGroupMembers; - toJSON(message: _65.MsgUpdateGroupMembers): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupMembers>): _65.MsgUpdateGroupMembers; - fromAmino(object: _65.MsgUpdateGroupMembersAmino): _65.MsgUpdateGroupMembers; - toAmino(message: _65.MsgUpdateGroupMembers): _65.MsgUpdateGroupMembersAmino; - fromAminoMsg(object: _65.MsgUpdateGroupMembersAminoMsg): _65.MsgUpdateGroupMembers; - toAminoMsg(message: _65.MsgUpdateGroupMembers): _65.MsgUpdateGroupMembersAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupMembersProtoMsg): _65.MsgUpdateGroupMembers; - toProto(message: _65.MsgUpdateGroupMembers): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupMembers): _65.MsgUpdateGroupMembersProtoMsg; - }; - MsgUpdateGroupMembersResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMembersResponse; - fromJSON(_: any): _65.MsgUpdateGroupMembersResponse; - toJSON(_: _65.MsgUpdateGroupMembersResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupMembersResponse>): _65.MsgUpdateGroupMembersResponse; - fromAmino(_: _65.MsgUpdateGroupMembersResponseAmino): _65.MsgUpdateGroupMembersResponse; - toAmino(_: _65.MsgUpdateGroupMembersResponse): _65.MsgUpdateGroupMembersResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupMembersResponseAminoMsg): _65.MsgUpdateGroupMembersResponse; - toAminoMsg(message: _65.MsgUpdateGroupMembersResponse): _65.MsgUpdateGroupMembersResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupMembersResponseProtoMsg): _65.MsgUpdateGroupMembersResponse; - toProto(message: _65.MsgUpdateGroupMembersResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupMembersResponse): _65.MsgUpdateGroupMembersResponseProtoMsg; - }; - MsgUpdateGroupAdmin: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupAdmin; - fromJSON(object: any): _65.MsgUpdateGroupAdmin; - toJSON(message: _65.MsgUpdateGroupAdmin): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupAdmin>): _65.MsgUpdateGroupAdmin; - fromAmino(object: _65.MsgUpdateGroupAdminAmino): _65.MsgUpdateGroupAdmin; - toAmino(message: _65.MsgUpdateGroupAdmin): _65.MsgUpdateGroupAdminAmino; - fromAminoMsg(object: _65.MsgUpdateGroupAdminAminoMsg): _65.MsgUpdateGroupAdmin; - toAminoMsg(message: _65.MsgUpdateGroupAdmin): _65.MsgUpdateGroupAdminAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupAdminProtoMsg): _65.MsgUpdateGroupAdmin; - toProto(message: _65.MsgUpdateGroupAdmin): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupAdmin): _65.MsgUpdateGroupAdminProtoMsg; - }; - MsgUpdateGroupAdminResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupAdminResponse; - fromJSON(_: any): _65.MsgUpdateGroupAdminResponse; - toJSON(_: _65.MsgUpdateGroupAdminResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupAdminResponse>): _65.MsgUpdateGroupAdminResponse; - fromAmino(_: _65.MsgUpdateGroupAdminResponseAmino): _65.MsgUpdateGroupAdminResponse; - toAmino(_: _65.MsgUpdateGroupAdminResponse): _65.MsgUpdateGroupAdminResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupAdminResponseAminoMsg): _65.MsgUpdateGroupAdminResponse; - toAminoMsg(message: _65.MsgUpdateGroupAdminResponse): _65.MsgUpdateGroupAdminResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupAdminResponseProtoMsg): _65.MsgUpdateGroupAdminResponse; - toProto(message: _65.MsgUpdateGroupAdminResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupAdminResponse): _65.MsgUpdateGroupAdminResponseProtoMsg; - }; - MsgUpdateGroupMetadata: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMetadata; - fromJSON(object: any): _65.MsgUpdateGroupMetadata; - toJSON(message: _65.MsgUpdateGroupMetadata): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupMetadata>): _65.MsgUpdateGroupMetadata; - fromAmino(object: _65.MsgUpdateGroupMetadataAmino): _65.MsgUpdateGroupMetadata; - toAmino(message: _65.MsgUpdateGroupMetadata): _65.MsgUpdateGroupMetadataAmino; - fromAminoMsg(object: _65.MsgUpdateGroupMetadataAminoMsg): _65.MsgUpdateGroupMetadata; - toAminoMsg(message: _65.MsgUpdateGroupMetadata): _65.MsgUpdateGroupMetadataAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupMetadataProtoMsg): _65.MsgUpdateGroupMetadata; - toProto(message: _65.MsgUpdateGroupMetadata): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupMetadata): _65.MsgUpdateGroupMetadataProtoMsg; - }; - MsgUpdateGroupMetadataResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupMetadataResponse; - fromJSON(_: any): _65.MsgUpdateGroupMetadataResponse; - toJSON(_: _65.MsgUpdateGroupMetadataResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupMetadataResponse>): _65.MsgUpdateGroupMetadataResponse; - fromAmino(_: _65.MsgUpdateGroupMetadataResponseAmino): _65.MsgUpdateGroupMetadataResponse; - toAmino(_: _65.MsgUpdateGroupMetadataResponse): _65.MsgUpdateGroupMetadataResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupMetadataResponseAminoMsg): _65.MsgUpdateGroupMetadataResponse; - toAminoMsg(message: _65.MsgUpdateGroupMetadataResponse): _65.MsgUpdateGroupMetadataResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupMetadataResponseProtoMsg): _65.MsgUpdateGroupMetadataResponse; - toProto(message: _65.MsgUpdateGroupMetadataResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupMetadataResponse): _65.MsgUpdateGroupMetadataResponseProtoMsg; - }; - MsgCreateGroupPolicy: { - typeUrl: string; - encode(message: _65.MsgCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupPolicy; - fromJSON(object: any): _65.MsgCreateGroupPolicy; - toJSON(message: _65.MsgCreateGroupPolicy): unknown; - fromPartial(object: Partial<_65.MsgCreateGroupPolicy>): _65.MsgCreateGroupPolicy; - fromAmino(object: _65.MsgCreateGroupPolicyAmino): _65.MsgCreateGroupPolicy; - toAmino(message: _65.MsgCreateGroupPolicy): _65.MsgCreateGroupPolicyAmino; - fromAminoMsg(object: _65.MsgCreateGroupPolicyAminoMsg): _65.MsgCreateGroupPolicy; - toAminoMsg(message: _65.MsgCreateGroupPolicy): _65.MsgCreateGroupPolicyAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupPolicyProtoMsg): _65.MsgCreateGroupPolicy; - toProto(message: _65.MsgCreateGroupPolicy): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroupPolicy): _65.MsgCreateGroupPolicyProtoMsg; - }; - MsgCreateGroupPolicyResponse: { - typeUrl: string; - encode(message: _65.MsgCreateGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupPolicyResponse; - fromJSON(object: any): _65.MsgCreateGroupPolicyResponse; - toJSON(message: _65.MsgCreateGroupPolicyResponse): unknown; - fromPartial(object: Partial<_65.MsgCreateGroupPolicyResponse>): _65.MsgCreateGroupPolicyResponse; - fromAmino(object: _65.MsgCreateGroupPolicyResponseAmino): _65.MsgCreateGroupPolicyResponse; - toAmino(message: _65.MsgCreateGroupPolicyResponse): _65.MsgCreateGroupPolicyResponseAmino; - fromAminoMsg(object: _65.MsgCreateGroupPolicyResponseAminoMsg): _65.MsgCreateGroupPolicyResponse; - toAminoMsg(message: _65.MsgCreateGroupPolicyResponse): _65.MsgCreateGroupPolicyResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupPolicyResponseProtoMsg): _65.MsgCreateGroupPolicyResponse; - toProto(message: _65.MsgCreateGroupPolicyResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroupPolicyResponse): _65.MsgCreateGroupPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyAdmin: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupPolicyAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdmin; - fromJSON(object: any): _65.MsgUpdateGroupPolicyAdmin; - toJSON(message: _65.MsgUpdateGroupPolicyAdmin): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupPolicyAdmin>): _65.MsgUpdateGroupPolicyAdmin; - fromAmino(object: _65.MsgUpdateGroupPolicyAdminAmino): _65.MsgUpdateGroupPolicyAdmin; - toAmino(message: _65.MsgUpdateGroupPolicyAdmin): _65.MsgUpdateGroupPolicyAdminAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyAdminAminoMsg): _65.MsgUpdateGroupPolicyAdmin; - toAminoMsg(message: _65.MsgUpdateGroupPolicyAdmin): _65.MsgUpdateGroupPolicyAdminAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyAdminProtoMsg): _65.MsgUpdateGroupPolicyAdmin; - toProto(message: _65.MsgUpdateGroupPolicyAdmin): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyAdmin): _65.MsgUpdateGroupPolicyAdminProtoMsg; - }; - MsgUpdateGroupPolicyAdminResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupPolicyAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyAdminResponse; - fromJSON(_: any): _65.MsgUpdateGroupPolicyAdminResponse; - toJSON(_: _65.MsgUpdateGroupPolicyAdminResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupPolicyAdminResponse>): _65.MsgUpdateGroupPolicyAdminResponse; - fromAmino(_: _65.MsgUpdateGroupPolicyAdminResponseAmino): _65.MsgUpdateGroupPolicyAdminResponse; - toAmino(_: _65.MsgUpdateGroupPolicyAdminResponse): _65.MsgUpdateGroupPolicyAdminResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyAdminResponseAminoMsg): _65.MsgUpdateGroupPolicyAdminResponse; - toAminoMsg(message: _65.MsgUpdateGroupPolicyAdminResponse): _65.MsgUpdateGroupPolicyAdminResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyAdminResponseProtoMsg): _65.MsgUpdateGroupPolicyAdminResponse; - toProto(message: _65.MsgUpdateGroupPolicyAdminResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyAdminResponse): _65.MsgUpdateGroupPolicyAdminResponseProtoMsg; - }; - MsgCreateGroupWithPolicy: { - typeUrl: string; - encode(message: _65.MsgCreateGroupWithPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupWithPolicy; - fromJSON(object: any): _65.MsgCreateGroupWithPolicy; - toJSON(message: _65.MsgCreateGroupWithPolicy): unknown; - fromPartial(object: Partial<_65.MsgCreateGroupWithPolicy>): _65.MsgCreateGroupWithPolicy; - fromAmino(object: _65.MsgCreateGroupWithPolicyAmino): _65.MsgCreateGroupWithPolicy; - toAmino(message: _65.MsgCreateGroupWithPolicy): _65.MsgCreateGroupWithPolicyAmino; - fromAminoMsg(object: _65.MsgCreateGroupWithPolicyAminoMsg): _65.MsgCreateGroupWithPolicy; - toAminoMsg(message: _65.MsgCreateGroupWithPolicy): _65.MsgCreateGroupWithPolicyAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupWithPolicyProtoMsg): _65.MsgCreateGroupWithPolicy; - toProto(message: _65.MsgCreateGroupWithPolicy): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroupWithPolicy): _65.MsgCreateGroupWithPolicyProtoMsg; - }; - MsgCreateGroupWithPolicyResponse: { - typeUrl: string; - encode(message: _65.MsgCreateGroupWithPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgCreateGroupWithPolicyResponse; - fromJSON(object: any): _65.MsgCreateGroupWithPolicyResponse; - toJSON(message: _65.MsgCreateGroupWithPolicyResponse): unknown; - fromPartial(object: Partial<_65.MsgCreateGroupWithPolicyResponse>): _65.MsgCreateGroupWithPolicyResponse; - fromAmino(object: _65.MsgCreateGroupWithPolicyResponseAmino): _65.MsgCreateGroupWithPolicyResponse; - toAmino(message: _65.MsgCreateGroupWithPolicyResponse): _65.MsgCreateGroupWithPolicyResponseAmino; - fromAminoMsg(object: _65.MsgCreateGroupWithPolicyResponseAminoMsg): _65.MsgCreateGroupWithPolicyResponse; - toAminoMsg(message: _65.MsgCreateGroupWithPolicyResponse): _65.MsgCreateGroupWithPolicyResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreateGroupWithPolicyResponseProtoMsg): _65.MsgCreateGroupWithPolicyResponse; - toProto(message: _65.MsgCreateGroupWithPolicyResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreateGroupWithPolicyResponse): _65.MsgCreateGroupWithPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyDecisionPolicy: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicy; - fromJSON(object: any): _65.MsgUpdateGroupPolicyDecisionPolicy; - toJSON(message: _65.MsgUpdateGroupPolicyDecisionPolicy): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupPolicyDecisionPolicy>): _65.MsgUpdateGroupPolicyDecisionPolicy; - fromAmino(object: _65.MsgUpdateGroupPolicyDecisionPolicyAmino): _65.MsgUpdateGroupPolicyDecisionPolicy; - toAmino(message: _65.MsgUpdateGroupPolicyDecisionPolicy): _65.MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyDecisionPolicyAminoMsg): _65.MsgUpdateGroupPolicyDecisionPolicy; - toAminoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicy): _65.MsgUpdateGroupPolicyDecisionPolicyAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicyProtoMsg): _65.MsgUpdateGroupPolicyDecisionPolicy; - toProto(message: _65.MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicy): _65.MsgUpdateGroupPolicyDecisionPolicyProtoMsg; - }; - MsgUpdateGroupPolicyDecisionPolicyResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - fromJSON(_: any): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - toJSON(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupPolicyDecisionPolicyResponse>): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - fromAmino(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponseAmino): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - toAmino(_: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): _65.MsgUpdateGroupPolicyDecisionPolicyResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - toAminoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): _65.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): _65.MsgUpdateGroupPolicyDecisionPolicyResponse; - toProto(message: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyDecisionPolicyResponse): _65.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyMetadata: { - typeUrl: string; - encode(message: _65.MsgUpdateGroupPolicyMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadata; - fromJSON(object: any): _65.MsgUpdateGroupPolicyMetadata; - toJSON(message: _65.MsgUpdateGroupPolicyMetadata): unknown; - fromPartial(object: Partial<_65.MsgUpdateGroupPolicyMetadata>): _65.MsgUpdateGroupPolicyMetadata; - fromAmino(object: _65.MsgUpdateGroupPolicyMetadataAmino): _65.MsgUpdateGroupPolicyMetadata; - toAmino(message: _65.MsgUpdateGroupPolicyMetadata): _65.MsgUpdateGroupPolicyMetadataAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyMetadataAminoMsg): _65.MsgUpdateGroupPolicyMetadata; - toAminoMsg(message: _65.MsgUpdateGroupPolicyMetadata): _65.MsgUpdateGroupPolicyMetadataAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyMetadataProtoMsg): _65.MsgUpdateGroupPolicyMetadata; - toProto(message: _65.MsgUpdateGroupPolicyMetadata): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyMetadata): _65.MsgUpdateGroupPolicyMetadataProtoMsg; - }; - MsgUpdateGroupPolicyMetadataResponse: { - typeUrl: string; - encode(_: _65.MsgUpdateGroupPolicyMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgUpdateGroupPolicyMetadataResponse; - fromJSON(_: any): _65.MsgUpdateGroupPolicyMetadataResponse; - toJSON(_: _65.MsgUpdateGroupPolicyMetadataResponse): unknown; - fromPartial(_: Partial<_65.MsgUpdateGroupPolicyMetadataResponse>): _65.MsgUpdateGroupPolicyMetadataResponse; - fromAmino(_: _65.MsgUpdateGroupPolicyMetadataResponseAmino): _65.MsgUpdateGroupPolicyMetadataResponse; - toAmino(_: _65.MsgUpdateGroupPolicyMetadataResponse): _65.MsgUpdateGroupPolicyMetadataResponseAmino; - fromAminoMsg(object: _65.MsgUpdateGroupPolicyMetadataResponseAminoMsg): _65.MsgUpdateGroupPolicyMetadataResponse; - toAminoMsg(message: _65.MsgUpdateGroupPolicyMetadataResponse): _65.MsgUpdateGroupPolicyMetadataResponseAminoMsg; - fromProtoMsg(message: _65.MsgUpdateGroupPolicyMetadataResponseProtoMsg): _65.MsgUpdateGroupPolicyMetadataResponse; - toProto(message: _65.MsgUpdateGroupPolicyMetadataResponse): Uint8Array; - toProtoMsg(message: _65.MsgUpdateGroupPolicyMetadataResponse): _65.MsgUpdateGroupPolicyMetadataResponseProtoMsg; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _65.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgSubmitProposal; - fromJSON(object: any): _65.MsgSubmitProposal; - toJSON(message: _65.MsgSubmitProposal): unknown; - fromPartial(object: Partial<_65.MsgSubmitProposal>): _65.MsgSubmitProposal; - fromAmino(object: _65.MsgSubmitProposalAmino): _65.MsgSubmitProposal; - toAmino(message: _65.MsgSubmitProposal): _65.MsgSubmitProposalAmino; - fromAminoMsg(object: _65.MsgSubmitProposalAminoMsg): _65.MsgSubmitProposal; - toAminoMsg(message: _65.MsgSubmitProposal): _65.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _65.MsgSubmitProposalProtoMsg): _65.MsgSubmitProposal; - toProto(message: _65.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _65.MsgSubmitProposal): _65.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _65.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgSubmitProposalResponse; - fromJSON(object: any): _65.MsgSubmitProposalResponse; - toJSON(message: _65.MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial<_65.MsgSubmitProposalResponse>): _65.MsgSubmitProposalResponse; - fromAmino(object: _65.MsgSubmitProposalResponseAmino): _65.MsgSubmitProposalResponse; - toAmino(message: _65.MsgSubmitProposalResponse): _65.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _65.MsgSubmitProposalResponseAminoMsg): _65.MsgSubmitProposalResponse; - toAminoMsg(message: _65.MsgSubmitProposalResponse): _65.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _65.MsgSubmitProposalResponseProtoMsg): _65.MsgSubmitProposalResponse; - toProto(message: _65.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _65.MsgSubmitProposalResponse): _65.MsgSubmitProposalResponseProtoMsg; - }; - MsgWithdrawProposal: { - typeUrl: string; - encode(message: _65.MsgWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgWithdrawProposal; - fromJSON(object: any): _65.MsgWithdrawProposal; - toJSON(message: _65.MsgWithdrawProposal): unknown; - fromPartial(object: Partial<_65.MsgWithdrawProposal>): _65.MsgWithdrawProposal; - fromAmino(object: _65.MsgWithdrawProposalAmino): _65.MsgWithdrawProposal; - toAmino(message: _65.MsgWithdrawProposal): _65.MsgWithdrawProposalAmino; - fromAminoMsg(object: _65.MsgWithdrawProposalAminoMsg): _65.MsgWithdrawProposal; - toAminoMsg(message: _65.MsgWithdrawProposal): _65.MsgWithdrawProposalAminoMsg; - fromProtoMsg(message: _65.MsgWithdrawProposalProtoMsg): _65.MsgWithdrawProposal; - toProto(message: _65.MsgWithdrawProposal): Uint8Array; - toProtoMsg(message: _65.MsgWithdrawProposal): _65.MsgWithdrawProposalProtoMsg; - }; - MsgWithdrawProposalResponse: { - typeUrl: string; - encode(_: _65.MsgWithdrawProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgWithdrawProposalResponse; - fromJSON(_: any): _65.MsgWithdrawProposalResponse; - toJSON(_: _65.MsgWithdrawProposalResponse): unknown; - fromPartial(_: Partial<_65.MsgWithdrawProposalResponse>): _65.MsgWithdrawProposalResponse; - fromAmino(_: _65.MsgWithdrawProposalResponseAmino): _65.MsgWithdrawProposalResponse; - toAmino(_: _65.MsgWithdrawProposalResponse): _65.MsgWithdrawProposalResponseAmino; - fromAminoMsg(object: _65.MsgWithdrawProposalResponseAminoMsg): _65.MsgWithdrawProposalResponse; - toAminoMsg(message: _65.MsgWithdrawProposalResponse): _65.MsgWithdrawProposalResponseAminoMsg; - fromProtoMsg(message: _65.MsgWithdrawProposalResponseProtoMsg): _65.MsgWithdrawProposalResponse; - toProto(message: _65.MsgWithdrawProposalResponse): Uint8Array; - toProtoMsg(message: _65.MsgWithdrawProposalResponse): _65.MsgWithdrawProposalResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _65.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgVote; - fromJSON(object: any): _65.MsgVote; - toJSON(message: _65.MsgVote): unknown; - fromPartial(object: Partial<_65.MsgVote>): _65.MsgVote; - fromAmino(object: _65.MsgVoteAmino): _65.MsgVote; - toAmino(message: _65.MsgVote): _65.MsgVoteAmino; - fromAminoMsg(object: _65.MsgVoteAminoMsg): _65.MsgVote; - toAminoMsg(message: _65.MsgVote): _65.MsgVoteAminoMsg; - fromProtoMsg(message: _65.MsgVoteProtoMsg): _65.MsgVote; - toProto(message: _65.MsgVote): Uint8Array; - toProtoMsg(message: _65.MsgVote): _65.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _65.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgVoteResponse; - fromJSON(_: any): _65.MsgVoteResponse; - toJSON(_: _65.MsgVoteResponse): unknown; - fromPartial(_: Partial<_65.MsgVoteResponse>): _65.MsgVoteResponse; - fromAmino(_: _65.MsgVoteResponseAmino): _65.MsgVoteResponse; - toAmino(_: _65.MsgVoteResponse): _65.MsgVoteResponseAmino; - fromAminoMsg(object: _65.MsgVoteResponseAminoMsg): _65.MsgVoteResponse; - toAminoMsg(message: _65.MsgVoteResponse): _65.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _65.MsgVoteResponseProtoMsg): _65.MsgVoteResponse; - toProto(message: _65.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _65.MsgVoteResponse): _65.MsgVoteResponseProtoMsg; - }; - MsgExec: { - typeUrl: string; - encode(message: _65.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgExec; - fromJSON(object: any): _65.MsgExec; - toJSON(message: _65.MsgExec): unknown; - fromPartial(object: Partial<_65.MsgExec>): _65.MsgExec; - fromAmino(object: _65.MsgExecAmino): _65.MsgExec; - toAmino(message: _65.MsgExec): _65.MsgExecAmino; - fromAminoMsg(object: _65.MsgExecAminoMsg): _65.MsgExec; - toAminoMsg(message: _65.MsgExec): _65.MsgExecAminoMsg; - fromProtoMsg(message: _65.MsgExecProtoMsg): _65.MsgExec; - toProto(message: _65.MsgExec): Uint8Array; - toProtoMsg(message: _65.MsgExec): _65.MsgExecProtoMsg; - }; - MsgExecResponse: { - typeUrl: string; - encode(message: _65.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgExecResponse; - fromJSON(object: any): _65.MsgExecResponse; - toJSON(message: _65.MsgExecResponse): unknown; - fromPartial(object: Partial<_65.MsgExecResponse>): _65.MsgExecResponse; - fromAmino(object: _65.MsgExecResponseAmino): _65.MsgExecResponse; - toAmino(message: _65.MsgExecResponse): _65.MsgExecResponseAmino; - fromAminoMsg(object: _65.MsgExecResponseAminoMsg): _65.MsgExecResponse; - toAminoMsg(message: _65.MsgExecResponse): _65.MsgExecResponseAminoMsg; - fromProtoMsg(message: _65.MsgExecResponseProtoMsg): _65.MsgExecResponse; - toProto(message: _65.MsgExecResponse): Uint8Array; - toProtoMsg(message: _65.MsgExecResponse): _65.MsgExecResponseProtoMsg; - }; - MsgLeaveGroup: { - typeUrl: string; - encode(message: _65.MsgLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgLeaveGroup; - fromJSON(object: any): _65.MsgLeaveGroup; - toJSON(message: _65.MsgLeaveGroup): unknown; - fromPartial(object: Partial<_65.MsgLeaveGroup>): _65.MsgLeaveGroup; - fromAmino(object: _65.MsgLeaveGroupAmino): _65.MsgLeaveGroup; - toAmino(message: _65.MsgLeaveGroup): _65.MsgLeaveGroupAmino; - fromAminoMsg(object: _65.MsgLeaveGroupAminoMsg): _65.MsgLeaveGroup; - toAminoMsg(message: _65.MsgLeaveGroup): _65.MsgLeaveGroupAminoMsg; - fromProtoMsg(message: _65.MsgLeaveGroupProtoMsg): _65.MsgLeaveGroup; - toProto(message: _65.MsgLeaveGroup): Uint8Array; - toProtoMsg(message: _65.MsgLeaveGroup): _65.MsgLeaveGroupProtoMsg; - }; - MsgLeaveGroupResponse: { - typeUrl: string; - encode(_: _65.MsgLeaveGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _65.MsgLeaveGroupResponse; - fromJSON(_: any): _65.MsgLeaveGroupResponse; - toJSON(_: _65.MsgLeaveGroupResponse): unknown; - fromPartial(_: Partial<_65.MsgLeaveGroupResponse>): _65.MsgLeaveGroupResponse; - fromAmino(_: _65.MsgLeaveGroupResponseAmino): _65.MsgLeaveGroupResponse; - toAmino(_: _65.MsgLeaveGroupResponse): _65.MsgLeaveGroupResponseAmino; - fromAminoMsg(object: _65.MsgLeaveGroupResponseAminoMsg): _65.MsgLeaveGroupResponse; - toAminoMsg(message: _65.MsgLeaveGroupResponse): _65.MsgLeaveGroupResponseAminoMsg; - fromProtoMsg(message: _65.MsgLeaveGroupResponseProtoMsg): _65.MsgLeaveGroupResponse; - toProto(message: _65.MsgLeaveGroupResponse): Uint8Array; - toProtoMsg(message: _65.MsgLeaveGroupResponse): _65.MsgLeaveGroupResponseProtoMsg; - }; - QueryGroupInfoRequest: { - typeUrl: string; - encode(message: _64.QueryGroupInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupInfoRequest; - fromJSON(object: any): _64.QueryGroupInfoRequest; - toJSON(message: _64.QueryGroupInfoRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupInfoRequest>): _64.QueryGroupInfoRequest; - fromAmino(object: _64.QueryGroupInfoRequestAmino): _64.QueryGroupInfoRequest; - toAmino(message: _64.QueryGroupInfoRequest): _64.QueryGroupInfoRequestAmino; - fromAminoMsg(object: _64.QueryGroupInfoRequestAminoMsg): _64.QueryGroupInfoRequest; - toAminoMsg(message: _64.QueryGroupInfoRequest): _64.QueryGroupInfoRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupInfoRequestProtoMsg): _64.QueryGroupInfoRequest; - toProto(message: _64.QueryGroupInfoRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupInfoRequest): _64.QueryGroupInfoRequestProtoMsg; - }; - QueryGroupInfoResponse: { - typeUrl: string; - encode(message: _64.QueryGroupInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupInfoResponse; - fromJSON(object: any): _64.QueryGroupInfoResponse; - toJSON(message: _64.QueryGroupInfoResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupInfoResponse>): _64.QueryGroupInfoResponse; - fromAmino(object: _64.QueryGroupInfoResponseAmino): _64.QueryGroupInfoResponse; - toAmino(message: _64.QueryGroupInfoResponse): _64.QueryGroupInfoResponseAmino; - fromAminoMsg(object: _64.QueryGroupInfoResponseAminoMsg): _64.QueryGroupInfoResponse; - toAminoMsg(message: _64.QueryGroupInfoResponse): _64.QueryGroupInfoResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupInfoResponseProtoMsg): _64.QueryGroupInfoResponse; - toProto(message: _64.QueryGroupInfoResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupInfoResponse): _64.QueryGroupInfoResponseProtoMsg; - }; - QueryGroupPolicyInfoRequest: { - typeUrl: string; - encode(message: _64.QueryGroupPolicyInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPolicyInfoRequest; - fromJSON(object: any): _64.QueryGroupPolicyInfoRequest; - toJSON(message: _64.QueryGroupPolicyInfoRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupPolicyInfoRequest>): _64.QueryGroupPolicyInfoRequest; - fromAmino(object: _64.QueryGroupPolicyInfoRequestAmino): _64.QueryGroupPolicyInfoRequest; - toAmino(message: _64.QueryGroupPolicyInfoRequest): _64.QueryGroupPolicyInfoRequestAmino; - fromAminoMsg(object: _64.QueryGroupPolicyInfoRequestAminoMsg): _64.QueryGroupPolicyInfoRequest; - toAminoMsg(message: _64.QueryGroupPolicyInfoRequest): _64.QueryGroupPolicyInfoRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupPolicyInfoRequestProtoMsg): _64.QueryGroupPolicyInfoRequest; - toProto(message: _64.QueryGroupPolicyInfoRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupPolicyInfoRequest): _64.QueryGroupPolicyInfoRequestProtoMsg; - }; - QueryGroupPolicyInfoResponse: { - typeUrl: string; - encode(message: _64.QueryGroupPolicyInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPolicyInfoResponse; - fromJSON(object: any): _64.QueryGroupPolicyInfoResponse; - toJSON(message: _64.QueryGroupPolicyInfoResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupPolicyInfoResponse>): _64.QueryGroupPolicyInfoResponse; - fromAmino(object: _64.QueryGroupPolicyInfoResponseAmino): _64.QueryGroupPolicyInfoResponse; - toAmino(message: _64.QueryGroupPolicyInfoResponse): _64.QueryGroupPolicyInfoResponseAmino; - fromAminoMsg(object: _64.QueryGroupPolicyInfoResponseAminoMsg): _64.QueryGroupPolicyInfoResponse; - toAminoMsg(message: _64.QueryGroupPolicyInfoResponse): _64.QueryGroupPolicyInfoResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupPolicyInfoResponseProtoMsg): _64.QueryGroupPolicyInfoResponse; - toProto(message: _64.QueryGroupPolicyInfoResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupPolicyInfoResponse): _64.QueryGroupPolicyInfoResponseProtoMsg; - }; - QueryGroupMembersRequest: { - typeUrl: string; - encode(message: _64.QueryGroupMembersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupMembersRequest; - fromJSON(object: any): _64.QueryGroupMembersRequest; - toJSON(message: _64.QueryGroupMembersRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupMembersRequest>): _64.QueryGroupMembersRequest; - fromAmino(object: _64.QueryGroupMembersRequestAmino): _64.QueryGroupMembersRequest; - toAmino(message: _64.QueryGroupMembersRequest): _64.QueryGroupMembersRequestAmino; - fromAminoMsg(object: _64.QueryGroupMembersRequestAminoMsg): _64.QueryGroupMembersRequest; - toAminoMsg(message: _64.QueryGroupMembersRequest): _64.QueryGroupMembersRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupMembersRequestProtoMsg): _64.QueryGroupMembersRequest; - toProto(message: _64.QueryGroupMembersRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupMembersRequest): _64.QueryGroupMembersRequestProtoMsg; - }; - QueryGroupMembersResponse: { - typeUrl: string; - encode(message: _64.QueryGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupMembersResponse; - fromJSON(object: any): _64.QueryGroupMembersResponse; - toJSON(message: _64.QueryGroupMembersResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupMembersResponse>): _64.QueryGroupMembersResponse; - fromAmino(object: _64.QueryGroupMembersResponseAmino): _64.QueryGroupMembersResponse; - toAmino(message: _64.QueryGroupMembersResponse): _64.QueryGroupMembersResponseAmino; - fromAminoMsg(object: _64.QueryGroupMembersResponseAminoMsg): _64.QueryGroupMembersResponse; - toAminoMsg(message: _64.QueryGroupMembersResponse): _64.QueryGroupMembersResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupMembersResponseProtoMsg): _64.QueryGroupMembersResponse; - toProto(message: _64.QueryGroupMembersResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupMembersResponse): _64.QueryGroupMembersResponseProtoMsg; - }; - QueryGroupsByAdminRequest: { - typeUrl: string; - encode(message: _64.QueryGroupsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByAdminRequest; - fromJSON(object: any): _64.QueryGroupsByAdminRequest; - toJSON(message: _64.QueryGroupsByAdminRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupsByAdminRequest>): _64.QueryGroupsByAdminRequest; - fromAmino(object: _64.QueryGroupsByAdminRequestAmino): _64.QueryGroupsByAdminRequest; - toAmino(message: _64.QueryGroupsByAdminRequest): _64.QueryGroupsByAdminRequestAmino; - fromAminoMsg(object: _64.QueryGroupsByAdminRequestAminoMsg): _64.QueryGroupsByAdminRequest; - toAminoMsg(message: _64.QueryGroupsByAdminRequest): _64.QueryGroupsByAdminRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupsByAdminRequestProtoMsg): _64.QueryGroupsByAdminRequest; - toProto(message: _64.QueryGroupsByAdminRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupsByAdminRequest): _64.QueryGroupsByAdminRequestProtoMsg; - }; - QueryGroupsByAdminResponse: { - typeUrl: string; - encode(message: _64.QueryGroupsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByAdminResponse; - fromJSON(object: any): _64.QueryGroupsByAdminResponse; - toJSON(message: _64.QueryGroupsByAdminResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupsByAdminResponse>): _64.QueryGroupsByAdminResponse; - fromAmino(object: _64.QueryGroupsByAdminResponseAmino): _64.QueryGroupsByAdminResponse; - toAmino(message: _64.QueryGroupsByAdminResponse): _64.QueryGroupsByAdminResponseAmino; - fromAminoMsg(object: _64.QueryGroupsByAdminResponseAminoMsg): _64.QueryGroupsByAdminResponse; - toAminoMsg(message: _64.QueryGroupsByAdminResponse): _64.QueryGroupsByAdminResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupsByAdminResponseProtoMsg): _64.QueryGroupsByAdminResponse; - toProto(message: _64.QueryGroupsByAdminResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupsByAdminResponse): _64.QueryGroupsByAdminResponseProtoMsg; - }; - QueryGroupPoliciesByGroupRequest: { - typeUrl: string; - encode(message: _64.QueryGroupPoliciesByGroupRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByGroupRequest; - fromJSON(object: any): _64.QueryGroupPoliciesByGroupRequest; - toJSON(message: _64.QueryGroupPoliciesByGroupRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupPoliciesByGroupRequest>): _64.QueryGroupPoliciesByGroupRequest; - fromAmino(object: _64.QueryGroupPoliciesByGroupRequestAmino): _64.QueryGroupPoliciesByGroupRequest; - toAmino(message: _64.QueryGroupPoliciesByGroupRequest): _64.QueryGroupPoliciesByGroupRequestAmino; - fromAminoMsg(object: _64.QueryGroupPoliciesByGroupRequestAminoMsg): _64.QueryGroupPoliciesByGroupRequest; - toAminoMsg(message: _64.QueryGroupPoliciesByGroupRequest): _64.QueryGroupPoliciesByGroupRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupPoliciesByGroupRequestProtoMsg): _64.QueryGroupPoliciesByGroupRequest; - toProto(message: _64.QueryGroupPoliciesByGroupRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupPoliciesByGroupRequest): _64.QueryGroupPoliciesByGroupRequestProtoMsg; - }; - QueryGroupPoliciesByGroupResponse: { - typeUrl: string; - encode(message: _64.QueryGroupPoliciesByGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByGroupResponse; - fromJSON(object: any): _64.QueryGroupPoliciesByGroupResponse; - toJSON(message: _64.QueryGroupPoliciesByGroupResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupPoliciesByGroupResponse>): _64.QueryGroupPoliciesByGroupResponse; - fromAmino(object: _64.QueryGroupPoliciesByGroupResponseAmino): _64.QueryGroupPoliciesByGroupResponse; - toAmino(message: _64.QueryGroupPoliciesByGroupResponse): _64.QueryGroupPoliciesByGroupResponseAmino; - fromAminoMsg(object: _64.QueryGroupPoliciesByGroupResponseAminoMsg): _64.QueryGroupPoliciesByGroupResponse; - toAminoMsg(message: _64.QueryGroupPoliciesByGroupResponse): _64.QueryGroupPoliciesByGroupResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupPoliciesByGroupResponseProtoMsg): _64.QueryGroupPoliciesByGroupResponse; - toProto(message: _64.QueryGroupPoliciesByGroupResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupPoliciesByGroupResponse): _64.QueryGroupPoliciesByGroupResponseProtoMsg; - }; - QueryGroupPoliciesByAdminRequest: { - typeUrl: string; - encode(message: _64.QueryGroupPoliciesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByAdminRequest; - fromJSON(object: any): _64.QueryGroupPoliciesByAdminRequest; - toJSON(message: _64.QueryGroupPoliciesByAdminRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupPoliciesByAdminRequest>): _64.QueryGroupPoliciesByAdminRequest; - fromAmino(object: _64.QueryGroupPoliciesByAdminRequestAmino): _64.QueryGroupPoliciesByAdminRequest; - toAmino(message: _64.QueryGroupPoliciesByAdminRequest): _64.QueryGroupPoliciesByAdminRequestAmino; - fromAminoMsg(object: _64.QueryGroupPoliciesByAdminRequestAminoMsg): _64.QueryGroupPoliciesByAdminRequest; - toAminoMsg(message: _64.QueryGroupPoliciesByAdminRequest): _64.QueryGroupPoliciesByAdminRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupPoliciesByAdminRequestProtoMsg): _64.QueryGroupPoliciesByAdminRequest; - toProto(message: _64.QueryGroupPoliciesByAdminRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupPoliciesByAdminRequest): _64.QueryGroupPoliciesByAdminRequestProtoMsg; - }; - QueryGroupPoliciesByAdminResponse: { - typeUrl: string; - encode(message: _64.QueryGroupPoliciesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupPoliciesByAdminResponse; - fromJSON(object: any): _64.QueryGroupPoliciesByAdminResponse; - toJSON(message: _64.QueryGroupPoliciesByAdminResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupPoliciesByAdminResponse>): _64.QueryGroupPoliciesByAdminResponse; - fromAmino(object: _64.QueryGroupPoliciesByAdminResponseAmino): _64.QueryGroupPoliciesByAdminResponse; - toAmino(message: _64.QueryGroupPoliciesByAdminResponse): _64.QueryGroupPoliciesByAdminResponseAmino; - fromAminoMsg(object: _64.QueryGroupPoliciesByAdminResponseAminoMsg): _64.QueryGroupPoliciesByAdminResponse; - toAminoMsg(message: _64.QueryGroupPoliciesByAdminResponse): _64.QueryGroupPoliciesByAdminResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupPoliciesByAdminResponseProtoMsg): _64.QueryGroupPoliciesByAdminResponse; - toProto(message: _64.QueryGroupPoliciesByAdminResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupPoliciesByAdminResponse): _64.QueryGroupPoliciesByAdminResponseProtoMsg; - }; - QueryProposalRequest: { - typeUrl: string; - encode(message: _64.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalRequest; - fromJSON(object: any): _64.QueryProposalRequest; - toJSON(message: _64.QueryProposalRequest): unknown; - fromPartial(object: Partial<_64.QueryProposalRequest>): _64.QueryProposalRequest; - fromAmino(object: _64.QueryProposalRequestAmino): _64.QueryProposalRequest; - toAmino(message: _64.QueryProposalRequest): _64.QueryProposalRequestAmino; - fromAminoMsg(object: _64.QueryProposalRequestAminoMsg): _64.QueryProposalRequest; - toAminoMsg(message: _64.QueryProposalRequest): _64.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _64.QueryProposalRequestProtoMsg): _64.QueryProposalRequest; - toProto(message: _64.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _64.QueryProposalRequest): _64.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _64.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalResponse; - fromJSON(object: any): _64.QueryProposalResponse; - toJSON(message: _64.QueryProposalResponse): unknown; - fromPartial(object: Partial<_64.QueryProposalResponse>): _64.QueryProposalResponse; - fromAmino(object: _64.QueryProposalResponseAmino): _64.QueryProposalResponse; - toAmino(message: _64.QueryProposalResponse): _64.QueryProposalResponseAmino; - fromAminoMsg(object: _64.QueryProposalResponseAminoMsg): _64.QueryProposalResponse; - toAminoMsg(message: _64.QueryProposalResponse): _64.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _64.QueryProposalResponseProtoMsg): _64.QueryProposalResponse; - toProto(message: _64.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _64.QueryProposalResponse): _64.QueryProposalResponseProtoMsg; - }; - QueryProposalsByGroupPolicyRequest: { - typeUrl: string; - encode(message: _64.QueryProposalsByGroupPolicyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalsByGroupPolicyRequest; - fromJSON(object: any): _64.QueryProposalsByGroupPolicyRequest; - toJSON(message: _64.QueryProposalsByGroupPolicyRequest): unknown; - fromPartial(object: Partial<_64.QueryProposalsByGroupPolicyRequest>): _64.QueryProposalsByGroupPolicyRequest; - fromAmino(object: _64.QueryProposalsByGroupPolicyRequestAmino): _64.QueryProposalsByGroupPolicyRequest; - toAmino(message: _64.QueryProposalsByGroupPolicyRequest): _64.QueryProposalsByGroupPolicyRequestAmino; - fromAminoMsg(object: _64.QueryProposalsByGroupPolicyRequestAminoMsg): _64.QueryProposalsByGroupPolicyRequest; - toAminoMsg(message: _64.QueryProposalsByGroupPolicyRequest): _64.QueryProposalsByGroupPolicyRequestAminoMsg; - fromProtoMsg(message: _64.QueryProposalsByGroupPolicyRequestProtoMsg): _64.QueryProposalsByGroupPolicyRequest; - toProto(message: _64.QueryProposalsByGroupPolicyRequest): Uint8Array; - toProtoMsg(message: _64.QueryProposalsByGroupPolicyRequest): _64.QueryProposalsByGroupPolicyRequestProtoMsg; - }; - QueryProposalsByGroupPolicyResponse: { - typeUrl: string; - encode(message: _64.QueryProposalsByGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryProposalsByGroupPolicyResponse; - fromJSON(object: any): _64.QueryProposalsByGroupPolicyResponse; - toJSON(message: _64.QueryProposalsByGroupPolicyResponse): unknown; - fromPartial(object: Partial<_64.QueryProposalsByGroupPolicyResponse>): _64.QueryProposalsByGroupPolicyResponse; - fromAmino(object: _64.QueryProposalsByGroupPolicyResponseAmino): _64.QueryProposalsByGroupPolicyResponse; - toAmino(message: _64.QueryProposalsByGroupPolicyResponse): _64.QueryProposalsByGroupPolicyResponseAmino; - fromAminoMsg(object: _64.QueryProposalsByGroupPolicyResponseAminoMsg): _64.QueryProposalsByGroupPolicyResponse; - toAminoMsg(message: _64.QueryProposalsByGroupPolicyResponse): _64.QueryProposalsByGroupPolicyResponseAminoMsg; - fromProtoMsg(message: _64.QueryProposalsByGroupPolicyResponseProtoMsg): _64.QueryProposalsByGroupPolicyResponse; - toProto(message: _64.QueryProposalsByGroupPolicyResponse): Uint8Array; - toProtoMsg(message: _64.QueryProposalsByGroupPolicyResponse): _64.QueryProposalsByGroupPolicyResponseProtoMsg; - }; - QueryVoteByProposalVoterRequest: { - typeUrl: string; - encode(message: _64.QueryVoteByProposalVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVoteByProposalVoterRequest; - fromJSON(object: any): _64.QueryVoteByProposalVoterRequest; - toJSON(message: _64.QueryVoteByProposalVoterRequest): unknown; - fromPartial(object: Partial<_64.QueryVoteByProposalVoterRequest>): _64.QueryVoteByProposalVoterRequest; - fromAmino(object: _64.QueryVoteByProposalVoterRequestAmino): _64.QueryVoteByProposalVoterRequest; - toAmino(message: _64.QueryVoteByProposalVoterRequest): _64.QueryVoteByProposalVoterRequestAmino; - fromAminoMsg(object: _64.QueryVoteByProposalVoterRequestAminoMsg): _64.QueryVoteByProposalVoterRequest; - toAminoMsg(message: _64.QueryVoteByProposalVoterRequest): _64.QueryVoteByProposalVoterRequestAminoMsg; - fromProtoMsg(message: _64.QueryVoteByProposalVoterRequestProtoMsg): _64.QueryVoteByProposalVoterRequest; - toProto(message: _64.QueryVoteByProposalVoterRequest): Uint8Array; - toProtoMsg(message: _64.QueryVoteByProposalVoterRequest): _64.QueryVoteByProposalVoterRequestProtoMsg; - }; - QueryVoteByProposalVoterResponse: { - typeUrl: string; - encode(message: _64.QueryVoteByProposalVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVoteByProposalVoterResponse; - fromJSON(object: any): _64.QueryVoteByProposalVoterResponse; - toJSON(message: _64.QueryVoteByProposalVoterResponse): unknown; - fromPartial(object: Partial<_64.QueryVoteByProposalVoterResponse>): _64.QueryVoteByProposalVoterResponse; - fromAmino(object: _64.QueryVoteByProposalVoterResponseAmino): _64.QueryVoteByProposalVoterResponse; - toAmino(message: _64.QueryVoteByProposalVoterResponse): _64.QueryVoteByProposalVoterResponseAmino; - fromAminoMsg(object: _64.QueryVoteByProposalVoterResponseAminoMsg): _64.QueryVoteByProposalVoterResponse; - toAminoMsg(message: _64.QueryVoteByProposalVoterResponse): _64.QueryVoteByProposalVoterResponseAminoMsg; - fromProtoMsg(message: _64.QueryVoteByProposalVoterResponseProtoMsg): _64.QueryVoteByProposalVoterResponse; - toProto(message: _64.QueryVoteByProposalVoterResponse): Uint8Array; - toProtoMsg(message: _64.QueryVoteByProposalVoterResponse): _64.QueryVoteByProposalVoterResponseProtoMsg; - }; - QueryVotesByProposalRequest: { - typeUrl: string; - encode(message: _64.QueryVotesByProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByProposalRequest; - fromJSON(object: any): _64.QueryVotesByProposalRequest; - toJSON(message: _64.QueryVotesByProposalRequest): unknown; - fromPartial(object: Partial<_64.QueryVotesByProposalRequest>): _64.QueryVotesByProposalRequest; - fromAmino(object: _64.QueryVotesByProposalRequestAmino): _64.QueryVotesByProposalRequest; - toAmino(message: _64.QueryVotesByProposalRequest): _64.QueryVotesByProposalRequestAmino; - fromAminoMsg(object: _64.QueryVotesByProposalRequestAminoMsg): _64.QueryVotesByProposalRequest; - toAminoMsg(message: _64.QueryVotesByProposalRequest): _64.QueryVotesByProposalRequestAminoMsg; - fromProtoMsg(message: _64.QueryVotesByProposalRequestProtoMsg): _64.QueryVotesByProposalRequest; - toProto(message: _64.QueryVotesByProposalRequest): Uint8Array; - toProtoMsg(message: _64.QueryVotesByProposalRequest): _64.QueryVotesByProposalRequestProtoMsg; - }; - QueryVotesByProposalResponse: { - typeUrl: string; - encode(message: _64.QueryVotesByProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByProposalResponse; - fromJSON(object: any): _64.QueryVotesByProposalResponse; - toJSON(message: _64.QueryVotesByProposalResponse): unknown; - fromPartial(object: Partial<_64.QueryVotesByProposalResponse>): _64.QueryVotesByProposalResponse; - fromAmino(object: _64.QueryVotesByProposalResponseAmino): _64.QueryVotesByProposalResponse; - toAmino(message: _64.QueryVotesByProposalResponse): _64.QueryVotesByProposalResponseAmino; - fromAminoMsg(object: _64.QueryVotesByProposalResponseAminoMsg): _64.QueryVotesByProposalResponse; - toAminoMsg(message: _64.QueryVotesByProposalResponse): _64.QueryVotesByProposalResponseAminoMsg; - fromProtoMsg(message: _64.QueryVotesByProposalResponseProtoMsg): _64.QueryVotesByProposalResponse; - toProto(message: _64.QueryVotesByProposalResponse): Uint8Array; - toProtoMsg(message: _64.QueryVotesByProposalResponse): _64.QueryVotesByProposalResponseProtoMsg; - }; - QueryVotesByVoterRequest: { - typeUrl: string; - encode(message: _64.QueryVotesByVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByVoterRequest; - fromJSON(object: any): _64.QueryVotesByVoterRequest; - toJSON(message: _64.QueryVotesByVoterRequest): unknown; - fromPartial(object: Partial<_64.QueryVotesByVoterRequest>): _64.QueryVotesByVoterRequest; - fromAmino(object: _64.QueryVotesByVoterRequestAmino): _64.QueryVotesByVoterRequest; - toAmino(message: _64.QueryVotesByVoterRequest): _64.QueryVotesByVoterRequestAmino; - fromAminoMsg(object: _64.QueryVotesByVoterRequestAminoMsg): _64.QueryVotesByVoterRequest; - toAminoMsg(message: _64.QueryVotesByVoterRequest): _64.QueryVotesByVoterRequestAminoMsg; - fromProtoMsg(message: _64.QueryVotesByVoterRequestProtoMsg): _64.QueryVotesByVoterRequest; - toProto(message: _64.QueryVotesByVoterRequest): Uint8Array; - toProtoMsg(message: _64.QueryVotesByVoterRequest): _64.QueryVotesByVoterRequestProtoMsg; - }; - QueryVotesByVoterResponse: { - typeUrl: string; - encode(message: _64.QueryVotesByVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryVotesByVoterResponse; - fromJSON(object: any): _64.QueryVotesByVoterResponse; - toJSON(message: _64.QueryVotesByVoterResponse): unknown; - fromPartial(object: Partial<_64.QueryVotesByVoterResponse>): _64.QueryVotesByVoterResponse; - fromAmino(object: _64.QueryVotesByVoterResponseAmino): _64.QueryVotesByVoterResponse; - toAmino(message: _64.QueryVotesByVoterResponse): _64.QueryVotesByVoterResponseAmino; - fromAminoMsg(object: _64.QueryVotesByVoterResponseAminoMsg): _64.QueryVotesByVoterResponse; - toAminoMsg(message: _64.QueryVotesByVoterResponse): _64.QueryVotesByVoterResponseAminoMsg; - fromProtoMsg(message: _64.QueryVotesByVoterResponseProtoMsg): _64.QueryVotesByVoterResponse; - toProto(message: _64.QueryVotesByVoterResponse): Uint8Array; - toProtoMsg(message: _64.QueryVotesByVoterResponse): _64.QueryVotesByVoterResponseProtoMsg; - }; - QueryGroupsByMemberRequest: { - typeUrl: string; - encode(message: _64.QueryGroupsByMemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByMemberRequest; - fromJSON(object: any): _64.QueryGroupsByMemberRequest; - toJSON(message: _64.QueryGroupsByMemberRequest): unknown; - fromPartial(object: Partial<_64.QueryGroupsByMemberRequest>): _64.QueryGroupsByMemberRequest; - fromAmino(object: _64.QueryGroupsByMemberRequestAmino): _64.QueryGroupsByMemberRequest; - toAmino(message: _64.QueryGroupsByMemberRequest): _64.QueryGroupsByMemberRequestAmino; - fromAminoMsg(object: _64.QueryGroupsByMemberRequestAminoMsg): _64.QueryGroupsByMemberRequest; - toAminoMsg(message: _64.QueryGroupsByMemberRequest): _64.QueryGroupsByMemberRequestAminoMsg; - fromProtoMsg(message: _64.QueryGroupsByMemberRequestProtoMsg): _64.QueryGroupsByMemberRequest; - toProto(message: _64.QueryGroupsByMemberRequest): Uint8Array; - toProtoMsg(message: _64.QueryGroupsByMemberRequest): _64.QueryGroupsByMemberRequestProtoMsg; - }; - QueryGroupsByMemberResponse: { - typeUrl: string; - encode(message: _64.QueryGroupsByMemberResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryGroupsByMemberResponse; - fromJSON(object: any): _64.QueryGroupsByMemberResponse; - toJSON(message: _64.QueryGroupsByMemberResponse): unknown; - fromPartial(object: Partial<_64.QueryGroupsByMemberResponse>): _64.QueryGroupsByMemberResponse; - fromAmino(object: _64.QueryGroupsByMemberResponseAmino): _64.QueryGroupsByMemberResponse; - toAmino(message: _64.QueryGroupsByMemberResponse): _64.QueryGroupsByMemberResponseAmino; - fromAminoMsg(object: _64.QueryGroupsByMemberResponseAminoMsg): _64.QueryGroupsByMemberResponse; - toAminoMsg(message: _64.QueryGroupsByMemberResponse): _64.QueryGroupsByMemberResponseAminoMsg; - fromProtoMsg(message: _64.QueryGroupsByMemberResponseProtoMsg): _64.QueryGroupsByMemberResponse; - toProto(message: _64.QueryGroupsByMemberResponse): Uint8Array; - toProtoMsg(message: _64.QueryGroupsByMemberResponse): _64.QueryGroupsByMemberResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _64.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryTallyResultRequest; - fromJSON(object: any): _64.QueryTallyResultRequest; - toJSON(message: _64.QueryTallyResultRequest): unknown; - fromPartial(object: Partial<_64.QueryTallyResultRequest>): _64.QueryTallyResultRequest; - fromAmino(object: _64.QueryTallyResultRequestAmino): _64.QueryTallyResultRequest; - toAmino(message: _64.QueryTallyResultRequest): _64.QueryTallyResultRequestAmino; - fromAminoMsg(object: _64.QueryTallyResultRequestAminoMsg): _64.QueryTallyResultRequest; - toAminoMsg(message: _64.QueryTallyResultRequest): _64.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _64.QueryTallyResultRequestProtoMsg): _64.QueryTallyResultRequest; - toProto(message: _64.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _64.QueryTallyResultRequest): _64.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _64.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _64.QueryTallyResultResponse; - fromJSON(object: any): _64.QueryTallyResultResponse; - toJSON(message: _64.QueryTallyResultResponse): unknown; - fromPartial(object: Partial<_64.QueryTallyResultResponse>): _64.QueryTallyResultResponse; - fromAmino(object: _64.QueryTallyResultResponseAmino): _64.QueryTallyResultResponse; - toAmino(message: _64.QueryTallyResultResponse): _64.QueryTallyResultResponseAmino; - fromAminoMsg(object: _64.QueryTallyResultResponseAminoMsg): _64.QueryTallyResultResponse; - toAminoMsg(message: _64.QueryTallyResultResponse): _64.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _64.QueryTallyResultResponseProtoMsg): _64.QueryTallyResultResponse; - toProto(message: _64.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _64.QueryTallyResultResponse): _64.QueryTallyResultResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _63.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _63.GenesisState; - fromJSON(object: any): _63.GenesisState; - toJSON(message: _63.GenesisState): unknown; - fromPartial(object: Partial<_63.GenesisState>): _63.GenesisState; - fromAmino(object: _63.GenesisStateAmino): _63.GenesisState; - toAmino(message: _63.GenesisState): _63.GenesisStateAmino; - fromAminoMsg(object: _63.GenesisStateAminoMsg): _63.GenesisState; - toAminoMsg(message: _63.GenesisState): _63.GenesisStateAminoMsg; - fromProtoMsg(message: _63.GenesisStateProtoMsg): _63.GenesisState; - toProto(message: _63.GenesisState): Uint8Array; - toProtoMsg(message: _63.GenesisState): _63.GenesisStateProtoMsg; - }; - EventCreateGroup: { - typeUrl: string; - encode(message: _62.EventCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventCreateGroup; - fromJSON(object: any): _62.EventCreateGroup; - toJSON(message: _62.EventCreateGroup): unknown; - fromPartial(object: Partial<_62.EventCreateGroup>): _62.EventCreateGroup; - fromAmino(object: _62.EventCreateGroupAmino): _62.EventCreateGroup; - toAmino(message: _62.EventCreateGroup): _62.EventCreateGroupAmino; - fromAminoMsg(object: _62.EventCreateGroupAminoMsg): _62.EventCreateGroup; - toAminoMsg(message: _62.EventCreateGroup): _62.EventCreateGroupAminoMsg; - fromProtoMsg(message: _62.EventCreateGroupProtoMsg): _62.EventCreateGroup; - toProto(message: _62.EventCreateGroup): Uint8Array; - toProtoMsg(message: _62.EventCreateGroup): _62.EventCreateGroupProtoMsg; - }; - EventUpdateGroup: { - typeUrl: string; - encode(message: _62.EventUpdateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventUpdateGroup; - fromJSON(object: any): _62.EventUpdateGroup; - toJSON(message: _62.EventUpdateGroup): unknown; - fromPartial(object: Partial<_62.EventUpdateGroup>): _62.EventUpdateGroup; - fromAmino(object: _62.EventUpdateGroupAmino): _62.EventUpdateGroup; - toAmino(message: _62.EventUpdateGroup): _62.EventUpdateGroupAmino; - fromAminoMsg(object: _62.EventUpdateGroupAminoMsg): _62.EventUpdateGroup; - toAminoMsg(message: _62.EventUpdateGroup): _62.EventUpdateGroupAminoMsg; - fromProtoMsg(message: _62.EventUpdateGroupProtoMsg): _62.EventUpdateGroup; - toProto(message: _62.EventUpdateGroup): Uint8Array; - toProtoMsg(message: _62.EventUpdateGroup): _62.EventUpdateGroupProtoMsg; - }; - EventCreateGroupPolicy: { - typeUrl: string; - encode(message: _62.EventCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventCreateGroupPolicy; - fromJSON(object: any): _62.EventCreateGroupPolicy; - toJSON(message: _62.EventCreateGroupPolicy): unknown; - fromPartial(object: Partial<_62.EventCreateGroupPolicy>): _62.EventCreateGroupPolicy; - fromAmino(object: _62.EventCreateGroupPolicyAmino): _62.EventCreateGroupPolicy; - toAmino(message: _62.EventCreateGroupPolicy): _62.EventCreateGroupPolicyAmino; - fromAminoMsg(object: _62.EventCreateGroupPolicyAminoMsg): _62.EventCreateGroupPolicy; - toAminoMsg(message: _62.EventCreateGroupPolicy): _62.EventCreateGroupPolicyAminoMsg; - fromProtoMsg(message: _62.EventCreateGroupPolicyProtoMsg): _62.EventCreateGroupPolicy; - toProto(message: _62.EventCreateGroupPolicy): Uint8Array; - toProtoMsg(message: _62.EventCreateGroupPolicy): _62.EventCreateGroupPolicyProtoMsg; - }; - EventUpdateGroupPolicy: { - typeUrl: string; - encode(message: _62.EventUpdateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventUpdateGroupPolicy; - fromJSON(object: any): _62.EventUpdateGroupPolicy; - toJSON(message: _62.EventUpdateGroupPolicy): unknown; - fromPartial(object: Partial<_62.EventUpdateGroupPolicy>): _62.EventUpdateGroupPolicy; - fromAmino(object: _62.EventUpdateGroupPolicyAmino): _62.EventUpdateGroupPolicy; - toAmino(message: _62.EventUpdateGroupPolicy): _62.EventUpdateGroupPolicyAmino; - fromAminoMsg(object: _62.EventUpdateGroupPolicyAminoMsg): _62.EventUpdateGroupPolicy; - toAminoMsg(message: _62.EventUpdateGroupPolicy): _62.EventUpdateGroupPolicyAminoMsg; - fromProtoMsg(message: _62.EventUpdateGroupPolicyProtoMsg): _62.EventUpdateGroupPolicy; - toProto(message: _62.EventUpdateGroupPolicy): Uint8Array; - toProtoMsg(message: _62.EventUpdateGroupPolicy): _62.EventUpdateGroupPolicyProtoMsg; - }; - EventSubmitProposal: { - typeUrl: string; - encode(message: _62.EventSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventSubmitProposal; - fromJSON(object: any): _62.EventSubmitProposal; - toJSON(message: _62.EventSubmitProposal): unknown; - fromPartial(object: Partial<_62.EventSubmitProposal>): _62.EventSubmitProposal; - fromAmino(object: _62.EventSubmitProposalAmino): _62.EventSubmitProposal; - toAmino(message: _62.EventSubmitProposal): _62.EventSubmitProposalAmino; - fromAminoMsg(object: _62.EventSubmitProposalAminoMsg): _62.EventSubmitProposal; - toAminoMsg(message: _62.EventSubmitProposal): _62.EventSubmitProposalAminoMsg; - fromProtoMsg(message: _62.EventSubmitProposalProtoMsg): _62.EventSubmitProposal; - toProto(message: _62.EventSubmitProposal): Uint8Array; - toProtoMsg(message: _62.EventSubmitProposal): _62.EventSubmitProposalProtoMsg; - }; - EventWithdrawProposal: { - typeUrl: string; - encode(message: _62.EventWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventWithdrawProposal; - fromJSON(object: any): _62.EventWithdrawProposal; - toJSON(message: _62.EventWithdrawProposal): unknown; - fromPartial(object: Partial<_62.EventWithdrawProposal>): _62.EventWithdrawProposal; - fromAmino(object: _62.EventWithdrawProposalAmino): _62.EventWithdrawProposal; - toAmino(message: _62.EventWithdrawProposal): _62.EventWithdrawProposalAmino; - fromAminoMsg(object: _62.EventWithdrawProposalAminoMsg): _62.EventWithdrawProposal; - toAminoMsg(message: _62.EventWithdrawProposal): _62.EventWithdrawProposalAminoMsg; - fromProtoMsg(message: _62.EventWithdrawProposalProtoMsg): _62.EventWithdrawProposal; - toProto(message: _62.EventWithdrawProposal): Uint8Array; - toProtoMsg(message: _62.EventWithdrawProposal): _62.EventWithdrawProposalProtoMsg; - }; - EventVote: { - typeUrl: string; - encode(message: _62.EventVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventVote; - fromJSON(object: any): _62.EventVote; - toJSON(message: _62.EventVote): unknown; - fromPartial(object: Partial<_62.EventVote>): _62.EventVote; - fromAmino(object: _62.EventVoteAmino): _62.EventVote; - toAmino(message: _62.EventVote): _62.EventVoteAmino; - fromAminoMsg(object: _62.EventVoteAminoMsg): _62.EventVote; - toAminoMsg(message: _62.EventVote): _62.EventVoteAminoMsg; - fromProtoMsg(message: _62.EventVoteProtoMsg): _62.EventVote; - toProto(message: _62.EventVote): Uint8Array; - toProtoMsg(message: _62.EventVote): _62.EventVoteProtoMsg; - }; - EventExec: { - typeUrl: string; - encode(message: _62.EventExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventExec; - fromJSON(object: any): _62.EventExec; - toJSON(message: _62.EventExec): unknown; - fromPartial(object: Partial<_62.EventExec>): _62.EventExec; - fromAmino(object: _62.EventExecAmino): _62.EventExec; - toAmino(message: _62.EventExec): _62.EventExecAmino; - fromAminoMsg(object: _62.EventExecAminoMsg): _62.EventExec; - toAminoMsg(message: _62.EventExec): _62.EventExecAminoMsg; - fromProtoMsg(message: _62.EventExecProtoMsg): _62.EventExec; - toProto(message: _62.EventExec): Uint8Array; - toProtoMsg(message: _62.EventExec): _62.EventExecProtoMsg; - }; - EventLeaveGroup: { - typeUrl: string; - encode(message: _62.EventLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _62.EventLeaveGroup; - fromJSON(object: any): _62.EventLeaveGroup; - toJSON(message: _62.EventLeaveGroup): unknown; - fromPartial(object: Partial<_62.EventLeaveGroup>): _62.EventLeaveGroup; - fromAmino(object: _62.EventLeaveGroupAmino): _62.EventLeaveGroup; - toAmino(message: _62.EventLeaveGroup): _62.EventLeaveGroupAmino; - fromAminoMsg(object: _62.EventLeaveGroupAminoMsg): _62.EventLeaveGroup; - toAminoMsg(message: _62.EventLeaveGroup): _62.EventLeaveGroupAminoMsg; - fromProtoMsg(message: _62.EventLeaveGroupProtoMsg): _62.EventLeaveGroup; - toProto(message: _62.EventLeaveGroup): Uint8Array; - toProtoMsg(message: _62.EventLeaveGroup): _62.EventLeaveGroupProtoMsg; - }; - }; - } - namespace mint { - const v1beta1: { - QueryClientImpl: typeof _210.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request?: _69.QueryParamsRequest | undefined): Promise<_69.QueryParamsResponse>; - inflation(request?: _69.QueryInflationRequest | undefined): Promise<_69.QueryInflationResponse>; - annualProvisions(request?: _69.QueryAnnualProvisionsRequest | undefined): Promise<_69.QueryAnnualProvisionsResponse>; - }; - LCDQueryClient: typeof _191.LCDQueryClient; - QueryParamsRequest: { - typeUrl: string; - encode(_: _69.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryParamsRequest; - fromJSON(_: any): _69.QueryParamsRequest; - toJSON(_: _69.QueryParamsRequest): unknown; - fromPartial(_: Partial<_69.QueryParamsRequest>): _69.QueryParamsRequest; - fromAmino(_: _69.QueryParamsRequestAmino): _69.QueryParamsRequest; - toAmino(_: _69.QueryParamsRequest): _69.QueryParamsRequestAmino; - fromAminoMsg(object: _69.QueryParamsRequestAminoMsg): _69.QueryParamsRequest; - toAminoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _69.QueryParamsRequestProtoMsg): _69.QueryParamsRequest; - toProto(message: _69.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _69.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryParamsResponse; - fromJSON(object: any): _69.QueryParamsResponse; - toJSON(message: _69.QueryParamsResponse): unknown; - fromPartial(object: Partial<_69.QueryParamsResponse>): _69.QueryParamsResponse; - fromAmino(object: _69.QueryParamsResponseAmino): _69.QueryParamsResponse; - toAmino(message: _69.QueryParamsResponse): _69.QueryParamsResponseAmino; - fromAminoMsg(object: _69.QueryParamsResponseAminoMsg): _69.QueryParamsResponse; - toAminoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _69.QueryParamsResponseProtoMsg): _69.QueryParamsResponse; - toProto(message: _69.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseProtoMsg; - }; - QueryInflationRequest: { - typeUrl: string; - encode(_: _69.QueryInflationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryInflationRequest; - fromJSON(_: any): _69.QueryInflationRequest; - toJSON(_: _69.QueryInflationRequest): unknown; - fromPartial(_: Partial<_69.QueryInflationRequest>): _69.QueryInflationRequest; - fromAmino(_: _69.QueryInflationRequestAmino): _69.QueryInflationRequest; - toAmino(_: _69.QueryInflationRequest): _69.QueryInflationRequestAmino; - fromAminoMsg(object: _69.QueryInflationRequestAminoMsg): _69.QueryInflationRequest; - toAminoMsg(message: _69.QueryInflationRequest): _69.QueryInflationRequestAminoMsg; - fromProtoMsg(message: _69.QueryInflationRequestProtoMsg): _69.QueryInflationRequest; - toProto(message: _69.QueryInflationRequest): Uint8Array; - toProtoMsg(message: _69.QueryInflationRequest): _69.QueryInflationRequestProtoMsg; - }; - QueryInflationResponse: { - typeUrl: string; - encode(message: _69.QueryInflationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryInflationResponse; - fromJSON(object: any): _69.QueryInflationResponse; - toJSON(message: _69.QueryInflationResponse): unknown; - fromPartial(object: Partial<_69.QueryInflationResponse>): _69.QueryInflationResponse; - fromAmino(object: _69.QueryInflationResponseAmino): _69.QueryInflationResponse; - toAmino(message: _69.QueryInflationResponse): _69.QueryInflationResponseAmino; - fromAminoMsg(object: _69.QueryInflationResponseAminoMsg): _69.QueryInflationResponse; - toAminoMsg(message: _69.QueryInflationResponse): _69.QueryInflationResponseAminoMsg; - fromProtoMsg(message: _69.QueryInflationResponseProtoMsg): _69.QueryInflationResponse; - toProto(message: _69.QueryInflationResponse): Uint8Array; - toProtoMsg(message: _69.QueryInflationResponse): _69.QueryInflationResponseProtoMsg; - }; - QueryAnnualProvisionsRequest: { - typeUrl: string; - encode(_: _69.QueryAnnualProvisionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryAnnualProvisionsRequest; - fromJSON(_: any): _69.QueryAnnualProvisionsRequest; - toJSON(_: _69.QueryAnnualProvisionsRequest): unknown; - fromPartial(_: Partial<_69.QueryAnnualProvisionsRequest>): _69.QueryAnnualProvisionsRequest; - fromAmino(_: _69.QueryAnnualProvisionsRequestAmino): _69.QueryAnnualProvisionsRequest; - toAmino(_: _69.QueryAnnualProvisionsRequest): _69.QueryAnnualProvisionsRequestAmino; - fromAminoMsg(object: _69.QueryAnnualProvisionsRequestAminoMsg): _69.QueryAnnualProvisionsRequest; - toAminoMsg(message: _69.QueryAnnualProvisionsRequest): _69.QueryAnnualProvisionsRequestAminoMsg; - fromProtoMsg(message: _69.QueryAnnualProvisionsRequestProtoMsg): _69.QueryAnnualProvisionsRequest; - toProto(message: _69.QueryAnnualProvisionsRequest): Uint8Array; - toProtoMsg(message: _69.QueryAnnualProvisionsRequest): _69.QueryAnnualProvisionsRequestProtoMsg; - }; - QueryAnnualProvisionsResponse: { - typeUrl: string; - encode(message: _69.QueryAnnualProvisionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _69.QueryAnnualProvisionsResponse; - fromJSON(object: any): _69.QueryAnnualProvisionsResponse; - toJSON(message: _69.QueryAnnualProvisionsResponse): unknown; - fromPartial(object: Partial<_69.QueryAnnualProvisionsResponse>): _69.QueryAnnualProvisionsResponse; - fromAmino(object: _69.QueryAnnualProvisionsResponseAmino): _69.QueryAnnualProvisionsResponse; - toAmino(message: _69.QueryAnnualProvisionsResponse): _69.QueryAnnualProvisionsResponseAmino; - fromAminoMsg(object: _69.QueryAnnualProvisionsResponseAminoMsg): _69.QueryAnnualProvisionsResponse; - toAminoMsg(message: _69.QueryAnnualProvisionsResponse): _69.QueryAnnualProvisionsResponseAminoMsg; - fromProtoMsg(message: _69.QueryAnnualProvisionsResponseProtoMsg): _69.QueryAnnualProvisionsResponse; - toProto(message: _69.QueryAnnualProvisionsResponse): Uint8Array; - toProtoMsg(message: _69.QueryAnnualProvisionsResponse): _69.QueryAnnualProvisionsResponseProtoMsg; - }; - Minter: { - typeUrl: string; - encode(message: _68.Minter, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _68.Minter; - fromJSON(object: any): _68.Minter; - toJSON(message: _68.Minter): unknown; - fromPartial(object: Partial<_68.Minter>): _68.Minter; - fromAmino(object: _68.MinterAmino): _68.Minter; - toAmino(message: _68.Minter): _68.MinterAmino; - fromAminoMsg(object: _68.MinterAminoMsg): _68.Minter; - toAminoMsg(message: _68.Minter): _68.MinterAminoMsg; - fromProtoMsg(message: _68.MinterProtoMsg): _68.Minter; - toProto(message: _68.Minter): Uint8Array; - toProtoMsg(message: _68.Minter): _68.MinterProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _68.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _68.Params; - fromJSON(object: any): _68.Params; - toJSON(message: _68.Params): unknown; - fromPartial(object: Partial<_68.Params>): _68.Params; - fromAmino(object: _68.ParamsAmino): _68.Params; - toAmino(message: _68.Params): _68.ParamsAmino; - fromAminoMsg(object: _68.ParamsAminoMsg): _68.Params; - toAminoMsg(message: _68.Params): _68.ParamsAminoMsg; - fromProtoMsg(message: _68.ParamsProtoMsg): _68.Params; - toProto(message: _68.Params): Uint8Array; - toProtoMsg(message: _68.Params): _68.ParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _67.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _67.GenesisState; - fromJSON(object: any): _67.GenesisState; - toJSON(message: _67.GenesisState): unknown; - fromPartial(object: Partial<_67.GenesisState>): _67.GenesisState; - fromAmino(object: _67.GenesisStateAmino): _67.GenesisState; - toAmino(message: _67.GenesisState): _67.GenesisStateAmino; - fromAminoMsg(object: _67.GenesisStateAminoMsg): _67.GenesisState; - toAminoMsg(message: _67.GenesisState): _67.GenesisStateAminoMsg; - fromProtoMsg(message: _67.GenesisStateProtoMsg): _67.GenesisState; - toProto(message: _67.GenesisState): Uint8Array; - toProtoMsg(message: _67.GenesisState): _67.GenesisStateProtoMsg; - }; - }; - } - namespace msg { - const v1: {}; - } - namespace nft { - const v1beta1: { - MsgClientImpl: typeof _226.MsgClientImpl; - QueryClientImpl: typeof _211.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - balance(request: _74.QueryBalanceRequest): Promise<_74.QueryBalanceResponse>; - owner(request: _74.QueryOwnerRequest): Promise<_74.QueryOwnerResponse>; - supply(request: _74.QuerySupplyRequest): Promise<_74.QuerySupplyResponse>; - nFTs(request: _74.QueryNFTsRequest): Promise<_74.QueryNFTsResponse>; - nFT(request: _74.QueryNFTRequest): Promise<_74.QueryNFTResponse>; - class(request: _74.QueryClassRequest): Promise<_74.QueryClassResponse>; - classes(request?: _74.QueryClassesRequest | undefined): Promise<_74.QueryClassesResponse>; - }; - LCDQueryClient: typeof _192.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - send(value: _75.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: _75.MsgSend): { - typeUrl: string; - value: _75.MsgSend; - }; - }; - toJSON: { - send(value: _75.MsgSend): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - send(value: any): { - typeUrl: string; - value: _75.MsgSend; - }; - }; - fromPartial: { - send(value: _75.MsgSend): { - typeUrl: string; - value: _75.MsgSend; - }; - }; - }; - AminoConverter: { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: _75.MsgSend) => _75.MsgSendAmino; - fromAmino: (object: _75.MsgSendAmino) => _75.MsgSend; - }; - }; - MsgSend: { - typeUrl: string; - encode(message: _75.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _75.MsgSend; - fromJSON(object: any): _75.MsgSend; - toJSON(message: _75.MsgSend): unknown; - fromPartial(object: Partial<_75.MsgSend>): _75.MsgSend; - fromAmino(object: _75.MsgSendAmino): _75.MsgSend; - toAmino(message: _75.MsgSend): _75.MsgSendAmino; - fromAminoMsg(object: _75.MsgSendAminoMsg): _75.MsgSend; - toAminoMsg(message: _75.MsgSend): _75.MsgSendAminoMsg; - fromProtoMsg(message: _75.MsgSendProtoMsg): _75.MsgSend; - toProto(message: _75.MsgSend): Uint8Array; - toProtoMsg(message: _75.MsgSend): _75.MsgSendProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _75.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _75.MsgSendResponse; - fromJSON(_: any): _75.MsgSendResponse; - toJSON(_: _75.MsgSendResponse): unknown; - fromPartial(_: Partial<_75.MsgSendResponse>): _75.MsgSendResponse; - fromAmino(_: _75.MsgSendResponseAmino): _75.MsgSendResponse; - toAmino(_: _75.MsgSendResponse): _75.MsgSendResponseAmino; - fromAminoMsg(object: _75.MsgSendResponseAminoMsg): _75.MsgSendResponse; - toAminoMsg(message: _75.MsgSendResponse): _75.MsgSendResponseAminoMsg; - fromProtoMsg(message: _75.MsgSendResponseProtoMsg): _75.MsgSendResponse; - toProto(message: _75.MsgSendResponse): Uint8Array; - toProtoMsg(message: _75.MsgSendResponse): _75.MsgSendResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _74.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryBalanceRequest; - fromJSON(object: any): _74.QueryBalanceRequest; - toJSON(message: _74.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_74.QueryBalanceRequest>): _74.QueryBalanceRequest; - fromAmino(object: _74.QueryBalanceRequestAmino): _74.QueryBalanceRequest; - toAmino(message: _74.QueryBalanceRequest): _74.QueryBalanceRequestAmino; - fromAminoMsg(object: _74.QueryBalanceRequestAminoMsg): _74.QueryBalanceRequest; - toAminoMsg(message: _74.QueryBalanceRequest): _74.QueryBalanceRequestAminoMsg; - fromProtoMsg(message: _74.QueryBalanceRequestProtoMsg): _74.QueryBalanceRequest; - toProto(message: _74.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _74.QueryBalanceRequest): _74.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _74.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryBalanceResponse; - fromJSON(object: any): _74.QueryBalanceResponse; - toJSON(message: _74.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_74.QueryBalanceResponse>): _74.QueryBalanceResponse; - fromAmino(object: _74.QueryBalanceResponseAmino): _74.QueryBalanceResponse; - toAmino(message: _74.QueryBalanceResponse): _74.QueryBalanceResponseAmino; - fromAminoMsg(object: _74.QueryBalanceResponseAminoMsg): _74.QueryBalanceResponse; - toAminoMsg(message: _74.QueryBalanceResponse): _74.QueryBalanceResponseAminoMsg; - fromProtoMsg(message: _74.QueryBalanceResponseProtoMsg): _74.QueryBalanceResponse; - toProto(message: _74.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _74.QueryBalanceResponse): _74.QueryBalanceResponseProtoMsg; - }; - QueryOwnerRequest: { - typeUrl: string; - encode(message: _74.QueryOwnerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryOwnerRequest; - fromJSON(object: any): _74.QueryOwnerRequest; - toJSON(message: _74.QueryOwnerRequest): unknown; - fromPartial(object: Partial<_74.QueryOwnerRequest>): _74.QueryOwnerRequest; - fromAmino(object: _74.QueryOwnerRequestAmino): _74.QueryOwnerRequest; - toAmino(message: _74.QueryOwnerRequest): _74.QueryOwnerRequestAmino; - fromAminoMsg(object: _74.QueryOwnerRequestAminoMsg): _74.QueryOwnerRequest; - toAminoMsg(message: _74.QueryOwnerRequest): _74.QueryOwnerRequestAminoMsg; - fromProtoMsg(message: _74.QueryOwnerRequestProtoMsg): _74.QueryOwnerRequest; - toProto(message: _74.QueryOwnerRequest): Uint8Array; - toProtoMsg(message: _74.QueryOwnerRequest): _74.QueryOwnerRequestProtoMsg; - }; - QueryOwnerResponse: { - typeUrl: string; - encode(message: _74.QueryOwnerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryOwnerResponse; - fromJSON(object: any): _74.QueryOwnerResponse; - toJSON(message: _74.QueryOwnerResponse): unknown; - fromPartial(object: Partial<_74.QueryOwnerResponse>): _74.QueryOwnerResponse; - fromAmino(object: _74.QueryOwnerResponseAmino): _74.QueryOwnerResponse; - toAmino(message: _74.QueryOwnerResponse): _74.QueryOwnerResponseAmino; - fromAminoMsg(object: _74.QueryOwnerResponseAminoMsg): _74.QueryOwnerResponse; - toAminoMsg(message: _74.QueryOwnerResponse): _74.QueryOwnerResponseAminoMsg; - fromProtoMsg(message: _74.QueryOwnerResponseProtoMsg): _74.QueryOwnerResponse; - toProto(message: _74.QueryOwnerResponse): Uint8Array; - toProtoMsg(message: _74.QueryOwnerResponse): _74.QueryOwnerResponseProtoMsg; - }; - QuerySupplyRequest: { - typeUrl: string; - encode(message: _74.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QuerySupplyRequest; - fromJSON(object: any): _74.QuerySupplyRequest; - toJSON(message: _74.QuerySupplyRequest): unknown; - fromPartial(object: Partial<_74.QuerySupplyRequest>): _74.QuerySupplyRequest; - fromAmino(object: _74.QuerySupplyRequestAmino): _74.QuerySupplyRequest; - toAmino(message: _74.QuerySupplyRequest): _74.QuerySupplyRequestAmino; - fromAminoMsg(object: _74.QuerySupplyRequestAminoMsg): _74.QuerySupplyRequest; - toAminoMsg(message: _74.QuerySupplyRequest): _74.QuerySupplyRequestAminoMsg; - fromProtoMsg(message: _74.QuerySupplyRequestProtoMsg): _74.QuerySupplyRequest; - toProto(message: _74.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _74.QuerySupplyRequest): _74.QuerySupplyRequestProtoMsg; - }; - QuerySupplyResponse: { - typeUrl: string; - encode(message: _74.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QuerySupplyResponse; - fromJSON(object: any): _74.QuerySupplyResponse; - toJSON(message: _74.QuerySupplyResponse): unknown; - fromPartial(object: Partial<_74.QuerySupplyResponse>): _74.QuerySupplyResponse; - fromAmino(object: _74.QuerySupplyResponseAmino): _74.QuerySupplyResponse; - toAmino(message: _74.QuerySupplyResponse): _74.QuerySupplyResponseAmino; - fromAminoMsg(object: _74.QuerySupplyResponseAminoMsg): _74.QuerySupplyResponse; - toAminoMsg(message: _74.QuerySupplyResponse): _74.QuerySupplyResponseAminoMsg; - fromProtoMsg(message: _74.QuerySupplyResponseProtoMsg): _74.QuerySupplyResponse; - toProto(message: _74.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _74.QuerySupplyResponse): _74.QuerySupplyResponseProtoMsg; - }; - QueryNFTsRequest: { - typeUrl: string; - encode(message: _74.QueryNFTsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTsRequest; - fromJSON(object: any): _74.QueryNFTsRequest; - toJSON(message: _74.QueryNFTsRequest): unknown; - fromPartial(object: Partial<_74.QueryNFTsRequest>): _74.QueryNFTsRequest; - fromAmino(object: _74.QueryNFTsRequestAmino): _74.QueryNFTsRequest; - toAmino(message: _74.QueryNFTsRequest): _74.QueryNFTsRequestAmino; - fromAminoMsg(object: _74.QueryNFTsRequestAminoMsg): _74.QueryNFTsRequest; - toAminoMsg(message: _74.QueryNFTsRequest): _74.QueryNFTsRequestAminoMsg; - fromProtoMsg(message: _74.QueryNFTsRequestProtoMsg): _74.QueryNFTsRequest; - toProto(message: _74.QueryNFTsRequest): Uint8Array; - toProtoMsg(message: _74.QueryNFTsRequest): _74.QueryNFTsRequestProtoMsg; - }; - QueryNFTsResponse: { - typeUrl: string; - encode(message: _74.QueryNFTsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTsResponse; - fromJSON(object: any): _74.QueryNFTsResponse; - toJSON(message: _74.QueryNFTsResponse): unknown; - fromPartial(object: Partial<_74.QueryNFTsResponse>): _74.QueryNFTsResponse; - fromAmino(object: _74.QueryNFTsResponseAmino): _74.QueryNFTsResponse; - toAmino(message: _74.QueryNFTsResponse): _74.QueryNFTsResponseAmino; - fromAminoMsg(object: _74.QueryNFTsResponseAminoMsg): _74.QueryNFTsResponse; - toAminoMsg(message: _74.QueryNFTsResponse): _74.QueryNFTsResponseAminoMsg; - fromProtoMsg(message: _74.QueryNFTsResponseProtoMsg): _74.QueryNFTsResponse; - toProto(message: _74.QueryNFTsResponse): Uint8Array; - toProtoMsg(message: _74.QueryNFTsResponse): _74.QueryNFTsResponseProtoMsg; - }; - QueryNFTRequest: { - typeUrl: string; - encode(message: _74.QueryNFTRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTRequest; - fromJSON(object: any): _74.QueryNFTRequest; - toJSON(message: _74.QueryNFTRequest): unknown; - fromPartial(object: Partial<_74.QueryNFTRequest>): _74.QueryNFTRequest; - fromAmino(object: _74.QueryNFTRequestAmino): _74.QueryNFTRequest; - toAmino(message: _74.QueryNFTRequest): _74.QueryNFTRequestAmino; - fromAminoMsg(object: _74.QueryNFTRequestAminoMsg): _74.QueryNFTRequest; - toAminoMsg(message: _74.QueryNFTRequest): _74.QueryNFTRequestAminoMsg; - fromProtoMsg(message: _74.QueryNFTRequestProtoMsg): _74.QueryNFTRequest; - toProto(message: _74.QueryNFTRequest): Uint8Array; - toProtoMsg(message: _74.QueryNFTRequest): _74.QueryNFTRequestProtoMsg; - }; - QueryNFTResponse: { - typeUrl: string; - encode(message: _74.QueryNFTResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryNFTResponse; - fromJSON(object: any): _74.QueryNFTResponse; - toJSON(message: _74.QueryNFTResponse): unknown; - fromPartial(object: Partial<_74.QueryNFTResponse>): _74.QueryNFTResponse; - fromAmino(object: _74.QueryNFTResponseAmino): _74.QueryNFTResponse; - toAmino(message: _74.QueryNFTResponse): _74.QueryNFTResponseAmino; - fromAminoMsg(object: _74.QueryNFTResponseAminoMsg): _74.QueryNFTResponse; - toAminoMsg(message: _74.QueryNFTResponse): _74.QueryNFTResponseAminoMsg; - fromProtoMsg(message: _74.QueryNFTResponseProtoMsg): _74.QueryNFTResponse; - toProto(message: _74.QueryNFTResponse): Uint8Array; - toProtoMsg(message: _74.QueryNFTResponse): _74.QueryNFTResponseProtoMsg; - }; - QueryClassRequest: { - typeUrl: string; - encode(message: _74.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassRequest; - fromJSON(object: any): _74.QueryClassRequest; - toJSON(message: _74.QueryClassRequest): unknown; - fromPartial(object: Partial<_74.QueryClassRequest>): _74.QueryClassRequest; - fromAmino(object: _74.QueryClassRequestAmino): _74.QueryClassRequest; - toAmino(message: _74.QueryClassRequest): _74.QueryClassRequestAmino; - fromAminoMsg(object: _74.QueryClassRequestAminoMsg): _74.QueryClassRequest; - toAminoMsg(message: _74.QueryClassRequest): _74.QueryClassRequestAminoMsg; - fromProtoMsg(message: _74.QueryClassRequestProtoMsg): _74.QueryClassRequest; - toProto(message: _74.QueryClassRequest): Uint8Array; - toProtoMsg(message: _74.QueryClassRequest): _74.QueryClassRequestProtoMsg; - }; - QueryClassResponse: { - typeUrl: string; - encode(message: _74.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassResponse; - fromJSON(object: any): _74.QueryClassResponse; - toJSON(message: _74.QueryClassResponse): unknown; - fromPartial(object: Partial<_74.QueryClassResponse>): _74.QueryClassResponse; - fromAmino(object: _74.QueryClassResponseAmino): _74.QueryClassResponse; - toAmino(message: _74.QueryClassResponse): _74.QueryClassResponseAmino; - fromAminoMsg(object: _74.QueryClassResponseAminoMsg): _74.QueryClassResponse; - toAminoMsg(message: _74.QueryClassResponse): _74.QueryClassResponseAminoMsg; - fromProtoMsg(message: _74.QueryClassResponseProtoMsg): _74.QueryClassResponse; - toProto(message: _74.QueryClassResponse): Uint8Array; - toProtoMsg(message: _74.QueryClassResponse): _74.QueryClassResponseProtoMsg; - }; - QueryClassesRequest: { - typeUrl: string; - encode(message: _74.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassesRequest; - fromJSON(object: any): _74.QueryClassesRequest; - toJSON(message: _74.QueryClassesRequest): unknown; - fromPartial(object: Partial<_74.QueryClassesRequest>): _74.QueryClassesRequest; - fromAmino(object: _74.QueryClassesRequestAmino): _74.QueryClassesRequest; - toAmino(message: _74.QueryClassesRequest): _74.QueryClassesRequestAmino; - fromAminoMsg(object: _74.QueryClassesRequestAminoMsg): _74.QueryClassesRequest; - toAminoMsg(message: _74.QueryClassesRequest): _74.QueryClassesRequestAminoMsg; - fromProtoMsg(message: _74.QueryClassesRequestProtoMsg): _74.QueryClassesRequest; - toProto(message: _74.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _74.QueryClassesRequest): _74.QueryClassesRequestProtoMsg; - }; - QueryClassesResponse: { - typeUrl: string; - encode(message: _74.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _74.QueryClassesResponse; - fromJSON(object: any): _74.QueryClassesResponse; - toJSON(message: _74.QueryClassesResponse): unknown; - fromPartial(object: Partial<_74.QueryClassesResponse>): _74.QueryClassesResponse; - fromAmino(object: _74.QueryClassesResponseAmino): _74.QueryClassesResponse; - toAmino(message: _74.QueryClassesResponse): _74.QueryClassesResponseAmino; - fromAminoMsg(object: _74.QueryClassesResponseAminoMsg): _74.QueryClassesResponse; - toAminoMsg(message: _74.QueryClassesResponse): _74.QueryClassesResponseAminoMsg; - fromProtoMsg(message: _74.QueryClassesResponseProtoMsg): _74.QueryClassesResponse; - toProto(message: _74.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _74.QueryClassesResponse): _74.QueryClassesResponseProtoMsg; - }; - Class: { - typeUrl: string; - encode(message: _73.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _73.Class; - fromJSON(object: any): _73.Class; - toJSON(message: _73.Class): unknown; - fromPartial(object: Partial<_73.Class>): _73.Class; - fromAmino(object: _73.ClassAmino): _73.Class; - toAmino(message: _73.Class): _73.ClassAmino; - fromAminoMsg(object: _73.ClassAminoMsg): _73.Class; - toAminoMsg(message: _73.Class): _73.ClassAminoMsg; - fromProtoMsg(message: _73.ClassProtoMsg): _73.Class; - toProto(message: _73.Class): Uint8Array; - toProtoMsg(message: _73.Class): _73.ClassProtoMsg; - }; - NFT: { - typeUrl: string; - encode(message: _73.NFT, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _73.NFT; - fromJSON(object: any): _73.NFT; - toJSON(message: _73.NFT): unknown; - fromPartial(object: Partial<_73.NFT>): _73.NFT; - fromAmino(object: _73.NFTAmino): _73.NFT; - toAmino(message: _73.NFT): _73.NFTAmino; - fromAminoMsg(object: _73.NFTAminoMsg): _73.NFT; - toAminoMsg(message: _73.NFT): _73.NFTAminoMsg; - fromProtoMsg(message: _73.NFTProtoMsg): _73.NFT; - toProto(message: _73.NFT): Uint8Array; - toProtoMsg(message: _73.NFT): _73.NFTProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _72.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _72.GenesisState; - fromJSON(object: any): _72.GenesisState; - toJSON(message: _72.GenesisState): unknown; - fromPartial(object: Partial<_72.GenesisState>): _72.GenesisState; - fromAmino(object: _72.GenesisStateAmino): _72.GenesisState; - toAmino(message: _72.GenesisState): _72.GenesisStateAmino; - fromAminoMsg(object: _72.GenesisStateAminoMsg): _72.GenesisState; - toAminoMsg(message: _72.GenesisState): _72.GenesisStateAminoMsg; - fromProtoMsg(message: _72.GenesisStateProtoMsg): _72.GenesisState; - toProto(message: _72.GenesisState): Uint8Array; - toProtoMsg(message: _72.GenesisState): _72.GenesisStateProtoMsg; - }; - Entry: { - typeUrl: string; - encode(message: _72.Entry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _72.Entry; - fromJSON(object: any): _72.Entry; - toJSON(message: _72.Entry): unknown; - fromPartial(object: Partial<_72.Entry>): _72.Entry; - fromAmino(object: _72.EntryAmino): _72.Entry; - toAmino(message: _72.Entry): _72.EntryAmino; - fromAminoMsg(object: _72.EntryAminoMsg): _72.Entry; - toAminoMsg(message: _72.Entry): _72.EntryAminoMsg; - fromProtoMsg(message: _72.EntryProtoMsg): _72.Entry; - toProto(message: _72.Entry): Uint8Array; - toProtoMsg(message: _72.Entry): _72.EntryProtoMsg; - }; - EventSend: { - typeUrl: string; - encode(message: _71.EventSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventSend; - fromJSON(object: any): _71.EventSend; - toJSON(message: _71.EventSend): unknown; - fromPartial(object: Partial<_71.EventSend>): _71.EventSend; - fromAmino(object: _71.EventSendAmino): _71.EventSend; - toAmino(message: _71.EventSend): _71.EventSendAmino; - fromAminoMsg(object: _71.EventSendAminoMsg): _71.EventSend; - toAminoMsg(message: _71.EventSend): _71.EventSendAminoMsg; - fromProtoMsg(message: _71.EventSendProtoMsg): _71.EventSend; - toProto(message: _71.EventSend): Uint8Array; - toProtoMsg(message: _71.EventSend): _71.EventSendProtoMsg; - }; - EventMint: { - typeUrl: string; - encode(message: _71.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventMint; - fromJSON(object: any): _71.EventMint; - toJSON(message: _71.EventMint): unknown; - fromPartial(object: Partial<_71.EventMint>): _71.EventMint; - fromAmino(object: _71.EventMintAmino): _71.EventMint; - toAmino(message: _71.EventMint): _71.EventMintAmino; - fromAminoMsg(object: _71.EventMintAminoMsg): _71.EventMint; - toAminoMsg(message: _71.EventMint): _71.EventMintAminoMsg; - fromProtoMsg(message: _71.EventMintProtoMsg): _71.EventMint; - toProto(message: _71.EventMint): Uint8Array; - toProtoMsg(message: _71.EventMint): _71.EventMintProtoMsg; - }; - EventBurn: { - typeUrl: string; - encode(message: _71.EventBurn, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _71.EventBurn; - fromJSON(object: any): _71.EventBurn; - toJSON(message: _71.EventBurn): unknown; - fromPartial(object: Partial<_71.EventBurn>): _71.EventBurn; - fromAmino(object: _71.EventBurnAmino): _71.EventBurn; - toAmino(message: _71.EventBurn): _71.EventBurnAmino; - fromAminoMsg(object: _71.EventBurnAminoMsg): _71.EventBurn; - toAminoMsg(message: _71.EventBurn): _71.EventBurnAminoMsg; - fromProtoMsg(message: _71.EventBurnProtoMsg): _71.EventBurn; - toProto(message: _71.EventBurn): Uint8Array; - toProtoMsg(message: _71.EventBurn): _71.EventBurnProtoMsg; - }; - }; - } - namespace orm { - namespace module { - const v1alpha1: { - Module: { - typeUrl: string; - encode(_: _76.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _76.Module; - fromJSON(_: any): _76.Module; - toJSON(_: _76.Module): unknown; - fromPartial(_: Partial<_76.Module>): _76.Module; - fromAmino(_: _76.ModuleAmino): _76.Module; - toAmino(_: _76.Module): _76.ModuleAmino; - fromAminoMsg(object: _76.ModuleAminoMsg): _76.Module; - toAminoMsg(message: _76.Module): _76.ModuleAminoMsg; - fromProtoMsg(message: _76.ModuleProtoMsg): _76.Module; - toProto(message: _76.Module): Uint8Array; - toProtoMsg(message: _76.Module): _76.ModuleProtoMsg; - }; - }; - } - const v1: { - TableDescriptor: { - typeUrl: string; - encode(message: _77.TableDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.TableDescriptor; - fromJSON(object: any): _77.TableDescriptor; - toJSON(message: _77.TableDescriptor): unknown; - fromPartial(object: Partial<_77.TableDescriptor>): _77.TableDescriptor; - fromAmino(object: _77.TableDescriptorAmino): _77.TableDescriptor; - toAmino(message: _77.TableDescriptor): _77.TableDescriptorAmino; - fromAminoMsg(object: _77.TableDescriptorAminoMsg): _77.TableDescriptor; - toAminoMsg(message: _77.TableDescriptor): _77.TableDescriptorAminoMsg; - fromProtoMsg(message: _77.TableDescriptorProtoMsg): _77.TableDescriptor; - toProto(message: _77.TableDescriptor): Uint8Array; - toProtoMsg(message: _77.TableDescriptor): _77.TableDescriptorProtoMsg; - }; - PrimaryKeyDescriptor: { - typeUrl: string; - encode(message: _77.PrimaryKeyDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.PrimaryKeyDescriptor; - fromJSON(object: any): _77.PrimaryKeyDescriptor; - toJSON(message: _77.PrimaryKeyDescriptor): unknown; - fromPartial(object: Partial<_77.PrimaryKeyDescriptor>): _77.PrimaryKeyDescriptor; - fromAmino(object: _77.PrimaryKeyDescriptorAmino): _77.PrimaryKeyDescriptor; - toAmino(message: _77.PrimaryKeyDescriptor): _77.PrimaryKeyDescriptorAmino; - fromAminoMsg(object: _77.PrimaryKeyDescriptorAminoMsg): _77.PrimaryKeyDescriptor; - toAminoMsg(message: _77.PrimaryKeyDescriptor): _77.PrimaryKeyDescriptorAminoMsg; - fromProtoMsg(message: _77.PrimaryKeyDescriptorProtoMsg): _77.PrimaryKeyDescriptor; - toProto(message: _77.PrimaryKeyDescriptor): Uint8Array; - toProtoMsg(message: _77.PrimaryKeyDescriptor): _77.PrimaryKeyDescriptorProtoMsg; - }; - SecondaryIndexDescriptor: { - typeUrl: string; - encode(message: _77.SecondaryIndexDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.SecondaryIndexDescriptor; - fromJSON(object: any): _77.SecondaryIndexDescriptor; - toJSON(message: _77.SecondaryIndexDescriptor): unknown; - fromPartial(object: Partial<_77.SecondaryIndexDescriptor>): _77.SecondaryIndexDescriptor; - fromAmino(object: _77.SecondaryIndexDescriptorAmino): _77.SecondaryIndexDescriptor; - toAmino(message: _77.SecondaryIndexDescriptor): _77.SecondaryIndexDescriptorAmino; - fromAminoMsg(object: _77.SecondaryIndexDescriptorAminoMsg): _77.SecondaryIndexDescriptor; - toAminoMsg(message: _77.SecondaryIndexDescriptor): _77.SecondaryIndexDescriptorAminoMsg; - fromProtoMsg(message: _77.SecondaryIndexDescriptorProtoMsg): _77.SecondaryIndexDescriptor; - toProto(message: _77.SecondaryIndexDescriptor): Uint8Array; - toProtoMsg(message: _77.SecondaryIndexDescriptor): _77.SecondaryIndexDescriptorProtoMsg; - }; - SingletonDescriptor: { - typeUrl: string; - encode(message: _77.SingletonDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _77.SingletonDescriptor; - fromJSON(object: any): _77.SingletonDescriptor; - toJSON(message: _77.SingletonDescriptor): unknown; - fromPartial(object: Partial<_77.SingletonDescriptor>): _77.SingletonDescriptor; - fromAmino(object: _77.SingletonDescriptorAmino): _77.SingletonDescriptor; - toAmino(message: _77.SingletonDescriptor): _77.SingletonDescriptorAmino; - fromAminoMsg(object: _77.SingletonDescriptorAminoMsg): _77.SingletonDescriptor; - toAminoMsg(message: _77.SingletonDescriptor): _77.SingletonDescriptorAminoMsg; - fromProtoMsg(message: _77.SingletonDescriptorProtoMsg): _77.SingletonDescriptor; - toProto(message: _77.SingletonDescriptor): Uint8Array; - toProtoMsg(message: _77.SingletonDescriptor): _77.SingletonDescriptorProtoMsg; - }; - }; - const v1alpha1: { - storageTypeFromJSON(object: any): _78.StorageType; - storageTypeToJSON(object: _78.StorageType): string; - StorageType: typeof _78.StorageType; - StorageTypeSDKType: typeof _78.StorageType; - StorageTypeAmino: typeof _78.StorageType; - ModuleSchemaDescriptor: { - typeUrl: string; - encode(message: _78.ModuleSchemaDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _78.ModuleSchemaDescriptor; - fromJSON(object: any): _78.ModuleSchemaDescriptor; - toJSON(message: _78.ModuleSchemaDescriptor): unknown; - fromPartial(object: Partial<_78.ModuleSchemaDescriptor>): _78.ModuleSchemaDescriptor; - fromAmino(object: _78.ModuleSchemaDescriptorAmino): _78.ModuleSchemaDescriptor; - toAmino(message: _78.ModuleSchemaDescriptor): _78.ModuleSchemaDescriptorAmino; - fromAminoMsg(object: _78.ModuleSchemaDescriptorAminoMsg): _78.ModuleSchemaDescriptor; - toAminoMsg(message: _78.ModuleSchemaDescriptor): _78.ModuleSchemaDescriptorAminoMsg; - fromProtoMsg(message: _78.ModuleSchemaDescriptorProtoMsg): _78.ModuleSchemaDescriptor; - toProto(message: _78.ModuleSchemaDescriptor): Uint8Array; - toProtoMsg(message: _78.ModuleSchemaDescriptor): _78.ModuleSchemaDescriptorProtoMsg; - }; - ModuleSchemaDescriptor_FileEntry: { - typeUrl: string; - encode(message: _78.ModuleSchemaDescriptor_FileEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _78.ModuleSchemaDescriptor_FileEntry; - fromJSON(object: any): _78.ModuleSchemaDescriptor_FileEntry; - toJSON(message: _78.ModuleSchemaDescriptor_FileEntry): unknown; - fromPartial(object: Partial<_78.ModuleSchemaDescriptor_FileEntry>): _78.ModuleSchemaDescriptor_FileEntry; - fromAmino(object: _78.ModuleSchemaDescriptor_FileEntryAmino): _78.ModuleSchemaDescriptor_FileEntry; - toAmino(message: _78.ModuleSchemaDescriptor_FileEntry): _78.ModuleSchemaDescriptor_FileEntryAmino; - fromAminoMsg(object: _78.ModuleSchemaDescriptor_FileEntryAminoMsg): _78.ModuleSchemaDescriptor_FileEntry; - toAminoMsg(message: _78.ModuleSchemaDescriptor_FileEntry): _78.ModuleSchemaDescriptor_FileEntryAminoMsg; - fromProtoMsg(message: _78.ModuleSchemaDescriptor_FileEntryProtoMsg): _78.ModuleSchemaDescriptor_FileEntry; - toProto(message: _78.ModuleSchemaDescriptor_FileEntry): Uint8Array; - toProtoMsg(message: _78.ModuleSchemaDescriptor_FileEntry): _78.ModuleSchemaDescriptor_FileEntryProtoMsg; - }; - }; - } - namespace params { - const v1beta1: { - QueryClientImpl: typeof _212.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request: _80.QueryParamsRequest): Promise<_80.QueryParamsResponse>; - subspaces(request?: _80.QuerySubspacesRequest | undefined): Promise<_80.QuerySubspacesResponse>; - }; - LCDQueryClient: typeof _193.LCDQueryClient; - QueryParamsRequest: { - typeUrl: string; - encode(message: _80.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QueryParamsRequest; - fromJSON(object: any): _80.QueryParamsRequest; - toJSON(message: _80.QueryParamsRequest): unknown; - fromPartial(object: Partial<_80.QueryParamsRequest>): _80.QueryParamsRequest; - fromAmino(object: _80.QueryParamsRequestAmino): _80.QueryParamsRequest; - toAmino(message: _80.QueryParamsRequest): _80.QueryParamsRequestAmino; - fromAminoMsg(object: _80.QueryParamsRequestAminoMsg): _80.QueryParamsRequest; - toAminoMsg(message: _80.QueryParamsRequest): _80.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _80.QueryParamsRequestProtoMsg): _80.QueryParamsRequest; - toProto(message: _80.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _80.QueryParamsRequest): _80.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _80.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QueryParamsResponse; - fromJSON(object: any): _80.QueryParamsResponse; - toJSON(message: _80.QueryParamsResponse): unknown; - fromPartial(object: Partial<_80.QueryParamsResponse>): _80.QueryParamsResponse; - fromAmino(object: _80.QueryParamsResponseAmino): _80.QueryParamsResponse; - toAmino(message: _80.QueryParamsResponse): _80.QueryParamsResponseAmino; - fromAminoMsg(object: _80.QueryParamsResponseAminoMsg): _80.QueryParamsResponse; - toAminoMsg(message: _80.QueryParamsResponse): _80.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _80.QueryParamsResponseProtoMsg): _80.QueryParamsResponse; - toProto(message: _80.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _80.QueryParamsResponse): _80.QueryParamsResponseProtoMsg; - }; - QuerySubspacesRequest: { - typeUrl: string; - encode(_: _80.QuerySubspacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QuerySubspacesRequest; - fromJSON(_: any): _80.QuerySubspacesRequest; - toJSON(_: _80.QuerySubspacesRequest): unknown; - fromPartial(_: Partial<_80.QuerySubspacesRequest>): _80.QuerySubspacesRequest; - fromAmino(_: _80.QuerySubspacesRequestAmino): _80.QuerySubspacesRequest; - toAmino(_: _80.QuerySubspacesRequest): _80.QuerySubspacesRequestAmino; - fromAminoMsg(object: _80.QuerySubspacesRequestAminoMsg): _80.QuerySubspacesRequest; - toAminoMsg(message: _80.QuerySubspacesRequest): _80.QuerySubspacesRequestAminoMsg; - fromProtoMsg(message: _80.QuerySubspacesRequestProtoMsg): _80.QuerySubspacesRequest; - toProto(message: _80.QuerySubspacesRequest): Uint8Array; - toProtoMsg(message: _80.QuerySubspacesRequest): _80.QuerySubspacesRequestProtoMsg; - }; - QuerySubspacesResponse: { - typeUrl: string; - encode(message: _80.QuerySubspacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.QuerySubspacesResponse; - fromJSON(object: any): _80.QuerySubspacesResponse; - toJSON(message: _80.QuerySubspacesResponse): unknown; - fromPartial(object: Partial<_80.QuerySubspacesResponse>): _80.QuerySubspacesResponse; - fromAmino(object: _80.QuerySubspacesResponseAmino): _80.QuerySubspacesResponse; - toAmino(message: _80.QuerySubspacesResponse): _80.QuerySubspacesResponseAmino; - fromAminoMsg(object: _80.QuerySubspacesResponseAminoMsg): _80.QuerySubspacesResponse; - toAminoMsg(message: _80.QuerySubspacesResponse): _80.QuerySubspacesResponseAminoMsg; - fromProtoMsg(message: _80.QuerySubspacesResponseProtoMsg): _80.QuerySubspacesResponse; - toProto(message: _80.QuerySubspacesResponse): Uint8Array; - toProtoMsg(message: _80.QuerySubspacesResponse): _80.QuerySubspacesResponseProtoMsg; - }; - Subspace: { - typeUrl: string; - encode(message: _80.Subspace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _80.Subspace; - fromJSON(object: any): _80.Subspace; - toJSON(message: _80.Subspace): unknown; - fromPartial(object: Partial<_80.Subspace>): _80.Subspace; - fromAmino(object: _80.SubspaceAmino): _80.Subspace; - toAmino(message: _80.Subspace): _80.SubspaceAmino; - fromAminoMsg(object: _80.SubspaceAminoMsg): _80.Subspace; - toAminoMsg(message: _80.Subspace): _80.SubspaceAminoMsg; - fromProtoMsg(message: _80.SubspaceProtoMsg): _80.Subspace; - toProto(message: _80.Subspace): Uint8Array; - toProtoMsg(message: _80.Subspace): _80.SubspaceProtoMsg; - }; - ParameterChangeProposal: { - typeUrl: string; - encode(message: _79.ParameterChangeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _79.ParameterChangeProposal; - fromJSON(object: any): _79.ParameterChangeProposal; - toJSON(message: _79.ParameterChangeProposal): unknown; - fromPartial(object: Partial<_79.ParameterChangeProposal>): _79.ParameterChangeProposal; - fromAmino(object: _79.ParameterChangeProposalAmino): _79.ParameterChangeProposal; - toAmino(message: _79.ParameterChangeProposal): _79.ParameterChangeProposalAmino; - fromAminoMsg(object: _79.ParameterChangeProposalAminoMsg): _79.ParameterChangeProposal; - toAminoMsg(message: _79.ParameterChangeProposal): _79.ParameterChangeProposalAminoMsg; - fromProtoMsg(message: _79.ParameterChangeProposalProtoMsg): _79.ParameterChangeProposal; - toProto(message: _79.ParameterChangeProposal): Uint8Array; - toProtoMsg(message: _79.ParameterChangeProposal): _79.ParameterChangeProposalProtoMsg; - }; - ParamChange: { - typeUrl: string; - encode(message: _79.ParamChange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _79.ParamChange; - fromJSON(object: any): _79.ParamChange; - toJSON(message: _79.ParamChange): unknown; - fromPartial(object: Partial<_79.ParamChange>): _79.ParamChange; - fromAmino(object: _79.ParamChangeAmino): _79.ParamChange; - toAmino(message: _79.ParamChange): _79.ParamChangeAmino; - fromAminoMsg(object: _79.ParamChangeAminoMsg): _79.ParamChange; - toAminoMsg(message: _79.ParamChange): _79.ParamChangeAminoMsg; - fromProtoMsg(message: _79.ParamChangeProtoMsg): _79.ParamChange; - toProto(message: _79.ParamChange): Uint8Array; - toProtoMsg(message: _79.ParamChange): _79.ParamChangeProtoMsg; - }; - }; - } - namespace slashing { - const v1beta1: { - MsgClientImpl: typeof _227.MsgClientImpl; - QueryClientImpl: typeof _213.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request?: _82.QueryParamsRequest | undefined): Promise<_82.QueryParamsResponse>; - signingInfo(request: _82.QuerySigningInfoRequest): Promise<_82.QuerySigningInfoResponse>; - signingInfos(request?: _82.QuerySigningInfosRequest | undefined): Promise<_82.QuerySigningInfosResponse>; - }; - LCDQueryClient: typeof _194.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - unjail(value: _84.MsgUnjail): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - unjail(value: _84.MsgUnjail): { - typeUrl: string; - value: _84.MsgUnjail; - }; - }; - toJSON: { - unjail(value: _84.MsgUnjail): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - unjail(value: any): { - typeUrl: string; - value: _84.MsgUnjail; - }; - }; - fromPartial: { - unjail(value: _84.MsgUnjail): { - typeUrl: string; - value: _84.MsgUnjail; - }; - }; - }; - AminoConverter: { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: (message: _84.MsgUnjail) => _84.MsgUnjailAmino; - fromAmino: (object: _84.MsgUnjailAmino) => _84.MsgUnjail; - }; - }; - MsgUnjail: { - typeUrl: string; - encode(message: _84.MsgUnjail, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _84.MsgUnjail; - fromJSON(object: any): _84.MsgUnjail; - toJSON(message: _84.MsgUnjail): unknown; - fromPartial(object: Partial<_84.MsgUnjail>): _84.MsgUnjail; - fromAmino(object: _84.MsgUnjailAmino): _84.MsgUnjail; - toAmino(message: _84.MsgUnjail): _84.MsgUnjailAmino; - fromAminoMsg(object: _84.MsgUnjailAminoMsg): _84.MsgUnjail; - toAminoMsg(message: _84.MsgUnjail): _84.MsgUnjailAminoMsg; - fromProtoMsg(message: _84.MsgUnjailProtoMsg): _84.MsgUnjail; - toProto(message: _84.MsgUnjail): Uint8Array; - toProtoMsg(message: _84.MsgUnjail): _84.MsgUnjailProtoMsg; - }; - MsgUnjailResponse: { - typeUrl: string; - encode(_: _84.MsgUnjailResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _84.MsgUnjailResponse; - fromJSON(_: any): _84.MsgUnjailResponse; - toJSON(_: _84.MsgUnjailResponse): unknown; - fromPartial(_: Partial<_84.MsgUnjailResponse>): _84.MsgUnjailResponse; - fromAmino(_: _84.MsgUnjailResponseAmino): _84.MsgUnjailResponse; - toAmino(_: _84.MsgUnjailResponse): _84.MsgUnjailResponseAmino; - fromAminoMsg(object: _84.MsgUnjailResponseAminoMsg): _84.MsgUnjailResponse; - toAminoMsg(message: _84.MsgUnjailResponse): _84.MsgUnjailResponseAminoMsg; - fromProtoMsg(message: _84.MsgUnjailResponseProtoMsg): _84.MsgUnjailResponse; - toProto(message: _84.MsgUnjailResponse): Uint8Array; - toProtoMsg(message: _84.MsgUnjailResponse): _84.MsgUnjailResponseProtoMsg; - }; - ValidatorSigningInfo: { - typeUrl: string; - encode(message: _83.ValidatorSigningInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _83.ValidatorSigningInfo; - fromJSON(object: any): _83.ValidatorSigningInfo; - toJSON(message: _83.ValidatorSigningInfo): unknown; - fromPartial(object: Partial<_83.ValidatorSigningInfo>): _83.ValidatorSigningInfo; - fromAmino(object: _83.ValidatorSigningInfoAmino): _83.ValidatorSigningInfo; - toAmino(message: _83.ValidatorSigningInfo): _83.ValidatorSigningInfoAmino; - fromAminoMsg(object: _83.ValidatorSigningInfoAminoMsg): _83.ValidatorSigningInfo; - toAminoMsg(message: _83.ValidatorSigningInfo): _83.ValidatorSigningInfoAminoMsg; - fromProtoMsg(message: _83.ValidatorSigningInfoProtoMsg): _83.ValidatorSigningInfo; - toProto(message: _83.ValidatorSigningInfo): Uint8Array; - toProtoMsg(message: _83.ValidatorSigningInfo): _83.ValidatorSigningInfoProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _83.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _83.Params; - fromJSON(object: any): _83.Params; - toJSON(message: _83.Params): unknown; - fromPartial(object: Partial<_83.Params>): _83.Params; - fromAmino(object: _83.ParamsAmino): _83.Params; - toAmino(message: _83.Params): _83.ParamsAmino; - fromAminoMsg(object: _83.ParamsAminoMsg): _83.Params; - toAminoMsg(message: _83.Params): _83.ParamsAminoMsg; - fromProtoMsg(message: _83.ParamsProtoMsg): _83.Params; - toProto(message: _83.Params): Uint8Array; - toProtoMsg(message: _83.Params): _83.ParamsProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _82.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QueryParamsRequest; - fromJSON(_: any): _82.QueryParamsRequest; - toJSON(_: _82.QueryParamsRequest): unknown; - fromPartial(_: Partial<_82.QueryParamsRequest>): _82.QueryParamsRequest; - fromAmino(_: _82.QueryParamsRequestAmino): _82.QueryParamsRequest; - toAmino(_: _82.QueryParamsRequest): _82.QueryParamsRequestAmino; - fromAminoMsg(object: _82.QueryParamsRequestAminoMsg): _82.QueryParamsRequest; - toAminoMsg(message: _82.QueryParamsRequest): _82.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _82.QueryParamsRequestProtoMsg): _82.QueryParamsRequest; - toProto(message: _82.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _82.QueryParamsRequest): _82.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _82.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QueryParamsResponse; - fromJSON(object: any): _82.QueryParamsResponse; - toJSON(message: _82.QueryParamsResponse): unknown; - fromPartial(object: Partial<_82.QueryParamsResponse>): _82.QueryParamsResponse; - fromAmino(object: _82.QueryParamsResponseAmino): _82.QueryParamsResponse; - toAmino(message: _82.QueryParamsResponse): _82.QueryParamsResponseAmino; - fromAminoMsg(object: _82.QueryParamsResponseAminoMsg): _82.QueryParamsResponse; - toAminoMsg(message: _82.QueryParamsResponse): _82.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _82.QueryParamsResponseProtoMsg): _82.QueryParamsResponse; - toProto(message: _82.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _82.QueryParamsResponse): _82.QueryParamsResponseProtoMsg; - }; - QuerySigningInfoRequest: { - typeUrl: string; - encode(message: _82.QuerySigningInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfoRequest; - fromJSON(object: any): _82.QuerySigningInfoRequest; - toJSON(message: _82.QuerySigningInfoRequest): unknown; - fromPartial(object: Partial<_82.QuerySigningInfoRequest>): _82.QuerySigningInfoRequest; - fromAmino(object: _82.QuerySigningInfoRequestAmino): _82.QuerySigningInfoRequest; - toAmino(message: _82.QuerySigningInfoRequest): _82.QuerySigningInfoRequestAmino; - fromAminoMsg(object: _82.QuerySigningInfoRequestAminoMsg): _82.QuerySigningInfoRequest; - toAminoMsg(message: _82.QuerySigningInfoRequest): _82.QuerySigningInfoRequestAminoMsg; - fromProtoMsg(message: _82.QuerySigningInfoRequestProtoMsg): _82.QuerySigningInfoRequest; - toProto(message: _82.QuerySigningInfoRequest): Uint8Array; - toProtoMsg(message: _82.QuerySigningInfoRequest): _82.QuerySigningInfoRequestProtoMsg; - }; - QuerySigningInfoResponse: { - typeUrl: string; - encode(message: _82.QuerySigningInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfoResponse; - fromJSON(object: any): _82.QuerySigningInfoResponse; - toJSON(message: _82.QuerySigningInfoResponse): unknown; - fromPartial(object: Partial<_82.QuerySigningInfoResponse>): _82.QuerySigningInfoResponse; - fromAmino(object: _82.QuerySigningInfoResponseAmino): _82.QuerySigningInfoResponse; - toAmino(message: _82.QuerySigningInfoResponse): _82.QuerySigningInfoResponseAmino; - fromAminoMsg(object: _82.QuerySigningInfoResponseAminoMsg): _82.QuerySigningInfoResponse; - toAminoMsg(message: _82.QuerySigningInfoResponse): _82.QuerySigningInfoResponseAminoMsg; - fromProtoMsg(message: _82.QuerySigningInfoResponseProtoMsg): _82.QuerySigningInfoResponse; - toProto(message: _82.QuerySigningInfoResponse): Uint8Array; - toProtoMsg(message: _82.QuerySigningInfoResponse): _82.QuerySigningInfoResponseProtoMsg; - }; - QuerySigningInfosRequest: { - typeUrl: string; - encode(message: _82.QuerySigningInfosRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfosRequest; - fromJSON(object: any): _82.QuerySigningInfosRequest; - toJSON(message: _82.QuerySigningInfosRequest): unknown; - fromPartial(object: Partial<_82.QuerySigningInfosRequest>): _82.QuerySigningInfosRequest; - fromAmino(object: _82.QuerySigningInfosRequestAmino): _82.QuerySigningInfosRequest; - toAmino(message: _82.QuerySigningInfosRequest): _82.QuerySigningInfosRequestAmino; - fromAminoMsg(object: _82.QuerySigningInfosRequestAminoMsg): _82.QuerySigningInfosRequest; - toAminoMsg(message: _82.QuerySigningInfosRequest): _82.QuerySigningInfosRequestAminoMsg; - fromProtoMsg(message: _82.QuerySigningInfosRequestProtoMsg): _82.QuerySigningInfosRequest; - toProto(message: _82.QuerySigningInfosRequest): Uint8Array; - toProtoMsg(message: _82.QuerySigningInfosRequest): _82.QuerySigningInfosRequestProtoMsg; - }; - QuerySigningInfosResponse: { - typeUrl: string; - encode(message: _82.QuerySigningInfosResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _82.QuerySigningInfosResponse; - fromJSON(object: any): _82.QuerySigningInfosResponse; - toJSON(message: _82.QuerySigningInfosResponse): unknown; - fromPartial(object: Partial<_82.QuerySigningInfosResponse>): _82.QuerySigningInfosResponse; - fromAmino(object: _82.QuerySigningInfosResponseAmino): _82.QuerySigningInfosResponse; - toAmino(message: _82.QuerySigningInfosResponse): _82.QuerySigningInfosResponseAmino; - fromAminoMsg(object: _82.QuerySigningInfosResponseAminoMsg): _82.QuerySigningInfosResponse; - toAminoMsg(message: _82.QuerySigningInfosResponse): _82.QuerySigningInfosResponseAminoMsg; - fromProtoMsg(message: _82.QuerySigningInfosResponseProtoMsg): _82.QuerySigningInfosResponse; - toProto(message: _82.QuerySigningInfosResponse): Uint8Array; - toProtoMsg(message: _82.QuerySigningInfosResponse): _82.QuerySigningInfosResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _81.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.GenesisState; - fromJSON(object: any): _81.GenesisState; - toJSON(message: _81.GenesisState): unknown; - fromPartial(object: Partial<_81.GenesisState>): _81.GenesisState; - fromAmino(object: _81.GenesisStateAmino): _81.GenesisState; - toAmino(message: _81.GenesisState): _81.GenesisStateAmino; - fromAminoMsg(object: _81.GenesisStateAminoMsg): _81.GenesisState; - toAminoMsg(message: _81.GenesisState): _81.GenesisStateAminoMsg; - fromProtoMsg(message: _81.GenesisStateProtoMsg): _81.GenesisState; - toProto(message: _81.GenesisState): Uint8Array; - toProtoMsg(message: _81.GenesisState): _81.GenesisStateProtoMsg; - }; - SigningInfo: { - typeUrl: string; - encode(message: _81.SigningInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.SigningInfo; - fromJSON(object: any): _81.SigningInfo; - toJSON(message: _81.SigningInfo): unknown; - fromPartial(object: Partial<_81.SigningInfo>): _81.SigningInfo; - fromAmino(object: _81.SigningInfoAmino): _81.SigningInfo; - toAmino(message: _81.SigningInfo): _81.SigningInfoAmino; - fromAminoMsg(object: _81.SigningInfoAminoMsg): _81.SigningInfo; - toAminoMsg(message: _81.SigningInfo): _81.SigningInfoAminoMsg; - fromProtoMsg(message: _81.SigningInfoProtoMsg): _81.SigningInfo; - toProto(message: _81.SigningInfo): Uint8Array; - toProtoMsg(message: _81.SigningInfo): _81.SigningInfoProtoMsg; - }; - ValidatorMissedBlocks: { - typeUrl: string; - encode(message: _81.ValidatorMissedBlocks, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.ValidatorMissedBlocks; - fromJSON(object: any): _81.ValidatorMissedBlocks; - toJSON(message: _81.ValidatorMissedBlocks): unknown; - fromPartial(object: Partial<_81.ValidatorMissedBlocks>): _81.ValidatorMissedBlocks; - fromAmino(object: _81.ValidatorMissedBlocksAmino): _81.ValidatorMissedBlocks; - toAmino(message: _81.ValidatorMissedBlocks): _81.ValidatorMissedBlocksAmino; - fromAminoMsg(object: _81.ValidatorMissedBlocksAminoMsg): _81.ValidatorMissedBlocks; - toAminoMsg(message: _81.ValidatorMissedBlocks): _81.ValidatorMissedBlocksAminoMsg; - fromProtoMsg(message: _81.ValidatorMissedBlocksProtoMsg): _81.ValidatorMissedBlocks; - toProto(message: _81.ValidatorMissedBlocks): Uint8Array; - toProtoMsg(message: _81.ValidatorMissedBlocks): _81.ValidatorMissedBlocksProtoMsg; - }; - MissedBlock: { - typeUrl: string; - encode(message: _81.MissedBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _81.MissedBlock; - fromJSON(object: any): _81.MissedBlock; - toJSON(message: _81.MissedBlock): unknown; - fromPartial(object: Partial<_81.MissedBlock>): _81.MissedBlock; - fromAmino(object: _81.MissedBlockAmino): _81.MissedBlock; - toAmino(message: _81.MissedBlock): _81.MissedBlockAmino; - fromAminoMsg(object: _81.MissedBlockAminoMsg): _81.MissedBlock; - toAminoMsg(message: _81.MissedBlock): _81.MissedBlockAminoMsg; - fromProtoMsg(message: _81.MissedBlockProtoMsg): _81.MissedBlock; - toProto(message: _81.MissedBlock): Uint8Array; - toProtoMsg(message: _81.MissedBlock): _81.MissedBlockProtoMsg; - }; - }; - } - namespace staking { - const v1beta1: { - MsgClientImpl: typeof _228.MsgClientImpl; - QueryClientImpl: typeof _214.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - validators(request: _87.QueryValidatorsRequest): Promise<_87.QueryValidatorsResponse>; - validator(request: _87.QueryValidatorRequest): Promise<_87.QueryValidatorResponse>; - validatorDelegations(request: _87.QueryValidatorDelegationsRequest): Promise<_87.QueryValidatorDelegationsResponse>; - validatorUnbondingDelegations(request: _87.QueryValidatorUnbondingDelegationsRequest): Promise<_87.QueryValidatorUnbondingDelegationsResponse>; - delegation(request: _87.QueryDelegationRequest): Promise<_87.QueryDelegationResponse>; - unbondingDelegation(request: _87.QueryUnbondingDelegationRequest): Promise<_87.QueryUnbondingDelegationResponse>; - delegatorDelegations(request: _87.QueryDelegatorDelegationsRequest): Promise<_87.QueryDelegatorDelegationsResponse>; - delegatorUnbondingDelegations(request: _87.QueryDelegatorUnbondingDelegationsRequest): Promise<_87.QueryDelegatorUnbondingDelegationsResponse>; - redelegations(request: _87.QueryRedelegationsRequest): Promise<_87.QueryRedelegationsResponse>; - delegatorValidators(request: _87.QueryDelegatorValidatorsRequest): Promise<_87.QueryDelegatorValidatorsResponse>; - delegatorValidator(request: _87.QueryDelegatorValidatorRequest): Promise<_87.QueryDelegatorValidatorResponse>; - historicalInfo(request: _87.QueryHistoricalInfoRequest): Promise<_87.QueryHistoricalInfoResponse>; - pool(request?: _87.QueryPoolRequest | undefined): Promise<_87.QueryPoolResponse>; - params(request?: _87.QueryParamsRequest | undefined): Promise<_87.QueryParamsResponse>; - }; - LCDQueryClient: typeof _195.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createValidator(value: _89.MsgCreateValidator): { - typeUrl: string; - value: Uint8Array; - }; - editValidator(value: _89.MsgEditValidator): { - typeUrl: string; - value: Uint8Array; - }; - delegate(value: _89.MsgDelegate): { - typeUrl: string; - value: Uint8Array; - }; - beginRedelegate(value: _89.MsgBeginRedelegate): { - typeUrl: string; - value: Uint8Array; - }; - undelegate(value: _89.MsgUndelegate): { - typeUrl: string; - value: Uint8Array; - }; - cancelUnbondingDelegation(value: _89.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createValidator(value: _89.MsgCreateValidator): { - typeUrl: string; - value: _89.MsgCreateValidator; - }; - editValidator(value: _89.MsgEditValidator): { - typeUrl: string; - value: _89.MsgEditValidator; - }; - delegate(value: _89.MsgDelegate): { - typeUrl: string; - value: _89.MsgDelegate; - }; - beginRedelegate(value: _89.MsgBeginRedelegate): { - typeUrl: string; - value: _89.MsgBeginRedelegate; - }; - undelegate(value: _89.MsgUndelegate): { - typeUrl: string; - value: _89.MsgUndelegate; - }; - cancelUnbondingDelegation(value: _89.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: _89.MsgCancelUnbondingDelegation; - }; - }; - toJSON: { - createValidator(value: _89.MsgCreateValidator): { - typeUrl: string; - value: unknown; - }; - editValidator(value: _89.MsgEditValidator): { - typeUrl: string; - value: unknown; - }; - delegate(value: _89.MsgDelegate): { - typeUrl: string; - value: unknown; - }; - beginRedelegate(value: _89.MsgBeginRedelegate): { - typeUrl: string; - value: unknown; - }; - undelegate(value: _89.MsgUndelegate): { - typeUrl: string; - value: unknown; - }; - cancelUnbondingDelegation(value: _89.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createValidator(value: any): { - typeUrl: string; - value: _89.MsgCreateValidator; - }; - editValidator(value: any): { - typeUrl: string; - value: _89.MsgEditValidator; - }; - delegate(value: any): { - typeUrl: string; - value: _89.MsgDelegate; - }; - beginRedelegate(value: any): { - typeUrl: string; - value: _89.MsgBeginRedelegate; - }; - undelegate(value: any): { - typeUrl: string; - value: _89.MsgUndelegate; - }; - cancelUnbondingDelegation(value: any): { - typeUrl: string; - value: _89.MsgCancelUnbondingDelegation; - }; - }; - fromPartial: { - createValidator(value: _89.MsgCreateValidator): { - typeUrl: string; - value: _89.MsgCreateValidator; - }; - editValidator(value: _89.MsgEditValidator): { - typeUrl: string; - value: _89.MsgEditValidator; - }; - delegate(value: _89.MsgDelegate): { - typeUrl: string; - value: _89.MsgDelegate; - }; - beginRedelegate(value: _89.MsgBeginRedelegate): { - typeUrl: string; - value: _89.MsgBeginRedelegate; - }; - undelegate(value: _89.MsgUndelegate): { - typeUrl: string; - value: _89.MsgUndelegate; - }; - cancelUnbondingDelegation(value: _89.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: _89.MsgCancelUnbondingDelegation; - }; - }; - }; - AminoConverter: { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: _89.MsgCreateValidator) => _89.MsgCreateValidatorAmino; - fromAmino: (object: _89.MsgCreateValidatorAmino) => _89.MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: _89.MsgEditValidator) => _89.MsgEditValidatorAmino; - fromAmino: (object: _89.MsgEditValidatorAmino) => _89.MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: _89.MsgDelegate) => _89.MsgDelegateAmino; - fromAmino: (object: _89.MsgDelegateAmino) => _89.MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: _89.MsgBeginRedelegate) => _89.MsgBeginRedelegateAmino; - fromAmino: (object: _89.MsgBeginRedelegateAmino) => _89.MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: _89.MsgUndelegate) => _89.MsgUndelegateAmino; - fromAmino: (object: _89.MsgUndelegateAmino) => _89.MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: _89.MsgCancelUnbondingDelegation) => _89.MsgCancelUnbondingDelegationAmino; - fromAmino: (object: _89.MsgCancelUnbondingDelegationAmino) => _89.MsgCancelUnbondingDelegation; - }; - }; - MsgCreateValidator: { - typeUrl: string; - encode(message: _89.MsgCreateValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCreateValidator; - fromJSON(object: any): _89.MsgCreateValidator; - toJSON(message: _89.MsgCreateValidator): unknown; - fromPartial(object: Partial<_89.MsgCreateValidator>): _89.MsgCreateValidator; - fromAmino(object: _89.MsgCreateValidatorAmino): _89.MsgCreateValidator; - toAmino(message: _89.MsgCreateValidator): _89.MsgCreateValidatorAmino; - fromAminoMsg(object: _89.MsgCreateValidatorAminoMsg): _89.MsgCreateValidator; - toAminoMsg(message: _89.MsgCreateValidator): _89.MsgCreateValidatorAminoMsg; - fromProtoMsg(message: _89.MsgCreateValidatorProtoMsg): _89.MsgCreateValidator; - toProto(message: _89.MsgCreateValidator): Uint8Array; - toProtoMsg(message: _89.MsgCreateValidator): _89.MsgCreateValidatorProtoMsg; - }; - MsgCreateValidatorResponse: { - typeUrl: string; - encode(_: _89.MsgCreateValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCreateValidatorResponse; - fromJSON(_: any): _89.MsgCreateValidatorResponse; - toJSON(_: _89.MsgCreateValidatorResponse): unknown; - fromPartial(_: Partial<_89.MsgCreateValidatorResponse>): _89.MsgCreateValidatorResponse; - fromAmino(_: _89.MsgCreateValidatorResponseAmino): _89.MsgCreateValidatorResponse; - toAmino(_: _89.MsgCreateValidatorResponse): _89.MsgCreateValidatorResponseAmino; - fromAminoMsg(object: _89.MsgCreateValidatorResponseAminoMsg): _89.MsgCreateValidatorResponse; - toAminoMsg(message: _89.MsgCreateValidatorResponse): _89.MsgCreateValidatorResponseAminoMsg; - fromProtoMsg(message: _89.MsgCreateValidatorResponseProtoMsg): _89.MsgCreateValidatorResponse; - toProto(message: _89.MsgCreateValidatorResponse): Uint8Array; - toProtoMsg(message: _89.MsgCreateValidatorResponse): _89.MsgCreateValidatorResponseProtoMsg; - }; - MsgEditValidator: { - typeUrl: string; - encode(message: _89.MsgEditValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgEditValidator; - fromJSON(object: any): _89.MsgEditValidator; - toJSON(message: _89.MsgEditValidator): unknown; - fromPartial(object: Partial<_89.MsgEditValidator>): _89.MsgEditValidator; - fromAmino(object: _89.MsgEditValidatorAmino): _89.MsgEditValidator; - toAmino(message: _89.MsgEditValidator): _89.MsgEditValidatorAmino; - fromAminoMsg(object: _89.MsgEditValidatorAminoMsg): _89.MsgEditValidator; - toAminoMsg(message: _89.MsgEditValidator): _89.MsgEditValidatorAminoMsg; - fromProtoMsg(message: _89.MsgEditValidatorProtoMsg): _89.MsgEditValidator; - toProto(message: _89.MsgEditValidator): Uint8Array; - toProtoMsg(message: _89.MsgEditValidator): _89.MsgEditValidatorProtoMsg; - }; - MsgEditValidatorResponse: { - typeUrl: string; - encode(_: _89.MsgEditValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgEditValidatorResponse; - fromJSON(_: any): _89.MsgEditValidatorResponse; - toJSON(_: _89.MsgEditValidatorResponse): unknown; - fromPartial(_: Partial<_89.MsgEditValidatorResponse>): _89.MsgEditValidatorResponse; - fromAmino(_: _89.MsgEditValidatorResponseAmino): _89.MsgEditValidatorResponse; - toAmino(_: _89.MsgEditValidatorResponse): _89.MsgEditValidatorResponseAmino; - fromAminoMsg(object: _89.MsgEditValidatorResponseAminoMsg): _89.MsgEditValidatorResponse; - toAminoMsg(message: _89.MsgEditValidatorResponse): _89.MsgEditValidatorResponseAminoMsg; - fromProtoMsg(message: _89.MsgEditValidatorResponseProtoMsg): _89.MsgEditValidatorResponse; - toProto(message: _89.MsgEditValidatorResponse): Uint8Array; - toProtoMsg(message: _89.MsgEditValidatorResponse): _89.MsgEditValidatorResponseProtoMsg; - }; - MsgDelegate: { - typeUrl: string; - encode(message: _89.MsgDelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgDelegate; - fromJSON(object: any): _89.MsgDelegate; - toJSON(message: _89.MsgDelegate): unknown; - fromPartial(object: Partial<_89.MsgDelegate>): _89.MsgDelegate; - fromAmino(object: _89.MsgDelegateAmino): _89.MsgDelegate; - toAmino(message: _89.MsgDelegate): _89.MsgDelegateAmino; - fromAminoMsg(object: _89.MsgDelegateAminoMsg): _89.MsgDelegate; - toAminoMsg(message: _89.MsgDelegate): _89.MsgDelegateAminoMsg; - fromProtoMsg(message: _89.MsgDelegateProtoMsg): _89.MsgDelegate; - toProto(message: _89.MsgDelegate): Uint8Array; - toProtoMsg(message: _89.MsgDelegate): _89.MsgDelegateProtoMsg; - }; - MsgDelegateResponse: { - typeUrl: string; - encode(_: _89.MsgDelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgDelegateResponse; - fromJSON(_: any): _89.MsgDelegateResponse; - toJSON(_: _89.MsgDelegateResponse): unknown; - fromPartial(_: Partial<_89.MsgDelegateResponse>): _89.MsgDelegateResponse; - fromAmino(_: _89.MsgDelegateResponseAmino): _89.MsgDelegateResponse; - toAmino(_: _89.MsgDelegateResponse): _89.MsgDelegateResponseAmino; - fromAminoMsg(object: _89.MsgDelegateResponseAminoMsg): _89.MsgDelegateResponse; - toAminoMsg(message: _89.MsgDelegateResponse): _89.MsgDelegateResponseAminoMsg; - fromProtoMsg(message: _89.MsgDelegateResponseProtoMsg): _89.MsgDelegateResponse; - toProto(message: _89.MsgDelegateResponse): Uint8Array; - toProtoMsg(message: _89.MsgDelegateResponse): _89.MsgDelegateResponseProtoMsg; - }; - MsgBeginRedelegate: { - typeUrl: string; - encode(message: _89.MsgBeginRedelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgBeginRedelegate; - fromJSON(object: any): _89.MsgBeginRedelegate; - toJSON(message: _89.MsgBeginRedelegate): unknown; - fromPartial(object: Partial<_89.MsgBeginRedelegate>): _89.MsgBeginRedelegate; - fromAmino(object: _89.MsgBeginRedelegateAmino): _89.MsgBeginRedelegate; - toAmino(message: _89.MsgBeginRedelegate): _89.MsgBeginRedelegateAmino; - fromAminoMsg(object: _89.MsgBeginRedelegateAminoMsg): _89.MsgBeginRedelegate; - toAminoMsg(message: _89.MsgBeginRedelegate): _89.MsgBeginRedelegateAminoMsg; - fromProtoMsg(message: _89.MsgBeginRedelegateProtoMsg): _89.MsgBeginRedelegate; - toProto(message: _89.MsgBeginRedelegate): Uint8Array; - toProtoMsg(message: _89.MsgBeginRedelegate): _89.MsgBeginRedelegateProtoMsg; - }; - MsgBeginRedelegateResponse: { - typeUrl: string; - encode(message: _89.MsgBeginRedelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgBeginRedelegateResponse; - fromJSON(object: any): _89.MsgBeginRedelegateResponse; - toJSON(message: _89.MsgBeginRedelegateResponse): unknown; - fromPartial(object: Partial<_89.MsgBeginRedelegateResponse>): _89.MsgBeginRedelegateResponse; - fromAmino(object: _89.MsgBeginRedelegateResponseAmino): _89.MsgBeginRedelegateResponse; - toAmino(message: _89.MsgBeginRedelegateResponse): _89.MsgBeginRedelegateResponseAmino; - fromAminoMsg(object: _89.MsgBeginRedelegateResponseAminoMsg): _89.MsgBeginRedelegateResponse; - toAminoMsg(message: _89.MsgBeginRedelegateResponse): _89.MsgBeginRedelegateResponseAminoMsg; - fromProtoMsg(message: _89.MsgBeginRedelegateResponseProtoMsg): _89.MsgBeginRedelegateResponse; - toProto(message: _89.MsgBeginRedelegateResponse): Uint8Array; - toProtoMsg(message: _89.MsgBeginRedelegateResponse): _89.MsgBeginRedelegateResponseProtoMsg; - }; - MsgUndelegate: { - typeUrl: string; - encode(message: _89.MsgUndelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgUndelegate; - fromJSON(object: any): _89.MsgUndelegate; - toJSON(message: _89.MsgUndelegate): unknown; - fromPartial(object: Partial<_89.MsgUndelegate>): _89.MsgUndelegate; - fromAmino(object: _89.MsgUndelegateAmino): _89.MsgUndelegate; - toAmino(message: _89.MsgUndelegate): _89.MsgUndelegateAmino; - fromAminoMsg(object: _89.MsgUndelegateAminoMsg): _89.MsgUndelegate; - toAminoMsg(message: _89.MsgUndelegate): _89.MsgUndelegateAminoMsg; - fromProtoMsg(message: _89.MsgUndelegateProtoMsg): _89.MsgUndelegate; - toProto(message: _89.MsgUndelegate): Uint8Array; - toProtoMsg(message: _89.MsgUndelegate): _89.MsgUndelegateProtoMsg; - }; - MsgUndelegateResponse: { - typeUrl: string; - encode(message: _89.MsgUndelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgUndelegateResponse; - fromJSON(object: any): _89.MsgUndelegateResponse; - toJSON(message: _89.MsgUndelegateResponse): unknown; - fromPartial(object: Partial<_89.MsgUndelegateResponse>): _89.MsgUndelegateResponse; - fromAmino(object: _89.MsgUndelegateResponseAmino): _89.MsgUndelegateResponse; - toAmino(message: _89.MsgUndelegateResponse): _89.MsgUndelegateResponseAmino; - fromAminoMsg(object: _89.MsgUndelegateResponseAminoMsg): _89.MsgUndelegateResponse; - toAminoMsg(message: _89.MsgUndelegateResponse): _89.MsgUndelegateResponseAminoMsg; - fromProtoMsg(message: _89.MsgUndelegateResponseProtoMsg): _89.MsgUndelegateResponse; - toProto(message: _89.MsgUndelegateResponse): Uint8Array; - toProtoMsg(message: _89.MsgUndelegateResponse): _89.MsgUndelegateResponseProtoMsg; - }; - MsgCancelUnbondingDelegation: { - typeUrl: string; - encode(message: _89.MsgCancelUnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCancelUnbondingDelegation; - fromJSON(object: any): _89.MsgCancelUnbondingDelegation; - toJSON(message: _89.MsgCancelUnbondingDelegation): unknown; - fromPartial(object: Partial<_89.MsgCancelUnbondingDelegation>): _89.MsgCancelUnbondingDelegation; - fromAmino(object: _89.MsgCancelUnbondingDelegationAmino): _89.MsgCancelUnbondingDelegation; - toAmino(message: _89.MsgCancelUnbondingDelegation): _89.MsgCancelUnbondingDelegationAmino; - fromAminoMsg(object: _89.MsgCancelUnbondingDelegationAminoMsg): _89.MsgCancelUnbondingDelegation; - toAminoMsg(message: _89.MsgCancelUnbondingDelegation): _89.MsgCancelUnbondingDelegationAminoMsg; - fromProtoMsg(message: _89.MsgCancelUnbondingDelegationProtoMsg): _89.MsgCancelUnbondingDelegation; - toProto(message: _89.MsgCancelUnbondingDelegation): Uint8Array; - toProtoMsg(message: _89.MsgCancelUnbondingDelegation): _89.MsgCancelUnbondingDelegationProtoMsg; - }; - MsgCancelUnbondingDelegationResponse: { - typeUrl: string; - encode(_: _89.MsgCancelUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _89.MsgCancelUnbondingDelegationResponse; - fromJSON(_: any): _89.MsgCancelUnbondingDelegationResponse; - toJSON(_: _89.MsgCancelUnbondingDelegationResponse): unknown; - fromPartial(_: Partial<_89.MsgCancelUnbondingDelegationResponse>): _89.MsgCancelUnbondingDelegationResponse; - fromAmino(_: _89.MsgCancelUnbondingDelegationResponseAmino): _89.MsgCancelUnbondingDelegationResponse; - toAmino(_: _89.MsgCancelUnbondingDelegationResponse): _89.MsgCancelUnbondingDelegationResponseAmino; - fromAminoMsg(object: _89.MsgCancelUnbondingDelegationResponseAminoMsg): _89.MsgCancelUnbondingDelegationResponse; - toAminoMsg(message: _89.MsgCancelUnbondingDelegationResponse): _89.MsgCancelUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: _89.MsgCancelUnbondingDelegationResponseProtoMsg): _89.MsgCancelUnbondingDelegationResponse; - toProto(message: _89.MsgCancelUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: _89.MsgCancelUnbondingDelegationResponse): _89.MsgCancelUnbondingDelegationResponseProtoMsg; - }; - Cosmos_cryptoPubKey_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Cosmos_cryptoPubKey_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Cosmos_cryptoPubKey_ToAmino: (content: import("../google/protobuf/any").Any) => import("@cosmjs/amino").Pubkey | null; - bondStatusFromJSON(object: any): _88.BondStatus; - bondStatusToJSON(object: _88.BondStatus): string; - BondStatus: typeof _88.BondStatus; - BondStatusSDKType: typeof _88.BondStatus; - BondStatusAmino: typeof _88.BondStatus; - HistoricalInfo: { - typeUrl: string; - encode(message: _88.HistoricalInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.HistoricalInfo; - fromJSON(object: any): _88.HistoricalInfo; - toJSON(message: _88.HistoricalInfo): unknown; - fromPartial(object: Partial<_88.HistoricalInfo>): _88.HistoricalInfo; - fromAmino(object: _88.HistoricalInfoAmino): _88.HistoricalInfo; - toAmino(message: _88.HistoricalInfo): _88.HistoricalInfoAmino; - fromAminoMsg(object: _88.HistoricalInfoAminoMsg): _88.HistoricalInfo; - toAminoMsg(message: _88.HistoricalInfo): _88.HistoricalInfoAminoMsg; - fromProtoMsg(message: _88.HistoricalInfoProtoMsg): _88.HistoricalInfo; - toProto(message: _88.HistoricalInfo): Uint8Array; - toProtoMsg(message: _88.HistoricalInfo): _88.HistoricalInfoProtoMsg; - }; - CommissionRates: { - typeUrl: string; - encode(message: _88.CommissionRates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.CommissionRates; - fromJSON(object: any): _88.CommissionRates; - toJSON(message: _88.CommissionRates): unknown; - fromPartial(object: Partial<_88.CommissionRates>): _88.CommissionRates; - fromAmino(object: _88.CommissionRatesAmino): _88.CommissionRates; - toAmino(message: _88.CommissionRates): _88.CommissionRatesAmino; - fromAminoMsg(object: _88.CommissionRatesAminoMsg): _88.CommissionRates; - toAminoMsg(message: _88.CommissionRates): _88.CommissionRatesAminoMsg; - fromProtoMsg(message: _88.CommissionRatesProtoMsg): _88.CommissionRates; - toProto(message: _88.CommissionRates): Uint8Array; - toProtoMsg(message: _88.CommissionRates): _88.CommissionRatesProtoMsg; - }; - Commission: { - typeUrl: string; - encode(message: _88.Commission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Commission; - fromJSON(object: any): _88.Commission; - toJSON(message: _88.Commission): unknown; - fromPartial(object: Partial<_88.Commission>): _88.Commission; - fromAmino(object: _88.CommissionAmino): _88.Commission; - toAmino(message: _88.Commission): _88.CommissionAmino; - fromAminoMsg(object: _88.CommissionAminoMsg): _88.Commission; - toAminoMsg(message: _88.Commission): _88.CommissionAminoMsg; - fromProtoMsg(message: _88.CommissionProtoMsg): _88.Commission; - toProto(message: _88.Commission): Uint8Array; - toProtoMsg(message: _88.Commission): _88.CommissionProtoMsg; - }; - Description: { - typeUrl: string; - encode(message: _88.Description, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Description; - fromJSON(object: any): _88.Description; - toJSON(message: _88.Description): unknown; - fromPartial(object: Partial<_88.Description>): _88.Description; - fromAmino(object: _88.DescriptionAmino): _88.Description; - toAmino(message: _88.Description): _88.DescriptionAmino; - fromAminoMsg(object: _88.DescriptionAminoMsg): _88.Description; - toAminoMsg(message: _88.Description): _88.DescriptionAminoMsg; - fromProtoMsg(message: _88.DescriptionProtoMsg): _88.Description; - toProto(message: _88.Description): Uint8Array; - toProtoMsg(message: _88.Description): _88.DescriptionProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _88.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Validator; - fromJSON(object: any): _88.Validator; - toJSON(message: _88.Validator): unknown; - fromPartial(object: Partial<_88.Validator>): _88.Validator; - fromAmino(object: _88.ValidatorAmino): _88.Validator; - toAmino(message: _88.Validator): _88.ValidatorAmino; - fromAminoMsg(object: _88.ValidatorAminoMsg): _88.Validator; - toAminoMsg(message: _88.Validator): _88.ValidatorAminoMsg; - fromProtoMsg(message: _88.ValidatorProtoMsg): _88.Validator; - toProto(message: _88.Validator): Uint8Array; - toProtoMsg(message: _88.Validator): _88.ValidatorProtoMsg; - }; - ValAddresses: { - typeUrl: string; - encode(message: _88.ValAddresses, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.ValAddresses; - fromJSON(object: any): _88.ValAddresses; - toJSON(message: _88.ValAddresses): unknown; - fromPartial(object: Partial<_88.ValAddresses>): _88.ValAddresses; - fromAmino(object: _88.ValAddressesAmino): _88.ValAddresses; - toAmino(message: _88.ValAddresses): _88.ValAddressesAmino; - fromAminoMsg(object: _88.ValAddressesAminoMsg): _88.ValAddresses; - toAminoMsg(message: _88.ValAddresses): _88.ValAddressesAminoMsg; - fromProtoMsg(message: _88.ValAddressesProtoMsg): _88.ValAddresses; - toProto(message: _88.ValAddresses): Uint8Array; - toProtoMsg(message: _88.ValAddresses): _88.ValAddressesProtoMsg; - }; - DVPair: { - typeUrl: string; - encode(message: _88.DVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVPair; - fromJSON(object: any): _88.DVPair; - toJSON(message: _88.DVPair): unknown; - fromPartial(object: Partial<_88.DVPair>): _88.DVPair; - fromAmino(object: _88.DVPairAmino): _88.DVPair; - toAmino(message: _88.DVPair): _88.DVPairAmino; - fromAminoMsg(object: _88.DVPairAminoMsg): _88.DVPair; - toAminoMsg(message: _88.DVPair): _88.DVPairAminoMsg; - fromProtoMsg(message: _88.DVPairProtoMsg): _88.DVPair; - toProto(message: _88.DVPair): Uint8Array; - toProtoMsg(message: _88.DVPair): _88.DVPairProtoMsg; - }; - DVPairs: { - typeUrl: string; - encode(message: _88.DVPairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVPairs; - fromJSON(object: any): _88.DVPairs; - toJSON(message: _88.DVPairs): unknown; - fromPartial(object: Partial<_88.DVPairs>): _88.DVPairs; - fromAmino(object: _88.DVPairsAmino): _88.DVPairs; - toAmino(message: _88.DVPairs): _88.DVPairsAmino; - fromAminoMsg(object: _88.DVPairsAminoMsg): _88.DVPairs; - toAminoMsg(message: _88.DVPairs): _88.DVPairsAminoMsg; - fromProtoMsg(message: _88.DVPairsProtoMsg): _88.DVPairs; - toProto(message: _88.DVPairs): Uint8Array; - toProtoMsg(message: _88.DVPairs): _88.DVPairsProtoMsg; - }; - DVVTriplet: { - typeUrl: string; - encode(message: _88.DVVTriplet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVVTriplet; - fromJSON(object: any): _88.DVVTriplet; - toJSON(message: _88.DVVTriplet): unknown; - fromPartial(object: Partial<_88.DVVTriplet>): _88.DVVTriplet; - fromAmino(object: _88.DVVTripletAmino): _88.DVVTriplet; - toAmino(message: _88.DVVTriplet): _88.DVVTripletAmino; - fromAminoMsg(object: _88.DVVTripletAminoMsg): _88.DVVTriplet; - toAminoMsg(message: _88.DVVTriplet): _88.DVVTripletAminoMsg; - fromProtoMsg(message: _88.DVVTripletProtoMsg): _88.DVVTriplet; - toProto(message: _88.DVVTriplet): Uint8Array; - toProtoMsg(message: _88.DVVTriplet): _88.DVVTripletProtoMsg; - }; - DVVTriplets: { - typeUrl: string; - encode(message: _88.DVVTriplets, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DVVTriplets; - fromJSON(object: any): _88.DVVTriplets; - toJSON(message: _88.DVVTriplets): unknown; - fromPartial(object: Partial<_88.DVVTriplets>): _88.DVVTriplets; - fromAmino(object: _88.DVVTripletsAmino): _88.DVVTriplets; - toAmino(message: _88.DVVTriplets): _88.DVVTripletsAmino; - fromAminoMsg(object: _88.DVVTripletsAminoMsg): _88.DVVTriplets; - toAminoMsg(message: _88.DVVTriplets): _88.DVVTripletsAminoMsg; - fromProtoMsg(message: _88.DVVTripletsProtoMsg): _88.DVVTriplets; - toProto(message: _88.DVVTriplets): Uint8Array; - toProtoMsg(message: _88.DVVTriplets): _88.DVVTripletsProtoMsg; - }; - Delegation: { - typeUrl: string; - encode(message: _88.Delegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Delegation; - fromJSON(object: any): _88.Delegation; - toJSON(message: _88.Delegation): unknown; - fromPartial(object: Partial<_88.Delegation>): _88.Delegation; - fromAmino(object: _88.DelegationAmino): _88.Delegation; - toAmino(message: _88.Delegation): _88.DelegationAmino; - fromAminoMsg(object: _88.DelegationAminoMsg): _88.Delegation; - toAminoMsg(message: _88.Delegation): _88.DelegationAminoMsg; - fromProtoMsg(message: _88.DelegationProtoMsg): _88.Delegation; - toProto(message: _88.Delegation): Uint8Array; - toProtoMsg(message: _88.Delegation): _88.DelegationProtoMsg; - }; - UnbondingDelegation: { - typeUrl: string; - encode(message: _88.UnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.UnbondingDelegation; - fromJSON(object: any): _88.UnbondingDelegation; - toJSON(message: _88.UnbondingDelegation): unknown; - fromPartial(object: Partial<_88.UnbondingDelegation>): _88.UnbondingDelegation; - fromAmino(object: _88.UnbondingDelegationAmino): _88.UnbondingDelegation; - toAmino(message: _88.UnbondingDelegation): _88.UnbondingDelegationAmino; - fromAminoMsg(object: _88.UnbondingDelegationAminoMsg): _88.UnbondingDelegation; - toAminoMsg(message: _88.UnbondingDelegation): _88.UnbondingDelegationAminoMsg; - fromProtoMsg(message: _88.UnbondingDelegationProtoMsg): _88.UnbondingDelegation; - toProto(message: _88.UnbondingDelegation): Uint8Array; - toProtoMsg(message: _88.UnbondingDelegation): _88.UnbondingDelegationProtoMsg; - }; - UnbondingDelegationEntry: { - typeUrl: string; - encode(message: _88.UnbondingDelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.UnbondingDelegationEntry; - fromJSON(object: any): _88.UnbondingDelegationEntry; - toJSON(message: _88.UnbondingDelegationEntry): unknown; - fromPartial(object: Partial<_88.UnbondingDelegationEntry>): _88.UnbondingDelegationEntry; - fromAmino(object: _88.UnbondingDelegationEntryAmino): _88.UnbondingDelegationEntry; - toAmino(message: _88.UnbondingDelegationEntry): _88.UnbondingDelegationEntryAmino; - fromAminoMsg(object: _88.UnbondingDelegationEntryAminoMsg): _88.UnbondingDelegationEntry; - toAminoMsg(message: _88.UnbondingDelegationEntry): _88.UnbondingDelegationEntryAminoMsg; - fromProtoMsg(message: _88.UnbondingDelegationEntryProtoMsg): _88.UnbondingDelegationEntry; - toProto(message: _88.UnbondingDelegationEntry): Uint8Array; - toProtoMsg(message: _88.UnbondingDelegationEntry): _88.UnbondingDelegationEntryProtoMsg; - }; - RedelegationEntry: { - typeUrl: string; - encode(message: _88.RedelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationEntry; - fromJSON(object: any): _88.RedelegationEntry; - toJSON(message: _88.RedelegationEntry): unknown; - fromPartial(object: Partial<_88.RedelegationEntry>): _88.RedelegationEntry; - fromAmino(object: _88.RedelegationEntryAmino): _88.RedelegationEntry; - toAmino(message: _88.RedelegationEntry): _88.RedelegationEntryAmino; - fromAminoMsg(object: _88.RedelegationEntryAminoMsg): _88.RedelegationEntry; - toAminoMsg(message: _88.RedelegationEntry): _88.RedelegationEntryAminoMsg; - fromProtoMsg(message: _88.RedelegationEntryProtoMsg): _88.RedelegationEntry; - toProto(message: _88.RedelegationEntry): Uint8Array; - toProtoMsg(message: _88.RedelegationEntry): _88.RedelegationEntryProtoMsg; - }; - Redelegation: { - typeUrl: string; - encode(message: _88.Redelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Redelegation; - fromJSON(object: any): _88.Redelegation; - toJSON(message: _88.Redelegation): unknown; - fromPartial(object: Partial<_88.Redelegation>): _88.Redelegation; - fromAmino(object: _88.RedelegationAmino): _88.Redelegation; - toAmino(message: _88.Redelegation): _88.RedelegationAmino; - fromAminoMsg(object: _88.RedelegationAminoMsg): _88.Redelegation; - toAminoMsg(message: _88.Redelegation): _88.RedelegationAminoMsg; - fromProtoMsg(message: _88.RedelegationProtoMsg): _88.Redelegation; - toProto(message: _88.Redelegation): Uint8Array; - toProtoMsg(message: _88.Redelegation): _88.RedelegationProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _88.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Params; - fromJSON(object: any): _88.Params; - toJSON(message: _88.Params): unknown; - fromPartial(object: Partial<_88.Params>): _88.Params; - fromAmino(object: _88.ParamsAmino): _88.Params; - toAmino(message: _88.Params): _88.ParamsAmino; - fromAminoMsg(object: _88.ParamsAminoMsg): _88.Params; - toAminoMsg(message: _88.Params): _88.ParamsAminoMsg; - fromProtoMsg(message: _88.ParamsProtoMsg): _88.Params; - toProto(message: _88.Params): Uint8Array; - toProtoMsg(message: _88.Params): _88.ParamsProtoMsg; - }; - DelegationResponse: { - typeUrl: string; - encode(message: _88.DelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.DelegationResponse; - fromJSON(object: any): _88.DelegationResponse; - toJSON(message: _88.DelegationResponse): unknown; - fromPartial(object: Partial<_88.DelegationResponse>): _88.DelegationResponse; - fromAmino(object: _88.DelegationResponseAmino): _88.DelegationResponse; - toAmino(message: _88.DelegationResponse): _88.DelegationResponseAmino; - fromAminoMsg(object: _88.DelegationResponseAminoMsg): _88.DelegationResponse; - toAminoMsg(message: _88.DelegationResponse): _88.DelegationResponseAminoMsg; - fromProtoMsg(message: _88.DelegationResponseProtoMsg): _88.DelegationResponse; - toProto(message: _88.DelegationResponse): Uint8Array; - toProtoMsg(message: _88.DelegationResponse): _88.DelegationResponseProtoMsg; - }; - RedelegationEntryResponse: { - typeUrl: string; - encode(message: _88.RedelegationEntryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationEntryResponse; - fromJSON(object: any): _88.RedelegationEntryResponse; - toJSON(message: _88.RedelegationEntryResponse): unknown; - fromPartial(object: Partial<_88.RedelegationEntryResponse>): _88.RedelegationEntryResponse; - fromAmino(object: _88.RedelegationEntryResponseAmino): _88.RedelegationEntryResponse; - toAmino(message: _88.RedelegationEntryResponse): _88.RedelegationEntryResponseAmino; - fromAminoMsg(object: _88.RedelegationEntryResponseAminoMsg): _88.RedelegationEntryResponse; - toAminoMsg(message: _88.RedelegationEntryResponse): _88.RedelegationEntryResponseAminoMsg; - fromProtoMsg(message: _88.RedelegationEntryResponseProtoMsg): _88.RedelegationEntryResponse; - toProto(message: _88.RedelegationEntryResponse): Uint8Array; - toProtoMsg(message: _88.RedelegationEntryResponse): _88.RedelegationEntryResponseProtoMsg; - }; - RedelegationResponse: { - typeUrl: string; - encode(message: _88.RedelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.RedelegationResponse; - fromJSON(object: any): _88.RedelegationResponse; - toJSON(message: _88.RedelegationResponse): unknown; - fromPartial(object: Partial<_88.RedelegationResponse>): _88.RedelegationResponse; - fromAmino(object: _88.RedelegationResponseAmino): _88.RedelegationResponse; - toAmino(message: _88.RedelegationResponse): _88.RedelegationResponseAmino; - fromAminoMsg(object: _88.RedelegationResponseAminoMsg): _88.RedelegationResponse; - toAminoMsg(message: _88.RedelegationResponse): _88.RedelegationResponseAminoMsg; - fromProtoMsg(message: _88.RedelegationResponseProtoMsg): _88.RedelegationResponse; - toProto(message: _88.RedelegationResponse): Uint8Array; - toProtoMsg(message: _88.RedelegationResponse): _88.RedelegationResponseProtoMsg; - }; - Pool: { - typeUrl: string; - encode(message: _88.Pool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _88.Pool; - fromJSON(object: any): _88.Pool; - toJSON(message: _88.Pool): unknown; - fromPartial(object: Partial<_88.Pool>): _88.Pool; - fromAmino(object: _88.PoolAmino): _88.Pool; - toAmino(message: _88.Pool): _88.PoolAmino; - fromAminoMsg(object: _88.PoolAminoMsg): _88.Pool; - toAminoMsg(message: _88.Pool): _88.PoolAminoMsg; - fromProtoMsg(message: _88.PoolProtoMsg): _88.Pool; - toProto(message: _88.Pool): Uint8Array; - toProtoMsg(message: _88.Pool): _88.PoolProtoMsg; - }; - QueryValidatorsRequest: { - typeUrl: string; - encode(message: _87.QueryValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorsRequest; - fromJSON(object: any): _87.QueryValidatorsRequest; - toJSON(message: _87.QueryValidatorsRequest): unknown; - fromPartial(object: Partial<_87.QueryValidatorsRequest>): _87.QueryValidatorsRequest; - fromAmino(object: _87.QueryValidatorsRequestAmino): _87.QueryValidatorsRequest; - toAmino(message: _87.QueryValidatorsRequest): _87.QueryValidatorsRequestAmino; - fromAminoMsg(object: _87.QueryValidatorsRequestAminoMsg): _87.QueryValidatorsRequest; - toAminoMsg(message: _87.QueryValidatorsRequest): _87.QueryValidatorsRequestAminoMsg; - fromProtoMsg(message: _87.QueryValidatorsRequestProtoMsg): _87.QueryValidatorsRequest; - toProto(message: _87.QueryValidatorsRequest): Uint8Array; - toProtoMsg(message: _87.QueryValidatorsRequest): _87.QueryValidatorsRequestProtoMsg; - }; - QueryValidatorsResponse: { - typeUrl: string; - encode(message: _87.QueryValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorsResponse; - fromJSON(object: any): _87.QueryValidatorsResponse; - toJSON(message: _87.QueryValidatorsResponse): unknown; - fromPartial(object: Partial<_87.QueryValidatorsResponse>): _87.QueryValidatorsResponse; - fromAmino(object: _87.QueryValidatorsResponseAmino): _87.QueryValidatorsResponse; - toAmino(message: _87.QueryValidatorsResponse): _87.QueryValidatorsResponseAmino; - fromAminoMsg(object: _87.QueryValidatorsResponseAminoMsg): _87.QueryValidatorsResponse; - toAminoMsg(message: _87.QueryValidatorsResponse): _87.QueryValidatorsResponseAminoMsg; - fromProtoMsg(message: _87.QueryValidatorsResponseProtoMsg): _87.QueryValidatorsResponse; - toProto(message: _87.QueryValidatorsResponse): Uint8Array; - toProtoMsg(message: _87.QueryValidatorsResponse): _87.QueryValidatorsResponseProtoMsg; - }; - QueryValidatorRequest: { - typeUrl: string; - encode(message: _87.QueryValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorRequest; - fromJSON(object: any): _87.QueryValidatorRequest; - toJSON(message: _87.QueryValidatorRequest): unknown; - fromPartial(object: Partial<_87.QueryValidatorRequest>): _87.QueryValidatorRequest; - fromAmino(object: _87.QueryValidatorRequestAmino): _87.QueryValidatorRequest; - toAmino(message: _87.QueryValidatorRequest): _87.QueryValidatorRequestAmino; - fromAminoMsg(object: _87.QueryValidatorRequestAminoMsg): _87.QueryValidatorRequest; - toAminoMsg(message: _87.QueryValidatorRequest): _87.QueryValidatorRequestAminoMsg; - fromProtoMsg(message: _87.QueryValidatorRequestProtoMsg): _87.QueryValidatorRequest; - toProto(message: _87.QueryValidatorRequest): Uint8Array; - toProtoMsg(message: _87.QueryValidatorRequest): _87.QueryValidatorRequestProtoMsg; - }; - QueryValidatorResponse: { - typeUrl: string; - encode(message: _87.QueryValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorResponse; - fromJSON(object: any): _87.QueryValidatorResponse; - toJSON(message: _87.QueryValidatorResponse): unknown; - fromPartial(object: Partial<_87.QueryValidatorResponse>): _87.QueryValidatorResponse; - fromAmino(object: _87.QueryValidatorResponseAmino): _87.QueryValidatorResponse; - toAmino(message: _87.QueryValidatorResponse): _87.QueryValidatorResponseAmino; - fromAminoMsg(object: _87.QueryValidatorResponseAminoMsg): _87.QueryValidatorResponse; - toAminoMsg(message: _87.QueryValidatorResponse): _87.QueryValidatorResponseAminoMsg; - fromProtoMsg(message: _87.QueryValidatorResponseProtoMsg): _87.QueryValidatorResponse; - toProto(message: _87.QueryValidatorResponse): Uint8Array; - toProtoMsg(message: _87.QueryValidatorResponse): _87.QueryValidatorResponseProtoMsg; - }; - QueryValidatorDelegationsRequest: { - typeUrl: string; - encode(message: _87.QueryValidatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorDelegationsRequest; - fromJSON(object: any): _87.QueryValidatorDelegationsRequest; - toJSON(message: _87.QueryValidatorDelegationsRequest): unknown; - fromPartial(object: Partial<_87.QueryValidatorDelegationsRequest>): _87.QueryValidatorDelegationsRequest; - fromAmino(object: _87.QueryValidatorDelegationsRequestAmino): _87.QueryValidatorDelegationsRequest; - toAmino(message: _87.QueryValidatorDelegationsRequest): _87.QueryValidatorDelegationsRequestAmino; - fromAminoMsg(object: _87.QueryValidatorDelegationsRequestAminoMsg): _87.QueryValidatorDelegationsRequest; - toAminoMsg(message: _87.QueryValidatorDelegationsRequest): _87.QueryValidatorDelegationsRequestAminoMsg; - fromProtoMsg(message: _87.QueryValidatorDelegationsRequestProtoMsg): _87.QueryValidatorDelegationsRequest; - toProto(message: _87.QueryValidatorDelegationsRequest): Uint8Array; - toProtoMsg(message: _87.QueryValidatorDelegationsRequest): _87.QueryValidatorDelegationsRequestProtoMsg; - }; - QueryValidatorDelegationsResponse: { - typeUrl: string; - encode(message: _87.QueryValidatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorDelegationsResponse; - fromJSON(object: any): _87.QueryValidatorDelegationsResponse; - toJSON(message: _87.QueryValidatorDelegationsResponse): unknown; - fromPartial(object: Partial<_87.QueryValidatorDelegationsResponse>): _87.QueryValidatorDelegationsResponse; - fromAmino(object: _87.QueryValidatorDelegationsResponseAmino): _87.QueryValidatorDelegationsResponse; - toAmino(message: _87.QueryValidatorDelegationsResponse): _87.QueryValidatorDelegationsResponseAmino; - fromAminoMsg(object: _87.QueryValidatorDelegationsResponseAminoMsg): _87.QueryValidatorDelegationsResponse; - toAminoMsg(message: _87.QueryValidatorDelegationsResponse): _87.QueryValidatorDelegationsResponseAminoMsg; - fromProtoMsg(message: _87.QueryValidatorDelegationsResponseProtoMsg): _87.QueryValidatorDelegationsResponse; - toProto(message: _87.QueryValidatorDelegationsResponse): Uint8Array; - toProtoMsg(message: _87.QueryValidatorDelegationsResponse): _87.QueryValidatorDelegationsResponseProtoMsg; - }; - QueryValidatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: _87.QueryValidatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsRequest; - fromJSON(object: any): _87.QueryValidatorUnbondingDelegationsRequest; - toJSON(message: _87.QueryValidatorUnbondingDelegationsRequest): unknown; - fromPartial(object: Partial<_87.QueryValidatorUnbondingDelegationsRequest>): _87.QueryValidatorUnbondingDelegationsRequest; - fromAmino(object: _87.QueryValidatorUnbondingDelegationsRequestAmino): _87.QueryValidatorUnbondingDelegationsRequest; - toAmino(message: _87.QueryValidatorUnbondingDelegationsRequest): _87.QueryValidatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: _87.QueryValidatorUnbondingDelegationsRequestAminoMsg): _87.QueryValidatorUnbondingDelegationsRequest; - toAminoMsg(message: _87.QueryValidatorUnbondingDelegationsRequest): _87.QueryValidatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: _87.QueryValidatorUnbondingDelegationsRequestProtoMsg): _87.QueryValidatorUnbondingDelegationsRequest; - toProto(message: _87.QueryValidatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: _87.QueryValidatorUnbondingDelegationsRequest): _87.QueryValidatorUnbondingDelegationsRequestProtoMsg; - }; - QueryValidatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: _87.QueryValidatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryValidatorUnbondingDelegationsResponse; - fromJSON(object: any): _87.QueryValidatorUnbondingDelegationsResponse; - toJSON(message: _87.QueryValidatorUnbondingDelegationsResponse): unknown; - fromPartial(object: Partial<_87.QueryValidatorUnbondingDelegationsResponse>): _87.QueryValidatorUnbondingDelegationsResponse; - fromAmino(object: _87.QueryValidatorUnbondingDelegationsResponseAmino): _87.QueryValidatorUnbondingDelegationsResponse; - toAmino(message: _87.QueryValidatorUnbondingDelegationsResponse): _87.QueryValidatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: _87.QueryValidatorUnbondingDelegationsResponseAminoMsg): _87.QueryValidatorUnbondingDelegationsResponse; - toAminoMsg(message: _87.QueryValidatorUnbondingDelegationsResponse): _87.QueryValidatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: _87.QueryValidatorUnbondingDelegationsResponseProtoMsg): _87.QueryValidatorUnbondingDelegationsResponse; - toProto(message: _87.QueryValidatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: _87.QueryValidatorUnbondingDelegationsResponse): _87.QueryValidatorUnbondingDelegationsResponseProtoMsg; - }; - QueryDelegationRequest: { - typeUrl: string; - encode(message: _87.QueryDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegationRequest; - fromJSON(object: any): _87.QueryDelegationRequest; - toJSON(message: _87.QueryDelegationRequest): unknown; - fromPartial(object: Partial<_87.QueryDelegationRequest>): _87.QueryDelegationRequest; - fromAmino(object: _87.QueryDelegationRequestAmino): _87.QueryDelegationRequest; - toAmino(message: _87.QueryDelegationRequest): _87.QueryDelegationRequestAmino; - fromAminoMsg(object: _87.QueryDelegationRequestAminoMsg): _87.QueryDelegationRequest; - toAminoMsg(message: _87.QueryDelegationRequest): _87.QueryDelegationRequestAminoMsg; - fromProtoMsg(message: _87.QueryDelegationRequestProtoMsg): _87.QueryDelegationRequest; - toProto(message: _87.QueryDelegationRequest): Uint8Array; - toProtoMsg(message: _87.QueryDelegationRequest): _87.QueryDelegationRequestProtoMsg; - }; - QueryDelegationResponse: { - typeUrl: string; - encode(message: _87.QueryDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegationResponse; - fromJSON(object: any): _87.QueryDelegationResponse; - toJSON(message: _87.QueryDelegationResponse): unknown; - fromPartial(object: Partial<_87.QueryDelegationResponse>): _87.QueryDelegationResponse; - fromAmino(object: _87.QueryDelegationResponseAmino): _87.QueryDelegationResponse; - toAmino(message: _87.QueryDelegationResponse): _87.QueryDelegationResponseAmino; - fromAminoMsg(object: _87.QueryDelegationResponseAminoMsg): _87.QueryDelegationResponse; - toAminoMsg(message: _87.QueryDelegationResponse): _87.QueryDelegationResponseAminoMsg; - fromProtoMsg(message: _87.QueryDelegationResponseProtoMsg): _87.QueryDelegationResponse; - toProto(message: _87.QueryDelegationResponse): Uint8Array; - toProtoMsg(message: _87.QueryDelegationResponse): _87.QueryDelegationResponseProtoMsg; - }; - QueryUnbondingDelegationRequest: { - typeUrl: string; - encode(message: _87.QueryUnbondingDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryUnbondingDelegationRequest; - fromJSON(object: any): _87.QueryUnbondingDelegationRequest; - toJSON(message: _87.QueryUnbondingDelegationRequest): unknown; - fromPartial(object: Partial<_87.QueryUnbondingDelegationRequest>): _87.QueryUnbondingDelegationRequest; - fromAmino(object: _87.QueryUnbondingDelegationRequestAmino): _87.QueryUnbondingDelegationRequest; - toAmino(message: _87.QueryUnbondingDelegationRequest): _87.QueryUnbondingDelegationRequestAmino; - fromAminoMsg(object: _87.QueryUnbondingDelegationRequestAminoMsg): _87.QueryUnbondingDelegationRequest; - toAminoMsg(message: _87.QueryUnbondingDelegationRequest): _87.QueryUnbondingDelegationRequestAminoMsg; - fromProtoMsg(message: _87.QueryUnbondingDelegationRequestProtoMsg): _87.QueryUnbondingDelegationRequest; - toProto(message: _87.QueryUnbondingDelegationRequest): Uint8Array; - toProtoMsg(message: _87.QueryUnbondingDelegationRequest): _87.QueryUnbondingDelegationRequestProtoMsg; - }; - QueryUnbondingDelegationResponse: { - typeUrl: string; - encode(message: _87.QueryUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryUnbondingDelegationResponse; - fromJSON(object: any): _87.QueryUnbondingDelegationResponse; - toJSON(message: _87.QueryUnbondingDelegationResponse): unknown; - fromPartial(object: Partial<_87.QueryUnbondingDelegationResponse>): _87.QueryUnbondingDelegationResponse; - fromAmino(object: _87.QueryUnbondingDelegationResponseAmino): _87.QueryUnbondingDelegationResponse; - toAmino(message: _87.QueryUnbondingDelegationResponse): _87.QueryUnbondingDelegationResponseAmino; - fromAminoMsg(object: _87.QueryUnbondingDelegationResponseAminoMsg): _87.QueryUnbondingDelegationResponse; - toAminoMsg(message: _87.QueryUnbondingDelegationResponse): _87.QueryUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: _87.QueryUnbondingDelegationResponseProtoMsg): _87.QueryUnbondingDelegationResponse; - toProto(message: _87.QueryUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: _87.QueryUnbondingDelegationResponse): _87.QueryUnbondingDelegationResponseProtoMsg; - }; - QueryDelegatorDelegationsRequest: { - typeUrl: string; - encode(message: _87.QueryDelegatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorDelegationsRequest; - fromJSON(object: any): _87.QueryDelegatorDelegationsRequest; - toJSON(message: _87.QueryDelegatorDelegationsRequest): unknown; - fromPartial(object: Partial<_87.QueryDelegatorDelegationsRequest>): _87.QueryDelegatorDelegationsRequest; - fromAmino(object: _87.QueryDelegatorDelegationsRequestAmino): _87.QueryDelegatorDelegationsRequest; - toAmino(message: _87.QueryDelegatorDelegationsRequest): _87.QueryDelegatorDelegationsRequestAmino; - fromAminoMsg(object: _87.QueryDelegatorDelegationsRequestAminoMsg): _87.QueryDelegatorDelegationsRequest; - toAminoMsg(message: _87.QueryDelegatorDelegationsRequest): _87.QueryDelegatorDelegationsRequestAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorDelegationsRequestProtoMsg): _87.QueryDelegatorDelegationsRequest; - toProto(message: _87.QueryDelegatorDelegationsRequest): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorDelegationsRequest): _87.QueryDelegatorDelegationsRequestProtoMsg; - }; - QueryDelegatorDelegationsResponse: { - typeUrl: string; - encode(message: _87.QueryDelegatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorDelegationsResponse; - fromJSON(object: any): _87.QueryDelegatorDelegationsResponse; - toJSON(message: _87.QueryDelegatorDelegationsResponse): unknown; - fromPartial(object: Partial<_87.QueryDelegatorDelegationsResponse>): _87.QueryDelegatorDelegationsResponse; - fromAmino(object: _87.QueryDelegatorDelegationsResponseAmino): _87.QueryDelegatorDelegationsResponse; - toAmino(message: _87.QueryDelegatorDelegationsResponse): _87.QueryDelegatorDelegationsResponseAmino; - fromAminoMsg(object: _87.QueryDelegatorDelegationsResponseAminoMsg): _87.QueryDelegatorDelegationsResponse; - toAminoMsg(message: _87.QueryDelegatorDelegationsResponse): _87.QueryDelegatorDelegationsResponseAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorDelegationsResponseProtoMsg): _87.QueryDelegatorDelegationsResponse; - toProto(message: _87.QueryDelegatorDelegationsResponse): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorDelegationsResponse): _87.QueryDelegatorDelegationsResponseProtoMsg; - }; - QueryDelegatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: _87.QueryDelegatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsRequest; - fromJSON(object: any): _87.QueryDelegatorUnbondingDelegationsRequest; - toJSON(message: _87.QueryDelegatorUnbondingDelegationsRequest): unknown; - fromPartial(object: Partial<_87.QueryDelegatorUnbondingDelegationsRequest>): _87.QueryDelegatorUnbondingDelegationsRequest; - fromAmino(object: _87.QueryDelegatorUnbondingDelegationsRequestAmino): _87.QueryDelegatorUnbondingDelegationsRequest; - toAmino(message: _87.QueryDelegatorUnbondingDelegationsRequest): _87.QueryDelegatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: _87.QueryDelegatorUnbondingDelegationsRequestAminoMsg): _87.QueryDelegatorUnbondingDelegationsRequest; - toAminoMsg(message: _87.QueryDelegatorUnbondingDelegationsRequest): _87.QueryDelegatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsRequestProtoMsg): _87.QueryDelegatorUnbondingDelegationsRequest; - toProto(message: _87.QueryDelegatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsRequest): _87.QueryDelegatorUnbondingDelegationsRequestProtoMsg; - }; - QueryDelegatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: _87.QueryDelegatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorUnbondingDelegationsResponse; - fromJSON(object: any): _87.QueryDelegatorUnbondingDelegationsResponse; - toJSON(message: _87.QueryDelegatorUnbondingDelegationsResponse): unknown; - fromPartial(object: Partial<_87.QueryDelegatorUnbondingDelegationsResponse>): _87.QueryDelegatorUnbondingDelegationsResponse; - fromAmino(object: _87.QueryDelegatorUnbondingDelegationsResponseAmino): _87.QueryDelegatorUnbondingDelegationsResponse; - toAmino(message: _87.QueryDelegatorUnbondingDelegationsResponse): _87.QueryDelegatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: _87.QueryDelegatorUnbondingDelegationsResponseAminoMsg): _87.QueryDelegatorUnbondingDelegationsResponse; - toAminoMsg(message: _87.QueryDelegatorUnbondingDelegationsResponse): _87.QueryDelegatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsResponseProtoMsg): _87.QueryDelegatorUnbondingDelegationsResponse; - toProto(message: _87.QueryDelegatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorUnbondingDelegationsResponse): _87.QueryDelegatorUnbondingDelegationsResponseProtoMsg; - }; - QueryRedelegationsRequest: { - typeUrl: string; - encode(message: _87.QueryRedelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryRedelegationsRequest; - fromJSON(object: any): _87.QueryRedelegationsRequest; - toJSON(message: _87.QueryRedelegationsRequest): unknown; - fromPartial(object: Partial<_87.QueryRedelegationsRequest>): _87.QueryRedelegationsRequest; - fromAmino(object: _87.QueryRedelegationsRequestAmino): _87.QueryRedelegationsRequest; - toAmino(message: _87.QueryRedelegationsRequest): _87.QueryRedelegationsRequestAmino; - fromAminoMsg(object: _87.QueryRedelegationsRequestAminoMsg): _87.QueryRedelegationsRequest; - toAminoMsg(message: _87.QueryRedelegationsRequest): _87.QueryRedelegationsRequestAminoMsg; - fromProtoMsg(message: _87.QueryRedelegationsRequestProtoMsg): _87.QueryRedelegationsRequest; - toProto(message: _87.QueryRedelegationsRequest): Uint8Array; - toProtoMsg(message: _87.QueryRedelegationsRequest): _87.QueryRedelegationsRequestProtoMsg; - }; - QueryRedelegationsResponse: { - typeUrl: string; - encode(message: _87.QueryRedelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryRedelegationsResponse; - fromJSON(object: any): _87.QueryRedelegationsResponse; - toJSON(message: _87.QueryRedelegationsResponse): unknown; - fromPartial(object: Partial<_87.QueryRedelegationsResponse>): _87.QueryRedelegationsResponse; - fromAmino(object: _87.QueryRedelegationsResponseAmino): _87.QueryRedelegationsResponse; - toAmino(message: _87.QueryRedelegationsResponse): _87.QueryRedelegationsResponseAmino; - fromAminoMsg(object: _87.QueryRedelegationsResponseAminoMsg): _87.QueryRedelegationsResponse; - toAminoMsg(message: _87.QueryRedelegationsResponse): _87.QueryRedelegationsResponseAminoMsg; - fromProtoMsg(message: _87.QueryRedelegationsResponseProtoMsg): _87.QueryRedelegationsResponse; - toProto(message: _87.QueryRedelegationsResponse): Uint8Array; - toProtoMsg(message: _87.QueryRedelegationsResponse): _87.QueryRedelegationsResponseProtoMsg; - }; - QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: _87.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorsRequest; - fromJSON(object: any): _87.QueryDelegatorValidatorsRequest; - toJSON(message: _87.QueryDelegatorValidatorsRequest): unknown; - fromPartial(object: Partial<_87.QueryDelegatorValidatorsRequest>): _87.QueryDelegatorValidatorsRequest; - fromAmino(object: _87.QueryDelegatorValidatorsRequestAmino): _87.QueryDelegatorValidatorsRequest; - toAmino(message: _87.QueryDelegatorValidatorsRequest): _87.QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: _87.QueryDelegatorValidatorsRequestAminoMsg): _87.QueryDelegatorValidatorsRequest; - toAminoMsg(message: _87.QueryDelegatorValidatorsRequest): _87.QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorValidatorsRequestProtoMsg): _87.QueryDelegatorValidatorsRequest; - toProto(message: _87.QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorValidatorsRequest): _87.QueryDelegatorValidatorsRequestProtoMsg; - }; - QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: _87.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorsResponse; - fromJSON(object: any): _87.QueryDelegatorValidatorsResponse; - toJSON(message: _87.QueryDelegatorValidatorsResponse): unknown; - fromPartial(object: Partial<_87.QueryDelegatorValidatorsResponse>): _87.QueryDelegatorValidatorsResponse; - fromAmino(object: _87.QueryDelegatorValidatorsResponseAmino): _87.QueryDelegatorValidatorsResponse; - toAmino(message: _87.QueryDelegatorValidatorsResponse): _87.QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: _87.QueryDelegatorValidatorsResponseAminoMsg): _87.QueryDelegatorValidatorsResponse; - toAminoMsg(message: _87.QueryDelegatorValidatorsResponse): _87.QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorValidatorsResponseProtoMsg): _87.QueryDelegatorValidatorsResponse; - toProto(message: _87.QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorValidatorsResponse): _87.QueryDelegatorValidatorsResponseProtoMsg; - }; - QueryDelegatorValidatorRequest: { - typeUrl: string; - encode(message: _87.QueryDelegatorValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorRequest; - fromJSON(object: any): _87.QueryDelegatorValidatorRequest; - toJSON(message: _87.QueryDelegatorValidatorRequest): unknown; - fromPartial(object: Partial<_87.QueryDelegatorValidatorRequest>): _87.QueryDelegatorValidatorRequest; - fromAmino(object: _87.QueryDelegatorValidatorRequestAmino): _87.QueryDelegatorValidatorRequest; - toAmino(message: _87.QueryDelegatorValidatorRequest): _87.QueryDelegatorValidatorRequestAmino; - fromAminoMsg(object: _87.QueryDelegatorValidatorRequestAminoMsg): _87.QueryDelegatorValidatorRequest; - toAminoMsg(message: _87.QueryDelegatorValidatorRequest): _87.QueryDelegatorValidatorRequestAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorValidatorRequestProtoMsg): _87.QueryDelegatorValidatorRequest; - toProto(message: _87.QueryDelegatorValidatorRequest): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorValidatorRequest): _87.QueryDelegatorValidatorRequestProtoMsg; - }; - QueryDelegatorValidatorResponse: { - typeUrl: string; - encode(message: _87.QueryDelegatorValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryDelegatorValidatorResponse; - fromJSON(object: any): _87.QueryDelegatorValidatorResponse; - toJSON(message: _87.QueryDelegatorValidatorResponse): unknown; - fromPartial(object: Partial<_87.QueryDelegatorValidatorResponse>): _87.QueryDelegatorValidatorResponse; - fromAmino(object: _87.QueryDelegatorValidatorResponseAmino): _87.QueryDelegatorValidatorResponse; - toAmino(message: _87.QueryDelegatorValidatorResponse): _87.QueryDelegatorValidatorResponseAmino; - fromAminoMsg(object: _87.QueryDelegatorValidatorResponseAminoMsg): _87.QueryDelegatorValidatorResponse; - toAminoMsg(message: _87.QueryDelegatorValidatorResponse): _87.QueryDelegatorValidatorResponseAminoMsg; - fromProtoMsg(message: _87.QueryDelegatorValidatorResponseProtoMsg): _87.QueryDelegatorValidatorResponse; - toProto(message: _87.QueryDelegatorValidatorResponse): Uint8Array; - toProtoMsg(message: _87.QueryDelegatorValidatorResponse): _87.QueryDelegatorValidatorResponseProtoMsg; - }; - QueryHistoricalInfoRequest: { - typeUrl: string; - encode(message: _87.QueryHistoricalInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryHistoricalInfoRequest; - fromJSON(object: any): _87.QueryHistoricalInfoRequest; - toJSON(message: _87.QueryHistoricalInfoRequest): unknown; - fromPartial(object: Partial<_87.QueryHistoricalInfoRequest>): _87.QueryHistoricalInfoRequest; - fromAmino(object: _87.QueryHistoricalInfoRequestAmino): _87.QueryHistoricalInfoRequest; - toAmino(message: _87.QueryHistoricalInfoRequest): _87.QueryHistoricalInfoRequestAmino; - fromAminoMsg(object: _87.QueryHistoricalInfoRequestAminoMsg): _87.QueryHistoricalInfoRequest; - toAminoMsg(message: _87.QueryHistoricalInfoRequest): _87.QueryHistoricalInfoRequestAminoMsg; - fromProtoMsg(message: _87.QueryHistoricalInfoRequestProtoMsg): _87.QueryHistoricalInfoRequest; - toProto(message: _87.QueryHistoricalInfoRequest): Uint8Array; - toProtoMsg(message: _87.QueryHistoricalInfoRequest): _87.QueryHistoricalInfoRequestProtoMsg; - }; - QueryHistoricalInfoResponse: { - typeUrl: string; - encode(message: _87.QueryHistoricalInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryHistoricalInfoResponse; - fromJSON(object: any): _87.QueryHistoricalInfoResponse; - toJSON(message: _87.QueryHistoricalInfoResponse): unknown; - fromPartial(object: Partial<_87.QueryHistoricalInfoResponse>): _87.QueryHistoricalInfoResponse; - fromAmino(object: _87.QueryHistoricalInfoResponseAmino): _87.QueryHistoricalInfoResponse; - toAmino(message: _87.QueryHistoricalInfoResponse): _87.QueryHistoricalInfoResponseAmino; - fromAminoMsg(object: _87.QueryHistoricalInfoResponseAminoMsg): _87.QueryHistoricalInfoResponse; - toAminoMsg(message: _87.QueryHistoricalInfoResponse): _87.QueryHistoricalInfoResponseAminoMsg; - fromProtoMsg(message: _87.QueryHistoricalInfoResponseProtoMsg): _87.QueryHistoricalInfoResponse; - toProto(message: _87.QueryHistoricalInfoResponse): Uint8Array; - toProtoMsg(message: _87.QueryHistoricalInfoResponse): _87.QueryHistoricalInfoResponseProtoMsg; - }; - QueryPoolRequest: { - typeUrl: string; - encode(_: _87.QueryPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryPoolRequest; - fromJSON(_: any): _87.QueryPoolRequest; - toJSON(_: _87.QueryPoolRequest): unknown; - fromPartial(_: Partial<_87.QueryPoolRequest>): _87.QueryPoolRequest; - fromAmino(_: _87.QueryPoolRequestAmino): _87.QueryPoolRequest; - toAmino(_: _87.QueryPoolRequest): _87.QueryPoolRequestAmino; - fromAminoMsg(object: _87.QueryPoolRequestAminoMsg): _87.QueryPoolRequest; - toAminoMsg(message: _87.QueryPoolRequest): _87.QueryPoolRequestAminoMsg; - fromProtoMsg(message: _87.QueryPoolRequestProtoMsg): _87.QueryPoolRequest; - toProto(message: _87.QueryPoolRequest): Uint8Array; - toProtoMsg(message: _87.QueryPoolRequest): _87.QueryPoolRequestProtoMsg; - }; - QueryPoolResponse: { - typeUrl: string; - encode(message: _87.QueryPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryPoolResponse; - fromJSON(object: any): _87.QueryPoolResponse; - toJSON(message: _87.QueryPoolResponse): unknown; - fromPartial(object: Partial<_87.QueryPoolResponse>): _87.QueryPoolResponse; - fromAmino(object: _87.QueryPoolResponseAmino): _87.QueryPoolResponse; - toAmino(message: _87.QueryPoolResponse): _87.QueryPoolResponseAmino; - fromAminoMsg(object: _87.QueryPoolResponseAminoMsg): _87.QueryPoolResponse; - toAminoMsg(message: _87.QueryPoolResponse): _87.QueryPoolResponseAminoMsg; - fromProtoMsg(message: _87.QueryPoolResponseProtoMsg): _87.QueryPoolResponse; - toProto(message: _87.QueryPoolResponse): Uint8Array; - toProtoMsg(message: _87.QueryPoolResponse): _87.QueryPoolResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _87.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryParamsRequest; - fromJSON(_: any): _87.QueryParamsRequest; - toJSON(_: _87.QueryParamsRequest): unknown; - fromPartial(_: Partial<_87.QueryParamsRequest>): _87.QueryParamsRequest; - fromAmino(_: _87.QueryParamsRequestAmino): _87.QueryParamsRequest; - toAmino(_: _87.QueryParamsRequest): _87.QueryParamsRequestAmino; - fromAminoMsg(object: _87.QueryParamsRequestAminoMsg): _87.QueryParamsRequest; - toAminoMsg(message: _87.QueryParamsRequest): _87.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _87.QueryParamsRequestProtoMsg): _87.QueryParamsRequest; - toProto(message: _87.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _87.QueryParamsRequest): _87.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _87.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _87.QueryParamsResponse; - fromJSON(object: any): _87.QueryParamsResponse; - toJSON(message: _87.QueryParamsResponse): unknown; - fromPartial(object: Partial<_87.QueryParamsResponse>): _87.QueryParamsResponse; - fromAmino(object: _87.QueryParamsResponseAmino): _87.QueryParamsResponse; - toAmino(message: _87.QueryParamsResponse): _87.QueryParamsResponseAmino; - fromAminoMsg(object: _87.QueryParamsResponseAminoMsg): _87.QueryParamsResponse; - toAminoMsg(message: _87.QueryParamsResponse): _87.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _87.QueryParamsResponseProtoMsg): _87.QueryParamsResponse; - toProto(message: _87.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _87.QueryParamsResponse): _87.QueryParamsResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _86.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _86.GenesisState; - fromJSON(object: any): _86.GenesisState; - toJSON(message: _86.GenesisState): unknown; - fromPartial(object: Partial<_86.GenesisState>): _86.GenesisState; - fromAmino(object: _86.GenesisStateAmino): _86.GenesisState; - toAmino(message: _86.GenesisState): _86.GenesisStateAmino; - fromAminoMsg(object: _86.GenesisStateAminoMsg): _86.GenesisState; - toAminoMsg(message: _86.GenesisState): _86.GenesisStateAminoMsg; - fromProtoMsg(message: _86.GenesisStateProtoMsg): _86.GenesisState; - toProto(message: _86.GenesisState): Uint8Array; - toProtoMsg(message: _86.GenesisState): _86.GenesisStateProtoMsg; - }; - LastValidatorPower: { - typeUrl: string; - encode(message: _86.LastValidatorPower, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _86.LastValidatorPower; - fromJSON(object: any): _86.LastValidatorPower; - toJSON(message: _86.LastValidatorPower): unknown; - fromPartial(object: Partial<_86.LastValidatorPower>): _86.LastValidatorPower; - fromAmino(object: _86.LastValidatorPowerAmino): _86.LastValidatorPower; - toAmino(message: _86.LastValidatorPower): _86.LastValidatorPowerAmino; - fromAminoMsg(object: _86.LastValidatorPowerAminoMsg): _86.LastValidatorPower; - toAminoMsg(message: _86.LastValidatorPower): _86.LastValidatorPowerAminoMsg; - fromProtoMsg(message: _86.LastValidatorPowerProtoMsg): _86.LastValidatorPower; - toProto(message: _86.LastValidatorPower): Uint8Array; - toProtoMsg(message: _86.LastValidatorPower): _86.LastValidatorPowerProtoMsg; - }; - authorizationTypeFromJSON(object: any): _85.AuthorizationType; - authorizationTypeToJSON(object: _85.AuthorizationType): string; - AuthorizationType: typeof _85.AuthorizationType; - AuthorizationTypeSDKType: typeof _85.AuthorizationType; - AuthorizationTypeAmino: typeof _85.AuthorizationType; - StakeAuthorization: { - typeUrl: string; - encode(message: _85.StakeAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _85.StakeAuthorization; - fromJSON(object: any): _85.StakeAuthorization; - toJSON(message: _85.StakeAuthorization): unknown; - fromPartial(object: Partial<_85.StakeAuthorization>): _85.StakeAuthorization; - fromAmino(object: _85.StakeAuthorizationAmino): _85.StakeAuthorization; - toAmino(message: _85.StakeAuthorization): _85.StakeAuthorizationAmino; - fromAminoMsg(object: _85.StakeAuthorizationAminoMsg): _85.StakeAuthorization; - toAminoMsg(message: _85.StakeAuthorization): _85.StakeAuthorizationAminoMsg; - fromProtoMsg(message: _85.StakeAuthorizationProtoMsg): _85.StakeAuthorization; - toProto(message: _85.StakeAuthorization): Uint8Array; - toProtoMsg(message: _85.StakeAuthorization): _85.StakeAuthorizationProtoMsg; - }; - StakeAuthorization_Validators: { - typeUrl: string; - encode(message: _85.StakeAuthorization_Validators, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _85.StakeAuthorization_Validators; - fromJSON(object: any): _85.StakeAuthorization_Validators; - toJSON(message: _85.StakeAuthorization_Validators): unknown; - fromPartial(object: Partial<_85.StakeAuthorization_Validators>): _85.StakeAuthorization_Validators; - fromAmino(object: _85.StakeAuthorization_ValidatorsAmino): _85.StakeAuthorization_Validators; - toAmino(message: _85.StakeAuthorization_Validators): _85.StakeAuthorization_ValidatorsAmino; - fromAminoMsg(object: _85.StakeAuthorization_ValidatorsAminoMsg): _85.StakeAuthorization_Validators; - toAminoMsg(message: _85.StakeAuthorization_Validators): _85.StakeAuthorization_ValidatorsAminoMsg; - fromProtoMsg(message: _85.StakeAuthorization_ValidatorsProtoMsg): _85.StakeAuthorization_Validators; - toProto(message: _85.StakeAuthorization_Validators): Uint8Array; - toProtoMsg(message: _85.StakeAuthorization_Validators): _85.StakeAuthorization_ValidatorsProtoMsg; - }; - }; - } - namespace tx { - namespace signing { - const v1beta1: { - signModeFromJSON(object: any): _90.SignMode; - signModeToJSON(object: _90.SignMode): string; - SignMode: typeof _90.SignMode; - SignModeSDKType: typeof _90.SignMode; - SignModeAmino: typeof _90.SignMode; - SignatureDescriptors: { - typeUrl: string; - encode(message: _90.SignatureDescriptors, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptors; - fromJSON(object: any): _90.SignatureDescriptors; - toJSON(message: _90.SignatureDescriptors): unknown; - fromPartial(object: Partial<_90.SignatureDescriptors>): _90.SignatureDescriptors; - fromAmino(object: _90.SignatureDescriptorsAmino): _90.SignatureDescriptors; - toAmino(message: _90.SignatureDescriptors): _90.SignatureDescriptorsAmino; - fromAminoMsg(object: _90.SignatureDescriptorsAminoMsg): _90.SignatureDescriptors; - toAminoMsg(message: _90.SignatureDescriptors): _90.SignatureDescriptorsAminoMsg; - fromProtoMsg(message: _90.SignatureDescriptorsProtoMsg): _90.SignatureDescriptors; - toProto(message: _90.SignatureDescriptors): Uint8Array; - toProtoMsg(message: _90.SignatureDescriptors): _90.SignatureDescriptorsProtoMsg; - }; - SignatureDescriptor: { - typeUrl: string; - encode(message: _90.SignatureDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor; - fromJSON(object: any): _90.SignatureDescriptor; - toJSON(message: _90.SignatureDescriptor): unknown; - fromPartial(object: Partial<_90.SignatureDescriptor>): _90.SignatureDescriptor; - fromAmino(object: _90.SignatureDescriptorAmino): _90.SignatureDescriptor; - toAmino(message: _90.SignatureDescriptor): _90.SignatureDescriptorAmino; - fromAminoMsg(object: _90.SignatureDescriptorAminoMsg): _90.SignatureDescriptor; - toAminoMsg(message: _90.SignatureDescriptor): _90.SignatureDescriptorAminoMsg; - fromProtoMsg(message: _90.SignatureDescriptorProtoMsg): _90.SignatureDescriptor; - toProto(message: _90.SignatureDescriptor): Uint8Array; - toProtoMsg(message: _90.SignatureDescriptor): _90.SignatureDescriptorProtoMsg; - }; - SignatureDescriptor_Data: { - typeUrl: string; - encode(message: _90.SignatureDescriptor_Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data; - fromJSON(object: any): _90.SignatureDescriptor_Data; - toJSON(message: _90.SignatureDescriptor_Data): unknown; - fromPartial(object: Partial<_90.SignatureDescriptor_Data>): _90.SignatureDescriptor_Data; - fromAmino(object: _90.SignatureDescriptor_DataAmino): _90.SignatureDescriptor_Data; - toAmino(message: _90.SignatureDescriptor_Data): _90.SignatureDescriptor_DataAmino; - fromAminoMsg(object: _90.SignatureDescriptor_DataAminoMsg): _90.SignatureDescriptor_Data; - toAminoMsg(message: _90.SignatureDescriptor_Data): _90.SignatureDescriptor_DataAminoMsg; - fromProtoMsg(message: _90.SignatureDescriptor_DataProtoMsg): _90.SignatureDescriptor_Data; - toProto(message: _90.SignatureDescriptor_Data): Uint8Array; - toProtoMsg(message: _90.SignatureDescriptor_Data): _90.SignatureDescriptor_DataProtoMsg; - }; - SignatureDescriptor_Data_Single: { - typeUrl: string; - encode(message: _90.SignatureDescriptor_Data_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data_Single; - fromJSON(object: any): _90.SignatureDescriptor_Data_Single; - toJSON(message: _90.SignatureDescriptor_Data_Single): unknown; - fromPartial(object: Partial<_90.SignatureDescriptor_Data_Single>): _90.SignatureDescriptor_Data_Single; - fromAmino(object: _90.SignatureDescriptor_Data_SingleAmino): _90.SignatureDescriptor_Data_Single; - toAmino(message: _90.SignatureDescriptor_Data_Single): _90.SignatureDescriptor_Data_SingleAmino; - fromAminoMsg(object: _90.SignatureDescriptor_Data_SingleAminoMsg): _90.SignatureDescriptor_Data_Single; - toAminoMsg(message: _90.SignatureDescriptor_Data_Single): _90.SignatureDescriptor_Data_SingleAminoMsg; - fromProtoMsg(message: _90.SignatureDescriptor_Data_SingleProtoMsg): _90.SignatureDescriptor_Data_Single; - toProto(message: _90.SignatureDescriptor_Data_Single): Uint8Array; - toProtoMsg(message: _90.SignatureDescriptor_Data_Single): _90.SignatureDescriptor_Data_SingleProtoMsg; - }; - SignatureDescriptor_Data_Multi: { - typeUrl: string; - encode(message: _90.SignatureDescriptor_Data_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _90.SignatureDescriptor_Data_Multi; - fromJSON(object: any): _90.SignatureDescriptor_Data_Multi; - toJSON(message: _90.SignatureDescriptor_Data_Multi): unknown; - fromPartial(object: Partial<_90.SignatureDescriptor_Data_Multi>): _90.SignatureDescriptor_Data_Multi; - fromAmino(object: _90.SignatureDescriptor_Data_MultiAmino): _90.SignatureDescriptor_Data_Multi; - toAmino(message: _90.SignatureDescriptor_Data_Multi): _90.SignatureDescriptor_Data_MultiAmino; - fromAminoMsg(object: _90.SignatureDescriptor_Data_MultiAminoMsg): _90.SignatureDescriptor_Data_Multi; - toAminoMsg(message: _90.SignatureDescriptor_Data_Multi): _90.SignatureDescriptor_Data_MultiAminoMsg; - fromProtoMsg(message: _90.SignatureDescriptor_Data_MultiProtoMsg): _90.SignatureDescriptor_Data_Multi; - toProto(message: _90.SignatureDescriptor_Data_Multi): Uint8Array; - toProtoMsg(message: _90.SignatureDescriptor_Data_Multi): _90.SignatureDescriptor_Data_MultiProtoMsg; - }; - }; - } - const v1beta1: { - ServiceClientImpl: typeof _215.ServiceClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - simulate(request: _91.SimulateRequest): Promise<_91.SimulateResponse>; - getTx(request: _91.GetTxRequest): Promise<_91.GetTxResponse>; - broadcastTx(request: _91.BroadcastTxRequest): Promise<_91.BroadcastTxResponse>; - getTxsEvent(request: _91.GetTxsEventRequest): Promise<_91.GetTxsEventResponse>; - getBlockWithTxs(request: _91.GetBlockWithTxsRequest): Promise<_91.GetBlockWithTxsResponse>; - }; - LCDQueryClient: typeof _196.LCDQueryClient; - Tx: { - typeUrl: string; - encode(message: _92.Tx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Tx; - fromJSON(object: any): _92.Tx; - toJSON(message: _92.Tx): unknown; - fromPartial(object: Partial<_92.Tx>): _92.Tx; - fromAmino(object: _92.TxAmino): _92.Tx; - toAmino(message: _92.Tx): _92.TxAmino; - fromAminoMsg(object: _92.TxAminoMsg): _92.Tx; - toAminoMsg(message: _92.Tx): _92.TxAminoMsg; - fromProtoMsg(message: _92.TxProtoMsg): _92.Tx; - toProto(message: _92.Tx): Uint8Array; - toProtoMsg(message: _92.Tx): _92.TxProtoMsg; - }; - TxRaw: { - typeUrl: string; - encode(message: _92.TxRaw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.TxRaw; - fromJSON(object: any): _92.TxRaw; - toJSON(message: _92.TxRaw): unknown; - fromPartial(object: Partial<_92.TxRaw>): _92.TxRaw; - fromAmino(object: _92.TxRawAmino): _92.TxRaw; - toAmino(message: _92.TxRaw): _92.TxRawAmino; - fromAminoMsg(object: _92.TxRawAminoMsg): _92.TxRaw; - toAminoMsg(message: _92.TxRaw): _92.TxRawAminoMsg; - fromProtoMsg(message: _92.TxRawProtoMsg): _92.TxRaw; - toProto(message: _92.TxRaw): Uint8Array; - toProtoMsg(message: _92.TxRaw): _92.TxRawProtoMsg; - }; - SignDoc: { - typeUrl: string; - encode(message: _92.SignDoc, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignDoc; - fromJSON(object: any): _92.SignDoc; - toJSON(message: _92.SignDoc): unknown; - fromPartial(object: Partial<_92.SignDoc>): _92.SignDoc; - fromAmino(object: _92.SignDocAmino): _92.SignDoc; - toAmino(message: _92.SignDoc): _92.SignDocAmino; - fromAminoMsg(object: _92.SignDocAminoMsg): _92.SignDoc; - toAminoMsg(message: _92.SignDoc): _92.SignDocAminoMsg; - fromProtoMsg(message: _92.SignDocProtoMsg): _92.SignDoc; - toProto(message: _92.SignDoc): Uint8Array; - toProtoMsg(message: _92.SignDoc): _92.SignDocProtoMsg; - }; - SignDocDirectAux: { - typeUrl: string; - encode(message: _92.SignDocDirectAux, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignDocDirectAux; - fromJSON(object: any): _92.SignDocDirectAux; - toJSON(message: _92.SignDocDirectAux): unknown; - fromPartial(object: Partial<_92.SignDocDirectAux>): _92.SignDocDirectAux; - fromAmino(object: _92.SignDocDirectAuxAmino): _92.SignDocDirectAux; - toAmino(message: _92.SignDocDirectAux): _92.SignDocDirectAuxAmino; - fromAminoMsg(object: _92.SignDocDirectAuxAminoMsg): _92.SignDocDirectAux; - toAminoMsg(message: _92.SignDocDirectAux): _92.SignDocDirectAuxAminoMsg; - fromProtoMsg(message: _92.SignDocDirectAuxProtoMsg): _92.SignDocDirectAux; - toProto(message: _92.SignDocDirectAux): Uint8Array; - toProtoMsg(message: _92.SignDocDirectAux): _92.SignDocDirectAuxProtoMsg; - }; - TxBody: { - typeUrl: string; - encode(message: _92.TxBody, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.TxBody; - fromJSON(object: any): _92.TxBody; - toJSON(message: _92.TxBody): unknown; - fromPartial(object: Partial<_92.TxBody>): _92.TxBody; - fromAmino(object: _92.TxBodyAmino): _92.TxBody; - toAmino(message: _92.TxBody): _92.TxBodyAmino; - fromAminoMsg(object: _92.TxBodyAminoMsg): _92.TxBody; - toAminoMsg(message: _92.TxBody): _92.TxBodyAminoMsg; - fromProtoMsg(message: _92.TxBodyProtoMsg): _92.TxBody; - toProto(message: _92.TxBody): Uint8Array; - toProtoMsg(message: _92.TxBody): _92.TxBodyProtoMsg; - }; - AuthInfo: { - typeUrl: string; - encode(message: _92.AuthInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.AuthInfo; - fromJSON(object: any): _92.AuthInfo; - toJSON(message: _92.AuthInfo): unknown; - fromPartial(object: Partial<_92.AuthInfo>): _92.AuthInfo; - fromAmino(object: _92.AuthInfoAmino): _92.AuthInfo; - toAmino(message: _92.AuthInfo): _92.AuthInfoAmino; - fromAminoMsg(object: _92.AuthInfoAminoMsg): _92.AuthInfo; - toAminoMsg(message: _92.AuthInfo): _92.AuthInfoAminoMsg; - fromProtoMsg(message: _92.AuthInfoProtoMsg): _92.AuthInfo; - toProto(message: _92.AuthInfo): Uint8Array; - toProtoMsg(message: _92.AuthInfo): _92.AuthInfoProtoMsg; - }; - SignerInfo: { - typeUrl: string; - encode(message: _92.SignerInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.SignerInfo; - fromJSON(object: any): _92.SignerInfo; - toJSON(message: _92.SignerInfo): unknown; - fromPartial(object: Partial<_92.SignerInfo>): _92.SignerInfo; - fromAmino(object: _92.SignerInfoAmino): _92.SignerInfo; - toAmino(message: _92.SignerInfo): _92.SignerInfoAmino; - fromAminoMsg(object: _92.SignerInfoAminoMsg): _92.SignerInfo; - toAminoMsg(message: _92.SignerInfo): _92.SignerInfoAminoMsg; - fromProtoMsg(message: _92.SignerInfoProtoMsg): _92.SignerInfo; - toProto(message: _92.SignerInfo): Uint8Array; - toProtoMsg(message: _92.SignerInfo): _92.SignerInfoProtoMsg; - }; - ModeInfo: { - typeUrl: string; - encode(message: _92.ModeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo; - fromJSON(object: any): _92.ModeInfo; - toJSON(message: _92.ModeInfo): unknown; - fromPartial(object: Partial<_92.ModeInfo>): _92.ModeInfo; - fromAmino(object: _92.ModeInfoAmino): _92.ModeInfo; - toAmino(message: _92.ModeInfo): _92.ModeInfoAmino; - fromAminoMsg(object: _92.ModeInfoAminoMsg): _92.ModeInfo; - toAminoMsg(message: _92.ModeInfo): _92.ModeInfoAminoMsg; - fromProtoMsg(message: _92.ModeInfoProtoMsg): _92.ModeInfo; - toProto(message: _92.ModeInfo): Uint8Array; - toProtoMsg(message: _92.ModeInfo): _92.ModeInfoProtoMsg; - }; - ModeInfo_Single: { - typeUrl: string; - encode(message: _92.ModeInfo_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo_Single; - fromJSON(object: any): _92.ModeInfo_Single; - toJSON(message: _92.ModeInfo_Single): unknown; - fromPartial(object: Partial<_92.ModeInfo_Single>): _92.ModeInfo_Single; - fromAmino(object: _92.ModeInfo_SingleAmino): _92.ModeInfo_Single; - toAmino(message: _92.ModeInfo_Single): _92.ModeInfo_SingleAmino; - fromAminoMsg(object: _92.ModeInfo_SingleAminoMsg): _92.ModeInfo_Single; - toAminoMsg(message: _92.ModeInfo_Single): _92.ModeInfo_SingleAminoMsg; - fromProtoMsg(message: _92.ModeInfo_SingleProtoMsg): _92.ModeInfo_Single; - toProto(message: _92.ModeInfo_Single): Uint8Array; - toProtoMsg(message: _92.ModeInfo_Single): _92.ModeInfo_SingleProtoMsg; - }; - ModeInfo_Multi: { - typeUrl: string; - encode(message: _92.ModeInfo_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.ModeInfo_Multi; - fromJSON(object: any): _92.ModeInfo_Multi; - toJSON(message: _92.ModeInfo_Multi): unknown; - fromPartial(object: Partial<_92.ModeInfo_Multi>): _92.ModeInfo_Multi; - fromAmino(object: _92.ModeInfo_MultiAmino): _92.ModeInfo_Multi; - toAmino(message: _92.ModeInfo_Multi): _92.ModeInfo_MultiAmino; - fromAminoMsg(object: _92.ModeInfo_MultiAminoMsg): _92.ModeInfo_Multi; - toAminoMsg(message: _92.ModeInfo_Multi): _92.ModeInfo_MultiAminoMsg; - fromProtoMsg(message: _92.ModeInfo_MultiProtoMsg): _92.ModeInfo_Multi; - toProto(message: _92.ModeInfo_Multi): Uint8Array; - toProtoMsg(message: _92.ModeInfo_Multi): _92.ModeInfo_MultiProtoMsg; - }; - Fee: { - typeUrl: string; - encode(message: _92.Fee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Fee; - fromJSON(object: any): _92.Fee; - toJSON(message: _92.Fee): unknown; - fromPartial(object: Partial<_92.Fee>): _92.Fee; - fromAmino(object: _92.FeeAmino): _92.Fee; - toAmino(message: _92.Fee): _92.FeeAmino; - fromAminoMsg(object: _92.FeeAminoMsg): _92.Fee; - toAminoMsg(message: _92.Fee): _92.FeeAminoMsg; - fromProtoMsg(message: _92.FeeProtoMsg): _92.Fee; - toProto(message: _92.Fee): Uint8Array; - toProtoMsg(message: _92.Fee): _92.FeeProtoMsg; - }; - Tip: { - typeUrl: string; - encode(message: _92.Tip, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.Tip; - fromJSON(object: any): _92.Tip; - toJSON(message: _92.Tip): unknown; - fromPartial(object: Partial<_92.Tip>): _92.Tip; - fromAmino(object: _92.TipAmino): _92.Tip; - toAmino(message: _92.Tip): _92.TipAmino; - fromAminoMsg(object: _92.TipAminoMsg): _92.Tip; - toAminoMsg(message: _92.Tip): _92.TipAminoMsg; - fromProtoMsg(message: _92.TipProtoMsg): _92.Tip; - toProto(message: _92.Tip): Uint8Array; - toProtoMsg(message: _92.Tip): _92.TipProtoMsg; - }; - AuxSignerData: { - typeUrl: string; - encode(message: _92.AuxSignerData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _92.AuxSignerData; - fromJSON(object: any): _92.AuxSignerData; - toJSON(message: _92.AuxSignerData): unknown; - fromPartial(object: Partial<_92.AuxSignerData>): _92.AuxSignerData; - fromAmino(object: _92.AuxSignerDataAmino): _92.AuxSignerData; - toAmino(message: _92.AuxSignerData): _92.AuxSignerDataAmino; - fromAminoMsg(object: _92.AuxSignerDataAminoMsg): _92.AuxSignerData; - toAminoMsg(message: _92.AuxSignerData): _92.AuxSignerDataAminoMsg; - fromProtoMsg(message: _92.AuxSignerDataProtoMsg): _92.AuxSignerData; - toProto(message: _92.AuxSignerData): Uint8Array; - toProtoMsg(message: _92.AuxSignerData): _92.AuxSignerDataProtoMsg; - }; - orderByFromJSON(object: any): _91.OrderBy; - orderByToJSON(object: _91.OrderBy): string; - broadcastModeFromJSON(object: any): _91.BroadcastMode; - broadcastModeToJSON(object: _91.BroadcastMode): string; - OrderBy: typeof _91.OrderBy; - OrderBySDKType: typeof _91.OrderBy; - OrderByAmino: typeof _91.OrderBy; - BroadcastMode: typeof _91.BroadcastMode; - BroadcastModeSDKType: typeof _91.BroadcastMode; - BroadcastModeAmino: typeof _91.BroadcastMode; - GetTxsEventRequest: { - typeUrl: string; - encode(message: _91.GetTxsEventRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxsEventRequest; - fromJSON(object: any): _91.GetTxsEventRequest; - toJSON(message: _91.GetTxsEventRequest): unknown; - fromPartial(object: Partial<_91.GetTxsEventRequest>): _91.GetTxsEventRequest; - fromAmino(object: _91.GetTxsEventRequestAmino): _91.GetTxsEventRequest; - toAmino(message: _91.GetTxsEventRequest): _91.GetTxsEventRequestAmino; - fromAminoMsg(object: _91.GetTxsEventRequestAminoMsg): _91.GetTxsEventRequest; - toAminoMsg(message: _91.GetTxsEventRequest): _91.GetTxsEventRequestAminoMsg; - fromProtoMsg(message: _91.GetTxsEventRequestProtoMsg): _91.GetTxsEventRequest; - toProto(message: _91.GetTxsEventRequest): Uint8Array; - toProtoMsg(message: _91.GetTxsEventRequest): _91.GetTxsEventRequestProtoMsg; - }; - GetTxsEventResponse: { - typeUrl: string; - encode(message: _91.GetTxsEventResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxsEventResponse; - fromJSON(object: any): _91.GetTxsEventResponse; - toJSON(message: _91.GetTxsEventResponse): unknown; - fromPartial(object: Partial<_91.GetTxsEventResponse>): _91.GetTxsEventResponse; - fromAmino(object: _91.GetTxsEventResponseAmino): _91.GetTxsEventResponse; - toAmino(message: _91.GetTxsEventResponse): _91.GetTxsEventResponseAmino; - fromAminoMsg(object: _91.GetTxsEventResponseAminoMsg): _91.GetTxsEventResponse; - toAminoMsg(message: _91.GetTxsEventResponse): _91.GetTxsEventResponseAminoMsg; - fromProtoMsg(message: _91.GetTxsEventResponseProtoMsg): _91.GetTxsEventResponse; - toProto(message: _91.GetTxsEventResponse): Uint8Array; - toProtoMsg(message: _91.GetTxsEventResponse): _91.GetTxsEventResponseProtoMsg; - }; - BroadcastTxRequest: { - typeUrl: string; - encode(message: _91.BroadcastTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.BroadcastTxRequest; - fromJSON(object: any): _91.BroadcastTxRequest; - toJSON(message: _91.BroadcastTxRequest): unknown; - fromPartial(object: Partial<_91.BroadcastTxRequest>): _91.BroadcastTxRequest; - fromAmino(object: _91.BroadcastTxRequestAmino): _91.BroadcastTxRequest; - toAmino(message: _91.BroadcastTxRequest): _91.BroadcastTxRequestAmino; - fromAminoMsg(object: _91.BroadcastTxRequestAminoMsg): _91.BroadcastTxRequest; - toAminoMsg(message: _91.BroadcastTxRequest): _91.BroadcastTxRequestAminoMsg; - fromProtoMsg(message: _91.BroadcastTxRequestProtoMsg): _91.BroadcastTxRequest; - toProto(message: _91.BroadcastTxRequest): Uint8Array; - toProtoMsg(message: _91.BroadcastTxRequest): _91.BroadcastTxRequestProtoMsg; - }; - BroadcastTxResponse: { - typeUrl: string; - encode(message: _91.BroadcastTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.BroadcastTxResponse; - fromJSON(object: any): _91.BroadcastTxResponse; - toJSON(message: _91.BroadcastTxResponse): unknown; - fromPartial(object: Partial<_91.BroadcastTxResponse>): _91.BroadcastTxResponse; - fromAmino(object: _91.BroadcastTxResponseAmino): _91.BroadcastTxResponse; - toAmino(message: _91.BroadcastTxResponse): _91.BroadcastTxResponseAmino; - fromAminoMsg(object: _91.BroadcastTxResponseAminoMsg): _91.BroadcastTxResponse; - toAminoMsg(message: _91.BroadcastTxResponse): _91.BroadcastTxResponseAminoMsg; - fromProtoMsg(message: _91.BroadcastTxResponseProtoMsg): _91.BroadcastTxResponse; - toProto(message: _91.BroadcastTxResponse): Uint8Array; - toProtoMsg(message: _91.BroadcastTxResponse): _91.BroadcastTxResponseProtoMsg; - }; - SimulateRequest: { - typeUrl: string; - encode(message: _91.SimulateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.SimulateRequest; - fromJSON(object: any): _91.SimulateRequest; - toJSON(message: _91.SimulateRequest): unknown; - fromPartial(object: Partial<_91.SimulateRequest>): _91.SimulateRequest; - fromAmino(object: _91.SimulateRequestAmino): _91.SimulateRequest; - toAmino(message: _91.SimulateRequest): _91.SimulateRequestAmino; - fromAminoMsg(object: _91.SimulateRequestAminoMsg): _91.SimulateRequest; - toAminoMsg(message: _91.SimulateRequest): _91.SimulateRequestAminoMsg; - fromProtoMsg(message: _91.SimulateRequestProtoMsg): _91.SimulateRequest; - toProto(message: _91.SimulateRequest): Uint8Array; - toProtoMsg(message: _91.SimulateRequest): _91.SimulateRequestProtoMsg; - }; - SimulateResponse: { - typeUrl: string; - encode(message: _91.SimulateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.SimulateResponse; - fromJSON(object: any): _91.SimulateResponse; - toJSON(message: _91.SimulateResponse): unknown; - fromPartial(object: Partial<_91.SimulateResponse>): _91.SimulateResponse; - fromAmino(object: _91.SimulateResponseAmino): _91.SimulateResponse; - toAmino(message: _91.SimulateResponse): _91.SimulateResponseAmino; - fromAminoMsg(object: _91.SimulateResponseAminoMsg): _91.SimulateResponse; - toAminoMsg(message: _91.SimulateResponse): _91.SimulateResponseAminoMsg; - fromProtoMsg(message: _91.SimulateResponseProtoMsg): _91.SimulateResponse; - toProto(message: _91.SimulateResponse): Uint8Array; - toProtoMsg(message: _91.SimulateResponse): _91.SimulateResponseProtoMsg; - }; - GetTxRequest: { - typeUrl: string; - encode(message: _91.GetTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxRequest; - fromJSON(object: any): _91.GetTxRequest; - toJSON(message: _91.GetTxRequest): unknown; - fromPartial(object: Partial<_91.GetTxRequest>): _91.GetTxRequest; - fromAmino(object: _91.GetTxRequestAmino): _91.GetTxRequest; - toAmino(message: _91.GetTxRequest): _91.GetTxRequestAmino; - fromAminoMsg(object: _91.GetTxRequestAminoMsg): _91.GetTxRequest; - toAminoMsg(message: _91.GetTxRequest): _91.GetTxRequestAminoMsg; - fromProtoMsg(message: _91.GetTxRequestProtoMsg): _91.GetTxRequest; - toProto(message: _91.GetTxRequest): Uint8Array; - toProtoMsg(message: _91.GetTxRequest): _91.GetTxRequestProtoMsg; - }; - GetTxResponse: { - typeUrl: string; - encode(message: _91.GetTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetTxResponse; - fromJSON(object: any): _91.GetTxResponse; - toJSON(message: _91.GetTxResponse): unknown; - fromPartial(object: Partial<_91.GetTxResponse>): _91.GetTxResponse; - fromAmino(object: _91.GetTxResponseAmino): _91.GetTxResponse; - toAmino(message: _91.GetTxResponse): _91.GetTxResponseAmino; - fromAminoMsg(object: _91.GetTxResponseAminoMsg): _91.GetTxResponse; - toAminoMsg(message: _91.GetTxResponse): _91.GetTxResponseAminoMsg; - fromProtoMsg(message: _91.GetTxResponseProtoMsg): _91.GetTxResponse; - toProto(message: _91.GetTxResponse): Uint8Array; - toProtoMsg(message: _91.GetTxResponse): _91.GetTxResponseProtoMsg; - }; - GetBlockWithTxsRequest: { - typeUrl: string; - encode(message: _91.GetBlockWithTxsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetBlockWithTxsRequest; - fromJSON(object: any): _91.GetBlockWithTxsRequest; - toJSON(message: _91.GetBlockWithTxsRequest): unknown; - fromPartial(object: Partial<_91.GetBlockWithTxsRequest>): _91.GetBlockWithTxsRequest; - fromAmino(object: _91.GetBlockWithTxsRequestAmino): _91.GetBlockWithTxsRequest; - toAmino(message: _91.GetBlockWithTxsRequest): _91.GetBlockWithTxsRequestAmino; - fromAminoMsg(object: _91.GetBlockWithTxsRequestAminoMsg): _91.GetBlockWithTxsRequest; - toAminoMsg(message: _91.GetBlockWithTxsRequest): _91.GetBlockWithTxsRequestAminoMsg; - fromProtoMsg(message: _91.GetBlockWithTxsRequestProtoMsg): _91.GetBlockWithTxsRequest; - toProto(message: _91.GetBlockWithTxsRequest): Uint8Array; - toProtoMsg(message: _91.GetBlockWithTxsRequest): _91.GetBlockWithTxsRequestProtoMsg; - }; - GetBlockWithTxsResponse: { - typeUrl: string; - encode(message: _91.GetBlockWithTxsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _91.GetBlockWithTxsResponse; - fromJSON(object: any): _91.GetBlockWithTxsResponse; - toJSON(message: _91.GetBlockWithTxsResponse): unknown; - fromPartial(object: Partial<_91.GetBlockWithTxsResponse>): _91.GetBlockWithTxsResponse; - fromAmino(object: _91.GetBlockWithTxsResponseAmino): _91.GetBlockWithTxsResponse; - toAmino(message: _91.GetBlockWithTxsResponse): _91.GetBlockWithTxsResponseAmino; - fromAminoMsg(object: _91.GetBlockWithTxsResponseAminoMsg): _91.GetBlockWithTxsResponse; - toAminoMsg(message: _91.GetBlockWithTxsResponse): _91.GetBlockWithTxsResponseAminoMsg; - fromProtoMsg(message: _91.GetBlockWithTxsResponseProtoMsg): _91.GetBlockWithTxsResponse; - toProto(message: _91.GetBlockWithTxsResponse): Uint8Array; - toProtoMsg(message: _91.GetBlockWithTxsResponse): _91.GetBlockWithTxsResponseProtoMsg; - }; - }; - } - namespace upgrade { - const v1beta1: { - MsgClientImpl: typeof _229.MsgClientImpl; - QueryClientImpl: typeof _216.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - currentPlan(request?: _93.QueryCurrentPlanRequest | undefined): Promise<_93.QueryCurrentPlanResponse>; - appliedPlan(request: _93.QueryAppliedPlanRequest): Promise<_93.QueryAppliedPlanResponse>; - upgradedConsensusState(request: _93.QueryUpgradedConsensusStateRequest): Promise<_93.QueryUpgradedConsensusStateResponse>; - moduleVersions(request: _93.QueryModuleVersionsRequest): Promise<_93.QueryModuleVersionsResponse>; - authority(request?: _93.QueryAuthorityRequest | undefined): Promise<_93.QueryAuthorityResponse>; - }; - LCDQueryClient: typeof _197.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - softwareUpgrade(value: _94.MsgSoftwareUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - cancelUpgrade(value: _94.MsgCancelUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - softwareUpgrade(value: _94.MsgSoftwareUpgrade): { - typeUrl: string; - value: _94.MsgSoftwareUpgrade; - }; - cancelUpgrade(value: _94.MsgCancelUpgrade): { - typeUrl: string; - value: _94.MsgCancelUpgrade; - }; - }; - toJSON: { - softwareUpgrade(value: _94.MsgSoftwareUpgrade): { - typeUrl: string; - value: unknown; - }; - cancelUpgrade(value: _94.MsgCancelUpgrade): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - softwareUpgrade(value: any): { - typeUrl: string; - value: _94.MsgSoftwareUpgrade; - }; - cancelUpgrade(value: any): { - typeUrl: string; - value: _94.MsgCancelUpgrade; - }; - }; - fromPartial: { - softwareUpgrade(value: _94.MsgSoftwareUpgrade): { - typeUrl: string; - value: _94.MsgSoftwareUpgrade; - }; - cancelUpgrade(value: _94.MsgCancelUpgrade): { - typeUrl: string; - value: _94.MsgCancelUpgrade; - }; - }; - }; - AminoConverter: { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: _94.MsgSoftwareUpgrade) => _94.MsgSoftwareUpgradeAmino; - fromAmino: (object: _94.MsgSoftwareUpgradeAmino) => _94.MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: _94.MsgCancelUpgrade) => _94.MsgCancelUpgradeAmino; - fromAmino: (object: _94.MsgCancelUpgradeAmino) => _94.MsgCancelUpgrade; - }; - }; - Plan: { - typeUrl: string; - encode(message: _95.Plan, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.Plan; - fromJSON(object: any): _95.Plan; - toJSON(message: _95.Plan): unknown; - fromPartial(object: Partial<_95.Plan>): _95.Plan; - fromAmino(object: _95.PlanAmino): _95.Plan; - toAmino(message: _95.Plan): _95.PlanAmino; - fromAminoMsg(object: _95.PlanAminoMsg): _95.Plan; - toAminoMsg(message: _95.Plan): _95.PlanAminoMsg; - fromProtoMsg(message: _95.PlanProtoMsg): _95.Plan; - toProto(message: _95.Plan): Uint8Array; - toProtoMsg(message: _95.Plan): _95.PlanProtoMsg; - }; - SoftwareUpgradeProposal: { - typeUrl: string; - encode(message: _95.SoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.SoftwareUpgradeProposal; - fromJSON(object: any): _95.SoftwareUpgradeProposal; - toJSON(message: _95.SoftwareUpgradeProposal): unknown; - fromPartial(object: Partial<_95.SoftwareUpgradeProposal>): _95.SoftwareUpgradeProposal; - fromAmino(object: _95.SoftwareUpgradeProposalAmino): _95.SoftwareUpgradeProposal; - toAmino(message: _95.SoftwareUpgradeProposal): _95.SoftwareUpgradeProposalAmino; - fromAminoMsg(object: _95.SoftwareUpgradeProposalAminoMsg): _95.SoftwareUpgradeProposal; - toAminoMsg(message: _95.SoftwareUpgradeProposal): _95.SoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: _95.SoftwareUpgradeProposalProtoMsg): _95.SoftwareUpgradeProposal; - toProto(message: _95.SoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: _95.SoftwareUpgradeProposal): _95.SoftwareUpgradeProposalProtoMsg; - }; - CancelSoftwareUpgradeProposal: { - typeUrl: string; - encode(message: _95.CancelSoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.CancelSoftwareUpgradeProposal; - fromJSON(object: any): _95.CancelSoftwareUpgradeProposal; - toJSON(message: _95.CancelSoftwareUpgradeProposal): unknown; - fromPartial(object: Partial<_95.CancelSoftwareUpgradeProposal>): _95.CancelSoftwareUpgradeProposal; - fromAmino(object: _95.CancelSoftwareUpgradeProposalAmino): _95.CancelSoftwareUpgradeProposal; - toAmino(message: _95.CancelSoftwareUpgradeProposal): _95.CancelSoftwareUpgradeProposalAmino; - fromAminoMsg(object: _95.CancelSoftwareUpgradeProposalAminoMsg): _95.CancelSoftwareUpgradeProposal; - toAminoMsg(message: _95.CancelSoftwareUpgradeProposal): _95.CancelSoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: _95.CancelSoftwareUpgradeProposalProtoMsg): _95.CancelSoftwareUpgradeProposal; - toProto(message: _95.CancelSoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: _95.CancelSoftwareUpgradeProposal): _95.CancelSoftwareUpgradeProposalProtoMsg; - }; - ModuleVersion: { - typeUrl: string; - encode(message: _95.ModuleVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _95.ModuleVersion; - fromJSON(object: any): _95.ModuleVersion; - toJSON(message: _95.ModuleVersion): unknown; - fromPartial(object: Partial<_95.ModuleVersion>): _95.ModuleVersion; - fromAmino(object: _95.ModuleVersionAmino): _95.ModuleVersion; - toAmino(message: _95.ModuleVersion): _95.ModuleVersionAmino; - fromAminoMsg(object: _95.ModuleVersionAminoMsg): _95.ModuleVersion; - toAminoMsg(message: _95.ModuleVersion): _95.ModuleVersionAminoMsg; - fromProtoMsg(message: _95.ModuleVersionProtoMsg): _95.ModuleVersion; - toProto(message: _95.ModuleVersion): Uint8Array; - toProtoMsg(message: _95.ModuleVersion): _95.ModuleVersionProtoMsg; - }; - MsgSoftwareUpgrade: { - typeUrl: string; - encode(message: _94.MsgSoftwareUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgSoftwareUpgrade; - fromJSON(object: any): _94.MsgSoftwareUpgrade; - toJSON(message: _94.MsgSoftwareUpgrade): unknown; - fromPartial(object: Partial<_94.MsgSoftwareUpgrade>): _94.MsgSoftwareUpgrade; - fromAmino(object: _94.MsgSoftwareUpgradeAmino): _94.MsgSoftwareUpgrade; - toAmino(message: _94.MsgSoftwareUpgrade): _94.MsgSoftwareUpgradeAmino; - fromAminoMsg(object: _94.MsgSoftwareUpgradeAminoMsg): _94.MsgSoftwareUpgrade; - toAminoMsg(message: _94.MsgSoftwareUpgrade): _94.MsgSoftwareUpgradeAminoMsg; - fromProtoMsg(message: _94.MsgSoftwareUpgradeProtoMsg): _94.MsgSoftwareUpgrade; - toProto(message: _94.MsgSoftwareUpgrade): Uint8Array; - toProtoMsg(message: _94.MsgSoftwareUpgrade): _94.MsgSoftwareUpgradeProtoMsg; - }; - MsgSoftwareUpgradeResponse: { - typeUrl: string; - encode(_: _94.MsgSoftwareUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgSoftwareUpgradeResponse; - fromJSON(_: any): _94.MsgSoftwareUpgradeResponse; - toJSON(_: _94.MsgSoftwareUpgradeResponse): unknown; - fromPartial(_: Partial<_94.MsgSoftwareUpgradeResponse>): _94.MsgSoftwareUpgradeResponse; - fromAmino(_: _94.MsgSoftwareUpgradeResponseAmino): _94.MsgSoftwareUpgradeResponse; - toAmino(_: _94.MsgSoftwareUpgradeResponse): _94.MsgSoftwareUpgradeResponseAmino; - fromAminoMsg(object: _94.MsgSoftwareUpgradeResponseAminoMsg): _94.MsgSoftwareUpgradeResponse; - toAminoMsg(message: _94.MsgSoftwareUpgradeResponse): _94.MsgSoftwareUpgradeResponseAminoMsg; - fromProtoMsg(message: _94.MsgSoftwareUpgradeResponseProtoMsg): _94.MsgSoftwareUpgradeResponse; - toProto(message: _94.MsgSoftwareUpgradeResponse): Uint8Array; - toProtoMsg(message: _94.MsgSoftwareUpgradeResponse): _94.MsgSoftwareUpgradeResponseProtoMsg; - }; - MsgCancelUpgrade: { - typeUrl: string; - encode(message: _94.MsgCancelUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgCancelUpgrade; - fromJSON(object: any): _94.MsgCancelUpgrade; - toJSON(message: _94.MsgCancelUpgrade): unknown; - fromPartial(object: Partial<_94.MsgCancelUpgrade>): _94.MsgCancelUpgrade; - fromAmino(object: _94.MsgCancelUpgradeAmino): _94.MsgCancelUpgrade; - toAmino(message: _94.MsgCancelUpgrade): _94.MsgCancelUpgradeAmino; - fromAminoMsg(object: _94.MsgCancelUpgradeAminoMsg): _94.MsgCancelUpgrade; - toAminoMsg(message: _94.MsgCancelUpgrade): _94.MsgCancelUpgradeAminoMsg; - fromProtoMsg(message: _94.MsgCancelUpgradeProtoMsg): _94.MsgCancelUpgrade; - toProto(message: _94.MsgCancelUpgrade): Uint8Array; - toProtoMsg(message: _94.MsgCancelUpgrade): _94.MsgCancelUpgradeProtoMsg; - }; - MsgCancelUpgradeResponse: { - typeUrl: string; - encode(_: _94.MsgCancelUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _94.MsgCancelUpgradeResponse; - fromJSON(_: any): _94.MsgCancelUpgradeResponse; - toJSON(_: _94.MsgCancelUpgradeResponse): unknown; - fromPartial(_: Partial<_94.MsgCancelUpgradeResponse>): _94.MsgCancelUpgradeResponse; - fromAmino(_: _94.MsgCancelUpgradeResponseAmino): _94.MsgCancelUpgradeResponse; - toAmino(_: _94.MsgCancelUpgradeResponse): _94.MsgCancelUpgradeResponseAmino; - fromAminoMsg(object: _94.MsgCancelUpgradeResponseAminoMsg): _94.MsgCancelUpgradeResponse; - toAminoMsg(message: _94.MsgCancelUpgradeResponse): _94.MsgCancelUpgradeResponseAminoMsg; - fromProtoMsg(message: _94.MsgCancelUpgradeResponseProtoMsg): _94.MsgCancelUpgradeResponse; - toProto(message: _94.MsgCancelUpgradeResponse): Uint8Array; - toProtoMsg(message: _94.MsgCancelUpgradeResponse): _94.MsgCancelUpgradeResponseProtoMsg; - }; - QueryCurrentPlanRequest: { - typeUrl: string; - encode(_: _93.QueryCurrentPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryCurrentPlanRequest; - fromJSON(_: any): _93.QueryCurrentPlanRequest; - toJSON(_: _93.QueryCurrentPlanRequest): unknown; - fromPartial(_: Partial<_93.QueryCurrentPlanRequest>): _93.QueryCurrentPlanRequest; - fromAmino(_: _93.QueryCurrentPlanRequestAmino): _93.QueryCurrentPlanRequest; - toAmino(_: _93.QueryCurrentPlanRequest): _93.QueryCurrentPlanRequestAmino; - fromAminoMsg(object: _93.QueryCurrentPlanRequestAminoMsg): _93.QueryCurrentPlanRequest; - toAminoMsg(message: _93.QueryCurrentPlanRequest): _93.QueryCurrentPlanRequestAminoMsg; - fromProtoMsg(message: _93.QueryCurrentPlanRequestProtoMsg): _93.QueryCurrentPlanRequest; - toProto(message: _93.QueryCurrentPlanRequest): Uint8Array; - toProtoMsg(message: _93.QueryCurrentPlanRequest): _93.QueryCurrentPlanRequestProtoMsg; - }; - QueryCurrentPlanResponse: { - typeUrl: string; - encode(message: _93.QueryCurrentPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryCurrentPlanResponse; - fromJSON(object: any): _93.QueryCurrentPlanResponse; - toJSON(message: _93.QueryCurrentPlanResponse): unknown; - fromPartial(object: Partial<_93.QueryCurrentPlanResponse>): _93.QueryCurrentPlanResponse; - fromAmino(object: _93.QueryCurrentPlanResponseAmino): _93.QueryCurrentPlanResponse; - toAmino(message: _93.QueryCurrentPlanResponse): _93.QueryCurrentPlanResponseAmino; - fromAminoMsg(object: _93.QueryCurrentPlanResponseAminoMsg): _93.QueryCurrentPlanResponse; - toAminoMsg(message: _93.QueryCurrentPlanResponse): _93.QueryCurrentPlanResponseAminoMsg; - fromProtoMsg(message: _93.QueryCurrentPlanResponseProtoMsg): _93.QueryCurrentPlanResponse; - toProto(message: _93.QueryCurrentPlanResponse): Uint8Array; - toProtoMsg(message: _93.QueryCurrentPlanResponse): _93.QueryCurrentPlanResponseProtoMsg; - }; - QueryAppliedPlanRequest: { - typeUrl: string; - encode(message: _93.QueryAppliedPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAppliedPlanRequest; - fromJSON(object: any): _93.QueryAppliedPlanRequest; - toJSON(message: _93.QueryAppliedPlanRequest): unknown; - fromPartial(object: Partial<_93.QueryAppliedPlanRequest>): _93.QueryAppliedPlanRequest; - fromAmino(object: _93.QueryAppliedPlanRequestAmino): _93.QueryAppliedPlanRequest; - toAmino(message: _93.QueryAppliedPlanRequest): _93.QueryAppliedPlanRequestAmino; - fromAminoMsg(object: _93.QueryAppliedPlanRequestAminoMsg): _93.QueryAppliedPlanRequest; - toAminoMsg(message: _93.QueryAppliedPlanRequest): _93.QueryAppliedPlanRequestAminoMsg; - fromProtoMsg(message: _93.QueryAppliedPlanRequestProtoMsg): _93.QueryAppliedPlanRequest; - toProto(message: _93.QueryAppliedPlanRequest): Uint8Array; - toProtoMsg(message: _93.QueryAppliedPlanRequest): _93.QueryAppliedPlanRequestProtoMsg; - }; - QueryAppliedPlanResponse: { - typeUrl: string; - encode(message: _93.QueryAppliedPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAppliedPlanResponse; - fromJSON(object: any): _93.QueryAppliedPlanResponse; - toJSON(message: _93.QueryAppliedPlanResponse): unknown; - fromPartial(object: Partial<_93.QueryAppliedPlanResponse>): _93.QueryAppliedPlanResponse; - fromAmino(object: _93.QueryAppliedPlanResponseAmino): _93.QueryAppliedPlanResponse; - toAmino(message: _93.QueryAppliedPlanResponse): _93.QueryAppliedPlanResponseAmino; - fromAminoMsg(object: _93.QueryAppliedPlanResponseAminoMsg): _93.QueryAppliedPlanResponse; - toAminoMsg(message: _93.QueryAppliedPlanResponse): _93.QueryAppliedPlanResponseAminoMsg; - fromProtoMsg(message: _93.QueryAppliedPlanResponseProtoMsg): _93.QueryAppliedPlanResponse; - toProto(message: _93.QueryAppliedPlanResponse): Uint8Array; - toProtoMsg(message: _93.QueryAppliedPlanResponse): _93.QueryAppliedPlanResponseProtoMsg; - }; - QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(message: _93.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryUpgradedConsensusStateRequest; - fromJSON(object: any): _93.QueryUpgradedConsensusStateRequest; - toJSON(message: _93.QueryUpgradedConsensusStateRequest): unknown; - fromPartial(object: Partial<_93.QueryUpgradedConsensusStateRequest>): _93.QueryUpgradedConsensusStateRequest; - fromAmino(object: _93.QueryUpgradedConsensusStateRequestAmino): _93.QueryUpgradedConsensusStateRequest; - toAmino(message: _93.QueryUpgradedConsensusStateRequest): _93.QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: _93.QueryUpgradedConsensusStateRequestAminoMsg): _93.QueryUpgradedConsensusStateRequest; - toAminoMsg(message: _93.QueryUpgradedConsensusStateRequest): _93.QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: _93.QueryUpgradedConsensusStateRequestProtoMsg): _93.QueryUpgradedConsensusStateRequest; - toProto(message: _93.QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: _93.QueryUpgradedConsensusStateRequest): _93.QueryUpgradedConsensusStateRequestProtoMsg; - }; - QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: _93.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryUpgradedConsensusStateResponse; - fromJSON(object: any): _93.QueryUpgradedConsensusStateResponse; - toJSON(message: _93.QueryUpgradedConsensusStateResponse): unknown; - fromPartial(object: Partial<_93.QueryUpgradedConsensusStateResponse>): _93.QueryUpgradedConsensusStateResponse; - fromAmino(object: _93.QueryUpgradedConsensusStateResponseAmino): _93.QueryUpgradedConsensusStateResponse; - toAmino(message: _93.QueryUpgradedConsensusStateResponse): _93.QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: _93.QueryUpgradedConsensusStateResponseAminoMsg): _93.QueryUpgradedConsensusStateResponse; - toAminoMsg(message: _93.QueryUpgradedConsensusStateResponse): _93.QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: _93.QueryUpgradedConsensusStateResponseProtoMsg): _93.QueryUpgradedConsensusStateResponse; - toProto(message: _93.QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: _93.QueryUpgradedConsensusStateResponse): _93.QueryUpgradedConsensusStateResponseProtoMsg; - }; - QueryModuleVersionsRequest: { - typeUrl: string; - encode(message: _93.QueryModuleVersionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryModuleVersionsRequest; - fromJSON(object: any): _93.QueryModuleVersionsRequest; - toJSON(message: _93.QueryModuleVersionsRequest): unknown; - fromPartial(object: Partial<_93.QueryModuleVersionsRequest>): _93.QueryModuleVersionsRequest; - fromAmino(object: _93.QueryModuleVersionsRequestAmino): _93.QueryModuleVersionsRequest; - toAmino(message: _93.QueryModuleVersionsRequest): _93.QueryModuleVersionsRequestAmino; - fromAminoMsg(object: _93.QueryModuleVersionsRequestAminoMsg): _93.QueryModuleVersionsRequest; - toAminoMsg(message: _93.QueryModuleVersionsRequest): _93.QueryModuleVersionsRequestAminoMsg; - fromProtoMsg(message: _93.QueryModuleVersionsRequestProtoMsg): _93.QueryModuleVersionsRequest; - toProto(message: _93.QueryModuleVersionsRequest): Uint8Array; - toProtoMsg(message: _93.QueryModuleVersionsRequest): _93.QueryModuleVersionsRequestProtoMsg; - }; - QueryModuleVersionsResponse: { - typeUrl: string; - encode(message: _93.QueryModuleVersionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryModuleVersionsResponse; - fromJSON(object: any): _93.QueryModuleVersionsResponse; - toJSON(message: _93.QueryModuleVersionsResponse): unknown; - fromPartial(object: Partial<_93.QueryModuleVersionsResponse>): _93.QueryModuleVersionsResponse; - fromAmino(object: _93.QueryModuleVersionsResponseAmino): _93.QueryModuleVersionsResponse; - toAmino(message: _93.QueryModuleVersionsResponse): _93.QueryModuleVersionsResponseAmino; - fromAminoMsg(object: _93.QueryModuleVersionsResponseAminoMsg): _93.QueryModuleVersionsResponse; - toAminoMsg(message: _93.QueryModuleVersionsResponse): _93.QueryModuleVersionsResponseAminoMsg; - fromProtoMsg(message: _93.QueryModuleVersionsResponseProtoMsg): _93.QueryModuleVersionsResponse; - toProto(message: _93.QueryModuleVersionsResponse): Uint8Array; - toProtoMsg(message: _93.QueryModuleVersionsResponse): _93.QueryModuleVersionsResponseProtoMsg; - }; - QueryAuthorityRequest: { - typeUrl: string; - encode(_: _93.QueryAuthorityRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAuthorityRequest; - fromJSON(_: any): _93.QueryAuthorityRequest; - toJSON(_: _93.QueryAuthorityRequest): unknown; - fromPartial(_: Partial<_93.QueryAuthorityRequest>): _93.QueryAuthorityRequest; - fromAmino(_: _93.QueryAuthorityRequestAmino): _93.QueryAuthorityRequest; - toAmino(_: _93.QueryAuthorityRequest): _93.QueryAuthorityRequestAmino; - fromAminoMsg(object: _93.QueryAuthorityRequestAminoMsg): _93.QueryAuthorityRequest; - toAminoMsg(message: _93.QueryAuthorityRequest): _93.QueryAuthorityRequestAminoMsg; - fromProtoMsg(message: _93.QueryAuthorityRequestProtoMsg): _93.QueryAuthorityRequest; - toProto(message: _93.QueryAuthorityRequest): Uint8Array; - toProtoMsg(message: _93.QueryAuthorityRequest): _93.QueryAuthorityRequestProtoMsg; - }; - QueryAuthorityResponse: { - typeUrl: string; - encode(message: _93.QueryAuthorityResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _93.QueryAuthorityResponse; - fromJSON(object: any): _93.QueryAuthorityResponse; - toJSON(message: _93.QueryAuthorityResponse): unknown; - fromPartial(object: Partial<_93.QueryAuthorityResponse>): _93.QueryAuthorityResponse; - fromAmino(object: _93.QueryAuthorityResponseAmino): _93.QueryAuthorityResponse; - toAmino(message: _93.QueryAuthorityResponse): _93.QueryAuthorityResponseAmino; - fromAminoMsg(object: _93.QueryAuthorityResponseAminoMsg): _93.QueryAuthorityResponse; - toAminoMsg(message: _93.QueryAuthorityResponse): _93.QueryAuthorityResponseAminoMsg; - fromProtoMsg(message: _93.QueryAuthorityResponseProtoMsg): _93.QueryAuthorityResponse; - toProto(message: _93.QueryAuthorityResponse): Uint8Array; - toProtoMsg(message: _93.QueryAuthorityResponse): _93.QueryAuthorityResponseProtoMsg; - }; - }; - } - namespace vesting { - const v1beta1: { - MsgClientImpl: typeof _230.MsgClientImpl; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createVestingAccount(value: _96.MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: _96.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: _96.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createVestingAccount(value: _96.MsgCreateVestingAccount): { - typeUrl: string; - value: _96.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: _96.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _96.MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: _96.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _96.MsgCreatePeriodicVestingAccount; - }; - }; - toJSON: { - createVestingAccount(value: _96.MsgCreateVestingAccount): { - typeUrl: string; - value: unknown; - }; - createPermanentLockedAccount(value: _96.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: unknown; - }; - createPeriodicVestingAccount(value: _96.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createVestingAccount(value: any): { - typeUrl: string; - value: _96.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: any): { - typeUrl: string; - value: _96.MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: any): { - typeUrl: string; - value: _96.MsgCreatePeriodicVestingAccount; - }; - }; - fromPartial: { - createVestingAccount(value: _96.MsgCreateVestingAccount): { - typeUrl: string; - value: _96.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: _96.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _96.MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: _96.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _96.MsgCreatePeriodicVestingAccount; - }; - }; - }; - AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: _96.MsgCreateVestingAccount) => _96.MsgCreateVestingAccountAmino; - fromAmino: (object: _96.MsgCreateVestingAccountAmino) => _96.MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: _96.MsgCreatePermanentLockedAccount) => _96.MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: _96.MsgCreatePermanentLockedAccountAmino) => _96.MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: _96.MsgCreatePeriodicVestingAccount) => _96.MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: _96.MsgCreatePeriodicVestingAccountAmino) => _96.MsgCreatePeriodicVestingAccount; - }; - }; - BaseVestingAccount: { - typeUrl: string; - encode(message: _97.BaseVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.BaseVestingAccount; - fromJSON(object: any): _97.BaseVestingAccount; - toJSON(message: _97.BaseVestingAccount): unknown; - fromPartial(object: Partial<_97.BaseVestingAccount>): _97.BaseVestingAccount; - fromAmino(object: _97.BaseVestingAccountAmino): _97.BaseVestingAccount; - toAmino(message: _97.BaseVestingAccount): _97.BaseVestingAccountAmino; - fromAminoMsg(object: _97.BaseVestingAccountAminoMsg): _97.BaseVestingAccount; - toAminoMsg(message: _97.BaseVestingAccount): _97.BaseVestingAccountAminoMsg; - fromProtoMsg(message: _97.BaseVestingAccountProtoMsg): _97.BaseVestingAccount; - toProto(message: _97.BaseVestingAccount): Uint8Array; - toProtoMsg(message: _97.BaseVestingAccount): _97.BaseVestingAccountProtoMsg; - }; - ContinuousVestingAccount: { - typeUrl: string; - encode(message: _97.ContinuousVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.ContinuousVestingAccount; - fromJSON(object: any): _97.ContinuousVestingAccount; - toJSON(message: _97.ContinuousVestingAccount): unknown; - fromPartial(object: Partial<_97.ContinuousVestingAccount>): _97.ContinuousVestingAccount; - fromAmino(object: _97.ContinuousVestingAccountAmino): _97.ContinuousVestingAccount; - toAmino(message: _97.ContinuousVestingAccount): _97.ContinuousVestingAccountAmino; - fromAminoMsg(object: _97.ContinuousVestingAccountAminoMsg): _97.ContinuousVestingAccount; - toAminoMsg(message: _97.ContinuousVestingAccount): _97.ContinuousVestingAccountAminoMsg; - fromProtoMsg(message: _97.ContinuousVestingAccountProtoMsg): _97.ContinuousVestingAccount; - toProto(message: _97.ContinuousVestingAccount): Uint8Array; - toProtoMsg(message: _97.ContinuousVestingAccount): _97.ContinuousVestingAccountProtoMsg; - }; - DelayedVestingAccount: { - typeUrl: string; - encode(message: _97.DelayedVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.DelayedVestingAccount; - fromJSON(object: any): _97.DelayedVestingAccount; - toJSON(message: _97.DelayedVestingAccount): unknown; - fromPartial(object: Partial<_97.DelayedVestingAccount>): _97.DelayedVestingAccount; - fromAmino(object: _97.DelayedVestingAccountAmino): _97.DelayedVestingAccount; - toAmino(message: _97.DelayedVestingAccount): _97.DelayedVestingAccountAmino; - fromAminoMsg(object: _97.DelayedVestingAccountAminoMsg): _97.DelayedVestingAccount; - toAminoMsg(message: _97.DelayedVestingAccount): _97.DelayedVestingAccountAminoMsg; - fromProtoMsg(message: _97.DelayedVestingAccountProtoMsg): _97.DelayedVestingAccount; - toProto(message: _97.DelayedVestingAccount): Uint8Array; - toProtoMsg(message: _97.DelayedVestingAccount): _97.DelayedVestingAccountProtoMsg; - }; - Period: { - typeUrl: string; - encode(message: _97.Period, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.Period; - fromJSON(object: any): _97.Period; - toJSON(message: _97.Period): unknown; - fromPartial(object: Partial<_97.Period>): _97.Period; - fromAmino(object: _97.PeriodAmino): _97.Period; - toAmino(message: _97.Period): _97.PeriodAmino; - fromAminoMsg(object: _97.PeriodAminoMsg): _97.Period; - toAminoMsg(message: _97.Period): _97.PeriodAminoMsg; - fromProtoMsg(message: _97.PeriodProtoMsg): _97.Period; - toProto(message: _97.Period): Uint8Array; - toProtoMsg(message: _97.Period): _97.PeriodProtoMsg; - }; - PeriodicVestingAccount: { - typeUrl: string; - encode(message: _97.PeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.PeriodicVestingAccount; - fromJSON(object: any): _97.PeriodicVestingAccount; - toJSON(message: _97.PeriodicVestingAccount): unknown; - fromPartial(object: Partial<_97.PeriodicVestingAccount>): _97.PeriodicVestingAccount; - fromAmino(object: _97.PeriodicVestingAccountAmino): _97.PeriodicVestingAccount; - toAmino(message: _97.PeriodicVestingAccount): _97.PeriodicVestingAccountAmino; - fromAminoMsg(object: _97.PeriodicVestingAccountAminoMsg): _97.PeriodicVestingAccount; - toAminoMsg(message: _97.PeriodicVestingAccount): _97.PeriodicVestingAccountAminoMsg; - fromProtoMsg(message: _97.PeriodicVestingAccountProtoMsg): _97.PeriodicVestingAccount; - toProto(message: _97.PeriodicVestingAccount): Uint8Array; - toProtoMsg(message: _97.PeriodicVestingAccount): _97.PeriodicVestingAccountProtoMsg; - }; - PermanentLockedAccount: { - typeUrl: string; - encode(message: _97.PermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _97.PermanentLockedAccount; - fromJSON(object: any): _97.PermanentLockedAccount; - toJSON(message: _97.PermanentLockedAccount): unknown; - fromPartial(object: Partial<_97.PermanentLockedAccount>): _97.PermanentLockedAccount; - fromAmino(object: _97.PermanentLockedAccountAmino): _97.PermanentLockedAccount; - toAmino(message: _97.PermanentLockedAccount): _97.PermanentLockedAccountAmino; - fromAminoMsg(object: _97.PermanentLockedAccountAminoMsg): _97.PermanentLockedAccount; - toAminoMsg(message: _97.PermanentLockedAccount): _97.PermanentLockedAccountAminoMsg; - fromProtoMsg(message: _97.PermanentLockedAccountProtoMsg): _97.PermanentLockedAccount; - toProto(message: _97.PermanentLockedAccount): Uint8Array; - toProtoMsg(message: _97.PermanentLockedAccount): _97.PermanentLockedAccountProtoMsg; - }; - MsgCreateVestingAccount: { - typeUrl: string; - encode(message: _96.MsgCreateVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreateVestingAccount; - fromJSON(object: any): _96.MsgCreateVestingAccount; - toJSON(message: _96.MsgCreateVestingAccount): unknown; - fromPartial(object: Partial<_96.MsgCreateVestingAccount>): _96.MsgCreateVestingAccount; - fromAmino(object: _96.MsgCreateVestingAccountAmino): _96.MsgCreateVestingAccount; - toAmino(message: _96.MsgCreateVestingAccount): _96.MsgCreateVestingAccountAmino; - fromAminoMsg(object: _96.MsgCreateVestingAccountAminoMsg): _96.MsgCreateVestingAccount; - toAminoMsg(message: _96.MsgCreateVestingAccount): _96.MsgCreateVestingAccountAminoMsg; - fromProtoMsg(message: _96.MsgCreateVestingAccountProtoMsg): _96.MsgCreateVestingAccount; - toProto(message: _96.MsgCreateVestingAccount): Uint8Array; - toProtoMsg(message: _96.MsgCreateVestingAccount): _96.MsgCreateVestingAccountProtoMsg; - }; - MsgCreateVestingAccountResponse: { - typeUrl: string; - encode(_: _96.MsgCreateVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreateVestingAccountResponse; - fromJSON(_: any): _96.MsgCreateVestingAccountResponse; - toJSON(_: _96.MsgCreateVestingAccountResponse): unknown; - fromPartial(_: Partial<_96.MsgCreateVestingAccountResponse>): _96.MsgCreateVestingAccountResponse; - fromAmino(_: _96.MsgCreateVestingAccountResponseAmino): _96.MsgCreateVestingAccountResponse; - toAmino(_: _96.MsgCreateVestingAccountResponse): _96.MsgCreateVestingAccountResponseAmino; - fromAminoMsg(object: _96.MsgCreateVestingAccountResponseAminoMsg): _96.MsgCreateVestingAccountResponse; - toAminoMsg(message: _96.MsgCreateVestingAccountResponse): _96.MsgCreateVestingAccountResponseAminoMsg; - fromProtoMsg(message: _96.MsgCreateVestingAccountResponseProtoMsg): _96.MsgCreateVestingAccountResponse; - toProto(message: _96.MsgCreateVestingAccountResponse): Uint8Array; - toProtoMsg(message: _96.MsgCreateVestingAccountResponse): _96.MsgCreateVestingAccountResponseProtoMsg; - }; - MsgCreatePermanentLockedAccount: { - typeUrl: string; - encode(message: _96.MsgCreatePermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePermanentLockedAccount; - fromJSON(object: any): _96.MsgCreatePermanentLockedAccount; - toJSON(message: _96.MsgCreatePermanentLockedAccount): unknown; - fromPartial(object: Partial<_96.MsgCreatePermanentLockedAccount>): _96.MsgCreatePermanentLockedAccount; - fromAmino(object: _96.MsgCreatePermanentLockedAccountAmino): _96.MsgCreatePermanentLockedAccount; - toAmino(message: _96.MsgCreatePermanentLockedAccount): _96.MsgCreatePermanentLockedAccountAmino; - fromAminoMsg(object: _96.MsgCreatePermanentLockedAccountAminoMsg): _96.MsgCreatePermanentLockedAccount; - toAminoMsg(message: _96.MsgCreatePermanentLockedAccount): _96.MsgCreatePermanentLockedAccountAminoMsg; - fromProtoMsg(message: _96.MsgCreatePermanentLockedAccountProtoMsg): _96.MsgCreatePermanentLockedAccount; - toProto(message: _96.MsgCreatePermanentLockedAccount): Uint8Array; - toProtoMsg(message: _96.MsgCreatePermanentLockedAccount): _96.MsgCreatePermanentLockedAccountProtoMsg; - }; - MsgCreatePermanentLockedAccountResponse: { - typeUrl: string; - encode(_: _96.MsgCreatePermanentLockedAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePermanentLockedAccountResponse; - fromJSON(_: any): _96.MsgCreatePermanentLockedAccountResponse; - toJSON(_: _96.MsgCreatePermanentLockedAccountResponse): unknown; - fromPartial(_: Partial<_96.MsgCreatePermanentLockedAccountResponse>): _96.MsgCreatePermanentLockedAccountResponse; - fromAmino(_: _96.MsgCreatePermanentLockedAccountResponseAmino): _96.MsgCreatePermanentLockedAccountResponse; - toAmino(_: _96.MsgCreatePermanentLockedAccountResponse): _96.MsgCreatePermanentLockedAccountResponseAmino; - fromAminoMsg(object: _96.MsgCreatePermanentLockedAccountResponseAminoMsg): _96.MsgCreatePermanentLockedAccountResponse; - toAminoMsg(message: _96.MsgCreatePermanentLockedAccountResponse): _96.MsgCreatePermanentLockedAccountResponseAminoMsg; - fromProtoMsg(message: _96.MsgCreatePermanentLockedAccountResponseProtoMsg): _96.MsgCreatePermanentLockedAccountResponse; - toProto(message: _96.MsgCreatePermanentLockedAccountResponse): Uint8Array; - toProtoMsg(message: _96.MsgCreatePermanentLockedAccountResponse): _96.MsgCreatePermanentLockedAccountResponseProtoMsg; - }; - MsgCreatePeriodicVestingAccount: { - typeUrl: string; - encode(message: _96.MsgCreatePeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccount; - fromJSON(object: any): _96.MsgCreatePeriodicVestingAccount; - toJSON(message: _96.MsgCreatePeriodicVestingAccount): unknown; - fromPartial(object: Partial<_96.MsgCreatePeriodicVestingAccount>): _96.MsgCreatePeriodicVestingAccount; - fromAmino(object: _96.MsgCreatePeriodicVestingAccountAmino): _96.MsgCreatePeriodicVestingAccount; - toAmino(message: _96.MsgCreatePeriodicVestingAccount): _96.MsgCreatePeriodicVestingAccountAmino; - fromAminoMsg(object: _96.MsgCreatePeriodicVestingAccountAminoMsg): _96.MsgCreatePeriodicVestingAccount; - toAminoMsg(message: _96.MsgCreatePeriodicVestingAccount): _96.MsgCreatePeriodicVestingAccountAminoMsg; - fromProtoMsg(message: _96.MsgCreatePeriodicVestingAccountProtoMsg): _96.MsgCreatePeriodicVestingAccount; - toProto(message: _96.MsgCreatePeriodicVestingAccount): Uint8Array; - toProtoMsg(message: _96.MsgCreatePeriodicVestingAccount): _96.MsgCreatePeriodicVestingAccountProtoMsg; - }; - MsgCreatePeriodicVestingAccountResponse: { - typeUrl: string; - encode(_: _96.MsgCreatePeriodicVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _96.MsgCreatePeriodicVestingAccountResponse; - fromJSON(_: any): _96.MsgCreatePeriodicVestingAccountResponse; - toJSON(_: _96.MsgCreatePeriodicVestingAccountResponse): unknown; - fromPartial(_: Partial<_96.MsgCreatePeriodicVestingAccountResponse>): _96.MsgCreatePeriodicVestingAccountResponse; - fromAmino(_: _96.MsgCreatePeriodicVestingAccountResponseAmino): _96.MsgCreatePeriodicVestingAccountResponse; - toAmino(_: _96.MsgCreatePeriodicVestingAccountResponse): _96.MsgCreatePeriodicVestingAccountResponseAmino; - fromAminoMsg(object: _96.MsgCreatePeriodicVestingAccountResponseAminoMsg): _96.MsgCreatePeriodicVestingAccountResponse; - toAminoMsg(message: _96.MsgCreatePeriodicVestingAccountResponse): _96.MsgCreatePeriodicVestingAccountResponseAminoMsg; - fromProtoMsg(message: _96.MsgCreatePeriodicVestingAccountResponseProtoMsg): _96.MsgCreatePeriodicVestingAccountResponse; - toProto(message: _96.MsgCreatePeriodicVestingAccountResponse): Uint8Array; - toProtoMsg(message: _96.MsgCreatePeriodicVestingAccountResponse): _96.MsgCreatePeriodicVestingAccountResponseProtoMsg; - }; - }; - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: _217.MsgClientImpl; - }; - bank: { - v1beta1: _218.MsgClientImpl; - }; - crisis: { - v1beta1: _219.MsgClientImpl; - }; - distribution: { - v1beta1: _220.MsgClientImpl; - }; - evidence: { - v1beta1: _221.MsgClientImpl; - }; - feegrant: { - v1beta1: _222.MsgClientImpl; - }; - gov: { - v1: _223.MsgClientImpl; - v1beta1: _224.MsgClientImpl; - }; - group: { - v1: _225.MsgClientImpl; - }; - nft: { - v1beta1: _226.MsgClientImpl; - }; - slashing: { - v1beta1: _227.MsgClientImpl; - }; - staking: { - v1beta1: _228.MsgClientImpl; - }; - upgrade: { - v1beta1: _229.MsgClientImpl; - }; - vesting: { - v1beta1: _230.MsgClientImpl; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: _5.QueryConfigRequest | undefined): Promise<_5.QueryConfigResponse>; - }; - }; - auth: { - v1beta1: { - accounts(request?: _8.QueryAccountsRequest | undefined): Promise<_8.QueryAccountsResponse>; - account(request: _8.QueryAccountRequest): Promise<_8.QueryAccountResponse>; - accountAddressByID(request: _8.QueryAccountAddressByIDRequest): Promise<_8.QueryAccountAddressByIDResponse>; - params(request?: _8.QueryParamsRequest | undefined): Promise<_8.QueryParamsResponse>; - moduleAccounts(request?: _8.QueryModuleAccountsRequest | undefined): Promise<_8.QueryModuleAccountsResponse>; - moduleAccountByName(request: _8.QueryModuleAccountByNameRequest): Promise<_8.QueryModuleAccountByNameResponse>; - bech32Prefix(request?: _8.Bech32PrefixRequest | undefined): Promise<_8.Bech32PrefixResponse>; - addressBytesToString(request: _8.AddressBytesToStringRequest): Promise<_8.AddressBytesToStringResponse>; - addressStringToBytes(request: _8.AddressStringToBytesRequest): Promise<_8.AddressStringToBytesResponse>; - }; - }; - authz: { - v1beta1: { - grants(request: _12.QueryGrantsRequest): Promise<_12.QueryGrantsResponse>; - granterGrants(request: _12.QueryGranterGrantsRequest): Promise<_12.QueryGranterGrantsResponse>; - granteeGrants(request: _12.QueryGranteeGrantsRequest): Promise<_12.QueryGranteeGrantsResponse>; - }; - }; - bank: { - v1beta1: { - balance(request: _17.QueryBalanceRequest): Promise<_17.QueryBalanceResponse>; - allBalances(request: _17.QueryAllBalancesRequest): Promise<_17.QueryAllBalancesResponse>; - spendableBalances(request: _17.QuerySpendableBalancesRequest): Promise<_17.QuerySpendableBalancesResponse>; - totalSupply(request?: _17.QueryTotalSupplyRequest | undefined): Promise<_17.QueryTotalSupplyResponse>; - supplyOf(request: _17.QuerySupplyOfRequest): Promise<_17.QuerySupplyOfResponse>; - params(request?: _17.QueryParamsRequest | undefined): Promise<_17.QueryParamsResponse>; - denomMetadata(request: _17.QueryDenomMetadataRequest): Promise<_17.QueryDenomMetadataResponse>; - denomsMetadata(request?: _17.QueryDenomsMetadataRequest | undefined): Promise<_17.QueryDenomsMetadataResponse>; - denomOwners(request: _17.QueryDenomOwnersRequest): Promise<_17.QueryDenomOwnersResponse>; - }; - }; - base: { - node: { - v1beta1: { - config(request?: _21.ConfigRequest | undefined): Promise<_21.ConfigResponse>; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: _28.GetNodeInfoRequest | undefined): Promise<_28.GetNodeInfoResponse>; - getSyncing(request?: _28.GetSyncingRequest | undefined): Promise<_28.GetSyncingResponse>; - getLatestBlock(request?: _28.GetLatestBlockRequest | undefined): Promise<_28.GetLatestBlockResponse>; - getBlockByHeight(request: _28.GetBlockByHeightRequest): Promise<_28.GetBlockByHeightResponse>; - getLatestValidatorSet(request?: _28.GetLatestValidatorSetRequest | undefined): Promise<_28.GetLatestValidatorSetResponse>; - getValidatorSetByHeight(request: _28.GetValidatorSetByHeightRequest): Promise<_28.GetValidatorSetByHeightResponse>; - aBCIQuery(request: _28.ABCIQueryRequest): Promise<_28.ABCIQueryResponse>; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: _43.QueryParamsRequest | undefined): Promise<_43.QueryParamsResponse>; - validatorOutstandingRewards(request: _43.QueryValidatorOutstandingRewardsRequest): Promise<_43.QueryValidatorOutstandingRewardsResponse>; - validatorCommission(request: _43.QueryValidatorCommissionRequest): Promise<_43.QueryValidatorCommissionResponse>; - validatorSlashes(request: _43.QueryValidatorSlashesRequest): Promise<_43.QueryValidatorSlashesResponse>; - delegationRewards(request: _43.QueryDelegationRewardsRequest): Promise<_43.QueryDelegationRewardsResponse>; - delegationTotalRewards(request: _43.QueryDelegationTotalRewardsRequest): Promise<_43.QueryDelegationTotalRewardsResponse>; - delegatorValidators(request: _43.QueryDelegatorValidatorsRequest): Promise<_43.QueryDelegatorValidatorsResponse>; - delegatorWithdrawAddress(request: _43.QueryDelegatorWithdrawAddressRequest): Promise<_43.QueryDelegatorWithdrawAddressResponse>; - communityPool(request?: _43.QueryCommunityPoolRequest | undefined): Promise<_43.QueryCommunityPoolResponse>; - }; - }; - evidence: { - v1beta1: { - evidence(request: _47.QueryEvidenceRequest): Promise<_47.QueryEvidenceResponse>; - allEvidence(request?: _47.QueryAllEvidenceRequest | undefined): Promise<_47.QueryAllEvidenceResponse>; - }; - }; - feegrant: { - v1beta1: { - allowance(request: _51.QueryAllowanceRequest): Promise<_51.QueryAllowanceResponse>; - allowances(request: _51.QueryAllowancesRequest): Promise<_51.QueryAllowancesResponse>; - allowancesByGranter(request: _51.QueryAllowancesByGranterRequest): Promise<_51.QueryAllowancesByGranterResponse>; - }; - }; - gov: { - v1: { - proposal(request: _56.QueryProposalRequest): Promise<_56.QueryProposalResponse>; - proposals(request: _56.QueryProposalsRequest): Promise<_56.QueryProposalsResponse>; - vote(request: _56.QueryVoteRequest): Promise<_56.QueryVoteResponse>; - votes(request: _56.QueryVotesRequest): Promise<_56.QueryVotesResponse>; - params(request: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; - deposit(request: _56.QueryDepositRequest): Promise<_56.QueryDepositResponse>; - deposits(request: _56.QueryDepositsRequest): Promise<_56.QueryDepositsResponse>; - tallyResult(request: _56.QueryTallyResultRequest): Promise<_56.QueryTallyResultResponse>; - }; - v1beta1: { - proposal(request: _60.QueryProposalRequest): Promise<_60.QueryProposalResponse>; - proposals(request: _60.QueryProposalsRequest): Promise<_60.QueryProposalsResponse>; - vote(request: _60.QueryVoteRequest): Promise<_60.QueryVoteResponse>; - votes(request: _60.QueryVotesRequest): Promise<_60.QueryVotesResponse>; - params(request: _60.QueryParamsRequest): Promise<_60.QueryParamsResponse>; - deposit(request: _60.QueryDepositRequest): Promise<_60.QueryDepositResponse>; - deposits(request: _60.QueryDepositsRequest): Promise<_60.QueryDepositsResponse>; - tallyResult(request: _60.QueryTallyResultRequest): Promise<_60.QueryTallyResultResponse>; - }; - }; - group: { - v1: { - groupInfo(request: _64.QueryGroupInfoRequest): Promise<_64.QueryGroupInfoResponse>; - groupPolicyInfo(request: _64.QueryGroupPolicyInfoRequest): Promise<_64.QueryGroupPolicyInfoResponse>; - groupMembers(request: _64.QueryGroupMembersRequest): Promise<_64.QueryGroupMembersResponse>; - groupsByAdmin(request: _64.QueryGroupsByAdminRequest): Promise<_64.QueryGroupsByAdminResponse>; - groupPoliciesByGroup(request: _64.QueryGroupPoliciesByGroupRequest): Promise<_64.QueryGroupPoliciesByGroupResponse>; - groupPoliciesByAdmin(request: _64.QueryGroupPoliciesByAdminRequest): Promise<_64.QueryGroupPoliciesByAdminResponse>; - proposal(request: _64.QueryProposalRequest): Promise<_64.QueryProposalResponse>; - proposalsByGroupPolicy(request: _64.QueryProposalsByGroupPolicyRequest): Promise<_64.QueryProposalsByGroupPolicyResponse>; - voteByProposalVoter(request: _64.QueryVoteByProposalVoterRequest): Promise<_64.QueryVoteByProposalVoterResponse>; - votesByProposal(request: _64.QueryVotesByProposalRequest): Promise<_64.QueryVotesByProposalResponse>; - votesByVoter(request: _64.QueryVotesByVoterRequest): Promise<_64.QueryVotesByVoterResponse>; - groupsByMember(request: _64.QueryGroupsByMemberRequest): Promise<_64.QueryGroupsByMemberResponse>; - tallyResult(request: _64.QueryTallyResultRequest): Promise<_64.QueryTallyResultResponse>; - }; - }; - mint: { - v1beta1: { - params(request?: _69.QueryParamsRequest | undefined): Promise<_69.QueryParamsResponse>; - inflation(request?: _69.QueryInflationRequest | undefined): Promise<_69.QueryInflationResponse>; - annualProvisions(request?: _69.QueryAnnualProvisionsRequest | undefined): Promise<_69.QueryAnnualProvisionsResponse>; - }; - }; - nft: { - v1beta1: { - balance(request: _74.QueryBalanceRequest): Promise<_74.QueryBalanceResponse>; - owner(request: _74.QueryOwnerRequest): Promise<_74.QueryOwnerResponse>; - supply(request: _74.QuerySupplyRequest): Promise<_74.QuerySupplyResponse>; - nFTs(request: _74.QueryNFTsRequest): Promise<_74.QueryNFTsResponse>; - nFT(request: _74.QueryNFTRequest): Promise<_74.QueryNFTResponse>; - class(request: _74.QueryClassRequest): Promise<_74.QueryClassResponse>; - classes(request?: _74.QueryClassesRequest | undefined): Promise<_74.QueryClassesResponse>; - }; - }; - params: { - v1beta1: { - params(request: _80.QueryParamsRequest): Promise<_80.QueryParamsResponse>; - subspaces(request?: _80.QuerySubspacesRequest | undefined): Promise<_80.QuerySubspacesResponse>; - }; - }; - slashing: { - v1beta1: { - params(request?: _82.QueryParamsRequest | undefined): Promise<_82.QueryParamsResponse>; - signingInfo(request: _82.QuerySigningInfoRequest): Promise<_82.QuerySigningInfoResponse>; - signingInfos(request?: _82.QuerySigningInfosRequest | undefined): Promise<_82.QuerySigningInfosResponse>; - }; - }; - staking: { - v1beta1: { - validators(request: _87.QueryValidatorsRequest): Promise<_87.QueryValidatorsResponse>; - validator(request: _87.QueryValidatorRequest): Promise<_87.QueryValidatorResponse>; - validatorDelegations(request: _87.QueryValidatorDelegationsRequest): Promise<_87.QueryValidatorDelegationsResponse>; - validatorUnbondingDelegations(request: _87.QueryValidatorUnbondingDelegationsRequest): Promise<_87.QueryValidatorUnbondingDelegationsResponse>; - delegation(request: _87.QueryDelegationRequest): Promise<_87.QueryDelegationResponse>; - unbondingDelegation(request: _87.QueryUnbondingDelegationRequest): Promise<_87.QueryUnbondingDelegationResponse>; - delegatorDelegations(request: _87.QueryDelegatorDelegationsRequest): Promise<_87.QueryDelegatorDelegationsResponse>; - delegatorUnbondingDelegations(request: _87.QueryDelegatorUnbondingDelegationsRequest): Promise<_87.QueryDelegatorUnbondingDelegationsResponse>; - redelegations(request: _87.QueryRedelegationsRequest): Promise<_87.QueryRedelegationsResponse>; - delegatorValidators(request: _87.QueryDelegatorValidatorsRequest): Promise<_87.QueryDelegatorValidatorsResponse>; - delegatorValidator(request: _87.QueryDelegatorValidatorRequest): Promise<_87.QueryDelegatorValidatorResponse>; - historicalInfo(request: _87.QueryHistoricalInfoRequest): Promise<_87.QueryHistoricalInfoResponse>; - pool(request?: _87.QueryPoolRequest | undefined): Promise<_87.QueryPoolResponse>; - params(request?: _87.QueryParamsRequest | undefined): Promise<_87.QueryParamsResponse>; - }; - }; - tx: { - v1beta1: { - simulate(request: _91.SimulateRequest): Promise<_91.SimulateResponse>; - getTx(request: _91.GetTxRequest): Promise<_91.GetTxResponse>; - broadcastTx(request: _91.BroadcastTxRequest): Promise<_91.BroadcastTxResponse>; - getTxsEvent(request: _91.GetTxsEventRequest): Promise<_91.GetTxsEventResponse>; - getBlockWithTxs(request: _91.GetBlockWithTxsRequest): Promise<_91.GetBlockWithTxsResponse>; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: _93.QueryCurrentPlanRequest | undefined): Promise<_93.QueryCurrentPlanResponse>; - appliedPlan(request: _93.QueryAppliedPlanRequest): Promise<_93.QueryAppliedPlanResponse>; - upgradedConsensusState(request: _93.QueryUpgradedConsensusStateRequest): Promise<_93.QueryUpgradedConsensusStateResponse>; - moduleVersions(request: _93.QueryModuleVersionsRequest): Promise<_93.QueryModuleVersionsResponse>; - authority(request?: _93.QueryAuthorityRequest | undefined): Promise<_93.QueryAuthorityResponse>; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: _180.LCDQueryClient; - }; - authz: { - v1beta1: _181.LCDQueryClient; - }; - bank: { - v1beta1: _182.LCDQueryClient; - }; - base: { - node: { - v1beta1: _183.LCDQueryClient; - }; - tendermint: { - v1beta1: _184.LCDQueryClient; - }; - }; - distribution: { - v1beta1: _185.LCDQueryClient; - }; - evidence: { - v1beta1: _186.LCDQueryClient; - }; - feegrant: { - v1beta1: _187.LCDQueryClient; - }; - gov: { - v1: _188.LCDQueryClient; - v1beta1: _189.LCDQueryClient; - }; - group: { - v1: _190.LCDQueryClient; - }; - mint: { - v1beta1: _191.LCDQueryClient; - }; - nft: { - v1beta1: _192.LCDQueryClient; - }; - params: { - v1beta1: _193.LCDQueryClient; - }; - slashing: { - v1beta1: _194.LCDQueryClient; - }; - staking: { - v1beta1: _195.LCDQueryClient; - }; - tx: { - v1beta1: _196.LCDQueryClient; - }; - upgrade: { - v1beta1: _197.LCDQueryClient; - }; - }; - }>; - }; -} diff --git a/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts b/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts deleted file mode 100644 index 4fab7db1..00000000 --- a/packages/api/types/codegen/cosmos/capability/v1beta1/capability.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: bigint; -} -export interface CapabilityProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Capability"; - value: Uint8Array; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilityAmino { - index?: string; -} -export interface CapabilityAminoMsg { - type: "cosmos-sdk/Capability"; - value: CapabilityAmino; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: bigint; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -export interface OwnerProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.Owner"; - value: Uint8Array; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerAmino { - module?: string; - name?: string; -} -export interface OwnerAminoMsg { - type: "cosmos-sdk/Owner"; - value: OwnerAmino; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -export interface CapabilityOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners"; - value: Uint8Array; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersAmino { - owners?: OwnerAmino[]; -} -export interface CapabilityOwnersAminoMsg { - type: "cosmos-sdk/CapabilityOwners"; - value: CapabilityOwnersAmino; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} -export declare const Capability: { - typeUrl: string; - encode(message: Capability, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Capability; - fromJSON(object: any): Capability; - toJSON(message: Capability): unknown; - fromPartial(object: Partial): Capability; - fromAmino(object: CapabilityAmino): Capability; - toAmino(message: Capability): CapabilityAmino; - fromAminoMsg(object: CapabilityAminoMsg): Capability; - toAminoMsg(message: Capability): CapabilityAminoMsg; - fromProtoMsg(message: CapabilityProtoMsg): Capability; - toProto(message: Capability): Uint8Array; - toProtoMsg(message: Capability): CapabilityProtoMsg; -}; -export declare const Owner: { - typeUrl: string; - encode(message: Owner, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Owner; - fromJSON(object: any): Owner; - toJSON(message: Owner): unknown; - fromPartial(object: Partial): Owner; - fromAmino(object: OwnerAmino): Owner; - toAmino(message: Owner): OwnerAmino; - fromAminoMsg(object: OwnerAminoMsg): Owner; - toAminoMsg(message: Owner): OwnerAminoMsg; - fromProtoMsg(message: OwnerProtoMsg): Owner; - toProto(message: Owner): Uint8Array; - toProtoMsg(message: Owner): OwnerProtoMsg; -}; -export declare const CapabilityOwners: { - typeUrl: string; - encode(message: CapabilityOwners, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CapabilityOwners; - fromJSON(object: any): CapabilityOwners; - toJSON(message: CapabilityOwners): unknown; - fromPartial(object: Partial): CapabilityOwners; - fromAmino(object: CapabilityOwnersAmino): CapabilityOwners; - toAmino(message: CapabilityOwners): CapabilityOwnersAmino; - fromAminoMsg(object: CapabilityOwnersAminoMsg): CapabilityOwners; - toAminoMsg(message: CapabilityOwners): CapabilityOwnersAminoMsg; - fromProtoMsg(message: CapabilityOwnersProtoMsg): CapabilityOwners; - toProto(message: CapabilityOwners): Uint8Array; - toProtoMsg(message: CapabilityOwners): CapabilityOwnersProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts deleted file mode 100644 index bb72a0e5..00000000 --- a/packages/api/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { CapabilityOwners, CapabilityOwnersAmino, CapabilityOwnersSDKType } from "./capability"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: bigint; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -export interface GenesisOwnersProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisOwners"; - value: Uint8Array; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersAmino { - /** index is the index of the capability owner. */ - index?: string; - /** index_owners are the owners at the given index. */ - index_owners?: CapabilityOwnersAmino; -} -export interface GenesisOwnersAminoMsg { - type: "cosmos-sdk/GenesisOwners"; - value: GenesisOwnersAmino; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: bigint; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: bigint; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.capability.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateAmino { - /** index is the capability global index. */ - index?: string; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners?: GenesisOwnersAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: bigint; - owners: GenesisOwnersSDKType[]; -} -export declare const GenesisOwners: { - typeUrl: string; - encode(message: GenesisOwners, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisOwners; - fromJSON(object: any): GenesisOwners; - toJSON(message: GenesisOwners): unknown; - fromPartial(object: Partial): GenesisOwners; - fromAmino(object: GenesisOwnersAmino): GenesisOwners; - toAmino(message: GenesisOwners): GenesisOwnersAmino; - fromAminoMsg(object: GenesisOwnersAminoMsg): GenesisOwners; - toAminoMsg(message: GenesisOwners): GenesisOwnersAminoMsg; - fromProtoMsg(message: GenesisOwnersProtoMsg): GenesisOwners; - toProto(message: GenesisOwners): Uint8Array; - toProtoMsg(message: GenesisOwners): GenesisOwnersProtoMsg; -}; -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/client.d.ts b/packages/api/types/codegen/cosmos/client.d.ts deleted file mode 100644 index d1f06838..00000000 --- a/packages/api/types/codegen/cosmos/client.d.ts +++ /dev/null @@ -1,259 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const cosmosAminoConverters: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreateVestingAccount) => import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount; - }; - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino; - fromAmino: (object: import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: import("./upgrade/v1beta1/tx").MsgCancelUpgrade) => import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino; - fromAmino: (object: import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgCancelUpgrade; - }; - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgCreateValidator) => import("./staking/v1beta1/tx").MsgCreateValidatorAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgCreateValidatorAmino) => import("./staking/v1beta1/tx").MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgEditValidator) => import("./staking/v1beta1/tx").MsgEditValidatorAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgEditValidatorAmino) => import("./staking/v1beta1/tx").MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgDelegate) => import("./staking/v1beta1/tx").MsgDelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgDelegateAmino) => import("./staking/v1beta1/tx").MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgBeginRedelegate) => import("./staking/v1beta1/tx").MsgBeginRedelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgBeginRedelegateAmino) => import("./staking/v1beta1/tx").MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgUndelegate) => import("./staking/v1beta1/tx").MsgUndelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgUndelegateAmino) => import("./staking/v1beta1/tx").MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation; - }; - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: (message: import("./slashing/v1beta1/tx").MsgUnjail) => import("./slashing/v1beta1/tx").MsgUnjailAmino; - fromAmino: (object: import("./slashing/v1beta1/tx").MsgUnjailAmino) => import("./slashing/v1beta1/tx").MsgUnjail; - }; - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: import("./nft/v1beta1/tx").MsgSend) => import("./nft/v1beta1/tx").MsgSendAmino; - fromAmino: (object: import("./nft/v1beta1/tx").MsgSendAmino) => import("./nft/v1beta1/tx").MsgSend; - }; - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroup) => import("./group/v1/tx").MsgCreateGroupAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupAmino) => import("./group/v1/tx").MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMembers) => import("./group/v1/tx").MsgUpdateGroupMembersAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMembersAmino) => import("./group/v1/tx").MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupAdmin) => import("./group/v1/tx").MsgUpdateGroupAdminAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupAdminAmino) => import("./group/v1/tx").MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMetadata) => import("./group/v1/tx").MsgUpdateGroupMetadataAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroupPolicy) => import("./group/v1/tx").MsgCreateGroupPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupPolicyAmino) => import("./group/v1/tx").MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroupWithPolicy) => import("./group/v1/tx").MsgCreateGroupWithPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupWithPolicyAmino) => import("./group/v1/tx").MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyAdmin) => import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyMetadata) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgSubmitProposal) => import("./group/v1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./group/v1/tx").MsgSubmitProposalAmino) => import("./group/v1/tx").MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgWithdrawProposal) => import("./group/v1/tx").MsgWithdrawProposalAmino; - fromAmino: (object: import("./group/v1/tx").MsgWithdrawProposalAmino) => import("./group/v1/tx").MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgVote) => import("./group/v1/tx").MsgVoteAmino; - fromAmino: (object: import("./group/v1/tx").MsgVoteAmino) => import("./group/v1/tx").MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgExec) => import("./group/v1/tx").MsgExecAmino; - fromAmino: (object: import("./group/v1/tx").MsgExecAmino) => import("./group/v1/tx").MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgLeaveGroup) => import("./group/v1/tx").MsgLeaveGroupAmino; - fromAmino: (object: import("./group/v1/tx").MsgLeaveGroupAmino) => import("./group/v1/tx").MsgLeaveGroup; - }; - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgSubmitProposal) => import("./gov/v1beta1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgSubmitProposalAmino) => import("./gov/v1beta1/tx").MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgVote) => import("./gov/v1beta1/tx").MsgVoteAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteAmino) => import("./gov/v1beta1/tx").MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgVoteWeighted) => import("./gov/v1beta1/tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteWeightedAmino) => import("./gov/v1beta1/tx").MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgDeposit) => import("./gov/v1beta1/tx").MsgDepositAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgDepositAmino) => import("./gov/v1beta1/tx").MsgDeposit; - }; - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgSubmitProposal) => import("./gov/v1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./gov/v1/tx").MsgSubmitProposalAmino) => import("./gov/v1/tx").MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgExecLegacyContent) => import("./gov/v1/tx").MsgExecLegacyContentAmino; - fromAmino: (object: import("./gov/v1/tx").MsgExecLegacyContentAmino) => import("./gov/v1/tx").MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgVote) => import("./gov/v1/tx").MsgVoteAmino; - fromAmino: (object: import("./gov/v1/tx").MsgVoteAmino) => import("./gov/v1/tx").MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgVoteWeighted) => import("./gov/v1/tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./gov/v1/tx").MsgVoteWeightedAmino) => import("./gov/v1/tx").MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgDeposit) => import("./gov/v1/tx").MsgDepositAmino; - fromAmino: (object: import("./gov/v1/tx").MsgDepositAmino) => import("./gov/v1/tx").MsgDeposit; - }; - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: import("./feegrant/v1beta1/tx").MsgGrantAllowance) => import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino; - fromAmino: (object: import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: import("./feegrant/v1beta1/tx").MsgRevokeAllowance) => import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino; - fromAmino: (object: import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgRevokeAllowance; - }; - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: (message: import("./evidence/v1beta1/tx").MsgSubmitEvidence) => import("./evidence/v1beta1/tx").MsgSubmitEvidenceAmino; - fromAmino: (object: import("./evidence/v1beta1/tx").MsgSubmitEvidenceAmino) => import("./evidence/v1beta1/tx").MsgSubmitEvidence; - }; - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgSetWithdrawAddress) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgFundCommunityPool) => import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino) => import("./distribution/v1beta1/tx").MsgFundCommunityPool; - }; - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: (message: import("./crisis/v1beta1/tx").MsgVerifyInvariant) => import("./crisis/v1beta1/tx").MsgVerifyInvariantAmino; - fromAmino: (object: import("./crisis/v1beta1/tx").MsgVerifyInvariantAmino) => import("./crisis/v1beta1/tx").MsgVerifyInvariant; - }; - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: import("./bank/v1beta1/tx").MsgSend) => import("./bank/v1beta1/tx").MsgSendAmino; - fromAmino: (object: import("./bank/v1beta1/tx").MsgSendAmino) => import("./bank/v1beta1/tx").MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: import("./bank/v1beta1/tx").MsgMultiSend) => import("./bank/v1beta1/tx").MsgMultiSendAmino; - fromAmino: (object: import("./bank/v1beta1/tx").MsgMultiSendAmino) => import("./bank/v1beta1/tx").MsgMultiSend; - }; - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgGrant) => import("./authz/v1beta1/tx").MsgGrantAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgGrantAmino) => import("./authz/v1beta1/tx").MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgExec) => import("./authz/v1beta1/tx").MsgExecAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgExecAmino) => import("./authz/v1beta1/tx").MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgRevoke) => import("./authz/v1beta1/tx").MsgRevokeAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgRevokeAmino) => import("./authz/v1beta1/tx").MsgRevoke; - }; -}; -export declare const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningCosmosClientOptions: () => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningCosmosClient: ({ rpcEndpoint, signer }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; -}) => Promise; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts deleted file mode 100644 index c4fb3c16..00000000 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateAmino { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constant_fee?: CoinAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts deleted file mode 100644 index 71962f69..00000000 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgVerifyInvariant } from "./tx"; -export declare const AminoConverter: { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: (message: MsgVerifyInvariant) => import("./tx").MsgVerifyInvariantAmino; - fromAmino: (object: import("./tx").MsgVerifyInvariantAmino) => MsgVerifyInvariant; - }; -}; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts deleted file mode 100644 index 3d284d69..00000000 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -export interface MsgVerifyInvariantProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant"; - value: Uint8Array; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantAmino { - sender?: string; - invariant_module_name?: string; - invariant_route?: string; -} -export interface MsgVerifyInvariantAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: MsgVerifyInvariantAmino; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse { -} -export interface MsgVerifyInvariantResponseProtoMsg { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; - value: Uint8Array; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseAmino { -} -export interface MsgVerifyInvariantResponseAminoMsg { - type: "cosmos-sdk/MsgVerifyInvariantResponse"; - value: MsgVerifyInvariantResponseAmino; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType { -} -export declare const MsgVerifyInvariant: { - typeUrl: string; - encode(message: MsgVerifyInvariant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariant; - fromJSON(object: any): MsgVerifyInvariant; - toJSON(message: MsgVerifyInvariant): unknown; - fromPartial(object: Partial): MsgVerifyInvariant; - fromAmino(object: MsgVerifyInvariantAmino): MsgVerifyInvariant; - toAmino(message: MsgVerifyInvariant): MsgVerifyInvariantAmino; - fromAminoMsg(object: MsgVerifyInvariantAminoMsg): MsgVerifyInvariant; - toAminoMsg(message: MsgVerifyInvariant): MsgVerifyInvariantAminoMsg; - fromProtoMsg(message: MsgVerifyInvariantProtoMsg): MsgVerifyInvariant; - toProto(message: MsgVerifyInvariant): Uint8Array; - toProtoMsg(message: MsgVerifyInvariant): MsgVerifyInvariantProtoMsg; -}; -export declare const MsgVerifyInvariantResponse: { - typeUrl: string; - encode(_: MsgVerifyInvariantResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVerifyInvariantResponse; - fromJSON(_: any): MsgVerifyInvariantResponse; - toJSON(_: MsgVerifyInvariantResponse): unknown; - fromPartial(_: Partial): MsgVerifyInvariantResponse; - fromAmino(_: MsgVerifyInvariantResponseAmino): MsgVerifyInvariantResponse; - toAmino(_: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseAmino; - fromAminoMsg(object: MsgVerifyInvariantResponseAminoMsg): MsgVerifyInvariantResponse; - toAminoMsg(message: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseAminoMsg; - fromProtoMsg(message: MsgVerifyInvariantResponseProtoMsg): MsgVerifyInvariantResponse; - toProto(message: MsgVerifyInvariantResponse): Uint8Array; - toProtoMsg(message: MsgVerifyInvariantResponse): MsgVerifyInvariantResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts deleted file mode 100644 index 0816011c..00000000 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgVerifyInvariant } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: MsgVerifyInvariant; - }; - }; - toJSON: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - verifyInvariant(value: any): { - typeUrl: string; - value: MsgVerifyInvariant; - }; - }; - fromPartial: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: MsgVerifyInvariant; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index bce7eac0..00000000 --- a/packages/api/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgVerifyInvariant, MsgVerifyInvariantResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** VerifyInvariant defines a method to verify a particular invariance. */ - verifyInvariant(request: MsgVerifyInvariant): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - verifyInvariant(request: MsgVerifyInvariant): Promise; -} diff --git a/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts deleted file mode 100644 index d73f0206..00000000 --- a/packages/api/types/codegen/cosmos/crypto/ed25519/keys.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PubKey"; - value: Uint8Array; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PrivKey"; - value: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeySDKType { - key: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromJSON(object: any): PubKey; - toJSON(message: PubKey): unknown; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromJSON(object: any): PrivKey; - toJSON(message: PrivKey): unknown; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts b/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts deleted file mode 100644 index abdb6cf6..00000000 --- a/packages/api/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44Params { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coinType: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - addressIndex: number; -} -export interface BIP44ParamsProtoMsg { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; - value: Uint8Array; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsAmino { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose?: number; - /** coin_type is a constant that improves privacy */ - coin_type?: number; - /** account splits the key space into independent user identities */ - account?: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change?: boolean; - /** address_index is used as child index in BIP32 derivation */ - address_index?: number; -} -export interface BIP44ParamsAminoMsg { - type: "cosmos-sdk/BIP44Params"; - value: BIP44ParamsAmino; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsSDKType { - purpose: number; - coin_type: number; - account: number; - change: boolean; - address_index: number; -} -export declare const BIP44Params: { - typeUrl: string; - encode(message: BIP44Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params; - fromJSON(object: any): BIP44Params; - toJSON(message: BIP44Params): unknown; - fromPartial(object: Partial): BIP44Params; - fromAmino(object: BIP44ParamsAmino): BIP44Params; - toAmino(message: BIP44Params): BIP44ParamsAmino; - fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params; - toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg; - fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params; - toProto(message: BIP44Params): Uint8Array; - toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts b/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts deleted file mode 100644 index 20387d4e..00000000 --- a/packages/api/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Record is used for representing a key in the keyring. */ -export interface Record { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pubKey?: Any; - /** local stores the private key locally. */ - local?: Record_Local; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_Ledger; - /** Multi does not store any other information. */ - multi?: Record_Multi; - /** Offline does not store any other information. */ - offline?: Record_Offline; -} -export interface RecordProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Record"; - value: Uint8Array; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordAmino { - /** name represents a name of Record */ - name?: string; - /** pub_key represents a public key in any format */ - pub_key?: AnyAmino; - /** local stores the private key locally. */ - local?: Record_LocalAmino; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_LedgerAmino; - /** Multi does not store any other information. */ - multi?: Record_MultiAmino; - /** Offline does not store any other information. */ - offline?: Record_OfflineAmino; -} -export interface RecordAminoMsg { - type: "cosmos-sdk/Record"; - value: RecordAmino; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordSDKType { - name: string; - pub_key?: AnySDKType; - local?: Record_LocalSDKType; - ledger?: Record_LedgerSDKType; - multi?: Record_MultiSDKType; - offline?: Record_OfflineSDKType; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_Local { - privKey?: Any; -} -export interface Record_LocalProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Local"; - value: Uint8Array; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalAmino { - priv_key?: AnyAmino; -} -export interface Record_LocalAminoMsg { - type: "cosmos-sdk/Local"; - value: Record_LocalAmino; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalSDKType { - priv_key?: AnySDKType; -} -/** Ledger item */ -export interface Record_Ledger { - path?: BIP44Params; -} -export interface Record_LedgerProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; - value: Uint8Array; -} -/** Ledger item */ -export interface Record_LedgerAmino { - path?: BIP44ParamsAmino; -} -export interface Record_LedgerAminoMsg { - type: "cosmos-sdk/Ledger"; - value: Record_LedgerAmino; -} -/** Ledger item */ -export interface Record_LedgerSDKType { - path?: BIP44ParamsSDKType; -} -/** Multi item */ -export interface Record_Multi { -} -export interface Record_MultiProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Multi"; - value: Uint8Array; -} -/** Multi item */ -export interface Record_MultiAmino { -} -export interface Record_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: Record_MultiAmino; -} -/** Multi item */ -export interface Record_MultiSDKType { -} -/** Offline item */ -export interface Record_Offline { -} -export interface Record_OfflineProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Offline"; - value: Uint8Array; -} -/** Offline item */ -export interface Record_OfflineAmino { -} -export interface Record_OfflineAminoMsg { - type: "cosmos-sdk/Offline"; - value: Record_OfflineAmino; -} -/** Offline item */ -export interface Record_OfflineSDKType { -} -export declare const Record: { - typeUrl: string; - encode(message: Record, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record; - fromJSON(object: any): Record; - toJSON(message: Record): unknown; - fromPartial(object: Partial): Record; - fromAmino(object: RecordAmino): Record; - toAmino(message: Record): RecordAmino; - fromAminoMsg(object: RecordAminoMsg): Record; - toAminoMsg(message: Record): RecordAminoMsg; - fromProtoMsg(message: RecordProtoMsg): Record; - toProto(message: Record): Uint8Array; - toProtoMsg(message: Record): RecordProtoMsg; -}; -export declare const Record_Local: { - typeUrl: string; - encode(message: Record_Local, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Local; - fromJSON(object: any): Record_Local; - toJSON(message: Record_Local): unknown; - fromPartial(object: Partial): Record_Local; - fromAmino(object: Record_LocalAmino): Record_Local; - toAmino(message: Record_Local): Record_LocalAmino; - fromAminoMsg(object: Record_LocalAminoMsg): Record_Local; - toAminoMsg(message: Record_Local): Record_LocalAminoMsg; - fromProtoMsg(message: Record_LocalProtoMsg): Record_Local; - toProto(message: Record_Local): Uint8Array; - toProtoMsg(message: Record_Local): Record_LocalProtoMsg; -}; -export declare const Record_Ledger: { - typeUrl: string; - encode(message: Record_Ledger, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger; - fromJSON(object: any): Record_Ledger; - toJSON(message: Record_Ledger): unknown; - fromPartial(object: Partial): Record_Ledger; - fromAmino(object: Record_LedgerAmino): Record_Ledger; - toAmino(message: Record_Ledger): Record_LedgerAmino; - fromAminoMsg(object: Record_LedgerAminoMsg): Record_Ledger; - toAminoMsg(message: Record_Ledger): Record_LedgerAminoMsg; - fromProtoMsg(message: Record_LedgerProtoMsg): Record_Ledger; - toProto(message: Record_Ledger): Uint8Array; - toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg; -}; -export declare const Record_Multi: { - typeUrl: string; - encode(_: Record_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi; - fromJSON(_: any): Record_Multi; - toJSON(_: Record_Multi): unknown; - fromPartial(_: Partial): Record_Multi; - fromAmino(_: Record_MultiAmino): Record_Multi; - toAmino(_: Record_Multi): Record_MultiAmino; - fromAminoMsg(object: Record_MultiAminoMsg): Record_Multi; - toAminoMsg(message: Record_Multi): Record_MultiAminoMsg; - fromProtoMsg(message: Record_MultiProtoMsg): Record_Multi; - toProto(message: Record_Multi): Uint8Array; - toProtoMsg(message: Record_Multi): Record_MultiProtoMsg; -}; -export declare const Record_Offline: { - typeUrl: string; - encode(_: Record_Offline, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline; - fromJSON(_: any): Record_Offline; - toJSON(_: Record_Offline): unknown; - fromPartial(_: Partial): Record_Offline; - fromAmino(_: Record_OfflineAmino): Record_Offline; - toAmino(_: Record_Offline): Record_OfflineAmino; - fromAminoMsg(object: Record_OfflineAminoMsg): Record_Offline; - toAminoMsg(message: Record_Offline): Record_OfflineAminoMsg; - fromProtoMsg(message: Record_OfflineProtoMsg): Record_Offline; - toProto(message: Record_Offline): Uint8Array; - toProtoMsg(message: Record_Offline): Record_OfflineProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts deleted file mode 100644 index 7040c3c6..00000000 --- a/packages/api/types/codegen/cosmos/crypto/multisig/keys.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKey { - threshold: number; - publicKeys: Any[]; -} -export interface LegacyAminoPubKeyProtoMsg { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; - value: Uint8Array; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeyAmino { - threshold?: number; - public_keys?: AnyAmino[]; -} -export interface LegacyAminoPubKeyAminoMsg { - type: "cosmos-sdk/LegacyAminoPubKey"; - value: LegacyAminoPubKeyAmino; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeySDKType { - threshold: number; - public_keys: AnySDKType[]; -} -export declare const LegacyAminoPubKey: { - typeUrl: string; - encode(message: LegacyAminoPubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey; - fromJSON(object: any): LegacyAminoPubKey; - toJSON(message: LegacyAminoPubKey): unknown; - fromPartial(object: Partial): LegacyAminoPubKey; - fromAmino(object: LegacyAminoPubKeyAmino): LegacyAminoPubKey; - toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino; - fromAminoMsg(object: LegacyAminoPubKeyAminoMsg): LegacyAminoPubKey; - toAminoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyAminoMsg; - fromProtoMsg(message: LegacyAminoPubKeyProtoMsg): LegacyAminoPubKey; - toProto(message: LegacyAminoPubKey): Uint8Array; - toProtoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts b/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts deleted file mode 100644 index ff331316..00000000 --- a/packages/api/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignature { - signatures: Uint8Array[]; -} -export interface MultiSignatureProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; - value: Uint8Array; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureAmino { - signatures?: string[]; -} -export interface MultiSignatureAminoMsg { - type: "cosmos-sdk/MultiSignature"; - value: MultiSignatureAmino; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureSDKType { - signatures: Uint8Array[]; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArray { - extraBitsStored: number; - elems: Uint8Array; -} -export interface CompactBitArrayProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; - value: Uint8Array; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArrayAmino { - extra_bits_stored?: number; - elems?: string; -} -export interface CompactBitArrayAminoMsg { - type: "cosmos-sdk/CompactBitArray"; - value: CompactBitArrayAmino; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArraySDKType { - extra_bits_stored: number; - elems: Uint8Array; -} -export declare const MultiSignature: { - typeUrl: string; - encode(message: MultiSignature, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature; - fromJSON(object: any): MultiSignature; - toJSON(message: MultiSignature): unknown; - fromPartial(object: Partial): MultiSignature; - fromAmino(object: MultiSignatureAmino): MultiSignature; - toAmino(message: MultiSignature): MultiSignatureAmino; - fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature; - toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg; - fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature; - toProto(message: MultiSignature): Uint8Array; - toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg; -}; -export declare const CompactBitArray: { - typeUrl: string; - encode(message: CompactBitArray, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray; - fromJSON(object: any): CompactBitArray; - toJSON(message: CompactBitArray): unknown; - fromPartial(object: Partial): CompactBitArray; - fromAmino(object: CompactBitArrayAmino): CompactBitArray; - toAmino(message: CompactBitArray): CompactBitArrayAmino; - fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray; - toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg; - fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray; - toProto(message: CompactBitArray): Uint8Array; - toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts deleted file mode 100644 index 726a5ed4..00000000 --- a/packages/api/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PubKey"; - value: Uint8Array; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeySDKType { - key: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromJSON(object: any): PubKey; - toJSON(message: PubKey): unknown; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromJSON(object: any): PrivKey; - toJSON(message: PrivKey): unknown; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts b/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts deleted file mode 100644 index c1299cf9..00000000 --- a/packages/api/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKey { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PubKey"; - value: Uint8Array; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeyAmino { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKey { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeyAmino { - /** secret number serialized using big-endian encoding */ - secret?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeySDKType { - secret: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromJSON(object: any): PubKey; - toJSON(message: PubKey): unknown; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromJSON(object: any): PrivKey; - toJSON(message: PrivKey): unknown; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts deleted file mode 100644 index bae33e13..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +++ /dev/null @@ -1,609 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Params defines the set of params for the distribution module. */ -export interface Params { - communityTax: string; - baseProposerReward: string; - bonusProposerReward: string; - withdrawAddrEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsAmino { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsSDKType { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewards { - cumulativeRewardRatio: DecCoin[]; - referenceCount: number; -} -export interface ValidatorHistoricalRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio?: DecCoinAmino[]; - reference_count?: number; -} -export interface ValidatorHistoricalRewardsAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewards"; - value: ValidatorHistoricalRewardsAmino; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsSDKType { - cumulative_reward_ratio: DecCoinSDKType[]; - reference_count: number; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewards { - rewards: DecCoin[]; - period: bigint; -} -export interface ValidatorCurrentRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - value: Uint8Array; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsAmino { - rewards?: DecCoinAmino[]; - period?: string; -} -export interface ValidatorCurrentRewardsAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewards"; - value: ValidatorCurrentRewardsAmino; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsSDKType { - rewards: DecCoinSDKType[]; - period: bigint; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommission { - commission: DecCoin[]; -} -export interface ValidatorAccumulatedCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionAmino { - commission?: DecCoinAmino[]; -} -export interface ValidatorAccumulatedCommissionAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommission"; - value: ValidatorAccumulatedCommissionAmino; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionSDKType { - commission: DecCoinSDKType[]; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewards { - rewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - value: Uint8Array; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsAmino { - rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewards"; - value: ValidatorOutstandingRewardsAmino; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsSDKType { - rewards: DecCoinSDKType[]; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEvent { - validatorPeriod: bigint; - fraction: string; -} -export interface ValidatorSlashEventProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; - value: Uint8Array; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventAmino { - validator_period?: string; - fraction?: string; -} -export interface ValidatorSlashEventAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvent"; - value: ValidatorSlashEventAmino; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventSDKType { - validator_period: bigint; - fraction: string; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEvents { - validatorSlashEvents: ValidatorSlashEvent[]; -} -export interface ValidatorSlashEventsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; - value: Uint8Array; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsAmino { - validator_slash_events?: ValidatorSlashEventAmino[]; -} -export interface ValidatorSlashEventsAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvents"; - value: ValidatorSlashEventsAmino; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsSDKType { - validator_slash_events: ValidatorSlashEventSDKType[]; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePool { - communityPool: DecCoin[]; -} -export interface FeePoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.FeePool"; - value: Uint8Array; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolAmino { - community_pool?: DecCoinAmino[]; -} -export interface FeePoolAminoMsg { - type: "cosmos-sdk/FeePool"; - value: FeePoolAmino; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolSDKType { - community_pool: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposal { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: Coin[]; -} -export interface CommunityPoolSpendProposalProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalAmino { - title?: string; - description?: string; - recipient?: string; - amount?: CoinAmino[]; -} -export interface CommunityPoolSpendProposalAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposal"; - value: CommunityPoolSpendProposalAmino; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: CoinSDKType[]; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfo { - previousPeriod: bigint; - stake: string; - height: bigint; -} -export interface DelegatorStartingInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; - value: Uint8Array; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoAmino { - previous_period?: string; - stake?: string; - height: string; -} -export interface DelegatorStartingInfoAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfo"; - value: DelegatorStartingInfoAmino; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoSDKType { - previous_period: bigint; - stake: string; - height: bigint; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorReward { - validatorAddress: string; - reward: DecCoin[]; -} -export interface DelegationDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; - value: Uint8Array; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardAmino { - validator_address?: string; - reward?: DecCoinAmino[]; -} -export interface DelegationDelegatorRewardAminoMsg { - type: "cosmos-sdk/DelegationDelegatorReward"; - value: DelegationDelegatorRewardAmino; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardSDKType { - validator_address: string; - reward: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDeposit { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositAmino { - title?: string; - description?: string; - recipient?: string; - amount?: string; - deposit?: string; -} -export interface CommunityPoolSpendProposalWithDepositAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; - value: CommunityPoolSpendProposalWithDepositAmino; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const ValidatorHistoricalRewards: { - typeUrl: string; - encode(message: ValidatorHistoricalRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards; - fromJSON(object: any): ValidatorHistoricalRewards; - toJSON(message: ValidatorHistoricalRewards): unknown; - fromPartial(object: Partial): ValidatorHistoricalRewards; - fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards; - toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino; - fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards; - toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg; - fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards; - toProto(message: ValidatorHistoricalRewards): Uint8Array; - toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg; -}; -export declare const ValidatorCurrentRewards: { - typeUrl: string; - encode(message: ValidatorCurrentRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards; - fromJSON(object: any): ValidatorCurrentRewards; - toJSON(message: ValidatorCurrentRewards): unknown; - fromPartial(object: Partial): ValidatorCurrentRewards; - fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards; - toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino; - fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards; - toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg; - fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards; - toProto(message: ValidatorCurrentRewards): Uint8Array; - toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg; -}; -export declare const ValidatorAccumulatedCommission: { - typeUrl: string; - encode(message: ValidatorAccumulatedCommission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission; - fromJSON(object: any): ValidatorAccumulatedCommission; - toJSON(message: ValidatorAccumulatedCommission): unknown; - fromPartial(object: Partial): ValidatorAccumulatedCommission; - fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission; - toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino; - fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission; - toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg; - fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission; - toProto(message: ValidatorAccumulatedCommission): Uint8Array; - toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg; -}; -export declare const ValidatorOutstandingRewards: { - typeUrl: string; - encode(message: ValidatorOutstandingRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards; - fromJSON(object: any): ValidatorOutstandingRewards; - toJSON(message: ValidatorOutstandingRewards): unknown; - fromPartial(object: Partial): ValidatorOutstandingRewards; - fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards; - toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino; - fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards; - toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg; - fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards; - toProto(message: ValidatorOutstandingRewards): Uint8Array; - toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg; -}; -export declare const ValidatorSlashEvent: { - typeUrl: string; - encode(message: ValidatorSlashEvent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent; - fromJSON(object: any): ValidatorSlashEvent; - toJSON(message: ValidatorSlashEvent): unknown; - fromPartial(object: Partial): ValidatorSlashEvent; - fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent; - toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino; - fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent; - toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg; - fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent; - toProto(message: ValidatorSlashEvent): Uint8Array; - toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg; -}; -export declare const ValidatorSlashEvents: { - typeUrl: string; - encode(message: ValidatorSlashEvents, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents; - fromJSON(object: any): ValidatorSlashEvents; - toJSON(message: ValidatorSlashEvents): unknown; - fromPartial(object: Partial): ValidatorSlashEvents; - fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents; - toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino; - fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents; - toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg; - fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents; - toProto(message: ValidatorSlashEvents): Uint8Array; - toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg; -}; -export declare const FeePool: { - typeUrl: string; - encode(message: FeePool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FeePool; - fromJSON(object: any): FeePool; - toJSON(message: FeePool): unknown; - fromPartial(object: Partial): FeePool; - fromAmino(object: FeePoolAmino): FeePool; - toAmino(message: FeePool): FeePoolAmino; - fromAminoMsg(object: FeePoolAminoMsg): FeePool; - toAminoMsg(message: FeePool): FeePoolAminoMsg; - fromProtoMsg(message: FeePoolProtoMsg): FeePool; - toProto(message: FeePool): Uint8Array; - toProtoMsg(message: FeePool): FeePoolProtoMsg; -}; -export declare const CommunityPoolSpendProposal: { - typeUrl: string; - encode(message: CommunityPoolSpendProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal; - fromJSON(object: any): CommunityPoolSpendProposal; - toJSON(message: CommunityPoolSpendProposal): unknown; - fromPartial(object: Partial): CommunityPoolSpendProposal; - fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal; - toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino; - fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal; - toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg; - fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal; - toProto(message: CommunityPoolSpendProposal): Uint8Array; - toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg; -}; -export declare const DelegatorStartingInfo: { - typeUrl: string; - encode(message: DelegatorStartingInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo; - fromJSON(object: any): DelegatorStartingInfo; - toJSON(message: DelegatorStartingInfo): unknown; - fromPartial(object: Partial): DelegatorStartingInfo; - fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo; - toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino; - fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo; - toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg; - fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo; - toProto(message: DelegatorStartingInfo): Uint8Array; - toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg; -}; -export declare const DelegationDelegatorReward: { - typeUrl: string; - encode(message: DelegationDelegatorReward, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward; - fromJSON(object: any): DelegationDelegatorReward; - toJSON(message: DelegationDelegatorReward): unknown; - fromPartial(object: Partial): DelegationDelegatorReward; - fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward; - toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino; - fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward; - toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg; - fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward; - toProto(message: DelegationDelegatorReward): Uint8Array; - toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg; -}; -export declare const CommunityPoolSpendProposalWithDeposit: { - typeUrl: string; - encode(message: CommunityPoolSpendProposalWithDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; - fromJSON(object: any): CommunityPoolSpendProposalWithDeposit; - toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown; - fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit; - fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit; - toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino; - fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit; - toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg; - fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit; - toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array; - toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts deleted file mode 100644 index 143a210a..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +++ /dev/null @@ -1,429 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfo { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdrawAddress: string; -} -export interface DelegatorWithdrawInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - value: Uint8Array; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address?: string; -} -export interface DelegatorWithdrawInfoAminoMsg { - type: "cosmos-sdk/DelegatorWithdrawInfo"; - value: DelegatorWithdrawInfoAmino; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoSDKType { - delegator_address: string; - withdraw_address: string; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstandingRewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - value: Uint8Array; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; - value: ValidatorOutstandingRewardsRecordAmino; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordSDKType { - validator_address: string; - outstanding_rewards: DecCoinSDKType[]; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated: ValidatorAccumulatedCommission; -} -export interface ValidatorAccumulatedCommissionRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated?: ValidatorAccumulatedCommissionAmino; -} -export interface ValidatorAccumulatedCommissionRecordAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; - value: ValidatorAccumulatedCommissionRecordAmino; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordSDKType { - validator_address: string; - accumulated: ValidatorAccumulatedCommissionSDKType; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** period defines the period the historical rewards apply to. */ - period: bigint; - /** rewards defines the historical rewards of a validator. */ - rewards: ValidatorHistoricalRewards; -} -export interface ValidatorHistoricalRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** period defines the period the historical rewards apply to. */ - period?: string; - /** rewards defines the historical rewards of a validator. */ - rewards?: ValidatorHistoricalRewardsAmino; -} -export interface ValidatorHistoricalRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; - value: ValidatorHistoricalRewardsRecordAmino; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordSDKType { - validator_address: string; - period: bigint; - rewards: ValidatorHistoricalRewardsSDKType; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** rewards defines the current rewards of a validator. */ - rewards: ValidatorCurrentRewards; -} -export interface ValidatorCurrentRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - value: Uint8Array; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** rewards defines the current rewards of a validator. */ - rewards?: ValidatorCurrentRewardsAmino; -} -export interface ValidatorCurrentRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; - value: ValidatorCurrentRewardsRecordAmino; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordSDKType { - validator_address: string; - rewards: ValidatorCurrentRewardsSDKType; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecord { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** starting_info defines the starting info of a delegator. */ - startingInfo: DelegatorStartingInfo; -} -export interface DelegatorStartingInfoRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - value: Uint8Array; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** validator_address is the address of the validator. */ - validator_address?: string; - /** starting_info defines the starting info of a delegator. */ - starting_info?: DelegatorStartingInfoAmino; -} -export interface DelegatorStartingInfoRecordAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfoRecord"; - value: DelegatorStartingInfoRecordAmino; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordSDKType { - delegator_address: string; - validator_address: string; - starting_info: DelegatorStartingInfoSDKType; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** height defines the block height at which the slash event occured. */ - height: bigint; - /** period is the period of the slash event. */ - period: bigint; - /** validator_slash_event describes the slash event. */ - validatorSlashEvent: ValidatorSlashEvent; -} -export interface ValidatorSlashEventRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - value: Uint8Array; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** height defines the block height at which the slash event occured. */ - height?: string; - /** period is the period of the slash event. */ - period?: string; - /** validator_slash_event describes the slash event. */ - validator_slash_event?: ValidatorSlashEventAmino; -} -export interface ValidatorSlashEventRecordAminoMsg { - type: "cosmos-sdk/ValidatorSlashEventRecord"; - value: ValidatorSlashEventRecordAmino; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordSDKType { - validator_address: string; - height: bigint; - period: bigint; - validator_slash_event: ValidatorSlashEventSDKType; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** fee_pool defines the fee pool at genesis. */ - feePool: FeePool; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[]; - /** fee_pool defines the previous proposer at genesis. */ - previousProposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstandingRewards: ValidatorOutstandingRewardsRecord[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegatorStartingInfos: DelegatorStartingInfoRecord[]; - /** fee_pool defines the validator slash events at genesis. */ - validatorSlashEvents: ValidatorSlashEventRecord[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** fee_pool defines the fee pool at genesis. */ - fee_pool?: FeePoolAmino; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; - /** fee_pool defines the previous proposer at genesis. */ - previous_proposer?: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; - /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events?: ValidatorSlashEventRecordAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - fee_pool: FeePoolSDKType; - delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; - previous_proposer: string; - outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; - validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; - validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; - delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; - validator_slash_events: ValidatorSlashEventRecordSDKType[]; -} -export declare const DelegatorWithdrawInfo: { - typeUrl: string; - encode(message: DelegatorWithdrawInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo; - fromJSON(object: any): DelegatorWithdrawInfo; - toJSON(message: DelegatorWithdrawInfo): unknown; - fromPartial(object: Partial): DelegatorWithdrawInfo; - fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo; - toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino; - fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo; - toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg; - fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo; - toProto(message: DelegatorWithdrawInfo): Uint8Array; - toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg; -}; -export declare const ValidatorOutstandingRewardsRecord: { - typeUrl: string; - encode(message: ValidatorOutstandingRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord; - fromJSON(object: any): ValidatorOutstandingRewardsRecord; - toJSON(message: ValidatorOutstandingRewardsRecord): unknown; - fromPartial(object: Partial): ValidatorOutstandingRewardsRecord; - fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord; - toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino; - fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord; - toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord; - toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg; -}; -export declare const ValidatorAccumulatedCommissionRecord: { - typeUrl: string; - encode(message: ValidatorAccumulatedCommissionRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord; - fromJSON(object: any): ValidatorAccumulatedCommissionRecord; - toJSON(message: ValidatorAccumulatedCommissionRecord): unknown; - fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord; - fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord; - toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino; - fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord; - toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg; - fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord; - toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array; - toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg; -}; -export declare const ValidatorHistoricalRewardsRecord: { - typeUrl: string; - encode(message: ValidatorHistoricalRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord; - fromJSON(object: any): ValidatorHistoricalRewardsRecord; - toJSON(message: ValidatorHistoricalRewardsRecord): unknown; - fromPartial(object: Partial): ValidatorHistoricalRewardsRecord; - fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord; - toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino; - fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord; - toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord; - toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg; -}; -export declare const ValidatorCurrentRewardsRecord: { - typeUrl: string; - encode(message: ValidatorCurrentRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord; - fromJSON(object: any): ValidatorCurrentRewardsRecord; - toJSON(message: ValidatorCurrentRewardsRecord): unknown; - fromPartial(object: Partial): ValidatorCurrentRewardsRecord; - fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord; - toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino; - fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord; - toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord; - toProto(message: ValidatorCurrentRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg; -}; -export declare const DelegatorStartingInfoRecord: { - typeUrl: string; - encode(message: DelegatorStartingInfoRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord; - fromJSON(object: any): DelegatorStartingInfoRecord; - toJSON(message: DelegatorStartingInfoRecord): unknown; - fromPartial(object: Partial): DelegatorStartingInfoRecord; - fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord; - toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino; - fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord; - toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg; - fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord; - toProto(message: DelegatorStartingInfoRecord): Uint8Array; - toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg; -}; -export declare const ValidatorSlashEventRecord: { - typeUrl: string; - encode(message: ValidatorSlashEventRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord; - fromJSON(object: any): ValidatorSlashEventRecord; - toJSON(message: ValidatorSlashEventRecord): unknown; - fromPartial(object: Partial): ValidatorSlashEventRecord; - fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord; - toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino; - fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord; - toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg; - fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord; - toProto(message: ValidatorSlashEventRecord): Uint8Array; - toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg; -}; -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts deleted file mode 100644 index 6a0d4a78..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.d.ts +++ /dev/null @@ -1,832 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorOutstandingRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorOutstandingRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; - value: QueryValidatorOutstandingRewardsRequestAmino; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponse { - rewards: ValidatorOutstandingRewards; -} -export interface QueryValidatorOutstandingRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseAmino { - rewards?: ValidatorOutstandingRewardsAmino; -} -export interface QueryValidatorOutstandingRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse"; - value: QueryValidatorOutstandingRewardsResponseAmino; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseSDKType { - rewards: ValidatorOutstandingRewardsSDKType; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorCommissionRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorCommissionRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionRequest"; - value: QueryValidatorCommissionRequestAmino; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponse { - /** commission defines the commision the validator received. */ - commission: ValidatorAccumulatedCommission; -} -export interface QueryValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseAmino { - /** commission defines the commision the validator received. */ - commission?: ValidatorAccumulatedCommissionAmino; -} -export interface QueryValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionResponse"; - value: QueryValidatorCommissionResponseAmino; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseSDKType { - commission: ValidatorAccumulatedCommissionSDKType; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; - /** starting_height defines the optional starting height to query the slashes. */ - startingHeight: bigint; - /** starting_height defines the optional ending height to query the slashes. */ - endingHeight: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorSlashesRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; - /** starting_height defines the optional starting height to query the slashes. */ - starting_height?: string; - /** starting_height defines the optional ending height to query the slashes. */ - ending_height?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorSlashesRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesRequest"; - value: QueryValidatorSlashesRequestAmino; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestSDKType { - validator_address: string; - starting_height: bigint; - ending_height: bigint; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponse { - /** slashes defines the slashes the validator received. */ - slashes: ValidatorSlashEvent[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorSlashesResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseAmino { - /** slashes defines the slashes the validator received. */ - slashes?: ValidatorSlashEventAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorSlashesResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesResponse"; - value: QueryValidatorSlashesResponseAmino; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseSDKType { - slashes: ValidatorSlashEventSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryDelegationRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryDelegationRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsRequest"; - value: QueryDelegationRewardsRequestAmino; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestSDKType { - delegator_address: string; - validator_address: string; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponse { - /** rewards defines the rewards accrued by a delegation. */ - rewards: DecCoin[]; -} -export interface QueryDelegationRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseAmino { - /** rewards defines the rewards accrued by a delegation. */ - rewards?: DecCoinAmino[]; -} -export interface QueryDelegationRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsResponse"; - value: QueryDelegationRewardsResponseAmino; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseSDKType { - rewards: DecCoinSDKType[]; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegationTotalRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegationTotalRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; - value: QueryDelegationTotalRewardsRequestAmino; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponse { - /** rewards defines all the rewards accrued by a delegator. */ - rewards: DelegationDelegatorReward[]; - /** total defines the sum of all the rewards. */ - total: DecCoin[]; -} -export interface QueryDelegationTotalRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseAmino { - /** rewards defines all the rewards accrued by a delegator. */ - rewards?: DelegationDelegatorRewardAmino[]; - /** total defines the sum of all the rewards. */ - total?: DecCoinAmino[]; -} -export interface QueryDelegationTotalRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; - value: QueryDelegationTotalRewardsResponseAmino; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseSDKType { - rewards: DelegationDelegatorRewardSDKType[]; - total: DecCoinSDKType[]; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators a delegator is delegating for. */ - validators: string[]; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators a delegator is delegating for. */ - validators?: string[]; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: string[]; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorWithdrawAddressRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorWithdrawAddressRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; - value: QueryDelegatorWithdrawAddressRequestAmino; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponse { - /** withdraw_address defines the delegator address to query for. */ - withdrawAddress: string; -} -export interface QueryDelegatorWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseAmino { - /** withdraw_address defines the delegator address to query for. */ - withdraw_address?: string; -} -export interface QueryDelegatorWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; - value: QueryDelegatorWithdrawAddressResponseAmino; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseSDKType { - withdraw_address: string; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequest { -} -export interface QueryCommunityPoolRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; - value: Uint8Array; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestAmino { -} -export interface QueryCommunityPoolRequestAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolRequest"; - value: QueryCommunityPoolRequestAmino; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestSDKType { -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponse { - /** pool defines community pool's coins. */ - pool: DecCoin[]; -} -export interface QueryCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; - value: Uint8Array; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseAmino { - /** pool defines community pool's coins. */ - pool?: DecCoinAmino[]; -} -export interface QueryCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolResponse"; - value: QueryCommunityPoolResponseAmino; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseSDKType { - pool: DecCoinSDKType[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryValidatorOutstandingRewardsRequest: { - typeUrl: string; - encode(message: QueryValidatorOutstandingRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; - fromJSON(object: any): QueryValidatorOutstandingRewardsRequest; - toJSON(message: QueryValidatorOutstandingRewardsRequest): unknown; - fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest; - fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest; - toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino; - fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest; - toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest; - toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg; -}; -export declare const QueryValidatorOutstandingRewardsResponse: { - typeUrl: string; - encode(message: QueryValidatorOutstandingRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; - fromJSON(object: any): QueryValidatorOutstandingRewardsResponse; - toJSON(message: QueryValidatorOutstandingRewardsResponse): unknown; - fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse; - fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse; - toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino; - fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse; - toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse; - toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg; -}; -export declare const QueryValidatorCommissionRequest: { - typeUrl: string; - encode(message: QueryValidatorCommissionRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest; - fromJSON(object: any): QueryValidatorCommissionRequest; - toJSON(message: QueryValidatorCommissionRequest): unknown; - fromPartial(object: Partial): QueryValidatorCommissionRequest; - fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest; - toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino; - fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest; - toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg; - fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest; - toProto(message: QueryValidatorCommissionRequest): Uint8Array; - toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg; -}; -export declare const QueryValidatorCommissionResponse: { - typeUrl: string; - encode(message: QueryValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse; - fromJSON(object: any): QueryValidatorCommissionResponse; - toJSON(message: QueryValidatorCommissionResponse): unknown; - fromPartial(object: Partial): QueryValidatorCommissionResponse; - fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse; - toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino; - fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse; - toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse; - toProto(message: QueryValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg; -}; -export declare const QueryValidatorSlashesRequest: { - typeUrl: string; - encode(message: QueryValidatorSlashesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest; - fromJSON(object: any): QueryValidatorSlashesRequest; - toJSON(message: QueryValidatorSlashesRequest): unknown; - fromPartial(object: Partial): QueryValidatorSlashesRequest; - fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest; - toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino; - fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest; - toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg; - fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest; - toProto(message: QueryValidatorSlashesRequest): Uint8Array; - toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg; -}; -export declare const QueryValidatorSlashesResponse: { - typeUrl: string; - encode(message: QueryValidatorSlashesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse; - fromJSON(object: any): QueryValidatorSlashesResponse; - toJSON(message: QueryValidatorSlashesResponse): unknown; - fromPartial(object: Partial): QueryValidatorSlashesResponse; - fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse; - toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino; - fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse; - toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg; - fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse; - toProto(message: QueryValidatorSlashesResponse): Uint8Array; - toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg; -}; -export declare const QueryDelegationRewardsRequest: { - typeUrl: string; - encode(message: QueryDelegationRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest; - fromJSON(object: any): QueryDelegationRewardsRequest; - toJSON(message: QueryDelegationRewardsRequest): unknown; - fromPartial(object: Partial): QueryDelegationRewardsRequest; - fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest; - toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino; - fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest; - toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg; - fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest; - toProto(message: QueryDelegationRewardsRequest): Uint8Array; - toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg; -}; -export declare const QueryDelegationRewardsResponse: { - typeUrl: string; - encode(message: QueryDelegationRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse; - fromJSON(object: any): QueryDelegationRewardsResponse; - toJSON(message: QueryDelegationRewardsResponse): unknown; - fromPartial(object: Partial): QueryDelegationRewardsResponse; - fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse; - toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino; - fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse; - toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg; - fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse; - toProto(message: QueryDelegationRewardsResponse): Uint8Array; - toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg; -}; -export declare const QueryDelegationTotalRewardsRequest: { - typeUrl: string; - encode(message: QueryDelegationTotalRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; - fromJSON(object: any): QueryDelegationTotalRewardsRequest; - toJSON(message: QueryDelegationTotalRewardsRequest): unknown; - fromPartial(object: Partial): QueryDelegationTotalRewardsRequest; - fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest; - toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino; - fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest; - toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg; - fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest; - toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array; - toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg; -}; -export declare const QueryDelegationTotalRewardsResponse: { - typeUrl: string; - encode(message: QueryDelegationTotalRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; - fromJSON(object: any): QueryDelegationTotalRewardsResponse; - toJSON(message: QueryDelegationTotalRewardsResponse): unknown; - fromPartial(object: Partial): QueryDelegationTotalRewardsResponse; - fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse; - toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino; - fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse; - toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg; - fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse; - toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array; - toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; - fromJSON(object: any): QueryDelegatorValidatorsRequest; - toJSON(message: QueryDelegatorValidatorsRequest): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorsRequest; - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; - fromJSON(object: any): QueryDelegatorValidatorsResponse; - toJSON(message: QueryDelegatorValidatorsResponse): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorsResponse; - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; -}; -export declare const QueryDelegatorWithdrawAddressRequest: { - typeUrl: string; - encode(message: QueryDelegatorWithdrawAddressRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; - fromJSON(object: any): QueryDelegatorWithdrawAddressRequest; - toJSON(message: QueryDelegatorWithdrawAddressRequest): unknown; - fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest; - fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest; - toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino; - fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest; - toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest; - toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg; -}; -export declare const QueryDelegatorWithdrawAddressResponse: { - typeUrl: string; - encode(message: QueryDelegatorWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; - fromJSON(object: any): QueryDelegatorWithdrawAddressResponse; - toJSON(message: QueryDelegatorWithdrawAddressResponse): unknown; - fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse; - fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse; - toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino; - fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse; - toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse; - toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg; -}; -export declare const QueryCommunityPoolRequest: { - typeUrl: string; - encode(_: QueryCommunityPoolRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest; - fromJSON(_: any): QueryCommunityPoolRequest; - toJSON(_: QueryCommunityPoolRequest): unknown; - fromPartial(_: Partial): QueryCommunityPoolRequest; - fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest; - toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino; - fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest; - toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg; - fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest; - toProto(message: QueryCommunityPoolRequest): Uint8Array; - toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg; -}; -export declare const QueryCommunityPoolResponse: { - typeUrl: string; - encode(message: QueryCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse; - fromJSON(object: any): QueryCommunityPoolResponse; - toJSON(message: QueryCommunityPoolResponse): unknown; - fromPartial(object: Partial): QueryCommunityPoolResponse; - fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse; - toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino; - fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse; - toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg; - fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse; - toProto(message: QueryCommunityPoolResponse): Uint8Array; - toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts deleted file mode 100644 index 753bd2d6..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(params: QueryValidatorCommissionRequest): Promise; - validatorSlashes(params: QueryValidatorSlashesRequest): Promise; - delegationRewards(params: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(_params?: QueryCommunityPoolRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index be0d7a15..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; -/** Query defines the gRPC querier service for distribution module. */ -export interface Query { - /** Params queries params of the distribution module. */ - params(request?: QueryParamsRequest): Promise; - /** ValidatorOutstandingRewards queries rewards of a validator address. */ - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - /** ValidatorCommission queries accumulated commission for a validator. */ - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - /** ValidatorSlashes queries slash events of a validator. */ - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - /** DelegationRewards queries the total rewards accrued by a delegation. */ - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - /** - * DelegationTotalRewards queries the total rewards accrued by a each - * validator. - */ - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - /** DelegatorValidators queries the validators of a delegator. */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - /** CommunityPool queries the community pool coins. */ - communityPool(request?: QueryCommunityPoolRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: QueryCommunityPoolRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: QueryCommunityPoolRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts deleted file mode 100644 index aa7ec544..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export declare const AminoConverter: { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: MsgSetWithdrawAddress) => import("./tx").MsgSetWithdrawAddressAmino; - fromAmino: (object: import("./tx").MsgSetWithdrawAddressAmino) => MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: MsgWithdrawDelegatorReward) => import("./tx").MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: import("./tx").MsgWithdrawDelegatorRewardAmino) => MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: MsgWithdrawValidatorCommission) => import("./tx").MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: import("./tx").MsgWithdrawValidatorCommissionAmino) => MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: MsgFundCommunityPool) => import("./tx").MsgFundCommunityPoolAmino; - fromAmino: (object: import("./tx").MsgFundCommunityPoolAmino) => MsgFundCommunityPool; - }; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts deleted file mode 100644 index d3cf11b9..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +++ /dev/null @@ -1,325 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddress { - delegatorAddress: string; - withdrawAddress: string; -} -export interface MsgSetWithdrawAddressProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - value: Uint8Array; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressAmino { - delegator_address?: string; - withdraw_address?: string; -} -export interface MsgSetWithdrawAddressAminoMsg { - type: "cosmos-sdk/MsgModifyWithdrawAddress"; - value: MsgSetWithdrawAddressAmino; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressSDKType { - delegator_address: string; - withdraw_address: string; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponse { -} -export interface MsgSetWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - value: Uint8Array; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseAmino { -} -export interface MsgSetWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; - value: MsgSetWithdrawAddressResponseAmino; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseSDKType { -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorReward { - delegatorAddress: string; - validatorAddress: string; -} -export interface MsgWithdrawDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - value: Uint8Array; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardAmino { - delegator_address?: string; - validator_address?: string; -} -export interface MsgWithdrawDelegatorRewardAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegationReward"; - value: MsgWithdrawDelegatorRewardAmino; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardSDKType { - delegator_address: string; - validator_address: string; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawDelegatorRewardResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - value: Uint8Array; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawDelegatorRewardResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; - value: MsgWithdrawDelegatorRewardResponseAmino; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommission { - validatorAddress: string; -} -export interface MsgWithdrawValidatorCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - value: Uint8Array; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionAmino { - validator_address?: string; -} -export interface MsgWithdrawValidatorCommissionAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommission"; - value: MsgWithdrawValidatorCommissionAmino; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionSDKType { - validator_address: string; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - value: Uint8Array; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; - value: MsgWithdrawValidatorCommissionResponseAmino; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPool { - amount: Coin[]; - depositor: string; -} -export interface MsgFundCommunityPoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; - value: Uint8Array; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolAmino { - amount?: CoinAmino[]; - depositor?: string; -} -export interface MsgFundCommunityPoolAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPool"; - value: MsgFundCommunityPoolAmino; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolSDKType { - amount: CoinSDKType[]; - depositor: string; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponse { -} -export interface MsgFundCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - value: Uint8Array; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseAmino { -} -export interface MsgFundCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPoolResponse"; - value: MsgFundCommunityPoolResponseAmino; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseSDKType { -} -export declare const MsgSetWithdrawAddress: { - typeUrl: string; - encode(message: MsgSetWithdrawAddress, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress; - fromJSON(object: any): MsgSetWithdrawAddress; - toJSON(message: MsgSetWithdrawAddress): unknown; - fromPartial(object: Partial): MsgSetWithdrawAddress; - fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress; - toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino; - fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress; - toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg; - fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress; - toProto(message: MsgSetWithdrawAddress): Uint8Array; - toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg; -}; -export declare const MsgSetWithdrawAddressResponse: { - typeUrl: string; - encode(_: MsgSetWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; - fromJSON(_: any): MsgSetWithdrawAddressResponse; - toJSON(_: MsgSetWithdrawAddressResponse): unknown; - fromPartial(_: Partial): MsgSetWithdrawAddressResponse; - fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse; - toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino; - fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse; - toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse; - toProto(message: MsgSetWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg; -}; -export declare const MsgWithdrawDelegatorReward: { - typeUrl: string; - encode(message: MsgWithdrawDelegatorReward, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; - fromJSON(object: any): MsgWithdrawDelegatorReward; - toJSON(message: MsgWithdrawDelegatorReward): unknown; - fromPartial(object: Partial): MsgWithdrawDelegatorReward; - fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward; - toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino; - fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward; - toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg; - fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward; - toProto(message: MsgWithdrawDelegatorReward): Uint8Array; - toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg; -}; -export declare const MsgWithdrawDelegatorRewardResponse: { - typeUrl: string; - encode(message: MsgWithdrawDelegatorRewardResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; - fromJSON(object: any): MsgWithdrawDelegatorRewardResponse; - toJSON(message: MsgWithdrawDelegatorRewardResponse): unknown; - fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse; - fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse; - toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino; - fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse; - toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse; - toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg; -}; -export declare const MsgWithdrawValidatorCommission: { - typeUrl: string; - encode(message: MsgWithdrawValidatorCommission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; - fromJSON(object: any): MsgWithdrawValidatorCommission; - toJSON(message: MsgWithdrawValidatorCommission): unknown; - fromPartial(object: Partial): MsgWithdrawValidatorCommission; - fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission; - toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino; - fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission; - toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg; - fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission; - toProto(message: MsgWithdrawValidatorCommission): Uint8Array; - toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg; -}; -export declare const MsgWithdrawValidatorCommissionResponse: { - typeUrl: string; - encode(message: MsgWithdrawValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; - fromJSON(object: any): MsgWithdrawValidatorCommissionResponse; - toJSON(message: MsgWithdrawValidatorCommissionResponse): unknown; - fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse; - fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse; - toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino; - fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse; - toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse; - toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg; -}; -export declare const MsgFundCommunityPool: { - typeUrl: string; - encode(message: MsgFundCommunityPool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool; - fromJSON(object: any): MsgFundCommunityPool; - toJSON(message: MsgFundCommunityPool): unknown; - fromPartial(object: Partial): MsgFundCommunityPool; - fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool; - toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino; - fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool; - toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg; - fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool; - toProto(message: MsgFundCommunityPool): Uint8Array; - toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg; -}; -export declare const MsgFundCommunityPoolResponse: { - typeUrl: string; - encode(_: MsgFundCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; - fromJSON(_: any): MsgFundCommunityPoolResponse; - toJSON(_: MsgFundCommunityPoolResponse): unknown; - fromPartial(_: Partial): MsgFundCommunityPoolResponse; - fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse; - toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino; - fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse; - toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg; - fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse; - toProto(message: MsgFundCommunityPoolResponse): Uint8Array; - toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts deleted file mode 100644 index 51f7ebbe..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: Uint8Array; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: Uint8Array; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: Uint8Array; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: MsgFundCommunityPool; - }; - }; - toJSON: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: unknown; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: unknown; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: unknown; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - setWithdrawAddress(value: any): { - typeUrl: string; - value: MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: any): { - typeUrl: string; - value: MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: any): { - typeUrl: string; - value: MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: any): { - typeUrl: string; - value: MsgFundCommunityPool; - }; - }; - fromPartial: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: MsgFundCommunityPool; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 38723e88..00000000 --- a/packages/api/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; -/** Msg defines the distribution Msg service. */ -export interface Msg { - /** - * SetWithdrawAddress defines a method to change the withdraw address - * for a delegator (or validator self-delegation). - */ - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; - /** - * WithdrawDelegatorReward defines a method to withdraw rewards of delegator - * from a single validator. - */ - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; - /** - * WithdrawValidatorCommission defines a method to withdraw the - * full commission to the validator address. - */ - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; - /** - * FundCommunityPool defines a method to allow an account to directly - * fund the community pool. - */ - fundCommunityPool(request: MsgFundCommunityPool): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; - fundCommunityPool(request: MsgFundCommunityPool): Promise; -} diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts deleted file mode 100644 index a3ae59dc..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: bigint; - time: Timestamp; - power: bigint; - consensusAddress: string; -} -export interface EquivocationProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.Equivocation"; - value: Uint8Array; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationAmino { - height?: string; - time?: string; - power?: string; - consensus_address?: string; -} -export interface EquivocationAminoMsg { - type: "cosmos-sdk/Equivocation"; - value: EquivocationAmino; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: bigint; - time: TimestampSDKType; - power: bigint; - consensus_address: string; -} -export declare const Equivocation: { - typeUrl: string; - encode(message: Equivocation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Equivocation; - fromJSON(object: any): Equivocation; - toJSON(message: Equivocation): unknown; - fromPartial(object: Partial): Equivocation; - fromAmino(object: EquivocationAmino): Equivocation; - toAmino(message: Equivocation): EquivocationAmino; - fromAminoMsg(object: EquivocationAminoMsg): Equivocation; - toAminoMsg(message: Equivocation): EquivocationAminoMsg; - fromProtoMsg(message: EquivocationProtoMsg): Equivocation; - toProto(message: Equivocation): Uint8Array; - toProtoMsg(message: Equivocation): EquivocationProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts deleted file mode 100644 index e4129624..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateAmino { - /** evidence defines all the evidence at genesis. */ - evidence?: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts deleted file mode 100644 index c10fa2ec..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.d.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequest { - /** evidence_hash defines the hash of the requested evidence. */ - evidenceHash: Uint8Array; -} -export interface QueryEvidenceRequestProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest"; - value: Uint8Array; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestAmino { - /** evidence_hash defines the hash of the requested evidence. */ - evidence_hash?: string; -} -export interface QueryEvidenceRequestAminoMsg { - type: "cosmos-sdk/QueryEvidenceRequest"; - value: QueryEvidenceRequestAmino; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestSDKType { - evidence_hash: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponse { - /** evidence returns the requested evidence. */ - evidence?: Any; -} -export interface QueryEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse"; - value: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseAmino { - /** evidence returns the requested evidence. */ - evidence?: AnyAmino; -} -export interface QueryEvidenceResponseAminoMsg { - type: "cosmos-sdk/QueryEvidenceResponse"; - value: QueryEvidenceResponseAmino; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseSDKType { - evidence?: AnySDKType; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllEvidenceRequestProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest"; - value: Uint8Array; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllEvidenceRequestAminoMsg { - type: "cosmos-sdk/QueryAllEvidenceRequest"; - value: QueryAllEvidenceRequestAmino; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponse { - /** evidence returns all evidences. */ - evidence: Any[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse"; - value: Uint8Array; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseAmino { - /** evidence returns all evidences. */ - evidence?: AnyAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllEvidenceResponseAminoMsg { - type: "cosmos-sdk/QueryAllEvidenceResponse"; - value: QueryAllEvidenceResponseAmino; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseSDKType { - evidence: AnySDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryEvidenceRequest: { - typeUrl: string; - encode(message: QueryEvidenceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceRequest; - fromJSON(object: any): QueryEvidenceRequest; - toJSON(message: QueryEvidenceRequest): unknown; - fromPartial(object: Partial): QueryEvidenceRequest; - fromAmino(object: QueryEvidenceRequestAmino): QueryEvidenceRequest; - toAmino(message: QueryEvidenceRequest): QueryEvidenceRequestAmino; - fromAminoMsg(object: QueryEvidenceRequestAminoMsg): QueryEvidenceRequest; - toAminoMsg(message: QueryEvidenceRequest): QueryEvidenceRequestAminoMsg; - fromProtoMsg(message: QueryEvidenceRequestProtoMsg): QueryEvidenceRequest; - toProto(message: QueryEvidenceRequest): Uint8Array; - toProtoMsg(message: QueryEvidenceRequest): QueryEvidenceRequestProtoMsg; -}; -export declare const QueryEvidenceResponse: { - typeUrl: string; - encode(message: QueryEvidenceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEvidenceResponse; - fromJSON(object: any): QueryEvidenceResponse; - toJSON(message: QueryEvidenceResponse): unknown; - fromPartial(object: Partial): QueryEvidenceResponse; - fromAmino(object: QueryEvidenceResponseAmino): QueryEvidenceResponse; - toAmino(message: QueryEvidenceResponse): QueryEvidenceResponseAmino; - fromAminoMsg(object: QueryEvidenceResponseAminoMsg): QueryEvidenceResponse; - toAminoMsg(message: QueryEvidenceResponse): QueryEvidenceResponseAminoMsg; - fromProtoMsg(message: QueryEvidenceResponseProtoMsg): QueryEvidenceResponse; - toProto(message: QueryEvidenceResponse): Uint8Array; - toProtoMsg(message: QueryEvidenceResponse): QueryEvidenceResponseProtoMsg; -}; -export declare const QueryAllEvidenceRequest: { - typeUrl: string; - encode(message: QueryAllEvidenceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceRequest; - fromJSON(object: any): QueryAllEvidenceRequest; - toJSON(message: QueryAllEvidenceRequest): unknown; - fromPartial(object: Partial): QueryAllEvidenceRequest; - fromAmino(object: QueryAllEvidenceRequestAmino): QueryAllEvidenceRequest; - toAmino(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestAmino; - fromAminoMsg(object: QueryAllEvidenceRequestAminoMsg): QueryAllEvidenceRequest; - toAminoMsg(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestAminoMsg; - fromProtoMsg(message: QueryAllEvidenceRequestProtoMsg): QueryAllEvidenceRequest; - toProto(message: QueryAllEvidenceRequest): Uint8Array; - toProtoMsg(message: QueryAllEvidenceRequest): QueryAllEvidenceRequestProtoMsg; -}; -export declare const QueryAllEvidenceResponse: { - typeUrl: string; - encode(message: QueryAllEvidenceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllEvidenceResponse; - fromJSON(object: any): QueryAllEvidenceResponse; - toJSON(message: QueryAllEvidenceResponse): unknown; - fromPartial(object: Partial): QueryAllEvidenceResponse; - fromAmino(object: QueryAllEvidenceResponseAmino): QueryAllEvidenceResponse; - toAmino(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseAmino; - fromAminoMsg(object: QueryAllEvidenceResponseAminoMsg): QueryAllEvidenceResponse; - toAminoMsg(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseAminoMsg; - fromProtoMsg(message: QueryAllEvidenceResponseProtoMsg): QueryAllEvidenceResponse; - toProto(message: QueryAllEvidenceResponse): Uint8Array; - toProtoMsg(message: QueryAllEvidenceResponse): QueryAllEvidenceResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts deleted file mode 100644 index badd75e2..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - evidence(params: QueryEvidenceRequest): Promise; - allEvidence(params?: QueryAllEvidenceRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 190f6355..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryEvidenceRequest, QueryEvidenceResponse, QueryAllEvidenceRequest, QueryAllEvidenceResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Evidence queries evidence based on evidence hash. */ - evidence(request: QueryEvidenceRequest): Promise; - /** AllEvidence queries all evidence. */ - allEvidence(request?: QueryAllEvidenceRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - evidence(request: QueryEvidenceRequest): Promise; - allEvidence(request?: QueryAllEvidenceRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - evidence(request: QueryEvidenceRequest): Promise; - allEvidence(request?: QueryAllEvidenceRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts deleted file mode 100644 index d1980815..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgSubmitEvidence } from "./tx"; -export declare const AminoConverter: { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: (message: MsgSubmitEvidence) => import("./tx").MsgSubmitEvidenceAmino; - fromAmino: (object: import("./tx").MsgSubmitEvidenceAmino) => MsgSubmitEvidence; - }; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts deleted file mode 100644 index ded2acd2..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence?: (Any) | undefined; -} -export interface MsgSubmitEvidenceProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; - value: Uint8Array; -} -export type MsgSubmitEvidenceEncoded = Omit & { - evidence?: AnyProtoMsg | undefined; -}; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceAmino { - submitter?: string; - evidence?: AnyAmino; -} -export interface MsgSubmitEvidenceAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: MsgSubmitEvidenceAmino; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence?: AnySDKType | undefined; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -export interface MsgSubmitEvidenceResponseProtoMsg { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; - value: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseAmino { - /** hash defines the hash of the evidence. */ - hash?: string; -} -export interface MsgSubmitEvidenceResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitEvidenceResponse"; - value: MsgSubmitEvidenceResponseAmino; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} -export declare const MsgSubmitEvidence: { - typeUrl: string; - encode(message: MsgSubmitEvidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidence; - fromJSON(object: any): MsgSubmitEvidence; - toJSON(message: MsgSubmitEvidence): unknown; - fromPartial(object: Partial): MsgSubmitEvidence; - fromAmino(object: MsgSubmitEvidenceAmino): MsgSubmitEvidence; - toAmino(message: MsgSubmitEvidence): MsgSubmitEvidenceAmino; - fromAminoMsg(object: MsgSubmitEvidenceAminoMsg): MsgSubmitEvidence; - toAminoMsg(message: MsgSubmitEvidence): MsgSubmitEvidenceAminoMsg; - fromProtoMsg(message: MsgSubmitEvidenceProtoMsg): MsgSubmitEvidence; - toProto(message: MsgSubmitEvidence): Uint8Array; - toProtoMsg(message: MsgSubmitEvidence): MsgSubmitEvidenceProtoMsg; -}; -export declare const MsgSubmitEvidenceResponse: { - typeUrl: string; - encode(message: MsgSubmitEvidenceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitEvidenceResponse; - fromJSON(object: any): MsgSubmitEvidenceResponse; - toJSON(message: MsgSubmitEvidenceResponse): unknown; - fromPartial(object: Partial): MsgSubmitEvidenceResponse; - fromAmino(object: MsgSubmitEvidenceResponseAmino): MsgSubmitEvidenceResponse; - toAmino(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseAmino; - fromAminoMsg(object: MsgSubmitEvidenceResponseAminoMsg): MsgSubmitEvidenceResponse; - toAminoMsg(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseAminoMsg; - fromProtoMsg(message: MsgSubmitEvidenceResponseProtoMsg): MsgSubmitEvidenceResponse; - toProto(message: MsgSubmitEvidenceResponse): Uint8Array; - toProtoMsg(message: MsgSubmitEvidenceResponse): MsgSubmitEvidenceResponseProtoMsg; -}; -export declare const Evidence_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Evidence_FromAmino: (content: AnyAmino) => Any; -export declare const Evidence_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts deleted file mode 100644 index e9ed2998..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitEvidence } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: MsgSubmitEvidence; - }; - }; - toJSON: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitEvidence(value: any): { - typeUrl: string; - value: MsgSubmitEvidence; - }; - }; - fromPartial: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: MsgSubmitEvidence; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 5eeace2c..00000000 --- a/packages/api/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSubmitEvidence, MsgSubmitEvidenceResponse } from "./tx"; -/** Msg defines the evidence Msg service. */ -export interface Msg { - /** - * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or - * counterfactual signing. - */ - submitEvidence(request: MsgSubmitEvidence): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitEvidence(request: MsgSubmitEvidence): Promise; -} diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts deleted file mode 100644 index f34ebce9..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +++ /dev/null @@ -1,254 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: Timestamp; -} -export interface BasicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; - value: Uint8Array; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceAmino { - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spend_limit?: CoinAmino[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: string; -} -export interface BasicAllowanceAminoMsg { - type: "cosmos-sdk/BasicAllowance"; - value: BasicAllowanceAmino; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - spend_limit: CoinSDKType[]; - expiration?: TimestampSDKType; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Timestamp; -} -export interface PeriodicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - value: Uint8Array; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceAmino { - /** basic specifies a struct of `BasicAllowance` */ - basic?: BasicAllowanceAmino; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period?: DurationAmino; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - period_spend_limit?: CoinAmino[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend?: CoinAmino[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - period_reset?: string; -} -export interface PeriodicAllowanceAminoMsg { - type: "cosmos-sdk/PeriodicAllowance"; - value: PeriodicAllowanceAmino; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: TimestampSDKType; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -export interface AllowedMsgAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - value: Uint8Array; -} -export type AllowedMsgAllowanceEncoded = Omit & { - /** allowance can be any of basic and periodic fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceAmino { - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: AnyAmino; - /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages?: string[]; -} -export interface AllowedMsgAllowanceAminoMsg { - type: "cosmos-sdk/AllowedMsgAllowance"; - value: AllowedMsgAllowanceAmino; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -export declare const BasicAllowance: { - typeUrl: string; - encode(message: BasicAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance; - fromJSON(object: any): BasicAllowance; - toJSON(message: BasicAllowance): unknown; - fromPartial(object: Partial): BasicAllowance; - fromAmino(object: BasicAllowanceAmino): BasicAllowance; - toAmino(message: BasicAllowance): BasicAllowanceAmino; - fromAminoMsg(object: BasicAllowanceAminoMsg): BasicAllowance; - toAminoMsg(message: BasicAllowance): BasicAllowanceAminoMsg; - fromProtoMsg(message: BasicAllowanceProtoMsg): BasicAllowance; - toProto(message: BasicAllowance): Uint8Array; - toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg; -}; -export declare const PeriodicAllowance: { - typeUrl: string; - encode(message: PeriodicAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance; - fromJSON(object: any): PeriodicAllowance; - toJSON(message: PeriodicAllowance): unknown; - fromPartial(object: Partial): PeriodicAllowance; - fromAmino(object: PeriodicAllowanceAmino): PeriodicAllowance; - toAmino(message: PeriodicAllowance): PeriodicAllowanceAmino; - fromAminoMsg(object: PeriodicAllowanceAminoMsg): PeriodicAllowance; - toAminoMsg(message: PeriodicAllowance): PeriodicAllowanceAminoMsg; - fromProtoMsg(message: PeriodicAllowanceProtoMsg): PeriodicAllowance; - toProto(message: PeriodicAllowance): Uint8Array; - toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg; -}; -export declare const AllowedMsgAllowance: { - typeUrl: string; - encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance; - fromJSON(object: any): AllowedMsgAllowance; - toJSON(message: AllowedMsgAllowance): unknown; - fromPartial(object: Partial): AllowedMsgAllowance; - fromAmino(object: AllowedMsgAllowanceAmino): AllowedMsgAllowance; - toAmino(message: AllowedMsgAllowance): AllowedMsgAllowanceAmino; - fromAminoMsg(object: AllowedMsgAllowanceAminoMsg): AllowedMsgAllowance; - toAminoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceAminoMsg; - fromProtoMsg(message: AllowedMsgAllowanceProtoMsg): AllowedMsgAllowance; - toProto(message: AllowedMsgAllowance): Uint8Array; - toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg; -}; -export declare const Grant: { - typeUrl: string; - encode(message: Grant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Grant; - fromJSON(object: any): Grant; - toJSON(message: Grant): unknown; - fromPartial(object: Partial): Grant; - fromAmino(object: GrantAmino): Grant; - toAmino(message: Grant): GrantAmino; - fromAminoMsg(object: GrantAminoMsg): Grant; - toAminoMsg(message: Grant): GrantAminoMsg; - fromProtoMsg(message: GrantProtoMsg): Grant; - toProto(message: Grant): Uint8Array; - toProtoMsg(message: Grant): GrantProtoMsg; -}; -export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; -export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; -export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts deleted file mode 100644 index f99f7270..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateAmino { - allowances?: GrantAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts deleted file mode 100644 index e0b48ad7..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequest { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface QueryAllowanceRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; - value: Uint8Array; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface QueryAllowanceRequestAminoMsg { - type: "cosmos-sdk/QueryAllowanceRequest"; - value: QueryAllowanceRequestAmino; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestSDKType { - granter: string; - grantee: string; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponse { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: Grant; -} -export interface QueryAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; - value: Uint8Array; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseAmino { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: GrantAmino; -} -export interface QueryAllowanceResponseAminoMsg { - type: "cosmos-sdk/QueryAllowanceResponse"; - value: QueryAllowanceResponseAmino; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseSDKType { - allowance?: GrantSDKType; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; - value: Uint8Array; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesRequest"; - value: QueryAllowancesRequestAmino; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponse { - /** allowances are allowance's granted for grantee by granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; - value: Uint8Array; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseAmino { - /** allowances are allowance's granted for grantee by granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesResponse"; - value: QueryAllowancesResponseAmino; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesByGranterRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesByGranterRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterRequest"; - value: QueryAllowancesByGranterRequestAmino; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponse { - /** allowances that have been issued by the granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesByGranterResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseAmino { - /** allowances that have been issued by the granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesByGranterResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterResponse"; - value: QueryAllowancesByGranterResponseAmino; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryAllowanceRequest: { - typeUrl: string; - encode(message: QueryAllowanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest; - fromJSON(object: any): QueryAllowanceRequest; - toJSON(message: QueryAllowanceRequest): unknown; - fromPartial(object: Partial): QueryAllowanceRequest; - fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest; - toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino; - fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest; - toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg; - fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest; - toProto(message: QueryAllowanceRequest): Uint8Array; - toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg; -}; -export declare const QueryAllowanceResponse: { - typeUrl: string; - encode(message: QueryAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse; - fromJSON(object: any): QueryAllowanceResponse; - toJSON(message: QueryAllowanceResponse): unknown; - fromPartial(object: Partial): QueryAllowanceResponse; - fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse; - toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino; - fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse; - toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg; - fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse; - toProto(message: QueryAllowanceResponse): Uint8Array; - toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg; -}; -export declare const QueryAllowancesRequest: { - typeUrl: string; - encode(message: QueryAllowancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest; - fromJSON(object: any): QueryAllowancesRequest; - toJSON(message: QueryAllowancesRequest): unknown; - fromPartial(object: Partial): QueryAllowancesRequest; - fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest; - toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino; - fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest; - toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg; - fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest; - toProto(message: QueryAllowancesRequest): Uint8Array; - toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg; -}; -export declare const QueryAllowancesResponse: { - typeUrl: string; - encode(message: QueryAllowancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse; - fromJSON(object: any): QueryAllowancesResponse; - toJSON(message: QueryAllowancesResponse): unknown; - fromPartial(object: Partial): QueryAllowancesResponse; - fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse; - toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino; - fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse; - toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg; - fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse; - toProto(message: QueryAllowancesResponse): Uint8Array; - toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg; -}; -export declare const QueryAllowancesByGranterRequest: { - typeUrl: string; - encode(message: QueryAllowancesByGranterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; - fromJSON(object: any): QueryAllowancesByGranterRequest; - toJSON(message: QueryAllowancesByGranterRequest): unknown; - fromPartial(object: Partial): QueryAllowancesByGranterRequest; - fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest; - toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino; - fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest; - toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg; - fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest; - toProto(message: QueryAllowancesByGranterRequest): Uint8Array; - toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg; -}; -export declare const QueryAllowancesByGranterResponse: { - typeUrl: string; - encode(message: QueryAllowancesByGranterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; - fromJSON(object: any): QueryAllowancesByGranterResponse; - toJSON(message: QueryAllowancesByGranterResponse): unknown; - fromPartial(object: Partial): QueryAllowancesByGranterResponse; - fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse; - toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino; - fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse; - toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg; - fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse; - toProto(message: QueryAllowancesByGranterResponse): Uint8Array; - toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts deleted file mode 100644 index 39e515e0..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - allowance(params: QueryAllowanceRequest): Promise; - allowances(params: QueryAllowancesRequest): Promise; - allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index d42c5966..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Allowance returns fee granted to the grantee by the granter. */ - allowance(request: QueryAllowanceRequest): Promise; - /** Allowances returns all the grants for address. */ - allowances(request: QueryAllowancesRequest): Promise; - /** - * AllowancesByGranter returns all the grants given by an address - * - * Since: cosmos-sdk 0.46 - */ - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts deleted file mode 100644 index 8767b85a..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export declare const AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: MsgGrantAllowance) => import("./tx").MsgGrantAllowanceAmino; - fromAmino: (object: import("./tx").MsgGrantAllowanceAmino) => MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: MsgRevokeAllowance) => import("./tx").MsgRevokeAllowanceAmino; - fromAmino: (object: import("./tx").MsgRevokeAllowanceAmino) => MsgRevokeAllowance; - }; -}; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts deleted file mode 100644 index 2fc6e422..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: (BasicAllowance & PeriodicAllowance & AllowedMsgAllowance & Any) | undefined; -} -export interface MsgGrantAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; - value: Uint8Array; -} -export type MsgGrantAllowanceEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface MsgGrantAllowanceAminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: MsgGrantAllowanceAmino; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse { -} -export interface MsgGrantAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - value: Uint8Array; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseAmino { -} -export interface MsgGrantAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgGrantAllowanceResponse"; - value: MsgGrantAllowanceResponseAmino; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType { -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - value: Uint8Array; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface MsgRevokeAllowanceAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: MsgRevokeAllowanceAmino; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse { -} -export interface MsgRevokeAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - value: Uint8Array; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseAmino { -} -export interface MsgRevokeAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowanceResponse"; - value: MsgRevokeAllowanceResponseAmino; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType { -} -export declare const MsgGrantAllowance: { - typeUrl: string; - encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; - fromJSON(object: any): MsgGrantAllowance; - toJSON(message: MsgGrantAllowance): unknown; - fromPartial(object: Partial): MsgGrantAllowance; - fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance; - toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino; - fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance; - toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg; - fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance; - toProto(message: MsgGrantAllowance): Uint8Array; - toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg; -}; -export declare const MsgGrantAllowanceResponse: { - typeUrl: string; - encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; - fromJSON(_: any): MsgGrantAllowanceResponse; - toJSON(_: MsgGrantAllowanceResponse): unknown; - fromPartial(_: Partial): MsgGrantAllowanceResponse; - fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse; - toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino; - fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse; - toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg; - fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse; - toProto(message: MsgGrantAllowanceResponse): Uint8Array; - toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg; -}; -export declare const MsgRevokeAllowance: { - typeUrl: string; - encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; - fromJSON(object: any): MsgRevokeAllowance; - toJSON(message: MsgRevokeAllowance): unknown; - fromPartial(object: Partial): MsgRevokeAllowance; - fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance; - toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino; - fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance; - toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg; - fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance; - toProto(message: MsgRevokeAllowance): Uint8Array; - toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg; -}; -export declare const MsgRevokeAllowanceResponse: { - typeUrl: string; - encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; - fromJSON(_: any): MsgRevokeAllowanceResponse; - toJSON(_: MsgRevokeAllowanceResponse): unknown; - fromPartial(_: Partial): MsgRevokeAllowanceResponse; - fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse; - toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino; - fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse; - toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg; - fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse; - toProto(message: MsgRevokeAllowanceResponse): Uint8Array; - toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg; -}; -export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; -export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; -export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts deleted file mode 100644 index 18549a50..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; - toJSON: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: unknown; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - grantAllowance(value: any): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: any): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 9ec43a55..00000000 --- a/packages/api/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; -/** Msg defines the feegrant msg service. */ -export interface Msg { - /** - * GrantAllowance grants fee allowance to the grantee on the granter's - * account with the provided expiration time. - */ - grantAllowance(request: MsgGrantAllowance): Promise; - /** - * RevokeAllowance revokes any fee allowance of granter's account that - * has been granted to the grantee. - */ - revokeAllowance(request: MsgRevokeAllowance): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - grantAllowance(request: MsgGrantAllowance): Promise; - revokeAllowance(request: MsgRevokeAllowance): Promise; -} diff --git a/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts deleted file mode 100644 index 857ef184..00000000 --- a/packages/api/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.genutil.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateAmino { - /** gen_txs defines the genesis transactions. */ - gen_txs: string[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts b/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts deleted file mode 100644 index 498c5cad..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/genesis.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams?: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams?: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams?: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/v1/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params?: DepositParamsSDKType; - voting_params?: VotingParamsSDKType; - tally_params?: TallyParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts b/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts deleted file mode 100644 index af7dbbe2..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/gov.d.ts +++ /dev/null @@ -1,463 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; - value: Uint8Array; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/v1/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/v1/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: bigint; - messages: Any[]; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult?: TallyResult; - submitTime?: Timestamp; - depositEndTime?: Timestamp; - totalDeposit: Coin[]; - votingStartTime?: Timestamp; - votingEndTime?: Timestamp; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - id?: string; - messages?: AnyAmino[]; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/v1/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: bigint; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result?: TallyResultSDKType; - submit_time?: TimestampSDKType; - deposit_end_time?: TimestampSDKType; - total_deposit: CoinSDKType[]; - voting_start_time?: TimestampSDKType; - voting_end_time?: TimestampSDKType; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes_count?: string; - abstain_count?: string; - no_count?: string; - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/v1/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id?: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/v1/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod?: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/v1/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period?: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod?: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/v1/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period?: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/v1/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} -export declare const WeightedVoteOption: { - typeUrl: string; - encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; - fromJSON(object: any): WeightedVoteOption; - toJSON(message: WeightedVoteOption): unknown; - fromPartial(object: Partial): WeightedVoteOption; - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; - toProto(message: WeightedVoteOption): Uint8Array; - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; -}; -export declare const Deposit: { - typeUrl: string; - encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Deposit; - fromJSON(object: any): Deposit; - toJSON(message: Deposit): unknown; - fromPartial(object: Partial): Deposit; - fromAmino(object: DepositAmino): Deposit; - toAmino(message: Deposit): DepositAmino; - fromAminoMsg(object: DepositAminoMsg): Deposit; - toAminoMsg(message: Deposit): DepositAminoMsg; - fromProtoMsg(message: DepositProtoMsg): Deposit; - toProto(message: Deposit): Uint8Array; - toProtoMsg(message: Deposit): DepositProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromJSON(object: any): Proposal; - toJSON(message: Proposal): unknown; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromJSON(object: any): TallyResult; - toJSON(message: TallyResult): unknown; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromJSON(object: any): Vote; - toJSON(message: Vote): unknown; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DepositParams: { - typeUrl: string; - encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; - fromJSON(object: any): DepositParams; - toJSON(message: DepositParams): unknown; - fromPartial(object: Partial): DepositParams; - fromAmino(object: DepositParamsAmino): DepositParams; - toAmino(message: DepositParams): DepositParamsAmino; - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; - toAminoMsg(message: DepositParams): DepositParamsAminoMsg; - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; - toProto(message: DepositParams): Uint8Array; - toProtoMsg(message: DepositParams): DepositParamsProtoMsg; -}; -export declare const VotingParams: { - typeUrl: string; - encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; - fromJSON(object: any): VotingParams; - toJSON(message: VotingParams): unknown; - fromPartial(object: Partial): VotingParams; - fromAmino(object: VotingParamsAmino): VotingParams; - toAmino(message: VotingParams): VotingParamsAmino; - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; - toAminoMsg(message: VotingParams): VotingParamsAminoMsg; - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; - toProto(message: VotingParams): Uint8Array; - toProtoMsg(message: VotingParams): VotingParamsProtoMsg; -}; -export declare const TallyParams: { - typeUrl: string; - encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; - fromJSON(object: any): TallyParams; - toJSON(message: TallyParams): unknown; - fromPartial(object: Partial): TallyParams; - fromAmino(object: TallyParamsAmino): TallyParams; - toAmino(message: TallyParams): TallyParamsAmino; - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; - toAminoMsg(message: TallyParams): TallyParamsAminoMsg; - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; - toProto(message: TallyParams): Uint8Array; - toProtoMsg(message: TallyParams): TallyParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/query.d.ts b/packages/api/types/codegen/cosmos/gov/v1/query.d.ts deleted file mode 100644 index d367ba31..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/query.d.ts +++ /dev/null @@ -1,664 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote?: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams?: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams?: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams?: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params?: VotingParamsSDKType; - deposit_params?: DepositParamsSDKType; - tally_params?: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit?: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit?: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally?: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally?: TallyResultSDKType; -} -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromJSON(object: any): QueryProposalRequest; - toJSON(message: QueryProposalRequest): unknown; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromJSON(object: any): QueryProposalResponse; - toJSON(message: QueryProposalResponse): unknown; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsRequest: { - typeUrl: string; - encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; - fromJSON(object: any): QueryProposalsRequest; - toJSON(message: QueryProposalsRequest): unknown; - fromPartial(object: Partial): QueryProposalsRequest; - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; - toProto(message: QueryProposalsRequest): Uint8Array; - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; -}; -export declare const QueryProposalsResponse: { - typeUrl: string; - encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; - fromJSON(object: any): QueryProposalsResponse; - toJSON(message: QueryProposalsResponse): unknown; - fromPartial(object: Partial): QueryProposalsResponse; - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; - toProto(message: QueryProposalsResponse): Uint8Array; - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; -}; -export declare const QueryVoteRequest: { - typeUrl: string; - encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; - fromJSON(object: any): QueryVoteRequest; - toJSON(message: QueryVoteRequest): unknown; - fromPartial(object: Partial): QueryVoteRequest; - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; - toProto(message: QueryVoteRequest): Uint8Array; - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; -}; -export declare const QueryVoteResponse: { - typeUrl: string; - encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; - fromJSON(object: any): QueryVoteResponse; - toJSON(message: QueryVoteResponse): unknown; - fromPartial(object: Partial): QueryVoteResponse; - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; - toProto(message: QueryVoteResponse): Uint8Array; - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; -}; -export declare const QueryVotesRequest: { - typeUrl: string; - encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; - fromJSON(object: any): QueryVotesRequest; - toJSON(message: QueryVotesRequest): unknown; - fromPartial(object: Partial): QueryVotesRequest; - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; - toProto(message: QueryVotesRequest): Uint8Array; - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; -}; -export declare const QueryVotesResponse: { - typeUrl: string; - encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; - fromJSON(object: any): QueryVotesResponse; - toJSON(message: QueryVotesResponse): unknown; - fromPartial(object: Partial): QueryVotesResponse; - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; - toProto(message: QueryVotesResponse): Uint8Array; - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(object: any): QueryParamsRequest; - toJSON(message: QueryParamsRequest): unknown; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDepositRequest: { - typeUrl: string; - encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; - fromJSON(object: any): QueryDepositRequest; - toJSON(message: QueryDepositRequest): unknown; - fromPartial(object: Partial): QueryDepositRequest; - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; - toProto(message: QueryDepositRequest): Uint8Array; - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; -}; -export declare const QueryDepositResponse: { - typeUrl: string; - encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; - fromJSON(object: any): QueryDepositResponse; - toJSON(message: QueryDepositResponse): unknown; - fromPartial(object: Partial): QueryDepositResponse; - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; - toProto(message: QueryDepositResponse): Uint8Array; - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; -}; -export declare const QueryDepositsRequest: { - typeUrl: string; - encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; - fromJSON(object: any): QueryDepositsRequest; - toJSON(message: QueryDepositsRequest): unknown; - fromPartial(object: Partial): QueryDepositsRequest; - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; - toProto(message: QueryDepositsRequest): Uint8Array; - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; -}; -export declare const QueryDepositsResponse: { - typeUrl: string; - encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; - fromJSON(object: any): QueryDepositsResponse; - toJSON(message: QueryDepositsResponse): unknown; - fromPartial(object: Partial): QueryDepositsResponse; - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; - toProto(message: QueryDepositsResponse): Uint8Array; - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromJSON(object: any): QueryTallyResultRequest; - toJSON(message: QueryTallyResultRequest): unknown; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromJSON(object: any): QueryTallyResultResponse; - toJSON(message: QueryTallyResultResponse): unknown; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts deleted file mode 100644 index e7e28345..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - proposal(params: QueryProposalRequest): Promise; - proposals(params: QueryProposalsRequest): Promise; - vote(params: QueryVoteRequest): Promise; - votes(params: QueryVotesRequest): Promise; - params(params: QueryParamsRequest): Promise; - deposit(params: QueryDepositRequest): Promise; - deposits(params: QueryDepositsRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts deleted file mode 100644 index 8152da58..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/gov/v1/tx.amino.d.ts deleted file mode 100644 index 0e354dc4..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/tx.amino.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: MsgExecLegacyContent) => import("./tx").MsgExecLegacyContentAmino; - fromAmino: (object: import("./tx").MsgExecLegacyContentAmino) => MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; - fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; - }; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts b/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts deleted file mode 100644 index 5567847f..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/tx.d.ts +++ /dev/null @@ -1,409 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType } from "./gov"; -import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - messages?: AnyAmino[]; - initial_deposit?: CoinAmino[]; - proposer?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content?: (TextProposal & Any) | undefined; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; - value: Uint8Array; -} -export type MsgExecLegacyContentEncoded = Omit & { - /** content is the proposal's content. */ content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentAmino { - /** content is the proposal's content. */ - content?: AnyAmino; - /** authority must be the gov module address. */ - authority?: string; -} -export interface MsgExecLegacyContentAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: MsgExecLegacyContentAmino; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse { -} -export interface MsgExecLegacyContentResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; - value: Uint8Array; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseAmino { -} -export interface MsgExecLegacyContentResponseAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; - value: MsgExecLegacyContentResponseAmino; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType { -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter?: string; - option?: VoteOption; - metadata?: string; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; - value: Uint8Array; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - metadata?: string; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse { -} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseAmino { -} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType { -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse { -} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino { -} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/v1/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType { -} -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromJSON(object: any): MsgSubmitProposal; - toJSON(message: MsgSubmitProposal): unknown; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromJSON(object: any): MsgSubmitProposalResponse; - toJSON(message: MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgExecLegacyContent: { - typeUrl: string; - encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent; - fromJSON(object: any): MsgExecLegacyContent; - toJSON(message: MsgExecLegacyContent): unknown; - fromPartial(object: Partial): MsgExecLegacyContent; - fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent; - toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino; - fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent; - toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg; - fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent; - toProto(message: MsgExecLegacyContent): Uint8Array; - toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg; -}; -export declare const MsgExecLegacyContentResponse: { - typeUrl: string; - encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse; - fromJSON(_: any): MsgExecLegacyContentResponse; - toJSON(_: MsgExecLegacyContentResponse): unknown; - fromPartial(_: Partial): MsgExecLegacyContentResponse; - fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse; - toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino; - fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse; - toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg; - fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse; - toProto(message: MsgExecLegacyContentResponse): Uint8Array; - toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromJSON(object: any): MsgVote; - toJSON(message: MsgVote): unknown; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromJSON(_: any): MsgVoteResponse; - toJSON(_: MsgVoteResponse): unknown; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgVoteWeighted: { - typeUrl: string; - encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; - fromJSON(object: any): MsgVoteWeighted; - toJSON(message: MsgVoteWeighted): unknown; - fromPartial(object: Partial): MsgVoteWeighted; - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; - toProto(message: MsgVoteWeighted): Uint8Array; - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; -}; -export declare const MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; - fromJSON(_: any): MsgVoteWeightedResponse; - toJSON(_: MsgVoteWeightedResponse): unknown; - fromPartial(_: Partial): MsgVoteWeightedResponse; - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; - toProto(message: MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; -}; -export declare const MsgDeposit: { - typeUrl: string; - encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; - fromJSON(object: any): MsgDeposit; - toJSON(message: MsgDeposit): unknown; - fromPartial(object: Partial): MsgDeposit; - fromAmino(object: MsgDepositAmino): MsgDeposit; - toAmino(message: MsgDeposit): MsgDepositAmino; - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; - toProto(message: MsgDeposit): Uint8Array; - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; -}; -export declare const MsgDepositResponse: { - typeUrl: string; - encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; - fromJSON(_: any): MsgDepositResponse; - toJSON(_: MsgDepositResponse): unknown; - fromPartial(_: Partial): MsgDepositResponse; - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; - toProto(message: MsgDepositResponse): Uint8Array; - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/gov/v1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/gov/v1/tx.registry.d.ts deleted file mode 100644 index 973bdb5c..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/tx.registry.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; - toJSON: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: unknown; - }; - vote(value: MsgVote): { - typeUrl: string; - value: unknown; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: unknown; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitProposal(value: any): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: any): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: any): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: any): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: any): { - typeUrl: string; - value: MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 4624c3f7..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the gov Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** - * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal - * to execute a legacy content-based proposal. - */ - execLegacyContent(request: MsgExecLegacyContent): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitProposal(request: MsgSubmitProposal): Promise; - execLegacyContent(request: MsgExecLegacyContent): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts deleted file mode 100644 index c27c9acc..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts deleted file mode 100644 index 68c5f30a..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/gov.d.ts +++ /dev/null @@ -1,538 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; - value: Uint8Array; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposal { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -export interface TextProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TextProposal"; - value: Uint8Array; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalAmino { - title?: string; - description?: string; -} -export interface TextProposalAminoMsg { - type: "cosmos-sdk/TextProposal"; - value: TextProposalAmino; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalSDKType { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - proposalId: bigint; - content?: (TextProposal & Any) | undefined; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult: TallyResult; - submitTime: Timestamp; - depositEndTime: Timestamp; - totalDeposit: Coin[]; - votingStartTime: Timestamp; - votingEndTime: Timestamp; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Proposal"; - value: Uint8Array; -} -export type ProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - proposal_id?: string; - content?: AnyAmino; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - proposal_id: bigint; - content?: TextProposalSDKType | AnySDKType | undefined; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: TimestampSDKType; - deposit_end_time: TimestampSDKType; - total_deposit: CoinSDKType[]; - voting_start_time: TimestampSDKType; - voting_end_time: TimestampSDKType; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yes: string; - abstain: string; - no: string; - noWithVeto: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOption[]; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter?: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option?: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options?: WeightedVoteOptionAmino[]; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - /** @deprecated */ - option: VoteOption; - options: WeightedVoteOptionSDKType[]; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: Uint8Array; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: Uint8Array; - threshold: Uint8Array; - veto_threshold: Uint8Array; -} -export declare const WeightedVoteOption: { - typeUrl: string; - encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; - fromJSON(object: any): WeightedVoteOption; - toJSON(message: WeightedVoteOption): unknown; - fromPartial(object: Partial): WeightedVoteOption; - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; - toProto(message: WeightedVoteOption): Uint8Array; - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; -}; -export declare const TextProposal: { - typeUrl: string; - encode(message: TextProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TextProposal; - fromJSON(object: any): TextProposal; - toJSON(message: TextProposal): unknown; - fromPartial(object: Partial): TextProposal; - fromAmino(object: TextProposalAmino): TextProposal; - toAmino(message: TextProposal): TextProposalAmino; - fromAminoMsg(object: TextProposalAminoMsg): TextProposal; - toAminoMsg(message: TextProposal): TextProposalAminoMsg; - fromProtoMsg(message: TextProposalProtoMsg): TextProposal; - toProto(message: TextProposal): Uint8Array; - toProtoMsg(message: TextProposal): TextProposalProtoMsg; -}; -export declare const Deposit: { - typeUrl: string; - encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Deposit; - fromJSON(object: any): Deposit; - toJSON(message: Deposit): unknown; - fromPartial(object: Partial): Deposit; - fromAmino(object: DepositAmino): Deposit; - toAmino(message: Deposit): DepositAmino; - fromAminoMsg(object: DepositAminoMsg): Deposit; - toAminoMsg(message: Deposit): DepositAminoMsg; - fromProtoMsg(message: DepositProtoMsg): Deposit; - toProto(message: Deposit): Uint8Array; - toProtoMsg(message: Deposit): DepositProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromJSON(object: any): Proposal; - toJSON(message: Proposal): unknown; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromJSON(object: any): TallyResult; - toJSON(message: TallyResult): unknown; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromJSON(object: any): Vote; - toJSON(message: Vote): unknown; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DepositParams: { - typeUrl: string; - encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; - fromJSON(object: any): DepositParams; - toJSON(message: DepositParams): unknown; - fromPartial(object: Partial): DepositParams; - fromAmino(object: DepositParamsAmino): DepositParams; - toAmino(message: DepositParams): DepositParamsAmino; - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; - toAminoMsg(message: DepositParams): DepositParamsAminoMsg; - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; - toProto(message: DepositParams): Uint8Array; - toProtoMsg(message: DepositParams): DepositParamsProtoMsg; -}; -export declare const VotingParams: { - typeUrl: string; - encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; - fromJSON(object: any): VotingParams; - toJSON(message: VotingParams): unknown; - fromPartial(object: Partial): VotingParams; - fromAmino(object: VotingParamsAmino): VotingParams; - toAmino(message: VotingParams): VotingParamsAmino; - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; - toAminoMsg(message: VotingParams): VotingParamsAminoMsg; - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; - toProto(message: VotingParams): Uint8Array; - toProtoMsg(message: VotingParams): VotingParamsProtoMsg; -}; -export declare const TallyParams: { - typeUrl: string; - encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; - fromJSON(object: any): TallyParams; - toJSON(message: TallyParams): unknown; - fromPartial(object: Partial): TallyParams; - fromAmino(object: TallyParamsAmino): TallyParams; - toAmino(message: TallyParams): TallyParamsAmino; - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; - toAminoMsg(message: TallyParams): TallyParamsAminoMsg; - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; - toProto(message: TallyParams): Uint8Array; - toProtoMsg(message: TallyParams): TallyParamsProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts deleted file mode 100644 index 28336b56..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/query.d.ts +++ /dev/null @@ -1,664 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromJSON(object: any): QueryProposalRequest; - toJSON(message: QueryProposalRequest): unknown; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromJSON(object: any): QueryProposalResponse; - toJSON(message: QueryProposalResponse): unknown; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsRequest: { - typeUrl: string; - encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; - fromJSON(object: any): QueryProposalsRequest; - toJSON(message: QueryProposalsRequest): unknown; - fromPartial(object: Partial): QueryProposalsRequest; - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; - toProto(message: QueryProposalsRequest): Uint8Array; - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; -}; -export declare const QueryProposalsResponse: { - typeUrl: string; - encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; - fromJSON(object: any): QueryProposalsResponse; - toJSON(message: QueryProposalsResponse): unknown; - fromPartial(object: Partial): QueryProposalsResponse; - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; - toProto(message: QueryProposalsResponse): Uint8Array; - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; -}; -export declare const QueryVoteRequest: { - typeUrl: string; - encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; - fromJSON(object: any): QueryVoteRequest; - toJSON(message: QueryVoteRequest): unknown; - fromPartial(object: Partial): QueryVoteRequest; - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; - toProto(message: QueryVoteRequest): Uint8Array; - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; -}; -export declare const QueryVoteResponse: { - typeUrl: string; - encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; - fromJSON(object: any): QueryVoteResponse; - toJSON(message: QueryVoteResponse): unknown; - fromPartial(object: Partial): QueryVoteResponse; - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; - toProto(message: QueryVoteResponse): Uint8Array; - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; -}; -export declare const QueryVotesRequest: { - typeUrl: string; - encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; - fromJSON(object: any): QueryVotesRequest; - toJSON(message: QueryVotesRequest): unknown; - fromPartial(object: Partial): QueryVotesRequest; - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; - toProto(message: QueryVotesRequest): Uint8Array; - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; -}; -export declare const QueryVotesResponse: { - typeUrl: string; - encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; - fromJSON(object: any): QueryVotesResponse; - toJSON(message: QueryVotesResponse): unknown; - fromPartial(object: Partial): QueryVotesResponse; - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; - toProto(message: QueryVotesResponse): Uint8Array; - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(object: any): QueryParamsRequest; - toJSON(message: QueryParamsRequest): unknown; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDepositRequest: { - typeUrl: string; - encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; - fromJSON(object: any): QueryDepositRequest; - toJSON(message: QueryDepositRequest): unknown; - fromPartial(object: Partial): QueryDepositRequest; - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; - toProto(message: QueryDepositRequest): Uint8Array; - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; -}; -export declare const QueryDepositResponse: { - typeUrl: string; - encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; - fromJSON(object: any): QueryDepositResponse; - toJSON(message: QueryDepositResponse): unknown; - fromPartial(object: Partial): QueryDepositResponse; - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; - toProto(message: QueryDepositResponse): Uint8Array; - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; -}; -export declare const QueryDepositsRequest: { - typeUrl: string; - encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; - fromJSON(object: any): QueryDepositsRequest; - toJSON(message: QueryDepositsRequest): unknown; - fromPartial(object: Partial): QueryDepositsRequest; - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; - toProto(message: QueryDepositsRequest): Uint8Array; - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; -}; -export declare const QueryDepositsResponse: { - typeUrl: string; - encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; - fromJSON(object: any): QueryDepositsResponse; - toJSON(message: QueryDepositsResponse): unknown; - fromPartial(object: Partial): QueryDepositsResponse; - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; - toProto(message: QueryDepositsResponse): Uint8Array; - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromJSON(object: any): QueryTallyResultRequest; - toJSON(message: QueryTallyResultRequest): unknown; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromJSON(object: any): QueryTallyResultResponse; - toJSON(message: QueryTallyResultResponse): unknown; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts deleted file mode 100644 index e7e28345..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - proposal(params: QueryProposalRequest): Promise; - proposals(params: QueryProposalsRequest): Promise; - vote(params: QueryVoteRequest): Promise; - votes(params: QueryVotesRequest): Promise; - params(params: QueryParamsRequest): Promise; - deposit(params: QueryDepositRequest): Promise; - deposits(params: QueryDepositsRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 8152da58..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts deleted file mode 100644 index c27154bf..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const AminoConverter: { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; - fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; - }; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts deleted file mode 100644 index b590591c..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.d.ts +++ /dev/null @@ -1,338 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - content?: (TextProposal & Any) | undefined; - initialDeposit: Coin[]; - proposer: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; - value: Uint8Array; -} -export type MsgSubmitProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - content?: AnyAmino; - initial_deposit?: CoinAmino[]; - proposer?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - initial_deposit: CoinSDKType[]; - proposer: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id?: string; - voter?: string; - option?: VoteOption; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; - value: Uint8Array; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponse { -} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseAmino { -} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseSDKType { -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse { -} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino { -} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType { -} -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromJSON(object: any): MsgSubmitProposal; - toJSON(message: MsgSubmitProposal): unknown; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromJSON(object: any): MsgSubmitProposalResponse; - toJSON(message: MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromJSON(object: any): MsgVote; - toJSON(message: MsgVote): unknown; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromJSON(_: any): MsgVoteResponse; - toJSON(_: MsgVoteResponse): unknown; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgVoteWeighted: { - typeUrl: string; - encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; - fromJSON(object: any): MsgVoteWeighted; - toJSON(message: MsgVoteWeighted): unknown; - fromPartial(object: Partial): MsgVoteWeighted; - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; - toProto(message: MsgVoteWeighted): Uint8Array; - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; -}; -export declare const MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; - fromJSON(_: any): MsgVoteWeightedResponse; - toJSON(_: MsgVoteWeightedResponse): unknown; - fromPartial(_: Partial): MsgVoteWeightedResponse; - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; - toProto(message: MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; -}; -export declare const MsgDeposit: { - typeUrl: string; - encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; - fromJSON(object: any): MsgDeposit; - toJSON(message: MsgDeposit): unknown; - fromPartial(object: Partial): MsgDeposit; - fromAmino(object: MsgDepositAmino): MsgDeposit; - toAmino(message: MsgDeposit): MsgDepositAmino; - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; - toProto(message: MsgDeposit): Uint8Array; - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; -}; -export declare const MsgDepositResponse: { - typeUrl: string; - encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; - fromJSON(_: any): MsgDepositResponse; - toJSON(_: MsgDepositResponse): unknown; - fromPartial(_: Partial): MsgDepositResponse; - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; - toProto(message: MsgDepositResponse): Uint8Array; - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts deleted file mode 100644 index 51cfa91f..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; - toJSON: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - vote(value: MsgVote): { - typeUrl: string; - value: unknown; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: unknown; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - submitProposal(value: any): { - typeUrl: string; - value: MsgSubmitProposal; - }; - vote(value: any): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: any): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: any): { - typeUrl: string; - value: MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 0fc403bc..00000000 --- a/packages/api/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** - * VoteWeighted defines a method to add a weighted vote on a specific proposal. - * - * Since: cosmos-sdk 0.43 - */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitProposal(request: MsgSubmitProposal): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} diff --git a/packages/api/types/codegen/cosmos/group/v1/events.d.ts b/packages/api/types/codegen/cosmos/group/v1/events.d.ts deleted file mode 100644 index d142db91..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/events.d.ts +++ /dev/null @@ -1,350 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroup"; - value: Uint8Array; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventCreateGroupAminoMsg { - type: "cosmos-sdk/EventCreateGroup"; - value: EventCreateGroupAmino; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: bigint; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventUpdateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroup"; - value: Uint8Array; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventUpdateGroupAminoMsg { - type: "cosmos-sdk/EventUpdateGroup"; - value: EventUpdateGroupAmino; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: bigint; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; - value: Uint8Array; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventCreateGroupPolicy"; - value: EventCreateGroupPolicyAmino; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; - value: Uint8Array; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventUpdateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventUpdateGroupPolicy"; - value: EventUpdateGroupPolicyAmino; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventSubmitProposal"; - value: Uint8Array; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventSubmitProposalAminoMsg { - type: "cosmos-sdk/EventSubmitProposal"; - value: EventSubmitProposalAmino; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: bigint; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; - value: Uint8Array; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventWithdrawProposalAminoMsg { - type: "cosmos-sdk/EventWithdrawProposal"; - value: EventWithdrawProposalAmino; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: bigint; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventVoteProtoMsg { - typeUrl: "/cosmos.group.v1.EventVote"; - value: Uint8Array; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventVoteAminoMsg { - type: "cosmos-sdk/EventVote"; - value: EventVoteAmino; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: bigint; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs: string; -} -export interface EventExecProtoMsg { - typeUrl: "/cosmos.group.v1.EventExec"; - value: Uint8Array; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; - /** result is the proposal execution result. */ - result?: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs?: string; -} -export interface EventExecAminoMsg { - type: "cosmos-sdk/EventExec"; - value: EventExecAmino; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: bigint; - result: ProposalExecutorResult; - logs: string; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventLeaveGroup"; - value: Uint8Array; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** address is the account address of the group member. */ - address?: string; -} -export interface EventLeaveGroupAminoMsg { - type: "cosmos-sdk/EventLeaveGroup"; - value: EventLeaveGroupAmino; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: bigint; - address: string; -} -export declare const EventCreateGroup: { - typeUrl: string; - encode(message: EventCreateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup; - fromJSON(object: any): EventCreateGroup; - toJSON(message: EventCreateGroup): unknown; - fromPartial(object: Partial): EventCreateGroup; - fromAmino(object: EventCreateGroupAmino): EventCreateGroup; - toAmino(message: EventCreateGroup): EventCreateGroupAmino; - fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup; - toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg; - fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup; - toProto(message: EventCreateGroup): Uint8Array; - toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg; -}; -export declare const EventUpdateGroup: { - typeUrl: string; - encode(message: EventUpdateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup; - fromJSON(object: any): EventUpdateGroup; - toJSON(message: EventUpdateGroup): unknown; - fromPartial(object: Partial): EventUpdateGroup; - fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup; - toAmino(message: EventUpdateGroup): EventUpdateGroupAmino; - fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup; - toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg; - fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup; - toProto(message: EventUpdateGroup): Uint8Array; - toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg; -}; -export declare const EventCreateGroupPolicy: { - typeUrl: string; - encode(message: EventCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy; - fromJSON(object: any): EventCreateGroupPolicy; - toJSON(message: EventCreateGroupPolicy): unknown; - fromPartial(object: Partial): EventCreateGroupPolicy; - fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy; - toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino; - fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy; - toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg; - fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy; - toProto(message: EventCreateGroupPolicy): Uint8Array; - toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg; -}; -export declare const EventUpdateGroupPolicy: { - typeUrl: string; - encode(message: EventUpdateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy; - fromJSON(object: any): EventUpdateGroupPolicy; - toJSON(message: EventUpdateGroupPolicy): unknown; - fromPartial(object: Partial): EventUpdateGroupPolicy; - fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy; - toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino; - fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy; - toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg; - fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy; - toProto(message: EventUpdateGroupPolicy): Uint8Array; - toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg; -}; -export declare const EventSubmitProposal: { - typeUrl: string; - encode(message: EventSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal; - fromJSON(object: any): EventSubmitProposal; - toJSON(message: EventSubmitProposal): unknown; - fromPartial(object: Partial): EventSubmitProposal; - fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal; - toAmino(message: EventSubmitProposal): EventSubmitProposalAmino; - fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal; - toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg; - fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal; - toProto(message: EventSubmitProposal): Uint8Array; - toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg; -}; -export declare const EventWithdrawProposal: { - typeUrl: string; - encode(message: EventWithdrawProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal; - fromJSON(object: any): EventWithdrawProposal; - toJSON(message: EventWithdrawProposal): unknown; - fromPartial(object: Partial): EventWithdrawProposal; - fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal; - toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino; - fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal; - toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg; - fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal; - toProto(message: EventWithdrawProposal): Uint8Array; - toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg; -}; -export declare const EventVote: { - typeUrl: string; - encode(message: EventVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventVote; - fromJSON(object: any): EventVote; - toJSON(message: EventVote): unknown; - fromPartial(object: Partial): EventVote; - fromAmino(object: EventVoteAmino): EventVote; - toAmino(message: EventVote): EventVoteAmino; - fromAminoMsg(object: EventVoteAminoMsg): EventVote; - toAminoMsg(message: EventVote): EventVoteAminoMsg; - fromProtoMsg(message: EventVoteProtoMsg): EventVote; - toProto(message: EventVote): Uint8Array; - toProtoMsg(message: EventVote): EventVoteProtoMsg; -}; -export declare const EventExec: { - typeUrl: string; - encode(message: EventExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventExec; - fromJSON(object: any): EventExec; - toJSON(message: EventExec): unknown; - fromPartial(object: Partial): EventExec; - fromAmino(object: EventExecAmino): EventExec; - toAmino(message: EventExec): EventExecAmino; - fromAminoMsg(object: EventExecAminoMsg): EventExec; - toAminoMsg(message: EventExec): EventExecAminoMsg; - fromProtoMsg(message: EventExecProtoMsg): EventExec; - toProto(message: EventExec): Uint8Array; - toProtoMsg(message: EventExec): EventExecProtoMsg; -}; -export declare const EventLeaveGroup: { - typeUrl: string; - encode(message: EventLeaveGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup; - fromJSON(object: any): EventLeaveGroup; - toJSON(message: EventLeaveGroup): unknown; - fromPartial(object: Partial): EventLeaveGroup; - fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup; - toAmino(message: EventLeaveGroup): EventLeaveGroupAmino; - fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup; - toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg; - fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup; - toProto(message: EventLeaveGroup): Uint8Array; - toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts b/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts deleted file mode 100644 index 606ec427..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/genesis.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: bigint; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: bigint; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: bigint; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.group.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateAmino { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - group_seq?: string; - /** groups is the list of groups info. */ - groups?: GroupInfoAmino[]; - /** group_members is the list of groups members. */ - group_members?: GroupMemberAmino[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - group_policy_seq?: string; - /** group_policies is the list of group policies info. */ - group_policies?: GroupPolicyInfoAmino[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposal_seq?: string; - /** proposals is the list of proposals. */ - proposals?: ProposalAmino[]; - /** votes is the list of votes. */ - votes?: VoteAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: bigint; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: bigint; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: bigint; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/query.d.ts b/packages/api/types/codegen/cosmos/group/v1/query.d.ts deleted file mode 100644 index f22cb3e8..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/query.d.ts +++ /dev/null @@ -1,1050 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface QueryGroupInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; - value: Uint8Array; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface QueryGroupInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupInfoRequest"; - value: QueryGroupInfoRequestAmino; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestSDKType { - group_id: bigint; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponse { - /** info is the GroupInfo for the group. */ - info?: GroupInfo; -} -export interface QueryGroupInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; - value: Uint8Array; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseAmino { - /** info is the GroupInfo for the group. */ - info?: GroupInfoAmino; -} -export interface QueryGroupInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupInfoResponse"; - value: QueryGroupInfoResponseAmino; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseSDKType { - info?: GroupInfoSDKType; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequest { - /** address is the account address of the group policy. */ - address: string; -} -export interface QueryGroupPolicyInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface QueryGroupPolicyInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; - value: QueryGroupPolicyInfoRequestAmino; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestSDKType { - address: string; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponse { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfo; -} -export interface QueryGroupPolicyInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseAmino { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfoAmino; -} -export interface QueryGroupPolicyInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse"; - value: QueryGroupPolicyInfoResponseAmino; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseSDKType { - info?: GroupPolicyInfoSDKType; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupMembersRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; - value: Uint8Array; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupMembersRequestAminoMsg { - type: "cosmos-sdk/QueryGroupMembersRequest"; - value: QueryGroupMembersRequestAmino; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponse { - /** members are the members of the group with given group_id. */ - members: GroupMember[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; - value: Uint8Array; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseAmino { - /** members are the members of the group with given group_id. */ - members?: GroupMemberAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupMembersResponseAminoMsg { - type: "cosmos-sdk/QueryGroupMembersResponse"; - value: QueryGroupMembersResponseAmino; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseSDKType { - members: GroupMemberSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequest { - /** admin is the account address of a group's admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestAmino { - /** admin is the account address of a group's admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminRequest"; - value: QueryGroupsByAdminRequestAmino; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponse { - /** groups are the groups info with the provided admin. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseAmino { - /** groups are the groups info with the provided admin. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminResponse"; - value: QueryGroupsByAdminResponseAmino; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequest { - /** group_id is the unique ID of the group policy's group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByGroupRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestAmino { - /** group_id is the unique ID of the group policy's group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByGroupRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest"; - value: QueryGroupPoliciesByGroupRequestAmino; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponse { - /** group_policies are the group policies info associated with the provided group. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseAmino { - /** group_policies are the group policies info associated with the provided group. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByGroupResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse"; - value: QueryGroupPoliciesByGroupResponseAmino; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequest { - /** admin is the admin address of the group policy. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestAmino { - /** admin is the admin address of the group policy. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest"; - value: QueryGroupPoliciesByAdminRequestAmino; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponse { - /** group_policies are the group policies info with provided admin. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseAmino { - /** group_policies are the group policies info with provided admin. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse"; - value: QueryGroupPoliciesByAdminResponseAmino; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponse { - /** proposal is the proposal info. */ - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseAmino { - /** proposal is the proposal info. */ - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequest { - /** address is the account address of the group policy related to proposals. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsByGroupPolicyRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestAmino { - /** address is the account address of the group policy related to proposals. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsByGroupPolicyRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest"; - value: QueryProposalsByGroupPolicyRequestAmino; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponse { - /** proposals are the proposals with given group policy. */ - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsByGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseAmino { - /** proposals are the proposals with given group policy. */ - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsByGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse"; - value: QueryProposalsByGroupPolicyResponseAmino; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** voter is a proposal voter account address. */ - voter: string; -} -export interface QueryVoteByProposalVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** voter is a proposal voter account address. */ - voter?: string; -} -export interface QueryVoteByProposalVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; - value: QueryVoteByProposalVoterRequestAmino; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponse { - /** vote is the vote with given proposal_id and voter. */ - vote?: Vote; -} -export interface QueryVoteByProposalVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseAmino { - /** vote is the vote with given proposal_id and voter. */ - vote?: VoteAmino; -} -export interface QueryVoteByProposalVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse"; - value: QueryVoteByProposalVoterResponseAmino; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; - value: Uint8Array; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByProposalRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalRequest"; - value: QueryVotesByProposalRequestAmino; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponse { - /** votes are the list of votes for given proposal_id. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; - value: Uint8Array; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseAmino { - /** votes are the list of votes for given proposal_id. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByProposalResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalResponse"; - value: QueryVotesByProposalResponseAmino; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequest { - /** voter is a proposal voter account address. */ - voter: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; - value: Uint8Array; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestAmino { - /** voter is a proposal voter account address. */ - voter?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterRequest"; - value: QueryVotesByVoterRequestAmino; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestSDKType { - voter: string; - pagination?: PageRequestSDKType; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponse { - /** votes are the list of votes by given voter. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; - value: Uint8Array; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseAmino { - /** votes are the list of votes by given voter. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterResponse"; - value: QueryVotesByVoterResponseAmino; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequest { - /** address is the group member address. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByMemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; - value: Uint8Array; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestAmino { - /** address is the group member address. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByMemberRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberRequest"; - value: QueryGroupsByMemberRequestAmino; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponse { - /** groups are the groups info with the provided group member. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByMemberResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; - value: Uint8Array; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseAmino { - /** groups are the groups info with the provided group member. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByMemberResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberResponse"; - value: QueryGroupsByMemberResponseAmino; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequest { - /** proposal_id is the unique id of a proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id is the unique id of a proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryGroupInfoRequest: { - typeUrl: string; - encode(message: QueryGroupInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest; - fromJSON(object: any): QueryGroupInfoRequest; - toJSON(message: QueryGroupInfoRequest): unknown; - fromPartial(object: Partial): QueryGroupInfoRequest; - fromAmino(object: QueryGroupInfoRequestAmino): QueryGroupInfoRequest; - toAmino(message: QueryGroupInfoRequest): QueryGroupInfoRequestAmino; - fromAminoMsg(object: QueryGroupInfoRequestAminoMsg): QueryGroupInfoRequest; - toAminoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestAminoMsg; - fromProtoMsg(message: QueryGroupInfoRequestProtoMsg): QueryGroupInfoRequest; - toProto(message: QueryGroupInfoRequest): Uint8Array; - toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg; -}; -export declare const QueryGroupInfoResponse: { - typeUrl: string; - encode(message: QueryGroupInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse; - fromJSON(object: any): QueryGroupInfoResponse; - toJSON(message: QueryGroupInfoResponse): unknown; - fromPartial(object: Partial): QueryGroupInfoResponse; - fromAmino(object: QueryGroupInfoResponseAmino): QueryGroupInfoResponse; - toAmino(message: QueryGroupInfoResponse): QueryGroupInfoResponseAmino; - fromAminoMsg(object: QueryGroupInfoResponseAminoMsg): QueryGroupInfoResponse; - toAminoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseAminoMsg; - fromProtoMsg(message: QueryGroupInfoResponseProtoMsg): QueryGroupInfoResponse; - toProto(message: QueryGroupInfoResponse): Uint8Array; - toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg; -}; -export declare const QueryGroupPolicyInfoRequest: { - typeUrl: string; - encode(message: QueryGroupPolicyInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; - fromJSON(object: any): QueryGroupPolicyInfoRequest; - toJSON(message: QueryGroupPolicyInfoRequest): unknown; - fromPartial(object: Partial): QueryGroupPolicyInfoRequest; - fromAmino(object: QueryGroupPolicyInfoRequestAmino): QueryGroupPolicyInfoRequest; - toAmino(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAmino; - fromAminoMsg(object: QueryGroupPolicyInfoRequestAminoMsg): QueryGroupPolicyInfoRequest; - toAminoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAminoMsg; - fromProtoMsg(message: QueryGroupPolicyInfoRequestProtoMsg): QueryGroupPolicyInfoRequest; - toProto(message: QueryGroupPolicyInfoRequest): Uint8Array; - toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg; -}; -export declare const QueryGroupPolicyInfoResponse: { - typeUrl: string; - encode(message: QueryGroupPolicyInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; - fromJSON(object: any): QueryGroupPolicyInfoResponse; - toJSON(message: QueryGroupPolicyInfoResponse): unknown; - fromPartial(object: Partial): QueryGroupPolicyInfoResponse; - fromAmino(object: QueryGroupPolicyInfoResponseAmino): QueryGroupPolicyInfoResponse; - toAmino(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAmino; - fromAminoMsg(object: QueryGroupPolicyInfoResponseAminoMsg): QueryGroupPolicyInfoResponse; - toAminoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAminoMsg; - fromProtoMsg(message: QueryGroupPolicyInfoResponseProtoMsg): QueryGroupPolicyInfoResponse; - toProto(message: QueryGroupPolicyInfoResponse): Uint8Array; - toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg; -}; -export declare const QueryGroupMembersRequest: { - typeUrl: string; - encode(message: QueryGroupMembersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest; - fromJSON(object: any): QueryGroupMembersRequest; - toJSON(message: QueryGroupMembersRequest): unknown; - fromPartial(object: Partial): QueryGroupMembersRequest; - fromAmino(object: QueryGroupMembersRequestAmino): QueryGroupMembersRequest; - toAmino(message: QueryGroupMembersRequest): QueryGroupMembersRequestAmino; - fromAminoMsg(object: QueryGroupMembersRequestAminoMsg): QueryGroupMembersRequest; - toAminoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestAminoMsg; - fromProtoMsg(message: QueryGroupMembersRequestProtoMsg): QueryGroupMembersRequest; - toProto(message: QueryGroupMembersRequest): Uint8Array; - toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg; -}; -export declare const QueryGroupMembersResponse: { - typeUrl: string; - encode(message: QueryGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse; - fromJSON(object: any): QueryGroupMembersResponse; - toJSON(message: QueryGroupMembersResponse): unknown; - fromPartial(object: Partial): QueryGroupMembersResponse; - fromAmino(object: QueryGroupMembersResponseAmino): QueryGroupMembersResponse; - toAmino(message: QueryGroupMembersResponse): QueryGroupMembersResponseAmino; - fromAminoMsg(object: QueryGroupMembersResponseAminoMsg): QueryGroupMembersResponse; - toAminoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseAminoMsg; - fromProtoMsg(message: QueryGroupMembersResponseProtoMsg): QueryGroupMembersResponse; - toProto(message: QueryGroupMembersResponse): Uint8Array; - toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg; -}; -export declare const QueryGroupsByAdminRequest: { - typeUrl: string; - encode(message: QueryGroupsByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest; - fromJSON(object: any): QueryGroupsByAdminRequest; - toJSON(message: QueryGroupsByAdminRequest): unknown; - fromPartial(object: Partial): QueryGroupsByAdminRequest; - fromAmino(object: QueryGroupsByAdminRequestAmino): QueryGroupsByAdminRequest; - toAmino(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAmino; - fromAminoMsg(object: QueryGroupsByAdminRequestAminoMsg): QueryGroupsByAdminRequest; - toAminoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAminoMsg; - fromProtoMsg(message: QueryGroupsByAdminRequestProtoMsg): QueryGroupsByAdminRequest; - toProto(message: QueryGroupsByAdminRequest): Uint8Array; - toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg; -}; -export declare const QueryGroupsByAdminResponse: { - typeUrl: string; - encode(message: QueryGroupsByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse; - fromJSON(object: any): QueryGroupsByAdminResponse; - toJSON(message: QueryGroupsByAdminResponse): unknown; - fromPartial(object: Partial): QueryGroupsByAdminResponse; - fromAmino(object: QueryGroupsByAdminResponseAmino): QueryGroupsByAdminResponse; - toAmino(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAmino; - fromAminoMsg(object: QueryGroupsByAdminResponseAminoMsg): QueryGroupsByAdminResponse; - toAminoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAminoMsg; - fromProtoMsg(message: QueryGroupsByAdminResponseProtoMsg): QueryGroupsByAdminResponse; - toProto(message: QueryGroupsByAdminResponse): Uint8Array; - toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg; -}; -export declare const QueryGroupPoliciesByGroupRequest: { - typeUrl: string; - encode(message: QueryGroupPoliciesByGroupRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; - fromJSON(object: any): QueryGroupPoliciesByGroupRequest; - toJSON(message: QueryGroupPoliciesByGroupRequest): unknown; - fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest; - fromAmino(object: QueryGroupPoliciesByGroupRequestAmino): QueryGroupPoliciesByGroupRequest; - toAmino(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAmino; - fromAminoMsg(object: QueryGroupPoliciesByGroupRequestAminoMsg): QueryGroupPoliciesByGroupRequest; - toAminoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByGroupRequestProtoMsg): QueryGroupPoliciesByGroupRequest; - toProto(message: QueryGroupPoliciesByGroupRequest): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg; -}; -export declare const QueryGroupPoliciesByGroupResponse: { - typeUrl: string; - encode(message: QueryGroupPoliciesByGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; - fromJSON(object: any): QueryGroupPoliciesByGroupResponse; - toJSON(message: QueryGroupPoliciesByGroupResponse): unknown; - fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse; - fromAmino(object: QueryGroupPoliciesByGroupResponseAmino): QueryGroupPoliciesByGroupResponse; - toAmino(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAmino; - fromAminoMsg(object: QueryGroupPoliciesByGroupResponseAminoMsg): QueryGroupPoliciesByGroupResponse; - toAminoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByGroupResponseProtoMsg): QueryGroupPoliciesByGroupResponse; - toProto(message: QueryGroupPoliciesByGroupResponse): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg; -}; -export declare const QueryGroupPoliciesByAdminRequest: { - typeUrl: string; - encode(message: QueryGroupPoliciesByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; - fromJSON(object: any): QueryGroupPoliciesByAdminRequest; - toJSON(message: QueryGroupPoliciesByAdminRequest): unknown; - fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest; - fromAmino(object: QueryGroupPoliciesByAdminRequestAmino): QueryGroupPoliciesByAdminRequest; - toAmino(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAmino; - fromAminoMsg(object: QueryGroupPoliciesByAdminRequestAminoMsg): QueryGroupPoliciesByAdminRequest; - toAminoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByAdminRequestProtoMsg): QueryGroupPoliciesByAdminRequest; - toProto(message: QueryGroupPoliciesByAdminRequest): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg; -}; -export declare const QueryGroupPoliciesByAdminResponse: { - typeUrl: string; - encode(message: QueryGroupPoliciesByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; - fromJSON(object: any): QueryGroupPoliciesByAdminResponse; - toJSON(message: QueryGroupPoliciesByAdminResponse): unknown; - fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse; - fromAmino(object: QueryGroupPoliciesByAdminResponseAmino): QueryGroupPoliciesByAdminResponse; - toAmino(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAmino; - fromAminoMsg(object: QueryGroupPoliciesByAdminResponseAminoMsg): QueryGroupPoliciesByAdminResponse; - toAminoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByAdminResponseProtoMsg): QueryGroupPoliciesByAdminResponse; - toProto(message: QueryGroupPoliciesByAdminResponse): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg; -}; -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromJSON(object: any): QueryProposalRequest; - toJSON(message: QueryProposalRequest): unknown; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromJSON(object: any): QueryProposalResponse; - toJSON(message: QueryProposalResponse): unknown; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsByGroupPolicyRequest: { - typeUrl: string; - encode(message: QueryProposalsByGroupPolicyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; - fromJSON(object: any): QueryProposalsByGroupPolicyRequest; - toJSON(message: QueryProposalsByGroupPolicyRequest): unknown; - fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest; - fromAmino(object: QueryProposalsByGroupPolicyRequestAmino): QueryProposalsByGroupPolicyRequest; - toAmino(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAmino; - fromAminoMsg(object: QueryProposalsByGroupPolicyRequestAminoMsg): QueryProposalsByGroupPolicyRequest; - toAminoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAminoMsg; - fromProtoMsg(message: QueryProposalsByGroupPolicyRequestProtoMsg): QueryProposalsByGroupPolicyRequest; - toProto(message: QueryProposalsByGroupPolicyRequest): Uint8Array; - toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg; -}; -export declare const QueryProposalsByGroupPolicyResponse: { - typeUrl: string; - encode(message: QueryProposalsByGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; - fromJSON(object: any): QueryProposalsByGroupPolicyResponse; - toJSON(message: QueryProposalsByGroupPolicyResponse): unknown; - fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse; - fromAmino(object: QueryProposalsByGroupPolicyResponseAmino): QueryProposalsByGroupPolicyResponse; - toAmino(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAmino; - fromAminoMsg(object: QueryProposalsByGroupPolicyResponseAminoMsg): QueryProposalsByGroupPolicyResponse; - toAminoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAminoMsg; - fromProtoMsg(message: QueryProposalsByGroupPolicyResponseProtoMsg): QueryProposalsByGroupPolicyResponse; - toProto(message: QueryProposalsByGroupPolicyResponse): Uint8Array; - toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg; -}; -export declare const QueryVoteByProposalVoterRequest: { - typeUrl: string; - encode(message: QueryVoteByProposalVoterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; - fromJSON(object: any): QueryVoteByProposalVoterRequest; - toJSON(message: QueryVoteByProposalVoterRequest): unknown; - fromPartial(object: Partial): QueryVoteByProposalVoterRequest; - fromAmino(object: QueryVoteByProposalVoterRequestAmino): QueryVoteByProposalVoterRequest; - toAmino(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAmino; - fromAminoMsg(object: QueryVoteByProposalVoterRequestAminoMsg): QueryVoteByProposalVoterRequest; - toAminoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAminoMsg; - fromProtoMsg(message: QueryVoteByProposalVoterRequestProtoMsg): QueryVoteByProposalVoterRequest; - toProto(message: QueryVoteByProposalVoterRequest): Uint8Array; - toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg; -}; -export declare const QueryVoteByProposalVoterResponse: { - typeUrl: string; - encode(message: QueryVoteByProposalVoterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; - fromJSON(object: any): QueryVoteByProposalVoterResponse; - toJSON(message: QueryVoteByProposalVoterResponse): unknown; - fromPartial(object: Partial): QueryVoteByProposalVoterResponse; - fromAmino(object: QueryVoteByProposalVoterResponseAmino): QueryVoteByProposalVoterResponse; - toAmino(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAmino; - fromAminoMsg(object: QueryVoteByProposalVoterResponseAminoMsg): QueryVoteByProposalVoterResponse; - toAminoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAminoMsg; - fromProtoMsg(message: QueryVoteByProposalVoterResponseProtoMsg): QueryVoteByProposalVoterResponse; - toProto(message: QueryVoteByProposalVoterResponse): Uint8Array; - toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg; -}; -export declare const QueryVotesByProposalRequest: { - typeUrl: string; - encode(message: QueryVotesByProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest; - fromJSON(object: any): QueryVotesByProposalRequest; - toJSON(message: QueryVotesByProposalRequest): unknown; - fromPartial(object: Partial): QueryVotesByProposalRequest; - fromAmino(object: QueryVotesByProposalRequestAmino): QueryVotesByProposalRequest; - toAmino(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAmino; - fromAminoMsg(object: QueryVotesByProposalRequestAminoMsg): QueryVotesByProposalRequest; - toAminoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAminoMsg; - fromProtoMsg(message: QueryVotesByProposalRequestProtoMsg): QueryVotesByProposalRequest; - toProto(message: QueryVotesByProposalRequest): Uint8Array; - toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg; -}; -export declare const QueryVotesByProposalResponse: { - typeUrl: string; - encode(message: QueryVotesByProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse; - fromJSON(object: any): QueryVotesByProposalResponse; - toJSON(message: QueryVotesByProposalResponse): unknown; - fromPartial(object: Partial): QueryVotesByProposalResponse; - fromAmino(object: QueryVotesByProposalResponseAmino): QueryVotesByProposalResponse; - toAmino(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAmino; - fromAminoMsg(object: QueryVotesByProposalResponseAminoMsg): QueryVotesByProposalResponse; - toAminoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAminoMsg; - fromProtoMsg(message: QueryVotesByProposalResponseProtoMsg): QueryVotesByProposalResponse; - toProto(message: QueryVotesByProposalResponse): Uint8Array; - toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg; -}; -export declare const QueryVotesByVoterRequest: { - typeUrl: string; - encode(message: QueryVotesByVoterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest; - fromJSON(object: any): QueryVotesByVoterRequest; - toJSON(message: QueryVotesByVoterRequest): unknown; - fromPartial(object: Partial): QueryVotesByVoterRequest; - fromAmino(object: QueryVotesByVoterRequestAmino): QueryVotesByVoterRequest; - toAmino(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAmino; - fromAminoMsg(object: QueryVotesByVoterRequestAminoMsg): QueryVotesByVoterRequest; - toAminoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAminoMsg; - fromProtoMsg(message: QueryVotesByVoterRequestProtoMsg): QueryVotesByVoterRequest; - toProto(message: QueryVotesByVoterRequest): Uint8Array; - toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg; -}; -export declare const QueryVotesByVoterResponse: { - typeUrl: string; - encode(message: QueryVotesByVoterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse; - fromJSON(object: any): QueryVotesByVoterResponse; - toJSON(message: QueryVotesByVoterResponse): unknown; - fromPartial(object: Partial): QueryVotesByVoterResponse; - fromAmino(object: QueryVotesByVoterResponseAmino): QueryVotesByVoterResponse; - toAmino(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAmino; - fromAminoMsg(object: QueryVotesByVoterResponseAminoMsg): QueryVotesByVoterResponse; - toAminoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAminoMsg; - fromProtoMsg(message: QueryVotesByVoterResponseProtoMsg): QueryVotesByVoterResponse; - toProto(message: QueryVotesByVoterResponse): Uint8Array; - toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg; -}; -export declare const QueryGroupsByMemberRequest: { - typeUrl: string; - encode(message: QueryGroupsByMemberRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest; - fromJSON(object: any): QueryGroupsByMemberRequest; - toJSON(message: QueryGroupsByMemberRequest): unknown; - fromPartial(object: Partial): QueryGroupsByMemberRequest; - fromAmino(object: QueryGroupsByMemberRequestAmino): QueryGroupsByMemberRequest; - toAmino(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAmino; - fromAminoMsg(object: QueryGroupsByMemberRequestAminoMsg): QueryGroupsByMemberRequest; - toAminoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAminoMsg; - fromProtoMsg(message: QueryGroupsByMemberRequestProtoMsg): QueryGroupsByMemberRequest; - toProto(message: QueryGroupsByMemberRequest): Uint8Array; - toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg; -}; -export declare const QueryGroupsByMemberResponse: { - typeUrl: string; - encode(message: QueryGroupsByMemberResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse; - fromJSON(object: any): QueryGroupsByMemberResponse; - toJSON(message: QueryGroupsByMemberResponse): unknown; - fromPartial(object: Partial): QueryGroupsByMemberResponse; - fromAmino(object: QueryGroupsByMemberResponseAmino): QueryGroupsByMemberResponse; - toAmino(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAmino; - fromAminoMsg(object: QueryGroupsByMemberResponseAminoMsg): QueryGroupsByMemberResponse; - toAminoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAminoMsg; - fromProtoMsg(message: QueryGroupsByMemberResponseProtoMsg): QueryGroupsByMemberResponse; - toProto(message: QueryGroupsByMemberResponse): Uint8Array; - toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromJSON(object: any): QueryTallyResultRequest; - toJSON(message: QueryTallyResultRequest): unknown; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromJSON(object: any): QueryTallyResultResponse; - toJSON(message: QueryTallyResultResponse): unknown; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts deleted file mode 100644 index f2695451..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/query.lcd.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - groupInfo(params: QueryGroupInfoRequest): Promise; - groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise; - groupMembers(params: QueryGroupMembersRequest): Promise; - groupsByAdmin(params: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise; - proposal(params: QueryProposalRequest): Promise; - proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(params: QueryVotesByProposalRequest): Promise; - votesByVoter(params: QueryVotesByVoterRequest): Promise; - groupsByMember(params: QueryGroupsByMemberRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/group/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/group/v1/query.rpc.Query.d.ts deleted file mode 100644 index 6ccde5b1..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query is the cosmos.group.v1 Query service. */ -export interface Query { - /** GroupInfo queries group info based on group id. */ - groupInfo(request: QueryGroupInfoRequest): Promise; - /** GroupPolicyInfo queries group policy info based on account address of group policy. */ - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - /** GroupMembers queries members of a group */ - groupMembers(request: QueryGroupMembersRequest): Promise; - /** GroupsByAdmin queries groups by admin address. */ - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - /** GroupPoliciesByGroup queries group policies by group id. */ - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - /** GroupsByAdmin queries group policies by admin address. */ - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - /** Proposal queries a proposal based on proposal id. */ - proposal(request: QueryProposalRequest): Promise; - /** ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - /** VoteByProposalVoter queries a vote by proposal id and voter. */ - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - /** VotesByProposal queries a vote by proposal. */ - votesByProposal(request: QueryVotesByProposalRequest): Promise; - /** VotesByVoter queries a vote by voter. */ - votesByVoter(request: QueryVotesByVoterRequest): Promise; - /** GroupsByMember queries groups by member address. */ - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - /** - * TallyResult returns the tally result of a proposal. If the proposal is - * still in voting period, then this query computes the current tally state, - * which might not be final. On the other hand, if the proposal is final, - * then it simply returns the `final_tally_result` state stored in the - * proposal itself. - */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/group/v1/tx.amino.d.ts deleted file mode 100644 index 49116292..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/tx.amino.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export declare const AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: MsgCreateGroup) => import("./tx").MsgCreateGroupAmino; - fromAmino: (object: import("./tx").MsgCreateGroupAmino) => MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: MsgUpdateGroupMembers) => import("./tx").MsgUpdateGroupMembersAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupMembersAmino) => MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateGroupAdmin) => import("./tx").MsgUpdateGroupAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupAdminAmino) => MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateGroupMetadata) => import("./tx").MsgUpdateGroupMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupMetadataAmino) => MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: MsgCreateGroupPolicy) => import("./tx").MsgCreateGroupPolicyAmino; - fromAmino: (object: import("./tx").MsgCreateGroupPolicyAmino) => MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: MsgCreateGroupWithPolicy) => import("./tx").MsgCreateGroupWithPolicyAmino; - fromAmino: (object: import("./tx").MsgCreateGroupWithPolicyAmino) => MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyAdmin) => import("./tx").MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyAdminAmino) => MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyDecisionPolicy) => import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyMetadata) => import("./tx").MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyMetadataAmino) => MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: MsgWithdrawProposal) => import("./tx").MsgWithdrawProposalAmino; - fromAmino: (object: import("./tx").MsgWithdrawProposalAmino) => MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; - fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: MsgLeaveGroup) => import("./tx").MsgLeaveGroupAmino; - fromAmino: (object: import("./tx").MsgLeaveGroupAmino) => MsgLeaveGroup; - }; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/tx.d.ts b/packages/api/types/codegen/cosmos/group/v1/tx.d.ts deleted file mode 100644 index 32ad14d1..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/tx.d.ts +++ /dev/null @@ -1,1228 +0,0 @@ -import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export declare enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1 -} -export declare const ExecSDKType: typeof Exec; -export declare const ExecAmino: typeof Exec; -export declare function execFromJSON(object: any): Exec; -export declare function execToJSON(object: Exec): string; -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroup"; - value: Uint8Array; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; -} -export interface MsgCreateGroupAminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: MsgCreateGroupAmino; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberRequestSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: bigint; -} -export interface MsgCreateGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; - value: Uint8Array; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseAmino { - /** group_id is the unique ID of the newly created group. */ - group_id?: string; -} -export interface MsgCreateGroupResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupResponse"; - value: MsgCreateGroupResponseAmino; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: bigint; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: MemberRequest[]; -} -export interface MsgUpdateGroupMembersProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; - value: Uint8Array; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - member_updates: MemberRequestAmino[]; -} -export interface MsgUpdateGroupMembersAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: MsgUpdateGroupMembersAmino; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: bigint; - member_updates: MemberRequestSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse { -} -export interface MsgUpdateGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseAmino { -} -export interface MsgUpdateGroupMembersResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; - value: MsgUpdateGroupMembersResponseAmino; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType { -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -export interface MsgUpdateGroupAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminAmino { - /** admin is the current account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** new_admin is the group new admin account address. */ - new_admin?: string; -} -export interface MsgUpdateGroupAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: MsgUpdateGroupAdminAmino; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: bigint; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse { -} -export interface MsgUpdateGroupAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseAmino { -} -export interface MsgUpdateGroupAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; - value: MsgUpdateGroupAdminResponseAmino; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType { -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is the updated group's metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: MsgUpdateGroupMetadataAmino; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: bigint; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse { -} -export interface MsgUpdateGroupMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseAmino { -} -export interface MsgUpdateGroupMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; - value: MsgUpdateGroupMetadataResponseAmino; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType { -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; -} -export interface MsgCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: MsgCreateGroupPolicyAmino; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: bigint; - metadata: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseAmino { - /** address is the account address of the newly created group policy. */ - address?: string; -} -export interface MsgCreateGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; - value: MsgCreateGroupPolicyResponseAmino; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of the group policy. */ - groupPolicyAddress: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -export interface MsgUpdateGroupPolicyAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of the group policy. */ - group_policy_address?: string; - /** new_admin is the new group policy admin. */ - new_admin?: string; -} -export interface MsgUpdateGroupPolicyAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: MsgUpdateGroupPolicyAdminAmino; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - group_policy_address: string; - new_admin: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse { -} -export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseAmino { -} -export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; - value: MsgUpdateGroupPolicyAdminResponseAmino; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType { -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; -} -export interface MsgCreateGroupWithPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupWithPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicyAmino { - /** admin is the account address of the group and group policy admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - group_metadata?: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - group_policy_metadata?: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - group_policy_as_admin?: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupWithPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: MsgCreateGroupWithPolicyAmino; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberRequestSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: bigint; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -export interface MsgCreateGroupWithPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseAmino { - /** group_id is the unique ID of the newly created group with policy. */ - group_id?: string; - /** group_policy_address is the account address of the newly created group policy. */ - group_policy_address?: string; -} -export interface MsgCreateGroupWithPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; - value: MsgCreateGroupWithPolicyResponseAmino; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: bigint; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; -} -export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - value: Uint8Array; -} -export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit & { - /** decision_policy is the updated group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** decision_policy is the updated group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; - value: MsgUpdateGroupPolicyDecisionPolicyAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - group_policy_address: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse { -} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino { -} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType { -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is the updated group policy metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupPolicyMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: MsgUpdateGroupPolicyMetadataAmino; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - group_policy_address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse { -} -export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseAmino { -} -export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; - value: MsgUpdateGroupPolicyMetadataResponseAmino; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType { -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalAmino { - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers?: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec?: Exec; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - group_policy_address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; - value: Uint8Array; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address?: string; -} -export interface MsgWithdrawProposalAminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: MsgWithdrawProposalAmino; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: bigint; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse { -} -export interface MsgWithdrawProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; - value: Uint8Array; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseAmino { -} -export interface MsgWithdrawProposalResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawProposalResponse"; - value: MsgWithdrawProposalResponseAmino; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType { -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the voter account address. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec?: Exec; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** executor is the account address used to execute the proposal. */ - executor: string; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExec"; - value: Uint8Array; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** executor is the account address used to execute the proposal. */ - executor?: string; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: MsgExecAmino; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: bigint; - executor: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse { - /** result is the final result of the proposal execution. */ - result: ProposalExecutorResult; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseAmino { - /** result is the final result of the proposal execution. */ - result?: ProposalExecutorResult; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType { - result: ProposalExecutorResult; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface MsgLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; - value: Uint8Array; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupAmino { - /** address is the account address of the group member. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface MsgLeaveGroupAminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: MsgLeaveGroupAmino; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: bigint; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse { -} -export interface MsgLeaveGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; - value: Uint8Array; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseAmino { -} -export interface MsgLeaveGroupResponseAminoMsg { - type: "cosmos-sdk/MsgLeaveGroupResponse"; - value: MsgLeaveGroupResponseAmino; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType { -} -export declare const MsgCreateGroup: { - typeUrl: string; - encode(message: MsgCreateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup; - fromJSON(object: any): MsgCreateGroup; - toJSON(message: MsgCreateGroup): unknown; - fromPartial(object: Partial): MsgCreateGroup; - fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup; - toAmino(message: MsgCreateGroup): MsgCreateGroupAmino; - fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup; - toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg; - fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup; - toProto(message: MsgCreateGroup): Uint8Array; - toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg; -}; -export declare const MsgCreateGroupResponse: { - typeUrl: string; - encode(message: MsgCreateGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse; - fromJSON(object: any): MsgCreateGroupResponse; - toJSON(message: MsgCreateGroupResponse): unknown; - fromPartial(object: Partial): MsgCreateGroupResponse; - fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse; - toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino; - fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse; - toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse; - toProto(message: MsgCreateGroupResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg; -}; -export declare const MsgUpdateGroupMembers: { - typeUrl: string; - encode(message: MsgUpdateGroupMembers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers; - fromJSON(object: any): MsgUpdateGroupMembers; - toJSON(message: MsgUpdateGroupMembers): unknown; - fromPartial(object: Partial): MsgUpdateGroupMembers; - fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers; - toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino; - fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers; - toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers; - toProto(message: MsgUpdateGroupMembers): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg; -}; -export declare const MsgUpdateGroupMembersResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; - fromJSON(_: any): MsgUpdateGroupMembersResponse; - toJSON(_: MsgUpdateGroupMembersResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupMembersResponse; - fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse; - toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino; - fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse; - toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse; - toProto(message: MsgUpdateGroupMembersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg; -}; -export declare const MsgUpdateGroupAdmin: { - typeUrl: string; - encode(message: MsgUpdateGroupAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin; - fromJSON(object: any): MsgUpdateGroupAdmin; - toJSON(message: MsgUpdateGroupAdmin): unknown; - fromPartial(object: Partial): MsgUpdateGroupAdmin; - fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin; - toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino; - fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin; - toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg; - fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin; - toProto(message: MsgUpdateGroupAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg; -}; -export declare const MsgUpdateGroupAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; - fromJSON(_: any): MsgUpdateGroupAdminResponse; - toJSON(_: MsgUpdateGroupAdminResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupAdminResponse; - fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse; - toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino; - fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse; - toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse; - toProto(message: MsgUpdateGroupAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg; -}; -export declare const MsgUpdateGroupMetadata: { - typeUrl: string; - encode(message: MsgUpdateGroupMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata; - fromJSON(object: any): MsgUpdateGroupMetadata; - toJSON(message: MsgUpdateGroupMetadata): unknown; - fromPartial(object: Partial): MsgUpdateGroupMetadata; - fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata; - toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino; - fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata; - toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata; - toProto(message: MsgUpdateGroupMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg; -}; -export declare const MsgUpdateGroupMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; - fromJSON(_: any): MsgUpdateGroupMetadataResponse; - toJSON(_: MsgUpdateGroupMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupMetadataResponse; - fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse; - toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse; - toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse; - toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg; -}; -export declare const MsgCreateGroupPolicy: { - typeUrl: string; - encode(message: MsgCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy; - fromJSON(object: any): MsgCreateGroupPolicy; - toJSON(message: MsgCreateGroupPolicy): unknown; - fromPartial(object: Partial): MsgCreateGroupPolicy; - fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy; - toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino; - fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy; - toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg; - fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy; - toProto(message: MsgCreateGroupPolicy): Uint8Array; - toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg; -}; -export declare const MsgCreateGroupPolicyResponse: { - typeUrl: string; - encode(message: MsgCreateGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; - fromJSON(object: any): MsgCreateGroupPolicyResponse; - toJSON(message: MsgCreateGroupPolicyResponse): unknown; - fromPartial(object: Partial): MsgCreateGroupPolicyResponse; - fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse; - toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino; - fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse; - toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse; - toProto(message: MsgCreateGroupPolicyResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyAdmin: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; - fromJSON(object: any): MsgUpdateGroupPolicyAdmin; - toJSON(message: MsgUpdateGroupPolicyAdmin): unknown; - fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin; - fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin; - toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin; - toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin; - toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg; -}; -export declare const MsgUpdateGroupPolicyAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; - fromJSON(_: any): MsgUpdateGroupPolicyAdminResponse; - toJSON(_: MsgUpdateGroupPolicyAdminResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse; - fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse; - toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse; - toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse; - toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg; -}; -export declare const MsgCreateGroupWithPolicy: { - typeUrl: string; - encode(message: MsgCreateGroupWithPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; - fromJSON(object: any): MsgCreateGroupWithPolicy; - toJSON(message: MsgCreateGroupWithPolicy): unknown; - fromPartial(object: Partial): MsgCreateGroupWithPolicy; - fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy; - toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino; - fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy; - toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg; - fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy; - toProto(message: MsgCreateGroupWithPolicy): Uint8Array; - toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg; -}; -export declare const MsgCreateGroupWithPolicyResponse: { - typeUrl: string; - encode(message: MsgCreateGroupWithPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; - fromJSON(object: any): MsgCreateGroupWithPolicyResponse; - toJSON(message: MsgCreateGroupWithPolicyResponse): unknown; - fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse; - fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse; - toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino; - fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse; - toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse; - toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicy: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; - fromJSON(object: any): MsgUpdateGroupPolicyDecisionPolicy; - toJSON(message: MsgUpdateGroupPolicyDecisionPolicy): unknown; - fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy; - fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy; - toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy; - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy; - toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; - fromJSON(_: any): MsgUpdateGroupPolicyDecisionPolicyResponse; - toJSON(_: MsgUpdateGroupPolicyDecisionPolicyResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse; - fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse; - toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; - toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyMetadata: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; - fromJSON(object: any): MsgUpdateGroupPolicyMetadata; - toJSON(message: MsgUpdateGroupPolicyMetadata): unknown; - fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata; - fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata; - toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata; - toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata; - toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg; -}; -export declare const MsgUpdateGroupPolicyMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; - fromJSON(_: any): MsgUpdateGroupPolicyMetadataResponse; - toJSON(_: MsgUpdateGroupPolicyMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse; - fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse; - toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse; - toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse; - toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg; -}; -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromJSON(object: any): MsgSubmitProposal; - toJSON(message: MsgSubmitProposal): unknown; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromJSON(object: any): MsgSubmitProposalResponse; - toJSON(message: MsgSubmitProposalResponse): unknown; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgWithdrawProposal: { - typeUrl: string; - encode(message: MsgWithdrawProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal; - fromJSON(object: any): MsgWithdrawProposal; - toJSON(message: MsgWithdrawProposal): unknown; - fromPartial(object: Partial): MsgWithdrawProposal; - fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal; - toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino; - fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal; - toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg; - fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal; - toProto(message: MsgWithdrawProposal): Uint8Array; - toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg; -}; -export declare const MsgWithdrawProposalResponse: { - typeUrl: string; - encode(_: MsgWithdrawProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse; - fromJSON(_: any): MsgWithdrawProposalResponse; - toJSON(_: MsgWithdrawProposalResponse): unknown; - fromPartial(_: Partial): MsgWithdrawProposalResponse; - fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse; - toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino; - fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse; - toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse; - toProto(message: MsgWithdrawProposalResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromJSON(object: any): MsgVote; - toJSON(message: MsgVote): unknown; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromJSON(_: any): MsgVoteResponse; - toJSON(_: MsgVoteResponse): unknown; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgExec: { - typeUrl: string; - encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; - fromJSON(object: any): MsgExec; - toJSON(message: MsgExec): unknown; - fromPartial(object: Partial): MsgExec; - fromAmino(object: MsgExecAmino): MsgExec; - toAmino(message: MsgExec): MsgExecAmino; - fromAminoMsg(object: MsgExecAminoMsg): MsgExec; - toAminoMsg(message: MsgExec): MsgExecAminoMsg; - fromProtoMsg(message: MsgExecProtoMsg): MsgExec; - toProto(message: MsgExec): Uint8Array; - toProtoMsg(message: MsgExec): MsgExecProtoMsg; -}; -export declare const MsgExecResponse: { - typeUrl: string; - encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; - fromJSON(object: any): MsgExecResponse; - toJSON(message: MsgExecResponse): unknown; - fromPartial(object: Partial): MsgExecResponse; - fromAmino(object: MsgExecResponseAmino): MsgExecResponse; - toAmino(message: MsgExecResponse): MsgExecResponseAmino; - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; - toProto(message: MsgExecResponse): Uint8Array; - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; -}; -export declare const MsgLeaveGroup: { - typeUrl: string; - encode(message: MsgLeaveGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup; - fromJSON(object: any): MsgLeaveGroup; - toJSON(message: MsgLeaveGroup): unknown; - fromPartial(object: Partial): MsgLeaveGroup; - fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup; - toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino; - fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup; - toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg; - fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup; - toProto(message: MsgLeaveGroup): Uint8Array; - toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg; -}; -export declare const MsgLeaveGroupResponse: { - typeUrl: string; - encode(_: MsgLeaveGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse; - fromJSON(_: any): MsgLeaveGroupResponse; - toJSON(_: MsgLeaveGroupResponse): unknown; - fromPartial(_: Partial): MsgLeaveGroupResponse; - fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse; - toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino; - fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse; - toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg; - fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse; - toProto(message: MsgLeaveGroupResponse): Uint8Array; - toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg; -}; -export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; -export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; -export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/group/v1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/group/v1/tx.registry.d.ts deleted file mode 100644 index 3bae0d53..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/tx.registry.d.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; - toJSON: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: unknown; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: unknown; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: unknown; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: unknown; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: unknown; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: unknown; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: unknown; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: unknown; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: unknown; - }; - vote(value: MsgVote): { - typeUrl: string; - value: unknown; - }; - exec(value: MsgExec): { - typeUrl: string; - value: unknown; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createGroup(value: any): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: any): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: any): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: any): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: any): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: any): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: any): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: any): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: any): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: any): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: any): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: any): { - typeUrl: string; - value: MsgVote; - }; - exec(value: any): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: any): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 28620343..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; -/** Msg is the cosmos.group.v1 Msg service. */ -export interface Msg { - /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ - createGroup(request: MsgCreateGroup): Promise; - /** UpdateGroupMembers updates the group members with given group id and admin address. */ - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - /** CreateGroupWithPolicy creates a new group with policy. */ - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - /** UpdateGroupPolicyAdmin updates a group policy admin. */ - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - /** UpdateGroupPolicyMetadata updates a group policy metadata. */ - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - /** SubmitProposal submits a new proposal. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** WithdrawProposal withdraws a proposal. */ - withdrawProposal(request: MsgWithdrawProposal): Promise; - /** Vote allows a voter to vote on a proposal. */ - vote(request: MsgVote): Promise; - /** Exec executes a proposal. */ - exec(request: MsgExec): Promise; - /** LeaveGroup allows a group member to leave the group. */ - leaveGroup(request: MsgLeaveGroup): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createGroup(request: MsgCreateGroup): Promise; - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - submitProposal(request: MsgSubmitProposal): Promise; - withdrawProposal(request: MsgWithdrawProposal): Promise; - vote(request: MsgVote): Promise; - exec(request: MsgExec): Promise; - leaveGroup(request: MsgLeaveGroup): Promise; -} diff --git a/packages/api/types/codegen/cosmos/group/v1/types.d.ts b/packages/api/types/codegen/cosmos/group/v1/types.d.ts deleted file mode 100644 index 2b430150..00000000 --- a/packages/api/types/codegen/cosmos/group/v1/types.d.ts +++ /dev/null @@ -1,854 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export declare enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus defines proposal statuses. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** - * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - */ - PROPOSAL_STATUS_ACCEPTED = 2, - /** - * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - */ - PROPOSAL_STATUS_REJECTED = 3, - /** - * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the - * final tally. - */ - PROPOSAL_STATUS_ABORTED = 4, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** ProposalExecutorResult defines types of proposal executor results. */ -export declare enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1 -} -export declare const ProposalExecutorResultSDKType: typeof ProposalExecutorResult; -export declare const ProposalExecutorResultAmino: typeof ProposalExecutorResult; -export declare function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult; -export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string; -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Timestamp; -} -export interface MemberProtoMsg { - typeUrl: "/cosmos.group.v1.Member"; - value: Uint8Array; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; - /** added_at is a timestamp specifying when a member was added. */ - added_at?: string; -} -export interface MemberAminoMsg { - type: "cosmos-sdk/Member"; - value: MemberAmino; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: TimestampSDKType; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequest { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; -} -export interface MemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.MemberRequest"; - value: Uint8Array; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; -} -export interface MemberRequestAminoMsg { - type: "cosmos-sdk/MemberRequest"; - value: MemberRequestAmino; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestSDKType { - address: string; - weight: string; - metadata: string; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface ThresholdDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; - value: Uint8Array; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicyAmino { - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface ThresholdDecisionPolicyAminoMsg { - type: "cosmos-sdk/ThresholdDecisionPolicy"; - value: ThresholdDecisionPolicyAmino; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - threshold: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface PercentageDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; - value: Uint8Array; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicyAmino { - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface PercentageDecisionPolicyAminoMsg { - type: "cosmos-sdk/PercentageDecisionPolicy"; - value: PercentageDecisionPolicyAmino; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - percentage: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -export interface DecisionPolicyWindowsProtoMsg { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; - value: Uint8Array; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsAmino { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - voting_period?: DurationAmino; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - min_execution_period?: DurationAmino; -} -export interface DecisionPolicyWindowsAminoMsg { - type: "cosmos-sdk/DecisionPolicyWindows"; - value: DecisionPolicyWindowsAmino; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: bigint; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: bigint; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Timestamp; -} -export interface GroupInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupInfo"; - value: Uint8Array; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoAmino { - /** id is the unique ID of the group. */ - id?: string; - /** admin is the account address of the group's admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version?: string; - /** total_weight is the sum of the group members' weights. */ - total_weight?: string; - /** created_at is a timestamp specifying when a group was created. */ - created_at?: string; -} -export interface GroupInfoAminoMsg { - type: "cosmos-sdk/GroupInfo"; - value: GroupInfoAmino; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: bigint; - admin: string; - metadata: string; - version: bigint; - total_weight: string; - created_at: TimestampSDKType; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** member is the member data. */ - member?: Member; -} -export interface GroupMemberProtoMsg { - typeUrl: "/cosmos.group.v1.GroupMember"; - value: Uint8Array; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** member is the member data. */ - member?: MemberAmino; -} -export interface GroupMemberAminoMsg { - type: "cosmos-sdk/GroupMember"; - value: GroupMemberAmino; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: bigint; - member?: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: bigint; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: (ThresholdDecisionPolicy & PercentageDecisionPolicy & Any) | undefined; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Timestamp; -} -export interface GroupPolicyInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; - value: Uint8Array; -} -export type GroupPolicyInfoEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoAmino { - /** address is the account address of group policy. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** admin is the account address of the group admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata?: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; - /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: string; -} -export interface GroupPolicyInfoAminoMsg { - type: "cosmos-sdk/GroupPolicyInfo"; - value: GroupPolicyInfoAmino; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: bigint; - admin: string; - metadata: string; - version: bigint; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; - created_at: TimestampSDKType; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: bigint; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Timestamp; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - groupVersion: bigint; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - groupPolicyVersion: bigint; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - votingPeriodEnd: Timestamp; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.group.v1.Proposal"; - value: Uint8Array; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalAmino { - /** id is the unique id of the proposal. */ - id?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** proposers are the account addresses of the proposers. */ - proposers?: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: string; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - group_version?: string; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - group_policy_version?: string; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status?: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - final_tally_result?: TallyResultAmino; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - voting_period_end?: string; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executor_result?: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: bigint; - group_policy_address: string; - metadata: string; - proposers: string[]; - submit_time: TimestampSDKType; - group_version: bigint; - group_policy_version: bigint; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - voting_period_end: TimestampSDKType; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no_count is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.group.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultAmino { - /** yes_count is the weighted sum of yes votes. */ - yes_count?: string; - /** abstain_count is the weighted sum of abstainers. */ - abstain_count?: string; - /** no_count is the weighted sum of no votes. */ - no_count?: string; - /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Timestamp; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.group.v1.Vote"; - value: Uint8Array; -} -/** Vote represents a vote for a proposal. */ -export interface VoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the account address of the voter. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - submit_time: TimestampSDKType; -} -export declare const Member: { - typeUrl: string; - encode(message: Member, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Member; - fromJSON(object: any): Member; - toJSON(message: Member): unknown; - fromPartial(object: Partial): Member; - fromAmino(object: MemberAmino): Member; - toAmino(message: Member): MemberAmino; - fromAminoMsg(object: MemberAminoMsg): Member; - toAminoMsg(message: Member): MemberAminoMsg; - fromProtoMsg(message: MemberProtoMsg): Member; - toProto(message: Member): Uint8Array; - toProtoMsg(message: Member): MemberProtoMsg; -}; -export declare const MemberRequest: { - typeUrl: string; - encode(message: MemberRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest; - fromJSON(object: any): MemberRequest; - toJSON(message: MemberRequest): unknown; - fromPartial(object: Partial): MemberRequest; - fromAmino(object: MemberRequestAmino): MemberRequest; - toAmino(message: MemberRequest): MemberRequestAmino; - fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest; - toAminoMsg(message: MemberRequest): MemberRequestAminoMsg; - fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest; - toProto(message: MemberRequest): Uint8Array; - toProtoMsg(message: MemberRequest): MemberRequestProtoMsg; -}; -export declare const ThresholdDecisionPolicy: { - typeUrl: string; - encode(message: ThresholdDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy; - fromJSON(object: any): ThresholdDecisionPolicy; - toJSON(message: ThresholdDecisionPolicy): unknown; - fromPartial(object: Partial): ThresholdDecisionPolicy; - fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy; - toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino; - fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy; - toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg; - fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy; - toProto(message: ThresholdDecisionPolicy): Uint8Array; - toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg; -}; -export declare const PercentageDecisionPolicy: { - typeUrl: string; - encode(message: PercentageDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy; - fromJSON(object: any): PercentageDecisionPolicy; - toJSON(message: PercentageDecisionPolicy): unknown; - fromPartial(object: Partial): PercentageDecisionPolicy; - fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy; - toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino; - fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy; - toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg; - fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy; - toProto(message: PercentageDecisionPolicy): Uint8Array; - toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg; -}; -export declare const DecisionPolicyWindows: { - typeUrl: string; - encode(message: DecisionPolicyWindows, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows; - fromJSON(object: any): DecisionPolicyWindows; - toJSON(message: DecisionPolicyWindows): unknown; - fromPartial(object: Partial): DecisionPolicyWindows; - fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows; - toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino; - fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows; - toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg; - fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows; - toProto(message: DecisionPolicyWindows): Uint8Array; - toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg; -}; -export declare const GroupInfo: { - typeUrl: string; - encode(message: GroupInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo; - fromJSON(object: any): GroupInfo; - toJSON(message: GroupInfo): unknown; - fromPartial(object: Partial): GroupInfo; - fromAmino(object: GroupInfoAmino): GroupInfo; - toAmino(message: GroupInfo): GroupInfoAmino; - fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo; - toAminoMsg(message: GroupInfo): GroupInfoAminoMsg; - fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo; - toProto(message: GroupInfo): Uint8Array; - toProtoMsg(message: GroupInfo): GroupInfoProtoMsg; -}; -export declare const GroupMember: { - typeUrl: string; - encode(message: GroupMember, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupMember; - fromJSON(object: any): GroupMember; - toJSON(message: GroupMember): unknown; - fromPartial(object: Partial): GroupMember; - fromAmino(object: GroupMemberAmino): GroupMember; - toAmino(message: GroupMember): GroupMemberAmino; - fromAminoMsg(object: GroupMemberAminoMsg): GroupMember; - toAminoMsg(message: GroupMember): GroupMemberAminoMsg; - fromProtoMsg(message: GroupMemberProtoMsg): GroupMember; - toProto(message: GroupMember): Uint8Array; - toProtoMsg(message: GroupMember): GroupMemberProtoMsg; -}; -export declare const GroupPolicyInfo: { - typeUrl: string; - encode(message: GroupPolicyInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo; - fromJSON(object: any): GroupPolicyInfo; - toJSON(message: GroupPolicyInfo): unknown; - fromPartial(object: Partial): GroupPolicyInfo; - fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo; - toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino; - fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo; - toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg; - fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo; - toProto(message: GroupPolicyInfo): Uint8Array; - toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromJSON(object: any): Proposal; - toJSON(message: Proposal): unknown; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromJSON(object: any): TallyResult; - toJSON(message: TallyResult): unknown; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromJSON(object: any): Vote; - toJSON(message: Vote): unknown; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; -export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; -export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/types/codegen/cosmos/lcd.d.ts b/packages/api/types/codegen/cosmos/lcd.d.ts deleted file mode 100644 index 27c805c6..00000000 --- a/packages/api/types/codegen/cosmos/lcd.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("./auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("./authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("./bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("./base/node/v1beta1/query.lcd").LCDQueryClient; - }; - tendermint: { - v1beta1: import("./base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("./distribution/v1beta1/query.lcd").LCDQueryClient; - }; - evidence: { - v1beta1: import("./evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("./gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("./gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("./group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("./mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("./nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("./params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("./slashing/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("./staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("./tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("./upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; -}>; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts deleted file mode 100644 index 664f1536..00000000 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateAmino { - /** minter is a space for holding current inflation information. */ - minter?: MinterAmino; - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts deleted file mode 100644 index ad7800a2..00000000 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/mint.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -export interface MinterProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Minter"; - value: Uint8Array; -} -/** Minter represents the minting state. */ -export interface MinterAmino { - /** current annual inflation rate */ - inflation?: string; - /** current annual expected provisions */ - annual_provisions?: string; -} -export interface MinterAminoMsg { - type: "cosmos-sdk/Minter"; - value: MinterAmino; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Params"; - value: Uint8Array; -} -/** Params holds parameters for the mint module. */ -export interface ParamsAmino { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** expected blocks per year */ - blocks_per_year?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: bigint; -} -export declare const Minter: { - typeUrl: string; - encode(message: Minter, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Minter; - fromJSON(object: any): Minter; - toJSON(message: Minter): unknown; - fromPartial(object: Partial): Minter; - fromAmino(object: MinterAmino): Minter; - toAmino(message: Minter): MinterAmino; - fromAminoMsg(object: MinterAminoMsg): Minter; - toAminoMsg(message: Minter): MinterAminoMsg; - fromProtoMsg(message: MinterProtoMsg): Minter; - toProto(message: Minter): Uint8Array; - toProtoMsg(message: Minter): MinterProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts deleted file mode 100644 index 55aa91b5..00000000 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/query.d.ts +++ /dev/null @@ -1,236 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequest { -} -export interface QueryInflationRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; - value: Uint8Array; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestAmino { -} -export interface QueryInflationRequestAminoMsg { - type: "cosmos-sdk/QueryInflationRequest"; - value: QueryInflationRequestAmino; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestSDKType { -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponse { - /** inflation is the current minting inflation value. */ - inflation: Uint8Array; -} -export interface QueryInflationResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; - value: Uint8Array; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseAmino { - /** inflation is the current minting inflation value. */ - inflation?: string; -} -export interface QueryInflationResponseAminoMsg { - type: "cosmos-sdk/QueryInflationResponse"; - value: QueryInflationResponseAmino; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseSDKType { - inflation: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequest { -} -export interface QueryAnnualProvisionsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestAmino { -} -export interface QueryAnnualProvisionsRequestAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsRequest"; - value: QueryAnnualProvisionsRequestAmino; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestSDKType { -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponse { - /** annual_provisions is the current minting annual provisions value. */ - annualProvisions: Uint8Array; -} -export interface QueryAnnualProvisionsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseAmino { - /** annual_provisions is the current minting annual provisions value. */ - annual_provisions?: string; -} -export interface QueryAnnualProvisionsResponseAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsResponse"; - value: QueryAnnualProvisionsResponseAmino; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseSDKType { - annual_provisions: Uint8Array; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryInflationRequest: { - typeUrl: string; - encode(_: QueryInflationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest; - fromJSON(_: any): QueryInflationRequest; - toJSON(_: QueryInflationRequest): unknown; - fromPartial(_: Partial): QueryInflationRequest; - fromAmino(_: QueryInflationRequestAmino): QueryInflationRequest; - toAmino(_: QueryInflationRequest): QueryInflationRequestAmino; - fromAminoMsg(object: QueryInflationRequestAminoMsg): QueryInflationRequest; - toAminoMsg(message: QueryInflationRequest): QueryInflationRequestAminoMsg; - fromProtoMsg(message: QueryInflationRequestProtoMsg): QueryInflationRequest; - toProto(message: QueryInflationRequest): Uint8Array; - toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg; -}; -export declare const QueryInflationResponse: { - typeUrl: string; - encode(message: QueryInflationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse; - fromJSON(object: any): QueryInflationResponse; - toJSON(message: QueryInflationResponse): unknown; - fromPartial(object: Partial): QueryInflationResponse; - fromAmino(object: QueryInflationResponseAmino): QueryInflationResponse; - toAmino(message: QueryInflationResponse): QueryInflationResponseAmino; - fromAminoMsg(object: QueryInflationResponseAminoMsg): QueryInflationResponse; - toAminoMsg(message: QueryInflationResponse): QueryInflationResponseAminoMsg; - fromProtoMsg(message: QueryInflationResponseProtoMsg): QueryInflationResponse; - toProto(message: QueryInflationResponse): Uint8Array; - toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg; -}; -export declare const QueryAnnualProvisionsRequest: { - typeUrl: string; - encode(_: QueryAnnualProvisionsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; - fromJSON(_: any): QueryAnnualProvisionsRequest; - toJSON(_: QueryAnnualProvisionsRequest): unknown; - fromPartial(_: Partial): QueryAnnualProvisionsRequest; - fromAmino(_: QueryAnnualProvisionsRequestAmino): QueryAnnualProvisionsRequest; - toAmino(_: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAmino; - fromAminoMsg(object: QueryAnnualProvisionsRequestAminoMsg): QueryAnnualProvisionsRequest; - toAminoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAminoMsg; - fromProtoMsg(message: QueryAnnualProvisionsRequestProtoMsg): QueryAnnualProvisionsRequest; - toProto(message: QueryAnnualProvisionsRequest): Uint8Array; - toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg; -}; -export declare const QueryAnnualProvisionsResponse: { - typeUrl: string; - encode(message: QueryAnnualProvisionsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; - fromJSON(object: any): QueryAnnualProvisionsResponse; - toJSON(message: QueryAnnualProvisionsResponse): unknown; - fromPartial(object: Partial): QueryAnnualProvisionsResponse; - fromAmino(object: QueryAnnualProvisionsResponseAmino): QueryAnnualProvisionsResponse; - toAmino(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAmino; - fromAminoMsg(object: QueryAnnualProvisionsResponseAminoMsg): QueryAnnualProvisionsResponse; - toAminoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAminoMsg; - fromProtoMsg(message: QueryAnnualProvisionsResponseProtoMsg): QueryAnnualProvisionsResponse; - toProto(message: QueryAnnualProvisionsResponse): Uint8Array; - toProtoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts deleted file mode 100644 index ba5133f7..00000000 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - inflation(_params?: QueryInflationRequest): Promise; - annualProvisions(_params?: QueryAnnualProvisionsRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/mint/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/mint/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 83fc7060..00000000 --- a/packages/api/types/codegen/cosmos/mint/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** Params returns the total set of minting parameters. */ - params(request?: QueryParamsRequest): Promise; - /** Inflation returns the current minting inflation value. */ - inflation(request?: QueryInflationRequest): Promise; - /** AnnualProvisions current minting annual provisions value. */ - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/msg/v1/msg.d.ts b/packages/api/types/codegen/cosmos/msg/v1/msg.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/types/codegen/cosmos/msg/v1/msg.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts deleted file mode 100644 index 443dd62d..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/event.d.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -export interface EventSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventSend"; - value: Uint8Array; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendAmino { - class_id?: string; - id?: string; - sender?: string; - receiver?: string; -} -export interface EventSendAminoMsg { - type: "cosmos-sdk/EventSend"; - value: EventSendAmino; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -export interface EventMintProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventMint"; - value: Uint8Array; -} -/** EventMint is emitted on Mint */ -export interface EventMintAmino { - class_id?: string; - id?: string; - owner?: string; -} -export interface EventMintAminoMsg { - type: "cosmos-sdk/EventMint"; - value: EventMintAmino; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -export interface EventBurnProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.EventBurn"; - value: Uint8Array; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnAmino { - class_id?: string; - id?: string; - owner?: string; -} -export interface EventBurnAminoMsg { - type: "cosmos-sdk/EventBurn"; - value: EventBurnAmino; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} -export declare const EventSend: { - typeUrl: string; - encode(message: EventSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSend; - fromJSON(object: any): EventSend; - toJSON(message: EventSend): unknown; - fromPartial(object: Partial): EventSend; - fromAmino(object: EventSendAmino): EventSend; - toAmino(message: EventSend): EventSendAmino; - fromAminoMsg(object: EventSendAminoMsg): EventSend; - toAminoMsg(message: EventSend): EventSendAminoMsg; - fromProtoMsg(message: EventSendProtoMsg): EventSend; - toProto(message: EventSend): Uint8Array; - toProtoMsg(message: EventSend): EventSendProtoMsg; -}; -export declare const EventMint: { - typeUrl: string; - encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventMint; - fromJSON(object: any): EventMint; - toJSON(message: EventMint): unknown; - fromPartial(object: Partial): EventMint; - fromAmino(object: EventMintAmino): EventMint; - toAmino(message: EventMint): EventMintAmino; - fromAminoMsg(object: EventMintAminoMsg): EventMint; - toAminoMsg(message: EventMint): EventMintAminoMsg; - fromProtoMsg(message: EventMintProtoMsg): EventMint; - toProto(message: EventMint): Uint8Array; - toProtoMsg(message: EventMint): EventMintProtoMsg; -}; -export declare const EventBurn: { - typeUrl: string; - encode(message: EventBurn, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBurn; - fromJSON(object: any): EventBurn; - toJSON(message: EventBurn): unknown; - fromPartial(object: Partial): EventBurn; - fromAmino(object: EventBurnAmino): EventBurn; - toAmino(message: EventBurn): EventBurnAmino; - fromAminoMsg(object: EventBurnAminoMsg): EventBurn; - toAminoMsg(message: EventBurn): EventBurnAminoMsg; - fromProtoMsg(message: EventBurnProtoMsg): EventBurn; - toProto(message: EventBurn): Uint8Array; - toProtoMsg(message: EventBurn): EventBurnProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts deleted file mode 100644 index 90535172..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Class, ClassAmino, ClassSDKType, NFT, NFTAmino, NFTSDKType } from "./nft"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateAmino { - /** class defines the class of the nft type. */ - classes?: ClassAmino[]; - entries?: EntryAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -export interface EntryProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Entry"; - value: Uint8Array; -} -/** Entry Defines all nft owned by a person */ -export interface EntryAmino { - /** owner is the owner address of the following nft */ - owner?: string; - /** nfts is a group of nfts of the same owner */ - nfts?: NFTAmino[]; -} -export interface EntryAminoMsg { - type: "cosmos-sdk/Entry"; - value: EntryAmino; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const Entry: { - typeUrl: string; - encode(message: Entry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Entry; - fromJSON(object: any): Entry; - toJSON(message: Entry): unknown; - fromPartial(object: Partial): Entry; - fromAmino(object: EntryAmino): Entry; - toAmino(message: Entry): EntryAmino; - fromAminoMsg(object: EntryAminoMsg): Entry; - toAminoMsg(message: Entry): EntryAminoMsg; - fromProtoMsg(message: EntryProtoMsg): Entry; - toProto(message: Entry): Uint8Array; - toProtoMsg(message: Entry): EntryProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts deleted file mode 100644 index c9efbaff..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/nft.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: Any; -} -export interface ClassProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.Class"; - value: Uint8Array; -} -/** Class defines the class of the nft type. */ -export interface ClassAmino { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id?: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name?: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol?: string; - /** description is a brief description of nft classification. Optional */ - description?: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri?: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uri_hash?: string; - /** data is the app specific metadata of the NFT class. Optional */ - data?: AnyAmino; -} -export interface ClassAminoMsg { - type: "cosmos-sdk/Class"; - value: ClassAmino; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data?: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data?: Any; -} -export interface NFTProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.NFT"; - value: Uint8Array; -} -/** NFT defines the NFT. */ -export interface NFTAmino { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - class_id?: string; - /** id is a unique identifier of the NFT */ - id?: string; - /** uri for the NFT metadata stored off chain */ - uri?: string; - /** uri_hash is a hash of the document pointed by uri */ - uri_hash?: string; - /** data is an app specific data of the NFT. Optional */ - data?: AnyAmino; -} -export interface NFTAminoMsg { - type: "cosmos-sdk/NFT"; - value: NFTAmino; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data?: AnySDKType; -} -export declare const Class: { - typeUrl: string; - encode(message: Class, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Class; - fromJSON(object: any): Class; - toJSON(message: Class): unknown; - fromPartial(object: Partial): Class; - fromAmino(object: ClassAmino): Class; - toAmino(message: Class): ClassAmino; - fromAminoMsg(object: ClassAminoMsg): Class; - toAminoMsg(message: Class): ClassAminoMsg; - fromProtoMsg(message: ClassProtoMsg): Class; - toProto(message: Class): Uint8Array; - toProtoMsg(message: Class): ClassProtoMsg; -}; -export declare const NFT: { - typeUrl: string; - encode(message: NFT, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): NFT; - fromJSON(object: any): NFT; - toJSON(message: NFT): unknown; - fromPartial(object: Partial): NFT; - fromAmino(object: NFTAmino): NFT; - toAmino(message: NFT): NFTAmino; - fromAminoMsg(object: NFTAminoMsg): NFT; - toAminoMsg(message: NFT): NFTAminoMsg; - fromProtoMsg(message: NFTProtoMsg): NFT; - toProto(message: NFT): Uint8Array; - toProtoMsg(message: NFT): NFTProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts deleted file mode 100644 index fb5fb02a..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/query.d.ts +++ /dev/null @@ -1,516 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { NFT, NFTAmino, NFTSDKType, Class, ClassAmino, ClassSDKType } from "./nft"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequest { - classId: string; - owner: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestAmino { - class_id?: string; - owner?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "cosmos-sdk/QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestSDKType { - class_id: string; - owner: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponse { - amount: bigint; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseAmino { - amount?: string; -} -export interface QueryBalanceResponseAminoMsg { - type: "cosmos-sdk/QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseSDKType { - amount: bigint; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequest { - classId: string; - id: string; -} -export interface QueryOwnerRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest"; - value: Uint8Array; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestAmino { - class_id?: string; - id?: string; -} -export interface QueryOwnerRequestAminoMsg { - type: "cosmos-sdk/QueryOwnerRequest"; - value: QueryOwnerRequestAmino; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestSDKType { - class_id: string; - id: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponse { - owner: string; -} -export interface QueryOwnerResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse"; - value: Uint8Array; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseAmino { - owner?: string; -} -export interface QueryOwnerResponseAminoMsg { - type: "cosmos-sdk/QueryOwnerResponse"; - value: QueryOwnerResponseAmino; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseSDKType { - owner: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequest { - classId: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestAmino { - class_id?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "cosmos-sdk/QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestSDKType { - class_id: string; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponse { - amount: bigint; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseAmino { - amount?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "cosmos-sdk/QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseSDKType { - amount: bigint; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequest { - classId: string; - owner: string; - pagination?: PageRequest; -} -export interface QueryNFTsRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest"; - value: Uint8Array; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestAmino { - class_id?: string; - owner?: string; - pagination?: PageRequestAmino; -} -export interface QueryNFTsRequestAminoMsg { - type: "cosmos-sdk/QueryNFTsRequest"; - value: QueryNFTsRequestAmino; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestSDKType { - class_id: string; - owner: string; - pagination?: PageRequestSDKType; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponse { - nfts: NFT[]; - pagination?: PageResponse; -} -export interface QueryNFTsResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse"; - value: Uint8Array; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseAmino { - nfts?: NFTAmino[]; - pagination?: PageResponseAmino; -} -export interface QueryNFTsResponseAminoMsg { - type: "cosmos-sdk/QueryNFTsResponse"; - value: QueryNFTsResponseAmino; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseSDKType { - nfts: NFTSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequest { - classId: string; - id: string; -} -export interface QueryNFTRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest"; - value: Uint8Array; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestAmino { - class_id?: string; - id?: string; -} -export interface QueryNFTRequestAminoMsg { - type: "cosmos-sdk/QueryNFTRequest"; - value: QueryNFTRequestAmino; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestSDKType { - class_id: string; - id: string; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponse { - nft?: NFT; -} -export interface QueryNFTResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse"; - value: Uint8Array; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseAmino { - nft?: NFTAmino; -} -export interface QueryNFTResponseAminoMsg { - type: "cosmos-sdk/QueryNFTResponse"; - value: QueryNFTResponseAmino; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseSDKType { - nft?: NFTSDKType; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequest { - classId: string; -} -export interface QueryClassRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest"; - value: Uint8Array; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestAmino { - class_id?: string; -} -export interface QueryClassRequestAminoMsg { - type: "cosmos-sdk/QueryClassRequest"; - value: QueryClassRequestAmino; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponse { - class?: Class; -} -export interface QueryClassResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse"; - value: Uint8Array; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseAmino { - class?: ClassAmino; -} -export interface QueryClassResponseAminoMsg { - type: "cosmos-sdk/QueryClassResponse"; - value: QueryClassResponseAmino; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseSDKType { - class?: ClassSDKType; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "cosmos-sdk/QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponse { - classes: Class[]; - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseAmino { - classes?: ClassAmino[]; - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "cosmos-sdk/QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseSDKType { - classes: ClassSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromJSON(object: any): QueryBalanceRequest; - toJSON(message: QueryBalanceRequest): unknown; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromJSON(object: any): QueryBalanceResponse; - toJSON(message: QueryBalanceResponse): unknown; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QueryOwnerRequest: { - typeUrl: string; - encode(message: QueryOwnerRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest; - fromJSON(object: any): QueryOwnerRequest; - toJSON(message: QueryOwnerRequest): unknown; - fromPartial(object: Partial): QueryOwnerRequest; - fromAmino(object: QueryOwnerRequestAmino): QueryOwnerRequest; - toAmino(message: QueryOwnerRequest): QueryOwnerRequestAmino; - fromAminoMsg(object: QueryOwnerRequestAminoMsg): QueryOwnerRequest; - toAminoMsg(message: QueryOwnerRequest): QueryOwnerRequestAminoMsg; - fromProtoMsg(message: QueryOwnerRequestProtoMsg): QueryOwnerRequest; - toProto(message: QueryOwnerRequest): Uint8Array; - toProtoMsg(message: QueryOwnerRequest): QueryOwnerRequestProtoMsg; -}; -export declare const QueryOwnerResponse: { - typeUrl: string; - encode(message: QueryOwnerResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse; - fromJSON(object: any): QueryOwnerResponse; - toJSON(message: QueryOwnerResponse): unknown; - fromPartial(object: Partial): QueryOwnerResponse; - fromAmino(object: QueryOwnerResponseAmino): QueryOwnerResponse; - toAmino(message: QueryOwnerResponse): QueryOwnerResponseAmino; - fromAminoMsg(object: QueryOwnerResponseAminoMsg): QueryOwnerResponse; - toAminoMsg(message: QueryOwnerResponse): QueryOwnerResponseAminoMsg; - fromProtoMsg(message: QueryOwnerResponseProtoMsg): QueryOwnerResponse; - toProto(message: QueryOwnerResponse): Uint8Array; - toProtoMsg(message: QueryOwnerResponse): QueryOwnerResponseProtoMsg; -}; -export declare const QuerySupplyRequest: { - typeUrl: string; - encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; - fromJSON(object: any): QuerySupplyRequest; - toJSON(message: QuerySupplyRequest): unknown; - fromPartial(object: Partial): QuerySupplyRequest; - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; - toAminoMsg(message: QuerySupplyRequest): QuerySupplyRequestAminoMsg; - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; - toProto(message: QuerySupplyRequest): Uint8Array; - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; -}; -export declare const QuerySupplyResponse: { - typeUrl: string; - encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; - fromJSON(object: any): QuerySupplyResponse; - toJSON(message: QuerySupplyResponse): unknown; - fromPartial(object: Partial): QuerySupplyResponse; - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; - toAminoMsg(message: QuerySupplyResponse): QuerySupplyResponseAminoMsg; - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; - toProto(message: QuerySupplyResponse): Uint8Array; - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; -}; -export declare const QueryNFTsRequest: { - typeUrl: string; - encode(message: QueryNFTsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest; - fromJSON(object: any): QueryNFTsRequest; - toJSON(message: QueryNFTsRequest): unknown; - fromPartial(object: Partial): QueryNFTsRequest; - fromAmino(object: QueryNFTsRequestAmino): QueryNFTsRequest; - toAmino(message: QueryNFTsRequest): QueryNFTsRequestAmino; - fromAminoMsg(object: QueryNFTsRequestAminoMsg): QueryNFTsRequest; - toAminoMsg(message: QueryNFTsRequest): QueryNFTsRequestAminoMsg; - fromProtoMsg(message: QueryNFTsRequestProtoMsg): QueryNFTsRequest; - toProto(message: QueryNFTsRequest): Uint8Array; - toProtoMsg(message: QueryNFTsRequest): QueryNFTsRequestProtoMsg; -}; -export declare const QueryNFTsResponse: { - typeUrl: string; - encode(message: QueryNFTsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse; - fromJSON(object: any): QueryNFTsResponse; - toJSON(message: QueryNFTsResponse): unknown; - fromPartial(object: Partial): QueryNFTsResponse; - fromAmino(object: QueryNFTsResponseAmino): QueryNFTsResponse; - toAmino(message: QueryNFTsResponse): QueryNFTsResponseAmino; - fromAminoMsg(object: QueryNFTsResponseAminoMsg): QueryNFTsResponse; - toAminoMsg(message: QueryNFTsResponse): QueryNFTsResponseAminoMsg; - fromProtoMsg(message: QueryNFTsResponseProtoMsg): QueryNFTsResponse; - toProto(message: QueryNFTsResponse): Uint8Array; - toProtoMsg(message: QueryNFTsResponse): QueryNFTsResponseProtoMsg; -}; -export declare const QueryNFTRequest: { - typeUrl: string; - encode(message: QueryNFTRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest; - fromJSON(object: any): QueryNFTRequest; - toJSON(message: QueryNFTRequest): unknown; - fromPartial(object: Partial): QueryNFTRequest; - fromAmino(object: QueryNFTRequestAmino): QueryNFTRequest; - toAmino(message: QueryNFTRequest): QueryNFTRequestAmino; - fromAminoMsg(object: QueryNFTRequestAminoMsg): QueryNFTRequest; - toAminoMsg(message: QueryNFTRequest): QueryNFTRequestAminoMsg; - fromProtoMsg(message: QueryNFTRequestProtoMsg): QueryNFTRequest; - toProto(message: QueryNFTRequest): Uint8Array; - toProtoMsg(message: QueryNFTRequest): QueryNFTRequestProtoMsg; -}; -export declare const QueryNFTResponse: { - typeUrl: string; - encode(message: QueryNFTResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse; - fromJSON(object: any): QueryNFTResponse; - toJSON(message: QueryNFTResponse): unknown; - fromPartial(object: Partial): QueryNFTResponse; - fromAmino(object: QueryNFTResponseAmino): QueryNFTResponse; - toAmino(message: QueryNFTResponse): QueryNFTResponseAmino; - fromAminoMsg(object: QueryNFTResponseAminoMsg): QueryNFTResponse; - toAminoMsg(message: QueryNFTResponse): QueryNFTResponseAminoMsg; - fromProtoMsg(message: QueryNFTResponseProtoMsg): QueryNFTResponse; - toProto(message: QueryNFTResponse): Uint8Array; - toProtoMsg(message: QueryNFTResponse): QueryNFTResponseProtoMsg; -}; -export declare const QueryClassRequest: { - typeUrl: string; - encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; - fromJSON(object: any): QueryClassRequest; - toJSON(message: QueryClassRequest): unknown; - fromPartial(object: Partial): QueryClassRequest; - fromAmino(object: QueryClassRequestAmino): QueryClassRequest; - toAmino(message: QueryClassRequest): QueryClassRequestAmino; - fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest; - toAminoMsg(message: QueryClassRequest): QueryClassRequestAminoMsg; - fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest; - toProto(message: QueryClassRequest): Uint8Array; - toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; -}; -export declare const QueryClassResponse: { - typeUrl: string; - encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; - fromJSON(object: any): QueryClassResponse; - toJSON(message: QueryClassResponse): unknown; - fromPartial(object: Partial): QueryClassResponse; - fromAmino(object: QueryClassResponseAmino): QueryClassResponse; - toAmino(message: QueryClassResponse): QueryClassResponseAmino; - fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse; - toAminoMsg(message: QueryClassResponse): QueryClassResponseAminoMsg; - fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse; - toProto(message: QueryClassResponse): Uint8Array; - toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; -}; -export declare const QueryClassesRequest: { - typeUrl: string; - encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; - fromJSON(object: any): QueryClassesRequest; - toJSON(message: QueryClassesRequest): unknown; - fromPartial(object: Partial): QueryClassesRequest; - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; - toAminoMsg(message: QueryClassesRequest): QueryClassesRequestAminoMsg; - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; - toProto(message: QueryClassesRequest): Uint8Array; - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; -}; -export declare const QueryClassesResponse: { - typeUrl: string; - encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; - fromJSON(object: any): QueryClassesResponse; - toJSON(message: QueryClassesResponse): unknown; - fromPartial(object: Partial): QueryClassesResponse; - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; - toAminoMsg(message: QueryClassesResponse): QueryClassesResponseAminoMsg; - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; - toProto(message: QueryClassesResponse): Uint8Array; - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts deleted file mode 100644 index 10feda33..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - balance(params: QueryBalanceRequest): Promise; - owner(params: QueryOwnerRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - nFTs(params: QueryNFTsRequest): Promise; - nFT(params: QueryNFTRequest): Promise; - class(params: QueryClassRequest): Promise; - classes(params?: QueryClassesRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index c8c650c0..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryNFTsRequest, QueryNFTsResponse, QueryNFTRequest, QueryNFTResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ - balance(request: QueryBalanceRequest): Promise; - /** Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ - owner(request: QueryOwnerRequest): Promise; - /** Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ - supply(request: QuerySupplyRequest): Promise; - /** - * NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - * ERC721Enumerable - */ - nFTs(request: QueryNFTsRequest): Promise; - /** NFT queries an NFT based on its class and id. */ - nFT(request: QueryNFTRequest): Promise; - /** Class queries an NFT class based on its id */ - class(request: QueryClassRequest): Promise; - /** Classes queries all NFT classes */ - classes(request?: QueryClassesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - balance(request: QueryBalanceRequest): Promise; - owner(request: QueryOwnerRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - nFTs(request: QueryNFTsRequest): Promise; - nFT(request: QueryNFTRequest): Promise; - class(request: QueryClassRequest): Promise; - classes(request?: QueryClassesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - balance(request: QueryBalanceRequest): Promise; - owner(request: QueryOwnerRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - nFTs(request: QueryNFTsRequest): Promise; - nFT(request: QueryNFTRequest): Promise; - class(request: QueryClassRequest): Promise; - classes(request?: QueryClassesRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts deleted file mode 100644 index a7a8328d..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgSend } from "./tx"; -export declare const AminoConverter: { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts deleted file mode 100644 index aa70b90a..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendAmino { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - class_id?: string; - /** id defines the unique identification of nft */ - id?: string; - /** sender is the address of the owner of nft */ - sender?: string; - /** receiver is the receiver address of nft */ - receiver?: string; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromJSON(object: any): MsgSend; - toJSON(message: MsgSend): unknown; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - toAminoMsg(message: MsgSend): MsgSendAminoMsg; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromJSON(_: any): MsgSendResponse; - toJSON(_: MsgSendResponse): unknown; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts deleted file mode 100644 index ab9cd65f..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - }; - toJSON: { - send(value: MsgSend): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - send(value: any): { - typeUrl: string; - value: MsgSend; - }; - }; - fromPartial: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 2c60038c..00000000 --- a/packages/api/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSend, MsgSendResponse } from "./tx"; -/** Msg defines the nft Msg service. */ -export interface Msg { - /** Send defines a method to send a nft from one account to another account. */ - send(request: MsgSend): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - send(request: MsgSend): Promise; -} diff --git a/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts b/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts deleted file mode 100644 index 6365e481..00000000 --- a/packages/api/types/codegen/cosmos/orm/module/v1alpha1/module.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface Module { -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.orm.module.v1alpha1.Module"; - value: Uint8Array; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleAmino { -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleSDKType { -} -export declare const Module: { - typeUrl: string; - encode(_: Module, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Module; - fromJSON(_: any): Module; - toJSON(_: Module): unknown; - fromPartial(_: Partial): Module; - fromAmino(_: ModuleAmino): Module; - toAmino(_: Module): ModuleAmino; - fromAminoMsg(object: ModuleAminoMsg): Module; - toAminoMsg(message: Module): ModuleAminoMsg; - fromProtoMsg(message: ModuleProtoMsg): Module; - toProto(message: Module): Uint8Array; - toProtoMsg(message: Module): ModuleProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts b/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts deleted file mode 100644 index e423bccf..00000000 --- a/packages/api/types/codegen/cosmos/orm/v1/orm.d.ts +++ /dev/null @@ -1,288 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey?: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.TableDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorAmino { - /** primary_key defines the primary key for the table. */ - primary_key?: PrimaryKeyDescriptorAmino; - /** index defines one or more secondary indexes. */ - index?: SecondaryIndexDescriptorAmino[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface TableDescriptorAminoMsg { - type: "cosmos-sdk/TableDescriptor"; - value: TableDescriptorAmino; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key?: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -export interface PrimaryKeyDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorAmino { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields?: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - auto_increment?: boolean; -} -export interface PrimaryKeyDescriptorAminoMsg { - type: "cosmos-sdk/PrimaryKeyDescriptor"; - value: PrimaryKeyDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorAmino { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields?: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id?: number; - /** unique specifies that this an unique index. */ - unique?: boolean; -} -export interface SecondaryIndexDescriptorAminoMsg { - type: "cosmos-sdk/SecondaryIndexDescriptor"; - value: SecondaryIndexDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorAmino { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface SingletonDescriptorAminoMsg { - type: "cosmos-sdk/SingletonDescriptor"; - value: SingletonDescriptorAmino; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} -export declare const TableDescriptor: { - typeUrl: string; - encode(message: TableDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor; - fromJSON(object: any): TableDescriptor; - toJSON(message: TableDescriptor): unknown; - fromPartial(object: Partial): TableDescriptor; - fromAmino(object: TableDescriptorAmino): TableDescriptor; - toAmino(message: TableDescriptor): TableDescriptorAmino; - fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor; - toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg; - fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor; - toProto(message: TableDescriptor): Uint8Array; - toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg; -}; -export declare const PrimaryKeyDescriptor: { - typeUrl: string; - encode(message: PrimaryKeyDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor; - fromJSON(object: any): PrimaryKeyDescriptor; - toJSON(message: PrimaryKeyDescriptor): unknown; - fromPartial(object: Partial): PrimaryKeyDescriptor; - fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor; - toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino; - fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor; - toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg; - fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor; - toProto(message: PrimaryKeyDescriptor): Uint8Array; - toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg; -}; -export declare const SecondaryIndexDescriptor: { - typeUrl: string; - encode(message: SecondaryIndexDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor; - fromJSON(object: any): SecondaryIndexDescriptor; - toJSON(message: SecondaryIndexDescriptor): unknown; - fromPartial(object: Partial): SecondaryIndexDescriptor; - fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor; - toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino; - fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor; - toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg; - fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor; - toProto(message: SecondaryIndexDescriptor): Uint8Array; - toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg; -}; -export declare const SingletonDescriptor: { - typeUrl: string; - encode(message: SingletonDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor; - fromJSON(object: any): SingletonDescriptor; - toJSON(message: SingletonDescriptor): unknown; - fromPartial(object: Partial): SingletonDescriptor; - fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor; - toAmino(message: SingletonDescriptor): SingletonDescriptorAmino; - fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor; - toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg; - fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor; - toProto(message: SingletonDescriptor): Uint8Array; - toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts b/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts deleted file mode 100644 index 2fc90190..00000000 --- a/packages/api/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** StorageType */ -export declare enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. - */ - STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1 -} -export declare const StorageTypeSDKType: typeof StorageType; -export declare const StorageTypeAmino: typeof StorageType; -export declare function storageTypeFromJSON(object: any): StorageType; -export declare function storageTypeToJSON(object: StorageType): string; -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -export interface ModuleSchemaDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; - value: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorAmino { - schema_file?: ModuleSchemaDescriptor_FileEntryAmino[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix?: string; -} -export interface ModuleSchemaDescriptorAminoMsg { - type: "cosmos-sdk/ModuleSchemaDescriptor"; - value: ModuleSchemaDescriptorAmino; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryProtoMsg { - typeUrl: "/cosmos.orm.v1alpha1.FileEntry"; - value: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntryAmino { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id?: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - proto_file_name?: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storage_type?: StorageType; -} -export interface ModuleSchemaDescriptor_FileEntryAminoMsg { - type: "cosmos-sdk/FileEntry"; - value: ModuleSchemaDescriptor_FileEntryAmino; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} -export declare const ModuleSchemaDescriptor: { - typeUrl: string; - encode(message: ModuleSchemaDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor; - fromJSON(object: any): ModuleSchemaDescriptor; - toJSON(message: ModuleSchemaDescriptor): unknown; - fromPartial(object: Partial): ModuleSchemaDescriptor; - fromAmino(object: ModuleSchemaDescriptorAmino): ModuleSchemaDescriptor; - toAmino(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorAmino; - fromAminoMsg(object: ModuleSchemaDescriptorAminoMsg): ModuleSchemaDescriptor; - toAminoMsg(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorAminoMsg; - fromProtoMsg(message: ModuleSchemaDescriptorProtoMsg): ModuleSchemaDescriptor; - toProto(message: ModuleSchemaDescriptor): Uint8Array; - toProtoMsg(message: ModuleSchemaDescriptor): ModuleSchemaDescriptorProtoMsg; -}; -export declare const ModuleSchemaDescriptor_FileEntry: { - typeUrl: string; - encode(message: ModuleSchemaDescriptor_FileEntry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry; - fromJSON(object: any): ModuleSchemaDescriptor_FileEntry; - toJSON(message: ModuleSchemaDescriptor_FileEntry): unknown; - fromPartial(object: Partial): ModuleSchemaDescriptor_FileEntry; - fromAmino(object: ModuleSchemaDescriptor_FileEntryAmino): ModuleSchemaDescriptor_FileEntry; - toAmino(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryAmino; - fromAminoMsg(object: ModuleSchemaDescriptor_FileEntryAminoMsg): ModuleSchemaDescriptor_FileEntry; - toAminoMsg(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryAminoMsg; - fromProtoMsg(message: ModuleSchemaDescriptor_FileEntryProtoMsg): ModuleSchemaDescriptor_FileEntry; - toProto(message: ModuleSchemaDescriptor_FileEntry): Uint8Array; - toProtoMsg(message: ModuleSchemaDescriptor_FileEntry): ModuleSchemaDescriptor_FileEntryProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts deleted file mode 100644 index 95407898..00000000 --- a/packages/api/types/codegen/cosmos/params/v1beta1/params.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChange[]; -} -export interface ParameterChangeProposalProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; - value: Uint8Array; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalAmino { - title?: string; - description?: string; - changes?: ParamChangeAmino[]; -} -export interface ParameterChangeProposalAminoMsg { - type: "cosmos-sdk/ParameterChangeProposal"; - value: ParameterChangeProposalAmino; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParamChange"; - value: Uint8Array; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeAmino { - subspace?: string; - key?: string; - value?: string; -} -export interface ParamChangeAminoMsg { - type: "cosmos-sdk/ParamChange"; - value: ParamChangeAmino; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} -export declare const ParameterChangeProposal: { - typeUrl: string; - encode(message: ParameterChangeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal; - fromJSON(object: any): ParameterChangeProposal; - toJSON(message: ParameterChangeProposal): unknown; - fromPartial(object: Partial): ParameterChangeProposal; - fromAmino(object: ParameterChangeProposalAmino): ParameterChangeProposal; - toAmino(message: ParameterChangeProposal): ParameterChangeProposalAmino; - fromAminoMsg(object: ParameterChangeProposalAminoMsg): ParameterChangeProposal; - toAminoMsg(message: ParameterChangeProposal): ParameterChangeProposalAminoMsg; - fromProtoMsg(message: ParameterChangeProposalProtoMsg): ParameterChangeProposal; - toProto(message: ParameterChangeProposal): Uint8Array; - toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg; -}; -export declare const ParamChange: { - typeUrl: string; - encode(message: ParamChange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ParamChange; - fromJSON(object: any): ParamChange; - toJSON(message: ParamChange): unknown; - fromPartial(object: Partial): ParamChange; - fromAmino(object: ParamChangeAmino): ParamChange; - toAmino(message: ParamChange): ParamChangeAmino; - fromAminoMsg(object: ParamChangeAminoMsg): ParamChange; - toAminoMsg(message: ParamChange): ParamChangeAminoMsg; - fromProtoMsg(message: ParamChangeProtoMsg): ParamChange; - toProto(message: ParamChange): Uint8Array; - toProtoMsg(message: ParamChange): ParamChangeProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts deleted file mode 100644 index c4e11a18..00000000 --- a/packages/api/types/codegen/cosmos/params/v1beta1/query.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** subspace defines the module to query the parameter for. */ - subspace: string; - /** key defines the key of the parameter in the subspace. */ - key: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** subspace defines the module to query the parameter for. */ - subspace?: string; - /** key defines the key of the parameter in the subspace. */ - key?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - subspace: string; - key: string; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** param defines the queried parameter. */ - param: ParamChange; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** param defines the queried parameter. */ - param?: ParamChangeAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - param: ParamChangeSDKType; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequest { -} -export interface QuerySubspacesRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; - value: Uint8Array; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestAmino { -} -export interface QuerySubspacesRequestAminoMsg { - type: "cosmos-sdk/QuerySubspacesRequest"; - value: QuerySubspacesRequestAmino; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestSDKType { -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponse { - subspaces: Subspace[]; -} -export interface QuerySubspacesResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; - value: Uint8Array; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseAmino { - subspaces?: SubspaceAmino[]; -} -export interface QuerySubspacesResponseAminoMsg { - type: "cosmos-sdk/QuerySubspacesResponse"; - value: QuerySubspacesResponseAmino; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseSDKType { - subspaces: SubspaceSDKType[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface Subspace { - subspace: string; - keys: string[]; -} -export interface SubspaceProtoMsg { - typeUrl: "/cosmos.params.v1beta1.Subspace"; - value: Uint8Array; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceAmino { - subspace?: string; - keys?: string[]; -} -export interface SubspaceAminoMsg { - type: "cosmos-sdk/Subspace"; - value: SubspaceAmino; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceSDKType { - subspace: string; - keys: string[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(object: any): QueryParamsRequest; - toJSON(message: QueryParamsRequest): unknown; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QuerySubspacesRequest: { - typeUrl: string; - encode(_: QuerySubspacesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest; - fromJSON(_: any): QuerySubspacesRequest; - toJSON(_: QuerySubspacesRequest): unknown; - fromPartial(_: Partial): QuerySubspacesRequest; - fromAmino(_: QuerySubspacesRequestAmino): QuerySubspacesRequest; - toAmino(_: QuerySubspacesRequest): QuerySubspacesRequestAmino; - fromAminoMsg(object: QuerySubspacesRequestAminoMsg): QuerySubspacesRequest; - toAminoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestAminoMsg; - fromProtoMsg(message: QuerySubspacesRequestProtoMsg): QuerySubspacesRequest; - toProto(message: QuerySubspacesRequest): Uint8Array; - toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg; -}; -export declare const QuerySubspacesResponse: { - typeUrl: string; - encode(message: QuerySubspacesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse; - fromJSON(object: any): QuerySubspacesResponse; - toJSON(message: QuerySubspacesResponse): unknown; - fromPartial(object: Partial): QuerySubspacesResponse; - fromAmino(object: QuerySubspacesResponseAmino): QuerySubspacesResponse; - toAmino(message: QuerySubspacesResponse): QuerySubspacesResponseAmino; - fromAminoMsg(object: QuerySubspacesResponseAminoMsg): QuerySubspacesResponse; - toAminoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseAminoMsg; - fromProtoMsg(message: QuerySubspacesResponseProtoMsg): QuerySubspacesResponse; - toProto(message: QuerySubspacesResponse): Uint8Array; - toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg; -}; -export declare const Subspace: { - typeUrl: string; - encode(message: Subspace, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Subspace; - fromJSON(object: any): Subspace; - toJSON(message: Subspace): unknown; - fromPartial(object: Partial): Subspace; - fromAmino(object: SubspaceAmino): Subspace; - toAmino(message: Subspace): SubspaceAmino; - fromAminoMsg(object: SubspaceAminoMsg): Subspace; - toAminoMsg(message: Subspace): SubspaceAminoMsg; - fromProtoMsg(message: SubspaceProtoMsg): Subspace; - toProto(message: Subspace): Uint8Array; - toProtoMsg(message: Subspace): SubspaceProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts deleted file mode 100644 index aaa5da47..00000000 --- a/packages/api/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(params: QueryParamsRequest): Promise; - subspaces(_params?: QuerySubspacesRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/params/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/params/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 2fd53465..00000000 --- a/packages/api/types/codegen/cosmos/params/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Params queries a specific parameter of a module, given its subspace and - * key. - */ - params(request: QueryParamsRequest): Promise; - /** - * Subspaces queries for all registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/rpc.query.d.ts b/packages/api/types/codegen/cosmos/rpc.query.d.ts deleted file mode 100644 index 2b68bb0f..00000000 --- a/packages/api/types/codegen/cosmos/rpc.query.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: import("./app/v1alpha1/query").QueryConfigRequest | undefined): Promise; - }; - }; - auth: { - v1beta1: { - accounts(request?: import("./auth/v1beta1/query").QueryAccountsRequest | undefined): Promise; - account(request: import("./auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("./auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("./auth/v1beta1/query").QueryParamsRequest | undefined): Promise; - moduleAccounts(request?: import("./auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise; - moduleAccountByName(request: import("./auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("./auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise; - addressBytesToString(request: import("./auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("./auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("./authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("./authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("./authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("./bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("./bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("./bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("./bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise; - supplyOf(request: import("./bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("./bank/v1beta1/query").QueryParamsRequest | undefined): Promise; - denomMetadata(request: import("./bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("./bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise; - denomOwners(request: import("./bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("./base/node/v1beta1/query").ConfigRequest | undefined): Promise; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: import("./base/tendermint/v1beta1/query").GetNodeInfoRequest | undefined): Promise; - getSyncing(request?: import("./base/tendermint/v1beta1/query").GetSyncingRequest | undefined): Promise; - getLatestBlock(request?: import("./base/tendermint/v1beta1/query").GetLatestBlockRequest | undefined): Promise; - getBlockByHeight(request: import("./base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("./base/tendermint/v1beta1/query").GetLatestValidatorSetRequest | undefined): Promise; - getValidatorSetByHeight(request: import("./base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: import("./base/tendermint/v1beta1/query").ABCIQueryRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("./distribution/v1beta1/query").QueryParamsRequest | undefined): Promise; - validatorOutstandingRewards(request: import("./distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("./distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("./distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("./distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("./distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("./distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("./distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("./distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise; - }; - }; - evidence: { - v1beta1: { - evidence(request: import("./evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("./evidence/v1beta1/query").QueryAllEvidenceRequest | undefined): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("./feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("./feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("./feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("./gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("./gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("./gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("./gov/v1/query").QueryVotesRequest): Promise; - params(request: import("./gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("./gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("./gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("./gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("./gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("./gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("./gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("./gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("./gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("./gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("./gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("./gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("./group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("./group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("./group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("./group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("./group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("./group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("./group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("./group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("./group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("./group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("./group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("./group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("./group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("./mint/v1beta1/query").QueryParamsRequest | undefined): Promise; - inflation(request?: import("./mint/v1beta1/query").QueryInflationRequest | undefined): Promise; - annualProvisions(request?: import("./mint/v1beta1/query").QueryAnnualProvisionsRequest | undefined): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("./nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("./nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("./nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("./nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("./nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("./nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("./nft/v1beta1/query").QueryClassesRequest | undefined): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("./params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("./params/v1beta1/query").QuerySubspacesRequest | undefined): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("./slashing/v1beta1/query").QueryParamsRequest | undefined): Promise; - signingInfo(request: import("./slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("./slashing/v1beta1/query").QuerySigningInfosRequest | undefined): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("./staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("./staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("./staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("./staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("./staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("./staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("./staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("./staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("./staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("./staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("./staking/v1beta1/query").QueryPoolRequest | undefined): Promise; - params(request?: import("./staking/v1beta1/query").QueryParamsRequest | undefined): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("./tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("./tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("./tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("./tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("./tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("./upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise; - appliedPlan(request: import("./upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("./upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("./upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("./upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise; - }; - }; - }; -}>; diff --git a/packages/api/types/codegen/cosmos/rpc.tx.d.ts b/packages/api/types/codegen/cosmos/rpc.tx.d.ts deleted file mode 100644 index 4e07ea0a..00000000 --- a/packages/api/types/codegen/cosmos/rpc.tx.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("./authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("./bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - crisis: { - v1beta1: import("./crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("./distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - evidence: { - v1beta1: import("./evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("./gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("./gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("./group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("./nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("./slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("./staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("./upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("./vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; -}>; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts deleted file mode 100644 index 8d9910f7..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signing_infos?: SigningInfoAmino[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missed_blocks?: ValidatorMissedBlocksAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -export interface SigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.SigningInfo"; - value: Uint8Array; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoAmino { - /** address is the validator address. */ - address?: string; - /** validator_signing_info represents the signing info of this validator. */ - validator_signing_info?: ValidatorSigningInfoAmino; -} -export interface SigningInfoAminoMsg { - type: "cosmos-sdk/SigningInfo"; - value: SigningInfoAmino; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -export interface ValidatorMissedBlocksProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks"; - value: Uint8Array; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksAmino { - /** address is the validator address. */ - address?: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missed_blocks?: MissedBlockAmino[]; -} -export interface ValidatorMissedBlocksAminoMsg { - type: "cosmos-sdk/ValidatorMissedBlocks"; - value: ValidatorMissedBlocksAmino; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: bigint; - /** missed is the missed status. */ - missed: boolean; -} -export interface MissedBlockProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MissedBlock"; - value: Uint8Array; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockAmino { - /** index is the height at which the block was missed. */ - index?: string; - /** missed is the missed status. */ - missed?: boolean; -} -export interface MissedBlockAminoMsg { - type: "cosmos-sdk/MissedBlock"; - value: MissedBlockAmino; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: bigint; - missed: boolean; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const SigningInfo: { - typeUrl: string; - encode(message: SigningInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SigningInfo; - fromJSON(object: any): SigningInfo; - toJSON(message: SigningInfo): unknown; - fromPartial(object: Partial): SigningInfo; - fromAmino(object: SigningInfoAmino): SigningInfo; - toAmino(message: SigningInfo): SigningInfoAmino; - fromAminoMsg(object: SigningInfoAminoMsg): SigningInfo; - toAminoMsg(message: SigningInfo): SigningInfoAminoMsg; - fromProtoMsg(message: SigningInfoProtoMsg): SigningInfo; - toProto(message: SigningInfo): Uint8Array; - toProtoMsg(message: SigningInfo): SigningInfoProtoMsg; -}; -export declare const ValidatorMissedBlocks: { - typeUrl: string; - encode(message: ValidatorMissedBlocks, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorMissedBlocks; - fromJSON(object: any): ValidatorMissedBlocks; - toJSON(message: ValidatorMissedBlocks): unknown; - fromPartial(object: Partial): ValidatorMissedBlocks; - fromAmino(object: ValidatorMissedBlocksAmino): ValidatorMissedBlocks; - toAmino(message: ValidatorMissedBlocks): ValidatorMissedBlocksAmino; - fromAminoMsg(object: ValidatorMissedBlocksAminoMsg): ValidatorMissedBlocks; - toAminoMsg(message: ValidatorMissedBlocks): ValidatorMissedBlocksAminoMsg; - fromProtoMsg(message: ValidatorMissedBlocksProtoMsg): ValidatorMissedBlocks; - toProto(message: ValidatorMissedBlocks): Uint8Array; - toProtoMsg(message: ValidatorMissedBlocks): ValidatorMissedBlocksProtoMsg; -}; -export declare const MissedBlock: { - typeUrl: string; - encode(message: MissedBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MissedBlock; - fromJSON(object: any): MissedBlock; - toJSON(message: MissedBlock): unknown; - fromPartial(object: Partial): MissedBlock; - fromAmino(object: MissedBlockAmino): MissedBlock; - toAmino(message: MissedBlock): MissedBlockAmino; - fromAminoMsg(object: MissedBlockAminoMsg): MissedBlock; - toAminoMsg(message: MissedBlock): MissedBlockAminoMsg; - fromProtoMsg(message: MissedBlockProtoMsg): MissedBlock; - toProto(message: MissedBlock): Uint8Array; - toProtoMsg(message: MissedBlock): MissedBlockProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts deleted file mode 100644 index 650f43a4..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.d.ts +++ /dev/null @@ -1,255 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoAmino, ValidatorSigningInfoSDKType } from "./slashing"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseAmino { - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequest { - /** cons_address is the address to query signing info of */ - consAddress: string; -} -export interface QuerySigningInfoRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest"; - value: Uint8Array; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestAmino { - /** cons_address is the address to query signing info of */ - cons_address?: string; -} -export interface QuerySigningInfoRequestAminoMsg { - type: "cosmos-sdk/QuerySigningInfoRequest"; - value: QuerySigningInfoRequestAmino; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestSDKType { - cons_address: string; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponse { - /** val_signing_info is the signing info of requested val cons address */ - valSigningInfo: ValidatorSigningInfo; -} -export interface QuerySigningInfoResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse"; - value: Uint8Array; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseAmino { - /** val_signing_info is the signing info of requested val cons address */ - val_signing_info?: ValidatorSigningInfoAmino; -} -export interface QuerySigningInfoResponseAminoMsg { - type: "cosmos-sdk/QuerySigningInfoResponse"; - value: QuerySigningInfoResponseAmino; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseSDKType { - val_signing_info: ValidatorSigningInfoSDKType; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequest { - pagination?: PageRequest; -} -export interface QuerySigningInfosRequestProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest"; - value: Uint8Array; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestAmino { - pagination?: PageRequestAmino; -} -export interface QuerySigningInfosRequestAminoMsg { - type: "cosmos-sdk/QuerySigningInfosRequest"; - value: QuerySigningInfosRequestAmino; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponse { - /** info is the signing info of all validators */ - info: ValidatorSigningInfo[]; - pagination?: PageResponse; -} -export interface QuerySigningInfosResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse"; - value: Uint8Array; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseAmino { - /** info is the signing info of all validators */ - info?: ValidatorSigningInfoAmino[]; - pagination?: PageResponseAmino; -} -export interface QuerySigningInfosResponseAminoMsg { - type: "cosmos-sdk/QuerySigningInfosResponse"; - value: QuerySigningInfosResponseAmino; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseSDKType { - info: ValidatorSigningInfoSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QuerySigningInfoRequest: { - typeUrl: string; - encode(message: QuerySigningInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoRequest; - fromJSON(object: any): QuerySigningInfoRequest; - toJSON(message: QuerySigningInfoRequest): unknown; - fromPartial(object: Partial): QuerySigningInfoRequest; - fromAmino(object: QuerySigningInfoRequestAmino): QuerySigningInfoRequest; - toAmino(message: QuerySigningInfoRequest): QuerySigningInfoRequestAmino; - fromAminoMsg(object: QuerySigningInfoRequestAminoMsg): QuerySigningInfoRequest; - toAminoMsg(message: QuerySigningInfoRequest): QuerySigningInfoRequestAminoMsg; - fromProtoMsg(message: QuerySigningInfoRequestProtoMsg): QuerySigningInfoRequest; - toProto(message: QuerySigningInfoRequest): Uint8Array; - toProtoMsg(message: QuerySigningInfoRequest): QuerySigningInfoRequestProtoMsg; -}; -export declare const QuerySigningInfoResponse: { - typeUrl: string; - encode(message: QuerySigningInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfoResponse; - fromJSON(object: any): QuerySigningInfoResponse; - toJSON(message: QuerySigningInfoResponse): unknown; - fromPartial(object: Partial): QuerySigningInfoResponse; - fromAmino(object: QuerySigningInfoResponseAmino): QuerySigningInfoResponse; - toAmino(message: QuerySigningInfoResponse): QuerySigningInfoResponseAmino; - fromAminoMsg(object: QuerySigningInfoResponseAminoMsg): QuerySigningInfoResponse; - toAminoMsg(message: QuerySigningInfoResponse): QuerySigningInfoResponseAminoMsg; - fromProtoMsg(message: QuerySigningInfoResponseProtoMsg): QuerySigningInfoResponse; - toProto(message: QuerySigningInfoResponse): Uint8Array; - toProtoMsg(message: QuerySigningInfoResponse): QuerySigningInfoResponseProtoMsg; -}; -export declare const QuerySigningInfosRequest: { - typeUrl: string; - encode(message: QuerySigningInfosRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosRequest; - fromJSON(object: any): QuerySigningInfosRequest; - toJSON(message: QuerySigningInfosRequest): unknown; - fromPartial(object: Partial): QuerySigningInfosRequest; - fromAmino(object: QuerySigningInfosRequestAmino): QuerySigningInfosRequest; - toAmino(message: QuerySigningInfosRequest): QuerySigningInfosRequestAmino; - fromAminoMsg(object: QuerySigningInfosRequestAminoMsg): QuerySigningInfosRequest; - toAminoMsg(message: QuerySigningInfosRequest): QuerySigningInfosRequestAminoMsg; - fromProtoMsg(message: QuerySigningInfosRequestProtoMsg): QuerySigningInfosRequest; - toProto(message: QuerySigningInfosRequest): Uint8Array; - toProtoMsg(message: QuerySigningInfosRequest): QuerySigningInfosRequestProtoMsg; -}; -export declare const QuerySigningInfosResponse: { - typeUrl: string; - encode(message: QuerySigningInfosResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySigningInfosResponse; - fromJSON(object: any): QuerySigningInfosResponse; - toJSON(message: QuerySigningInfosResponse): unknown; - fromPartial(object: Partial): QuerySigningInfosResponse; - fromAmino(object: QuerySigningInfosResponseAmino): QuerySigningInfosResponse; - toAmino(message: QuerySigningInfosResponse): QuerySigningInfosResponseAmino; - fromAminoMsg(object: QuerySigningInfosResponseAminoMsg): QuerySigningInfosResponse; - toAminoMsg(message: QuerySigningInfosResponse): QuerySigningInfosResponseAminoMsg; - fromProtoMsg(message: QuerySigningInfosResponseProtoMsg): QuerySigningInfosResponse; - toProto(message: QuerySigningInfosResponse): Uint8Array; - toProtoMsg(message: QuerySigningInfosResponse): QuerySigningInfosResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts deleted file mode 100644 index 01330138..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - signingInfo(params: QuerySigningInfoRequest): Promise; - signingInfos(params?: QuerySigningInfosRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index ff339175..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySigningInfoRequest, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfosResponse } from "./query"; -/** Query provides defines the gRPC querier service */ -export interface Query { - /** Params queries the parameters of slashing module */ - params(request?: QueryParamsRequest): Promise; - /** SigningInfo queries the signing info of given cons address */ - signingInfo(request: QuerySigningInfoRequest): Promise; - /** SigningInfos queries signing info of all validators */ - signingInfos(request?: QuerySigningInfosRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - signingInfo(request: QuerySigningInfoRequest): Promise; - signingInfos(request?: QuerySigningInfosRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - signingInfo(request: QuerySigningInfoRequest): Promise; - signingInfos(request?: QuerySigningInfosRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts deleted file mode 100644 index 29759643..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: bigint; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - indexOffset: bigint; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Timestamp; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: bigint; -} -export interface ValidatorSigningInfoProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; - value: Uint8Array; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoAmino { - address?: string; - /** Height at which validator was first a candidate OR was unjailed */ - start_height?: string; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - index_offset?: string; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailed_until?: string; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned?: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missed_blocks_counter?: string; -} -export interface ValidatorSigningInfoAminoMsg { - type: "cosmos-sdk/ValidatorSigningInfo"; - value: ValidatorSigningInfoAmino; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: bigint; - index_offset: bigint; - jailed_until: TimestampSDKType; - tombstoned: boolean; - missed_blocks_counter: bigint; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: bigint; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.Params"; - value: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsAmino { - signed_blocks_window?: string; - min_signed_per_window?: string; - downtime_jail_duration?: DurationAmino; - slash_fraction_double_sign?: string; - slash_fraction_downtime?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: bigint; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -export declare const ValidatorSigningInfo: { - typeUrl: string; - encode(message: ValidatorSigningInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSigningInfo; - fromJSON(object: any): ValidatorSigningInfo; - toJSON(message: ValidatorSigningInfo): unknown; - fromPartial(object: Partial): ValidatorSigningInfo; - fromAmino(object: ValidatorSigningInfoAmino): ValidatorSigningInfo; - toAmino(message: ValidatorSigningInfo): ValidatorSigningInfoAmino; - fromAminoMsg(object: ValidatorSigningInfoAminoMsg): ValidatorSigningInfo; - toAminoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoAminoMsg; - fromProtoMsg(message: ValidatorSigningInfoProtoMsg): ValidatorSigningInfo; - toProto(message: ValidatorSigningInfo): Uint8Array; - toProtoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts deleted file mode 100644 index 691bfe90..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgUnjail } from "./tx"; -export declare const AminoConverter: { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: (message: MsgUnjail) => import("./tx").MsgUnjailAmino; - fromAmino: (object: import("./tx").MsgUnjailAmino) => MsgUnjail; - }; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts deleted file mode 100644 index e73df8a2..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -export interface MsgUnjailProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail"; - value: Uint8Array; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailAmino { - validator_addr: string; -} -export interface MsgUnjailAminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: MsgUnjailAmino; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse { -} -export interface MsgUnjailResponseProtoMsg { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse"; - value: Uint8Array; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseAmino { -} -export interface MsgUnjailResponseAminoMsg { - type: "cosmos-sdk/MsgUnjailResponse"; - value: MsgUnjailResponseAmino; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType { -} -export declare const MsgUnjail: { - typeUrl: string; - encode(message: MsgUnjail, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjail; - fromJSON(object: any): MsgUnjail; - toJSON(message: MsgUnjail): unknown; - fromPartial(object: Partial): MsgUnjail; - fromAmino(object: MsgUnjailAmino): MsgUnjail; - toAmino(message: MsgUnjail): MsgUnjailAmino; - fromAminoMsg(object: MsgUnjailAminoMsg): MsgUnjail; - toAminoMsg(message: MsgUnjail): MsgUnjailAminoMsg; - fromProtoMsg(message: MsgUnjailProtoMsg): MsgUnjail; - toProto(message: MsgUnjail): Uint8Array; - toProtoMsg(message: MsgUnjail): MsgUnjailProtoMsg; -}; -export declare const MsgUnjailResponse: { - typeUrl: string; - encode(_: MsgUnjailResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjailResponse; - fromJSON(_: any): MsgUnjailResponse; - toJSON(_: MsgUnjailResponse): unknown; - fromPartial(_: Partial): MsgUnjailResponse; - fromAmino(_: MsgUnjailResponseAmino): MsgUnjailResponse; - toAmino(_: MsgUnjailResponse): MsgUnjailResponseAmino; - fromAminoMsg(object: MsgUnjailResponseAminoMsg): MsgUnjailResponse; - toAminoMsg(message: MsgUnjailResponse): MsgUnjailResponseAminoMsg; - fromProtoMsg(message: MsgUnjailResponseProtoMsg): MsgUnjailResponse; - toProto(message: MsgUnjailResponse): Uint8Array; - toProtoMsg(message: MsgUnjailResponse): MsgUnjailResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts deleted file mode 100644 index dc72f4cf..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgUnjail } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: MsgUnjail; - }; - }; - toJSON: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - unjail(value: any): { - typeUrl: string; - value: MsgUnjail; - }; - }; - fromPartial: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: MsgUnjail; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 706396b1..00000000 --- a/packages/api/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgUnjail, MsgUnjailResponse } from "./tx"; -/** Msg defines the slashing Msg service. */ -export interface Msg { - /** - * Unjail defines a method for unjailing a jailed validator, thus returning - * them into the bonded validator set, so they can begin receiving provisions - * and rewards again. - */ - unjail(request: MsgUnjail): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - unjail(request: MsgUnjail): Promise; -} diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts deleted file mode 100644 index d31749d7..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/authz.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export declare enum AuthorizationType { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AUTHORIZATION_TYPE_UNSPECIFIED = 0, - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AUTHORIZATION_TYPE_DELEGATE = 1, - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AUTHORIZATION_TYPE_UNDELEGATE = 2, - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AUTHORIZATION_TYPE_REDELEGATE = 3, - UNRECOGNIZED = -1 -} -export declare const AuthorizationTypeSDKType: typeof AuthorizationType; -export declare const AuthorizationTypeAmino: typeof AuthorizationType; -export declare function authorizationTypeFromJSON(object: any): AuthorizationType; -export declare function authorizationTypeToJSON(object: AuthorizationType): string; -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorization { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - maxTokens?: Coin; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allowList?: StakeAuthorization_Validators; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - denyList?: StakeAuthorization_Validators; - /** authorization_type defines one of AuthorizationType. */ - authorizationType: AuthorizationType; -} -export interface StakeAuthorizationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; - value: Uint8Array; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationAmino { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - max_tokens?: CoinAmino; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allow_list?: StakeAuthorization_ValidatorsAmino; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - deny_list?: StakeAuthorization_ValidatorsAmino; - /** authorization_type defines one of AuthorizationType. */ - authorization_type?: AuthorizationType; -} -export interface StakeAuthorizationAminoMsg { - type: "cosmos-sdk/StakeAuthorization"; - value: StakeAuthorizationAmino; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationSDKType { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - max_tokens?: CoinSDKType; - allow_list?: StakeAuthorization_ValidatorsSDKType; - deny_list?: StakeAuthorization_ValidatorsSDKType; - authorization_type: AuthorizationType; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_Validators { - address: string[]; -} -export interface StakeAuthorization_ValidatorsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validators"; - value: Uint8Array; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsAmino { - address?: string[]; -} -export interface StakeAuthorization_ValidatorsAminoMsg { - type: "cosmos-sdk/Validators"; - value: StakeAuthorization_ValidatorsAmino; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsSDKType { - address: string[]; -} -export declare const StakeAuthorization: { - typeUrl: string; - encode(message: StakeAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization; - fromJSON(object: any): StakeAuthorization; - toJSON(message: StakeAuthorization): unknown; - fromPartial(object: Partial): StakeAuthorization; - fromAmino(object: StakeAuthorizationAmino): StakeAuthorization; - toAmino(message: StakeAuthorization): StakeAuthorizationAmino; - fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization; - toAminoMsg(message: StakeAuthorization): StakeAuthorizationAminoMsg; - fromProtoMsg(message: StakeAuthorizationProtoMsg): StakeAuthorization; - toProto(message: StakeAuthorization): Uint8Array; - toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg; -}; -export declare const StakeAuthorization_Validators: { - typeUrl: string; - encode(message: StakeAuthorization_Validators, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators; - fromJSON(object: any): StakeAuthorization_Validators; - toJSON(message: StakeAuthorization_Validators): unknown; - fromPartial(object: Partial): StakeAuthorization_Validators; - fromAmino(object: StakeAuthorization_ValidatorsAmino): StakeAuthorization_Validators; - toAmino(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAmino; - fromAminoMsg(object: StakeAuthorization_ValidatorsAminoMsg): StakeAuthorization_Validators; - toAminoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAminoMsg; - fromProtoMsg(message: StakeAuthorization_ValidatorsProtoMsg): StakeAuthorization_Validators; - toProto(message: StakeAuthorization_Validators): Uint8Array; - toProtoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts deleted file mode 100644 index 38b8d6df..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - lastTotalPower: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - lastValidatorPowers: LastValidatorPower[]; - /** delegations defines the validator set at genesis. */ - validators: Validator[]; - /** delegations defines the delegations active at genesis. */ - delegations: Delegation[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbondingDelegations: UnbondingDelegation[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: Redelegation[]; - exported: boolean; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - last_total_power?: string; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - last_validator_powers?: LastValidatorPowerAmino[]; - /** delegations defines the validator set at genesis. */ - validators?: ValidatorAmino[]; - /** delegations defines the delegations active at genesis. */ - delegations?: DelegationAmino[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations?: UnbondingDelegationAmino[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations?: RedelegationAmino[]; - exported?: boolean; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - last_total_power: Uint8Array; - last_validator_powers: LastValidatorPowerSDKType[]; - validators: ValidatorSDKType[]; - delegations: DelegationSDKType[]; - unbonding_delegations: UnbondingDelegationSDKType[]; - redelegations: RedelegationSDKType[]; - exported: boolean; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPower { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: bigint; -} -export interface LastValidatorPowerProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; - value: Uint8Array; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerAmino { - /** address is the address of the validator. */ - address?: string; - /** power defines the power of the validator. */ - power?: string; -} -export interface LastValidatorPowerAminoMsg { - type: "cosmos-sdk/LastValidatorPower"; - value: LastValidatorPowerAmino; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerSDKType { - address: string; - power: bigint; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const LastValidatorPower: { - typeUrl: string; - encode(message: LastValidatorPower, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower; - fromJSON(object: any): LastValidatorPower; - toJSON(message: LastValidatorPower): unknown; - fromPartial(object: Partial): LastValidatorPower; - fromAmino(object: LastValidatorPowerAmino): LastValidatorPower; - toAmino(message: LastValidatorPower): LastValidatorPowerAmino; - fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower; - toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg; - fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower; - toProto(message: LastValidatorPower): Uint8Array; - toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts deleted file mode 100644 index a1f0d75b..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/query.d.ts +++ /dev/null @@ -1,1278 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequest { - /** status enables to query for validators matching a given status. */ - status: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; - value: Uint8Array; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestAmino { - /** status enables to query for validators matching a given status. */ - status?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorsRequest"; - value: QueryValidatorsRequestAmino; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestSDKType { - status: string; - pagination?: PageRequestSDKType; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponse { - /** validators contains all the queried validators. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; - value: Uint8Array; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseAmino { - /** validators contains all the queried validators. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorsResponse"; - value: QueryValidatorsResponseAmino; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; - value: Uint8Array; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorRequest"; - value: QueryValidatorRequestAmino; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestSDKType { - validator_addr: string; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; - value: Uint8Array; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorResponse"; - value: QueryValidatorResponseAmino; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsRequest"; - value: QueryValidatorDelegationsRequestAmino; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponse { - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseAmino { - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsResponse"; - value: QueryValidatorDelegationsResponseAmino; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest"; - value: QueryValidatorUnbondingDelegationsRequestAmino; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse"; - value: QueryValidatorUnbondingDelegationsResponseAmino; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; - value: Uint8Array; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRequest"; - value: QueryDelegationRequestAmino; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponse { - /** delegation_responses defines the delegation info of a delegation. */ - delegationResponse?: DelegationResponse; -} -export interface QueryDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; - value: Uint8Array; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseAmino { - /** delegation_responses defines the delegation info of a delegation. */ - delegation_response?: DelegationResponseAmino; -} -export interface QueryDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationResponse"; - value: QueryDelegationResponseAmino; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseSDKType { - delegation_response?: DelegationResponseSDKType; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryUnbondingDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryUnbondingDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationRequest"; - value: QueryUnbondingDelegationRequestAmino; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponse { - /** unbond defines the unbonding information of a delegation. */ - unbond: UnbondingDelegation; -} -export interface QueryUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseAmino { - /** unbond defines the unbonding information of a delegation. */ - unbond?: UnbondingDelegationAmino; -} -export interface QueryUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationResponse"; - value: QueryUnbondingDelegationResponseAmino; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseSDKType { - unbond: UnbondingDelegationSDKType; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest"; - value: QueryDelegatorDelegationsRequestAmino; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponse { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseAmino { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse"; - value: QueryDelegatorDelegationsResponseAmino; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest"; - value: QueryDelegatorUnbondingDelegationsRequestAmino; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse"; - value: QueryDelegatorUnbondingDelegationsResponseAmino; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** src_validator_addr defines the validator address to redelegate from. */ - srcValidatorAddr: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dstValidatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryRedelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; - value: Uint8Array; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** src_validator_addr defines the validator address to redelegate from. */ - src_validator_addr?: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dst_validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryRedelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryRedelegationsRequest"; - value: QueryRedelegationsRequestAmino; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestSDKType { - delegator_addr: string; - src_validator_addr: string; - dst_validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponse { - redelegationResponses: RedelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryRedelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; - value: Uint8Array; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseAmino { - redelegation_responses?: RedelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryRedelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryRedelegationsResponse"; - value: QueryRedelegationsResponseAmino; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseSDKType { - redelegation_responses: RedelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators' info of a delegator. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators' info of a delegator. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegatorValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegatorValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorRequest"; - value: QueryDelegatorValidatorRequestAmino; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryDelegatorValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryDelegatorValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorResponse"; - value: QueryDelegatorValidatorResponseAmino; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequest { - /** height defines at which height to query the historical info. */ - height: bigint; -} -export interface QueryHistoricalInfoRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestAmino { - /** height defines at which height to query the historical info. */ - height?: string; -} -export interface QueryHistoricalInfoRequestAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoRequest"; - value: QueryHistoricalInfoRequestAmino; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestSDKType { - height: bigint; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponse { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfo; -} -export interface QueryHistoricalInfoResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseAmino { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfoAmino; -} -export interface QueryHistoricalInfoResponseAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoResponse"; - value: QueryHistoricalInfoResponseAmino; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseSDKType { - hist?: HistoricalInfoSDKType; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequest { -} -export interface QueryPoolRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; - value: Uint8Array; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestAmino { -} -export interface QueryPoolRequestAminoMsg { - type: "cosmos-sdk/QueryPoolRequest"; - value: QueryPoolRequestAmino; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestSDKType { -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponse { - /** pool defines the pool info. */ - pool: Pool; -} -export interface QueryPoolResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; - value: Uint8Array; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseAmino { - /** pool defines the pool info. */ - pool?: PoolAmino; -} -export interface QueryPoolResponseAminoMsg { - type: "cosmos-sdk/QueryPoolResponse"; - value: QueryPoolResponseAmino; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseSDKType { - pool: PoolSDKType; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params holds all the parameters of this module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params holds all the parameters of this module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -export declare const QueryValidatorsRequest: { - typeUrl: string; - encode(message: QueryValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest; - fromJSON(object: any): QueryValidatorsRequest; - toJSON(message: QueryValidatorsRequest): unknown; - fromPartial(object: Partial): QueryValidatorsRequest; - fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest; - toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino; - fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest; - toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest; - toProto(message: QueryValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg; -}; -export declare const QueryValidatorsResponse: { - typeUrl: string; - encode(message: QueryValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse; - fromJSON(object: any): QueryValidatorsResponse; - toJSON(message: QueryValidatorsResponse): unknown; - fromPartial(object: Partial): QueryValidatorsResponse; - fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse; - toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino; - fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse; - toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse; - toProto(message: QueryValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg; -}; -export declare const QueryValidatorRequest: { - typeUrl: string; - encode(message: QueryValidatorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest; - fromJSON(object: any): QueryValidatorRequest; - toJSON(message: QueryValidatorRequest): unknown; - fromPartial(object: Partial): QueryValidatorRequest; - fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest; - toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino; - fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest; - toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg; - fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest; - toProto(message: QueryValidatorRequest): Uint8Array; - toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg; -}; -export declare const QueryValidatorResponse: { - typeUrl: string; - encode(message: QueryValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse; - fromJSON(object: any): QueryValidatorResponse; - toJSON(message: QueryValidatorResponse): unknown; - fromPartial(object: Partial): QueryValidatorResponse; - fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse; - toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino; - fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse; - toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg; - fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse; - toProto(message: QueryValidatorResponse): Uint8Array; - toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg; -}; -export declare const QueryValidatorDelegationsRequest: { - typeUrl: string; - encode(message: QueryValidatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; - fromJSON(object: any): QueryValidatorDelegationsRequest; - toJSON(message: QueryValidatorDelegationsRequest): unknown; - fromPartial(object: Partial): QueryValidatorDelegationsRequest; - fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest; - toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino; - fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest; - toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest; - toProto(message: QueryValidatorDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg; -}; -export declare const QueryValidatorDelegationsResponse: { - typeUrl: string; - encode(message: QueryValidatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; - fromJSON(object: any): QueryValidatorDelegationsResponse; - toJSON(message: QueryValidatorDelegationsResponse): unknown; - fromPartial(object: Partial): QueryValidatorDelegationsResponse; - fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse; - toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino; - fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse; - toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse; - toProto(message: QueryValidatorDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg; -}; -export declare const QueryValidatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; - fromJSON(object: any): QueryValidatorUnbondingDelegationsRequest; - toJSON(message: QueryValidatorUnbondingDelegationsRequest): unknown; - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest; - fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest; - toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest; - toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest; - toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg; -}; -export declare const QueryValidatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; - fromJSON(object: any): QueryValidatorUnbondingDelegationsResponse; - toJSON(message: QueryValidatorUnbondingDelegationsResponse): unknown; - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse; - fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse; - toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse; - toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse; - toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg; -}; -export declare const QueryDelegationRequest: { - typeUrl: string; - encode(message: QueryDelegationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest; - fromJSON(object: any): QueryDelegationRequest; - toJSON(message: QueryDelegationRequest): unknown; - fromPartial(object: Partial): QueryDelegationRequest; - fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest; - toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino; - fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest; - toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg; - fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest; - toProto(message: QueryDelegationRequest): Uint8Array; - toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg; -}; -export declare const QueryDelegationResponse: { - typeUrl: string; - encode(message: QueryDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse; - fromJSON(object: any): QueryDelegationResponse; - toJSON(message: QueryDelegationResponse): unknown; - fromPartial(object: Partial): QueryDelegationResponse; - fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse; - toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino; - fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse; - toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg; - fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse; - toProto(message: QueryDelegationResponse): Uint8Array; - toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg; -}; -export declare const QueryUnbondingDelegationRequest: { - typeUrl: string; - encode(message: QueryUnbondingDelegationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; - fromJSON(object: any): QueryUnbondingDelegationRequest; - toJSON(message: QueryUnbondingDelegationRequest): unknown; - fromPartial(object: Partial): QueryUnbondingDelegationRequest; - fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest; - toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino; - fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest; - toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg; - fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest; - toProto(message: QueryUnbondingDelegationRequest): Uint8Array; - toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg; -}; -export declare const QueryUnbondingDelegationResponse: { - typeUrl: string; - encode(message: QueryUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; - fromJSON(object: any): QueryUnbondingDelegationResponse; - toJSON(message: QueryUnbondingDelegationResponse): unknown; - fromPartial(object: Partial): QueryUnbondingDelegationResponse; - fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse; - toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino; - fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse; - toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse; - toProto(message: QueryUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg; -}; -export declare const QueryDelegatorDelegationsRequest: { - typeUrl: string; - encode(message: QueryDelegatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; - fromJSON(object: any): QueryDelegatorDelegationsRequest; - toJSON(message: QueryDelegatorDelegationsRequest): unknown; - fromPartial(object: Partial): QueryDelegatorDelegationsRequest; - fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest; - toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino; - fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest; - toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest; - toProto(message: QueryDelegatorDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg; -}; -export declare const QueryDelegatorDelegationsResponse: { - typeUrl: string; - encode(message: QueryDelegatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; - fromJSON(object: any): QueryDelegatorDelegationsResponse; - toJSON(message: QueryDelegatorDelegationsResponse): unknown; - fromPartial(object: Partial): QueryDelegatorDelegationsResponse; - fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse; - toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino; - fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse; - toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse; - toProto(message: QueryDelegatorDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg; -}; -export declare const QueryDelegatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; - fromJSON(object: any): QueryDelegatorUnbondingDelegationsRequest; - toJSON(message: QueryDelegatorUnbondingDelegationsRequest): unknown; - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest; - fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest; - toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest; - toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest; - toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg; -}; -export declare const QueryDelegatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; - fromJSON(object: any): QueryDelegatorUnbondingDelegationsResponse; - toJSON(message: QueryDelegatorUnbondingDelegationsResponse): unknown; - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse; - fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse; - toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse; - toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse; - toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg; -}; -export declare const QueryRedelegationsRequest: { - typeUrl: string; - encode(message: QueryRedelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest; - fromJSON(object: any): QueryRedelegationsRequest; - toJSON(message: QueryRedelegationsRequest): unknown; - fromPartial(object: Partial): QueryRedelegationsRequest; - fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest; - toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino; - fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest; - toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg; - fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest; - toProto(message: QueryRedelegationsRequest): Uint8Array; - toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg; -}; -export declare const QueryRedelegationsResponse: { - typeUrl: string; - encode(message: QueryRedelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse; - fromJSON(object: any): QueryRedelegationsResponse; - toJSON(message: QueryRedelegationsResponse): unknown; - fromPartial(object: Partial): QueryRedelegationsResponse; - fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse; - toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino; - fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse; - toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg; - fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse; - toProto(message: QueryRedelegationsResponse): Uint8Array; - toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; - fromJSON(object: any): QueryDelegatorValidatorsRequest; - toJSON(message: QueryDelegatorValidatorsRequest): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorsRequest; - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; - fromJSON(object: any): QueryDelegatorValidatorsResponse; - toJSON(message: QueryDelegatorValidatorsResponse): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorsResponse; - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; - fromJSON(object: any): QueryDelegatorValidatorRequest; - toJSON(message: QueryDelegatorValidatorRequest): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorRequest; - fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest; - toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest; - toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest; - toProto(message: QueryDelegatorValidatorRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; - fromJSON(object: any): QueryDelegatorValidatorResponse; - toJSON(message: QueryDelegatorValidatorResponse): unknown; - fromPartial(object: Partial): QueryDelegatorValidatorResponse; - fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse; - toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse; - toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse; - toProto(message: QueryDelegatorValidatorResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg; -}; -export declare const QueryHistoricalInfoRequest: { - typeUrl: string; - encode(message: QueryHistoricalInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest; - fromJSON(object: any): QueryHistoricalInfoRequest; - toJSON(message: QueryHistoricalInfoRequest): unknown; - fromPartial(object: Partial): QueryHistoricalInfoRequest; - fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest; - toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino; - fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest; - toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg; - fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest; - toProto(message: QueryHistoricalInfoRequest): Uint8Array; - toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg; -}; -export declare const QueryHistoricalInfoResponse: { - typeUrl: string; - encode(message: QueryHistoricalInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse; - fromJSON(object: any): QueryHistoricalInfoResponse; - toJSON(message: QueryHistoricalInfoResponse): unknown; - fromPartial(object: Partial): QueryHistoricalInfoResponse; - fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse; - toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino; - fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse; - toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg; - fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse; - toProto(message: QueryHistoricalInfoResponse): Uint8Array; - toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg; -}; -export declare const QueryPoolRequest: { - typeUrl: string; - encode(_: QueryPoolRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest; - fromJSON(_: any): QueryPoolRequest; - toJSON(_: QueryPoolRequest): unknown; - fromPartial(_: Partial): QueryPoolRequest; - fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest; - toAmino(_: QueryPoolRequest): QueryPoolRequestAmino; - fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest; - toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg; - fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest; - toProto(message: QueryPoolRequest): Uint8Array; - toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg; -}; -export declare const QueryPoolResponse: { - typeUrl: string; - encode(message: QueryPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse; - fromJSON(object: any): QueryPoolResponse; - toJSON(message: QueryPoolResponse): unknown; - fromPartial(object: Partial): QueryPoolResponse; - fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse; - toAmino(message: QueryPoolResponse): QueryPoolResponseAmino; - fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse; - toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg; - fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse; - toProto(message: QueryPoolResponse): Uint8Array; - toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts deleted file mode 100644 index 0f29585b..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - validators(params: QueryValidatorsRequest): Promise; - validator(params: QueryValidatorRequest): Promise; - validatorDelegations(params: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(params: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(params: QueryDelegationRequest): Promise; - unbondingDelegation(params: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(params: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(params: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(params: QueryRedelegationsRequest): Promise; - delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(params: QueryDelegatorValidatorRequest): Promise; - historicalInfo(params: QueryHistoricalInfoRequest): Promise; - pool(_params?: QueryPoolRequest): Promise; - params(_params?: QueryParamsRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 6f710e5d..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Validators queries all validators that match the given status. */ - validators(request: QueryValidatorsRequest): Promise; - /** Validator queries validator info for given validator address. */ - validator(request: QueryValidatorRequest): Promise; - /** ValidatorDelegations queries delegate info for given validator. */ - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - /** Delegation queries delegate info for given validator delegator pair. */ - delegation(request: QueryDelegationRequest): Promise; - /** - * UnbondingDelegation queries unbonding info for given validator delegator - * pair. - */ - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - /** DelegatorDelegations queries all delegations of a given delegator address. */ - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - /** - * DelegatorUnbondingDelegations queries all unbonding delegations of a given - * delegator address. - */ - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - /** Redelegations queries redelegations of given address. */ - redelegations(request: QueryRedelegationsRequest): Promise; - /** - * DelegatorValidators queries all validators info for given delegator - * address. - */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** - * DelegatorValidator queries validator info for given delegator validator - * pair. - */ - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - /** HistoricalInfo queries the historical info for given height. */ - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - /** Pool queries the pool info. */ - pool(request?: QueryPoolRequest): Promise; - /** Parameters queries the staking parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - validators(request: QueryValidatorsRequest): Promise; - validator(request: QueryValidatorRequest): Promise; - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: QueryDelegationRequest): Promise; - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: QueryRedelegationsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - pool(request?: QueryPoolRequest): Promise; - params(request?: QueryParamsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - validators(request: QueryValidatorsRequest): Promise; - validator(request: QueryValidatorRequest): Promise; - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: QueryDelegationRequest): Promise; - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: QueryRedelegationsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - pool(request?: QueryPoolRequest): Promise; - params(request?: QueryParamsRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts deleted file mode 100644 index 1997f710..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/staking.d.ts +++ /dev/null @@ -1,1106 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Pubkey } from "@cosmjs/amino"; -/** BondStatus is the status of a validator. */ -export declare enum BondStatus { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BOND_STATUS_UNSPECIFIED = 0, - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BOND_STATUS_UNBONDED = 1, - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BOND_STATUS_UNBONDING = 2, - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BOND_STATUS_BONDED = 3, - UNRECOGNIZED = -1 -} -export declare const BondStatusSDKType: typeof BondStatus; -export declare const BondStatusAmino: typeof BondStatus; -export declare function bondStatusFromJSON(object: any): BondStatus; -export declare function bondStatusToJSON(object: BondStatus): string; -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfo { - header: Header; - valset: Validator[]; -} -export interface HistoricalInfoProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; - value: Uint8Array; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoAmino { - header?: HeaderAmino; - valset?: ValidatorAmino[]; -} -export interface HistoricalInfoAminoMsg { - type: "cosmos-sdk/HistoricalInfo"; - value: HistoricalInfoAmino; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoSDKType { - header: HeaderSDKType; - valset: ValidatorSDKType[]; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - maxRate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - maxChangeRate: string; -} -export interface CommissionRatesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; - value: Uint8Array; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesAmino { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; -} -export interface CommissionRatesAminoMsg { - type: "cosmos-sdk/CommissionRates"; - value: CommissionRatesAmino; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesSDKType { - rate: string; - max_rate: string; - max_change_rate: string; -} -/** Commission defines commission parameters for a given validator. */ -export interface Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commissionRates: CommissionRates; - /** update_time is the last time the commission rate was changed. */ - updateTime: Timestamp; -} -export interface CommissionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Commission"; - value: Uint8Array; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionAmino { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: CommissionRatesAmino; - /** update_time is the last time the commission rate was changed. */ - update_time?: string; -} -export interface CommissionAminoMsg { - type: "cosmos-sdk/Commission"; - value: CommissionAmino; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionSDKType { - commission_rates: CommissionRatesSDKType; - update_time: TimestampSDKType; -} -/** Description defines a validator description. */ -export interface Description { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - securityContact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Description"; - value: Uint8Array; -} -/** Description defines a validator description. */ -export interface DescriptionAmino { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; -} -export interface DescriptionAminoMsg { - type: "cosmos-sdk/Description"; - value: DescriptionAmino; -} -/** Description defines a validator description. */ -export interface DescriptionSDKType { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operatorAddress: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey?: (Any) | undefined; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegatorShares: string; - /** description defines the description terms for the validator. */ - description: Description; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: bigint; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbondingTime: Timestamp; - /** commission defines the commission parameters. */ - commission: Commission; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - minSelfDelegation: string; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validator"; - value: Uint8Array; -} -export type ValidatorEncoded = Omit & { - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ consensusPubkey?: AnyProtoMsg | undefined; -}; -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorAmino { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensus_pubkey?: AnyAmino; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status?: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: DescriptionAmino; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height?: string; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: CommissionAmino; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - min_self_delegation?: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorSDKType { - operator_address: string; - consensus_pubkey?: AnySDKType | undefined; - jailed: boolean; - status: BondStatus; - tokens: string; - delegator_shares: string; - description: DescriptionSDKType; - unbonding_height: bigint; - unbonding_time: TimestampSDKType; - commission: CommissionSDKType; - min_self_delegation: string; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddresses { - addresses: string[]; -} -export interface ValAddressesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; - value: Uint8Array; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesAmino { - addresses?: string[]; -} -export interface ValAddressesAminoMsg { - type: "cosmos-sdk/ValAddresses"; - value: ValAddressesAmino; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesSDKType { - addresses: string[]; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPair { - delegatorAddress: string; - validatorAddress: string; -} -export interface DVPairProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPair"; - value: Uint8Array; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairAmino { - delegator_address?: string; - validator_address?: string; -} -export interface DVPairAminoMsg { - type: "cosmos-sdk/DVPair"; - value: DVPairAmino; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairSDKType { - delegator_address: string; - validator_address: string; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairs { - pairs: DVPair[]; -} -export interface DVPairsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPairs"; - value: Uint8Array; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsAmino { - pairs?: DVPairAmino[]; -} -export interface DVPairsAminoMsg { - type: "cosmos-sdk/DVPairs"; - value: DVPairsAmino; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsSDKType { - pairs: DVPairSDKType[]; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTriplet { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; -} -export interface DVVTripletProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; - value: Uint8Array; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; -} -export interface DVVTripletAminoMsg { - type: "cosmos-sdk/DVVTriplet"; - value: DVVTripletAmino; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTriplets { - triplets: DVVTriplet[]; -} -export interface DVVTripletsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; - value: Uint8Array; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsAmino { - triplets?: DVVTripletAmino[]; -} -export interface DVVTripletsAminoMsg { - type: "cosmos-sdk/DVVTriplets"; - value: DVVTripletsAmino; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsSDKType { - triplets: DVVTripletSDKType[]; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Delegation"; - value: Uint8Array; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; -} -export interface DelegationAminoMsg { - type: "cosmos-sdk/Delegation"; - value: DelegationAmino; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationSDKType { - delegator_address: string; - validator_address: string; - shares: string; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntry[]; -} -export interface UnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; - value: Uint8Array; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: UnbondingDelegationEntryAmino[]; -} -export interface UnbondingDelegationAminoMsg { - type: "cosmos-sdk/UnbondingDelegation"; - value: UnbondingDelegationAmino; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - entries: UnbondingDelegationEntrySDKType[]; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntry { - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; - /** completion_time is the unix time for unbonding completion. */ - completionTime: Timestamp; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initialBalance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; - value: Uint8Array; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntryAmino { - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; - /** completion_time is the unix time for unbonding completion. */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; -} -export interface UnbondingDelegationEntryAminoMsg { - type: "cosmos-sdk/UnbondingDelegationEntry"; - value: UnbondingDelegationEntryAmino; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntrySDKType { - creation_height: bigint; - completion_time: TimestampSDKType; - initial_balance: string; - balance: string; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntry { - /** creation_height defines the height which the redelegation took place. */ - creationHeight: bigint; - /** completion_time defines the unix time for redelegation completion. */ - completionTime: Timestamp; - /** initial_balance defines the initial balance when redelegation started. */ - initialBalance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - sharesDst: string; -} -export interface RedelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; - value: Uint8Array; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntryAmino { - /** creation_height defines the height which the redelegation took place. */ - creation_height?: string; - /** completion_time defines the unix time for redelegation completion. */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; -} -export interface RedelegationEntryAminoMsg { - type: "cosmos-sdk/RedelegationEntry"; - value: RedelegationEntryAmino; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntrySDKType { - creation_height: bigint; - completion_time: TimestampSDKType; - initial_balance: string; - shares_dst: string; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_src_address is the validator redelegation source operator address. */ - validatorSrcAddress: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validatorDstAddress: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntry[]; -} -export interface RedelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Redelegation"; - value: Uint8Array; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: RedelegationEntryAmino[]; -} -export interface RedelegationAminoMsg { - type: "cosmos-sdk/Redelegation"; - value: RedelegationAmino; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - entries: RedelegationEntrySDKType[]; -} -/** Params defines the parameters for the staking module. */ -export interface Params { - /** unbonding_time is the time duration of unbonding. */ - unbondingTime: Duration; - /** max_validators is the maximum number of validators. */ - maxValidators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - maxEntries: number; - /** historical_entries is the number of historical entries to persist. */ - historicalEntries: number; - /** bond_denom defines the bondable coin denomination. */ - bondDenom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - minCommissionRate: string; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsAmino { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: DurationAmino; - /** max_validators is the maximum number of validators. */ - max_validators?: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries?: number; - /** historical_entries is the number of historical entries to persist. */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsSDKType { - unbonding_time: DurationSDKType; - max_validators: number; - max_entries: number; - historical_entries: number; - bond_denom: string; - min_commission_rate: string; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponse { - delegation: Delegation; - balance: Coin; -} -export interface DelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; - value: Uint8Array; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseAmino { - delegation?: DelegationAmino; - balance?: CoinAmino; -} -export interface DelegationResponseAminoMsg { - type: "cosmos-sdk/DelegationResponse"; - value: DelegationResponseAmino; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseSDKType { - delegation: DelegationSDKType; - balance: CoinSDKType; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponse { - redelegationEntry: RedelegationEntry; - balance: string; -} -export interface RedelegationEntryResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; - value: Uint8Array; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseAmino { - redelegation_entry?: RedelegationEntryAmino; - balance?: string; -} -export interface RedelegationEntryResponseAminoMsg { - type: "cosmos-sdk/RedelegationEntryResponse"; - value: RedelegationEntryResponseAmino; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseSDKType { - redelegation_entry: RedelegationEntrySDKType; - balance: string; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponse { - redelegation: Redelegation; - entries: RedelegationEntryResponse[]; -} -export interface RedelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; - value: Uint8Array; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseAmino { - redelegation?: RedelegationAmino; - entries?: RedelegationEntryResponseAmino[]; -} -export interface RedelegationResponseAminoMsg { - type: "cosmos-sdk/RedelegationResponse"; - value: RedelegationResponseAmino; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseSDKType { - redelegation: RedelegationSDKType; - entries: RedelegationEntryResponseSDKType[]; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface Pool { - notBondedTokens: string; - bondedTokens: string; -} -export interface PoolProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Pool"; - value: Uint8Array; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolAmino { - not_bonded_tokens: string; - bonded_tokens: string; -} -export interface PoolAminoMsg { - type: "cosmos-sdk/Pool"; - value: PoolAmino; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolSDKType { - not_bonded_tokens: string; - bonded_tokens: string; -} -export declare const HistoricalInfo: { - typeUrl: string; - encode(message: HistoricalInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo; - fromJSON(object: any): HistoricalInfo; - toJSON(message: HistoricalInfo): unknown; - fromPartial(object: Partial): HistoricalInfo; - fromAmino(object: HistoricalInfoAmino): HistoricalInfo; - toAmino(message: HistoricalInfo): HistoricalInfoAmino; - fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo; - toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg; - fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo; - toProto(message: HistoricalInfo): Uint8Array; - toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg; -}; -export declare const CommissionRates: { - typeUrl: string; - encode(message: CommissionRates, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates; - fromJSON(object: any): CommissionRates; - toJSON(message: CommissionRates): unknown; - fromPartial(object: Partial): CommissionRates; - fromAmino(object: CommissionRatesAmino): CommissionRates; - toAmino(message: CommissionRates): CommissionRatesAmino; - fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates; - toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg; - fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates; - toProto(message: CommissionRates): Uint8Array; - toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg; -}; -export declare const Commission: { - typeUrl: string; - encode(message: Commission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Commission; - fromJSON(object: any): Commission; - toJSON(message: Commission): unknown; - fromPartial(object: Partial): Commission; - fromAmino(object: CommissionAmino): Commission; - toAmino(message: Commission): CommissionAmino; - fromAminoMsg(object: CommissionAminoMsg): Commission; - toAminoMsg(message: Commission): CommissionAminoMsg; - fromProtoMsg(message: CommissionProtoMsg): Commission; - toProto(message: Commission): Uint8Array; - toProtoMsg(message: Commission): CommissionProtoMsg; -}; -export declare const Description: { - typeUrl: string; - encode(message: Description, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Description; - fromJSON(object: any): Description; - toJSON(message: Description): unknown; - fromPartial(object: Partial): Description; - fromAmino(object: DescriptionAmino): Description; - toAmino(message: Description): DescriptionAmino; - fromAminoMsg(object: DescriptionAminoMsg): Description; - toAminoMsg(message: Description): DescriptionAminoMsg; - fromProtoMsg(message: DescriptionProtoMsg): Description; - toProto(message: Description): Uint8Array; - toProtoMsg(message: Description): DescriptionProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromJSON(object: any): Validator; - toJSON(message: Validator): unknown; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - toAminoMsg(message: Validator): ValidatorAminoMsg; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const ValAddresses: { - typeUrl: string; - encode(message: ValAddresses, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses; - fromJSON(object: any): ValAddresses; - toJSON(message: ValAddresses): unknown; - fromPartial(object: Partial): ValAddresses; - fromAmino(object: ValAddressesAmino): ValAddresses; - toAmino(message: ValAddresses): ValAddressesAmino; - fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses; - toAminoMsg(message: ValAddresses): ValAddressesAminoMsg; - fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses; - toProto(message: ValAddresses): Uint8Array; - toProtoMsg(message: ValAddresses): ValAddressesProtoMsg; -}; -export declare const DVPair: { - typeUrl: string; - encode(message: DVPair, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVPair; - fromJSON(object: any): DVPair; - toJSON(message: DVPair): unknown; - fromPartial(object: Partial): DVPair; - fromAmino(object: DVPairAmino): DVPair; - toAmino(message: DVPair): DVPairAmino; - fromAminoMsg(object: DVPairAminoMsg): DVPair; - toAminoMsg(message: DVPair): DVPairAminoMsg; - fromProtoMsg(message: DVPairProtoMsg): DVPair; - toProto(message: DVPair): Uint8Array; - toProtoMsg(message: DVPair): DVPairProtoMsg; -}; -export declare const DVPairs: { - typeUrl: string; - encode(message: DVPairs, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVPairs; - fromJSON(object: any): DVPairs; - toJSON(message: DVPairs): unknown; - fromPartial(object: Partial): DVPairs; - fromAmino(object: DVPairsAmino): DVPairs; - toAmino(message: DVPairs): DVPairsAmino; - fromAminoMsg(object: DVPairsAminoMsg): DVPairs; - toAminoMsg(message: DVPairs): DVPairsAminoMsg; - fromProtoMsg(message: DVPairsProtoMsg): DVPairs; - toProto(message: DVPairs): Uint8Array; - toProtoMsg(message: DVPairs): DVPairsProtoMsg; -}; -export declare const DVVTriplet: { - typeUrl: string; - encode(message: DVVTriplet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet; - fromJSON(object: any): DVVTriplet; - toJSON(message: DVVTriplet): unknown; - fromPartial(object: Partial): DVVTriplet; - fromAmino(object: DVVTripletAmino): DVVTriplet; - toAmino(message: DVVTriplet): DVVTripletAmino; - fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet; - toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg; - fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet; - toProto(message: DVVTriplet): Uint8Array; - toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg; -}; -export declare const DVVTriplets: { - typeUrl: string; - encode(message: DVVTriplets, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets; - fromJSON(object: any): DVVTriplets; - toJSON(message: DVVTriplets): unknown; - fromPartial(object: Partial): DVVTriplets; - fromAmino(object: DVVTripletsAmino): DVVTriplets; - toAmino(message: DVVTriplets): DVVTripletsAmino; - fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets; - toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg; - fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets; - toProto(message: DVVTriplets): Uint8Array; - toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg; -}; -export declare const Delegation: { - typeUrl: string; - encode(message: Delegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Delegation; - fromJSON(object: any): Delegation; - toJSON(message: Delegation): unknown; - fromPartial(object: Partial): Delegation; - fromAmino(object: DelegationAmino): Delegation; - toAmino(message: Delegation): DelegationAmino; - fromAminoMsg(object: DelegationAminoMsg): Delegation; - toAminoMsg(message: Delegation): DelegationAminoMsg; - fromProtoMsg(message: DelegationProtoMsg): Delegation; - toProto(message: Delegation): Uint8Array; - toProtoMsg(message: Delegation): DelegationProtoMsg; -}; -export declare const UnbondingDelegation: { - typeUrl: string; - encode(message: UnbondingDelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation; - fromJSON(object: any): UnbondingDelegation; - toJSON(message: UnbondingDelegation): unknown; - fromPartial(object: Partial): UnbondingDelegation; - fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation; - toAmino(message: UnbondingDelegation): UnbondingDelegationAmino; - fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation; - toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg; - fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation; - toProto(message: UnbondingDelegation): Uint8Array; - toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg; -}; -export declare const UnbondingDelegationEntry: { - typeUrl: string; - encode(message: UnbondingDelegationEntry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry; - fromJSON(object: any): UnbondingDelegationEntry; - toJSON(message: UnbondingDelegationEntry): unknown; - fromPartial(object: Partial): UnbondingDelegationEntry; - fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry; - toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino; - fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry; - toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg; - fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry; - toProto(message: UnbondingDelegationEntry): Uint8Array; - toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg; -}; -export declare const RedelegationEntry: { - typeUrl: string; - encode(message: RedelegationEntry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry; - fromJSON(object: any): RedelegationEntry; - toJSON(message: RedelegationEntry): unknown; - fromPartial(object: Partial): RedelegationEntry; - fromAmino(object: RedelegationEntryAmino): RedelegationEntry; - toAmino(message: RedelegationEntry): RedelegationEntryAmino; - fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry; - toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg; - fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry; - toProto(message: RedelegationEntry): Uint8Array; - toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg; -}; -export declare const Redelegation: { - typeUrl: string; - encode(message: Redelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Redelegation; - fromJSON(object: any): Redelegation; - toJSON(message: Redelegation): unknown; - fromPartial(object: Partial): Redelegation; - fromAmino(object: RedelegationAmino): Redelegation; - toAmino(message: Redelegation): RedelegationAmino; - fromAminoMsg(object: RedelegationAminoMsg): Redelegation; - toAminoMsg(message: Redelegation): RedelegationAminoMsg; - fromProtoMsg(message: RedelegationProtoMsg): Redelegation; - toProto(message: Redelegation): Uint8Array; - toProtoMsg(message: Redelegation): RedelegationProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const DelegationResponse: { - typeUrl: string; - encode(message: DelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse; - fromJSON(object: any): DelegationResponse; - toJSON(message: DelegationResponse): unknown; - fromPartial(object: Partial): DelegationResponse; - fromAmino(object: DelegationResponseAmino): DelegationResponse; - toAmino(message: DelegationResponse): DelegationResponseAmino; - fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse; - toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg; - fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse; - toProto(message: DelegationResponse): Uint8Array; - toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg; -}; -export declare const RedelegationEntryResponse: { - typeUrl: string; - encode(message: RedelegationEntryResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse; - fromJSON(object: any): RedelegationEntryResponse; - toJSON(message: RedelegationEntryResponse): unknown; - fromPartial(object: Partial): RedelegationEntryResponse; - fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse; - toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino; - fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse; - toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg; - fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse; - toProto(message: RedelegationEntryResponse): Uint8Array; - toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg; -}; -export declare const RedelegationResponse: { - typeUrl: string; - encode(message: RedelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse; - fromJSON(object: any): RedelegationResponse; - toJSON(message: RedelegationResponse): unknown; - fromPartial(object: Partial): RedelegationResponse; - fromAmino(object: RedelegationResponseAmino): RedelegationResponse; - toAmino(message: RedelegationResponse): RedelegationResponseAmino; - fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse; - toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg; - fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse; - toProto(message: RedelegationResponse): Uint8Array; - toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg; -}; -export declare const Pool: { - typeUrl: string; - encode(message: Pool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Pool; - fromJSON(object: any): Pool; - toJSON(message: Pool): unknown; - fromPartial(object: Partial): Pool; - fromAmino(object: PoolAmino): Pool; - toAmino(message: Pool): PoolAmino; - fromAminoMsg(object: PoolAminoMsg): Pool; - toAminoMsg(message: Pool): PoolAminoMsg; - fromProtoMsg(message: PoolProtoMsg): Pool; - toProto(message: Pool): Uint8Array; - toProtoMsg(message: Pool): PoolProtoMsg; -}; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts deleted file mode 100644 index 91d9e145..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export declare const AminoConverter: { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: MsgCreateValidator) => import("./tx").MsgCreateValidatorAmino; - fromAmino: (object: import("./tx").MsgCreateValidatorAmino) => MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: MsgEditValidator) => import("./tx").MsgEditValidatorAmino; - fromAmino: (object: import("./tx").MsgEditValidatorAmino) => MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: MsgDelegate) => import("./tx").MsgDelegateAmino; - fromAmino: (object: import("./tx").MsgDelegateAmino) => MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: MsgBeginRedelegate) => import("./tx").MsgBeginRedelegateAmino; - fromAmino: (object: import("./tx").MsgBeginRedelegateAmino) => MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: MsgUndelegate) => import("./tx").MsgUndelegateAmino; - fromAmino: (object: import("./tx").MsgUndelegateAmino) => MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: MsgCancelUnbondingDelegation) => import("./tx").MsgCancelUnbondingDelegationAmino; - fromAmino: (object: import("./tx").MsgCancelUnbondingDelegationAmino) => MsgCancelUnbondingDelegation; - }; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts deleted file mode 100644 index bf48cf66..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.d.ts +++ /dev/null @@ -1,544 +0,0 @@ -import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Pubkey } from "@cosmjs/amino"; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidator { - description: Description; - commission: CommissionRates; - minSelfDelegation: string; - delegatorAddress: string; - validatorAddress: string; - pubkey?: (Any) | undefined; - value: Coin; -} -export interface MsgCreateValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; - value: Uint8Array; -} -export type MsgCreateValidatorEncoded = Omit & { - pubkey?: AnyProtoMsg | undefined; -}; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorAmino { - description?: DescriptionAmino; - commission?: CommissionRatesAmino; - min_self_delegation?: string; - delegator_address?: string; - validator_address?: string; - pubkey?: AnyAmino; - value?: CoinAmino; -} -export interface MsgCreateValidatorAminoMsg { - type: "cosmos-sdk/MsgCreateValidator"; - value: MsgCreateValidatorAmino; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorSDKType { - description: DescriptionSDKType; - commission: CommissionRatesSDKType; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey?: AnySDKType | undefined; - value: CoinSDKType; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponse { -} -export interface MsgCreateValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - value: Uint8Array; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseAmino { -} -export interface MsgCreateValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgCreateValidatorResponse"; - value: MsgCreateValidatorResponseAmino; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseSDKType { -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidator { - description: Description; - validatorAddress: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commissionRate: string; - minSelfDelegation: string; -} -export interface MsgEditValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; - value: Uint8Array; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorAmino { - description?: DescriptionAmino; - validator_address?: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commission_rate?: string; - min_self_delegation?: string; -} -export interface MsgEditValidatorAminoMsg { - type: "cosmos-sdk/MsgEditValidator"; - value: MsgEditValidatorAmino; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorSDKType { - description: DescriptionSDKType; - validator_address: string; - commission_rate: string; - min_self_delegation: string; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponse { -} -export interface MsgEditValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; - value: Uint8Array; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseAmino { -} -export interface MsgEditValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgEditValidatorResponse"; - value: MsgEditValidatorResponseAmino; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseSDKType { -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgDelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; - value: Uint8Array; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgDelegateAminoMsg { - type: "cosmos-sdk/MsgDelegate"; - value: MsgDelegateAmino; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponse { -} -export interface MsgDelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; - value: Uint8Array; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseAmino { -} -export interface MsgDelegateResponseAminoMsg { - type: "cosmos-sdk/MsgDelegateResponse"; - value: MsgDelegateResponseAmino; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseSDKType { -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegate { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; - amount: Coin; -} -export interface MsgBeginRedelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; - value: Uint8Array; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; - amount?: CoinAmino; -} -export interface MsgBeginRedelegateAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegate"; - value: MsgBeginRedelegateAmino; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount: CoinSDKType; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponse { - completionTime: Timestamp; -} -export interface MsgBeginRedelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - value: Uint8Array; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseAmino { - completion_time?: string; -} -export interface MsgBeginRedelegateResponseAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegateResponse"; - value: MsgBeginRedelegateResponseAmino; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseSDKType { - completion_time: TimestampSDKType; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgUndelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; - value: Uint8Array; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgUndelegateAminoMsg { - type: "cosmos-sdk/MsgUndelegate"; - value: MsgUndelegateAmino; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponse { - completionTime: Timestamp; -} -export interface MsgUndelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; - value: Uint8Array; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseAmino { - completion_time?: string; -} -export interface MsgUndelegateResponseAminoMsg { - type: "cosmos-sdk/MsgUndelegateResponse"; - value: MsgUndelegateResponseAmino; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseSDKType { - completion_time: TimestampSDKType; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegation { - delegatorAddress: string; - validatorAddress: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount: Coin; - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; -} -export interface MsgCancelUnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationAmino { - delegator_address?: string; - validator_address?: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount?: CoinAmino; - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; -} -export interface MsgCancelUnbondingDelegationAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegation"; - value: MsgCancelUnbondingDelegationAmino; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; - creation_height: bigint; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponse { -} -export interface MsgCancelUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseAmino { -} -export interface MsgCancelUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse"; - value: MsgCancelUnbondingDelegationResponseAmino; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseSDKType { -} -export declare const MsgCreateValidator: { - typeUrl: string; - encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; - fromJSON(object: any): MsgCreateValidator; - toJSON(message: MsgCreateValidator): unknown; - fromPartial(object: Partial): MsgCreateValidator; - fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator; - toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino; - fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator; - toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg; - fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator; - toProto(message: MsgCreateValidator): Uint8Array; - toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg; -}; -export declare const MsgCreateValidatorResponse: { - typeUrl: string; - encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; - fromJSON(_: any): MsgCreateValidatorResponse; - toJSON(_: MsgCreateValidatorResponse): unknown; - fromPartial(_: Partial): MsgCreateValidatorResponse; - fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse; - toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino; - fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse; - toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg; - fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse; - toProto(message: MsgCreateValidatorResponse): Uint8Array; - toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg; -}; -export declare const MsgEditValidator: { - typeUrl: string; - encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; - fromJSON(object: any): MsgEditValidator; - toJSON(message: MsgEditValidator): unknown; - fromPartial(object: Partial): MsgEditValidator; - fromAmino(object: MsgEditValidatorAmino): MsgEditValidator; - toAmino(message: MsgEditValidator): MsgEditValidatorAmino; - fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator; - toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg; - fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator; - toProto(message: MsgEditValidator): Uint8Array; - toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg; -}; -export declare const MsgEditValidatorResponse: { - typeUrl: string; - encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; - fromJSON(_: any): MsgEditValidatorResponse; - toJSON(_: MsgEditValidatorResponse): unknown; - fromPartial(_: Partial): MsgEditValidatorResponse; - fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse; - toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino; - fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse; - toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg; - fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse; - toProto(message: MsgEditValidatorResponse): Uint8Array; - toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg; -}; -export declare const MsgDelegate: { - typeUrl: string; - encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; - fromJSON(object: any): MsgDelegate; - toJSON(message: MsgDelegate): unknown; - fromPartial(object: Partial): MsgDelegate; - fromAmino(object: MsgDelegateAmino): MsgDelegate; - toAmino(message: MsgDelegate): MsgDelegateAmino; - fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate; - toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg; - fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate; - toProto(message: MsgDelegate): Uint8Array; - toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg; -}; -export declare const MsgDelegateResponse: { - typeUrl: string; - encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; - fromJSON(_: any): MsgDelegateResponse; - toJSON(_: MsgDelegateResponse): unknown; - fromPartial(_: Partial): MsgDelegateResponse; - fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse; - toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino; - fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse; - toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg; - fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse; - toProto(message: MsgDelegateResponse): Uint8Array; - toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg; -}; -export declare const MsgBeginRedelegate: { - typeUrl: string; - encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; - fromJSON(object: any): MsgBeginRedelegate; - toJSON(message: MsgBeginRedelegate): unknown; - fromPartial(object: Partial): MsgBeginRedelegate; - fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate; - toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino; - fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate; - toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg; - fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate; - toProto(message: MsgBeginRedelegate): Uint8Array; - toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg; -}; -export declare const MsgBeginRedelegateResponse: { - typeUrl: string; - encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; - fromJSON(object: any): MsgBeginRedelegateResponse; - toJSON(message: MsgBeginRedelegateResponse): unknown; - fromPartial(object: Partial): MsgBeginRedelegateResponse; - fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse; - toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino; - fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse; - toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg; - fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse; - toProto(message: MsgBeginRedelegateResponse): Uint8Array; - toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg; -}; -export declare const MsgUndelegate: { - typeUrl: string; - encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; - fromJSON(object: any): MsgUndelegate; - toJSON(message: MsgUndelegate): unknown; - fromPartial(object: Partial): MsgUndelegate; - fromAmino(object: MsgUndelegateAmino): MsgUndelegate; - toAmino(message: MsgUndelegate): MsgUndelegateAmino; - fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate; - toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg; - fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate; - toProto(message: MsgUndelegate): Uint8Array; - toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg; -}; -export declare const MsgUndelegateResponse: { - typeUrl: string; - encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; - fromJSON(object: any): MsgUndelegateResponse; - toJSON(message: MsgUndelegateResponse): unknown; - fromPartial(object: Partial): MsgUndelegateResponse; - fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse; - toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino; - fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse; - toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg; - fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse; - toProto(message: MsgUndelegateResponse): Uint8Array; - toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg; -}; -export declare const MsgCancelUnbondingDelegation: { - typeUrl: string; - encode(message: MsgCancelUnbondingDelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; - fromJSON(object: any): MsgCancelUnbondingDelegation; - toJSON(message: MsgCancelUnbondingDelegation): unknown; - fromPartial(object: Partial): MsgCancelUnbondingDelegation; - fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation; - toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino; - fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation; - toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg; - fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation; - toProto(message: MsgCancelUnbondingDelegation): Uint8Array; - toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg; -}; -export declare const MsgCancelUnbondingDelegationResponse: { - typeUrl: string; - encode(_: MsgCancelUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; - fromJSON(_: any): MsgCancelUnbondingDelegationResponse; - toJSON(_: MsgCancelUnbondingDelegationResponse): unknown; - fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse; - fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse; - toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino; - fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse; - toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse; - toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg; -}; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts deleted file mode 100644 index 58406e5f..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: Uint8Array; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: Uint8Array; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: Uint8Array; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: Uint8Array; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: Uint8Array; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: MsgCreateValidator; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: MsgEditValidator; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: MsgDelegate; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: MsgBeginRedelegate; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: MsgUndelegate; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: MsgCancelUnbondingDelegation; - }; - }; - toJSON: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: unknown; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: unknown; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: unknown; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: unknown; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: unknown; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createValidator(value: any): { - typeUrl: string; - value: MsgCreateValidator; - }; - editValidator(value: any): { - typeUrl: string; - value: MsgEditValidator; - }; - delegate(value: any): { - typeUrl: string; - value: MsgDelegate; - }; - beginRedelegate(value: any): { - typeUrl: string; - value: MsgBeginRedelegate; - }; - undelegate(value: any): { - typeUrl: string; - value: MsgUndelegate; - }; - cancelUnbondingDelegation(value: any): { - typeUrl: string; - value: MsgCancelUnbondingDelegation; - }; - }; - fromPartial: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: MsgCreateValidator; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: MsgEditValidator; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: MsgDelegate; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: MsgBeginRedelegate; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: MsgUndelegate; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: MsgCancelUnbondingDelegation; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index c57e500e..00000000 --- a/packages/api/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; -/** Msg defines the staking Msg service. */ -export interface Msg { - /** CreateValidator defines a method for creating a new validator. */ - createValidator(request: MsgCreateValidator): Promise; - /** EditValidator defines a method for editing an existing validator. */ - editValidator(request: MsgEditValidator): Promise; - /** - * Delegate defines a method for performing a delegation of coins - * from a delegator to a validator. - */ - delegate(request: MsgDelegate): Promise; - /** - * BeginRedelegate defines a method for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ - beginRedelegate(request: MsgBeginRedelegate): Promise; - /** - * Undelegate defines a method for performing an undelegation from a - * delegate and a validator. - */ - undelegate(request: MsgUndelegate): Promise; - /** - * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - * and delegate back to previous validator. - * - * Since: cosmos-sdk 0.46 - */ - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createValidator(request: MsgCreateValidator): Promise; - editValidator(request: MsgEditValidator): Promise; - delegate(request: MsgDelegate): Promise; - beginRedelegate(request: MsgBeginRedelegate): Promise; - undelegate(request: MsgUndelegate): Promise; - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; -} diff --git a/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts b/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts deleted file mode 100644 index 931ea80a..00000000 --- a/packages/api/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +++ /dev/null @@ -1,294 +0,0 @@ -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export declare enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SIGN_MODE_UNSPECIFIED = 0, - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SIGN_MODE_DIRECT = 1, - /** - * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. - */ - SIGN_MODE_TEXTUAL = 2, - /** - * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. - * - * Since: cosmos-sdk 0.46 - */ - SIGN_MODE_DIRECT_AUX = 3, - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SIGN_MODE_LEGACY_AMINO_JSON = 127, - /** - * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - */ - SIGN_MODE_EIP_191 = 191, - UNRECOGNIZED = -1 -} -export declare const SignModeSDKType: typeof SignMode; -export declare const SignModeAmino: typeof SignMode; -export declare function signModeFromJSON(object: any): SignMode; -export declare function signModeToJSON(object: SignMode): string; -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptors { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptor[]; -} -export interface SignatureDescriptorsProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; - value: Uint8Array; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsAmino { - /** signatures are the signature descriptors */ - signatures?: SignatureDescriptorAmino[]; -} -export interface SignatureDescriptorsAminoMsg { - type: "cosmos-sdk/SignatureDescriptors"; - value: SignatureDescriptorsAmino; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsSDKType { - signatures: SignatureDescriptorSDKType[]; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptor { - /** public_key is the public key of the signer */ - publicKey?: Any; - data?: SignatureDescriptor_Data; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: bigint; -} -export interface SignatureDescriptorProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; - value: Uint8Array; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorAmino { - /** public_key is the public key of the signer */ - public_key?: AnyAmino; - data?: SignatureDescriptor_DataAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence?: string; -} -export interface SignatureDescriptorAminoMsg { - type: "cosmos-sdk/SignatureDescriptor"; - value: SignatureDescriptorAmino; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorSDKType { - public_key?: AnySDKType; - data?: SignatureDescriptor_DataSDKType; - sequence: bigint; -} -/** Data represents signature data */ -export interface SignatureDescriptor_Data { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_Single; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_Multi; -} -export interface SignatureDescriptor_DataProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Data"; - value: Uint8Array; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataAmino { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_SingleAmino; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_MultiAmino; -} -export interface SignatureDescriptor_DataAminoMsg { - type: "cosmos-sdk/Data"; - value: SignatureDescriptor_DataAmino; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataSDKType { - single?: SignatureDescriptor_Data_SingleSDKType; - multi?: SignatureDescriptor_Data_MultiSDKType; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Single"; - value: Uint8Array; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; - /** signature is the raw signature bytes */ - signature?: string; -} -export interface SignatureDescriptor_Data_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: SignatureDescriptor_Data_SingleAmino; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleSDKType { - mode: SignMode; - signature: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_Data[]; -} -export interface SignatureDescriptor_Data_MultiProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** signatures is the signatures of the multi-signature */ - signatures?: SignatureDescriptor_DataAmino[]; -} -export interface SignatureDescriptor_Data_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: SignatureDescriptor_Data_MultiAmino; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiSDKType { - bitarray?: CompactBitArraySDKType; - signatures: SignatureDescriptor_DataSDKType[]; -} -export declare const SignatureDescriptors: { - typeUrl: string; - encode(message: SignatureDescriptors, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors; - fromJSON(object: any): SignatureDescriptors; - toJSON(message: SignatureDescriptors): unknown; - fromPartial(object: Partial): SignatureDescriptors; - fromAmino(object: SignatureDescriptorsAmino): SignatureDescriptors; - toAmino(message: SignatureDescriptors): SignatureDescriptorsAmino; - fromAminoMsg(object: SignatureDescriptorsAminoMsg): SignatureDescriptors; - toAminoMsg(message: SignatureDescriptors): SignatureDescriptorsAminoMsg; - fromProtoMsg(message: SignatureDescriptorsProtoMsg): SignatureDescriptors; - toProto(message: SignatureDescriptors): Uint8Array; - toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg; -}; -export declare const SignatureDescriptor: { - typeUrl: string; - encode(message: SignatureDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor; - fromJSON(object: any): SignatureDescriptor; - toJSON(message: SignatureDescriptor): unknown; - fromPartial(object: Partial): SignatureDescriptor; - fromAmino(object: SignatureDescriptorAmino): SignatureDescriptor; - toAmino(message: SignatureDescriptor): SignatureDescriptorAmino; - fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor; - toAminoMsg(message: SignatureDescriptor): SignatureDescriptorAminoMsg; - fromProtoMsg(message: SignatureDescriptorProtoMsg): SignatureDescriptor; - toProto(message: SignatureDescriptor): Uint8Array; - toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg; -}; -export declare const SignatureDescriptor_Data: { - typeUrl: string; - encode(message: SignatureDescriptor_Data, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data; - fromJSON(object: any): SignatureDescriptor_Data; - toJSON(message: SignatureDescriptor_Data): unknown; - fromPartial(object: Partial): SignatureDescriptor_Data; - fromAmino(object: SignatureDescriptor_DataAmino): SignatureDescriptor_Data; - toAmino(message: SignatureDescriptor_Data): SignatureDescriptor_DataAmino; - fromAminoMsg(object: SignatureDescriptor_DataAminoMsg): SignatureDescriptor_Data; - toAminoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataAminoMsg; - fromProtoMsg(message: SignatureDescriptor_DataProtoMsg): SignatureDescriptor_Data; - toProto(message: SignatureDescriptor_Data): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg; -}; -export declare const SignatureDescriptor_Data_Single: { - typeUrl: string; - encode(message: SignatureDescriptor_Data_Single, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single; - fromJSON(object: any): SignatureDescriptor_Data_Single; - toJSON(message: SignatureDescriptor_Data_Single): unknown; - fromPartial(object: Partial): SignatureDescriptor_Data_Single; - fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single; - toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino; - fromAminoMsg(object: SignatureDescriptor_Data_SingleAminoMsg): SignatureDescriptor_Data_Single; - toAminoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAminoMsg; - fromProtoMsg(message: SignatureDescriptor_Data_SingleProtoMsg): SignatureDescriptor_Data_Single; - toProto(message: SignatureDescriptor_Data_Single): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg; -}; -export declare const SignatureDescriptor_Data_Multi: { - typeUrl: string; - encode(message: SignatureDescriptor_Data_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi; - fromJSON(object: any): SignatureDescriptor_Data_Multi; - toJSON(message: SignatureDescriptor_Data_Multi): unknown; - fromPartial(object: Partial): SignatureDescriptor_Data_Multi; - fromAmino(object: SignatureDescriptor_Data_MultiAmino): SignatureDescriptor_Data_Multi; - toAmino(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAmino; - fromAminoMsg(object: SignatureDescriptor_Data_MultiAminoMsg): SignatureDescriptor_Data_Multi; - toAminoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAminoMsg; - fromProtoMsg(message: SignatureDescriptor_Data_MultiProtoMsg): SignatureDescriptor_Data_Multi; - toProto(message: SignatureDescriptor_Data_Multi): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts deleted file mode 100644 index 48fb8564..00000000 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/service.d.ts +++ /dev/null @@ -1,613 +0,0 @@ -import { Tx, TxAmino, TxSDKType } from "./tx"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; -import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; -import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** OrderBy defines the sorting order */ -export declare enum OrderBy { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - ORDER_BY_UNSPECIFIED = 0, - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - ORDER_BY_ASC = 1, - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - ORDER_BY_DESC = 2, - UNRECOGNIZED = -1 -} -export declare const OrderBySDKType: typeof OrderBy; -export declare const OrderByAmino: typeof OrderBy; -export declare function orderByFromJSON(object: any): OrderBy; -export declare function orderByToJSON(object: OrderBy): string; -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export declare enum BroadcastMode { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BROADCAST_MODE_UNSPECIFIED = 0, - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BROADCAST_MODE_BLOCK = 1, - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BROADCAST_MODE_SYNC = 2, - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BROADCAST_MODE_ASYNC = 3, - UNRECOGNIZED = -1 -} -export declare const BroadcastModeSDKType: typeof BroadcastMode; -export declare const BroadcastModeAmino: typeof BroadcastMode; -export declare function broadcastModeFromJSON(object: any): BroadcastMode; -export declare function broadcastModeToJSON(object: BroadcastMode): string; -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequest { - /** events is the list of transaction event type. */ - events: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequest; - orderBy: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page: bigint; - /** - * 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. - */ - limit: bigint; -} -export interface GetTxsEventRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; - value: Uint8Array; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestAmino { - /** events is the list of transaction event type. */ - events?: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequestAmino; - order_by?: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page?: string; - /** - * 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. - */ - limit?: string; -} -export interface GetTxsEventRequestAminoMsg { - type: "cosmos-sdk/GetTxsEventRequest"; - value: GetTxsEventRequestAmino; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestSDKType { - events: string[]; - /** @deprecated */ - pagination?: PageRequestSDKType; - order_by: OrderBy; - page: bigint; - limit: bigint; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs: Tx[]; - /** tx_responses is the list of queried TxResponses. */ - txResponses: TxResponse[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponse; - /** total is total number of results available */ - total: bigint; -} -export interface GetTxsEventResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; - value: Uint8Array; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseAmino { - /** txs is the list of queried transactions. */ - txs?: TxAmino[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses?: TxResponseAmino[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponseAmino; - /** total is total number of results available */ - total?: string; -} -export interface GetTxsEventResponseAminoMsg { - type: "cosmos-sdk/GetTxsEventResponse"; - value: GetTxsEventResponseAmino; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseSDKType { - txs: TxSDKType[]; - tx_responses: TxResponseSDKType[]; - /** @deprecated */ - pagination?: PageResponseSDKType; - total: bigint; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequest { - /** tx_bytes is the raw transaction. */ - txBytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; - value: Uint8Array; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestAmino { - /** tx_bytes is the raw transaction. */ - tx_bytes?: string; - mode?: BroadcastMode; -} -export interface BroadcastTxRequestAminoMsg { - type: "cosmos-sdk/BroadcastTxRequest"; - value: BroadcastTxRequestAmino; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestSDKType { - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponse { - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface BroadcastTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; - value: Uint8Array; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseAmino { - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface BroadcastTxResponseAminoMsg { - type: "cosmos-sdk/BroadcastTxResponse"; - value: BroadcastTxResponseAmino; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseSDKType { - tx_response?: TxResponseSDKType; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequest { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: Tx; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - txBytes: Uint8Array; -} -export interface SimulateRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; - value: Uint8Array; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestAmino { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: TxAmino; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - tx_bytes?: string; -} -export interface SimulateRequestAminoMsg { - type: "cosmos-sdk/SimulateRequest"; - value: SimulateRequestAmino; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestSDKType { - /** @deprecated */ - tx?: TxSDKType; - tx_bytes: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gasInfo?: GasInfo; - /** result is the result of the simulation. */ - result?: Result; -} -export interface SimulateResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; - value: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseAmino { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: GasInfoAmino; - /** result is the result of the simulation. */ - result?: ResultAmino; -} -export interface SimulateResponseAminoMsg { - type: "cosmos-sdk/SimulateResponse"; - value: SimulateResponseAmino; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseSDKType { - gas_info?: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequest { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; - value: Uint8Array; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestAmino { - /** hash is the tx hash to query, encoded as a hex string. */ - hash?: string; -} -export interface GetTxRequestAminoMsg { - type: "cosmos-sdk/GetTxRequest"; - value: GetTxRequestAmino; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestSDKType { - hash: string; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponse { - /** tx is the queried transaction. */ - tx?: Tx; - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface GetTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; - value: Uint8Array; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseAmino { - /** tx is the queried transaction. */ - tx?: TxAmino; - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface GetTxResponseAminoMsg { - type: "cosmos-sdk/GetTxResponse"; - value: GetTxResponseAmino; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseSDKType { - tx?: TxSDKType; - tx_response?: TxResponseSDKType; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequest { - /** height is the height of the block to query. */ - height: bigint; - /** pagination defines a pagination for the request. */ - pagination?: PageRequest; -} -export interface GetBlockWithTxsRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - value: Uint8Array; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestAmino { - /** height is the height of the block to query. */ - height?: string; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetBlockWithTxsRequestAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsRequest"; - value: GetBlockWithTxsRequestAmino; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestSDKType { - height: bigint; - pagination?: PageRequestSDKType; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponse { - /** txs are the transactions in the block. */ - txs: Tx[]; - blockId?: BlockID; - block?: Block; - /** pagination defines a pagination for the response. */ - pagination?: PageResponse; -} -export interface GetBlockWithTxsResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - value: Uint8Array; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseAmino { - /** txs are the transactions in the block. */ - txs?: TxAmino[]; - block_id?: BlockIDAmino; - block?: BlockAmino; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetBlockWithTxsResponseAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsResponse"; - value: GetBlockWithTxsResponseAmino; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseSDKType { - txs: TxSDKType[]; - block_id?: BlockIDSDKType; - block?: BlockSDKType; - pagination?: PageResponseSDKType; -} -export declare const GetTxsEventRequest: { - typeUrl: string; - encode(message: GetTxsEventRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest; - fromJSON(object: any): GetTxsEventRequest; - toJSON(message: GetTxsEventRequest): unknown; - fromPartial(object: Partial): GetTxsEventRequest; - fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest; - toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino; - fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest; - toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg; - fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest; - toProto(message: GetTxsEventRequest): Uint8Array; - toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg; -}; -export declare const GetTxsEventResponse: { - typeUrl: string; - encode(message: GetTxsEventResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse; - fromJSON(object: any): GetTxsEventResponse; - toJSON(message: GetTxsEventResponse): unknown; - fromPartial(object: Partial): GetTxsEventResponse; - fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse; - toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino; - fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse; - toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg; - fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse; - toProto(message: GetTxsEventResponse): Uint8Array; - toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg; -}; -export declare const BroadcastTxRequest: { - typeUrl: string; - encode(message: BroadcastTxRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest; - fromJSON(object: any): BroadcastTxRequest; - toJSON(message: BroadcastTxRequest): unknown; - fromPartial(object: Partial): BroadcastTxRequest; - fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest; - toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino; - fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest; - toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg; - fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest; - toProto(message: BroadcastTxRequest): Uint8Array; - toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg; -}; -export declare const BroadcastTxResponse: { - typeUrl: string; - encode(message: BroadcastTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse; - fromJSON(object: any): BroadcastTxResponse; - toJSON(message: BroadcastTxResponse): unknown; - fromPartial(object: Partial): BroadcastTxResponse; - fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse; - toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino; - fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse; - toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg; - fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse; - toProto(message: BroadcastTxResponse): Uint8Array; - toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg; -}; -export declare const SimulateRequest: { - typeUrl: string; - encode(message: SimulateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest; - fromJSON(object: any): SimulateRequest; - toJSON(message: SimulateRequest): unknown; - fromPartial(object: Partial): SimulateRequest; - fromAmino(object: SimulateRequestAmino): SimulateRequest; - toAmino(message: SimulateRequest): SimulateRequestAmino; - fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest; - toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg; - fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest; - toProto(message: SimulateRequest): Uint8Array; - toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg; -}; -export declare const SimulateResponse: { - typeUrl: string; - encode(message: SimulateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse; - fromJSON(object: any): SimulateResponse; - toJSON(message: SimulateResponse): unknown; - fromPartial(object: Partial): SimulateResponse; - fromAmino(object: SimulateResponseAmino): SimulateResponse; - toAmino(message: SimulateResponse): SimulateResponseAmino; - fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse; - toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg; - fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse; - toProto(message: SimulateResponse): Uint8Array; - toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg; -}; -export declare const GetTxRequest: { - typeUrl: string; - encode(message: GetTxRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest; - fromJSON(object: any): GetTxRequest; - toJSON(message: GetTxRequest): unknown; - fromPartial(object: Partial): GetTxRequest; - fromAmino(object: GetTxRequestAmino): GetTxRequest; - toAmino(message: GetTxRequest): GetTxRequestAmino; - fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest; - toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg; - fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest; - toProto(message: GetTxRequest): Uint8Array; - toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg; -}; -export declare const GetTxResponse: { - typeUrl: string; - encode(message: GetTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse; - fromJSON(object: any): GetTxResponse; - toJSON(message: GetTxResponse): unknown; - fromPartial(object: Partial): GetTxResponse; - fromAmino(object: GetTxResponseAmino): GetTxResponse; - toAmino(message: GetTxResponse): GetTxResponseAmino; - fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse; - toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg; - fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse; - toProto(message: GetTxResponse): Uint8Array; - toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg; -}; -export declare const GetBlockWithTxsRequest: { - typeUrl: string; - encode(message: GetBlockWithTxsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest; - fromJSON(object: any): GetBlockWithTxsRequest; - toJSON(message: GetBlockWithTxsRequest): unknown; - fromPartial(object: Partial): GetBlockWithTxsRequest; - fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest; - toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino; - fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest; - toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg; - fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest; - toProto(message: GetBlockWithTxsRequest): Uint8Array; - toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg; -}; -export declare const GetBlockWithTxsResponse: { - typeUrl: string; - encode(message: GetBlockWithTxsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse; - fromJSON(object: any): GetBlockWithTxsResponse; - toJSON(message: GetBlockWithTxsResponse): unknown; - fromPartial(object: Partial): GetBlockWithTxsResponse; - fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse; - toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino; - fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse; - toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg; - fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse; - toProto(message: GetBlockWithTxsResponse): Uint8Array; - toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts deleted file mode 100644 index e4a8e7b3..00000000 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - getTx(params: GetTxRequest): Promise; - getTxsEvent(params: GetTxsEventRequest): Promise; - getBlockWithTxs(params: GetBlockWithTxsRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts deleted file mode 100644 index 8ce5bc4f..00000000 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; -/** Service defines a gRPC service for interacting with transactions. */ -export interface Service { - /** Simulate simulates executing a transaction for estimating gas usage. */ - simulate(request: SimulateRequest): Promise; - /** GetTx fetches a tx by hash. */ - getTx(request: GetTxRequest): Promise; - /** BroadcastTx broadcast transaction. */ - broadcastTx(request: BroadcastTxRequest): Promise; - /** GetTxsEvent fetches txs by event. */ - getTxsEvent(request: GetTxsEventRequest): Promise; - /** - * GetBlockWithTxs fetches a block with decoded txs. - * - * Since: cosmos-sdk 0.45.2 - */ - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -} -export declare class ServiceClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - simulate(request: SimulateRequest): Promise; - getTx(request: GetTxRequest): Promise; - broadcastTx(request: BroadcastTxRequest): Promise; - getTxsEvent(request: GetTxsEventRequest): Promise; - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - simulate(request: SimulateRequest): Promise; - getTx(request: GetTxRequest): Promise; - broadcastTx(request: BroadcastTxRequest): Promise; - getTxsEvent(request: GetTxsEventRequest): Promise; - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts deleted file mode 100644 index 67d16559..00000000 --- a/packages/api/types/codegen/cosmos/tx/v1beta1/tx.d.ts +++ /dev/null @@ -1,967 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode } from "../signing/v1beta1/signing"; -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Tx is the standard type used for broadcasting transactions. */ -export interface Tx { - /** body is the processable content of the transaction */ - body?: TxBody; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - authInfo?: AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tx"; - value: Uint8Array; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxAmino { - /** body is the processable content of the transaction */ - body?: TxBodyAmino; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - auth_info?: AuthInfoAmino; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxAminoMsg { - type: "cosmos-sdk/Tx"; - value: TxAmino; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxSDKType { - body?: TxBodySDKType; - auth_info?: AuthInfoSDKType; - signatures: Uint8Array[]; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRaw { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - authInfoBytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxRaw"; - value: Uint8Array; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawAmino { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - auth_info_bytes?: string; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxRawAminoMsg { - type: "cosmos-sdk/TxRaw"; - value: TxRawAmino; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - signatures: Uint8Array[]; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDoc { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - authInfoBytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chainId: string; - /** account_number is the account number of the account in state */ - accountNumber: bigint; -} -export interface SignDocProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDoc"; - value: Uint8Array; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - auth_info_bytes?: string; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chain_id?: string; - /** account_number is the account number of the account in state */ - account_number?: string; -} -export interface SignDocAminoMsg { - type: "cosmos-sdk/SignDoc"; - value: SignDocAmino; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - chain_id: string; - account_number: bigint; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAux { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** public_key is the public key of the signing account. */ - publicKey?: Any; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chainId: string; - /** account_number is the account number of the account in state. */ - accountNumber: bigint; - /** sequence is the sequence number of the signing account. */ - sequence: bigint; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: Tip; -} -export interface SignDocDirectAuxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; - value: Uint8Array; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** public_key is the public key of the signing account. */ - public_key?: AnyAmino; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chain_id?: string; - /** account_number is the account number of the account in state. */ - account_number?: string; - /** sequence is the sequence number of the signing account. */ - sequence?: string; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: TipAmino; -} -export interface SignDocDirectAuxAminoMsg { - type: "cosmos-sdk/SignDocDirectAux"; - value: SignDocDirectAuxAmino; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxSDKType { - body_bytes: Uint8Array; - public_key?: AnySDKType; - chain_id: string; - account_number: bigint; - sequence: bigint; - tip?: TipSDKType; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: Any[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeoutHeight: bigint; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extensionOptions: Any[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - nonCriticalExtensionOptions: Any[]; -} -export interface TxBodyProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxBody"; - value: Uint8Array; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodyAmino { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages?: AnyAmino[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo?: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeout_height?: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options?: AnyAmino[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options?: AnyAmino[]; -} -export interface TxBodyAminoMsg { - type: "cosmos-sdk/TxBody"; - value: TxBodyAmino; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodySDKType { - messages: AnySDKType[]; - memo: string; - timeout_height: bigint; - extension_options: AnySDKType[]; - non_critical_extension_options: AnySDKType[]; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signerInfos: SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: Fee; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: Tip; -} -export interface AuthInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; - value: Uint8Array; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoAmino { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos?: SignerInfoAmino[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: FeeAmino; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: TipAmino; -} -export interface AuthInfoAminoMsg { - type: "cosmos-sdk/AuthInfo"; - value: AuthInfoAmino; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoSDKType { - signer_infos: SignerInfoSDKType[]; - fee?: FeeSDKType; - tip?: TipSDKType; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfo { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - publicKey?: Any; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - modeInfo?: ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: bigint; -} -export interface SignerInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; - value: Uint8Array; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoAmino { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - public_key?: AnyAmino; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - mode_info?: ModeInfoAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence?: string; -} -export interface SignerInfoAminoMsg { - type: "cosmos-sdk/SignerInfo"; - value: SignerInfoAmino; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoSDKType { - public_key?: AnySDKType; - mode_info?: ModeInfoSDKType; - sequence: bigint; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfo { - /** single represents a single signer */ - single?: ModeInfo_Single; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_Multi; -} -export interface ModeInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; - value: Uint8Array; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoAmino { - /** single represents a single signer */ - single?: ModeInfo_SingleAmino; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_MultiAmino; -} -export interface ModeInfoAminoMsg { - type: "cosmos-sdk/ModeInfo"; - value: ModeInfoAmino; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoSDKType { - single?: ModeInfo_SingleSDKType; - multi?: ModeInfo_MultiSDKType; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Single"; - value: Uint8Array; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; -} -export interface ModeInfo_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: ModeInfo_SingleAmino; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleSDKType { - mode: SignMode; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - modeInfos: ModeInfo[]; -} -export interface ModeInfo_MultiProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos?: ModeInfoAmino[]; -} -export interface ModeInfo_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: ModeInfo_MultiAmino; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiSDKType { - bitarray?: CompactBitArraySDKType; - mode_infos: ModeInfoSDKType[]; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface Fee { - /** amount is the amount of coins to be paid as a fee */ - amount: Coin[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gasLimit: bigint; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Fee"; - value: Uint8Array; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeAmino { - /** amount is the amount of coins to be paid as a fee */ - amount?: CoinAmino[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gas_limit?: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer?: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter?: string; -} -export interface FeeAminoMsg { - type: "cosmos-sdk/Fee"; - value: FeeAmino; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeSDKType { - amount: CoinSDKType[]; - gas_limit: bigint; - payer: string; - granter: string; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface Tip { - /** amount is the amount of the tip */ - amount: Coin[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tip"; - value: Uint8Array; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipAmino { - /** amount is the amount of the tip */ - amount?: CoinAmino[]; - /** tipper is the address of the account paying for the tip */ - tipper?: string; -} -export interface TipAminoMsg { - type: "cosmos-sdk/Tip"; - value: TipAmino; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipSDKType { - amount: CoinSDKType[]; - tipper: string; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerData { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - signDoc?: SignDocDirectAux; - /** mode is the signing mode of the single signer. */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; - value: Uint8Array; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataAmino { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address?: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - sign_doc?: SignDocDirectAuxAmino; - /** mode is the signing mode of the single signer. */ - mode?: SignMode; - /** sig is the signature of the sign doc. */ - sig?: string; -} -export interface AuxSignerDataAminoMsg { - type: "cosmos-sdk/AuxSignerData"; - value: AuxSignerDataAmino; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataSDKType { - address: string; - sign_doc?: SignDocDirectAuxSDKType; - mode: SignMode; - sig: Uint8Array; -} -export declare const Tx: { - typeUrl: string; - encode(message: Tx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Tx; - fromJSON(object: any): Tx; - toJSON(message: Tx): unknown; - fromPartial(object: Partial): Tx; - fromAmino(object: TxAmino): Tx; - toAmino(message: Tx): TxAmino; - fromAminoMsg(object: TxAminoMsg): Tx; - toAminoMsg(message: Tx): TxAminoMsg; - fromProtoMsg(message: TxProtoMsg): Tx; - toProto(message: Tx): Uint8Array; - toProtoMsg(message: Tx): TxProtoMsg; -}; -export declare const TxRaw: { - typeUrl: string; - encode(message: TxRaw, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxRaw; - fromJSON(object: any): TxRaw; - toJSON(message: TxRaw): unknown; - fromPartial(object: Partial): TxRaw; - fromAmino(object: TxRawAmino): TxRaw; - toAmino(message: TxRaw): TxRawAmino; - fromAminoMsg(object: TxRawAminoMsg): TxRaw; - toAminoMsg(message: TxRaw): TxRawAminoMsg; - fromProtoMsg(message: TxRawProtoMsg): TxRaw; - toProto(message: TxRaw): Uint8Array; - toProtoMsg(message: TxRaw): TxRawProtoMsg; -}; -export declare const SignDoc: { - typeUrl: string; - encode(message: SignDoc, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignDoc; - fromJSON(object: any): SignDoc; - toJSON(message: SignDoc): unknown; - fromPartial(object: Partial): SignDoc; - fromAmino(object: SignDocAmino): SignDoc; - toAmino(message: SignDoc): SignDocAmino; - fromAminoMsg(object: SignDocAminoMsg): SignDoc; - toAminoMsg(message: SignDoc): SignDocAminoMsg; - fromProtoMsg(message: SignDocProtoMsg): SignDoc; - toProto(message: SignDoc): Uint8Array; - toProtoMsg(message: SignDoc): SignDocProtoMsg; -}; -export declare const SignDocDirectAux: { - typeUrl: string; - encode(message: SignDocDirectAux, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux; - fromJSON(object: any): SignDocDirectAux; - toJSON(message: SignDocDirectAux): unknown; - fromPartial(object: Partial): SignDocDirectAux; - fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux; - toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino; - fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux; - toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg; - fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux; - toProto(message: SignDocDirectAux): Uint8Array; - toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg; -}; -export declare const TxBody: { - typeUrl: string; - encode(message: TxBody, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxBody; - fromJSON(object: any): TxBody; - toJSON(message: TxBody): unknown; - fromPartial(object: Partial): TxBody; - fromAmino(object: TxBodyAmino): TxBody; - toAmino(message: TxBody): TxBodyAmino; - fromAminoMsg(object: TxBodyAminoMsg): TxBody; - toAminoMsg(message: TxBody): TxBodyAminoMsg; - fromProtoMsg(message: TxBodyProtoMsg): TxBody; - toProto(message: TxBody): Uint8Array; - toProtoMsg(message: TxBody): TxBodyProtoMsg; -}; -export declare const AuthInfo: { - typeUrl: string; - encode(message: AuthInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo; - fromJSON(object: any): AuthInfo; - toJSON(message: AuthInfo): unknown; - fromPartial(object: Partial): AuthInfo; - fromAmino(object: AuthInfoAmino): AuthInfo; - toAmino(message: AuthInfo): AuthInfoAmino; - fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo; - toAminoMsg(message: AuthInfo): AuthInfoAminoMsg; - fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo; - toProto(message: AuthInfo): Uint8Array; - toProtoMsg(message: AuthInfo): AuthInfoProtoMsg; -}; -export declare const SignerInfo: { - typeUrl: string; - encode(message: SignerInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo; - fromJSON(object: any): SignerInfo; - toJSON(message: SignerInfo): unknown; - fromPartial(object: Partial): SignerInfo; - fromAmino(object: SignerInfoAmino): SignerInfo; - toAmino(message: SignerInfo): SignerInfoAmino; - fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo; - toAminoMsg(message: SignerInfo): SignerInfoAminoMsg; - fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo; - toProto(message: SignerInfo): Uint8Array; - toProtoMsg(message: SignerInfo): SignerInfoProtoMsg; -}; -export declare const ModeInfo: { - typeUrl: string; - encode(message: ModeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo; - fromJSON(object: any): ModeInfo; - toJSON(message: ModeInfo): unknown; - fromPartial(object: Partial): ModeInfo; - fromAmino(object: ModeInfoAmino): ModeInfo; - toAmino(message: ModeInfo): ModeInfoAmino; - fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo; - toAminoMsg(message: ModeInfo): ModeInfoAminoMsg; - fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo; - toProto(message: ModeInfo): Uint8Array; - toProtoMsg(message: ModeInfo): ModeInfoProtoMsg; -}; -export declare const ModeInfo_Single: { - typeUrl: string; - encode(message: ModeInfo_Single, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single; - fromJSON(object: any): ModeInfo_Single; - toJSON(message: ModeInfo_Single): unknown; - fromPartial(object: Partial): ModeInfo_Single; - fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single; - toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino; - fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single; - toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg; - fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single; - toProto(message: ModeInfo_Single): Uint8Array; - toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg; -}; -export declare const ModeInfo_Multi: { - typeUrl: string; - encode(message: ModeInfo_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi; - fromJSON(object: any): ModeInfo_Multi; - toJSON(message: ModeInfo_Multi): unknown; - fromPartial(object: Partial): ModeInfo_Multi; - fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi; - toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino; - fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi; - toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg; - fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi; - toProto(message: ModeInfo_Multi): Uint8Array; - toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg; -}; -export declare const Fee: { - typeUrl: string; - encode(message: Fee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Fee; - fromJSON(object: any): Fee; - toJSON(message: Fee): unknown; - fromPartial(object: Partial): Fee; - fromAmino(object: FeeAmino): Fee; - toAmino(message: Fee): FeeAmino; - fromAminoMsg(object: FeeAminoMsg): Fee; - toAminoMsg(message: Fee): FeeAminoMsg; - fromProtoMsg(message: FeeProtoMsg): Fee; - toProto(message: Fee): Uint8Array; - toProtoMsg(message: Fee): FeeProtoMsg; -}; -export declare const Tip: { - typeUrl: string; - encode(message: Tip, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Tip; - fromJSON(object: any): Tip; - toJSON(message: Tip): unknown; - fromPartial(object: Partial): Tip; - fromAmino(object: TipAmino): Tip; - toAmino(message: Tip): TipAmino; - fromAminoMsg(object: TipAminoMsg): Tip; - toAminoMsg(message: Tip): TipAminoMsg; - fromProtoMsg(message: TipProtoMsg): Tip; - toProto(message: Tip): Uint8Array; - toProtoMsg(message: Tip): TipProtoMsg; -}; -export declare const AuxSignerData: { - typeUrl: string; - encode(message: AuxSignerData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData; - fromJSON(object: any): AuxSignerData; - toJSON(message: AuxSignerData): unknown; - fromPartial(object: Partial): AuxSignerData; - fromAmino(object: AuxSignerDataAmino): AuxSignerData; - toAmino(message: AuxSignerData): AuxSignerDataAmino; - fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData; - toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg; - fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData; - toProto(message: AuxSignerData): Uint8Array; - toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts deleted file mode 100644 index 8dfe699b..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +++ /dev/null @@ -1,488 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequest { -} -export interface QueryCurrentPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestAmino { -} -export interface QueryCurrentPlanRequestAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanRequest"; - value: QueryCurrentPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestSDKType { -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponse { - /** plan is the current upgrade plan. */ - plan?: Plan; -} -export interface QueryCurrentPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; - value: Uint8Array; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseAmino { - /** plan is the current upgrade plan. */ - plan?: PlanAmino; -} -export interface QueryCurrentPlanResponseAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanResponse"; - value: QueryCurrentPlanResponseAmino; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseSDKType { - plan?: PlanSDKType; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequest { - /** name is the name of the applied plan to query for. */ - name: string; -} -export interface QueryAppliedPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestAmino { - /** name is the name of the applied plan to query for. */ - name?: string; -} -export interface QueryAppliedPlanRequestAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanRequest"; - value: QueryAppliedPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestSDKType { - name: string; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponse { - /** height is the block height at which the plan was applied. */ - height: bigint; -} -export interface QueryAppliedPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; - value: Uint8Array; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseAmino { - /** height is the block height at which the plan was applied. */ - height?: string; -} -export interface QueryAppliedPlanResponseAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanResponse"; - value: QueryAppliedPlanResponseAmino; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseSDKType { - height: bigint; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequest { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - lastHeight: bigint; -} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestAmino { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - last_height?: string; -} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestSDKType { - last_height: bigint; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponse { - /** Since: cosmos-sdk 0.43 */ - upgradedConsensusState: Uint8Array; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Since: cosmos-sdk 0.43 */ - upgraded_consensus_state?: string; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequest { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - moduleName: string; -} -export interface QueryModuleVersionsRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; - value: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestAmino { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - module_name?: string; -} -export interface QueryModuleVersionsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsRequest"; - value: QueryModuleVersionsRequestAmino; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestSDKType { - module_name: string; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponse { - /** module_versions is a list of module names with their consensus versions. */ - moduleVersions: ModuleVersion[]; -} -export interface QueryModuleVersionsResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; - value: Uint8Array; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseAmino { - /** module_versions is a list of module names with their consensus versions. */ - module_versions?: ModuleVersionAmino[]; -} -export interface QueryModuleVersionsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsResponse"; - value: QueryModuleVersionsResponseAmino; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseSDKType { - module_versions: ModuleVersionSDKType[]; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequest { -} -export interface QueryAuthorityRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; - value: Uint8Array; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestAmino { -} -export interface QueryAuthorityRequestAminoMsg { - type: "cosmos-sdk/QueryAuthorityRequest"; - value: QueryAuthorityRequestAmino; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestSDKType { -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponse { - address: string; -} -export interface QueryAuthorityResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; - value: Uint8Array; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseAmino { - address?: string; -} -export interface QueryAuthorityResponseAminoMsg { - type: "cosmos-sdk/QueryAuthorityResponse"; - value: QueryAuthorityResponseAmino; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseSDKType { - address: string; -} -export declare const QueryCurrentPlanRequest: { - typeUrl: string; - encode(_: QueryCurrentPlanRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest; - fromJSON(_: any): QueryCurrentPlanRequest; - toJSON(_: QueryCurrentPlanRequest): unknown; - fromPartial(_: Partial): QueryCurrentPlanRequest; - fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest; - toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino; - fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest; - toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg; - fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest; - toProto(message: QueryCurrentPlanRequest): Uint8Array; - toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg; -}; -export declare const QueryCurrentPlanResponse: { - typeUrl: string; - encode(message: QueryCurrentPlanResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse; - fromJSON(object: any): QueryCurrentPlanResponse; - toJSON(message: QueryCurrentPlanResponse): unknown; - fromPartial(object: Partial): QueryCurrentPlanResponse; - fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse; - toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino; - fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse; - toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg; - fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse; - toProto(message: QueryCurrentPlanResponse): Uint8Array; - toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg; -}; -export declare const QueryAppliedPlanRequest: { - typeUrl: string; - encode(message: QueryAppliedPlanRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest; - fromJSON(object: any): QueryAppliedPlanRequest; - toJSON(message: QueryAppliedPlanRequest): unknown; - fromPartial(object: Partial): QueryAppliedPlanRequest; - fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest; - toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino; - fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest; - toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg; - fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest; - toProto(message: QueryAppliedPlanRequest): Uint8Array; - toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg; -}; -export declare const QueryAppliedPlanResponse: { - typeUrl: string; - encode(message: QueryAppliedPlanResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse; - fromJSON(object: any): QueryAppliedPlanResponse; - toJSON(message: QueryAppliedPlanResponse): unknown; - fromPartial(object: Partial): QueryAppliedPlanResponse; - fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse; - toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino; - fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse; - toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg; - fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse; - toProto(message: QueryAppliedPlanResponse): Uint8Array; - toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg; -}; -export declare const QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; - fromJSON(object: any): QueryUpgradedConsensusStateRequest; - toJSON(message: QueryUpgradedConsensusStateRequest): unknown; - fromPartial(object: Partial): QueryUpgradedConsensusStateRequest; - fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; - toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; -}; -export declare const QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; - fromJSON(object: any): QueryUpgradedConsensusStateResponse; - toJSON(message: QueryUpgradedConsensusStateResponse): unknown; - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; -}; -export declare const QueryModuleVersionsRequest: { - typeUrl: string; - encode(message: QueryModuleVersionsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest; - fromJSON(object: any): QueryModuleVersionsRequest; - toJSON(message: QueryModuleVersionsRequest): unknown; - fromPartial(object: Partial): QueryModuleVersionsRequest; - fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest; - toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino; - fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest; - toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg; - fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest; - toProto(message: QueryModuleVersionsRequest): Uint8Array; - toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg; -}; -export declare const QueryModuleVersionsResponse: { - typeUrl: string; - encode(message: QueryModuleVersionsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse; - fromJSON(object: any): QueryModuleVersionsResponse; - toJSON(message: QueryModuleVersionsResponse): unknown; - fromPartial(object: Partial): QueryModuleVersionsResponse; - fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse; - toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino; - fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse; - toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg; - fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse; - toProto(message: QueryModuleVersionsResponse): Uint8Array; - toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg; -}; -export declare const QueryAuthorityRequest: { - typeUrl: string; - encode(_: QueryAuthorityRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest; - fromJSON(_: any): QueryAuthorityRequest; - toJSON(_: QueryAuthorityRequest): unknown; - fromPartial(_: Partial): QueryAuthorityRequest; - fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest; - toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino; - fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest; - toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg; - fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest; - toProto(message: QueryAuthorityRequest): Uint8Array; - toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg; -}; -export declare const QueryAuthorityResponse: { - typeUrl: string; - encode(message: QueryAuthorityResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse; - fromJSON(object: any): QueryAuthorityResponse; - toJSON(message: QueryAuthorityResponse): unknown; - fromPartial(object: Partial): QueryAuthorityResponse; - fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse; - toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino; - fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse; - toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg; - fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse; - toProto(message: QueryAuthorityResponse): Uint8Array; - toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts deleted file mode 100644 index c76598bb..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - currentPlan(_params?: QueryCurrentPlanRequest): Promise; - appliedPlan(params: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(params: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(params: QueryModuleVersionsRequest): Promise; - authority(_params?: QueryAuthorityRequest): Promise; -} diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index aaf18b79..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; -/** Query defines the gRPC upgrade querier service. */ -export interface Query { - /** CurrentPlan queries the current upgrade plan. */ - currentPlan(request?: QueryCurrentPlanRequest): Promise; - /** AppliedPlan queries a previously applied upgrade plan by its name. */ - appliedPlan(request: QueryAppliedPlanRequest): Promise; - /** - * UpgradedConsensusState queries the consensus state that will serve - * as a trusted kernel for the next version of this chain. It will only be - * stored at the last height of this chain. - * UpgradedConsensusState RPC not supported with legacy querier - * This rpc is deprecated now that IBC has its own replacement - * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - */ - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - /** - * ModuleVersions queries the list of module versions from state. - * - * Since: cosmos-sdk 0.43 - */ - moduleVersions(request: QueryModuleVersionsRequest): Promise; - /** - * Returns the account with authority to conduct upgrades - * - * Since: cosmos-sdk 0.46 - */ - authority(request?: QueryAuthorityRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - currentPlan(request?: QueryCurrentPlanRequest): Promise; - appliedPlan(request: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: QueryModuleVersionsRequest): Promise; - authority(request?: QueryAuthorityRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - currentPlan(request?: QueryCurrentPlanRequest): Promise; - appliedPlan(request: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: QueryModuleVersionsRequest): Promise; - authority(request?: QueryAuthorityRequest): Promise; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts deleted file mode 100644 index a4777694..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export declare const AminoConverter: { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: MsgSoftwareUpgrade) => import("./tx").MsgSoftwareUpgradeAmino; - fromAmino: (object: import("./tx").MsgSoftwareUpgradeAmino) => MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: MsgCancelUpgrade) => import("./tx").MsgCancelUpgradeAmino; - fromAmino: (object: import("./tx").MsgCancelUpgradeAmino) => MsgCancelUpgrade; - }; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts deleted file mode 100644 index 34cfaefc..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +++ /dev/null @@ -1,193 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgrade { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan: Plan; -} -export interface MsgSoftwareUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** plan is the upgrade plan. */ - plan?: PlanAmino; -} -export interface MsgSoftwareUpgradeAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgrade"; - value: MsgSoftwareUpgradeAmino; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeSDKType { - authority: string; - plan: PlanSDKType; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponse { -} -export interface MsgSoftwareUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseAmino { -} -export interface MsgSoftwareUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; - value: MsgSoftwareUpgradeResponseAmino; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseSDKType { -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgrade { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - value: Uint8Array; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; -} -export interface MsgCancelUpgradeAminoMsg { - type: "cosmos-sdk/MsgCancelUpgrade"; - value: MsgCancelUpgradeAmino; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeSDKType { - authority: string; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponse { -} -export interface MsgCancelUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseAmino { -} -export interface MsgCancelUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUpgradeResponse"; - value: MsgCancelUpgradeResponseAmino; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseSDKType { -} -export declare const MsgSoftwareUpgrade: { - typeUrl: string; - encode(message: MsgSoftwareUpgrade, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade; - fromJSON(object: any): MsgSoftwareUpgrade; - toJSON(message: MsgSoftwareUpgrade): unknown; - fromPartial(object: Partial): MsgSoftwareUpgrade; - fromAmino(object: MsgSoftwareUpgradeAmino): MsgSoftwareUpgrade; - toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino; - fromAminoMsg(object: MsgSoftwareUpgradeAminoMsg): MsgSoftwareUpgrade; - toAminoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAminoMsg; - fromProtoMsg(message: MsgSoftwareUpgradeProtoMsg): MsgSoftwareUpgrade; - toProto(message: MsgSoftwareUpgrade): Uint8Array; - toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg; -}; -export declare const MsgSoftwareUpgradeResponse: { - typeUrl: string; - encode(_: MsgSoftwareUpgradeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse; - fromJSON(_: any): MsgSoftwareUpgradeResponse; - toJSON(_: MsgSoftwareUpgradeResponse): unknown; - fromPartial(_: Partial): MsgSoftwareUpgradeResponse; - fromAmino(_: MsgSoftwareUpgradeResponseAmino): MsgSoftwareUpgradeResponse; - toAmino(_: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAmino; - fromAminoMsg(object: MsgSoftwareUpgradeResponseAminoMsg): MsgSoftwareUpgradeResponse; - toAminoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAminoMsg; - fromProtoMsg(message: MsgSoftwareUpgradeResponseProtoMsg): MsgSoftwareUpgradeResponse; - toProto(message: MsgSoftwareUpgradeResponse): Uint8Array; - toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg; -}; -export declare const MsgCancelUpgrade: { - typeUrl: string; - encode(message: MsgCancelUpgrade, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade; - fromJSON(object: any): MsgCancelUpgrade; - toJSON(message: MsgCancelUpgrade): unknown; - fromPartial(object: Partial): MsgCancelUpgrade; - fromAmino(object: MsgCancelUpgradeAmino): MsgCancelUpgrade; - toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino; - fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade; - toAminoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeAminoMsg; - fromProtoMsg(message: MsgCancelUpgradeProtoMsg): MsgCancelUpgrade; - toProto(message: MsgCancelUpgrade): Uint8Array; - toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg; -}; -export declare const MsgCancelUpgradeResponse: { - typeUrl: string; - encode(_: MsgCancelUpgradeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse; - fromJSON(_: any): MsgCancelUpgradeResponse; - toJSON(_: MsgCancelUpgradeResponse): unknown; - fromPartial(_: Partial): MsgCancelUpgradeResponse; - fromAmino(_: MsgCancelUpgradeResponseAmino): MsgCancelUpgradeResponse; - toAmino(_: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAmino; - fromAminoMsg(object: MsgCancelUpgradeResponseAminoMsg): MsgCancelUpgradeResponse; - toAminoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAminoMsg; - fromProtoMsg(message: MsgCancelUpgradeResponseProtoMsg): MsgCancelUpgradeResponse; - toProto(message: MsgCancelUpgradeResponse): Uint8Array; - toProtoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts deleted file mode 100644 index 7020bc9d..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: MsgSoftwareUpgrade; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: MsgCancelUpgrade; - }; - }; - toJSON: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: unknown; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - softwareUpgrade(value: any): { - typeUrl: string; - value: MsgSoftwareUpgrade; - }; - cancelUpgrade(value: any): { - typeUrl: string; - value: MsgCancelUpgrade; - }; - }; - fromPartial: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: MsgSoftwareUpgrade; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: MsgCancelUpgrade; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 66d0b9a7..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; -/** Msg defines the upgrade Msg service. */ -export interface Msg { - /** - * SoftwareUpgrade is a governance operation for initiating a software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - softwareUpgrade(request: MsgSoftwareUpgrade): Promise; - /** - * CancelUpgrade is a governance operation for cancelling a previously - * approvid software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - cancelUpgrade(request: MsgCancelUpgrade): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - softwareUpgrade(request: MsgSoftwareUpgrade): Promise; - cancelUpgrade(request: MsgCancelUpgrade): Promise; -} diff --git a/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts b/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts deleted file mode 100644 index b3fff209..00000000 --- a/packages/api/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +++ /dev/null @@ -1,283 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time: Timestamp; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: bigint; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgradedClientState?: Any; -} -export interface PlanProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.Plan"; - value: Uint8Array; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanAmino { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgraded_client_state?: AnyAmino; -} -export interface PlanAminoMsg { - type: "cosmos-sdk/Plan"; - value: PlanAmino; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanSDKType { - name: string; - /** @deprecated */ - time: TimestampSDKType; - height: bigint; - info: string; - /** @deprecated */ - upgraded_client_state?: AnySDKType; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: Plan; -} -export interface SoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; -} -export interface SoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/SoftwareUpgradeProposal"; - value: SoftwareUpgradeProposalAmino; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalAmino { - title?: string; - description?: string; -} -export interface CancelSoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; - value: CancelSoftwareUpgradeProposalAmino; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersion { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: bigint; -} -export interface ModuleVersionProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; - value: Uint8Array; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionAmino { - /** name of the app module */ - name?: string; - /** consensus version of the app module */ - version?: string; -} -export interface ModuleVersionAminoMsg { - type: "cosmos-sdk/ModuleVersion"; - value: ModuleVersionAmino; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionSDKType { - name: string; - version: bigint; -} -export declare const Plan: { - typeUrl: string; - encode(message: Plan, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Plan; - fromJSON(object: any): Plan; - toJSON(message: Plan): unknown; - fromPartial(object: Partial): Plan; - fromAmino(object: PlanAmino): Plan; - toAmino(message: Plan): PlanAmino; - fromAminoMsg(object: PlanAminoMsg): Plan; - toAminoMsg(message: Plan): PlanAminoMsg; - fromProtoMsg(message: PlanProtoMsg): Plan; - toProto(message: Plan): Uint8Array; - toProtoMsg(message: Plan): PlanProtoMsg; -}; -export declare const SoftwareUpgradeProposal: { - typeUrl: string; - encode(message: SoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal; - fromJSON(object: any): SoftwareUpgradeProposal; - toJSON(message: SoftwareUpgradeProposal): unknown; - fromPartial(object: Partial): SoftwareUpgradeProposal; - fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal; - toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino; - fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal; - toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal; - toProto(message: SoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg; -}; -export declare const CancelSoftwareUpgradeProposal: { - typeUrl: string; - encode(message: CancelSoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal; - fromJSON(object: any): CancelSoftwareUpgradeProposal; - toJSON(message: CancelSoftwareUpgradeProposal): unknown; - fromPartial(object: Partial): CancelSoftwareUpgradeProposal; - fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal; - toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino; - fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal; - toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal; - toProto(message: CancelSoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg; -}; -export declare const ModuleVersion: { - typeUrl: string; - encode(message: ModuleVersion, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion; - fromJSON(object: any): ModuleVersion; - toJSON(message: ModuleVersion): unknown; - fromPartial(object: Partial): ModuleVersion; - fromAmino(object: ModuleVersionAmino): ModuleVersion; - toAmino(message: ModuleVersion): ModuleVersionAmino; - fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion; - toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg; - fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion; - toProto(message: ModuleVersion): Uint8Array; - toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts deleted file mode 100644 index 136d9688..00000000 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export declare const AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: MsgCreateVestingAccount) => import("./tx").MsgCreateVestingAccountAmino; - fromAmino: (object: import("./tx").MsgCreateVestingAccountAmino) => MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: MsgCreatePermanentLockedAccount) => import("./tx").MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: import("./tx").MsgCreatePermanentLockedAccountAmino) => MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: MsgCreatePeriodicVestingAccount) => import("./tx").MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: import("./tx").MsgCreatePeriodicVestingAccountAmino) => MsgCreatePeriodicVestingAccount; - }; -}; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts deleted file mode 100644 index 3ce30fa7..00000000 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +++ /dev/null @@ -1,297 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: bigint; - delayed: boolean; -} -export interface MsgCreateVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; - end_time?: string; - delayed?: boolean; -} -export interface MsgCreateVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: MsgCreateVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: bigint; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse { -} -export interface MsgCreateVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - value: Uint8Array; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseAmino { -} -export interface MsgCreateVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccountResponse"; - value: MsgCreateVestingAccountResponseAmino; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType { -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgCreatePermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgCreatePermanentLockedAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: MsgCreatePermanentLockedAccountAmino; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponse { -} -export interface MsgCreatePermanentLockedAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseAmino { -} -export interface MsgCreatePermanentLockedAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; - value: MsgCreatePermanentLockedAccountResponseAmino; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseSDKType { -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface MsgCreatePeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountAmino { - from_address?: string; - to_address?: string; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface MsgCreatePeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: MsgCreatePeriodicVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponse { -} -export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseAmino { -} -export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; - value: MsgCreatePeriodicVestingAccountResponseAmino; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType { -} -export declare const MsgCreateVestingAccount: { - typeUrl: string; - encode(message: MsgCreateVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount; - fromJSON(object: any): MsgCreateVestingAccount; - toJSON(message: MsgCreateVestingAccount): unknown; - fromPartial(object: Partial): MsgCreateVestingAccount; - fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount; - toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino; - fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount; - toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg; - fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount; - toProto(message: MsgCreateVestingAccount): Uint8Array; - toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg; -}; -export declare const MsgCreateVestingAccountResponse: { - typeUrl: string; - encode(_: MsgCreateVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; - fromJSON(_: any): MsgCreateVestingAccountResponse; - toJSON(_: MsgCreateVestingAccountResponse): unknown; - fromPartial(_: Partial): MsgCreateVestingAccountResponse; - fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse; - toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino; - fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse; - toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse; - toProto(message: MsgCreateVestingAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg; -}; -export declare const MsgCreatePermanentLockedAccount: { - typeUrl: string; - encode(message: MsgCreatePermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; - fromJSON(object: any): MsgCreatePermanentLockedAccount; - toJSON(message: MsgCreatePermanentLockedAccount): unknown; - fromPartial(object: Partial): MsgCreatePermanentLockedAccount; - fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount; - toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino; - fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount; - toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg; - fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount; - toProto(message: MsgCreatePermanentLockedAccount): Uint8Array; - toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg; -}; -export declare const MsgCreatePermanentLockedAccountResponse: { - typeUrl: string; - encode(_: MsgCreatePermanentLockedAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; - fromJSON(_: any): MsgCreatePermanentLockedAccountResponse; - toJSON(_: MsgCreatePermanentLockedAccountResponse): unknown; - fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse; - fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse; - toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino; - fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse; - toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse; - toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg; -}; -export declare const MsgCreatePeriodicVestingAccount: { - typeUrl: string; - encode(message: MsgCreatePeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; - fromJSON(object: any): MsgCreatePeriodicVestingAccount; - toJSON(message: MsgCreatePeriodicVestingAccount): unknown; - fromPartial(object: Partial): MsgCreatePeriodicVestingAccount; - fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount; - toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino; - fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount; - toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg; - fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount; - toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array; - toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg; -}; -export declare const MsgCreatePeriodicVestingAccountResponse: { - typeUrl: string; - encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; - fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse; - toJSON(_: MsgCreatePeriodicVestingAccountResponse): unknown; - fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse; - fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse; - toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino; - fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse; - toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse; - toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts deleted file mode 100644 index 6432e90b..00000000 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; - toJSON: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: unknown; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: unknown; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createVestingAccount(value: any): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: any): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: any): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; - fromPartial: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; -}; diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 53bd60d0..00000000 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** - * CreateVestingAccount defines a method that enables creating a vesting - * account. - */ - createVestingAccount(request: MsgCreateVestingAccount): Promise; - /** - * CreatePermanentLockedAccount defines a method that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - /** - * CreatePeriodicVestingAccount defines a method that enables creating a - * periodic vesting account. - * - * Since: cosmos-sdk 0.46 - */ - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createVestingAccount(request: MsgCreateVestingAccount): Promise; - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} diff --git a/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts b/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts deleted file mode 100644 index 3fb565f9..00000000 --- a/packages/api/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +++ /dev/null @@ -1,294 +0,0 @@ -import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount?: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: bigint; -} -export interface BaseVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; - value: Uint8Array; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountAmino { - base_account?: BaseAccountAmino; - original_vesting?: CoinAmino[]; - delegated_free?: CoinAmino[]; - delegated_vesting?: CoinAmino[]; - end_time?: string; -} -export interface BaseVestingAccountAminoMsg { - type: "cosmos-sdk/BaseVestingAccount"; - value: BaseVestingAccountAmino; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account?: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: bigint; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; -} -export interface ContinuousVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; - value: Uint8Array; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; -} -export interface ContinuousVestingAccountAminoMsg { - type: "cosmos-sdk/ContinuousVestingAccount"; - value: ContinuousVestingAccountAmino; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface DelayedVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; - value: Uint8Array; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface DelayedVestingAccountAminoMsg { - type: "cosmos-sdk/DelayedVestingAccount"; - value: DelayedVestingAccountAmino; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: bigint; - amount: Coin[]; -} -export interface PeriodProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.Period"; - value: Uint8Array; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodAmino { - length?: string; - amount?: CoinAmino[]; -} -export interface PeriodAminoMsg { - type: "cosmos-sdk/Period"; - value: PeriodAmino; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: bigint; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface PeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; - value: Uint8Array; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface PeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/PeriodicVestingAccount"; - value: PeriodicVestingAccountAmino; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface PermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; - value: Uint8Array; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface PermanentLockedAccountAminoMsg { - type: "cosmos-sdk/PermanentLockedAccount"; - value: PermanentLockedAccountAmino; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -export declare const BaseVestingAccount: { - typeUrl: string; - encode(message: BaseVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount; - fromJSON(object: any): BaseVestingAccount; - toJSON(message: BaseVestingAccount): unknown; - fromPartial(object: Partial): BaseVestingAccount; - fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount; - toAmino(message: BaseVestingAccount): BaseVestingAccountAmino; - fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount; - toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg; - fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount; - toProto(message: BaseVestingAccount): Uint8Array; - toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg; -}; -export declare const ContinuousVestingAccount: { - typeUrl: string; - encode(message: ContinuousVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount; - fromJSON(object: any): ContinuousVestingAccount; - toJSON(message: ContinuousVestingAccount): unknown; - fromPartial(object: Partial): ContinuousVestingAccount; - fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount; - toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino; - fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount; - toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg; - fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount; - toProto(message: ContinuousVestingAccount): Uint8Array; - toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg; -}; -export declare const DelayedVestingAccount: { - typeUrl: string; - encode(message: DelayedVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount; - fromJSON(object: any): DelayedVestingAccount; - toJSON(message: DelayedVestingAccount): unknown; - fromPartial(object: Partial): DelayedVestingAccount; - fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount; - toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino; - fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount; - toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg; - fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount; - toProto(message: DelayedVestingAccount): Uint8Array; - toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg; -}; -export declare const Period: { - typeUrl: string; - encode(message: Period, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Period; - fromJSON(object: any): Period; - toJSON(message: Period): unknown; - fromPartial(object: Partial): Period; - fromAmino(object: PeriodAmino): Period; - toAmino(message: Period): PeriodAmino; - fromAminoMsg(object: PeriodAminoMsg): Period; - toAminoMsg(message: Period): PeriodAminoMsg; - fromProtoMsg(message: PeriodProtoMsg): Period; - toProto(message: Period): Uint8Array; - toProtoMsg(message: Period): PeriodProtoMsg; -}; -export declare const PeriodicVestingAccount: { - typeUrl: string; - encode(message: PeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount; - fromJSON(object: any): PeriodicVestingAccount; - toJSON(message: PeriodicVestingAccount): unknown; - fromPartial(object: Partial): PeriodicVestingAccount; - fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount; - toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino; - fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount; - toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg; - fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount; - toProto(message: PeriodicVestingAccount): Uint8Array; - toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg; -}; -export declare const PermanentLockedAccount: { - typeUrl: string; - encode(message: PermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount; - fromJSON(object: any): PermanentLockedAccount; - toJSON(message: PermanentLockedAccount): unknown; - fromPartial(object: Partial): PermanentLockedAccount; - fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount; - toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino; - fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount; - toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg; - fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount; - toProto(message: PermanentLockedAccount): Uint8Array; - toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg; -}; diff --git a/packages/api/types/codegen/cosmos_proto/bundle.d.ts b/packages/api/types/codegen/cosmos_proto/bundle.d.ts deleted file mode 100644 index d2e5d12f..00000000 --- a/packages/api/types/codegen/cosmos_proto/bundle.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as _1 from "./cosmos"; -export declare const cosmos_proto: { - scalarTypeFromJSON(object: any): _1.ScalarType; - scalarTypeToJSON(object: _1.ScalarType): string; - ScalarType: typeof _1.ScalarType; - ScalarTypeSDKType: typeof _1.ScalarType; - ScalarTypeAmino: typeof _1.ScalarType; - InterfaceDescriptor: { - typeUrl: string; - encode(message: _1.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _1.InterfaceDescriptor; - fromJSON(object: any): _1.InterfaceDescriptor; - toJSON(message: _1.InterfaceDescriptor): unknown; - fromPartial(object: Partial<_1.InterfaceDescriptor>): _1.InterfaceDescriptor; - fromAmino(object: _1.InterfaceDescriptorAmino): _1.InterfaceDescriptor; - toAmino(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorAmino; - fromAminoMsg(object: _1.InterfaceDescriptorAminoMsg): _1.InterfaceDescriptor; - fromProtoMsg(message: _1.InterfaceDescriptorProtoMsg): _1.InterfaceDescriptor; - toProto(message: _1.InterfaceDescriptor): Uint8Array; - toProtoMsg(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorProtoMsg; - }; - ScalarDescriptor: { - typeUrl: string; - encode(message: _1.ScalarDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _1.ScalarDescriptor; - fromJSON(object: any): _1.ScalarDescriptor; - toJSON(message: _1.ScalarDescriptor): unknown; - fromPartial(object: Partial<_1.ScalarDescriptor>): _1.ScalarDescriptor; - fromAmino(object: _1.ScalarDescriptorAmino): _1.ScalarDescriptor; - toAmino(message: _1.ScalarDescriptor): _1.ScalarDescriptorAmino; - fromAminoMsg(object: _1.ScalarDescriptorAminoMsg): _1.ScalarDescriptor; - fromProtoMsg(message: _1.ScalarDescriptorProtoMsg): _1.ScalarDescriptor; - toProto(message: _1.ScalarDescriptor): Uint8Array; - toProtoMsg(message: _1.ScalarDescriptor): _1.ScalarDescriptorProtoMsg; - }; -}; diff --git a/packages/api/types/codegen/cosmos_proto/cosmos.d.ts b/packages/api/types/codegen/cosmos_proto/cosmos.d.ts deleted file mode 100644 index 4cd0b705..00000000 --- a/packages/api/types/codegen/cosmos_proto/cosmos.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../binary"; -export declare enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2, - UNRECOGNIZED = -1 -} -export declare const ScalarTypeSDKType: typeof ScalarType; -export declare const ScalarTypeAmino: typeof ScalarType; -export declare function scalarTypeFromJSON(object: any): ScalarType; -export declare function scalarTypeToJSON(object: ScalarType): string; -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptor { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos_proto.InterfaceDescriptor"; - value: Uint8Array; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorAmino { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description?: string; -} -export interface InterfaceDescriptorAminoMsg { - type: "/cosmos_proto.InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorSDKType { - name: string; - description: string; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptor { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - fieldType: ScalarType[]; -} -export interface ScalarDescriptorProtoMsg { - typeUrl: "/cosmos_proto.ScalarDescriptor"; - value: Uint8Array; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorAmino { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description?: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - field_type?: ScalarType[]; -} -export interface ScalarDescriptorAminoMsg { - type: "/cosmos_proto.ScalarDescriptor"; - value: ScalarDescriptorAmino; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorSDKType { - name: string; - description: string; - field_type: ScalarType[]; -} -export declare const InterfaceDescriptor: { - typeUrl: string; - encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; - fromJSON(object: any): InterfaceDescriptor; - toJSON(message: InterfaceDescriptor): unknown; - fromPartial(object: Partial): InterfaceDescriptor; - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; - toProto(message: InterfaceDescriptor): Uint8Array; - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; -}; -export declare const ScalarDescriptor: { - typeUrl: string; - encode(message: ScalarDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor; - fromJSON(object: any): ScalarDescriptor; - toJSON(message: ScalarDescriptor): unknown; - fromPartial(object: Partial): ScalarDescriptor; - fromAmino(object: ScalarDescriptorAmino): ScalarDescriptor; - toAmino(message: ScalarDescriptor): ScalarDescriptorAmino; - fromAminoMsg(object: ScalarDescriptorAminoMsg): ScalarDescriptor; - fromProtoMsg(message: ScalarDescriptorProtoMsg): ScalarDescriptor; - toProto(message: ScalarDescriptor): Uint8Array; - toProtoMsg(message: ScalarDescriptor): ScalarDescriptorProtoMsg; -}; diff --git a/packages/api/types/codegen/gogoproto/bundle.d.ts b/packages/api/types/codegen/gogoproto/bundle.d.ts deleted file mode 100644 index 55791e68..00000000 --- a/packages/api/types/codegen/gogoproto/bundle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const gogoproto: {}; diff --git a/packages/api/types/codegen/gogoproto/gogo.d.ts b/packages/api/types/codegen/gogoproto/gogo.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/types/codegen/gogoproto/gogo.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/types/codegen/google/api/annotations.d.ts b/packages/api/types/codegen/google/api/annotations.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/types/codegen/google/api/annotations.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/types/codegen/google/bundle.d.ts b/packages/api/types/codegen/google/bundle.d.ts deleted file mode 100644 index cd1d0ec5..00000000 --- a/packages/api/types/codegen/google/bundle.d.ts +++ /dev/null @@ -1,503 +0,0 @@ -import * as _100 from "./api/http"; -import * as _101 from "./protobuf/descriptor"; -import * as _102 from "./protobuf/any"; -import * as _103 from "./protobuf/timestamp"; -import * as _104 from "./protobuf/duration"; -export declare namespace google { - const api: { - Http: { - typeUrl: string; - encode(message: _100.Http, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.Http; - fromJSON(object: any): _100.Http; - toJSON(message: _100.Http): unknown; - fromPartial(object: Partial<_100.Http>): _100.Http; - fromAmino(object: _100.HttpAmino): _100.Http; - toAmino(message: _100.Http): _100.HttpAmino; - fromAminoMsg(object: _100.HttpAminoMsg): _100.Http; - fromProtoMsg(message: _100.HttpProtoMsg): _100.Http; - toProto(message: _100.Http): Uint8Array; - toProtoMsg(message: _100.Http): _100.HttpProtoMsg; - }; - HttpRule: { - typeUrl: string; - encode(message: _100.HttpRule, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.HttpRule; - fromJSON(object: any): _100.HttpRule; - toJSON(message: _100.HttpRule): unknown; - fromPartial(object: Partial<_100.HttpRule>): _100.HttpRule; - fromAmino(object: _100.HttpRuleAmino): _100.HttpRule; - toAmino(message: _100.HttpRule): _100.HttpRuleAmino; - fromAminoMsg(object: _100.HttpRuleAminoMsg): _100.HttpRule; - fromProtoMsg(message: _100.HttpRuleProtoMsg): _100.HttpRule; - toProto(message: _100.HttpRule): Uint8Array; - toProtoMsg(message: _100.HttpRule): _100.HttpRuleProtoMsg; - }; - CustomHttpPattern: { - typeUrl: string; - encode(message: _100.CustomHttpPattern, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _100.CustomHttpPattern; - fromJSON(object: any): _100.CustomHttpPattern; - toJSON(message: _100.CustomHttpPattern): unknown; - fromPartial(object: Partial<_100.CustomHttpPattern>): _100.CustomHttpPattern; - fromAmino(object: _100.CustomHttpPatternAmino): _100.CustomHttpPattern; - toAmino(message: _100.CustomHttpPattern): _100.CustomHttpPatternAmino; - fromAminoMsg(object: _100.CustomHttpPatternAminoMsg): _100.CustomHttpPattern; - fromProtoMsg(message: _100.CustomHttpPatternProtoMsg): _100.CustomHttpPattern; - toProto(message: _100.CustomHttpPattern): Uint8Array; - toProtoMsg(message: _100.CustomHttpPattern): _100.CustomHttpPatternProtoMsg; - }; - }; - const protobuf: { - Duration: { - typeUrl: string; - encode(message: _104.Duration, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _104.Duration; - fromJSON(object: any): _104.Duration; - toJSON(message: _104.Duration): unknown; - fromPartial(object: Partial<_104.Duration>): _104.Duration; - fromAmino(object: string): _104.Duration; - toAmino(message: _104.Duration): string; - fromAminoMsg(object: _104.DurationAminoMsg): _104.Duration; - fromProtoMsg(message: _104.DurationProtoMsg): _104.Duration; - toProto(message: _104.Duration): Uint8Array; - toProtoMsg(message: _104.Duration): _104.DurationProtoMsg; - }; - Timestamp: { - typeUrl: string; - encode(message: _103.Timestamp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _103.Timestamp; - fromJSON(object: any): _103.Timestamp; - toJSON(message: _103.Timestamp): unknown; - fromPartial(object: Partial<_103.Timestamp>): _103.Timestamp; - fromAmino(object: string): _103.Timestamp; - toAmino(message: _103.Timestamp): string; - fromAminoMsg(object: _103.TimestampAminoMsg): _103.Timestamp; - fromProtoMsg(message: _103.TimestampProtoMsg): _103.Timestamp; - toProto(message: _103.Timestamp): Uint8Array; - toProtoMsg(message: _103.Timestamp): _103.TimestampProtoMsg; - }; - Any: { - typeUrl: string; - encode(message: _102.Any, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _102.Any; - fromJSON(object: any): _102.Any; - toJSON(message: _102.Any): unknown; - fromPartial(object: Partial<_102.Any>): _102.Any; - fromAmino(object: _102.AnyAmino): _102.Any; - toAmino(message: _102.Any): _102.AnyAmino; - fromAminoMsg(object: _102.AnyAminoMsg): _102.Any; - fromProtoMsg(message: _102.AnyProtoMsg): _102.Any; - toProto(message: _102.Any): Uint8Array; - toProtoMsg(message: _102.Any): _102.AnyProtoMsg; - }; - fieldDescriptorProto_TypeFromJSON(object: any): _101.FieldDescriptorProto_Type; - fieldDescriptorProto_TypeToJSON(object: _101.FieldDescriptorProto_Type): string; - fieldDescriptorProto_LabelFromJSON(object: any): _101.FieldDescriptorProto_Label; - fieldDescriptorProto_LabelToJSON(object: _101.FieldDescriptorProto_Label): string; - fileOptions_OptimizeModeFromJSON(object: any): _101.FileOptions_OptimizeMode; - fileOptions_OptimizeModeToJSON(object: _101.FileOptions_OptimizeMode): string; - fieldOptions_CTypeFromJSON(object: any): _101.FieldOptions_CType; - fieldOptions_CTypeToJSON(object: _101.FieldOptions_CType): string; - fieldOptions_JSTypeFromJSON(object: any): _101.FieldOptions_JSType; - fieldOptions_JSTypeToJSON(object: _101.FieldOptions_JSType): string; - methodOptions_IdempotencyLevelFromJSON(object: any): _101.MethodOptions_IdempotencyLevel; - methodOptions_IdempotencyLevelToJSON(object: _101.MethodOptions_IdempotencyLevel): string; - FieldDescriptorProto_Type: typeof _101.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeSDKType: typeof _101.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeAmino: typeof _101.FieldDescriptorProto_Type; - FieldDescriptorProto_Label: typeof _101.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelSDKType: typeof _101.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelAmino: typeof _101.FieldDescriptorProto_Label; - FileOptions_OptimizeMode: typeof _101.FileOptions_OptimizeMode; - FileOptions_OptimizeModeSDKType: typeof _101.FileOptions_OptimizeMode; - FileOptions_OptimizeModeAmino: typeof _101.FileOptions_OptimizeMode; - FieldOptions_CType: typeof _101.FieldOptions_CType; - FieldOptions_CTypeSDKType: typeof _101.FieldOptions_CType; - FieldOptions_CTypeAmino: typeof _101.FieldOptions_CType; - FieldOptions_JSType: typeof _101.FieldOptions_JSType; - FieldOptions_JSTypeSDKType: typeof _101.FieldOptions_JSType; - FieldOptions_JSTypeAmino: typeof _101.FieldOptions_JSType; - MethodOptions_IdempotencyLevel: typeof _101.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelSDKType: typeof _101.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelAmino: typeof _101.MethodOptions_IdempotencyLevel; - FileDescriptorSet: { - typeUrl: string; - encode(message: _101.FileDescriptorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileDescriptorSet; - fromJSON(object: any): _101.FileDescriptorSet; - toJSON(message: _101.FileDescriptorSet): unknown; - fromPartial(object: Partial<_101.FileDescriptorSet>): _101.FileDescriptorSet; - fromAmino(object: _101.FileDescriptorSetAmino): _101.FileDescriptorSet; - toAmino(message: _101.FileDescriptorSet): _101.FileDescriptorSetAmino; - fromAminoMsg(object: _101.FileDescriptorSetAminoMsg): _101.FileDescriptorSet; - fromProtoMsg(message: _101.FileDescriptorSetProtoMsg): _101.FileDescriptorSet; - toProto(message: _101.FileDescriptorSet): Uint8Array; - toProtoMsg(message: _101.FileDescriptorSet): _101.FileDescriptorSetProtoMsg; - }; - FileDescriptorProto: { - typeUrl: string; - encode(message: _101.FileDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileDescriptorProto; - fromJSON(object: any): _101.FileDescriptorProto; - toJSON(message: _101.FileDescriptorProto): unknown; - fromPartial(object: Partial<_101.FileDescriptorProto>): _101.FileDescriptorProto; - fromAmino(object: _101.FileDescriptorProtoAmino): _101.FileDescriptorProto; - toAmino(message: _101.FileDescriptorProto): _101.FileDescriptorProtoAmino; - fromAminoMsg(object: _101.FileDescriptorProtoAminoMsg): _101.FileDescriptorProto; - fromProtoMsg(message: _101.FileDescriptorProtoProtoMsg): _101.FileDescriptorProto; - toProto(message: _101.FileDescriptorProto): Uint8Array; - toProtoMsg(message: _101.FileDescriptorProto): _101.FileDescriptorProtoProtoMsg; - }; - DescriptorProto: { - typeUrl: string; - encode(message: _101.DescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto; - fromJSON(object: any): _101.DescriptorProto; - toJSON(message: _101.DescriptorProto): unknown; - fromPartial(object: Partial<_101.DescriptorProto>): _101.DescriptorProto; - fromAmino(object: _101.DescriptorProtoAmino): _101.DescriptorProto; - toAmino(message: _101.DescriptorProto): _101.DescriptorProtoAmino; - fromAminoMsg(object: _101.DescriptorProtoAminoMsg): _101.DescriptorProto; - fromProtoMsg(message: _101.DescriptorProtoProtoMsg): _101.DescriptorProto; - toProto(message: _101.DescriptorProto): Uint8Array; - toProtoMsg(message: _101.DescriptorProto): _101.DescriptorProtoProtoMsg; - }; - DescriptorProto_ExtensionRange: { - typeUrl: string; - encode(message: _101.DescriptorProto_ExtensionRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto_ExtensionRange; - fromJSON(object: any): _101.DescriptorProto_ExtensionRange; - toJSON(message: _101.DescriptorProto_ExtensionRange): unknown; - fromPartial(object: Partial<_101.DescriptorProto_ExtensionRange>): _101.DescriptorProto_ExtensionRange; - fromAmino(object: _101.DescriptorProto_ExtensionRangeAmino): _101.DescriptorProto_ExtensionRange; - toAmino(message: _101.DescriptorProto_ExtensionRange): _101.DescriptorProto_ExtensionRangeAmino; - fromAminoMsg(object: _101.DescriptorProto_ExtensionRangeAminoMsg): _101.DescriptorProto_ExtensionRange; - fromProtoMsg(message: _101.DescriptorProto_ExtensionRangeProtoMsg): _101.DescriptorProto_ExtensionRange; - toProto(message: _101.DescriptorProto_ExtensionRange): Uint8Array; - toProtoMsg(message: _101.DescriptorProto_ExtensionRange): _101.DescriptorProto_ExtensionRangeProtoMsg; - }; - DescriptorProto_ReservedRange: { - typeUrl: string; - encode(message: _101.DescriptorProto_ReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.DescriptorProto_ReservedRange; - fromJSON(object: any): _101.DescriptorProto_ReservedRange; - toJSON(message: _101.DescriptorProto_ReservedRange): unknown; - fromPartial(object: Partial<_101.DescriptorProto_ReservedRange>): _101.DescriptorProto_ReservedRange; - fromAmino(object: _101.DescriptorProto_ReservedRangeAmino): _101.DescriptorProto_ReservedRange; - toAmino(message: _101.DescriptorProto_ReservedRange): _101.DescriptorProto_ReservedRangeAmino; - fromAminoMsg(object: _101.DescriptorProto_ReservedRangeAminoMsg): _101.DescriptorProto_ReservedRange; - fromProtoMsg(message: _101.DescriptorProto_ReservedRangeProtoMsg): _101.DescriptorProto_ReservedRange; - toProto(message: _101.DescriptorProto_ReservedRange): Uint8Array; - toProtoMsg(message: _101.DescriptorProto_ReservedRange): _101.DescriptorProto_ReservedRangeProtoMsg; - }; - ExtensionRangeOptions: { - typeUrl: string; - encode(message: _101.ExtensionRangeOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ExtensionRangeOptions; - fromJSON(object: any): _101.ExtensionRangeOptions; - toJSON(message: _101.ExtensionRangeOptions): unknown; - fromPartial(object: Partial<_101.ExtensionRangeOptions>): _101.ExtensionRangeOptions; - fromAmino(object: _101.ExtensionRangeOptionsAmino): _101.ExtensionRangeOptions; - toAmino(message: _101.ExtensionRangeOptions): _101.ExtensionRangeOptionsAmino; - fromAminoMsg(object: _101.ExtensionRangeOptionsAminoMsg): _101.ExtensionRangeOptions; - fromProtoMsg(message: _101.ExtensionRangeOptionsProtoMsg): _101.ExtensionRangeOptions; - toProto(message: _101.ExtensionRangeOptions): Uint8Array; - toProtoMsg(message: _101.ExtensionRangeOptions): _101.ExtensionRangeOptionsProtoMsg; - }; - FieldDescriptorProto: { - typeUrl: string; - encode(message: _101.FieldDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FieldDescriptorProto; - fromJSON(object: any): _101.FieldDescriptorProto; - toJSON(message: _101.FieldDescriptorProto): unknown; - fromPartial(object: Partial<_101.FieldDescriptorProto>): _101.FieldDescriptorProto; - fromAmino(object: _101.FieldDescriptorProtoAmino): _101.FieldDescriptorProto; - toAmino(message: _101.FieldDescriptorProto): _101.FieldDescriptorProtoAmino; - fromAminoMsg(object: _101.FieldDescriptorProtoAminoMsg): _101.FieldDescriptorProto; - fromProtoMsg(message: _101.FieldDescriptorProtoProtoMsg): _101.FieldDescriptorProto; - toProto(message: _101.FieldDescriptorProto): Uint8Array; - toProtoMsg(message: _101.FieldDescriptorProto): _101.FieldDescriptorProtoProtoMsg; - }; - OneofDescriptorProto: { - typeUrl: string; - encode(message: _101.OneofDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.OneofDescriptorProto; - fromJSON(object: any): _101.OneofDescriptorProto; - toJSON(message: _101.OneofDescriptorProto): unknown; - fromPartial(object: Partial<_101.OneofDescriptorProto>): _101.OneofDescriptorProto; - fromAmino(object: _101.OneofDescriptorProtoAmino): _101.OneofDescriptorProto; - toAmino(message: _101.OneofDescriptorProto): _101.OneofDescriptorProtoAmino; - fromAminoMsg(object: _101.OneofDescriptorProtoAminoMsg): _101.OneofDescriptorProto; - fromProtoMsg(message: _101.OneofDescriptorProtoProtoMsg): _101.OneofDescriptorProto; - toProto(message: _101.OneofDescriptorProto): Uint8Array; - toProtoMsg(message: _101.OneofDescriptorProto): _101.OneofDescriptorProtoProtoMsg; - }; - EnumDescriptorProto: { - typeUrl: string; - encode(message: _101.EnumDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumDescriptorProto; - fromJSON(object: any): _101.EnumDescriptorProto; - toJSON(message: _101.EnumDescriptorProto): unknown; - fromPartial(object: Partial<_101.EnumDescriptorProto>): _101.EnumDescriptorProto; - fromAmino(object: _101.EnumDescriptorProtoAmino): _101.EnumDescriptorProto; - toAmino(message: _101.EnumDescriptorProto): _101.EnumDescriptorProtoAmino; - fromAminoMsg(object: _101.EnumDescriptorProtoAminoMsg): _101.EnumDescriptorProto; - fromProtoMsg(message: _101.EnumDescriptorProtoProtoMsg): _101.EnumDescriptorProto; - toProto(message: _101.EnumDescriptorProto): Uint8Array; - toProtoMsg(message: _101.EnumDescriptorProto): _101.EnumDescriptorProtoProtoMsg; - }; - EnumDescriptorProto_EnumReservedRange: { - typeUrl: string; - encode(message: _101.EnumDescriptorProto_EnumReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumDescriptorProto_EnumReservedRange; - fromJSON(object: any): _101.EnumDescriptorProto_EnumReservedRange; - toJSON(message: _101.EnumDescriptorProto_EnumReservedRange): unknown; - fromPartial(object: Partial<_101.EnumDescriptorProto_EnumReservedRange>): _101.EnumDescriptorProto_EnumReservedRange; - fromAmino(object: _101.EnumDescriptorProto_EnumReservedRangeAmino): _101.EnumDescriptorProto_EnumReservedRange; - toAmino(message: _101.EnumDescriptorProto_EnumReservedRange): _101.EnumDescriptorProto_EnumReservedRangeAmino; - fromAminoMsg(object: _101.EnumDescriptorProto_EnumReservedRangeAminoMsg): _101.EnumDescriptorProto_EnumReservedRange; - fromProtoMsg(message: _101.EnumDescriptorProto_EnumReservedRangeProtoMsg): _101.EnumDescriptorProto_EnumReservedRange; - toProto(message: _101.EnumDescriptorProto_EnumReservedRange): Uint8Array; - toProtoMsg(message: _101.EnumDescriptorProto_EnumReservedRange): _101.EnumDescriptorProto_EnumReservedRangeProtoMsg; - }; - EnumValueDescriptorProto: { - typeUrl: string; - encode(message: _101.EnumValueDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumValueDescriptorProto; - fromJSON(object: any): _101.EnumValueDescriptorProto; - toJSON(message: _101.EnumValueDescriptorProto): unknown; - fromPartial(object: Partial<_101.EnumValueDescriptorProto>): _101.EnumValueDescriptorProto; - fromAmino(object: _101.EnumValueDescriptorProtoAmino): _101.EnumValueDescriptorProto; - toAmino(message: _101.EnumValueDescriptorProto): _101.EnumValueDescriptorProtoAmino; - fromAminoMsg(object: _101.EnumValueDescriptorProtoAminoMsg): _101.EnumValueDescriptorProto; - fromProtoMsg(message: _101.EnumValueDescriptorProtoProtoMsg): _101.EnumValueDescriptorProto; - toProto(message: _101.EnumValueDescriptorProto): Uint8Array; - toProtoMsg(message: _101.EnumValueDescriptorProto): _101.EnumValueDescriptorProtoProtoMsg; - }; - ServiceDescriptorProto: { - typeUrl: string; - encode(message: _101.ServiceDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ServiceDescriptorProto; - fromJSON(object: any): _101.ServiceDescriptorProto; - toJSON(message: _101.ServiceDescriptorProto): unknown; - fromPartial(object: Partial<_101.ServiceDescriptorProto>): _101.ServiceDescriptorProto; - fromAmino(object: _101.ServiceDescriptorProtoAmino): _101.ServiceDescriptorProto; - toAmino(message: _101.ServiceDescriptorProto): _101.ServiceDescriptorProtoAmino; - fromAminoMsg(object: _101.ServiceDescriptorProtoAminoMsg): _101.ServiceDescriptorProto; - fromProtoMsg(message: _101.ServiceDescriptorProtoProtoMsg): _101.ServiceDescriptorProto; - toProto(message: _101.ServiceDescriptorProto): Uint8Array; - toProtoMsg(message: _101.ServiceDescriptorProto): _101.ServiceDescriptorProtoProtoMsg; - }; - MethodDescriptorProto: { - typeUrl: string; - encode(message: _101.MethodDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MethodDescriptorProto; - fromJSON(object: any): _101.MethodDescriptorProto; - toJSON(message: _101.MethodDescriptorProto): unknown; - fromPartial(object: Partial<_101.MethodDescriptorProto>): _101.MethodDescriptorProto; - fromAmino(object: _101.MethodDescriptorProtoAmino): _101.MethodDescriptorProto; - toAmino(message: _101.MethodDescriptorProto): _101.MethodDescriptorProtoAmino; - fromAminoMsg(object: _101.MethodDescriptorProtoAminoMsg): _101.MethodDescriptorProto; - fromProtoMsg(message: _101.MethodDescriptorProtoProtoMsg): _101.MethodDescriptorProto; - toProto(message: _101.MethodDescriptorProto): Uint8Array; - toProtoMsg(message: _101.MethodDescriptorProto): _101.MethodDescriptorProtoProtoMsg; - }; - FileOptions: { - typeUrl: string; - encode(message: _101.FileOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FileOptions; - fromJSON(object: any): _101.FileOptions; - toJSON(message: _101.FileOptions): unknown; - fromPartial(object: Partial<_101.FileOptions>): _101.FileOptions; - fromAmino(object: _101.FileOptionsAmino): _101.FileOptions; - toAmino(message: _101.FileOptions): _101.FileOptionsAmino; - fromAminoMsg(object: _101.FileOptionsAminoMsg): _101.FileOptions; - fromProtoMsg(message: _101.FileOptionsProtoMsg): _101.FileOptions; - toProto(message: _101.FileOptions): Uint8Array; - toProtoMsg(message: _101.FileOptions): _101.FileOptionsProtoMsg; - }; - MessageOptions: { - typeUrl: string; - encode(message: _101.MessageOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MessageOptions; - fromJSON(object: any): _101.MessageOptions; - toJSON(message: _101.MessageOptions): unknown; - fromPartial(object: Partial<_101.MessageOptions>): _101.MessageOptions; - fromAmino(object: _101.MessageOptionsAmino): _101.MessageOptions; - toAmino(message: _101.MessageOptions): _101.MessageOptionsAmino; - fromAminoMsg(object: _101.MessageOptionsAminoMsg): _101.MessageOptions; - fromProtoMsg(message: _101.MessageOptionsProtoMsg): _101.MessageOptions; - toProto(message: _101.MessageOptions): Uint8Array; - toProtoMsg(message: _101.MessageOptions): _101.MessageOptionsProtoMsg; - }; - FieldOptions: { - typeUrl: string; - encode(message: _101.FieldOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.FieldOptions; - fromJSON(object: any): _101.FieldOptions; - toJSON(message: _101.FieldOptions): unknown; - fromPartial(object: Partial<_101.FieldOptions>): _101.FieldOptions; - fromAmino(object: _101.FieldOptionsAmino): _101.FieldOptions; - toAmino(message: _101.FieldOptions): _101.FieldOptionsAmino; - fromAminoMsg(object: _101.FieldOptionsAminoMsg): _101.FieldOptions; - fromProtoMsg(message: _101.FieldOptionsProtoMsg): _101.FieldOptions; - toProto(message: _101.FieldOptions): Uint8Array; - toProtoMsg(message: _101.FieldOptions): _101.FieldOptionsProtoMsg; - }; - OneofOptions: { - typeUrl: string; - encode(message: _101.OneofOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.OneofOptions; - fromJSON(object: any): _101.OneofOptions; - toJSON(message: _101.OneofOptions): unknown; - fromPartial(object: Partial<_101.OneofOptions>): _101.OneofOptions; - fromAmino(object: _101.OneofOptionsAmino): _101.OneofOptions; - toAmino(message: _101.OneofOptions): _101.OneofOptionsAmino; - fromAminoMsg(object: _101.OneofOptionsAminoMsg): _101.OneofOptions; - fromProtoMsg(message: _101.OneofOptionsProtoMsg): _101.OneofOptions; - toProto(message: _101.OneofOptions): Uint8Array; - toProtoMsg(message: _101.OneofOptions): _101.OneofOptionsProtoMsg; - }; - EnumOptions: { - typeUrl: string; - encode(message: _101.EnumOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumOptions; - fromJSON(object: any): _101.EnumOptions; - toJSON(message: _101.EnumOptions): unknown; - fromPartial(object: Partial<_101.EnumOptions>): _101.EnumOptions; - fromAmino(object: _101.EnumOptionsAmino): _101.EnumOptions; - toAmino(message: _101.EnumOptions): _101.EnumOptionsAmino; - fromAminoMsg(object: _101.EnumOptionsAminoMsg): _101.EnumOptions; - fromProtoMsg(message: _101.EnumOptionsProtoMsg): _101.EnumOptions; - toProto(message: _101.EnumOptions): Uint8Array; - toProtoMsg(message: _101.EnumOptions): _101.EnumOptionsProtoMsg; - }; - EnumValueOptions: { - typeUrl: string; - encode(message: _101.EnumValueOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.EnumValueOptions; - fromJSON(object: any): _101.EnumValueOptions; - toJSON(message: _101.EnumValueOptions): unknown; - fromPartial(object: Partial<_101.EnumValueOptions>): _101.EnumValueOptions; - fromAmino(object: _101.EnumValueOptionsAmino): _101.EnumValueOptions; - toAmino(message: _101.EnumValueOptions): _101.EnumValueOptionsAmino; - fromAminoMsg(object: _101.EnumValueOptionsAminoMsg): _101.EnumValueOptions; - fromProtoMsg(message: _101.EnumValueOptionsProtoMsg): _101.EnumValueOptions; - toProto(message: _101.EnumValueOptions): Uint8Array; - toProtoMsg(message: _101.EnumValueOptions): _101.EnumValueOptionsProtoMsg; - }; - ServiceOptions: { - typeUrl: string; - encode(message: _101.ServiceOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.ServiceOptions; - fromJSON(object: any): _101.ServiceOptions; - toJSON(message: _101.ServiceOptions): unknown; - fromPartial(object: Partial<_101.ServiceOptions>): _101.ServiceOptions; - fromAmino(object: _101.ServiceOptionsAmino): _101.ServiceOptions; - toAmino(message: _101.ServiceOptions): _101.ServiceOptionsAmino; - fromAminoMsg(object: _101.ServiceOptionsAminoMsg): _101.ServiceOptions; - fromProtoMsg(message: _101.ServiceOptionsProtoMsg): _101.ServiceOptions; - toProto(message: _101.ServiceOptions): Uint8Array; - toProtoMsg(message: _101.ServiceOptions): _101.ServiceOptionsProtoMsg; - }; - MethodOptions: { - typeUrl: string; - encode(message: _101.MethodOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.MethodOptions; - fromJSON(object: any): _101.MethodOptions; - toJSON(message: _101.MethodOptions): unknown; - fromPartial(object: Partial<_101.MethodOptions>): _101.MethodOptions; - fromAmino(object: _101.MethodOptionsAmino): _101.MethodOptions; - toAmino(message: _101.MethodOptions): _101.MethodOptionsAmino; - fromAminoMsg(object: _101.MethodOptionsAminoMsg): _101.MethodOptions; - fromProtoMsg(message: _101.MethodOptionsProtoMsg): _101.MethodOptions; - toProto(message: _101.MethodOptions): Uint8Array; - toProtoMsg(message: _101.MethodOptions): _101.MethodOptionsProtoMsg; - }; - UninterpretedOption: { - typeUrl: string; - encode(message: _101.UninterpretedOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.UninterpretedOption; - fromJSON(object: any): _101.UninterpretedOption; - toJSON(message: _101.UninterpretedOption): unknown; - fromPartial(object: Partial<_101.UninterpretedOption>): _101.UninterpretedOption; - fromAmino(object: _101.UninterpretedOptionAmino): _101.UninterpretedOption; - toAmino(message: _101.UninterpretedOption): _101.UninterpretedOptionAmino; - fromAminoMsg(object: _101.UninterpretedOptionAminoMsg): _101.UninterpretedOption; - fromProtoMsg(message: _101.UninterpretedOptionProtoMsg): _101.UninterpretedOption; - toProto(message: _101.UninterpretedOption): Uint8Array; - toProtoMsg(message: _101.UninterpretedOption): _101.UninterpretedOptionProtoMsg; - }; - UninterpretedOption_NamePart: { - typeUrl: string; - encode(message: _101.UninterpretedOption_NamePart, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.UninterpretedOption_NamePart; - fromJSON(object: any): _101.UninterpretedOption_NamePart; - toJSON(message: _101.UninterpretedOption_NamePart): unknown; - fromPartial(object: Partial<_101.UninterpretedOption_NamePart>): _101.UninterpretedOption_NamePart; - fromAmino(object: _101.UninterpretedOption_NamePartAmino): _101.UninterpretedOption_NamePart; - toAmino(message: _101.UninterpretedOption_NamePart): _101.UninterpretedOption_NamePartAmino; - fromAminoMsg(object: _101.UninterpretedOption_NamePartAminoMsg): _101.UninterpretedOption_NamePart; - fromProtoMsg(message: _101.UninterpretedOption_NamePartProtoMsg): _101.UninterpretedOption_NamePart; - toProto(message: _101.UninterpretedOption_NamePart): Uint8Array; - toProtoMsg(message: _101.UninterpretedOption_NamePart): _101.UninterpretedOption_NamePartProtoMsg; - }; - SourceCodeInfo: { - typeUrl: string; - encode(message: _101.SourceCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.SourceCodeInfo; - fromJSON(object: any): _101.SourceCodeInfo; - toJSON(message: _101.SourceCodeInfo): unknown; - fromPartial(object: Partial<_101.SourceCodeInfo>): _101.SourceCodeInfo; - fromAmino(object: _101.SourceCodeInfoAmino): _101.SourceCodeInfo; - toAmino(message: _101.SourceCodeInfo): _101.SourceCodeInfoAmino; - fromAminoMsg(object: _101.SourceCodeInfoAminoMsg): _101.SourceCodeInfo; - fromProtoMsg(message: _101.SourceCodeInfoProtoMsg): _101.SourceCodeInfo; - toProto(message: _101.SourceCodeInfo): Uint8Array; - toProtoMsg(message: _101.SourceCodeInfo): _101.SourceCodeInfoProtoMsg; - }; - SourceCodeInfo_Location: { - typeUrl: string; - encode(message: _101.SourceCodeInfo_Location, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.SourceCodeInfo_Location; - fromJSON(object: any): _101.SourceCodeInfo_Location; - toJSON(message: _101.SourceCodeInfo_Location): unknown; - fromPartial(object: Partial<_101.SourceCodeInfo_Location>): _101.SourceCodeInfo_Location; - fromAmino(object: _101.SourceCodeInfo_LocationAmino): _101.SourceCodeInfo_Location; - toAmino(message: _101.SourceCodeInfo_Location): _101.SourceCodeInfo_LocationAmino; - fromAminoMsg(object: _101.SourceCodeInfo_LocationAminoMsg): _101.SourceCodeInfo_Location; - fromProtoMsg(message: _101.SourceCodeInfo_LocationProtoMsg): _101.SourceCodeInfo_Location; - toProto(message: _101.SourceCodeInfo_Location): Uint8Array; - toProtoMsg(message: _101.SourceCodeInfo_Location): _101.SourceCodeInfo_LocationProtoMsg; - }; - GeneratedCodeInfo: { - typeUrl: string; - encode(message: _101.GeneratedCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.GeneratedCodeInfo; - fromJSON(object: any): _101.GeneratedCodeInfo; - toJSON(message: _101.GeneratedCodeInfo): unknown; - fromPartial(object: Partial<_101.GeneratedCodeInfo>): _101.GeneratedCodeInfo; - fromAmino(object: _101.GeneratedCodeInfoAmino): _101.GeneratedCodeInfo; - toAmino(message: _101.GeneratedCodeInfo): _101.GeneratedCodeInfoAmino; - fromAminoMsg(object: _101.GeneratedCodeInfoAminoMsg): _101.GeneratedCodeInfo; - fromProtoMsg(message: _101.GeneratedCodeInfoProtoMsg): _101.GeneratedCodeInfo; - toProto(message: _101.GeneratedCodeInfo): Uint8Array; - toProtoMsg(message: _101.GeneratedCodeInfo): _101.GeneratedCodeInfoProtoMsg; - }; - GeneratedCodeInfo_Annotation: { - typeUrl: string; - encode(message: _101.GeneratedCodeInfo_Annotation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _101.GeneratedCodeInfo_Annotation; - fromJSON(object: any): _101.GeneratedCodeInfo_Annotation; - toJSON(message: _101.GeneratedCodeInfo_Annotation): unknown; - fromPartial(object: Partial<_101.GeneratedCodeInfo_Annotation>): _101.GeneratedCodeInfo_Annotation; - fromAmino(object: _101.GeneratedCodeInfo_AnnotationAmino): _101.GeneratedCodeInfo_Annotation; - toAmino(message: _101.GeneratedCodeInfo_Annotation): _101.GeneratedCodeInfo_AnnotationAmino; - fromAminoMsg(object: _101.GeneratedCodeInfo_AnnotationAminoMsg): _101.GeneratedCodeInfo_Annotation; - fromProtoMsg(message: _101.GeneratedCodeInfo_AnnotationProtoMsg): _101.GeneratedCodeInfo_Annotation; - toProto(message: _101.GeneratedCodeInfo_Annotation): Uint8Array; - toProtoMsg(message: _101.GeneratedCodeInfo_Annotation): _101.GeneratedCodeInfo_AnnotationProtoMsg; - }; - }; -} diff --git a/packages/api/types/codegen/google/protobuf/any.d.ts b/packages/api/types/codegen/google/protobuf/any.d.ts deleted file mode 100644 index cfff9521..00000000 --- a/packages/api/types/codegen/google/protobuf/any.d.ts +++ /dev/null @@ -1,340 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - $typeUrl?: "/google.protobuf.Any" | string; - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} -export interface AnyProtoMsg { - typeUrl: "/google.protobuf.Any"; - value: Uint8Array; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnyAmino { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: any; -} -export interface AnyAminoMsg { - type: string; - value: AnyAmino; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnySDKType { - $typeUrl?: "/google.protobuf.Any" | string; - type_url: string; - value: Uint8Array; -} -export declare const Any: { - typeUrl: string; - encode(message: Any, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Any; - fromJSON(object: any): Any; - toJSON(message: Any): unknown; - fromPartial(object: Partial): Any; - fromAmino(object: AnyAmino): Any; - toAmino(message: Any): AnyAmino; - fromAminoMsg(object: AnyAminoMsg): Any; - fromProtoMsg(message: AnyProtoMsg): Any; - toProto(message: Any): Uint8Array; - toProtoMsg(message: Any): AnyProtoMsg; -}; diff --git a/packages/api/types/codegen/google/protobuf/descriptor.d.ts b/packages/api/types/codegen/google/protobuf/descriptor.d.ts deleted file mode 100644 index 76fd3713..00000000 --- a/packages/api/types/codegen/google/protobuf/descriptor.d.ts +++ /dev/null @@ -1,2332 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export declare enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18, - UNRECOGNIZED = -1 -} -export declare const FieldDescriptorProto_TypeSDKType: typeof FieldDescriptorProto_Type; -export declare const FieldDescriptorProto_TypeAmino: typeof FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string; -export declare enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - UNRECOGNIZED = -1 -} -export declare const FieldDescriptorProto_LabelSDKType: typeof FieldDescriptorProto_Label; -export declare const FieldDescriptorProto_LabelAmino: typeof FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string; -/** Generated classes can be optimized for speed or code size. */ -export declare enum FileOptions_OptimizeMode { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - SPEED = 1, - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3, - UNRECOGNIZED = -1 -} -export declare const FileOptions_OptimizeModeSDKType: typeof FileOptions_OptimizeMode; -export declare const FileOptions_OptimizeModeAmino: typeof FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string; -export declare enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - UNRECOGNIZED = -1 -} -export declare const FieldOptions_CTypeSDKType: typeof FieldOptions_CType; -export declare const FieldOptions_CTypeAmino: typeof FieldOptions_CType; -export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType; -export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string; -export declare enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2, - UNRECOGNIZED = -1 -} -export declare const FieldOptions_JSTypeSDKType: typeof FieldOptions_JSType; -export declare const FieldOptions_JSTypeAmino: typeof FieldOptions_JSType; -export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType; -export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export declare enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2, - UNRECOGNIZED = -1 -} -export declare const MethodOptions_IdempotencyLevelSDKType: typeof MethodOptions_IdempotencyLevel; -export declare const MethodOptions_IdempotencyLevelAmino: typeof MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -export interface FileDescriptorSetProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorSet"; - value: Uint8Array; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetAmino { - file?: FileDescriptorProtoAmino[]; -} -export interface FileDescriptorSetAminoMsg { - type: "/google.protobuf.FileDescriptorSet"; - value: FileDescriptorSetAmino; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetSDKType { - file: FileDescriptorProtoSDKType[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorProto"; - value: Uint8Array; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoAmino { - /** file name, relative to root of source tree */ - name?: string; - package?: string; - /** Names of files imported by this file. */ - dependency?: string[]; - /** Indexes of the public imported files in the dependency list above. */ - public_dependency?: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weak_dependency?: number[]; - /** All top-level definitions in this file. */ - message_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - service?: ServiceDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - options?: FileOptionsAmino; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - source_code_info?: SourceCodeInfoAmino; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax?: string; -} -export interface FileDescriptorProtoAminoMsg { - type: "/google.protobuf.FileDescriptorProto"; - value: FileDescriptorProtoAmino; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoSDKType { - name: string; - package: string; - dependency: string[]; - public_dependency: number[]; - weak_dependency: number[]; - message_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - service: ServiceDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - options?: FileOptionsSDKType; - source_code_info?: SourceCodeInfoSDKType; - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options?: MessageOptions; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.DescriptorProto"; - value: Uint8Array; -} -/** Describes a message type. */ -export interface DescriptorProtoAmino { - name?: string; - field?: FieldDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - nested_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - extension_range?: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl?: OneofDescriptorProtoAmino[]; - options?: MessageOptionsAmino; - reserved_range?: DescriptorProto_ReservedRangeAmino[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reserved_name?: string[]; -} -export interface DescriptorProtoAminoMsg { - type: "/google.protobuf.DescriptorProto"; - value: DescriptorProtoAmino; -} -/** Describes a message type. */ -export interface DescriptorProtoSDKType { - name: string; - field: FieldDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - nested_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - extension_range: DescriptorProto_ExtensionRangeSDKType[]; - oneof_decl: OneofDescriptorProtoSDKType[]; - options?: MessageOptionsSDKType; - reserved_range: DescriptorProto_ReservedRangeSDKType[]; - reserved_name: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options?: ExtensionRangeOptions; -} -export interface DescriptorProto_ExtensionRangeProtoMsg { - typeUrl: "/google.protobuf.ExtensionRange"; - value: Uint8Array; -} -export interface DescriptorProto_ExtensionRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; - options?: ExtensionRangeOptionsAmino; -} -export interface DescriptorProto_ExtensionRangeAminoMsg { - type: "/google.protobuf.ExtensionRange"; - value: DescriptorProto_ExtensionRangeAmino; -} -export interface DescriptorProto_ExtensionRangeSDKType { - start: number; - end: number; - options?: ExtensionRangeOptionsSDKType; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeProtoMsg { - typeUrl: "/google.protobuf.ReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; -} -export interface DescriptorProto_ReservedRangeAminoMsg { - type: "/google.protobuf.ReservedRange"; - value: DescriptorProto_ReservedRangeAmino; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeSDKType { - start: number; - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ExtensionRangeOptionsProtoMsg { - typeUrl: "/google.protobuf.ExtensionRangeOptions"; - value: Uint8Array; -} -export interface ExtensionRangeOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ExtensionRangeOptionsAminoMsg { - type: "/google.protobuf.ExtensionRangeOptions"; - value: ExtensionRangeOptionsAmino; -} -export interface ExtensionRangeOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options?: FieldOptions; -} -export interface FieldDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FieldDescriptorProto"; - value: Uint8Array; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoAmino { - name?: string; - number?: number; - label?: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type?: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - type_name?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - default_value?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneof_index?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - json_name?: string; - options?: FieldOptionsAmino; -} -export interface FieldDescriptorProtoAminoMsg { - type: "/google.protobuf.FieldDescriptorProto"; - value: FieldDescriptorProtoAmino; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoSDKType { - name: string; - number: number; - label: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - type_name: string; - extendee: string; - default_value: string; - oneof_index: number; - json_name: string; - options?: FieldOptionsSDKType; -} -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options?: OneofOptions; -} -export interface OneofDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.OneofDescriptorProto"; - value: Uint8Array; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoAmino { - name?: string; - options?: OneofOptionsAmino; -} -export interface OneofDescriptorProtoAminoMsg { - type: "/google.protobuf.OneofDescriptorProto"; - value: OneofDescriptorProtoAmino; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoSDKType { - name: string; - options?: OneofOptionsSDKType; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -export interface EnumDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumDescriptorProto"; - value: Uint8Array; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoAmino { - name?: string; - value?: EnumValueDescriptorProtoAmino[]; - options?: EnumOptionsAmino; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reserved_name?: string[]; -} -export interface EnumDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumDescriptorProto"; - value: EnumDescriptorProtoAmino; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoSDKType { - name: string; - value: EnumValueDescriptorProtoSDKType[]; - options?: EnumOptionsSDKType; - reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { - typeUrl: "/google.protobuf.EnumReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Inclusive. */ - end?: number; -} -export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { - type: "/google.protobuf.EnumReservedRange"; - value: EnumDescriptorProto_EnumReservedRangeAmino; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeSDKType { - start: number; - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options?: EnumValueOptions; -} -export interface EnumValueDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumValueDescriptorProto"; - value: Uint8Array; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoAmino { - name?: string; - number?: number; - options?: EnumValueOptionsAmino; -} -export interface EnumValueDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumValueDescriptorProto"; - value: EnumValueDescriptorProtoAmino; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoSDKType { - name: string; - number: number; - options?: EnumValueOptionsSDKType; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options?: ServiceOptions; -} -export interface ServiceDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.ServiceDescriptorProto"; - value: Uint8Array; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoAmino { - name?: string; - method?: MethodDescriptorProtoAmino[]; - options?: ServiceOptionsAmino; -} -export interface ServiceDescriptorProtoAminoMsg { - type: "/google.protobuf.ServiceDescriptorProto"; - value: ServiceDescriptorProtoAmino; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoSDKType { - name: string; - method: MethodDescriptorProtoSDKType[]; - options?: ServiceOptionsSDKType; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options?: MethodOptions; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface MethodDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.MethodDescriptorProto"; - value: Uint8Array; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoAmino { - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - input_type?: string; - output_type?: string; - options?: MethodOptionsAmino; - /** Identifies if client streams multiple client messages */ - client_streaming?: boolean; - /** Identifies if server streams multiple server messages */ - server_streaming?: boolean; -} -export interface MethodDescriptorProtoAminoMsg { - type: "/google.protobuf.MethodDescriptorProto"; - value: MethodDescriptorProtoAmino; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoSDKType { - name: string; - input_type: string; - output_type: string; - options?: MethodOptionsSDKType; - client_streaming: boolean; - server_streaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - javaOuterClassname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** This option does nothing. */ - /** @deprecated */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FileOptionsProtoMsg { - typeUrl: "/google.protobuf.FileOptions"; - value: Uint8Array; -} -export interface FileOptionsAmino { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - java_package?: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - java_outer_classname?: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - java_multiple_files?: boolean; - /** This option does nothing. */ - /** @deprecated */ - java_generate_equals_and_hash?: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - java_string_check_utf8?: boolean; - optimize_for?: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - go_package?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - cc_generic_services?: boolean; - java_generic_services?: boolean; - py_generic_services?: boolean; - php_generic_services?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - cc_enable_arenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objc_class_prefix?: string; - /** Namespace for generated classes; defaults to the package. */ - csharp_namespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swift_prefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - php_class_prefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - php_namespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - php_metadata_namespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - ruby_package?: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FileOptionsAminoMsg { - type: "/google.protobuf.FileOptions"; - value: FileOptionsAmino; -} -export interface FileOptionsSDKType { - java_package: string; - java_outer_classname: string; - java_multiple_files: boolean; - /** @deprecated */ - java_generate_equals_and_hash: boolean; - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - go_package: string; - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - deprecated: boolean; - cc_enable_arenas: boolean; - objc_class_prefix: string; - csharp_namespace: string; - swift_prefix: string; - php_class_prefix: string; - php_namespace: string; - php_metadata_namespace: string; - ruby_package: string; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MessageOptionsProtoMsg { - typeUrl: "/google.protobuf.MessageOptions"; - value: Uint8Array; -} -export interface MessageOptionsAmino { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - message_set_wire_format?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - no_standard_descriptor_accessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated?: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - map_entry?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MessageOptionsAminoMsg { - type: "/google.protobuf.MessageOptions"; - value: MessageOptionsAmino; -} -export interface MessageOptionsSDKType { - message_set_wire_format: boolean; - no_standard_descriptor_accessor: boolean; - deprecated: boolean; - map_entry: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptionsProtoMsg { - typeUrl: "/google.protobuf.FieldOptions"; - value: Uint8Array; -} -export interface FieldOptionsAmino { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype?: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype?: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated?: boolean; - /** For Google-internal migration only. Do not use. */ - weak?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FieldOptionsAminoMsg { - type: "/google.protobuf.FieldOptions"; - value: FieldOptionsAmino; -} -export interface FieldOptionsSDKType { - ctype: FieldOptions_CType; - packed: boolean; - jstype: FieldOptions_JSType; - lazy: boolean; - deprecated: boolean; - weak: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface OneofOptionsProtoMsg { - typeUrl: "/google.protobuf.OneofOptions"; - value: Uint8Array; -} -export interface OneofOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface OneofOptionsAminoMsg { - type: "/google.protobuf.OneofOptions"; - value: OneofOptionsAmino; -} -export interface OneofOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumOptions"; - value: Uint8Array; -} -export interface EnumOptionsAmino { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allow_alias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumOptionsAminoMsg { - type: "/google.protobuf.EnumOptions"; - value: EnumOptionsAmino; -} -export interface EnumOptionsSDKType { - allow_alias: boolean; - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumValueOptions"; - value: Uint8Array; -} -export interface EnumValueOptionsAmino { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumValueOptionsAminoMsg { - type: "/google.protobuf.EnumValueOptions"; - value: EnumValueOptionsAmino; -} -export interface EnumValueOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptionsProtoMsg { - typeUrl: "/google.protobuf.ServiceOptions"; - value: Uint8Array; -} -export interface ServiceOptionsAmino { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ServiceOptionsAminoMsg { - type: "/google.protobuf.ServiceOptions"; - value: ServiceOptionsAmino; -} -export interface ServiceOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptionsProtoMsg { - typeUrl: "/google.protobuf.MethodOptions"; - value: Uint8Array; -} -export interface MethodOptionsAmino { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated?: boolean; - idempotency_level?: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MethodOptionsAminoMsg { - type: "/google.protobuf.MethodOptions"; - value: MethodOptionsAmino; -} -export interface MethodOptionsSDKType { - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: bigint; - negativeIntValue: bigint; - doubleValue: number; - stringValue: Uint8Array; - aggregateValue: string; -} -export interface UninterpretedOptionProtoMsg { - typeUrl: "/google.protobuf.UninterpretedOption"; - value: Uint8Array; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionAmino { - name?: UninterpretedOption_NamePartAmino[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifier_value?: string; - positive_int_value?: string; - negative_int_value?: string; - double_value?: number; - string_value?: string; - aggregate_value?: string; -} -export interface UninterpretedOptionAminoMsg { - type: "/google.protobuf.UninterpretedOption"; - value: UninterpretedOptionAmino; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionSDKType { - name: UninterpretedOption_NamePartSDKType[]; - identifier_value: string; - positive_int_value: bigint; - negative_int_value: bigint; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -export interface UninterpretedOption_NamePartProtoMsg { - typeUrl: "/google.protobuf.NamePart"; - value: Uint8Array; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartAmino { - name_part?: string; - is_extension?: boolean; -} -export interface UninterpretedOption_NamePartAminoMsg { - type: "/google.protobuf.NamePart"; - value: UninterpretedOption_NamePartAmino; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartSDKType { - name_part: string; - is_extension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfoProtoMsg { - typeUrl: "/google.protobuf.SourceCodeInfo"; - value: Uint8Array; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoAmino { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location?: SourceCodeInfo_LocationAmino[]; -} -export interface SourceCodeInfoAminoMsg { - type: "/google.protobuf.SourceCodeInfo"; - value: SourceCodeInfoAmino; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoSDKType { - location: SourceCodeInfo_LocationSDKType[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -export interface SourceCodeInfo_LocationProtoMsg { - typeUrl: "/google.protobuf.Location"; - value: Uint8Array; -} -export interface SourceCodeInfo_LocationAmino { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path?: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span?: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leading_comments?: string; - trailing_comments?: string; - leading_detached_comments?: string[]; -} -export interface SourceCodeInfo_LocationAminoMsg { - type: "/google.protobuf.Location"; - value: SourceCodeInfo_LocationAmino; -} -export interface SourceCodeInfo_LocationSDKType { - path: number[]; - span: number[]; - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfoProtoMsg { - typeUrl: "/google.protobuf.GeneratedCodeInfo"; - value: Uint8Array; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoAmino { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation?: GeneratedCodeInfo_AnnotationAmino[]; -} -export interface GeneratedCodeInfoAminoMsg { - type: "/google.protobuf.GeneratedCodeInfo"; - value: GeneratedCodeInfoAmino; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoSDKType { - annotation: GeneratedCodeInfo_AnnotationSDKType[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationProtoMsg { - typeUrl: "/google.protobuf.Annotation"; - value: Uint8Array; -} -export interface GeneratedCodeInfo_AnnotationAmino { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path?: number[]; - /** Identifies the filesystem path to the original source .proto. */ - source_file?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end?: number; -} -export interface GeneratedCodeInfo_AnnotationAminoMsg { - type: "/google.protobuf.Annotation"; - value: GeneratedCodeInfo_AnnotationAmino; -} -export interface GeneratedCodeInfo_AnnotationSDKType { - path: number[]; - source_file: string; - begin: number; - end: number; -} -export declare const FileDescriptorSet: { - typeUrl: string; - encode(message: FileDescriptorSet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet; - fromJSON(object: any): FileDescriptorSet; - toJSON(message: FileDescriptorSet): unknown; - fromPartial(object: Partial): FileDescriptorSet; - fromAmino(object: FileDescriptorSetAmino): FileDescriptorSet; - toAmino(message: FileDescriptorSet): FileDescriptorSetAmino; - fromAminoMsg(object: FileDescriptorSetAminoMsg): FileDescriptorSet; - fromProtoMsg(message: FileDescriptorSetProtoMsg): FileDescriptorSet; - toProto(message: FileDescriptorSet): Uint8Array; - toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg; -}; -export declare const FileDescriptorProto: { - typeUrl: string; - encode(message: FileDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto; - fromJSON(object: any): FileDescriptorProto; - toJSON(message: FileDescriptorProto): unknown; - fromPartial(object: Partial): FileDescriptorProto; - fromAmino(object: FileDescriptorProtoAmino): FileDescriptorProto; - toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino; - fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto; - fromProtoMsg(message: FileDescriptorProtoProtoMsg): FileDescriptorProto; - toProto(message: FileDescriptorProto): Uint8Array; - toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg; -}; -export declare const DescriptorProto: { - typeUrl: string; - encode(message: DescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto; - fromJSON(object: any): DescriptorProto; - toJSON(message: DescriptorProto): unknown; - fromPartial(object: Partial): DescriptorProto; - fromAmino(object: DescriptorProtoAmino): DescriptorProto; - toAmino(message: DescriptorProto): DescriptorProtoAmino; - fromAminoMsg(object: DescriptorProtoAminoMsg): DescriptorProto; - fromProtoMsg(message: DescriptorProtoProtoMsg): DescriptorProto; - toProto(message: DescriptorProto): Uint8Array; - toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg; -}; -export declare const DescriptorProto_ExtensionRange: { - typeUrl: string; - encode(message: DescriptorProto_ExtensionRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; - fromJSON(object: any): DescriptorProto_ExtensionRange; - toJSON(message: DescriptorProto_ExtensionRange): unknown; - fromPartial(object: Partial): DescriptorProto_ExtensionRange; - fromAmino(object: DescriptorProto_ExtensionRangeAmino): DescriptorProto_ExtensionRange; - toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino; - fromAminoMsg(object: DescriptorProto_ExtensionRangeAminoMsg): DescriptorProto_ExtensionRange; - fromProtoMsg(message: DescriptorProto_ExtensionRangeProtoMsg): DescriptorProto_ExtensionRange; - toProto(message: DescriptorProto_ExtensionRange): Uint8Array; - toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg; -}; -export declare const DescriptorProto_ReservedRange: { - typeUrl: string; - encode(message: DescriptorProto_ReservedRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange; - fromJSON(object: any): DescriptorProto_ReservedRange; - toJSON(message: DescriptorProto_ReservedRange): unknown; - fromPartial(object: Partial): DescriptorProto_ReservedRange; - fromAmino(object: DescriptorProto_ReservedRangeAmino): DescriptorProto_ReservedRange; - toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino; - fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange; - fromProtoMsg(message: DescriptorProto_ReservedRangeProtoMsg): DescriptorProto_ReservedRange; - toProto(message: DescriptorProto_ReservedRange): Uint8Array; - toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg; -}; -export declare const ExtensionRangeOptions: { - typeUrl: string; - encode(message: ExtensionRangeOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions; - fromJSON(object: any): ExtensionRangeOptions; - toJSON(message: ExtensionRangeOptions): unknown; - fromPartial(object: Partial): ExtensionRangeOptions; - fromAmino(object: ExtensionRangeOptionsAmino): ExtensionRangeOptions; - toAmino(message: ExtensionRangeOptions): ExtensionRangeOptionsAmino; - fromAminoMsg(object: ExtensionRangeOptionsAminoMsg): ExtensionRangeOptions; - fromProtoMsg(message: ExtensionRangeOptionsProtoMsg): ExtensionRangeOptions; - toProto(message: ExtensionRangeOptions): Uint8Array; - toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg; -}; -export declare const FieldDescriptorProto: { - typeUrl: string; - encode(message: FieldDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto; - fromJSON(object: any): FieldDescriptorProto; - toJSON(message: FieldDescriptorProto): unknown; - fromPartial(object: Partial): FieldDescriptorProto; - fromAmino(object: FieldDescriptorProtoAmino): FieldDescriptorProto; - toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino; - fromAminoMsg(object: FieldDescriptorProtoAminoMsg): FieldDescriptorProto; - fromProtoMsg(message: FieldDescriptorProtoProtoMsg): FieldDescriptorProto; - toProto(message: FieldDescriptorProto): Uint8Array; - toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg; -}; -export declare const OneofDescriptorProto: { - typeUrl: string; - encode(message: OneofDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto; - fromJSON(object: any): OneofDescriptorProto; - toJSON(message: OneofDescriptorProto): unknown; - fromPartial(object: Partial): OneofDescriptorProto; - fromAmino(object: OneofDescriptorProtoAmino): OneofDescriptorProto; - toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino; - fromAminoMsg(object: OneofDescriptorProtoAminoMsg): OneofDescriptorProto; - fromProtoMsg(message: OneofDescriptorProtoProtoMsg): OneofDescriptorProto; - toProto(message: OneofDescriptorProto): Uint8Array; - toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg; -}; -export declare const EnumDescriptorProto: { - typeUrl: string; - encode(message: EnumDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto; - fromJSON(object: any): EnumDescriptorProto; - toJSON(message: EnumDescriptorProto): unknown; - fromPartial(object: Partial): EnumDescriptorProto; - fromAmino(object: EnumDescriptorProtoAmino): EnumDescriptorProto; - toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino; - fromAminoMsg(object: EnumDescriptorProtoAminoMsg): EnumDescriptorProto; - fromProtoMsg(message: EnumDescriptorProtoProtoMsg): EnumDescriptorProto; - toProto(message: EnumDescriptorProto): Uint8Array; - toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg; -}; -export declare const EnumDescriptorProto_EnumReservedRange: { - typeUrl: string; - encode(message: EnumDescriptorProto_EnumReservedRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; - fromJSON(object: any): EnumDescriptorProto_EnumReservedRange; - toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown; - fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange; - fromAmino(object: EnumDescriptorProto_EnumReservedRangeAmino): EnumDescriptorProto_EnumReservedRange; - toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino; - fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange; - fromProtoMsg(message: EnumDescriptorProto_EnumReservedRangeProtoMsg): EnumDescriptorProto_EnumReservedRange; - toProto(message: EnumDescriptorProto_EnumReservedRange): Uint8Array; - toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg; -}; -export declare const EnumValueDescriptorProto: { - typeUrl: string; - encode(message: EnumValueDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto; - fromJSON(object: any): EnumValueDescriptorProto; - toJSON(message: EnumValueDescriptorProto): unknown; - fromPartial(object: Partial): EnumValueDescriptorProto; - fromAmino(object: EnumValueDescriptorProtoAmino): EnumValueDescriptorProto; - toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino; - fromAminoMsg(object: EnumValueDescriptorProtoAminoMsg): EnumValueDescriptorProto; - fromProtoMsg(message: EnumValueDescriptorProtoProtoMsg): EnumValueDescriptorProto; - toProto(message: EnumValueDescriptorProto): Uint8Array; - toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg; -}; -export declare const ServiceDescriptorProto: { - typeUrl: string; - encode(message: ServiceDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto; - fromJSON(object: any): ServiceDescriptorProto; - toJSON(message: ServiceDescriptorProto): unknown; - fromPartial(object: Partial): ServiceDescriptorProto; - fromAmino(object: ServiceDescriptorProtoAmino): ServiceDescriptorProto; - toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino; - fromAminoMsg(object: ServiceDescriptorProtoAminoMsg): ServiceDescriptorProto; - fromProtoMsg(message: ServiceDescriptorProtoProtoMsg): ServiceDescriptorProto; - toProto(message: ServiceDescriptorProto): Uint8Array; - toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg; -}; -export declare const MethodDescriptorProto: { - typeUrl: string; - encode(message: MethodDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto; - fromJSON(object: any): MethodDescriptorProto; - toJSON(message: MethodDescriptorProto): unknown; - fromPartial(object: Partial): MethodDescriptorProto; - fromAmino(object: MethodDescriptorProtoAmino): MethodDescriptorProto; - toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino; - fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto; - fromProtoMsg(message: MethodDescriptorProtoProtoMsg): MethodDescriptorProto; - toProto(message: MethodDescriptorProto): Uint8Array; - toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg; -}; -export declare const FileOptions: { - typeUrl: string; - encode(message: FileOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileOptions; - fromJSON(object: any): FileOptions; - toJSON(message: FileOptions): unknown; - fromPartial(object: Partial): FileOptions; - fromAmino(object: FileOptionsAmino): FileOptions; - toAmino(message: FileOptions): FileOptionsAmino; - fromAminoMsg(object: FileOptionsAminoMsg): FileOptions; - fromProtoMsg(message: FileOptionsProtoMsg): FileOptions; - toProto(message: FileOptions): Uint8Array; - toProtoMsg(message: FileOptions): FileOptionsProtoMsg; -}; -export declare const MessageOptions: { - typeUrl: string; - encode(message: MessageOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions; - fromJSON(object: any): MessageOptions; - toJSON(message: MessageOptions): unknown; - fromPartial(object: Partial): MessageOptions; - fromAmino(object: MessageOptionsAmino): MessageOptions; - toAmino(message: MessageOptions): MessageOptionsAmino; - fromAminoMsg(object: MessageOptionsAminoMsg): MessageOptions; - fromProtoMsg(message: MessageOptionsProtoMsg): MessageOptions; - toProto(message: MessageOptions): Uint8Array; - toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg; -}; -export declare const FieldOptions: { - typeUrl: string; - encode(message: FieldOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions; - fromJSON(object: any): FieldOptions; - toJSON(message: FieldOptions): unknown; - fromPartial(object: Partial): FieldOptions; - fromAmino(object: FieldOptionsAmino): FieldOptions; - toAmino(message: FieldOptions): FieldOptionsAmino; - fromAminoMsg(object: FieldOptionsAminoMsg): FieldOptions; - fromProtoMsg(message: FieldOptionsProtoMsg): FieldOptions; - toProto(message: FieldOptions): Uint8Array; - toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg; -}; -export declare const OneofOptions: { - typeUrl: string; - encode(message: OneofOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions; - fromJSON(object: any): OneofOptions; - toJSON(message: OneofOptions): unknown; - fromPartial(object: Partial): OneofOptions; - fromAmino(object: OneofOptionsAmino): OneofOptions; - toAmino(message: OneofOptions): OneofOptionsAmino; - fromAminoMsg(object: OneofOptionsAminoMsg): OneofOptions; - fromProtoMsg(message: OneofOptionsProtoMsg): OneofOptions; - toProto(message: OneofOptions): Uint8Array; - toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg; -}; -export declare const EnumOptions: { - typeUrl: string; - encode(message: EnumOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions; - fromJSON(object: any): EnumOptions; - toJSON(message: EnumOptions): unknown; - fromPartial(object: Partial): EnumOptions; - fromAmino(object: EnumOptionsAmino): EnumOptions; - toAmino(message: EnumOptions): EnumOptionsAmino; - fromAminoMsg(object: EnumOptionsAminoMsg): EnumOptions; - fromProtoMsg(message: EnumOptionsProtoMsg): EnumOptions; - toProto(message: EnumOptions): Uint8Array; - toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg; -}; -export declare const EnumValueOptions: { - typeUrl: string; - encode(message: EnumValueOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions; - fromJSON(object: any): EnumValueOptions; - toJSON(message: EnumValueOptions): unknown; - fromPartial(object: Partial): EnumValueOptions; - fromAmino(object: EnumValueOptionsAmino): EnumValueOptions; - toAmino(message: EnumValueOptions): EnumValueOptionsAmino; - fromAminoMsg(object: EnumValueOptionsAminoMsg): EnumValueOptions; - fromProtoMsg(message: EnumValueOptionsProtoMsg): EnumValueOptions; - toProto(message: EnumValueOptions): Uint8Array; - toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg; -}; -export declare const ServiceOptions: { - typeUrl: string; - encode(message: ServiceOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions; - fromJSON(object: any): ServiceOptions; - toJSON(message: ServiceOptions): unknown; - fromPartial(object: Partial): ServiceOptions; - fromAmino(object: ServiceOptionsAmino): ServiceOptions; - toAmino(message: ServiceOptions): ServiceOptionsAmino; - fromAminoMsg(object: ServiceOptionsAminoMsg): ServiceOptions; - fromProtoMsg(message: ServiceOptionsProtoMsg): ServiceOptions; - toProto(message: ServiceOptions): Uint8Array; - toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg; -}; -export declare const MethodOptions: { - typeUrl: string; - encode(message: MethodOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions; - fromJSON(object: any): MethodOptions; - toJSON(message: MethodOptions): unknown; - fromPartial(object: Partial): MethodOptions; - fromAmino(object: MethodOptionsAmino): MethodOptions; - toAmino(message: MethodOptions): MethodOptionsAmino; - fromAminoMsg(object: MethodOptionsAminoMsg): MethodOptions; - fromProtoMsg(message: MethodOptionsProtoMsg): MethodOptions; - toProto(message: MethodOptions): Uint8Array; - toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg; -}; -export declare const UninterpretedOption: { - typeUrl: string; - encode(message: UninterpretedOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption; - fromJSON(object: any): UninterpretedOption; - toJSON(message: UninterpretedOption): unknown; - fromPartial(object: Partial): UninterpretedOption; - fromAmino(object: UninterpretedOptionAmino): UninterpretedOption; - toAmino(message: UninterpretedOption): UninterpretedOptionAmino; - fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption; - fromProtoMsg(message: UninterpretedOptionProtoMsg): UninterpretedOption; - toProto(message: UninterpretedOption): Uint8Array; - toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg; -}; -export declare const UninterpretedOption_NamePart: { - typeUrl: string; - encode(message: UninterpretedOption_NamePart, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart; - fromJSON(object: any): UninterpretedOption_NamePart; - toJSON(message: UninterpretedOption_NamePart): unknown; - fromPartial(object: Partial): UninterpretedOption_NamePart; - fromAmino(object: UninterpretedOption_NamePartAmino): UninterpretedOption_NamePart; - toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino; - fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart; - fromProtoMsg(message: UninterpretedOption_NamePartProtoMsg): UninterpretedOption_NamePart; - toProto(message: UninterpretedOption_NamePart): Uint8Array; - toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg; -}; -export declare const SourceCodeInfo: { - typeUrl: string; - encode(message: SourceCodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo; - fromJSON(object: any): SourceCodeInfo; - toJSON(message: SourceCodeInfo): unknown; - fromPartial(object: Partial): SourceCodeInfo; - fromAmino(object: SourceCodeInfoAmino): SourceCodeInfo; - toAmino(message: SourceCodeInfo): SourceCodeInfoAmino; - fromAminoMsg(object: SourceCodeInfoAminoMsg): SourceCodeInfo; - fromProtoMsg(message: SourceCodeInfoProtoMsg): SourceCodeInfo; - toProto(message: SourceCodeInfo): Uint8Array; - toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg; -}; -export declare const SourceCodeInfo_Location: { - typeUrl: string; - encode(message: SourceCodeInfo_Location, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location; - fromJSON(object: any): SourceCodeInfo_Location; - toJSON(message: SourceCodeInfo_Location): unknown; - fromPartial(object: Partial): SourceCodeInfo_Location; - fromAmino(object: SourceCodeInfo_LocationAmino): SourceCodeInfo_Location; - toAmino(message: SourceCodeInfo_Location): SourceCodeInfo_LocationAmino; - fromAminoMsg(object: SourceCodeInfo_LocationAminoMsg): SourceCodeInfo_Location; - fromProtoMsg(message: SourceCodeInfo_LocationProtoMsg): SourceCodeInfo_Location; - toProto(message: SourceCodeInfo_Location): Uint8Array; - toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg; -}; -export declare const GeneratedCodeInfo: { - typeUrl: string; - encode(message: GeneratedCodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo; - fromJSON(object: any): GeneratedCodeInfo; - toJSON(message: GeneratedCodeInfo): unknown; - fromPartial(object: Partial): GeneratedCodeInfo; - fromAmino(object: GeneratedCodeInfoAmino): GeneratedCodeInfo; - toAmino(message: GeneratedCodeInfo): GeneratedCodeInfoAmino; - fromAminoMsg(object: GeneratedCodeInfoAminoMsg): GeneratedCodeInfo; - fromProtoMsg(message: GeneratedCodeInfoProtoMsg): GeneratedCodeInfo; - toProto(message: GeneratedCodeInfo): Uint8Array; - toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg; -}; -export declare const GeneratedCodeInfo_Annotation: { - typeUrl: string; - encode(message: GeneratedCodeInfo_Annotation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; - fromJSON(object: any): GeneratedCodeInfo_Annotation; - toJSON(message: GeneratedCodeInfo_Annotation): unknown; - fromPartial(object: Partial): GeneratedCodeInfo_Annotation; - fromAmino(object: GeneratedCodeInfo_AnnotationAmino): GeneratedCodeInfo_Annotation; - toAmino(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationAmino; - fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation; - fromProtoMsg(message: GeneratedCodeInfo_AnnotationProtoMsg): GeneratedCodeInfo_Annotation; - toProto(message: GeneratedCodeInfo_Annotation): Uint8Array; - toProtoMsg(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationProtoMsg; -}; diff --git a/packages/api/types/codegen/google/protobuf/duration.d.ts b/packages/api/types/codegen/google/protobuf/duration.d.ts deleted file mode 100644 index 70906d72..00000000 --- a/packages/api/types/codegen/google/protobuf/duration.d.ts +++ /dev/null @@ -1,225 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export interface DurationProtoMsg { - typeUrl: "/google.protobuf.Duration"; - value: Uint8Array; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export type DurationAmino = string; -export interface DurationAminoMsg { - type: "/google.protobuf.Duration"; - value: DurationAmino; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface DurationSDKType { - seconds: bigint; - nanos: number; -} -export declare const Duration: { - typeUrl: string; - encode(message: Duration, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Duration; - fromJSON(object: any): Duration; - toJSON(message: Duration): unknown; - fromPartial(object: Partial): Duration; - fromAmino(object: DurationAmino): Duration; - toAmino(message: Duration): DurationAmino; - fromAminoMsg(object: DurationAminoMsg): Duration; - fromProtoMsg(message: DurationProtoMsg): Duration; - toProto(message: Duration): Uint8Array; - toProtoMsg(message: Duration): DurationProtoMsg; -}; diff --git a/packages/api/types/codegen/google/protobuf/timestamp.d.ts b/packages/api/types/codegen/google/protobuf/timestamp.d.ts deleted file mode 100644 index 20f180a0..00000000 --- a/packages/api/types/codegen/google/protobuf/timestamp.d.ts +++ /dev/null @@ -1,295 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export interface TimestampProtoMsg { - typeUrl: "/google.protobuf.Timestamp"; - value: Uint8Array; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export type TimestampAmino = string; -export interface TimestampAminoMsg { - type: "/google.protobuf.Timestamp"; - value: TimestampAmino; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface TimestampSDKType { - seconds: bigint; - nanos: number; -} -export declare const Timestamp: { - typeUrl: string; - encode(message: Timestamp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Timestamp; - fromJSON(object: any): Timestamp; - toJSON(message: Timestamp): unknown; - fromPartial(object: Partial): Timestamp; - fromAmino(object: TimestampAmino): Timestamp; - toAmino(message: Timestamp): TimestampAmino; - fromAminoMsg(object: TimestampAminoMsg): Timestamp; - fromProtoMsg(message: TimestampProtoMsg): Timestamp; - toProto(message: Timestamp): Uint8Array; - toProtoMsg(message: Timestamp): TimestampProtoMsg; -}; diff --git a/packages/api/types/codegen/helpers.d.ts b/packages/api/types/codegen/helpers.d.ts deleted file mode 100644 index 39f0b29e..00000000 --- a/packages/api/types/codegen/helpers.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -export declare function bytesFromBase64(b64: string): Uint8Array; -export declare function base64FromBytes(arr: Uint8Array): string; -export interface AminoHeight { - readonly revision_number?: string; - readonly revision_height?: string; -} -export declare function omitDefault(input: T): T | undefined; -interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export declare function toDuration(duration: string): Duration; -export declare function fromDuration(duration: Duration): string; -export declare function isSet(value: any): boolean; -export declare function isObject(value: any): boolean; -export interface PageRequest { - key: Uint8Array; - offset: bigint; - limit: bigint; - countTotal: boolean; - reverse: boolean; -} -export interface PageRequestParams { - 'pagination.key'?: string; - 'pagination.offset'?: string; - 'pagination.limit'?: string; - 'pagination.count_total'?: boolean; - 'pagination.reverse'?: boolean; -} -export interface Params { - params: PageRequestParams; -} -export declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params; -type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined; -export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { - [K in keyof T]?: DeepPartial; -} : Partial; -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P : P & { - [K in keyof P]: Exact; -} & Record>, never>; -export interface Rpc { - request(service: string, method: string, data: Uint8Array): Promise; -} -interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export declare function toTimestamp(date: Date): Timestamp; -export declare function fromTimestamp(t: Timestamp): Date; -export declare function fromJsonTimestamp(o: any): Timestamp; -export {}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts deleted file mode 100644 index d4176dda..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisState { - portId: string; - denomTraces: DenomTrace[]; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateAmino { - port_id?: string; - denom_traces?: DenomTraceAmino[]; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateSDKType { - port_id: string; - denom_traces: DenomTraceSDKType[]; - params: ParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts deleted file mode 100644 index e40b3f47..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/query.d.ts +++ /dev/null @@ -1,432 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequest { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomTraceRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; - value: Uint8Array; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestAmino { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomTraceRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTraceRequest"; - value: QueryDenomTraceRequestAmino; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestSDKType { - hash: string; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponse { - /** denom_trace returns the requested denomination trace information. */ - denomTrace?: DenomTrace; -} -export interface QueryDenomTraceResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; - value: Uint8Array; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseAmino { - /** denom_trace returns the requested denomination trace information. */ - denom_trace?: DenomTraceAmino; -} -export interface QueryDenomTraceResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTraceResponse"; - value: QueryDenomTraceResponseAmino; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseSDKType { - denom_trace?: DenomTraceSDKType; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomTracesRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; - value: Uint8Array; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomTracesRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTracesRequest"; - value: QueryDenomTracesRequestAmino; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponse { - /** denom_traces returns all denominations trace information. */ - denomTraces: DenomTrace[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomTracesResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; - value: Uint8Array; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseAmino { - /** denom_traces returns all denominations trace information. */ - denom_traces?: DenomTraceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomTracesResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTracesResponse"; - value: QueryDenomTracesResponseAmino; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseSDKType { - denom_traces: DenomTraceSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequest { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace: string; -} -export interface QueryDenomHashRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest"; - value: Uint8Array; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestAmino { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace?: string; -} -export interface QueryDenomHashRequestAminoMsg { - type: "cosmos-sdk/QueryDenomHashRequest"; - value: QueryDenomHashRequestAmino; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestSDKType { - trace: string; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponse { - /** hash (in hex format) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomHashResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse"; - value: Uint8Array; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseAmino { - /** hash (in hex format) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomHashResponseAminoMsg { - type: "cosmos-sdk/QueryDenomHashResponse"; - value: QueryDenomHashResponseAmino; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseSDKType { - hash: string; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequest { - /** unique port identifier */ - portId: string; - /** unique channel identifier */ - channelId: string; -} -export interface QueryEscrowAddressRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest"; - value: Uint8Array; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestAmino { - /** unique port identifier */ - port_id?: string; - /** unique channel identifier */ - channel_id?: string; -} -export interface QueryEscrowAddressRequestAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressRequest"; - value: QueryEscrowAddressRequestAmino; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestSDKType { - port_id: string; - channel_id: string; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponse { - /** the escrow account address */ - escrowAddress: string; -} -export interface QueryEscrowAddressResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse"; - value: Uint8Array; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseAmino { - /** the escrow account address */ - escrow_address?: string; -} -export interface QueryEscrowAddressResponseAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressResponse"; - value: QueryEscrowAddressResponseAmino; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseSDKType { - escrow_address: string; -} -export declare const QueryDenomTraceRequest: { - typeUrl: string; - encode(message: QueryDenomTraceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest; - fromJSON(object: any): QueryDenomTraceRequest; - toJSON(message: QueryDenomTraceRequest): unknown; - fromPartial(object: Partial): QueryDenomTraceRequest; - fromAmino(object: QueryDenomTraceRequestAmino): QueryDenomTraceRequest; - toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino; - fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest; - toAminoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestAminoMsg; - fromProtoMsg(message: QueryDenomTraceRequestProtoMsg): QueryDenomTraceRequest; - toProto(message: QueryDenomTraceRequest): Uint8Array; - toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg; -}; -export declare const QueryDenomTraceResponse: { - typeUrl: string; - encode(message: QueryDenomTraceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse; - fromJSON(object: any): QueryDenomTraceResponse; - toJSON(message: QueryDenomTraceResponse): unknown; - fromPartial(object: Partial): QueryDenomTraceResponse; - fromAmino(object: QueryDenomTraceResponseAmino): QueryDenomTraceResponse; - toAmino(message: QueryDenomTraceResponse): QueryDenomTraceResponseAmino; - fromAminoMsg(object: QueryDenomTraceResponseAminoMsg): QueryDenomTraceResponse; - toAminoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseAminoMsg; - fromProtoMsg(message: QueryDenomTraceResponseProtoMsg): QueryDenomTraceResponse; - toProto(message: QueryDenomTraceResponse): Uint8Array; - toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg; -}; -export declare const QueryDenomTracesRequest: { - typeUrl: string; - encode(message: QueryDenomTracesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest; - fromJSON(object: any): QueryDenomTracesRequest; - toJSON(message: QueryDenomTracesRequest): unknown; - fromPartial(object: Partial): QueryDenomTracesRequest; - fromAmino(object: QueryDenomTracesRequestAmino): QueryDenomTracesRequest; - toAmino(message: QueryDenomTracesRequest): QueryDenomTracesRequestAmino; - fromAminoMsg(object: QueryDenomTracesRequestAminoMsg): QueryDenomTracesRequest; - toAminoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestAminoMsg; - fromProtoMsg(message: QueryDenomTracesRequestProtoMsg): QueryDenomTracesRequest; - toProto(message: QueryDenomTracesRequest): Uint8Array; - toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg; -}; -export declare const QueryDenomTracesResponse: { - typeUrl: string; - encode(message: QueryDenomTracesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse; - fromJSON(object: any): QueryDenomTracesResponse; - toJSON(message: QueryDenomTracesResponse): unknown; - fromPartial(object: Partial): QueryDenomTracesResponse; - fromAmino(object: QueryDenomTracesResponseAmino): QueryDenomTracesResponse; - toAmino(message: QueryDenomTracesResponse): QueryDenomTracesResponseAmino; - fromAminoMsg(object: QueryDenomTracesResponseAminoMsg): QueryDenomTracesResponse; - toAminoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseAminoMsg; - fromProtoMsg(message: QueryDenomTracesResponseProtoMsg): QueryDenomTracesResponse; - toProto(message: QueryDenomTracesResponse): Uint8Array; - toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDenomHashRequest: { - typeUrl: string; - encode(message: QueryDenomHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest; - fromJSON(object: any): QueryDenomHashRequest; - toJSON(message: QueryDenomHashRequest): unknown; - fromPartial(object: Partial): QueryDenomHashRequest; - fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest; - toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino; - fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest; - toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg; - fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest; - toProto(message: QueryDenomHashRequest): Uint8Array; - toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg; -}; -export declare const QueryDenomHashResponse: { - typeUrl: string; - encode(message: QueryDenomHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse; - fromJSON(object: any): QueryDenomHashResponse; - toJSON(message: QueryDenomHashResponse): unknown; - fromPartial(object: Partial): QueryDenomHashResponse; - fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse; - toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino; - fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse; - toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg; - fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse; - toProto(message: QueryDenomHashResponse): Uint8Array; - toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg; -}; -export declare const QueryEscrowAddressRequest: { - typeUrl: string; - encode(message: QueryEscrowAddressRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest; - fromJSON(object: any): QueryEscrowAddressRequest; - toJSON(message: QueryEscrowAddressRequest): unknown; - fromPartial(object: Partial): QueryEscrowAddressRequest; - fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest; - toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino; - fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest; - toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg; - fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest; - toProto(message: QueryEscrowAddressRequest): Uint8Array; - toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg; -}; -export declare const QueryEscrowAddressResponse: { - typeUrl: string; - encode(message: QueryEscrowAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse; - fromJSON(object: any): QueryEscrowAddressResponse; - toJSON(message: QueryEscrowAddressResponse): unknown; - fromPartial(object: Partial): QueryEscrowAddressResponse; - fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse; - toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino; - fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse; - toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg; - fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse; - toProto(message: QueryEscrowAddressResponse): Uint8Array; - toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts deleted file mode 100644 index 8c8ba879..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - denomTrace(params: QueryDenomTraceRequest): Promise; - denomTraces(params?: QueryDenomTracesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - denomHash(params: QueryDenomHashRequest): Promise; - escrowAddress(params: QueryEscrowAddressRequest): Promise; -} diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts deleted file mode 100644 index 3df3adea..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** DenomTrace queries a denomination trace information. */ - denomTrace(request: QueryDenomTraceRequest): Promise; - /** DenomTraces queries all denomination traces. */ - denomTraces(request?: QueryDenomTracesRequest): Promise; - /** Params queries all parameters of the ibc-transfer module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomHash queries a denomination hash information. */ - denomHash(request: QueryDenomHashRequest): Promise; - /** EscrowAddress returns the escrow address for a particular port and channel id. */ - escrowAddress(request: QueryEscrowAddressRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - denomTrace(request: QueryDenomTraceRequest): Promise; - denomTraces(request?: QueryDenomTracesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomHash(request: QueryDenomHashRequest): Promise; - escrowAddress(request: QueryEscrowAddressRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - denomTrace(request: QueryDenomTraceRequest): Promise; - denomTraces(request?: QueryDenomTracesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomHash(request: QueryDenomHashRequest): Promise; - escrowAddress(request: QueryEscrowAddressRequest): Promise; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts deleted file mode 100644 index d2b412f7..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - baseDenom: string; -} -export interface DenomTraceProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; - value: Uint8Array; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceAmino { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; -} -export interface DenomTraceAminoMsg { - type: "cosmos-sdk/DenomTrace"; - value: DenomTraceAmino; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceSDKType { - path: string; - base_denom: string; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - sendEnabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receiveEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsAmino { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsSDKType { - send_enabled: boolean; - receive_enabled: boolean; -} -export declare const DenomTrace: { - typeUrl: string; - encode(message: DenomTrace, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace; - fromJSON(object: any): DenomTrace; - toJSON(message: DenomTrace): unknown; - fromPartial(object: Partial): DenomTrace; - fromAmino(object: DenomTraceAmino): DenomTrace; - toAmino(message: DenomTrace): DenomTraceAmino; - fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace; - toAminoMsg(message: DenomTrace): DenomTraceAminoMsg; - fromProtoMsg(message: DenomTraceProtoMsg): DenomTrace; - toProto(message: DenomTrace): Uint8Array; - toProtoMsg(message: DenomTrace): DenomTraceProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts deleted file mode 100644 index 7bd64477..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgTransfer } from "./tx"; -export declare const AminoConverter: { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: MsgTransfer) => import("./tx").MsgTransferAmino; - fromAmino: (object: import("./tx").MsgTransferAmino) => MsgTransfer; - }; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts deleted file mode 100644 index 2e23d057..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransfer { - /** the port on which the packet will be sent */ - sourcePort: string; - /** the channel by which the packet will be sent */ - sourceChannel: string; - /** the tokens to be transferred */ - token: Coin; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Height; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: bigint; -} -export interface MsgTransferProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; - value: Uint8Array; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferAmino { - /** the port on which the packet will be sent */ - source_port?: string; - /** the channel by which the packet will be sent */ - source_channel?: string; - /** the tokens to be transferred */ - token?: CoinAmino; - /** the sender address */ - sender?: string; - /** the recipient address on the destination chain */ - receiver?: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height?: HeightAmino; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeout_timestamp?: string; -} -export interface MsgTransferAminoMsg { - type: "cosmos-sdk/MsgTransfer"; - value: MsgTransferAmino; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferSDKType { - source_port: string; - source_channel: string; - token: CoinSDKType; - sender: string; - receiver: string; - timeout_height: HeightSDKType; - timeout_timestamp: bigint; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponse { -} -export interface MsgTransferResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; - value: Uint8Array; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseAmino { -} -export interface MsgTransferResponseAminoMsg { - type: "cosmos-sdk/MsgTransferResponse"; - value: MsgTransferResponseAmino; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseSDKType { -} -export declare const MsgTransfer: { - typeUrl: string; - encode(message: MsgTransfer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer; - fromJSON(object: any): MsgTransfer; - toJSON(message: MsgTransfer): unknown; - fromPartial(object: Partial): MsgTransfer; - fromAmino(object: MsgTransferAmino): MsgTransfer; - toAmino(message: MsgTransfer): MsgTransferAmino; - fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer; - toAminoMsg(message: MsgTransfer): MsgTransferAminoMsg; - fromProtoMsg(message: MsgTransferProtoMsg): MsgTransfer; - toProto(message: MsgTransfer): Uint8Array; - toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg; -}; -export declare const MsgTransferResponse: { - typeUrl: string; - encode(_: MsgTransferResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse; - fromJSON(_: any): MsgTransferResponse; - toJSON(_: MsgTransferResponse): unknown; - fromPartial(_: Partial): MsgTransferResponse; - fromAmino(_: MsgTransferResponseAmino): MsgTransferResponse; - toAmino(_: MsgTransferResponse): MsgTransferResponseAmino; - fromAminoMsg(object: MsgTransferResponseAminoMsg): MsgTransferResponse; - toAminoMsg(message: MsgTransferResponse): MsgTransferResponseAminoMsg; - fromProtoMsg(message: MsgTransferResponseProtoMsg): MsgTransferResponse; - toProto(message: MsgTransferResponse): Uint8Array; - toProtoMsg(message: MsgTransferResponse): MsgTransferResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts deleted file mode 100644 index bd48f7e9..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgTransfer } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: MsgTransfer; - }; - }; - toJSON: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - transfer(value: any): { - typeUrl: string; - value: MsgTransfer; - }; - }; - fromPartial: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: MsgTransfer; - }; - }; -}; diff --git a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts deleted file mode 100644 index d000d7b5..00000000 --- a/packages/api/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgTransfer, MsgTransferResponse } from "./tx"; -/** Msg defines the ibc/transfer Msg service. */ -export interface Msg { - /** Transfer defines a rpc handler method for MsgTransfer. */ - transfer(request: MsgTransfer): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - transfer(request: MsgTransfer): Promise; -} diff --git a/packages/api/types/codegen/ibc/bundle.d.ts b/packages/api/types/codegen/ibc/bundle.d.ts deleted file mode 100644 index 31d85fef..00000000 --- a/packages/api/types/codegen/ibc/bundle.d.ts +++ /dev/null @@ -1,1328 +0,0 @@ -import * as _105 from "./applications/transfer/v1/genesis"; -import * as _106 from "./applications/transfer/v1/query"; -import * as _107 from "./applications/transfer/v1/transfer"; -import * as _108 from "./applications/transfer/v1/tx"; -import * as _109 from "./core/client/v1/client"; -import * as _110 from "./core/client/v1/genesis"; -import * as _111 from "./core/client/v1/query"; -import * as _112 from "./core/client/v1/tx"; -import * as _235 from "./applications/transfer/v1/query.lcd"; -import * as _236 from "./core/client/v1/query.lcd"; -import * as _237 from "./applications/transfer/v1/query.rpc.Query"; -import * as _238 from "./core/client/v1/query.rpc.Query"; -import * as _239 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _240 from "./core/client/v1/tx.rpc.msg"; -export declare namespace ibc { - namespace applications { - namespace transfer { - const v1: { - MsgClientImpl: typeof _239.MsgClientImpl; - QueryClientImpl: typeof _237.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - denomTrace(request: _106.QueryDenomTraceRequest): Promise<_106.QueryDenomTraceResponse>; - denomTraces(request?: _106.QueryDenomTracesRequest | undefined): Promise<_106.QueryDenomTracesResponse>; - params(request?: _106.QueryParamsRequest | undefined): Promise<_106.QueryParamsResponse>; - denomHash(request: _106.QueryDenomHashRequest): Promise<_106.QueryDenomHashResponse>; - escrowAddress(request: _106.QueryEscrowAddressRequest): Promise<_106.QueryEscrowAddressResponse>; - }; - LCDQueryClient: typeof _235.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - transfer(value: _108.MsgTransfer): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - transfer(value: _108.MsgTransfer): { - typeUrl: string; - value: _108.MsgTransfer; - }; - }; - toJSON: { - transfer(value: _108.MsgTransfer): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - transfer(value: any): { - typeUrl: string; - value: _108.MsgTransfer; - }; - }; - fromPartial: { - transfer(value: _108.MsgTransfer): { - typeUrl: string; - value: _108.MsgTransfer; - }; - }; - }; - AminoConverter: { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: _108.MsgTransfer) => _108.MsgTransferAmino; - fromAmino: (object: _108.MsgTransferAmino) => _108.MsgTransfer; - }; - }; - MsgTransfer: { - typeUrl: string; - encode(message: _108.MsgTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _108.MsgTransfer; - fromJSON(object: any): _108.MsgTransfer; - toJSON(message: _108.MsgTransfer): unknown; - fromPartial(object: Partial<_108.MsgTransfer>): _108.MsgTransfer; - fromAmino(object: _108.MsgTransferAmino): _108.MsgTransfer; - toAmino(message: _108.MsgTransfer): _108.MsgTransferAmino; - fromAminoMsg(object: _108.MsgTransferAminoMsg): _108.MsgTransfer; - toAminoMsg(message: _108.MsgTransfer): _108.MsgTransferAminoMsg; - fromProtoMsg(message: _108.MsgTransferProtoMsg): _108.MsgTransfer; - toProto(message: _108.MsgTransfer): Uint8Array; - toProtoMsg(message: _108.MsgTransfer): _108.MsgTransferProtoMsg; - }; - MsgTransferResponse: { - typeUrl: string; - encode(_: _108.MsgTransferResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _108.MsgTransferResponse; - fromJSON(_: any): _108.MsgTransferResponse; - toJSON(_: _108.MsgTransferResponse): unknown; - fromPartial(_: Partial<_108.MsgTransferResponse>): _108.MsgTransferResponse; - fromAmino(_: _108.MsgTransferResponseAmino): _108.MsgTransferResponse; - toAmino(_: _108.MsgTransferResponse): _108.MsgTransferResponseAmino; - fromAminoMsg(object: _108.MsgTransferResponseAminoMsg): _108.MsgTransferResponse; - toAminoMsg(message: _108.MsgTransferResponse): _108.MsgTransferResponseAminoMsg; - fromProtoMsg(message: _108.MsgTransferResponseProtoMsg): _108.MsgTransferResponse; - toProto(message: _108.MsgTransferResponse): Uint8Array; - toProtoMsg(message: _108.MsgTransferResponse): _108.MsgTransferResponseProtoMsg; - }; - DenomTrace: { - typeUrl: string; - encode(message: _107.DenomTrace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _107.DenomTrace; - fromJSON(object: any): _107.DenomTrace; - toJSON(message: _107.DenomTrace): unknown; - fromPartial(object: Partial<_107.DenomTrace>): _107.DenomTrace; - fromAmino(object: _107.DenomTraceAmino): _107.DenomTrace; - toAmino(message: _107.DenomTrace): _107.DenomTraceAmino; - fromAminoMsg(object: _107.DenomTraceAminoMsg): _107.DenomTrace; - toAminoMsg(message: _107.DenomTrace): _107.DenomTraceAminoMsg; - fromProtoMsg(message: _107.DenomTraceProtoMsg): _107.DenomTrace; - toProto(message: _107.DenomTrace): Uint8Array; - toProtoMsg(message: _107.DenomTrace): _107.DenomTraceProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _107.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _107.Params; - fromJSON(object: any): _107.Params; - toJSON(message: _107.Params): unknown; - fromPartial(object: Partial<_107.Params>): _107.Params; - fromAmino(object: _107.ParamsAmino): _107.Params; - toAmino(message: _107.Params): _107.ParamsAmino; - fromAminoMsg(object: _107.ParamsAminoMsg): _107.Params; - toAminoMsg(message: _107.Params): _107.ParamsAminoMsg; - fromProtoMsg(message: _107.ParamsProtoMsg): _107.Params; - toProto(message: _107.Params): Uint8Array; - toProtoMsg(message: _107.Params): _107.ParamsProtoMsg; - }; - QueryDenomTraceRequest: { - typeUrl: string; - encode(message: _106.QueryDenomTraceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTraceRequest; - fromJSON(object: any): _106.QueryDenomTraceRequest; - toJSON(message: _106.QueryDenomTraceRequest): unknown; - fromPartial(object: Partial<_106.QueryDenomTraceRequest>): _106.QueryDenomTraceRequest; - fromAmino(object: _106.QueryDenomTraceRequestAmino): _106.QueryDenomTraceRequest; - toAmino(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestAmino; - fromAminoMsg(object: _106.QueryDenomTraceRequestAminoMsg): _106.QueryDenomTraceRequest; - toAminoMsg(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestAminoMsg; - fromProtoMsg(message: _106.QueryDenomTraceRequestProtoMsg): _106.QueryDenomTraceRequest; - toProto(message: _106.QueryDenomTraceRequest): Uint8Array; - toProtoMsg(message: _106.QueryDenomTraceRequest): _106.QueryDenomTraceRequestProtoMsg; - }; - QueryDenomTraceResponse: { - typeUrl: string; - encode(message: _106.QueryDenomTraceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTraceResponse; - fromJSON(object: any): _106.QueryDenomTraceResponse; - toJSON(message: _106.QueryDenomTraceResponse): unknown; - fromPartial(object: Partial<_106.QueryDenomTraceResponse>): _106.QueryDenomTraceResponse; - fromAmino(object: _106.QueryDenomTraceResponseAmino): _106.QueryDenomTraceResponse; - toAmino(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseAmino; - fromAminoMsg(object: _106.QueryDenomTraceResponseAminoMsg): _106.QueryDenomTraceResponse; - toAminoMsg(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseAminoMsg; - fromProtoMsg(message: _106.QueryDenomTraceResponseProtoMsg): _106.QueryDenomTraceResponse; - toProto(message: _106.QueryDenomTraceResponse): Uint8Array; - toProtoMsg(message: _106.QueryDenomTraceResponse): _106.QueryDenomTraceResponseProtoMsg; - }; - QueryDenomTracesRequest: { - typeUrl: string; - encode(message: _106.QueryDenomTracesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTracesRequest; - fromJSON(object: any): _106.QueryDenomTracesRequest; - toJSON(message: _106.QueryDenomTracesRequest): unknown; - fromPartial(object: Partial<_106.QueryDenomTracesRequest>): _106.QueryDenomTracesRequest; - fromAmino(object: _106.QueryDenomTracesRequestAmino): _106.QueryDenomTracesRequest; - toAmino(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestAmino; - fromAminoMsg(object: _106.QueryDenomTracesRequestAminoMsg): _106.QueryDenomTracesRequest; - toAminoMsg(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestAminoMsg; - fromProtoMsg(message: _106.QueryDenomTracesRequestProtoMsg): _106.QueryDenomTracesRequest; - toProto(message: _106.QueryDenomTracesRequest): Uint8Array; - toProtoMsg(message: _106.QueryDenomTracesRequest): _106.QueryDenomTracesRequestProtoMsg; - }; - QueryDenomTracesResponse: { - typeUrl: string; - encode(message: _106.QueryDenomTracesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomTracesResponse; - fromJSON(object: any): _106.QueryDenomTracesResponse; - toJSON(message: _106.QueryDenomTracesResponse): unknown; - fromPartial(object: Partial<_106.QueryDenomTracesResponse>): _106.QueryDenomTracesResponse; - fromAmino(object: _106.QueryDenomTracesResponseAmino): _106.QueryDenomTracesResponse; - toAmino(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseAmino; - fromAminoMsg(object: _106.QueryDenomTracesResponseAminoMsg): _106.QueryDenomTracesResponse; - toAminoMsg(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseAminoMsg; - fromProtoMsg(message: _106.QueryDenomTracesResponseProtoMsg): _106.QueryDenomTracesResponse; - toProto(message: _106.QueryDenomTracesResponse): Uint8Array; - toProtoMsg(message: _106.QueryDenomTracesResponse): _106.QueryDenomTracesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _106.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryParamsRequest; - fromJSON(_: any): _106.QueryParamsRequest; - toJSON(_: _106.QueryParamsRequest): unknown; - fromPartial(_: Partial<_106.QueryParamsRequest>): _106.QueryParamsRequest; - fromAmino(_: _106.QueryParamsRequestAmino): _106.QueryParamsRequest; - toAmino(_: _106.QueryParamsRequest): _106.QueryParamsRequestAmino; - fromAminoMsg(object: _106.QueryParamsRequestAminoMsg): _106.QueryParamsRequest; - toAminoMsg(message: _106.QueryParamsRequest): _106.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _106.QueryParamsRequestProtoMsg): _106.QueryParamsRequest; - toProto(message: _106.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _106.QueryParamsRequest): _106.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _106.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryParamsResponse; - fromJSON(object: any): _106.QueryParamsResponse; - toJSON(message: _106.QueryParamsResponse): unknown; - fromPartial(object: Partial<_106.QueryParamsResponse>): _106.QueryParamsResponse; - fromAmino(object: _106.QueryParamsResponseAmino): _106.QueryParamsResponse; - toAmino(message: _106.QueryParamsResponse): _106.QueryParamsResponseAmino; - fromAminoMsg(object: _106.QueryParamsResponseAminoMsg): _106.QueryParamsResponse; - toAminoMsg(message: _106.QueryParamsResponse): _106.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _106.QueryParamsResponseProtoMsg): _106.QueryParamsResponse; - toProto(message: _106.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _106.QueryParamsResponse): _106.QueryParamsResponseProtoMsg; - }; - QueryDenomHashRequest: { - typeUrl: string; - encode(message: _106.QueryDenomHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomHashRequest; - fromJSON(object: any): _106.QueryDenomHashRequest; - toJSON(message: _106.QueryDenomHashRequest): unknown; - fromPartial(object: Partial<_106.QueryDenomHashRequest>): _106.QueryDenomHashRequest; - fromAmino(object: _106.QueryDenomHashRequestAmino): _106.QueryDenomHashRequest; - toAmino(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestAmino; - fromAminoMsg(object: _106.QueryDenomHashRequestAminoMsg): _106.QueryDenomHashRequest; - toAminoMsg(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestAminoMsg; - fromProtoMsg(message: _106.QueryDenomHashRequestProtoMsg): _106.QueryDenomHashRequest; - toProto(message: _106.QueryDenomHashRequest): Uint8Array; - toProtoMsg(message: _106.QueryDenomHashRequest): _106.QueryDenomHashRequestProtoMsg; - }; - QueryDenomHashResponse: { - typeUrl: string; - encode(message: _106.QueryDenomHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryDenomHashResponse; - fromJSON(object: any): _106.QueryDenomHashResponse; - toJSON(message: _106.QueryDenomHashResponse): unknown; - fromPartial(object: Partial<_106.QueryDenomHashResponse>): _106.QueryDenomHashResponse; - fromAmino(object: _106.QueryDenomHashResponseAmino): _106.QueryDenomHashResponse; - toAmino(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseAmino; - fromAminoMsg(object: _106.QueryDenomHashResponseAminoMsg): _106.QueryDenomHashResponse; - toAminoMsg(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseAminoMsg; - fromProtoMsg(message: _106.QueryDenomHashResponseProtoMsg): _106.QueryDenomHashResponse; - toProto(message: _106.QueryDenomHashResponse): Uint8Array; - toProtoMsg(message: _106.QueryDenomHashResponse): _106.QueryDenomHashResponseProtoMsg; - }; - QueryEscrowAddressRequest: { - typeUrl: string; - encode(message: _106.QueryEscrowAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryEscrowAddressRequest; - fromJSON(object: any): _106.QueryEscrowAddressRequest; - toJSON(message: _106.QueryEscrowAddressRequest): unknown; - fromPartial(object: Partial<_106.QueryEscrowAddressRequest>): _106.QueryEscrowAddressRequest; - fromAmino(object: _106.QueryEscrowAddressRequestAmino): _106.QueryEscrowAddressRequest; - toAmino(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestAmino; - fromAminoMsg(object: _106.QueryEscrowAddressRequestAminoMsg): _106.QueryEscrowAddressRequest; - toAminoMsg(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestAminoMsg; - fromProtoMsg(message: _106.QueryEscrowAddressRequestProtoMsg): _106.QueryEscrowAddressRequest; - toProto(message: _106.QueryEscrowAddressRequest): Uint8Array; - toProtoMsg(message: _106.QueryEscrowAddressRequest): _106.QueryEscrowAddressRequestProtoMsg; - }; - QueryEscrowAddressResponse: { - typeUrl: string; - encode(message: _106.QueryEscrowAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _106.QueryEscrowAddressResponse; - fromJSON(object: any): _106.QueryEscrowAddressResponse; - toJSON(message: _106.QueryEscrowAddressResponse): unknown; - fromPartial(object: Partial<_106.QueryEscrowAddressResponse>): _106.QueryEscrowAddressResponse; - fromAmino(object: _106.QueryEscrowAddressResponseAmino): _106.QueryEscrowAddressResponse; - toAmino(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseAmino; - fromAminoMsg(object: _106.QueryEscrowAddressResponseAminoMsg): _106.QueryEscrowAddressResponse; - toAminoMsg(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseAminoMsg; - fromProtoMsg(message: _106.QueryEscrowAddressResponseProtoMsg): _106.QueryEscrowAddressResponse; - toProto(message: _106.QueryEscrowAddressResponse): Uint8Array; - toProtoMsg(message: _106.QueryEscrowAddressResponse): _106.QueryEscrowAddressResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _105.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _105.GenesisState; - fromJSON(object: any): _105.GenesisState; - toJSON(message: _105.GenesisState): unknown; - fromPartial(object: Partial<_105.GenesisState>): _105.GenesisState; - fromAmino(object: _105.GenesisStateAmino): _105.GenesisState; - toAmino(message: _105.GenesisState): _105.GenesisStateAmino; - fromAminoMsg(object: _105.GenesisStateAminoMsg): _105.GenesisState; - toAminoMsg(message: _105.GenesisState): _105.GenesisStateAminoMsg; - fromProtoMsg(message: _105.GenesisStateProtoMsg): _105.GenesisState; - toProto(message: _105.GenesisState): Uint8Array; - toProtoMsg(message: _105.GenesisState): _105.GenesisStateProtoMsg; - }; - }; - } - } - namespace core { - namespace client { - const v1: { - MsgClientImpl: typeof _240.MsgClientImpl; - QueryClientImpl: typeof _238.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - clientState(request: _111.QueryClientStateRequest): Promise<_111.QueryClientStateResponse>; - clientStates(request?: _111.QueryClientStatesRequest | undefined): Promise<_111.QueryClientStatesResponse>; - consensusState(request: _111.QueryConsensusStateRequest): Promise<_111.QueryConsensusStateResponse>; - consensusStates(request: _111.QueryConsensusStatesRequest): Promise<_111.QueryConsensusStatesResponse>; - consensusStateHeights(request: _111.QueryConsensusStateHeightsRequest): Promise<_111.QueryConsensusStateHeightsResponse>; - clientStatus(request: _111.QueryClientStatusRequest): Promise<_111.QueryClientStatusResponse>; - clientParams(request?: _111.QueryClientParamsRequest | undefined): Promise<_111.QueryClientParamsResponse>; - upgradedClientState(request?: _111.QueryUpgradedClientStateRequest | undefined): Promise<_111.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _111.QueryUpgradedConsensusStateRequest | undefined): Promise<_111.QueryUpgradedConsensusStateResponse>; - }; - LCDQueryClient: typeof _236.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClient(value: _112.MsgCreateClient): { - typeUrl: string; - value: Uint8Array; - }; - updateClient(value: _112.MsgUpdateClient): { - typeUrl: string; - value: Uint8Array; - }; - upgradeClient(value: _112.MsgUpgradeClient): { - typeUrl: string; - value: Uint8Array; - }; - submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClient(value: _112.MsgCreateClient): { - typeUrl: string; - value: _112.MsgCreateClient; - }; - updateClient(value: _112.MsgUpdateClient): { - typeUrl: string; - value: _112.MsgUpdateClient; - }; - upgradeClient(value: _112.MsgUpgradeClient): { - typeUrl: string; - value: _112.MsgUpgradeClient; - }; - submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { - typeUrl: string; - value: _112.MsgSubmitMisbehaviour; - }; - }; - toJSON: { - createClient(value: _112.MsgCreateClient): { - typeUrl: string; - value: unknown; - }; - updateClient(value: _112.MsgUpdateClient): { - typeUrl: string; - value: unknown; - }; - upgradeClient(value: _112.MsgUpgradeClient): { - typeUrl: string; - value: unknown; - }; - submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClient(value: any): { - typeUrl: string; - value: _112.MsgCreateClient; - }; - updateClient(value: any): { - typeUrl: string; - value: _112.MsgUpdateClient; - }; - upgradeClient(value: any): { - typeUrl: string; - value: _112.MsgUpgradeClient; - }; - submitMisbehaviour(value: any): { - typeUrl: string; - value: _112.MsgSubmitMisbehaviour; - }; - }; - fromPartial: { - createClient(value: _112.MsgCreateClient): { - typeUrl: string; - value: _112.MsgCreateClient; - }; - updateClient(value: _112.MsgUpdateClient): { - typeUrl: string; - value: _112.MsgUpdateClient; - }; - upgradeClient(value: _112.MsgUpgradeClient): { - typeUrl: string; - value: _112.MsgUpgradeClient; - }; - submitMisbehaviour(value: _112.MsgSubmitMisbehaviour): { - typeUrl: string; - value: _112.MsgSubmitMisbehaviour; - }; - }; - }; - AminoConverter: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: _112.MsgCreateClient) => _112.MsgCreateClientAmino; - fromAmino: (object: _112.MsgCreateClientAmino) => _112.MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: _112.MsgUpdateClient) => _112.MsgUpdateClientAmino; - fromAmino: (object: _112.MsgUpdateClientAmino) => _112.MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: _112.MsgUpgradeClient) => _112.MsgUpgradeClientAmino; - fromAmino: (object: _112.MsgUpgradeClientAmino) => _112.MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: _112.MsgSubmitMisbehaviour) => _112.MsgSubmitMisbehaviourAmino; - fromAmino: (object: _112.MsgSubmitMisbehaviourAmino) => _112.MsgSubmitMisbehaviour; - }; - }; - MsgCreateClient: { - typeUrl: string; - encode(message: _112.MsgCreateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgCreateClient; - fromJSON(object: any): _112.MsgCreateClient; - toJSON(message: _112.MsgCreateClient): unknown; - fromPartial(object: Partial<_112.MsgCreateClient>): _112.MsgCreateClient; - fromAmino(object: _112.MsgCreateClientAmino): _112.MsgCreateClient; - toAmino(message: _112.MsgCreateClient): _112.MsgCreateClientAmino; - fromAminoMsg(object: _112.MsgCreateClientAminoMsg): _112.MsgCreateClient; - toAminoMsg(message: _112.MsgCreateClient): _112.MsgCreateClientAminoMsg; - fromProtoMsg(message: _112.MsgCreateClientProtoMsg): _112.MsgCreateClient; - toProto(message: _112.MsgCreateClient): Uint8Array; - toProtoMsg(message: _112.MsgCreateClient): _112.MsgCreateClientProtoMsg; - }; - MsgCreateClientResponse: { - typeUrl: string; - encode(_: _112.MsgCreateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgCreateClientResponse; - fromJSON(_: any): _112.MsgCreateClientResponse; - toJSON(_: _112.MsgCreateClientResponse): unknown; - fromPartial(_: Partial<_112.MsgCreateClientResponse>): _112.MsgCreateClientResponse; - fromAmino(_: _112.MsgCreateClientResponseAmino): _112.MsgCreateClientResponse; - toAmino(_: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseAmino; - fromAminoMsg(object: _112.MsgCreateClientResponseAminoMsg): _112.MsgCreateClientResponse; - toAminoMsg(message: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseAminoMsg; - fromProtoMsg(message: _112.MsgCreateClientResponseProtoMsg): _112.MsgCreateClientResponse; - toProto(message: _112.MsgCreateClientResponse): Uint8Array; - toProtoMsg(message: _112.MsgCreateClientResponse): _112.MsgCreateClientResponseProtoMsg; - }; - MsgUpdateClient: { - typeUrl: string; - encode(message: _112.MsgUpdateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpdateClient; - fromJSON(object: any): _112.MsgUpdateClient; - toJSON(message: _112.MsgUpdateClient): unknown; - fromPartial(object: Partial<_112.MsgUpdateClient>): _112.MsgUpdateClient; - fromAmino(object: _112.MsgUpdateClientAmino): _112.MsgUpdateClient; - toAmino(message: _112.MsgUpdateClient): _112.MsgUpdateClientAmino; - fromAminoMsg(object: _112.MsgUpdateClientAminoMsg): _112.MsgUpdateClient; - toAminoMsg(message: _112.MsgUpdateClient): _112.MsgUpdateClientAminoMsg; - fromProtoMsg(message: _112.MsgUpdateClientProtoMsg): _112.MsgUpdateClient; - toProto(message: _112.MsgUpdateClient): Uint8Array; - toProtoMsg(message: _112.MsgUpdateClient): _112.MsgUpdateClientProtoMsg; - }; - MsgUpdateClientResponse: { - typeUrl: string; - encode(_: _112.MsgUpdateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpdateClientResponse; - fromJSON(_: any): _112.MsgUpdateClientResponse; - toJSON(_: _112.MsgUpdateClientResponse): unknown; - fromPartial(_: Partial<_112.MsgUpdateClientResponse>): _112.MsgUpdateClientResponse; - fromAmino(_: _112.MsgUpdateClientResponseAmino): _112.MsgUpdateClientResponse; - toAmino(_: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseAmino; - fromAminoMsg(object: _112.MsgUpdateClientResponseAminoMsg): _112.MsgUpdateClientResponse; - toAminoMsg(message: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseAminoMsg; - fromProtoMsg(message: _112.MsgUpdateClientResponseProtoMsg): _112.MsgUpdateClientResponse; - toProto(message: _112.MsgUpdateClientResponse): Uint8Array; - toProtoMsg(message: _112.MsgUpdateClientResponse): _112.MsgUpdateClientResponseProtoMsg; - }; - MsgUpgradeClient: { - typeUrl: string; - encode(message: _112.MsgUpgradeClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpgradeClient; - fromJSON(object: any): _112.MsgUpgradeClient; - toJSON(message: _112.MsgUpgradeClient): unknown; - fromPartial(object: Partial<_112.MsgUpgradeClient>): _112.MsgUpgradeClient; - fromAmino(object: _112.MsgUpgradeClientAmino): _112.MsgUpgradeClient; - toAmino(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientAmino; - fromAminoMsg(object: _112.MsgUpgradeClientAminoMsg): _112.MsgUpgradeClient; - toAminoMsg(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientAminoMsg; - fromProtoMsg(message: _112.MsgUpgradeClientProtoMsg): _112.MsgUpgradeClient; - toProto(message: _112.MsgUpgradeClient): Uint8Array; - toProtoMsg(message: _112.MsgUpgradeClient): _112.MsgUpgradeClientProtoMsg; - }; - MsgUpgradeClientResponse: { - typeUrl: string; - encode(_: _112.MsgUpgradeClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgUpgradeClientResponse; - fromJSON(_: any): _112.MsgUpgradeClientResponse; - toJSON(_: _112.MsgUpgradeClientResponse): unknown; - fromPartial(_: Partial<_112.MsgUpgradeClientResponse>): _112.MsgUpgradeClientResponse; - fromAmino(_: _112.MsgUpgradeClientResponseAmino): _112.MsgUpgradeClientResponse; - toAmino(_: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseAmino; - fromAminoMsg(object: _112.MsgUpgradeClientResponseAminoMsg): _112.MsgUpgradeClientResponse; - toAminoMsg(message: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseAminoMsg; - fromProtoMsg(message: _112.MsgUpgradeClientResponseProtoMsg): _112.MsgUpgradeClientResponse; - toProto(message: _112.MsgUpgradeClientResponse): Uint8Array; - toProtoMsg(message: _112.MsgUpgradeClientResponse): _112.MsgUpgradeClientResponseProtoMsg; - }; - MsgSubmitMisbehaviour: { - typeUrl: string; - encode(message: _112.MsgSubmitMisbehaviour, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgSubmitMisbehaviour; - fromJSON(object: any): _112.MsgSubmitMisbehaviour; - toJSON(message: _112.MsgSubmitMisbehaviour): unknown; - fromPartial(object: Partial<_112.MsgSubmitMisbehaviour>): _112.MsgSubmitMisbehaviour; - fromAmino(object: _112.MsgSubmitMisbehaviourAmino): _112.MsgSubmitMisbehaviour; - toAmino(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourAmino; - fromAminoMsg(object: _112.MsgSubmitMisbehaviourAminoMsg): _112.MsgSubmitMisbehaviour; - toAminoMsg(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourAminoMsg; - fromProtoMsg(message: _112.MsgSubmitMisbehaviourProtoMsg): _112.MsgSubmitMisbehaviour; - toProto(message: _112.MsgSubmitMisbehaviour): Uint8Array; - toProtoMsg(message: _112.MsgSubmitMisbehaviour): _112.MsgSubmitMisbehaviourProtoMsg; - }; - MsgSubmitMisbehaviourResponse: { - typeUrl: string; - encode(_: _112.MsgSubmitMisbehaviourResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _112.MsgSubmitMisbehaviourResponse; - fromJSON(_: any): _112.MsgSubmitMisbehaviourResponse; - toJSON(_: _112.MsgSubmitMisbehaviourResponse): unknown; - fromPartial(_: Partial<_112.MsgSubmitMisbehaviourResponse>): _112.MsgSubmitMisbehaviourResponse; - fromAmino(_: _112.MsgSubmitMisbehaviourResponseAmino): _112.MsgSubmitMisbehaviourResponse; - toAmino(_: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseAmino; - fromAminoMsg(object: _112.MsgSubmitMisbehaviourResponseAminoMsg): _112.MsgSubmitMisbehaviourResponse; - toAminoMsg(message: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseAminoMsg; - fromProtoMsg(message: _112.MsgSubmitMisbehaviourResponseProtoMsg): _112.MsgSubmitMisbehaviourResponse; - toProto(message: _112.MsgSubmitMisbehaviourResponse): Uint8Array; - toProtoMsg(message: _112.MsgSubmitMisbehaviourResponse): _112.MsgSubmitMisbehaviourResponseProtoMsg; - }; - QueryClientStateRequest: { - typeUrl: string; - encode(message: _111.QueryClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStateRequest; - fromJSON(object: any): _111.QueryClientStateRequest; - toJSON(message: _111.QueryClientStateRequest): unknown; - fromPartial(object: Partial<_111.QueryClientStateRequest>): _111.QueryClientStateRequest; - fromAmino(object: _111.QueryClientStateRequestAmino): _111.QueryClientStateRequest; - toAmino(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestAmino; - fromAminoMsg(object: _111.QueryClientStateRequestAminoMsg): _111.QueryClientStateRequest; - toAminoMsg(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestAminoMsg; - fromProtoMsg(message: _111.QueryClientStateRequestProtoMsg): _111.QueryClientStateRequest; - toProto(message: _111.QueryClientStateRequest): Uint8Array; - toProtoMsg(message: _111.QueryClientStateRequest): _111.QueryClientStateRequestProtoMsg; - }; - QueryClientStateResponse: { - typeUrl: string; - encode(message: _111.QueryClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStateResponse; - fromJSON(object: any): _111.QueryClientStateResponse; - toJSON(message: _111.QueryClientStateResponse): unknown; - fromPartial(object: Partial<_111.QueryClientStateResponse>): _111.QueryClientStateResponse; - fromAmino(object: _111.QueryClientStateResponseAmino): _111.QueryClientStateResponse; - toAmino(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseAmino; - fromAminoMsg(object: _111.QueryClientStateResponseAminoMsg): _111.QueryClientStateResponse; - toAminoMsg(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseAminoMsg; - fromProtoMsg(message: _111.QueryClientStateResponseProtoMsg): _111.QueryClientStateResponse; - toProto(message: _111.QueryClientStateResponse): Uint8Array; - toProtoMsg(message: _111.QueryClientStateResponse): _111.QueryClientStateResponseProtoMsg; - }; - QueryClientStatesRequest: { - typeUrl: string; - encode(message: _111.QueryClientStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatesRequest; - fromJSON(object: any): _111.QueryClientStatesRequest; - toJSON(message: _111.QueryClientStatesRequest): unknown; - fromPartial(object: Partial<_111.QueryClientStatesRequest>): _111.QueryClientStatesRequest; - fromAmino(object: _111.QueryClientStatesRequestAmino): _111.QueryClientStatesRequest; - toAmino(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestAmino; - fromAminoMsg(object: _111.QueryClientStatesRequestAminoMsg): _111.QueryClientStatesRequest; - toAminoMsg(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestAminoMsg; - fromProtoMsg(message: _111.QueryClientStatesRequestProtoMsg): _111.QueryClientStatesRequest; - toProto(message: _111.QueryClientStatesRequest): Uint8Array; - toProtoMsg(message: _111.QueryClientStatesRequest): _111.QueryClientStatesRequestProtoMsg; - }; - QueryClientStatesResponse: { - typeUrl: string; - encode(message: _111.QueryClientStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatesResponse; - fromJSON(object: any): _111.QueryClientStatesResponse; - toJSON(message: _111.QueryClientStatesResponse): unknown; - fromPartial(object: Partial<_111.QueryClientStatesResponse>): _111.QueryClientStatesResponse; - fromAmino(object: _111.QueryClientStatesResponseAmino): _111.QueryClientStatesResponse; - toAmino(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseAmino; - fromAminoMsg(object: _111.QueryClientStatesResponseAminoMsg): _111.QueryClientStatesResponse; - toAminoMsg(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseAminoMsg; - fromProtoMsg(message: _111.QueryClientStatesResponseProtoMsg): _111.QueryClientStatesResponse; - toProto(message: _111.QueryClientStatesResponse): Uint8Array; - toProtoMsg(message: _111.QueryClientStatesResponse): _111.QueryClientStatesResponseProtoMsg; - }; - QueryConsensusStateRequest: { - typeUrl: string; - encode(message: _111.QueryConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateRequest; - fromJSON(object: any): _111.QueryConsensusStateRequest; - toJSON(message: _111.QueryConsensusStateRequest): unknown; - fromPartial(object: Partial<_111.QueryConsensusStateRequest>): _111.QueryConsensusStateRequest; - fromAmino(object: _111.QueryConsensusStateRequestAmino): _111.QueryConsensusStateRequest; - toAmino(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestAmino; - fromAminoMsg(object: _111.QueryConsensusStateRequestAminoMsg): _111.QueryConsensusStateRequest; - toAminoMsg(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStateRequestProtoMsg): _111.QueryConsensusStateRequest; - toProto(message: _111.QueryConsensusStateRequest): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStateRequest): _111.QueryConsensusStateRequestProtoMsg; - }; - QueryConsensusStateResponse: { - typeUrl: string; - encode(message: _111.QueryConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateResponse; - fromJSON(object: any): _111.QueryConsensusStateResponse; - toJSON(message: _111.QueryConsensusStateResponse): unknown; - fromPartial(object: Partial<_111.QueryConsensusStateResponse>): _111.QueryConsensusStateResponse; - fromAmino(object: _111.QueryConsensusStateResponseAmino): _111.QueryConsensusStateResponse; - toAmino(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseAmino; - fromAminoMsg(object: _111.QueryConsensusStateResponseAminoMsg): _111.QueryConsensusStateResponse; - toAminoMsg(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStateResponseProtoMsg): _111.QueryConsensusStateResponse; - toProto(message: _111.QueryConsensusStateResponse): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStateResponse): _111.QueryConsensusStateResponseProtoMsg; - }; - QueryConsensusStatesRequest: { - typeUrl: string; - encode(message: _111.QueryConsensusStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStatesRequest; - fromJSON(object: any): _111.QueryConsensusStatesRequest; - toJSON(message: _111.QueryConsensusStatesRequest): unknown; - fromPartial(object: Partial<_111.QueryConsensusStatesRequest>): _111.QueryConsensusStatesRequest; - fromAmino(object: _111.QueryConsensusStatesRequestAmino): _111.QueryConsensusStatesRequest; - toAmino(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestAmino; - fromAminoMsg(object: _111.QueryConsensusStatesRequestAminoMsg): _111.QueryConsensusStatesRequest; - toAminoMsg(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStatesRequestProtoMsg): _111.QueryConsensusStatesRequest; - toProto(message: _111.QueryConsensusStatesRequest): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStatesRequest): _111.QueryConsensusStatesRequestProtoMsg; - }; - QueryConsensusStatesResponse: { - typeUrl: string; - encode(message: _111.QueryConsensusStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStatesResponse; - fromJSON(object: any): _111.QueryConsensusStatesResponse; - toJSON(message: _111.QueryConsensusStatesResponse): unknown; - fromPartial(object: Partial<_111.QueryConsensusStatesResponse>): _111.QueryConsensusStatesResponse; - fromAmino(object: _111.QueryConsensusStatesResponseAmino): _111.QueryConsensusStatesResponse; - toAmino(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseAmino; - fromAminoMsg(object: _111.QueryConsensusStatesResponseAminoMsg): _111.QueryConsensusStatesResponse; - toAminoMsg(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStatesResponseProtoMsg): _111.QueryConsensusStatesResponse; - toProto(message: _111.QueryConsensusStatesResponse): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStatesResponse): _111.QueryConsensusStatesResponseProtoMsg; - }; - QueryConsensusStateHeightsRequest: { - typeUrl: string; - encode(message: _111.QueryConsensusStateHeightsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateHeightsRequest; - fromJSON(object: any): _111.QueryConsensusStateHeightsRequest; - toJSON(message: _111.QueryConsensusStateHeightsRequest): unknown; - fromPartial(object: Partial<_111.QueryConsensusStateHeightsRequest>): _111.QueryConsensusStateHeightsRequest; - fromAmino(object: _111.QueryConsensusStateHeightsRequestAmino): _111.QueryConsensusStateHeightsRequest; - toAmino(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestAmino; - fromAminoMsg(object: _111.QueryConsensusStateHeightsRequestAminoMsg): _111.QueryConsensusStateHeightsRequest; - toAminoMsg(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStateHeightsRequestProtoMsg): _111.QueryConsensusStateHeightsRequest; - toProto(message: _111.QueryConsensusStateHeightsRequest): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStateHeightsRequest): _111.QueryConsensusStateHeightsRequestProtoMsg; - }; - QueryConsensusStateHeightsResponse: { - typeUrl: string; - encode(message: _111.QueryConsensusStateHeightsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryConsensusStateHeightsResponse; - fromJSON(object: any): _111.QueryConsensusStateHeightsResponse; - toJSON(message: _111.QueryConsensusStateHeightsResponse): unknown; - fromPartial(object: Partial<_111.QueryConsensusStateHeightsResponse>): _111.QueryConsensusStateHeightsResponse; - fromAmino(object: _111.QueryConsensusStateHeightsResponseAmino): _111.QueryConsensusStateHeightsResponse; - toAmino(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseAmino; - fromAminoMsg(object: _111.QueryConsensusStateHeightsResponseAminoMsg): _111.QueryConsensusStateHeightsResponse; - toAminoMsg(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseAminoMsg; - fromProtoMsg(message: _111.QueryConsensusStateHeightsResponseProtoMsg): _111.QueryConsensusStateHeightsResponse; - toProto(message: _111.QueryConsensusStateHeightsResponse): Uint8Array; - toProtoMsg(message: _111.QueryConsensusStateHeightsResponse): _111.QueryConsensusStateHeightsResponseProtoMsg; - }; - QueryClientStatusRequest: { - typeUrl: string; - encode(message: _111.QueryClientStatusRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatusRequest; - fromJSON(object: any): _111.QueryClientStatusRequest; - toJSON(message: _111.QueryClientStatusRequest): unknown; - fromPartial(object: Partial<_111.QueryClientStatusRequest>): _111.QueryClientStatusRequest; - fromAmino(object: _111.QueryClientStatusRequestAmino): _111.QueryClientStatusRequest; - toAmino(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestAmino; - fromAminoMsg(object: _111.QueryClientStatusRequestAminoMsg): _111.QueryClientStatusRequest; - toAminoMsg(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestAminoMsg; - fromProtoMsg(message: _111.QueryClientStatusRequestProtoMsg): _111.QueryClientStatusRequest; - toProto(message: _111.QueryClientStatusRequest): Uint8Array; - toProtoMsg(message: _111.QueryClientStatusRequest): _111.QueryClientStatusRequestProtoMsg; - }; - QueryClientStatusResponse: { - typeUrl: string; - encode(message: _111.QueryClientStatusResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientStatusResponse; - fromJSON(object: any): _111.QueryClientStatusResponse; - toJSON(message: _111.QueryClientStatusResponse): unknown; - fromPartial(object: Partial<_111.QueryClientStatusResponse>): _111.QueryClientStatusResponse; - fromAmino(object: _111.QueryClientStatusResponseAmino): _111.QueryClientStatusResponse; - toAmino(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseAmino; - fromAminoMsg(object: _111.QueryClientStatusResponseAminoMsg): _111.QueryClientStatusResponse; - toAminoMsg(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseAminoMsg; - fromProtoMsg(message: _111.QueryClientStatusResponseProtoMsg): _111.QueryClientStatusResponse; - toProto(message: _111.QueryClientStatusResponse): Uint8Array; - toProtoMsg(message: _111.QueryClientStatusResponse): _111.QueryClientStatusResponseProtoMsg; - }; - QueryClientParamsRequest: { - typeUrl: string; - encode(_: _111.QueryClientParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientParamsRequest; - fromJSON(_: any): _111.QueryClientParamsRequest; - toJSON(_: _111.QueryClientParamsRequest): unknown; - fromPartial(_: Partial<_111.QueryClientParamsRequest>): _111.QueryClientParamsRequest; - fromAmino(_: _111.QueryClientParamsRequestAmino): _111.QueryClientParamsRequest; - toAmino(_: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestAmino; - fromAminoMsg(object: _111.QueryClientParamsRequestAminoMsg): _111.QueryClientParamsRequest; - toAminoMsg(message: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestAminoMsg; - fromProtoMsg(message: _111.QueryClientParamsRequestProtoMsg): _111.QueryClientParamsRequest; - toProto(message: _111.QueryClientParamsRequest): Uint8Array; - toProtoMsg(message: _111.QueryClientParamsRequest): _111.QueryClientParamsRequestProtoMsg; - }; - QueryClientParamsResponse: { - typeUrl: string; - encode(message: _111.QueryClientParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryClientParamsResponse; - fromJSON(object: any): _111.QueryClientParamsResponse; - toJSON(message: _111.QueryClientParamsResponse): unknown; - fromPartial(object: Partial<_111.QueryClientParamsResponse>): _111.QueryClientParamsResponse; - fromAmino(object: _111.QueryClientParamsResponseAmino): _111.QueryClientParamsResponse; - toAmino(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseAmino; - fromAminoMsg(object: _111.QueryClientParamsResponseAminoMsg): _111.QueryClientParamsResponse; - toAminoMsg(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseAminoMsg; - fromProtoMsg(message: _111.QueryClientParamsResponseProtoMsg): _111.QueryClientParamsResponse; - toProto(message: _111.QueryClientParamsResponse): Uint8Array; - toProtoMsg(message: _111.QueryClientParamsResponse): _111.QueryClientParamsResponseProtoMsg; - }; - QueryUpgradedClientStateRequest: { - typeUrl: string; - encode(_: _111.QueryUpgradedClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedClientStateRequest; - fromJSON(_: any): _111.QueryUpgradedClientStateRequest; - toJSON(_: _111.QueryUpgradedClientStateRequest): unknown; - fromPartial(_: Partial<_111.QueryUpgradedClientStateRequest>): _111.QueryUpgradedClientStateRequest; - fromAmino(_: _111.QueryUpgradedClientStateRequestAmino): _111.QueryUpgradedClientStateRequest; - toAmino(_: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestAmino; - fromAminoMsg(object: _111.QueryUpgradedClientStateRequestAminoMsg): _111.QueryUpgradedClientStateRequest; - toAminoMsg(message: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestAminoMsg; - fromProtoMsg(message: _111.QueryUpgradedClientStateRequestProtoMsg): _111.QueryUpgradedClientStateRequest; - toProto(message: _111.QueryUpgradedClientStateRequest): Uint8Array; - toProtoMsg(message: _111.QueryUpgradedClientStateRequest): _111.QueryUpgradedClientStateRequestProtoMsg; - }; - QueryUpgradedClientStateResponse: { - typeUrl: string; - encode(message: _111.QueryUpgradedClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedClientStateResponse; - fromJSON(object: any): _111.QueryUpgradedClientStateResponse; - toJSON(message: _111.QueryUpgradedClientStateResponse): unknown; - fromPartial(object: Partial<_111.QueryUpgradedClientStateResponse>): _111.QueryUpgradedClientStateResponse; - fromAmino(object: _111.QueryUpgradedClientStateResponseAmino): _111.QueryUpgradedClientStateResponse; - toAmino(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseAmino; - fromAminoMsg(object: _111.QueryUpgradedClientStateResponseAminoMsg): _111.QueryUpgradedClientStateResponse; - toAminoMsg(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseAminoMsg; - fromProtoMsg(message: _111.QueryUpgradedClientStateResponseProtoMsg): _111.QueryUpgradedClientStateResponse; - toProto(message: _111.QueryUpgradedClientStateResponse): Uint8Array; - toProtoMsg(message: _111.QueryUpgradedClientStateResponse): _111.QueryUpgradedClientStateResponseProtoMsg; - }; - QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(_: _111.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedConsensusStateRequest; - fromJSON(_: any): _111.QueryUpgradedConsensusStateRequest; - toJSON(_: _111.QueryUpgradedConsensusStateRequest): unknown; - fromPartial(_: Partial<_111.QueryUpgradedConsensusStateRequest>): _111.QueryUpgradedConsensusStateRequest; - fromAmino(_: _111.QueryUpgradedConsensusStateRequestAmino): _111.QueryUpgradedConsensusStateRequest; - toAmino(_: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: _111.QueryUpgradedConsensusStateRequestAminoMsg): _111.QueryUpgradedConsensusStateRequest; - toAminoMsg(message: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: _111.QueryUpgradedConsensusStateRequestProtoMsg): _111.QueryUpgradedConsensusStateRequest; - toProto(message: _111.QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: _111.QueryUpgradedConsensusStateRequest): _111.QueryUpgradedConsensusStateRequestProtoMsg; - }; - QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: _111.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _111.QueryUpgradedConsensusStateResponse; - fromJSON(object: any): _111.QueryUpgradedConsensusStateResponse; - toJSON(message: _111.QueryUpgradedConsensusStateResponse): unknown; - fromPartial(object: Partial<_111.QueryUpgradedConsensusStateResponse>): _111.QueryUpgradedConsensusStateResponse; - fromAmino(object: _111.QueryUpgradedConsensusStateResponseAmino): _111.QueryUpgradedConsensusStateResponse; - toAmino(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: _111.QueryUpgradedConsensusStateResponseAminoMsg): _111.QueryUpgradedConsensusStateResponse; - toAminoMsg(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: _111.QueryUpgradedConsensusStateResponseProtoMsg): _111.QueryUpgradedConsensusStateResponse; - toProto(message: _111.QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: _111.QueryUpgradedConsensusStateResponse): _111.QueryUpgradedConsensusStateResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _110.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.GenesisState; - fromJSON(object: any): _110.GenesisState; - toJSON(message: _110.GenesisState): unknown; - fromPartial(object: Partial<_110.GenesisState>): _110.GenesisState; - fromAmino(object: _110.GenesisStateAmino): _110.GenesisState; - toAmino(message: _110.GenesisState): _110.GenesisStateAmino; - fromAminoMsg(object: _110.GenesisStateAminoMsg): _110.GenesisState; - toAminoMsg(message: _110.GenesisState): _110.GenesisStateAminoMsg; - fromProtoMsg(message: _110.GenesisStateProtoMsg): _110.GenesisState; - toProto(message: _110.GenesisState): Uint8Array; - toProtoMsg(message: _110.GenesisState): _110.GenesisStateProtoMsg; - }; - GenesisMetadata: { - typeUrl: string; - encode(message: _110.GenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.GenesisMetadata; - fromJSON(object: any): _110.GenesisMetadata; - toJSON(message: _110.GenesisMetadata): unknown; - fromPartial(object: Partial<_110.GenesisMetadata>): _110.GenesisMetadata; - fromAmino(object: _110.GenesisMetadataAmino): _110.GenesisMetadata; - toAmino(message: _110.GenesisMetadata): _110.GenesisMetadataAmino; - fromAminoMsg(object: _110.GenesisMetadataAminoMsg): _110.GenesisMetadata; - toAminoMsg(message: _110.GenesisMetadata): _110.GenesisMetadataAminoMsg; - fromProtoMsg(message: _110.GenesisMetadataProtoMsg): _110.GenesisMetadata; - toProto(message: _110.GenesisMetadata): Uint8Array; - toProtoMsg(message: _110.GenesisMetadata): _110.GenesisMetadataProtoMsg; - }; - IdentifiedGenesisMetadata: { - typeUrl: string; - encode(message: _110.IdentifiedGenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _110.IdentifiedGenesisMetadata; - fromJSON(object: any): _110.IdentifiedGenesisMetadata; - toJSON(message: _110.IdentifiedGenesisMetadata): unknown; - fromPartial(object: Partial<_110.IdentifiedGenesisMetadata>): _110.IdentifiedGenesisMetadata; - fromAmino(object: _110.IdentifiedGenesisMetadataAmino): _110.IdentifiedGenesisMetadata; - toAmino(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataAmino; - fromAminoMsg(object: _110.IdentifiedGenesisMetadataAminoMsg): _110.IdentifiedGenesisMetadata; - toAminoMsg(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataAminoMsg; - fromProtoMsg(message: _110.IdentifiedGenesisMetadataProtoMsg): _110.IdentifiedGenesisMetadata; - toProto(message: _110.IdentifiedGenesisMetadata): Uint8Array; - toProtoMsg(message: _110.IdentifiedGenesisMetadata): _110.IdentifiedGenesisMetadataProtoMsg; - }; - IdentifiedClientState: { - typeUrl: string; - encode(message: _109.IdentifiedClientState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.IdentifiedClientState; - fromJSON(object: any): _109.IdentifiedClientState; - toJSON(message: _109.IdentifiedClientState): unknown; - fromPartial(object: Partial<_109.IdentifiedClientState>): _109.IdentifiedClientState; - fromAmino(object: _109.IdentifiedClientStateAmino): _109.IdentifiedClientState; - toAmino(message: _109.IdentifiedClientState): _109.IdentifiedClientStateAmino; - fromAminoMsg(object: _109.IdentifiedClientStateAminoMsg): _109.IdentifiedClientState; - toAminoMsg(message: _109.IdentifiedClientState): _109.IdentifiedClientStateAminoMsg; - fromProtoMsg(message: _109.IdentifiedClientStateProtoMsg): _109.IdentifiedClientState; - toProto(message: _109.IdentifiedClientState): Uint8Array; - toProtoMsg(message: _109.IdentifiedClientState): _109.IdentifiedClientStateProtoMsg; - }; - ConsensusStateWithHeight: { - typeUrl: string; - encode(message: _109.ConsensusStateWithHeight, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ConsensusStateWithHeight; - fromJSON(object: any): _109.ConsensusStateWithHeight; - toJSON(message: _109.ConsensusStateWithHeight): unknown; - fromPartial(object: Partial<_109.ConsensusStateWithHeight>): _109.ConsensusStateWithHeight; - fromAmino(object: _109.ConsensusStateWithHeightAmino): _109.ConsensusStateWithHeight; - toAmino(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightAmino; - fromAminoMsg(object: _109.ConsensusStateWithHeightAminoMsg): _109.ConsensusStateWithHeight; - toAminoMsg(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightAminoMsg; - fromProtoMsg(message: _109.ConsensusStateWithHeightProtoMsg): _109.ConsensusStateWithHeight; - toProto(message: _109.ConsensusStateWithHeight): Uint8Array; - toProtoMsg(message: _109.ConsensusStateWithHeight): _109.ConsensusStateWithHeightProtoMsg; - }; - ClientConsensusStates: { - typeUrl: string; - encode(message: _109.ClientConsensusStates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ClientConsensusStates; - fromJSON(object: any): _109.ClientConsensusStates; - toJSON(message: _109.ClientConsensusStates): unknown; - fromPartial(object: Partial<_109.ClientConsensusStates>): _109.ClientConsensusStates; - fromAmino(object: _109.ClientConsensusStatesAmino): _109.ClientConsensusStates; - toAmino(message: _109.ClientConsensusStates): _109.ClientConsensusStatesAmino; - fromAminoMsg(object: _109.ClientConsensusStatesAminoMsg): _109.ClientConsensusStates; - toAminoMsg(message: _109.ClientConsensusStates): _109.ClientConsensusStatesAminoMsg; - fromProtoMsg(message: _109.ClientConsensusStatesProtoMsg): _109.ClientConsensusStates; - toProto(message: _109.ClientConsensusStates): Uint8Array; - toProtoMsg(message: _109.ClientConsensusStates): _109.ClientConsensusStatesProtoMsg; - }; - ClientUpdateProposal: { - typeUrl: string; - encode(message: _109.ClientUpdateProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.ClientUpdateProposal; - fromJSON(object: any): _109.ClientUpdateProposal; - toJSON(message: _109.ClientUpdateProposal): unknown; - fromPartial(object: Partial<_109.ClientUpdateProposal>): _109.ClientUpdateProposal; - fromAmino(object: _109.ClientUpdateProposalAmino): _109.ClientUpdateProposal; - toAmino(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalAmino; - fromAminoMsg(object: _109.ClientUpdateProposalAminoMsg): _109.ClientUpdateProposal; - toAminoMsg(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalAminoMsg; - fromProtoMsg(message: _109.ClientUpdateProposalProtoMsg): _109.ClientUpdateProposal; - toProto(message: _109.ClientUpdateProposal): Uint8Array; - toProtoMsg(message: _109.ClientUpdateProposal): _109.ClientUpdateProposalProtoMsg; - }; - UpgradeProposal: { - typeUrl: string; - encode(message: _109.UpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.UpgradeProposal; - fromJSON(object: any): _109.UpgradeProposal; - toJSON(message: _109.UpgradeProposal): unknown; - fromPartial(object: Partial<_109.UpgradeProposal>): _109.UpgradeProposal; - fromAmino(object: _109.UpgradeProposalAmino): _109.UpgradeProposal; - toAmino(message: _109.UpgradeProposal): _109.UpgradeProposalAmino; - fromAminoMsg(object: _109.UpgradeProposalAminoMsg): _109.UpgradeProposal; - toAminoMsg(message: _109.UpgradeProposal): _109.UpgradeProposalAminoMsg; - fromProtoMsg(message: _109.UpgradeProposalProtoMsg): _109.UpgradeProposal; - toProto(message: _109.UpgradeProposal): Uint8Array; - toProtoMsg(message: _109.UpgradeProposal): _109.UpgradeProposalProtoMsg; - }; - Height: { - typeUrl: string; - encode(message: _109.Height, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.Height; - fromJSON(object: any): _109.Height; - toJSON(message: _109.Height): unknown; - fromPartial(object: Partial<_109.Height>): _109.Height; - fromAmino(object: _109.HeightAmino): _109.Height; - toAmino(message: _109.Height): _109.HeightAmino; - fromAminoMsg(object: _109.HeightAminoMsg): _109.Height; - toAminoMsg(message: _109.Height): _109.HeightAminoMsg; - fromProtoMsg(message: _109.HeightProtoMsg): _109.Height; - toProto(message: _109.Height): Uint8Array; - toProtoMsg(message: _109.Height): _109.HeightProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _109.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _109.Params; - fromJSON(object: any): _109.Params; - toJSON(message: _109.Params): unknown; - fromPartial(object: Partial<_109.Params>): _109.Params; - fromAmino(object: _109.ParamsAmino): _109.Params; - toAmino(message: _109.Params): _109.ParamsAmino; - fromAminoMsg(object: _109.ParamsAminoMsg): _109.Params; - toAminoMsg(message: _109.Params): _109.ParamsAminoMsg; - fromProtoMsg(message: _109.ParamsProtoMsg): _109.Params; - toProto(message: _109.Params): Uint8Array; - toProtoMsg(message: _109.Params): _109.ParamsProtoMsg; - }; - }; - } - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - ibc: { - applications: { - transfer: { - v1: _239.MsgClientImpl; - }; - }; - core: { - client: { - v1: _240.MsgClientImpl; - }; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest | undefined): Promise; - }; - }; - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest | undefined): Promise; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest | undefined): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest | undefined): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest | undefined): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest | undefined): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: import("../cosmos/base/tendermint/v1beta1/query").ABCIQueryRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise; - }; - }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest | undefined): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest | undefined): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest | undefined): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest | undefined): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest | undefined): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest | undefined): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest | undefined): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest | undefined): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise; - }; - }; - }; - ibc: { - applications: { - transfer: { - v1: { - denomTrace(request: _106.QueryDenomTraceRequest): Promise<_106.QueryDenomTraceResponse>; - denomTraces(request?: _106.QueryDenomTracesRequest | undefined): Promise<_106.QueryDenomTracesResponse>; - params(request?: _106.QueryParamsRequest | undefined): Promise<_106.QueryParamsResponse>; - denomHash(request: _106.QueryDenomHashRequest): Promise<_106.QueryDenomHashResponse>; - escrowAddress(request: _106.QueryEscrowAddressRequest): Promise<_106.QueryEscrowAddressResponse>; - }; - }; - }; - core: { - client: { - v1: { - clientState(request: _111.QueryClientStateRequest): Promise<_111.QueryClientStateResponse>; - clientStates(request?: _111.QueryClientStatesRequest | undefined): Promise<_111.QueryClientStatesResponse>; - consensusState(request: _111.QueryConsensusStateRequest): Promise<_111.QueryConsensusStateResponse>; - consensusStates(request: _111.QueryConsensusStatesRequest): Promise<_111.QueryConsensusStatesResponse>; - consensusStateHeights(request: _111.QueryConsensusStateHeightsRequest): Promise<_111.QueryConsensusStateHeightsResponse>; - clientStatus(request: _111.QueryClientStatusRequest): Promise<_111.QueryClientStatusResponse>; - clientParams(request?: _111.QueryClientParamsRequest | undefined): Promise<_111.QueryClientParamsResponse>; - upgradedClientState(request?: _111.QueryUpgradedClientStateRequest | undefined): Promise<_111.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _111.QueryUpgradedConsensusStateRequest | undefined): Promise<_111.QueryUpgradedConsensusStateResponse>; - }; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - ibc: { - applications: { - transfer: { - v1: _235.LCDQueryClient; - }; - }; - core: { - client: { - v1: _236.LCDQueryClient; - }; - }; - }; - }>; - }; -} diff --git a/packages/api/types/codegen/ibc/client.d.ts b/packages/api/types/codegen/ibc/client.d.ts deleted file mode 100644 index 143ceb28..00000000 --- a/packages/api/types/codegen/ibc/client.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const ibcAminoConverters: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgCreateClient) => import("./core/client/v1/tx").MsgCreateClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgCreateClientAmino) => import("./core/client/v1/tx").MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgUpdateClient) => import("./core/client/v1/tx").MsgUpdateClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgUpdateClientAmino) => import("./core/client/v1/tx").MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgUpgradeClient) => import("./core/client/v1/tx").MsgUpgradeClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgUpgradeClientAmino) => import("./core/client/v1/tx").MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgSubmitMisbehaviour) => import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino) => import("./core/client/v1/tx").MsgSubmitMisbehaviour; - }; - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: import("./applications/transfer/v1/tx").MsgTransfer) => import("./applications/transfer/v1/tx").MsgTransferAmino; - fromAmino: (object: import("./applications/transfer/v1/tx").MsgTransferAmino) => import("./applications/transfer/v1/tx").MsgTransfer; - }; -}; -export declare const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningIbcClientOptions: ({ defaultTypes }?: { - defaultTypes?: readonly [string, GeneratedType][] | undefined; -}) => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningIbcClient: ({ rpcEndpoint, signer, defaultTypes }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: readonly [string, GeneratedType][] | undefined; -}) => Promise; diff --git a/packages/api/types/codegen/ibc/core/client/v1/client.d.ts b/packages/api/types/codegen/ibc/core/client/v1/client.d.ts deleted file mode 100644 index 900d2cb7..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/client.d.ts +++ /dev/null @@ -1,414 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientState { - /** client identifier */ - clientId: string; - /** client state */ - clientState?: Any; -} -export interface IdentifiedClientStateProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; - value: Uint8Array; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateAmino { - /** client identifier */ - client_id?: string; - /** client state */ - client_state?: AnyAmino; -} -export interface IdentifiedClientStateAminoMsg { - type: "cosmos-sdk/IdentifiedClientState"; - value: IdentifiedClientStateAmino; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateSDKType { - client_id: string; - client_state?: AnySDKType; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeight { - /** consensus state height */ - height: Height; - /** consensus state */ - consensusState?: Any; -} -export interface ConsensusStateWithHeightProtoMsg { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; - value: Uint8Array; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightAmino { - /** consensus state height */ - height?: HeightAmino; - /** consensus state */ - consensus_state?: AnyAmino; -} -export interface ConsensusStateWithHeightAminoMsg { - type: "cosmos-sdk/ConsensusStateWithHeight"; - value: ConsensusStateWithHeightAmino; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightSDKType { - height: HeightSDKType; - consensus_state?: AnySDKType; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStates { - /** client identifier */ - clientId: string; - /** consensus states and their heights associated with the client */ - consensusStates: ConsensusStateWithHeight[]; -} -export interface ClientConsensusStatesProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; - value: Uint8Array; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesAmino { - /** client identifier */ - client_id?: string; - /** consensus states and their heights associated with the client */ - consensus_states?: ConsensusStateWithHeightAmino[]; -} -export interface ClientConsensusStatesAminoMsg { - type: "cosmos-sdk/ClientConsensusStates"; - value: ClientConsensusStatesAmino; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesSDKType { - client_id: string; - consensus_states: ConsensusStateWithHeightSDKType[]; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposal { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subjectClientId: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substituteClientId: string; -} -export interface ClientUpdateProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; - value: Uint8Array; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalAmino { - /** the title of the update proposal */ - title?: string; - /** the description of the proposal */ - description?: string; - /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id?: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substitute_client_id?: string; -} -export interface ClientUpdateProposalAminoMsg { - type: "cosmos-sdk/ClientUpdateProposal"; - value: ClientUpdateProposalAmino; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - title: string; - description: string; - subject_client_id: string; - substitute_client_id: string; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposal { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: Plan; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgradedClientState?: Any; -} -export interface UpgradeProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.UpgradeProposal"; - value: Uint8Array; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgraded_client_state?: AnyAmino; -} -export interface UpgradeProposalAminoMsg { - type: "cosmos-sdk/UpgradeProposal"; - value: UpgradeProposalAmino; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; - upgraded_client_state?: AnySDKType; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface Height { - /** the revision that the client is currently on */ - revisionNumber: bigint; - /** the height within the given revision */ - revisionHeight: bigint; -} -export interface HeightProtoMsg { - typeUrl: "/ibc.core.client.v1.Height"; - value: Uint8Array; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightAmino { - /** the revision that the client is currently on */ - revision_number?: string; - /** the height within the given revision */ - revision_height?: string; -} -export interface HeightAminoMsg { - type: "cosmos-sdk/Height"; - value: HeightAmino; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightSDKType { - revision_number: bigint; - revision_height: bigint; -} -/** Params defines the set of IBC light client parameters. */ -export interface Params { - /** allowed_clients defines the list of allowed client state types. */ - allowedClients: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.client.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsAmino { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsSDKType { - allowed_clients: string[]; -} -export declare const IdentifiedClientState: { - typeUrl: string; - encode(message: IdentifiedClientState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState; - fromJSON(object: any): IdentifiedClientState; - toJSON(message: IdentifiedClientState): unknown; - fromPartial(object: Partial): IdentifiedClientState; - fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState; - toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino; - fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState; - toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg; - fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState; - toProto(message: IdentifiedClientState): Uint8Array; - toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg; -}; -export declare const ConsensusStateWithHeight: { - typeUrl: string; - encode(message: ConsensusStateWithHeight, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight; - fromJSON(object: any): ConsensusStateWithHeight; - toJSON(message: ConsensusStateWithHeight): unknown; - fromPartial(object: Partial): ConsensusStateWithHeight; - fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight; - toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino; - fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight; - toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg; - fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight; - toProto(message: ConsensusStateWithHeight): Uint8Array; - toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg; -}; -export declare const ClientConsensusStates: { - typeUrl: string; - encode(message: ClientConsensusStates, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates; - fromJSON(object: any): ClientConsensusStates; - toJSON(message: ClientConsensusStates): unknown; - fromPartial(object: Partial): ClientConsensusStates; - fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates; - toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino; - fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates; - toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg; - fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates; - toProto(message: ClientConsensusStates): Uint8Array; - toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg; -}; -export declare const ClientUpdateProposal: { - typeUrl: string; - encode(message: ClientUpdateProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal; - fromJSON(object: any): ClientUpdateProposal; - toJSON(message: ClientUpdateProposal): unknown; - fromPartial(object: Partial): ClientUpdateProposal; - fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal; - toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino; - fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal; - toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg; - fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal; - toProto(message: ClientUpdateProposal): Uint8Array; - toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg; -}; -export declare const UpgradeProposal: { - typeUrl: string; - encode(message: UpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal; - fromJSON(object: any): UpgradeProposal; - toJSON(message: UpgradeProposal): unknown; - fromPartial(object: Partial): UpgradeProposal; - fromAmino(object: UpgradeProposalAmino): UpgradeProposal; - toAmino(message: UpgradeProposal): UpgradeProposalAmino; - fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal; - toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg; - fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal; - toProto(message: UpgradeProposal): Uint8Array; - toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg; -}; -export declare const Height: { - typeUrl: string; - encode(message: Height, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Height; - fromJSON(object: any): Height; - toJSON(message: Height): unknown; - fromPartial(object: Partial): Height; - fromAmino(object: HeightAmino): Height; - toAmino(message: Height): HeightAmino; - fromAminoMsg(object: HeightAminoMsg): Height; - toAminoMsg(message: Height): HeightAminoMsg; - fromProtoMsg(message: HeightProtoMsg): Height; - toProto(message: Height): Uint8Array; - toProtoMsg(message: Height): HeightProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts b/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts deleted file mode 100644 index b491cdfb..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/genesis.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisState { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientState[]; - /** consensus states from each client */ - clientsConsensus: ClientConsensusStates[]; - /** metadata from each client */ - clientsMetadata: IdentifiedGenesisMetadata[]; - params: Params; - /** create localhost on initialization */ - createLocalhost: boolean; - /** the sequence for the next generated client identifier */ - nextClientSequence: bigint; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateAmino { - /** client states with their corresponding identifiers */ - clients?: IdentifiedClientStateAmino[]; - /** consensus states from each client */ - clients_consensus?: ClientConsensusStatesAmino[]; - /** metadata from each client */ - clients_metadata?: IdentifiedGenesisMetadataAmino[]; - params?: ParamsAmino; - /** create localhost on initialization */ - create_localhost?: boolean; - /** the sequence for the next generated client identifier */ - next_client_sequence?: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateSDKType { - clients: IdentifiedClientStateSDKType[]; - clients_consensus: ClientConsensusStatesSDKType[]; - clients_metadata: IdentifiedGenesisMetadataSDKType[]; - params: ParamsSDKType; - create_localhost: boolean; - next_client_sequence: bigint; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadata { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisMetadata"; - value: Uint8Array; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataAmino { - /** store key of metadata without clientID-prefix */ - key?: string; - /** metadata value */ - value?: string; -} -export interface GenesisMetadataAminoMsg { - type: "cosmos-sdk/GenesisMetadata"; - value: GenesisMetadataAmino; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadata { - clientId: string; - clientMetadata: GenesisMetadata[]; -} -export interface IdentifiedGenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataAmino { - client_id?: string; - client_metadata?: GenesisMetadataAmino[]; -} -export interface IdentifiedGenesisMetadataAminoMsg { - type: "cosmos-sdk/IdentifiedGenesisMetadata"; - value: IdentifiedGenesisMetadataAmino; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataSDKType { - client_id: string; - client_metadata: GenesisMetadataSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const GenesisMetadata: { - typeUrl: string; - encode(message: GenesisMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata; - fromJSON(object: any): GenesisMetadata; - toJSON(message: GenesisMetadata): unknown; - fromPartial(object: Partial): GenesisMetadata; - fromAmino(object: GenesisMetadataAmino): GenesisMetadata; - toAmino(message: GenesisMetadata): GenesisMetadataAmino; - fromAminoMsg(object: GenesisMetadataAminoMsg): GenesisMetadata; - toAminoMsg(message: GenesisMetadata): GenesisMetadataAminoMsg; - fromProtoMsg(message: GenesisMetadataProtoMsg): GenesisMetadata; - toProto(message: GenesisMetadata): Uint8Array; - toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg; -}; -export declare const IdentifiedGenesisMetadata: { - typeUrl: string; - encode(message: IdentifiedGenesisMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata; - fromJSON(object: any): IdentifiedGenesisMetadata; - toJSON(message: IdentifiedGenesisMetadata): unknown; - fromPartial(object: Partial): IdentifiedGenesisMetadata; - fromAmino(object: IdentifiedGenesisMetadataAmino): IdentifiedGenesisMetadata; - toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino; - fromAminoMsg(object: IdentifiedGenesisMetadataAminoMsg): IdentifiedGenesisMetadata; - toAminoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAminoMsg; - fromProtoMsg(message: IdentifiedGenesisMetadataProtoMsg): IdentifiedGenesisMetadata; - toProto(message: IdentifiedGenesisMetadata): Uint8Array; - toProtoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/query.d.ts b/packages/api/types/codegen/ibc/core/client/v1/query.d.ts deleted file mode 100644 index e64f3141..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/query.d.ts +++ /dev/null @@ -1,887 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequest { - /** client state unique identifier */ - clientId: string; -} -export interface QueryClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; - value: Uint8Array; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestAmino { - /** client state unique identifier */ - client_id?: string; -} -export interface QueryClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryClientStateRequest"; - value: QueryClientStateRequestAmino; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestSDKType { - client_id: string; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponse { - /** client state associated with the request identifier */ - clientState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; - value: Uint8Array; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseAmino { - /** client state associated with the request identifier */ - client_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryClientStateResponse"; - value: QueryClientStateResponseAmino; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseSDKType { - client_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequest { - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryClientStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; - value: Uint8Array; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestAmino { - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryClientStatesRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatesRequest"; - value: QueryClientStatesRequestAmino; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponse { - /** list of stored ClientStates of the chain. */ - clientStates: IdentifiedClientState[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryClientStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; - value: Uint8Array; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseAmino { - /** list of stored ClientStates of the chain. */ - client_states?: IdentifiedClientStateAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryClientStatesResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatesResponse"; - value: QueryClientStatesResponseAmino; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseSDKType { - client_states: IdentifiedClientStateSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequest { - /** client identifier */ - clientId: string; - /** consensus state revision number */ - revisionNumber: bigint; - /** consensus state revision height */ - revisionHeight: bigint; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latestHeight: boolean; -} -export interface QueryConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestAmino { - /** client identifier */ - client_id?: string; - /** consensus state revision number */ - revision_number?: string; - /** consensus state revision height */ - revision_height?: string; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latest_height?: boolean; -} -export interface QueryConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateRequest"; - value: QueryConsensusStateRequestAmino; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestSDKType { - client_id: string; - revision_number: bigint; - revision_height: bigint; - latest_height: boolean; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponse { - /** consensus state associated with the client identifier at the given height */ - consensusState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseAmino { - /** consensus state associated with the client identifier at the given height */ - consensus_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateResponse"; - value: QueryConsensusStateResponseAmino; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseSDKType { - consensus_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStatesRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesRequest"; - value: QueryConsensusStatesRequestAmino; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponse { - /** consensus states associated with the identifier */ - consensusStates: ConsensusStateWithHeight[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseAmino { - /** consensus states associated with the identifier */ - consensus_states?: ConsensusStateWithHeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStatesResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesResponse"; - value: QueryConsensusStatesResponseAmino; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseSDKType { - consensus_states: ConsensusStateWithHeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStateHeightsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStateHeightsRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest"; - value: QueryConsensusStateHeightsRequestAmino; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponse { - /** consensus state heights */ - consensusStateHeights: Height[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStateHeightsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseAmino { - /** consensus state heights */ - consensus_state_heights?: HeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStateHeightsResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse"; - value: QueryConsensusStateHeightsResponseAmino; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseSDKType { - consensus_state_heights: HeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequest { - /** client unique identifier */ - clientId: string; -} -export interface QueryClientStatusRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; - value: Uint8Array; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestAmino { - /** client unique identifier */ - client_id?: string; -} -export interface QueryClientStatusRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatusRequest"; - value: QueryClientStatusRequestAmino; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestSDKType { - client_id: string; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponse { - status: string; -} -export interface QueryClientStatusResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; - value: Uint8Array; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseAmino { - status?: string; -} -export interface QueryClientStatusResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatusResponse"; - value: QueryClientStatusResponseAmino; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseSDKType { - status: string; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequest { -} -export interface QueryClientParamsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; - value: Uint8Array; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestAmino { -} -export interface QueryClientParamsRequestAminoMsg { - type: "cosmos-sdk/QueryClientParamsRequest"; - value: QueryClientParamsRequestAmino; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestSDKType { -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryClientParamsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; - value: Uint8Array; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryClientParamsResponseAminoMsg { - type: "cosmos-sdk/QueryClientParamsResponse"; - value: QueryClientParamsResponseAmino; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequest { -} -export interface QueryUpgradedClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestAmino { -} -export interface QueryUpgradedClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateRequest"; - value: QueryUpgradedClientStateRequestAmino; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestSDKType { -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponse { - /** client state associated with the request identifier */ - upgradedClientState?: Any; -} -export interface QueryUpgradedClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseAmino { - /** client state associated with the request identifier */ - upgraded_client_state?: AnyAmino; -} -export interface QueryUpgradedClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateResponse"; - value: QueryUpgradedClientStateResponseAmino; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseSDKType { - upgraded_client_state?: AnySDKType; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequest { -} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestAmino { -} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestSDKType { -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponse { - /** Consensus state associated with the request identifier */ - upgradedConsensusState?: Any; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Consensus state associated with the request identifier */ - upgraded_consensus_state?: AnyAmino; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state?: AnySDKType; -} -export declare const QueryClientStateRequest: { - typeUrl: string; - encode(message: QueryClientStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest; - fromJSON(object: any): QueryClientStateRequest; - toJSON(message: QueryClientStateRequest): unknown; - fromPartial(object: Partial): QueryClientStateRequest; - fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest; - toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino; - fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest; - toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg; - fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest; - toProto(message: QueryClientStateRequest): Uint8Array; - toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg; -}; -export declare const QueryClientStateResponse: { - typeUrl: string; - encode(message: QueryClientStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse; - fromJSON(object: any): QueryClientStateResponse; - toJSON(message: QueryClientStateResponse): unknown; - fromPartial(object: Partial): QueryClientStateResponse; - fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse; - toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino; - fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse; - toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg; - fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse; - toProto(message: QueryClientStateResponse): Uint8Array; - toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg; -}; -export declare const QueryClientStatesRequest: { - typeUrl: string; - encode(message: QueryClientStatesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest; - fromJSON(object: any): QueryClientStatesRequest; - toJSON(message: QueryClientStatesRequest): unknown; - fromPartial(object: Partial): QueryClientStatesRequest; - fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest; - toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino; - fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest; - toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg; - fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest; - toProto(message: QueryClientStatesRequest): Uint8Array; - toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg; -}; -export declare const QueryClientStatesResponse: { - typeUrl: string; - encode(message: QueryClientStatesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse; - fromJSON(object: any): QueryClientStatesResponse; - toJSON(message: QueryClientStatesResponse): unknown; - fromPartial(object: Partial): QueryClientStatesResponse; - fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse; - toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino; - fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse; - toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg; - fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse; - toProto(message: QueryClientStatesResponse): Uint8Array; - toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg; -}; -export declare const QueryConsensusStateRequest: { - typeUrl: string; - encode(message: QueryConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest; - fromJSON(object: any): QueryConsensusStateRequest; - toJSON(message: QueryConsensusStateRequest): unknown; - fromPartial(object: Partial): QueryConsensusStateRequest; - fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest; - toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino; - fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest; - toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest; - toProto(message: QueryConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg; -}; -export declare const QueryConsensusStateResponse: { - typeUrl: string; - encode(message: QueryConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse; - fromJSON(object: any): QueryConsensusStateResponse; - toJSON(message: QueryConsensusStateResponse): unknown; - fromPartial(object: Partial): QueryConsensusStateResponse; - fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse; - toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino; - fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse; - toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse; - toProto(message: QueryConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg; -}; -export declare const QueryConsensusStatesRequest: { - typeUrl: string; - encode(message: QueryConsensusStatesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest; - fromJSON(object: any): QueryConsensusStatesRequest; - toJSON(message: QueryConsensusStatesRequest): unknown; - fromPartial(object: Partial): QueryConsensusStatesRequest; - fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest; - toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino; - fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest; - toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest; - toProto(message: QueryConsensusStatesRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg; -}; -export declare const QueryConsensusStatesResponse: { - typeUrl: string; - encode(message: QueryConsensusStatesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse; - fromJSON(object: any): QueryConsensusStatesResponse; - toJSON(message: QueryConsensusStatesResponse): unknown; - fromPartial(object: Partial): QueryConsensusStatesResponse; - fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse; - toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino; - fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse; - toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse; - toProto(message: QueryConsensusStatesResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg; -}; -export declare const QueryConsensusStateHeightsRequest: { - typeUrl: string; - encode(message: QueryConsensusStateHeightsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; - fromJSON(object: any): QueryConsensusStateHeightsRequest; - toJSON(message: QueryConsensusStateHeightsRequest): unknown; - fromPartial(object: Partial): QueryConsensusStateHeightsRequest; - fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest; - toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino; - fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest; - toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest; - toProto(message: QueryConsensusStateHeightsRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg; -}; -export declare const QueryConsensusStateHeightsResponse: { - typeUrl: string; - encode(message: QueryConsensusStateHeightsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; - fromJSON(object: any): QueryConsensusStateHeightsResponse; - toJSON(message: QueryConsensusStateHeightsResponse): unknown; - fromPartial(object: Partial): QueryConsensusStateHeightsResponse; - fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse; - toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino; - fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse; - toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse; - toProto(message: QueryConsensusStateHeightsResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg; -}; -export declare const QueryClientStatusRequest: { - typeUrl: string; - encode(message: QueryClientStatusRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest; - fromJSON(object: any): QueryClientStatusRequest; - toJSON(message: QueryClientStatusRequest): unknown; - fromPartial(object: Partial): QueryClientStatusRequest; - fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest; - toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino; - fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest; - toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg; - fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest; - toProto(message: QueryClientStatusRequest): Uint8Array; - toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg; -}; -export declare const QueryClientStatusResponse: { - typeUrl: string; - encode(message: QueryClientStatusResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse; - fromJSON(object: any): QueryClientStatusResponse; - toJSON(message: QueryClientStatusResponse): unknown; - fromPartial(object: Partial): QueryClientStatusResponse; - fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse; - toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino; - fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse; - toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg; - fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse; - toProto(message: QueryClientStatusResponse): Uint8Array; - toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg; -}; -export declare const QueryClientParamsRequest: { - typeUrl: string; - encode(_: QueryClientParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest; - fromJSON(_: any): QueryClientParamsRequest; - toJSON(_: QueryClientParamsRequest): unknown; - fromPartial(_: Partial): QueryClientParamsRequest; - fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest; - toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino; - fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest; - toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg; - fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest; - toProto(message: QueryClientParamsRequest): Uint8Array; - toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg; -}; -export declare const QueryClientParamsResponse: { - typeUrl: string; - encode(message: QueryClientParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse; - fromJSON(object: any): QueryClientParamsResponse; - toJSON(message: QueryClientParamsResponse): unknown; - fromPartial(object: Partial): QueryClientParamsResponse; - fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse; - toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino; - fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse; - toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg; - fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse; - toProto(message: QueryClientParamsResponse): Uint8Array; - toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg; -}; -export declare const QueryUpgradedClientStateRequest: { - typeUrl: string; - encode(_: QueryUpgradedClientStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; - fromJSON(_: any): QueryUpgradedClientStateRequest; - toJSON(_: QueryUpgradedClientStateRequest): unknown; - fromPartial(_: Partial): QueryUpgradedClientStateRequest; - fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest; - toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino; - fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest; - toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest; - toProto(message: QueryUpgradedClientStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg; -}; -export declare const QueryUpgradedClientStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedClientStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; - fromJSON(object: any): QueryUpgradedClientStateResponse; - toJSON(message: QueryUpgradedClientStateResponse): unknown; - fromPartial(object: Partial): QueryUpgradedClientStateResponse; - fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse; - toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino; - fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse; - toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse; - toProto(message: QueryUpgradedClientStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg; -}; -export declare const QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(_: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; - fromJSON(_: any): QueryUpgradedConsensusStateRequest; - toJSON(_: QueryUpgradedConsensusStateRequest): unknown; - fromPartial(_: Partial): QueryUpgradedConsensusStateRequest; - fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; - toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; -}; -export declare const QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; - fromJSON(object: any): QueryUpgradedConsensusStateResponse; - toJSON(message: QueryUpgradedConsensusStateResponse): unknown; - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts b/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts deleted file mode 100644 index 995c8c32..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - clientState(params: QueryClientStateRequest): Promise; - clientStates(params?: QueryClientStatesRequest): Promise; - consensusState(params: QueryConsensusStateRequest): Promise; - consensusStates(params: QueryConsensusStatesRequest): Promise; - consensusStateHeights(params: QueryConsensusStateHeightsRequest): Promise; - clientStatus(params: QueryClientStatusRequest): Promise; - clientParams(_params?: QueryClientParamsRequest): Promise; - upgradedClientState(_params?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(_params?: QueryUpgradedConsensusStateRequest): Promise; -} diff --git a/packages/api/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts deleted file mode 100644 index 306362d3..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; -/** Query provides defines the gRPC querier service */ -export interface Query { - /** ClientState queries an IBC light client. */ - clientState(request: QueryClientStateRequest): Promise; - /** ClientStates queries all the IBC light clients of a chain. */ - clientStates(request?: QueryClientStatesRequest): Promise; - /** - * ConsensusState queries a consensus state associated with a client state at - * a given height. - */ - consensusState(request: QueryConsensusStateRequest): Promise; - /** - * ConsensusStates queries all the consensus state associated with a given - * client. - */ - consensusStates(request: QueryConsensusStatesRequest): Promise; - /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - /** Status queries the status of an IBC client. */ - clientStatus(request: QueryClientStatusRequest): Promise; - /** ClientParams queries all parameters of the ibc client. */ - clientParams(request?: QueryClientParamsRequest): Promise; - /** UpgradedClientState queries an Upgraded IBC light client. */ - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - clientState(request: QueryClientStateRequest): Promise; - clientStates(request?: QueryClientStatesRequest): Promise; - consensusState(request: QueryConsensusStateRequest): Promise; - consensusStates(request: QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: QueryClientStatusRequest): Promise; - clientParams(request?: QueryClientParamsRequest): Promise; - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - clientState(request: QueryClientStateRequest): Promise; - clientStates(request?: QueryClientStatesRequest): Promise; - consensusState(request: QueryConsensusStateRequest): Promise; - consensusStates(request: QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: QueryClientStatusRequest): Promise; - clientParams(request?: QueryClientParamsRequest): Promise; - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/tx.amino.d.ts b/packages/api/types/codegen/ibc/core/client/v1/tx.amino.d.ts deleted file mode 100644 index 179f257f..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export declare const AminoConverter: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: MsgCreateClient) => import("./tx").MsgCreateClientAmino; - fromAmino: (object: import("./tx").MsgCreateClientAmino) => MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: MsgUpdateClient) => import("./tx").MsgUpdateClientAmino; - fromAmino: (object: import("./tx").MsgUpdateClientAmino) => MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: MsgUpgradeClient) => import("./tx").MsgUpgradeClientAmino; - fromAmino: (object: import("./tx").MsgUpgradeClientAmino) => MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: MsgSubmitMisbehaviour) => import("./tx").MsgSubmitMisbehaviourAmino; - fromAmino: (object: import("./tx").MsgSubmitMisbehaviourAmino) => MsgSubmitMisbehaviour; - }; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts b/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts deleted file mode 100644 index 3e1a1ffa..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/tx.d.ts +++ /dev/null @@ -1,393 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClient { - /** light client state */ - clientState?: Any; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensusState?: Any; - /** signer address */ - signer: string; -} -export interface MsgCreateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClient"; - value: Uint8Array; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientAmino { - /** light client state */ - client_state?: AnyAmino; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensus_state?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgCreateClientAminoMsg { - type: "cosmos-sdk/MsgCreateClient"; - value: MsgCreateClientAmino; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientSDKType { - client_state?: AnySDKType; - consensus_state?: AnySDKType; - signer: string; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponse { -} -export interface MsgCreateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; - value: Uint8Array; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseAmino { -} -export interface MsgCreateClientResponseAminoMsg { - type: "cosmos-sdk/MsgCreateClientResponse"; - value: MsgCreateClientResponseAmino; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseSDKType { -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClient { - /** client unique identifier */ - clientId: string; - /** client message to update the light client */ - clientMessage?: Any; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; - value: Uint8Array; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientAmino { - /** client unique identifier */ - client_id?: string; - /** client message to update the light client */ - client_message?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgUpdateClientAminoMsg { - type: "cosmos-sdk/MsgUpdateClient"; - value: MsgUpdateClientAmino; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientSDKType { - client_id: string; - client_message?: AnySDKType; - signer: string; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponse { -} -export interface MsgUpdateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; - value: Uint8Array; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseAmino { -} -export interface MsgUpdateClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateClientResponse"; - value: MsgUpdateClientResponseAmino; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseSDKType { -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClient { - /** client unique identifier */ - clientId: string; - /** upgraded client state */ - clientState?: Any; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensusState?: Any; - /** proof that old chain committed to new client */ - proofUpgradeClient: Uint8Array; - /** proof that old chain committed to new consensus state */ - proofUpgradeConsensusState: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; - value: Uint8Array; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientAmino { - /** client unique identifier */ - client_id?: string; - /** upgraded client state */ - client_state?: AnyAmino; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensus_state?: AnyAmino; - /** proof that old chain committed to new client */ - proof_upgrade_client?: string; - /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state?: string; - /** signer address */ - signer?: string; -} -export interface MsgUpgradeClientAminoMsg { - type: "cosmos-sdk/MsgUpgradeClient"; - value: MsgUpgradeClientAmino; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientSDKType { - client_id: string; - client_state?: AnySDKType; - consensus_state?: AnySDKType; - proof_upgrade_client: Uint8Array; - proof_upgrade_consensus_state: Uint8Array; - signer: string; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponse { -} -export interface MsgUpgradeClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; - value: Uint8Array; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseAmino { -} -export interface MsgUpgradeClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpgradeClientResponse"; - value: MsgUpgradeClientResponseAmino; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseSDKType { -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviour { - /** client unique identifier */ - /** @deprecated */ - clientId: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: Any; - /** signer address */ - /** @deprecated */ - signer: string; -} -export interface MsgSubmitMisbehaviourProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourAmino { - /** client unique identifier */ - /** @deprecated */ - client_id?: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: AnyAmino; - /** signer address */ - /** @deprecated */ - signer?: string; -} -export interface MsgSubmitMisbehaviourAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviour"; - value: MsgSubmitMisbehaviourAmino; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourSDKType { - /** @deprecated */ - client_id: string; - /** @deprecated */ - misbehaviour?: AnySDKType; - /** @deprecated */ - signer: string; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponse { -} -export interface MsgSubmitMisbehaviourResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseAmino { -} -export interface MsgSubmitMisbehaviourResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; - value: MsgSubmitMisbehaviourResponseAmino; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseSDKType { -} -export declare const MsgCreateClient: { - typeUrl: string; - encode(message: MsgCreateClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient; - fromJSON(object: any): MsgCreateClient; - toJSON(message: MsgCreateClient): unknown; - fromPartial(object: Partial): MsgCreateClient; - fromAmino(object: MsgCreateClientAmino): MsgCreateClient; - toAmino(message: MsgCreateClient): MsgCreateClientAmino; - fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient; - toAminoMsg(message: MsgCreateClient): MsgCreateClientAminoMsg; - fromProtoMsg(message: MsgCreateClientProtoMsg): MsgCreateClient; - toProto(message: MsgCreateClient): Uint8Array; - toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg; -}; -export declare const MsgCreateClientResponse: { - typeUrl: string; - encode(_: MsgCreateClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse; - fromJSON(_: any): MsgCreateClientResponse; - toJSON(_: MsgCreateClientResponse): unknown; - fromPartial(_: Partial): MsgCreateClientResponse; - fromAmino(_: MsgCreateClientResponseAmino): MsgCreateClientResponse; - toAmino(_: MsgCreateClientResponse): MsgCreateClientResponseAmino; - fromAminoMsg(object: MsgCreateClientResponseAminoMsg): MsgCreateClientResponse; - toAminoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseAminoMsg; - fromProtoMsg(message: MsgCreateClientResponseProtoMsg): MsgCreateClientResponse; - toProto(message: MsgCreateClientResponse): Uint8Array; - toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg; -}; -export declare const MsgUpdateClient: { - typeUrl: string; - encode(message: MsgUpdateClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient; - fromJSON(object: any): MsgUpdateClient; - toJSON(message: MsgUpdateClient): unknown; - fromPartial(object: Partial): MsgUpdateClient; - fromAmino(object: MsgUpdateClientAmino): MsgUpdateClient; - toAmino(message: MsgUpdateClient): MsgUpdateClientAmino; - fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient; - toAminoMsg(message: MsgUpdateClient): MsgUpdateClientAminoMsg; - fromProtoMsg(message: MsgUpdateClientProtoMsg): MsgUpdateClient; - toProto(message: MsgUpdateClient): Uint8Array; - toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg; -}; -export declare const MsgUpdateClientResponse: { - typeUrl: string; - encode(_: MsgUpdateClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse; - fromJSON(_: any): MsgUpdateClientResponse; - toJSON(_: MsgUpdateClientResponse): unknown; - fromPartial(_: Partial): MsgUpdateClientResponse; - fromAmino(_: MsgUpdateClientResponseAmino): MsgUpdateClientResponse; - toAmino(_: MsgUpdateClientResponse): MsgUpdateClientResponseAmino; - fromAminoMsg(object: MsgUpdateClientResponseAminoMsg): MsgUpdateClientResponse; - toAminoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseAminoMsg; - fromProtoMsg(message: MsgUpdateClientResponseProtoMsg): MsgUpdateClientResponse; - toProto(message: MsgUpdateClientResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg; -}; -export declare const MsgUpgradeClient: { - typeUrl: string; - encode(message: MsgUpgradeClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient; - fromJSON(object: any): MsgUpgradeClient; - toJSON(message: MsgUpgradeClient): unknown; - fromPartial(object: Partial): MsgUpgradeClient; - fromAmino(object: MsgUpgradeClientAmino): MsgUpgradeClient; - toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino; - fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient; - toAminoMsg(message: MsgUpgradeClient): MsgUpgradeClientAminoMsg; - fromProtoMsg(message: MsgUpgradeClientProtoMsg): MsgUpgradeClient; - toProto(message: MsgUpgradeClient): Uint8Array; - toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg; -}; -export declare const MsgUpgradeClientResponse: { - typeUrl: string; - encode(_: MsgUpgradeClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse; - fromJSON(_: any): MsgUpgradeClientResponse; - toJSON(_: MsgUpgradeClientResponse): unknown; - fromPartial(_: Partial): MsgUpgradeClientResponse; - fromAmino(_: MsgUpgradeClientResponseAmino): MsgUpgradeClientResponse; - toAmino(_: MsgUpgradeClientResponse): MsgUpgradeClientResponseAmino; - fromAminoMsg(object: MsgUpgradeClientResponseAminoMsg): MsgUpgradeClientResponse; - toAminoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseAminoMsg; - fromProtoMsg(message: MsgUpgradeClientResponseProtoMsg): MsgUpgradeClientResponse; - toProto(message: MsgUpgradeClientResponse): Uint8Array; - toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg; -}; -export declare const MsgSubmitMisbehaviour: { - typeUrl: string; - encode(message: MsgSubmitMisbehaviour, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour; - fromJSON(object: any): MsgSubmitMisbehaviour; - toJSON(message: MsgSubmitMisbehaviour): unknown; - fromPartial(object: Partial): MsgSubmitMisbehaviour; - fromAmino(object: MsgSubmitMisbehaviourAmino): MsgSubmitMisbehaviour; - toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino; - fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour; - toAminoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAminoMsg; - fromProtoMsg(message: MsgSubmitMisbehaviourProtoMsg): MsgSubmitMisbehaviour; - toProto(message: MsgSubmitMisbehaviour): Uint8Array; - toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg; -}; -export declare const MsgSubmitMisbehaviourResponse: { - typeUrl: string; - encode(_: MsgSubmitMisbehaviourResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse; - fromJSON(_: any): MsgSubmitMisbehaviourResponse; - toJSON(_: MsgSubmitMisbehaviourResponse): unknown; - fromPartial(_: Partial): MsgSubmitMisbehaviourResponse; - fromAmino(_: MsgSubmitMisbehaviourResponseAmino): MsgSubmitMisbehaviourResponse; - toAmino(_: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAmino; - fromAminoMsg(object: MsgSubmitMisbehaviourResponseAminoMsg): MsgSubmitMisbehaviourResponse; - toAminoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAminoMsg; - fromProtoMsg(message: MsgSubmitMisbehaviourResponseProtoMsg): MsgSubmitMisbehaviourResponse; - toProto(message: MsgSubmitMisbehaviourResponse): Uint8Array; - toProtoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/tx.registry.d.ts b/packages/api/types/codegen/ibc/core/client/v1/tx.registry.d.ts deleted file mode 100644 index 8a8f85cc..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/tx.registry.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: Uint8Array; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: Uint8Array; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: Uint8Array; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: MsgCreateClient; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: MsgUpdateClient; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: MsgUpgradeClient; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: MsgSubmitMisbehaviour; - }; - }; - toJSON: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: unknown; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: unknown; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: unknown; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClient(value: any): { - typeUrl: string; - value: MsgCreateClient; - }; - updateClient(value: any): { - typeUrl: string; - value: MsgUpdateClient; - }; - upgradeClient(value: any): { - typeUrl: string; - value: MsgUpgradeClient; - }; - submitMisbehaviour(value: any): { - typeUrl: string; - value: MsgSubmitMisbehaviour; - }; - }; - fromPartial: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: MsgCreateClient; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: MsgUpdateClient; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: MsgUpgradeClient; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: MsgSubmitMisbehaviour; - }; - }; -}; diff --git a/packages/api/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts deleted file mode 100644 index d49d180d..00000000 --- a/packages/api/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; -/** Msg defines the ibc/client Msg service. */ -export interface Msg { - /** CreateClient defines a rpc handler method for MsgCreateClient. */ - createClient(request: MsgCreateClient): Promise; - /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ - updateClient(request: MsgUpdateClient): Promise; - /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ - upgradeClient(request: MsgUpgradeClient): Promise; - /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClient(request: MsgCreateClient): Promise; - updateClient(request: MsgUpdateClient): Promise; - upgradeClient(request: MsgUpgradeClient): Promise; - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; -} diff --git a/packages/api/types/codegen/ibc/lcd.d.ts b/packages/api/types/codegen/ibc/lcd.d.ts deleted file mode 100644 index 128cb5f8..00000000 --- a/packages/api/types/codegen/ibc/lcd.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - ibc: { - applications: { - transfer: { - v1: import("./applications/transfer/v1/query.lcd").LCDQueryClient; - }; - }; - core: { - client: { - v1: import("./core/client/v1/query.lcd").LCDQueryClient; - }; - }; - }; -}>; diff --git a/packages/api/types/codegen/ibc/rpc.query.d.ts b/packages/api/types/codegen/ibc/rpc.query.d.ts deleted file mode 100644 index 2553534a..00000000 --- a/packages/api/types/codegen/ibc/rpc.query.d.ts +++ /dev/null @@ -1,223 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest | undefined): Promise; - }; - }; - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest | undefined): Promise; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest | undefined): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest | undefined): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest | undefined): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest | undefined): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: import("../cosmos/base/tendermint/v1beta1/query").ABCIQueryRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise; - }; - }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest | undefined): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest | undefined): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest | undefined): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest | undefined): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest | undefined): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest | undefined): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest | undefined): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest | undefined): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise; - }; - }; - }; - ibc: { - applications: { - transfer: { - v1: { - denomTrace(request: import("./applications/transfer/v1/query").QueryDenomTraceRequest): Promise; - denomTraces(request?: import("./applications/transfer/v1/query").QueryDenomTracesRequest | undefined): Promise; - params(request?: import("./applications/transfer/v1/query").QueryParamsRequest | undefined): Promise; - denomHash(request: import("./applications/transfer/v1/query").QueryDenomHashRequest): Promise; - escrowAddress(request: import("./applications/transfer/v1/query").QueryEscrowAddressRequest): Promise; - }; - }; - }; - core: { - client: { - v1: { - clientState(request: import("./core/client/v1/query").QueryClientStateRequest): Promise; - clientStates(request?: import("./core/client/v1/query").QueryClientStatesRequest | undefined): Promise; - consensusState(request: import("./core/client/v1/query").QueryConsensusStateRequest): Promise; - consensusStates(request: import("./core/client/v1/query").QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: import("./core/client/v1/query").QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: import("./core/client/v1/query").QueryClientStatusRequest): Promise; - clientParams(request?: import("./core/client/v1/query").QueryClientParamsRequest | undefined): Promise; - upgradedClientState(request?: import("./core/client/v1/query").QueryUpgradedClientStateRequest | undefined): Promise; - upgradedConsensusState(request?: import("./core/client/v1/query").QueryUpgradedConsensusStateRequest | undefined): Promise; - }; - }; - }; - }; -}>; diff --git a/packages/api/types/codegen/ibc/rpc.tx.d.ts b/packages/api/types/codegen/ibc/rpc.tx.d.ts deleted file mode 100644 index 85efb9d2..00000000 --- a/packages/api/types/codegen/ibc/rpc.tx.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - ibc: { - applications: { - transfer: { - v1: import("./applications/transfer/v1/tx.rpc.msg").MsgClientImpl; - }; - }; - core: { - client: { - v1: import("./core/client/v1/tx.rpc.msg").MsgClientImpl; - }; - }; - }; -}>; diff --git a/packages/api/types/codegen/index.d.ts b/packages/api/types/codegen/index.d.ts deleted file mode 100644 index 0e68b49e..00000000 --- a/packages/api/types/codegen/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ -export * from "./amino/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmos/client"; -export * from "./gogoproto/bundle"; -export * from "./google/bundle"; -export * from "./ibc/bundle"; -export * from "./ibc/client"; -export * from "./regen/bundle"; -export * from "./regen/client"; -export * from "./tendermint/bundle"; -export * from "./varint"; -export * from "./utf8"; -export * from "./binary"; diff --git a/packages/api/types/codegen/regen/bundle.d.ts b/packages/api/types/codegen/regen/bundle.d.ts deleted file mode 100644 index ec0be824..00000000 --- a/packages/api/types/codegen/regen/bundle.d.ts +++ /dev/null @@ -1,6452 +0,0 @@ -import * as _113 from "./data/v1/events"; -import * as _114 from "./data/v1/query"; -import * as _115 from "./data/v1/state"; -import * as _116 from "./data/v1/tx"; -import * as _117 from "./data/v1/types"; -import * as _118 from "./ecocredit/basket/v1/events"; -import * as _119 from "./ecocredit/basket/v1/query"; -import * as _120 from "./ecocredit/basket/v1/state"; -import * as _121 from "./ecocredit/basket/v1/tx"; -import * as _122 from "./ecocredit/basket/v1/types"; -import * as _123 from "./ecocredit/marketplace/v1/events"; -import * as _124 from "./ecocredit/marketplace/v1/query"; -import * as _125 from "./ecocredit/marketplace/v1/state"; -import * as _126 from "./ecocredit/marketplace/v1/tx"; -import * as _127 from "./ecocredit/marketplace/v1/types"; -import * as _128 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _129 from "./ecocredit/v1/events"; -import * as _130 from "./ecocredit/v1/query"; -import * as _131 from "./ecocredit/v1/state"; -import * as _132 from "./ecocredit/v1/tx"; -import * as _133 from "./ecocredit/v1/types"; -import * as _134 from "./ecocredit/v1alpha1/events"; -import * as _135 from "./ecocredit/v1alpha1/genesis"; -import * as _136 from "./ecocredit/v1alpha1/query"; -import * as _137 from "./ecocredit/v1alpha1/tx"; -import * as _138 from "./ecocredit/v1alpha1/types"; -import * as _139 from "./intertx/v1/query"; -import * as _140 from "./intertx/v1/tx"; -import * as _253 from "./data/v1/query.lcd"; -import * as _254 from "./ecocredit/basket/v1/query.lcd"; -import * as _255 from "./ecocredit/marketplace/v1/query.lcd"; -import * as _256 from "./ecocredit/v1/query.lcd"; -import * as _257 from "./ecocredit/v1alpha1/query.lcd"; -import * as _258 from "./intertx/v1/query.lcd"; -import * as _259 from "./data/v1/query.rpc.Query"; -import * as _260 from "./ecocredit/basket/v1/query.rpc.Query"; -import * as _261 from "./ecocredit/marketplace/v1/query.rpc.Query"; -import * as _262 from "./ecocredit/v1/query.rpc.Query"; -import * as _263 from "./ecocredit/v1alpha1/query.rpc.Query"; -import * as _264 from "./intertx/v1/query.rpc.Query"; -import * as _265 from "./data/v1/tx.rpc.msg"; -import * as _266 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _267 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _268 from "./ecocredit/v1/tx.rpc.msg"; -import * as _269 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _270 from "./intertx/v1/tx.rpc.msg"; -export declare namespace regen { - namespace data { - const v1: { - MsgClientImpl: typeof _265.MsgClientImpl; - QueryClientImpl: typeof _259.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - anchorByIRI(request: _114.QueryAnchorByIRIRequest): Promise<_114.QueryAnchorByIRIResponse>; - anchorByHash(request: _114.QueryAnchorByHashRequest): Promise<_114.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _114.QueryAttestationsByAttestorRequest): Promise<_114.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _114.QueryAttestationsByIRIRequest): Promise<_114.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _114.QueryAttestationsByHashRequest): Promise<_114.QueryAttestationsByHashResponse>; - resolver(request: _114.QueryResolverRequest): Promise<_114.QueryResolverResponse>; - resolversByIRI(request: _114.QueryResolversByIRIRequest): Promise<_114.QueryResolversByIRIResponse>; - resolversByHash(request: _114.QueryResolversByHashRequest): Promise<_114.QueryResolversByHashResponse>; - resolversByURL(request: _114.QueryResolversByURLRequest): Promise<_114.QueryResolversByURLResponse>; - convertIRIToHash(request: _114.ConvertIRIToHashRequest): Promise<_114.ConvertIRIToHashResponse>; - convertHashToIRI(request: _114.ConvertHashToIRIRequest): Promise<_114.ConvertHashToIRIResponse>; - }; - LCDQueryClient: typeof _253.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - anchor(value: _116.MsgAnchor): { - typeUrl: string; - value: Uint8Array; - }; - attest(value: _116.MsgAttest): { - typeUrl: string; - value: Uint8Array; - }; - defineResolver(value: _116.MsgDefineResolver): { - typeUrl: string; - value: Uint8Array; - }; - registerResolver(value: _116.MsgRegisterResolver): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - anchor(value: _116.MsgAnchor): { - typeUrl: string; - value: _116.MsgAnchor; - }; - attest(value: _116.MsgAttest): { - typeUrl: string; - value: _116.MsgAttest; - }; - defineResolver(value: _116.MsgDefineResolver): { - typeUrl: string; - value: _116.MsgDefineResolver; - }; - registerResolver(value: _116.MsgRegisterResolver): { - typeUrl: string; - value: _116.MsgRegisterResolver; - }; - }; - toJSON: { - anchor(value: _116.MsgAnchor): { - typeUrl: string; - value: unknown; - }; - attest(value: _116.MsgAttest): { - typeUrl: string; - value: unknown; - }; - defineResolver(value: _116.MsgDefineResolver): { - typeUrl: string; - value: unknown; - }; - registerResolver(value: _116.MsgRegisterResolver): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - anchor(value: any): { - typeUrl: string; - value: _116.MsgAnchor; - }; - attest(value: any): { - typeUrl: string; - value: _116.MsgAttest; - }; - defineResolver(value: any): { - typeUrl: string; - value: _116.MsgDefineResolver; - }; - registerResolver(value: any): { - typeUrl: string; - value: _116.MsgRegisterResolver; - }; - }; - fromPartial: { - anchor(value: _116.MsgAnchor): { - typeUrl: string; - value: _116.MsgAnchor; - }; - attest(value: _116.MsgAttest): { - typeUrl: string; - value: _116.MsgAttest; - }; - defineResolver(value: _116.MsgDefineResolver): { - typeUrl: string; - value: _116.MsgDefineResolver; - }; - registerResolver(value: _116.MsgRegisterResolver): { - typeUrl: string; - value: _116.MsgRegisterResolver; - }; - }; - }; - AminoConverter: { - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: _116.MsgAnchor) => _116.MsgAnchorAmino; - fromAmino: (object: _116.MsgAnchorAmino) => _116.MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: _116.MsgAttest) => _116.MsgAttestAmino; - fromAmino: (object: _116.MsgAttestAmino) => _116.MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: _116.MsgDefineResolver) => _116.MsgDefineResolverAmino; - fromAmino: (object: _116.MsgDefineResolverAmino) => _116.MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: _116.MsgRegisterResolver) => _116.MsgRegisterResolverAmino; - fromAmino: (object: _116.MsgRegisterResolverAmino) => _116.MsgRegisterResolver; - }; - }; - digestAlgorithmFromJSON(object: any): _117.DigestAlgorithm; - digestAlgorithmToJSON(object: _117.DigestAlgorithm): string; - rawMediaTypeFromJSON(object: any): _117.RawMediaType; - rawMediaTypeToJSON(object: _117.RawMediaType): string; - graphCanonicalizationAlgorithmFromJSON(object: any): _117.GraphCanonicalizationAlgorithm; - graphCanonicalizationAlgorithmToJSON(object: _117.GraphCanonicalizationAlgorithm): string; - graphMerkleTreeFromJSON(object: any): _117.GraphMerkleTree; - graphMerkleTreeToJSON(object: _117.GraphMerkleTree): string; - DigestAlgorithm: typeof _117.DigestAlgorithm; - DigestAlgorithmSDKType: typeof _117.DigestAlgorithm; - DigestAlgorithmAmino: typeof _117.DigestAlgorithm; - RawMediaType: typeof _117.RawMediaType; - RawMediaTypeSDKType: typeof _117.RawMediaType; - RawMediaTypeAmino: typeof _117.RawMediaType; - GraphCanonicalizationAlgorithm: typeof _117.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmSDKType: typeof _117.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmAmino: typeof _117.GraphCanonicalizationAlgorithm; - GraphMerkleTree: typeof _117.GraphMerkleTree; - GraphMerkleTreeSDKType: typeof _117.GraphMerkleTree; - GraphMerkleTreeAmino: typeof _117.GraphMerkleTree; - ContentHash: { - typeUrl: string; - encode(message: _117.ContentHash, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash; - fromJSON(object: any): _117.ContentHash; - toJSON(message: _117.ContentHash): unknown; - fromPartial(object: Partial<_117.ContentHash>): _117.ContentHash; - fromAmino(object: _117.ContentHashAmino): _117.ContentHash; - toAmino(message: _117.ContentHash): _117.ContentHashAmino; - fromAminoMsg(object: _117.ContentHashAminoMsg): _117.ContentHash; - fromProtoMsg(message: _117.ContentHashProtoMsg): _117.ContentHash; - toProto(message: _117.ContentHash): Uint8Array; - toProtoMsg(message: _117.ContentHash): _117.ContentHashProtoMsg; - }; - ContentHash_Raw: { - typeUrl: string; - encode(message: _117.ContentHash_Raw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash_Raw; - fromJSON(object: any): _117.ContentHash_Raw; - toJSON(message: _117.ContentHash_Raw): unknown; - fromPartial(object: Partial<_117.ContentHash_Raw>): _117.ContentHash_Raw; - fromAmino(object: _117.ContentHash_RawAmino): _117.ContentHash_Raw; - toAmino(message: _117.ContentHash_Raw): _117.ContentHash_RawAmino; - fromAminoMsg(object: _117.ContentHash_RawAminoMsg): _117.ContentHash_Raw; - fromProtoMsg(message: _117.ContentHash_RawProtoMsg): _117.ContentHash_Raw; - toProto(message: _117.ContentHash_Raw): Uint8Array; - toProtoMsg(message: _117.ContentHash_Raw): _117.ContentHash_RawProtoMsg; - }; - ContentHash_Graph: { - typeUrl: string; - encode(message: _117.ContentHash_Graph, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHash_Graph; - fromJSON(object: any): _117.ContentHash_Graph; - toJSON(message: _117.ContentHash_Graph): unknown; - fromPartial(object: Partial<_117.ContentHash_Graph>): _117.ContentHash_Graph; - fromAmino(object: _117.ContentHash_GraphAmino): _117.ContentHash_Graph; - toAmino(message: _117.ContentHash_Graph): _117.ContentHash_GraphAmino; - fromAminoMsg(object: _117.ContentHash_GraphAminoMsg): _117.ContentHash_Graph; - fromProtoMsg(message: _117.ContentHash_GraphProtoMsg): _117.ContentHash_Graph; - toProto(message: _117.ContentHash_Graph): Uint8Array; - toProtoMsg(message: _117.ContentHash_Graph): _117.ContentHash_GraphProtoMsg; - }; - ContentHashes: { - typeUrl: string; - encode(message: _117.ContentHashes, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _117.ContentHashes; - fromJSON(object: any): _117.ContentHashes; - toJSON(message: _117.ContentHashes): unknown; - fromPartial(object: Partial<_117.ContentHashes>): _117.ContentHashes; - fromAmino(object: _117.ContentHashesAmino): _117.ContentHashes; - toAmino(message: _117.ContentHashes): _117.ContentHashesAmino; - fromAminoMsg(object: _117.ContentHashesAminoMsg): _117.ContentHashes; - fromProtoMsg(message: _117.ContentHashesProtoMsg): _117.ContentHashes; - toProto(message: _117.ContentHashes): Uint8Array; - toProtoMsg(message: _117.ContentHashes): _117.ContentHashesProtoMsg; - }; - MsgAnchor: { - typeUrl: string; - encode(message: _116.MsgAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAnchor; - fromJSON(object: any): _116.MsgAnchor; - toJSON(message: _116.MsgAnchor): unknown; - fromPartial(object: Partial<_116.MsgAnchor>): _116.MsgAnchor; - fromAmino(object: _116.MsgAnchorAmino): _116.MsgAnchor; - toAmino(message: _116.MsgAnchor): _116.MsgAnchorAmino; - fromAminoMsg(object: _116.MsgAnchorAminoMsg): _116.MsgAnchor; - toAminoMsg(message: _116.MsgAnchor): _116.MsgAnchorAminoMsg; - fromProtoMsg(message: _116.MsgAnchorProtoMsg): _116.MsgAnchor; - toProto(message: _116.MsgAnchor): Uint8Array; - toProtoMsg(message: _116.MsgAnchor): _116.MsgAnchorProtoMsg; - }; - MsgAnchorResponse: { - typeUrl: string; - encode(message: _116.MsgAnchorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAnchorResponse; - fromJSON(object: any): _116.MsgAnchorResponse; - toJSON(message: _116.MsgAnchorResponse): unknown; - fromPartial(object: Partial<_116.MsgAnchorResponse>): _116.MsgAnchorResponse; - fromAmino(object: _116.MsgAnchorResponseAmino): _116.MsgAnchorResponse; - toAmino(message: _116.MsgAnchorResponse): _116.MsgAnchorResponseAmino; - fromAminoMsg(object: _116.MsgAnchorResponseAminoMsg): _116.MsgAnchorResponse; - fromProtoMsg(message: _116.MsgAnchorResponseProtoMsg): _116.MsgAnchorResponse; - toProto(message: _116.MsgAnchorResponse): Uint8Array; - toProtoMsg(message: _116.MsgAnchorResponse): _116.MsgAnchorResponseProtoMsg; - }; - MsgAttest: { - typeUrl: string; - encode(message: _116.MsgAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAttest; - fromJSON(object: any): _116.MsgAttest; - toJSON(message: _116.MsgAttest): unknown; - fromPartial(object: Partial<_116.MsgAttest>): _116.MsgAttest; - fromAmino(object: _116.MsgAttestAmino): _116.MsgAttest; - toAmino(message: _116.MsgAttest): _116.MsgAttestAmino; - fromAminoMsg(object: _116.MsgAttestAminoMsg): _116.MsgAttest; - toAminoMsg(message: _116.MsgAttest): _116.MsgAttestAminoMsg; - fromProtoMsg(message: _116.MsgAttestProtoMsg): _116.MsgAttest; - toProto(message: _116.MsgAttest): Uint8Array; - toProtoMsg(message: _116.MsgAttest): _116.MsgAttestProtoMsg; - }; - MsgAttestResponse: { - typeUrl: string; - encode(message: _116.MsgAttestResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgAttestResponse; - fromJSON(object: any): _116.MsgAttestResponse; - toJSON(message: _116.MsgAttestResponse): unknown; - fromPartial(object: Partial<_116.MsgAttestResponse>): _116.MsgAttestResponse; - fromAmino(object: _116.MsgAttestResponseAmino): _116.MsgAttestResponse; - toAmino(message: _116.MsgAttestResponse): _116.MsgAttestResponseAmino; - fromAminoMsg(object: _116.MsgAttestResponseAminoMsg): _116.MsgAttestResponse; - fromProtoMsg(message: _116.MsgAttestResponseProtoMsg): _116.MsgAttestResponse; - toProto(message: _116.MsgAttestResponse): Uint8Array; - toProtoMsg(message: _116.MsgAttestResponse): _116.MsgAttestResponseProtoMsg; - }; - MsgDefineResolver: { - typeUrl: string; - encode(message: _116.MsgDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgDefineResolver; - fromJSON(object: any): _116.MsgDefineResolver; - toJSON(message: _116.MsgDefineResolver): unknown; - fromPartial(object: Partial<_116.MsgDefineResolver>): _116.MsgDefineResolver; - fromAmino(object: _116.MsgDefineResolverAmino): _116.MsgDefineResolver; - toAmino(message: _116.MsgDefineResolver): _116.MsgDefineResolverAmino; - fromAminoMsg(object: _116.MsgDefineResolverAminoMsg): _116.MsgDefineResolver; - toAminoMsg(message: _116.MsgDefineResolver): _116.MsgDefineResolverAminoMsg; - fromProtoMsg(message: _116.MsgDefineResolverProtoMsg): _116.MsgDefineResolver; - toProto(message: _116.MsgDefineResolver): Uint8Array; - toProtoMsg(message: _116.MsgDefineResolver): _116.MsgDefineResolverProtoMsg; - }; - MsgDefineResolverResponse: { - typeUrl: string; - encode(message: _116.MsgDefineResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgDefineResolverResponse; - fromJSON(object: any): _116.MsgDefineResolverResponse; - toJSON(message: _116.MsgDefineResolverResponse): unknown; - fromPartial(object: Partial<_116.MsgDefineResolverResponse>): _116.MsgDefineResolverResponse; - fromAmino(object: _116.MsgDefineResolverResponseAmino): _116.MsgDefineResolverResponse; - toAmino(message: _116.MsgDefineResolverResponse): _116.MsgDefineResolverResponseAmino; - fromAminoMsg(object: _116.MsgDefineResolverResponseAminoMsg): _116.MsgDefineResolverResponse; - fromProtoMsg(message: _116.MsgDefineResolverResponseProtoMsg): _116.MsgDefineResolverResponse; - toProto(message: _116.MsgDefineResolverResponse): Uint8Array; - toProtoMsg(message: _116.MsgDefineResolverResponse): _116.MsgDefineResolverResponseProtoMsg; - }; - MsgRegisterResolver: { - typeUrl: string; - encode(message: _116.MsgRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgRegisterResolver; - fromJSON(object: any): _116.MsgRegisterResolver; - toJSON(message: _116.MsgRegisterResolver): unknown; - fromPartial(object: Partial<_116.MsgRegisterResolver>): _116.MsgRegisterResolver; - fromAmino(object: _116.MsgRegisterResolverAmino): _116.MsgRegisterResolver; - toAmino(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverAmino; - fromAminoMsg(object: _116.MsgRegisterResolverAminoMsg): _116.MsgRegisterResolver; - toAminoMsg(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverAminoMsg; - fromProtoMsg(message: _116.MsgRegisterResolverProtoMsg): _116.MsgRegisterResolver; - toProto(message: _116.MsgRegisterResolver): Uint8Array; - toProtoMsg(message: _116.MsgRegisterResolver): _116.MsgRegisterResolverProtoMsg; - }; - MsgRegisterResolverResponse: { - typeUrl: string; - encode(_: _116.MsgRegisterResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _116.MsgRegisterResolverResponse; - fromJSON(_: any): _116.MsgRegisterResolverResponse; - toJSON(_: _116.MsgRegisterResolverResponse): unknown; - fromPartial(_: Partial<_116.MsgRegisterResolverResponse>): _116.MsgRegisterResolverResponse; - fromAmino(_: _116.MsgRegisterResolverResponseAmino): _116.MsgRegisterResolverResponse; - toAmino(_: _116.MsgRegisterResolverResponse): _116.MsgRegisterResolverResponseAmino; - fromAminoMsg(object: _116.MsgRegisterResolverResponseAminoMsg): _116.MsgRegisterResolverResponse; - fromProtoMsg(message: _116.MsgRegisterResolverResponseProtoMsg): _116.MsgRegisterResolverResponse; - toProto(message: _116.MsgRegisterResolverResponse): Uint8Array; - toProtoMsg(message: _116.MsgRegisterResolverResponse): _116.MsgRegisterResolverResponseProtoMsg; - }; - DataID: { - typeUrl: string; - encode(message: _115.DataID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataID; - fromJSON(object: any): _115.DataID; - toJSON(message: _115.DataID): unknown; - fromPartial(object: Partial<_115.DataID>): _115.DataID; - fromAmino(object: _115.DataIDAmino): _115.DataID; - toAmino(message: _115.DataID): _115.DataIDAmino; - fromAminoMsg(object: _115.DataIDAminoMsg): _115.DataID; - fromProtoMsg(message: _115.DataIDProtoMsg): _115.DataID; - toProto(message: _115.DataID): Uint8Array; - toProtoMsg(message: _115.DataID): _115.DataIDProtoMsg; - }; - DataAnchor: { - typeUrl: string; - encode(message: _115.DataAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataAnchor; - fromJSON(object: any): _115.DataAnchor; - toJSON(message: _115.DataAnchor): unknown; - fromPartial(object: Partial<_115.DataAnchor>): _115.DataAnchor; - fromAmino(object: _115.DataAnchorAmino): _115.DataAnchor; - toAmino(message: _115.DataAnchor): _115.DataAnchorAmino; - fromAminoMsg(object: _115.DataAnchorAminoMsg): _115.DataAnchor; - fromProtoMsg(message: _115.DataAnchorProtoMsg): _115.DataAnchor; - toProto(message: _115.DataAnchor): Uint8Array; - toProtoMsg(message: _115.DataAnchor): _115.DataAnchorProtoMsg; - }; - DataAttestor: { - typeUrl: string; - encode(message: _115.DataAttestor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataAttestor; - fromJSON(object: any): _115.DataAttestor; - toJSON(message: _115.DataAttestor): unknown; - fromPartial(object: Partial<_115.DataAttestor>): _115.DataAttestor; - fromAmino(object: _115.DataAttestorAmino): _115.DataAttestor; - toAmino(message: _115.DataAttestor): _115.DataAttestorAmino; - fromAminoMsg(object: _115.DataAttestorAminoMsg): _115.DataAttestor; - fromProtoMsg(message: _115.DataAttestorProtoMsg): _115.DataAttestor; - toProto(message: _115.DataAttestor): Uint8Array; - toProtoMsg(message: _115.DataAttestor): _115.DataAttestorProtoMsg; - }; - Resolver: { - typeUrl: string; - encode(message: _115.Resolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.Resolver; - fromJSON(object: any): _115.Resolver; - toJSON(message: _115.Resolver): unknown; - fromPartial(object: Partial<_115.Resolver>): _115.Resolver; - fromAmino(object: _115.ResolverAmino): _115.Resolver; - toAmino(message: _115.Resolver): _115.ResolverAmino; - fromAminoMsg(object: _115.ResolverAminoMsg): _115.Resolver; - fromProtoMsg(message: _115.ResolverProtoMsg): _115.Resolver; - toProto(message: _115.Resolver): Uint8Array; - toProtoMsg(message: _115.Resolver): _115.ResolverProtoMsg; - }; - DataResolver: { - typeUrl: string; - encode(message: _115.DataResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _115.DataResolver; - fromJSON(object: any): _115.DataResolver; - toJSON(message: _115.DataResolver): unknown; - fromPartial(object: Partial<_115.DataResolver>): _115.DataResolver; - fromAmino(object: _115.DataResolverAmino): _115.DataResolver; - toAmino(message: _115.DataResolver): _115.DataResolverAmino; - fromAminoMsg(object: _115.DataResolverAminoMsg): _115.DataResolver; - fromProtoMsg(message: _115.DataResolverProtoMsg): _115.DataResolver; - toProto(message: _115.DataResolver): Uint8Array; - toProtoMsg(message: _115.DataResolver): _115.DataResolverProtoMsg; - }; - QueryAnchorByIRIRequest: { - typeUrl: string; - encode(message: _114.QueryAnchorByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByIRIRequest; - fromJSON(object: any): _114.QueryAnchorByIRIRequest; - toJSON(message: _114.QueryAnchorByIRIRequest): unknown; - fromPartial(object: Partial<_114.QueryAnchorByIRIRequest>): _114.QueryAnchorByIRIRequest; - fromAmino(object: _114.QueryAnchorByIRIRequestAmino): _114.QueryAnchorByIRIRequest; - toAmino(message: _114.QueryAnchorByIRIRequest): _114.QueryAnchorByIRIRequestAmino; - fromAminoMsg(object: _114.QueryAnchorByIRIRequestAminoMsg): _114.QueryAnchorByIRIRequest; - fromProtoMsg(message: _114.QueryAnchorByIRIRequestProtoMsg): _114.QueryAnchorByIRIRequest; - toProto(message: _114.QueryAnchorByIRIRequest): Uint8Array; - toProtoMsg(message: _114.QueryAnchorByIRIRequest): _114.QueryAnchorByIRIRequestProtoMsg; - }; - QueryAnchorByIRIResponse: { - typeUrl: string; - encode(message: _114.QueryAnchorByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByIRIResponse; - fromJSON(object: any): _114.QueryAnchorByIRIResponse; - toJSON(message: _114.QueryAnchorByIRIResponse): unknown; - fromPartial(object: Partial<_114.QueryAnchorByIRIResponse>): _114.QueryAnchorByIRIResponse; - fromAmino(object: _114.QueryAnchorByIRIResponseAmino): _114.QueryAnchorByIRIResponse; - toAmino(message: _114.QueryAnchorByIRIResponse): _114.QueryAnchorByIRIResponseAmino; - fromAminoMsg(object: _114.QueryAnchorByIRIResponseAminoMsg): _114.QueryAnchorByIRIResponse; - fromProtoMsg(message: _114.QueryAnchorByIRIResponseProtoMsg): _114.QueryAnchorByIRIResponse; - toProto(message: _114.QueryAnchorByIRIResponse): Uint8Array; - toProtoMsg(message: _114.QueryAnchorByIRIResponse): _114.QueryAnchorByIRIResponseProtoMsg; - }; - QueryAnchorByHashRequest: { - typeUrl: string; - encode(message: _114.QueryAnchorByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByHashRequest; - fromJSON(object: any): _114.QueryAnchorByHashRequest; - toJSON(message: _114.QueryAnchorByHashRequest): unknown; - fromPartial(object: Partial<_114.QueryAnchorByHashRequest>): _114.QueryAnchorByHashRequest; - fromAmino(object: _114.QueryAnchorByHashRequestAmino): _114.QueryAnchorByHashRequest; - toAmino(message: _114.QueryAnchorByHashRequest): _114.QueryAnchorByHashRequestAmino; - fromAminoMsg(object: _114.QueryAnchorByHashRequestAminoMsg): _114.QueryAnchorByHashRequest; - fromProtoMsg(message: _114.QueryAnchorByHashRequestProtoMsg): _114.QueryAnchorByHashRequest; - toProto(message: _114.QueryAnchorByHashRequest): Uint8Array; - toProtoMsg(message: _114.QueryAnchorByHashRequest): _114.QueryAnchorByHashRequestProtoMsg; - }; - QueryAnchorByHashResponse: { - typeUrl: string; - encode(message: _114.QueryAnchorByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAnchorByHashResponse; - fromJSON(object: any): _114.QueryAnchorByHashResponse; - toJSON(message: _114.QueryAnchorByHashResponse): unknown; - fromPartial(object: Partial<_114.QueryAnchorByHashResponse>): _114.QueryAnchorByHashResponse; - fromAmino(object: _114.QueryAnchorByHashResponseAmino): _114.QueryAnchorByHashResponse; - toAmino(message: _114.QueryAnchorByHashResponse): _114.QueryAnchorByHashResponseAmino; - fromAminoMsg(object: _114.QueryAnchorByHashResponseAminoMsg): _114.QueryAnchorByHashResponse; - fromProtoMsg(message: _114.QueryAnchorByHashResponseProtoMsg): _114.QueryAnchorByHashResponse; - toProto(message: _114.QueryAnchorByHashResponse): Uint8Array; - toProtoMsg(message: _114.QueryAnchorByHashResponse): _114.QueryAnchorByHashResponseProtoMsg; - }; - QueryAttestationsByAttestorRequest: { - typeUrl: string; - encode(message: _114.QueryAttestationsByAttestorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByAttestorRequest; - fromJSON(object: any): _114.QueryAttestationsByAttestorRequest; - toJSON(message: _114.QueryAttestationsByAttestorRequest): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByAttestorRequest>): _114.QueryAttestationsByAttestorRequest; - fromAmino(object: _114.QueryAttestationsByAttestorRequestAmino): _114.QueryAttestationsByAttestorRequest; - toAmino(message: _114.QueryAttestationsByAttestorRequest): _114.QueryAttestationsByAttestorRequestAmino; - fromAminoMsg(object: _114.QueryAttestationsByAttestorRequestAminoMsg): _114.QueryAttestationsByAttestorRequest; - fromProtoMsg(message: _114.QueryAttestationsByAttestorRequestProtoMsg): _114.QueryAttestationsByAttestorRequest; - toProto(message: _114.QueryAttestationsByAttestorRequest): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByAttestorRequest): _114.QueryAttestationsByAttestorRequestProtoMsg; - }; - QueryAttestationsByAttestorResponse: { - typeUrl: string; - encode(message: _114.QueryAttestationsByAttestorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByAttestorResponse; - fromJSON(object: any): _114.QueryAttestationsByAttestorResponse; - toJSON(message: _114.QueryAttestationsByAttestorResponse): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByAttestorResponse>): _114.QueryAttestationsByAttestorResponse; - fromAmino(object: _114.QueryAttestationsByAttestorResponseAmino): _114.QueryAttestationsByAttestorResponse; - toAmino(message: _114.QueryAttestationsByAttestorResponse): _114.QueryAttestationsByAttestorResponseAmino; - fromAminoMsg(object: _114.QueryAttestationsByAttestorResponseAminoMsg): _114.QueryAttestationsByAttestorResponse; - fromProtoMsg(message: _114.QueryAttestationsByAttestorResponseProtoMsg): _114.QueryAttestationsByAttestorResponse; - toProto(message: _114.QueryAttestationsByAttestorResponse): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByAttestorResponse): _114.QueryAttestationsByAttestorResponseProtoMsg; - }; - QueryAttestationsByIRIRequest: { - typeUrl: string; - encode(message: _114.QueryAttestationsByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByIRIRequest; - fromJSON(object: any): _114.QueryAttestationsByIRIRequest; - toJSON(message: _114.QueryAttestationsByIRIRequest): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByIRIRequest>): _114.QueryAttestationsByIRIRequest; - fromAmino(object: _114.QueryAttestationsByIRIRequestAmino): _114.QueryAttestationsByIRIRequest; - toAmino(message: _114.QueryAttestationsByIRIRequest): _114.QueryAttestationsByIRIRequestAmino; - fromAminoMsg(object: _114.QueryAttestationsByIRIRequestAminoMsg): _114.QueryAttestationsByIRIRequest; - fromProtoMsg(message: _114.QueryAttestationsByIRIRequestProtoMsg): _114.QueryAttestationsByIRIRequest; - toProto(message: _114.QueryAttestationsByIRIRequest): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByIRIRequest): _114.QueryAttestationsByIRIRequestProtoMsg; - }; - QueryAttestationsByIRIResponse: { - typeUrl: string; - encode(message: _114.QueryAttestationsByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByIRIResponse; - fromJSON(object: any): _114.QueryAttestationsByIRIResponse; - toJSON(message: _114.QueryAttestationsByIRIResponse): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByIRIResponse>): _114.QueryAttestationsByIRIResponse; - fromAmino(object: _114.QueryAttestationsByIRIResponseAmino): _114.QueryAttestationsByIRIResponse; - toAmino(message: _114.QueryAttestationsByIRIResponse): _114.QueryAttestationsByIRIResponseAmino; - fromAminoMsg(object: _114.QueryAttestationsByIRIResponseAminoMsg): _114.QueryAttestationsByIRIResponse; - fromProtoMsg(message: _114.QueryAttestationsByIRIResponseProtoMsg): _114.QueryAttestationsByIRIResponse; - toProto(message: _114.QueryAttestationsByIRIResponse): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByIRIResponse): _114.QueryAttestationsByIRIResponseProtoMsg; - }; - QueryAttestationsByHashRequest: { - typeUrl: string; - encode(message: _114.QueryAttestationsByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByHashRequest; - fromJSON(object: any): _114.QueryAttestationsByHashRequest; - toJSON(message: _114.QueryAttestationsByHashRequest): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByHashRequest>): _114.QueryAttestationsByHashRequest; - fromAmino(object: _114.QueryAttestationsByHashRequestAmino): _114.QueryAttestationsByHashRequest; - toAmino(message: _114.QueryAttestationsByHashRequest): _114.QueryAttestationsByHashRequestAmino; - fromAminoMsg(object: _114.QueryAttestationsByHashRequestAminoMsg): _114.QueryAttestationsByHashRequest; - fromProtoMsg(message: _114.QueryAttestationsByHashRequestProtoMsg): _114.QueryAttestationsByHashRequest; - toProto(message: _114.QueryAttestationsByHashRequest): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByHashRequest): _114.QueryAttestationsByHashRequestProtoMsg; - }; - QueryAttestationsByHashResponse: { - typeUrl: string; - encode(message: _114.QueryAttestationsByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryAttestationsByHashResponse; - fromJSON(object: any): _114.QueryAttestationsByHashResponse; - toJSON(message: _114.QueryAttestationsByHashResponse): unknown; - fromPartial(object: Partial<_114.QueryAttestationsByHashResponse>): _114.QueryAttestationsByHashResponse; - fromAmino(object: _114.QueryAttestationsByHashResponseAmino): _114.QueryAttestationsByHashResponse; - toAmino(message: _114.QueryAttestationsByHashResponse): _114.QueryAttestationsByHashResponseAmino; - fromAminoMsg(object: _114.QueryAttestationsByHashResponseAminoMsg): _114.QueryAttestationsByHashResponse; - fromProtoMsg(message: _114.QueryAttestationsByHashResponseProtoMsg): _114.QueryAttestationsByHashResponse; - toProto(message: _114.QueryAttestationsByHashResponse): Uint8Array; - toProtoMsg(message: _114.QueryAttestationsByHashResponse): _114.QueryAttestationsByHashResponseProtoMsg; - }; - QueryResolverRequest: { - typeUrl: string; - encode(message: _114.QueryResolverRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolverRequest; - fromJSON(object: any): _114.QueryResolverRequest; - toJSON(message: _114.QueryResolverRequest): unknown; - fromPartial(object: Partial<_114.QueryResolverRequest>): _114.QueryResolverRequest; - fromAmino(object: _114.QueryResolverRequestAmino): _114.QueryResolverRequest; - toAmino(message: _114.QueryResolverRequest): _114.QueryResolverRequestAmino; - fromAminoMsg(object: _114.QueryResolverRequestAminoMsg): _114.QueryResolverRequest; - fromProtoMsg(message: _114.QueryResolverRequestProtoMsg): _114.QueryResolverRequest; - toProto(message: _114.QueryResolverRequest): Uint8Array; - toProtoMsg(message: _114.QueryResolverRequest): _114.QueryResolverRequestProtoMsg; - }; - QueryResolverResponse: { - typeUrl: string; - encode(message: _114.QueryResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolverResponse; - fromJSON(object: any): _114.QueryResolverResponse; - toJSON(message: _114.QueryResolverResponse): unknown; - fromPartial(object: Partial<_114.QueryResolverResponse>): _114.QueryResolverResponse; - fromAmino(object: _114.QueryResolverResponseAmino): _114.QueryResolverResponse; - toAmino(message: _114.QueryResolverResponse): _114.QueryResolverResponseAmino; - fromAminoMsg(object: _114.QueryResolverResponseAminoMsg): _114.QueryResolverResponse; - fromProtoMsg(message: _114.QueryResolverResponseProtoMsg): _114.QueryResolverResponse; - toProto(message: _114.QueryResolverResponse): Uint8Array; - toProtoMsg(message: _114.QueryResolverResponse): _114.QueryResolverResponseProtoMsg; - }; - QueryResolversByIRIRequest: { - typeUrl: string; - encode(message: _114.QueryResolversByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByIRIRequest; - fromJSON(object: any): _114.QueryResolversByIRIRequest; - toJSON(message: _114.QueryResolversByIRIRequest): unknown; - fromPartial(object: Partial<_114.QueryResolversByIRIRequest>): _114.QueryResolversByIRIRequest; - fromAmino(object: _114.QueryResolversByIRIRequestAmino): _114.QueryResolversByIRIRequest; - toAmino(message: _114.QueryResolversByIRIRequest): _114.QueryResolversByIRIRequestAmino; - fromAminoMsg(object: _114.QueryResolversByIRIRequestAminoMsg): _114.QueryResolversByIRIRequest; - fromProtoMsg(message: _114.QueryResolversByIRIRequestProtoMsg): _114.QueryResolversByIRIRequest; - toProto(message: _114.QueryResolversByIRIRequest): Uint8Array; - toProtoMsg(message: _114.QueryResolversByIRIRequest): _114.QueryResolversByIRIRequestProtoMsg; - }; - QueryResolversByIRIResponse: { - typeUrl: string; - encode(message: _114.QueryResolversByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByIRIResponse; - fromJSON(object: any): _114.QueryResolversByIRIResponse; - toJSON(message: _114.QueryResolversByIRIResponse): unknown; - fromPartial(object: Partial<_114.QueryResolversByIRIResponse>): _114.QueryResolversByIRIResponse; - fromAmino(object: _114.QueryResolversByIRIResponseAmino): _114.QueryResolversByIRIResponse; - toAmino(message: _114.QueryResolversByIRIResponse): _114.QueryResolversByIRIResponseAmino; - fromAminoMsg(object: _114.QueryResolversByIRIResponseAminoMsg): _114.QueryResolversByIRIResponse; - fromProtoMsg(message: _114.QueryResolversByIRIResponseProtoMsg): _114.QueryResolversByIRIResponse; - toProto(message: _114.QueryResolversByIRIResponse): Uint8Array; - toProtoMsg(message: _114.QueryResolversByIRIResponse): _114.QueryResolversByIRIResponseProtoMsg; - }; - QueryResolversByHashRequest: { - typeUrl: string; - encode(message: _114.QueryResolversByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByHashRequest; - fromJSON(object: any): _114.QueryResolversByHashRequest; - toJSON(message: _114.QueryResolversByHashRequest): unknown; - fromPartial(object: Partial<_114.QueryResolversByHashRequest>): _114.QueryResolversByHashRequest; - fromAmino(object: _114.QueryResolversByHashRequestAmino): _114.QueryResolversByHashRequest; - toAmino(message: _114.QueryResolversByHashRequest): _114.QueryResolversByHashRequestAmino; - fromAminoMsg(object: _114.QueryResolversByHashRequestAminoMsg): _114.QueryResolversByHashRequest; - fromProtoMsg(message: _114.QueryResolversByHashRequestProtoMsg): _114.QueryResolversByHashRequest; - toProto(message: _114.QueryResolversByHashRequest): Uint8Array; - toProtoMsg(message: _114.QueryResolversByHashRequest): _114.QueryResolversByHashRequestProtoMsg; - }; - QueryResolversByHashResponse: { - typeUrl: string; - encode(message: _114.QueryResolversByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByHashResponse; - fromJSON(object: any): _114.QueryResolversByHashResponse; - toJSON(message: _114.QueryResolversByHashResponse): unknown; - fromPartial(object: Partial<_114.QueryResolversByHashResponse>): _114.QueryResolversByHashResponse; - fromAmino(object: _114.QueryResolversByHashResponseAmino): _114.QueryResolversByHashResponse; - toAmino(message: _114.QueryResolversByHashResponse): _114.QueryResolversByHashResponseAmino; - fromAminoMsg(object: _114.QueryResolversByHashResponseAminoMsg): _114.QueryResolversByHashResponse; - fromProtoMsg(message: _114.QueryResolversByHashResponseProtoMsg): _114.QueryResolversByHashResponse; - toProto(message: _114.QueryResolversByHashResponse): Uint8Array; - toProtoMsg(message: _114.QueryResolversByHashResponse): _114.QueryResolversByHashResponseProtoMsg; - }; - QueryResolversByURLRequest: { - typeUrl: string; - encode(message: _114.QueryResolversByURLRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByURLRequest; - fromJSON(object: any): _114.QueryResolversByURLRequest; - toJSON(message: _114.QueryResolversByURLRequest): unknown; - fromPartial(object: Partial<_114.QueryResolversByURLRequest>): _114.QueryResolversByURLRequest; - fromAmino(object: _114.QueryResolversByURLRequestAmino): _114.QueryResolversByURLRequest; - toAmino(message: _114.QueryResolversByURLRequest): _114.QueryResolversByURLRequestAmino; - fromAminoMsg(object: _114.QueryResolversByURLRequestAminoMsg): _114.QueryResolversByURLRequest; - fromProtoMsg(message: _114.QueryResolversByURLRequestProtoMsg): _114.QueryResolversByURLRequest; - toProto(message: _114.QueryResolversByURLRequest): Uint8Array; - toProtoMsg(message: _114.QueryResolversByURLRequest): _114.QueryResolversByURLRequestProtoMsg; - }; - QueryResolversByURLResponse: { - typeUrl: string; - encode(message: _114.QueryResolversByURLResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.QueryResolversByURLResponse; - fromJSON(object: any): _114.QueryResolversByURLResponse; - toJSON(message: _114.QueryResolversByURLResponse): unknown; - fromPartial(object: Partial<_114.QueryResolversByURLResponse>): _114.QueryResolversByURLResponse; - fromAmino(object: _114.QueryResolversByURLResponseAmino): _114.QueryResolversByURLResponse; - toAmino(message: _114.QueryResolversByURLResponse): _114.QueryResolversByURLResponseAmino; - fromAminoMsg(object: _114.QueryResolversByURLResponseAminoMsg): _114.QueryResolversByURLResponse; - fromProtoMsg(message: _114.QueryResolversByURLResponseProtoMsg): _114.QueryResolversByURLResponse; - toProto(message: _114.QueryResolversByURLResponse): Uint8Array; - toProtoMsg(message: _114.QueryResolversByURLResponse): _114.QueryResolversByURLResponseProtoMsg; - }; - ConvertIRIToHashRequest: { - typeUrl: string; - encode(message: _114.ConvertIRIToHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertIRIToHashRequest; - fromJSON(object: any): _114.ConvertIRIToHashRequest; - toJSON(message: _114.ConvertIRIToHashRequest): unknown; - fromPartial(object: Partial<_114.ConvertIRIToHashRequest>): _114.ConvertIRIToHashRequest; - fromAmino(object: _114.ConvertIRIToHashRequestAmino): _114.ConvertIRIToHashRequest; - toAmino(message: _114.ConvertIRIToHashRequest): _114.ConvertIRIToHashRequestAmino; - fromAminoMsg(object: _114.ConvertIRIToHashRequestAminoMsg): _114.ConvertIRIToHashRequest; - fromProtoMsg(message: _114.ConvertIRIToHashRequestProtoMsg): _114.ConvertIRIToHashRequest; - toProto(message: _114.ConvertIRIToHashRequest): Uint8Array; - toProtoMsg(message: _114.ConvertIRIToHashRequest): _114.ConvertIRIToHashRequestProtoMsg; - }; - ConvertIRIToHashResponse: { - typeUrl: string; - encode(message: _114.ConvertIRIToHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertIRIToHashResponse; - fromJSON(object: any): _114.ConvertIRIToHashResponse; - toJSON(message: _114.ConvertIRIToHashResponse): unknown; - fromPartial(object: Partial<_114.ConvertIRIToHashResponse>): _114.ConvertIRIToHashResponse; - fromAmino(object: _114.ConvertIRIToHashResponseAmino): _114.ConvertIRIToHashResponse; - toAmino(message: _114.ConvertIRIToHashResponse): _114.ConvertIRIToHashResponseAmino; - fromAminoMsg(object: _114.ConvertIRIToHashResponseAminoMsg): _114.ConvertIRIToHashResponse; - fromProtoMsg(message: _114.ConvertIRIToHashResponseProtoMsg): _114.ConvertIRIToHashResponse; - toProto(message: _114.ConvertIRIToHashResponse): Uint8Array; - toProtoMsg(message: _114.ConvertIRIToHashResponse): _114.ConvertIRIToHashResponseProtoMsg; - }; - ConvertHashToIRIRequest: { - typeUrl: string; - encode(message: _114.ConvertHashToIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertHashToIRIRequest; - fromJSON(object: any): _114.ConvertHashToIRIRequest; - toJSON(message: _114.ConvertHashToIRIRequest): unknown; - fromPartial(object: Partial<_114.ConvertHashToIRIRequest>): _114.ConvertHashToIRIRequest; - fromAmino(object: _114.ConvertHashToIRIRequestAmino): _114.ConvertHashToIRIRequest; - toAmino(message: _114.ConvertHashToIRIRequest): _114.ConvertHashToIRIRequestAmino; - fromAminoMsg(object: _114.ConvertHashToIRIRequestAminoMsg): _114.ConvertHashToIRIRequest; - fromProtoMsg(message: _114.ConvertHashToIRIRequestProtoMsg): _114.ConvertHashToIRIRequest; - toProto(message: _114.ConvertHashToIRIRequest): Uint8Array; - toProtoMsg(message: _114.ConvertHashToIRIRequest): _114.ConvertHashToIRIRequestProtoMsg; - }; - ConvertHashToIRIResponse: { - typeUrl: string; - encode(message: _114.ConvertHashToIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ConvertHashToIRIResponse; - fromJSON(object: any): _114.ConvertHashToIRIResponse; - toJSON(message: _114.ConvertHashToIRIResponse): unknown; - fromPartial(object: Partial<_114.ConvertHashToIRIResponse>): _114.ConvertHashToIRIResponse; - fromAmino(object: _114.ConvertHashToIRIResponseAmino): _114.ConvertHashToIRIResponse; - toAmino(message: _114.ConvertHashToIRIResponse): _114.ConvertHashToIRIResponseAmino; - fromAminoMsg(object: _114.ConvertHashToIRIResponseAminoMsg): _114.ConvertHashToIRIResponse; - fromProtoMsg(message: _114.ConvertHashToIRIResponseProtoMsg): _114.ConvertHashToIRIResponse; - toProto(message: _114.ConvertHashToIRIResponse): Uint8Array; - toProtoMsg(message: _114.ConvertHashToIRIResponse): _114.ConvertHashToIRIResponseProtoMsg; - }; - AnchorInfo: { - typeUrl: string; - encode(message: _114.AnchorInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.AnchorInfo; - fromJSON(object: any): _114.AnchorInfo; - toJSON(message: _114.AnchorInfo): unknown; - fromPartial(object: Partial<_114.AnchorInfo>): _114.AnchorInfo; - fromAmino(object: _114.AnchorInfoAmino): _114.AnchorInfo; - toAmino(message: _114.AnchorInfo): _114.AnchorInfoAmino; - fromAminoMsg(object: _114.AnchorInfoAminoMsg): _114.AnchorInfo; - fromProtoMsg(message: _114.AnchorInfoProtoMsg): _114.AnchorInfo; - toProto(message: _114.AnchorInfo): Uint8Array; - toProtoMsg(message: _114.AnchorInfo): _114.AnchorInfoProtoMsg; - }; - AttestationInfo: { - typeUrl: string; - encode(message: _114.AttestationInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.AttestationInfo; - fromJSON(object: any): _114.AttestationInfo; - toJSON(message: _114.AttestationInfo): unknown; - fromPartial(object: Partial<_114.AttestationInfo>): _114.AttestationInfo; - fromAmino(object: _114.AttestationInfoAmino): _114.AttestationInfo; - toAmino(message: _114.AttestationInfo): _114.AttestationInfoAmino; - fromAminoMsg(object: _114.AttestationInfoAminoMsg): _114.AttestationInfo; - fromProtoMsg(message: _114.AttestationInfoProtoMsg): _114.AttestationInfo; - toProto(message: _114.AttestationInfo): Uint8Array; - toProtoMsg(message: _114.AttestationInfo): _114.AttestationInfoProtoMsg; - }; - ResolverInfo: { - typeUrl: string; - encode(message: _114.ResolverInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _114.ResolverInfo; - fromJSON(object: any): _114.ResolverInfo; - toJSON(message: _114.ResolverInfo): unknown; - fromPartial(object: Partial<_114.ResolverInfo>): _114.ResolverInfo; - fromAmino(object: _114.ResolverInfoAmino): _114.ResolverInfo; - toAmino(message: _114.ResolverInfo): _114.ResolverInfoAmino; - fromAminoMsg(object: _114.ResolverInfoAminoMsg): _114.ResolverInfo; - fromProtoMsg(message: _114.ResolverInfoProtoMsg): _114.ResolverInfo; - toProto(message: _114.ResolverInfo): Uint8Array; - toProtoMsg(message: _114.ResolverInfo): _114.ResolverInfoProtoMsg; - }; - EventAnchor: { - typeUrl: string; - encode(message: _113.EventAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventAnchor; - fromJSON(object: any): _113.EventAnchor; - toJSON(message: _113.EventAnchor): unknown; - fromPartial(object: Partial<_113.EventAnchor>): _113.EventAnchor; - fromAmino(object: _113.EventAnchorAmino): _113.EventAnchor; - toAmino(message: _113.EventAnchor): _113.EventAnchorAmino; - fromAminoMsg(object: _113.EventAnchorAminoMsg): _113.EventAnchor; - fromProtoMsg(message: _113.EventAnchorProtoMsg): _113.EventAnchor; - toProto(message: _113.EventAnchor): Uint8Array; - toProtoMsg(message: _113.EventAnchor): _113.EventAnchorProtoMsg; - }; - EventAttest: { - typeUrl: string; - encode(message: _113.EventAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventAttest; - fromJSON(object: any): _113.EventAttest; - toJSON(message: _113.EventAttest): unknown; - fromPartial(object: Partial<_113.EventAttest>): _113.EventAttest; - fromAmino(object: _113.EventAttestAmino): _113.EventAttest; - toAmino(message: _113.EventAttest): _113.EventAttestAmino; - fromAminoMsg(object: _113.EventAttestAminoMsg): _113.EventAttest; - fromProtoMsg(message: _113.EventAttestProtoMsg): _113.EventAttest; - toProto(message: _113.EventAttest): Uint8Array; - toProtoMsg(message: _113.EventAttest): _113.EventAttestProtoMsg; - }; - EventDefineResolver: { - typeUrl: string; - encode(message: _113.EventDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventDefineResolver; - fromJSON(object: any): _113.EventDefineResolver; - toJSON(message: _113.EventDefineResolver): unknown; - fromPartial(object: Partial<_113.EventDefineResolver>): _113.EventDefineResolver; - fromAmino(object: _113.EventDefineResolverAmino): _113.EventDefineResolver; - toAmino(message: _113.EventDefineResolver): _113.EventDefineResolverAmino; - fromAminoMsg(object: _113.EventDefineResolverAminoMsg): _113.EventDefineResolver; - fromProtoMsg(message: _113.EventDefineResolverProtoMsg): _113.EventDefineResolver; - toProto(message: _113.EventDefineResolver): Uint8Array; - toProtoMsg(message: _113.EventDefineResolver): _113.EventDefineResolverProtoMsg; - }; - EventRegisterResolver: { - typeUrl: string; - encode(message: _113.EventRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _113.EventRegisterResolver; - fromJSON(object: any): _113.EventRegisterResolver; - toJSON(message: _113.EventRegisterResolver): unknown; - fromPartial(object: Partial<_113.EventRegisterResolver>): _113.EventRegisterResolver; - fromAmino(object: _113.EventRegisterResolverAmino): _113.EventRegisterResolver; - toAmino(message: _113.EventRegisterResolver): _113.EventRegisterResolverAmino; - fromAminoMsg(object: _113.EventRegisterResolverAminoMsg): _113.EventRegisterResolver; - fromProtoMsg(message: _113.EventRegisterResolverProtoMsg): _113.EventRegisterResolver; - toProto(message: _113.EventRegisterResolver): Uint8Array; - toProtoMsg(message: _113.EventRegisterResolver): _113.EventRegisterResolverProtoMsg; - }; - }; - } - namespace ecocredit { - namespace basket { - const v1: { - MsgClientImpl: typeof _266.MsgClientImpl; - QueryClientImpl: typeof _260.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - basket(request: _119.QueryBasketRequest): Promise<_119.QueryBasketResponse>; - baskets(request?: _119.QueryBasketsRequest | undefined): Promise<_119.QueryBasketsResponse>; - basketBalances(request: _119.QueryBasketBalancesRequest): Promise<_119.QueryBasketBalancesResponse>; - basketBalance(request: _119.QueryBasketBalanceRequest): Promise<_119.QueryBasketBalanceResponse>; - basketFee(request?: _119.QueryBasketFeeRequest | undefined): Promise<_119.QueryBasketFeeResponse>; - }; - LCDQueryClient: typeof _254.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - create(value: _121.MsgCreate): { - typeUrl: string; - value: Uint8Array; - }; - put(value: _121.MsgPut): { - typeUrl: string; - value: Uint8Array; - }; - take(value: _121.MsgTake): { - typeUrl: string; - value: Uint8Array; - }; - updateBasketFee(value: _121.MsgUpdateBasketFee): { - typeUrl: string; - value: Uint8Array; - }; - updateCurator(value: _121.MsgUpdateCurator): { - typeUrl: string; - value: Uint8Array; - }; - updateDateCriteria(value: _121.MsgUpdateDateCriteria): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - create(value: _121.MsgCreate): { - typeUrl: string; - value: _121.MsgCreate; - }; - put(value: _121.MsgPut): { - typeUrl: string; - value: _121.MsgPut; - }; - take(value: _121.MsgTake): { - typeUrl: string; - value: _121.MsgTake; - }; - updateBasketFee(value: _121.MsgUpdateBasketFee): { - typeUrl: string; - value: _121.MsgUpdateBasketFee; - }; - updateCurator(value: _121.MsgUpdateCurator): { - typeUrl: string; - value: _121.MsgUpdateCurator; - }; - updateDateCriteria(value: _121.MsgUpdateDateCriteria): { - typeUrl: string; - value: _121.MsgUpdateDateCriteria; - }; - }; - toJSON: { - create(value: _121.MsgCreate): { - typeUrl: string; - value: unknown; - }; - put(value: _121.MsgPut): { - typeUrl: string; - value: unknown; - }; - take(value: _121.MsgTake): { - typeUrl: string; - value: unknown; - }; - updateBasketFee(value: _121.MsgUpdateBasketFee): { - typeUrl: string; - value: unknown; - }; - updateCurator(value: _121.MsgUpdateCurator): { - typeUrl: string; - value: unknown; - }; - updateDateCriteria(value: _121.MsgUpdateDateCriteria): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - create(value: any): { - typeUrl: string; - value: _121.MsgCreate; - }; - put(value: any): { - typeUrl: string; - value: _121.MsgPut; - }; - take(value: any): { - typeUrl: string; - value: _121.MsgTake; - }; - updateBasketFee(value: any): { - typeUrl: string; - value: _121.MsgUpdateBasketFee; - }; - updateCurator(value: any): { - typeUrl: string; - value: _121.MsgUpdateCurator; - }; - updateDateCriteria(value: any): { - typeUrl: string; - value: _121.MsgUpdateDateCriteria; - }; - }; - fromPartial: { - create(value: _121.MsgCreate): { - typeUrl: string; - value: _121.MsgCreate; - }; - put(value: _121.MsgPut): { - typeUrl: string; - value: _121.MsgPut; - }; - take(value: _121.MsgTake): { - typeUrl: string; - value: _121.MsgTake; - }; - updateBasketFee(value: _121.MsgUpdateBasketFee): { - typeUrl: string; - value: _121.MsgUpdateBasketFee; - }; - updateCurator(value: _121.MsgUpdateCurator): { - typeUrl: string; - value: _121.MsgUpdateCurator; - }; - updateDateCriteria(value: _121.MsgUpdateDateCriteria): { - typeUrl: string; - value: _121.MsgUpdateDateCriteria; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: _121.MsgCreate) => _121.MsgCreateAmino; - fromAmino: (object: _121.MsgCreateAmino) => _121.MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: _121.MsgPut) => _121.MsgPutAmino; - fromAmino: (object: _121.MsgPutAmino) => _121.MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: _121.MsgTake) => _121.MsgTakeAmino; - fromAmino: (object: _121.MsgTakeAmino) => _121.MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: _121.MsgUpdateBasketFee) => _121.MsgUpdateBasketFeeAmino; - fromAmino: (object: _121.MsgUpdateBasketFeeAmino) => _121.MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: _121.MsgUpdateCurator) => _121.MsgUpdateCuratorAmino; - fromAmino: (object: _121.MsgUpdateCuratorAmino) => _121.MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: _121.MsgUpdateDateCriteria) => _121.MsgUpdateDateCriteriaAmino; - fromAmino: (object: _121.MsgUpdateDateCriteriaAmino) => _121.MsgUpdateDateCriteria; - }; - }; - BasketCredit: { - typeUrl: string; - encode(message: _122.BasketCredit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _122.BasketCredit; - fromJSON(object: any): _122.BasketCredit; - toJSON(message: _122.BasketCredit): unknown; - fromPartial(object: Partial<_122.BasketCredit>): _122.BasketCredit; - fromAmino(object: _122.BasketCreditAmino): _122.BasketCredit; - toAmino(message: _122.BasketCredit): _122.BasketCreditAmino; - fromAminoMsg(object: _122.BasketCreditAminoMsg): _122.BasketCredit; - fromProtoMsg(message: _122.BasketCreditProtoMsg): _122.BasketCredit; - toProto(message: _122.BasketCredit): Uint8Array; - toProtoMsg(message: _122.BasketCredit): _122.BasketCreditProtoMsg; - }; - DateCriteria: { - typeUrl: string; - encode(message: _122.DateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _122.DateCriteria; - fromJSON(object: any): _122.DateCriteria; - toJSON(message: _122.DateCriteria): unknown; - fromPartial(object: Partial<_122.DateCriteria>): _122.DateCriteria; - fromAmino(object: _122.DateCriteriaAmino): _122.DateCriteria; - toAmino(message: _122.DateCriteria): _122.DateCriteriaAmino; - fromAminoMsg(object: _122.DateCriteriaAminoMsg): _122.DateCriteria; - fromProtoMsg(message: _122.DateCriteriaProtoMsg): _122.DateCriteria; - toProto(message: _122.DateCriteria): Uint8Array; - toProtoMsg(message: _122.DateCriteria): _122.DateCriteriaProtoMsg; - }; - MsgCreate: { - typeUrl: string; - encode(message: _121.MsgCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgCreate; - fromJSON(object: any): _121.MsgCreate; - toJSON(message: _121.MsgCreate): unknown; - fromPartial(object: Partial<_121.MsgCreate>): _121.MsgCreate; - fromAmino(object: _121.MsgCreateAmino): _121.MsgCreate; - toAmino(message: _121.MsgCreate): _121.MsgCreateAmino; - fromAminoMsg(object: _121.MsgCreateAminoMsg): _121.MsgCreate; - toAminoMsg(message: _121.MsgCreate): _121.MsgCreateAminoMsg; - fromProtoMsg(message: _121.MsgCreateProtoMsg): _121.MsgCreate; - toProto(message: _121.MsgCreate): Uint8Array; - toProtoMsg(message: _121.MsgCreate): _121.MsgCreateProtoMsg; - }; - MsgCreateResponse: { - typeUrl: string; - encode(message: _121.MsgCreateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgCreateResponse; - fromJSON(object: any): _121.MsgCreateResponse; - toJSON(message: _121.MsgCreateResponse): unknown; - fromPartial(object: Partial<_121.MsgCreateResponse>): _121.MsgCreateResponse; - fromAmino(object: _121.MsgCreateResponseAmino): _121.MsgCreateResponse; - toAmino(message: _121.MsgCreateResponse): _121.MsgCreateResponseAmino; - fromAminoMsg(object: _121.MsgCreateResponseAminoMsg): _121.MsgCreateResponse; - fromProtoMsg(message: _121.MsgCreateResponseProtoMsg): _121.MsgCreateResponse; - toProto(message: _121.MsgCreateResponse): Uint8Array; - toProtoMsg(message: _121.MsgCreateResponse): _121.MsgCreateResponseProtoMsg; - }; - MsgPut: { - typeUrl: string; - encode(message: _121.MsgPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgPut; - fromJSON(object: any): _121.MsgPut; - toJSON(message: _121.MsgPut): unknown; - fromPartial(object: Partial<_121.MsgPut>): _121.MsgPut; - fromAmino(object: _121.MsgPutAmino): _121.MsgPut; - toAmino(message: _121.MsgPut): _121.MsgPutAmino; - fromAminoMsg(object: _121.MsgPutAminoMsg): _121.MsgPut; - toAminoMsg(message: _121.MsgPut): _121.MsgPutAminoMsg; - fromProtoMsg(message: _121.MsgPutProtoMsg): _121.MsgPut; - toProto(message: _121.MsgPut): Uint8Array; - toProtoMsg(message: _121.MsgPut): _121.MsgPutProtoMsg; - }; - MsgPutResponse: { - typeUrl: string; - encode(message: _121.MsgPutResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgPutResponse; - fromJSON(object: any): _121.MsgPutResponse; - toJSON(message: _121.MsgPutResponse): unknown; - fromPartial(object: Partial<_121.MsgPutResponse>): _121.MsgPutResponse; - fromAmino(object: _121.MsgPutResponseAmino): _121.MsgPutResponse; - toAmino(message: _121.MsgPutResponse): _121.MsgPutResponseAmino; - fromAminoMsg(object: _121.MsgPutResponseAminoMsg): _121.MsgPutResponse; - fromProtoMsg(message: _121.MsgPutResponseProtoMsg): _121.MsgPutResponse; - toProto(message: _121.MsgPutResponse): Uint8Array; - toProtoMsg(message: _121.MsgPutResponse): _121.MsgPutResponseProtoMsg; - }; - MsgTake: { - typeUrl: string; - encode(message: _121.MsgTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgTake; - fromJSON(object: any): _121.MsgTake; - toJSON(message: _121.MsgTake): unknown; - fromPartial(object: Partial<_121.MsgTake>): _121.MsgTake; - fromAmino(object: _121.MsgTakeAmino): _121.MsgTake; - toAmino(message: _121.MsgTake): _121.MsgTakeAmino; - fromAminoMsg(object: _121.MsgTakeAminoMsg): _121.MsgTake; - toAminoMsg(message: _121.MsgTake): _121.MsgTakeAminoMsg; - fromProtoMsg(message: _121.MsgTakeProtoMsg): _121.MsgTake; - toProto(message: _121.MsgTake): Uint8Array; - toProtoMsg(message: _121.MsgTake): _121.MsgTakeProtoMsg; - }; - MsgTakeResponse: { - typeUrl: string; - encode(message: _121.MsgTakeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgTakeResponse; - fromJSON(object: any): _121.MsgTakeResponse; - toJSON(message: _121.MsgTakeResponse): unknown; - fromPartial(object: Partial<_121.MsgTakeResponse>): _121.MsgTakeResponse; - fromAmino(object: _121.MsgTakeResponseAmino): _121.MsgTakeResponse; - toAmino(message: _121.MsgTakeResponse): _121.MsgTakeResponseAmino; - fromAminoMsg(object: _121.MsgTakeResponseAminoMsg): _121.MsgTakeResponse; - fromProtoMsg(message: _121.MsgTakeResponseProtoMsg): _121.MsgTakeResponse; - toProto(message: _121.MsgTakeResponse): Uint8Array; - toProtoMsg(message: _121.MsgTakeResponse): _121.MsgTakeResponseProtoMsg; - }; - MsgUpdateBasketFee: { - typeUrl: string; - encode(message: _121.MsgUpdateBasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateBasketFee; - fromJSON(object: any): _121.MsgUpdateBasketFee; - toJSON(message: _121.MsgUpdateBasketFee): unknown; - fromPartial(object: Partial<_121.MsgUpdateBasketFee>): _121.MsgUpdateBasketFee; - fromAmino(object: _121.MsgUpdateBasketFeeAmino): _121.MsgUpdateBasketFee; - toAmino(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeAmino; - fromAminoMsg(object: _121.MsgUpdateBasketFeeAminoMsg): _121.MsgUpdateBasketFee; - toAminoMsg(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeAminoMsg; - fromProtoMsg(message: _121.MsgUpdateBasketFeeProtoMsg): _121.MsgUpdateBasketFee; - toProto(message: _121.MsgUpdateBasketFee): Uint8Array; - toProtoMsg(message: _121.MsgUpdateBasketFee): _121.MsgUpdateBasketFeeProtoMsg; - }; - MsgUpdateBasketFeeResponse: { - typeUrl: string; - encode(_: _121.MsgUpdateBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateBasketFeeResponse; - fromJSON(_: any): _121.MsgUpdateBasketFeeResponse; - toJSON(_: _121.MsgUpdateBasketFeeResponse): unknown; - fromPartial(_: Partial<_121.MsgUpdateBasketFeeResponse>): _121.MsgUpdateBasketFeeResponse; - fromAmino(_: _121.MsgUpdateBasketFeeResponseAmino): _121.MsgUpdateBasketFeeResponse; - toAmino(_: _121.MsgUpdateBasketFeeResponse): _121.MsgUpdateBasketFeeResponseAmino; - fromAminoMsg(object: _121.MsgUpdateBasketFeeResponseAminoMsg): _121.MsgUpdateBasketFeeResponse; - fromProtoMsg(message: _121.MsgUpdateBasketFeeResponseProtoMsg): _121.MsgUpdateBasketFeeResponse; - toProto(message: _121.MsgUpdateBasketFeeResponse): Uint8Array; - toProtoMsg(message: _121.MsgUpdateBasketFeeResponse): _121.MsgUpdateBasketFeeResponseProtoMsg; - }; - MsgUpdateCurator: { - typeUrl: string; - encode(message: _121.MsgUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateCurator; - fromJSON(object: any): _121.MsgUpdateCurator; - toJSON(message: _121.MsgUpdateCurator): unknown; - fromPartial(object: Partial<_121.MsgUpdateCurator>): _121.MsgUpdateCurator; - fromAmino(object: _121.MsgUpdateCuratorAmino): _121.MsgUpdateCurator; - toAmino(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorAmino; - fromAminoMsg(object: _121.MsgUpdateCuratorAminoMsg): _121.MsgUpdateCurator; - toAminoMsg(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorAminoMsg; - fromProtoMsg(message: _121.MsgUpdateCuratorProtoMsg): _121.MsgUpdateCurator; - toProto(message: _121.MsgUpdateCurator): Uint8Array; - toProtoMsg(message: _121.MsgUpdateCurator): _121.MsgUpdateCuratorProtoMsg; - }; - MsgUpdateCuratorResponse: { - typeUrl: string; - encode(_: _121.MsgUpdateCuratorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateCuratorResponse; - fromJSON(_: any): _121.MsgUpdateCuratorResponse; - toJSON(_: _121.MsgUpdateCuratorResponse): unknown; - fromPartial(_: Partial<_121.MsgUpdateCuratorResponse>): _121.MsgUpdateCuratorResponse; - fromAmino(_: _121.MsgUpdateCuratorResponseAmino): _121.MsgUpdateCuratorResponse; - toAmino(_: _121.MsgUpdateCuratorResponse): _121.MsgUpdateCuratorResponseAmino; - fromAminoMsg(object: _121.MsgUpdateCuratorResponseAminoMsg): _121.MsgUpdateCuratorResponse; - fromProtoMsg(message: _121.MsgUpdateCuratorResponseProtoMsg): _121.MsgUpdateCuratorResponse; - toProto(message: _121.MsgUpdateCuratorResponse): Uint8Array; - toProtoMsg(message: _121.MsgUpdateCuratorResponse): _121.MsgUpdateCuratorResponseProtoMsg; - }; - MsgUpdateDateCriteria: { - typeUrl: string; - encode(message: _121.MsgUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateDateCriteria; - fromJSON(object: any): _121.MsgUpdateDateCriteria; - toJSON(message: _121.MsgUpdateDateCriteria): unknown; - fromPartial(object: Partial<_121.MsgUpdateDateCriteria>): _121.MsgUpdateDateCriteria; - fromAmino(object: _121.MsgUpdateDateCriteriaAmino): _121.MsgUpdateDateCriteria; - toAmino(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaAmino; - fromAminoMsg(object: _121.MsgUpdateDateCriteriaAminoMsg): _121.MsgUpdateDateCriteria; - toAminoMsg(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaAminoMsg; - fromProtoMsg(message: _121.MsgUpdateDateCriteriaProtoMsg): _121.MsgUpdateDateCriteria; - toProto(message: _121.MsgUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _121.MsgUpdateDateCriteria): _121.MsgUpdateDateCriteriaProtoMsg; - }; - MsgUpdateDateCriteriaResponse: { - typeUrl: string; - encode(_: _121.MsgUpdateDateCriteriaResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _121.MsgUpdateDateCriteriaResponse; - fromJSON(_: any): _121.MsgUpdateDateCriteriaResponse; - toJSON(_: _121.MsgUpdateDateCriteriaResponse): unknown; - fromPartial(_: Partial<_121.MsgUpdateDateCriteriaResponse>): _121.MsgUpdateDateCriteriaResponse; - fromAmino(_: _121.MsgUpdateDateCriteriaResponseAmino): _121.MsgUpdateDateCriteriaResponse; - toAmino(_: _121.MsgUpdateDateCriteriaResponse): _121.MsgUpdateDateCriteriaResponseAmino; - fromAminoMsg(object: _121.MsgUpdateDateCriteriaResponseAminoMsg): _121.MsgUpdateDateCriteriaResponse; - fromProtoMsg(message: _121.MsgUpdateDateCriteriaResponseProtoMsg): _121.MsgUpdateDateCriteriaResponse; - toProto(message: _121.MsgUpdateDateCriteriaResponse): Uint8Array; - toProtoMsg(message: _121.MsgUpdateDateCriteriaResponse): _121.MsgUpdateDateCriteriaResponseProtoMsg; - }; - Basket: { - typeUrl: string; - encode(message: _120.Basket, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.Basket; - fromJSON(object: any): _120.Basket; - toJSON(message: _120.Basket): unknown; - fromPartial(object: Partial<_120.Basket>): _120.Basket; - fromAmino(object: _120.BasketAmino): _120.Basket; - toAmino(message: _120.Basket): _120.BasketAmino; - fromAminoMsg(object: _120.BasketAminoMsg): _120.Basket; - fromProtoMsg(message: _120.BasketProtoMsg): _120.Basket; - toProto(message: _120.Basket): Uint8Array; - toProtoMsg(message: _120.Basket): _120.BasketProtoMsg; - }; - BasketClass: { - typeUrl: string; - encode(message: _120.BasketClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketClass; - fromJSON(object: any): _120.BasketClass; - toJSON(message: _120.BasketClass): unknown; - fromPartial(object: Partial<_120.BasketClass>): _120.BasketClass; - fromAmino(object: _120.BasketClassAmino): _120.BasketClass; - toAmino(message: _120.BasketClass): _120.BasketClassAmino; - fromAminoMsg(object: _120.BasketClassAminoMsg): _120.BasketClass; - fromProtoMsg(message: _120.BasketClassProtoMsg): _120.BasketClass; - toProto(message: _120.BasketClass): Uint8Array; - toProtoMsg(message: _120.BasketClass): _120.BasketClassProtoMsg; - }; - BasketBalance: { - typeUrl: string; - encode(message: _120.BasketBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketBalance; - fromJSON(object: any): _120.BasketBalance; - toJSON(message: _120.BasketBalance): unknown; - fromPartial(object: Partial<_120.BasketBalance>): _120.BasketBalance; - fromAmino(object: _120.BasketBalanceAmino): _120.BasketBalance; - toAmino(message: _120.BasketBalance): _120.BasketBalanceAmino; - fromAminoMsg(object: _120.BasketBalanceAminoMsg): _120.BasketBalance; - fromProtoMsg(message: _120.BasketBalanceProtoMsg): _120.BasketBalance; - toProto(message: _120.BasketBalance): Uint8Array; - toProtoMsg(message: _120.BasketBalance): _120.BasketBalanceProtoMsg; - }; - BasketFee: { - typeUrl: string; - encode(message: _120.BasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _120.BasketFee; - fromJSON(object: any): _120.BasketFee; - toJSON(message: _120.BasketFee): unknown; - fromPartial(object: Partial<_120.BasketFee>): _120.BasketFee; - fromAmino(object: _120.BasketFeeAmino): _120.BasketFee; - toAmino(message: _120.BasketFee): _120.BasketFeeAmino; - fromAminoMsg(object: _120.BasketFeeAminoMsg): _120.BasketFee; - fromProtoMsg(message: _120.BasketFeeProtoMsg): _120.BasketFee; - toProto(message: _120.BasketFee): Uint8Array; - toProtoMsg(message: _120.BasketFee): _120.BasketFeeProtoMsg; - }; - QueryBasketRequest: { - typeUrl: string; - encode(message: _119.QueryBasketRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketRequest; - fromJSON(object: any): _119.QueryBasketRequest; - toJSON(message: _119.QueryBasketRequest): unknown; - fromPartial(object: Partial<_119.QueryBasketRequest>): _119.QueryBasketRequest; - fromAmino(object: _119.QueryBasketRequestAmino): _119.QueryBasketRequest; - toAmino(message: _119.QueryBasketRequest): _119.QueryBasketRequestAmino; - fromAminoMsg(object: _119.QueryBasketRequestAminoMsg): _119.QueryBasketRequest; - fromProtoMsg(message: _119.QueryBasketRequestProtoMsg): _119.QueryBasketRequest; - toProto(message: _119.QueryBasketRequest): Uint8Array; - toProtoMsg(message: _119.QueryBasketRequest): _119.QueryBasketRequestProtoMsg; - }; - QueryBasketResponse: { - typeUrl: string; - encode(message: _119.QueryBasketResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketResponse; - fromJSON(object: any): _119.QueryBasketResponse; - toJSON(message: _119.QueryBasketResponse): unknown; - fromPartial(object: Partial<_119.QueryBasketResponse>): _119.QueryBasketResponse; - fromAmino(object: _119.QueryBasketResponseAmino): _119.QueryBasketResponse; - toAmino(message: _119.QueryBasketResponse): _119.QueryBasketResponseAmino; - fromAminoMsg(object: _119.QueryBasketResponseAminoMsg): _119.QueryBasketResponse; - fromProtoMsg(message: _119.QueryBasketResponseProtoMsg): _119.QueryBasketResponse; - toProto(message: _119.QueryBasketResponse): Uint8Array; - toProtoMsg(message: _119.QueryBasketResponse): _119.QueryBasketResponseProtoMsg; - }; - QueryBasketsRequest: { - typeUrl: string; - encode(message: _119.QueryBasketsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketsRequest; - fromJSON(object: any): _119.QueryBasketsRequest; - toJSON(message: _119.QueryBasketsRequest): unknown; - fromPartial(object: Partial<_119.QueryBasketsRequest>): _119.QueryBasketsRequest; - fromAmino(object: _119.QueryBasketsRequestAmino): _119.QueryBasketsRequest; - toAmino(message: _119.QueryBasketsRequest): _119.QueryBasketsRequestAmino; - fromAminoMsg(object: _119.QueryBasketsRequestAminoMsg): _119.QueryBasketsRequest; - fromProtoMsg(message: _119.QueryBasketsRequestProtoMsg): _119.QueryBasketsRequest; - toProto(message: _119.QueryBasketsRequest): Uint8Array; - toProtoMsg(message: _119.QueryBasketsRequest): _119.QueryBasketsRequestProtoMsg; - }; - QueryBasketsResponse: { - typeUrl: string; - encode(message: _119.QueryBasketsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketsResponse; - fromJSON(object: any): _119.QueryBasketsResponse; - toJSON(message: _119.QueryBasketsResponse): unknown; - fromPartial(object: Partial<_119.QueryBasketsResponse>): _119.QueryBasketsResponse; - fromAmino(object: _119.QueryBasketsResponseAmino): _119.QueryBasketsResponse; - toAmino(message: _119.QueryBasketsResponse): _119.QueryBasketsResponseAmino; - fromAminoMsg(object: _119.QueryBasketsResponseAminoMsg): _119.QueryBasketsResponse; - fromProtoMsg(message: _119.QueryBasketsResponseProtoMsg): _119.QueryBasketsResponse; - toProto(message: _119.QueryBasketsResponse): Uint8Array; - toProtoMsg(message: _119.QueryBasketsResponse): _119.QueryBasketsResponseProtoMsg; - }; - QueryBasketBalancesRequest: { - typeUrl: string; - encode(message: _119.QueryBasketBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalancesRequest; - fromJSON(object: any): _119.QueryBasketBalancesRequest; - toJSON(message: _119.QueryBasketBalancesRequest): unknown; - fromPartial(object: Partial<_119.QueryBasketBalancesRequest>): _119.QueryBasketBalancesRequest; - fromAmino(object: _119.QueryBasketBalancesRequestAmino): _119.QueryBasketBalancesRequest; - toAmino(message: _119.QueryBasketBalancesRequest): _119.QueryBasketBalancesRequestAmino; - fromAminoMsg(object: _119.QueryBasketBalancesRequestAminoMsg): _119.QueryBasketBalancesRequest; - fromProtoMsg(message: _119.QueryBasketBalancesRequestProtoMsg): _119.QueryBasketBalancesRequest; - toProto(message: _119.QueryBasketBalancesRequest): Uint8Array; - toProtoMsg(message: _119.QueryBasketBalancesRequest): _119.QueryBasketBalancesRequestProtoMsg; - }; - QueryBasketBalancesResponse: { - typeUrl: string; - encode(message: _119.QueryBasketBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalancesResponse; - fromJSON(object: any): _119.QueryBasketBalancesResponse; - toJSON(message: _119.QueryBasketBalancesResponse): unknown; - fromPartial(object: Partial<_119.QueryBasketBalancesResponse>): _119.QueryBasketBalancesResponse; - fromAmino(object: _119.QueryBasketBalancesResponseAmino): _119.QueryBasketBalancesResponse; - toAmino(message: _119.QueryBasketBalancesResponse): _119.QueryBasketBalancesResponseAmino; - fromAminoMsg(object: _119.QueryBasketBalancesResponseAminoMsg): _119.QueryBasketBalancesResponse; - fromProtoMsg(message: _119.QueryBasketBalancesResponseProtoMsg): _119.QueryBasketBalancesResponse; - toProto(message: _119.QueryBasketBalancesResponse): Uint8Array; - toProtoMsg(message: _119.QueryBasketBalancesResponse): _119.QueryBasketBalancesResponseProtoMsg; - }; - QueryBasketBalanceRequest: { - typeUrl: string; - encode(message: _119.QueryBasketBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalanceRequest; - fromJSON(object: any): _119.QueryBasketBalanceRequest; - toJSON(message: _119.QueryBasketBalanceRequest): unknown; - fromPartial(object: Partial<_119.QueryBasketBalanceRequest>): _119.QueryBasketBalanceRequest; - fromAmino(object: _119.QueryBasketBalanceRequestAmino): _119.QueryBasketBalanceRequest; - toAmino(message: _119.QueryBasketBalanceRequest): _119.QueryBasketBalanceRequestAmino; - fromAminoMsg(object: _119.QueryBasketBalanceRequestAminoMsg): _119.QueryBasketBalanceRequest; - fromProtoMsg(message: _119.QueryBasketBalanceRequestProtoMsg): _119.QueryBasketBalanceRequest; - toProto(message: _119.QueryBasketBalanceRequest): Uint8Array; - toProtoMsg(message: _119.QueryBasketBalanceRequest): _119.QueryBasketBalanceRequestProtoMsg; - }; - QueryBasketBalanceResponse: { - typeUrl: string; - encode(message: _119.QueryBasketBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketBalanceResponse; - fromJSON(object: any): _119.QueryBasketBalanceResponse; - toJSON(message: _119.QueryBasketBalanceResponse): unknown; - fromPartial(object: Partial<_119.QueryBasketBalanceResponse>): _119.QueryBasketBalanceResponse; - fromAmino(object: _119.QueryBasketBalanceResponseAmino): _119.QueryBasketBalanceResponse; - toAmino(message: _119.QueryBasketBalanceResponse): _119.QueryBasketBalanceResponseAmino; - fromAminoMsg(object: _119.QueryBasketBalanceResponseAminoMsg): _119.QueryBasketBalanceResponse; - fromProtoMsg(message: _119.QueryBasketBalanceResponseProtoMsg): _119.QueryBasketBalanceResponse; - toProto(message: _119.QueryBasketBalanceResponse): Uint8Array; - toProtoMsg(message: _119.QueryBasketBalanceResponse): _119.QueryBasketBalanceResponseProtoMsg; - }; - BasketInfo: { - typeUrl: string; - encode(message: _119.BasketInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.BasketInfo; - fromJSON(object: any): _119.BasketInfo; - toJSON(message: _119.BasketInfo): unknown; - fromPartial(object: Partial<_119.BasketInfo>): _119.BasketInfo; - fromAmino(object: _119.BasketInfoAmino): _119.BasketInfo; - toAmino(message: _119.BasketInfo): _119.BasketInfoAmino; - fromAminoMsg(object: _119.BasketInfoAminoMsg): _119.BasketInfo; - fromProtoMsg(message: _119.BasketInfoProtoMsg): _119.BasketInfo; - toProto(message: _119.BasketInfo): Uint8Array; - toProtoMsg(message: _119.BasketInfo): _119.BasketInfoProtoMsg; - }; - BasketBalanceInfo: { - typeUrl: string; - encode(message: _119.BasketBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.BasketBalanceInfo; - fromJSON(object: any): _119.BasketBalanceInfo; - toJSON(message: _119.BasketBalanceInfo): unknown; - fromPartial(object: Partial<_119.BasketBalanceInfo>): _119.BasketBalanceInfo; - fromAmino(object: _119.BasketBalanceInfoAmino): _119.BasketBalanceInfo; - toAmino(message: _119.BasketBalanceInfo): _119.BasketBalanceInfoAmino; - fromAminoMsg(object: _119.BasketBalanceInfoAminoMsg): _119.BasketBalanceInfo; - fromProtoMsg(message: _119.BasketBalanceInfoProtoMsg): _119.BasketBalanceInfo; - toProto(message: _119.BasketBalanceInfo): Uint8Array; - toProtoMsg(message: _119.BasketBalanceInfo): _119.BasketBalanceInfoProtoMsg; - }; - QueryBasketFeeRequest: { - typeUrl: string; - encode(_: _119.QueryBasketFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketFeeRequest; - fromJSON(_: any): _119.QueryBasketFeeRequest; - toJSON(_: _119.QueryBasketFeeRequest): unknown; - fromPartial(_: Partial<_119.QueryBasketFeeRequest>): _119.QueryBasketFeeRequest; - fromAmino(_: _119.QueryBasketFeeRequestAmino): _119.QueryBasketFeeRequest; - toAmino(_: _119.QueryBasketFeeRequest): _119.QueryBasketFeeRequestAmino; - fromAminoMsg(object: _119.QueryBasketFeeRequestAminoMsg): _119.QueryBasketFeeRequest; - fromProtoMsg(message: _119.QueryBasketFeeRequestProtoMsg): _119.QueryBasketFeeRequest; - toProto(message: _119.QueryBasketFeeRequest): Uint8Array; - toProtoMsg(message: _119.QueryBasketFeeRequest): _119.QueryBasketFeeRequestProtoMsg; - }; - QueryBasketFeeResponse: { - typeUrl: string; - encode(message: _119.QueryBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _119.QueryBasketFeeResponse; - fromJSON(object: any): _119.QueryBasketFeeResponse; - toJSON(message: _119.QueryBasketFeeResponse): unknown; - fromPartial(object: Partial<_119.QueryBasketFeeResponse>): _119.QueryBasketFeeResponse; - fromAmino(object: _119.QueryBasketFeeResponseAmino): _119.QueryBasketFeeResponse; - toAmino(message: _119.QueryBasketFeeResponse): _119.QueryBasketFeeResponseAmino; - fromAminoMsg(object: _119.QueryBasketFeeResponseAminoMsg): _119.QueryBasketFeeResponse; - fromProtoMsg(message: _119.QueryBasketFeeResponseProtoMsg): _119.QueryBasketFeeResponse; - toProto(message: _119.QueryBasketFeeResponse): Uint8Array; - toProtoMsg(message: _119.QueryBasketFeeResponse): _119.QueryBasketFeeResponseProtoMsg; - }; - EventCreate: { - typeUrl: string; - encode(message: _118.EventCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventCreate; - fromJSON(object: any): _118.EventCreate; - toJSON(message: _118.EventCreate): unknown; - fromPartial(object: Partial<_118.EventCreate>): _118.EventCreate; - fromAmino(object: _118.EventCreateAmino): _118.EventCreate; - toAmino(message: _118.EventCreate): _118.EventCreateAmino; - fromAminoMsg(object: _118.EventCreateAminoMsg): _118.EventCreate; - fromProtoMsg(message: _118.EventCreateProtoMsg): _118.EventCreate; - toProto(message: _118.EventCreate): Uint8Array; - toProtoMsg(message: _118.EventCreate): _118.EventCreateProtoMsg; - }; - EventPut: { - typeUrl: string; - encode(message: _118.EventPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventPut; - fromJSON(object: any): _118.EventPut; - toJSON(message: _118.EventPut): unknown; - fromPartial(object: Partial<_118.EventPut>): _118.EventPut; - fromAmino(object: _118.EventPutAmino): _118.EventPut; - toAmino(message: _118.EventPut): _118.EventPutAmino; - fromAminoMsg(object: _118.EventPutAminoMsg): _118.EventPut; - fromProtoMsg(message: _118.EventPutProtoMsg): _118.EventPut; - toProto(message: _118.EventPut): Uint8Array; - toProtoMsg(message: _118.EventPut): _118.EventPutProtoMsg; - }; - EventTake: { - typeUrl: string; - encode(message: _118.EventTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventTake; - fromJSON(object: any): _118.EventTake; - toJSON(message: _118.EventTake): unknown; - fromPartial(object: Partial<_118.EventTake>): _118.EventTake; - fromAmino(object: _118.EventTakeAmino): _118.EventTake; - toAmino(message: _118.EventTake): _118.EventTakeAmino; - fromAminoMsg(object: _118.EventTakeAminoMsg): _118.EventTake; - fromProtoMsg(message: _118.EventTakeProtoMsg): _118.EventTake; - toProto(message: _118.EventTake): Uint8Array; - toProtoMsg(message: _118.EventTake): _118.EventTakeProtoMsg; - }; - EventUpdateCurator: { - typeUrl: string; - encode(message: _118.EventUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventUpdateCurator; - fromJSON(object: any): _118.EventUpdateCurator; - toJSON(message: _118.EventUpdateCurator): unknown; - fromPartial(object: Partial<_118.EventUpdateCurator>): _118.EventUpdateCurator; - fromAmino(object: _118.EventUpdateCuratorAmino): _118.EventUpdateCurator; - toAmino(message: _118.EventUpdateCurator): _118.EventUpdateCuratorAmino; - fromAminoMsg(object: _118.EventUpdateCuratorAminoMsg): _118.EventUpdateCurator; - fromProtoMsg(message: _118.EventUpdateCuratorProtoMsg): _118.EventUpdateCurator; - toProto(message: _118.EventUpdateCurator): Uint8Array; - toProtoMsg(message: _118.EventUpdateCurator): _118.EventUpdateCuratorProtoMsg; - }; - EventUpdateDateCriteria: { - typeUrl: string; - encode(message: _118.EventUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _118.EventUpdateDateCriteria; - fromJSON(object: any): _118.EventUpdateDateCriteria; - toJSON(message: _118.EventUpdateDateCriteria): unknown; - fromPartial(object: Partial<_118.EventUpdateDateCriteria>): _118.EventUpdateDateCriteria; - fromAmino(object: _118.EventUpdateDateCriteriaAmino): _118.EventUpdateDateCriteria; - toAmino(message: _118.EventUpdateDateCriteria): _118.EventUpdateDateCriteriaAmino; - fromAminoMsg(object: _118.EventUpdateDateCriteriaAminoMsg): _118.EventUpdateDateCriteria; - fromProtoMsg(message: _118.EventUpdateDateCriteriaProtoMsg): _118.EventUpdateDateCriteria; - toProto(message: _118.EventUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _118.EventUpdateDateCriteria): _118.EventUpdateDateCriteriaProtoMsg; - }; - }; - } - namespace marketplace { - const v1: { - MsgClientImpl: typeof _267.MsgClientImpl; - QueryClientImpl: typeof _261.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - sellOrder(request: _124.QuerySellOrderRequest): Promise<_124.QuerySellOrderResponse>; - sellOrders(request?: _124.QuerySellOrdersRequest | undefined): Promise<_124.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _124.QuerySellOrdersByBatchRequest): Promise<_124.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _124.QuerySellOrdersBySellerRequest): Promise<_124.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _124.QueryAllowedDenomsRequest | undefined): Promise<_124.QueryAllowedDenomsResponse>; - }; - LCDQueryClient: typeof _255.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - sell(value: _126.MsgSell): { - typeUrl: string; - value: Uint8Array; - }; - updateSellOrders(value: _126.MsgUpdateSellOrders): { - typeUrl: string; - value: Uint8Array; - }; - cancelSellOrder(value: _126.MsgCancelSellOrder): { - typeUrl: string; - value: Uint8Array; - }; - buyDirect(value: _126.MsgBuyDirect): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedDenom(value: _126.MsgAddAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - sell(value: _126.MsgSell): { - typeUrl: string; - value: _126.MsgSell; - }; - updateSellOrders(value: _126.MsgUpdateSellOrders): { - typeUrl: string; - value: _126.MsgUpdateSellOrders; - }; - cancelSellOrder(value: _126.MsgCancelSellOrder): { - typeUrl: string; - value: _126.MsgCancelSellOrder; - }; - buyDirect(value: _126.MsgBuyDirect): { - typeUrl: string; - value: _126.MsgBuyDirect; - }; - addAllowedDenom(value: _126.MsgAddAllowedDenom): { - typeUrl: string; - value: _126.MsgAddAllowedDenom; - }; - removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { - typeUrl: string; - value: _126.MsgRemoveAllowedDenom; - }; - }; - toJSON: { - sell(value: _126.MsgSell): { - typeUrl: string; - value: unknown; - }; - updateSellOrders(value: _126.MsgUpdateSellOrders): { - typeUrl: string; - value: unknown; - }; - cancelSellOrder(value: _126.MsgCancelSellOrder): { - typeUrl: string; - value: unknown; - }; - buyDirect(value: _126.MsgBuyDirect): { - typeUrl: string; - value: unknown; - }; - addAllowedDenom(value: _126.MsgAddAllowedDenom): { - typeUrl: string; - value: unknown; - }; - removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - sell(value: any): { - typeUrl: string; - value: _126.MsgSell; - }; - updateSellOrders(value: any): { - typeUrl: string; - value: _126.MsgUpdateSellOrders; - }; - cancelSellOrder(value: any): { - typeUrl: string; - value: _126.MsgCancelSellOrder; - }; - buyDirect(value: any): { - typeUrl: string; - value: _126.MsgBuyDirect; - }; - addAllowedDenom(value: any): { - typeUrl: string; - value: _126.MsgAddAllowedDenom; - }; - removeAllowedDenom(value: any): { - typeUrl: string; - value: _126.MsgRemoveAllowedDenom; - }; - }; - fromPartial: { - sell(value: _126.MsgSell): { - typeUrl: string; - value: _126.MsgSell; - }; - updateSellOrders(value: _126.MsgUpdateSellOrders): { - typeUrl: string; - value: _126.MsgUpdateSellOrders; - }; - cancelSellOrder(value: _126.MsgCancelSellOrder): { - typeUrl: string; - value: _126.MsgCancelSellOrder; - }; - buyDirect(value: _126.MsgBuyDirect): { - typeUrl: string; - value: _126.MsgBuyDirect; - }; - addAllowedDenom(value: _126.MsgAddAllowedDenom): { - typeUrl: string; - value: _126.MsgAddAllowedDenom; - }; - removeAllowedDenom(value: _126.MsgRemoveAllowedDenom): { - typeUrl: string; - value: _126.MsgRemoveAllowedDenom; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: _126.MsgSell) => _126.MsgSellAmino; - fromAmino: (object: _126.MsgSellAmino) => _126.MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: _126.MsgUpdateSellOrders) => _126.MsgUpdateSellOrdersAmino; - fromAmino: (object: _126.MsgUpdateSellOrdersAmino) => _126.MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: _126.MsgCancelSellOrder) => _126.MsgCancelSellOrderAmino; - fromAmino: (object: _126.MsgCancelSellOrderAmino) => _126.MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: _126.MsgBuyDirect) => _126.MsgBuyDirectAmino; - fromAmino: (object: _126.MsgBuyDirectAmino) => _126.MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: _126.MsgAddAllowedDenom) => _126.MsgAddAllowedDenomAmino; - fromAmino: (object: _126.MsgAddAllowedDenomAmino) => _126.MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: _126.MsgRemoveAllowedDenom) => _126.MsgRemoveAllowedDenomAmino; - fromAmino: (object: _126.MsgRemoveAllowedDenomAmino) => _126.MsgRemoveAllowedDenom; - }; - }; - AllowDenomProposal: { - typeUrl: string; - encode(message: _127.AllowDenomProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _127.AllowDenomProposal; - fromJSON(object: any): _127.AllowDenomProposal; - toJSON(message: _127.AllowDenomProposal): unknown; - fromPartial(object: Partial<_127.AllowDenomProposal>): _127.AllowDenomProposal; - fromAmino(object: _127.AllowDenomProposalAmino): _127.AllowDenomProposal; - toAmino(message: _127.AllowDenomProposal): _127.AllowDenomProposalAmino; - fromAminoMsg(object: _127.AllowDenomProposalAminoMsg): _127.AllowDenomProposal; - fromProtoMsg(message: _127.AllowDenomProposalProtoMsg): _127.AllowDenomProposal; - toProto(message: _127.AllowDenomProposal): Uint8Array; - toProtoMsg(message: _127.AllowDenomProposal): _127.AllowDenomProposalProtoMsg; - }; - MsgSell: { - typeUrl: string; - encode(message: _126.MsgSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSell; - fromJSON(object: any): _126.MsgSell; - toJSON(message: _126.MsgSell): unknown; - fromPartial(object: Partial<_126.MsgSell>): _126.MsgSell; - fromAmino(object: _126.MsgSellAmino): _126.MsgSell; - toAmino(message: _126.MsgSell): _126.MsgSellAmino; - fromAminoMsg(object: _126.MsgSellAminoMsg): _126.MsgSell; - toAminoMsg(message: _126.MsgSell): _126.MsgSellAminoMsg; - fromProtoMsg(message: _126.MsgSellProtoMsg): _126.MsgSell; - toProto(message: _126.MsgSell): Uint8Array; - toProtoMsg(message: _126.MsgSell): _126.MsgSellProtoMsg; - }; - MsgSell_Order: { - typeUrl: string; - encode(message: _126.MsgSell_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSell_Order; - fromJSON(object: any): _126.MsgSell_Order; - toJSON(message: _126.MsgSell_Order): unknown; - fromPartial(object: Partial<_126.MsgSell_Order>): _126.MsgSell_Order; - fromAmino(object: _126.MsgSell_OrderAmino): _126.MsgSell_Order; - toAmino(message: _126.MsgSell_Order): _126.MsgSell_OrderAmino; - fromAminoMsg(object: _126.MsgSell_OrderAminoMsg): _126.MsgSell_Order; - fromProtoMsg(message: _126.MsgSell_OrderProtoMsg): _126.MsgSell_Order; - toProto(message: _126.MsgSell_Order): Uint8Array; - toProtoMsg(message: _126.MsgSell_Order): _126.MsgSell_OrderProtoMsg; - }; - MsgSellResponse: { - typeUrl: string; - encode(message: _126.MsgSellResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgSellResponse; - fromJSON(object: any): _126.MsgSellResponse; - toJSON(message: _126.MsgSellResponse): unknown; - fromPartial(object: Partial<_126.MsgSellResponse>): _126.MsgSellResponse; - fromAmino(object: _126.MsgSellResponseAmino): _126.MsgSellResponse; - toAmino(message: _126.MsgSellResponse): _126.MsgSellResponseAmino; - fromAminoMsg(object: _126.MsgSellResponseAminoMsg): _126.MsgSellResponse; - fromProtoMsg(message: _126.MsgSellResponseProtoMsg): _126.MsgSellResponse; - toProto(message: _126.MsgSellResponse): Uint8Array; - toProtoMsg(message: _126.MsgSellResponse): _126.MsgSellResponseProtoMsg; - }; - MsgUpdateSellOrders: { - typeUrl: string; - encode(message: _126.MsgUpdateSellOrders, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrders; - fromJSON(object: any): _126.MsgUpdateSellOrders; - toJSON(message: _126.MsgUpdateSellOrders): unknown; - fromPartial(object: Partial<_126.MsgUpdateSellOrders>): _126.MsgUpdateSellOrders; - fromAmino(object: _126.MsgUpdateSellOrdersAmino): _126.MsgUpdateSellOrders; - toAmino(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersAmino; - fromAminoMsg(object: _126.MsgUpdateSellOrdersAminoMsg): _126.MsgUpdateSellOrders; - toAminoMsg(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersAminoMsg; - fromProtoMsg(message: _126.MsgUpdateSellOrdersProtoMsg): _126.MsgUpdateSellOrders; - toProto(message: _126.MsgUpdateSellOrders): Uint8Array; - toProtoMsg(message: _126.MsgUpdateSellOrders): _126.MsgUpdateSellOrdersProtoMsg; - }; - MsgUpdateSellOrders_Update: { - typeUrl: string; - encode(message: _126.MsgUpdateSellOrders_Update, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrders_Update; - fromJSON(object: any): _126.MsgUpdateSellOrders_Update; - toJSON(message: _126.MsgUpdateSellOrders_Update): unknown; - fromPartial(object: Partial<_126.MsgUpdateSellOrders_Update>): _126.MsgUpdateSellOrders_Update; - fromAmino(object: _126.MsgUpdateSellOrders_UpdateAmino): _126.MsgUpdateSellOrders_Update; - toAmino(message: _126.MsgUpdateSellOrders_Update): _126.MsgUpdateSellOrders_UpdateAmino; - fromAminoMsg(object: _126.MsgUpdateSellOrders_UpdateAminoMsg): _126.MsgUpdateSellOrders_Update; - fromProtoMsg(message: _126.MsgUpdateSellOrders_UpdateProtoMsg): _126.MsgUpdateSellOrders_Update; - toProto(message: _126.MsgUpdateSellOrders_Update): Uint8Array; - toProtoMsg(message: _126.MsgUpdateSellOrders_Update): _126.MsgUpdateSellOrders_UpdateProtoMsg; - }; - MsgUpdateSellOrdersResponse: { - typeUrl: string; - encode(_: _126.MsgUpdateSellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgUpdateSellOrdersResponse; - fromJSON(_: any): _126.MsgUpdateSellOrdersResponse; - toJSON(_: _126.MsgUpdateSellOrdersResponse): unknown; - fromPartial(_: Partial<_126.MsgUpdateSellOrdersResponse>): _126.MsgUpdateSellOrdersResponse; - fromAmino(_: _126.MsgUpdateSellOrdersResponseAmino): _126.MsgUpdateSellOrdersResponse; - toAmino(_: _126.MsgUpdateSellOrdersResponse): _126.MsgUpdateSellOrdersResponseAmino; - fromAminoMsg(object: _126.MsgUpdateSellOrdersResponseAminoMsg): _126.MsgUpdateSellOrdersResponse; - fromProtoMsg(message: _126.MsgUpdateSellOrdersResponseProtoMsg): _126.MsgUpdateSellOrdersResponse; - toProto(message: _126.MsgUpdateSellOrdersResponse): Uint8Array; - toProtoMsg(message: _126.MsgUpdateSellOrdersResponse): _126.MsgUpdateSellOrdersResponseProtoMsg; - }; - MsgCancelSellOrder: { - typeUrl: string; - encode(message: _126.MsgCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgCancelSellOrder; - fromJSON(object: any): _126.MsgCancelSellOrder; - toJSON(message: _126.MsgCancelSellOrder): unknown; - fromPartial(object: Partial<_126.MsgCancelSellOrder>): _126.MsgCancelSellOrder; - fromAmino(object: _126.MsgCancelSellOrderAmino): _126.MsgCancelSellOrder; - toAmino(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderAmino; - fromAminoMsg(object: _126.MsgCancelSellOrderAminoMsg): _126.MsgCancelSellOrder; - toAminoMsg(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderAminoMsg; - fromProtoMsg(message: _126.MsgCancelSellOrderProtoMsg): _126.MsgCancelSellOrder; - toProto(message: _126.MsgCancelSellOrder): Uint8Array; - toProtoMsg(message: _126.MsgCancelSellOrder): _126.MsgCancelSellOrderProtoMsg; - }; - MsgCancelSellOrderResponse: { - typeUrl: string; - encode(_: _126.MsgCancelSellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgCancelSellOrderResponse; - fromJSON(_: any): _126.MsgCancelSellOrderResponse; - toJSON(_: _126.MsgCancelSellOrderResponse): unknown; - fromPartial(_: Partial<_126.MsgCancelSellOrderResponse>): _126.MsgCancelSellOrderResponse; - fromAmino(_: _126.MsgCancelSellOrderResponseAmino): _126.MsgCancelSellOrderResponse; - toAmino(_: _126.MsgCancelSellOrderResponse): _126.MsgCancelSellOrderResponseAmino; - fromAminoMsg(object: _126.MsgCancelSellOrderResponseAminoMsg): _126.MsgCancelSellOrderResponse; - fromProtoMsg(message: _126.MsgCancelSellOrderResponseProtoMsg): _126.MsgCancelSellOrderResponse; - toProto(message: _126.MsgCancelSellOrderResponse): Uint8Array; - toProtoMsg(message: _126.MsgCancelSellOrderResponse): _126.MsgCancelSellOrderResponseProtoMsg; - }; - MsgBuyDirect: { - typeUrl: string; - encode(message: _126.MsgBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirect; - fromJSON(object: any): _126.MsgBuyDirect; - toJSON(message: _126.MsgBuyDirect): unknown; - fromPartial(object: Partial<_126.MsgBuyDirect>): _126.MsgBuyDirect; - fromAmino(object: _126.MsgBuyDirectAmino): _126.MsgBuyDirect; - toAmino(message: _126.MsgBuyDirect): _126.MsgBuyDirectAmino; - fromAminoMsg(object: _126.MsgBuyDirectAminoMsg): _126.MsgBuyDirect; - toAminoMsg(message: _126.MsgBuyDirect): _126.MsgBuyDirectAminoMsg; - fromProtoMsg(message: _126.MsgBuyDirectProtoMsg): _126.MsgBuyDirect; - toProto(message: _126.MsgBuyDirect): Uint8Array; - toProtoMsg(message: _126.MsgBuyDirect): _126.MsgBuyDirectProtoMsg; - }; - MsgBuyDirect_Order: { - typeUrl: string; - encode(message: _126.MsgBuyDirect_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirect_Order; - fromJSON(object: any): _126.MsgBuyDirect_Order; - toJSON(message: _126.MsgBuyDirect_Order): unknown; - fromPartial(object: Partial<_126.MsgBuyDirect_Order>): _126.MsgBuyDirect_Order; - fromAmino(object: _126.MsgBuyDirect_OrderAmino): _126.MsgBuyDirect_Order; - toAmino(message: _126.MsgBuyDirect_Order): _126.MsgBuyDirect_OrderAmino; - fromAminoMsg(object: _126.MsgBuyDirect_OrderAminoMsg): _126.MsgBuyDirect_Order; - fromProtoMsg(message: _126.MsgBuyDirect_OrderProtoMsg): _126.MsgBuyDirect_Order; - toProto(message: _126.MsgBuyDirect_Order): Uint8Array; - toProtoMsg(message: _126.MsgBuyDirect_Order): _126.MsgBuyDirect_OrderProtoMsg; - }; - MsgBuyDirectResponse: { - typeUrl: string; - encode(_: _126.MsgBuyDirectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgBuyDirectResponse; - fromJSON(_: any): _126.MsgBuyDirectResponse; - toJSON(_: _126.MsgBuyDirectResponse): unknown; - fromPartial(_: Partial<_126.MsgBuyDirectResponse>): _126.MsgBuyDirectResponse; - fromAmino(_: _126.MsgBuyDirectResponseAmino): _126.MsgBuyDirectResponse; - toAmino(_: _126.MsgBuyDirectResponse): _126.MsgBuyDirectResponseAmino; - fromAminoMsg(object: _126.MsgBuyDirectResponseAminoMsg): _126.MsgBuyDirectResponse; - fromProtoMsg(message: _126.MsgBuyDirectResponseProtoMsg): _126.MsgBuyDirectResponse; - toProto(message: _126.MsgBuyDirectResponse): Uint8Array; - toProtoMsg(message: _126.MsgBuyDirectResponse): _126.MsgBuyDirectResponseProtoMsg; - }; - MsgAddAllowedDenom: { - typeUrl: string; - encode(message: _126.MsgAddAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgAddAllowedDenom; - fromJSON(object: any): _126.MsgAddAllowedDenom; - toJSON(message: _126.MsgAddAllowedDenom): unknown; - fromPartial(object: Partial<_126.MsgAddAllowedDenom>): _126.MsgAddAllowedDenom; - fromAmino(object: _126.MsgAddAllowedDenomAmino): _126.MsgAddAllowedDenom; - toAmino(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomAmino; - fromAminoMsg(object: _126.MsgAddAllowedDenomAminoMsg): _126.MsgAddAllowedDenom; - toAminoMsg(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomAminoMsg; - fromProtoMsg(message: _126.MsgAddAllowedDenomProtoMsg): _126.MsgAddAllowedDenom; - toProto(message: _126.MsgAddAllowedDenom): Uint8Array; - toProtoMsg(message: _126.MsgAddAllowedDenom): _126.MsgAddAllowedDenomProtoMsg; - }; - MsgAddAllowedDenomResponse: { - typeUrl: string; - encode(_: _126.MsgAddAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgAddAllowedDenomResponse; - fromJSON(_: any): _126.MsgAddAllowedDenomResponse; - toJSON(_: _126.MsgAddAllowedDenomResponse): unknown; - fromPartial(_: Partial<_126.MsgAddAllowedDenomResponse>): _126.MsgAddAllowedDenomResponse; - fromAmino(_: _126.MsgAddAllowedDenomResponseAmino): _126.MsgAddAllowedDenomResponse; - toAmino(_: _126.MsgAddAllowedDenomResponse): _126.MsgAddAllowedDenomResponseAmino; - fromAminoMsg(object: _126.MsgAddAllowedDenomResponseAminoMsg): _126.MsgAddAllowedDenomResponse; - fromProtoMsg(message: _126.MsgAddAllowedDenomResponseProtoMsg): _126.MsgAddAllowedDenomResponse; - toProto(message: _126.MsgAddAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _126.MsgAddAllowedDenomResponse): _126.MsgAddAllowedDenomResponseProtoMsg; - }; - MsgRemoveAllowedDenom: { - typeUrl: string; - encode(message: _126.MsgRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgRemoveAllowedDenom; - fromJSON(object: any): _126.MsgRemoveAllowedDenom; - toJSON(message: _126.MsgRemoveAllowedDenom): unknown; - fromPartial(object: Partial<_126.MsgRemoveAllowedDenom>): _126.MsgRemoveAllowedDenom; - fromAmino(object: _126.MsgRemoveAllowedDenomAmino): _126.MsgRemoveAllowedDenom; - toAmino(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomAmino; - fromAminoMsg(object: _126.MsgRemoveAllowedDenomAminoMsg): _126.MsgRemoveAllowedDenom; - toAminoMsg(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomAminoMsg; - fromProtoMsg(message: _126.MsgRemoveAllowedDenomProtoMsg): _126.MsgRemoveAllowedDenom; - toProto(message: _126.MsgRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _126.MsgRemoveAllowedDenom): _126.MsgRemoveAllowedDenomProtoMsg; - }; - MsgRemoveAllowedDenomResponse: { - typeUrl: string; - encode(_: _126.MsgRemoveAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _126.MsgRemoveAllowedDenomResponse; - fromJSON(_: any): _126.MsgRemoveAllowedDenomResponse; - toJSON(_: _126.MsgRemoveAllowedDenomResponse): unknown; - fromPartial(_: Partial<_126.MsgRemoveAllowedDenomResponse>): _126.MsgRemoveAllowedDenomResponse; - fromAmino(_: _126.MsgRemoveAllowedDenomResponseAmino): _126.MsgRemoveAllowedDenomResponse; - toAmino(_: _126.MsgRemoveAllowedDenomResponse): _126.MsgRemoveAllowedDenomResponseAmino; - fromAminoMsg(object: _126.MsgRemoveAllowedDenomResponseAminoMsg): _126.MsgRemoveAllowedDenomResponse; - fromProtoMsg(message: _126.MsgRemoveAllowedDenomResponseProtoMsg): _126.MsgRemoveAllowedDenomResponse; - toProto(message: _126.MsgRemoveAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _126.MsgRemoveAllowedDenomResponse): _126.MsgRemoveAllowedDenomResponseProtoMsg; - }; - SellOrder: { - typeUrl: string; - encode(message: _125.SellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.SellOrder; - fromJSON(object: any): _125.SellOrder; - toJSON(message: _125.SellOrder): unknown; - fromPartial(object: Partial<_125.SellOrder>): _125.SellOrder; - fromAmino(object: _125.SellOrderAmino): _125.SellOrder; - toAmino(message: _125.SellOrder): _125.SellOrderAmino; - fromAminoMsg(object: _125.SellOrderAminoMsg): _125.SellOrder; - fromProtoMsg(message: _125.SellOrderProtoMsg): _125.SellOrder; - toProto(message: _125.SellOrder): Uint8Array; - toProtoMsg(message: _125.SellOrder): _125.SellOrderProtoMsg; - }; - AllowedDenom: { - typeUrl: string; - encode(message: _125.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.AllowedDenom; - fromJSON(object: any): _125.AllowedDenom; - toJSON(message: _125.AllowedDenom): unknown; - fromPartial(object: Partial<_125.AllowedDenom>): _125.AllowedDenom; - fromAmino(object: _125.AllowedDenomAmino): _125.AllowedDenom; - toAmino(message: _125.AllowedDenom): _125.AllowedDenomAmino; - fromAminoMsg(object: _125.AllowedDenomAminoMsg): _125.AllowedDenom; - fromProtoMsg(message: _125.AllowedDenomProtoMsg): _125.AllowedDenom; - toProto(message: _125.AllowedDenom): Uint8Array; - toProtoMsg(message: _125.AllowedDenom): _125.AllowedDenomProtoMsg; - }; - Market: { - typeUrl: string; - encode(message: _125.Market, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _125.Market; - fromJSON(object: any): _125.Market; - toJSON(message: _125.Market): unknown; - fromPartial(object: Partial<_125.Market>): _125.Market; - fromAmino(object: _125.MarketAmino): _125.Market; - toAmino(message: _125.Market): _125.MarketAmino; - fromAminoMsg(object: _125.MarketAminoMsg): _125.Market; - fromProtoMsg(message: _125.MarketProtoMsg): _125.Market; - toProto(message: _125.Market): Uint8Array; - toProtoMsg(message: _125.Market): _125.MarketProtoMsg; - }; - QuerySellOrderRequest: { - typeUrl: string; - encode(message: _124.QuerySellOrderRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrderRequest; - fromJSON(object: any): _124.QuerySellOrderRequest; - toJSON(message: _124.QuerySellOrderRequest): unknown; - fromPartial(object: Partial<_124.QuerySellOrderRequest>): _124.QuerySellOrderRequest; - fromAmino(object: _124.QuerySellOrderRequestAmino): _124.QuerySellOrderRequest; - toAmino(message: _124.QuerySellOrderRequest): _124.QuerySellOrderRequestAmino; - fromAminoMsg(object: _124.QuerySellOrderRequestAminoMsg): _124.QuerySellOrderRequest; - fromProtoMsg(message: _124.QuerySellOrderRequestProtoMsg): _124.QuerySellOrderRequest; - toProto(message: _124.QuerySellOrderRequest): Uint8Array; - toProtoMsg(message: _124.QuerySellOrderRequest): _124.QuerySellOrderRequestProtoMsg; - }; - QuerySellOrderResponse: { - typeUrl: string; - encode(message: _124.QuerySellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrderResponse; - fromJSON(object: any): _124.QuerySellOrderResponse; - toJSON(message: _124.QuerySellOrderResponse): unknown; - fromPartial(object: Partial<_124.QuerySellOrderResponse>): _124.QuerySellOrderResponse; - fromAmino(object: _124.QuerySellOrderResponseAmino): _124.QuerySellOrderResponse; - toAmino(message: _124.QuerySellOrderResponse): _124.QuerySellOrderResponseAmino; - fromAminoMsg(object: _124.QuerySellOrderResponseAminoMsg): _124.QuerySellOrderResponse; - fromProtoMsg(message: _124.QuerySellOrderResponseProtoMsg): _124.QuerySellOrderResponse; - toProto(message: _124.QuerySellOrderResponse): Uint8Array; - toProtoMsg(message: _124.QuerySellOrderResponse): _124.QuerySellOrderResponseProtoMsg; - }; - QuerySellOrdersRequest: { - typeUrl: string; - encode(message: _124.QuerySellOrdersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersRequest; - fromJSON(object: any): _124.QuerySellOrdersRequest; - toJSON(message: _124.QuerySellOrdersRequest): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersRequest>): _124.QuerySellOrdersRequest; - fromAmino(object: _124.QuerySellOrdersRequestAmino): _124.QuerySellOrdersRequest; - toAmino(message: _124.QuerySellOrdersRequest): _124.QuerySellOrdersRequestAmino; - fromAminoMsg(object: _124.QuerySellOrdersRequestAminoMsg): _124.QuerySellOrdersRequest; - fromProtoMsg(message: _124.QuerySellOrdersRequestProtoMsg): _124.QuerySellOrdersRequest; - toProto(message: _124.QuerySellOrdersRequest): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersRequest): _124.QuerySellOrdersRequestProtoMsg; - }; - QuerySellOrdersResponse: { - typeUrl: string; - encode(message: _124.QuerySellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersResponse; - fromJSON(object: any): _124.QuerySellOrdersResponse; - toJSON(message: _124.QuerySellOrdersResponse): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersResponse>): _124.QuerySellOrdersResponse; - fromAmino(object: _124.QuerySellOrdersResponseAmino): _124.QuerySellOrdersResponse; - toAmino(message: _124.QuerySellOrdersResponse): _124.QuerySellOrdersResponseAmino; - fromAminoMsg(object: _124.QuerySellOrdersResponseAminoMsg): _124.QuerySellOrdersResponse; - fromProtoMsg(message: _124.QuerySellOrdersResponseProtoMsg): _124.QuerySellOrdersResponse; - toProto(message: _124.QuerySellOrdersResponse): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersResponse): _124.QuerySellOrdersResponseProtoMsg; - }; - QuerySellOrdersByBatchRequest: { - typeUrl: string; - encode(message: _124.QuerySellOrdersByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersByBatchRequest; - fromJSON(object: any): _124.QuerySellOrdersByBatchRequest; - toJSON(message: _124.QuerySellOrdersByBatchRequest): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersByBatchRequest>): _124.QuerySellOrdersByBatchRequest; - fromAmino(object: _124.QuerySellOrdersByBatchRequestAmino): _124.QuerySellOrdersByBatchRequest; - toAmino(message: _124.QuerySellOrdersByBatchRequest): _124.QuerySellOrdersByBatchRequestAmino; - fromAminoMsg(object: _124.QuerySellOrdersByBatchRequestAminoMsg): _124.QuerySellOrdersByBatchRequest; - fromProtoMsg(message: _124.QuerySellOrdersByBatchRequestProtoMsg): _124.QuerySellOrdersByBatchRequest; - toProto(message: _124.QuerySellOrdersByBatchRequest): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersByBatchRequest): _124.QuerySellOrdersByBatchRequestProtoMsg; - }; - QuerySellOrdersByBatchResponse: { - typeUrl: string; - encode(message: _124.QuerySellOrdersByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersByBatchResponse; - fromJSON(object: any): _124.QuerySellOrdersByBatchResponse; - toJSON(message: _124.QuerySellOrdersByBatchResponse): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersByBatchResponse>): _124.QuerySellOrdersByBatchResponse; - fromAmino(object: _124.QuerySellOrdersByBatchResponseAmino): _124.QuerySellOrdersByBatchResponse; - toAmino(message: _124.QuerySellOrdersByBatchResponse): _124.QuerySellOrdersByBatchResponseAmino; - fromAminoMsg(object: _124.QuerySellOrdersByBatchResponseAminoMsg): _124.QuerySellOrdersByBatchResponse; - fromProtoMsg(message: _124.QuerySellOrdersByBatchResponseProtoMsg): _124.QuerySellOrdersByBatchResponse; - toProto(message: _124.QuerySellOrdersByBatchResponse): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersByBatchResponse): _124.QuerySellOrdersByBatchResponseProtoMsg; - }; - QuerySellOrdersBySellerRequest: { - typeUrl: string; - encode(message: _124.QuerySellOrdersBySellerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersBySellerRequest; - fromJSON(object: any): _124.QuerySellOrdersBySellerRequest; - toJSON(message: _124.QuerySellOrdersBySellerRequest): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersBySellerRequest>): _124.QuerySellOrdersBySellerRequest; - fromAmino(object: _124.QuerySellOrdersBySellerRequestAmino): _124.QuerySellOrdersBySellerRequest; - toAmino(message: _124.QuerySellOrdersBySellerRequest): _124.QuerySellOrdersBySellerRequestAmino; - fromAminoMsg(object: _124.QuerySellOrdersBySellerRequestAminoMsg): _124.QuerySellOrdersBySellerRequest; - fromProtoMsg(message: _124.QuerySellOrdersBySellerRequestProtoMsg): _124.QuerySellOrdersBySellerRequest; - toProto(message: _124.QuerySellOrdersBySellerRequest): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersBySellerRequest): _124.QuerySellOrdersBySellerRequestProtoMsg; - }; - QuerySellOrdersBySellerResponse: { - typeUrl: string; - encode(message: _124.QuerySellOrdersBySellerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QuerySellOrdersBySellerResponse; - fromJSON(object: any): _124.QuerySellOrdersBySellerResponse; - toJSON(message: _124.QuerySellOrdersBySellerResponse): unknown; - fromPartial(object: Partial<_124.QuerySellOrdersBySellerResponse>): _124.QuerySellOrdersBySellerResponse; - fromAmino(object: _124.QuerySellOrdersBySellerResponseAmino): _124.QuerySellOrdersBySellerResponse; - toAmino(message: _124.QuerySellOrdersBySellerResponse): _124.QuerySellOrdersBySellerResponseAmino; - fromAminoMsg(object: _124.QuerySellOrdersBySellerResponseAminoMsg): _124.QuerySellOrdersBySellerResponse; - fromProtoMsg(message: _124.QuerySellOrdersBySellerResponseProtoMsg): _124.QuerySellOrdersBySellerResponse; - toProto(message: _124.QuerySellOrdersBySellerResponse): Uint8Array; - toProtoMsg(message: _124.QuerySellOrdersBySellerResponse): _124.QuerySellOrdersBySellerResponseProtoMsg; - }; - QueryAllowedDenomsRequest: { - typeUrl: string; - encode(message: _124.QueryAllowedDenomsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QueryAllowedDenomsRequest; - fromJSON(object: any): _124.QueryAllowedDenomsRequest; - toJSON(message: _124.QueryAllowedDenomsRequest): unknown; - fromPartial(object: Partial<_124.QueryAllowedDenomsRequest>): _124.QueryAllowedDenomsRequest; - fromAmino(object: _124.QueryAllowedDenomsRequestAmino): _124.QueryAllowedDenomsRequest; - toAmino(message: _124.QueryAllowedDenomsRequest): _124.QueryAllowedDenomsRequestAmino; - fromAminoMsg(object: _124.QueryAllowedDenomsRequestAminoMsg): _124.QueryAllowedDenomsRequest; - fromProtoMsg(message: _124.QueryAllowedDenomsRequestProtoMsg): _124.QueryAllowedDenomsRequest; - toProto(message: _124.QueryAllowedDenomsRequest): Uint8Array; - toProtoMsg(message: _124.QueryAllowedDenomsRequest): _124.QueryAllowedDenomsRequestProtoMsg; - }; - QueryAllowedDenomsResponse: { - typeUrl: string; - encode(message: _124.QueryAllowedDenomsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.QueryAllowedDenomsResponse; - fromJSON(object: any): _124.QueryAllowedDenomsResponse; - toJSON(message: _124.QueryAllowedDenomsResponse): unknown; - fromPartial(object: Partial<_124.QueryAllowedDenomsResponse>): _124.QueryAllowedDenomsResponse; - fromAmino(object: _124.QueryAllowedDenomsResponseAmino): _124.QueryAllowedDenomsResponse; - toAmino(message: _124.QueryAllowedDenomsResponse): _124.QueryAllowedDenomsResponseAmino; - fromAminoMsg(object: _124.QueryAllowedDenomsResponseAminoMsg): _124.QueryAllowedDenomsResponse; - fromProtoMsg(message: _124.QueryAllowedDenomsResponseProtoMsg): _124.QueryAllowedDenomsResponse; - toProto(message: _124.QueryAllowedDenomsResponse): Uint8Array; - toProtoMsg(message: _124.QueryAllowedDenomsResponse): _124.QueryAllowedDenomsResponseProtoMsg; - }; - SellOrderInfo: { - typeUrl: string; - encode(message: _124.SellOrderInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _124.SellOrderInfo; - fromJSON(object: any): _124.SellOrderInfo; - toJSON(message: _124.SellOrderInfo): unknown; - fromPartial(object: Partial<_124.SellOrderInfo>): _124.SellOrderInfo; - fromAmino(object: _124.SellOrderInfoAmino): _124.SellOrderInfo; - toAmino(message: _124.SellOrderInfo): _124.SellOrderInfoAmino; - fromAminoMsg(object: _124.SellOrderInfoAminoMsg): _124.SellOrderInfo; - fromProtoMsg(message: _124.SellOrderInfoProtoMsg): _124.SellOrderInfo; - toProto(message: _124.SellOrderInfo): Uint8Array; - toProtoMsg(message: _124.SellOrderInfo): _124.SellOrderInfoProtoMsg; - }; - EventSell: { - typeUrl: string; - encode(message: _123.EventSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventSell; - fromJSON(object: any): _123.EventSell; - toJSON(message: _123.EventSell): unknown; - fromPartial(object: Partial<_123.EventSell>): _123.EventSell; - fromAmino(object: _123.EventSellAmino): _123.EventSell; - toAmino(message: _123.EventSell): _123.EventSellAmino; - fromAminoMsg(object: _123.EventSellAminoMsg): _123.EventSell; - fromProtoMsg(message: _123.EventSellProtoMsg): _123.EventSell; - toProto(message: _123.EventSell): Uint8Array; - toProtoMsg(message: _123.EventSell): _123.EventSellProtoMsg; - }; - EventBuyDirect: { - typeUrl: string; - encode(message: _123.EventBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventBuyDirect; - fromJSON(object: any): _123.EventBuyDirect; - toJSON(message: _123.EventBuyDirect): unknown; - fromPartial(object: Partial<_123.EventBuyDirect>): _123.EventBuyDirect; - fromAmino(object: _123.EventBuyDirectAmino): _123.EventBuyDirect; - toAmino(message: _123.EventBuyDirect): _123.EventBuyDirectAmino; - fromAminoMsg(object: _123.EventBuyDirectAminoMsg): _123.EventBuyDirect; - fromProtoMsg(message: _123.EventBuyDirectProtoMsg): _123.EventBuyDirect; - toProto(message: _123.EventBuyDirect): Uint8Array; - toProtoMsg(message: _123.EventBuyDirect): _123.EventBuyDirectProtoMsg; - }; - EventUpdateSellOrder: { - typeUrl: string; - encode(message: _123.EventUpdateSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventUpdateSellOrder; - fromJSON(object: any): _123.EventUpdateSellOrder; - toJSON(message: _123.EventUpdateSellOrder): unknown; - fromPartial(object: Partial<_123.EventUpdateSellOrder>): _123.EventUpdateSellOrder; - fromAmino(object: _123.EventUpdateSellOrderAmino): _123.EventUpdateSellOrder; - toAmino(message: _123.EventUpdateSellOrder): _123.EventUpdateSellOrderAmino; - fromAminoMsg(object: _123.EventUpdateSellOrderAminoMsg): _123.EventUpdateSellOrder; - fromProtoMsg(message: _123.EventUpdateSellOrderProtoMsg): _123.EventUpdateSellOrder; - toProto(message: _123.EventUpdateSellOrder): Uint8Array; - toProtoMsg(message: _123.EventUpdateSellOrder): _123.EventUpdateSellOrderProtoMsg; - }; - EventCancelSellOrder: { - typeUrl: string; - encode(message: _123.EventCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventCancelSellOrder; - fromJSON(object: any): _123.EventCancelSellOrder; - toJSON(message: _123.EventCancelSellOrder): unknown; - fromPartial(object: Partial<_123.EventCancelSellOrder>): _123.EventCancelSellOrder; - fromAmino(object: _123.EventCancelSellOrderAmino): _123.EventCancelSellOrder; - toAmino(message: _123.EventCancelSellOrder): _123.EventCancelSellOrderAmino; - fromAminoMsg(object: _123.EventCancelSellOrderAminoMsg): _123.EventCancelSellOrder; - fromProtoMsg(message: _123.EventCancelSellOrderProtoMsg): _123.EventCancelSellOrder; - toProto(message: _123.EventCancelSellOrder): Uint8Array; - toProtoMsg(message: _123.EventCancelSellOrder): _123.EventCancelSellOrderProtoMsg; - }; - EventAllowDenom: { - typeUrl: string; - encode(message: _123.EventAllowDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventAllowDenom; - fromJSON(object: any): _123.EventAllowDenom; - toJSON(message: _123.EventAllowDenom): unknown; - fromPartial(object: Partial<_123.EventAllowDenom>): _123.EventAllowDenom; - fromAmino(object: _123.EventAllowDenomAmino): _123.EventAllowDenom; - toAmino(message: _123.EventAllowDenom): _123.EventAllowDenomAmino; - fromAminoMsg(object: _123.EventAllowDenomAminoMsg): _123.EventAllowDenom; - fromProtoMsg(message: _123.EventAllowDenomProtoMsg): _123.EventAllowDenom; - toProto(message: _123.EventAllowDenom): Uint8Array; - toProtoMsg(message: _123.EventAllowDenom): _123.EventAllowDenomProtoMsg; - }; - EventRemoveAllowedDenom: { - typeUrl: string; - encode(message: _123.EventRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _123.EventRemoveAllowedDenom; - fromJSON(object: any): _123.EventRemoveAllowedDenom; - toJSON(message: _123.EventRemoveAllowedDenom): unknown; - fromPartial(object: Partial<_123.EventRemoveAllowedDenom>): _123.EventRemoveAllowedDenom; - fromAmino(object: _123.EventRemoveAllowedDenomAmino): _123.EventRemoveAllowedDenom; - toAmino(message: _123.EventRemoveAllowedDenom): _123.EventRemoveAllowedDenomAmino; - fromAminoMsg(object: _123.EventRemoveAllowedDenomAminoMsg): _123.EventRemoveAllowedDenom; - fromProtoMsg(message: _123.EventRemoveAllowedDenomProtoMsg): _123.EventRemoveAllowedDenom; - toProto(message: _123.EventRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _123.EventRemoveAllowedDenom): _123.EventRemoveAllowedDenomProtoMsg; - }; - }; - } - namespace orderbook { - const v1alpha1: { - BuyOrderSellOrderMatch: { - typeUrl: string; - encode(message: _128.BuyOrderSellOrderMatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderSellOrderMatch; - fromJSON(object: any): _128.BuyOrderSellOrderMatch; - toJSON(message: _128.BuyOrderSellOrderMatch): unknown; - fromPartial(object: Partial<_128.BuyOrderSellOrderMatch>): _128.BuyOrderSellOrderMatch; - fromAmino(object: _128.BuyOrderSellOrderMatchAmino): _128.BuyOrderSellOrderMatch; - toAmino(message: _128.BuyOrderSellOrderMatch): _128.BuyOrderSellOrderMatchAmino; - fromAminoMsg(object: _128.BuyOrderSellOrderMatchAminoMsg): _128.BuyOrderSellOrderMatch; - fromProtoMsg(message: _128.BuyOrderSellOrderMatchProtoMsg): _128.BuyOrderSellOrderMatch; - toProto(message: _128.BuyOrderSellOrderMatch): Uint8Array; - toProtoMsg(message: _128.BuyOrderSellOrderMatch): _128.BuyOrderSellOrderMatchProtoMsg; - }; - BuyOrderClassSelector: { - typeUrl: string; - encode(message: _128.BuyOrderClassSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderClassSelector; - fromJSON(object: any): _128.BuyOrderClassSelector; - toJSON(message: _128.BuyOrderClassSelector): unknown; - fromPartial(object: Partial<_128.BuyOrderClassSelector>): _128.BuyOrderClassSelector; - fromAmino(object: _128.BuyOrderClassSelectorAmino): _128.BuyOrderClassSelector; - toAmino(message: _128.BuyOrderClassSelector): _128.BuyOrderClassSelectorAmino; - fromAminoMsg(object: _128.BuyOrderClassSelectorAminoMsg): _128.BuyOrderClassSelector; - fromProtoMsg(message: _128.BuyOrderClassSelectorProtoMsg): _128.BuyOrderClassSelector; - toProto(message: _128.BuyOrderClassSelector): Uint8Array; - toProtoMsg(message: _128.BuyOrderClassSelector): _128.BuyOrderClassSelectorProtoMsg; - }; - BuyOrderProjectSelector: { - typeUrl: string; - encode(message: _128.BuyOrderProjectSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderProjectSelector; - fromJSON(object: any): _128.BuyOrderProjectSelector; - toJSON(message: _128.BuyOrderProjectSelector): unknown; - fromPartial(object: Partial<_128.BuyOrderProjectSelector>): _128.BuyOrderProjectSelector; - fromAmino(object: _128.BuyOrderProjectSelectorAmino): _128.BuyOrderProjectSelector; - toAmino(message: _128.BuyOrderProjectSelector): _128.BuyOrderProjectSelectorAmino; - fromAminoMsg(object: _128.BuyOrderProjectSelectorAminoMsg): _128.BuyOrderProjectSelector; - fromProtoMsg(message: _128.BuyOrderProjectSelectorProtoMsg): _128.BuyOrderProjectSelector; - toProto(message: _128.BuyOrderProjectSelector): Uint8Array; - toProtoMsg(message: _128.BuyOrderProjectSelector): _128.BuyOrderProjectSelectorProtoMsg; - }; - BuyOrderBatchSelector: { - typeUrl: string; - encode(message: _128.BuyOrderBatchSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _128.BuyOrderBatchSelector; - fromJSON(object: any): _128.BuyOrderBatchSelector; - toJSON(message: _128.BuyOrderBatchSelector): unknown; - fromPartial(object: Partial<_128.BuyOrderBatchSelector>): _128.BuyOrderBatchSelector; - fromAmino(object: _128.BuyOrderBatchSelectorAmino): _128.BuyOrderBatchSelector; - toAmino(message: _128.BuyOrderBatchSelector): _128.BuyOrderBatchSelectorAmino; - fromAminoMsg(object: _128.BuyOrderBatchSelectorAminoMsg): _128.BuyOrderBatchSelector; - fromProtoMsg(message: _128.BuyOrderBatchSelectorProtoMsg): _128.BuyOrderBatchSelector; - toProto(message: _128.BuyOrderBatchSelector): Uint8Array; - toProtoMsg(message: _128.BuyOrderBatchSelector): _128.BuyOrderBatchSelectorProtoMsg; - }; - }; - } - const v1: { - MsgClientImpl: typeof _268.MsgClientImpl; - QueryClientImpl: typeof _262.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _130.QueryClassesRequest | undefined): Promise<_130.QueryClassesResponse>; - classesByAdmin(request: _130.QueryClassesByAdminRequest): Promise<_130.QueryClassesByAdminResponse>; - class(request: _130.QueryClassRequest): Promise<_130.QueryClassResponse>; - classIssuers(request: _130.QueryClassIssuersRequest): Promise<_130.QueryClassIssuersResponse>; - projects(request?: _130.QueryProjectsRequest | undefined): Promise<_130.QueryProjectsResponse>; - projectsByClass(request: _130.QueryProjectsByClassRequest): Promise<_130.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _130.QueryProjectsByReferenceIdRequest): Promise<_130.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _130.QueryProjectsByAdminRequest): Promise<_130.QueryProjectsByAdminResponse>; - project(request: _130.QueryProjectRequest): Promise<_130.QueryProjectResponse>; - batches(request?: _130.QueryBatchesRequest | undefined): Promise<_130.QueryBatchesResponse>; - batchesByIssuer(request: _130.QueryBatchesByIssuerRequest): Promise<_130.QueryBatchesByIssuerResponse>; - batchesByClass(request: _130.QueryBatchesByClassRequest): Promise<_130.QueryBatchesByClassResponse>; - batchesByProject(request: _130.QueryBatchesByProjectRequest): Promise<_130.QueryBatchesByProjectResponse>; - batch(request: _130.QueryBatchRequest): Promise<_130.QueryBatchResponse>; - balance(request: _130.QueryBalanceRequest): Promise<_130.QueryBalanceResponse>; - balances(request: _130.QueryBalancesRequest): Promise<_130.QueryBalancesResponse>; - balancesByBatch(request: _130.QueryBalancesByBatchRequest): Promise<_130.QueryBalancesByBatchResponse>; - allBalances(request?: _130.QueryAllBalancesRequest | undefined): Promise<_130.QueryAllBalancesResponse>; - supply(request: _130.QuerySupplyRequest): Promise<_130.QuerySupplyResponse>; - creditTypes(request?: _130.QueryCreditTypesRequest | undefined): Promise<_130.QueryCreditTypesResponse>; - params(request?: _130.QueryParamsRequest | undefined): Promise<_130.QueryParamsResponse>; - creditType(request: _130.QueryCreditTypeRequest): Promise<_130.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _130.QueryClassCreatorAllowlistRequest | undefined): Promise<_130.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _130.QueryAllowedClassCreatorsRequest | undefined): Promise<_130.QueryAllowedClassCreatorsResponse>; - classFee(request?: _130.QueryClassFeeRequest | undefined): Promise<_130.QueryClassFeeResponse>; - allowedBridgeChains(request?: _130.QueryAllowedBridgeChainsRequest | undefined): Promise<_130.QueryAllowedBridgeChainsResponse>; - }; - LCDQueryClient: typeof _256.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClass(value: _132.MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createProject(value: _132.MsgCreateProject): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: _132.MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - mintBatchCredits(value: _132.MsgMintBatchCredits): { - typeUrl: string; - value: Uint8Array; - }; - sealBatch(value: _132.MsgSealBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: _132.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: _132.MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: _132.MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: _132.MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: _132.MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: _132.MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { - typeUrl: string; - value: Uint8Array; - }; - bridge(value: _132.MsgBridge): { - typeUrl: string; - value: Uint8Array; - }; - bridgeReceive(value: _132.MsgBridgeReceive): { - typeUrl: string; - value: Uint8Array; - }; - addCreditType(value: _132.MsgAddCreditType): { - typeUrl: string; - value: Uint8Array; - }; - setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: Uint8Array; - }; - addClassCreator(value: _132.MsgAddClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - removeClassCreator(value: _132.MsgRemoveClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - updateClassFee(value: _132.MsgUpdateClassFee): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: _132.MsgCreateClass): { - typeUrl: string; - value: _132.MsgCreateClass; - }; - createProject(value: _132.MsgCreateProject): { - typeUrl: string; - value: _132.MsgCreateProject; - }; - createBatch(value: _132.MsgCreateBatch): { - typeUrl: string; - value: _132.MsgCreateBatch; - }; - mintBatchCredits(value: _132.MsgMintBatchCredits): { - typeUrl: string; - value: _132.MsgMintBatchCredits; - }; - sealBatch(value: _132.MsgSealBatch): { - typeUrl: string; - value: _132.MsgSealBatch; - }; - send(value: _132.MsgSend): { - typeUrl: string; - value: _132.MsgSend; - }; - retire(value: _132.MsgRetire): { - typeUrl: string; - value: _132.MsgRetire; - }; - cancel(value: _132.MsgCancel): { - typeUrl: string; - value: _132.MsgCancel; - }; - updateClassAdmin(value: _132.MsgUpdateClassAdmin): { - typeUrl: string; - value: _132.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _132.MsgUpdateClassIssuers): { - typeUrl: string; - value: _132.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _132.MsgUpdateClassMetadata): { - typeUrl: string; - value: _132.MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { - typeUrl: string; - value: _132.MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { - typeUrl: string; - value: _132.MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { - typeUrl: string; - value: _132.MsgUpdateBatchMetadata; - }; - bridge(value: _132.MsgBridge): { - typeUrl: string; - value: _132.MsgBridge; - }; - bridgeReceive(value: _132.MsgBridgeReceive): { - typeUrl: string; - value: _132.MsgBridgeReceive; - }; - addCreditType(value: _132.MsgAddCreditType): { - typeUrl: string; - value: _132.MsgAddCreditType; - }; - setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: _132.MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: _132.MsgAddClassCreator): { - typeUrl: string; - value: _132.MsgAddClassCreator; - }; - removeClassCreator(value: _132.MsgRemoveClassCreator): { - typeUrl: string; - value: _132.MsgRemoveClassCreator; - }; - updateClassFee(value: _132.MsgUpdateClassFee): { - typeUrl: string; - value: _132.MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: _132.MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: _132.MsgRemoveAllowedBridgeChain; - }; - }; - toJSON: { - createClass(value: _132.MsgCreateClass): { - typeUrl: string; - value: unknown; - }; - createProject(value: _132.MsgCreateProject): { - typeUrl: string; - value: unknown; - }; - createBatch(value: _132.MsgCreateBatch): { - typeUrl: string; - value: unknown; - }; - mintBatchCredits(value: _132.MsgMintBatchCredits): { - typeUrl: string; - value: unknown; - }; - sealBatch(value: _132.MsgSealBatch): { - typeUrl: string; - value: unknown; - }; - send(value: _132.MsgSend): { - typeUrl: string; - value: unknown; - }; - retire(value: _132.MsgRetire): { - typeUrl: string; - value: unknown; - }; - cancel(value: _132.MsgCancel): { - typeUrl: string; - value: unknown; - }; - updateClassAdmin(value: _132.MsgUpdateClassAdmin): { - typeUrl: string; - value: unknown; - }; - updateClassIssuers(value: _132.MsgUpdateClassIssuers): { - typeUrl: string; - value: unknown; - }; - updateClassMetadata(value: _132.MsgUpdateClassMetadata): { - typeUrl: string; - value: unknown; - }; - updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { - typeUrl: string; - value: unknown; - }; - updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { - typeUrl: string; - value: unknown; - }; - updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { - typeUrl: string; - value: unknown; - }; - bridge(value: _132.MsgBridge): { - typeUrl: string; - value: unknown; - }; - bridgeReceive(value: _132.MsgBridgeReceive): { - typeUrl: string; - value: unknown; - }; - addCreditType(value: _132.MsgAddCreditType): { - typeUrl: string; - value: unknown; - }; - setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: unknown; - }; - addClassCreator(value: _132.MsgAddClassCreator): { - typeUrl: string; - value: unknown; - }; - removeClassCreator(value: _132.MsgRemoveClassCreator): { - typeUrl: string; - value: unknown; - }; - updateClassFee(value: _132.MsgUpdateClassFee): { - typeUrl: string; - value: unknown; - }; - addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: unknown; - }; - removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClass(value: any): { - typeUrl: string; - value: _132.MsgCreateClass; - }; - createProject(value: any): { - typeUrl: string; - value: _132.MsgCreateProject; - }; - createBatch(value: any): { - typeUrl: string; - value: _132.MsgCreateBatch; - }; - mintBatchCredits(value: any): { - typeUrl: string; - value: _132.MsgMintBatchCredits; - }; - sealBatch(value: any): { - typeUrl: string; - value: _132.MsgSealBatch; - }; - send(value: any): { - typeUrl: string; - value: _132.MsgSend; - }; - retire(value: any): { - typeUrl: string; - value: _132.MsgRetire; - }; - cancel(value: any): { - typeUrl: string; - value: _132.MsgCancel; - }; - updateClassAdmin(value: any): { - typeUrl: string; - value: _132.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: any): { - typeUrl: string; - value: _132.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: any): { - typeUrl: string; - value: _132.MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: any): { - typeUrl: string; - value: _132.MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: any): { - typeUrl: string; - value: _132.MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: any): { - typeUrl: string; - value: _132.MsgUpdateBatchMetadata; - }; - bridge(value: any): { - typeUrl: string; - value: _132.MsgBridge; - }; - bridgeReceive(value: any): { - typeUrl: string; - value: _132.MsgBridgeReceive; - }; - addCreditType(value: any): { - typeUrl: string; - value: _132.MsgAddCreditType; - }; - setClassCreatorAllowlist(value: any): { - typeUrl: string; - value: _132.MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: any): { - typeUrl: string; - value: _132.MsgAddClassCreator; - }; - removeClassCreator(value: any): { - typeUrl: string; - value: _132.MsgRemoveClassCreator; - }; - updateClassFee(value: any): { - typeUrl: string; - value: _132.MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: any): { - typeUrl: string; - value: _132.MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: any): { - typeUrl: string; - value: _132.MsgRemoveAllowedBridgeChain; - }; - }; - fromPartial: { - createClass(value: _132.MsgCreateClass): { - typeUrl: string; - value: _132.MsgCreateClass; - }; - createProject(value: _132.MsgCreateProject): { - typeUrl: string; - value: _132.MsgCreateProject; - }; - createBatch(value: _132.MsgCreateBatch): { - typeUrl: string; - value: _132.MsgCreateBatch; - }; - mintBatchCredits(value: _132.MsgMintBatchCredits): { - typeUrl: string; - value: _132.MsgMintBatchCredits; - }; - sealBatch(value: _132.MsgSealBatch): { - typeUrl: string; - value: _132.MsgSealBatch; - }; - send(value: _132.MsgSend): { - typeUrl: string; - value: _132.MsgSend; - }; - retire(value: _132.MsgRetire): { - typeUrl: string; - value: _132.MsgRetire; - }; - cancel(value: _132.MsgCancel): { - typeUrl: string; - value: _132.MsgCancel; - }; - updateClassAdmin(value: _132.MsgUpdateClassAdmin): { - typeUrl: string; - value: _132.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _132.MsgUpdateClassIssuers): { - typeUrl: string; - value: _132.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _132.MsgUpdateClassMetadata): { - typeUrl: string; - value: _132.MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: _132.MsgUpdateProjectAdmin): { - typeUrl: string; - value: _132.MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: _132.MsgUpdateProjectMetadata): { - typeUrl: string; - value: _132.MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: _132.MsgUpdateBatchMetadata): { - typeUrl: string; - value: _132.MsgUpdateBatchMetadata; - }; - bridge(value: _132.MsgBridge): { - typeUrl: string; - value: _132.MsgBridge; - }; - bridgeReceive(value: _132.MsgBridgeReceive): { - typeUrl: string; - value: _132.MsgBridgeReceive; - }; - addCreditType(value: _132.MsgAddCreditType): { - typeUrl: string; - value: _132.MsgAddCreditType; - }; - setClassCreatorAllowlist(value: _132.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: _132.MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: _132.MsgAddClassCreator): { - typeUrl: string; - value: _132.MsgAddClassCreator; - }; - removeClassCreator(value: _132.MsgRemoveClassCreator): { - typeUrl: string; - value: _132.MsgRemoveClassCreator; - }; - updateClassFee(value: _132.MsgUpdateClassFee): { - typeUrl: string; - value: _132.MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: _132.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: _132.MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: _132.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: _132.MsgRemoveAllowedBridgeChain; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: _132.MsgCreateClass) => _132.MsgCreateClassAmino; - fromAmino: (object: _132.MsgCreateClassAmino) => _132.MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: _132.MsgCreateProject) => _132.MsgCreateProjectAmino; - fromAmino: (object: _132.MsgCreateProjectAmino) => _132.MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: _132.MsgCreateBatch) => _132.MsgCreateBatchAmino; - fromAmino: (object: _132.MsgCreateBatchAmino) => _132.MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: _132.MsgMintBatchCredits) => _132.MsgMintBatchCreditsAmino; - fromAmino: (object: _132.MsgMintBatchCreditsAmino) => _132.MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: _132.MsgSealBatch) => _132.MsgSealBatchAmino; - fromAmino: (object: _132.MsgSealBatchAmino) => _132.MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: _132.MsgSend) => _132.MsgSendAmino; - fromAmino: (object: _132.MsgSendAmino) => _132.MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: _132.MsgRetire) => _132.MsgRetireAmino; - fromAmino: (object: _132.MsgRetireAmino) => _132.MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: _132.MsgCancel) => _132.MsgCancelAmino; - fromAmino: (object: _132.MsgCancelAmino) => _132.MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: _132.MsgUpdateClassAdmin) => _132.MsgUpdateClassAdminAmino; - fromAmino: (object: _132.MsgUpdateClassAdminAmino) => _132.MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: _132.MsgUpdateClassIssuers) => _132.MsgUpdateClassIssuersAmino; - fromAmino: (object: _132.MsgUpdateClassIssuersAmino) => _132.MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: _132.MsgUpdateClassMetadata) => _132.MsgUpdateClassMetadataAmino; - fromAmino: (object: _132.MsgUpdateClassMetadataAmino) => _132.MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: _132.MsgUpdateProjectAdmin) => _132.MsgUpdateProjectAdminAmino; - fromAmino: (object: _132.MsgUpdateProjectAdminAmino) => _132.MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: _132.MsgUpdateProjectMetadata) => _132.MsgUpdateProjectMetadataAmino; - fromAmino: (object: _132.MsgUpdateProjectMetadataAmino) => _132.MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: _132.MsgUpdateBatchMetadata) => _132.MsgUpdateBatchMetadataAmino; - fromAmino: (object: _132.MsgUpdateBatchMetadataAmino) => _132.MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: _132.MsgBridge) => _132.MsgBridgeAmino; - fromAmino: (object: _132.MsgBridgeAmino) => _132.MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: _132.MsgBridgeReceive) => _132.MsgBridgeReceiveAmino; - fromAmino: (object: _132.MsgBridgeReceiveAmino) => _132.MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: _132.MsgAddCreditType) => _132.MsgAddCreditTypeAmino; - fromAmino: (object: _132.MsgAddCreditTypeAmino) => _132.MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: _132.MsgSetClassCreatorAllowlist) => _132.MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: _132.MsgSetClassCreatorAllowlistAmino) => _132.MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: _132.MsgAddClassCreator) => _132.MsgAddClassCreatorAmino; - fromAmino: (object: _132.MsgAddClassCreatorAmino) => _132.MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: _132.MsgRemoveClassCreator) => _132.MsgRemoveClassCreatorAmino; - fromAmino: (object: _132.MsgRemoveClassCreatorAmino) => _132.MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: _132.MsgUpdateClassFee) => _132.MsgUpdateClassFeeAmino; - fromAmino: (object: _132.MsgUpdateClassFeeAmino) => _132.MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: _132.MsgAddAllowedBridgeChain) => _132.MsgAddAllowedBridgeChainAmino; - fromAmino: (object: _132.MsgAddAllowedBridgeChainAmino) => _132.MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: _132.MsgRemoveAllowedBridgeChain) => _132.MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: _132.MsgRemoveAllowedBridgeChainAmino) => _132.MsgRemoveAllowedBridgeChain; - }; - }; - Params: { - typeUrl: string; - encode(message: _133.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.Params; - fromJSON(object: any): _133.Params; - toJSON(message: _133.Params): unknown; - fromPartial(object: Partial<_133.Params>): _133.Params; - fromAmino(object: _133.ParamsAmino): _133.Params; - toAmino(message: _133.Params): _133.ParamsAmino; - fromAminoMsg(object: _133.ParamsAminoMsg): _133.Params; - fromProtoMsg(message: _133.ParamsProtoMsg): _133.Params; - toProto(message: _133.Params): Uint8Array; - toProtoMsg(message: _133.Params): _133.ParamsProtoMsg; - }; - Credits: { - typeUrl: string; - encode(message: _133.Credits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.Credits; - fromJSON(object: any): _133.Credits; - toJSON(message: _133.Credits): unknown; - fromPartial(object: Partial<_133.Credits>): _133.Credits; - fromAmino(object: _133.CreditsAmino): _133.Credits; - toAmino(message: _133.Credits): _133.CreditsAmino; - fromAminoMsg(object: _133.CreditsAminoMsg): _133.Credits; - fromProtoMsg(message: _133.CreditsProtoMsg): _133.Credits; - toProto(message: _133.Credits): Uint8Array; - toProtoMsg(message: _133.Credits): _133.CreditsProtoMsg; - }; - BatchIssuance: { - typeUrl: string; - encode(message: _133.BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.BatchIssuance; - fromJSON(object: any): _133.BatchIssuance; - toJSON(message: _133.BatchIssuance): unknown; - fromPartial(object: Partial<_133.BatchIssuance>): _133.BatchIssuance; - fromAmino(object: _133.BatchIssuanceAmino): _133.BatchIssuance; - toAmino(message: _133.BatchIssuance): _133.BatchIssuanceAmino; - fromAminoMsg(object: _133.BatchIssuanceAminoMsg): _133.BatchIssuance; - fromProtoMsg(message: _133.BatchIssuanceProtoMsg): _133.BatchIssuance; - toProto(message: _133.BatchIssuance): Uint8Array; - toProtoMsg(message: _133.BatchIssuance): _133.BatchIssuanceProtoMsg; - }; - OriginTx: { - typeUrl: string; - encode(message: _133.OriginTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.OriginTx; - fromJSON(object: any): _133.OriginTx; - toJSON(message: _133.OriginTx): unknown; - fromPartial(object: Partial<_133.OriginTx>): _133.OriginTx; - fromAmino(object: _133.OriginTxAmino): _133.OriginTx; - toAmino(message: _133.OriginTx): _133.OriginTxAmino; - fromAminoMsg(object: _133.OriginTxAminoMsg): _133.OriginTx; - fromProtoMsg(message: _133.OriginTxProtoMsg): _133.OriginTx; - toProto(message: _133.OriginTx): Uint8Array; - toProtoMsg(message: _133.OriginTx): _133.OriginTxProtoMsg; - }; - CreditTypeProposal: { - typeUrl: string; - encode(message: _133.CreditTypeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.CreditTypeProposal; - fromJSON(object: any): _133.CreditTypeProposal; - toJSON(message: _133.CreditTypeProposal): unknown; - fromPartial(object: Partial<_133.CreditTypeProposal>): _133.CreditTypeProposal; - fromAmino(object: _133.CreditTypeProposalAmino): _133.CreditTypeProposal; - toAmino(message: _133.CreditTypeProposal): _133.CreditTypeProposalAmino; - fromAminoMsg(object: _133.CreditTypeProposalAminoMsg): _133.CreditTypeProposal; - fromProtoMsg(message: _133.CreditTypeProposalProtoMsg): _133.CreditTypeProposal; - toProto(message: _133.CreditTypeProposal): Uint8Array; - toProtoMsg(message: _133.CreditTypeProposal): _133.CreditTypeProposalProtoMsg; - }; - AllowedDenom: { - typeUrl: string; - encode(message: _133.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _133.AllowedDenom; - fromJSON(object: any): _133.AllowedDenom; - toJSON(message: _133.AllowedDenom): unknown; - fromPartial(object: Partial<_133.AllowedDenom>): _133.AllowedDenom; - fromAmino(object: _133.AllowedDenomAmino): _133.AllowedDenom; - toAmino(message: _133.AllowedDenom): _133.AllowedDenomAmino; - fromAminoMsg(object: _133.AllowedDenomAminoMsg): _133.AllowedDenom; - fromProtoMsg(message: _133.AllowedDenomProtoMsg): _133.AllowedDenom; - toProto(message: _133.AllowedDenom): Uint8Array; - toProtoMsg(message: _133.AllowedDenom): _133.AllowedDenomProtoMsg; - }; - MsgAddCreditType: { - typeUrl: string; - encode(message: _132.MsgAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddCreditType; - fromJSON(object: any): _132.MsgAddCreditType; - toJSON(message: _132.MsgAddCreditType): unknown; - fromPartial(object: Partial<_132.MsgAddCreditType>): _132.MsgAddCreditType; - fromAmino(object: _132.MsgAddCreditTypeAmino): _132.MsgAddCreditType; - toAmino(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeAmino; - fromAminoMsg(object: _132.MsgAddCreditTypeAminoMsg): _132.MsgAddCreditType; - toAminoMsg(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeAminoMsg; - fromProtoMsg(message: _132.MsgAddCreditTypeProtoMsg): _132.MsgAddCreditType; - toProto(message: _132.MsgAddCreditType): Uint8Array; - toProtoMsg(message: _132.MsgAddCreditType): _132.MsgAddCreditTypeProtoMsg; - }; - MsgAddCreditTypeResponse: { - typeUrl: string; - encode(_: _132.MsgAddCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddCreditTypeResponse; - fromJSON(_: any): _132.MsgAddCreditTypeResponse; - toJSON(_: _132.MsgAddCreditTypeResponse): unknown; - fromPartial(_: Partial<_132.MsgAddCreditTypeResponse>): _132.MsgAddCreditTypeResponse; - fromAmino(_: _132.MsgAddCreditTypeResponseAmino): _132.MsgAddCreditTypeResponse; - toAmino(_: _132.MsgAddCreditTypeResponse): _132.MsgAddCreditTypeResponseAmino; - fromAminoMsg(object: _132.MsgAddCreditTypeResponseAminoMsg): _132.MsgAddCreditTypeResponse; - fromProtoMsg(message: _132.MsgAddCreditTypeResponseProtoMsg): _132.MsgAddCreditTypeResponse; - toProto(message: _132.MsgAddCreditTypeResponse): Uint8Array; - toProtoMsg(message: _132.MsgAddCreditTypeResponse): _132.MsgAddCreditTypeResponseProtoMsg; - }; - MsgCreateClass: { - typeUrl: string; - encode(message: _132.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateClass; - fromJSON(object: any): _132.MsgCreateClass; - toJSON(message: _132.MsgCreateClass): unknown; - fromPartial(object: Partial<_132.MsgCreateClass>): _132.MsgCreateClass; - fromAmino(object: _132.MsgCreateClassAmino): _132.MsgCreateClass; - toAmino(message: _132.MsgCreateClass): _132.MsgCreateClassAmino; - fromAminoMsg(object: _132.MsgCreateClassAminoMsg): _132.MsgCreateClass; - toAminoMsg(message: _132.MsgCreateClass): _132.MsgCreateClassAminoMsg; - fromProtoMsg(message: _132.MsgCreateClassProtoMsg): _132.MsgCreateClass; - toProto(message: _132.MsgCreateClass): Uint8Array; - toProtoMsg(message: _132.MsgCreateClass): _132.MsgCreateClassProtoMsg; - }; - MsgCreateClassResponse: { - typeUrl: string; - encode(message: _132.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateClassResponse; - fromJSON(object: any): _132.MsgCreateClassResponse; - toJSON(message: _132.MsgCreateClassResponse): unknown; - fromPartial(object: Partial<_132.MsgCreateClassResponse>): _132.MsgCreateClassResponse; - fromAmino(object: _132.MsgCreateClassResponseAmino): _132.MsgCreateClassResponse; - toAmino(message: _132.MsgCreateClassResponse): _132.MsgCreateClassResponseAmino; - fromAminoMsg(object: _132.MsgCreateClassResponseAminoMsg): _132.MsgCreateClassResponse; - fromProtoMsg(message: _132.MsgCreateClassResponseProtoMsg): _132.MsgCreateClassResponse; - toProto(message: _132.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _132.MsgCreateClassResponse): _132.MsgCreateClassResponseProtoMsg; - }; - MsgCreateProject: { - typeUrl: string; - encode(message: _132.MsgCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateProject; - fromJSON(object: any): _132.MsgCreateProject; - toJSON(message: _132.MsgCreateProject): unknown; - fromPartial(object: Partial<_132.MsgCreateProject>): _132.MsgCreateProject; - fromAmino(object: _132.MsgCreateProjectAmino): _132.MsgCreateProject; - toAmino(message: _132.MsgCreateProject): _132.MsgCreateProjectAmino; - fromAminoMsg(object: _132.MsgCreateProjectAminoMsg): _132.MsgCreateProject; - toAminoMsg(message: _132.MsgCreateProject): _132.MsgCreateProjectAminoMsg; - fromProtoMsg(message: _132.MsgCreateProjectProtoMsg): _132.MsgCreateProject; - toProto(message: _132.MsgCreateProject): Uint8Array; - toProtoMsg(message: _132.MsgCreateProject): _132.MsgCreateProjectProtoMsg; - }; - MsgCreateProjectResponse: { - typeUrl: string; - encode(message: _132.MsgCreateProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateProjectResponse; - fromJSON(object: any): _132.MsgCreateProjectResponse; - toJSON(message: _132.MsgCreateProjectResponse): unknown; - fromPartial(object: Partial<_132.MsgCreateProjectResponse>): _132.MsgCreateProjectResponse; - fromAmino(object: _132.MsgCreateProjectResponseAmino): _132.MsgCreateProjectResponse; - toAmino(message: _132.MsgCreateProjectResponse): _132.MsgCreateProjectResponseAmino; - fromAminoMsg(object: _132.MsgCreateProjectResponseAminoMsg): _132.MsgCreateProjectResponse; - fromProtoMsg(message: _132.MsgCreateProjectResponseProtoMsg): _132.MsgCreateProjectResponse; - toProto(message: _132.MsgCreateProjectResponse): Uint8Array; - toProtoMsg(message: _132.MsgCreateProjectResponse): _132.MsgCreateProjectResponseProtoMsg; - }; - MsgCreateBatch: { - typeUrl: string; - encode(message: _132.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateBatch; - fromJSON(object: any): _132.MsgCreateBatch; - toJSON(message: _132.MsgCreateBatch): unknown; - fromPartial(object: Partial<_132.MsgCreateBatch>): _132.MsgCreateBatch; - fromAmino(object: _132.MsgCreateBatchAmino): _132.MsgCreateBatch; - toAmino(message: _132.MsgCreateBatch): _132.MsgCreateBatchAmino; - fromAminoMsg(object: _132.MsgCreateBatchAminoMsg): _132.MsgCreateBatch; - toAminoMsg(message: _132.MsgCreateBatch): _132.MsgCreateBatchAminoMsg; - fromProtoMsg(message: _132.MsgCreateBatchProtoMsg): _132.MsgCreateBatch; - toProto(message: _132.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _132.MsgCreateBatch): _132.MsgCreateBatchProtoMsg; - }; - MsgCreateBatchResponse: { - typeUrl: string; - encode(message: _132.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCreateBatchResponse; - fromJSON(object: any): _132.MsgCreateBatchResponse; - toJSON(message: _132.MsgCreateBatchResponse): unknown; - fromPartial(object: Partial<_132.MsgCreateBatchResponse>): _132.MsgCreateBatchResponse; - fromAmino(object: _132.MsgCreateBatchResponseAmino): _132.MsgCreateBatchResponse; - toAmino(message: _132.MsgCreateBatchResponse): _132.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _132.MsgCreateBatchResponseAminoMsg): _132.MsgCreateBatchResponse; - fromProtoMsg(message: _132.MsgCreateBatchResponseProtoMsg): _132.MsgCreateBatchResponse; - toProto(message: _132.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _132.MsgCreateBatchResponse): _132.MsgCreateBatchResponseProtoMsg; - }; - MsgMintBatchCredits: { - typeUrl: string; - encode(message: _132.MsgMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgMintBatchCredits; - fromJSON(object: any): _132.MsgMintBatchCredits; - toJSON(message: _132.MsgMintBatchCredits): unknown; - fromPartial(object: Partial<_132.MsgMintBatchCredits>): _132.MsgMintBatchCredits; - fromAmino(object: _132.MsgMintBatchCreditsAmino): _132.MsgMintBatchCredits; - toAmino(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsAmino; - fromAminoMsg(object: _132.MsgMintBatchCreditsAminoMsg): _132.MsgMintBatchCredits; - toAminoMsg(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsAminoMsg; - fromProtoMsg(message: _132.MsgMintBatchCreditsProtoMsg): _132.MsgMintBatchCredits; - toProto(message: _132.MsgMintBatchCredits): Uint8Array; - toProtoMsg(message: _132.MsgMintBatchCredits): _132.MsgMintBatchCreditsProtoMsg; - }; - MsgMintBatchCreditsResponse: { - typeUrl: string; - encode(_: _132.MsgMintBatchCreditsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgMintBatchCreditsResponse; - fromJSON(_: any): _132.MsgMintBatchCreditsResponse; - toJSON(_: _132.MsgMintBatchCreditsResponse): unknown; - fromPartial(_: Partial<_132.MsgMintBatchCreditsResponse>): _132.MsgMintBatchCreditsResponse; - fromAmino(_: _132.MsgMintBatchCreditsResponseAmino): _132.MsgMintBatchCreditsResponse; - toAmino(_: _132.MsgMintBatchCreditsResponse): _132.MsgMintBatchCreditsResponseAmino; - fromAminoMsg(object: _132.MsgMintBatchCreditsResponseAminoMsg): _132.MsgMintBatchCreditsResponse; - fromProtoMsg(message: _132.MsgMintBatchCreditsResponseProtoMsg): _132.MsgMintBatchCreditsResponse; - toProto(message: _132.MsgMintBatchCreditsResponse): Uint8Array; - toProtoMsg(message: _132.MsgMintBatchCreditsResponse): _132.MsgMintBatchCreditsResponseProtoMsg; - }; - MsgSealBatch: { - typeUrl: string; - encode(message: _132.MsgSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSealBatch; - fromJSON(object: any): _132.MsgSealBatch; - toJSON(message: _132.MsgSealBatch): unknown; - fromPartial(object: Partial<_132.MsgSealBatch>): _132.MsgSealBatch; - fromAmino(object: _132.MsgSealBatchAmino): _132.MsgSealBatch; - toAmino(message: _132.MsgSealBatch): _132.MsgSealBatchAmino; - fromAminoMsg(object: _132.MsgSealBatchAminoMsg): _132.MsgSealBatch; - toAminoMsg(message: _132.MsgSealBatch): _132.MsgSealBatchAminoMsg; - fromProtoMsg(message: _132.MsgSealBatchProtoMsg): _132.MsgSealBatch; - toProto(message: _132.MsgSealBatch): Uint8Array; - toProtoMsg(message: _132.MsgSealBatch): _132.MsgSealBatchProtoMsg; - }; - MsgSealBatchResponse: { - typeUrl: string; - encode(_: _132.MsgSealBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSealBatchResponse; - fromJSON(_: any): _132.MsgSealBatchResponse; - toJSON(_: _132.MsgSealBatchResponse): unknown; - fromPartial(_: Partial<_132.MsgSealBatchResponse>): _132.MsgSealBatchResponse; - fromAmino(_: _132.MsgSealBatchResponseAmino): _132.MsgSealBatchResponse; - toAmino(_: _132.MsgSealBatchResponse): _132.MsgSealBatchResponseAmino; - fromAminoMsg(object: _132.MsgSealBatchResponseAminoMsg): _132.MsgSealBatchResponse; - fromProtoMsg(message: _132.MsgSealBatchResponseProtoMsg): _132.MsgSealBatchResponse; - toProto(message: _132.MsgSealBatchResponse): Uint8Array; - toProtoMsg(message: _132.MsgSealBatchResponse): _132.MsgSealBatchResponseProtoMsg; - }; - MsgSend: { - typeUrl: string; - encode(message: _132.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSend; - fromJSON(object: any): _132.MsgSend; - toJSON(message: _132.MsgSend): unknown; - fromPartial(object: Partial<_132.MsgSend>): _132.MsgSend; - fromAmino(object: _132.MsgSendAmino): _132.MsgSend; - toAmino(message: _132.MsgSend): _132.MsgSendAmino; - fromAminoMsg(object: _132.MsgSendAminoMsg): _132.MsgSend; - toAminoMsg(message: _132.MsgSend): _132.MsgSendAminoMsg; - fromProtoMsg(message: _132.MsgSendProtoMsg): _132.MsgSend; - toProto(message: _132.MsgSend): Uint8Array; - toProtoMsg(message: _132.MsgSend): _132.MsgSendProtoMsg; - }; - MsgSend_SendCredits: { - typeUrl: string; - encode(message: _132.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSend_SendCredits; - fromJSON(object: any): _132.MsgSend_SendCredits; - toJSON(message: _132.MsgSend_SendCredits): unknown; - fromPartial(object: Partial<_132.MsgSend_SendCredits>): _132.MsgSend_SendCredits; - fromAmino(object: _132.MsgSend_SendCreditsAmino): _132.MsgSend_SendCredits; - toAmino(message: _132.MsgSend_SendCredits): _132.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _132.MsgSend_SendCreditsAminoMsg): _132.MsgSend_SendCredits; - fromProtoMsg(message: _132.MsgSend_SendCreditsProtoMsg): _132.MsgSend_SendCredits; - toProto(message: _132.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _132.MsgSend_SendCredits): _132.MsgSend_SendCreditsProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _132.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSendResponse; - fromJSON(_: any): _132.MsgSendResponse; - toJSON(_: _132.MsgSendResponse): unknown; - fromPartial(_: Partial<_132.MsgSendResponse>): _132.MsgSendResponse; - fromAmino(_: _132.MsgSendResponseAmino): _132.MsgSendResponse; - toAmino(_: _132.MsgSendResponse): _132.MsgSendResponseAmino; - fromAminoMsg(object: _132.MsgSendResponseAminoMsg): _132.MsgSendResponse; - fromProtoMsg(message: _132.MsgSendResponseProtoMsg): _132.MsgSendResponse; - toProto(message: _132.MsgSendResponse): Uint8Array; - toProtoMsg(message: _132.MsgSendResponse): _132.MsgSendResponseProtoMsg; - }; - MsgRetire: { - typeUrl: string; - encode(message: _132.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRetire; - fromJSON(object: any): _132.MsgRetire; - toJSON(message: _132.MsgRetire): unknown; - fromPartial(object: Partial<_132.MsgRetire>): _132.MsgRetire; - fromAmino(object: _132.MsgRetireAmino): _132.MsgRetire; - toAmino(message: _132.MsgRetire): _132.MsgRetireAmino; - fromAminoMsg(object: _132.MsgRetireAminoMsg): _132.MsgRetire; - toAminoMsg(message: _132.MsgRetire): _132.MsgRetireAminoMsg; - fromProtoMsg(message: _132.MsgRetireProtoMsg): _132.MsgRetire; - toProto(message: _132.MsgRetire): Uint8Array; - toProtoMsg(message: _132.MsgRetire): _132.MsgRetireProtoMsg; - }; - MsgRetireResponse: { - typeUrl: string; - encode(_: _132.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRetireResponse; - fromJSON(_: any): _132.MsgRetireResponse; - toJSON(_: _132.MsgRetireResponse): unknown; - fromPartial(_: Partial<_132.MsgRetireResponse>): _132.MsgRetireResponse; - fromAmino(_: _132.MsgRetireResponseAmino): _132.MsgRetireResponse; - toAmino(_: _132.MsgRetireResponse): _132.MsgRetireResponseAmino; - fromAminoMsg(object: _132.MsgRetireResponseAminoMsg): _132.MsgRetireResponse; - fromProtoMsg(message: _132.MsgRetireResponseProtoMsg): _132.MsgRetireResponse; - toProto(message: _132.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _132.MsgRetireResponse): _132.MsgRetireResponseProtoMsg; - }; - MsgCancel: { - typeUrl: string; - encode(message: _132.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCancel; - fromJSON(object: any): _132.MsgCancel; - toJSON(message: _132.MsgCancel): unknown; - fromPartial(object: Partial<_132.MsgCancel>): _132.MsgCancel; - fromAmino(object: _132.MsgCancelAmino): _132.MsgCancel; - toAmino(message: _132.MsgCancel): _132.MsgCancelAmino; - fromAminoMsg(object: _132.MsgCancelAminoMsg): _132.MsgCancel; - toAminoMsg(message: _132.MsgCancel): _132.MsgCancelAminoMsg; - fromProtoMsg(message: _132.MsgCancelProtoMsg): _132.MsgCancel; - toProto(message: _132.MsgCancel): Uint8Array; - toProtoMsg(message: _132.MsgCancel): _132.MsgCancelProtoMsg; - }; - MsgCancelResponse: { - typeUrl: string; - encode(_: _132.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgCancelResponse; - fromJSON(_: any): _132.MsgCancelResponse; - toJSON(_: _132.MsgCancelResponse): unknown; - fromPartial(_: Partial<_132.MsgCancelResponse>): _132.MsgCancelResponse; - fromAmino(_: _132.MsgCancelResponseAmino): _132.MsgCancelResponse; - toAmino(_: _132.MsgCancelResponse): _132.MsgCancelResponseAmino; - fromAminoMsg(object: _132.MsgCancelResponseAminoMsg): _132.MsgCancelResponse; - fromProtoMsg(message: _132.MsgCancelResponseProtoMsg): _132.MsgCancelResponse; - toProto(message: _132.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _132.MsgCancelResponse): _132.MsgCancelResponseProtoMsg; - }; - MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: _132.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassAdmin; - fromJSON(object: any): _132.MsgUpdateClassAdmin; - toJSON(message: _132.MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial<_132.MsgUpdateClassAdmin>): _132.MsgUpdateClassAdmin; - fromAmino(object: _132.MsgUpdateClassAdminAmino): _132.MsgUpdateClassAdmin; - toAmino(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _132.MsgUpdateClassAdminAminoMsg): _132.MsgUpdateClassAdmin; - toAminoMsg(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminAminoMsg; - fromProtoMsg(message: _132.MsgUpdateClassAdminProtoMsg): _132.MsgUpdateClassAdmin; - toProto(message: _132.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassAdmin): _132.MsgUpdateClassAdminProtoMsg; - }; - MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassAdminResponse; - fromJSON(_: any): _132.MsgUpdateClassAdminResponse; - toJSON(_: _132.MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateClassAdminResponse>): _132.MsgUpdateClassAdminResponse; - fromAmino(_: _132.MsgUpdateClassAdminResponseAmino): _132.MsgUpdateClassAdminResponse; - toAmino(_: _132.MsgUpdateClassAdminResponse): _132.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _132.MsgUpdateClassAdminResponseAminoMsg): _132.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _132.MsgUpdateClassAdminResponseProtoMsg): _132.MsgUpdateClassAdminResponse; - toProto(message: _132.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassAdminResponse): _132.MsgUpdateClassAdminResponseProtoMsg; - }; - MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: _132.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassIssuers; - fromJSON(object: any): _132.MsgUpdateClassIssuers; - toJSON(message: _132.MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial<_132.MsgUpdateClassIssuers>): _132.MsgUpdateClassIssuers; - fromAmino(object: _132.MsgUpdateClassIssuersAmino): _132.MsgUpdateClassIssuers; - toAmino(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _132.MsgUpdateClassIssuersAminoMsg): _132.MsgUpdateClassIssuers; - toAminoMsg(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersAminoMsg; - fromProtoMsg(message: _132.MsgUpdateClassIssuersProtoMsg): _132.MsgUpdateClassIssuers; - toProto(message: _132.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassIssuers): _132.MsgUpdateClassIssuersProtoMsg; - }; - MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassIssuersResponse; - fromJSON(_: any): _132.MsgUpdateClassIssuersResponse; - toJSON(_: _132.MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateClassIssuersResponse>): _132.MsgUpdateClassIssuersResponse; - fromAmino(_: _132.MsgUpdateClassIssuersResponseAmino): _132.MsgUpdateClassIssuersResponse; - toAmino(_: _132.MsgUpdateClassIssuersResponse): _132.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _132.MsgUpdateClassIssuersResponseAminoMsg): _132.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _132.MsgUpdateClassIssuersResponseProtoMsg): _132.MsgUpdateClassIssuersResponse; - toProto(message: _132.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassIssuersResponse): _132.MsgUpdateClassIssuersResponseProtoMsg; - }; - MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: _132.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassMetadata; - fromJSON(object: any): _132.MsgUpdateClassMetadata; - toJSON(message: _132.MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial<_132.MsgUpdateClassMetadata>): _132.MsgUpdateClassMetadata; - fromAmino(object: _132.MsgUpdateClassMetadataAmino): _132.MsgUpdateClassMetadata; - toAmino(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _132.MsgUpdateClassMetadataAminoMsg): _132.MsgUpdateClassMetadata; - toAminoMsg(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataAminoMsg; - fromProtoMsg(message: _132.MsgUpdateClassMetadataProtoMsg): _132.MsgUpdateClassMetadata; - toProto(message: _132.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassMetadata): _132.MsgUpdateClassMetadataProtoMsg; - }; - MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassMetadataResponse; - fromJSON(_: any): _132.MsgUpdateClassMetadataResponse; - toJSON(_: _132.MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateClassMetadataResponse>): _132.MsgUpdateClassMetadataResponse; - fromAmino(_: _132.MsgUpdateClassMetadataResponseAmino): _132.MsgUpdateClassMetadataResponse; - toAmino(_: _132.MsgUpdateClassMetadataResponse): _132.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _132.MsgUpdateClassMetadataResponseAminoMsg): _132.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _132.MsgUpdateClassMetadataResponseProtoMsg): _132.MsgUpdateClassMetadataResponse; - toProto(message: _132.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassMetadataResponse): _132.MsgUpdateClassMetadataResponseProtoMsg; - }; - MsgUpdateProjectAdmin: { - typeUrl: string; - encode(message: _132.MsgUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectAdmin; - fromJSON(object: any): _132.MsgUpdateProjectAdmin; - toJSON(message: _132.MsgUpdateProjectAdmin): unknown; - fromPartial(object: Partial<_132.MsgUpdateProjectAdmin>): _132.MsgUpdateProjectAdmin; - fromAmino(object: _132.MsgUpdateProjectAdminAmino): _132.MsgUpdateProjectAdmin; - toAmino(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminAmino; - fromAminoMsg(object: _132.MsgUpdateProjectAdminAminoMsg): _132.MsgUpdateProjectAdmin; - toAminoMsg(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminAminoMsg; - fromProtoMsg(message: _132.MsgUpdateProjectAdminProtoMsg): _132.MsgUpdateProjectAdmin; - toProto(message: _132.MsgUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _132.MsgUpdateProjectAdmin): _132.MsgUpdateProjectAdminProtoMsg; - }; - MsgUpdateProjectAdminResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateProjectAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectAdminResponse; - fromJSON(_: any): _132.MsgUpdateProjectAdminResponse; - toJSON(_: _132.MsgUpdateProjectAdminResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateProjectAdminResponse>): _132.MsgUpdateProjectAdminResponse; - fromAmino(_: _132.MsgUpdateProjectAdminResponseAmino): _132.MsgUpdateProjectAdminResponse; - toAmino(_: _132.MsgUpdateProjectAdminResponse): _132.MsgUpdateProjectAdminResponseAmino; - fromAminoMsg(object: _132.MsgUpdateProjectAdminResponseAminoMsg): _132.MsgUpdateProjectAdminResponse; - fromProtoMsg(message: _132.MsgUpdateProjectAdminResponseProtoMsg): _132.MsgUpdateProjectAdminResponse; - toProto(message: _132.MsgUpdateProjectAdminResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateProjectAdminResponse): _132.MsgUpdateProjectAdminResponseProtoMsg; - }; - MsgUpdateProjectMetadata: { - typeUrl: string; - encode(message: _132.MsgUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectMetadata; - fromJSON(object: any): _132.MsgUpdateProjectMetadata; - toJSON(message: _132.MsgUpdateProjectMetadata): unknown; - fromPartial(object: Partial<_132.MsgUpdateProjectMetadata>): _132.MsgUpdateProjectMetadata; - fromAmino(object: _132.MsgUpdateProjectMetadataAmino): _132.MsgUpdateProjectMetadata; - toAmino(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataAmino; - fromAminoMsg(object: _132.MsgUpdateProjectMetadataAminoMsg): _132.MsgUpdateProjectMetadata; - toAminoMsg(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataAminoMsg; - fromProtoMsg(message: _132.MsgUpdateProjectMetadataProtoMsg): _132.MsgUpdateProjectMetadata; - toProto(message: _132.MsgUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _132.MsgUpdateProjectMetadata): _132.MsgUpdateProjectMetadataProtoMsg; - }; - MsgUpdateProjectMetadataResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateProjectMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateProjectMetadataResponse; - fromJSON(_: any): _132.MsgUpdateProjectMetadataResponse; - toJSON(_: _132.MsgUpdateProjectMetadataResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateProjectMetadataResponse>): _132.MsgUpdateProjectMetadataResponse; - fromAmino(_: _132.MsgUpdateProjectMetadataResponseAmino): _132.MsgUpdateProjectMetadataResponse; - toAmino(_: _132.MsgUpdateProjectMetadataResponse): _132.MsgUpdateProjectMetadataResponseAmino; - fromAminoMsg(object: _132.MsgUpdateProjectMetadataResponseAminoMsg): _132.MsgUpdateProjectMetadataResponse; - fromProtoMsg(message: _132.MsgUpdateProjectMetadataResponseProtoMsg): _132.MsgUpdateProjectMetadataResponse; - toProto(message: _132.MsgUpdateProjectMetadataResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateProjectMetadataResponse): _132.MsgUpdateProjectMetadataResponseProtoMsg; - }; - MsgBridge: { - typeUrl: string; - encode(message: _132.MsgBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridge; - fromJSON(object: any): _132.MsgBridge; - toJSON(message: _132.MsgBridge): unknown; - fromPartial(object: Partial<_132.MsgBridge>): _132.MsgBridge; - fromAmino(object: _132.MsgBridgeAmino): _132.MsgBridge; - toAmino(message: _132.MsgBridge): _132.MsgBridgeAmino; - fromAminoMsg(object: _132.MsgBridgeAminoMsg): _132.MsgBridge; - toAminoMsg(message: _132.MsgBridge): _132.MsgBridgeAminoMsg; - fromProtoMsg(message: _132.MsgBridgeProtoMsg): _132.MsgBridge; - toProto(message: _132.MsgBridge): Uint8Array; - toProtoMsg(message: _132.MsgBridge): _132.MsgBridgeProtoMsg; - }; - MsgUpdateBatchMetadata: { - typeUrl: string; - encode(message: _132.MsgUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateBatchMetadata; - fromJSON(object: any): _132.MsgUpdateBatchMetadata; - toJSON(message: _132.MsgUpdateBatchMetadata): unknown; - fromPartial(object: Partial<_132.MsgUpdateBatchMetadata>): _132.MsgUpdateBatchMetadata; - fromAmino(object: _132.MsgUpdateBatchMetadataAmino): _132.MsgUpdateBatchMetadata; - toAmino(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataAmino; - fromAminoMsg(object: _132.MsgUpdateBatchMetadataAminoMsg): _132.MsgUpdateBatchMetadata; - toAminoMsg(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataAminoMsg; - fromProtoMsg(message: _132.MsgUpdateBatchMetadataProtoMsg): _132.MsgUpdateBatchMetadata; - toProto(message: _132.MsgUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _132.MsgUpdateBatchMetadata): _132.MsgUpdateBatchMetadataProtoMsg; - }; - MsgUpdateBatchMetadataResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateBatchMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateBatchMetadataResponse; - fromJSON(_: any): _132.MsgUpdateBatchMetadataResponse; - toJSON(_: _132.MsgUpdateBatchMetadataResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateBatchMetadataResponse>): _132.MsgUpdateBatchMetadataResponse; - fromAmino(_: _132.MsgUpdateBatchMetadataResponseAmino): _132.MsgUpdateBatchMetadataResponse; - toAmino(_: _132.MsgUpdateBatchMetadataResponse): _132.MsgUpdateBatchMetadataResponseAmino; - fromAminoMsg(object: _132.MsgUpdateBatchMetadataResponseAminoMsg): _132.MsgUpdateBatchMetadataResponse; - fromProtoMsg(message: _132.MsgUpdateBatchMetadataResponseProtoMsg): _132.MsgUpdateBatchMetadataResponse; - toProto(message: _132.MsgUpdateBatchMetadataResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateBatchMetadataResponse): _132.MsgUpdateBatchMetadataResponseProtoMsg; - }; - MsgBridgeResponse: { - typeUrl: string; - encode(_: _132.MsgBridgeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeResponse; - fromJSON(_: any): _132.MsgBridgeResponse; - toJSON(_: _132.MsgBridgeResponse): unknown; - fromPartial(_: Partial<_132.MsgBridgeResponse>): _132.MsgBridgeResponse; - fromAmino(_: _132.MsgBridgeResponseAmino): _132.MsgBridgeResponse; - toAmino(_: _132.MsgBridgeResponse): _132.MsgBridgeResponseAmino; - fromAminoMsg(object: _132.MsgBridgeResponseAminoMsg): _132.MsgBridgeResponse; - fromProtoMsg(message: _132.MsgBridgeResponseProtoMsg): _132.MsgBridgeResponse; - toProto(message: _132.MsgBridgeResponse): Uint8Array; - toProtoMsg(message: _132.MsgBridgeResponse): _132.MsgBridgeResponseProtoMsg; - }; - MsgBridgeReceive: { - typeUrl: string; - encode(message: _132.MsgBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive; - fromJSON(object: any): _132.MsgBridgeReceive; - toJSON(message: _132.MsgBridgeReceive): unknown; - fromPartial(object: Partial<_132.MsgBridgeReceive>): _132.MsgBridgeReceive; - fromAmino(object: _132.MsgBridgeReceiveAmino): _132.MsgBridgeReceive; - toAmino(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveAmino; - fromAminoMsg(object: _132.MsgBridgeReceiveAminoMsg): _132.MsgBridgeReceive; - toAminoMsg(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveAminoMsg; - fromProtoMsg(message: _132.MsgBridgeReceiveProtoMsg): _132.MsgBridgeReceive; - toProto(message: _132.MsgBridgeReceive): Uint8Array; - toProtoMsg(message: _132.MsgBridgeReceive): _132.MsgBridgeReceiveProtoMsg; - }; - MsgBridgeReceive_Batch: { - typeUrl: string; - encode(message: _132.MsgBridgeReceive_Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive_Batch; - fromJSON(object: any): _132.MsgBridgeReceive_Batch; - toJSON(message: _132.MsgBridgeReceive_Batch): unknown; - fromPartial(object: Partial<_132.MsgBridgeReceive_Batch>): _132.MsgBridgeReceive_Batch; - fromAmino(object: _132.MsgBridgeReceive_BatchAmino): _132.MsgBridgeReceive_Batch; - toAmino(message: _132.MsgBridgeReceive_Batch): _132.MsgBridgeReceive_BatchAmino; - fromAminoMsg(object: _132.MsgBridgeReceive_BatchAminoMsg): _132.MsgBridgeReceive_Batch; - fromProtoMsg(message: _132.MsgBridgeReceive_BatchProtoMsg): _132.MsgBridgeReceive_Batch; - toProto(message: _132.MsgBridgeReceive_Batch): Uint8Array; - toProtoMsg(message: _132.MsgBridgeReceive_Batch): _132.MsgBridgeReceive_BatchProtoMsg; - }; - MsgBridgeReceive_Project: { - typeUrl: string; - encode(message: _132.MsgBridgeReceive_Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceive_Project; - fromJSON(object: any): _132.MsgBridgeReceive_Project; - toJSON(message: _132.MsgBridgeReceive_Project): unknown; - fromPartial(object: Partial<_132.MsgBridgeReceive_Project>): _132.MsgBridgeReceive_Project; - fromAmino(object: _132.MsgBridgeReceive_ProjectAmino): _132.MsgBridgeReceive_Project; - toAmino(message: _132.MsgBridgeReceive_Project): _132.MsgBridgeReceive_ProjectAmino; - fromAminoMsg(object: _132.MsgBridgeReceive_ProjectAminoMsg): _132.MsgBridgeReceive_Project; - fromProtoMsg(message: _132.MsgBridgeReceive_ProjectProtoMsg): _132.MsgBridgeReceive_Project; - toProto(message: _132.MsgBridgeReceive_Project): Uint8Array; - toProtoMsg(message: _132.MsgBridgeReceive_Project): _132.MsgBridgeReceive_ProjectProtoMsg; - }; - MsgBridgeReceiveResponse: { - typeUrl: string; - encode(message: _132.MsgBridgeReceiveResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgBridgeReceiveResponse; - fromJSON(object: any): _132.MsgBridgeReceiveResponse; - toJSON(message: _132.MsgBridgeReceiveResponse): unknown; - fromPartial(object: Partial<_132.MsgBridgeReceiveResponse>): _132.MsgBridgeReceiveResponse; - fromAmino(object: _132.MsgBridgeReceiveResponseAmino): _132.MsgBridgeReceiveResponse; - toAmino(message: _132.MsgBridgeReceiveResponse): _132.MsgBridgeReceiveResponseAmino; - fromAminoMsg(object: _132.MsgBridgeReceiveResponseAminoMsg): _132.MsgBridgeReceiveResponse; - fromProtoMsg(message: _132.MsgBridgeReceiveResponseProtoMsg): _132.MsgBridgeReceiveResponse; - toProto(message: _132.MsgBridgeReceiveResponse): Uint8Array; - toProtoMsg(message: _132.MsgBridgeReceiveResponse): _132.MsgBridgeReceiveResponseProtoMsg; - }; - MsgAddClassCreator: { - typeUrl: string; - encode(message: _132.MsgAddClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddClassCreator; - fromJSON(object: any): _132.MsgAddClassCreator; - toJSON(message: _132.MsgAddClassCreator): unknown; - fromPartial(object: Partial<_132.MsgAddClassCreator>): _132.MsgAddClassCreator; - fromAmino(object: _132.MsgAddClassCreatorAmino): _132.MsgAddClassCreator; - toAmino(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorAmino; - fromAminoMsg(object: _132.MsgAddClassCreatorAminoMsg): _132.MsgAddClassCreator; - toAminoMsg(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorAminoMsg; - fromProtoMsg(message: _132.MsgAddClassCreatorProtoMsg): _132.MsgAddClassCreator; - toProto(message: _132.MsgAddClassCreator): Uint8Array; - toProtoMsg(message: _132.MsgAddClassCreator): _132.MsgAddClassCreatorProtoMsg; - }; - MsgAddClassCreatorResponse: { - typeUrl: string; - encode(_: _132.MsgAddClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddClassCreatorResponse; - fromJSON(_: any): _132.MsgAddClassCreatorResponse; - toJSON(_: _132.MsgAddClassCreatorResponse): unknown; - fromPartial(_: Partial<_132.MsgAddClassCreatorResponse>): _132.MsgAddClassCreatorResponse; - fromAmino(_: _132.MsgAddClassCreatorResponseAmino): _132.MsgAddClassCreatorResponse; - toAmino(_: _132.MsgAddClassCreatorResponse): _132.MsgAddClassCreatorResponseAmino; - fromAminoMsg(object: _132.MsgAddClassCreatorResponseAminoMsg): _132.MsgAddClassCreatorResponse; - fromProtoMsg(message: _132.MsgAddClassCreatorResponseProtoMsg): _132.MsgAddClassCreatorResponse; - toProto(message: _132.MsgAddClassCreatorResponse): Uint8Array; - toProtoMsg(message: _132.MsgAddClassCreatorResponse): _132.MsgAddClassCreatorResponseProtoMsg; - }; - MsgSetClassCreatorAllowlist: { - typeUrl: string; - encode(message: _132.MsgSetClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSetClassCreatorAllowlist; - fromJSON(object: any): _132.MsgSetClassCreatorAllowlist; - toJSON(message: _132.MsgSetClassCreatorAllowlist): unknown; - fromPartial(object: Partial<_132.MsgSetClassCreatorAllowlist>): _132.MsgSetClassCreatorAllowlist; - fromAmino(object: _132.MsgSetClassCreatorAllowlistAmino): _132.MsgSetClassCreatorAllowlist; - toAmino(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistAmino; - fromAminoMsg(object: _132.MsgSetClassCreatorAllowlistAminoMsg): _132.MsgSetClassCreatorAllowlist; - toAminoMsg(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistAminoMsg; - fromProtoMsg(message: _132.MsgSetClassCreatorAllowlistProtoMsg): _132.MsgSetClassCreatorAllowlist; - toProto(message: _132.MsgSetClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _132.MsgSetClassCreatorAllowlist): _132.MsgSetClassCreatorAllowlistProtoMsg; - }; - MsgSetClassCreatorAllowlistResponse: { - typeUrl: string; - encode(_: _132.MsgSetClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgSetClassCreatorAllowlistResponse; - fromJSON(_: any): _132.MsgSetClassCreatorAllowlistResponse; - toJSON(_: _132.MsgSetClassCreatorAllowlistResponse): unknown; - fromPartial(_: Partial<_132.MsgSetClassCreatorAllowlistResponse>): _132.MsgSetClassCreatorAllowlistResponse; - fromAmino(_: _132.MsgSetClassCreatorAllowlistResponseAmino): _132.MsgSetClassCreatorAllowlistResponse; - toAmino(_: _132.MsgSetClassCreatorAllowlistResponse): _132.MsgSetClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _132.MsgSetClassCreatorAllowlistResponseAminoMsg): _132.MsgSetClassCreatorAllowlistResponse; - fromProtoMsg(message: _132.MsgSetClassCreatorAllowlistResponseProtoMsg): _132.MsgSetClassCreatorAllowlistResponse; - toProto(message: _132.MsgSetClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _132.MsgSetClassCreatorAllowlistResponse): _132.MsgSetClassCreatorAllowlistResponseProtoMsg; - }; - MsgRemoveClassCreator: { - typeUrl: string; - encode(message: _132.MsgRemoveClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveClassCreator; - fromJSON(object: any): _132.MsgRemoveClassCreator; - toJSON(message: _132.MsgRemoveClassCreator): unknown; - fromPartial(object: Partial<_132.MsgRemoveClassCreator>): _132.MsgRemoveClassCreator; - fromAmino(object: _132.MsgRemoveClassCreatorAmino): _132.MsgRemoveClassCreator; - toAmino(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorAmino; - fromAminoMsg(object: _132.MsgRemoveClassCreatorAminoMsg): _132.MsgRemoveClassCreator; - toAminoMsg(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorAminoMsg; - fromProtoMsg(message: _132.MsgRemoveClassCreatorProtoMsg): _132.MsgRemoveClassCreator; - toProto(message: _132.MsgRemoveClassCreator): Uint8Array; - toProtoMsg(message: _132.MsgRemoveClassCreator): _132.MsgRemoveClassCreatorProtoMsg; - }; - MsgRemoveClassCreatorResponse: { - typeUrl: string; - encode(_: _132.MsgRemoveClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveClassCreatorResponse; - fromJSON(_: any): _132.MsgRemoveClassCreatorResponse; - toJSON(_: _132.MsgRemoveClassCreatorResponse): unknown; - fromPartial(_: Partial<_132.MsgRemoveClassCreatorResponse>): _132.MsgRemoveClassCreatorResponse; - fromAmino(_: _132.MsgRemoveClassCreatorResponseAmino): _132.MsgRemoveClassCreatorResponse; - toAmino(_: _132.MsgRemoveClassCreatorResponse): _132.MsgRemoveClassCreatorResponseAmino; - fromAminoMsg(object: _132.MsgRemoveClassCreatorResponseAminoMsg): _132.MsgRemoveClassCreatorResponse; - fromProtoMsg(message: _132.MsgRemoveClassCreatorResponseProtoMsg): _132.MsgRemoveClassCreatorResponse; - toProto(message: _132.MsgRemoveClassCreatorResponse): Uint8Array; - toProtoMsg(message: _132.MsgRemoveClassCreatorResponse): _132.MsgRemoveClassCreatorResponseProtoMsg; - }; - MsgUpdateClassFee: { - typeUrl: string; - encode(message: _132.MsgUpdateClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassFee; - fromJSON(object: any): _132.MsgUpdateClassFee; - toJSON(message: _132.MsgUpdateClassFee): unknown; - fromPartial(object: Partial<_132.MsgUpdateClassFee>): _132.MsgUpdateClassFee; - fromAmino(object: _132.MsgUpdateClassFeeAmino): _132.MsgUpdateClassFee; - toAmino(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeAmino; - fromAminoMsg(object: _132.MsgUpdateClassFeeAminoMsg): _132.MsgUpdateClassFee; - toAminoMsg(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeAminoMsg; - fromProtoMsg(message: _132.MsgUpdateClassFeeProtoMsg): _132.MsgUpdateClassFee; - toProto(message: _132.MsgUpdateClassFee): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassFee): _132.MsgUpdateClassFeeProtoMsg; - }; - MsgUpdateClassFeeResponse: { - typeUrl: string; - encode(_: _132.MsgUpdateClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgUpdateClassFeeResponse; - fromJSON(_: any): _132.MsgUpdateClassFeeResponse; - toJSON(_: _132.MsgUpdateClassFeeResponse): unknown; - fromPartial(_: Partial<_132.MsgUpdateClassFeeResponse>): _132.MsgUpdateClassFeeResponse; - fromAmino(_: _132.MsgUpdateClassFeeResponseAmino): _132.MsgUpdateClassFeeResponse; - toAmino(_: _132.MsgUpdateClassFeeResponse): _132.MsgUpdateClassFeeResponseAmino; - fromAminoMsg(object: _132.MsgUpdateClassFeeResponseAminoMsg): _132.MsgUpdateClassFeeResponse; - fromProtoMsg(message: _132.MsgUpdateClassFeeResponseProtoMsg): _132.MsgUpdateClassFeeResponse; - toProto(message: _132.MsgUpdateClassFeeResponse): Uint8Array; - toProtoMsg(message: _132.MsgUpdateClassFeeResponse): _132.MsgUpdateClassFeeResponseProtoMsg; - }; - MsgAddAllowedBridgeChain: { - typeUrl: string; - encode(message: _132.MsgAddAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddAllowedBridgeChain; - fromJSON(object: any): _132.MsgAddAllowedBridgeChain; - toJSON(message: _132.MsgAddAllowedBridgeChain): unknown; - fromPartial(object: Partial<_132.MsgAddAllowedBridgeChain>): _132.MsgAddAllowedBridgeChain; - fromAmino(object: _132.MsgAddAllowedBridgeChainAmino): _132.MsgAddAllowedBridgeChain; - toAmino(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainAmino; - fromAminoMsg(object: _132.MsgAddAllowedBridgeChainAminoMsg): _132.MsgAddAllowedBridgeChain; - toAminoMsg(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _132.MsgAddAllowedBridgeChainProtoMsg): _132.MsgAddAllowedBridgeChain; - toProto(message: _132.MsgAddAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _132.MsgAddAllowedBridgeChain): _132.MsgAddAllowedBridgeChainProtoMsg; - }; - MsgAddAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: _132.MsgAddAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgAddAllowedBridgeChainResponse; - fromJSON(_: any): _132.MsgAddAllowedBridgeChainResponse; - toJSON(_: _132.MsgAddAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial<_132.MsgAddAllowedBridgeChainResponse>): _132.MsgAddAllowedBridgeChainResponse; - fromAmino(_: _132.MsgAddAllowedBridgeChainResponseAmino): _132.MsgAddAllowedBridgeChainResponse; - toAmino(_: _132.MsgAddAllowedBridgeChainResponse): _132.MsgAddAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _132.MsgAddAllowedBridgeChainResponseAminoMsg): _132.MsgAddAllowedBridgeChainResponse; - fromProtoMsg(message: _132.MsgAddAllowedBridgeChainResponseProtoMsg): _132.MsgAddAllowedBridgeChainResponse; - toProto(message: _132.MsgAddAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _132.MsgAddAllowedBridgeChainResponse): _132.MsgAddAllowedBridgeChainResponseProtoMsg; - }; - MsgRemoveAllowedBridgeChain: { - typeUrl: string; - encode(message: _132.MsgRemoveAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveAllowedBridgeChain; - fromJSON(object: any): _132.MsgRemoveAllowedBridgeChain; - toJSON(message: _132.MsgRemoveAllowedBridgeChain): unknown; - fromPartial(object: Partial<_132.MsgRemoveAllowedBridgeChain>): _132.MsgRemoveAllowedBridgeChain; - fromAmino(object: _132.MsgRemoveAllowedBridgeChainAmino): _132.MsgRemoveAllowedBridgeChain; - toAmino(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainAmino; - fromAminoMsg(object: _132.MsgRemoveAllowedBridgeChainAminoMsg): _132.MsgRemoveAllowedBridgeChain; - toAminoMsg(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _132.MsgRemoveAllowedBridgeChainProtoMsg): _132.MsgRemoveAllowedBridgeChain; - toProto(message: _132.MsgRemoveAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _132.MsgRemoveAllowedBridgeChain): _132.MsgRemoveAllowedBridgeChainProtoMsg; - }; - MsgRemoveAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: _132.MsgRemoveAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _132.MsgRemoveAllowedBridgeChainResponse; - fromJSON(_: any): _132.MsgRemoveAllowedBridgeChainResponse; - toJSON(_: _132.MsgRemoveAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial<_132.MsgRemoveAllowedBridgeChainResponse>): _132.MsgRemoveAllowedBridgeChainResponse; - fromAmino(_: _132.MsgRemoveAllowedBridgeChainResponseAmino): _132.MsgRemoveAllowedBridgeChainResponse; - toAmino(_: _132.MsgRemoveAllowedBridgeChainResponse): _132.MsgRemoveAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _132.MsgRemoveAllowedBridgeChainResponseAminoMsg): _132.MsgRemoveAllowedBridgeChainResponse; - fromProtoMsg(message: _132.MsgRemoveAllowedBridgeChainResponseProtoMsg): _132.MsgRemoveAllowedBridgeChainResponse; - toProto(message: _132.MsgRemoveAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _132.MsgRemoveAllowedBridgeChainResponse): _132.MsgRemoveAllowedBridgeChainResponseProtoMsg; - }; - CreditType: { - typeUrl: string; - encode(message: _131.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.CreditType; - fromJSON(object: any): _131.CreditType; - toJSON(message: _131.CreditType): unknown; - fromPartial(object: Partial<_131.CreditType>): _131.CreditType; - fromAmino(object: _131.CreditTypeAmino): _131.CreditType; - toAmino(message: _131.CreditType): _131.CreditTypeAmino; - fromAminoMsg(object: _131.CreditTypeAminoMsg): _131.CreditType; - fromProtoMsg(message: _131.CreditTypeProtoMsg): _131.CreditType; - toProto(message: _131.CreditType): Uint8Array; - toProtoMsg(message: _131.CreditType): _131.CreditTypeProtoMsg; - }; - Class: { - typeUrl: string; - encode(message: _131.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Class; - fromJSON(object: any): _131.Class; - toJSON(message: _131.Class): unknown; - fromPartial(object: Partial<_131.Class>): _131.Class; - fromAmino(object: _131.ClassAmino): _131.Class; - toAmino(message: _131.Class): _131.ClassAmino; - fromAminoMsg(object: _131.ClassAminoMsg): _131.Class; - fromProtoMsg(message: _131.ClassProtoMsg): _131.Class; - toProto(message: _131.Class): Uint8Array; - toProtoMsg(message: _131.Class): _131.ClassProtoMsg; - }; - ClassIssuer: { - typeUrl: string; - encode(message: _131.ClassIssuer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassIssuer; - fromJSON(object: any): _131.ClassIssuer; - toJSON(message: _131.ClassIssuer): unknown; - fromPartial(object: Partial<_131.ClassIssuer>): _131.ClassIssuer; - fromAmino(object: _131.ClassIssuerAmino): _131.ClassIssuer; - toAmino(message: _131.ClassIssuer): _131.ClassIssuerAmino; - fromAminoMsg(object: _131.ClassIssuerAminoMsg): _131.ClassIssuer; - fromProtoMsg(message: _131.ClassIssuerProtoMsg): _131.ClassIssuer; - toProto(message: _131.ClassIssuer): Uint8Array; - toProtoMsg(message: _131.ClassIssuer): _131.ClassIssuerProtoMsg; - }; - Project: { - typeUrl: string; - encode(message: _131.Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Project; - fromJSON(object: any): _131.Project; - toJSON(message: _131.Project): unknown; - fromPartial(object: Partial<_131.Project>): _131.Project; - fromAmino(object: _131.ProjectAmino): _131.Project; - toAmino(message: _131.Project): _131.ProjectAmino; - fromAminoMsg(object: _131.ProjectAminoMsg): _131.Project; - fromProtoMsg(message: _131.ProjectProtoMsg): _131.Project; - toProto(message: _131.Project): Uint8Array; - toProtoMsg(message: _131.Project): _131.ProjectProtoMsg; - }; - Batch: { - typeUrl: string; - encode(message: _131.Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.Batch; - fromJSON(object: any): _131.Batch; - toJSON(message: _131.Batch): unknown; - fromPartial(object: Partial<_131.Batch>): _131.Batch; - fromAmino(object: _131.BatchAmino): _131.Batch; - toAmino(message: _131.Batch): _131.BatchAmino; - fromAminoMsg(object: _131.BatchAminoMsg): _131.Batch; - fromProtoMsg(message: _131.BatchProtoMsg): _131.Batch; - toProto(message: _131.Batch): Uint8Array; - toProtoMsg(message: _131.Batch): _131.BatchProtoMsg; - }; - ClassSequence: { - typeUrl: string; - encode(message: _131.ClassSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassSequence; - fromJSON(object: any): _131.ClassSequence; - toJSON(message: _131.ClassSequence): unknown; - fromPartial(object: Partial<_131.ClassSequence>): _131.ClassSequence; - fromAmino(object: _131.ClassSequenceAmino): _131.ClassSequence; - toAmino(message: _131.ClassSequence): _131.ClassSequenceAmino; - fromAminoMsg(object: _131.ClassSequenceAminoMsg): _131.ClassSequence; - fromProtoMsg(message: _131.ClassSequenceProtoMsg): _131.ClassSequence; - toProto(message: _131.ClassSequence): Uint8Array; - toProtoMsg(message: _131.ClassSequence): _131.ClassSequenceProtoMsg; - }; - ProjectSequence: { - typeUrl: string; - encode(message: _131.ProjectSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ProjectSequence; - fromJSON(object: any): _131.ProjectSequence; - toJSON(message: _131.ProjectSequence): unknown; - fromPartial(object: Partial<_131.ProjectSequence>): _131.ProjectSequence; - fromAmino(object: _131.ProjectSequenceAmino): _131.ProjectSequence; - toAmino(message: _131.ProjectSequence): _131.ProjectSequenceAmino; - fromAminoMsg(object: _131.ProjectSequenceAminoMsg): _131.ProjectSequence; - fromProtoMsg(message: _131.ProjectSequenceProtoMsg): _131.ProjectSequence; - toProto(message: _131.ProjectSequence): Uint8Array; - toProtoMsg(message: _131.ProjectSequence): _131.ProjectSequenceProtoMsg; - }; - BatchSequence: { - typeUrl: string; - encode(message: _131.BatchSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchSequence; - fromJSON(object: any): _131.BatchSequence; - toJSON(message: _131.BatchSequence): unknown; - fromPartial(object: Partial<_131.BatchSequence>): _131.BatchSequence; - fromAmino(object: _131.BatchSequenceAmino): _131.BatchSequence; - toAmino(message: _131.BatchSequence): _131.BatchSequenceAmino; - fromAminoMsg(object: _131.BatchSequenceAminoMsg): _131.BatchSequence; - fromProtoMsg(message: _131.BatchSequenceProtoMsg): _131.BatchSequence; - toProto(message: _131.BatchSequence): Uint8Array; - toProtoMsg(message: _131.BatchSequence): _131.BatchSequenceProtoMsg; - }; - BatchBalance: { - typeUrl: string; - encode(message: _131.BatchBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchBalance; - fromJSON(object: any): _131.BatchBalance; - toJSON(message: _131.BatchBalance): unknown; - fromPartial(object: Partial<_131.BatchBalance>): _131.BatchBalance; - fromAmino(object: _131.BatchBalanceAmino): _131.BatchBalance; - toAmino(message: _131.BatchBalance): _131.BatchBalanceAmino; - fromAminoMsg(object: _131.BatchBalanceAminoMsg): _131.BatchBalance; - fromProtoMsg(message: _131.BatchBalanceProtoMsg): _131.BatchBalance; - toProto(message: _131.BatchBalance): Uint8Array; - toProtoMsg(message: _131.BatchBalance): _131.BatchBalanceProtoMsg; - }; - BatchSupply: { - typeUrl: string; - encode(message: _131.BatchSupply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchSupply; - fromJSON(object: any): _131.BatchSupply; - toJSON(message: _131.BatchSupply): unknown; - fromPartial(object: Partial<_131.BatchSupply>): _131.BatchSupply; - fromAmino(object: _131.BatchSupplyAmino): _131.BatchSupply; - toAmino(message: _131.BatchSupply): _131.BatchSupplyAmino; - fromAminoMsg(object: _131.BatchSupplyAminoMsg): _131.BatchSupply; - fromProtoMsg(message: _131.BatchSupplyProtoMsg): _131.BatchSupply; - toProto(message: _131.BatchSupply): Uint8Array; - toProtoMsg(message: _131.BatchSupply): _131.BatchSupplyProtoMsg; - }; - OriginTxIndex: { - typeUrl: string; - encode(message: _131.OriginTxIndex, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.OriginTxIndex; - fromJSON(object: any): _131.OriginTxIndex; - toJSON(message: _131.OriginTxIndex): unknown; - fromPartial(object: Partial<_131.OriginTxIndex>): _131.OriginTxIndex; - fromAmino(object: _131.OriginTxIndexAmino): _131.OriginTxIndex; - toAmino(message: _131.OriginTxIndex): _131.OriginTxIndexAmino; - fromAminoMsg(object: _131.OriginTxIndexAminoMsg): _131.OriginTxIndex; - fromProtoMsg(message: _131.OriginTxIndexProtoMsg): _131.OriginTxIndex; - toProto(message: _131.OriginTxIndex): Uint8Array; - toProtoMsg(message: _131.OriginTxIndex): _131.OriginTxIndexProtoMsg; - }; - BatchContract: { - typeUrl: string; - encode(message: _131.BatchContract, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.BatchContract; - fromJSON(object: any): _131.BatchContract; - toJSON(message: _131.BatchContract): unknown; - fromPartial(object: Partial<_131.BatchContract>): _131.BatchContract; - fromAmino(object: _131.BatchContractAmino): _131.BatchContract; - toAmino(message: _131.BatchContract): _131.BatchContractAmino; - fromAminoMsg(object: _131.BatchContractAminoMsg): _131.BatchContract; - fromProtoMsg(message: _131.BatchContractProtoMsg): _131.BatchContract; - toProto(message: _131.BatchContract): Uint8Array; - toProtoMsg(message: _131.BatchContract): _131.BatchContractProtoMsg; - }; - ClassCreatorAllowlist: { - typeUrl: string; - encode(message: _131.ClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassCreatorAllowlist; - fromJSON(object: any): _131.ClassCreatorAllowlist; - toJSON(message: _131.ClassCreatorAllowlist): unknown; - fromPartial(object: Partial<_131.ClassCreatorAllowlist>): _131.ClassCreatorAllowlist; - fromAmino(object: _131.ClassCreatorAllowlistAmino): _131.ClassCreatorAllowlist; - toAmino(message: _131.ClassCreatorAllowlist): _131.ClassCreatorAllowlistAmino; - fromAminoMsg(object: _131.ClassCreatorAllowlistAminoMsg): _131.ClassCreatorAllowlist; - fromProtoMsg(message: _131.ClassCreatorAllowlistProtoMsg): _131.ClassCreatorAllowlist; - toProto(message: _131.ClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _131.ClassCreatorAllowlist): _131.ClassCreatorAllowlistProtoMsg; - }; - AllowedClassCreator: { - typeUrl: string; - encode(message: _131.AllowedClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.AllowedClassCreator; - fromJSON(object: any): _131.AllowedClassCreator; - toJSON(message: _131.AllowedClassCreator): unknown; - fromPartial(object: Partial<_131.AllowedClassCreator>): _131.AllowedClassCreator; - fromAmino(object: _131.AllowedClassCreatorAmino): _131.AllowedClassCreator; - toAmino(message: _131.AllowedClassCreator): _131.AllowedClassCreatorAmino; - fromAminoMsg(object: _131.AllowedClassCreatorAminoMsg): _131.AllowedClassCreator; - fromProtoMsg(message: _131.AllowedClassCreatorProtoMsg): _131.AllowedClassCreator; - toProto(message: _131.AllowedClassCreator): Uint8Array; - toProtoMsg(message: _131.AllowedClassCreator): _131.AllowedClassCreatorProtoMsg; - }; - ClassFee: { - typeUrl: string; - encode(message: _131.ClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.ClassFee; - fromJSON(object: any): _131.ClassFee; - toJSON(message: _131.ClassFee): unknown; - fromPartial(object: Partial<_131.ClassFee>): _131.ClassFee; - fromAmino(object: _131.ClassFeeAmino): _131.ClassFee; - toAmino(message: _131.ClassFee): _131.ClassFeeAmino; - fromAminoMsg(object: _131.ClassFeeAminoMsg): _131.ClassFee; - fromProtoMsg(message: _131.ClassFeeProtoMsg): _131.ClassFee; - toProto(message: _131.ClassFee): Uint8Array; - toProtoMsg(message: _131.ClassFee): _131.ClassFeeProtoMsg; - }; - AllowedBridgeChain: { - typeUrl: string; - encode(message: _131.AllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _131.AllowedBridgeChain; - fromJSON(object: any): _131.AllowedBridgeChain; - toJSON(message: _131.AllowedBridgeChain): unknown; - fromPartial(object: Partial<_131.AllowedBridgeChain>): _131.AllowedBridgeChain; - fromAmino(object: _131.AllowedBridgeChainAmino): _131.AllowedBridgeChain; - toAmino(message: _131.AllowedBridgeChain): _131.AllowedBridgeChainAmino; - fromAminoMsg(object: _131.AllowedBridgeChainAminoMsg): _131.AllowedBridgeChain; - fromProtoMsg(message: _131.AllowedBridgeChainProtoMsg): _131.AllowedBridgeChain; - toProto(message: _131.AllowedBridgeChain): Uint8Array; - toProtoMsg(message: _131.AllowedBridgeChain): _131.AllowedBridgeChainProtoMsg; - }; - QueryClassesRequest: { - typeUrl: string; - encode(message: _130.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesRequest; - fromJSON(object: any): _130.QueryClassesRequest; - toJSON(message: _130.QueryClassesRequest): unknown; - fromPartial(object: Partial<_130.QueryClassesRequest>): _130.QueryClassesRequest; - fromAmino(object: _130.QueryClassesRequestAmino): _130.QueryClassesRequest; - toAmino(message: _130.QueryClassesRequest): _130.QueryClassesRequestAmino; - fromAminoMsg(object: _130.QueryClassesRequestAminoMsg): _130.QueryClassesRequest; - fromProtoMsg(message: _130.QueryClassesRequestProtoMsg): _130.QueryClassesRequest; - toProto(message: _130.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassesRequest): _130.QueryClassesRequestProtoMsg; - }; - QueryClassesResponse: { - typeUrl: string; - encode(message: _130.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesResponse; - fromJSON(object: any): _130.QueryClassesResponse; - toJSON(message: _130.QueryClassesResponse): unknown; - fromPartial(object: Partial<_130.QueryClassesResponse>): _130.QueryClassesResponse; - fromAmino(object: _130.QueryClassesResponseAmino): _130.QueryClassesResponse; - toAmino(message: _130.QueryClassesResponse): _130.QueryClassesResponseAmino; - fromAminoMsg(object: _130.QueryClassesResponseAminoMsg): _130.QueryClassesResponse; - fromProtoMsg(message: _130.QueryClassesResponseProtoMsg): _130.QueryClassesResponse; - toProto(message: _130.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassesResponse): _130.QueryClassesResponseProtoMsg; - }; - QueryClassesByAdminRequest: { - typeUrl: string; - encode(message: _130.QueryClassesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesByAdminRequest; - fromJSON(object: any): _130.QueryClassesByAdminRequest; - toJSON(message: _130.QueryClassesByAdminRequest): unknown; - fromPartial(object: Partial<_130.QueryClassesByAdminRequest>): _130.QueryClassesByAdminRequest; - fromAmino(object: _130.QueryClassesByAdminRequestAmino): _130.QueryClassesByAdminRequest; - toAmino(message: _130.QueryClassesByAdminRequest): _130.QueryClassesByAdminRequestAmino; - fromAminoMsg(object: _130.QueryClassesByAdminRequestAminoMsg): _130.QueryClassesByAdminRequest; - fromProtoMsg(message: _130.QueryClassesByAdminRequestProtoMsg): _130.QueryClassesByAdminRequest; - toProto(message: _130.QueryClassesByAdminRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassesByAdminRequest): _130.QueryClassesByAdminRequestProtoMsg; - }; - QueryClassesByAdminResponse: { - typeUrl: string; - encode(message: _130.QueryClassesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassesByAdminResponse; - fromJSON(object: any): _130.QueryClassesByAdminResponse; - toJSON(message: _130.QueryClassesByAdminResponse): unknown; - fromPartial(object: Partial<_130.QueryClassesByAdminResponse>): _130.QueryClassesByAdminResponse; - fromAmino(object: _130.QueryClassesByAdminResponseAmino): _130.QueryClassesByAdminResponse; - toAmino(message: _130.QueryClassesByAdminResponse): _130.QueryClassesByAdminResponseAmino; - fromAminoMsg(object: _130.QueryClassesByAdminResponseAminoMsg): _130.QueryClassesByAdminResponse; - fromProtoMsg(message: _130.QueryClassesByAdminResponseProtoMsg): _130.QueryClassesByAdminResponse; - toProto(message: _130.QueryClassesByAdminResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassesByAdminResponse): _130.QueryClassesByAdminResponseProtoMsg; - }; - QueryClassRequest: { - typeUrl: string; - encode(message: _130.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassRequest; - fromJSON(object: any): _130.QueryClassRequest; - toJSON(message: _130.QueryClassRequest): unknown; - fromPartial(object: Partial<_130.QueryClassRequest>): _130.QueryClassRequest; - fromAmino(object: _130.QueryClassRequestAmino): _130.QueryClassRequest; - toAmino(message: _130.QueryClassRequest): _130.QueryClassRequestAmino; - fromAminoMsg(object: _130.QueryClassRequestAminoMsg): _130.QueryClassRequest; - fromProtoMsg(message: _130.QueryClassRequestProtoMsg): _130.QueryClassRequest; - toProto(message: _130.QueryClassRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassRequest): _130.QueryClassRequestProtoMsg; - }; - QueryClassResponse: { - typeUrl: string; - encode(message: _130.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassResponse; - fromJSON(object: any): _130.QueryClassResponse; - toJSON(message: _130.QueryClassResponse): unknown; - fromPartial(object: Partial<_130.QueryClassResponse>): _130.QueryClassResponse; - fromAmino(object: _130.QueryClassResponseAmino): _130.QueryClassResponse; - toAmino(message: _130.QueryClassResponse): _130.QueryClassResponseAmino; - fromAminoMsg(object: _130.QueryClassResponseAminoMsg): _130.QueryClassResponse; - fromProtoMsg(message: _130.QueryClassResponseProtoMsg): _130.QueryClassResponse; - toProto(message: _130.QueryClassResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassResponse): _130.QueryClassResponseProtoMsg; - }; - QueryClassIssuersRequest: { - typeUrl: string; - encode(message: _130.QueryClassIssuersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassIssuersRequest; - fromJSON(object: any): _130.QueryClassIssuersRequest; - toJSON(message: _130.QueryClassIssuersRequest): unknown; - fromPartial(object: Partial<_130.QueryClassIssuersRequest>): _130.QueryClassIssuersRequest; - fromAmino(object: _130.QueryClassIssuersRequestAmino): _130.QueryClassIssuersRequest; - toAmino(message: _130.QueryClassIssuersRequest): _130.QueryClassIssuersRequestAmino; - fromAminoMsg(object: _130.QueryClassIssuersRequestAminoMsg): _130.QueryClassIssuersRequest; - fromProtoMsg(message: _130.QueryClassIssuersRequestProtoMsg): _130.QueryClassIssuersRequest; - toProto(message: _130.QueryClassIssuersRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassIssuersRequest): _130.QueryClassIssuersRequestProtoMsg; - }; - QueryClassIssuersResponse: { - typeUrl: string; - encode(message: _130.QueryClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassIssuersResponse; - fromJSON(object: any): _130.QueryClassIssuersResponse; - toJSON(message: _130.QueryClassIssuersResponse): unknown; - fromPartial(object: Partial<_130.QueryClassIssuersResponse>): _130.QueryClassIssuersResponse; - fromAmino(object: _130.QueryClassIssuersResponseAmino): _130.QueryClassIssuersResponse; - toAmino(message: _130.QueryClassIssuersResponse): _130.QueryClassIssuersResponseAmino; - fromAminoMsg(object: _130.QueryClassIssuersResponseAminoMsg): _130.QueryClassIssuersResponse; - fromProtoMsg(message: _130.QueryClassIssuersResponseProtoMsg): _130.QueryClassIssuersResponse; - toProto(message: _130.QueryClassIssuersResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassIssuersResponse): _130.QueryClassIssuersResponseProtoMsg; - }; - QueryProjectsRequest: { - typeUrl: string; - encode(message: _130.QueryProjectsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsRequest; - fromJSON(object: any): _130.QueryProjectsRequest; - toJSON(message: _130.QueryProjectsRequest): unknown; - fromPartial(object: Partial<_130.QueryProjectsRequest>): _130.QueryProjectsRequest; - fromAmino(object: _130.QueryProjectsRequestAmino): _130.QueryProjectsRequest; - toAmino(message: _130.QueryProjectsRequest): _130.QueryProjectsRequestAmino; - fromAminoMsg(object: _130.QueryProjectsRequestAminoMsg): _130.QueryProjectsRequest; - fromProtoMsg(message: _130.QueryProjectsRequestProtoMsg): _130.QueryProjectsRequest; - toProto(message: _130.QueryProjectsRequest): Uint8Array; - toProtoMsg(message: _130.QueryProjectsRequest): _130.QueryProjectsRequestProtoMsg; - }; - QueryProjectsResponse: { - typeUrl: string; - encode(message: _130.QueryProjectsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsResponse; - fromJSON(object: any): _130.QueryProjectsResponse; - toJSON(message: _130.QueryProjectsResponse): unknown; - fromPartial(object: Partial<_130.QueryProjectsResponse>): _130.QueryProjectsResponse; - fromAmino(object: _130.QueryProjectsResponseAmino): _130.QueryProjectsResponse; - toAmino(message: _130.QueryProjectsResponse): _130.QueryProjectsResponseAmino; - fromAminoMsg(object: _130.QueryProjectsResponseAminoMsg): _130.QueryProjectsResponse; - fromProtoMsg(message: _130.QueryProjectsResponseProtoMsg): _130.QueryProjectsResponse; - toProto(message: _130.QueryProjectsResponse): Uint8Array; - toProtoMsg(message: _130.QueryProjectsResponse): _130.QueryProjectsResponseProtoMsg; - }; - QueryProjectsByClassRequest: { - typeUrl: string; - encode(message: _130.QueryProjectsByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByClassRequest; - fromJSON(object: any): _130.QueryProjectsByClassRequest; - toJSON(message: _130.QueryProjectsByClassRequest): unknown; - fromPartial(object: Partial<_130.QueryProjectsByClassRequest>): _130.QueryProjectsByClassRequest; - fromAmino(object: _130.QueryProjectsByClassRequestAmino): _130.QueryProjectsByClassRequest; - toAmino(message: _130.QueryProjectsByClassRequest): _130.QueryProjectsByClassRequestAmino; - fromAminoMsg(object: _130.QueryProjectsByClassRequestAminoMsg): _130.QueryProjectsByClassRequest; - fromProtoMsg(message: _130.QueryProjectsByClassRequestProtoMsg): _130.QueryProjectsByClassRequest; - toProto(message: _130.QueryProjectsByClassRequest): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByClassRequest): _130.QueryProjectsByClassRequestProtoMsg; - }; - QueryProjectsByClassResponse: { - typeUrl: string; - encode(message: _130.QueryProjectsByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByClassResponse; - fromJSON(object: any): _130.QueryProjectsByClassResponse; - toJSON(message: _130.QueryProjectsByClassResponse): unknown; - fromPartial(object: Partial<_130.QueryProjectsByClassResponse>): _130.QueryProjectsByClassResponse; - fromAmino(object: _130.QueryProjectsByClassResponseAmino): _130.QueryProjectsByClassResponse; - toAmino(message: _130.QueryProjectsByClassResponse): _130.QueryProjectsByClassResponseAmino; - fromAminoMsg(object: _130.QueryProjectsByClassResponseAminoMsg): _130.QueryProjectsByClassResponse; - fromProtoMsg(message: _130.QueryProjectsByClassResponseProtoMsg): _130.QueryProjectsByClassResponse; - toProto(message: _130.QueryProjectsByClassResponse): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByClassResponse): _130.QueryProjectsByClassResponseProtoMsg; - }; - QueryProjectsByReferenceIdRequest: { - typeUrl: string; - encode(message: _130.QueryProjectsByReferenceIdRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByReferenceIdRequest; - fromJSON(object: any): _130.QueryProjectsByReferenceIdRequest; - toJSON(message: _130.QueryProjectsByReferenceIdRequest): unknown; - fromPartial(object: Partial<_130.QueryProjectsByReferenceIdRequest>): _130.QueryProjectsByReferenceIdRequest; - fromAmino(object: _130.QueryProjectsByReferenceIdRequestAmino): _130.QueryProjectsByReferenceIdRequest; - toAmino(message: _130.QueryProjectsByReferenceIdRequest): _130.QueryProjectsByReferenceIdRequestAmino; - fromAminoMsg(object: _130.QueryProjectsByReferenceIdRequestAminoMsg): _130.QueryProjectsByReferenceIdRequest; - fromProtoMsg(message: _130.QueryProjectsByReferenceIdRequestProtoMsg): _130.QueryProjectsByReferenceIdRequest; - toProto(message: _130.QueryProjectsByReferenceIdRequest): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByReferenceIdRequest): _130.QueryProjectsByReferenceIdRequestProtoMsg; - }; - QueryProjectsByReferenceIdResponse: { - typeUrl: string; - encode(message: _130.QueryProjectsByReferenceIdResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByReferenceIdResponse; - fromJSON(object: any): _130.QueryProjectsByReferenceIdResponse; - toJSON(message: _130.QueryProjectsByReferenceIdResponse): unknown; - fromPartial(object: Partial<_130.QueryProjectsByReferenceIdResponse>): _130.QueryProjectsByReferenceIdResponse; - fromAmino(object: _130.QueryProjectsByReferenceIdResponseAmino): _130.QueryProjectsByReferenceIdResponse; - toAmino(message: _130.QueryProjectsByReferenceIdResponse): _130.QueryProjectsByReferenceIdResponseAmino; - fromAminoMsg(object: _130.QueryProjectsByReferenceIdResponseAminoMsg): _130.QueryProjectsByReferenceIdResponse; - fromProtoMsg(message: _130.QueryProjectsByReferenceIdResponseProtoMsg): _130.QueryProjectsByReferenceIdResponse; - toProto(message: _130.QueryProjectsByReferenceIdResponse): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByReferenceIdResponse): _130.QueryProjectsByReferenceIdResponseProtoMsg; - }; - QueryProjectsByAdminRequest: { - typeUrl: string; - encode(message: _130.QueryProjectsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByAdminRequest; - fromJSON(object: any): _130.QueryProjectsByAdminRequest; - toJSON(message: _130.QueryProjectsByAdminRequest): unknown; - fromPartial(object: Partial<_130.QueryProjectsByAdminRequest>): _130.QueryProjectsByAdminRequest; - fromAmino(object: _130.QueryProjectsByAdminRequestAmino): _130.QueryProjectsByAdminRequest; - toAmino(message: _130.QueryProjectsByAdminRequest): _130.QueryProjectsByAdminRequestAmino; - fromAminoMsg(object: _130.QueryProjectsByAdminRequestAminoMsg): _130.QueryProjectsByAdminRequest; - fromProtoMsg(message: _130.QueryProjectsByAdminRequestProtoMsg): _130.QueryProjectsByAdminRequest; - toProto(message: _130.QueryProjectsByAdminRequest): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByAdminRequest): _130.QueryProjectsByAdminRequestProtoMsg; - }; - QueryProjectsByAdminResponse: { - typeUrl: string; - encode(message: _130.QueryProjectsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectsByAdminResponse; - fromJSON(object: any): _130.QueryProjectsByAdminResponse; - toJSON(message: _130.QueryProjectsByAdminResponse): unknown; - fromPartial(object: Partial<_130.QueryProjectsByAdminResponse>): _130.QueryProjectsByAdminResponse; - fromAmino(object: _130.QueryProjectsByAdminResponseAmino): _130.QueryProjectsByAdminResponse; - toAmino(message: _130.QueryProjectsByAdminResponse): _130.QueryProjectsByAdminResponseAmino; - fromAminoMsg(object: _130.QueryProjectsByAdminResponseAminoMsg): _130.QueryProjectsByAdminResponse; - fromProtoMsg(message: _130.QueryProjectsByAdminResponseProtoMsg): _130.QueryProjectsByAdminResponse; - toProto(message: _130.QueryProjectsByAdminResponse): Uint8Array; - toProtoMsg(message: _130.QueryProjectsByAdminResponse): _130.QueryProjectsByAdminResponseProtoMsg; - }; - QueryProjectRequest: { - typeUrl: string; - encode(message: _130.QueryProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectRequest; - fromJSON(object: any): _130.QueryProjectRequest; - toJSON(message: _130.QueryProjectRequest): unknown; - fromPartial(object: Partial<_130.QueryProjectRequest>): _130.QueryProjectRequest; - fromAmino(object: _130.QueryProjectRequestAmino): _130.QueryProjectRequest; - toAmino(message: _130.QueryProjectRequest): _130.QueryProjectRequestAmino; - fromAminoMsg(object: _130.QueryProjectRequestAminoMsg): _130.QueryProjectRequest; - fromProtoMsg(message: _130.QueryProjectRequestProtoMsg): _130.QueryProjectRequest; - toProto(message: _130.QueryProjectRequest): Uint8Array; - toProtoMsg(message: _130.QueryProjectRequest): _130.QueryProjectRequestProtoMsg; - }; - QueryProjectResponse: { - typeUrl: string; - encode(message: _130.QueryProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryProjectResponse; - fromJSON(object: any): _130.QueryProjectResponse; - toJSON(message: _130.QueryProjectResponse): unknown; - fromPartial(object: Partial<_130.QueryProjectResponse>): _130.QueryProjectResponse; - fromAmino(object: _130.QueryProjectResponseAmino): _130.QueryProjectResponse; - toAmino(message: _130.QueryProjectResponse): _130.QueryProjectResponseAmino; - fromAminoMsg(object: _130.QueryProjectResponseAminoMsg): _130.QueryProjectResponse; - fromProtoMsg(message: _130.QueryProjectResponseProtoMsg): _130.QueryProjectResponse; - toProto(message: _130.QueryProjectResponse): Uint8Array; - toProtoMsg(message: _130.QueryProjectResponse): _130.QueryProjectResponseProtoMsg; - }; - QueryBatchesRequest: { - typeUrl: string; - encode(message: _130.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesRequest; - fromJSON(object: any): _130.QueryBatchesRequest; - toJSON(message: _130.QueryBatchesRequest): unknown; - fromPartial(object: Partial<_130.QueryBatchesRequest>): _130.QueryBatchesRequest; - fromAmino(object: _130.QueryBatchesRequestAmino): _130.QueryBatchesRequest; - toAmino(message: _130.QueryBatchesRequest): _130.QueryBatchesRequestAmino; - fromAminoMsg(object: _130.QueryBatchesRequestAminoMsg): _130.QueryBatchesRequest; - fromProtoMsg(message: _130.QueryBatchesRequestProtoMsg): _130.QueryBatchesRequest; - toProto(message: _130.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _130.QueryBatchesRequest): _130.QueryBatchesRequestProtoMsg; - }; - QueryBatchesResponse: { - typeUrl: string; - encode(message: _130.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesResponse; - fromJSON(object: any): _130.QueryBatchesResponse; - toJSON(message: _130.QueryBatchesResponse): unknown; - fromPartial(object: Partial<_130.QueryBatchesResponse>): _130.QueryBatchesResponse; - fromAmino(object: _130.QueryBatchesResponseAmino): _130.QueryBatchesResponse; - toAmino(message: _130.QueryBatchesResponse): _130.QueryBatchesResponseAmino; - fromAminoMsg(object: _130.QueryBatchesResponseAminoMsg): _130.QueryBatchesResponse; - fromProtoMsg(message: _130.QueryBatchesResponseProtoMsg): _130.QueryBatchesResponse; - toProto(message: _130.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _130.QueryBatchesResponse): _130.QueryBatchesResponseProtoMsg; - }; - QueryBatchesByIssuerRequest: { - typeUrl: string; - encode(message: _130.QueryBatchesByIssuerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByIssuerRequest; - fromJSON(object: any): _130.QueryBatchesByIssuerRequest; - toJSON(message: _130.QueryBatchesByIssuerRequest): unknown; - fromPartial(object: Partial<_130.QueryBatchesByIssuerRequest>): _130.QueryBatchesByIssuerRequest; - fromAmino(object: _130.QueryBatchesByIssuerRequestAmino): _130.QueryBatchesByIssuerRequest; - toAmino(message: _130.QueryBatchesByIssuerRequest): _130.QueryBatchesByIssuerRequestAmino; - fromAminoMsg(object: _130.QueryBatchesByIssuerRequestAminoMsg): _130.QueryBatchesByIssuerRequest; - fromProtoMsg(message: _130.QueryBatchesByIssuerRequestProtoMsg): _130.QueryBatchesByIssuerRequest; - toProto(message: _130.QueryBatchesByIssuerRequest): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByIssuerRequest): _130.QueryBatchesByIssuerRequestProtoMsg; - }; - QueryBatchesByIssuerResponse: { - typeUrl: string; - encode(message: _130.QueryBatchesByIssuerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByIssuerResponse; - fromJSON(object: any): _130.QueryBatchesByIssuerResponse; - toJSON(message: _130.QueryBatchesByIssuerResponse): unknown; - fromPartial(object: Partial<_130.QueryBatchesByIssuerResponse>): _130.QueryBatchesByIssuerResponse; - fromAmino(object: _130.QueryBatchesByIssuerResponseAmino): _130.QueryBatchesByIssuerResponse; - toAmino(message: _130.QueryBatchesByIssuerResponse): _130.QueryBatchesByIssuerResponseAmino; - fromAminoMsg(object: _130.QueryBatchesByIssuerResponseAminoMsg): _130.QueryBatchesByIssuerResponse; - fromProtoMsg(message: _130.QueryBatchesByIssuerResponseProtoMsg): _130.QueryBatchesByIssuerResponse; - toProto(message: _130.QueryBatchesByIssuerResponse): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByIssuerResponse): _130.QueryBatchesByIssuerResponseProtoMsg; - }; - QueryBatchesByClassRequest: { - typeUrl: string; - encode(message: _130.QueryBatchesByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByClassRequest; - fromJSON(object: any): _130.QueryBatchesByClassRequest; - toJSON(message: _130.QueryBatchesByClassRequest): unknown; - fromPartial(object: Partial<_130.QueryBatchesByClassRequest>): _130.QueryBatchesByClassRequest; - fromAmino(object: _130.QueryBatchesByClassRequestAmino): _130.QueryBatchesByClassRequest; - toAmino(message: _130.QueryBatchesByClassRequest): _130.QueryBatchesByClassRequestAmino; - fromAminoMsg(object: _130.QueryBatchesByClassRequestAminoMsg): _130.QueryBatchesByClassRequest; - fromProtoMsg(message: _130.QueryBatchesByClassRequestProtoMsg): _130.QueryBatchesByClassRequest; - toProto(message: _130.QueryBatchesByClassRequest): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByClassRequest): _130.QueryBatchesByClassRequestProtoMsg; - }; - QueryBatchesByProjectRequest: { - typeUrl: string; - encode(message: _130.QueryBatchesByProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByProjectRequest; - fromJSON(object: any): _130.QueryBatchesByProjectRequest; - toJSON(message: _130.QueryBatchesByProjectRequest): unknown; - fromPartial(object: Partial<_130.QueryBatchesByProjectRequest>): _130.QueryBatchesByProjectRequest; - fromAmino(object: _130.QueryBatchesByProjectRequestAmino): _130.QueryBatchesByProjectRequest; - toAmino(message: _130.QueryBatchesByProjectRequest): _130.QueryBatchesByProjectRequestAmino; - fromAminoMsg(object: _130.QueryBatchesByProjectRequestAminoMsg): _130.QueryBatchesByProjectRequest; - fromProtoMsg(message: _130.QueryBatchesByProjectRequestProtoMsg): _130.QueryBatchesByProjectRequest; - toProto(message: _130.QueryBatchesByProjectRequest): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByProjectRequest): _130.QueryBatchesByProjectRequestProtoMsg; - }; - QueryBatchesByProjectResponse: { - typeUrl: string; - encode(message: _130.QueryBatchesByProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByProjectResponse; - fromJSON(object: any): _130.QueryBatchesByProjectResponse; - toJSON(message: _130.QueryBatchesByProjectResponse): unknown; - fromPartial(object: Partial<_130.QueryBatchesByProjectResponse>): _130.QueryBatchesByProjectResponse; - fromAmino(object: _130.QueryBatchesByProjectResponseAmino): _130.QueryBatchesByProjectResponse; - toAmino(message: _130.QueryBatchesByProjectResponse): _130.QueryBatchesByProjectResponseAmino; - fromAminoMsg(object: _130.QueryBatchesByProjectResponseAminoMsg): _130.QueryBatchesByProjectResponse; - fromProtoMsg(message: _130.QueryBatchesByProjectResponseProtoMsg): _130.QueryBatchesByProjectResponse; - toProto(message: _130.QueryBatchesByProjectResponse): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByProjectResponse): _130.QueryBatchesByProjectResponseProtoMsg; - }; - QueryBatchesByClassResponse: { - typeUrl: string; - encode(message: _130.QueryBatchesByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchesByClassResponse; - fromJSON(object: any): _130.QueryBatchesByClassResponse; - toJSON(message: _130.QueryBatchesByClassResponse): unknown; - fromPartial(object: Partial<_130.QueryBatchesByClassResponse>): _130.QueryBatchesByClassResponse; - fromAmino(object: _130.QueryBatchesByClassResponseAmino): _130.QueryBatchesByClassResponse; - toAmino(message: _130.QueryBatchesByClassResponse): _130.QueryBatchesByClassResponseAmino; - fromAminoMsg(object: _130.QueryBatchesByClassResponseAminoMsg): _130.QueryBatchesByClassResponse; - fromProtoMsg(message: _130.QueryBatchesByClassResponseProtoMsg): _130.QueryBatchesByClassResponse; - toProto(message: _130.QueryBatchesByClassResponse): Uint8Array; - toProtoMsg(message: _130.QueryBatchesByClassResponse): _130.QueryBatchesByClassResponseProtoMsg; - }; - QueryBatchRequest: { - typeUrl: string; - encode(message: _130.QueryBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchRequest; - fromJSON(object: any): _130.QueryBatchRequest; - toJSON(message: _130.QueryBatchRequest): unknown; - fromPartial(object: Partial<_130.QueryBatchRequest>): _130.QueryBatchRequest; - fromAmino(object: _130.QueryBatchRequestAmino): _130.QueryBatchRequest; - toAmino(message: _130.QueryBatchRequest): _130.QueryBatchRequestAmino; - fromAminoMsg(object: _130.QueryBatchRequestAminoMsg): _130.QueryBatchRequest; - fromProtoMsg(message: _130.QueryBatchRequestProtoMsg): _130.QueryBatchRequest; - toProto(message: _130.QueryBatchRequest): Uint8Array; - toProtoMsg(message: _130.QueryBatchRequest): _130.QueryBatchRequestProtoMsg; - }; - QueryBatchResponse: { - typeUrl: string; - encode(message: _130.QueryBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBatchResponse; - fromJSON(object: any): _130.QueryBatchResponse; - toJSON(message: _130.QueryBatchResponse): unknown; - fromPartial(object: Partial<_130.QueryBatchResponse>): _130.QueryBatchResponse; - fromAmino(object: _130.QueryBatchResponseAmino): _130.QueryBatchResponse; - toAmino(message: _130.QueryBatchResponse): _130.QueryBatchResponseAmino; - fromAminoMsg(object: _130.QueryBatchResponseAminoMsg): _130.QueryBatchResponse; - fromProtoMsg(message: _130.QueryBatchResponseProtoMsg): _130.QueryBatchResponse; - toProto(message: _130.QueryBatchResponse): Uint8Array; - toProtoMsg(message: _130.QueryBatchResponse): _130.QueryBatchResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _130.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalanceRequest; - fromJSON(object: any): _130.QueryBalanceRequest; - toJSON(message: _130.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_130.QueryBalanceRequest>): _130.QueryBalanceRequest; - fromAmino(object: _130.QueryBalanceRequestAmino): _130.QueryBalanceRequest; - toAmino(message: _130.QueryBalanceRequest): _130.QueryBalanceRequestAmino; - fromAminoMsg(object: _130.QueryBalanceRequestAminoMsg): _130.QueryBalanceRequest; - fromProtoMsg(message: _130.QueryBalanceRequestProtoMsg): _130.QueryBalanceRequest; - toProto(message: _130.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _130.QueryBalanceRequest): _130.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _130.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalanceResponse; - fromJSON(object: any): _130.QueryBalanceResponse; - toJSON(message: _130.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_130.QueryBalanceResponse>): _130.QueryBalanceResponse; - fromAmino(object: _130.QueryBalanceResponseAmino): _130.QueryBalanceResponse; - toAmino(message: _130.QueryBalanceResponse): _130.QueryBalanceResponseAmino; - fromAminoMsg(object: _130.QueryBalanceResponseAminoMsg): _130.QueryBalanceResponse; - fromProtoMsg(message: _130.QueryBalanceResponseProtoMsg): _130.QueryBalanceResponse; - toProto(message: _130.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _130.QueryBalanceResponse): _130.QueryBalanceResponseProtoMsg; - }; - QueryBalancesRequest: { - typeUrl: string; - encode(message: _130.QueryBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesRequest; - fromJSON(object: any): _130.QueryBalancesRequest; - toJSON(message: _130.QueryBalancesRequest): unknown; - fromPartial(object: Partial<_130.QueryBalancesRequest>): _130.QueryBalancesRequest; - fromAmino(object: _130.QueryBalancesRequestAmino): _130.QueryBalancesRequest; - toAmino(message: _130.QueryBalancesRequest): _130.QueryBalancesRequestAmino; - fromAminoMsg(object: _130.QueryBalancesRequestAminoMsg): _130.QueryBalancesRequest; - fromProtoMsg(message: _130.QueryBalancesRequestProtoMsg): _130.QueryBalancesRequest; - toProto(message: _130.QueryBalancesRequest): Uint8Array; - toProtoMsg(message: _130.QueryBalancesRequest): _130.QueryBalancesRequestProtoMsg; - }; - QueryBalancesResponse: { - typeUrl: string; - encode(message: _130.QueryBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesResponse; - fromJSON(object: any): _130.QueryBalancesResponse; - toJSON(message: _130.QueryBalancesResponse): unknown; - fromPartial(object: Partial<_130.QueryBalancesResponse>): _130.QueryBalancesResponse; - fromAmino(object: _130.QueryBalancesResponseAmino): _130.QueryBalancesResponse; - toAmino(message: _130.QueryBalancesResponse): _130.QueryBalancesResponseAmino; - fromAminoMsg(object: _130.QueryBalancesResponseAminoMsg): _130.QueryBalancesResponse; - fromProtoMsg(message: _130.QueryBalancesResponseProtoMsg): _130.QueryBalancesResponse; - toProto(message: _130.QueryBalancesResponse): Uint8Array; - toProtoMsg(message: _130.QueryBalancesResponse): _130.QueryBalancesResponseProtoMsg; - }; - QueryBalancesByBatchRequest: { - typeUrl: string; - encode(message: _130.QueryBalancesByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesByBatchRequest; - fromJSON(object: any): _130.QueryBalancesByBatchRequest; - toJSON(message: _130.QueryBalancesByBatchRequest): unknown; - fromPartial(object: Partial<_130.QueryBalancesByBatchRequest>): _130.QueryBalancesByBatchRequest; - fromAmino(object: _130.QueryBalancesByBatchRequestAmino): _130.QueryBalancesByBatchRequest; - toAmino(message: _130.QueryBalancesByBatchRequest): _130.QueryBalancesByBatchRequestAmino; - fromAminoMsg(object: _130.QueryBalancesByBatchRequestAminoMsg): _130.QueryBalancesByBatchRequest; - fromProtoMsg(message: _130.QueryBalancesByBatchRequestProtoMsg): _130.QueryBalancesByBatchRequest; - toProto(message: _130.QueryBalancesByBatchRequest): Uint8Array; - toProtoMsg(message: _130.QueryBalancesByBatchRequest): _130.QueryBalancesByBatchRequestProtoMsg; - }; - QueryBalancesByBatchResponse: { - typeUrl: string; - encode(message: _130.QueryBalancesByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryBalancesByBatchResponse; - fromJSON(object: any): _130.QueryBalancesByBatchResponse; - toJSON(message: _130.QueryBalancesByBatchResponse): unknown; - fromPartial(object: Partial<_130.QueryBalancesByBatchResponse>): _130.QueryBalancesByBatchResponse; - fromAmino(object: _130.QueryBalancesByBatchResponseAmino): _130.QueryBalancesByBatchResponse; - toAmino(message: _130.QueryBalancesByBatchResponse): _130.QueryBalancesByBatchResponseAmino; - fromAminoMsg(object: _130.QueryBalancesByBatchResponseAminoMsg): _130.QueryBalancesByBatchResponse; - fromProtoMsg(message: _130.QueryBalancesByBatchResponseProtoMsg): _130.QueryBalancesByBatchResponse; - toProto(message: _130.QueryBalancesByBatchResponse): Uint8Array; - toProtoMsg(message: _130.QueryBalancesByBatchResponse): _130.QueryBalancesByBatchResponseProtoMsg; - }; - QueryAllBalancesRequest: { - typeUrl: string; - encode(message: _130.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllBalancesRequest; - fromJSON(object: any): _130.QueryAllBalancesRequest; - toJSON(message: _130.QueryAllBalancesRequest): unknown; - fromPartial(object: Partial<_130.QueryAllBalancesRequest>): _130.QueryAllBalancesRequest; - fromAmino(object: _130.QueryAllBalancesRequestAmino): _130.QueryAllBalancesRequest; - toAmino(message: _130.QueryAllBalancesRequest): _130.QueryAllBalancesRequestAmino; - fromAminoMsg(object: _130.QueryAllBalancesRequestAminoMsg): _130.QueryAllBalancesRequest; - fromProtoMsg(message: _130.QueryAllBalancesRequestProtoMsg): _130.QueryAllBalancesRequest; - toProto(message: _130.QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: _130.QueryAllBalancesRequest): _130.QueryAllBalancesRequestProtoMsg; - }; - QueryAllBalancesResponse: { - typeUrl: string; - encode(message: _130.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllBalancesResponse; - fromJSON(object: any): _130.QueryAllBalancesResponse; - toJSON(message: _130.QueryAllBalancesResponse): unknown; - fromPartial(object: Partial<_130.QueryAllBalancesResponse>): _130.QueryAllBalancesResponse; - fromAmino(object: _130.QueryAllBalancesResponseAmino): _130.QueryAllBalancesResponse; - toAmino(message: _130.QueryAllBalancesResponse): _130.QueryAllBalancesResponseAmino; - fromAminoMsg(object: _130.QueryAllBalancesResponseAminoMsg): _130.QueryAllBalancesResponse; - fromProtoMsg(message: _130.QueryAllBalancesResponseProtoMsg): _130.QueryAllBalancesResponse; - toProto(message: _130.QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: _130.QueryAllBalancesResponse): _130.QueryAllBalancesResponseProtoMsg; - }; - QuerySupplyRequest: { - typeUrl: string; - encode(message: _130.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QuerySupplyRequest; - fromJSON(object: any): _130.QuerySupplyRequest; - toJSON(message: _130.QuerySupplyRequest): unknown; - fromPartial(object: Partial<_130.QuerySupplyRequest>): _130.QuerySupplyRequest; - fromAmino(object: _130.QuerySupplyRequestAmino): _130.QuerySupplyRequest; - toAmino(message: _130.QuerySupplyRequest): _130.QuerySupplyRequestAmino; - fromAminoMsg(object: _130.QuerySupplyRequestAminoMsg): _130.QuerySupplyRequest; - fromProtoMsg(message: _130.QuerySupplyRequestProtoMsg): _130.QuerySupplyRequest; - toProto(message: _130.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _130.QuerySupplyRequest): _130.QuerySupplyRequestProtoMsg; - }; - QuerySupplyResponse: { - typeUrl: string; - encode(message: _130.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QuerySupplyResponse; - fromJSON(object: any): _130.QuerySupplyResponse; - toJSON(message: _130.QuerySupplyResponse): unknown; - fromPartial(object: Partial<_130.QuerySupplyResponse>): _130.QuerySupplyResponse; - fromAmino(object: _130.QuerySupplyResponseAmino): _130.QuerySupplyResponse; - toAmino(message: _130.QuerySupplyResponse): _130.QuerySupplyResponseAmino; - fromAminoMsg(object: _130.QuerySupplyResponseAminoMsg): _130.QuerySupplyResponse; - fromProtoMsg(message: _130.QuerySupplyResponseProtoMsg): _130.QuerySupplyResponse; - toProto(message: _130.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _130.QuerySupplyResponse): _130.QuerySupplyResponseProtoMsg; - }; - QueryCreditTypesRequest: { - typeUrl: string; - encode(_: _130.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypesRequest; - fromJSON(_: any): _130.QueryCreditTypesRequest; - toJSON(_: _130.QueryCreditTypesRequest): unknown; - fromPartial(_: Partial<_130.QueryCreditTypesRequest>): _130.QueryCreditTypesRequest; - fromAmino(_: _130.QueryCreditTypesRequestAmino): _130.QueryCreditTypesRequest; - toAmino(_: _130.QueryCreditTypesRequest): _130.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _130.QueryCreditTypesRequestAminoMsg): _130.QueryCreditTypesRequest; - fromProtoMsg(message: _130.QueryCreditTypesRequestProtoMsg): _130.QueryCreditTypesRequest; - toProto(message: _130.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _130.QueryCreditTypesRequest): _130.QueryCreditTypesRequestProtoMsg; - }; - QueryCreditTypesResponse: { - typeUrl: string; - encode(message: _130.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypesResponse; - fromJSON(object: any): _130.QueryCreditTypesResponse; - toJSON(message: _130.QueryCreditTypesResponse): unknown; - fromPartial(object: Partial<_130.QueryCreditTypesResponse>): _130.QueryCreditTypesResponse; - fromAmino(object: _130.QueryCreditTypesResponseAmino): _130.QueryCreditTypesResponse; - toAmino(message: _130.QueryCreditTypesResponse): _130.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _130.QueryCreditTypesResponseAminoMsg): _130.QueryCreditTypesResponse; - fromProtoMsg(message: _130.QueryCreditTypesResponseProtoMsg): _130.QueryCreditTypesResponse; - toProto(message: _130.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _130.QueryCreditTypesResponse): _130.QueryCreditTypesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _130.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryParamsRequest; - fromJSON(_: any): _130.QueryParamsRequest; - toJSON(_: _130.QueryParamsRequest): unknown; - fromPartial(_: Partial<_130.QueryParamsRequest>): _130.QueryParamsRequest; - fromAmino(_: _130.QueryParamsRequestAmino): _130.QueryParamsRequest; - toAmino(_: _130.QueryParamsRequest): _130.QueryParamsRequestAmino; - fromAminoMsg(object: _130.QueryParamsRequestAminoMsg): _130.QueryParamsRequest; - fromProtoMsg(message: _130.QueryParamsRequestProtoMsg): _130.QueryParamsRequest; - toProto(message: _130.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _130.QueryParamsRequest): _130.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _130.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryParamsResponse; - fromJSON(object: any): _130.QueryParamsResponse; - toJSON(message: _130.QueryParamsResponse): unknown; - fromPartial(object: Partial<_130.QueryParamsResponse>): _130.QueryParamsResponse; - fromAmino(object: _130.QueryParamsResponseAmino): _130.QueryParamsResponse; - toAmino(message: _130.QueryParamsResponse): _130.QueryParamsResponseAmino; - fromAminoMsg(object: _130.QueryParamsResponseAminoMsg): _130.QueryParamsResponse; - fromProtoMsg(message: _130.QueryParamsResponseProtoMsg): _130.QueryParamsResponse; - toProto(message: _130.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _130.QueryParamsResponse): _130.QueryParamsResponseProtoMsg; - }; - QueryCreditTypeRequest: { - typeUrl: string; - encode(message: _130.QueryCreditTypeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypeRequest; - fromJSON(object: any): _130.QueryCreditTypeRequest; - toJSON(message: _130.QueryCreditTypeRequest): unknown; - fromPartial(object: Partial<_130.QueryCreditTypeRequest>): _130.QueryCreditTypeRequest; - fromAmino(object: _130.QueryCreditTypeRequestAmino): _130.QueryCreditTypeRequest; - toAmino(message: _130.QueryCreditTypeRequest): _130.QueryCreditTypeRequestAmino; - fromAminoMsg(object: _130.QueryCreditTypeRequestAminoMsg): _130.QueryCreditTypeRequest; - fromProtoMsg(message: _130.QueryCreditTypeRequestProtoMsg): _130.QueryCreditTypeRequest; - toProto(message: _130.QueryCreditTypeRequest): Uint8Array; - toProtoMsg(message: _130.QueryCreditTypeRequest): _130.QueryCreditTypeRequestProtoMsg; - }; - QueryCreditTypeResponse: { - typeUrl: string; - encode(message: _130.QueryCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryCreditTypeResponse; - fromJSON(object: any): _130.QueryCreditTypeResponse; - toJSON(message: _130.QueryCreditTypeResponse): unknown; - fromPartial(object: Partial<_130.QueryCreditTypeResponse>): _130.QueryCreditTypeResponse; - fromAmino(object: _130.QueryCreditTypeResponseAmino): _130.QueryCreditTypeResponse; - toAmino(message: _130.QueryCreditTypeResponse): _130.QueryCreditTypeResponseAmino; - fromAminoMsg(object: _130.QueryCreditTypeResponseAminoMsg): _130.QueryCreditTypeResponse; - fromProtoMsg(message: _130.QueryCreditTypeResponseProtoMsg): _130.QueryCreditTypeResponse; - toProto(message: _130.QueryCreditTypeResponse): Uint8Array; - toProtoMsg(message: _130.QueryCreditTypeResponse): _130.QueryCreditTypeResponseProtoMsg; - }; - ClassInfo: { - typeUrl: string; - encode(message: _130.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.ClassInfo; - fromJSON(object: any): _130.ClassInfo; - toJSON(message: _130.ClassInfo): unknown; - fromPartial(object: Partial<_130.ClassInfo>): _130.ClassInfo; - fromAmino(object: _130.ClassInfoAmino): _130.ClassInfo; - toAmino(message: _130.ClassInfo): _130.ClassInfoAmino; - fromAminoMsg(object: _130.ClassInfoAminoMsg): _130.ClassInfo; - fromProtoMsg(message: _130.ClassInfoProtoMsg): _130.ClassInfo; - toProto(message: _130.ClassInfo): Uint8Array; - toProtoMsg(message: _130.ClassInfo): _130.ClassInfoProtoMsg; - }; - ProjectInfo: { - typeUrl: string; - encode(message: _130.ProjectInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.ProjectInfo; - fromJSON(object: any): _130.ProjectInfo; - toJSON(message: _130.ProjectInfo): unknown; - fromPartial(object: Partial<_130.ProjectInfo>): _130.ProjectInfo; - fromAmino(object: _130.ProjectInfoAmino): _130.ProjectInfo; - toAmino(message: _130.ProjectInfo): _130.ProjectInfoAmino; - fromAminoMsg(object: _130.ProjectInfoAminoMsg): _130.ProjectInfo; - fromProtoMsg(message: _130.ProjectInfoProtoMsg): _130.ProjectInfo; - toProto(message: _130.ProjectInfo): Uint8Array; - toProtoMsg(message: _130.ProjectInfo): _130.ProjectInfoProtoMsg; - }; - BatchInfo: { - typeUrl: string; - encode(message: _130.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.BatchInfo; - fromJSON(object: any): _130.BatchInfo; - toJSON(message: _130.BatchInfo): unknown; - fromPartial(object: Partial<_130.BatchInfo>): _130.BatchInfo; - fromAmino(object: _130.BatchInfoAmino): _130.BatchInfo; - toAmino(message: _130.BatchInfo): _130.BatchInfoAmino; - fromAminoMsg(object: _130.BatchInfoAminoMsg): _130.BatchInfo; - fromProtoMsg(message: _130.BatchInfoProtoMsg): _130.BatchInfo; - toProto(message: _130.BatchInfo): Uint8Array; - toProtoMsg(message: _130.BatchInfo): _130.BatchInfoProtoMsg; - }; - BatchBalanceInfo: { - typeUrl: string; - encode(message: _130.BatchBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.BatchBalanceInfo; - fromJSON(object: any): _130.BatchBalanceInfo; - toJSON(message: _130.BatchBalanceInfo): unknown; - fromPartial(object: Partial<_130.BatchBalanceInfo>): _130.BatchBalanceInfo; - fromAmino(object: _130.BatchBalanceInfoAmino): _130.BatchBalanceInfo; - toAmino(message: _130.BatchBalanceInfo): _130.BatchBalanceInfoAmino; - fromAminoMsg(object: _130.BatchBalanceInfoAminoMsg): _130.BatchBalanceInfo; - fromProtoMsg(message: _130.BatchBalanceInfoProtoMsg): _130.BatchBalanceInfo; - toProto(message: _130.BatchBalanceInfo): Uint8Array; - toProtoMsg(message: _130.BatchBalanceInfo): _130.BatchBalanceInfoProtoMsg; - }; - QueryClassCreatorAllowlistRequest: { - typeUrl: string; - encode(_: _130.QueryClassCreatorAllowlistRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassCreatorAllowlistRequest; - fromJSON(_: any): _130.QueryClassCreatorAllowlistRequest; - toJSON(_: _130.QueryClassCreatorAllowlistRequest): unknown; - fromPartial(_: Partial<_130.QueryClassCreatorAllowlistRequest>): _130.QueryClassCreatorAllowlistRequest; - fromAmino(_: _130.QueryClassCreatorAllowlistRequestAmino): _130.QueryClassCreatorAllowlistRequest; - toAmino(_: _130.QueryClassCreatorAllowlistRequest): _130.QueryClassCreatorAllowlistRequestAmino; - fromAminoMsg(object: _130.QueryClassCreatorAllowlistRequestAminoMsg): _130.QueryClassCreatorAllowlistRequest; - fromProtoMsg(message: _130.QueryClassCreatorAllowlistRequestProtoMsg): _130.QueryClassCreatorAllowlistRequest; - toProto(message: _130.QueryClassCreatorAllowlistRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassCreatorAllowlistRequest): _130.QueryClassCreatorAllowlistRequestProtoMsg; - }; - QueryClassCreatorAllowlistResponse: { - typeUrl: string; - encode(message: _130.QueryClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassCreatorAllowlistResponse; - fromJSON(object: any): _130.QueryClassCreatorAllowlistResponse; - toJSON(message: _130.QueryClassCreatorAllowlistResponse): unknown; - fromPartial(object: Partial<_130.QueryClassCreatorAllowlistResponse>): _130.QueryClassCreatorAllowlistResponse; - fromAmino(object: _130.QueryClassCreatorAllowlistResponseAmino): _130.QueryClassCreatorAllowlistResponse; - toAmino(message: _130.QueryClassCreatorAllowlistResponse): _130.QueryClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _130.QueryClassCreatorAllowlistResponseAminoMsg): _130.QueryClassCreatorAllowlistResponse; - fromProtoMsg(message: _130.QueryClassCreatorAllowlistResponseProtoMsg): _130.QueryClassCreatorAllowlistResponse; - toProto(message: _130.QueryClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassCreatorAllowlistResponse): _130.QueryClassCreatorAllowlistResponseProtoMsg; - }; - QueryAllowedClassCreatorsRequest: { - typeUrl: string; - encode(message: _130.QueryAllowedClassCreatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedClassCreatorsRequest; - fromJSON(object: any): _130.QueryAllowedClassCreatorsRequest; - toJSON(message: _130.QueryAllowedClassCreatorsRequest): unknown; - fromPartial(object: Partial<_130.QueryAllowedClassCreatorsRequest>): _130.QueryAllowedClassCreatorsRequest; - fromAmino(object: _130.QueryAllowedClassCreatorsRequestAmino): _130.QueryAllowedClassCreatorsRequest; - toAmino(message: _130.QueryAllowedClassCreatorsRequest): _130.QueryAllowedClassCreatorsRequestAmino; - fromAminoMsg(object: _130.QueryAllowedClassCreatorsRequestAminoMsg): _130.QueryAllowedClassCreatorsRequest; - fromProtoMsg(message: _130.QueryAllowedClassCreatorsRequestProtoMsg): _130.QueryAllowedClassCreatorsRequest; - toProto(message: _130.QueryAllowedClassCreatorsRequest): Uint8Array; - toProtoMsg(message: _130.QueryAllowedClassCreatorsRequest): _130.QueryAllowedClassCreatorsRequestProtoMsg; - }; - QueryAllowedClassCreatorsResponse: { - typeUrl: string; - encode(message: _130.QueryAllowedClassCreatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedClassCreatorsResponse; - fromJSON(object: any): _130.QueryAllowedClassCreatorsResponse; - toJSON(message: _130.QueryAllowedClassCreatorsResponse): unknown; - fromPartial(object: Partial<_130.QueryAllowedClassCreatorsResponse>): _130.QueryAllowedClassCreatorsResponse; - fromAmino(object: _130.QueryAllowedClassCreatorsResponseAmino): _130.QueryAllowedClassCreatorsResponse; - toAmino(message: _130.QueryAllowedClassCreatorsResponse): _130.QueryAllowedClassCreatorsResponseAmino; - fromAminoMsg(object: _130.QueryAllowedClassCreatorsResponseAminoMsg): _130.QueryAllowedClassCreatorsResponse; - fromProtoMsg(message: _130.QueryAllowedClassCreatorsResponseProtoMsg): _130.QueryAllowedClassCreatorsResponse; - toProto(message: _130.QueryAllowedClassCreatorsResponse): Uint8Array; - toProtoMsg(message: _130.QueryAllowedClassCreatorsResponse): _130.QueryAllowedClassCreatorsResponseProtoMsg; - }; - QueryClassFeeRequest: { - typeUrl: string; - encode(_: _130.QueryClassFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassFeeRequest; - fromJSON(_: any): _130.QueryClassFeeRequest; - toJSON(_: _130.QueryClassFeeRequest): unknown; - fromPartial(_: Partial<_130.QueryClassFeeRequest>): _130.QueryClassFeeRequest; - fromAmino(_: _130.QueryClassFeeRequestAmino): _130.QueryClassFeeRequest; - toAmino(_: _130.QueryClassFeeRequest): _130.QueryClassFeeRequestAmino; - fromAminoMsg(object: _130.QueryClassFeeRequestAminoMsg): _130.QueryClassFeeRequest; - fromProtoMsg(message: _130.QueryClassFeeRequestProtoMsg): _130.QueryClassFeeRequest; - toProto(message: _130.QueryClassFeeRequest): Uint8Array; - toProtoMsg(message: _130.QueryClassFeeRequest): _130.QueryClassFeeRequestProtoMsg; - }; - QueryClassFeeResponse: { - typeUrl: string; - encode(message: _130.QueryClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryClassFeeResponse; - fromJSON(object: any): _130.QueryClassFeeResponse; - toJSON(message: _130.QueryClassFeeResponse): unknown; - fromPartial(object: Partial<_130.QueryClassFeeResponse>): _130.QueryClassFeeResponse; - fromAmino(object: _130.QueryClassFeeResponseAmino): _130.QueryClassFeeResponse; - toAmino(message: _130.QueryClassFeeResponse): _130.QueryClassFeeResponseAmino; - fromAminoMsg(object: _130.QueryClassFeeResponseAminoMsg): _130.QueryClassFeeResponse; - fromProtoMsg(message: _130.QueryClassFeeResponseProtoMsg): _130.QueryClassFeeResponse; - toProto(message: _130.QueryClassFeeResponse): Uint8Array; - toProtoMsg(message: _130.QueryClassFeeResponse): _130.QueryClassFeeResponseProtoMsg; - }; - QueryAllowedBridgeChainsRequest: { - typeUrl: string; - encode(_: _130.QueryAllowedBridgeChainsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedBridgeChainsRequest; - fromJSON(_: any): _130.QueryAllowedBridgeChainsRequest; - toJSON(_: _130.QueryAllowedBridgeChainsRequest): unknown; - fromPartial(_: Partial<_130.QueryAllowedBridgeChainsRequest>): _130.QueryAllowedBridgeChainsRequest; - fromAmino(_: _130.QueryAllowedBridgeChainsRequestAmino): _130.QueryAllowedBridgeChainsRequest; - toAmino(_: _130.QueryAllowedBridgeChainsRequest): _130.QueryAllowedBridgeChainsRequestAmino; - fromAminoMsg(object: _130.QueryAllowedBridgeChainsRequestAminoMsg): _130.QueryAllowedBridgeChainsRequest; - fromProtoMsg(message: _130.QueryAllowedBridgeChainsRequestProtoMsg): _130.QueryAllowedBridgeChainsRequest; - toProto(message: _130.QueryAllowedBridgeChainsRequest): Uint8Array; - toProtoMsg(message: _130.QueryAllowedBridgeChainsRequest): _130.QueryAllowedBridgeChainsRequestProtoMsg; - }; - QueryAllowedBridgeChainsResponse: { - typeUrl: string; - encode(message: _130.QueryAllowedBridgeChainsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _130.QueryAllowedBridgeChainsResponse; - fromJSON(object: any): _130.QueryAllowedBridgeChainsResponse; - toJSON(message: _130.QueryAllowedBridgeChainsResponse): unknown; - fromPartial(object: Partial<_130.QueryAllowedBridgeChainsResponse>): _130.QueryAllowedBridgeChainsResponse; - fromAmino(object: _130.QueryAllowedBridgeChainsResponseAmino): _130.QueryAllowedBridgeChainsResponse; - toAmino(message: _130.QueryAllowedBridgeChainsResponse): _130.QueryAllowedBridgeChainsResponseAmino; - fromAminoMsg(object: _130.QueryAllowedBridgeChainsResponseAminoMsg): _130.QueryAllowedBridgeChainsResponse; - fromProtoMsg(message: _130.QueryAllowedBridgeChainsResponseProtoMsg): _130.QueryAllowedBridgeChainsResponse; - toProto(message: _130.QueryAllowedBridgeChainsResponse): Uint8Array; - toProtoMsg(message: _130.QueryAllowedBridgeChainsResponse): _130.QueryAllowedBridgeChainsResponseProtoMsg; - }; - EventCreateClass: { - typeUrl: string; - encode(message: _129.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateClass; - fromJSON(object: any): _129.EventCreateClass; - toJSON(message: _129.EventCreateClass): unknown; - fromPartial(object: Partial<_129.EventCreateClass>): _129.EventCreateClass; - fromAmino(object: _129.EventCreateClassAmino): _129.EventCreateClass; - toAmino(message: _129.EventCreateClass): _129.EventCreateClassAmino; - fromAminoMsg(object: _129.EventCreateClassAminoMsg): _129.EventCreateClass; - fromProtoMsg(message: _129.EventCreateClassProtoMsg): _129.EventCreateClass; - toProto(message: _129.EventCreateClass): Uint8Array; - toProtoMsg(message: _129.EventCreateClass): _129.EventCreateClassProtoMsg; - }; - EventCreateProject: { - typeUrl: string; - encode(message: _129.EventCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateProject; - fromJSON(object: any): _129.EventCreateProject; - toJSON(message: _129.EventCreateProject): unknown; - fromPartial(object: Partial<_129.EventCreateProject>): _129.EventCreateProject; - fromAmino(object: _129.EventCreateProjectAmino): _129.EventCreateProject; - toAmino(message: _129.EventCreateProject): _129.EventCreateProjectAmino; - fromAminoMsg(object: _129.EventCreateProjectAminoMsg): _129.EventCreateProject; - fromProtoMsg(message: _129.EventCreateProjectProtoMsg): _129.EventCreateProject; - toProto(message: _129.EventCreateProject): Uint8Array; - toProtoMsg(message: _129.EventCreateProject): _129.EventCreateProjectProtoMsg; - }; - EventCreateBatch: { - typeUrl: string; - encode(message: _129.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCreateBatch; - fromJSON(object: any): _129.EventCreateBatch; - toJSON(message: _129.EventCreateBatch): unknown; - fromPartial(object: Partial<_129.EventCreateBatch>): _129.EventCreateBatch; - fromAmino(object: _129.EventCreateBatchAmino): _129.EventCreateBatch; - toAmino(message: _129.EventCreateBatch): _129.EventCreateBatchAmino; - fromAminoMsg(object: _129.EventCreateBatchAminoMsg): _129.EventCreateBatch; - fromProtoMsg(message: _129.EventCreateBatchProtoMsg): _129.EventCreateBatch; - toProto(message: _129.EventCreateBatch): Uint8Array; - toProtoMsg(message: _129.EventCreateBatch): _129.EventCreateBatchProtoMsg; - }; - EventMint: { - typeUrl: string; - encode(message: _129.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventMint; - fromJSON(object: any): _129.EventMint; - toJSON(message: _129.EventMint): unknown; - fromPartial(object: Partial<_129.EventMint>): _129.EventMint; - fromAmino(object: _129.EventMintAmino): _129.EventMint; - toAmino(message: _129.EventMint): _129.EventMintAmino; - fromAminoMsg(object: _129.EventMintAminoMsg): _129.EventMint; - fromProtoMsg(message: _129.EventMintProtoMsg): _129.EventMint; - toProto(message: _129.EventMint): Uint8Array; - toProtoMsg(message: _129.EventMint): _129.EventMintProtoMsg; - }; - EventMintBatchCredits: { - typeUrl: string; - encode(message: _129.EventMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventMintBatchCredits; - fromJSON(object: any): _129.EventMintBatchCredits; - toJSON(message: _129.EventMintBatchCredits): unknown; - fromPartial(object: Partial<_129.EventMintBatchCredits>): _129.EventMintBatchCredits; - fromAmino(object: _129.EventMintBatchCreditsAmino): _129.EventMintBatchCredits; - toAmino(message: _129.EventMintBatchCredits): _129.EventMintBatchCreditsAmino; - fromAminoMsg(object: _129.EventMintBatchCreditsAminoMsg): _129.EventMintBatchCredits; - fromProtoMsg(message: _129.EventMintBatchCreditsProtoMsg): _129.EventMintBatchCredits; - toProto(message: _129.EventMintBatchCredits): Uint8Array; - toProtoMsg(message: _129.EventMintBatchCredits): _129.EventMintBatchCreditsProtoMsg; - }; - EventTransfer: { - typeUrl: string; - encode(message: _129.EventTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventTransfer; - fromJSON(object: any): _129.EventTransfer; - toJSON(message: _129.EventTransfer): unknown; - fromPartial(object: Partial<_129.EventTransfer>): _129.EventTransfer; - fromAmino(object: _129.EventTransferAmino): _129.EventTransfer; - toAmino(message: _129.EventTransfer): _129.EventTransferAmino; - fromAminoMsg(object: _129.EventTransferAminoMsg): _129.EventTransfer; - fromProtoMsg(message: _129.EventTransferProtoMsg): _129.EventTransfer; - toProto(message: _129.EventTransfer): Uint8Array; - toProtoMsg(message: _129.EventTransfer): _129.EventTransferProtoMsg; - }; - EventRetire: { - typeUrl: string; - encode(message: _129.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventRetire; - fromJSON(object: any): _129.EventRetire; - toJSON(message: _129.EventRetire): unknown; - fromPartial(object: Partial<_129.EventRetire>): _129.EventRetire; - fromAmino(object: _129.EventRetireAmino): _129.EventRetire; - toAmino(message: _129.EventRetire): _129.EventRetireAmino; - fromAminoMsg(object: _129.EventRetireAminoMsg): _129.EventRetire; - fromProtoMsg(message: _129.EventRetireProtoMsg): _129.EventRetire; - toProto(message: _129.EventRetire): Uint8Array; - toProtoMsg(message: _129.EventRetire): _129.EventRetireProtoMsg; - }; - EventCancel: { - typeUrl: string; - encode(message: _129.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventCancel; - fromJSON(object: any): _129.EventCancel; - toJSON(message: _129.EventCancel): unknown; - fromPartial(object: Partial<_129.EventCancel>): _129.EventCancel; - fromAmino(object: _129.EventCancelAmino): _129.EventCancel; - toAmino(message: _129.EventCancel): _129.EventCancelAmino; - fromAminoMsg(object: _129.EventCancelAminoMsg): _129.EventCancel; - fromProtoMsg(message: _129.EventCancelProtoMsg): _129.EventCancel; - toProto(message: _129.EventCancel): Uint8Array; - toProtoMsg(message: _129.EventCancel): _129.EventCancelProtoMsg; - }; - EventUpdateClassAdmin: { - typeUrl: string; - encode(message: _129.EventUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassAdmin; - fromJSON(object: any): _129.EventUpdateClassAdmin; - toJSON(message: _129.EventUpdateClassAdmin): unknown; - fromPartial(object: Partial<_129.EventUpdateClassAdmin>): _129.EventUpdateClassAdmin; - fromAmino(object: _129.EventUpdateClassAdminAmino): _129.EventUpdateClassAdmin; - toAmino(message: _129.EventUpdateClassAdmin): _129.EventUpdateClassAdminAmino; - fromAminoMsg(object: _129.EventUpdateClassAdminAminoMsg): _129.EventUpdateClassAdmin; - fromProtoMsg(message: _129.EventUpdateClassAdminProtoMsg): _129.EventUpdateClassAdmin; - toProto(message: _129.EventUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _129.EventUpdateClassAdmin): _129.EventUpdateClassAdminProtoMsg; - }; - EventUpdateClassIssuers: { - typeUrl: string; - encode(message: _129.EventUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassIssuers; - fromJSON(object: any): _129.EventUpdateClassIssuers; - toJSON(message: _129.EventUpdateClassIssuers): unknown; - fromPartial(object: Partial<_129.EventUpdateClassIssuers>): _129.EventUpdateClassIssuers; - fromAmino(object: _129.EventUpdateClassIssuersAmino): _129.EventUpdateClassIssuers; - toAmino(message: _129.EventUpdateClassIssuers): _129.EventUpdateClassIssuersAmino; - fromAminoMsg(object: _129.EventUpdateClassIssuersAminoMsg): _129.EventUpdateClassIssuers; - fromProtoMsg(message: _129.EventUpdateClassIssuersProtoMsg): _129.EventUpdateClassIssuers; - toProto(message: _129.EventUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _129.EventUpdateClassIssuers): _129.EventUpdateClassIssuersProtoMsg; - }; - EventUpdateClassMetadata: { - typeUrl: string; - encode(message: _129.EventUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateClassMetadata; - fromJSON(object: any): _129.EventUpdateClassMetadata; - toJSON(message: _129.EventUpdateClassMetadata): unknown; - fromPartial(object: Partial<_129.EventUpdateClassMetadata>): _129.EventUpdateClassMetadata; - fromAmino(object: _129.EventUpdateClassMetadataAmino): _129.EventUpdateClassMetadata; - toAmino(message: _129.EventUpdateClassMetadata): _129.EventUpdateClassMetadataAmino; - fromAminoMsg(object: _129.EventUpdateClassMetadataAminoMsg): _129.EventUpdateClassMetadata; - fromProtoMsg(message: _129.EventUpdateClassMetadataProtoMsg): _129.EventUpdateClassMetadata; - toProto(message: _129.EventUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _129.EventUpdateClassMetadata): _129.EventUpdateClassMetadataProtoMsg; - }; - EventUpdateProjectAdmin: { - typeUrl: string; - encode(message: _129.EventUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateProjectAdmin; - fromJSON(object: any): _129.EventUpdateProjectAdmin; - toJSON(message: _129.EventUpdateProjectAdmin): unknown; - fromPartial(object: Partial<_129.EventUpdateProjectAdmin>): _129.EventUpdateProjectAdmin; - fromAmino(object: _129.EventUpdateProjectAdminAmino): _129.EventUpdateProjectAdmin; - toAmino(message: _129.EventUpdateProjectAdmin): _129.EventUpdateProjectAdminAmino; - fromAminoMsg(object: _129.EventUpdateProjectAdminAminoMsg): _129.EventUpdateProjectAdmin; - fromProtoMsg(message: _129.EventUpdateProjectAdminProtoMsg): _129.EventUpdateProjectAdmin; - toProto(message: _129.EventUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _129.EventUpdateProjectAdmin): _129.EventUpdateProjectAdminProtoMsg; - }; - EventUpdateProjectMetadata: { - typeUrl: string; - encode(message: _129.EventUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateProjectMetadata; - fromJSON(object: any): _129.EventUpdateProjectMetadata; - toJSON(message: _129.EventUpdateProjectMetadata): unknown; - fromPartial(object: Partial<_129.EventUpdateProjectMetadata>): _129.EventUpdateProjectMetadata; - fromAmino(object: _129.EventUpdateProjectMetadataAmino): _129.EventUpdateProjectMetadata; - toAmino(message: _129.EventUpdateProjectMetadata): _129.EventUpdateProjectMetadataAmino; - fromAminoMsg(object: _129.EventUpdateProjectMetadataAminoMsg): _129.EventUpdateProjectMetadata; - fromProtoMsg(message: _129.EventUpdateProjectMetadataProtoMsg): _129.EventUpdateProjectMetadata; - toProto(message: _129.EventUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _129.EventUpdateProjectMetadata): _129.EventUpdateProjectMetadataProtoMsg; - }; - EventUpdateBatchMetadata: { - typeUrl: string; - encode(message: _129.EventUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventUpdateBatchMetadata; - fromJSON(object: any): _129.EventUpdateBatchMetadata; - toJSON(message: _129.EventUpdateBatchMetadata): unknown; - fromPartial(object: Partial<_129.EventUpdateBatchMetadata>): _129.EventUpdateBatchMetadata; - fromAmino(object: _129.EventUpdateBatchMetadataAmino): _129.EventUpdateBatchMetadata; - toAmino(message: _129.EventUpdateBatchMetadata): _129.EventUpdateBatchMetadataAmino; - fromAminoMsg(object: _129.EventUpdateBatchMetadataAminoMsg): _129.EventUpdateBatchMetadata; - fromProtoMsg(message: _129.EventUpdateBatchMetadataProtoMsg): _129.EventUpdateBatchMetadata; - toProto(message: _129.EventUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _129.EventUpdateBatchMetadata): _129.EventUpdateBatchMetadataProtoMsg; - }; - EventSealBatch: { - typeUrl: string; - encode(message: _129.EventSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventSealBatch; - fromJSON(object: any): _129.EventSealBatch; - toJSON(message: _129.EventSealBatch): unknown; - fromPartial(object: Partial<_129.EventSealBatch>): _129.EventSealBatch; - fromAmino(object: _129.EventSealBatchAmino): _129.EventSealBatch; - toAmino(message: _129.EventSealBatch): _129.EventSealBatchAmino; - fromAminoMsg(object: _129.EventSealBatchAminoMsg): _129.EventSealBatch; - fromProtoMsg(message: _129.EventSealBatchProtoMsg): _129.EventSealBatch; - toProto(message: _129.EventSealBatch): Uint8Array; - toProtoMsg(message: _129.EventSealBatch): _129.EventSealBatchProtoMsg; - }; - EventAddCreditType: { - typeUrl: string; - encode(message: _129.EventAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventAddCreditType; - fromJSON(object: any): _129.EventAddCreditType; - toJSON(message: _129.EventAddCreditType): unknown; - fromPartial(object: Partial<_129.EventAddCreditType>): _129.EventAddCreditType; - fromAmino(object: _129.EventAddCreditTypeAmino): _129.EventAddCreditType; - toAmino(message: _129.EventAddCreditType): _129.EventAddCreditTypeAmino; - fromAminoMsg(object: _129.EventAddCreditTypeAminoMsg): _129.EventAddCreditType; - fromProtoMsg(message: _129.EventAddCreditTypeProtoMsg): _129.EventAddCreditType; - toProto(message: _129.EventAddCreditType): Uint8Array; - toProtoMsg(message: _129.EventAddCreditType): _129.EventAddCreditTypeProtoMsg; - }; - EventBridge: { - typeUrl: string; - encode(message: _129.EventBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventBridge; - fromJSON(object: any): _129.EventBridge; - toJSON(message: _129.EventBridge): unknown; - fromPartial(object: Partial<_129.EventBridge>): _129.EventBridge; - fromAmino(object: _129.EventBridgeAmino): _129.EventBridge; - toAmino(message: _129.EventBridge): _129.EventBridgeAmino; - fromAminoMsg(object: _129.EventBridgeAminoMsg): _129.EventBridge; - fromProtoMsg(message: _129.EventBridgeProtoMsg): _129.EventBridge; - toProto(message: _129.EventBridge): Uint8Array; - toProtoMsg(message: _129.EventBridge): _129.EventBridgeProtoMsg; - }; - EventBridgeReceive: { - typeUrl: string; - encode(message: _129.EventBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _129.EventBridgeReceive; - fromJSON(object: any): _129.EventBridgeReceive; - toJSON(message: _129.EventBridgeReceive): unknown; - fromPartial(object: Partial<_129.EventBridgeReceive>): _129.EventBridgeReceive; - fromAmino(object: _129.EventBridgeReceiveAmino): _129.EventBridgeReceive; - toAmino(message: _129.EventBridgeReceive): _129.EventBridgeReceiveAmino; - fromAminoMsg(object: _129.EventBridgeReceiveAminoMsg): _129.EventBridgeReceive; - fromProtoMsg(message: _129.EventBridgeReceiveProtoMsg): _129.EventBridgeReceive; - toProto(message: _129.EventBridgeReceive): Uint8Array; - toProtoMsg(message: _129.EventBridgeReceive): _129.EventBridgeReceiveProtoMsg; - }; - }; - const v1alpha1: { - MsgClientImpl: typeof _269.MsgClientImpl; - QueryClientImpl: typeof _263.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _136.QueryClassesRequest | undefined): Promise<_136.QueryClassesResponse>; - classInfo(request: _136.QueryClassInfoRequest): Promise<_136.QueryClassInfoResponse>; - batches(request: _136.QueryBatchesRequest): Promise<_136.QueryBatchesResponse>; - batchInfo(request: _136.QueryBatchInfoRequest): Promise<_136.QueryBatchInfoResponse>; - balance(request: _136.QueryBalanceRequest): Promise<_136.QueryBalanceResponse>; - supply(request: _136.QuerySupplyRequest): Promise<_136.QuerySupplyResponse>; - creditTypes(request?: _136.QueryCreditTypesRequest | undefined): Promise<_136.QueryCreditTypesResponse>; - params(request?: _136.QueryParamsRequest | undefined): Promise<_136.QueryParamsResponse>; - }; - LCDQueryClient: typeof _257.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClass(value: _137.MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: _137.MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: _137.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: _137.MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: _137.MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: _137.MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: _137.MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: _137.MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: _137.MsgCreateClass): { - typeUrl: string; - value: _137.MsgCreateClass; - }; - createBatch(value: _137.MsgCreateBatch): { - typeUrl: string; - value: _137.MsgCreateBatch; - }; - send(value: _137.MsgSend): { - typeUrl: string; - value: _137.MsgSend; - }; - retire(value: _137.MsgRetire): { - typeUrl: string; - value: _137.MsgRetire; - }; - cancel(value: _137.MsgCancel): { - typeUrl: string; - value: _137.MsgCancel; - }; - updateClassAdmin(value: _137.MsgUpdateClassAdmin): { - typeUrl: string; - value: _137.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _137.MsgUpdateClassIssuers): { - typeUrl: string; - value: _137.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _137.MsgUpdateClassMetadata): { - typeUrl: string; - value: _137.MsgUpdateClassMetadata; - }; - }; - toJSON: { - createClass(value: _137.MsgCreateClass): { - typeUrl: string; - value: unknown; - }; - createBatch(value: _137.MsgCreateBatch): { - typeUrl: string; - value: unknown; - }; - send(value: _137.MsgSend): { - typeUrl: string; - value: unknown; - }; - retire(value: _137.MsgRetire): { - typeUrl: string; - value: unknown; - }; - cancel(value: _137.MsgCancel): { - typeUrl: string; - value: unknown; - }; - updateClassAdmin(value: _137.MsgUpdateClassAdmin): { - typeUrl: string; - value: unknown; - }; - updateClassIssuers(value: _137.MsgUpdateClassIssuers): { - typeUrl: string; - value: unknown; - }; - updateClassMetadata(value: _137.MsgUpdateClassMetadata): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClass(value: any): { - typeUrl: string; - value: _137.MsgCreateClass; - }; - createBatch(value: any): { - typeUrl: string; - value: _137.MsgCreateBatch; - }; - send(value: any): { - typeUrl: string; - value: _137.MsgSend; - }; - retire(value: any): { - typeUrl: string; - value: _137.MsgRetire; - }; - cancel(value: any): { - typeUrl: string; - value: _137.MsgCancel; - }; - updateClassAdmin(value: any): { - typeUrl: string; - value: _137.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: any): { - typeUrl: string; - value: _137.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: any): { - typeUrl: string; - value: _137.MsgUpdateClassMetadata; - }; - }; - fromPartial: { - createClass(value: _137.MsgCreateClass): { - typeUrl: string; - value: _137.MsgCreateClass; - }; - createBatch(value: _137.MsgCreateBatch): { - typeUrl: string; - value: _137.MsgCreateBatch; - }; - send(value: _137.MsgSend): { - typeUrl: string; - value: _137.MsgSend; - }; - retire(value: _137.MsgRetire): { - typeUrl: string; - value: _137.MsgRetire; - }; - cancel(value: _137.MsgCancel): { - typeUrl: string; - value: _137.MsgCancel; - }; - updateClassAdmin(value: _137.MsgUpdateClassAdmin): { - typeUrl: string; - value: _137.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _137.MsgUpdateClassIssuers): { - typeUrl: string; - value: _137.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _137.MsgUpdateClassMetadata): { - typeUrl: string; - value: _137.MsgUpdateClassMetadata; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: _137.MsgCreateClass) => _137.MsgCreateClassAmino; - fromAmino: (object: _137.MsgCreateClassAmino) => _137.MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: _137.MsgCreateBatch) => _137.MsgCreateBatchAmino; - fromAmino: (object: _137.MsgCreateBatchAmino) => _137.MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: _137.MsgSend) => _137.MsgSendAmino; - fromAmino: (object: _137.MsgSendAmino) => _137.MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: _137.MsgRetire) => _137.MsgRetireAmino; - fromAmino: (object: _137.MsgRetireAmino) => _137.MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: _137.MsgCancel) => _137.MsgCancelAmino; - fromAmino: (object: _137.MsgCancelAmino) => _137.MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: _137.MsgUpdateClassAdmin) => _137.MsgUpdateClassAdminAmino; - fromAmino: (object: _137.MsgUpdateClassAdminAmino) => _137.MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: _137.MsgUpdateClassIssuers) => _137.MsgUpdateClassIssuersAmino; - fromAmino: (object: _137.MsgUpdateClassIssuersAmino) => _137.MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: _137.MsgUpdateClassMetadata) => _137.MsgUpdateClassMetadataAmino; - fromAmino: (object: _137.MsgUpdateClassMetadataAmino) => _137.MsgUpdateClassMetadata; - }; - }; - ClassInfo: { - typeUrl: string; - encode(message: _138.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.ClassInfo; - fromJSON(object: any): _138.ClassInfo; - toJSON(message: _138.ClassInfo): unknown; - fromPartial(object: Partial<_138.ClassInfo>): _138.ClassInfo; - fromAmino(object: _138.ClassInfoAmino): _138.ClassInfo; - toAmino(message: _138.ClassInfo): _138.ClassInfoAmino; - fromAminoMsg(object: _138.ClassInfoAminoMsg): _138.ClassInfo; - fromProtoMsg(message: _138.ClassInfoProtoMsg): _138.ClassInfo; - toProto(message: _138.ClassInfo): Uint8Array; - toProtoMsg(message: _138.ClassInfo): _138.ClassInfoProtoMsg; - }; - BatchInfo: { - typeUrl: string; - encode(message: _138.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.BatchInfo; - fromJSON(object: any): _138.BatchInfo; - toJSON(message: _138.BatchInfo): unknown; - fromPartial(object: Partial<_138.BatchInfo>): _138.BatchInfo; - fromAmino(object: _138.BatchInfoAmino): _138.BatchInfo; - toAmino(message: _138.BatchInfo): _138.BatchInfoAmino; - fromAminoMsg(object: _138.BatchInfoAminoMsg): _138.BatchInfo; - fromProtoMsg(message: _138.BatchInfoProtoMsg): _138.BatchInfo; - toProto(message: _138.BatchInfo): Uint8Array; - toProtoMsg(message: _138.BatchInfo): _138.BatchInfoProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _138.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.Params; - fromJSON(object: any): _138.Params; - toJSON(message: _138.Params): unknown; - fromPartial(object: Partial<_138.Params>): _138.Params; - fromAmino(object: _138.ParamsAmino): _138.Params; - toAmino(message: _138.Params): _138.ParamsAmino; - fromAminoMsg(object: _138.ParamsAminoMsg): _138.Params; - fromProtoMsg(message: _138.ParamsProtoMsg): _138.Params; - toProto(message: _138.Params): Uint8Array; - toProtoMsg(message: _138.Params): _138.ParamsProtoMsg; - }; - CreditType: { - typeUrl: string; - encode(message: _138.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.CreditType; - fromJSON(object: any): _138.CreditType; - toJSON(message: _138.CreditType): unknown; - fromPartial(object: Partial<_138.CreditType>): _138.CreditType; - fromAmino(object: _138.CreditTypeAmino): _138.CreditType; - toAmino(message: _138.CreditType): _138.CreditTypeAmino; - fromAminoMsg(object: _138.CreditTypeAminoMsg): _138.CreditType; - fromProtoMsg(message: _138.CreditTypeProtoMsg): _138.CreditType; - toProto(message: _138.CreditType): Uint8Array; - toProtoMsg(message: _138.CreditType): _138.CreditTypeProtoMsg; - }; - CreditTypeSeq: { - typeUrl: string; - encode(message: _138.CreditTypeSeq, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _138.CreditTypeSeq; - fromJSON(object: any): _138.CreditTypeSeq; - toJSON(message: _138.CreditTypeSeq): unknown; - fromPartial(object: Partial<_138.CreditTypeSeq>): _138.CreditTypeSeq; - fromAmino(object: _138.CreditTypeSeqAmino): _138.CreditTypeSeq; - toAmino(message: _138.CreditTypeSeq): _138.CreditTypeSeqAmino; - fromAminoMsg(object: _138.CreditTypeSeqAminoMsg): _138.CreditTypeSeq; - fromProtoMsg(message: _138.CreditTypeSeqProtoMsg): _138.CreditTypeSeq; - toProto(message: _138.CreditTypeSeq): Uint8Array; - toProtoMsg(message: _138.CreditTypeSeq): _138.CreditTypeSeqProtoMsg; - }; - MsgCreateClass: { - typeUrl: string; - encode(message: _137.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateClass; - fromJSON(object: any): _137.MsgCreateClass; - toJSON(message: _137.MsgCreateClass): unknown; - fromPartial(object: Partial<_137.MsgCreateClass>): _137.MsgCreateClass; - fromAmino(object: _137.MsgCreateClassAmino): _137.MsgCreateClass; - toAmino(message: _137.MsgCreateClass): _137.MsgCreateClassAmino; - fromAminoMsg(object: _137.MsgCreateClassAminoMsg): _137.MsgCreateClass; - fromProtoMsg(message: _137.MsgCreateClassProtoMsg): _137.MsgCreateClass; - toProto(message: _137.MsgCreateClass): Uint8Array; - toProtoMsg(message: _137.MsgCreateClass): _137.MsgCreateClassProtoMsg; - }; - MsgCreateClassResponse: { - typeUrl: string; - encode(message: _137.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateClassResponse; - fromJSON(object: any): _137.MsgCreateClassResponse; - toJSON(message: _137.MsgCreateClassResponse): unknown; - fromPartial(object: Partial<_137.MsgCreateClassResponse>): _137.MsgCreateClassResponse; - fromAmino(object: _137.MsgCreateClassResponseAmino): _137.MsgCreateClassResponse; - toAmino(message: _137.MsgCreateClassResponse): _137.MsgCreateClassResponseAmino; - fromAminoMsg(object: _137.MsgCreateClassResponseAminoMsg): _137.MsgCreateClassResponse; - fromProtoMsg(message: _137.MsgCreateClassResponseProtoMsg): _137.MsgCreateClassResponse; - toProto(message: _137.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _137.MsgCreateClassResponse): _137.MsgCreateClassResponseProtoMsg; - }; - MsgCreateBatch: { - typeUrl: string; - encode(message: _137.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatch; - fromJSON(object: any): _137.MsgCreateBatch; - toJSON(message: _137.MsgCreateBatch): unknown; - fromPartial(object: Partial<_137.MsgCreateBatch>): _137.MsgCreateBatch; - fromAmino(object: _137.MsgCreateBatchAmino): _137.MsgCreateBatch; - toAmino(message: _137.MsgCreateBatch): _137.MsgCreateBatchAmino; - fromAminoMsg(object: _137.MsgCreateBatchAminoMsg): _137.MsgCreateBatch; - fromProtoMsg(message: _137.MsgCreateBatchProtoMsg): _137.MsgCreateBatch; - toProto(message: _137.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _137.MsgCreateBatch): _137.MsgCreateBatchProtoMsg; - }; - MsgCreateBatch_BatchIssuance: { - typeUrl: string; - encode(message: _137.MsgCreateBatch_BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatch_BatchIssuance; - fromJSON(object: any): _137.MsgCreateBatch_BatchIssuance; - toJSON(message: _137.MsgCreateBatch_BatchIssuance): unknown; - fromPartial(object: Partial<_137.MsgCreateBatch_BatchIssuance>): _137.MsgCreateBatch_BatchIssuance; - fromAmino(object: _137.MsgCreateBatch_BatchIssuanceAmino): _137.MsgCreateBatch_BatchIssuance; - toAmino(message: _137.MsgCreateBatch_BatchIssuance): _137.MsgCreateBatch_BatchIssuanceAmino; - fromAminoMsg(object: _137.MsgCreateBatch_BatchIssuanceAminoMsg): _137.MsgCreateBatch_BatchIssuance; - fromProtoMsg(message: _137.MsgCreateBatch_BatchIssuanceProtoMsg): _137.MsgCreateBatch_BatchIssuance; - toProto(message: _137.MsgCreateBatch_BatchIssuance): Uint8Array; - toProtoMsg(message: _137.MsgCreateBatch_BatchIssuance): _137.MsgCreateBatch_BatchIssuanceProtoMsg; - }; - MsgCreateBatchResponse: { - typeUrl: string; - encode(message: _137.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCreateBatchResponse; - fromJSON(object: any): _137.MsgCreateBatchResponse; - toJSON(message: _137.MsgCreateBatchResponse): unknown; - fromPartial(object: Partial<_137.MsgCreateBatchResponse>): _137.MsgCreateBatchResponse; - fromAmino(object: _137.MsgCreateBatchResponseAmino): _137.MsgCreateBatchResponse; - toAmino(message: _137.MsgCreateBatchResponse): _137.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _137.MsgCreateBatchResponseAminoMsg): _137.MsgCreateBatchResponse; - fromProtoMsg(message: _137.MsgCreateBatchResponseProtoMsg): _137.MsgCreateBatchResponse; - toProto(message: _137.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _137.MsgCreateBatchResponse): _137.MsgCreateBatchResponseProtoMsg; - }; - MsgSend: { - typeUrl: string; - encode(message: _137.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSend; - fromJSON(object: any): _137.MsgSend; - toJSON(message: _137.MsgSend): unknown; - fromPartial(object: Partial<_137.MsgSend>): _137.MsgSend; - fromAmino(object: _137.MsgSendAmino): _137.MsgSend; - toAmino(message: _137.MsgSend): _137.MsgSendAmino; - fromAminoMsg(object: _137.MsgSendAminoMsg): _137.MsgSend; - fromProtoMsg(message: _137.MsgSendProtoMsg): _137.MsgSend; - toProto(message: _137.MsgSend): Uint8Array; - toProtoMsg(message: _137.MsgSend): _137.MsgSendProtoMsg; - }; - MsgSend_SendCredits: { - typeUrl: string; - encode(message: _137.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSend_SendCredits; - fromJSON(object: any): _137.MsgSend_SendCredits; - toJSON(message: _137.MsgSend_SendCredits): unknown; - fromPartial(object: Partial<_137.MsgSend_SendCredits>): _137.MsgSend_SendCredits; - fromAmino(object: _137.MsgSend_SendCreditsAmino): _137.MsgSend_SendCredits; - toAmino(message: _137.MsgSend_SendCredits): _137.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _137.MsgSend_SendCreditsAminoMsg): _137.MsgSend_SendCredits; - fromProtoMsg(message: _137.MsgSend_SendCreditsProtoMsg): _137.MsgSend_SendCredits; - toProto(message: _137.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _137.MsgSend_SendCredits): _137.MsgSend_SendCreditsProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _137.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgSendResponse; - fromJSON(_: any): _137.MsgSendResponse; - toJSON(_: _137.MsgSendResponse): unknown; - fromPartial(_: Partial<_137.MsgSendResponse>): _137.MsgSendResponse; - fromAmino(_: _137.MsgSendResponseAmino): _137.MsgSendResponse; - toAmino(_: _137.MsgSendResponse): _137.MsgSendResponseAmino; - fromAminoMsg(object: _137.MsgSendResponseAminoMsg): _137.MsgSendResponse; - fromProtoMsg(message: _137.MsgSendResponseProtoMsg): _137.MsgSendResponse; - toProto(message: _137.MsgSendResponse): Uint8Array; - toProtoMsg(message: _137.MsgSendResponse): _137.MsgSendResponseProtoMsg; - }; - MsgRetire: { - typeUrl: string; - encode(message: _137.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetire; - fromJSON(object: any): _137.MsgRetire; - toJSON(message: _137.MsgRetire): unknown; - fromPartial(object: Partial<_137.MsgRetire>): _137.MsgRetire; - fromAmino(object: _137.MsgRetireAmino): _137.MsgRetire; - toAmino(message: _137.MsgRetire): _137.MsgRetireAmino; - fromAminoMsg(object: _137.MsgRetireAminoMsg): _137.MsgRetire; - fromProtoMsg(message: _137.MsgRetireProtoMsg): _137.MsgRetire; - toProto(message: _137.MsgRetire): Uint8Array; - toProtoMsg(message: _137.MsgRetire): _137.MsgRetireProtoMsg; - }; - MsgRetire_RetireCredits: { - typeUrl: string; - encode(message: _137.MsgRetire_RetireCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetire_RetireCredits; - fromJSON(object: any): _137.MsgRetire_RetireCredits; - toJSON(message: _137.MsgRetire_RetireCredits): unknown; - fromPartial(object: Partial<_137.MsgRetire_RetireCredits>): _137.MsgRetire_RetireCredits; - fromAmino(object: _137.MsgRetire_RetireCreditsAmino): _137.MsgRetire_RetireCredits; - toAmino(message: _137.MsgRetire_RetireCredits): _137.MsgRetire_RetireCreditsAmino; - fromAminoMsg(object: _137.MsgRetire_RetireCreditsAminoMsg): _137.MsgRetire_RetireCredits; - fromProtoMsg(message: _137.MsgRetire_RetireCreditsProtoMsg): _137.MsgRetire_RetireCredits; - toProto(message: _137.MsgRetire_RetireCredits): Uint8Array; - toProtoMsg(message: _137.MsgRetire_RetireCredits): _137.MsgRetire_RetireCreditsProtoMsg; - }; - MsgRetireResponse: { - typeUrl: string; - encode(_: _137.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgRetireResponse; - fromJSON(_: any): _137.MsgRetireResponse; - toJSON(_: _137.MsgRetireResponse): unknown; - fromPartial(_: Partial<_137.MsgRetireResponse>): _137.MsgRetireResponse; - fromAmino(_: _137.MsgRetireResponseAmino): _137.MsgRetireResponse; - toAmino(_: _137.MsgRetireResponse): _137.MsgRetireResponseAmino; - fromAminoMsg(object: _137.MsgRetireResponseAminoMsg): _137.MsgRetireResponse; - fromProtoMsg(message: _137.MsgRetireResponseProtoMsg): _137.MsgRetireResponse; - toProto(message: _137.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _137.MsgRetireResponse): _137.MsgRetireResponseProtoMsg; - }; - MsgCancel: { - typeUrl: string; - encode(message: _137.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancel; - fromJSON(object: any): _137.MsgCancel; - toJSON(message: _137.MsgCancel): unknown; - fromPartial(object: Partial<_137.MsgCancel>): _137.MsgCancel; - fromAmino(object: _137.MsgCancelAmino): _137.MsgCancel; - toAmino(message: _137.MsgCancel): _137.MsgCancelAmino; - fromAminoMsg(object: _137.MsgCancelAminoMsg): _137.MsgCancel; - fromProtoMsg(message: _137.MsgCancelProtoMsg): _137.MsgCancel; - toProto(message: _137.MsgCancel): Uint8Array; - toProtoMsg(message: _137.MsgCancel): _137.MsgCancelProtoMsg; - }; - MsgCancel_CancelCredits: { - typeUrl: string; - encode(message: _137.MsgCancel_CancelCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancel_CancelCredits; - fromJSON(object: any): _137.MsgCancel_CancelCredits; - toJSON(message: _137.MsgCancel_CancelCredits): unknown; - fromPartial(object: Partial<_137.MsgCancel_CancelCredits>): _137.MsgCancel_CancelCredits; - fromAmino(object: _137.MsgCancel_CancelCreditsAmino): _137.MsgCancel_CancelCredits; - toAmino(message: _137.MsgCancel_CancelCredits): _137.MsgCancel_CancelCreditsAmino; - fromAminoMsg(object: _137.MsgCancel_CancelCreditsAminoMsg): _137.MsgCancel_CancelCredits; - fromProtoMsg(message: _137.MsgCancel_CancelCreditsProtoMsg): _137.MsgCancel_CancelCredits; - toProto(message: _137.MsgCancel_CancelCredits): Uint8Array; - toProtoMsg(message: _137.MsgCancel_CancelCredits): _137.MsgCancel_CancelCreditsProtoMsg; - }; - MsgCancelResponse: { - typeUrl: string; - encode(_: _137.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgCancelResponse; - fromJSON(_: any): _137.MsgCancelResponse; - toJSON(_: _137.MsgCancelResponse): unknown; - fromPartial(_: Partial<_137.MsgCancelResponse>): _137.MsgCancelResponse; - fromAmino(_: _137.MsgCancelResponseAmino): _137.MsgCancelResponse; - toAmino(_: _137.MsgCancelResponse): _137.MsgCancelResponseAmino; - fromAminoMsg(object: _137.MsgCancelResponseAminoMsg): _137.MsgCancelResponse; - fromProtoMsg(message: _137.MsgCancelResponseProtoMsg): _137.MsgCancelResponse; - toProto(message: _137.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _137.MsgCancelResponse): _137.MsgCancelResponseProtoMsg; - }; - MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: _137.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassAdmin; - fromJSON(object: any): _137.MsgUpdateClassAdmin; - toJSON(message: _137.MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial<_137.MsgUpdateClassAdmin>): _137.MsgUpdateClassAdmin; - fromAmino(object: _137.MsgUpdateClassAdminAmino): _137.MsgUpdateClassAdmin; - toAmino(message: _137.MsgUpdateClassAdmin): _137.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _137.MsgUpdateClassAdminAminoMsg): _137.MsgUpdateClassAdmin; - fromProtoMsg(message: _137.MsgUpdateClassAdminProtoMsg): _137.MsgUpdateClassAdmin; - toProto(message: _137.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassAdmin): _137.MsgUpdateClassAdminProtoMsg; - }; - MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: _137.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassAdminResponse; - fromJSON(_: any): _137.MsgUpdateClassAdminResponse; - toJSON(_: _137.MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial<_137.MsgUpdateClassAdminResponse>): _137.MsgUpdateClassAdminResponse; - fromAmino(_: _137.MsgUpdateClassAdminResponseAmino): _137.MsgUpdateClassAdminResponse; - toAmino(_: _137.MsgUpdateClassAdminResponse): _137.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _137.MsgUpdateClassAdminResponseAminoMsg): _137.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _137.MsgUpdateClassAdminResponseProtoMsg): _137.MsgUpdateClassAdminResponse; - toProto(message: _137.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassAdminResponse): _137.MsgUpdateClassAdminResponseProtoMsg; - }; - MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: _137.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassIssuers; - fromJSON(object: any): _137.MsgUpdateClassIssuers; - toJSON(message: _137.MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial<_137.MsgUpdateClassIssuers>): _137.MsgUpdateClassIssuers; - fromAmino(object: _137.MsgUpdateClassIssuersAmino): _137.MsgUpdateClassIssuers; - toAmino(message: _137.MsgUpdateClassIssuers): _137.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _137.MsgUpdateClassIssuersAminoMsg): _137.MsgUpdateClassIssuers; - fromProtoMsg(message: _137.MsgUpdateClassIssuersProtoMsg): _137.MsgUpdateClassIssuers; - toProto(message: _137.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassIssuers): _137.MsgUpdateClassIssuersProtoMsg; - }; - MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: _137.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassIssuersResponse; - fromJSON(_: any): _137.MsgUpdateClassIssuersResponse; - toJSON(_: _137.MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial<_137.MsgUpdateClassIssuersResponse>): _137.MsgUpdateClassIssuersResponse; - fromAmino(_: _137.MsgUpdateClassIssuersResponseAmino): _137.MsgUpdateClassIssuersResponse; - toAmino(_: _137.MsgUpdateClassIssuersResponse): _137.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _137.MsgUpdateClassIssuersResponseAminoMsg): _137.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _137.MsgUpdateClassIssuersResponseProtoMsg): _137.MsgUpdateClassIssuersResponse; - toProto(message: _137.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassIssuersResponse): _137.MsgUpdateClassIssuersResponseProtoMsg; - }; - MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: _137.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassMetadata; - fromJSON(object: any): _137.MsgUpdateClassMetadata; - toJSON(message: _137.MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial<_137.MsgUpdateClassMetadata>): _137.MsgUpdateClassMetadata; - fromAmino(object: _137.MsgUpdateClassMetadataAmino): _137.MsgUpdateClassMetadata; - toAmino(message: _137.MsgUpdateClassMetadata): _137.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _137.MsgUpdateClassMetadataAminoMsg): _137.MsgUpdateClassMetadata; - fromProtoMsg(message: _137.MsgUpdateClassMetadataProtoMsg): _137.MsgUpdateClassMetadata; - toProto(message: _137.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassMetadata): _137.MsgUpdateClassMetadataProtoMsg; - }; - MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: _137.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _137.MsgUpdateClassMetadataResponse; - fromJSON(_: any): _137.MsgUpdateClassMetadataResponse; - toJSON(_: _137.MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial<_137.MsgUpdateClassMetadataResponse>): _137.MsgUpdateClassMetadataResponse; - fromAmino(_: _137.MsgUpdateClassMetadataResponseAmino): _137.MsgUpdateClassMetadataResponse; - toAmino(_: _137.MsgUpdateClassMetadataResponse): _137.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _137.MsgUpdateClassMetadataResponseAminoMsg): _137.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _137.MsgUpdateClassMetadataResponseProtoMsg): _137.MsgUpdateClassMetadataResponse; - toProto(message: _137.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _137.MsgUpdateClassMetadataResponse): _137.MsgUpdateClassMetadataResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _136.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryParamsRequest; - fromJSON(_: any): _136.QueryParamsRequest; - toJSON(_: _136.QueryParamsRequest): unknown; - fromPartial(_: Partial<_136.QueryParamsRequest>): _136.QueryParamsRequest; - fromAmino(_: _136.QueryParamsRequestAmino): _136.QueryParamsRequest; - toAmino(_: _136.QueryParamsRequest): _136.QueryParamsRequestAmino; - fromAminoMsg(object: _136.QueryParamsRequestAminoMsg): _136.QueryParamsRequest; - fromProtoMsg(message: _136.QueryParamsRequestProtoMsg): _136.QueryParamsRequest; - toProto(message: _136.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _136.QueryParamsRequest): _136.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _136.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryParamsResponse; - fromJSON(object: any): _136.QueryParamsResponse; - toJSON(message: _136.QueryParamsResponse): unknown; - fromPartial(object: Partial<_136.QueryParamsResponse>): _136.QueryParamsResponse; - fromAmino(object: _136.QueryParamsResponseAmino): _136.QueryParamsResponse; - toAmino(message: _136.QueryParamsResponse): _136.QueryParamsResponseAmino; - fromAminoMsg(object: _136.QueryParamsResponseAminoMsg): _136.QueryParamsResponse; - fromProtoMsg(message: _136.QueryParamsResponseProtoMsg): _136.QueryParamsResponse; - toProto(message: _136.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _136.QueryParamsResponse): _136.QueryParamsResponseProtoMsg; - }; - QueryClassesRequest: { - typeUrl: string; - encode(message: _136.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassesRequest; - fromJSON(object: any): _136.QueryClassesRequest; - toJSON(message: _136.QueryClassesRequest): unknown; - fromPartial(object: Partial<_136.QueryClassesRequest>): _136.QueryClassesRequest; - fromAmino(object: _136.QueryClassesRequestAmino): _136.QueryClassesRequest; - toAmino(message: _136.QueryClassesRequest): _136.QueryClassesRequestAmino; - fromAminoMsg(object: _136.QueryClassesRequestAminoMsg): _136.QueryClassesRequest; - fromProtoMsg(message: _136.QueryClassesRequestProtoMsg): _136.QueryClassesRequest; - toProto(message: _136.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _136.QueryClassesRequest): _136.QueryClassesRequestProtoMsg; - }; - QueryClassesResponse: { - typeUrl: string; - encode(message: _136.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassesResponse; - fromJSON(object: any): _136.QueryClassesResponse; - toJSON(message: _136.QueryClassesResponse): unknown; - fromPartial(object: Partial<_136.QueryClassesResponse>): _136.QueryClassesResponse; - fromAmino(object: _136.QueryClassesResponseAmino): _136.QueryClassesResponse; - toAmino(message: _136.QueryClassesResponse): _136.QueryClassesResponseAmino; - fromAminoMsg(object: _136.QueryClassesResponseAminoMsg): _136.QueryClassesResponse; - fromProtoMsg(message: _136.QueryClassesResponseProtoMsg): _136.QueryClassesResponse; - toProto(message: _136.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _136.QueryClassesResponse): _136.QueryClassesResponseProtoMsg; - }; - QueryClassInfoRequest: { - typeUrl: string; - encode(message: _136.QueryClassInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassInfoRequest; - fromJSON(object: any): _136.QueryClassInfoRequest; - toJSON(message: _136.QueryClassInfoRequest): unknown; - fromPartial(object: Partial<_136.QueryClassInfoRequest>): _136.QueryClassInfoRequest; - fromAmino(object: _136.QueryClassInfoRequestAmino): _136.QueryClassInfoRequest; - toAmino(message: _136.QueryClassInfoRequest): _136.QueryClassInfoRequestAmino; - fromAminoMsg(object: _136.QueryClassInfoRequestAminoMsg): _136.QueryClassInfoRequest; - fromProtoMsg(message: _136.QueryClassInfoRequestProtoMsg): _136.QueryClassInfoRequest; - toProto(message: _136.QueryClassInfoRequest): Uint8Array; - toProtoMsg(message: _136.QueryClassInfoRequest): _136.QueryClassInfoRequestProtoMsg; - }; - QueryClassInfoResponse: { - typeUrl: string; - encode(message: _136.QueryClassInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryClassInfoResponse; - fromJSON(object: any): _136.QueryClassInfoResponse; - toJSON(message: _136.QueryClassInfoResponse): unknown; - fromPartial(object: Partial<_136.QueryClassInfoResponse>): _136.QueryClassInfoResponse; - fromAmino(object: _136.QueryClassInfoResponseAmino): _136.QueryClassInfoResponse; - toAmino(message: _136.QueryClassInfoResponse): _136.QueryClassInfoResponseAmino; - fromAminoMsg(object: _136.QueryClassInfoResponseAminoMsg): _136.QueryClassInfoResponse; - fromProtoMsg(message: _136.QueryClassInfoResponseProtoMsg): _136.QueryClassInfoResponse; - toProto(message: _136.QueryClassInfoResponse): Uint8Array; - toProtoMsg(message: _136.QueryClassInfoResponse): _136.QueryClassInfoResponseProtoMsg; - }; - QueryBatchesRequest: { - typeUrl: string; - encode(message: _136.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchesRequest; - fromJSON(object: any): _136.QueryBatchesRequest; - toJSON(message: _136.QueryBatchesRequest): unknown; - fromPartial(object: Partial<_136.QueryBatchesRequest>): _136.QueryBatchesRequest; - fromAmino(object: _136.QueryBatchesRequestAmino): _136.QueryBatchesRequest; - toAmino(message: _136.QueryBatchesRequest): _136.QueryBatchesRequestAmino; - fromAminoMsg(object: _136.QueryBatchesRequestAminoMsg): _136.QueryBatchesRequest; - fromProtoMsg(message: _136.QueryBatchesRequestProtoMsg): _136.QueryBatchesRequest; - toProto(message: _136.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _136.QueryBatchesRequest): _136.QueryBatchesRequestProtoMsg; - }; - QueryBatchesResponse: { - typeUrl: string; - encode(message: _136.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchesResponse; - fromJSON(object: any): _136.QueryBatchesResponse; - toJSON(message: _136.QueryBatchesResponse): unknown; - fromPartial(object: Partial<_136.QueryBatchesResponse>): _136.QueryBatchesResponse; - fromAmino(object: _136.QueryBatchesResponseAmino): _136.QueryBatchesResponse; - toAmino(message: _136.QueryBatchesResponse): _136.QueryBatchesResponseAmino; - fromAminoMsg(object: _136.QueryBatchesResponseAminoMsg): _136.QueryBatchesResponse; - fromProtoMsg(message: _136.QueryBatchesResponseProtoMsg): _136.QueryBatchesResponse; - toProto(message: _136.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _136.QueryBatchesResponse): _136.QueryBatchesResponseProtoMsg; - }; - QueryBatchInfoRequest: { - typeUrl: string; - encode(message: _136.QueryBatchInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchInfoRequest; - fromJSON(object: any): _136.QueryBatchInfoRequest; - toJSON(message: _136.QueryBatchInfoRequest): unknown; - fromPartial(object: Partial<_136.QueryBatchInfoRequest>): _136.QueryBatchInfoRequest; - fromAmino(object: _136.QueryBatchInfoRequestAmino): _136.QueryBatchInfoRequest; - toAmino(message: _136.QueryBatchInfoRequest): _136.QueryBatchInfoRequestAmino; - fromAminoMsg(object: _136.QueryBatchInfoRequestAminoMsg): _136.QueryBatchInfoRequest; - fromProtoMsg(message: _136.QueryBatchInfoRequestProtoMsg): _136.QueryBatchInfoRequest; - toProto(message: _136.QueryBatchInfoRequest): Uint8Array; - toProtoMsg(message: _136.QueryBatchInfoRequest): _136.QueryBatchInfoRequestProtoMsg; - }; - QueryBatchInfoResponse: { - typeUrl: string; - encode(message: _136.QueryBatchInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBatchInfoResponse; - fromJSON(object: any): _136.QueryBatchInfoResponse; - toJSON(message: _136.QueryBatchInfoResponse): unknown; - fromPartial(object: Partial<_136.QueryBatchInfoResponse>): _136.QueryBatchInfoResponse; - fromAmino(object: _136.QueryBatchInfoResponseAmino): _136.QueryBatchInfoResponse; - toAmino(message: _136.QueryBatchInfoResponse): _136.QueryBatchInfoResponseAmino; - fromAminoMsg(object: _136.QueryBatchInfoResponseAminoMsg): _136.QueryBatchInfoResponse; - fromProtoMsg(message: _136.QueryBatchInfoResponseProtoMsg): _136.QueryBatchInfoResponse; - toProto(message: _136.QueryBatchInfoResponse): Uint8Array; - toProtoMsg(message: _136.QueryBatchInfoResponse): _136.QueryBatchInfoResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _136.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBalanceRequest; - fromJSON(object: any): _136.QueryBalanceRequest; - toJSON(message: _136.QueryBalanceRequest): unknown; - fromPartial(object: Partial<_136.QueryBalanceRequest>): _136.QueryBalanceRequest; - fromAmino(object: _136.QueryBalanceRequestAmino): _136.QueryBalanceRequest; - toAmino(message: _136.QueryBalanceRequest): _136.QueryBalanceRequestAmino; - fromAminoMsg(object: _136.QueryBalanceRequestAminoMsg): _136.QueryBalanceRequest; - fromProtoMsg(message: _136.QueryBalanceRequestProtoMsg): _136.QueryBalanceRequest; - toProto(message: _136.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _136.QueryBalanceRequest): _136.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _136.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryBalanceResponse; - fromJSON(object: any): _136.QueryBalanceResponse; - toJSON(message: _136.QueryBalanceResponse): unknown; - fromPartial(object: Partial<_136.QueryBalanceResponse>): _136.QueryBalanceResponse; - fromAmino(object: _136.QueryBalanceResponseAmino): _136.QueryBalanceResponse; - toAmino(message: _136.QueryBalanceResponse): _136.QueryBalanceResponseAmino; - fromAminoMsg(object: _136.QueryBalanceResponseAminoMsg): _136.QueryBalanceResponse; - fromProtoMsg(message: _136.QueryBalanceResponseProtoMsg): _136.QueryBalanceResponse; - toProto(message: _136.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _136.QueryBalanceResponse): _136.QueryBalanceResponseProtoMsg; - }; - QuerySupplyRequest: { - typeUrl: string; - encode(message: _136.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QuerySupplyRequest; - fromJSON(object: any): _136.QuerySupplyRequest; - toJSON(message: _136.QuerySupplyRequest): unknown; - fromPartial(object: Partial<_136.QuerySupplyRequest>): _136.QuerySupplyRequest; - fromAmino(object: _136.QuerySupplyRequestAmino): _136.QuerySupplyRequest; - toAmino(message: _136.QuerySupplyRequest): _136.QuerySupplyRequestAmino; - fromAminoMsg(object: _136.QuerySupplyRequestAminoMsg): _136.QuerySupplyRequest; - fromProtoMsg(message: _136.QuerySupplyRequestProtoMsg): _136.QuerySupplyRequest; - toProto(message: _136.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _136.QuerySupplyRequest): _136.QuerySupplyRequestProtoMsg; - }; - QuerySupplyResponse: { - typeUrl: string; - encode(message: _136.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QuerySupplyResponse; - fromJSON(object: any): _136.QuerySupplyResponse; - toJSON(message: _136.QuerySupplyResponse): unknown; - fromPartial(object: Partial<_136.QuerySupplyResponse>): _136.QuerySupplyResponse; - fromAmino(object: _136.QuerySupplyResponseAmino): _136.QuerySupplyResponse; - toAmino(message: _136.QuerySupplyResponse): _136.QuerySupplyResponseAmino; - fromAminoMsg(object: _136.QuerySupplyResponseAminoMsg): _136.QuerySupplyResponse; - fromProtoMsg(message: _136.QuerySupplyResponseProtoMsg): _136.QuerySupplyResponse; - toProto(message: _136.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _136.QuerySupplyResponse): _136.QuerySupplyResponseProtoMsg; - }; - QueryCreditTypesRequest: { - typeUrl: string; - encode(_: _136.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryCreditTypesRequest; - fromJSON(_: any): _136.QueryCreditTypesRequest; - toJSON(_: _136.QueryCreditTypesRequest): unknown; - fromPartial(_: Partial<_136.QueryCreditTypesRequest>): _136.QueryCreditTypesRequest; - fromAmino(_: _136.QueryCreditTypesRequestAmino): _136.QueryCreditTypesRequest; - toAmino(_: _136.QueryCreditTypesRequest): _136.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _136.QueryCreditTypesRequestAminoMsg): _136.QueryCreditTypesRequest; - fromProtoMsg(message: _136.QueryCreditTypesRequestProtoMsg): _136.QueryCreditTypesRequest; - toProto(message: _136.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _136.QueryCreditTypesRequest): _136.QueryCreditTypesRequestProtoMsg; - }; - QueryCreditTypesResponse: { - typeUrl: string; - encode(message: _136.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _136.QueryCreditTypesResponse; - fromJSON(object: any): _136.QueryCreditTypesResponse; - toJSON(message: _136.QueryCreditTypesResponse): unknown; - fromPartial(object: Partial<_136.QueryCreditTypesResponse>): _136.QueryCreditTypesResponse; - fromAmino(object: _136.QueryCreditTypesResponseAmino): _136.QueryCreditTypesResponse; - toAmino(message: _136.QueryCreditTypesResponse): _136.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _136.QueryCreditTypesResponseAminoMsg): _136.QueryCreditTypesResponse; - fromProtoMsg(message: _136.QueryCreditTypesResponseProtoMsg): _136.QueryCreditTypesResponse; - toProto(message: _136.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _136.QueryCreditTypesResponse): _136.QueryCreditTypesResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _135.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.GenesisState; - fromJSON(object: any): _135.GenesisState; - toJSON(message: _135.GenesisState): unknown; - fromPartial(object: Partial<_135.GenesisState>): _135.GenesisState; - fromAmino(object: _135.GenesisStateAmino): _135.GenesisState; - toAmino(message: _135.GenesisState): _135.GenesisStateAmino; - fromAminoMsg(object: _135.GenesisStateAminoMsg): _135.GenesisState; - fromProtoMsg(message: _135.GenesisStateProtoMsg): _135.GenesisState; - toProto(message: _135.GenesisState): Uint8Array; - toProtoMsg(message: _135.GenesisState): _135.GenesisStateProtoMsg; - }; - Balance: { - typeUrl: string; - encode(message: _135.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.Balance; - fromJSON(object: any): _135.Balance; - toJSON(message: _135.Balance): unknown; - fromPartial(object: Partial<_135.Balance>): _135.Balance; - fromAmino(object: _135.BalanceAmino): _135.Balance; - toAmino(message: _135.Balance): _135.BalanceAmino; - fromAminoMsg(object: _135.BalanceAminoMsg): _135.Balance; - fromProtoMsg(message: _135.BalanceProtoMsg): _135.Balance; - toProto(message: _135.Balance): Uint8Array; - toProtoMsg(message: _135.Balance): _135.BalanceProtoMsg; - }; - Supply: { - typeUrl: string; - encode(message: _135.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _135.Supply; - fromJSON(object: any): _135.Supply; - toJSON(message: _135.Supply): unknown; - fromPartial(object: Partial<_135.Supply>): _135.Supply; - fromAmino(object: _135.SupplyAmino): _135.Supply; - toAmino(message: _135.Supply): _135.SupplyAmino; - fromAminoMsg(object: _135.SupplyAminoMsg): _135.Supply; - fromProtoMsg(message: _135.SupplyProtoMsg): _135.Supply; - toProto(message: _135.Supply): Uint8Array; - toProtoMsg(message: _135.Supply): _135.SupplyProtoMsg; - }; - EventCreateClass: { - typeUrl: string; - encode(message: _134.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCreateClass; - fromJSON(object: any): _134.EventCreateClass; - toJSON(message: _134.EventCreateClass): unknown; - fromPartial(object: Partial<_134.EventCreateClass>): _134.EventCreateClass; - fromAmino(object: _134.EventCreateClassAmino): _134.EventCreateClass; - toAmino(message: _134.EventCreateClass): _134.EventCreateClassAmino; - fromAminoMsg(object: _134.EventCreateClassAminoMsg): _134.EventCreateClass; - fromProtoMsg(message: _134.EventCreateClassProtoMsg): _134.EventCreateClass; - toProto(message: _134.EventCreateClass): Uint8Array; - toProtoMsg(message: _134.EventCreateClass): _134.EventCreateClassProtoMsg; - }; - EventCreateBatch: { - typeUrl: string; - encode(message: _134.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCreateBatch; - fromJSON(object: any): _134.EventCreateBatch; - toJSON(message: _134.EventCreateBatch): unknown; - fromPartial(object: Partial<_134.EventCreateBatch>): _134.EventCreateBatch; - fromAmino(object: _134.EventCreateBatchAmino): _134.EventCreateBatch; - toAmino(message: _134.EventCreateBatch): _134.EventCreateBatchAmino; - fromAminoMsg(object: _134.EventCreateBatchAminoMsg): _134.EventCreateBatch; - fromProtoMsg(message: _134.EventCreateBatchProtoMsg): _134.EventCreateBatch; - toProto(message: _134.EventCreateBatch): Uint8Array; - toProtoMsg(message: _134.EventCreateBatch): _134.EventCreateBatchProtoMsg; - }; - EventReceive: { - typeUrl: string; - encode(message: _134.EventReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventReceive; - fromJSON(object: any): _134.EventReceive; - toJSON(message: _134.EventReceive): unknown; - fromPartial(object: Partial<_134.EventReceive>): _134.EventReceive; - fromAmino(object: _134.EventReceiveAmino): _134.EventReceive; - toAmino(message: _134.EventReceive): _134.EventReceiveAmino; - fromAminoMsg(object: _134.EventReceiveAminoMsg): _134.EventReceive; - fromProtoMsg(message: _134.EventReceiveProtoMsg): _134.EventReceive; - toProto(message: _134.EventReceive): Uint8Array; - toProtoMsg(message: _134.EventReceive): _134.EventReceiveProtoMsg; - }; - EventRetire: { - typeUrl: string; - encode(message: _134.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventRetire; - fromJSON(object: any): _134.EventRetire; - toJSON(message: _134.EventRetire): unknown; - fromPartial(object: Partial<_134.EventRetire>): _134.EventRetire; - fromAmino(object: _134.EventRetireAmino): _134.EventRetire; - toAmino(message: _134.EventRetire): _134.EventRetireAmino; - fromAminoMsg(object: _134.EventRetireAminoMsg): _134.EventRetire; - fromProtoMsg(message: _134.EventRetireProtoMsg): _134.EventRetire; - toProto(message: _134.EventRetire): Uint8Array; - toProtoMsg(message: _134.EventRetire): _134.EventRetireProtoMsg; - }; - EventCancel: { - typeUrl: string; - encode(message: _134.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _134.EventCancel; - fromJSON(object: any): _134.EventCancel; - toJSON(message: _134.EventCancel): unknown; - fromPartial(object: Partial<_134.EventCancel>): _134.EventCancel; - fromAmino(object: _134.EventCancelAmino): _134.EventCancel; - toAmino(message: _134.EventCancel): _134.EventCancelAmino; - fromAminoMsg(object: _134.EventCancelAminoMsg): _134.EventCancel; - fromProtoMsg(message: _134.EventCancelProtoMsg): _134.EventCancel; - toProto(message: _134.EventCancel): Uint8Array; - toProtoMsg(message: _134.EventCancel): _134.EventCancelProtoMsg; - }; - }; - } - namespace intertx { - const v1: { - MsgClientImpl: typeof _270.MsgClientImpl; - QueryClientImpl: typeof _264.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - interchainAccount(request: _139.QueryInterchainAccountRequest): Promise<_139.QueryInterchainAccountResponse>; - }; - LCDQueryClient: typeof _258.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - registerAccount(value: _140.MsgRegisterAccount): { - typeUrl: string; - value: Uint8Array; - }; - submitTx(value: _140.MsgSubmitTx): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - registerAccount(value: _140.MsgRegisterAccount): { - typeUrl: string; - value: _140.MsgRegisterAccount; - }; - submitTx(value: _140.MsgSubmitTx): { - typeUrl: string; - value: _140.MsgSubmitTx; - }; - }; - toJSON: { - registerAccount(value: _140.MsgRegisterAccount): { - typeUrl: string; - value: unknown; - }; - submitTx(value: _140.MsgSubmitTx): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - registerAccount(value: any): { - typeUrl: string; - value: _140.MsgRegisterAccount; - }; - submitTx(value: any): { - typeUrl: string; - value: _140.MsgSubmitTx; - }; - }; - fromPartial: { - registerAccount(value: _140.MsgRegisterAccount): { - typeUrl: string; - value: _140.MsgRegisterAccount; - }; - submitTx(value: _140.MsgSubmitTx): { - typeUrl: string; - value: _140.MsgSubmitTx; - }; - }; - }; - AminoConverter: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: _140.MsgRegisterAccount) => _140.MsgRegisterAccountAmino; - fromAmino: (object: _140.MsgRegisterAccountAmino) => _140.MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: _140.MsgSubmitTx) => _140.MsgSubmitTxAmino; - fromAmino: (object: _140.MsgSubmitTxAmino) => _140.MsgSubmitTx; - }; - }; - MsgRegisterAccount: { - typeUrl: string; - encode(message: _140.MsgRegisterAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgRegisterAccount; - fromJSON(object: any): _140.MsgRegisterAccount; - toJSON(message: _140.MsgRegisterAccount): unknown; - fromPartial(object: Partial<_140.MsgRegisterAccount>): _140.MsgRegisterAccount; - fromAmino(object: _140.MsgRegisterAccountAmino): _140.MsgRegisterAccount; - toAmino(message: _140.MsgRegisterAccount): _140.MsgRegisterAccountAmino; - fromAminoMsg(object: _140.MsgRegisterAccountAminoMsg): _140.MsgRegisterAccount; - fromProtoMsg(message: _140.MsgRegisterAccountProtoMsg): _140.MsgRegisterAccount; - toProto(message: _140.MsgRegisterAccount): Uint8Array; - toProtoMsg(message: _140.MsgRegisterAccount): _140.MsgRegisterAccountProtoMsg; - }; - MsgRegisterAccountResponse: { - typeUrl: string; - encode(_: _140.MsgRegisterAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgRegisterAccountResponse; - fromJSON(_: any): _140.MsgRegisterAccountResponse; - toJSON(_: _140.MsgRegisterAccountResponse): unknown; - fromPartial(_: Partial<_140.MsgRegisterAccountResponse>): _140.MsgRegisterAccountResponse; - fromAmino(_: _140.MsgRegisterAccountResponseAmino): _140.MsgRegisterAccountResponse; - toAmino(_: _140.MsgRegisterAccountResponse): _140.MsgRegisterAccountResponseAmino; - fromAminoMsg(object: _140.MsgRegisterAccountResponseAminoMsg): _140.MsgRegisterAccountResponse; - fromProtoMsg(message: _140.MsgRegisterAccountResponseProtoMsg): _140.MsgRegisterAccountResponse; - toProto(message: _140.MsgRegisterAccountResponse): Uint8Array; - toProtoMsg(message: _140.MsgRegisterAccountResponse): _140.MsgRegisterAccountResponseProtoMsg; - }; - MsgSubmitTx: { - typeUrl: string; - encode(message: _140.MsgSubmitTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgSubmitTx; - fromJSON(object: any): _140.MsgSubmitTx; - toJSON(message: _140.MsgSubmitTx): unknown; - fromPartial(object: Partial<_140.MsgSubmitTx>): _140.MsgSubmitTx; - fromAmino(object: _140.MsgSubmitTxAmino): _140.MsgSubmitTx; - toAmino(message: _140.MsgSubmitTx): _140.MsgSubmitTxAmino; - fromAminoMsg(object: _140.MsgSubmitTxAminoMsg): _140.MsgSubmitTx; - fromProtoMsg(message: _140.MsgSubmitTxProtoMsg): _140.MsgSubmitTx; - toProto(message: _140.MsgSubmitTx): Uint8Array; - toProtoMsg(message: _140.MsgSubmitTx): _140.MsgSubmitTxProtoMsg; - }; - MsgSubmitTxResponse: { - typeUrl: string; - encode(_: _140.MsgSubmitTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _140.MsgSubmitTxResponse; - fromJSON(_: any): _140.MsgSubmitTxResponse; - toJSON(_: _140.MsgSubmitTxResponse): unknown; - fromPartial(_: Partial<_140.MsgSubmitTxResponse>): _140.MsgSubmitTxResponse; - fromAmino(_: _140.MsgSubmitTxResponseAmino): _140.MsgSubmitTxResponse; - toAmino(_: _140.MsgSubmitTxResponse): _140.MsgSubmitTxResponseAmino; - fromAminoMsg(object: _140.MsgSubmitTxResponseAminoMsg): _140.MsgSubmitTxResponse; - fromProtoMsg(message: _140.MsgSubmitTxResponseProtoMsg): _140.MsgSubmitTxResponse; - toProto(message: _140.MsgSubmitTxResponse): Uint8Array; - toProtoMsg(message: _140.MsgSubmitTxResponse): _140.MsgSubmitTxResponseProtoMsg; - }; - QueryInterchainAccountRequest: { - typeUrl: string; - encode(message: _139.QueryInterchainAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _139.QueryInterchainAccountRequest; - fromJSON(object: any): _139.QueryInterchainAccountRequest; - toJSON(message: _139.QueryInterchainAccountRequest): unknown; - fromPartial(object: Partial<_139.QueryInterchainAccountRequest>): _139.QueryInterchainAccountRequest; - fromAmino(object: _139.QueryInterchainAccountRequestAmino): _139.QueryInterchainAccountRequest; - toAmino(message: _139.QueryInterchainAccountRequest): _139.QueryInterchainAccountRequestAmino; - fromAminoMsg(object: _139.QueryInterchainAccountRequestAminoMsg): _139.QueryInterchainAccountRequest; - fromProtoMsg(message: _139.QueryInterchainAccountRequestProtoMsg): _139.QueryInterchainAccountRequest; - toProto(message: _139.QueryInterchainAccountRequest): Uint8Array; - toProtoMsg(message: _139.QueryInterchainAccountRequest): _139.QueryInterchainAccountRequestProtoMsg; - }; - QueryInterchainAccountResponse: { - typeUrl: string; - encode(message: _139.QueryInterchainAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _139.QueryInterchainAccountResponse; - fromJSON(object: any): _139.QueryInterchainAccountResponse; - toJSON(message: _139.QueryInterchainAccountResponse): unknown; - fromPartial(object: Partial<_139.QueryInterchainAccountResponse>): _139.QueryInterchainAccountResponse; - fromAmino(object: _139.QueryInterchainAccountResponseAmino): _139.QueryInterchainAccountResponse; - toAmino(message: _139.QueryInterchainAccountResponse): _139.QueryInterchainAccountResponseAmino; - fromAminoMsg(object: _139.QueryInterchainAccountResponseAminoMsg): _139.QueryInterchainAccountResponse; - fromProtoMsg(message: _139.QueryInterchainAccountResponseProtoMsg): _139.QueryInterchainAccountResponse; - toProto(message: _139.QueryInterchainAccountResponse): Uint8Array; - toProtoMsg(message: _139.QueryInterchainAccountResponse): _139.QueryInterchainAccountResponseProtoMsg; - }; - }; - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - regen: { - data: { - v1: _265.MsgClientImpl; - }; - ecocredit: { - basket: { - v1: _266.MsgClientImpl; - }; - marketplace: { - v1: _267.MsgClientImpl; - }; - v1: _268.MsgClientImpl; - v1alpha1: _269.MsgClientImpl; - }; - intertx: { - v1: _270.MsgClientImpl; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest | undefined): Promise; - }; - }; - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest | undefined): Promise; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest | undefined): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest | undefined): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest | undefined): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest | undefined): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: import("../cosmos/base/tendermint/v1beta1/query").ABCIQueryRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise; - }; - }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest | undefined): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest | undefined): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest | undefined): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest | undefined): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest | undefined): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest | undefined): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest | undefined): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest | undefined): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise; - }; - }; - }; - regen: { - data: { - v1: { - anchorByIRI(request: _114.QueryAnchorByIRIRequest): Promise<_114.QueryAnchorByIRIResponse>; - anchorByHash(request: _114.QueryAnchorByHashRequest): Promise<_114.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _114.QueryAttestationsByAttestorRequest): Promise<_114.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _114.QueryAttestationsByIRIRequest): Promise<_114.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _114.QueryAttestationsByHashRequest): Promise<_114.QueryAttestationsByHashResponse>; - resolver(request: _114.QueryResolverRequest): Promise<_114.QueryResolverResponse>; - resolversByIRI(request: _114.QueryResolversByIRIRequest): Promise<_114.QueryResolversByIRIResponse>; - resolversByHash(request: _114.QueryResolversByHashRequest): Promise<_114.QueryResolversByHashResponse>; - resolversByURL(request: _114.QueryResolversByURLRequest): Promise<_114.QueryResolversByURLResponse>; - convertIRIToHash(request: _114.ConvertIRIToHashRequest): Promise<_114.ConvertIRIToHashResponse>; - convertHashToIRI(request: _114.ConvertHashToIRIRequest): Promise<_114.ConvertHashToIRIResponse>; - }; - }; - ecocredit: { - basket: { - v1: { - basket(request: _119.QueryBasketRequest): Promise<_119.QueryBasketResponse>; - baskets(request?: _119.QueryBasketsRequest | undefined): Promise<_119.QueryBasketsResponse>; - basketBalances(request: _119.QueryBasketBalancesRequest): Promise<_119.QueryBasketBalancesResponse>; - basketBalance(request: _119.QueryBasketBalanceRequest): Promise<_119.QueryBasketBalanceResponse>; - basketFee(request?: _119.QueryBasketFeeRequest | undefined): Promise<_119.QueryBasketFeeResponse>; - }; - }; - marketplace: { - v1: { - sellOrder(request: _124.QuerySellOrderRequest): Promise<_124.QuerySellOrderResponse>; - sellOrders(request?: _124.QuerySellOrdersRequest | undefined): Promise<_124.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _124.QuerySellOrdersByBatchRequest): Promise<_124.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _124.QuerySellOrdersBySellerRequest): Promise<_124.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _124.QueryAllowedDenomsRequest | undefined): Promise<_124.QueryAllowedDenomsResponse>; - }; - }; - v1: { - classes(request?: _130.QueryClassesRequest | undefined): Promise<_130.QueryClassesResponse>; - classesByAdmin(request: _130.QueryClassesByAdminRequest): Promise<_130.QueryClassesByAdminResponse>; - class(request: _130.QueryClassRequest): Promise<_130.QueryClassResponse>; - classIssuers(request: _130.QueryClassIssuersRequest): Promise<_130.QueryClassIssuersResponse>; - projects(request?: _130.QueryProjectsRequest | undefined): Promise<_130.QueryProjectsResponse>; - projectsByClass(request: _130.QueryProjectsByClassRequest): Promise<_130.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _130.QueryProjectsByReferenceIdRequest): Promise<_130.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _130.QueryProjectsByAdminRequest): Promise<_130.QueryProjectsByAdminResponse>; - project(request: _130.QueryProjectRequest): Promise<_130.QueryProjectResponse>; - batches(request?: _130.QueryBatchesRequest | undefined): Promise<_130.QueryBatchesResponse>; - batchesByIssuer(request: _130.QueryBatchesByIssuerRequest): Promise<_130.QueryBatchesByIssuerResponse>; - batchesByClass(request: _130.QueryBatchesByClassRequest): Promise<_130.QueryBatchesByClassResponse>; - batchesByProject(request: _130.QueryBatchesByProjectRequest): Promise<_130.QueryBatchesByProjectResponse>; - batch(request: _130.QueryBatchRequest): Promise<_130.QueryBatchResponse>; - balance(request: _130.QueryBalanceRequest): Promise<_130.QueryBalanceResponse>; - balances(request: _130.QueryBalancesRequest): Promise<_130.QueryBalancesResponse>; - balancesByBatch(request: _130.QueryBalancesByBatchRequest): Promise<_130.QueryBalancesByBatchResponse>; - allBalances(request?: _130.QueryAllBalancesRequest | undefined): Promise<_130.QueryAllBalancesResponse>; - supply(request: _130.QuerySupplyRequest): Promise<_130.QuerySupplyResponse>; - creditTypes(request?: _130.QueryCreditTypesRequest | undefined): Promise<_130.QueryCreditTypesResponse>; - params(request?: _130.QueryParamsRequest | undefined): Promise<_130.QueryParamsResponse>; - creditType(request: _130.QueryCreditTypeRequest): Promise<_130.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _130.QueryClassCreatorAllowlistRequest | undefined): Promise<_130.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _130.QueryAllowedClassCreatorsRequest | undefined): Promise<_130.QueryAllowedClassCreatorsResponse>; - classFee(request?: _130.QueryClassFeeRequest | undefined): Promise<_130.QueryClassFeeResponse>; - allowedBridgeChains(request?: _130.QueryAllowedBridgeChainsRequest | undefined): Promise<_130.QueryAllowedBridgeChainsResponse>; - }; - v1alpha1: { - classes(request?: _136.QueryClassesRequest | undefined): Promise<_136.QueryClassesResponse>; - classInfo(request: _136.QueryClassInfoRequest): Promise<_136.QueryClassInfoResponse>; - batches(request: _136.QueryBatchesRequest): Promise<_136.QueryBatchesResponse>; - batchInfo(request: _136.QueryBatchInfoRequest): Promise<_136.QueryBatchInfoResponse>; - balance(request: _136.QueryBalanceRequest): Promise<_136.QueryBalanceResponse>; - supply(request: _136.QuerySupplyRequest): Promise<_136.QuerySupplyResponse>; - creditTypes(request?: _136.QueryCreditTypesRequest | undefined): Promise<_136.QueryCreditTypesResponse>; - params(request?: _136.QueryParamsRequest | undefined): Promise<_136.QueryParamsResponse>; - }; - }; - intertx: { - v1: { - interchainAccount(request: _139.QueryInterchainAccountRequest): Promise<_139.QueryInterchainAccountResponse>; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - regen: { - data: { - v1: _253.LCDQueryClient; - }; - ecocredit: { - basket: { - v1: _254.LCDQueryClient; - }; - marketplace: { - v1: _255.LCDQueryClient; - }; - v1: _256.LCDQueryClient; - v1alpha1: _257.LCDQueryClient; - }; - intertx: { - v1: _258.LCDQueryClient; - }; - }; - }>; - }; -} diff --git a/packages/api/types/codegen/regen/client.d.ts b/packages/api/types/codegen/regen/client.d.ts deleted file mode 100644 index af020465..00000000 --- a/packages/api/types/codegen/regen/client.d.ts +++ /dev/null @@ -1,262 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const regenAminoConverters: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: import("./intertx/v1/tx").MsgRegisterAccount) => import("./intertx/v1/tx").MsgRegisterAccountAmino; - fromAmino: (object: import("./intertx/v1/tx").MsgRegisterAccountAmino) => import("./intertx/v1/tx").MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: import("./intertx/v1/tx").MsgSubmitTx) => import("./intertx/v1/tx").MsgSubmitTxAmino; - fromAmino: (object: import("./intertx/v1/tx").MsgSubmitTxAmino) => import("./intertx/v1/tx").MsgSubmitTx; - }; - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateClass) => import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateBatch) => import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgSend) => import("./ecocredit/v1alpha1/tx").MsgSendAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgSendAmino) => import("./ecocredit/v1alpha1/tx").MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgRetire) => import("./ecocredit/v1alpha1/tx").MsgRetireAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgRetireAmino) => import("./ecocredit/v1alpha1/tx").MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCancel) => import("./ecocredit/v1alpha1/tx").MsgCancelAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCancelAmino) => import("./ecocredit/v1alpha1/tx").MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateClass) => import("./ecocredit/v1/tx").MsgCreateClassAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateClassAmino) => import("./ecocredit/v1/tx").MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateProject) => import("./ecocredit/v1/tx").MsgCreateProjectAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateProjectAmino) => import("./ecocredit/v1/tx").MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateBatch) => import("./ecocredit/v1/tx").MsgCreateBatchAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1/tx").MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgMintBatchCredits) => import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino) => import("./ecocredit/v1/tx").MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSealBatch) => import("./ecocredit/v1/tx").MsgSealBatchAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSealBatchAmino) => import("./ecocredit/v1/tx").MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSend) => import("./ecocredit/v1/tx").MsgSendAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSendAmino) => import("./ecocredit/v1/tx").MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRetire) => import("./ecocredit/v1/tx").MsgRetireAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRetireAmino) => import("./ecocredit/v1/tx").MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCancel) => import("./ecocredit/v1/tx").MsgCancelAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCancelAmino) => import("./ecocredit/v1/tx").MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1/tx").MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectAdmin) => import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectMetadata) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateBatchMetadata) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgBridge) => import("./ecocredit/v1/tx").MsgBridgeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeAmino) => import("./ecocredit/v1/tx").MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgBridgeReceive) => import("./ecocredit/v1/tx").MsgBridgeReceiveAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeReceiveAmino) => import("./ecocredit/v1/tx").MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddCreditType) => import("./ecocredit/v1/tx").MsgAddCreditTypeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddCreditTypeAmino) => import("./ecocredit/v1/tx").MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddClassCreator) => import("./ecocredit/v1/tx").MsgAddClassCreatorAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddClassCreatorAmino) => import("./ecocredit/v1/tx").MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveClassCreator) => import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino) => import("./ecocredit/v1/tx").MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassFee) => import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino) => import("./ecocredit/v1/tx").MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain; - }; - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgSell) => import("./ecocredit/marketplace/v1/tx").MsgSellAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgSellAmino) => import("./ecocredit/marketplace/v1/tx").MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgBuyDirect) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom; - }; - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgCreate) => import("./ecocredit/basket/v1/tx").MsgCreateAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgCreateAmino) => import("./ecocredit/basket/v1/tx").MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgPut) => import("./ecocredit/basket/v1/tx").MsgPutAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgPutAmino) => import("./ecocredit/basket/v1/tx").MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgTake) => import("./ecocredit/basket/v1/tx").MsgTakeAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgTakeAmino) => import("./ecocredit/basket/v1/tx").MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateCurator) => import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria; - }; - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgAnchor) => import("./data/v1/tx").MsgAnchorAmino; - fromAmino: (object: import("./data/v1/tx").MsgAnchorAmino) => import("./data/v1/tx").MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgAttest) => import("./data/v1/tx").MsgAttestAmino; - fromAmino: (object: import("./data/v1/tx").MsgAttestAmino) => import("./data/v1/tx").MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgDefineResolver) => import("./data/v1/tx").MsgDefineResolverAmino; - fromAmino: (object: import("./data/v1/tx").MsgDefineResolverAmino) => import("./data/v1/tx").MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgRegisterResolver) => import("./data/v1/tx").MsgRegisterResolverAmino; - fromAmino: (object: import("./data/v1/tx").MsgRegisterResolverAmino) => import("./data/v1/tx").MsgRegisterResolver; - }; -}; -export declare const regenProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningRegenClientOptions: ({ defaultTypes }?: { - defaultTypes?: readonly [string, GeneratedType][] | undefined; -}) => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningRegenClient: ({ rpcEndpoint, signer, defaultTypes }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: readonly [string, GeneratedType][] | undefined; -}) => Promise; diff --git a/packages/api/types/codegen/regen/data/v1/events.d.ts b/packages/api/types/codegen/regen/data/v1/events.d.ts deleted file mode 100644 index 5efb9020..00000000 --- a/packages/api/types/codegen/regen/data/v1/events.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchor { - /** iri is the IRI of the data anchored on chain. */ - iri: string; -} -export interface EventAnchorProtoMsg { - typeUrl: "/regen.data.v1.EventAnchor"; - value: Uint8Array; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorAmino { - /** iri is the IRI of the data anchored on chain. */ - iri?: string; -} -export interface EventAnchorAminoMsg { - type: "/regen.data.v1.EventAnchor"; - value: EventAnchorAmino; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorSDKType { - iri: string; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttest { - /** iri is the IRI of the data attested to. */ - iri: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor: string; -} -export interface EventAttestProtoMsg { - typeUrl: "/regen.data.v1.EventAttest"; - value: Uint8Array; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestAmino { - /** iri is the IRI of the data attested to. */ - iri?: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor?: string; -} -export interface EventAttestAminoMsg { - type: "/regen.data.v1.EventAttest"; - value: EventAttestAmino; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestSDKType { - iri: string; - attestor: string; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolver { - /** id is the ID of the defined resolver. */ - id: bigint; -} -export interface EventDefineResolverProtoMsg { - typeUrl: "/regen.data.v1.EventDefineResolver"; - value: Uint8Array; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverAmino { - /** id is the ID of the defined resolver. */ - id?: string; -} -export interface EventDefineResolverAminoMsg { - type: "/regen.data.v1.EventDefineResolver"; - value: EventDefineResolverAmino; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverSDKType { - id: bigint; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolver { - /** id is the ID of the resolver that the data was registered to. */ - id: bigint; - /** iri is the IRI of the data that was registered. */ - iri: string; -} -export interface EventRegisterResolverProtoMsg { - typeUrl: "/regen.data.v1.EventRegisterResolver"; - value: Uint8Array; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverAmino { - /** id is the ID of the resolver that the data was registered to. */ - id?: string; - /** iri is the IRI of the data that was registered. */ - iri?: string; -} -export interface EventRegisterResolverAminoMsg { - type: "/regen.data.v1.EventRegisterResolver"; - value: EventRegisterResolverAmino; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverSDKType { - id: bigint; - iri: string; -} -export declare const EventAnchor: { - typeUrl: string; - encode(message: EventAnchor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor; - fromJSON(object: any): EventAnchor; - toJSON(message: EventAnchor): unknown; - fromPartial(object: Partial): EventAnchor; - fromAmino(object: EventAnchorAmino): EventAnchor; - toAmino(message: EventAnchor): EventAnchorAmino; - fromAminoMsg(object: EventAnchorAminoMsg): EventAnchor; - fromProtoMsg(message: EventAnchorProtoMsg): EventAnchor; - toProto(message: EventAnchor): Uint8Array; - toProtoMsg(message: EventAnchor): EventAnchorProtoMsg; -}; -export declare const EventAttest: { - typeUrl: string; - encode(message: EventAttest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAttest; - fromJSON(object: any): EventAttest; - toJSON(message: EventAttest): unknown; - fromPartial(object: Partial): EventAttest; - fromAmino(object: EventAttestAmino): EventAttest; - toAmino(message: EventAttest): EventAttestAmino; - fromAminoMsg(object: EventAttestAminoMsg): EventAttest; - fromProtoMsg(message: EventAttestProtoMsg): EventAttest; - toProto(message: EventAttest): Uint8Array; - toProtoMsg(message: EventAttest): EventAttestProtoMsg; -}; -export declare const EventDefineResolver: { - typeUrl: string; - encode(message: EventDefineResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver; - fromJSON(object: any): EventDefineResolver; - toJSON(message: EventDefineResolver): unknown; - fromPartial(object: Partial): EventDefineResolver; - fromAmino(object: EventDefineResolverAmino): EventDefineResolver; - toAmino(message: EventDefineResolver): EventDefineResolverAmino; - fromAminoMsg(object: EventDefineResolverAminoMsg): EventDefineResolver; - fromProtoMsg(message: EventDefineResolverProtoMsg): EventDefineResolver; - toProto(message: EventDefineResolver): Uint8Array; - toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg; -}; -export declare const EventRegisterResolver: { - typeUrl: string; - encode(message: EventRegisterResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver; - fromJSON(object: any): EventRegisterResolver; - toJSON(message: EventRegisterResolver): unknown; - fromPartial(object: Partial): EventRegisterResolver; - fromAmino(object: EventRegisterResolverAmino): EventRegisterResolver; - toAmino(message: EventRegisterResolver): EventRegisterResolverAmino; - fromAminoMsg(object: EventRegisterResolverAminoMsg): EventRegisterResolver; - fromProtoMsg(message: EventRegisterResolverProtoMsg): EventRegisterResolver; - toProto(message: EventRegisterResolver): Uint8Array; - toProtoMsg(message: EventRegisterResolver): EventRegisterResolverProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/data/v1/query.d.ts b/packages/api/types/codegen/regen/data/v1/query.d.ts deleted file mode 100644 index bc017f0b..00000000 --- a/packages/api/types/codegen/regen/data/v1/query.d.ts +++ /dev/null @@ -1,1021 +0,0 @@ -import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; -} -export interface QueryAnchorByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: Uint8Array; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; -} -export interface QueryAnchorByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: QueryAnchorByIRIRequestAmino; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestSDKType { - iri: string; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: Uint8Array; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: QueryAnchorByIRIResponseAmino; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; -} -export interface QueryAnchorByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; - value: Uint8Array; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; -} -export interface QueryAnchorByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashRequest"; - value: QueryAnchorByHashRequestAmino; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; - value: Uint8Array; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashResponse"; - value: QueryAnchorByHashResponseAmino; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequest { - /** attestor is the address of the attestor. */ - attestor: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByAttestorRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestAmino { - /** attestor is the address of the attestor. */ - attestor?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByAttestorRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: QueryAttestationsByAttestorRequestAmino; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestSDKType { - attestor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponse { - /** attestations are the attestations by the attestor. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByAttestorResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseAmino { - /** attestations are the attestations by the attestor. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByAttestorResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: QueryAttestationsByAttestorResponseAmino; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: Uint8Array; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: QueryAttestationsByIRIRequestAmino; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: Uint8Array; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: QueryAttestationsByIRIResponseAmino; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: Uint8Array; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: QueryAttestationsByHashRequestAmino; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: QueryAttestationsByHashResponseAmino; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequest { - /** id is the ID of the resolver. */ - id: bigint; -} -export interface QueryResolverRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverRequest"; - value: Uint8Array; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestAmino { - /** id is the ID of the resolver. */ - id?: string; -} -export interface QueryResolverRequestAminoMsg { - type: "/regen.data.v1.QueryResolverRequest"; - value: QueryResolverRequestAmino; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestSDKType { - id: bigint; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponse { - /** resolver is information about the resolver. */ - resolver?: ResolverInfo; -} -export interface QueryResolverResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverResponse"; - value: Uint8Array; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseAmino { - /** resolver is information about the resolver. */ - resolver?: ResolverInfoAmino; -} -export interface QueryResolverResponseAminoMsg { - type: "/regen.data.v1.QueryResolverResponse"; - value: QueryResolverResponseAmino; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseSDKType { - resolver?: ResolverInfoSDKType; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; - value: Uint8Array; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIRequest"; - value: QueryResolversByIRIRequestAmino; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponse { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; - value: Uint8Array; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseAmino { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIResponse"; - value: QueryResolversByIRIResponseAmino; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; - value: Uint8Array; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByHashRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByHashRequest"; - value: QueryResolversByHashRequestAmino; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponse { - /** resolvers are the resolvers that have registered the data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; - value: Uint8Array; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseAmino { - /** resolvers are the resolvers that have registered the data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByHashResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByHashResponse"; - value: QueryResolversByHashResponseAmino; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequest { - /** url is the URL of the resolver. */ - url: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByURLRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; - value: Uint8Array; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestAmino { - /** url is the URL of the resolver. */ - url?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByURLRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByURLRequest"; - value: QueryResolversByURLRequestAmino; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestSDKType { - url: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponse { - /** resolvers are the resolvers that have a matching URL. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByURLResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; - value: Uint8Array; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseAmino { - /** resolvers are the resolvers that have a matching URL. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByURLResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByURLResponse"; - value: QueryResolversByURLResponseAmino; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequest { - /** iri is the IRI to convert to a ContentHash. */ - iri: string; -} -export interface ConvertIRIToHashRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest"; - value: Uint8Array; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestAmino { - /** iri is the IRI to convert to a ContentHash. */ - iri?: string; -} -export interface ConvertIRIToHashRequestAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashRequest"; - value: ConvertIRIToHashRequestAmino; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestSDKType { - iri: string; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponse { - /** content_hash is the ContentHash converted from the IRI. */ - contentHash?: ContentHash; -} -export interface ConvertIRIToHashResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; - value: Uint8Array; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseAmino { - /** content_hash is the ContentHash converted from the IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertIRIToHashResponseAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashResponse"; - value: ConvertIRIToHashResponseAmino; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequest { - /** content_hash is the ContentHash to convert to an IRI. */ - contentHash?: ContentHash; -} -export interface ConvertHashToIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; - value: Uint8Array; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestAmino { - /** content_hash is the ContentHash to convert to an IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertHashToIRIRequestAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIRequest"; - value: ConvertHashToIRIRequestAmino; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponse { - /** iri is the IRI converted from the ContentHash. */ - iri: string; -} -export interface ConvertHashToIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse"; - value: Uint8Array; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseAmino { - /** iri is the IRI converted from the ContentHash. */ - iri?: string; -} -export interface ConvertHashToIRIResponseAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIResponse"; - value: ConvertHashToIRIResponseAmino; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseSDKType { - iri: string; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** timestamp is the time at which the data was anchored. */ - timestamp?: Timestamp; -} -export interface AnchorInfoProtoMsg { - typeUrl: "/regen.data.v1.AnchorInfo"; - value: Uint8Array; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** timestamp is the time at which the data was anchored. */ - timestamp?: string; -} -export interface AnchorInfoAminoMsg { - type: "/regen.data.v1.AnchorInfo"; - value: AnchorInfoAmino; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoSDKType { - iri: string; - content_hash?: ContentHashSDKType; - timestamp?: TimestampSDKType; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: Timestamp; -} -export interface AttestationInfoProtoMsg { - typeUrl: "/regen.data.v1.AttestationInfo"; - value: Uint8Array; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor?: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: string; -} -export interface AttestationInfoAminoMsg { - type: "/regen.data.v1.AttestationInfo"; - value: AttestationInfoAmino; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoSDKType { - iri: string; - attestor: string; - timestamp?: TimestampSDKType; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfo { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** manager is the address of the account that manages the resolver. */ - manager: string; -} -export interface ResolverInfoProtoMsg { - typeUrl: "/regen.data.v1.ResolverInfo"; - value: Uint8Array; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** manager is the address of the account that manages the resolver. */ - manager?: string; -} -export interface ResolverInfoAminoMsg { - type: "/regen.data.v1.ResolverInfo"; - value: ResolverInfoAmino; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoSDKType { - id: bigint; - url: string; - manager: string; -} -export declare const QueryAnchorByIRIRequest: { - typeUrl: string; - encode(message: QueryAnchorByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest; - fromJSON(object: any): QueryAnchorByIRIRequest; - toJSON(message: QueryAnchorByIRIRequest): unknown; - fromPartial(object: Partial): QueryAnchorByIRIRequest; - fromAmino(object: QueryAnchorByIRIRequestAmino): QueryAnchorByIRIRequest; - toAmino(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestAmino; - fromAminoMsg(object: QueryAnchorByIRIRequestAminoMsg): QueryAnchorByIRIRequest; - fromProtoMsg(message: QueryAnchorByIRIRequestProtoMsg): QueryAnchorByIRIRequest; - toProto(message: QueryAnchorByIRIRequest): Uint8Array; - toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg; -}; -export declare const QueryAnchorByIRIResponse: { - typeUrl: string; - encode(message: QueryAnchorByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse; - fromJSON(object: any): QueryAnchorByIRIResponse; - toJSON(message: QueryAnchorByIRIResponse): unknown; - fromPartial(object: Partial): QueryAnchorByIRIResponse; - fromAmino(object: QueryAnchorByIRIResponseAmino): QueryAnchorByIRIResponse; - toAmino(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseAmino; - fromAminoMsg(object: QueryAnchorByIRIResponseAminoMsg): QueryAnchorByIRIResponse; - fromProtoMsg(message: QueryAnchorByIRIResponseProtoMsg): QueryAnchorByIRIResponse; - toProto(message: QueryAnchorByIRIResponse): Uint8Array; - toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg; -}; -export declare const QueryAnchorByHashRequest: { - typeUrl: string; - encode(message: QueryAnchorByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest; - fromJSON(object: any): QueryAnchorByHashRequest; - toJSON(message: QueryAnchorByHashRequest): unknown; - fromPartial(object: Partial): QueryAnchorByHashRequest; - fromAmino(object: QueryAnchorByHashRequestAmino): QueryAnchorByHashRequest; - toAmino(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestAmino; - fromAminoMsg(object: QueryAnchorByHashRequestAminoMsg): QueryAnchorByHashRequest; - fromProtoMsg(message: QueryAnchorByHashRequestProtoMsg): QueryAnchorByHashRequest; - toProto(message: QueryAnchorByHashRequest): Uint8Array; - toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg; -}; -export declare const QueryAnchorByHashResponse: { - typeUrl: string; - encode(message: QueryAnchorByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse; - fromJSON(object: any): QueryAnchorByHashResponse; - toJSON(message: QueryAnchorByHashResponse): unknown; - fromPartial(object: Partial): QueryAnchorByHashResponse; - fromAmino(object: QueryAnchorByHashResponseAmino): QueryAnchorByHashResponse; - toAmino(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseAmino; - fromAminoMsg(object: QueryAnchorByHashResponseAminoMsg): QueryAnchorByHashResponse; - fromProtoMsg(message: QueryAnchorByHashResponseProtoMsg): QueryAnchorByHashResponse; - toProto(message: QueryAnchorByHashResponse): Uint8Array; - toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg; -}; -export declare const QueryAttestationsByAttestorRequest: { - typeUrl: string; - encode(message: QueryAttestationsByAttestorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest; - fromJSON(object: any): QueryAttestationsByAttestorRequest; - toJSON(message: QueryAttestationsByAttestorRequest): unknown; - fromPartial(object: Partial): QueryAttestationsByAttestorRequest; - fromAmino(object: QueryAttestationsByAttestorRequestAmino): QueryAttestationsByAttestorRequest; - toAmino(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestAmino; - fromAminoMsg(object: QueryAttestationsByAttestorRequestAminoMsg): QueryAttestationsByAttestorRequest; - fromProtoMsg(message: QueryAttestationsByAttestorRequestProtoMsg): QueryAttestationsByAttestorRequest; - toProto(message: QueryAttestationsByAttestorRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg; -}; -export declare const QueryAttestationsByAttestorResponse: { - typeUrl: string; - encode(message: QueryAttestationsByAttestorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse; - fromJSON(object: any): QueryAttestationsByAttestorResponse; - toJSON(message: QueryAttestationsByAttestorResponse): unknown; - fromPartial(object: Partial): QueryAttestationsByAttestorResponse; - fromAmino(object: QueryAttestationsByAttestorResponseAmino): QueryAttestationsByAttestorResponse; - toAmino(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseAmino; - fromAminoMsg(object: QueryAttestationsByAttestorResponseAminoMsg): QueryAttestationsByAttestorResponse; - fromProtoMsg(message: QueryAttestationsByAttestorResponseProtoMsg): QueryAttestationsByAttestorResponse; - toProto(message: QueryAttestationsByAttestorResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg; -}; -export declare const QueryAttestationsByIRIRequest: { - typeUrl: string; - encode(message: QueryAttestationsByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest; - fromJSON(object: any): QueryAttestationsByIRIRequest; - toJSON(message: QueryAttestationsByIRIRequest): unknown; - fromPartial(object: Partial): QueryAttestationsByIRIRequest; - fromAmino(object: QueryAttestationsByIRIRequestAmino): QueryAttestationsByIRIRequest; - toAmino(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestAmino; - fromAminoMsg(object: QueryAttestationsByIRIRequestAminoMsg): QueryAttestationsByIRIRequest; - fromProtoMsg(message: QueryAttestationsByIRIRequestProtoMsg): QueryAttestationsByIRIRequest; - toProto(message: QueryAttestationsByIRIRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg; -}; -export declare const QueryAttestationsByIRIResponse: { - typeUrl: string; - encode(message: QueryAttestationsByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse; - fromJSON(object: any): QueryAttestationsByIRIResponse; - toJSON(message: QueryAttestationsByIRIResponse): unknown; - fromPartial(object: Partial): QueryAttestationsByIRIResponse; - fromAmino(object: QueryAttestationsByIRIResponseAmino): QueryAttestationsByIRIResponse; - toAmino(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseAmino; - fromAminoMsg(object: QueryAttestationsByIRIResponseAminoMsg): QueryAttestationsByIRIResponse; - fromProtoMsg(message: QueryAttestationsByIRIResponseProtoMsg): QueryAttestationsByIRIResponse; - toProto(message: QueryAttestationsByIRIResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg; -}; -export declare const QueryAttestationsByHashRequest: { - typeUrl: string; - encode(message: QueryAttestationsByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest; - fromJSON(object: any): QueryAttestationsByHashRequest; - toJSON(message: QueryAttestationsByHashRequest): unknown; - fromPartial(object: Partial): QueryAttestationsByHashRequest; - fromAmino(object: QueryAttestationsByHashRequestAmino): QueryAttestationsByHashRequest; - toAmino(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestAmino; - fromAminoMsg(object: QueryAttestationsByHashRequestAminoMsg): QueryAttestationsByHashRequest; - fromProtoMsg(message: QueryAttestationsByHashRequestProtoMsg): QueryAttestationsByHashRequest; - toProto(message: QueryAttestationsByHashRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg; -}; -export declare const QueryAttestationsByHashResponse: { - typeUrl: string; - encode(message: QueryAttestationsByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse; - fromJSON(object: any): QueryAttestationsByHashResponse; - toJSON(message: QueryAttestationsByHashResponse): unknown; - fromPartial(object: Partial): QueryAttestationsByHashResponse; - fromAmino(object: QueryAttestationsByHashResponseAmino): QueryAttestationsByHashResponse; - toAmino(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseAmino; - fromAminoMsg(object: QueryAttestationsByHashResponseAminoMsg): QueryAttestationsByHashResponse; - fromProtoMsg(message: QueryAttestationsByHashResponseProtoMsg): QueryAttestationsByHashResponse; - toProto(message: QueryAttestationsByHashResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg; -}; -export declare const QueryResolverRequest: { - typeUrl: string; - encode(message: QueryResolverRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest; - fromJSON(object: any): QueryResolverRequest; - toJSON(message: QueryResolverRequest): unknown; - fromPartial(object: Partial): QueryResolverRequest; - fromAmino(object: QueryResolverRequestAmino): QueryResolverRequest; - toAmino(message: QueryResolverRequest): QueryResolverRequestAmino; - fromAminoMsg(object: QueryResolverRequestAminoMsg): QueryResolverRequest; - fromProtoMsg(message: QueryResolverRequestProtoMsg): QueryResolverRequest; - toProto(message: QueryResolverRequest): Uint8Array; - toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg; -}; -export declare const QueryResolverResponse: { - typeUrl: string; - encode(message: QueryResolverResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse; - fromJSON(object: any): QueryResolverResponse; - toJSON(message: QueryResolverResponse): unknown; - fromPartial(object: Partial): QueryResolverResponse; - fromAmino(object: QueryResolverResponseAmino): QueryResolverResponse; - toAmino(message: QueryResolverResponse): QueryResolverResponseAmino; - fromAminoMsg(object: QueryResolverResponseAminoMsg): QueryResolverResponse; - fromProtoMsg(message: QueryResolverResponseProtoMsg): QueryResolverResponse; - toProto(message: QueryResolverResponse): Uint8Array; - toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg; -}; -export declare const QueryResolversByIRIRequest: { - typeUrl: string; - encode(message: QueryResolversByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest; - fromJSON(object: any): QueryResolversByIRIRequest; - toJSON(message: QueryResolversByIRIRequest): unknown; - fromPartial(object: Partial): QueryResolversByIRIRequest; - fromAmino(object: QueryResolversByIRIRequestAmino): QueryResolversByIRIRequest; - toAmino(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestAmino; - fromAminoMsg(object: QueryResolversByIRIRequestAminoMsg): QueryResolversByIRIRequest; - fromProtoMsg(message: QueryResolversByIRIRequestProtoMsg): QueryResolversByIRIRequest; - toProto(message: QueryResolversByIRIRequest): Uint8Array; - toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg; -}; -export declare const QueryResolversByIRIResponse: { - typeUrl: string; - encode(message: QueryResolversByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse; - fromJSON(object: any): QueryResolversByIRIResponse; - toJSON(message: QueryResolversByIRIResponse): unknown; - fromPartial(object: Partial): QueryResolversByIRIResponse; - fromAmino(object: QueryResolversByIRIResponseAmino): QueryResolversByIRIResponse; - toAmino(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseAmino; - fromAminoMsg(object: QueryResolversByIRIResponseAminoMsg): QueryResolversByIRIResponse; - fromProtoMsg(message: QueryResolversByIRIResponseProtoMsg): QueryResolversByIRIResponse; - toProto(message: QueryResolversByIRIResponse): Uint8Array; - toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg; -}; -export declare const QueryResolversByHashRequest: { - typeUrl: string; - encode(message: QueryResolversByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest; - fromJSON(object: any): QueryResolversByHashRequest; - toJSON(message: QueryResolversByHashRequest): unknown; - fromPartial(object: Partial): QueryResolversByHashRequest; - fromAmino(object: QueryResolversByHashRequestAmino): QueryResolversByHashRequest; - toAmino(message: QueryResolversByHashRequest): QueryResolversByHashRequestAmino; - fromAminoMsg(object: QueryResolversByHashRequestAminoMsg): QueryResolversByHashRequest; - fromProtoMsg(message: QueryResolversByHashRequestProtoMsg): QueryResolversByHashRequest; - toProto(message: QueryResolversByHashRequest): Uint8Array; - toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg; -}; -export declare const QueryResolversByHashResponse: { - typeUrl: string; - encode(message: QueryResolversByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse; - fromJSON(object: any): QueryResolversByHashResponse; - toJSON(message: QueryResolversByHashResponse): unknown; - fromPartial(object: Partial): QueryResolversByHashResponse; - fromAmino(object: QueryResolversByHashResponseAmino): QueryResolversByHashResponse; - toAmino(message: QueryResolversByHashResponse): QueryResolversByHashResponseAmino; - fromAminoMsg(object: QueryResolversByHashResponseAminoMsg): QueryResolversByHashResponse; - fromProtoMsg(message: QueryResolversByHashResponseProtoMsg): QueryResolversByHashResponse; - toProto(message: QueryResolversByHashResponse): Uint8Array; - toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg; -}; -export declare const QueryResolversByURLRequest: { - typeUrl: string; - encode(message: QueryResolversByURLRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest; - fromJSON(object: any): QueryResolversByURLRequest; - toJSON(message: QueryResolversByURLRequest): unknown; - fromPartial(object: Partial): QueryResolversByURLRequest; - fromAmino(object: QueryResolversByURLRequestAmino): QueryResolversByURLRequest; - toAmino(message: QueryResolversByURLRequest): QueryResolversByURLRequestAmino; - fromAminoMsg(object: QueryResolversByURLRequestAminoMsg): QueryResolversByURLRequest; - fromProtoMsg(message: QueryResolversByURLRequestProtoMsg): QueryResolversByURLRequest; - toProto(message: QueryResolversByURLRequest): Uint8Array; - toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg; -}; -export declare const QueryResolversByURLResponse: { - typeUrl: string; - encode(message: QueryResolversByURLResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse; - fromJSON(object: any): QueryResolversByURLResponse; - toJSON(message: QueryResolversByURLResponse): unknown; - fromPartial(object: Partial): QueryResolversByURLResponse; - fromAmino(object: QueryResolversByURLResponseAmino): QueryResolversByURLResponse; - toAmino(message: QueryResolversByURLResponse): QueryResolversByURLResponseAmino; - fromAminoMsg(object: QueryResolversByURLResponseAminoMsg): QueryResolversByURLResponse; - fromProtoMsg(message: QueryResolversByURLResponseProtoMsg): QueryResolversByURLResponse; - toProto(message: QueryResolversByURLResponse): Uint8Array; - toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg; -}; -export declare const ConvertIRIToHashRequest: { - typeUrl: string; - encode(message: ConvertIRIToHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest; - fromJSON(object: any): ConvertIRIToHashRequest; - toJSON(message: ConvertIRIToHashRequest): unknown; - fromPartial(object: Partial): ConvertIRIToHashRequest; - fromAmino(object: ConvertIRIToHashRequestAmino): ConvertIRIToHashRequest; - toAmino(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestAmino; - fromAminoMsg(object: ConvertIRIToHashRequestAminoMsg): ConvertIRIToHashRequest; - fromProtoMsg(message: ConvertIRIToHashRequestProtoMsg): ConvertIRIToHashRequest; - toProto(message: ConvertIRIToHashRequest): Uint8Array; - toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg; -}; -export declare const ConvertIRIToHashResponse: { - typeUrl: string; - encode(message: ConvertIRIToHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse; - fromJSON(object: any): ConvertIRIToHashResponse; - toJSON(message: ConvertIRIToHashResponse): unknown; - fromPartial(object: Partial): ConvertIRIToHashResponse; - fromAmino(object: ConvertIRIToHashResponseAmino): ConvertIRIToHashResponse; - toAmino(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseAmino; - fromAminoMsg(object: ConvertIRIToHashResponseAminoMsg): ConvertIRIToHashResponse; - fromProtoMsg(message: ConvertIRIToHashResponseProtoMsg): ConvertIRIToHashResponse; - toProto(message: ConvertIRIToHashResponse): Uint8Array; - toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg; -}; -export declare const ConvertHashToIRIRequest: { - typeUrl: string; - encode(message: ConvertHashToIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest; - fromJSON(object: any): ConvertHashToIRIRequest; - toJSON(message: ConvertHashToIRIRequest): unknown; - fromPartial(object: Partial): ConvertHashToIRIRequest; - fromAmino(object: ConvertHashToIRIRequestAmino): ConvertHashToIRIRequest; - toAmino(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestAmino; - fromAminoMsg(object: ConvertHashToIRIRequestAminoMsg): ConvertHashToIRIRequest; - fromProtoMsg(message: ConvertHashToIRIRequestProtoMsg): ConvertHashToIRIRequest; - toProto(message: ConvertHashToIRIRequest): Uint8Array; - toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg; -}; -export declare const ConvertHashToIRIResponse: { - typeUrl: string; - encode(message: ConvertHashToIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse; - fromJSON(object: any): ConvertHashToIRIResponse; - toJSON(message: ConvertHashToIRIResponse): unknown; - fromPartial(object: Partial): ConvertHashToIRIResponse; - fromAmino(object: ConvertHashToIRIResponseAmino): ConvertHashToIRIResponse; - toAmino(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseAmino; - fromAminoMsg(object: ConvertHashToIRIResponseAminoMsg): ConvertHashToIRIResponse; - fromProtoMsg(message: ConvertHashToIRIResponseProtoMsg): ConvertHashToIRIResponse; - toProto(message: ConvertHashToIRIResponse): Uint8Array; - toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg; -}; -export declare const AnchorInfo: { - typeUrl: string; - encode(message: AnchorInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo; - fromJSON(object: any): AnchorInfo; - toJSON(message: AnchorInfo): unknown; - fromPartial(object: Partial): AnchorInfo; - fromAmino(object: AnchorInfoAmino): AnchorInfo; - toAmino(message: AnchorInfo): AnchorInfoAmino; - fromAminoMsg(object: AnchorInfoAminoMsg): AnchorInfo; - fromProtoMsg(message: AnchorInfoProtoMsg): AnchorInfo; - toProto(message: AnchorInfo): Uint8Array; - toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg; -}; -export declare const AttestationInfo: { - typeUrl: string; - encode(message: AttestationInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo; - fromJSON(object: any): AttestationInfo; - toJSON(message: AttestationInfo): unknown; - fromPartial(object: Partial): AttestationInfo; - fromAmino(object: AttestationInfoAmino): AttestationInfo; - toAmino(message: AttestationInfo): AttestationInfoAmino; - fromAminoMsg(object: AttestationInfoAminoMsg): AttestationInfo; - fromProtoMsg(message: AttestationInfoProtoMsg): AttestationInfo; - toProto(message: AttestationInfo): Uint8Array; - toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg; -}; -export declare const ResolverInfo: { - typeUrl: string; - encode(message: ResolverInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo; - fromJSON(object: any): ResolverInfo; - toJSON(message: ResolverInfo): unknown; - fromPartial(object: Partial): ResolverInfo; - fromAmino(object: ResolverInfoAmino): ResolverInfo; - toAmino(message: ResolverInfo): ResolverInfoAmino; - fromAminoMsg(object: ResolverInfoAminoMsg): ResolverInfo; - fromProtoMsg(message: ResolverInfoProtoMsg): ResolverInfo; - toProto(message: ResolverInfo): Uint8Array; - toProtoMsg(message: ResolverInfo): ResolverInfoProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts deleted file mode 100644 index 22fbc40c..00000000 --- a/packages/api/types/codegen/regen/data/v1/query.lcd.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - anchorByIRI(params: QueryAnchorByIRIRequest): Promise; - attestationsByAttestor(params: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(params: QueryAttestationsByIRIRequest): Promise; - resolver(params: QueryResolverRequest): Promise; - resolversByIRI(params: QueryResolversByIRIRequest): Promise; - convertIRIToHash(params: ConvertIRIToHashRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/data/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/data/v1/query.rpc.Query.d.ts deleted file mode 100644 index 62fa3704..00000000 --- a/packages/api/types/codegen/regen/data/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; -/** Query is the regen.data.v1 Query service */ -export interface Query { - /** AnchorByIRI queries a data anchor by the IRI of the data. */ - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - /** AnchorByHash queries a data anchor by the ContentHash of the data. */ - anchorByHash(request: QueryAnchorByHashRequest): Promise; - /** AttestationsByAttestor queries data attestations by an attestor. */ - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - /** AttestationsByIRI queries data attestations by the IRI of the data. */ - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - /** - * AttestationsByHash queries data attestations by the ContentHash of the - * data. - */ - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - /** Resolver queries a resolver by its unique identifier. */ - resolver(request: QueryResolverRequest): Promise; - /** - * ResolversByIRI queries resolvers with registered data by the IRI of the - * data. - */ - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - /** - * ResolversByHash queries resolvers with registered data by the ContentHash - * of the data. - */ - resolversByHash(request: QueryResolversByHashRequest): Promise; - /** ResolversByURL queries resolvers by URL. */ - resolversByURL(request: QueryResolversByURLRequest): Promise; - /** ConvertIRIToHash converts an IRI to a ContentHash. */ - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - /** ConvertHashToIRI converts a ContentHash to an IRI. */ - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - anchorByHash(request: QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - resolver(request: QueryResolverRequest): Promise; - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - resolversByHash(request: QueryResolversByHashRequest): Promise; - resolversByURL(request: QueryResolversByURLRequest): Promise; - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - anchorByHash(request: QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - resolver(request: QueryResolverRequest): Promise; - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - resolversByHash(request: QueryResolversByHashRequest): Promise; - resolversByURL(request: QueryResolversByURLRequest): Promise; - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/data/v1/state.d.ts b/packages/api/types/codegen/regen/data/v1/state.d.ts deleted file mode 100644 index 0ecd57d7..00000000 --- a/packages/api/types/codegen/regen/data/v1/state.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** DataID stores a compact data ID and its full IRI. */ -export interface DataID { - /** id is the compact automatically-generated data ID. */ - id: Uint8Array; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri: string; -} -export interface DataIDProtoMsg { - typeUrl: "/regen.data.v1.DataID"; - value: Uint8Array; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDAmino { - /** id is the compact automatically-generated data ID. */ - id?: string; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri?: string; -} -export interface DataIDAminoMsg { - type: "/regen.data.v1.DataID"; - value: DataIDAmino; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDSDKType { - id: Uint8Array; - iri: string; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchor { - /** id is the compact data ID. */ - id: Uint8Array; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: Timestamp; -} -export interface DataAnchorProtoMsg { - typeUrl: "/regen.data.v1.DataAnchor"; - value: Uint8Array; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorAmino { - /** id is the compact data ID. */ - id?: string; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: string; -} -export interface DataAnchorAminoMsg { - type: "/regen.data.v1.DataAnchor"; - value: DataAnchorAmino; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorSDKType { - id: Uint8Array; - timestamp?: TimestampSDKType; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestor { - /** id is the compact data ID. */ - id: Uint8Array; - /** attestor is the account address of the attestor. */ - attestor: Uint8Array; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: Timestamp; -} -export interface DataAttestorProtoMsg { - typeUrl: "/regen.data.v1.DataAttestor"; - value: Uint8Array; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorAmino { - /** id is the compact data ID. */ - id?: string; - /** attestor is the account address of the attestor. */ - attestor?: string; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: string; -} -export interface DataAttestorAminoMsg { - type: "/regen.data.v1.DataAttestor"; - value: DataAttestorAmino; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorSDKType { - id: Uint8Array; - attestor: Uint8Array; - timestamp?: TimestampSDKType; -} -/** Resolver describes a data resolver. */ -export interface Resolver { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager: Uint8Array; -} -export interface ResolverProtoMsg { - typeUrl: "/regen.data.v1.Resolver"; - value: Uint8Array; -} -/** Resolver describes a data resolver. */ -export interface ResolverAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager?: string; -} -export interface ResolverAminoMsg { - type: "/regen.data.v1.Resolver"; - value: ResolverAmino; -} -/** Resolver describes a data resolver. */ -export interface ResolverSDKType { - id: bigint; - url: string; - manager: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolver { - /** id is the compact data ID. */ - id: Uint8Array; - /** resolver_id is the ID of the resolver. */ - resolverId: bigint; -} -export interface DataResolverProtoMsg { - typeUrl: "/regen.data.v1.DataResolver"; - value: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverAmino { - /** id is the compact data ID. */ - id?: string; - /** resolver_id is the ID of the resolver. */ - resolver_id?: string; -} -export interface DataResolverAminoMsg { - type: "/regen.data.v1.DataResolver"; - value: DataResolverAmino; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverSDKType { - id: Uint8Array; - resolver_id: bigint; -} -export declare const DataID: { - typeUrl: string; - encode(message: DataID, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataID; - fromJSON(object: any): DataID; - toJSON(message: DataID): unknown; - fromPartial(object: Partial): DataID; - fromAmino(object: DataIDAmino): DataID; - toAmino(message: DataID): DataIDAmino; - fromAminoMsg(object: DataIDAminoMsg): DataID; - fromProtoMsg(message: DataIDProtoMsg): DataID; - toProto(message: DataID): Uint8Array; - toProtoMsg(message: DataID): DataIDProtoMsg; -}; -export declare const DataAnchor: { - typeUrl: string; - encode(message: DataAnchor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor; - fromJSON(object: any): DataAnchor; - toJSON(message: DataAnchor): unknown; - fromPartial(object: Partial): DataAnchor; - fromAmino(object: DataAnchorAmino): DataAnchor; - toAmino(message: DataAnchor): DataAnchorAmino; - fromAminoMsg(object: DataAnchorAminoMsg): DataAnchor; - fromProtoMsg(message: DataAnchorProtoMsg): DataAnchor; - toProto(message: DataAnchor): Uint8Array; - toProtoMsg(message: DataAnchor): DataAnchorProtoMsg; -}; -export declare const DataAttestor: { - typeUrl: string; - encode(message: DataAttestor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor; - fromJSON(object: any): DataAttestor; - toJSON(message: DataAttestor): unknown; - fromPartial(object: Partial): DataAttestor; - fromAmino(object: DataAttestorAmino): DataAttestor; - toAmino(message: DataAttestor): DataAttestorAmino; - fromAminoMsg(object: DataAttestorAminoMsg): DataAttestor; - fromProtoMsg(message: DataAttestorProtoMsg): DataAttestor; - toProto(message: DataAttestor): Uint8Array; - toProtoMsg(message: DataAttestor): DataAttestorProtoMsg; -}; -export declare const Resolver: { - typeUrl: string; - encode(message: Resolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Resolver; - fromJSON(object: any): Resolver; - toJSON(message: Resolver): unknown; - fromPartial(object: Partial): Resolver; - fromAmino(object: ResolverAmino): Resolver; - toAmino(message: Resolver): ResolverAmino; - fromAminoMsg(object: ResolverAminoMsg): Resolver; - fromProtoMsg(message: ResolverProtoMsg): Resolver; - toProto(message: Resolver): Uint8Array; - toProtoMsg(message: Resolver): ResolverProtoMsg; -}; -export declare const DataResolver: { - typeUrl: string; - encode(message: DataResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataResolver; - fromJSON(object: any): DataResolver; - toJSON(message: DataResolver): unknown; - fromPartial(object: Partial): DataResolver; - fromAmino(object: DataResolverAmino): DataResolver; - toAmino(message: DataResolver): DataResolverAmino; - fromAminoMsg(object: DataResolverAminoMsg): DataResolver; - fromProtoMsg(message: DataResolverProtoMsg): DataResolver; - toProto(message: DataResolver): Uint8Array; - toProtoMsg(message: DataResolver): DataResolverProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/data/v1/tx.amino.d.ts b/packages/api/types/codegen/regen/data/v1/tx.amino.d.ts deleted file mode 100644 index bc6cf1aa..00000000 --- a/packages/api/types/codegen/regen/data/v1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export declare const AminoConverter: { - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: MsgAnchor) => import("./tx").MsgAnchorAmino; - fromAmino: (object: import("./tx").MsgAnchorAmino) => MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: MsgAttest) => import("./tx").MsgAttestAmino; - fromAmino: (object: import("./tx").MsgAttestAmino) => MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: MsgDefineResolver) => import("./tx").MsgDefineResolverAmino; - fromAmino: (object: import("./tx").MsgDefineResolverAmino) => MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: MsgRegisterResolver) => import("./tx").MsgRegisterResolverAmino; - fromAmino: (object: import("./tx").MsgRegisterResolverAmino) => MsgRegisterResolver; - }; -}; diff --git a/packages/api/types/codegen/regen/data/v1/tx.registry.d.ts b/packages/api/types/codegen/regen/data/v1/tx.registry.d.ts deleted file mode 100644 index 5b682d63..00000000 --- a/packages/api/types/codegen/regen/data/v1/tx.registry.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: Uint8Array; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: Uint8Array; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: Uint8Array; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: MsgAnchor; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: MsgAttest; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: MsgDefineResolver; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: MsgRegisterResolver; - }; - }; - toJSON: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: unknown; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: unknown; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: unknown; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - anchor(value: any): { - typeUrl: string; - value: MsgAnchor; - }; - attest(value: any): { - typeUrl: string; - value: MsgAttest; - }; - defineResolver(value: any): { - typeUrl: string; - value: MsgDefineResolver; - }; - registerResolver(value: any): { - typeUrl: string; - value: MsgRegisterResolver; - }; - }; - fromPartial: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: MsgAnchor; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: MsgAttest; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: MsgDefineResolver; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: MsgRegisterResolver; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/data/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/data/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 774839ef..00000000 --- a/packages/api/types/codegen/regen/data/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; -/** Msg is the regen.data.v1 Msg service */ -export interface Msg { - /** - * Anchor "anchors" a piece of data to the blockchain based on its secure - * hash, effectively providing a tamper resistant timestamp. - * - * The sender in Anchor is not attesting to the veracity of the underlying - * data. They can simply be an intermediary providing timestamp services. - * Attest should be used to create a digital signature attesting to the - * veracity of some piece of data. - */ - anchor(request: MsgAnchor): Promise; - /** - * Attest allows for digital signing of an arbitrary piece of data on the - * blockchain. By attesting to data, the attestor is making a statement about - * the veracity of the data itself. It is like signing a legal document, - * meaning that I agree to all conditions and to the best of my knowledge - * everything is true. When anchoring data, the sender is not attesting to the - * veracity of the data, they are simply communicating that it exists. - * - * On-chain signatures have the following benefits: - * - on-chain identities can be managed using different cryptographic keys - * that change over time through key rotation practices - * - an on-chain identity may represent an organization and through delegation - * individual members may sign on behalf of the group - * - the blockchain transaction envelope provides built-in replay protection - * and timestamping - * - * Attest implicitly calls Anchor if the data was not already anchored. - * - * Attest can be called multiple times for the same content hash with - * different attestors and those attestors will be appended to the list of - * attestors. If the same attestor attempts to attest to the same piece of - * data, the attestor will be ignored and a new attestation with a new - * timestamp will not be added. - */ - attest(request: MsgAttest): Promise; - /** - * DefineResolver defines a resolver URL and assigns it a new integer ID - * that can be used in calls to RegisterResolver. - */ - defineResolver(request: MsgDefineResolver): Promise; - /** RegisterResolver registers data content hashes */ - registerResolver(request: MsgRegisterResolver): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - anchor(request: MsgAnchor): Promise; - attest(request: MsgAttest): Promise; - defineResolver(request: MsgDefineResolver): Promise; - registerResolver(request: MsgRegisterResolver): Promise; -} diff --git a/packages/api/types/codegen/regen/data/v1/types.d.ts b/packages/api/types/codegen/regen/data/v1/types.d.ts deleted file mode 100644 index fc0e4cdf..00000000 --- a/packages/api/types/codegen/regen/data/v1/types.d.ts +++ /dev/null @@ -1,295 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** DigestAlgorithm is the hash digest algorithm */ -export declare enum DigestAlgorithm { - /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - DIGEST_ALGORITHM_UNSPECIFIED = 0, - /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ - DIGEST_ALGORITHM_BLAKE2B_256 = 1, - UNRECOGNIZED = -1 -} -export declare const DigestAlgorithmSDKType: typeof DigestAlgorithm; -export declare const DigestAlgorithmAmino: typeof DigestAlgorithm; -export declare function digestAlgorithmFromJSON(object: any): DigestAlgorithm; -export declare function digestAlgorithmToJSON(object: DigestAlgorithm): string; -/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ -export declare enum RawMediaType { - /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ - RAW_MEDIA_TYPE_UNSPECIFIED = 0, - /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ - RAW_MEDIA_TYPE_TEXT_PLAIN = 1, - /** RAW_MEDIA_TYPE_JSON - JSON */ - RAW_MEDIA_TYPE_JSON = 2, - /** RAW_MEDIA_TYPE_CSV - CSV */ - RAW_MEDIA_TYPE_CSV = 3, - /** RAW_MEDIA_TYPE_XML - XML */ - RAW_MEDIA_TYPE_XML = 4, - /** RAW_MEDIA_TYPE_PDF - PDF */ - RAW_MEDIA_TYPE_PDF = 5, - /** RAW_MEDIA_TYPE_TIFF - TIIF */ - RAW_MEDIA_TYPE_TIFF = 16, - /** RAW_MEDIA_TYPE_JPG - JPG */ - RAW_MEDIA_TYPE_JPG = 17, - /** RAW_MEDIA_TYPE_PNG - PNG */ - RAW_MEDIA_TYPE_PNG = 18, - /** RAW_MEDIA_TYPE_SVG - SVG */ - RAW_MEDIA_TYPE_SVG = 19, - /** RAW_MEDIA_TYPE_WEBP - WEBP */ - RAW_MEDIA_TYPE_WEBP = 20, - /** RAW_MEDIA_TYPE_AVIF - AVIF */ - RAW_MEDIA_TYPE_AVIF = 21, - /** RAW_MEDIA_TYPE_GIF - GIF */ - RAW_MEDIA_TYPE_GIF = 22, - /** RAW_MEDIA_TYPE_APNG - APNG */ - RAW_MEDIA_TYPE_APNG = 23, - /** RAW_MEDIA_TYPE_MPEG - MPEG */ - RAW_MEDIA_TYPE_MPEG = 32, - /** RAW_MEDIA_TYPE_MP4 - MP4 */ - RAW_MEDIA_TYPE_MP4 = 33, - /** RAW_MEDIA_TYPE_WEBM - WEBM */ - RAW_MEDIA_TYPE_WEBM = 34, - /** RAW_MEDIA_TYPE_OGG - OGG */ - RAW_MEDIA_TYPE_OGG = 35, - UNRECOGNIZED = -1 -} -export declare const RawMediaTypeSDKType: typeof RawMediaType; -export declare const RawMediaTypeAmino: typeof RawMediaType; -export declare function rawMediaTypeFromJSON(object: any): RawMediaType; -export declare function rawMediaTypeToJSON(object: RawMediaType): string; -/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ -export declare enum GraphCanonicalizationAlgorithm { - /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0, - /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ - GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1, - UNRECOGNIZED = -1 -} -export declare const GraphCanonicalizationAlgorithmSDKType: typeof GraphCanonicalizationAlgorithm; -export declare const GraphCanonicalizationAlgorithmAmino: typeof GraphCanonicalizationAlgorithm; -export declare function graphCanonicalizationAlgorithmFromJSON(object: any): GraphCanonicalizationAlgorithm; -export declare function graphCanonicalizationAlgorithmToJSON(object: GraphCanonicalizationAlgorithm): string; -/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ -export declare enum GraphMerkleTree { - /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ - GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0, - UNRECOGNIZED = -1 -} -export declare const GraphMerkleTreeSDKType: typeof GraphMerkleTree; -export declare const GraphMerkleTreeAmino: typeof GraphMerkleTree; -export declare function graphMerkleTreeFromJSON(object: any): GraphMerkleTree; -export declare function graphMerkleTreeToJSON(object: GraphMerkleTree): string; -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHash { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_Raw; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_Graph; -} -export interface ContentHashProtoMsg { - typeUrl: "/regen.data.v1.ContentHash"; - value: Uint8Array; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashAmino { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_RawAmino; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_GraphAmino; -} -export interface ContentHashAminoMsg { - type: "/regen.data.v1.ContentHash"; - value: ContentHashAmino; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashSDKType { - raw?: ContentHash_RawSDKType; - graph?: ContentHash_GraphSDKType; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_Raw { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - mediaType: RawMediaType; -} -export interface ContentHash_RawProtoMsg { - typeUrl: "/regen.data.v1.Raw"; - value: Uint8Array; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - media_type?: RawMediaType; -} -export interface ContentHash_RawAminoMsg { - type: "/regen.data.v1.Raw"; - value: ContentHash_RawAmino; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - media_type: RawMediaType; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_Graph { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalizationAlgorithm: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkleTree: GraphMerkleTree; -} -export interface ContentHash_GraphProtoMsg { - typeUrl: "/regen.data.v1.Graph"; - value: Uint8Array; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalization_algorithm?: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkle_tree?: GraphMerkleTree; -} -export interface ContentHash_GraphAminoMsg { - type: "/regen.data.v1.Graph"; - value: ContentHash_GraphAmino; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - canonicalization_algorithm: GraphCanonicalizationAlgorithm; - merkle_tree: GraphMerkleTree; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashes { - /** data is a list of content hashes which the resolver claims to serve. */ - contentHashes: ContentHash[]; -} -export interface ContentHashesProtoMsg { - typeUrl: "/regen.data.v1.ContentHashes"; - value: Uint8Array; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesAmino { - /** data is a list of content hashes which the resolver claims to serve. */ - content_hashes?: ContentHashAmino[]; -} -export interface ContentHashesAminoMsg { - type: "/regen.data.v1.ContentHashes"; - value: ContentHashesAmino; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesSDKType { - content_hashes: ContentHashSDKType[]; -} -export declare const ContentHash: { - typeUrl: string; - encode(message: ContentHash, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash; - fromJSON(object: any): ContentHash; - toJSON(message: ContentHash): unknown; - fromPartial(object: Partial): ContentHash; - fromAmino(object: ContentHashAmino): ContentHash; - toAmino(message: ContentHash): ContentHashAmino; - fromAminoMsg(object: ContentHashAminoMsg): ContentHash; - fromProtoMsg(message: ContentHashProtoMsg): ContentHash; - toProto(message: ContentHash): Uint8Array; - toProtoMsg(message: ContentHash): ContentHashProtoMsg; -}; -export declare const ContentHash_Raw: { - typeUrl: string; - encode(message: ContentHash_Raw, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw; - fromJSON(object: any): ContentHash_Raw; - toJSON(message: ContentHash_Raw): unknown; - fromPartial(object: Partial): ContentHash_Raw; - fromAmino(object: ContentHash_RawAmino): ContentHash_Raw; - toAmino(message: ContentHash_Raw): ContentHash_RawAmino; - fromAminoMsg(object: ContentHash_RawAminoMsg): ContentHash_Raw; - fromProtoMsg(message: ContentHash_RawProtoMsg): ContentHash_Raw; - toProto(message: ContentHash_Raw): Uint8Array; - toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg; -}; -export declare const ContentHash_Graph: { - typeUrl: string; - encode(message: ContentHash_Graph, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph; - fromJSON(object: any): ContentHash_Graph; - toJSON(message: ContentHash_Graph): unknown; - fromPartial(object: Partial): ContentHash_Graph; - fromAmino(object: ContentHash_GraphAmino): ContentHash_Graph; - toAmino(message: ContentHash_Graph): ContentHash_GraphAmino; - fromAminoMsg(object: ContentHash_GraphAminoMsg): ContentHash_Graph; - fromProtoMsg(message: ContentHash_GraphProtoMsg): ContentHash_Graph; - toProto(message: ContentHash_Graph): Uint8Array; - toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg; -}; -export declare const ContentHashes: { - typeUrl: string; - encode(message: ContentHashes, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes; - fromJSON(object: any): ContentHashes; - toJSON(message: ContentHashes): unknown; - fromPartial(object: Partial): ContentHashes; - fromAmino(object: ContentHashesAmino): ContentHashes; - toAmino(message: ContentHashes): ContentHashesAmino; - fromAminoMsg(object: ContentHashesAminoMsg): ContentHashes; - fromProtoMsg(message: ContentHashesProtoMsg): ContentHashes; - toProto(message: ContentHashes): Uint8Array; - toProtoMsg(message: ContentHashes): ContentHashesProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts deleted file mode 100644 index 47ef2ea5..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/events.d.ts +++ /dev/null @@ -1,329 +0,0 @@ -import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreate { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator: string; -} -export interface EventCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate"; - value: Uint8Array; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator?: string; -} -export interface EventCreateAminoMsg { - type: "/regen.ecocredit.basket.v1.EventCreate"; - value: EventCreateAmino; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateSDKType { - basket_denom: string; - /** @deprecated */ - curator: string; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPut { - /** owner is the owner of the credits put into the basket. */ - owner: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basketDenom: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventPut"; - value: Uint8Array; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutAmino { - /** owner is the owner of the credits put into the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basket_denom?: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventPutAminoMsg { - type: "/regen.ecocredit.basket.v1.EventPut"; - value: EventPutAmino; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTake { - /** owner is the owner of the credits taken from the basket. */ - owner: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basketDenom: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventTake"; - value: Uint8Array; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeAmino { - /** owner is the owner of the credits taken from the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basket_denom?: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventTakeAminoMsg { - type: "/regen.ecocredit.basket.v1.EventTake"; - value: EventTakeAmino; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCurator { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: Uint8Array; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateCuratorAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: EventUpdateCuratorAmino; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorSDKType { - denom: string; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteria { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: Uint8Array; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateDateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: EventUpdateDateCriteriaAmino; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaSDKType { - denom: string; -} -export declare const EventCreate: { - typeUrl: string; - encode(message: EventCreate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreate; - fromJSON(object: any): EventCreate; - toJSON(message: EventCreate): unknown; - fromPartial(object: Partial): EventCreate; - fromAmino(object: EventCreateAmino): EventCreate; - toAmino(message: EventCreate): EventCreateAmino; - fromAminoMsg(object: EventCreateAminoMsg): EventCreate; - fromProtoMsg(message: EventCreateProtoMsg): EventCreate; - toProto(message: EventCreate): Uint8Array; - toProtoMsg(message: EventCreate): EventCreateProtoMsg; -}; -export declare const EventPut: { - typeUrl: string; - encode(message: EventPut, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventPut; - fromJSON(object: any): EventPut; - toJSON(message: EventPut): unknown; - fromPartial(object: Partial): EventPut; - fromAmino(object: EventPutAmino): EventPut; - toAmino(message: EventPut): EventPutAmino; - fromAminoMsg(object: EventPutAminoMsg): EventPut; - fromProtoMsg(message: EventPutProtoMsg): EventPut; - toProto(message: EventPut): Uint8Array; - toProtoMsg(message: EventPut): EventPutProtoMsg; -}; -export declare const EventTake: { - typeUrl: string; - encode(message: EventTake, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventTake; - fromJSON(object: any): EventTake; - toJSON(message: EventTake): unknown; - fromPartial(object: Partial): EventTake; - fromAmino(object: EventTakeAmino): EventTake; - toAmino(message: EventTake): EventTakeAmino; - fromAminoMsg(object: EventTakeAminoMsg): EventTake; - fromProtoMsg(message: EventTakeProtoMsg): EventTake; - toProto(message: EventTake): Uint8Array; - toProtoMsg(message: EventTake): EventTakeProtoMsg; -}; -export declare const EventUpdateCurator: { - typeUrl: string; - encode(message: EventUpdateCurator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator; - fromJSON(object: any): EventUpdateCurator; - toJSON(message: EventUpdateCurator): unknown; - fromPartial(object: Partial): EventUpdateCurator; - fromAmino(object: EventUpdateCuratorAmino): EventUpdateCurator; - toAmino(message: EventUpdateCurator): EventUpdateCuratorAmino; - fromAminoMsg(object: EventUpdateCuratorAminoMsg): EventUpdateCurator; - fromProtoMsg(message: EventUpdateCuratorProtoMsg): EventUpdateCurator; - toProto(message: EventUpdateCurator): Uint8Array; - toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg; -}; -export declare const EventUpdateDateCriteria: { - typeUrl: string; - encode(message: EventUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria; - fromJSON(object: any): EventUpdateDateCriteria; - toJSON(message: EventUpdateDateCriteria): unknown; - fromPartial(object: Partial): EventUpdateDateCriteria; - fromAmino(object: EventUpdateDateCriteriaAmino): EventUpdateDateCriteria; - toAmino(message: EventUpdateDateCriteria): EventUpdateDateCriteriaAmino; - fromAminoMsg(object: EventUpdateDateCriteriaAminoMsg): EventUpdateDateCriteria; - fromProtoMsg(message: EventUpdateDateCriteriaProtoMsg): EventUpdateDateCriteria; - toProto(message: EventUpdateDateCriteria): Uint8Array; - toProtoMsg(message: EventUpdateDateCriteria): EventUpdateDateCriteriaProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts deleted file mode 100644 index a69aacf7..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.d.ts +++ /dev/null @@ -1,632 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequest { - /** basket_denom represents the denom of the basket to query. */ - basketDenom: string; -} -export interface QueryBasketRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: Uint8Array; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestAmino { - /** basket_denom represents the denom of the basket to query. */ - basket_denom?: string; -} -export interface QueryBasketRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: QueryBasketRequestAmino; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestSDKType { - basket_denom: string; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponse { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: Basket; - /** classes are the credit classes that can be deposited in the basket. */ - classes: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basketInfo?: BasketInfo; -} -export interface QueryBasketResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: Uint8Array; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseAmino { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: BasketAmino; - /** classes are the credit classes that can be deposited in the basket. */ - classes?: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basket_info?: BasketInfoAmino; -} -export interface QueryBasketResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: QueryBasketResponseAmino; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseSDKType { - /** @deprecated */ - basket?: BasketSDKType; - classes: string[]; - basket_info?: BasketInfoSDKType; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketsRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: Uint8Array; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketsRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: QueryBasketsRequestAmino; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponse { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets: Basket[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - basketsInfo: BasketInfo[]; -} -export interface QueryBasketsResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: Uint8Array; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseAmino { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets?: BasketAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - baskets_info?: BasketInfoAmino[]; -} -export interface QueryBasketsResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: QueryBasketsResponseAmino; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseSDKType { - /** @deprecated */ - baskets: BasketSDKType[]; - pagination?: PageResponseSDKType; - baskets_info: BasketInfoSDKType[]; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: Uint8Array; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketBalancesRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: QueryBasketBalancesRequestAmino; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestSDKType { - basket_denom: string; - pagination?: PageRequestSDKType; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponse { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances: BasketBalance[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balancesInfo: BasketBalanceInfo[]; -} -export interface QueryBasketBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: Uint8Array; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseAmino { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances?: BasketBalanceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balances_info?: BasketBalanceInfoAmino[]; -} -export interface QueryBasketBalancesResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: QueryBasketBalancesResponseAmino; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseSDKType { - /** @deprecated */ - balances: BasketBalanceSDKType[]; - pagination?: PageResponseSDKType; - balances_info: BasketBalanceInfoSDKType[]; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; -} -export interface QueryBasketBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: Uint8Array; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; -} -export interface QueryBasketBalanceRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: QueryBasketBalanceRequestAmino; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestSDKType { - basket_denom: string; - batch_denom: string; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponse { - /** balance is the amount of the queried credit batch in the basket. */ - balance: string; -} -export interface QueryBasketBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: Uint8Array; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseAmino { - /** balance is the amount of the queried credit batch in the basket. */ - balance?: string; -} -export interface QueryBasketBalanceResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: QueryBasketBalanceResponseAmino; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseSDKType { - balance: string; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfo { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; -} -export interface BasketInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo"; - value: Uint8Array; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; -} -export interface BasketInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketInfo"; - value: BasketInfoAmino; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoSDKType { - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - exponent: number; - curator: string; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfo { - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; -} -export interface BasketBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: Uint8Array; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoAmino { - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; -} -export interface BasketBalanceInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: BasketBalanceInfoAmino; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoSDKType { - batch_denom: string; - balance: string; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequest { -} -export interface QueryBasketFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: Uint8Array; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestAmino { -} -export interface QueryBasketFeeRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: QueryBasketFeeRequestAmino; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestSDKType { -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponse { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface QueryBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: Uint8Array; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface QueryBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: QueryBasketFeeResponseAmino; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseSDKType { - fee?: CoinSDKType; -} -export declare const QueryBasketRequest: { - typeUrl: string; - encode(message: QueryBasketRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest; - fromJSON(object: any): QueryBasketRequest; - toJSON(message: QueryBasketRequest): unknown; - fromPartial(object: Partial): QueryBasketRequest; - fromAmino(object: QueryBasketRequestAmino): QueryBasketRequest; - toAmino(message: QueryBasketRequest): QueryBasketRequestAmino; - fromAminoMsg(object: QueryBasketRequestAminoMsg): QueryBasketRequest; - fromProtoMsg(message: QueryBasketRequestProtoMsg): QueryBasketRequest; - toProto(message: QueryBasketRequest): Uint8Array; - toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg; -}; -export declare const QueryBasketResponse: { - typeUrl: string; - encode(message: QueryBasketResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse; - fromJSON(object: any): QueryBasketResponse; - toJSON(message: QueryBasketResponse): unknown; - fromPartial(object: Partial): QueryBasketResponse; - fromAmino(object: QueryBasketResponseAmino): QueryBasketResponse; - toAmino(message: QueryBasketResponse): QueryBasketResponseAmino; - fromAminoMsg(object: QueryBasketResponseAminoMsg): QueryBasketResponse; - fromProtoMsg(message: QueryBasketResponseProtoMsg): QueryBasketResponse; - toProto(message: QueryBasketResponse): Uint8Array; - toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg; -}; -export declare const QueryBasketsRequest: { - typeUrl: string; - encode(message: QueryBasketsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest; - fromJSON(object: any): QueryBasketsRequest; - toJSON(message: QueryBasketsRequest): unknown; - fromPartial(object: Partial): QueryBasketsRequest; - fromAmino(object: QueryBasketsRequestAmino): QueryBasketsRequest; - toAmino(message: QueryBasketsRequest): QueryBasketsRequestAmino; - fromAminoMsg(object: QueryBasketsRequestAminoMsg): QueryBasketsRequest; - fromProtoMsg(message: QueryBasketsRequestProtoMsg): QueryBasketsRequest; - toProto(message: QueryBasketsRequest): Uint8Array; - toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg; -}; -export declare const QueryBasketsResponse: { - typeUrl: string; - encode(message: QueryBasketsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse; - fromJSON(object: any): QueryBasketsResponse; - toJSON(message: QueryBasketsResponse): unknown; - fromPartial(object: Partial): QueryBasketsResponse; - fromAmino(object: QueryBasketsResponseAmino): QueryBasketsResponse; - toAmino(message: QueryBasketsResponse): QueryBasketsResponseAmino; - fromAminoMsg(object: QueryBasketsResponseAminoMsg): QueryBasketsResponse; - fromProtoMsg(message: QueryBasketsResponseProtoMsg): QueryBasketsResponse; - toProto(message: QueryBasketsResponse): Uint8Array; - toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg; -}; -export declare const QueryBasketBalancesRequest: { - typeUrl: string; - encode(message: QueryBasketBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest; - fromJSON(object: any): QueryBasketBalancesRequest; - toJSON(message: QueryBasketBalancesRequest): unknown; - fromPartial(object: Partial): QueryBasketBalancesRequest; - fromAmino(object: QueryBasketBalancesRequestAmino): QueryBasketBalancesRequest; - toAmino(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestAmino; - fromAminoMsg(object: QueryBasketBalancesRequestAminoMsg): QueryBasketBalancesRequest; - fromProtoMsg(message: QueryBasketBalancesRequestProtoMsg): QueryBasketBalancesRequest; - toProto(message: QueryBasketBalancesRequest): Uint8Array; - toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg; -}; -export declare const QueryBasketBalancesResponse: { - typeUrl: string; - encode(message: QueryBasketBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse; - fromJSON(object: any): QueryBasketBalancesResponse; - toJSON(message: QueryBasketBalancesResponse): unknown; - fromPartial(object: Partial): QueryBasketBalancesResponse; - fromAmino(object: QueryBasketBalancesResponseAmino): QueryBasketBalancesResponse; - toAmino(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseAmino; - fromAminoMsg(object: QueryBasketBalancesResponseAminoMsg): QueryBasketBalancesResponse; - fromProtoMsg(message: QueryBasketBalancesResponseProtoMsg): QueryBasketBalancesResponse; - toProto(message: QueryBasketBalancesResponse): Uint8Array; - toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg; -}; -export declare const QueryBasketBalanceRequest: { - typeUrl: string; - encode(message: QueryBasketBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest; - fromJSON(object: any): QueryBasketBalanceRequest; - toJSON(message: QueryBasketBalanceRequest): unknown; - fromPartial(object: Partial): QueryBasketBalanceRequest; - fromAmino(object: QueryBasketBalanceRequestAmino): QueryBasketBalanceRequest; - toAmino(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestAmino; - fromAminoMsg(object: QueryBasketBalanceRequestAminoMsg): QueryBasketBalanceRequest; - fromProtoMsg(message: QueryBasketBalanceRequestProtoMsg): QueryBasketBalanceRequest; - toProto(message: QueryBasketBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg; -}; -export declare const QueryBasketBalanceResponse: { - typeUrl: string; - encode(message: QueryBasketBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse; - fromJSON(object: any): QueryBasketBalanceResponse; - toJSON(message: QueryBasketBalanceResponse): unknown; - fromPartial(object: Partial): QueryBasketBalanceResponse; - fromAmino(object: QueryBasketBalanceResponseAmino): QueryBasketBalanceResponse; - toAmino(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseAmino; - fromAminoMsg(object: QueryBasketBalanceResponseAminoMsg): QueryBasketBalanceResponse; - fromProtoMsg(message: QueryBasketBalanceResponseProtoMsg): QueryBasketBalanceResponse; - toProto(message: QueryBasketBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg; -}; -export declare const BasketInfo: { - typeUrl: string; - encode(message: BasketInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo; - fromJSON(object: any): BasketInfo; - toJSON(message: BasketInfo): unknown; - fromPartial(object: Partial): BasketInfo; - fromAmino(object: BasketInfoAmino): BasketInfo; - toAmino(message: BasketInfo): BasketInfoAmino; - fromAminoMsg(object: BasketInfoAminoMsg): BasketInfo; - fromProtoMsg(message: BasketInfoProtoMsg): BasketInfo; - toProto(message: BasketInfo): Uint8Array; - toProtoMsg(message: BasketInfo): BasketInfoProtoMsg; -}; -export declare const BasketBalanceInfo: { - typeUrl: string; - encode(message: BasketBalanceInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo; - fromJSON(object: any): BasketBalanceInfo; - toJSON(message: BasketBalanceInfo): unknown; - fromPartial(object: Partial): BasketBalanceInfo; - fromAmino(object: BasketBalanceInfoAmino): BasketBalanceInfo; - toAmino(message: BasketBalanceInfo): BasketBalanceInfoAmino; - fromAminoMsg(object: BasketBalanceInfoAminoMsg): BasketBalanceInfo; - fromProtoMsg(message: BasketBalanceInfoProtoMsg): BasketBalanceInfo; - toProto(message: BasketBalanceInfo): Uint8Array; - toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg; -}; -export declare const QueryBasketFeeRequest: { - typeUrl: string; - encode(_: QueryBasketFeeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest; - fromJSON(_: any): QueryBasketFeeRequest; - toJSON(_: QueryBasketFeeRequest): unknown; - fromPartial(_: Partial): QueryBasketFeeRequest; - fromAmino(_: QueryBasketFeeRequestAmino): QueryBasketFeeRequest; - toAmino(_: QueryBasketFeeRequest): QueryBasketFeeRequestAmino; - fromAminoMsg(object: QueryBasketFeeRequestAminoMsg): QueryBasketFeeRequest; - fromProtoMsg(message: QueryBasketFeeRequestProtoMsg): QueryBasketFeeRequest; - toProto(message: QueryBasketFeeRequest): Uint8Array; - toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg; -}; -export declare const QueryBasketFeeResponse: { - typeUrl: string; - encode(message: QueryBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse; - fromJSON(object: any): QueryBasketFeeResponse; - toJSON(message: QueryBasketFeeResponse): unknown; - fromPartial(object: Partial): QueryBasketFeeResponse; - fromAmino(object: QueryBasketFeeResponseAmino): QueryBasketFeeResponse; - toAmino(message: QueryBasketFeeResponse): QueryBasketFeeResponseAmino; - fromAminoMsg(object: QueryBasketFeeResponseAminoMsg): QueryBasketFeeResponse; - fromProtoMsg(message: QueryBasketFeeResponseProtoMsg): QueryBasketFeeResponse; - toProto(message: QueryBasketFeeResponse): Uint8Array; - toProtoMsg(message: QueryBasketFeeResponse): QueryBasketFeeResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts deleted file mode 100644 index 15ab387e..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - basket(params: QueryBasketRequest): Promise; - baskets(params?: QueryBasketsRequest): Promise; - basketBalances(params: QueryBasketBalancesRequest): Promise; - basketBalance(params: QueryBasketBalanceRequest): Promise; - basketFee(_params?: QueryBasketFeeRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/query.rpc.Query.d.ts deleted file mode 100644 index 9087afa0..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; -/** Msg is the regen.ecocredit.basket.v1 Query service. */ -export interface Query { - /** Basket queries one basket by denom. */ - basket(request: QueryBasketRequest): Promise; - /** Baskets lists all baskets in the ecocredit module. */ - baskets(request?: QueryBasketsRequest): Promise; - /** BasketBalances lists the balance of each credit batch in the basket. */ - basketBalances(request: QueryBasketBalancesRequest): Promise; - /** BasketBalance queries the balance of a specific credit batch in the basket. */ - basketBalance(request: QueryBasketBalanceRequest): Promise; - /** - * BasketFee returns the basket creation fee. If not set, a basket creation - * fee is not required. - * - * Since Revision 2 - */ - basketFee(request?: QueryBasketFeeRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - basket(request: QueryBasketRequest): Promise; - baskets(request?: QueryBasketsRequest): Promise; - basketBalances(request: QueryBasketBalancesRequest): Promise; - basketBalance(request: QueryBasketBalanceRequest): Promise; - basketFee(request?: QueryBasketFeeRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - basket(request: QueryBasketRequest): Promise; - baskets(request?: QueryBasketsRequest): Promise; - basketBalances(request: QueryBasketBalancesRequest): Promise; - basketBalance(request: QueryBasketBalanceRequest): Promise; - basketFee(request?: QueryBasketFeeRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts deleted file mode 100644 index 877060a3..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/state.d.ts +++ /dev/null @@ -1,317 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Basket represents a basket in state. */ -export interface Basket { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id: bigint; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator: Uint8Array; -} -export interface BasketProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.Basket"; - value: Uint8Array; -} -/** Basket represents a basket in state. */ -export interface BasketAmino { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id?: string; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator?: string; -} -export interface BasketAminoMsg { - type: "/regen.ecocredit.basket.v1.Basket"; - value: BasketAmino; -} -/** Basket represents a basket in state. */ -export interface BasketSDKType { - id: bigint; - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - /** @deprecated */ - exponent: number; - curator: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClass { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - classId: string; -} -export interface BasketClassProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass"; - value: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - class_id?: string; -} -export interface BasketClassAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketClass"; - value: BasketClassAmino; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassSDKType { - basket_id: bigint; - class_id: string; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalance { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batchStartDate?: Timestamp; -} -export interface BasketBalanceProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; - value: Uint8Array; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batch_start_date?: string; -} -export interface BasketBalanceAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalance"; - value: BasketBalanceAmino; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceSDKType { - basket_id: bigint; - batch_denom: string; - balance: string; - batch_start_date?: TimestampSDKType; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFee { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface BasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; - value: Uint8Array; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface BasketFeeAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketFee"; - value: BasketFeeAmino; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeSDKType { - fee?: CoinSDKType; -} -export declare const Basket: { - typeUrl: string; - encode(message: Basket, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Basket; - fromJSON(object: any): Basket; - toJSON(message: Basket): unknown; - fromPartial(object: Partial): Basket; - fromAmino(object: BasketAmino): Basket; - toAmino(message: Basket): BasketAmino; - fromAminoMsg(object: BasketAminoMsg): Basket; - fromProtoMsg(message: BasketProtoMsg): Basket; - toProto(message: Basket): Uint8Array; - toProtoMsg(message: Basket): BasketProtoMsg; -}; -export declare const BasketClass: { - typeUrl: string; - encode(message: BasketClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketClass; - fromJSON(object: any): BasketClass; - toJSON(message: BasketClass): unknown; - fromPartial(object: Partial): BasketClass; - fromAmino(object: BasketClassAmino): BasketClass; - toAmino(message: BasketClass): BasketClassAmino; - fromAminoMsg(object: BasketClassAminoMsg): BasketClass; - fromProtoMsg(message: BasketClassProtoMsg): BasketClass; - toProto(message: BasketClass): Uint8Array; - toProtoMsg(message: BasketClass): BasketClassProtoMsg; -}; -export declare const BasketBalance: { - typeUrl: string; - encode(message: BasketBalance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance; - fromJSON(object: any): BasketBalance; - toJSON(message: BasketBalance): unknown; - fromPartial(object: Partial): BasketBalance; - fromAmino(object: BasketBalanceAmino): BasketBalance; - toAmino(message: BasketBalance): BasketBalanceAmino; - fromAminoMsg(object: BasketBalanceAminoMsg): BasketBalance; - fromProtoMsg(message: BasketBalanceProtoMsg): BasketBalance; - toProto(message: BasketBalance): Uint8Array; - toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg; -}; -export declare const BasketFee: { - typeUrl: string; - encode(message: BasketFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketFee; - fromJSON(object: any): BasketFee; - toJSON(message: BasketFee): unknown; - fromPartial(object: Partial): BasketFee; - fromAmino(object: BasketFeeAmino): BasketFee; - toAmino(message: BasketFee): BasketFeeAmino; - fromAminoMsg(object: BasketFeeAminoMsg): BasketFee; - fromProtoMsg(message: BasketFeeProtoMsg): BasketFee; - toProto(message: BasketFee): Uint8Array; - toProtoMsg(message: BasketFee): BasketFeeProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.amino.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.amino.d.ts deleted file mode 100644 index b96583d1..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: MsgCreate) => import("./tx").MsgCreateAmino; - fromAmino: (object: import("./tx").MsgCreateAmino) => MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: MsgPut) => import("./tx").MsgPutAmino; - fromAmino: (object: import("./tx").MsgPutAmino) => MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: MsgTake) => import("./tx").MsgTakeAmino; - fromAmino: (object: import("./tx").MsgTakeAmino) => MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: MsgUpdateBasketFee) => import("./tx").MsgUpdateBasketFeeAmino; - fromAmino: (object: import("./tx").MsgUpdateBasketFeeAmino) => MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: MsgUpdateCurator) => import("./tx").MsgUpdateCuratorAmino; - fromAmino: (object: import("./tx").MsgUpdateCuratorAmino) => MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: MsgUpdateDateCriteria) => import("./tx").MsgUpdateDateCriteriaAmino; - fromAmino: (object: import("./tx").MsgUpdateDateCriteriaAmino) => MsgUpdateDateCriteria; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts deleted file mode 100644 index 9833b69a..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.d.ts +++ /dev/null @@ -1,765 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreate { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowedClasses: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - dateCriteria?: DateCriteria; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee: Coin[]; -} -export interface MsgCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate"; - value: Uint8Array; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateAmino { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name?: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description?: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent?: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowed_classes?: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - date_criteria?: DateCriteriaAmino; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee?: CoinAmino[]; -} -export interface MsgCreateAminoMsg { - type: "regen.basket/MsgCreate"; - value: MsgCreateAmino; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateSDKType { - curator: string; - name: string; - description: string; - /** @deprecated */ - exponent: number; - disable_auto_retire: boolean; - credit_type_abbrev: string; - allowed_classes: string[]; - date_criteria?: DateCriteriaSDKType; - fee: CoinSDKType[]; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponse { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basketDenom: string; -} -export interface MsgCreateResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: Uint8Array; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseAmino { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basket_denom?: string; -} -export interface MsgCreateResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: MsgCreateResponseAmino; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseSDKType { - basket_denom: string; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPut { - /** owner is the owner of credits being put into the basket. */ - owner: string; - /** basket_denom is the basket denom to add credits to. */ - basketDenom: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits: BasketCredit[]; -} -export interface MsgPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut"; - value: Uint8Array; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutAmino { - /** owner is the owner of credits being put into the basket. */ - owner?: string; - /** basket_denom is the basket denom to add credits to. */ - basket_denom?: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits?: BasketCreditAmino[]; -} -export interface MsgPutAminoMsg { - type: "regen.basket/MsgPut"; - value: MsgPutAmino; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutSDKType { - owner: string; - basket_denom: string; - credits: BasketCreditSDKType[]; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponse { - /** amount_received is the integer amount of basket tokens received. */ - amountReceived: string; -} -export interface MsgPutResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: Uint8Array; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseAmino { - /** amount_received is the integer amount of basket tokens received. */ - amount_received?: string; -} -export interface MsgPutResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: MsgPutResponseAmino; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseSDKType { - amount_received: string; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTake { - /** owner is the owner of the basket tokens. */ - owner: string; - /** basket_denom is the basket bank denom to take credits from. */ - basketDenom: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirementLocation: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retireOnTake: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake"; - value: Uint8Array; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeAmino { - /** owner is the owner of the basket tokens. */ - owner?: string; - /** basket_denom is the basket bank denom to take credits from. */ - basket_denom?: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount?: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirement_location?: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retire_on_take?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgTakeAminoMsg { - type: "regen.basket/MsgTake"; - value: MsgTakeAmino; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeSDKType { - owner: string; - basket_denom: string; - amount: string; - /** @deprecated */ - retirement_location: string; - retire_on_take: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponse { - /** credits are the credits taken out of the basket. */ - credits: BasketCredit[]; -} -export interface MsgTakeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: Uint8Array; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseAmino { - /** credits are the credits taken out of the basket. */ - credits?: BasketCreditAmino[]; -} -export interface MsgTakeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: MsgTakeResponseAmino; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseSDKType { - credits: BasketCreditSDKType[]; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: Coin; -} -export interface MsgUpdateBasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: CoinAmino; -} -export interface MsgUpdateBasketFeeAminoMsg { - type: "regen.basket/MsgUpdateBasketFee"; - value: MsgUpdateBasketFeeAmino; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponse { -} -export interface MsgUpdateBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseAmino { -} -export interface MsgUpdateBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: MsgUpdateBasketFeeResponseAmino; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseSDKType { -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCurator { - /** curator is the address of the basket curator. */ - curator: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - newCurator: string; -} -export interface MsgUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator"; - value: Uint8Array; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorAmino { - /** curator is the address of the basket curator. */ - curator?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - new_curator?: string; -} -export interface MsgUpdateCuratorAminoMsg { - type: "regen.basket/MsgUpdateCurator"; - value: MsgUpdateCuratorAmino; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorSDKType { - curator: string; - denom: string; - new_curator: string; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponse { -} -export interface MsgUpdateCuratorResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: Uint8Array; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseAmino { -} -export interface MsgUpdateCuratorResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: MsgUpdateCuratorResponseAmino; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseSDKType { -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteria { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - newDateCriteria?: DateCriteria; -} -export interface MsgUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - new_date_criteria?: DateCriteriaAmino; -} -export interface MsgUpdateDateCriteriaAminoMsg { - type: "regen.basket/MsgUpdateDateCriteria"; - value: MsgUpdateDateCriteriaAmino; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaSDKType { - authority: string; - denom: string; - new_date_criteria?: DateCriteriaSDKType; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponse { -} -export interface MsgUpdateDateCriteriaResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseAmino { -} -export interface MsgUpdateDateCriteriaResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: MsgUpdateDateCriteriaResponseAmino; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseSDKType { -} -export declare const MsgCreate: { - typeUrl: string; - encode(message: MsgCreate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate; - fromJSON(object: any): MsgCreate; - toJSON(message: MsgCreate): unknown; - fromPartial(object: Partial): MsgCreate; - fromAmino(object: MsgCreateAmino): MsgCreate; - toAmino(message: MsgCreate): MsgCreateAmino; - fromAminoMsg(object: MsgCreateAminoMsg): MsgCreate; - toAminoMsg(message: MsgCreate): MsgCreateAminoMsg; - fromProtoMsg(message: MsgCreateProtoMsg): MsgCreate; - toProto(message: MsgCreate): Uint8Array; - toProtoMsg(message: MsgCreate): MsgCreateProtoMsg; -}; -export declare const MsgCreateResponse: { - typeUrl: string; - encode(message: MsgCreateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse; - fromJSON(object: any): MsgCreateResponse; - toJSON(message: MsgCreateResponse): unknown; - fromPartial(object: Partial): MsgCreateResponse; - fromAmino(object: MsgCreateResponseAmino): MsgCreateResponse; - toAmino(message: MsgCreateResponse): MsgCreateResponseAmino; - fromAminoMsg(object: MsgCreateResponseAminoMsg): MsgCreateResponse; - fromProtoMsg(message: MsgCreateResponseProtoMsg): MsgCreateResponse; - toProto(message: MsgCreateResponse): Uint8Array; - toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg; -}; -export declare const MsgPut: { - typeUrl: string; - encode(message: MsgPut, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgPut; - fromJSON(object: any): MsgPut; - toJSON(message: MsgPut): unknown; - fromPartial(object: Partial): MsgPut; - fromAmino(object: MsgPutAmino): MsgPut; - toAmino(message: MsgPut): MsgPutAmino; - fromAminoMsg(object: MsgPutAminoMsg): MsgPut; - toAminoMsg(message: MsgPut): MsgPutAminoMsg; - fromProtoMsg(message: MsgPutProtoMsg): MsgPut; - toProto(message: MsgPut): Uint8Array; - toProtoMsg(message: MsgPut): MsgPutProtoMsg; -}; -export declare const MsgPutResponse: { - typeUrl: string; - encode(message: MsgPutResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse; - fromJSON(object: any): MsgPutResponse; - toJSON(message: MsgPutResponse): unknown; - fromPartial(object: Partial): MsgPutResponse; - fromAmino(object: MsgPutResponseAmino): MsgPutResponse; - toAmino(message: MsgPutResponse): MsgPutResponseAmino; - fromAminoMsg(object: MsgPutResponseAminoMsg): MsgPutResponse; - fromProtoMsg(message: MsgPutResponseProtoMsg): MsgPutResponse; - toProto(message: MsgPutResponse): Uint8Array; - toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg; -}; -export declare const MsgTake: { - typeUrl: string; - encode(message: MsgTake, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTake; - fromJSON(object: any): MsgTake; - toJSON(message: MsgTake): unknown; - fromPartial(object: Partial): MsgTake; - fromAmino(object: MsgTakeAmino): MsgTake; - toAmino(message: MsgTake): MsgTakeAmino; - fromAminoMsg(object: MsgTakeAminoMsg): MsgTake; - toAminoMsg(message: MsgTake): MsgTakeAminoMsg; - fromProtoMsg(message: MsgTakeProtoMsg): MsgTake; - toProto(message: MsgTake): Uint8Array; - toProtoMsg(message: MsgTake): MsgTakeProtoMsg; -}; -export declare const MsgTakeResponse: { - typeUrl: string; - encode(message: MsgTakeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse; - fromJSON(object: any): MsgTakeResponse; - toJSON(message: MsgTakeResponse): unknown; - fromPartial(object: Partial): MsgTakeResponse; - fromAmino(object: MsgTakeResponseAmino): MsgTakeResponse; - toAmino(message: MsgTakeResponse): MsgTakeResponseAmino; - fromAminoMsg(object: MsgTakeResponseAminoMsg): MsgTakeResponse; - fromProtoMsg(message: MsgTakeResponseProtoMsg): MsgTakeResponse; - toProto(message: MsgTakeResponse): Uint8Array; - toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg; -}; -export declare const MsgUpdateBasketFee: { - typeUrl: string; - encode(message: MsgUpdateBasketFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee; - fromJSON(object: any): MsgUpdateBasketFee; - toJSON(message: MsgUpdateBasketFee): unknown; - fromPartial(object: Partial): MsgUpdateBasketFee; - fromAmino(object: MsgUpdateBasketFeeAmino): MsgUpdateBasketFee; - toAmino(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAmino; - fromAminoMsg(object: MsgUpdateBasketFeeAminoMsg): MsgUpdateBasketFee; - toAminoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAminoMsg; - fromProtoMsg(message: MsgUpdateBasketFeeProtoMsg): MsgUpdateBasketFee; - toProto(message: MsgUpdateBasketFee): Uint8Array; - toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg; -}; -export declare const MsgUpdateBasketFeeResponse: { - typeUrl: string; - encode(_: MsgUpdateBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse; - fromJSON(_: any): MsgUpdateBasketFeeResponse; - toJSON(_: MsgUpdateBasketFeeResponse): unknown; - fromPartial(_: Partial): MsgUpdateBasketFeeResponse; - fromAmino(_: MsgUpdateBasketFeeResponseAmino): MsgUpdateBasketFeeResponse; - toAmino(_: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseAmino; - fromAminoMsg(object: MsgUpdateBasketFeeResponseAminoMsg): MsgUpdateBasketFeeResponse; - fromProtoMsg(message: MsgUpdateBasketFeeResponseProtoMsg): MsgUpdateBasketFeeResponse; - toProto(message: MsgUpdateBasketFeeResponse): Uint8Array; - toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg; -}; -export declare const MsgUpdateCurator: { - typeUrl: string; - encode(message: MsgUpdateCurator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator; - fromJSON(object: any): MsgUpdateCurator; - toJSON(message: MsgUpdateCurator): unknown; - fromPartial(object: Partial): MsgUpdateCurator; - fromAmino(object: MsgUpdateCuratorAmino): MsgUpdateCurator; - toAmino(message: MsgUpdateCurator): MsgUpdateCuratorAmino; - fromAminoMsg(object: MsgUpdateCuratorAminoMsg): MsgUpdateCurator; - toAminoMsg(message: MsgUpdateCurator): MsgUpdateCuratorAminoMsg; - fromProtoMsg(message: MsgUpdateCuratorProtoMsg): MsgUpdateCurator; - toProto(message: MsgUpdateCurator): Uint8Array; - toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg; -}; -export declare const MsgUpdateCuratorResponse: { - typeUrl: string; - encode(_: MsgUpdateCuratorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse; - fromJSON(_: any): MsgUpdateCuratorResponse; - toJSON(_: MsgUpdateCuratorResponse): unknown; - fromPartial(_: Partial): MsgUpdateCuratorResponse; - fromAmino(_: MsgUpdateCuratorResponseAmino): MsgUpdateCuratorResponse; - toAmino(_: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseAmino; - fromAminoMsg(object: MsgUpdateCuratorResponseAminoMsg): MsgUpdateCuratorResponse; - fromProtoMsg(message: MsgUpdateCuratorResponseProtoMsg): MsgUpdateCuratorResponse; - toProto(message: MsgUpdateCuratorResponse): Uint8Array; - toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg; -}; -export declare const MsgUpdateDateCriteria: { - typeUrl: string; - encode(message: MsgUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria; - fromJSON(object: any): MsgUpdateDateCriteria; - toJSON(message: MsgUpdateDateCriteria): unknown; - fromPartial(object: Partial): MsgUpdateDateCriteria; - fromAmino(object: MsgUpdateDateCriteriaAmino): MsgUpdateDateCriteria; - toAmino(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAmino; - fromAminoMsg(object: MsgUpdateDateCriteriaAminoMsg): MsgUpdateDateCriteria; - toAminoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAminoMsg; - fromProtoMsg(message: MsgUpdateDateCriteriaProtoMsg): MsgUpdateDateCriteria; - toProto(message: MsgUpdateDateCriteria): Uint8Array; - toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg; -}; -export declare const MsgUpdateDateCriteriaResponse: { - typeUrl: string; - encode(_: MsgUpdateDateCriteriaResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse; - fromJSON(_: any): MsgUpdateDateCriteriaResponse; - toJSON(_: MsgUpdateDateCriteriaResponse): unknown; - fromPartial(_: Partial): MsgUpdateDateCriteriaResponse; - fromAmino(_: MsgUpdateDateCriteriaResponseAmino): MsgUpdateDateCriteriaResponse; - toAmino(_: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseAmino; - fromAminoMsg(object: MsgUpdateDateCriteriaResponseAminoMsg): MsgUpdateDateCriteriaResponse; - fromProtoMsg(message: MsgUpdateDateCriteriaResponseProtoMsg): MsgUpdateDateCriteriaResponse; - toProto(message: MsgUpdateDateCriteriaResponse): Uint8Array; - toProtoMsg(message: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.registry.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.registry.d.ts deleted file mode 100644 index 9998a733..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.registry.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - create(value: MsgCreate): { - typeUrl: string; - value: Uint8Array; - }; - put(value: MsgPut): { - typeUrl: string; - value: Uint8Array; - }; - take(value: MsgTake): { - typeUrl: string; - value: Uint8Array; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: Uint8Array; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: Uint8Array; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - create(value: MsgCreate): { - typeUrl: string; - value: MsgCreate; - }; - put(value: MsgPut): { - typeUrl: string; - value: MsgPut; - }; - take(value: MsgTake): { - typeUrl: string; - value: MsgTake; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: MsgUpdateBasketFee; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: MsgUpdateCurator; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: MsgUpdateDateCriteria; - }; - }; - toJSON: { - create(value: MsgCreate): { - typeUrl: string; - value: unknown; - }; - put(value: MsgPut): { - typeUrl: string; - value: unknown; - }; - take(value: MsgTake): { - typeUrl: string; - value: unknown; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: unknown; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: unknown; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - create(value: any): { - typeUrl: string; - value: MsgCreate; - }; - put(value: any): { - typeUrl: string; - value: MsgPut; - }; - take(value: any): { - typeUrl: string; - value: MsgTake; - }; - updateBasketFee(value: any): { - typeUrl: string; - value: MsgUpdateBasketFee; - }; - updateCurator(value: any): { - typeUrl: string; - value: MsgUpdateCurator; - }; - updateDateCriteria(value: any): { - typeUrl: string; - value: MsgUpdateDateCriteria; - }; - }; - fromPartial: { - create(value: MsgCreate): { - typeUrl: string; - value: MsgCreate; - }; - put(value: MsgPut): { - typeUrl: string; - value: MsgPut; - }; - take(value: MsgTake): { - typeUrl: string; - value: MsgTake; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: MsgUpdateBasketFee; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: MsgUpdateCurator; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: MsgUpdateDateCriteria; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 9a754117..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; -/** Msg is the regen.ecocredit.basket.v1 Msg service. */ -export interface Msg { - /** - * Create creates a basket that can hold different types of ecocredits that - * meet the basket's criteria. Upon depositing ecocredits into the basket, - * basket tokens are minted and sent to depositor using the Cosmos SDK Bank - * module. This allows basket tokens to be utilized within IBC. Basket tokens - * are fully fungible with other basket tokens from the same basket. The - * basket token denom is derived from the basket name, credit type - * abbreviation, and credit type precision (i.e. basket name "foo", credit - * type exponent 6, and credit type abbreviation "C" generates the denom - * eco.uC.foo). Baskets can limit credit acceptance criteria based on a - * combination of credit type, credit classes, and credit batch start date. - * Credits can be taken from the basket in exchange for basket tokens. Taken - * credits will be immediately retired, unless disable_auto_retire is set to - * true. When set to true, credits may be received in either a tradable or - * retired state, depending on the taker's request. If the basket fee - * governance parameter is set, a fee of equal or greater value must be - * provided in the request. Only the amount specified in the fee parameter - * will be charged, even if a greater value fee is provided. Fees from - * creating a basket are burned. - */ - create(request: MsgCreate): Promise; - /** - * Put deposits credits into the basket from the holder's tradable balance in - * exchange for basket tokens. The amount of tokens received is calculated by - * the following formula: sum(credits_deposited) * 10^credit_type_exponent. - * The credits being deposited MUST adhere to the criteria of the basket. - */ - put(request: MsgPut): Promise; - /** - * Take exchanges basket tokens for credits from the specified basket. Credits - * are taken deterministically, ordered by oldest batch start date to the most - * recent batch start date. If the basket has disable_auto_retire set to - * false, both retirement_jurisdiction and retire_on_take must be set, and the - * taken credits will be retired immediately upon receipt. Otherwise, credits - * may be received as tradable or retired, based on the request. - */ - take(request: MsgTake): Promise; - /** - * UpdateBasketFee is a governance method that allows for updating the basket - * creation fee. If not set, the basket creation fee will be removed and no - * fee will be required to create a basket. - * - * Since Revision 2 - */ - updateBasketFee(request: MsgUpdateBasketFee): Promise; - /** - * UpdateCurator updates basket curator. - * - * Since Revision 2 - */ - updateCurator(request: MsgUpdateCurator): Promise; - /** - * UpdateDateCriteria is a governance method that allows for updating the date - * criteria of a basket. Updating basket date criteria could affect the value - * of basket tokens and therefore requires a network-wide governance process. - * - * Since Revision 3 - */ - updateDateCriteria(request: MsgUpdateDateCriteria): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - create(request: MsgCreate): Promise; - put(request: MsgPut): Promise; - take(request: MsgTake): Promise; - updateBasketFee(request: MsgUpdateBasketFee): Promise; - updateCurator(request: MsgUpdateCurator): Promise; - updateDateCriteria(request: MsgUpdateDateCriteria): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts deleted file mode 100644 index d6f7a8c2..00000000 --- a/packages/api/types/codegen/regen/ecocredit/basket/v1/types.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCredit { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount: string; -} -export interface BasketCreditProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit"; - value: Uint8Array; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount?: string; -} -export interface BasketCreditAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketCredit"; - value: BasketCreditAmino; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditSDKType { - batch_denom: string; - amount: string; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteria { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - minStartDate?: Timestamp; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - startDateWindow?: Duration; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - yearsInThePast: number; -} -export interface DateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria"; - value: Uint8Array; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaAmino { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - min_start_date?: string; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - start_date_window?: DurationAmino; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - years_in_the_past?: number; -} -export interface DateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.DateCriteria"; - value: DateCriteriaAmino; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaSDKType { - min_start_date?: TimestampSDKType; - start_date_window?: DurationSDKType; - years_in_the_past: number; -} -export declare const BasketCredit: { - typeUrl: string; - encode(message: BasketCredit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit; - fromJSON(object: any): BasketCredit; - toJSON(message: BasketCredit): unknown; - fromPartial(object: Partial): BasketCredit; - fromAmino(object: BasketCreditAmino): BasketCredit; - toAmino(message: BasketCredit): BasketCreditAmino; - fromAminoMsg(object: BasketCreditAminoMsg): BasketCredit; - fromProtoMsg(message: BasketCreditProtoMsg): BasketCredit; - toProto(message: BasketCredit): Uint8Array; - toProtoMsg(message: BasketCredit): BasketCreditProtoMsg; -}; -export declare const DateCriteria: { - typeUrl: string; - encode(message: DateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria; - fromJSON(object: any): DateCriteria; - toJSON(message: DateCriteria): unknown; - fromPartial(object: Partial): DateCriteria; - fromAmino(object: DateCriteriaAmino): DateCriteria; - toAmino(message: DateCriteria): DateCriteriaAmino; - fromAminoMsg(object: DateCriteriaAminoMsg): DateCriteria; - fromProtoMsg(message: DateCriteriaProtoMsg): DateCriteria; - toProto(message: DateCriteria): Uint8Array; - toProtoMsg(message: DateCriteria): DateCriteriaProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts deleted file mode 100644 index fbe2e6d2..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/events.d.ts +++ /dev/null @@ -1,265 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSell { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sellOrderId: bigint; -} -export interface EventSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; - value: Uint8Array; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellAmino { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sell_order_id?: string; -} -export interface EventSellAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventSell"; - value: EventSellAmino; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellSDKType { - sell_order_id: bigint; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirect { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sellOrderId: bigint; -} -export interface EventBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: Uint8Array; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectAmino { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sell_order_id?: string; -} -export interface EventBuyDirectAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: EventBuyDirectAmino; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectSDKType { - sell_order_id: bigint; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrder { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sellOrderId: bigint; -} -export interface EventUpdateSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: Uint8Array; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderAmino { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sell_order_id?: string; -} -export interface EventUpdateSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: EventUpdateSellOrderAmino; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderSDKType { - sell_order_id: bigint; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrder { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sellOrderId: bigint; -} -export interface EventCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: Uint8Array; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderAmino { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sell_order_id?: string; -} -export interface EventCancelSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: EventCancelSellOrderAmino; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderSDKType { - sell_order_id: bigint; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventAllowDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: Uint8Array; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventAllowDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: EventAllowDenomAmino; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomSDKType { - denom: string; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventRemoveAllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: EventRemoveAllowedDenomAmino; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomSDKType { - denom: string; -} -export declare const EventSell: { - typeUrl: string; - encode(message: EventSell, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSell; - fromJSON(object: any): EventSell; - toJSON(message: EventSell): unknown; - fromPartial(object: Partial): EventSell; - fromAmino(object: EventSellAmino): EventSell; - toAmino(message: EventSell): EventSellAmino; - fromAminoMsg(object: EventSellAminoMsg): EventSell; - fromProtoMsg(message: EventSellProtoMsg): EventSell; - toProto(message: EventSell): Uint8Array; - toProtoMsg(message: EventSell): EventSellProtoMsg; -}; -export declare const EventBuyDirect: { - typeUrl: string; - encode(message: EventBuyDirect, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect; - fromJSON(object: any): EventBuyDirect; - toJSON(message: EventBuyDirect): unknown; - fromPartial(object: Partial): EventBuyDirect; - fromAmino(object: EventBuyDirectAmino): EventBuyDirect; - toAmino(message: EventBuyDirect): EventBuyDirectAmino; - fromAminoMsg(object: EventBuyDirectAminoMsg): EventBuyDirect; - fromProtoMsg(message: EventBuyDirectProtoMsg): EventBuyDirect; - toProto(message: EventBuyDirect): Uint8Array; - toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg; -}; -export declare const EventUpdateSellOrder: { - typeUrl: string; - encode(message: EventUpdateSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder; - fromJSON(object: any): EventUpdateSellOrder; - toJSON(message: EventUpdateSellOrder): unknown; - fromPartial(object: Partial): EventUpdateSellOrder; - fromAmino(object: EventUpdateSellOrderAmino): EventUpdateSellOrder; - toAmino(message: EventUpdateSellOrder): EventUpdateSellOrderAmino; - fromAminoMsg(object: EventUpdateSellOrderAminoMsg): EventUpdateSellOrder; - fromProtoMsg(message: EventUpdateSellOrderProtoMsg): EventUpdateSellOrder; - toProto(message: EventUpdateSellOrder): Uint8Array; - toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg; -}; -export declare const EventCancelSellOrder: { - typeUrl: string; - encode(message: EventCancelSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder; - fromJSON(object: any): EventCancelSellOrder; - toJSON(message: EventCancelSellOrder): unknown; - fromPartial(object: Partial): EventCancelSellOrder; - fromAmino(object: EventCancelSellOrderAmino): EventCancelSellOrder; - toAmino(message: EventCancelSellOrder): EventCancelSellOrderAmino; - fromAminoMsg(object: EventCancelSellOrderAminoMsg): EventCancelSellOrder; - fromProtoMsg(message: EventCancelSellOrderProtoMsg): EventCancelSellOrder; - toProto(message: EventCancelSellOrder): Uint8Array; - toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg; -}; -export declare const EventAllowDenom: { - typeUrl: string; - encode(message: EventAllowDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom; - fromJSON(object: any): EventAllowDenom; - toJSON(message: EventAllowDenom): unknown; - fromPartial(object: Partial): EventAllowDenom; - fromAmino(object: EventAllowDenomAmino): EventAllowDenom; - toAmino(message: EventAllowDenom): EventAllowDenomAmino; - fromAminoMsg(object: EventAllowDenomAminoMsg): EventAllowDenom; - fromProtoMsg(message: EventAllowDenomProtoMsg): EventAllowDenom; - toProto(message: EventAllowDenom): Uint8Array; - toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg; -}; -export declare const EventRemoveAllowedDenom: { - typeUrl: string; - encode(message: EventRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom; - fromJSON(object: any): EventRemoveAllowedDenom; - toJSON(message: EventRemoveAllowedDenom): unknown; - fromPartial(object: Partial): EventRemoveAllowedDenom; - fromAmino(object: EventRemoveAllowedDenomAmino): EventRemoveAllowedDenom; - toAmino(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomAmino; - fromAminoMsg(object: EventRemoveAllowedDenomAminoMsg): EventRemoveAllowedDenom; - fromProtoMsg(message: EventRemoveAllowedDenomProtoMsg): EventRemoveAllowedDenom; - toProto(message: EventRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts deleted file mode 100644 index 2ddfd5fb..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.d.ts +++ /dev/null @@ -1,529 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequest { - /** sell_order_id is the id of the requested sell order. */ - sellOrderId: bigint; -} -export interface QuerySellOrderRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: Uint8Array; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestAmino { - /** sell_order_id is the id of the requested sell order. */ - sell_order_id?: string; -} -export interface QuerySellOrderRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: QuerySellOrderRequestAmino; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestSDKType { - sell_order_id: bigint; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponse { - /** sell_order contains all information related to a sell order. */ - sellOrder?: SellOrderInfo; -} -export interface QuerySellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: Uint8Array; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseAmino { - /** sell_order contains all information related to a sell order. */ - sell_order?: SellOrderInfoAmino; -} -export interface QuerySellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: QuerySellOrderResponseAmino; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseSDKType { - sell_order?: SellOrderInfoSDKType; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: Uint8Array; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: QuerySellOrdersRequestAmino; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: Uint8Array; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: QuerySellOrdersResponseAmino; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequest { - /** batch_denom is an ecocredit denom */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestAmino { - /** batch_denom is an ecocredit denom */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersByBatchRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: QuerySellOrdersByBatchRequestAmino; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersByBatchResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: QuerySellOrdersByBatchResponseAmino; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequest { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersBySellerRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersBySellerRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: QuerySellOrdersBySellerRequestAmino; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestSDKType { - seller: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersBySellerResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersBySellerResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: QuerySellOrdersBySellerResponseAmino; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedDenomsRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: Uint8Array; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedDenomsRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: QueryAllowedDenomsRequestAmino; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponse { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowedDenoms: AllowedDenom[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedDenomsResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: Uint8Array; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseAmino { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowed_denoms?: AllowedDenomAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedDenomsResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: QueryAllowedDenomsResponseAmino; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseSDKType { - allowed_denoms: AllowedDenomSDKType[]; - pagination?: PageResponseSDKType; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfo { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: string; - /** batch_denom is denom of the credit batch being sold. */ - batchDenom: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - askDenom: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; -} -export interface SellOrderInfoProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: Uint8Array; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** batch_denom is denom of the credit batch being sold. */ - batch_denom?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - ask_denom?: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface SellOrderInfoAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: SellOrderInfoAmino; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoSDKType { - id: bigint; - seller: string; - batch_denom: string; - quantity: string; - ask_denom: string; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; -} -export declare const QuerySellOrderRequest: { - typeUrl: string; - encode(message: QuerySellOrderRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest; - fromJSON(object: any): QuerySellOrderRequest; - toJSON(message: QuerySellOrderRequest): unknown; - fromPartial(object: Partial): QuerySellOrderRequest; - fromAmino(object: QuerySellOrderRequestAmino): QuerySellOrderRequest; - toAmino(message: QuerySellOrderRequest): QuerySellOrderRequestAmino; - fromAminoMsg(object: QuerySellOrderRequestAminoMsg): QuerySellOrderRequest; - fromProtoMsg(message: QuerySellOrderRequestProtoMsg): QuerySellOrderRequest; - toProto(message: QuerySellOrderRequest): Uint8Array; - toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg; -}; -export declare const QuerySellOrderResponse: { - typeUrl: string; - encode(message: QuerySellOrderResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse; - fromJSON(object: any): QuerySellOrderResponse; - toJSON(message: QuerySellOrderResponse): unknown; - fromPartial(object: Partial): QuerySellOrderResponse; - fromAmino(object: QuerySellOrderResponseAmino): QuerySellOrderResponse; - toAmino(message: QuerySellOrderResponse): QuerySellOrderResponseAmino; - fromAminoMsg(object: QuerySellOrderResponseAminoMsg): QuerySellOrderResponse; - fromProtoMsg(message: QuerySellOrderResponseProtoMsg): QuerySellOrderResponse; - toProto(message: QuerySellOrderResponse): Uint8Array; - toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg; -}; -export declare const QuerySellOrdersRequest: { - typeUrl: string; - encode(message: QuerySellOrdersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest; - fromJSON(object: any): QuerySellOrdersRequest; - toJSON(message: QuerySellOrdersRequest): unknown; - fromPartial(object: Partial): QuerySellOrdersRequest; - fromAmino(object: QuerySellOrdersRequestAmino): QuerySellOrdersRequest; - toAmino(message: QuerySellOrdersRequest): QuerySellOrdersRequestAmino; - fromAminoMsg(object: QuerySellOrdersRequestAminoMsg): QuerySellOrdersRequest; - fromProtoMsg(message: QuerySellOrdersRequestProtoMsg): QuerySellOrdersRequest; - toProto(message: QuerySellOrdersRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg; -}; -export declare const QuerySellOrdersResponse: { - typeUrl: string; - encode(message: QuerySellOrdersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse; - fromJSON(object: any): QuerySellOrdersResponse; - toJSON(message: QuerySellOrdersResponse): unknown; - fromPartial(object: Partial): QuerySellOrdersResponse; - fromAmino(object: QuerySellOrdersResponseAmino): QuerySellOrdersResponse; - toAmino(message: QuerySellOrdersResponse): QuerySellOrdersResponseAmino; - fromAminoMsg(object: QuerySellOrdersResponseAminoMsg): QuerySellOrdersResponse; - fromProtoMsg(message: QuerySellOrdersResponseProtoMsg): QuerySellOrdersResponse; - toProto(message: QuerySellOrdersResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg; -}; -export declare const QuerySellOrdersByBatchRequest: { - typeUrl: string; - encode(message: QuerySellOrdersByBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest; - fromJSON(object: any): QuerySellOrdersByBatchRequest; - toJSON(message: QuerySellOrdersByBatchRequest): unknown; - fromPartial(object: Partial): QuerySellOrdersByBatchRequest; - fromAmino(object: QuerySellOrdersByBatchRequestAmino): QuerySellOrdersByBatchRequest; - toAmino(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestAmino; - fromAminoMsg(object: QuerySellOrdersByBatchRequestAminoMsg): QuerySellOrdersByBatchRequest; - fromProtoMsg(message: QuerySellOrdersByBatchRequestProtoMsg): QuerySellOrdersByBatchRequest; - toProto(message: QuerySellOrdersByBatchRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg; -}; -export declare const QuerySellOrdersByBatchResponse: { - typeUrl: string; - encode(message: QuerySellOrdersByBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse; - fromJSON(object: any): QuerySellOrdersByBatchResponse; - toJSON(message: QuerySellOrdersByBatchResponse): unknown; - fromPartial(object: Partial): QuerySellOrdersByBatchResponse; - fromAmino(object: QuerySellOrdersByBatchResponseAmino): QuerySellOrdersByBatchResponse; - toAmino(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseAmino; - fromAminoMsg(object: QuerySellOrdersByBatchResponseAminoMsg): QuerySellOrdersByBatchResponse; - fromProtoMsg(message: QuerySellOrdersByBatchResponseProtoMsg): QuerySellOrdersByBatchResponse; - toProto(message: QuerySellOrdersByBatchResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg; -}; -export declare const QuerySellOrdersBySellerRequest: { - typeUrl: string; - encode(message: QuerySellOrdersBySellerRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest; - fromJSON(object: any): QuerySellOrdersBySellerRequest; - toJSON(message: QuerySellOrdersBySellerRequest): unknown; - fromPartial(object: Partial): QuerySellOrdersBySellerRequest; - fromAmino(object: QuerySellOrdersBySellerRequestAmino): QuerySellOrdersBySellerRequest; - toAmino(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestAmino; - fromAminoMsg(object: QuerySellOrdersBySellerRequestAminoMsg): QuerySellOrdersBySellerRequest; - fromProtoMsg(message: QuerySellOrdersBySellerRequestProtoMsg): QuerySellOrdersBySellerRequest; - toProto(message: QuerySellOrdersBySellerRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg; -}; -export declare const QuerySellOrdersBySellerResponse: { - typeUrl: string; - encode(message: QuerySellOrdersBySellerResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse; - fromJSON(object: any): QuerySellOrdersBySellerResponse; - toJSON(message: QuerySellOrdersBySellerResponse): unknown; - fromPartial(object: Partial): QuerySellOrdersBySellerResponse; - fromAmino(object: QuerySellOrdersBySellerResponseAmino): QuerySellOrdersBySellerResponse; - toAmino(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseAmino; - fromAminoMsg(object: QuerySellOrdersBySellerResponseAminoMsg): QuerySellOrdersBySellerResponse; - fromProtoMsg(message: QuerySellOrdersBySellerResponseProtoMsg): QuerySellOrdersBySellerResponse; - toProto(message: QuerySellOrdersBySellerResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg; -}; -export declare const QueryAllowedDenomsRequest: { - typeUrl: string; - encode(message: QueryAllowedDenomsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest; - fromJSON(object: any): QueryAllowedDenomsRequest; - toJSON(message: QueryAllowedDenomsRequest): unknown; - fromPartial(object: Partial): QueryAllowedDenomsRequest; - fromAmino(object: QueryAllowedDenomsRequestAmino): QueryAllowedDenomsRequest; - toAmino(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestAmino; - fromAminoMsg(object: QueryAllowedDenomsRequestAminoMsg): QueryAllowedDenomsRequest; - fromProtoMsg(message: QueryAllowedDenomsRequestProtoMsg): QueryAllowedDenomsRequest; - toProto(message: QueryAllowedDenomsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg; -}; -export declare const QueryAllowedDenomsResponse: { - typeUrl: string; - encode(message: QueryAllowedDenomsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse; - fromJSON(object: any): QueryAllowedDenomsResponse; - toJSON(message: QueryAllowedDenomsResponse): unknown; - fromPartial(object: Partial): QueryAllowedDenomsResponse; - fromAmino(object: QueryAllowedDenomsResponseAmino): QueryAllowedDenomsResponse; - toAmino(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseAmino; - fromAminoMsg(object: QueryAllowedDenomsResponseAminoMsg): QueryAllowedDenomsResponse; - fromProtoMsg(message: QueryAllowedDenomsResponseProtoMsg): QueryAllowedDenomsResponse; - toProto(message: QueryAllowedDenomsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg; -}; -export declare const SellOrderInfo: { - typeUrl: string; - encode(message: SellOrderInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo; - fromJSON(object: any): SellOrderInfo; - toJSON(message: SellOrderInfo): unknown; - fromPartial(object: Partial): SellOrderInfo; - fromAmino(object: SellOrderInfoAmino): SellOrderInfo; - toAmino(message: SellOrderInfo): SellOrderInfoAmino; - fromAminoMsg(object: SellOrderInfoAminoMsg): SellOrderInfo; - fromProtoMsg(message: SellOrderInfoProtoMsg): SellOrderInfo; - toProto(message: SellOrderInfo): Uint8Array; - toProtoMsg(message: SellOrderInfo): SellOrderInfoProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts deleted file mode 100644 index ca3ff490..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - sellOrder(params: QuerySellOrderRequest): Promise; - sellOrders(params?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(params: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(params: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(params?: QueryAllowedDenomsRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts deleted file mode 100644 index 8edfdc02..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; -/** Msg is the regen.ecocredit.marketplace.v1 Query service. */ -export interface Query { - /** SellOrder queries a sell order by its unique identifier. */ - sellOrder(request: QuerySellOrderRequest): Promise; - /** SellOrders queries a paginated list of all sell orders. */ - sellOrders(request?: QuerySellOrdersRequest): Promise; - /** - * SellOrdersByBatch queries a paginated list of all sell orders based on - * the batch denom of the credits being sold. - */ - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - /** - * SellOrdersBySeller queries a paginated list of all sell orders based on the - * account address of the seller. - */ - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - /** - * AllowedDenoms queries a paginated list of all bank denoms allowed to be - * used in the marketplace. - */ - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - sellOrder(request: QuerySellOrderRequest): Promise; - sellOrders(request?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - sellOrder(request: QuerySellOrderRequest): Promise; - sellOrders(request?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts deleted file mode 100644 index dc5a1be4..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/state.d.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** SellOrder represents the information for a sell order. */ -export interface SellOrder { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: Uint8Array; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batchKey: bigint; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - marketId: bigint; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker: boolean; -} -export interface SellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: Uint8Array; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batch_key?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - market_id?: string; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker?: boolean; -} -export interface SellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: SellOrderAmino; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderSDKType { - id: bigint; - seller: Uint8Array; - batch_key: bigint; - quantity: string; - market_id: bigint; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; - maker: boolean; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: Uint8Array; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface Market { - /** id is the unique ID of the market. */ - id: bigint; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; - /** bank_denom is an allowed bank denom. */ - bankDenom: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precisionModifier: number; -} -export interface MarketProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Market"; - value: Uint8Array; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketAmino { - /** id is the unique ID of the market. */ - id?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; - /** bank_denom is an allowed bank denom. */ - bank_denom?: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precision_modifier?: number; -} -export interface MarketAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Market"; - value: MarketAmino; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketSDKType { - id: bigint; - credit_type_abbrev: string; - bank_denom: string; - precision_modifier: number; -} -export declare const SellOrder: { - typeUrl: string; - encode(message: SellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SellOrder; - fromJSON(object: any): SellOrder; - toJSON(message: SellOrder): unknown; - fromPartial(object: Partial): SellOrder; - fromAmino(object: SellOrderAmino): SellOrder; - toAmino(message: SellOrder): SellOrderAmino; - fromAminoMsg(object: SellOrderAminoMsg): SellOrder; - fromProtoMsg(message: SellOrderProtoMsg): SellOrder; - toProto(message: SellOrder): Uint8Array; - toProtoMsg(message: SellOrder): SellOrderProtoMsg; -}; -export declare const AllowedDenom: { - typeUrl: string; - encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; - fromJSON(object: any): AllowedDenom; - toJSON(message: AllowedDenom): unknown; - fromPartial(object: Partial): AllowedDenom; - fromAmino(object: AllowedDenomAmino): AllowedDenom; - toAmino(message: AllowedDenom): AllowedDenomAmino; - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; - toProto(message: AllowedDenom): Uint8Array; - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; -}; -export declare const Market: { - typeUrl: string; - encode(message: Market, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Market; - fromJSON(object: any): Market; - toJSON(message: Market): unknown; - fromPartial(object: Partial): Market; - fromAmino(object: MarketAmino): Market; - toAmino(message: Market): MarketAmino; - fromAminoMsg(object: MarketAminoMsg): Market; - fromProtoMsg(message: MarketProtoMsg): Market; - toProto(message: Market): Uint8Array; - toProtoMsg(message: Market): MarketProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.amino.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.amino.d.ts deleted file mode 100644 index d17e5b87..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: MsgSell) => import("./tx").MsgSellAmino; - fromAmino: (object: import("./tx").MsgSellAmino) => MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: MsgUpdateSellOrders) => import("./tx").MsgUpdateSellOrdersAmino; - fromAmino: (object: import("./tx").MsgUpdateSellOrdersAmino) => MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: MsgCancelSellOrder) => import("./tx").MsgCancelSellOrderAmino; - fromAmino: (object: import("./tx").MsgCancelSellOrderAmino) => MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: MsgBuyDirect) => import("./tx").MsgBuyDirectAmino; - fromAmino: (object: import("./tx").MsgBuyDirectAmino) => MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: MsgAddAllowedDenom) => import("./tx").MsgAddAllowedDenomAmino; - fromAmino: (object: import("./tx").MsgAddAllowedDenomAmino) => MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: MsgRemoveAllowedDenom) => import("./tx").MsgRemoveAllowedDenomAmino; - fromAmino: (object: import("./tx").MsgRemoveAllowedDenomAmino) => MsgRemoveAllowedDenom; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts deleted file mode 100644 index 9780ba87..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.d.ts +++ /dev/null @@ -1,779 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSell { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** orders are the sell orders being created. */ - orders: MsgSell_Order[]; -} -export interface MsgSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell"; - value: Uint8Array; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** orders are the sell orders being created. */ - orders?: MsgSell_OrderAmino[]; -} -export interface MsgSellAminoMsg { - type: "regen.marketplace/MsgSell"; - value: MsgSellAmino; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellSDKType { - seller: string; - orders: MsgSell_OrderSDKType[]; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_Order { - /** batch_denom is the credit batch being sold. */ - batchDenom: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - askPrice?: Coin; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Timestamp; -} -export interface MsgSell_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderAmino { - /** batch_denom is the credit batch being sold. */ - batch_denom?: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity?: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - ask_price?: CoinAmino; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface MsgSell_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgSell_OrderAmino; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderSDKType { - batch_denom: string; - quantity: string; - ask_price?: CoinSDKType; - disable_auto_retire: boolean; - expiration?: TimestampSDKType; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponse { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sellOrderIds: bigint[]; -} -export interface MsgSellResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: Uint8Array; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseAmino { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sell_order_ids?: string[]; -} -export interface MsgSellResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: MsgSellResponseAmino; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseSDKType { - sell_order_ids: bigint[]; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrders { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** updates are updates to existing sell orders. */ - updates: MsgUpdateSellOrders_Update[]; -} -export interface MsgUpdateSellOrdersProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders"; - value: Uint8Array; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** updates are updates to existing sell orders. */ - updates?: MsgUpdateSellOrders_UpdateAmino[]; -} -export interface MsgUpdateSellOrdersAminoMsg { - type: "regen.marketplace/MsgUpdateSellOrders"; - value: MsgUpdateSellOrdersAmino; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersSDKType { - seller: string; - updates: MsgUpdateSellOrders_UpdateSDKType[]; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_Update { - /** sell_order_id is the ID of an existing sell order. */ - sellOrderId: bigint; - /** new_quantity is the updated quantity of credits available to sell. */ - newQuantity: string; - /** new_ask_price is the new ask price for this sell order */ - newAskPrice?: Coin; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disableAutoRetire: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - newExpiration?: Timestamp; -} -export interface MsgUpdateSellOrders_UpdateProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Update"; - value: Uint8Array; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateAmino { - /** sell_order_id is the ID of an existing sell order. */ - sell_order_id?: string; - /** new_quantity is the updated quantity of credits available to sell. */ - new_quantity?: string; - /** new_ask_price is the new ask price for this sell order */ - new_ask_price?: CoinAmino; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disable_auto_retire?: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - new_expiration?: string; -} -export interface MsgUpdateSellOrders_UpdateAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Update"; - value: MsgUpdateSellOrders_UpdateAmino; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateSDKType { - sell_order_id: bigint; - new_quantity: string; - new_ask_price?: CoinSDKType; - disable_auto_retire: boolean; - new_expiration?: TimestampSDKType; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponse { -} -export interface MsgUpdateSellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: Uint8Array; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseAmino { -} -export interface MsgUpdateSellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: MsgUpdateSellOrdersResponseAmino; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseSDKType { -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrder { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller: string; - /** sell_order_id is the id of the seller order to cancel. */ - sellOrderId: bigint; -} -export interface MsgCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderAmino { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller?: string; - /** sell_order_id is the id of the seller order to cancel. */ - sell_order_id?: string; -} -export interface MsgCancelSellOrderAminoMsg { - type: "regen.marketplace/MsgCancelSellOrder"; - value: MsgCancelSellOrderAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderSDKType { - seller: string; - sell_order_id: bigint; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponse { -} -export interface MsgCancelSellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseAmino { -} -export interface MsgCancelSellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: MsgCancelSellOrderResponseAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseSDKType { -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirect { - /** buyer is the address of the account that is buying credits. */ - buyer: string; - /** orders is a list of orders for ecocredits. */ - orders: MsgBuyDirect_Order[]; -} -export interface MsgBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect"; - value: Uint8Array; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectAmino { - /** buyer is the address of the account that is buying credits. */ - buyer?: string; - /** orders is a list of orders for ecocredits. */ - orders?: MsgBuyDirect_OrderAmino[]; -} -export interface MsgBuyDirectAminoMsg { - type: "regen.marketplace/MsgBuyDirect"; - value: MsgBuyDirectAmino; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectSDKType { - buyer: string; - orders: MsgBuyDirect_OrderSDKType[]; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_Order { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sellOrderId: bigint; - /** quantity is the quantity of credits to buy. */ - quantity: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bidPrice?: Coin; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disableAutoRetire: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirementReason: string; -} -export interface MsgBuyDirect_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderAmino { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sell_order_id?: string; - /** quantity is the quantity of credits to buy. */ - quantity?: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bid_price?: CoinAmino; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disable_auto_retire?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirement_reason?: string; -} -export interface MsgBuyDirect_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgBuyDirect_OrderAmino; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderSDKType { - sell_order_id: bigint; - quantity: string; - bid_price?: CoinSDKType; - disable_auto_retire: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponse { -} -export interface MsgBuyDirectResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: Uint8Array; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseAmino { -} -export interface MsgBuyDirectResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: MsgBuyDirectResponseAmino; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseSDKType { -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface MsgAddAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface MsgAddAllowedDenomAminoMsg { - type: "regen.marketplace/MsgAddAllowedDenom"; - value: MsgAddAllowedDenomAmino; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomSDKType { - authority: string; - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponse { -} -export interface MsgAddAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseAmino { -} -export interface MsgAddAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: MsgAddAllowedDenomResponseAmino; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseSDKType { -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom: string; -} -export interface MsgRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom?: string; -} -export interface MsgRemoveAllowedDenomAminoMsg { - type: "regen.marketplace/MsgRemoveAllowedDenom"; - value: MsgRemoveAllowedDenomAmino; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomSDKType { - authority: string; - denom: string; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponse { -} -export interface MsgRemoveAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseAmino { -} -export interface MsgRemoveAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: MsgRemoveAllowedDenomResponseAmino; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseSDKType { -} -export declare const MsgSell: { - typeUrl: string; - encode(message: MsgSell, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell; - fromJSON(object: any): MsgSell; - toJSON(message: MsgSell): unknown; - fromPartial(object: Partial): MsgSell; - fromAmino(object: MsgSellAmino): MsgSell; - toAmino(message: MsgSell): MsgSellAmino; - fromAminoMsg(object: MsgSellAminoMsg): MsgSell; - toAminoMsg(message: MsgSell): MsgSellAminoMsg; - fromProtoMsg(message: MsgSellProtoMsg): MsgSell; - toProto(message: MsgSell): Uint8Array; - toProtoMsg(message: MsgSell): MsgSellProtoMsg; -}; -export declare const MsgSell_Order: { - typeUrl: string; - encode(message: MsgSell_Order, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order; - fromJSON(object: any): MsgSell_Order; - toJSON(message: MsgSell_Order): unknown; - fromPartial(object: Partial): MsgSell_Order; - fromAmino(object: MsgSell_OrderAmino): MsgSell_Order; - toAmino(message: MsgSell_Order): MsgSell_OrderAmino; - fromAminoMsg(object: MsgSell_OrderAminoMsg): MsgSell_Order; - fromProtoMsg(message: MsgSell_OrderProtoMsg): MsgSell_Order; - toProto(message: MsgSell_Order): Uint8Array; - toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg; -}; -export declare const MsgSellResponse: { - typeUrl: string; - encode(message: MsgSellResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse; - fromJSON(object: any): MsgSellResponse; - toJSON(message: MsgSellResponse): unknown; - fromPartial(object: Partial): MsgSellResponse; - fromAmino(object: MsgSellResponseAmino): MsgSellResponse; - toAmino(message: MsgSellResponse): MsgSellResponseAmino; - fromAminoMsg(object: MsgSellResponseAminoMsg): MsgSellResponse; - fromProtoMsg(message: MsgSellResponseProtoMsg): MsgSellResponse; - toProto(message: MsgSellResponse): Uint8Array; - toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg; -}; -export declare const MsgUpdateSellOrders: { - typeUrl: string; - encode(message: MsgUpdateSellOrders, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders; - fromJSON(object: any): MsgUpdateSellOrders; - toJSON(message: MsgUpdateSellOrders): unknown; - fromPartial(object: Partial): MsgUpdateSellOrders; - fromAmino(object: MsgUpdateSellOrdersAmino): MsgUpdateSellOrders; - toAmino(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAmino; - fromAminoMsg(object: MsgUpdateSellOrdersAminoMsg): MsgUpdateSellOrders; - toAminoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAminoMsg; - fromProtoMsg(message: MsgUpdateSellOrdersProtoMsg): MsgUpdateSellOrders; - toProto(message: MsgUpdateSellOrders): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg; -}; -export declare const MsgUpdateSellOrders_Update: { - typeUrl: string; - encode(message: MsgUpdateSellOrders_Update, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update; - fromJSON(object: any): MsgUpdateSellOrders_Update; - toJSON(message: MsgUpdateSellOrders_Update): unknown; - fromPartial(object: Partial): MsgUpdateSellOrders_Update; - fromAmino(object: MsgUpdateSellOrders_UpdateAmino): MsgUpdateSellOrders_Update; - toAmino(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateAmino; - fromAminoMsg(object: MsgUpdateSellOrders_UpdateAminoMsg): MsgUpdateSellOrders_Update; - fromProtoMsg(message: MsgUpdateSellOrders_UpdateProtoMsg): MsgUpdateSellOrders_Update; - toProto(message: MsgUpdateSellOrders_Update): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg; -}; -export declare const MsgUpdateSellOrdersResponse: { - typeUrl: string; - encode(_: MsgUpdateSellOrdersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse; - fromJSON(_: any): MsgUpdateSellOrdersResponse; - toJSON(_: MsgUpdateSellOrdersResponse): unknown; - fromPartial(_: Partial): MsgUpdateSellOrdersResponse; - fromAmino(_: MsgUpdateSellOrdersResponseAmino): MsgUpdateSellOrdersResponse; - toAmino(_: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseAmino; - fromAminoMsg(object: MsgUpdateSellOrdersResponseAminoMsg): MsgUpdateSellOrdersResponse; - fromProtoMsg(message: MsgUpdateSellOrdersResponseProtoMsg): MsgUpdateSellOrdersResponse; - toProto(message: MsgUpdateSellOrdersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg; -}; -export declare const MsgCancelSellOrder: { - typeUrl: string; - encode(message: MsgCancelSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder; - fromJSON(object: any): MsgCancelSellOrder; - toJSON(message: MsgCancelSellOrder): unknown; - fromPartial(object: Partial): MsgCancelSellOrder; - fromAmino(object: MsgCancelSellOrderAmino): MsgCancelSellOrder; - toAmino(message: MsgCancelSellOrder): MsgCancelSellOrderAmino; - fromAminoMsg(object: MsgCancelSellOrderAminoMsg): MsgCancelSellOrder; - toAminoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderAminoMsg; - fromProtoMsg(message: MsgCancelSellOrderProtoMsg): MsgCancelSellOrder; - toProto(message: MsgCancelSellOrder): Uint8Array; - toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg; -}; -export declare const MsgCancelSellOrderResponse: { - typeUrl: string; - encode(_: MsgCancelSellOrderResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse; - fromJSON(_: any): MsgCancelSellOrderResponse; - toJSON(_: MsgCancelSellOrderResponse): unknown; - fromPartial(_: Partial): MsgCancelSellOrderResponse; - fromAmino(_: MsgCancelSellOrderResponseAmino): MsgCancelSellOrderResponse; - toAmino(_: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseAmino; - fromAminoMsg(object: MsgCancelSellOrderResponseAminoMsg): MsgCancelSellOrderResponse; - fromProtoMsg(message: MsgCancelSellOrderResponseProtoMsg): MsgCancelSellOrderResponse; - toProto(message: MsgCancelSellOrderResponse): Uint8Array; - toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg; -}; -export declare const MsgBuyDirect: { - typeUrl: string; - encode(message: MsgBuyDirect, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect; - fromJSON(object: any): MsgBuyDirect; - toJSON(message: MsgBuyDirect): unknown; - fromPartial(object: Partial): MsgBuyDirect; - fromAmino(object: MsgBuyDirectAmino): MsgBuyDirect; - toAmino(message: MsgBuyDirect): MsgBuyDirectAmino; - fromAminoMsg(object: MsgBuyDirectAminoMsg): MsgBuyDirect; - toAminoMsg(message: MsgBuyDirect): MsgBuyDirectAminoMsg; - fromProtoMsg(message: MsgBuyDirectProtoMsg): MsgBuyDirect; - toProto(message: MsgBuyDirect): Uint8Array; - toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg; -}; -export declare const MsgBuyDirect_Order: { - typeUrl: string; - encode(message: MsgBuyDirect_Order, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order; - fromJSON(object: any): MsgBuyDirect_Order; - toJSON(message: MsgBuyDirect_Order): unknown; - fromPartial(object: Partial): MsgBuyDirect_Order; - fromAmino(object: MsgBuyDirect_OrderAmino): MsgBuyDirect_Order; - toAmino(message: MsgBuyDirect_Order): MsgBuyDirect_OrderAmino; - fromAminoMsg(object: MsgBuyDirect_OrderAminoMsg): MsgBuyDirect_Order; - fromProtoMsg(message: MsgBuyDirect_OrderProtoMsg): MsgBuyDirect_Order; - toProto(message: MsgBuyDirect_Order): Uint8Array; - toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg; -}; -export declare const MsgBuyDirectResponse: { - typeUrl: string; - encode(_: MsgBuyDirectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse; - fromJSON(_: any): MsgBuyDirectResponse; - toJSON(_: MsgBuyDirectResponse): unknown; - fromPartial(_: Partial): MsgBuyDirectResponse; - fromAmino(_: MsgBuyDirectResponseAmino): MsgBuyDirectResponse; - toAmino(_: MsgBuyDirectResponse): MsgBuyDirectResponseAmino; - fromAminoMsg(object: MsgBuyDirectResponseAminoMsg): MsgBuyDirectResponse; - fromProtoMsg(message: MsgBuyDirectResponseProtoMsg): MsgBuyDirectResponse; - toProto(message: MsgBuyDirectResponse): Uint8Array; - toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg; -}; -export declare const MsgAddAllowedDenom: { - typeUrl: string; - encode(message: MsgAddAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom; - fromJSON(object: any): MsgAddAllowedDenom; - toJSON(message: MsgAddAllowedDenom): unknown; - fromPartial(object: Partial): MsgAddAllowedDenom; - fromAmino(object: MsgAddAllowedDenomAmino): MsgAddAllowedDenom; - toAmino(message: MsgAddAllowedDenom): MsgAddAllowedDenomAmino; - fromAminoMsg(object: MsgAddAllowedDenomAminoMsg): MsgAddAllowedDenom; - toAminoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomAminoMsg; - fromProtoMsg(message: MsgAddAllowedDenomProtoMsg): MsgAddAllowedDenom; - toProto(message: MsgAddAllowedDenom): Uint8Array; - toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg; -}; -export declare const MsgAddAllowedDenomResponse: { - typeUrl: string; - encode(_: MsgAddAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse; - fromJSON(_: any): MsgAddAllowedDenomResponse; - toJSON(_: MsgAddAllowedDenomResponse): unknown; - fromPartial(_: Partial): MsgAddAllowedDenomResponse; - fromAmino(_: MsgAddAllowedDenomResponseAmino): MsgAddAllowedDenomResponse; - toAmino(_: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseAmino; - fromAminoMsg(object: MsgAddAllowedDenomResponseAminoMsg): MsgAddAllowedDenomResponse; - fromProtoMsg(message: MsgAddAllowedDenomResponseProtoMsg): MsgAddAllowedDenomResponse; - toProto(message: MsgAddAllowedDenomResponse): Uint8Array; - toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg; -}; -export declare const MsgRemoveAllowedDenom: { - typeUrl: string; - encode(message: MsgRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom; - fromJSON(object: any): MsgRemoveAllowedDenom; - toJSON(message: MsgRemoveAllowedDenom): unknown; - fromPartial(object: Partial): MsgRemoveAllowedDenom; - fromAmino(object: MsgRemoveAllowedDenomAmino): MsgRemoveAllowedDenom; - toAmino(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAmino; - fromAminoMsg(object: MsgRemoveAllowedDenomAminoMsg): MsgRemoveAllowedDenom; - toAminoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAminoMsg; - fromProtoMsg(message: MsgRemoveAllowedDenomProtoMsg): MsgRemoveAllowedDenom; - toProto(message: MsgRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg; -}; -export declare const MsgRemoveAllowedDenomResponse: { - typeUrl: string; - encode(_: MsgRemoveAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse; - fromJSON(_: any): MsgRemoveAllowedDenomResponse; - toJSON(_: MsgRemoveAllowedDenomResponse): unknown; - fromPartial(_: Partial): MsgRemoveAllowedDenomResponse; - fromAmino(_: MsgRemoveAllowedDenomResponseAmino): MsgRemoveAllowedDenomResponse; - toAmino(_: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseAmino; - fromAminoMsg(object: MsgRemoveAllowedDenomResponseAminoMsg): MsgRemoveAllowedDenomResponse; - fromProtoMsg(message: MsgRemoveAllowedDenomResponseProtoMsg): MsgRemoveAllowedDenomResponse; - toProto(message: MsgRemoveAllowedDenomResponse): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.registry.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.registry.d.ts deleted file mode 100644 index 62c25eb4..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.registry.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - sell(value: MsgSell): { - typeUrl: string; - value: Uint8Array; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: Uint8Array; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: Uint8Array; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - sell(value: MsgSell): { - typeUrl: string; - value: MsgSell; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: MsgUpdateSellOrders; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: MsgCancelSellOrder; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: MsgBuyDirect; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: MsgAddAllowedDenom; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: MsgRemoveAllowedDenom; - }; - }; - toJSON: { - sell(value: MsgSell): { - typeUrl: string; - value: unknown; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: unknown; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: unknown; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: unknown; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: unknown; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - sell(value: any): { - typeUrl: string; - value: MsgSell; - }; - updateSellOrders(value: any): { - typeUrl: string; - value: MsgUpdateSellOrders; - }; - cancelSellOrder(value: any): { - typeUrl: string; - value: MsgCancelSellOrder; - }; - buyDirect(value: any): { - typeUrl: string; - value: MsgBuyDirect; - }; - addAllowedDenom(value: any): { - typeUrl: string; - value: MsgAddAllowedDenom; - }; - removeAllowedDenom(value: any): { - typeUrl: string; - value: MsgRemoveAllowedDenom; - }; - }; - fromPartial: { - sell(value: MsgSell): { - typeUrl: string; - value: MsgSell; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: MsgUpdateSellOrders; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: MsgCancelSellOrder; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: MsgBuyDirect; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: MsgAddAllowedDenom; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: MsgRemoveAllowedDenom; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 9f22b1bb..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; -/** Msg is the regen.ecocredit.marketplace.v1 Msg service. */ -export interface Msg { - /** Sell creates new sell orders. */ - sell(request: MsgSell): Promise; - /** UpdateSellOrders updates existing sell orders. */ - updateSellOrders(request: MsgUpdateSellOrders): Promise; - /** CancelSellOrder cancels a sell order and returns the credits from escrow. */ - cancelSellOrder(request: MsgCancelSellOrder): Promise; - /** BuyDirect purchases credits directly from the specified sell order. */ - buyDirect(request: MsgBuyDirect): Promise; - /** - * AddAllowedDenom is a governance method that allows the addition of - * new allowed denom. - * - * Since Revision 1 - */ - addAllowedDenom(request: MsgAddAllowedDenom): Promise; - /** - * RemoveAllowedDenom is a governance method that removes allowed denom. - * - * Since Revision 1 - */ - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - sell(request: MsgSell): Promise; - updateSellOrders(request: MsgUpdateSellOrders): Promise; - cancelSellOrder(request: MsgCancelSellOrder): Promise; - buyDirect(request: MsgBuyDirect): Promise; - addAllowedDenom(request: MsgAddAllowedDenom): Promise; - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts deleted file mode 100644 index 47d813da..00000000 --- a/packages/api/types/codegen/regen/ecocredit/marketplace/v1/types.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenom; -} -export interface AllowDenomProposalProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: Uint8Array; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenomAmino; -} -export interface AllowDenomProposalAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: AllowDenomProposalAmino; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalSDKType { - title: string; - description: string; - denom?: AllowedDenomSDKType; -} -export declare const AllowDenomProposal: { - typeUrl: string; - encode(message: AllowDenomProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal; - fromJSON(object: any): AllowDenomProposal; - toJSON(message: AllowDenomProposal): unknown; - fromPartial(object: Partial): AllowDenomProposal; - fromAmino(object: AllowDenomProposalAmino): AllowDenomProposal; - toAmino(message: AllowDenomProposal): AllowDenomProposalAmino; - fromAminoMsg(object: AllowDenomProposalAminoMsg): AllowDenomProposal; - fromProtoMsg(message: AllowDenomProposalProtoMsg): AllowDenomProposal; - toProto(message: AllowDenomProposal): Uint8Array; - toProtoMsg(message: AllowDenomProposal): AllowDenomProposalProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts b/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts deleted file mode 100644 index ead43dc2..00000000 --- a/packages/api/types/codegen/regen/ecocredit/orderbook/v1alpha1/memory.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatch { - /** market_id defines the market within which this match exists. */ - marketId: bigint; - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** sell_order_id is the sell order ID. */ - sellOrderId: bigint; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bidPriceComplement: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - askPrice: number; -} -export interface BuyOrderSellOrderMatchProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: Uint8Array; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchAmino { - /** market_id defines the market within which this match exists. */ - market_id?: string; - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** sell_order_id is the sell order ID. */ - sell_order_id?: string; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bid_price_complement?: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - ask_price?: number; -} -export interface BuyOrderSellOrderMatchAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: BuyOrderSellOrderMatchAmino; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchSDKType { - market_id: bigint; - buy_order_id: bigint; - sell_order_id: bigint; - bid_price_complement: number; - ask_price: number; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** class_id is the class ID. */ - classId: bigint; - /** project_location is the project location in the selector's criteria. */ - projectLocation: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Timestamp; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Timestamp; -} -export interface BuyOrderClassSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: Uint8Array; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** class_id is the class ID. */ - class_id?: string; - /** project_location is the project location in the selector's criteria. */ - project_location?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderClassSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: BuyOrderClassSelectorAmino; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorSDKType { - buy_order_id: bigint; - class_id: bigint; - project_location: string; - min_start_date?: TimestampSDKType; - max_end_date?: TimestampSDKType; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** project_id is the project ID. */ - projectId: bigint; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Timestamp; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Timestamp; -} -export interface BuyOrderProjectSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: Uint8Array; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** project_id is the project ID. */ - project_id?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderProjectSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: BuyOrderProjectSelectorAmino; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorSDKType { - buy_order_id: bigint; - project_id: bigint; - min_start_date?: TimestampSDKType; - max_end_date?: TimestampSDKType; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** batch_id is the batch ID. */ - batchId: bigint; -} -export interface BuyOrderBatchSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: Uint8Array; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** batch_id is the batch ID. */ - batch_id?: string; -} -export interface BuyOrderBatchSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: BuyOrderBatchSelectorAmino; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorSDKType { - buy_order_id: bigint; - batch_id: bigint; -} -export declare const BuyOrderSellOrderMatch: { - typeUrl: string; - encode(message: BuyOrderSellOrderMatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch; - fromJSON(object: any): BuyOrderSellOrderMatch; - toJSON(message: BuyOrderSellOrderMatch): unknown; - fromPartial(object: Partial): BuyOrderSellOrderMatch; - fromAmino(object: BuyOrderSellOrderMatchAmino): BuyOrderSellOrderMatch; - toAmino(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchAmino; - fromAminoMsg(object: BuyOrderSellOrderMatchAminoMsg): BuyOrderSellOrderMatch; - fromProtoMsg(message: BuyOrderSellOrderMatchProtoMsg): BuyOrderSellOrderMatch; - toProto(message: BuyOrderSellOrderMatch): Uint8Array; - toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg; -}; -export declare const BuyOrderClassSelector: { - typeUrl: string; - encode(message: BuyOrderClassSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector; - fromJSON(object: any): BuyOrderClassSelector; - toJSON(message: BuyOrderClassSelector): unknown; - fromPartial(object: Partial): BuyOrderClassSelector; - fromAmino(object: BuyOrderClassSelectorAmino): BuyOrderClassSelector; - toAmino(message: BuyOrderClassSelector): BuyOrderClassSelectorAmino; - fromAminoMsg(object: BuyOrderClassSelectorAminoMsg): BuyOrderClassSelector; - fromProtoMsg(message: BuyOrderClassSelectorProtoMsg): BuyOrderClassSelector; - toProto(message: BuyOrderClassSelector): Uint8Array; - toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg; -}; -export declare const BuyOrderProjectSelector: { - typeUrl: string; - encode(message: BuyOrderProjectSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector; - fromJSON(object: any): BuyOrderProjectSelector; - toJSON(message: BuyOrderProjectSelector): unknown; - fromPartial(object: Partial): BuyOrderProjectSelector; - fromAmino(object: BuyOrderProjectSelectorAmino): BuyOrderProjectSelector; - toAmino(message: BuyOrderProjectSelector): BuyOrderProjectSelectorAmino; - fromAminoMsg(object: BuyOrderProjectSelectorAminoMsg): BuyOrderProjectSelector; - fromProtoMsg(message: BuyOrderProjectSelectorProtoMsg): BuyOrderProjectSelector; - toProto(message: BuyOrderProjectSelector): Uint8Array; - toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg; -}; -export declare const BuyOrderBatchSelector: { - typeUrl: string; - encode(message: BuyOrderBatchSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector; - fromJSON(object: any): BuyOrderBatchSelector; - toJSON(message: BuyOrderBatchSelector): unknown; - fromPartial(object: Partial): BuyOrderBatchSelector; - fromAmino(object: BuyOrderBatchSelectorAmino): BuyOrderBatchSelector; - toAmino(message: BuyOrderBatchSelector): BuyOrderBatchSelectorAmino; - fromAminoMsg(object: BuyOrderBatchSelectorAminoMsg): BuyOrderBatchSelector; - fromProtoMsg(message: BuyOrderBatchSelectorProtoMsg): BuyOrderBatchSelector; - toProto(message: BuyOrderBatchSelector): Uint8Array; - toProtoMsg(message: BuyOrderBatchSelector): BuyOrderBatchSelectorProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts deleted file mode 100644 index 4bb6a87a..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/events.d.ts +++ /dev/null @@ -1,994 +0,0 @@ -import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProject { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface EventCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateProject"; - value: Uint8Array; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface EventCreateProjectAminoMsg { - type: "/regen.ecocredit.v1.EventCreateProject"; - value: EventCreateProjectAmino; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectSDKType { - project_id: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - originTx?: OriginTx; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMint { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradableAmount: string; - /** retired_amount is the amount of retired credits minted. */ - retiredAmount: string; -} -export interface EventMintProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMint"; - value: Uint8Array; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradable_amount?: string; - /** retired_amount is the amount of retired credits minted. */ - retired_amount?: string; -} -export interface EventMintAminoMsg { - type: "/regen.ecocredit.v1.EventMint"; - value: EventMintAmino; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCredits { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - originTx?: OriginTx; -} -export interface EventMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: Uint8Array; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventMintBatchCreditsAminoMsg { - type: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: EventMintBatchCreditsAmino; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransfer { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; -} -export interface EventTransferProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventTransfer"; - value: Uint8Array; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferAmino { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender?: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; -} -export interface EventTransferAminoMsg { - type: "/regen.ecocredit.v1.EventTransfer"; - value: EventTransferAmino; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - owner: string; - batch_denom: string; - amount: string; - jurisdiction: string; - reason: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** owner is the address of the account that cancelled the credits. */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; - /** reason is the reason the credits were cancelled. */ - reason: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** owner is the address of the account that cancelled the credits. */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; - /** reason is the reason the credits were cancelled. */ - reason?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - owner: string; - batch_denom: string; - amount: string; - reason: string; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdmin { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: Uint8Array; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: EventUpdateClassAdminAmino; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminSDKType { - class_id: string; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuers { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: Uint8Array; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: EventUpdateClassIssuersAmino; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersSDKType { - class_id: string; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadata { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: Uint8Array; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: EventUpdateClassMetadataAmino; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataSDKType { - class_id: string; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdmin { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: Uint8Array; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: EventUpdateProjectAdminAmino; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminSDKType { - project_id: string; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadata { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: Uint8Array; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: EventUpdateProjectMetadataAmino; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataSDKType { - project_id: string; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadata { - /** batch_denom is the unique identifier of the batch that was updated. */ - batchDenom: string; -} -export interface EventUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataAmino { - /** batch_denom is the unique identifier of the batch that was updated. */ - batch_denom?: string; -} -export interface EventUpdateBatchMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: EventUpdateBatchMetadataAmino; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataSDKType { - batch_denom: string; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatch { - /** batch_denom is the denom of the batch that was sealed. */ - batchDenom: string; -} -export interface EventSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventSealBatch"; - value: Uint8Array; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchAmino { - /** batch_denom is the denom of the batch that was sealed. */ - batch_denom?: string; -} -export interface EventSealBatchAminoMsg { - type: "/regen.ecocredit.v1.EventSealBatch"; - value: EventSealBatchAmino; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchSDKType { - batch_denom: string; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditType { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface EventAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType"; - value: Uint8Array; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface EventAddCreditTypeAminoMsg { - type: "/regen.ecocredit.v1.EventAddCreditType"; - value: EventAddCreditTypeAmino; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeSDKType { - abbreviation: string; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridge { - /** target is the target chain. */ - target: string; - /** recipient is the recipient address. */ - recipient: string; - /** contract is the contract address. */ - contract: string; - /** amount is the amount of credits. */ - amount: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batchDenom: string; -} -export interface EventBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridge"; - value: Uint8Array; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeAmino { - /** target is the target chain. */ - target?: string; - /** recipient is the recipient address. */ - recipient?: string; - /** contract is the contract address. */ - contract?: string; - /** amount is the amount of credits. */ - amount?: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner?: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batch_denom?: string; -} -export interface EventBridgeAminoMsg { - type: "/regen.ecocredit.v1.EventBridge"; - value: EventBridgeAmino; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeSDKType { - target: string; - recipient: string; - contract: string; - amount: string; - owner: string; - batch_denom: string; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceive { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - originTx?: OriginTx; -} -export interface EventBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; - value: Uint8Array; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveAmino { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - origin_tx?: OriginTxAmino; -} -export interface EventBridgeReceiveAminoMsg { - type: "/regen.ecocredit.v1.EventBridgeReceive"; - value: EventBridgeReceiveAmino; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveSDKType { - project_id: string; - batch_denom: string; - amount: string; - origin_tx?: OriginTxSDKType; -} -export declare const EventCreateClass: { - typeUrl: string; - encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; - fromJSON(object: any): EventCreateClass; - toJSON(message: EventCreateClass): unknown; - fromPartial(object: Partial): EventCreateClass; - fromAmino(object: EventCreateClassAmino): EventCreateClass; - toAmino(message: EventCreateClass): EventCreateClassAmino; - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; - toProto(message: EventCreateClass): Uint8Array; - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; -}; -export declare const EventCreateProject: { - typeUrl: string; - encode(message: EventCreateProject, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject; - fromJSON(object: any): EventCreateProject; - toJSON(message: EventCreateProject): unknown; - fromPartial(object: Partial): EventCreateProject; - fromAmino(object: EventCreateProjectAmino): EventCreateProject; - toAmino(message: EventCreateProject): EventCreateProjectAmino; - fromAminoMsg(object: EventCreateProjectAminoMsg): EventCreateProject; - fromProtoMsg(message: EventCreateProjectProtoMsg): EventCreateProject; - toProto(message: EventCreateProject): Uint8Array; - toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg; -}; -export declare const EventCreateBatch: { - typeUrl: string; - encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; - fromJSON(object: any): EventCreateBatch; - toJSON(message: EventCreateBatch): unknown; - fromPartial(object: Partial): EventCreateBatch; - fromAmino(object: EventCreateBatchAmino): EventCreateBatch; - toAmino(message: EventCreateBatch): EventCreateBatchAmino; - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; - toProto(message: EventCreateBatch): Uint8Array; - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; -}; -export declare const EventMint: { - typeUrl: string; - encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventMint; - fromJSON(object: any): EventMint; - toJSON(message: EventMint): unknown; - fromPartial(object: Partial): EventMint; - fromAmino(object: EventMintAmino): EventMint; - toAmino(message: EventMint): EventMintAmino; - fromAminoMsg(object: EventMintAminoMsg): EventMint; - fromProtoMsg(message: EventMintProtoMsg): EventMint; - toProto(message: EventMint): Uint8Array; - toProtoMsg(message: EventMint): EventMintProtoMsg; -}; -export declare const EventMintBatchCredits: { - typeUrl: string; - encode(message: EventMintBatchCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits; - fromJSON(object: any): EventMintBatchCredits; - toJSON(message: EventMintBatchCredits): unknown; - fromPartial(object: Partial): EventMintBatchCredits; - fromAmino(object: EventMintBatchCreditsAmino): EventMintBatchCredits; - toAmino(message: EventMintBatchCredits): EventMintBatchCreditsAmino; - fromAminoMsg(object: EventMintBatchCreditsAminoMsg): EventMintBatchCredits; - fromProtoMsg(message: EventMintBatchCreditsProtoMsg): EventMintBatchCredits; - toProto(message: EventMintBatchCredits): Uint8Array; - toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg; -}; -export declare const EventTransfer: { - typeUrl: string; - encode(message: EventTransfer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer; - fromJSON(object: any): EventTransfer; - toJSON(message: EventTransfer): unknown; - fromPartial(object: Partial): EventTransfer; - fromAmino(object: EventTransferAmino): EventTransfer; - toAmino(message: EventTransfer): EventTransferAmino; - fromAminoMsg(object: EventTransferAminoMsg): EventTransfer; - fromProtoMsg(message: EventTransferProtoMsg): EventTransfer; - toProto(message: EventTransfer): Uint8Array; - toProtoMsg(message: EventTransfer): EventTransferProtoMsg; -}; -export declare const EventRetire: { - typeUrl: string; - encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; - fromJSON(object: any): EventRetire; - toJSON(message: EventRetire): unknown; - fromPartial(object: Partial): EventRetire; - fromAmino(object: EventRetireAmino): EventRetire; - toAmino(message: EventRetire): EventRetireAmino; - fromAminoMsg(object: EventRetireAminoMsg): EventRetire; - fromProtoMsg(message: EventRetireProtoMsg): EventRetire; - toProto(message: EventRetire): Uint8Array; - toProtoMsg(message: EventRetire): EventRetireProtoMsg; -}; -export declare const EventCancel: { - typeUrl: string; - encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; - fromJSON(object: any): EventCancel; - toJSON(message: EventCancel): unknown; - fromPartial(object: Partial): EventCancel; - fromAmino(object: EventCancelAmino): EventCancel; - toAmino(message: EventCancel): EventCancelAmino; - fromAminoMsg(object: EventCancelAminoMsg): EventCancel; - fromProtoMsg(message: EventCancelProtoMsg): EventCancel; - toProto(message: EventCancel): Uint8Array; - toProtoMsg(message: EventCancel): EventCancelProtoMsg; -}; -export declare const EventUpdateClassAdmin: { - typeUrl: string; - encode(message: EventUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin; - fromJSON(object: any): EventUpdateClassAdmin; - toJSON(message: EventUpdateClassAdmin): unknown; - fromPartial(object: Partial): EventUpdateClassAdmin; - fromAmino(object: EventUpdateClassAdminAmino): EventUpdateClassAdmin; - toAmino(message: EventUpdateClassAdmin): EventUpdateClassAdminAmino; - fromAminoMsg(object: EventUpdateClassAdminAminoMsg): EventUpdateClassAdmin; - fromProtoMsg(message: EventUpdateClassAdminProtoMsg): EventUpdateClassAdmin; - toProto(message: EventUpdateClassAdmin): Uint8Array; - toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg; -}; -export declare const EventUpdateClassIssuers: { - typeUrl: string; - encode(message: EventUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers; - fromJSON(object: any): EventUpdateClassIssuers; - toJSON(message: EventUpdateClassIssuers): unknown; - fromPartial(object: Partial): EventUpdateClassIssuers; - fromAmino(object: EventUpdateClassIssuersAmino): EventUpdateClassIssuers; - toAmino(message: EventUpdateClassIssuers): EventUpdateClassIssuersAmino; - fromAminoMsg(object: EventUpdateClassIssuersAminoMsg): EventUpdateClassIssuers; - fromProtoMsg(message: EventUpdateClassIssuersProtoMsg): EventUpdateClassIssuers; - toProto(message: EventUpdateClassIssuers): Uint8Array; - toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg; -}; -export declare const EventUpdateClassMetadata: { - typeUrl: string; - encode(message: EventUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata; - fromJSON(object: any): EventUpdateClassMetadata; - toJSON(message: EventUpdateClassMetadata): unknown; - fromPartial(object: Partial): EventUpdateClassMetadata; - fromAmino(object: EventUpdateClassMetadataAmino): EventUpdateClassMetadata; - toAmino(message: EventUpdateClassMetadata): EventUpdateClassMetadataAmino; - fromAminoMsg(object: EventUpdateClassMetadataAminoMsg): EventUpdateClassMetadata; - fromProtoMsg(message: EventUpdateClassMetadataProtoMsg): EventUpdateClassMetadata; - toProto(message: EventUpdateClassMetadata): Uint8Array; - toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg; -}; -export declare const EventUpdateProjectAdmin: { - typeUrl: string; - encode(message: EventUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin; - fromJSON(object: any): EventUpdateProjectAdmin; - toJSON(message: EventUpdateProjectAdmin): unknown; - fromPartial(object: Partial): EventUpdateProjectAdmin; - fromAmino(object: EventUpdateProjectAdminAmino): EventUpdateProjectAdmin; - toAmino(message: EventUpdateProjectAdmin): EventUpdateProjectAdminAmino; - fromAminoMsg(object: EventUpdateProjectAdminAminoMsg): EventUpdateProjectAdmin; - fromProtoMsg(message: EventUpdateProjectAdminProtoMsg): EventUpdateProjectAdmin; - toProto(message: EventUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg; -}; -export declare const EventUpdateProjectMetadata: { - typeUrl: string; - encode(message: EventUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata; - fromJSON(object: any): EventUpdateProjectMetadata; - toJSON(message: EventUpdateProjectMetadata): unknown; - fromPartial(object: Partial): EventUpdateProjectMetadata; - fromAmino(object: EventUpdateProjectMetadataAmino): EventUpdateProjectMetadata; - toAmino(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataAmino; - fromAminoMsg(object: EventUpdateProjectMetadataAminoMsg): EventUpdateProjectMetadata; - fromProtoMsg(message: EventUpdateProjectMetadataProtoMsg): EventUpdateProjectMetadata; - toProto(message: EventUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg; -}; -export declare const EventUpdateBatchMetadata: { - typeUrl: string; - encode(message: EventUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata; - fromJSON(object: any): EventUpdateBatchMetadata; - toJSON(message: EventUpdateBatchMetadata): unknown; - fromPartial(object: Partial): EventUpdateBatchMetadata; - fromAmino(object: EventUpdateBatchMetadataAmino): EventUpdateBatchMetadata; - toAmino(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataAmino; - fromAminoMsg(object: EventUpdateBatchMetadataAminoMsg): EventUpdateBatchMetadata; - fromProtoMsg(message: EventUpdateBatchMetadataProtoMsg): EventUpdateBatchMetadata; - toProto(message: EventUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg; -}; -export declare const EventSealBatch: { - typeUrl: string; - encode(message: EventSealBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch; - fromJSON(object: any): EventSealBatch; - toJSON(message: EventSealBatch): unknown; - fromPartial(object: Partial): EventSealBatch; - fromAmino(object: EventSealBatchAmino): EventSealBatch; - toAmino(message: EventSealBatch): EventSealBatchAmino; - fromAminoMsg(object: EventSealBatchAminoMsg): EventSealBatch; - fromProtoMsg(message: EventSealBatchProtoMsg): EventSealBatch; - toProto(message: EventSealBatch): Uint8Array; - toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg; -}; -export declare const EventAddCreditType: { - typeUrl: string; - encode(message: EventAddCreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType; - fromJSON(object: any): EventAddCreditType; - toJSON(message: EventAddCreditType): unknown; - fromPartial(object: Partial): EventAddCreditType; - fromAmino(object: EventAddCreditTypeAmino): EventAddCreditType; - toAmino(message: EventAddCreditType): EventAddCreditTypeAmino; - fromAminoMsg(object: EventAddCreditTypeAminoMsg): EventAddCreditType; - fromProtoMsg(message: EventAddCreditTypeProtoMsg): EventAddCreditType; - toProto(message: EventAddCreditType): Uint8Array; - toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg; -}; -export declare const EventBridge: { - typeUrl: string; - encode(message: EventBridge, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBridge; - fromJSON(object: any): EventBridge; - toJSON(message: EventBridge): unknown; - fromPartial(object: Partial): EventBridge; - fromAmino(object: EventBridgeAmino): EventBridge; - toAmino(message: EventBridge): EventBridgeAmino; - fromAminoMsg(object: EventBridgeAminoMsg): EventBridge; - fromProtoMsg(message: EventBridgeProtoMsg): EventBridge; - toProto(message: EventBridge): Uint8Array; - toProtoMsg(message: EventBridge): EventBridgeProtoMsg; -}; -export declare const EventBridgeReceive: { - typeUrl: string; - encode(message: EventBridgeReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive; - fromJSON(object: any): EventBridgeReceive; - toJSON(message: EventBridgeReceive): unknown; - fromPartial(object: Partial): EventBridgeReceive; - fromAmino(object: EventBridgeReceiveAmino): EventBridgeReceive; - toAmino(message: EventBridgeReceive): EventBridgeReceiveAmino; - fromAminoMsg(object: EventBridgeReceiveAminoMsg): EventBridgeReceive; - fromProtoMsg(message: EventBridgeReceiveProtoMsg): EventBridgeReceive; - toProto(message: EventBridgeReceive): Uint8Array; - toProtoMsg(message: EventBridgeReceive): EventBridgeReceiveProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts deleted file mode 100644 index 8b78a5ba..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/query.d.ts +++ /dev/null @@ -1,2530 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { Params, ParamsAmino, ParamsSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequest { - /** admin is the address of the admin of the class. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: Uint8Array; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestAmino { - /** admin is the address of the admin of the class. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: QueryClassesByAdminRequestAmino; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: Uint8Array; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: QueryClassesByAdminResponseAmino; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; -} -export interface QueryClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest"; - value: Uint8Array; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; -} -export interface QueryClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassRequest"; - value: QueryClassRequestAmino; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponse { - /** class is the fetched credit class. */ - class?: ClassInfo; -} -export interface QueryClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; - value: Uint8Array; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseAmino { - /** class is the fetched credit class. */ - class?: ClassInfoAmino; -} -export interface QueryClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassResponse"; - value: QueryClassResponseAmino; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseSDKType { - class?: ClassInfoSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassIssuersRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassIssuersRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: QueryClassIssuersRequestAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponse { - /** issuers is a list of issuers for the credit class */ - issuers: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseAmino { - /** issuers is a list of issuers for the credit class */ - issuers?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: QueryClassIssuersResponseAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseSDKType { - issuers: string[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: Uint8Array; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: QueryProjectsRequestAmino; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: Uint8Array; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: QueryProjectsResponseAmino; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: Uint8Array; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: QueryProjectsByClassRequestAmino; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: Uint8Array; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: QueryProjectsByClassResponseAmino; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequest { - /** reference_id is the project reference id. */ - referenceId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByReferenceIdRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestAmino { - /** reference_id is the project reference id. */ - reference_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByReferenceIdRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: QueryProjectsByReferenceIdRequestAmino; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestSDKType { - reference_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByReferenceIdResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByReferenceIdResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: QueryProjectsByReferenceIdResponseAmino; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequest { - /** admin is the account address of project admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: Uint8Array; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestAmino { - /** admin is the account address of project admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: QueryProjectsByAdminRequestAmino; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: Uint8Array; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: QueryProjectsByAdminResponseAmino; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; -} -export interface QueryProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest"; - value: Uint8Array; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; -} -export interface QueryProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectRequest"; - value: QueryProjectRequestAmino; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestSDKType { - project_id: string; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponse { - /** project is the fetched project. */ - project?: ProjectInfo; -} -export interface QueryProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; - value: Uint8Array; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseAmino { - /** project is the fetched project. */ - project?: ProjectInfoAmino; -} -export interface QueryProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectResponse"; - value: QueryProjectResponseAmino; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseSDKType { - project?: ProjectInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequest { - /** issuer is the address that issued the batch */ - issuer: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByIssuerRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: Uint8Array; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestAmino { - /** issuer is the address that issued the batch */ - issuer?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByIssuerRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: QueryBatchesByIssuerRequestAmino; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestSDKType { - issuer: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByIssuerResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: Uint8Array; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByIssuerResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: QueryBatchesByIssuerResponseAmino; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: Uint8Array; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: QueryBatchesByClassRequestAmino; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: Uint8Array; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: QueryBatchesByProjectRequestAmino; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestSDKType { - project_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: Uint8Array; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: QueryBatchesByProjectResponseAmino; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: Uint8Array; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: QueryBatchesByClassResponseAmino; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest"; - value: Uint8Array; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchRequest"; - value: QueryBatchRequestAmino; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestSDKType { - batch_denom: string; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponse { - /** batch is the fetched credit batch. */ - batch?: BatchInfo; -} -export interface QueryBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; - value: Uint8Array; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseAmino { - /** batch is the fetched credit batch. */ - batch?: BatchInfoAmino; -} -export interface QueryBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchResponse"; - value: QueryBatchResponseAmino; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseSDKType { - batch?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - address: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfo; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfoAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - balance?: BatchBalanceInfoSDKType; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: Uint8Array; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: QueryBalancesRequestAmino; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: Uint8Array; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: QueryBalancesResponseAmino; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequest { - /** batch_denom is the denom of the batch to query by. */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestAmino { - /** batch_denom is the denom of the batch to query by. */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesByBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: QueryBalancesByBatchRequestAmino; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesByBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: QueryBalancesByBatchResponseAmino; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradableAmount: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retiredAmount: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelledAmount: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradable_amount?: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retired_amount?: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelled_amount?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest { -} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino { -} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType { -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** credit_types are the fetched credit types. */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** credit_types are the fetched credit types. */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequest { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface QueryCreditTypeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: Uint8Array; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface QueryCreditTypeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: QueryCreditTypeRequestAmino; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestSDKType { - abbreviation: string; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponse { - /** credit_type is the fetched credit type. */ - creditType?: CreditType; -} -export interface QueryCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: Uint8Array; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseAmino { - /** credit_type is the fetched credit type. */ - credit_type?: CreditTypeAmino; -} -export interface QueryCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: QueryCreditTypeResponseAmino; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseSDKType { - credit_type?: CreditTypeSDKType; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfo { - /** id is the unique identifier of the credit class. */ - id: string; - /** admin is the admin of the credit class. */ - admin: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - creditTypeAbbrev: string; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoAmino { - /** id is the unique identifier of the credit class. */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - credit_type_abbrev?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoSDKType { - id: string; - admin: string; - metadata: string; - credit_type_abbrev: string; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfo { - /** id is the unique identifier of the project. */ - id: string; - /** admin is the admin of the project. */ - admin: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - classId: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - referenceId: string; -} -export interface ProjectInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectInfo"; - value: Uint8Array; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoAmino { - /** id is the unique identifier of the project. */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - class_id?: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - reference_id?: string; -} -export interface ProjectInfoAminoMsg { - type: "/regen.ecocredit.v1.ProjectInfo"; - value: ProjectInfoAmino; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoSDKType { - id: string; - admin: string; - class_id: string; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfo { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - projectId: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Timestamp; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open: boolean; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoAmino { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - project_id?: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open?: boolean; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoSDKType { - issuer: string; - project_id: string; - denom: string; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - issuance_date?: TimestampSDKType; - open: boolean; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfo { - /** address is the address of the account that owns the credits. */ - address: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: Uint8Array; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoAmino { - /** address is the address of the account that owns the credits. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: BatchBalanceInfoAmino; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoSDKType { - address: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequest { -} -export interface QueryClassCreatorAllowlistRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestAmino { -} -export interface QueryClassCreatorAllowlistRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: QueryClassCreatorAllowlistRequestAmino; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestSDKType { -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponse { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled: boolean; -} -export interface QueryClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseAmino { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled?: boolean; -} -export interface QueryClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: QueryClassCreatorAllowlistResponseAmino; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseSDKType { - enabled: boolean; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedClassCreatorsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedClassCreatorsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: QueryAllowedClassCreatorsRequestAmino; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponse { - /** class_creators is the list of allowed credit class creators. */ - classCreators: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedClassCreatorsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseAmino { - /** class_creators is the list of allowed credit class creators. */ - class_creators?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedClassCreatorsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: QueryAllowedClassCreatorsResponseAmino; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseSDKType { - class_creators: string[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequest { -} -export interface QueryClassFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: Uint8Array; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestAmino { -} -export interface QueryClassFeeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: QueryClassFeeRequestAmino; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestSDKType { -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponse { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface QueryClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: Uint8Array; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface QueryClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: QueryClassFeeResponseAmino; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseSDKType { - fee?: CoinSDKType; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequest { -} -export interface QueryAllowedBridgeChainsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestAmino { -} -export interface QueryAllowedBridgeChainsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: QueryAllowedBridgeChainsRequestAmino; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestSDKType { -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponse { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowedBridgeChains: string[]; -} -export interface QueryAllowedBridgeChainsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseAmino { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowed_bridge_chains?: string[]; -} -export interface QueryAllowedBridgeChainsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: QueryAllowedBridgeChainsResponseAmino; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseSDKType { - allowed_bridge_chains: string[]; -} -export declare const QueryClassesRequest: { - typeUrl: string; - encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; - fromJSON(object: any): QueryClassesRequest; - toJSON(message: QueryClassesRequest): unknown; - fromPartial(object: Partial): QueryClassesRequest; - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; - toProto(message: QueryClassesRequest): Uint8Array; - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; -}; -export declare const QueryClassesResponse: { - typeUrl: string; - encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; - fromJSON(object: any): QueryClassesResponse; - toJSON(message: QueryClassesResponse): unknown; - fromPartial(object: Partial): QueryClassesResponse; - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; - toProto(message: QueryClassesResponse): Uint8Array; - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; -}; -export declare const QueryClassesByAdminRequest: { - typeUrl: string; - encode(message: QueryClassesByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest; - fromJSON(object: any): QueryClassesByAdminRequest; - toJSON(message: QueryClassesByAdminRequest): unknown; - fromPartial(object: Partial): QueryClassesByAdminRequest; - fromAmino(object: QueryClassesByAdminRequestAmino): QueryClassesByAdminRequest; - toAmino(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestAmino; - fromAminoMsg(object: QueryClassesByAdminRequestAminoMsg): QueryClassesByAdminRequest; - fromProtoMsg(message: QueryClassesByAdminRequestProtoMsg): QueryClassesByAdminRequest; - toProto(message: QueryClassesByAdminRequest): Uint8Array; - toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg; -}; -export declare const QueryClassesByAdminResponse: { - typeUrl: string; - encode(message: QueryClassesByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse; - fromJSON(object: any): QueryClassesByAdminResponse; - toJSON(message: QueryClassesByAdminResponse): unknown; - fromPartial(object: Partial): QueryClassesByAdminResponse; - fromAmino(object: QueryClassesByAdminResponseAmino): QueryClassesByAdminResponse; - toAmino(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseAmino; - fromAminoMsg(object: QueryClassesByAdminResponseAminoMsg): QueryClassesByAdminResponse; - fromProtoMsg(message: QueryClassesByAdminResponseProtoMsg): QueryClassesByAdminResponse; - toProto(message: QueryClassesByAdminResponse): Uint8Array; - toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg; -}; -export declare const QueryClassRequest: { - typeUrl: string; - encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; - fromJSON(object: any): QueryClassRequest; - toJSON(message: QueryClassRequest): unknown; - fromPartial(object: Partial): QueryClassRequest; - fromAmino(object: QueryClassRequestAmino): QueryClassRequest; - toAmino(message: QueryClassRequest): QueryClassRequestAmino; - fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest; - fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest; - toProto(message: QueryClassRequest): Uint8Array; - toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; -}; -export declare const QueryClassResponse: { - typeUrl: string; - encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; - fromJSON(object: any): QueryClassResponse; - toJSON(message: QueryClassResponse): unknown; - fromPartial(object: Partial): QueryClassResponse; - fromAmino(object: QueryClassResponseAmino): QueryClassResponse; - toAmino(message: QueryClassResponse): QueryClassResponseAmino; - fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse; - fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse; - toProto(message: QueryClassResponse): Uint8Array; - toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; -}; -export declare const QueryClassIssuersRequest: { - typeUrl: string; - encode(message: QueryClassIssuersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest; - fromJSON(object: any): QueryClassIssuersRequest; - toJSON(message: QueryClassIssuersRequest): unknown; - fromPartial(object: Partial): QueryClassIssuersRequest; - fromAmino(object: QueryClassIssuersRequestAmino): QueryClassIssuersRequest; - toAmino(message: QueryClassIssuersRequest): QueryClassIssuersRequestAmino; - fromAminoMsg(object: QueryClassIssuersRequestAminoMsg): QueryClassIssuersRequest; - fromProtoMsg(message: QueryClassIssuersRequestProtoMsg): QueryClassIssuersRequest; - toProto(message: QueryClassIssuersRequest): Uint8Array; - toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg; -}; -export declare const QueryClassIssuersResponse: { - typeUrl: string; - encode(message: QueryClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse; - fromJSON(object: any): QueryClassIssuersResponse; - toJSON(message: QueryClassIssuersResponse): unknown; - fromPartial(object: Partial): QueryClassIssuersResponse; - fromAmino(object: QueryClassIssuersResponseAmino): QueryClassIssuersResponse; - toAmino(message: QueryClassIssuersResponse): QueryClassIssuersResponseAmino; - fromAminoMsg(object: QueryClassIssuersResponseAminoMsg): QueryClassIssuersResponse; - fromProtoMsg(message: QueryClassIssuersResponseProtoMsg): QueryClassIssuersResponse; - toProto(message: QueryClassIssuersResponse): Uint8Array; - toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg; -}; -export declare const QueryProjectsRequest: { - typeUrl: string; - encode(message: QueryProjectsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest; - fromJSON(object: any): QueryProjectsRequest; - toJSON(message: QueryProjectsRequest): unknown; - fromPartial(object: Partial): QueryProjectsRequest; - fromAmino(object: QueryProjectsRequestAmino): QueryProjectsRequest; - toAmino(message: QueryProjectsRequest): QueryProjectsRequestAmino; - fromAminoMsg(object: QueryProjectsRequestAminoMsg): QueryProjectsRequest; - fromProtoMsg(message: QueryProjectsRequestProtoMsg): QueryProjectsRequest; - toProto(message: QueryProjectsRequest): Uint8Array; - toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg; -}; -export declare const QueryProjectsResponse: { - typeUrl: string; - encode(message: QueryProjectsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse; - fromJSON(object: any): QueryProjectsResponse; - toJSON(message: QueryProjectsResponse): unknown; - fromPartial(object: Partial): QueryProjectsResponse; - fromAmino(object: QueryProjectsResponseAmino): QueryProjectsResponse; - toAmino(message: QueryProjectsResponse): QueryProjectsResponseAmino; - fromAminoMsg(object: QueryProjectsResponseAminoMsg): QueryProjectsResponse; - fromProtoMsg(message: QueryProjectsResponseProtoMsg): QueryProjectsResponse; - toProto(message: QueryProjectsResponse): Uint8Array; - toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg; -}; -export declare const QueryProjectsByClassRequest: { - typeUrl: string; - encode(message: QueryProjectsByClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest; - fromJSON(object: any): QueryProjectsByClassRequest; - toJSON(message: QueryProjectsByClassRequest): unknown; - fromPartial(object: Partial): QueryProjectsByClassRequest; - fromAmino(object: QueryProjectsByClassRequestAmino): QueryProjectsByClassRequest; - toAmino(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestAmino; - fromAminoMsg(object: QueryProjectsByClassRequestAminoMsg): QueryProjectsByClassRequest; - fromProtoMsg(message: QueryProjectsByClassRequestProtoMsg): QueryProjectsByClassRequest; - toProto(message: QueryProjectsByClassRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg; -}; -export declare const QueryProjectsByClassResponse: { - typeUrl: string; - encode(message: QueryProjectsByClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse; - fromJSON(object: any): QueryProjectsByClassResponse; - toJSON(message: QueryProjectsByClassResponse): unknown; - fromPartial(object: Partial): QueryProjectsByClassResponse; - fromAmino(object: QueryProjectsByClassResponseAmino): QueryProjectsByClassResponse; - toAmino(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseAmino; - fromAminoMsg(object: QueryProjectsByClassResponseAminoMsg): QueryProjectsByClassResponse; - fromProtoMsg(message: QueryProjectsByClassResponseProtoMsg): QueryProjectsByClassResponse; - toProto(message: QueryProjectsByClassResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg; -}; -export declare const QueryProjectsByReferenceIdRequest: { - typeUrl: string; - encode(message: QueryProjectsByReferenceIdRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest; - fromJSON(object: any): QueryProjectsByReferenceIdRequest; - toJSON(message: QueryProjectsByReferenceIdRequest): unknown; - fromPartial(object: Partial): QueryProjectsByReferenceIdRequest; - fromAmino(object: QueryProjectsByReferenceIdRequestAmino): QueryProjectsByReferenceIdRequest; - toAmino(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestAmino; - fromAminoMsg(object: QueryProjectsByReferenceIdRequestAminoMsg): QueryProjectsByReferenceIdRequest; - fromProtoMsg(message: QueryProjectsByReferenceIdRequestProtoMsg): QueryProjectsByReferenceIdRequest; - toProto(message: QueryProjectsByReferenceIdRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg; -}; -export declare const QueryProjectsByReferenceIdResponse: { - typeUrl: string; - encode(message: QueryProjectsByReferenceIdResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse; - fromJSON(object: any): QueryProjectsByReferenceIdResponse; - toJSON(message: QueryProjectsByReferenceIdResponse): unknown; - fromPartial(object: Partial): QueryProjectsByReferenceIdResponse; - fromAmino(object: QueryProjectsByReferenceIdResponseAmino): QueryProjectsByReferenceIdResponse; - toAmino(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseAmino; - fromAminoMsg(object: QueryProjectsByReferenceIdResponseAminoMsg): QueryProjectsByReferenceIdResponse; - fromProtoMsg(message: QueryProjectsByReferenceIdResponseProtoMsg): QueryProjectsByReferenceIdResponse; - toProto(message: QueryProjectsByReferenceIdResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg; -}; -export declare const QueryProjectsByAdminRequest: { - typeUrl: string; - encode(message: QueryProjectsByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest; - fromJSON(object: any): QueryProjectsByAdminRequest; - toJSON(message: QueryProjectsByAdminRequest): unknown; - fromPartial(object: Partial): QueryProjectsByAdminRequest; - fromAmino(object: QueryProjectsByAdminRequestAmino): QueryProjectsByAdminRequest; - toAmino(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestAmino; - fromAminoMsg(object: QueryProjectsByAdminRequestAminoMsg): QueryProjectsByAdminRequest; - fromProtoMsg(message: QueryProjectsByAdminRequestProtoMsg): QueryProjectsByAdminRequest; - toProto(message: QueryProjectsByAdminRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg; -}; -export declare const QueryProjectsByAdminResponse: { - typeUrl: string; - encode(message: QueryProjectsByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse; - fromJSON(object: any): QueryProjectsByAdminResponse; - toJSON(message: QueryProjectsByAdminResponse): unknown; - fromPartial(object: Partial): QueryProjectsByAdminResponse; - fromAmino(object: QueryProjectsByAdminResponseAmino): QueryProjectsByAdminResponse; - toAmino(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseAmino; - fromAminoMsg(object: QueryProjectsByAdminResponseAminoMsg): QueryProjectsByAdminResponse; - fromProtoMsg(message: QueryProjectsByAdminResponseProtoMsg): QueryProjectsByAdminResponse; - toProto(message: QueryProjectsByAdminResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg; -}; -export declare const QueryProjectRequest: { - typeUrl: string; - encode(message: QueryProjectRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest; - fromJSON(object: any): QueryProjectRequest; - toJSON(message: QueryProjectRequest): unknown; - fromPartial(object: Partial): QueryProjectRequest; - fromAmino(object: QueryProjectRequestAmino): QueryProjectRequest; - toAmino(message: QueryProjectRequest): QueryProjectRequestAmino; - fromAminoMsg(object: QueryProjectRequestAminoMsg): QueryProjectRequest; - fromProtoMsg(message: QueryProjectRequestProtoMsg): QueryProjectRequest; - toProto(message: QueryProjectRequest): Uint8Array; - toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg; -}; -export declare const QueryProjectResponse: { - typeUrl: string; - encode(message: QueryProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse; - fromJSON(object: any): QueryProjectResponse; - toJSON(message: QueryProjectResponse): unknown; - fromPartial(object: Partial): QueryProjectResponse; - fromAmino(object: QueryProjectResponseAmino): QueryProjectResponse; - toAmino(message: QueryProjectResponse): QueryProjectResponseAmino; - fromAminoMsg(object: QueryProjectResponseAminoMsg): QueryProjectResponse; - fromProtoMsg(message: QueryProjectResponseProtoMsg): QueryProjectResponse; - toProto(message: QueryProjectResponse): Uint8Array; - toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg; -}; -export declare const QueryBatchesRequest: { - typeUrl: string; - encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; - fromJSON(object: any): QueryBatchesRequest; - toJSON(message: QueryBatchesRequest): unknown; - fromPartial(object: Partial): QueryBatchesRequest; - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; - toProto(message: QueryBatchesRequest): Uint8Array; - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; -}; -export declare const QueryBatchesResponse: { - typeUrl: string; - encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; - fromJSON(object: any): QueryBatchesResponse; - toJSON(message: QueryBatchesResponse): unknown; - fromPartial(object: Partial): QueryBatchesResponse; - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; - toProto(message: QueryBatchesResponse): Uint8Array; - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; -}; -export declare const QueryBatchesByIssuerRequest: { - typeUrl: string; - encode(message: QueryBatchesByIssuerRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest; - fromJSON(object: any): QueryBatchesByIssuerRequest; - toJSON(message: QueryBatchesByIssuerRequest): unknown; - fromPartial(object: Partial): QueryBatchesByIssuerRequest; - fromAmino(object: QueryBatchesByIssuerRequestAmino): QueryBatchesByIssuerRequest; - toAmino(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestAmino; - fromAminoMsg(object: QueryBatchesByIssuerRequestAminoMsg): QueryBatchesByIssuerRequest; - fromProtoMsg(message: QueryBatchesByIssuerRequestProtoMsg): QueryBatchesByIssuerRequest; - toProto(message: QueryBatchesByIssuerRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg; -}; -export declare const QueryBatchesByIssuerResponse: { - typeUrl: string; - encode(message: QueryBatchesByIssuerResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse; - fromJSON(object: any): QueryBatchesByIssuerResponse; - toJSON(message: QueryBatchesByIssuerResponse): unknown; - fromPartial(object: Partial): QueryBatchesByIssuerResponse; - fromAmino(object: QueryBatchesByIssuerResponseAmino): QueryBatchesByIssuerResponse; - toAmino(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseAmino; - fromAminoMsg(object: QueryBatchesByIssuerResponseAminoMsg): QueryBatchesByIssuerResponse; - fromProtoMsg(message: QueryBatchesByIssuerResponseProtoMsg): QueryBatchesByIssuerResponse; - toProto(message: QueryBatchesByIssuerResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg; -}; -export declare const QueryBatchesByClassRequest: { - typeUrl: string; - encode(message: QueryBatchesByClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest; - fromJSON(object: any): QueryBatchesByClassRequest; - toJSON(message: QueryBatchesByClassRequest): unknown; - fromPartial(object: Partial): QueryBatchesByClassRequest; - fromAmino(object: QueryBatchesByClassRequestAmino): QueryBatchesByClassRequest; - toAmino(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestAmino; - fromAminoMsg(object: QueryBatchesByClassRequestAminoMsg): QueryBatchesByClassRequest; - fromProtoMsg(message: QueryBatchesByClassRequestProtoMsg): QueryBatchesByClassRequest; - toProto(message: QueryBatchesByClassRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg; -}; -export declare const QueryBatchesByProjectRequest: { - typeUrl: string; - encode(message: QueryBatchesByProjectRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest; - fromJSON(object: any): QueryBatchesByProjectRequest; - toJSON(message: QueryBatchesByProjectRequest): unknown; - fromPartial(object: Partial): QueryBatchesByProjectRequest; - fromAmino(object: QueryBatchesByProjectRequestAmino): QueryBatchesByProjectRequest; - toAmino(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestAmino; - fromAminoMsg(object: QueryBatchesByProjectRequestAminoMsg): QueryBatchesByProjectRequest; - fromProtoMsg(message: QueryBatchesByProjectRequestProtoMsg): QueryBatchesByProjectRequest; - toProto(message: QueryBatchesByProjectRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg; -}; -export declare const QueryBatchesByProjectResponse: { - typeUrl: string; - encode(message: QueryBatchesByProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse; - fromJSON(object: any): QueryBatchesByProjectResponse; - toJSON(message: QueryBatchesByProjectResponse): unknown; - fromPartial(object: Partial): QueryBatchesByProjectResponse; - fromAmino(object: QueryBatchesByProjectResponseAmino): QueryBatchesByProjectResponse; - toAmino(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseAmino; - fromAminoMsg(object: QueryBatchesByProjectResponseAminoMsg): QueryBatchesByProjectResponse; - fromProtoMsg(message: QueryBatchesByProjectResponseProtoMsg): QueryBatchesByProjectResponse; - toProto(message: QueryBatchesByProjectResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg; -}; -export declare const QueryBatchesByClassResponse: { - typeUrl: string; - encode(message: QueryBatchesByClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse; - fromJSON(object: any): QueryBatchesByClassResponse; - toJSON(message: QueryBatchesByClassResponse): unknown; - fromPartial(object: Partial): QueryBatchesByClassResponse; - fromAmino(object: QueryBatchesByClassResponseAmino): QueryBatchesByClassResponse; - toAmino(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseAmino; - fromAminoMsg(object: QueryBatchesByClassResponseAminoMsg): QueryBatchesByClassResponse; - fromProtoMsg(message: QueryBatchesByClassResponseProtoMsg): QueryBatchesByClassResponse; - toProto(message: QueryBatchesByClassResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg; -}; -export declare const QueryBatchRequest: { - typeUrl: string; - encode(message: QueryBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest; - fromJSON(object: any): QueryBatchRequest; - toJSON(message: QueryBatchRequest): unknown; - fromPartial(object: Partial): QueryBatchRequest; - fromAmino(object: QueryBatchRequestAmino): QueryBatchRequest; - toAmino(message: QueryBatchRequest): QueryBatchRequestAmino; - fromAminoMsg(object: QueryBatchRequestAminoMsg): QueryBatchRequest; - fromProtoMsg(message: QueryBatchRequestProtoMsg): QueryBatchRequest; - toProto(message: QueryBatchRequest): Uint8Array; - toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg; -}; -export declare const QueryBatchResponse: { - typeUrl: string; - encode(message: QueryBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse; - fromJSON(object: any): QueryBatchResponse; - toJSON(message: QueryBatchResponse): unknown; - fromPartial(object: Partial): QueryBatchResponse; - fromAmino(object: QueryBatchResponseAmino): QueryBatchResponse; - toAmino(message: QueryBatchResponse): QueryBatchResponseAmino; - fromAminoMsg(object: QueryBatchResponseAminoMsg): QueryBatchResponse; - fromProtoMsg(message: QueryBatchResponseProtoMsg): QueryBatchResponse; - toProto(message: QueryBatchResponse): Uint8Array; - toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg; -}; -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromJSON(object: any): QueryBalanceRequest; - toJSON(message: QueryBalanceRequest): unknown; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromJSON(object: any): QueryBalanceResponse; - toJSON(message: QueryBalanceResponse): unknown; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QueryBalancesRequest: { - typeUrl: string; - encode(message: QueryBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest; - fromJSON(object: any): QueryBalancesRequest; - toJSON(message: QueryBalancesRequest): unknown; - fromPartial(object: Partial): QueryBalancesRequest; - fromAmino(object: QueryBalancesRequestAmino): QueryBalancesRequest; - toAmino(message: QueryBalancesRequest): QueryBalancesRequestAmino; - fromAminoMsg(object: QueryBalancesRequestAminoMsg): QueryBalancesRequest; - fromProtoMsg(message: QueryBalancesRequestProtoMsg): QueryBalancesRequest; - toProto(message: QueryBalancesRequest): Uint8Array; - toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg; -}; -export declare const QueryBalancesResponse: { - typeUrl: string; - encode(message: QueryBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse; - fromJSON(object: any): QueryBalancesResponse; - toJSON(message: QueryBalancesResponse): unknown; - fromPartial(object: Partial): QueryBalancesResponse; - fromAmino(object: QueryBalancesResponseAmino): QueryBalancesResponse; - toAmino(message: QueryBalancesResponse): QueryBalancesResponseAmino; - fromAminoMsg(object: QueryBalancesResponseAminoMsg): QueryBalancesResponse; - fromProtoMsg(message: QueryBalancesResponseProtoMsg): QueryBalancesResponse; - toProto(message: QueryBalancesResponse): Uint8Array; - toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg; -}; -export declare const QueryBalancesByBatchRequest: { - typeUrl: string; - encode(message: QueryBalancesByBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest; - fromJSON(object: any): QueryBalancesByBatchRequest; - toJSON(message: QueryBalancesByBatchRequest): unknown; - fromPartial(object: Partial): QueryBalancesByBatchRequest; - fromAmino(object: QueryBalancesByBatchRequestAmino): QueryBalancesByBatchRequest; - toAmino(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestAmino; - fromAminoMsg(object: QueryBalancesByBatchRequestAminoMsg): QueryBalancesByBatchRequest; - fromProtoMsg(message: QueryBalancesByBatchRequestProtoMsg): QueryBalancesByBatchRequest; - toProto(message: QueryBalancesByBatchRequest): Uint8Array; - toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg; -}; -export declare const QueryBalancesByBatchResponse: { - typeUrl: string; - encode(message: QueryBalancesByBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse; - fromJSON(object: any): QueryBalancesByBatchResponse; - toJSON(message: QueryBalancesByBatchResponse): unknown; - fromPartial(object: Partial): QueryBalancesByBatchResponse; - fromAmino(object: QueryBalancesByBatchResponseAmino): QueryBalancesByBatchResponse; - toAmino(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseAmino; - fromAminoMsg(object: QueryBalancesByBatchResponseAminoMsg): QueryBalancesByBatchResponse; - fromProtoMsg(message: QueryBalancesByBatchResponseProtoMsg): QueryBalancesByBatchResponse; - toProto(message: QueryBalancesByBatchResponse): Uint8Array; - toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg; -}; -export declare const QueryAllBalancesRequest: { - typeUrl: string; - encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; - fromJSON(object: any): QueryAllBalancesRequest; - toJSON(message: QueryAllBalancesRequest): unknown; - fromPartial(object: Partial): QueryAllBalancesRequest; - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; - toProto(message: QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; -}; -export declare const QueryAllBalancesResponse: { - typeUrl: string; - encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; - fromJSON(object: any): QueryAllBalancesResponse; - toJSON(message: QueryAllBalancesResponse): unknown; - fromPartial(object: Partial): QueryAllBalancesResponse; - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; - toProto(message: QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; -}; -export declare const QuerySupplyRequest: { - typeUrl: string; - encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; - fromJSON(object: any): QuerySupplyRequest; - toJSON(message: QuerySupplyRequest): unknown; - fromPartial(object: Partial): QuerySupplyRequest; - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; - toProto(message: QuerySupplyRequest): Uint8Array; - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; -}; -export declare const QuerySupplyResponse: { - typeUrl: string; - encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; - fromJSON(object: any): QuerySupplyResponse; - toJSON(message: QuerySupplyResponse): unknown; - fromPartial(object: Partial): QuerySupplyResponse; - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; - toProto(message: QuerySupplyResponse): Uint8Array; - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; -}; -export declare const QueryCreditTypesRequest: { - typeUrl: string; - encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; - fromJSON(_: any): QueryCreditTypesRequest; - toJSON(_: QueryCreditTypesRequest): unknown; - fromPartial(_: Partial): QueryCreditTypesRequest; - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; - toProto(message: QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; -}; -export declare const QueryCreditTypesResponse: { - typeUrl: string; - encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; - fromJSON(object: any): QueryCreditTypesResponse; - toJSON(message: QueryCreditTypesResponse): unknown; - fromPartial(object: Partial): QueryCreditTypesResponse; - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; - toProto(message: QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryCreditTypeRequest: { - typeUrl: string; - encode(message: QueryCreditTypeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest; - fromJSON(object: any): QueryCreditTypeRequest; - toJSON(message: QueryCreditTypeRequest): unknown; - fromPartial(object: Partial): QueryCreditTypeRequest; - fromAmino(object: QueryCreditTypeRequestAmino): QueryCreditTypeRequest; - toAmino(message: QueryCreditTypeRequest): QueryCreditTypeRequestAmino; - fromAminoMsg(object: QueryCreditTypeRequestAminoMsg): QueryCreditTypeRequest; - fromProtoMsg(message: QueryCreditTypeRequestProtoMsg): QueryCreditTypeRequest; - toProto(message: QueryCreditTypeRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg; -}; -export declare const QueryCreditTypeResponse: { - typeUrl: string; - encode(message: QueryCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse; - fromJSON(object: any): QueryCreditTypeResponse; - toJSON(message: QueryCreditTypeResponse): unknown; - fromPartial(object: Partial): QueryCreditTypeResponse; - fromAmino(object: QueryCreditTypeResponseAmino): QueryCreditTypeResponse; - toAmino(message: QueryCreditTypeResponse): QueryCreditTypeResponseAmino; - fromAminoMsg(object: QueryCreditTypeResponseAminoMsg): QueryCreditTypeResponse; - fromProtoMsg(message: QueryCreditTypeResponseProtoMsg): QueryCreditTypeResponse; - toProto(message: QueryCreditTypeResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg; -}; -export declare const ClassInfo: { - typeUrl: string; - encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; - fromJSON(object: any): ClassInfo; - toJSON(message: ClassInfo): unknown; - fromPartial(object: Partial): ClassInfo; - fromAmino(object: ClassInfoAmino): ClassInfo; - toAmino(message: ClassInfo): ClassInfoAmino; - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; - toProto(message: ClassInfo): Uint8Array; - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; -}; -export declare const ProjectInfo: { - typeUrl: string; - encode(message: ProjectInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo; - fromJSON(object: any): ProjectInfo; - toJSON(message: ProjectInfo): unknown; - fromPartial(object: Partial): ProjectInfo; - fromAmino(object: ProjectInfoAmino): ProjectInfo; - toAmino(message: ProjectInfo): ProjectInfoAmino; - fromAminoMsg(object: ProjectInfoAminoMsg): ProjectInfo; - fromProtoMsg(message: ProjectInfoProtoMsg): ProjectInfo; - toProto(message: ProjectInfo): Uint8Array; - toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg; -}; -export declare const BatchInfo: { - typeUrl: string; - encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; - fromJSON(object: any): BatchInfo; - toJSON(message: BatchInfo): unknown; - fromPartial(object: Partial): BatchInfo; - fromAmino(object: BatchInfoAmino): BatchInfo; - toAmino(message: BatchInfo): BatchInfoAmino; - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; - toProto(message: BatchInfo): Uint8Array; - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; -}; -export declare const BatchBalanceInfo: { - typeUrl: string; - encode(message: BatchBalanceInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo; - fromJSON(object: any): BatchBalanceInfo; - toJSON(message: BatchBalanceInfo): unknown; - fromPartial(object: Partial): BatchBalanceInfo; - fromAmino(object: BatchBalanceInfoAmino): BatchBalanceInfo; - toAmino(message: BatchBalanceInfo): BatchBalanceInfoAmino; - fromAminoMsg(object: BatchBalanceInfoAminoMsg): BatchBalanceInfo; - fromProtoMsg(message: BatchBalanceInfoProtoMsg): BatchBalanceInfo; - toProto(message: BatchBalanceInfo): Uint8Array; - toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg; -}; -export declare const QueryClassCreatorAllowlistRequest: { - typeUrl: string; - encode(_: QueryClassCreatorAllowlistRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest; - fromJSON(_: any): QueryClassCreatorAllowlistRequest; - toJSON(_: QueryClassCreatorAllowlistRequest): unknown; - fromPartial(_: Partial): QueryClassCreatorAllowlistRequest; - fromAmino(_: QueryClassCreatorAllowlistRequestAmino): QueryClassCreatorAllowlistRequest; - toAmino(_: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestAmino; - fromAminoMsg(object: QueryClassCreatorAllowlistRequestAminoMsg): QueryClassCreatorAllowlistRequest; - fromProtoMsg(message: QueryClassCreatorAllowlistRequestProtoMsg): QueryClassCreatorAllowlistRequest; - toProto(message: QueryClassCreatorAllowlistRequest): Uint8Array; - toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg; -}; -export declare const QueryClassCreatorAllowlistResponse: { - typeUrl: string; - encode(message: QueryClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse; - fromJSON(object: any): QueryClassCreatorAllowlistResponse; - toJSON(message: QueryClassCreatorAllowlistResponse): unknown; - fromPartial(object: Partial): QueryClassCreatorAllowlistResponse; - fromAmino(object: QueryClassCreatorAllowlistResponseAmino): QueryClassCreatorAllowlistResponse; - toAmino(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: QueryClassCreatorAllowlistResponseAminoMsg): QueryClassCreatorAllowlistResponse; - fromProtoMsg(message: QueryClassCreatorAllowlistResponseProtoMsg): QueryClassCreatorAllowlistResponse; - toProto(message: QueryClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg; -}; -export declare const QueryAllowedClassCreatorsRequest: { - typeUrl: string; - encode(message: QueryAllowedClassCreatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest; - fromJSON(object: any): QueryAllowedClassCreatorsRequest; - toJSON(message: QueryAllowedClassCreatorsRequest): unknown; - fromPartial(object: Partial): QueryAllowedClassCreatorsRequest; - fromAmino(object: QueryAllowedClassCreatorsRequestAmino): QueryAllowedClassCreatorsRequest; - toAmino(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestAmino; - fromAminoMsg(object: QueryAllowedClassCreatorsRequestAminoMsg): QueryAllowedClassCreatorsRequest; - fromProtoMsg(message: QueryAllowedClassCreatorsRequestProtoMsg): QueryAllowedClassCreatorsRequest; - toProto(message: QueryAllowedClassCreatorsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg; -}; -export declare const QueryAllowedClassCreatorsResponse: { - typeUrl: string; - encode(message: QueryAllowedClassCreatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse; - fromJSON(object: any): QueryAllowedClassCreatorsResponse; - toJSON(message: QueryAllowedClassCreatorsResponse): unknown; - fromPartial(object: Partial): QueryAllowedClassCreatorsResponse; - fromAmino(object: QueryAllowedClassCreatorsResponseAmino): QueryAllowedClassCreatorsResponse; - toAmino(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseAmino; - fromAminoMsg(object: QueryAllowedClassCreatorsResponseAminoMsg): QueryAllowedClassCreatorsResponse; - fromProtoMsg(message: QueryAllowedClassCreatorsResponseProtoMsg): QueryAllowedClassCreatorsResponse; - toProto(message: QueryAllowedClassCreatorsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg; -}; -export declare const QueryClassFeeRequest: { - typeUrl: string; - encode(_: QueryClassFeeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest; - fromJSON(_: any): QueryClassFeeRequest; - toJSON(_: QueryClassFeeRequest): unknown; - fromPartial(_: Partial): QueryClassFeeRequest; - fromAmino(_: QueryClassFeeRequestAmino): QueryClassFeeRequest; - toAmino(_: QueryClassFeeRequest): QueryClassFeeRequestAmino; - fromAminoMsg(object: QueryClassFeeRequestAminoMsg): QueryClassFeeRequest; - fromProtoMsg(message: QueryClassFeeRequestProtoMsg): QueryClassFeeRequest; - toProto(message: QueryClassFeeRequest): Uint8Array; - toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg; -}; -export declare const QueryClassFeeResponse: { - typeUrl: string; - encode(message: QueryClassFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse; - fromJSON(object: any): QueryClassFeeResponse; - toJSON(message: QueryClassFeeResponse): unknown; - fromPartial(object: Partial): QueryClassFeeResponse; - fromAmino(object: QueryClassFeeResponseAmino): QueryClassFeeResponse; - toAmino(message: QueryClassFeeResponse): QueryClassFeeResponseAmino; - fromAminoMsg(object: QueryClassFeeResponseAminoMsg): QueryClassFeeResponse; - fromProtoMsg(message: QueryClassFeeResponseProtoMsg): QueryClassFeeResponse; - toProto(message: QueryClassFeeResponse): Uint8Array; - toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg; -}; -export declare const QueryAllowedBridgeChainsRequest: { - typeUrl: string; - encode(_: QueryAllowedBridgeChainsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest; - fromJSON(_: any): QueryAllowedBridgeChainsRequest; - toJSON(_: QueryAllowedBridgeChainsRequest): unknown; - fromPartial(_: Partial): QueryAllowedBridgeChainsRequest; - fromAmino(_: QueryAllowedBridgeChainsRequestAmino): QueryAllowedBridgeChainsRequest; - toAmino(_: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestAmino; - fromAminoMsg(object: QueryAllowedBridgeChainsRequestAminoMsg): QueryAllowedBridgeChainsRequest; - fromProtoMsg(message: QueryAllowedBridgeChainsRequestProtoMsg): QueryAllowedBridgeChainsRequest; - toProto(message: QueryAllowedBridgeChainsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg; -}; -export declare const QueryAllowedBridgeChainsResponse: { - typeUrl: string; - encode(message: QueryAllowedBridgeChainsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse; - fromJSON(object: any): QueryAllowedBridgeChainsResponse; - toJSON(message: QueryAllowedBridgeChainsResponse): unknown; - fromPartial(object: Partial): QueryAllowedBridgeChainsResponse; - fromAmino(object: QueryAllowedBridgeChainsResponseAmino): QueryAllowedBridgeChainsResponse; - toAmino(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseAmino; - fromAminoMsg(object: QueryAllowedBridgeChainsResponseAminoMsg): QueryAllowedBridgeChainsResponse; - fromProtoMsg(message: QueryAllowedBridgeChainsResponseProtoMsg): QueryAllowedBridgeChainsResponse; - toProto(message: QueryAllowedBridgeChainsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts deleted file mode 100644 index 022714ce..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/query.lcd.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - classes(params?: QueryClassesRequest): Promise; - classesByAdmin(params: QueryClassesByAdminRequest): Promise; - class(params: QueryClassRequest): Promise; - classIssuers(params: QueryClassIssuersRequest): Promise; - projects(params?: QueryProjectsRequest): Promise; - projectsByClass(params: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(params: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(params: QueryProjectsByAdminRequest): Promise; - project(params: QueryProjectRequest): Promise; - batches(params?: QueryBatchesRequest): Promise; - batchesByIssuer(params: QueryBatchesByIssuerRequest): Promise; - batchesByClass(params: QueryBatchesByClassRequest): Promise; - batchesByProject(params: QueryBatchesByProjectRequest): Promise; - batch(params: QueryBatchRequest): Promise; - balance(params: QueryBalanceRequest): Promise; - balances(params: QueryBalancesRequest): Promise; - balancesByBatch(params: QueryBalancesByBatchRequest): Promise; - allBalances(params?: QueryAllBalancesRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - creditTypes(_params?: QueryCreditTypesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - creditType(params: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(_params?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(params?: QueryAllowedClassCreatorsRequest): Promise; - classFee(_params?: QueryClassFeeRequest): Promise; - allowedBridgeChains(_params?: QueryAllowedBridgeChainsRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/query.rpc.Query.d.ts deleted file mode 100644 index de47b8aa..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** - * ClassesByAdmin queries for all credit classes with a specific admin - * address. - */ - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - /** Class queries for information on a credit class. */ - class(request: QueryClassRequest): Promise; - /** ClassIssuers queries for the addresses of the issuers for a credit class. */ - classIssuers(request: QueryClassIssuersRequest): Promise; - /** Projects queries for all projects with pagination. */ - projects(request?: QueryProjectsRequest): Promise; - /** ProjectsByClass queries for all projects within a class with pagination. */ - projectsByClass(request: QueryProjectsByClassRequest): Promise; - /** - * ProjectsByReferenceId queries for all projects by reference-id with - * pagination. - */ - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - /** - * ProjectsByAdmin queries for all projects by admin with - * pagination. - */ - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - /** Project queries for information on a project. */ - project(request: QueryProjectRequest): Promise; - /** Batches queries for all batches with pagination. */ - batches(request?: QueryBatchesRequest): Promise; - /** BatchesByIssuer queries all batches issued from a given issuer address. */ - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - /** BatchesByClass queries all batches issued from a given class. */ - batchesByClass(request: QueryBatchesByClassRequest): Promise; - /** - * BatchesByProject queries for all batches from a given project with - * pagination. - */ - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - /** Batch queries for information on a credit batch. */ - batch(request: QueryBatchRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account address. - */ - balance(request: QueryBalanceRequest): Promise; - /** Balances queries all credit balances the given account holds. */ - balances(request: QueryBalancesRequest): Promise; - /** - * BalancesByBatch queries all credit balances from a given batch. - * - * Since Revision 2 - */ - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - /** - * AllBalances queries all credit balances. - * - * Since Revision 2 - */ - allBalances(request?: QueryAllBalancesRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** - * Params queries the ecocredit module parameters. - * - * Deprecated (Since Revision 2): This rpc will be removed in the next - * version. - */ - params(request?: QueryParamsRequest): Promise; - /** CreditType queries credit type information by abbreviation. */ - creditType(request: QueryCreditTypeRequest): Promise; - /** - * ClassCreatorAllowlist queries the credit class creator allowlist - * enabled setting. - * - * Since Revision 2 - */ - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - /** - * AllowedClassCreators queries allowed credit class creators list. - * - * Since Revision 2 - */ - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - /** - * ClassFee returns the credit class creation fee. If not set, a credit class - * creation fee is not required. - * - * Since Revision 2 - */ - classFee(request?: QueryClassFeeRequest): Promise; - /** - * AllowedBridgeChains queries the list of chains allowed to be used in bridge - * operations. - * - * Since Revision 2 - */ - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - classes(request?: QueryClassesRequest): Promise; - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - class(request: QueryClassRequest): Promise; - classIssuers(request: QueryClassIssuersRequest): Promise; - projects(request?: QueryProjectsRequest): Promise; - projectsByClass(request: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - project(request: QueryProjectRequest): Promise; - batches(request?: QueryBatchesRequest): Promise; - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: QueryBatchesByClassRequest): Promise; - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - batch(request: QueryBatchRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - balances(request: QueryBalancesRequest): Promise; - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - allBalances(request?: QueryAllBalancesRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - creditType(request: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - classFee(request?: QueryClassFeeRequest): Promise; - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - classes(request?: QueryClassesRequest): Promise; - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - class(request: QueryClassRequest): Promise; - classIssuers(request: QueryClassIssuersRequest): Promise; - projects(request?: QueryProjectsRequest): Promise; - projectsByClass(request: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - project(request: QueryProjectRequest): Promise; - batches(request?: QueryBatchesRequest): Promise; - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: QueryBatchesByClassRequest): Promise; - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - batch(request: QueryBatchRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - balances(request: QueryBalancesRequest): Promise; - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - allBalances(request?: QueryAllBalancesRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - creditType(request: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - classFee(request?: QueryClassFeeRequest): Promise; - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts deleted file mode 100644 index 7c3922da..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/state.d.ts +++ /dev/null @@ -1,1143 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit: string; - /** precision is the decimal precision of the credit type. */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name?: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit?: string; - /** precision is the decimal precision of the credit type. */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - abbreviation: string; - name: string; - unit: string; - precision: number; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface Class { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id: string; - /** admin is the admin of the credit class. */ - admin: Uint8Array; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; -} -export interface ClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.Class"; - value: Uint8Array; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassAmino { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; -} -export interface ClassAminoMsg { - type: "/regen.ecocredit.v1.Class"; - value: ClassAmino; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassSDKType { - key: bigint; - id: string; - admin: Uint8Array; - metadata: string; - credit_type_abbrev: string; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuer { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - classKey: bigint; - /** issuer is the approved issuer of the credit class. */ - issuer: Uint8Array; -} -export interface ClassIssuerProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassIssuer"; - value: Uint8Array; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - class_key?: string; - /** issuer is the approved issuer of the credit class. */ - issuer?: string; -} -export interface ClassIssuerAminoMsg { - type: "/regen.ecocredit.v1.ClassIssuer"; - value: ClassIssuerAmino; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerSDKType { - class_key: bigint; - issuer: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface Project { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id: string; - /** admin is the admin of the project. */ - admin: Uint8Array; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - classKey: bigint; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string used to reference the project. */ - referenceId: string; -} -export interface ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectAmino { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - class_key?: string; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string used to reference the project. */ - reference_id?: string; -} -export interface ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: ProjectAmino; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectSDKType { - key: bigint; - id: string; - admin: Uint8Array; - class_key: bigint; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface Batch { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer: Uint8Array; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - projectKey: bigint; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Timestamp; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open: boolean; -} -export interface BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchAmino { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer?: string; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - project_key?: string; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open?: boolean; -} -export interface BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: BatchAmino; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchSDKType { - key: bigint; - issuer: Uint8Array; - project_key: bigint; - denom: string; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - issuance_date?: TimestampSDKType; - open: boolean; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequence { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - creditTypeAbbrev: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - nextSequence: bigint; -} -export interface ClassSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassSequence"; - value: Uint8Array; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceAmino { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - credit_type_abbrev?: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - next_sequence?: string; -} -export interface ClassSequenceAminoMsg { - type: "/regen.ecocredit.v1.ClassSequence"; - value: ClassSequenceAmino; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceSDKType { - credit_type_abbrev: string; - next_sequence: bigint; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequence { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - classKey: bigint; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - nextSequence: bigint; -} -export interface ProjectSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectSequence"; - value: Uint8Array; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - class_key?: string; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - next_sequence?: string; -} -export interface ProjectSequenceAminoMsg { - type: "/regen.ecocredit.v1.ProjectSequence"; - value: ProjectSequenceAmino; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceSDKType { - class_key: bigint; - next_sequence: bigint; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequence { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - projectKey: bigint; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - nextSequence: bigint; -} -export interface BatchSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSequence"; - value: Uint8Array; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceAmino { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - project_key?: string; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - next_sequence?: string; -} -export interface BatchSequenceAminoMsg { - type: "/regen.ecocredit.v1.BatchSequence"; - value: BatchSequenceAmino; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceSDKType { - project_key: bigint; - next_sequence: bigint; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalance { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batchKey: bigint; - /** address is the address of the account that owns the credits. */ - address: Uint8Array; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalance"; - value: Uint8Array; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batch_key?: string; - /** address is the address of the account that owns the credits. */ - address?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceAminoMsg { - type: "/regen.ecocredit.v1.BatchBalance"; - value: BatchBalanceAmino; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceSDKType { - batch_key: bigint; - address: Uint8Array; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupply { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batchKey: bigint; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradableAmount: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retiredAmount: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelledAmount: string; -} -export interface BatchSupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSupply"; - value: Uint8Array; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplyAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batch_key?: string; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradable_amount?: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retired_amount?: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelled_amount?: string; -} -export interface BatchSupplyAminoMsg { - type: "/regen.ecocredit.v1.BatchSupply"; - value: BatchSupplyAmino; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplySDKType { - batch_key: bigint; - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndex { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - classKey: bigint; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source: string; -} -export interface OriginTxIndexProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex"; - value: Uint8Array; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexAmino { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - class_key?: string; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source?: string; -} -export interface OriginTxIndexAminoMsg { - type: "/regen.ecocredit.v1.OriginTxIndex"; - value: OriginTxIndexAmino; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexSDKType { - class_key: bigint; - id: string; - source: string; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContract { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batchKey: bigint; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - classKey: bigint; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract: string; -} -export interface BatchContractProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchContract"; - value: Uint8Array; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batch_key?: string; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - class_key?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract?: string; -} -export interface BatchContractAminoMsg { - type: "/regen.ecocredit.v1.BatchContract"; - value: BatchContractAmino; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractSDKType { - batch_key: bigint; - class_key: bigint; - contract: string; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlist { - /** enabled is whether or not the allow list is enabled. */ - enabled: boolean; -} -export interface ClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistAmino { - /** enabled is whether or not the allow list is enabled. */ - enabled?: boolean; -} -export interface ClassCreatorAllowlistAminoMsg { - type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: ClassCreatorAllowlistAmino; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistSDKType { - enabled: boolean; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreator { - /** address is the address that is allowed to create credit classes */ - address: Uint8Array; -} -export interface AllowedClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator"; - value: Uint8Array; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorAmino { - /** address is the address that is allowed to create credit classes */ - address?: string; -} -export interface AllowedClassCreatorAminoMsg { - type: "/regen.ecocredit.v1.AllowedClassCreator"; - value: AllowedClassCreatorAmino; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorSDKType { - address: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFee { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface ClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassFee"; - value: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface ClassFeeAminoMsg { - type: "/regen.ecocredit.v1.ClassFee"; - value: ClassFeeAmino; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeSDKType { - fee?: CoinSDKType; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChain { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chainName: string; -} -export interface AllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: Uint8Array; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainAmino { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chain_name?: string; -} -export interface AllowedBridgeChainAminoMsg { - type: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: AllowedBridgeChainAmino; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainSDKType { - chain_name: string; -} -export declare const CreditType: { - typeUrl: string; - encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditType; - fromJSON(object: any): CreditType; - toJSON(message: CreditType): unknown; - fromPartial(object: Partial): CreditType; - fromAmino(object: CreditTypeAmino): CreditType; - toAmino(message: CreditType): CreditTypeAmino; - fromAminoMsg(object: CreditTypeAminoMsg): CreditType; - fromProtoMsg(message: CreditTypeProtoMsg): CreditType; - toProto(message: CreditType): Uint8Array; - toProtoMsg(message: CreditType): CreditTypeProtoMsg; -}; -export declare const Class: { - typeUrl: string; - encode(message: Class, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Class; - fromJSON(object: any): Class; - toJSON(message: Class): unknown; - fromPartial(object: Partial): Class; - fromAmino(object: ClassAmino): Class; - toAmino(message: Class): ClassAmino; - fromAminoMsg(object: ClassAminoMsg): Class; - fromProtoMsg(message: ClassProtoMsg): Class; - toProto(message: Class): Uint8Array; - toProtoMsg(message: Class): ClassProtoMsg; -}; -export declare const ClassIssuer: { - typeUrl: string; - encode(message: ClassIssuer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer; - fromJSON(object: any): ClassIssuer; - toJSON(message: ClassIssuer): unknown; - fromPartial(object: Partial): ClassIssuer; - fromAmino(object: ClassIssuerAmino): ClassIssuer; - toAmino(message: ClassIssuer): ClassIssuerAmino; - fromAminoMsg(object: ClassIssuerAminoMsg): ClassIssuer; - fromProtoMsg(message: ClassIssuerProtoMsg): ClassIssuer; - toProto(message: ClassIssuer): Uint8Array; - toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg; -}; -export declare const Project: { - typeUrl: string; - encode(message: Project, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Project; - fromJSON(object: any): Project; - toJSON(message: Project): unknown; - fromPartial(object: Partial): Project; - fromAmino(object: ProjectAmino): Project; - toAmino(message: Project): ProjectAmino; - fromAminoMsg(object: ProjectAminoMsg): Project; - fromProtoMsg(message: ProjectProtoMsg): Project; - toProto(message: Project): Uint8Array; - toProtoMsg(message: Project): ProjectProtoMsg; -}; -export declare const Batch: { - typeUrl: string; - encode(message: Batch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Batch; - fromJSON(object: any): Batch; - toJSON(message: Batch): unknown; - fromPartial(object: Partial): Batch; - fromAmino(object: BatchAmino): Batch; - toAmino(message: Batch): BatchAmino; - fromAminoMsg(object: BatchAminoMsg): Batch; - fromProtoMsg(message: BatchProtoMsg): Batch; - toProto(message: Batch): Uint8Array; - toProtoMsg(message: Batch): BatchProtoMsg; -}; -export declare const ClassSequence: { - typeUrl: string; - encode(message: ClassSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence; - fromJSON(object: any): ClassSequence; - toJSON(message: ClassSequence): unknown; - fromPartial(object: Partial): ClassSequence; - fromAmino(object: ClassSequenceAmino): ClassSequence; - toAmino(message: ClassSequence): ClassSequenceAmino; - fromAminoMsg(object: ClassSequenceAminoMsg): ClassSequence; - fromProtoMsg(message: ClassSequenceProtoMsg): ClassSequence; - toProto(message: ClassSequence): Uint8Array; - toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg; -}; -export declare const ProjectSequence: { - typeUrl: string; - encode(message: ProjectSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence; - fromJSON(object: any): ProjectSequence; - toJSON(message: ProjectSequence): unknown; - fromPartial(object: Partial): ProjectSequence; - fromAmino(object: ProjectSequenceAmino): ProjectSequence; - toAmino(message: ProjectSequence): ProjectSequenceAmino; - fromAminoMsg(object: ProjectSequenceAminoMsg): ProjectSequence; - fromProtoMsg(message: ProjectSequenceProtoMsg): ProjectSequence; - toProto(message: ProjectSequence): Uint8Array; - toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg; -}; -export declare const BatchSequence: { - typeUrl: string; - encode(message: BatchSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence; - fromJSON(object: any): BatchSequence; - toJSON(message: BatchSequence): unknown; - fromPartial(object: Partial): BatchSequence; - fromAmino(object: BatchSequenceAmino): BatchSequence; - toAmino(message: BatchSequence): BatchSequenceAmino; - fromAminoMsg(object: BatchSequenceAminoMsg): BatchSequence; - fromProtoMsg(message: BatchSequenceProtoMsg): BatchSequence; - toProto(message: BatchSequence): Uint8Array; - toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg; -}; -export declare const BatchBalance: { - typeUrl: string; - encode(message: BatchBalance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance; - fromJSON(object: any): BatchBalance; - toJSON(message: BatchBalance): unknown; - fromPartial(object: Partial): BatchBalance; - fromAmino(object: BatchBalanceAmino): BatchBalance; - toAmino(message: BatchBalance): BatchBalanceAmino; - fromAminoMsg(object: BatchBalanceAminoMsg): BatchBalance; - fromProtoMsg(message: BatchBalanceProtoMsg): BatchBalance; - toProto(message: BatchBalance): Uint8Array; - toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg; -}; -export declare const BatchSupply: { - typeUrl: string; - encode(message: BatchSupply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply; - fromJSON(object: any): BatchSupply; - toJSON(message: BatchSupply): unknown; - fromPartial(object: Partial): BatchSupply; - fromAmino(object: BatchSupplyAmino): BatchSupply; - toAmino(message: BatchSupply): BatchSupplyAmino; - fromAminoMsg(object: BatchSupplyAminoMsg): BatchSupply; - fromProtoMsg(message: BatchSupplyProtoMsg): BatchSupply; - toProto(message: BatchSupply): Uint8Array; - toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg; -}; -export declare const OriginTxIndex: { - typeUrl: string; - encode(message: OriginTxIndex, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex; - fromJSON(object: any): OriginTxIndex; - toJSON(message: OriginTxIndex): unknown; - fromPartial(object: Partial): OriginTxIndex; - fromAmino(object: OriginTxIndexAmino): OriginTxIndex; - toAmino(message: OriginTxIndex): OriginTxIndexAmino; - fromAminoMsg(object: OriginTxIndexAminoMsg): OriginTxIndex; - fromProtoMsg(message: OriginTxIndexProtoMsg): OriginTxIndex; - toProto(message: OriginTxIndex): Uint8Array; - toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg; -}; -export declare const BatchContract: { - typeUrl: string; - encode(message: BatchContract, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchContract; - fromJSON(object: any): BatchContract; - toJSON(message: BatchContract): unknown; - fromPartial(object: Partial): BatchContract; - fromAmino(object: BatchContractAmino): BatchContract; - toAmino(message: BatchContract): BatchContractAmino; - fromAminoMsg(object: BatchContractAminoMsg): BatchContract; - fromProtoMsg(message: BatchContractProtoMsg): BatchContract; - toProto(message: BatchContract): Uint8Array; - toProtoMsg(message: BatchContract): BatchContractProtoMsg; -}; -export declare const ClassCreatorAllowlist: { - typeUrl: string; - encode(message: ClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist; - fromJSON(object: any): ClassCreatorAllowlist; - toJSON(message: ClassCreatorAllowlist): unknown; - fromPartial(object: Partial): ClassCreatorAllowlist; - fromAmino(object: ClassCreatorAllowlistAmino): ClassCreatorAllowlist; - toAmino(message: ClassCreatorAllowlist): ClassCreatorAllowlistAmino; - fromAminoMsg(object: ClassCreatorAllowlistAminoMsg): ClassCreatorAllowlist; - fromProtoMsg(message: ClassCreatorAllowlistProtoMsg): ClassCreatorAllowlist; - toProto(message: ClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg; -}; -export declare const AllowedClassCreator: { - typeUrl: string; - encode(message: AllowedClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator; - fromJSON(object: any): AllowedClassCreator; - toJSON(message: AllowedClassCreator): unknown; - fromPartial(object: Partial): AllowedClassCreator; - fromAmino(object: AllowedClassCreatorAmino): AllowedClassCreator; - toAmino(message: AllowedClassCreator): AllowedClassCreatorAmino; - fromAminoMsg(object: AllowedClassCreatorAminoMsg): AllowedClassCreator; - fromProtoMsg(message: AllowedClassCreatorProtoMsg): AllowedClassCreator; - toProto(message: AllowedClassCreator): Uint8Array; - toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg; -}; -export declare const ClassFee: { - typeUrl: string; - encode(message: ClassFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassFee; - fromJSON(object: any): ClassFee; - toJSON(message: ClassFee): unknown; - fromPartial(object: Partial): ClassFee; - fromAmino(object: ClassFeeAmino): ClassFee; - toAmino(message: ClassFee): ClassFeeAmino; - fromAminoMsg(object: ClassFeeAminoMsg): ClassFee; - fromProtoMsg(message: ClassFeeProtoMsg): ClassFee; - toProto(message: ClassFee): Uint8Array; - toProtoMsg(message: ClassFee): ClassFeeProtoMsg; -}; -export declare const AllowedBridgeChain: { - typeUrl: string; - encode(message: AllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain; - fromJSON(object: any): AllowedBridgeChain; - toJSON(message: AllowedBridgeChain): unknown; - fromPartial(object: Partial): AllowedBridgeChain; - fromAmino(object: AllowedBridgeChainAmino): AllowedBridgeChain; - toAmino(message: AllowedBridgeChain): AllowedBridgeChainAmino; - fromAminoMsg(object: AllowedBridgeChainAminoMsg): AllowedBridgeChain; - fromProtoMsg(message: AllowedBridgeChainProtoMsg): AllowedBridgeChain; - toProto(message: AllowedBridgeChain): Uint8Array; - toProtoMsg(message: AllowedBridgeChain): AllowedBridgeChainProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/tx.amino.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/tx.amino.d.ts deleted file mode 100644 index 392f9256..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/tx.amino.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; - fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: MsgCreateProject) => import("./tx").MsgCreateProjectAmino; - fromAmino: (object: import("./tx").MsgCreateProjectAmino) => MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; - fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: MsgMintBatchCredits) => import("./tx").MsgMintBatchCreditsAmino; - fromAmino: (object: import("./tx").MsgMintBatchCreditsAmino) => MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: MsgSealBatch) => import("./tx").MsgSealBatchAmino; - fromAmino: (object: import("./tx").MsgSealBatchAmino) => MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; - fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; - fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateProjectAdmin) => import("./tx").MsgUpdateProjectAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateProjectAdminAmino) => MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateProjectMetadata) => import("./tx").MsgUpdateProjectMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateProjectMetadataAmino) => MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateBatchMetadata) => import("./tx").MsgUpdateBatchMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateBatchMetadataAmino) => MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: MsgBridge) => import("./tx").MsgBridgeAmino; - fromAmino: (object: import("./tx").MsgBridgeAmino) => MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: MsgBridgeReceive) => import("./tx").MsgBridgeReceiveAmino; - fromAmino: (object: import("./tx").MsgBridgeReceiveAmino) => MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: MsgAddCreditType) => import("./tx").MsgAddCreditTypeAmino; - fromAmino: (object: import("./tx").MsgAddCreditTypeAmino) => MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: MsgSetClassCreatorAllowlist) => import("./tx").MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: import("./tx").MsgSetClassCreatorAllowlistAmino) => MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: MsgAddClassCreator) => import("./tx").MsgAddClassCreatorAmino; - fromAmino: (object: import("./tx").MsgAddClassCreatorAmino) => MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: MsgRemoveClassCreator) => import("./tx").MsgRemoveClassCreatorAmino; - fromAmino: (object: import("./tx").MsgRemoveClassCreatorAmino) => MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: MsgUpdateClassFee) => import("./tx").MsgUpdateClassFeeAmino; - fromAmino: (object: import("./tx").MsgUpdateClassFeeAmino) => MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: MsgAddAllowedBridgeChain) => import("./tx").MsgAddAllowedBridgeChainAmino; - fromAmino: (object: import("./tx").MsgAddAllowedBridgeChainAmino) => MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: MsgRemoveAllowedBridgeChain) => import("./tx").MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: import("./tx").MsgRemoveAllowedBridgeChainAmino) => MsgRemoveAllowedBridgeChain; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts deleted file mode 100644 index 804f91b6..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/tx.d.ts +++ /dev/null @@ -1,2627 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditType { - /** authority is the address of the governance account. */ - authority: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - creditType?: CreditType; -} -export interface MsgAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; - value: Uint8Array; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - credit_type?: CreditTypeAmino; -} -export interface MsgAddCreditTypeAminoMsg { - type: "regen/MsgAddCreditType"; - value: MsgAddCreditTypeAmino; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeSDKType { - authority: string; - credit_type?: CreditTypeSDKType; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponse { -} -export interface MsgAddCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: Uint8Array; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseAmino { -} -export interface MsgAddCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: MsgAddCreditTypeResponseAmino; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseSDKType { -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - creditTypeAbbrev: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: Coin; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin?: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers?: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - credit_type_abbrev?: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: CoinAmino; -} -export interface MsgCreateClassAminoMsg { - type: "regen/MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: string; - credit_type_abbrev: string; - fee?: CoinSDKType; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProject { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - classId: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - referenceId: string; -} -export interface MsgCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectAmino { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin?: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - class_id?: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata?: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - reference_id?: string; -} -export interface MsgCreateProjectAminoMsg { - type: "regen/MsgCreateProject"; - value: MsgCreateProjectAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectSDKType { - admin: string; - class_id: string; - metadata: string; - jurisdiction: string; - reference_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponse { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface MsgCreateProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface MsgCreateProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: MsgCreateProjectResponseAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseSDKType { - project_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - projectId: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - originTx?: OriginTx; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - project_id?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open?: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgCreateBatchAminoMsg { - type: "regen/MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - project_id: string; - issuance: BatchIssuanceSDKType[]; - metadata: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - open: boolean; - origin_tx?: OriginTxSDKType; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCredits { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - originTx?: OriginTx; -} -export interface MsgMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; - value: Uint8Array; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsAmino { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgMintBatchCreditsAminoMsg { - type: "regen/MsgMintBatchCredits"; - value: MsgMintBatchCreditsAmino; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsSDKType { - issuer: string; - batch_denom: string; - issuance: BatchIssuanceSDKType[]; - origin_tx?: OriginTxSDKType; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponse { -} -export interface MsgMintBatchCreditsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: Uint8Array; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseAmino { -} -export interface MsgMintBatchCreditsResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: MsgMintBatchCreditsResponseAmino; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseSDKType { -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatch { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch"; - value: Uint8Array; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchAmino { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgSealBatchAminoMsg { - type: "regen/MsgSealBatch"; - value: MsgSealBatchAmino; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchSDKType { - issuer: string; - batch_denom: string; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponse { -} -export interface MsgSealBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: Uint8Array; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseAmino { -} -export interface MsgSealBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: MsgSealBatchResponseAmino; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseSDKType { -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** recipient is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent to the recipient. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** recipient is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent to the recipient. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "regen/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** owner is the address of the account that owns the credits being retired. */ - owner: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits: Credits[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** owner is the address of the account that owns the credits being retired. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits?: CreditsAmino[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface MsgRetireAminoMsg { - type: "regen/MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - owner: string; - credits: CreditsSDKType[]; - jurisdiction: string; - reason: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse { -} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino { -} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType { -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** owner is the address of the account that owns the credits being cancelled. */ - owner: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits: Credits[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason: string; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** owner is the address of the account that owns the credits being cancelled. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits?: CreditsAmino[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason?: string; -} -export interface MsgCancelAminoMsg { - type: "regen/MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - owner: string; - credits: CreditsSDKType[]; - reason: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse { -} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino { -} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType { -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "regen/MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse { -} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino { -} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType { -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - addIssuers: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - removeIssuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - add_issuers?: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - remove_issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "regen/MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - add_issuers: string[]; - remove_issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse { -} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino { -} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType { -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - newMetadata: string; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - new_metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "regen/MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - new_metadata: string; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse { -} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino { -} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType { -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdmin { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - newAdmin: string; -} -export interface MsgUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminAmino { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - new_admin?: string; -} -export interface MsgUpdateProjectAdminAminoMsg { - type: "regen/MsgUpdateProjectAdmin"; - value: MsgUpdateProjectAdminAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminSDKType { - admin: string; - project_id: string; - new_admin: string; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponse { -} -export interface MsgUpdateProjectAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseAmino { -} -export interface MsgUpdateProjectAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: MsgUpdateProjectAdminResponseAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseSDKType { -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadata { - /** admin is the address of the account that is the admin of the project. */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - newMetadata: string; -} -export interface MsgUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata"; - value: Uint8Array; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataAmino { - /** admin is the address of the account that is the admin of the project. */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - new_metadata?: string; -} -export interface MsgUpdateProjectMetadataAminoMsg { - type: "regen/MsgUpdateProjectMetadata"; - value: MsgUpdateProjectMetadataAmino; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataSDKType { - admin: string; - project_id: string; - new_metadata: string; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponse { -} -export interface MsgUpdateProjectMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseAmino { -} -export interface MsgUpdateProjectMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: MsgUpdateProjectMetadataResponseAmino; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseSDKType { -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridge { - /** owner is the address of the account that owns the credits being bridged. */ - owner: string; - /** target is the name of the target chain or registry. */ - target: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits: Credits[]; -} -export interface MsgBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridge"; - value: Uint8Array; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeAmino { - /** owner is the address of the account that owns the credits being bridged. */ - owner?: string; - /** target is the name of the target chain or registry. */ - target?: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient?: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits?: CreditsAmino[]; -} -export interface MsgBridgeAminoMsg { - type: "regen/MsgBridge"; - value: MsgBridgeAmino; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeSDKType { - owner: string; - target: string; - recipient: string; - credits: CreditsSDKType[]; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadata { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer: string; - /** batch_denom is the unique identifier of the batch. */ - batchDenom: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - newMetadata: string; -} -export interface MsgUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataAmino { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer?: string; - /** batch_denom is the unique identifier of the batch. */ - batch_denom?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - new_metadata?: string; -} -export interface MsgUpdateBatchMetadataAminoMsg { - type: "regen/MsgUpdateBatchMetadata"; - value: MsgUpdateBatchMetadataAmino; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataSDKType { - issuer: string; - batch_denom: string; - new_metadata: string; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponse { -} -export interface MsgUpdateBatchMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseAmino { -} -export interface MsgUpdateBatchMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: MsgUpdateBatchMetadataResponseAmino; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseSDKType { -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponse { -} -export interface MsgBridgeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: Uint8Array; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseAmino { -} -export interface MsgBridgeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: MsgBridgeResponseAmino; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseSDKType { -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceive { - /** issuer is the account address of the service bridging the credits. */ - issuer: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - classId: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_Project; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_Batch; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - originTx?: OriginTx; -} -export interface MsgBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; - value: Uint8Array; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveAmino { - /** issuer is the account address of the service bridging the credits. */ - issuer?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - class_id?: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_ProjectAmino; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_BatchAmino; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgBridgeReceiveAminoMsg { - type: "regen/MsgBridgeReceive"; - value: MsgBridgeReceiveAmino; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveSDKType { - issuer: string; - class_id: string; - project?: MsgBridgeReceive_ProjectSDKType; - batch?: MsgBridgeReceive_BatchSDKType; - origin_tx?: OriginTxSDKType; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_Batch { - /** recipient is the recipient of the bridged credits. */ - recipient: string; - /** amount is the amount of credits being bridged. */ - amount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** metadata is the metadata for the credit batch. */ - metadata: string; -} -export interface MsgBridgeReceive_BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchAmino { - /** recipient is the recipient of the bridged credits. */ - recipient?: string; - /** amount is the amount of credits being bridged. */ - amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** metadata is the metadata for the credit batch. */ - metadata?: string; -} -export interface MsgBridgeReceive_BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: MsgBridgeReceive_BatchAmino; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchSDKType { - recipient: string; - amount: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - metadata: string; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_Project { - /** reference_id is the reference id of the project. */ - referenceId: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction: string; - /** metadata is the metadata for the project. */ - metadata: string; -} -export interface MsgBridgeReceive_ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectAmino { - /** reference_id is the reference id of the project. */ - reference_id?: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction?: string; - /** metadata is the metadata for the project. */ - metadata?: string; -} -export interface MsgBridgeReceive_ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: MsgBridgeReceive_ProjectAmino; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectSDKType { - reference_id: string; - jurisdiction: string; - metadata: string; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponse { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; -} -export interface MsgBridgeReceiveResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: Uint8Array; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseAmino { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; -} -export interface MsgBridgeReceiveResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: MsgBridgeReceiveResponseAmino; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseSDKType { - batch_denom: string; - project_id: string; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to add to the class creator list. */ - creator: string; -} -export interface MsgAddClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator"; - value: Uint8Array; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to add to the class creator list. */ - creator?: string; -} -export interface MsgAddClassCreatorAminoMsg { - type: "regen/MsgAddClassCreator"; - value: MsgAddClassCreatorAmino; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponse { -} -export interface MsgAddClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseAmino { -} -export interface MsgAddClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: MsgAddClassCreatorResponseAmino; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseSDKType { -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlist { - /** authority is the address of the governance account. */ - authority: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled: boolean; -} -export interface MsgSetClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled?: boolean; -} -export interface MsgSetClassCreatorAllowlistAminoMsg { - type: "regen/MsgSetClassCreatorAllowlist"; - value: MsgSetClassCreatorAllowlistAmino; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistSDKType { - authority: string; - enabled: boolean; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponse { -} -export interface MsgSetClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseAmino { -} -export interface MsgSetClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: MsgSetClassCreatorAllowlistResponseAmino; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseSDKType { -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to remove from the class creator list. */ - creator: string; -} -export interface MsgRemoveClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to remove from the class creator list. */ - creator?: string; -} -export interface MsgRemoveClassCreatorAminoMsg { - type: "regen/MsgRemoveClassCreator"; - value: MsgRemoveClassCreatorAmino; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponse { -} -export interface MsgRemoveClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseAmino { -} -export interface MsgRemoveClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: MsgRemoveClassCreatorResponseAmino; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseSDKType { -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: Coin; -} -export interface MsgUpdateClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; - value: Uint8Array; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: CoinAmino; -} -export interface MsgUpdateClassFeeAminoMsg { - type: "regen/MsgUpdateClassFee"; - value: MsgUpdateClassFeeAmino; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponse { -} -export interface MsgUpdateClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseAmino { -} -export interface MsgUpdateClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: MsgUpdateClassFeeResponseAmino; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseSDKType { -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgAddAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgAddAllowedBridgeChainAminoMsg { - type: "regen/MsgAddAllowedBridgeChain"; - value: MsgAddAllowedBridgeChainAmino; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponse { -} -export interface MsgAddAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseAmino { -} -export interface MsgAddAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: MsgAddAllowedBridgeChainResponseAmino; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseSDKType { -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgRemoveAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgRemoveAllowedBridgeChainAminoMsg { - type: "regen/MsgRemoveAllowedBridgeChain"; - value: MsgRemoveAllowedBridgeChainAmino; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponse { -} -export interface MsgRemoveAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseAmino { -} -export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: MsgRemoveAllowedBridgeChainResponseAmino; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseSDKType { -} -export declare const MsgAddCreditType: { - typeUrl: string; - encode(message: MsgAddCreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType; - fromJSON(object: any): MsgAddCreditType; - toJSON(message: MsgAddCreditType): unknown; - fromPartial(object: Partial): MsgAddCreditType; - fromAmino(object: MsgAddCreditTypeAmino): MsgAddCreditType; - toAmino(message: MsgAddCreditType): MsgAddCreditTypeAmino; - fromAminoMsg(object: MsgAddCreditTypeAminoMsg): MsgAddCreditType; - toAminoMsg(message: MsgAddCreditType): MsgAddCreditTypeAminoMsg; - fromProtoMsg(message: MsgAddCreditTypeProtoMsg): MsgAddCreditType; - toProto(message: MsgAddCreditType): Uint8Array; - toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg; -}; -export declare const MsgAddCreditTypeResponse: { - typeUrl: string; - encode(_: MsgAddCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse; - fromJSON(_: any): MsgAddCreditTypeResponse; - toJSON(_: MsgAddCreditTypeResponse): unknown; - fromPartial(_: Partial): MsgAddCreditTypeResponse; - fromAmino(_: MsgAddCreditTypeResponseAmino): MsgAddCreditTypeResponse; - toAmino(_: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseAmino; - fromAminoMsg(object: MsgAddCreditTypeResponseAminoMsg): MsgAddCreditTypeResponse; - fromProtoMsg(message: MsgAddCreditTypeResponseProtoMsg): MsgAddCreditTypeResponse; - toProto(message: MsgAddCreditTypeResponse): Uint8Array; - toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg; -}; -export declare const MsgCreateClass: { - typeUrl: string; - encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; - fromJSON(object: any): MsgCreateClass; - toJSON(message: MsgCreateClass): unknown; - fromPartial(object: Partial): MsgCreateClass; - fromAmino(object: MsgCreateClassAmino): MsgCreateClass; - toAmino(message: MsgCreateClass): MsgCreateClassAmino; - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; - toAminoMsg(message: MsgCreateClass): MsgCreateClassAminoMsg; - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; - toProto(message: MsgCreateClass): Uint8Array; - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; -}; -export declare const MsgCreateClassResponse: { - typeUrl: string; - encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; - fromJSON(object: any): MsgCreateClassResponse; - toJSON(message: MsgCreateClassResponse): unknown; - fromPartial(object: Partial): MsgCreateClassResponse; - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; - toProto(message: MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; -}; -export declare const MsgCreateProject: { - typeUrl: string; - encode(message: MsgCreateProject, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject; - fromJSON(object: any): MsgCreateProject; - toJSON(message: MsgCreateProject): unknown; - fromPartial(object: Partial): MsgCreateProject; - fromAmino(object: MsgCreateProjectAmino): MsgCreateProject; - toAmino(message: MsgCreateProject): MsgCreateProjectAmino; - fromAminoMsg(object: MsgCreateProjectAminoMsg): MsgCreateProject; - toAminoMsg(message: MsgCreateProject): MsgCreateProjectAminoMsg; - fromProtoMsg(message: MsgCreateProjectProtoMsg): MsgCreateProject; - toProto(message: MsgCreateProject): Uint8Array; - toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg; -}; -export declare const MsgCreateProjectResponse: { - typeUrl: string; - encode(message: MsgCreateProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse; - fromJSON(object: any): MsgCreateProjectResponse; - toJSON(message: MsgCreateProjectResponse): unknown; - fromPartial(object: Partial): MsgCreateProjectResponse; - fromAmino(object: MsgCreateProjectResponseAmino): MsgCreateProjectResponse; - toAmino(message: MsgCreateProjectResponse): MsgCreateProjectResponseAmino; - fromAminoMsg(object: MsgCreateProjectResponseAminoMsg): MsgCreateProjectResponse; - fromProtoMsg(message: MsgCreateProjectResponseProtoMsg): MsgCreateProjectResponse; - toProto(message: MsgCreateProjectResponse): Uint8Array; - toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg; -}; -export declare const MsgCreateBatch: { - typeUrl: string; - encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; - fromJSON(object: any): MsgCreateBatch; - toJSON(message: MsgCreateBatch): unknown; - fromPartial(object: Partial): MsgCreateBatch; - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; - toAminoMsg(message: MsgCreateBatch): MsgCreateBatchAminoMsg; - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; - toProto(message: MsgCreateBatch): Uint8Array; - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; -}; -export declare const MsgCreateBatchResponse: { - typeUrl: string; - encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; - fromJSON(object: any): MsgCreateBatchResponse; - toJSON(message: MsgCreateBatchResponse): unknown; - fromPartial(object: Partial): MsgCreateBatchResponse; - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; - toProto(message: MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; -}; -export declare const MsgMintBatchCredits: { - typeUrl: string; - encode(message: MsgMintBatchCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits; - fromJSON(object: any): MsgMintBatchCredits; - toJSON(message: MsgMintBatchCredits): unknown; - fromPartial(object: Partial): MsgMintBatchCredits; - fromAmino(object: MsgMintBatchCreditsAmino): MsgMintBatchCredits; - toAmino(message: MsgMintBatchCredits): MsgMintBatchCreditsAmino; - fromAminoMsg(object: MsgMintBatchCreditsAminoMsg): MsgMintBatchCredits; - toAminoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsAminoMsg; - fromProtoMsg(message: MsgMintBatchCreditsProtoMsg): MsgMintBatchCredits; - toProto(message: MsgMintBatchCredits): Uint8Array; - toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg; -}; -export declare const MsgMintBatchCreditsResponse: { - typeUrl: string; - encode(_: MsgMintBatchCreditsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse; - fromJSON(_: any): MsgMintBatchCreditsResponse; - toJSON(_: MsgMintBatchCreditsResponse): unknown; - fromPartial(_: Partial): MsgMintBatchCreditsResponse; - fromAmino(_: MsgMintBatchCreditsResponseAmino): MsgMintBatchCreditsResponse; - toAmino(_: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseAmino; - fromAminoMsg(object: MsgMintBatchCreditsResponseAminoMsg): MsgMintBatchCreditsResponse; - fromProtoMsg(message: MsgMintBatchCreditsResponseProtoMsg): MsgMintBatchCreditsResponse; - toProto(message: MsgMintBatchCreditsResponse): Uint8Array; - toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg; -}; -export declare const MsgSealBatch: { - typeUrl: string; - encode(message: MsgSealBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch; - fromJSON(object: any): MsgSealBatch; - toJSON(message: MsgSealBatch): unknown; - fromPartial(object: Partial): MsgSealBatch; - fromAmino(object: MsgSealBatchAmino): MsgSealBatch; - toAmino(message: MsgSealBatch): MsgSealBatchAmino; - fromAminoMsg(object: MsgSealBatchAminoMsg): MsgSealBatch; - toAminoMsg(message: MsgSealBatch): MsgSealBatchAminoMsg; - fromProtoMsg(message: MsgSealBatchProtoMsg): MsgSealBatch; - toProto(message: MsgSealBatch): Uint8Array; - toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg; -}; -export declare const MsgSealBatchResponse: { - typeUrl: string; - encode(_: MsgSealBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse; - fromJSON(_: any): MsgSealBatchResponse; - toJSON(_: MsgSealBatchResponse): unknown; - fromPartial(_: Partial): MsgSealBatchResponse; - fromAmino(_: MsgSealBatchResponseAmino): MsgSealBatchResponse; - toAmino(_: MsgSealBatchResponse): MsgSealBatchResponseAmino; - fromAminoMsg(object: MsgSealBatchResponseAminoMsg): MsgSealBatchResponse; - fromProtoMsg(message: MsgSealBatchResponseProtoMsg): MsgSealBatchResponse; - toProto(message: MsgSealBatchResponse): Uint8Array; - toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg; -}; -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromJSON(object: any): MsgSend; - toJSON(message: MsgSend): unknown; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - toAminoMsg(message: MsgSend): MsgSendAminoMsg; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSend_SendCredits: { - typeUrl: string; - encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; - fromJSON(object: any): MsgSend_SendCredits; - toJSON(message: MsgSend_SendCredits): unknown; - fromPartial(object: Partial): MsgSend_SendCredits; - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; - toProto(message: MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromJSON(_: any): MsgSendResponse; - toJSON(_: MsgSendResponse): unknown; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgRetire: { - typeUrl: string; - encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; - fromJSON(object: any): MsgRetire; - toJSON(message: MsgRetire): unknown; - fromPartial(object: Partial): MsgRetire; - fromAmino(object: MsgRetireAmino): MsgRetire; - toAmino(message: MsgRetire): MsgRetireAmino; - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; - toAminoMsg(message: MsgRetire): MsgRetireAminoMsg; - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; - toProto(message: MsgRetire): Uint8Array; - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; -}; -export declare const MsgRetireResponse: { - typeUrl: string; - encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; - fromJSON(_: any): MsgRetireResponse; - toJSON(_: MsgRetireResponse): unknown; - fromPartial(_: Partial): MsgRetireResponse; - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; - toProto(message: MsgRetireResponse): Uint8Array; - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; -}; -export declare const MsgCancel: { - typeUrl: string; - encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; - fromJSON(object: any): MsgCancel; - toJSON(message: MsgCancel): unknown; - fromPartial(object: Partial): MsgCancel; - fromAmino(object: MsgCancelAmino): MsgCancel; - toAmino(message: MsgCancel): MsgCancelAmino; - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; - toAminoMsg(message: MsgCancel): MsgCancelAminoMsg; - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; - toProto(message: MsgCancel): Uint8Array; - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; -}; -export declare const MsgCancelResponse: { - typeUrl: string; - encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; - fromJSON(_: any): MsgCancelResponse; - toJSON(_: MsgCancelResponse): unknown; - fromPartial(_: Partial): MsgCancelResponse; - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; - toProto(message: MsgCancelResponse): Uint8Array; - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; -}; -export declare const MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; - fromJSON(object: any): MsgUpdateClassAdmin; - toJSON(message: MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial): MsgUpdateClassAdmin; - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; - toAminoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAminoMsg; - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; - toProto(message: MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; -}; -export declare const MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; - fromJSON(_: any): MsgUpdateClassAdminResponse; - toJSON(_: MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassAdminResponse; - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; - toProto(message: MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; -}; -export declare const MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; - fromJSON(object: any): MsgUpdateClassIssuers; - toJSON(message: MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial): MsgUpdateClassIssuers; - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; - toAminoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAminoMsg; - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; - toProto(message: MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; -}; -export declare const MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; - fromJSON(_: any): MsgUpdateClassIssuersResponse; - toJSON(_: MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassIssuersResponse; - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; -}; -export declare const MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; - fromJSON(object: any): MsgUpdateClassMetadata; - toJSON(message: MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial): MsgUpdateClassMetadata; - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; - toAminoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; - toProto(message: MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; -}; -export declare const MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; - fromJSON(_: any): MsgUpdateClassMetadataResponse; - toJSON(_: MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassMetadataResponse; - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; -}; -export declare const MsgUpdateProjectAdmin: { - typeUrl: string; - encode(message: MsgUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin; - fromJSON(object: any): MsgUpdateProjectAdmin; - toJSON(message: MsgUpdateProjectAdmin): unknown; - fromPartial(object: Partial): MsgUpdateProjectAdmin; - fromAmino(object: MsgUpdateProjectAdminAmino): MsgUpdateProjectAdmin; - toAmino(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAmino; - fromAminoMsg(object: MsgUpdateProjectAdminAminoMsg): MsgUpdateProjectAdmin; - toAminoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAminoMsg; - fromProtoMsg(message: MsgUpdateProjectAdminProtoMsg): MsgUpdateProjectAdmin; - toProto(message: MsgUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg; -}; -export declare const MsgUpdateProjectAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateProjectAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse; - fromJSON(_: any): MsgUpdateProjectAdminResponse; - toJSON(_: MsgUpdateProjectAdminResponse): unknown; - fromPartial(_: Partial): MsgUpdateProjectAdminResponse; - fromAmino(_: MsgUpdateProjectAdminResponseAmino): MsgUpdateProjectAdminResponse; - toAmino(_: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseAmino; - fromAminoMsg(object: MsgUpdateProjectAdminResponseAminoMsg): MsgUpdateProjectAdminResponse; - fromProtoMsg(message: MsgUpdateProjectAdminResponseProtoMsg): MsgUpdateProjectAdminResponse; - toProto(message: MsgUpdateProjectAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg; -}; -export declare const MsgUpdateProjectMetadata: { - typeUrl: string; - encode(message: MsgUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata; - fromJSON(object: any): MsgUpdateProjectMetadata; - toJSON(message: MsgUpdateProjectMetadata): unknown; - fromPartial(object: Partial): MsgUpdateProjectMetadata; - fromAmino(object: MsgUpdateProjectMetadataAmino): MsgUpdateProjectMetadata; - toAmino(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAmino; - fromAminoMsg(object: MsgUpdateProjectMetadataAminoMsg): MsgUpdateProjectMetadata; - toAminoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateProjectMetadataProtoMsg): MsgUpdateProjectMetadata; - toProto(message: MsgUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg; -}; -export declare const MsgUpdateProjectMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateProjectMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse; - fromJSON(_: any): MsgUpdateProjectMetadataResponse; - toJSON(_: MsgUpdateProjectMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateProjectMetadataResponse; - fromAmino(_: MsgUpdateProjectMetadataResponseAmino): MsgUpdateProjectMetadataResponse; - toAmino(_: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateProjectMetadataResponseAminoMsg): MsgUpdateProjectMetadataResponse; - fromProtoMsg(message: MsgUpdateProjectMetadataResponseProtoMsg): MsgUpdateProjectMetadataResponse; - toProto(message: MsgUpdateProjectMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg; -}; -export declare const MsgBridge: { - typeUrl: string; - encode(message: MsgBridge, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge; - fromJSON(object: any): MsgBridge; - toJSON(message: MsgBridge): unknown; - fromPartial(object: Partial): MsgBridge; - fromAmino(object: MsgBridgeAmino): MsgBridge; - toAmino(message: MsgBridge): MsgBridgeAmino; - fromAminoMsg(object: MsgBridgeAminoMsg): MsgBridge; - toAminoMsg(message: MsgBridge): MsgBridgeAminoMsg; - fromProtoMsg(message: MsgBridgeProtoMsg): MsgBridge; - toProto(message: MsgBridge): Uint8Array; - toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg; -}; -export declare const MsgUpdateBatchMetadata: { - typeUrl: string; - encode(message: MsgUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata; - fromJSON(object: any): MsgUpdateBatchMetadata; - toJSON(message: MsgUpdateBatchMetadata): unknown; - fromPartial(object: Partial): MsgUpdateBatchMetadata; - fromAmino(object: MsgUpdateBatchMetadataAmino): MsgUpdateBatchMetadata; - toAmino(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAmino; - fromAminoMsg(object: MsgUpdateBatchMetadataAminoMsg): MsgUpdateBatchMetadata; - toAminoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateBatchMetadataProtoMsg): MsgUpdateBatchMetadata; - toProto(message: MsgUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg; -}; -export declare const MsgUpdateBatchMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateBatchMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse; - fromJSON(_: any): MsgUpdateBatchMetadataResponse; - toJSON(_: MsgUpdateBatchMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateBatchMetadataResponse; - fromAmino(_: MsgUpdateBatchMetadataResponseAmino): MsgUpdateBatchMetadataResponse; - toAmino(_: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateBatchMetadataResponseAminoMsg): MsgUpdateBatchMetadataResponse; - fromProtoMsg(message: MsgUpdateBatchMetadataResponseProtoMsg): MsgUpdateBatchMetadataResponse; - toProto(message: MsgUpdateBatchMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg; -}; -export declare const MsgBridgeResponse: { - typeUrl: string; - encode(_: MsgBridgeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse; - fromJSON(_: any): MsgBridgeResponse; - toJSON(_: MsgBridgeResponse): unknown; - fromPartial(_: Partial): MsgBridgeResponse; - fromAmino(_: MsgBridgeResponseAmino): MsgBridgeResponse; - toAmino(_: MsgBridgeResponse): MsgBridgeResponseAmino; - fromAminoMsg(object: MsgBridgeResponseAminoMsg): MsgBridgeResponse; - fromProtoMsg(message: MsgBridgeResponseProtoMsg): MsgBridgeResponse; - toProto(message: MsgBridgeResponse): Uint8Array; - toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg; -}; -export declare const MsgBridgeReceive: { - typeUrl: string; - encode(message: MsgBridgeReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive; - fromJSON(object: any): MsgBridgeReceive; - toJSON(message: MsgBridgeReceive): unknown; - fromPartial(object: Partial): MsgBridgeReceive; - fromAmino(object: MsgBridgeReceiveAmino): MsgBridgeReceive; - toAmino(message: MsgBridgeReceive): MsgBridgeReceiveAmino; - fromAminoMsg(object: MsgBridgeReceiveAminoMsg): MsgBridgeReceive; - toAminoMsg(message: MsgBridgeReceive): MsgBridgeReceiveAminoMsg; - fromProtoMsg(message: MsgBridgeReceiveProtoMsg): MsgBridgeReceive; - toProto(message: MsgBridgeReceive): Uint8Array; - toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg; -}; -export declare const MsgBridgeReceive_Batch: { - typeUrl: string; - encode(message: MsgBridgeReceive_Batch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch; - fromJSON(object: any): MsgBridgeReceive_Batch; - toJSON(message: MsgBridgeReceive_Batch): unknown; - fromPartial(object: Partial): MsgBridgeReceive_Batch; - fromAmino(object: MsgBridgeReceive_BatchAmino): MsgBridgeReceive_Batch; - toAmino(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchAmino; - fromAminoMsg(object: MsgBridgeReceive_BatchAminoMsg): MsgBridgeReceive_Batch; - fromProtoMsg(message: MsgBridgeReceive_BatchProtoMsg): MsgBridgeReceive_Batch; - toProto(message: MsgBridgeReceive_Batch): Uint8Array; - toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg; -}; -export declare const MsgBridgeReceive_Project: { - typeUrl: string; - encode(message: MsgBridgeReceive_Project, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project; - fromJSON(object: any): MsgBridgeReceive_Project; - toJSON(message: MsgBridgeReceive_Project): unknown; - fromPartial(object: Partial): MsgBridgeReceive_Project; - fromAmino(object: MsgBridgeReceive_ProjectAmino): MsgBridgeReceive_Project; - toAmino(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectAmino; - fromAminoMsg(object: MsgBridgeReceive_ProjectAminoMsg): MsgBridgeReceive_Project; - fromProtoMsg(message: MsgBridgeReceive_ProjectProtoMsg): MsgBridgeReceive_Project; - toProto(message: MsgBridgeReceive_Project): Uint8Array; - toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg; -}; -export declare const MsgBridgeReceiveResponse: { - typeUrl: string; - encode(message: MsgBridgeReceiveResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse; - fromJSON(object: any): MsgBridgeReceiveResponse; - toJSON(message: MsgBridgeReceiveResponse): unknown; - fromPartial(object: Partial): MsgBridgeReceiveResponse; - fromAmino(object: MsgBridgeReceiveResponseAmino): MsgBridgeReceiveResponse; - toAmino(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseAmino; - fromAminoMsg(object: MsgBridgeReceiveResponseAminoMsg): MsgBridgeReceiveResponse; - fromProtoMsg(message: MsgBridgeReceiveResponseProtoMsg): MsgBridgeReceiveResponse; - toProto(message: MsgBridgeReceiveResponse): Uint8Array; - toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg; -}; -export declare const MsgAddClassCreator: { - typeUrl: string; - encode(message: MsgAddClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator; - fromJSON(object: any): MsgAddClassCreator; - toJSON(message: MsgAddClassCreator): unknown; - fromPartial(object: Partial): MsgAddClassCreator; - fromAmino(object: MsgAddClassCreatorAmino): MsgAddClassCreator; - toAmino(message: MsgAddClassCreator): MsgAddClassCreatorAmino; - fromAminoMsg(object: MsgAddClassCreatorAminoMsg): MsgAddClassCreator; - toAminoMsg(message: MsgAddClassCreator): MsgAddClassCreatorAminoMsg; - fromProtoMsg(message: MsgAddClassCreatorProtoMsg): MsgAddClassCreator; - toProto(message: MsgAddClassCreator): Uint8Array; - toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg; -}; -export declare const MsgAddClassCreatorResponse: { - typeUrl: string; - encode(_: MsgAddClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse; - fromJSON(_: any): MsgAddClassCreatorResponse; - toJSON(_: MsgAddClassCreatorResponse): unknown; - fromPartial(_: Partial): MsgAddClassCreatorResponse; - fromAmino(_: MsgAddClassCreatorResponseAmino): MsgAddClassCreatorResponse; - toAmino(_: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseAmino; - fromAminoMsg(object: MsgAddClassCreatorResponseAminoMsg): MsgAddClassCreatorResponse; - fromProtoMsg(message: MsgAddClassCreatorResponseProtoMsg): MsgAddClassCreatorResponse; - toProto(message: MsgAddClassCreatorResponse): Uint8Array; - toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg; -}; -export declare const MsgSetClassCreatorAllowlist: { - typeUrl: string; - encode(message: MsgSetClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist; - fromJSON(object: any): MsgSetClassCreatorAllowlist; - toJSON(message: MsgSetClassCreatorAllowlist): unknown; - fromPartial(object: Partial): MsgSetClassCreatorAllowlist; - fromAmino(object: MsgSetClassCreatorAllowlistAmino): MsgSetClassCreatorAllowlist; - toAmino(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAmino; - fromAminoMsg(object: MsgSetClassCreatorAllowlistAminoMsg): MsgSetClassCreatorAllowlist; - toAminoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAminoMsg; - fromProtoMsg(message: MsgSetClassCreatorAllowlistProtoMsg): MsgSetClassCreatorAllowlist; - toProto(message: MsgSetClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg; -}; -export declare const MsgSetClassCreatorAllowlistResponse: { - typeUrl: string; - encode(_: MsgSetClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse; - fromJSON(_: any): MsgSetClassCreatorAllowlistResponse; - toJSON(_: MsgSetClassCreatorAllowlistResponse): unknown; - fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse; - fromAmino(_: MsgSetClassCreatorAllowlistResponseAmino): MsgSetClassCreatorAllowlistResponse; - toAmino(_: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: MsgSetClassCreatorAllowlistResponseAminoMsg): MsgSetClassCreatorAllowlistResponse; - fromProtoMsg(message: MsgSetClassCreatorAllowlistResponseProtoMsg): MsgSetClassCreatorAllowlistResponse; - toProto(message: MsgSetClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg; -}; -export declare const MsgRemoveClassCreator: { - typeUrl: string; - encode(message: MsgRemoveClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator; - fromJSON(object: any): MsgRemoveClassCreator; - toJSON(message: MsgRemoveClassCreator): unknown; - fromPartial(object: Partial): MsgRemoveClassCreator; - fromAmino(object: MsgRemoveClassCreatorAmino): MsgRemoveClassCreator; - toAmino(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAmino; - fromAminoMsg(object: MsgRemoveClassCreatorAminoMsg): MsgRemoveClassCreator; - toAminoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAminoMsg; - fromProtoMsg(message: MsgRemoveClassCreatorProtoMsg): MsgRemoveClassCreator; - toProto(message: MsgRemoveClassCreator): Uint8Array; - toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg; -}; -export declare const MsgRemoveClassCreatorResponse: { - typeUrl: string; - encode(_: MsgRemoveClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse; - fromJSON(_: any): MsgRemoveClassCreatorResponse; - toJSON(_: MsgRemoveClassCreatorResponse): unknown; - fromPartial(_: Partial): MsgRemoveClassCreatorResponse; - fromAmino(_: MsgRemoveClassCreatorResponseAmino): MsgRemoveClassCreatorResponse; - toAmino(_: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseAmino; - fromAminoMsg(object: MsgRemoveClassCreatorResponseAminoMsg): MsgRemoveClassCreatorResponse; - fromProtoMsg(message: MsgRemoveClassCreatorResponseProtoMsg): MsgRemoveClassCreatorResponse; - toProto(message: MsgRemoveClassCreatorResponse): Uint8Array; - toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg; -}; -export declare const MsgUpdateClassFee: { - typeUrl: string; - encode(message: MsgUpdateClassFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee; - fromJSON(object: any): MsgUpdateClassFee; - toJSON(message: MsgUpdateClassFee): unknown; - fromPartial(object: Partial): MsgUpdateClassFee; - fromAmino(object: MsgUpdateClassFeeAmino): MsgUpdateClassFee; - toAmino(message: MsgUpdateClassFee): MsgUpdateClassFeeAmino; - fromAminoMsg(object: MsgUpdateClassFeeAminoMsg): MsgUpdateClassFee; - toAminoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeAminoMsg; - fromProtoMsg(message: MsgUpdateClassFeeProtoMsg): MsgUpdateClassFee; - toProto(message: MsgUpdateClassFee): Uint8Array; - toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg; -}; -export declare const MsgUpdateClassFeeResponse: { - typeUrl: string; - encode(_: MsgUpdateClassFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse; - fromJSON(_: any): MsgUpdateClassFeeResponse; - toJSON(_: MsgUpdateClassFeeResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassFeeResponse; - fromAmino(_: MsgUpdateClassFeeResponseAmino): MsgUpdateClassFeeResponse; - toAmino(_: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseAmino; - fromAminoMsg(object: MsgUpdateClassFeeResponseAminoMsg): MsgUpdateClassFeeResponse; - fromProtoMsg(message: MsgUpdateClassFeeResponseProtoMsg): MsgUpdateClassFeeResponse; - toProto(message: MsgUpdateClassFeeResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg; -}; -export declare const MsgAddAllowedBridgeChain: { - typeUrl: string; - encode(message: MsgAddAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain; - fromJSON(object: any): MsgAddAllowedBridgeChain; - toJSON(message: MsgAddAllowedBridgeChain): unknown; - fromPartial(object: Partial): MsgAddAllowedBridgeChain; - fromAmino(object: MsgAddAllowedBridgeChainAmino): MsgAddAllowedBridgeChain; - toAmino(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAmino; - fromAminoMsg(object: MsgAddAllowedBridgeChainAminoMsg): MsgAddAllowedBridgeChain; - toAminoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAminoMsg; - fromProtoMsg(message: MsgAddAllowedBridgeChainProtoMsg): MsgAddAllowedBridgeChain; - toProto(message: MsgAddAllowedBridgeChain): Uint8Array; - toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg; -}; -export declare const MsgAddAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: MsgAddAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse; - fromJSON(_: any): MsgAddAllowedBridgeChainResponse; - toJSON(_: MsgAddAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse; - fromAmino(_: MsgAddAllowedBridgeChainResponseAmino): MsgAddAllowedBridgeChainResponse; - toAmino(_: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseAmino; - fromAminoMsg(object: MsgAddAllowedBridgeChainResponseAminoMsg): MsgAddAllowedBridgeChainResponse; - fromProtoMsg(message: MsgAddAllowedBridgeChainResponseProtoMsg): MsgAddAllowedBridgeChainResponse; - toProto(message: MsgAddAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg; -}; -export declare const MsgRemoveAllowedBridgeChain: { - typeUrl: string; - encode(message: MsgRemoveAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain; - fromJSON(object: any): MsgRemoveAllowedBridgeChain; - toJSON(message: MsgRemoveAllowedBridgeChain): unknown; - fromPartial(object: Partial): MsgRemoveAllowedBridgeChain; - fromAmino(object: MsgRemoveAllowedBridgeChainAmino): MsgRemoveAllowedBridgeChain; - toAmino(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAmino; - fromAminoMsg(object: MsgRemoveAllowedBridgeChainAminoMsg): MsgRemoveAllowedBridgeChain; - toAminoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAminoMsg; - fromProtoMsg(message: MsgRemoveAllowedBridgeChainProtoMsg): MsgRemoveAllowedBridgeChain; - toProto(message: MsgRemoveAllowedBridgeChain): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg; -}; -export declare const MsgRemoveAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: MsgRemoveAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse; - fromJSON(_: any): MsgRemoveAllowedBridgeChainResponse; - toJSON(_: MsgRemoveAllowedBridgeChainResponse): unknown; - fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse; - fromAmino(_: MsgRemoveAllowedBridgeChainResponseAmino): MsgRemoveAllowedBridgeChainResponse; - toAmino(_: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseAmino; - fromAminoMsg(object: MsgRemoveAllowedBridgeChainResponseAminoMsg): MsgRemoveAllowedBridgeChainResponse; - fromProtoMsg(message: MsgRemoveAllowedBridgeChainResponseProtoMsg): MsgRemoveAllowedBridgeChainResponse; - toProto(message: MsgRemoveAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/tx.registry.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/tx.registry.d.ts deleted file mode 100644 index 1d6c74f9..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/tx.registry.d.ts +++ /dev/null @@ -1,476 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: Uint8Array; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: Uint8Array; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: Uint8Array; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: Uint8Array; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: Uint8Array; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: Uint8Array; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: MsgCreateProject; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: MsgMintBatchCredits; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: MsgSealBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: MsgUpdateBatchMetadata; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: MsgBridge; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: MsgBridgeReceive; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: MsgAddCreditType; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: MsgAddClassCreator; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: MsgRemoveClassCreator; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: MsgRemoveAllowedBridgeChain; - }; - }; - toJSON: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: unknown; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: unknown; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: unknown; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: unknown; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: unknown; - }; - send(value: MsgSend): { - typeUrl: string; - value: unknown; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: unknown; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: unknown; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: unknown; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: unknown; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: unknown; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: unknown; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: unknown; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: unknown; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: unknown; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: unknown; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: unknown; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: unknown; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: unknown; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: unknown; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: unknown; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: unknown; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClass(value: any): { - typeUrl: string; - value: MsgCreateClass; - }; - createProject(value: any): { - typeUrl: string; - value: MsgCreateProject; - }; - createBatch(value: any): { - typeUrl: string; - value: MsgCreateBatch; - }; - mintBatchCredits(value: any): { - typeUrl: string; - value: MsgMintBatchCredits; - }; - sealBatch(value: any): { - typeUrl: string; - value: MsgSealBatch; - }; - send(value: any): { - typeUrl: string; - value: MsgSend; - }; - retire(value: any): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: any): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: any): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: any): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: any): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: any): { - typeUrl: string; - value: MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: any): { - typeUrl: string; - value: MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: any): { - typeUrl: string; - value: MsgUpdateBatchMetadata; - }; - bridge(value: any): { - typeUrl: string; - value: MsgBridge; - }; - bridgeReceive(value: any): { - typeUrl: string; - value: MsgBridgeReceive; - }; - addCreditType(value: any): { - typeUrl: string; - value: MsgAddCreditType; - }; - setClassCreatorAllowlist(value: any): { - typeUrl: string; - value: MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: any): { - typeUrl: string; - value: MsgAddClassCreator; - }; - removeClassCreator(value: any): { - typeUrl: string; - value: MsgRemoveClassCreator; - }; - updateClassFee(value: any): { - typeUrl: string; - value: MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: any): { - typeUrl: string; - value: MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: any): { - typeUrl: string; - value: MsgRemoveAllowedBridgeChain; - }; - }; - fromPartial: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: MsgCreateProject; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: MsgMintBatchCredits; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: MsgSealBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: MsgUpdateBatchMetadata; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: MsgBridge; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: MsgBridgeReceive; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: MsgAddCreditType; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: MsgAddClassCreator; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: MsgRemoveClassCreator; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: MsgRemoveAllowedBridgeChain; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/tx.rpc.msg.d.ts deleted file mode 100644 index cddea8c1..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class under the given credit type with an - * approved list of issuers and optional metadata. If the class fee parameter - * is set, the fee field must be populated with equal value. A greater fee can - * be provided, however, the creator will only be charged the amount specified - * in the fee parameter. The creator of the credit class becomes the admin of - * the credit class upon creation. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateProject creates a new project under the given credit class with a - * jurisdiction, optional metadata, and an optional reference ID. The creator - * of the project must be an approved credit class issuer for the given credit - * class. The creator becomes the admin of the project upon creation. - */ - createProject(request: MsgCreateProject): Promise; - /** - * CreateBatch creates a new batch of credits under the given project with a - * start and end date representing the monitoring period, a list of credits to - * be issued with each issuance specifying a recipient, the amount of tradable - * and retired credits, and the retirement jurisdiction (if credits are to be - * retired upon receipt), and optional metadata. The credit batch creator must - * be listed as an approved issuer within the credit class of the project that - * the credits are being issued under. - * - * The default behavior is for a new credit batch to be "sealed" as opposed to - * being "open". When a credit batch is "open", new credits can be dynamically - * minted to the credit batch following the creation of the credit batch. This - * "open" option should only be set to true when bridging credits from another - * chain or registry as a result of a bridge operation and is not intended for - * native credit issuance. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * MintBatchCredits dynamically mints credits to an "open" credit batch. This - * feature is only meant to be used when bridging credits from another chain - * or registry and is not intended for native credit issuance. When bridging - * credits from the same vintage (or monitoring period) as an existing credit - * batch, the credits can be dynamically minted to the existing credit batch - * if the credit batch is "open". - */ - mintBatchCredits(request: MsgMintBatchCredits): Promise; - /** - * MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed - * (i.e. once "open" is set to false), credits can no longer be dynamically - * minted to the credit batch. A sealed credit batch cannot be unsealed and - * only the credit batch issuer can seal a credit batch. - */ - sealBatch(request: MsgSealBatch): Promise; - /** - * Send sends a specified amount of tradable credits from the credit owner's - * account to another account. Sent credits can either remain tradable or be - * retired upon receipt. - */ - send(request: MsgSend): Promise; - /** - * Retire retires a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and adding it to their retired - * balance. Retiring credits is permanent and implies the credits are being - * consumed as a offset. - */ - retire(request: MsgRetire): Promise; - /** - * Cancel cancels a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and removing the amount from the - * credit batch's tradable supply. Cancelling credits is permanent and implies - * the credits have been moved to another chain or registry. - */ - cancel(request: MsgCancel): Promise; - /** - * UpdateClassAdmin updates the credit class admin. Only the admin of the - * credit class can update the credit class. - */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** - * UpdateClassIssuers updates the credit class issuer list. Only the admin of - * the credit class can update the credit class. - */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** - * UpdateClassMetadata updates the credit class metadata. Only the admin of - * the credit class can update the credit class. - */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; - /** - * UpdateProjectAdmin updates the project admin address. Only the admin of the - * project can update the project. - */ - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; - /** - * UpdateProjectMetadata updates the project metadata. Only the admin of the - * project can update the project. - */ - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; - /** - * UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be - * updated and only the issuer of the batch can update the batch. - * - * Since Revision 2 - */ - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; - /** - * Bridge processes credits being sent back to the source chain. When credits - * are sent back to the source chain, the credits are cancelled and an event - * is emitted to be handled by an external bridge service. - */ - bridge(request: MsgBridge): Promise; - /** - * BridgeReceive processes credits being sent from another chain. When the - * credits are sent from the same vintage as an existing credit batch within - * the scope of the provided credit class, the credits will be minted to the - * existing credit batch, otherwise the credits will be issued in a new credit - * batch. The new credit batch will be created under an existing project if a - * project with a matching reference id already exists within the scope of the - * credit class, otherwise a new project will be created. - */ - bridgeReceive(request: MsgBridgeReceive): Promise; - /** - * AddCreditType is a governance method that allows the addition of new - * credit types to the network. - * - * Since Revision 2 - */ - addCreditType(request: MsgAddCreditType): Promise; - /** - * SetClassCreatorAllowlist is a governance method that updates the class - * creator allowlist enabled setting. When enabled, only addresses listed in - * the allowlist can create credit classes. When disabled, any address can - * create credit classes. - * - * Since Revision 2 - */ - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; - /** - * AddClassCreator is a governance method that allows the addition of a new - * address to the class creation allowlist. - * - * Since Revision 2 - */ - addClassCreator(request: MsgAddClassCreator): Promise; - /** - * RemoveClassCreator is a governance method that removes an - * address from the class creation allowlist. - * - * Since Revision 2 - */ - removeClassCreator(request: MsgRemoveClassCreator): Promise; - /** - * UpdateClassFee is a governance method that allows for updating the credit - * class creation fee. If no fee is specified in the request, the credit - * class creation fee will be removed and no fee will be required to create - * a credit class. - * - * Since Revision 2 - */ - updateClassFee(request: MsgUpdateClassFee): Promise; - /** - * AddAllowedBridgeChain is a governance method that allows for the - * addition of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; - /** - * RemoveAllowedBridgeChain is a governance method that allows for the - * removal of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClass(request: MsgCreateClass): Promise; - createProject(request: MsgCreateProject): Promise; - createBatch(request: MsgCreateBatch): Promise; - mintBatchCredits(request: MsgMintBatchCredits): Promise; - sealBatch(request: MsgSealBatch): Promise; - send(request: MsgSend): Promise; - retire(request: MsgRetire): Promise; - cancel(request: MsgCancel): Promise; - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; - bridge(request: MsgBridge): Promise; - bridgeReceive(request: MsgBridgeReceive): Promise; - addCreditType(request: MsgAddCreditType): Promise; - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; - addClassCreator(request: MsgAddClassCreator): Promise; - removeClassCreator(request: MsgRemoveClassCreator): Promise; - updateClassFee(request: MsgUpdateClassFee): Promise; - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts deleted file mode 100644 index e5b3d54a..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1/types.d.ts +++ /dev/null @@ -1,505 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - creditClassFee: Coin[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basketFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlistEnabled: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowedDenoms: AllowedDenom[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowedBridgeChains: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - credit_class_fee?: CoinAmino[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basket_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlist_enabled?: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowed_denoms?: AllowedDenomAmino[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowed_bridge_chains?: string[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - basket_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - allowed_denoms: AllowedDenomSDKType[]; - allowed_bridge_chains: string[]; -} -/** Credits represents a simple structure for credits. */ -export interface Credits { - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; - /** amount is the amount of credits. */ - amount: string; -} -export interface CreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Credits"; - value: Uint8Array; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsAmino { - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; - /** amount is the amount of credits. */ - amount?: string; -} -export interface CreditsAminoMsg { - type: "/regen.ecocredit.v1.Credits"; - value: CreditsAmino; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsSDKType { - batch_denom: string; - amount: string; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuance { - /** recipient is the address of the account receiving the issued credits. */ - recipient: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchIssuance"; - value: Uint8Array; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceAmino { - /** recipient is the address of the account receiving the issued credits. */ - recipient?: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1.BatchIssuance"; - value: BatchIssuanceAmino; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTx { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note: string; -} -export interface OriginTxProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTx"; - value: Uint8Array; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxAmino { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract?: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note?: string; -} -export interface OriginTxAminoMsg { - type: "/regen.ecocredit.v1.OriginTx"; - value: OriginTxAmino; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxSDKType { - id: string; - source: string; - contract: string; - note: string; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - creditType?: CreditType; -} -export interface CreditTypeProposalProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; - value: Uint8Array; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - credit_type?: CreditTypeAmino; -} -export interface CreditTypeProposalAminoMsg { - type: "/regen.ecocredit.v1.CreditTypeProposal"; - value: CreditTypeProposalAmino; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalSDKType { - title: string; - description: string; - credit_type?: CreditTypeSDKType; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedDenom"; - value: Uint8Array; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const Credits: { - typeUrl: string; - encode(message: Credits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Credits; - fromJSON(object: any): Credits; - toJSON(message: Credits): unknown; - fromPartial(object: Partial): Credits; - fromAmino(object: CreditsAmino): Credits; - toAmino(message: Credits): CreditsAmino; - fromAminoMsg(object: CreditsAminoMsg): Credits; - fromProtoMsg(message: CreditsProtoMsg): Credits; - toProto(message: Credits): Uint8Array; - toProtoMsg(message: Credits): CreditsProtoMsg; -}; -export declare const BatchIssuance: { - typeUrl: string; - encode(message: BatchIssuance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance; - fromJSON(object: any): BatchIssuance; - toJSON(message: BatchIssuance): unknown; - fromPartial(object: Partial): BatchIssuance; - fromAmino(object: BatchIssuanceAmino): BatchIssuance; - toAmino(message: BatchIssuance): BatchIssuanceAmino; - fromAminoMsg(object: BatchIssuanceAminoMsg): BatchIssuance; - fromProtoMsg(message: BatchIssuanceProtoMsg): BatchIssuance; - toProto(message: BatchIssuance): Uint8Array; - toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg; -}; -export declare const OriginTx: { - typeUrl: string; - encode(message: OriginTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OriginTx; - fromJSON(object: any): OriginTx; - toJSON(message: OriginTx): unknown; - fromPartial(object: Partial): OriginTx; - fromAmino(object: OriginTxAmino): OriginTx; - toAmino(message: OriginTx): OriginTxAmino; - fromAminoMsg(object: OriginTxAminoMsg): OriginTx; - fromProtoMsg(message: OriginTxProtoMsg): OriginTx; - toProto(message: OriginTx): Uint8Array; - toProtoMsg(message: OriginTx): OriginTxProtoMsg; -}; -export declare const CreditTypeProposal: { - typeUrl: string; - encode(message: CreditTypeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal; - fromJSON(object: any): CreditTypeProposal; - toJSON(message: CreditTypeProposal): unknown; - fromPartial(object: Partial): CreditTypeProposal; - fromAmino(object: CreditTypeProposalAmino): CreditTypeProposal; - toAmino(message: CreditTypeProposal): CreditTypeProposalAmino; - fromAminoMsg(object: CreditTypeProposalAminoMsg): CreditTypeProposal; - fromProtoMsg(message: CreditTypeProposalProtoMsg): CreditTypeProposal; - toProto(message: CreditTypeProposal): Uint8Array; - toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg; -}; -export declare const AllowedDenom: { - typeUrl: string; - encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; - fromJSON(object: any): AllowedDenom; - toJSON(message: AllowedDenom): unknown; - fromPartial(object: Partial): AllowedDenom; - fromAmino(object: AllowedDenomAmino): AllowedDenom; - toAmino(message: AllowedDenom): AllowedDenomAmino; - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; - toProto(message: AllowedDenom): Uint8Array; - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts deleted file mode 100644 index 0a9cd9fb..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/events.d.ts +++ /dev/null @@ -1,367 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; - admin: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer: string; - /** total_amount is the total number of credits in the credit batch. */ - totalAmount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer?: string; - /** total_amount is the total number of credits in the credit batch. */ - total_amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - start_date: string; - end_date: string; - project_location: string; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceive { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender: string; - /** recipient is the recipient of the credits. */ - recipient: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basketDenom: string; -} -export interface EventReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive"; - value: Uint8Array; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveAmino { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender?: string; - /** recipient is the recipient of the credits. */ - recipient?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basket_denom?: string; -} -export interface EventReceiveAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventReceive"; - value: EventReceiveAmino; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - basket_denom: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - retirer: string; - batch_denom: string; - amount: string; - location: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - canceller: string; - batch_denom: string; - amount: string; -} -export declare const EventCreateClass: { - typeUrl: string; - encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; - fromJSON(object: any): EventCreateClass; - toJSON(message: EventCreateClass): unknown; - fromPartial(object: Partial): EventCreateClass; - fromAmino(object: EventCreateClassAmino): EventCreateClass; - toAmino(message: EventCreateClass): EventCreateClassAmino; - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; - toProto(message: EventCreateClass): Uint8Array; - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; -}; -export declare const EventCreateBatch: { - typeUrl: string; - encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; - fromJSON(object: any): EventCreateBatch; - toJSON(message: EventCreateBatch): unknown; - fromPartial(object: Partial): EventCreateBatch; - fromAmino(object: EventCreateBatchAmino): EventCreateBatch; - toAmino(message: EventCreateBatch): EventCreateBatchAmino; - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; - toProto(message: EventCreateBatch): Uint8Array; - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; -}; -export declare const EventReceive: { - typeUrl: string; - encode(message: EventReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventReceive; - fromJSON(object: any): EventReceive; - toJSON(message: EventReceive): unknown; - fromPartial(object: Partial): EventReceive; - fromAmino(object: EventReceiveAmino): EventReceive; - toAmino(message: EventReceive): EventReceiveAmino; - fromAminoMsg(object: EventReceiveAminoMsg): EventReceive; - fromProtoMsg(message: EventReceiveProtoMsg): EventReceive; - toProto(message: EventReceive): Uint8Array; - toProtoMsg(message: EventReceive): EventReceiveProtoMsg; -}; -export declare const EventRetire: { - typeUrl: string; - encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; - fromJSON(object: any): EventRetire; - toJSON(message: EventRetire): unknown; - fromPartial(object: Partial): EventRetire; - fromAmino(object: EventRetireAmino): EventRetire; - toAmino(message: EventRetire): EventRetireAmino; - fromAminoMsg(object: EventRetireAminoMsg): EventRetire; - fromProtoMsg(message: EventRetireProtoMsg): EventRetire; - toProto(message: EventRetire): Uint8Array; - toProtoMsg(message: EventRetire): EventRetireProtoMsg; -}; -export declare const EventCancel: { - typeUrl: string; - encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; - fromJSON(object: any): EventCancel; - toJSON(message: EventCancel): unknown; - fromPartial(object: Partial): EventCancel; - fromAmino(object: EventCancelAmino): EventCancel; - toAmino(message: EventCancel): EventCancelAmino; - fromAminoMsg(object: EventCancelAminoMsg): EventCancel; - fromProtoMsg(message: EventCancelProtoMsg): EventCancel; - toProto(message: EventCancel): Uint8Array; - toProtoMsg(message: EventCancel): EventCancelProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts deleted file mode 100644 index ea89f1c3..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/genesis.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisState { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params: Params; - /** class_info is the list of credit class info. */ - classInfo: ClassInfo[]; - /** batch_info is the list of credit batch info. */ - batchInfo: BatchInfo[]; - /** sequences is the list of credit type sequence. */ - sequences: CreditTypeSeq[]; - /** balances is the list of credit batch tradable/retired units. */ - balances: Balance[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies: Supply[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateAmino { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params?: ParamsAmino; - /** class_info is the list of credit class info. */ - class_info?: ClassInfoAmino[]; - /** batch_info is the list of credit batch info. */ - batch_info?: BatchInfoAmino[]; - /** sequences is the list of credit type sequence. */ - sequences?: CreditTypeSeqAmino[]; - /** balances is the list of credit batch tradable/retired units. */ - balances?: BalanceAmino[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies?: SupplyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/regen.ecocredit.v1alpha1.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - class_info: ClassInfoSDKType[]; - batch_info: BatchInfoSDKType[]; - sequences: CreditTypeSeqSDKType[]; - balances: BalanceSDKType[]; - supplies: SupplySDKType[]; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface Balance { - /** address is the account address of the account holding credits. */ - address: string; - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradableBalance: string; - /** retired_balance is the retired balance of the credit batch. */ - retiredBalance: string; -} -export interface BalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Balance"; - value: Uint8Array; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceAmino { - /** address is the account address of the account holding credits. */ - address?: string; - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradable_balance?: string; - /** retired_balance is the retired balance of the credit batch. */ - retired_balance?: string; -} -export interface BalanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.Balance"; - value: BalanceAmino; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceSDKType { - address: string; - batch_denom: string; - tradable_balance: string; - retired_balance: string; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface Supply { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradableSupply: string; - /** retired_supply is the retired supply of the credit batch. */ - retiredSupply: string; -} -export interface SupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Supply"; - value: Uint8Array; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplyAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradable_supply?: string; - /** retired_supply is the retired supply of the credit batch. */ - retired_supply?: string; -} -export interface SupplyAminoMsg { - type: "/regen.ecocredit.v1alpha1.Supply"; - value: SupplyAmino; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplySDKType { - batch_denom: string; - tradable_supply: string; - retired_supply: string; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromJSON(object: any): GenesisState; - toJSON(message: GenesisState): unknown; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const Balance: { - typeUrl: string; - encode(message: Balance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Balance; - fromJSON(object: any): Balance; - toJSON(message: Balance): unknown; - fromPartial(object: Partial): Balance; - fromAmino(object: BalanceAmino): Balance; - toAmino(message: Balance): BalanceAmino; - fromAminoMsg(object: BalanceAminoMsg): Balance; - fromProtoMsg(message: BalanceProtoMsg): Balance; - toProto(message: Balance): Uint8Array; - toProtoMsg(message: Balance): BalanceProtoMsg; -}; -export declare const Supply: { - typeUrl: string; - encode(message: Supply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Supply; - fromJSON(object: any): Supply; - toJSON(message: Supply): unknown; - fromPartial(object: Partial): Supply; - fromAmino(object: SupplyAmino): Supply; - toAmino(message: Supply): SupplyAmino; - fromAminoMsg(object: SupplyAminoMsg): Supply; - fromProtoMsg(message: SupplyProtoMsg): Supply; - toProto(message: Supply): Uint8Array; - toProtoMsg(message: Supply): SupplyProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts deleted file mode 100644 index e080545d..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.d.ts +++ /dev/null @@ -1,611 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequest { - /** class_id is the unique ID of credit class to query. */ - classId: string; -} -export interface QueryClassInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: Uint8Array; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestAmino { - /** class_id is the unique ID of credit class to query. */ - class_id?: string; -} -export interface QueryClassInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: QueryClassInfoRequestAmino; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestSDKType { - class_id: string; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponse { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfo; -} -export interface QueryClassInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: Uint8Array; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseAmino { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfoAmino; -} -export interface QueryClassInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: QueryClassInfoResponseAmino; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseSDKType { - info?: ClassInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** class_id is the unique ID of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** class_id is the unique ID of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches within the class. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches within the class. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: Uint8Array; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: QueryBatchInfoRequestAmino; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestSDKType { - batch_denom: string; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponse { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfo; -} -export interface QueryBatchInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: Uint8Array; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseAmino { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfoAmino; -} -export interface QueryBatchInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: QueryBatchInfoResponseAmino; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseSDKType { - info?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** account is the address of the account whose balance is being queried. */ - account: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** account is the address of the account whose balance is being queried. */ - account?: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - account: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** tradable_amount is the decimal number of tradable credits. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits. */ - retiredAmount: string; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** tradable_amount is the decimal number of tradable credits. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits. */ - retired_amount?: string; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - tradable_amount: string; - retired_amount: string; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradableSupply: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retiredSupply: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradable_supply?: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retired_supply?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_supply: string; - retired_supply: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest { -} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino { -} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType { -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** list of credit types */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** list of credit types */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromJSON(_: any): QueryParamsRequest; - toJSON(_: QueryParamsRequest): unknown; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromJSON(object: any): QueryParamsResponse; - toJSON(message: QueryParamsResponse): unknown; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryClassesRequest: { - typeUrl: string; - encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; - fromJSON(object: any): QueryClassesRequest; - toJSON(message: QueryClassesRequest): unknown; - fromPartial(object: Partial): QueryClassesRequest; - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; - toProto(message: QueryClassesRequest): Uint8Array; - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; -}; -export declare const QueryClassesResponse: { - typeUrl: string; - encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; - fromJSON(object: any): QueryClassesResponse; - toJSON(message: QueryClassesResponse): unknown; - fromPartial(object: Partial): QueryClassesResponse; - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; - toProto(message: QueryClassesResponse): Uint8Array; - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; -}; -export declare const QueryClassInfoRequest: { - typeUrl: string; - encode(message: QueryClassInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest; - fromJSON(object: any): QueryClassInfoRequest; - toJSON(message: QueryClassInfoRequest): unknown; - fromPartial(object: Partial): QueryClassInfoRequest; - fromAmino(object: QueryClassInfoRequestAmino): QueryClassInfoRequest; - toAmino(message: QueryClassInfoRequest): QueryClassInfoRequestAmino; - fromAminoMsg(object: QueryClassInfoRequestAminoMsg): QueryClassInfoRequest; - fromProtoMsg(message: QueryClassInfoRequestProtoMsg): QueryClassInfoRequest; - toProto(message: QueryClassInfoRequest): Uint8Array; - toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg; -}; -export declare const QueryClassInfoResponse: { - typeUrl: string; - encode(message: QueryClassInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse; - fromJSON(object: any): QueryClassInfoResponse; - toJSON(message: QueryClassInfoResponse): unknown; - fromPartial(object: Partial): QueryClassInfoResponse; - fromAmino(object: QueryClassInfoResponseAmino): QueryClassInfoResponse; - toAmino(message: QueryClassInfoResponse): QueryClassInfoResponseAmino; - fromAminoMsg(object: QueryClassInfoResponseAminoMsg): QueryClassInfoResponse; - fromProtoMsg(message: QueryClassInfoResponseProtoMsg): QueryClassInfoResponse; - toProto(message: QueryClassInfoResponse): Uint8Array; - toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg; -}; -export declare const QueryBatchesRequest: { - typeUrl: string; - encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; - fromJSON(object: any): QueryBatchesRequest; - toJSON(message: QueryBatchesRequest): unknown; - fromPartial(object: Partial): QueryBatchesRequest; - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; - toProto(message: QueryBatchesRequest): Uint8Array; - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; -}; -export declare const QueryBatchesResponse: { - typeUrl: string; - encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; - fromJSON(object: any): QueryBatchesResponse; - toJSON(message: QueryBatchesResponse): unknown; - fromPartial(object: Partial): QueryBatchesResponse; - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; - toProto(message: QueryBatchesResponse): Uint8Array; - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; -}; -export declare const QueryBatchInfoRequest: { - typeUrl: string; - encode(message: QueryBatchInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest; - fromJSON(object: any): QueryBatchInfoRequest; - toJSON(message: QueryBatchInfoRequest): unknown; - fromPartial(object: Partial): QueryBatchInfoRequest; - fromAmino(object: QueryBatchInfoRequestAmino): QueryBatchInfoRequest; - toAmino(message: QueryBatchInfoRequest): QueryBatchInfoRequestAmino; - fromAminoMsg(object: QueryBatchInfoRequestAminoMsg): QueryBatchInfoRequest; - fromProtoMsg(message: QueryBatchInfoRequestProtoMsg): QueryBatchInfoRequest; - toProto(message: QueryBatchInfoRequest): Uint8Array; - toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg; -}; -export declare const QueryBatchInfoResponse: { - typeUrl: string; - encode(message: QueryBatchInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse; - fromJSON(object: any): QueryBatchInfoResponse; - toJSON(message: QueryBatchInfoResponse): unknown; - fromPartial(object: Partial): QueryBatchInfoResponse; - fromAmino(object: QueryBatchInfoResponseAmino): QueryBatchInfoResponse; - toAmino(message: QueryBatchInfoResponse): QueryBatchInfoResponseAmino; - fromAminoMsg(object: QueryBatchInfoResponseAminoMsg): QueryBatchInfoResponse; - fromProtoMsg(message: QueryBatchInfoResponseProtoMsg): QueryBatchInfoResponse; - toProto(message: QueryBatchInfoResponse): Uint8Array; - toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg; -}; -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromJSON(object: any): QueryBalanceRequest; - toJSON(message: QueryBalanceRequest): unknown; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromJSON(object: any): QueryBalanceResponse; - toJSON(message: QueryBalanceResponse): unknown; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QuerySupplyRequest: { - typeUrl: string; - encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; - fromJSON(object: any): QuerySupplyRequest; - toJSON(message: QuerySupplyRequest): unknown; - fromPartial(object: Partial): QuerySupplyRequest; - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; - toProto(message: QuerySupplyRequest): Uint8Array; - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; -}; -export declare const QuerySupplyResponse: { - typeUrl: string; - encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; - fromJSON(object: any): QuerySupplyResponse; - toJSON(message: QuerySupplyResponse): unknown; - fromPartial(object: Partial): QuerySupplyResponse; - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; - toProto(message: QuerySupplyResponse): Uint8Array; - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; -}; -export declare const QueryCreditTypesRequest: { - typeUrl: string; - encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; - fromJSON(_: any): QueryCreditTypesRequest; - toJSON(_: QueryCreditTypesRequest): unknown; - fromPartial(_: Partial): QueryCreditTypesRequest; - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; - toProto(message: QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; -}; -export declare const QueryCreditTypesResponse: { - typeUrl: string; - encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; - fromJSON(object: any): QueryCreditTypesResponse; - toJSON(message: QueryCreditTypesResponse): unknown; - fromPartial(object: Partial): QueryCreditTypesResponse; - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; - toProto(message: QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts deleted file mode 100644 index 14568f80..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - classes(params?: QueryClassesRequest): Promise; - classInfo(params: QueryClassInfoRequest): Promise; - batches(params: QueryBatchesRequest): Promise; - batchInfo(params: QueryBatchInfoRequest): Promise; - balance(params: QueryBalanceRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - creditTypes(_params?: QueryCreditTypesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts deleted file mode 100644 index f750f1dd..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1alpha1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** ClassInfo queries for information on a credit class. */ - classInfo(request: QueryClassInfoRequest): Promise; - /** Batches queries for all batches in the given credit class with pagination. */ - batches(request: QueryBatchesRequest): Promise; - /** BatchInfo queries for information on a credit batch. */ - batchInfo(request: QueryBatchInfoRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account. - */ - balance(request: QueryBalanceRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** Params queries the ecocredit module parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - classes(request?: QueryClassesRequest): Promise; - classInfo(request: QueryClassInfoRequest): Promise; - batches(request: QueryBatchesRequest): Promise; - batchInfo(request: QueryBatchInfoRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - classes(request?: QueryClassesRequest): Promise; - classInfo(request: QueryClassInfoRequest): Promise; - batches(request: QueryBatchesRequest): Promise; - batchInfo(request: QueryBatchInfoRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.amino.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.amino.d.ts deleted file mode 100644 index 712d9cec..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.amino.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; - fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; - fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; - fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; - fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts deleted file mode 100644 index 727a3753..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.d.ts +++ /dev/null @@ -1,977 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** admin is the address of the account that created the credit class. */ - admin: string; - /** issuers are the account addresses of the approved issuers. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - creditTypeName: string; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** admin is the address of the account that created the credit class. */ - admin?: string; - /** issuers are the account addresses of the approved issuers. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - credit_type_name?: string; -} -export interface MsgCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type_name: string; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique ID of the newly created credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique ID of the newly created credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** issuer is the address of the batch issuer. */ - issuer: string; - /** class_id is the unique ID of the class. */ - classId: string; - /** issuance are the credits issued in the batch. */ - issuance: MsgCreateBatch_BatchIssuance[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - projectLocation: string; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** issuer is the address of the batch issuer. */ - issuer?: string; - /** class_id is the unique ID of the class. */ - class_id?: string; - /** issuance are the credits issued in the batch. */ - issuance?: MsgCreateBatch_BatchIssuanceAmino[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - project_location?: string; -} -export interface MsgCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - class_id: string; - issuance: MsgCreateBatch_BatchIssuanceSDKType[]; - metadata: Uint8Array; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - project_location: string; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuance { - /** recipient is the account of the recipient. */ - recipient: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgCreateBatch_BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: Uint8Array; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceAmino { - /** recipient is the account of the recipient. */ - recipient?: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgCreateBatch_BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: MsgCreateBatch_BatchIssuanceAmino; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** sender is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** sender is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being retired. */ - credits: MsgRetire_RetireCredits[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being retired. */ - credits?: MsgRetire_RetireCreditsAmino[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface MsgRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - holder: string; - credits: MsgRetire_RetireCreditsSDKType[]; - location: string; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgRetire_RetireCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: Uint8Array; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgRetire_RetireCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: MsgRetire_RetireCreditsAmino; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse { -} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino { -} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType { -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being cancelled. */ - credits: MsgCancel_CancelCredits[]; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being cancelled. */ - credits?: MsgCancel_CancelCreditsAmino[]; -} -export interface MsgCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - holder: string; - credits: MsgCancel_CancelCreditsSDKType[]; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgCancel_CancelCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: Uint8Array; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgCancel_CancelCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: MsgCancel_CancelCreditsAmino; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse { -} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino { -} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType { -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** new_admin is the address of the new admin of the credit class. */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** new_admin is the address of the new admin of the credit class. */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse { -} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino { -} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType { -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse { -} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino { -} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType { -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata: Uint8Array; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - metadata: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse { -} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino { -} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType { -} -export declare const MsgCreateClass: { - typeUrl: string; - encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; - fromJSON(object: any): MsgCreateClass; - toJSON(message: MsgCreateClass): unknown; - fromPartial(object: Partial): MsgCreateClass; - fromAmino(object: MsgCreateClassAmino): MsgCreateClass; - toAmino(message: MsgCreateClass): MsgCreateClassAmino; - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; - toProto(message: MsgCreateClass): Uint8Array; - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; -}; -export declare const MsgCreateClassResponse: { - typeUrl: string; - encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; - fromJSON(object: any): MsgCreateClassResponse; - toJSON(message: MsgCreateClassResponse): unknown; - fromPartial(object: Partial): MsgCreateClassResponse; - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; - toProto(message: MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; -}; -export declare const MsgCreateBatch: { - typeUrl: string; - encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; - fromJSON(object: any): MsgCreateBatch; - toJSON(message: MsgCreateBatch): unknown; - fromPartial(object: Partial): MsgCreateBatch; - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; - toProto(message: MsgCreateBatch): Uint8Array; - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; -}; -export declare const MsgCreateBatch_BatchIssuance: { - typeUrl: string; - encode(message: MsgCreateBatch_BatchIssuance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance; - fromJSON(object: any): MsgCreateBatch_BatchIssuance; - toJSON(message: MsgCreateBatch_BatchIssuance): unknown; - fromPartial(object: Partial): MsgCreateBatch_BatchIssuance; - fromAmino(object: MsgCreateBatch_BatchIssuanceAmino): MsgCreateBatch_BatchIssuance; - toAmino(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceAmino; - fromAminoMsg(object: MsgCreateBatch_BatchIssuanceAminoMsg): MsgCreateBatch_BatchIssuance; - fromProtoMsg(message: MsgCreateBatch_BatchIssuanceProtoMsg): MsgCreateBatch_BatchIssuance; - toProto(message: MsgCreateBatch_BatchIssuance): Uint8Array; - toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg; -}; -export declare const MsgCreateBatchResponse: { - typeUrl: string; - encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; - fromJSON(object: any): MsgCreateBatchResponse; - toJSON(message: MsgCreateBatchResponse): unknown; - fromPartial(object: Partial): MsgCreateBatchResponse; - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; - toProto(message: MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; -}; -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromJSON(object: any): MsgSend; - toJSON(message: MsgSend): unknown; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSend_SendCredits: { - typeUrl: string; - encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; - fromJSON(object: any): MsgSend_SendCredits; - toJSON(message: MsgSend_SendCredits): unknown; - fromPartial(object: Partial): MsgSend_SendCredits; - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; - toProto(message: MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromJSON(_: any): MsgSendResponse; - toJSON(_: MsgSendResponse): unknown; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgRetire: { - typeUrl: string; - encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; - fromJSON(object: any): MsgRetire; - toJSON(message: MsgRetire): unknown; - fromPartial(object: Partial): MsgRetire; - fromAmino(object: MsgRetireAmino): MsgRetire; - toAmino(message: MsgRetire): MsgRetireAmino; - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; - toProto(message: MsgRetire): Uint8Array; - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; -}; -export declare const MsgRetire_RetireCredits: { - typeUrl: string; - encode(message: MsgRetire_RetireCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits; - fromJSON(object: any): MsgRetire_RetireCredits; - toJSON(message: MsgRetire_RetireCredits): unknown; - fromPartial(object: Partial): MsgRetire_RetireCredits; - fromAmino(object: MsgRetire_RetireCreditsAmino): MsgRetire_RetireCredits; - toAmino(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsAmino; - fromAminoMsg(object: MsgRetire_RetireCreditsAminoMsg): MsgRetire_RetireCredits; - fromProtoMsg(message: MsgRetire_RetireCreditsProtoMsg): MsgRetire_RetireCredits; - toProto(message: MsgRetire_RetireCredits): Uint8Array; - toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg; -}; -export declare const MsgRetireResponse: { - typeUrl: string; - encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; - fromJSON(_: any): MsgRetireResponse; - toJSON(_: MsgRetireResponse): unknown; - fromPartial(_: Partial): MsgRetireResponse; - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; - toProto(message: MsgRetireResponse): Uint8Array; - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; -}; -export declare const MsgCancel: { - typeUrl: string; - encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; - fromJSON(object: any): MsgCancel; - toJSON(message: MsgCancel): unknown; - fromPartial(object: Partial): MsgCancel; - fromAmino(object: MsgCancelAmino): MsgCancel; - toAmino(message: MsgCancel): MsgCancelAmino; - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; - toProto(message: MsgCancel): Uint8Array; - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; -}; -export declare const MsgCancel_CancelCredits: { - typeUrl: string; - encode(message: MsgCancel_CancelCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits; - fromJSON(object: any): MsgCancel_CancelCredits; - toJSON(message: MsgCancel_CancelCredits): unknown; - fromPartial(object: Partial): MsgCancel_CancelCredits; - fromAmino(object: MsgCancel_CancelCreditsAmino): MsgCancel_CancelCredits; - toAmino(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsAmino; - fromAminoMsg(object: MsgCancel_CancelCreditsAminoMsg): MsgCancel_CancelCredits; - fromProtoMsg(message: MsgCancel_CancelCreditsProtoMsg): MsgCancel_CancelCredits; - toProto(message: MsgCancel_CancelCredits): Uint8Array; - toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg; -}; -export declare const MsgCancelResponse: { - typeUrl: string; - encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; - fromJSON(_: any): MsgCancelResponse; - toJSON(_: MsgCancelResponse): unknown; - fromPartial(_: Partial): MsgCancelResponse; - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; - toProto(message: MsgCancelResponse): Uint8Array; - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; -}; -export declare const MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; - fromJSON(object: any): MsgUpdateClassAdmin; - toJSON(message: MsgUpdateClassAdmin): unknown; - fromPartial(object: Partial): MsgUpdateClassAdmin; - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; - toProto(message: MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; -}; -export declare const MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; - fromJSON(_: any): MsgUpdateClassAdminResponse; - toJSON(_: MsgUpdateClassAdminResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassAdminResponse; - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; - toProto(message: MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; -}; -export declare const MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; - fromJSON(object: any): MsgUpdateClassIssuers; - toJSON(message: MsgUpdateClassIssuers): unknown; - fromPartial(object: Partial): MsgUpdateClassIssuers; - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; - toProto(message: MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; -}; -export declare const MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; - fromJSON(_: any): MsgUpdateClassIssuersResponse; - toJSON(_: MsgUpdateClassIssuersResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassIssuersResponse; - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; -}; -export declare const MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; - fromJSON(object: any): MsgUpdateClassMetadata; - toJSON(message: MsgUpdateClassMetadata): unknown; - fromPartial(object: Partial): MsgUpdateClassMetadata; - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; - toProto(message: MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; -}; -export declare const MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; - fromJSON(_: any): MsgUpdateClassMetadataResponse; - toJSON(_: MsgUpdateClassMetadataResponse): unknown; - fromPartial(_: Partial): MsgUpdateClassMetadataResponse; - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.registry.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.registry.d.ts deleted file mode 100644 index 1f3c1d5a..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.registry.d.ts +++ /dev/null @@ -1,176 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - }; - toJSON: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: unknown; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: unknown; - }; - send(value: MsgSend): { - typeUrl: string; - value: unknown; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: unknown; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: unknown; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: unknown; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: unknown; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - createClass(value: any): { - typeUrl: string; - value: MsgCreateClass; - }; - createBatch(value: any): { - typeUrl: string; - value: MsgCreateBatch; - }; - send(value: any): { - typeUrl: string; - value: MsgSend; - }; - retire(value: any): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: any): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: any): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: any): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: any): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - }; - fromPartial: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts deleted file mode 100644 index bc4794c1..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1alpha1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class with an approved list of issuers and - * optional metadata. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateBatch creates a new batch of credits for an existing credit class. - * This will create a new batch denom with a fixed supply. Issued credits can - * be distributed to recipients in either tradable or retired form. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * Send sends tradable credits from one account to another account. Sent - * credits can either be tradable or retired on receipt. - */ - send(request: MsgSend): Promise; - /** Retire retires a specified number of credits in the holder's account. */ - retire(request: MsgRetire): Promise; - /** - * Cancel removes a number of credits from the holder's account and also - * deducts them from the tradable supply, effectively cancelling their - * issuance on Regen Ledger - */ - cancel(request: MsgCancel): Promise; - /** UpdateClassAdmin updates the credit class admin */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** UpdateClassIssuers updates the credit class issuer list */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** UpdateClassMetadata updates the credit class metadata */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClass(request: MsgCreateClass): Promise; - createBatch(request: MsgCreateBatch): Promise; - send(request: MsgSend): Promise; - retire(request: MsgRetire): Promise; - cancel(request: MsgCancel): Promise; - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; -} diff --git a/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts b/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts deleted file mode 100644 index 6773fac1..00000000 --- a/packages/api/types/codegen/regen/ecocredit/v1alpha1/types.d.ts +++ /dev/null @@ -1,379 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; - /** issuers are the approved issuers of the credit class. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - creditType?: CreditType; - /** The number of batches issued in this credit class. */ - numBatches: bigint; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** issuers are the approved issuers of the credit class. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - credit_type?: CreditTypeAmino; - /** The number of batches issued in this credit class. */ - num_batches?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoSDKType { - class_id: string; - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type?: CreditTypeSDKType; - num_batches: bigint; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the issuer of the credit batch. */ - issuer: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - totalAmount: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amountCancelled: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Timestamp; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Timestamp; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the issuer of the credit batch. */ - issuer?: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - total_amount?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amount_cancelled?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - metadata: Uint8Array; - amount_cancelled: string; - start_date?: TimestampSDKType; - end_date?: TimestampSDKType; - project_location: string; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - creditClassFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlistEnabled: boolean; - /** credit_types is a list of definitions for credit types */ - creditTypes: CreditType[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basketCreationFee: Coin[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - credit_class_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlist_enabled?: boolean; - /** credit_types is a list of definitions for credit types */ - credit_types?: CreditTypeAmino[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basket_creation_fee?: CoinAmino[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1alpha1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - credit_types: CreditTypeSDKType[]; - basket_creation_fee: CoinSDKType[]; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit: string; - /** the decimal precision */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name?: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit?: string; - /** the decimal precision */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - name: string; - abbreviation: string; - unit: string; - precision: number; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeq { - /** The credit type abbreviation */ - abbreviation: string; - /** The sequence number of classes of the credit type */ - seqNumber: bigint; -} -export interface CreditTypeSeqProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: Uint8Array; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqAmino { - /** The credit type abbreviation */ - abbreviation?: string; - /** The sequence number of classes of the credit type */ - seq_number?: string; -} -export interface CreditTypeSeqAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: CreditTypeSeqAmino; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqSDKType { - abbreviation: string; - seq_number: bigint; -} -export declare const ClassInfo: { - typeUrl: string; - encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; - fromJSON(object: any): ClassInfo; - toJSON(message: ClassInfo): unknown; - fromPartial(object: Partial): ClassInfo; - fromAmino(object: ClassInfoAmino): ClassInfo; - toAmino(message: ClassInfo): ClassInfoAmino; - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; - toProto(message: ClassInfo): Uint8Array; - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; -}; -export declare const BatchInfo: { - typeUrl: string; - encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; - fromJSON(object: any): BatchInfo; - toJSON(message: BatchInfo): unknown; - fromPartial(object: Partial): BatchInfo; - fromAmino(object: BatchInfoAmino): BatchInfo; - toAmino(message: BatchInfo): BatchInfoAmino; - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; - toProto(message: BatchInfo): Uint8Array; - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromJSON(object: any): Params; - toJSON(message: Params): unknown; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const CreditType: { - typeUrl: string; - encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditType; - fromJSON(object: any): CreditType; - toJSON(message: CreditType): unknown; - fromPartial(object: Partial): CreditType; - fromAmino(object: CreditTypeAmino): CreditType; - toAmino(message: CreditType): CreditTypeAmino; - fromAminoMsg(object: CreditTypeAminoMsg): CreditType; - fromProtoMsg(message: CreditTypeProtoMsg): CreditType; - toProto(message: CreditType): Uint8Array; - toProtoMsg(message: CreditType): CreditTypeProtoMsg; -}; -export declare const CreditTypeSeq: { - typeUrl: string; - encode(message: CreditTypeSeq, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq; - fromJSON(object: any): CreditTypeSeq; - toJSON(message: CreditTypeSeq): unknown; - fromPartial(object: Partial): CreditTypeSeq; - fromAmino(object: CreditTypeSeqAmino): CreditTypeSeq; - toAmino(message: CreditTypeSeq): CreditTypeSeqAmino; - fromAminoMsg(object: CreditTypeSeqAminoMsg): CreditTypeSeq; - fromProtoMsg(message: CreditTypeSeqProtoMsg): CreditTypeSeq; - toProto(message: CreditTypeSeq): Uint8Array; - toProtoMsg(message: CreditTypeSeq): CreditTypeSeqProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/query.d.ts b/packages/api/types/codegen/regen/intertx/v1/query.d.ts deleted file mode 100644 index 1c564a36..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/query.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequest { - /** owner is the address of the account that owns the ICA. */ - owner: string; - /** connection_id is the connection the ICA claimed. */ - connectionId: string; -} -export interface QueryInterchainAccountRequestProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: Uint8Array; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestAmino { - /** owner is the address of the account that owns the ICA. */ - owner?: string; - /** connection_id is the connection the ICA claimed. */ - connection_id?: string; -} -export interface QueryInterchainAccountRequestAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: QueryInterchainAccountRequestAmino; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestSDKType { - owner: string; - connection_id: string; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponse { - /** interchain_account_address is the address of the ICA. */ - interchainAccountAddress: string; -} -export interface QueryInterchainAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: Uint8Array; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseAmino { - /** interchain_account_address is the address of the ICA. */ - interchain_account_address?: string; -} -export interface QueryInterchainAccountResponseAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: QueryInterchainAccountResponseAmino; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseSDKType { - interchain_account_address: string; -} -export declare const QueryInterchainAccountRequest: { - typeUrl: string; - encode(message: QueryInterchainAccountRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest; - fromJSON(object: any): QueryInterchainAccountRequest; - toJSON(message: QueryInterchainAccountRequest): unknown; - fromPartial(object: Partial): QueryInterchainAccountRequest; - fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest; - toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino; - fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest; - fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest; - toProto(message: QueryInterchainAccountRequest): Uint8Array; - toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg; -}; -export declare const QueryInterchainAccountResponse: { - typeUrl: string; - encode(message: QueryInterchainAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse; - fromJSON(object: any): QueryInterchainAccountResponse; - toJSON(message: QueryInterchainAccountResponse): unknown; - fromPartial(object: Partial): QueryInterchainAccountResponse; - fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse; - toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino; - fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse; - fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse; - toProto(message: QueryInterchainAccountResponse): Uint8Array; - toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts b/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts deleted file mode 100644 index 54d4635a..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/query.lcd.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - interchainAccount(params: QueryInterchainAccountRequest): Promise; -} diff --git a/packages/api/types/codegen/regen/intertx/v1/query.rpc.Query.d.ts b/packages/api/types/codegen/regen/intertx/v1/query.rpc.Query.d.ts deleted file mode 100644 index f78e9e39..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * QueryInterchainAccount returns the interchain account for given owner - * address on a given connection pair - */ - interchainAccount(request: QueryInterchainAccountRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - interchainAccount(request: QueryInterchainAccountRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - interchainAccount(request: QueryInterchainAccountRequest): Promise; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/tx.amino.d.ts b/packages/api/types/codegen/regen/intertx/v1/tx.amino.d.ts deleted file mode 100644 index a9d30d0e..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export declare const AminoConverter: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: MsgRegisterAccount) => import("./tx").MsgRegisterAccountAmino; - fromAmino: (object: import("./tx").MsgRegisterAccountAmino) => MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: MsgSubmitTx) => import("./tx").MsgSubmitTxAmino; - fromAmino: (object: import("./tx").MsgSubmitTxAmino) => MsgSubmitTx; - }; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/tx.d.ts b/packages/api/types/codegen/regen/intertx/v1/tx.d.ts deleted file mode 100644 index 7bccc465..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/tx.d.ts +++ /dev/null @@ -1,164 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccount { - /** owner is the address of the interchain account owner. */ - owner: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connectionId: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version: string; -} -export interface MsgRegisterAccountProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount"; - value: Uint8Array; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountAmino { - /** owner is the address of the interchain account owner. */ - owner?: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connection_id?: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version?: string; -} -export interface MsgRegisterAccountAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccount"; - value: MsgRegisterAccountAmino; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountSDKType { - owner: string; - connection_id: string; - version: string; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponse { -} -export interface MsgRegisterAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: Uint8Array; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseAmino { -} -export interface MsgRegisterAccountResponseAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: MsgRegisterAccountResponseAmino; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseSDKType { -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTx { - /** owner is the owner address of the interchain account. */ - owner: string; - /** connection_id is the id of the connection. */ - connectionId: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: Any; -} -export interface MsgSubmitTxProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTx"; - value: Uint8Array; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxAmino { - /** owner is the owner address of the interchain account. */ - owner?: string; - /** connection_id is the id of the connection. */ - connection_id?: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: AnyAmino; -} -export interface MsgSubmitTxAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTx"; - value: MsgSubmitTxAmino; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxSDKType { - owner: string; - connection_id: string; - msg?: AnySDKType; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponse { -} -export interface MsgSubmitTxResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: Uint8Array; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseAmino { -} -export interface MsgSubmitTxResponseAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: MsgSubmitTxResponseAmino; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseSDKType { -} -export declare const MsgRegisterAccount: { - typeUrl: string; - encode(message: MsgRegisterAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount; - fromJSON(object: any): MsgRegisterAccount; - toJSON(message: MsgRegisterAccount): unknown; - fromPartial(object: Partial): MsgRegisterAccount; - fromAmino(object: MsgRegisterAccountAmino): MsgRegisterAccount; - toAmino(message: MsgRegisterAccount): MsgRegisterAccountAmino; - fromAminoMsg(object: MsgRegisterAccountAminoMsg): MsgRegisterAccount; - fromProtoMsg(message: MsgRegisterAccountProtoMsg): MsgRegisterAccount; - toProto(message: MsgRegisterAccount): Uint8Array; - toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg; -}; -export declare const MsgRegisterAccountResponse: { - typeUrl: string; - encode(_: MsgRegisterAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse; - fromJSON(_: any): MsgRegisterAccountResponse; - toJSON(_: MsgRegisterAccountResponse): unknown; - fromPartial(_: Partial): MsgRegisterAccountResponse; - fromAmino(_: MsgRegisterAccountResponseAmino): MsgRegisterAccountResponse; - toAmino(_: MsgRegisterAccountResponse): MsgRegisterAccountResponseAmino; - fromAminoMsg(object: MsgRegisterAccountResponseAminoMsg): MsgRegisterAccountResponse; - fromProtoMsg(message: MsgRegisterAccountResponseProtoMsg): MsgRegisterAccountResponse; - toProto(message: MsgRegisterAccountResponse): Uint8Array; - toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg; -}; -export declare const MsgSubmitTx: { - typeUrl: string; - encode(message: MsgSubmitTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx; - fromJSON(object: any): MsgSubmitTx; - toJSON(message: MsgSubmitTx): unknown; - fromPartial(object: Partial): MsgSubmitTx; - fromAmino(object: MsgSubmitTxAmino): MsgSubmitTx; - toAmino(message: MsgSubmitTx): MsgSubmitTxAmino; - fromAminoMsg(object: MsgSubmitTxAminoMsg): MsgSubmitTx; - fromProtoMsg(message: MsgSubmitTxProtoMsg): MsgSubmitTx; - toProto(message: MsgSubmitTx): Uint8Array; - toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg; -}; -export declare const MsgSubmitTxResponse: { - typeUrl: string; - encode(_: MsgSubmitTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse; - fromJSON(_: any): MsgSubmitTxResponse; - toJSON(_: MsgSubmitTxResponse): unknown; - fromPartial(_: Partial): MsgSubmitTxResponse; - fromAmino(_: MsgSubmitTxResponseAmino): MsgSubmitTxResponse; - toAmino(_: MsgSubmitTxResponse): MsgSubmitTxResponseAmino; - fromAminoMsg(object: MsgSubmitTxResponseAminoMsg): MsgSubmitTxResponse; - fromProtoMsg(message: MsgSubmitTxResponseProtoMsg): MsgSubmitTxResponse; - toProto(message: MsgSubmitTxResponse): Uint8Array; - toProtoMsg(message: MsgSubmitTxResponse): MsgSubmitTxResponseProtoMsg; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/tx.registry.d.ts b/packages/api/types/codegen/regen/intertx/v1/tx.registry.d.ts deleted file mode 100644 index a636356c..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/tx.registry.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: Uint8Array; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: MsgRegisterAccount; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: MsgSubmitTx; - }; - }; - toJSON: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: unknown; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: unknown; - }; - }; - fromJSON: { - registerAccount(value: any): { - typeUrl: string; - value: MsgRegisterAccount; - }; - submitTx(value: any): { - typeUrl: string; - value: MsgSubmitTx; - }; - }; - fromPartial: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: MsgRegisterAccount; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: MsgSubmitTx; - }; - }; -}; diff --git a/packages/api/types/codegen/regen/intertx/v1/tx.rpc.msg.d.ts b/packages/api/types/codegen/regen/intertx/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 43ba16a3..00000000 --- a/packages/api/types/codegen/regen/intertx/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; -/** Msg defines the intertx Msg service. */ -export interface Msg { - /** Register defines a rpc handler for MsgRegisterAccount */ - registerAccount(request: MsgRegisterAccount): Promise; - /** SubmitTx defines a rpc handler for MsgSubmitTx */ - submitTx(request: MsgSubmitTx): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - registerAccount(request: MsgRegisterAccount): Promise; - submitTx(request: MsgSubmitTx): Promise; -} diff --git a/packages/api/types/codegen/regen/lcd.d.ts b/packages/api/types/codegen/regen/lcd.d.ts deleted file mode 100644 index c5376522..00000000 --- a/packages/api/types/codegen/regen/lcd.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - regen: { - data: { - v1: import("./data/v1/query.lcd").LCDQueryClient; - }; - ecocredit: { - basket: { - v1: import("./ecocredit/basket/v1/query.lcd").LCDQueryClient; - }; - marketplace: { - v1: import("./ecocredit/marketplace/v1/query.lcd").LCDQueryClient; - }; - v1: import("./ecocredit/v1/query.lcd").LCDQueryClient; - v1alpha1: import("./ecocredit/v1alpha1/query.lcd").LCDQueryClient; - }; - intertx: { - v1: import("./intertx/v1/query.lcd").LCDQueryClient; - }; - }; -}>; diff --git a/packages/api/types/codegen/regen/rpc.query.d.ts b/packages/api/types/codegen/regen/rpc.query.d.ts deleted file mode 100644 index e1bb037f..00000000 --- a/packages/api/types/codegen/regen/rpc.query.d.ts +++ /dev/null @@ -1,275 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest | undefined): Promise; - }; - }; - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest | undefined): Promise; - }; - }; - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest | undefined): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest | undefined): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest | undefined): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest | undefined): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - aBCIQuery(request: import("../cosmos/base/tendermint/v1beta1/query").ABCIQueryRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise; - }; - }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest | undefined): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest | undefined): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest | undefined): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest | undefined): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest | undefined): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest | undefined): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest | undefined): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest | undefined): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise; - }; - }; - }; - regen: { - data: { - v1: { - anchorByIRI(request: import("./data/v1/query").QueryAnchorByIRIRequest): Promise; - anchorByHash(request: import("./data/v1/query").QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: import("./data/v1/query").QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: import("./data/v1/query").QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: import("./data/v1/query").QueryAttestationsByHashRequest): Promise; - resolver(request: import("./data/v1/query").QueryResolverRequest): Promise; - resolversByIRI(request: import("./data/v1/query").QueryResolversByIRIRequest): Promise; - resolversByHash(request: import("./data/v1/query").QueryResolversByHashRequest): Promise; - resolversByURL(request: import("./data/v1/query").QueryResolversByURLRequest): Promise; - convertIRIToHash(request: import("./data/v1/query").ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: import("./data/v1/query").ConvertHashToIRIRequest): Promise; - }; - }; - ecocredit: { - basket: { - v1: { - basket(request: import("./ecocredit/basket/v1/query").QueryBasketRequest): Promise; - baskets(request?: import("./ecocredit/basket/v1/query").QueryBasketsRequest | undefined): Promise; - basketBalances(request: import("./ecocredit/basket/v1/query").QueryBasketBalancesRequest): Promise; - basketBalance(request: import("./ecocredit/basket/v1/query").QueryBasketBalanceRequest): Promise; - basketFee(request?: import("./ecocredit/basket/v1/query").QueryBasketFeeRequest | undefined): Promise; - }; - }; - marketplace: { - v1: { - sellOrder(request: import("./ecocredit/marketplace/v1/query").QuerySellOrderRequest): Promise; - sellOrders(request?: import("./ecocredit/marketplace/v1/query").QuerySellOrdersRequest | undefined): Promise; - sellOrdersByBatch(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: import("./ecocredit/marketplace/v1/query").QueryAllowedDenomsRequest | undefined): Promise; - }; - }; - v1: { - classes(request?: import("./ecocredit/v1/query").QueryClassesRequest | undefined): Promise; - classesByAdmin(request: import("./ecocredit/v1/query").QueryClassesByAdminRequest): Promise; - class(request: import("./ecocredit/v1/query").QueryClassRequest): Promise; - classIssuers(request: import("./ecocredit/v1/query").QueryClassIssuersRequest): Promise; - projects(request?: import("./ecocredit/v1/query").QueryProjectsRequest | undefined): Promise; - projectsByClass(request: import("./ecocredit/v1/query").QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: import("./ecocredit/v1/query").QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: import("./ecocredit/v1/query").QueryProjectsByAdminRequest): Promise; - project(request: import("./ecocredit/v1/query").QueryProjectRequest): Promise; - batches(request?: import("./ecocredit/v1/query").QueryBatchesRequest | undefined): Promise; - batchesByIssuer(request: import("./ecocredit/v1/query").QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: import("./ecocredit/v1/query").QueryBatchesByClassRequest): Promise; - batchesByProject(request: import("./ecocredit/v1/query").QueryBatchesByProjectRequest): Promise; - batch(request: import("./ecocredit/v1/query").QueryBatchRequest): Promise; - balance(request: import("./ecocredit/v1/query").QueryBalanceRequest): Promise; - balances(request: import("./ecocredit/v1/query").QueryBalancesRequest): Promise; - balancesByBatch(request: import("./ecocredit/v1/query").QueryBalancesByBatchRequest): Promise; - allBalances(request?: import("./ecocredit/v1/query").QueryAllBalancesRequest | undefined): Promise; - supply(request: import("./ecocredit/v1/query").QuerySupplyRequest): Promise; - creditTypes(request?: import("./ecocredit/v1/query").QueryCreditTypesRequest | undefined): Promise; - params(request?: import("./ecocredit/v1/query").QueryParamsRequest | undefined): Promise; - creditType(request: import("./ecocredit/v1/query").QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: import("./ecocredit/v1/query").QueryClassCreatorAllowlistRequest | undefined): Promise; - allowedClassCreators(request?: import("./ecocredit/v1/query").QueryAllowedClassCreatorsRequest | undefined): Promise; - classFee(request?: import("./ecocredit/v1/query").QueryClassFeeRequest | undefined): Promise; - allowedBridgeChains(request?: import("./ecocredit/v1/query").QueryAllowedBridgeChainsRequest | undefined): Promise; - }; - v1alpha1: { - classes(request?: import("./ecocredit/v1alpha1/query").QueryClassesRequest | undefined): Promise; - classInfo(request: import("./ecocredit/v1alpha1/query").QueryClassInfoRequest): Promise; - batches(request: import("./ecocredit/v1alpha1/query").QueryBatchesRequest): Promise; - batchInfo(request: import("./ecocredit/v1alpha1/query").QueryBatchInfoRequest): Promise; - balance(request: import("./ecocredit/v1alpha1/query").QueryBalanceRequest): Promise; - supply(request: import("./ecocredit/v1alpha1/query").QuerySupplyRequest): Promise; - creditTypes(request?: import("./ecocredit/v1alpha1/query").QueryCreditTypesRequest | undefined): Promise; - params(request?: import("./ecocredit/v1alpha1/query").QueryParamsRequest | undefined): Promise; - }; - }; - intertx: { - v1: { - interchainAccount(request: import("./intertx/v1/query").QueryInterchainAccountRequest): Promise; - }; - }; - }; -}>; diff --git a/packages/api/types/codegen/regen/rpc.tx.d.ts b/packages/api/types/codegen/regen/rpc.tx.d.ts deleted file mode 100644 index 76702e71..00000000 --- a/packages/api/types/codegen/regen/rpc.tx.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - regen: { - data: { - v1: import("./data/v1/tx.rpc.msg").MsgClientImpl; - }; - ecocredit: { - basket: { - v1: import("./ecocredit/basket/v1/tx.rpc.msg").MsgClientImpl; - }; - marketplace: { - v1: import("./ecocredit/marketplace/v1/tx.rpc.msg").MsgClientImpl; - }; - v1: import("./ecocredit/v1/tx.rpc.msg").MsgClientImpl; - v1alpha1: import("./ecocredit/v1alpha1/tx.rpc.msg").MsgClientImpl; - }; - intertx: { - v1: import("./intertx/v1/tx.rpc.msg").MsgClientImpl; - }; - }; -}>; diff --git a/packages/api/types/codegen/tendermint/abci/types.d.ts b/packages/api/types/codegen/tendermint/abci/types.d.ts deleted file mode 100644 index 23b6cdaf..00000000 --- a/packages/api/types/codegen/tendermint/abci/types.d.ts +++ /dev/null @@ -1,2006 +0,0 @@ -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; -import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; -import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export declare enum CheckTxType { - NEW = 0, - RECHECK = 1, - UNRECOGNIZED = -1 -} -export declare const CheckTxTypeSDKType: typeof CheckTxType; -export declare const CheckTxTypeAmino: typeof CheckTxType; -export declare function checkTxTypeFromJSON(object: any): CheckTxType; -export declare function checkTxTypeToJSON(object: CheckTxType): string; -export declare enum ResponseOfferSnapshot_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Snapshot accepted, apply chunks */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** REJECT - Reject this specific snapshot, try others */ - REJECT = 3, - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - REJECT_FORMAT = 4, - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - REJECT_SENDER = 5, - UNRECOGNIZED = -1 -} -export declare const ResponseOfferSnapshot_ResultSDKType: typeof ResponseOfferSnapshot_Result; -export declare const ResponseOfferSnapshot_ResultAmino: typeof ResponseOfferSnapshot_Result; -export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result; -export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string; -export declare enum ResponseApplySnapshotChunk_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Chunk successfully accepted */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** RETRY - Retry chunk (combine with refetch and reject) */ - RETRY = 3, - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - RETRY_SNAPSHOT = 4, - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - REJECT_SNAPSHOT = 5, - UNRECOGNIZED = -1 -} -export declare const ResponseApplySnapshotChunk_ResultSDKType: typeof ResponseApplySnapshotChunk_Result; -export declare const ResponseApplySnapshotChunk_ResultAmino: typeof ResponseApplySnapshotChunk_Result; -export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result; -export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string; -export declare enum ResponseProcessProposal_ProposalStatus { - UNKNOWN = 0, - ACCEPT = 1, - REJECT = 2, - UNRECOGNIZED = -1 -} -export declare const ResponseProcessProposal_ProposalStatusSDKType: typeof ResponseProcessProposal_ProposalStatus; -export declare const ResponseProcessProposal_ProposalStatusAmino: typeof ResponseProcessProposal_ProposalStatus; -export declare function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus; -export declare function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string; -export declare enum MisbehaviorType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2, - UNRECOGNIZED = -1 -} -export declare const MisbehaviorTypeSDKType: typeof MisbehaviorType; -export declare const MisbehaviorTypeAmino: typeof MisbehaviorType; -export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType; -export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string; -export interface Request { - echo?: RequestEcho; - flush?: RequestFlush; - info?: RequestInfo; - initChain?: RequestInitChain; - query?: RequestQuery; - beginBlock?: RequestBeginBlock; - checkTx?: RequestCheckTx; - deliverTx?: RequestDeliverTx; - endBlock?: RequestEndBlock; - commit?: RequestCommit; - listSnapshots?: RequestListSnapshots; - offerSnapshot?: RequestOfferSnapshot; - loadSnapshotChunk?: RequestLoadSnapshotChunk; - applySnapshotChunk?: RequestApplySnapshotChunk; - prepareProposal?: RequestPrepareProposal; - processProposal?: RequestProcessProposal; -} -export interface RequestProtoMsg { - typeUrl: "/tendermint.abci.Request"; - value: Uint8Array; -} -export interface RequestAmino { - echo?: RequestEchoAmino; - flush?: RequestFlushAmino; - info?: RequestInfoAmino; - init_chain?: RequestInitChainAmino; - query?: RequestQueryAmino; - begin_block?: RequestBeginBlockAmino; - check_tx?: RequestCheckTxAmino; - deliver_tx?: RequestDeliverTxAmino; - end_block?: RequestEndBlockAmino; - commit?: RequestCommitAmino; - list_snapshots?: RequestListSnapshotsAmino; - offer_snapshot?: RequestOfferSnapshotAmino; - load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; - apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; - prepare_proposal?: RequestPrepareProposalAmino; - process_proposal?: RequestProcessProposalAmino; -} -export interface RequestAminoMsg { - type: "/tendermint.abci.Request"; - value: RequestAmino; -} -export interface RequestSDKType { - echo?: RequestEchoSDKType; - flush?: RequestFlushSDKType; - info?: RequestInfoSDKType; - init_chain?: RequestInitChainSDKType; - query?: RequestQuerySDKType; - begin_block?: RequestBeginBlockSDKType; - check_tx?: RequestCheckTxSDKType; - deliver_tx?: RequestDeliverTxSDKType; - end_block?: RequestEndBlockSDKType; - commit?: RequestCommitSDKType; - list_snapshots?: RequestListSnapshotsSDKType; - offer_snapshot?: RequestOfferSnapshotSDKType; - load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; - prepare_proposal?: RequestPrepareProposalSDKType; - process_proposal?: RequestProcessProposalSDKType; -} -export interface RequestEcho { - message: string; -} -export interface RequestEchoProtoMsg { - typeUrl: "/tendermint.abci.RequestEcho"; - value: Uint8Array; -} -export interface RequestEchoAmino { - message?: string; -} -export interface RequestEchoAminoMsg { - type: "/tendermint.abci.RequestEcho"; - value: RequestEchoAmino; -} -export interface RequestEchoSDKType { - message: string; -} -export interface RequestFlush { -} -export interface RequestFlushProtoMsg { - typeUrl: "/tendermint.abci.RequestFlush"; - value: Uint8Array; -} -export interface RequestFlushAmino { -} -export interface RequestFlushAminoMsg { - type: "/tendermint.abci.RequestFlush"; - value: RequestFlushAmino; -} -export interface RequestFlushSDKType { -} -export interface RequestInfo { - version: string; - blockVersion: bigint; - p2pVersion: bigint; - abciVersion: string; -} -export interface RequestInfoProtoMsg { - typeUrl: "/tendermint.abci.RequestInfo"; - value: Uint8Array; -} -export interface RequestInfoAmino { - version?: string; - block_version?: string; - p2p_version?: string; - abci_version?: string; -} -export interface RequestInfoAminoMsg { - type: "/tendermint.abci.RequestInfo"; - value: RequestInfoAmino; -} -export interface RequestInfoSDKType { - version: string; - block_version: bigint; - p2p_version: bigint; - abci_version: string; -} -export interface RequestInitChain { - time: Timestamp; - chainId: string; - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appStateBytes: Uint8Array; - initialHeight: bigint; -} -export interface RequestInitChainProtoMsg { - typeUrl: "/tendermint.abci.RequestInitChain"; - value: Uint8Array; -} -export interface RequestInitChainAmino { - time?: string; - chain_id?: string; - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_state_bytes?: string; - initial_height?: string; -} -export interface RequestInitChainAminoMsg { - type: "/tendermint.abci.RequestInitChain"; - value: RequestInitChainAmino; -} -export interface RequestInitChainSDKType { - time: TimestampSDKType; - chain_id: string; - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_state_bytes: Uint8Array; - initial_height: bigint; -} -export interface RequestQuery { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestQueryProtoMsg { - typeUrl: "/tendermint.abci.RequestQuery"; - value: Uint8Array; -} -export interface RequestQueryAmino { - data?: string; - path?: string; - height?: string; - prove?: boolean; -} -export interface RequestQueryAminoMsg { - type: "/tendermint.abci.RequestQuery"; - value: RequestQueryAmino; -} -export interface RequestQuerySDKType { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestBeginBlock { - hash: Uint8Array; - header: Header; - lastCommitInfo: CommitInfo; - byzantineValidators: Misbehavior[]; -} -export interface RequestBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestBeginBlock"; - value: Uint8Array; -} -export interface RequestBeginBlockAmino { - hash?: string; - header?: HeaderAmino; - last_commit_info?: CommitInfoAmino; - byzantine_validators?: MisbehaviorAmino[]; -} -export interface RequestBeginBlockAminoMsg { - type: "/tendermint.abci.RequestBeginBlock"; - value: RequestBeginBlockAmino; -} -export interface RequestBeginBlockSDKType { - hash: Uint8Array; - header: HeaderSDKType; - last_commit_info: CommitInfoSDKType; - byzantine_validators: MisbehaviorSDKType[]; -} -export interface RequestCheckTx { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxProtoMsg { - typeUrl: "/tendermint.abci.RequestCheckTx"; - value: Uint8Array; -} -export interface RequestCheckTxAmino { - tx?: string; - type?: CheckTxType; -} -export interface RequestCheckTxAminoMsg { - type: "/tendermint.abci.RequestCheckTx"; - value: RequestCheckTxAmino; -} -export interface RequestCheckTxSDKType { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestDeliverTx { - tx: Uint8Array; -} -export interface RequestDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.RequestDeliverTx"; - value: Uint8Array; -} -export interface RequestDeliverTxAmino { - tx?: string; -} -export interface RequestDeliverTxAminoMsg { - type: "/tendermint.abci.RequestDeliverTx"; - value: RequestDeliverTxAmino; -} -export interface RequestDeliverTxSDKType { - tx: Uint8Array; -} -export interface RequestEndBlock { - height: bigint; -} -export interface RequestEndBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestEndBlock"; - value: Uint8Array; -} -export interface RequestEndBlockAmino { - height?: string; -} -export interface RequestEndBlockAminoMsg { - type: "/tendermint.abci.RequestEndBlock"; - value: RequestEndBlockAmino; -} -export interface RequestEndBlockSDKType { - height: bigint; -} -export interface RequestCommit { -} -export interface RequestCommitProtoMsg { - typeUrl: "/tendermint.abci.RequestCommit"; - value: Uint8Array; -} -export interface RequestCommitAmino { -} -export interface RequestCommitAminoMsg { - type: "/tendermint.abci.RequestCommit"; - value: RequestCommitAmino; -} -export interface RequestCommitSDKType { -} -/** lists available snapshots */ -export interface RequestListSnapshots { -} -export interface RequestListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.RequestListSnapshots"; - value: Uint8Array; -} -/** lists available snapshots */ -export interface RequestListSnapshotsAmino { -} -export interface RequestListSnapshotsAminoMsg { - type: "/tendermint.abci.RequestListSnapshots"; - value: RequestListSnapshotsAmino; -} -/** lists available snapshots */ -export interface RequestListSnapshotsSDKType { -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshot { - /** snapshot offered by peers */ - snapshot?: Snapshot; - /** light client-verified app hash for snapshot height */ - appHash: Uint8Array; -} -export interface RequestOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.RequestOfferSnapshot"; - value: Uint8Array; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotAmino { - /** snapshot offered by peers */ - snapshot?: SnapshotAmino; - /** light client-verified app hash for snapshot height */ - app_hash?: string; -} -export interface RequestOfferSnapshotAminoMsg { - type: "/tendermint.abci.RequestOfferSnapshot"; - value: RequestOfferSnapshotAmino; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotSDKType { - snapshot?: SnapshotSDKType; - app_hash: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunk { - height: bigint; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkAmino { - height?: string; - format?: number; - chunk?: number; -} -export interface RequestLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: RequestLoadSnapshotChunkAmino; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkSDKType { - height: bigint; - format: number; - chunk: number; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunk { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; - value: Uint8Array; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkAmino { - index?: number; - chunk?: string; - sender?: string; -} -export interface RequestApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestApplySnapshotChunk"; - value: RequestApplySnapshotChunkAmino; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkSDKType { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestPrepareProposal { - /** the modified transactions cannot exceed this size. */ - maxTxBytes: bigint; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs: Uint8Array[]; - localLastCommit: ExtendedCommitInfo; - misbehavior: Misbehavior[]; - height: bigint; - time: Timestamp; - nextValidatorsHash: Uint8Array; - /** address of the public key of the validator proposing the block. */ - proposerAddress: Uint8Array; -} -export interface RequestPrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestPrepareProposal"; - value: Uint8Array; -} -export interface RequestPrepareProposalAmino { - /** the modified transactions cannot exceed this size. */ - max_tx_bytes?: string; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs?: string[]; - local_last_commit?: ExtendedCommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the validator proposing the block. */ - proposer_address?: string; -} -export interface RequestPrepareProposalAminoMsg { - type: "/tendermint.abci.RequestPrepareProposal"; - value: RequestPrepareProposalAmino; -} -export interface RequestPrepareProposalSDKType { - max_tx_bytes: bigint; - txs: Uint8Array[]; - local_last_commit: ExtendedCommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - height: bigint; - time: TimestampSDKType; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface RequestProcessProposal { - txs: Uint8Array[]; - proposedLastCommit: CommitInfo; - misbehavior: Misbehavior[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash: Uint8Array; - height: bigint; - time: Timestamp; - nextValidatorsHash: Uint8Array; - /** address of the public key of the original proposer of the block. */ - proposerAddress: Uint8Array; -} -export interface RequestProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestProcessProposal"; - value: Uint8Array; -} -export interface RequestProcessProposalAmino { - txs?: string[]; - proposed_last_commit?: CommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash?: string; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the original proposer of the block. */ - proposer_address?: string; -} -export interface RequestProcessProposalAminoMsg { - type: "/tendermint.abci.RequestProcessProposal"; - value: RequestProcessProposalAmino; -} -export interface RequestProcessProposalSDKType { - txs: Uint8Array[]; - proposed_last_commit: CommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - hash: Uint8Array; - height: bigint; - time: TimestampSDKType; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface Response { - exception?: ResponseException; - echo?: ResponseEcho; - flush?: ResponseFlush; - info?: ResponseInfo; - initChain?: ResponseInitChain; - query?: ResponseQuery; - beginBlock?: ResponseBeginBlock; - checkTx?: ResponseCheckTx; - deliverTx?: ResponseDeliverTx; - endBlock?: ResponseEndBlock; - commit?: ResponseCommit; - listSnapshots?: ResponseListSnapshots; - offerSnapshot?: ResponseOfferSnapshot; - loadSnapshotChunk?: ResponseLoadSnapshotChunk; - applySnapshotChunk?: ResponseApplySnapshotChunk; - prepareProposal?: ResponsePrepareProposal; - processProposal?: ResponseProcessProposal; -} -export interface ResponseProtoMsg { - typeUrl: "/tendermint.abci.Response"; - value: Uint8Array; -} -export interface ResponseAmino { - exception?: ResponseExceptionAmino; - echo?: ResponseEchoAmino; - flush?: ResponseFlushAmino; - info?: ResponseInfoAmino; - init_chain?: ResponseInitChainAmino; - query?: ResponseQueryAmino; - begin_block?: ResponseBeginBlockAmino; - check_tx?: ResponseCheckTxAmino; - deliver_tx?: ResponseDeliverTxAmino; - end_block?: ResponseEndBlockAmino; - commit?: ResponseCommitAmino; - list_snapshots?: ResponseListSnapshotsAmino; - offer_snapshot?: ResponseOfferSnapshotAmino; - load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; - apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; - prepare_proposal?: ResponsePrepareProposalAmino; - process_proposal?: ResponseProcessProposalAmino; -} -export interface ResponseAminoMsg { - type: "/tendermint.abci.Response"; - value: ResponseAmino; -} -export interface ResponseSDKType { - exception?: ResponseExceptionSDKType; - echo?: ResponseEchoSDKType; - flush?: ResponseFlushSDKType; - info?: ResponseInfoSDKType; - init_chain?: ResponseInitChainSDKType; - query?: ResponseQuerySDKType; - begin_block?: ResponseBeginBlockSDKType; - check_tx?: ResponseCheckTxSDKType; - deliver_tx?: ResponseDeliverTxSDKType; - end_block?: ResponseEndBlockSDKType; - commit?: ResponseCommitSDKType; - list_snapshots?: ResponseListSnapshotsSDKType; - offer_snapshot?: ResponseOfferSnapshotSDKType; - load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; - prepare_proposal?: ResponsePrepareProposalSDKType; - process_proposal?: ResponseProcessProposalSDKType; -} -/** nondeterministic */ -export interface ResponseException { - error: string; -} -export interface ResponseExceptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseException"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseExceptionAmino { - error?: string; -} -export interface ResponseExceptionAminoMsg { - type: "/tendermint.abci.ResponseException"; - value: ResponseExceptionAmino; -} -/** nondeterministic */ -export interface ResponseExceptionSDKType { - error: string; -} -export interface ResponseEcho { - message: string; -} -export interface ResponseEchoProtoMsg { - typeUrl: "/tendermint.abci.ResponseEcho"; - value: Uint8Array; -} -export interface ResponseEchoAmino { - message?: string; -} -export interface ResponseEchoAminoMsg { - type: "/tendermint.abci.ResponseEcho"; - value: ResponseEchoAmino; -} -export interface ResponseEchoSDKType { - message: string; -} -export interface ResponseFlush { -} -export interface ResponseFlushProtoMsg { - typeUrl: "/tendermint.abci.ResponseFlush"; - value: Uint8Array; -} -export interface ResponseFlushAmino { -} -export interface ResponseFlushAminoMsg { - type: "/tendermint.abci.ResponseFlush"; - value: ResponseFlushAmino; -} -export interface ResponseFlushSDKType { -} -export interface ResponseInfo { - data: string; - version: string; - appVersion: bigint; - lastBlockHeight: bigint; - lastBlockAppHash: Uint8Array; -} -export interface ResponseInfoProtoMsg { - typeUrl: "/tendermint.abci.ResponseInfo"; - value: Uint8Array; -} -export interface ResponseInfoAmino { - data?: string; - version?: string; - app_version?: string; - last_block_height?: string; - last_block_app_hash?: string; -} -export interface ResponseInfoAminoMsg { - type: "/tendermint.abci.ResponseInfo"; - value: ResponseInfoAmino; -} -export interface ResponseInfoSDKType { - data: string; - version: string; - app_version: bigint; - last_block_height: bigint; - last_block_app_hash: Uint8Array; -} -export interface ResponseInitChain { - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appHash: Uint8Array; -} -export interface ResponseInitChainProtoMsg { - typeUrl: "/tendermint.abci.ResponseInitChain"; - value: Uint8Array; -} -export interface ResponseInitChainAmino { - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_hash?: string; -} -export interface ResponseInitChainAminoMsg { - type: "/tendermint.abci.ResponseInitChain"; - value: ResponseInitChainAmino; -} -export interface ResponseInitChainSDKType { - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_hash: Uint8Array; -} -export interface ResponseQuery { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proofOps?: ProofOps; - height: bigint; - codespace: string; -} -export interface ResponseQueryProtoMsg { - typeUrl: "/tendermint.abci.ResponseQuery"; - value: Uint8Array; -} -export interface ResponseQueryAmino { - code?: number; - /** bytes data = 2; // use "value" instead. */ - log?: string; - /** nondeterministic */ - info?: string; - index?: string; - key?: string; - value?: string; - proof_ops?: ProofOpsAmino; - height?: string; - codespace?: string; -} -export interface ResponseQueryAminoMsg { - type: "/tendermint.abci.ResponseQuery"; - value: ResponseQueryAmino; -} -export interface ResponseQuerySDKType { - code: number; - log: string; - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsSDKType; - height: bigint; - codespace: string; -} -export interface ResponseBeginBlock { - events: Event[]; -} -export interface ResponseBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseBeginBlock"; - value: Uint8Array; -} -export interface ResponseBeginBlockAmino { - events?: EventAmino[]; -} -export interface ResponseBeginBlockAminoMsg { - type: "/tendermint.abci.ResponseBeginBlock"; - value: ResponseBeginBlockAmino; -} -export interface ResponseBeginBlockSDKType { - events: EventSDKType[]; -} -export interface ResponseCheckTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; - sender: string; - priority: bigint; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempoolError: string; -} -export interface ResponseCheckTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseCheckTx"; - value: Uint8Array; -} -export interface ResponseCheckTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; - sender?: string; - priority?: string; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempool_error?: string; -} -export interface ResponseCheckTxAminoMsg { - type: "/tendermint.abci.ResponseCheckTx"; - value: ResponseCheckTxAmino; -} -export interface ResponseCheckTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; - sender: string; - priority: bigint; - mempool_error: string; -} -export interface ResponseDeliverTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; -} -export interface ResponseDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseDeliverTx"; - value: Uint8Array; -} -export interface ResponseDeliverTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; -} -export interface ResponseDeliverTxAminoMsg { - type: "/tendermint.abci.ResponseDeliverTx"; - value: ResponseDeliverTxAmino; -} -export interface ResponseDeliverTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseEndBlock { - validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates?: ConsensusParams; - events: Event[]; -} -export interface ResponseEndBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseEndBlock"; - value: Uint8Array; -} -export interface ResponseEndBlockAmino { - validator_updates?: ValidatorUpdateAmino[]; - consensus_param_updates?: ConsensusParamsAmino; - events?: EventAmino[]; -} -export interface ResponseEndBlockAminoMsg { - type: "/tendermint.abci.ResponseEndBlock"; - value: ResponseEndBlockAmino; -} -export interface ResponseEndBlockSDKType { - validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates?: ConsensusParamsSDKType; - events: EventSDKType[]; -} -export interface ResponseCommit { - /** reserve 1 */ - data: Uint8Array; - retainHeight: bigint; -} -export interface ResponseCommitProtoMsg { - typeUrl: "/tendermint.abci.ResponseCommit"; - value: Uint8Array; -} -export interface ResponseCommitAmino { - /** reserve 1 */ - data?: string; - retain_height?: string; -} -export interface ResponseCommitAminoMsg { - type: "/tendermint.abci.ResponseCommit"; - value: ResponseCommitAmino; -} -export interface ResponseCommitSDKType { - data: Uint8Array; - retain_height: bigint; -} -export interface ResponseListSnapshots { - snapshots: Snapshot[]; -} -export interface ResponseListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.ResponseListSnapshots"; - value: Uint8Array; -} -export interface ResponseListSnapshotsAmino { - snapshots?: SnapshotAmino[]; -} -export interface ResponseListSnapshotsAminoMsg { - type: "/tendermint.abci.ResponseListSnapshots"; - value: ResponseListSnapshotsAmino; -} -export interface ResponseListSnapshotsSDKType { - snapshots: SnapshotSDKType[]; -} -export interface ResponseOfferSnapshot { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; - value: Uint8Array; -} -export interface ResponseOfferSnapshotAmino { - result?: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotAminoMsg { - type: "/tendermint.abci.ResponseOfferSnapshot"; - value: ResponseOfferSnapshotAmino; -} -export interface ResponseOfferSnapshotSDKType { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseLoadSnapshotChunk { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAmino { - chunk?: string; -} -export interface ResponseLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: ResponseLoadSnapshotChunkAmino; -} -export interface ResponseLoadSnapshotChunkSDKType { - chunk: Uint8Array; -} -export interface ResponseApplySnapshotChunk { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetchChunks: number[]; - /** Chunk senders to reject and ban */ - rejectSenders: string[]; -} -export interface ResponseApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: Uint8Array; -} -export interface ResponseApplySnapshotChunkAmino { - result?: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetch_chunks?: number[]; - /** Chunk senders to reject and ban */ - reject_senders?: string[]; -} -export interface ResponseApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: ResponseApplySnapshotChunkAmino; -} -export interface ResponseApplySnapshotChunkSDKType { - result: ResponseApplySnapshotChunk_Result; - refetch_chunks: number[]; - reject_senders: string[]; -} -export interface ResponsePrepareProposal { - txs: Uint8Array[]; -} -export interface ResponsePrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponsePrepareProposal"; - value: Uint8Array; -} -export interface ResponsePrepareProposalAmino { - txs?: string[]; -} -export interface ResponsePrepareProposalAminoMsg { - type: "/tendermint.abci.ResponsePrepareProposal"; - value: ResponsePrepareProposalAmino; -} -export interface ResponsePrepareProposalSDKType { - txs: Uint8Array[]; -} -export interface ResponseProcessProposal { - status: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponseProcessProposal"; - value: Uint8Array; -} -export interface ResponseProcessProposalAmino { - status?: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalAminoMsg { - type: "/tendermint.abci.ResponseProcessProposal"; - value: ResponseProcessProposalAmino; -} -export interface ResponseProcessProposalSDKType { - status: ResponseProcessProposal_ProposalStatus; -} -export interface CommitInfo { - round: number; - votes: VoteInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/tendermint.abci.CommitInfo"; - value: Uint8Array; -} -export interface CommitInfoAmino { - round?: number; - votes?: VoteInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "/tendermint.abci.CommitInfo"; - value: CommitInfoAmino; -} -export interface CommitInfoSDKType { - round: number; - votes: VoteInfoSDKType[]; -} -export interface ExtendedCommitInfo { - /** The round at which the block proposer decided in the previous height. */ - round: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes: ExtendedVoteInfo[]; -} -export interface ExtendedCommitInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedCommitInfo"; - value: Uint8Array; -} -export interface ExtendedCommitInfoAmino { - /** The round at which the block proposer decided in the previous height. */ - round?: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes?: ExtendedVoteInfoAmino[]; -} -export interface ExtendedCommitInfoAminoMsg { - type: "/tendermint.abci.ExtendedCommitInfo"; - value: ExtendedCommitInfoAmino; -} -export interface ExtendedCommitInfoSDKType { - round: number; - votes: ExtendedVoteInfoSDKType[]; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface Event { - type: string; - attributes: EventAttribute[]; -} -export interface EventProtoMsg { - typeUrl: "/tendermint.abci.Event"; - value: Uint8Array; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventAmino { - type?: string; - attributes?: EventAttributeAmino[]; -} -export interface EventAminoMsg { - type: "/tendermint.abci.Event"; - value: EventAmino; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventSDKType { - type: string; - attributes: EventAttributeSDKType[]; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttribute { - key: string; - value: string; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeProtoMsg { - typeUrl: "/tendermint.abci.EventAttribute"; - value: Uint8Array; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeAmino { - key?: string; - value?: string; - /** nondeterministic */ - index?: boolean; -} -export interface EventAttributeAminoMsg { - type: "/tendermint.abci.EventAttribute"; - value: EventAttributeAmino; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeSDKType { - key: string; - value: string; - index: boolean; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResult { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTx; -} -export interface TxResultProtoMsg { - typeUrl: "/tendermint.abci.TxResult"; - value: Uint8Array; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultAmino { - height?: string; - index?: number; - tx?: string; - result?: ResponseDeliverTxAmino; -} -export interface TxResultAminoMsg { - type: "/tendermint.abci.TxResult"; - value: TxResultAmino; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultSDKType { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTxSDKType; -} -/** Validator */ -export interface Validator { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.abci.Validator"; - value: Uint8Array; -} -/** Validator */ -export interface ValidatorAmino { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address?: string; - /** The voting power */ - power?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.abci.Validator"; - value: ValidatorAmino; -} -/** Validator */ -export interface ValidatorSDKType { - address: Uint8Array; - power: bigint; -} -/** ValidatorUpdate */ -export interface ValidatorUpdate { - pubKey: PublicKey; - power: bigint; -} -export interface ValidatorUpdateProtoMsg { - typeUrl: "/tendermint.abci.ValidatorUpdate"; - value: Uint8Array; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateAmino { - pub_key?: PublicKeyAmino; - power?: string; -} -export interface ValidatorUpdateAminoMsg { - type: "/tendermint.abci.ValidatorUpdate"; - value: ValidatorUpdateAmino; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateSDKType { - pub_key: PublicKeySDKType; - power: bigint; -} -/** VoteInfo */ -export interface VoteInfo { - validator: Validator; - signedLastBlock: boolean; -} -export interface VoteInfoProtoMsg { - typeUrl: "/tendermint.abci.VoteInfo"; - value: Uint8Array; -} -/** VoteInfo */ -export interface VoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; -} -export interface VoteInfoAminoMsg { - type: "/tendermint.abci.VoteInfo"; - value: VoteInfoAmino; -} -/** VoteInfo */ -export interface VoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; -} -export interface ExtendedVoteInfo { - validator: Validator; - signedLastBlock: boolean; - /** Reserved for future use */ - voteExtension: Uint8Array; -} -export interface ExtendedVoteInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedVoteInfo"; - value: Uint8Array; -} -export interface ExtendedVoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; - /** Reserved for future use */ - vote_extension?: string; -} -export interface ExtendedVoteInfoAminoMsg { - type: "/tendermint.abci.ExtendedVoteInfo"; - value: ExtendedVoteInfoAmino; -} -export interface ExtendedVoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; - vote_extension: Uint8Array; -} -export interface Misbehavior { - type: MisbehaviorType; - /** The offending validator */ - validator: Validator; - /** The height when the offense occurred */ - height: bigint; - /** The corresponding time where the offense occurred */ - time: Timestamp; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - totalVotingPower: bigint; -} -export interface MisbehaviorProtoMsg { - typeUrl: "/tendermint.abci.Misbehavior"; - value: Uint8Array; -} -export interface MisbehaviorAmino { - type?: MisbehaviorType; - /** The offending validator */ - validator?: ValidatorAmino; - /** The height when the offense occurred */ - height?: string; - /** The corresponding time where the offense occurred */ - time?: string; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - total_voting_power?: string; -} -export interface MisbehaviorAminoMsg { - type: "/tendermint.abci.Misbehavior"; - value: MisbehaviorAmino; -} -export interface MisbehaviorSDKType { - type: MisbehaviorType; - validator: ValidatorSDKType; - height: bigint; - time: TimestampSDKType; - total_voting_power: bigint; -} -export interface Snapshot { - /** The height at which the snapshot was taken */ - height: bigint; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotProtoMsg { - typeUrl: "/tendermint.abci.Snapshot"; - value: Uint8Array; -} -export interface SnapshotAmino { - /** The height at which the snapshot was taken */ - height?: string; - /** The application-specific snapshot format */ - format?: number; - /** Number of chunks in the snapshot */ - chunks?: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash?: string; - /** Arbitrary application metadata */ - metadata?: string; -} -export interface SnapshotAminoMsg { - type: "/tendermint.abci.Snapshot"; - value: SnapshotAmino; -} -export interface SnapshotSDKType { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Uint8Array; -} -export declare const Request: { - typeUrl: string; - encode(message: Request, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Request; - fromJSON(object: any): Request; - toJSON(message: Request): unknown; - fromPartial(object: Partial): Request; - fromAmino(object: RequestAmino): Request; - toAmino(message: Request): RequestAmino; - fromAminoMsg(object: RequestAminoMsg): Request; - fromProtoMsg(message: RequestProtoMsg): Request; - toProto(message: Request): Uint8Array; - toProtoMsg(message: Request): RequestProtoMsg; -}; -export declare const RequestEcho: { - typeUrl: string; - encode(message: RequestEcho, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho; - fromJSON(object: any): RequestEcho; - toJSON(message: RequestEcho): unknown; - fromPartial(object: Partial): RequestEcho; - fromAmino(object: RequestEchoAmino): RequestEcho; - toAmino(message: RequestEcho): RequestEchoAmino; - fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho; - fromProtoMsg(message: RequestEchoProtoMsg): RequestEcho; - toProto(message: RequestEcho): Uint8Array; - toProtoMsg(message: RequestEcho): RequestEchoProtoMsg; -}; -export declare const RequestFlush: { - typeUrl: string; - encode(_: RequestFlush, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush; - fromJSON(_: any): RequestFlush; - toJSON(_: RequestFlush): unknown; - fromPartial(_: Partial): RequestFlush; - fromAmino(_: RequestFlushAmino): RequestFlush; - toAmino(_: RequestFlush): RequestFlushAmino; - fromAminoMsg(object: RequestFlushAminoMsg): RequestFlush; - fromProtoMsg(message: RequestFlushProtoMsg): RequestFlush; - toProto(message: RequestFlush): Uint8Array; - toProtoMsg(message: RequestFlush): RequestFlushProtoMsg; -}; -export declare const RequestInfo: { - typeUrl: string; - encode(message: RequestInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo; - fromJSON(object: any): RequestInfo; - toJSON(message: RequestInfo): unknown; - fromPartial(object: Partial): RequestInfo; - fromAmino(object: RequestInfoAmino): RequestInfo; - toAmino(message: RequestInfo): RequestInfoAmino; - fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo; - fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo; - toProto(message: RequestInfo): Uint8Array; - toProtoMsg(message: RequestInfo): RequestInfoProtoMsg; -}; -export declare const RequestInitChain: { - typeUrl: string; - encode(message: RequestInitChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain; - fromJSON(object: any): RequestInitChain; - toJSON(message: RequestInitChain): unknown; - fromPartial(object: Partial): RequestInitChain; - fromAmino(object: RequestInitChainAmino): RequestInitChain; - toAmino(message: RequestInitChain): RequestInitChainAmino; - fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain; - fromProtoMsg(message: RequestInitChainProtoMsg): RequestInitChain; - toProto(message: RequestInitChain): Uint8Array; - toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg; -}; -export declare const RequestQuery: { - typeUrl: string; - encode(message: RequestQuery, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery; - fromJSON(object: any): RequestQuery; - toJSON(message: RequestQuery): unknown; - fromPartial(object: Partial): RequestQuery; - fromAmino(object: RequestQueryAmino): RequestQuery; - toAmino(message: RequestQuery): RequestQueryAmino; - fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery; - fromProtoMsg(message: RequestQueryProtoMsg): RequestQuery; - toProto(message: RequestQuery): Uint8Array; - toProtoMsg(message: RequestQuery): RequestQueryProtoMsg; -}; -export declare const RequestBeginBlock: { - typeUrl: string; - encode(message: RequestBeginBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock; - fromJSON(object: any): RequestBeginBlock; - toJSON(message: RequestBeginBlock): unknown; - fromPartial(object: Partial): RequestBeginBlock; - fromAmino(object: RequestBeginBlockAmino): RequestBeginBlock; - toAmino(message: RequestBeginBlock): RequestBeginBlockAmino; - fromAminoMsg(object: RequestBeginBlockAminoMsg): RequestBeginBlock; - fromProtoMsg(message: RequestBeginBlockProtoMsg): RequestBeginBlock; - toProto(message: RequestBeginBlock): Uint8Array; - toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg; -}; -export declare const RequestCheckTx: { - typeUrl: string; - encode(message: RequestCheckTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx; - fromJSON(object: any): RequestCheckTx; - toJSON(message: RequestCheckTx): unknown; - fromPartial(object: Partial): RequestCheckTx; - fromAmino(object: RequestCheckTxAmino): RequestCheckTx; - toAmino(message: RequestCheckTx): RequestCheckTxAmino; - fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx; - fromProtoMsg(message: RequestCheckTxProtoMsg): RequestCheckTx; - toProto(message: RequestCheckTx): Uint8Array; - toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg; -}; -export declare const RequestDeliverTx: { - typeUrl: string; - encode(message: RequestDeliverTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx; - fromJSON(object: any): RequestDeliverTx; - toJSON(message: RequestDeliverTx): unknown; - fromPartial(object: Partial): RequestDeliverTx; - fromAmino(object: RequestDeliverTxAmino): RequestDeliverTx; - toAmino(message: RequestDeliverTx): RequestDeliverTxAmino; - fromAminoMsg(object: RequestDeliverTxAminoMsg): RequestDeliverTx; - fromProtoMsg(message: RequestDeliverTxProtoMsg): RequestDeliverTx; - toProto(message: RequestDeliverTx): Uint8Array; - toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg; -}; -export declare const RequestEndBlock: { - typeUrl: string; - encode(message: RequestEndBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock; - fromJSON(object: any): RequestEndBlock; - toJSON(message: RequestEndBlock): unknown; - fromPartial(object: Partial): RequestEndBlock; - fromAmino(object: RequestEndBlockAmino): RequestEndBlock; - toAmino(message: RequestEndBlock): RequestEndBlockAmino; - fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock; - fromProtoMsg(message: RequestEndBlockProtoMsg): RequestEndBlock; - toProto(message: RequestEndBlock): Uint8Array; - toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg; -}; -export declare const RequestCommit: { - typeUrl: string; - encode(_: RequestCommit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit; - fromJSON(_: any): RequestCommit; - toJSON(_: RequestCommit): unknown; - fromPartial(_: Partial): RequestCommit; - fromAmino(_: RequestCommitAmino): RequestCommit; - toAmino(_: RequestCommit): RequestCommitAmino; - fromAminoMsg(object: RequestCommitAminoMsg): RequestCommit; - fromProtoMsg(message: RequestCommitProtoMsg): RequestCommit; - toProto(message: RequestCommit): Uint8Array; - toProtoMsg(message: RequestCommit): RequestCommitProtoMsg; -}; -export declare const RequestListSnapshots: { - typeUrl: string; - encode(_: RequestListSnapshots, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots; - fromJSON(_: any): RequestListSnapshots; - toJSON(_: RequestListSnapshots): unknown; - fromPartial(_: Partial): RequestListSnapshots; - fromAmino(_: RequestListSnapshotsAmino): RequestListSnapshots; - toAmino(_: RequestListSnapshots): RequestListSnapshotsAmino; - fromAminoMsg(object: RequestListSnapshotsAminoMsg): RequestListSnapshots; - fromProtoMsg(message: RequestListSnapshotsProtoMsg): RequestListSnapshots; - toProto(message: RequestListSnapshots): Uint8Array; - toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg; -}; -export declare const RequestOfferSnapshot: { - typeUrl: string; - encode(message: RequestOfferSnapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot; - fromJSON(object: any): RequestOfferSnapshot; - toJSON(message: RequestOfferSnapshot): unknown; - fromPartial(object: Partial): RequestOfferSnapshot; - fromAmino(object: RequestOfferSnapshotAmino): RequestOfferSnapshot; - toAmino(message: RequestOfferSnapshot): RequestOfferSnapshotAmino; - fromAminoMsg(object: RequestOfferSnapshotAminoMsg): RequestOfferSnapshot; - fromProtoMsg(message: RequestOfferSnapshotProtoMsg): RequestOfferSnapshot; - toProto(message: RequestOfferSnapshot): Uint8Array; - toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg; -}; -export declare const RequestLoadSnapshotChunk: { - typeUrl: string; - encode(message: RequestLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk; - fromJSON(object: any): RequestLoadSnapshotChunk; - toJSON(message: RequestLoadSnapshotChunk): unknown; - fromPartial(object: Partial): RequestLoadSnapshotChunk; - fromAmino(object: RequestLoadSnapshotChunkAmino): RequestLoadSnapshotChunk; - toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino; - fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk; - fromProtoMsg(message: RequestLoadSnapshotChunkProtoMsg): RequestLoadSnapshotChunk; - toProto(message: RequestLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg; -}; -export declare const RequestApplySnapshotChunk: { - typeUrl: string; - encode(message: RequestApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk; - fromJSON(object: any): RequestApplySnapshotChunk; - toJSON(message: RequestApplySnapshotChunk): unknown; - fromPartial(object: Partial): RequestApplySnapshotChunk; - fromAmino(object: RequestApplySnapshotChunkAmino): RequestApplySnapshotChunk; - toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino; - fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk; - fromProtoMsg(message: RequestApplySnapshotChunkProtoMsg): RequestApplySnapshotChunk; - toProto(message: RequestApplySnapshotChunk): Uint8Array; - toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg; -}; -export declare const RequestPrepareProposal: { - typeUrl: string; - encode(message: RequestPrepareProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal; - fromJSON(object: any): RequestPrepareProposal; - toJSON(message: RequestPrepareProposal): unknown; - fromPartial(object: Partial): RequestPrepareProposal; - fromAmino(object: RequestPrepareProposalAmino): RequestPrepareProposal; - toAmino(message: RequestPrepareProposal): RequestPrepareProposalAmino; - fromAminoMsg(object: RequestPrepareProposalAminoMsg): RequestPrepareProposal; - fromProtoMsg(message: RequestPrepareProposalProtoMsg): RequestPrepareProposal; - toProto(message: RequestPrepareProposal): Uint8Array; - toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg; -}; -export declare const RequestProcessProposal: { - typeUrl: string; - encode(message: RequestProcessProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal; - fromJSON(object: any): RequestProcessProposal; - toJSON(message: RequestProcessProposal): unknown; - fromPartial(object: Partial): RequestProcessProposal; - fromAmino(object: RequestProcessProposalAmino): RequestProcessProposal; - toAmino(message: RequestProcessProposal): RequestProcessProposalAmino; - fromAminoMsg(object: RequestProcessProposalAminoMsg): RequestProcessProposal; - fromProtoMsg(message: RequestProcessProposalProtoMsg): RequestProcessProposal; - toProto(message: RequestProcessProposal): Uint8Array; - toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg; -}; -export declare const Response: { - typeUrl: string; - encode(message: Response, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Response; - fromJSON(object: any): Response; - toJSON(message: Response): unknown; - fromPartial(object: Partial): Response; - fromAmino(object: ResponseAmino): Response; - toAmino(message: Response): ResponseAmino; - fromAminoMsg(object: ResponseAminoMsg): Response; - fromProtoMsg(message: ResponseProtoMsg): Response; - toProto(message: Response): Uint8Array; - toProtoMsg(message: Response): ResponseProtoMsg; -}; -export declare const ResponseException: { - typeUrl: string; - encode(message: ResponseException, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseException; - fromJSON(object: any): ResponseException; - toJSON(message: ResponseException): unknown; - fromPartial(object: Partial): ResponseException; - fromAmino(object: ResponseExceptionAmino): ResponseException; - toAmino(message: ResponseException): ResponseExceptionAmino; - fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException; - fromProtoMsg(message: ResponseExceptionProtoMsg): ResponseException; - toProto(message: ResponseException): Uint8Array; - toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg; -}; -export declare const ResponseEcho: { - typeUrl: string; - encode(message: ResponseEcho, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho; - fromJSON(object: any): ResponseEcho; - toJSON(message: ResponseEcho): unknown; - fromPartial(object: Partial): ResponseEcho; - fromAmino(object: ResponseEchoAmino): ResponseEcho; - toAmino(message: ResponseEcho): ResponseEchoAmino; - fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho; - fromProtoMsg(message: ResponseEchoProtoMsg): ResponseEcho; - toProto(message: ResponseEcho): Uint8Array; - toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg; -}; -export declare const ResponseFlush: { - typeUrl: string; - encode(_: ResponseFlush, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush; - fromJSON(_: any): ResponseFlush; - toJSON(_: ResponseFlush): unknown; - fromPartial(_: Partial): ResponseFlush; - fromAmino(_: ResponseFlushAmino): ResponseFlush; - toAmino(_: ResponseFlush): ResponseFlushAmino; - fromAminoMsg(object: ResponseFlushAminoMsg): ResponseFlush; - fromProtoMsg(message: ResponseFlushProtoMsg): ResponseFlush; - toProto(message: ResponseFlush): Uint8Array; - toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg; -}; -export declare const ResponseInfo: { - typeUrl: string; - encode(message: ResponseInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo; - fromJSON(object: any): ResponseInfo; - toJSON(message: ResponseInfo): unknown; - fromPartial(object: Partial): ResponseInfo; - fromAmino(object: ResponseInfoAmino): ResponseInfo; - toAmino(message: ResponseInfo): ResponseInfoAmino; - fromAminoMsg(object: ResponseInfoAminoMsg): ResponseInfo; - fromProtoMsg(message: ResponseInfoProtoMsg): ResponseInfo; - toProto(message: ResponseInfo): Uint8Array; - toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg; -}; -export declare const ResponseInitChain: { - typeUrl: string; - encode(message: ResponseInitChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain; - fromJSON(object: any): ResponseInitChain; - toJSON(message: ResponseInitChain): unknown; - fromPartial(object: Partial): ResponseInitChain; - fromAmino(object: ResponseInitChainAmino): ResponseInitChain; - toAmino(message: ResponseInitChain): ResponseInitChainAmino; - fromAminoMsg(object: ResponseInitChainAminoMsg): ResponseInitChain; - fromProtoMsg(message: ResponseInitChainProtoMsg): ResponseInitChain; - toProto(message: ResponseInitChain): Uint8Array; - toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg; -}; -export declare const ResponseQuery: { - typeUrl: string; - encode(message: ResponseQuery, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery; - fromJSON(object: any): ResponseQuery; - toJSON(message: ResponseQuery): unknown; - fromPartial(object: Partial): ResponseQuery; - fromAmino(object: ResponseQueryAmino): ResponseQuery; - toAmino(message: ResponseQuery): ResponseQueryAmino; - fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery; - fromProtoMsg(message: ResponseQueryProtoMsg): ResponseQuery; - toProto(message: ResponseQuery): Uint8Array; - toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg; -}; -export declare const ResponseBeginBlock: { - typeUrl: string; - encode(message: ResponseBeginBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock; - fromJSON(object: any): ResponseBeginBlock; - toJSON(message: ResponseBeginBlock): unknown; - fromPartial(object: Partial): ResponseBeginBlock; - fromAmino(object: ResponseBeginBlockAmino): ResponseBeginBlock; - toAmino(message: ResponseBeginBlock): ResponseBeginBlockAmino; - fromAminoMsg(object: ResponseBeginBlockAminoMsg): ResponseBeginBlock; - fromProtoMsg(message: ResponseBeginBlockProtoMsg): ResponseBeginBlock; - toProto(message: ResponseBeginBlock): Uint8Array; - toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg; -}; -export declare const ResponseCheckTx: { - typeUrl: string; - encode(message: ResponseCheckTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx; - fromJSON(object: any): ResponseCheckTx; - toJSON(message: ResponseCheckTx): unknown; - fromPartial(object: Partial): ResponseCheckTx; - fromAmino(object: ResponseCheckTxAmino): ResponseCheckTx; - toAmino(message: ResponseCheckTx): ResponseCheckTxAmino; - fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx; - fromProtoMsg(message: ResponseCheckTxProtoMsg): ResponseCheckTx; - toProto(message: ResponseCheckTx): Uint8Array; - toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg; -}; -export declare const ResponseDeliverTx: { - typeUrl: string; - encode(message: ResponseDeliverTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx; - fromJSON(object: any): ResponseDeliverTx; - toJSON(message: ResponseDeliverTx): unknown; - fromPartial(object: Partial): ResponseDeliverTx; - fromAmino(object: ResponseDeliverTxAmino): ResponseDeliverTx; - toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino; - fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx; - fromProtoMsg(message: ResponseDeliverTxProtoMsg): ResponseDeliverTx; - toProto(message: ResponseDeliverTx): Uint8Array; - toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg; -}; -export declare const ResponseEndBlock: { - typeUrl: string; - encode(message: ResponseEndBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock; - fromJSON(object: any): ResponseEndBlock; - toJSON(message: ResponseEndBlock): unknown; - fromPartial(object: Partial): ResponseEndBlock; - fromAmino(object: ResponseEndBlockAmino): ResponseEndBlock; - toAmino(message: ResponseEndBlock): ResponseEndBlockAmino; - fromAminoMsg(object: ResponseEndBlockAminoMsg): ResponseEndBlock; - fromProtoMsg(message: ResponseEndBlockProtoMsg): ResponseEndBlock; - toProto(message: ResponseEndBlock): Uint8Array; - toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg; -}; -export declare const ResponseCommit: { - typeUrl: string; - encode(message: ResponseCommit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit; - fromJSON(object: any): ResponseCommit; - toJSON(message: ResponseCommit): unknown; - fromPartial(object: Partial): ResponseCommit; - fromAmino(object: ResponseCommitAmino): ResponseCommit; - toAmino(message: ResponseCommit): ResponseCommitAmino; - fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit; - fromProtoMsg(message: ResponseCommitProtoMsg): ResponseCommit; - toProto(message: ResponseCommit): Uint8Array; - toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg; -}; -export declare const ResponseListSnapshots: { - typeUrl: string; - encode(message: ResponseListSnapshots, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots; - fromJSON(object: any): ResponseListSnapshots; - toJSON(message: ResponseListSnapshots): unknown; - fromPartial(object: Partial): ResponseListSnapshots; - fromAmino(object: ResponseListSnapshotsAmino): ResponseListSnapshots; - toAmino(message: ResponseListSnapshots): ResponseListSnapshotsAmino; - fromAminoMsg(object: ResponseListSnapshotsAminoMsg): ResponseListSnapshots; - fromProtoMsg(message: ResponseListSnapshotsProtoMsg): ResponseListSnapshots; - toProto(message: ResponseListSnapshots): Uint8Array; - toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg; -}; -export declare const ResponseOfferSnapshot: { - typeUrl: string; - encode(message: ResponseOfferSnapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot; - fromJSON(object: any): ResponseOfferSnapshot; - toJSON(message: ResponseOfferSnapshot): unknown; - fromPartial(object: Partial): ResponseOfferSnapshot; - fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot; - toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino; - fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot; - fromProtoMsg(message: ResponseOfferSnapshotProtoMsg): ResponseOfferSnapshot; - toProto(message: ResponseOfferSnapshot): Uint8Array; - toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg; -}; -export declare const ResponseLoadSnapshotChunk: { - typeUrl: string; - encode(message: ResponseLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; - fromJSON(object: any): ResponseLoadSnapshotChunk; - toJSON(message: ResponseLoadSnapshotChunk): unknown; - fromPartial(object: Partial): ResponseLoadSnapshotChunk; - fromAmino(object: ResponseLoadSnapshotChunkAmino): ResponseLoadSnapshotChunk; - toAmino(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkAmino; - fromAminoMsg(object: ResponseLoadSnapshotChunkAminoMsg): ResponseLoadSnapshotChunk; - fromProtoMsg(message: ResponseLoadSnapshotChunkProtoMsg): ResponseLoadSnapshotChunk; - toProto(message: ResponseLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg; -}; -export declare const ResponseApplySnapshotChunk: { - typeUrl: string; - encode(message: ResponseApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk; - fromJSON(object: any): ResponseApplySnapshotChunk; - toJSON(message: ResponseApplySnapshotChunk): unknown; - fromPartial(object: Partial): ResponseApplySnapshotChunk; - fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk; - toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino; - fromAminoMsg(object: ResponseApplySnapshotChunkAminoMsg): ResponseApplySnapshotChunk; - fromProtoMsg(message: ResponseApplySnapshotChunkProtoMsg): ResponseApplySnapshotChunk; - toProto(message: ResponseApplySnapshotChunk): Uint8Array; - toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg; -}; -export declare const ResponsePrepareProposal: { - typeUrl: string; - encode(message: ResponsePrepareProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal; - fromJSON(object: any): ResponsePrepareProposal; - toJSON(message: ResponsePrepareProposal): unknown; - fromPartial(object: Partial): ResponsePrepareProposal; - fromAmino(object: ResponsePrepareProposalAmino): ResponsePrepareProposal; - toAmino(message: ResponsePrepareProposal): ResponsePrepareProposalAmino; - fromAminoMsg(object: ResponsePrepareProposalAminoMsg): ResponsePrepareProposal; - fromProtoMsg(message: ResponsePrepareProposalProtoMsg): ResponsePrepareProposal; - toProto(message: ResponsePrepareProposal): Uint8Array; - toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg; -}; -export declare const ResponseProcessProposal: { - typeUrl: string; - encode(message: ResponseProcessProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal; - fromJSON(object: any): ResponseProcessProposal; - toJSON(message: ResponseProcessProposal): unknown; - fromPartial(object: Partial): ResponseProcessProposal; - fromAmino(object: ResponseProcessProposalAmino): ResponseProcessProposal; - toAmino(message: ResponseProcessProposal): ResponseProcessProposalAmino; - fromAminoMsg(object: ResponseProcessProposalAminoMsg): ResponseProcessProposal; - fromProtoMsg(message: ResponseProcessProposalProtoMsg): ResponseProcessProposal; - toProto(message: ResponseProcessProposal): Uint8Array; - toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg; -}; -export declare const CommitInfo: { - typeUrl: string; - encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; - fromJSON(object: any): CommitInfo; - toJSON(message: CommitInfo): unknown; - fromPartial(object: Partial): CommitInfo; - fromAmino(object: CommitInfoAmino): CommitInfo; - toAmino(message: CommitInfo): CommitInfoAmino; - fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo; - fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo; - toProto(message: CommitInfo): Uint8Array; - toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; -}; -export declare const ExtendedCommitInfo: { - typeUrl: string; - encode(message: ExtendedCommitInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo; - fromJSON(object: any): ExtendedCommitInfo; - toJSON(message: ExtendedCommitInfo): unknown; - fromPartial(object: Partial): ExtendedCommitInfo; - fromAmino(object: ExtendedCommitInfoAmino): ExtendedCommitInfo; - toAmino(message: ExtendedCommitInfo): ExtendedCommitInfoAmino; - fromAminoMsg(object: ExtendedCommitInfoAminoMsg): ExtendedCommitInfo; - fromProtoMsg(message: ExtendedCommitInfoProtoMsg): ExtendedCommitInfo; - toProto(message: ExtendedCommitInfo): Uint8Array; - toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg; -}; -export declare const Event: { - typeUrl: string; - encode(message: Event, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Event; - fromJSON(object: any): Event; - toJSON(message: Event): unknown; - fromPartial(object: Partial): Event; - fromAmino(object: EventAmino): Event; - toAmino(message: Event): EventAmino; - fromAminoMsg(object: EventAminoMsg): Event; - fromProtoMsg(message: EventProtoMsg): Event; - toProto(message: Event): Uint8Array; - toProtoMsg(message: Event): EventProtoMsg; -}; -export declare const EventAttribute: { - typeUrl: string; - encode(message: EventAttribute, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute; - fromJSON(object: any): EventAttribute; - toJSON(message: EventAttribute): unknown; - fromPartial(object: Partial): EventAttribute; - fromAmino(object: EventAttributeAmino): EventAttribute; - toAmino(message: EventAttribute): EventAttributeAmino; - fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute; - fromProtoMsg(message: EventAttributeProtoMsg): EventAttribute; - toProto(message: EventAttribute): Uint8Array; - toProtoMsg(message: EventAttribute): EventAttributeProtoMsg; -}; -export declare const TxResult: { - typeUrl: string; - encode(message: TxResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxResult; - fromJSON(object: any): TxResult; - toJSON(message: TxResult): unknown; - fromPartial(object: Partial): TxResult; - fromAmino(object: TxResultAmino): TxResult; - toAmino(message: TxResult): TxResultAmino; - fromAminoMsg(object: TxResultAminoMsg): TxResult; - fromProtoMsg(message: TxResultProtoMsg): TxResult; - toProto(message: TxResult): Uint8Array; - toProtoMsg(message: TxResult): TxResultProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromJSON(object: any): Validator; - toJSON(message: Validator): unknown; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const ValidatorUpdate: { - typeUrl: string; - encode(message: ValidatorUpdate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate; - fromJSON(object: any): ValidatorUpdate; - toJSON(message: ValidatorUpdate): unknown; - fromPartial(object: Partial): ValidatorUpdate; - fromAmino(object: ValidatorUpdateAmino): ValidatorUpdate; - toAmino(message: ValidatorUpdate): ValidatorUpdateAmino; - fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate; - fromProtoMsg(message: ValidatorUpdateProtoMsg): ValidatorUpdate; - toProto(message: ValidatorUpdate): Uint8Array; - toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg; -}; -export declare const VoteInfo: { - typeUrl: string; - encode(message: VoteInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo; - fromJSON(object: any): VoteInfo; - toJSON(message: VoteInfo): unknown; - fromPartial(object: Partial): VoteInfo; - fromAmino(object: VoteInfoAmino): VoteInfo; - toAmino(message: VoteInfo): VoteInfoAmino; - fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo; - fromProtoMsg(message: VoteInfoProtoMsg): VoteInfo; - toProto(message: VoteInfo): Uint8Array; - toProtoMsg(message: VoteInfo): VoteInfoProtoMsg; -}; -export declare const ExtendedVoteInfo: { - typeUrl: string; - encode(message: ExtendedVoteInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo; - fromJSON(object: any): ExtendedVoteInfo; - toJSON(message: ExtendedVoteInfo): unknown; - fromPartial(object: Partial): ExtendedVoteInfo; - fromAmino(object: ExtendedVoteInfoAmino): ExtendedVoteInfo; - toAmino(message: ExtendedVoteInfo): ExtendedVoteInfoAmino; - fromAminoMsg(object: ExtendedVoteInfoAminoMsg): ExtendedVoteInfo; - fromProtoMsg(message: ExtendedVoteInfoProtoMsg): ExtendedVoteInfo; - toProto(message: ExtendedVoteInfo): Uint8Array; - toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg; -}; -export declare const Misbehavior: { - typeUrl: string; - encode(message: Misbehavior, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior; - fromJSON(object: any): Misbehavior; - toJSON(message: Misbehavior): unknown; - fromPartial(object: Partial): Misbehavior; - fromAmino(object: MisbehaviorAmino): Misbehavior; - toAmino(message: Misbehavior): MisbehaviorAmino; - fromAminoMsg(object: MisbehaviorAminoMsg): Misbehavior; - fromProtoMsg(message: MisbehaviorProtoMsg): Misbehavior; - toProto(message: Misbehavior): Uint8Array; - toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg; -}; -export declare const Snapshot: { - typeUrl: string; - encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; - fromJSON(object: any): Snapshot; - toJSON(message: Snapshot): unknown; - fromPartial(object: Partial): Snapshot; - fromAmino(object: SnapshotAmino): Snapshot; - toAmino(message: Snapshot): SnapshotAmino; - fromAminoMsg(object: SnapshotAminoMsg): Snapshot; - fromProtoMsg(message: SnapshotProtoMsg): Snapshot; - toProto(message: Snapshot): Uint8Array; - toProtoMsg(message: Snapshot): SnapshotProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/bundle.d.ts b/packages/api/types/codegen/tendermint/bundle.d.ts deleted file mode 100644 index f1aafa73..00000000 --- a/packages/api/types/codegen/tendermint/bundle.d.ts +++ /dev/null @@ -1,1266 +0,0 @@ -import * as _141 from "./abci/types"; -import * as _142 from "./crypto/keys"; -import * as _143 from "./crypto/proof"; -import * as _144 from "./libs/bits/types"; -import * as _145 from "./p2p/types"; -import * as _146 from "./types/block"; -import * as _147 from "./types/evidence"; -import * as _148 from "./types/params"; -import * as _149 from "./types/types"; -import * as _150 from "./types/validator"; -import * as _151 from "./version/types"; -export declare namespace tendermint { - const abci: { - checkTxTypeFromJSON(object: any): _141.CheckTxType; - checkTxTypeToJSON(object: _141.CheckTxType): string; - responseOfferSnapshot_ResultFromJSON(object: any): _141.ResponseOfferSnapshot_Result; - responseOfferSnapshot_ResultToJSON(object: _141.ResponseOfferSnapshot_Result): string; - responseApplySnapshotChunk_ResultFromJSON(object: any): _141.ResponseApplySnapshotChunk_Result; - responseApplySnapshotChunk_ResultToJSON(object: _141.ResponseApplySnapshotChunk_Result): string; - responseProcessProposal_ProposalStatusFromJSON(object: any): _141.ResponseProcessProposal_ProposalStatus; - responseProcessProposal_ProposalStatusToJSON(object: _141.ResponseProcessProposal_ProposalStatus): string; - misbehaviorTypeFromJSON(object: any): _141.MisbehaviorType; - misbehaviorTypeToJSON(object: _141.MisbehaviorType): string; - CheckTxType: typeof _141.CheckTxType; - CheckTxTypeSDKType: typeof _141.CheckTxType; - CheckTxTypeAmino: typeof _141.CheckTxType; - ResponseOfferSnapshot_Result: typeof _141.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultSDKType: typeof _141.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultAmino: typeof _141.ResponseOfferSnapshot_Result; - ResponseApplySnapshotChunk_Result: typeof _141.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultSDKType: typeof _141.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultAmino: typeof _141.ResponseApplySnapshotChunk_Result; - ResponseProcessProposal_ProposalStatus: typeof _141.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusSDKType: typeof _141.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusAmino: typeof _141.ResponseProcessProposal_ProposalStatus; - MisbehaviorType: typeof _141.MisbehaviorType; - MisbehaviorTypeSDKType: typeof _141.MisbehaviorType; - MisbehaviorTypeAmino: typeof _141.MisbehaviorType; - Request: { - typeUrl: string; - encode(message: _141.Request, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Request; - fromJSON(object: any): _141.Request; - toJSON(message: _141.Request): unknown; - fromPartial(object: Partial<_141.Request>): _141.Request; - fromAmino(object: _141.RequestAmino): _141.Request; - toAmino(message: _141.Request): _141.RequestAmino; - fromAminoMsg(object: _141.RequestAminoMsg): _141.Request; - fromProtoMsg(message: _141.RequestProtoMsg): _141.Request; - toProto(message: _141.Request): Uint8Array; - toProtoMsg(message: _141.Request): _141.RequestProtoMsg; - }; - RequestEcho: { - typeUrl: string; - encode(message: _141.RequestEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestEcho; - fromJSON(object: any): _141.RequestEcho; - toJSON(message: _141.RequestEcho): unknown; - fromPartial(object: Partial<_141.RequestEcho>): _141.RequestEcho; - fromAmino(object: _141.RequestEchoAmino): _141.RequestEcho; - toAmino(message: _141.RequestEcho): _141.RequestEchoAmino; - fromAminoMsg(object: _141.RequestEchoAminoMsg): _141.RequestEcho; - fromProtoMsg(message: _141.RequestEchoProtoMsg): _141.RequestEcho; - toProto(message: _141.RequestEcho): Uint8Array; - toProtoMsg(message: _141.RequestEcho): _141.RequestEchoProtoMsg; - }; - RequestFlush: { - typeUrl: string; - encode(_: _141.RequestFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestFlush; - fromJSON(_: any): _141.RequestFlush; - toJSON(_: _141.RequestFlush): unknown; - fromPartial(_: Partial<_141.RequestFlush>): _141.RequestFlush; - fromAmino(_: _141.RequestFlushAmino): _141.RequestFlush; - toAmino(_: _141.RequestFlush): _141.RequestFlushAmino; - fromAminoMsg(object: _141.RequestFlushAminoMsg): _141.RequestFlush; - fromProtoMsg(message: _141.RequestFlushProtoMsg): _141.RequestFlush; - toProto(message: _141.RequestFlush): Uint8Array; - toProtoMsg(message: _141.RequestFlush): _141.RequestFlushProtoMsg; - }; - RequestInfo: { - typeUrl: string; - encode(message: _141.RequestInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestInfo; - fromJSON(object: any): _141.RequestInfo; - toJSON(message: _141.RequestInfo): unknown; - fromPartial(object: Partial<_141.RequestInfo>): _141.RequestInfo; - fromAmino(object: _141.RequestInfoAmino): _141.RequestInfo; - toAmino(message: _141.RequestInfo): _141.RequestInfoAmino; - fromAminoMsg(object: _141.RequestInfoAminoMsg): _141.RequestInfo; - fromProtoMsg(message: _141.RequestInfoProtoMsg): _141.RequestInfo; - toProto(message: _141.RequestInfo): Uint8Array; - toProtoMsg(message: _141.RequestInfo): _141.RequestInfoProtoMsg; - }; - RequestInitChain: { - typeUrl: string; - encode(message: _141.RequestInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestInitChain; - fromJSON(object: any): _141.RequestInitChain; - toJSON(message: _141.RequestInitChain): unknown; - fromPartial(object: Partial<_141.RequestInitChain>): _141.RequestInitChain; - fromAmino(object: _141.RequestInitChainAmino): _141.RequestInitChain; - toAmino(message: _141.RequestInitChain): _141.RequestInitChainAmino; - fromAminoMsg(object: _141.RequestInitChainAminoMsg): _141.RequestInitChain; - fromProtoMsg(message: _141.RequestInitChainProtoMsg): _141.RequestInitChain; - toProto(message: _141.RequestInitChain): Uint8Array; - toProtoMsg(message: _141.RequestInitChain): _141.RequestInitChainProtoMsg; - }; - RequestQuery: { - typeUrl: string; - encode(message: _141.RequestQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestQuery; - fromJSON(object: any): _141.RequestQuery; - toJSON(message: _141.RequestQuery): unknown; - fromPartial(object: Partial<_141.RequestQuery>): _141.RequestQuery; - fromAmino(object: _141.RequestQueryAmino): _141.RequestQuery; - toAmino(message: _141.RequestQuery): _141.RequestQueryAmino; - fromAminoMsg(object: _141.RequestQueryAminoMsg): _141.RequestQuery; - fromProtoMsg(message: _141.RequestQueryProtoMsg): _141.RequestQuery; - toProto(message: _141.RequestQuery): Uint8Array; - toProtoMsg(message: _141.RequestQuery): _141.RequestQueryProtoMsg; - }; - RequestBeginBlock: { - typeUrl: string; - encode(message: _141.RequestBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestBeginBlock; - fromJSON(object: any): _141.RequestBeginBlock; - toJSON(message: _141.RequestBeginBlock): unknown; - fromPartial(object: Partial<_141.RequestBeginBlock>): _141.RequestBeginBlock; - fromAmino(object: _141.RequestBeginBlockAmino): _141.RequestBeginBlock; - toAmino(message: _141.RequestBeginBlock): _141.RequestBeginBlockAmino; - fromAminoMsg(object: _141.RequestBeginBlockAminoMsg): _141.RequestBeginBlock; - fromProtoMsg(message: _141.RequestBeginBlockProtoMsg): _141.RequestBeginBlock; - toProto(message: _141.RequestBeginBlock): Uint8Array; - toProtoMsg(message: _141.RequestBeginBlock): _141.RequestBeginBlockProtoMsg; - }; - RequestCheckTx: { - typeUrl: string; - encode(message: _141.RequestCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestCheckTx; - fromJSON(object: any): _141.RequestCheckTx; - toJSON(message: _141.RequestCheckTx): unknown; - fromPartial(object: Partial<_141.RequestCheckTx>): _141.RequestCheckTx; - fromAmino(object: _141.RequestCheckTxAmino): _141.RequestCheckTx; - toAmino(message: _141.RequestCheckTx): _141.RequestCheckTxAmino; - fromAminoMsg(object: _141.RequestCheckTxAminoMsg): _141.RequestCheckTx; - fromProtoMsg(message: _141.RequestCheckTxProtoMsg): _141.RequestCheckTx; - toProto(message: _141.RequestCheckTx): Uint8Array; - toProtoMsg(message: _141.RequestCheckTx): _141.RequestCheckTxProtoMsg; - }; - RequestDeliverTx: { - typeUrl: string; - encode(message: _141.RequestDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestDeliverTx; - fromJSON(object: any): _141.RequestDeliverTx; - toJSON(message: _141.RequestDeliverTx): unknown; - fromPartial(object: Partial<_141.RequestDeliverTx>): _141.RequestDeliverTx; - fromAmino(object: _141.RequestDeliverTxAmino): _141.RequestDeliverTx; - toAmino(message: _141.RequestDeliverTx): _141.RequestDeliverTxAmino; - fromAminoMsg(object: _141.RequestDeliverTxAminoMsg): _141.RequestDeliverTx; - fromProtoMsg(message: _141.RequestDeliverTxProtoMsg): _141.RequestDeliverTx; - toProto(message: _141.RequestDeliverTx): Uint8Array; - toProtoMsg(message: _141.RequestDeliverTx): _141.RequestDeliverTxProtoMsg; - }; - RequestEndBlock: { - typeUrl: string; - encode(message: _141.RequestEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestEndBlock; - fromJSON(object: any): _141.RequestEndBlock; - toJSON(message: _141.RequestEndBlock): unknown; - fromPartial(object: Partial<_141.RequestEndBlock>): _141.RequestEndBlock; - fromAmino(object: _141.RequestEndBlockAmino): _141.RequestEndBlock; - toAmino(message: _141.RequestEndBlock): _141.RequestEndBlockAmino; - fromAminoMsg(object: _141.RequestEndBlockAminoMsg): _141.RequestEndBlock; - fromProtoMsg(message: _141.RequestEndBlockProtoMsg): _141.RequestEndBlock; - toProto(message: _141.RequestEndBlock): Uint8Array; - toProtoMsg(message: _141.RequestEndBlock): _141.RequestEndBlockProtoMsg; - }; - RequestCommit: { - typeUrl: string; - encode(_: _141.RequestCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestCommit; - fromJSON(_: any): _141.RequestCommit; - toJSON(_: _141.RequestCommit): unknown; - fromPartial(_: Partial<_141.RequestCommit>): _141.RequestCommit; - fromAmino(_: _141.RequestCommitAmino): _141.RequestCommit; - toAmino(_: _141.RequestCommit): _141.RequestCommitAmino; - fromAminoMsg(object: _141.RequestCommitAminoMsg): _141.RequestCommit; - fromProtoMsg(message: _141.RequestCommitProtoMsg): _141.RequestCommit; - toProto(message: _141.RequestCommit): Uint8Array; - toProtoMsg(message: _141.RequestCommit): _141.RequestCommitProtoMsg; - }; - RequestListSnapshots: { - typeUrl: string; - encode(_: _141.RequestListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestListSnapshots; - fromJSON(_: any): _141.RequestListSnapshots; - toJSON(_: _141.RequestListSnapshots): unknown; - fromPartial(_: Partial<_141.RequestListSnapshots>): _141.RequestListSnapshots; - fromAmino(_: _141.RequestListSnapshotsAmino): _141.RequestListSnapshots; - toAmino(_: _141.RequestListSnapshots): _141.RequestListSnapshotsAmino; - fromAminoMsg(object: _141.RequestListSnapshotsAminoMsg): _141.RequestListSnapshots; - fromProtoMsg(message: _141.RequestListSnapshotsProtoMsg): _141.RequestListSnapshots; - toProto(message: _141.RequestListSnapshots): Uint8Array; - toProtoMsg(message: _141.RequestListSnapshots): _141.RequestListSnapshotsProtoMsg; - }; - RequestOfferSnapshot: { - typeUrl: string; - encode(message: _141.RequestOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestOfferSnapshot; - fromJSON(object: any): _141.RequestOfferSnapshot; - toJSON(message: _141.RequestOfferSnapshot): unknown; - fromPartial(object: Partial<_141.RequestOfferSnapshot>): _141.RequestOfferSnapshot; - fromAmino(object: _141.RequestOfferSnapshotAmino): _141.RequestOfferSnapshot; - toAmino(message: _141.RequestOfferSnapshot): _141.RequestOfferSnapshotAmino; - fromAminoMsg(object: _141.RequestOfferSnapshotAminoMsg): _141.RequestOfferSnapshot; - fromProtoMsg(message: _141.RequestOfferSnapshotProtoMsg): _141.RequestOfferSnapshot; - toProto(message: _141.RequestOfferSnapshot): Uint8Array; - toProtoMsg(message: _141.RequestOfferSnapshot): _141.RequestOfferSnapshotProtoMsg; - }; - RequestLoadSnapshotChunk: { - typeUrl: string; - encode(message: _141.RequestLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestLoadSnapshotChunk; - fromJSON(object: any): _141.RequestLoadSnapshotChunk; - toJSON(message: _141.RequestLoadSnapshotChunk): unknown; - fromPartial(object: Partial<_141.RequestLoadSnapshotChunk>): _141.RequestLoadSnapshotChunk; - fromAmino(object: _141.RequestLoadSnapshotChunkAmino): _141.RequestLoadSnapshotChunk; - toAmino(message: _141.RequestLoadSnapshotChunk): _141.RequestLoadSnapshotChunkAmino; - fromAminoMsg(object: _141.RequestLoadSnapshotChunkAminoMsg): _141.RequestLoadSnapshotChunk; - fromProtoMsg(message: _141.RequestLoadSnapshotChunkProtoMsg): _141.RequestLoadSnapshotChunk; - toProto(message: _141.RequestLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _141.RequestLoadSnapshotChunk): _141.RequestLoadSnapshotChunkProtoMsg; - }; - RequestApplySnapshotChunk: { - typeUrl: string; - encode(message: _141.RequestApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestApplySnapshotChunk; - fromJSON(object: any): _141.RequestApplySnapshotChunk; - toJSON(message: _141.RequestApplySnapshotChunk): unknown; - fromPartial(object: Partial<_141.RequestApplySnapshotChunk>): _141.RequestApplySnapshotChunk; - fromAmino(object: _141.RequestApplySnapshotChunkAmino): _141.RequestApplySnapshotChunk; - toAmino(message: _141.RequestApplySnapshotChunk): _141.RequestApplySnapshotChunkAmino; - fromAminoMsg(object: _141.RequestApplySnapshotChunkAminoMsg): _141.RequestApplySnapshotChunk; - fromProtoMsg(message: _141.RequestApplySnapshotChunkProtoMsg): _141.RequestApplySnapshotChunk; - toProto(message: _141.RequestApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _141.RequestApplySnapshotChunk): _141.RequestApplySnapshotChunkProtoMsg; - }; - RequestPrepareProposal: { - typeUrl: string; - encode(message: _141.RequestPrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestPrepareProposal; - fromJSON(object: any): _141.RequestPrepareProposal; - toJSON(message: _141.RequestPrepareProposal): unknown; - fromPartial(object: Partial<_141.RequestPrepareProposal>): _141.RequestPrepareProposal; - fromAmino(object: _141.RequestPrepareProposalAmino): _141.RequestPrepareProposal; - toAmino(message: _141.RequestPrepareProposal): _141.RequestPrepareProposalAmino; - fromAminoMsg(object: _141.RequestPrepareProposalAminoMsg): _141.RequestPrepareProposal; - fromProtoMsg(message: _141.RequestPrepareProposalProtoMsg): _141.RequestPrepareProposal; - toProto(message: _141.RequestPrepareProposal): Uint8Array; - toProtoMsg(message: _141.RequestPrepareProposal): _141.RequestPrepareProposalProtoMsg; - }; - RequestProcessProposal: { - typeUrl: string; - encode(message: _141.RequestProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.RequestProcessProposal; - fromJSON(object: any): _141.RequestProcessProposal; - toJSON(message: _141.RequestProcessProposal): unknown; - fromPartial(object: Partial<_141.RequestProcessProposal>): _141.RequestProcessProposal; - fromAmino(object: _141.RequestProcessProposalAmino): _141.RequestProcessProposal; - toAmino(message: _141.RequestProcessProposal): _141.RequestProcessProposalAmino; - fromAminoMsg(object: _141.RequestProcessProposalAminoMsg): _141.RequestProcessProposal; - fromProtoMsg(message: _141.RequestProcessProposalProtoMsg): _141.RequestProcessProposal; - toProto(message: _141.RequestProcessProposal): Uint8Array; - toProtoMsg(message: _141.RequestProcessProposal): _141.RequestProcessProposalProtoMsg; - }; - Response: { - typeUrl: string; - encode(message: _141.Response, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Response; - fromJSON(object: any): _141.Response; - toJSON(message: _141.Response): unknown; - fromPartial(object: Partial<_141.Response>): _141.Response; - fromAmino(object: _141.ResponseAmino): _141.Response; - toAmino(message: _141.Response): _141.ResponseAmino; - fromAminoMsg(object: _141.ResponseAminoMsg): _141.Response; - fromProtoMsg(message: _141.ResponseProtoMsg): _141.Response; - toProto(message: _141.Response): Uint8Array; - toProtoMsg(message: _141.Response): _141.ResponseProtoMsg; - }; - ResponseException: { - typeUrl: string; - encode(message: _141.ResponseException, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseException; - fromJSON(object: any): _141.ResponseException; - toJSON(message: _141.ResponseException): unknown; - fromPartial(object: Partial<_141.ResponseException>): _141.ResponseException; - fromAmino(object: _141.ResponseExceptionAmino): _141.ResponseException; - toAmino(message: _141.ResponseException): _141.ResponseExceptionAmino; - fromAminoMsg(object: _141.ResponseExceptionAminoMsg): _141.ResponseException; - fromProtoMsg(message: _141.ResponseExceptionProtoMsg): _141.ResponseException; - toProto(message: _141.ResponseException): Uint8Array; - toProtoMsg(message: _141.ResponseException): _141.ResponseExceptionProtoMsg; - }; - ResponseEcho: { - typeUrl: string; - encode(message: _141.ResponseEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseEcho; - fromJSON(object: any): _141.ResponseEcho; - toJSON(message: _141.ResponseEcho): unknown; - fromPartial(object: Partial<_141.ResponseEcho>): _141.ResponseEcho; - fromAmino(object: _141.ResponseEchoAmino): _141.ResponseEcho; - toAmino(message: _141.ResponseEcho): _141.ResponseEchoAmino; - fromAminoMsg(object: _141.ResponseEchoAminoMsg): _141.ResponseEcho; - fromProtoMsg(message: _141.ResponseEchoProtoMsg): _141.ResponseEcho; - toProto(message: _141.ResponseEcho): Uint8Array; - toProtoMsg(message: _141.ResponseEcho): _141.ResponseEchoProtoMsg; - }; - ResponseFlush: { - typeUrl: string; - encode(_: _141.ResponseFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseFlush; - fromJSON(_: any): _141.ResponseFlush; - toJSON(_: _141.ResponseFlush): unknown; - fromPartial(_: Partial<_141.ResponseFlush>): _141.ResponseFlush; - fromAmino(_: _141.ResponseFlushAmino): _141.ResponseFlush; - toAmino(_: _141.ResponseFlush): _141.ResponseFlushAmino; - fromAminoMsg(object: _141.ResponseFlushAminoMsg): _141.ResponseFlush; - fromProtoMsg(message: _141.ResponseFlushProtoMsg): _141.ResponseFlush; - toProto(message: _141.ResponseFlush): Uint8Array; - toProtoMsg(message: _141.ResponseFlush): _141.ResponseFlushProtoMsg; - }; - ResponseInfo: { - typeUrl: string; - encode(message: _141.ResponseInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseInfo; - fromJSON(object: any): _141.ResponseInfo; - toJSON(message: _141.ResponseInfo): unknown; - fromPartial(object: Partial<_141.ResponseInfo>): _141.ResponseInfo; - fromAmino(object: _141.ResponseInfoAmino): _141.ResponseInfo; - toAmino(message: _141.ResponseInfo): _141.ResponseInfoAmino; - fromAminoMsg(object: _141.ResponseInfoAminoMsg): _141.ResponseInfo; - fromProtoMsg(message: _141.ResponseInfoProtoMsg): _141.ResponseInfo; - toProto(message: _141.ResponseInfo): Uint8Array; - toProtoMsg(message: _141.ResponseInfo): _141.ResponseInfoProtoMsg; - }; - ResponseInitChain: { - typeUrl: string; - encode(message: _141.ResponseInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseInitChain; - fromJSON(object: any): _141.ResponseInitChain; - toJSON(message: _141.ResponseInitChain): unknown; - fromPartial(object: Partial<_141.ResponseInitChain>): _141.ResponseInitChain; - fromAmino(object: _141.ResponseInitChainAmino): _141.ResponseInitChain; - toAmino(message: _141.ResponseInitChain): _141.ResponseInitChainAmino; - fromAminoMsg(object: _141.ResponseInitChainAminoMsg): _141.ResponseInitChain; - fromProtoMsg(message: _141.ResponseInitChainProtoMsg): _141.ResponseInitChain; - toProto(message: _141.ResponseInitChain): Uint8Array; - toProtoMsg(message: _141.ResponseInitChain): _141.ResponseInitChainProtoMsg; - }; - ResponseQuery: { - typeUrl: string; - encode(message: _141.ResponseQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseQuery; - fromJSON(object: any): _141.ResponseQuery; - toJSON(message: _141.ResponseQuery): unknown; - fromPartial(object: Partial<_141.ResponseQuery>): _141.ResponseQuery; - fromAmino(object: _141.ResponseQueryAmino): _141.ResponseQuery; - toAmino(message: _141.ResponseQuery): _141.ResponseQueryAmino; - fromAminoMsg(object: _141.ResponseQueryAminoMsg): _141.ResponseQuery; - fromProtoMsg(message: _141.ResponseQueryProtoMsg): _141.ResponseQuery; - toProto(message: _141.ResponseQuery): Uint8Array; - toProtoMsg(message: _141.ResponseQuery): _141.ResponseQueryProtoMsg; - }; - ResponseBeginBlock: { - typeUrl: string; - encode(message: _141.ResponseBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseBeginBlock; - fromJSON(object: any): _141.ResponseBeginBlock; - toJSON(message: _141.ResponseBeginBlock): unknown; - fromPartial(object: Partial<_141.ResponseBeginBlock>): _141.ResponseBeginBlock; - fromAmino(object: _141.ResponseBeginBlockAmino): _141.ResponseBeginBlock; - toAmino(message: _141.ResponseBeginBlock): _141.ResponseBeginBlockAmino; - fromAminoMsg(object: _141.ResponseBeginBlockAminoMsg): _141.ResponseBeginBlock; - fromProtoMsg(message: _141.ResponseBeginBlockProtoMsg): _141.ResponseBeginBlock; - toProto(message: _141.ResponseBeginBlock): Uint8Array; - toProtoMsg(message: _141.ResponseBeginBlock): _141.ResponseBeginBlockProtoMsg; - }; - ResponseCheckTx: { - typeUrl: string; - encode(message: _141.ResponseCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseCheckTx; - fromJSON(object: any): _141.ResponseCheckTx; - toJSON(message: _141.ResponseCheckTx): unknown; - fromPartial(object: Partial<_141.ResponseCheckTx>): _141.ResponseCheckTx; - fromAmino(object: _141.ResponseCheckTxAmino): _141.ResponseCheckTx; - toAmino(message: _141.ResponseCheckTx): _141.ResponseCheckTxAmino; - fromAminoMsg(object: _141.ResponseCheckTxAminoMsg): _141.ResponseCheckTx; - fromProtoMsg(message: _141.ResponseCheckTxProtoMsg): _141.ResponseCheckTx; - toProto(message: _141.ResponseCheckTx): Uint8Array; - toProtoMsg(message: _141.ResponseCheckTx): _141.ResponseCheckTxProtoMsg; - }; - ResponseDeliverTx: { - typeUrl: string; - encode(message: _141.ResponseDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseDeliverTx; - fromJSON(object: any): _141.ResponseDeliverTx; - toJSON(message: _141.ResponseDeliverTx): unknown; - fromPartial(object: Partial<_141.ResponseDeliverTx>): _141.ResponseDeliverTx; - fromAmino(object: _141.ResponseDeliverTxAmino): _141.ResponseDeliverTx; - toAmino(message: _141.ResponseDeliverTx): _141.ResponseDeliverTxAmino; - fromAminoMsg(object: _141.ResponseDeliverTxAminoMsg): _141.ResponseDeliverTx; - fromProtoMsg(message: _141.ResponseDeliverTxProtoMsg): _141.ResponseDeliverTx; - toProto(message: _141.ResponseDeliverTx): Uint8Array; - toProtoMsg(message: _141.ResponseDeliverTx): _141.ResponseDeliverTxProtoMsg; - }; - ResponseEndBlock: { - typeUrl: string; - encode(message: _141.ResponseEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseEndBlock; - fromJSON(object: any): _141.ResponseEndBlock; - toJSON(message: _141.ResponseEndBlock): unknown; - fromPartial(object: Partial<_141.ResponseEndBlock>): _141.ResponseEndBlock; - fromAmino(object: _141.ResponseEndBlockAmino): _141.ResponseEndBlock; - toAmino(message: _141.ResponseEndBlock): _141.ResponseEndBlockAmino; - fromAminoMsg(object: _141.ResponseEndBlockAminoMsg): _141.ResponseEndBlock; - fromProtoMsg(message: _141.ResponseEndBlockProtoMsg): _141.ResponseEndBlock; - toProto(message: _141.ResponseEndBlock): Uint8Array; - toProtoMsg(message: _141.ResponseEndBlock): _141.ResponseEndBlockProtoMsg; - }; - ResponseCommit: { - typeUrl: string; - encode(message: _141.ResponseCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseCommit; - fromJSON(object: any): _141.ResponseCommit; - toJSON(message: _141.ResponseCommit): unknown; - fromPartial(object: Partial<_141.ResponseCommit>): _141.ResponseCommit; - fromAmino(object: _141.ResponseCommitAmino): _141.ResponseCommit; - toAmino(message: _141.ResponseCommit): _141.ResponseCommitAmino; - fromAminoMsg(object: _141.ResponseCommitAminoMsg): _141.ResponseCommit; - fromProtoMsg(message: _141.ResponseCommitProtoMsg): _141.ResponseCommit; - toProto(message: _141.ResponseCommit): Uint8Array; - toProtoMsg(message: _141.ResponseCommit): _141.ResponseCommitProtoMsg; - }; - ResponseListSnapshots: { - typeUrl: string; - encode(message: _141.ResponseListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseListSnapshots; - fromJSON(object: any): _141.ResponseListSnapshots; - toJSON(message: _141.ResponseListSnapshots): unknown; - fromPartial(object: Partial<_141.ResponseListSnapshots>): _141.ResponseListSnapshots; - fromAmino(object: _141.ResponseListSnapshotsAmino): _141.ResponseListSnapshots; - toAmino(message: _141.ResponseListSnapshots): _141.ResponseListSnapshotsAmino; - fromAminoMsg(object: _141.ResponseListSnapshotsAminoMsg): _141.ResponseListSnapshots; - fromProtoMsg(message: _141.ResponseListSnapshotsProtoMsg): _141.ResponseListSnapshots; - toProto(message: _141.ResponseListSnapshots): Uint8Array; - toProtoMsg(message: _141.ResponseListSnapshots): _141.ResponseListSnapshotsProtoMsg; - }; - ResponseOfferSnapshot: { - typeUrl: string; - encode(message: _141.ResponseOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseOfferSnapshot; - fromJSON(object: any): _141.ResponseOfferSnapshot; - toJSON(message: _141.ResponseOfferSnapshot): unknown; - fromPartial(object: Partial<_141.ResponseOfferSnapshot>): _141.ResponseOfferSnapshot; - fromAmino(object: _141.ResponseOfferSnapshotAmino): _141.ResponseOfferSnapshot; - toAmino(message: _141.ResponseOfferSnapshot): _141.ResponseOfferSnapshotAmino; - fromAminoMsg(object: _141.ResponseOfferSnapshotAminoMsg): _141.ResponseOfferSnapshot; - fromProtoMsg(message: _141.ResponseOfferSnapshotProtoMsg): _141.ResponseOfferSnapshot; - toProto(message: _141.ResponseOfferSnapshot): Uint8Array; - toProtoMsg(message: _141.ResponseOfferSnapshot): _141.ResponseOfferSnapshotProtoMsg; - }; - ResponseLoadSnapshotChunk: { - typeUrl: string; - encode(message: _141.ResponseLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseLoadSnapshotChunk; - fromJSON(object: any): _141.ResponseLoadSnapshotChunk; - toJSON(message: _141.ResponseLoadSnapshotChunk): unknown; - fromPartial(object: Partial<_141.ResponseLoadSnapshotChunk>): _141.ResponseLoadSnapshotChunk; - fromAmino(object: _141.ResponseLoadSnapshotChunkAmino): _141.ResponseLoadSnapshotChunk; - toAmino(message: _141.ResponseLoadSnapshotChunk): _141.ResponseLoadSnapshotChunkAmino; - fromAminoMsg(object: _141.ResponseLoadSnapshotChunkAminoMsg): _141.ResponseLoadSnapshotChunk; - fromProtoMsg(message: _141.ResponseLoadSnapshotChunkProtoMsg): _141.ResponseLoadSnapshotChunk; - toProto(message: _141.ResponseLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _141.ResponseLoadSnapshotChunk): _141.ResponseLoadSnapshotChunkProtoMsg; - }; - ResponseApplySnapshotChunk: { - typeUrl: string; - encode(message: _141.ResponseApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseApplySnapshotChunk; - fromJSON(object: any): _141.ResponseApplySnapshotChunk; - toJSON(message: _141.ResponseApplySnapshotChunk): unknown; - fromPartial(object: Partial<_141.ResponseApplySnapshotChunk>): _141.ResponseApplySnapshotChunk; - fromAmino(object: _141.ResponseApplySnapshotChunkAmino): _141.ResponseApplySnapshotChunk; - toAmino(message: _141.ResponseApplySnapshotChunk): _141.ResponseApplySnapshotChunkAmino; - fromAminoMsg(object: _141.ResponseApplySnapshotChunkAminoMsg): _141.ResponseApplySnapshotChunk; - fromProtoMsg(message: _141.ResponseApplySnapshotChunkProtoMsg): _141.ResponseApplySnapshotChunk; - toProto(message: _141.ResponseApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _141.ResponseApplySnapshotChunk): _141.ResponseApplySnapshotChunkProtoMsg; - }; - ResponsePrepareProposal: { - typeUrl: string; - encode(message: _141.ResponsePrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponsePrepareProposal; - fromJSON(object: any): _141.ResponsePrepareProposal; - toJSON(message: _141.ResponsePrepareProposal): unknown; - fromPartial(object: Partial<_141.ResponsePrepareProposal>): _141.ResponsePrepareProposal; - fromAmino(object: _141.ResponsePrepareProposalAmino): _141.ResponsePrepareProposal; - toAmino(message: _141.ResponsePrepareProposal): _141.ResponsePrepareProposalAmino; - fromAminoMsg(object: _141.ResponsePrepareProposalAminoMsg): _141.ResponsePrepareProposal; - fromProtoMsg(message: _141.ResponsePrepareProposalProtoMsg): _141.ResponsePrepareProposal; - toProto(message: _141.ResponsePrepareProposal): Uint8Array; - toProtoMsg(message: _141.ResponsePrepareProposal): _141.ResponsePrepareProposalProtoMsg; - }; - ResponseProcessProposal: { - typeUrl: string; - encode(message: _141.ResponseProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ResponseProcessProposal; - fromJSON(object: any): _141.ResponseProcessProposal; - toJSON(message: _141.ResponseProcessProposal): unknown; - fromPartial(object: Partial<_141.ResponseProcessProposal>): _141.ResponseProcessProposal; - fromAmino(object: _141.ResponseProcessProposalAmino): _141.ResponseProcessProposal; - toAmino(message: _141.ResponseProcessProposal): _141.ResponseProcessProposalAmino; - fromAminoMsg(object: _141.ResponseProcessProposalAminoMsg): _141.ResponseProcessProposal; - fromProtoMsg(message: _141.ResponseProcessProposalProtoMsg): _141.ResponseProcessProposal; - toProto(message: _141.ResponseProcessProposal): Uint8Array; - toProtoMsg(message: _141.ResponseProcessProposal): _141.ResponseProcessProposalProtoMsg; - }; - CommitInfo: { - typeUrl: string; - encode(message: _141.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.CommitInfo; - fromJSON(object: any): _141.CommitInfo; - toJSON(message: _141.CommitInfo): unknown; - fromPartial(object: Partial<_141.CommitInfo>): _141.CommitInfo; - fromAmino(object: _141.CommitInfoAmino): _141.CommitInfo; - toAmino(message: _141.CommitInfo): _141.CommitInfoAmino; - fromAminoMsg(object: _141.CommitInfoAminoMsg): _141.CommitInfo; - fromProtoMsg(message: _141.CommitInfoProtoMsg): _141.CommitInfo; - toProto(message: _141.CommitInfo): Uint8Array; - toProtoMsg(message: _141.CommitInfo): _141.CommitInfoProtoMsg; - }; - ExtendedCommitInfo: { - typeUrl: string; - encode(message: _141.ExtendedCommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ExtendedCommitInfo; - fromJSON(object: any): _141.ExtendedCommitInfo; - toJSON(message: _141.ExtendedCommitInfo): unknown; - fromPartial(object: Partial<_141.ExtendedCommitInfo>): _141.ExtendedCommitInfo; - fromAmino(object: _141.ExtendedCommitInfoAmino): _141.ExtendedCommitInfo; - toAmino(message: _141.ExtendedCommitInfo): _141.ExtendedCommitInfoAmino; - fromAminoMsg(object: _141.ExtendedCommitInfoAminoMsg): _141.ExtendedCommitInfo; - fromProtoMsg(message: _141.ExtendedCommitInfoProtoMsg): _141.ExtendedCommitInfo; - toProto(message: _141.ExtendedCommitInfo): Uint8Array; - toProtoMsg(message: _141.ExtendedCommitInfo): _141.ExtendedCommitInfoProtoMsg; - }; - Event: { - typeUrl: string; - encode(message: _141.Event, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Event; - fromJSON(object: any): _141.Event; - toJSON(message: _141.Event): unknown; - fromPartial(object: Partial<_141.Event>): _141.Event; - fromAmino(object: _141.EventAmino): _141.Event; - toAmino(message: _141.Event): _141.EventAmino; - fromAminoMsg(object: _141.EventAminoMsg): _141.Event; - fromProtoMsg(message: _141.EventProtoMsg): _141.Event; - toProto(message: _141.Event): Uint8Array; - toProtoMsg(message: _141.Event): _141.EventProtoMsg; - }; - EventAttribute: { - typeUrl: string; - encode(message: _141.EventAttribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.EventAttribute; - fromJSON(object: any): _141.EventAttribute; - toJSON(message: _141.EventAttribute): unknown; - fromPartial(object: Partial<_141.EventAttribute>): _141.EventAttribute; - fromAmino(object: _141.EventAttributeAmino): _141.EventAttribute; - toAmino(message: _141.EventAttribute): _141.EventAttributeAmino; - fromAminoMsg(object: _141.EventAttributeAminoMsg): _141.EventAttribute; - fromProtoMsg(message: _141.EventAttributeProtoMsg): _141.EventAttribute; - toProto(message: _141.EventAttribute): Uint8Array; - toProtoMsg(message: _141.EventAttribute): _141.EventAttributeProtoMsg; - }; - TxResult: { - typeUrl: string; - encode(message: _141.TxResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.TxResult; - fromJSON(object: any): _141.TxResult; - toJSON(message: _141.TxResult): unknown; - fromPartial(object: Partial<_141.TxResult>): _141.TxResult; - fromAmino(object: _141.TxResultAmino): _141.TxResult; - toAmino(message: _141.TxResult): _141.TxResultAmino; - fromAminoMsg(object: _141.TxResultAminoMsg): _141.TxResult; - fromProtoMsg(message: _141.TxResultProtoMsg): _141.TxResult; - toProto(message: _141.TxResult): Uint8Array; - toProtoMsg(message: _141.TxResult): _141.TxResultProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _141.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Validator; - fromJSON(object: any): _141.Validator; - toJSON(message: _141.Validator): unknown; - fromPartial(object: Partial<_141.Validator>): _141.Validator; - fromAmino(object: _141.ValidatorAmino): _141.Validator; - toAmino(message: _141.Validator): _141.ValidatorAmino; - fromAminoMsg(object: _141.ValidatorAminoMsg): _141.Validator; - fromProtoMsg(message: _141.ValidatorProtoMsg): _141.Validator; - toProto(message: _141.Validator): Uint8Array; - toProtoMsg(message: _141.Validator): _141.ValidatorProtoMsg; - }; - ValidatorUpdate: { - typeUrl: string; - encode(message: _141.ValidatorUpdate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ValidatorUpdate; - fromJSON(object: any): _141.ValidatorUpdate; - toJSON(message: _141.ValidatorUpdate): unknown; - fromPartial(object: Partial<_141.ValidatorUpdate>): _141.ValidatorUpdate; - fromAmino(object: _141.ValidatorUpdateAmino): _141.ValidatorUpdate; - toAmino(message: _141.ValidatorUpdate): _141.ValidatorUpdateAmino; - fromAminoMsg(object: _141.ValidatorUpdateAminoMsg): _141.ValidatorUpdate; - fromProtoMsg(message: _141.ValidatorUpdateProtoMsg): _141.ValidatorUpdate; - toProto(message: _141.ValidatorUpdate): Uint8Array; - toProtoMsg(message: _141.ValidatorUpdate): _141.ValidatorUpdateProtoMsg; - }; - VoteInfo: { - typeUrl: string; - encode(message: _141.VoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.VoteInfo; - fromJSON(object: any): _141.VoteInfo; - toJSON(message: _141.VoteInfo): unknown; - fromPartial(object: Partial<_141.VoteInfo>): _141.VoteInfo; - fromAmino(object: _141.VoteInfoAmino): _141.VoteInfo; - toAmino(message: _141.VoteInfo): _141.VoteInfoAmino; - fromAminoMsg(object: _141.VoteInfoAminoMsg): _141.VoteInfo; - fromProtoMsg(message: _141.VoteInfoProtoMsg): _141.VoteInfo; - toProto(message: _141.VoteInfo): Uint8Array; - toProtoMsg(message: _141.VoteInfo): _141.VoteInfoProtoMsg; - }; - ExtendedVoteInfo: { - typeUrl: string; - encode(message: _141.ExtendedVoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.ExtendedVoteInfo; - fromJSON(object: any): _141.ExtendedVoteInfo; - toJSON(message: _141.ExtendedVoteInfo): unknown; - fromPartial(object: Partial<_141.ExtendedVoteInfo>): _141.ExtendedVoteInfo; - fromAmino(object: _141.ExtendedVoteInfoAmino): _141.ExtendedVoteInfo; - toAmino(message: _141.ExtendedVoteInfo): _141.ExtendedVoteInfoAmino; - fromAminoMsg(object: _141.ExtendedVoteInfoAminoMsg): _141.ExtendedVoteInfo; - fromProtoMsg(message: _141.ExtendedVoteInfoProtoMsg): _141.ExtendedVoteInfo; - toProto(message: _141.ExtendedVoteInfo): Uint8Array; - toProtoMsg(message: _141.ExtendedVoteInfo): _141.ExtendedVoteInfoProtoMsg; - }; - Misbehavior: { - typeUrl: string; - encode(message: _141.Misbehavior, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Misbehavior; - fromJSON(object: any): _141.Misbehavior; - toJSON(message: _141.Misbehavior): unknown; - fromPartial(object: Partial<_141.Misbehavior>): _141.Misbehavior; - fromAmino(object: _141.MisbehaviorAmino): _141.Misbehavior; - toAmino(message: _141.Misbehavior): _141.MisbehaviorAmino; - fromAminoMsg(object: _141.MisbehaviorAminoMsg): _141.Misbehavior; - fromProtoMsg(message: _141.MisbehaviorProtoMsg): _141.Misbehavior; - toProto(message: _141.Misbehavior): Uint8Array; - toProtoMsg(message: _141.Misbehavior): _141.MisbehaviorProtoMsg; - }; - Snapshot: { - typeUrl: string; - encode(message: _141.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _141.Snapshot; - fromJSON(object: any): _141.Snapshot; - toJSON(message: _141.Snapshot): unknown; - fromPartial(object: Partial<_141.Snapshot>): _141.Snapshot; - fromAmino(object: _141.SnapshotAmino): _141.Snapshot; - toAmino(message: _141.Snapshot): _141.SnapshotAmino; - fromAminoMsg(object: _141.SnapshotAminoMsg): _141.Snapshot; - fromProtoMsg(message: _141.SnapshotProtoMsg): _141.Snapshot; - toProto(message: _141.Snapshot): Uint8Array; - toProtoMsg(message: _141.Snapshot): _141.SnapshotProtoMsg; - }; - }; - const crypto: { - Proof: { - typeUrl: string; - encode(message: _143.Proof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.Proof; - fromJSON(object: any): _143.Proof; - toJSON(message: _143.Proof): unknown; - fromPartial(object: Partial<_143.Proof>): _143.Proof; - fromAmino(object: _143.ProofAmino): _143.Proof; - toAmino(message: _143.Proof): _143.ProofAmino; - fromAminoMsg(object: _143.ProofAminoMsg): _143.Proof; - fromProtoMsg(message: _143.ProofProtoMsg): _143.Proof; - toProto(message: _143.Proof): Uint8Array; - toProtoMsg(message: _143.Proof): _143.ProofProtoMsg; - }; - ValueOp: { - typeUrl: string; - encode(message: _143.ValueOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ValueOp; - fromJSON(object: any): _143.ValueOp; - toJSON(message: _143.ValueOp): unknown; - fromPartial(object: Partial<_143.ValueOp>): _143.ValueOp; - fromAmino(object: _143.ValueOpAmino): _143.ValueOp; - toAmino(message: _143.ValueOp): _143.ValueOpAmino; - fromAminoMsg(object: _143.ValueOpAminoMsg): _143.ValueOp; - fromProtoMsg(message: _143.ValueOpProtoMsg): _143.ValueOp; - toProto(message: _143.ValueOp): Uint8Array; - toProtoMsg(message: _143.ValueOp): _143.ValueOpProtoMsg; - }; - DominoOp: { - typeUrl: string; - encode(message: _143.DominoOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.DominoOp; - fromJSON(object: any): _143.DominoOp; - toJSON(message: _143.DominoOp): unknown; - fromPartial(object: Partial<_143.DominoOp>): _143.DominoOp; - fromAmino(object: _143.DominoOpAmino): _143.DominoOp; - toAmino(message: _143.DominoOp): _143.DominoOpAmino; - fromAminoMsg(object: _143.DominoOpAminoMsg): _143.DominoOp; - fromProtoMsg(message: _143.DominoOpProtoMsg): _143.DominoOp; - toProto(message: _143.DominoOp): Uint8Array; - toProtoMsg(message: _143.DominoOp): _143.DominoOpProtoMsg; - }; - ProofOp: { - typeUrl: string; - encode(message: _143.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ProofOp; - fromJSON(object: any): _143.ProofOp; - toJSON(message: _143.ProofOp): unknown; - fromPartial(object: Partial<_143.ProofOp>): _143.ProofOp; - fromAmino(object: _143.ProofOpAmino): _143.ProofOp; - toAmino(message: _143.ProofOp): _143.ProofOpAmino; - fromAminoMsg(object: _143.ProofOpAminoMsg): _143.ProofOp; - fromProtoMsg(message: _143.ProofOpProtoMsg): _143.ProofOp; - toProto(message: _143.ProofOp): Uint8Array; - toProtoMsg(message: _143.ProofOp): _143.ProofOpProtoMsg; - }; - ProofOps: { - typeUrl: string; - encode(message: _143.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _143.ProofOps; - fromJSON(object: any): _143.ProofOps; - toJSON(message: _143.ProofOps): unknown; - fromPartial(object: Partial<_143.ProofOps>): _143.ProofOps; - fromAmino(object: _143.ProofOpsAmino): _143.ProofOps; - toAmino(message: _143.ProofOps): _143.ProofOpsAmino; - fromAminoMsg(object: _143.ProofOpsAminoMsg): _143.ProofOps; - fromProtoMsg(message: _143.ProofOpsProtoMsg): _143.ProofOps; - toProto(message: _143.ProofOps): Uint8Array; - toProtoMsg(message: _143.ProofOps): _143.ProofOpsProtoMsg; - }; - PublicKey: { - typeUrl: string; - encode(message: _142.PublicKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _142.PublicKey; - fromJSON(object: any): _142.PublicKey; - toJSON(message: _142.PublicKey): unknown; - fromPartial(object: Partial<_142.PublicKey>): _142.PublicKey; - fromAmino(object: _142.PublicKeyAmino): _142.PublicKey; - toAmino(message: _142.PublicKey): _142.PublicKeyAmino; - fromAminoMsg(object: _142.PublicKeyAminoMsg): _142.PublicKey; - fromProtoMsg(message: _142.PublicKeyProtoMsg): _142.PublicKey; - toProto(message: _142.PublicKey): Uint8Array; - toProtoMsg(message: _142.PublicKey): _142.PublicKeyProtoMsg; - }; - }; - namespace libs { - const bits: { - BitArray: { - typeUrl: string; - encode(message: _144.BitArray, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _144.BitArray; - fromJSON(object: any): _144.BitArray; - toJSON(message: _144.BitArray): unknown; - fromPartial(object: Partial<_144.BitArray>): _144.BitArray; - fromAmino(object: _144.BitArrayAmino): _144.BitArray; - toAmino(message: _144.BitArray): _144.BitArrayAmino; - fromAminoMsg(object: _144.BitArrayAminoMsg): _144.BitArray; - fromProtoMsg(message: _144.BitArrayProtoMsg): _144.BitArray; - toProto(message: _144.BitArray): Uint8Array; - toProtoMsg(message: _144.BitArray): _144.BitArrayProtoMsg; - }; - }; - } - const p2p: { - NetAddress: { - typeUrl: string; - encode(message: _145.NetAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.NetAddress; - fromJSON(object: any): _145.NetAddress; - toJSON(message: _145.NetAddress): unknown; - fromPartial(object: Partial<_145.NetAddress>): _145.NetAddress; - fromAmino(object: _145.NetAddressAmino): _145.NetAddress; - toAmino(message: _145.NetAddress): _145.NetAddressAmino; - fromAminoMsg(object: _145.NetAddressAminoMsg): _145.NetAddress; - fromProtoMsg(message: _145.NetAddressProtoMsg): _145.NetAddress; - toProto(message: _145.NetAddress): Uint8Array; - toProtoMsg(message: _145.NetAddress): _145.NetAddressProtoMsg; - }; - ProtocolVersion: { - typeUrl: string; - encode(message: _145.ProtocolVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.ProtocolVersion; - fromJSON(object: any): _145.ProtocolVersion; - toJSON(message: _145.ProtocolVersion): unknown; - fromPartial(object: Partial<_145.ProtocolVersion>): _145.ProtocolVersion; - fromAmino(object: _145.ProtocolVersionAmino): _145.ProtocolVersion; - toAmino(message: _145.ProtocolVersion): _145.ProtocolVersionAmino; - fromAminoMsg(object: _145.ProtocolVersionAminoMsg): _145.ProtocolVersion; - fromProtoMsg(message: _145.ProtocolVersionProtoMsg): _145.ProtocolVersion; - toProto(message: _145.ProtocolVersion): Uint8Array; - toProtoMsg(message: _145.ProtocolVersion): _145.ProtocolVersionProtoMsg; - }; - DefaultNodeInfo: { - typeUrl: string; - encode(message: _145.DefaultNodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.DefaultNodeInfo; - fromJSON(object: any): _145.DefaultNodeInfo; - toJSON(message: _145.DefaultNodeInfo): unknown; - fromPartial(object: Partial<_145.DefaultNodeInfo>): _145.DefaultNodeInfo; - fromAmino(object: _145.DefaultNodeInfoAmino): _145.DefaultNodeInfo; - toAmino(message: _145.DefaultNodeInfo): _145.DefaultNodeInfoAmino; - fromAminoMsg(object: _145.DefaultNodeInfoAminoMsg): _145.DefaultNodeInfo; - fromProtoMsg(message: _145.DefaultNodeInfoProtoMsg): _145.DefaultNodeInfo; - toProto(message: _145.DefaultNodeInfo): Uint8Array; - toProtoMsg(message: _145.DefaultNodeInfo): _145.DefaultNodeInfoProtoMsg; - }; - DefaultNodeInfoOther: { - typeUrl: string; - encode(message: _145.DefaultNodeInfoOther, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _145.DefaultNodeInfoOther; - fromJSON(object: any): _145.DefaultNodeInfoOther; - toJSON(message: _145.DefaultNodeInfoOther): unknown; - fromPartial(object: Partial<_145.DefaultNodeInfoOther>): _145.DefaultNodeInfoOther; - fromAmino(object: _145.DefaultNodeInfoOtherAmino): _145.DefaultNodeInfoOther; - toAmino(message: _145.DefaultNodeInfoOther): _145.DefaultNodeInfoOtherAmino; - fromAminoMsg(object: _145.DefaultNodeInfoOtherAminoMsg): _145.DefaultNodeInfoOther; - fromProtoMsg(message: _145.DefaultNodeInfoOtherProtoMsg): _145.DefaultNodeInfoOther; - toProto(message: _145.DefaultNodeInfoOther): Uint8Array; - toProtoMsg(message: _145.DefaultNodeInfoOther): _145.DefaultNodeInfoOtherProtoMsg; - }; - }; - const types: { - ValidatorSet: { - typeUrl: string; - encode(message: _150.ValidatorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.ValidatorSet; - fromJSON(object: any): _150.ValidatorSet; - toJSON(message: _150.ValidatorSet): unknown; - fromPartial(object: Partial<_150.ValidatorSet>): _150.ValidatorSet; - fromAmino(object: _150.ValidatorSetAmino): _150.ValidatorSet; - toAmino(message: _150.ValidatorSet): _150.ValidatorSetAmino; - fromAminoMsg(object: _150.ValidatorSetAminoMsg): _150.ValidatorSet; - fromProtoMsg(message: _150.ValidatorSetProtoMsg): _150.ValidatorSet; - toProto(message: _150.ValidatorSet): Uint8Array; - toProtoMsg(message: _150.ValidatorSet): _150.ValidatorSetProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _150.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.Validator; - fromJSON(object: any): _150.Validator; - toJSON(message: _150.Validator): unknown; - fromPartial(object: Partial<_150.Validator>): _150.Validator; - fromAmino(object: _150.ValidatorAmino): _150.Validator; - toAmino(message: _150.Validator): _150.ValidatorAmino; - fromAminoMsg(object: _150.ValidatorAminoMsg): _150.Validator; - fromProtoMsg(message: _150.ValidatorProtoMsg): _150.Validator; - toProto(message: _150.Validator): Uint8Array; - toProtoMsg(message: _150.Validator): _150.ValidatorProtoMsg; - }; - SimpleValidator: { - typeUrl: string; - encode(message: _150.SimpleValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _150.SimpleValidator; - fromJSON(object: any): _150.SimpleValidator; - toJSON(message: _150.SimpleValidator): unknown; - fromPartial(object: Partial<_150.SimpleValidator>): _150.SimpleValidator; - fromAmino(object: _150.SimpleValidatorAmino): _150.SimpleValidator; - toAmino(message: _150.SimpleValidator): _150.SimpleValidatorAmino; - fromAminoMsg(object: _150.SimpleValidatorAminoMsg): _150.SimpleValidator; - fromProtoMsg(message: _150.SimpleValidatorProtoMsg): _150.SimpleValidator; - toProto(message: _150.SimpleValidator): Uint8Array; - toProtoMsg(message: _150.SimpleValidator): _150.SimpleValidatorProtoMsg; - }; - blockIDFlagFromJSON(object: any): _149.BlockIDFlag; - blockIDFlagToJSON(object: _149.BlockIDFlag): string; - signedMsgTypeFromJSON(object: any): _149.SignedMsgType; - signedMsgTypeToJSON(object: _149.SignedMsgType): string; - BlockIDFlag: typeof _149.BlockIDFlag; - BlockIDFlagSDKType: typeof _149.BlockIDFlag; - BlockIDFlagAmino: typeof _149.BlockIDFlag; - SignedMsgType: typeof _149.SignedMsgType; - SignedMsgTypeSDKType: typeof _149.SignedMsgType; - SignedMsgTypeAmino: typeof _149.SignedMsgType; - PartSetHeader: { - typeUrl: string; - encode(message: _149.PartSetHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.PartSetHeader; - fromJSON(object: any): _149.PartSetHeader; - toJSON(message: _149.PartSetHeader): unknown; - fromPartial(object: Partial<_149.PartSetHeader>): _149.PartSetHeader; - fromAmino(object: _149.PartSetHeaderAmino): _149.PartSetHeader; - toAmino(message: _149.PartSetHeader): _149.PartSetHeaderAmino; - fromAminoMsg(object: _149.PartSetHeaderAminoMsg): _149.PartSetHeader; - fromProtoMsg(message: _149.PartSetHeaderProtoMsg): _149.PartSetHeader; - toProto(message: _149.PartSetHeader): Uint8Array; - toProtoMsg(message: _149.PartSetHeader): _149.PartSetHeaderProtoMsg; - }; - Part: { - typeUrl: string; - encode(message: _149.Part, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Part; - fromJSON(object: any): _149.Part; - toJSON(message: _149.Part): unknown; - fromPartial(object: Partial<_149.Part>): _149.Part; - fromAmino(object: _149.PartAmino): _149.Part; - toAmino(message: _149.Part): _149.PartAmino; - fromAminoMsg(object: _149.PartAminoMsg): _149.Part; - fromProtoMsg(message: _149.PartProtoMsg): _149.Part; - toProto(message: _149.Part): Uint8Array; - toProtoMsg(message: _149.Part): _149.PartProtoMsg; - }; - BlockID: { - typeUrl: string; - encode(message: _149.BlockID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.BlockID; - fromJSON(object: any): _149.BlockID; - toJSON(message: _149.BlockID): unknown; - fromPartial(object: Partial<_149.BlockID>): _149.BlockID; - fromAmino(object: _149.BlockIDAmino): _149.BlockID; - toAmino(message: _149.BlockID): _149.BlockIDAmino; - fromAminoMsg(object: _149.BlockIDAminoMsg): _149.BlockID; - fromProtoMsg(message: _149.BlockIDProtoMsg): _149.BlockID; - toProto(message: _149.BlockID): Uint8Array; - toProtoMsg(message: _149.BlockID): _149.BlockIDProtoMsg; - }; - Header: { - typeUrl: string; - encode(message: _149.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Header; - fromJSON(object: any): _149.Header; - toJSON(message: _149.Header): unknown; - fromPartial(object: Partial<_149.Header>): _149.Header; - fromAmino(object: _149.HeaderAmino): _149.Header; - toAmino(message: _149.Header): _149.HeaderAmino; - fromAminoMsg(object: _149.HeaderAminoMsg): _149.Header; - fromProtoMsg(message: _149.HeaderProtoMsg): _149.Header; - toProto(message: _149.Header): Uint8Array; - toProtoMsg(message: _149.Header): _149.HeaderProtoMsg; - }; - Data: { - typeUrl: string; - encode(message: _149.Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Data; - fromJSON(object: any): _149.Data; - toJSON(message: _149.Data): unknown; - fromPartial(object: Partial<_149.Data>): _149.Data; - fromAmino(object: _149.DataAmino): _149.Data; - toAmino(message: _149.Data): _149.DataAmino; - fromAminoMsg(object: _149.DataAminoMsg): _149.Data; - fromProtoMsg(message: _149.DataProtoMsg): _149.Data; - toProto(message: _149.Data): Uint8Array; - toProtoMsg(message: _149.Data): _149.DataProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _149.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Vote; - fromJSON(object: any): _149.Vote; - toJSON(message: _149.Vote): unknown; - fromPartial(object: Partial<_149.Vote>): _149.Vote; - fromAmino(object: _149.VoteAmino): _149.Vote; - toAmino(message: _149.Vote): _149.VoteAmino; - fromAminoMsg(object: _149.VoteAminoMsg): _149.Vote; - fromProtoMsg(message: _149.VoteProtoMsg): _149.Vote; - toProto(message: _149.Vote): Uint8Array; - toProtoMsg(message: _149.Vote): _149.VoteProtoMsg; - }; - Commit: { - typeUrl: string; - encode(message: _149.Commit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Commit; - fromJSON(object: any): _149.Commit; - toJSON(message: _149.Commit): unknown; - fromPartial(object: Partial<_149.Commit>): _149.Commit; - fromAmino(object: _149.CommitAmino): _149.Commit; - toAmino(message: _149.Commit): _149.CommitAmino; - fromAminoMsg(object: _149.CommitAminoMsg): _149.Commit; - fromProtoMsg(message: _149.CommitProtoMsg): _149.Commit; - toProto(message: _149.Commit): Uint8Array; - toProtoMsg(message: _149.Commit): _149.CommitProtoMsg; - }; - CommitSig: { - typeUrl: string; - encode(message: _149.CommitSig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.CommitSig; - fromJSON(object: any): _149.CommitSig; - toJSON(message: _149.CommitSig): unknown; - fromPartial(object: Partial<_149.CommitSig>): _149.CommitSig; - fromAmino(object: _149.CommitSigAmino): _149.CommitSig; - toAmino(message: _149.CommitSig): _149.CommitSigAmino; - fromAminoMsg(object: _149.CommitSigAminoMsg): _149.CommitSig; - fromProtoMsg(message: _149.CommitSigProtoMsg): _149.CommitSig; - toProto(message: _149.CommitSig): Uint8Array; - toProtoMsg(message: _149.CommitSig): _149.CommitSigProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _149.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.Proposal; - fromJSON(object: any): _149.Proposal; - toJSON(message: _149.Proposal): unknown; - fromPartial(object: Partial<_149.Proposal>): _149.Proposal; - fromAmino(object: _149.ProposalAmino): _149.Proposal; - toAmino(message: _149.Proposal): _149.ProposalAmino; - fromAminoMsg(object: _149.ProposalAminoMsg): _149.Proposal; - fromProtoMsg(message: _149.ProposalProtoMsg): _149.Proposal; - toProto(message: _149.Proposal): Uint8Array; - toProtoMsg(message: _149.Proposal): _149.ProposalProtoMsg; - }; - SignedHeader: { - typeUrl: string; - encode(message: _149.SignedHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.SignedHeader; - fromJSON(object: any): _149.SignedHeader; - toJSON(message: _149.SignedHeader): unknown; - fromPartial(object: Partial<_149.SignedHeader>): _149.SignedHeader; - fromAmino(object: _149.SignedHeaderAmino): _149.SignedHeader; - toAmino(message: _149.SignedHeader): _149.SignedHeaderAmino; - fromAminoMsg(object: _149.SignedHeaderAminoMsg): _149.SignedHeader; - fromProtoMsg(message: _149.SignedHeaderProtoMsg): _149.SignedHeader; - toProto(message: _149.SignedHeader): Uint8Array; - toProtoMsg(message: _149.SignedHeader): _149.SignedHeaderProtoMsg; - }; - LightBlock: { - typeUrl: string; - encode(message: _149.LightBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.LightBlock; - fromJSON(object: any): _149.LightBlock; - toJSON(message: _149.LightBlock): unknown; - fromPartial(object: Partial<_149.LightBlock>): _149.LightBlock; - fromAmino(object: _149.LightBlockAmino): _149.LightBlock; - toAmino(message: _149.LightBlock): _149.LightBlockAmino; - fromAminoMsg(object: _149.LightBlockAminoMsg): _149.LightBlock; - fromProtoMsg(message: _149.LightBlockProtoMsg): _149.LightBlock; - toProto(message: _149.LightBlock): Uint8Array; - toProtoMsg(message: _149.LightBlock): _149.LightBlockProtoMsg; - }; - BlockMeta: { - typeUrl: string; - encode(message: _149.BlockMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.BlockMeta; - fromJSON(object: any): _149.BlockMeta; - toJSON(message: _149.BlockMeta): unknown; - fromPartial(object: Partial<_149.BlockMeta>): _149.BlockMeta; - fromAmino(object: _149.BlockMetaAmino): _149.BlockMeta; - toAmino(message: _149.BlockMeta): _149.BlockMetaAmino; - fromAminoMsg(object: _149.BlockMetaAminoMsg): _149.BlockMeta; - fromProtoMsg(message: _149.BlockMetaProtoMsg): _149.BlockMeta; - toProto(message: _149.BlockMeta): Uint8Array; - toProtoMsg(message: _149.BlockMeta): _149.BlockMetaProtoMsg; - }; - TxProof: { - typeUrl: string; - encode(message: _149.TxProof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _149.TxProof; - fromJSON(object: any): _149.TxProof; - toJSON(message: _149.TxProof): unknown; - fromPartial(object: Partial<_149.TxProof>): _149.TxProof; - fromAmino(object: _149.TxProofAmino): _149.TxProof; - toAmino(message: _149.TxProof): _149.TxProofAmino; - fromAminoMsg(object: _149.TxProofAminoMsg): _149.TxProof; - fromProtoMsg(message: _149.TxProofProtoMsg): _149.TxProof; - toProto(message: _149.TxProof): Uint8Array; - toProtoMsg(message: _149.TxProof): _149.TxProofProtoMsg; - }; - ConsensusParams: { - typeUrl: string; - encode(message: _148.ConsensusParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.ConsensusParams; - fromJSON(object: any): _148.ConsensusParams; - toJSON(message: _148.ConsensusParams): unknown; - fromPartial(object: Partial<_148.ConsensusParams>): _148.ConsensusParams; - fromAmino(object: _148.ConsensusParamsAmino): _148.ConsensusParams; - toAmino(message: _148.ConsensusParams): _148.ConsensusParamsAmino; - fromAminoMsg(object: _148.ConsensusParamsAminoMsg): _148.ConsensusParams; - fromProtoMsg(message: _148.ConsensusParamsProtoMsg): _148.ConsensusParams; - toProto(message: _148.ConsensusParams): Uint8Array; - toProtoMsg(message: _148.ConsensusParams): _148.ConsensusParamsProtoMsg; - }; - BlockParams: { - typeUrl: string; - encode(message: _148.BlockParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.BlockParams; - fromJSON(object: any): _148.BlockParams; - toJSON(message: _148.BlockParams): unknown; - fromPartial(object: Partial<_148.BlockParams>): _148.BlockParams; - fromAmino(object: _148.BlockParamsAmino): _148.BlockParams; - toAmino(message: _148.BlockParams): _148.BlockParamsAmino; - fromAminoMsg(object: _148.BlockParamsAminoMsg): _148.BlockParams; - fromProtoMsg(message: _148.BlockParamsProtoMsg): _148.BlockParams; - toProto(message: _148.BlockParams): Uint8Array; - toProtoMsg(message: _148.BlockParams): _148.BlockParamsProtoMsg; - }; - EvidenceParams: { - typeUrl: string; - encode(message: _148.EvidenceParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.EvidenceParams; - fromJSON(object: any): _148.EvidenceParams; - toJSON(message: _148.EvidenceParams): unknown; - fromPartial(object: Partial<_148.EvidenceParams>): _148.EvidenceParams; - fromAmino(object: _148.EvidenceParamsAmino): _148.EvidenceParams; - toAmino(message: _148.EvidenceParams): _148.EvidenceParamsAmino; - fromAminoMsg(object: _148.EvidenceParamsAminoMsg): _148.EvidenceParams; - fromProtoMsg(message: _148.EvidenceParamsProtoMsg): _148.EvidenceParams; - toProto(message: _148.EvidenceParams): Uint8Array; - toProtoMsg(message: _148.EvidenceParams): _148.EvidenceParamsProtoMsg; - }; - ValidatorParams: { - typeUrl: string; - encode(message: _148.ValidatorParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.ValidatorParams; - fromJSON(object: any): _148.ValidatorParams; - toJSON(message: _148.ValidatorParams): unknown; - fromPartial(object: Partial<_148.ValidatorParams>): _148.ValidatorParams; - fromAmino(object: _148.ValidatorParamsAmino): _148.ValidatorParams; - toAmino(message: _148.ValidatorParams): _148.ValidatorParamsAmino; - fromAminoMsg(object: _148.ValidatorParamsAminoMsg): _148.ValidatorParams; - fromProtoMsg(message: _148.ValidatorParamsProtoMsg): _148.ValidatorParams; - toProto(message: _148.ValidatorParams): Uint8Array; - toProtoMsg(message: _148.ValidatorParams): _148.ValidatorParamsProtoMsg; - }; - VersionParams: { - typeUrl: string; - encode(message: _148.VersionParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.VersionParams; - fromJSON(object: any): _148.VersionParams; - toJSON(message: _148.VersionParams): unknown; - fromPartial(object: Partial<_148.VersionParams>): _148.VersionParams; - fromAmino(object: _148.VersionParamsAmino): _148.VersionParams; - toAmino(message: _148.VersionParams): _148.VersionParamsAmino; - fromAminoMsg(object: _148.VersionParamsAminoMsg): _148.VersionParams; - fromProtoMsg(message: _148.VersionParamsProtoMsg): _148.VersionParams; - toProto(message: _148.VersionParams): Uint8Array; - toProtoMsg(message: _148.VersionParams): _148.VersionParamsProtoMsg; - }; - HashedParams: { - typeUrl: string; - encode(message: _148.HashedParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _148.HashedParams; - fromJSON(object: any): _148.HashedParams; - toJSON(message: _148.HashedParams): unknown; - fromPartial(object: Partial<_148.HashedParams>): _148.HashedParams; - fromAmino(object: _148.HashedParamsAmino): _148.HashedParams; - toAmino(message: _148.HashedParams): _148.HashedParamsAmino; - fromAminoMsg(object: _148.HashedParamsAminoMsg): _148.HashedParams; - fromProtoMsg(message: _148.HashedParamsProtoMsg): _148.HashedParams; - toProto(message: _148.HashedParams): Uint8Array; - toProtoMsg(message: _148.HashedParams): _148.HashedParamsProtoMsg; - }; - Evidence: { - typeUrl: string; - encode(message: _147.Evidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.Evidence; - fromJSON(object: any): _147.Evidence; - toJSON(message: _147.Evidence): unknown; - fromPartial(object: Partial<_147.Evidence>): _147.Evidence; - fromAmino(object: _147.EvidenceAmino): _147.Evidence; - toAmino(message: _147.Evidence): _147.EvidenceAmino; - fromAminoMsg(object: _147.EvidenceAminoMsg): _147.Evidence; - fromProtoMsg(message: _147.EvidenceProtoMsg): _147.Evidence; - toProto(message: _147.Evidence): Uint8Array; - toProtoMsg(message: _147.Evidence): _147.EvidenceProtoMsg; - }; - DuplicateVoteEvidence: { - typeUrl: string; - encode(message: _147.DuplicateVoteEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.DuplicateVoteEvidence; - fromJSON(object: any): _147.DuplicateVoteEvidence; - toJSON(message: _147.DuplicateVoteEvidence): unknown; - fromPartial(object: Partial<_147.DuplicateVoteEvidence>): _147.DuplicateVoteEvidence; - fromAmino(object: _147.DuplicateVoteEvidenceAmino): _147.DuplicateVoteEvidence; - toAmino(message: _147.DuplicateVoteEvidence): _147.DuplicateVoteEvidenceAmino; - fromAminoMsg(object: _147.DuplicateVoteEvidenceAminoMsg): _147.DuplicateVoteEvidence; - fromProtoMsg(message: _147.DuplicateVoteEvidenceProtoMsg): _147.DuplicateVoteEvidence; - toProto(message: _147.DuplicateVoteEvidence): Uint8Array; - toProtoMsg(message: _147.DuplicateVoteEvidence): _147.DuplicateVoteEvidenceProtoMsg; - }; - LightClientAttackEvidence: { - typeUrl: string; - encode(message: _147.LightClientAttackEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.LightClientAttackEvidence; - fromJSON(object: any): _147.LightClientAttackEvidence; - toJSON(message: _147.LightClientAttackEvidence): unknown; - fromPartial(object: Partial<_147.LightClientAttackEvidence>): _147.LightClientAttackEvidence; - fromAmino(object: _147.LightClientAttackEvidenceAmino): _147.LightClientAttackEvidence; - toAmino(message: _147.LightClientAttackEvidence): _147.LightClientAttackEvidenceAmino; - fromAminoMsg(object: _147.LightClientAttackEvidenceAminoMsg): _147.LightClientAttackEvidence; - fromProtoMsg(message: _147.LightClientAttackEvidenceProtoMsg): _147.LightClientAttackEvidence; - toProto(message: _147.LightClientAttackEvidence): Uint8Array; - toProtoMsg(message: _147.LightClientAttackEvidence): _147.LightClientAttackEvidenceProtoMsg; - }; - EvidenceList: { - typeUrl: string; - encode(message: _147.EvidenceList, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _147.EvidenceList; - fromJSON(object: any): _147.EvidenceList; - toJSON(message: _147.EvidenceList): unknown; - fromPartial(object: Partial<_147.EvidenceList>): _147.EvidenceList; - fromAmino(object: _147.EvidenceListAmino): _147.EvidenceList; - toAmino(message: _147.EvidenceList): _147.EvidenceListAmino; - fromAminoMsg(object: _147.EvidenceListAminoMsg): _147.EvidenceList; - fromProtoMsg(message: _147.EvidenceListProtoMsg): _147.EvidenceList; - toProto(message: _147.EvidenceList): Uint8Array; - toProtoMsg(message: _147.EvidenceList): _147.EvidenceListProtoMsg; - }; - Block: { - typeUrl: string; - encode(message: _146.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _146.Block; - fromJSON(object: any): _146.Block; - toJSON(message: _146.Block): unknown; - fromPartial(object: Partial<_146.Block>): _146.Block; - fromAmino(object: _146.BlockAmino): _146.Block; - toAmino(message: _146.Block): _146.BlockAmino; - fromAminoMsg(object: _146.BlockAminoMsg): _146.Block; - fromProtoMsg(message: _146.BlockProtoMsg): _146.Block; - toProto(message: _146.Block): Uint8Array; - toProtoMsg(message: _146.Block): _146.BlockProtoMsg; - }; - }; - const version: { - App: { - typeUrl: string; - encode(message: _151.App, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _151.App; - fromJSON(object: any): _151.App; - toJSON(message: _151.App): unknown; - fromPartial(object: Partial<_151.App>): _151.App; - fromAmino(object: _151.AppAmino): _151.App; - toAmino(message: _151.App): _151.AppAmino; - fromAminoMsg(object: _151.AppAminoMsg): _151.App; - fromProtoMsg(message: _151.AppProtoMsg): _151.App; - toProto(message: _151.App): Uint8Array; - toProtoMsg(message: _151.App): _151.AppProtoMsg; - }; - Consensus: { - typeUrl: string; - encode(message: _151.Consensus, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number | undefined): _151.Consensus; - fromJSON(object: any): _151.Consensus; - toJSON(message: _151.Consensus): unknown; - fromPartial(object: Partial<_151.Consensus>): _151.Consensus; - fromAmino(object: _151.ConsensusAmino): _151.Consensus; - toAmino(message: _151.Consensus): _151.ConsensusAmino; - fromAminoMsg(object: _151.ConsensusAminoMsg): _151.Consensus; - fromProtoMsg(message: _151.ConsensusProtoMsg): _151.Consensus; - toProto(message: _151.Consensus): Uint8Array; - toProtoMsg(message: _151.Consensus): _151.ConsensusProtoMsg; - }; - }; -} diff --git a/packages/api/types/codegen/tendermint/crypto/keys.d.ts b/packages/api/types/codegen/tendermint/crypto/keys.d.ts deleted file mode 100644 index 846e8ac3..00000000 --- a/packages/api/types/codegen/tendermint/crypto/keys.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKey { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyProtoMsg { - typeUrl: "/tendermint.crypto.PublicKey"; - value: Uint8Array; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeyAmino { - ed25519?: string; - secp256k1?: string; -} -export interface PublicKeyAminoMsg { - type: "/tendermint.crypto.PublicKey"; - value: PublicKeyAmino; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeySDKType { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export declare const PublicKey: { - typeUrl: string; - encode(message: PublicKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PublicKey; - fromJSON(object: any): PublicKey; - toJSON(message: PublicKey): unknown; - fromPartial(object: Partial): PublicKey; - fromAmino(object: PublicKeyAmino): PublicKey; - toAmino(message: PublicKey): PublicKeyAmino; - fromAminoMsg(object: PublicKeyAminoMsg): PublicKey; - fromProtoMsg(message: PublicKeyProtoMsg): PublicKey; - toProto(message: PublicKey): Uint8Array; - toProtoMsg(message: PublicKey): PublicKeyProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/crypto/proof.d.ts b/packages/api/types/codegen/tendermint/crypto/proof.d.ts deleted file mode 100644 index c68075ec..00000000 --- a/packages/api/types/codegen/tendermint/crypto/proof.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Proof { - total: bigint; - index: bigint; - leafHash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofProtoMsg { - typeUrl: "/tendermint.crypto.Proof"; - value: Uint8Array; -} -export interface ProofAmino { - total?: string; - index?: string; - leaf_hash?: string; - aunts?: string[]; -} -export interface ProofAminoMsg { - type: "/tendermint.crypto.Proof"; - value: ProofAmino; -} -export interface ProofSDKType { - total: bigint; - index: bigint; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ValueOp { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof?: Proof; -} -export interface ValueOpProtoMsg { - typeUrl: "/tendermint.crypto.ValueOp"; - value: Uint8Array; -} -export interface ValueOpAmino { - /** Encoded in ProofOp.Key. */ - key?: string; - /** To encode in ProofOp.Data */ - proof?: ProofAmino; -} -export interface ValueOpAminoMsg { - type: "/tendermint.crypto.ValueOp"; - value: ValueOpAmino; -} -export interface ValueOpSDKType { - key: Uint8Array; - proof?: ProofSDKType; -} -export interface DominoOp { - key: string; - input: string; - output: string; -} -export interface DominoOpProtoMsg { - typeUrl: "/tendermint.crypto.DominoOp"; - value: Uint8Array; -} -export interface DominoOpAmino { - key?: string; - input?: string; - output?: string; -} -export interface DominoOpAminoMsg { - type: "/tendermint.crypto.DominoOp"; - value: DominoOpAmino; -} -export interface DominoOpSDKType { - key: string; - input: string; - output: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/tendermint.crypto.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpAmino { - type?: string; - key?: string; - data?: string; -} -export interface ProofOpAminoMsg { - type: "/tendermint.crypto.ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/tendermint.crypto.ProofOps"; - value: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsAmino { - ops?: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "/tendermint.crypto.ProofOps"; - value: ProofOpsAmino; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} -export declare const Proof: { - typeUrl: string; - encode(message: Proof, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proof; - fromJSON(object: any): Proof; - toJSON(message: Proof): unknown; - fromPartial(object: Partial): Proof; - fromAmino(object: ProofAmino): Proof; - toAmino(message: Proof): ProofAmino; - fromAminoMsg(object: ProofAminoMsg): Proof; - fromProtoMsg(message: ProofProtoMsg): Proof; - toProto(message: Proof): Uint8Array; - toProtoMsg(message: Proof): ProofProtoMsg; -}; -export declare const ValueOp: { - typeUrl: string; - encode(message: ValueOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValueOp; - fromJSON(object: any): ValueOp; - toJSON(message: ValueOp): unknown; - fromPartial(object: Partial): ValueOp; - fromAmino(object: ValueOpAmino): ValueOp; - toAmino(message: ValueOp): ValueOpAmino; - fromAminoMsg(object: ValueOpAminoMsg): ValueOp; - fromProtoMsg(message: ValueOpProtoMsg): ValueOp; - toProto(message: ValueOp): Uint8Array; - toProtoMsg(message: ValueOp): ValueOpProtoMsg; -}; -export declare const DominoOp: { - typeUrl: string; - encode(message: DominoOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DominoOp; - fromJSON(object: any): DominoOp; - toJSON(message: DominoOp): unknown; - fromPartial(object: Partial): DominoOp; - fromAmino(object: DominoOpAmino): DominoOp; - toAmino(message: DominoOp): DominoOpAmino; - fromAminoMsg(object: DominoOpAminoMsg): DominoOp; - fromProtoMsg(message: DominoOpProtoMsg): DominoOp; - toProto(message: DominoOp): Uint8Array; - toProtoMsg(message: DominoOp): DominoOpProtoMsg; -}; -export declare const ProofOp: { - typeUrl: string; - encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; - fromJSON(object: any): ProofOp; - toJSON(message: ProofOp): unknown; - fromPartial(object: Partial): ProofOp; - fromAmino(object: ProofOpAmino): ProofOp; - toAmino(message: ProofOp): ProofOpAmino; - fromAminoMsg(object: ProofOpAminoMsg): ProofOp; - fromProtoMsg(message: ProofOpProtoMsg): ProofOp; - toProto(message: ProofOp): Uint8Array; - toProtoMsg(message: ProofOp): ProofOpProtoMsg; -}; -export declare const ProofOps: { - typeUrl: string; - encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; - fromJSON(object: any): ProofOps; - toJSON(message: ProofOps): unknown; - fromPartial(object: Partial): ProofOps; - fromAmino(object: ProofOpsAmino): ProofOps; - toAmino(message: ProofOps): ProofOpsAmino; - fromAminoMsg(object: ProofOpsAminoMsg): ProofOps; - fromProtoMsg(message: ProofOpsProtoMsg): ProofOps; - toProto(message: ProofOps): Uint8Array; - toProtoMsg(message: ProofOps): ProofOpsProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/libs/bits/types.d.ts b/packages/api/types/codegen/tendermint/libs/bits/types.d.ts deleted file mode 100644 index 7b5f0970..00000000 --- a/packages/api/types/codegen/tendermint/libs/bits/types.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -export interface BitArray { - bits: bigint; - elems: bigint[]; -} -export interface BitArrayProtoMsg { - typeUrl: "/tendermint.libs.bits.BitArray"; - value: Uint8Array; -} -export interface BitArrayAmino { - bits?: string; - elems?: string[]; -} -export interface BitArrayAminoMsg { - type: "/tendermint.libs.bits.BitArray"; - value: BitArrayAmino; -} -export interface BitArraySDKType { - bits: bigint; - elems: bigint[]; -} -export declare const BitArray: { - typeUrl: string; - encode(message: BitArray, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BitArray; - fromJSON(object: any): BitArray; - toJSON(message: BitArray): unknown; - fromPartial(object: Partial): BitArray; - fromAmino(object: BitArrayAmino): BitArray; - toAmino(message: BitArray): BitArrayAmino; - fromAminoMsg(object: BitArrayAminoMsg): BitArray; - fromProtoMsg(message: BitArrayProtoMsg): BitArray; - toProto(message: BitArray): Uint8Array; - toProtoMsg(message: BitArray): BitArrayProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/p2p/types.d.ts b/packages/api/types/codegen/tendermint/p2p/types.d.ts deleted file mode 100644 index 2062d25b..00000000 --- a/packages/api/types/codegen/tendermint/p2p/types.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface NetAddress { - id: string; - ip: string; - port: number; -} -export interface NetAddressProtoMsg { - typeUrl: "/tendermint.p2p.NetAddress"; - value: Uint8Array; -} -export interface NetAddressAmino { - id?: string; - ip?: string; - port?: number; -} -export interface NetAddressAminoMsg { - type: "/tendermint.p2p.NetAddress"; - value: NetAddressAmino; -} -export interface NetAddressSDKType { - id: string; - ip: string; - port: number; -} -export interface ProtocolVersion { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface ProtocolVersionProtoMsg { - typeUrl: "/tendermint.p2p.ProtocolVersion"; - value: Uint8Array; -} -export interface ProtocolVersionAmino { - p2p?: string; - block?: string; - app?: string; -} -export interface ProtocolVersionAminoMsg { - type: "/tendermint.p2p.ProtocolVersion"; - value: ProtocolVersionAmino; -} -export interface ProtocolVersionSDKType { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface DefaultNodeInfo { - protocolVersion: ProtocolVersion; - defaultNodeId: string; - listenAddr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOther; -} -export interface DefaultNodeInfoProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfo"; - value: Uint8Array; -} -export interface DefaultNodeInfoAmino { - protocol_version?: ProtocolVersionAmino; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - channels?: string; - moniker?: string; - other?: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfo"; - value: DefaultNodeInfoAmino; -} -export interface DefaultNodeInfoSDKType { - protocol_version: ProtocolVersionSDKType; - default_node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOtherSDKType; -} -export interface DefaultNodeInfoOther { - txIndex: string; - rpcAddress: string; -} -export interface DefaultNodeInfoOtherProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther"; - value: Uint8Array; -} -export interface DefaultNodeInfoOtherAmino { - tx_index?: string; - rpc_address?: string; -} -export interface DefaultNodeInfoOtherAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfoOther"; - value: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoOtherSDKType { - tx_index: string; - rpc_address: string; -} -export declare const NetAddress: { - typeUrl: string; - encode(message: NetAddress, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): NetAddress; - fromJSON(object: any): NetAddress; - toJSON(message: NetAddress): unknown; - fromPartial(object: Partial): NetAddress; - fromAmino(object: NetAddressAmino): NetAddress; - toAmino(message: NetAddress): NetAddressAmino; - fromAminoMsg(object: NetAddressAminoMsg): NetAddress; - fromProtoMsg(message: NetAddressProtoMsg): NetAddress; - toProto(message: NetAddress): Uint8Array; - toProtoMsg(message: NetAddress): NetAddressProtoMsg; -}; -export declare const ProtocolVersion: { - typeUrl: string; - encode(message: ProtocolVersion, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion; - fromJSON(object: any): ProtocolVersion; - toJSON(message: ProtocolVersion): unknown; - fromPartial(object: Partial): ProtocolVersion; - fromAmino(object: ProtocolVersionAmino): ProtocolVersion; - toAmino(message: ProtocolVersion): ProtocolVersionAmino; - fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion; - fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion; - toProto(message: ProtocolVersion): Uint8Array; - toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg; -}; -export declare const DefaultNodeInfo: { - typeUrl: string; - encode(message: DefaultNodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo; - fromJSON(object: any): DefaultNodeInfo; - toJSON(message: DefaultNodeInfo): unknown; - fromPartial(object: Partial): DefaultNodeInfo; - fromAmino(object: DefaultNodeInfoAmino): DefaultNodeInfo; - toAmino(message: DefaultNodeInfo): DefaultNodeInfoAmino; - fromAminoMsg(object: DefaultNodeInfoAminoMsg): DefaultNodeInfo; - fromProtoMsg(message: DefaultNodeInfoProtoMsg): DefaultNodeInfo; - toProto(message: DefaultNodeInfo): Uint8Array; - toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg; -}; -export declare const DefaultNodeInfoOther: { - typeUrl: string; - encode(message: DefaultNodeInfoOther, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther; - fromJSON(object: any): DefaultNodeInfoOther; - toJSON(message: DefaultNodeInfoOther): unknown; - fromPartial(object: Partial): DefaultNodeInfoOther; - fromAmino(object: DefaultNodeInfoOtherAmino): DefaultNodeInfoOther; - toAmino(message: DefaultNodeInfoOther): DefaultNodeInfoOtherAmino; - fromAminoMsg(object: DefaultNodeInfoOtherAminoMsg): DefaultNodeInfoOther; - fromProtoMsg(message: DefaultNodeInfoOtherProtoMsg): DefaultNodeInfoOther; - toProto(message: DefaultNodeInfoOther): Uint8Array; - toProtoMsg(message: DefaultNodeInfoOther): DefaultNodeInfoOtherProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/types/block.d.ts b/packages/api/types/codegen/tendermint/types/block.d.ts deleted file mode 100644 index c63389ae..00000000 --- a/packages/api/types/codegen/tendermint/types/block.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; -import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit?: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/tendermint.types.Block"; - value: Uint8Array; -} -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "/tendermint.types.Block"; - value: BlockAmino; -} -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit?: CommitSDKType; -} -export declare const Block: { - typeUrl: string; - encode(message: Block, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Block; - fromJSON(object: any): Block; - toJSON(message: Block): unknown; - fromPartial(object: Partial): Block; - fromAmino(object: BlockAmino): Block; - toAmino(message: Block): BlockAmino; - fromAminoMsg(object: BlockAminoMsg): Block; - fromProtoMsg(message: BlockProtoMsg): Block; - toProto(message: Block): Uint8Array; - toProtoMsg(message: Block): BlockProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/types/evidence.d.ts b/packages/api/types/codegen/tendermint/types/evidence.d.ts deleted file mode 100644 index 499fb27e..00000000 --- a/packages/api/types/codegen/tendermint/types/evidence.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Evidence { - duplicateVoteEvidence?: DuplicateVoteEvidence; - lightClientAttackEvidence?: LightClientAttackEvidence; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.types.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; - light_client_attack_evidence?: LightClientAttackEvidenceAmino; -} -export interface EvidenceAminoMsg { - type: "/tendermint.types.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; - light_client_attack_evidence?: LightClientAttackEvidenceSDKType; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidence { - voteA?: Vote; - voteB?: Vote; - totalVotingPower: bigint; - validatorPower: bigint; - timestamp: Timestamp; -} -export interface DuplicateVoteEvidenceProtoMsg { - typeUrl: "/tendermint.types.DuplicateVoteEvidence"; - value: Uint8Array; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceAmino { - vote_a?: VoteAmino; - vote_b?: VoteAmino; - total_voting_power?: string; - validator_power?: string; - timestamp?: string; -} -export interface DuplicateVoteEvidenceAminoMsg { - type: "/tendermint.types.DuplicateVoteEvidence"; - value: DuplicateVoteEvidenceAmino; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceSDKType { - vote_a?: VoteSDKType; - vote_b?: VoteSDKType; - total_voting_power: bigint; - validator_power: bigint; - timestamp: TimestampSDKType; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidence { - conflictingBlock?: LightBlock; - commonHeight: bigint; - byzantineValidators: Validator[]; - totalVotingPower: bigint; - timestamp: Timestamp; -} -export interface LightClientAttackEvidenceProtoMsg { - typeUrl: "/tendermint.types.LightClientAttackEvidence"; - value: Uint8Array; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceAmino { - conflicting_block?: LightBlockAmino; - common_height?: string; - byzantine_validators?: ValidatorAmino[]; - total_voting_power?: string; - timestamp?: string; -} -export interface LightClientAttackEvidenceAminoMsg { - type: "/tendermint.types.LightClientAttackEvidence"; - value: LightClientAttackEvidenceAmino; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceSDKType { - conflicting_block?: LightBlockSDKType; - common_height: bigint; - byzantine_validators: ValidatorSDKType[]; - total_voting_power: bigint; - timestamp: TimestampSDKType; -} -export interface EvidenceList { - evidence: Evidence[]; -} -export interface EvidenceListProtoMsg { - typeUrl: "/tendermint.types.EvidenceList"; - value: Uint8Array; -} -export interface EvidenceListAmino { - evidence?: EvidenceAmino[]; -} -export interface EvidenceListAminoMsg { - type: "/tendermint.types.EvidenceList"; - value: EvidenceListAmino; -} -export interface EvidenceListSDKType { - evidence: EvidenceSDKType[]; -} -export declare const Evidence: { - typeUrl: string; - encode(message: Evidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Evidence; - fromJSON(object: any): Evidence; - toJSON(message: Evidence): unknown; - fromPartial(object: Partial): Evidence; - fromAmino(object: EvidenceAmino): Evidence; - toAmino(message: Evidence): EvidenceAmino; - fromAminoMsg(object: EvidenceAminoMsg): Evidence; - fromProtoMsg(message: EvidenceProtoMsg): Evidence; - toProto(message: Evidence): Uint8Array; - toProtoMsg(message: Evidence): EvidenceProtoMsg; -}; -export declare const DuplicateVoteEvidence: { - typeUrl: string; - encode(message: DuplicateVoteEvidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence; - fromJSON(object: any): DuplicateVoteEvidence; - toJSON(message: DuplicateVoteEvidence): unknown; - fromPartial(object: Partial): DuplicateVoteEvidence; - fromAmino(object: DuplicateVoteEvidenceAmino): DuplicateVoteEvidence; - toAmino(message: DuplicateVoteEvidence): DuplicateVoteEvidenceAmino; - fromAminoMsg(object: DuplicateVoteEvidenceAminoMsg): DuplicateVoteEvidence; - fromProtoMsg(message: DuplicateVoteEvidenceProtoMsg): DuplicateVoteEvidence; - toProto(message: DuplicateVoteEvidence): Uint8Array; - toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg; -}; -export declare const LightClientAttackEvidence: { - typeUrl: string; - encode(message: LightClientAttackEvidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence; - fromJSON(object: any): LightClientAttackEvidence; - toJSON(message: LightClientAttackEvidence): unknown; - fromPartial(object: Partial): LightClientAttackEvidence; - fromAmino(object: LightClientAttackEvidenceAmino): LightClientAttackEvidence; - toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino; - fromAminoMsg(object: LightClientAttackEvidenceAminoMsg): LightClientAttackEvidence; - fromProtoMsg(message: LightClientAttackEvidenceProtoMsg): LightClientAttackEvidence; - toProto(message: LightClientAttackEvidence): Uint8Array; - toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg; -}; -export declare const EvidenceList: { - typeUrl: string; - encode(message: EvidenceList, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList; - fromJSON(object: any): EvidenceList; - toJSON(message: EvidenceList): unknown; - fromPartial(object: Partial): EvidenceList; - fromAmino(object: EvidenceListAmino): EvidenceList; - toAmino(message: EvidenceList): EvidenceListAmino; - fromAminoMsg(object: EvidenceListAminoMsg): EvidenceList; - fromProtoMsg(message: EvidenceListProtoMsg): EvidenceList; - toProto(message: EvidenceList): Uint8Array; - toProtoMsg(message: EvidenceList): EvidenceListProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/types/params.d.ts b/packages/api/types/codegen/tendermint/types/params.d.ts deleted file mode 100644 index b702f5d0..00000000 --- a/packages/api/types/codegen/tendermint/types/params.d.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParams { - block?: BlockParams; - evidence?: EvidenceParams; - validator?: ValidatorParams; - version?: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.types.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.types.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsSDKType { - block?: BlockParamsSDKType; - evidence?: EvidenceParamsSDKType; - validator?: ValidatorParamsSDKType; - version?: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - maxBytes: bigint; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - maxGas: bigint; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.types.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - max_bytes?: string; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - max_gas?: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.types.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: bigint; - max_gas: bigint; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParams { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - maxAgeNumBlocks: bigint; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - maxAgeDuration: Duration; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - maxBytes: bigint; -} -export interface EvidenceParamsProtoMsg { - typeUrl: "/tendermint.types.EvidenceParams"; - value: Uint8Array; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsAmino { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - max_age_num_blocks?: string; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - max_age_duration?: DurationAmino; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - max_bytes?: string; -} -export interface EvidenceParamsAminoMsg { - type: "/tendermint.types.EvidenceParams"; - value: EvidenceParamsAmino; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsSDKType { - max_age_num_blocks: bigint; - max_age_duration: DurationSDKType; - max_bytes: bigint; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParams { - pubKeyTypes: string[]; -} -export interface ValidatorParamsProtoMsg { - typeUrl: "/tendermint.types.ValidatorParams"; - value: Uint8Array; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsAmino { - pub_key_types?: string[]; -} -export interface ValidatorParamsAminoMsg { - type: "/tendermint.types.ValidatorParams"; - value: ValidatorParamsAmino; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsSDKType { - pub_key_types: string[]; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParams { - app: bigint; -} -export interface VersionParamsProtoMsg { - typeUrl: "/tendermint.types.VersionParams"; - value: Uint8Array; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsAmino { - app?: string; -} -export interface VersionParamsAminoMsg { - type: "/tendermint.types.VersionParams"; - value: VersionParamsAmino; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsSDKType { - app: bigint; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParams { - blockMaxBytes: bigint; - blockMaxGas: bigint; -} -export interface HashedParamsProtoMsg { - typeUrl: "/tendermint.types.HashedParams"; - value: Uint8Array; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsAmino { - block_max_bytes?: string; - block_max_gas?: string; -} -export interface HashedParamsAminoMsg { - type: "/tendermint.types.HashedParams"; - value: HashedParamsAmino; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsSDKType { - block_max_bytes: bigint; - block_max_gas: bigint; -} -export declare const ConsensusParams: { - typeUrl: string; - encode(message: ConsensusParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams; - fromJSON(object: any): ConsensusParams; - toJSON(message: ConsensusParams): unknown; - fromPartial(object: Partial): ConsensusParams; - fromAmino(object: ConsensusParamsAmino): ConsensusParams; - toAmino(message: ConsensusParams): ConsensusParamsAmino; - fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams; - fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams; - toProto(message: ConsensusParams): Uint8Array; - toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg; -}; -export declare const BlockParams: { - typeUrl: string; - encode(message: BlockParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockParams; - fromJSON(object: any): BlockParams; - toJSON(message: BlockParams): unknown; - fromPartial(object: Partial): BlockParams; - fromAmino(object: BlockParamsAmino): BlockParams; - toAmino(message: BlockParams): BlockParamsAmino; - fromAminoMsg(object: BlockParamsAminoMsg): BlockParams; - fromProtoMsg(message: BlockParamsProtoMsg): BlockParams; - toProto(message: BlockParams): Uint8Array; - toProtoMsg(message: BlockParams): BlockParamsProtoMsg; -}; -export declare const EvidenceParams: { - typeUrl: string; - encode(message: EvidenceParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams; - fromJSON(object: any): EvidenceParams; - toJSON(message: EvidenceParams): unknown; - fromPartial(object: Partial): EvidenceParams; - fromAmino(object: EvidenceParamsAmino): EvidenceParams; - toAmino(message: EvidenceParams): EvidenceParamsAmino; - fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams; - fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams; - toProto(message: EvidenceParams): Uint8Array; - toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg; -}; -export declare const ValidatorParams: { - typeUrl: string; - encode(message: ValidatorParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams; - fromJSON(object: any): ValidatorParams; - toJSON(message: ValidatorParams): unknown; - fromPartial(object: Partial): ValidatorParams; - fromAmino(object: ValidatorParamsAmino): ValidatorParams; - toAmino(message: ValidatorParams): ValidatorParamsAmino; - fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams; - fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams; - toProto(message: ValidatorParams): Uint8Array; - toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg; -}; -export declare const VersionParams: { - typeUrl: string; - encode(message: VersionParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VersionParams; - fromJSON(object: any): VersionParams; - toJSON(message: VersionParams): unknown; - fromPartial(object: Partial): VersionParams; - fromAmino(object: VersionParamsAmino): VersionParams; - toAmino(message: VersionParams): VersionParamsAmino; - fromAminoMsg(object: VersionParamsAminoMsg): VersionParams; - fromProtoMsg(message: VersionParamsProtoMsg): VersionParams; - toProto(message: VersionParams): Uint8Array; - toProtoMsg(message: VersionParams): VersionParamsProtoMsg; -}; -export declare const HashedParams: { - typeUrl: string; - encode(message: HashedParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): HashedParams; - fromJSON(object: any): HashedParams; - toJSON(message: HashedParams): unknown; - fromPartial(object: Partial): HashedParams; - fromAmino(object: HashedParamsAmino): HashedParams; - toAmino(message: HashedParams): HashedParamsAmino; - fromAminoMsg(object: HashedParamsAminoMsg): HashedParams; - fromProtoMsg(message: HashedParamsProtoMsg): HashedParams; - toProto(message: HashedParams): Uint8Array; - toProtoMsg(message: HashedParams): HashedParamsProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/types/types.d.ts b/packages/api/types/codegen/tendermint/types/types.d.ts deleted file mode 100644 index cd199c1a..00000000 --- a/packages/api/types/codegen/tendermint/types/types.d.ts +++ /dev/null @@ -1,624 +0,0 @@ -import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp"; -import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export declare enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3, - UNRECOGNIZED = -1 -} -export declare const BlockIDFlagSDKType: typeof BlockIDFlag; -export declare const BlockIDFlagAmino: typeof BlockIDFlag; -export declare function blockIDFlagFromJSON(object: any): BlockIDFlag; -export declare function blockIDFlagToJSON(object: BlockIDFlag): string; -/** SignedMsgType is a type of signed message in the consensus. */ -export declare enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SIGNED_MSG_TYPE_PROPOSAL = 32, - UNRECOGNIZED = -1 -} -export declare const SignedMsgTypeSDKType: typeof SignedMsgType; -export declare const SignedMsgTypeAmino: typeof SignedMsgType; -export declare function signedMsgTypeFromJSON(object: any): SignedMsgType; -export declare function signedMsgTypeToJSON(object: SignedMsgType): string; -/** PartsetHeader */ -export interface PartSetHeader { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderProtoMsg { - typeUrl: "/tendermint.types.PartSetHeader"; - value: Uint8Array; -} -/** PartsetHeader */ -export interface PartSetHeaderAmino { - total?: number; - hash?: string; -} -export interface PartSetHeaderAminoMsg { - type: "/tendermint.types.PartSetHeader"; - value: PartSetHeaderAmino; -} -/** PartsetHeader */ -export interface PartSetHeaderSDKType { - total: number; - hash: Uint8Array; -} -export interface Part { - index: number; - bytes: Uint8Array; - proof: Proof; -} -export interface PartProtoMsg { - typeUrl: "/tendermint.types.Part"; - value: Uint8Array; -} -export interface PartAmino { - index?: number; - bytes?: string; - proof?: ProofAmino; -} -export interface PartAminoMsg { - type: "/tendermint.types.Part"; - value: PartAmino; -} -export interface PartSDKType { - index: number; - bytes: Uint8Array; - proof: ProofSDKType; -} -/** BlockID */ -export interface BlockID { - hash: Uint8Array; - partSetHeader: PartSetHeader; -} -export interface BlockIDProtoMsg { - typeUrl: "/tendermint.types.BlockID"; - value: Uint8Array; -} -/** BlockID */ -export interface BlockIDAmino { - hash?: string; - part_set_header?: PartSetHeaderAmino; -} -export interface BlockIDAminoMsg { - type: "/tendermint.types.BlockID"; - value: BlockIDAmino; -} -/** BlockID */ -export interface BlockIDSDKType { - hash: Uint8Array; - part_set_header: PartSetHeaderSDKType; -} -/** Header defines the structure of a block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: bigint; - time: Timestamp; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** original proposer of the block */ - proposerAddress: Uint8Array; -} -export interface HeaderProtoMsg { - typeUrl: "/tendermint.types.Header"; - value: Uint8Array; -} -/** Header defines the structure of a block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id?: string; - height?: string; - time?: string; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash?: string; - data_hash?: string; - /** hashes from the app output from the prev block */ - validators_hash?: string; - /** validators for the next block */ - next_validators_hash?: string; - /** consensus params for current block */ - consensus_hash?: string; - /** state after txs from the previous block */ - app_hash?: string; - last_results_hash?: string; - /** consensus info */ - evidence_hash?: string; - /** original proposer of the block */ - proposer_address?: string; -} -export interface HeaderAminoMsg { - type: "/tendermint.types.Header"; - value: HeaderAmino; -} -/** Header defines the structure of a block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: bigint; - time: TimestampSDKType; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface Data { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataProtoMsg { - typeUrl: "/tendermint.types.Data"; - value: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface DataAmino { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; -} -export interface DataAminoMsg { - type: "/tendermint.types.Data"; - value: DataAmino; -} -/** Data contains the set of transactions included in the block */ -export interface DataSDKType { - txs: Uint8Array[]; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface Vote { - type: SignedMsgType; - height: bigint; - round: number; - blockId: BlockID; - timestamp: Timestamp; - validatorAddress: Uint8Array; - validatorIndex: number; - signature: Uint8Array; -} -export interface VoteProtoMsg { - typeUrl: "/tendermint.types.Vote"; - value: Uint8Array; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteAmino { - type?: SignedMsgType; - height?: string; - round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - validator_address?: string; - validator_index?: number; - signature?: string; -} -export interface VoteAminoMsg { - type: "/tendermint.types.Vote"; - value: VoteAmino; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteSDKType { - type: SignedMsgType; - height: bigint; - round: number; - block_id: BlockIDSDKType; - timestamp: TimestampSDKType; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface Commit { - height: bigint; - round: number; - blockId: BlockID; - signatures: CommitSig[]; -} -export interface CommitProtoMsg { - typeUrl: "/tendermint.types.Commit"; - value: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitAmino { - height?: string; - round?: number; - block_id?: BlockIDAmino; - signatures?: CommitSigAmino[]; -} -export interface CommitAminoMsg { - type: "/tendermint.types.Commit"; - value: CommitAmino; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitSDKType { - height: bigint; - round: number; - block_id: BlockIDSDKType; - signatures: CommitSigSDKType[]; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSig { - blockIdFlag: BlockIDFlag; - validatorAddress: Uint8Array; - timestamp: Timestamp; - signature: Uint8Array; -} -export interface CommitSigProtoMsg { - typeUrl: "/tendermint.types.CommitSig"; - value: Uint8Array; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigAmino { - block_id_flag?: BlockIDFlag; - validator_address?: string; - timestamp?: string; - signature?: string; -} -export interface CommitSigAminoMsg { - type: "/tendermint.types.CommitSig"; - value: CommitSigAmino; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigSDKType { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp: TimestampSDKType; - signature: Uint8Array; -} -export interface Proposal { - type: SignedMsgType; - height: bigint; - round: number; - polRound: number; - blockId: BlockID; - timestamp: Timestamp; - signature: Uint8Array; -} -export interface ProposalProtoMsg { - typeUrl: "/tendermint.types.Proposal"; - value: Uint8Array; -} -export interface ProposalAmino { - type?: SignedMsgType; - height?: string; - round?: number; - pol_round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - signature?: string; -} -export interface ProposalAminoMsg { - type: "/tendermint.types.Proposal"; - value: ProposalAmino; -} -export interface ProposalSDKType { - type: SignedMsgType; - height: bigint; - round: number; - pol_round: number; - block_id: BlockIDSDKType; - timestamp: TimestampSDKType; - signature: Uint8Array; -} -export interface SignedHeader { - header?: Header; - commit?: Commit; -} -export interface SignedHeaderProtoMsg { - typeUrl: "/tendermint.types.SignedHeader"; - value: Uint8Array; -} -export interface SignedHeaderAmino { - header?: HeaderAmino; - commit?: CommitAmino; -} -export interface SignedHeaderAminoMsg { - type: "/tendermint.types.SignedHeader"; - value: SignedHeaderAmino; -} -export interface SignedHeaderSDKType { - header?: HeaderSDKType; - commit?: CommitSDKType; -} -export interface LightBlock { - signedHeader?: SignedHeader; - validatorSet?: ValidatorSet; -} -export interface LightBlockProtoMsg { - typeUrl: "/tendermint.types.LightBlock"; - value: Uint8Array; -} -export interface LightBlockAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; -} -export interface LightBlockAminoMsg { - type: "/tendermint.types.LightBlock"; - value: LightBlockAmino; -} -export interface LightBlockSDKType { - signed_header?: SignedHeaderSDKType; - validator_set?: ValidatorSetSDKType; -} -export interface BlockMeta { - blockId: BlockID; - blockSize: bigint; - header: Header; - numTxs: bigint; -} -export interface BlockMetaProtoMsg { - typeUrl: "/tendermint.types.BlockMeta"; - value: Uint8Array; -} -export interface BlockMetaAmino { - block_id?: BlockIDAmino; - block_size?: string; - header?: HeaderAmino; - num_txs?: string; -} -export interface BlockMetaAminoMsg { - type: "/tendermint.types.BlockMeta"; - value: BlockMetaAmino; -} -export interface BlockMetaSDKType { - block_id: BlockIDSDKType; - block_size: bigint; - header: HeaderSDKType; - num_txs: bigint; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProof { - rootHash: Uint8Array; - data: Uint8Array; - proof?: Proof; -} -export interface TxProofProtoMsg { - typeUrl: "/tendermint.types.TxProof"; - value: Uint8Array; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofAmino { - root_hash?: string; - data?: string; - proof?: ProofAmino; -} -export interface TxProofAminoMsg { - type: "/tendermint.types.TxProof"; - value: TxProofAmino; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofSDKType { - root_hash: Uint8Array; - data: Uint8Array; - proof?: ProofSDKType; -} -export declare const PartSetHeader: { - typeUrl: string; - encode(message: PartSetHeader, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader; - fromJSON(object: any): PartSetHeader; - toJSON(message: PartSetHeader): unknown; - fromPartial(object: Partial): PartSetHeader; - fromAmino(object: PartSetHeaderAmino): PartSetHeader; - toAmino(message: PartSetHeader): PartSetHeaderAmino; - fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader; - fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader; - toProto(message: PartSetHeader): Uint8Array; - toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg; -}; -export declare const Part: { - typeUrl: string; - encode(message: Part, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Part; - fromJSON(object: any): Part; - toJSON(message: Part): unknown; - fromPartial(object: Partial): Part; - fromAmino(object: PartAmino): Part; - toAmino(message: Part): PartAmino; - fromAminoMsg(object: PartAminoMsg): Part; - fromProtoMsg(message: PartProtoMsg): Part; - toProto(message: Part): Uint8Array; - toProtoMsg(message: Part): PartProtoMsg; -}; -export declare const BlockID: { - typeUrl: string; - encode(message: BlockID, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockID; - fromJSON(object: any): BlockID; - toJSON(message: BlockID): unknown; - fromPartial(object: Partial): BlockID; - fromAmino(object: BlockIDAmino): BlockID; - toAmino(message: BlockID): BlockIDAmino; - fromAminoMsg(object: BlockIDAminoMsg): BlockID; - fromProtoMsg(message: BlockIDProtoMsg): BlockID; - toProto(message: BlockID): Uint8Array; - toProtoMsg(message: BlockID): BlockIDProtoMsg; -}; -export declare const Header: { - typeUrl: string; - encode(message: Header, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Header; - fromJSON(object: any): Header; - toJSON(message: Header): unknown; - fromPartial(object: Partial
): Header; - fromAmino(object: HeaderAmino): Header; - toAmino(message: Header): HeaderAmino; - fromAminoMsg(object: HeaderAminoMsg): Header; - fromProtoMsg(message: HeaderProtoMsg): Header; - toProto(message: Header): Uint8Array; - toProtoMsg(message: Header): HeaderProtoMsg; -}; -export declare const Data: { - typeUrl: string; - encode(message: Data, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Data; - fromJSON(object: any): Data; - toJSON(message: Data): unknown; - fromPartial(object: Partial): Data; - fromAmino(object: DataAmino): Data; - toAmino(message: Data): DataAmino; - fromAminoMsg(object: DataAminoMsg): Data; - fromProtoMsg(message: DataProtoMsg): Data; - toProto(message: Data): Uint8Array; - toProtoMsg(message: Data): DataProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromJSON(object: any): Vote; - toJSON(message: Vote): unknown; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const Commit: { - typeUrl: string; - encode(message: Commit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Commit; - fromJSON(object: any): Commit; - toJSON(message: Commit): unknown; - fromPartial(object: Partial): Commit; - fromAmino(object: CommitAmino): Commit; - toAmino(message: Commit): CommitAmino; - fromAminoMsg(object: CommitAminoMsg): Commit; - fromProtoMsg(message: CommitProtoMsg): Commit; - toProto(message: Commit): Uint8Array; - toProtoMsg(message: Commit): CommitProtoMsg; -}; -export declare const CommitSig: { - typeUrl: string; - encode(message: CommitSig, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitSig; - fromJSON(object: any): CommitSig; - toJSON(message: CommitSig): unknown; - fromPartial(object: Partial): CommitSig; - fromAmino(object: CommitSigAmino): CommitSig; - toAmino(message: CommitSig): CommitSigAmino; - fromAminoMsg(object: CommitSigAminoMsg): CommitSig; - fromProtoMsg(message: CommitSigProtoMsg): CommitSig; - toProto(message: CommitSig): Uint8Array; - toProtoMsg(message: CommitSig): CommitSigProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromJSON(object: any): Proposal; - toJSON(message: Proposal): unknown; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const SignedHeader: { - typeUrl: string; - encode(message: SignedHeader, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader; - fromJSON(object: any): SignedHeader; - toJSON(message: SignedHeader): unknown; - fromPartial(object: Partial): SignedHeader; - fromAmino(object: SignedHeaderAmino): SignedHeader; - toAmino(message: SignedHeader): SignedHeaderAmino; - fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader; - fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader; - toProto(message: SignedHeader): Uint8Array; - toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg; -}; -export declare const LightBlock: { - typeUrl: string; - encode(message: LightBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LightBlock; - fromJSON(object: any): LightBlock; - toJSON(message: LightBlock): unknown; - fromPartial(object: Partial): LightBlock; - fromAmino(object: LightBlockAmino): LightBlock; - toAmino(message: LightBlock): LightBlockAmino; - fromAminoMsg(object: LightBlockAminoMsg): LightBlock; - fromProtoMsg(message: LightBlockProtoMsg): LightBlock; - toProto(message: LightBlock): Uint8Array; - toProtoMsg(message: LightBlock): LightBlockProtoMsg; -}; -export declare const BlockMeta: { - typeUrl: string; - encode(message: BlockMeta, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta; - fromJSON(object: any): BlockMeta; - toJSON(message: BlockMeta): unknown; - fromPartial(object: Partial): BlockMeta; - fromAmino(object: BlockMetaAmino): BlockMeta; - toAmino(message: BlockMeta): BlockMetaAmino; - fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta; - fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta; - toProto(message: BlockMeta): Uint8Array; - toProtoMsg(message: BlockMeta): BlockMetaProtoMsg; -}; -export declare const TxProof: { - typeUrl: string; - encode(message: TxProof, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxProof; - fromJSON(object: any): TxProof; - toJSON(message: TxProof): unknown; - fromPartial(object: Partial): TxProof; - fromAmino(object: TxProofAmino): TxProof; - toAmino(message: TxProof): TxProofAmino; - fromAminoMsg(object: TxProofAminoMsg): TxProof; - fromProtoMsg(message: TxProofProtoMsg): TxProof; - toProto(message: TxProof): Uint8Array; - toProtoMsg(message: TxProof): TxProofProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/types/validator.d.ts b/packages/api/types/codegen/tendermint/types/validator.d.ts deleted file mode 100644 index 7d8b19ec..00000000 --- a/packages/api/types/codegen/tendermint/types/validator.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface ValidatorSet { - validators: Validator[]; - proposer?: Validator; - totalVotingPower: bigint; -} -export interface ValidatorSetProtoMsg { - typeUrl: "/tendermint.types.ValidatorSet"; - value: Uint8Array; -} -export interface ValidatorSetAmino { - validators?: ValidatorAmino[]; - proposer?: ValidatorAmino; - total_voting_power?: string; -} -export interface ValidatorSetAminoMsg { - type: "/tendermint.types.ValidatorSet"; - value: ValidatorSetAmino; -} -export interface ValidatorSetSDKType { - validators: ValidatorSDKType[]; - proposer?: ValidatorSDKType; - total_voting_power: bigint; -} -export interface Validator { - address: Uint8Array; - pubKey: PublicKey; - votingPower: bigint; - proposerPriority: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.types.Validator"; - value: Uint8Array; -} -export interface ValidatorAmino { - address?: string; - pub_key?: PublicKeyAmino; - voting_power?: string; - proposer_priority?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.types.Validator"; - value: ValidatorAmino; -} -export interface ValidatorSDKType { - address: Uint8Array; - pub_key: PublicKeySDKType; - voting_power: bigint; - proposer_priority: bigint; -} -export interface SimpleValidator { - pubKey?: PublicKey; - votingPower: bigint; -} -export interface SimpleValidatorProtoMsg { - typeUrl: "/tendermint.types.SimpleValidator"; - value: Uint8Array; -} -export interface SimpleValidatorAmino { - pub_key?: PublicKeyAmino; - voting_power?: string; -} -export interface SimpleValidatorAminoMsg { - type: "/tendermint.types.SimpleValidator"; - value: SimpleValidatorAmino; -} -export interface SimpleValidatorSDKType { - pub_key?: PublicKeySDKType; - voting_power: bigint; -} -export declare const ValidatorSet: { - typeUrl: string; - encode(message: ValidatorSet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet; - fromJSON(object: any): ValidatorSet; - toJSON(message: ValidatorSet): unknown; - fromPartial(object: Partial): ValidatorSet; - fromAmino(object: ValidatorSetAmino): ValidatorSet; - toAmino(message: ValidatorSet): ValidatorSetAmino; - fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet; - fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet; - toProto(message: ValidatorSet): Uint8Array; - toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromJSON(object: any): Validator; - toJSON(message: Validator): unknown; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const SimpleValidator: { - typeUrl: string; - encode(message: SimpleValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator; - fromJSON(object: any): SimpleValidator; - toJSON(message: SimpleValidator): unknown; - fromPartial(object: Partial): SimpleValidator; - fromAmino(object: SimpleValidatorAmino): SimpleValidator; - toAmino(message: SimpleValidator): SimpleValidatorAmino; - fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator; - fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator; - toProto(message: SimpleValidator): Uint8Array; - toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg; -}; diff --git a/packages/api/types/codegen/tendermint/version/types.d.ts b/packages/api/types/codegen/tendermint/version/types.d.ts deleted file mode 100644 index 1414797c..00000000 --- a/packages/api/types/codegen/tendermint/version/types.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface App { - protocol: bigint; - software: string; -} -export interface AppProtoMsg { - typeUrl: "/tendermint.version.App"; - value: Uint8Array; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppAmino { - protocol?: string; - software?: string; -} -export interface AppAminoMsg { - type: "/tendermint.version.App"; - value: AppAmino; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppSDKType { - protocol: bigint; - software: string; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface Consensus { - block: bigint; - app: bigint; -} -export interface ConsensusProtoMsg { - typeUrl: "/tendermint.version.Consensus"; - value: Uint8Array; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusAmino { - block?: string; - app?: string; -} -export interface ConsensusAminoMsg { - type: "/tendermint.version.Consensus"; - value: ConsensusAmino; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusSDKType { - block: bigint; - app: bigint; -} -export declare const App: { - typeUrl: string; - encode(message: App, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): App; - fromJSON(object: any): App; - toJSON(message: App): unknown; - fromPartial(object: Partial): App; - fromAmino(object: AppAmino): App; - toAmino(message: App): AppAmino; - fromAminoMsg(object: AppAminoMsg): App; - fromProtoMsg(message: AppProtoMsg): App; - toProto(message: App): Uint8Array; - toProtoMsg(message: App): AppProtoMsg; -}; -export declare const Consensus: { - typeUrl: string; - encode(message: Consensus, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Consensus; - fromJSON(object: any): Consensus; - toJSON(message: Consensus): unknown; - fromPartial(object: Partial): Consensus; - fromAmino(object: ConsensusAmino): Consensus; - toAmino(message: Consensus): ConsensusAmino; - fromAminoMsg(object: ConsensusAminoMsg): Consensus; - fromProtoMsg(message: ConsensusProtoMsg): Consensus; - toProto(message: Consensus): Uint8Array; - toProtoMsg(message: Consensus): ConsensusProtoMsg; -}; diff --git a/packages/api/types/index.d.ts b/packages/api/types/index.d.ts deleted file mode 100644 index 646541b5..00000000 --- a/packages/api/types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './codegen'; diff --git a/tsconfig.json b/tsconfig.json index c7fa332c..4c8a664f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,16 @@ { - "compilerOptions": { - "jsx": "react-jsx", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "moduleResolution": "node", - "newLine": "LF", - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "pretty": true, - "removeComments": false, - "skipLibCheck": true, - "strict": true, - "downlevelIteration": true, - "typeRoots": ["./node_modules/@types"] - }, - "exclude": ["**/lib/**/*"], - "ecmaVersion": 6, - "sourceType": "module", + "compilerOptions": { + "target": "es2022", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "strictNullChecks": false, + "skipLibCheck": true, + "sourceMap": false, + "declaration": true, + "resolveJsonModule": true, + "moduleResolution": "node" + }, + "exclude": ["dist", "node_modules"] } diff --git a/yarn.lock b/yarn.lock index 2091e09b..7b51e1db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -29,29 +29,6 @@ jsonpointer "^5.0.0" leven "^3.1.0" -"@babel/cli@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.22.5.tgz#eb323bd69f50297792c2b7c205a97306a305d703" - integrity sha512-N5d7MjzwsQ2wppwjhrsicVDhJSqF9labEP/swYiHhio4Ca2XjEehpgPmerjnLQl7BPE59BLud0PTWGYwqFl/cQ== - dependencies: - "@jridgewell/trace-mapping" "^0.3.17" - commander "^4.0.1" - convert-source-map "^1.1.0" - fs-readdir-recursive "^1.1.0" - glob "^7.2.0" - make-dir "^2.1.0" - slash "^2.0.0" - optionalDependencies: - "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" - chokidar "^3.4.0" - -"@babel/code-frame@7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== - dependencies: - "@babel/highlight" "^7.10.4" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6", "@babel/code-frame@^7.21.4": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.21.4.tgz#d0fa9e4413aca81f2b23b9442797bda1826edb39" @@ -74,6 +51,14 @@ "@babel/highlight" "^7.24.2" picocolors "^1.0.0" +"@babel/code-frame@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" + integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== + dependencies: + "@babel/highlight" "^7.24.7" + picocolors "^1.0.0" + "@babel/compat-data@^7.17.7", "@babel/compat-data@^7.18.8", "@babel/compat-data@^7.20.5", "@babel/compat-data@^7.21.5": version "7.21.7" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.7.tgz#61caffb60776e49a57ba61a88f02bedd8714f6bc" @@ -84,6 +69,11 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.5.tgz#b1f6c86a02d85d2dd3368a2b67c09add8cd0c255" integrity sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA== +"@babel/compat-data@^7.25.2": + version "7.25.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" + integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== + "@babel/core@7.18.10": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.10.tgz#39ad504991d77f1f3da91be0b8b949a5bc466fb8" @@ -105,7 +95,28 @@ json5 "^2.2.1" semver "^6.3.0" -"@babel/core@7.22.5", "@babel/core@^7.11.1", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/core@^7.1.0", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.16.0": + version "7.21.8" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.8.tgz#2a8c7f0f53d60100ba4c32470ba0281c92aa9aa4" + integrity sha512-YeM22Sondbo523Sz0+CirSPnbj9bG3P0CdHcBZdqUuaeOaYEFbOLoGU7lebvGP6P5J/WE9wOn7u7C4J9HvS1xQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.21.4" + "@babel/generator" "^7.21.5" + "@babel/helper-compilation-targets" "^7.21.5" + "@babel/helper-module-transforms" "^7.21.5" + "@babel/helpers" "^7.21.5" + "@babel/parser" "^7.21.8" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.5" + "@babel/types" "^7.21.5" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.2" + semver "^6.3.0" + +"@babel/core@^7.11.1", "@babel/core@^7.7.2", "@babel/core@^7.8.0": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.5.tgz#d67d9747ecf26ee7ecd3ebae1ee22225fe902a89" integrity sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg== @@ -126,26 +137,26 @@ json5 "^2.2.2" semver "^6.3.0" -"@babel/core@^7.1.0", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.16.0": - version "7.21.8" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.8.tgz#2a8c7f0f53d60100ba4c32470ba0281c92aa9aa4" - integrity sha512-YeM22Sondbo523Sz0+CirSPnbj9bG3P0CdHcBZdqUuaeOaYEFbOLoGU7lebvGP6P5J/WE9wOn7u7C4J9HvS1xQ== +"@babel/core@^7.23.9": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" + integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.21.4" - "@babel/generator" "^7.21.5" - "@babel/helper-compilation-targets" "^7.21.5" - "@babel/helper-module-transforms" "^7.21.5" - "@babel/helpers" "^7.21.5" - "@babel/parser" "^7.21.8" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.5" - "@babel/types" "^7.21.5" - convert-source-map "^1.7.0" + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.25.0" + "@babel/helper-compilation-targets" "^7.25.2" + "@babel/helper-module-transforms" "^7.25.2" + "@babel/helpers" "^7.25.0" + "@babel/parser" "^7.25.0" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.2" + "@babel/types" "^7.25.2" + convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.2.2" - semver "^6.3.0" + json5 "^2.2.3" + semver "^6.3.1" "@babel/eslint-parser@^7.16.3": version "7.22.5" @@ -195,6 +206,16 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" +"@babel/generator@^7.25.0", "@babel/generator@^7.25.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" + integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== + dependencies: + "@babel/types" "^7.25.6" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + jsesc "^2.5.1" + "@babel/helper-annotate-as-pure@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" @@ -245,6 +266,17 @@ lru-cache "^5.1.1" semver "^6.3.0" +"@babel/helper-compilation-targets@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" + integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== + dependencies: + "@babel/compat-data" "^7.25.2" + "@babel/helper-validator-option" "^7.24.8" + browserslist "^4.23.1" + lru-cache "^5.1.1" + semver "^6.3.1" + "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0": version "7.21.8" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.8.tgz#205b26330258625ef8869672ebca1e0dee5a0f02" @@ -398,6 +430,14 @@ dependencies: "@babel/types" "^7.21.4" +"@babel/helper-module-imports@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" + integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + "@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.18.9", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.5.tgz#d937c82e9af68d31ab49039136a222b17ac0b420" @@ -426,6 +466,16 @@ "@babel/traverse" "^7.22.5" "@babel/types" "^7.22.5" +"@babel/helper-module-transforms@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" + integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== + dependencies: + "@babel/helper-module-imports" "^7.24.7" + "@babel/helper-simple-access" "^7.24.7" + "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.2" + "@babel/helper-optimise-call-expression@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" @@ -450,6 +500,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== +"@babel/helper-plugin-utils@^7.24.7": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" + integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== + "@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" @@ -508,6 +563,14 @@ dependencies: "@babel/types" "^7.22.5" +"@babel/helper-simple-access@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" + integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + "@babel/helper-skip-transparent-expression-wrappers@^7.20.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684" @@ -558,6 +621,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== +"@babel/helper-string-parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== + "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": version "7.19.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" @@ -573,6 +641,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193" integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ== +"@babel/helper-validator-identifier@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" + integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== + "@babel/helper-validator-option@^7.18.6", "@babel/helper-validator-option@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" @@ -583,6 +656,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac" integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== +"@babel/helper-validator-option@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" + integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== + "@babel/helper-wrap-function@^7.18.9": version "7.20.5" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz#75e2d84d499a0ab3b31c33bcfe59d6b8a45f62e3" @@ -621,7 +699,15 @@ "@babel/traverse" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": +"@babel/helpers@^7.25.0": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" + integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== + dependencies: + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.6" + +"@babel/highlight@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== @@ -649,17 +735,15 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/node@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/node/-/node-7.22.5.tgz#5632c6f5f5d06ac68e34dd1cbe461ef4d5f8e49c" - integrity sha512-rguSfZsRNsAhCQ/XjZhDK2CTWxp/jEKx2On8Ir+C6uCZERirg/Ae6fJaOSKQgTg11kA2LEvonpxY2Hb3zF5C8g== +"@babel/highlight@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" + integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== dependencies: - "@babel/register" "^7.22.5" - commander "^4.0.1" - core-js "^3.30.2" - node-environment-flags "^1.0.5" - regenerator-runtime "^0.13.11" - v8flags "^3.1.1" + "@babel/helper-validator-identifier" "^7.24.7" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" "@babel/parser@7.18.11": version "7.18.11" @@ -681,6 +765,13 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.1.tgz#1e416d3627393fab1cb5b0f2f1796a100ae9133a" integrity sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg== +"@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" + integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== + dependencies: + "@babel/types" "^7.25.6" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz#da5b8f9a580acdfbe53494dba45ea389fb09a4d2" @@ -767,14 +858,6 @@ "@babel/helper-plugin-utils" "^7.18.9" "@babel/plugin-syntax-export-default-from" "^7.18.6" -"@babel/plugin-proposal-export-default-from@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.22.5.tgz#825924eda1fad382c3de4db6fe1711b6fa03362f" - integrity sha512-UCe1X/hplyv6A5g2WnQ90tnHRvYL29dabCWww92lO7VdfMVTVReBTRrhiMrKQejHD9oVkdnRdwYuzUZkBVQisg== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/plugin-syntax-export-default-from" "^7.22.5" - "@babel/plugin-proposal-export-namespace-from@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz#5f7313ab348cdb19d590145f9247540e94761203" @@ -934,13 +1017,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-syntax-export-default-from@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.22.5.tgz#ac3a24b362a04415a017ab96b9b4483d0e2a6e44" - integrity sha512-ODAqWWXB/yReh/jVQDag/3/tl6lgBueQkk/TcfW/59Oykm4c8a55XloX0CTk2k2VJiFWMgHby9xNX29IbCv9dQ== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/plugin-syntax-export-namespace-from@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" @@ -1004,6 +1080,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-syntax-jsx@^7.7.2": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d" + integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" @@ -1067,7 +1150,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.20.2" -"@babel/plugin-syntax-typescript@^7.22.5", "@babel/plugin-syntax-typescript@^7.7.2": +"@babel/plugin-syntax-typescript@^7.7.2": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz#aac8d383b062c5072c647a31ef990c1d0af90272" integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ== @@ -1708,18 +1791,6 @@ babel-plugin-polyfill-regenerator "^0.4.1" semver "^6.3.0" -"@babel/plugin-transform-runtime@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.5.tgz#ca975fb5e260044473c8142e1b18b567d33c2a3b" - integrity sha512-bg4Wxd1FWeFx3daHFTWk1pkSWK/AyQuiyAoeZAOkAOUBjnZPH6KT7eMxouV47tQ6hl6ax2zyAWBdWZXbrvXlaw== - dependencies: - "@babel/helper-module-imports" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - babel-plugin-polyfill-corejs2 "^0.4.3" - babel-plugin-polyfill-corejs3 "^0.8.1" - babel-plugin-polyfill-regenerator "^0.5.0" - semver "^6.3.0" - "@babel/plugin-transform-shorthand-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" @@ -1802,16 +1873,6 @@ "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-typescript" "^7.20.0" -"@babel/plugin-transform-typescript@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.5.tgz#5c0f7adfc1b5f38c4dbc8f79b1f0f8074134bd7d" - integrity sha512-SMubA9S7Cb5sGSFFUlqxyClTA9zWJ8qGQrppNUm05LtFuN1ELRFNndkix4zUJrC9F+YivWwa1dHMSyo0e0N9dA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/plugin-syntax-typescript" "^7.22.5" - "@babel/plugin-transform-unicode-escapes@^7.18.10", "@babel/plugin-transform-unicode-escapes@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz#1e55ed6195259b0e9061d81f5ef45a9b009fb7f2" @@ -1939,7 +2000,7 @@ core-js-compat "^3.22.1" semver "^6.3.0" -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.12.1", "@babel/preset-env@^7.22.5": +"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.12.1": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.5.tgz#3da66078b181f3d62512c51cf7014392c511504e" integrity sha512-fj06hw89dpiZzGZtxn+QybifF07nNiZjZ7sazs2aVDcysAZVGjW7+7iFYxg6GLNM47R/thYfLdrXc+2f11Vi9A== @@ -2153,28 +2214,6 @@ "@babel/plugin-transform-modules-commonjs" "^7.21.5" "@babel/plugin-transform-typescript" "^7.21.3" -"@babel/preset-typescript@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.22.5.tgz#16367d8b01d640e9a507577ed4ee54e0101e51c8" - integrity sha512-YbPaal9LxztSGhmndR46FmAbkJ/1fAsw293tSU+I5E5h+cnJ3d4GTwyUgGYmOXJYdGA+uNePle4qbaRzj2NISQ== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" - "@babel/plugin-syntax-jsx" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.5" - "@babel/plugin-transform-typescript" "^7.22.5" - -"@babel/register@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.22.5.tgz#e4d8d0f615ea3233a27b5c6ada6750ee59559939" - integrity sha512-vV6pm/4CijSQ8Y47RH5SopXzursN35RQINfGJkmOlcpAtGuf94miFvIPhCKGQN7WGIcsgG1BHEX2KVdTYwTwUQ== - dependencies: - clone-deep "^4.0.1" - find-cache-dir "^2.0.0" - make-dir "^2.1.0" - pirates "^4.0.5" - source-map-support "^0.5.16" - "@babel/regjsgen@^0.8.0": version "0.8.0" resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" @@ -2187,13 +2226,6 @@ dependencies: regenerator-runtime "^0.13.11" -"@babel/runtime@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.5.tgz#8564dd588182ce0047d55d7a75e93921107b57ec" - integrity sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA== - dependencies: - regenerator-runtime "^0.13.11" - "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" @@ -2221,6 +2253,15 @@ "@babel/parser" "^7.22.5" "@babel/types" "^7.22.5" +"@babel/template@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" + integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/parser" "^7.25.0" + "@babel/types" "^7.25.0" + "@babel/traverse@7.18.11": version "7.18.11" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.11.tgz#3d51f2afbd83ecf9912bcbb5c4d94e3d2ddaa16f" @@ -2285,6 +2326,19 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" + integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.25.6" + "@babel/parser" "^7.25.6" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.6" + debug "^4.3.1" + globals "^11.1.0" + "@babel/types@7.18.10": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6" @@ -2330,6 +2384,15 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" +"@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" + integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== + dependencies: + "@babel/helper-string-parser" "^7.24.8" + "@babel/helper-validator-identifier" "^7.24.7" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -2343,7 +2406,7 @@ "@noble/hashes" "^1.0.0" protobufjs "^6.8.8" -"@cosmjs/amino@^0.31.0": +"@cosmjs/amino@0.31.0", "@cosmjs/amino@^0.31.0": version "0.31.0" resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.31.0.tgz#49b33047295002804ad51bdf7ec0c2c97f1b553d" integrity sha512-xJ5CCEK7H79FTpOuEmlpSzVI+ZeYESTVvO3wHDgbnceIyAne3C68SvyaKqLUR4uJB0Z4q4+DZHbqW6itUiv4lA== @@ -2366,7 +2429,7 @@ elliptic "^6.5.4" libsodium-wrappers-sumo "^0.7.11" -"@cosmjs/encoding@^0.31.0": +"@cosmjs/encoding@0.31.0", "@cosmjs/encoding@^0.31.0": version "0.31.0" resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.31.0.tgz#9a6fd80b59c35fc20638a6436128ad0be681eafc" integrity sha512-NYGQDRxT7MIRSlcbAezwxK0FqnaSPKCH7O32cmfpHNWorFxhy9lwmBoCvoe59Kd0HmArI4h+NGzLEfX3OLnA4Q== @@ -2383,14 +2446,14 @@ "@cosmjs/stream" "^0.31.0" xstream "^11.14.0" -"@cosmjs/math@^0.31.0": +"@cosmjs/math@0.31.0", "@cosmjs/math@^0.31.0": version "0.31.0" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.31.0.tgz#c9fc5f8191df7c2375945d2eacce327dfbf26414" integrity sha512-Sb/8Ry/+gKJaYiV6X8q45kxXC9FoV98XCY1WXtu0JQwOi61VCG2VXsURQnVvZ/EhR/CuT/swOlNKrqEs3da0fw== dependencies: bn.js "^5.2.0" -"@cosmjs/proto-signing@^0.31.0": +"@cosmjs/proto-signing@0.31.0", "@cosmjs/proto-signing@^0.31.0": version "0.31.0" resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.31.0.tgz#7056963457cd967f53f56c2ab4491638e5ade2c0" integrity sha512-JNlyOJRkn8EKB9mCthkjr6lVX6eyVQ09PFdmB4/DR874E62dFTvQ+YvyKMAgN7K7Dcjj26dVlAD3f6Xs7YOGDg== @@ -2413,7 +2476,7 @@ ws "^7" xstream "^11.14.0" -"@cosmjs/stargate@^0.31.0": +"@cosmjs/stargate@0.31.0": version "0.31.0" resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.31.0.tgz#a7df1eaf1363513529607abaa52a5045aaaee0fd" integrity sha512-GYhk9lzZPj/QmYHC0VV/4AMoRzVcOP+EnB1YZCoWlBdLuVmpBYKRagJqWIrIwdk1E0gF2ZoESd2TYfdh1fqIpg== @@ -2471,12 +2534,12 @@ case "1.6.3" dotty "0.1.2" -"@cosmology/lcd@^0.13.3": - version "0.13.3" - resolved "https://registry.yarnpkg.com/@cosmology/lcd/-/lcd-0.13.3.tgz#4072178cfe979b948ab596c9378b56c4f320d192" - integrity sha512-lihAHCoap0GN/32qcOhiMp6HcoZP8A7GeScZMlmmvBtBk6ocGAStNHjvBR4MayrvyHSCOZCvCAWPh36iFTT8Sw== +"@cosmology/lcd@^0.13.4": + version "0.13.5" + resolved "https://registry.yarnpkg.com/@cosmology/lcd/-/lcd-0.13.5.tgz#1bc4d43d525ecd68d09211d2ce17332a149a1a00" + integrity sha512-CI8KFsJcgp0RINF8wHpv3Y9yR4Fb9ZnGucyoUICjtX2XT4NVBK+fvZuRFj5TP34km8TpEOb+WV2T7IN/pZsD7Q== dependencies: - axios "1.6.0" + axios "1.7.4" "@cosmology/proto-parser@^1.5.1": version "1.5.1" @@ -2705,33 +2768,23 @@ resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz#2cbcf822bf3764c9658c4d2e568bd0c0cb748016" integrity sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw== -"@eslint-community/eslint-utils@^4.2.0": +"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== dependencies: eslint-visitor-keys "^3.3.0" +"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1": + version "4.11.1" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.1.tgz#a547badfc719eb3e5f4b556325e542fbe9d7a18f" + integrity sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q== + "@eslint-community/regexpp@^4.4.0": version "4.5.1" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== - dependencies: - ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" - "@eslint/eslintrc@^2.0.3": version "2.0.3" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f27774bf356e3704818a0331" @@ -2747,84 +2800,35 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@eslint/eslintrc@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + "@eslint/js@8.43.0": version "8.43.0" resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.43.0.tgz#559ca3d9ddbd6bf907ad524320a0d14b85586af0" integrity sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg== -"@evocateur/libnpmaccess@^3.1.2": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@evocateur/libnpmaccess/-/libnpmaccess-3.1.2.tgz#ecf7f6ce6b004e9f942b098d92200be4a4b1c845" - integrity sha512-KSCAHwNWro0CF2ukxufCitT9K5LjL/KuMmNzSu8wuwN2rjyKHD8+cmOsiybK+W5hdnwc5M1SmRlVCaMHQo+3rg== - dependencies: - "@evocateur/npm-registry-fetch" "^4.0.0" - aproba "^2.0.0" - figgy-pudding "^3.5.1" - get-stream "^4.0.0" - npm-package-arg "^6.1.0" - -"@evocateur/libnpmpublish@^1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@evocateur/libnpmpublish/-/libnpmpublish-1.2.2.tgz#55df09d2dca136afba9c88c759ca272198db9f1a" - integrity sha512-MJrrk9ct1FeY9zRlyeoyMieBjGDG9ihyyD9/Ft6MMrTxql9NyoEx2hw9casTIP4CdqEVu+3nQ2nXxoJ8RCXyFg== - dependencies: - "@evocateur/npm-registry-fetch" "^4.0.0" - aproba "^2.0.0" - figgy-pudding "^3.5.1" - get-stream "^4.0.0" - lodash.clonedeep "^4.5.0" - normalize-package-data "^2.4.0" - npm-package-arg "^6.1.0" - semver "^5.5.1" - ssri "^6.0.1" - -"@evocateur/npm-registry-fetch@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@evocateur/npm-registry-fetch/-/npm-registry-fetch-4.0.0.tgz#8c4c38766d8d32d3200fcb0a83f064b57365ed66" - integrity sha512-k1WGfKRQyhJpIr+P17O5vLIo2ko1PFLKwoetatdduUSt/aQ4J2sJrJwwatdI5Z3SiYk/mRH9S3JpdmMFd/IK4g== - dependencies: - JSONStream "^1.3.4" - bluebird "^3.5.1" - figgy-pudding "^3.4.1" - lru-cache "^5.1.1" - make-fetch-happen "^5.0.0" - npm-package-arg "^6.1.0" - safe-buffer "^5.1.2" +"@eslint/js@8.57.1": + version "8.57.1" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" + integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== -"@evocateur/pacote@^9.6.3": - version "9.6.5" - resolved "https://registry.yarnpkg.com/@evocateur/pacote/-/pacote-9.6.5.tgz#33de32ba210b6f17c20ebab4d497efc6755f4ae5" - integrity sha512-EI552lf0aG2nOV8NnZpTxNo2PcXKPmDbF9K8eCBFQdIZwHNGN/mi815fxtmUMa2wTa1yndotICIDt/V0vpEx2w== - dependencies: - "@evocateur/npm-registry-fetch" "^4.0.0" - bluebird "^3.5.3" - cacache "^12.0.3" - chownr "^1.1.2" - figgy-pudding "^3.5.1" - get-stream "^4.1.0" - glob "^7.1.4" - infer-owner "^1.0.4" - lru-cache "^5.1.1" - make-fetch-happen "^5.0.0" - minimatch "^3.0.4" - minipass "^2.3.5" - mississippi "^3.0.0" - mkdirp "^0.5.1" - normalize-package-data "^2.5.0" - npm-package-arg "^6.1.0" - npm-packlist "^1.4.4" - npm-pick-manifest "^3.0.0" - osenv "^0.1.5" - promise-inflight "^1.0.1" - promise-retry "^1.1.1" - protoduck "^5.0.1" - rimraf "^2.6.3" - safe-buffer "^5.2.0" - semver "^5.7.0" - ssri "^6.0.1" - tar "^4.4.10" - unique-filename "^1.1.1" - which "^1.3.1" +"@gar/promisify@^1.1.3": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" + integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== "@humanwhocodes/config-array@^0.11.10": version "0.11.10" @@ -2835,25 +2839,35 @@ debug "^4.1.1" minimatch "^3.0.5" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@humanwhocodes/config-array@^0.13.0": + version "0.13.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" + integrity sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw== dependencies: - "@humanwhocodes/object-schema" "^1.2.0" - debug "^4.1.1" - minimatch "^3.0.4" + "@humanwhocodes/object-schema" "^2.0.3" + debug "^4.3.1" + minimatch "^3.0.5" "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^1.2.0", "@humanwhocodes/object-schema@^1.2.1": +"@humanwhocodes/object-schema@^1.2.1": version "1.2.1" resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/object-schema@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" + integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== + +"@hutson/parse-repository-url@^3.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" + integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== + "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -2866,6 +2880,11 @@ wrap-ansi "^8.1.0" wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" +"@isaacs/string-locale-compare@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz#291c227e93fd407a96ecd59879a35809120e432b" + integrity sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ== + "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -2877,7 +2896,7 @@ js-yaml "^3.13.1" resolve-from "^5.0.0" -"@istanbuljs/schema@^0.1.2": +"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== @@ -2906,6 +2925,18 @@ jest-util "^28.1.3" slash "^3.0.0" +"@jest/console@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.7.0.tgz#cd4822dbdb84529265c5a2bdb529a3c9cc950ffc" + integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + slash "^3.0.0" + "@jest/core@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.5.1.tgz#267ac5f704e09dc52de2922cbf3af9edcd64b626" @@ -2940,6 +2971,40 @@ slash "^3.0.0" strip-ansi "^6.0.0" +"@jest/core@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f" + integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== + dependencies: + "@jest/console" "^29.7.0" + "@jest/reporters" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + ci-info "^3.2.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-changed-files "^29.7.0" + jest-config "^29.7.0" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-resolve-dependencies "^29.7.0" + jest-runner "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + jest-watcher "^29.7.0" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + strip-ansi "^6.0.0" + "@jest/environment@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.5.1.tgz#d7425820511fe7158abbecc010140c3fd3be9c74" @@ -2950,6 +3015,16 @@ "@types/node" "*" jest-mock "^27.5.1" +"@jest/environment@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7" + integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw== + dependencies: + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-mock "^29.7.0" + "@jest/expect-utils@^29.5.0": version "29.5.0" resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.5.0.tgz#f74fad6b6e20f924582dc8ecbf2cb800fe43a036" @@ -2957,6 +3032,21 @@ dependencies: jest-get-type "^29.4.3" +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== + dependencies: + jest-get-type "^29.6.3" + +"@jest/expect@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.7.0.tgz#76a3edb0cb753b70dfbfe23283510d3d45432bf2" + integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ== + dependencies: + expect "^29.7.0" + jest-snapshot "^29.7.0" + "@jest/fake-timers@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" @@ -2969,6 +3059,18 @@ jest-mock "^27.5.1" jest-util "^27.5.1" +"@jest/fake-timers@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.7.0.tgz#fd91bf1fffb16d7d0d24a426ab1a47a49881a565" + integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ== + dependencies: + "@jest/types" "^29.6.3" + "@sinonjs/fake-timers" "^10.0.2" + "@types/node" "*" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-util "^29.7.0" + "@jest/globals@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.5.1.tgz#7ac06ce57ab966566c7963431cef458434601b2b" @@ -2978,6 +3080,16 @@ "@jest/types" "^27.5.1" expect "^27.5.1" +"@jest/globals@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.7.0.tgz#8d9290f9ec47ff772607fa864ca1d5a2efae1d4d" + integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/types" "^29.6.3" + jest-mock "^29.7.0" + "@jest/reporters@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.5.1.tgz#ceda7be96170b03c923c37987b64015812ffec04" @@ -3009,6 +3121,36 @@ terminal-link "^2.0.0" v8-to-istanbul "^8.1.0" +"@jest/reporters@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.7.0.tgz#04b262ecb3b8faa83b0b3d321623972393e8f4c7" + integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" + "@types/node" "*" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.9" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^6.0.0" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.1.3" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + jest-worker "^29.7.0" + slash "^3.0.0" + string-length "^4.0.1" + strip-ansi "^6.0.0" + v8-to-istanbul "^9.0.1" + "@jest/schemas@^28.1.3": version "28.1.3" resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905" @@ -3023,6 +3165,13 @@ dependencies: "@sinclair/typebox" "^0.25.16" +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + "@jest/source-map@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" @@ -3032,6 +3181,15 @@ graceful-fs "^4.2.9" source-map "^0.6.0" +"@jest/source-map@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.3.tgz#d90ba772095cf37a34a5eb9413f1b562a08554c4" + integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw== + dependencies: + "@jridgewell/trace-mapping" "^0.3.18" + callsites "^3.0.0" + graceful-fs "^4.2.9" + "@jest/test-result@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.5.1.tgz#56a6585fa80f7cdab72b8c5fc2e871d03832f5bb" @@ -3052,6 +3210,16 @@ "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" +"@jest/test-result@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.7.0.tgz#8db9a80aa1a097bb2262572686734baed9b1657c" + integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA== + dependencies: + "@jest/console" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + "@jest/test-sequencer@^27.5.1": version "27.5.1" resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz#4057e0e9cea4439e544c6353c6affe58d095745b" @@ -3062,6 +3230,16 @@ jest-haste-map "^27.5.1" jest-runtime "^27.5.1" +"@jest/test-sequencer@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz#6cef977ce1d39834a3aea887a1726628a6f072ce" + integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw== + dependencies: + "@jest/test-result" "^29.7.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + slash "^3.0.0" + "@jest/transform@28.1.3": version "28.1.3" resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-28.1.3.tgz#59d8098e50ab07950e0f2fc0fc7ec462371281b0" @@ -3104,16 +3282,26 @@ source-map "^0.6.1" write-file-atomic "^3.0.0" -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== +"@jest/transform@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.7.0.tgz#df2dd9c346c7d7768b8a06639994640c642e284c" + integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw== dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^15.0.0" + "@babel/core" "^7.11.6" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" + babel-plugin-istanbul "^6.1.1" chalk "^4.0.0" + convert-source-map "^2.0.0" + fast-json-stable-stringify "^2.1.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + micromatch "^4.0.4" + pirates "^4.0.4" + slash "^3.0.0" + write-file-atomic "^4.0.2" "@jest/types@^27.5.1": version "27.5.1" @@ -3150,6 +3338,18 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== + dependencies: + "@jest/schemas" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + "@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": version "0.3.3" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" @@ -3211,15 +3411,7 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.18" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== @@ -3227,6 +3419,14 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" + integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + "@jsdevtools/ono@^7.1.3": version "7.1.3" resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" @@ -3244,756 +3444,413 @@ resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== -"@lerna/add@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/add/-/add-3.21.0.tgz#27007bde71cc7b0a2969ab3c2f0ae41578b4577b" - integrity sha512-vhUXXF6SpufBE1EkNEXwz1VLW03f177G9uMOFMQkp6OJ30/PWg4Ekifuz9/3YfgB2/GH8Tu4Lk3O51P2Hskg/A== - dependencies: - "@evocateur/pacote" "^9.6.3" - "@lerna/bootstrap" "3.21.0" - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/npm-conf" "3.16.0" - "@lerna/validation-error" "3.13.0" - dedent "^0.7.0" - npm-package-arg "^6.1.0" - p-map "^2.1.0" - semver "^6.2.0" - -"@lerna/bootstrap@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/bootstrap/-/bootstrap-3.21.0.tgz#bcd1b651be5b0970b20d8fae04c864548123aed6" - integrity sha512-mtNHlXpmvJn6JTu0KcuTTPl2jLsDNud0QacV/h++qsaKbhAaJr/FElNZ5s7MwZFUM3XaDmvWzHKaszeBMHIbBw== - dependencies: - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/has-npm-version" "3.16.5" - "@lerna/npm-install" "3.16.5" - "@lerna/package-graph" "3.18.5" - "@lerna/pulse-till-done" "3.13.0" - "@lerna/rimraf-dir" "3.16.5" - "@lerna/run-lifecycle" "3.16.2" - "@lerna/run-topologically" "3.18.5" - "@lerna/symlink-binary" "3.17.0" - "@lerna/symlink-dependencies" "3.17.0" - "@lerna/validation-error" "3.13.0" - dedent "^0.7.0" - get-port "^4.2.0" - multimatch "^3.0.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - p-finally "^1.0.0" - p-map "^2.1.0" - p-map-series "^1.0.0" - p-waterfall "^1.0.0" - read-package-tree "^5.1.6" - semver "^6.2.0" - -"@lerna/changed@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/changed/-/changed-3.21.0.tgz#108e15f679bfe077af500f58248c634f1044ea0b" - integrity sha512-hzqoyf8MSHVjZp0gfJ7G8jaz+++mgXYiNs9iViQGA8JlN/dnWLI5sWDptEH3/B30Izo+fdVz0S0s7ydVE3pWIw== - dependencies: - "@lerna/collect-updates" "3.20.0" - "@lerna/command" "3.21.0" - "@lerna/listable" "3.18.5" - "@lerna/output" "3.13.0" - -"@lerna/check-working-tree@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/check-working-tree/-/check-working-tree-3.16.5.tgz#b4f8ae61bb4523561dfb9f8f8d874dd46bb44baa" - integrity sha512-xWjVBcuhvB8+UmCSb5tKVLB5OuzSpw96WEhS2uz6hkWVa/Euh1A0/HJwn2cemyK47wUrCQXtczBUiqnq9yX5VQ== +"@lerna/child-process@6.6.2": + version "6.6.2" + resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-6.6.2.tgz#5d803c8dee81a4e013dc428292e77b365cba876c" + integrity sha512-QyKIWEnKQFnYu2ey+SAAm1A5xjzJLJJj3bhIZd3QKyXKKjaJ0hlxam/OsWSltxTNbcyH1jRJjC6Cxv31usv0Ag== dependencies: - "@lerna/collect-uncommitted" "3.16.5" - "@lerna/describe-ref" "3.16.5" - "@lerna/validation-error" "3.13.0" + chalk "^4.1.0" + execa "^5.0.0" + strong-log-transformer "^2.1.0" -"@lerna/child-process@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-3.16.5.tgz#38fa3c18064aa4ac0754ad80114776a7b36a69b2" - integrity sha512-vdcI7mzei9ERRV4oO8Y1LHBZ3A5+ampRKg1wq5nutLsUA4mEBN6H7JqjWOMY9xZemv6+kATm2ofjJ3lW5TszQg== +"@lerna/create@6.6.2": + version "6.6.2" + resolved "https://registry.yarnpkg.com/@lerna/create/-/create-6.6.2.tgz#39a36d80cddb355340c297ed785aa76f4498177f" + integrity sha512-xQ+1Y7D+9etvUlE+unhG/TwmM6XBzGIdFBaNoW8D8kyOa9M2Jf3vdEtAxVa7mhRz66CENfhL/+I/QkVaa7pwbQ== dependencies: - chalk "^2.3.1" - execa "^1.0.0" - strong-log-transformer "^2.0.0" - -"@lerna/clean@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/clean/-/clean-3.21.0.tgz#c0b46b5300cc3dae2cda3bec14b803082da3856d" - integrity sha512-b/L9l+MDgE/7oGbrav6rG8RTQvRiZLO1zTcG17zgJAAuhlsPxJExMlh2DFwJEVi2les70vMhHfST3Ue1IMMjpg== - dependencies: - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/prompt" "3.18.5" - "@lerna/pulse-till-done" "3.13.0" - "@lerna/rimraf-dir" "3.16.5" - p-map "^2.1.0" - p-map-series "^1.0.0" - p-waterfall "^1.0.0" - -"@lerna/cli@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/cli/-/cli-3.18.5.tgz#c90c461542fcd35b6d5b015a290fb0dbfb41d242" - integrity sha512-erkbxkj9jfc89vVs/jBLY/fM0I80oLmJkFUV3Q3wk9J3miYhP14zgVEBsPZY68IZlEjT6T3Xlq2xO1AVaatHsA== - dependencies: - "@lerna/global-options" "3.13.0" - dedent "^0.7.0" - npmlog "^4.1.2" - yargs "^14.2.2" - -"@lerna/collect-uncommitted@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/collect-uncommitted/-/collect-uncommitted-3.16.5.tgz#a494d61aac31cdc7aec4bbe52c96550274132e63" - integrity sha512-ZgqnGwpDZiWyzIQVZtQaj9tRizsL4dUOhuOStWgTAw1EMe47cvAY2kL709DzxFhjr6JpJSjXV5rZEAeU3VE0Hg== - dependencies: - "@lerna/child-process" "3.16.5" - chalk "^2.3.1" - figgy-pudding "^3.5.1" - npmlog "^4.1.2" - -"@lerna/collect-updates@3.20.0": - version "3.20.0" - resolved "https://registry.yarnpkg.com/@lerna/collect-updates/-/collect-updates-3.20.0.tgz#62f9d76ba21a25b7d9fbf31c02de88744a564bd1" - integrity sha512-qBTVT5g4fupVhBFuY4nI/3FSJtQVcDh7/gEPOpRxoXB/yCSnT38MFHXWl+y4einLciCjt/+0x6/4AG80fjay2Q== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/describe-ref" "3.16.5" - minimatch "^3.0.4" - npmlog "^4.1.2" - slash "^2.0.0" - -"@lerna/command@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/command/-/command-3.21.0.tgz#9a2383759dc7b700dacfa8a22b2f3a6e190121f7" - integrity sha512-T2bu6R8R3KkH5YoCKdutKv123iUgUbW8efVjdGCDnCMthAQzoentOJfDeodBwn0P2OqCl3ohsiNVtSn9h78fyQ== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/package-graph" "3.18.5" - "@lerna/project" "3.21.0" - "@lerna/validation-error" "3.13.0" - "@lerna/write-log-file" "3.13.0" - clone-deep "^4.0.1" - dedent "^0.7.0" - execa "^1.0.0" - is-ci "^2.0.0" - npmlog "^4.1.2" - -"@lerna/conventional-commits@3.22.0": - version "3.22.0" - resolved "https://registry.yarnpkg.com/@lerna/conventional-commits/-/conventional-commits-3.22.0.tgz#2798f4881ee2ef457bdae027ab7d0bf0af6f1e09" - integrity sha512-z4ZZk1e8Mhz7+IS8NxHr64wyklHctCJyWpJKEZZPJiLFJ8yKto/x38O80R10pIzC0rr8Sy/OsjSH4bl0TbbgqA== - dependencies: - "@lerna/validation-error" "3.13.0" - conventional-changelog-angular "^5.0.3" - conventional-changelog-core "^3.1.6" - conventional-recommended-bump "^5.0.0" - fs-extra "^8.1.0" - get-stream "^4.0.0" - lodash.template "^4.5.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - pify "^4.0.1" - semver "^6.2.0" - -"@lerna/create-symlink@3.16.2": - version "3.16.2" - resolved "https://registry.yarnpkg.com/@lerna/create-symlink/-/create-symlink-3.16.2.tgz#412cb8e59a72f5a7d9463e4e4721ad2070149967" - integrity sha512-pzXIJp6av15P325sgiIRpsPXLFmkisLhMBCy4764d+7yjf2bzrJ4gkWVMhsv4AdF0NN3OyZ5jjzzTtLNqfR+Jw== - dependencies: - "@zkochan/cmd-shim" "^3.1.0" - fs-extra "^8.1.0" - npmlog "^4.1.2" - -"@lerna/create@3.22.0": - version "3.22.0" - resolved "https://registry.yarnpkg.com/@lerna/create/-/create-3.22.0.tgz#d6bbd037c3dc5b425fe5f6d1b817057c278f7619" - integrity sha512-MdiQQzCcB4E9fBF1TyMOaAEz9lUjIHp1Ju9H7f3lXze5JK6Fl5NYkouAvsLgY6YSIhXMY8AHW2zzXeBDY4yWkw== - dependencies: - "@evocateur/pacote" "^9.6.3" - "@lerna/child-process" "3.16.5" - "@lerna/command" "3.21.0" - "@lerna/npm-conf" "3.16.0" - "@lerna/validation-error" "3.13.0" - camelcase "^5.0.0" + "@lerna/child-process" "6.6.2" dedent "^0.7.0" - fs-extra "^8.1.0" - globby "^9.2.0" - init-package-json "^1.10.3" - npm-package-arg "^6.1.0" - p-reduce "^1.0.0" - pify "^4.0.1" - semver "^6.2.0" - slash "^2.0.0" - validate-npm-package-license "^3.0.3" - validate-npm-package-name "^3.0.0" - whatwg-url "^7.0.0" - -"@lerna/describe-ref@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/describe-ref/-/describe-ref-3.16.5.tgz#a338c25aaed837d3dc70b8a72c447c5c66346ac0" - integrity sha512-c01+4gUF0saOOtDBzbLMFOTJDHTKbDFNErEY6q6i9QaXuzy9LNN62z+Hw4acAAZuJQhrVWncVathcmkkjvSVGw== - dependencies: - "@lerna/child-process" "3.16.5" - npmlog "^4.1.2" + fs-extra "^9.1.0" + init-package-json "^3.0.2" + npm-package-arg "8.1.1" + p-reduce "^2.1.0" + pacote "15.1.1" + pify "^5.0.0" + semver "^7.3.4" + slash "^3.0.0" + validate-npm-package-license "^3.0.4" + validate-npm-package-name "^4.0.0" + yargs-parser "20.2.4" + +"@lerna/legacy-package-management@6.6.2": + version "6.6.2" + resolved "https://registry.yarnpkg.com/@lerna/legacy-package-management/-/legacy-package-management-6.6.2.tgz#411c395e72e563ab98f255df77e4068627a85bb0" + integrity sha512-0hZxUPKnHwehUO2xC4ldtdX9bW0W1UosxebDIQlZL2STnZnA2IFmIk2lJVUyFW+cmTPQzV93jfS0i69T9Z+teg== + dependencies: + "@npmcli/arborist" "6.2.3" + "@npmcli/run-script" "4.1.7" + "@nrwl/devkit" ">=15.5.2 < 16" + "@octokit/rest" "19.0.3" + byte-size "7.0.0" + chalk "4.1.0" + clone-deep "4.0.1" + cmd-shim "5.0.0" + columnify "1.6.0" + config-chain "1.1.12" + conventional-changelog-core "4.2.4" + conventional-recommended-bump "6.1.0" + cosmiconfig "7.0.0" + dedent "0.7.0" + dot-prop "6.0.1" + execa "5.0.0" + file-url "3.0.0" + find-up "5.0.0" + fs-extra "9.1.0" + get-port "5.1.1" + get-stream "6.0.0" + git-url-parse "13.1.0" + glob-parent "5.1.2" + globby "11.1.0" + graceful-fs "4.2.10" + has-unicode "2.0.1" + inquirer "8.2.4" + is-ci "2.0.0" + is-stream "2.0.0" + libnpmpublish "7.1.4" + load-json-file "6.2.0" + make-dir "3.1.0" + minimatch "3.0.5" + multimatch "5.0.0" + node-fetch "2.6.7" + npm-package-arg "8.1.1" + npm-packlist "5.1.1" + npm-registry-fetch "14.0.3" + npmlog "6.0.2" + p-map "4.0.0" + p-map-series "2.1.0" + p-queue "6.6.2" + p-waterfall "2.1.1" + pacote "15.1.1" + pify "5.0.0" + pretty-format "29.4.3" + read-cmd-shim "3.0.0" + read-package-json "5.0.1" + resolve-from "5.0.0" + semver "7.3.8" + signal-exit "3.0.7" + slash "3.0.0" + ssri "9.0.1" + strong-log-transformer "2.1.0" + tar "6.1.11" + temp-dir "1.0.0" + tempy "1.0.0" + upath "2.0.1" + uuid "8.3.2" + write-file-atomic "4.0.1" + write-pkg "4.0.0" + yargs "16.2.0" -"@lerna/diff@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/diff/-/diff-3.21.0.tgz#e6df0d8b9916167ff5a49fcb02ac06424280a68d" - integrity sha512-5viTR33QV3S7O+bjruo1SaR40m7F2aUHJaDAC7fL9Ca6xji+aw1KFkpCtVlISS0G8vikUREGMJh+c/VMSc8Usw== +"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": + version "5.1.1-v1" + resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" + integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/command" "3.21.0" - "@lerna/validation-error" "3.13.0" - npmlog "^4.1.2" - -"@lerna/exec@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/exec/-/exec-3.21.0.tgz#17f07533893cb918a17b41bcc566dc437016db26" - integrity sha512-iLvDBrIE6rpdd4GIKTY9mkXyhwsJ2RvQdB9ZU+/NhR3okXfqKc6py/24tV111jqpXTtZUW6HNydT4dMao2hi1Q== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/profiler" "3.20.0" - "@lerna/run-topologically" "3.18.5" - "@lerna/validation-error" "3.13.0" - p-map "^2.1.0" - -"@lerna/filter-options@3.20.0": - version "3.20.0" - resolved "https://registry.yarnpkg.com/@lerna/filter-options/-/filter-options-3.20.0.tgz#0f0f5d5a4783856eece4204708cc902cbc8af59b" - integrity sha512-bmcHtvxn7SIl/R9gpiNMVG7yjx7WyT0HSGw34YVZ9B+3xF/83N3r5Rgtjh4hheLZ+Q91Or0Jyu5O3Nr+AwZe2g== - dependencies: - "@lerna/collect-updates" "3.20.0" - "@lerna/filter-packages" "3.18.0" - dedent "^0.7.0" - figgy-pudding "^3.5.1" - npmlog "^4.1.2" - -"@lerna/filter-packages@3.18.0": - version "3.18.0" - resolved "https://registry.yarnpkg.com/@lerna/filter-packages/-/filter-packages-3.18.0.tgz#6a7a376d285208db03a82958cfb8172e179b4e70" - integrity sha512-6/0pMM04bCHNATIOkouuYmPg6KH3VkPCIgTfQmdkPJTullERyEQfNUKikrefjxo1vHOoCACDpy65JYyKiAbdwQ== - dependencies: - "@lerna/validation-error" "3.13.0" - multimatch "^3.0.0" - npmlog "^4.1.2" - -"@lerna/get-npm-exec-opts@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/get-npm-exec-opts/-/get-npm-exec-opts-3.13.0.tgz#d1b552cb0088199fc3e7e126f914e39a08df9ea5" - integrity sha512-Y0xWL0rg3boVyJk6An/vurKzubyJKtrxYv2sj4bB8Mc5zZ3tqtv0ccbOkmkXKqbzvNNF7VeUt1OJ3DRgtC/QZw== - dependencies: - npmlog "^4.1.2" - -"@lerna/get-packed@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/get-packed/-/get-packed-3.16.0.tgz#1b316b706dcee86c7baa55e50b087959447852ff" - integrity sha512-AjsFiaJzo1GCPnJUJZiTW6J1EihrPkc2y3nMu6m3uWFxoleklsSCyImumzVZJssxMi3CPpztj8LmADLedl9kXw== - dependencies: - fs-extra "^8.1.0" - ssri "^6.0.1" - tar "^4.4.8" - -"@lerna/github-client@3.22.0": - version "3.22.0" - resolved "https://registry.yarnpkg.com/@lerna/github-client/-/github-client-3.22.0.tgz#5d816aa4f76747ed736ae64ff962b8f15c354d95" - integrity sha512-O/GwPW+Gzr3Eb5bk+nTzTJ3uv+jh5jGho9BOqKlajXaOkMYGBELEAqV5+uARNGWZFvYAiF4PgqHb6aCUu7XdXg== - dependencies: - "@lerna/child-process" "3.16.5" - "@octokit/plugin-enterprise-rest" "^6.0.1" - "@octokit/rest" "^16.28.4" - git-url-parse "^11.1.2" - npmlog "^4.1.2" - -"@lerna/gitlab-client@3.15.0": - version "3.15.0" - resolved "https://registry.yarnpkg.com/@lerna/gitlab-client/-/gitlab-client-3.15.0.tgz#91f4ec8c697b5ac57f7f25bd50fe659d24aa96a6" - integrity sha512-OsBvRSejHXUBMgwWQqNoioB8sgzL/Pf1pOUhHKtkiMl6aAWjklaaq5HPMvTIsZPfS6DJ9L5OK2GGZuooP/5c8Q== - dependencies: - node-fetch "^2.5.0" - npmlog "^4.1.2" - whatwg-url "^7.0.0" + eslint-scope "5.1.1" -"@lerna/global-options@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/global-options/-/global-options-3.13.0.tgz#217662290db06ad9cf2c49d8e3100ee28eaebae1" - integrity sha512-SlZvh1gVRRzYLVluz9fryY1nJpZ0FHDGB66U9tFfvnnxmueckRQxLopn3tXj3NU1kc3QANT2I5BsQkOqZ4TEFQ== - -"@lerna/has-npm-version@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/has-npm-version/-/has-npm-version-3.16.5.tgz#ab83956f211d8923ea6afe9b979b38cc73b15326" - integrity sha512-WL7LycR9bkftyqbYop5rEGJ9sRFIV55tSGmbN1HLrF9idwOCD7CLrT64t235t3t4O5gehDnwKI5h2U3oxTrF8Q== - dependencies: - "@lerna/child-process" "3.16.5" - semver "^6.2.0" - -"@lerna/import@3.22.0": - version "3.22.0" - resolved "https://registry.yarnpkg.com/@lerna/import/-/import-3.22.0.tgz#1a5f0394f38e23c4f642a123e5e1517e70d068d2" - integrity sha512-uWOlexasM5XR6tXi4YehODtH9Y3OZrFht3mGUFFT3OIl2s+V85xIGFfqFGMTipMPAGb2oF1UBLL48kR43hRsOg== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/command" "3.21.0" - "@lerna/prompt" "3.18.5" - "@lerna/pulse-till-done" "3.13.0" - "@lerna/validation-error" "3.13.0" - dedent "^0.7.0" - fs-extra "^8.1.0" - p-map-series "^1.0.0" +"@noble/hashes@^1", "@noble/hashes@^1.0.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" + integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== -"@lerna/info@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/info/-/info-3.21.0.tgz#76696b676fdb0f35d48c83c63c1e32bb5e37814f" - integrity sha512-0XDqGYVBgWxUquFaIptW2bYSIu6jOs1BtkvRTWDDhw4zyEdp6q4eaMvqdSap1CG+7wM5jeLCi6z94wS0AuiuwA== +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: - "@lerna/command" "3.21.0" - "@lerna/output" "3.13.0" - envinfo "^7.3.1" + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" -"@lerna/init@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/init/-/init-3.21.0.tgz#1e810934dc8bf4e5386c031041881d3b4096aa5c" - integrity sha512-6CM0z+EFUkFfurwdJCR+LQQF6MqHbYDCBPyhu/d086LRf58GtYZYj49J8mKG9ktayp/TOIxL/pKKjgLD8QBPOg== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/command" "3.21.0" - fs-extra "^8.1.0" - p-map "^2.1.0" - write-json-file "^3.2.0" +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@lerna/link@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/link/-/link-3.21.0.tgz#8be68ff0ccee104b174b5bbd606302c2f06e9d9b" - integrity sha512-tGu9GxrX7Ivs+Wl3w1+jrLi1nQ36kNI32dcOssij6bg0oZ2M2MDEFI9UF2gmoypTaN9uO5TSsjCFS7aR79HbdQ== +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== dependencies: - "@lerna/command" "3.21.0" - "@lerna/package-graph" "3.18.5" - "@lerna/symlink-dependencies" "3.17.0" - p-map "^2.1.0" - slash "^2.0.0" + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" -"@lerna/list@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/list/-/list-3.21.0.tgz#42f76fafa56dea13b691ec8cab13832691d61da2" - integrity sha512-KehRjE83B1VaAbRRkRy6jLX1Cin8ltsrQ7FHf2bhwhRHK0S54YuA6LOoBnY/NtA8bHDX/Z+G5sMY78X30NS9tg== - dependencies: - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/listable" "3.18.5" - "@lerna/output" "3.13.0" - -"@lerna/listable@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/listable/-/listable-3.18.5.tgz#e82798405b5ed8fc51843c8ef1e7a0e497388a1a" - integrity sha512-Sdr3pVyaEv5A7ZkGGYR7zN+tTl2iDcinryBPvtuv20VJrXBE8wYcOks1edBTcOWsPjCE/rMP4bo1pseyk3UTsg== - dependencies: - "@lerna/query-graph" "3.18.5" - chalk "^2.3.1" - columnify "^1.5.4" - -"@lerna/log-packed@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/log-packed/-/log-packed-3.16.0.tgz#f83991041ee77b2495634e14470b42259fd2bc16" - integrity sha512-Fp+McSNBV/P2mnLUYTaSlG8GSmpXM7krKWcllqElGxvAqv6chk2K3c2k80MeVB4WvJ9tRjUUf+i7HUTiQ9/ckQ== - dependencies: - byte-size "^5.0.1" - columnify "^1.5.4" - has-unicode "^2.0.1" - npmlog "^4.1.2" +"@npmcli/arborist@6.2.3": + version "6.2.3" + resolved "https://registry.yarnpkg.com/@npmcli/arborist/-/arborist-6.2.3.tgz#31f8aed2588341864d3811151d929c01308f8e71" + integrity sha512-lpGOC2ilSJXcc2zfW9QtukcCTcMbl3fVI0z4wvFB2AFIl0C+Q6Wv7ccrpdrQa8rvJ1ZVuc6qkX7HVTyKlzGqKA== + dependencies: + "@isaacs/string-locale-compare" "^1.1.0" + "@npmcli/fs" "^3.1.0" + "@npmcli/installed-package-contents" "^2.0.0" + "@npmcli/map-workspaces" "^3.0.2" + "@npmcli/metavuln-calculator" "^5.0.0" + "@npmcli/name-from-folder" "^2.0.0" + "@npmcli/node-gyp" "^3.0.0" + "@npmcli/package-json" "^3.0.0" + "@npmcli/query" "^3.0.0" + "@npmcli/run-script" "^6.0.0" + bin-links "^4.0.1" + cacache "^17.0.4" + common-ancestor-path "^1.0.1" + hosted-git-info "^6.1.1" + json-parse-even-better-errors "^3.0.0" + json-stringify-nice "^1.1.4" + minimatch "^6.1.6" + nopt "^7.0.0" + npm-install-checks "^6.0.0" + npm-package-arg "^10.1.0" + npm-pick-manifest "^8.0.1" + npm-registry-fetch "^14.0.3" + npmlog "^7.0.1" + pacote "^15.0.8" + parse-conflict-json "^3.0.0" + proc-log "^3.0.0" + promise-all-reject-late "^1.0.0" + promise-call-limit "^1.0.1" + read-package-json-fast "^3.0.2" + semver "^7.3.7" + ssri "^10.0.1" + treeverse "^3.0.0" + walk-up-path "^1.0.0" -"@lerna/npm-conf@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/npm-conf/-/npm-conf-3.16.0.tgz#1c10a89ae2f6c2ee96962557738685300d376827" - integrity sha512-HbO3DUrTkCAn2iQ9+FF/eisDpWY5POQAOF1m7q//CZjdC2HSW3UYbKEGsSisFxSfaF9Z4jtrV+F/wX6qWs3CuA== +"@npmcli/fs@^2.1.0": + version "2.1.2" + resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-2.1.2.tgz#a9e2541a4a2fec2e69c29b35e6060973da79b865" + integrity sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ== dependencies: - config-chain "^1.1.11" - pify "^4.0.1" - -"@lerna/npm-dist-tag@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/npm-dist-tag/-/npm-dist-tag-3.18.5.tgz#9ef9abb7c104077b31f6fab22cc73b314d54ac55" - integrity sha512-xw0HDoIG6HreVsJND9/dGls1c+lf6vhu7yJoo56Sz5bvncTloYGLUppIfDHQr4ZvmPCK8rsh0euCVh2giPxzKQ== - dependencies: - "@evocateur/npm-registry-fetch" "^4.0.0" - "@lerna/otplease" "3.18.5" - figgy-pudding "^3.5.1" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - -"@lerna/npm-install@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/npm-install/-/npm-install-3.16.5.tgz#d6bfdc16f81285da66515ae47924d6e278d637d3" - integrity sha512-hfiKk8Eku6rB9uApqsalHHTHY+mOrrHeWEs+gtg7+meQZMTS3kzv4oVp5cBZigndQr3knTLjwthT/FX4KvseFg== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/get-npm-exec-opts" "3.13.0" - fs-extra "^8.1.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - signal-exit "^3.0.2" - write-pkg "^3.1.0" - -"@lerna/npm-publish@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/npm-publish/-/npm-publish-3.18.5.tgz#240e4039959fd9816b49c5b07421e11b5cb000af" - integrity sha512-3etLT9+2L8JAx5F8uf7qp6iAtOLSMj+ZYWY6oUgozPi/uLqU0/gsMsEXh3F0+YVW33q0M61RpduBoAlOOZnaTg== - dependencies: - "@evocateur/libnpmpublish" "^1.2.2" - "@lerna/otplease" "3.18.5" - "@lerna/run-lifecycle" "3.16.2" - figgy-pudding "^3.5.1" - fs-extra "^8.1.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - pify "^4.0.1" - read-package-json "^2.0.13" - -"@lerna/npm-run-script@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/npm-run-script/-/npm-run-script-3.16.5.tgz#9c2ec82453a26c0b46edc0bb7c15816c821f5c15" - integrity sha512-1asRi+LjmVn3pMjEdpqKJZFT/3ZNpb+VVeJMwrJaV/3DivdNg7XlPK9LTrORuKU4PSvhdEZvJmSlxCKyDpiXsQ== - dependencies: - "@lerna/child-process" "3.16.5" - "@lerna/get-npm-exec-opts" "3.13.0" - npmlog "^4.1.2" - -"@lerna/otplease@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/otplease/-/otplease-3.18.5.tgz#b77b8e760b40abad9f7658d988f3ea77d4fd0231" - integrity sha512-S+SldXAbcXTEDhzdxYLU0ZBKuYyURP/ND2/dK6IpKgLxQYh/z4ScljPDMyKymmEvgiEJmBsPZAAPfmNPEzxjog== - dependencies: - "@lerna/prompt" "3.18.5" - figgy-pudding "^3.5.1" - -"@lerna/output@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/output/-/output-3.13.0.tgz#3ded7cc908b27a9872228a630d950aedae7a4989" - integrity sha512-7ZnQ9nvUDu/WD+bNsypmPG5MwZBwu86iRoiW6C1WBuXXDxM5cnIAC1m2WxHeFnjyMrYlRXM9PzOQ9VDD+C15Rg== - dependencies: - npmlog "^4.1.2" - -"@lerna/pack-directory@3.16.4": - version "3.16.4" - resolved "https://registry.yarnpkg.com/@lerna/pack-directory/-/pack-directory-3.16.4.tgz#3eae5f91bdf5acfe0384510ed53faddc4c074693" - integrity sha512-uxSF0HZeGyKaaVHz5FroDY9A5NDDiCibrbYR6+khmrhZtY0Bgn6hWq8Gswl9iIlymA+VzCbshWIMX4o2O8C8ng== - dependencies: - "@lerna/get-packed" "3.16.0" - "@lerna/package" "3.16.0" - "@lerna/run-lifecycle" "3.16.2" - figgy-pudding "^3.5.1" - npm-packlist "^1.4.4" - npmlog "^4.1.2" - tar "^4.4.10" - temp-write "^3.4.0" - -"@lerna/package-graph@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/package-graph/-/package-graph-3.18.5.tgz#c740e2ea3578d059e551633e950690831b941f6b" - integrity sha512-8QDrR9T+dBegjeLr+n9WZTVxUYUhIUjUgZ0gvNxUBN8S1WB9r6H5Yk56/MVaB64tA3oGAN9IIxX6w0WvTfFudA== - dependencies: - "@lerna/prerelease-id-from-version" "3.16.0" - "@lerna/validation-error" "3.13.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - semver "^6.2.0" - -"@lerna/package@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/package/-/package-3.16.0.tgz#7e0a46e4697ed8b8a9c14d59c7f890e0d38ba13c" - integrity sha512-2lHBWpaxcBoiNVbtyLtPUuTYEaB/Z+eEqRS9duxpZs6D+mTTZMNy6/5vpEVSCBmzvdYpyqhqaYjjSLvjjr5Riw== - dependencies: - load-json-file "^5.3.0" - npm-package-arg "^6.1.0" - write-pkg "^3.1.0" - -"@lerna/prerelease-id-from-version@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/prerelease-id-from-version/-/prerelease-id-from-version-3.16.0.tgz#b24bfa789f5e1baab914d7b08baae9b7bd7d83a1" - integrity sha512-qZyeUyrE59uOK8rKdGn7jQz+9uOpAaF/3hbslJVFL1NqF9ELDTqjCPXivuejMX/lN4OgD6BugTO4cR7UTq/sZA== - dependencies: - semver "^6.2.0" - -"@lerna/profiler@3.20.0": - version "3.20.0" - resolved "https://registry.yarnpkg.com/@lerna/profiler/-/profiler-3.20.0.tgz#0f6dc236f4ea8f9ea5f358c6703305a4f32ad051" - integrity sha512-bh8hKxAlm6yu8WEOvbLENm42i2v9SsR4WbrCWSbsmOElx3foRnMlYk7NkGECa+U5c3K4C6GeBbwgqs54PP7Ljg== - dependencies: - figgy-pudding "^3.5.1" - fs-extra "^8.1.0" - npmlog "^4.1.2" - upath "^1.2.0" + "@gar/promisify" "^1.1.3" + semver "^7.3.5" -"@lerna/project@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/project/-/project-3.21.0.tgz#5d784d2d10c561a00f20320bcdb040997c10502d" - integrity sha512-xT1mrpET2BF11CY32uypV2GPtPVm6Hgtha7D81GQP9iAitk9EccrdNjYGt5UBYASl4CIDXBRxwmTTVGfrCx82A== +"@npmcli/fs@^3.1.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-3.1.1.tgz#59cdaa5adca95d135fc00f2bb53f5771575ce726" + integrity sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg== dependencies: - "@lerna/package" "3.16.0" - "@lerna/validation-error" "3.13.0" - cosmiconfig "^5.1.0" - dedent "^0.7.0" - dot-prop "^4.2.0" - glob-parent "^5.0.0" - globby "^9.2.0" - load-json-file "^5.3.0" - npmlog "^4.1.2" - p-map "^2.1.0" - resolve-from "^4.0.0" - write-json-file "^3.2.0" - -"@lerna/prompt@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/prompt/-/prompt-3.18.5.tgz#628cd545f225887d060491ab95df899cfc5218a1" - integrity sha512-rkKj4nm1twSbBEb69+Em/2jAERK8htUuV8/xSjN0NPC+6UjzAwY52/x9n5cfmpa9lyKf/uItp7chCI7eDmNTKQ== - dependencies: - inquirer "^6.2.0" - npmlog "^4.1.2" - -"@lerna/publish@3.22.1": - version "3.22.1" - resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-3.22.1.tgz#b4f7ce3fba1e9afb28be4a1f3d88222269ba9519" - integrity sha512-PG9CM9HUYDreb1FbJwFg90TCBQooGjj+n/pb3gw/eH5mEDq0p8wKdLFe0qkiqUkm/Ub5C8DbVFertIo0Vd0zcw== - dependencies: - "@evocateur/libnpmaccess" "^3.1.2" - "@evocateur/npm-registry-fetch" "^4.0.0" - "@evocateur/pacote" "^9.6.3" - "@lerna/check-working-tree" "3.16.5" - "@lerna/child-process" "3.16.5" - "@lerna/collect-updates" "3.20.0" - "@lerna/command" "3.21.0" - "@lerna/describe-ref" "3.16.5" - "@lerna/log-packed" "3.16.0" - "@lerna/npm-conf" "3.16.0" - "@lerna/npm-dist-tag" "3.18.5" - "@lerna/npm-publish" "3.18.5" - "@lerna/otplease" "3.18.5" - "@lerna/output" "3.13.0" - "@lerna/pack-directory" "3.16.4" - "@lerna/prerelease-id-from-version" "3.16.0" - "@lerna/prompt" "3.18.5" - "@lerna/pulse-till-done" "3.13.0" - "@lerna/run-lifecycle" "3.16.2" - "@lerna/run-topologically" "3.18.5" - "@lerna/validation-error" "3.13.0" - "@lerna/version" "3.22.1" - figgy-pudding "^3.5.1" - fs-extra "^8.1.0" - npm-package-arg "^6.1.0" - npmlog "^4.1.2" - p-finally "^1.0.0" - p-map "^2.1.0" - p-pipe "^1.2.0" - semver "^6.2.0" + semver "^7.3.5" -"@lerna/pulse-till-done@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/pulse-till-done/-/pulse-till-done-3.13.0.tgz#c8e9ce5bafaf10d930a67d7ed0ccb5d958fe0110" - integrity sha512-1SOHpy7ZNTPulzIbargrgaJX387csN7cF1cLOGZiJQA6VqnS5eWs2CIrG8i8wmaUavj2QlQ5oEbRMVVXSsGrzA== +"@npmcli/git@^4.0.0", "@npmcli/git@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-4.1.0.tgz#ab0ad3fd82bc4d8c1351b6c62f0fa56e8fe6afa6" + integrity sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ== dependencies: - npmlog "^4.1.2" + "@npmcli/promise-spawn" "^6.0.0" + lru-cache "^7.4.4" + npm-pick-manifest "^8.0.0" + proc-log "^3.0.0" + promise-inflight "^1.0.1" + promise-retry "^2.0.1" + semver "^7.3.5" + which "^3.0.0" -"@lerna/query-graph@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/query-graph/-/query-graph-3.18.5.tgz#df4830bb5155273003bf35e8dda1c32d0927bd86" - integrity sha512-50Lf4uuMpMWvJ306be3oQDHrWV42nai9gbIVByPBYJuVW8dT8O8pA3EzitNYBUdLL9/qEVbrR0ry1HD7EXwtRA== +"@npmcli/installed-package-contents@^2.0.0", "@npmcli/installed-package-contents@^2.0.1": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@npmcli/installed-package-contents/-/installed-package-contents-2.1.0.tgz#63048e5f6e40947a3a88dcbcb4fd9b76fdd37c17" + integrity sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w== dependencies: - "@lerna/package-graph" "3.18.5" - figgy-pudding "^3.5.1" + npm-bundled "^3.0.0" + npm-normalize-package-bin "^3.0.0" -"@lerna/resolve-symlink@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@lerna/resolve-symlink/-/resolve-symlink-3.16.0.tgz#37fc7095fabdbcf317c26eb74e0d0bde8efd2386" - integrity sha512-Ibj5e7njVHNJ/NOqT4HlEgPFPtPLWsO7iu59AM5bJDcAJcR96mLZ7KGVIsS2tvaO7akMEJvt2P+ErwCdloG3jQ== +"@npmcli/map-workspaces@^3.0.2": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@npmcli/map-workspaces/-/map-workspaces-3.0.6.tgz#27dc06c20c35ef01e45a08909cab9cb3da08cea6" + integrity sha512-tkYs0OYnzQm6iIRdfy+LcLBjcKuQCeE5YLb8KnrIlutJfheNaPvPpgoFEyEFgbjzl5PLZ3IA/BWAwRU0eHuQDA== dependencies: - fs-extra "^8.1.0" - npmlog "^4.1.2" - read-cmd-shim "^1.0.1" + "@npmcli/name-from-folder" "^2.0.0" + glob "^10.2.2" + minimatch "^9.0.0" + read-package-json-fast "^3.0.0" -"@lerna/rimraf-dir@3.16.5": - version "3.16.5" - resolved "https://registry.yarnpkg.com/@lerna/rimraf-dir/-/rimraf-dir-3.16.5.tgz#04316ab5ffd2909657aaf388ea502cb8c2f20a09" - integrity sha512-bQlKmO0pXUsXoF8lOLknhyQjOZsCc0bosQDoX4lujBXSWxHVTg1VxURtWf2lUjz/ACsJVDfvHZbDm8kyBk5okA== +"@npmcli/metavuln-calculator@^5.0.0": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@npmcli/metavuln-calculator/-/metavuln-calculator-5.0.1.tgz#426b3e524c2008bcc82dbc2ef390aefedd643d76" + integrity sha512-qb8Q9wIIlEPj3WeA1Lba91R4ZboPL0uspzV0F9uwP+9AYMVB2zOoa7Pbk12g6D2NHAinSbHh6QYmGuRyHZ874Q== dependencies: - "@lerna/child-process" "3.16.5" - npmlog "^4.1.2" - path-exists "^3.0.0" - rimraf "^2.6.2" + cacache "^17.0.0" + json-parse-even-better-errors "^3.0.0" + pacote "^15.0.0" + semver "^7.3.5" -"@lerna/run-lifecycle@3.16.2": - version "3.16.2" - resolved "https://registry.yarnpkg.com/@lerna/run-lifecycle/-/run-lifecycle-3.16.2.tgz#67b288f8ea964db9ea4fb1fbc7715d5bbb0bce00" - integrity sha512-RqFoznE8rDpyyF0rOJy3+KjZCeTkO8y/OB9orPauR7G2xQ7PTdCpgo7EO6ZNdz3Al+k1BydClZz/j78gNCmL2A== +"@npmcli/move-file@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-2.0.1.tgz#26f6bdc379d87f75e55739bab89db525b06100e4" + integrity sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ== dependencies: - "@lerna/npm-conf" "3.16.0" - figgy-pudding "^3.5.1" - npm-lifecycle "^3.1.2" - npmlog "^4.1.2" + mkdirp "^1.0.4" + rimraf "^3.0.2" -"@lerna/run-topologically@3.18.5": - version "3.18.5" - resolved "https://registry.yarnpkg.com/@lerna/run-topologically/-/run-topologically-3.18.5.tgz#3cd639da20e967d7672cb88db0f756b92f2fdfc3" - integrity sha512-6N1I+6wf4hLOnPW+XDZqwufyIQ6gqoPfHZFkfWlvTQ+Ue7CuF8qIVQ1Eddw5HKQMkxqN10thKOFfq/9NQZ4NUg== - dependencies: - "@lerna/query-graph" "3.18.5" - figgy-pudding "^3.5.1" - p-queue "^4.0.0" +"@npmcli/name-from-folder@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz#c44d3a7c6d5c184bb6036f4d5995eee298945815" + integrity sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg== -"@lerna/run@3.21.0": - version "3.21.0" - resolved "https://registry.yarnpkg.com/@lerna/run/-/run-3.21.0.tgz#2a35ec84979e4d6e42474fe148d32e5de1cac891" - integrity sha512-fJF68rT3veh+hkToFsBmUJ9MHc9yGXA7LSDvhziAojzOb0AI/jBDp6cEcDQyJ7dbnplba2Lj02IH61QUf9oW0Q== - dependencies: - "@lerna/command" "3.21.0" - "@lerna/filter-options" "3.20.0" - "@lerna/npm-run-script" "3.16.5" - "@lerna/output" "3.13.0" - "@lerna/profiler" "3.20.0" - "@lerna/run-topologically" "3.18.5" - "@lerna/timer" "3.13.0" - "@lerna/validation-error" "3.13.0" - p-map "^2.1.0" - -"@lerna/symlink-binary@3.17.0": - version "3.17.0" - resolved "https://registry.yarnpkg.com/@lerna/symlink-binary/-/symlink-binary-3.17.0.tgz#8f8031b309863814883d3f009877f82e38aef45a" - integrity sha512-RLpy9UY6+3nT5J+5jkM5MZyMmjNHxZIZvXLV+Q3MXrf7Eaa1hNqyynyj4RO95fxbS+EZc4XVSk25DGFQbcRNSQ== - dependencies: - "@lerna/create-symlink" "3.16.2" - "@lerna/package" "3.16.0" - fs-extra "^8.1.0" - p-map "^2.1.0" - -"@lerna/symlink-dependencies@3.17.0": - version "3.17.0" - resolved "https://registry.yarnpkg.com/@lerna/symlink-dependencies/-/symlink-dependencies-3.17.0.tgz#48d6360e985865a0e56cd8b51b308a526308784a" - integrity sha512-KmjU5YT1bpt6coOmdFueTJ7DFJL4H1w5eF8yAQ2zsGNTtZ+i5SGFBWpb9AQaw168dydc3s4eu0W0Sirda+F59Q== - dependencies: - "@lerna/create-symlink" "3.16.2" - "@lerna/resolve-symlink" "3.16.0" - "@lerna/symlink-binary" "3.17.0" - fs-extra "^8.1.0" - p-finally "^1.0.0" - p-map "^2.1.0" - p-map-series "^1.0.0" - -"@lerna/timer@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/timer/-/timer-3.13.0.tgz#bcd0904551db16e08364d6c18e5e2160fc870781" - integrity sha512-RHWrDl8U4XNPqY5MQHkToWS9jHPnkLZEt5VD+uunCKTfzlxGnRCr3/zVr8VGy/uENMYpVP3wJa4RKGY6M0vkRw== - -"@lerna/validation-error@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/validation-error/-/validation-error-3.13.0.tgz#c86b8f07c5ab9539f775bd8a54976e926f3759c3" - integrity sha512-SiJP75nwB8GhgwLKQfdkSnDufAaCbkZWJqEDlKOUPUvVOplRGnfL+BPQZH5nvq2BYSRXsksXWZ4UHVnQZI/HYA== - dependencies: - npmlog "^4.1.2" - -"@lerna/version@3.22.1": - version "3.22.1" - resolved "https://registry.yarnpkg.com/@lerna/version/-/version-3.22.1.tgz#9805a9247a47ee62d6b81bd9fa5fb728b24b59e2" - integrity sha512-PSGt/K1hVqreAFoi3zjD0VEDupQ2WZVlVIwesrE5GbrL2BjXowjCsTDPqblahDUPy0hp6h7E2kG855yLTp62+g== - dependencies: - "@lerna/check-working-tree" "3.16.5" - "@lerna/child-process" "3.16.5" - "@lerna/collect-updates" "3.20.0" - "@lerna/command" "3.21.0" - "@lerna/conventional-commits" "3.22.0" - "@lerna/github-client" "3.22.0" - "@lerna/gitlab-client" "3.15.0" - "@lerna/output" "3.13.0" - "@lerna/prerelease-id-from-version" "3.16.0" - "@lerna/prompt" "3.18.5" - "@lerna/run-lifecycle" "3.16.2" - "@lerna/run-topologically" "3.18.5" - "@lerna/validation-error" "3.13.0" - chalk "^2.3.1" - dedent "^0.7.0" - load-json-file "^5.3.0" - minimatch "^3.0.4" - npmlog "^4.1.2" - p-map "^2.1.0" - p-pipe "^1.2.0" - p-reduce "^1.0.0" - p-waterfall "^1.0.0" - semver "^6.2.0" - slash "^2.0.0" - temp-write "^3.4.0" - write-json-file "^3.2.0" +"@npmcli/node-gyp@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-2.0.0.tgz#8c20e53e34e9078d18815c1d2dda6f2420d75e35" + integrity sha512-doNI35wIe3bBaEgrlPfdJPaCpUR89pJWep4Hq3aRdh6gKazIVWfs0jHttvSSoq47ZXgC7h73kDsUl8AoIQUB+A== -"@lerna/write-log-file@3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@lerna/write-log-file/-/write-log-file-3.13.0.tgz#b78d9e4cfc1349a8be64d91324c4c8199e822a26" - integrity sha512-RibeMnDPvlL8bFYW5C8cs4mbI3AHfQef73tnJCQ/SgrXZHehmHnsyWUiE7qDQCAo+B1RfTapvSyFF69iPj326A== - dependencies: - npmlog "^4.1.2" - write-file-atomic "^2.3.0" +"@npmcli/node-gyp@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz#101b2d0490ef1aa20ed460e4c0813f0db560545a" + integrity sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA== -"@mrmlnc/readdir-enhanced@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" - integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== +"@npmcli/package-json@^3.0.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-3.1.1.tgz#5628332aac90fa1b4d6f98e03988c5958b35e0c5" + integrity sha512-+UW0UWOYFKCkvszLoTwrYGrjNrT8tI5Ckeb/h+Z1y1fsNJEctl7HmerA5j2FgmoqFaLI2gsA1X9KgMFqx/bRmA== dependencies: - call-me-maybe "^1.0.1" - glob-to-regexp "^0.3.0" - -"@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3": - version "2.1.8-no-fsevents.3" - resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz#323d72dd25103d0c4fbdce89dadf574a787b1f9b" - integrity sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ== + "@npmcli/git" "^4.1.0" + glob "^10.2.2" + json-parse-even-better-errors "^3.0.0" + normalize-package-data "^5.0.0" + npm-normalize-package-bin "^3.0.1" + proc-log "^3.0.0" -"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": - version "5.1.1-v1" - resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" - integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== +"@npmcli/promise-spawn@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-3.0.0.tgz#53283b5f18f855c6925f23c24e67c911501ef573" + integrity sha512-s9SgS+p3a9Eohe68cSI3fi+hpcZUmXq5P7w0kMlAsWVtR7XbK3ptkZqKT2cK1zLDObJ3sR+8P59sJE0w/KTL1g== dependencies: - eslint-scope "5.1.1" + infer-owner "^1.0.4" -"@noble/hashes@^1", "@noble/hashes@^1.0.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" - integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== +"@npmcli/promise-spawn@^6.0.0", "@npmcli/promise-spawn@^6.0.1": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz#c8bc4fa2bd0f01cb979d8798ba038f314cfa70f2" + integrity sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg== + dependencies: + which "^3.0.0" -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== +"@npmcli/query@^3.0.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@npmcli/query/-/query-3.1.0.tgz#bc202c59e122a06cf8acab91c795edda2cdad42c" + integrity sha512-C/iR0tk7KSKGldibYIB9x8GtO/0Bd0I2mhOaDb8ucQL/bQVTmGoeREaFj64Z5+iCBRf3dQfed0CjJL7I8iTkiQ== dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" + postcss-selector-parser "^6.0.10" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== +"@npmcli/run-script@4.1.7": + version "4.1.7" + resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-4.1.7.tgz#b1a2f57568eb738e45e9ea3123fb054b400a86f7" + integrity sha512-WXr/MyM4tpKA4BotB81NccGAv8B48lNH0gRoILucbcAhTQXLCoi6HflMV3KdXubIqvP9SuLsFn68Z7r4jl+ppw== + dependencies: + "@npmcli/node-gyp" "^2.0.0" + "@npmcli/promise-spawn" "^3.0.0" + node-gyp "^9.0.0" + read-package-json-fast "^2.0.3" + which "^2.0.2" -"@nodelib/fs.stat@^1.1.2": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" - integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== +"@npmcli/run-script@^6.0.0": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-6.0.2.tgz#a25452d45ee7f7fb8c16dfaf9624423c0c0eb885" + integrity sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA== + dependencies: + "@npmcli/node-gyp" "^3.0.0" + "@npmcli/promise-spawn" "^6.0.0" + node-gyp "^9.0.0" + read-package-json-fast "^3.0.0" + which "^3.0.0" + +"@nrwl/cli@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/cli/-/cli-15.9.7.tgz#1db113f5cb1cfe63213097be1ece041eef33da1f" + integrity sha512-1jtHBDuJzA57My5nLzYiM372mJW0NY6rFKxlWt5a0RLsAZdPTHsd8lE3Gs9XinGC1jhXbruWmhhnKyYtZvX/zA== + dependencies: + nx "15.9.7" + +"@nrwl/devkit@>=15.5.2 < 16": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-15.9.7.tgz#14d19ec82ff4209c12147a97f1cdea05d8f6c087" + integrity sha512-Sb7Am2TMT8AVq8e+vxOlk3AtOA2M0qCmhBzoM1OJbdHaPKc0g0UgSnWRml1kPGg5qfPk72tWclLoZJ5/ut0vTg== + dependencies: + ejs "^3.1.7" + ignore "^5.0.4" + semver "7.5.4" + tmp "~0.2.1" + tslib "^2.3.0" + +"@nrwl/nx-darwin-arm64@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-darwin-arm64/-/nx-darwin-arm64-15.9.7.tgz#a2cb7390c782b8acf3bb8806a3002620226a933d" + integrity sha512-aBUgnhlkrgC0vu0fK6eb9Vob7eFnkuknrK+YzTjmLrrZwj7FGNAeyGXSlyo1dVokIzjVKjJg2saZZ0WQbfuCJw== + +"@nrwl/nx-darwin-x64@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-darwin-x64/-/nx-darwin-x64-15.9.7.tgz#af0437e726aeb97eb660646bfd9a7da5ba7a0a6f" + integrity sha512-L+elVa34jhGf1cmn38Z0sotQatmLovxoASCIw5r1CBZZeJ5Tg7Y9nOwjRiDixZxNN56hPKXm6xl9EKlVHVeKlg== + +"@nrwl/nx-linux-arm-gnueabihf@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-15.9.7.tgz#e29f4d31afa903bfb4d0fd7421e19be1086eae87" + integrity sha512-pqmfqqEUGFu6PmmHKyXyUw1Al0Ki8PSaR0+ndgCAb1qrekVDGDfznJfaqxN0JSLeolPD6+PFtLyXNr9ZyPFlFg== + +"@nrwl/nx-linux-arm64-gnu@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-15.9.7.tgz#eb2880a24d3268dd93583d21a6a0b9ff96bb23b4" + integrity sha512-NYOa/eRrqmM+In5g3M0rrPVIS9Z+q6fvwXJYf/KrjOHqqan/KL+2TOfroA30UhcBrwghZvib7O++7gZ2hzwOnA== + +"@nrwl/nx-linux-arm64-musl@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm64-musl/-/nx-linux-arm64-musl-15.9.7.tgz#5d04913c4672a96cefa78491824620d8a8bcfd7f" + integrity sha512-zyStqjEcmbvLbejdTOrLUSEdhnxNtdQXlmOuymznCzYUEGRv+4f7OAepD3yRoR0a/57SSORZmmGQB7XHZoYZJA== + +"@nrwl/nx-linux-x64-gnu@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-x64-gnu/-/nx-linux-x64-gnu-15.9.7.tgz#cf7f61fd87f35a793e6824952a6eb12242fe43fd" + integrity sha512-saNK5i2A8pKO3Il+Ejk/KStTApUpWgCxjeUz9G+T8A+QHeDloZYH2c7pU/P3jA9QoNeKwjVO9wYQllPL9loeVg== + +"@nrwl/nx-linux-x64-musl@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-x64-musl/-/nx-linux-x64-musl-15.9.7.tgz#2bec23c3696780540eb47fa1358dda780c84697f" + integrity sha512-extIUThYN94m4Vj4iZggt6hhMZWQSukBCo8pp91JHnDcryBg7SnYmnikwtY1ZAFyyRiNFBLCKNIDFGkKkSrZ9Q== + +"@nrwl/nx-win32-arm64-msvc@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-15.9.7.tgz#21b56ef3ab4190370effea71bd83fdc3e47ec69c" + integrity sha512-GSQ54hJ5AAnKZb4KP4cmBnJ1oC4ILxnrG1mekxeM65c1RtWg9NpBwZ8E0gU3xNrTv8ZNsBeKi/9UhXBxhsIh8A== + +"@nrwl/nx-win32-x64-msvc@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-win32-x64-msvc/-/nx-win32-x64-msvc-15.9.7.tgz#1677ab1dcce921706b5677dc2844e3e0027f8bd5" + integrity sha512-x6URof79RPd8AlapVbPefUD3ynJZpmah3tYaYZ9xZRMXojVtEHV8Qh5vysKXQ1rNYJiiB8Ah6evSKWLbAH60tw== + +"@nrwl/tao@15.9.7": + version "15.9.7" + resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-15.9.7.tgz#c0e78c99caa6742762f7558f20d8524bc9015e97" + integrity sha512-OBnHNvQf3vBH0qh9YnvBQQWyyFZ+PWguF6dJ8+1vyQYlrLVk/XZ8nJ4ukWFb+QfPv/O8VBmqaofaOI9aFC4yTw== + dependencies: + nx "15.9.7" + +"@octokit/auth-token@^3.0.0": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-3.0.4.tgz#70e941ba742bdd2b49bdb7393e821dea8520a3db" + integrity sha512-TWFX7cZF2LXoCvdmJWY7XVPi74aSY0+FfBZNSXEXFkMpjcqsQwDSYVv5FhRFaI0V1ECnwbz4j59T/G+rXNWaIQ== -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" +"@octokit/core@^4.0.0": + version "4.2.4" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-4.2.4.tgz#d8769ec2b43ff37cc3ea89ec4681a20ba58ef907" + integrity sha512-rYKilwgzQ7/imScn3M9/pFfUf4I1AZEH3KhyJmtPdE2zfaXAn2mFfUy4FbKewzc2We5y/LlKLj36fWJLKC2SIQ== + dependencies: + "@octokit/auth-token" "^3.0.0" + "@octokit/graphql" "^5.0.0" + "@octokit/request" "^6.0.0" + "@octokit/request-error" "^3.0.0" + "@octokit/types" "^9.0.0" + before-after-hook "^2.2.0" + universal-user-agent "^6.0.0" -"@octokit/auth-token@^2.4.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" - integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== +"@octokit/endpoint@^7.0.0": + version "7.0.6" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-7.0.6.tgz#791f65d3937555141fb6c08f91d618a7d645f1e2" + integrity sha512-5L4fseVRUsDFGR00tMWD/Trdeeihn999rTMGRMC1G/Ldi1uWlWJzI98H4Iak5DB/RVvQuyMYKqSK/R6mbSOQyg== dependencies: - "@octokit/types" "^6.0.3" + "@octokit/types" "^9.0.0" + is-plain-object "^5.0.0" + universal-user-agent "^6.0.0" -"@octokit/endpoint@^6.0.1": - version "6.0.12" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658" - integrity sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA== +"@octokit/graphql@^5.0.0": + version "5.0.6" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-5.0.6.tgz#9eac411ac4353ccc5d3fca7d76736e6888c5d248" + integrity sha512-Fxyxdy/JH0MnIB5h+UQ3yCoh1FG4kWXfFKkpWqjZHw/p+Kc8Y44Hu/kCgNBT6nU1shNumEchmW/sUO1JuQnPcw== dependencies: - "@octokit/types" "^6.0.3" - is-plain-object "^5.0.0" + "@octokit/request" "^6.0.0" + "@octokit/types" "^9.0.0" universal-user-agent "^6.0.0" "@octokit/openapi-types@^12.11.0": @@ -4001,102 +3858,111 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.11.0.tgz#da5638d64f2b919bca89ce6602d059f1b52d3ef0" integrity sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ== -"@octokit/plugin-enterprise-rest@^6.0.1": +"@octokit/openapi-types@^14.0.0": + version "14.0.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-14.0.0.tgz#949c5019028c93f189abbc2fb42f333290f7134a" + integrity sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw== + +"@octokit/openapi-types@^18.0.0": + version "18.1.1" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-18.1.1.tgz#09bdfdabfd8e16d16324326da5148010d765f009" + integrity sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw== + +"@octokit/plugin-enterprise-rest@6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-6.0.1.tgz#e07896739618dab8da7d4077c658003775f95437" integrity sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw== -"@octokit/plugin-paginate-rest@^1.1.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz#004170acf8c2be535aba26727867d692f7b488fc" - integrity sha512-jbsSoi5Q1pj63sC16XIUboklNw+8tL9VOnJsWycWYR78TKss5PVpIPb1TUUcMQ+bBh7cY579cVAWmf5qG+dw+Q== +"@octokit/plugin-paginate-rest@^3.0.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-3.1.0.tgz#86f8be759ce2d6d7c879a31490fd2f7410b731f0" + integrity sha512-+cfc40pMzWcLkoDcLb1KXqjX0jTGYXjKuQdFQDc6UAknISJHnZTiBqld6HDwRJvD4DsouDKrWXNbNV0lE/3AXA== dependencies: - "@octokit/types" "^2.0.1" + "@octokit/types" "^6.41.0" -"@octokit/plugin-request-log@^1.0.0": +"@octokit/plugin-request-log@^1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== -"@octokit/plugin-rest-endpoint-methods@2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz#3288ecf5481f68c494dd0602fc15407a59faf61e" - integrity sha512-EZi/AWhtkdfAYi01obpX0DF7U6b1VRr30QNQ5xSFPITMdLSfhcBqjamE3F+sKcxPbD7eZuMHu3Qkk2V+JGxBDQ== +"@octokit/plugin-rest-endpoint-methods@^6.0.0": + version "6.8.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.8.1.tgz#97391fda88949eb15f68dc291957ccbe1d3e8ad1" + integrity sha512-QrlaTm8Lyc/TbU7BL/8bO49vp+RZ6W3McxxmmQTgYxf2sWkO8ZKuj4dLhPNJD6VCUW1hetCmeIM0m6FTVpDiEg== dependencies: - "@octokit/types" "^2.0.1" + "@octokit/types" "^8.1.1" deprecation "^2.3.1" -"@octokit/request-error@^1.0.2": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801" - integrity sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA== - dependencies: - "@octokit/types" "^2.0.0" - deprecation "^2.0.0" - once "^1.4.0" - -"@octokit/request-error@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" - integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg== +"@octokit/request-error@^3.0.0": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-3.0.3.tgz#ef3dd08b8e964e53e55d471acfe00baa892b9c69" + integrity sha512-crqw3V5Iy2uOU5Np+8M/YexTlT8zxCfI+qu+LxUB7SZpje4Qmx3mub5DfEKSO8Ylyk0aogi6TYdf6kxzh2BguQ== dependencies: - "@octokit/types" "^6.0.3" + "@octokit/types" "^9.0.0" deprecation "^2.0.0" once "^1.4.0" -"@octokit/request@^5.2.0": - version "5.6.3" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0" - integrity sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A== +"@octokit/request@^6.0.0": + version "6.2.8" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-6.2.8.tgz#aaf480b32ab2b210e9dadd8271d187c93171d8eb" + integrity sha512-ow4+pkVQ+6XVVsekSYBzJC0VTVvh/FCTUUgTsboGq+DTeWdyIFV8WSCdo0RIxk6wSkBTHqIK1mYuY7nOBXOchw== dependencies: - "@octokit/endpoint" "^6.0.1" - "@octokit/request-error" "^2.1.0" - "@octokit/types" "^6.16.1" + "@octokit/endpoint" "^7.0.0" + "@octokit/request-error" "^3.0.0" + "@octokit/types" "^9.0.0" is-plain-object "^5.0.0" node-fetch "^2.6.7" universal-user-agent "^6.0.0" -"@octokit/rest@^16.28.4": - version "16.43.2" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.43.2.tgz#c53426f1e1d1044dee967023e3279c50993dd91b" - integrity sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ== - dependencies: - "@octokit/auth-token" "^2.4.0" - "@octokit/plugin-paginate-rest" "^1.1.1" - "@octokit/plugin-request-log" "^1.0.0" - "@octokit/plugin-rest-endpoint-methods" "2.4.0" - "@octokit/request" "^5.2.0" - "@octokit/request-error" "^1.0.2" - atob-lite "^2.0.0" - before-after-hook "^2.0.0" - btoa-lite "^1.0.0" - deprecation "^2.0.0" - lodash.get "^4.4.2" - lodash.set "^4.3.2" - lodash.uniq "^4.5.0" - octokit-pagination-methods "^1.1.0" - once "^1.4.0" - universal-user-agent "^4.0.0" - -"@octokit/types@^2.0.0", "@octokit/types@^2.0.1": - version "2.16.2" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.16.2.tgz#4c5f8da3c6fecf3da1811aef678fda03edac35d2" - integrity sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q== +"@octokit/rest@19.0.3": + version "19.0.3" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-19.0.3.tgz#b9a4e8dc8d53e030d611c053153ee6045f080f02" + integrity sha512-5arkTsnnRT7/sbI4fqgSJ35KiFaN7zQm0uQiQtivNQLI8RQx8EHwJCajcTUwmaCMNDg7tdCvqAnc7uvHHPxrtQ== dependencies: - "@types/node" ">= 8" + "@octokit/core" "^4.0.0" + "@octokit/plugin-paginate-rest" "^3.0.0" + "@octokit/plugin-request-log" "^1.0.4" + "@octokit/plugin-rest-endpoint-methods" "^6.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1": +"@octokit/types@^6.41.0": version "6.41.0" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04" integrity sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg== dependencies: "@octokit/openapi-types" "^12.11.0" +"@octokit/types@^8.1.1": + version "8.2.1" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-8.2.1.tgz#a6de091ae68b5541f8d4fcf9a12e32836d4648aa" + integrity sha512-8oWMUji8be66q2B9PmEIUyQm00VPDPun07umUWSaCwxmeaquFBro4Hcc3ruVoDo3zkQyZBlRvhIMEYS3pBhanw== + dependencies: + "@octokit/openapi-types" "^14.0.0" + +"@octokit/types@^9.0.0": + version "9.3.2" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-9.3.2.tgz#3f5f89903b69f6a2d196d78ec35f888c0013cac5" + integrity sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA== + dependencies: + "@octokit/openapi-types" "^18.0.0" + +"@parcel/watcher@2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@parcel/watcher/-/watcher-2.0.4.tgz#f300fef4cc38008ff4b8c29d92588eced3ce014b" + integrity sha512-cTDi+FUDBIUOBKEtj+nhiJ71AZVlkAsQFuGQTun5tV9mwQBQgZvhCzG+URPQc8myeN32yRVZEfVAPCs1RW+Jvg== + dependencies: + node-addon-api "^3.2.1" + node-gyp-build "^4.3.0" + "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== +"@pkgr/core@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31" + integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA== + "@pmmmwh/react-refresh-webpack-plugin@^0.5.3": version "0.5.10" resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz#2eba163b8e7dbabb4ce3609ab5e32ab63dda3ef8" @@ -4165,6 +4031,87 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== +"@protobufs/amino@^0.0.11": + version "0.0.11" + resolved "https://registry.yarnpkg.com/@protobufs/amino/-/amino-0.0.11.tgz#5eb6b8193da8ea818484818dff2800a981cb7a61" + integrity sha512-JRIkW6/YGIUfbdDuASt3wsuxzC0Xj3U2sV0Arqa9iNwCvv4HtOpbqdWVVVgvQBnR0/ZkwQeXnt+GH7yT/DvsYQ== + dependencies: + "@protobufs/google" "^0.0.10" + +"@protobufs/confio@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@protobufs/confio/-/confio-0.0.6.tgz#a6ddf44eca2cbe535384228312ae7ef5dff29644" + integrity sha512-abZ0ntTJBuB8q2aMBvOerAFk8CSzafB09YdttKFEqwxokZsLFZ3+o7YaH3RIk863oeM//8sonwTaxRV8r4rmSA== + +"@protobufs/cosmos@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@protobufs/cosmos/-/cosmos-0.1.0.tgz#492251de16be3e0a89820f48637cd3f42114f24c" + integrity sha512-L3NZ+z0kI6GMTiD2HASNe3WbopPhQlaQaKZNRue+8LiGEv/vbbxD1lox8cwOqes3AN5dHiT0i3+gvzIbKBb7gw== + dependencies: + "@protobufs/amino" "^0.0.11" + "@protobufs/cosmos_proto" "^0.0.10" + "@protobufs/gogoproto" "^0.0.10" + "@protobufs/google" "^0.0.10" + "@protobufs/tendermint" "^0.0.10" + +"@protobufs/cosmos_proto@^0.0.10": + version "0.0.10" + resolved "https://registry.yarnpkg.com/@protobufs/cosmos_proto/-/cosmos_proto-0.0.10.tgz#622726ee227f220f608df180f938e5d8ebb1534a" + integrity sha512-4nMopXxN23udy1HEe+vS49zD9dxrA7i0E3n15QUz1x0tbrowYLHzJKeyCUNlsh5PKpEIXGxHXpPZWXs7vVCwUw== + dependencies: + "@protobufs/google" "^0.0.10" + +"@protobufs/cosmwasm@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@protobufs/cosmwasm/-/cosmwasm-0.1.1.tgz#313466d02ae7c010f64e6dd6edc06cdc1e676084" + integrity sha512-7rRkQVo7zWjTX+WKdtgM72KEnioGumA7ivYG+3ZGs/uuf8rwN8PmdWFYhLbMkSbPbyJf1bFSyjpP/+kxpH71ew== + dependencies: + "@protobufs/cosmos" "^0.1.0" + "@protobufs/cosmos_proto" "^0.0.10" + "@protobufs/gogoproto" "^0.0.10" + "@protobufs/google" "^0.0.10" + +"@protobufs/gogoproto@^0.0.10": + version "0.0.10" + resolved "https://registry.yarnpkg.com/@protobufs/gogoproto/-/gogoproto-0.0.10.tgz#0181e17142c800b60c7ca5f92c76a614d86c5c54" + integrity sha512-u3eK1aSO3KOuX4RVFpqKPTaT/WLV50GFLuIC3slVGfD7Z1CfZ5ivHbFYUib96gihu1Mq2OZpNVj3dNws9YsVoQ== + dependencies: + "@protobufs/google" "^0.0.10" + +"@protobufs/google@^0.0.10": + version "0.0.10" + resolved "https://registry.yarnpkg.com/@protobufs/google/-/google-0.0.10.tgz#820f741b0c53f688550c74c7ddb25a5ee131a6bf" + integrity sha512-3yo+liabFM1519smwwfzh1C535CntXVsS7zT98xmo21tZUX7vxeFpQDMx38EzMGYSy/Reo8wEMWJUHqZzYsCUw== + +"@protobufs/ibc@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@protobufs/ibc/-/ibc-0.1.0.tgz#36aeadc9f09d185d683f66a650dad9dc40437875" + integrity sha512-GmGkX81yyd55Tm34SCOmcOiB0QRwFBHGmZpDRAsks33TBx4efAtT9rKAdtn/oPujx9sha1TqU2s3trnMPVvKyg== + dependencies: + "@protobufs/amino" "^0.0.11" + "@protobufs/confio" "^0.0.6" + "@protobufs/cosmos" "^0.1.0" + "@protobufs/gogoproto" "^0.0.10" + "@protobufs/google" "^0.0.10" + "@protobufs/tendermint" "^0.0.10" + +"@protobufs/regen@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@protobufs/regen/-/regen-0.1.0.tgz#2c9372d8196027cde3b6ef9ecfaa0c6a55bf8b39" + integrity sha512-of8Wexl4YTzdVyWxoqTvMk7pqf6U8xAtq7/hwtAgh7kMNHAPOkMJ1VEsMnQHLpueDrBfXMoFMlc5oowbZEICuA== + dependencies: + "@protobufs/cosmos" "^0.1.0" + "@protobufs/gogoproto" "^0.0.10" + "@protobufs/google" "^0.0.10" + +"@protobufs/tendermint@^0.0.10": + version "0.0.10" + resolved "https://registry.yarnpkg.com/@protobufs/tendermint/-/tendermint-0.0.10.tgz#816b27410afcecd8b6d403df149f3c2b9b80655e" + integrity sha512-hAAMLFhKdAovslKeWnLTp2gGn5bxSTDVcQLKs4C4cC91R/KfHOh+Klt4PqSGUv/APINAmREzsX2LDUbIQ2dCpg== + dependencies: + "@protobufs/gogoproto" "^0.0.10" + "@protobufs/google" "^0.0.10" + "@pyramation/json-schema-ref-parser@9.0.6": version "9.0.6" resolved "https://registry.yarnpkg.com/@pyramation/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz#556e416ce7dcc15a3c1afd04d6a059e03ed09aeb" @@ -4236,6 +4183,35 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.3.2.tgz#31b9c510d8cada9683549e1dbb4284cca5001faf" integrity sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw== +"@sigstore/bundle@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-1.1.0.tgz#17f8d813b09348b16eeed66a8cf1c3d6bd3d04f1" + integrity sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog== + dependencies: + "@sigstore/protobuf-specs" "^0.2.0" + +"@sigstore/protobuf-specs@^0.2.0": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.2.1.tgz#be9ef4f3c38052c43bd399d3f792c97ff9e2277b" + integrity sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A== + +"@sigstore/sign@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-1.0.0.tgz#6b08ebc2f6c92aa5acb07a49784cb6738796f7b4" + integrity sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA== + dependencies: + "@sigstore/bundle" "^1.1.0" + "@sigstore/protobuf-specs" "^0.2.0" + make-fetch-happen "^11.0.1" + +"@sigstore/tuf@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-1.0.3.tgz#2a65986772ede996485728f027b0514c0b70b160" + integrity sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg== + dependencies: + "@sigstore/protobuf-specs" "^0.2.0" + tuf-js "^1.1.7" + "@sinclair/typebox@^0.24.1": version "0.24.51" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" @@ -4246,6 +4222,11 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718" integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ== +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + "@sinonjs/commons@^1.7.0": version "1.8.6" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.6.tgz#80c516a4dc264c2a69115e7578d62581ff455ed9" @@ -4253,6 +4234,20 @@ dependencies: type-detect "4.0.8" +"@sinonjs/commons@^3.0.0": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.1.tgz#1029357e44ca901a615585f6d27738dbc89084cd" + integrity sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^10.0.2": + version "10.3.0" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66" + integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== + dependencies: + "@sinonjs/commons" "^3.0.0" + "@sinonjs/fake-timers@^8.0.1": version "8.1.0" resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" @@ -4421,6 +4416,11 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== +"@tootallnate/once@2": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" + integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== + "@trysound/sax@0.2.0": version "0.2.0" resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" @@ -4446,6 +4446,19 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== +"@tufjs/canonical-json@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz#eade9fd1f537993bc1f0949f3aea276ecc4fab31" + integrity sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ== + +"@tufjs/models@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-1.0.4.tgz#5a689630f6b9dbda338d4b208019336562f176ef" + integrity sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A== + dependencies: + "@tufjs/canonical-json" "1.0.0" + minimatch "^9.0.0" + "@types/aria-query@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.1.tgz#3286741fb8f1e1580ac28784add4c7a1d49bdfbc" @@ -4560,7 +4573,7 @@ "@types/qs" "*" "@types/serve-static" "*" -"@types/glob@^7.1.1", "@types/glob@^7.1.3": +"@types/glob@^7.1.3": version "7.2.0" resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== @@ -4611,13 +4624,6 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest-expect-message@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@types/jest-expect-message/-/jest-expect-message-1.1.0.tgz#34947da81c92b7fc4c7a41bbd5088b4f97ad2717" - integrity sha512-PbmZ6pTBpJTzj7KdGP8l8qTyf6RA5BVWg0C51XjCb0GuifXVcu3jAR6+U/W47nmE5S3tLPPEo70UcuhSlSS1hg== - dependencies: - jest-expect-message "*" - "@types/jest@*", "@types/jest@^29.5.2": version "29.5.2" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.2.tgz#86b4afc86e3a8f3005b297ed8a72494f89e6395b" @@ -4626,15 +4632,15 @@ expect "^29.0.0" pretty-format "^29.0.0" -"@types/jest@27.0.3": - version "27.0.3" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.3.tgz#0cf9dfe9009e467f70a342f0f94ead19842a783a" - integrity sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg== +"@types/jest@^29.5.11": + version "29.5.13" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.13.tgz#8bc571659f401e6a719a7bf0dbcb8b78c71a8adc" + integrity sha512-wd+MVEZCHt23V0/L642O5APvspWply/rGY5BcW4SUETo2UzPU3Z26qr8jC2qxpimI2jjx9h7+2cj2FwIr01bXg== dependencies: - jest-diff "^27.0.0" - pretty-format "^27.0.0" + expect "^29.0.0" + pretty-format "^29.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.11", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.7", "@types/json-schema@^7.0.8": +"@types/json-schema@*", "@types/json-schema@^7.0.11", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== @@ -4674,6 +4680,11 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca" integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== +"@types/minimatch@^3.0.3": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" + integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ== + "@types/minimist@^1.2.0": version "1.2.2" resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" @@ -4684,16 +4695,18 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.2.tgz#8fd63447e3f99aba6c3168fd2ec4580d5b97886f" integrity sha512-CTO/wa8x+rZU626cL2BlbCDzydgnFNgc19h4YvizpTO88MFQxab8wqisxaofQJ/9bLGugRdWIuX/TbIs6VVF6g== -"@types/node@>= 8": - version "20.3.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.3.3.tgz#329842940042d2b280897150e023e604d11657d6" - integrity sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw== - "@types/node@^18.16.18": version "18.16.18" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.18.tgz#85da09bafb66d4bc14f7c899185336d0c1736390" integrity sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw== +"@types/node@^20.12.7": + version "20.16.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.9.tgz#1217c6cc77c4f3aaf4a6c76fb56b790e81e48120" + integrity sha512-rkvIVJxsOfBejxK7I0FO5sa2WxFmJCzoDwcd88+fq/CUfynNywTo/1/T6hyFz22CyztsnLS9nVlHOnTI36RH5w== + dependencies: + undici-types "~6.19.2" + "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -4837,13 +4850,6 @@ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@types/yargs@^15.0.0": - version "15.0.15" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.15.tgz#e609a2b1ef9e05d90489c2f5f45bbfb2be092158" - integrity sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg== - dependencies: - "@types/yargs-parser" "*" - "@types/yargs@^16.0.0": version "16.0.5" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.5.tgz#12cc86393985735a283e387936398c2f9e5f88e3" @@ -4858,20 +4864,6 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^4.5.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== - dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" - tsutils "^3.21.0" - "@typescript-eslint/eslint-plugin@^5.5.0": version "5.60.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.1.tgz#81382d6ecb92b8dda70e91f9035611cb2fecd1c3" @@ -4888,18 +4880,21 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" - integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== +"@typescript-eslint/eslint-plugin@^7.10.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz#b16d3cf3ee76bf572fdf511e79c248bdec619ea3" + integrity sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw== dependencies: - "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - + "@eslint-community/regexpp" "^4.10.0" + "@typescript-eslint/scope-manager" "7.18.0" + "@typescript-eslint/type-utils" "7.18.0" + "@typescript-eslint/utils" "7.18.0" + "@typescript-eslint/visitor-keys" "7.18.0" + graphemer "^1.4.0" + ignore "^5.3.1" + natural-compare "^1.4.0" + ts-api-utils "^1.3.0" + "@typescript-eslint/experimental-utils@^5.0.0": version "5.60.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.60.1.tgz#d783bb63b9183541019a945eda6a9d96b096d985" @@ -4907,16 +4902,6 @@ dependencies: "@typescript-eslint/utils" "5.60.1" -"@typescript-eslint/parser@^4.5.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== - dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" - "@typescript-eslint/parser@^5.5.0": version "5.60.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.60.1.tgz#0f2f58209c0862a73e3d5a56099abfdfa21d0fd3" @@ -4927,13 +4912,16 @@ "@typescript-eslint/typescript-estree" "5.60.1" debug "^4.3.4" -"@typescript-eslint/scope-manager@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz#d38e49280d983e8772e29121cf8c6e9221f280a3" - integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== +"@typescript-eslint/parser@^7.10.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.18.0.tgz#83928d0f1b7f4afa974098c64b5ce6f9051f96a0" + integrity sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg== dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" + "@typescript-eslint/scope-manager" "7.18.0" + "@typescript-eslint/types" "7.18.0" + "@typescript-eslint/typescript-estree" "7.18.0" + "@typescript-eslint/visitor-keys" "7.18.0" + debug "^4.3.4" "@typescript-eslint/scope-manager@5.60.1": version "5.60.1" @@ -4943,6 +4931,14 @@ "@typescript-eslint/types" "5.60.1" "@typescript-eslint/visitor-keys" "5.60.1" +"@typescript-eslint/scope-manager@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz#c928e7a9fc2c0b3ed92ab3112c614d6bd9951c83" + integrity sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA== + dependencies: + "@typescript-eslint/types" "7.18.0" + "@typescript-eslint/visitor-keys" "7.18.0" + "@typescript-eslint/type-utils@5.60.1": version "5.60.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.60.1.tgz#17770540e98d65ab4730c7aac618003f702893f4" @@ -4953,33 +4949,25 @@ debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" - integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== +"@typescript-eslint/type-utils@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz#2165ffaee00b1fbbdd2d40aa85232dab6998f53b" + integrity sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA== + dependencies: + "@typescript-eslint/typescript-estree" "7.18.0" + "@typescript-eslint/utils" "7.18.0" + debug "^4.3.4" + ts-api-utils "^1.3.0" "@typescript-eslint/types@5.60.1": version "5.60.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.60.1.tgz#a17473910f6b8d388ea83c9d7051af89c4eb7561" integrity sha512-zDcDx5fccU8BA0IDZc71bAtYIcG9PowaOwaD8rjYbqwK7dpe/UMQl3inJ4UtUK42nOCT41jTSCwg76E62JpMcg== -"@typescript-eslint/types@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.61.0.tgz#e99ff11b5792d791554abab0f0370936d8ca50c0" - integrity sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ== - -"@typescript-eslint/typescript-estree@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" - integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - debug "^4.3.1" - globby "^11.0.3" - is-glob "^4.0.1" - semver "^7.3.5" - tsutils "^3.21.0" +"@typescript-eslint/types@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.18.0.tgz#b90a57ccdea71797ffffa0321e744f379ec838c9" + integrity sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ== "@typescript-eslint/typescript-estree@5.60.1": version "5.60.1" @@ -4994,18 +4982,19 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/typescript-estree@^5.37.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.61.0.tgz#4c7caca84ce95bb41aa585d46a764bcc050b92f3" - integrity sha512-Fud90PxONnnLZ36oR5ClJBLTLfU4pIWBmnvGwTbEa2cXIqj70AEDEmOmpkFComjBZ/037ueKrOdHuYmSFVD7Rw== +"@typescript-eslint/typescript-estree@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz#b5868d486c51ce8f312309ba79bdb9f331b37931" + integrity sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA== dependencies: - "@typescript-eslint/types" "5.61.0" - "@typescript-eslint/visitor-keys" "5.61.0" + "@typescript-eslint/types" "7.18.0" + "@typescript-eslint/visitor-keys" "7.18.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" "@typescript-eslint/utils@5.60.1", "@typescript-eslint/utils@^5.58.0": version "5.60.1" @@ -5021,13 +5010,15 @@ eslint-scope "^5.1.1" semver "^7.3.7" -"@typescript-eslint/visitor-keys@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" - integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== +"@typescript-eslint/utils@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.18.0.tgz#bca01cde77f95fc6a8d5b0dbcbfb3d6ca4be451f" + integrity sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw== dependencies: - "@typescript-eslint/types" "4.33.0" - eslint-visitor-keys "^2.0.0" + "@eslint-community/eslint-utils" "^4.4.0" + "@typescript-eslint/scope-manager" "7.18.0" + "@typescript-eslint/types" "7.18.0" + "@typescript-eslint/typescript-estree" "7.18.0" "@typescript-eslint/visitor-keys@5.60.1": version "5.60.1" @@ -5037,13 +5028,18 @@ "@typescript-eslint/types" "5.60.1" eslint-visitor-keys "^3.3.0" -"@typescript-eslint/visitor-keys@5.61.0": - version "5.61.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.61.0.tgz#c79414fa42158fd23bd2bb70952dc5cdbb298140" - integrity sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg== +"@typescript-eslint/visitor-keys@7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz#0564629b6124d67607378d0f0332a0495b25e7d7" + integrity sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg== dependencies: - "@typescript-eslint/types" "5.61.0" - eslint-visitor-keys "^3.3.0" + "@typescript-eslint/types" "7.18.0" + eslint-visitor-keys "^3.4.3" + +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== "@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5": version "1.11.6" @@ -5176,16 +5172,27 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@zkochan/cmd-shim@^3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@zkochan/cmd-shim/-/cmd-shim-3.1.0.tgz#2ab8ed81f5bb5452a85f25758eb9b8681982fd2e" - integrity sha512-o8l0+x7C7sMZU3v9GuJIAU10qQLtwR1dtRQIOmlNMtyaqhmpXOzx1HWiYoWfmmf9HHZoAkXpc9TM9PQYF9d4Jg== +"@yarnpkg/lockfile@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" + integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== + +"@yarnpkg/parsers@3.0.0-rc.46": + version "3.0.0-rc.46" + resolved "https://registry.yarnpkg.com/@yarnpkg/parsers/-/parsers-3.0.0-rc.46.tgz#03f8363111efc0ea670e53b0282cd3ef62de4e01" + integrity sha512-aiATs7pSutzda/rq8fnuPwTglyVwjM22bNnK2ZgjrpAjQHSSl3lztd2f9evst1W/qnC58DRz7T7QndUDumAR4Q== + dependencies: + js-yaml "^3.10.0" + tslib "^2.4.0" + +"@zkochan/js-yaml@0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@zkochan/js-yaml/-/js-yaml-0.0.6.tgz#975f0b306e705e28b8068a07737fa46d3fc04826" + integrity sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg== dependencies: - is-windows "^1.0.0" - mkdirp-promise "^5.0.1" - mz "^2.5.0" + argparse "^2.0.1" -JSONStream@^1.0.4, JSONStream@^1.3.4: +JSONStream@^1.0.4: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== @@ -5198,11 +5205,16 @@ abab@^2.0.3, abab@^2.0.5: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== -abbrev@1: +abbrev@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== +abbrev@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf" + integrity sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ== + accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -5224,7 +5236,7 @@ acorn-import-assertions@^1.9.0: resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== -acorn-jsx@^5.3.1, acorn-jsx@^5.3.2: +acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== @@ -5241,12 +5253,12 @@ acorn-walk@^8.1.1: dependencies: acorn "^8.11.0" -acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.1.1: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.11.0, acorn@^8.4.1: +acorn@^8.11.0, acorn@^8.4.1, acorn@^8.9.0: version "8.12.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== @@ -5261,6 +5273,11 @@ acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8.2: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== +add-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" + integrity sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ== + address@^1.0.1, address@^1.1.2: version "1.2.2" resolved "https://registry.yarnpkg.com/address/-/address-1.2.2.tgz#2b5248dac5485a6390532c6a517fda2e3faac89e" @@ -5274,33 +5291,27 @@ adjust-sourcemap-loader@^4.0.0: loader-utils "^2.0.0" regex-parser "^2.2.11" -agent-base@4, agent-base@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" - integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== - dependencies: - es6-promisify "^5.0.0" - -agent-base@6: +agent-base@6, agent-base@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== dependencies: debug "4" -agent-base@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9" - integrity sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg== +agentkeepalive@^4.2.1: + version "4.5.0" + resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.5.0.tgz#2673ad1389b3c418c5a20c5d7364f93ca04be923" + integrity sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew== dependencies: - es6-promisify "^5.0.0" + humanize-ms "^1.2.1" -agentkeepalive@^3.4.1: - version "3.5.2" - resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-3.5.2.tgz#a113924dd3fa24a0bc3b78108c450c2abee00f67" - integrity sha512-e0L/HNe6qkQ7H19kTlRRqUibEAwDK5AFk6y3PtMsuut2VAH6+Q4xZml1tNDJD7kSAyqmbG/K08K5WEJYtUrSlQ== +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== dependencies: - humanize-ms "^1.2.1" + clean-stack "^2.0.0" + indent-string "^4.0.0" ajv-formats@^2.1.1: version "2.1.1" @@ -5321,7 +5332,7 @@ ajv-keywords@^5.1.0: dependencies: fast-deep-equal "^3.1.3" -ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: +ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -5331,7 +5342,7 @@ ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.0, ajv@^8.0.1, ajv@^8.6.0, ajv@^8.9.0: +ajv@^8.0.0, ajv@^8.6.0, ajv@^8.9.0: version "8.12.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== @@ -5398,7 +5409,7 @@ ansi-styles@^2.2.1: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA== -ansi-styles@^3.2.0, ansi-styles@^3.2.1: +ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== @@ -5435,23 +5446,23 @@ anymatch@^3.0.3, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -aproba@^1.0.3, aproba@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== - -aproba@^2.0.0: +"aproba@^1.0.3 || ^2.0.0", aproba@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== -are-we-there-yet@~1.1.2: - version "1.1.7" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz#b15474a932adab4ff8a50d9adfa7e4e926f21146" - integrity sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g== +are-we-there-yet@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd" + integrity sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg== dependencies: delegates "^1.0.0" - readable-stream "^2.0.6" + readable-stream "^3.6.0" + +are-we-there-yet@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-4.0.2.tgz#aed25dd0eae514660d49ac2b2366b175c614785a" + integrity sha512-ncSWAawFhKMJDTdoAeOV+jyW1VCMj5QIAwULIBV0SSR7B/RLPPEQiknKcg/RIIZlUQrxELpsxMiTUoAQ4sIUyg== arg@^4.1.0: version "4.1.3" @@ -5482,21 +5493,6 @@ aria-query@5.1.3, aria-query@^5.0.0, aria-query@^5.1.3: dependencies: deep-equal "^2.0.5" -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== - array-buffer-byte-length@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" @@ -5505,15 +5501,10 @@ array-buffer-byte-length@^1.0.0: call-bind "^1.0.2" is-array-buffer "^3.0.1" -array-differ@^2.0.3: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-2.1.0.tgz#4b9c1c3f14b906757082925769e8ab904f4801b1" - integrity sha512-KbUpJgx909ZscOc/7CLATBFam7P1Z1QRQInvgT0UztM9Q72aGKCunKASAl7WNW0tnPmPyEMeMhdsfWhfmW037w== - -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - integrity sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw== +array-differ@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-3.0.0.tgz#3cbb3d0f316810eafcc47624734237d6aee4ae6b" + integrity sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg== array-flatten@1.1.1: version "1.1.1" @@ -5541,28 +5532,11 @@ array-includes@^3.1.5, array-includes@^3.1.6: get-intrinsic "^1.1.3" is-string "^1.0.7" -array-union@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== - dependencies: - array-uniq "^1.0.1" - array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - array.prototype.flat@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" @@ -5610,7 +5584,12 @@ arrify@^1.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== -asap@^2.0.0, asap@~2.0.6: +arrify@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" + integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== + +asap@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== @@ -5625,23 +5604,6 @@ asn1.js@^5.2.0: minimalistic-assert "^1.0.0" safer-buffer "^2.1.0" -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== - ast-stringify@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/ast-stringify/-/ast-stringify-0.1.0.tgz#5c6439fbfb4513dcc26c7d34464ccd084ed91cb7" @@ -5654,11 +5616,6 @@ ast-types-flow@^0.0.7: resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - async@^3.2.3: version "3.2.4" resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" @@ -5674,16 +5631,6 @@ at-least-node@^1.0.0: resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== -atob-lite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696" - integrity sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - autoprefixer@^10.4.13: version "10.4.14" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.14.tgz#e28d49902f8e759dd25b153264e862df2705f79d" @@ -5701,27 +5648,17 @@ available-typed-arrays@^1.0.5: resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== - axe-core@^4.6.2: version "4.7.0" resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf" integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ== -axios@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102" - integrity sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg== +axios@1.7.4: + version "1.7.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.4.tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2" + integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw== dependencies: - follow-redirects "^1.15.0" + follow-redirects "^1.15.6" form-data "^4.0.0" proxy-from-env "^1.1.0" @@ -5732,6 +5669,15 @@ axios@^0.21.2: dependencies: follow-redirects "^1.14.0" +axios@^1.0.0: + version "1.7.7" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.7.tgz#2f554296f9892a72ac8d8e4c5b79c14a91d0a47f" + integrity sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + axobject-query@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-3.1.1.tgz#3b6e5c6d4e43ca7ba51c5babf99d22a9c68485e1" @@ -5739,11 +5685,6 @@ axobject-query@^3.1.1: dependencies: deep-equal "^2.0.5" -babel-core@7.0.0-bridge.0: - version "7.0.0-bridge.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" - integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== - babel-jest@^27.4.2, babel-jest@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444" @@ -5758,6 +5699,19 @@ babel-jest@^27.4.2, babel-jest@^27.5.1: graceful-fs "^4.2.9" slash "^3.0.0" +babel-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" + integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg== + dependencies: + "@jest/transform" "^29.7.0" + "@types/babel__core" "^7.1.14" + babel-plugin-istanbul "^6.1.1" + babel-preset-jest "^29.6.3" + chalk "^4.0.0" + graceful-fs "^4.2.9" + slash "^3.0.0" + babel-loader@^8.2.3: version "8.3.0" resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.3.0.tgz#124936e841ba4fe8176786d6ff28add1f134d6a8" @@ -5789,6 +5743,16 @@ babel-plugin-jest-hoist@^27.5.1: "@types/babel__core" "^7.0.0" "@types/babel__traverse" "^7.0.6" +babel-plugin-jest-hoist@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz#aadbe943464182a8922c3c927c3067ff40d24626" + integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.1.14" + "@types/babel__traverse" "^7.0.6" + babel-plugin-macros@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1" @@ -5890,6 +5854,14 @@ babel-preset-jest@^27.5.1: babel-plugin-jest-hoist "^27.5.1" babel-preset-current-node-syntax "^1.0.0" +babel-preset-jest@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz#fa05fa510e7d493896d7b0dd2033601c840f171c" + integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA== + dependencies: + babel-plugin-jest-hoist "^29.6.3" + babel-preset-current-node-syntax "^1.0.0" + babel-preset-react-app@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz#ed6005a20a24f2c88521809fa9aea99903751584" @@ -5912,22 +5884,6 @@ babel-preset-react-app@^10.0.1: babel-plugin-macros "^3.1.0" babel-plugin-transform-react-remove-prop-types "^0.4.24" -babel-watch@^7.8.0: - version "7.8.0" - resolved "https://registry.yarnpkg.com/babel-watch/-/babel-watch-7.8.0.tgz#19c819d7edf1a5e00a7378f83606a598dff01b55" - integrity sha512-Cw3l6cvkKyUFdxsPtleeuIzV7gmXRSc1IFxcrwSlWQ1ubs8ofAk1weKPiPKiX7NeQcf7AMR8qmdgbUqTjtEU9w== - dependencies: - chalk "^4.1.0" - chokidar "^3.4.3" - commander "^6.2.0" - debug "^4.3.1" - lodash.debounce "^4.0.8" - lodash.isregexp "^4.0.1" - lodash.isstring "^4.0.1" - signal-exit "^4.0.2" - source-map-support "^0.5.19" - string-argv "^0.3.2" - balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -5938,37 +5894,17 @@ base64-js@^1.3.0, base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - batch@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - bech32@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== -before-after-hook@^2.0.0: +before-after-hook@^2.2.0: version "2.2.3" resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c" integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== @@ -5988,12 +5924,31 @@ big.js@^5.2.2: resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== +bin-links@^4.0.1: + version "4.0.4" + resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-4.0.4.tgz#c3565832b8e287c85f109a02a17027d152a58a63" + integrity sha512-cMtq4W5ZsEwcutJrVId+a/tjt8GSbS+h0oNkdl6+6rBuEv8Ot33Bevj5KPm40t309zuhVic8NjpuL42QCiJWWA== + dependencies: + cmd-shim "^6.0.0" + npm-normalize-package-bin "^3.0.0" + read-cmd-shim "^4.0.0" + write-file-atomic "^5.0.0" + binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -bluebird@^3.5.1, bluebird@^3.5.3, bluebird@^3.5.5: +bl@^4.0.3, bl@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +bluebird@^3.5.5: version "3.7.2" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== @@ -6056,22 +6011,6 @@ brace-expansion@^2.0.1: dependencies: balanced-match "^1.0.0" -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" @@ -6163,7 +6102,17 @@ browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4.21.4: node-releases "^2.0.12" update-browserslist-db "^1.0.11" -bs-logger@0.x: +browserslist@^4.23.1: + version "4.24.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" + integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== + dependencies: + caniuse-lite "^1.0.30001663" + electron-to-chromium "^1.5.28" + node-releases "^2.0.18" + update-browserslist-db "^1.1.0" + +bs-logger@^0.2.6: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== @@ -6177,12 +6126,7 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" -btoa-lite@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" - integrity sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA== - -buffer-from@1.x, buffer-from@^1.0.0: +buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== @@ -6192,6 +6136,14 @@ buffer-xor@^1.0.3: resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + "buffer@npm:buffer@6.0.3": version "6.0.3" resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" @@ -6210,15 +6162,17 @@ builtins@^1.0.3: resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== -byline@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1" - integrity sha512-s6webAy+R4SR8XVuJWt2V2rGvhnrhxN+9S15GNuTK3wKPOXFF6RNc+8ug2XhH+2s4f+uudG4kUVYmYOQWL2g0Q== +builtins@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.1.0.tgz#6d85eeb360c4ebc166c3fdef922a15aa7316a5e8" + integrity sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg== + dependencies: + semver "^7.0.0" -byte-size@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-5.0.1.tgz#4b651039a5ecd96767e71a3d7ed380e48bed4191" - integrity sha512-/XuKeqWocKsYa/cBY1YbSJSWWqTi4cFgr9S6OyM7PBaPbr9zvNGwWP33vt0uqGhwDdN+y3yhbXVILEUpnwEWGw== +byte-size@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-7.0.0.tgz#36528cd1ca87d39bd9abd51f5715dc93b6ceb032" + integrity sha512-NNiBxKgxybMBtWdmvx7ZITJi4ZG+CYUgwOSZTfqB1qogkRHrhbQE/R2r5Fh94X+InN5MCYz6SvB/ejHMj/HbsQ== bytes@3.0.0: version "3.0.0" @@ -6230,41 +6184,47 @@ bytes@3.1.2: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -cacache@^12.0.0, cacache@^12.0.3: - version "12.0.4" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-12.0.4.tgz#668bcbd105aeb5f1d92fe25570ec9525c8faa40c" - integrity sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ== +cacache@^16.1.0: + version "16.1.3" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-16.1.3.tgz#a02b9f34ecfaf9a78c9f4bc16fceb94d5d67a38e" + integrity sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ== dependencies: - bluebird "^3.5.5" - chownr "^1.1.1" - figgy-pudding "^3.5.1" - glob "^7.1.4" - graceful-fs "^4.1.15" - infer-owner "^1.0.3" - lru-cache "^5.1.1" - mississippi "^3.0.0" - mkdirp "^0.5.1" - move-concurrently "^1.0.1" + "@npmcli/fs" "^2.1.0" + "@npmcli/move-file" "^2.0.0" + chownr "^2.0.0" + fs-minipass "^2.1.0" + glob "^8.0.1" + infer-owner "^1.0.4" + lru-cache "^7.7.1" + minipass "^3.1.6" + minipass-collect "^1.0.2" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + mkdirp "^1.0.4" + p-map "^4.0.0" promise-inflight "^1.0.1" - rimraf "^2.6.3" - ssri "^6.0.1" - unique-filename "^1.1.1" - y18n "^4.0.0" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" + rimraf "^3.0.2" + ssri "^9.0.0" + tar "^6.1.11" + unique-filename "^2.0.0" + +cacache@^17.0.0, cacache@^17.0.4: + version "17.1.4" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-17.1.4.tgz#b3ff381580b47e85c6e64f801101508e26604b35" + integrity sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A== + dependencies: + "@npmcli/fs" "^3.1.0" + fs-minipass "^3.0.0" + glob "^10.2.2" + lru-cache "^7.7.1" + minipass "^7.0.3" + minipass-collect "^1.0.2" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + p-map "^4.0.0" + ssri "^10.0.0" + tar "^6.1.11" + unique-filename "^3.0.0" call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" @@ -6279,25 +6239,6 @@ call-me-maybe@^1.0.1: resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== - callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -6316,23 +6257,6 @@ camelcase-css@^2.0.1: resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== -camelcase-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" - integrity sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ== - dependencies: - camelcase "^2.0.0" - map-obj "^1.0.0" - -camelcase-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" - integrity sha512-Ej37YKYbFUI8QiYlvj9YHb6/Z60dZyPJW0Cs8sFilMbd2lP0bw3ylAq9yJkK4lcTA2dID5fG8LjmJYbO7kWb7Q== - dependencies: - camelcase "^4.1.0" - map-obj "^2.0.0" - quick-lru "^1.0.0" - camelcase-keys@^6.2.2: version "6.2.2" resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" @@ -6342,17 +6266,7 @@ camelcase-keys@^6.2.2: map-obj "^4.0.0" quick-lru "^4.0.1" -camelcase@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" - integrity sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw== - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - integrity sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw== - -camelcase@^5.0.0, camelcase@^5.3.1: +camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== @@ -6382,6 +6296,11 @@ caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001503: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001509.tgz#2b7ad5265392d6d2de25cd8776d1ab3899570d14" integrity sha512-2uDDk+TRiTX5hMcUYT/7CSyzMZxjfGu0vAUjS2g0LSD8UoXOv0LtpH4LxGMemsiPq6LCVIUjNwVM0erkOkGCDA== +caniuse-lite@^1.0.30001663: + version "1.0.30001664" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001664.tgz#d588d75c9682d3301956b05a3749652a80677df4" + integrity sha512-AmE7k4dXiNKQipgn7a2xg558IRqPN3jMQY/rOsbxDhrd0tyChwbITBfiwtnqz8bi2M5mIWbxAYBvk7W7QBUS2g== + case-sensitive-paths-webpack-plugin@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz#db64066c6422eed2e08cc14b986ca43796dbc6d4" @@ -6392,10 +6311,21 @@ case@1.6.3: resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== +chalk@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@4.1.2, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" chalk@^1.0.0, chalk@^1.1.3: version "1.1.3" @@ -6408,7 +6338,7 @@ chalk@^1.0.0, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: +chalk@^2.0.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -6425,14 +6355,6 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - char-regex@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -6458,7 +6380,7 @@ check-types@^11.1.1: resolved "https://registry.yarnpkg.com/check-types/-/check-types-11.2.2.tgz#7afc0b6a860d686885062f2dba888ba5710335b4" integrity sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA== -chokidar@^3.4.0, chokidar@^3.4.2, chokidar@^3.4.3, chokidar@^3.5.3: +chokidar@^3.4.2, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -6473,10 +6395,10 @@ chokidar@^3.4.0, chokidar@^3.4.2, chokidar@^3.4.3, chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" -chownr@^1.1.1, chownr@^1.1.2, chownr@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" - integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== chrome-trace-event@^1.0.2: version "1.0.3" @@ -6493,6 +6415,11 @@ ci-info@^3.2.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.8.0.tgz#81408265a5380c929f0bc665d62256628ce9ef91" integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== +ci-info@^3.6.1: + version "3.9.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" + integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== + cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" @@ -6506,16 +6433,6 @@ cjs-module-lexer@^1.0.0: resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107" integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - clean-css@^5.2.2: version "5.3.2" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.2.tgz#70ecc7d4d4114921f5d298349ff86a31a9975224" @@ -6523,6 +6440,11 @@ clean-css@^5.2.2: dependencies: source-map "~0.6.0" +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + cli-color@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/cli-color/-/cli-color-2.0.3.tgz#73769ba969080629670f3f2ef69a4bf4e7cc1879" @@ -6534,6 +6456,13 @@ cli-color@^2.0.2: memoizee "^0.4.15" timers-ext "^0.1.7" +cli-cursor@3.1.0, cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + cli-cursor@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" @@ -6541,19 +6470,25 @@ cli-cursor@^2.1.0: dependencies: restore-cursor "^2.0.0" +cli-spinners@2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" + integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== + +cli-spinners@^2.5.0: + version "2.9.2" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" + integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== + cli-width@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== cliui@^7.0.2: version "7.0.4" @@ -6564,7 +6499,16 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" -clone-deep@^4.0.1: +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-deep@4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== @@ -6578,6 +6522,18 @@ clone@^1.0.2: resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== +cmd-shim@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-5.0.0.tgz#8d0aaa1a6b0708630694c4dbde070ed94c707724" + integrity sha512-qkCtZ59BidfEwHltnJwkyVZn+XQojdAySM1D1gSeh11Z4pW1Kpolkyo53L5noc0nrxmIvyFwTmJRo4xs7FFLPw== + dependencies: + mkdirp-infer-owner "^2.0.0" + +cmd-shim@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-6.0.3.tgz#c491e9656594ba17ac83c4bd931590a9d6e26033" + integrity sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA== + co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -6592,24 +6548,11 @@ coa@^2.0.2: chalk "^2.4.1" q "^1.1.2" -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA== - collect-v8-coverage@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -6634,6 +6577,11 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-support@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + colord@^2.9.1: version "2.9.3" resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43" @@ -6649,7 +6597,7 @@ colors@^1.1.2: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== -columnify@^1.5.4: +columnify@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.6.0.tgz#6989531713c9008bb29735e61e37acf5bd553cf3" integrity sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q== @@ -6657,7 +6605,7 @@ columnify@^1.5.4: strip-ansi "^6.0.1" wcwidth "^1.0.0" -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: +combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -6669,16 +6617,11 @@ commander@^2.20.0: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -commander@^4.0.0, commander@^4.0.1: +commander@^4.0.0: version "4.1.1" resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== -commander@^6.2.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" - integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== - commander@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" @@ -6689,6 +6632,11 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== +common-ancestor-path@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz#4f7d2d1394d91b7abdf51871c62f71eadb0182a7" + integrity sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w== + common-path-prefix@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" @@ -6712,11 +6660,6 @@ compare-func@^2.0.0: array-ify "^1.0.0" dot-prop "^5.1.0" -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - compressible@~2.0.16: version "2.0.18" resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" @@ -6742,16 +6685,6 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -concat-stream@^1.5.0: - version "1.6.2" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" - integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - concat-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" @@ -6762,10 +6695,10 @@ concat-stream@^2.0.0: readable-stream "^3.0.2" typedarray "^0.0.6" -config-chain@^1.1.11: - version "1.1.13" - resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4" - integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ== +config-chain@1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" + integrity sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA== dependencies: ini "^1.3.4" proto-list "~1.2.1" @@ -6780,7 +6713,7 @@ connect-history-api-fallback@^2.0.0: resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== -console-control-strings@^1.0.0, console-control-strings@~1.1.0: +console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== @@ -6797,47 +6730,47 @@ content-type@~1.0.4: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== -conventional-changelog-angular@^5.0.3: - version "5.0.13" - resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c" - integrity sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA== +conventional-changelog-angular@5.0.12: + version "5.0.12" + resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz#c979b8b921cbfe26402eb3da5bbfda02d865a2b9" + integrity sha512-5GLsbnkR/7A89RyHLvvoExbiGbd9xKdKqDTrArnPbOqBqG/2wIosu0fHwpeIRI8Tl94MhVNBXcLJZl92ZQ5USw== dependencies: compare-func "^2.0.0" q "^1.5.1" -conventional-changelog-core@^3.1.6: - version "3.2.3" - resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz#b31410856f431c847086a7dcb4d2ca184a7d88fb" - integrity sha512-LMMX1JlxPIq/Ez5aYAYS5CpuwbOk6QFp8O4HLAcZxe3vxoCtABkhfjetk8IYdRB9CDQGwJFLR3Dr55Za6XKgUQ== +conventional-changelog-core@4.2.4: + version "4.2.4" + resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz#e50d047e8ebacf63fac3dc67bf918177001e1e9f" + integrity sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg== dependencies: - conventional-changelog-writer "^4.0.6" - conventional-commits-parser "^3.0.3" + add-stream "^1.0.0" + conventional-changelog-writer "^5.0.0" + conventional-commits-parser "^3.2.0" dateformat "^3.0.0" - get-pkg-repo "^1.0.0" - git-raw-commits "2.0.0" + get-pkg-repo "^4.0.0" + git-raw-commits "^2.0.8" git-remote-origin-url "^2.0.0" - git-semver-tags "^2.0.3" - lodash "^4.2.1" - normalize-package-data "^2.3.5" + git-semver-tags "^4.1.1" + lodash "^4.17.15" + normalize-package-data "^3.0.0" q "^1.5.1" read-pkg "^3.0.0" read-pkg-up "^3.0.0" - through2 "^3.0.0" + through2 "^4.0.0" -conventional-changelog-preset-loader@^2.1.1: +conventional-changelog-preset-loader@^2.3.4: version "2.3.4" resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz#14a855abbffd59027fd602581f1f34d9862ea44c" integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== -conventional-changelog-writer@^4.0.6: - version "4.1.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz#1ca7880b75aa28695ad33312a1f2366f4b12659f" - integrity sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw== +conventional-changelog-writer@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz#e0757072f045fe03d91da6343c843029e702f359" + integrity sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ== dependencies: - compare-func "^2.0.0" conventional-commits-filter "^2.0.7" dateformat "^3.0.0" - handlebars "^4.7.6" + handlebars "^4.7.7" json-stringify-safe "^5.0.1" lodash "^4.17.15" meow "^8.0.0" @@ -6845,7 +6778,7 @@ conventional-changelog-writer@^4.0.6: split "^1.0.0" through2 "^4.0.0" -conventional-commits-filter@^2.0.2, conventional-commits-filter@^2.0.7: +conventional-commits-filter@^2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz#f8d9b4f182fce00c9af7139da49365b136c8a0b3" integrity sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA== @@ -6853,7 +6786,7 @@ conventional-commits-filter@^2.0.2, conventional-commits-filter@^2.0.7: lodash.ismatch "^4.4.0" modify-values "^1.0.0" -conventional-commits-parser@^3.0.3: +conventional-commits-parser@^3.2.0: version "3.2.4" resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz#a7d3b77758a202a9b2293d2112a8d8052c740972" integrity sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q== @@ -6865,25 +6798,30 @@ conventional-commits-parser@^3.0.3: split2 "^3.0.0" through2 "^4.0.0" -conventional-recommended-bump@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-5.0.1.tgz#5af63903947b6e089e77767601cb592cabb106ba" - integrity sha512-RVdt0elRcCxL90IrNP0fYCpq1uGt2MALko0eyeQ+zQuDVWtMGAy9ng6yYn3kax42lCj9+XBxQ8ZN6S9bdKxDhQ== +conventional-recommended-bump@6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz#cfa623285d1de554012f2ffde70d9c8a22231f55" + integrity sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw== dependencies: concat-stream "^2.0.0" - conventional-changelog-preset-loader "^2.1.1" - conventional-commits-filter "^2.0.2" - conventional-commits-parser "^3.0.3" - git-raw-commits "2.0.0" - git-semver-tags "^2.0.3" - meow "^4.0.0" + conventional-changelog-preset-loader "^2.3.4" + conventional-commits-filter "^2.0.7" + conventional-commits-parser "^3.2.0" + git-raw-commits "^2.0.8" + git-semver-tags "^4.1.1" + meow "^8.0.0" q "^1.5.1" -convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: +convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.9.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" @@ -6894,22 +6832,18 @@ cookie@0.5.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -copy-concurrently@^1.0.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0" - integrity sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A== +copyfiles@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5" + integrity sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg== dependencies: - aproba "^1.1.1" - fs-write-stream-atomic "^1.0.8" - iferr "^0.1.5" - mkdirp "^0.5.1" - rimraf "^2.5.4" - run-queue "^1.0.0" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== + glob "^7.0.5" + minimatch "^3.0.3" + mkdirp "^1.0.4" + noms "0.0.0" + through2 "^2.0.1" + untildify "^4.0.0" + yargs "^16.1.0" core-js-compat@^3.21.0, core-js-compat@^3.22.1, core-js-compat@^3.25.1: version "3.30.2" @@ -6930,30 +6864,26 @@ core-js-pure@^3.23.3: resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.31.0.tgz#052fd9e82fbaaf86457f5db1fadcd06f15966ff2" integrity sha512-/AnE9Y4OsJZicCzIe97JP5XoPKQJfTuEG43aEVLFJGOJpyqELod+pE6LEl63DfG1Mp8wX97LDaDpy1GmLEUxlg== -core-js@^3.19.2, core-js@^3.30.2: +core-js@^3.19.2: version "3.31.0" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.31.0.tgz#4471dd33e366c79d8c0977ed2d940821719db344" integrity sha512-NIp2TQSGfR6ba5aalZD+ZQ1fSxGhDo/s1w0nx3RYzf2pnJxt7YynxFlFScP6eV7+GZsKO95NSjGxyJsU3DZgeQ== -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== -cosmiconfig@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== +cosmiconfig@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3" + integrity sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA== dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" cosmiconfig@^6.0.0: version "6.0.0" @@ -7016,30 +6946,25 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +create-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" + integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q== + dependencies: + "@jest/types" "^29.6.3" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-config "^29.7.0" + jest-util "^29.7.0" + prompts "^2.0.1" + create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-env@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" - integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== - dependencies: - cross-spawn "^7.0.1" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -7265,18 +7190,6 @@ csstype@^3.0.2: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b" integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - integrity sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng== - dependencies: - array-find-index "^1.0.1" - -cyclist@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.2.tgz#673b5f233bf34d8e602b949429f8171d9121bea3" - integrity sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA== - d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" @@ -7290,25 +7203,11 @@ damerau-levenshtein@^1.0.8: resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== -dargs@7.0.0: +dargs@7.0.0, dargs@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== -dargs@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17" - integrity sha512-jyweV/k0rbv2WK4r9KLayuBrSh2Py0tNmV7LBoSMH4hMQyrG8OPyIOWB2VEx4DJKXWmK4lopYMVvORlDt2S8Aw== - dependencies: - number-is-nan "^1.0.0" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" - data-urls@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" @@ -7323,40 +7222,35 @@ dateformat@^3.0.0: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0: +debug@2.6.9, debug@^2.6.0: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== dependencies: ms "2.0.0" -debug@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== - dependencies: - ms "2.0.0" - -debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" -debug@^3.1.0, debug@^3.2.7: +debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== dependencies: ms "^2.1.1" -debuglog@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" - integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw== +debug@^4.3.3: + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== + dependencies: + ms "^2.1.3" -decamelize-keys@^1.0.0, decamelize-keys@^1.1.0: +decamelize-keys@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== @@ -7364,7 +7258,7 @@ decamelize-keys@^1.0.0, decamelize-keys@^1.1.0: decamelize "^1.1.0" map-obj "^1.0.0" -decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0: +decamelize@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== @@ -7374,16 +7268,16 @@ decimal.js@^10.2.1: resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - -dedent@^0.7.0: +dedent@0.7.0, dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== +dedent@^1.0.0: + version "1.5.3" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" + integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== + deep-equal@^2.0.5: version "2.2.1" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.1.tgz#c72ab22f3a7d3503a4ca87dde976fe9978816739" @@ -7450,27 +7344,19 @@ define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: has-property-descriptors "^1.0.0" object-keys "^1.1.1" -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== +del@^6.0.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/del/-/del-6.1.1.tgz#3b70314f1ec0aa325c6b14eb36b95786671edb7a" + integrity sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg== dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" + globby "^11.0.1" + graceful-fs "^4.2.4" + is-glob "^4.0.1" + is-path-cwd "^2.2.0" + is-path-inside "^3.0.2" + p-map "^4.0.0" + rimraf "^3.0.2" + slash "^3.0.0" delayed-stream@~1.0.0: version "1.0.0" @@ -7533,14 +7419,6 @@ detect-port-alt@^1.1.6: address "^1.0.1" debug "^2.6.0" -dezalgo@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/dezalgo/-/dezalgo-1.0.4.tgz#751235260469084c132157dfa857f386d4c33d81" - integrity sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig== - dependencies: - asap "^2.0.0" - wrappy "1" - didyoumean@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" @@ -7556,6 +7434,11 @@ diff-sequences@^29.4.3: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.4.3.tgz#9314bc1fabe09267ffeca9cbafc457d8499a13f2" integrity sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA== +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== + diff@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -7570,13 +7453,6 @@ diffie-hellman@^5.0.0: miller-rabin "^4.0.0" randombytes "^2.0.0" -dir-glob@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" - integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== - dependencies: - path-type "^3.0.0" - dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -7693,12 +7569,12 @@ dot-case@^3.0.4: no-case "^3.0.4" tslib "^2.0.3" -dot-prop@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" - integrity sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ== +dot-prop@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" + integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== dependencies: - is-obj "^1.0.0" + is-obj "^2.0.0" dot-prop@^5.1.0: version "5.3.0" @@ -7712,7 +7588,7 @@ dotenv-expand@^5.1.0: resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-5.1.0.tgz#3fbaf020bfd794884072ea26b1e9791d45a629f0" integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== -dotenv@^10.0.0: +dotenv@^10.0.0, dotenv@~10.0.0: version "10.0.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== @@ -7727,34 +7603,23 @@ duplexer@^0.1.1, duplexer@^0.1.2: resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== -duplexify@^3.4.2, duplexify@^3.6.0: - version "3.7.1" - resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" - integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== - dependencies: - end-of-stream "^1.0.0" - inherits "^2.0.1" - readable-stream "^2.0.0" - stream-shift "^1.0.0" - eastasianwidth@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== +ejs@^3.1.10, ejs@^3.1.7: + version "3.1.10" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" + integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== + dependencies: + jake "^10.8.5" + ejs@^3.1.6: version "3.1.9" resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.9.tgz#03c9e8777fe12686a9effcef22303ca3d8eeb361" @@ -7772,6 +7637,11 @@ electron-to-chromium@^1.4.431: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.446.tgz#c23fbc7884bfe43088d5eb908a858dbb35ab190b" integrity sha512-4Gnw7ztEQ/E0eOt5JWfPn9jjeupfUlKoeW5ETKP9nLdWj+4spFoS3Stj19fqlKIaX28UQs0fNX+uKEyoLCBnkw== +electron-to-chromium@^1.5.28: + version "1.5.29" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.29.tgz#aa592a3caa95d07cc26a66563accf99fa573a1ee" + integrity sha512-PF8n2AlIhCKXQ+gTpiJi0VhcHDb69kYX4MtCiivctc2QD3XuNZ/XIOlbGzt7WAjjEev0TtaH6Cu3arZExm5DOw== + elliptic@^6.5.3, elliptic@^6.5.4: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -7790,16 +7660,16 @@ emittery@^0.10.2: resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.2.tgz#902eec8aedb8c41938c46e9385e9db7e03182933" integrity sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw== +emittery@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" + integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== + emittery@^0.8.1: version "0.8.1" resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -7820,14 +7690,14 @@ encodeurl@~1.0.2: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== -encoding@^0.1.11: +encoding@^0.1.13: version "0.1.13" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== dependencies: iconv-lite "^0.6.2" -end-of-stream@^1.0.0, end-of-stream@^1.1.0: +end-of-stream@^1.4.1: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== @@ -7842,7 +7712,7 @@ enhanced-resolve@^5.15.0: graceful-fs "^4.2.4" tapable "^2.2.0" -enquirer@^2.3.5: +enquirer@~2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== @@ -7859,17 +7729,17 @@ env-paths@^2.2.0: resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== -envinfo@^7.3.1: - version "7.10.0" - resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.10.0.tgz#55146e3909cc5fe63c22da63fb15b05aeac35b13" - integrity sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw== +envinfo@^7.7.4: + version "7.14.0" + resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.14.0.tgz#26dac5db54418f2a4c1159153a0b2ae980838aae" + integrity sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg== -err-code@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960" - integrity sha512-CJAN+O0/yA1CKfRn9SXOGctSpEM7DCon/r/5r2eXFMY2zCCJBasFhcM5I+1kh3Ap11FsQCX+vGHceNPvpWKhoA== +err-code@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" + integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== -error-ex@^1.2.0, error-ex@^1.3.1: +error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== @@ -7991,18 +7861,6 @@ es6-iterator@^2.0.3: es5-ext "^0.10.35" es6-symbol "^3.1.1" -es6-promise@^4.0.3: - version "4.2.8" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" - integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== - -es6-promisify@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" - integrity sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ== - dependencies: - es6-promise "^4.0.3" - es6-symbol@^3.1.1, es6-symbol@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" @@ -8026,6 +7884,11 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== +escalade@^3.1.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -8058,10 +7921,10 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-config-prettier@^8.3.0: - version "8.8.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" - integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== +eslint-config-prettier@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f" + integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw== eslint-config-react-app@^7.0.1: version "7.0.1" @@ -8157,12 +8020,13 @@ eslint-plugin-jsx-a11y@^6.5.1: object.fromentries "^2.0.6" semver "^6.3.0" -eslint-plugin-prettier@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" - integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== +eslint-plugin-prettier@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz#d1c8f972d8f60e414c25465c163d16f209411f95" + integrity sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw== dependencies: prettier-linter-helpers "^1.0.0" + synckit "^0.9.1" eslint-plugin-react-hooks@^4.3.0: version "4.6.0" @@ -8190,6 +8054,11 @@ eslint-plugin-react@^7.27.1: semver "^6.3.0" string.prototype.matchall "^4.0.8" +eslint-plugin-simple-import-sort@^12.1.0: + version "12.1.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-12.1.1.tgz#e64bfdaf91c5b98a298619aa634a9f7aa43b709e" + integrity sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA== + eslint-plugin-testing-library@^5.0.1: version "5.11.0" resolved "https://registry.yarnpkg.com/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz#0bad7668e216e20dd12f8c3652ca353009163121" @@ -8197,6 +8066,11 @@ eslint-plugin-testing-library@^5.0.1: dependencies: "@typescript-eslint/utils" "^5.58.0" +eslint-plugin-unused-imports@^4.0.0: + version "4.1.4" + resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.1.4.tgz#62ddc7446ccbf9aa7b6f1f0b00a980423cda2738" + integrity sha512-YptD6IzQjDardkl0POxnnRBhU1OEePMV0nd6siHaRBbd+lyh6NAhFEobiznKU7kTsSsDeSD62Pe7kAM1b7dAZQ== + eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" @@ -8213,26 +8087,15 @@ eslint-scope@^7.2.0: esrecurse "^4.3.0" estraverse "^5.2.0" -eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + esrecurse "^4.3.0" + estraverse "^5.2.0" -eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0: +eslint-visitor-keys@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== @@ -8242,6 +8105,11 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== +eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + eslint-webpack-plugin@^3.1.1: version "3.2.0" resolved "https://registry.yarnpkg.com/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz#1978cdb9edc461e4b0195a20da950cf57988347c" @@ -8253,73 +8121,73 @@ eslint-webpack-plugin@^3.1.1: normalize-path "^3.0.0" schema-utils "^4.0.0" -eslint@^7.32.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== +eslint@^8.3.0: + version "8.43.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.43.0.tgz#3e8c6066a57097adfd9d390b8fc93075f257a094" + integrity sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q== dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.4.0" + "@eslint/eslintrc" "^2.0.3" + "@eslint/js" "8.43.0" + "@humanwhocodes/config-array" "^0.11.10" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" - debug "^4.0.1" + debug "^4.3.2" doctrine "^3.0.0" - enquirer "^2.3.5" escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" - esquery "^1.4.0" + eslint-scope "^7.2.0" + eslint-visitor-keys "^3.4.1" + espree "^9.5.2" + esquery "^1.4.2" esutils "^2.0.2" fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" - globals "^13.6.0" - ignore "^4.0.6" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" - js-yaml "^3.13.1" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" - minimatch "^3.0.4" + minimatch "^3.1.2" natural-compare "^1.4.0" optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" + strip-ansi "^6.0.1" strip-json-comments "^3.1.0" - table "^6.0.9" text-table "^0.2.0" - v8-compile-cache "^2.0.3" -eslint@^8.3.0: - version "8.43.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.43.0.tgz#3e8c6066a57097adfd9d390b8fc93075f257a094" - integrity sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q== +eslint@^8.56.0: + version "8.57.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9" + integrity sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA== dependencies: "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.43.0" - "@humanwhocodes/config-array" "^0.11.10" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.4" + "@eslint/js" "8.57.1" + "@humanwhocodes/config-array" "^0.13.0" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.3.2" doctrine "^3.0.0" escape-string-regexp "^4.0.0" - eslint-scope "^7.2.0" - eslint-visitor-keys "^3.4.1" - espree "^9.5.2" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" esquery "^1.4.2" esutils "^2.0.2" fast-deep-equal "^3.1.3" @@ -8329,7 +8197,6 @@ eslint@^8.3.0: globals "^13.19.0" graphemer "^1.4.0" ignore "^5.2.0" - import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" is-path-inside "^3.0.3" @@ -8339,20 +8206,10 @@ eslint@^8.3.0: lodash.merge "^4.6.2" minimatch "^3.1.2" natural-compare "^1.4.0" - optionator "^0.9.1" + optionator "^0.9.3" strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" text-table "^0.2.0" -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== - dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" - espree@^9.5.2: version "9.5.2" resolved "https://registry.yarnpkg.com/espree/-/espree-9.5.2.tgz#e994e7dc33a082a7a82dceaf12883a829353215b" @@ -8362,12 +8219,21 @@ espree@^9.5.2: acorn-jsx "^5.3.2" eslint-visitor-keys "^3.4.1" +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.4.0, esquery@^1.4.2: +esquery@^1.4.2: version "1.5.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== @@ -8414,12 +8280,7 @@ event-emitter@^0.3.5: d "1" es5-ext "~0.10.14" -eventemitter3@^3.1.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" - integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== - -eventemitter3@^4.0.0: +eventemitter3@^4.0.0, eventemitter3@^4.0.4: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== @@ -8437,18 +8298,20 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: md5.js "^1.3.4" safe-buffer "^5.1.1" -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== +execa@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376" + integrity sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ== dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" execa@^5.0.0: version "5.1.1" @@ -8470,19 +8333,6 @@ exit@^0.1.2: resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - expect@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/expect/-/expect-27.5.1.tgz#83ce59f1e5bdf5f9d2b94b61d2050db48f3fef74" @@ -8504,6 +8354,22 @@ expect@^29.0.0: jest-message-util "^29.5.0" jest-util "^29.5.0" +expect@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== + dependencies: + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + +exponential-backoff@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6" + integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw== + express@^4.17.3: version "4.18.2" resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59" @@ -8548,26 +8414,6 @@ ext@^1.1.2: dependencies: type "^2.7.2" -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - external-editor@^2.0.4: version "2.2.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5" @@ -8586,51 +8432,26 @@ external-editor@^3.0.3: iconv-lite "^0.4.24" tmp "^0.0.33" -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + version "1.3.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== -fast-glob@^2.2.6: - version "2.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" - integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== +fast-glob@3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" + integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== dependencies: - "@mrmlnc/readdir-enhanced" "^2.2.1" - "@nodelib/fs.stat" "^1.1.2" - glob-parent "^3.1.0" - is-glob "^4.0.0" - merge2 "^1.2.3" - micromatch "^3.1.10" + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" fast-glob@^3.2.12: version "3.3.0" @@ -8685,10 +8506,12 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: - version "3.5.2" - resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e" - integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw== +figures@3.2.0, figures@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" figures@^2.0.0: version "2.0.0" @@ -8712,6 +8535,11 @@ file-loader@^6.2.0: loader-utils "^2.0.0" schema-utils "^3.0.0" +file-url@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/file-url/-/file-url-3.0.0.tgz#247a586a746ce9f7a8ed05560290968afc262a77" + integrity sha512-g872QGsHexznxkIAdK8UiZRe7SkE6kvylShU4Nsj8NvfvZag7S0QuQ4IgvPDkk75HxgjIVDwycFTDAgIiO4nDA== + filelist@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" @@ -8724,16 +8552,6 @@ filesize@^8.0.6: resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8" integrity sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ== -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -8741,11 +8559,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== - finalhandler@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" @@ -8759,15 +8572,6 @@ finalhandler@1.2.0: statuses "2.0.1" unpipe "~1.0.0" -find-cache-dir@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" - integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== - dependencies: - commondir "^1.0.1" - make-dir "^2.0.0" - pkg-dir "^3.0.0" - find-cache-dir@^3.3.1: version "3.3.2" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" @@ -8777,13 +8581,13 @@ find-cache-dir@^3.3.1: make-dir "^3.0.2" pkg-dir "^4.1.0" -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - integrity sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA== +find-up@5.0.0, find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" + locate-path "^6.0.0" + path-exists "^4.0.0" find-up@^2.0.0: version "2.1.0" @@ -8807,14 +8611,6 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -8823,28 +8619,25 @@ flat-cache@^3.0.4: flatted "^3.1.0" rimraf "^3.0.2" +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + flatted@^3.1.0: version "3.2.7" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== -flush-write-stream@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" - integrity sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w== - dependencies: - inherits "^2.0.3" - readable-stream "^2.3.6" - follow-redirects@^1.0.0, follow-redirects@^1.14.0: version "1.15.2" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== -follow-redirects@^1.15.0: - version "1.15.6" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" - integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== +follow-redirects@^1.15.6: + version "1.15.9" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== for-each@^0.3.3: version "0.3.3" @@ -8853,11 +8646,6 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - foreground-child@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" @@ -8866,11 +8654,6 @@ foreground-child@^3.1.0: cross-spawn "^7.0.0" signal-exit "^4.0.1" -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - fork-ts-checker-webpack-plugin@^6.5.0: version "6.5.3" resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz#eda2eff6e22476a2688d10661688c47f611b37f3" @@ -8908,15 +8691,6 @@ form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - forwarded@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" @@ -8927,81 +8701,63 @@ fraction.js@^4.2.0: resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950" integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA== -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== -from2@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" - integrity sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g== - dependencies: - inherits "^2.0.1" - readable-stream "^2.0.0" +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== -fs-extra@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== +fs-extra@9.1.0, fs-extra@^9.0.0, fs-extra@^9.0.1, fs-extra@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== dependencies: + at-least-node "^1.0.0" graceful-fs "^4.2.0" jsonfile "^6.0.1" universalify "^2.0.0" -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== +fs-extra@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== dependencies: graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" + jsonfile "^6.0.1" + universalify "^2.0.0" -fs-extra@^9.0.0, fs-extra@^9.0.1: - version "9.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== +fs-extra@^11.1.0: + version "11.2.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b" + integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw== dependencies: - at-least-node "^1.0.0" graceful-fs "^4.2.0" jsonfile "^6.0.1" universalify "^2.0.0" -fs-minipass@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" - integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== +fs-minipass@^2.0.0, fs-minipass@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs-minipass@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-3.0.3.tgz#79a85981c4dc120065e96f62086bf6f9dc26cc54" + integrity sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw== dependencies: - minipass "^2.6.0" + minipass "^7.0.3" fs-monkey@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.4.tgz#ee8c1b53d3fe8bb7e5d2c5c5dfc0168afdd2f747" integrity sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ== -fs-readdir-recursive@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== - -fs-write-stream-atomic@^1.0.8: - version "1.0.10" - resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" - integrity sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA== - dependencies: - graceful-fs "^4.1.2" - iferr "^0.1.5" - imurmurhash "^0.1.4" - readable-stream "1 || 2" - fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -9017,6 +8773,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" @@ -9027,11 +8788,6 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" @@ -9042,31 +8798,40 @@ fuzzy@0.1.3: resolved "https://registry.yarnpkg.com/fuzzy/-/fuzzy-0.1.3.tgz#4c76ec2ff0ac1a36a9dccf9a00df8623078d4ed8" integrity sha512-/gZffu4ykarLrCiP3Ygsa86UAo1E5vEVlvTrpkKywXSbP9Xhln3oSp9QSV57gEq3JFFpGJ4GZ+5zdEp3FcUh4w== -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - integrity sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg== - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -genfun@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/genfun/-/genfun-5.0.0.tgz#9dd9710a06900a5c4a5bf57aca5da4e52fe76537" - integrity sha512-KGDOARWVga7+rnB3z9Sd2Letx515owfk0hSxHGuqjANb1M+x2bGZGqHLiozPsYMdM2OubeMni/Hpwmjq6qIUhA== +gauge@^4.0.3: + version "4.0.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" + integrity sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.3" + console-control-strings "^1.1.0" + has-unicode "^2.0.1" + signal-exit "^3.0.7" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.5" + +gauge@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-5.0.2.tgz#7ab44c11181da9766333f10db8cd1e4b17fd6c46" + integrity sha512-pMaFftXPtiGIHCJHdcUUx9Rby/rFT/Kkt3fIIGCs+9PMDIljSyRiqraTlxNtBReJRDfUefpa263RQ3vnp5G/LQ== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.3" + console-control-strings "^1.1.0" + has-unicode "^2.0.1" + signal-exit "^4.0.1" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.5" gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== -get-caller-file@^2.0.1, get-caller-file@^2.0.5: +get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== @@ -9090,38 +8855,30 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-pkg-repo@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d" - integrity sha512-xPCyvcEOxCJDxhBfXDNH+zA7mIRGb2aY1gIUJWsZkpJbp1BLHl+/Sycg26Dv+ZbZAJkO61tzbBtqHUi30NGBvg== +get-pkg-repo@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz#75973e1c8050c73f48190c52047c4cee3acbf385" + integrity sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA== dependencies: - hosted-git-info "^2.1.4" - meow "^3.3.0" - normalize-package-data "^2.3.0" - parse-github-repo-url "^1.3.0" + "@hutson/parse-repository-url" "^3.0.0" + hosted-git-info "^4.0.0" through2 "^2.0.0" + yargs "^16.2.0" -get-port@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/get-port/-/get-port-4.2.0.tgz#e37368b1e863b7629c43c5a323625f95cf24b119" - integrity sha512-/b3jarXkH8KJoOMQc3uVGHASwGLPq3gSFJ7tgJm2diza+bydJPTGOibin2steecKeOylE8oY2JERlVWkAJO6yw== - -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - integrity sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw== +get-port@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/get-port/-/get-port-5.1.1.tgz#0469ed07563479de6efb986baf053dcd7d4e3193" + integrity sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ== get-stdin@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg== -get-stream@^4.0.0, get-stream@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" +get-stream@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.0.tgz#3e0012cb6827319da2706e601a1583e8629a6718" + integrity sha512-A1B3Bh1UmL0bidM/YX2NsCOTnGJePL9rO/M+Mw3m9f2gUpfokS0hi5Eah0WSUEWZdZhIZtMjkIYS7mDfOqNHbg== get-stream@^6.0.0: version "6.0.1" @@ -9136,28 +8893,16 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - -git-raw-commits@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.0.tgz#d92addf74440c14bcc5c83ecce3fb7f8a79118b5" - integrity sha512-w4jFEJFgKXMQJ0H0ikBk2S+4KP2VEjhCvLCNqbNRQC8BgGWgLKNCO7a9K9LI+TVT7Gfoloje502sEnctibffgg== +git-raw-commits@^2.0.8: + version "2.0.11" + resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.11.tgz#bc3576638071d18655e1cc60d7f524920008d723" + integrity sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A== dependencies: - dargs "^4.0.1" - lodash.template "^4.0.2" - meow "^4.0.0" - split2 "^2.0.0" - through2 "^2.0.0" + dargs "^7.0.0" + lodash "^4.17.15" + meow "^8.0.0" + split2 "^3.0.0" + through2 "^4.0.0" git-remote-origin-url@^2.0.0: version "2.0.0" @@ -9167,28 +8912,28 @@ git-remote-origin-url@^2.0.0: gitconfiglocal "^1.0.0" pify "^2.3.0" -git-semver-tags@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-2.0.3.tgz#48988a718acf593800f99622a952a77c405bfa34" - integrity sha512-tj4FD4ww2RX2ae//jSrXZzrocla9db5h0V7ikPl1P/WwoZar9epdUhwR7XHXSgc+ZkNq72BEEerqQuicoEQfzA== +git-semver-tags@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.1.1.tgz#63191bcd809b0ec3e151ba4751c16c444e5b5780" + integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== dependencies: - meow "^4.0.0" + meow "^8.0.0" semver "^6.0.0" -git-up@^4.0.0: - version "4.0.5" - resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.5.tgz#e7bb70981a37ea2fb8fe049669800a1f9a01d759" - integrity sha512-YUvVDg/vX3d0syBsk/CKUTib0srcQME0JyHkL5BaYdwLsiCslPWmDSi8PUMo9pXYjrryMcmsCoCgsTpSCJEQaA== +git-up@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-7.0.0.tgz#bace30786e36f56ea341b6f69adfd83286337467" + integrity sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ== dependencies: - is-ssh "^1.3.0" - parse-url "^6.0.0" + is-ssh "^1.4.0" + parse-url "^8.1.0" -git-url-parse@^11.1.2: - version "11.6.0" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.6.0.tgz#c634b8de7faa66498a2b88932df31702c67df605" - integrity sha512-WWUxvJs5HsyHL6L08wOusa/IXYtMuCAhrMmnTjQPpBU0TTHyDhnOATNH3xNQz7YOQUsqIIPTGr4xiVti1Hsk5g== +git-url-parse@13.1.0: + version "13.1.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-13.1.0.tgz#07e136b5baa08d59fabdf0e33170de425adf07b4" + integrity sha512-5FvPJP/70WkIprlUZ33bm4UAaFdjcLkJLpWft1BeZKqwR0uhhNGoKwlUaPtVb4LxCSQ++erHapRak9kWGj+FCA== dependencies: - git-up "^4.0.0" + git-up "^7.0.0" gitconfiglocal@^1.0.0: version "1.0.0" @@ -9197,15 +8942,7 @@ gitconfiglocal@^1.0.0: dependencies: ini "^1.3.2" -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - integrity sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA== - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob-parent@^5.0.0, glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@5.1.2, glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -9226,16 +8963,23 @@ glob-promise@^4.2.2: dependencies: "@types/glob" "^7.1.3" -glob-to-regexp@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" - integrity sha512-Iozmtbqv0noj0uDDqoL0zNq0VBEfK2YFoMAZoxJe4cwphvLR+JskfF30QhXHOR4m3KrE6NLRYw+U9MRXvifyig== - glob-to-regexp@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== +glob@7.1.4: + version "7.1.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" + integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -9259,7 +9003,18 @@ glob@8.0.3: minimatch "^5.0.1" once "^1.3.0" -glob@^10.0.0, glob@^10.2.5: +glob@8.1.0, glob@^8.0.1: + version "8.1.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" + integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^5.0.1" + once "^1.3.0" + +glob@^10.0.0: version "10.3.1" resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.1.tgz#9789cb1b994515bedb811a6deca735b5c37d2bf4" integrity sha512-9BKYcEeIs7QwlCYs+Y3GBvqAMISufUS0i2ELd11zpZjxI5V9iyRj0HgzB5/cLf2NY4vcYBTYzJ7GIui7j/4DOw== @@ -9270,7 +9025,19 @@ glob@^10.0.0, glob@^10.2.5: minipass "^5.0.0 || ^6.0.2" path-scurry "^1.10.0" -glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0: +glob@^10.2.2: + version "10.4.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" + integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== + dependencies: + foreground-child "^3.1.0" + jackspeak "^3.1.2" + minimatch "^9.0.4" + minipass "^7.1.2" + package-json-from-dist "^1.0.0" + path-scurry "^1.11.1" + +glob@^7.0.0, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -9282,6 +9049,16 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, gl once "^1.3.0" path-is-absolute "^1.0.0" +glob@^9.2.0: + version "9.3.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.5.tgz#ca2ed8ca452781a3009685607fdf025a899dfe21" + integrity sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q== + dependencies: + fs.realpath "^1.0.0" + minimatch "^8.0.2" + minipass "^4.2.4" + path-scurry "^1.6.1" + global-modules@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" @@ -9303,7 +9080,7 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^13.19.0, globals@^13.6.0, globals@^13.9.0: +globals@^13.19.0: version "13.20.0" resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82" integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== @@ -9317,7 +9094,7 @@ globalthis@^1.0.1, globalthis@^1.0.3: dependencies: define-properties "^1.1.3" -globby@^11.0.3, globby@^11.0.4, globby@^11.1.0: +globby@11.1.0, globby@^11.0.1, globby@^11.0.4, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -9329,20 +9106,6 @@ globby@^11.0.3, globby@^11.0.4, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -globby@^9.2.0: - version "9.2.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d" - integrity sha512-ollPHROa5mcxDEkwg6bPt3QbEf4pDQSNtd6JPL1YvOvAo/7/0VAm9TccUeoTmarjPw4pfUthSCqcyfNB1I3ZSg== - dependencies: - "@types/glob" "^7.1.1" - array-union "^1.0.2" - dir-glob "^2.2.2" - fast-glob "^2.2.6" - glob "^7.1.3" - ignore "^4.0.3" - pify "^4.0.1" - slash "^2.0.0" - gopd@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" @@ -9350,7 +9113,12 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: +graceful-fs@4.2.10: + version "4.2.10" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -9377,31 +9145,18 @@ handle-thing@^2.0.0: resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e" integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== -handlebars@^4.7.6: - version "4.7.7" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" - integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== +handlebars@^4.7.7: + version "4.7.8" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" + integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== dependencies: minimist "^1.2.5" - neo-async "^2.6.0" + neo-async "^2.6.2" source-map "^0.6.1" wordwrap "^1.0.0" optionalDependencies: uglify-js "^3.1.4" -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - hard-rejection@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" @@ -9458,42 +9213,11 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has-unicode@^2.0.0, has-unicode@^2.0.1: +has-unicode@2.0.1, has-unicode@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" @@ -9518,6 +9242,13 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + he@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" @@ -9532,30 +9263,44 @@ hmac-drbg@^1.0.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -homedir-polyfill@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" - integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== - dependencies: - parse-passwd "^1.0.0" - hoopy@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== -hosted-git-info@^2.1.4, hosted-git-info@^2.7.1: +hosted-git-info@^2.1.4: version "2.8.9" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== -hosted-git-info@^4.0.1: +hosted-git-info@^3.0.6: + version "3.0.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.8.tgz#6e35d4cc87af2c5f816e4cb9ce350ba87a3f370d" + integrity sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw== + dependencies: + lru-cache "^6.0.0" + +hosted-git-info@^4.0.0, hosted-git-info@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== dependencies: lru-cache "^6.0.0" +hosted-git-info@^5.0.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-5.2.1.tgz#0ba1c97178ef91f3ab30842ae63d6a272341156f" + integrity sha512-xIcQYMnhcx2Nr4JTjsFmwwnr9vldugPy9uVm0o87bjqqWMv9GaqsTeT+i99wTl0mk1uLxJtHxLb8kymqTENQsw== + dependencies: + lru-cache "^7.5.1" + +hosted-git-info@^6.0.0, hosted-git-info@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-6.1.1.tgz#629442c7889a69c05de604d52996b74fe6f26d58" + integrity sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w== + dependencies: + lru-cache "^7.5.1" + hpack.js@^2.1.6: version "2.1.6" resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" @@ -9617,10 +9362,10 @@ htmlparser2@^6.1.0: domutils "^2.5.2" entities "^2.0.0" -http-cache-semantics@^3.8.1: - version "3.8.1" - resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" - integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== +http-cache-semantics@^4.1.0, http-cache-semantics@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== http-deceiver@^1.2.7: version "1.2.7" @@ -9653,14 +9398,6 @@ http-parser-js@>=0.5.1: resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3" integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== -http-proxy-agent@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405" - integrity sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg== - dependencies: - agent-base "4" - debug "3.1.0" - http-proxy-agent@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" @@ -9670,6 +9407,15 @@ http-proxy-agent@^4.0.1: agent-base "6" debug "4" +http-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" + integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== + dependencies: + "@tootallnate/once" "2" + agent-base "6" + debug "4" + http-proxy-middleware@^2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" @@ -9690,23 +9436,6 @@ http-proxy@^1.18.1: follow-redirects "^1.0.0" requires-port "^1.0.0" -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-proxy-agent@^2.2.3: - version "2.2.4" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" - integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== - dependencies: - agent-base "^4.3.0" - debug "^3.1.0" - https-proxy-agent@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" @@ -9758,29 +9487,31 @@ identity-obj-proxy@^3.0.0: dependencies: harmony-reflect "^1.4.6" -ieee754@^1.2.1: +ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -iferr@^0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" - integrity sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA== +ignore-walk@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-5.0.1.tgz#5f199e23e1288f518d90358d461387788a154776" + integrity sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw== + dependencies: + minimatch "^5.0.1" -ignore-walk@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.4.tgz#c9a09f69b7c7b479a5d74ac1a3c0d4236d2a6335" - integrity sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ== +ignore-walk@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.5.tgz#ef8d61eab7da169078723d1f82833b36e200b0dd" + integrity sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A== dependencies: - minimatch "^3.0.4" + minimatch "^9.0.0" -ignore@^4.0.3, ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== +ignore@^5.0.4, ignore@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" + integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== -ignore@^5.1.8, ignore@^5.2.0: +ignore@^5.2.0: version "5.2.4" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== @@ -9790,14 +9521,6 @@ immer@^9.0.7: resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.21.tgz#1e025ea31a40f24fb064f1fef23e931496330176" integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA== -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -9806,14 +9529,6 @@ import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-local@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" - integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== - dependencies: - pkg-dir "^3.0.0" - resolve-cwd "^2.0.0" - import-local@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" @@ -9827,24 +9542,12 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - integrity sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg== - dependencies: - repeating "^2.0.0" - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ== - indent-string@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== -infer-owner@^1.0.3, infer-owner@^1.0.4: +infer-owner@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== @@ -9857,7 +9560,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@~2.0.4: +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -9872,19 +9575,18 @@ ini@^1.3.2, ini@^1.3.4, ini@^1.3.5: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -init-package-json@^1.10.3: - version "1.10.3" - resolved "https://registry.yarnpkg.com/init-package-json/-/init-package-json-1.10.3.tgz#45ffe2f610a8ca134f2bd1db5637b235070f6cbe" - integrity sha512-zKSiXKhQveNteyhcj1CoOP8tqp1QuxPIPBl8Bid99DGLFqA1p87M6lNgfjJHSBoWJJlidGOv5rWjyYKEB3g2Jw== +init-package-json@3.0.2, init-package-json@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/init-package-json/-/init-package-json-3.0.2.tgz#f5bc9bac93f2bdc005778bc2271be642fecfcd69" + integrity sha512-YhlQPEjNFqlGdzrBfDNRLhvoSgX7iQRgSxgsNknRQ9ITXFT7UMfVMWhBTOh2Y+25lRnGrv5Xz8yZwQ3ACR6T3A== dependencies: - glob "^7.1.1" - npm-package-arg "^4.0.0 || ^5.0.0 || ^6.0.0" + npm-package-arg "^9.0.1" promzard "^0.3.0" - read "~1.0.1" - read-package-json "1 || 2" - semver "2.x || 3.x || 4 || 5" - validate-npm-package-license "^3.0.1" - validate-npm-package-name "^3.0.0" + read "^1.0.7" + read-package-json "^5.0.0" + semver "^7.3.5" + validate-npm-package-license "^3.0.4" + validate-npm-package-name "^4.0.0" inquirer-autocomplete-prompt@^0.11.1: version "0.11.1" @@ -9919,7 +9621,28 @@ inquirer@3.1.1: strip-ansi "^3.0.0" through "^2.3.6" -inquirer@^6.0.0, inquirer@^6.2.0: +inquirer@8.2.4: + version "8.2.4" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.4.tgz#ddbfe86ca2f67649a67daa6f1051c128f684f0b4" + integrity sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^7.0.0" + +inquirer@^6.0.0: version "6.5.2" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.2.tgz#ad50942375d036d327ff528c08bd5fab089928ca" integrity sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ== @@ -9938,6 +9661,27 @@ inquirer@^6.0.0, inquirer@^6.2.0: strip-ansi "^5.1.0" through "^2.3.6" +inquirer@^8.2.4: + version "8.2.6" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.6.tgz#733b74888195d8d400a67ac332011b5fae5ea562" + integrity sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^6.0.1" + inquirerer@0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/inquirerer/-/inquirerer-0.1.3.tgz#ecf91dc672b3bf45211d7f64bf5e8d5e171fd2ad" @@ -9961,10 +9705,13 @@ interpret@^1.0.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== -ip@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - integrity sha512-rBtCAQAJm8A110nbwn6YdveUnuZH3WrC36IwkRXxDnq53JvXA2NVQvB7IHyKomxK1MJ4VDNw3UtFDdXQ+AvLYA== +ip-address@^9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" + integrity sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g== + dependencies: + jsbn "1.1.0" + sprintf-js "^1.1.3" ipaddr.js@1.9.1: version "1.9.1" @@ -9976,20 +9723,6 @@ ipaddr.js@^2.0.1: resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.1.0.tgz#2119bc447ff8c257753b196fc5f1ce08a4cdf39f" integrity sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ== -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - is-arguments@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" @@ -10034,17 +9767,12 @@ is-boolean-object@^1.1.0: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-ci@^2.0.0: +is-ci@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== @@ -10058,19 +9786,12 @@ is-core-module@^2.11.0, is-core-module@^2.5.0, is-core-module@^2.9.0: dependencies: has "^1.0.3" -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== +is-core-module@^2.8.1: + version "2.15.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== dependencies: - kind-of "^6.0.0" + hasown "^2.0.2" is-date-object@^1.0.1, is-date-object@^1.0.5: version "1.0.5" @@ -10079,63 +9800,16 @@ is-date-object@^1.0.1, is-date-object@^1.0.5: dependencies: has-tostringtag "^1.0.0" -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== - is-docker@^2.0.0, is-docker@^2.1.1: version "2.2.1" resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.0, is-extglob@^2.1.1: +is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== -is-finite@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" - integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - integrity sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw== - dependencies: - number-is-nan "^1.0.0" - is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" @@ -10151,13 +9825,6 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - integrity sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw== - dependencies: - is-extglob "^2.1.0" - is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" @@ -10165,6 +9832,16 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-lambda@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" + integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== + is-map@^2.0.1, is-map@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" @@ -10187,19 +9864,12 @@ is-number-object@^1.0.4: dependencies: has-tostringtag "^1.0.0" -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-obj@^1.0.0, is-obj@^1.0.1: +is-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg== @@ -10209,7 +9879,12 @@ is-obj@^2.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== -is-path-inside@^3.0.3: +is-path-cwd@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" + integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== + +is-path-inside@^3.0.2, is-path-inside@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== @@ -10224,7 +9899,7 @@ is-plain-obj@^3.0.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== -is-plain-object@^2.0.3, is-plain-object@^2.0.4: +is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== @@ -10276,17 +9951,17 @@ is-shared-array-buffer@^1.0.2: dependencies: call-bind "^1.0.2" -is-ssh@^1.3.0: +is-ssh@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ== dependencies: protocols "^2.0.1" -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== +is-stream@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" + integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== is-stream@^2.0.0: version "2.0.1" @@ -10325,15 +10000,15 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" -is-typedarray@^1.0.0, is-typedarray@~1.0.0: +is-typedarray@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== -is-utf8@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== is-weakmap@^2.0.1: version "2.0.1" @@ -10355,11 +10030,6 @@ is-weakset@^2.0.1: call-bind "^1.0.2" get-intrinsic "^1.1.1" -is-windows@^1.0.0, is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - is-wsl@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" @@ -10367,29 +10037,27 @@ is-wsl@^2.2.0: dependencies: is-docker "^2.0.0" -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== isarray@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: +isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== @@ -10399,11 +10067,6 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" @@ -10420,8 +10083,19 @@ istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: istanbul-lib-coverage "^3.2.0" semver "^6.3.0" -istanbul-lib-report@^3.0.0: - version "3.0.0" +istanbul-lib-instrument@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" + integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== + dependencies: + "@babel/core" "^7.23.9" + "@babel/parser" "^7.23.9" + "@istanbuljs/schema" "^0.1.3" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + +istanbul-lib-report@^3.0.0: + version "3.0.0" resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== dependencies: @@ -10455,6 +10129,15 @@ jackspeak@^2.0.3: optionalDependencies: "@pkgjs/parseargs" "^0.11.0" +jackspeak@^3.1.2: + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + jake@^10.8.5: version "10.8.7" resolved "https://registry.yarnpkg.com/jake/-/jake-10.8.7.tgz#63a32821177940c33f356e0ba44ff9d34e1c7d8f" @@ -10474,6 +10157,15 @@ jest-changed-files@^27.5.1: execa "^5.0.0" throat "^6.0.1" +jest-changed-files@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" + integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w== + dependencies: + execa "^5.0.0" + jest-util "^29.7.0" + p-limit "^3.1.0" + jest-circus@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.5.1.tgz#37a5a4459b7bf4406e53d637b49d22c65d125ecc" @@ -10499,6 +10191,32 @@ jest-circus@^27.5.1: stack-utils "^2.0.3" throat "^6.0.1" +jest-circus@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.7.0.tgz#b6817a45fcc835d8b16d5962d0c026473ee3668a" + integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + dedent "^1.0.0" + is-generator-fn "^2.0.0" + jest-each "^29.7.0" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + p-limit "^3.1.0" + pretty-format "^29.7.0" + pure-rand "^6.0.0" + slash "^3.0.0" + stack-utils "^2.0.3" + jest-cli@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.5.1.tgz#278794a6e6458ea8029547e6c6cbf673bd30b145" @@ -10517,6 +10235,23 @@ jest-cli@^27.5.1: prompts "^2.0.1" yargs "^16.2.0" +jest-cli@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995" + integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== + dependencies: + "@jest/core" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + chalk "^4.0.0" + create-jest "^29.7.0" + exit "^0.1.2" + import-local "^3.0.2" + jest-config "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + yargs "^17.3.1" + jest-config@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.5.1.tgz#5c387de33dca3f99ad6357ddeccd91bf3a0e4a41" @@ -10547,7 +10282,35 @@ jest-config@^27.5.1: slash "^3.0.0" strip-json-comments "^3.1.1" -jest-diff@^27.0.0, jest-diff@^27.5.1: +jest-config@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.7.0.tgz#bcbda8806dbcc01b1e316a46bb74085a84b0245f" + integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ== + dependencies: + "@babel/core" "^7.11.6" + "@jest/test-sequencer" "^29.7.0" + "@jest/types" "^29.6.3" + babel-jest "^29.7.0" + chalk "^4.0.0" + ci-info "^3.2.0" + deepmerge "^4.2.2" + glob "^7.1.3" + graceful-fs "^4.2.9" + jest-circus "^29.7.0" + jest-environment-node "^29.7.0" + jest-get-type "^29.6.3" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-runner "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + micromatch "^4.0.4" + parse-json "^5.2.0" + pretty-format "^29.7.0" + slash "^3.0.0" + strip-json-comments "^3.1.1" + +jest-diff@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== @@ -10567,6 +10330,16 @@ jest-diff@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + jest-docblock@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" @@ -10574,6 +10347,13 @@ jest-docblock@^27.5.1: dependencies: detect-newline "^3.0.0" +jest-docblock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" + integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== + dependencies: + detect-newline "^3.0.0" + jest-each@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.5.1.tgz#5bc87016f45ed9507fed6e4702a5b468a5b2c44e" @@ -10585,6 +10365,17 @@ jest-each@^27.5.1: jest-util "^27.5.1" pretty-format "^27.5.1" +jest-each@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.7.0.tgz#162a9b3f2328bdd991beaabffbb74745e56577d1" + integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ== + dependencies: + "@jest/types" "^29.6.3" + chalk "^4.0.0" + jest-get-type "^29.6.3" + jest-util "^29.7.0" + pretty-format "^29.7.0" + jest-environment-jsdom@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz#ea9ccd1fc610209655a77898f86b2b559516a546" @@ -10610,10 +10401,17 @@ jest-environment-node@^27.5.1: jest-mock "^27.5.1" jest-util "^27.5.1" -jest-expect-message@*, jest-expect-message@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/jest-expect-message/-/jest-expect-message-1.1.3.tgz#a3f6bd4503f5bd5d2e37b70d3126a2bdb215ec58" - integrity sha512-bTK77T4P+zto+XepAX3low8XVQxDgaEqh3jSTQOG8qvPpD69LsIdyJTa+RmnJh3HNSzJng62/44RPPc7OIlFxg== +jest-environment-node@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376" + integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-mock "^29.7.0" + jest-util "^29.7.0" jest-get-type@^27.5.1: version "27.5.1" @@ -10625,6 +10423,11 @@ jest-get-type@^29.4.3: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.4.3.tgz#1ab7a5207c995161100b5187159ca82dd48b3dd5" integrity sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg== +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + jest-haste-map@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" @@ -10664,6 +10467,25 @@ jest-haste-map@^28.1.3: optionalDependencies: fsevents "^2.3.2" +jest-haste-map@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104" + integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== + dependencies: + "@jest/types" "^29.6.3" + "@types/graceful-fs" "^4.1.3" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.9" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + jest-worker "^29.7.0" + micromatch "^4.0.4" + walker "^1.0.8" + optionalDependencies: + fsevents "^2.3.2" + jest-jasmine2@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz#a037b0034ef49a9f3d71c4375a796f3b230d1ac4" @@ -10695,6 +10517,14 @@ jest-leak-detector@^27.5.1: jest-get-type "^27.5.1" pretty-format "^27.5.1" +jest-leak-detector@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz#5b7ec0dadfdfec0ca383dc9aa016d36b5ea4c728" + integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw== + dependencies: + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + jest-matcher-utils@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" @@ -10715,6 +10545,16 @@ jest-matcher-utils@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== + dependencies: + chalk "^4.0.0" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + jest-message-util@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" @@ -10760,6 +10600,21 @@ jest-message-util@^29.5.0: slash "^3.0.0" stack-utils "^2.0.3" +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^29.6.3" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + stack-utils "^2.0.3" + jest-mock@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" @@ -10768,6 +10623,15 @@ jest-mock@^27.5.1: "@jest/types" "^27.5.1" "@types/node" "*" +jest-mock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.7.0.tgz#4e836cf60e99c6fcfabe9f99d017f3fdd50a6347" + integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + jest-util "^29.7.0" + jest-pnp-resolver@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" @@ -10783,6 +10647,11 @@ jest-regex-util@^28.0.0, jest-regex-util@^28.0.2: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-28.0.2.tgz#afdc377a3b25fb6e80825adcf76c854e5bf47ead" integrity sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw== +jest-regex-util@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52" + integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== + jest-resolve-dependencies@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz#d811ecc8305e731cc86dd79741ee98fed06f1da8" @@ -10792,6 +10661,14 @@ jest-resolve-dependencies@^27.5.1: jest-regex-util "^27.5.1" jest-snapshot "^27.5.1" +jest-resolve-dependencies@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz#1b04f2c095f37fc776ff40803dc92921b1e88428" + integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA== + dependencies: + jest-regex-util "^29.6.3" + jest-snapshot "^29.7.0" + jest-resolve@^27.4.2, jest-resolve@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.5.1.tgz#a2f1c5a0796ec18fe9eb1536ac3814c23617b384" @@ -10808,6 +10685,21 @@ jest-resolve@^27.4.2, jest-resolve@^27.5.1: resolve.exports "^1.1.0" slash "^3.0.0" +jest-resolve@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30" + integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== + dependencies: + chalk "^4.0.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-pnp-resolver "^1.2.2" + jest-util "^29.7.0" + jest-validate "^29.7.0" + resolve "^1.20.0" + resolve.exports "^2.0.0" + slash "^3.0.0" + jest-runner@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.5.1.tgz#071b27c1fa30d90540805c5645a0ec167c7b62e5" @@ -10835,6 +10727,33 @@ jest-runner@^27.5.1: source-map-support "^0.5.6" throat "^6.0.1" +jest-runner@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.7.0.tgz#809af072d408a53dcfd2e849a4c976d3132f718e" + integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ== + dependencies: + "@jest/console" "^29.7.0" + "@jest/environment" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.13.1" + graceful-fs "^4.2.9" + jest-docblock "^29.7.0" + jest-environment-node "^29.7.0" + jest-haste-map "^29.7.0" + jest-leak-detector "^29.7.0" + jest-message-util "^29.7.0" + jest-resolve "^29.7.0" + jest-runtime "^29.7.0" + jest-util "^29.7.0" + jest-watcher "^29.7.0" + jest-worker "^29.7.0" + p-limit "^3.1.0" + source-map-support "0.5.13" + jest-runtime@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.5.1.tgz#4896003d7a334f7e8e4a53ba93fb9bcd3db0a1af" @@ -10863,6 +10782,34 @@ jest-runtime@^27.5.1: slash "^3.0.0" strip-bom "^4.0.0" +jest-runtime@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.7.0.tgz#efecb3141cf7d3767a3a0cc8f7c9990587d3d817" + integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/globals" "^29.7.0" + "@jest/source-map" "^29.6.3" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + cjs-module-lexer "^1.0.0" + collect-v8-coverage "^1.0.0" + glob "^7.1.3" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + slash "^3.0.0" + strip-bom "^4.0.0" + jest-serializer@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" @@ -10899,17 +10846,31 @@ jest-snapshot@^27.5.1: pretty-format "^27.5.1" semver "^7.3.2" -jest-util@^26.1.0: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" - integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== +jest-snapshot@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.7.0.tgz#c2c574c3f51865da1bb329036778a69bf88a6be5" + integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw== dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" + "@babel/core" "^7.11.6" + "@babel/generator" "^7.7.2" + "@babel/plugin-syntax-jsx" "^7.7.2" + "@babel/plugin-syntax-typescript" "^7.7.2" + "@babel/types" "^7.3.3" + "@jest/expect-utils" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + babel-preset-current-node-syntax "^1.0.0" chalk "^4.0.0" - graceful-fs "^4.2.4" - is-ci "^2.0.0" - micromatch "^4.0.2" + expect "^29.7.0" + graceful-fs "^4.2.9" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + natural-compare "^1.4.0" + pretty-format "^29.7.0" + semver "^7.5.3" jest-util@^27.5.1: version "27.5.1" @@ -10935,6 +10896,18 @@ jest-util@^28.1.3: graceful-fs "^4.2.9" picomatch "^2.2.3" +jest-util@^29.0.0, jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + jest-util@^29.5.0: version "29.5.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.5.0.tgz#24a4d3d92fc39ce90425311b23c27a6e0ef16b8f" @@ -10959,6 +10932,18 @@ jest-validate@^27.5.1: leven "^3.1.0" pretty-format "^27.5.1" +jest-validate@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c" + integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== + dependencies: + "@jest/types" "^29.6.3" + camelcase "^6.2.0" + chalk "^4.0.0" + jest-get-type "^29.6.3" + leven "^3.1.0" + pretty-format "^29.7.0" + jest-watch-typeahead@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz#b4a6826dfb9c9420da2f7bc900de59dad11266a9" @@ -10999,6 +10984,20 @@ jest-watcher@^28.0.0: jest-util "^28.1.3" string-length "^4.0.1" +jest-watcher@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.7.0.tgz#7810d30d619c3a62093223ce6bb359ca1b28a2f2" + integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g== + dependencies: + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + emittery "^0.13.1" + jest-util "^29.7.0" + string-length "^4.0.1" + jest-worker@^26.2.1: version "26.6.2" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" @@ -11026,6 +11025,16 @@ jest-worker@^28.0.2, jest-worker@^28.1.3: merge-stream "^2.0.0" supports-color "^8.0.0" +jest-worker@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a" + integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== + dependencies: + "@types/node" "*" + jest-util "^29.7.0" + merge-stream "^2.0.0" + supports-color "^8.0.0" + jest@^27.4.3: version "27.5.1" resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" @@ -11035,6 +11044,16 @@ jest@^27.4.3: import-local "^3.0.2" jest-cli "^27.5.1" +jest@^29.6.2: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613" + integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw== + dependencies: + "@jest/core" "^29.7.0" + "@jest/types" "^29.6.3" + import-local "^3.0.2" + jest-cli "^29.7.0" + jiti@^1.18.2: version "1.18.2" resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.18.2.tgz#80c3ef3d486ebf2450d9335122b32d121f2a83cd" @@ -11045,7 +11064,14 @@ jiti@^1.18.2: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.1: +js-yaml@4.1.0, js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +js-yaml@^3.10.0, js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -11053,17 +11079,10 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== +jsbn@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" + integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== jsdom@^16.6.0: version "16.7.0" @@ -11108,7 +11127,7 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== -json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.1: +json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== @@ -11118,6 +11137,11 @@ json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-parse-even-better-errors@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz#b43d35e89c0f3be6b5fbbe9dc6c82467b30c28da" + integrity sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ== + json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" @@ -11128,7 +11152,7 @@ json-schema-traverse@^1.0.0: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== -json-schema@0.4.0, json-schema@^0.4.0: +json-schema@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== @@ -11138,16 +11162,16 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== -json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: +json-stringify-nice@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz#2c937962b80181d3f317dd39aa323e14f5a60a67" + integrity sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw== + +json-stringify-safe@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@2.x, json5@^2.1.2, json5@^2.2.0, json5@^2.2.1, json5@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - json5@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" @@ -11155,12 +11179,15 @@ json5@^1.0.2: dependencies: minimist "^1.2.0" -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" +json5@^2.1.2, json5@^2.2.0, json5@^2.2.1, json5@^2.2.2, json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +jsonc-parser@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" + integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== jsonfile@^6.0.1: version "6.1.0" @@ -11171,7 +11198,7 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsonparse@^1.2.0: +jsonparse@^1.2.0, jsonparse@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== @@ -11181,16 +11208,6 @@ jsonpointer@^5.0.0: resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-5.0.1.tgz#2110e0af0900fd37467b5907ecd13a7884a1b559" integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" - "jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.3: version "3.3.3" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" @@ -11199,26 +11216,17 @@ jsprim@^1.2.2: array-includes "^3.1.5" object.assign "^4.1.3" -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== - dependencies: - is-buffer "^1.1.5" +just-diff-apply@^5.2.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/just-diff-apply/-/just-diff-apply-5.5.0.tgz#771c2ca9fa69f3d2b54e7c3f5c1dfcbcc47f9f0f" + integrity sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw== -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== +just-diff@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/just-diff/-/just-diff-6.0.2.tgz#03b65908543ac0521caf6d8eb85035f7d27ea285" + integrity sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA== -kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: +kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -11253,29 +11261,87 @@ launch-editor@^2.6.0: picocolors "^1.0.0" shell-quote "^1.7.3" -lerna@^3.22.1: - version "3.22.1" - resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.22.1.tgz#82027ac3da9c627fd8bf02ccfeff806a98e65b62" - integrity sha512-vk1lfVRFm+UuEFA7wkLKeSF7Iz13W+N/vFd48aW2yuS7Kv0RbNm2/qcDPV863056LMfkRlsEe+QYOw3palj5Lg== - dependencies: - "@lerna/add" "3.21.0" - "@lerna/bootstrap" "3.21.0" - "@lerna/changed" "3.21.0" - "@lerna/clean" "3.21.0" - "@lerna/cli" "3.18.5" - "@lerna/create" "3.22.0" - "@lerna/diff" "3.21.0" - "@lerna/exec" "3.21.0" - "@lerna/import" "3.22.0" - "@lerna/info" "3.21.0" - "@lerna/init" "3.21.0" - "@lerna/link" "3.21.0" - "@lerna/list" "3.21.0" - "@lerna/publish" "3.22.1" - "@lerna/run" "3.21.0" - "@lerna/version" "3.22.1" - import-local "^2.0.0" - npmlog "^4.1.2" +lerna@^6: + version "6.6.2" + resolved "https://registry.yarnpkg.com/lerna/-/lerna-6.6.2.tgz#ad921f913aca4e7307123a598768b6f15ca5804f" + integrity sha512-W4qrGhcdutkRdHEaDf9eqp7u4JvI+1TwFy5woX6OI8WPe4PYBdxuILAsvhp614fUG41rKSGDKlOh+AWzdSidTg== + dependencies: + "@lerna/child-process" "6.6.2" + "@lerna/create" "6.6.2" + "@lerna/legacy-package-management" "6.6.2" + "@npmcli/arborist" "6.2.3" + "@npmcli/run-script" "4.1.7" + "@nrwl/devkit" ">=15.5.2 < 16" + "@octokit/plugin-enterprise-rest" "6.0.1" + "@octokit/rest" "19.0.3" + byte-size "7.0.0" + chalk "4.1.0" + clone-deep "4.0.1" + cmd-shim "5.0.0" + columnify "1.6.0" + config-chain "1.1.12" + conventional-changelog-angular "5.0.12" + conventional-changelog-core "4.2.4" + conventional-recommended-bump "6.1.0" + cosmiconfig "7.0.0" + dedent "0.7.0" + dot-prop "6.0.1" + envinfo "^7.7.4" + execa "5.0.0" + fs-extra "9.1.0" + get-port "5.1.1" + get-stream "6.0.0" + git-url-parse "13.1.0" + glob-parent "5.1.2" + globby "11.1.0" + graceful-fs "4.2.10" + has-unicode "2.0.1" + import-local "^3.0.2" + init-package-json "3.0.2" + inquirer "^8.2.4" + is-ci "2.0.0" + is-stream "2.0.0" + js-yaml "^4.1.0" + libnpmaccess "^6.0.3" + libnpmpublish "7.1.4" + load-json-file "6.2.0" + make-dir "3.1.0" + minimatch "3.0.5" + multimatch "5.0.0" + node-fetch "2.6.7" + npm-package-arg "8.1.1" + npm-packlist "5.1.1" + npm-registry-fetch "^14.0.3" + npmlog "^6.0.2" + nx ">=15.5.2 < 16" + p-map "4.0.0" + p-map-series "2.1.0" + p-pipe "3.1.0" + p-queue "6.6.2" + p-reduce "2.1.0" + p-waterfall "2.1.1" + pacote "15.1.1" + pify "5.0.0" + read-cmd-shim "3.0.0" + read-package-json "5.0.1" + resolve-from "5.0.0" + rimraf "^4.4.1" + semver "^7.3.8" + signal-exit "3.0.7" + slash "3.0.0" + ssri "9.0.1" + strong-log-transformer "2.1.0" + tar "6.1.11" + temp-dir "1.0.0" + typescript "^3 || ^4" + upath "^2.0.1" + uuid "8.3.2" + validate-npm-package-license "3.0.4" + validate-npm-package-name "4.0.0" + write-file-atomic "4.0.1" + write-pkg "4.0.0" + yargs "16.2.0" + yargs-parser "20.2.4" leven@^3.1.0: version "3.1.0" @@ -11298,6 +11364,30 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +libnpmaccess@^6.0.3: + version "6.0.4" + resolved "https://registry.yarnpkg.com/libnpmaccess/-/libnpmaccess-6.0.4.tgz#2dd158bd8a071817e2207d3b201d37cf1ad6ae6b" + integrity sha512-qZ3wcfIyUoW0+qSFkMBovcTrSGJ3ZeyvpR7d5N9pEYv/kXs8sHP2wiqEIXBKLFrZlmM0kR0RJD7mtfLngtlLag== + dependencies: + aproba "^2.0.0" + minipass "^3.1.1" + npm-package-arg "^9.0.1" + npm-registry-fetch "^13.0.0" + +libnpmpublish@7.1.4: + version "7.1.4" + resolved "https://registry.yarnpkg.com/libnpmpublish/-/libnpmpublish-7.1.4.tgz#a0d138e00e52a0c71ffc82273acf0082fc2dfb36" + integrity sha512-mMntrhVwut5prP4rJ228eEbEyvIzLWhqFuY90j5QeXBCTT2pWSMno7Yo2S2qplPUr02zPurGH4heGLZ+wORczg== + dependencies: + ci-info "^3.6.1" + normalize-package-data "^5.0.0" + npm-package-arg "^10.1.0" + npm-registry-fetch "^14.0.3" + proc-log "^3.0.0" + semver "^7.3.7" + sigstore "^1.4.0" + ssri "^10.0.1" + libsodium-sumo@^0.7.11: version "0.7.11" resolved "https://registry.yarnpkg.com/libsodium-sumo/-/libsodium-sumo-0.7.11.tgz#ab0389e2424fca5c1dc8c4fd394906190da88a11" @@ -11320,16 +11410,20 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - integrity sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A== +lines-and-columns@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-2.0.4.tgz#d00318855905d2660d8c0822e3f5a4715855fc42" + integrity sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A== + +load-json-file@6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-6.2.0.tgz#5c7770b42cafa97074ca2848707c61662f4251a1" + integrity sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ== dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" + graceful-fs "^4.1.15" + parse-json "^5.0.0" + strip-bom "^4.0.0" + type-fest "^0.6.0" load-json-file@^4.0.0: version "4.0.0" @@ -11341,17 +11435,6 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" -load-json-file@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-5.3.0.tgz#4d3c1e01fa1c03ea78a60ac7af932c9ce53403f3" - integrity sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw== - dependencies: - graceful-fs "^4.1.15" - parse-json "^4.0.0" - pify "^4.0.1" - strip-bom "^3.0.0" - type-fest "^0.3.0" - loader-runner@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" @@ -11401,41 +11484,16 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA== - -lodash.clonedeep@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== - lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== -lodash.get@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== - lodash.ismatch@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" integrity sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g== -lodash.isregexp@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.isregexp/-/lodash.isregexp-4.0.1.tgz#e13e647b30cd559752a04cd912086faf7da1c30b" - integrity sha512-rw9+95tYcUa9nQ1FgdtKvO+hReLGNqnNMHfLq8SwK5Mo6D0R0tIsnRHGHaTHSKeYBaLCJ1JvXWdz4UmpPZ2bag== - -lodash.isstring@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" - integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw== - lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" @@ -11446,52 +11504,35 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.set@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" - integrity sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg== - lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== -lodash.template@^4.0.2, lodash.template@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" - -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" - -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash@4.x, lodash@^4.17.12, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.7.0: +lodash@^4.17.12, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + long@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.0.0, long@^5.2.0, long@^5.2.1, long@^5.2.3: +long@^5.2.0, long@^5.2.1: version "5.2.3" resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== @@ -11503,14 +11544,6 @@ loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - integrity sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ== - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - lower-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" @@ -11518,6 +11551,11 @@ lower-case@^2.0.2: dependencies: tslib "^2.0.3" +lru-cache@^10.2.0: + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -11532,6 +11570,11 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" +lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: + version "7.18.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" + integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== + "lru-cache@^9.1.1 || ^10.0.0": version "10.0.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.0.0.tgz#b9e2a6a72a129d81ab317202d93c7691df727e61" @@ -11549,11 +11592,6 @@ lz-string@^1.5.0: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== -macos-release@^2.2.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.1.tgz#bccac4a8f7b93163a8d163b8ebf385b3c5f55bf9" - integrity sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A== - magic-string@^0.25.0, magic-string@^0.25.7: version "0.25.9" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" @@ -11561,14 +11599,14 @@ magic-string@^0.25.0, magic-string@^0.25.7: dependencies: sourcemap-codec "^1.4.8" -make-dir@^1.0.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" - integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== +make-dir@3.1.0, make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== dependencies: - pify "^3.0.0" + semver "^6.0.0" -make-dir@^2.0.0, make-dir@^2.1.0: +make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== @@ -11576,34 +11614,53 @@ make-dir@^2.0.0, make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" -make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -make-error@1.x, make-error@^1.1.1: +make-error@^1.1.1, make-error@^1.3.6: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -make-fetch-happen@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-5.0.2.tgz#aa8387104f2687edca01c8687ee45013d02d19bd" - integrity sha512-07JHC0r1ykIoruKO8ifMXu+xEU8qOXDFETylktdug6vJDACnP+HKevOu3PXyNPzFyTSlz8vrBYlBO1JZRe8Cag== - dependencies: - agentkeepalive "^3.4.1" - cacache "^12.0.0" - http-cache-semantics "^3.8.1" - http-proxy-agent "^2.1.0" - https-proxy-agent "^2.2.3" - lru-cache "^5.1.1" - mississippi "^3.0.0" - node-fetch-npm "^2.0.2" - promise-retry "^1.1.1" - socks-proxy-agent "^4.0.0" - ssri "^6.0.0" +make-fetch-happen@^10.0.3, make-fetch-happen@^10.0.6: + version "10.2.1" + resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz#f5e3835c5e9817b617f2770870d9492d28678164" + integrity sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w== + dependencies: + agentkeepalive "^4.2.1" + cacache "^16.1.0" + http-cache-semantics "^4.1.0" + http-proxy-agent "^5.0.0" + https-proxy-agent "^5.0.0" + is-lambda "^1.0.1" + lru-cache "^7.7.1" + minipass "^3.1.6" + minipass-collect "^1.0.2" + minipass-fetch "^2.0.3" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + negotiator "^0.6.3" + promise-retry "^2.0.1" + socks-proxy-agent "^7.0.0" + ssri "^9.0.0" + +make-fetch-happen@^11.0.0, make-fetch-happen@^11.0.1, make-fetch-happen@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-11.1.1.tgz#85ceb98079584a9523d4bf71d32996e7e208549f" + integrity sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w== + dependencies: + agentkeepalive "^4.2.1" + cacache "^17.0.0" + http-cache-semantics "^4.1.1" + http-proxy-agent "^5.0.0" + https-proxy-agent "^5.0.0" + is-lambda "^1.0.1" + lru-cache "^7.7.1" + minipass "^5.0.0" + minipass-fetch "^3.0.0" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + negotiator "^0.6.3" + promise-retry "^2.0.1" + socks-proxy-agent "^7.0.0" + ssri "^10.0.0" makeerror@1.0.12: version "1.0.12" @@ -11612,33 +11669,16 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== - -map-obj@^1.0.0, map-obj@^1.0.1: +map-obj@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== -map-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" - integrity sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ== - map-obj@^4.0.0: version "4.3.0" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== - dependencies: - object-visit "^1.0.0" - md5.js@^1.3.4: version "1.3.5" resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" @@ -11684,37 +11724,6 @@ memoizee@^0.4.15: next-tick "^1.1.0" timers-ext "^0.1.7" -meow@^3.3.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" - integrity sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA== - dependencies: - camelcase-keys "^2.0.0" - decamelize "^1.1.2" - loud-rejection "^1.0.0" - map-obj "^1.0.1" - minimist "^1.1.3" - normalize-package-data "^2.3.4" - object-assign "^4.0.1" - read-pkg-up "^1.0.1" - redent "^1.0.0" - trim-newlines "^1.0.0" - -meow@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/meow/-/meow-4.0.1.tgz#d48598f6f4b1472f35bf6317a95945ace347f975" - integrity sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A== - dependencies: - camelcase-keys "^4.0.0" - decamelize-keys "^1.0.0" - loud-rejection "^1.0.0" - minimist "^1.1.3" - minimist-options "^3.0.1" - normalize-package-data "^2.3.4" - read-pkg-up "^3.0.0" - redent "^2.0.0" - trim-newlines "^2.0.0" - meow@^8.0.0: version "8.1.2" resolved "https://registry.yarnpkg.com/meow/-/meow-8.1.2.tgz#bcbe45bda0ee1729d350c03cffc8395a36c4e897" @@ -11742,7 +11751,7 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: +merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== @@ -11752,25 +11761,6 @@ methods@~1.1.2: resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" @@ -11792,7 +11782,7 @@ mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: +mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.24, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -11836,6 +11826,13 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== +minimatch@3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.5.tgz#4da8f1290ee0f0f8e83d60ca69f8f134068604a3" + integrity sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw== + dependencies: + brace-expansion "^1.1.7" + minimatch@5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7" @@ -11843,7 +11840,7 @@ minimatch@5.1.0: dependencies: brace-expansion "^2.0.1" -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -11857,6 +11854,27 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" +minimatch@^6.1.6: + version "6.2.0" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-6.2.0.tgz#2b70fd13294178c69c04dfc05aebdb97a4e79e42" + integrity sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^8.0.2: + version "8.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-8.0.4.tgz#847c1b25c014d4e9a7f68aaf63dedd668a626229" + integrity sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.0, minimatch@^9.0.4: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== + dependencies: + brace-expansion "^2.0.1" + minimatch@^9.0.1: version "9.0.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.2.tgz#397e387fff22f6795844d00badc903a3d5de7057" @@ -11873,81 +11891,119 @@ minimist-options@4.1.0: is-plain-obj "^1.1.0" kind-of "^6.0.3" -minimist-options@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" - integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - minimist@1.2.6: version "1.2.6" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== -minimist@1.2.8, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: +minimist@1.2.8, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -minipass@^2.3.5, minipass@^2.6.0, minipass@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" - integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== +minipass-collect@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" + integrity sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA== dependencies: - safe-buffer "^5.1.2" - yallist "^3.0.0" + minipass "^3.0.0" + +minipass-fetch@^2.0.3: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-2.1.2.tgz#95560b50c472d81a3bc76f20ede80eaed76d8add" + integrity sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA== + dependencies: + minipass "^3.1.6" + minipass-sized "^1.0.3" + minizlib "^2.1.2" + optionalDependencies: + encoding "^0.1.13" + +minipass-fetch@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-3.0.5.tgz#f0f97e40580affc4a35cc4a1349f05ae36cb1e4c" + integrity sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg== + dependencies: + minipass "^7.0.3" + minipass-sized "^1.0.3" + minizlib "^2.1.2" + optionalDependencies: + encoding "^0.1.13" + +minipass-flush@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/minipass-flush/-/minipass-flush-1.0.5.tgz#82e7135d7e89a50ffe64610a787953c4c4cbb373" + integrity sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw== + dependencies: + minipass "^3.0.0" + +minipass-json-stream@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/minipass-json-stream/-/minipass-json-stream-1.0.2.tgz#5121616c77a11c406c3ffa77509e0b77bb267ec3" + integrity sha512-myxeeTm57lYs8pH2nxPzmEEg8DGIgW+9mv6D4JZD2pa81I/OBjeU7PtICXV6c9eRGTA5JMDsuIPUZRCyBMYNhg== + dependencies: + jsonparse "^1.3.1" + minipass "^3.0.0" + +minipass-pipeline@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz#68472f79711c084657c067c5c6ad93cddea8214c" + integrity sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A== + dependencies: + minipass "^3.0.0" + +minipass-sized@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/minipass-sized/-/minipass-sized-1.0.3.tgz#70ee5a7c5052070afacfbc22977ea79def353b70" + integrity sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g== + dependencies: + minipass "^3.0.0" + +minipass@^3.0.0, minipass@^3.1.1, minipass@^3.1.6: + version "3.3.6" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" + integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== + dependencies: + yallist "^4.0.0" + +minipass@^4.0.0, minipass@^4.2.4: + version "4.2.8" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.8.tgz#f0010f64393ecfc1d1ccb5f582bcaf45f48e1a3a" + integrity sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ== + +minipass@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" + integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== "minipass@^5.0.0 || ^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/minipass/-/minipass-6.0.2.tgz#542844b6c4ce95b202c0995b0a471f1229de4c81" integrity sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w== -minizlib@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" - integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== - dependencies: - minipass "^2.9.0" - -mississippi@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022" - integrity sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA== - dependencies: - concat-stream "^1.5.0" - duplexify "^3.4.2" - end-of-stream "^1.1.0" - flush-write-stream "^1.0.0" - from2 "^2.1.0" - parallel-transform "^1.1.0" - pump "^3.0.0" - pumpify "^1.3.3" - stream-each "^1.1.0" - through2 "^2.0.0" +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.3, minipass@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" + integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== +minizlib@^2.1.1, minizlib@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" + minipass "^3.0.0" + yallist "^4.0.0" -mkdirp-promise@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/mkdirp-promise/-/mkdirp-promise-5.0.1.tgz#e9b8f68e552c68a9c1713b84883f7a1dd039b8a1" - integrity sha512-Hepn5kb1lJPtVW84RFT40YG1OddBNTOVUZR2bzQUHc+Z03en8/3uX0+060JDhcEzyO08HmipsN9DcnFMxhIL9w== +mkdirp-infer-owner@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mkdirp-infer-owner/-/mkdirp-infer-owner-2.0.0.tgz#55d3b368e7d89065c38f32fd38e638f0ab61d316" + integrity sha512-sdqtiFt3lkOaYvTXSRIUjkIdPTcxgv5+fgqYE/5qgwdw12cOrAuzzgzvVExIkH/ul1oeHN3bCLOWSG3XOqbKKw== dependencies: - mkdirp "*" - -mkdirp@*: - version "3.0.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50" - integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg== + chownr "^2.0.0" + infer-owner "^1.0.4" + mkdirp "^1.0.3" -mkdirp@1.0.4, mkdirp@1.x, mkdirp@^1.0.4: +mkdirp@1.0.4, mkdirp@^1.0.3, mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -11957,7 +12013,7 @@ mkdirp@3.0.0: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.0.tgz#758101231418bda24435c0888a91d9bd91f1372d" integrity sha512-7+JDnNsyCvZXoUJdkMR0oUE2AmAdsNXGTmRbiOjYIwQ6q+bL6NwrozGQdPcmYaNcrhH37F50HHBUzoaBV6FITQ== -mkdirp@^0.5.1, mkdirp@^0.5.5, mkdirp@~0.5.1: +mkdirp@~0.5.1: version "0.5.6" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== @@ -11969,18 +12025,6 @@ modify-values@^1.0.0: resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== -move-concurrently@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" - integrity sha512-hdrFxZOycD/g6A6SoI2bB5NA/5NEqD0569+S47WZhPvm46sD50ZHdYaFmnua5lndde9rCHGjmfK7Z8BuCt/PcQ== - dependencies: - aproba "^1.1.1" - copy-concurrently "^1.0.0" - fs-write-stream-atomic "^1.0.8" - mkdirp "^0.5.1" - rimraf "^2.5.4" - run-queue "^1.0.3" - ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" @@ -11991,7 +12035,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0, ms@^2.1.1: +ms@2.1.3, ms@^2.0.0, ms@^2.1.1, ms@^2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -12004,14 +12048,15 @@ multicast-dns@^7.2.5: dns-packet "^5.2.2" thunky "^1.0.2" -multimatch@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-3.0.0.tgz#0e2534cc6bc238d9ab67e1b9cd5fcd85a6dbf70b" - integrity sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA== +multimatch@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-5.0.0.tgz#932b800963cea7a31a033328fa1e0c3a1874dbe6" + integrity sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA== dependencies: - array-differ "^2.0.3" - array-union "^1.0.2" - arrify "^1.0.1" + "@types/minimatch" "^3.0.3" + array-differ "^3.0.0" + array-union "^2.1.0" + arrify "^2.0.1" minimatch "^3.0.4" mute-stream@0.0.7: @@ -12019,12 +12064,12 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== -mute-stream@~0.0.4: +mute-stream@0.0.8, mute-stream@~0.0.4: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -mz@^2.5.0, mz@^2.7.0: +mz@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== @@ -12038,23 +12083,6 @@ nanoid@^3.3.6: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - natural-compare-lite@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" @@ -12065,12 +12093,12 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -negotiator@0.6.3: +negotiator@0.6.3, negotiator@^0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== -neo-async@^2.6.0, neo-async@^2.6.2: +neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== @@ -12080,11 +12108,6 @@ next-tick@1, next-tick@^1.1.0: resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== - no-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" @@ -12093,27 +12116,15 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" -node-environment-flags@^1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.6.tgz#a30ac13621f6f7d674260a54dede048c3982c088" - integrity sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw== - dependencies: - object.getownpropertydescriptors "^2.0.3" - semver "^5.7.0" - -node-fetch-npm@^2.0.2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/node-fetch-npm/-/node-fetch-npm-2.0.4.tgz#6507d0e17a9ec0be3bec516958a497cec54bf5a4" - integrity sha512-iOuIQDWDyjhv9qSDrj9aq/klt6F9z1p2otB3AV7v3zBDcL/x+OfGsvGQZZCcMZbUf4Ujw1xGNQkjvGnVT22cKg== - dependencies: - encoding "^0.1.11" - json-parse-better-errors "^1.0.0" - safe-buffer "^5.1.1" +node-addon-api@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161" + integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A== -node-fetch@^2.5.0: - version "2.6.12" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.12.tgz#02eb8e22074018e3d5a83016649d04df0e348fba" - integrity sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g== +node-fetch@2.6.7: + version "2.6.7" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== dependencies: whatwg-url "^5.0.0" @@ -12129,22 +12140,27 @@ node-forge@^1: resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== -node-gyp@^5.0.2: - version "5.1.1" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-5.1.1.tgz#eb915f7b631c937d282e33aed44cb7a025f62a3e" - integrity sha512-WH0WKGi+a4i4DUt2mHnvocex/xPLp9pYt5R6M2JdFB7pJ7Z34hveZ4nDTGTiLXCkitA9T8HFZjhinBCiVHYcWw== +node-gyp-build@^4.3.0: + version "4.8.2" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.2.tgz#4f802b71c1ab2ca16af830e6c1ea7dd1ad9496fa" + integrity sha512-IRUxE4BVsHWXkV/SFOut4qTlagw2aM8T5/vnTsmrHJvVoKueJHRc/JaFND7QDDc61kLYUJ6qlZM3sqTSyx2dTw== + +node-gyp@^9.0.0: + version "9.4.1" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-9.4.1.tgz#8a1023e0d6766ecb52764cc3a734b36ff275e185" + integrity sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ== dependencies: env-paths "^2.2.0" + exponential-backoff "^3.1.1" glob "^7.1.4" - graceful-fs "^4.2.2" - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.1.2" - request "^2.88.0" - rimraf "^2.6.3" - semver "^5.7.1" - tar "^4.4.12" - which "^1.3.1" + graceful-fs "^4.2.6" + make-fetch-happen "^10.0.3" + nopt "^6.0.0" + npmlog "^6.0.0" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.2" + which "^2.0.2" node-int64@^0.4.0: version "0.4.0" @@ -12156,20 +12172,39 @@ node-releases@^2.0.12: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.12.tgz#35627cc224a23bfb06fb3380f2b3afaaa7eb1039" integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== + node-releases@^2.0.8: version "2.0.10" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== -nopt@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.3.tgz#a375cad9d02fd921278d954c2254d5aa57e15e48" - integrity sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg== +noms@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859" + integrity sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow== + dependencies: + inherits "^2.0.1" + readable-stream "~1.0.31" + +nopt@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d" + integrity sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g== + dependencies: + abbrev "^1.0.0" + +nopt@^7.0.0: + version "7.2.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7" + integrity sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w== dependencies: - abbrev "1" - osenv "^0.1.4" + abbrev "^2.0.0" -normalize-package-data@^2.0.0, normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.3.5, normalize-package-data@^2.4.0, normalize-package-data@^2.5.0: +normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== @@ -12189,6 +12224,26 @@ normalize-package-data@^3.0.0: semver "^7.3.4" validate-npm-package-license "^3.0.1" +normalize-package-data@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-4.0.1.tgz#b46b24e0616d06cadf9d5718b29b6d445a82a62c" + integrity sha512-EBk5QKKuocMJhB3BILuKhmaPjI8vNRSpIfO9woLC6NyHVkKKdVEdAO1mrT0ZfxNR1lKwCcTkuZfmGIFdizZ8Pg== + dependencies: + hosted-git-info "^5.0.0" + is-core-module "^2.8.1" + semver "^7.3.5" + validate-npm-package-license "^3.0.4" + +normalize-package-data@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-5.0.0.tgz#abcb8d7e724c40d88462b84982f7cbf6859b4588" + integrity sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q== + dependencies: + hosted-git-info "^6.0.0" + is-core-module "^2.8.1" + semver "^7.3.5" + validate-npm-package-license "^3.0.4" + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -12199,71 +12254,141 @@ normalize-range@^0.1.2: resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== -normalize-url@^6.0.1, normalize-url@^6.1.0: +normalize-url@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== -npm-bundled@^1.0.1: +npm-bundled@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.2.tgz#944c78789bd739035b70baa2ca5cc32b8d860bc1" integrity sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ== dependencies: npm-normalize-package-bin "^1.0.1" -npm-lifecycle@^3.1.2: - version "3.1.5" - resolved "https://registry.yarnpkg.com/npm-lifecycle/-/npm-lifecycle-3.1.5.tgz#9882d3642b8c82c815782a12e6a1bfeed0026309" - integrity sha512-lDLVkjfZmvmfvpvBzA4vzee9cn+Me4orq0QF8glbswJVEbIcSNWib7qGOffolysc3teCqbbPZZkzbr3GQZTL1g== +npm-bundled@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-3.0.1.tgz#cca73e15560237696254b10170d8f86dad62da25" + integrity sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ== dependencies: - byline "^5.0.0" - graceful-fs "^4.1.15" - node-gyp "^5.0.2" - resolve-from "^4.0.0" - slide "^1.1.6" - uid-number "0.0.6" - umask "^1.1.0" - which "^1.3.1" + npm-normalize-package-bin "^3.0.0" -npm-normalize-package-bin@^1.0.0, npm-normalize-package-bin@^1.0.1: +npm-install-checks@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-6.3.0.tgz#046552d8920e801fa9f919cad569545d60e826fe" + integrity sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw== + dependencies: + semver "^7.1.1" + +npm-normalize-package-bin@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== -"npm-package-arg@^4.0.0 || ^5.0.0 || ^6.0.0", npm-package-arg@^6.0.0, npm-package-arg@^6.1.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-6.1.1.tgz#02168cb0a49a2b75bf988a28698de7b529df5cb7" - integrity sha512-qBpssaL3IOZWi5vEKUKW0cO7kzLeT+EQO9W8RsLOZf76KF9E/K9+wH0C7t06HXPpaH8WH5xF1MExLuCwbTqRUg== +npm-normalize-package-bin@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-2.0.0.tgz#9447a1adaaf89d8ad0abe24c6c84ad614a675fff" + integrity sha512-awzfKUO7v0FscrSpRoogyNm0sajikhBWpU0QMrW09AMi9n1PoKU6WaIqUzuJSQnpciZZmJ/jMZ2Egfmb/9LiWQ== + +npm-normalize-package-bin@^3.0.0, npm-normalize-package-bin@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz#25447e32a9a7de1f51362c61a559233b89947832" + integrity sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ== + +npm-package-arg@8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-8.1.1.tgz#00ebf16ac395c63318e67ce66780a06db6df1b04" + integrity sha512-CsP95FhWQDwNqiYS+Q0mZ7FAEDytDZAkNxQqea6IaAFJTAY9Lhhqyl0irU/6PMc7BGfUmnsbHcqxJD7XuVM/rg== dependencies: - hosted-git-info "^2.7.1" - osenv "^0.1.5" - semver "^5.6.0" + hosted-git-info "^3.0.6" + semver "^7.0.0" validate-npm-package-name "^3.0.0" -npm-packlist@^1.4.4: - version "1.4.8" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.8.tgz#56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e" - integrity sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A== +npm-package-arg@^10.0.0, npm-package-arg@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-10.1.0.tgz#827d1260a683806685d17193073cc152d3c7e9b1" + integrity sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA== + dependencies: + hosted-git-info "^6.0.0" + proc-log "^3.0.0" + semver "^7.3.5" + validate-npm-package-name "^5.0.0" + +npm-package-arg@^9.0.1: + version "9.1.2" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-9.1.2.tgz#fc8acecb00235f42270dda446f36926ddd9ac2bc" + integrity sha512-pzd9rLEx4TfNJkovvlBSLGhq31gGu2QDexFPWT19yCDh0JgnRhlBLNo5759N0AJmBk+kQ9Y/hXoLnlgFD+ukmg== dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" + hosted-git-info "^5.0.0" + proc-log "^2.0.1" + semver "^7.3.5" + validate-npm-package-name "^4.0.0" + +npm-packlist@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-5.1.1.tgz#79bcaf22a26b6c30aa4dd66b976d69cc286800e0" + integrity sha512-UfpSvQ5YKwctmodvPPkK6Fwk603aoVsf8AEbmVKAEECrfvL8SSe1A2YIwrJ6xmTHAITKPwwZsWo7WwEbNk0kxw== + dependencies: + glob "^8.0.1" + ignore-walk "^5.0.1" + npm-bundled "^1.1.2" npm-normalize-package-bin "^1.0.1" -npm-pick-manifest@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-3.0.2.tgz#f4d9e5fd4be2153e5f4e5f9b7be8dc419a99abb7" - integrity sha512-wNprTNg+X5nf+tDi+hbjdHhM4bX+mKqv6XmPh7B5eG+QY9VARfQPfCEH013H5GqfNj6ee8Ij2fg8yk0mzps1Vw== +npm-packlist@^7.0.0: + version "7.0.4" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-7.0.4.tgz#033bf74110eb74daf2910dc75144411999c5ff32" + integrity sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q== dependencies: - figgy-pudding "^3.5.1" - npm-package-arg "^6.0.0" - semver "^5.4.1" + ignore-walk "^6.0.0" -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== +npm-pick-manifest@^8.0.0, npm-pick-manifest@^8.0.1: + version "8.0.2" + resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-8.0.2.tgz#2159778d9c7360420c925c1a2287b5a884c713aa" + integrity sha512-1dKY+86/AIiq1tkKVD3l0WI+Gd3vkknVGAggsFeBkTvbhMQ1OND/LKkYv4JtXPKUJ8bOTCyLiqEg2P6QNdK+Gg== dependencies: - path-key "^2.0.0" + npm-install-checks "^6.0.0" + npm-normalize-package-bin "^3.0.0" + npm-package-arg "^10.0.0" + semver "^7.3.5" + +npm-registry-fetch@14.0.3: + version "14.0.3" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz#8545e321c2b36d2c6fe6e009e77e9f0e527f547b" + integrity sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA== + dependencies: + make-fetch-happen "^11.0.0" + minipass "^4.0.0" + minipass-fetch "^3.0.0" + minipass-json-stream "^1.0.1" + minizlib "^2.1.2" + npm-package-arg "^10.0.0" + proc-log "^3.0.0" + +npm-registry-fetch@^13.0.0: + version "13.3.1" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-13.3.1.tgz#bb078b5fa6c52774116ae501ba1af2a33166af7e" + integrity sha512-eukJPi++DKRTjSBRcDZSDDsGqRK3ehbxfFUcgaRd0Yp6kRwOwh2WVn0r+8rMB4nnuzvAk6rQVzl6K5CkYOmnvw== + dependencies: + make-fetch-happen "^10.0.6" + minipass "^3.1.6" + minipass-fetch "^2.0.3" + minipass-json-stream "^1.0.1" + minizlib "^2.1.2" + npm-package-arg "^9.0.1" + proc-log "^2.0.0" + +npm-registry-fetch@^14.0.0, npm-registry-fetch@^14.0.3: + version "14.0.5" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-14.0.5.tgz#fe7169957ba4986a4853a650278ee02e568d115d" + integrity sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA== + dependencies: + make-fetch-happen "^11.0.0" + minipass "^5.0.0" + minipass-fetch "^3.0.0" + minipass-json-stream "^1.0.1" + minizlib "^2.1.2" + npm-package-arg "^10.0.0" + proc-log "^3.0.0" npm-run-path@^4.0.1: version "4.0.1" @@ -12272,15 +12397,25 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -npmlog@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== +npmlog@6.0.2, npmlog@^6.0.0, npmlog@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830" + integrity sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg== dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" + are-we-there-yet "^3.0.0" + console-control-strings "^1.1.0" + gauge "^4.0.3" + set-blocking "^2.0.0" + +npmlog@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-7.0.1.tgz#7372151a01ccb095c47d8bf1d0771a4ff1f53ac8" + integrity sha512-uJ0YFk/mCQpLBt+bxN88AKd+gyqZvZDbtiNxk6Waqcj2aPRyfVx8ITawkyQynxUagInjdYT1+qj4NfA5KJJUxg== + dependencies: + are-we-there-yet "^4.0.0" + console-control-strings "^1.1.0" + gauge "^5.0.0" + set-blocking "^2.0.0" nth-check@^1.0.2: version "1.0.2" @@ -12296,35 +12431,67 @@ nth-check@^2.0.1: dependencies: boolbase "^1.0.0" -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ== - nwsapi@^2.2.0: version "2.2.4" resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.4.tgz#fd59d5e904e8e1f03c25a7d5a15cfa16c714a1e5" integrity sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g== -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - -object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +nx@15.9.7, "nx@>=15.5.2 < 16": + version "15.9.7" + resolved "https://registry.yarnpkg.com/nx/-/nx-15.9.7.tgz#f0e713cedb8637a517d9c4795c99afec4959a1b6" + integrity sha512-1qlEeDjX9OKZEryC8i4bA+twNg+lB5RKrozlNwWx/lLJHqWPUfvUTvxh+uxlPYL9KzVReQjUuxMLFMsHNqWUrA== + dependencies: + "@nrwl/cli" "15.9.7" + "@nrwl/tao" "15.9.7" + "@parcel/watcher" "2.0.4" + "@yarnpkg/lockfile" "^1.1.0" + "@yarnpkg/parsers" "3.0.0-rc.46" + "@zkochan/js-yaml" "0.0.6" + axios "^1.0.0" + chalk "^4.1.0" + cli-cursor "3.1.0" + cli-spinners "2.6.1" + cliui "^7.0.2" + dotenv "~10.0.0" + enquirer "~2.3.6" + fast-glob "3.2.7" + figures "3.2.0" + flat "^5.0.2" + fs-extra "^11.1.0" + glob "7.1.4" + ignore "^5.0.4" + js-yaml "4.1.0" + jsonc-parser "3.2.0" + lines-and-columns "~2.0.3" + minimatch "3.0.5" + npm-run-path "^4.0.1" + open "^8.4.0" + semver "7.5.4" + string-width "^4.2.3" + strong-log-transformer "^2.1.0" + tar-stream "~2.2.0" + tmp "~0.2.1" + tsconfig-paths "^4.1.2" + tslib "^2.3.0" + v8-compile-cache "2.3.0" + yargs "^17.6.2" + yargs-parser "21.1.1" + optionalDependencies: + "@nrwl/nx-darwin-arm64" "15.9.7" + "@nrwl/nx-darwin-x64" "15.9.7" + "@nrwl/nx-linux-arm-gnueabihf" "15.9.7" + "@nrwl/nx-linux-arm64-gnu" "15.9.7" + "@nrwl/nx-linux-arm64-musl" "15.9.7" + "@nrwl/nx-linux-x64-gnu" "15.9.7" + "@nrwl/nx-linux-x64-musl" "15.9.7" + "@nrwl/nx-win32-arm64-msvc" "15.9.7" + "@nrwl/nx-win32-x64-msvc" "15.9.7" + +object-assign@^4.0.1, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - object-hash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" @@ -12348,13 +12515,6 @@ object-keys@^1.1.1: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - object.assign@^4.1.3, object.assign@^4.1.4: version "4.1.4" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" @@ -12383,7 +12543,7 @@ object.fromentries@^2.0.6: define-properties "^1.1.4" es-abstract "^1.20.4" -object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.0: +object.getownpropertydescriptors@^2.1.0: version "2.1.6" resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz#5e5c384dd209fa4efffead39e3a0512770ccc312" integrity sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ== @@ -12402,13 +12562,6 @@ object.hasown@^1.1.2: define-properties "^1.1.4" es-abstract "^1.20.4" -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - object.values@^1.1.0, object.values@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" @@ -12423,11 +12576,6 @@ obuf@^1.0.0, obuf@^1.1.2: resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== -octokit-pagination-methods@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4" - integrity sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ== - on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -12440,7 +12588,7 @@ on-headers@~1.0.2: resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== -once@^1.3.0, once@^1.3.1, once@^1.4.0: +once@^1.3.0, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== @@ -12454,7 +12602,7 @@ onetime@^2.0.0: dependencies: mimic-fn "^1.0.0" -onetime@^5.1.2: +onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== @@ -12494,32 +12642,38 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ== +optionator@^0.9.3: + version "0.9.4" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" + integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.5" -os-name@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801" - integrity sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg== +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== dependencies: - macos-release "^2.2.0" - windows-release "^3.1.0" + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" -os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: +os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== -osenv@^0.1.4, osenv@^0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -12539,7 +12693,7 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2: +p-limit@^3.0.2, p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -12574,34 +12728,35 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" -p-map-series@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-map-series/-/p-map-series-1.0.0.tgz#bf98fe575705658a9e1351befb85ae4c1f07bdca" - integrity sha512-4k9LlvY6Bo/1FcIdV33wqZQES0Py+iKISU9Uc8p8AjWoZPnFKMpVIVD3s0EYn4jzLh1I+WeUZkJ0Yoa4Qfw3Kg== - dependencies: - p-reduce "^1.0.0" - -p-map@^2.1.0: +p-map-series@2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175" - integrity sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw== - -p-pipe@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-pipe/-/p-pipe-1.2.0.tgz#4b1a11399a11520a67790ee5a0c1d5881d6befe9" - integrity sha512-IA8SqjIGA8l9qOksXJvsvkeQ+VGb0TAzNCzvKvz9wt5wWLqfWbV6fXy43gpR2L4Te8sOq3S+Ql9biAaMKPdbtw== + resolved "https://registry.yarnpkg.com/p-map-series/-/p-map-series-2.1.0.tgz#7560d4c452d9da0c07e692fdbfe6e2c81a2a91f2" + integrity sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q== -p-queue@^4.0.0: +p-map@4.0.0, p-map@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-4.0.0.tgz#ed0eee8798927ed6f2c2f5f5b77fdb2061a5d346" - integrity sha512-3cRXXn3/O0o3+eVmUroJPSj/esxoEFIm0ZOno/T+NzG/VZgPOqQ8WKmlNqubSEpZmCIngEy34unkHGg83ZIBmg== + resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" + integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== dependencies: - eventemitter3 "^3.1.0" + aggregate-error "^3.0.0" -p-reduce@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" - integrity sha512-3Tx1T3oM1xO/Y8Gj0sWyE78EIJZ+t+aEmXUdvQgvGmSMri7aPTHoovbXEreWKkL5j21Er60XAWLTzKbAKYOujQ== +p-pipe@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-pipe/-/p-pipe-3.1.0.tgz#48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e" + integrity sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw== + +p-queue@6.6.2: + version "6.6.2" + resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-6.6.2.tgz#2068a9dcf8e67dd0ec3e7a2bcb76810faa85e426" + integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== + dependencies: + eventemitter3 "^4.0.4" + p-timeout "^3.2.0" + +p-reduce@2.1.0, p-reduce@^2.0.0, p-reduce@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-2.1.0.tgz#09408da49507c6c274faa31f28df334bc712b64a" + integrity sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw== p-retry@^4.5.0: version "4.6.2" @@ -12611,6 +12766,13 @@ p-retry@^4.5.0: "@types/retry" "0.12.0" retry "^0.13.1" +p-timeout@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" + integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== + dependencies: + p-finally "^1.0.0" + p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -12621,21 +12783,65 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -p-waterfall@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-waterfall/-/p-waterfall-1.0.0.tgz#7ed94b3ceb3332782353af6aae11aa9fc235bb00" - integrity sha512-KeXddIp6jBT8qzyxfQGOGzNYc/7ftxKtRc5Uggre02yvbZrSBHE2M2C842/WizMBFD4s0Ngwz3QFOit2A+Ezrg== +p-waterfall@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-waterfall/-/p-waterfall-2.1.1.tgz#63153a774f472ccdc4eb281cdb2967fcf158b2ee" + integrity sha512-RRTnDb2TBG/epPRI2yYXsimO0v3BXC8Yd3ogr1545IaqKK17VGhbWVeGGN+XfCm/08OK8635nH31c8bATkHuSw== dependencies: - p-reduce "^1.0.0" + p-reduce "^2.0.0" -parallel-transform@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.2.0.tgz#9049ca37d6cb2182c3b1d2c720be94d14a5814fc" - integrity sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg== - dependencies: - cyclist "^1.0.1" - inherits "^2.0.3" - readable-stream "^2.1.5" +package-json-from-dist@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00" + integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw== + +pacote@15.1.1: + version "15.1.1" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-15.1.1.tgz#94d8c6e0605e04d427610b3aacb0357073978348" + integrity sha512-eeqEe77QrA6auZxNHIp+1TzHQ0HBKf5V6c8zcaYZ134EJe1lCi+fjXATkNiEEfbG+e50nu02GLvUtmZcGOYabQ== + dependencies: + "@npmcli/git" "^4.0.0" + "@npmcli/installed-package-contents" "^2.0.1" + "@npmcli/promise-spawn" "^6.0.1" + "@npmcli/run-script" "^6.0.0" + cacache "^17.0.0" + fs-minipass "^3.0.0" + minipass "^4.0.0" + npm-package-arg "^10.0.0" + npm-packlist "^7.0.0" + npm-pick-manifest "^8.0.0" + npm-registry-fetch "^14.0.0" + proc-log "^3.0.0" + promise-retry "^2.0.1" + read-package-json "^6.0.0" + read-package-json-fast "^3.0.0" + sigstore "^1.0.0" + ssri "^10.0.0" + tar "^6.1.11" + +pacote@^15.0.0, pacote@^15.0.8: + version "15.2.0" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-15.2.0.tgz#0f0dfcc3e60c7b39121b2ac612bf8596e95344d3" + integrity sha512-rJVZeIwHTUta23sIZgEIM62WYwbmGbThdbnkt81ravBplQv+HjyroqnLRNH2+sLJHcGZmLRmhPwACqhfTcOmnA== + dependencies: + "@npmcli/git" "^4.0.0" + "@npmcli/installed-package-contents" "^2.0.1" + "@npmcli/promise-spawn" "^6.0.1" + "@npmcli/run-script" "^6.0.0" + cacache "^17.0.0" + fs-minipass "^3.0.0" + minipass "^5.0.0" + npm-package-arg "^10.0.0" + npm-packlist "^7.0.0" + npm-pick-manifest "^8.0.0" + npm-registry-fetch "^14.0.0" + proc-log "^3.0.0" + promise-retry "^2.0.1" + read-package-json "^6.0.0" + read-package-json-fast "^3.0.0" + sigstore "^1.3.0" + ssri "^10.0.0" + tar "^6.1.11" param-case@^3.0.4: version "3.0.4" @@ -12663,17 +12869,14 @@ parse-asn1@^5.0.0, parse-asn1@^5.1.5: pbkdf2 "^3.0.3" safe-buffer "^5.1.1" -parse-github-repo-url@^1.3.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50" - integrity sha512-bSWyzBKqcSL4RrncTpGsEKoJ7H8a4L3++ifTAbTFeMHyq2wRV+42DGmQcHIrJIvdcacjIOxEuKH/w4tthF17gg== - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - integrity sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ== +parse-conflict-json@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/parse-conflict-json/-/parse-conflict-json-3.0.1.tgz#67dc55312781e62aa2ddb91452c7606d1969960c" + integrity sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw== dependencies: - error-ex "^1.2.0" + json-parse-even-better-errors "^3.0.0" + just-diff "^6.0.0" + just-diff-apply "^5.2.0" parse-json@^4.0.0: version "4.0.0" @@ -12698,30 +12901,19 @@ parse-package-name@1.0.0: resolved "https://registry.yarnpkg.com/parse-package-name/-/parse-package-name-1.0.0.tgz#1a108757e4ffc6889d5e78bcc4932a97c097a5a7" integrity sha512-kBeTUtcj+SkyfaW4+KBe0HtsloBJ/mKTPoxpVdA57GZiPerREsUWJOhVj9anXweFiJkm5y8FG1sxFZkZ0SN6wg== -parse-passwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" - integrity sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q== - -parse-path@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.4.tgz#4bf424e6b743fb080831f03b536af9fc43f0ffea" - integrity sha512-Z2lWUis7jlmXC1jeOG9giRO2+FsuyNipeQ43HAjqAZjwSe3SEf+q/84FGPHoso3kyntbxa4c4i77t3m6fGf8cw== +parse-path@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-7.0.0.tgz#605a2d58d0a749c8594405d8cc3a2bf76d16099b" + integrity sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog== dependencies: - is-ssh "^1.3.0" - protocols "^1.4.0" - qs "^6.9.4" - query-string "^6.13.8" + protocols "^2.0.0" -parse-url@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-6.0.5.tgz#4acab8982cef1846a0f8675fa686cef24b2f6f9b" - integrity sha512-e35AeLTSIlkw/5GFq70IN7po8fmDUjpDPY1rIK+VubRfsUvBonjQ+PBZG+vWMACnQSmNlvl524IucoDmcioMxA== +parse-url@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-8.1.0.tgz#972e0827ed4b57fc85f0ea6b0d839f0d8a57a57d" + integrity sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w== dependencies: - is-ssh "^1.3.0" - normalize-url "^6.1.0" - parse-path "^4.0.0" - protocols "^1.4.0" + parse-path "^7.0.0" parse5@6.0.1: version "6.0.1" @@ -12741,23 +12933,6 @@ pascal-case@^3.1.2: no-case "^3.0.4" tslib "^2.0.3" -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - integrity sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q== - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - integrity sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ== - dependencies: - pinkie-promise "^2.0.0" - path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" @@ -12773,11 +12948,6 @@ path-is-absolute@^1.0.0: resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== - path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" @@ -12796,20 +12966,19 @@ path-scurry@^1.10.0: lru-cache "^9.1.1 || ^10.0.0" minipass "^5.0.0 || ^6.0.2" +path-scurry@^1.11.1, path-scurry@^1.6.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" + integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== + dependencies: + lru-cache "^10.2.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - integrity sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg== - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - path-type@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" @@ -12848,12 +13017,22 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== +picocolors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== + picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pify@^2.0.0, pify@^2.3.0: +pify@5.0.0, pify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f" + integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA== + +pify@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== @@ -12868,30 +13047,11 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== - -pirates@^4.0.1, pirates@^4.0.4, pirates@^4.0.5: +pirates@^4.0.1, pirates@^4.0.4: version "4.0.5" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - pkg-dir@^4.1.0, pkg-dir@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" @@ -12906,11 +13066,6 @@ pkg-up@^3.1.0: dependencies: find-up "^3.0.0" -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - postcss-attribute-case-insensitive@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz#03d761b24afc04c09e757e92ff53716ae8ea2741" @@ -13488,16 +13643,16 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c" - integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA== - prettier@^2.6.2: version "2.8.8" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.2: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== + pretty-bytes@^5.3.0, pretty-bytes@^5.4.1: version "5.6.0" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" @@ -13511,7 +13666,16 @@ pretty-error@^4.0.0: lodash "^4.17.20" renderkid "^3.0.0" -pretty-format@^27.0.0, pretty-format@^27.0.2, pretty-format@^27.5.1: +pretty-format@29.4.3: + version "29.4.3" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.4.3.tgz#25500ada21a53c9e8423205cf0337056b201244c" + integrity sha512-cvpcHTc42lcsvOOAzd3XuNWTcvk1Jmnzqeu+WsOuiPmxUJTnkbAcFNsRKvEpBEUFVUgy/GTZLulZDcDEi+CIlA== + dependencies: + "@jest/schemas" "^29.4.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + +pretty-format@^27.0.2, pretty-format@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== @@ -13539,28 +13703,52 @@ pretty-format@^29.0.0, pretty-format@^29.5.0: ansi-styles "^5.0.0" react-is "^18.0.0" +pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + +proc-log@^2.0.0, proc-log@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-2.0.1.tgz#8f3f69a1f608de27878f91f5c688b225391cb685" + integrity sha512-Kcmo2FhfDTXdcbfDH76N7uBYHINxc/8GW7UAVuVP9I+Va3uHSerrnKV6dLooga/gh7GlgzuCCr/eoldnL1muGw== + +proc-log@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8" + integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A== + process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== +promise-all-reject-late@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz#f8ebf13483e5ca91ad809ccc2fcf25f26f8643c2" + integrity sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw== + +promise-call-limit@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/promise-call-limit/-/promise-call-limit-1.0.2.tgz#f64b8dd9ef7693c9c7613e7dfe8d6d24de3031ea" + integrity sha512-1vTUnfI2hzui8AEIixbdAJlFY4LFDXqQswy/2eOlThAscXCY4It8FdVuI0fMJGAB2aWGbdQf/gv0skKYXmdrHA== promise-inflight@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" integrity sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g== -promise-retry@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-1.1.1.tgz#6739e968e3051da20ce6497fb2b50f6911df3d6d" - integrity sha512-StEy2osPr28o17bIW776GtwO6+Q+M9zPiZkYfosciUUMYqjhU/ffwRAH0zN2+uvGyUsn8/YICIHRzLbPacpZGw== +promise-retry@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22" + integrity sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g== dependencies: - err-code "^1.0.0" - retry "^0.10.0" + err-code "^2.0.2" + retry "^0.12.0" promise@^8.1.0: version "8.3.0" @@ -13617,41 +13805,11 @@ protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: "@types/node" ">=13.7.0" long "^4.0.0" -protobufjs@^7.2.4: - version "7.2.4" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.2.4.tgz#3fc1ec0cdc89dd91aef9ba6037ba07408485c3ae" - integrity sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/node" ">=13.7.0" - long "^5.0.0" - -protocols@^1.4.0: - version "1.4.8" - resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" - integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== - -protocols@^2.0.1: +protocols@^2.0.0, protocols@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== -protoduck@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/protoduck/-/protoduck-5.0.1.tgz#03c3659ca18007b69a50fd82a7ebcc516261151f" - integrity sha512-WxoCeDCoCBY55BMvj4cAEjdVUFGRWed9ZxPlqTKYyw1nDDTQ4pqmnIMAGfJlg7Dx35uB/M+PHJPTmGOvaCaPTg== - dependencies: - genfun "^5.0.0" - proxy-addr@~2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" @@ -13665,7 +13823,7 @@ proxy-from-env@^1.1.0: resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== -psl@^1.1.28, psl@^1.1.33: +psl@^1.1.33: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== @@ -13682,36 +13840,16 @@ public-encrypt@^4.0.0: randombytes "^2.0.1" safe-buffer "^5.1.2" -pump@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" - integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -pumpify@^1.3.3: - version "1.5.1" - resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" - integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== - dependencies: - duplexify "^3.6.0" - inherits "^2.0.3" - pump "^2.0.0" - punycode@^2.1.0, punycode@^2.1.1: version "2.3.0" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== +pure-rand@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.1.0.tgz#d173cf23258231976ccbdb05247c9787957604f2" + integrity sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA== + q@^1.1.2, q@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" @@ -13724,28 +13862,6 @@ qs@6.11.0: dependencies: side-channel "^1.0.4" -qs@^6.9.4: - version "6.11.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.2.tgz#64bea51f12c1f5da1bc01496f48ffcff7c69d7d9" - integrity sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA== - dependencies: - side-channel "^1.0.4" - -qs@~6.5.2: - version "6.5.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" - integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== - -query-string@^6.13.8: - version "6.14.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a" - integrity sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" - querystringify@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" @@ -13756,11 +13872,6 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== -quick-lru@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" - integrity sha512-tRS7sTgyxMXtLum8L65daJnHUhfDUgboRdcWW2bR9vBfrj2+O5HSMbQOJfJJjIVSPFqbBCF37FpwWXGitDc5tA== - quick-lru@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" @@ -13947,39 +14058,61 @@ read-cache@^1.0.0: dependencies: pify "^2.3.0" -read-cmd-shim@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.5.tgz#87e43eba50098ba5a32d0ceb583ab8e43b961c16" - integrity sha512-v5yCqQ/7okKoZZkBQUAfTsQ3sVJtXdNfbPnI5cceppoxEVLYA3k+VtV2omkeo8MS94JCy4fSiUwlRBAwCVRPUA== - dependencies: - graceful-fs "^4.1.2" +read-cmd-shim@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-3.0.0.tgz#62b8c638225c61e6cc607f8f4b779f3b8238f155" + integrity sha512-KQDVjGqhZk92PPNRj9ZEXEuqg8bUobSKRw+q0YQ3TKI5xkce7bUJobL4Z/OtiEbAAv70yEpYIXp4iQ9L8oPVog== -"read-package-json@1 || 2", read-package-json@^2.0.0, read-package-json@^2.0.13: - version "2.1.2" - resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.1.2.tgz#6992b2b66c7177259feb8eaac73c3acd28b9222a" - integrity sha512-D1KmuLQr6ZSJS0tW8hf3WGpRlwszJOXZ3E8Yd/DNRaM5d+1wVRZdHlpGBLAuovjr28LbWvjpWkBHMxpRGGjzNA== +read-cmd-shim@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-4.0.0.tgz#640a08b473a49043e394ae0c7a34dd822c73b9bb" + integrity sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q== + +read-package-json-fast@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-2.0.3.tgz#323ca529630da82cb34b36cc0b996693c98c2b83" + integrity sha512-W/BKtbL+dUjTuRL2vziuYhp76s5HZ9qQhd/dKfWIZveD0O40453QNyZhC0e63lqZrAQ4jiOapVoeJ7JrszenQQ== dependencies: - glob "^7.1.1" json-parse-even-better-errors "^2.3.0" - normalize-package-data "^2.0.0" - npm-normalize-package-bin "^1.0.0" + npm-normalize-package-bin "^1.0.1" -read-package-tree@^5.1.6: - version "5.3.1" - resolved "https://registry.yarnpkg.com/read-package-tree/-/read-package-tree-5.3.1.tgz#a32cb64c7f31eb8a6f31ef06f9cedf74068fe636" - integrity sha512-mLUDsD5JVtlZxjSlPPx1RETkNjjvQYuweKwNVt1Sn8kP5Jh44pvYuUHCp6xSVDZWbNxVxG5lyZJ921aJH61sTw== +read-package-json-fast@^3.0.0, read-package-json-fast@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz#394908a9725dc7a5f14e70c8e7556dff1d2b1049" + integrity sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw== dependencies: - read-package-json "^2.0.0" - readdir-scoped-modules "^1.0.0" - util-promisify "^2.1.0" + json-parse-even-better-errors "^3.0.0" + npm-normalize-package-bin "^3.0.0" -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - integrity sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A== +read-package-json@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-5.0.1.tgz#1ed685d95ce258954596b13e2e0e76c7d0ab4c26" + integrity sha512-MALHuNgYWdGW3gKzuNMuYtcSSZbGQm94fAp16xt8VsYTLBjUSc55bLMKe6gzpWue0Tfi6CBgwCSdDAqutGDhMg== + dependencies: + glob "^8.0.1" + json-parse-even-better-errors "^2.3.1" + normalize-package-data "^4.0.0" + npm-normalize-package-bin "^1.0.1" + +read-package-json@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-5.0.2.tgz#b8779ccfd169f523b67208a89cc912e3f663f3fa" + integrity sha512-BSzugrt4kQ/Z0krro8zhTwV1Kd79ue25IhNN/VtHFy1mG/6Tluyi+msc0UpwaoQzxSHa28mntAjIZY6kEgfR9Q== + dependencies: + glob "^8.0.1" + json-parse-even-better-errors "^2.3.1" + normalize-package-data "^4.0.0" + npm-normalize-package-bin "^2.0.0" + +read-package-json@^6.0.0: + version "6.0.4" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-6.0.4.tgz#90318824ec456c287437ea79595f4c2854708836" + integrity sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw== dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" + glob "^10.2.2" + json-parse-even-better-errors "^3.0.0" + normalize-package-data "^5.0.0" + npm-normalize-package-bin "^3.0.0" read-pkg-up@^3.0.0: version "3.0.0" @@ -13998,15 +14131,6 @@ read-pkg-up@^7.0.1: read-pkg "^5.2.0" type-fest "^0.8.1" -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - integrity sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ== - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.0.0" - read-pkg@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" @@ -14026,14 +14150,23 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -read@1, read@~1.0.1: +read@1, read@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4" integrity sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ== dependencies: mute-stream "~0.0.4" -"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6, readable-stream@~2.3.6: +readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@^2.0.1, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -14046,24 +14179,15 @@ read@1, read@~1.0.1: string_decoder "~1.1.1" util-deprecate "~1.0.1" -"readable-stream@2 || 3", readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.5.0, readable-stream@^3.6.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdir-scoped-modules@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309" - integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw== +readable-stream@~1.0.31: + version "1.0.34" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + integrity sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg== dependencies: - debuglog "^1.0.1" - dezalgo "^1.0.0" - graceful-fs "^4.1.2" - once "^1.3.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" readdirp@~3.6.0: version "3.6.0" @@ -14091,22 +14215,6 @@ recursive-readdir@^2.2.2: dependencies: minimatch "^3.0.5" -redent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" - integrity sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g== - dependencies: - indent-string "^2.1.0" - strip-indent "^1.0.1" - -redent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" - integrity sha512-XNwrTx77JQCEMXTeb8movBKuK75MgH0RZkujNuDKCezemx/voapl9i2gCSi8WWm8+ox5ycJi1gxF22fR7c0Ciw== - dependencies: - indent-string "^3.0.0" - strip-indent "^2.0.0" - redent@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" @@ -14139,14 +14247,6 @@ regenerator-transform@^0.15.1: dependencies: "@babel/runtime" "^7.8.4" -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - regex-parser@^2.2.11: version "2.2.11" resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.2.11.tgz#3b37ec9049e19479806e878cabe7c1ca83ccfe58" @@ -14161,11 +14261,6 @@ regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0: define-properties "^1.2.0" functions-have-names "^1.2.3" -regexpp@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - regexpu-core@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" @@ -14201,49 +14296,6 @@ renderkid@^3.0.0: lodash "^4.17.21" strip-ansi "^6.0.1" -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A== - dependencies: - is-finite "^1.0.0" - -request@^2.88.0: - version "2.88.2" - resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" - require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" @@ -14254,23 +14306,11 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== -resolve-cwd@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" - integrity sha512-ccu8zQTrzVr954472aUVPLEcB3YpKSYR3cg/3lo1okzobPBM+1INXBbBZlDbnI/hbEocnf8j0QVo43hQKrbchg== - dependencies: - resolve-from "^3.0.0" - resolve-cwd@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" @@ -14278,21 +14318,16 @@ resolve-cwd@^3.0.0: dependencies: resolve-from "^5.0.0" -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== +resolve-from@5.0.0, resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - resolve-url-loader@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz#d50d4ddc746bb10468443167acf800dcd6c3ad57" @@ -14304,16 +14339,16 @@ resolve-url-loader@^4.0.0: postcss "^7.0.35" source-map "0.6.1" -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - resolve.exports@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.1.tgz#05cfd5b3edf641571fd46fa608b610dda9ead999" integrity sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ== +resolve.exports@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" + integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== + resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2: version "1.22.2" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" @@ -14340,15 +14375,18 @@ restore-cursor@^2.0.0: onetime "^2.0.0" signal-exit "^3.0.2" -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" -retry@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.10.1.tgz#e76388d217992c252750241d3d3956fed98d8ff4" - integrity sha512-ZXUSQYTHdl3uS7IuCehYfMzKyIDBNoAuUblvy5oGO5UJSUTmStUUVPXbA9Qxd173Bgre53yCQczQuHgRWAdvJQ== +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== retry@^0.13.1: version "0.13.1" @@ -14367,6 +14405,13 @@ rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" +rimraf@4.4.1, rimraf@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-4.4.1.tgz#bd33364f67021c5b79e93d7f4fa0568c7c21b755" + integrity sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og== + dependencies: + glob "^9.2.0" + rimraf@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.0.tgz#5bda14e410d7e4dd522154891395802ce032c2cb" @@ -14374,20 +14419,6 @@ rimraf@5.0.0: dependencies: glob "^10.0.0" -rimraf@^2.5.4, rimraf@^2.6.2, rimraf@^2.6.3: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.1.tgz#0881323ab94ad45fec7c0221f27ea1a142f3f0d0" - integrity sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg== - dependencies: - glob "^10.2.5" - ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -14413,7 +14444,7 @@ rollup@^2.43.1: optionalDependencies: fsevents "~2.3.2" -run-async@^2.2.0, run-async@^2.3.0: +run-async@^2.2.0, run-async@^2.3.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== @@ -14425,13 +14456,6 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -run-queue@^1.0.0, run-queue@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" - integrity sha512-ntymy489o0/QQplUDnpYAYUsO50K9SBrIVaKCWDOJzYJts0f9WH9RFJkyagebkw5+y1oi00R7ynNW/d12GBumg== - dependencies: - aproba "^1.1.1" - rx-lite-aggregates@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" @@ -14451,6 +14475,13 @@ rxjs@^6.4.0: dependencies: tslib "^1.9.0" +rxjs@^7.5.5: + version "7.8.1" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" + integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== + dependencies: + tslib "^2.1.0" + safe-array-concat@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.0.tgz#2064223cba3c08d2ee05148eedbc563cd6d84060" @@ -14466,7 +14497,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@^5.2.1, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -14480,14 +14511,7 @@ safe-regex-test@^1.0.0: get-intrinsic "^1.1.3" is-regex "^1.1.4" -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -14582,23 +14606,47 @@ selfsigned@^2.1.1: dependencies: node-forge "^1" -"semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1: +"semver@2 || 3 || 4 || 5", semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@7.x, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: - version "7.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.0.tgz#ed8c5dc8efb6c629c88b23d41dc9bf40c1d96cd0" - integrity sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA== +semver@7.3.8: + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== + dependencies: + lru-cache "^6.0.0" + +semver@7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.0.0, semver@^7.1.1, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + +semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: + version "7.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.0.tgz#ed8c5dc8efb6c629c88b23d41dc9bf40c1d96cd0" + integrity sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA== + dependencies: + lru-cache "^6.0.0" + semver@^7.3.8: version "7.5.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" @@ -14662,21 +14710,11 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" -set-blocking@^2.0.0, set-blocking@~2.0.0: +set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - setprototypeof@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" @@ -14702,13 +14740,6 @@ shallow-clone@^3.0.0: dependencies: kind-of "^6.0.2" -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== - dependencies: - shebang-regex "^1.0.0" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -14716,11 +14747,6 @@ shebang-command@^2.0.0: dependencies: shebang-regex "^3.0.0" -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== - shebang-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" @@ -14749,27 +14775,33 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@3.0.7, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -signal-exit@^4.0.1, signal-exit@^4.0.2: +signal-exit@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.0.2.tgz#ff55bb1d9ff2114c13b400688fa544ac63c36967" integrity sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q== +sigstore@^1.0.0, sigstore@^1.3.0, sigstore@^1.4.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/sigstore/-/sigstore-1.9.0.tgz#1e7ad8933aa99b75c6898ddd0eeebc3eb0d59875" + integrity sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A== + dependencies: + "@sigstore/bundle" "^1.1.0" + "@sigstore/protobuf-specs" "^0.2.0" + "@sigstore/sign" "^1.0.0" + "@sigstore/tuf" "^1.0.3" + make-fetch-happen "^11.0.1" + sisteransi@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - -slash@^3.0.0: +slash@3.0.0, slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== @@ -14779,55 +14811,11 @@ slash@^4.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -slide@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" - integrity sha512-NwrtjCg+lZoqhFU8fOwl4ay2ei8PaqCBOUV3/ektPY9trO1yQ1oXEfmHAhKArUVUr/hOHvy5f6AdP17dCM0zMw== - -smart-buffer@^4.1.0: +smart-buffer@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - sockjs@^0.3.24: version "0.3.24" resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" @@ -14837,21 +14825,22 @@ sockjs@^0.3.24: uuid "^8.3.2" websocket-driver "^0.7.4" -socks-proxy-agent@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-4.0.2.tgz#3c8991f3145b2799e70e11bd5fbc8b1963116386" - integrity sha512-NT6syHhI9LmuEMSK6Kd2V7gNv5KFZoLE7V5udWmn0de+3Mkj3UMA/AJPLyeNUVmElCurSHtUdM3ETpR3z770Wg== +socks-proxy-agent@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz#dc069ecf34436621acb41e3efa66ca1b5fed15b6" + integrity sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww== dependencies: - agent-base "~4.2.1" - socks "~2.3.2" + agent-base "^6.0.2" + debug "^4.3.3" + socks "^2.6.2" -socks@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/socks/-/socks-2.3.3.tgz#01129f0a5d534d2b897712ed8aceab7ee65d78e3" - integrity sha512-o5t52PCNtVdiOvzMry7wU4aOqYWL0PeCXRWBEiJow4/i/wr+wpsJQ9awEu1EonLIqsfGd5qSgDdxEOvCdmBEpA== +socks@^2.6.2: + version "2.8.3" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.3.tgz#1ebd0f09c52ba95a09750afe3f3f9f724a800cb5" + integrity sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw== dependencies: - ip "1.1.5" - smart-buffer "^4.1.0" + ip-address "^9.0.5" + smart-buffer "^4.2.0" sort-keys@^2.0.0: version "2.0.0" @@ -14879,18 +14868,15 @@ source-map-loader@^3.0.0: iconv-lite "^0.6.3" source-map-js "^1.0.1" -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== +source-map-support@0.5.13: + version "0.5.13" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" + integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" + buffer-from "^1.0.0" + source-map "^0.6.0" -source-map-support@^0.5.16, source-map-support@^0.5.19, source-map-support@^0.5.6, source-map-support@~0.5.20: +source-map-support@^0.5.6, source-map-support@~0.5.20: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -14898,21 +14884,11 @@ source-map-support@^0.5.16, source-map-support@^0.5.19, source-map-support@^0.5. buffer-from "^1.0.0" source-map "^0.6.0" -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - source-map@^0.7.3: version "0.7.4" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" @@ -14979,25 +14955,6 @@ spdy@^4.0.2: select-hose "^2.0.0" spdy-transport "^3.0.0" -split-on-first@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" - integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -split2@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" - integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== - dependencies: - through2 "^2.0.2" - split2@^3.0.0: version "3.2.2" resolved "https://registry.yarnpkg.com/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" @@ -15012,32 +14969,29 @@ split@^1.0.0: dependencies: through "2" +sprintf-js@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a" + integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -sshpk@^1.7.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" - integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - -ssri@^6.0.0, ssri@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.2.tgz#157939134f20464e7301ddba3e90ffa8f7728ac5" - integrity sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q== +ssri@9.0.1, ssri@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-9.0.1.tgz#544d4c357a8d7b71a19700074b6883fcb4eae057" + integrity sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q== + dependencies: + minipass "^3.1.1" + +ssri@^10.0.0, ssri@^10.0.1: + version "10.0.6" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-10.0.6.tgz#a8aade2de60ba2bce8688e3fa349bad05c7dc1e5" + integrity sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ== dependencies: - figgy-pudding "^3.5.1" + minipass "^7.0.3" stable@^0.1.8: version "0.1.8" @@ -15056,14 +15010,6 @@ stackframe@^1.3.4: resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310" integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - statuses@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" @@ -15081,19 +15027,6 @@ stop-iteration-iterator@^1.0.0: dependencies: internal-slot "^1.0.4" -stream-each@^1.1.0: - version "1.2.3" - resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.3.tgz#ebe27a0c389b04fbcc233642952e10731afa9bae" - integrity sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw== - dependencies: - end-of-stream "^1.1.0" - stream-shift "^1.0.0" - -stream-shift@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" - integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== - "stream@npm:stream-browserify@3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-3.0.0.tgz#22b0a2850cdf6503e73085da1fc7b7d0c2122f2f" @@ -15102,16 +15035,6 @@ stream-shift@^1.0.0: inherits "~2.0.4" readable-stream "^3.5.0" -strict-uri-encode@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" - integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== - -string-argv@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" - integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== - string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -15142,15 +15065,6 @@ string-natural-compare@^3.0.1: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string-width@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - integrity sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw== - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - string-width@^2.0.0, string-width@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" @@ -15159,15 +15073,6 @@ string-width@^2.0.0, string-width@^2.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - string-width@^5.0.1, string-width@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" @@ -15225,6 +15130,11 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== + string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" @@ -15248,7 +15158,7 @@ stringify-object@^3.3.0: dependencies: ansi-regex "^5.0.1" -strip-ansi@^3.0.0, strip-ansi@^3.0.1: +strip-ansi@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== @@ -15262,7 +15172,7 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: +strip-ansi@^5, strip-ansi@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== @@ -15276,13 +15186,6 @@ strip-ansi@^7.0.1: dependencies: ansi-regex "^6.0.1" -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - integrity sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g== - dependencies: - is-utf8 "^0.2.0" - strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" @@ -15298,28 +15201,11 @@ strip-comments@^2.0.1: resolved "https://registry.yarnpkg.com/strip-comments/-/strip-comments-2.0.1.tgz#4ad11c3fbcac177a67a40ac224ca339ca1c1ba9b" integrity sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw== -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== - strip-final-newline@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== -strip-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" - integrity sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA== - dependencies: - get-stdin "^4.0.1" - -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - integrity sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA== - strip-indent@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" @@ -15332,7 +15218,7 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== -strong-log-transformer@^2.0.0: +strong-log-transformer@2.1.0, strong-log-transformer@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" integrity sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA== @@ -15453,16 +15339,24 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -table@^6.0.9: - version "6.8.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" - integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== +symlink-workspace@^1.1.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/symlink-workspace/-/symlink-workspace-1.9.0.tgz#df4c5ce48bd55e54580e813126c643a86e29e759" + integrity sha512-eKSISj/3r5gLU4NCY5Ir16PLPavHYb2s2DMN7wGheaZAMlUGEuq8qUhlmbBMR8J32Yq9PCtcA+yritgHpwUDfw== dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" + chalk "4.1.2" + glob "8.1.0" + minimist "^1.2.8" + mkdirp "3.0.0" + rimraf "5.0.0" + +synckit@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.9.1.tgz#febbfbb6649979450131f64735aa3f6c14575c88" + integrity sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A== + dependencies: + "@pkgr/core" "^0.1.0" + tslib "^2.6.2" tailwindcss@^3.0.2: version "3.3.2" @@ -15503,20 +15397,42 @@ tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== -tar@^4.4.10, tar@^4.4.12, tar@^4.4.8: - version "4.4.19" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.19.tgz#2e4d7263df26f2b914dee10c825ab132123742f3" - integrity sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA== +tar-stream@~2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" + integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ== dependencies: - chownr "^1.1.4" - fs-minipass "^1.2.7" - minipass "^2.9.0" - minizlib "^1.3.3" - mkdirp "^0.5.5" - safe-buffer "^5.2.1" - yallist "^3.1.1" + bl "^4.0.3" + end-of-stream "^1.4.1" + fs-constants "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.1.1" + +tar@6.1.11: + version "6.1.11" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" + integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^3.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + +tar@^6.1.11, tar@^6.1.2: + version "6.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" + integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^5.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" -temp-dir@^1.0.0: +temp-dir@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" integrity sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ== @@ -15526,17 +15442,16 @@ temp-dir@^2.0.0: resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== -temp-write@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-3.4.0.tgz#8cff630fb7e9da05f047c74ce4ce4d685457d492" - integrity sha512-P8NK5aNqcGQBC37i/8pL/K9tFgx14CF2vdwluD/BA/dGWGD4T4E59TE7dAxPyb2wusts2FhMp36EiopBBsGJ2Q== +tempy@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/tempy/-/tempy-1.0.0.tgz#4f192b3ee3328a2684d0e3fc5c491425395aab65" + integrity sha512-eLXG5B1G0mRPHmgH2WydPl5v4jH35qEn3y/rA/aahKhIa91Pn119SsU7n7v/433gtT9ONzC8ISvNHIh2JSTm0w== dependencies: - graceful-fs "^4.1.2" - is-stream "^1.1.0" - make-dir "^1.0.0" - pify "^3.0.0" - temp-dir "^1.0.0" - uuid "^3.0.1" + del "^6.0.0" + is-stream "^2.0.0" + temp-dir "^2.0.0" + type-fest "^0.16.0" + unique-string "^2.0.0" tempy@^0.6.0: version "0.6.0" @@ -15615,7 +15530,7 @@ throat@^6.0.1: resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.2.tgz#51a3fbb5e11ae72e2cf74861ed5c8020f89f29fe" integrity sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ== -through2@^2.0.0, through2@^2.0.2: +through2@^2.0.0, through2@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== @@ -15623,14 +15538,6 @@ through2@^2.0.0, through2@^2.0.2: readable-stream "~2.3.6" xtend "~4.0.1" -through2@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/through2/-/through2-3.0.2.tgz#99f88931cfc761ec7678b41d5d7336b5b6a07bf4" - integrity sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ== - dependencies: - inherits "^2.0.4" - readable-stream "2 || 3" - through2@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/through2/-/through2-4.0.2.tgz#a7ce3ac2a7a8b0b966c80e7c49f0484c3b239764" @@ -15663,6 +15570,11 @@ tmp@^0.0.33: dependencies: os-tmpdir "~1.0.2" +tmp@~0.2.1: + version "0.2.3" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" + integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== + tmpl@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" @@ -15673,21 +15585,6 @@ to-fast-properties@^2.0.0: resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -15695,16 +15592,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - toidentifier@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" @@ -15720,14 +15607,6 @@ tough-cookie@^4.0.0: universalify "^0.2.0" url-parse "^1.5.3" -tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - tr46@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" @@ -15747,15 +15626,10 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -trim-newlines@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" - integrity sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw== - -trim-newlines@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" - integrity sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA== +treeverse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/treeverse/-/treeverse-3.0.0.tgz#dd82de9eb602115c6ebd77a574aae67003cb48c8" + integrity sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ== trim-newlines@^3.0.0: version "3.0.1" @@ -15767,26 +15641,30 @@ tryer@^1.0.1: resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA== +ts-api-utils@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" + integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== + ts-interface-checker@^0.1.9: version "0.1.13" resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== -ts-jest@^26.4.4: - version "26.5.6" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.5.6.tgz#c32e0746425274e1dfe333f43cd3c800e014ec35" - integrity sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA== +ts-jest@^29.1.1: + version "29.2.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63" + integrity sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA== dependencies: - bs-logger "0.x" - buffer-from "1.x" - fast-json-stable-stringify "2.x" - jest-util "^26.1.0" - json5 "2.x" - lodash "4.x" - make-error "1.x" - mkdirp "1.x" - semver "7.x" - yargs-parser "20.x" + bs-logger "^0.2.6" + ejs "^3.1.10" + fast-json-stable-stringify "^2.1.0" + jest-util "^29.0.0" + json5 "^2.2.3" + lodash.memoize "^4.1.2" + make-error "^1.3.6" + semver "^7.6.3" + yargs-parser "^21.1.1" ts-node@^10.9.2: version "10.9.2" @@ -15817,6 +15695,15 @@ tsconfig-paths@^3.14.1: minimist "^1.2.6" strip-bom "^3.0.0" +tsconfig-paths@^4.1.2: + version "4.2.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz#ef78e19039133446d244beac0fd6a1632e2d107c" + integrity sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg== + dependencies: + json5 "^2.2.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -15827,6 +15714,11 @@ tslib@^2.0.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== +tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.6.2: + version "2.7.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== + tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" @@ -15834,17 +15726,14 @@ tsutils@^3.21.0: dependencies: tslib "^1.8.1" -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== +tuf-js@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/tuf-js/-/tuf-js-1.1.7.tgz#21b7ae92a9373015be77dfe0cb282a80ec3bbe43" + integrity sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg== dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== + "@tufjs/models" "1.0.4" + debug "^4.3.4" + make-fetch-happen "^11.1.1" type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" @@ -15885,10 +15774,10 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -type-fest@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" - integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== +type-fest@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" + integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== type-fest@^0.6.0: version "0.6.0" @@ -15939,7 +15828,7 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typescript@^4.0.5: +"typescript@^3 || ^4": version "4.9.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== @@ -15954,16 +15843,6 @@ uglify-js@^3.1.4: resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== -uid-number@0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - integrity sha512-c461FXIljswCuscZn67xq9PpszkPT6RjheWFQTgCyabJrTUozElanb0YEqv2UGgk247YpcJkFBuSGNvBlpXM9w== - -umask@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d" - integrity sha512-lE/rxOhmiScJu9L6RTNVgB/zZbF+vGC0/p6D3xnkAePI2o0sMyFG966iR5Ki50OI/0mNi2yaRnxfLsPmEZF/JA== - unbox-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" @@ -15974,6 +15853,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" @@ -15997,27 +15881,31 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== +unique-filename@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2" + integrity sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A== dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" + unique-slug "^3.0.0" -unique-filename@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" - integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== +unique-filename@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" + integrity sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g== dependencies: - unique-slug "^2.0.0" + unique-slug "^4.0.0" -unique-slug@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c" - integrity sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w== +unique-slug@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-3.0.0.tgz#6d347cf57c8a7a7a6044aabd0e2d74e4d76dc7c9" + integrity sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w== + dependencies: + imurmurhash "^0.1.4" + +unique-slug@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" + integrity sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ== dependencies: imurmurhash "^0.1.4" @@ -16028,23 +15916,11 @@ unique-string@^2.0.0: dependencies: crypto-random-string "^2.0.0" -universal-user-agent@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-4.0.1.tgz#fd8d6cb773a679a709e967ef8288a31fcc03e557" - integrity sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg== - dependencies: - os-name "^3.1.0" - universal-user-agent@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee" integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w== -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" @@ -16065,13 +15941,15 @@ unquote@~1.1.1: resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" integrity sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg== -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" +untildify@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== + +upath@2.0.1, upath@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/upath/-/upath-2.0.1.tgz#50c73dea68d6f6b990f51d279ce6081665d61a8b" + integrity sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w== upath@^1.2.0: version "1.2.0" @@ -16086,6 +15964,14 @@ update-browserslist-db@^1.0.10, update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" +update-browserslist-db@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + dependencies: + escalade "^3.1.2" + picocolors "^1.0.1" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -16093,11 +15979,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - url-parse@^1.5.3: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" @@ -16106,23 +15987,11 @@ url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -util-promisify@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/util-promisify/-/util-promisify-2.1.0.tgz#3c2236476c4d32c5ff3c47002add7c13b9a82a53" - integrity sha512-K+5eQPYs14b3+E+hmE2J6gCZ4JmMl9DbYS6BeP2CHq6WMuNxErxf5B/n0fz85L8zUuoO6rIzNNmIQDu/j+1OcA== - dependencies: - object.getownpropertydescriptors "^2.0.3" - util.promisify@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee" @@ -16150,12 +16019,7 @@ utils-merge@1.0.1: resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== -uuid@^3.0.1, uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -uuid@^8.3.2: +uuid@8.3.2, uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== @@ -16165,7 +16029,7 @@ v8-compile-cache-lib@^3.0.1: resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== -v8-compile-cache@^2.0.3: +v8-compile-cache@2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== @@ -16179,14 +16043,16 @@ v8-to-istanbul@^8.1.0: convert-source-map "^1.6.0" source-map "^0.7.3" -v8flags@^3.1.1: - version "3.2.0" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.2.0.tgz#b243e3b4dfd731fa774e7492128109a0fe66d656" - integrity sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg== +v8-to-istanbul@^9.0.1: + version "9.3.0" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz#b9572abfa62bd556c16d75fdebc1a411d5ff3175" + integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA== dependencies: - homedir-polyfill "^1.0.1" + "@jridgewell/trace-mapping" "^0.3.12" + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^2.0.0" -validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.3: +validate-npm-package-license@3.0.4, validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== @@ -16194,6 +16060,13 @@ validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.3: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +validate-npm-package-name@4.0.0, validate-npm-package-name@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-4.0.0.tgz#fe8f1c50ac20afdb86f177da85b3600f0ac0d747" + integrity sha512-mzR0L8ZDktZjpX4OB46KT+56MAhl4EIazWP/+G/HPGuvfdaqg4YsCdtOm6U9+LOFyYDoh4dpnpxZRB9MQQns5Q== + dependencies: + builtins "^5.0.0" + validate-npm-package-name@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz#5fa912d81eb7d0c74afc140de7317f0ca7df437e" @@ -16201,20 +16074,16 @@ validate-npm-package-name@^3.0.0: dependencies: builtins "^1.0.3" +validate-npm-package-name@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz#a316573e9b49f3ccd90dbb6eb52b3f06c6d604e8" + integrity sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ== + vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - w3c-hr-time@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" @@ -16229,6 +16098,11 @@ w3c-xmlserializer@^2.0.0: dependencies: xml-name-validator "^3.0.0" +walk-up-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/walk-up-path/-/walk-up-path-1.0.0.tgz#d4745e893dd5fd0dbb58dd0a4c6a33d9c9fec53e" + integrity sha512-hwj/qMDUEjCU5h0xr90KGCf0tg0/LgJbmOWgrWKYlcJZM7XvquvUJZ0G/HMGr7F7OQMOUuPHWP9JpriinkAlkg== + walker@^1.0.7, walker@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" @@ -16263,7 +16137,7 @@ wbuf@^1.1.0, wbuf@^1.7.3: dependencies: minimalistic-assert "^1.0.0" -wcwidth@^1.0.0: +wcwidth@^1.0.0, wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== @@ -16479,11 +16353,6 @@ which-collection@^1.0.1: is-weakmap "^2.0.1" is-weakset "^2.0.1" -which-module@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" - integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== - which-typed-array@^1.1.9: version "1.1.9" resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6" @@ -16496,39 +16365,44 @@ which-typed-array@^1.1.9: has-tostringtag "^1.0.0" is-typed-array "^1.1.10" -which@^1.2.9, which@^1.3.1: +which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== dependencies: isexe "^2.0.0" -which@^2.0.1: +which@^2.0.1, which@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== dependencies: isexe "^2.0.0" -wide-align@^1.1.0: +which@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/which/-/which-3.0.1.tgz#89f1cd0c23f629a8105ffe69b8172791c87b4be1" + integrity sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== dependencies: string-width "^1.0.2 || 2 || 3 || 4" -windows-release@^3.1.0: - version "3.3.3" - resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.3.tgz#1c10027c7225743eec6b89df160d64c2e0293999" - integrity sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg== - dependencies: - execa "^1.0.0" - word-wrap@^1.2.3, word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== +word-wrap@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + wordwrap@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" @@ -16713,14 +16587,14 @@ workbox-window@6.6.1: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== +wrap-ansi@^6.0.1: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" wrap-ansi@^8.1.0: version "8.1.0" @@ -16736,7 +16610,15 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^2.0.0, write-file-atomic@^2.3.0, write-file-atomic@^2.4.2: +write-file-atomic@4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.1.tgz#9faa33a964c1c85ff6f849b80b42a88c2c537c8f" + integrity sha512-nSKUxgAbyioruk6hU87QzVbY279oYT6uiwgDoujth2ju4mJ+TZau7SQBhtbTmUyuNYTuXnSyRn66FV0+eCgcrQ== + dependencies: + imurmurhash "^0.1.4" + signal-exit "^3.0.7" + +write-file-atomic@^2.4.2: version "2.4.3" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== @@ -16755,7 +16637,7 @@ write-file-atomic@^3.0.0: signal-exit "^3.0.2" typedarray-to-buffer "^3.1.5" -write-file-atomic@^4.0.1: +write-file-atomic@^4.0.1, write-file-atomic@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== @@ -16763,17 +16645,13 @@ write-file-atomic@^4.0.1: imurmurhash "^0.1.4" signal-exit "^3.0.7" -write-json-file@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-2.3.0.tgz#2b64c8a33004d54b8698c76d585a77ceb61da32f" - integrity sha512-84+F0igFp2dPD6UpAQjOUX3CdKUOqUzn6oE9sDBNzUXINR5VceJ1rauZltqQB/bcYsx3EpKys4C7/PivKUAiWQ== +write-file-atomic@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-5.0.1.tgz#68df4717c55c6fa4281a7860b4c2ba0a6d2b11e7" + integrity sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw== dependencies: - detect-indent "^5.0.0" - graceful-fs "^4.1.2" - make-dir "^1.0.0" - pify "^3.0.0" - sort-keys "^2.0.0" - write-file-atomic "^2.0.0" + imurmurhash "^0.1.4" + signal-exit "^4.0.1" write-json-file@^3.2.0: version "3.2.0" @@ -16787,13 +16665,14 @@ write-json-file@^3.2.0: sort-keys "^2.0.0" write-file-atomic "^2.4.2" -write-pkg@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/write-pkg/-/write-pkg-3.2.0.tgz#0e178fe97820d389a8928bc79535dbe68c2cff21" - integrity sha512-tX2ifZ0YqEFOF1wjRW2Pk93NLsj02+n1UP5RvO6rCs0K6R2g1padvf006cY74PQJKMGS2r42NK7FD0dG6Y6paw== +write-pkg@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/write-pkg/-/write-pkg-4.0.0.tgz#675cc04ef6c11faacbbc7771b24c0abbf2a20039" + integrity sha512-v2UQ+50TNf2rNHJ8NyWttfm/EJUBWMJcx6ZTYZr6Qp52uuegWw/lBkCtCbnYZEmPRNL61m+u67dAmGxo+HTULA== dependencies: sort-keys "^2.0.0" - write-json-file "^2.2.0" + type-fest "^0.4.1" + write-json-file "^3.2.0" ws@^7, ws@^7.4.6: version "7.5.9" @@ -16828,17 +16707,12 @@ xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yallist@^3.0.0, yallist@^3.0.2, yallist@^3.1.1: +yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== @@ -16858,37 +16732,22 @@ yaml@^2.1.1: resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== -yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3: +yargs-parser@20.2.4: + version "20.2.4" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + +yargs-parser@21.1.1, yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs-parser@^20.2.2, yargs-parser@^20.2.3: version "20.2.9" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== -yargs-parser@^15.0.1: - version "15.0.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.3.tgz#316e263d5febe8b38eef61ac092b33dfcc9b1115" - integrity sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@^14.2.2: - version "14.2.3" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414" - integrity sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg== - dependencies: - cliui "^5.0.0" - decamelize "^1.2.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^15.0.1" - -yargs@^16.2.0: +yargs@16.2.0, yargs@^16.1.0, yargs@^16.2.0: version "16.2.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== @@ -16901,6 +16760,19 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.3.1, yargs@^17.6.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" From bddcbad038b9d2f2af59c748f337d92528c9791c Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 12:49:15 +0200 Subject: [PATCH 3/9] chore: add files --- .../__snapshots__/messages.test.ts.snap | 17 + packages/api/__tests__/messages.test.ts | 15 + packages/api/dist/LICENSE | 201 + packages/api/dist/amino/amino.d.ts | 1 + packages/api/dist/amino/amino.js | 2 + packages/api/dist/amino/bundle.d.ts | 1 + packages/api/dist/amino/bundle.js | 31 + packages/api/dist/binary.d.ts | 130 + packages/api/dist/binary.js | 371 + .../cosmos/app/module/v1alpha1/module.d.ts | 31 + .../dist/cosmos/app/module/v1alpha1/module.js | 61 + .../api/dist/cosmos/app/v1alpha1/module.d.ts | 242 + .../api/dist/cosmos/app/v1alpha1/module.js | 254 + .../api/dist/cosmos/auth/v1beta1/auth.d.ts | 144 + packages/api/dist/cosmos/auth/v1beta1/auth.js | 326 + .../api/dist/cosmos/auth/v1beta1/genesis.d.ts | 43 + .../api/dist/cosmos/auth/v1beta1/genesis.js | 91 + .../api/dist/cosmos/auth/v1beta1/query.d.ts | 776 ++ .../api/dist/cosmos/auth/v1beta1/query.js | 1300 +++ .../dist/cosmos/auth/v1beta1/query.lcd.d.ts | 17 + .../api/dist/cosmos/auth/v1beta1/query.lcd.js | 86 + .../cosmos/auth/v1beta1/query.rpc.Query.d.ts | 72 + .../cosmos/auth/v1beta1/query.rpc.Query.js | 103 + .../api/dist/cosmos/authz/v1beta1/authz.d.ts | 200 + .../api/dist/cosmos/authz/v1beta1/authz.js | 397 + .../api/dist/cosmos/authz/v1beta1/event.d.ts | 91 + .../api/dist/cosmos/authz/v1beta1/event.js | 191 + .../dist/cosmos/authz/v1beta1/genesis.d.ts | 35 + .../api/dist/cosmos/authz/v1beta1/genesis.js | 78 + .../api/dist/cosmos/authz/v1beta1/query.d.ts | 245 + .../api/dist/cosmos/authz/v1beta1/query.js | 526 ++ .../dist/cosmos/authz/v1beta1/query.lcd.d.ts | 11 + .../dist/cosmos/authz/v1beta1/query.lcd.js | 61 + .../cosmos/authz/v1beta1/query.rpc.Query.d.ts | 32 + .../cosmos/authz/v1beta1/query.rpc.Query.js | 47 + .../dist/cosmos/authz/v1beta1/tx.amino.d.ts | 18 + .../api/dist/cosmos/authz/v1beta1/tx.amino.js | 22 + .../api/dist/cosmos/authz/v1beta1/tx.d.ts | 264 + packages/api/dist/cosmos/authz/v1beta1/tx.js | 496 ++ .../cosmos/authz/v1beta1/tx.registry.d.ts | 48 + .../dist/cosmos/authz/v1beta1/tx.registry.js | 73 + .../dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts | 30 + .../dist/cosmos/authz/v1beta1/tx.rpc.msg.js | 30 + .../api/dist/cosmos/bank/v1beta1/authz.d.ts | 52 + .../api/dist/cosmos/bank/v1beta1/authz.js | 79 + .../api/dist/cosmos/bank/v1beta1/bank.d.ts | 390 + packages/api/dist/cosmos/bank/v1beta1/bank.js | 664 ++ .../api/dist/cosmos/bank/v1beta1/genesis.d.ts | 108 + .../api/dist/cosmos/bank/v1beta1/genesis.js | 205 + .../api/dist/cosmos/bank/v1beta1/query.d.ts | 843 ++ .../api/dist/cosmos/bank/v1beta1/query.js | 1441 +++ .../dist/cosmos/bank/v1beta1/query.lcd.d.ts | 17 + .../api/dist/cosmos/bank/v1beta1/query.lcd.js | 119 + .../cosmos/bank/v1beta1/query.rpc.Query.d.ts | 61 + .../cosmos/bank/v1beta1/query.rpc.Query.js | 105 + .../dist/cosmos/bank/v1beta1/tx.amino.d.ts | 13 + .../api/dist/cosmos/bank/v1beta1/tx.amino.js | 17 + packages/api/dist/cosmos/bank/v1beta1/tx.d.ts | 138 + packages/api/dist/cosmos/bank/v1beta1/tx.js | 302 + .../dist/cosmos/bank/v1beta1/tx.registry.d.ts | 36 + .../dist/cosmos/bank/v1beta1/tx.registry.js | 55 + .../dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts | 15 + .../dist/cosmos/bank/v1beta1/tx.rpc.msg.js | 24 + .../dist/cosmos/base/abci/v1beta1/abci.d.ts | 602 ++ .../api/dist/cosmos/base/abci/v1beta1/abci.js | 1061 +++ .../dist/cosmos/base/node/v1beta1/query.d.ts | 64 + .../dist/cosmos/base/node/v1beta1/query.js | 130 + .../cosmos/base/node/v1beta1/query.lcd.d.ts | 9 + .../cosmos/base/node/v1beta1/query.lcd.js | 16 + .../base/node/v1beta1/query.rpc.Service.d.ts | 16 + .../base/node/v1beta1/query.rpc.Service.js | 29 + .../cosmos/base/query/v1beta1/pagination.d.ts | 198 + .../cosmos/base/query/v1beta1/pagination.js | 204 + .../base/reflection/v2alpha1/reflection.d.ts | 1057 +++ .../base/reflection/v2alpha1/reflection.js | 1925 ++++ .../api/dist/cosmos/base/v1beta1/coin.d.ts | 169 + packages/api/dist/cosmos/base/v1beta1/coin.js | 305 + packages/api/dist/cosmos/bundle.d.ts | 7777 +++++++++++++++++ packages/api/dist/cosmos/bundle.js | 418 + packages/api/dist/cosmos/client.d.ts | 239 + packages/api/dist/cosmos/client.js | 82 + .../api/dist/cosmos/crypto/ed25519/keys.d.ts | 94 + .../api/dist/cosmos/crypto/ed25519/keys.js | 144 + packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts | 62 + packages/api/dist/cosmos/crypto/hd/v1/hd.js | 122 + .../dist/cosmos/crypto/keyring/v1/record.d.ts | 198 + .../dist/cosmos/crypto/keyring/v1/record.js | 386 + .../api/dist/cosmos/crypto/multisig/keys.d.ts | 50 + .../api/dist/cosmos/crypto/multisig/keys.js | 90 + .../crypto/multisig/v1beta1/multisig.d.ts | 97 + .../crypto/multisig/v1beta1/multisig.js | 159 + .../dist/cosmos/crypto/secp256k1/keys.d.ts | 85 + .../api/dist/cosmos/crypto/secp256k1/keys.js | 144 + .../dist/cosmos/crypto/secp256r1/keys.d.ts | 77 + .../api/dist/cosmos/crypto/secp256r1/keys.js | 144 + .../distribution/v1beta1/distribution.d.ts | 585 ++ .../distribution/v1beta1/distribution.js | 1053 +++ .../cosmos/distribution/v1beta1/genesis.d.ts | 413 + .../cosmos/distribution/v1beta1/genesis.js | 823 ++ .../cosmos/distribution/v1beta1/query.d.ts | 796 ++ .../dist/cosmos/distribution/v1beta1/query.js | 1314 +++ .../distribution/v1beta1/query.lcd.d.ts | 17 + .../cosmos/distribution/v1beta1/query.lcd.js | 79 + .../distribution/v1beta1/query.rpc.Query.d.ts | 51 + .../distribution/v1beta1/query.rpc.Query.js | 101 + .../cosmos/distribution/v1beta1/tx.amino.d.ts | 23 + .../cosmos/distribution/v1beta1/tx.amino.js | 27 + .../dist/cosmos/distribution/v1beta1/tx.d.ts | 309 + .../dist/cosmos/distribution/v1beta1/tx.js | 577 ++ .../distribution/v1beta1/tx.registry.d.ts | 60 + .../distribution/v1beta1/tx.registry.js | 91 + .../distribution/v1beta1/tx.rpc.msg.d.ts | 33 + .../cosmos/distribution/v1beta1/tx.rpc.msg.js | 36 + .../cosmos/feegrant/v1beta1/feegrant.d.ts | 245 + .../dist/cosmos/feegrant/v1beta1/feegrant.js | 456 + .../dist/cosmos/feegrant/v1beta1/genesis.d.ts | 35 + .../dist/cosmos/feegrant/v1beta1/genesis.js | 78 + .../dist/cosmos/feegrant/v1beta1/query.d.ts | 258 + .../api/dist/cosmos/feegrant/v1beta1/query.js | 487 ++ .../cosmos/feegrant/v1beta1/query.lcd.d.ts | 11 + .../dist/cosmos/feegrant/v1beta1/query.lcd.js | 44 + .../feegrant/v1beta1/query.rpc.Query.d.ts | 28 + .../feegrant/v1beta1/query.rpc.Query.js | 47 + .../cosmos/feegrant/v1beta1/tx.amino.d.ts | 13 + .../dist/cosmos/feegrant/v1beta1/tx.amino.js | 17 + .../api/dist/cosmos/feegrant/v1beta1/tx.d.ts | 163 + .../api/dist/cosmos/feegrant/v1beta1/tx.js | 352 + .../cosmos/feegrant/v1beta1/tx.registry.d.ts | 36 + .../cosmos/feegrant/v1beta1/tx.registry.js | 55 + .../cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts | 21 + .../cosmos/feegrant/v1beta1/tx.rpc.msg.js | 24 + packages/api/dist/cosmos/gov/v1/genesis.d.ts | 67 + packages/api/dist/cosmos/gov/v1/genesis.js | 156 + packages/api/dist/cosmos/gov/v1/gov.d.ts | 446 + packages/api/dist/cosmos/gov/v1/gov.js | 969 ++ packages/api/dist/cosmos/gov/v1/query.d.ts | 632 ++ packages/api/dist/cosmos/gov/v1/query.js | 1264 +++ .../api/dist/cosmos/gov/v1/query.lcd.d.ts | 16 + packages/api/dist/cosmos/gov/v1/query.lcd.js | 87 + .../dist/cosmos/gov/v1/query.rpc.Query.d.ts | 44 + .../api/dist/cosmos/gov/v1/query.rpc.Query.js | 92 + packages/api/dist/cosmos/gov/v1/tx.amino.d.ts | 28 + packages/api/dist/cosmos/gov/v1/tx.amino.js | 32 + packages/api/dist/cosmos/gov/v1/tx.d.ts | 389 + packages/api/dist/cosmos/gov/v1/tx.js | 838 ++ .../api/dist/cosmos/gov/v1/tx.registry.d.ts | 72 + .../api/dist/cosmos/gov/v1/tx.registry.js | 109 + .../api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts | 27 + packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js | 42 + .../api/dist/cosmos/gov/v1beta1/genesis.d.ts | 67 + .../api/dist/cosmos/gov/v1beta1/genesis.js | 156 + packages/api/dist/cosmos/gov/v1beta1/gov.d.ts | 519 ++ packages/api/dist/cosmos/gov/v1beta1/gov.js | 1072 +++ .../api/dist/cosmos/gov/v1beta1/query.d.ts | 632 ++ packages/api/dist/cosmos/gov/v1beta1/query.js | 1264 +++ .../dist/cosmos/gov/v1beta1/query.lcd.d.ts | 16 + .../api/dist/cosmos/gov/v1beta1/query.lcd.js | 87 + .../cosmos/gov/v1beta1/query.rpc.Query.d.ts | 44 + .../cosmos/gov/v1beta1/query.rpc.Query.js | 92 + .../api/dist/cosmos/gov/v1beta1/tx.amino.d.ts | 23 + .../api/dist/cosmos/gov/v1beta1/tx.amino.js | 27 + packages/api/dist/cosmos/gov/v1beta1/tx.d.ts | 322 + packages/api/dist/cosmos/gov/v1beta1/tx.js | 661 ++ .../dist/cosmos/gov/v1beta1/tx.registry.d.ts | 60 + .../dist/cosmos/gov/v1beta1/tx.registry.js | 91 + .../dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts | 25 + .../api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js | 36 + packages/api/dist/cosmos/group/v1/events.d.ts | 332 + packages/api/dist/cosmos/group/v1/events.js | 661 ++ .../api/dist/cosmos/group/v1/genesis.d.ts | 90 + packages/api/dist/cosmos/group/v1/genesis.js | 174 + packages/api/dist/cosmos/group/v1/query.d.ts | 998 +++ packages/api/dist/cosmos/group/v1/query.js | 2029 +++++ .../api/dist/cosmos/group/v1/query.lcd.d.ts | 21 + .../api/dist/cosmos/group/v1/query.lcd.js | 142 + .../dist/cosmos/group/v1/query.rpc.Query.d.ts | 70 + .../dist/cosmos/group/v1/query.rpc.Query.js | 137 + .../api/dist/cosmos/group/v1/tx.amino.d.ts | 73 + packages/api/dist/cosmos/group/v1/tx.amino.js | 77 + packages/api/dist/cosmos/group/v1/tx.d.ts | 1172 +++ packages/api/dist/cosmos/group/v1/tx.js | 2338 +++++ .../api/dist/cosmos/group/v1/tx.registry.d.ts | 180 + .../api/dist/cosmos/group/v1/tx.registry.js | 271 + .../api/dist/cosmos/group/v1/tx.rpc.msg.d.ts | 51 + .../api/dist/cosmos/group/v1/tx.rpc.msg.js | 96 + packages/api/dist/cosmos/group/v1/types.d.ts | 831 ++ packages/api/dist/cosmos/group/v1/types.js | 1471 ++++ packages/api/dist/cosmos/lcd.d.ts | 48 + packages/api/dist/cosmos/lcd.js | 108 + .../api/dist/cosmos/mint/v1beta1/genesis.d.ts | 42 + .../api/dist/cosmos/mint/v1beta1/genesis.js | 87 + .../api/dist/cosmos/mint/v1beta1/mint.d.ts | 101 + packages/api/dist/cosmos/mint/v1beta1/mint.js | 216 + .../api/dist/cosmos/mint/v1beta1/query.d.ts | 224 + .../api/dist/cosmos/mint/v1beta1/query.js | 382 + .../dist/cosmos/mint/v1beta1/query.lcd.d.ts | 11 + .../api/dist/cosmos/mint/v1beta1/query.lcd.js | 28 + .../cosmos/mint/v1beta1/query.rpc.Query.d.ts | 24 + .../cosmos/mint/v1beta1/query.rpc.Query.js | 47 + packages/api/dist/cosmos/msg/v1/msg.d.ts | 1 + packages/api/dist/cosmos/msg/v1/msg.js | 2 + .../cosmos/orm/module/v1alpha1/module.d.ts | 43 + .../dist/cosmos/orm/module/v1alpha1/module.js | 61 + packages/api/dist/cosmos/orm/v1/orm.d.ts | 280 + packages/api/dist/cosmos/orm/v1/orm.js | 344 + .../dist/cosmos/params/v1beta1/params.d.ts | 90 + .../api/dist/cosmos/params/v1beta1/params.js | 195 + .../api/dist/cosmos/params/v1beta1/query.d.ts | 221 + .../api/dist/cosmos/params/v1beta1/query.js | 368 + .../dist/cosmos/params/v1beta1/query.lcd.d.ts | 10 + .../dist/cosmos/params/v1beta1/query.lcd.js | 34 + .../params/v1beta1/query.rpc.Query.d.ts | 27 + .../cosmos/params/v1beta1/query.rpc.Query.js | 38 + packages/api/dist/cosmos/rpc.query.d.ts | 155 + packages/api/dist/cosmos/rpc.query.js | 80 + packages/api/dist/cosmos/rpc.tx.d.ts | 35 + packages/api/dist/cosmos/rpc.tx.js | 59 + .../dist/cosmos/staking/v1beta1/authz.d.ts | 131 + .../api/dist/cosmos/staking/v1beta1/authz.js | 240 + .../dist/cosmos/staking/v1beta1/genesis.d.ts | 122 + .../dist/cosmos/staking/v1beta1/genesis.js | 256 + .../dist/cosmos/staking/v1beta1/query.d.ts | 1222 +++ .../api/dist/cosmos/staking/v1beta1/query.js | 2162 +++++ .../cosmos/staking/v1beta1/query.lcd.d.ts | 22 + .../dist/cosmos/staking/v1beta1/query.lcd.js | 151 + .../staking/v1beta1/query.rpc.Query.d.ts | 80 + .../cosmos/staking/v1beta1/query.rpc.Query.js | 146 + .../dist/cosmos/staking/v1beta1/staking.d.ts | 1065 +++ .../dist/cosmos/staking/v1beta1/staking.js | 1999 +++++ .../dist/cosmos/staking/v1beta1/tx.amino.d.ts | 33 + .../dist/cosmos/staking/v1beta1/tx.amino.js | 37 + .../api/dist/cosmos/staking/v1beta1/tx.d.ts | 519 ++ .../api/dist/cosmos/staking/v1beta1/tx.js | 1033 +++ .../cosmos/staking/v1beta1/tx.registry.d.ts | 84 + .../cosmos/staking/v1beta1/tx.registry.js | 127 + .../cosmos/staking/v1beta1/tx.rpc.msg.d.ts | 41 + .../dist/cosmos/staking/v1beta1/tx.rpc.msg.js | 48 + .../cosmos/tx/signing/v1beta1/signing.d.ts | 284 + .../dist/cosmos/tx/signing/v1beta1/signing.js | 525 ++ .../api/dist/cosmos/tx/v1beta1/service.d.ts | 593 ++ .../api/dist/cosmos/tx/v1beta1/service.js | 999 +++ .../dist/cosmos/tx/v1beta1/service.lcd.d.ts | 11 + .../api/dist/cosmos/tx/v1beta1/service.lcd.js | 56 + .../tx/v1beta1/service.rpc.Service.d.ts | 36 + .../cosmos/tx/v1beta1/service.rpc.Service.js | 65 + packages/api/dist/cosmos/tx/v1beta1/tx.d.ts | 941 ++ packages/api/dist/cosmos/tx/v1beta1/tx.js | 1281 +++ .../dist/cosmos/upgrade/v1beta1/query.d.ts | 468 + .../api/dist/cosmos/upgrade/v1beta1/query.js | 674 ++ .../cosmos/upgrade/v1beta1/query.lcd.d.ts | 13 + .../dist/cosmos/upgrade/v1beta1/query.lcd.js | 55 + .../upgrade/v1beta1/query.rpc.Query.d.ts | 47 + .../cosmos/upgrade/v1beta1/query.rpc.Query.js | 65 + .../dist/cosmos/upgrade/v1beta1/tx.amino.d.ts | 13 + .../dist/cosmos/upgrade/v1beta1/tx.amino.js | 17 + .../api/dist/cosmos/upgrade/v1beta1/tx.d.ts | 185 + .../api/dist/cosmos/upgrade/v1beta1/tx.js | 268 + .../cosmos/upgrade/v1beta1/tx.registry.d.ts | 36 + .../cosmos/upgrade/v1beta1/tx.registry.js | 55 + .../cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts | 24 + .../dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js | 24 + .../dist/cosmos/upgrade/v1beta1/upgrade.d.ts | 274 + .../dist/cosmos/upgrade/v1beta1/upgrade.js | 382 + .../dist/cosmos/vesting/v1beta1/tx.amino.d.ts | 18 + .../dist/cosmos/vesting/v1beta1/tx.amino.js | 22 + .../api/dist/cosmos/vesting/v1beta1/tx.d.ts | 285 + .../api/dist/cosmos/vesting/v1beta1/tx.js | 499 ++ .../cosmos/vesting/v1beta1/tx.registry.d.ts | 48 + .../cosmos/vesting/v1beta1/tx.registry.js | 73 + .../cosmos/vesting/v1beta1/tx.rpc.msg.d.ts | 31 + .../dist/cosmos/vesting/v1beta1/tx.rpc.msg.js | 30 + .../dist/cosmos/vesting/v1beta1/vesting.d.ts | 282 + .../dist/cosmos/vesting/v1beta1/vesting.js | 532 ++ packages/api/dist/cosmos_proto/bundle.d.ts | 32 + packages/api/dist/cosmos_proto/bundle.js | 31 + packages/api/dist/cosmos_proto/cosmos.d.ts | 171 + packages/api/dist/cosmos_proto/cosmos.js | 221 + packages/api/dist/esm/amino/amino.js | 1 + packages/api/dist/esm/amino/bundle.js | 5 + packages/api/dist/esm/binary.js | 366 + .../esm/cosmos/app/module/v1alpha1/module.js | 58 + .../dist/esm/cosmos/app/v1alpha1/module.js | 251 + .../api/dist/esm/cosmos/auth/v1beta1/auth.js | 323 + .../dist/esm/cosmos/auth/v1beta1/genesis.js | 88 + .../api/dist/esm/cosmos/auth/v1beta1/query.js | 1291 +++ .../dist/esm/cosmos/auth/v1beta1/query.lcd.js | 82 + .../cosmos/auth/v1beta1/query.rpc.Query.js | 98 + .../dist/esm/cosmos/authz/v1beta1/authz.js | 391 + .../dist/esm/cosmos/authz/v1beta1/event.js | 188 + .../dist/esm/cosmos/authz/v1beta1/genesis.js | 75 + .../dist/esm/cosmos/authz/v1beta1/query.js | 523 ++ .../esm/cosmos/authz/v1beta1/query.lcd.js | 57 + .../cosmos/authz/v1beta1/query.rpc.Query.js | 42 + .../dist/esm/cosmos/authz/v1beta1/tx.amino.js | 19 + .../api/dist/esm/cosmos/authz/v1beta1/tx.js | 487 ++ .../esm/cosmos/authz/v1beta1/tx.registry.js | 69 + .../esm/cosmos/authz/v1beta1/tx.rpc.msg.js | 26 + .../api/dist/esm/cosmos/bank/v1beta1/authz.js | 76 + .../api/dist/esm/cosmos/bank/v1beta1/bank.js | 661 ++ .../dist/esm/cosmos/bank/v1beta1/genesis.js | 202 + .../api/dist/esm/cosmos/bank/v1beta1/query.js | 1438 +++ .../dist/esm/cosmos/bank/v1beta1/query.lcd.js | 115 + .../cosmos/bank/v1beta1/query.rpc.Query.js | 100 + .../dist/esm/cosmos/bank/v1beta1/tx.amino.js | 14 + .../api/dist/esm/cosmos/bank/v1beta1/tx.js | 299 + .../esm/cosmos/bank/v1beta1/tx.registry.js | 51 + .../esm/cosmos/bank/v1beta1/tx.rpc.msg.js | 20 + .../dist/esm/cosmos/base/abci/v1beta1/abci.js | 1058 +++ .../esm/cosmos/base/node/v1beta1/query.js | 127 + .../esm/cosmos/base/node/v1beta1/query.lcd.js | 12 + .../base/node/v1beta1/query.rpc.Service.js | 24 + .../cosmos/base/query/v1beta1/pagination.js | 201 + .../base/reflection/v2alpha1/reflection.js | 1922 ++++ .../api/dist/esm/cosmos/base/v1beta1/coin.js | 302 + packages/api/dist/esm/cosmos/bundle.js | 392 + packages/api/dist/esm/cosmos/client.js | 54 + .../dist/esm/cosmos/crypto/ed25519/keys.js | 141 + .../api/dist/esm/cosmos/crypto/hd/v1/hd.js | 119 + .../esm/cosmos/crypto/keyring/v1/record.js | 383 + .../dist/esm/cosmos/crypto/multisig/keys.js | 87 + .../crypto/multisig/v1beta1/multisig.js | 156 + .../dist/esm/cosmos/crypto/secp256k1/keys.js | 141 + .../dist/esm/cosmos/crypto/secp256r1/keys.js | 141 + .../distribution/v1beta1/distribution.js | 1050 +++ .../cosmos/distribution/v1beta1/genesis.js | 820 ++ .../esm/cosmos/distribution/v1beta1/query.js | 1311 +++ .../cosmos/distribution/v1beta1/query.lcd.js | 75 + .../distribution/v1beta1/query.rpc.Query.js | 96 + .../cosmos/distribution/v1beta1/tx.amino.js | 24 + .../esm/cosmos/distribution/v1beta1/tx.js | 574 ++ .../distribution/v1beta1/tx.registry.js | 87 + .../cosmos/distribution/v1beta1/tx.rpc.msg.js | 32 + .../esm/cosmos/feegrant/v1beta1/feegrant.js | 450 + .../esm/cosmos/feegrant/v1beta1/genesis.js | 75 + .../dist/esm/cosmos/feegrant/v1beta1/query.js | 484 + .../esm/cosmos/feegrant/v1beta1/query.lcd.js | 40 + .../feegrant/v1beta1/query.rpc.Query.js | 42 + .../esm/cosmos/feegrant/v1beta1/tx.amino.js | 14 + .../dist/esm/cosmos/feegrant/v1beta1/tx.js | 346 + .../cosmos/feegrant/v1beta1/tx.registry.js | 51 + .../esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js | 20 + .../api/dist/esm/cosmos/gov/v1/genesis.js | 153 + packages/api/dist/esm/cosmos/gov/v1/gov.js | 962 ++ packages/api/dist/esm/cosmos/gov/v1/query.js | 1261 +++ .../api/dist/esm/cosmos/gov/v1/query.lcd.js | 83 + .../dist/esm/cosmos/gov/v1/query.rpc.Query.js | 87 + .../api/dist/esm/cosmos/gov/v1/tx.amino.js | 29 + packages/api/dist/esm/cosmos/gov/v1/tx.js | 832 ++ .../api/dist/esm/cosmos/gov/v1/tx.registry.js | 105 + .../api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js | 38 + .../dist/esm/cosmos/gov/v1beta1/genesis.js | 153 + .../api/dist/esm/cosmos/gov/v1beta1/gov.js | 1062 +++ .../api/dist/esm/cosmos/gov/v1beta1/query.js | 1261 +++ .../dist/esm/cosmos/gov/v1beta1/query.lcd.js | 83 + .../esm/cosmos/gov/v1beta1/query.rpc.Query.js | 87 + .../dist/esm/cosmos/gov/v1beta1/tx.amino.js | 24 + .../api/dist/esm/cosmos/gov/v1beta1/tx.js | 655 ++ .../esm/cosmos/gov/v1beta1/tx.registry.js | 87 + .../dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js | 32 + .../api/dist/esm/cosmos/group/v1/events.js | 658 ++ .../api/dist/esm/cosmos/group/v1/genesis.js | 171 + .../api/dist/esm/cosmos/group/v1/query.js | 2026 +++++ .../api/dist/esm/cosmos/group/v1/query.lcd.js | 138 + .../esm/cosmos/group/v1/query.rpc.Query.js | 132 + .../api/dist/esm/cosmos/group/v1/tx.amino.js | 74 + packages/api/dist/esm/cosmos/group/v1/tx.js | 2330 +++++ .../dist/esm/cosmos/group/v1/tx.registry.js | 267 + .../dist/esm/cosmos/group/v1/tx.rpc.msg.js | 92 + .../api/dist/esm/cosmos/group/v1/types.js | 1459 ++++ packages/api/dist/esm/cosmos/lcd.js | 81 + .../dist/esm/cosmos/mint/v1beta1/genesis.js | 84 + .../api/dist/esm/cosmos/mint/v1beta1/mint.js | 213 + .../api/dist/esm/cosmos/mint/v1beta1/query.js | 379 + .../dist/esm/cosmos/mint/v1beta1/query.lcd.js | 24 + .../cosmos/mint/v1beta1/query.rpc.Query.js | 42 + packages/api/dist/esm/cosmos/msg/v1/msg.js | 1 + .../esm/cosmos/orm/module/v1alpha1/module.js | 58 + packages/api/dist/esm/cosmos/orm/v1/orm.js | 341 + .../dist/esm/cosmos/params/v1beta1/params.js | 192 + .../dist/esm/cosmos/params/v1beta1/query.js | 365 + .../esm/cosmos/params/v1beta1/query.lcd.js | 30 + .../cosmos/params/v1beta1/query.rpc.Query.js | 33 + packages/api/dist/esm/cosmos/rpc.query.js | 53 + packages/api/dist/esm/cosmos/rpc.tx.js | 32 + .../dist/esm/cosmos/staking/v1beta1/authz.js | 235 + .../esm/cosmos/staking/v1beta1/genesis.js | 253 + .../dist/esm/cosmos/staking/v1beta1/query.js | 2159 +++++ .../esm/cosmos/staking/v1beta1/query.lcd.js | 147 + .../cosmos/staking/v1beta1/query.rpc.Query.js | 141 + .../esm/cosmos/staking/v1beta1/staking.js | 1991 +++++ .../esm/cosmos/staking/v1beta1/tx.amino.js | 34 + .../api/dist/esm/cosmos/staking/v1beta1/tx.js | 1027 +++ .../esm/cosmos/staking/v1beta1/tx.registry.js | 123 + .../esm/cosmos/staking/v1beta1/tx.rpc.msg.js | 44 + .../esm/cosmos/tx/signing/v1beta1/signing.js | 520 ++ .../api/dist/esm/cosmos/tx/v1beta1/service.js | 992 +++ .../dist/esm/cosmos/tx/v1beta1/service.lcd.js | 52 + .../cosmos/tx/v1beta1/service.rpc.Service.js | 60 + packages/api/dist/esm/cosmos/tx/v1beta1/tx.js | 1278 +++ .../dist/esm/cosmos/upgrade/v1beta1/query.js | 671 ++ .../esm/cosmos/upgrade/v1beta1/query.lcd.js | 51 + .../cosmos/upgrade/v1beta1/query.rpc.Query.js | 60 + .../esm/cosmos/upgrade/v1beta1/tx.amino.js | 14 + .../api/dist/esm/cosmos/upgrade/v1beta1/tx.js | 265 + .../esm/cosmos/upgrade/v1beta1/tx.registry.js | 51 + .../esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js | 20 + .../esm/cosmos/upgrade/v1beta1/upgrade.js | 379 + .../esm/cosmos/vesting/v1beta1/tx.amino.js | 19 + .../api/dist/esm/cosmos/vesting/v1beta1/tx.js | 496 ++ .../esm/cosmos/vesting/v1beta1/tx.registry.js | 69 + .../esm/cosmos/vesting/v1beta1/tx.rpc.msg.js | 26 + .../esm/cosmos/vesting/v1beta1/vesting.js | 529 ++ packages/api/dist/esm/cosmos_proto/bundle.js | 5 + packages/api/dist/esm/cosmos_proto/cosmos.js | 216 + packages/api/dist/esm/gogoproto/bundle.js | 5 + packages/api/dist/esm/gogoproto/gogo.js | 1 + .../api/dist/esm/google/api/annotations.js | 1 + packages/api/dist/esm/google/api/http.js | 329 + packages/api/dist/esm/google/bundle.js | 14 + packages/api/dist/esm/google/protobuf/any.js | 74 + .../dist/esm/google/protobuf/descriptor.js | 3390 +++++++ .../api/dist/esm/google/protobuf/duration.js | 71 + .../api/dist/esm/google/protobuf/timestamp.js | 68 + packages/api/dist/esm/helpers.js | 126 + .../ibc/applications/transfer/v1/genesis.js | 99 + .../esm/ibc/applications/transfer/v1/query.js | 708 ++ .../ibc/applications/transfer/v1/query.lcd.js | 46 + .../transfer/v1/query.rpc.Query.js | 62 + .../ibc/applications/transfer/v1/transfer.js | 164 + .../ibc/applications/transfer/v1/tx.amino.js | 9 + .../esm/ibc/applications/transfer/v1/tx.js | 201 + .../applications/transfer/v1/tx.registry.js | 33 + .../applications/transfer/v1/tx.rpc.msg.js | 14 + packages/api/dist/esm/ibc/bundle.js | 64 + packages/api/dist/esm/ibc/client.js | 32 + .../api/dist/esm/ibc/core/client/v1/client.js | 611 ++ .../dist/esm/ibc/core/client/v1/genesis.js | 307 + .../api/dist/esm/ibc/core/client/v1/query.js | 1362 +++ .../dist/esm/ibc/core/client/v1/query.lcd.js | 90 + .../esm/ibc/core/client/v1/query.rpc.Query.js | 98 + .../dist/esm/ibc/core/client/v1/tx.amino.js | 24 + .../api/dist/esm/ibc/core/client/v1/tx.js | 636 ++ .../esm/ibc/core/client/v1/tx.registry.js | 87 + .../dist/esm/ibc/core/client/v1/tx.rpc.msg.js | 32 + packages/api/dist/esm/ibc/lcd.js | 97 + packages/api/dist/esm/ibc/rpc.query.js | 65 + packages/api/dist/esm/ibc/rpc.tx.js | 44 + packages/api/dist/esm/index.js | 20 + packages/api/dist/esm/regen/bundle.js | 160 + packages/api/dist/esm/regen/client.js | 44 + packages/api/dist/esm/regen/data/v1/events.js | 278 + packages/api/dist/esm/regen/data/v1/query.js | 1815 ++++ .../api/dist/esm/regen/data/v1/query.lcd.js | 63 + .../dist/esm/regen/data/v1/query.rpc.Query.js | 114 + packages/api/dist/esm/regen/data/v1/state.js | 403 + .../api/dist/esm/regen/data/v1/tx.amino.js | 24 + packages/api/dist/esm/regen/data/v1/tx.js | 613 ++ .../api/dist/esm/regen/data/v1/tx.registry.js | 87 + .../api/dist/esm/regen/data/v1/tx.rpc.msg.js | 32 + packages/api/dist/esm/regen/data/v1/types.js | 579 ++ .../esm/regen/ecocredit/basket/v1/events.js | 408 + .../esm/regen/ecocredit/basket/v1/query.js | 944 ++ .../regen/ecocredit/basket/v1/query.lcd.js | 55 + .../ecocredit/basket/v1/query.rpc.Query.js | 62 + .../esm/regen/ecocredit/basket/v1/state.js | 390 + .../esm/regen/ecocredit/basket/v1/tx.amino.js | 34 + .../dist/esm/regen/ecocredit/basket/v1/tx.js | 1021 +++ .../regen/ecocredit/basket/v1/tx.registry.js | 123 + .../regen/ecocredit/basket/v1/tx.rpc.msg.js | 44 + .../esm/regen/ecocredit/basket/v1/types.js | 167 + .../regen/ecocredit/marketplace/v1/events.js | 380 + .../regen/ecocredit/marketplace/v1/query.js | 867 ++ .../ecocredit/marketplace/v1/query.lcd.js | 69 + .../marketplace/v1/query.rpc.Query.js | 64 + .../regen/ecocredit/marketplace/v1/state.js | 349 + .../ecocredit/marketplace/v1/tx.amino.js | 34 + .../esm/regen/ecocredit/marketplace/v1/tx.js | 1195 +++ .../ecocredit/marketplace/v1/tx.registry.js | 123 + .../ecocredit/marketplace/v1/tx.rpc.msg.js | 44 + .../regen/ecocredit/marketplace/v1/types.js | 90 + .../ecocredit/orderbook/v1alpha1/memory.js | 400 + .../api/dist/esm/regen/ecocredit/v1/events.js | 1413 +++ .../api/dist/esm/regen/ecocredit/v1/query.js | 4086 +++++++++ .../dist/esm/regen/ecocredit/v1/query.lcd.js | 288 + .../esm/regen/ecocredit/v1/query.rpc.Query.js | 259 + .../api/dist/esm/regen/ecocredit/v1/state.js | 1445 +++ .../dist/esm/regen/ecocredit/v1/tx.amino.js | 119 + .../api/dist/esm/regen/ecocredit/v1/tx.js | 3780 ++++++++ .../esm/regen/ecocredit/v1/tx.registry.js | 429 + .../dist/esm/regen/ecocredit/v1/tx.rpc.msg.js | 146 + .../api/dist/esm/regen/ecocredit/v1/types.js | 601 ++ .../esm/regen/ecocredit/v1alpha1/events.js | 521 ++ .../esm/regen/ecocredit/v1alpha1/genesis.js | 327 + .../esm/regen/ecocredit/v1alpha1/query.js | 1067 +++ .../esm/regen/ecocredit/v1alpha1/query.lcd.js | 72 + .../ecocredit/v1alpha1/query.rpc.Query.js | 89 + .../esm/regen/ecocredit/v1alpha1/tx.amino.js | 44 + .../dist/esm/regen/ecocredit/v1alpha1/tx.js | 1540 ++++ .../regen/ecocredit/v1alpha1/tx.registry.js | 159 + .../regen/ecocredit/v1alpha1/tx.rpc.msg.js | 56 + .../esm/regen/ecocredit/v1alpha1/types.js | 587 ++ .../api/dist/esm/regen/intertx/v1/query.js | 140 + .../dist/esm/regen/intertx/v1/query.lcd.js | 13 + .../esm/regen/intertx/v1/query.rpc.Query.js | 24 + .../api/dist/esm/regen/intertx/v1/tx.amino.js | 14 + packages/api/dist/esm/regen/intertx/v1/tx.js | 277 + .../dist/esm/regen/intertx/v1/tx.registry.js | 51 + .../dist/esm/regen/intertx/v1/tx.rpc.msg.js | 20 + packages/api/dist/esm/regen/lcd.js | 111 + packages/api/dist/esm/regen/rpc.query.js | 71 + packages/api/dist/esm/regen/rpc.tx.js | 50 + .../api/dist/esm/tendermint/abci/types.js | 4622 ++++++++++ packages/api/dist/esm/tendermint/bundle.js | 41 + .../api/dist/esm/tendermint/crypto/keys.js | 78 + .../api/dist/esm/tendermint/crypto/proof.js | 420 + .../dist/esm/tendermint/libs/bits/types.js | 90 + packages/api/dist/esm/tendermint/p2p/types.js | 399 + .../api/dist/esm/tendermint/types/block.js | 103 + .../api/dist/esm/tendermint/types/evidence.js | 372 + .../api/dist/esm/tendermint/types/params.js | 468 + .../api/dist/esm/tendermint/types/types.js | 1442 +++ .../dist/esm/tendermint/types/validator.js | 268 + .../api/dist/esm/tendermint/version/types.js | 152 + packages/api/dist/esm/utf8.js | 137 + packages/api/dist/esm/varint.js | 408 + packages/api/dist/gogoproto/bundle.d.ts | 1 + packages/api/dist/gogoproto/bundle.js | 31 + packages/api/dist/gogoproto/gogo.d.ts | 1 + packages/api/dist/gogoproto/gogo.js | 2 + packages/api/dist/google/api/annotations.d.ts | 1 + packages/api/dist/google/api/annotations.js | 2 + packages/api/dist/google/api/http.d.ts | 1073 +++ packages/api/dist/google/api/http.js | 332 + packages/api/dist/google/bundle.d.ts | 398 + packages/api/dist/google/bundle.js | 40 + packages/api/dist/google/protobuf/any.d.ts | 338 + packages/api/dist/google/protobuf/any.js | 77 + .../api/dist/google/protobuf/descriptor.d.ts | 2278 +++++ .../api/dist/google/protobuf/descriptor.js | 3406 ++++++++ .../api/dist/google/protobuf/duration.d.ts | 223 + packages/api/dist/google/protobuf/duration.js | 74 + .../api/dist/google/protobuf/timestamp.d.ts | 293 + .../api/dist/google/protobuf/timestamp.js | 71 + packages/api/dist/helpers.d.ts | 81 + packages/api/dist/helpers.js | 140 + .../ibc/applications/transfer/v1/genesis.d.ts | 41 + .../ibc/applications/transfer/v1/genesis.js | 102 + .../ibc/applications/transfer/v1/query.d.ts | 412 + .../ibc/applications/transfer/v1/query.js | 711 ++ .../applications/transfer/v1/query.lcd.d.ts | 13 + .../ibc/applications/transfer/v1/query.lcd.js | 50 + .../transfer/v1/query.rpc.Query.d.ts | 32 + .../transfer/v1/query.rpc.Query.js | 67 + .../applications/transfer/v1/transfer.d.ts | 123 + .../ibc/applications/transfer/v1/transfer.js | 167 + .../applications/transfer/v1/tx.amino.d.ts | 8 + .../ibc/applications/transfer/v1/tx.amino.js | 12 + .../dist/ibc/applications/transfer/v1/tx.d.ts | 122 + .../dist/ibc/applications/transfer/v1/tx.js | 204 + .../applications/transfer/v1/tx.registry.d.ts | 24 + .../applications/transfer/v1/tx.registry.js | 37 + .../applications/transfer/v1/tx.rpc.msg.d.ts | 12 + .../applications/transfer/v1/tx.rpc.msg.js | 18 + packages/api/dist/ibc/bundle.d.ts | 1114 +++ packages/api/dist/ibc/bundle.js | 90 + packages/api/dist/ibc/client.d.ts | 42 + packages/api/dist/ibc/client.js | 60 + .../api/dist/ibc/core/client/v1/client.d.ts | 400 + .../api/dist/ibc/core/client/v1/client.js | 614 ++ .../api/dist/ibc/core/client/v1/genesis.d.ts | 154 + .../api/dist/ibc/core/client/v1/genesis.js | 310 + .../api/dist/ibc/core/client/v1/query.d.ts | 851 ++ packages/api/dist/ibc/core/client/v1/query.js | 1365 +++ .../dist/ibc/core/client/v1/query.lcd.d.ts | 17 + .../api/dist/ibc/core/client/v1/query.lcd.js | 94 + .../ibc/core/client/v1/query.rpc.Query.d.ts | 54 + .../ibc/core/client/v1/query.rpc.Query.js | 103 + .../api/dist/ibc/core/client/v1/tx.amino.d.ts | 23 + .../api/dist/ibc/core/client/v1/tx.amino.js | 27 + packages/api/dist/ibc/core/client/v1/tx.d.ts | 377 + packages/api/dist/ibc/core/client/v1/tx.js | 639 ++ .../dist/ibc/core/client/v1/tx.registry.d.ts | 60 + .../dist/ibc/core/client/v1/tx.registry.js | 91 + .../dist/ibc/core/client/v1/tx.rpc.msg.d.ts | 21 + .../api/dist/ibc/core/client/v1/tx.rpc.msg.js | 36 + packages/api/dist/ibc/lcd.d.ts | 60 + packages/api/dist/ibc/lcd.js | 124 + packages/api/dist/ibc/rpc.query.d.ts | 183 + packages/api/dist/ibc/rpc.query.js | 92 + packages/api/dist/ibc/rpc.tx.d.ts | 47 + packages/api/dist/ibc/rpc.tx.js | 71 + packages/api/dist/index.d.ts | 19 + packages/api/dist/index.js | 36 + packages/api/dist/package.json | 43 + packages/api/dist/regen/bundle.d.ts | 5330 +++++++++++ packages/api/dist/regen/bundle.js | 186 + packages/api/dist/regen/client.d.ts | 262 + packages/api/dist/regen/client.js | 72 + packages/api/dist/regen/data/v1/events.d.ts | 162 + packages/api/dist/regen/data/v1/events.js | 281 + packages/api/dist/regen/data/v1/query.d.ts | 970 ++ packages/api/dist/regen/data/v1/query.js | 1818 ++++ .../api/dist/regen/data/v1/query.lcd.d.ts | 14 + packages/api/dist/regen/data/v1/query.lcd.js | 67 + .../dist/regen/data/v1/query.rpc.Query.d.ts | 65 + .../api/dist/regen/data/v1/query.rpc.Query.js | 119 + packages/api/dist/regen/data/v1/state.d.ts | 227 + packages/api/dist/regen/data/v1/state.js | 406 + packages/api/dist/regen/data/v1/tx.amino.d.ts | 23 + packages/api/dist/regen/data/v1/tx.amino.js | 27 + packages/api/dist/regen/data/v1/tx.js | 616 ++ .../api/dist/regen/data/v1/tx.registry.d.ts | 60 + .../api/dist/regen/data/v1/tx.registry.js | 91 + .../api/dist/regen/data/v1/tx.rpc.msg.d.ts | 55 + packages/api/dist/regen/data/v1/tx.rpc.msg.js | 36 + packages/api/dist/regen/data/v1/types.d.ts | 287 + packages/api/dist/regen/data/v1/types.js | 590 ++ .../regen/ecocredit/basket/v1/events.d.ts | 319 + .../dist/regen/ecocredit/basket/v1/events.js | 411 + .../dist/regen/ecocredit/basket/v1/query.d.ts | 608 ++ .../dist/regen/ecocredit/basket/v1/query.js | 947 ++ .../regen/ecocredit/basket/v1/query.lcd.d.ts | 13 + .../regen/ecocredit/basket/v1/query.lcd.js | 59 + .../ecocredit/basket/v1/query.rpc.Query.d.ts | 37 + .../ecocredit/basket/v1/query.rpc.Query.js | 67 + .../dist/regen/ecocredit/basket/v1/state.d.ts | 308 + .../dist/regen/ecocredit/basket/v1/state.js | 393 + .../regen/ecocredit/basket/v1/tx.amino.d.ts | 33 + .../regen/ecocredit/basket/v1/tx.amino.js | 37 + .../dist/regen/ecocredit/basket/v1/tx.d.ts | 741 ++ .../api/dist/regen/ecocredit/basket/v1/tx.js | 1024 +++ .../ecocredit/basket/v1/tx.registry.d.ts | 84 + .../regen/ecocredit/basket/v1/tx.registry.js | 127 + .../regen/ecocredit/basket/v1/tx.rpc.msg.d.ts | 74 + .../regen/ecocredit/basket/v1/tx.rpc.msg.js | 48 + .../dist/regen/ecocredit/basket/v1/types.d.ts | 142 + .../dist/regen/ecocredit/basket/v1/types.js | 170 + .../ecocredit/marketplace/v1/events.d.ts | 253 + .../regen/ecocredit/marketplace/v1/events.js | 383 + .../regen/ecocredit/marketplace/v1/query.d.ts | 506 ++ .../regen/ecocredit/marketplace/v1/query.js | 870 ++ .../ecocredit/marketplace/v1/query.lcd.d.ts | 13 + .../ecocredit/marketplace/v1/query.lcd.js | 73 + .../marketplace/v1/query.rpc.Query.d.ts | 41 + .../marketplace/v1/query.rpc.Query.js | 69 + .../regen/ecocredit/marketplace/v1/state.d.ts | 306 + .../regen/ecocredit/marketplace/v1/state.js | 352 + .../ecocredit/marketplace/v1/tx.amino.d.ts | 33 + .../ecocredit/marketplace/v1/tx.amino.js | 37 + .../regen/ecocredit/marketplace/v1/tx.d.ts | 748 ++ .../dist/regen/ecocredit/marketplace/v1/tx.js | 1198 +++ .../ecocredit/marketplace/v1/tx.registry.d.ts | 84 + .../ecocredit/marketplace/v1/tx.registry.js | 127 + .../ecocredit/marketplace/v1/tx.rpc.msg.d.ts | 36 + .../ecocredit/marketplace/v1/tx.rpc.msg.js | 48 + .../regen/ecocredit/marketplace/v1/types.d.ts | 70 + .../regen/ecocredit/marketplace/v1/types.js | 93 + .../ecocredit/orderbook/v1alpha1/memory.d.ts | 222 + .../ecocredit/orderbook/v1alpha1/memory.js | 403 + .../api/dist/regen/ecocredit/v1/events.d.ts | 958 ++ .../api/dist/regen/ecocredit/v1/events.js | 1416 +++ .../api/dist/regen/ecocredit/v1/query.d.ts | 2417 +++++ packages/api/dist/regen/ecocredit/v1/query.js | 4090 +++++++++ .../dist/regen/ecocredit/v1/query.lcd.d.ts | 34 + .../api/dist/regen/ecocredit/v1/query.lcd.js | 292 + .../regen/ecocredit/v1/query.rpc.Query.d.ts | 166 + .../regen/ecocredit/v1/query.rpc.Query.js | 264 + .../api/dist/regen/ecocredit/v1/state.d.ts | 1110 +++ packages/api/dist/regen/ecocredit/v1/state.js | 1448 +++ .../api/dist/regen/ecocredit/v1/tx.amino.d.ts | 118 + .../api/dist/regen/ecocredit/v1/tx.amino.js | 122 + packages/api/dist/regen/ecocredit/v1/tx.d.ts | 2528 ++++++ packages/api/dist/regen/ecocredit/v1/tx.js | 3783 ++++++++ .../dist/regen/ecocredit/v1/tx.registry.d.ts | 288 + .../dist/regen/ecocredit/v1/tx.registry.js | 433 + .../dist/regen/ecocredit/v1/tx.rpc.msg.d.ts | 202 + .../api/dist/regen/ecocredit/v1/tx.rpc.msg.js | 150 + .../api/dist/regen/ecocredit/v1/types.d.ts | 493 ++ packages/api/dist/regen/ecocredit/v1/types.js | 604 ++ .../dist/regen/ecocredit/v1alpha1/events.d.ts | 357 + .../dist/regen/ecocredit/v1alpha1/events.js | 524 ++ .../regen/ecocredit/v1alpha1/genesis.d.ts | 169 + .../dist/regen/ecocredit/v1alpha1/genesis.js | 330 + .../dist/regen/ecocredit/v1alpha1/query.d.ts | 579 ++ .../dist/regen/ecocredit/v1alpha1/query.js | 1070 +++ .../regen/ecocredit/v1alpha1/query.lcd.d.ts | 16 + .../regen/ecocredit/v1alpha1/query.lcd.js | 76 + .../ecocredit/v1alpha1/query.rpc.Query.d.ts | 50 + .../ecocredit/v1alpha1/query.rpc.Query.js | 94 + .../regen/ecocredit/v1alpha1/tx.amino.d.ts | 43 + .../dist/regen/ecocredit/v1alpha1/tx.amino.js | 47 + .../api/dist/regen/ecocredit/v1alpha1/tx.d.ts | 936 ++ .../api/dist/regen/ecocredit/v1alpha1/tx.js | 1543 ++++ .../regen/ecocredit/v1alpha1/tx.registry.d.ts | 108 + .../regen/ecocredit/v1alpha1/tx.registry.js | 163 + .../regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts | 47 + .../regen/ecocredit/v1alpha1/tx.rpc.msg.js | 60 + .../dist/regen/ecocredit/v1alpha1/types.d.ts | 368 + .../dist/regen/ecocredit/v1alpha1/types.js | 590 ++ packages/api/dist/regen/intertx/v1/query.d.ts | 92 + packages/api/dist/regen/intertx/v1/query.js | 143 + .../api/dist/regen/intertx/v1/query.lcd.d.ts | 9 + .../api/dist/regen/intertx/v1/query.lcd.js | 17 + .../regen/intertx/v1/query.rpc.Query.d.ts | 19 + .../dist/regen/intertx/v1/query.rpc.Query.js | 29 + .../api/dist/regen/intertx/v1/tx.amino.d.ts | 13 + .../api/dist/regen/intertx/v1/tx.amino.js | 17 + packages/api/dist/regen/intertx/v1/tx.d.ts | 156 + packages/api/dist/regen/intertx/v1/tx.js | 280 + .../dist/regen/intertx/v1/tx.registry.d.ts | 36 + .../api/dist/regen/intertx/v1/tx.registry.js | 55 + .../api/dist/regen/intertx/v1/tx.rpc.msg.d.ts | 15 + .../api/dist/regen/intertx/v1/tx.rpc.msg.js | 24 + packages/api/dist/regen/lcd.d.ts | 66 + packages/api/dist/regen/lcd.js | 138 + packages/api/dist/regen/rpc.query.d.ts | 235 + packages/api/dist/regen/rpc.query.js | 98 + packages/api/dist/regen/rpc.tx.d.ts | 53 + packages/api/dist/regen/rpc.tx.js | 77 + packages/api/dist/tendermint/abci/types.d.ts | 1913 ++++ packages/api/dist/tendermint/abci/types.js | 4636 ++++++++++ packages/api/dist/tendermint/bundle.d.ts | 1094 +++ packages/api/dist/tendermint/bundle.js | 67 + packages/api/dist/tendermint/crypto/keys.d.ts | 36 + packages/api/dist/tendermint/crypto/keys.js | 81 + .../api/dist/tendermint/crypto/proof.d.ts | 192 + packages/api/dist/tendermint/crypto/proof.js | 423 + .../api/dist/tendermint/libs/bits/types.d.ts | 33 + .../api/dist/tendermint/libs/bits/types.js | 93 + packages/api/dist/tendermint/p2p/types.d.ts | 153 + packages/api/dist/tendermint/p2p/types.js | 402 + packages/api/dist/tendermint/types/block.d.ts | 41 + packages/api/dist/tendermint/types/block.js | 106 + .../api/dist/tendermint/types/evidence.d.ts | 152 + .../api/dist/tendermint/types/evidence.js | 375 + .../api/dist/tendermint/types/params.d.ts | 297 + packages/api/dist/tendermint/types/params.js | 471 + packages/api/dist/tendermint/types/types.d.ts | 597 ++ packages/api/dist/tendermint/types/types.js | 1449 +++ .../api/dist/tendermint/types/validator.d.ts | 107 + .../api/dist/tendermint/types/validator.js | 271 + .../api/dist/tendermint/version/types.d.ts | 95 + packages/api/dist/tendermint/version/types.js | 155 + packages/api/dist/utf8.d.ts | 27 + packages/api/dist/utf8.js | 142 + packages/api/dist/varint.d.ts | 105 + packages/api/dist/varint.js | 427 + packages/api/jest.config.js | 18 + packages/api/scripts/aminos.ts | 128 + packages/api/scripts/codegen.ts | 110 + packages/api/src/amino/amino.ts | 1 + packages/api/src/amino/bundle.ts | 5 + packages/api/src/binary.ts | 535 ++ .../src/cosmos/app/module/v1alpha1/module.ts | 72 + .../api/src/cosmos/app/v1alpha1/module.ts | 451 + packages/api/src/cosmos/auth/v1beta1/auth.ts | 425 + .../api/src/cosmos/auth/v1beta1/genesis.ts | 114 + .../api/src/cosmos/auth/v1beta1/query.lcd.ts | 88 + .../cosmos/auth/v1beta1/query.rpc.Query.ts | 145 + packages/api/src/cosmos/auth/v1beta1/query.ts | 1812 ++++ .../api/src/cosmos/authz/v1beta1/authz.ts | 531 ++ .../api/src/cosmos/authz/v1beta1/event.ts | 252 + .../api/src/cosmos/authz/v1beta1/genesis.ts | 94 + .../api/src/cosmos/authz/v1beta1/query.lcd.ts | 63 + .../cosmos/authz/v1beta1/query.rpc.Query.ts | 61 + .../api/src/cosmos/authz/v1beta1/query.ts | 684 ++ .../api/src/cosmos/authz/v1beta1/tx.amino.ts | 19 + .../src/cosmos/authz/v1beta1/tx.registry.ts | 71 + .../src/cosmos/authz/v1beta1/tx.rpc.msg.ts | 49 + packages/api/src/cosmos/authz/v1beta1/tx.ts | 656 ++ packages/api/src/cosmos/bank/v1beta1/authz.ts | 112 + packages/api/src/cosmos/bank/v1beta1/bank.ts | 952 ++ .../api/src/cosmos/bank/v1beta1/genesis.ts | 277 + .../api/src/cosmos/bank/v1beta1/query.lcd.ts | 121 + .../cosmos/bank/v1beta1/query.rpc.Query.ts | 136 + packages/api/src/cosmos/bank/v1beta1/query.ts | 2022 +++++ .../api/src/cosmos/bank/v1beta1/tx.amino.ts | 14 + .../src/cosmos/bank/v1beta1/tx.registry.ts | 53 + .../api/src/cosmos/bank/v1beta1/tx.rpc.msg.ts | 29 + packages/api/src/cosmos/bank/v1beta1/tx.ts | 373 + .../api/src/cosmos/base/abci/v1beta1/abci.ts | 1518 ++++ .../src/cosmos/base/node/v1beta1/query.lcd.ts | 19 + .../base/node/v1beta1/query.rpc.Service.ts | 31 + .../api/src/cosmos/base/node/v1beta1/query.ts | 161 + .../cosmos/base/query/v1beta1/pagination.ts | 372 + .../base/reflection/v2alpha1/reflection.ts | 2614 ++++++ packages/api/src/cosmos/base/v1beta1/coin.ts | 418 + packages/api/src/cosmos/bundle.ts | 365 + packages/api/src/cosmos/client.ts | 67 + .../api/src/cosmos/crypto/ed25519/keys.ts | 208 + packages/api/src/cosmos/crypto/hd/v1/hd.ts | 167 + .../src/cosmos/crypto/keyring/v1/record.ts | 507 ++ .../api/src/cosmos/crypto/multisig/keys.ts | 121 + .../crypto/multisig/v1beta1/multisig.ts | 225 + .../api/src/cosmos/crypto/secp256k1/keys.ts | 199 + .../api/src/cosmos/crypto/secp256r1/keys.ts | 191 + .../distribution/v1beta1/distribution.ts | 1469 ++++ .../cosmos/distribution/v1beta1/genesis.ts | 1118 +++ .../cosmos/distribution/v1beta1/query.lcd.ts | 81 + .../distribution/v1beta1/query.rpc.Query.ts | 122 + .../src/cosmos/distribution/v1beta1/query.ts | 1857 ++++ .../cosmos/distribution/v1beta1/tx.amino.ts | 24 + .../distribution/v1beta1/tx.registry.ts | 89 + .../cosmos/distribution/v1beta1/tx.rpc.msg.ts | 57 + .../api/src/cosmos/distribution/v1beta1/tx.ts | 768 ++ .../src/cosmos/feegrant/v1beta1/feegrant.ts | 632 ++ .../src/cosmos/feegrant/v1beta1/genesis.ts | 94 + .../src/cosmos/feegrant/v1beta1/query.lcd.ts | 46 + .../feegrant/v1beta1/query.rpc.Query.ts | 57 + .../api/src/cosmos/feegrant/v1beta1/query.ts | 659 ++ .../src/cosmos/feegrant/v1beta1/tx.amino.ts | 14 + .../cosmos/feegrant/v1beta1/tx.registry.ts | 53 + .../src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts | 35 + .../api/src/cosmos/feegrant/v1beta1/tx.ts | 445 + packages/api/src/cosmos/gov/v1/genesis.ts | 202 + packages/api/src/cosmos/gov/v1/gov.ts | 1240 +++ packages/api/src/cosmos/gov/v1/query.lcd.ts | 89 + .../api/src/cosmos/gov/v1/query.rpc.Query.ts | 108 + packages/api/src/cosmos/gov/v1/query.ts | 1679 ++++ packages/api/src/cosmos/gov/v1/tx.amino.ts | 29 + packages/api/src/cosmos/gov/v1/tx.registry.ts | 107 + packages/api/src/cosmos/gov/v1/tx.rpc.msg.ts | 56 + packages/api/src/cosmos/gov/v1/tx.ts | 1067 +++ .../api/src/cosmos/gov/v1beta1/genesis.ts | 202 + packages/api/src/cosmos/gov/v1beta1/gov.ts | 1398 +++ .../api/src/cosmos/gov/v1beta1/query.lcd.ts | 89 + .../src/cosmos/gov/v1beta1/query.rpc.Query.ts | 108 + packages/api/src/cosmos/gov/v1beta1/query.ts | 1679 ++++ .../api/src/cosmos/gov/v1beta1/tx.amino.ts | 24 + .../api/src/cosmos/gov/v1beta1/tx.registry.ts | 89 + .../api/src/cosmos/gov/v1beta1/tx.rpc.msg.ts | 49 + packages/api/src/cosmos/gov/v1beta1/tx.ts | 854 ++ packages/api/src/cosmos/group/v1/events.ts | 873 ++ packages/api/src/cosmos/group/v1/genesis.ts | 241 + packages/api/src/cosmos/group/v1/query.lcd.ts | 144 + .../src/cosmos/group/v1/query.rpc.Query.ts | 169 + packages/api/src/cosmos/group/v1/query.ts | 2675 ++++++ packages/api/src/cosmos/group/v1/tx.amino.ts | 74 + .../api/src/cosmos/group/v1/tx.registry.ts | 269 + .../api/src/cosmos/group/v1/tx.rpc.msg.ts | 125 + packages/api/src/cosmos/group/v1/tx.ts | 3079 +++++++ packages/api/src/cosmos/group/v1/types.ts | 2067 +++++ packages/api/src/cosmos/lcd.ts | 85 + .../api/src/cosmos/mint/v1beta1/genesis.ts | 111 + packages/api/src/cosmos/mint/v1beta1/mint.ts | 287 + .../api/src/cosmos/mint/v1beta1/query.lcd.ts | 31 + .../cosmos/mint/v1beta1/query.rpc.Query.ts | 53 + packages/api/src/cosmos/mint/v1beta1/query.ts | 514 ++ packages/api/src/cosmos/msg/v1/msg.ts | 1 + .../src/cosmos/orm/module/v1alpha1/module.ts | 84 + packages/api/src/cosmos/orm/v1/orm.ts | 567 ++ .../api/src/cosmos/params/v1beta1/params.ts | 254 + .../src/cosmos/params/v1beta1/query.lcd.ts | 37 + .../cosmos/params/v1beta1/query.rpc.Query.ts | 49 + .../api/src/cosmos/params/v1beta1/query.ts | 514 ++ packages/api/src/cosmos/rpc.query.ts | 57 + packages/api/src/cosmos/rpc.tx.ts | 38 + .../api/src/cosmos/staking/v1beta1/authz.ts | 316 + .../api/src/cosmos/staking/v1beta1/genesis.ts | 342 + .../src/cosmos/staking/v1beta1/query.lcd.ts | 153 + .../cosmos/staking/v1beta1/query.rpc.Query.ts | 186 + .../api/src/cosmos/staking/v1beta1/query.ts | 3001 +++++++ .../api/src/cosmos/staking/v1beta1/staking.ts | 2764 ++++++ .../src/cosmos/staking/v1beta1/tx.amino.ts | 34 + .../src/cosmos/staking/v1beta1/tx.registry.ts | 125 + .../src/cosmos/staking/v1beta1/tx.rpc.msg.ts | 75 + packages/api/src/cosmos/staking/v1beta1/tx.ts | 1371 +++ .../src/cosmos/tx/signing/v1beta1/signing.ts | 673 ++ .../api/src/cosmos/tx/v1beta1/service.lcd.ts | 58 + .../cosmos/tx/v1beta1/service.rpc.Service.ts | 79 + packages/api/src/cosmos/tx/v1beta1/service.ts | 1404 +++ packages/api/src/cosmos/tx/v1beta1/tx.ts | 2037 +++++ .../src/cosmos/upgrade/v1beta1/query.lcd.ts | 58 + .../cosmos/upgrade/v1beta1/query.rpc.Query.ts | 90 + .../api/src/cosmos/upgrade/v1beta1/query.ts | 1000 +++ .../src/cosmos/upgrade/v1beta1/tx.amino.ts | 14 + .../src/cosmos/upgrade/v1beta1/tx.registry.ts | 53 + .../src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts | 38 + packages/api/src/cosmos/upgrade/v1beta1/tx.ts | 390 + .../api/src/cosmos/upgrade/v1beta1/upgrade.ts | 599 ++ .../src/cosmos/vesting/v1beta1/tx.amino.ts | 19 + .../src/cosmos/vesting/v1beta1/tx.registry.ts | 71 + .../src/cosmos/vesting/v1beta1/tx.rpc.msg.ts | 50 + packages/api/src/cosmos/vesting/v1beta1/tx.ts | 688 ++ .../api/src/cosmos/vesting/v1beta1/vesting.ts | 725 ++ packages/api/src/cosmos_proto/bundle.ts | 5 + packages/api/src/cosmos_proto/cosmos.ts | 349 + packages/api/src/gogoproto/bundle.ts | 5 + packages/api/src/gogoproto/gogo.ts | 1 + packages/api/src/google/api/annotations.ts | 1 + packages/api/src/google/api/http.ts | 1363 +++ packages/api/src/google/bundle.ts | 13 + packages/api/src/google/protobuf/any.ts | 399 + .../api/src/google/protobuf/descriptor.ts | 5181 +++++++++++ packages/api/src/google/protobuf/duration.ts | 281 + packages/api/src/google/protobuf/timestamp.ts | 348 + packages/api/src/helpers.ts | 256 + .../ibc/applications/transfer/v1/genesis.ts | 124 + .../ibc/applications/transfer/v1/query.lcd.ts | 52 + .../transfer/v1/query.rpc.Query.ts | 77 + .../src/ibc/applications/transfer/v1/query.ts | 983 +++ .../ibc/applications/transfer/v1/transfer.ts | 260 + .../ibc/applications/transfer/v1/tx.amino.ts | 9 + .../applications/transfer/v1/tx.registry.ts | 35 + .../applications/transfer/v1/tx.rpc.msg.ts | 21 + .../src/ibc/applications/transfer/v1/tx.ts | 291 + packages/api/src/ibc/bundle.ts | 59 + packages/api/src/ibc/client.ts | 51 + packages/api/src/ibc/core/client/v1/client.ts | 915 ++ .../api/src/ibc/core/client/v1/genesis.ts | 416 + .../api/src/ibc/core/client/v1/query.lcd.ts | 96 + .../src/ibc/core/client/v1/query.rpc.Query.ts | 127 + packages/api/src/ibc/core/client/v1/query.ts | 1963 +++++ .../api/src/ibc/core/client/v1/tx.amino.ts | 24 + .../api/src/ibc/core/client/v1/tx.registry.ts | 89 + .../api/src/ibc/core/client/v1/tx.rpc.msg.ts | 45 + packages/api/src/ibc/core/client/v1/tx.ts | 895 ++ packages/api/src/ibc/lcd.ts | 101 + packages/api/src/ibc/rpc.query.ts | 69 + packages/api/src/ibc/rpc.tx.ts | 50 + packages/api/src/regen/bundle.ts | 153 + packages/api/src/regen/client.ts | 63 + packages/api/src/regen/data/v1/events.ts | 391 + packages/api/src/regen/data/v1/query.lcd.ts | 69 + .../api/src/regen/data/v1/query.rpc.Query.ts | 150 + packages/api/src/regen/data/v1/query.ts | 2476 ++++++ packages/api/src/regen/data/v1/state.ts | 569 ++ packages/api/src/regen/data/v1/tx.amino.ts | 24 + packages/api/src/regen/data/v1/tx.registry.ts | 89 + packages/api/src/regen/data/v1/tx.rpc.msg.ts | 79 + packages/api/src/regen/data/v1/tx.ts | 887 ++ packages/api/src/regen/data/v1/types.ts | 734 ++ .../src/regen/ecocredit/basket/v1/events.ts | 663 ++ .../regen/ecocredit/basket/v1/query.lcd.ts | 61 + .../ecocredit/basket/v1/query.rpc.Query.ts | 82 + .../src/regen/ecocredit/basket/v1/query.ts | 1395 +++ .../src/regen/ecocredit/basket/v1/state.ts | 647 ++ .../src/regen/ecocredit/basket/v1/tx.amino.ts | 34 + .../regen/ecocredit/basket/v1/tx.registry.ts | 125 + .../regen/ecocredit/basket/v1/tx.rpc.msg.ts | 108 + .../api/src/regen/ecocredit/basket/v1/tx.ts | 1596 ++++ .../src/regen/ecocredit/basket/v1/types.ts | 283 + .../regen/ecocredit/marketplace/v1/events.ts | 560 ++ .../ecocredit/marketplace/v1/query.lcd.ts | 75 + .../marketplace/v1/query.rpc.Query.ts | 88 + .../regen/ecocredit/marketplace/v1/query.ts | 1234 +++ .../regen/ecocredit/marketplace/v1/state.ts | 618 ++ .../ecocredit/marketplace/v1/tx.amino.ts | 34 + .../ecocredit/marketplace/v1/tx.registry.ts | 125 + .../ecocredit/marketplace/v1/tx.rpc.msg.ts | 70 + .../src/regen/ecocredit/marketplace/v1/tx.ts | 1735 ++++ .../regen/ecocredit/marketplace/v1/types.ts | 146 + .../ecocredit/orderbook/v1alpha1/memory.ts | 573 ++ packages/api/src/regen/ecocredit/v1/events.ts | 2153 +++++ .../api/src/regen/ecocredit/v1/query.lcd.ts | 294 + .../src/regen/ecocredit/v1/query.rpc.Query.ts | 366 + packages/api/src/regen/ecocredit/v1/query.ts | 5794 ++++++++++++ packages/api/src/regen/ecocredit/v1/state.ts | 2361 +++++ .../api/src/regen/ecocredit/v1/tx.amino.ts | 119 + .../api/src/regen/ecocredit/v1/tx.registry.ts | 431 + .../api/src/regen/ecocredit/v1/tx.rpc.msg.ts | 321 + packages/api/src/regen/ecocredit/v1/tx.ts | 5627 ++++++++++++ packages/api/src/regen/ecocredit/v1/types.ts | 1014 +++ .../src/regen/ecocredit/v1alpha1/events.ts | 817 ++ .../src/regen/ecocredit/v1alpha1/genesis.ts | 453 + .../src/regen/ecocredit/v1alpha1/query.lcd.ts | 78 + .../ecocredit/v1alpha1/query.rpc.Query.ts | 116 + .../api/src/regen/ecocredit/v1alpha1/query.ts | 1442 +++ .../src/regen/ecocredit/v1alpha1/tx.amino.ts | 44 + .../regen/ecocredit/v1alpha1/tx.registry.ts | 161 + .../regen/ecocredit/v1alpha1/tx.rpc.msg.ts | 91 + .../api/src/regen/ecocredit/v1alpha1/tx.ts | 2211 +++++ .../api/src/regen/ecocredit/v1alpha1/types.ts | 888 ++ .../api/src/regen/intertx/v1/query.lcd.ts | 20 + .../src/regen/intertx/v1/query.rpc.Query.ts | 34 + packages/api/src/regen/intertx/v1/query.ts | 207 + packages/api/src/regen/intertx/v1/tx.amino.ts | 14 + .../api/src/regen/intertx/v1/tx.registry.ts | 53 + .../api/src/regen/intertx/v1/tx.rpc.msg.ts | 29 + packages/api/src/regen/intertx/v1/tx.ts | 377 + packages/api/src/regen/lcd.ts | 115 + packages/api/src/regen/rpc.query.ts | 75 + packages/api/src/regen/rpc.tx.ts | 56 + packages/api/src/tendermint/abci/types.ts | 5874 +++++++++++++ packages/api/src/tendermint/bundle.ts | 39 + packages/api/src/tendermint/crypto/keys.ts | 101 + packages/api/src/tendermint/crypto/proof.ts | 549 ++ .../api/src/tendermint/libs/bits/types.ts | 108 + packages/api/src/tendermint/p2p/types.ts | 503 ++ packages/api/src/tendermint/types/block.ts | 129 + packages/api/src/tendermint/types/evidence.ts | 471 + packages/api/src/tendermint/types/params.ts | 690 ++ packages/api/src/tendermint/types/types.ts | 1849 ++++ .../api/src/tendermint/types/validator.ts | 336 + packages/api/src/tendermint/version/types.ts | 222 + packages/api/src/utf8.ts | 149 + packages/api/src/varint.ts | 489 ++ packages/api/tsconfig.esm.json | 9 + 998 files changed, 390917 insertions(+) create mode 100644 packages/api/__tests__/__snapshots__/messages.test.ts.snap create mode 100644 packages/api/__tests__/messages.test.ts create mode 100644 packages/api/dist/LICENSE create mode 100644 packages/api/dist/amino/amino.d.ts create mode 100644 packages/api/dist/amino/amino.js create mode 100644 packages/api/dist/amino/bundle.d.ts create mode 100644 packages/api/dist/amino/bundle.js create mode 100644 packages/api/dist/binary.d.ts create mode 100644 packages/api/dist/binary.js create mode 100644 packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts create mode 100644 packages/api/dist/cosmos/app/module/v1alpha1/module.js create mode 100644 packages/api/dist/cosmos/app/v1alpha1/module.d.ts create mode 100644 packages/api/dist/cosmos/app/v1alpha1/module.js create mode 100644 packages/api/dist/cosmos/auth/v1beta1/auth.d.ts create mode 100644 packages/api/dist/cosmos/auth/v1beta1/auth.js create mode 100644 packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/auth/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/authz.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/authz.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/event.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/event.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/authz.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/authz.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/bank.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/bank.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts create mode 100644 packages/api/dist/cosmos/base/abci/v1beta1/abci.js create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts create mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js create mode 100644 packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts create mode 100644 packages/api/dist/cosmos/base/query/v1beta1/pagination.js create mode 100644 packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts create mode 100644 packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js create mode 100644 packages/api/dist/cosmos/base/v1beta1/coin.d.ts create mode 100644 packages/api/dist/cosmos/base/v1beta1/coin.js create mode 100644 packages/api/dist/cosmos/bundle.d.ts create mode 100644 packages/api/dist/cosmos/bundle.js create mode 100644 packages/api/dist/cosmos/client.d.ts create mode 100644 packages/api/dist/cosmos/client.js create mode 100644 packages/api/dist/cosmos/crypto/ed25519/keys.d.ts create mode 100644 packages/api/dist/cosmos/crypto/ed25519/keys.js create mode 100644 packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts create mode 100644 packages/api/dist/cosmos/crypto/hd/v1/hd.js create mode 100644 packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts create mode 100644 packages/api/dist/cosmos/crypto/keyring/v1/record.js create mode 100644 packages/api/dist/cosmos/crypto/multisig/keys.d.ts create mode 100644 packages/api/dist/cosmos/crypto/multisig/keys.js create mode 100644 packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts create mode 100644 packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js create mode 100644 packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts create mode 100644 packages/api/dist/cosmos/crypto/secp256k1/keys.js create mode 100644 packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts create mode 100644 packages/api/dist/cosmos/crypto/secp256r1/keys.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/distribution.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/gov/v1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/genesis.js create mode 100644 packages/api/dist/cosmos/gov/v1/gov.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/gov.js create mode 100644 packages/api/dist/cosmos/gov/v1/query.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/query.js create mode 100644 packages/api/dist/cosmos/gov/v1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/query.lcd.js create mode 100644 packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/gov/v1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/tx.amino.js create mode 100644 packages/api/dist/cosmos/gov/v1/tx.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/tx.js create mode 100644 packages/api/dist/cosmos/gov/v1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/tx.registry.js create mode 100644 packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/gov.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/gov.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/group/v1/events.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/events.js create mode 100644 packages/api/dist/cosmos/group/v1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/genesis.js create mode 100644 packages/api/dist/cosmos/group/v1/query.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/query.js create mode 100644 packages/api/dist/cosmos/group/v1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/query.lcd.js create mode 100644 packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/group/v1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/tx.amino.js create mode 100644 packages/api/dist/cosmos/group/v1/tx.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/tx.js create mode 100644 packages/api/dist/cosmos/group/v1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/tx.registry.js create mode 100644 packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/group/v1/types.d.ts create mode 100644 packages/api/dist/cosmos/group/v1/types.js create mode 100644 packages/api/dist/cosmos/lcd.d.ts create mode 100644 packages/api/dist/cosmos/lcd.js create mode 100644 packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/mint/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/mint/v1beta1/mint.d.ts create mode 100644 packages/api/dist/cosmos/mint/v1beta1/mint.js create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/msg/v1/msg.d.ts create mode 100644 packages/api/dist/cosmos/msg/v1/msg.js create mode 100644 packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts create mode 100644 packages/api/dist/cosmos/orm/module/v1alpha1/module.js create mode 100644 packages/api/dist/cosmos/orm/v1/orm.d.ts create mode 100644 packages/api/dist/cosmos/orm/v1/orm.js create mode 100644 packages/api/dist/cosmos/params/v1beta1/params.d.ts create mode 100644 packages/api/dist/cosmos/params/v1beta1/params.js create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/rpc.query.d.ts create mode 100644 packages/api/dist/cosmos/rpc.query.js create mode 100644 packages/api/dist/cosmos/rpc.tx.d.ts create mode 100644 packages/api/dist/cosmos/rpc.tx.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/authz.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/authz.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/genesis.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/staking.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/staking.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts create mode 100644 packages/api/dist/cosmos/tx/signing/v1beta1/signing.js create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.d.ts create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.js create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.lcd.js create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts create mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js create mode 100644 packages/api/dist/cosmos/tx/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/tx/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts create mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.js create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts create mode 100644 packages/api/dist/cosmos/vesting/v1beta1/vesting.js create mode 100644 packages/api/dist/cosmos_proto/bundle.d.ts create mode 100644 packages/api/dist/cosmos_proto/bundle.js create mode 100644 packages/api/dist/cosmos_proto/cosmos.d.ts create mode 100644 packages/api/dist/cosmos_proto/cosmos.js create mode 100644 packages/api/dist/esm/amino/amino.js create mode 100644 packages/api/dist/esm/amino/bundle.js create mode 100644 packages/api/dist/esm/binary.js create mode 100644 packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js create mode 100644 packages/api/dist/esm/cosmos/app/v1alpha1/module.js create mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/auth.js create mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/authz.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/event.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/authz.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/bank.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js create mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js create mode 100644 packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js create mode 100644 packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js create mode 100644 packages/api/dist/esm/cosmos/base/v1beta1/coin.js create mode 100644 packages/api/dist/esm/cosmos/bundle.js create mode 100644 packages/api/dist/esm/cosmos/client.js create mode 100644 packages/api/dist/esm/cosmos/crypto/ed25519/keys.js create mode 100644 packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js create mode 100644 packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js create mode 100644 packages/api/dist/esm/cosmos/crypto/multisig/keys.js create mode 100644 packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js create mode 100644 packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js create mode 100644 packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/gov.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/gov.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/events.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/query.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/group/v1/types.js create mode 100644 packages/api/dist/esm/cosmos/lcd.js create mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/mint.js create mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/msg/v1/msg.js create mode 100644 packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js create mode 100644 packages/api/dist/esm/cosmos/orm/v1/orm.js create mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/params.js create mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/rpc.query.js create mode 100644 packages/api/dist/esm/cosmos/rpc.tx.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/authz.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/staking.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js create mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.js create mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js create mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js create mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js create mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js create mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js create mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js create mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js create mode 100644 packages/api/dist/esm/cosmos_proto/bundle.js create mode 100644 packages/api/dist/esm/cosmos_proto/cosmos.js create mode 100644 packages/api/dist/esm/gogoproto/bundle.js create mode 100644 packages/api/dist/esm/gogoproto/gogo.js create mode 100644 packages/api/dist/esm/google/api/annotations.js create mode 100644 packages/api/dist/esm/google/api/http.js create mode 100644 packages/api/dist/esm/google/bundle.js create mode 100644 packages/api/dist/esm/google/protobuf/any.js create mode 100644 packages/api/dist/esm/google/protobuf/descriptor.js create mode 100644 packages/api/dist/esm/google/protobuf/duration.js create mode 100644 packages/api/dist/esm/google/protobuf/timestamp.js create mode 100644 packages/api/dist/esm/helpers.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js create mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/ibc/bundle.js create mode 100644 packages/api/dist/esm/ibc/client.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/client.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/genesis.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.lcd.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.amino.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.registry.js create mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/ibc/lcd.js create mode 100644 packages/api/dist/esm/ibc/rpc.query.js create mode 100644 packages/api/dist/esm/ibc/rpc.tx.js create mode 100644 packages/api/dist/esm/index.js create mode 100644 packages/api/dist/esm/regen/bundle.js create mode 100644 packages/api/dist/esm/regen/client.js create mode 100644 packages/api/dist/esm/regen/data/v1/events.js create mode 100644 packages/api/dist/esm/regen/data/v1/query.js create mode 100644 packages/api/dist/esm/regen/data/v1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/data/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/data/v1/state.js create mode 100644 packages/api/dist/esm/regen/data/v1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/data/v1/tx.js create mode 100644 packages/api/dist/esm/regen/data/v1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/data/v1/types.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/events.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/state.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/types.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js create mode 100644 packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/events.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/state.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1/types.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/query.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/query.lcd.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.amino.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.registry.js create mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/esm/regen/lcd.js create mode 100644 packages/api/dist/esm/regen/rpc.query.js create mode 100644 packages/api/dist/esm/regen/rpc.tx.js create mode 100644 packages/api/dist/esm/tendermint/abci/types.js create mode 100644 packages/api/dist/esm/tendermint/bundle.js create mode 100644 packages/api/dist/esm/tendermint/crypto/keys.js create mode 100644 packages/api/dist/esm/tendermint/crypto/proof.js create mode 100644 packages/api/dist/esm/tendermint/libs/bits/types.js create mode 100644 packages/api/dist/esm/tendermint/p2p/types.js create mode 100644 packages/api/dist/esm/tendermint/types/block.js create mode 100644 packages/api/dist/esm/tendermint/types/evidence.js create mode 100644 packages/api/dist/esm/tendermint/types/params.js create mode 100644 packages/api/dist/esm/tendermint/types/types.js create mode 100644 packages/api/dist/esm/tendermint/types/validator.js create mode 100644 packages/api/dist/esm/tendermint/version/types.js create mode 100644 packages/api/dist/esm/utf8.js create mode 100644 packages/api/dist/esm/varint.js create mode 100644 packages/api/dist/gogoproto/bundle.d.ts create mode 100644 packages/api/dist/gogoproto/bundle.js create mode 100644 packages/api/dist/gogoproto/gogo.d.ts create mode 100644 packages/api/dist/gogoproto/gogo.js create mode 100644 packages/api/dist/google/api/annotations.d.ts create mode 100644 packages/api/dist/google/api/annotations.js create mode 100644 packages/api/dist/google/api/http.d.ts create mode 100644 packages/api/dist/google/api/http.js create mode 100644 packages/api/dist/google/bundle.d.ts create mode 100644 packages/api/dist/google/bundle.js create mode 100644 packages/api/dist/google/protobuf/any.d.ts create mode 100644 packages/api/dist/google/protobuf/any.js create mode 100644 packages/api/dist/google/protobuf/descriptor.d.ts create mode 100644 packages/api/dist/google/protobuf/descriptor.js create mode 100644 packages/api/dist/google/protobuf/duration.d.ts create mode 100644 packages/api/dist/google/protobuf/duration.js create mode 100644 packages/api/dist/google/protobuf/timestamp.d.ts create mode 100644 packages/api/dist/google/protobuf/timestamp.js create mode 100644 packages/api/dist/helpers.d.ts create mode 100644 packages/api/dist/helpers.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/genesis.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.lcd.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/transfer.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.amino.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.registry.js create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/ibc/bundle.d.ts create mode 100644 packages/api/dist/ibc/bundle.js create mode 100644 packages/api/dist/ibc/client.d.ts create mode 100644 packages/api/dist/ibc/client.js create mode 100644 packages/api/dist/ibc/core/client/v1/client.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/client.js create mode 100644 packages/api/dist/ibc/core/client/v1/genesis.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/genesis.js create mode 100644 packages/api/dist/ibc/core/client/v1/query.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/query.js create mode 100644 packages/api/dist/ibc/core/client/v1/query.lcd.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/query.lcd.js create mode 100644 packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/query.rpc.Query.js create mode 100644 packages/api/dist/ibc/core/client/v1/tx.amino.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/tx.amino.js create mode 100644 packages/api/dist/ibc/core/client/v1/tx.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/tx.js create mode 100644 packages/api/dist/ibc/core/client/v1/tx.registry.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/tx.registry.js create mode 100644 packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/ibc/lcd.d.ts create mode 100644 packages/api/dist/ibc/lcd.js create mode 100644 packages/api/dist/ibc/rpc.query.d.ts create mode 100644 packages/api/dist/ibc/rpc.query.js create mode 100644 packages/api/dist/ibc/rpc.tx.d.ts create mode 100644 packages/api/dist/ibc/rpc.tx.js create mode 100644 packages/api/dist/index.d.ts create mode 100644 packages/api/dist/index.js create mode 100644 packages/api/dist/package.json create mode 100644 packages/api/dist/regen/bundle.d.ts create mode 100644 packages/api/dist/regen/bundle.js create mode 100644 packages/api/dist/regen/client.d.ts create mode 100644 packages/api/dist/regen/client.js create mode 100644 packages/api/dist/regen/data/v1/events.d.ts create mode 100644 packages/api/dist/regen/data/v1/events.js create mode 100644 packages/api/dist/regen/data/v1/query.d.ts create mode 100644 packages/api/dist/regen/data/v1/query.js create mode 100644 packages/api/dist/regen/data/v1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/data/v1/query.lcd.js create mode 100644 packages/api/dist/regen/data/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/data/v1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/data/v1/state.d.ts create mode 100644 packages/api/dist/regen/data/v1/state.js create mode 100644 packages/api/dist/regen/data/v1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/data/v1/tx.amino.js create mode 100644 packages/api/dist/regen/data/v1/tx.js create mode 100644 packages/api/dist/regen/data/v1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/data/v1/tx.registry.js create mode 100644 packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/data/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/data/v1/types.d.ts create mode 100644 packages/api/dist/regen/data/v1/types.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/events.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/events.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/state.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/state.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/types.d.ts create mode 100644 packages/api/dist/regen/ecocredit/basket/v1/types.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/events.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/state.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts create mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/types.js create mode 100644 packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts create mode 100644 packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js create mode 100644 packages/api/dist/regen/ecocredit/v1/events.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/events.js create mode 100644 packages/api/dist/regen/ecocredit/v1/query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/query.js create mode 100644 packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/query.lcd.js create mode 100644 packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/ecocredit/v1/state.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/state.js create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.amino.js create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.js create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.registry.js create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/ecocredit/v1/types.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1/types.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/events.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/genesis.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts create mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/types.js create mode 100644 packages/api/dist/regen/intertx/v1/query.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/query.js create mode 100644 packages/api/dist/regen/intertx/v1/query.lcd.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/query.lcd.js create mode 100644 packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/query.rpc.Query.js create mode 100644 packages/api/dist/regen/intertx/v1/tx.amino.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/tx.amino.js create mode 100644 packages/api/dist/regen/intertx/v1/tx.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/tx.js create mode 100644 packages/api/dist/regen/intertx/v1/tx.registry.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/tx.registry.js create mode 100644 packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts create mode 100644 packages/api/dist/regen/intertx/v1/tx.rpc.msg.js create mode 100644 packages/api/dist/regen/lcd.d.ts create mode 100644 packages/api/dist/regen/lcd.js create mode 100644 packages/api/dist/regen/rpc.query.d.ts create mode 100644 packages/api/dist/regen/rpc.query.js create mode 100644 packages/api/dist/regen/rpc.tx.d.ts create mode 100644 packages/api/dist/regen/rpc.tx.js create mode 100644 packages/api/dist/tendermint/abci/types.d.ts create mode 100644 packages/api/dist/tendermint/abci/types.js create mode 100644 packages/api/dist/tendermint/bundle.d.ts create mode 100644 packages/api/dist/tendermint/bundle.js create mode 100644 packages/api/dist/tendermint/crypto/keys.d.ts create mode 100644 packages/api/dist/tendermint/crypto/keys.js create mode 100644 packages/api/dist/tendermint/crypto/proof.d.ts create mode 100644 packages/api/dist/tendermint/crypto/proof.js create mode 100644 packages/api/dist/tendermint/libs/bits/types.d.ts create mode 100644 packages/api/dist/tendermint/libs/bits/types.js create mode 100644 packages/api/dist/tendermint/p2p/types.d.ts create mode 100644 packages/api/dist/tendermint/p2p/types.js create mode 100644 packages/api/dist/tendermint/types/block.d.ts create mode 100644 packages/api/dist/tendermint/types/block.js create mode 100644 packages/api/dist/tendermint/types/evidence.d.ts create mode 100644 packages/api/dist/tendermint/types/evidence.js create mode 100644 packages/api/dist/tendermint/types/params.d.ts create mode 100644 packages/api/dist/tendermint/types/params.js create mode 100644 packages/api/dist/tendermint/types/types.d.ts create mode 100644 packages/api/dist/tendermint/types/types.js create mode 100644 packages/api/dist/tendermint/types/validator.d.ts create mode 100644 packages/api/dist/tendermint/types/validator.js create mode 100644 packages/api/dist/tendermint/version/types.d.ts create mode 100644 packages/api/dist/tendermint/version/types.js create mode 100644 packages/api/dist/utf8.d.ts create mode 100644 packages/api/dist/utf8.js create mode 100644 packages/api/dist/varint.d.ts create mode 100644 packages/api/dist/varint.js create mode 100644 packages/api/jest.config.js create mode 100644 packages/api/scripts/aminos.ts create mode 100644 packages/api/scripts/codegen.ts create mode 100644 packages/api/src/amino/amino.ts create mode 100644 packages/api/src/amino/bundle.ts create mode 100644 packages/api/src/binary.ts create mode 100644 packages/api/src/cosmos/app/module/v1alpha1/module.ts create mode 100644 packages/api/src/cosmos/app/v1alpha1/module.ts create mode 100644 packages/api/src/cosmos/auth/v1beta1/auth.ts create mode 100644 packages/api/src/cosmos/auth/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/auth/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/auth/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/auth/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/authz.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/event.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/authz/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/authz.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/bank.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/bank/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/base/abci/v1beta1/abci.ts create mode 100644 packages/api/src/cosmos/base/node/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/base/node/v1beta1/query.rpc.Service.ts create mode 100644 packages/api/src/cosmos/base/node/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/base/query/v1beta1/pagination.ts create mode 100644 packages/api/src/cosmos/base/reflection/v2alpha1/reflection.ts create mode 100644 packages/api/src/cosmos/base/v1beta1/coin.ts create mode 100644 packages/api/src/cosmos/bundle.ts create mode 100644 packages/api/src/cosmos/client.ts create mode 100644 packages/api/src/cosmos/crypto/ed25519/keys.ts create mode 100644 packages/api/src/cosmos/crypto/hd/v1/hd.ts create mode 100644 packages/api/src/cosmos/crypto/keyring/v1/record.ts create mode 100644 packages/api/src/cosmos/crypto/multisig/keys.ts create mode 100644 packages/api/src/cosmos/crypto/multisig/v1beta1/multisig.ts create mode 100644 packages/api/src/cosmos/crypto/secp256k1/keys.ts create mode 100644 packages/api/src/cosmos/crypto/secp256r1/keys.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/distribution.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/distribution/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/feegrant.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/feegrant/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/gov/v1/genesis.ts create mode 100644 packages/api/src/cosmos/gov/v1/gov.ts create mode 100644 packages/api/src/cosmos/gov/v1/query.lcd.ts create mode 100644 packages/api/src/cosmos/gov/v1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/gov/v1/query.ts create mode 100644 packages/api/src/cosmos/gov/v1/tx.amino.ts create mode 100644 packages/api/src/cosmos/gov/v1/tx.registry.ts create mode 100644 packages/api/src/cosmos/gov/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/gov/v1/tx.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/gov.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/gov/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/group/v1/events.ts create mode 100644 packages/api/src/cosmos/group/v1/genesis.ts create mode 100644 packages/api/src/cosmos/group/v1/query.lcd.ts create mode 100644 packages/api/src/cosmos/group/v1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/group/v1/query.ts create mode 100644 packages/api/src/cosmos/group/v1/tx.amino.ts create mode 100644 packages/api/src/cosmos/group/v1/tx.registry.ts create mode 100644 packages/api/src/cosmos/group/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/group/v1/tx.ts create mode 100644 packages/api/src/cosmos/group/v1/types.ts create mode 100644 packages/api/src/cosmos/lcd.ts create mode 100644 packages/api/src/cosmos/mint/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/mint/v1beta1/mint.ts create mode 100644 packages/api/src/cosmos/mint/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/mint/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/mint/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/msg/v1/msg.ts create mode 100644 packages/api/src/cosmos/orm/module/v1alpha1/module.ts create mode 100644 packages/api/src/cosmos/orm/v1/orm.ts create mode 100644 packages/api/src/cosmos/params/v1beta1/params.ts create mode 100644 packages/api/src/cosmos/params/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/params/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/params/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/rpc.query.ts create mode 100644 packages/api/src/cosmos/rpc.tx.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/authz.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/genesis.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/staking.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/staking/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/tx/signing/v1beta1/signing.ts create mode 100644 packages/api/src/cosmos/tx/v1beta1/service.lcd.ts create mode 100644 packages/api/src/cosmos/tx/v1beta1/service.rpc.Service.ts create mode 100644 packages/api/src/cosmos/tx/v1beta1/service.ts create mode 100644 packages/api/src/cosmos/tx/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/query.lcd.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/query.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/upgrade/v1beta1/upgrade.ts create mode 100644 packages/api/src/cosmos/vesting/v1beta1/tx.amino.ts create mode 100644 packages/api/src/cosmos/vesting/v1beta1/tx.registry.ts create mode 100644 packages/api/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts create mode 100644 packages/api/src/cosmos/vesting/v1beta1/tx.ts create mode 100644 packages/api/src/cosmos/vesting/v1beta1/vesting.ts create mode 100644 packages/api/src/cosmos_proto/bundle.ts create mode 100644 packages/api/src/cosmos_proto/cosmos.ts create mode 100644 packages/api/src/gogoproto/bundle.ts create mode 100644 packages/api/src/gogoproto/gogo.ts create mode 100644 packages/api/src/google/api/annotations.ts create mode 100644 packages/api/src/google/api/http.ts create mode 100644 packages/api/src/google/bundle.ts create mode 100644 packages/api/src/google/protobuf/any.ts create mode 100644 packages/api/src/google/protobuf/descriptor.ts create mode 100644 packages/api/src/google/protobuf/duration.ts create mode 100644 packages/api/src/google/protobuf/timestamp.ts create mode 100644 packages/api/src/helpers.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/genesis.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/query.lcd.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/query.rpc.Query.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/query.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/transfer.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/tx.amino.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/tx.registry.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/ibc/applications/transfer/v1/tx.ts create mode 100644 packages/api/src/ibc/bundle.ts create mode 100644 packages/api/src/ibc/client.ts create mode 100644 packages/api/src/ibc/core/client/v1/client.ts create mode 100644 packages/api/src/ibc/core/client/v1/genesis.ts create mode 100644 packages/api/src/ibc/core/client/v1/query.lcd.ts create mode 100644 packages/api/src/ibc/core/client/v1/query.rpc.Query.ts create mode 100644 packages/api/src/ibc/core/client/v1/query.ts create mode 100644 packages/api/src/ibc/core/client/v1/tx.amino.ts create mode 100644 packages/api/src/ibc/core/client/v1/tx.registry.ts create mode 100644 packages/api/src/ibc/core/client/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/ibc/core/client/v1/tx.ts create mode 100644 packages/api/src/ibc/lcd.ts create mode 100644 packages/api/src/ibc/rpc.query.ts create mode 100644 packages/api/src/ibc/rpc.tx.ts create mode 100644 packages/api/src/regen/bundle.ts create mode 100644 packages/api/src/regen/client.ts create mode 100644 packages/api/src/regen/data/v1/events.ts create mode 100644 packages/api/src/regen/data/v1/query.lcd.ts create mode 100644 packages/api/src/regen/data/v1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/data/v1/query.ts create mode 100644 packages/api/src/regen/data/v1/state.ts create mode 100644 packages/api/src/regen/data/v1/tx.amino.ts create mode 100644 packages/api/src/regen/data/v1/tx.registry.ts create mode 100644 packages/api/src/regen/data/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/data/v1/tx.ts create mode 100644 packages/api/src/regen/data/v1/types.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/events.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/query.lcd.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/query.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/state.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/tx.amino.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/tx.registry.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/tx.ts create mode 100644 packages/api/src/regen/ecocredit/basket/v1/types.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/events.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/query.lcd.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/query.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/state.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/tx.amino.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/tx.registry.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/tx.ts create mode 100644 packages/api/src/regen/ecocredit/marketplace/v1/types.ts create mode 100644 packages/api/src/regen/ecocredit/orderbook/v1alpha1/memory.ts create mode 100644 packages/api/src/regen/ecocredit/v1/events.ts create mode 100644 packages/api/src/regen/ecocredit/v1/query.lcd.ts create mode 100644 packages/api/src/regen/ecocredit/v1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/ecocredit/v1/query.ts create mode 100644 packages/api/src/regen/ecocredit/v1/state.ts create mode 100644 packages/api/src/regen/ecocredit/v1/tx.amino.ts create mode 100644 packages/api/src/regen/ecocredit/v1/tx.registry.ts create mode 100644 packages/api/src/regen/ecocredit/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/ecocredit/v1/tx.ts create mode 100644 packages/api/src/regen/ecocredit/v1/types.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/events.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/genesis.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/query.lcd.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/query.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/tx.amino.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/tx.registry.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/tx.ts create mode 100644 packages/api/src/regen/ecocredit/v1alpha1/types.ts create mode 100644 packages/api/src/regen/intertx/v1/query.lcd.ts create mode 100644 packages/api/src/regen/intertx/v1/query.rpc.Query.ts create mode 100644 packages/api/src/regen/intertx/v1/query.ts create mode 100644 packages/api/src/regen/intertx/v1/tx.amino.ts create mode 100644 packages/api/src/regen/intertx/v1/tx.registry.ts create mode 100644 packages/api/src/regen/intertx/v1/tx.rpc.msg.ts create mode 100644 packages/api/src/regen/intertx/v1/tx.ts create mode 100644 packages/api/src/regen/lcd.ts create mode 100644 packages/api/src/regen/rpc.query.ts create mode 100644 packages/api/src/regen/rpc.tx.ts create mode 100644 packages/api/src/tendermint/abci/types.ts create mode 100644 packages/api/src/tendermint/bundle.ts create mode 100644 packages/api/src/tendermint/crypto/keys.ts create mode 100644 packages/api/src/tendermint/crypto/proof.ts create mode 100644 packages/api/src/tendermint/libs/bits/types.ts create mode 100644 packages/api/src/tendermint/p2p/types.ts create mode 100644 packages/api/src/tendermint/types/block.ts create mode 100644 packages/api/src/tendermint/types/evidence.ts create mode 100644 packages/api/src/tendermint/types/params.ts create mode 100644 packages/api/src/tendermint/types/types.ts create mode 100644 packages/api/src/tendermint/types/validator.ts create mode 100644 packages/api/src/tendermint/version/types.ts create mode 100644 packages/api/src/utf8.ts create mode 100644 packages/api/src/varint.ts create mode 100644 packages/api/tsconfig.esm.json diff --git a/packages/api/__tests__/__snapshots__/messages.test.ts.snap b/packages/api/__tests__/__snapshots__/messages.test.ts.snap new file mode 100644 index 00000000..50f3f2f8 --- /dev/null +++ b/packages/api/__tests__/__snapshots__/messages.test.ts.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`cosmos 1`] = ` +{ + "typeUrl": "/cosmos.bank.v1beta1.MsgSend", + "value": { + "amount": [ + { + "amount": "1", + "denom": "uatom", + }, + ], + "fromAddress": "myaddress", + "toAddress": "youraddress", + }, +} +`; diff --git a/packages/api/__tests__/messages.test.ts b/packages/api/__tests__/messages.test.ts new file mode 100644 index 00000000..a34cba76 --- /dev/null +++ b/packages/api/__tests__/messages.test.ts @@ -0,0 +1,15 @@ +import { cosmos } from '../src'; + +it('cosmos', () => { + const message = cosmos.bank.v1beta1.MessageComposer.fromPartial.send({ + amount: [ + { + amount: '1', + denom: 'uatom', + }, + ], + fromAddress: 'myaddress', + toAddress: 'youraddress', + }); + expect(message).toMatchSnapshot(); +}); diff --git a/packages/api/dist/LICENSE b/packages/api/dist/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/packages/api/dist/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/api/dist/amino/amino.d.ts b/packages/api/dist/amino/amino.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/amino/amino.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/amino/amino.js b/packages/api/dist/amino/amino.js new file mode 100644 index 00000000..c8ad2e54 --- /dev/null +++ b/packages/api/dist/amino/amino.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/amino/bundle.d.ts b/packages/api/dist/amino/bundle.d.ts new file mode 100644 index 00000000..67f7ba53 --- /dev/null +++ b/packages/api/dist/amino/bundle.d.ts @@ -0,0 +1 @@ +export declare const amino: {}; diff --git a/packages/api/dist/amino/bundle.js b/packages/api/dist/amino/bundle.js new file mode 100644 index 00000000..4955d599 --- /dev/null +++ b/packages/api/dist/amino/bundle.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.amino = void 0; +//@ts-nocheck +const _0 = __importStar(require("./amino")); +exports.amino = { + ..._0 +}; diff --git a/packages/api/dist/binary.d.ts b/packages/api/dist/binary.d.ts new file mode 100644 index 00000000..2bc75687 --- /dev/null +++ b/packages/api/dist/binary.d.ts @@ -0,0 +1,130 @@ +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +export declare enum WireType { + Varint = 0, + Fixed64 = 1, + Bytes = 2, + Fixed32 = 5 +} +export interface IBinaryReader { + buf: Uint8Array; + pos: number; + type: number; + len: number; + tag(): [number, WireType, number]; + skip(length?: number): this; + skipType(wireType: number): this; + uint32(): number; + int32(): number; + sint32(): number; + fixed32(): number; + sfixed32(): number; + int64(): bigint; + uint64(): bigint; + sint64(): bigint; + fixed64(): bigint; + sfixed64(): bigint; + float(): number; + double(): number; + bool(): boolean; + bytes(): Uint8Array; + string(): string; +} +export declare class BinaryReader implements IBinaryReader { + buf: Uint8Array; + pos: number; + type: number; + len: number; + assertBounds(): void; + constructor(buf?: ArrayLike); + tag(): [number, WireType, number]; + skip(length?: number): this; + skipType(wireType: number): this; + uint32(): number; + int32(): number; + sint32(): number; + fixed32(): number; + sfixed32(): number; + int64(): bigint; + uint64(): bigint; + sint64(): bigint; + fixed64(): bigint; + sfixed64(): bigint; + float(): number; + double(): number; + bool(): boolean; + bytes(): Uint8Array; + string(): string; +} +export interface IBinaryWriter { + len: number; + head: IOp; + tail: IOp; + states: State | null; + finish(): Uint8Array; + fork(): IBinaryWriter; + reset(): IBinaryWriter; + ldelim(): IBinaryWriter; + tag(fieldNo: number, type: WireType): IBinaryWriter; + uint32(value: number): IBinaryWriter; + int32(value: number): IBinaryWriter; + sint32(value: number): IBinaryWriter; + int64(value: string | number | bigint): IBinaryWriter; + uint64: (value: string | number | bigint) => IBinaryWriter; + sint64(value: string | number | bigint): IBinaryWriter; + fixed64(value: string | number | bigint): IBinaryWriter; + sfixed64: (value: string | number | bigint) => IBinaryWriter; + bool(value: boolean): IBinaryWriter; + fixed32(value: number): IBinaryWriter; + sfixed32: (value: number) => IBinaryWriter; + float(value: number): IBinaryWriter; + double(value: number): IBinaryWriter; + bytes(value: Uint8Array): IBinaryWriter; + string(value: string): IBinaryWriter; +} +interface IOp { + len: number; + next?: IOp; + proceed(buf: Uint8Array | number[], pos: number): void; +} +declare class State { + head: IOp; + tail: IOp; + len: number; + next: State | null; + constructor(writer: BinaryWriter); +} +export declare class BinaryWriter implements IBinaryWriter { + len: number; + head: IOp; + tail: IOp; + states: State | null; + constructor(); + static create(): BinaryWriter; + static alloc(size: number): Uint8Array | number[]; + private _push; + finish(): Uint8Array; + fork(): BinaryWriter; + reset(): BinaryWriter; + ldelim(): BinaryWriter; + tag(fieldNo: number, type: WireType): BinaryWriter; + uint32(value: number): BinaryWriter; + int32(value: number): BinaryWriter; + sint32(value: number): BinaryWriter; + int64(value: string | number | bigint): BinaryWriter; + uint64: (value: string | number | bigint) => BinaryWriter; + sint64(value: string | number | bigint): BinaryWriter; + fixed64(value: string | number | bigint): BinaryWriter; + sfixed64: (value: string | number | bigint) => BinaryWriter; + bool(value: boolean): BinaryWriter; + fixed32(value: number): BinaryWriter; + sfixed32: (value: number) => BinaryWriter; + float(value: number): BinaryWriter; + double(value: number): BinaryWriter; + bytes(value: Uint8Array): BinaryWriter; + string(value: string): BinaryWriter; +} +export {}; diff --git a/packages/api/dist/binary.js b/packages/api/dist/binary.js new file mode 100644 index 00000000..2c669c91 --- /dev/null +++ b/packages/api/dist/binary.js @@ -0,0 +1,371 @@ +"use strict"; +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BinaryWriter = exports.BinaryReader = exports.WireType = void 0; +// Copyright (c) 2016, Daniel Wirtz All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// --- +// Code generated by the command line utilities is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. +const utf8_1 = require("./utf8"); +const varint_1 = require("./varint"); +var WireType; +(function (WireType) { + WireType[WireType["Varint"] = 0] = "Varint"; + WireType[WireType["Fixed64"] = 1] = "Fixed64"; + WireType[WireType["Bytes"] = 2] = "Bytes"; + WireType[WireType["Fixed32"] = 5] = "Fixed32"; +})(WireType || (exports.WireType = WireType = {})); +class BinaryReader { + buf; + pos; + type; + len; + assertBounds() { + if (this.pos > this.len) + throw new RangeError("premature EOF"); + } + constructor(buf) { + this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); + this.pos = 0; + this.type = 0; + this.len = this.buf.length; + } + tag() { + const tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; + if (fieldNo <= 0 || wireType < 0 || wireType > 5) + throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); + return [fieldNo, wireType, tag]; + } + skip(length) { + if (typeof length === "number") { + if (this.pos + length > this.len) + throw indexOutOfRange(this, length); + this.pos += length; + } + else { + do { + if (this.pos >= this.len) + throw indexOutOfRange(this); + } while (this.buf[this.pos++] & 128); + } + return this; + } + skipType(wireType) { + switch (wireType) { + case WireType.Varint: + this.skip(); + break; + case WireType.Fixed64: + this.skip(8); + break; + case WireType.Bytes: + this.skip(this.uint32()); + break; + case 3: + while ((wireType = this.uint32() & 7) !== 4) { + this.skipType(wireType); + } + break; + case WireType.Fixed32: + this.skip(4); + break; + /* istanbul ignore next */ + default: + throw Error("invalid wire type " + wireType + " at offset " + this.pos); + } + return this; + } + uint32() { + return varint_1.varint32read.bind(this)(); + } + int32() { + return this.uint32() | 0; + } + sint32() { + const num = this.uint32(); + return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding + } + fixed32() { + const val = (0, varint_1.readUInt32)(this.buf, this.pos); + this.pos += 4; + return val; + } + sfixed32() { + const val = (0, varint_1.readInt32)(this.buf, this.pos); + this.pos += 4; + return val; + } + int64() { + const [lo, hi] = varint_1.varint64read.bind(this)(); + return BigInt((0, varint_1.int64ToString)(lo, hi)); + } + uint64() { + const [lo, hi] = varint_1.varint64read.bind(this)(); + return BigInt((0, varint_1.uInt64ToString)(lo, hi)); + } + sint64() { + let [lo, hi] = varint_1.varint64read.bind(this)(); + // zig zag + [lo, hi] = (0, varint_1.zzDecode)(lo, hi); + return BigInt((0, varint_1.int64ToString)(lo, hi)); + } + fixed64() { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt((0, varint_1.uInt64ToString)(lo, hi)); + } + sfixed64() { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt((0, varint_1.int64ToString)(lo, hi)); + } + float() { + throw new Error("float not supported"); + } + double() { + throw new Error("double not supported"); + } + bool() { + const [lo, hi] = varint_1.varint64read.bind(this)(); + return lo !== 0 || hi !== 0; + } + bytes() { + const len = this.uint32(), start = this.pos; + this.pos += len; + this.assertBounds(); + return this.buf.subarray(start, start + len); + } + string() { + const bytes = this.bytes(); + return (0, utf8_1.utf8Read)(bytes, 0, bytes.length); + } +} +exports.BinaryReader = BinaryReader; +class Op { + fn; + len; + val; + next; + constructor(fn, len, val) { + this.fn = fn; + this.len = len; + this.val = val; + } + proceed(buf, pos) { + if (this.fn) { + this.fn(this.val, buf, pos); + } + } +} +class State { + head; + tail; + len; + next; + constructor(writer) { + this.head = writer.head; + this.tail = writer.tail; + this.len = writer.len; + this.next = writer.states; + } +} +class BinaryWriter { + len = 0; + head; + tail; + states; + constructor() { + this.head = new Op(null, 0, 0); + this.tail = this.head; + this.states = null; + } + static create() { + return new BinaryWriter(); + } + static alloc(size) { + if (typeof Uint8Array !== "undefined") { + return pool((size) => new Uint8Array(size), Uint8Array.prototype.subarray)(size); + } + else { + return new Array(size); + } + } + _push(fn, len, val) { + this.tail = this.tail.next = new Op(fn, len, val); + this.len += len; + return this; + } + finish() { + let head = this.head.next, pos = 0; + const buf = BinaryWriter.alloc(this.len); + while (head) { + head.proceed(buf, pos); + pos += head.len; + head = head.next; + } + return buf; + } + fork() { + this.states = new State(this); + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + return this; + } + reset() { + if (this.states) { + this.head = this.states.head; + this.tail = this.states.tail; + this.len = this.states.len; + this.states = this.states.next; + } + else { + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + } + return this; + } + ldelim() { + const head = this.head, tail = this.tail, len = this.len; + this.reset().uint32(len); + if (len) { + this.tail.next = head.next; // skip noop + this.tail = tail; + this.len += len; + } + return this; + } + tag(fieldNo, type) { + return this.uint32(((fieldNo << 3) | type) >>> 0); + } + uint32(value) { + this.len += (this.tail = this.tail.next = + new Op(varint_1.writeVarint32, (value = value >>> 0) < 128 + ? 1 + : value < 16384 + ? 2 + : value < 2097152 + ? 3 + : value < 268435456 + ? 4 + : 5, value)).len; + return this; + } + int32(value) { + return value < 0 + ? this._push(varint_1.writeVarint64, 10, (0, varint_1.int64FromString)(value.toString())) // 10 bytes per spec + : this.uint32(value); + } + sint32(value) { + return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); + } + int64(value) { + const { lo, hi } = (0, varint_1.int64FromString)(value.toString()); + return this._push(varint_1.writeVarint64, (0, varint_1.int64Length)(lo, hi), { lo, hi }); + } + // uint64 is the same with int64 + uint64 = BinaryWriter.prototype.int64; + sint64(value) { + let { lo, hi } = (0, varint_1.int64FromString)(value.toString()); + // zig zag + [lo, hi] = (0, varint_1.zzEncode)(lo, hi); + return this._push(varint_1.writeVarint64, (0, varint_1.int64Length)(lo, hi), { lo, hi }); + } + fixed64(value) { + const { lo, hi } = (0, varint_1.int64FromString)(value.toString()); + return this._push(varint_1.writeFixed32, 4, lo)._push(varint_1.writeFixed32, 4, hi); + } + // sfixed64 is the same with fixed64 + sfixed64 = BinaryWriter.prototype.fixed64; + bool(value) { + return this._push(varint_1.writeByte, 1, value ? 1 : 0); + } + fixed32(value) { + return this._push(varint_1.writeFixed32, 4, value >>> 0); + } + // sfixed32 is the same with fixed32 + sfixed32 = BinaryWriter.prototype.fixed32; + float(value) { + throw new Error("float not supported" + value); + } + double(value) { + throw new Error("double not supported" + value); + } + bytes(value) { + const len = value.length >>> 0; + if (!len) + return this._push(varint_1.writeByte, 1, 0); + return this.uint32(len)._push(writeBytes, len, value); + } + string(value) { + const len = (0, utf8_1.utf8Length)(value); + return len + ? this.uint32(len)._push(utf8_1.utf8Write, len, value) + : this._push(varint_1.writeByte, 1, 0); + } +} +exports.BinaryWriter = BinaryWriter; +function writeBytes(val, buf, pos) { + if (typeof Uint8Array !== "undefined") { + buf.set(val, pos); + } + else { + for (let i = 0; i < val.length; ++i) + buf[pos + i] = val[i]; + } +} +function pool(alloc, slice, size) { + const SIZE = size || 8192; + const MAX = SIZE >>> 1; + let slab = null; + let offset = SIZE; + return function pool_alloc(size) { + if (size < 1 || size > MAX) + return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + const buf = slice.call(slab, offset, (offset += size)); + if (offset & 7) + // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} +function indexOutOfRange(reader, writeLength) { + return RangeError("index out of range: " + + reader.pos + + " + " + + (writeLength || 1) + + " > " + + reader.len); +} diff --git a/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts b/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts new file mode 100644 index 00000000..1be132b8 --- /dev/null +++ b/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts @@ -0,0 +1,31 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface Module { +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.app.module.v1alpha1.Module"; + value: Uint8Array; +} +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface ModuleAmino { +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface ModuleSDKType { +} +export declare const Module: { + typeUrl: string; + encode(_: Module, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Module; + fromPartial(_: Partial): Module; + fromAmino(_: ModuleAmino): Module; + toAmino(_: Module): ModuleAmino; + fromAminoMsg(object: ModuleAminoMsg): Module; + toAminoMsg(message: Module): ModuleAminoMsg; + fromProtoMsg(message: ModuleProtoMsg): Module; + toProto(message: Module): Uint8Array; + toProtoMsg(message: Module): ModuleProtoMsg; +}; diff --git a/packages/api/dist/cosmos/app/module/v1alpha1/module.js b/packages/api/dist/cosmos/app/module/v1alpha1/module.js new file mode 100644 index 00000000..c34da8d1 --- /dev/null +++ b/packages/api/dist/cosmos/app/module/v1alpha1/module.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Module = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseModule() { + return {}; +} +exports.Module = { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseModule(); + return message; + }, + fromAmino(_) { + const message = createBaseModule(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.Module.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Module", + value: exports.Module.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Module.decode(message.value); + }, + toProto(message) { + return exports.Module.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + value: exports.Module.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/app/v1alpha1/module.d.ts b/packages/api/dist/cosmos/app/v1alpha1/module.d.ts new file mode 100644 index 00000000..3bd603f9 --- /dev/null +++ b/packages/api/dist/cosmos/app/v1alpha1/module.d.ts @@ -0,0 +1,242 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptor { + /** + * go_import names the package that should be imported by an app to load the + * module in the runtime module registry. It is required to make debugging + * of configuration errors easier for users. + */ + goImport: string; + /** + * use_package refers to a protobuf package that this module + * uses and exposes to the world. In an app, only one module should "use" + * or own a single protobuf package. It is assumed that the module uses + * all of the .proto files in a single package. + */ + usePackage: PackageReference[]; + /** + * can_migrate_from defines which module versions this module can migrate + * state from. The framework will check that one module version is able to + * migrate from a previous module version before attempting to update its + * config. It is assumed that modules can transitively migrate from earlier + * versions. For instance if v3 declares it can migrate from v2, and v2 + * declares it can migrate from v1, the framework knows how to migrate + * from v1 to v3, assuming all 3 module versions are registered at runtime. + */ + canMigrateFrom: MigrateFromInfo[]; +} +export interface ModuleDescriptorProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; + value: Uint8Array; +} +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptorAmino { + /** + * go_import names the package that should be imported by an app to load the + * module in the runtime module registry. It is required to make debugging + * of configuration errors easier for users. + */ + go_import?: string; + /** + * use_package refers to a protobuf package that this module + * uses and exposes to the world. In an app, only one module should "use" + * or own a single protobuf package. It is assumed that the module uses + * all of the .proto files in a single package. + */ + use_package?: PackageReferenceAmino[]; + /** + * can_migrate_from defines which module versions this module can migrate + * state from. The framework will check that one module version is able to + * migrate from a previous module version before attempting to update its + * config. It is assumed that modules can transitively migrate from earlier + * versions. For instance if v3 declares it can migrate from v2, and v2 + * declares it can migrate from v1, the framework knows how to migrate + * from v1 to v3, assuming all 3 module versions are registered at runtime. + */ + can_migrate_from?: MigrateFromInfoAmino[]; +} +export interface ModuleDescriptorAminoMsg { + type: "cosmos-sdk/ModuleDescriptor"; + value: ModuleDescriptorAmino; +} +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptorSDKType { + go_import: string; + use_package: PackageReferenceSDKType[]; + can_migrate_from: MigrateFromInfoSDKType[]; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReference { + /** name is the fully-qualified name of the package. */ + name: string; + /** + * revision is the optional revision of the package that is being used. + * Protobuf packages used in Cosmos should generally have a major version + * as the last part of the package name, ex. foo.bar.baz.v1. + * The revision of a package can be thought of as the minor version of a + * package which has additional backwards compatible definitions that weren't + * present in a previous version. + * + * A package should indicate its revision with a source code comment + * above the package declaration in one of its files containing the + * text "Revision N" where N is an integer revision. All packages start + * at revision 0 the first time they are released in a module. + * + * When a new version of a module is released and items are added to existing + * .proto files, these definitions should contain comments of the form + * "Since Revision N" where N is an integer revision. + * + * When the module runtime starts up, it will check the pinned proto + * image and panic if there are runtime protobuf definitions that are not + * in the pinned descriptor which do not have + * a "Since Revision N" comment or have a "Since Revision N" comment where + * N is <= to the revision specified here. This indicates that the protobuf + * files have been updated, but the pinned file descriptor hasn't. + * + * If there are items in the pinned file descriptor with a revision + * greater than the value indicated here, this will also cause a panic + * as it may mean that the pinned descriptor for a legacy module has been + * improperly updated or that there is some other versioning discrepancy. + * Runtime protobuf definitions will also be checked for compatibility + * with pinned file descriptors to make sure there are no incompatible changes. + * + * This behavior ensures that: + * * pinned proto images are up-to-date + * * protobuf files are carefully annotated with revision comments which + * are important good client UX + * * protobuf files are changed in backwards and forwards compatible ways + */ + revision: number; +} +export interface PackageReferenceProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.PackageReference"; + value: Uint8Array; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReferenceAmino { + /** name is the fully-qualified name of the package. */ + name?: string; + /** + * revision is the optional revision of the package that is being used. + * Protobuf packages used in Cosmos should generally have a major version + * as the last part of the package name, ex. foo.bar.baz.v1. + * The revision of a package can be thought of as the minor version of a + * package which has additional backwards compatible definitions that weren't + * present in a previous version. + * + * A package should indicate its revision with a source code comment + * above the package declaration in one of its files containing the + * text "Revision N" where N is an integer revision. All packages start + * at revision 0 the first time they are released in a module. + * + * When a new version of a module is released and items are added to existing + * .proto files, these definitions should contain comments of the form + * "Since Revision N" where N is an integer revision. + * + * When the module runtime starts up, it will check the pinned proto + * image and panic if there are runtime protobuf definitions that are not + * in the pinned descriptor which do not have + * a "Since Revision N" comment or have a "Since Revision N" comment where + * N is <= to the revision specified here. This indicates that the protobuf + * files have been updated, but the pinned file descriptor hasn't. + * + * If there are items in the pinned file descriptor with a revision + * greater than the value indicated here, this will also cause a panic + * as it may mean that the pinned descriptor for a legacy module has been + * improperly updated or that there is some other versioning discrepancy. + * Runtime protobuf definitions will also be checked for compatibility + * with pinned file descriptors to make sure there are no incompatible changes. + * + * This behavior ensures that: + * * pinned proto images are up-to-date + * * protobuf files are carefully annotated with revision comments which + * are important good client UX + * * protobuf files are changed in backwards and forwards compatible ways + */ + revision?: number; +} +export interface PackageReferenceAminoMsg { + type: "cosmos-sdk/PackageReference"; + value: PackageReferenceAmino; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReferenceSDKType { + name: string; + revision: number; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfo { + /** + * module is the fully-qualified protobuf name of the module config object + * for the previous module version, ex: "cosmos.group.module.v1.Module". + */ + module: string; +} +export interface MigrateFromInfoProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; + value: Uint8Array; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfoAmino { + /** + * module is the fully-qualified protobuf name of the module config object + * for the previous module version, ex: "cosmos.group.module.v1.Module". + */ + module?: string; +} +export interface MigrateFromInfoAminoMsg { + type: "cosmos-sdk/MigrateFromInfo"; + value: MigrateFromInfoAmino; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfoSDKType { + module: string; +} +export declare const ModuleDescriptor: { + typeUrl: string; + encode(message: ModuleDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor; + fromPartial(object: Partial): ModuleDescriptor; + fromAmino(object: ModuleDescriptorAmino): ModuleDescriptor; + toAmino(message: ModuleDescriptor): ModuleDescriptorAmino; + fromAminoMsg(object: ModuleDescriptorAminoMsg): ModuleDescriptor; + toAminoMsg(message: ModuleDescriptor): ModuleDescriptorAminoMsg; + fromProtoMsg(message: ModuleDescriptorProtoMsg): ModuleDescriptor; + toProto(message: ModuleDescriptor): Uint8Array; + toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg; +}; +export declare const PackageReference: { + typeUrl: string; + encode(message: PackageReference, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PackageReference; + fromPartial(object: Partial): PackageReference; + fromAmino(object: PackageReferenceAmino): PackageReference; + toAmino(message: PackageReference): PackageReferenceAmino; + fromAminoMsg(object: PackageReferenceAminoMsg): PackageReference; + toAminoMsg(message: PackageReference): PackageReferenceAminoMsg; + fromProtoMsg(message: PackageReferenceProtoMsg): PackageReference; + toProto(message: PackageReference): Uint8Array; + toProtoMsg(message: PackageReference): PackageReferenceProtoMsg; +}; +export declare const MigrateFromInfo: { + typeUrl: string; + encode(message: MigrateFromInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo; + fromPartial(object: Partial): MigrateFromInfo; + fromAmino(object: MigrateFromInfoAmino): MigrateFromInfo; + toAmino(message: MigrateFromInfo): MigrateFromInfoAmino; + fromAminoMsg(object: MigrateFromInfoAminoMsg): MigrateFromInfo; + toAminoMsg(message: MigrateFromInfo): MigrateFromInfoAminoMsg; + fromProtoMsg(message: MigrateFromInfoProtoMsg): MigrateFromInfo; + toProto(message: MigrateFromInfo): Uint8Array; + toProtoMsg(message: MigrateFromInfo): MigrateFromInfoProtoMsg; +}; diff --git a/packages/api/dist/cosmos/app/v1alpha1/module.js b/packages/api/dist/cosmos/app/v1alpha1/module.js new file mode 100644 index 00000000..5d905326 --- /dev/null +++ b/packages/api/dist/cosmos/app/v1alpha1/module.js @@ -0,0 +1,254 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MigrateFromInfo = exports.PackageReference = exports.ModuleDescriptor = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseModuleDescriptor() { + return { + goImport: "", + usePackage: [], + canMigrateFrom: [] + }; +} +exports.ModuleDescriptor = { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.goImport !== "") { + writer.uint32(10).string(message.goImport); + } + for (const v of message.usePackage) { + exports.PackageReference.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.canMigrateFrom) { + exports.MigrateFromInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.goImport = reader.string(); + break; + case 2: + message.usePackage.push(exports.PackageReference.decode(reader, reader.uint32())); + break; + case 3: + message.canMigrateFrom.push(exports.MigrateFromInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleDescriptor(); + message.goImport = object.goImport ?? ""; + message.usePackage = object.usePackage?.map(e => exports.PackageReference.fromPartial(e)) || []; + message.canMigrateFrom = object.canMigrateFrom?.map(e => exports.MigrateFromInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModuleDescriptor(); + if (object.go_import !== undefined && object.go_import !== null) { + message.goImport = object.go_import; + } + message.usePackage = object.use_package?.map(e => exports.PackageReference.fromAmino(e)) || []; + message.canMigrateFrom = object.can_migrate_from?.map(e => exports.MigrateFromInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.go_import = message.goImport === "" ? undefined : message.goImport; + if (message.usePackage) { + obj.use_package = message.usePackage.map(e => e ? exports.PackageReference.toAmino(e) : undefined); + } + else { + obj.use_package = message.usePackage; + } + if (message.canMigrateFrom) { + obj.can_migrate_from = message.canMigrateFrom.map(e => e ? exports.MigrateFromInfo.toAmino(e) : undefined); + } + else { + obj.can_migrate_from = message.canMigrateFrom; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ModuleDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleDescriptor", + value: exports.ModuleDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModuleDescriptor.decode(message.value); + }, + toProto(message) { + return exports.ModuleDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + value: exports.ModuleDescriptor.encode(message).finish() + }; + } +}; +function createBasePackageReference() { + return { + name: "", + revision: 0 + }; +} +exports.PackageReference = { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.revision !== 0) { + writer.uint32(16).uint32(message.revision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePackageReference(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.revision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePackageReference(); + message.name = object.name ?? ""; + message.revision = object.revision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBasePackageReference(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.revision !== undefined && object.revision !== null) { + message.revision = object.revision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.revision = message.revision === 0 ? undefined : message.revision; + return obj; + }, + fromAminoMsg(object) { + return exports.PackageReference.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PackageReference", + value: exports.PackageReference.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PackageReference.decode(message.value); + }, + toProto(message) { + return exports.PackageReference.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + value: exports.PackageReference.encode(message).finish() + }; + } +}; +function createBaseMigrateFromInfo() { + return { + module: "" + }; +} +exports.MigrateFromInfo = { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.module !== "") { + writer.uint32(10).string(message.module); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMigrateFromInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.module = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMigrateFromInfo(); + message.module = object.module ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMigrateFromInfo(); + if (object.module !== undefined && object.module !== null) { + message.module = object.module; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.module = message.module === "" ? undefined : message.module; + return obj; + }, + fromAminoMsg(object) { + return exports.MigrateFromInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MigrateFromInfo", + value: exports.MigrateFromInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MigrateFromInfo.decode(message.value); + }, + toProto(message) { + return exports.MigrateFromInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + value: exports.MigrateFromInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts b/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts new file mode 100644 index 00000000..4f0fc8d4 --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts @@ -0,0 +1,144 @@ +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccount { + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; + address: string; + pubKey?: Any; + accountNumber: bigint; + sequence: bigint; +} +export interface BaseAccountProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; + value: Uint8Array; +} +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccountAmino { + address?: string; + pub_key?: AnyAmino; + account_number?: string; + sequence?: string; +} +export interface BaseAccountAminoMsg { + type: "cosmos-sdk/BaseAccount"; + value: BaseAccountAmino; +} +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccountSDKType { + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; + address: string; + pub_key?: AnySDKType; + account_number: bigint; + sequence: bigint; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccount { + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + baseAccount?: BaseAccount; + name: string; + permissions: string[]; +} +export interface ModuleAccountProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; + value: Uint8Array; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccountAmino { + base_account?: BaseAccountAmino; + name?: string; + permissions?: string[]; +} +export interface ModuleAccountAminoMsg { + type: "cosmos-sdk/ModuleAccount"; + value: ModuleAccountAmino; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccountSDKType { + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + base_account?: BaseAccountSDKType; + name: string; + permissions: string[]; +} +/** Params defines the parameters for the auth module. */ +export interface Params { + maxMemoCharacters: bigint; + txSigLimit: bigint; + txSizeCostPerByte: bigint; + sigVerifyCostEd25519: bigint; + sigVerifyCostSecp256k1: bigint; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the auth module. */ +export interface ParamsAmino { + max_memo_characters?: string; + tx_sig_limit?: string; + tx_size_cost_per_byte?: string; + sig_verify_cost_ed25519?: string; + sig_verify_cost_secp256k1?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the auth module. */ +export interface ParamsSDKType { + max_memo_characters: bigint; + tx_sig_limit: bigint; + tx_size_cost_per_byte: bigint; + sig_verify_cost_ed25519: bigint; + sig_verify_cost_secp256k1: bigint; +} +export declare const BaseAccount: { + typeUrl: string; + encode(message: BaseAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount; + fromPartial(object: Partial): BaseAccount; + fromAmino(object: BaseAccountAmino): BaseAccount; + toAmino(message: BaseAccount): BaseAccountAmino; + fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount; + toAminoMsg(message: BaseAccount): BaseAccountAminoMsg; + fromProtoMsg(message: BaseAccountProtoMsg): BaseAccount; + toProto(message: BaseAccount): Uint8Array; + toProtoMsg(message: BaseAccount): BaseAccountProtoMsg; +}; +export declare const ModuleAccount: { + typeUrl: string; + encode(message: ModuleAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount; + fromPartial(object: Partial): ModuleAccount; + fromAmino(object: ModuleAccountAmino): ModuleAccount; + toAmino(message: ModuleAccount): ModuleAccountAmino; + fromAminoMsg(object: ModuleAccountAminoMsg): ModuleAccount; + toAminoMsg(message: ModuleAccount): ModuleAccountAminoMsg; + fromProtoMsg(message: ModuleAccountProtoMsg): ModuleAccount; + toProto(message: ModuleAccount): Uint8Array; + toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/auth.js b/packages/api/dist/cosmos/auth/v1beta1/auth.js new file mode 100644 index 00000000..02d3393a --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/auth.js @@ -0,0 +1,326 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.ModuleAccount = exports.BaseAccount = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +function createBaseBaseAccount() { + return { + $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + address: "", + pubKey: undefined, + accountNumber: BigInt(0), + sequence: BigInt(0) + }; +} +exports.BaseAccount = { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pubKey !== undefined) { + any_1.Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(32).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pubKey = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.accountNumber = reader.uint64(); + break; + case 4: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBaseAccount(); + message.address = object.address ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? any_1.Any.fromPartial(object.pubKey) : undefined; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBaseAccount(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = any_1.Any.fromAmino(object.pub_key); + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pub_key = message.pubKey ? any_1.Any.toAmino(message.pubKey) : undefined; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BaseAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BaseAccount", + value: exports.BaseAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BaseAccount.decode(message.value); + }, + toProto(message) { + return exports.BaseAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: exports.BaseAccount.encode(message).finish() + }; + } +}; +function createBaseModuleAccount() { + return { + $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + baseAccount: undefined, + name: "", + permissions: [] + }; +} +exports.ModuleAccount = { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseAccount !== undefined) { + exports.BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + for (const v of message.permissions) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = exports.BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? exports.BaseAccount.fromPartial(object.baseAccount) : undefined; + message.name = object.name ?? ""; + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModuleAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = exports.BaseAccount.fromAmino(object.base_account); + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_account = message.baseAccount ? exports.BaseAccount.toAmino(message.baseAccount) : undefined; + obj.name = message.name === "" ? undefined : message.name; + if (message.permissions) { + obj.permissions = message.permissions.map(e => e); + } + else { + obj.permissions = message.permissions; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ModuleAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleAccount", + value: exports.ModuleAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModuleAccount.decode(message.value); + }, + toProto(message) { + return exports.ModuleAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: exports.ModuleAccount.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + maxMemoCharacters: BigInt(0), + txSigLimit: BigInt(0), + txSizeCostPerByte: BigInt(0), + sigVerifyCostEd25519: BigInt(0), + sigVerifyCostSecp256k1: BigInt(0) + }; +} +exports.Params = { + typeUrl: "/cosmos.auth.v1beta1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.maxMemoCharacters !== BigInt(0)) { + writer.uint32(8).uint64(message.maxMemoCharacters); + } + if (message.txSigLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.txSigLimit); + } + if (message.txSizeCostPerByte !== BigInt(0)) { + writer.uint32(24).uint64(message.txSizeCostPerByte); + } + if (message.sigVerifyCostEd25519 !== BigInt(0)) { + writer.uint32(32).uint64(message.sigVerifyCostEd25519); + } + if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { + writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxMemoCharacters = reader.uint64(); + break; + case 2: + message.txSigLimit = reader.uint64(); + break; + case 3: + message.txSizeCostPerByte = reader.uint64(); + break; + case 4: + message.sigVerifyCostEd25519 = reader.uint64(); + break; + case 5: + message.sigVerifyCostSecp256k1 = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); + message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); + message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); + message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); + message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { + message.maxMemoCharacters = BigInt(object.max_memo_characters); + } + if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { + message.txSigLimit = BigInt(object.tx_sig_limit); + } + if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { + message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); + } + if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { + message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); + } + if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { + message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; + obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; + obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; + obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; + obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts new file mode 100644 index 00000000..43ac6d8a --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts @@ -0,0 +1,43 @@ +import { Params, ParamsAmino, ParamsSDKType } from "./auth"; +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** accounts are the accounts present at genesis. */ + accounts: Any[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** accounts are the accounts present at genesis. */ + accounts?: AnyAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + accounts: AnySDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/genesis.js b/packages/api/dist/cosmos/auth/v1beta1/genesis.js new file mode 100644 index 00000000..f99a8efb --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/genesis.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const auth_1 = require("./auth"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + params: auth_1.Params.fromPartial({}), + accounts: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + auth_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.accounts) { + any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = auth_1.Params.decode(reader, reader.uint32()); + break; + case 2: + message.accounts.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? auth_1.Params.fromPartial(object.params) : undefined; + message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = auth_1.Params.fromAmino(object.params); + } + message.accounts = object.accounts?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? auth_1.Params.toAmino(message.params) : undefined; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.d.ts new file mode 100644 index 00000000..d86b7f96 --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.d.ts @@ -0,0 +1,776 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAccountsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; + value: Uint8Array; +} +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAccountsRequestAminoMsg { + type: "cosmos-sdk/QueryAccountsRequest"; + value: QueryAccountsRequestAmino; +} +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponse { + /** accounts are the existing accounts */ + accounts: (BaseAccount | Any)[] | Any[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAccountsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; + value: Uint8Array; +} +export type QueryAccountsResponseEncoded = Omit & { + /** accounts are the existing accounts */ accounts: (BaseAccountProtoMsg | AnyProtoMsg)[]; +}; +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponseAmino { + /** accounts are the existing accounts */ + accounts?: AnyAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAccountsResponseAminoMsg { + type: "cosmos-sdk/QueryAccountsResponse"; + value: QueryAccountsResponseAmino; +} +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponseSDKType { + accounts: (BaseAccountSDKType | AnySDKType)[]; + pagination?: PageResponseSDKType; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequest { + /** address defines the address to query for. */ + address: string; +} +export interface QueryAccountRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; + value: Uint8Array; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequestAmino { + /** address defines the address to query for. */ + address?: string; +} +export interface QueryAccountRequestAminoMsg { + type: "cosmos-sdk/QueryAccountRequest"; + value: QueryAccountRequestAmino; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequestSDKType { + address: string; +} +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponse { + /** account defines the account of the corresponding address. */ + account?: BaseAccount | Any | undefined; +} +export interface QueryAccountResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; + value: Uint8Array; +} +export type QueryAccountResponseEncoded = Omit & { + /** account defines the account of the corresponding address. */ account?: BaseAccountProtoMsg | AnyProtoMsg | undefined; +}; +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponseAmino { + /** account defines the account of the corresponding address. */ + account?: AnyAmino; +} +export interface QueryAccountResponseAminoMsg { + type: "cosmos-sdk/QueryAccountResponse"; + value: QueryAccountResponseAmino; +} +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponseSDKType { + account?: BaseAccountSDKType | AnySDKType | undefined; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequest { +} +export interface QueryModuleAccountsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; + value: Uint8Array; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequestAmino { +} +export interface QueryModuleAccountsRequestAminoMsg { + type: "cosmos-sdk/QueryModuleAccountsRequest"; + value: QueryModuleAccountsRequestAmino; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequestSDKType { +} +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponse { + accounts: (ModuleAccount | Any)[] | Any[]; +} +export interface QueryModuleAccountsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; + value: Uint8Array; +} +export type QueryModuleAccountsResponseEncoded = Omit & { + accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[]; +}; +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponseAmino { + accounts?: AnyAmino[]; +} +export interface QueryModuleAccountsResponseAminoMsg { + type: "cosmos-sdk/QueryModuleAccountsResponse"; + value: QueryModuleAccountsResponseAmino; +} +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponseSDKType { + accounts: (ModuleAccountSDKType | AnySDKType)[]; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequest { + name: string; +} +export interface QueryModuleAccountByNameRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; + value: Uint8Array; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequestAmino { + name?: string; +} +export interface QueryModuleAccountByNameRequestAminoMsg { + type: "cosmos-sdk/QueryModuleAccountByNameRequest"; + value: QueryModuleAccountByNameRequestAmino; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequestSDKType { + name: string; +} +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponse { + account?: ModuleAccount | Any | undefined; +} +export interface QueryModuleAccountByNameResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; + value: Uint8Array; +} +export type QueryModuleAccountByNameResponseEncoded = Omit & { + account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined; +}; +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponseAmino { + account?: AnyAmino; +} +export interface QueryModuleAccountByNameResponseAminoMsg { + type: "cosmos-sdk/QueryModuleAccountByNameResponse"; + value: QueryModuleAccountByNameResponseAmino; +} +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponseSDKType { + account?: ModuleAccountSDKType | AnySDKType | undefined; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequest { +} +export interface Bech32PrefixRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; + value: Uint8Array; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequestAmino { +} +export interface Bech32PrefixRequestAminoMsg { + type: "cosmos-sdk/Bech32PrefixRequest"; + value: Bech32PrefixRequestAmino; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequestSDKType { +} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponse { + bech32Prefix: string; +} +export interface Bech32PrefixResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; + value: Uint8Array; +} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponseAmino { + bech32_prefix?: string; +} +export interface Bech32PrefixResponseAminoMsg { + type: "cosmos-sdk/Bech32PrefixResponse"; + value: Bech32PrefixResponseAmino; +} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponseSDKType { + bech32_prefix: string; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequest { + addressBytes: Uint8Array; +} +export interface AddressBytesToStringRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; + value: Uint8Array; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequestAmino { + address_bytes?: string; +} +export interface AddressBytesToStringRequestAminoMsg { + type: "cosmos-sdk/AddressBytesToStringRequest"; + value: AddressBytesToStringRequestAmino; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequestSDKType { + address_bytes: Uint8Array; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponse { + addressString: string; +} +export interface AddressBytesToStringResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; + value: Uint8Array; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponseAmino { + address_string?: string; +} +export interface AddressBytesToStringResponseAminoMsg { + type: "cosmos-sdk/AddressBytesToStringResponse"; + value: AddressBytesToStringResponseAmino; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponseSDKType { + address_string: string; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequest { + addressString: string; +} +export interface AddressStringToBytesRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; + value: Uint8Array; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequestAmino { + address_string?: string; +} +export interface AddressStringToBytesRequestAminoMsg { + type: "cosmos-sdk/AddressStringToBytesRequest"; + value: AddressStringToBytesRequestAmino; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequestSDKType { + address_string: string; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponse { + addressBytes: Uint8Array; +} +export interface AddressStringToBytesResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; + value: Uint8Array; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponseAmino { + address_bytes?: string; +} +export interface AddressStringToBytesResponseAminoMsg { + type: "cosmos-sdk/AddressStringToBytesResponse"; + value: AddressStringToBytesResponseAmino; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponseSDKType { + address_bytes: Uint8Array; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequest { + /** + * id is the account number of the address to be queried. This field + * should have been an uint64 (like all account numbers), and will be + * updated to uint64 in a future version of the auth query. + */ + id: bigint; +} +export interface QueryAccountAddressByIDRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; + value: Uint8Array; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequestAmino { + /** + * id is the account number of the address to be queried. This field + * should have been an uint64 (like all account numbers), and will be + * updated to uint64 in a future version of the auth query. + */ + id?: string; +} +export interface QueryAccountAddressByIDRequestAminoMsg { + type: "cosmos-sdk/QueryAccountAddressByIDRequest"; + value: QueryAccountAddressByIDRequestAmino; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequestSDKType { + id: bigint; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponse { + accountAddress: string; +} +export interface QueryAccountAddressByIDResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; + value: Uint8Array; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponseAmino { + account_address?: string; +} +export interface QueryAccountAddressByIDResponseAminoMsg { + type: "cosmos-sdk/QueryAccountAddressByIDResponse"; + value: QueryAccountAddressByIDResponseAmino; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponseSDKType { + account_address: string; +} +export declare const QueryAccountsRequest: { + typeUrl: string; + encode(message: QueryAccountsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest; + fromPartial(object: Partial): QueryAccountsRequest; + fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest; + toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino; + fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest; + toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg; + fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest; + toProto(message: QueryAccountsRequest): Uint8Array; + toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg; +}; +export declare const QueryAccountsResponse: { + typeUrl: string; + encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; + fromPartial(object: Partial): QueryAccountsResponse; + fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse; + toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino; + fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse; + toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg; + fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse; + toProto(message: QueryAccountsResponse): Uint8Array; + toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg; +}; +export declare const QueryAccountRequest: { + typeUrl: string; + encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; + fromPartial(object: Partial): QueryAccountRequest; + fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest; + toAmino(message: QueryAccountRequest): QueryAccountRequestAmino; + fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest; + toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg; + fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest; + toProto(message: QueryAccountRequest): Uint8Array; + toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg; +}; +export declare const QueryAccountResponse: { + typeUrl: string; + encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; + fromPartial(object: Partial): QueryAccountResponse; + fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse; + toAmino(message: QueryAccountResponse): QueryAccountResponseAmino; + fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse; + toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg; + fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse; + toProto(message: QueryAccountResponse): Uint8Array; + toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryModuleAccountsRequest: { + typeUrl: string; + encode(_: QueryModuleAccountsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest; + fromPartial(_: Partial): QueryModuleAccountsRequest; + fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest; + toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino; + fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest; + toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg; + fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest; + toProto(message: QueryModuleAccountsRequest): Uint8Array; + toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg; +}; +export declare const QueryModuleAccountsResponse: { + typeUrl: string; + encode(message: QueryModuleAccountsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse; + fromPartial(object: Partial): QueryModuleAccountsResponse; + fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse; + toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino; + fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse; + toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg; + fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse; + toProto(message: QueryModuleAccountsResponse): Uint8Array; + toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg; +}; +export declare const QueryModuleAccountByNameRequest: { + typeUrl: string; + encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; + fromPartial(object: Partial): QueryModuleAccountByNameRequest; + fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest; + toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino; + fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest; + toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg; + fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest; + toProto(message: QueryModuleAccountByNameRequest): Uint8Array; + toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg; +}; +export declare const QueryModuleAccountByNameResponse: { + typeUrl: string; + encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; + fromPartial(object: Partial): QueryModuleAccountByNameResponse; + fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse; + toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino; + fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse; + toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg; + fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse; + toProto(message: QueryModuleAccountByNameResponse): Uint8Array; + toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg; +}; +export declare const Bech32PrefixRequest: { + typeUrl: string; + encode(_: Bech32PrefixRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest; + fromPartial(_: Partial): Bech32PrefixRequest; + fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest; + toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino; + fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest; + toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg; + fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest; + toProto(message: Bech32PrefixRequest): Uint8Array; + toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg; +}; +export declare const Bech32PrefixResponse: { + typeUrl: string; + encode(message: Bech32PrefixResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse; + fromPartial(object: Partial): Bech32PrefixResponse; + fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse; + toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino; + fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse; + toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg; + fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse; + toProto(message: Bech32PrefixResponse): Uint8Array; + toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg; +}; +export declare const AddressBytesToStringRequest: { + typeUrl: string; + encode(message: AddressBytesToStringRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest; + fromPartial(object: Partial): AddressBytesToStringRequest; + fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest; + toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino; + fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest; + toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg; + fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest; + toProto(message: AddressBytesToStringRequest): Uint8Array; + toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg; +}; +export declare const AddressBytesToStringResponse: { + typeUrl: string; + encode(message: AddressBytesToStringResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse; + fromPartial(object: Partial): AddressBytesToStringResponse; + fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse; + toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino; + fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse; + toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg; + fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse; + toProto(message: AddressBytesToStringResponse): Uint8Array; + toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg; +}; +export declare const AddressStringToBytesRequest: { + typeUrl: string; + encode(message: AddressStringToBytesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest; + fromPartial(object: Partial): AddressStringToBytesRequest; + fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest; + toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino; + fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest; + toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg; + fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest; + toProto(message: AddressStringToBytesRequest): Uint8Array; + toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg; +}; +export declare const AddressStringToBytesResponse: { + typeUrl: string; + encode(message: AddressStringToBytesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse; + fromPartial(object: Partial): AddressStringToBytesResponse; + fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse; + toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino; + fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse; + toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg; + fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse; + toProto(message: AddressStringToBytesResponse): Uint8Array; + toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg; +}; +export declare const QueryAccountAddressByIDRequest: { + typeUrl: string; + encode(message: QueryAccountAddressByIDRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; + fromPartial(object: Partial): QueryAccountAddressByIDRequest; + fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest; + toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino; + fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest; + toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg; + fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest; + toProto(message: QueryAccountAddressByIDRequest): Uint8Array; + toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg; +}; +export declare const QueryAccountAddressByIDResponse: { + typeUrl: string; + encode(message: QueryAccountAddressByIDResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; + fromPartial(object: Partial): QueryAccountAddressByIDResponse; + fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse; + toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino; + fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse; + toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg; + fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse; + toProto(message: QueryAccountAddressByIDResponse): Uint8Array; + toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg; +}; +export declare const AccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BaseAccount | Any; +export declare const AccountI_FromAmino: (content: AnyAmino) => Any; +export declare const AccountI_ToAmino: (content: Any) => AnyAmino; +export declare const ModuleAccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ModuleAccount | Any; +export declare const ModuleAccountI_FromAmino: (content: AnyAmino) => Any; +export declare const ModuleAccountI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.js b/packages/api/dist/cosmos/auth/v1beta1/query.js new file mode 100644 index 00000000..f65a4081 --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.js @@ -0,0 +1,1300 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModuleAccountI_ToAmino = exports.ModuleAccountI_FromAmino = exports.ModuleAccountI_InterfaceDecoder = exports.AccountI_ToAmino = exports.AccountI_FromAmino = exports.AccountI_InterfaceDecoder = exports.QueryAccountAddressByIDResponse = exports.QueryAccountAddressByIDRequest = exports.AddressStringToBytesResponse = exports.AddressStringToBytesRequest = exports.AddressBytesToStringResponse = exports.AddressBytesToStringRequest = exports.Bech32PrefixResponse = exports.Bech32PrefixRequest = exports.QueryModuleAccountByNameResponse = exports.QueryModuleAccountByNameRequest = exports.QueryModuleAccountsResponse = exports.QueryModuleAccountsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAccountResponse = exports.QueryAccountRequest = exports.QueryAccountsResponse = exports.QueryAccountsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const any_1 = require("../../../google/protobuf/any"); +const auth_1 = require("./auth"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseQueryAccountsRequest() { + return { + pagination: undefined + }; +} +exports.QueryAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountsRequest", + value: exports.QueryAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + value: exports.QueryAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountsResponse() { + return { + accounts: [], + pagination: undefined + }; +} +exports.QueryAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.accounts) { + any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => (0, exports.AccountI_FromAmino)(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? (0, exports.AccountI_ToAmino)(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountsResponse", + value: exports.QueryAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + value: exports.QueryAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountRequest() { + return { + address: "" + }; +} +exports.QueryAccountRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountRequest", + value: exports.QueryAccountRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + value: exports.QueryAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountResponse() { + return { + account: undefined + }; +} +exports.QueryAccountResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.account !== undefined) { + any_1.Any.encode(message.account, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = (0, exports.AccountI_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountResponse(); + message.account = object.account !== undefined && object.account !== null ? any_1.Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = (0, exports.AccountI_FromAmino)(object.account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account ? (0, exports.AccountI_ToAmino)(message.account) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountResponse", + value: exports.QueryAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + value: exports.QueryAccountResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: auth_1.Params.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + auth_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = auth_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? auth_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = auth_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? auth_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsRequest() { + return {}; +} +exports.QueryModuleAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountsRequest", + value: exports.QueryModuleAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleAccountsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + value: exports.QueryModuleAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsResponse() { + return { + accounts: [] + }; +} +exports.QueryModuleAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.accounts) { + any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => (0, exports.ModuleAccountI_FromAmino)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? (0, exports.ModuleAccountI_ToAmino)(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountsResponse", + value: exports.QueryModuleAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleAccountsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + value: exports.QueryModuleAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameRequest() { + return { + name: "" + }; +} +exports.QueryModuleAccountByNameRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountByNameRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountByNameRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleAccountByNameRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountByNameRequest", + value: exports.QueryModuleAccountByNameRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleAccountByNameRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleAccountByNameRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + value: exports.QueryModuleAccountByNameRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameResponse() { + return { + account: undefined + }; +} +exports.QueryModuleAccountByNameResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.account !== undefined) { + any_1.Any.encode(message.account, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = (0, exports.ModuleAccountI_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountByNameResponse(); + message.account = object.account !== undefined && object.account !== null ? any_1.Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountByNameResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = (0, exports.ModuleAccountI_FromAmino)(object.account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account ? (0, exports.ModuleAccountI_ToAmino)(message.account) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleAccountByNameResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountByNameResponse", + value: exports.QueryModuleAccountByNameResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleAccountByNameResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleAccountByNameResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + value: exports.QueryModuleAccountByNameResponse.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixRequest() { + return {}; +} +exports.Bech32PrefixRequest = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseBech32PrefixRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseBech32PrefixRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.Bech32PrefixRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Bech32PrefixRequest", + value: exports.Bech32PrefixRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Bech32PrefixRequest.decode(message.value); + }, + toProto(message) { + return exports.Bech32PrefixRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + value: exports.Bech32PrefixRequest.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixResponse() { + return { + bech32Prefix: "" + }; +} +exports.Bech32PrefixResponse = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bech32Prefix !== "") { + writer.uint32(10).string(message.bech32Prefix); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32Prefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBech32PrefixResponse(); + message.bech32Prefix = object.bech32Prefix ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBech32PrefixResponse(); + if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { + message.bech32Prefix = object.bech32_prefix; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; + return obj; + }, + fromAminoMsg(object) { + return exports.Bech32PrefixResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Bech32PrefixResponse", + value: exports.Bech32PrefixResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Bech32PrefixResponse.decode(message.value); + }, + toProto(message) { + return exports.Bech32PrefixResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + value: exports.Bech32PrefixResponse.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringRequest() { + return { + addressBytes: new Uint8Array() + }; +} +exports.AddressBytesToStringRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressBytesToStringRequest(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAddressBytesToStringRequest(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = (0, helpers_1.bytesFromBase64)(object.address_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_bytes = message.addressBytes ? (0, helpers_1.base64FromBytes)(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AddressBytesToStringRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressBytesToStringRequest", + value: exports.AddressBytesToStringRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AddressBytesToStringRequest.decode(message.value); + }, + toProto(message) { + return exports.AddressBytesToStringRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + value: exports.AddressBytesToStringRequest.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringResponse() { + return { + addressString: "" + }; +} +exports.AddressBytesToStringResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressBytesToStringResponse(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAddressBytesToStringResponse(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object) { + return exports.AddressBytesToStringResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressBytesToStringResponse", + value: exports.AddressBytesToStringResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AddressBytesToStringResponse.decode(message.value); + }, + toProto(message) { + return exports.AddressBytesToStringResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + value: exports.AddressBytesToStringResponse.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesRequest() { + return { + addressString: "" + }; +} +exports.AddressStringToBytesRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressStringToBytesRequest(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAddressStringToBytesRequest(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object) { + return exports.AddressStringToBytesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressStringToBytesRequest", + value: exports.AddressStringToBytesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AddressStringToBytesRequest.decode(message.value); + }, + toProto(message) { + return exports.AddressStringToBytesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + value: exports.AddressStringToBytesRequest.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesResponse() { + return { + addressBytes: new Uint8Array() + }; +} +exports.AddressStringToBytesResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressStringToBytesResponse(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAddressStringToBytesResponse(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = (0, helpers_1.bytesFromBase64)(object.address_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_bytes = message.addressBytes ? (0, helpers_1.base64FromBytes)(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AddressStringToBytesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressStringToBytesResponse", + value: exports.AddressStringToBytesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AddressStringToBytesResponse.decode(message.value); + }, + toProto(message) { + return exports.AddressStringToBytesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + value: exports.AddressStringToBytesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDRequest() { + return { + id: BigInt(0) + }; +} +exports.QueryAccountAddressByIDRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).int64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountAddressByIDRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountAddressByIDRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountAddressByIDRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountAddressByIDRequest", + value: exports.QueryAccountAddressByIDRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountAddressByIDRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountAddressByIDRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + value: exports.QueryAccountAddressByIDRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDResponse() { + return { + accountAddress: "" + }; +} +exports.QueryAccountAddressByIDResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.accountAddress !== "") { + writer.uint32(10).string(message.accountAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountAddressByIDResponse(); + message.accountAddress = object.accountAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountAddressByIDResponse(); + if (object.account_address !== undefined && object.account_address !== null) { + message.accountAddress = object.account_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAccountAddressByIDResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountAddressByIDResponse", + value: exports.QueryAccountAddressByIDResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAccountAddressByIDResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAccountAddressByIDResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + value: exports.QueryAccountAddressByIDResponse.encode(message).finish() + }; + } +}; +const AccountI_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return auth_1.BaseAccount.decode(data.value); + default: + return data; + } +}; +exports.AccountI_InterfaceDecoder = AccountI_InterfaceDecoder; +const AccountI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BaseAccount": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: auth_1.BaseAccount.encode(auth_1.BaseAccount.fromPartial(auth_1.BaseAccount.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.AccountI_FromAmino = AccountI_FromAmino; +const AccountI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return { + type: "cosmos-sdk/BaseAccount", + value: auth_1.BaseAccount.toAmino(auth_1.BaseAccount.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.AccountI_ToAmino = AccountI_ToAmino; +const ModuleAccountI_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return auth_1.ModuleAccount.decode(data.value); + default: + return data; + } +}; +exports.ModuleAccountI_InterfaceDecoder = ModuleAccountI_InterfaceDecoder; +const ModuleAccountI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ModuleAccount": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: auth_1.ModuleAccount.encode(auth_1.ModuleAccount.fromPartial(auth_1.ModuleAccount.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.ModuleAccountI_FromAmino = ModuleAccountI_FromAmino; +const ModuleAccountI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return { + type: "cosmos-sdk/ModuleAccount", + value: auth_1.ModuleAccount.toAmino(auth_1.ModuleAccount.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.ModuleAccountI_ToAmino = ModuleAccountI_ToAmino; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..edc1c862 --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts @@ -0,0 +1,17 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + accounts(params?: QueryAccountsRequest): Promise; + account(params: QueryAccountRequest): Promise; + accountAddressByID(params: QueryAccountAddressByIDRequest): Promise; + params(_params?: QueryParamsRequest): Promise; + moduleAccounts(_params?: QueryModuleAccountsRequest): Promise; + moduleAccountByName(params: QueryModuleAccountByNameRequest): Promise; + bech32Prefix(_params?: Bech32PrefixRequest): Promise; + addressBytesToString(params: AddressBytesToStringRequest): Promise; + addressStringToBytes(params: AddressStringToBytesRequest): Promise; +} diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js new file mode 100644 index 00000000..c4d52b7c --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js @@ -0,0 +1,86 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + /* Accounts returns all the existing accounts + + Since: cosmos-sdk 0.43 */ + async accounts(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/auth/v1beta1/accounts`; + return await this.req.get(endpoint, options); + } + /* Account returns account details based on address. */ + async account(params) { + const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; + return await this.req.get(endpoint); + } + /* AccountAddressByID returns account address based on account number. + + Since: cosmos-sdk 0.46.2 */ + async accountAddressByID(params) { + const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; + return await this.req.get(endpoint); + } + /* Params queries all parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ModuleAccounts returns all the existing module accounts. + + Since: cosmos-sdk 0.46 */ + async moduleAccounts(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/module_accounts`; + return await this.req.get(endpoint); + } + /* ModuleAccountByName returns the module account info by module name */ + async moduleAccountByName(params) { + const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; + return await this.req.get(endpoint); + } + /* Bech32Prefix queries bech32Prefix + + Since: cosmos-sdk 0.46 */ + async bech32Prefix(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/bech32`; + return await this.req.get(endpoint); + } + /* AddressBytesToString converts Account Address bytes to string + + Since: cosmos-sdk 0.46 */ + async addressBytesToString(params) { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; + return await this.req.get(endpoint); + } + /* AddressStringToBytes converts Address string to bytes + + Since: cosmos-sdk 0.46 */ + async addressStringToBytes(params) { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..b74fda81 --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,72 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Accounts returns all the existing accounts + * + * Since: cosmos-sdk 0.43 + */ + accounts(request?: QueryAccountsRequest): Promise; + /** Account returns account details based on address. */ + account(request: QueryAccountRequest): Promise; + /** + * AccountAddressByID returns account address based on account number. + * + * Since: cosmos-sdk 0.46.2 + */ + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; + /** Params queries all parameters. */ + params(request?: QueryParamsRequest): Promise; + /** + * ModuleAccounts returns all the existing module accounts. + * + * Since: cosmos-sdk 0.46 + */ + moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + /** ModuleAccountByName returns the module account info by module name */ + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; + /** + * Bech32Prefix queries bech32Prefix + * + * Since: cosmos-sdk 0.46 + */ + bech32Prefix(request?: Bech32PrefixRequest): Promise; + /** + * AddressBytesToString converts Account Address bytes to string + * + * Since: cosmos-sdk 0.46 + */ + addressBytesToString(request: AddressBytesToStringRequest): Promise; + /** + * AddressStringToBytes converts Address string to bytes + * + * Since: cosmos-sdk 0.46 + */ + addressStringToBytes(request: AddressStringToBytesRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + accounts(request?: QueryAccountsRequest): Promise; + account(request: QueryAccountRequest): Promise; + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; + params(request?: QueryParamsRequest): Promise; + moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: Bech32PrefixRequest): Promise; + addressBytesToString(request: AddressBytesToStringRequest): Promise; + addressStringToBytes(request: AddressStringToBytesRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + accounts(request?: QueryAccountsRequest): Promise; + account(request: QueryAccountRequest): Promise; + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; + params(request?: QueryParamsRequest): Promise; + moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: Bech32PrefixRequest): Promise; + addressBytesToString(request: AddressBytesToStringRequest): Promise; + addressStringToBytes(request: AddressStringToBytesRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..092e8d3b --- /dev/null +++ b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js @@ -0,0 +1,103 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + accounts(request = { + pagination: undefined + }) { + const data = query_1.QueryAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); + return promise.then(data => query_1.QueryAccountsResponse.decode(new binary_1.BinaryReader(data))); + } + account(request) { + const data = query_1.QueryAccountRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); + return promise.then(data => query_1.QueryAccountResponse.decode(new binary_1.BinaryReader(data))); + } + accountAddressByID(request) { + const data = query_1.QueryAccountAddressByIDRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); + return promise.then(data => query_1.QueryAccountAddressByIDResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + moduleAccounts(request = {}) { + const data = query_1.QueryModuleAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); + return promise.then(data => query_1.QueryModuleAccountsResponse.decode(new binary_1.BinaryReader(data))); + } + moduleAccountByName(request) { + const data = query_1.QueryModuleAccountByNameRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); + return promise.then(data => query_1.QueryModuleAccountByNameResponse.decode(new binary_1.BinaryReader(data))); + } + bech32Prefix(request = {}) { + const data = query_1.Bech32PrefixRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); + return promise.then(data => query_1.Bech32PrefixResponse.decode(new binary_1.BinaryReader(data))); + } + addressBytesToString(request) { + const data = query_1.AddressBytesToStringRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); + return promise.then(data => query_1.AddressBytesToStringResponse.decode(new binary_1.BinaryReader(data))); + } + addressStringToBytes(request) { + const data = query_1.AddressStringToBytesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); + return promise.then(data => query_1.AddressStringToBytesResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + accounts(request) { + return queryService.accounts(request); + }, + account(request) { + return queryService.account(request); + }, + accountAddressByID(request) { + return queryService.accountAddressByID(request); + }, + params(request) { + return queryService.params(request); + }, + moduleAccounts(request) { + return queryService.moduleAccounts(request); + }, + moduleAccountByName(request) { + return queryService.moduleAccountByName(request); + }, + bech32Prefix(request) { + return queryService.bech32Prefix(request); + }, + addressBytesToString(request) { + return queryService.addressBytesToString(request); + }, + addressStringToBytes(request) { + return queryService.addressStringToBytes(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts b/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts new file mode 100644 index 00000000..74b62dd1 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts @@ -0,0 +1,200 @@ +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; +import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorization { + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; + /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ + msg: string; +} +export interface GenericAuthorizationProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; + value: Uint8Array; +} +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorizationAmino { + /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ + msg?: string; +} +export interface GenericAuthorizationAminoMsg { + type: "cosmos-sdk/GenericAuthorization"; + value: GenericAuthorizationAmino; +} +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorizationSDKType { + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; + msg: string; +} +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface Grant { + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; + /** + * time when the grant will expire and will be pruned. If null, then the grant + * doesn't have a time expiration (other conditions in `authorization` + * may apply to invalidate the grant) + */ + expiration?: Date; +} +export interface GrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.Grant"; + value: Uint8Array; +} +export type GrantEncoded = Omit & { + authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; +}; +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface GrantAmino { + authorization?: AnyAmino; + /** + * time when the grant will expire and will be pruned. If null, then the grant + * doesn't have a time expiration (other conditions in `authorization` + * may apply to invalidate the grant) + */ + expiration?: string; +} +export interface GrantAminoMsg { + type: "cosmos-sdk/Grant"; + value: GrantAmino; +} +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface GrantSDKType { + authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; + expiration?: Date; +} +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorization { + granter: string; + grantee: string; + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; + expiration?: Date; +} +export interface GrantAuthorizationProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; + value: Uint8Array; +} +export type GrantAuthorizationEncoded = Omit & { + authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; +}; +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorizationAmino { + granter?: string; + grantee?: string; + authorization?: AnyAmino; + expiration?: string; +} +export interface GrantAuthorizationAminoMsg { + type: "cosmos-sdk/GrantAuthorization"; + value: GrantAuthorizationAmino; +} +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorizationSDKType { + granter: string; + grantee: string; + authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; + expiration?: Date; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItem { + /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ + msgTypeUrls: string[]; +} +export interface GrantQueueItemProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; + value: Uint8Array; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItemAmino { + /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ + msg_type_urls?: string[]; +} +export interface GrantQueueItemAminoMsg { + type: "cosmos-sdk/GrantQueueItem"; + value: GrantQueueItemAmino; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItemSDKType { + msg_type_urls: string[]; +} +export declare const GenericAuthorization: { + typeUrl: string; + encode(message: GenericAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization; + fromPartial(object: Partial): GenericAuthorization; + fromAmino(object: GenericAuthorizationAmino): GenericAuthorization; + toAmino(message: GenericAuthorization): GenericAuthorizationAmino; + fromAminoMsg(object: GenericAuthorizationAminoMsg): GenericAuthorization; + toAminoMsg(message: GenericAuthorization): GenericAuthorizationAminoMsg; + fromProtoMsg(message: GenericAuthorizationProtoMsg): GenericAuthorization; + toProto(message: GenericAuthorization): Uint8Array; + toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg; +}; +export declare const Grant: { + typeUrl: string; + encode(message: Grant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Grant; + fromPartial(object: Partial): Grant; + fromAmino(object: GrantAmino): Grant; + toAmino(message: Grant): GrantAmino; + fromAminoMsg(object: GrantAminoMsg): Grant; + toAminoMsg(message: Grant): GrantAminoMsg; + fromProtoMsg(message: GrantProtoMsg): Grant; + toProto(message: Grant): Uint8Array; + toProtoMsg(message: Grant): GrantProtoMsg; +}; +export declare const GrantAuthorization: { + typeUrl: string; + encode(message: GrantAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization; + fromPartial(object: Partial): GrantAuthorization; + fromAmino(object: GrantAuthorizationAmino): GrantAuthorization; + toAmino(message: GrantAuthorization): GrantAuthorizationAmino; + fromAminoMsg(object: GrantAuthorizationAminoMsg): GrantAuthorization; + toAminoMsg(message: GrantAuthorization): GrantAuthorizationAminoMsg; + fromProtoMsg(message: GrantAuthorizationProtoMsg): GrantAuthorization; + toProto(message: GrantAuthorization): Uint8Array; + toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg; +}; +export declare const GrantQueueItem: { + typeUrl: string; + encode(message: GrantQueueItem, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem; + fromPartial(object: Partial): GrantQueueItem; + fromAmino(object: GrantQueueItemAmino): GrantQueueItem; + toAmino(message: GrantQueueItem): GrantQueueItemAmino; + fromAminoMsg(object: GrantQueueItemAminoMsg): GrantQueueItem; + toAminoMsg(message: GrantQueueItem): GrantQueueItemAminoMsg; + fromProtoMsg(message: GrantQueueItemProtoMsg): GrantQueueItem; + toProto(message: GrantQueueItem): Uint8Array; + toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg; +}; +export declare const Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => GenericAuthorization | SendAuthorization | StakeAuthorization | Any; +export declare const Authorization_FromAmino: (content: AnyAmino) => Any; +export declare const Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/authz.js b/packages/api/dist/cosmos/authz/v1beta1/authz.js new file mode 100644 index 00000000..e0f49a6d --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/authz.js @@ -0,0 +1,397 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Authorization_ToAmino = exports.Authorization_FromAmino = exports.Authorization_InterfaceDecoder = exports.GrantQueueItem = exports.GrantAuthorization = exports.Grant = exports.GenericAuthorization = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const authz_1 = require("../../bank/v1beta1/authz"); +const authz_2 = require("../../staking/v1beta1/authz"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseGenericAuthorization() { + return { + $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + msg: "" + }; +} +exports.GenericAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msg !== "") { + writer.uint32(10).string(message.msg); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenericAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenericAuthorization(); + message.msg = object.msg ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseGenericAuthorization(); + if (object.msg !== undefined && object.msg !== null) { + message.msg = object.msg; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg = message.msg === "" ? undefined : message.msg; + return obj; + }, + fromAminoMsg(object) { + return exports.GenericAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenericAuthorization", + value: exports.GenericAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenericAuthorization.decode(message.value); + }, + toProto(message) { + return exports.GenericAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: exports.GenericAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrant() { + return { + authorization: undefined, + expiration: undefined + }; +} +exports.Grant = { + typeUrl: "/cosmos.authz.v1beta1.Grant", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authorization !== undefined) { + any_1.Any.encode(message.authorization, writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization = (0, exports.Authorization_InterfaceDecoder)(reader); + break; + case 2: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrant(); + message.authorization = object.authorization !== undefined && object.authorization !== null ? any_1.Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrant(); + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = (0, exports.Authorization_FromAmino)(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authorization = message.authorization ? (0, exports.Authorization_ToAmino)(message.authorization) : undefined; + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Grant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Grant", + value: exports.Grant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Grant.decode(message.value); + }, + toProto(message) { + return exports.Grant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.Grant", + value: exports.Grant.encode(message).finish() + }; + } +}; +function createBaseGrantAuthorization() { + return { + granter: "", + grantee: "", + authorization: undefined, + expiration: undefined + }; +} +exports.GrantAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.authorization !== undefined) { + any_1.Any.encode(message.authorization, writer.uint32(26).fork()).ldelim(); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.authorization = (0, exports.Authorization_InterfaceDecoder)(reader); + break; + case 4: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrantAuthorization(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.authorization = object.authorization !== undefined && object.authorization !== null ? any_1.Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrantAuthorization(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = (0, exports.Authorization_FromAmino)(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.authorization = message.authorization ? (0, exports.Authorization_ToAmino)(message.authorization) : undefined; + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GrantAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GrantAuthorization", + value: exports.GrantAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GrantAuthorization.decode(message.value); + }, + toProto(message) { + return exports.GrantAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + value: exports.GrantAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrantQueueItem() { + return { + msgTypeUrls: [] + }; +} +exports.GrantQueueItem = { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.msgTypeUrls) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantQueueItem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrls.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.msgTypeUrls) { + obj.msg_type_urls = message.msgTypeUrls.map(e => e); + } + else { + obj.msg_type_urls = message.msgTypeUrls; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GrantQueueItem.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GrantQueueItem", + value: exports.GrantQueueItem.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GrantQueueItem.decode(message.value); + }, + toProto(message) { + return exports.GrantQueueItem.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + value: exports.GrantQueueItem.encode(message).finish() + }; + } +}; +const Authorization_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return exports.GenericAuthorization.decode(data.value); + case "/cosmos.bank.v1beta1.SendAuthorization": + return authz_1.SendAuthorization.decode(data.value); + case "/cosmos.staking.v1beta1.StakeAuthorization": + return authz_2.StakeAuthorization.decode(data.value); + default: + return data; + } +}; +exports.Authorization_InterfaceDecoder = Authorization_InterfaceDecoder; +const Authorization_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/GenericAuthorization": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: exports.GenericAuthorization.encode(exports.GenericAuthorization.fromPartial(exports.GenericAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/SendAuthorization": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: authz_1.SendAuthorization.encode(authz_1.SendAuthorization.fromPartial(authz_1.SendAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/StakeAuthorization": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: authz_2.StakeAuthorization.encode(authz_2.StakeAuthorization.fromPartial(authz_2.StakeAuthorization.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.Authorization_FromAmino = Authorization_FromAmino; +const Authorization_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return { + type: "cosmos-sdk/GenericAuthorization", + value: exports.GenericAuthorization.toAmino(exports.GenericAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.bank.v1beta1.SendAuthorization": + return { + type: "cosmos-sdk/SendAuthorization", + value: authz_1.SendAuthorization.toAmino(authz_1.SendAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.staking.v1beta1.StakeAuthorization": + return { + type: "cosmos-sdk/StakeAuthorization", + value: authz_2.StakeAuthorization.toAmino(authz_2.StakeAuthorization.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.Authorization_ToAmino = Authorization_ToAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/event.d.ts b/packages/api/dist/cosmos/authz/v1beta1/event.d.ts new file mode 100644 index 00000000..7e725edf --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/event.d.ts @@ -0,0 +1,91 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrant { + /** Msg type URL for which an autorization is granted */ + msgTypeUrl: string; + /** Granter account address */ + granter: string; + /** Grantee account address */ + grantee: string; +} +export interface EventGrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.EventGrant"; + value: Uint8Array; +} +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrantAmino { + /** Msg type URL for which an autorization is granted */ + msg_type_url?: string; + /** Granter account address */ + granter?: string; + /** Grantee account address */ + grantee?: string; +} +export interface EventGrantAminoMsg { + type: "cosmos-sdk/EventGrant"; + value: EventGrantAmino; +} +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrantSDKType { + msg_type_url: string; + granter: string; + grantee: string; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevoke { + /** Msg type URL for which an autorization is revoked */ + msgTypeUrl: string; + /** Granter account address */ + granter: string; + /** Grantee account address */ + grantee: string; +} +export interface EventRevokeProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; + value: Uint8Array; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevokeAmino { + /** Msg type URL for which an autorization is revoked */ + msg_type_url?: string; + /** Granter account address */ + granter?: string; + /** Grantee account address */ + grantee?: string; +} +export interface EventRevokeAminoMsg { + type: "cosmos-sdk/EventRevoke"; + value: EventRevokeAmino; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevokeSDKType { + msg_type_url: string; + granter: string; + grantee: string; +} +export declare const EventGrant: { + typeUrl: string; + encode(message: EventGrant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventGrant; + fromPartial(object: Partial): EventGrant; + fromAmino(object: EventGrantAmino): EventGrant; + toAmino(message: EventGrant): EventGrantAmino; + fromAminoMsg(object: EventGrantAminoMsg): EventGrant; + toAminoMsg(message: EventGrant): EventGrantAminoMsg; + fromProtoMsg(message: EventGrantProtoMsg): EventGrant; + toProto(message: EventGrant): Uint8Array; + toProtoMsg(message: EventGrant): EventGrantProtoMsg; +}; +export declare const EventRevoke: { + typeUrl: string; + encode(message: EventRevoke, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke; + fromPartial(object: Partial): EventRevoke; + fromAmino(object: EventRevokeAmino): EventRevoke; + toAmino(message: EventRevoke): EventRevokeAmino; + fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke; + toAminoMsg(message: EventRevoke): EventRevokeAminoMsg; + fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke; + toProto(message: EventRevoke): Uint8Array; + toProtoMsg(message: EventRevoke): EventRevokeProtoMsg; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/event.js b/packages/api/dist/cosmos/authz/v1beta1/event.js new file mode 100644 index 00000000..6968b220 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/event.js @@ -0,0 +1,191 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventRevoke = exports.EventGrant = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseEventGrant() { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +exports.EventGrant = { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventGrant(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventGrant(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return exports.EventGrant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventGrant", + value: exports.EventGrant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventGrant.decode(message.value); + }, + toProto(message) { + return exports.EventGrant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + value: exports.EventGrant.encode(message).finish() + }; + } +}; +function createBaseEventRevoke() { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +exports.EventRevoke = { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRevoke(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRevoke(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return exports.EventRevoke.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventRevoke", + value: exports.EventRevoke.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventRevoke.decode(message.value); + }, + toProto(message) { + return exports.EventRevoke.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + value: exports.EventRevoke.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts new file mode 100644 index 00000000..151a1f5e --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts @@ -0,0 +1,35 @@ +import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisState { + authorization: GrantAuthorization[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisStateAmino { + authorization?: GrantAuthorizationAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisStateSDKType { + authorization: GrantAuthorizationSDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/genesis.js b/packages/api/dist/cosmos/authz/v1beta1/genesis.js new file mode 100644 index 00000000..4f1bdd50 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/genesis.js @@ -0,0 +1,78 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const authz_1 = require("./authz"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + authorization: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.authorization) { + authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.authorization) { + obj.authorization = message.authorization.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.authorization = message.authorization; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.d.ts new file mode 100644 index 00000000..9cb3a425 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.d.ts @@ -0,0 +1,245 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequest { + granter: string; + grantee: string; + /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ + msgTypeUrl: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; + value: Uint8Array; +} +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequestAmino { + granter?: string; + grantee?: string; + /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ + msg_type_url?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGrantsRequest"; + value: QueryGrantsRequestAmino; +} +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequestSDKType { + granter: string; + grantee: string; + msg_type_url: string; + pagination?: PageRequestSDKType; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponse { + /** authorizations is a list of grants granted for grantee by granter. */ + grants: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; + value: Uint8Array; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponseAmino { + /** authorizations is a list of grants granted for grantee by granter. */ + grants?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGrantsResponse"; + value: QueryGrantsResponseAmino; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponseSDKType { + grants: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequest { + granter: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGranterGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; + value: Uint8Array; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequestAmino { + granter?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGranterGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGranterGrantsRequest"; + value: QueryGranterGrantsRequestAmino; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequestSDKType { + granter: string; + pagination?: PageRequestSDKType; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponse { + /** grants is a list of grants granted by the granter. */ + grants: GrantAuthorization[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGranterGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; + value: Uint8Array; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponseAmino { + /** grants is a list of grants granted by the granter. */ + grants?: GrantAuthorizationAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGranterGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGranterGrantsResponse"; + value: QueryGranterGrantsResponseAmino; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponseSDKType { + grants: GrantAuthorizationSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequest { + grantee: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGranteeGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; + value: Uint8Array; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequestAmino { + grantee?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGranteeGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGranteeGrantsRequest"; + value: QueryGranteeGrantsRequestAmino; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequestSDKType { + grantee: string; + pagination?: PageRequestSDKType; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponse { + /** grants is a list of grants granted to the grantee. */ + grants: GrantAuthorization[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGranteeGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; + value: Uint8Array; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponseAmino { + /** grants is a list of grants granted to the grantee. */ + grants?: GrantAuthorizationAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGranteeGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGranteeGrantsResponse"; + value: QueryGranteeGrantsResponseAmino; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponseSDKType { + grants: GrantAuthorizationSDKType[]; + pagination?: PageResponseSDKType; +} +export declare const QueryGrantsRequest: { + typeUrl: string; + encode(message: QueryGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest; + fromPartial(object: Partial): QueryGrantsRequest; + fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest; + toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino; + fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest; + toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg; + fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest; + toProto(message: QueryGrantsRequest): Uint8Array; + toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg; +}; +export declare const QueryGrantsResponse: { + typeUrl: string; + encode(message: QueryGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse; + fromPartial(object: Partial): QueryGrantsResponse; + fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse; + toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino; + fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse; + toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg; + fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse; + toProto(message: QueryGrantsResponse): Uint8Array; + toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg; +}; +export declare const QueryGranterGrantsRequest: { + typeUrl: string; + encode(message: QueryGranterGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest; + fromPartial(object: Partial): QueryGranterGrantsRequest; + fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest; + toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino; + fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest; + toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg; + fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest; + toProto(message: QueryGranterGrantsRequest): Uint8Array; + toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg; +}; +export declare const QueryGranterGrantsResponse: { + typeUrl: string; + encode(message: QueryGranterGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse; + fromPartial(object: Partial): QueryGranterGrantsResponse; + fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse; + toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino; + fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse; + toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg; + fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse; + toProto(message: QueryGranterGrantsResponse): Uint8Array; + toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg; +}; +export declare const QueryGranteeGrantsRequest: { + typeUrl: string; + encode(message: QueryGranteeGrantsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest; + fromPartial(object: Partial): QueryGranteeGrantsRequest; + fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest; + toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino; + fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest; + toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg; + fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest; + toProto(message: QueryGranteeGrantsRequest): Uint8Array; + toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg; +}; +export declare const QueryGranteeGrantsResponse: { + typeUrl: string; + encode(message: QueryGranteeGrantsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse; + fromPartial(object: Partial): QueryGranteeGrantsResponse; + fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse; + toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino; + fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse; + toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg; + fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse; + toProto(message: QueryGranteeGrantsResponse): Uint8Array; + toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.js b/packages/api/dist/cosmos/authz/v1beta1/query.js new file mode 100644 index 00000000..e13462f6 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.js @@ -0,0 +1,526 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryGranteeGrantsResponse = exports.QueryGranteeGrantsRequest = exports.QueryGranterGrantsResponse = exports.QueryGranterGrantsRequest = exports.QueryGrantsResponse = exports.QueryGrantsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const authz_1 = require("./authz"); +const binary_1 = require("../../../binary"); +function createBaseQueryGrantsRequest() { + return { + granter: "", + grantee: "", + msgTypeUrl: "", + pagination: undefined + }; +} +exports.QueryGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + case 4: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGrantsRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGrantsRequest", + value: exports.QueryGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGrantsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + value: exports.QueryGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +exports.QueryGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.grants) { + authz_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(authz_1.Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? authz_1.Grant.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGrantsResponse", + value: exports.QueryGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGrantsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + value: exports.QueryGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsRequest() { + return { + granter: "", + pagination: undefined + }; +} +exports.QueryGranterGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranterGrantsRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranterGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGranterGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranterGrantsRequest", + value: exports.QueryGranterGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGranterGrantsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGranterGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + value: exports.QueryGranterGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +exports.QueryGranterGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.grants) { + authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGranterGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranterGrantsResponse", + value: exports.QueryGranterGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGranterGrantsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGranterGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + value: exports.QueryGranterGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsRequest() { + return { + grantee: "", + pagination: undefined + }; +} +exports.QueryGranteeGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranteeGrantsRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranteeGrantsRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGranteeGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranteeGrantsRequest", + value: exports.QueryGranteeGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGranteeGrantsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGranteeGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + value: exports.QueryGranteeGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +exports.QueryGranteeGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.grants) { + authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGranteeGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranteeGrantsResponse", + value: exports.QueryGranteeGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGranteeGrantsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGranteeGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + value: exports.QueryGranteeGrantsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..9bcb87c9 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts @@ -0,0 +1,11 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + grants(params: QueryGrantsRequest): Promise; + granterGrants(params: QueryGranterGrantsRequest): Promise; + granteeGrants(params: QueryGranteeGrantsRequest): Promise; +} diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js new file mode 100644 index 00000000..cc5e0664 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + /* Returns list of `Authorization`, granted to the grantee by the granter. */ + async grants(params) { + const options = { + params: {} + }; + if (typeof params?.granter !== "undefined") { + options.params.granter = params.granter; + } + if (typeof params?.grantee !== "undefined") { + options.params.grantee = params.grantee; + } + if (typeof params?.msgTypeUrl !== "undefined") { + options.params.msg_type_url = params.msgTypeUrl; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants`; + return await this.req.get(endpoint, options); + } + /* GranterGrants returns list of `GrantAuthorization`, granted by granter. + + Since: cosmos-sdk 0.46 */ + async granterGrants(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; + return await this.req.get(endpoint, options); + } + /* GranteeGrants returns a list of `GrantAuthorization` by grantee. + + Since: cosmos-sdk 0.46 */ + async granteeGrants(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; + return await this.req.get(endpoint, options); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..d7f1381d --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,32 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Returns list of `Authorization`, granted to the grantee by the granter. */ + grants(request: QueryGrantsRequest): Promise; + /** + * GranterGrants returns list of `GrantAuthorization`, granted by granter. + * + * Since: cosmos-sdk 0.46 + */ + granterGrants(request: QueryGranterGrantsRequest): Promise; + /** + * GranteeGrants returns a list of `GrantAuthorization` by grantee. + * + * Since: cosmos-sdk 0.46 + */ + granteeGrants(request: QueryGranteeGrantsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + grants(request: QueryGrantsRequest): Promise; + granterGrants(request: QueryGranterGrantsRequest): Promise; + granteeGrants(request: QueryGranteeGrantsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + grants(request: QueryGrantsRequest): Promise; + granterGrants(request: QueryGranterGrantsRequest): Promise; + granteeGrants(request: QueryGranteeGrantsRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..67a81636 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + grants(request) { + const data = query_1.QueryGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); + return promise.then(data => query_1.QueryGrantsResponse.decode(new binary_1.BinaryReader(data))); + } + granterGrants(request) { + const data = query_1.QueryGranterGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); + return promise.then(data => query_1.QueryGranterGrantsResponse.decode(new binary_1.BinaryReader(data))); + } + granteeGrants(request) { + const data = query_1.QueryGranteeGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); + return promise.then(data => query_1.QueryGranteeGrantsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + grants(request) { + return queryService.grants(request); + }, + granterGrants(request) { + return queryService.granterGrants(request); + }, + granteeGrants(request) { + return queryService.granteeGrants(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..6f44ab84 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts @@ -0,0 +1,18 @@ +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export declare const AminoConverter: { + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: string; + toAmino: (message: MsgGrant) => import("./tx").MsgGrantAmino; + fromAmino: (object: import("./tx").MsgGrantAmino) => MsgGrant; + }; + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: string; + toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; + fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; + }; + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: string; + toAmino: (message: MsgRevoke) => import("./tx").MsgRevokeAmino; + fromAmino: (object: import("./tx").MsgRevokeAmino) => MsgRevoke; + }; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js new file mode 100644 index 00000000..989cb26a --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: "cosmos-sdk/MsgGrant", + toAmino: tx_1.MsgGrant.toAmino, + fromAmino: tx_1.MsgGrant.fromAmino + }, + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: "cosmos-sdk/MsgExec", + toAmino: tx_1.MsgExec.toAmino, + fromAmino: tx_1.MsgExec.fromAmino + }, + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: "cosmos-sdk/MsgRevoke", + toAmino: tx_1.MsgRevoke.toAmino, + fromAmino: tx_1.MsgRevoke.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts new file mode 100644 index 00000000..780be4c1 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts @@ -0,0 +1,264 @@ +import { Grant, GrantAmino, GrantSDKType } from "./authz"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrant { + granter: string; + grantee: string; + grant: Grant; +} +export interface MsgGrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; + value: Uint8Array; +} +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrantAmino { + granter?: string; + grantee?: string; + grant?: GrantAmino; +} +export interface MsgGrantAminoMsg { + type: "cosmos-sdk/MsgGrant"; + value: MsgGrantAmino; +} +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrantSDKType { + granter: string; + grantee: string; + grant: GrantSDKType; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponse { + results: Uint8Array[]; +} +export interface MsgExecResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; + value: Uint8Array; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponseAmino { + results?: string[]; +} +export interface MsgExecResponseAminoMsg { + type: "cosmos-sdk/MsgExecResponse"; + value: MsgExecResponseAmino; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponseSDKType { + results: Uint8Array[]; +} +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExec { + grantee: string; + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs: (Any)[] | Any[]; +} +export interface MsgExecProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgExec"; + value: Uint8Array; +} +export type MsgExecEncoded = Omit & { + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs: (AnyProtoMsg)[]; +}; +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExecAmino { + grantee?: string; + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs?: AnyAmino[]; +} +export interface MsgExecAminoMsg { + type: "cosmos-sdk/MsgExec"; + value: MsgExecAmino; +} +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExecSDKType { + grantee: string; + msgs: (AnySDKType)[]; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponse { +} +export interface MsgGrantResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; + value: Uint8Array; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponseAmino { +} +export interface MsgGrantResponseAminoMsg { + type: "cosmos-sdk/MsgGrantResponse"; + value: MsgGrantResponseAmino; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponseSDKType { +} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevoke { + granter: string; + grantee: string; + msgTypeUrl: string; +} +export interface MsgRevokeProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; + value: Uint8Array; +} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevokeAmino { + granter?: string; + grantee?: string; + msg_type_url?: string; +} +export interface MsgRevokeAminoMsg { + type: "cosmos-sdk/MsgRevoke"; + value: MsgRevokeAmino; +} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevokeSDKType { + granter: string; + grantee: string; + msg_type_url: string; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponse { +} +export interface MsgRevokeResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; + value: Uint8Array; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponseAmino { +} +export interface MsgRevokeResponseAminoMsg { + type: "cosmos-sdk/MsgRevokeResponse"; + value: MsgRevokeResponseAmino; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponseSDKType { +} +export declare const MsgGrant: { + typeUrl: string; + encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; + fromPartial(object: Partial): MsgGrant; + fromAmino(object: MsgGrantAmino): MsgGrant; + toAmino(message: MsgGrant): MsgGrantAmino; + fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant; + toAminoMsg(message: MsgGrant): MsgGrantAminoMsg; + fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant; + toProto(message: MsgGrant): Uint8Array; + toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; +}; +export declare const MsgExecResponse: { + typeUrl: string; + encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; + fromPartial(object: Partial): MsgExecResponse; + fromAmino(object: MsgExecResponseAmino): MsgExecResponse; + toAmino(message: MsgExecResponse): MsgExecResponseAmino; + fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; + toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; + fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; + toProto(message: MsgExecResponse): Uint8Array; + toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; +}; +export declare const MsgExec: { + typeUrl: string; + encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; + fromPartial(object: Partial): MsgExec; + fromAmino(object: MsgExecAmino): MsgExec; + toAmino(message: MsgExec): MsgExecAmino; + fromAminoMsg(object: MsgExecAminoMsg): MsgExec; + toAminoMsg(message: MsgExec): MsgExecAminoMsg; + fromProtoMsg(message: MsgExecProtoMsg): MsgExec; + toProto(message: MsgExec): Uint8Array; + toProtoMsg(message: MsgExec): MsgExecProtoMsg; +}; +export declare const MsgGrantResponse: { + typeUrl: string; + encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; + fromPartial(_: Partial): MsgGrantResponse; + fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse; + toAmino(_: MsgGrantResponse): MsgGrantResponseAmino; + fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse; + toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg; + fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse; + toProto(message: MsgGrantResponse): Uint8Array; + toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg; +}; +export declare const MsgRevoke: { + typeUrl: string; + encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; + fromPartial(object: Partial): MsgRevoke; + fromAmino(object: MsgRevokeAmino): MsgRevoke; + toAmino(message: MsgRevoke): MsgRevokeAmino; + fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke; + toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg; + fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke; + toProto(message: MsgRevoke): Uint8Array; + toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg; +}; +export declare const MsgRevokeResponse: { + typeUrl: string; + encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; + fromPartial(_: Partial): MsgRevokeResponse; + fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse; + toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino; + fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse; + toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg; + fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse; + toProto(message: MsgRevokeResponse): Uint8Array; + toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg; +}; +export declare const Sdk_Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Sdk_Msg_FromAmino: (content: AnyAmino) => Any; +export declare const Sdk_Msg_ToAmino: (content: Any) => AnyAmino; +export declare const Authz_Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Authz_Authorization_FromAmino: (content: AnyAmino) => Any; +export declare const Authz_Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.js b/packages/api/dist/cosmos/authz/v1beta1/tx.js new file mode 100644 index 00000000..659b0ddb --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.js @@ -0,0 +1,496 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Authz_Authorization_ToAmino = exports.Authz_Authorization_FromAmino = exports.Authz_Authorization_InterfaceDecoder = exports.Sdk_Msg_ToAmino = exports.Sdk_Msg_FromAmino = exports.Sdk_Msg_InterfaceDecoder = exports.MsgRevokeResponse = exports.MsgRevoke = exports.MsgGrantResponse = exports.MsgExec = exports.MsgExecResponse = exports.MsgGrant = void 0; +//@ts-nocheck +const authz_1 = require("./authz"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseMsgGrant() { + return { + granter: "", + grantee: "", + grant: authz_1.Grant.fromPartial({}) + }; +} +exports.MsgGrant = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.grant !== undefined) { + authz_1.Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.grant = authz_1.Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.grant = object.grant !== undefined && object.grant !== null ? authz_1.Grant.fromPartial(object.grant) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.grant !== undefined && object.grant !== null) { + message.grant = authz_1.Grant.fromAmino(object.grant); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.grant = message.grant ? authz_1.Grant.toAmino(message.grant) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgGrant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrant", + value: exports.MsgGrant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgGrant.decode(message.value); + }, + toProto(message) { + return exports.MsgGrant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: exports.MsgGrant.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse() { + return { + results: [] + }; +} +exports.MsgExecResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.results) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.results.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.results) { + obj.results = message.results.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.results = message.results; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExecResponse", + value: exports.MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExecResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + value: exports.MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec() { + return { + grantee: "", + msgs: [] + }; +} +exports.MsgExec = { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + for (const v of message.msgs) { + any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.msgs.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExec(); + message.grantee = object.grantee ?? ""; + message.msgs = object.msgs?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExec(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino(e) : undefined); + } + else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExec", + value: exports.MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExec.decode(message.value); + }, + toProto(message) { + return exports.MsgExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: exports.MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgGrantResponse() { + return {}; +} +exports.MsgGrantResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgGrantResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgGrantResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgGrantResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantResponse", + value: exports.MsgGrantResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgGrantResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgGrantResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + value: exports.MsgGrantResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevoke() { + return { + granter: "", + grantee: "", + msgTypeUrl: "" + }; +} +exports.MsgRevoke = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRevoke(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRevoke(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRevoke.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevoke", + value: exports.MsgRevoke.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRevoke.decode(message.value); + }, + toProto(message) { + return exports.MsgRevoke.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: exports.MsgRevoke.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeResponse() { + return {}; +} +exports.MsgRevokeResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRevokeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRevokeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRevokeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeResponse", + value: exports.MsgRevokeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRevokeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRevokeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + value: exports.MsgRevokeResponse.encode(message).finish() + }; + } +}; +const Sdk_Msg_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +exports.Sdk_Msg_InterfaceDecoder = Sdk_Msg_InterfaceDecoder; +const Sdk_Msg_FromAmino = (content) => { + return any_1.Any.fromAmino(content); +}; +exports.Sdk_Msg_FromAmino = Sdk_Msg_FromAmino; +const Sdk_Msg_ToAmino = (content) => { + return any_1.Any.toAmino(content); +}; +exports.Sdk_Msg_ToAmino = Sdk_Msg_ToAmino; +const Authz_Authorization_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +exports.Authz_Authorization_InterfaceDecoder = Authz_Authorization_InterfaceDecoder; +const Authz_Authorization_FromAmino = (content) => { + return any_1.Any.fromAmino(content); +}; +exports.Authz_Authorization_FromAmino = Authz_Authorization_FromAmino; +const Authz_Authorization_ToAmino = (content) => { + return any_1.Any.toAmino(content); +}; +exports.Authz_Authorization_ToAmino = Authz_Authorization_ToAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..89f1ec22 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts @@ -0,0 +1,48 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + grant(value: MsgGrant): { + typeUrl: string; + value: Uint8Array; + }; + exec(value: MsgExec): { + typeUrl: string; + value: Uint8Array; + }; + revoke(value: MsgRevoke): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + grant(value: MsgGrant): { + typeUrl: string; + value: MsgGrant; + }; + exec(value: MsgExec): { + typeUrl: string; + value: MsgExec; + }; + revoke(value: MsgRevoke): { + typeUrl: string; + value: MsgRevoke; + }; + }; + fromPartial: { + grant(value: MsgGrant): { + typeUrl: string; + value: MsgGrant; + }; + exec(value: MsgExec): { + typeUrl: string; + value: MsgExec; + }; + revoke(value: MsgRevoke): { + typeUrl: string; + value: MsgRevoke; + }; + }; +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js new file mode 100644 index 00000000..14757f7f --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.authz.v1beta1.MsgGrant", tx_1.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", tx_1.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", tx_1.MsgRevoke]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: tx_1.MsgGrant.encode(value).finish() + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: tx_1.MsgExec.encode(value).finish() + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: tx_1.MsgRevoke.encode(value).finish() + }; + } + }, + withTypeUrl: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value + }; + } + }, + fromPartial: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: tx_1.MsgGrant.fromPartial(value) + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: tx_1.MsgExec.fromPartial(value) + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: tx_1.MsgRevoke.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..3bcce35a --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,30 @@ +import { Rpc } from "../../../helpers"; +import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; +/** Msg defines the authz Msg service. */ +export interface Msg { + /** + * Grant grants the provided authorization to the grantee on the granter's + * account with the provided expiration time. If there is already a grant + * for the given (granter, grantee, Authorization) triple, then the grant + * will be overwritten. + */ + grant(request: MsgGrant): Promise; + /** + * Exec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ + exec(request: MsgExec): Promise; + /** + * Revoke revokes any authorization corresponding to the provided method name on the + * granter's account that has been granted to the grantee. + */ + revoke(request: MsgRevoke): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + grant(request: MsgGrant): Promise; + exec(request: MsgExec): Promise; + revoke(request: MsgRevoke): Promise; +} diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..6201b242 --- /dev/null +++ b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grant = this.grant.bind(this); + this.exec = this.exec.bind(this); + this.revoke = this.revoke.bind(this); + } + grant(request) { + const data = tx_1.MsgGrant.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); + return promise.then(data => tx_1.MsgGrantResponse.decode(new binary_1.BinaryReader(data))); + } + exec(request) { + const data = tx_1.MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); + return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data))); + } + revoke(request) { + const data = tx_1.MsgRevoke.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); + return promise.then(data => tx_1.MsgRevokeResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts b/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts new file mode 100644 index 00000000..57c74f21 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts @@ -0,0 +1,52 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorization { + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; + spendLimit: Coin[]; +} +export interface SendAuthorizationProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; + value: Uint8Array; +} +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorizationAmino { + spend_limit?: CoinAmino[]; +} +export interface SendAuthorizationAminoMsg { + type: "cosmos-sdk/SendAuthorization"; + value: SendAuthorizationAmino; +} +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorizationSDKType { + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; + spend_limit: CoinSDKType[]; +} +export declare const SendAuthorization: { + typeUrl: string; + encode(message: SendAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization; + fromPartial(object: Partial): SendAuthorization; + fromAmino(object: SendAuthorizationAmino): SendAuthorization; + toAmino(message: SendAuthorization): SendAuthorizationAmino; + fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization; + toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg; + fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization; + toProto(message: SendAuthorization): Uint8Array; + toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/authz.js b/packages/api/dist/cosmos/bank/v1beta1/authz.js new file mode 100644 index 00000000..afcb844d --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/authz.js @@ -0,0 +1,79 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SendAuthorization = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseSendAuthorization() { + return { + $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + spendLimit: [] + }; +} +exports.SendAuthorization = { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.spendLimit) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.spend_limit = message.spendLimit; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SendAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SendAuthorization", + value: exports.SendAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SendAuthorization.decode(message.value); + }, + toProto(message) { + return exports.SendAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: exports.SendAuthorization.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts b/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts new file mode 100644 index 00000000..486263e6 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts @@ -0,0 +1,390 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Params defines the parameters for the bank module. */ +export interface Params { + sendEnabled: SendEnabled[]; + defaultSendEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the bank module. */ +export interface ParamsAmino { + send_enabled?: SendEnabledAmino[]; + default_send_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the bank module. */ +export interface ParamsSDKType { + send_enabled: SendEnabledSDKType[]; + default_send_enabled: boolean; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabled { + denom: string; + enabled: boolean; +} +export interface SendEnabledProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; + value: Uint8Array; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabledAmino { + denom?: string; + enabled?: boolean; +} +export interface SendEnabledAminoMsg { + type: "cosmos-sdk/SendEnabled"; + value: SendEnabledAmino; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabledSDKType { + denom: string; + enabled: boolean; +} +/** Input models transaction input. */ +export interface Input { + address: string; + coins: Coin[]; +} +export interface InputProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Input"; + value: Uint8Array; +} +/** Input models transaction input. */ +export interface InputAmino { + address?: string; + coins?: CoinAmino[]; +} +export interface InputAminoMsg { + type: "cosmos-sdk/Input"; + value: InputAmino; +} +/** Input models transaction input. */ +export interface InputSDKType { + address: string; + coins: CoinSDKType[]; +} +/** Output models transaction outputs. */ +export interface Output { + address: string; + coins: Coin[]; +} +export interface OutputProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Output"; + value: Uint8Array; +} +/** Output models transaction outputs. */ +export interface OutputAmino { + address?: string; + coins?: CoinAmino[]; +} +export interface OutputAminoMsg { + type: "cosmos-sdk/Output"; + value: OutputAmino; +} +/** Output models transaction outputs. */ +export interface OutputSDKType { + address: string; + coins: CoinSDKType[]; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface Supply { + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; + total: Coin[]; +} +export interface SupplyProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Supply"; + value: Uint8Array; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface SupplyAmino { + total?: CoinAmino[]; +} +export interface SupplyAminoMsg { + type: "cosmos-sdk/Supply"; + value: SupplyAmino; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface SupplySDKType { + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; + total: CoinSDKType[]; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnit { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 10^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + */ + exponent: number; + /** aliases is a list of string aliases for the given denom */ + aliases: string[]; +} +export interface DenomUnitProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; + value: Uint8Array; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnitAmino { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 10^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; +} +export interface DenomUnitAminoMsg { + type: "cosmos-sdk/DenomUnit"; + value: DenomUnitAmino; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnitSDKType { + denom: string; + exponent: number; + aliases: string[]; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface Metadata { + description: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denomUnits: DenomUnit[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display: string; + /** + * name defines the name of the token (eg: Cosmos Atom) + * + * Since: cosmos-sdk 0.43 + */ + name: string; + /** + * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + * be the same as the display. + * + * Since: cosmos-sdk 0.43 + */ + symbol: string; + /** + * URI to a document (on or off-chain) that contains additional information. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri: string; + /** + * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + * the document didn't change. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uriHash: string; +} +export interface MetadataProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Metadata"; + value: Uint8Array; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface MetadataAmino { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: DenomUnitAmino[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + /** + * name defines the name of the token (eg: Cosmos Atom) + * + * Since: cosmos-sdk 0.43 + */ + name?: string; + /** + * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + * be the same as the display. + * + * Since: cosmos-sdk 0.43 + */ + symbol?: string; + /** + * URI to a document (on or off-chain) that contains additional information. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri?: string; + /** + * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + * the document didn't change. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri_hash?: string; +} +export interface MetadataAminoMsg { + type: "cosmos-sdk/Metadata"; + value: MetadataAmino; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface MetadataSDKType { + description: string; + denom_units: DenomUnitSDKType[]; + base: string; + display: string; + name: string; + symbol: string; + uri: string; + uri_hash: string; +} +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; +export declare const SendEnabled: { + typeUrl: string; + encode(message: SendEnabled, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled; + fromPartial(object: Partial): SendEnabled; + fromAmino(object: SendEnabledAmino): SendEnabled; + toAmino(message: SendEnabled): SendEnabledAmino; + fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled; + toAminoMsg(message: SendEnabled): SendEnabledAminoMsg; + fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled; + toProto(message: SendEnabled): Uint8Array; + toProtoMsg(message: SendEnabled): SendEnabledProtoMsg; +}; +export declare const Input: { + typeUrl: string; + encode(message: Input, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Input; + fromPartial(object: Partial): Input; + fromAmino(object: InputAmino): Input; + toAmino(message: Input): InputAmino; + fromAminoMsg(object: InputAminoMsg): Input; + toAminoMsg(message: Input): InputAminoMsg; + fromProtoMsg(message: InputProtoMsg): Input; + toProto(message: Input): Uint8Array; + toProtoMsg(message: Input): InputProtoMsg; +}; +export declare const Output: { + typeUrl: string; + encode(message: Output, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Output; + fromPartial(object: Partial): Output; + fromAmino(object: OutputAmino): Output; + toAmino(message: Output): OutputAmino; + fromAminoMsg(object: OutputAminoMsg): Output; + toAminoMsg(message: Output): OutputAminoMsg; + fromProtoMsg(message: OutputProtoMsg): Output; + toProto(message: Output): Uint8Array; + toProtoMsg(message: Output): OutputProtoMsg; +}; +export declare const Supply: { + typeUrl: string; + encode(message: Supply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Supply; + fromPartial(object: Partial): Supply; + fromAmino(object: SupplyAmino): Supply; + toAmino(message: Supply): SupplyAmino; + fromAminoMsg(object: SupplyAminoMsg): Supply; + toAminoMsg(message: Supply): SupplyAminoMsg; + fromProtoMsg(message: SupplyProtoMsg): Supply; + toProto(message: Supply): Uint8Array; + toProtoMsg(message: Supply): SupplyProtoMsg; +}; +export declare const DenomUnit: { + typeUrl: string; + encode(message: DenomUnit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit; + fromPartial(object: Partial): DenomUnit; + fromAmino(object: DenomUnitAmino): DenomUnit; + toAmino(message: DenomUnit): DenomUnitAmino; + fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit; + toAminoMsg(message: DenomUnit): DenomUnitAminoMsg; + fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit; + toProto(message: DenomUnit): Uint8Array; + toProtoMsg(message: DenomUnit): DenomUnitProtoMsg; +}; +export declare const Metadata: { + typeUrl: string; + encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Metadata; + fromPartial(object: Partial): Metadata; + fromAmino(object: MetadataAmino): Metadata; + toAmino(message: Metadata): MetadataAmino; + fromAminoMsg(object: MetadataAminoMsg): Metadata; + toAminoMsg(message: Metadata): MetadataAminoMsg; + fromProtoMsg(message: MetadataProtoMsg): Metadata; + toProto(message: Metadata): Uint8Array; + toProtoMsg(message: Metadata): MetadataProtoMsg; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/bank.js b/packages/api/dist/cosmos/bank/v1beta1/bank.js new file mode 100644 index 00000000..02a17206 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/bank.js @@ -0,0 +1,664 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Metadata = exports.DenomUnit = exports.Supply = exports.Output = exports.Input = exports.SendEnabled = exports.Params = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseParams() { + return { + sendEnabled: [], + defaultSendEnabled: false + }; +} +exports.Params = { + typeUrl: "/cosmos.bank.v1beta1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.sendEnabled) { + exports.SendEnabled.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultSendEnabled === true) { + writer.uint32(16).bool(message.defaultSendEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled.push(exports.SendEnabled.decode(reader, reader.uint32())); + break; + case 2: + message.defaultSendEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled?.map(e => exports.SendEnabled.fromPartial(e)) || []; + message.defaultSendEnabled = object.defaultSendEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.sendEnabled = object.send_enabled?.map(e => exports.SendEnabled.fromAmino(e)) || []; + if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { + message.defaultSendEnabled = object.default_send_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sendEnabled) { + obj.send_enabled = message.sendEnabled.map(e => e ? exports.SendEnabled.toAmino(e) : undefined); + } + else { + obj.send_enabled = message.sendEnabled; + } + obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; +function createBaseSendEnabled() { + return { + denom: "", + enabled: false + }; +} +exports.SendEnabled = { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendEnabled(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSendEnabled(); + message.denom = object.denom ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSendEnabled(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return exports.SendEnabled.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SendEnabled", + value: exports.SendEnabled.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SendEnabled.decode(message.value); + }, + toProto(message) { + return exports.SendEnabled.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + value: exports.SendEnabled.encode(message).finish() + }; + } +}; +function createBaseInput() { + return { + address: "", + coins: [] + }; +} +exports.Input = { + typeUrl: "/cosmos.bank.v1beta1.Input", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Input.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Input", + value: exports.Input.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Input.decode(message.value); + }, + toProto(message) { + return exports.Input.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Input", + value: exports.Input.encode(message).finish() + }; + } +}; +function createBaseOutput() { + return { + address: "", + coins: [] + }; +} +exports.Output = { + typeUrl: "/cosmos.bank.v1beta1.Output", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOutput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOutput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseOutput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Output.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Output", + value: exports.Output.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Output.decode(message.value); + }, + toProto(message) { + return exports.Output.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Output", + value: exports.Output.encode(message).finish() + }; + } +}; +function createBaseSupply() { + return { + $typeUrl: "/cosmos.bank.v1beta1.Supply", + total: [] + }; +} +exports.Supply = { + typeUrl: "/cosmos.bank.v1beta1.Supply", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.total) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSupply(); + message.total = object.total?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSupply(); + message.total = object.total?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.total) { + obj.total = message.total.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Supply.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Supply", + value: exports.Supply.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Supply.decode(message.value); + }, + toProto(message) { + return exports.Supply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Supply", + value: exports.Supply.encode(message).finish() + }; + } +}; +function createBaseDenomUnit() { + return { + denom: "", + exponent: 0, + aliases: [] + }; +} +exports.DenomUnit = { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.exponent !== 0) { + writer.uint32(16).uint32(message.exponent); + } + for (const v of message.aliases) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomUnit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.exponent = reader.uint32(); + break; + case 3: + message.aliases.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomUnit(); + message.denom = object.denom ?? ""; + message.exponent = object.exponent ?? 0; + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDenomUnit(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + if (message.aliases) { + obj.aliases = message.aliases.map(e => e); + } + else { + obj.aliases = message.aliases; + } + return obj; + }, + fromAminoMsg(object) { + return exports.DenomUnit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomUnit", + value: exports.DenomUnit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DenomUnit.decode(message.value); + }, + toProto(message) { + return exports.DenomUnit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + value: exports.DenomUnit.encode(message).finish() + }; + } +}; +function createBaseMetadata() { + return { + description: "", + denomUnits: [], + base: "", + display: "", + name: "", + symbol: "", + uri: "", + uriHash: "" + }; +} +exports.Metadata = { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.description !== "") { + writer.uint32(10).string(message.description); + } + for (const v of message.denomUnits) { + exports.DenomUnit.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.base !== "") { + writer.uint32(26).string(message.base); + } + if (message.display !== "") { + writer.uint32(34).string(message.display); + } + if (message.name !== "") { + writer.uint32(42).string(message.name); + } + if (message.symbol !== "") { + writer.uint32(50).string(message.symbol); + } + if (message.uri !== "") { + writer.uint32(58).string(message.uri); + } + if (message.uriHash !== "") { + writer.uint32(66).string(message.uriHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + message.denomUnits.push(exports.DenomUnit.decode(reader, reader.uint32())); + break; + case 3: + message.base = reader.string(); + break; + case 4: + message.display = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + case 6: + message.symbol = reader.string(); + break; + case 7: + message.uri = reader.string(); + break; + case 8: + message.uriHash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMetadata(); + message.description = object.description ?? ""; + message.denomUnits = object.denomUnits?.map(e => exports.DenomUnit.fromPartial(e)) || []; + message.base = object.base ?? ""; + message.display = object.display ?? ""; + message.name = object.name ?? ""; + message.symbol = object.symbol ?? ""; + message.uri = object.uri ?? ""; + message.uriHash = object.uriHash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMetadata(); + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.denomUnits = object.denom_units?.map(e => exports.DenomUnit.fromAmino(e)) || []; + if (object.base !== undefined && object.base !== null) { + message.base = object.base; + } + if (object.display !== undefined && object.display !== null) { + message.display = object.display; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.symbol !== undefined && object.symbol !== null) { + message.symbol = object.symbol; + } + if (object.uri !== undefined && object.uri !== null) { + message.uri = object.uri; + } + if (object.uri_hash !== undefined && object.uri_hash !== null) { + message.uriHash = object.uri_hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description === "" ? undefined : message.description; + if (message.denomUnits) { + obj.denom_units = message.denomUnits.map(e => e ? exports.DenomUnit.toAmino(e) : undefined); + } + else { + obj.denom_units = message.denomUnits; + } + obj.base = message.base === "" ? undefined : message.base; + obj.display = message.display === "" ? undefined : message.display; + obj.name = message.name === "" ? undefined : message.name; + obj.symbol = message.symbol === "" ? undefined : message.symbol; + obj.uri = message.uri === "" ? undefined : message.uri; + obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; + return obj; + }, + fromAminoMsg(object) { + return exports.Metadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Metadata", + value: exports.Metadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Metadata.decode(message.value); + }, + toProto(message) { + return exports.Metadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + value: exports.Metadata.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts new file mode 100644 index 00000000..4e37ee81 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts @@ -0,0 +1,108 @@ +import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** balances is an array containing the balances of all the accounts. */ + balances: Balance[]; + /** + * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + */ + supply: Coin[]; + /** denom_metadata defines the metadata of the differents coins. */ + denomMetadata: Metadata[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** balances is an array containing the balances of all the accounts. */ + balances?: BalanceAmino[]; + /** + * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + */ + supply?: CoinAmino[]; + /** denom_metadata defines the metadata of the differents coins. */ + denom_metadata?: MetadataAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + balances: BalanceSDKType[]; + supply: CoinSDKType[]; + denom_metadata: MetadataSDKType[]; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface Balance { + /** address is the address of the balance holder. */ + address: string; + /** coins defines the different coins this balance holds. */ + coins: Coin[]; +} +export interface BalanceProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Balance"; + value: Uint8Array; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface BalanceAmino { + /** address is the address of the balance holder. */ + address?: string; + /** coins defines the different coins this balance holds. */ + coins?: CoinAmino[]; +} +export interface BalanceAminoMsg { + type: "cosmos-sdk/Balance"; + value: BalanceAmino; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface BalanceSDKType { + address: string; + coins: CoinSDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; +export declare const Balance: { + typeUrl: string; + encode(message: Balance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Balance; + fromPartial(object: Partial): Balance; + fromAmino(object: BalanceAmino): Balance; + toAmino(message: Balance): BalanceAmino; + fromAminoMsg(object: BalanceAminoMsg): Balance; + toAminoMsg(message: Balance): BalanceAminoMsg; + fromProtoMsg(message: BalanceProtoMsg): Balance; + toProto(message: Balance): Uint8Array; + toProtoMsg(message: Balance): BalanceProtoMsg; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/genesis.js b/packages/api/dist/cosmos/bank/v1beta1/genesis.js new file mode 100644 index 00000000..d5ca9ae9 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/genesis.js @@ -0,0 +1,205 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Balance = exports.GenesisState = void 0; +//@ts-nocheck +const bank_1 = require("./bank"); +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + params: bank_1.Params.fromPartial({}), + balances: [], + supply: [], + denomMetadata: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + bank_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.balances) { + exports.Balance.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.supply) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.denomMetadata) { + bank_1.Metadata.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = bank_1.Params.decode(reader, reader.uint32()); + break; + case 2: + message.balances.push(exports.Balance.decode(reader, reader.uint32())); + break; + case 3: + message.supply.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 4: + message.denomMetadata.push(bank_1.Metadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? bank_1.Params.fromPartial(object.params) : undefined; + message.balances = object.balances?.map(e => exports.Balance.fromPartial(e)) || []; + message.supply = object.supply?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.denomMetadata = object.denomMetadata?.map(e => bank_1.Metadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = bank_1.Params.fromAmino(object.params); + } + message.balances = object.balances?.map(e => exports.Balance.fromAmino(e)) || []; + message.supply = object.supply?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.denomMetadata = object.denom_metadata?.map(e => bank_1.Metadata.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? bank_1.Params.toAmino(message.params) : undefined; + if (message.balances) { + obj.balances = message.balances.map(e => e ? exports.Balance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + if (message.supply) { + obj.supply = message.supply.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.supply = message.supply; + } + if (message.denomMetadata) { + obj.denom_metadata = message.denomMetadata.map(e => e ? bank_1.Metadata.toAmino(e) : undefined); + } + else { + obj.denom_metadata = message.denomMetadata; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance() { + return { + address: "", + coins: [] + }; +} +exports.Balance = { + typeUrl: "/cosmos.bank.v1beta1.Balance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Balance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Balance", + value: exports.Balance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Balance.decode(message.value); + }, + toProto(message) { + return exports.Balance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Balance", + value: exports.Balance.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.d.ts new file mode 100644 index 00000000..f85c6c21 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.d.ts @@ -0,0 +1,843 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequest { + /** address is the address to query balances for. */ + address: string; + /** denom is the coin denom to query balances for. */ + denom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequestAmino { + /** address is the address to query balances for. */ + address?: string; + /** denom is the coin denom to query balances for. */ + denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "cosmos-sdk/QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequestSDKType { + address: string; + denom: string; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponse { + /** balance is the balance of the coin. */ + balance?: Coin; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponseAmino { + /** balance is the balance of the coin. */ + balance?: CoinAmino; +} +export interface QueryBalanceResponseAminoMsg { + type: "cosmos-sdk/QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponseSDKType { + balance?: CoinSDKType; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequest { + /** address is the address to query balances for. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllBalancesRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequestAmino { + /** address is the address to query balances for. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllBalancesRequestAminoMsg { + type: "cosmos-sdk/QueryAllBalancesRequest"; + value: QueryAllBalancesRequestAmino; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponse { + /** balances is the balances of all the coins. */ + balances: Coin[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllBalancesResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; + value: Uint8Array; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponseAmino { + /** balances is the balances of all the coins. */ + balances?: CoinAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllBalancesResponseAminoMsg { + type: "cosmos-sdk/QueryAllBalancesResponse"; + value: QueryAllBalancesResponseAmino; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponseSDKType { + balances: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequest { + /** address is the address to query spendable balances for. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySpendableBalancesRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; + value: Uint8Array; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequestAmino { + /** address is the address to query spendable balances for. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySpendableBalancesRequestAminoMsg { + type: "cosmos-sdk/QuerySpendableBalancesRequest"; + value: QuerySpendableBalancesRequestAmino; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponse { + /** balances is the spendable balances of all the coins. */ + balances: Coin[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QuerySpendableBalancesResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; + value: Uint8Array; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponseAmino { + /** balances is the spendable balances of all the coins. */ + balances?: CoinAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySpendableBalancesResponseAminoMsg { + type: "cosmos-sdk/QuerySpendableBalancesResponse"; + value: QuerySpendableBalancesResponseAmino; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponseSDKType { + balances: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequest { + /** + * pagination defines an optional pagination for the request. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageRequest; +} +export interface QueryTotalSupplyRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; + value: Uint8Array; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequestAmino { + /** + * pagination defines an optional pagination for the request. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageRequestAmino; +} +export interface QueryTotalSupplyRequestAminoMsg { + type: "cosmos-sdk/QueryTotalSupplyRequest"; + value: QueryTotalSupplyRequestAmino; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponse { + /** supply is the supply of the coins */ + supply: Coin[]; + /** + * pagination defines the pagination in the response. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageResponse; +} +export interface QueryTotalSupplyResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; + value: Uint8Array; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponseAmino { + /** supply is the supply of the coins */ + supply?: CoinAmino[]; + /** + * pagination defines the pagination in the response. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageResponseAmino; +} +export interface QueryTotalSupplyResponseAminoMsg { + type: "cosmos-sdk/QueryTotalSupplyResponse"; + value: QueryTotalSupplyResponseAmino; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponseSDKType { + supply: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequest { + /** denom is the coin denom to query balances for. */ + denom: string; +} +export interface QuerySupplyOfRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; + value: Uint8Array; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequestAmino { + /** denom is the coin denom to query balances for. */ + denom?: string; +} +export interface QuerySupplyOfRequestAminoMsg { + type: "cosmos-sdk/QuerySupplyOfRequest"; + value: QuerySupplyOfRequestAmino; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequestSDKType { + denom: string; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponse { + /** amount is the supply of the coin. */ + amount: Coin; +} +export interface QuerySupplyOfResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; + value: Uint8Array; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponseAmino { + /** amount is the supply of the coin. */ + amount?: CoinAmino; +} +export interface QuerySupplyOfResponseAminoMsg { + type: "cosmos-sdk/QuerySupplyOfResponse"; + value: QuerySupplyOfResponseAmino; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponseSDKType { + amount: CoinSDKType; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponse { + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponseAmino { + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomsMetadataRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; + value: Uint8Array; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomsMetadataRequestAminoMsg { + type: "cosmos-sdk/QueryDenomsMetadataRequest"; + value: QueryDenomsMetadataRequestAmino; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponse { + /** metadata provides the client information for all the registered tokens. */ + metadatas: Metadata[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomsMetadataResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; + value: Uint8Array; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponseAmino { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: MetadataAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomsMetadataResponseAminoMsg { + type: "cosmos-sdk/QueryDenomsMetadataResponse"; + value: QueryDenomsMetadataResponseAmino; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponseSDKType { + metadatas: MetadataSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequest { + /** denom is the coin denom to query the metadata for. */ + denom: string; +} +export interface QueryDenomMetadataRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; + value: Uint8Array; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequestAmino { + /** denom is the coin denom to query the metadata for. */ + denom?: string; +} +export interface QueryDenomMetadataRequestAminoMsg { + type: "cosmos-sdk/QueryDenomMetadataRequest"; + value: QueryDenomMetadataRequestAmino; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequestSDKType { + denom: string; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponse { + /** metadata describes and provides all the client information for the requested token. */ + metadata: Metadata; +} +export interface QueryDenomMetadataResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; + value: Uint8Array; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponseAmino { + /** metadata describes and provides all the client information for the requested token. */ + metadata?: MetadataAmino; +} +export interface QueryDenomMetadataResponseAminoMsg { + type: "cosmos-sdk/QueryDenomMetadataResponse"; + value: QueryDenomMetadataResponseAmino; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponseSDKType { + metadata: MetadataSDKType; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequest { + /** denom defines the coin denomination to query all account holders for. */ + denom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomOwnersRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; + value: Uint8Array; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequestAmino { + /** denom defines the coin denomination to query all account holders for. */ + denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomOwnersRequestAminoMsg { + type: "cosmos-sdk/QueryDenomOwnersRequest"; + value: QueryDenomOwnersRequestAmino; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequestSDKType { + denom: string; + pagination?: PageRequestSDKType; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwner { + /** address defines the address that owns a particular denomination. */ + address: string; + /** balance is the balance of the denominated coin for an account. */ + balance: Coin; +} +export interface DenomOwnerProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; + value: Uint8Array; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwnerAmino { + /** address defines the address that owns a particular denomination. */ + address?: string; + /** balance is the balance of the denominated coin for an account. */ + balance?: CoinAmino; +} +export interface DenomOwnerAminoMsg { + type: "cosmos-sdk/DenomOwner"; + value: DenomOwnerAmino; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwnerSDKType { + address: string; + balance: CoinSDKType; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponse { + denomOwners: DenomOwner[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomOwnersResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; + value: Uint8Array; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponseAmino { + denom_owners?: DenomOwnerAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomOwnersResponseAminoMsg { + type: "cosmos-sdk/QueryDenomOwnersResponse"; + value: QueryDenomOwnersResponseAmino; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponseSDKType { + denom_owners: DenomOwnerSDKType[]; + pagination?: PageResponseSDKType; +} +export declare const QueryBalanceRequest: { + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; + fromPartial(object: Partial): QueryBalanceRequest; + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; + toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg; + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; + toProto(message: QueryBalanceRequest): Uint8Array; + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; +}; +export declare const QueryBalanceResponse: { + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; + fromPartial(object: Partial): QueryBalanceResponse; + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; + toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg; + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; + toProto(message: QueryBalanceResponse): Uint8Array; + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; +}; +export declare const QueryAllBalancesRequest: { + typeUrl: string; + encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; + fromPartial(object: Partial): QueryAllBalancesRequest; + fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; + toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; + fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; + toAminoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestAminoMsg; + fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; + toProto(message: QueryAllBalancesRequest): Uint8Array; + toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; +}; +export declare const QueryAllBalancesResponse: { + typeUrl: string; + encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; + fromPartial(object: Partial): QueryAllBalancesResponse; + fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; + toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; + fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; + toAminoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseAminoMsg; + fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; + toProto(message: QueryAllBalancesResponse): Uint8Array; + toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; +}; +export declare const QuerySpendableBalancesRequest: { + typeUrl: string; + encode(message: QuerySpendableBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest; + fromPartial(object: Partial): QuerySpendableBalancesRequest; + fromAmino(object: QuerySpendableBalancesRequestAmino): QuerySpendableBalancesRequest; + toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino; + fromAminoMsg(object: QuerySpendableBalancesRequestAminoMsg): QuerySpendableBalancesRequest; + toAminoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAminoMsg; + fromProtoMsg(message: QuerySpendableBalancesRequestProtoMsg): QuerySpendableBalancesRequest; + toProto(message: QuerySpendableBalancesRequest): Uint8Array; + toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg; +}; +export declare const QuerySpendableBalancesResponse: { + typeUrl: string; + encode(message: QuerySpendableBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse; + fromPartial(object: Partial): QuerySpendableBalancesResponse; + fromAmino(object: QuerySpendableBalancesResponseAmino): QuerySpendableBalancesResponse; + toAmino(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAmino; + fromAminoMsg(object: QuerySpendableBalancesResponseAminoMsg): QuerySpendableBalancesResponse; + toAminoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAminoMsg; + fromProtoMsg(message: QuerySpendableBalancesResponseProtoMsg): QuerySpendableBalancesResponse; + toProto(message: QuerySpendableBalancesResponse): Uint8Array; + toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg; +}; +export declare const QueryTotalSupplyRequest: { + typeUrl: string; + encode(message: QueryTotalSupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest; + fromPartial(object: Partial): QueryTotalSupplyRequest; + fromAmino(object: QueryTotalSupplyRequestAmino): QueryTotalSupplyRequest; + toAmino(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAmino; + fromAminoMsg(object: QueryTotalSupplyRequestAminoMsg): QueryTotalSupplyRequest; + toAminoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAminoMsg; + fromProtoMsg(message: QueryTotalSupplyRequestProtoMsg): QueryTotalSupplyRequest; + toProto(message: QueryTotalSupplyRequest): Uint8Array; + toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg; +}; +export declare const QueryTotalSupplyResponse: { + typeUrl: string; + encode(message: QueryTotalSupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse; + fromPartial(object: Partial): QueryTotalSupplyResponse; + fromAmino(object: QueryTotalSupplyResponseAmino): QueryTotalSupplyResponse; + toAmino(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAmino; + fromAminoMsg(object: QueryTotalSupplyResponseAminoMsg): QueryTotalSupplyResponse; + toAminoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAminoMsg; + fromProtoMsg(message: QueryTotalSupplyResponseProtoMsg): QueryTotalSupplyResponse; + toProto(message: QueryTotalSupplyResponse): Uint8Array; + toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg; +}; +export declare const QuerySupplyOfRequest: { + typeUrl: string; + encode(message: QuerySupplyOfRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest; + fromPartial(object: Partial): QuerySupplyOfRequest; + fromAmino(object: QuerySupplyOfRequestAmino): QuerySupplyOfRequest; + toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino; + fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest; + toAminoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestAminoMsg; + fromProtoMsg(message: QuerySupplyOfRequestProtoMsg): QuerySupplyOfRequest; + toProto(message: QuerySupplyOfRequest): Uint8Array; + toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg; +}; +export declare const QuerySupplyOfResponse: { + typeUrl: string; + encode(message: QuerySupplyOfResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse; + fromPartial(object: Partial): QuerySupplyOfResponse; + fromAmino(object: QuerySupplyOfResponseAmino): QuerySupplyOfResponse; + toAmino(message: QuerySupplyOfResponse): QuerySupplyOfResponseAmino; + fromAminoMsg(object: QuerySupplyOfResponseAminoMsg): QuerySupplyOfResponse; + toAminoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseAminoMsg; + fromProtoMsg(message: QuerySupplyOfResponseProtoMsg): QuerySupplyOfResponse; + toProto(message: QuerySupplyOfResponse): Uint8Array; + toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryDenomsMetadataRequest: { + typeUrl: string; + encode(message: QueryDenomsMetadataRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest; + fromPartial(object: Partial): QueryDenomsMetadataRequest; + fromAmino(object: QueryDenomsMetadataRequestAmino): QueryDenomsMetadataRequest; + toAmino(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAmino; + fromAminoMsg(object: QueryDenomsMetadataRequestAminoMsg): QueryDenomsMetadataRequest; + toAminoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAminoMsg; + fromProtoMsg(message: QueryDenomsMetadataRequestProtoMsg): QueryDenomsMetadataRequest; + toProto(message: QueryDenomsMetadataRequest): Uint8Array; + toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg; +}; +export declare const QueryDenomsMetadataResponse: { + typeUrl: string; + encode(message: QueryDenomsMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse; + fromPartial(object: Partial): QueryDenomsMetadataResponse; + fromAmino(object: QueryDenomsMetadataResponseAmino): QueryDenomsMetadataResponse; + toAmino(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAmino; + fromAminoMsg(object: QueryDenomsMetadataResponseAminoMsg): QueryDenomsMetadataResponse; + toAminoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAminoMsg; + fromProtoMsg(message: QueryDenomsMetadataResponseProtoMsg): QueryDenomsMetadataResponse; + toProto(message: QueryDenomsMetadataResponse): Uint8Array; + toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg; +}; +export declare const QueryDenomMetadataRequest: { + typeUrl: string; + encode(message: QueryDenomMetadataRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest; + fromPartial(object: Partial): QueryDenomMetadataRequest; + fromAmino(object: QueryDenomMetadataRequestAmino): QueryDenomMetadataRequest; + toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino; + fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest; + toAminoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAminoMsg; + fromProtoMsg(message: QueryDenomMetadataRequestProtoMsg): QueryDenomMetadataRequest; + toProto(message: QueryDenomMetadataRequest): Uint8Array; + toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg; +}; +export declare const QueryDenomMetadataResponse: { + typeUrl: string; + encode(message: QueryDenomMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse; + fromPartial(object: Partial): QueryDenomMetadataResponse; + fromAmino(object: QueryDenomMetadataResponseAmino): QueryDenomMetadataResponse; + toAmino(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAmino; + fromAminoMsg(object: QueryDenomMetadataResponseAminoMsg): QueryDenomMetadataResponse; + toAminoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAminoMsg; + fromProtoMsg(message: QueryDenomMetadataResponseProtoMsg): QueryDenomMetadataResponse; + toProto(message: QueryDenomMetadataResponse): Uint8Array; + toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg; +}; +export declare const QueryDenomOwnersRequest: { + typeUrl: string; + encode(message: QueryDenomOwnersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest; + fromPartial(object: Partial): QueryDenomOwnersRequest; + fromAmino(object: QueryDenomOwnersRequestAmino): QueryDenomOwnersRequest; + toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino; + fromAminoMsg(object: QueryDenomOwnersRequestAminoMsg): QueryDenomOwnersRequest; + toAminoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAminoMsg; + fromProtoMsg(message: QueryDenomOwnersRequestProtoMsg): QueryDenomOwnersRequest; + toProto(message: QueryDenomOwnersRequest): Uint8Array; + toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg; +}; +export declare const DenomOwner: { + typeUrl: string; + encode(message: DenomOwner, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner; + fromPartial(object: Partial): DenomOwner; + fromAmino(object: DenomOwnerAmino): DenomOwner; + toAmino(message: DenomOwner): DenomOwnerAmino; + fromAminoMsg(object: DenomOwnerAminoMsg): DenomOwner; + toAminoMsg(message: DenomOwner): DenomOwnerAminoMsg; + fromProtoMsg(message: DenomOwnerProtoMsg): DenomOwner; + toProto(message: DenomOwner): Uint8Array; + toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg; +}; +export declare const QueryDenomOwnersResponse: { + typeUrl: string; + encode(message: QueryDenomOwnersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse; + fromPartial(object: Partial): QueryDenomOwnersResponse; + fromAmino(object: QueryDenomOwnersResponseAmino): QueryDenomOwnersResponse; + toAmino(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAmino; + fromAminoMsg(object: QueryDenomOwnersResponseAminoMsg): QueryDenomOwnersResponse; + toAminoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAminoMsg; + fromProtoMsg(message: QueryDenomOwnersResponseProtoMsg): QueryDenomOwnersResponse; + toProto(message: QueryDenomOwnersResponse): Uint8Array; + toProtoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.js b/packages/api/dist/cosmos/bank/v1beta1/query.js new file mode 100644 index 00000000..cc1ebc0d --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.js @@ -0,0 +1,1441 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryDenomOwnersResponse = exports.DenomOwner = exports.QueryDenomOwnersRequest = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QuerySpendableBalancesResponse = exports.QuerySpendableBalancesRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const coin_1 = require("../../base/v1beta1/coin"); +const bank_1 = require("./bank"); +const binary_1 = require("../../../binary"); +function createBaseQueryBalanceRequest() { + return { + address: "", + denom: "" + }; +} +exports.QueryBalanceRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryBalanceRequest", + value: exports.QueryBalanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + value: exports.QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + balance: undefined + }; +} +exports.QueryBalanceResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.balance !== undefined) { + coin_1.Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = coin_1.Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryBalanceResponse", + value: exports.QueryBalanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + value: exports.QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +exports.QueryAllBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllBalancesRequest", + value: exports.QueryAllBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllBalancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + value: exports.QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +exports.QueryAllBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllBalancesResponse", + value: exports.QueryAllBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllBalancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + value: exports.QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +exports.QuerySpendableBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySpendableBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySpendableBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySpendableBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySpendableBalancesRequest", + value: exports.QuerySpendableBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySpendableBalancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySpendableBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + value: exports.QuerySpendableBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +exports.QuerySpendableBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySpendableBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySpendableBalancesResponse", + value: exports.QuerySpendableBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySpendableBalancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySpendableBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + value: exports.QuerySpendableBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyRequest() { + return { + pagination: undefined + }; +} +exports.QueryTotalSupplyRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTotalSupplyRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTotalSupplyRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTotalSupplyRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTotalSupplyRequest", + value: exports.QueryTotalSupplyRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTotalSupplyRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryTotalSupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + value: exports.QueryTotalSupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyResponse() { + return { + supply: [], + pagination: undefined + }; +} +exports.QueryTotalSupplyResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.supply) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.supply.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.supply) { + obj.supply = message.supply.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.supply = message.supply; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTotalSupplyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTotalSupplyResponse", + value: exports.QueryTotalSupplyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTotalSupplyResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryTotalSupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + value: exports.QueryTotalSupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfRequest() { + return { + denom: "" + }; +} +exports.QuerySupplyOfRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyOfRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyOfRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyOfRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySupplyOfRequest", + value: exports.QuerySupplyOfRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySupplyOfRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyOfRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + value: exports.QuerySupplyOfRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfResponse() { + return { + amount: coin_1.Coin.fromPartial({}) + }; +} +exports.QuerySupplyOfResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.amount !== undefined) { + coin_1.Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyOfResponse(); + message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyOfResponse(); + if (object.amount !== undefined && object.amount !== null) { + message.amount = coin_1.Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyOfResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySupplyOfResponse", + value: exports.QuerySupplyOfResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySupplyOfResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyOfResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + value: exports.QuerySupplyOfResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: bank_1.Params.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + bank_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = bank_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? bank_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = bank_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? bank_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataRequest() { + return { + pagination: undefined + }; +} +exports.QueryDenomsMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomsMetadataRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomsMetadataRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomsMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomsMetadataRequest", + value: exports.QueryDenomsMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomsMetadataRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomsMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + value: exports.QueryDenomsMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataResponse() { + return { + metadatas: [], + pagination: undefined + }; +} +exports.QueryDenomsMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.metadatas) { + bank_1.Metadata.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadatas.push(bank_1.Metadata.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => bank_1.Metadata.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => bank_1.Metadata.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.metadatas) { + obj.metadatas = message.metadatas.map(e => e ? bank_1.Metadata.toAmino(e) : undefined); + } + else { + obj.metadatas = message.metadatas; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomsMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomsMetadataResponse", + value: exports.QueryDenomsMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomsMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomsMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + value: exports.QueryDenomsMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataRequest() { + return { + denom: "" + }; +} +exports.QueryDenomMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomMetadataRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomMetadataRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomMetadataRequest", + value: exports.QueryDenomMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomMetadataRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + value: exports.QueryDenomMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataResponse() { + return { + metadata: bank_1.Metadata.fromPartial({}) + }; +} +exports.QueryDenomMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.metadata !== undefined) { + bank_1.Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = bank_1.Metadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomMetadataResponse(); + message.metadata = object.metadata !== undefined && object.metadata !== null ? bank_1.Metadata.fromPartial(object.metadata) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomMetadataResponse(); + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bank_1.Metadata.fromAmino(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.metadata = message.metadata ? bank_1.Metadata.toAmino(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomMetadataResponse", + value: exports.QueryDenomMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + value: exports.QueryDenomMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersRequest() { + return { + denom: "", + pagination: undefined + }; +} +exports.QueryDenomOwnersRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomOwnersRequest(); + message.denom = object.denom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomOwnersRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomOwnersRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomOwnersRequest", + value: exports.QueryDenomOwnersRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomOwnersRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomOwnersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + value: exports.QueryDenomOwnersRequest.encode(message).finish() + }; + } +}; +function createBaseDenomOwner() { + return { + address: "", + balance: coin_1.Coin.fromPartial({}) + }; +} +exports.DenomOwner = { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.balance !== undefined) { + coin_1.Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomOwner(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.balance = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomOwner(); + message.address = object.address ?? ""; + message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDenomOwner(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = coin_1.Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DenomOwner.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomOwner", + value: exports.DenomOwner.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DenomOwner.decode(message.value); + }, + toProto(message) { + return exports.DenomOwner.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + value: exports.DenomOwner.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersResponse() { + return { + denomOwners: [], + pagination: undefined + }; +} +exports.QueryDenomOwnersResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.denomOwners) { + exports.DenomOwner.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomOwners.push(exports.DenomOwner.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denomOwners?.map(e => exports.DenomOwner.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denom_owners?.map(e => exports.DenomOwner.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.denomOwners) { + obj.denom_owners = message.denomOwners.map(e => e ? exports.DenomOwner.toAmino(e) : undefined); + } + else { + obj.denom_owners = message.denomOwners; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomOwnersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomOwnersResponse", + value: exports.QueryDenomOwnersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomOwnersResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomOwnersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + value: exports.QueryDenomOwnersResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..3ae16b28 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts @@ -0,0 +1,17 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + balance(params: QueryBalanceRequest): Promise; + allBalances(params: QueryAllBalancesRequest): Promise; + spendableBalances(params: QuerySpendableBalancesRequest): Promise; + totalSupply(params?: QueryTotalSupplyRequest): Promise; + supplyOf(params: QuerySupplyOfRequest): Promise; + params(_params?: QueryParamsRequest): Promise; + denomMetadata(params: QueryDenomMetadataRequest): Promise; + denomsMetadata(params?: QueryDenomsMetadataRequest): Promise; + denomOwners(params: QueryDenomOwnersRequest): Promise; +} diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js new file mode 100644 index 00000000..208b0a39 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js @@ -0,0 +1,119 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + /* Balance queries the balance of a single coin for a single account. */ + async balance(params) { + const options = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries the balance of all coins for a single account. */ + async allBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* SpendableBalances queries the spenable balance of all coins for a single + account. + + Since: cosmos-sdk 0.46 */ + async spendableBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TotalSupply queries the total supply of all coins. */ + async totalSupply(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/supply`; + return await this.req.get(endpoint, options); + } + /* SupplyOf queries the supply of a single coin. */ + async supplyOf(params) { + const options = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; + return await this.req.get(endpoint, options); + } + /* Params queries the parameters of x/bank module. */ + async params(_params = {}) { + const endpoint = `cosmos/bank/v1beta1/params`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata of a given coin denomination. */ + async denomMetadata(params) { + const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata for all registered coin + denominations. */ + async denomsMetadata(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; + return await this.req.get(endpoint, options); + } + /* DenomOwners queries for all account addresses that own a particular token + denomination. + + Since: cosmos-sdk 0.46 */ + async denomOwners(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; + return await this.req.get(endpoint, options); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..e4a79cca --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,61 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Balance queries the balance of a single coin for a single account. */ + balance(request: QueryBalanceRequest): Promise; + /** AllBalances queries the balance of all coins for a single account. */ + allBalances(request: QueryAllBalancesRequest): Promise; + /** + * SpendableBalances queries the spenable balance of all coins for a single + * account. + * + * Since: cosmos-sdk 0.46 + */ + spendableBalances(request: QuerySpendableBalancesRequest): Promise; + /** TotalSupply queries the total supply of all coins. */ + totalSupply(request?: QueryTotalSupplyRequest): Promise; + /** SupplyOf queries the supply of a single coin. */ + supplyOf(request: QuerySupplyOfRequest): Promise; + /** Params queries the parameters of x/bank module. */ + params(request?: QueryParamsRequest): Promise; + /** DenomsMetadata queries the client metadata of a given coin denomination. */ + denomMetadata(request: QueryDenomMetadataRequest): Promise; + /** + * DenomsMetadata queries the client metadata for all registered coin + * denominations. + */ + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + /** + * DenomOwners queries for all account addresses that own a particular token + * denomination. + * + * Since: cosmos-sdk 0.46 + */ + denomOwners(request: QueryDenomOwnersRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + balance(request: QueryBalanceRequest): Promise; + allBalances(request: QueryAllBalancesRequest): Promise; + spendableBalances(request: QuerySpendableBalancesRequest): Promise; + totalSupply(request?: QueryTotalSupplyRequest): Promise; + supplyOf(request: QuerySupplyOfRequest): Promise; + params(request?: QueryParamsRequest): Promise; + denomMetadata(request: QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + denomOwners(request: QueryDenomOwnersRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + balance(request: QueryBalanceRequest): Promise; + allBalances(request: QueryAllBalancesRequest): Promise; + spendableBalances(request: QuerySpendableBalancesRequest): Promise; + totalSupply(request?: QueryTotalSupplyRequest): Promise; + supplyOf(request: QuerySupplyOfRequest): Promise; + params(request?: QueryParamsRequest): Promise; + denomMetadata(request: QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + denomOwners(request: QueryDenomOwnersRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..1803ac1f --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js @@ -0,0 +1,105 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + balance(request) { + const data = query_1.QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); + return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); + } + allBalances(request) { + const data = query_1.QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); + return promise.then(data => query_1.QueryAllBalancesResponse.decode(new binary_1.BinaryReader(data))); + } + spendableBalances(request) { + const data = query_1.QuerySpendableBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); + return promise.then(data => query_1.QuerySpendableBalancesResponse.decode(new binary_1.BinaryReader(data))); + } + totalSupply(request = { + pagination: undefined + }) { + const data = query_1.QueryTotalSupplyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); + return promise.then(data => query_1.QueryTotalSupplyResponse.decode(new binary_1.BinaryReader(data))); + } + supplyOf(request) { + const data = query_1.QuerySupplyOfRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); + return promise.then(data => query_1.QuerySupplyOfResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + denomMetadata(request) { + const data = query_1.QueryDenomMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); + return promise.then(data => query_1.QueryDenomMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + denomsMetadata(request = { + pagination: undefined + }) { + const data = query_1.QueryDenomsMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); + return promise.then(data => query_1.QueryDenomsMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + denomOwners(request) { + const data = query_1.QueryDenomOwnersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); + return promise.then(data => query_1.QueryDenomOwnersResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + balance(request) { + return queryService.balance(request); + }, + allBalances(request) { + return queryService.allBalances(request); + }, + spendableBalances(request) { + return queryService.spendableBalances(request); + }, + totalSupply(request) { + return queryService.totalSupply(request); + }, + supplyOf(request) { + return queryService.supplyOf(request); + }, + params(request) { + return queryService.params(request); + }, + denomMetadata(request) { + return queryService.denomMetadata(request); + }, + denomsMetadata(request) { + return queryService.denomsMetadata(request); + }, + denomOwners(request) { + return queryService.denomOwners(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..ad7ed74a --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts @@ -0,0 +1,13 @@ +import { MsgSend, MsgMultiSend } from "./tx"; +export declare const AminoConverter: { + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: string; + toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; + fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; + }; + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: string; + toAmino: (message: MsgMultiSend) => import("./tx").MsgMultiSendAmino; + fromAmino: (object: import("./tx").MsgMultiSendAmino) => MsgMultiSend; + }; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js new file mode 100644 index 00000000..46874cde --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: "cosmos-sdk/MsgSend", + toAmino: tx_1.MsgSend.toAmino, + fromAmino: tx_1.MsgSend.fromAmino + }, + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: "cosmos-sdk/MsgMultiSend", + toAmino: tx_1.MsgMultiSend.toAmino, + fromAmino: tx_1.MsgMultiSend.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts new file mode 100644 index 00000000..e070dfe8 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts @@ -0,0 +1,138 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSend { + fromAddress: string; + toAddress: string; + amount: Coin[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgSend"; + value: Uint8Array; +} +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSendAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; +} +export interface MsgSendAminoMsg { + type: "cosmos-sdk/MsgSend"; + value: MsgSendAmino; +} +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSendSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponse { +} +export interface MsgSendResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponseAmino { +} +export interface MsgSendResponseAminoMsg { + type: "cosmos-sdk/MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponseSDKType { +} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSend { + inputs: Input[]; + outputs: Output[]; +} +export interface MsgMultiSendProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; + value: Uint8Array; +} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSendAmino { + inputs?: InputAmino[]; + outputs?: OutputAmino[]; +} +export interface MsgMultiSendAminoMsg { + type: "cosmos-sdk/MsgMultiSend"; + value: MsgMultiSendAmino; +} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSendSDKType { + inputs: InputSDKType[]; + outputs: OutputSDKType[]; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponse { +} +export interface MsgMultiSendResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; + value: Uint8Array; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponseAmino { +} +export interface MsgMultiSendResponseAminoMsg { + type: "cosmos-sdk/MsgMultiSendResponse"; + value: MsgMultiSendResponseAmino; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponseSDKType { +} +export declare const MsgSend: { + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; + fromPartial(object: Partial): MsgSend; + fromAmino(object: MsgSendAmino): MsgSend; + toAmino(message: MsgSend): MsgSendAmino; + fromAminoMsg(object: MsgSendAminoMsg): MsgSend; + toAminoMsg(message: MsgSend): MsgSendAminoMsg; + fromProtoMsg(message: MsgSendProtoMsg): MsgSend; + toProto(message: MsgSend): Uint8Array; + toProtoMsg(message: MsgSend): MsgSendProtoMsg; +}; +export declare const MsgSendResponse: { + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; + fromPartial(_: Partial): MsgSendResponse; + fromAmino(_: MsgSendResponseAmino): MsgSendResponse; + toAmino(_: MsgSendResponse): MsgSendResponseAmino; + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; + toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg; + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; + toProto(message: MsgSendResponse): Uint8Array; + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; +}; +export declare const MsgMultiSend: { + typeUrl: string; + encode(message: MsgMultiSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend; + fromPartial(object: Partial): MsgMultiSend; + fromAmino(object: MsgMultiSendAmino): MsgMultiSend; + toAmino(message: MsgMultiSend): MsgMultiSendAmino; + fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend; + toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg; + fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend; + toProto(message: MsgMultiSend): Uint8Array; + toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg; +}; +export declare const MsgMultiSendResponse: { + typeUrl: string; + encode(_: MsgMultiSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse; + fromPartial(_: Partial): MsgMultiSendResponse; + fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse; + toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino; + fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse; + toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg; + fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse; + toProto(message: MsgMultiSendResponse): Uint8Array; + toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.js b/packages/api/dist/cosmos/bank/v1beta1/tx.js new file mode 100644 index 00000000..71a5f0d4 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.js @@ -0,0 +1,302 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const bank_1 = require("./bank"); +const binary_1 = require("../../../binary"); +function createBaseMsgSend() { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +exports.MsgSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSend", + value: exports.MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSend.decode(message.value); + }, + toProto(message) { + return exports.MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: exports.MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +exports.MsgSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSendResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSendResponse", + value: exports.MsgSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSendResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + value: exports.MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSend() { + return { + inputs: [], + outputs: [] + }; +} +exports.MsgMultiSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.inputs) { + bank_1.Input.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.outputs) { + bank_1.Output.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs.push(bank_1.Input.decode(reader, reader.uint32())); + break; + case 2: + message.outputs.push(bank_1.Output.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => bank_1.Input.fromPartial(e)) || []; + message.outputs = object.outputs?.map(e => bank_1.Output.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => bank_1.Input.fromAmino(e)) || []; + message.outputs = object.outputs?.map(e => bank_1.Output.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.inputs) { + obj.inputs = message.inputs.map(e => e ? bank_1.Input.toAmino(e) : undefined); + } + else { + obj.inputs = message.inputs; + } + if (message.outputs) { + obj.outputs = message.outputs.map(e => e ? bank_1.Output.toAmino(e) : undefined); + } + else { + obj.outputs = message.outputs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgMultiSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgMultiSend", + value: exports.MsgMultiSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgMultiSend.decode(message.value); + }, + toProto(message) { + return exports.MsgMultiSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: exports.MsgMultiSend.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSendResponse() { + return {}; +} +exports.MsgMultiSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgMultiSendResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgMultiSendResponse", + value: exports.MsgMultiSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgMultiSendResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgMultiSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + value: exports.MsgMultiSendResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..fd2ff12d --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts @@ -0,0 +1,36 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSend, MsgMultiSend } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + send(value: MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + multiSend(value: MsgMultiSend): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + multiSend(value: MsgMultiSend): { + typeUrl: string; + value: MsgMultiSend; + }; + }; + fromPartial: { + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + multiSend(value: MsgMultiSend): { + typeUrl: string; + value: MsgMultiSend; + }; + }; +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js new file mode 100644 index 00000000..f89899d8 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.bank.v1beta1.MsgSend", tx_1.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", tx_1.MsgMultiSend]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: tx_1.MsgSend.encode(value).finish() + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: tx_1.MsgMultiSend.encode(value).finish() + }; + } + }, + withTypeUrl: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value + }; + } + }, + fromPartial: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: tx_1.MsgSend.fromPartial(value) + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: tx_1.MsgMultiSend.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..ac12e6ab --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,15 @@ +import { Rpc } from "../../../helpers"; +import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** Send defines a method for sending coins from one account to another account. */ + send(request: MsgSend): Promise; + /** MultiSend defines a method for sending coins from some accounts to other accounts. */ + multiSend(request: MsgMultiSend): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + send(request: MsgSend): Promise; + multiSend(request: MsgMultiSend): Promise; +} diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..a77883e1 --- /dev/null +++ b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.send = this.send.bind(this); + this.multiSend = this.multiSend.bind(this); + } + send(request) { + const data = tx_1.MsgSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); + return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); + } + multiSend(request) { + const data = tx_1.MsgMultiSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); + return promise.then(data => tx_1.MsgMultiSendResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts b/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts new file mode 100644 index 00000000..30a71db2 --- /dev/null +++ b/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts @@ -0,0 +1,602 @@ +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponse { + /** The block height */ + height: bigint; + /** The transaction hash. */ + txhash: string; + /** Namespace for the Code */ + codespace: string; + /** Response code. */ + code: number; + /** Result bytes, if any. */ + data: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + rawLog: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs: ABCIMessageLog[]; + /** Additional information. May be non-deterministic. */ + info: string; + /** Amount of gas requested for transaction. */ + gasWanted: bigint; + /** Amount of gas consumed by transaction. */ + gasUsed: bigint; + /** The request transaction bytes. */ + tx?: Any; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp: string; + /** + * Events defines all the events emitted by processing a transaction. Note, + * these events include those emitted by processing all the messages and those + * emitted from the ante. Whereas Logs contains the events, with + * additional metadata, emitted only by processing the messages. + * + * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + */ + events: Event[]; +} +export interface TxResponseProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; + value: Uint8Array; +} +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponseAmino { + /** The block height */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** Response code. */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: ABCIMessageLogAmino[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** Amount of gas requested for transaction. */ + gas_wanted?: string; + /** Amount of gas consumed by transaction. */ + gas_used?: string; + /** The request transaction bytes. */ + tx?: AnyAmino; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + /** + * Events defines all the events emitted by processing a transaction. Note, + * these events include those emitted by processing all the messages and those + * emitted from the ante. Whereas Logs contains the events, with + * additional metadata, emitted only by processing the messages. + * + * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + */ + events?: EventAmino[]; +} +export interface TxResponseAminoMsg { + type: "cosmos-sdk/TxResponse"; + value: TxResponseAmino; +} +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponseSDKType { + height: bigint; + txhash: string; + codespace: string; + code: number; + data: string; + raw_log: string; + logs: ABCIMessageLogSDKType[]; + info: string; + gas_wanted: bigint; + gas_used: bigint; + tx?: AnySDKType; + timestamp: string; + events: EventSDKType[]; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLog { + msgIndex: number; + log: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events: StringEvent[]; +} +export interface ABCIMessageLogProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; + value: Uint8Array; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLogAmino { + msg_index: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: StringEventAmino[]; +} +export interface ABCIMessageLogAminoMsg { + type: "cosmos-sdk/ABCIMessageLog"; + value: ABCIMessageLogAmino; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLogSDKType { + msg_index: number; + log: string; + events: StringEventSDKType[]; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEvent { + type: string; + attributes: Attribute[]; +} +export interface StringEventProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; + value: Uint8Array; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEventAmino { + type?: string; + attributes?: AttributeAmino[]; +} +export interface StringEventAminoMsg { + type: "cosmos-sdk/StringEvent"; + value: StringEventAmino; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEventSDKType { + type: string; + attributes: AttributeSDKType[]; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface Attribute { + key: string; + value: string; +} +export interface AttributeProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; + value: Uint8Array; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface AttributeAmino { + key?: string; + value?: string; +} +export interface AttributeAminoMsg { + type: "cosmos-sdk/Attribute"; + value: AttributeAmino; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface AttributeSDKType { + key: string; + value: string; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfo { + /** GasWanted is the maximum units of work we allow this tx to perform. */ + gasWanted: bigint; + /** GasUsed is the amount of gas actually consumed. */ + gasUsed: bigint; +} +export interface GasInfoProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; + value: Uint8Array; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfoAmino { + /** GasWanted is the maximum units of work we allow this tx to perform. */ + gas_wanted?: string; + /** GasUsed is the amount of gas actually consumed. */ + gas_used?: string; +} +export interface GasInfoAminoMsg { + type: "cosmos-sdk/GasInfo"; + value: GasInfoAmino; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfoSDKType { + gas_wanted: bigint; + gas_used: bigint; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface Result { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * Deprecated. This field is still populated, but prefer msg_response instead + * because it also contains the Msg response typeURL. + */ + /** @deprecated */ + data: Uint8Array; + /** Log contains the log information from message or handler execution. */ + log: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events: Event[]; + /** + * msg_responses contains the Msg handler responses type packed in Anys. + * + * Since: cosmos-sdk 0.46 + */ + msgResponses: Any[]; +} +export interface ResultProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.Result"; + value: Uint8Array; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface ResultAmino { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * Deprecated. This field is still populated, but prefer msg_response instead + * because it also contains the Msg response typeURL. + */ + /** @deprecated */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: EventAmino[]; + /** + * msg_responses contains the Msg handler responses type packed in Anys. + * + * Since: cosmos-sdk 0.46 + */ + msg_responses?: AnyAmino[]; +} +export interface ResultAminoMsg { + type: "cosmos-sdk/Result"; + value: ResultAmino; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface ResultSDKType { + /** @deprecated */ + data: Uint8Array; + log: string; + events: EventSDKType[]; + msg_responses: AnySDKType[]; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponse { + gasInfo: GasInfo; + result?: Result; +} +export interface SimulationResponseProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; + value: Uint8Array; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponseAmino { + gas_info?: GasInfoAmino; + result?: ResultAmino; +} +export interface SimulationResponseAminoMsg { + type: "cosmos-sdk/SimulationResponse"; + value: SimulationResponseAmino; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponseSDKType { + gas_info: GasInfoSDKType; + result?: ResultSDKType; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgData { + msgType: string; + data: Uint8Array; +} +export interface MsgDataProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; + value: Uint8Array; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgDataAmino { + msg_type?: string; + data?: string; +} +export interface MsgDataAminoMsg { + type: "cosmos-sdk/MsgData"; + value: MsgDataAmino; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgDataSDKType { + msg_type: string; + data: Uint8Array; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgData { + /** data field is deprecated and not populated. */ + /** @deprecated */ + data: MsgData[]; + /** + * msg_responses contains the Msg handler responses packed into Anys. + * + * Since: cosmos-sdk 0.46 + */ + msgResponses: Any[]; +} +export interface TxMsgDataProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; + value: Uint8Array; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgDataAmino { + /** data field is deprecated and not populated. */ + /** @deprecated */ + data?: MsgDataAmino[]; + /** + * msg_responses contains the Msg handler responses packed into Anys. + * + * Since: cosmos-sdk 0.46 + */ + msg_responses?: AnyAmino[]; +} +export interface TxMsgDataAminoMsg { + type: "cosmos-sdk/TxMsgData"; + value: TxMsgDataAmino; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgDataSDKType { + /** @deprecated */ + data: MsgDataSDKType[]; + msg_responses: AnySDKType[]; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResult { + /** Count of all txs */ + totalCount: bigint; + /** Count of txs in current page */ + count: bigint; + /** Index of current page, start from 1 */ + pageNumber: bigint; + /** Count of total pages */ + pageTotal: bigint; + /** Max count txs per page */ + limit: bigint; + /** List of txs in current page */ + txs: TxResponse[]; +} +export interface SearchTxsResultProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; + value: Uint8Array; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResultAmino { + /** Count of all txs */ + total_count?: string; + /** Count of txs in current page */ + count?: string; + /** Index of current page, start from 1 */ + page_number?: string; + /** Count of total pages */ + page_total?: string; + /** Max count txs per page */ + limit?: string; + /** List of txs in current page */ + txs?: TxResponseAmino[]; +} +export interface SearchTxsResultAminoMsg { + type: "cosmos-sdk/SearchTxsResult"; + value: SearchTxsResultAmino; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResultSDKType { + total_count: bigint; + count: bigint; + page_number: bigint; + page_total: bigint; + limit: bigint; + txs: TxResponseSDKType[]; +} +export declare const TxResponse: { + typeUrl: string; + encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; + fromPartial(object: Partial): TxResponse; + fromAmino(object: TxResponseAmino): TxResponse; + toAmino(message: TxResponse): TxResponseAmino; + fromAminoMsg(object: TxResponseAminoMsg): TxResponse; + toAminoMsg(message: TxResponse): TxResponseAminoMsg; + fromProtoMsg(message: TxResponseProtoMsg): TxResponse; + toProto(message: TxResponse): Uint8Array; + toProtoMsg(message: TxResponse): TxResponseProtoMsg; +}; +export declare const ABCIMessageLog: { + typeUrl: string; + encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; + fromPartial(object: Partial): ABCIMessageLog; + fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog; + toAmino(message: ABCIMessageLog): ABCIMessageLogAmino; + fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog; + toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg; + fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog; + toProto(message: ABCIMessageLog): Uint8Array; + toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg; +}; +export declare const StringEvent: { + typeUrl: string; + encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; + fromPartial(object: Partial): StringEvent; + fromAmino(object: StringEventAmino): StringEvent; + toAmino(message: StringEvent): StringEventAmino; + fromAminoMsg(object: StringEventAminoMsg): StringEvent; + toAminoMsg(message: StringEvent): StringEventAminoMsg; + fromProtoMsg(message: StringEventProtoMsg): StringEvent; + toProto(message: StringEvent): Uint8Array; + toProtoMsg(message: StringEvent): StringEventProtoMsg; +}; +export declare const Attribute: { + typeUrl: string; + encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Attribute; + fromPartial(object: Partial): Attribute; + fromAmino(object: AttributeAmino): Attribute; + toAmino(message: Attribute): AttributeAmino; + fromAminoMsg(object: AttributeAminoMsg): Attribute; + toAminoMsg(message: Attribute): AttributeAminoMsg; + fromProtoMsg(message: AttributeProtoMsg): Attribute; + toProto(message: Attribute): Uint8Array; + toProtoMsg(message: Attribute): AttributeProtoMsg; +}; +export declare const GasInfo: { + typeUrl: string; + encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; + fromPartial(object: Partial): GasInfo; + fromAmino(object: GasInfoAmino): GasInfo; + toAmino(message: GasInfo): GasInfoAmino; + fromAminoMsg(object: GasInfoAminoMsg): GasInfo; + toAminoMsg(message: GasInfo): GasInfoAminoMsg; + fromProtoMsg(message: GasInfoProtoMsg): GasInfo; + toProto(message: GasInfo): Uint8Array; + toProtoMsg(message: GasInfo): GasInfoProtoMsg; +}; +export declare const Result: { + typeUrl: string; + encode(message: Result, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Result; + fromPartial(object: Partial): Result; + fromAmino(object: ResultAmino): Result; + toAmino(message: Result): ResultAmino; + fromAminoMsg(object: ResultAminoMsg): Result; + toAminoMsg(message: Result): ResultAminoMsg; + fromProtoMsg(message: ResultProtoMsg): Result; + toProto(message: Result): Uint8Array; + toProtoMsg(message: Result): ResultProtoMsg; +}; +export declare const SimulationResponse: { + typeUrl: string; + encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; + fromPartial(object: Partial): SimulationResponse; + fromAmino(object: SimulationResponseAmino): SimulationResponse; + toAmino(message: SimulationResponse): SimulationResponseAmino; + fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse; + toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg; + fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse; + toProto(message: SimulationResponse): Uint8Array; + toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg; +}; +export declare const MsgData: { + typeUrl: string; + encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgData; + fromPartial(object: Partial): MsgData; + fromAmino(object: MsgDataAmino): MsgData; + toAmino(message: MsgData): MsgDataAmino; + fromAminoMsg(object: MsgDataAminoMsg): MsgData; + toAminoMsg(message: MsgData): MsgDataAminoMsg; + fromProtoMsg(message: MsgDataProtoMsg): MsgData; + toProto(message: MsgData): Uint8Array; + toProtoMsg(message: MsgData): MsgDataProtoMsg; +}; +export declare const TxMsgData: { + typeUrl: string; + encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; + fromPartial(object: Partial): TxMsgData; + fromAmino(object: TxMsgDataAmino): TxMsgData; + toAmino(message: TxMsgData): TxMsgDataAmino; + fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData; + toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg; + fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData; + toProto(message: TxMsgData): Uint8Array; + toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg; +}; +export declare const SearchTxsResult: { + typeUrl: string; + encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; + fromPartial(object: Partial): SearchTxsResult; + fromAmino(object: SearchTxsResultAmino): SearchTxsResult; + toAmino(message: SearchTxsResult): SearchTxsResultAmino; + fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult; + toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg; + fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult; + toProto(message: SearchTxsResult): Uint8Array; + toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg; +}; diff --git a/packages/api/dist/cosmos/base/abci/v1beta1/abci.js b/packages/api/dist/cosmos/base/abci/v1beta1/abci.js new file mode 100644 index 00000000..d35ec620 --- /dev/null +++ b/packages/api/dist/cosmos/base/abci/v1beta1/abci.js @@ -0,0 +1,1061 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SearchTxsResult = exports.TxMsgData = exports.MsgData = exports.SimulationResponse = exports.Result = exports.GasInfo = exports.Attribute = exports.StringEvent = exports.ABCIMessageLog = exports.TxResponse = void 0; +//@ts-nocheck +const any_1 = require("../../../../google/protobuf/any"); +const types_1 = require("../../../../tendermint/abci/types"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseTxResponse() { + return { + height: BigInt(0), + txhash: "", + codespace: "", + code: 0, + data: "", + rawLog: "", + logs: [], + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + tx: undefined, + timestamp: "", + events: [] + }; +} +exports.TxResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.txhash !== "") { + writer.uint32(18).string(message.txhash); + } + if (message.codespace !== "") { + writer.uint32(26).string(message.codespace); + } + if (message.code !== 0) { + writer.uint32(32).uint32(message.code); + } + if (message.data !== "") { + writer.uint32(42).string(message.data); + } + if (message.rawLog !== "") { + writer.uint32(50).string(message.rawLog); + } + for (const v of message.logs) { + exports.ABCIMessageLog.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.info !== "") { + writer.uint32(66).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(72).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(80).int64(message.gasUsed); + } + if (message.tx !== undefined) { + any_1.Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); + } + if (message.timestamp !== "") { + writer.uint32(98).string(message.timestamp); + } + for (const v of message.events) { + types_1.Event.encode(v, writer.uint32(106).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.txhash = reader.string(); + break; + case 3: + message.codespace = reader.string(); + break; + case 4: + message.code = reader.uint32(); + break; + case 5: + message.data = reader.string(); + break; + case 6: + message.rawLog = reader.string(); + break; + case 7: + message.logs.push(exports.ABCIMessageLog.decode(reader, reader.uint32())); + break; + case 8: + message.info = reader.string(); + break; + case 9: + message.gasWanted = reader.int64(); + break; + case 10: + message.gasUsed = reader.int64(); + break; + case 11: + message.tx = any_1.Any.decode(reader, reader.uint32()); + break; + case 12: + message.timestamp = reader.string(); + break; + case 13: + message.events.push(types_1.Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.txhash = object.txhash ?? ""; + message.codespace = object.codespace ?? ""; + message.code = object.code ?? 0; + message.data = object.data ?? ""; + message.rawLog = object.rawLog ?? ""; + message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromPartial(e)) || []; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.tx = object.tx !== undefined && object.tx !== null ? any_1.Any.fromPartial(object.tx) : undefined; + message.timestamp = object.timestamp ?? ""; + message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.txhash !== undefined && object.txhash !== null) { + message.txhash = object.txhash; + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.raw_log !== undefined && object.raw_log !== null) { + message.rawLog = object.raw_log; + } + message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromAmino(e)) || []; + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = any_1.Any.fromAmino(object.tx); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = object.timestamp; + } + message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.txhash = message.txhash === "" ? undefined : message.txhash; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data === "" ? undefined : message.data; + obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; + if (message.logs) { + obj.logs = message.logs.map(e => e ? exports.ABCIMessageLog.toAmino(e) : undefined); + } + else { + obj.logs = message.logs; + } + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + obj.tx = message.tx ? any_1.Any.toAmino(message.tx) : undefined; + obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; + if (message.events) { + obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return exports.TxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxResponse", + value: exports.TxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TxResponse.decode(message.value); + }, + toProto(message) { + return exports.TxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + value: exports.TxResponse.encode(message).finish() + }; + } +}; +function createBaseABCIMessageLog() { + return { + msgIndex: 0, + log: "", + events: [] + }; +} +exports.ABCIMessageLog = { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msgIndex !== 0) { + writer.uint32(8).uint32(message.msgIndex); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + exports.StringEvent.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseABCIMessageLog(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgIndex = reader.uint32(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(exports.StringEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseABCIMessageLog(); + message.msgIndex = object.msgIndex ?? 0; + message.log = object.log ?? ""; + message.events = object.events?.map(e => exports.StringEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseABCIMessageLog(); + if (object.msg_index !== undefined && object.msg_index !== null) { + message.msgIndex = object.msg_index; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => exports.StringEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_index = message.msgIndex ?? 0; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? exports.StringEvent.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ABCIMessageLog.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ABCIMessageLog", + value: exports.ABCIMessageLog.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ABCIMessageLog.decode(message.value); + }, + toProto(message) { + return exports.ABCIMessageLog.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + value: exports.ABCIMessageLog.encode(message).finish() + }; + } +}; +function createBaseStringEvent() { + return { + type: "", + attributes: [] + }; +} +exports.StringEvent = { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + exports.Attribute.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStringEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(exports.Attribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStringEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => exports.Attribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseStringEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => exports.Attribute.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? exports.Attribute.toAmino(e) : undefined); + } + else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.StringEvent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/StringEvent", + value: exports.StringEvent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.StringEvent.decode(message.value); + }, + toProto(message) { + return exports.StringEvent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + value: exports.StringEvent.encode(message).finish() + }; + } +}; +function createBaseAttribute() { + return { + key: "", + value: "" + }; +} +exports.Attribute = { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object) { + return exports.Attribute.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Attribute", + value: exports.Attribute.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Attribute.decode(message.value); + }, + toProto(message) { + return exports.Attribute.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + value: exports.Attribute.encode(message).finish() + }; + } +}; +function createBaseGasInfo() { + return { + gasWanted: BigInt(0), + gasUsed: BigInt(0) + }; +} +exports.GasInfo = { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.gasWanted !== BigInt(0)) { + writer.uint32(8).uint64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(16).uint64(message.gasUsed); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGasInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasWanted = reader.uint64(); + break; + case 2: + message.gasUsed = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGasInfo(); + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGasInfo(); + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GasInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GasInfo", + value: exports.GasInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GasInfo.decode(message.value); + }, + toProto(message) { + return exports.GasInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + value: exports.GasInfo.encode(message).finish() + }; + } +}; +function createBaseResult() { + return { + data: new Uint8Array(), + log: "", + events: [], + msgResponses: [] + }; +} +exports.Result = { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + types_1.Event.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.msgResponses) { + any_1.Any.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(types_1.Event.decode(reader, reader.uint32())); + break; + case 4: + message.msgResponses.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResult(); + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResult(); + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Result.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Result", + value: exports.Result.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Result.decode(message.value); + }, + toProto(message) { + return exports.Result.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + value: exports.Result.encode(message).finish() + }; + } +}; +function createBaseSimulationResponse() { + return { + gasInfo: exports.GasInfo.fromPartial({}), + result: undefined + }; +} +exports.SimulationResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.gasInfo !== undefined) { + exports.GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + exports.Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = exports.GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = exports.Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulationResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? exports.GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? exports.Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSimulationResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = exports.GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = exports.Result.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_info = message.gasInfo ? exports.GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? exports.Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SimulationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulationResponse", + value: exports.SimulationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SimulationResponse.decode(message.value); + }, + toProto(message) { + return exports.SimulationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + value: exports.SimulationResponse.encode(message).finish() + }; + } +}; +function createBaseMsgData() { + return { + msgType: "", + data: new Uint8Array() + }; +} +exports.MsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msgType !== "") { + writer.uint32(10).string(message.msgType); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgType = reader.string(); + break; + case 2: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgData(); + message.msgType = object.msgType ?? ""; + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseMsgData(); + if (object.msg_type !== undefined && object.msg_type !== null) { + message.msgType = object.msg_type; + } + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type = message.msgType === "" ? undefined : message.msgType; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgData", + value: exports.MsgData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgData.decode(message.value); + }, + toProto(message) { + return exports.MsgData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + value: exports.MsgData.encode(message).finish() + }; + } +}; +function createBaseTxMsgData() { + return { + data: [], + msgResponses: [] + }; +} +exports.TxMsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.data) { + exports.MsgData.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.msgResponses) { + any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data.push(exports.MsgData.decode(reader, reader.uint32())); + break; + case 2: + message.msgResponses.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => exports.MsgData.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => exports.MsgData.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.data) { + obj.data = message.data.map(e => e ? exports.MsgData.toAmino(e) : undefined); + } + else { + obj.data = message.data; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object) { + return exports.TxMsgData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxMsgData", + value: exports.TxMsgData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TxMsgData.decode(message.value); + }, + toProto(message) { + return exports.TxMsgData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + value: exports.TxMsgData.encode(message).finish() + }; + } +}; +function createBaseSearchTxsResult() { + return { + totalCount: BigInt(0), + count: BigInt(0), + pageNumber: BigInt(0), + pageTotal: BigInt(0), + limit: BigInt(0), + txs: [] + }; +} +exports.SearchTxsResult = { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.totalCount !== BigInt(0)) { + writer.uint32(8).uint64(message.totalCount); + } + if (message.count !== BigInt(0)) { + writer.uint32(16).uint64(message.count); + } + if (message.pageNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.pageNumber); + } + if (message.pageTotal !== BigInt(0)) { + writer.uint32(32).uint64(message.pageTotal); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + for (const v of message.txs) { + exports.TxResponse.encode(v, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSearchTxsResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.totalCount = reader.uint64(); + break; + case 2: + message.count = reader.uint64(); + break; + case 3: + message.pageNumber = reader.uint64(); + break; + case 4: + message.pageTotal = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + case 6: + message.txs.push(exports.TxResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSearchTxsResult(); + message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); + message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); + message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); + message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.txs = object.txs?.map(e => exports.TxResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSearchTxsResult(); + if (object.total_count !== undefined && object.total_count !== null) { + message.totalCount = BigInt(object.total_count); + } + if (object.count !== undefined && object.count !== null) { + message.count = BigInt(object.count); + } + if (object.page_number !== undefined && object.page_number !== null) { + message.pageNumber = BigInt(object.page_number); + } + if (object.page_total !== undefined && object.page_total !== null) { + message.pageTotal = BigInt(object.page_total); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + message.txs = object.txs?.map(e => exports.TxResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; + obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; + obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; + obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => e ? exports.TxResponse.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SearchTxsResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SearchTxsResult", + value: exports.SearchTxsResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SearchTxsResult.decode(message.value); + }, + toProto(message) { + return exports.SearchTxsResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + value: exports.SearchTxsResult.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts new file mode 100644 index 00000000..da5ff1f5 --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts @@ -0,0 +1,64 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequest { +} +export interface ConfigRequestProtoMsg { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest"; + value: Uint8Array; +} +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequestAmino { +} +export interface ConfigRequestAminoMsg { + type: "cosmos-sdk/ConfigRequest"; + value: ConfigRequestAmino; +} +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequestSDKType { +} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponse { + minimumGasPrice: string; +} +export interface ConfigResponseProtoMsg { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse"; + value: Uint8Array; +} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponseAmino { + minimum_gas_price?: string; +} +export interface ConfigResponseAminoMsg { + type: "cosmos-sdk/ConfigResponse"; + value: ConfigResponseAmino; +} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponseSDKType { + minimum_gas_price: string; +} +export declare const ConfigRequest: { + typeUrl: string; + encode(_: ConfigRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest; + fromPartial(_: Partial): ConfigRequest; + fromAmino(_: ConfigRequestAmino): ConfigRequest; + toAmino(_: ConfigRequest): ConfigRequestAmino; + fromAminoMsg(object: ConfigRequestAminoMsg): ConfigRequest; + toAminoMsg(message: ConfigRequest): ConfigRequestAminoMsg; + fromProtoMsg(message: ConfigRequestProtoMsg): ConfigRequest; + toProto(message: ConfigRequest): Uint8Array; + toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg; +}; +export declare const ConfigResponse: { + typeUrl: string; + encode(message: ConfigResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse; + fromPartial(object: Partial): ConfigResponse; + fromAmino(object: ConfigResponseAmino): ConfigResponse; + toAmino(message: ConfigResponse): ConfigResponseAmino; + fromAminoMsg(object: ConfigResponseAminoMsg): ConfigResponse; + toAminoMsg(message: ConfigResponse): ConfigResponseAminoMsg; + fromProtoMsg(message: ConfigResponseProtoMsg): ConfigResponse; + toProto(message: ConfigResponse): Uint8Array; + toProtoMsg(message: ConfigResponse): ConfigResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.js b/packages/api/dist/cosmos/base/node/v1beta1/query.js new file mode 100644 index 00000000..574fc3a5 --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.js @@ -0,0 +1,130 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConfigResponse = exports.ConfigRequest = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseConfigRequest() { + return {}; +} +exports.ConfigRequest = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseConfigRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseConfigRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.ConfigRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigRequest", + value: exports.ConfigRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ConfigRequest.decode(message.value); + }, + toProto(message) { + return exports.ConfigRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + value: exports.ConfigRequest.encode(message).finish() + }; + } +}; +function createBaseConfigResponse() { + return { + minimumGasPrice: "" + }; +} +exports.ConfigResponse = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.minimumGasPrice !== "") { + writer.uint32(10).string(message.minimumGasPrice); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minimumGasPrice = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConfigResponse(); + message.minimumGasPrice = object.minimumGasPrice ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConfigResponse(); + if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { + message.minimumGasPrice = object.minimum_gas_price; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; + return obj; + }, + fromAminoMsg(object) { + return exports.ConfigResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigResponse", + value: exports.ConfigResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ConfigResponse.decode(message.value); + }, + toProto(message) { + return exports.ConfigResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + value: exports.ConfigResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..0855fb5b --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts @@ -0,0 +1,9 @@ +import { LCDClient } from "@cosmology/lcd"; +import { ConfigRequest, ConfigResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + config(_params?: ConfigRequest): Promise; +} diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js new file mode 100644 index 00000000..8f902e77 --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.config = this.config.bind(this); + } + /* Config queries for the operator configuration. */ + async config(_params = {}) { + const endpoint = `cosmos/base/node/v1beta1/config`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts new file mode 100644 index 00000000..f1f8deab --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts @@ -0,0 +1,16 @@ +import { Rpc } from "../../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { ConfigRequest, ConfigResponse } from "./query"; +/** Service defines the gRPC querier service for node related queries. */ +export interface Service { + /** Config queries for the operator configuration. */ + config(request?: ConfigRequest): Promise; +} +export declare class ServiceClientImpl implements Service { + private readonly rpc; + constructor(rpc: Rpc); + config(request?: ConfigRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + config(request?: ConfigRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js new file mode 100644 index 00000000..34b4d741 --- /dev/null +++ b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.ServiceClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class ServiceClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.config = this.config.bind(this); + } + config(request = {}) { + const data = query_1.ConfigRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); + return promise.then(data => query_1.ConfigResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.ServiceClientImpl = ServiceClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new ServiceClientImpl(rpc); + return { + config(request) { + return queryService.config(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts b/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts new file mode 100644 index 00000000..3f291154 --- /dev/null +++ b/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts @@ -0,0 +1,198 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequest { + /** + * 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. + */ + key: Uint8Array; + /** + * 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. + */ + offset: bigint; + /** + * 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. + */ + limit: bigint; + /** + * 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. + */ + countTotal: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * + * Since: cosmos-sdk 0.43 + */ + reverse: boolean; +} +export interface PageRequestProtoMsg { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; + value: Uint8Array; +} +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequestAmino { + /** + * 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. + */ + key?: string; + /** + * 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. + */ + offset?: string; + /** + * 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. + */ + limit?: string; + /** + * 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. + */ + count_total?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * + * Since: cosmos-sdk 0.43 + */ + reverse?: boolean; +} +export interface PageRequestAminoMsg { + type: "cosmos-sdk/PageRequest"; + value: PageRequestAmino; +} +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequestSDKType { + key: Uint8Array; + offset: bigint; + limit: bigint; + count_total: boolean; + reverse: boolean; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponse { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently. It will be empty if + * there are no more results. + */ + nextKey: Uint8Array; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + */ + total: bigint; +} +export interface PageResponseProtoMsg { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; + value: Uint8Array; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponseAmino { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently. It will be empty if + * there are no more results. + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + */ + total?: string; +} +export interface PageResponseAminoMsg { + type: "cosmos-sdk/PageResponse"; + value: PageResponseAmino; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponseSDKType { + next_key: Uint8Array; + total: bigint; +} +export declare const PageRequest: { + typeUrl: string; + encode(message: PageRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PageRequest; + fromPartial(object: Partial): PageRequest; + fromAmino(object: PageRequestAmino): PageRequest; + toAmino(message: PageRequest): PageRequestAmino; + fromAminoMsg(object: PageRequestAminoMsg): PageRequest; + toAminoMsg(message: PageRequest): PageRequestAminoMsg; + fromProtoMsg(message: PageRequestProtoMsg): PageRequest; + toProto(message: PageRequest): Uint8Array; + toProtoMsg(message: PageRequest): PageRequestProtoMsg; +}; +export declare const PageResponse: { + typeUrl: string; + encode(message: PageResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PageResponse; + fromPartial(object: Partial): PageResponse; + fromAmino(object: PageResponseAmino): PageResponse; + toAmino(message: PageResponse): PageResponseAmino; + fromAminoMsg(object: PageResponseAminoMsg): PageResponse; + toAminoMsg(message: PageResponse): PageResponseAminoMsg; + fromProtoMsg(message: PageResponseProtoMsg): PageResponse; + toProto(message: PageResponse): Uint8Array; + toProtoMsg(message: PageResponse): PageResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/base/query/v1beta1/pagination.js b/packages/api/dist/cosmos/base/query/v1beta1/pagination.js new file mode 100644 index 00000000..0988cae7 --- /dev/null +++ b/packages/api/dist/cosmos/base/query/v1beta1/pagination.js @@ -0,0 +1,204 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PageResponse = exports.PageRequest = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBasePageRequest() { + return { + key: new Uint8Array(), + offset: BigInt(0), + limit: BigInt(0), + countTotal: false, + reverse: false + }; +} +exports.PageRequest = { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.offset !== BigInt(0)) { + writer.uint32(16).uint64(message.offset); + } + if (message.limit !== BigInt(0)) { + writer.uint32(24).uint64(message.limit); + } + if (message.countTotal === true) { + writer.uint32(32).bool(message.countTotal); + } + if (message.reverse === true) { + writer.uint32(40).bool(message.reverse); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.offset = reader.uint64(); + break; + case 3: + message.limit = reader.uint64(); + break; + case 4: + message.countTotal = reader.bool(); + break; + case 5: + message.reverse = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePageRequest(); + message.key = object.key ?? new Uint8Array(); + message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.countTotal = object.countTotal ?? false; + message.reverse = object.reverse ?? false; + return message; + }, + fromAmino(object) { + const message = createBasePageRequest(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + if (object.offset !== undefined && object.offset !== null) { + message.offset = BigInt(object.offset); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + if (object.count_total !== undefined && object.count_total !== null) { + message.countTotal = object.count_total; + } + if (object.reverse !== undefined && object.reverse !== null) { + message.reverse = object.reverse; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + obj.count_total = message.countTotal === false ? undefined : message.countTotal; + obj.reverse = message.reverse === false ? undefined : message.reverse; + return obj; + }, + fromAminoMsg(object) { + return exports.PageRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PageRequest", + value: exports.PageRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PageRequest.decode(message.value); + }, + toProto(message) { + return exports.PageRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + value: exports.PageRequest.encode(message).finish() + }; + } +}; +function createBasePageResponse() { + return { + nextKey: new Uint8Array(), + total: BigInt(0) + }; +} +exports.PageResponse = { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.nextKey.length !== 0) { + writer.uint32(10).bytes(message.nextKey); + } + if (message.total !== BigInt(0)) { + writer.uint32(16).uint64(message.total); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nextKey = reader.bytes(); + break; + case 2: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePageResponse(); + message.nextKey = object.nextKey ?? new Uint8Array(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBasePageResponse(); + if (object.next_key !== undefined && object.next_key !== null) { + message.nextKey = (0, helpers_1.bytesFromBase64)(object.next_key); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.next_key = message.nextKey ? (0, helpers_1.base64FromBytes)(message.nextKey) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PageResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PageResponse", + value: exports.PageResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PageResponse.decode(message.value); + }, + toProto(message) { + return exports.PageResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + value: exports.PageResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts new file mode 100644 index 00000000..4574dab2 --- /dev/null +++ b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts @@ -0,0 +1,1057 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptor { + /** + * AuthnDescriptor provides information on how to authenticate transactions on the application + * NOTE: experimental and subject to change in future releases. + */ + authn?: AuthnDescriptor; + /** chain provides the chain descriptor */ + chain?: ChainDescriptor; + /** codec provides metadata information regarding codec related types */ + codec?: CodecDescriptor; + /** configuration provides metadata information regarding the sdk.Config type */ + configuration?: ConfigurationDescriptor; + /** query_services provides metadata information regarding the available queriable endpoints */ + queryServices?: QueryServicesDescriptor; + /** tx provides metadata information regarding how to send transactions to the given application */ + tx?: TxDescriptor; +} +export interface AppDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; + value: Uint8Array; +} +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptorAmino { + /** + * AuthnDescriptor provides information on how to authenticate transactions on the application + * NOTE: experimental and subject to change in future releases. + */ + authn?: AuthnDescriptorAmino; + /** chain provides the chain descriptor */ + chain?: ChainDescriptorAmino; + /** codec provides metadata information regarding codec related types */ + codec?: CodecDescriptorAmino; + /** configuration provides metadata information regarding the sdk.Config type */ + configuration?: ConfigurationDescriptorAmino; + /** query_services provides metadata information regarding the available queriable endpoints */ + query_services?: QueryServicesDescriptorAmino; + /** tx provides metadata information regarding how to send transactions to the given application */ + tx?: TxDescriptorAmino; +} +export interface AppDescriptorAminoMsg { + type: "cosmos-sdk/AppDescriptor"; + value: AppDescriptorAmino; +} +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptorSDKType { + authn?: AuthnDescriptorSDKType; + chain?: ChainDescriptorSDKType; + codec?: CodecDescriptorSDKType; + configuration?: ConfigurationDescriptorSDKType; + query_services?: QueryServicesDescriptorSDKType; + tx?: TxDescriptorSDKType; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptor { + /** + * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + * it is not meant to support polymorphism of transaction types, it is supposed to be used by + * reflection clients to understand if they can handle a specific transaction type in an application. + */ + fullname: string; + /** msgs lists the accepted application messages (sdk.Msg) */ + msgs: MsgDescriptor[]; +} +export interface TxDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; + value: Uint8Array; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptorAmino { + /** + * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + * it is not meant to support polymorphism of transaction types, it is supposed to be used by + * reflection clients to understand if they can handle a specific transaction type in an application. + */ + fullname?: string; + /** msgs lists the accepted application messages (sdk.Msg) */ + msgs?: MsgDescriptorAmino[]; +} +export interface TxDescriptorAminoMsg { + type: "cosmos-sdk/TxDescriptor"; + value: TxDescriptorAmino; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptorSDKType { + fullname: string; + msgs: MsgDescriptorSDKType[]; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptor { + /** sign_modes defines the supported signature algorithm */ + signModes: SigningModeDescriptor[]; +} +export interface AuthnDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; + value: Uint8Array; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptorAmino { + /** sign_modes defines the supported signature algorithm */ + sign_modes?: SigningModeDescriptorAmino[]; +} +export interface AuthnDescriptorAminoMsg { + type: "cosmos-sdk/AuthnDescriptor"; + value: AuthnDescriptorAmino; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptorSDKType { + sign_modes: SigningModeDescriptorSDKType[]; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptor { + /** name defines the unique name of the signing mode */ + name: string; + /** number is the unique int32 identifier for the sign_mode enum */ + number: number; + /** + * authn_info_provider_method_fullname defines the fullname of the method to call to get + * the metadata required to authenticate using the provided sign_modes + */ + authnInfoProviderMethodFullname: string; +} +export interface SigningModeDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; + value: Uint8Array; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptorAmino { + /** name defines the unique name of the signing mode */ + name?: string; + /** number is the unique int32 identifier for the sign_mode enum */ + number?: number; + /** + * authn_info_provider_method_fullname defines the fullname of the method to call to get + * the metadata required to authenticate using the provided sign_modes + */ + authn_info_provider_method_fullname?: string; +} +export interface SigningModeDescriptorAminoMsg { + type: "cosmos-sdk/SigningModeDescriptor"; + value: SigningModeDescriptorAmino; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptorSDKType { + name: string; + number: number; + authn_info_provider_method_fullname: string; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptor { + /** id is the chain id */ + id: string; +} +export interface ChainDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; + value: Uint8Array; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptorAmino { + /** id is the chain id */ + id?: string; +} +export interface ChainDescriptorAminoMsg { + type: "cosmos-sdk/ChainDescriptor"; + value: ChainDescriptorAmino; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptorSDKType { + id: string; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptor { + /** interfaces is a list of the registerted interfaces descriptors */ + interfaces: InterfaceDescriptor[]; +} +export interface CodecDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; + value: Uint8Array; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptorAmino { + /** interfaces is a list of the registerted interfaces descriptors */ + interfaces?: InterfaceDescriptorAmino[]; +} +export interface CodecDescriptorAminoMsg { + type: "cosmos-sdk/CodecDescriptor"; + value: CodecDescriptorAmino; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptorSDKType { + interfaces: InterfaceDescriptorSDKType[]; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptor { + /** fullname is the name of the interface */ + fullname: string; + /** + * interface_accepting_messages contains information regarding the proto messages which contain the interface as + * google.protobuf.Any field + */ + interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; + /** interface_implementers is a list of the descriptors of the interface implementers */ + interfaceImplementers: InterfaceImplementerDescriptor[]; +} +export interface InterfaceDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; + value: Uint8Array; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptorAmino { + /** fullname is the name of the interface */ + fullname?: string; + /** + * interface_accepting_messages contains information regarding the proto messages which contain the interface as + * google.protobuf.Any field + */ + interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; + /** interface_implementers is a list of the descriptors of the interface implementers */ + interface_implementers?: InterfaceImplementerDescriptorAmino[]; +} +export interface InterfaceDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceDescriptor"; + value: InterfaceDescriptorAmino; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptorSDKType { + fullname: string; + interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; + interface_implementers: InterfaceImplementerDescriptorSDKType[]; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptor { + /** fullname is the protobuf queryable name of the interface implementer */ + fullname: string; + /** + * type_url defines the type URL used when marshalling the type as any + * this is required so we can provide type safe google.protobuf.Any marshalling and + * unmarshalling, making sure that we don't accept just 'any' type + * in our interface fields + */ + typeUrl: string; +} +export interface InterfaceImplementerDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; + value: Uint8Array; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptorAmino { + /** fullname is the protobuf queryable name of the interface implementer */ + fullname?: string; + /** + * type_url defines the type URL used when marshalling the type as any + * this is required so we can provide type safe google.protobuf.Any marshalling and + * unmarshalling, making sure that we don't accept just 'any' type + * in our interface fields + */ + type_url?: string; +} +export interface InterfaceImplementerDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceImplementerDescriptor"; + value: InterfaceImplementerDescriptorAmino; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptorSDKType { + fullname: string; + type_url: string; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptor { + /** fullname is the protobuf fullname of the type containing the interface */ + fullname: string; + /** + * field_descriptor_names is a list of the protobuf name (not fullname) of the field + * which contains the interface as google.protobuf.Any (the interface is the same, but + * it can be in multiple fields of the same proto message) + */ + fieldDescriptorNames: string[]; +} +export interface InterfaceAcceptingMessageDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; + value: Uint8Array; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptorAmino { + /** fullname is the protobuf fullname of the type containing the interface */ + fullname?: string; + /** + * field_descriptor_names is a list of the protobuf name (not fullname) of the field + * which contains the interface as google.protobuf.Any (the interface is the same, but + * it can be in multiple fields of the same proto message) + */ + field_descriptor_names?: string[]; +} +export interface InterfaceAcceptingMessageDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; + value: InterfaceAcceptingMessageDescriptorAmino; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptorSDKType { + fullname: string; + field_descriptor_names: string[]; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptor { + /** bech32_account_address_prefix is the account address prefix */ + bech32AccountAddressPrefix: string; +} +export interface ConfigurationDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; + value: Uint8Array; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptorAmino { + /** bech32_account_address_prefix is the account address prefix */ + bech32_account_address_prefix?: string; +} +export interface ConfigurationDescriptorAminoMsg { + type: "cosmos-sdk/ConfigurationDescriptor"; + value: ConfigurationDescriptorAmino; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptorSDKType { + bech32_account_address_prefix: string; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptor { + /** msg_type_url contains the TypeURL of a sdk.Msg. */ + msgTypeUrl: string; +} +export interface MsgDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; + value: Uint8Array; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptorAmino { + /** msg_type_url contains the TypeURL of a sdk.Msg. */ + msg_type_url?: string; +} +export interface MsgDescriptorAminoMsg { + type: "cosmos-sdk/MsgDescriptor"; + value: MsgDescriptorAmino; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptorSDKType { + msg_type_url: string; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequest { +} +export interface GetAuthnDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; + value: Uint8Array; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequestAmino { +} +export interface GetAuthnDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetAuthnDescriptorRequest"; + value: GetAuthnDescriptorRequestAmino; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequestSDKType { +} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponse { + /** authn describes how to authenticate to the application when sending transactions */ + authn?: AuthnDescriptor; +} +export interface GetAuthnDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; + value: Uint8Array; +} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponseAmino { + /** authn describes how to authenticate to the application when sending transactions */ + authn?: AuthnDescriptorAmino; +} +export interface GetAuthnDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetAuthnDescriptorResponse"; + value: GetAuthnDescriptorResponseAmino; +} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponseSDKType { + authn?: AuthnDescriptorSDKType; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequest { +} +export interface GetChainDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; + value: Uint8Array; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequestAmino { +} +export interface GetChainDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetChainDescriptorRequest"; + value: GetChainDescriptorRequestAmino; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequestSDKType { +} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponse { + /** chain describes application chain information */ + chain?: ChainDescriptor; +} +export interface GetChainDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; + value: Uint8Array; +} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponseAmino { + /** chain describes application chain information */ + chain?: ChainDescriptorAmino; +} +export interface GetChainDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetChainDescriptorResponse"; + value: GetChainDescriptorResponseAmino; +} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponseSDKType { + chain?: ChainDescriptorSDKType; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequest { +} +export interface GetCodecDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; + value: Uint8Array; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequestAmino { +} +export interface GetCodecDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetCodecDescriptorRequest"; + value: GetCodecDescriptorRequestAmino; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequestSDKType { +} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponse { + /** codec describes the application codec such as registered interfaces and implementations */ + codec?: CodecDescriptor; +} +export interface GetCodecDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; + value: Uint8Array; +} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponseAmino { + /** codec describes the application codec such as registered interfaces and implementations */ + codec?: CodecDescriptorAmino; +} +export interface GetCodecDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetCodecDescriptorResponse"; + value: GetCodecDescriptorResponseAmino; +} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponseSDKType { + codec?: CodecDescriptorSDKType; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequest { +} +export interface GetConfigurationDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; + value: Uint8Array; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequestAmino { +} +export interface GetConfigurationDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetConfigurationDescriptorRequest"; + value: GetConfigurationDescriptorRequestAmino; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequestSDKType { +} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponse { + /** config describes the application's sdk.Config */ + config?: ConfigurationDescriptor; +} +export interface GetConfigurationDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; + value: Uint8Array; +} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponseAmino { + /** config describes the application's sdk.Config */ + config?: ConfigurationDescriptorAmino; +} +export interface GetConfigurationDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetConfigurationDescriptorResponse"; + value: GetConfigurationDescriptorResponseAmino; +} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponseSDKType { + config?: ConfigurationDescriptorSDKType; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequest { +} +export interface GetQueryServicesDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; + value: Uint8Array; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequestAmino { +} +export interface GetQueryServicesDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; + value: GetQueryServicesDescriptorRequestAmino; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequestSDKType { +} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponse { + /** queries provides information on the available queryable services */ + queries?: QueryServicesDescriptor; +} +export interface GetQueryServicesDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; + value: Uint8Array; +} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponseAmino { + /** queries provides information on the available queryable services */ + queries?: QueryServicesDescriptorAmino; +} +export interface GetQueryServicesDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; + value: GetQueryServicesDescriptorResponseAmino; +} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponseSDKType { + queries?: QueryServicesDescriptorSDKType; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequest { +} +export interface GetTxDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; + value: Uint8Array; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequestAmino { +} +export interface GetTxDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetTxDescriptorRequest"; + value: GetTxDescriptorRequestAmino; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequestSDKType { +} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponse { + /** + * tx provides information on msgs that can be forwarded to the application + * alongside the accepted transaction protobuf type + */ + tx?: TxDescriptor; +} +export interface GetTxDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; + value: Uint8Array; +} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponseAmino { + /** + * tx provides information on msgs that can be forwarded to the application + * alongside the accepted transaction protobuf type + */ + tx?: TxDescriptorAmino; +} +export interface GetTxDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetTxDescriptorResponse"; + value: GetTxDescriptorResponseAmino; +} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponseSDKType { + tx?: TxDescriptorSDKType; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptor { + /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ + queryServices: QueryServiceDescriptor[]; +} +export interface QueryServicesDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; + value: Uint8Array; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptorAmino { + /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ + query_services?: QueryServiceDescriptorAmino[]; +} +export interface QueryServicesDescriptorAminoMsg { + type: "cosmos-sdk/QueryServicesDescriptor"; + value: QueryServicesDescriptorAmino; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptorSDKType { + query_services: QueryServiceDescriptorSDKType[]; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptor { + /** fullname is the protobuf fullname of the service descriptor */ + fullname: string; + /** is_module describes if this service is actually exposed by an application's module */ + isModule: boolean; + /** methods provides a list of query service methods */ + methods: QueryMethodDescriptor[]; +} +export interface QueryServiceDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; + value: Uint8Array; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptorAmino { + /** fullname is the protobuf fullname of the service descriptor */ + fullname?: string; + /** is_module describes if this service is actually exposed by an application's module */ + is_module?: boolean; + /** methods provides a list of query service methods */ + methods?: QueryMethodDescriptorAmino[]; +} +export interface QueryServiceDescriptorAminoMsg { + type: "cosmos-sdk/QueryServiceDescriptor"; + value: QueryServiceDescriptorAmino; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptorSDKType { + fullname: string; + is_module: boolean; + methods: QueryMethodDescriptorSDKType[]; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptor { + /** name is the protobuf name (not fullname) of the method */ + name: string; + /** + * full_query_path is the path that can be used to query + * this method via tendermint abci.Query + */ + fullQueryPath: string; +} +export interface QueryMethodDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; + value: Uint8Array; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptorAmino { + /** name is the protobuf name (not fullname) of the method */ + name?: string; + /** + * full_query_path is the path that can be used to query + * this method via tendermint abci.Query + */ + full_query_path?: string; +} +export interface QueryMethodDescriptorAminoMsg { + type: "cosmos-sdk/QueryMethodDescriptor"; + value: QueryMethodDescriptorAmino; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptorSDKType { + name: string; + full_query_path: string; +} +export declare const AppDescriptor: { + typeUrl: string; + encode(message: AppDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor; + fromPartial(object: Partial): AppDescriptor; + fromAmino(object: AppDescriptorAmino): AppDescriptor; + toAmino(message: AppDescriptor): AppDescriptorAmino; + fromAminoMsg(object: AppDescriptorAminoMsg): AppDescriptor; + toAminoMsg(message: AppDescriptor): AppDescriptorAminoMsg; + fromProtoMsg(message: AppDescriptorProtoMsg): AppDescriptor; + toProto(message: AppDescriptor): Uint8Array; + toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg; +}; +export declare const TxDescriptor: { + typeUrl: string; + encode(message: TxDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor; + fromPartial(object: Partial): TxDescriptor; + fromAmino(object: TxDescriptorAmino): TxDescriptor; + toAmino(message: TxDescriptor): TxDescriptorAmino; + fromAminoMsg(object: TxDescriptorAminoMsg): TxDescriptor; + toAminoMsg(message: TxDescriptor): TxDescriptorAminoMsg; + fromProtoMsg(message: TxDescriptorProtoMsg): TxDescriptor; + toProto(message: TxDescriptor): Uint8Array; + toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg; +}; +export declare const AuthnDescriptor: { + typeUrl: string; + encode(message: AuthnDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor; + fromPartial(object: Partial): AuthnDescriptor; + fromAmino(object: AuthnDescriptorAmino): AuthnDescriptor; + toAmino(message: AuthnDescriptor): AuthnDescriptorAmino; + fromAminoMsg(object: AuthnDescriptorAminoMsg): AuthnDescriptor; + toAminoMsg(message: AuthnDescriptor): AuthnDescriptorAminoMsg; + fromProtoMsg(message: AuthnDescriptorProtoMsg): AuthnDescriptor; + toProto(message: AuthnDescriptor): Uint8Array; + toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg; +}; +export declare const SigningModeDescriptor: { + typeUrl: string; + encode(message: SigningModeDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor; + fromPartial(object: Partial): SigningModeDescriptor; + fromAmino(object: SigningModeDescriptorAmino): SigningModeDescriptor; + toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino; + fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor; + toAminoMsg(message: SigningModeDescriptor): SigningModeDescriptorAminoMsg; + fromProtoMsg(message: SigningModeDescriptorProtoMsg): SigningModeDescriptor; + toProto(message: SigningModeDescriptor): Uint8Array; + toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg; +}; +export declare const ChainDescriptor: { + typeUrl: string; + encode(message: ChainDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor; + fromPartial(object: Partial): ChainDescriptor; + fromAmino(object: ChainDescriptorAmino): ChainDescriptor; + toAmino(message: ChainDescriptor): ChainDescriptorAmino; + fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor; + toAminoMsg(message: ChainDescriptor): ChainDescriptorAminoMsg; + fromProtoMsg(message: ChainDescriptorProtoMsg): ChainDescriptor; + toProto(message: ChainDescriptor): Uint8Array; + toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg; +}; +export declare const CodecDescriptor: { + typeUrl: string; + encode(message: CodecDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor; + fromPartial(object: Partial): CodecDescriptor; + fromAmino(object: CodecDescriptorAmino): CodecDescriptor; + toAmino(message: CodecDescriptor): CodecDescriptorAmino; + fromAminoMsg(object: CodecDescriptorAminoMsg): CodecDescriptor; + toAminoMsg(message: CodecDescriptor): CodecDescriptorAminoMsg; + fromProtoMsg(message: CodecDescriptorProtoMsg): CodecDescriptor; + toProto(message: CodecDescriptor): Uint8Array; + toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg; +}; +export declare const InterfaceDescriptor: { + typeUrl: string; + encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; + fromPartial(object: Partial): InterfaceDescriptor; + fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; + toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; + fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; + toAminoMsg(message: InterfaceDescriptor): InterfaceDescriptorAminoMsg; + fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; + toProto(message: InterfaceDescriptor): Uint8Array; + toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; +}; +export declare const InterfaceImplementerDescriptor: { + typeUrl: string; + encode(message: InterfaceImplementerDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor; + fromPartial(object: Partial): InterfaceImplementerDescriptor; + fromAmino(object: InterfaceImplementerDescriptorAmino): InterfaceImplementerDescriptor; + toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino; + fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor; + toAminoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAminoMsg; + fromProtoMsg(message: InterfaceImplementerDescriptorProtoMsg): InterfaceImplementerDescriptor; + toProto(message: InterfaceImplementerDescriptor): Uint8Array; + toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg; +}; +export declare const InterfaceAcceptingMessageDescriptor: { + typeUrl: string; + encode(message: InterfaceAcceptingMessageDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; + fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor; + fromAmino(object: InterfaceAcceptingMessageDescriptorAmino): InterfaceAcceptingMessageDescriptor; + toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino; + fromAminoMsg(object: InterfaceAcceptingMessageDescriptorAminoMsg): InterfaceAcceptingMessageDescriptor; + toAminoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAminoMsg; + fromProtoMsg(message: InterfaceAcceptingMessageDescriptorProtoMsg): InterfaceAcceptingMessageDescriptor; + toProto(message: InterfaceAcceptingMessageDescriptor): Uint8Array; + toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg; +}; +export declare const ConfigurationDescriptor: { + typeUrl: string; + encode(message: ConfigurationDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor; + fromPartial(object: Partial): ConfigurationDescriptor; + fromAmino(object: ConfigurationDescriptorAmino): ConfigurationDescriptor; + toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino; + fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor; + toAminoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorAminoMsg; + fromProtoMsg(message: ConfigurationDescriptorProtoMsg): ConfigurationDescriptor; + toProto(message: ConfigurationDescriptor): Uint8Array; + toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg; +}; +export declare const MsgDescriptor: { + typeUrl: string; + encode(message: MsgDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor; + fromPartial(object: Partial): MsgDescriptor; + fromAmino(object: MsgDescriptorAmino): MsgDescriptor; + toAmino(message: MsgDescriptor): MsgDescriptorAmino; + fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor; + toAminoMsg(message: MsgDescriptor): MsgDescriptorAminoMsg; + fromProtoMsg(message: MsgDescriptorProtoMsg): MsgDescriptor; + toProto(message: MsgDescriptor): Uint8Array; + toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg; +}; +export declare const GetAuthnDescriptorRequest: { + typeUrl: string; + encode(_: GetAuthnDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest; + fromPartial(_: Partial): GetAuthnDescriptorRequest; + fromAmino(_: GetAuthnDescriptorRequestAmino): GetAuthnDescriptorRequest; + toAmino(_: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAmino; + fromAminoMsg(object: GetAuthnDescriptorRequestAminoMsg): GetAuthnDescriptorRequest; + toAminoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAminoMsg; + fromProtoMsg(message: GetAuthnDescriptorRequestProtoMsg): GetAuthnDescriptorRequest; + toProto(message: GetAuthnDescriptorRequest): Uint8Array; + toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg; +}; +export declare const GetAuthnDescriptorResponse: { + typeUrl: string; + encode(message: GetAuthnDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse; + fromPartial(object: Partial): GetAuthnDescriptorResponse; + fromAmino(object: GetAuthnDescriptorResponseAmino): GetAuthnDescriptorResponse; + toAmino(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAmino; + fromAminoMsg(object: GetAuthnDescriptorResponseAminoMsg): GetAuthnDescriptorResponse; + toAminoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAminoMsg; + fromProtoMsg(message: GetAuthnDescriptorResponseProtoMsg): GetAuthnDescriptorResponse; + toProto(message: GetAuthnDescriptorResponse): Uint8Array; + toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg; +}; +export declare const GetChainDescriptorRequest: { + typeUrl: string; + encode(_: GetChainDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest; + fromPartial(_: Partial): GetChainDescriptorRequest; + fromAmino(_: GetChainDescriptorRequestAmino): GetChainDescriptorRequest; + toAmino(_: GetChainDescriptorRequest): GetChainDescriptorRequestAmino; + fromAminoMsg(object: GetChainDescriptorRequestAminoMsg): GetChainDescriptorRequest; + toAminoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestAminoMsg; + fromProtoMsg(message: GetChainDescriptorRequestProtoMsg): GetChainDescriptorRequest; + toProto(message: GetChainDescriptorRequest): Uint8Array; + toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg; +}; +export declare const GetChainDescriptorResponse: { + typeUrl: string; + encode(message: GetChainDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse; + fromPartial(object: Partial): GetChainDescriptorResponse; + fromAmino(object: GetChainDescriptorResponseAmino): GetChainDescriptorResponse; + toAmino(message: GetChainDescriptorResponse): GetChainDescriptorResponseAmino; + fromAminoMsg(object: GetChainDescriptorResponseAminoMsg): GetChainDescriptorResponse; + toAminoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseAminoMsg; + fromProtoMsg(message: GetChainDescriptorResponseProtoMsg): GetChainDescriptorResponse; + toProto(message: GetChainDescriptorResponse): Uint8Array; + toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg; +}; +export declare const GetCodecDescriptorRequest: { + typeUrl: string; + encode(_: GetCodecDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest; + fromPartial(_: Partial): GetCodecDescriptorRequest; + fromAmino(_: GetCodecDescriptorRequestAmino): GetCodecDescriptorRequest; + toAmino(_: GetCodecDescriptorRequest): GetCodecDescriptorRequestAmino; + fromAminoMsg(object: GetCodecDescriptorRequestAminoMsg): GetCodecDescriptorRequest; + toAminoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestAminoMsg; + fromProtoMsg(message: GetCodecDescriptorRequestProtoMsg): GetCodecDescriptorRequest; + toProto(message: GetCodecDescriptorRequest): Uint8Array; + toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg; +}; +export declare const GetCodecDescriptorResponse: { + typeUrl: string; + encode(message: GetCodecDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse; + fromPartial(object: Partial): GetCodecDescriptorResponse; + fromAmino(object: GetCodecDescriptorResponseAmino): GetCodecDescriptorResponse; + toAmino(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAmino; + fromAminoMsg(object: GetCodecDescriptorResponseAminoMsg): GetCodecDescriptorResponse; + toAminoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAminoMsg; + fromProtoMsg(message: GetCodecDescriptorResponseProtoMsg): GetCodecDescriptorResponse; + toProto(message: GetCodecDescriptorResponse): Uint8Array; + toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg; +}; +export declare const GetConfigurationDescriptorRequest: { + typeUrl: string; + encode(_: GetConfigurationDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; + fromPartial(_: Partial): GetConfigurationDescriptorRequest; + fromAmino(_: GetConfigurationDescriptorRequestAmino): GetConfigurationDescriptorRequest; + toAmino(_: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAmino; + fromAminoMsg(object: GetConfigurationDescriptorRequestAminoMsg): GetConfigurationDescriptorRequest; + toAminoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAminoMsg; + fromProtoMsg(message: GetConfigurationDescriptorRequestProtoMsg): GetConfigurationDescriptorRequest; + toProto(message: GetConfigurationDescriptorRequest): Uint8Array; + toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg; +}; +export declare const GetConfigurationDescriptorResponse: { + typeUrl: string; + encode(message: GetConfigurationDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; + fromPartial(object: Partial): GetConfigurationDescriptorResponse; + fromAmino(object: GetConfigurationDescriptorResponseAmino): GetConfigurationDescriptorResponse; + toAmino(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAmino; + fromAminoMsg(object: GetConfigurationDescriptorResponseAminoMsg): GetConfigurationDescriptorResponse; + toAminoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAminoMsg; + fromProtoMsg(message: GetConfigurationDescriptorResponseProtoMsg): GetConfigurationDescriptorResponse; + toProto(message: GetConfigurationDescriptorResponse): Uint8Array; + toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg; +}; +export declare const GetQueryServicesDescriptorRequest: { + typeUrl: string; + encode(_: GetQueryServicesDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; + fromPartial(_: Partial): GetQueryServicesDescriptorRequest; + fromAmino(_: GetQueryServicesDescriptorRequestAmino): GetQueryServicesDescriptorRequest; + toAmino(_: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAmino; + fromAminoMsg(object: GetQueryServicesDescriptorRequestAminoMsg): GetQueryServicesDescriptorRequest; + toAminoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAminoMsg; + fromProtoMsg(message: GetQueryServicesDescriptorRequestProtoMsg): GetQueryServicesDescriptorRequest; + toProto(message: GetQueryServicesDescriptorRequest): Uint8Array; + toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg; +}; +export declare const GetQueryServicesDescriptorResponse: { + typeUrl: string; + encode(message: GetQueryServicesDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; + fromPartial(object: Partial): GetQueryServicesDescriptorResponse; + fromAmino(object: GetQueryServicesDescriptorResponseAmino): GetQueryServicesDescriptorResponse; + toAmino(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAmino; + fromAminoMsg(object: GetQueryServicesDescriptorResponseAminoMsg): GetQueryServicesDescriptorResponse; + toAminoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAminoMsg; + fromProtoMsg(message: GetQueryServicesDescriptorResponseProtoMsg): GetQueryServicesDescriptorResponse; + toProto(message: GetQueryServicesDescriptorResponse): Uint8Array; + toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg; +}; +export declare const GetTxDescriptorRequest: { + typeUrl: string; + encode(_: GetTxDescriptorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest; + fromPartial(_: Partial): GetTxDescriptorRequest; + fromAmino(_: GetTxDescriptorRequestAmino): GetTxDescriptorRequest; + toAmino(_: GetTxDescriptorRequest): GetTxDescriptorRequestAmino; + fromAminoMsg(object: GetTxDescriptorRequestAminoMsg): GetTxDescriptorRequest; + toAminoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestAminoMsg; + fromProtoMsg(message: GetTxDescriptorRequestProtoMsg): GetTxDescriptorRequest; + toProto(message: GetTxDescriptorRequest): Uint8Array; + toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg; +}; +export declare const GetTxDescriptorResponse: { + typeUrl: string; + encode(message: GetTxDescriptorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse; + fromPartial(object: Partial): GetTxDescriptorResponse; + fromAmino(object: GetTxDescriptorResponseAmino): GetTxDescriptorResponse; + toAmino(message: GetTxDescriptorResponse): GetTxDescriptorResponseAmino; + fromAminoMsg(object: GetTxDescriptorResponseAminoMsg): GetTxDescriptorResponse; + toAminoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseAminoMsg; + fromProtoMsg(message: GetTxDescriptorResponseProtoMsg): GetTxDescriptorResponse; + toProto(message: GetTxDescriptorResponse): Uint8Array; + toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg; +}; +export declare const QueryServicesDescriptor: { + typeUrl: string; + encode(message: QueryServicesDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor; + fromPartial(object: Partial): QueryServicesDescriptor; + fromAmino(object: QueryServicesDescriptorAmino): QueryServicesDescriptor; + toAmino(message: QueryServicesDescriptor): QueryServicesDescriptorAmino; + fromAminoMsg(object: QueryServicesDescriptorAminoMsg): QueryServicesDescriptor; + toAminoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorAminoMsg; + fromProtoMsg(message: QueryServicesDescriptorProtoMsg): QueryServicesDescriptor; + toProto(message: QueryServicesDescriptor): Uint8Array; + toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg; +}; +export declare const QueryServiceDescriptor: { + typeUrl: string; + encode(message: QueryServiceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor; + fromPartial(object: Partial): QueryServiceDescriptor; + fromAmino(object: QueryServiceDescriptorAmino): QueryServiceDescriptor; + toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino; + fromAminoMsg(object: QueryServiceDescriptorAminoMsg): QueryServiceDescriptor; + toAminoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorAminoMsg; + fromProtoMsg(message: QueryServiceDescriptorProtoMsg): QueryServiceDescriptor; + toProto(message: QueryServiceDescriptor): Uint8Array; + toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg; +}; +export declare const QueryMethodDescriptor: { + typeUrl: string; + encode(message: QueryMethodDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor; + fromPartial(object: Partial): QueryMethodDescriptor; + fromAmino(object: QueryMethodDescriptorAmino): QueryMethodDescriptor; + toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino; + fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor; + toAminoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorAminoMsg; + fromProtoMsg(message: QueryMethodDescriptorProtoMsg): QueryMethodDescriptor; + toProto(message: QueryMethodDescriptor): Uint8Array; + toProtoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorProtoMsg; +}; diff --git a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js new file mode 100644 index 00000000..36490b51 --- /dev/null +++ b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js @@ -0,0 +1,1925 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryMethodDescriptor = exports.QueryServiceDescriptor = exports.QueryServicesDescriptor = exports.GetTxDescriptorResponse = exports.GetTxDescriptorRequest = exports.GetQueryServicesDescriptorResponse = exports.GetQueryServicesDescriptorRequest = exports.GetConfigurationDescriptorResponse = exports.GetConfigurationDescriptorRequest = exports.GetCodecDescriptorResponse = exports.GetCodecDescriptorRequest = exports.GetChainDescriptorResponse = exports.GetChainDescriptorRequest = exports.GetAuthnDescriptorResponse = exports.GetAuthnDescriptorRequest = exports.MsgDescriptor = exports.ConfigurationDescriptor = exports.InterfaceAcceptingMessageDescriptor = exports.InterfaceImplementerDescriptor = exports.InterfaceDescriptor = exports.CodecDescriptor = exports.ChainDescriptor = exports.SigningModeDescriptor = exports.AuthnDescriptor = exports.TxDescriptor = exports.AppDescriptor = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseAppDescriptor() { + return { + authn: undefined, + chain: undefined, + codec: undefined, + configuration: undefined, + queryServices: undefined, + tx: undefined + }; +} +exports.AppDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authn !== undefined) { + exports.AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + if (message.chain !== undefined) { + exports.ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); + } + if (message.codec !== undefined) { + exports.CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); + } + if (message.configuration !== undefined) { + exports.ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); + } + if (message.queryServices !== undefined) { + exports.QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); + } + if (message.tx !== undefined) { + exports.TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAppDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = exports.AuthnDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.chain = exports.ChainDescriptor.decode(reader, reader.uint32()); + break; + case 3: + message.codec = exports.CodecDescriptor.decode(reader, reader.uint32()); + break; + case 4: + message.configuration = exports.ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + case 5: + message.queryServices = exports.QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + case 6: + message.tx = exports.TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAppDescriptor(); + message.authn = object.authn !== undefined && object.authn !== null ? exports.AuthnDescriptor.fromPartial(object.authn) : undefined; + message.chain = object.chain !== undefined && object.chain !== null ? exports.ChainDescriptor.fromPartial(object.chain) : undefined; + message.codec = object.codec !== undefined && object.codec !== null ? exports.CodecDescriptor.fromPartial(object.codec) : undefined; + message.configuration = object.configuration !== undefined && object.configuration !== null ? exports.ConfigurationDescriptor.fromPartial(object.configuration) : undefined; + message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? exports.QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; + message.tx = object.tx !== undefined && object.tx !== null ? exports.TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAppDescriptor(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = exports.AuthnDescriptor.fromAmino(object.authn); + } + if (object.chain !== undefined && object.chain !== null) { + message.chain = exports.ChainDescriptor.fromAmino(object.chain); + } + if (object.codec !== undefined && object.codec !== null) { + message.codec = exports.CodecDescriptor.fromAmino(object.codec); + } + if (object.configuration !== undefined && object.configuration !== null) { + message.configuration = exports.ConfigurationDescriptor.fromAmino(object.configuration); + } + if (object.query_services !== undefined && object.query_services !== null) { + message.queryServices = exports.QueryServicesDescriptor.fromAmino(object.query_services); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = exports.TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authn = message.authn ? exports.AuthnDescriptor.toAmino(message.authn) : undefined; + obj.chain = message.chain ? exports.ChainDescriptor.toAmino(message.chain) : undefined; + obj.codec = message.codec ? exports.CodecDescriptor.toAmino(message.codec) : undefined; + obj.configuration = message.configuration ? exports.ConfigurationDescriptor.toAmino(message.configuration) : undefined; + obj.query_services = message.queryServices ? exports.QueryServicesDescriptor.toAmino(message.queryServices) : undefined; + obj.tx = message.tx ? exports.TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AppDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AppDescriptor", + value: exports.AppDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AppDescriptor.decode(message.value); + }, + toProto(message) { + return exports.AppDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + value: exports.AppDescriptor.encode(message).finish() + }; + } +}; +function createBaseTxDescriptor() { + return { + fullname: "", + msgs: [] + }; +} +exports.TxDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.msgs) { + exports.MsgDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.msgs.push(exports.MsgDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxDescriptor(); + message.fullname = object.fullname ?? ""; + message.msgs = object.msgs?.map(e => exports.MsgDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.msgs = object.msgs?.map(e => exports.MsgDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? exports.MsgDescriptor.toAmino(e) : undefined); + } + else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.TxDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxDescriptor", + value: exports.TxDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TxDescriptor.decode(message.value); + }, + toProto(message) { + return exports.TxDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + value: exports.TxDescriptor.encode(message).finish() + }; + } +}; +function createBaseAuthnDescriptor() { + return { + signModes: [] + }; +} +exports.AuthnDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.signModes) { + exports.SigningModeDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthnDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signModes.push(exports.SigningModeDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuthnDescriptor(); + message.signModes = object.signModes?.map(e => exports.SigningModeDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseAuthnDescriptor(); + message.signModes = object.sign_modes?.map(e => exports.SigningModeDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signModes) { + obj.sign_modes = message.signModes.map(e => e ? exports.SigningModeDescriptor.toAmino(e) : undefined); + } + else { + obj.sign_modes = message.signModes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.AuthnDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuthnDescriptor", + value: exports.AuthnDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AuthnDescriptor.decode(message.value); + }, + toProto(message) { + return exports.AuthnDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + value: exports.AuthnDescriptor.encode(message).finish() + }; + } +}; +function createBaseSigningModeDescriptor() { + return { + name: "", + number: 0, + authnInfoProviderMethodFullname: "" + }; +} +exports.SigningModeDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.authnInfoProviderMethodFullname !== "") { + writer.uint32(26).string(message.authnInfoProviderMethodFullname); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSigningModeDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.authnInfoProviderMethodFullname = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSigningModeDescriptor(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseSigningModeDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { + message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; + return obj; + }, + fromAminoMsg(object) { + return exports.SigningModeDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SigningModeDescriptor", + value: exports.SigningModeDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SigningModeDescriptor.decode(message.value); + }, + toProto(message) { + return exports.SigningModeDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + value: exports.SigningModeDescriptor.encode(message).finish() + }; + } +}; +function createBaseChainDescriptor() { + return { + id: "" + }; +} +exports.ChainDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChainDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseChainDescriptor(); + message.id = object.id ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseChainDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return exports.ChainDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ChainDescriptor", + value: exports.ChainDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ChainDescriptor.decode(message.value); + }, + toProto(message) { + return exports.ChainDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + value: exports.ChainDescriptor.encode(message).finish() + }; + } +}; +function createBaseCodecDescriptor() { + return { + interfaces: [] + }; +} +exports.CodecDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.interfaces) { + exports.InterfaceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCodecDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interfaces.push(exports.InterfaceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => exports.InterfaceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => exports.InterfaceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.interfaces) { + obj.interfaces = message.interfaces.map(e => e ? exports.InterfaceDescriptor.toAmino(e) : undefined); + } + else { + obj.interfaces = message.interfaces; + } + return obj; + }, + fromAminoMsg(object) { + return exports.CodecDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CodecDescriptor", + value: exports.CodecDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CodecDescriptor.decode(message.value); + }, + toProto(message) { + return exports.CodecDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + value: exports.CodecDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceDescriptor() { + return { + fullname: "", + interfaceAcceptingMessages: [], + interfaceImplementers: [] + }; +} +exports.InterfaceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.interfaceAcceptingMessages) { + exports.InterfaceAcceptingMessageDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.interfaceImplementers) { + exports.InterfaceImplementerDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.interfaceAcceptingMessages.push(exports.InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.interfaceImplementers.push(exports.InterfaceImplementerDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceDescriptor(); + message.fullname = object.fullname ?? ""; + message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => exports.InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; + message.interfaceImplementers = object.interfaceImplementers?.map(e => exports.InterfaceImplementerDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => exports.InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; + message.interfaceImplementers = object.interface_implementers?.map(e => exports.InterfaceImplementerDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.interfaceAcceptingMessages) { + obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? exports.InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); + } + else { + obj.interface_accepting_messages = message.interfaceAcceptingMessages; + } + if (message.interfaceImplementers) { + obj.interface_implementers = message.interfaceImplementers.map(e => e ? exports.InterfaceImplementerDescriptor.toAmino(e) : undefined); + } + else { + obj.interface_implementers = message.interfaceImplementers; + } + return obj; + }, + fromAminoMsg(object) { + return exports.InterfaceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceDescriptor", + value: exports.InterfaceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.InterfaceDescriptor.decode(message.value); + }, + toProto(message) { + return exports.InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + value: exports.InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceImplementerDescriptor() { + return { + fullname: "", + typeUrl: "" + }; +} +exports.InterfaceImplementerDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.typeUrl !== "") { + writer.uint32(18).string(message.typeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceImplementerDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.typeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceImplementerDescriptor(); + message.fullname = object.fullname ?? ""; + message.typeUrl = object.typeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceImplementerDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.type_url !== undefined && object.type_url !== null) { + message.typeUrl = object.type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; + return obj; + }, + fromAminoMsg(object) { + return exports.InterfaceImplementerDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceImplementerDescriptor", + value: exports.InterfaceImplementerDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.InterfaceImplementerDescriptor.decode(message.value); + }, + toProto(message) { + return exports.InterfaceImplementerDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + value: exports.InterfaceImplementerDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceAcceptingMessageDescriptor() { + return { + fullname: "", + fieldDescriptorNames: [] + }; +} +exports.InterfaceAcceptingMessageDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.fieldDescriptorNames) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceAcceptingMessageDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.fieldDescriptorNames.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + message.fullname = object.fullname ?? ""; + message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.fieldDescriptorNames) { + obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); + } + else { + obj.field_descriptor_names = message.fieldDescriptorNames; + } + return obj; + }, + fromAminoMsg(object) { + return exports.InterfaceAcceptingMessageDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", + value: exports.InterfaceAcceptingMessageDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.InterfaceAcceptingMessageDescriptor.decode(message.value); + }, + toProto(message) { + return exports.InterfaceAcceptingMessageDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + value: exports.InterfaceAcceptingMessageDescriptor.encode(message).finish() + }; + } +}; +function createBaseConfigurationDescriptor() { + return { + bech32AccountAddressPrefix: "" + }; +} +exports.ConfigurationDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bech32AccountAddressPrefix !== "") { + writer.uint32(10).string(message.bech32AccountAddressPrefix); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigurationDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32AccountAddressPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConfigurationDescriptor(); + message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConfigurationDescriptor(); + if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { + message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; + return obj; + }, + fromAminoMsg(object) { + return exports.ConfigurationDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigurationDescriptor", + value: exports.ConfigurationDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ConfigurationDescriptor.decode(message.value); + }, + toProto(message) { + return exports.ConfigurationDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + value: exports.ConfigurationDescriptor.encode(message).finish() + }; + } +}; +function createBaseMsgDescriptor() { + return { + msgTypeUrl: "" + }; +} +exports.MsgDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(10).string(message.msgTypeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDescriptor(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDescriptor(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDescriptor", + value: exports.MsgDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDescriptor.decode(message.value); + }, + toProto(message) { + return exports.MsgDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + value: exports.MsgDescriptor.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorRequest() { + return {}; +} +exports.GetAuthnDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetAuthnDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetAuthnDescriptorRequest", + value: exports.GetAuthnDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetAuthnDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetAuthnDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + value: exports.GetAuthnDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorResponse() { + return { + authn: undefined + }; +} +exports.GetAuthnDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authn !== undefined) { + exports.AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = exports.AuthnDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetAuthnDescriptorResponse(); + message.authn = object.authn !== undefined && object.authn !== null ? exports.AuthnDescriptor.fromPartial(object.authn) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetAuthnDescriptorResponse(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = exports.AuthnDescriptor.fromAmino(object.authn); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authn = message.authn ? exports.AuthnDescriptor.toAmino(message.authn) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetAuthnDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetAuthnDescriptorResponse", + value: exports.GetAuthnDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetAuthnDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetAuthnDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + value: exports.GetAuthnDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorRequest() { + return {}; +} +exports.GetChainDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetChainDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetChainDescriptorRequest", + value: exports.GetChainDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetChainDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetChainDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + value: exports.GetChainDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorResponse() { + return { + chain: undefined + }; +} +exports.GetChainDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.chain !== undefined) { + exports.ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chain = exports.ChainDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetChainDescriptorResponse(); + message.chain = object.chain !== undefined && object.chain !== null ? exports.ChainDescriptor.fromPartial(object.chain) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetChainDescriptorResponse(); + if (object.chain !== undefined && object.chain !== null) { + message.chain = exports.ChainDescriptor.fromAmino(object.chain); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chain = message.chain ? exports.ChainDescriptor.toAmino(message.chain) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetChainDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetChainDescriptorResponse", + value: exports.GetChainDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetChainDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetChainDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + value: exports.GetChainDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorRequest() { + return {}; +} +exports.GetCodecDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetCodecDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetCodecDescriptorRequest", + value: exports.GetCodecDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetCodecDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetCodecDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + value: exports.GetCodecDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorResponse() { + return { + codec: undefined + }; +} +exports.GetCodecDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.codec !== undefined) { + exports.CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.codec = exports.CodecDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetCodecDescriptorResponse(); + message.codec = object.codec !== undefined && object.codec !== null ? exports.CodecDescriptor.fromPartial(object.codec) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetCodecDescriptorResponse(); + if (object.codec !== undefined && object.codec !== null) { + message.codec = exports.CodecDescriptor.fromAmino(object.codec); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.codec = message.codec ? exports.CodecDescriptor.toAmino(message.codec) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetCodecDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetCodecDescriptorResponse", + value: exports.GetCodecDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetCodecDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetCodecDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + value: exports.GetCodecDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorRequest() { + return {}; +} +exports.GetConfigurationDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetConfigurationDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetConfigurationDescriptorRequest", + value: exports.GetConfigurationDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetConfigurationDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetConfigurationDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + value: exports.GetConfigurationDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorResponse() { + return { + config: undefined + }; +} +exports.GetConfigurationDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.config !== undefined) { + exports.ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.config = exports.ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetConfigurationDescriptorResponse(); + message.config = object.config !== undefined && object.config !== null ? exports.ConfigurationDescriptor.fromPartial(object.config) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetConfigurationDescriptorResponse(); + if (object.config !== undefined && object.config !== null) { + message.config = exports.ConfigurationDescriptor.fromAmino(object.config); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.config = message.config ? exports.ConfigurationDescriptor.toAmino(message.config) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetConfigurationDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetConfigurationDescriptorResponse", + value: exports.GetConfigurationDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetConfigurationDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetConfigurationDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + value: exports.GetConfigurationDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorRequest() { + return {}; +} +exports.GetQueryServicesDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetQueryServicesDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorRequest", + value: exports.GetQueryServicesDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetQueryServicesDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetQueryServicesDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + value: exports.GetQueryServicesDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorResponse() { + return { + queries: undefined + }; +} +exports.GetQueryServicesDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.queries !== undefined) { + exports.QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queries = exports.QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetQueryServicesDescriptorResponse(); + message.queries = object.queries !== undefined && object.queries !== null ? exports.QueryServicesDescriptor.fromPartial(object.queries) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetQueryServicesDescriptorResponse(); + if (object.queries !== undefined && object.queries !== null) { + message.queries = exports.QueryServicesDescriptor.fromAmino(object.queries); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.queries = message.queries ? exports.QueryServicesDescriptor.toAmino(message.queries) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetQueryServicesDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorResponse", + value: exports.GetQueryServicesDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetQueryServicesDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetQueryServicesDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + value: exports.GetQueryServicesDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorRequest() { + return {}; +} +exports.GetTxDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxDescriptorRequest", + value: exports.GetTxDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxDescriptorRequest.decode(message.value); + }, + toProto(message) { + return exports.GetTxDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + value: exports.GetTxDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorResponse() { + return { + tx: undefined + }; +} +exports.GetTxDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tx !== undefined) { + exports.TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = exports.TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxDescriptorResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? exports.TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxDescriptorResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = exports.TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? exports.TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxDescriptorResponse", + value: exports.GetTxDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxDescriptorResponse.decode(message.value); + }, + toProto(message) { + return exports.GetTxDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + value: exports.GetTxDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryServicesDescriptor() { + return { + queryServices: [] + }; +} +exports.QueryServicesDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.queryServices) { + exports.QueryServiceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServicesDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queryServices.push(exports.QueryServiceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.queryServices?.map(e => exports.QueryServiceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.query_services?.map(e => exports.QueryServiceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.queryServices) { + obj.query_services = message.queryServices.map(e => e ? exports.QueryServiceDescriptor.toAmino(e) : undefined); + } + else { + obj.query_services = message.queryServices; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryServicesDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryServicesDescriptor", + value: exports.QueryServicesDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryServicesDescriptor.decode(message.value); + }, + toProto(message) { + return exports.QueryServicesDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + value: exports.QueryServicesDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryServiceDescriptor() { + return { + fullname: "", + isModule: false, + methods: [] + }; +} +exports.QueryServiceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.isModule === true) { + writer.uint32(16).bool(message.isModule); + } + for (const v of message.methods) { + exports.QueryMethodDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServiceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.isModule = reader.bool(); + break; + case 3: + message.methods.push(exports.QueryMethodDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryServiceDescriptor(); + message.fullname = object.fullname ?? ""; + message.isModule = object.isModule ?? false; + message.methods = object.methods?.map(e => exports.QueryMethodDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryServiceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.is_module !== undefined && object.is_module !== null) { + message.isModule = object.is_module; + } + message.methods = object.methods?.map(e => exports.QueryMethodDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.is_module = message.isModule === false ? undefined : message.isModule; + if (message.methods) { + obj.methods = message.methods.map(e => e ? exports.QueryMethodDescriptor.toAmino(e) : undefined); + } + else { + obj.methods = message.methods; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryServiceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryServiceDescriptor", + value: exports.QueryServiceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryServiceDescriptor.decode(message.value); + }, + toProto(message) { + return exports.QueryServiceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + value: exports.QueryServiceDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryMethodDescriptor() { + return { + name: "", + fullQueryPath: "" + }; +} +exports.QueryMethodDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.fullQueryPath !== "") { + writer.uint32(18).string(message.fullQueryPath); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryMethodDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.fullQueryPath = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryMethodDescriptor(); + message.name = object.name ?? ""; + message.fullQueryPath = object.fullQueryPath ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryMethodDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.full_query_path !== undefined && object.full_query_path !== null) { + message.fullQueryPath = object.full_query_path; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryMethodDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryMethodDescriptor", + value: exports.QueryMethodDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryMethodDescriptor.decode(message.value); + }, + toProto(message) { + return exports.QueryMethodDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + value: exports.QueryMethodDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/base/v1beta1/coin.d.ts b/packages/api/dist/cosmos/base/v1beta1/coin.d.ts new file mode 100644 index 00000000..98c4f140 --- /dev/null +++ b/packages/api/dist/cosmos/base/v1beta1/coin.d.ts @@ -0,0 +1,169 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface Coin { + denom: string; + amount: string; +} +export interface CoinProtoMsg { + typeUrl: "/cosmos.base.v1beta1.Coin"; + value: Uint8Array; +} +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CoinAmino { + denom?: string; + amount?: string; +} +export interface CoinAminoMsg { + type: "cosmos-sdk/Coin"; + value: CoinAmino; +} +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CoinSDKType { + denom: string; + amount: string; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoin { + denom: string; + amount: string; +} +export interface DecCoinProtoMsg { + typeUrl: "/cosmos.base.v1beta1.DecCoin"; + value: Uint8Array; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoinAmino { + denom?: string; + amount?: string; +} +export interface DecCoinAminoMsg { + type: "cosmos-sdk/DecCoin"; + value: DecCoinAmino; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoinSDKType { + denom: string; + amount: string; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProto { + int: string; +} +export interface IntProtoProtoMsg { + typeUrl: "/cosmos.base.v1beta1.IntProto"; + value: Uint8Array; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProtoAmino { + int?: string; +} +export interface IntProtoAminoMsg { + type: "cosmos-sdk/IntProto"; + value: IntProtoAmino; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProtoSDKType { + int: string; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProto { + dec: string; +} +export interface DecProtoProtoMsg { + typeUrl: "/cosmos.base.v1beta1.DecProto"; + value: Uint8Array; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProtoAmino { + dec?: string; +} +export interface DecProtoAminoMsg { + type: "cosmos-sdk/DecProto"; + value: DecProtoAmino; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProtoSDKType { + dec: string; +} +export declare const Coin: { + typeUrl: string; + encode(message: Coin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Coin; + fromPartial(object: Partial): Coin; + fromAmino(object: CoinAmino): Coin; + toAmino(message: Coin): CoinAmino; + fromAminoMsg(object: CoinAminoMsg): Coin; + toAminoMsg(message: Coin): CoinAminoMsg; + fromProtoMsg(message: CoinProtoMsg): Coin; + toProto(message: Coin): Uint8Array; + toProtoMsg(message: Coin): CoinProtoMsg; +}; +export declare const DecCoin: { + typeUrl: string; + encode(message: DecCoin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecCoin; + fromPartial(object: Partial): DecCoin; + fromAmino(object: DecCoinAmino): DecCoin; + toAmino(message: DecCoin): DecCoinAmino; + fromAminoMsg(object: DecCoinAminoMsg): DecCoin; + toAminoMsg(message: DecCoin): DecCoinAminoMsg; + fromProtoMsg(message: DecCoinProtoMsg): DecCoin; + toProto(message: DecCoin): Uint8Array; + toProtoMsg(message: DecCoin): DecCoinProtoMsg; +}; +export declare const IntProto: { + typeUrl: string; + encode(message: IntProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IntProto; + fromPartial(object: Partial): IntProto; + fromAmino(object: IntProtoAmino): IntProto; + toAmino(message: IntProto): IntProtoAmino; + fromAminoMsg(object: IntProtoAminoMsg): IntProto; + toAminoMsg(message: IntProto): IntProtoAminoMsg; + fromProtoMsg(message: IntProtoProtoMsg): IntProto; + toProto(message: IntProto): Uint8Array; + toProtoMsg(message: IntProto): IntProtoProtoMsg; +}; +export declare const DecProto: { + typeUrl: string; + encode(message: DecProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecProto; + fromPartial(object: Partial): DecProto; + fromAmino(object: DecProtoAmino): DecProto; + toAmino(message: DecProto): DecProtoAmino; + fromAminoMsg(object: DecProtoAminoMsg): DecProto; + toAminoMsg(message: DecProto): DecProtoAminoMsg; + fromProtoMsg(message: DecProtoProtoMsg): DecProto; + toProto(message: DecProto): Uint8Array; + toProtoMsg(message: DecProto): DecProtoProtoMsg; +}; diff --git a/packages/api/dist/cosmos/base/v1beta1/coin.js b/packages/api/dist/cosmos/base/v1beta1/coin.js new file mode 100644 index 00000000..3d2431bf --- /dev/null +++ b/packages/api/dist/cosmos/base/v1beta1/coin.js @@ -0,0 +1,305 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DecProto = exports.IntProto = exports.DecCoin = exports.Coin = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseCoin() { + return { + denom: "", + amount: "" + }; +} +exports.Coin = { + typeUrl: "/cosmos.base.v1beta1.Coin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.Coin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Coin", + value: exports.Coin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Coin.decode(message.value); + }, + toProto(message) { + return exports.Coin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.Coin", + value: exports.Coin.encode(message).finish() + }; + } +}; +function createBaseDecCoin() { + return { + denom: "", + amount: "" + }; +} +exports.DecCoin = { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDecCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.DecCoin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecCoin", + value: exports.DecCoin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DecCoin.decode(message.value); + }, + toProto(message) { + return exports.DecCoin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + value: exports.DecCoin.encode(message).finish() + }; + } +}; +function createBaseIntProto() { + return { + int: "" + }; +} +exports.IntProto = { + typeUrl: "/cosmos.base.v1beta1.IntProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.int !== "") { + writer.uint32(10).string(message.int); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIntProto(); + message.int = object.int ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseIntProto(); + if (object.int !== undefined && object.int !== null) { + message.int = object.int; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.int = message.int === "" ? undefined : message.int; + return obj; + }, + fromAminoMsg(object) { + return exports.IntProto.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IntProto", + value: exports.IntProto.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.IntProto.decode(message.value); + }, + toProto(message) { + return exports.IntProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.IntProto", + value: exports.IntProto.encode(message).finish() + }; + } +}; +function createBaseDecProto() { + return { + dec: "" + }; +} +exports.DecProto = { + typeUrl: "/cosmos.base.v1beta1.DecProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.dec !== "") { + writer.uint32(10).string(message.dec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dec = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecProto(); + message.dec = object.dec ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDecProto(); + if (object.dec !== undefined && object.dec !== null) { + message.dec = object.dec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.dec = message.dec === "" ? undefined : message.dec; + return obj; + }, + fromAminoMsg(object) { + return exports.DecProto.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecProto", + value: exports.DecProto.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DecProto.decode(message.value); + }, + toProto(message) { + return exports.DecProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.DecProto", + value: exports.DecProto.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/bundle.d.ts b/packages/api/dist/cosmos/bundle.d.ts new file mode 100644 index 00000000..d0894196 --- /dev/null +++ b/packages/api/dist/cosmos/bundle.d.ts @@ -0,0 +1,7777 @@ +import * as _2 from "./app/module/v1alpha1/module"; +import * as _3 from "./auth/v1beta1/auth"; +import * as _4 from "./auth/v1beta1/genesis"; +import * as _5 from "./auth/v1beta1/query"; +import * as _6 from "./authz/v1beta1/authz"; +import * as _7 from "./authz/v1beta1/event"; +import * as _8 from "./authz/v1beta1/genesis"; +import * as _9 from "./authz/v1beta1/query"; +import * as _10 from "./authz/v1beta1/tx"; +import * as _11 from "./bank/v1beta1/authz"; +import * as _12 from "./bank/v1beta1/bank"; +import * as _13 from "./bank/v1beta1/genesis"; +import * as _14 from "./bank/v1beta1/query"; +import * as _15 from "./bank/v1beta1/tx"; +import * as _16 from "./base/abci/v1beta1/abci"; +import * as _17 from "./base/node/v1beta1/query"; +import * as _18 from "./base/query/v1beta1/pagination"; +import * as _19 from "./base/reflection/v2alpha1/reflection"; +import * as _20 from "./base/v1beta1/coin"; +import * as _21 from "./crypto/ed25519/keys"; +import * as _22 from "./crypto/hd/v1/hd"; +import * as _23 from "./crypto/keyring/v1/record"; +import * as _24 from "./crypto/multisig/keys"; +import * as _25 from "./crypto/secp256k1/keys"; +import * as _26 from "./crypto/secp256r1/keys"; +import * as _27 from "./distribution/v1beta1/distribution"; +import * as _28 from "./distribution/v1beta1/genesis"; +import * as _29 from "./distribution/v1beta1/query"; +import * as _30 from "./distribution/v1beta1/tx"; +import * as _31 from "./feegrant/v1beta1/feegrant"; +import * as _32 from "./feegrant/v1beta1/genesis"; +import * as _33 from "./feegrant/v1beta1/query"; +import * as _34 from "./feegrant/v1beta1/tx"; +import * as _35 from "./gov/v1/genesis"; +import * as _36 from "./gov/v1/gov"; +import * as _37 from "./gov/v1/query"; +import * as _38 from "./gov/v1/tx"; +import * as _39 from "./gov/v1beta1/genesis"; +import * as _40 from "./gov/v1beta1/gov"; +import * as _41 from "./gov/v1beta1/query"; +import * as _42 from "./gov/v1beta1/tx"; +import * as _43 from "./group/v1/events"; +import * as _44 from "./group/v1/genesis"; +import * as _45 from "./group/v1/query"; +import * as _46 from "./group/v1/tx"; +import * as _47 from "./group/v1/types"; +import * as _48 from "./mint/v1beta1/genesis"; +import * as _49 from "./mint/v1beta1/mint"; +import * as _50 from "./mint/v1beta1/query"; +import * as _51 from "./orm/module/v1alpha1/module"; +import * as _52 from "./params/v1beta1/params"; +import * as _53 from "./params/v1beta1/query"; +import * as _54 from "./staking/v1beta1/authz"; +import * as _55 from "./staking/v1beta1/genesis"; +import * as _56 from "./staking/v1beta1/query"; +import * as _57 from "./staking/v1beta1/staking"; +import * as _58 from "./staking/v1beta1/tx"; +import * as _59 from "./tx/signing/v1beta1/signing"; +import * as _60 from "./tx/v1beta1/service"; +import * as _61 from "./tx/v1beta1/tx"; +import * as _62 from "./upgrade/v1beta1/query"; +import * as _63 from "./upgrade/v1beta1/tx"; +import * as _64 from "./upgrade/v1beta1/upgrade"; +import * as _65 from "./vesting/v1beta1/tx"; +import * as _66 from "./vesting/v1beta1/vesting"; +import * as _139 from "./auth/v1beta1/query.lcd"; +import * as _140 from "./authz/v1beta1/query.lcd"; +import * as _141 from "./bank/v1beta1/query.lcd"; +import * as _142 from "./base/node/v1beta1/query.lcd"; +import * as _143 from "./distribution/v1beta1/query.lcd"; +import * as _144 from "./feegrant/v1beta1/query.lcd"; +import * as _145 from "./gov/v1/query.lcd"; +import * as _146 from "./gov/v1beta1/query.lcd"; +import * as _147 from "./group/v1/query.lcd"; +import * as _148 from "./mint/v1beta1/query.lcd"; +import * as _149 from "./params/v1beta1/query.lcd"; +import * as _150 from "./staking/v1beta1/query.lcd"; +import * as _151 from "./tx/v1beta1/service.lcd"; +import * as _152 from "./upgrade/v1beta1/query.lcd"; +import * as _153 from "./auth/v1beta1/query.rpc.Query"; +import * as _154 from "./authz/v1beta1/query.rpc.Query"; +import * as _155 from "./bank/v1beta1/query.rpc.Query"; +import * as _156 from "./base/node/v1beta1/query.rpc.Service"; +import * as _157 from "./distribution/v1beta1/query.rpc.Query"; +import * as _158 from "./feegrant/v1beta1/query.rpc.Query"; +import * as _159 from "./gov/v1/query.rpc.Query"; +import * as _160 from "./gov/v1beta1/query.rpc.Query"; +import * as _161 from "./group/v1/query.rpc.Query"; +import * as _162 from "./mint/v1beta1/query.rpc.Query"; +import * as _163 from "./params/v1beta1/query.rpc.Query"; +import * as _164 from "./staking/v1beta1/query.rpc.Query"; +import * as _165 from "./tx/v1beta1/service.rpc.Service"; +import * as _166 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _167 from "./authz/v1beta1/tx.rpc.msg"; +import * as _168 from "./bank/v1beta1/tx.rpc.msg"; +import * as _169 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _170 from "./feegrant/v1beta1/tx.rpc.msg"; +import * as _171 from "./gov/v1/tx.rpc.msg"; +import * as _172 from "./gov/v1beta1/tx.rpc.msg"; +import * as _173 from "./group/v1/tx.rpc.msg"; +import * as _174 from "./staking/v1beta1/tx.rpc.msg"; +import * as _175 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _176 from "./vesting/v1beta1/tx.rpc.msg"; +export declare namespace cosmos { + namespace app { + namespace module { + const v1alpha1: { + Module: { + typeUrl: string; + encode(_: _2.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _2.Module; + fromPartial(_: Partial<_2.Module>): _2.Module; + fromAmino(_: _2.ModuleAmino): _2.Module; + toAmino(_: _2.Module): _2.ModuleAmino; + fromAminoMsg(object: _2.ModuleAminoMsg): _2.Module; + toAminoMsg(message: _2.Module): _2.ModuleAminoMsg; + fromProtoMsg(message: _2.ModuleProtoMsg): _2.Module; + toProto(message: _2.Module): Uint8Array; + toProtoMsg(message: _2.Module): _2.ModuleProtoMsg; + }; + }; + } + } + namespace auth { + const v1beta1: { + QueryClientImpl: typeof _153.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + accounts(request?: _5.QueryAccountsRequest): Promise<_5.QueryAccountsResponse>; + account(request: _5.QueryAccountRequest): Promise<_5.QueryAccountResponse>; + accountAddressByID(request: _5.QueryAccountAddressByIDRequest): Promise<_5.QueryAccountAddressByIDResponse>; + params(request?: _5.QueryParamsRequest): Promise<_5.QueryParamsResponse>; + moduleAccounts(request?: _5.QueryModuleAccountsRequest): Promise<_5.QueryModuleAccountsResponse>; + moduleAccountByName(request: _5.QueryModuleAccountByNameRequest): Promise<_5.QueryModuleAccountByNameResponse>; + bech32Prefix(request?: _5.Bech32PrefixRequest): Promise<_5.Bech32PrefixResponse>; + addressBytesToString(request: _5.AddressBytesToStringRequest): Promise<_5.AddressBytesToStringResponse>; + addressStringToBytes(request: _5.AddressStringToBytesRequest): Promise<_5.AddressStringToBytesResponse>; + }; + LCDQueryClient: typeof _139.LCDQueryClient; + QueryAccountsRequest: { + typeUrl: string; + encode(message: _5.QueryAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountsRequest; + fromPartial(object: Partial<_5.QueryAccountsRequest>): _5.QueryAccountsRequest; + fromAmino(object: _5.QueryAccountsRequestAmino): _5.QueryAccountsRequest; + toAmino(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestAmino; + fromAminoMsg(object: _5.QueryAccountsRequestAminoMsg): _5.QueryAccountsRequest; + toAminoMsg(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestAminoMsg; + fromProtoMsg(message: _5.QueryAccountsRequestProtoMsg): _5.QueryAccountsRequest; + toProto(message: _5.QueryAccountsRequest): Uint8Array; + toProtoMsg(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestProtoMsg; + }; + QueryAccountsResponse: { + typeUrl: string; + encode(message: _5.QueryAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountsResponse; + fromPartial(object: Partial<_5.QueryAccountsResponse>): _5.QueryAccountsResponse; + fromAmino(object: _5.QueryAccountsResponseAmino): _5.QueryAccountsResponse; + toAmino(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseAmino; + fromAminoMsg(object: _5.QueryAccountsResponseAminoMsg): _5.QueryAccountsResponse; + toAminoMsg(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseAminoMsg; + fromProtoMsg(message: _5.QueryAccountsResponseProtoMsg): _5.QueryAccountsResponse; + toProto(message: _5.QueryAccountsResponse): Uint8Array; + toProtoMsg(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseProtoMsg; + }; + QueryAccountRequest: { + typeUrl: string; + encode(message: _5.QueryAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountRequest; + fromPartial(object: Partial<_5.QueryAccountRequest>): _5.QueryAccountRequest; + fromAmino(object: _5.QueryAccountRequestAmino): _5.QueryAccountRequest; + toAmino(message: _5.QueryAccountRequest): _5.QueryAccountRequestAmino; + fromAminoMsg(object: _5.QueryAccountRequestAminoMsg): _5.QueryAccountRequest; + toAminoMsg(message: _5.QueryAccountRequest): _5.QueryAccountRequestAminoMsg; + fromProtoMsg(message: _5.QueryAccountRequestProtoMsg): _5.QueryAccountRequest; + toProto(message: _5.QueryAccountRequest): Uint8Array; + toProtoMsg(message: _5.QueryAccountRequest): _5.QueryAccountRequestProtoMsg; + }; + QueryAccountResponse: { + typeUrl: string; + encode(message: _5.QueryAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountResponse; + fromPartial(object: Partial<_5.QueryAccountResponse>): _5.QueryAccountResponse; + fromAmino(object: _5.QueryAccountResponseAmino): _5.QueryAccountResponse; + toAmino(message: _5.QueryAccountResponse): _5.QueryAccountResponseAmino; + fromAminoMsg(object: _5.QueryAccountResponseAminoMsg): _5.QueryAccountResponse; + toAminoMsg(message: _5.QueryAccountResponse): _5.QueryAccountResponseAminoMsg; + fromProtoMsg(message: _5.QueryAccountResponseProtoMsg): _5.QueryAccountResponse; + toProto(message: _5.QueryAccountResponse): Uint8Array; + toProtoMsg(message: _5.QueryAccountResponse): _5.QueryAccountResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _5.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryParamsRequest; + fromPartial(_: Partial<_5.QueryParamsRequest>): _5.QueryParamsRequest; + fromAmino(_: _5.QueryParamsRequestAmino): _5.QueryParamsRequest; + toAmino(_: _5.QueryParamsRequest): _5.QueryParamsRequestAmino; + fromAminoMsg(object: _5.QueryParamsRequestAminoMsg): _5.QueryParamsRequest; + toAminoMsg(message: _5.QueryParamsRequest): _5.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _5.QueryParamsRequestProtoMsg): _5.QueryParamsRequest; + toProto(message: _5.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _5.QueryParamsRequest): _5.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _5.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryParamsResponse; + fromPartial(object: Partial<_5.QueryParamsResponse>): _5.QueryParamsResponse; + fromAmino(object: _5.QueryParamsResponseAmino): _5.QueryParamsResponse; + toAmino(message: _5.QueryParamsResponse): _5.QueryParamsResponseAmino; + fromAminoMsg(object: _5.QueryParamsResponseAminoMsg): _5.QueryParamsResponse; + toAminoMsg(message: _5.QueryParamsResponse): _5.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _5.QueryParamsResponseProtoMsg): _5.QueryParamsResponse; + toProto(message: _5.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _5.QueryParamsResponse): _5.QueryParamsResponseProtoMsg; + }; + QueryModuleAccountsRequest: { + typeUrl: string; + encode(_: _5.QueryModuleAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountsRequest; + fromPartial(_: Partial<_5.QueryModuleAccountsRequest>): _5.QueryModuleAccountsRequest; + fromAmino(_: _5.QueryModuleAccountsRequestAmino): _5.QueryModuleAccountsRequest; + toAmino(_: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestAmino; + fromAminoMsg(object: _5.QueryModuleAccountsRequestAminoMsg): _5.QueryModuleAccountsRequest; + toAminoMsg(message: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestAminoMsg; + fromProtoMsg(message: _5.QueryModuleAccountsRequestProtoMsg): _5.QueryModuleAccountsRequest; + toProto(message: _5.QueryModuleAccountsRequest): Uint8Array; + toProtoMsg(message: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestProtoMsg; + }; + QueryModuleAccountsResponse: { + typeUrl: string; + encode(message: _5.QueryModuleAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountsResponse; + fromPartial(object: Partial<_5.QueryModuleAccountsResponse>): _5.QueryModuleAccountsResponse; + fromAmino(object: _5.QueryModuleAccountsResponseAmino): _5.QueryModuleAccountsResponse; + toAmino(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseAmino; + fromAminoMsg(object: _5.QueryModuleAccountsResponseAminoMsg): _5.QueryModuleAccountsResponse; + toAminoMsg(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseAminoMsg; + fromProtoMsg(message: _5.QueryModuleAccountsResponseProtoMsg): _5.QueryModuleAccountsResponse; + toProto(message: _5.QueryModuleAccountsResponse): Uint8Array; + toProtoMsg(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseProtoMsg; + }; + QueryModuleAccountByNameRequest: { + typeUrl: string; + encode(message: _5.QueryModuleAccountByNameRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountByNameRequest; + fromPartial(object: Partial<_5.QueryModuleAccountByNameRequest>): _5.QueryModuleAccountByNameRequest; + fromAmino(object: _5.QueryModuleAccountByNameRequestAmino): _5.QueryModuleAccountByNameRequest; + toAmino(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestAmino; + fromAminoMsg(object: _5.QueryModuleAccountByNameRequestAminoMsg): _5.QueryModuleAccountByNameRequest; + toAminoMsg(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestAminoMsg; + fromProtoMsg(message: _5.QueryModuleAccountByNameRequestProtoMsg): _5.QueryModuleAccountByNameRequest; + toProto(message: _5.QueryModuleAccountByNameRequest): Uint8Array; + toProtoMsg(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestProtoMsg; + }; + QueryModuleAccountByNameResponse: { + typeUrl: string; + encode(message: _5.QueryModuleAccountByNameResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountByNameResponse; + fromPartial(object: Partial<_5.QueryModuleAccountByNameResponse>): _5.QueryModuleAccountByNameResponse; + fromAmino(object: _5.QueryModuleAccountByNameResponseAmino): _5.QueryModuleAccountByNameResponse; + toAmino(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseAmino; + fromAminoMsg(object: _5.QueryModuleAccountByNameResponseAminoMsg): _5.QueryModuleAccountByNameResponse; + toAminoMsg(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseAminoMsg; + fromProtoMsg(message: _5.QueryModuleAccountByNameResponseProtoMsg): _5.QueryModuleAccountByNameResponse; + toProto(message: _5.QueryModuleAccountByNameResponse): Uint8Array; + toProtoMsg(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseProtoMsg; + }; + Bech32PrefixRequest: { + typeUrl: string; + encode(_: _5.Bech32PrefixRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.Bech32PrefixRequest; + fromPartial(_: Partial<_5.Bech32PrefixRequest>): _5.Bech32PrefixRequest; + fromAmino(_: _5.Bech32PrefixRequestAmino): _5.Bech32PrefixRequest; + toAmino(_: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestAmino; + fromAminoMsg(object: _5.Bech32PrefixRequestAminoMsg): _5.Bech32PrefixRequest; + toAminoMsg(message: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestAminoMsg; + fromProtoMsg(message: _5.Bech32PrefixRequestProtoMsg): _5.Bech32PrefixRequest; + toProto(message: _5.Bech32PrefixRequest): Uint8Array; + toProtoMsg(message: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestProtoMsg; + }; + Bech32PrefixResponse: { + typeUrl: string; + encode(message: _5.Bech32PrefixResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.Bech32PrefixResponse; + fromPartial(object: Partial<_5.Bech32PrefixResponse>): _5.Bech32PrefixResponse; + fromAmino(object: _5.Bech32PrefixResponseAmino): _5.Bech32PrefixResponse; + toAmino(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseAmino; + fromAminoMsg(object: _5.Bech32PrefixResponseAminoMsg): _5.Bech32PrefixResponse; + toAminoMsg(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseAminoMsg; + fromProtoMsg(message: _5.Bech32PrefixResponseProtoMsg): _5.Bech32PrefixResponse; + toProto(message: _5.Bech32PrefixResponse): Uint8Array; + toProtoMsg(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseProtoMsg; + }; + AddressBytesToStringRequest: { + typeUrl: string; + encode(message: _5.AddressBytesToStringRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressBytesToStringRequest; + fromPartial(object: Partial<_5.AddressBytesToStringRequest>): _5.AddressBytesToStringRequest; + fromAmino(object: _5.AddressBytesToStringRequestAmino): _5.AddressBytesToStringRequest; + toAmino(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestAmino; + fromAminoMsg(object: _5.AddressBytesToStringRequestAminoMsg): _5.AddressBytesToStringRequest; + toAminoMsg(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestAminoMsg; + fromProtoMsg(message: _5.AddressBytesToStringRequestProtoMsg): _5.AddressBytesToStringRequest; + toProto(message: _5.AddressBytesToStringRequest): Uint8Array; + toProtoMsg(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestProtoMsg; + }; + AddressBytesToStringResponse: { + typeUrl: string; + encode(message: _5.AddressBytesToStringResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressBytesToStringResponse; + fromPartial(object: Partial<_5.AddressBytesToStringResponse>): _5.AddressBytesToStringResponse; + fromAmino(object: _5.AddressBytesToStringResponseAmino): _5.AddressBytesToStringResponse; + toAmino(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseAmino; + fromAminoMsg(object: _5.AddressBytesToStringResponseAminoMsg): _5.AddressBytesToStringResponse; + toAminoMsg(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseAminoMsg; + fromProtoMsg(message: _5.AddressBytesToStringResponseProtoMsg): _5.AddressBytesToStringResponse; + toProto(message: _5.AddressBytesToStringResponse): Uint8Array; + toProtoMsg(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseProtoMsg; + }; + AddressStringToBytesRequest: { + typeUrl: string; + encode(message: _5.AddressStringToBytesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressStringToBytesRequest; + fromPartial(object: Partial<_5.AddressStringToBytesRequest>): _5.AddressStringToBytesRequest; + fromAmino(object: _5.AddressStringToBytesRequestAmino): _5.AddressStringToBytesRequest; + toAmino(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestAmino; + fromAminoMsg(object: _5.AddressStringToBytesRequestAminoMsg): _5.AddressStringToBytesRequest; + toAminoMsg(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestAminoMsg; + fromProtoMsg(message: _5.AddressStringToBytesRequestProtoMsg): _5.AddressStringToBytesRequest; + toProto(message: _5.AddressStringToBytesRequest): Uint8Array; + toProtoMsg(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestProtoMsg; + }; + AddressStringToBytesResponse: { + typeUrl: string; + encode(message: _5.AddressStringToBytesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressStringToBytesResponse; + fromPartial(object: Partial<_5.AddressStringToBytesResponse>): _5.AddressStringToBytesResponse; + fromAmino(object: _5.AddressStringToBytesResponseAmino): _5.AddressStringToBytesResponse; + toAmino(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseAmino; + fromAminoMsg(object: _5.AddressStringToBytesResponseAminoMsg): _5.AddressStringToBytesResponse; + toAminoMsg(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseAminoMsg; + fromProtoMsg(message: _5.AddressStringToBytesResponseProtoMsg): _5.AddressStringToBytesResponse; + toProto(message: _5.AddressStringToBytesResponse): Uint8Array; + toProtoMsg(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseProtoMsg; + }; + QueryAccountAddressByIDRequest: { + typeUrl: string; + encode(message: _5.QueryAccountAddressByIDRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountAddressByIDRequest; + fromPartial(object: Partial<_5.QueryAccountAddressByIDRequest>): _5.QueryAccountAddressByIDRequest; + fromAmino(object: _5.QueryAccountAddressByIDRequestAmino): _5.QueryAccountAddressByIDRequest; + toAmino(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestAmino; + fromAminoMsg(object: _5.QueryAccountAddressByIDRequestAminoMsg): _5.QueryAccountAddressByIDRequest; + toAminoMsg(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestAminoMsg; + fromProtoMsg(message: _5.QueryAccountAddressByIDRequestProtoMsg): _5.QueryAccountAddressByIDRequest; + toProto(message: _5.QueryAccountAddressByIDRequest): Uint8Array; + toProtoMsg(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestProtoMsg; + }; + QueryAccountAddressByIDResponse: { + typeUrl: string; + encode(message: _5.QueryAccountAddressByIDResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountAddressByIDResponse; + fromPartial(object: Partial<_5.QueryAccountAddressByIDResponse>): _5.QueryAccountAddressByIDResponse; + fromAmino(object: _5.QueryAccountAddressByIDResponseAmino): _5.QueryAccountAddressByIDResponse; + toAmino(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseAmino; + fromAminoMsg(object: _5.QueryAccountAddressByIDResponseAminoMsg): _5.QueryAccountAddressByIDResponse; + toAminoMsg(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseAminoMsg; + fromProtoMsg(message: _5.QueryAccountAddressByIDResponseProtoMsg): _5.QueryAccountAddressByIDResponse; + toProto(message: _5.QueryAccountAddressByIDResponse): Uint8Array; + toProtoMsg(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseProtoMsg; + }; + AccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _3.BaseAccount; + AccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + AccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + ModuleAccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _3.ModuleAccount; + ModuleAccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + ModuleAccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + GenesisState: { + typeUrl: string; + encode(message: _4.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _4.GenesisState; + fromPartial(object: Partial<_4.GenesisState>): _4.GenesisState; + fromAmino(object: _4.GenesisStateAmino): _4.GenesisState; + toAmino(message: _4.GenesisState): _4.GenesisStateAmino; + fromAminoMsg(object: _4.GenesisStateAminoMsg): _4.GenesisState; + toAminoMsg(message: _4.GenesisState): _4.GenesisStateAminoMsg; + fromProtoMsg(message: _4.GenesisStateProtoMsg): _4.GenesisState; + toProto(message: _4.GenesisState): Uint8Array; + toProtoMsg(message: _4.GenesisState): _4.GenesisStateProtoMsg; + }; + BaseAccount: { + typeUrl: string; + encode(message: _3.BaseAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.BaseAccount; + fromPartial(object: Partial<_3.BaseAccount>): _3.BaseAccount; + fromAmino(object: _3.BaseAccountAmino): _3.BaseAccount; + toAmino(message: _3.BaseAccount): _3.BaseAccountAmino; + fromAminoMsg(object: _3.BaseAccountAminoMsg): _3.BaseAccount; + toAminoMsg(message: _3.BaseAccount): _3.BaseAccountAminoMsg; + fromProtoMsg(message: _3.BaseAccountProtoMsg): _3.BaseAccount; + toProto(message: _3.BaseAccount): Uint8Array; + toProtoMsg(message: _3.BaseAccount): _3.BaseAccountProtoMsg; + }; + ModuleAccount: { + typeUrl: string; + encode(message: _3.ModuleAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.ModuleAccount; + fromPartial(object: Partial<_3.ModuleAccount>): _3.ModuleAccount; + fromAmino(object: _3.ModuleAccountAmino): _3.ModuleAccount; + toAmino(message: _3.ModuleAccount): _3.ModuleAccountAmino; + fromAminoMsg(object: _3.ModuleAccountAminoMsg): _3.ModuleAccount; + toAminoMsg(message: _3.ModuleAccount): _3.ModuleAccountAminoMsg; + fromProtoMsg(message: _3.ModuleAccountProtoMsg): _3.ModuleAccount; + toProto(message: _3.ModuleAccount): Uint8Array; + toProtoMsg(message: _3.ModuleAccount): _3.ModuleAccountProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _3.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.Params; + fromPartial(object: Partial<_3.Params>): _3.Params; + fromAmino(object: _3.ParamsAmino): _3.Params; + toAmino(message: _3.Params): _3.ParamsAmino; + fromAminoMsg(object: _3.ParamsAminoMsg): _3.Params; + toAminoMsg(message: _3.Params): _3.ParamsAminoMsg; + fromProtoMsg(message: _3.ParamsProtoMsg): _3.Params; + toProto(message: _3.Params): Uint8Array; + toProtoMsg(message: _3.Params): _3.ParamsProtoMsg; + }; + }; + } + namespace authz { + const v1beta1: { + MsgClientImpl: typeof _167.MsgClientImpl; + QueryClientImpl: typeof _154.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + grants(request: _9.QueryGrantsRequest): Promise<_9.QueryGrantsResponse>; + granterGrants(request: _9.QueryGranterGrantsRequest): Promise<_9.QueryGranterGrantsResponse>; + granteeGrants(request: _9.QueryGranteeGrantsRequest): Promise<_9.QueryGranteeGrantsResponse>; + }; + LCDQueryClient: typeof _140.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + grant(value: _10.MsgGrant): { + typeUrl: string; + value: Uint8Array; + }; + exec(value: _10.MsgExec): { + typeUrl: string; + value: Uint8Array; + }; + revoke(value: _10.MsgRevoke): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + grant(value: _10.MsgGrant): { + typeUrl: string; + value: _10.MsgGrant; + }; + exec(value: _10.MsgExec): { + typeUrl: string; + value: _10.MsgExec; + }; + revoke(value: _10.MsgRevoke): { + typeUrl: string; + value: _10.MsgRevoke; + }; + }; + fromPartial: { + grant(value: _10.MsgGrant): { + typeUrl: string; + value: _10.MsgGrant; + }; + exec(value: _10.MsgExec): { + typeUrl: string; + value: _10.MsgExec; + }; + revoke(value: _10.MsgRevoke): { + typeUrl: string; + value: _10.MsgRevoke; + }; + }; + }; + AminoConverter: { + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: string; + toAmino: (message: _10.MsgGrant) => _10.MsgGrantAmino; + fromAmino: (object: _10.MsgGrantAmino) => _10.MsgGrant; + }; + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: string; + toAmino: (message: _10.MsgExec) => _10.MsgExecAmino; + fromAmino: (object: _10.MsgExecAmino) => _10.MsgExec; + }; + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: string; + toAmino: (message: _10.MsgRevoke) => _10.MsgRevokeAmino; + fromAmino: (object: _10.MsgRevokeAmino) => _10.MsgRevoke; + }; + }; + MsgGrant: { + typeUrl: string; + encode(message: _10.MsgGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgGrant; + fromPartial(object: Partial<_10.MsgGrant>): _10.MsgGrant; + fromAmino(object: _10.MsgGrantAmino): _10.MsgGrant; + toAmino(message: _10.MsgGrant): _10.MsgGrantAmino; + fromAminoMsg(object: _10.MsgGrantAminoMsg): _10.MsgGrant; + toAminoMsg(message: _10.MsgGrant): _10.MsgGrantAminoMsg; + fromProtoMsg(message: _10.MsgGrantProtoMsg): _10.MsgGrant; + toProto(message: _10.MsgGrant): Uint8Array; + toProtoMsg(message: _10.MsgGrant): _10.MsgGrantProtoMsg; + }; + MsgExecResponse: { + typeUrl: string; + encode(message: _10.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgExecResponse; + fromPartial(object: Partial<_10.MsgExecResponse>): _10.MsgExecResponse; + fromAmino(object: _10.MsgExecResponseAmino): _10.MsgExecResponse; + toAmino(message: _10.MsgExecResponse): _10.MsgExecResponseAmino; + fromAminoMsg(object: _10.MsgExecResponseAminoMsg): _10.MsgExecResponse; + toAminoMsg(message: _10.MsgExecResponse): _10.MsgExecResponseAminoMsg; + fromProtoMsg(message: _10.MsgExecResponseProtoMsg): _10.MsgExecResponse; + toProto(message: _10.MsgExecResponse): Uint8Array; + toProtoMsg(message: _10.MsgExecResponse): _10.MsgExecResponseProtoMsg; + }; + MsgExec: { + typeUrl: string; + encode(message: _10.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgExec; + fromPartial(object: Partial<_10.MsgExec>): _10.MsgExec; + fromAmino(object: _10.MsgExecAmino): _10.MsgExec; + toAmino(message: _10.MsgExec): _10.MsgExecAmino; + fromAminoMsg(object: _10.MsgExecAminoMsg): _10.MsgExec; + toAminoMsg(message: _10.MsgExec): _10.MsgExecAminoMsg; + fromProtoMsg(message: _10.MsgExecProtoMsg): _10.MsgExec; + toProto(message: _10.MsgExec): Uint8Array; + toProtoMsg(message: _10.MsgExec): _10.MsgExecProtoMsg; + }; + MsgGrantResponse: { + typeUrl: string; + encode(_: _10.MsgGrantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgGrantResponse; + fromPartial(_: Partial<_10.MsgGrantResponse>): _10.MsgGrantResponse; + fromAmino(_: _10.MsgGrantResponseAmino): _10.MsgGrantResponse; + toAmino(_: _10.MsgGrantResponse): _10.MsgGrantResponseAmino; + fromAminoMsg(object: _10.MsgGrantResponseAminoMsg): _10.MsgGrantResponse; + toAminoMsg(message: _10.MsgGrantResponse): _10.MsgGrantResponseAminoMsg; + fromProtoMsg(message: _10.MsgGrantResponseProtoMsg): _10.MsgGrantResponse; + toProto(message: _10.MsgGrantResponse): Uint8Array; + toProtoMsg(message: _10.MsgGrantResponse): _10.MsgGrantResponseProtoMsg; + }; + MsgRevoke: { + typeUrl: string; + encode(message: _10.MsgRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgRevoke; + fromPartial(object: Partial<_10.MsgRevoke>): _10.MsgRevoke; + fromAmino(object: _10.MsgRevokeAmino): _10.MsgRevoke; + toAmino(message: _10.MsgRevoke): _10.MsgRevokeAmino; + fromAminoMsg(object: _10.MsgRevokeAminoMsg): _10.MsgRevoke; + toAminoMsg(message: _10.MsgRevoke): _10.MsgRevokeAminoMsg; + fromProtoMsg(message: _10.MsgRevokeProtoMsg): _10.MsgRevoke; + toProto(message: _10.MsgRevoke): Uint8Array; + toProtoMsg(message: _10.MsgRevoke): _10.MsgRevokeProtoMsg; + }; + MsgRevokeResponse: { + typeUrl: string; + encode(_: _10.MsgRevokeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgRevokeResponse; + fromPartial(_: Partial<_10.MsgRevokeResponse>): _10.MsgRevokeResponse; + fromAmino(_: _10.MsgRevokeResponseAmino): _10.MsgRevokeResponse; + toAmino(_: _10.MsgRevokeResponse): _10.MsgRevokeResponseAmino; + fromAminoMsg(object: _10.MsgRevokeResponseAminoMsg): _10.MsgRevokeResponse; + toAminoMsg(message: _10.MsgRevokeResponse): _10.MsgRevokeResponseAminoMsg; + fromProtoMsg(message: _10.MsgRevokeResponseProtoMsg): _10.MsgRevokeResponse; + toProto(message: _10.MsgRevokeResponse): Uint8Array; + toProtoMsg(message: _10.MsgRevokeResponse): _10.MsgRevokeResponseProtoMsg; + }; + Sdk_Msg_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; + Sdk_Msg_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Sdk_Msg_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + Authz_Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; + Authz_Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Authz_Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + QueryGrantsRequest: { + typeUrl: string; + encode(message: _9.QueryGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGrantsRequest; + fromPartial(object: Partial<_9.QueryGrantsRequest>): _9.QueryGrantsRequest; + fromAmino(object: _9.QueryGrantsRequestAmino): _9.QueryGrantsRequest; + toAmino(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestAmino; + fromAminoMsg(object: _9.QueryGrantsRequestAminoMsg): _9.QueryGrantsRequest; + toAminoMsg(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestAminoMsg; + fromProtoMsg(message: _9.QueryGrantsRequestProtoMsg): _9.QueryGrantsRequest; + toProto(message: _9.QueryGrantsRequest): Uint8Array; + toProtoMsg(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestProtoMsg; + }; + QueryGrantsResponse: { + typeUrl: string; + encode(message: _9.QueryGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGrantsResponse; + fromPartial(object: Partial<_9.QueryGrantsResponse>): _9.QueryGrantsResponse; + fromAmino(object: _9.QueryGrantsResponseAmino): _9.QueryGrantsResponse; + toAmino(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseAmino; + fromAminoMsg(object: _9.QueryGrantsResponseAminoMsg): _9.QueryGrantsResponse; + toAminoMsg(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseAminoMsg; + fromProtoMsg(message: _9.QueryGrantsResponseProtoMsg): _9.QueryGrantsResponse; + toProto(message: _9.QueryGrantsResponse): Uint8Array; + toProtoMsg(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseProtoMsg; + }; + QueryGranterGrantsRequest: { + typeUrl: string; + encode(message: _9.QueryGranterGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranterGrantsRequest; + fromPartial(object: Partial<_9.QueryGranterGrantsRequest>): _9.QueryGranterGrantsRequest; + fromAmino(object: _9.QueryGranterGrantsRequestAmino): _9.QueryGranterGrantsRequest; + toAmino(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestAmino; + fromAminoMsg(object: _9.QueryGranterGrantsRequestAminoMsg): _9.QueryGranterGrantsRequest; + toAminoMsg(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestAminoMsg; + fromProtoMsg(message: _9.QueryGranterGrantsRequestProtoMsg): _9.QueryGranterGrantsRequest; + toProto(message: _9.QueryGranterGrantsRequest): Uint8Array; + toProtoMsg(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestProtoMsg; + }; + QueryGranterGrantsResponse: { + typeUrl: string; + encode(message: _9.QueryGranterGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranterGrantsResponse; + fromPartial(object: Partial<_9.QueryGranterGrantsResponse>): _9.QueryGranterGrantsResponse; + fromAmino(object: _9.QueryGranterGrantsResponseAmino): _9.QueryGranterGrantsResponse; + toAmino(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseAmino; + fromAminoMsg(object: _9.QueryGranterGrantsResponseAminoMsg): _9.QueryGranterGrantsResponse; + toAminoMsg(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseAminoMsg; + fromProtoMsg(message: _9.QueryGranterGrantsResponseProtoMsg): _9.QueryGranterGrantsResponse; + toProto(message: _9.QueryGranterGrantsResponse): Uint8Array; + toProtoMsg(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseProtoMsg; + }; + QueryGranteeGrantsRequest: { + typeUrl: string; + encode(message: _9.QueryGranteeGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranteeGrantsRequest; + fromPartial(object: Partial<_9.QueryGranteeGrantsRequest>): _9.QueryGranteeGrantsRequest; + fromAmino(object: _9.QueryGranteeGrantsRequestAmino): _9.QueryGranteeGrantsRequest; + toAmino(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestAmino; + fromAminoMsg(object: _9.QueryGranteeGrantsRequestAminoMsg): _9.QueryGranteeGrantsRequest; + toAminoMsg(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestAminoMsg; + fromProtoMsg(message: _9.QueryGranteeGrantsRequestProtoMsg): _9.QueryGranteeGrantsRequest; + toProto(message: _9.QueryGranteeGrantsRequest): Uint8Array; + toProtoMsg(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestProtoMsg; + }; + QueryGranteeGrantsResponse: { + typeUrl: string; + encode(message: _9.QueryGranteeGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranteeGrantsResponse; + fromPartial(object: Partial<_9.QueryGranteeGrantsResponse>): _9.QueryGranteeGrantsResponse; + fromAmino(object: _9.QueryGranteeGrantsResponseAmino): _9.QueryGranteeGrantsResponse; + toAmino(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseAmino; + fromAminoMsg(object: _9.QueryGranteeGrantsResponseAminoMsg): _9.QueryGranteeGrantsResponse; + toAminoMsg(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseAminoMsg; + fromProtoMsg(message: _9.QueryGranteeGrantsResponseProtoMsg): _9.QueryGranteeGrantsResponse; + toProto(message: _9.QueryGranteeGrantsResponse): Uint8Array; + toProtoMsg(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _8.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _8.GenesisState; + fromPartial(object: Partial<_8.GenesisState>): _8.GenesisState; + fromAmino(object: _8.GenesisStateAmino): _8.GenesisState; + toAmino(message: _8.GenesisState): _8.GenesisStateAmino; + fromAminoMsg(object: _8.GenesisStateAminoMsg): _8.GenesisState; + toAminoMsg(message: _8.GenesisState): _8.GenesisStateAminoMsg; + fromProtoMsg(message: _8.GenesisStateProtoMsg): _8.GenesisState; + toProto(message: _8.GenesisState): Uint8Array; + toProtoMsg(message: _8.GenesisState): _8.GenesisStateProtoMsg; + }; + EventGrant: { + typeUrl: string; + encode(message: _7.EventGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _7.EventGrant; + fromPartial(object: Partial<_7.EventGrant>): _7.EventGrant; + fromAmino(object: _7.EventGrantAmino): _7.EventGrant; + toAmino(message: _7.EventGrant): _7.EventGrantAmino; + fromAminoMsg(object: _7.EventGrantAminoMsg): _7.EventGrant; + toAminoMsg(message: _7.EventGrant): _7.EventGrantAminoMsg; + fromProtoMsg(message: _7.EventGrantProtoMsg): _7.EventGrant; + toProto(message: _7.EventGrant): Uint8Array; + toProtoMsg(message: _7.EventGrant): _7.EventGrantProtoMsg; + }; + EventRevoke: { + typeUrl: string; + encode(message: _7.EventRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _7.EventRevoke; + fromPartial(object: Partial<_7.EventRevoke>): _7.EventRevoke; + fromAmino(object: _7.EventRevokeAmino): _7.EventRevoke; + toAmino(message: _7.EventRevoke): _7.EventRevokeAmino; + fromAminoMsg(object: _7.EventRevokeAminoMsg): _7.EventRevoke; + toAminoMsg(message: _7.EventRevoke): _7.EventRevokeAminoMsg; + fromProtoMsg(message: _7.EventRevokeProtoMsg): _7.EventRevoke; + toProto(message: _7.EventRevoke): Uint8Array; + toProtoMsg(message: _7.EventRevoke): _7.EventRevokeProtoMsg; + }; + GenericAuthorization: { + typeUrl: string; + encode(message: _6.GenericAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GenericAuthorization; + fromPartial(object: Partial<_6.GenericAuthorization>): _6.GenericAuthorization; + fromAmino(object: _6.GenericAuthorizationAmino): _6.GenericAuthorization; + toAmino(message: _6.GenericAuthorization): _6.GenericAuthorizationAmino; + fromAminoMsg(object: _6.GenericAuthorizationAminoMsg): _6.GenericAuthorization; + toAminoMsg(message: _6.GenericAuthorization): _6.GenericAuthorizationAminoMsg; + fromProtoMsg(message: _6.GenericAuthorizationProtoMsg): _6.GenericAuthorization; + toProto(message: _6.GenericAuthorization): Uint8Array; + toProtoMsg(message: _6.GenericAuthorization): _6.GenericAuthorizationProtoMsg; + }; + Grant: { + typeUrl: string; + encode(message: _6.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.Grant; + fromPartial(object: Partial<_6.Grant>): _6.Grant; + fromAmino(object: _6.GrantAmino): _6.Grant; + toAmino(message: _6.Grant): _6.GrantAmino; + fromAminoMsg(object: _6.GrantAminoMsg): _6.Grant; + toAminoMsg(message: _6.Grant): _6.GrantAminoMsg; + fromProtoMsg(message: _6.GrantProtoMsg): _6.Grant; + toProto(message: _6.Grant): Uint8Array; + toProtoMsg(message: _6.Grant): _6.GrantProtoMsg; + }; + GrantAuthorization: { + typeUrl: string; + encode(message: _6.GrantAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GrantAuthorization; + fromPartial(object: Partial<_6.GrantAuthorization>): _6.GrantAuthorization; + fromAmino(object: _6.GrantAuthorizationAmino): _6.GrantAuthorization; + toAmino(message: _6.GrantAuthorization): _6.GrantAuthorizationAmino; + fromAminoMsg(object: _6.GrantAuthorizationAminoMsg): _6.GrantAuthorization; + toAminoMsg(message: _6.GrantAuthorization): _6.GrantAuthorizationAminoMsg; + fromProtoMsg(message: _6.GrantAuthorizationProtoMsg): _6.GrantAuthorization; + toProto(message: _6.GrantAuthorization): Uint8Array; + toProtoMsg(message: _6.GrantAuthorization): _6.GrantAuthorizationProtoMsg; + }; + GrantQueueItem: { + typeUrl: string; + encode(message: _6.GrantQueueItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GrantQueueItem; + fromPartial(object: Partial<_6.GrantQueueItem>): _6.GrantQueueItem; + fromAmino(object: _6.GrantQueueItemAmino): _6.GrantQueueItem; + toAmino(message: _6.GrantQueueItem): _6.GrantQueueItemAmino; + fromAminoMsg(object: _6.GrantQueueItemAminoMsg): _6.GrantQueueItem; + toAminoMsg(message: _6.GrantQueueItem): _6.GrantQueueItemAminoMsg; + fromProtoMsg(message: _6.GrantQueueItemProtoMsg): _6.GrantQueueItem; + toProto(message: _6.GrantQueueItem): Uint8Array; + toProtoMsg(message: _6.GrantQueueItem): _6.GrantQueueItemProtoMsg; + }; + Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _11.SendAuthorization | _54.StakeAuthorization | _6.GenericAuthorization; + Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + }; + } + namespace bank { + const v1beta1: { + MsgClientImpl: typeof _168.MsgClientImpl; + QueryClientImpl: typeof _155.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + balance(request: _14.QueryBalanceRequest): Promise<_14.QueryBalanceResponse>; + allBalances(request: _14.QueryAllBalancesRequest): Promise<_14.QueryAllBalancesResponse>; + spendableBalances(request: _14.QuerySpendableBalancesRequest): Promise<_14.QuerySpendableBalancesResponse>; + totalSupply(request?: _14.QueryTotalSupplyRequest): Promise<_14.QueryTotalSupplyResponse>; + supplyOf(request: _14.QuerySupplyOfRequest): Promise<_14.QuerySupplyOfResponse>; + params(request?: _14.QueryParamsRequest): Promise<_14.QueryParamsResponse>; + denomMetadata(request: _14.QueryDenomMetadataRequest): Promise<_14.QueryDenomMetadataResponse>; + denomsMetadata(request?: _14.QueryDenomsMetadataRequest): Promise<_14.QueryDenomsMetadataResponse>; + denomOwners(request: _14.QueryDenomOwnersRequest): Promise<_14.QueryDenomOwnersResponse>; + }; + LCDQueryClient: typeof _141.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + send(value: _15.MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + multiSend(value: _15.MsgMultiSend): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + send(value: _15.MsgSend): { + typeUrl: string; + value: _15.MsgSend; + }; + multiSend(value: _15.MsgMultiSend): { + typeUrl: string; + value: _15.MsgMultiSend; + }; + }; + fromPartial: { + send(value: _15.MsgSend): { + typeUrl: string; + value: _15.MsgSend; + }; + multiSend(value: _15.MsgMultiSend): { + typeUrl: string; + value: _15.MsgMultiSend; + }; + }; + }; + AminoConverter: { + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: string; + toAmino: (message: _15.MsgSend) => _15.MsgSendAmino; + fromAmino: (object: _15.MsgSendAmino) => _15.MsgSend; + }; + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: string; + toAmino: (message: _15.MsgMultiSend) => _15.MsgMultiSendAmino; + fromAmino: (object: _15.MsgMultiSendAmino) => _15.MsgMultiSend; + }; + }; + MsgSend: { + typeUrl: string; + encode(message: _15.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgSend; + fromPartial(object: Partial<_15.MsgSend>): _15.MsgSend; + fromAmino(object: _15.MsgSendAmino): _15.MsgSend; + toAmino(message: _15.MsgSend): _15.MsgSendAmino; + fromAminoMsg(object: _15.MsgSendAminoMsg): _15.MsgSend; + toAminoMsg(message: _15.MsgSend): _15.MsgSendAminoMsg; + fromProtoMsg(message: _15.MsgSendProtoMsg): _15.MsgSend; + toProto(message: _15.MsgSend): Uint8Array; + toProtoMsg(message: _15.MsgSend): _15.MsgSendProtoMsg; + }; + MsgSendResponse: { + typeUrl: string; + encode(_: _15.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgSendResponse; + fromPartial(_: Partial<_15.MsgSendResponse>): _15.MsgSendResponse; + fromAmino(_: _15.MsgSendResponseAmino): _15.MsgSendResponse; + toAmino(_: _15.MsgSendResponse): _15.MsgSendResponseAmino; + fromAminoMsg(object: _15.MsgSendResponseAminoMsg): _15.MsgSendResponse; + toAminoMsg(message: _15.MsgSendResponse): _15.MsgSendResponseAminoMsg; + fromProtoMsg(message: _15.MsgSendResponseProtoMsg): _15.MsgSendResponse; + toProto(message: _15.MsgSendResponse): Uint8Array; + toProtoMsg(message: _15.MsgSendResponse): _15.MsgSendResponseProtoMsg; + }; + MsgMultiSend: { + typeUrl: string; + encode(message: _15.MsgMultiSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgMultiSend; + fromPartial(object: Partial<_15.MsgMultiSend>): _15.MsgMultiSend; + fromAmino(object: _15.MsgMultiSendAmino): _15.MsgMultiSend; + toAmino(message: _15.MsgMultiSend): _15.MsgMultiSendAmino; + fromAminoMsg(object: _15.MsgMultiSendAminoMsg): _15.MsgMultiSend; + toAminoMsg(message: _15.MsgMultiSend): _15.MsgMultiSendAminoMsg; + fromProtoMsg(message: _15.MsgMultiSendProtoMsg): _15.MsgMultiSend; + toProto(message: _15.MsgMultiSend): Uint8Array; + toProtoMsg(message: _15.MsgMultiSend): _15.MsgMultiSendProtoMsg; + }; + MsgMultiSendResponse: { + typeUrl: string; + encode(_: _15.MsgMultiSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgMultiSendResponse; + fromPartial(_: Partial<_15.MsgMultiSendResponse>): _15.MsgMultiSendResponse; + fromAmino(_: _15.MsgMultiSendResponseAmino): _15.MsgMultiSendResponse; + toAmino(_: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseAmino; + fromAminoMsg(object: _15.MsgMultiSendResponseAminoMsg): _15.MsgMultiSendResponse; + toAminoMsg(message: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseAminoMsg; + fromProtoMsg(message: _15.MsgMultiSendResponseProtoMsg): _15.MsgMultiSendResponse; + toProto(message: _15.MsgMultiSendResponse): Uint8Array; + toProtoMsg(message: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseProtoMsg; + }; + QueryBalanceRequest: { + typeUrl: string; + encode(message: _14.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryBalanceRequest; + fromPartial(object: Partial<_14.QueryBalanceRequest>): _14.QueryBalanceRequest; + fromAmino(object: _14.QueryBalanceRequestAmino): _14.QueryBalanceRequest; + toAmino(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestAmino; + fromAminoMsg(object: _14.QueryBalanceRequestAminoMsg): _14.QueryBalanceRequest; + toAminoMsg(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestAminoMsg; + fromProtoMsg(message: _14.QueryBalanceRequestProtoMsg): _14.QueryBalanceRequest; + toProto(message: _14.QueryBalanceRequest): Uint8Array; + toProtoMsg(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestProtoMsg; + }; + QueryBalanceResponse: { + typeUrl: string; + encode(message: _14.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryBalanceResponse; + fromPartial(object: Partial<_14.QueryBalanceResponse>): _14.QueryBalanceResponse; + fromAmino(object: _14.QueryBalanceResponseAmino): _14.QueryBalanceResponse; + toAmino(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseAmino; + fromAminoMsg(object: _14.QueryBalanceResponseAminoMsg): _14.QueryBalanceResponse; + toAminoMsg(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseAminoMsg; + fromProtoMsg(message: _14.QueryBalanceResponseProtoMsg): _14.QueryBalanceResponse; + toProto(message: _14.QueryBalanceResponse): Uint8Array; + toProtoMsg(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseProtoMsg; + }; + QueryAllBalancesRequest: { + typeUrl: string; + encode(message: _14.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryAllBalancesRequest; + fromPartial(object: Partial<_14.QueryAllBalancesRequest>): _14.QueryAllBalancesRequest; + fromAmino(object: _14.QueryAllBalancesRequestAmino): _14.QueryAllBalancesRequest; + toAmino(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestAmino; + fromAminoMsg(object: _14.QueryAllBalancesRequestAminoMsg): _14.QueryAllBalancesRequest; + toAminoMsg(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestAminoMsg; + fromProtoMsg(message: _14.QueryAllBalancesRequestProtoMsg): _14.QueryAllBalancesRequest; + toProto(message: _14.QueryAllBalancesRequest): Uint8Array; + toProtoMsg(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestProtoMsg; + }; + QueryAllBalancesResponse: { + typeUrl: string; + encode(message: _14.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryAllBalancesResponse; + fromPartial(object: Partial<_14.QueryAllBalancesResponse>): _14.QueryAllBalancesResponse; + fromAmino(object: _14.QueryAllBalancesResponseAmino): _14.QueryAllBalancesResponse; + toAmino(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseAmino; + fromAminoMsg(object: _14.QueryAllBalancesResponseAminoMsg): _14.QueryAllBalancesResponse; + toAminoMsg(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseAminoMsg; + fromProtoMsg(message: _14.QueryAllBalancesResponseProtoMsg): _14.QueryAllBalancesResponse; + toProto(message: _14.QueryAllBalancesResponse): Uint8Array; + toProtoMsg(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseProtoMsg; + }; + QuerySpendableBalancesRequest: { + typeUrl: string; + encode(message: _14.QuerySpendableBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySpendableBalancesRequest; + fromPartial(object: Partial<_14.QuerySpendableBalancesRequest>): _14.QuerySpendableBalancesRequest; + fromAmino(object: _14.QuerySpendableBalancesRequestAmino): _14.QuerySpendableBalancesRequest; + toAmino(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestAmino; + fromAminoMsg(object: _14.QuerySpendableBalancesRequestAminoMsg): _14.QuerySpendableBalancesRequest; + toAminoMsg(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestAminoMsg; + fromProtoMsg(message: _14.QuerySpendableBalancesRequestProtoMsg): _14.QuerySpendableBalancesRequest; + toProto(message: _14.QuerySpendableBalancesRequest): Uint8Array; + toProtoMsg(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestProtoMsg; + }; + QuerySpendableBalancesResponse: { + typeUrl: string; + encode(message: _14.QuerySpendableBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySpendableBalancesResponse; + fromPartial(object: Partial<_14.QuerySpendableBalancesResponse>): _14.QuerySpendableBalancesResponse; + fromAmino(object: _14.QuerySpendableBalancesResponseAmino): _14.QuerySpendableBalancesResponse; + toAmino(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseAmino; + fromAminoMsg(object: _14.QuerySpendableBalancesResponseAminoMsg): _14.QuerySpendableBalancesResponse; + toAminoMsg(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseAminoMsg; + fromProtoMsg(message: _14.QuerySpendableBalancesResponseProtoMsg): _14.QuerySpendableBalancesResponse; + toProto(message: _14.QuerySpendableBalancesResponse): Uint8Array; + toProtoMsg(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseProtoMsg; + }; + QueryTotalSupplyRequest: { + typeUrl: string; + encode(message: _14.QueryTotalSupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryTotalSupplyRequest; + fromPartial(object: Partial<_14.QueryTotalSupplyRequest>): _14.QueryTotalSupplyRequest; + fromAmino(object: _14.QueryTotalSupplyRequestAmino): _14.QueryTotalSupplyRequest; + toAmino(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestAmino; + fromAminoMsg(object: _14.QueryTotalSupplyRequestAminoMsg): _14.QueryTotalSupplyRequest; + toAminoMsg(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestAminoMsg; + fromProtoMsg(message: _14.QueryTotalSupplyRequestProtoMsg): _14.QueryTotalSupplyRequest; + toProto(message: _14.QueryTotalSupplyRequest): Uint8Array; + toProtoMsg(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestProtoMsg; + }; + QueryTotalSupplyResponse: { + typeUrl: string; + encode(message: _14.QueryTotalSupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryTotalSupplyResponse; + fromPartial(object: Partial<_14.QueryTotalSupplyResponse>): _14.QueryTotalSupplyResponse; + fromAmino(object: _14.QueryTotalSupplyResponseAmino): _14.QueryTotalSupplyResponse; + toAmino(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseAmino; + fromAminoMsg(object: _14.QueryTotalSupplyResponseAminoMsg): _14.QueryTotalSupplyResponse; + toAminoMsg(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseAminoMsg; + fromProtoMsg(message: _14.QueryTotalSupplyResponseProtoMsg): _14.QueryTotalSupplyResponse; + toProto(message: _14.QueryTotalSupplyResponse): Uint8Array; + toProtoMsg(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseProtoMsg; + }; + QuerySupplyOfRequest: { + typeUrl: string; + encode(message: _14.QuerySupplyOfRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySupplyOfRequest; + fromPartial(object: Partial<_14.QuerySupplyOfRequest>): _14.QuerySupplyOfRequest; + fromAmino(object: _14.QuerySupplyOfRequestAmino): _14.QuerySupplyOfRequest; + toAmino(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestAmino; + fromAminoMsg(object: _14.QuerySupplyOfRequestAminoMsg): _14.QuerySupplyOfRequest; + toAminoMsg(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestAminoMsg; + fromProtoMsg(message: _14.QuerySupplyOfRequestProtoMsg): _14.QuerySupplyOfRequest; + toProto(message: _14.QuerySupplyOfRequest): Uint8Array; + toProtoMsg(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestProtoMsg; + }; + QuerySupplyOfResponse: { + typeUrl: string; + encode(message: _14.QuerySupplyOfResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySupplyOfResponse; + fromPartial(object: Partial<_14.QuerySupplyOfResponse>): _14.QuerySupplyOfResponse; + fromAmino(object: _14.QuerySupplyOfResponseAmino): _14.QuerySupplyOfResponse; + toAmino(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseAmino; + fromAminoMsg(object: _14.QuerySupplyOfResponseAminoMsg): _14.QuerySupplyOfResponse; + toAminoMsg(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseAminoMsg; + fromProtoMsg(message: _14.QuerySupplyOfResponseProtoMsg): _14.QuerySupplyOfResponse; + toProto(message: _14.QuerySupplyOfResponse): Uint8Array; + toProtoMsg(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _14.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryParamsRequest; + fromPartial(_: Partial<_14.QueryParamsRequest>): _14.QueryParamsRequest; + fromAmino(_: _14.QueryParamsRequestAmino): _14.QueryParamsRequest; + toAmino(_: _14.QueryParamsRequest): _14.QueryParamsRequestAmino; + fromAminoMsg(object: _14.QueryParamsRequestAminoMsg): _14.QueryParamsRequest; + toAminoMsg(message: _14.QueryParamsRequest): _14.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _14.QueryParamsRequestProtoMsg): _14.QueryParamsRequest; + toProto(message: _14.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _14.QueryParamsRequest): _14.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _14.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryParamsResponse; + fromPartial(object: Partial<_14.QueryParamsResponse>): _14.QueryParamsResponse; + fromAmino(object: _14.QueryParamsResponseAmino): _14.QueryParamsResponse; + toAmino(message: _14.QueryParamsResponse): _14.QueryParamsResponseAmino; + fromAminoMsg(object: _14.QueryParamsResponseAminoMsg): _14.QueryParamsResponse; + toAminoMsg(message: _14.QueryParamsResponse): _14.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _14.QueryParamsResponseProtoMsg): _14.QueryParamsResponse; + toProto(message: _14.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _14.QueryParamsResponse): _14.QueryParamsResponseProtoMsg; + }; + QueryDenomsMetadataRequest: { + typeUrl: string; + encode(message: _14.QueryDenomsMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomsMetadataRequest; + fromPartial(object: Partial<_14.QueryDenomsMetadataRequest>): _14.QueryDenomsMetadataRequest; + fromAmino(object: _14.QueryDenomsMetadataRequestAmino): _14.QueryDenomsMetadataRequest; + toAmino(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestAmino; + fromAminoMsg(object: _14.QueryDenomsMetadataRequestAminoMsg): _14.QueryDenomsMetadataRequest; + toAminoMsg(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestAminoMsg; + fromProtoMsg(message: _14.QueryDenomsMetadataRequestProtoMsg): _14.QueryDenomsMetadataRequest; + toProto(message: _14.QueryDenomsMetadataRequest): Uint8Array; + toProtoMsg(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestProtoMsg; + }; + QueryDenomsMetadataResponse: { + typeUrl: string; + encode(message: _14.QueryDenomsMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomsMetadataResponse; + fromPartial(object: Partial<_14.QueryDenomsMetadataResponse>): _14.QueryDenomsMetadataResponse; + fromAmino(object: _14.QueryDenomsMetadataResponseAmino): _14.QueryDenomsMetadataResponse; + toAmino(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseAmino; + fromAminoMsg(object: _14.QueryDenomsMetadataResponseAminoMsg): _14.QueryDenomsMetadataResponse; + toAminoMsg(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseAminoMsg; + fromProtoMsg(message: _14.QueryDenomsMetadataResponseProtoMsg): _14.QueryDenomsMetadataResponse; + toProto(message: _14.QueryDenomsMetadataResponse): Uint8Array; + toProtoMsg(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseProtoMsg; + }; + QueryDenomMetadataRequest: { + typeUrl: string; + encode(message: _14.QueryDenomMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomMetadataRequest; + fromPartial(object: Partial<_14.QueryDenomMetadataRequest>): _14.QueryDenomMetadataRequest; + fromAmino(object: _14.QueryDenomMetadataRequestAmino): _14.QueryDenomMetadataRequest; + toAmino(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestAmino; + fromAminoMsg(object: _14.QueryDenomMetadataRequestAminoMsg): _14.QueryDenomMetadataRequest; + toAminoMsg(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestAminoMsg; + fromProtoMsg(message: _14.QueryDenomMetadataRequestProtoMsg): _14.QueryDenomMetadataRequest; + toProto(message: _14.QueryDenomMetadataRequest): Uint8Array; + toProtoMsg(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestProtoMsg; + }; + QueryDenomMetadataResponse: { + typeUrl: string; + encode(message: _14.QueryDenomMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomMetadataResponse; + fromPartial(object: Partial<_14.QueryDenomMetadataResponse>): _14.QueryDenomMetadataResponse; + fromAmino(object: _14.QueryDenomMetadataResponseAmino): _14.QueryDenomMetadataResponse; + toAmino(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseAmino; + fromAminoMsg(object: _14.QueryDenomMetadataResponseAminoMsg): _14.QueryDenomMetadataResponse; + toAminoMsg(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseAminoMsg; + fromProtoMsg(message: _14.QueryDenomMetadataResponseProtoMsg): _14.QueryDenomMetadataResponse; + toProto(message: _14.QueryDenomMetadataResponse): Uint8Array; + toProtoMsg(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseProtoMsg; + }; + QueryDenomOwnersRequest: { + typeUrl: string; + encode(message: _14.QueryDenomOwnersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomOwnersRequest; + fromPartial(object: Partial<_14.QueryDenomOwnersRequest>): _14.QueryDenomOwnersRequest; + fromAmino(object: _14.QueryDenomOwnersRequestAmino): _14.QueryDenomOwnersRequest; + toAmino(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestAmino; + fromAminoMsg(object: _14.QueryDenomOwnersRequestAminoMsg): _14.QueryDenomOwnersRequest; + toAminoMsg(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestAminoMsg; + fromProtoMsg(message: _14.QueryDenomOwnersRequestProtoMsg): _14.QueryDenomOwnersRequest; + toProto(message: _14.QueryDenomOwnersRequest): Uint8Array; + toProtoMsg(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestProtoMsg; + }; + DenomOwner: { + typeUrl: string; + encode(message: _14.DenomOwner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.DenomOwner; + fromPartial(object: Partial<_14.DenomOwner>): _14.DenomOwner; + fromAmino(object: _14.DenomOwnerAmino): _14.DenomOwner; + toAmino(message: _14.DenomOwner): _14.DenomOwnerAmino; + fromAminoMsg(object: _14.DenomOwnerAminoMsg): _14.DenomOwner; + toAminoMsg(message: _14.DenomOwner): _14.DenomOwnerAminoMsg; + fromProtoMsg(message: _14.DenomOwnerProtoMsg): _14.DenomOwner; + toProto(message: _14.DenomOwner): Uint8Array; + toProtoMsg(message: _14.DenomOwner): _14.DenomOwnerProtoMsg; + }; + QueryDenomOwnersResponse: { + typeUrl: string; + encode(message: _14.QueryDenomOwnersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomOwnersResponse; + fromPartial(object: Partial<_14.QueryDenomOwnersResponse>): _14.QueryDenomOwnersResponse; + fromAmino(object: _14.QueryDenomOwnersResponseAmino): _14.QueryDenomOwnersResponse; + toAmino(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseAmino; + fromAminoMsg(object: _14.QueryDenomOwnersResponseAminoMsg): _14.QueryDenomOwnersResponse; + toAminoMsg(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseAminoMsg; + fromProtoMsg(message: _14.QueryDenomOwnersResponseProtoMsg): _14.QueryDenomOwnersResponse; + toProto(message: _14.QueryDenomOwnersResponse): Uint8Array; + toProtoMsg(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _13.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _13.GenesisState; + fromPartial(object: Partial<_13.GenesisState>): _13.GenesisState; + fromAmino(object: _13.GenesisStateAmino): _13.GenesisState; + toAmino(message: _13.GenesisState): _13.GenesisStateAmino; + fromAminoMsg(object: _13.GenesisStateAminoMsg): _13.GenesisState; + toAminoMsg(message: _13.GenesisState): _13.GenesisStateAminoMsg; + fromProtoMsg(message: _13.GenesisStateProtoMsg): _13.GenesisState; + toProto(message: _13.GenesisState): Uint8Array; + toProtoMsg(message: _13.GenesisState): _13.GenesisStateProtoMsg; + }; + Balance: { + typeUrl: string; + encode(message: _13.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _13.Balance; + fromPartial(object: Partial<_13.Balance>): _13.Balance; + fromAmino(object: _13.BalanceAmino): _13.Balance; + toAmino(message: _13.Balance): _13.BalanceAmino; + fromAminoMsg(object: _13.BalanceAminoMsg): _13.Balance; + toAminoMsg(message: _13.Balance): _13.BalanceAminoMsg; + fromProtoMsg(message: _13.BalanceProtoMsg): _13.Balance; + toProto(message: _13.Balance): Uint8Array; + toProtoMsg(message: _13.Balance): _13.BalanceProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _12.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Params; + fromPartial(object: Partial<_12.Params>): _12.Params; + fromAmino(object: _12.ParamsAmino): _12.Params; + toAmino(message: _12.Params): _12.ParamsAmino; + fromAminoMsg(object: _12.ParamsAminoMsg): _12.Params; + toAminoMsg(message: _12.Params): _12.ParamsAminoMsg; + fromProtoMsg(message: _12.ParamsProtoMsg): _12.Params; + toProto(message: _12.Params): Uint8Array; + toProtoMsg(message: _12.Params): _12.ParamsProtoMsg; + }; + SendEnabled: { + typeUrl: string; + encode(message: _12.SendEnabled, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.SendEnabled; + fromPartial(object: Partial<_12.SendEnabled>): _12.SendEnabled; + fromAmino(object: _12.SendEnabledAmino): _12.SendEnabled; + toAmino(message: _12.SendEnabled): _12.SendEnabledAmino; + fromAminoMsg(object: _12.SendEnabledAminoMsg): _12.SendEnabled; + toAminoMsg(message: _12.SendEnabled): _12.SendEnabledAminoMsg; + fromProtoMsg(message: _12.SendEnabledProtoMsg): _12.SendEnabled; + toProto(message: _12.SendEnabled): Uint8Array; + toProtoMsg(message: _12.SendEnabled): _12.SendEnabledProtoMsg; + }; + Input: { + typeUrl: string; + encode(message: _12.Input, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Input; + fromPartial(object: Partial<_12.Input>): _12.Input; + fromAmino(object: _12.InputAmino): _12.Input; + toAmino(message: _12.Input): _12.InputAmino; + fromAminoMsg(object: _12.InputAminoMsg): _12.Input; + toAminoMsg(message: _12.Input): _12.InputAminoMsg; + fromProtoMsg(message: _12.InputProtoMsg): _12.Input; + toProto(message: _12.Input): Uint8Array; + toProtoMsg(message: _12.Input): _12.InputProtoMsg; + }; + Output: { + typeUrl: string; + encode(message: _12.Output, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Output; + fromPartial(object: Partial<_12.Output>): _12.Output; + fromAmino(object: _12.OutputAmino): _12.Output; + toAmino(message: _12.Output): _12.OutputAmino; + fromAminoMsg(object: _12.OutputAminoMsg): _12.Output; + toAminoMsg(message: _12.Output): _12.OutputAminoMsg; + fromProtoMsg(message: _12.OutputProtoMsg): _12.Output; + toProto(message: _12.Output): Uint8Array; + toProtoMsg(message: _12.Output): _12.OutputProtoMsg; + }; + Supply: { + typeUrl: string; + encode(message: _12.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Supply; + fromPartial(object: Partial<_12.Supply>): _12.Supply; + fromAmino(object: _12.SupplyAmino): _12.Supply; + toAmino(message: _12.Supply): _12.SupplyAmino; + fromAminoMsg(object: _12.SupplyAminoMsg): _12.Supply; + toAminoMsg(message: _12.Supply): _12.SupplyAminoMsg; + fromProtoMsg(message: _12.SupplyProtoMsg): _12.Supply; + toProto(message: _12.Supply): Uint8Array; + toProtoMsg(message: _12.Supply): _12.SupplyProtoMsg; + }; + DenomUnit: { + typeUrl: string; + encode(message: _12.DenomUnit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.DenomUnit; + fromPartial(object: Partial<_12.DenomUnit>): _12.DenomUnit; + fromAmino(object: _12.DenomUnitAmino): _12.DenomUnit; + toAmino(message: _12.DenomUnit): _12.DenomUnitAmino; + fromAminoMsg(object: _12.DenomUnitAminoMsg): _12.DenomUnit; + toAminoMsg(message: _12.DenomUnit): _12.DenomUnitAminoMsg; + fromProtoMsg(message: _12.DenomUnitProtoMsg): _12.DenomUnit; + toProto(message: _12.DenomUnit): Uint8Array; + toProtoMsg(message: _12.DenomUnit): _12.DenomUnitProtoMsg; + }; + Metadata: { + typeUrl: string; + encode(message: _12.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Metadata; + fromPartial(object: Partial<_12.Metadata>): _12.Metadata; + fromAmino(object: _12.MetadataAmino): _12.Metadata; + toAmino(message: _12.Metadata): _12.MetadataAmino; + fromAminoMsg(object: _12.MetadataAminoMsg): _12.Metadata; + toAminoMsg(message: _12.Metadata): _12.MetadataAminoMsg; + fromProtoMsg(message: _12.MetadataProtoMsg): _12.Metadata; + toProto(message: _12.Metadata): Uint8Array; + toProtoMsg(message: _12.Metadata): _12.MetadataProtoMsg; + }; + SendAuthorization: { + typeUrl: string; + encode(message: _11.SendAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _11.SendAuthorization; + fromPartial(object: Partial<_11.SendAuthorization>): _11.SendAuthorization; + fromAmino(object: _11.SendAuthorizationAmino): _11.SendAuthorization; + toAmino(message: _11.SendAuthorization): _11.SendAuthorizationAmino; + fromAminoMsg(object: _11.SendAuthorizationAminoMsg): _11.SendAuthorization; + toAminoMsg(message: _11.SendAuthorization): _11.SendAuthorizationAminoMsg; + fromProtoMsg(message: _11.SendAuthorizationProtoMsg): _11.SendAuthorization; + toProto(message: _11.SendAuthorization): Uint8Array; + toProtoMsg(message: _11.SendAuthorization): _11.SendAuthorizationProtoMsg; + }; + }; + } + namespace base { + namespace abci { + const v1beta1: { + TxResponse: { + typeUrl: string; + encode(message: _16.TxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.TxResponse; + fromPartial(object: Partial<_16.TxResponse>): _16.TxResponse; + fromAmino(object: _16.TxResponseAmino): _16.TxResponse; + toAmino(message: _16.TxResponse): _16.TxResponseAmino; + fromAminoMsg(object: _16.TxResponseAminoMsg): _16.TxResponse; + toAminoMsg(message: _16.TxResponse): _16.TxResponseAminoMsg; + fromProtoMsg(message: _16.TxResponseProtoMsg): _16.TxResponse; + toProto(message: _16.TxResponse): Uint8Array; + toProtoMsg(message: _16.TxResponse): _16.TxResponseProtoMsg; + }; + ABCIMessageLog: { + typeUrl: string; + encode(message: _16.ABCIMessageLog, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.ABCIMessageLog; + fromPartial(object: Partial<_16.ABCIMessageLog>): _16.ABCIMessageLog; + fromAmino(object: _16.ABCIMessageLogAmino): _16.ABCIMessageLog; + toAmino(message: _16.ABCIMessageLog): _16.ABCIMessageLogAmino; + fromAminoMsg(object: _16.ABCIMessageLogAminoMsg): _16.ABCIMessageLog; + toAminoMsg(message: _16.ABCIMessageLog): _16.ABCIMessageLogAminoMsg; + fromProtoMsg(message: _16.ABCIMessageLogProtoMsg): _16.ABCIMessageLog; + toProto(message: _16.ABCIMessageLog): Uint8Array; + toProtoMsg(message: _16.ABCIMessageLog): _16.ABCIMessageLogProtoMsg; + }; + StringEvent: { + typeUrl: string; + encode(message: _16.StringEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.StringEvent; + fromPartial(object: Partial<_16.StringEvent>): _16.StringEvent; + fromAmino(object: _16.StringEventAmino): _16.StringEvent; + toAmino(message: _16.StringEvent): _16.StringEventAmino; + fromAminoMsg(object: _16.StringEventAminoMsg): _16.StringEvent; + toAminoMsg(message: _16.StringEvent): _16.StringEventAminoMsg; + fromProtoMsg(message: _16.StringEventProtoMsg): _16.StringEvent; + toProto(message: _16.StringEvent): Uint8Array; + toProtoMsg(message: _16.StringEvent): _16.StringEventProtoMsg; + }; + Attribute: { + typeUrl: string; + encode(message: _16.Attribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.Attribute; + fromPartial(object: Partial<_16.Attribute>): _16.Attribute; + fromAmino(object: _16.AttributeAmino): _16.Attribute; + toAmino(message: _16.Attribute): _16.AttributeAmino; + fromAminoMsg(object: _16.AttributeAminoMsg): _16.Attribute; + toAminoMsg(message: _16.Attribute): _16.AttributeAminoMsg; + fromProtoMsg(message: _16.AttributeProtoMsg): _16.Attribute; + toProto(message: _16.Attribute): Uint8Array; + toProtoMsg(message: _16.Attribute): _16.AttributeProtoMsg; + }; + GasInfo: { + typeUrl: string; + encode(message: _16.GasInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.GasInfo; + fromPartial(object: Partial<_16.GasInfo>): _16.GasInfo; + fromAmino(object: _16.GasInfoAmino): _16.GasInfo; + toAmino(message: _16.GasInfo): _16.GasInfoAmino; + fromAminoMsg(object: _16.GasInfoAminoMsg): _16.GasInfo; + toAminoMsg(message: _16.GasInfo): _16.GasInfoAminoMsg; + fromProtoMsg(message: _16.GasInfoProtoMsg): _16.GasInfo; + toProto(message: _16.GasInfo): Uint8Array; + toProtoMsg(message: _16.GasInfo): _16.GasInfoProtoMsg; + }; + Result: { + typeUrl: string; + encode(message: _16.Result, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.Result; + fromPartial(object: Partial<_16.Result>): _16.Result; + fromAmino(object: _16.ResultAmino): _16.Result; + toAmino(message: _16.Result): _16.ResultAmino; + fromAminoMsg(object: _16.ResultAminoMsg): _16.Result; + toAminoMsg(message: _16.Result): _16.ResultAminoMsg; + fromProtoMsg(message: _16.ResultProtoMsg): _16.Result; + toProto(message: _16.Result): Uint8Array; + toProtoMsg(message: _16.Result): _16.ResultProtoMsg; + }; + SimulationResponse: { + typeUrl: string; + encode(message: _16.SimulationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.SimulationResponse; + fromPartial(object: Partial<_16.SimulationResponse>): _16.SimulationResponse; + fromAmino(object: _16.SimulationResponseAmino): _16.SimulationResponse; + toAmino(message: _16.SimulationResponse): _16.SimulationResponseAmino; + fromAminoMsg(object: _16.SimulationResponseAminoMsg): _16.SimulationResponse; + toAminoMsg(message: _16.SimulationResponse): _16.SimulationResponseAminoMsg; + fromProtoMsg(message: _16.SimulationResponseProtoMsg): _16.SimulationResponse; + toProto(message: _16.SimulationResponse): Uint8Array; + toProtoMsg(message: _16.SimulationResponse): _16.SimulationResponseProtoMsg; + }; + MsgData: { + typeUrl: string; + encode(message: _16.MsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.MsgData; + fromPartial(object: Partial<_16.MsgData>): _16.MsgData; + fromAmino(object: _16.MsgDataAmino): _16.MsgData; + toAmino(message: _16.MsgData): _16.MsgDataAmino; + fromAminoMsg(object: _16.MsgDataAminoMsg): _16.MsgData; + toAminoMsg(message: _16.MsgData): _16.MsgDataAminoMsg; + fromProtoMsg(message: _16.MsgDataProtoMsg): _16.MsgData; + toProto(message: _16.MsgData): Uint8Array; + toProtoMsg(message: _16.MsgData): _16.MsgDataProtoMsg; + }; + TxMsgData: { + typeUrl: string; + encode(message: _16.TxMsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.TxMsgData; + fromPartial(object: Partial<_16.TxMsgData>): _16.TxMsgData; + fromAmino(object: _16.TxMsgDataAmino): _16.TxMsgData; + toAmino(message: _16.TxMsgData): _16.TxMsgDataAmino; + fromAminoMsg(object: _16.TxMsgDataAminoMsg): _16.TxMsgData; + toAminoMsg(message: _16.TxMsgData): _16.TxMsgDataAminoMsg; + fromProtoMsg(message: _16.TxMsgDataProtoMsg): _16.TxMsgData; + toProto(message: _16.TxMsgData): Uint8Array; + toProtoMsg(message: _16.TxMsgData): _16.TxMsgDataProtoMsg; + }; + SearchTxsResult: { + typeUrl: string; + encode(message: _16.SearchTxsResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.SearchTxsResult; + fromPartial(object: Partial<_16.SearchTxsResult>): _16.SearchTxsResult; + fromAmino(object: _16.SearchTxsResultAmino): _16.SearchTxsResult; + toAmino(message: _16.SearchTxsResult): _16.SearchTxsResultAmino; + fromAminoMsg(object: _16.SearchTxsResultAminoMsg): _16.SearchTxsResult; + toAminoMsg(message: _16.SearchTxsResult): _16.SearchTxsResultAminoMsg; + fromProtoMsg(message: _16.SearchTxsResultProtoMsg): _16.SearchTxsResult; + toProto(message: _16.SearchTxsResult): Uint8Array; + toProtoMsg(message: _16.SearchTxsResult): _16.SearchTxsResultProtoMsg; + }; + }; + } + namespace node { + const v1beta1: { + ServiceClientImpl: typeof _156.ServiceClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + config(request?: _17.ConfigRequest): Promise<_17.ConfigResponse>; + }; + LCDQueryClient: typeof _142.LCDQueryClient; + ConfigRequest: { + typeUrl: string; + encode(_: _17.ConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _17.ConfigRequest; + fromPartial(_: Partial<_17.ConfigRequest>): _17.ConfigRequest; + fromAmino(_: _17.ConfigRequestAmino): _17.ConfigRequest; + toAmino(_: _17.ConfigRequest): _17.ConfigRequestAmino; + fromAminoMsg(object: _17.ConfigRequestAminoMsg): _17.ConfigRequest; + toAminoMsg(message: _17.ConfigRequest): _17.ConfigRequestAminoMsg; + fromProtoMsg(message: _17.ConfigRequestProtoMsg): _17.ConfigRequest; + toProto(message: _17.ConfigRequest): Uint8Array; + toProtoMsg(message: _17.ConfigRequest): _17.ConfigRequestProtoMsg; + }; + ConfigResponse: { + typeUrl: string; + encode(message: _17.ConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _17.ConfigResponse; + fromPartial(object: Partial<_17.ConfigResponse>): _17.ConfigResponse; + fromAmino(object: _17.ConfigResponseAmino): _17.ConfigResponse; + toAmino(message: _17.ConfigResponse): _17.ConfigResponseAmino; + fromAminoMsg(object: _17.ConfigResponseAminoMsg): _17.ConfigResponse; + toAminoMsg(message: _17.ConfigResponse): _17.ConfigResponseAminoMsg; + fromProtoMsg(message: _17.ConfigResponseProtoMsg): _17.ConfigResponse; + toProto(message: _17.ConfigResponse): Uint8Array; + toProtoMsg(message: _17.ConfigResponse): _17.ConfigResponseProtoMsg; + }; + }; + } + namespace query { + const v1beta1: { + PageRequest: { + typeUrl: string; + encode(message: _18.PageRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _18.PageRequest; + fromPartial(object: Partial<_18.PageRequest>): _18.PageRequest; + fromAmino(object: _18.PageRequestAmino): _18.PageRequest; + toAmino(message: _18.PageRequest): _18.PageRequestAmino; + fromAminoMsg(object: _18.PageRequestAminoMsg): _18.PageRequest; + toAminoMsg(message: _18.PageRequest): _18.PageRequestAminoMsg; + fromProtoMsg(message: _18.PageRequestProtoMsg): _18.PageRequest; + toProto(message: _18.PageRequest): Uint8Array; + toProtoMsg(message: _18.PageRequest): _18.PageRequestProtoMsg; + }; + PageResponse: { + typeUrl: string; + encode(message: _18.PageResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _18.PageResponse; + fromPartial(object: Partial<_18.PageResponse>): _18.PageResponse; + fromAmino(object: _18.PageResponseAmino): _18.PageResponse; + toAmino(message: _18.PageResponse): _18.PageResponseAmino; + fromAminoMsg(object: _18.PageResponseAminoMsg): _18.PageResponse; + toAminoMsg(message: _18.PageResponse): _18.PageResponseAminoMsg; + fromProtoMsg(message: _18.PageResponseProtoMsg): _18.PageResponse; + toProto(message: _18.PageResponse): Uint8Array; + toProtoMsg(message: _18.PageResponse): _18.PageResponseProtoMsg; + }; + }; + } + namespace reflection { + const v2alpha1: { + AppDescriptor: { + typeUrl: string; + encode(message: _19.AppDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.AppDescriptor; + fromPartial(object: Partial<_19.AppDescriptor>): _19.AppDescriptor; + fromAmino(object: _19.AppDescriptorAmino): _19.AppDescriptor; + toAmino(message: _19.AppDescriptor): _19.AppDescriptorAmino; + fromAminoMsg(object: _19.AppDescriptorAminoMsg): _19.AppDescriptor; + toAminoMsg(message: _19.AppDescriptor): _19.AppDescriptorAminoMsg; + fromProtoMsg(message: _19.AppDescriptorProtoMsg): _19.AppDescriptor; + toProto(message: _19.AppDescriptor): Uint8Array; + toProtoMsg(message: _19.AppDescriptor): _19.AppDescriptorProtoMsg; + }; + TxDescriptor: { + typeUrl: string; + encode(message: _19.TxDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.TxDescriptor; + fromPartial(object: Partial<_19.TxDescriptor>): _19.TxDescriptor; + fromAmino(object: _19.TxDescriptorAmino): _19.TxDescriptor; + toAmino(message: _19.TxDescriptor): _19.TxDescriptorAmino; + fromAminoMsg(object: _19.TxDescriptorAminoMsg): _19.TxDescriptor; + toAminoMsg(message: _19.TxDescriptor): _19.TxDescriptorAminoMsg; + fromProtoMsg(message: _19.TxDescriptorProtoMsg): _19.TxDescriptor; + toProto(message: _19.TxDescriptor): Uint8Array; + toProtoMsg(message: _19.TxDescriptor): _19.TxDescriptorProtoMsg; + }; + AuthnDescriptor: { + typeUrl: string; + encode(message: _19.AuthnDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.AuthnDescriptor; + fromPartial(object: Partial<_19.AuthnDescriptor>): _19.AuthnDescriptor; + fromAmino(object: _19.AuthnDescriptorAmino): _19.AuthnDescriptor; + toAmino(message: _19.AuthnDescriptor): _19.AuthnDescriptorAmino; + fromAminoMsg(object: _19.AuthnDescriptorAminoMsg): _19.AuthnDescriptor; + toAminoMsg(message: _19.AuthnDescriptor): _19.AuthnDescriptorAminoMsg; + fromProtoMsg(message: _19.AuthnDescriptorProtoMsg): _19.AuthnDescriptor; + toProto(message: _19.AuthnDescriptor): Uint8Array; + toProtoMsg(message: _19.AuthnDescriptor): _19.AuthnDescriptorProtoMsg; + }; + SigningModeDescriptor: { + typeUrl: string; + encode(message: _19.SigningModeDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.SigningModeDescriptor; + fromPartial(object: Partial<_19.SigningModeDescriptor>): _19.SigningModeDescriptor; + fromAmino(object: _19.SigningModeDescriptorAmino): _19.SigningModeDescriptor; + toAmino(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorAmino; + fromAminoMsg(object: _19.SigningModeDescriptorAminoMsg): _19.SigningModeDescriptor; + toAminoMsg(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorAminoMsg; + fromProtoMsg(message: _19.SigningModeDescriptorProtoMsg): _19.SigningModeDescriptor; + toProto(message: _19.SigningModeDescriptor): Uint8Array; + toProtoMsg(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorProtoMsg; + }; + ChainDescriptor: { + typeUrl: string; + encode(message: _19.ChainDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.ChainDescriptor; + fromPartial(object: Partial<_19.ChainDescriptor>): _19.ChainDescriptor; + fromAmino(object: _19.ChainDescriptorAmino): _19.ChainDescriptor; + toAmino(message: _19.ChainDescriptor): _19.ChainDescriptorAmino; + fromAminoMsg(object: _19.ChainDescriptorAminoMsg): _19.ChainDescriptor; + toAminoMsg(message: _19.ChainDescriptor): _19.ChainDescriptorAminoMsg; + fromProtoMsg(message: _19.ChainDescriptorProtoMsg): _19.ChainDescriptor; + toProto(message: _19.ChainDescriptor): Uint8Array; + toProtoMsg(message: _19.ChainDescriptor): _19.ChainDescriptorProtoMsg; + }; + CodecDescriptor: { + typeUrl: string; + encode(message: _19.CodecDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.CodecDescriptor; + fromPartial(object: Partial<_19.CodecDescriptor>): _19.CodecDescriptor; + fromAmino(object: _19.CodecDescriptorAmino): _19.CodecDescriptor; + toAmino(message: _19.CodecDescriptor): _19.CodecDescriptorAmino; + fromAminoMsg(object: _19.CodecDescriptorAminoMsg): _19.CodecDescriptor; + toAminoMsg(message: _19.CodecDescriptor): _19.CodecDescriptorAminoMsg; + fromProtoMsg(message: _19.CodecDescriptorProtoMsg): _19.CodecDescriptor; + toProto(message: _19.CodecDescriptor): Uint8Array; + toProtoMsg(message: _19.CodecDescriptor): _19.CodecDescriptorProtoMsg; + }; + InterfaceDescriptor: { + typeUrl: string; + encode(message: _19.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceDescriptor; + fromPartial(object: Partial<_19.InterfaceDescriptor>): _19.InterfaceDescriptor; + fromAmino(object: _19.InterfaceDescriptorAmino): _19.InterfaceDescriptor; + toAmino(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorAmino; + fromAminoMsg(object: _19.InterfaceDescriptorAminoMsg): _19.InterfaceDescriptor; + toAminoMsg(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorAminoMsg; + fromProtoMsg(message: _19.InterfaceDescriptorProtoMsg): _19.InterfaceDescriptor; + toProto(message: _19.InterfaceDescriptor): Uint8Array; + toProtoMsg(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorProtoMsg; + }; + InterfaceImplementerDescriptor: { + typeUrl: string; + encode(message: _19.InterfaceImplementerDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceImplementerDescriptor; + fromPartial(object: Partial<_19.InterfaceImplementerDescriptor>): _19.InterfaceImplementerDescriptor; + fromAmino(object: _19.InterfaceImplementerDescriptorAmino): _19.InterfaceImplementerDescriptor; + toAmino(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorAmino; + fromAminoMsg(object: _19.InterfaceImplementerDescriptorAminoMsg): _19.InterfaceImplementerDescriptor; + toAminoMsg(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorAminoMsg; + fromProtoMsg(message: _19.InterfaceImplementerDescriptorProtoMsg): _19.InterfaceImplementerDescriptor; + toProto(message: _19.InterfaceImplementerDescriptor): Uint8Array; + toProtoMsg(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorProtoMsg; + }; + InterfaceAcceptingMessageDescriptor: { + typeUrl: string; + encode(message: _19.InterfaceAcceptingMessageDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceAcceptingMessageDescriptor; + fromPartial(object: Partial<_19.InterfaceAcceptingMessageDescriptor>): _19.InterfaceAcceptingMessageDescriptor; + fromAmino(object: _19.InterfaceAcceptingMessageDescriptorAmino): _19.InterfaceAcceptingMessageDescriptor; + toAmino(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorAmino; + fromAminoMsg(object: _19.InterfaceAcceptingMessageDescriptorAminoMsg): _19.InterfaceAcceptingMessageDescriptor; + toAminoMsg(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorAminoMsg; + fromProtoMsg(message: _19.InterfaceAcceptingMessageDescriptorProtoMsg): _19.InterfaceAcceptingMessageDescriptor; + toProto(message: _19.InterfaceAcceptingMessageDescriptor): Uint8Array; + toProtoMsg(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorProtoMsg; + }; + ConfigurationDescriptor: { + typeUrl: string; + encode(message: _19.ConfigurationDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.ConfigurationDescriptor; + fromPartial(object: Partial<_19.ConfigurationDescriptor>): _19.ConfigurationDescriptor; + fromAmino(object: _19.ConfigurationDescriptorAmino): _19.ConfigurationDescriptor; + toAmino(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorAmino; + fromAminoMsg(object: _19.ConfigurationDescriptorAminoMsg): _19.ConfigurationDescriptor; + toAminoMsg(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorAminoMsg; + fromProtoMsg(message: _19.ConfigurationDescriptorProtoMsg): _19.ConfigurationDescriptor; + toProto(message: _19.ConfigurationDescriptor): Uint8Array; + toProtoMsg(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorProtoMsg; + }; + MsgDescriptor: { + typeUrl: string; + encode(message: _19.MsgDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.MsgDescriptor; + fromPartial(object: Partial<_19.MsgDescriptor>): _19.MsgDescriptor; + fromAmino(object: _19.MsgDescriptorAmino): _19.MsgDescriptor; + toAmino(message: _19.MsgDescriptor): _19.MsgDescriptorAmino; + fromAminoMsg(object: _19.MsgDescriptorAminoMsg): _19.MsgDescriptor; + toAminoMsg(message: _19.MsgDescriptor): _19.MsgDescriptorAminoMsg; + fromProtoMsg(message: _19.MsgDescriptorProtoMsg): _19.MsgDescriptor; + toProto(message: _19.MsgDescriptor): Uint8Array; + toProtoMsg(message: _19.MsgDescriptor): _19.MsgDescriptorProtoMsg; + }; + GetAuthnDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetAuthnDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetAuthnDescriptorRequest; + fromPartial(_: Partial<_19.GetAuthnDescriptorRequest>): _19.GetAuthnDescriptorRequest; + fromAmino(_: _19.GetAuthnDescriptorRequestAmino): _19.GetAuthnDescriptorRequest; + toAmino(_: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestAmino; + fromAminoMsg(object: _19.GetAuthnDescriptorRequestAminoMsg): _19.GetAuthnDescriptorRequest; + toAminoMsg(message: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetAuthnDescriptorRequestProtoMsg): _19.GetAuthnDescriptorRequest; + toProto(message: _19.GetAuthnDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestProtoMsg; + }; + GetAuthnDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetAuthnDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetAuthnDescriptorResponse; + fromPartial(object: Partial<_19.GetAuthnDescriptorResponse>): _19.GetAuthnDescriptorResponse; + fromAmino(object: _19.GetAuthnDescriptorResponseAmino): _19.GetAuthnDescriptorResponse; + toAmino(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseAmino; + fromAminoMsg(object: _19.GetAuthnDescriptorResponseAminoMsg): _19.GetAuthnDescriptorResponse; + toAminoMsg(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetAuthnDescriptorResponseProtoMsg): _19.GetAuthnDescriptorResponse; + toProto(message: _19.GetAuthnDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseProtoMsg; + }; + GetChainDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetChainDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetChainDescriptorRequest; + fromPartial(_: Partial<_19.GetChainDescriptorRequest>): _19.GetChainDescriptorRequest; + fromAmino(_: _19.GetChainDescriptorRequestAmino): _19.GetChainDescriptorRequest; + toAmino(_: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestAmino; + fromAminoMsg(object: _19.GetChainDescriptorRequestAminoMsg): _19.GetChainDescriptorRequest; + toAminoMsg(message: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetChainDescriptorRequestProtoMsg): _19.GetChainDescriptorRequest; + toProto(message: _19.GetChainDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestProtoMsg; + }; + GetChainDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetChainDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetChainDescriptorResponse; + fromPartial(object: Partial<_19.GetChainDescriptorResponse>): _19.GetChainDescriptorResponse; + fromAmino(object: _19.GetChainDescriptorResponseAmino): _19.GetChainDescriptorResponse; + toAmino(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseAmino; + fromAminoMsg(object: _19.GetChainDescriptorResponseAminoMsg): _19.GetChainDescriptorResponse; + toAminoMsg(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetChainDescriptorResponseProtoMsg): _19.GetChainDescriptorResponse; + toProto(message: _19.GetChainDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseProtoMsg; + }; + GetCodecDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetCodecDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetCodecDescriptorRequest; + fromPartial(_: Partial<_19.GetCodecDescriptorRequest>): _19.GetCodecDescriptorRequest; + fromAmino(_: _19.GetCodecDescriptorRequestAmino): _19.GetCodecDescriptorRequest; + toAmino(_: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestAmino; + fromAminoMsg(object: _19.GetCodecDescriptorRequestAminoMsg): _19.GetCodecDescriptorRequest; + toAminoMsg(message: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetCodecDescriptorRequestProtoMsg): _19.GetCodecDescriptorRequest; + toProto(message: _19.GetCodecDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestProtoMsg; + }; + GetCodecDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetCodecDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetCodecDescriptorResponse; + fromPartial(object: Partial<_19.GetCodecDescriptorResponse>): _19.GetCodecDescriptorResponse; + fromAmino(object: _19.GetCodecDescriptorResponseAmino): _19.GetCodecDescriptorResponse; + toAmino(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseAmino; + fromAminoMsg(object: _19.GetCodecDescriptorResponseAminoMsg): _19.GetCodecDescriptorResponse; + toAminoMsg(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetCodecDescriptorResponseProtoMsg): _19.GetCodecDescriptorResponse; + toProto(message: _19.GetCodecDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseProtoMsg; + }; + GetConfigurationDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetConfigurationDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetConfigurationDescriptorRequest; + fromPartial(_: Partial<_19.GetConfigurationDescriptorRequest>): _19.GetConfigurationDescriptorRequest; + fromAmino(_: _19.GetConfigurationDescriptorRequestAmino): _19.GetConfigurationDescriptorRequest; + toAmino(_: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestAmino; + fromAminoMsg(object: _19.GetConfigurationDescriptorRequestAminoMsg): _19.GetConfigurationDescriptorRequest; + toAminoMsg(message: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetConfigurationDescriptorRequestProtoMsg): _19.GetConfigurationDescriptorRequest; + toProto(message: _19.GetConfigurationDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestProtoMsg; + }; + GetConfigurationDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetConfigurationDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetConfigurationDescriptorResponse; + fromPartial(object: Partial<_19.GetConfigurationDescriptorResponse>): _19.GetConfigurationDescriptorResponse; + fromAmino(object: _19.GetConfigurationDescriptorResponseAmino): _19.GetConfigurationDescriptorResponse; + toAmino(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseAmino; + fromAminoMsg(object: _19.GetConfigurationDescriptorResponseAminoMsg): _19.GetConfigurationDescriptorResponse; + toAminoMsg(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetConfigurationDescriptorResponseProtoMsg): _19.GetConfigurationDescriptorResponse; + toProto(message: _19.GetConfigurationDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseProtoMsg; + }; + GetQueryServicesDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetQueryServicesDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetQueryServicesDescriptorRequest; + fromPartial(_: Partial<_19.GetQueryServicesDescriptorRequest>): _19.GetQueryServicesDescriptorRequest; + fromAmino(_: _19.GetQueryServicesDescriptorRequestAmino): _19.GetQueryServicesDescriptorRequest; + toAmino(_: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestAmino; + fromAminoMsg(object: _19.GetQueryServicesDescriptorRequestAminoMsg): _19.GetQueryServicesDescriptorRequest; + toAminoMsg(message: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetQueryServicesDescriptorRequestProtoMsg): _19.GetQueryServicesDescriptorRequest; + toProto(message: _19.GetQueryServicesDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestProtoMsg; + }; + GetQueryServicesDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetQueryServicesDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetQueryServicesDescriptorResponse; + fromPartial(object: Partial<_19.GetQueryServicesDescriptorResponse>): _19.GetQueryServicesDescriptorResponse; + fromAmino(object: _19.GetQueryServicesDescriptorResponseAmino): _19.GetQueryServicesDescriptorResponse; + toAmino(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseAmino; + fromAminoMsg(object: _19.GetQueryServicesDescriptorResponseAminoMsg): _19.GetQueryServicesDescriptorResponse; + toAminoMsg(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetQueryServicesDescriptorResponseProtoMsg): _19.GetQueryServicesDescriptorResponse; + toProto(message: _19.GetQueryServicesDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseProtoMsg; + }; + GetTxDescriptorRequest: { + typeUrl: string; + encode(_: _19.GetTxDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetTxDescriptorRequest; + fromPartial(_: Partial<_19.GetTxDescriptorRequest>): _19.GetTxDescriptorRequest; + fromAmino(_: _19.GetTxDescriptorRequestAmino): _19.GetTxDescriptorRequest; + toAmino(_: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestAmino; + fromAminoMsg(object: _19.GetTxDescriptorRequestAminoMsg): _19.GetTxDescriptorRequest; + toAminoMsg(message: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestAminoMsg; + fromProtoMsg(message: _19.GetTxDescriptorRequestProtoMsg): _19.GetTxDescriptorRequest; + toProto(message: _19.GetTxDescriptorRequest): Uint8Array; + toProtoMsg(message: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestProtoMsg; + }; + GetTxDescriptorResponse: { + typeUrl: string; + encode(message: _19.GetTxDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetTxDescriptorResponse; + fromPartial(object: Partial<_19.GetTxDescriptorResponse>): _19.GetTxDescriptorResponse; + fromAmino(object: _19.GetTxDescriptorResponseAmino): _19.GetTxDescriptorResponse; + toAmino(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseAmino; + fromAminoMsg(object: _19.GetTxDescriptorResponseAminoMsg): _19.GetTxDescriptorResponse; + toAminoMsg(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseAminoMsg; + fromProtoMsg(message: _19.GetTxDescriptorResponseProtoMsg): _19.GetTxDescriptorResponse; + toProto(message: _19.GetTxDescriptorResponse): Uint8Array; + toProtoMsg(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseProtoMsg; + }; + QueryServicesDescriptor: { + typeUrl: string; + encode(message: _19.QueryServicesDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryServicesDescriptor; + fromPartial(object: Partial<_19.QueryServicesDescriptor>): _19.QueryServicesDescriptor; + fromAmino(object: _19.QueryServicesDescriptorAmino): _19.QueryServicesDescriptor; + toAmino(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorAmino; + fromAminoMsg(object: _19.QueryServicesDescriptorAminoMsg): _19.QueryServicesDescriptor; + toAminoMsg(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorAminoMsg; + fromProtoMsg(message: _19.QueryServicesDescriptorProtoMsg): _19.QueryServicesDescriptor; + toProto(message: _19.QueryServicesDescriptor): Uint8Array; + toProtoMsg(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorProtoMsg; + }; + QueryServiceDescriptor: { + typeUrl: string; + encode(message: _19.QueryServiceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryServiceDescriptor; + fromPartial(object: Partial<_19.QueryServiceDescriptor>): _19.QueryServiceDescriptor; + fromAmino(object: _19.QueryServiceDescriptorAmino): _19.QueryServiceDescriptor; + toAmino(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorAmino; + fromAminoMsg(object: _19.QueryServiceDescriptorAminoMsg): _19.QueryServiceDescriptor; + toAminoMsg(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorAminoMsg; + fromProtoMsg(message: _19.QueryServiceDescriptorProtoMsg): _19.QueryServiceDescriptor; + toProto(message: _19.QueryServiceDescriptor): Uint8Array; + toProtoMsg(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorProtoMsg; + }; + QueryMethodDescriptor: { + typeUrl: string; + encode(message: _19.QueryMethodDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryMethodDescriptor; + fromPartial(object: Partial<_19.QueryMethodDescriptor>): _19.QueryMethodDescriptor; + fromAmino(object: _19.QueryMethodDescriptorAmino): _19.QueryMethodDescriptor; + toAmino(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorAmino; + fromAminoMsg(object: _19.QueryMethodDescriptorAminoMsg): _19.QueryMethodDescriptor; + toAminoMsg(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorAminoMsg; + fromProtoMsg(message: _19.QueryMethodDescriptorProtoMsg): _19.QueryMethodDescriptor; + toProto(message: _19.QueryMethodDescriptor): Uint8Array; + toProtoMsg(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorProtoMsg; + }; + }; + } + const v1beta1: { + Coin: { + typeUrl: string; + encode(message: _20.Coin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.Coin; + fromPartial(object: Partial<_20.Coin>): _20.Coin; + fromAmino(object: _20.CoinAmino): _20.Coin; + toAmino(message: _20.Coin): _20.CoinAmino; + fromAminoMsg(object: _20.CoinAminoMsg): _20.Coin; + toAminoMsg(message: _20.Coin): _20.CoinAminoMsg; + fromProtoMsg(message: _20.CoinProtoMsg): _20.Coin; + toProto(message: _20.Coin): Uint8Array; + toProtoMsg(message: _20.Coin): _20.CoinProtoMsg; + }; + DecCoin: { + typeUrl: string; + encode(message: _20.DecCoin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.DecCoin; + fromPartial(object: Partial<_20.DecCoin>): _20.DecCoin; + fromAmino(object: _20.DecCoinAmino): _20.DecCoin; + toAmino(message: _20.DecCoin): _20.DecCoinAmino; + fromAminoMsg(object: _20.DecCoinAminoMsg): _20.DecCoin; + toAminoMsg(message: _20.DecCoin): _20.DecCoinAminoMsg; + fromProtoMsg(message: _20.DecCoinProtoMsg): _20.DecCoin; + toProto(message: _20.DecCoin): Uint8Array; + toProtoMsg(message: _20.DecCoin): _20.DecCoinProtoMsg; + }; + IntProto: { + typeUrl: string; + encode(message: _20.IntProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.IntProto; + fromPartial(object: Partial<_20.IntProto>): _20.IntProto; + fromAmino(object: _20.IntProtoAmino): _20.IntProto; + toAmino(message: _20.IntProto): _20.IntProtoAmino; + fromAminoMsg(object: _20.IntProtoAminoMsg): _20.IntProto; + toAminoMsg(message: _20.IntProto): _20.IntProtoAminoMsg; + fromProtoMsg(message: _20.IntProtoProtoMsg): _20.IntProto; + toProto(message: _20.IntProto): Uint8Array; + toProtoMsg(message: _20.IntProto): _20.IntProtoProtoMsg; + }; + DecProto: { + typeUrl: string; + encode(message: _20.DecProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.DecProto; + fromPartial(object: Partial<_20.DecProto>): _20.DecProto; + fromAmino(object: _20.DecProtoAmino): _20.DecProto; + toAmino(message: _20.DecProto): _20.DecProtoAmino; + fromAminoMsg(object: _20.DecProtoAminoMsg): _20.DecProto; + toAminoMsg(message: _20.DecProto): _20.DecProtoAminoMsg; + fromProtoMsg(message: _20.DecProtoProtoMsg): _20.DecProto; + toProto(message: _20.DecProto): Uint8Array; + toProtoMsg(message: _20.DecProto): _20.DecProtoProtoMsg; + }; + }; + } + namespace crypto { + const ed25519: { + PubKey: { + typeUrl: string; + encode(message: _21.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _21.PubKey; + fromPartial(object: Partial<_21.PubKey>): _21.PubKey; + fromAmino(object: _21.PubKeyAmino): _21.PubKey; + toAmino(message: _21.PubKey): _21.PubKeyAmino; + fromAminoMsg(object: _21.PubKeyAminoMsg): _21.PubKey; + toAminoMsg(message: _21.PubKey): _21.PubKeyAminoMsg; + fromProtoMsg(message: _21.PubKeyProtoMsg): _21.PubKey; + toProto(message: _21.PubKey): Uint8Array; + toProtoMsg(message: _21.PubKey): _21.PubKeyProtoMsg; + }; + PrivKey: { + typeUrl: string; + encode(message: _21.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _21.PrivKey; + fromPartial(object: Partial<_21.PrivKey>): _21.PrivKey; + fromAmino(object: _21.PrivKeyAmino): _21.PrivKey; + toAmino(message: _21.PrivKey): _21.PrivKeyAmino; + fromAminoMsg(object: _21.PrivKeyAminoMsg): _21.PrivKey; + toAminoMsg(message: _21.PrivKey): _21.PrivKeyAminoMsg; + fromProtoMsg(message: _21.PrivKeyProtoMsg): _21.PrivKey; + toProto(message: _21.PrivKey): Uint8Array; + toProtoMsg(message: _21.PrivKey): _21.PrivKeyProtoMsg; + }; + }; + namespace hd { + const v1: { + BIP44Params: { + typeUrl: string; + encode(message: _22.BIP44Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _22.BIP44Params; + fromPartial(object: Partial<_22.BIP44Params>): _22.BIP44Params; + fromAmino(object: _22.BIP44ParamsAmino): _22.BIP44Params; + toAmino(message: _22.BIP44Params): _22.BIP44ParamsAmino; + fromAminoMsg(object: _22.BIP44ParamsAminoMsg): _22.BIP44Params; + toAminoMsg(message: _22.BIP44Params): _22.BIP44ParamsAminoMsg; + fromProtoMsg(message: _22.BIP44ParamsProtoMsg): _22.BIP44Params; + toProto(message: _22.BIP44Params): Uint8Array; + toProtoMsg(message: _22.BIP44Params): _22.BIP44ParamsProtoMsg; + }; + }; + } + namespace keyring { + const v1: { + Record: { + typeUrl: string; + encode(message: _23.Record, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record; + fromPartial(object: Partial<_23.Record>): _23.Record; + fromAmino(object: _23.RecordAmino): _23.Record; + toAmino(message: _23.Record): _23.RecordAmino; + fromAminoMsg(object: _23.RecordAminoMsg): _23.Record; + toAminoMsg(message: _23.Record): _23.RecordAminoMsg; + fromProtoMsg(message: _23.RecordProtoMsg): _23.Record; + toProto(message: _23.Record): Uint8Array; + toProtoMsg(message: _23.Record): _23.RecordProtoMsg; + }; + Record_Local: { + typeUrl: string; + encode(message: _23.Record_Local, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Local; + fromPartial(object: Partial<_23.Record_Local>): _23.Record_Local; + fromAmino(object: _23.Record_LocalAmino): _23.Record_Local; + toAmino(message: _23.Record_Local): _23.Record_LocalAmino; + fromAminoMsg(object: _23.Record_LocalAminoMsg): _23.Record_Local; + toAminoMsg(message: _23.Record_Local): _23.Record_LocalAminoMsg; + fromProtoMsg(message: _23.Record_LocalProtoMsg): _23.Record_Local; + toProto(message: _23.Record_Local): Uint8Array; + toProtoMsg(message: _23.Record_Local): _23.Record_LocalProtoMsg; + }; + Record_Ledger: { + typeUrl: string; + encode(message: _23.Record_Ledger, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Ledger; + fromPartial(object: Partial<_23.Record_Ledger>): _23.Record_Ledger; + fromAmino(object: _23.Record_LedgerAmino): _23.Record_Ledger; + toAmino(message: _23.Record_Ledger): _23.Record_LedgerAmino; + fromAminoMsg(object: _23.Record_LedgerAminoMsg): _23.Record_Ledger; + toAminoMsg(message: _23.Record_Ledger): _23.Record_LedgerAminoMsg; + fromProtoMsg(message: _23.Record_LedgerProtoMsg): _23.Record_Ledger; + toProto(message: _23.Record_Ledger): Uint8Array; + toProtoMsg(message: _23.Record_Ledger): _23.Record_LedgerProtoMsg; + }; + Record_Multi: { + typeUrl: string; + encode(_: _23.Record_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Multi; + fromPartial(_: Partial<_23.Record_Multi>): _23.Record_Multi; + fromAmino(_: _23.Record_MultiAmino): _23.Record_Multi; + toAmino(_: _23.Record_Multi): _23.Record_MultiAmino; + fromAminoMsg(object: _23.Record_MultiAminoMsg): _23.Record_Multi; + toAminoMsg(message: _23.Record_Multi): _23.Record_MultiAminoMsg; + fromProtoMsg(message: _23.Record_MultiProtoMsg): _23.Record_Multi; + toProto(message: _23.Record_Multi): Uint8Array; + toProtoMsg(message: _23.Record_Multi): _23.Record_MultiProtoMsg; + }; + Record_Offline: { + typeUrl: string; + encode(_: _23.Record_Offline, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Offline; + fromPartial(_: Partial<_23.Record_Offline>): _23.Record_Offline; + fromAmino(_: _23.Record_OfflineAmino): _23.Record_Offline; + toAmino(_: _23.Record_Offline): _23.Record_OfflineAmino; + fromAminoMsg(object: _23.Record_OfflineAminoMsg): _23.Record_Offline; + toAminoMsg(message: _23.Record_Offline): _23.Record_OfflineAminoMsg; + fromProtoMsg(message: _23.Record_OfflineProtoMsg): _23.Record_Offline; + toProto(message: _23.Record_Offline): Uint8Array; + toProtoMsg(message: _23.Record_Offline): _23.Record_OfflineProtoMsg; + }; + }; + } + const multisig: { + LegacyAminoPubKey: { + typeUrl: string; + encode(message: _24.LegacyAminoPubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _24.LegacyAminoPubKey; + fromPartial(object: Partial<_24.LegacyAminoPubKey>): _24.LegacyAminoPubKey; + fromAmino(object: _24.LegacyAminoPubKeyAmino): _24.LegacyAminoPubKey; + toAmino(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyAmino; + fromAminoMsg(object: _24.LegacyAminoPubKeyAminoMsg): _24.LegacyAminoPubKey; + toAminoMsg(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyAminoMsg; + fromProtoMsg(message: _24.LegacyAminoPubKeyProtoMsg): _24.LegacyAminoPubKey; + toProto(message: _24.LegacyAminoPubKey): Uint8Array; + toProtoMsg(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyProtoMsg; + }; + }; + const secp256k1: { + PubKey: { + typeUrl: string; + encode(message: _25.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _25.PubKey; + fromPartial(object: Partial<_25.PubKey>): _25.PubKey; + fromAmino(object: _25.PubKeyAmino): _25.PubKey; + toAmino(message: _25.PubKey): _25.PubKeyAmino; + fromAminoMsg(object: _25.PubKeyAminoMsg): _25.PubKey; + toAminoMsg(message: _25.PubKey): _25.PubKeyAminoMsg; + fromProtoMsg(message: _25.PubKeyProtoMsg): _25.PubKey; + toProto(message: _25.PubKey): Uint8Array; + toProtoMsg(message: _25.PubKey): _25.PubKeyProtoMsg; + }; + PrivKey: { + typeUrl: string; + encode(message: _25.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _25.PrivKey; + fromPartial(object: Partial<_25.PrivKey>): _25.PrivKey; + fromAmino(object: _25.PrivKeyAmino): _25.PrivKey; + toAmino(message: _25.PrivKey): _25.PrivKeyAmino; + fromAminoMsg(object: _25.PrivKeyAminoMsg): _25.PrivKey; + toAminoMsg(message: _25.PrivKey): _25.PrivKeyAminoMsg; + fromProtoMsg(message: _25.PrivKeyProtoMsg): _25.PrivKey; + toProto(message: _25.PrivKey): Uint8Array; + toProtoMsg(message: _25.PrivKey): _25.PrivKeyProtoMsg; + }; + }; + const secp256r1: { + PubKey: { + typeUrl: string; + encode(message: _26.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _26.PubKey; + fromPartial(object: Partial<_26.PubKey>): _26.PubKey; + fromAmino(object: _26.PubKeyAmino): _26.PubKey; + toAmino(message: _26.PubKey): _26.PubKeyAmino; + fromAminoMsg(object: _26.PubKeyAminoMsg): _26.PubKey; + toAminoMsg(message: _26.PubKey): _26.PubKeyAminoMsg; + fromProtoMsg(message: _26.PubKeyProtoMsg): _26.PubKey; + toProto(message: _26.PubKey): Uint8Array; + toProtoMsg(message: _26.PubKey): _26.PubKeyProtoMsg; + }; + PrivKey: { + typeUrl: string; + encode(message: _26.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _26.PrivKey; + fromPartial(object: Partial<_26.PrivKey>): _26.PrivKey; + fromAmino(object: _26.PrivKeyAmino): _26.PrivKey; + toAmino(message: _26.PrivKey): _26.PrivKeyAmino; + fromAminoMsg(object: _26.PrivKeyAminoMsg): _26.PrivKey; + toAminoMsg(message: _26.PrivKey): _26.PrivKeyAminoMsg; + fromProtoMsg(message: _26.PrivKeyProtoMsg): _26.PrivKey; + toProto(message: _26.PrivKey): Uint8Array; + toProtoMsg(message: _26.PrivKey): _26.PrivKeyProtoMsg; + }; + }; + } + namespace distribution { + const v1beta1: { + MsgClientImpl: typeof _169.MsgClientImpl; + QueryClientImpl: typeof _157.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _29.QueryParamsRequest): Promise<_29.QueryParamsResponse>; + validatorOutstandingRewards(request: _29.QueryValidatorOutstandingRewardsRequest): Promise<_29.QueryValidatorOutstandingRewardsResponse>; + validatorCommission(request: _29.QueryValidatorCommissionRequest): Promise<_29.QueryValidatorCommissionResponse>; + validatorSlashes(request: _29.QueryValidatorSlashesRequest): Promise<_29.QueryValidatorSlashesResponse>; + delegationRewards(request: _29.QueryDelegationRewardsRequest): Promise<_29.QueryDelegationRewardsResponse>; + delegationTotalRewards(request: _29.QueryDelegationTotalRewardsRequest): Promise<_29.QueryDelegationTotalRewardsResponse>; + delegatorValidators(request: _29.QueryDelegatorValidatorsRequest): Promise<_29.QueryDelegatorValidatorsResponse>; + delegatorWithdrawAddress(request: _29.QueryDelegatorWithdrawAddressRequest): Promise<_29.QueryDelegatorWithdrawAddressResponse>; + communityPool(request?: _29.QueryCommunityPoolRequest): Promise<_29.QueryCommunityPoolResponse>; + }; + LCDQueryClient: typeof _143.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { + typeUrl: string; + value: Uint8Array; + }; + withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { + typeUrl: string; + value: Uint8Array; + }; + withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { + typeUrl: string; + value: Uint8Array; + }; + fundCommunityPool(value: _30.MsgFundCommunityPool): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { + typeUrl: string; + value: _30.MsgSetWithdrawAddress; + }; + withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { + typeUrl: string; + value: _30.MsgWithdrawDelegatorReward; + }; + withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { + typeUrl: string; + value: _30.MsgWithdrawValidatorCommission; + }; + fundCommunityPool(value: _30.MsgFundCommunityPool): { + typeUrl: string; + value: _30.MsgFundCommunityPool; + }; + }; + fromPartial: { + setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { + typeUrl: string; + value: _30.MsgSetWithdrawAddress; + }; + withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { + typeUrl: string; + value: _30.MsgWithdrawDelegatorReward; + }; + withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { + typeUrl: string; + value: _30.MsgWithdrawValidatorCommission; + }; + fundCommunityPool(value: _30.MsgFundCommunityPool): { + typeUrl: string; + value: _30.MsgFundCommunityPool; + }; + }; + }; + AminoConverter: { + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: string; + toAmino: (message: _30.MsgSetWithdrawAddress) => _30.MsgSetWithdrawAddressAmino; + fromAmino: (object: _30.MsgSetWithdrawAddressAmino) => _30.MsgSetWithdrawAddress; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: string; + toAmino: (message: _30.MsgWithdrawDelegatorReward) => _30.MsgWithdrawDelegatorRewardAmino; + fromAmino: (object: _30.MsgWithdrawDelegatorRewardAmino) => _30.MsgWithdrawDelegatorReward; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: string; + toAmino: (message: _30.MsgWithdrawValidatorCommission) => _30.MsgWithdrawValidatorCommissionAmino; + fromAmino: (object: _30.MsgWithdrawValidatorCommissionAmino) => _30.MsgWithdrawValidatorCommission; + }; + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: string; + toAmino: (message: _30.MsgFundCommunityPool) => _30.MsgFundCommunityPoolAmino; + fromAmino: (object: _30.MsgFundCommunityPoolAmino) => _30.MsgFundCommunityPool; + }; + }; + MsgSetWithdrawAddress: { + typeUrl: string; + encode(message: _30.MsgSetWithdrawAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgSetWithdrawAddress; + fromPartial(object: Partial<_30.MsgSetWithdrawAddress>): _30.MsgSetWithdrawAddress; + fromAmino(object: _30.MsgSetWithdrawAddressAmino): _30.MsgSetWithdrawAddress; + toAmino(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressAmino; + fromAminoMsg(object: _30.MsgSetWithdrawAddressAminoMsg): _30.MsgSetWithdrawAddress; + toAminoMsg(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressAminoMsg; + fromProtoMsg(message: _30.MsgSetWithdrawAddressProtoMsg): _30.MsgSetWithdrawAddress; + toProto(message: _30.MsgSetWithdrawAddress): Uint8Array; + toProtoMsg(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressProtoMsg; + }; + MsgSetWithdrawAddressResponse: { + typeUrl: string; + encode(_: _30.MsgSetWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgSetWithdrawAddressResponse; + fromPartial(_: Partial<_30.MsgSetWithdrawAddressResponse>): _30.MsgSetWithdrawAddressResponse; + fromAmino(_: _30.MsgSetWithdrawAddressResponseAmino): _30.MsgSetWithdrawAddressResponse; + toAmino(_: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseAmino; + fromAminoMsg(object: _30.MsgSetWithdrawAddressResponseAminoMsg): _30.MsgSetWithdrawAddressResponse; + toAminoMsg(message: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseAminoMsg; + fromProtoMsg(message: _30.MsgSetWithdrawAddressResponseProtoMsg): _30.MsgSetWithdrawAddressResponse; + toProto(message: _30.MsgSetWithdrawAddressResponse): Uint8Array; + toProtoMsg(message: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseProtoMsg; + }; + MsgWithdrawDelegatorReward: { + typeUrl: string; + encode(message: _30.MsgWithdrawDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawDelegatorReward; + fromPartial(object: Partial<_30.MsgWithdrawDelegatorReward>): _30.MsgWithdrawDelegatorReward; + fromAmino(object: _30.MsgWithdrawDelegatorRewardAmino): _30.MsgWithdrawDelegatorReward; + toAmino(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardAmino; + fromAminoMsg(object: _30.MsgWithdrawDelegatorRewardAminoMsg): _30.MsgWithdrawDelegatorReward; + toAminoMsg(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardAminoMsg; + fromProtoMsg(message: _30.MsgWithdrawDelegatorRewardProtoMsg): _30.MsgWithdrawDelegatorReward; + toProto(message: _30.MsgWithdrawDelegatorReward): Uint8Array; + toProtoMsg(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardProtoMsg; + }; + MsgWithdrawDelegatorRewardResponse: { + typeUrl: string; + encode(message: _30.MsgWithdrawDelegatorRewardResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawDelegatorRewardResponse; + fromPartial(object: Partial<_30.MsgWithdrawDelegatorRewardResponse>): _30.MsgWithdrawDelegatorRewardResponse; + fromAmino(object: _30.MsgWithdrawDelegatorRewardResponseAmino): _30.MsgWithdrawDelegatorRewardResponse; + toAmino(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseAmino; + fromAminoMsg(object: _30.MsgWithdrawDelegatorRewardResponseAminoMsg): _30.MsgWithdrawDelegatorRewardResponse; + toAminoMsg(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseAminoMsg; + fromProtoMsg(message: _30.MsgWithdrawDelegatorRewardResponseProtoMsg): _30.MsgWithdrawDelegatorRewardResponse; + toProto(message: _30.MsgWithdrawDelegatorRewardResponse): Uint8Array; + toProtoMsg(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseProtoMsg; + }; + MsgWithdrawValidatorCommission: { + typeUrl: string; + encode(message: _30.MsgWithdrawValidatorCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawValidatorCommission; + fromPartial(object: Partial<_30.MsgWithdrawValidatorCommission>): _30.MsgWithdrawValidatorCommission; + fromAmino(object: _30.MsgWithdrawValidatorCommissionAmino): _30.MsgWithdrawValidatorCommission; + toAmino(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionAmino; + fromAminoMsg(object: _30.MsgWithdrawValidatorCommissionAminoMsg): _30.MsgWithdrawValidatorCommission; + toAminoMsg(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionAminoMsg; + fromProtoMsg(message: _30.MsgWithdrawValidatorCommissionProtoMsg): _30.MsgWithdrawValidatorCommission; + toProto(message: _30.MsgWithdrawValidatorCommission): Uint8Array; + toProtoMsg(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionProtoMsg; + }; + MsgWithdrawValidatorCommissionResponse: { + typeUrl: string; + encode(message: _30.MsgWithdrawValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawValidatorCommissionResponse; + fromPartial(object: Partial<_30.MsgWithdrawValidatorCommissionResponse>): _30.MsgWithdrawValidatorCommissionResponse; + fromAmino(object: _30.MsgWithdrawValidatorCommissionResponseAmino): _30.MsgWithdrawValidatorCommissionResponse; + toAmino(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseAmino; + fromAminoMsg(object: _30.MsgWithdrawValidatorCommissionResponseAminoMsg): _30.MsgWithdrawValidatorCommissionResponse; + toAminoMsg(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseAminoMsg; + fromProtoMsg(message: _30.MsgWithdrawValidatorCommissionResponseProtoMsg): _30.MsgWithdrawValidatorCommissionResponse; + toProto(message: _30.MsgWithdrawValidatorCommissionResponse): Uint8Array; + toProtoMsg(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseProtoMsg; + }; + MsgFundCommunityPool: { + typeUrl: string; + encode(message: _30.MsgFundCommunityPool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgFundCommunityPool; + fromPartial(object: Partial<_30.MsgFundCommunityPool>): _30.MsgFundCommunityPool; + fromAmino(object: _30.MsgFundCommunityPoolAmino): _30.MsgFundCommunityPool; + toAmino(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolAmino; + fromAminoMsg(object: _30.MsgFundCommunityPoolAminoMsg): _30.MsgFundCommunityPool; + toAminoMsg(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolAminoMsg; + fromProtoMsg(message: _30.MsgFundCommunityPoolProtoMsg): _30.MsgFundCommunityPool; + toProto(message: _30.MsgFundCommunityPool): Uint8Array; + toProtoMsg(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolProtoMsg; + }; + MsgFundCommunityPoolResponse: { + typeUrl: string; + encode(_: _30.MsgFundCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgFundCommunityPoolResponse; + fromPartial(_: Partial<_30.MsgFundCommunityPoolResponse>): _30.MsgFundCommunityPoolResponse; + fromAmino(_: _30.MsgFundCommunityPoolResponseAmino): _30.MsgFundCommunityPoolResponse; + toAmino(_: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseAmino; + fromAminoMsg(object: _30.MsgFundCommunityPoolResponseAminoMsg): _30.MsgFundCommunityPoolResponse; + toAminoMsg(message: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseAminoMsg; + fromProtoMsg(message: _30.MsgFundCommunityPoolResponseProtoMsg): _30.MsgFundCommunityPoolResponse; + toProto(message: _30.MsgFundCommunityPoolResponse): Uint8Array; + toProtoMsg(message: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _29.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryParamsRequest; + fromPartial(_: Partial<_29.QueryParamsRequest>): _29.QueryParamsRequest; + fromAmino(_: _29.QueryParamsRequestAmino): _29.QueryParamsRequest; + toAmino(_: _29.QueryParamsRequest): _29.QueryParamsRequestAmino; + fromAminoMsg(object: _29.QueryParamsRequestAminoMsg): _29.QueryParamsRequest; + toAminoMsg(message: _29.QueryParamsRequest): _29.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _29.QueryParamsRequestProtoMsg): _29.QueryParamsRequest; + toProto(message: _29.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _29.QueryParamsRequest): _29.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _29.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryParamsResponse; + fromPartial(object: Partial<_29.QueryParamsResponse>): _29.QueryParamsResponse; + fromAmino(object: _29.QueryParamsResponseAmino): _29.QueryParamsResponse; + toAmino(message: _29.QueryParamsResponse): _29.QueryParamsResponseAmino; + fromAminoMsg(object: _29.QueryParamsResponseAminoMsg): _29.QueryParamsResponse; + toAminoMsg(message: _29.QueryParamsResponse): _29.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _29.QueryParamsResponseProtoMsg): _29.QueryParamsResponse; + toProto(message: _29.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _29.QueryParamsResponse): _29.QueryParamsResponseProtoMsg; + }; + QueryValidatorOutstandingRewardsRequest: { + typeUrl: string; + encode(message: _29.QueryValidatorOutstandingRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorOutstandingRewardsRequest; + fromPartial(object: Partial<_29.QueryValidatorOutstandingRewardsRequest>): _29.QueryValidatorOutstandingRewardsRequest; + fromAmino(object: _29.QueryValidatorOutstandingRewardsRequestAmino): _29.QueryValidatorOutstandingRewardsRequest; + toAmino(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestAmino; + fromAminoMsg(object: _29.QueryValidatorOutstandingRewardsRequestAminoMsg): _29.QueryValidatorOutstandingRewardsRequest; + toAminoMsg(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestAminoMsg; + fromProtoMsg(message: _29.QueryValidatorOutstandingRewardsRequestProtoMsg): _29.QueryValidatorOutstandingRewardsRequest; + toProto(message: _29.QueryValidatorOutstandingRewardsRequest): Uint8Array; + toProtoMsg(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestProtoMsg; + }; + QueryValidatorOutstandingRewardsResponse: { + typeUrl: string; + encode(message: _29.QueryValidatorOutstandingRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorOutstandingRewardsResponse; + fromPartial(object: Partial<_29.QueryValidatorOutstandingRewardsResponse>): _29.QueryValidatorOutstandingRewardsResponse; + fromAmino(object: _29.QueryValidatorOutstandingRewardsResponseAmino): _29.QueryValidatorOutstandingRewardsResponse; + toAmino(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseAmino; + fromAminoMsg(object: _29.QueryValidatorOutstandingRewardsResponseAminoMsg): _29.QueryValidatorOutstandingRewardsResponse; + toAminoMsg(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseAminoMsg; + fromProtoMsg(message: _29.QueryValidatorOutstandingRewardsResponseProtoMsg): _29.QueryValidatorOutstandingRewardsResponse; + toProto(message: _29.QueryValidatorOutstandingRewardsResponse): Uint8Array; + toProtoMsg(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseProtoMsg; + }; + QueryValidatorCommissionRequest: { + typeUrl: string; + encode(message: _29.QueryValidatorCommissionRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorCommissionRequest; + fromPartial(object: Partial<_29.QueryValidatorCommissionRequest>): _29.QueryValidatorCommissionRequest; + fromAmino(object: _29.QueryValidatorCommissionRequestAmino): _29.QueryValidatorCommissionRequest; + toAmino(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestAmino; + fromAminoMsg(object: _29.QueryValidatorCommissionRequestAminoMsg): _29.QueryValidatorCommissionRequest; + toAminoMsg(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestAminoMsg; + fromProtoMsg(message: _29.QueryValidatorCommissionRequestProtoMsg): _29.QueryValidatorCommissionRequest; + toProto(message: _29.QueryValidatorCommissionRequest): Uint8Array; + toProtoMsg(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestProtoMsg; + }; + QueryValidatorCommissionResponse: { + typeUrl: string; + encode(message: _29.QueryValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorCommissionResponse; + fromPartial(object: Partial<_29.QueryValidatorCommissionResponse>): _29.QueryValidatorCommissionResponse; + fromAmino(object: _29.QueryValidatorCommissionResponseAmino): _29.QueryValidatorCommissionResponse; + toAmino(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseAmino; + fromAminoMsg(object: _29.QueryValidatorCommissionResponseAminoMsg): _29.QueryValidatorCommissionResponse; + toAminoMsg(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseAminoMsg; + fromProtoMsg(message: _29.QueryValidatorCommissionResponseProtoMsg): _29.QueryValidatorCommissionResponse; + toProto(message: _29.QueryValidatorCommissionResponse): Uint8Array; + toProtoMsg(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseProtoMsg; + }; + QueryValidatorSlashesRequest: { + typeUrl: string; + encode(message: _29.QueryValidatorSlashesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorSlashesRequest; + fromPartial(object: Partial<_29.QueryValidatorSlashesRequest>): _29.QueryValidatorSlashesRequest; + fromAmino(object: _29.QueryValidatorSlashesRequestAmino): _29.QueryValidatorSlashesRequest; + toAmino(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestAmino; + fromAminoMsg(object: _29.QueryValidatorSlashesRequestAminoMsg): _29.QueryValidatorSlashesRequest; + toAminoMsg(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestAminoMsg; + fromProtoMsg(message: _29.QueryValidatorSlashesRequestProtoMsg): _29.QueryValidatorSlashesRequest; + toProto(message: _29.QueryValidatorSlashesRequest): Uint8Array; + toProtoMsg(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestProtoMsg; + }; + QueryValidatorSlashesResponse: { + typeUrl: string; + encode(message: _29.QueryValidatorSlashesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorSlashesResponse; + fromPartial(object: Partial<_29.QueryValidatorSlashesResponse>): _29.QueryValidatorSlashesResponse; + fromAmino(object: _29.QueryValidatorSlashesResponseAmino): _29.QueryValidatorSlashesResponse; + toAmino(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseAmino; + fromAminoMsg(object: _29.QueryValidatorSlashesResponseAminoMsg): _29.QueryValidatorSlashesResponse; + toAminoMsg(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseAminoMsg; + fromProtoMsg(message: _29.QueryValidatorSlashesResponseProtoMsg): _29.QueryValidatorSlashesResponse; + toProto(message: _29.QueryValidatorSlashesResponse): Uint8Array; + toProtoMsg(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseProtoMsg; + }; + QueryDelegationRewardsRequest: { + typeUrl: string; + encode(message: _29.QueryDelegationRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationRewardsRequest; + fromPartial(object: Partial<_29.QueryDelegationRewardsRequest>): _29.QueryDelegationRewardsRequest; + fromAmino(object: _29.QueryDelegationRewardsRequestAmino): _29.QueryDelegationRewardsRequest; + toAmino(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestAmino; + fromAminoMsg(object: _29.QueryDelegationRewardsRequestAminoMsg): _29.QueryDelegationRewardsRequest; + toAminoMsg(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestAminoMsg; + fromProtoMsg(message: _29.QueryDelegationRewardsRequestProtoMsg): _29.QueryDelegationRewardsRequest; + toProto(message: _29.QueryDelegationRewardsRequest): Uint8Array; + toProtoMsg(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestProtoMsg; + }; + QueryDelegationRewardsResponse: { + typeUrl: string; + encode(message: _29.QueryDelegationRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationRewardsResponse; + fromPartial(object: Partial<_29.QueryDelegationRewardsResponse>): _29.QueryDelegationRewardsResponse; + fromAmino(object: _29.QueryDelegationRewardsResponseAmino): _29.QueryDelegationRewardsResponse; + toAmino(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseAmino; + fromAminoMsg(object: _29.QueryDelegationRewardsResponseAminoMsg): _29.QueryDelegationRewardsResponse; + toAminoMsg(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseAminoMsg; + fromProtoMsg(message: _29.QueryDelegationRewardsResponseProtoMsg): _29.QueryDelegationRewardsResponse; + toProto(message: _29.QueryDelegationRewardsResponse): Uint8Array; + toProtoMsg(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseProtoMsg; + }; + QueryDelegationTotalRewardsRequest: { + typeUrl: string; + encode(message: _29.QueryDelegationTotalRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationTotalRewardsRequest; + fromPartial(object: Partial<_29.QueryDelegationTotalRewardsRequest>): _29.QueryDelegationTotalRewardsRequest; + fromAmino(object: _29.QueryDelegationTotalRewardsRequestAmino): _29.QueryDelegationTotalRewardsRequest; + toAmino(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestAmino; + fromAminoMsg(object: _29.QueryDelegationTotalRewardsRequestAminoMsg): _29.QueryDelegationTotalRewardsRequest; + toAminoMsg(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestAminoMsg; + fromProtoMsg(message: _29.QueryDelegationTotalRewardsRequestProtoMsg): _29.QueryDelegationTotalRewardsRequest; + toProto(message: _29.QueryDelegationTotalRewardsRequest): Uint8Array; + toProtoMsg(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestProtoMsg; + }; + QueryDelegationTotalRewardsResponse: { + typeUrl: string; + encode(message: _29.QueryDelegationTotalRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationTotalRewardsResponse; + fromPartial(object: Partial<_29.QueryDelegationTotalRewardsResponse>): _29.QueryDelegationTotalRewardsResponse; + fromAmino(object: _29.QueryDelegationTotalRewardsResponseAmino): _29.QueryDelegationTotalRewardsResponse; + toAmino(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseAmino; + fromAminoMsg(object: _29.QueryDelegationTotalRewardsResponseAminoMsg): _29.QueryDelegationTotalRewardsResponse; + toAminoMsg(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseAminoMsg; + fromProtoMsg(message: _29.QueryDelegationTotalRewardsResponseProtoMsg): _29.QueryDelegationTotalRewardsResponse; + toProto(message: _29.QueryDelegationTotalRewardsResponse): Uint8Array; + toProtoMsg(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseProtoMsg; + }; + QueryDelegatorValidatorsRequest: { + typeUrl: string; + encode(message: _29.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorValidatorsRequest; + fromPartial(object: Partial<_29.QueryDelegatorValidatorsRequest>): _29.QueryDelegatorValidatorsRequest; + fromAmino(object: _29.QueryDelegatorValidatorsRequestAmino): _29.QueryDelegatorValidatorsRequest; + toAmino(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestAmino; + fromAminoMsg(object: _29.QueryDelegatorValidatorsRequestAminoMsg): _29.QueryDelegatorValidatorsRequest; + toAminoMsg(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestAminoMsg; + fromProtoMsg(message: _29.QueryDelegatorValidatorsRequestProtoMsg): _29.QueryDelegatorValidatorsRequest; + toProto(message: _29.QueryDelegatorValidatorsRequest): Uint8Array; + toProtoMsg(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestProtoMsg; + }; + QueryDelegatorValidatorsResponse: { + typeUrl: string; + encode(message: _29.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorValidatorsResponse; + fromPartial(object: Partial<_29.QueryDelegatorValidatorsResponse>): _29.QueryDelegatorValidatorsResponse; + fromAmino(object: _29.QueryDelegatorValidatorsResponseAmino): _29.QueryDelegatorValidatorsResponse; + toAmino(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseAmino; + fromAminoMsg(object: _29.QueryDelegatorValidatorsResponseAminoMsg): _29.QueryDelegatorValidatorsResponse; + toAminoMsg(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseAminoMsg; + fromProtoMsg(message: _29.QueryDelegatorValidatorsResponseProtoMsg): _29.QueryDelegatorValidatorsResponse; + toProto(message: _29.QueryDelegatorValidatorsResponse): Uint8Array; + toProtoMsg(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseProtoMsg; + }; + QueryDelegatorWithdrawAddressRequest: { + typeUrl: string; + encode(message: _29.QueryDelegatorWithdrawAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorWithdrawAddressRequest; + fromPartial(object: Partial<_29.QueryDelegatorWithdrawAddressRequest>): _29.QueryDelegatorWithdrawAddressRequest; + fromAmino(object: _29.QueryDelegatorWithdrawAddressRequestAmino): _29.QueryDelegatorWithdrawAddressRequest; + toAmino(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestAmino; + fromAminoMsg(object: _29.QueryDelegatorWithdrawAddressRequestAminoMsg): _29.QueryDelegatorWithdrawAddressRequest; + toAminoMsg(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestAminoMsg; + fromProtoMsg(message: _29.QueryDelegatorWithdrawAddressRequestProtoMsg): _29.QueryDelegatorWithdrawAddressRequest; + toProto(message: _29.QueryDelegatorWithdrawAddressRequest): Uint8Array; + toProtoMsg(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestProtoMsg; + }; + QueryDelegatorWithdrawAddressResponse: { + typeUrl: string; + encode(message: _29.QueryDelegatorWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorWithdrawAddressResponse; + fromPartial(object: Partial<_29.QueryDelegatorWithdrawAddressResponse>): _29.QueryDelegatorWithdrawAddressResponse; + fromAmino(object: _29.QueryDelegatorWithdrawAddressResponseAmino): _29.QueryDelegatorWithdrawAddressResponse; + toAmino(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseAmino; + fromAminoMsg(object: _29.QueryDelegatorWithdrawAddressResponseAminoMsg): _29.QueryDelegatorWithdrawAddressResponse; + toAminoMsg(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseAminoMsg; + fromProtoMsg(message: _29.QueryDelegatorWithdrawAddressResponseProtoMsg): _29.QueryDelegatorWithdrawAddressResponse; + toProto(message: _29.QueryDelegatorWithdrawAddressResponse): Uint8Array; + toProtoMsg(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseProtoMsg; + }; + QueryCommunityPoolRequest: { + typeUrl: string; + encode(_: _29.QueryCommunityPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryCommunityPoolRequest; + fromPartial(_: Partial<_29.QueryCommunityPoolRequest>): _29.QueryCommunityPoolRequest; + fromAmino(_: _29.QueryCommunityPoolRequestAmino): _29.QueryCommunityPoolRequest; + toAmino(_: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestAmino; + fromAminoMsg(object: _29.QueryCommunityPoolRequestAminoMsg): _29.QueryCommunityPoolRequest; + toAminoMsg(message: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestAminoMsg; + fromProtoMsg(message: _29.QueryCommunityPoolRequestProtoMsg): _29.QueryCommunityPoolRequest; + toProto(message: _29.QueryCommunityPoolRequest): Uint8Array; + toProtoMsg(message: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestProtoMsg; + }; + QueryCommunityPoolResponse: { + typeUrl: string; + encode(message: _29.QueryCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryCommunityPoolResponse; + fromPartial(object: Partial<_29.QueryCommunityPoolResponse>): _29.QueryCommunityPoolResponse; + fromAmino(object: _29.QueryCommunityPoolResponseAmino): _29.QueryCommunityPoolResponse; + toAmino(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseAmino; + fromAminoMsg(object: _29.QueryCommunityPoolResponseAminoMsg): _29.QueryCommunityPoolResponse; + toAminoMsg(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseAminoMsg; + fromProtoMsg(message: _29.QueryCommunityPoolResponseProtoMsg): _29.QueryCommunityPoolResponse; + toProto(message: _29.QueryCommunityPoolResponse): Uint8Array; + toProtoMsg(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseProtoMsg; + }; + DelegatorWithdrawInfo: { + typeUrl: string; + encode(message: _28.DelegatorWithdrawInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.DelegatorWithdrawInfo; + fromPartial(object: Partial<_28.DelegatorWithdrawInfo>): _28.DelegatorWithdrawInfo; + fromAmino(object: _28.DelegatorWithdrawInfoAmino): _28.DelegatorWithdrawInfo; + toAmino(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoAmino; + fromAminoMsg(object: _28.DelegatorWithdrawInfoAminoMsg): _28.DelegatorWithdrawInfo; + toAminoMsg(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoAminoMsg; + fromProtoMsg(message: _28.DelegatorWithdrawInfoProtoMsg): _28.DelegatorWithdrawInfo; + toProto(message: _28.DelegatorWithdrawInfo): Uint8Array; + toProtoMsg(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoProtoMsg; + }; + ValidatorOutstandingRewardsRecord: { + typeUrl: string; + encode(message: _28.ValidatorOutstandingRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorOutstandingRewardsRecord; + fromPartial(object: Partial<_28.ValidatorOutstandingRewardsRecord>): _28.ValidatorOutstandingRewardsRecord; + fromAmino(object: _28.ValidatorOutstandingRewardsRecordAmino): _28.ValidatorOutstandingRewardsRecord; + toAmino(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordAmino; + fromAminoMsg(object: _28.ValidatorOutstandingRewardsRecordAminoMsg): _28.ValidatorOutstandingRewardsRecord; + toAminoMsg(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordAminoMsg; + fromProtoMsg(message: _28.ValidatorOutstandingRewardsRecordProtoMsg): _28.ValidatorOutstandingRewardsRecord; + toProto(message: _28.ValidatorOutstandingRewardsRecord): Uint8Array; + toProtoMsg(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordProtoMsg; + }; + ValidatorAccumulatedCommissionRecord: { + typeUrl: string; + encode(message: _28.ValidatorAccumulatedCommissionRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorAccumulatedCommissionRecord; + fromPartial(object: Partial<_28.ValidatorAccumulatedCommissionRecord>): _28.ValidatorAccumulatedCommissionRecord; + fromAmino(object: _28.ValidatorAccumulatedCommissionRecordAmino): _28.ValidatorAccumulatedCommissionRecord; + toAmino(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordAmino; + fromAminoMsg(object: _28.ValidatorAccumulatedCommissionRecordAminoMsg): _28.ValidatorAccumulatedCommissionRecord; + toAminoMsg(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordAminoMsg; + fromProtoMsg(message: _28.ValidatorAccumulatedCommissionRecordProtoMsg): _28.ValidatorAccumulatedCommissionRecord; + toProto(message: _28.ValidatorAccumulatedCommissionRecord): Uint8Array; + toProtoMsg(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordProtoMsg; + }; + ValidatorHistoricalRewardsRecord: { + typeUrl: string; + encode(message: _28.ValidatorHistoricalRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorHistoricalRewardsRecord; + fromPartial(object: Partial<_28.ValidatorHistoricalRewardsRecord>): _28.ValidatorHistoricalRewardsRecord; + fromAmino(object: _28.ValidatorHistoricalRewardsRecordAmino): _28.ValidatorHistoricalRewardsRecord; + toAmino(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordAmino; + fromAminoMsg(object: _28.ValidatorHistoricalRewardsRecordAminoMsg): _28.ValidatorHistoricalRewardsRecord; + toAminoMsg(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordAminoMsg; + fromProtoMsg(message: _28.ValidatorHistoricalRewardsRecordProtoMsg): _28.ValidatorHistoricalRewardsRecord; + toProto(message: _28.ValidatorHistoricalRewardsRecord): Uint8Array; + toProtoMsg(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordProtoMsg; + }; + ValidatorCurrentRewardsRecord: { + typeUrl: string; + encode(message: _28.ValidatorCurrentRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorCurrentRewardsRecord; + fromPartial(object: Partial<_28.ValidatorCurrentRewardsRecord>): _28.ValidatorCurrentRewardsRecord; + fromAmino(object: _28.ValidatorCurrentRewardsRecordAmino): _28.ValidatorCurrentRewardsRecord; + toAmino(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordAmino; + fromAminoMsg(object: _28.ValidatorCurrentRewardsRecordAminoMsg): _28.ValidatorCurrentRewardsRecord; + toAminoMsg(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordAminoMsg; + fromProtoMsg(message: _28.ValidatorCurrentRewardsRecordProtoMsg): _28.ValidatorCurrentRewardsRecord; + toProto(message: _28.ValidatorCurrentRewardsRecord): Uint8Array; + toProtoMsg(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordProtoMsg; + }; + DelegatorStartingInfoRecord: { + typeUrl: string; + encode(message: _28.DelegatorStartingInfoRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.DelegatorStartingInfoRecord; + fromPartial(object: Partial<_28.DelegatorStartingInfoRecord>): _28.DelegatorStartingInfoRecord; + fromAmino(object: _28.DelegatorStartingInfoRecordAmino): _28.DelegatorStartingInfoRecord; + toAmino(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordAmino; + fromAminoMsg(object: _28.DelegatorStartingInfoRecordAminoMsg): _28.DelegatorStartingInfoRecord; + toAminoMsg(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordAminoMsg; + fromProtoMsg(message: _28.DelegatorStartingInfoRecordProtoMsg): _28.DelegatorStartingInfoRecord; + toProto(message: _28.DelegatorStartingInfoRecord): Uint8Array; + toProtoMsg(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordProtoMsg; + }; + ValidatorSlashEventRecord: { + typeUrl: string; + encode(message: _28.ValidatorSlashEventRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorSlashEventRecord; + fromPartial(object: Partial<_28.ValidatorSlashEventRecord>): _28.ValidatorSlashEventRecord; + fromAmino(object: _28.ValidatorSlashEventRecordAmino): _28.ValidatorSlashEventRecord; + toAmino(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordAmino; + fromAminoMsg(object: _28.ValidatorSlashEventRecordAminoMsg): _28.ValidatorSlashEventRecord; + toAminoMsg(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordAminoMsg; + fromProtoMsg(message: _28.ValidatorSlashEventRecordProtoMsg): _28.ValidatorSlashEventRecord; + toProto(message: _28.ValidatorSlashEventRecord): Uint8Array; + toProtoMsg(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _28.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.GenesisState; + fromPartial(object: Partial<_28.GenesisState>): _28.GenesisState; + fromAmino(object: _28.GenesisStateAmino): _28.GenesisState; + toAmino(message: _28.GenesisState): _28.GenesisStateAmino; + fromAminoMsg(object: _28.GenesisStateAminoMsg): _28.GenesisState; + toAminoMsg(message: _28.GenesisState): _28.GenesisStateAminoMsg; + fromProtoMsg(message: _28.GenesisStateProtoMsg): _28.GenesisState; + toProto(message: _28.GenesisState): Uint8Array; + toProtoMsg(message: _28.GenesisState): _28.GenesisStateProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _27.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.Params; + fromPartial(object: Partial<_27.Params>): _27.Params; + fromAmino(object: _27.ParamsAmino): _27.Params; + toAmino(message: _27.Params): _27.ParamsAmino; + fromAminoMsg(object: _27.ParamsAminoMsg): _27.Params; + toAminoMsg(message: _27.Params): _27.ParamsAminoMsg; + fromProtoMsg(message: _27.ParamsProtoMsg): _27.Params; + toProto(message: _27.Params): Uint8Array; + toProtoMsg(message: _27.Params): _27.ParamsProtoMsg; + }; + ValidatorHistoricalRewards: { + typeUrl: string; + encode(message: _27.ValidatorHistoricalRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorHistoricalRewards; + fromPartial(object: Partial<_27.ValidatorHistoricalRewards>): _27.ValidatorHistoricalRewards; + fromAmino(object: _27.ValidatorHistoricalRewardsAmino): _27.ValidatorHistoricalRewards; + toAmino(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsAmino; + fromAminoMsg(object: _27.ValidatorHistoricalRewardsAminoMsg): _27.ValidatorHistoricalRewards; + toAminoMsg(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsAminoMsg; + fromProtoMsg(message: _27.ValidatorHistoricalRewardsProtoMsg): _27.ValidatorHistoricalRewards; + toProto(message: _27.ValidatorHistoricalRewards): Uint8Array; + toProtoMsg(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsProtoMsg; + }; + ValidatorCurrentRewards: { + typeUrl: string; + encode(message: _27.ValidatorCurrentRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorCurrentRewards; + fromPartial(object: Partial<_27.ValidatorCurrentRewards>): _27.ValidatorCurrentRewards; + fromAmino(object: _27.ValidatorCurrentRewardsAmino): _27.ValidatorCurrentRewards; + toAmino(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsAmino; + fromAminoMsg(object: _27.ValidatorCurrentRewardsAminoMsg): _27.ValidatorCurrentRewards; + toAminoMsg(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsAminoMsg; + fromProtoMsg(message: _27.ValidatorCurrentRewardsProtoMsg): _27.ValidatorCurrentRewards; + toProto(message: _27.ValidatorCurrentRewards): Uint8Array; + toProtoMsg(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsProtoMsg; + }; + ValidatorAccumulatedCommission: { + typeUrl: string; + encode(message: _27.ValidatorAccumulatedCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorAccumulatedCommission; + fromPartial(object: Partial<_27.ValidatorAccumulatedCommission>): _27.ValidatorAccumulatedCommission; + fromAmino(object: _27.ValidatorAccumulatedCommissionAmino): _27.ValidatorAccumulatedCommission; + toAmino(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionAmino; + fromAminoMsg(object: _27.ValidatorAccumulatedCommissionAminoMsg): _27.ValidatorAccumulatedCommission; + toAminoMsg(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionAminoMsg; + fromProtoMsg(message: _27.ValidatorAccumulatedCommissionProtoMsg): _27.ValidatorAccumulatedCommission; + toProto(message: _27.ValidatorAccumulatedCommission): Uint8Array; + toProtoMsg(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionProtoMsg; + }; + ValidatorOutstandingRewards: { + typeUrl: string; + encode(message: _27.ValidatorOutstandingRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorOutstandingRewards; + fromPartial(object: Partial<_27.ValidatorOutstandingRewards>): _27.ValidatorOutstandingRewards; + fromAmino(object: _27.ValidatorOutstandingRewardsAmino): _27.ValidatorOutstandingRewards; + toAmino(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsAmino; + fromAminoMsg(object: _27.ValidatorOutstandingRewardsAminoMsg): _27.ValidatorOutstandingRewards; + toAminoMsg(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsAminoMsg; + fromProtoMsg(message: _27.ValidatorOutstandingRewardsProtoMsg): _27.ValidatorOutstandingRewards; + toProto(message: _27.ValidatorOutstandingRewards): Uint8Array; + toProtoMsg(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsProtoMsg; + }; + ValidatorSlashEvent: { + typeUrl: string; + encode(message: _27.ValidatorSlashEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorSlashEvent; + fromPartial(object: Partial<_27.ValidatorSlashEvent>): _27.ValidatorSlashEvent; + fromAmino(object: _27.ValidatorSlashEventAmino): _27.ValidatorSlashEvent; + toAmino(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventAmino; + fromAminoMsg(object: _27.ValidatorSlashEventAminoMsg): _27.ValidatorSlashEvent; + toAminoMsg(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventAminoMsg; + fromProtoMsg(message: _27.ValidatorSlashEventProtoMsg): _27.ValidatorSlashEvent; + toProto(message: _27.ValidatorSlashEvent): Uint8Array; + toProtoMsg(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventProtoMsg; + }; + ValidatorSlashEvents: { + typeUrl: string; + encode(message: _27.ValidatorSlashEvents, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorSlashEvents; + fromPartial(object: Partial<_27.ValidatorSlashEvents>): _27.ValidatorSlashEvents; + fromAmino(object: _27.ValidatorSlashEventsAmino): _27.ValidatorSlashEvents; + toAmino(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsAmino; + fromAminoMsg(object: _27.ValidatorSlashEventsAminoMsg): _27.ValidatorSlashEvents; + toAminoMsg(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsAminoMsg; + fromProtoMsg(message: _27.ValidatorSlashEventsProtoMsg): _27.ValidatorSlashEvents; + toProto(message: _27.ValidatorSlashEvents): Uint8Array; + toProtoMsg(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsProtoMsg; + }; + FeePool: { + typeUrl: string; + encode(message: _27.FeePool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.FeePool; + fromPartial(object: Partial<_27.FeePool>): _27.FeePool; + fromAmino(object: _27.FeePoolAmino): _27.FeePool; + toAmino(message: _27.FeePool): _27.FeePoolAmino; + fromAminoMsg(object: _27.FeePoolAminoMsg): _27.FeePool; + toAminoMsg(message: _27.FeePool): _27.FeePoolAminoMsg; + fromProtoMsg(message: _27.FeePoolProtoMsg): _27.FeePool; + toProto(message: _27.FeePool): Uint8Array; + toProtoMsg(message: _27.FeePool): _27.FeePoolProtoMsg; + }; + CommunityPoolSpendProposal: { + typeUrl: string; + encode(message: _27.CommunityPoolSpendProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.CommunityPoolSpendProposal; + fromPartial(object: Partial<_27.CommunityPoolSpendProposal>): _27.CommunityPoolSpendProposal; + fromAmino(object: _27.CommunityPoolSpendProposalAmino): _27.CommunityPoolSpendProposal; + toAmino(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalAmino; + fromAminoMsg(object: _27.CommunityPoolSpendProposalAminoMsg): _27.CommunityPoolSpendProposal; + toAminoMsg(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalAminoMsg; + fromProtoMsg(message: _27.CommunityPoolSpendProposalProtoMsg): _27.CommunityPoolSpendProposal; + toProto(message: _27.CommunityPoolSpendProposal): Uint8Array; + toProtoMsg(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalProtoMsg; + }; + DelegatorStartingInfo: { + typeUrl: string; + encode(message: _27.DelegatorStartingInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.DelegatorStartingInfo; + fromPartial(object: Partial<_27.DelegatorStartingInfo>): _27.DelegatorStartingInfo; + fromAmino(object: _27.DelegatorStartingInfoAmino): _27.DelegatorStartingInfo; + toAmino(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoAmino; + fromAminoMsg(object: _27.DelegatorStartingInfoAminoMsg): _27.DelegatorStartingInfo; + toAminoMsg(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoAminoMsg; + fromProtoMsg(message: _27.DelegatorStartingInfoProtoMsg): _27.DelegatorStartingInfo; + toProto(message: _27.DelegatorStartingInfo): Uint8Array; + toProtoMsg(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoProtoMsg; + }; + DelegationDelegatorReward: { + typeUrl: string; + encode(message: _27.DelegationDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.DelegationDelegatorReward; + fromPartial(object: Partial<_27.DelegationDelegatorReward>): _27.DelegationDelegatorReward; + fromAmino(object: _27.DelegationDelegatorRewardAmino): _27.DelegationDelegatorReward; + toAmino(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardAmino; + fromAminoMsg(object: _27.DelegationDelegatorRewardAminoMsg): _27.DelegationDelegatorReward; + toAminoMsg(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardAminoMsg; + fromProtoMsg(message: _27.DelegationDelegatorRewardProtoMsg): _27.DelegationDelegatorReward; + toProto(message: _27.DelegationDelegatorReward): Uint8Array; + toProtoMsg(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardProtoMsg; + }; + CommunityPoolSpendProposalWithDeposit: { + typeUrl: string; + encode(message: _27.CommunityPoolSpendProposalWithDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.CommunityPoolSpendProposalWithDeposit; + fromPartial(object: Partial<_27.CommunityPoolSpendProposalWithDeposit>): _27.CommunityPoolSpendProposalWithDeposit; + fromAmino(object: _27.CommunityPoolSpendProposalWithDepositAmino): _27.CommunityPoolSpendProposalWithDeposit; + toAmino(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositAmino; + fromAminoMsg(object: _27.CommunityPoolSpendProposalWithDepositAminoMsg): _27.CommunityPoolSpendProposalWithDeposit; + toAminoMsg(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositAminoMsg; + fromProtoMsg(message: _27.CommunityPoolSpendProposalWithDepositProtoMsg): _27.CommunityPoolSpendProposalWithDeposit; + toProto(message: _27.CommunityPoolSpendProposalWithDeposit): Uint8Array; + toProtoMsg(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositProtoMsg; + }; + }; + } + namespace feegrant { + const v1beta1: { + MsgClientImpl: typeof _170.MsgClientImpl; + QueryClientImpl: typeof _158.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + allowance(request: _33.QueryAllowanceRequest): Promise<_33.QueryAllowanceResponse>; + allowances(request: _33.QueryAllowancesRequest): Promise<_33.QueryAllowancesResponse>; + allowancesByGranter(request: _33.QueryAllowancesByGranterRequest): Promise<_33.QueryAllowancesByGranterResponse>; + }; + LCDQueryClient: typeof _144.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + grantAllowance(value: _34.MsgGrantAllowance): { + typeUrl: string; + value: Uint8Array; + }; + revokeAllowance(value: _34.MsgRevokeAllowance): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + grantAllowance(value: _34.MsgGrantAllowance): { + typeUrl: string; + value: _34.MsgGrantAllowance; + }; + revokeAllowance(value: _34.MsgRevokeAllowance): { + typeUrl: string; + value: _34.MsgRevokeAllowance; + }; + }; + fromPartial: { + grantAllowance(value: _34.MsgGrantAllowance): { + typeUrl: string; + value: _34.MsgGrantAllowance; + }; + revokeAllowance(value: _34.MsgRevokeAllowance): { + typeUrl: string; + value: _34.MsgRevokeAllowance; + }; + }; + }; + AminoConverter: { + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: string; + toAmino: (message: _34.MsgGrantAllowance) => _34.MsgGrantAllowanceAmino; + fromAmino: (object: _34.MsgGrantAllowanceAmino) => _34.MsgGrantAllowance; + }; + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: string; + toAmino: (message: _34.MsgRevokeAllowance) => _34.MsgRevokeAllowanceAmino; + fromAmino: (object: _34.MsgRevokeAllowanceAmino) => _34.MsgRevokeAllowance; + }; + }; + MsgGrantAllowance: { + typeUrl: string; + encode(message: _34.MsgGrantAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgGrantAllowance; + fromPartial(object: Partial<_34.MsgGrantAllowance>): _34.MsgGrantAllowance; + fromAmino(object: _34.MsgGrantAllowanceAmino): _34.MsgGrantAllowance; + toAmino(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceAmino; + fromAminoMsg(object: _34.MsgGrantAllowanceAminoMsg): _34.MsgGrantAllowance; + toAminoMsg(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceAminoMsg; + fromProtoMsg(message: _34.MsgGrantAllowanceProtoMsg): _34.MsgGrantAllowance; + toProto(message: _34.MsgGrantAllowance): Uint8Array; + toProtoMsg(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceProtoMsg; + }; + MsgGrantAllowanceResponse: { + typeUrl: string; + encode(_: _34.MsgGrantAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgGrantAllowanceResponse; + fromPartial(_: Partial<_34.MsgGrantAllowanceResponse>): _34.MsgGrantAllowanceResponse; + fromAmino(_: _34.MsgGrantAllowanceResponseAmino): _34.MsgGrantAllowanceResponse; + toAmino(_: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseAmino; + fromAminoMsg(object: _34.MsgGrantAllowanceResponseAminoMsg): _34.MsgGrantAllowanceResponse; + toAminoMsg(message: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseAminoMsg; + fromProtoMsg(message: _34.MsgGrantAllowanceResponseProtoMsg): _34.MsgGrantAllowanceResponse; + toProto(message: _34.MsgGrantAllowanceResponse): Uint8Array; + toProtoMsg(message: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseProtoMsg; + }; + MsgRevokeAllowance: { + typeUrl: string; + encode(message: _34.MsgRevokeAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgRevokeAllowance; + fromPartial(object: Partial<_34.MsgRevokeAllowance>): _34.MsgRevokeAllowance; + fromAmino(object: _34.MsgRevokeAllowanceAmino): _34.MsgRevokeAllowance; + toAmino(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceAmino; + fromAminoMsg(object: _34.MsgRevokeAllowanceAminoMsg): _34.MsgRevokeAllowance; + toAminoMsg(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceAminoMsg; + fromProtoMsg(message: _34.MsgRevokeAllowanceProtoMsg): _34.MsgRevokeAllowance; + toProto(message: _34.MsgRevokeAllowance): Uint8Array; + toProtoMsg(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceProtoMsg; + }; + MsgRevokeAllowanceResponse: { + typeUrl: string; + encode(_: _34.MsgRevokeAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgRevokeAllowanceResponse; + fromPartial(_: Partial<_34.MsgRevokeAllowanceResponse>): _34.MsgRevokeAllowanceResponse; + fromAmino(_: _34.MsgRevokeAllowanceResponseAmino): _34.MsgRevokeAllowanceResponse; + toAmino(_: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseAmino; + fromAminoMsg(object: _34.MsgRevokeAllowanceResponseAminoMsg): _34.MsgRevokeAllowanceResponse; + toAminoMsg(message: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseAminoMsg; + fromProtoMsg(message: _34.MsgRevokeAllowanceResponseProtoMsg): _34.MsgRevokeAllowanceResponse; + toProto(message: _34.MsgRevokeAllowanceResponse): Uint8Array; + toProtoMsg(message: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseProtoMsg; + }; + FeeAllowanceI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _31.BasicAllowance | _31.PeriodicAllowance | _31.AllowedMsgAllowance; + FeeAllowanceI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + FeeAllowanceI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + QueryAllowanceRequest: { + typeUrl: string; + encode(message: _33.QueryAllowanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowanceRequest; + fromPartial(object: Partial<_33.QueryAllowanceRequest>): _33.QueryAllowanceRequest; + fromAmino(object: _33.QueryAllowanceRequestAmino): _33.QueryAllowanceRequest; + toAmino(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestAmino; + fromAminoMsg(object: _33.QueryAllowanceRequestAminoMsg): _33.QueryAllowanceRequest; + toAminoMsg(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestAminoMsg; + fromProtoMsg(message: _33.QueryAllowanceRequestProtoMsg): _33.QueryAllowanceRequest; + toProto(message: _33.QueryAllowanceRequest): Uint8Array; + toProtoMsg(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestProtoMsg; + }; + QueryAllowanceResponse: { + typeUrl: string; + encode(message: _33.QueryAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowanceResponse; + fromPartial(object: Partial<_33.QueryAllowanceResponse>): _33.QueryAllowanceResponse; + fromAmino(object: _33.QueryAllowanceResponseAmino): _33.QueryAllowanceResponse; + toAmino(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseAmino; + fromAminoMsg(object: _33.QueryAllowanceResponseAminoMsg): _33.QueryAllowanceResponse; + toAminoMsg(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseAminoMsg; + fromProtoMsg(message: _33.QueryAllowanceResponseProtoMsg): _33.QueryAllowanceResponse; + toProto(message: _33.QueryAllowanceResponse): Uint8Array; + toProtoMsg(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseProtoMsg; + }; + QueryAllowancesRequest: { + typeUrl: string; + encode(message: _33.QueryAllowancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesRequest; + fromPartial(object: Partial<_33.QueryAllowancesRequest>): _33.QueryAllowancesRequest; + fromAmino(object: _33.QueryAllowancesRequestAmino): _33.QueryAllowancesRequest; + toAmino(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestAmino; + fromAminoMsg(object: _33.QueryAllowancesRequestAminoMsg): _33.QueryAllowancesRequest; + toAminoMsg(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestAminoMsg; + fromProtoMsg(message: _33.QueryAllowancesRequestProtoMsg): _33.QueryAllowancesRequest; + toProto(message: _33.QueryAllowancesRequest): Uint8Array; + toProtoMsg(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestProtoMsg; + }; + QueryAllowancesResponse: { + typeUrl: string; + encode(message: _33.QueryAllowancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesResponse; + fromPartial(object: Partial<_33.QueryAllowancesResponse>): _33.QueryAllowancesResponse; + fromAmino(object: _33.QueryAllowancesResponseAmino): _33.QueryAllowancesResponse; + toAmino(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseAmino; + fromAminoMsg(object: _33.QueryAllowancesResponseAminoMsg): _33.QueryAllowancesResponse; + toAminoMsg(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseAminoMsg; + fromProtoMsg(message: _33.QueryAllowancesResponseProtoMsg): _33.QueryAllowancesResponse; + toProto(message: _33.QueryAllowancesResponse): Uint8Array; + toProtoMsg(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseProtoMsg; + }; + QueryAllowancesByGranterRequest: { + typeUrl: string; + encode(message: _33.QueryAllowancesByGranterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesByGranterRequest; + fromPartial(object: Partial<_33.QueryAllowancesByGranterRequest>): _33.QueryAllowancesByGranterRequest; + fromAmino(object: _33.QueryAllowancesByGranterRequestAmino): _33.QueryAllowancesByGranterRequest; + toAmino(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestAmino; + fromAminoMsg(object: _33.QueryAllowancesByGranterRequestAminoMsg): _33.QueryAllowancesByGranterRequest; + toAminoMsg(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestAminoMsg; + fromProtoMsg(message: _33.QueryAllowancesByGranterRequestProtoMsg): _33.QueryAllowancesByGranterRequest; + toProto(message: _33.QueryAllowancesByGranterRequest): Uint8Array; + toProtoMsg(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestProtoMsg; + }; + QueryAllowancesByGranterResponse: { + typeUrl: string; + encode(message: _33.QueryAllowancesByGranterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesByGranterResponse; + fromPartial(object: Partial<_33.QueryAllowancesByGranterResponse>): _33.QueryAllowancesByGranterResponse; + fromAmino(object: _33.QueryAllowancesByGranterResponseAmino): _33.QueryAllowancesByGranterResponse; + toAmino(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseAmino; + fromAminoMsg(object: _33.QueryAllowancesByGranterResponseAminoMsg): _33.QueryAllowancesByGranterResponse; + toAminoMsg(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseAminoMsg; + fromProtoMsg(message: _33.QueryAllowancesByGranterResponseProtoMsg): _33.QueryAllowancesByGranterResponse; + toProto(message: _33.QueryAllowancesByGranterResponse): Uint8Array; + toProtoMsg(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _32.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _32.GenesisState; + fromPartial(object: Partial<_32.GenesisState>): _32.GenesisState; + fromAmino(object: _32.GenesisStateAmino): _32.GenesisState; + toAmino(message: _32.GenesisState): _32.GenesisStateAmino; + fromAminoMsg(object: _32.GenesisStateAminoMsg): _32.GenesisState; + toAminoMsg(message: _32.GenesisState): _32.GenesisStateAminoMsg; + fromProtoMsg(message: _32.GenesisStateProtoMsg): _32.GenesisState; + toProto(message: _32.GenesisState): Uint8Array; + toProtoMsg(message: _32.GenesisState): _32.GenesisStateProtoMsg; + }; + BasicAllowance: { + typeUrl: string; + encode(message: _31.BasicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.BasicAllowance; + fromPartial(object: Partial<_31.BasicAllowance>): _31.BasicAllowance; + fromAmino(object: _31.BasicAllowanceAmino): _31.BasicAllowance; + toAmino(message: _31.BasicAllowance): _31.BasicAllowanceAmino; + fromAminoMsg(object: _31.BasicAllowanceAminoMsg): _31.BasicAllowance; + toAminoMsg(message: _31.BasicAllowance): _31.BasicAllowanceAminoMsg; + fromProtoMsg(message: _31.BasicAllowanceProtoMsg): _31.BasicAllowance; + toProto(message: _31.BasicAllowance): Uint8Array; + toProtoMsg(message: _31.BasicAllowance): _31.BasicAllowanceProtoMsg; + }; + PeriodicAllowance: { + typeUrl: string; + encode(message: _31.PeriodicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.PeriodicAllowance; + fromPartial(object: Partial<_31.PeriodicAllowance>): _31.PeriodicAllowance; + fromAmino(object: _31.PeriodicAllowanceAmino): _31.PeriodicAllowance; + toAmino(message: _31.PeriodicAllowance): _31.PeriodicAllowanceAmino; + fromAminoMsg(object: _31.PeriodicAllowanceAminoMsg): _31.PeriodicAllowance; + toAminoMsg(message: _31.PeriodicAllowance): _31.PeriodicAllowanceAminoMsg; + fromProtoMsg(message: _31.PeriodicAllowanceProtoMsg): _31.PeriodicAllowance; + toProto(message: _31.PeriodicAllowance): Uint8Array; + toProtoMsg(message: _31.PeriodicAllowance): _31.PeriodicAllowanceProtoMsg; + }; + AllowedMsgAllowance: { + typeUrl: string; + encode(message: _31.AllowedMsgAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.AllowedMsgAllowance; + fromPartial(object: Partial<_31.AllowedMsgAllowance>): _31.AllowedMsgAllowance; + fromAmino(object: _31.AllowedMsgAllowanceAmino): _31.AllowedMsgAllowance; + toAmino(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceAmino; + fromAminoMsg(object: _31.AllowedMsgAllowanceAminoMsg): _31.AllowedMsgAllowance; + toAminoMsg(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceAminoMsg; + fromProtoMsg(message: _31.AllowedMsgAllowanceProtoMsg): _31.AllowedMsgAllowance; + toProto(message: _31.AllowedMsgAllowance): Uint8Array; + toProtoMsg(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceProtoMsg; + }; + Grant: { + typeUrl: string; + encode(message: _31.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.Grant; + fromPartial(object: Partial<_31.Grant>): _31.Grant; + fromAmino(object: _31.GrantAmino): _31.Grant; + toAmino(message: _31.Grant): _31.GrantAmino; + fromAminoMsg(object: _31.GrantAminoMsg): _31.Grant; + toAminoMsg(message: _31.Grant): _31.GrantAminoMsg; + fromProtoMsg(message: _31.GrantProtoMsg): _31.Grant; + toProto(message: _31.Grant): Uint8Array; + toProtoMsg(message: _31.Grant): _31.GrantProtoMsg; + }; + }; + } + namespace gov { + const v1: { + MsgClientImpl: typeof _171.MsgClientImpl; + QueryClientImpl: typeof _159.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + proposal(request: _37.QueryProposalRequest): Promise<_37.QueryProposalResponse>; + proposals(request: _37.QueryProposalsRequest): Promise<_37.QueryProposalsResponse>; + vote(request: _37.QueryVoteRequest): Promise<_37.QueryVoteResponse>; + votes(request: _37.QueryVotesRequest): Promise<_37.QueryVotesResponse>; + params(request: _37.QueryParamsRequest): Promise<_37.QueryParamsResponse>; + deposit(request: _37.QueryDepositRequest): Promise<_37.QueryDepositResponse>; + deposits(request: _37.QueryDepositsRequest): Promise<_37.QueryDepositsResponse>; + tallyResult(request: _37.QueryTallyResultRequest): Promise<_37.QueryTallyResultResponse>; + }; + LCDQueryClient: typeof _145.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + submitProposal(value: _38.MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + execLegacyContent(value: _38.MsgExecLegacyContent): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: _38.MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + voteWeighted(value: _38.MsgVoteWeighted): { + typeUrl: string; + value: Uint8Array; + }; + deposit(value: _38.MsgDeposit): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + submitProposal(value: _38.MsgSubmitProposal): { + typeUrl: string; + value: _38.MsgSubmitProposal; + }; + execLegacyContent(value: _38.MsgExecLegacyContent): { + typeUrl: string; + value: _38.MsgExecLegacyContent; + }; + vote(value: _38.MsgVote): { + typeUrl: string; + value: _38.MsgVote; + }; + voteWeighted(value: _38.MsgVoteWeighted): { + typeUrl: string; + value: _38.MsgVoteWeighted; + }; + deposit(value: _38.MsgDeposit): { + typeUrl: string; + value: _38.MsgDeposit; + }; + }; + fromPartial: { + submitProposal(value: _38.MsgSubmitProposal): { + typeUrl: string; + value: _38.MsgSubmitProposal; + }; + execLegacyContent(value: _38.MsgExecLegacyContent): { + typeUrl: string; + value: _38.MsgExecLegacyContent; + }; + vote(value: _38.MsgVote): { + typeUrl: string; + value: _38.MsgVote; + }; + voteWeighted(value: _38.MsgVoteWeighted): { + typeUrl: string; + value: _38.MsgVoteWeighted; + }; + deposit(value: _38.MsgDeposit): { + typeUrl: string; + value: _38.MsgDeposit; + }; + }; + }; + AminoConverter: { + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: _38.MsgSubmitProposal) => _38.MsgSubmitProposalAmino; + fromAmino: (object: _38.MsgSubmitProposalAmino) => _38.MsgSubmitProposal; + }; + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: string; + toAmino: (message: _38.MsgExecLegacyContent) => _38.MsgExecLegacyContentAmino; + fromAmino: (object: _38.MsgExecLegacyContentAmino) => _38.MsgExecLegacyContent; + }; + "/cosmos.gov.v1.MsgVote": { + aminoType: string; + toAmino: (message: _38.MsgVote) => _38.MsgVoteAmino; + fromAmino: (object: _38.MsgVoteAmino) => _38.MsgVote; + }; + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: _38.MsgVoteWeighted) => _38.MsgVoteWeightedAmino; + fromAmino: (object: _38.MsgVoteWeightedAmino) => _38.MsgVoteWeighted; + }; + "/cosmos.gov.v1.MsgDeposit": { + aminoType: string; + toAmino: (message: _38.MsgDeposit) => _38.MsgDepositAmino; + fromAmino: (object: _38.MsgDepositAmino) => _38.MsgDeposit; + }; + }; + MsgSubmitProposal: { + typeUrl: string; + encode(message: _38.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgSubmitProposal; + fromPartial(object: Partial<_38.MsgSubmitProposal>): _38.MsgSubmitProposal; + fromAmino(object: _38.MsgSubmitProposalAmino): _38.MsgSubmitProposal; + toAmino(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalAmino; + fromAminoMsg(object: _38.MsgSubmitProposalAminoMsg): _38.MsgSubmitProposal; + toAminoMsg(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalAminoMsg; + fromProtoMsg(message: _38.MsgSubmitProposalProtoMsg): _38.MsgSubmitProposal; + toProto(message: _38.MsgSubmitProposal): Uint8Array; + toProtoMsg(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalProtoMsg; + }; + MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: _38.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgSubmitProposalResponse; + fromPartial(object: Partial<_38.MsgSubmitProposalResponse>): _38.MsgSubmitProposalResponse; + fromAmino(object: _38.MsgSubmitProposalResponseAmino): _38.MsgSubmitProposalResponse; + toAmino(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseAmino; + fromAminoMsg(object: _38.MsgSubmitProposalResponseAminoMsg): _38.MsgSubmitProposalResponse; + toAminoMsg(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: _38.MsgSubmitProposalResponseProtoMsg): _38.MsgSubmitProposalResponse; + toProto(message: _38.MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseProtoMsg; + }; + MsgExecLegacyContent: { + typeUrl: string; + encode(message: _38.MsgExecLegacyContent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgExecLegacyContent; + fromPartial(object: Partial<_38.MsgExecLegacyContent>): _38.MsgExecLegacyContent; + fromAmino(object: _38.MsgExecLegacyContentAmino): _38.MsgExecLegacyContent; + toAmino(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentAmino; + fromAminoMsg(object: _38.MsgExecLegacyContentAminoMsg): _38.MsgExecLegacyContent; + toAminoMsg(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentAminoMsg; + fromProtoMsg(message: _38.MsgExecLegacyContentProtoMsg): _38.MsgExecLegacyContent; + toProto(message: _38.MsgExecLegacyContent): Uint8Array; + toProtoMsg(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentProtoMsg; + }; + MsgExecLegacyContentResponse: { + typeUrl: string; + encode(_: _38.MsgExecLegacyContentResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgExecLegacyContentResponse; + fromPartial(_: Partial<_38.MsgExecLegacyContentResponse>): _38.MsgExecLegacyContentResponse; + fromAmino(_: _38.MsgExecLegacyContentResponseAmino): _38.MsgExecLegacyContentResponse; + toAmino(_: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseAmino; + fromAminoMsg(object: _38.MsgExecLegacyContentResponseAminoMsg): _38.MsgExecLegacyContentResponse; + toAminoMsg(message: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseAminoMsg; + fromProtoMsg(message: _38.MsgExecLegacyContentResponseProtoMsg): _38.MsgExecLegacyContentResponse; + toProto(message: _38.MsgExecLegacyContentResponse): Uint8Array; + toProtoMsg(message: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseProtoMsg; + }; + MsgVote: { + typeUrl: string; + encode(message: _38.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVote; + fromPartial(object: Partial<_38.MsgVote>): _38.MsgVote; + fromAmino(object: _38.MsgVoteAmino): _38.MsgVote; + toAmino(message: _38.MsgVote): _38.MsgVoteAmino; + fromAminoMsg(object: _38.MsgVoteAminoMsg): _38.MsgVote; + toAminoMsg(message: _38.MsgVote): _38.MsgVoteAminoMsg; + fromProtoMsg(message: _38.MsgVoteProtoMsg): _38.MsgVote; + toProto(message: _38.MsgVote): Uint8Array; + toProtoMsg(message: _38.MsgVote): _38.MsgVoteProtoMsg; + }; + MsgVoteResponse: { + typeUrl: string; + encode(_: _38.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteResponse; + fromPartial(_: Partial<_38.MsgVoteResponse>): _38.MsgVoteResponse; + fromAmino(_: _38.MsgVoteResponseAmino): _38.MsgVoteResponse; + toAmino(_: _38.MsgVoteResponse): _38.MsgVoteResponseAmino; + fromAminoMsg(object: _38.MsgVoteResponseAminoMsg): _38.MsgVoteResponse; + toAminoMsg(message: _38.MsgVoteResponse): _38.MsgVoteResponseAminoMsg; + fromProtoMsg(message: _38.MsgVoteResponseProtoMsg): _38.MsgVoteResponse; + toProto(message: _38.MsgVoteResponse): Uint8Array; + toProtoMsg(message: _38.MsgVoteResponse): _38.MsgVoteResponseProtoMsg; + }; + MsgVoteWeighted: { + typeUrl: string; + encode(message: _38.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteWeighted; + fromPartial(object: Partial<_38.MsgVoteWeighted>): _38.MsgVoteWeighted; + fromAmino(object: _38.MsgVoteWeightedAmino): _38.MsgVoteWeighted; + toAmino(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedAmino; + fromAminoMsg(object: _38.MsgVoteWeightedAminoMsg): _38.MsgVoteWeighted; + toAminoMsg(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedAminoMsg; + fromProtoMsg(message: _38.MsgVoteWeightedProtoMsg): _38.MsgVoteWeighted; + toProto(message: _38.MsgVoteWeighted): Uint8Array; + toProtoMsg(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedProtoMsg; + }; + MsgVoteWeightedResponse: { + typeUrl: string; + encode(_: _38.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteWeightedResponse; + fromPartial(_: Partial<_38.MsgVoteWeightedResponse>): _38.MsgVoteWeightedResponse; + fromAmino(_: _38.MsgVoteWeightedResponseAmino): _38.MsgVoteWeightedResponse; + toAmino(_: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseAmino; + fromAminoMsg(object: _38.MsgVoteWeightedResponseAminoMsg): _38.MsgVoteWeightedResponse; + toAminoMsg(message: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseAminoMsg; + fromProtoMsg(message: _38.MsgVoteWeightedResponseProtoMsg): _38.MsgVoteWeightedResponse; + toProto(message: _38.MsgVoteWeightedResponse): Uint8Array; + toProtoMsg(message: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseProtoMsg; + }; + MsgDeposit: { + typeUrl: string; + encode(message: _38.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgDeposit; + fromPartial(object: Partial<_38.MsgDeposit>): _38.MsgDeposit; + fromAmino(object: _38.MsgDepositAmino): _38.MsgDeposit; + toAmino(message: _38.MsgDeposit): _38.MsgDepositAmino; + fromAminoMsg(object: _38.MsgDepositAminoMsg): _38.MsgDeposit; + toAminoMsg(message: _38.MsgDeposit): _38.MsgDepositAminoMsg; + fromProtoMsg(message: _38.MsgDepositProtoMsg): _38.MsgDeposit; + toProto(message: _38.MsgDeposit): Uint8Array; + toProtoMsg(message: _38.MsgDeposit): _38.MsgDepositProtoMsg; + }; + MsgDepositResponse: { + typeUrl: string; + encode(_: _38.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgDepositResponse; + fromPartial(_: Partial<_38.MsgDepositResponse>): _38.MsgDepositResponse; + fromAmino(_: _38.MsgDepositResponseAmino): _38.MsgDepositResponse; + toAmino(_: _38.MsgDepositResponse): _38.MsgDepositResponseAmino; + fromAminoMsg(object: _38.MsgDepositResponseAminoMsg): _38.MsgDepositResponse; + toAminoMsg(message: _38.MsgDepositResponse): _38.MsgDepositResponseAminoMsg; + fromProtoMsg(message: _38.MsgDepositResponseProtoMsg): _38.MsgDepositResponse; + toProto(message: _38.MsgDepositResponse): Uint8Array; + toProtoMsg(message: _38.MsgDepositResponse): _38.MsgDepositResponseProtoMsg; + }; + Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _40.TextProposal; + Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + QueryProposalRequest: { + typeUrl: string; + encode(message: _37.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalRequest; + fromPartial(object: Partial<_37.QueryProposalRequest>): _37.QueryProposalRequest; + fromAmino(object: _37.QueryProposalRequestAmino): _37.QueryProposalRequest; + toAmino(message: _37.QueryProposalRequest): _37.QueryProposalRequestAmino; + fromAminoMsg(object: _37.QueryProposalRequestAminoMsg): _37.QueryProposalRequest; + toAminoMsg(message: _37.QueryProposalRequest): _37.QueryProposalRequestAminoMsg; + fromProtoMsg(message: _37.QueryProposalRequestProtoMsg): _37.QueryProposalRequest; + toProto(message: _37.QueryProposalRequest): Uint8Array; + toProtoMsg(message: _37.QueryProposalRequest): _37.QueryProposalRequestProtoMsg; + }; + QueryProposalResponse: { + typeUrl: string; + encode(message: _37.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalResponse; + fromPartial(object: Partial<_37.QueryProposalResponse>): _37.QueryProposalResponse; + fromAmino(object: _37.QueryProposalResponseAmino): _37.QueryProposalResponse; + toAmino(message: _37.QueryProposalResponse): _37.QueryProposalResponseAmino; + fromAminoMsg(object: _37.QueryProposalResponseAminoMsg): _37.QueryProposalResponse; + toAminoMsg(message: _37.QueryProposalResponse): _37.QueryProposalResponseAminoMsg; + fromProtoMsg(message: _37.QueryProposalResponseProtoMsg): _37.QueryProposalResponse; + toProto(message: _37.QueryProposalResponse): Uint8Array; + toProtoMsg(message: _37.QueryProposalResponse): _37.QueryProposalResponseProtoMsg; + }; + QueryProposalsRequest: { + typeUrl: string; + encode(message: _37.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalsRequest; + fromPartial(object: Partial<_37.QueryProposalsRequest>): _37.QueryProposalsRequest; + fromAmino(object: _37.QueryProposalsRequestAmino): _37.QueryProposalsRequest; + toAmino(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestAmino; + fromAminoMsg(object: _37.QueryProposalsRequestAminoMsg): _37.QueryProposalsRequest; + toAminoMsg(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestAminoMsg; + fromProtoMsg(message: _37.QueryProposalsRequestProtoMsg): _37.QueryProposalsRequest; + toProto(message: _37.QueryProposalsRequest): Uint8Array; + toProtoMsg(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestProtoMsg; + }; + QueryProposalsResponse: { + typeUrl: string; + encode(message: _37.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalsResponse; + fromPartial(object: Partial<_37.QueryProposalsResponse>): _37.QueryProposalsResponse; + fromAmino(object: _37.QueryProposalsResponseAmino): _37.QueryProposalsResponse; + toAmino(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseAmino; + fromAminoMsg(object: _37.QueryProposalsResponseAminoMsg): _37.QueryProposalsResponse; + toAminoMsg(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseAminoMsg; + fromProtoMsg(message: _37.QueryProposalsResponseProtoMsg): _37.QueryProposalsResponse; + toProto(message: _37.QueryProposalsResponse): Uint8Array; + toProtoMsg(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseProtoMsg; + }; + QueryVoteRequest: { + typeUrl: string; + encode(message: _37.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVoteRequest; + fromPartial(object: Partial<_37.QueryVoteRequest>): _37.QueryVoteRequest; + fromAmino(object: _37.QueryVoteRequestAmino): _37.QueryVoteRequest; + toAmino(message: _37.QueryVoteRequest): _37.QueryVoteRequestAmino; + fromAminoMsg(object: _37.QueryVoteRequestAminoMsg): _37.QueryVoteRequest; + toAminoMsg(message: _37.QueryVoteRequest): _37.QueryVoteRequestAminoMsg; + fromProtoMsg(message: _37.QueryVoteRequestProtoMsg): _37.QueryVoteRequest; + toProto(message: _37.QueryVoteRequest): Uint8Array; + toProtoMsg(message: _37.QueryVoteRequest): _37.QueryVoteRequestProtoMsg; + }; + QueryVoteResponse: { + typeUrl: string; + encode(message: _37.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVoteResponse; + fromPartial(object: Partial<_37.QueryVoteResponse>): _37.QueryVoteResponse; + fromAmino(object: _37.QueryVoteResponseAmino): _37.QueryVoteResponse; + toAmino(message: _37.QueryVoteResponse): _37.QueryVoteResponseAmino; + fromAminoMsg(object: _37.QueryVoteResponseAminoMsg): _37.QueryVoteResponse; + toAminoMsg(message: _37.QueryVoteResponse): _37.QueryVoteResponseAminoMsg; + fromProtoMsg(message: _37.QueryVoteResponseProtoMsg): _37.QueryVoteResponse; + toProto(message: _37.QueryVoteResponse): Uint8Array; + toProtoMsg(message: _37.QueryVoteResponse): _37.QueryVoteResponseProtoMsg; + }; + QueryVotesRequest: { + typeUrl: string; + encode(message: _37.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVotesRequest; + fromPartial(object: Partial<_37.QueryVotesRequest>): _37.QueryVotesRequest; + fromAmino(object: _37.QueryVotesRequestAmino): _37.QueryVotesRequest; + toAmino(message: _37.QueryVotesRequest): _37.QueryVotesRequestAmino; + fromAminoMsg(object: _37.QueryVotesRequestAminoMsg): _37.QueryVotesRequest; + toAminoMsg(message: _37.QueryVotesRequest): _37.QueryVotesRequestAminoMsg; + fromProtoMsg(message: _37.QueryVotesRequestProtoMsg): _37.QueryVotesRequest; + toProto(message: _37.QueryVotesRequest): Uint8Array; + toProtoMsg(message: _37.QueryVotesRequest): _37.QueryVotesRequestProtoMsg; + }; + QueryVotesResponse: { + typeUrl: string; + encode(message: _37.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVotesResponse; + fromPartial(object: Partial<_37.QueryVotesResponse>): _37.QueryVotesResponse; + fromAmino(object: _37.QueryVotesResponseAmino): _37.QueryVotesResponse; + toAmino(message: _37.QueryVotesResponse): _37.QueryVotesResponseAmino; + fromAminoMsg(object: _37.QueryVotesResponseAminoMsg): _37.QueryVotesResponse; + toAminoMsg(message: _37.QueryVotesResponse): _37.QueryVotesResponseAminoMsg; + fromProtoMsg(message: _37.QueryVotesResponseProtoMsg): _37.QueryVotesResponse; + toProto(message: _37.QueryVotesResponse): Uint8Array; + toProtoMsg(message: _37.QueryVotesResponse): _37.QueryVotesResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(message: _37.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryParamsRequest; + fromPartial(object: Partial<_37.QueryParamsRequest>): _37.QueryParamsRequest; + fromAmino(object: _37.QueryParamsRequestAmino): _37.QueryParamsRequest; + toAmino(message: _37.QueryParamsRequest): _37.QueryParamsRequestAmino; + fromAminoMsg(object: _37.QueryParamsRequestAminoMsg): _37.QueryParamsRequest; + toAminoMsg(message: _37.QueryParamsRequest): _37.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _37.QueryParamsRequestProtoMsg): _37.QueryParamsRequest; + toProto(message: _37.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _37.QueryParamsRequest): _37.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _37.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryParamsResponse; + fromPartial(object: Partial<_37.QueryParamsResponse>): _37.QueryParamsResponse; + fromAmino(object: _37.QueryParamsResponseAmino): _37.QueryParamsResponse; + toAmino(message: _37.QueryParamsResponse): _37.QueryParamsResponseAmino; + fromAminoMsg(object: _37.QueryParamsResponseAminoMsg): _37.QueryParamsResponse; + toAminoMsg(message: _37.QueryParamsResponse): _37.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _37.QueryParamsResponseProtoMsg): _37.QueryParamsResponse; + toProto(message: _37.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _37.QueryParamsResponse): _37.QueryParamsResponseProtoMsg; + }; + QueryDepositRequest: { + typeUrl: string; + encode(message: _37.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositRequest; + fromPartial(object: Partial<_37.QueryDepositRequest>): _37.QueryDepositRequest; + fromAmino(object: _37.QueryDepositRequestAmino): _37.QueryDepositRequest; + toAmino(message: _37.QueryDepositRequest): _37.QueryDepositRequestAmino; + fromAminoMsg(object: _37.QueryDepositRequestAminoMsg): _37.QueryDepositRequest; + toAminoMsg(message: _37.QueryDepositRequest): _37.QueryDepositRequestAminoMsg; + fromProtoMsg(message: _37.QueryDepositRequestProtoMsg): _37.QueryDepositRequest; + toProto(message: _37.QueryDepositRequest): Uint8Array; + toProtoMsg(message: _37.QueryDepositRequest): _37.QueryDepositRequestProtoMsg; + }; + QueryDepositResponse: { + typeUrl: string; + encode(message: _37.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositResponse; + fromPartial(object: Partial<_37.QueryDepositResponse>): _37.QueryDepositResponse; + fromAmino(object: _37.QueryDepositResponseAmino): _37.QueryDepositResponse; + toAmino(message: _37.QueryDepositResponse): _37.QueryDepositResponseAmino; + fromAminoMsg(object: _37.QueryDepositResponseAminoMsg): _37.QueryDepositResponse; + toAminoMsg(message: _37.QueryDepositResponse): _37.QueryDepositResponseAminoMsg; + fromProtoMsg(message: _37.QueryDepositResponseProtoMsg): _37.QueryDepositResponse; + toProto(message: _37.QueryDepositResponse): Uint8Array; + toProtoMsg(message: _37.QueryDepositResponse): _37.QueryDepositResponseProtoMsg; + }; + QueryDepositsRequest: { + typeUrl: string; + encode(message: _37.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositsRequest; + fromPartial(object: Partial<_37.QueryDepositsRequest>): _37.QueryDepositsRequest; + fromAmino(object: _37.QueryDepositsRequestAmino): _37.QueryDepositsRequest; + toAmino(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestAmino; + fromAminoMsg(object: _37.QueryDepositsRequestAminoMsg): _37.QueryDepositsRequest; + toAminoMsg(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestAminoMsg; + fromProtoMsg(message: _37.QueryDepositsRequestProtoMsg): _37.QueryDepositsRequest; + toProto(message: _37.QueryDepositsRequest): Uint8Array; + toProtoMsg(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestProtoMsg; + }; + QueryDepositsResponse: { + typeUrl: string; + encode(message: _37.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositsResponse; + fromPartial(object: Partial<_37.QueryDepositsResponse>): _37.QueryDepositsResponse; + fromAmino(object: _37.QueryDepositsResponseAmino): _37.QueryDepositsResponse; + toAmino(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseAmino; + fromAminoMsg(object: _37.QueryDepositsResponseAminoMsg): _37.QueryDepositsResponse; + toAminoMsg(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseAminoMsg; + fromProtoMsg(message: _37.QueryDepositsResponseProtoMsg): _37.QueryDepositsResponse; + toProto(message: _37.QueryDepositsResponse): Uint8Array; + toProtoMsg(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseProtoMsg; + }; + QueryTallyResultRequest: { + typeUrl: string; + encode(message: _37.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryTallyResultRequest; + fromPartial(object: Partial<_37.QueryTallyResultRequest>): _37.QueryTallyResultRequest; + fromAmino(object: _37.QueryTallyResultRequestAmino): _37.QueryTallyResultRequest; + toAmino(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestAmino; + fromAminoMsg(object: _37.QueryTallyResultRequestAminoMsg): _37.QueryTallyResultRequest; + toAminoMsg(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: _37.QueryTallyResultRequestProtoMsg): _37.QueryTallyResultRequest; + toProto(message: _37.QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestProtoMsg; + }; + QueryTallyResultResponse: { + typeUrl: string; + encode(message: _37.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryTallyResultResponse; + fromPartial(object: Partial<_37.QueryTallyResultResponse>): _37.QueryTallyResultResponse; + fromAmino(object: _37.QueryTallyResultResponseAmino): _37.QueryTallyResultResponse; + toAmino(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseAmino; + fromAminoMsg(object: _37.QueryTallyResultResponseAminoMsg): _37.QueryTallyResultResponse; + toAminoMsg(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: _37.QueryTallyResultResponseProtoMsg): _37.QueryTallyResultResponse; + toProto(message: _37.QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseProtoMsg; + }; + voteOptionFromJSON(object: any): _36.VoteOption; + voteOptionToJSON(object: _36.VoteOption): string; + proposalStatusFromJSON(object: any): _36.ProposalStatus; + proposalStatusToJSON(object: _36.ProposalStatus): string; + VoteOption: typeof _36.VoteOption; + VoteOptionSDKType: typeof _36.VoteOption; + VoteOptionAmino: typeof _36.VoteOption; + ProposalStatus: typeof _36.ProposalStatus; + ProposalStatusSDKType: typeof _36.ProposalStatus; + ProposalStatusAmino: typeof _36.ProposalStatus; + WeightedVoteOption: { + typeUrl: string; + encode(message: _36.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.WeightedVoteOption; + fromPartial(object: Partial<_36.WeightedVoteOption>): _36.WeightedVoteOption; + fromAmino(object: _36.WeightedVoteOptionAmino): _36.WeightedVoteOption; + toAmino(message: _36.WeightedVoteOption): _36.WeightedVoteOptionAmino; + fromAminoMsg(object: _36.WeightedVoteOptionAminoMsg): _36.WeightedVoteOption; + toAminoMsg(message: _36.WeightedVoteOption): _36.WeightedVoteOptionAminoMsg; + fromProtoMsg(message: _36.WeightedVoteOptionProtoMsg): _36.WeightedVoteOption; + toProto(message: _36.WeightedVoteOption): Uint8Array; + toProtoMsg(message: _36.WeightedVoteOption): _36.WeightedVoteOptionProtoMsg; + }; + Deposit: { + typeUrl: string; + encode(message: _36.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Deposit; + fromPartial(object: Partial<_36.Deposit>): _36.Deposit; + fromAmino(object: _36.DepositAmino): _36.Deposit; + toAmino(message: _36.Deposit): _36.DepositAmino; + fromAminoMsg(object: _36.DepositAminoMsg): _36.Deposit; + toAminoMsg(message: _36.Deposit): _36.DepositAminoMsg; + fromProtoMsg(message: _36.DepositProtoMsg): _36.Deposit; + toProto(message: _36.Deposit): Uint8Array; + toProtoMsg(message: _36.Deposit): _36.DepositProtoMsg; + }; + Proposal: { + typeUrl: string; + encode(message: _36.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Proposal; + fromPartial(object: Partial<_36.Proposal>): _36.Proposal; + fromAmino(object: _36.ProposalAmino): _36.Proposal; + toAmino(message: _36.Proposal): _36.ProposalAmino; + fromAminoMsg(object: _36.ProposalAminoMsg): _36.Proposal; + toAminoMsg(message: _36.Proposal): _36.ProposalAminoMsg; + fromProtoMsg(message: _36.ProposalProtoMsg): _36.Proposal; + toProto(message: _36.Proposal): Uint8Array; + toProtoMsg(message: _36.Proposal): _36.ProposalProtoMsg; + }; + TallyResult: { + typeUrl: string; + encode(message: _36.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.TallyResult; + fromPartial(object: Partial<_36.TallyResult>): _36.TallyResult; + fromAmino(object: _36.TallyResultAmino): _36.TallyResult; + toAmino(message: _36.TallyResult): _36.TallyResultAmino; + fromAminoMsg(object: _36.TallyResultAminoMsg): _36.TallyResult; + toAminoMsg(message: _36.TallyResult): _36.TallyResultAminoMsg; + fromProtoMsg(message: _36.TallyResultProtoMsg): _36.TallyResult; + toProto(message: _36.TallyResult): Uint8Array; + toProtoMsg(message: _36.TallyResult): _36.TallyResultProtoMsg; + }; + Vote: { + typeUrl: string; + encode(message: _36.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Vote; + fromPartial(object: Partial<_36.Vote>): _36.Vote; + fromAmino(object: _36.VoteAmino): _36.Vote; + toAmino(message: _36.Vote): _36.VoteAmino; + fromAminoMsg(object: _36.VoteAminoMsg): _36.Vote; + toAminoMsg(message: _36.Vote): _36.VoteAminoMsg; + fromProtoMsg(message: _36.VoteProtoMsg): _36.Vote; + toProto(message: _36.Vote): Uint8Array; + toProtoMsg(message: _36.Vote): _36.VoteProtoMsg; + }; + DepositParams: { + typeUrl: string; + encode(message: _36.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.DepositParams; + fromPartial(object: Partial<_36.DepositParams>): _36.DepositParams; + fromAmino(object: _36.DepositParamsAmino): _36.DepositParams; + toAmino(message: _36.DepositParams): _36.DepositParamsAmino; + fromAminoMsg(object: _36.DepositParamsAminoMsg): _36.DepositParams; + toAminoMsg(message: _36.DepositParams): _36.DepositParamsAminoMsg; + fromProtoMsg(message: _36.DepositParamsProtoMsg): _36.DepositParams; + toProto(message: _36.DepositParams): Uint8Array; + toProtoMsg(message: _36.DepositParams): _36.DepositParamsProtoMsg; + }; + VotingParams: { + typeUrl: string; + encode(message: _36.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.VotingParams; + fromPartial(object: Partial<_36.VotingParams>): _36.VotingParams; + fromAmino(object: _36.VotingParamsAmino): _36.VotingParams; + toAmino(message: _36.VotingParams): _36.VotingParamsAmino; + fromAminoMsg(object: _36.VotingParamsAminoMsg): _36.VotingParams; + toAminoMsg(message: _36.VotingParams): _36.VotingParamsAminoMsg; + fromProtoMsg(message: _36.VotingParamsProtoMsg): _36.VotingParams; + toProto(message: _36.VotingParams): Uint8Array; + toProtoMsg(message: _36.VotingParams): _36.VotingParamsProtoMsg; + }; + TallyParams: { + typeUrl: string; + encode(message: _36.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.TallyParams; + fromPartial(object: Partial<_36.TallyParams>): _36.TallyParams; + fromAmino(object: _36.TallyParamsAmino): _36.TallyParams; + toAmino(message: _36.TallyParams): _36.TallyParamsAmino; + fromAminoMsg(object: _36.TallyParamsAminoMsg): _36.TallyParams; + toAminoMsg(message: _36.TallyParams): _36.TallyParamsAminoMsg; + fromProtoMsg(message: _36.TallyParamsProtoMsg): _36.TallyParams; + toProto(message: _36.TallyParams): Uint8Array; + toProtoMsg(message: _36.TallyParams): _36.TallyParamsProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _35.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _35.GenesisState; + fromPartial(object: Partial<_35.GenesisState>): _35.GenesisState; + fromAmino(object: _35.GenesisStateAmino): _35.GenesisState; + toAmino(message: _35.GenesisState): _35.GenesisStateAmino; + fromAminoMsg(object: _35.GenesisStateAminoMsg): _35.GenesisState; + toAminoMsg(message: _35.GenesisState): _35.GenesisStateAminoMsg; + fromProtoMsg(message: _35.GenesisStateProtoMsg): _35.GenesisState; + toProto(message: _35.GenesisState): Uint8Array; + toProtoMsg(message: _35.GenesisState): _35.GenesisStateProtoMsg; + }; + }; + const v1beta1: { + MsgClientImpl: typeof _172.MsgClientImpl; + QueryClientImpl: typeof _160.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + proposal(request: _41.QueryProposalRequest): Promise<_41.QueryProposalResponse>; + proposals(request: _41.QueryProposalsRequest): Promise<_41.QueryProposalsResponse>; + vote(request: _41.QueryVoteRequest): Promise<_41.QueryVoteResponse>; + votes(request: _41.QueryVotesRequest): Promise<_41.QueryVotesResponse>; + params(request: _41.QueryParamsRequest): Promise<_41.QueryParamsResponse>; + deposit(request: _41.QueryDepositRequest): Promise<_41.QueryDepositResponse>; + deposits(request: _41.QueryDepositsRequest): Promise<_41.QueryDepositsResponse>; + tallyResult(request: _41.QueryTallyResultRequest): Promise<_41.QueryTallyResultResponse>; + }; + LCDQueryClient: typeof _146.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + submitProposal(value: _42.MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: _42.MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + voteWeighted(value: _42.MsgVoteWeighted): { + typeUrl: string; + value: Uint8Array; + }; + deposit(value: _42.MsgDeposit): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + submitProposal(value: _42.MsgSubmitProposal): { + typeUrl: string; + value: _42.MsgSubmitProposal; + }; + vote(value: _42.MsgVote): { + typeUrl: string; + value: _42.MsgVote; + }; + voteWeighted(value: _42.MsgVoteWeighted): { + typeUrl: string; + value: _42.MsgVoteWeighted; + }; + deposit(value: _42.MsgDeposit): { + typeUrl: string; + value: _42.MsgDeposit; + }; + }; + fromPartial: { + submitProposal(value: _42.MsgSubmitProposal): { + typeUrl: string; + value: _42.MsgSubmitProposal; + }; + vote(value: _42.MsgVote): { + typeUrl: string; + value: _42.MsgVote; + }; + voteWeighted(value: _42.MsgVoteWeighted): { + typeUrl: string; + value: _42.MsgVoteWeighted; + }; + deposit(value: _42.MsgDeposit): { + typeUrl: string; + value: _42.MsgDeposit; + }; + }; + }; + AminoConverter: { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: _42.MsgSubmitProposal) => _42.MsgSubmitProposalAmino; + fromAmino: (object: _42.MsgSubmitProposalAmino) => _42.MsgSubmitProposal; + }; + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: string; + toAmino: (message: _42.MsgVote) => _42.MsgVoteAmino; + fromAmino: (object: _42.MsgVoteAmino) => _42.MsgVote; + }; + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: _42.MsgVoteWeighted) => _42.MsgVoteWeightedAmino; + fromAmino: (object: _42.MsgVoteWeightedAmino) => _42.MsgVoteWeighted; + }; + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: string; + toAmino: (message: _42.MsgDeposit) => _42.MsgDepositAmino; + fromAmino: (object: _42.MsgDepositAmino) => _42.MsgDeposit; + }; + }; + MsgSubmitProposal: { + typeUrl: string; + encode(message: _42.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgSubmitProposal; + fromPartial(object: Partial<_42.MsgSubmitProposal>): _42.MsgSubmitProposal; + fromAmino(object: _42.MsgSubmitProposalAmino): _42.MsgSubmitProposal; + toAmino(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalAmino; + fromAminoMsg(object: _42.MsgSubmitProposalAminoMsg): _42.MsgSubmitProposal; + toAminoMsg(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalAminoMsg; + fromProtoMsg(message: _42.MsgSubmitProposalProtoMsg): _42.MsgSubmitProposal; + toProto(message: _42.MsgSubmitProposal): Uint8Array; + toProtoMsg(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalProtoMsg; + }; + MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: _42.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgSubmitProposalResponse; + fromPartial(object: Partial<_42.MsgSubmitProposalResponse>): _42.MsgSubmitProposalResponse; + fromAmino(object: _42.MsgSubmitProposalResponseAmino): _42.MsgSubmitProposalResponse; + toAmino(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseAmino; + fromAminoMsg(object: _42.MsgSubmitProposalResponseAminoMsg): _42.MsgSubmitProposalResponse; + toAminoMsg(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: _42.MsgSubmitProposalResponseProtoMsg): _42.MsgSubmitProposalResponse; + toProto(message: _42.MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseProtoMsg; + }; + MsgVote: { + typeUrl: string; + encode(message: _42.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVote; + fromPartial(object: Partial<_42.MsgVote>): _42.MsgVote; + fromAmino(object: _42.MsgVoteAmino): _42.MsgVote; + toAmino(message: _42.MsgVote): _42.MsgVoteAmino; + fromAminoMsg(object: _42.MsgVoteAminoMsg): _42.MsgVote; + toAminoMsg(message: _42.MsgVote): _42.MsgVoteAminoMsg; + fromProtoMsg(message: _42.MsgVoteProtoMsg): _42.MsgVote; + toProto(message: _42.MsgVote): Uint8Array; + toProtoMsg(message: _42.MsgVote): _42.MsgVoteProtoMsg; + }; + MsgVoteResponse: { + typeUrl: string; + encode(_: _42.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteResponse; + fromPartial(_: Partial<_42.MsgVoteResponse>): _42.MsgVoteResponse; + fromAmino(_: _42.MsgVoteResponseAmino): _42.MsgVoteResponse; + toAmino(_: _42.MsgVoteResponse): _42.MsgVoteResponseAmino; + fromAminoMsg(object: _42.MsgVoteResponseAminoMsg): _42.MsgVoteResponse; + toAminoMsg(message: _42.MsgVoteResponse): _42.MsgVoteResponseAminoMsg; + fromProtoMsg(message: _42.MsgVoteResponseProtoMsg): _42.MsgVoteResponse; + toProto(message: _42.MsgVoteResponse): Uint8Array; + toProtoMsg(message: _42.MsgVoteResponse): _42.MsgVoteResponseProtoMsg; + }; + MsgVoteWeighted: { + typeUrl: string; + encode(message: _42.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteWeighted; + fromPartial(object: Partial<_42.MsgVoteWeighted>): _42.MsgVoteWeighted; + fromAmino(object: _42.MsgVoteWeightedAmino): _42.MsgVoteWeighted; + toAmino(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedAmino; + fromAminoMsg(object: _42.MsgVoteWeightedAminoMsg): _42.MsgVoteWeighted; + toAminoMsg(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedAminoMsg; + fromProtoMsg(message: _42.MsgVoteWeightedProtoMsg): _42.MsgVoteWeighted; + toProto(message: _42.MsgVoteWeighted): Uint8Array; + toProtoMsg(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedProtoMsg; + }; + MsgVoteWeightedResponse: { + typeUrl: string; + encode(_: _42.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteWeightedResponse; + fromPartial(_: Partial<_42.MsgVoteWeightedResponse>): _42.MsgVoteWeightedResponse; + fromAmino(_: _42.MsgVoteWeightedResponseAmino): _42.MsgVoteWeightedResponse; + toAmino(_: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseAmino; + fromAminoMsg(object: _42.MsgVoteWeightedResponseAminoMsg): _42.MsgVoteWeightedResponse; + toAminoMsg(message: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseAminoMsg; + fromProtoMsg(message: _42.MsgVoteWeightedResponseProtoMsg): _42.MsgVoteWeightedResponse; + toProto(message: _42.MsgVoteWeightedResponse): Uint8Array; + toProtoMsg(message: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseProtoMsg; + }; + MsgDeposit: { + typeUrl: string; + encode(message: _42.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgDeposit; + fromPartial(object: Partial<_42.MsgDeposit>): _42.MsgDeposit; + fromAmino(object: _42.MsgDepositAmino): _42.MsgDeposit; + toAmino(message: _42.MsgDeposit): _42.MsgDepositAmino; + fromAminoMsg(object: _42.MsgDepositAminoMsg): _42.MsgDeposit; + toAminoMsg(message: _42.MsgDeposit): _42.MsgDepositAminoMsg; + fromProtoMsg(message: _42.MsgDepositProtoMsg): _42.MsgDeposit; + toProto(message: _42.MsgDeposit): Uint8Array; + toProtoMsg(message: _42.MsgDeposit): _42.MsgDepositProtoMsg; + }; + MsgDepositResponse: { + typeUrl: string; + encode(_: _42.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgDepositResponse; + fromPartial(_: Partial<_42.MsgDepositResponse>): _42.MsgDepositResponse; + fromAmino(_: _42.MsgDepositResponseAmino): _42.MsgDepositResponse; + toAmino(_: _42.MsgDepositResponse): _42.MsgDepositResponseAmino; + fromAminoMsg(object: _42.MsgDepositResponseAminoMsg): _42.MsgDepositResponse; + toAminoMsg(message: _42.MsgDepositResponse): _42.MsgDepositResponseAminoMsg; + fromProtoMsg(message: _42.MsgDepositResponseProtoMsg): _42.MsgDepositResponse; + toProto(message: _42.MsgDepositResponse): Uint8Array; + toProtoMsg(message: _42.MsgDepositResponse): _42.MsgDepositResponseProtoMsg; + }; + Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _40.TextProposal; + Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + QueryProposalRequest: { + typeUrl: string; + encode(message: _41.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalRequest; + fromPartial(object: Partial<_41.QueryProposalRequest>): _41.QueryProposalRequest; + fromAmino(object: _41.QueryProposalRequestAmino): _41.QueryProposalRequest; + toAmino(message: _41.QueryProposalRequest): _41.QueryProposalRequestAmino; + fromAminoMsg(object: _41.QueryProposalRequestAminoMsg): _41.QueryProposalRequest; + toAminoMsg(message: _41.QueryProposalRequest): _41.QueryProposalRequestAminoMsg; + fromProtoMsg(message: _41.QueryProposalRequestProtoMsg): _41.QueryProposalRequest; + toProto(message: _41.QueryProposalRequest): Uint8Array; + toProtoMsg(message: _41.QueryProposalRequest): _41.QueryProposalRequestProtoMsg; + }; + QueryProposalResponse: { + typeUrl: string; + encode(message: _41.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalResponse; + fromPartial(object: Partial<_41.QueryProposalResponse>): _41.QueryProposalResponse; + fromAmino(object: _41.QueryProposalResponseAmino): _41.QueryProposalResponse; + toAmino(message: _41.QueryProposalResponse): _41.QueryProposalResponseAmino; + fromAminoMsg(object: _41.QueryProposalResponseAminoMsg): _41.QueryProposalResponse; + toAminoMsg(message: _41.QueryProposalResponse): _41.QueryProposalResponseAminoMsg; + fromProtoMsg(message: _41.QueryProposalResponseProtoMsg): _41.QueryProposalResponse; + toProto(message: _41.QueryProposalResponse): Uint8Array; + toProtoMsg(message: _41.QueryProposalResponse): _41.QueryProposalResponseProtoMsg; + }; + QueryProposalsRequest: { + typeUrl: string; + encode(message: _41.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalsRequest; + fromPartial(object: Partial<_41.QueryProposalsRequest>): _41.QueryProposalsRequest; + fromAmino(object: _41.QueryProposalsRequestAmino): _41.QueryProposalsRequest; + toAmino(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestAmino; + fromAminoMsg(object: _41.QueryProposalsRequestAminoMsg): _41.QueryProposalsRequest; + toAminoMsg(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestAminoMsg; + fromProtoMsg(message: _41.QueryProposalsRequestProtoMsg): _41.QueryProposalsRequest; + toProto(message: _41.QueryProposalsRequest): Uint8Array; + toProtoMsg(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestProtoMsg; + }; + QueryProposalsResponse: { + typeUrl: string; + encode(message: _41.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalsResponse; + fromPartial(object: Partial<_41.QueryProposalsResponse>): _41.QueryProposalsResponse; + fromAmino(object: _41.QueryProposalsResponseAmino): _41.QueryProposalsResponse; + toAmino(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseAmino; + fromAminoMsg(object: _41.QueryProposalsResponseAminoMsg): _41.QueryProposalsResponse; + toAminoMsg(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseAminoMsg; + fromProtoMsg(message: _41.QueryProposalsResponseProtoMsg): _41.QueryProposalsResponse; + toProto(message: _41.QueryProposalsResponse): Uint8Array; + toProtoMsg(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseProtoMsg; + }; + QueryVoteRequest: { + typeUrl: string; + encode(message: _41.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVoteRequest; + fromPartial(object: Partial<_41.QueryVoteRequest>): _41.QueryVoteRequest; + fromAmino(object: _41.QueryVoteRequestAmino): _41.QueryVoteRequest; + toAmino(message: _41.QueryVoteRequest): _41.QueryVoteRequestAmino; + fromAminoMsg(object: _41.QueryVoteRequestAminoMsg): _41.QueryVoteRequest; + toAminoMsg(message: _41.QueryVoteRequest): _41.QueryVoteRequestAminoMsg; + fromProtoMsg(message: _41.QueryVoteRequestProtoMsg): _41.QueryVoteRequest; + toProto(message: _41.QueryVoteRequest): Uint8Array; + toProtoMsg(message: _41.QueryVoteRequest): _41.QueryVoteRequestProtoMsg; + }; + QueryVoteResponse: { + typeUrl: string; + encode(message: _41.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVoteResponse; + fromPartial(object: Partial<_41.QueryVoteResponse>): _41.QueryVoteResponse; + fromAmino(object: _41.QueryVoteResponseAmino): _41.QueryVoteResponse; + toAmino(message: _41.QueryVoteResponse): _41.QueryVoteResponseAmino; + fromAminoMsg(object: _41.QueryVoteResponseAminoMsg): _41.QueryVoteResponse; + toAminoMsg(message: _41.QueryVoteResponse): _41.QueryVoteResponseAminoMsg; + fromProtoMsg(message: _41.QueryVoteResponseProtoMsg): _41.QueryVoteResponse; + toProto(message: _41.QueryVoteResponse): Uint8Array; + toProtoMsg(message: _41.QueryVoteResponse): _41.QueryVoteResponseProtoMsg; + }; + QueryVotesRequest: { + typeUrl: string; + encode(message: _41.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVotesRequest; + fromPartial(object: Partial<_41.QueryVotesRequest>): _41.QueryVotesRequest; + fromAmino(object: _41.QueryVotesRequestAmino): _41.QueryVotesRequest; + toAmino(message: _41.QueryVotesRequest): _41.QueryVotesRequestAmino; + fromAminoMsg(object: _41.QueryVotesRequestAminoMsg): _41.QueryVotesRequest; + toAminoMsg(message: _41.QueryVotesRequest): _41.QueryVotesRequestAminoMsg; + fromProtoMsg(message: _41.QueryVotesRequestProtoMsg): _41.QueryVotesRequest; + toProto(message: _41.QueryVotesRequest): Uint8Array; + toProtoMsg(message: _41.QueryVotesRequest): _41.QueryVotesRequestProtoMsg; + }; + QueryVotesResponse: { + typeUrl: string; + encode(message: _41.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVotesResponse; + fromPartial(object: Partial<_41.QueryVotesResponse>): _41.QueryVotesResponse; + fromAmino(object: _41.QueryVotesResponseAmino): _41.QueryVotesResponse; + toAmino(message: _41.QueryVotesResponse): _41.QueryVotesResponseAmino; + fromAminoMsg(object: _41.QueryVotesResponseAminoMsg): _41.QueryVotesResponse; + toAminoMsg(message: _41.QueryVotesResponse): _41.QueryVotesResponseAminoMsg; + fromProtoMsg(message: _41.QueryVotesResponseProtoMsg): _41.QueryVotesResponse; + toProto(message: _41.QueryVotesResponse): Uint8Array; + toProtoMsg(message: _41.QueryVotesResponse): _41.QueryVotesResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(message: _41.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryParamsRequest; + fromPartial(object: Partial<_41.QueryParamsRequest>): _41.QueryParamsRequest; + fromAmino(object: _41.QueryParamsRequestAmino): _41.QueryParamsRequest; + toAmino(message: _41.QueryParamsRequest): _41.QueryParamsRequestAmino; + fromAminoMsg(object: _41.QueryParamsRequestAminoMsg): _41.QueryParamsRequest; + toAminoMsg(message: _41.QueryParamsRequest): _41.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _41.QueryParamsRequestProtoMsg): _41.QueryParamsRequest; + toProto(message: _41.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _41.QueryParamsRequest): _41.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _41.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryParamsResponse; + fromPartial(object: Partial<_41.QueryParamsResponse>): _41.QueryParamsResponse; + fromAmino(object: _41.QueryParamsResponseAmino): _41.QueryParamsResponse; + toAmino(message: _41.QueryParamsResponse): _41.QueryParamsResponseAmino; + fromAminoMsg(object: _41.QueryParamsResponseAminoMsg): _41.QueryParamsResponse; + toAminoMsg(message: _41.QueryParamsResponse): _41.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _41.QueryParamsResponseProtoMsg): _41.QueryParamsResponse; + toProto(message: _41.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _41.QueryParamsResponse): _41.QueryParamsResponseProtoMsg; + }; + QueryDepositRequest: { + typeUrl: string; + encode(message: _41.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositRequest; + fromPartial(object: Partial<_41.QueryDepositRequest>): _41.QueryDepositRequest; + fromAmino(object: _41.QueryDepositRequestAmino): _41.QueryDepositRequest; + toAmino(message: _41.QueryDepositRequest): _41.QueryDepositRequestAmino; + fromAminoMsg(object: _41.QueryDepositRequestAminoMsg): _41.QueryDepositRequest; + toAminoMsg(message: _41.QueryDepositRequest): _41.QueryDepositRequestAminoMsg; + fromProtoMsg(message: _41.QueryDepositRequestProtoMsg): _41.QueryDepositRequest; + toProto(message: _41.QueryDepositRequest): Uint8Array; + toProtoMsg(message: _41.QueryDepositRequest): _41.QueryDepositRequestProtoMsg; + }; + QueryDepositResponse: { + typeUrl: string; + encode(message: _41.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositResponse; + fromPartial(object: Partial<_41.QueryDepositResponse>): _41.QueryDepositResponse; + fromAmino(object: _41.QueryDepositResponseAmino): _41.QueryDepositResponse; + toAmino(message: _41.QueryDepositResponse): _41.QueryDepositResponseAmino; + fromAminoMsg(object: _41.QueryDepositResponseAminoMsg): _41.QueryDepositResponse; + toAminoMsg(message: _41.QueryDepositResponse): _41.QueryDepositResponseAminoMsg; + fromProtoMsg(message: _41.QueryDepositResponseProtoMsg): _41.QueryDepositResponse; + toProto(message: _41.QueryDepositResponse): Uint8Array; + toProtoMsg(message: _41.QueryDepositResponse): _41.QueryDepositResponseProtoMsg; + }; + QueryDepositsRequest: { + typeUrl: string; + encode(message: _41.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositsRequest; + fromPartial(object: Partial<_41.QueryDepositsRequest>): _41.QueryDepositsRequest; + fromAmino(object: _41.QueryDepositsRequestAmino): _41.QueryDepositsRequest; + toAmino(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestAmino; + fromAminoMsg(object: _41.QueryDepositsRequestAminoMsg): _41.QueryDepositsRequest; + toAminoMsg(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestAminoMsg; + fromProtoMsg(message: _41.QueryDepositsRequestProtoMsg): _41.QueryDepositsRequest; + toProto(message: _41.QueryDepositsRequest): Uint8Array; + toProtoMsg(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestProtoMsg; + }; + QueryDepositsResponse: { + typeUrl: string; + encode(message: _41.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositsResponse; + fromPartial(object: Partial<_41.QueryDepositsResponse>): _41.QueryDepositsResponse; + fromAmino(object: _41.QueryDepositsResponseAmino): _41.QueryDepositsResponse; + toAmino(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseAmino; + fromAminoMsg(object: _41.QueryDepositsResponseAminoMsg): _41.QueryDepositsResponse; + toAminoMsg(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseAminoMsg; + fromProtoMsg(message: _41.QueryDepositsResponseProtoMsg): _41.QueryDepositsResponse; + toProto(message: _41.QueryDepositsResponse): Uint8Array; + toProtoMsg(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseProtoMsg; + }; + QueryTallyResultRequest: { + typeUrl: string; + encode(message: _41.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryTallyResultRequest; + fromPartial(object: Partial<_41.QueryTallyResultRequest>): _41.QueryTallyResultRequest; + fromAmino(object: _41.QueryTallyResultRequestAmino): _41.QueryTallyResultRequest; + toAmino(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestAmino; + fromAminoMsg(object: _41.QueryTallyResultRequestAminoMsg): _41.QueryTallyResultRequest; + toAminoMsg(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: _41.QueryTallyResultRequestProtoMsg): _41.QueryTallyResultRequest; + toProto(message: _41.QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestProtoMsg; + }; + QueryTallyResultResponse: { + typeUrl: string; + encode(message: _41.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryTallyResultResponse; + fromPartial(object: Partial<_41.QueryTallyResultResponse>): _41.QueryTallyResultResponse; + fromAmino(object: _41.QueryTallyResultResponseAmino): _41.QueryTallyResultResponse; + toAmino(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseAmino; + fromAminoMsg(object: _41.QueryTallyResultResponseAminoMsg): _41.QueryTallyResultResponse; + toAminoMsg(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: _41.QueryTallyResultResponseProtoMsg): _41.QueryTallyResultResponse; + toProto(message: _41.QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseProtoMsg; + }; + voteOptionFromJSON(object: any): _40.VoteOption; + voteOptionToJSON(object: _40.VoteOption): string; + proposalStatusFromJSON(object: any): _40.ProposalStatus; + proposalStatusToJSON(object: _40.ProposalStatus): string; + VoteOption: typeof _40.VoteOption; + VoteOptionSDKType: typeof _40.VoteOption; + VoteOptionAmino: typeof _40.VoteOption; + ProposalStatus: typeof _40.ProposalStatus; + ProposalStatusSDKType: typeof _40.ProposalStatus; + ProposalStatusAmino: typeof _40.ProposalStatus; + WeightedVoteOption: { + typeUrl: string; + encode(message: _40.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.WeightedVoteOption; + fromPartial(object: Partial<_40.WeightedVoteOption>): _40.WeightedVoteOption; + fromAmino(object: _40.WeightedVoteOptionAmino): _40.WeightedVoteOption; + toAmino(message: _40.WeightedVoteOption): _40.WeightedVoteOptionAmino; + fromAminoMsg(object: _40.WeightedVoteOptionAminoMsg): _40.WeightedVoteOption; + toAminoMsg(message: _40.WeightedVoteOption): _40.WeightedVoteOptionAminoMsg; + fromProtoMsg(message: _40.WeightedVoteOptionProtoMsg): _40.WeightedVoteOption; + toProto(message: _40.WeightedVoteOption): Uint8Array; + toProtoMsg(message: _40.WeightedVoteOption): _40.WeightedVoteOptionProtoMsg; + }; + TextProposal: { + typeUrl: string; + encode(message: _40.TextProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TextProposal; + fromPartial(object: Partial<_40.TextProposal>): _40.TextProposal; + fromAmino(object: _40.TextProposalAmino): _40.TextProposal; + toAmino(message: _40.TextProposal): _40.TextProposalAmino; + fromAminoMsg(object: _40.TextProposalAminoMsg): _40.TextProposal; + toAminoMsg(message: _40.TextProposal): _40.TextProposalAminoMsg; + fromProtoMsg(message: _40.TextProposalProtoMsg): _40.TextProposal; + toProto(message: _40.TextProposal): Uint8Array; + toProtoMsg(message: _40.TextProposal): _40.TextProposalProtoMsg; + }; + Deposit: { + typeUrl: string; + encode(message: _40.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Deposit; + fromPartial(object: Partial<_40.Deposit>): _40.Deposit; + fromAmino(object: _40.DepositAmino): _40.Deposit; + toAmino(message: _40.Deposit): _40.DepositAmino; + fromAminoMsg(object: _40.DepositAminoMsg): _40.Deposit; + toAminoMsg(message: _40.Deposit): _40.DepositAminoMsg; + fromProtoMsg(message: _40.DepositProtoMsg): _40.Deposit; + toProto(message: _40.Deposit): Uint8Array; + toProtoMsg(message: _40.Deposit): _40.DepositProtoMsg; + }; + Proposal: { + typeUrl: string; + encode(message: _40.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Proposal; + fromPartial(object: Partial<_40.Proposal>): _40.Proposal; + fromAmino(object: _40.ProposalAmino): _40.Proposal; + toAmino(message: _40.Proposal): _40.ProposalAmino; + fromAminoMsg(object: _40.ProposalAminoMsg): _40.Proposal; + toAminoMsg(message: _40.Proposal): _40.ProposalAminoMsg; + fromProtoMsg(message: _40.ProposalProtoMsg): _40.Proposal; + toProto(message: _40.Proposal): Uint8Array; + toProtoMsg(message: _40.Proposal): _40.ProposalProtoMsg; + }; + TallyResult: { + typeUrl: string; + encode(message: _40.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TallyResult; + fromPartial(object: Partial<_40.TallyResult>): _40.TallyResult; + fromAmino(object: _40.TallyResultAmino): _40.TallyResult; + toAmino(message: _40.TallyResult): _40.TallyResultAmino; + fromAminoMsg(object: _40.TallyResultAminoMsg): _40.TallyResult; + toAminoMsg(message: _40.TallyResult): _40.TallyResultAminoMsg; + fromProtoMsg(message: _40.TallyResultProtoMsg): _40.TallyResult; + toProto(message: _40.TallyResult): Uint8Array; + toProtoMsg(message: _40.TallyResult): _40.TallyResultProtoMsg; + }; + Vote: { + typeUrl: string; + encode(message: _40.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Vote; + fromPartial(object: Partial<_40.Vote>): _40.Vote; + fromAmino(object: _40.VoteAmino): _40.Vote; + toAmino(message: _40.Vote): _40.VoteAmino; + fromAminoMsg(object: _40.VoteAminoMsg): _40.Vote; + toAminoMsg(message: _40.Vote): _40.VoteAminoMsg; + fromProtoMsg(message: _40.VoteProtoMsg): _40.Vote; + toProto(message: _40.Vote): Uint8Array; + toProtoMsg(message: _40.Vote): _40.VoteProtoMsg; + }; + DepositParams: { + typeUrl: string; + encode(message: _40.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.DepositParams; + fromPartial(object: Partial<_40.DepositParams>): _40.DepositParams; + fromAmino(object: _40.DepositParamsAmino): _40.DepositParams; + toAmino(message: _40.DepositParams): _40.DepositParamsAmino; + fromAminoMsg(object: _40.DepositParamsAminoMsg): _40.DepositParams; + toAminoMsg(message: _40.DepositParams): _40.DepositParamsAminoMsg; + fromProtoMsg(message: _40.DepositParamsProtoMsg): _40.DepositParams; + toProto(message: _40.DepositParams): Uint8Array; + toProtoMsg(message: _40.DepositParams): _40.DepositParamsProtoMsg; + }; + VotingParams: { + typeUrl: string; + encode(message: _40.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.VotingParams; + fromPartial(object: Partial<_40.VotingParams>): _40.VotingParams; + fromAmino(object: _40.VotingParamsAmino): _40.VotingParams; + toAmino(message: _40.VotingParams): _40.VotingParamsAmino; + fromAminoMsg(object: _40.VotingParamsAminoMsg): _40.VotingParams; + toAminoMsg(message: _40.VotingParams): _40.VotingParamsAminoMsg; + fromProtoMsg(message: _40.VotingParamsProtoMsg): _40.VotingParams; + toProto(message: _40.VotingParams): Uint8Array; + toProtoMsg(message: _40.VotingParams): _40.VotingParamsProtoMsg; + }; + TallyParams: { + typeUrl: string; + encode(message: _40.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TallyParams; + fromPartial(object: Partial<_40.TallyParams>): _40.TallyParams; + fromAmino(object: _40.TallyParamsAmino): _40.TallyParams; + toAmino(message: _40.TallyParams): _40.TallyParamsAmino; + fromAminoMsg(object: _40.TallyParamsAminoMsg): _40.TallyParams; + toAminoMsg(message: _40.TallyParams): _40.TallyParamsAminoMsg; + fromProtoMsg(message: _40.TallyParamsProtoMsg): _40.TallyParams; + toProto(message: _40.TallyParams): Uint8Array; + toProtoMsg(message: _40.TallyParams): _40.TallyParamsProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _39.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _39.GenesisState; + fromPartial(object: Partial<_39.GenesisState>): _39.GenesisState; + fromAmino(object: _39.GenesisStateAmino): _39.GenesisState; + toAmino(message: _39.GenesisState): _39.GenesisStateAmino; + fromAminoMsg(object: _39.GenesisStateAminoMsg): _39.GenesisState; + toAminoMsg(message: _39.GenesisState): _39.GenesisStateAminoMsg; + fromProtoMsg(message: _39.GenesisStateProtoMsg): _39.GenesisState; + toProto(message: _39.GenesisState): Uint8Array; + toProtoMsg(message: _39.GenesisState): _39.GenesisStateProtoMsg; + }; + }; + } + namespace group { + const v1: { + MsgClientImpl: typeof _173.MsgClientImpl; + QueryClientImpl: typeof _161.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + groupInfo(request: _45.QueryGroupInfoRequest): Promise<_45.QueryGroupInfoResponse>; + groupPolicyInfo(request: _45.QueryGroupPolicyInfoRequest): Promise<_45.QueryGroupPolicyInfoResponse>; + groupMembers(request: _45.QueryGroupMembersRequest): Promise<_45.QueryGroupMembersResponse>; + groupsByAdmin(request: _45.QueryGroupsByAdminRequest): Promise<_45.QueryGroupsByAdminResponse>; + groupPoliciesByGroup(request: _45.QueryGroupPoliciesByGroupRequest): Promise<_45.QueryGroupPoliciesByGroupResponse>; + groupPoliciesByAdmin(request: _45.QueryGroupPoliciesByAdminRequest): Promise<_45.QueryGroupPoliciesByAdminResponse>; + proposal(request: _45.QueryProposalRequest): Promise<_45.QueryProposalResponse>; + proposalsByGroupPolicy(request: _45.QueryProposalsByGroupPolicyRequest): Promise<_45.QueryProposalsByGroupPolicyResponse>; + voteByProposalVoter(request: _45.QueryVoteByProposalVoterRequest): Promise<_45.QueryVoteByProposalVoterResponse>; + votesByProposal(request: _45.QueryVotesByProposalRequest): Promise<_45.QueryVotesByProposalResponse>; + votesByVoter(request: _45.QueryVotesByVoterRequest): Promise<_45.QueryVotesByVoterResponse>; + groupsByMember(request: _45.QueryGroupsByMemberRequest): Promise<_45.QueryGroupsByMemberResponse>; + tallyResult(request: _45.QueryTallyResultRequest): Promise<_45.QueryTallyResultResponse>; + }; + LCDQueryClient: typeof _147.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createGroup(value: _46.MsgCreateGroup): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupMembers(value: _46.MsgUpdateGroupMembers): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { + typeUrl: string; + value: Uint8Array; + }; + createGroupPolicy(value: _46.MsgCreateGroupPolicy): { + typeUrl: string; + value: Uint8Array; + }; + createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: Uint8Array; + }; + submitProposal(value: _46.MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + withdrawProposal(value: _46.MsgWithdrawProposal): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: _46.MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + exec(value: _46.MsgExec): { + typeUrl: string; + value: Uint8Array; + }; + leaveGroup(value: _46.MsgLeaveGroup): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createGroup(value: _46.MsgCreateGroup): { + typeUrl: string; + value: _46.MsgCreateGroup; + }; + updateGroupMembers(value: _46.MsgUpdateGroupMembers): { + typeUrl: string; + value: _46.MsgUpdateGroupMembers; + }; + updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { + typeUrl: string; + value: _46.MsgUpdateGroupAdmin; + }; + updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { + typeUrl: string; + value: _46.MsgUpdateGroupMetadata; + }; + createGroupPolicy(value: _46.MsgCreateGroupPolicy): { + typeUrl: string; + value: _46.MsgCreateGroupPolicy; + }; + createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { + typeUrl: string; + value: _46.MsgCreateGroupWithPolicy; + }; + updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyAdmin; + }; + updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyDecisionPolicy; + }; + updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyMetadata; + }; + submitProposal(value: _46.MsgSubmitProposal): { + typeUrl: string; + value: _46.MsgSubmitProposal; + }; + withdrawProposal(value: _46.MsgWithdrawProposal): { + typeUrl: string; + value: _46.MsgWithdrawProposal; + }; + vote(value: _46.MsgVote): { + typeUrl: string; + value: _46.MsgVote; + }; + exec(value: _46.MsgExec): { + typeUrl: string; + value: _46.MsgExec; + }; + leaveGroup(value: _46.MsgLeaveGroup): { + typeUrl: string; + value: _46.MsgLeaveGroup; + }; + }; + fromPartial: { + createGroup(value: _46.MsgCreateGroup): { + typeUrl: string; + value: _46.MsgCreateGroup; + }; + updateGroupMembers(value: _46.MsgUpdateGroupMembers): { + typeUrl: string; + value: _46.MsgUpdateGroupMembers; + }; + updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { + typeUrl: string; + value: _46.MsgUpdateGroupAdmin; + }; + updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { + typeUrl: string; + value: _46.MsgUpdateGroupMetadata; + }; + createGroupPolicy(value: _46.MsgCreateGroupPolicy): { + typeUrl: string; + value: _46.MsgCreateGroupPolicy; + }; + createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { + typeUrl: string; + value: _46.MsgCreateGroupWithPolicy; + }; + updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyAdmin; + }; + updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyDecisionPolicy; + }; + updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: _46.MsgUpdateGroupPolicyMetadata; + }; + submitProposal(value: _46.MsgSubmitProposal): { + typeUrl: string; + value: _46.MsgSubmitProposal; + }; + withdrawProposal(value: _46.MsgWithdrawProposal): { + typeUrl: string; + value: _46.MsgWithdrawProposal; + }; + vote(value: _46.MsgVote): { + typeUrl: string; + value: _46.MsgVote; + }; + exec(value: _46.MsgExec): { + typeUrl: string; + value: _46.MsgExec; + }; + leaveGroup(value: _46.MsgLeaveGroup): { + typeUrl: string; + value: _46.MsgLeaveGroup; + }; + }; + }; + AminoConverter: { + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: string; + toAmino: (message: _46.MsgCreateGroup) => _46.MsgCreateGroupAmino; + fromAmino: (object: _46.MsgCreateGroupAmino) => _46.MsgCreateGroup; + }; + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupMembers) => _46.MsgUpdateGroupMembersAmino; + fromAmino: (object: _46.MsgUpdateGroupMembersAmino) => _46.MsgUpdateGroupMembers; + }; + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupAdmin) => _46.MsgUpdateGroupAdminAmino; + fromAmino: (object: _46.MsgUpdateGroupAdminAmino) => _46.MsgUpdateGroupAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupMetadata) => _46.MsgUpdateGroupMetadataAmino; + fromAmino: (object: _46.MsgUpdateGroupMetadataAmino) => _46.MsgUpdateGroupMetadata; + }; + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: string; + toAmino: (message: _46.MsgCreateGroupPolicy) => _46.MsgCreateGroupPolicyAmino; + fromAmino: (object: _46.MsgCreateGroupPolicyAmino) => _46.MsgCreateGroupPolicy; + }; + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: string; + toAmino: (message: _46.MsgCreateGroupWithPolicy) => _46.MsgCreateGroupWithPolicyAmino; + fromAmino: (object: _46.MsgCreateGroupWithPolicyAmino) => _46.MsgCreateGroupWithPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupPolicyAdmin) => _46.MsgUpdateGroupPolicyAdminAmino; + fromAmino: (object: _46.MsgUpdateGroupPolicyAdminAmino) => _46.MsgUpdateGroupPolicyAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupPolicyDecisionPolicy) => _46.MsgUpdateGroupPolicyDecisionPolicyAmino; + fromAmino: (object: _46.MsgUpdateGroupPolicyDecisionPolicyAmino) => _46.MsgUpdateGroupPolicyDecisionPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: string; + toAmino: (message: _46.MsgUpdateGroupPolicyMetadata) => _46.MsgUpdateGroupPolicyMetadataAmino; + fromAmino: (object: _46.MsgUpdateGroupPolicyMetadataAmino) => _46.MsgUpdateGroupPolicyMetadata; + }; + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: _46.MsgSubmitProposal) => _46.MsgSubmitProposalAmino; + fromAmino: (object: _46.MsgSubmitProposalAmino) => _46.MsgSubmitProposal; + }; + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: string; + toAmino: (message: _46.MsgWithdrawProposal) => _46.MsgWithdrawProposalAmino; + fromAmino: (object: _46.MsgWithdrawProposalAmino) => _46.MsgWithdrawProposal; + }; + "/cosmos.group.v1.MsgVote": { + aminoType: string; + toAmino: (message: _46.MsgVote) => _46.MsgVoteAmino; + fromAmino: (object: _46.MsgVoteAmino) => _46.MsgVote; + }; + "/cosmos.group.v1.MsgExec": { + aminoType: string; + toAmino: (message: _46.MsgExec) => _46.MsgExecAmino; + fromAmino: (object: _46.MsgExecAmino) => _46.MsgExec; + }; + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: string; + toAmino: (message: _46.MsgLeaveGroup) => _46.MsgLeaveGroupAmino; + fromAmino: (object: _46.MsgLeaveGroupAmino) => _46.MsgLeaveGroup; + }; + }; + voteOptionFromJSON(object: any): _47.VoteOption; + voteOptionToJSON(object: _47.VoteOption): string; + proposalStatusFromJSON(object: any): _47.ProposalStatus; + proposalStatusToJSON(object: _47.ProposalStatus): string; + proposalExecutorResultFromJSON(object: any): _47.ProposalExecutorResult; + proposalExecutorResultToJSON(object: _47.ProposalExecutorResult): string; + VoteOption: typeof _47.VoteOption; + VoteOptionSDKType: typeof _47.VoteOption; + VoteOptionAmino: typeof _47.VoteOption; + ProposalStatus: typeof _47.ProposalStatus; + ProposalStatusSDKType: typeof _47.ProposalStatus; + ProposalStatusAmino: typeof _47.ProposalStatus; + ProposalExecutorResult: typeof _47.ProposalExecutorResult; + ProposalExecutorResultSDKType: typeof _47.ProposalExecutorResult; + ProposalExecutorResultAmino: typeof _47.ProposalExecutorResult; + Member: { + typeUrl: string; + encode(message: _47.Member, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Member; + fromPartial(object: Partial<_47.Member>): _47.Member; + fromAmino(object: _47.MemberAmino): _47.Member; + toAmino(message: _47.Member): _47.MemberAmino; + fromAminoMsg(object: _47.MemberAminoMsg): _47.Member; + toAminoMsg(message: _47.Member): _47.MemberAminoMsg; + fromProtoMsg(message: _47.MemberProtoMsg): _47.Member; + toProto(message: _47.Member): Uint8Array; + toProtoMsg(message: _47.Member): _47.MemberProtoMsg; + }; + MemberRequest: { + typeUrl: string; + encode(message: _47.MemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.MemberRequest; + fromPartial(object: Partial<_47.MemberRequest>): _47.MemberRequest; + fromAmino(object: _47.MemberRequestAmino): _47.MemberRequest; + toAmino(message: _47.MemberRequest): _47.MemberRequestAmino; + fromAminoMsg(object: _47.MemberRequestAminoMsg): _47.MemberRequest; + toAminoMsg(message: _47.MemberRequest): _47.MemberRequestAminoMsg; + fromProtoMsg(message: _47.MemberRequestProtoMsg): _47.MemberRequest; + toProto(message: _47.MemberRequest): Uint8Array; + toProtoMsg(message: _47.MemberRequest): _47.MemberRequestProtoMsg; + }; + ThresholdDecisionPolicy: { + typeUrl: string; + encode(message: _47.ThresholdDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.ThresholdDecisionPolicy; + fromPartial(object: Partial<_47.ThresholdDecisionPolicy>): _47.ThresholdDecisionPolicy; + fromAmino(object: _47.ThresholdDecisionPolicyAmino): _47.ThresholdDecisionPolicy; + toAmino(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyAmino; + fromAminoMsg(object: _47.ThresholdDecisionPolicyAminoMsg): _47.ThresholdDecisionPolicy; + toAminoMsg(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyAminoMsg; + fromProtoMsg(message: _47.ThresholdDecisionPolicyProtoMsg): _47.ThresholdDecisionPolicy; + toProto(message: _47.ThresholdDecisionPolicy): Uint8Array; + toProtoMsg(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyProtoMsg; + }; + PercentageDecisionPolicy: { + typeUrl: string; + encode(message: _47.PercentageDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.PercentageDecisionPolicy; + fromPartial(object: Partial<_47.PercentageDecisionPolicy>): _47.PercentageDecisionPolicy; + fromAmino(object: _47.PercentageDecisionPolicyAmino): _47.PercentageDecisionPolicy; + toAmino(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyAmino; + fromAminoMsg(object: _47.PercentageDecisionPolicyAminoMsg): _47.PercentageDecisionPolicy; + toAminoMsg(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyAminoMsg; + fromProtoMsg(message: _47.PercentageDecisionPolicyProtoMsg): _47.PercentageDecisionPolicy; + toProto(message: _47.PercentageDecisionPolicy): Uint8Array; + toProtoMsg(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyProtoMsg; + }; + DecisionPolicyWindows: { + typeUrl: string; + encode(message: _47.DecisionPolicyWindows, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.DecisionPolicyWindows; + fromPartial(object: Partial<_47.DecisionPolicyWindows>): _47.DecisionPolicyWindows; + fromAmino(object: _47.DecisionPolicyWindowsAmino): _47.DecisionPolicyWindows; + toAmino(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsAmino; + fromAminoMsg(object: _47.DecisionPolicyWindowsAminoMsg): _47.DecisionPolicyWindows; + toAminoMsg(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsAminoMsg; + fromProtoMsg(message: _47.DecisionPolicyWindowsProtoMsg): _47.DecisionPolicyWindows; + toProto(message: _47.DecisionPolicyWindows): Uint8Array; + toProtoMsg(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsProtoMsg; + }; + GroupInfo: { + typeUrl: string; + encode(message: _47.GroupInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupInfo; + fromPartial(object: Partial<_47.GroupInfo>): _47.GroupInfo; + fromAmino(object: _47.GroupInfoAmino): _47.GroupInfo; + toAmino(message: _47.GroupInfo): _47.GroupInfoAmino; + fromAminoMsg(object: _47.GroupInfoAminoMsg): _47.GroupInfo; + toAminoMsg(message: _47.GroupInfo): _47.GroupInfoAminoMsg; + fromProtoMsg(message: _47.GroupInfoProtoMsg): _47.GroupInfo; + toProto(message: _47.GroupInfo): Uint8Array; + toProtoMsg(message: _47.GroupInfo): _47.GroupInfoProtoMsg; + }; + GroupMember: { + typeUrl: string; + encode(message: _47.GroupMember, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupMember; + fromPartial(object: Partial<_47.GroupMember>): _47.GroupMember; + fromAmino(object: _47.GroupMemberAmino): _47.GroupMember; + toAmino(message: _47.GroupMember): _47.GroupMemberAmino; + fromAminoMsg(object: _47.GroupMemberAminoMsg): _47.GroupMember; + toAminoMsg(message: _47.GroupMember): _47.GroupMemberAminoMsg; + fromProtoMsg(message: _47.GroupMemberProtoMsg): _47.GroupMember; + toProto(message: _47.GroupMember): Uint8Array; + toProtoMsg(message: _47.GroupMember): _47.GroupMemberProtoMsg; + }; + GroupPolicyInfo: { + typeUrl: string; + encode(message: _47.GroupPolicyInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupPolicyInfo; + fromPartial(object: Partial<_47.GroupPolicyInfo>): _47.GroupPolicyInfo; + fromAmino(object: _47.GroupPolicyInfoAmino): _47.GroupPolicyInfo; + toAmino(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoAmino; + fromAminoMsg(object: _47.GroupPolicyInfoAminoMsg): _47.GroupPolicyInfo; + toAminoMsg(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoAminoMsg; + fromProtoMsg(message: _47.GroupPolicyInfoProtoMsg): _47.GroupPolicyInfo; + toProto(message: _47.GroupPolicyInfo): Uint8Array; + toProtoMsg(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoProtoMsg; + }; + Proposal: { + typeUrl: string; + encode(message: _47.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Proposal; + fromPartial(object: Partial<_47.Proposal>): _47.Proposal; + fromAmino(object: _47.ProposalAmino): _47.Proposal; + toAmino(message: _47.Proposal): _47.ProposalAmino; + fromAminoMsg(object: _47.ProposalAminoMsg): _47.Proposal; + toAminoMsg(message: _47.Proposal): _47.ProposalAminoMsg; + fromProtoMsg(message: _47.ProposalProtoMsg): _47.Proposal; + toProto(message: _47.Proposal): Uint8Array; + toProtoMsg(message: _47.Proposal): _47.ProposalProtoMsg; + }; + TallyResult: { + typeUrl: string; + encode(message: _47.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.TallyResult; + fromPartial(object: Partial<_47.TallyResult>): _47.TallyResult; + fromAmino(object: _47.TallyResultAmino): _47.TallyResult; + toAmino(message: _47.TallyResult): _47.TallyResultAmino; + fromAminoMsg(object: _47.TallyResultAminoMsg): _47.TallyResult; + toAminoMsg(message: _47.TallyResult): _47.TallyResultAminoMsg; + fromProtoMsg(message: _47.TallyResultProtoMsg): _47.TallyResult; + toProto(message: _47.TallyResult): Uint8Array; + toProtoMsg(message: _47.TallyResult): _47.TallyResultProtoMsg; + }; + Vote: { + typeUrl: string; + encode(message: _47.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Vote; + fromPartial(object: Partial<_47.Vote>): _47.Vote; + fromAmino(object: _47.VoteAmino): _47.Vote; + toAmino(message: _47.Vote): _47.VoteAmino; + fromAminoMsg(object: _47.VoteAminoMsg): _47.Vote; + toAminoMsg(message: _47.Vote): _47.VoteAminoMsg; + fromProtoMsg(message: _47.VoteProtoMsg): _47.Vote; + toProto(message: _47.Vote): Uint8Array; + toProtoMsg(message: _47.Vote): _47.VoteProtoMsg; + }; + DecisionPolicy_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _47.ThresholdDecisionPolicy | _47.PercentageDecisionPolicy; + DecisionPolicy_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + DecisionPolicy_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; + execFromJSON(object: any): _46.Exec; + execToJSON(object: _46.Exec): string; + Exec: typeof _46.Exec; + ExecSDKType: typeof _46.Exec; + ExecAmino: typeof _46.Exec; + MsgCreateGroup: { + typeUrl: string; + encode(message: _46.MsgCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroup; + fromPartial(object: Partial<_46.MsgCreateGroup>): _46.MsgCreateGroup; + fromAmino(object: _46.MsgCreateGroupAmino): _46.MsgCreateGroup; + toAmino(message: _46.MsgCreateGroup): _46.MsgCreateGroupAmino; + fromAminoMsg(object: _46.MsgCreateGroupAminoMsg): _46.MsgCreateGroup; + toAminoMsg(message: _46.MsgCreateGroup): _46.MsgCreateGroupAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupProtoMsg): _46.MsgCreateGroup; + toProto(message: _46.MsgCreateGroup): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroup): _46.MsgCreateGroupProtoMsg; + }; + MsgCreateGroupResponse: { + typeUrl: string; + encode(message: _46.MsgCreateGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupResponse; + fromPartial(object: Partial<_46.MsgCreateGroupResponse>): _46.MsgCreateGroupResponse; + fromAmino(object: _46.MsgCreateGroupResponseAmino): _46.MsgCreateGroupResponse; + toAmino(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseAmino; + fromAminoMsg(object: _46.MsgCreateGroupResponseAminoMsg): _46.MsgCreateGroupResponse; + toAminoMsg(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupResponseProtoMsg): _46.MsgCreateGroupResponse; + toProto(message: _46.MsgCreateGroupResponse): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseProtoMsg; + }; + MsgUpdateGroupMembers: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupMembers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMembers; + fromPartial(object: Partial<_46.MsgUpdateGroupMembers>): _46.MsgUpdateGroupMembers; + fromAmino(object: _46.MsgUpdateGroupMembersAmino): _46.MsgUpdateGroupMembers; + toAmino(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersAmino; + fromAminoMsg(object: _46.MsgUpdateGroupMembersAminoMsg): _46.MsgUpdateGroupMembers; + toAminoMsg(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupMembersProtoMsg): _46.MsgUpdateGroupMembers; + toProto(message: _46.MsgUpdateGroupMembers): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersProtoMsg; + }; + MsgUpdateGroupMembersResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMembersResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupMembersResponse>): _46.MsgUpdateGroupMembersResponse; + fromAmino(_: _46.MsgUpdateGroupMembersResponseAmino): _46.MsgUpdateGroupMembersResponse; + toAmino(_: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupMembersResponseAminoMsg): _46.MsgUpdateGroupMembersResponse; + toAminoMsg(message: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupMembersResponseProtoMsg): _46.MsgUpdateGroupMembersResponse; + toProto(message: _46.MsgUpdateGroupMembersResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseProtoMsg; + }; + MsgUpdateGroupAdmin: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupAdmin; + fromPartial(object: Partial<_46.MsgUpdateGroupAdmin>): _46.MsgUpdateGroupAdmin; + fromAmino(object: _46.MsgUpdateGroupAdminAmino): _46.MsgUpdateGroupAdmin; + toAmino(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminAmino; + fromAminoMsg(object: _46.MsgUpdateGroupAdminAminoMsg): _46.MsgUpdateGroupAdmin; + toAminoMsg(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupAdminProtoMsg): _46.MsgUpdateGroupAdmin; + toProto(message: _46.MsgUpdateGroupAdmin): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminProtoMsg; + }; + MsgUpdateGroupAdminResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupAdminResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupAdminResponse>): _46.MsgUpdateGroupAdminResponse; + fromAmino(_: _46.MsgUpdateGroupAdminResponseAmino): _46.MsgUpdateGroupAdminResponse; + toAmino(_: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupAdminResponseAminoMsg): _46.MsgUpdateGroupAdminResponse; + toAminoMsg(message: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupAdminResponseProtoMsg): _46.MsgUpdateGroupAdminResponse; + toProto(message: _46.MsgUpdateGroupAdminResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseProtoMsg; + }; + MsgUpdateGroupMetadata: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMetadata; + fromPartial(object: Partial<_46.MsgUpdateGroupMetadata>): _46.MsgUpdateGroupMetadata; + fromAmino(object: _46.MsgUpdateGroupMetadataAmino): _46.MsgUpdateGroupMetadata; + toAmino(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataAmino; + fromAminoMsg(object: _46.MsgUpdateGroupMetadataAminoMsg): _46.MsgUpdateGroupMetadata; + toAminoMsg(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupMetadataProtoMsg): _46.MsgUpdateGroupMetadata; + toProto(message: _46.MsgUpdateGroupMetadata): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataProtoMsg; + }; + MsgUpdateGroupMetadataResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMetadataResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupMetadataResponse>): _46.MsgUpdateGroupMetadataResponse; + fromAmino(_: _46.MsgUpdateGroupMetadataResponseAmino): _46.MsgUpdateGroupMetadataResponse; + toAmino(_: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupMetadataResponseAminoMsg): _46.MsgUpdateGroupMetadataResponse; + toAminoMsg(message: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupMetadataResponseProtoMsg): _46.MsgUpdateGroupMetadataResponse; + toProto(message: _46.MsgUpdateGroupMetadataResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseProtoMsg; + }; + MsgCreateGroupPolicy: { + typeUrl: string; + encode(message: _46.MsgCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupPolicy; + fromPartial(object: Partial<_46.MsgCreateGroupPolicy>): _46.MsgCreateGroupPolicy; + fromAmino(object: _46.MsgCreateGroupPolicyAmino): _46.MsgCreateGroupPolicy; + toAmino(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyAmino; + fromAminoMsg(object: _46.MsgCreateGroupPolicyAminoMsg): _46.MsgCreateGroupPolicy; + toAminoMsg(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupPolicyProtoMsg): _46.MsgCreateGroupPolicy; + toProto(message: _46.MsgCreateGroupPolicy): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyProtoMsg; + }; + MsgCreateGroupPolicyResponse: { + typeUrl: string; + encode(message: _46.MsgCreateGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupPolicyResponse; + fromPartial(object: Partial<_46.MsgCreateGroupPolicyResponse>): _46.MsgCreateGroupPolicyResponse; + fromAmino(object: _46.MsgCreateGroupPolicyResponseAmino): _46.MsgCreateGroupPolicyResponse; + toAmino(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseAmino; + fromAminoMsg(object: _46.MsgCreateGroupPolicyResponseAminoMsg): _46.MsgCreateGroupPolicyResponse; + toAminoMsg(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupPolicyResponseProtoMsg): _46.MsgCreateGroupPolicyResponse; + toProto(message: _46.MsgCreateGroupPolicyResponse): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseProtoMsg; + }; + MsgUpdateGroupPolicyAdmin: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupPolicyAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyAdmin; + fromPartial(object: Partial<_46.MsgUpdateGroupPolicyAdmin>): _46.MsgUpdateGroupPolicyAdmin; + fromAmino(object: _46.MsgUpdateGroupPolicyAdminAmino): _46.MsgUpdateGroupPolicyAdmin; + toAmino(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyAdminAminoMsg): _46.MsgUpdateGroupPolicyAdmin; + toAminoMsg(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyAdminProtoMsg): _46.MsgUpdateGroupPolicyAdmin; + toProto(message: _46.MsgUpdateGroupPolicyAdmin): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminProtoMsg; + }; + MsgUpdateGroupPolicyAdminResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupPolicyAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyAdminResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupPolicyAdminResponse>): _46.MsgUpdateGroupPolicyAdminResponse; + fromAmino(_: _46.MsgUpdateGroupPolicyAdminResponseAmino): _46.MsgUpdateGroupPolicyAdminResponse; + toAmino(_: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyAdminResponseAminoMsg): _46.MsgUpdateGroupPolicyAdminResponse; + toAminoMsg(message: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyAdminResponseProtoMsg): _46.MsgUpdateGroupPolicyAdminResponse; + toProto(message: _46.MsgUpdateGroupPolicyAdminResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseProtoMsg; + }; + MsgCreateGroupWithPolicy: { + typeUrl: string; + encode(message: _46.MsgCreateGroupWithPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupWithPolicy; + fromPartial(object: Partial<_46.MsgCreateGroupWithPolicy>): _46.MsgCreateGroupWithPolicy; + fromAmino(object: _46.MsgCreateGroupWithPolicyAmino): _46.MsgCreateGroupWithPolicy; + toAmino(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyAmino; + fromAminoMsg(object: _46.MsgCreateGroupWithPolicyAminoMsg): _46.MsgCreateGroupWithPolicy; + toAminoMsg(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupWithPolicyProtoMsg): _46.MsgCreateGroupWithPolicy; + toProto(message: _46.MsgCreateGroupWithPolicy): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyProtoMsg; + }; + MsgCreateGroupWithPolicyResponse: { + typeUrl: string; + encode(message: _46.MsgCreateGroupWithPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupWithPolicyResponse; + fromPartial(object: Partial<_46.MsgCreateGroupWithPolicyResponse>): _46.MsgCreateGroupWithPolicyResponse; + fromAmino(object: _46.MsgCreateGroupWithPolicyResponseAmino): _46.MsgCreateGroupWithPolicyResponse; + toAmino(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseAmino; + fromAminoMsg(object: _46.MsgCreateGroupWithPolicyResponseAminoMsg): _46.MsgCreateGroupWithPolicyResponse; + toAminoMsg(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseAminoMsg; + fromProtoMsg(message: _46.MsgCreateGroupWithPolicyResponseProtoMsg): _46.MsgCreateGroupWithPolicyResponse; + toProto(message: _46.MsgCreateGroupWithPolicyResponse): Uint8Array; + toProtoMsg(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseProtoMsg; + }; + MsgUpdateGroupPolicyDecisionPolicy: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyDecisionPolicy; + fromPartial(object: Partial<_46.MsgUpdateGroupPolicyDecisionPolicy>): _46.MsgUpdateGroupPolicyDecisionPolicy; + fromAmino(object: _46.MsgUpdateGroupPolicyDecisionPolicyAmino): _46.MsgUpdateGroupPolicyDecisionPolicy; + toAmino(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyDecisionPolicyAminoMsg): _46.MsgUpdateGroupPolicyDecisionPolicy; + toAminoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyProtoMsg): _46.MsgUpdateGroupPolicyDecisionPolicy; + toProto(message: _46.MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyProtoMsg; + }; + MsgUpdateGroupPolicyDecisionPolicyResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupPolicyDecisionPolicyResponse>): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; + fromAmino(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponseAmino): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; + toAmino(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; + toAminoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; + toProto(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; + }; + MsgUpdateGroupPolicyMetadata: { + typeUrl: string; + encode(message: _46.MsgUpdateGroupPolicyMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyMetadata; + fromPartial(object: Partial<_46.MsgUpdateGroupPolicyMetadata>): _46.MsgUpdateGroupPolicyMetadata; + fromAmino(object: _46.MsgUpdateGroupPolicyMetadataAmino): _46.MsgUpdateGroupPolicyMetadata; + toAmino(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyMetadataAminoMsg): _46.MsgUpdateGroupPolicyMetadata; + toAminoMsg(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataProtoMsg): _46.MsgUpdateGroupPolicyMetadata; + toProto(message: _46.MsgUpdateGroupPolicyMetadata): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataProtoMsg; + }; + MsgUpdateGroupPolicyMetadataResponse: { + typeUrl: string; + encode(_: _46.MsgUpdateGroupPolicyMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyMetadataResponse; + fromPartial(_: Partial<_46.MsgUpdateGroupPolicyMetadataResponse>): _46.MsgUpdateGroupPolicyMetadataResponse; + fromAmino(_: _46.MsgUpdateGroupPolicyMetadataResponseAmino): _46.MsgUpdateGroupPolicyMetadataResponse; + toAmino(_: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseAmino; + fromAminoMsg(object: _46.MsgUpdateGroupPolicyMetadataResponseAminoMsg): _46.MsgUpdateGroupPolicyMetadataResponse; + toAminoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseAminoMsg; + fromProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponseProtoMsg): _46.MsgUpdateGroupPolicyMetadataResponse; + toProto(message: _46.MsgUpdateGroupPolicyMetadataResponse): Uint8Array; + toProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseProtoMsg; + }; + MsgSubmitProposal: { + typeUrl: string; + encode(message: _46.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgSubmitProposal; + fromPartial(object: Partial<_46.MsgSubmitProposal>): _46.MsgSubmitProposal; + fromAmino(object: _46.MsgSubmitProposalAmino): _46.MsgSubmitProposal; + toAmino(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalAmino; + fromAminoMsg(object: _46.MsgSubmitProposalAminoMsg): _46.MsgSubmitProposal; + toAminoMsg(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalAminoMsg; + fromProtoMsg(message: _46.MsgSubmitProposalProtoMsg): _46.MsgSubmitProposal; + toProto(message: _46.MsgSubmitProposal): Uint8Array; + toProtoMsg(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalProtoMsg; + }; + MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: _46.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgSubmitProposalResponse; + fromPartial(object: Partial<_46.MsgSubmitProposalResponse>): _46.MsgSubmitProposalResponse; + fromAmino(object: _46.MsgSubmitProposalResponseAmino): _46.MsgSubmitProposalResponse; + toAmino(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseAmino; + fromAminoMsg(object: _46.MsgSubmitProposalResponseAminoMsg): _46.MsgSubmitProposalResponse; + toAminoMsg(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: _46.MsgSubmitProposalResponseProtoMsg): _46.MsgSubmitProposalResponse; + toProto(message: _46.MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseProtoMsg; + }; + MsgWithdrawProposal: { + typeUrl: string; + encode(message: _46.MsgWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgWithdrawProposal; + fromPartial(object: Partial<_46.MsgWithdrawProposal>): _46.MsgWithdrawProposal; + fromAmino(object: _46.MsgWithdrawProposalAmino): _46.MsgWithdrawProposal; + toAmino(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalAmino; + fromAminoMsg(object: _46.MsgWithdrawProposalAminoMsg): _46.MsgWithdrawProposal; + toAminoMsg(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalAminoMsg; + fromProtoMsg(message: _46.MsgWithdrawProposalProtoMsg): _46.MsgWithdrawProposal; + toProto(message: _46.MsgWithdrawProposal): Uint8Array; + toProtoMsg(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalProtoMsg; + }; + MsgWithdrawProposalResponse: { + typeUrl: string; + encode(_: _46.MsgWithdrawProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgWithdrawProposalResponse; + fromPartial(_: Partial<_46.MsgWithdrawProposalResponse>): _46.MsgWithdrawProposalResponse; + fromAmino(_: _46.MsgWithdrawProposalResponseAmino): _46.MsgWithdrawProposalResponse; + toAmino(_: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseAmino; + fromAminoMsg(object: _46.MsgWithdrawProposalResponseAminoMsg): _46.MsgWithdrawProposalResponse; + toAminoMsg(message: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseAminoMsg; + fromProtoMsg(message: _46.MsgWithdrawProposalResponseProtoMsg): _46.MsgWithdrawProposalResponse; + toProto(message: _46.MsgWithdrawProposalResponse): Uint8Array; + toProtoMsg(message: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseProtoMsg; + }; + MsgVote: { + typeUrl: string; + encode(message: _46.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgVote; + fromPartial(object: Partial<_46.MsgVote>): _46.MsgVote; + fromAmino(object: _46.MsgVoteAmino): _46.MsgVote; + toAmino(message: _46.MsgVote): _46.MsgVoteAmino; + fromAminoMsg(object: _46.MsgVoteAminoMsg): _46.MsgVote; + toAminoMsg(message: _46.MsgVote): _46.MsgVoteAminoMsg; + fromProtoMsg(message: _46.MsgVoteProtoMsg): _46.MsgVote; + toProto(message: _46.MsgVote): Uint8Array; + toProtoMsg(message: _46.MsgVote): _46.MsgVoteProtoMsg; + }; + MsgVoteResponse: { + typeUrl: string; + encode(_: _46.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgVoteResponse; + fromPartial(_: Partial<_46.MsgVoteResponse>): _46.MsgVoteResponse; + fromAmino(_: _46.MsgVoteResponseAmino): _46.MsgVoteResponse; + toAmino(_: _46.MsgVoteResponse): _46.MsgVoteResponseAmino; + fromAminoMsg(object: _46.MsgVoteResponseAminoMsg): _46.MsgVoteResponse; + toAminoMsg(message: _46.MsgVoteResponse): _46.MsgVoteResponseAminoMsg; + fromProtoMsg(message: _46.MsgVoteResponseProtoMsg): _46.MsgVoteResponse; + toProto(message: _46.MsgVoteResponse): Uint8Array; + toProtoMsg(message: _46.MsgVoteResponse): _46.MsgVoteResponseProtoMsg; + }; + MsgExec: { + typeUrl: string; + encode(message: _46.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgExec; + fromPartial(object: Partial<_46.MsgExec>): _46.MsgExec; + fromAmino(object: _46.MsgExecAmino): _46.MsgExec; + toAmino(message: _46.MsgExec): _46.MsgExecAmino; + fromAminoMsg(object: _46.MsgExecAminoMsg): _46.MsgExec; + toAminoMsg(message: _46.MsgExec): _46.MsgExecAminoMsg; + fromProtoMsg(message: _46.MsgExecProtoMsg): _46.MsgExec; + toProto(message: _46.MsgExec): Uint8Array; + toProtoMsg(message: _46.MsgExec): _46.MsgExecProtoMsg; + }; + MsgExecResponse: { + typeUrl: string; + encode(message: _46.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgExecResponse; + fromPartial(object: Partial<_46.MsgExecResponse>): _46.MsgExecResponse; + fromAmino(object: _46.MsgExecResponseAmino): _46.MsgExecResponse; + toAmino(message: _46.MsgExecResponse): _46.MsgExecResponseAmino; + fromAminoMsg(object: _46.MsgExecResponseAminoMsg): _46.MsgExecResponse; + toAminoMsg(message: _46.MsgExecResponse): _46.MsgExecResponseAminoMsg; + fromProtoMsg(message: _46.MsgExecResponseProtoMsg): _46.MsgExecResponse; + toProto(message: _46.MsgExecResponse): Uint8Array; + toProtoMsg(message: _46.MsgExecResponse): _46.MsgExecResponseProtoMsg; + }; + MsgLeaveGroup: { + typeUrl: string; + encode(message: _46.MsgLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgLeaveGroup; + fromPartial(object: Partial<_46.MsgLeaveGroup>): _46.MsgLeaveGroup; + fromAmino(object: _46.MsgLeaveGroupAmino): _46.MsgLeaveGroup; + toAmino(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupAmino; + fromAminoMsg(object: _46.MsgLeaveGroupAminoMsg): _46.MsgLeaveGroup; + toAminoMsg(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupAminoMsg; + fromProtoMsg(message: _46.MsgLeaveGroupProtoMsg): _46.MsgLeaveGroup; + toProto(message: _46.MsgLeaveGroup): Uint8Array; + toProtoMsg(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupProtoMsg; + }; + MsgLeaveGroupResponse: { + typeUrl: string; + encode(_: _46.MsgLeaveGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgLeaveGroupResponse; + fromPartial(_: Partial<_46.MsgLeaveGroupResponse>): _46.MsgLeaveGroupResponse; + fromAmino(_: _46.MsgLeaveGroupResponseAmino): _46.MsgLeaveGroupResponse; + toAmino(_: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseAmino; + fromAminoMsg(object: _46.MsgLeaveGroupResponseAminoMsg): _46.MsgLeaveGroupResponse; + toAminoMsg(message: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseAminoMsg; + fromProtoMsg(message: _46.MsgLeaveGroupResponseProtoMsg): _46.MsgLeaveGroupResponse; + toProto(message: _46.MsgLeaveGroupResponse): Uint8Array; + toProtoMsg(message: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseProtoMsg; + }; + QueryGroupInfoRequest: { + typeUrl: string; + encode(message: _45.QueryGroupInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupInfoRequest; + fromPartial(object: Partial<_45.QueryGroupInfoRequest>): _45.QueryGroupInfoRequest; + fromAmino(object: _45.QueryGroupInfoRequestAmino): _45.QueryGroupInfoRequest; + toAmino(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestAmino; + fromAminoMsg(object: _45.QueryGroupInfoRequestAminoMsg): _45.QueryGroupInfoRequest; + toAminoMsg(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupInfoRequestProtoMsg): _45.QueryGroupInfoRequest; + toProto(message: _45.QueryGroupInfoRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestProtoMsg; + }; + QueryGroupInfoResponse: { + typeUrl: string; + encode(message: _45.QueryGroupInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupInfoResponse; + fromPartial(object: Partial<_45.QueryGroupInfoResponse>): _45.QueryGroupInfoResponse; + fromAmino(object: _45.QueryGroupInfoResponseAmino): _45.QueryGroupInfoResponse; + toAmino(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseAmino; + fromAminoMsg(object: _45.QueryGroupInfoResponseAminoMsg): _45.QueryGroupInfoResponse; + toAminoMsg(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupInfoResponseProtoMsg): _45.QueryGroupInfoResponse; + toProto(message: _45.QueryGroupInfoResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseProtoMsg; + }; + QueryGroupPolicyInfoRequest: { + typeUrl: string; + encode(message: _45.QueryGroupPolicyInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPolicyInfoRequest; + fromPartial(object: Partial<_45.QueryGroupPolicyInfoRequest>): _45.QueryGroupPolicyInfoRequest; + fromAmino(object: _45.QueryGroupPolicyInfoRequestAmino): _45.QueryGroupPolicyInfoRequest; + toAmino(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestAmino; + fromAminoMsg(object: _45.QueryGroupPolicyInfoRequestAminoMsg): _45.QueryGroupPolicyInfoRequest; + toAminoMsg(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupPolicyInfoRequestProtoMsg): _45.QueryGroupPolicyInfoRequest; + toProto(message: _45.QueryGroupPolicyInfoRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestProtoMsg; + }; + QueryGroupPolicyInfoResponse: { + typeUrl: string; + encode(message: _45.QueryGroupPolicyInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPolicyInfoResponse; + fromPartial(object: Partial<_45.QueryGroupPolicyInfoResponse>): _45.QueryGroupPolicyInfoResponse; + fromAmino(object: _45.QueryGroupPolicyInfoResponseAmino): _45.QueryGroupPolicyInfoResponse; + toAmino(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseAmino; + fromAminoMsg(object: _45.QueryGroupPolicyInfoResponseAminoMsg): _45.QueryGroupPolicyInfoResponse; + toAminoMsg(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupPolicyInfoResponseProtoMsg): _45.QueryGroupPolicyInfoResponse; + toProto(message: _45.QueryGroupPolicyInfoResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseProtoMsg; + }; + QueryGroupMembersRequest: { + typeUrl: string; + encode(message: _45.QueryGroupMembersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupMembersRequest; + fromPartial(object: Partial<_45.QueryGroupMembersRequest>): _45.QueryGroupMembersRequest; + fromAmino(object: _45.QueryGroupMembersRequestAmino): _45.QueryGroupMembersRequest; + toAmino(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestAmino; + fromAminoMsg(object: _45.QueryGroupMembersRequestAminoMsg): _45.QueryGroupMembersRequest; + toAminoMsg(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupMembersRequestProtoMsg): _45.QueryGroupMembersRequest; + toProto(message: _45.QueryGroupMembersRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestProtoMsg; + }; + QueryGroupMembersResponse: { + typeUrl: string; + encode(message: _45.QueryGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupMembersResponse; + fromPartial(object: Partial<_45.QueryGroupMembersResponse>): _45.QueryGroupMembersResponse; + fromAmino(object: _45.QueryGroupMembersResponseAmino): _45.QueryGroupMembersResponse; + toAmino(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseAmino; + fromAminoMsg(object: _45.QueryGroupMembersResponseAminoMsg): _45.QueryGroupMembersResponse; + toAminoMsg(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupMembersResponseProtoMsg): _45.QueryGroupMembersResponse; + toProto(message: _45.QueryGroupMembersResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseProtoMsg; + }; + QueryGroupsByAdminRequest: { + typeUrl: string; + encode(message: _45.QueryGroupsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByAdminRequest; + fromPartial(object: Partial<_45.QueryGroupsByAdminRequest>): _45.QueryGroupsByAdminRequest; + fromAmino(object: _45.QueryGroupsByAdminRequestAmino): _45.QueryGroupsByAdminRequest; + toAmino(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestAmino; + fromAminoMsg(object: _45.QueryGroupsByAdminRequestAminoMsg): _45.QueryGroupsByAdminRequest; + toAminoMsg(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupsByAdminRequestProtoMsg): _45.QueryGroupsByAdminRequest; + toProto(message: _45.QueryGroupsByAdminRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestProtoMsg; + }; + QueryGroupsByAdminResponse: { + typeUrl: string; + encode(message: _45.QueryGroupsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByAdminResponse; + fromPartial(object: Partial<_45.QueryGroupsByAdminResponse>): _45.QueryGroupsByAdminResponse; + fromAmino(object: _45.QueryGroupsByAdminResponseAmino): _45.QueryGroupsByAdminResponse; + toAmino(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseAmino; + fromAminoMsg(object: _45.QueryGroupsByAdminResponseAminoMsg): _45.QueryGroupsByAdminResponse; + toAminoMsg(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupsByAdminResponseProtoMsg): _45.QueryGroupsByAdminResponse; + toProto(message: _45.QueryGroupsByAdminResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseProtoMsg; + }; + QueryGroupPoliciesByGroupRequest: { + typeUrl: string; + encode(message: _45.QueryGroupPoliciesByGroupRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByGroupRequest; + fromPartial(object: Partial<_45.QueryGroupPoliciesByGroupRequest>): _45.QueryGroupPoliciesByGroupRequest; + fromAmino(object: _45.QueryGroupPoliciesByGroupRequestAmino): _45.QueryGroupPoliciesByGroupRequest; + toAmino(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestAmino; + fromAminoMsg(object: _45.QueryGroupPoliciesByGroupRequestAminoMsg): _45.QueryGroupPoliciesByGroupRequest; + toAminoMsg(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupPoliciesByGroupRequestProtoMsg): _45.QueryGroupPoliciesByGroupRequest; + toProto(message: _45.QueryGroupPoliciesByGroupRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestProtoMsg; + }; + QueryGroupPoliciesByGroupResponse: { + typeUrl: string; + encode(message: _45.QueryGroupPoliciesByGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByGroupResponse; + fromPartial(object: Partial<_45.QueryGroupPoliciesByGroupResponse>): _45.QueryGroupPoliciesByGroupResponse; + fromAmino(object: _45.QueryGroupPoliciesByGroupResponseAmino): _45.QueryGroupPoliciesByGroupResponse; + toAmino(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseAmino; + fromAminoMsg(object: _45.QueryGroupPoliciesByGroupResponseAminoMsg): _45.QueryGroupPoliciesByGroupResponse; + toAminoMsg(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupPoliciesByGroupResponseProtoMsg): _45.QueryGroupPoliciesByGroupResponse; + toProto(message: _45.QueryGroupPoliciesByGroupResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseProtoMsg; + }; + QueryGroupPoliciesByAdminRequest: { + typeUrl: string; + encode(message: _45.QueryGroupPoliciesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByAdminRequest; + fromPartial(object: Partial<_45.QueryGroupPoliciesByAdminRequest>): _45.QueryGroupPoliciesByAdminRequest; + fromAmino(object: _45.QueryGroupPoliciesByAdminRequestAmino): _45.QueryGroupPoliciesByAdminRequest; + toAmino(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestAmino; + fromAminoMsg(object: _45.QueryGroupPoliciesByAdminRequestAminoMsg): _45.QueryGroupPoliciesByAdminRequest; + toAminoMsg(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupPoliciesByAdminRequestProtoMsg): _45.QueryGroupPoliciesByAdminRequest; + toProto(message: _45.QueryGroupPoliciesByAdminRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestProtoMsg; + }; + QueryGroupPoliciesByAdminResponse: { + typeUrl: string; + encode(message: _45.QueryGroupPoliciesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByAdminResponse; + fromPartial(object: Partial<_45.QueryGroupPoliciesByAdminResponse>): _45.QueryGroupPoliciesByAdminResponse; + fromAmino(object: _45.QueryGroupPoliciesByAdminResponseAmino): _45.QueryGroupPoliciesByAdminResponse; + toAmino(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseAmino; + fromAminoMsg(object: _45.QueryGroupPoliciesByAdminResponseAminoMsg): _45.QueryGroupPoliciesByAdminResponse; + toAminoMsg(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupPoliciesByAdminResponseProtoMsg): _45.QueryGroupPoliciesByAdminResponse; + toProto(message: _45.QueryGroupPoliciesByAdminResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseProtoMsg; + }; + QueryProposalRequest: { + typeUrl: string; + encode(message: _45.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalRequest; + fromPartial(object: Partial<_45.QueryProposalRequest>): _45.QueryProposalRequest; + fromAmino(object: _45.QueryProposalRequestAmino): _45.QueryProposalRequest; + toAmino(message: _45.QueryProposalRequest): _45.QueryProposalRequestAmino; + fromAminoMsg(object: _45.QueryProposalRequestAminoMsg): _45.QueryProposalRequest; + toAminoMsg(message: _45.QueryProposalRequest): _45.QueryProposalRequestAminoMsg; + fromProtoMsg(message: _45.QueryProposalRequestProtoMsg): _45.QueryProposalRequest; + toProto(message: _45.QueryProposalRequest): Uint8Array; + toProtoMsg(message: _45.QueryProposalRequest): _45.QueryProposalRequestProtoMsg; + }; + QueryProposalResponse: { + typeUrl: string; + encode(message: _45.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalResponse; + fromPartial(object: Partial<_45.QueryProposalResponse>): _45.QueryProposalResponse; + fromAmino(object: _45.QueryProposalResponseAmino): _45.QueryProposalResponse; + toAmino(message: _45.QueryProposalResponse): _45.QueryProposalResponseAmino; + fromAminoMsg(object: _45.QueryProposalResponseAminoMsg): _45.QueryProposalResponse; + toAminoMsg(message: _45.QueryProposalResponse): _45.QueryProposalResponseAminoMsg; + fromProtoMsg(message: _45.QueryProposalResponseProtoMsg): _45.QueryProposalResponse; + toProto(message: _45.QueryProposalResponse): Uint8Array; + toProtoMsg(message: _45.QueryProposalResponse): _45.QueryProposalResponseProtoMsg; + }; + QueryProposalsByGroupPolicyRequest: { + typeUrl: string; + encode(message: _45.QueryProposalsByGroupPolicyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalsByGroupPolicyRequest; + fromPartial(object: Partial<_45.QueryProposalsByGroupPolicyRequest>): _45.QueryProposalsByGroupPolicyRequest; + fromAmino(object: _45.QueryProposalsByGroupPolicyRequestAmino): _45.QueryProposalsByGroupPolicyRequest; + toAmino(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestAmino; + fromAminoMsg(object: _45.QueryProposalsByGroupPolicyRequestAminoMsg): _45.QueryProposalsByGroupPolicyRequest; + toAminoMsg(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestAminoMsg; + fromProtoMsg(message: _45.QueryProposalsByGroupPolicyRequestProtoMsg): _45.QueryProposalsByGroupPolicyRequest; + toProto(message: _45.QueryProposalsByGroupPolicyRequest): Uint8Array; + toProtoMsg(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestProtoMsg; + }; + QueryProposalsByGroupPolicyResponse: { + typeUrl: string; + encode(message: _45.QueryProposalsByGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalsByGroupPolicyResponse; + fromPartial(object: Partial<_45.QueryProposalsByGroupPolicyResponse>): _45.QueryProposalsByGroupPolicyResponse; + fromAmino(object: _45.QueryProposalsByGroupPolicyResponseAmino): _45.QueryProposalsByGroupPolicyResponse; + toAmino(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseAmino; + fromAminoMsg(object: _45.QueryProposalsByGroupPolicyResponseAminoMsg): _45.QueryProposalsByGroupPolicyResponse; + toAminoMsg(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseAminoMsg; + fromProtoMsg(message: _45.QueryProposalsByGroupPolicyResponseProtoMsg): _45.QueryProposalsByGroupPolicyResponse; + toProto(message: _45.QueryProposalsByGroupPolicyResponse): Uint8Array; + toProtoMsg(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseProtoMsg; + }; + QueryVoteByProposalVoterRequest: { + typeUrl: string; + encode(message: _45.QueryVoteByProposalVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVoteByProposalVoterRequest; + fromPartial(object: Partial<_45.QueryVoteByProposalVoterRequest>): _45.QueryVoteByProposalVoterRequest; + fromAmino(object: _45.QueryVoteByProposalVoterRequestAmino): _45.QueryVoteByProposalVoterRequest; + toAmino(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestAmino; + fromAminoMsg(object: _45.QueryVoteByProposalVoterRequestAminoMsg): _45.QueryVoteByProposalVoterRequest; + toAminoMsg(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestAminoMsg; + fromProtoMsg(message: _45.QueryVoteByProposalVoterRequestProtoMsg): _45.QueryVoteByProposalVoterRequest; + toProto(message: _45.QueryVoteByProposalVoterRequest): Uint8Array; + toProtoMsg(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestProtoMsg; + }; + QueryVoteByProposalVoterResponse: { + typeUrl: string; + encode(message: _45.QueryVoteByProposalVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVoteByProposalVoterResponse; + fromPartial(object: Partial<_45.QueryVoteByProposalVoterResponse>): _45.QueryVoteByProposalVoterResponse; + fromAmino(object: _45.QueryVoteByProposalVoterResponseAmino): _45.QueryVoteByProposalVoterResponse; + toAmino(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseAmino; + fromAminoMsg(object: _45.QueryVoteByProposalVoterResponseAminoMsg): _45.QueryVoteByProposalVoterResponse; + toAminoMsg(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseAminoMsg; + fromProtoMsg(message: _45.QueryVoteByProposalVoterResponseProtoMsg): _45.QueryVoteByProposalVoterResponse; + toProto(message: _45.QueryVoteByProposalVoterResponse): Uint8Array; + toProtoMsg(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseProtoMsg; + }; + QueryVotesByProposalRequest: { + typeUrl: string; + encode(message: _45.QueryVotesByProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByProposalRequest; + fromPartial(object: Partial<_45.QueryVotesByProposalRequest>): _45.QueryVotesByProposalRequest; + fromAmino(object: _45.QueryVotesByProposalRequestAmino): _45.QueryVotesByProposalRequest; + toAmino(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestAmino; + fromAminoMsg(object: _45.QueryVotesByProposalRequestAminoMsg): _45.QueryVotesByProposalRequest; + toAminoMsg(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestAminoMsg; + fromProtoMsg(message: _45.QueryVotesByProposalRequestProtoMsg): _45.QueryVotesByProposalRequest; + toProto(message: _45.QueryVotesByProposalRequest): Uint8Array; + toProtoMsg(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestProtoMsg; + }; + QueryVotesByProposalResponse: { + typeUrl: string; + encode(message: _45.QueryVotesByProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByProposalResponse; + fromPartial(object: Partial<_45.QueryVotesByProposalResponse>): _45.QueryVotesByProposalResponse; + fromAmino(object: _45.QueryVotesByProposalResponseAmino): _45.QueryVotesByProposalResponse; + toAmino(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseAmino; + fromAminoMsg(object: _45.QueryVotesByProposalResponseAminoMsg): _45.QueryVotesByProposalResponse; + toAminoMsg(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseAminoMsg; + fromProtoMsg(message: _45.QueryVotesByProposalResponseProtoMsg): _45.QueryVotesByProposalResponse; + toProto(message: _45.QueryVotesByProposalResponse): Uint8Array; + toProtoMsg(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseProtoMsg; + }; + QueryVotesByVoterRequest: { + typeUrl: string; + encode(message: _45.QueryVotesByVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByVoterRequest; + fromPartial(object: Partial<_45.QueryVotesByVoterRequest>): _45.QueryVotesByVoterRequest; + fromAmino(object: _45.QueryVotesByVoterRequestAmino): _45.QueryVotesByVoterRequest; + toAmino(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestAmino; + fromAminoMsg(object: _45.QueryVotesByVoterRequestAminoMsg): _45.QueryVotesByVoterRequest; + toAminoMsg(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestAminoMsg; + fromProtoMsg(message: _45.QueryVotesByVoterRequestProtoMsg): _45.QueryVotesByVoterRequest; + toProto(message: _45.QueryVotesByVoterRequest): Uint8Array; + toProtoMsg(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestProtoMsg; + }; + QueryVotesByVoterResponse: { + typeUrl: string; + encode(message: _45.QueryVotesByVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByVoterResponse; + fromPartial(object: Partial<_45.QueryVotesByVoterResponse>): _45.QueryVotesByVoterResponse; + fromAmino(object: _45.QueryVotesByVoterResponseAmino): _45.QueryVotesByVoterResponse; + toAmino(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseAmino; + fromAminoMsg(object: _45.QueryVotesByVoterResponseAminoMsg): _45.QueryVotesByVoterResponse; + toAminoMsg(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseAminoMsg; + fromProtoMsg(message: _45.QueryVotesByVoterResponseProtoMsg): _45.QueryVotesByVoterResponse; + toProto(message: _45.QueryVotesByVoterResponse): Uint8Array; + toProtoMsg(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseProtoMsg; + }; + QueryGroupsByMemberRequest: { + typeUrl: string; + encode(message: _45.QueryGroupsByMemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByMemberRequest; + fromPartial(object: Partial<_45.QueryGroupsByMemberRequest>): _45.QueryGroupsByMemberRequest; + fromAmino(object: _45.QueryGroupsByMemberRequestAmino): _45.QueryGroupsByMemberRequest; + toAmino(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestAmino; + fromAminoMsg(object: _45.QueryGroupsByMemberRequestAminoMsg): _45.QueryGroupsByMemberRequest; + toAminoMsg(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestAminoMsg; + fromProtoMsg(message: _45.QueryGroupsByMemberRequestProtoMsg): _45.QueryGroupsByMemberRequest; + toProto(message: _45.QueryGroupsByMemberRequest): Uint8Array; + toProtoMsg(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestProtoMsg; + }; + QueryGroupsByMemberResponse: { + typeUrl: string; + encode(message: _45.QueryGroupsByMemberResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByMemberResponse; + fromPartial(object: Partial<_45.QueryGroupsByMemberResponse>): _45.QueryGroupsByMemberResponse; + fromAmino(object: _45.QueryGroupsByMemberResponseAmino): _45.QueryGroupsByMemberResponse; + toAmino(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseAmino; + fromAminoMsg(object: _45.QueryGroupsByMemberResponseAminoMsg): _45.QueryGroupsByMemberResponse; + toAminoMsg(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseAminoMsg; + fromProtoMsg(message: _45.QueryGroupsByMemberResponseProtoMsg): _45.QueryGroupsByMemberResponse; + toProto(message: _45.QueryGroupsByMemberResponse): Uint8Array; + toProtoMsg(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseProtoMsg; + }; + QueryTallyResultRequest: { + typeUrl: string; + encode(message: _45.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryTallyResultRequest; + fromPartial(object: Partial<_45.QueryTallyResultRequest>): _45.QueryTallyResultRequest; + fromAmino(object: _45.QueryTallyResultRequestAmino): _45.QueryTallyResultRequest; + toAmino(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestAmino; + fromAminoMsg(object: _45.QueryTallyResultRequestAminoMsg): _45.QueryTallyResultRequest; + toAminoMsg(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: _45.QueryTallyResultRequestProtoMsg): _45.QueryTallyResultRequest; + toProto(message: _45.QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestProtoMsg; + }; + QueryTallyResultResponse: { + typeUrl: string; + encode(message: _45.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryTallyResultResponse; + fromPartial(object: Partial<_45.QueryTallyResultResponse>): _45.QueryTallyResultResponse; + fromAmino(object: _45.QueryTallyResultResponseAmino): _45.QueryTallyResultResponse; + toAmino(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseAmino; + fromAminoMsg(object: _45.QueryTallyResultResponseAminoMsg): _45.QueryTallyResultResponse; + toAminoMsg(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: _45.QueryTallyResultResponseProtoMsg): _45.QueryTallyResultResponse; + toProto(message: _45.QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _44.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _44.GenesisState; + fromPartial(object: Partial<_44.GenesisState>): _44.GenesisState; + fromAmino(object: _44.GenesisStateAmino): _44.GenesisState; + toAmino(message: _44.GenesisState): _44.GenesisStateAmino; + fromAminoMsg(object: _44.GenesisStateAminoMsg): _44.GenesisState; + toAminoMsg(message: _44.GenesisState): _44.GenesisStateAminoMsg; + fromProtoMsg(message: _44.GenesisStateProtoMsg): _44.GenesisState; + toProto(message: _44.GenesisState): Uint8Array; + toProtoMsg(message: _44.GenesisState): _44.GenesisStateProtoMsg; + }; + EventCreateGroup: { + typeUrl: string; + encode(message: _43.EventCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventCreateGroup; + fromPartial(object: Partial<_43.EventCreateGroup>): _43.EventCreateGroup; + fromAmino(object: _43.EventCreateGroupAmino): _43.EventCreateGroup; + toAmino(message: _43.EventCreateGroup): _43.EventCreateGroupAmino; + fromAminoMsg(object: _43.EventCreateGroupAminoMsg): _43.EventCreateGroup; + toAminoMsg(message: _43.EventCreateGroup): _43.EventCreateGroupAminoMsg; + fromProtoMsg(message: _43.EventCreateGroupProtoMsg): _43.EventCreateGroup; + toProto(message: _43.EventCreateGroup): Uint8Array; + toProtoMsg(message: _43.EventCreateGroup): _43.EventCreateGroupProtoMsg; + }; + EventUpdateGroup: { + typeUrl: string; + encode(message: _43.EventUpdateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventUpdateGroup; + fromPartial(object: Partial<_43.EventUpdateGroup>): _43.EventUpdateGroup; + fromAmino(object: _43.EventUpdateGroupAmino): _43.EventUpdateGroup; + toAmino(message: _43.EventUpdateGroup): _43.EventUpdateGroupAmino; + fromAminoMsg(object: _43.EventUpdateGroupAminoMsg): _43.EventUpdateGroup; + toAminoMsg(message: _43.EventUpdateGroup): _43.EventUpdateGroupAminoMsg; + fromProtoMsg(message: _43.EventUpdateGroupProtoMsg): _43.EventUpdateGroup; + toProto(message: _43.EventUpdateGroup): Uint8Array; + toProtoMsg(message: _43.EventUpdateGroup): _43.EventUpdateGroupProtoMsg; + }; + EventCreateGroupPolicy: { + typeUrl: string; + encode(message: _43.EventCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventCreateGroupPolicy; + fromPartial(object: Partial<_43.EventCreateGroupPolicy>): _43.EventCreateGroupPolicy; + fromAmino(object: _43.EventCreateGroupPolicyAmino): _43.EventCreateGroupPolicy; + toAmino(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyAmino; + fromAminoMsg(object: _43.EventCreateGroupPolicyAminoMsg): _43.EventCreateGroupPolicy; + toAminoMsg(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyAminoMsg; + fromProtoMsg(message: _43.EventCreateGroupPolicyProtoMsg): _43.EventCreateGroupPolicy; + toProto(message: _43.EventCreateGroupPolicy): Uint8Array; + toProtoMsg(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyProtoMsg; + }; + EventUpdateGroupPolicy: { + typeUrl: string; + encode(message: _43.EventUpdateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventUpdateGroupPolicy; + fromPartial(object: Partial<_43.EventUpdateGroupPolicy>): _43.EventUpdateGroupPolicy; + fromAmino(object: _43.EventUpdateGroupPolicyAmino): _43.EventUpdateGroupPolicy; + toAmino(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyAmino; + fromAminoMsg(object: _43.EventUpdateGroupPolicyAminoMsg): _43.EventUpdateGroupPolicy; + toAminoMsg(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyAminoMsg; + fromProtoMsg(message: _43.EventUpdateGroupPolicyProtoMsg): _43.EventUpdateGroupPolicy; + toProto(message: _43.EventUpdateGroupPolicy): Uint8Array; + toProtoMsg(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyProtoMsg; + }; + EventSubmitProposal: { + typeUrl: string; + encode(message: _43.EventSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventSubmitProposal; + fromPartial(object: Partial<_43.EventSubmitProposal>): _43.EventSubmitProposal; + fromAmino(object: _43.EventSubmitProposalAmino): _43.EventSubmitProposal; + toAmino(message: _43.EventSubmitProposal): _43.EventSubmitProposalAmino; + fromAminoMsg(object: _43.EventSubmitProposalAminoMsg): _43.EventSubmitProposal; + toAminoMsg(message: _43.EventSubmitProposal): _43.EventSubmitProposalAminoMsg; + fromProtoMsg(message: _43.EventSubmitProposalProtoMsg): _43.EventSubmitProposal; + toProto(message: _43.EventSubmitProposal): Uint8Array; + toProtoMsg(message: _43.EventSubmitProposal): _43.EventSubmitProposalProtoMsg; + }; + EventWithdrawProposal: { + typeUrl: string; + encode(message: _43.EventWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventWithdrawProposal; + fromPartial(object: Partial<_43.EventWithdrawProposal>): _43.EventWithdrawProposal; + fromAmino(object: _43.EventWithdrawProposalAmino): _43.EventWithdrawProposal; + toAmino(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalAmino; + fromAminoMsg(object: _43.EventWithdrawProposalAminoMsg): _43.EventWithdrawProposal; + toAminoMsg(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalAminoMsg; + fromProtoMsg(message: _43.EventWithdrawProposalProtoMsg): _43.EventWithdrawProposal; + toProto(message: _43.EventWithdrawProposal): Uint8Array; + toProtoMsg(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalProtoMsg; + }; + EventVote: { + typeUrl: string; + encode(message: _43.EventVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventVote; + fromPartial(object: Partial<_43.EventVote>): _43.EventVote; + fromAmino(object: _43.EventVoteAmino): _43.EventVote; + toAmino(message: _43.EventVote): _43.EventVoteAmino; + fromAminoMsg(object: _43.EventVoteAminoMsg): _43.EventVote; + toAminoMsg(message: _43.EventVote): _43.EventVoteAminoMsg; + fromProtoMsg(message: _43.EventVoteProtoMsg): _43.EventVote; + toProto(message: _43.EventVote): Uint8Array; + toProtoMsg(message: _43.EventVote): _43.EventVoteProtoMsg; + }; + EventExec: { + typeUrl: string; + encode(message: _43.EventExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventExec; + fromPartial(object: Partial<_43.EventExec>): _43.EventExec; + fromAmino(object: _43.EventExecAmino): _43.EventExec; + toAmino(message: _43.EventExec): _43.EventExecAmino; + fromAminoMsg(object: _43.EventExecAminoMsg): _43.EventExec; + toAminoMsg(message: _43.EventExec): _43.EventExecAminoMsg; + fromProtoMsg(message: _43.EventExecProtoMsg): _43.EventExec; + toProto(message: _43.EventExec): Uint8Array; + toProtoMsg(message: _43.EventExec): _43.EventExecProtoMsg; + }; + EventLeaveGroup: { + typeUrl: string; + encode(message: _43.EventLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventLeaveGroup; + fromPartial(object: Partial<_43.EventLeaveGroup>): _43.EventLeaveGroup; + fromAmino(object: _43.EventLeaveGroupAmino): _43.EventLeaveGroup; + toAmino(message: _43.EventLeaveGroup): _43.EventLeaveGroupAmino; + fromAminoMsg(object: _43.EventLeaveGroupAminoMsg): _43.EventLeaveGroup; + toAminoMsg(message: _43.EventLeaveGroup): _43.EventLeaveGroupAminoMsg; + fromProtoMsg(message: _43.EventLeaveGroupProtoMsg): _43.EventLeaveGroup; + toProto(message: _43.EventLeaveGroup): Uint8Array; + toProtoMsg(message: _43.EventLeaveGroup): _43.EventLeaveGroupProtoMsg; + }; + }; + } + namespace mint { + const v1beta1: { + QueryClientImpl: typeof _162.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _50.QueryParamsRequest): Promise<_50.QueryParamsResponse>; + inflation(request?: _50.QueryInflationRequest): Promise<_50.QueryInflationResponse>; + annualProvisions(request?: _50.QueryAnnualProvisionsRequest): Promise<_50.QueryAnnualProvisionsResponse>; + }; + LCDQueryClient: typeof _148.LCDQueryClient; + QueryParamsRequest: { + typeUrl: string; + encode(_: _50.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryParamsRequest; + fromPartial(_: Partial<_50.QueryParamsRequest>): _50.QueryParamsRequest; + fromAmino(_: _50.QueryParamsRequestAmino): _50.QueryParamsRequest; + toAmino(_: _50.QueryParamsRequest): _50.QueryParamsRequestAmino; + fromAminoMsg(object: _50.QueryParamsRequestAminoMsg): _50.QueryParamsRequest; + toAminoMsg(message: _50.QueryParamsRequest): _50.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _50.QueryParamsRequestProtoMsg): _50.QueryParamsRequest; + toProto(message: _50.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _50.QueryParamsRequest): _50.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _50.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryParamsResponse; + fromPartial(object: Partial<_50.QueryParamsResponse>): _50.QueryParamsResponse; + fromAmino(object: _50.QueryParamsResponseAmino): _50.QueryParamsResponse; + toAmino(message: _50.QueryParamsResponse): _50.QueryParamsResponseAmino; + fromAminoMsg(object: _50.QueryParamsResponseAminoMsg): _50.QueryParamsResponse; + toAminoMsg(message: _50.QueryParamsResponse): _50.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _50.QueryParamsResponseProtoMsg): _50.QueryParamsResponse; + toProto(message: _50.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _50.QueryParamsResponse): _50.QueryParamsResponseProtoMsg; + }; + QueryInflationRequest: { + typeUrl: string; + encode(_: _50.QueryInflationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryInflationRequest; + fromPartial(_: Partial<_50.QueryInflationRequest>): _50.QueryInflationRequest; + fromAmino(_: _50.QueryInflationRequestAmino): _50.QueryInflationRequest; + toAmino(_: _50.QueryInflationRequest): _50.QueryInflationRequestAmino; + fromAminoMsg(object: _50.QueryInflationRequestAminoMsg): _50.QueryInflationRequest; + toAminoMsg(message: _50.QueryInflationRequest): _50.QueryInflationRequestAminoMsg; + fromProtoMsg(message: _50.QueryInflationRequestProtoMsg): _50.QueryInflationRequest; + toProto(message: _50.QueryInflationRequest): Uint8Array; + toProtoMsg(message: _50.QueryInflationRequest): _50.QueryInflationRequestProtoMsg; + }; + QueryInflationResponse: { + typeUrl: string; + encode(message: _50.QueryInflationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryInflationResponse; + fromPartial(object: Partial<_50.QueryInflationResponse>): _50.QueryInflationResponse; + fromAmino(object: _50.QueryInflationResponseAmino): _50.QueryInflationResponse; + toAmino(message: _50.QueryInflationResponse): _50.QueryInflationResponseAmino; + fromAminoMsg(object: _50.QueryInflationResponseAminoMsg): _50.QueryInflationResponse; + toAminoMsg(message: _50.QueryInflationResponse): _50.QueryInflationResponseAminoMsg; + fromProtoMsg(message: _50.QueryInflationResponseProtoMsg): _50.QueryInflationResponse; + toProto(message: _50.QueryInflationResponse): Uint8Array; + toProtoMsg(message: _50.QueryInflationResponse): _50.QueryInflationResponseProtoMsg; + }; + QueryAnnualProvisionsRequest: { + typeUrl: string; + encode(_: _50.QueryAnnualProvisionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryAnnualProvisionsRequest; + fromPartial(_: Partial<_50.QueryAnnualProvisionsRequest>): _50.QueryAnnualProvisionsRequest; + fromAmino(_: _50.QueryAnnualProvisionsRequestAmino): _50.QueryAnnualProvisionsRequest; + toAmino(_: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestAmino; + fromAminoMsg(object: _50.QueryAnnualProvisionsRequestAminoMsg): _50.QueryAnnualProvisionsRequest; + toAminoMsg(message: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestAminoMsg; + fromProtoMsg(message: _50.QueryAnnualProvisionsRequestProtoMsg): _50.QueryAnnualProvisionsRequest; + toProto(message: _50.QueryAnnualProvisionsRequest): Uint8Array; + toProtoMsg(message: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestProtoMsg; + }; + QueryAnnualProvisionsResponse: { + typeUrl: string; + encode(message: _50.QueryAnnualProvisionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryAnnualProvisionsResponse; + fromPartial(object: Partial<_50.QueryAnnualProvisionsResponse>): _50.QueryAnnualProvisionsResponse; + fromAmino(object: _50.QueryAnnualProvisionsResponseAmino): _50.QueryAnnualProvisionsResponse; + toAmino(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseAmino; + fromAminoMsg(object: _50.QueryAnnualProvisionsResponseAminoMsg): _50.QueryAnnualProvisionsResponse; + toAminoMsg(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseAminoMsg; + fromProtoMsg(message: _50.QueryAnnualProvisionsResponseProtoMsg): _50.QueryAnnualProvisionsResponse; + toProto(message: _50.QueryAnnualProvisionsResponse): Uint8Array; + toProtoMsg(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseProtoMsg; + }; + Minter: { + typeUrl: string; + encode(message: _49.Minter, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _49.Minter; + fromPartial(object: Partial<_49.Minter>): _49.Minter; + fromAmino(object: _49.MinterAmino): _49.Minter; + toAmino(message: _49.Minter): _49.MinterAmino; + fromAminoMsg(object: _49.MinterAminoMsg): _49.Minter; + toAminoMsg(message: _49.Minter): _49.MinterAminoMsg; + fromProtoMsg(message: _49.MinterProtoMsg): _49.Minter; + toProto(message: _49.Minter): Uint8Array; + toProtoMsg(message: _49.Minter): _49.MinterProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _49.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _49.Params; + fromPartial(object: Partial<_49.Params>): _49.Params; + fromAmino(object: _49.ParamsAmino): _49.Params; + toAmino(message: _49.Params): _49.ParamsAmino; + fromAminoMsg(object: _49.ParamsAminoMsg): _49.Params; + toAminoMsg(message: _49.Params): _49.ParamsAminoMsg; + fromProtoMsg(message: _49.ParamsProtoMsg): _49.Params; + toProto(message: _49.Params): Uint8Array; + toProtoMsg(message: _49.Params): _49.ParamsProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _48.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _48.GenesisState; + fromPartial(object: Partial<_48.GenesisState>): _48.GenesisState; + fromAmino(object: _48.GenesisStateAmino): _48.GenesisState; + toAmino(message: _48.GenesisState): _48.GenesisStateAmino; + fromAminoMsg(object: _48.GenesisStateAminoMsg): _48.GenesisState; + toAminoMsg(message: _48.GenesisState): _48.GenesisStateAminoMsg; + fromProtoMsg(message: _48.GenesisStateProtoMsg): _48.GenesisState; + toProto(message: _48.GenesisState): Uint8Array; + toProtoMsg(message: _48.GenesisState): _48.GenesisStateProtoMsg; + }; + }; + } + namespace orm { + namespace module { + const v1alpha1: { + Module: { + typeUrl: string; + encode(_: _51.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _51.Module; + fromPartial(_: Partial<_51.Module>): _51.Module; + fromAmino(_: _51.ModuleAmino): _51.Module; + toAmino(_: _51.Module): _51.ModuleAmino; + fromAminoMsg(object: _51.ModuleAminoMsg): _51.Module; + toAminoMsg(message: _51.Module): _51.ModuleAminoMsg; + fromProtoMsg(message: _51.ModuleProtoMsg): _51.Module; + toProto(message: _51.Module): Uint8Array; + toProtoMsg(message: _51.Module): _51.ModuleProtoMsg; + }; + }; + } + } + namespace params { + const v1beta1: { + QueryClientImpl: typeof _163.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request: _53.QueryParamsRequest): Promise<_53.QueryParamsResponse>; + subspaces(request?: _53.QuerySubspacesRequest): Promise<_53.QuerySubspacesResponse>; + }; + LCDQueryClient: typeof _149.LCDQueryClient; + QueryParamsRequest: { + typeUrl: string; + encode(message: _53.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QueryParamsRequest; + fromPartial(object: Partial<_53.QueryParamsRequest>): _53.QueryParamsRequest; + fromAmino(object: _53.QueryParamsRequestAmino): _53.QueryParamsRequest; + toAmino(message: _53.QueryParamsRequest): _53.QueryParamsRequestAmino; + fromAminoMsg(object: _53.QueryParamsRequestAminoMsg): _53.QueryParamsRequest; + toAminoMsg(message: _53.QueryParamsRequest): _53.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _53.QueryParamsRequestProtoMsg): _53.QueryParamsRequest; + toProto(message: _53.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _53.QueryParamsRequest): _53.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _53.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QueryParamsResponse; + fromPartial(object: Partial<_53.QueryParamsResponse>): _53.QueryParamsResponse; + fromAmino(object: _53.QueryParamsResponseAmino): _53.QueryParamsResponse; + toAmino(message: _53.QueryParamsResponse): _53.QueryParamsResponseAmino; + fromAminoMsg(object: _53.QueryParamsResponseAminoMsg): _53.QueryParamsResponse; + toAminoMsg(message: _53.QueryParamsResponse): _53.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _53.QueryParamsResponseProtoMsg): _53.QueryParamsResponse; + toProto(message: _53.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _53.QueryParamsResponse): _53.QueryParamsResponseProtoMsg; + }; + QuerySubspacesRequest: { + typeUrl: string; + encode(_: _53.QuerySubspacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QuerySubspacesRequest; + fromPartial(_: Partial<_53.QuerySubspacesRequest>): _53.QuerySubspacesRequest; + fromAmino(_: _53.QuerySubspacesRequestAmino): _53.QuerySubspacesRequest; + toAmino(_: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestAmino; + fromAminoMsg(object: _53.QuerySubspacesRequestAminoMsg): _53.QuerySubspacesRequest; + toAminoMsg(message: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestAminoMsg; + fromProtoMsg(message: _53.QuerySubspacesRequestProtoMsg): _53.QuerySubspacesRequest; + toProto(message: _53.QuerySubspacesRequest): Uint8Array; + toProtoMsg(message: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestProtoMsg; + }; + QuerySubspacesResponse: { + typeUrl: string; + encode(message: _53.QuerySubspacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QuerySubspacesResponse; + fromPartial(object: Partial<_53.QuerySubspacesResponse>): _53.QuerySubspacesResponse; + fromAmino(object: _53.QuerySubspacesResponseAmino): _53.QuerySubspacesResponse; + toAmino(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseAmino; + fromAminoMsg(object: _53.QuerySubspacesResponseAminoMsg): _53.QuerySubspacesResponse; + toAminoMsg(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseAminoMsg; + fromProtoMsg(message: _53.QuerySubspacesResponseProtoMsg): _53.QuerySubspacesResponse; + toProto(message: _53.QuerySubspacesResponse): Uint8Array; + toProtoMsg(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseProtoMsg; + }; + Subspace: { + typeUrl: string; + encode(message: _53.Subspace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.Subspace; + fromPartial(object: Partial<_53.Subspace>): _53.Subspace; + fromAmino(object: _53.SubspaceAmino): _53.Subspace; + toAmino(message: _53.Subspace): _53.SubspaceAmino; + fromAminoMsg(object: _53.SubspaceAminoMsg): _53.Subspace; + toAminoMsg(message: _53.Subspace): _53.SubspaceAminoMsg; + fromProtoMsg(message: _53.SubspaceProtoMsg): _53.Subspace; + toProto(message: _53.Subspace): Uint8Array; + toProtoMsg(message: _53.Subspace): _53.SubspaceProtoMsg; + }; + ParameterChangeProposal: { + typeUrl: string; + encode(message: _52.ParameterChangeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _52.ParameterChangeProposal; + fromPartial(object: Partial<_52.ParameterChangeProposal>): _52.ParameterChangeProposal; + fromAmino(object: _52.ParameterChangeProposalAmino): _52.ParameterChangeProposal; + toAmino(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalAmino; + fromAminoMsg(object: _52.ParameterChangeProposalAminoMsg): _52.ParameterChangeProposal; + toAminoMsg(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalAminoMsg; + fromProtoMsg(message: _52.ParameterChangeProposalProtoMsg): _52.ParameterChangeProposal; + toProto(message: _52.ParameterChangeProposal): Uint8Array; + toProtoMsg(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalProtoMsg; + }; + ParamChange: { + typeUrl: string; + encode(message: _52.ParamChange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _52.ParamChange; + fromPartial(object: Partial<_52.ParamChange>): _52.ParamChange; + fromAmino(object: _52.ParamChangeAmino): _52.ParamChange; + toAmino(message: _52.ParamChange): _52.ParamChangeAmino; + fromAminoMsg(object: _52.ParamChangeAminoMsg): _52.ParamChange; + toAminoMsg(message: _52.ParamChange): _52.ParamChangeAminoMsg; + fromProtoMsg(message: _52.ParamChangeProtoMsg): _52.ParamChange; + toProto(message: _52.ParamChange): Uint8Array; + toProtoMsg(message: _52.ParamChange): _52.ParamChangeProtoMsg; + }; + }; + } + namespace staking { + const v1beta1: { + MsgClientImpl: typeof _174.MsgClientImpl; + QueryClientImpl: typeof _164.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + validators(request: _56.QueryValidatorsRequest): Promise<_56.QueryValidatorsResponse>; + validator(request: _56.QueryValidatorRequest): Promise<_56.QueryValidatorResponse>; + validatorDelegations(request: _56.QueryValidatorDelegationsRequest): Promise<_56.QueryValidatorDelegationsResponse>; + validatorUnbondingDelegations(request: _56.QueryValidatorUnbondingDelegationsRequest): Promise<_56.QueryValidatorUnbondingDelegationsResponse>; + delegation(request: _56.QueryDelegationRequest): Promise<_56.QueryDelegationResponse>; + unbondingDelegation(request: _56.QueryUnbondingDelegationRequest): Promise<_56.QueryUnbondingDelegationResponse>; + delegatorDelegations(request: _56.QueryDelegatorDelegationsRequest): Promise<_56.QueryDelegatorDelegationsResponse>; + delegatorUnbondingDelegations(request: _56.QueryDelegatorUnbondingDelegationsRequest): Promise<_56.QueryDelegatorUnbondingDelegationsResponse>; + redelegations(request: _56.QueryRedelegationsRequest): Promise<_56.QueryRedelegationsResponse>; + delegatorValidators(request: _56.QueryDelegatorValidatorsRequest): Promise<_56.QueryDelegatorValidatorsResponse>; + delegatorValidator(request: _56.QueryDelegatorValidatorRequest): Promise<_56.QueryDelegatorValidatorResponse>; + historicalInfo(request: _56.QueryHistoricalInfoRequest): Promise<_56.QueryHistoricalInfoResponse>; + pool(request?: _56.QueryPoolRequest): Promise<_56.QueryPoolResponse>; + params(request?: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; + }; + LCDQueryClient: typeof _150.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createValidator(value: _58.MsgCreateValidator): { + typeUrl: string; + value: Uint8Array; + }; + editValidator(value: _58.MsgEditValidator): { + typeUrl: string; + value: Uint8Array; + }; + delegate(value: _58.MsgDelegate): { + typeUrl: string; + value: Uint8Array; + }; + beginRedelegate(value: _58.MsgBeginRedelegate): { + typeUrl: string; + value: Uint8Array; + }; + undelegate(value: _58.MsgUndelegate): { + typeUrl: string; + value: Uint8Array; + }; + cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createValidator(value: _58.MsgCreateValidator): { + typeUrl: string; + value: _58.MsgCreateValidator; + }; + editValidator(value: _58.MsgEditValidator): { + typeUrl: string; + value: _58.MsgEditValidator; + }; + delegate(value: _58.MsgDelegate): { + typeUrl: string; + value: _58.MsgDelegate; + }; + beginRedelegate(value: _58.MsgBeginRedelegate): { + typeUrl: string; + value: _58.MsgBeginRedelegate; + }; + undelegate(value: _58.MsgUndelegate): { + typeUrl: string; + value: _58.MsgUndelegate; + }; + cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { + typeUrl: string; + value: _58.MsgCancelUnbondingDelegation; + }; + }; + fromPartial: { + createValidator(value: _58.MsgCreateValidator): { + typeUrl: string; + value: _58.MsgCreateValidator; + }; + editValidator(value: _58.MsgEditValidator): { + typeUrl: string; + value: _58.MsgEditValidator; + }; + delegate(value: _58.MsgDelegate): { + typeUrl: string; + value: _58.MsgDelegate; + }; + beginRedelegate(value: _58.MsgBeginRedelegate): { + typeUrl: string; + value: _58.MsgBeginRedelegate; + }; + undelegate(value: _58.MsgUndelegate): { + typeUrl: string; + value: _58.MsgUndelegate; + }; + cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { + typeUrl: string; + value: _58.MsgCancelUnbondingDelegation; + }; + }; + }; + AminoConverter: { + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: string; + toAmino: (message: _58.MsgCreateValidator) => _58.MsgCreateValidatorAmino; + fromAmino: (object: _58.MsgCreateValidatorAmino) => _58.MsgCreateValidator; + }; + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: string; + toAmino: (message: _58.MsgEditValidator) => _58.MsgEditValidatorAmino; + fromAmino: (object: _58.MsgEditValidatorAmino) => _58.MsgEditValidator; + }; + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: string; + toAmino: (message: _58.MsgDelegate) => _58.MsgDelegateAmino; + fromAmino: (object: _58.MsgDelegateAmino) => _58.MsgDelegate; + }; + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: string; + toAmino: (message: _58.MsgBeginRedelegate) => _58.MsgBeginRedelegateAmino; + fromAmino: (object: _58.MsgBeginRedelegateAmino) => _58.MsgBeginRedelegate; + }; + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: string; + toAmino: (message: _58.MsgUndelegate) => _58.MsgUndelegateAmino; + fromAmino: (object: _58.MsgUndelegateAmino) => _58.MsgUndelegate; + }; + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: string; + toAmino: (message: _58.MsgCancelUnbondingDelegation) => _58.MsgCancelUnbondingDelegationAmino; + fromAmino: (object: _58.MsgCancelUnbondingDelegationAmino) => _58.MsgCancelUnbondingDelegation; + }; + }; + MsgCreateValidator: { + typeUrl: string; + encode(message: _58.MsgCreateValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCreateValidator; + fromPartial(object: Partial<_58.MsgCreateValidator>): _58.MsgCreateValidator; + fromAmino(object: _58.MsgCreateValidatorAmino): _58.MsgCreateValidator; + toAmino(message: _58.MsgCreateValidator): _58.MsgCreateValidatorAmino; + fromAminoMsg(object: _58.MsgCreateValidatorAminoMsg): _58.MsgCreateValidator; + toAminoMsg(message: _58.MsgCreateValidator): _58.MsgCreateValidatorAminoMsg; + fromProtoMsg(message: _58.MsgCreateValidatorProtoMsg): _58.MsgCreateValidator; + toProto(message: _58.MsgCreateValidator): Uint8Array; + toProtoMsg(message: _58.MsgCreateValidator): _58.MsgCreateValidatorProtoMsg; + }; + MsgCreateValidatorResponse: { + typeUrl: string; + encode(_: _58.MsgCreateValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCreateValidatorResponse; + fromPartial(_: Partial<_58.MsgCreateValidatorResponse>): _58.MsgCreateValidatorResponse; + fromAmino(_: _58.MsgCreateValidatorResponseAmino): _58.MsgCreateValidatorResponse; + toAmino(_: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseAmino; + fromAminoMsg(object: _58.MsgCreateValidatorResponseAminoMsg): _58.MsgCreateValidatorResponse; + toAminoMsg(message: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseAminoMsg; + fromProtoMsg(message: _58.MsgCreateValidatorResponseProtoMsg): _58.MsgCreateValidatorResponse; + toProto(message: _58.MsgCreateValidatorResponse): Uint8Array; + toProtoMsg(message: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseProtoMsg; + }; + MsgEditValidator: { + typeUrl: string; + encode(message: _58.MsgEditValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgEditValidator; + fromPartial(object: Partial<_58.MsgEditValidator>): _58.MsgEditValidator; + fromAmino(object: _58.MsgEditValidatorAmino): _58.MsgEditValidator; + toAmino(message: _58.MsgEditValidator): _58.MsgEditValidatorAmino; + fromAminoMsg(object: _58.MsgEditValidatorAminoMsg): _58.MsgEditValidator; + toAminoMsg(message: _58.MsgEditValidator): _58.MsgEditValidatorAminoMsg; + fromProtoMsg(message: _58.MsgEditValidatorProtoMsg): _58.MsgEditValidator; + toProto(message: _58.MsgEditValidator): Uint8Array; + toProtoMsg(message: _58.MsgEditValidator): _58.MsgEditValidatorProtoMsg; + }; + MsgEditValidatorResponse: { + typeUrl: string; + encode(_: _58.MsgEditValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgEditValidatorResponse; + fromPartial(_: Partial<_58.MsgEditValidatorResponse>): _58.MsgEditValidatorResponse; + fromAmino(_: _58.MsgEditValidatorResponseAmino): _58.MsgEditValidatorResponse; + toAmino(_: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseAmino; + fromAminoMsg(object: _58.MsgEditValidatorResponseAminoMsg): _58.MsgEditValidatorResponse; + toAminoMsg(message: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseAminoMsg; + fromProtoMsg(message: _58.MsgEditValidatorResponseProtoMsg): _58.MsgEditValidatorResponse; + toProto(message: _58.MsgEditValidatorResponse): Uint8Array; + toProtoMsg(message: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseProtoMsg; + }; + MsgDelegate: { + typeUrl: string; + encode(message: _58.MsgDelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgDelegate; + fromPartial(object: Partial<_58.MsgDelegate>): _58.MsgDelegate; + fromAmino(object: _58.MsgDelegateAmino): _58.MsgDelegate; + toAmino(message: _58.MsgDelegate): _58.MsgDelegateAmino; + fromAminoMsg(object: _58.MsgDelegateAminoMsg): _58.MsgDelegate; + toAminoMsg(message: _58.MsgDelegate): _58.MsgDelegateAminoMsg; + fromProtoMsg(message: _58.MsgDelegateProtoMsg): _58.MsgDelegate; + toProto(message: _58.MsgDelegate): Uint8Array; + toProtoMsg(message: _58.MsgDelegate): _58.MsgDelegateProtoMsg; + }; + MsgDelegateResponse: { + typeUrl: string; + encode(_: _58.MsgDelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgDelegateResponse; + fromPartial(_: Partial<_58.MsgDelegateResponse>): _58.MsgDelegateResponse; + fromAmino(_: _58.MsgDelegateResponseAmino): _58.MsgDelegateResponse; + toAmino(_: _58.MsgDelegateResponse): _58.MsgDelegateResponseAmino; + fromAminoMsg(object: _58.MsgDelegateResponseAminoMsg): _58.MsgDelegateResponse; + toAminoMsg(message: _58.MsgDelegateResponse): _58.MsgDelegateResponseAminoMsg; + fromProtoMsg(message: _58.MsgDelegateResponseProtoMsg): _58.MsgDelegateResponse; + toProto(message: _58.MsgDelegateResponse): Uint8Array; + toProtoMsg(message: _58.MsgDelegateResponse): _58.MsgDelegateResponseProtoMsg; + }; + MsgBeginRedelegate: { + typeUrl: string; + encode(message: _58.MsgBeginRedelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgBeginRedelegate; + fromPartial(object: Partial<_58.MsgBeginRedelegate>): _58.MsgBeginRedelegate; + fromAmino(object: _58.MsgBeginRedelegateAmino): _58.MsgBeginRedelegate; + toAmino(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateAmino; + fromAminoMsg(object: _58.MsgBeginRedelegateAminoMsg): _58.MsgBeginRedelegate; + toAminoMsg(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateAminoMsg; + fromProtoMsg(message: _58.MsgBeginRedelegateProtoMsg): _58.MsgBeginRedelegate; + toProto(message: _58.MsgBeginRedelegate): Uint8Array; + toProtoMsg(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateProtoMsg; + }; + MsgBeginRedelegateResponse: { + typeUrl: string; + encode(message: _58.MsgBeginRedelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgBeginRedelegateResponse; + fromPartial(object: Partial<_58.MsgBeginRedelegateResponse>): _58.MsgBeginRedelegateResponse; + fromAmino(object: _58.MsgBeginRedelegateResponseAmino): _58.MsgBeginRedelegateResponse; + toAmino(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseAmino; + fromAminoMsg(object: _58.MsgBeginRedelegateResponseAminoMsg): _58.MsgBeginRedelegateResponse; + toAminoMsg(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseAminoMsg; + fromProtoMsg(message: _58.MsgBeginRedelegateResponseProtoMsg): _58.MsgBeginRedelegateResponse; + toProto(message: _58.MsgBeginRedelegateResponse): Uint8Array; + toProtoMsg(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseProtoMsg; + }; + MsgUndelegate: { + typeUrl: string; + encode(message: _58.MsgUndelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgUndelegate; + fromPartial(object: Partial<_58.MsgUndelegate>): _58.MsgUndelegate; + fromAmino(object: _58.MsgUndelegateAmino): _58.MsgUndelegate; + toAmino(message: _58.MsgUndelegate): _58.MsgUndelegateAmino; + fromAminoMsg(object: _58.MsgUndelegateAminoMsg): _58.MsgUndelegate; + toAminoMsg(message: _58.MsgUndelegate): _58.MsgUndelegateAminoMsg; + fromProtoMsg(message: _58.MsgUndelegateProtoMsg): _58.MsgUndelegate; + toProto(message: _58.MsgUndelegate): Uint8Array; + toProtoMsg(message: _58.MsgUndelegate): _58.MsgUndelegateProtoMsg; + }; + MsgUndelegateResponse: { + typeUrl: string; + encode(message: _58.MsgUndelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgUndelegateResponse; + fromPartial(object: Partial<_58.MsgUndelegateResponse>): _58.MsgUndelegateResponse; + fromAmino(object: _58.MsgUndelegateResponseAmino): _58.MsgUndelegateResponse; + toAmino(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseAmino; + fromAminoMsg(object: _58.MsgUndelegateResponseAminoMsg): _58.MsgUndelegateResponse; + toAminoMsg(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseAminoMsg; + fromProtoMsg(message: _58.MsgUndelegateResponseProtoMsg): _58.MsgUndelegateResponse; + toProto(message: _58.MsgUndelegateResponse): Uint8Array; + toProtoMsg(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseProtoMsg; + }; + MsgCancelUnbondingDelegation: { + typeUrl: string; + encode(message: _58.MsgCancelUnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCancelUnbondingDelegation; + fromPartial(object: Partial<_58.MsgCancelUnbondingDelegation>): _58.MsgCancelUnbondingDelegation; + fromAmino(object: _58.MsgCancelUnbondingDelegationAmino): _58.MsgCancelUnbondingDelegation; + toAmino(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationAmino; + fromAminoMsg(object: _58.MsgCancelUnbondingDelegationAminoMsg): _58.MsgCancelUnbondingDelegation; + toAminoMsg(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationAminoMsg; + fromProtoMsg(message: _58.MsgCancelUnbondingDelegationProtoMsg): _58.MsgCancelUnbondingDelegation; + toProto(message: _58.MsgCancelUnbondingDelegation): Uint8Array; + toProtoMsg(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationProtoMsg; + }; + MsgCancelUnbondingDelegationResponse: { + typeUrl: string; + encode(_: _58.MsgCancelUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCancelUnbondingDelegationResponse; + fromPartial(_: Partial<_58.MsgCancelUnbondingDelegationResponse>): _58.MsgCancelUnbondingDelegationResponse; + fromAmino(_: _58.MsgCancelUnbondingDelegationResponseAmino): _58.MsgCancelUnbondingDelegationResponse; + toAmino(_: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseAmino; + fromAminoMsg(object: _58.MsgCancelUnbondingDelegationResponseAminoMsg): _58.MsgCancelUnbondingDelegationResponse; + toAminoMsg(message: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseAminoMsg; + fromProtoMsg(message: _58.MsgCancelUnbondingDelegationResponseProtoMsg): _58.MsgCancelUnbondingDelegationResponse; + toProto(message: _58.MsgCancelUnbondingDelegationResponse): Uint8Array; + toProtoMsg(message: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseProtoMsg; + }; + Cosmos_cryptoPubKey_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; + Cosmos_cryptoPubKey_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; + Cosmos_cryptoPubKey_ToAmino: (content: import("../google/protobuf/any").Any) => import("@cosmjs/amino").Pubkey; + bondStatusFromJSON(object: any): _57.BondStatus; + bondStatusToJSON(object: _57.BondStatus): string; + BondStatus: typeof _57.BondStatus; + BondStatusSDKType: typeof _57.BondStatus; + BondStatusAmino: typeof _57.BondStatus; + HistoricalInfo: { + typeUrl: string; + encode(message: _57.HistoricalInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.HistoricalInfo; + fromPartial(object: Partial<_57.HistoricalInfo>): _57.HistoricalInfo; + fromAmino(object: _57.HistoricalInfoAmino): _57.HistoricalInfo; + toAmino(message: _57.HistoricalInfo): _57.HistoricalInfoAmino; + fromAminoMsg(object: _57.HistoricalInfoAminoMsg): _57.HistoricalInfo; + toAminoMsg(message: _57.HistoricalInfo): _57.HistoricalInfoAminoMsg; + fromProtoMsg(message: _57.HistoricalInfoProtoMsg): _57.HistoricalInfo; + toProto(message: _57.HistoricalInfo): Uint8Array; + toProtoMsg(message: _57.HistoricalInfo): _57.HistoricalInfoProtoMsg; + }; + CommissionRates: { + typeUrl: string; + encode(message: _57.CommissionRates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.CommissionRates; + fromPartial(object: Partial<_57.CommissionRates>): _57.CommissionRates; + fromAmino(object: _57.CommissionRatesAmino): _57.CommissionRates; + toAmino(message: _57.CommissionRates): _57.CommissionRatesAmino; + fromAminoMsg(object: _57.CommissionRatesAminoMsg): _57.CommissionRates; + toAminoMsg(message: _57.CommissionRates): _57.CommissionRatesAminoMsg; + fromProtoMsg(message: _57.CommissionRatesProtoMsg): _57.CommissionRates; + toProto(message: _57.CommissionRates): Uint8Array; + toProtoMsg(message: _57.CommissionRates): _57.CommissionRatesProtoMsg; + }; + Commission: { + typeUrl: string; + encode(message: _57.Commission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Commission; + fromPartial(object: Partial<_57.Commission>): _57.Commission; + fromAmino(object: _57.CommissionAmino): _57.Commission; + toAmino(message: _57.Commission): _57.CommissionAmino; + fromAminoMsg(object: _57.CommissionAminoMsg): _57.Commission; + toAminoMsg(message: _57.Commission): _57.CommissionAminoMsg; + fromProtoMsg(message: _57.CommissionProtoMsg): _57.Commission; + toProto(message: _57.Commission): Uint8Array; + toProtoMsg(message: _57.Commission): _57.CommissionProtoMsg; + }; + Description: { + typeUrl: string; + encode(message: _57.Description, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Description; + fromPartial(object: Partial<_57.Description>): _57.Description; + fromAmino(object: _57.DescriptionAmino): _57.Description; + toAmino(message: _57.Description): _57.DescriptionAmino; + fromAminoMsg(object: _57.DescriptionAminoMsg): _57.Description; + toAminoMsg(message: _57.Description): _57.DescriptionAminoMsg; + fromProtoMsg(message: _57.DescriptionProtoMsg): _57.Description; + toProto(message: _57.Description): Uint8Array; + toProtoMsg(message: _57.Description): _57.DescriptionProtoMsg; + }; + Validator: { + typeUrl: string; + encode(message: _57.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Validator; + fromPartial(object: Partial<_57.Validator>): _57.Validator; + fromAmino(object: _57.ValidatorAmino): _57.Validator; + toAmino(message: _57.Validator): _57.ValidatorAmino; + fromAminoMsg(object: _57.ValidatorAminoMsg): _57.Validator; + toAminoMsg(message: _57.Validator): _57.ValidatorAminoMsg; + fromProtoMsg(message: _57.ValidatorProtoMsg): _57.Validator; + toProto(message: _57.Validator): Uint8Array; + toProtoMsg(message: _57.Validator): _57.ValidatorProtoMsg; + }; + ValAddresses: { + typeUrl: string; + encode(message: _57.ValAddresses, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.ValAddresses; + fromPartial(object: Partial<_57.ValAddresses>): _57.ValAddresses; + fromAmino(object: _57.ValAddressesAmino): _57.ValAddresses; + toAmino(message: _57.ValAddresses): _57.ValAddressesAmino; + fromAminoMsg(object: _57.ValAddressesAminoMsg): _57.ValAddresses; + toAminoMsg(message: _57.ValAddresses): _57.ValAddressesAminoMsg; + fromProtoMsg(message: _57.ValAddressesProtoMsg): _57.ValAddresses; + toProto(message: _57.ValAddresses): Uint8Array; + toProtoMsg(message: _57.ValAddresses): _57.ValAddressesProtoMsg; + }; + DVPair: { + typeUrl: string; + encode(message: _57.DVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVPair; + fromPartial(object: Partial<_57.DVPair>): _57.DVPair; + fromAmino(object: _57.DVPairAmino): _57.DVPair; + toAmino(message: _57.DVPair): _57.DVPairAmino; + fromAminoMsg(object: _57.DVPairAminoMsg): _57.DVPair; + toAminoMsg(message: _57.DVPair): _57.DVPairAminoMsg; + fromProtoMsg(message: _57.DVPairProtoMsg): _57.DVPair; + toProto(message: _57.DVPair): Uint8Array; + toProtoMsg(message: _57.DVPair): _57.DVPairProtoMsg; + }; + DVPairs: { + typeUrl: string; + encode(message: _57.DVPairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVPairs; + fromPartial(object: Partial<_57.DVPairs>): _57.DVPairs; + fromAmino(object: _57.DVPairsAmino): _57.DVPairs; + toAmino(message: _57.DVPairs): _57.DVPairsAmino; + fromAminoMsg(object: _57.DVPairsAminoMsg): _57.DVPairs; + toAminoMsg(message: _57.DVPairs): _57.DVPairsAminoMsg; + fromProtoMsg(message: _57.DVPairsProtoMsg): _57.DVPairs; + toProto(message: _57.DVPairs): Uint8Array; + toProtoMsg(message: _57.DVPairs): _57.DVPairsProtoMsg; + }; + DVVTriplet: { + typeUrl: string; + encode(message: _57.DVVTriplet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVVTriplet; + fromPartial(object: Partial<_57.DVVTriplet>): _57.DVVTriplet; + fromAmino(object: _57.DVVTripletAmino): _57.DVVTriplet; + toAmino(message: _57.DVVTriplet): _57.DVVTripletAmino; + fromAminoMsg(object: _57.DVVTripletAminoMsg): _57.DVVTriplet; + toAminoMsg(message: _57.DVVTriplet): _57.DVVTripletAminoMsg; + fromProtoMsg(message: _57.DVVTripletProtoMsg): _57.DVVTriplet; + toProto(message: _57.DVVTriplet): Uint8Array; + toProtoMsg(message: _57.DVVTriplet): _57.DVVTripletProtoMsg; + }; + DVVTriplets: { + typeUrl: string; + encode(message: _57.DVVTriplets, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVVTriplets; + fromPartial(object: Partial<_57.DVVTriplets>): _57.DVVTriplets; + fromAmino(object: _57.DVVTripletsAmino): _57.DVVTriplets; + toAmino(message: _57.DVVTriplets): _57.DVVTripletsAmino; + fromAminoMsg(object: _57.DVVTripletsAminoMsg): _57.DVVTriplets; + toAminoMsg(message: _57.DVVTriplets): _57.DVVTripletsAminoMsg; + fromProtoMsg(message: _57.DVVTripletsProtoMsg): _57.DVVTriplets; + toProto(message: _57.DVVTriplets): Uint8Array; + toProtoMsg(message: _57.DVVTriplets): _57.DVVTripletsProtoMsg; + }; + Delegation: { + typeUrl: string; + encode(message: _57.Delegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Delegation; + fromPartial(object: Partial<_57.Delegation>): _57.Delegation; + fromAmino(object: _57.DelegationAmino): _57.Delegation; + toAmino(message: _57.Delegation): _57.DelegationAmino; + fromAminoMsg(object: _57.DelegationAminoMsg): _57.Delegation; + toAminoMsg(message: _57.Delegation): _57.DelegationAminoMsg; + fromProtoMsg(message: _57.DelegationProtoMsg): _57.Delegation; + toProto(message: _57.Delegation): Uint8Array; + toProtoMsg(message: _57.Delegation): _57.DelegationProtoMsg; + }; + UnbondingDelegation: { + typeUrl: string; + encode(message: _57.UnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.UnbondingDelegation; + fromPartial(object: Partial<_57.UnbondingDelegation>): _57.UnbondingDelegation; + fromAmino(object: _57.UnbondingDelegationAmino): _57.UnbondingDelegation; + toAmino(message: _57.UnbondingDelegation): _57.UnbondingDelegationAmino; + fromAminoMsg(object: _57.UnbondingDelegationAminoMsg): _57.UnbondingDelegation; + toAminoMsg(message: _57.UnbondingDelegation): _57.UnbondingDelegationAminoMsg; + fromProtoMsg(message: _57.UnbondingDelegationProtoMsg): _57.UnbondingDelegation; + toProto(message: _57.UnbondingDelegation): Uint8Array; + toProtoMsg(message: _57.UnbondingDelegation): _57.UnbondingDelegationProtoMsg; + }; + UnbondingDelegationEntry: { + typeUrl: string; + encode(message: _57.UnbondingDelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.UnbondingDelegationEntry; + fromPartial(object: Partial<_57.UnbondingDelegationEntry>): _57.UnbondingDelegationEntry; + fromAmino(object: _57.UnbondingDelegationEntryAmino): _57.UnbondingDelegationEntry; + toAmino(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryAmino; + fromAminoMsg(object: _57.UnbondingDelegationEntryAminoMsg): _57.UnbondingDelegationEntry; + toAminoMsg(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryAminoMsg; + fromProtoMsg(message: _57.UnbondingDelegationEntryProtoMsg): _57.UnbondingDelegationEntry; + toProto(message: _57.UnbondingDelegationEntry): Uint8Array; + toProtoMsg(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryProtoMsg; + }; + RedelegationEntry: { + typeUrl: string; + encode(message: _57.RedelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationEntry; + fromPartial(object: Partial<_57.RedelegationEntry>): _57.RedelegationEntry; + fromAmino(object: _57.RedelegationEntryAmino): _57.RedelegationEntry; + toAmino(message: _57.RedelegationEntry): _57.RedelegationEntryAmino; + fromAminoMsg(object: _57.RedelegationEntryAminoMsg): _57.RedelegationEntry; + toAminoMsg(message: _57.RedelegationEntry): _57.RedelegationEntryAminoMsg; + fromProtoMsg(message: _57.RedelegationEntryProtoMsg): _57.RedelegationEntry; + toProto(message: _57.RedelegationEntry): Uint8Array; + toProtoMsg(message: _57.RedelegationEntry): _57.RedelegationEntryProtoMsg; + }; + Redelegation: { + typeUrl: string; + encode(message: _57.Redelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Redelegation; + fromPartial(object: Partial<_57.Redelegation>): _57.Redelegation; + fromAmino(object: _57.RedelegationAmino): _57.Redelegation; + toAmino(message: _57.Redelegation): _57.RedelegationAmino; + fromAminoMsg(object: _57.RedelegationAminoMsg): _57.Redelegation; + toAminoMsg(message: _57.Redelegation): _57.RedelegationAminoMsg; + fromProtoMsg(message: _57.RedelegationProtoMsg): _57.Redelegation; + toProto(message: _57.Redelegation): Uint8Array; + toProtoMsg(message: _57.Redelegation): _57.RedelegationProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _57.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Params; + fromPartial(object: Partial<_57.Params>): _57.Params; + fromAmino(object: _57.ParamsAmino): _57.Params; + toAmino(message: _57.Params): _57.ParamsAmino; + fromAminoMsg(object: _57.ParamsAminoMsg): _57.Params; + toAminoMsg(message: _57.Params): _57.ParamsAminoMsg; + fromProtoMsg(message: _57.ParamsProtoMsg): _57.Params; + toProto(message: _57.Params): Uint8Array; + toProtoMsg(message: _57.Params): _57.ParamsProtoMsg; + }; + DelegationResponse: { + typeUrl: string; + encode(message: _57.DelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DelegationResponse; + fromPartial(object: Partial<_57.DelegationResponse>): _57.DelegationResponse; + fromAmino(object: _57.DelegationResponseAmino): _57.DelegationResponse; + toAmino(message: _57.DelegationResponse): _57.DelegationResponseAmino; + fromAminoMsg(object: _57.DelegationResponseAminoMsg): _57.DelegationResponse; + toAminoMsg(message: _57.DelegationResponse): _57.DelegationResponseAminoMsg; + fromProtoMsg(message: _57.DelegationResponseProtoMsg): _57.DelegationResponse; + toProto(message: _57.DelegationResponse): Uint8Array; + toProtoMsg(message: _57.DelegationResponse): _57.DelegationResponseProtoMsg; + }; + RedelegationEntryResponse: { + typeUrl: string; + encode(message: _57.RedelegationEntryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationEntryResponse; + fromPartial(object: Partial<_57.RedelegationEntryResponse>): _57.RedelegationEntryResponse; + fromAmino(object: _57.RedelegationEntryResponseAmino): _57.RedelegationEntryResponse; + toAmino(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseAmino; + fromAminoMsg(object: _57.RedelegationEntryResponseAminoMsg): _57.RedelegationEntryResponse; + toAminoMsg(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseAminoMsg; + fromProtoMsg(message: _57.RedelegationEntryResponseProtoMsg): _57.RedelegationEntryResponse; + toProto(message: _57.RedelegationEntryResponse): Uint8Array; + toProtoMsg(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseProtoMsg; + }; + RedelegationResponse: { + typeUrl: string; + encode(message: _57.RedelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationResponse; + fromPartial(object: Partial<_57.RedelegationResponse>): _57.RedelegationResponse; + fromAmino(object: _57.RedelegationResponseAmino): _57.RedelegationResponse; + toAmino(message: _57.RedelegationResponse): _57.RedelegationResponseAmino; + fromAminoMsg(object: _57.RedelegationResponseAminoMsg): _57.RedelegationResponse; + toAminoMsg(message: _57.RedelegationResponse): _57.RedelegationResponseAminoMsg; + fromProtoMsg(message: _57.RedelegationResponseProtoMsg): _57.RedelegationResponse; + toProto(message: _57.RedelegationResponse): Uint8Array; + toProtoMsg(message: _57.RedelegationResponse): _57.RedelegationResponseProtoMsg; + }; + Pool: { + typeUrl: string; + encode(message: _57.Pool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Pool; + fromPartial(object: Partial<_57.Pool>): _57.Pool; + fromAmino(object: _57.PoolAmino): _57.Pool; + toAmino(message: _57.Pool): _57.PoolAmino; + fromAminoMsg(object: _57.PoolAminoMsg): _57.Pool; + toAminoMsg(message: _57.Pool): _57.PoolAminoMsg; + fromProtoMsg(message: _57.PoolProtoMsg): _57.Pool; + toProto(message: _57.Pool): Uint8Array; + toProtoMsg(message: _57.Pool): _57.PoolProtoMsg; + }; + QueryValidatorsRequest: { + typeUrl: string; + encode(message: _56.QueryValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorsRequest; + fromPartial(object: Partial<_56.QueryValidatorsRequest>): _56.QueryValidatorsRequest; + fromAmino(object: _56.QueryValidatorsRequestAmino): _56.QueryValidatorsRequest; + toAmino(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestAmino; + fromAminoMsg(object: _56.QueryValidatorsRequestAminoMsg): _56.QueryValidatorsRequest; + toAminoMsg(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestAminoMsg; + fromProtoMsg(message: _56.QueryValidatorsRequestProtoMsg): _56.QueryValidatorsRequest; + toProto(message: _56.QueryValidatorsRequest): Uint8Array; + toProtoMsg(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestProtoMsg; + }; + QueryValidatorsResponse: { + typeUrl: string; + encode(message: _56.QueryValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorsResponse; + fromPartial(object: Partial<_56.QueryValidatorsResponse>): _56.QueryValidatorsResponse; + fromAmino(object: _56.QueryValidatorsResponseAmino): _56.QueryValidatorsResponse; + toAmino(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseAmino; + fromAminoMsg(object: _56.QueryValidatorsResponseAminoMsg): _56.QueryValidatorsResponse; + toAminoMsg(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseAminoMsg; + fromProtoMsg(message: _56.QueryValidatorsResponseProtoMsg): _56.QueryValidatorsResponse; + toProto(message: _56.QueryValidatorsResponse): Uint8Array; + toProtoMsg(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseProtoMsg; + }; + QueryValidatorRequest: { + typeUrl: string; + encode(message: _56.QueryValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorRequest; + fromPartial(object: Partial<_56.QueryValidatorRequest>): _56.QueryValidatorRequest; + fromAmino(object: _56.QueryValidatorRequestAmino): _56.QueryValidatorRequest; + toAmino(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestAmino; + fromAminoMsg(object: _56.QueryValidatorRequestAminoMsg): _56.QueryValidatorRequest; + toAminoMsg(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestAminoMsg; + fromProtoMsg(message: _56.QueryValidatorRequestProtoMsg): _56.QueryValidatorRequest; + toProto(message: _56.QueryValidatorRequest): Uint8Array; + toProtoMsg(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestProtoMsg; + }; + QueryValidatorResponse: { + typeUrl: string; + encode(message: _56.QueryValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorResponse; + fromPartial(object: Partial<_56.QueryValidatorResponse>): _56.QueryValidatorResponse; + fromAmino(object: _56.QueryValidatorResponseAmino): _56.QueryValidatorResponse; + toAmino(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseAmino; + fromAminoMsg(object: _56.QueryValidatorResponseAminoMsg): _56.QueryValidatorResponse; + toAminoMsg(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseAminoMsg; + fromProtoMsg(message: _56.QueryValidatorResponseProtoMsg): _56.QueryValidatorResponse; + toProto(message: _56.QueryValidatorResponse): Uint8Array; + toProtoMsg(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseProtoMsg; + }; + QueryValidatorDelegationsRequest: { + typeUrl: string; + encode(message: _56.QueryValidatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorDelegationsRequest; + fromPartial(object: Partial<_56.QueryValidatorDelegationsRequest>): _56.QueryValidatorDelegationsRequest; + fromAmino(object: _56.QueryValidatorDelegationsRequestAmino): _56.QueryValidatorDelegationsRequest; + toAmino(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestAmino; + fromAminoMsg(object: _56.QueryValidatorDelegationsRequestAminoMsg): _56.QueryValidatorDelegationsRequest; + toAminoMsg(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestAminoMsg; + fromProtoMsg(message: _56.QueryValidatorDelegationsRequestProtoMsg): _56.QueryValidatorDelegationsRequest; + toProto(message: _56.QueryValidatorDelegationsRequest): Uint8Array; + toProtoMsg(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestProtoMsg; + }; + QueryValidatorDelegationsResponse: { + typeUrl: string; + encode(message: _56.QueryValidatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorDelegationsResponse; + fromPartial(object: Partial<_56.QueryValidatorDelegationsResponse>): _56.QueryValidatorDelegationsResponse; + fromAmino(object: _56.QueryValidatorDelegationsResponseAmino): _56.QueryValidatorDelegationsResponse; + toAmino(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseAmino; + fromAminoMsg(object: _56.QueryValidatorDelegationsResponseAminoMsg): _56.QueryValidatorDelegationsResponse; + toAminoMsg(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseAminoMsg; + fromProtoMsg(message: _56.QueryValidatorDelegationsResponseProtoMsg): _56.QueryValidatorDelegationsResponse; + toProto(message: _56.QueryValidatorDelegationsResponse): Uint8Array; + toProtoMsg(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseProtoMsg; + }; + QueryValidatorUnbondingDelegationsRequest: { + typeUrl: string; + encode(message: _56.QueryValidatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorUnbondingDelegationsRequest; + fromPartial(object: Partial<_56.QueryValidatorUnbondingDelegationsRequest>): _56.QueryValidatorUnbondingDelegationsRequest; + fromAmino(object: _56.QueryValidatorUnbondingDelegationsRequestAmino): _56.QueryValidatorUnbondingDelegationsRequest; + toAmino(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestAmino; + fromAminoMsg(object: _56.QueryValidatorUnbondingDelegationsRequestAminoMsg): _56.QueryValidatorUnbondingDelegationsRequest; + toAminoMsg(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestAminoMsg; + fromProtoMsg(message: _56.QueryValidatorUnbondingDelegationsRequestProtoMsg): _56.QueryValidatorUnbondingDelegationsRequest; + toProto(message: _56.QueryValidatorUnbondingDelegationsRequest): Uint8Array; + toProtoMsg(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestProtoMsg; + }; + QueryValidatorUnbondingDelegationsResponse: { + typeUrl: string; + encode(message: _56.QueryValidatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorUnbondingDelegationsResponse; + fromPartial(object: Partial<_56.QueryValidatorUnbondingDelegationsResponse>): _56.QueryValidatorUnbondingDelegationsResponse; + fromAmino(object: _56.QueryValidatorUnbondingDelegationsResponseAmino): _56.QueryValidatorUnbondingDelegationsResponse; + toAmino(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseAmino; + fromAminoMsg(object: _56.QueryValidatorUnbondingDelegationsResponseAminoMsg): _56.QueryValidatorUnbondingDelegationsResponse; + toAminoMsg(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseAminoMsg; + fromProtoMsg(message: _56.QueryValidatorUnbondingDelegationsResponseProtoMsg): _56.QueryValidatorUnbondingDelegationsResponse; + toProto(message: _56.QueryValidatorUnbondingDelegationsResponse): Uint8Array; + toProtoMsg(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseProtoMsg; + }; + QueryDelegationRequest: { + typeUrl: string; + encode(message: _56.QueryDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegationRequest; + fromPartial(object: Partial<_56.QueryDelegationRequest>): _56.QueryDelegationRequest; + fromAmino(object: _56.QueryDelegationRequestAmino): _56.QueryDelegationRequest; + toAmino(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestAmino; + fromAminoMsg(object: _56.QueryDelegationRequestAminoMsg): _56.QueryDelegationRequest; + toAminoMsg(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestAminoMsg; + fromProtoMsg(message: _56.QueryDelegationRequestProtoMsg): _56.QueryDelegationRequest; + toProto(message: _56.QueryDelegationRequest): Uint8Array; + toProtoMsg(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestProtoMsg; + }; + QueryDelegationResponse: { + typeUrl: string; + encode(message: _56.QueryDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegationResponse; + fromPartial(object: Partial<_56.QueryDelegationResponse>): _56.QueryDelegationResponse; + fromAmino(object: _56.QueryDelegationResponseAmino): _56.QueryDelegationResponse; + toAmino(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseAmino; + fromAminoMsg(object: _56.QueryDelegationResponseAminoMsg): _56.QueryDelegationResponse; + toAminoMsg(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseAminoMsg; + fromProtoMsg(message: _56.QueryDelegationResponseProtoMsg): _56.QueryDelegationResponse; + toProto(message: _56.QueryDelegationResponse): Uint8Array; + toProtoMsg(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseProtoMsg; + }; + QueryUnbondingDelegationRequest: { + typeUrl: string; + encode(message: _56.QueryUnbondingDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryUnbondingDelegationRequest; + fromPartial(object: Partial<_56.QueryUnbondingDelegationRequest>): _56.QueryUnbondingDelegationRequest; + fromAmino(object: _56.QueryUnbondingDelegationRequestAmino): _56.QueryUnbondingDelegationRequest; + toAmino(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestAmino; + fromAminoMsg(object: _56.QueryUnbondingDelegationRequestAminoMsg): _56.QueryUnbondingDelegationRequest; + toAminoMsg(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestAminoMsg; + fromProtoMsg(message: _56.QueryUnbondingDelegationRequestProtoMsg): _56.QueryUnbondingDelegationRequest; + toProto(message: _56.QueryUnbondingDelegationRequest): Uint8Array; + toProtoMsg(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestProtoMsg; + }; + QueryUnbondingDelegationResponse: { + typeUrl: string; + encode(message: _56.QueryUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryUnbondingDelegationResponse; + fromPartial(object: Partial<_56.QueryUnbondingDelegationResponse>): _56.QueryUnbondingDelegationResponse; + fromAmino(object: _56.QueryUnbondingDelegationResponseAmino): _56.QueryUnbondingDelegationResponse; + toAmino(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseAmino; + fromAminoMsg(object: _56.QueryUnbondingDelegationResponseAminoMsg): _56.QueryUnbondingDelegationResponse; + toAminoMsg(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseAminoMsg; + fromProtoMsg(message: _56.QueryUnbondingDelegationResponseProtoMsg): _56.QueryUnbondingDelegationResponse; + toProto(message: _56.QueryUnbondingDelegationResponse): Uint8Array; + toProtoMsg(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseProtoMsg; + }; + QueryDelegatorDelegationsRequest: { + typeUrl: string; + encode(message: _56.QueryDelegatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorDelegationsRequest; + fromPartial(object: Partial<_56.QueryDelegatorDelegationsRequest>): _56.QueryDelegatorDelegationsRequest; + fromAmino(object: _56.QueryDelegatorDelegationsRequestAmino): _56.QueryDelegatorDelegationsRequest; + toAmino(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestAmino; + fromAminoMsg(object: _56.QueryDelegatorDelegationsRequestAminoMsg): _56.QueryDelegatorDelegationsRequest; + toAminoMsg(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorDelegationsRequestProtoMsg): _56.QueryDelegatorDelegationsRequest; + toProto(message: _56.QueryDelegatorDelegationsRequest): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestProtoMsg; + }; + QueryDelegatorDelegationsResponse: { + typeUrl: string; + encode(message: _56.QueryDelegatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorDelegationsResponse; + fromPartial(object: Partial<_56.QueryDelegatorDelegationsResponse>): _56.QueryDelegatorDelegationsResponse; + fromAmino(object: _56.QueryDelegatorDelegationsResponseAmino): _56.QueryDelegatorDelegationsResponse; + toAmino(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseAmino; + fromAminoMsg(object: _56.QueryDelegatorDelegationsResponseAminoMsg): _56.QueryDelegatorDelegationsResponse; + toAminoMsg(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorDelegationsResponseProtoMsg): _56.QueryDelegatorDelegationsResponse; + toProto(message: _56.QueryDelegatorDelegationsResponse): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseProtoMsg; + }; + QueryDelegatorUnbondingDelegationsRequest: { + typeUrl: string; + encode(message: _56.QueryDelegatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorUnbondingDelegationsRequest; + fromPartial(object: Partial<_56.QueryDelegatorUnbondingDelegationsRequest>): _56.QueryDelegatorUnbondingDelegationsRequest; + fromAmino(object: _56.QueryDelegatorUnbondingDelegationsRequestAmino): _56.QueryDelegatorUnbondingDelegationsRequest; + toAmino(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestAmino; + fromAminoMsg(object: _56.QueryDelegatorUnbondingDelegationsRequestAminoMsg): _56.QueryDelegatorUnbondingDelegationsRequest; + toAminoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequestProtoMsg): _56.QueryDelegatorUnbondingDelegationsRequest; + toProto(message: _56.QueryDelegatorUnbondingDelegationsRequest): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestProtoMsg; + }; + QueryDelegatorUnbondingDelegationsResponse: { + typeUrl: string; + encode(message: _56.QueryDelegatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorUnbondingDelegationsResponse; + fromPartial(object: Partial<_56.QueryDelegatorUnbondingDelegationsResponse>): _56.QueryDelegatorUnbondingDelegationsResponse; + fromAmino(object: _56.QueryDelegatorUnbondingDelegationsResponseAmino): _56.QueryDelegatorUnbondingDelegationsResponse; + toAmino(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseAmino; + fromAminoMsg(object: _56.QueryDelegatorUnbondingDelegationsResponseAminoMsg): _56.QueryDelegatorUnbondingDelegationsResponse; + toAminoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponseProtoMsg): _56.QueryDelegatorUnbondingDelegationsResponse; + toProto(message: _56.QueryDelegatorUnbondingDelegationsResponse): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseProtoMsg; + }; + QueryRedelegationsRequest: { + typeUrl: string; + encode(message: _56.QueryRedelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryRedelegationsRequest; + fromPartial(object: Partial<_56.QueryRedelegationsRequest>): _56.QueryRedelegationsRequest; + fromAmino(object: _56.QueryRedelegationsRequestAmino): _56.QueryRedelegationsRequest; + toAmino(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestAmino; + fromAminoMsg(object: _56.QueryRedelegationsRequestAminoMsg): _56.QueryRedelegationsRequest; + toAminoMsg(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestAminoMsg; + fromProtoMsg(message: _56.QueryRedelegationsRequestProtoMsg): _56.QueryRedelegationsRequest; + toProto(message: _56.QueryRedelegationsRequest): Uint8Array; + toProtoMsg(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestProtoMsg; + }; + QueryRedelegationsResponse: { + typeUrl: string; + encode(message: _56.QueryRedelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryRedelegationsResponse; + fromPartial(object: Partial<_56.QueryRedelegationsResponse>): _56.QueryRedelegationsResponse; + fromAmino(object: _56.QueryRedelegationsResponseAmino): _56.QueryRedelegationsResponse; + toAmino(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseAmino; + fromAminoMsg(object: _56.QueryRedelegationsResponseAminoMsg): _56.QueryRedelegationsResponse; + toAminoMsg(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseAminoMsg; + fromProtoMsg(message: _56.QueryRedelegationsResponseProtoMsg): _56.QueryRedelegationsResponse; + toProto(message: _56.QueryRedelegationsResponse): Uint8Array; + toProtoMsg(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseProtoMsg; + }; + QueryDelegatorValidatorsRequest: { + typeUrl: string; + encode(message: _56.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorsRequest; + fromPartial(object: Partial<_56.QueryDelegatorValidatorsRequest>): _56.QueryDelegatorValidatorsRequest; + fromAmino(object: _56.QueryDelegatorValidatorsRequestAmino): _56.QueryDelegatorValidatorsRequest; + toAmino(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestAmino; + fromAminoMsg(object: _56.QueryDelegatorValidatorsRequestAminoMsg): _56.QueryDelegatorValidatorsRequest; + toAminoMsg(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorValidatorsRequestProtoMsg): _56.QueryDelegatorValidatorsRequest; + toProto(message: _56.QueryDelegatorValidatorsRequest): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestProtoMsg; + }; + QueryDelegatorValidatorsResponse: { + typeUrl: string; + encode(message: _56.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorsResponse; + fromPartial(object: Partial<_56.QueryDelegatorValidatorsResponse>): _56.QueryDelegatorValidatorsResponse; + fromAmino(object: _56.QueryDelegatorValidatorsResponseAmino): _56.QueryDelegatorValidatorsResponse; + toAmino(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseAmino; + fromAminoMsg(object: _56.QueryDelegatorValidatorsResponseAminoMsg): _56.QueryDelegatorValidatorsResponse; + toAminoMsg(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorValidatorsResponseProtoMsg): _56.QueryDelegatorValidatorsResponse; + toProto(message: _56.QueryDelegatorValidatorsResponse): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseProtoMsg; + }; + QueryDelegatorValidatorRequest: { + typeUrl: string; + encode(message: _56.QueryDelegatorValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorRequest; + fromPartial(object: Partial<_56.QueryDelegatorValidatorRequest>): _56.QueryDelegatorValidatorRequest; + fromAmino(object: _56.QueryDelegatorValidatorRequestAmino): _56.QueryDelegatorValidatorRequest; + toAmino(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestAmino; + fromAminoMsg(object: _56.QueryDelegatorValidatorRequestAminoMsg): _56.QueryDelegatorValidatorRequest; + toAminoMsg(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorValidatorRequestProtoMsg): _56.QueryDelegatorValidatorRequest; + toProto(message: _56.QueryDelegatorValidatorRequest): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestProtoMsg; + }; + QueryDelegatorValidatorResponse: { + typeUrl: string; + encode(message: _56.QueryDelegatorValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorResponse; + fromPartial(object: Partial<_56.QueryDelegatorValidatorResponse>): _56.QueryDelegatorValidatorResponse; + fromAmino(object: _56.QueryDelegatorValidatorResponseAmino): _56.QueryDelegatorValidatorResponse; + toAmino(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseAmino; + fromAminoMsg(object: _56.QueryDelegatorValidatorResponseAminoMsg): _56.QueryDelegatorValidatorResponse; + toAminoMsg(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseAminoMsg; + fromProtoMsg(message: _56.QueryDelegatorValidatorResponseProtoMsg): _56.QueryDelegatorValidatorResponse; + toProto(message: _56.QueryDelegatorValidatorResponse): Uint8Array; + toProtoMsg(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseProtoMsg; + }; + QueryHistoricalInfoRequest: { + typeUrl: string; + encode(message: _56.QueryHistoricalInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryHistoricalInfoRequest; + fromPartial(object: Partial<_56.QueryHistoricalInfoRequest>): _56.QueryHistoricalInfoRequest; + fromAmino(object: _56.QueryHistoricalInfoRequestAmino): _56.QueryHistoricalInfoRequest; + toAmino(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestAmino; + fromAminoMsg(object: _56.QueryHistoricalInfoRequestAminoMsg): _56.QueryHistoricalInfoRequest; + toAminoMsg(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestAminoMsg; + fromProtoMsg(message: _56.QueryHistoricalInfoRequestProtoMsg): _56.QueryHistoricalInfoRequest; + toProto(message: _56.QueryHistoricalInfoRequest): Uint8Array; + toProtoMsg(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestProtoMsg; + }; + QueryHistoricalInfoResponse: { + typeUrl: string; + encode(message: _56.QueryHistoricalInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryHistoricalInfoResponse; + fromPartial(object: Partial<_56.QueryHistoricalInfoResponse>): _56.QueryHistoricalInfoResponse; + fromAmino(object: _56.QueryHistoricalInfoResponseAmino): _56.QueryHistoricalInfoResponse; + toAmino(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseAmino; + fromAminoMsg(object: _56.QueryHistoricalInfoResponseAminoMsg): _56.QueryHistoricalInfoResponse; + toAminoMsg(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseAminoMsg; + fromProtoMsg(message: _56.QueryHistoricalInfoResponseProtoMsg): _56.QueryHistoricalInfoResponse; + toProto(message: _56.QueryHistoricalInfoResponse): Uint8Array; + toProtoMsg(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseProtoMsg; + }; + QueryPoolRequest: { + typeUrl: string; + encode(_: _56.QueryPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryPoolRequest; + fromPartial(_: Partial<_56.QueryPoolRequest>): _56.QueryPoolRequest; + fromAmino(_: _56.QueryPoolRequestAmino): _56.QueryPoolRequest; + toAmino(_: _56.QueryPoolRequest): _56.QueryPoolRequestAmino; + fromAminoMsg(object: _56.QueryPoolRequestAminoMsg): _56.QueryPoolRequest; + toAminoMsg(message: _56.QueryPoolRequest): _56.QueryPoolRequestAminoMsg; + fromProtoMsg(message: _56.QueryPoolRequestProtoMsg): _56.QueryPoolRequest; + toProto(message: _56.QueryPoolRequest): Uint8Array; + toProtoMsg(message: _56.QueryPoolRequest): _56.QueryPoolRequestProtoMsg; + }; + QueryPoolResponse: { + typeUrl: string; + encode(message: _56.QueryPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryPoolResponse; + fromPartial(object: Partial<_56.QueryPoolResponse>): _56.QueryPoolResponse; + fromAmino(object: _56.QueryPoolResponseAmino): _56.QueryPoolResponse; + toAmino(message: _56.QueryPoolResponse): _56.QueryPoolResponseAmino; + fromAminoMsg(object: _56.QueryPoolResponseAminoMsg): _56.QueryPoolResponse; + toAminoMsg(message: _56.QueryPoolResponse): _56.QueryPoolResponseAminoMsg; + fromProtoMsg(message: _56.QueryPoolResponseProtoMsg): _56.QueryPoolResponse; + toProto(message: _56.QueryPoolResponse): Uint8Array; + toProtoMsg(message: _56.QueryPoolResponse): _56.QueryPoolResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _56.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryParamsRequest; + fromPartial(_: Partial<_56.QueryParamsRequest>): _56.QueryParamsRequest; + fromAmino(_: _56.QueryParamsRequestAmino): _56.QueryParamsRequest; + toAmino(_: _56.QueryParamsRequest): _56.QueryParamsRequestAmino; + fromAminoMsg(object: _56.QueryParamsRequestAminoMsg): _56.QueryParamsRequest; + toAminoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _56.QueryParamsRequestProtoMsg): _56.QueryParamsRequest; + toProto(message: _56.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _56.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryParamsResponse; + fromPartial(object: Partial<_56.QueryParamsResponse>): _56.QueryParamsResponse; + fromAmino(object: _56.QueryParamsResponseAmino): _56.QueryParamsResponse; + toAmino(message: _56.QueryParamsResponse): _56.QueryParamsResponseAmino; + fromAminoMsg(object: _56.QueryParamsResponseAminoMsg): _56.QueryParamsResponse; + toAminoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _56.QueryParamsResponseProtoMsg): _56.QueryParamsResponse; + toProto(message: _56.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _55.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _55.GenesisState; + fromPartial(object: Partial<_55.GenesisState>): _55.GenesisState; + fromAmino(object: _55.GenesisStateAmino): _55.GenesisState; + toAmino(message: _55.GenesisState): _55.GenesisStateAmino; + fromAminoMsg(object: _55.GenesisStateAminoMsg): _55.GenesisState; + toAminoMsg(message: _55.GenesisState): _55.GenesisStateAminoMsg; + fromProtoMsg(message: _55.GenesisStateProtoMsg): _55.GenesisState; + toProto(message: _55.GenesisState): Uint8Array; + toProtoMsg(message: _55.GenesisState): _55.GenesisStateProtoMsg; + }; + LastValidatorPower: { + typeUrl: string; + encode(message: _55.LastValidatorPower, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _55.LastValidatorPower; + fromPartial(object: Partial<_55.LastValidatorPower>): _55.LastValidatorPower; + fromAmino(object: _55.LastValidatorPowerAmino): _55.LastValidatorPower; + toAmino(message: _55.LastValidatorPower): _55.LastValidatorPowerAmino; + fromAminoMsg(object: _55.LastValidatorPowerAminoMsg): _55.LastValidatorPower; + toAminoMsg(message: _55.LastValidatorPower): _55.LastValidatorPowerAminoMsg; + fromProtoMsg(message: _55.LastValidatorPowerProtoMsg): _55.LastValidatorPower; + toProto(message: _55.LastValidatorPower): Uint8Array; + toProtoMsg(message: _55.LastValidatorPower): _55.LastValidatorPowerProtoMsg; + }; + authorizationTypeFromJSON(object: any): _54.AuthorizationType; + authorizationTypeToJSON(object: _54.AuthorizationType): string; + AuthorizationType: typeof _54.AuthorizationType; + AuthorizationTypeSDKType: typeof _54.AuthorizationType; + AuthorizationTypeAmino: typeof _54.AuthorizationType; + StakeAuthorization: { + typeUrl: string; + encode(message: _54.StakeAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _54.StakeAuthorization; + fromPartial(object: Partial<_54.StakeAuthorization>): _54.StakeAuthorization; + fromAmino(object: _54.StakeAuthorizationAmino): _54.StakeAuthorization; + toAmino(message: _54.StakeAuthorization): _54.StakeAuthorizationAmino; + fromAminoMsg(object: _54.StakeAuthorizationAminoMsg): _54.StakeAuthorization; + toAminoMsg(message: _54.StakeAuthorization): _54.StakeAuthorizationAminoMsg; + fromProtoMsg(message: _54.StakeAuthorizationProtoMsg): _54.StakeAuthorization; + toProto(message: _54.StakeAuthorization): Uint8Array; + toProtoMsg(message: _54.StakeAuthorization): _54.StakeAuthorizationProtoMsg; + }; + StakeAuthorization_Validators: { + typeUrl: string; + encode(message: _54.StakeAuthorization_Validators, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _54.StakeAuthorization_Validators; + fromPartial(object: Partial<_54.StakeAuthorization_Validators>): _54.StakeAuthorization_Validators; + fromAmino(object: _54.StakeAuthorization_ValidatorsAmino): _54.StakeAuthorization_Validators; + toAmino(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsAmino; + fromAminoMsg(object: _54.StakeAuthorization_ValidatorsAminoMsg): _54.StakeAuthorization_Validators; + toAminoMsg(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsAminoMsg; + fromProtoMsg(message: _54.StakeAuthorization_ValidatorsProtoMsg): _54.StakeAuthorization_Validators; + toProto(message: _54.StakeAuthorization_Validators): Uint8Array; + toProtoMsg(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsProtoMsg; + }; + }; + } + namespace tx { + namespace signing { + const v1beta1: { + signModeFromJSON(object: any): _59.SignMode; + signModeToJSON(object: _59.SignMode): string; + SignMode: typeof _59.SignMode; + SignModeSDKType: typeof _59.SignMode; + SignModeAmino: typeof _59.SignMode; + SignatureDescriptors: { + typeUrl: string; + encode(message: _59.SignatureDescriptors, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptors; + fromPartial(object: Partial<_59.SignatureDescriptors>): _59.SignatureDescriptors; + fromAmino(object: _59.SignatureDescriptorsAmino): _59.SignatureDescriptors; + toAmino(message: _59.SignatureDescriptors): _59.SignatureDescriptorsAmino; + fromAminoMsg(object: _59.SignatureDescriptorsAminoMsg): _59.SignatureDescriptors; + toAminoMsg(message: _59.SignatureDescriptors): _59.SignatureDescriptorsAminoMsg; + fromProtoMsg(message: _59.SignatureDescriptorsProtoMsg): _59.SignatureDescriptors; + toProto(message: _59.SignatureDescriptors): Uint8Array; + toProtoMsg(message: _59.SignatureDescriptors): _59.SignatureDescriptorsProtoMsg; + }; + SignatureDescriptor: { + typeUrl: string; + encode(message: _59.SignatureDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor; + fromPartial(object: Partial<_59.SignatureDescriptor>): _59.SignatureDescriptor; + fromAmino(object: _59.SignatureDescriptorAmino): _59.SignatureDescriptor; + toAmino(message: _59.SignatureDescriptor): _59.SignatureDescriptorAmino; + fromAminoMsg(object: _59.SignatureDescriptorAminoMsg): _59.SignatureDescriptor; + toAminoMsg(message: _59.SignatureDescriptor): _59.SignatureDescriptorAminoMsg; + fromProtoMsg(message: _59.SignatureDescriptorProtoMsg): _59.SignatureDescriptor; + toProto(message: _59.SignatureDescriptor): Uint8Array; + toProtoMsg(message: _59.SignatureDescriptor): _59.SignatureDescriptorProtoMsg; + }; + SignatureDescriptor_Data: { + typeUrl: string; + encode(message: _59.SignatureDescriptor_Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data; + fromPartial(object: Partial<_59.SignatureDescriptor_Data>): _59.SignatureDescriptor_Data; + fromAmino(object: _59.SignatureDescriptor_DataAmino): _59.SignatureDescriptor_Data; + toAmino(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataAmino; + fromAminoMsg(object: _59.SignatureDescriptor_DataAminoMsg): _59.SignatureDescriptor_Data; + toAminoMsg(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataAminoMsg; + fromProtoMsg(message: _59.SignatureDescriptor_DataProtoMsg): _59.SignatureDescriptor_Data; + toProto(message: _59.SignatureDescriptor_Data): Uint8Array; + toProtoMsg(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataProtoMsg; + }; + SignatureDescriptor_Data_Single: { + typeUrl: string; + encode(message: _59.SignatureDescriptor_Data_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data_Single; + fromPartial(object: Partial<_59.SignatureDescriptor_Data_Single>): _59.SignatureDescriptor_Data_Single; + fromAmino(object: _59.SignatureDescriptor_Data_SingleAmino): _59.SignatureDescriptor_Data_Single; + toAmino(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleAmino; + fromAminoMsg(object: _59.SignatureDescriptor_Data_SingleAminoMsg): _59.SignatureDescriptor_Data_Single; + toAminoMsg(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleAminoMsg; + fromProtoMsg(message: _59.SignatureDescriptor_Data_SingleProtoMsg): _59.SignatureDescriptor_Data_Single; + toProto(message: _59.SignatureDescriptor_Data_Single): Uint8Array; + toProtoMsg(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleProtoMsg; + }; + SignatureDescriptor_Data_Multi: { + typeUrl: string; + encode(message: _59.SignatureDescriptor_Data_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data_Multi; + fromPartial(object: Partial<_59.SignatureDescriptor_Data_Multi>): _59.SignatureDescriptor_Data_Multi; + fromAmino(object: _59.SignatureDescriptor_Data_MultiAmino): _59.SignatureDescriptor_Data_Multi; + toAmino(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiAmino; + fromAminoMsg(object: _59.SignatureDescriptor_Data_MultiAminoMsg): _59.SignatureDescriptor_Data_Multi; + toAminoMsg(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiAminoMsg; + fromProtoMsg(message: _59.SignatureDescriptor_Data_MultiProtoMsg): _59.SignatureDescriptor_Data_Multi; + toProto(message: _59.SignatureDescriptor_Data_Multi): Uint8Array; + toProtoMsg(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiProtoMsg; + }; + }; + } + const v1beta1: { + ServiceClientImpl: typeof _165.ServiceClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + simulate(request: _60.SimulateRequest): Promise<_60.SimulateResponse>; + getTx(request: _60.GetTxRequest): Promise<_60.GetTxResponse>; + broadcastTx(request: _60.BroadcastTxRequest): Promise<_60.BroadcastTxResponse>; + getTxsEvent(request: _60.GetTxsEventRequest): Promise<_60.GetTxsEventResponse>; + getBlockWithTxs(request: _60.GetBlockWithTxsRequest): Promise<_60.GetBlockWithTxsResponse>; + }; + LCDQueryClient: typeof _151.LCDQueryClient; + Tx: { + typeUrl: string; + encode(message: _61.Tx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Tx; + fromPartial(object: Partial<_61.Tx>): _61.Tx; + fromAmino(object: _61.TxAmino): _61.Tx; + toAmino(message: _61.Tx): _61.TxAmino; + fromAminoMsg(object: _61.TxAminoMsg): _61.Tx; + toAminoMsg(message: _61.Tx): _61.TxAminoMsg; + fromProtoMsg(message: _61.TxProtoMsg): _61.Tx; + toProto(message: _61.Tx): Uint8Array; + toProtoMsg(message: _61.Tx): _61.TxProtoMsg; + }; + TxRaw: { + typeUrl: string; + encode(message: _61.TxRaw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.TxRaw; + fromPartial(object: Partial<_61.TxRaw>): _61.TxRaw; + fromAmino(object: _61.TxRawAmino): _61.TxRaw; + toAmino(message: _61.TxRaw): _61.TxRawAmino; + fromAminoMsg(object: _61.TxRawAminoMsg): _61.TxRaw; + toAminoMsg(message: _61.TxRaw): _61.TxRawAminoMsg; + fromProtoMsg(message: _61.TxRawProtoMsg): _61.TxRaw; + toProto(message: _61.TxRaw): Uint8Array; + toProtoMsg(message: _61.TxRaw): _61.TxRawProtoMsg; + }; + SignDoc: { + typeUrl: string; + encode(message: _61.SignDoc, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignDoc; + fromPartial(object: Partial<_61.SignDoc>): _61.SignDoc; + fromAmino(object: _61.SignDocAmino): _61.SignDoc; + toAmino(message: _61.SignDoc): _61.SignDocAmino; + fromAminoMsg(object: _61.SignDocAminoMsg): _61.SignDoc; + toAminoMsg(message: _61.SignDoc): _61.SignDocAminoMsg; + fromProtoMsg(message: _61.SignDocProtoMsg): _61.SignDoc; + toProto(message: _61.SignDoc): Uint8Array; + toProtoMsg(message: _61.SignDoc): _61.SignDocProtoMsg; + }; + SignDocDirectAux: { + typeUrl: string; + encode(message: _61.SignDocDirectAux, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignDocDirectAux; + fromPartial(object: Partial<_61.SignDocDirectAux>): _61.SignDocDirectAux; + fromAmino(object: _61.SignDocDirectAuxAmino): _61.SignDocDirectAux; + toAmino(message: _61.SignDocDirectAux): _61.SignDocDirectAuxAmino; + fromAminoMsg(object: _61.SignDocDirectAuxAminoMsg): _61.SignDocDirectAux; + toAminoMsg(message: _61.SignDocDirectAux): _61.SignDocDirectAuxAminoMsg; + fromProtoMsg(message: _61.SignDocDirectAuxProtoMsg): _61.SignDocDirectAux; + toProto(message: _61.SignDocDirectAux): Uint8Array; + toProtoMsg(message: _61.SignDocDirectAux): _61.SignDocDirectAuxProtoMsg; + }; + TxBody: { + typeUrl: string; + encode(message: _61.TxBody, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.TxBody; + fromPartial(object: Partial<_61.TxBody>): _61.TxBody; + fromAmino(object: _61.TxBodyAmino): _61.TxBody; + toAmino(message: _61.TxBody): _61.TxBodyAmino; + fromAminoMsg(object: _61.TxBodyAminoMsg): _61.TxBody; + toAminoMsg(message: _61.TxBody): _61.TxBodyAminoMsg; + fromProtoMsg(message: _61.TxBodyProtoMsg): _61.TxBody; + toProto(message: _61.TxBody): Uint8Array; + toProtoMsg(message: _61.TxBody): _61.TxBodyProtoMsg; + }; + AuthInfo: { + typeUrl: string; + encode(message: _61.AuthInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.AuthInfo; + fromPartial(object: Partial<_61.AuthInfo>): _61.AuthInfo; + fromAmino(object: _61.AuthInfoAmino): _61.AuthInfo; + toAmino(message: _61.AuthInfo): _61.AuthInfoAmino; + fromAminoMsg(object: _61.AuthInfoAminoMsg): _61.AuthInfo; + toAminoMsg(message: _61.AuthInfo): _61.AuthInfoAminoMsg; + fromProtoMsg(message: _61.AuthInfoProtoMsg): _61.AuthInfo; + toProto(message: _61.AuthInfo): Uint8Array; + toProtoMsg(message: _61.AuthInfo): _61.AuthInfoProtoMsg; + }; + SignerInfo: { + typeUrl: string; + encode(message: _61.SignerInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignerInfo; + fromPartial(object: Partial<_61.SignerInfo>): _61.SignerInfo; + fromAmino(object: _61.SignerInfoAmino): _61.SignerInfo; + toAmino(message: _61.SignerInfo): _61.SignerInfoAmino; + fromAminoMsg(object: _61.SignerInfoAminoMsg): _61.SignerInfo; + toAminoMsg(message: _61.SignerInfo): _61.SignerInfoAminoMsg; + fromProtoMsg(message: _61.SignerInfoProtoMsg): _61.SignerInfo; + toProto(message: _61.SignerInfo): Uint8Array; + toProtoMsg(message: _61.SignerInfo): _61.SignerInfoProtoMsg; + }; + ModeInfo: { + typeUrl: string; + encode(message: _61.ModeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo; + fromPartial(object: Partial<_61.ModeInfo>): _61.ModeInfo; + fromAmino(object: _61.ModeInfoAmino): _61.ModeInfo; + toAmino(message: _61.ModeInfo): _61.ModeInfoAmino; + fromAminoMsg(object: _61.ModeInfoAminoMsg): _61.ModeInfo; + toAminoMsg(message: _61.ModeInfo): _61.ModeInfoAminoMsg; + fromProtoMsg(message: _61.ModeInfoProtoMsg): _61.ModeInfo; + toProto(message: _61.ModeInfo): Uint8Array; + toProtoMsg(message: _61.ModeInfo): _61.ModeInfoProtoMsg; + }; + ModeInfo_Single: { + typeUrl: string; + encode(message: _61.ModeInfo_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo_Single; + fromPartial(object: Partial<_61.ModeInfo_Single>): _61.ModeInfo_Single; + fromAmino(object: _61.ModeInfo_SingleAmino): _61.ModeInfo_Single; + toAmino(message: _61.ModeInfo_Single): _61.ModeInfo_SingleAmino; + fromAminoMsg(object: _61.ModeInfo_SingleAminoMsg): _61.ModeInfo_Single; + toAminoMsg(message: _61.ModeInfo_Single): _61.ModeInfo_SingleAminoMsg; + fromProtoMsg(message: _61.ModeInfo_SingleProtoMsg): _61.ModeInfo_Single; + toProto(message: _61.ModeInfo_Single): Uint8Array; + toProtoMsg(message: _61.ModeInfo_Single): _61.ModeInfo_SingleProtoMsg; + }; + ModeInfo_Multi: { + typeUrl: string; + encode(message: _61.ModeInfo_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo_Multi; + fromPartial(object: Partial<_61.ModeInfo_Multi>): _61.ModeInfo_Multi; + fromAmino(object: _61.ModeInfo_MultiAmino): _61.ModeInfo_Multi; + toAmino(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiAmino; + fromAminoMsg(object: _61.ModeInfo_MultiAminoMsg): _61.ModeInfo_Multi; + toAminoMsg(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiAminoMsg; + fromProtoMsg(message: _61.ModeInfo_MultiProtoMsg): _61.ModeInfo_Multi; + toProto(message: _61.ModeInfo_Multi): Uint8Array; + toProtoMsg(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiProtoMsg; + }; + Fee: { + typeUrl: string; + encode(message: _61.Fee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Fee; + fromPartial(object: Partial<_61.Fee>): _61.Fee; + fromAmino(object: _61.FeeAmino): _61.Fee; + toAmino(message: _61.Fee): _61.FeeAmino; + fromAminoMsg(object: _61.FeeAminoMsg): _61.Fee; + toAminoMsg(message: _61.Fee): _61.FeeAminoMsg; + fromProtoMsg(message: _61.FeeProtoMsg): _61.Fee; + toProto(message: _61.Fee): Uint8Array; + toProtoMsg(message: _61.Fee): _61.FeeProtoMsg; + }; + Tip: { + typeUrl: string; + encode(message: _61.Tip, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Tip; + fromPartial(object: Partial<_61.Tip>): _61.Tip; + fromAmino(object: _61.TipAmino): _61.Tip; + toAmino(message: _61.Tip): _61.TipAmino; + fromAminoMsg(object: _61.TipAminoMsg): _61.Tip; + toAminoMsg(message: _61.Tip): _61.TipAminoMsg; + fromProtoMsg(message: _61.TipProtoMsg): _61.Tip; + toProto(message: _61.Tip): Uint8Array; + toProtoMsg(message: _61.Tip): _61.TipProtoMsg; + }; + AuxSignerData: { + typeUrl: string; + encode(message: _61.AuxSignerData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.AuxSignerData; + fromPartial(object: Partial<_61.AuxSignerData>): _61.AuxSignerData; + fromAmino(object: _61.AuxSignerDataAmino): _61.AuxSignerData; + toAmino(message: _61.AuxSignerData): _61.AuxSignerDataAmino; + fromAminoMsg(object: _61.AuxSignerDataAminoMsg): _61.AuxSignerData; + toAminoMsg(message: _61.AuxSignerData): _61.AuxSignerDataAminoMsg; + fromProtoMsg(message: _61.AuxSignerDataProtoMsg): _61.AuxSignerData; + toProto(message: _61.AuxSignerData): Uint8Array; + toProtoMsg(message: _61.AuxSignerData): _61.AuxSignerDataProtoMsg; + }; + orderByFromJSON(object: any): _60.OrderBy; + orderByToJSON(object: _60.OrderBy): string; + broadcastModeFromJSON(object: any): _60.BroadcastMode; + broadcastModeToJSON(object: _60.BroadcastMode): string; + OrderBy: typeof _60.OrderBy; + OrderBySDKType: typeof _60.OrderBy; + OrderByAmino: typeof _60.OrderBy; + BroadcastMode: typeof _60.BroadcastMode; + BroadcastModeSDKType: typeof _60.BroadcastMode; + BroadcastModeAmino: typeof _60.BroadcastMode; + GetTxsEventRequest: { + typeUrl: string; + encode(message: _60.GetTxsEventRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxsEventRequest; + fromPartial(object: Partial<_60.GetTxsEventRequest>): _60.GetTxsEventRequest; + fromAmino(object: _60.GetTxsEventRequestAmino): _60.GetTxsEventRequest; + toAmino(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestAmino; + fromAminoMsg(object: _60.GetTxsEventRequestAminoMsg): _60.GetTxsEventRequest; + toAminoMsg(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestAminoMsg; + fromProtoMsg(message: _60.GetTxsEventRequestProtoMsg): _60.GetTxsEventRequest; + toProto(message: _60.GetTxsEventRequest): Uint8Array; + toProtoMsg(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestProtoMsg; + }; + GetTxsEventResponse: { + typeUrl: string; + encode(message: _60.GetTxsEventResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxsEventResponse; + fromPartial(object: Partial<_60.GetTxsEventResponse>): _60.GetTxsEventResponse; + fromAmino(object: _60.GetTxsEventResponseAmino): _60.GetTxsEventResponse; + toAmino(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseAmino; + fromAminoMsg(object: _60.GetTxsEventResponseAminoMsg): _60.GetTxsEventResponse; + toAminoMsg(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseAminoMsg; + fromProtoMsg(message: _60.GetTxsEventResponseProtoMsg): _60.GetTxsEventResponse; + toProto(message: _60.GetTxsEventResponse): Uint8Array; + toProtoMsg(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseProtoMsg; + }; + BroadcastTxRequest: { + typeUrl: string; + encode(message: _60.BroadcastTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.BroadcastTxRequest; + fromPartial(object: Partial<_60.BroadcastTxRequest>): _60.BroadcastTxRequest; + fromAmino(object: _60.BroadcastTxRequestAmino): _60.BroadcastTxRequest; + toAmino(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestAmino; + fromAminoMsg(object: _60.BroadcastTxRequestAminoMsg): _60.BroadcastTxRequest; + toAminoMsg(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestAminoMsg; + fromProtoMsg(message: _60.BroadcastTxRequestProtoMsg): _60.BroadcastTxRequest; + toProto(message: _60.BroadcastTxRequest): Uint8Array; + toProtoMsg(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestProtoMsg; + }; + BroadcastTxResponse: { + typeUrl: string; + encode(message: _60.BroadcastTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.BroadcastTxResponse; + fromPartial(object: Partial<_60.BroadcastTxResponse>): _60.BroadcastTxResponse; + fromAmino(object: _60.BroadcastTxResponseAmino): _60.BroadcastTxResponse; + toAmino(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseAmino; + fromAminoMsg(object: _60.BroadcastTxResponseAminoMsg): _60.BroadcastTxResponse; + toAminoMsg(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseAminoMsg; + fromProtoMsg(message: _60.BroadcastTxResponseProtoMsg): _60.BroadcastTxResponse; + toProto(message: _60.BroadcastTxResponse): Uint8Array; + toProtoMsg(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseProtoMsg; + }; + SimulateRequest: { + typeUrl: string; + encode(message: _60.SimulateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.SimulateRequest; + fromPartial(object: Partial<_60.SimulateRequest>): _60.SimulateRequest; + fromAmino(object: _60.SimulateRequestAmino): _60.SimulateRequest; + toAmino(message: _60.SimulateRequest): _60.SimulateRequestAmino; + fromAminoMsg(object: _60.SimulateRequestAminoMsg): _60.SimulateRequest; + toAminoMsg(message: _60.SimulateRequest): _60.SimulateRequestAminoMsg; + fromProtoMsg(message: _60.SimulateRequestProtoMsg): _60.SimulateRequest; + toProto(message: _60.SimulateRequest): Uint8Array; + toProtoMsg(message: _60.SimulateRequest): _60.SimulateRequestProtoMsg; + }; + SimulateResponse: { + typeUrl: string; + encode(message: _60.SimulateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.SimulateResponse; + fromPartial(object: Partial<_60.SimulateResponse>): _60.SimulateResponse; + fromAmino(object: _60.SimulateResponseAmino): _60.SimulateResponse; + toAmino(message: _60.SimulateResponse): _60.SimulateResponseAmino; + fromAminoMsg(object: _60.SimulateResponseAminoMsg): _60.SimulateResponse; + toAminoMsg(message: _60.SimulateResponse): _60.SimulateResponseAminoMsg; + fromProtoMsg(message: _60.SimulateResponseProtoMsg): _60.SimulateResponse; + toProto(message: _60.SimulateResponse): Uint8Array; + toProtoMsg(message: _60.SimulateResponse): _60.SimulateResponseProtoMsg; + }; + GetTxRequest: { + typeUrl: string; + encode(message: _60.GetTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxRequest; + fromPartial(object: Partial<_60.GetTxRequest>): _60.GetTxRequest; + fromAmino(object: _60.GetTxRequestAmino): _60.GetTxRequest; + toAmino(message: _60.GetTxRequest): _60.GetTxRequestAmino; + fromAminoMsg(object: _60.GetTxRequestAminoMsg): _60.GetTxRequest; + toAminoMsg(message: _60.GetTxRequest): _60.GetTxRequestAminoMsg; + fromProtoMsg(message: _60.GetTxRequestProtoMsg): _60.GetTxRequest; + toProto(message: _60.GetTxRequest): Uint8Array; + toProtoMsg(message: _60.GetTxRequest): _60.GetTxRequestProtoMsg; + }; + GetTxResponse: { + typeUrl: string; + encode(message: _60.GetTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxResponse; + fromPartial(object: Partial<_60.GetTxResponse>): _60.GetTxResponse; + fromAmino(object: _60.GetTxResponseAmino): _60.GetTxResponse; + toAmino(message: _60.GetTxResponse): _60.GetTxResponseAmino; + fromAminoMsg(object: _60.GetTxResponseAminoMsg): _60.GetTxResponse; + toAminoMsg(message: _60.GetTxResponse): _60.GetTxResponseAminoMsg; + fromProtoMsg(message: _60.GetTxResponseProtoMsg): _60.GetTxResponse; + toProto(message: _60.GetTxResponse): Uint8Array; + toProtoMsg(message: _60.GetTxResponse): _60.GetTxResponseProtoMsg; + }; + GetBlockWithTxsRequest: { + typeUrl: string; + encode(message: _60.GetBlockWithTxsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetBlockWithTxsRequest; + fromPartial(object: Partial<_60.GetBlockWithTxsRequest>): _60.GetBlockWithTxsRequest; + fromAmino(object: _60.GetBlockWithTxsRequestAmino): _60.GetBlockWithTxsRequest; + toAmino(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestAmino; + fromAminoMsg(object: _60.GetBlockWithTxsRequestAminoMsg): _60.GetBlockWithTxsRequest; + toAminoMsg(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestAminoMsg; + fromProtoMsg(message: _60.GetBlockWithTxsRequestProtoMsg): _60.GetBlockWithTxsRequest; + toProto(message: _60.GetBlockWithTxsRequest): Uint8Array; + toProtoMsg(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestProtoMsg; + }; + GetBlockWithTxsResponse: { + typeUrl: string; + encode(message: _60.GetBlockWithTxsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetBlockWithTxsResponse; + fromPartial(object: Partial<_60.GetBlockWithTxsResponse>): _60.GetBlockWithTxsResponse; + fromAmino(object: _60.GetBlockWithTxsResponseAmino): _60.GetBlockWithTxsResponse; + toAmino(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseAmino; + fromAminoMsg(object: _60.GetBlockWithTxsResponseAminoMsg): _60.GetBlockWithTxsResponse; + toAminoMsg(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseAminoMsg; + fromProtoMsg(message: _60.GetBlockWithTxsResponseProtoMsg): _60.GetBlockWithTxsResponse; + toProto(message: _60.GetBlockWithTxsResponse): Uint8Array; + toProtoMsg(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseProtoMsg; + }; + }; + } + namespace upgrade { + const v1beta1: { + MsgClientImpl: typeof _175.MsgClientImpl; + QueryClientImpl: typeof _166.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + currentPlan(request?: _62.QueryCurrentPlanRequest): Promise<_62.QueryCurrentPlanResponse>; + appliedPlan(request: _62.QueryAppliedPlanRequest): Promise<_62.QueryAppliedPlanResponse>; + upgradedConsensusState(request: _62.QueryUpgradedConsensusStateRequest): Promise<_62.QueryUpgradedConsensusStateResponse>; + moduleVersions(request: _62.QueryModuleVersionsRequest): Promise<_62.QueryModuleVersionsResponse>; + authority(request?: _62.QueryAuthorityRequest): Promise<_62.QueryAuthorityResponse>; + }; + LCDQueryClient: typeof _152.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + softwareUpgrade(value: _63.MsgSoftwareUpgrade): { + typeUrl: string; + value: Uint8Array; + }; + cancelUpgrade(value: _63.MsgCancelUpgrade): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + softwareUpgrade(value: _63.MsgSoftwareUpgrade): { + typeUrl: string; + value: _63.MsgSoftwareUpgrade; + }; + cancelUpgrade(value: _63.MsgCancelUpgrade): { + typeUrl: string; + value: _63.MsgCancelUpgrade; + }; + }; + fromPartial: { + softwareUpgrade(value: _63.MsgSoftwareUpgrade): { + typeUrl: string; + value: _63.MsgSoftwareUpgrade; + }; + cancelUpgrade(value: _63.MsgCancelUpgrade): { + typeUrl: string; + value: _63.MsgCancelUpgrade; + }; + }; + }; + AminoConverter: { + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: string; + toAmino: (message: _63.MsgSoftwareUpgrade) => _63.MsgSoftwareUpgradeAmino; + fromAmino: (object: _63.MsgSoftwareUpgradeAmino) => _63.MsgSoftwareUpgrade; + }; + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: string; + toAmino: (message: _63.MsgCancelUpgrade) => _63.MsgCancelUpgradeAmino; + fromAmino: (object: _63.MsgCancelUpgradeAmino) => _63.MsgCancelUpgrade; + }; + }; + Plan: { + typeUrl: string; + encode(message: _64.Plan, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.Plan; + fromPartial(object: Partial<_64.Plan>): _64.Plan; + fromAmino(object: _64.PlanAmino): _64.Plan; + toAmino(message: _64.Plan): _64.PlanAmino; + fromAminoMsg(object: _64.PlanAminoMsg): _64.Plan; + toAminoMsg(message: _64.Plan): _64.PlanAminoMsg; + fromProtoMsg(message: _64.PlanProtoMsg): _64.Plan; + toProto(message: _64.Plan): Uint8Array; + toProtoMsg(message: _64.Plan): _64.PlanProtoMsg; + }; + SoftwareUpgradeProposal: { + typeUrl: string; + encode(message: _64.SoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.SoftwareUpgradeProposal; + fromPartial(object: Partial<_64.SoftwareUpgradeProposal>): _64.SoftwareUpgradeProposal; + fromAmino(object: _64.SoftwareUpgradeProposalAmino): _64.SoftwareUpgradeProposal; + toAmino(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalAmino; + fromAminoMsg(object: _64.SoftwareUpgradeProposalAminoMsg): _64.SoftwareUpgradeProposal; + toAminoMsg(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalAminoMsg; + fromProtoMsg(message: _64.SoftwareUpgradeProposalProtoMsg): _64.SoftwareUpgradeProposal; + toProto(message: _64.SoftwareUpgradeProposal): Uint8Array; + toProtoMsg(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalProtoMsg; + }; + CancelSoftwareUpgradeProposal: { + typeUrl: string; + encode(message: _64.CancelSoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.CancelSoftwareUpgradeProposal; + fromPartial(object: Partial<_64.CancelSoftwareUpgradeProposal>): _64.CancelSoftwareUpgradeProposal; + fromAmino(object: _64.CancelSoftwareUpgradeProposalAmino): _64.CancelSoftwareUpgradeProposal; + toAmino(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalAmino; + fromAminoMsg(object: _64.CancelSoftwareUpgradeProposalAminoMsg): _64.CancelSoftwareUpgradeProposal; + toAminoMsg(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalAminoMsg; + fromProtoMsg(message: _64.CancelSoftwareUpgradeProposalProtoMsg): _64.CancelSoftwareUpgradeProposal; + toProto(message: _64.CancelSoftwareUpgradeProposal): Uint8Array; + toProtoMsg(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalProtoMsg; + }; + ModuleVersion: { + typeUrl: string; + encode(message: _64.ModuleVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.ModuleVersion; + fromPartial(object: Partial<_64.ModuleVersion>): _64.ModuleVersion; + fromAmino(object: _64.ModuleVersionAmino): _64.ModuleVersion; + toAmino(message: _64.ModuleVersion): _64.ModuleVersionAmino; + fromAminoMsg(object: _64.ModuleVersionAminoMsg): _64.ModuleVersion; + toAminoMsg(message: _64.ModuleVersion): _64.ModuleVersionAminoMsg; + fromProtoMsg(message: _64.ModuleVersionProtoMsg): _64.ModuleVersion; + toProto(message: _64.ModuleVersion): Uint8Array; + toProtoMsg(message: _64.ModuleVersion): _64.ModuleVersionProtoMsg; + }; + MsgSoftwareUpgrade: { + typeUrl: string; + encode(message: _63.MsgSoftwareUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgSoftwareUpgrade; + fromPartial(object: Partial<_63.MsgSoftwareUpgrade>): _63.MsgSoftwareUpgrade; + fromAmino(object: _63.MsgSoftwareUpgradeAmino): _63.MsgSoftwareUpgrade; + toAmino(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeAmino; + fromAminoMsg(object: _63.MsgSoftwareUpgradeAminoMsg): _63.MsgSoftwareUpgrade; + toAminoMsg(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeAminoMsg; + fromProtoMsg(message: _63.MsgSoftwareUpgradeProtoMsg): _63.MsgSoftwareUpgrade; + toProto(message: _63.MsgSoftwareUpgrade): Uint8Array; + toProtoMsg(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeProtoMsg; + }; + MsgSoftwareUpgradeResponse: { + typeUrl: string; + encode(_: _63.MsgSoftwareUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgSoftwareUpgradeResponse; + fromPartial(_: Partial<_63.MsgSoftwareUpgradeResponse>): _63.MsgSoftwareUpgradeResponse; + fromAmino(_: _63.MsgSoftwareUpgradeResponseAmino): _63.MsgSoftwareUpgradeResponse; + toAmino(_: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseAmino; + fromAminoMsg(object: _63.MsgSoftwareUpgradeResponseAminoMsg): _63.MsgSoftwareUpgradeResponse; + toAminoMsg(message: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseAminoMsg; + fromProtoMsg(message: _63.MsgSoftwareUpgradeResponseProtoMsg): _63.MsgSoftwareUpgradeResponse; + toProto(message: _63.MsgSoftwareUpgradeResponse): Uint8Array; + toProtoMsg(message: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseProtoMsg; + }; + MsgCancelUpgrade: { + typeUrl: string; + encode(message: _63.MsgCancelUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgCancelUpgrade; + fromPartial(object: Partial<_63.MsgCancelUpgrade>): _63.MsgCancelUpgrade; + fromAmino(object: _63.MsgCancelUpgradeAmino): _63.MsgCancelUpgrade; + toAmino(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeAmino; + fromAminoMsg(object: _63.MsgCancelUpgradeAminoMsg): _63.MsgCancelUpgrade; + toAminoMsg(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeAminoMsg; + fromProtoMsg(message: _63.MsgCancelUpgradeProtoMsg): _63.MsgCancelUpgrade; + toProto(message: _63.MsgCancelUpgrade): Uint8Array; + toProtoMsg(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeProtoMsg; + }; + MsgCancelUpgradeResponse: { + typeUrl: string; + encode(_: _63.MsgCancelUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgCancelUpgradeResponse; + fromPartial(_: Partial<_63.MsgCancelUpgradeResponse>): _63.MsgCancelUpgradeResponse; + fromAmino(_: _63.MsgCancelUpgradeResponseAmino): _63.MsgCancelUpgradeResponse; + toAmino(_: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseAmino; + fromAminoMsg(object: _63.MsgCancelUpgradeResponseAminoMsg): _63.MsgCancelUpgradeResponse; + toAminoMsg(message: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseAminoMsg; + fromProtoMsg(message: _63.MsgCancelUpgradeResponseProtoMsg): _63.MsgCancelUpgradeResponse; + toProto(message: _63.MsgCancelUpgradeResponse): Uint8Array; + toProtoMsg(message: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseProtoMsg; + }; + QueryCurrentPlanRequest: { + typeUrl: string; + encode(_: _62.QueryCurrentPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryCurrentPlanRequest; + fromPartial(_: Partial<_62.QueryCurrentPlanRequest>): _62.QueryCurrentPlanRequest; + fromAmino(_: _62.QueryCurrentPlanRequestAmino): _62.QueryCurrentPlanRequest; + toAmino(_: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestAmino; + fromAminoMsg(object: _62.QueryCurrentPlanRequestAminoMsg): _62.QueryCurrentPlanRequest; + toAminoMsg(message: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestAminoMsg; + fromProtoMsg(message: _62.QueryCurrentPlanRequestProtoMsg): _62.QueryCurrentPlanRequest; + toProto(message: _62.QueryCurrentPlanRequest): Uint8Array; + toProtoMsg(message: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestProtoMsg; + }; + QueryCurrentPlanResponse: { + typeUrl: string; + encode(message: _62.QueryCurrentPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryCurrentPlanResponse; + fromPartial(object: Partial<_62.QueryCurrentPlanResponse>): _62.QueryCurrentPlanResponse; + fromAmino(object: _62.QueryCurrentPlanResponseAmino): _62.QueryCurrentPlanResponse; + toAmino(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseAmino; + fromAminoMsg(object: _62.QueryCurrentPlanResponseAminoMsg): _62.QueryCurrentPlanResponse; + toAminoMsg(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseAminoMsg; + fromProtoMsg(message: _62.QueryCurrentPlanResponseProtoMsg): _62.QueryCurrentPlanResponse; + toProto(message: _62.QueryCurrentPlanResponse): Uint8Array; + toProtoMsg(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseProtoMsg; + }; + QueryAppliedPlanRequest: { + typeUrl: string; + encode(message: _62.QueryAppliedPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAppliedPlanRequest; + fromPartial(object: Partial<_62.QueryAppliedPlanRequest>): _62.QueryAppliedPlanRequest; + fromAmino(object: _62.QueryAppliedPlanRequestAmino): _62.QueryAppliedPlanRequest; + toAmino(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestAmino; + fromAminoMsg(object: _62.QueryAppliedPlanRequestAminoMsg): _62.QueryAppliedPlanRequest; + toAminoMsg(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestAminoMsg; + fromProtoMsg(message: _62.QueryAppliedPlanRequestProtoMsg): _62.QueryAppliedPlanRequest; + toProto(message: _62.QueryAppliedPlanRequest): Uint8Array; + toProtoMsg(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestProtoMsg; + }; + QueryAppliedPlanResponse: { + typeUrl: string; + encode(message: _62.QueryAppliedPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAppliedPlanResponse; + fromPartial(object: Partial<_62.QueryAppliedPlanResponse>): _62.QueryAppliedPlanResponse; + fromAmino(object: _62.QueryAppliedPlanResponseAmino): _62.QueryAppliedPlanResponse; + toAmino(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseAmino; + fromAminoMsg(object: _62.QueryAppliedPlanResponseAminoMsg): _62.QueryAppliedPlanResponse; + toAminoMsg(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseAminoMsg; + fromProtoMsg(message: _62.QueryAppliedPlanResponseProtoMsg): _62.QueryAppliedPlanResponse; + toProto(message: _62.QueryAppliedPlanResponse): Uint8Array; + toProtoMsg(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseProtoMsg; + }; + QueryUpgradedConsensusStateRequest: { + typeUrl: string; + encode(message: _62.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryUpgradedConsensusStateRequest; + fromPartial(object: Partial<_62.QueryUpgradedConsensusStateRequest>): _62.QueryUpgradedConsensusStateRequest; + fromAmino(object: _62.QueryUpgradedConsensusStateRequestAmino): _62.QueryUpgradedConsensusStateRequest; + toAmino(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestAmino; + fromAminoMsg(object: _62.QueryUpgradedConsensusStateRequestAminoMsg): _62.QueryUpgradedConsensusStateRequest; + toAminoMsg(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestAminoMsg; + fromProtoMsg(message: _62.QueryUpgradedConsensusStateRequestProtoMsg): _62.QueryUpgradedConsensusStateRequest; + toProto(message: _62.QueryUpgradedConsensusStateRequest): Uint8Array; + toProtoMsg(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestProtoMsg; + }; + QueryUpgradedConsensusStateResponse: { + typeUrl: string; + encode(message: _62.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryUpgradedConsensusStateResponse; + fromPartial(object: Partial<_62.QueryUpgradedConsensusStateResponse>): _62.QueryUpgradedConsensusStateResponse; + fromAmino(object: _62.QueryUpgradedConsensusStateResponseAmino): _62.QueryUpgradedConsensusStateResponse; + toAmino(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseAmino; + fromAminoMsg(object: _62.QueryUpgradedConsensusStateResponseAminoMsg): _62.QueryUpgradedConsensusStateResponse; + toAminoMsg(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseAminoMsg; + fromProtoMsg(message: _62.QueryUpgradedConsensusStateResponseProtoMsg): _62.QueryUpgradedConsensusStateResponse; + toProto(message: _62.QueryUpgradedConsensusStateResponse): Uint8Array; + toProtoMsg(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseProtoMsg; + }; + QueryModuleVersionsRequest: { + typeUrl: string; + encode(message: _62.QueryModuleVersionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryModuleVersionsRequest; + fromPartial(object: Partial<_62.QueryModuleVersionsRequest>): _62.QueryModuleVersionsRequest; + fromAmino(object: _62.QueryModuleVersionsRequestAmino): _62.QueryModuleVersionsRequest; + toAmino(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestAmino; + fromAminoMsg(object: _62.QueryModuleVersionsRequestAminoMsg): _62.QueryModuleVersionsRequest; + toAminoMsg(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestAminoMsg; + fromProtoMsg(message: _62.QueryModuleVersionsRequestProtoMsg): _62.QueryModuleVersionsRequest; + toProto(message: _62.QueryModuleVersionsRequest): Uint8Array; + toProtoMsg(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestProtoMsg; + }; + QueryModuleVersionsResponse: { + typeUrl: string; + encode(message: _62.QueryModuleVersionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryModuleVersionsResponse; + fromPartial(object: Partial<_62.QueryModuleVersionsResponse>): _62.QueryModuleVersionsResponse; + fromAmino(object: _62.QueryModuleVersionsResponseAmino): _62.QueryModuleVersionsResponse; + toAmino(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseAmino; + fromAminoMsg(object: _62.QueryModuleVersionsResponseAminoMsg): _62.QueryModuleVersionsResponse; + toAminoMsg(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseAminoMsg; + fromProtoMsg(message: _62.QueryModuleVersionsResponseProtoMsg): _62.QueryModuleVersionsResponse; + toProto(message: _62.QueryModuleVersionsResponse): Uint8Array; + toProtoMsg(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseProtoMsg; + }; + QueryAuthorityRequest: { + typeUrl: string; + encode(_: _62.QueryAuthorityRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAuthorityRequest; + fromPartial(_: Partial<_62.QueryAuthorityRequest>): _62.QueryAuthorityRequest; + fromAmino(_: _62.QueryAuthorityRequestAmino): _62.QueryAuthorityRequest; + toAmino(_: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestAmino; + fromAminoMsg(object: _62.QueryAuthorityRequestAminoMsg): _62.QueryAuthorityRequest; + toAminoMsg(message: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestAminoMsg; + fromProtoMsg(message: _62.QueryAuthorityRequestProtoMsg): _62.QueryAuthorityRequest; + toProto(message: _62.QueryAuthorityRequest): Uint8Array; + toProtoMsg(message: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestProtoMsg; + }; + QueryAuthorityResponse: { + typeUrl: string; + encode(message: _62.QueryAuthorityResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAuthorityResponse; + fromPartial(object: Partial<_62.QueryAuthorityResponse>): _62.QueryAuthorityResponse; + fromAmino(object: _62.QueryAuthorityResponseAmino): _62.QueryAuthorityResponse; + toAmino(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseAmino; + fromAminoMsg(object: _62.QueryAuthorityResponseAminoMsg): _62.QueryAuthorityResponse; + toAminoMsg(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseAminoMsg; + fromProtoMsg(message: _62.QueryAuthorityResponseProtoMsg): _62.QueryAuthorityResponse; + toProto(message: _62.QueryAuthorityResponse): Uint8Array; + toProtoMsg(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseProtoMsg; + }; + }; + } + namespace vesting { + const v1beta1: { + MsgClientImpl: typeof _176.MsgClientImpl; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createVestingAccount(value: _65.MsgCreateVestingAccount): { + typeUrl: string; + value: Uint8Array; + }; + createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: Uint8Array; + }; + createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createVestingAccount(value: _65.MsgCreateVestingAccount): { + typeUrl: string; + value: _65.MsgCreateVestingAccount; + }; + createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: _65.MsgCreatePermanentLockedAccount; + }; + createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: _65.MsgCreatePeriodicVestingAccount; + }; + }; + fromPartial: { + createVestingAccount(value: _65.MsgCreateVestingAccount): { + typeUrl: string; + value: _65.MsgCreateVestingAccount; + }; + createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: _65.MsgCreatePermanentLockedAccount; + }; + createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: _65.MsgCreatePeriodicVestingAccount; + }; + }; + }; + AminoConverter: { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: string; + toAmino: (message: _65.MsgCreateVestingAccount) => _65.MsgCreateVestingAccountAmino; + fromAmino: (object: _65.MsgCreateVestingAccountAmino) => _65.MsgCreateVestingAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: string; + toAmino: (message: _65.MsgCreatePermanentLockedAccount) => _65.MsgCreatePermanentLockedAccountAmino; + fromAmino: (object: _65.MsgCreatePermanentLockedAccountAmino) => _65.MsgCreatePermanentLockedAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: string; + toAmino: (message: _65.MsgCreatePeriodicVestingAccount) => _65.MsgCreatePeriodicVestingAccountAmino; + fromAmino: (object: _65.MsgCreatePeriodicVestingAccountAmino) => _65.MsgCreatePeriodicVestingAccount; + }; + }; + BaseVestingAccount: { + typeUrl: string; + encode(message: _66.BaseVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.BaseVestingAccount; + fromPartial(object: Partial<_66.BaseVestingAccount>): _66.BaseVestingAccount; + fromAmino(object: _66.BaseVestingAccountAmino): _66.BaseVestingAccount; + toAmino(message: _66.BaseVestingAccount): _66.BaseVestingAccountAmino; + fromAminoMsg(object: _66.BaseVestingAccountAminoMsg): _66.BaseVestingAccount; + toAminoMsg(message: _66.BaseVestingAccount): _66.BaseVestingAccountAminoMsg; + fromProtoMsg(message: _66.BaseVestingAccountProtoMsg): _66.BaseVestingAccount; + toProto(message: _66.BaseVestingAccount): Uint8Array; + toProtoMsg(message: _66.BaseVestingAccount): _66.BaseVestingAccountProtoMsg; + }; + ContinuousVestingAccount: { + typeUrl: string; + encode(message: _66.ContinuousVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.ContinuousVestingAccount; + fromPartial(object: Partial<_66.ContinuousVestingAccount>): _66.ContinuousVestingAccount; + fromAmino(object: _66.ContinuousVestingAccountAmino): _66.ContinuousVestingAccount; + toAmino(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountAmino; + fromAminoMsg(object: _66.ContinuousVestingAccountAminoMsg): _66.ContinuousVestingAccount; + toAminoMsg(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountAminoMsg; + fromProtoMsg(message: _66.ContinuousVestingAccountProtoMsg): _66.ContinuousVestingAccount; + toProto(message: _66.ContinuousVestingAccount): Uint8Array; + toProtoMsg(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountProtoMsg; + }; + DelayedVestingAccount: { + typeUrl: string; + encode(message: _66.DelayedVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.DelayedVestingAccount; + fromPartial(object: Partial<_66.DelayedVestingAccount>): _66.DelayedVestingAccount; + fromAmino(object: _66.DelayedVestingAccountAmino): _66.DelayedVestingAccount; + toAmino(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountAmino; + fromAminoMsg(object: _66.DelayedVestingAccountAminoMsg): _66.DelayedVestingAccount; + toAminoMsg(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountAminoMsg; + fromProtoMsg(message: _66.DelayedVestingAccountProtoMsg): _66.DelayedVestingAccount; + toProto(message: _66.DelayedVestingAccount): Uint8Array; + toProtoMsg(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountProtoMsg; + }; + Period: { + typeUrl: string; + encode(message: _66.Period, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.Period; + fromPartial(object: Partial<_66.Period>): _66.Period; + fromAmino(object: _66.PeriodAmino): _66.Period; + toAmino(message: _66.Period): _66.PeriodAmino; + fromAminoMsg(object: _66.PeriodAminoMsg): _66.Period; + toAminoMsg(message: _66.Period): _66.PeriodAminoMsg; + fromProtoMsg(message: _66.PeriodProtoMsg): _66.Period; + toProto(message: _66.Period): Uint8Array; + toProtoMsg(message: _66.Period): _66.PeriodProtoMsg; + }; + PeriodicVestingAccount: { + typeUrl: string; + encode(message: _66.PeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.PeriodicVestingAccount; + fromPartial(object: Partial<_66.PeriodicVestingAccount>): _66.PeriodicVestingAccount; + fromAmino(object: _66.PeriodicVestingAccountAmino): _66.PeriodicVestingAccount; + toAmino(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountAmino; + fromAminoMsg(object: _66.PeriodicVestingAccountAminoMsg): _66.PeriodicVestingAccount; + toAminoMsg(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountAminoMsg; + fromProtoMsg(message: _66.PeriodicVestingAccountProtoMsg): _66.PeriodicVestingAccount; + toProto(message: _66.PeriodicVestingAccount): Uint8Array; + toProtoMsg(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountProtoMsg; + }; + PermanentLockedAccount: { + typeUrl: string; + encode(message: _66.PermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.PermanentLockedAccount; + fromPartial(object: Partial<_66.PermanentLockedAccount>): _66.PermanentLockedAccount; + fromAmino(object: _66.PermanentLockedAccountAmino): _66.PermanentLockedAccount; + toAmino(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountAmino; + fromAminoMsg(object: _66.PermanentLockedAccountAminoMsg): _66.PermanentLockedAccount; + toAminoMsg(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountAminoMsg; + fromProtoMsg(message: _66.PermanentLockedAccountProtoMsg): _66.PermanentLockedAccount; + toProto(message: _66.PermanentLockedAccount): Uint8Array; + toProtoMsg(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountProtoMsg; + }; + MsgCreateVestingAccount: { + typeUrl: string; + encode(message: _65.MsgCreateVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreateVestingAccount; + fromPartial(object: Partial<_65.MsgCreateVestingAccount>): _65.MsgCreateVestingAccount; + fromAmino(object: _65.MsgCreateVestingAccountAmino): _65.MsgCreateVestingAccount; + toAmino(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountAmino; + fromAminoMsg(object: _65.MsgCreateVestingAccountAminoMsg): _65.MsgCreateVestingAccount; + toAminoMsg(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountAminoMsg; + fromProtoMsg(message: _65.MsgCreateVestingAccountProtoMsg): _65.MsgCreateVestingAccount; + toProto(message: _65.MsgCreateVestingAccount): Uint8Array; + toProtoMsg(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountProtoMsg; + }; + MsgCreateVestingAccountResponse: { + typeUrl: string; + encode(_: _65.MsgCreateVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreateVestingAccountResponse; + fromPartial(_: Partial<_65.MsgCreateVestingAccountResponse>): _65.MsgCreateVestingAccountResponse; + fromAmino(_: _65.MsgCreateVestingAccountResponseAmino): _65.MsgCreateVestingAccountResponse; + toAmino(_: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseAmino; + fromAminoMsg(object: _65.MsgCreateVestingAccountResponseAminoMsg): _65.MsgCreateVestingAccountResponse; + toAminoMsg(message: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseAminoMsg; + fromProtoMsg(message: _65.MsgCreateVestingAccountResponseProtoMsg): _65.MsgCreateVestingAccountResponse; + toProto(message: _65.MsgCreateVestingAccountResponse): Uint8Array; + toProtoMsg(message: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseProtoMsg; + }; + MsgCreatePermanentLockedAccount: { + typeUrl: string; + encode(message: _65.MsgCreatePermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePermanentLockedAccount; + fromPartial(object: Partial<_65.MsgCreatePermanentLockedAccount>): _65.MsgCreatePermanentLockedAccount; + fromAmino(object: _65.MsgCreatePermanentLockedAccountAmino): _65.MsgCreatePermanentLockedAccount; + toAmino(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountAmino; + fromAminoMsg(object: _65.MsgCreatePermanentLockedAccountAminoMsg): _65.MsgCreatePermanentLockedAccount; + toAminoMsg(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountAminoMsg; + fromProtoMsg(message: _65.MsgCreatePermanentLockedAccountProtoMsg): _65.MsgCreatePermanentLockedAccount; + toProto(message: _65.MsgCreatePermanentLockedAccount): Uint8Array; + toProtoMsg(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountProtoMsg; + }; + MsgCreatePermanentLockedAccountResponse: { + typeUrl: string; + encode(_: _65.MsgCreatePermanentLockedAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePermanentLockedAccountResponse; + fromPartial(_: Partial<_65.MsgCreatePermanentLockedAccountResponse>): _65.MsgCreatePermanentLockedAccountResponse; + fromAmino(_: _65.MsgCreatePermanentLockedAccountResponseAmino): _65.MsgCreatePermanentLockedAccountResponse; + toAmino(_: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseAmino; + fromAminoMsg(object: _65.MsgCreatePermanentLockedAccountResponseAminoMsg): _65.MsgCreatePermanentLockedAccountResponse; + toAminoMsg(message: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseAminoMsg; + fromProtoMsg(message: _65.MsgCreatePermanentLockedAccountResponseProtoMsg): _65.MsgCreatePermanentLockedAccountResponse; + toProto(message: _65.MsgCreatePermanentLockedAccountResponse): Uint8Array; + toProtoMsg(message: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseProtoMsg; + }; + MsgCreatePeriodicVestingAccount: { + typeUrl: string; + encode(message: _65.MsgCreatePeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePeriodicVestingAccount; + fromPartial(object: Partial<_65.MsgCreatePeriodicVestingAccount>): _65.MsgCreatePeriodicVestingAccount; + fromAmino(object: _65.MsgCreatePeriodicVestingAccountAmino): _65.MsgCreatePeriodicVestingAccount; + toAmino(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountAmino; + fromAminoMsg(object: _65.MsgCreatePeriodicVestingAccountAminoMsg): _65.MsgCreatePeriodicVestingAccount; + toAminoMsg(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountAminoMsg; + fromProtoMsg(message: _65.MsgCreatePeriodicVestingAccountProtoMsg): _65.MsgCreatePeriodicVestingAccount; + toProto(message: _65.MsgCreatePeriodicVestingAccount): Uint8Array; + toProtoMsg(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountProtoMsg; + }; + MsgCreatePeriodicVestingAccountResponse: { + typeUrl: string; + encode(_: _65.MsgCreatePeriodicVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePeriodicVestingAccountResponse; + fromPartial(_: Partial<_65.MsgCreatePeriodicVestingAccountResponse>): _65.MsgCreatePeriodicVestingAccountResponse; + fromAmino(_: _65.MsgCreatePeriodicVestingAccountResponseAmino): _65.MsgCreatePeriodicVestingAccountResponse; + toAmino(_: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseAmino; + fromAminoMsg(object: _65.MsgCreatePeriodicVestingAccountResponseAminoMsg): _65.MsgCreatePeriodicVestingAccountResponse; + toAminoMsg(message: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseAminoMsg; + fromProtoMsg(message: _65.MsgCreatePeriodicVestingAccountResponseProtoMsg): _65.MsgCreatePeriodicVestingAccountResponse; + toProto(message: _65.MsgCreatePeriodicVestingAccountResponse): Uint8Array; + toProtoMsg(message: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseProtoMsg; + }; + }; + } + const ClientFactory: { + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: _167.MsgClientImpl; + }; + bank: { + v1beta1: _168.MsgClientImpl; + }; + distribution: { + v1beta1: _169.MsgClientImpl; + }; + feegrant: { + v1beta1: _170.MsgClientImpl; + }; + gov: { + v1: _171.MsgClientImpl; + v1beta1: _172.MsgClientImpl; + }; + group: { + v1: _173.MsgClientImpl; + }; + staking: { + v1beta1: _174.MsgClientImpl; + }; + upgrade: { + v1beta1: _175.MsgClientImpl; + }; + vesting: { + v1beta1: _176.MsgClientImpl; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: _5.QueryAccountsRequest): Promise<_5.QueryAccountsResponse>; + account(request: _5.QueryAccountRequest): Promise<_5.QueryAccountResponse>; + accountAddressByID(request: _5.QueryAccountAddressByIDRequest): Promise<_5.QueryAccountAddressByIDResponse>; + params(request?: _5.QueryParamsRequest): Promise<_5.QueryParamsResponse>; + moduleAccounts(request?: _5.QueryModuleAccountsRequest): Promise<_5.QueryModuleAccountsResponse>; + moduleAccountByName(request: _5.QueryModuleAccountByNameRequest): Promise<_5.QueryModuleAccountByNameResponse>; + bech32Prefix(request?: _5.Bech32PrefixRequest): Promise<_5.Bech32PrefixResponse>; + addressBytesToString(request: _5.AddressBytesToStringRequest): Promise<_5.AddressBytesToStringResponse>; + addressStringToBytes(request: _5.AddressStringToBytesRequest): Promise<_5.AddressStringToBytesResponse>; + }; + }; + authz: { + v1beta1: { + grants(request: _9.QueryGrantsRequest): Promise<_9.QueryGrantsResponse>; + granterGrants(request: _9.QueryGranterGrantsRequest): Promise<_9.QueryGranterGrantsResponse>; + granteeGrants(request: _9.QueryGranteeGrantsRequest): Promise<_9.QueryGranteeGrantsResponse>; + }; + }; + bank: { + v1beta1: { + balance(request: _14.QueryBalanceRequest): Promise<_14.QueryBalanceResponse>; + allBalances(request: _14.QueryAllBalancesRequest): Promise<_14.QueryAllBalancesResponse>; + spendableBalances(request: _14.QuerySpendableBalancesRequest): Promise<_14.QuerySpendableBalancesResponse>; + totalSupply(request?: _14.QueryTotalSupplyRequest): Promise<_14.QueryTotalSupplyResponse>; + supplyOf(request: _14.QuerySupplyOfRequest): Promise<_14.QuerySupplyOfResponse>; + params(request?: _14.QueryParamsRequest): Promise<_14.QueryParamsResponse>; + denomMetadata(request: _14.QueryDenomMetadataRequest): Promise<_14.QueryDenomMetadataResponse>; + denomsMetadata(request?: _14.QueryDenomsMetadataRequest): Promise<_14.QueryDenomsMetadataResponse>; + denomOwners(request: _14.QueryDenomOwnersRequest): Promise<_14.QueryDenomOwnersResponse>; + }; + }; + base: { + node: { + v1beta1: { + config(request?: _17.ConfigRequest): Promise<_17.ConfigResponse>; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: _29.QueryParamsRequest): Promise<_29.QueryParamsResponse>; + validatorOutstandingRewards(request: _29.QueryValidatorOutstandingRewardsRequest): Promise<_29.QueryValidatorOutstandingRewardsResponse>; + validatorCommission(request: _29.QueryValidatorCommissionRequest): Promise<_29.QueryValidatorCommissionResponse>; + validatorSlashes(request: _29.QueryValidatorSlashesRequest): Promise<_29.QueryValidatorSlashesResponse>; + delegationRewards(request: _29.QueryDelegationRewardsRequest): Promise<_29.QueryDelegationRewardsResponse>; + delegationTotalRewards(request: _29.QueryDelegationTotalRewardsRequest): Promise<_29.QueryDelegationTotalRewardsResponse>; + delegatorValidators(request: _29.QueryDelegatorValidatorsRequest): Promise<_29.QueryDelegatorValidatorsResponse>; + delegatorWithdrawAddress(request: _29.QueryDelegatorWithdrawAddressRequest): Promise<_29.QueryDelegatorWithdrawAddressResponse>; + communityPool(request?: _29.QueryCommunityPoolRequest): Promise<_29.QueryCommunityPoolResponse>; + }; + }; + feegrant: { + v1beta1: { + allowance(request: _33.QueryAllowanceRequest): Promise<_33.QueryAllowanceResponse>; + allowances(request: _33.QueryAllowancesRequest): Promise<_33.QueryAllowancesResponse>; + allowancesByGranter(request: _33.QueryAllowancesByGranterRequest): Promise<_33.QueryAllowancesByGranterResponse>; + }; + }; + gov: { + v1: { + proposal(request: _37.QueryProposalRequest): Promise<_37.QueryProposalResponse>; + proposals(request: _37.QueryProposalsRequest): Promise<_37.QueryProposalsResponse>; + vote(request: _37.QueryVoteRequest): Promise<_37.QueryVoteResponse>; + votes(request: _37.QueryVotesRequest): Promise<_37.QueryVotesResponse>; + params(request: _37.QueryParamsRequest): Promise<_37.QueryParamsResponse>; + deposit(request: _37.QueryDepositRequest): Promise<_37.QueryDepositResponse>; + deposits(request: _37.QueryDepositsRequest): Promise<_37.QueryDepositsResponse>; + tallyResult(request: _37.QueryTallyResultRequest): Promise<_37.QueryTallyResultResponse>; + }; + v1beta1: { + proposal(request: _41.QueryProposalRequest): Promise<_41.QueryProposalResponse>; + proposals(request: _41.QueryProposalsRequest): Promise<_41.QueryProposalsResponse>; + vote(request: _41.QueryVoteRequest): Promise<_41.QueryVoteResponse>; + votes(request: _41.QueryVotesRequest): Promise<_41.QueryVotesResponse>; + params(request: _41.QueryParamsRequest): Promise<_41.QueryParamsResponse>; + deposit(request: _41.QueryDepositRequest): Promise<_41.QueryDepositResponse>; + deposits(request: _41.QueryDepositsRequest): Promise<_41.QueryDepositsResponse>; + tallyResult(request: _41.QueryTallyResultRequest): Promise<_41.QueryTallyResultResponse>; + }; + }; + group: { + v1: { + groupInfo(request: _45.QueryGroupInfoRequest): Promise<_45.QueryGroupInfoResponse>; + groupPolicyInfo(request: _45.QueryGroupPolicyInfoRequest): Promise<_45.QueryGroupPolicyInfoResponse>; + groupMembers(request: _45.QueryGroupMembersRequest): Promise<_45.QueryGroupMembersResponse>; + groupsByAdmin(request: _45.QueryGroupsByAdminRequest): Promise<_45.QueryGroupsByAdminResponse>; + groupPoliciesByGroup(request: _45.QueryGroupPoliciesByGroupRequest): Promise<_45.QueryGroupPoliciesByGroupResponse>; + groupPoliciesByAdmin(request: _45.QueryGroupPoliciesByAdminRequest): Promise<_45.QueryGroupPoliciesByAdminResponse>; + proposal(request: _45.QueryProposalRequest): Promise<_45.QueryProposalResponse>; + proposalsByGroupPolicy(request: _45.QueryProposalsByGroupPolicyRequest): Promise<_45.QueryProposalsByGroupPolicyResponse>; + voteByProposalVoter(request: _45.QueryVoteByProposalVoterRequest): Promise<_45.QueryVoteByProposalVoterResponse>; + votesByProposal(request: _45.QueryVotesByProposalRequest): Promise<_45.QueryVotesByProposalResponse>; + votesByVoter(request: _45.QueryVotesByVoterRequest): Promise<_45.QueryVotesByVoterResponse>; + groupsByMember(request: _45.QueryGroupsByMemberRequest): Promise<_45.QueryGroupsByMemberResponse>; + tallyResult(request: _45.QueryTallyResultRequest): Promise<_45.QueryTallyResultResponse>; + }; + }; + mint: { + v1beta1: { + params(request?: _50.QueryParamsRequest): Promise<_50.QueryParamsResponse>; + inflation(request?: _50.QueryInflationRequest): Promise<_50.QueryInflationResponse>; + annualProvisions(request?: _50.QueryAnnualProvisionsRequest): Promise<_50.QueryAnnualProvisionsResponse>; + }; + }; + params: { + v1beta1: { + params(request: _53.QueryParamsRequest): Promise<_53.QueryParamsResponse>; + subspaces(request?: _53.QuerySubspacesRequest): Promise<_53.QuerySubspacesResponse>; + }; + }; + staking: { + v1beta1: { + validators(request: _56.QueryValidatorsRequest): Promise<_56.QueryValidatorsResponse>; + validator(request: _56.QueryValidatorRequest): Promise<_56.QueryValidatorResponse>; + validatorDelegations(request: _56.QueryValidatorDelegationsRequest): Promise<_56.QueryValidatorDelegationsResponse>; + validatorUnbondingDelegations(request: _56.QueryValidatorUnbondingDelegationsRequest): Promise<_56.QueryValidatorUnbondingDelegationsResponse>; + delegation(request: _56.QueryDelegationRequest): Promise<_56.QueryDelegationResponse>; + unbondingDelegation(request: _56.QueryUnbondingDelegationRequest): Promise<_56.QueryUnbondingDelegationResponse>; + delegatorDelegations(request: _56.QueryDelegatorDelegationsRequest): Promise<_56.QueryDelegatorDelegationsResponse>; + delegatorUnbondingDelegations(request: _56.QueryDelegatorUnbondingDelegationsRequest): Promise<_56.QueryDelegatorUnbondingDelegationsResponse>; + redelegations(request: _56.QueryRedelegationsRequest): Promise<_56.QueryRedelegationsResponse>; + delegatorValidators(request: _56.QueryDelegatorValidatorsRequest): Promise<_56.QueryDelegatorValidatorsResponse>; + delegatorValidator(request: _56.QueryDelegatorValidatorRequest): Promise<_56.QueryDelegatorValidatorResponse>; + historicalInfo(request: _56.QueryHistoricalInfoRequest): Promise<_56.QueryHistoricalInfoResponse>; + pool(request?: _56.QueryPoolRequest): Promise<_56.QueryPoolResponse>; + params(request?: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; + }; + }; + tx: { + v1beta1: { + simulate(request: _60.SimulateRequest): Promise<_60.SimulateResponse>; + getTx(request: _60.GetTxRequest): Promise<_60.GetTxResponse>; + broadcastTx(request: _60.BroadcastTxRequest): Promise<_60.BroadcastTxResponse>; + getTxsEvent(request: _60.GetTxsEventRequest): Promise<_60.GetTxsEventResponse>; + getBlockWithTxs(request: _60.GetBlockWithTxsRequest): Promise<_60.GetBlockWithTxsResponse>; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: _62.QueryCurrentPlanRequest): Promise<_62.QueryCurrentPlanResponse>; + appliedPlan(request: _62.QueryAppliedPlanRequest): Promise<_62.QueryAppliedPlanResponse>; + upgradedConsensusState(request: _62.QueryUpgradedConsensusStateRequest): Promise<_62.QueryUpgradedConsensusStateResponse>; + moduleVersions(request: _62.QueryModuleVersionsRequest): Promise<_62.QueryModuleVersionsResponse>; + authority(request?: _62.QueryAuthorityRequest): Promise<_62.QueryAuthorityResponse>; + }; + }; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: _139.LCDQueryClient; + }; + authz: { + v1beta1: _140.LCDQueryClient; + }; + bank: { + v1beta1: _141.LCDQueryClient; + }; + base: { + node: { + v1beta1: _142.LCDQueryClient; + }; + }; + distribution: { + v1beta1: _143.LCDQueryClient; + }; + feegrant: { + v1beta1: _144.LCDQueryClient; + }; + gov: { + v1: _145.LCDQueryClient; + v1beta1: _146.LCDQueryClient; + }; + group: { + v1: _147.LCDQueryClient; + }; + mint: { + v1beta1: _148.LCDQueryClient; + }; + params: { + v1beta1: _149.LCDQueryClient; + }; + staking: { + v1beta1: _150.LCDQueryClient; + }; + tx: { + v1beta1: _151.LCDQueryClient; + }; + upgrade: { + v1beta1: _152.LCDQueryClient; + }; + }; + }>; + }; +} diff --git a/packages/api/dist/cosmos/bundle.js b/packages/api/dist/cosmos/bundle.js new file mode 100644 index 00000000..253c3aac --- /dev/null +++ b/packages/api/dist/cosmos/bundle.js @@ -0,0 +1,418 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.cosmos = void 0; +//@ts-nocheck +const _2 = __importStar(require("./app/module/v1alpha1/module")); +const _3 = __importStar(require("./auth/v1beta1/auth")); +const _4 = __importStar(require("./auth/v1beta1/genesis")); +const _5 = __importStar(require("./auth/v1beta1/query")); +const _6 = __importStar(require("./authz/v1beta1/authz")); +const _7 = __importStar(require("./authz/v1beta1/event")); +const _8 = __importStar(require("./authz/v1beta1/genesis")); +const _9 = __importStar(require("./authz/v1beta1/query")); +const _10 = __importStar(require("./authz/v1beta1/tx")); +const _11 = __importStar(require("./bank/v1beta1/authz")); +const _12 = __importStar(require("./bank/v1beta1/bank")); +const _13 = __importStar(require("./bank/v1beta1/genesis")); +const _14 = __importStar(require("./bank/v1beta1/query")); +const _15 = __importStar(require("./bank/v1beta1/tx")); +const _16 = __importStar(require("./base/abci/v1beta1/abci")); +const _17 = __importStar(require("./base/node/v1beta1/query")); +const _18 = __importStar(require("./base/query/v1beta1/pagination")); +const _19 = __importStar(require("./base/reflection/v2alpha1/reflection")); +const _20 = __importStar(require("./base/v1beta1/coin")); +const _21 = __importStar(require("./crypto/ed25519/keys")); +const _22 = __importStar(require("./crypto/hd/v1/hd")); +const _23 = __importStar(require("./crypto/keyring/v1/record")); +const _24 = __importStar(require("./crypto/multisig/keys")); +const _25 = __importStar(require("./crypto/secp256k1/keys")); +const _26 = __importStar(require("./crypto/secp256r1/keys")); +const _27 = __importStar(require("./distribution/v1beta1/distribution")); +const _28 = __importStar(require("./distribution/v1beta1/genesis")); +const _29 = __importStar(require("./distribution/v1beta1/query")); +const _30 = __importStar(require("./distribution/v1beta1/tx")); +const _31 = __importStar(require("./feegrant/v1beta1/feegrant")); +const _32 = __importStar(require("./feegrant/v1beta1/genesis")); +const _33 = __importStar(require("./feegrant/v1beta1/query")); +const _34 = __importStar(require("./feegrant/v1beta1/tx")); +const _35 = __importStar(require("./gov/v1/genesis")); +const _36 = __importStar(require("./gov/v1/gov")); +const _37 = __importStar(require("./gov/v1/query")); +const _38 = __importStar(require("./gov/v1/tx")); +const _39 = __importStar(require("./gov/v1beta1/genesis")); +const _40 = __importStar(require("./gov/v1beta1/gov")); +const _41 = __importStar(require("./gov/v1beta1/query")); +const _42 = __importStar(require("./gov/v1beta1/tx")); +const _43 = __importStar(require("./group/v1/events")); +const _44 = __importStar(require("./group/v1/genesis")); +const _45 = __importStar(require("./group/v1/query")); +const _46 = __importStar(require("./group/v1/tx")); +const _47 = __importStar(require("./group/v1/types")); +const _48 = __importStar(require("./mint/v1beta1/genesis")); +const _49 = __importStar(require("./mint/v1beta1/mint")); +const _50 = __importStar(require("./mint/v1beta1/query")); +const _51 = __importStar(require("./orm/module/v1alpha1/module")); +const _52 = __importStar(require("./params/v1beta1/params")); +const _53 = __importStar(require("./params/v1beta1/query")); +const _54 = __importStar(require("./staking/v1beta1/authz")); +const _55 = __importStar(require("./staking/v1beta1/genesis")); +const _56 = __importStar(require("./staking/v1beta1/query")); +const _57 = __importStar(require("./staking/v1beta1/staking")); +const _58 = __importStar(require("./staking/v1beta1/tx")); +const _59 = __importStar(require("./tx/signing/v1beta1/signing")); +const _60 = __importStar(require("./tx/v1beta1/service")); +const _61 = __importStar(require("./tx/v1beta1/tx")); +const _62 = __importStar(require("./upgrade/v1beta1/query")); +const _63 = __importStar(require("./upgrade/v1beta1/tx")); +const _64 = __importStar(require("./upgrade/v1beta1/upgrade")); +const _65 = __importStar(require("./vesting/v1beta1/tx")); +const _66 = __importStar(require("./vesting/v1beta1/vesting")); +const _119 = __importStar(require("./authz/v1beta1/tx.amino")); +const _120 = __importStar(require("./bank/v1beta1/tx.amino")); +const _121 = __importStar(require("./distribution/v1beta1/tx.amino")); +const _122 = __importStar(require("./feegrant/v1beta1/tx.amino")); +const _123 = __importStar(require("./gov/v1/tx.amino")); +const _124 = __importStar(require("./gov/v1beta1/tx.amino")); +const _125 = __importStar(require("./group/v1/tx.amino")); +const _126 = __importStar(require("./staking/v1beta1/tx.amino")); +const _127 = __importStar(require("./upgrade/v1beta1/tx.amino")); +const _128 = __importStar(require("./vesting/v1beta1/tx.amino")); +const _129 = __importStar(require("./authz/v1beta1/tx.registry")); +const _130 = __importStar(require("./bank/v1beta1/tx.registry")); +const _131 = __importStar(require("./distribution/v1beta1/tx.registry")); +const _132 = __importStar(require("./feegrant/v1beta1/tx.registry")); +const _133 = __importStar(require("./gov/v1/tx.registry")); +const _134 = __importStar(require("./gov/v1beta1/tx.registry")); +const _135 = __importStar(require("./group/v1/tx.registry")); +const _136 = __importStar(require("./staking/v1beta1/tx.registry")); +const _137 = __importStar(require("./upgrade/v1beta1/tx.registry")); +const _138 = __importStar(require("./vesting/v1beta1/tx.registry")); +const _139 = __importStar(require("./auth/v1beta1/query.lcd")); +const _140 = __importStar(require("./authz/v1beta1/query.lcd")); +const _141 = __importStar(require("./bank/v1beta1/query.lcd")); +const _142 = __importStar(require("./base/node/v1beta1/query.lcd")); +const _143 = __importStar(require("./distribution/v1beta1/query.lcd")); +const _144 = __importStar(require("./feegrant/v1beta1/query.lcd")); +const _145 = __importStar(require("./gov/v1/query.lcd")); +const _146 = __importStar(require("./gov/v1beta1/query.lcd")); +const _147 = __importStar(require("./group/v1/query.lcd")); +const _148 = __importStar(require("./mint/v1beta1/query.lcd")); +const _149 = __importStar(require("./params/v1beta1/query.lcd")); +const _150 = __importStar(require("./staking/v1beta1/query.lcd")); +const _151 = __importStar(require("./tx/v1beta1/service.lcd")); +const _152 = __importStar(require("./upgrade/v1beta1/query.lcd")); +const _153 = __importStar(require("./auth/v1beta1/query.rpc.Query")); +const _154 = __importStar(require("./authz/v1beta1/query.rpc.Query")); +const _155 = __importStar(require("./bank/v1beta1/query.rpc.Query")); +const _156 = __importStar(require("./base/node/v1beta1/query.rpc.Service")); +const _157 = __importStar(require("./distribution/v1beta1/query.rpc.Query")); +const _158 = __importStar(require("./feegrant/v1beta1/query.rpc.Query")); +const _159 = __importStar(require("./gov/v1/query.rpc.Query")); +const _160 = __importStar(require("./gov/v1beta1/query.rpc.Query")); +const _161 = __importStar(require("./group/v1/query.rpc.Query")); +const _162 = __importStar(require("./mint/v1beta1/query.rpc.Query")); +const _163 = __importStar(require("./params/v1beta1/query.rpc.Query")); +const _164 = __importStar(require("./staking/v1beta1/query.rpc.Query")); +const _165 = __importStar(require("./tx/v1beta1/service.rpc.Service")); +const _166 = __importStar(require("./upgrade/v1beta1/query.rpc.Query")); +const _167 = __importStar(require("./authz/v1beta1/tx.rpc.msg")); +const _168 = __importStar(require("./bank/v1beta1/tx.rpc.msg")); +const _169 = __importStar(require("./distribution/v1beta1/tx.rpc.msg")); +const _170 = __importStar(require("./feegrant/v1beta1/tx.rpc.msg")); +const _171 = __importStar(require("./gov/v1/tx.rpc.msg")); +const _172 = __importStar(require("./gov/v1beta1/tx.rpc.msg")); +const _173 = __importStar(require("./group/v1/tx.rpc.msg")); +const _174 = __importStar(require("./staking/v1beta1/tx.rpc.msg")); +const _175 = __importStar(require("./upgrade/v1beta1/tx.rpc.msg")); +const _176 = __importStar(require("./vesting/v1beta1/tx.rpc.msg")); +const _217 = __importStar(require("./lcd")); +const _218 = __importStar(require("./rpc.query")); +const _219 = __importStar(require("./rpc.tx")); +var cosmos; +(function (cosmos) { + let app; + (function (app) { + let module; + (function (module) { + module.v1alpha1 = { + ..._2 + }; + })(module = app.module || (app.module = {})); + })(app = cosmos.app || (cosmos.app = {})); + let auth; + (function (auth) { + auth.v1beta1 = { + ..._3, + ..._4, + ..._5, + ..._139, + ..._153 + }; + })(auth = cosmos.auth || (cosmos.auth = {})); + let authz; + (function (authz) { + authz.v1beta1 = { + ..._6, + ..._7, + ..._8, + ..._9, + ..._10, + ..._119, + ..._129, + ..._140, + ..._154, + ..._167 + }; + })(authz = cosmos.authz || (cosmos.authz = {})); + let bank; + (function (bank) { + bank.v1beta1 = { + ..._11, + ..._12, + ..._13, + ..._14, + ..._15, + ..._120, + ..._130, + ..._141, + ..._155, + ..._168 + }; + })(bank = cosmos.bank || (cosmos.bank = {})); + let base; + (function (base) { + let abci; + (function (abci) { + abci.v1beta1 = { + ..._16 + }; + })(abci = base.abci || (base.abci = {})); + let node; + (function (node) { + node.v1beta1 = { + ..._17, + ..._142, + ..._156 + }; + })(node = base.node || (base.node = {})); + let query; + (function (query) { + query.v1beta1 = { + ..._18 + }; + })(query = base.query || (base.query = {})); + let reflection; + (function (reflection) { + reflection.v2alpha1 = { + ..._19 + }; + })(reflection = base.reflection || (base.reflection = {})); + base.v1beta1 = { + ..._20 + }; + })(base = cosmos.base || (cosmos.base = {})); + let crypto; + (function (crypto) { + crypto.ed25519 = { + ..._21 + }; + let hd; + (function (hd) { + hd.v1 = { + ..._22 + }; + })(hd = crypto.hd || (crypto.hd = {})); + let keyring; + (function (keyring) { + keyring.v1 = { + ..._23 + }; + })(keyring = crypto.keyring || (crypto.keyring = {})); + crypto.multisig = { + ..._24 + }; + crypto.secp256k1 = { + ..._25 + }; + crypto.secp256r1 = { + ..._26 + }; + })(crypto = cosmos.crypto || (cosmos.crypto = {})); + let distribution; + (function (distribution) { + distribution.v1beta1 = { + ..._27, + ..._28, + ..._29, + ..._30, + ..._121, + ..._131, + ..._143, + ..._157, + ..._169 + }; + })(distribution = cosmos.distribution || (cosmos.distribution = {})); + let feegrant; + (function (feegrant) { + feegrant.v1beta1 = { + ..._31, + ..._32, + ..._33, + ..._34, + ..._122, + ..._132, + ..._144, + ..._158, + ..._170 + }; + })(feegrant = cosmos.feegrant || (cosmos.feegrant = {})); + let gov; + (function (gov) { + gov.v1 = { + ..._35, + ..._36, + ..._37, + ..._38, + ..._123, + ..._133, + ..._145, + ..._159, + ..._171 + }; + gov.v1beta1 = { + ..._39, + ..._40, + ..._41, + ..._42, + ..._124, + ..._134, + ..._146, + ..._160, + ..._172 + }; + })(gov = cosmos.gov || (cosmos.gov = {})); + let group; + (function (group) { + group.v1 = { + ..._43, + ..._44, + ..._45, + ..._46, + ..._47, + ..._125, + ..._135, + ..._147, + ..._161, + ..._173 + }; + })(group = cosmos.group || (cosmos.group = {})); + let mint; + (function (mint) { + mint.v1beta1 = { + ..._48, + ..._49, + ..._50, + ..._148, + ..._162 + }; + })(mint = cosmos.mint || (cosmos.mint = {})); + let orm; + (function (orm) { + let module; + (function (module) { + module.v1alpha1 = { + ..._51 + }; + })(module = orm.module || (orm.module = {})); + })(orm = cosmos.orm || (cosmos.orm = {})); + let params; + (function (params) { + params.v1beta1 = { + ..._52, + ..._53, + ..._149, + ..._163 + }; + })(params = cosmos.params || (cosmos.params = {})); + let staking; + (function (staking) { + staking.v1beta1 = { + ..._54, + ..._55, + ..._56, + ..._57, + ..._58, + ..._126, + ..._136, + ..._150, + ..._164, + ..._174 + }; + })(staking = cosmos.staking || (cosmos.staking = {})); + let tx; + (function (tx) { + let signing; + (function (signing) { + signing.v1beta1 = { + ..._59 + }; + })(signing = tx.signing || (tx.signing = {})); + tx.v1beta1 = { + ..._60, + ..._61, + ..._151, + ..._165 + }; + })(tx = cosmos.tx || (cosmos.tx = {})); + let upgrade; + (function (upgrade) { + upgrade.v1beta1 = { + ..._62, + ..._63, + ..._64, + ..._127, + ..._137, + ..._152, + ..._166, + ..._175 + }; + })(upgrade = cosmos.upgrade || (cosmos.upgrade = {})); + let vesting; + (function (vesting) { + vesting.v1beta1 = { + ..._65, + ..._66, + ..._128, + ..._138, + ..._176 + }; + })(vesting = cosmos.vesting || (cosmos.vesting = {})); + cosmos.ClientFactory = { + ..._217, + ..._218, + ..._219 + }; +})(cosmos || (exports.cosmos = cosmos = {})); diff --git a/packages/api/dist/cosmos/client.d.ts b/packages/api/dist/cosmos/client.d.ts new file mode 100644 index 00000000..35016d90 --- /dev/null +++ b/packages/api/dist/cosmos/client.d.ts @@ -0,0 +1,239 @@ +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const cosmosAminoConverters: { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: string; + toAmino: (message: import("./vesting/v1beta1/tx").MsgCreateVestingAccount) => import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino; + fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreateVestingAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: string; + toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino; + fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: string; + toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino; + fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount; + }; + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: string; + toAmino: (message: import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino; + fromAmino: (object: import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade; + }; + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: string; + toAmino: (message: import("./upgrade/v1beta1/tx").MsgCancelUpgrade) => import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino; + fromAmino: (object: import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgCancelUpgrade; + }; + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgCreateValidator) => import("./staking/v1beta1/tx").MsgCreateValidatorAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgCreateValidatorAmino) => import("./staking/v1beta1/tx").MsgCreateValidator; + }; + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgEditValidator) => import("./staking/v1beta1/tx").MsgEditValidatorAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgEditValidatorAmino) => import("./staking/v1beta1/tx").MsgEditValidator; + }; + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgDelegate) => import("./staking/v1beta1/tx").MsgDelegateAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgDelegateAmino) => import("./staking/v1beta1/tx").MsgDelegate; + }; + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgBeginRedelegate) => import("./staking/v1beta1/tx").MsgBeginRedelegateAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgBeginRedelegateAmino) => import("./staking/v1beta1/tx").MsgBeginRedelegate; + }; + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgUndelegate) => import("./staking/v1beta1/tx").MsgUndelegateAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgUndelegateAmino) => import("./staking/v1beta1/tx").MsgUndelegate; + }; + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: string; + toAmino: (message: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino; + fromAmino: (object: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation; + }; + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgCreateGroup) => import("./group/v1/tx").MsgCreateGroupAmino; + fromAmino: (object: import("./group/v1/tx").MsgCreateGroupAmino) => import("./group/v1/tx").MsgCreateGroup; + }; + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMembers) => import("./group/v1/tx").MsgUpdateGroupMembersAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMembersAmino) => import("./group/v1/tx").MsgUpdateGroupMembers; + }; + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupAdmin) => import("./group/v1/tx").MsgUpdateGroupAdminAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupAdminAmino) => import("./group/v1/tx").MsgUpdateGroupAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMetadata) => import("./group/v1/tx").MsgUpdateGroupMetadataAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupMetadata; + }; + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgCreateGroupPolicy) => import("./group/v1/tx").MsgCreateGroupPolicyAmino; + fromAmino: (object: import("./group/v1/tx").MsgCreateGroupPolicyAmino) => import("./group/v1/tx").MsgCreateGroupPolicy; + }; + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgCreateGroupWithPolicy) => import("./group/v1/tx").MsgCreateGroupWithPolicyAmino; + fromAmino: (object: import("./group/v1/tx").MsgCreateGroupWithPolicyAmino) => import("./group/v1/tx").MsgCreateGroupWithPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyAdmin) => import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyMetadata) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino; + fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadata; + }; + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgSubmitProposal) => import("./group/v1/tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./group/v1/tx").MsgSubmitProposalAmino) => import("./group/v1/tx").MsgSubmitProposal; + }; + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgWithdrawProposal) => import("./group/v1/tx").MsgWithdrawProposalAmino; + fromAmino: (object: import("./group/v1/tx").MsgWithdrawProposalAmino) => import("./group/v1/tx").MsgWithdrawProposal; + }; + "/cosmos.group.v1.MsgVote": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgVote) => import("./group/v1/tx").MsgVoteAmino; + fromAmino: (object: import("./group/v1/tx").MsgVoteAmino) => import("./group/v1/tx").MsgVote; + }; + "/cosmos.group.v1.MsgExec": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgExec) => import("./group/v1/tx").MsgExecAmino; + fromAmino: (object: import("./group/v1/tx").MsgExecAmino) => import("./group/v1/tx").MsgExec; + }; + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: string; + toAmino: (message: import("./group/v1/tx").MsgLeaveGroup) => import("./group/v1/tx").MsgLeaveGroupAmino; + fromAmino: (object: import("./group/v1/tx").MsgLeaveGroupAmino) => import("./group/v1/tx").MsgLeaveGroup; + }; + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: import("./gov/v1beta1/tx").MsgSubmitProposal) => import("./gov/v1beta1/tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./gov/v1beta1/tx").MsgSubmitProposalAmino) => import("./gov/v1beta1/tx").MsgSubmitProposal; + }; + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: string; + toAmino: (message: import("./gov/v1beta1/tx").MsgVote) => import("./gov/v1beta1/tx").MsgVoteAmino; + fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteAmino) => import("./gov/v1beta1/tx").MsgVote; + }; + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: import("./gov/v1beta1/tx").MsgVoteWeighted) => import("./gov/v1beta1/tx").MsgVoteWeightedAmino; + fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteWeightedAmino) => import("./gov/v1beta1/tx").MsgVoteWeighted; + }; + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: string; + toAmino: (message: import("./gov/v1beta1/tx").MsgDeposit) => import("./gov/v1beta1/tx").MsgDepositAmino; + fromAmino: (object: import("./gov/v1beta1/tx").MsgDepositAmino) => import("./gov/v1beta1/tx").MsgDeposit; + }; + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: import("./gov/v1/tx").MsgSubmitProposal) => import("./gov/v1/tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./gov/v1/tx").MsgSubmitProposalAmino) => import("./gov/v1/tx").MsgSubmitProposal; + }; + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: string; + toAmino: (message: import("./gov/v1/tx").MsgExecLegacyContent) => import("./gov/v1/tx").MsgExecLegacyContentAmino; + fromAmino: (object: import("./gov/v1/tx").MsgExecLegacyContentAmino) => import("./gov/v1/tx").MsgExecLegacyContent; + }; + "/cosmos.gov.v1.MsgVote": { + aminoType: string; + toAmino: (message: import("./gov/v1/tx").MsgVote) => import("./gov/v1/tx").MsgVoteAmino; + fromAmino: (object: import("./gov/v1/tx").MsgVoteAmino) => import("./gov/v1/tx").MsgVote; + }; + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: import("./gov/v1/tx").MsgVoteWeighted) => import("./gov/v1/tx").MsgVoteWeightedAmino; + fromAmino: (object: import("./gov/v1/tx").MsgVoteWeightedAmino) => import("./gov/v1/tx").MsgVoteWeighted; + }; + "/cosmos.gov.v1.MsgDeposit": { + aminoType: string; + toAmino: (message: import("./gov/v1/tx").MsgDeposit) => import("./gov/v1/tx").MsgDepositAmino; + fromAmino: (object: import("./gov/v1/tx").MsgDepositAmino) => import("./gov/v1/tx").MsgDeposit; + }; + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: string; + toAmino: (message: import("./feegrant/v1beta1/tx").MsgGrantAllowance) => import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino; + fromAmino: (object: import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgGrantAllowance; + }; + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: string; + toAmino: (message: import("./feegrant/v1beta1/tx").MsgRevokeAllowance) => import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino; + fromAmino: (object: import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgRevokeAllowance; + }; + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: string; + toAmino: (message: import("./distribution/v1beta1/tx").MsgSetWithdrawAddress) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino; + fromAmino: (object: import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddress; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: string; + toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino; + fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: string; + toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino; + fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission; + }; + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: string; + toAmino: (message: import("./distribution/v1beta1/tx").MsgFundCommunityPool) => import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino; + fromAmino: (object: import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino) => import("./distribution/v1beta1/tx").MsgFundCommunityPool; + }; + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: string; + toAmino: (message: import("./bank/v1beta1/tx").MsgSend) => import("./bank/v1beta1/tx").MsgSendAmino; + fromAmino: (object: import("./bank/v1beta1/tx").MsgSendAmino) => import("./bank/v1beta1/tx").MsgSend; + }; + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: string; + toAmino: (message: import("./bank/v1beta1/tx").MsgMultiSend) => import("./bank/v1beta1/tx").MsgMultiSendAmino; + fromAmino: (object: import("./bank/v1beta1/tx").MsgMultiSendAmino) => import("./bank/v1beta1/tx").MsgMultiSend; + }; + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: string; + toAmino: (message: import("./authz/v1beta1/tx").MsgGrant) => import("./authz/v1beta1/tx").MsgGrantAmino; + fromAmino: (object: import("./authz/v1beta1/tx").MsgGrantAmino) => import("./authz/v1beta1/tx").MsgGrant; + }; + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: string; + toAmino: (message: import("./authz/v1beta1/tx").MsgExec) => import("./authz/v1beta1/tx").MsgExecAmino; + fromAmino: (object: import("./authz/v1beta1/tx").MsgExecAmino) => import("./authz/v1beta1/tx").MsgExec; + }; + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: string; + toAmino: (message: import("./authz/v1beta1/tx").MsgRevoke) => import("./authz/v1beta1/tx").MsgRevokeAmino; + fromAmino: (object: import("./authz/v1beta1/tx").MsgRevokeAmino) => import("./authz/v1beta1/tx").MsgRevoke; + }; +}; +export declare const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]>; +export declare const getSigningCosmosClientOptions: () => { + registry: Registry; + aminoTypes: AminoTypes; +}; +export declare const getSigningCosmosClient: ({ rpcEndpoint, signer }: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; +}) => Promise; diff --git a/packages/api/dist/cosmos/client.js b/packages/api/dist/cosmos/client.js new file mode 100644 index 00000000..b650667d --- /dev/null +++ b/packages/api/dist/cosmos/client.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSigningCosmosClient = exports.getSigningCosmosClientOptions = exports.cosmosProtoRegistry = exports.cosmosAminoConverters = void 0; +//@ts-nocheck +const proto_signing_1 = require("@cosmjs/proto-signing"); +const stargate_1 = require("@cosmjs/stargate"); +const cosmosAuthzV1beta1TxRegistry = __importStar(require("./authz/v1beta1/tx.registry")); +const cosmosBankV1beta1TxRegistry = __importStar(require("./bank/v1beta1/tx.registry")); +const cosmosDistributionV1beta1TxRegistry = __importStar(require("./distribution/v1beta1/tx.registry")); +const cosmosFeegrantV1beta1TxRegistry = __importStar(require("./feegrant/v1beta1/tx.registry")); +const cosmosGovV1TxRegistry = __importStar(require("./gov/v1/tx.registry")); +const cosmosGovV1beta1TxRegistry = __importStar(require("./gov/v1beta1/tx.registry")); +const cosmosGroupV1TxRegistry = __importStar(require("./group/v1/tx.registry")); +const cosmosStakingV1beta1TxRegistry = __importStar(require("./staking/v1beta1/tx.registry")); +const cosmosUpgradeV1beta1TxRegistry = __importStar(require("./upgrade/v1beta1/tx.registry")); +const cosmosVestingV1beta1TxRegistry = __importStar(require("./vesting/v1beta1/tx.registry")); +const cosmosAuthzV1beta1TxAmino = __importStar(require("./authz/v1beta1/tx.amino")); +const cosmosBankV1beta1TxAmino = __importStar(require("./bank/v1beta1/tx.amino")); +const cosmosDistributionV1beta1TxAmino = __importStar(require("./distribution/v1beta1/tx.amino")); +const cosmosFeegrantV1beta1TxAmino = __importStar(require("./feegrant/v1beta1/tx.amino")); +const cosmosGovV1TxAmino = __importStar(require("./gov/v1/tx.amino")); +const cosmosGovV1beta1TxAmino = __importStar(require("./gov/v1beta1/tx.amino")); +const cosmosGroupV1TxAmino = __importStar(require("./group/v1/tx.amino")); +const cosmosStakingV1beta1TxAmino = __importStar(require("./staking/v1beta1/tx.amino")); +const cosmosUpgradeV1beta1TxAmino = __importStar(require("./upgrade/v1beta1/tx.amino")); +const cosmosVestingV1beta1TxAmino = __importStar(require("./vesting/v1beta1/tx.amino")); +exports.cosmosAminoConverters = { + ...cosmosAuthzV1beta1TxAmino.AminoConverter, + ...cosmosBankV1beta1TxAmino.AminoConverter, + ...cosmosDistributionV1beta1TxAmino.AminoConverter, + ...cosmosFeegrantV1beta1TxAmino.AminoConverter, + ...cosmosGovV1TxAmino.AminoConverter, + ...cosmosGovV1beta1TxAmino.AminoConverter, + ...cosmosGroupV1TxAmino.AminoConverter, + ...cosmosStakingV1beta1TxAmino.AminoConverter, + ...cosmosUpgradeV1beta1TxAmino.AminoConverter, + ...cosmosVestingV1beta1TxAmino.AminoConverter +}; +exports.cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; +const getSigningCosmosClientOptions = () => { + const registry = new proto_signing_1.Registry([...exports.cosmosProtoRegistry]); + const aminoTypes = new stargate_1.AminoTypes({ + ...exports.cosmosAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +exports.getSigningCosmosClientOptions = getSigningCosmosClientOptions; +const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => { + const { registry, aminoTypes } = (0, exports.getSigningCosmosClientOptions)(); + const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; +exports.getSigningCosmosClient = getSigningCosmosClient; diff --git a/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts b/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts new file mode 100644 index 00000000..77b73d46 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts @@ -0,0 +1,94 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKey { + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.ed25519.PubKey"; + value: Uint8Array; +} +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKeyAmino { + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKey { + key: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.ed25519.PrivKey"; + value: Uint8Array; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKeyAmino { + key?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKeySDKType { + key: Uint8Array; +} +export declare const PubKey: { + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; + fromPartial(object: Partial): PubKey; + fromAmino(object: PubKeyAmino): PubKey; + toAmino(message: PubKey): PubKeyAmino; + fromAminoMsg(object: PubKeyAminoMsg): PubKey; + toAminoMsg(message: PubKey): PubKeyAminoMsg; + fromProtoMsg(message: PubKeyProtoMsg): PubKey; + toProto(message: PubKey): Uint8Array; + toProtoMsg(message: PubKey): PubKeyProtoMsg; +}; +export declare const PrivKey: { + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; + fromPartial(object: Partial): PrivKey; + fromAmino(object: PrivKeyAmino): PrivKey; + toAmino(message: PrivKey): PrivKeyAmino; + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; + toAminoMsg(message: PrivKey): PrivKeyAminoMsg; + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; + toProto(message: PrivKey): Uint8Array; + toProtoMsg(message: PrivKey): PrivKeyProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/ed25519/keys.js b/packages/api/dist/cosmos/crypto/ed25519/keys.js new file mode 100644 index 00000000..4bf98482 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/ed25519/keys.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivKey = exports.PubKey = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +exports.PubKey = { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: exports.PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PubKey.decode(message.value); + }, + toProto(message) { + return exports.PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + value: exports.PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + key: new Uint8Array() + }; +} +exports.PrivKey = { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: exports.PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PrivKey.decode(message.value); + }, + toProto(message) { + return exports.PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + value: exports.PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts b/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts new file mode 100644 index 00000000..195ef08d --- /dev/null +++ b/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts @@ -0,0 +1,62 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44Params { + /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ + purpose: number; + /** coin_type is a constant that improves privacy */ + coinType: number; + /** account splits the key space into independent user identities */ + account: number; + /** + * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + * chain. + */ + change: boolean; + /** address_index is used as child index in BIP32 derivation */ + addressIndex: number; +} +export interface BIP44ParamsProtoMsg { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; + value: Uint8Array; +} +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44ParamsAmino { + /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ + purpose?: number; + /** coin_type is a constant that improves privacy */ + coin_type?: number; + /** account splits the key space into independent user identities */ + account?: number; + /** + * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + * chain. + */ + change?: boolean; + /** address_index is used as child index in BIP32 derivation */ + address_index?: number; +} +export interface BIP44ParamsAminoMsg { + type: "cosmos-sdk/BIP44Params"; + value: BIP44ParamsAmino; +} +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44ParamsSDKType { + purpose: number; + coin_type: number; + account: number; + change: boolean; + address_index: number; +} +export declare const BIP44Params: { + typeUrl: string; + encode(message: BIP44Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params; + fromPartial(object: Partial): BIP44Params; + fromAmino(object: BIP44ParamsAmino): BIP44Params; + toAmino(message: BIP44Params): BIP44ParamsAmino; + fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params; + toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg; + fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params; + toProto(message: BIP44Params): Uint8Array; + toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/hd/v1/hd.js b/packages/api/dist/cosmos/crypto/hd/v1/hd.js new file mode 100644 index 00000000..770acaf4 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/hd/v1/hd.js @@ -0,0 +1,122 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BIP44Params = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseBIP44Params() { + return { + purpose: 0, + coinType: 0, + account: 0, + change: false, + addressIndex: 0 + }; +} +exports.BIP44Params = { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.purpose !== 0) { + writer.uint32(8).uint32(message.purpose); + } + if (message.coinType !== 0) { + writer.uint32(16).uint32(message.coinType); + } + if (message.account !== 0) { + writer.uint32(24).uint32(message.account); + } + if (message.change === true) { + writer.uint32(32).bool(message.change); + } + if (message.addressIndex !== 0) { + writer.uint32(40).uint32(message.addressIndex); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBIP44Params(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.purpose = reader.uint32(); + break; + case 2: + message.coinType = reader.uint32(); + break; + case 3: + message.account = reader.uint32(); + break; + case 4: + message.change = reader.bool(); + break; + case 5: + message.addressIndex = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBIP44Params(); + message.purpose = object.purpose ?? 0; + message.coinType = object.coinType ?? 0; + message.account = object.account ?? 0; + message.change = object.change ?? false; + message.addressIndex = object.addressIndex ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBIP44Params(); + if (object.purpose !== undefined && object.purpose !== null) { + message.purpose = object.purpose; + } + if (object.coin_type !== undefined && object.coin_type !== null) { + message.coinType = object.coin_type; + } + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.change !== undefined && object.change !== null) { + message.change = object.change; + } + if (object.address_index !== undefined && object.address_index !== null) { + message.addressIndex = object.address_index; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.purpose = message.purpose === 0 ? undefined : message.purpose; + obj.coin_type = message.coinType === 0 ? undefined : message.coinType; + obj.account = message.account === 0 ? undefined : message.account; + obj.change = message.change === false ? undefined : message.change; + obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; + return obj; + }, + fromAminoMsg(object) { + return exports.BIP44Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BIP44Params", + value: exports.BIP44Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BIP44Params.decode(message.value); + }, + toProto(message) { + return exports.BIP44Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + value: exports.BIP44Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts b/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts new file mode 100644 index 00000000..4c403e15 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts @@ -0,0 +1,198 @@ +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Record is used for representing a key in the keyring. */ +export interface Record { + /** name represents a name of Record */ + name: string; + /** pub_key represents a public key in any format */ + pubKey?: Any; + /** local stores the private key locally. */ + local?: Record_Local; + /** ledger stores the information about a Ledger key. */ + ledger?: Record_Ledger; + /** Multi does not store any other information. */ + multi?: Record_Multi; + /** Offline does not store any other information. */ + offline?: Record_Offline; +} +export interface RecordProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Record"; + value: Uint8Array; +} +/** Record is used for representing a key in the keyring. */ +export interface RecordAmino { + /** name represents a name of Record */ + name?: string; + /** pub_key represents a public key in any format */ + pub_key?: AnyAmino; + /** local stores the private key locally. */ + local?: Record_LocalAmino; + /** ledger stores the information about a Ledger key. */ + ledger?: Record_LedgerAmino; + /** Multi does not store any other information. */ + multi?: Record_MultiAmino; + /** Offline does not store any other information. */ + offline?: Record_OfflineAmino; +} +export interface RecordAminoMsg { + type: "cosmos-sdk/Record"; + value: RecordAmino; +} +/** Record is used for representing a key in the keyring. */ +export interface RecordSDKType { + name: string; + pub_key?: AnySDKType; + local?: Record_LocalSDKType; + ledger?: Record_LedgerSDKType; + multi?: Record_MultiSDKType; + offline?: Record_OfflineSDKType; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_Local { + privKey?: Any; +} +export interface Record_LocalProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Local"; + value: Uint8Array; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_LocalAmino { + priv_key?: AnyAmino; +} +export interface Record_LocalAminoMsg { + type: "cosmos-sdk/Local"; + value: Record_LocalAmino; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_LocalSDKType { + priv_key?: AnySDKType; +} +/** Ledger item */ +export interface Record_Ledger { + path?: BIP44Params; +} +export interface Record_LedgerProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; + value: Uint8Array; +} +/** Ledger item */ +export interface Record_LedgerAmino { + path?: BIP44ParamsAmino; +} +export interface Record_LedgerAminoMsg { + type: "cosmos-sdk/Ledger"; + value: Record_LedgerAmino; +} +/** Ledger item */ +export interface Record_LedgerSDKType { + path?: BIP44ParamsSDKType; +} +/** Multi item */ +export interface Record_Multi { +} +export interface Record_MultiProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Multi"; + value: Uint8Array; +} +/** Multi item */ +export interface Record_MultiAmino { +} +export interface Record_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: Record_MultiAmino; +} +/** Multi item */ +export interface Record_MultiSDKType { +} +/** Offline item */ +export interface Record_Offline { +} +export interface Record_OfflineProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Offline"; + value: Uint8Array; +} +/** Offline item */ +export interface Record_OfflineAmino { +} +export interface Record_OfflineAminoMsg { + type: "cosmos-sdk/Offline"; + value: Record_OfflineAmino; +} +/** Offline item */ +export interface Record_OfflineSDKType { +} +export declare const Record: { + typeUrl: string; + encode(message: Record, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record; + fromPartial(object: Partial): Record; + fromAmino(object: RecordAmino): Record; + toAmino(message: Record): RecordAmino; + fromAminoMsg(object: RecordAminoMsg): Record; + toAminoMsg(message: Record): RecordAminoMsg; + fromProtoMsg(message: RecordProtoMsg): Record; + toProto(message: Record): Uint8Array; + toProtoMsg(message: Record): RecordProtoMsg; +}; +export declare const Record_Local: { + typeUrl: string; + encode(message: Record_Local, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Local; + fromPartial(object: Partial): Record_Local; + fromAmino(object: Record_LocalAmino): Record_Local; + toAmino(message: Record_Local): Record_LocalAmino; + fromAminoMsg(object: Record_LocalAminoMsg): Record_Local; + toAminoMsg(message: Record_Local): Record_LocalAminoMsg; + fromProtoMsg(message: Record_LocalProtoMsg): Record_Local; + toProto(message: Record_Local): Uint8Array; + toProtoMsg(message: Record_Local): Record_LocalProtoMsg; +}; +export declare const Record_Ledger: { + typeUrl: string; + encode(message: Record_Ledger, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger; + fromPartial(object: Partial): Record_Ledger; + fromAmino(object: Record_LedgerAmino): Record_Ledger; + toAmino(message: Record_Ledger): Record_LedgerAmino; + fromAminoMsg(object: Record_LedgerAminoMsg): Record_Ledger; + toAminoMsg(message: Record_Ledger): Record_LedgerAminoMsg; + fromProtoMsg(message: Record_LedgerProtoMsg): Record_Ledger; + toProto(message: Record_Ledger): Uint8Array; + toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg; +}; +export declare const Record_Multi: { + typeUrl: string; + encode(_: Record_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi; + fromPartial(_: Partial): Record_Multi; + fromAmino(_: Record_MultiAmino): Record_Multi; + toAmino(_: Record_Multi): Record_MultiAmino; + fromAminoMsg(object: Record_MultiAminoMsg): Record_Multi; + toAminoMsg(message: Record_Multi): Record_MultiAminoMsg; + fromProtoMsg(message: Record_MultiProtoMsg): Record_Multi; + toProto(message: Record_Multi): Uint8Array; + toProtoMsg(message: Record_Multi): Record_MultiProtoMsg; +}; +export declare const Record_Offline: { + typeUrl: string; + encode(_: Record_Offline, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline; + fromPartial(_: Partial): Record_Offline; + fromAmino(_: Record_OfflineAmino): Record_Offline; + toAmino(_: Record_Offline): Record_OfflineAmino; + fromAminoMsg(object: Record_OfflineAminoMsg): Record_Offline; + toAminoMsg(message: Record_Offline): Record_OfflineAminoMsg; + fromProtoMsg(message: Record_OfflineProtoMsg): Record_Offline; + toProto(message: Record_Offline): Uint8Array; + toProtoMsg(message: Record_Offline): Record_OfflineProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/keyring/v1/record.js b/packages/api/dist/cosmos/crypto/keyring/v1/record.js new file mode 100644 index 00000000..0198e3c9 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/keyring/v1/record.js @@ -0,0 +1,386 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Record_Offline = exports.Record_Multi = exports.Record_Ledger = exports.Record_Local = exports.Record = void 0; +//@ts-nocheck +const any_1 = require("../../../../google/protobuf/any"); +const hd_1 = require("../../hd/v1/hd"); +const binary_1 = require("../../../../binary"); +function createBaseRecord() { + return { + name: "", + pubKey: undefined, + local: undefined, + ledger: undefined, + multi: undefined, + offline: undefined + }; +} +exports.Record = { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.pubKey !== undefined) { + any_1.Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.local !== undefined) { + exports.Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); + } + if (message.ledger !== undefined) { + exports.Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); + } + if (message.multi !== undefined) { + exports.Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); + } + if (message.offline !== undefined) { + exports.Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.pubKey = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.local = exports.Record_Local.decode(reader, reader.uint32()); + break; + case 4: + message.ledger = exports.Record_Ledger.decode(reader, reader.uint32()); + break; + case 5: + message.multi = exports.Record_Multi.decode(reader, reader.uint32()); + break; + case 6: + message.offline = exports.Record_Offline.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord(); + message.name = object.name ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? any_1.Any.fromPartial(object.pubKey) : undefined; + message.local = object.local !== undefined && object.local !== null ? exports.Record_Local.fromPartial(object.local) : undefined; + message.ledger = object.ledger !== undefined && object.ledger !== null ? exports.Record_Ledger.fromPartial(object.ledger) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? exports.Record_Multi.fromPartial(object.multi) : undefined; + message.offline = object.offline !== undefined && object.offline !== null ? exports.Record_Offline.fromPartial(object.offline) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = any_1.Any.fromAmino(object.pub_key); + } + if (object.local !== undefined && object.local !== null) { + message.local = exports.Record_Local.fromAmino(object.local); + } + if (object.ledger !== undefined && object.ledger !== null) { + message.ledger = exports.Record_Ledger.fromAmino(object.ledger); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = exports.Record_Multi.fromAmino(object.multi); + } + if (object.offline !== undefined && object.offline !== null) { + message.offline = exports.Record_Offline.fromAmino(object.offline); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.pub_key = message.pubKey ? any_1.Any.toAmino(message.pubKey) : undefined; + obj.local = message.local ? exports.Record_Local.toAmino(message.local) : undefined; + obj.ledger = message.ledger ? exports.Record_Ledger.toAmino(message.ledger) : undefined; + obj.multi = message.multi ? exports.Record_Multi.toAmino(message.multi) : undefined; + obj.offline = message.offline ? exports.Record_Offline.toAmino(message.offline) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Record.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Record", + value: exports.Record.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Record.decode(message.value); + }, + toProto(message) { + return exports.Record.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + value: exports.Record.encode(message).finish() + }; + } +}; +function createBaseRecord_Local() { + return { + privKey: undefined + }; +} +exports.Record_Local = { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.privKey !== undefined) { + any_1.Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Local(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.privKey = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord_Local(); + message.privKey = object.privKey !== undefined && object.privKey !== null ? any_1.Any.fromPartial(object.privKey) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord_Local(); + if (object.priv_key !== undefined && object.priv_key !== null) { + message.privKey = any_1.Any.fromAmino(object.priv_key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.priv_key = message.privKey ? any_1.Any.toAmino(message.privKey) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Record_Local.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Local", + value: exports.Record_Local.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Record_Local.decode(message.value); + }, + toProto(message) { + return exports.Record_Local.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + value: exports.Record_Local.encode(message).finish() + }; + } +}; +function createBaseRecord_Ledger() { + return { + path: undefined + }; +} +exports.Record_Ledger = { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.path !== undefined) { + hd_1.BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Ledger(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = hd_1.BIP44Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord_Ledger(); + message.path = object.path !== undefined && object.path !== null ? hd_1.BIP44Params.fromPartial(object.path) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord_Ledger(); + if (object.path !== undefined && object.path !== null) { + message.path = hd_1.BIP44Params.fromAmino(object.path); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.path = message.path ? hd_1.BIP44Params.toAmino(message.path) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Record_Ledger.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Ledger", + value: exports.Record_Ledger.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Record_Ledger.decode(message.value); + }, + toProto(message) { + return exports.Record_Ledger.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + value: exports.Record_Ledger.encode(message).finish() + }; + } +}; +function createBaseRecord_Multi() { + return {}; +} +exports.Record_Multi = { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRecord_Multi(); + return message; + }, + fromAmino(_) { + const message = createBaseRecord_Multi(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.Record_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: exports.Record_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Record_Multi.decode(message.value); + }, + toProto(message) { + return exports.Record_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + value: exports.Record_Multi.encode(message).finish() + }; + } +}; +function createBaseRecord_Offline() { + return {}; +} +exports.Record_Offline = { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Offline(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRecord_Offline(); + return message; + }, + fromAmino(_) { + const message = createBaseRecord_Offline(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.Record_Offline.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Offline", + value: exports.Record_Offline.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Record_Offline.decode(message.value); + }, + toProto(message) { + return exports.Record_Offline.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + value: exports.Record_Offline.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/multisig/keys.d.ts b/packages/api/dist/cosmos/crypto/multisig/keys.d.ts new file mode 100644 index 00000000..105776aa --- /dev/null +++ b/packages/api/dist/cosmos/crypto/multisig/keys.d.ts @@ -0,0 +1,50 @@ +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKey { + threshold: number; + publicKeys: Any[]; +} +export interface LegacyAminoPubKeyProtoMsg { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; + value: Uint8Array; +} +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKeyAmino { + threshold?: number; + public_keys?: AnyAmino[]; +} +export interface LegacyAminoPubKeyAminoMsg { + type: "cosmos-sdk/LegacyAminoPubKey"; + value: LegacyAminoPubKeyAmino; +} +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKeySDKType { + threshold: number; + public_keys: AnySDKType[]; +} +export declare const LegacyAminoPubKey: { + typeUrl: string; + encode(message: LegacyAminoPubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey; + fromPartial(object: Partial): LegacyAminoPubKey; + fromAmino(object: LegacyAminoPubKeyAmino): LegacyAminoPubKey; + toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino; + fromAminoMsg(object: LegacyAminoPubKeyAminoMsg): LegacyAminoPubKey; + toAminoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyAminoMsg; + fromProtoMsg(message: LegacyAminoPubKeyProtoMsg): LegacyAminoPubKey; + toProto(message: LegacyAminoPubKey): Uint8Array; + toProtoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/multisig/keys.js b/packages/api/dist/cosmos/crypto/multisig/keys.js new file mode 100644 index 00000000..98f7bad6 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/multisig/keys.js @@ -0,0 +1,90 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LegacyAminoPubKey = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +function createBaseLegacyAminoPubKey() { + return { + threshold: 0, + publicKeys: [] + }; +} +exports.LegacyAminoPubKey = { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.threshold !== 0) { + writer.uint32(8).uint32(message.threshold); + } + for (const v of message.publicKeys) { + any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLegacyAminoPubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.uint32(); + break; + case 2: + message.publicKeys.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLegacyAminoPubKey(); + message.threshold = object.threshold ?? 0; + message.publicKeys = object.publicKeys?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseLegacyAminoPubKey(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + message.publicKeys = object.public_keys?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.threshold = message.threshold === 0 ? undefined : message.threshold; + if (message.publicKeys) { + obj.public_keys = message.publicKeys.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.public_keys = message.publicKeys; + } + return obj; + }, + fromAminoMsg(object) { + return exports.LegacyAminoPubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/LegacyAminoPubKey", + value: exports.LegacyAminoPubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.LegacyAminoPubKey.decode(message.value); + }, + toProto(message) { + return exports.LegacyAminoPubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + value: exports.LegacyAminoPubKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts new file mode 100644 index 00000000..afa9733e --- /dev/null +++ b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts @@ -0,0 +1,97 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignature { + signatures: Uint8Array[]; +} +export interface MultiSignatureProtoMsg { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; + value: Uint8Array; +} +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignatureAmino { + signatures?: string[]; +} +export interface MultiSignatureAminoMsg { + type: "cosmos-sdk/MultiSignature"; + value: MultiSignatureAmino; +} +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignatureSDKType { + signatures: Uint8Array[]; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArray { + extraBitsStored: number; + elems: Uint8Array; +} +export interface CompactBitArrayProtoMsg { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; + value: Uint8Array; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArrayAmino { + extra_bits_stored?: number; + elems?: string; +} +export interface CompactBitArrayAminoMsg { + type: "cosmos-sdk/CompactBitArray"; + value: CompactBitArrayAmino; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArraySDKType { + extra_bits_stored: number; + elems: Uint8Array; +} +export declare const MultiSignature: { + typeUrl: string; + encode(message: MultiSignature, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature; + fromPartial(object: Partial): MultiSignature; + fromAmino(object: MultiSignatureAmino): MultiSignature; + toAmino(message: MultiSignature): MultiSignatureAmino; + fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature; + toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg; + fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature; + toProto(message: MultiSignature): Uint8Array; + toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg; +}; +export declare const CompactBitArray: { + typeUrl: string; + encode(message: CompactBitArray, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray; + fromPartial(object: Partial): CompactBitArray; + fromAmino(object: CompactBitArrayAmino): CompactBitArray; + toAmino(message: CompactBitArray): CompactBitArrayAmino; + fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray; + toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg; + fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray; + toProto(message: CompactBitArray): Uint8Array; + toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js new file mode 100644 index 00000000..b272004e --- /dev/null +++ b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js @@ -0,0 +1,159 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompactBitArray = exports.MultiSignature = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseMultiSignature() { + return { + signatures: [] + }; +} +exports.MultiSignature = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.signatures) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMultiSignature(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MultiSignature.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MultiSignature", + value: exports.MultiSignature.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MultiSignature.decode(message.value); + }, + toProto(message) { + return exports.MultiSignature.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + value: exports.MultiSignature.encode(message).finish() + }; + } +}; +function createBaseCompactBitArray() { + return { + extraBitsStored: 0, + elems: new Uint8Array() + }; +} +exports.CompactBitArray = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.extraBitsStored !== 0) { + writer.uint32(8).uint32(message.extraBitsStored); + } + if (message.elems.length !== 0) { + writer.uint32(18).bytes(message.elems); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCompactBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.extraBitsStored = reader.uint32(); + break; + case 2: + message.elems = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCompactBitArray(); + message.extraBitsStored = object.extraBitsStored ?? 0; + message.elems = object.elems ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseCompactBitArray(); + if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { + message.extraBitsStored = object.extra_bits_stored; + } + if (object.elems !== undefined && object.elems !== null) { + message.elems = (0, helpers_1.bytesFromBase64)(object.elems); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; + obj.elems = message.elems ? (0, helpers_1.base64FromBytes)(message.elems) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.CompactBitArray.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CompactBitArray", + value: exports.CompactBitArray.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CompactBitArray.decode(message.value); + }, + toProto(message) { + return exports.CompactBitArray.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + value: exports.CompactBitArray.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts b/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts new file mode 100644 index 00000000..67ee7582 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts @@ -0,0 +1,85 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKey { + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256k1.PubKey"; + value: Uint8Array; +} +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKeyAmino { + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKey { + key: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; + value: Uint8Array; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKeyAmino { + key?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKeySDKType { + key: Uint8Array; +} +export declare const PubKey: { + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; + fromPartial(object: Partial): PubKey; + fromAmino(object: PubKeyAmino): PubKey; + toAmino(message: PubKey): PubKeyAmino; + fromAminoMsg(object: PubKeyAminoMsg): PubKey; + toAminoMsg(message: PubKey): PubKeyAminoMsg; + fromProtoMsg(message: PubKeyProtoMsg): PubKey; + toProto(message: PubKey): Uint8Array; + toProtoMsg(message: PubKey): PubKeyProtoMsg; +}; +export declare const PrivKey: { + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; + fromPartial(object: Partial): PrivKey; + fromAmino(object: PrivKeyAmino): PrivKey; + toAmino(message: PrivKey): PrivKeyAmino; + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; + toAminoMsg(message: PrivKey): PrivKeyAminoMsg; + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; + toProto(message: PrivKey): Uint8Array; + toProtoMsg(message: PrivKey): PrivKeyProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/secp256k1/keys.js b/packages/api/dist/cosmos/crypto/secp256k1/keys.js new file mode 100644 index 00000000..f2c8b42f --- /dev/null +++ b/packages/api/dist/cosmos/crypto/secp256k1/keys.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivKey = exports.PubKey = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +exports.PubKey = { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: exports.PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PubKey.decode(message.value); + }, + toProto(message) { + return exports.PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + value: exports.PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + key: new Uint8Array() + }; +} +exports.PrivKey = { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: exports.PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PrivKey.decode(message.value); + }, + toProto(message) { + return exports.PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + value: exports.PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts b/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts new file mode 100644 index 00000000..3ced987e --- /dev/null +++ b/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts @@ -0,0 +1,77 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKey { + /** + * Point on secp256r1 curve in a compressed representation as specified in section + * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + */ + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256r1.PubKey"; + value: Uint8Array; +} +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKeyAmino { + /** + * Point on secp256r1 curve in a compressed representation as specified in section + * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + */ + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKey { + /** secret number serialized using big-endian encoding */ + secret: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; + value: Uint8Array; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKeyAmino { + /** secret number serialized using big-endian encoding */ + secret?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKeySDKType { + secret: Uint8Array; +} +export declare const PubKey: { + typeUrl: string; + encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PubKey; + fromPartial(object: Partial): PubKey; + fromAmino(object: PubKeyAmino): PubKey; + toAmino(message: PubKey): PubKeyAmino; + fromAminoMsg(object: PubKeyAminoMsg): PubKey; + toAminoMsg(message: PubKey): PubKeyAminoMsg; + fromProtoMsg(message: PubKeyProtoMsg): PubKey; + toProto(message: PubKey): Uint8Array; + toProtoMsg(message: PubKey): PubKeyProtoMsg; +}; +export declare const PrivKey: { + typeUrl: string; + encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; + fromPartial(object: Partial): PrivKey; + fromAmino(object: PrivKeyAmino): PrivKey; + toAmino(message: PrivKey): PrivKeyAmino; + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; + toAminoMsg(message: PrivKey): PrivKeyAminoMsg; + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; + toProto(message: PrivKey): Uint8Array; + toProtoMsg(message: PrivKey): PrivKeyProtoMsg; +}; diff --git a/packages/api/dist/cosmos/crypto/secp256r1/keys.js b/packages/api/dist/cosmos/crypto/secp256r1/keys.js new file mode 100644 index 00000000..653ff7d8 --- /dev/null +++ b/packages/api/dist/cosmos/crypto/secp256r1/keys.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PrivKey = exports.PubKey = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +exports.PubKey = { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: exports.PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PubKey.decode(message.value); + }, + toProto(message) { + return exports.PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + value: exports.PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + secret: new Uint8Array() + }; +} +exports.PrivKey = { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.secret.length !== 0) { + writer.uint32(10).bytes(message.secret); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.secret = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.secret = object.secret ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.secret !== undefined && object.secret !== null) { + message.secret = (0, helpers_1.bytesFromBase64)(object.secret); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.secret = message.secret ? (0, helpers_1.base64FromBytes)(message.secret) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: exports.PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PrivKey.decode(message.value); + }, + toProto(message) { + return exports.PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + value: exports.PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts new file mode 100644 index 00000000..80f2ce87 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts @@ -0,0 +1,585 @@ +import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Params defines the set of params for the distribution module. */ +export interface Params { + communityTax: string; + baseProposerReward: string; + bonusProposerReward: string; + withdrawAddrEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the set of params for the distribution module. */ +export interface ParamsAmino { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the set of params for the distribution module. */ +export interface ParamsSDKType { + community_tax: string; + base_proposer_reward: string; + bonus_proposer_reward: string; + withdraw_addr_enabled: boolean; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewards { + cumulativeRewardRatio: DecCoin[]; + referenceCount: number; +} +export interface ValidatorHistoricalRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; + value: Uint8Array; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewardsAmino { + cumulative_reward_ratio?: DecCoinAmino[]; + reference_count?: number; +} +export interface ValidatorHistoricalRewardsAminoMsg { + type: "cosmos-sdk/ValidatorHistoricalRewards"; + value: ValidatorHistoricalRewardsAmino; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewardsSDKType { + cumulative_reward_ratio: DecCoinSDKType[]; + reference_count: number; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewards { + rewards: DecCoin[]; + period: bigint; +} +export interface ValidatorCurrentRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; + value: Uint8Array; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewardsAmino { + rewards?: DecCoinAmino[]; + period?: string; +} +export interface ValidatorCurrentRewardsAminoMsg { + type: "cosmos-sdk/ValidatorCurrentRewards"; + value: ValidatorCurrentRewardsAmino; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewardsSDKType { + rewards: DecCoinSDKType[]; + period: bigint; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommission { + commission: DecCoin[]; +} +export interface ValidatorAccumulatedCommissionProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; + value: Uint8Array; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommissionAmino { + commission?: DecCoinAmino[]; +} +export interface ValidatorAccumulatedCommissionAminoMsg { + type: "cosmos-sdk/ValidatorAccumulatedCommission"; + value: ValidatorAccumulatedCommissionAmino; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommissionSDKType { + commission: DecCoinSDKType[]; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewards { + rewards: DecCoin[]; +} +export interface ValidatorOutstandingRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; + value: Uint8Array; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewardsAmino { + rewards?: DecCoinAmino[]; +} +export interface ValidatorOutstandingRewardsAminoMsg { + type: "cosmos-sdk/ValidatorOutstandingRewards"; + value: ValidatorOutstandingRewardsAmino; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewardsSDKType { + rewards: DecCoinSDKType[]; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEvent { + validatorPeriod: bigint; + fraction: string; +} +export interface ValidatorSlashEventProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; + value: Uint8Array; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEventAmino { + validator_period?: string; + fraction?: string; +} +export interface ValidatorSlashEventAminoMsg { + type: "cosmos-sdk/ValidatorSlashEvent"; + value: ValidatorSlashEventAmino; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEventSDKType { + validator_period: bigint; + fraction: string; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEvents { + validatorSlashEvents: ValidatorSlashEvent[]; +} +export interface ValidatorSlashEventsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; + value: Uint8Array; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEventsAmino { + validator_slash_events?: ValidatorSlashEventAmino[]; +} +export interface ValidatorSlashEventsAminoMsg { + type: "cosmos-sdk/ValidatorSlashEvents"; + value: ValidatorSlashEventsAmino; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEventsSDKType { + validator_slash_events: ValidatorSlashEventSDKType[]; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePool { + communityPool: DecCoin[]; +} +export interface FeePoolProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.FeePool"; + value: Uint8Array; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePoolAmino { + community_pool?: DecCoinAmino[]; +} +export interface FeePoolAminoMsg { + type: "cosmos-sdk/FeePool"; + value: FeePoolAmino; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePoolSDKType { + community_pool: DecCoinSDKType[]; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposal { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + title: string; + description: string; + recipient: string; + amount: Coin[]; +} +export interface CommunityPoolSpendProposalProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + value: Uint8Array; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposalAmino { + title?: string; + description?: string; + recipient?: string; + amount?: CoinAmino[]; +} +export interface CommunityPoolSpendProposalAminoMsg { + type: "cosmos-sdk/CommunityPoolSpendProposal"; + value: CommunityPoolSpendProposalAmino; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposalSDKType { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + title: string; + description: string; + recipient: string; + amount: CoinSDKType[]; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfo { + previousPeriod: bigint; + stake: string; + height: bigint; +} +export interface DelegatorStartingInfoProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; + value: Uint8Array; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfoAmino { + previous_period?: string; + stake?: string; + height: string; +} +export interface DelegatorStartingInfoAminoMsg { + type: "cosmos-sdk/DelegatorStartingInfo"; + value: DelegatorStartingInfoAmino; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfoSDKType { + previous_period: bigint; + stake: string; + height: bigint; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorReward { + validatorAddress: string; + reward: DecCoin[]; +} +export interface DelegationDelegatorRewardProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; + value: Uint8Array; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorRewardAmino { + validator_address?: string; + reward?: DecCoinAmino[]; +} +export interface DelegationDelegatorRewardAminoMsg { + type: "cosmos-sdk/DelegationDelegatorReward"; + value: DelegationDelegatorRewardAmino; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorRewardSDKType { + validator_address: string; + reward: DecCoinSDKType[]; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDeposit { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + title: string; + description: string; + recipient: string; + amount: string; + deposit: string; +} +export interface CommunityPoolSpendProposalWithDepositProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + value: Uint8Array; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDepositAmino { + title?: string; + description?: string; + recipient?: string; + amount?: string; + deposit?: string; +} +export interface CommunityPoolSpendProposalWithDepositAminoMsg { + type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; + value: CommunityPoolSpendProposalWithDepositAmino; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDepositSDKType { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + title: string; + description: string; + recipient: string; + amount: string; + deposit: string; +} +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; +export declare const ValidatorHistoricalRewards: { + typeUrl: string; + encode(message: ValidatorHistoricalRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards; + fromPartial(object: Partial): ValidatorHistoricalRewards; + fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards; + toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino; + fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards; + toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg; + fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards; + toProto(message: ValidatorHistoricalRewards): Uint8Array; + toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg; +}; +export declare const ValidatorCurrentRewards: { + typeUrl: string; + encode(message: ValidatorCurrentRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards; + fromPartial(object: Partial): ValidatorCurrentRewards; + fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards; + toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino; + fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards; + toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg; + fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards; + toProto(message: ValidatorCurrentRewards): Uint8Array; + toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg; +}; +export declare const ValidatorAccumulatedCommission: { + typeUrl: string; + encode(message: ValidatorAccumulatedCommission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission; + fromPartial(object: Partial): ValidatorAccumulatedCommission; + fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission; + toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino; + fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission; + toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg; + fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission; + toProto(message: ValidatorAccumulatedCommission): Uint8Array; + toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg; +}; +export declare const ValidatorOutstandingRewards: { + typeUrl: string; + encode(message: ValidatorOutstandingRewards, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards; + fromPartial(object: Partial): ValidatorOutstandingRewards; + fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards; + toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino; + fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards; + toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg; + fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards; + toProto(message: ValidatorOutstandingRewards): Uint8Array; + toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg; +}; +export declare const ValidatorSlashEvent: { + typeUrl: string; + encode(message: ValidatorSlashEvent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent; + fromPartial(object: Partial): ValidatorSlashEvent; + fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent; + toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino; + fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent; + toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg; + fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent; + toProto(message: ValidatorSlashEvent): Uint8Array; + toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg; +}; +export declare const ValidatorSlashEvents: { + typeUrl: string; + encode(message: ValidatorSlashEvents, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents; + fromPartial(object: Partial): ValidatorSlashEvents; + fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents; + toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino; + fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents; + toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg; + fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents; + toProto(message: ValidatorSlashEvents): Uint8Array; + toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg; +}; +export declare const FeePool: { + typeUrl: string; + encode(message: FeePool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FeePool; + fromPartial(object: Partial): FeePool; + fromAmino(object: FeePoolAmino): FeePool; + toAmino(message: FeePool): FeePoolAmino; + fromAminoMsg(object: FeePoolAminoMsg): FeePool; + toAminoMsg(message: FeePool): FeePoolAminoMsg; + fromProtoMsg(message: FeePoolProtoMsg): FeePool; + toProto(message: FeePool): Uint8Array; + toProtoMsg(message: FeePool): FeePoolProtoMsg; +}; +export declare const CommunityPoolSpendProposal: { + typeUrl: string; + encode(message: CommunityPoolSpendProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal; + fromPartial(object: Partial): CommunityPoolSpendProposal; + fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal; + toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino; + fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal; + toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg; + fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal; + toProto(message: CommunityPoolSpendProposal): Uint8Array; + toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg; +}; +export declare const DelegatorStartingInfo: { + typeUrl: string; + encode(message: DelegatorStartingInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo; + fromPartial(object: Partial): DelegatorStartingInfo; + fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo; + toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino; + fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo; + toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg; + fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo; + toProto(message: DelegatorStartingInfo): Uint8Array; + toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg; +}; +export declare const DelegationDelegatorReward: { + typeUrl: string; + encode(message: DelegationDelegatorReward, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward; + fromPartial(object: Partial): DelegationDelegatorReward; + fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward; + toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino; + fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward; + toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg; + fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward; + toProto(message: DelegationDelegatorReward): Uint8Array; + toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg; +}; +export declare const CommunityPoolSpendProposalWithDeposit: { + typeUrl: string; + encode(message: CommunityPoolSpendProposalWithDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; + fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit; + fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit; + toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino; + fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit; + toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg; + fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit; + toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array; + toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/distribution.js b/packages/api/dist/cosmos/distribution/v1beta1/distribution.js new file mode 100644 index 00000000..205b10a3 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/distribution.js @@ -0,0 +1,1053 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorReward = exports.DelegatorStartingInfo = exports.CommunityPoolSpendProposal = exports.FeePool = exports.ValidatorSlashEvents = exports.ValidatorSlashEvent = exports.ValidatorOutstandingRewards = exports.ValidatorAccumulatedCommission = exports.ValidatorCurrentRewards = exports.ValidatorHistoricalRewards = exports.Params = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const math_1 = require("@cosmjs/math"); +function createBaseParams() { + return { + communityTax: "", + baseProposerReward: "", + bonusProposerReward: "", + withdrawAddrEnabled: false + }; +} +exports.Params = { + typeUrl: "/cosmos.distribution.v1beta1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.communityTax !== "") { + writer.uint32(10).string(math_1.Decimal.fromUserInput(message.communityTax, 18).atomics); + } + if (message.baseProposerReward !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.baseProposerReward, 18).atomics); + } + if (message.bonusProposerReward !== "") { + writer.uint32(26).string(math_1.Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); + } + if (message.withdrawAddrEnabled === true) { + writer.uint32(32).bool(message.withdrawAddrEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityTax = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.baseProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.bonusProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.withdrawAddrEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.communityTax = object.communityTax ?? ""; + message.baseProposerReward = object.baseProposerReward ?? ""; + message.bonusProposerReward = object.bonusProposerReward ?? ""; + message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.community_tax !== undefined && object.community_tax !== null) { + message.communityTax = object.community_tax; + } + if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { + message.baseProposerReward = object.base_proposer_reward; + } + if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { + message.bonusProposerReward = object.bonus_proposer_reward; + } + if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { + message.withdrawAddrEnabled = object.withdraw_addr_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; + obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; + obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; + obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewards() { + return { + cumulativeRewardRatio: [], + referenceCount: 0 + }; +} +exports.ValidatorHistoricalRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.cumulativeRewardRatio) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.referenceCount !== 0) { + writer.uint32(16).uint32(message.referenceCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cumulativeRewardRatio.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.referenceCount = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + message.referenceCount = object.referenceCount ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + if (object.reference_count !== undefined && object.reference_count !== null) { + message.referenceCount = object.reference_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.cumulativeRewardRatio) { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio; + } + obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorHistoricalRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorHistoricalRewards", + value: exports.ValidatorHistoricalRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorHistoricalRewards.decode(message.value); + }, + toProto(message) { + return exports.ValidatorHistoricalRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + value: exports.ValidatorHistoricalRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewards() { + return { + rewards: [], + period: BigInt(0) + }; +} +exports.ValidatorCurrentRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.rewards) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.period = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorCurrentRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorCurrentRewards", + value: exports.ValidatorCurrentRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorCurrentRewards.decode(message.value); + }, + toProto(message) { + return exports.ValidatorCurrentRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + value: exports.ValidatorCurrentRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommission() { + return { + commission: [] + }; +} +exports.ValidatorAccumulatedCommission = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.commission) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.commission) { + obj.commission = message.commission.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.commission = message.commission; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorAccumulatedCommission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommission", + value: exports.ValidatorAccumulatedCommission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorAccumulatedCommission.decode(message.value); + }, + toProto(message) { + return exports.ValidatorAccumulatedCommission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + value: exports.ValidatorAccumulatedCommission.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewards() { + return { + rewards: [] + }; +} +exports.ValidatorOutstandingRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.rewards) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorOutstandingRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorOutstandingRewards", + value: exports.ValidatorOutstandingRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorOutstandingRewards.decode(message.value); + }, + toProto(message) { + return exports.ValidatorOutstandingRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + value: exports.ValidatorOutstandingRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvent() { + return { + validatorPeriod: BigInt(0), + fraction: "" + }; +} +exports.ValidatorSlashEvent = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.validatorPeriod); + } + if (message.fraction !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.fraction, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorPeriod = reader.uint64(); + break; + case 2: + message.fraction = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEvent(); + message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); + message.fraction = object.fraction ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEvent(); + if (object.validator_period !== undefined && object.validator_period !== null) { + message.validatorPeriod = BigInt(object.validator_period); + } + if (object.fraction !== undefined && object.fraction !== null) { + message.fraction = object.fraction; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; + obj.fraction = message.fraction === "" ? undefined : message.fraction; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorSlashEvent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEvent", + value: exports.ValidatorSlashEvent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorSlashEvent.decode(message.value); + }, + toProto(message) { + return exports.ValidatorSlashEvent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + value: exports.ValidatorSlashEvent.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvents() { + return { + validatorSlashEvents: [] + }; +} +exports.ValidatorSlashEvents = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validatorSlashEvents) { + exports.ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvents(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorSlashEvents.push(exports.ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => exports.ValidatorSlashEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validator_slash_events?.map(e => exports.ValidatorSlashEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? exports.ValidatorSlashEvent.toAmino(e) : undefined); + } + else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorSlashEvents.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEvents", + value: exports.ValidatorSlashEvents.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorSlashEvents.decode(message.value); + }, + toProto(message) { + return exports.ValidatorSlashEvents.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + value: exports.ValidatorSlashEvents.encode(message).finish() + }; + } +}; +function createBaseFeePool() { + return { + communityPool: [] + }; +} +exports.FeePool = { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.communityPool) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFeePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityPool.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFeePool(); + message.communityPool = object.communityPool?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFeePool(); + message.communityPool = object.community_pool?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.communityPool) { + obj.community_pool = message.communityPool.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.community_pool = message.communityPool; + } + return obj; + }, + fromAminoMsg(object) { + return exports.FeePool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/FeePool", + value: exports.FeePool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.FeePool.decode(message.value); + }, + toProto(message) { + return exports.FeePool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + value: exports.FeePool.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposal() { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + title: "", + description: "", + recipient: "", + amount: [] + }; +} +exports.CommunityPoolSpendProposal = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommunityPoolSpendProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommunityPoolSpendProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.CommunityPoolSpendProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommunityPoolSpendProposal", + value: exports.CommunityPoolSpendProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CommunityPoolSpendProposal.decode(message.value); + }, + toProto(message) { + return exports.CommunityPoolSpendProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + value: exports.CommunityPoolSpendProposal.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfo() { + return { + previousPeriod: BigInt(0), + stake: "", + height: BigInt(0) + }; +} +exports.DelegatorStartingInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.previousPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.previousPeriod); + } + if (message.stake !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.stake, 18).atomics); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).uint64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.previousPeriod = reader.uint64(); + break; + case 2: + message.stake = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorStartingInfo(); + message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); + message.stake = object.stake ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorStartingInfo(); + if (object.previous_period !== undefined && object.previous_period !== null) { + message.previousPeriod = BigInt(object.previous_period); + } + if (object.stake !== undefined && object.stake !== null) { + message.stake = object.stake; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; + obj.stake = message.stake === "" ? undefined : message.stake; + obj.height = message.height ? message.height.toString() : "0"; + return obj; + }, + fromAminoMsg(object) { + return exports.DelegatorStartingInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorStartingInfo", + value: exports.DelegatorStartingInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelegatorStartingInfo.decode(message.value); + }, + toProto(message) { + return exports.DelegatorStartingInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + value: exports.DelegatorStartingInfo.encode(message).finish() + }; + } +}; +function createBaseDelegationDelegatorReward() { + return { + validatorAddress: "", + reward: [] + }; +} +exports.DelegationDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.reward) { + coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.reward.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegationDelegatorReward(); + message.validatorAddress = object.validatorAddress ?? ""; + message.reward = object.reward?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDelegationDelegatorReward(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.reward = object.reward?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.reward) { + obj.reward = message.reward.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.reward = message.reward; + } + return obj; + }, + fromAminoMsg(object) { + return exports.DelegationDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegationDelegatorReward", + value: exports.DelegationDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelegationDelegatorReward.decode(message.value); + }, + toProto(message) { + return exports.DelegationDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + value: exports.DelegationDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposalWithDeposit() { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + title: "", + description: "", + recipient: "", + amount: "", + deposit: "" + }; +} +exports.CommunityPoolSpendProposalWithDeposit = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.deposit !== "") { + writer.uint32(42).string(message.deposit); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.deposit = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.deposit = object.deposit ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = object.deposit; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.deposit = message.deposit === "" ? undefined : message.deposit; + return obj; + }, + fromAminoMsg(object) { + return exports.CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", + value: exports.CommunityPoolSpendProposalWithDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CommunityPoolSpendProposalWithDeposit.decode(message.value); + }, + toProto(message) { + return exports.CommunityPoolSpendProposalWithDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + value: exports.CommunityPoolSpendProposalWithDeposit.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts new file mode 100644 index 00000000..43c4c196 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts @@ -0,0 +1,413 @@ +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; +import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfo { + /** delegator_address is the address of the delegator. */ + delegatorAddress: string; + /** withdraw_address is the address to withdraw the delegation rewards to. */ + withdrawAddress: string; +} +export interface DelegatorWithdrawInfoProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; + value: Uint8Array; +} +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfoAmino { + /** delegator_address is the address of the delegator. */ + delegator_address?: string; + /** withdraw_address is the address to withdraw the delegation rewards to. */ + withdraw_address?: string; +} +export interface DelegatorWithdrawInfoAminoMsg { + type: "cosmos-sdk/DelegatorWithdrawInfo"; + value: DelegatorWithdrawInfoAmino; +} +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfoSDKType { + delegator_address: string; + withdraw_address: string; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** outstanding_rewards represents the oustanding rewards of a validator. */ + outstandingRewards: DecCoin[]; +} +export interface ValidatorOutstandingRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; + value: Uint8Array; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** outstanding_rewards represents the oustanding rewards of a validator. */ + outstanding_rewards?: DecCoinAmino[]; +} +export interface ValidatorOutstandingRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; + value: ValidatorOutstandingRewardsRecordAmino; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecordSDKType { + validator_address: string; + outstanding_rewards: DecCoinSDKType[]; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** accumulated is the accumulated commission of a validator. */ + accumulated: ValidatorAccumulatedCommission; +} +export interface ValidatorAccumulatedCommissionRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; + value: Uint8Array; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** accumulated is the accumulated commission of a validator. */ + accumulated?: ValidatorAccumulatedCommissionAmino; +} +export interface ValidatorAccumulatedCommissionRecordAminoMsg { + type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; + value: ValidatorAccumulatedCommissionRecordAmino; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecordSDKType { + validator_address: string; + accumulated: ValidatorAccumulatedCommissionSDKType; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** period defines the period the historical rewards apply to. */ + period: bigint; + /** rewards defines the historical rewards of a validator. */ + rewards: ValidatorHistoricalRewards; +} +export interface ValidatorHistoricalRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; + value: Uint8Array; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** period defines the period the historical rewards apply to. */ + period?: string; + /** rewards defines the historical rewards of a validator. */ + rewards?: ValidatorHistoricalRewardsAmino; +} +export interface ValidatorHistoricalRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; + value: ValidatorHistoricalRewardsRecordAmino; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecordSDKType { + validator_address: string; + period: bigint; + rewards: ValidatorHistoricalRewardsSDKType; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** rewards defines the current rewards of a validator. */ + rewards: ValidatorCurrentRewards; +} +export interface ValidatorCurrentRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; + value: Uint8Array; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** rewards defines the current rewards of a validator. */ + rewards?: ValidatorCurrentRewardsAmino; +} +export interface ValidatorCurrentRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; + value: ValidatorCurrentRewardsRecordAmino; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecordSDKType { + validator_address: string; + rewards: ValidatorCurrentRewardsSDKType; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecord { + /** delegator_address is the address of the delegator. */ + delegatorAddress: string; + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** starting_info defines the starting info of a delegator. */ + startingInfo: DelegatorStartingInfo; +} +export interface DelegatorStartingInfoRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; + value: Uint8Array; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecordAmino { + /** delegator_address is the address of the delegator. */ + delegator_address?: string; + /** validator_address is the address of the validator. */ + validator_address?: string; + /** starting_info defines the starting info of a delegator. */ + starting_info?: DelegatorStartingInfoAmino; +} +export interface DelegatorStartingInfoRecordAminoMsg { + type: "cosmos-sdk/DelegatorStartingInfoRecord"; + value: DelegatorStartingInfoRecordAmino; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecordSDKType { + delegator_address: string; + validator_address: string; + starting_info: DelegatorStartingInfoSDKType; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** height defines the block height at which the slash event occured. */ + height: bigint; + /** period is the period of the slash event. */ + period: bigint; + /** validator_slash_event describes the slash event. */ + validatorSlashEvent: ValidatorSlashEvent; +} +export interface ValidatorSlashEventRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; + value: Uint8Array; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** height defines the block height at which the slash event occured. */ + height?: string; + /** period is the period of the slash event. */ + period?: string; + /** validator_slash_event describes the slash event. */ + validator_slash_event?: ValidatorSlashEventAmino; +} +export interface ValidatorSlashEventRecordAminoMsg { + type: "cosmos-sdk/ValidatorSlashEventRecord"; + value: ValidatorSlashEventRecordAmino; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecordSDKType { + validator_address: string; + height: bigint; + period: bigint; + validator_slash_event: ValidatorSlashEventSDKType; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** fee_pool defines the fee pool at genesis. */ + feePool: FeePool; + /** fee_pool defines the delegator withdraw infos at genesis. */ + delegatorWithdrawInfos: DelegatorWithdrawInfo[]; + /** fee_pool defines the previous proposer at genesis. */ + previousProposer: string; + /** fee_pool defines the outstanding rewards of all validators at genesis. */ + outstandingRewards: ValidatorOutstandingRewardsRecord[]; + /** fee_pool defines the accumulated commisions of all validators at genesis. */ + validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; + /** fee_pool defines the historical rewards of all validators at genesis. */ + validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; + /** fee_pool defines the current rewards of all validators at genesis. */ + validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; + /** fee_pool defines the delegator starting infos at genesis. */ + delegatorStartingInfos: DelegatorStartingInfoRecord[]; + /** fee_pool defines the validator slash events at genesis. */ + validatorSlashEvents: ValidatorSlashEventRecord[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** fee_pool defines the fee pool at genesis. */ + fee_pool?: FeePoolAmino; + /** fee_pool defines the delegator withdraw infos at genesis. */ + delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; + /** fee_pool defines the previous proposer at genesis. */ + previous_proposer?: string; + /** fee_pool defines the outstanding rewards of all validators at genesis. */ + outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; + /** fee_pool defines the accumulated commisions of all validators at genesis. */ + validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; + /** fee_pool defines the historical rewards of all validators at genesis. */ + validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; + /** fee_pool defines the current rewards of all validators at genesis. */ + validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; + /** fee_pool defines the delegator starting infos at genesis. */ + delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; + /** fee_pool defines the validator slash events at genesis. */ + validator_slash_events?: ValidatorSlashEventRecordAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + fee_pool: FeePoolSDKType; + delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; + previous_proposer: string; + outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; + validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; + validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; + validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; + delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; + validator_slash_events: ValidatorSlashEventRecordSDKType[]; +} +export declare const DelegatorWithdrawInfo: { + typeUrl: string; + encode(message: DelegatorWithdrawInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo; + fromPartial(object: Partial): DelegatorWithdrawInfo; + fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo; + toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino; + fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo; + toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg; + fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo; + toProto(message: DelegatorWithdrawInfo): Uint8Array; + toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg; +}; +export declare const ValidatorOutstandingRewardsRecord: { + typeUrl: string; + encode(message: ValidatorOutstandingRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord; + fromPartial(object: Partial): ValidatorOutstandingRewardsRecord; + fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord; + toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino; + fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord; + toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg; + fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord; + toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array; + toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg; +}; +export declare const ValidatorAccumulatedCommissionRecord: { + typeUrl: string; + encode(message: ValidatorAccumulatedCommissionRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord; + fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord; + fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord; + toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino; + fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord; + toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg; + fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord; + toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array; + toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg; +}; +export declare const ValidatorHistoricalRewardsRecord: { + typeUrl: string; + encode(message: ValidatorHistoricalRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord; + fromPartial(object: Partial): ValidatorHistoricalRewardsRecord; + fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord; + toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino; + fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord; + toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg; + fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord; + toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array; + toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg; +}; +export declare const ValidatorCurrentRewardsRecord: { + typeUrl: string; + encode(message: ValidatorCurrentRewardsRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord; + fromPartial(object: Partial): ValidatorCurrentRewardsRecord; + fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord; + toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino; + fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord; + toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg; + fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord; + toProto(message: ValidatorCurrentRewardsRecord): Uint8Array; + toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg; +}; +export declare const DelegatorStartingInfoRecord: { + typeUrl: string; + encode(message: DelegatorStartingInfoRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord; + fromPartial(object: Partial): DelegatorStartingInfoRecord; + fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord; + toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino; + fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord; + toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg; + fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord; + toProto(message: DelegatorStartingInfoRecord): Uint8Array; + toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg; +}; +export declare const ValidatorSlashEventRecord: { + typeUrl: string; + encode(message: ValidatorSlashEventRecord, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord; + fromPartial(object: Partial): ValidatorSlashEventRecord; + fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord; + toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino; + fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord; + toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg; + fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord; + toProto(message: ValidatorSlashEventRecord): Uint8Array; + toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg; +}; +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/genesis.js b/packages/api/dist/cosmos/distribution/v1beta1/genesis.js new file mode 100644 index 00000000..039802b2 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/genesis.js @@ -0,0 +1,823 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = exports.ValidatorSlashEventRecord = exports.DelegatorStartingInfoRecord = exports.ValidatorCurrentRewardsRecord = exports.ValidatorHistoricalRewardsRecord = exports.ValidatorAccumulatedCommissionRecord = exports.ValidatorOutstandingRewardsRecord = exports.DelegatorWithdrawInfo = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const distribution_1 = require("./distribution"); +const binary_1 = require("../../../binary"); +function createBaseDelegatorWithdrawInfo() { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +exports.DelegatorWithdrawInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorWithdrawInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorWithdrawInfo(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorWithdrawInfo(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.DelegatorWithdrawInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorWithdrawInfo", + value: exports.DelegatorWithdrawInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelegatorWithdrawInfo.decode(message.value); + }, + toProto(message) { + return exports.DelegatorWithdrawInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + value: exports.DelegatorWithdrawInfo.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewardsRecord() { + return { + validatorAddress: "", + outstandingRewards: [] + }; +} +exports.ValidatorOutstandingRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.outstandingRewards) { + coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.outstandingRewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorOutstandingRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorOutstandingRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.outstanding_rewards = message.outstandingRewards; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorOutstandingRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", + value: exports.ValidatorOutstandingRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorOutstandingRewardsRecord.decode(message.value); + }, + toProto(message) { + return exports.ValidatorOutstandingRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + value: exports.ValidatorOutstandingRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommissionRecord() { + return { + validatorAddress: "", + accumulated: distribution_1.ValidatorAccumulatedCommission.fromPartial({}) + }; +} +exports.ValidatorAccumulatedCommissionRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.accumulated !== undefined) { + distribution_1.ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommissionRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.accumulated = distribution_1.ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorAccumulatedCommissionRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? distribution_1.ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorAccumulatedCommissionRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.accumulated !== undefined && object.accumulated !== null) { + message.accumulated = distribution_1.ValidatorAccumulatedCommission.fromAmino(object.accumulated); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.accumulated = message.accumulated ? distribution_1.ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorAccumulatedCommissionRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", + value: exports.ValidatorAccumulatedCommissionRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorAccumulatedCommissionRecord.decode(message.value); + }, + toProto(message) { + return exports.ValidatorAccumulatedCommissionRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + value: exports.ValidatorAccumulatedCommissionRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewardsRecord() { + return { + validatorAddress: "", + period: BigInt(0), + rewards: distribution_1.ValidatorHistoricalRewards.fromPartial({}) + }; +} +exports.ValidatorHistoricalRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + if (message.rewards !== undefined) { + distribution_1.ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.period = reader.uint64(); + break; + case 3: + message.rewards = distribution_1.ValidatorHistoricalRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorHistoricalRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorHistoricalRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = distribution_1.ValidatorHistoricalRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.rewards = message.rewards ? distribution_1.ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorHistoricalRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", + value: exports.ValidatorHistoricalRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorHistoricalRewardsRecord.decode(message.value); + }, + toProto(message) { + return exports.ValidatorHistoricalRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + value: exports.ValidatorHistoricalRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewardsRecord() { + return { + validatorAddress: "", + rewards: distribution_1.ValidatorCurrentRewards.fromPartial({}) + }; +} +exports.ValidatorCurrentRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.rewards !== undefined) { + distribution_1.ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.rewards = distribution_1.ValidatorCurrentRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorCurrentRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorCurrentRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = distribution_1.ValidatorCurrentRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.rewards = message.rewards ? distribution_1.ValidatorCurrentRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorCurrentRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorCurrentRewardsRecord", + value: exports.ValidatorCurrentRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorCurrentRewardsRecord.decode(message.value); + }, + toProto(message) { + return exports.ValidatorCurrentRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + value: exports.ValidatorCurrentRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfoRecord() { + return { + delegatorAddress: "", + validatorAddress: "", + startingInfo: distribution_1.DelegatorStartingInfo.fromPartial({}) + }; +} +exports.DelegatorStartingInfoRecord = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.startingInfo !== undefined) { + distribution_1.DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfoRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.startingInfo = distribution_1.DelegatorStartingInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorStartingInfoRecord(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? distribution_1.DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorStartingInfoRecord(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_info !== undefined && object.starting_info !== null) { + message.startingInfo = distribution_1.DelegatorStartingInfo.fromAmino(object.starting_info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_info = message.startingInfo ? distribution_1.DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DelegatorStartingInfoRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorStartingInfoRecord", + value: exports.DelegatorStartingInfoRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelegatorStartingInfoRecord.decode(message.value); + }, + toProto(message) { + return exports.DelegatorStartingInfoRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + value: exports.DelegatorStartingInfoRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEventRecord() { + return { + validatorAddress: "", + height: BigInt(0), + period: BigInt(0), + validatorSlashEvent: distribution_1.ValidatorSlashEvent.fromPartial({}) + }; +} +exports.ValidatorSlashEventRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).uint64(message.height); + } + if (message.period !== BigInt(0)) { + writer.uint32(24).uint64(message.period); + } + if (message.validatorSlashEvent !== undefined) { + distribution_1.ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEventRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.height = reader.uint64(); + break; + case 3: + message.period = reader.uint64(); + break; + case 4: + message.validatorSlashEvent = distribution_1.ValidatorSlashEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEventRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? distribution_1.ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEventRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { + message.validatorSlashEvent = distribution_1.ValidatorSlashEvent.fromAmino(object.validator_slash_event); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.validator_slash_event = message.validatorSlashEvent ? distribution_1.ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorSlashEventRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEventRecord", + value: exports.ValidatorSlashEventRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValidatorSlashEventRecord.decode(message.value); + }, + toProto(message) { + return exports.ValidatorSlashEventRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + value: exports.ValidatorSlashEventRecord.encode(message).finish() + }; + } +}; +function createBaseGenesisState() { + return { + params: distribution_1.Params.fromPartial({}), + feePool: distribution_1.FeePool.fromPartial({}), + delegatorWithdrawInfos: [], + previousProposer: "", + outstandingRewards: [], + validatorAccumulatedCommissions: [], + validatorHistoricalRewards: [], + validatorCurrentRewards: [], + delegatorStartingInfos: [], + validatorSlashEvents: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + distribution_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.feePool !== undefined) { + distribution_1.FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatorWithdrawInfos) { + exports.DelegatorWithdrawInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.previousProposer !== "") { + writer.uint32(34).string(message.previousProposer); + } + for (const v of message.outstandingRewards) { + exports.ValidatorOutstandingRewardsRecord.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.validatorAccumulatedCommissions) { + exports.ValidatorAccumulatedCommissionRecord.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.validatorHistoricalRewards) { + exports.ValidatorHistoricalRewardsRecord.encode(v, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.validatorCurrentRewards) { + exports.ValidatorCurrentRewardsRecord.encode(v, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.delegatorStartingInfos) { + exports.DelegatorStartingInfoRecord.encode(v, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.validatorSlashEvents) { + exports.ValidatorSlashEventRecord.encode(v, writer.uint32(82).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = distribution_1.Params.decode(reader, reader.uint32()); + break; + case 2: + message.feePool = distribution_1.FeePool.decode(reader, reader.uint32()); + break; + case 3: + message.delegatorWithdrawInfos.push(exports.DelegatorWithdrawInfo.decode(reader, reader.uint32())); + break; + case 4: + message.previousProposer = reader.string(); + break; + case 5: + message.outstandingRewards.push(exports.ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAccumulatedCommissions.push(exports.ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); + break; + case 7: + message.validatorHistoricalRewards.push(exports.ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); + break; + case 8: + message.validatorCurrentRewards.push(exports.ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); + break; + case 9: + message.delegatorStartingInfos.push(exports.DelegatorStartingInfoRecord.decode(reader, reader.uint32())); + break; + case 10: + message.validatorSlashEvents.push(exports.ValidatorSlashEventRecord.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? distribution_1.Params.fromPartial(object.params) : undefined; + message.feePool = object.feePool !== undefined && object.feePool !== null ? distribution_1.FeePool.fromPartial(object.feePool) : undefined; + message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => exports.DelegatorWithdrawInfo.fromPartial(e)) || []; + message.previousProposer = object.previousProposer ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => exports.ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; + message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => exports.ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; + message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => exports.ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; + message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => exports.ValidatorCurrentRewardsRecord.fromPartial(e)) || []; + message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => exports.DelegatorStartingInfoRecord.fromPartial(e)) || []; + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => exports.ValidatorSlashEventRecord.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = distribution_1.Params.fromAmino(object.params); + } + if (object.fee_pool !== undefined && object.fee_pool !== null) { + message.feePool = distribution_1.FeePool.fromAmino(object.fee_pool); + } + message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => exports.DelegatorWithdrawInfo.fromAmino(e)) || []; + if (object.previous_proposer !== undefined && object.previous_proposer !== null) { + message.previousProposer = object.previous_proposer; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => exports.ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; + message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => exports.ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; + message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => exports.ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; + message.validatorCurrentRewards = object.validator_current_rewards?.map(e => exports.ValidatorCurrentRewardsRecord.fromAmino(e)) || []; + message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => exports.DelegatorStartingInfoRecord.fromAmino(e)) || []; + message.validatorSlashEvents = object.validator_slash_events?.map(e => exports.ValidatorSlashEventRecord.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? distribution_1.Params.toAmino(message.params) : undefined; + obj.fee_pool = message.feePool ? distribution_1.FeePool.toAmino(message.feePool) : undefined; + if (message.delegatorWithdrawInfos) { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? exports.DelegatorWithdrawInfo.toAmino(e) : undefined); + } + else { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; + } + obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? exports.ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); + } + else { + obj.outstanding_rewards = message.outstandingRewards; + } + if (message.validatorAccumulatedCommissions) { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? exports.ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); + } + else { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; + } + if (message.validatorHistoricalRewards) { + obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? exports.ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); + } + else { + obj.validator_historical_rewards = message.validatorHistoricalRewards; + } + if (message.validatorCurrentRewards) { + obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? exports.ValidatorCurrentRewardsRecord.toAmino(e) : undefined); + } + else { + obj.validator_current_rewards = message.validatorCurrentRewards; + } + if (message.delegatorStartingInfos) { + obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? exports.DelegatorStartingInfoRecord.toAmino(e) : undefined); + } + else { + obj.delegator_starting_infos = message.delegatorStartingInfos; + } + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? exports.ValidatorSlashEventRecord.toAmino(e) : undefined); + } + else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts new file mode 100644 index 00000000..8e38dc88 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts @@ -0,0 +1,796 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryValidatorOutstandingRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryValidatorOutstandingRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; + value: QueryValidatorOutstandingRewardsRequestAmino; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequestSDKType { + validator_address: string; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponse { + rewards: ValidatorOutstandingRewards; +} +export interface QueryValidatorOutstandingRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponseAmino { + rewards?: ValidatorOutstandingRewardsAmino; +} +export interface QueryValidatorOutstandingRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse"; + value: QueryValidatorOutstandingRewardsResponseAmino; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponseSDKType { + rewards: ValidatorOutstandingRewardsSDKType; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryValidatorCommissionRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; + value: Uint8Array; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryValidatorCommissionRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorCommissionRequest"; + value: QueryValidatorCommissionRequestAmino; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequestSDKType { + validator_address: string; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponse { + /** commission defines the commision the validator received. */ + commission: ValidatorAccumulatedCommission; +} +export interface QueryValidatorCommissionResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; + value: Uint8Array; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponseAmino { + /** commission defines the commision the validator received. */ + commission?: ValidatorAccumulatedCommissionAmino; +} +export interface QueryValidatorCommissionResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorCommissionResponse"; + value: QueryValidatorCommissionResponseAmino; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponseSDKType { + commission: ValidatorAccumulatedCommissionSDKType; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; + /** starting_height defines the optional starting height to query the slashes. */ + startingHeight: bigint; + /** starting_height defines the optional ending height to query the slashes. */ + endingHeight: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorSlashesRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; + value: Uint8Array; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; + /** starting_height defines the optional starting height to query the slashes. */ + starting_height?: string; + /** starting_height defines the optional ending height to query the slashes. */ + ending_height?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorSlashesRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorSlashesRequest"; + value: QueryValidatorSlashesRequestAmino; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequestSDKType { + validator_address: string; + starting_height: bigint; + ending_height: bigint; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponse { + /** slashes defines the slashes the validator received. */ + slashes: ValidatorSlashEvent[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorSlashesResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; + value: Uint8Array; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponseAmino { + /** slashes defines the slashes the validator received. */ + slashes?: ValidatorSlashEventAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorSlashesResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorSlashesResponse"; + value: QueryValidatorSlashesResponseAmino; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponseSDKType { + slashes: ValidatorSlashEventSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryDelegationRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; + value: Uint8Array; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryDelegationRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationRewardsRequest"; + value: QueryDelegationRewardsRequestAmino; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequestSDKType { + delegator_address: string; + validator_address: string; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponse { + /** rewards defines the rewards accrued by a delegation. */ + rewards: DecCoin[]; +} +export interface QueryDelegationRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; + value: Uint8Array; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponseAmino { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: DecCoinAmino[]; +} +export interface QueryDelegationRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationRewardsResponse"; + value: QueryDelegationRewardsResponseAmino; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponseSDKType { + rewards: DecCoinSDKType[]; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegationTotalRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; + value: Uint8Array; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegationTotalRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; + value: QueryDelegationTotalRewardsRequestAmino; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponse { + /** rewards defines all the rewards accrued by a delegator. */ + rewards: DelegationDelegatorReward[]; + /** total defines the sum of all the rewards. */ + total: DecCoin[]; +} +export interface QueryDelegationTotalRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; + value: Uint8Array; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponseAmino { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: DelegationDelegatorRewardAmino[]; + /** total defines the sum of all the rewards. */ + total?: DecCoinAmino[]; +} +export interface QueryDelegationTotalRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; + value: QueryDelegationTotalRewardsResponseAmino; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponseSDKType { + rewards: DelegationDelegatorRewardSDKType[]; + total: DecCoinSDKType[]; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegatorValidatorsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegatorValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; + value: QueryDelegatorValidatorsRequestAmino; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponse { + /** validators defines the validators a delegator is delegating for. */ + validators: string[]; +} +export interface QueryDelegatorValidatorsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseAmino { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; +} +export interface QueryDelegatorValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; + value: QueryDelegatorValidatorsResponseAmino; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseSDKType { + validators: string[]; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegatorWithdrawAddressRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegatorWithdrawAddressRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; + value: QueryDelegatorWithdrawAddressRequestAmino; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponse { + /** withdraw_address defines the delegator address to query for. */ + withdrawAddress: string; +} +export interface QueryDelegatorWithdrawAddressResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponseAmino { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; +} +export interface QueryDelegatorWithdrawAddressResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; + value: QueryDelegatorWithdrawAddressResponseAmino; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponseSDKType { + withdraw_address: string; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequest { +} +export interface QueryCommunityPoolRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; + value: Uint8Array; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequestAmino { +} +export interface QueryCommunityPoolRequestAminoMsg { + type: "cosmos-sdk/QueryCommunityPoolRequest"; + value: QueryCommunityPoolRequestAmino; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequestSDKType { +} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponse { + /** pool defines community pool's coins. */ + pool: DecCoin[]; +} +export interface QueryCommunityPoolResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; + value: Uint8Array; +} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponseAmino { + /** pool defines community pool's coins. */ + pool?: DecCoinAmino[]; +} +export interface QueryCommunityPoolResponseAminoMsg { + type: "cosmos-sdk/QueryCommunityPoolResponse"; + value: QueryCommunityPoolResponseAmino; +} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponseSDKType { + pool: DecCoinSDKType[]; +} +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryValidatorOutstandingRewardsRequest: { + typeUrl: string; + encode(message: QueryValidatorOutstandingRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; + fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest; + fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest; + toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino; + fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest; + toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg; + fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest; + toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array; + toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg; +}; +export declare const QueryValidatorOutstandingRewardsResponse: { + typeUrl: string; + encode(message: QueryValidatorOutstandingRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; + fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse; + fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse; + toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino; + fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse; + toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg; + fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse; + toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array; + toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg; +}; +export declare const QueryValidatorCommissionRequest: { + typeUrl: string; + encode(message: QueryValidatorCommissionRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest; + fromPartial(object: Partial): QueryValidatorCommissionRequest; + fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest; + toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino; + fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest; + toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg; + fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest; + toProto(message: QueryValidatorCommissionRequest): Uint8Array; + toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg; +}; +export declare const QueryValidatorCommissionResponse: { + typeUrl: string; + encode(message: QueryValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse; + fromPartial(object: Partial): QueryValidatorCommissionResponse; + fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse; + toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino; + fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse; + toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg; + fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse; + toProto(message: QueryValidatorCommissionResponse): Uint8Array; + toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg; +}; +export declare const QueryValidatorSlashesRequest: { + typeUrl: string; + encode(message: QueryValidatorSlashesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest; + fromPartial(object: Partial): QueryValidatorSlashesRequest; + fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest; + toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino; + fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest; + toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg; + fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest; + toProto(message: QueryValidatorSlashesRequest): Uint8Array; + toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg; +}; +export declare const QueryValidatorSlashesResponse: { + typeUrl: string; + encode(message: QueryValidatorSlashesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse; + fromPartial(object: Partial): QueryValidatorSlashesResponse; + fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse; + toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino; + fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse; + toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg; + fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse; + toProto(message: QueryValidatorSlashesResponse): Uint8Array; + toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg; +}; +export declare const QueryDelegationRewardsRequest: { + typeUrl: string; + encode(message: QueryDelegationRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest; + fromPartial(object: Partial): QueryDelegationRewardsRequest; + fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest; + toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino; + fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest; + toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg; + fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest; + toProto(message: QueryDelegationRewardsRequest): Uint8Array; + toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg; +}; +export declare const QueryDelegationRewardsResponse: { + typeUrl: string; + encode(message: QueryDelegationRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse; + fromPartial(object: Partial): QueryDelegationRewardsResponse; + fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse; + toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino; + fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse; + toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg; + fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse; + toProto(message: QueryDelegationRewardsResponse): Uint8Array; + toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg; +}; +export declare const QueryDelegationTotalRewardsRequest: { + typeUrl: string; + encode(message: QueryDelegationTotalRewardsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; + fromPartial(object: Partial): QueryDelegationTotalRewardsRequest; + fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest; + toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino; + fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest; + toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg; + fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest; + toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array; + toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg; +}; +export declare const QueryDelegationTotalRewardsResponse: { + typeUrl: string; + encode(message: QueryDelegationTotalRewardsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; + fromPartial(object: Partial): QueryDelegationTotalRewardsResponse; + fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse; + toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino; + fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse; + toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg; + fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse; + toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array; + toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg; +}; +export declare const QueryDelegatorValidatorsRequest: { + typeUrl: string; + encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; + fromPartial(object: Partial): QueryDelegatorValidatorsRequest; + fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; + toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; + fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; + toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; + toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; +}; +export declare const QueryDelegatorValidatorsResponse: { + typeUrl: string; + encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; + fromPartial(object: Partial): QueryDelegatorValidatorsResponse; + fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; + toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; + fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; + toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; + toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; +}; +export declare const QueryDelegatorWithdrawAddressRequest: { + typeUrl: string; + encode(message: QueryDelegatorWithdrawAddressRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; + fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest; + fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest; + toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino; + fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest; + toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest; + toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg; +}; +export declare const QueryDelegatorWithdrawAddressResponse: { + typeUrl: string; + encode(message: QueryDelegatorWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; + fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse; + fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse; + toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino; + fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse; + toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse; + toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg; +}; +export declare const QueryCommunityPoolRequest: { + typeUrl: string; + encode(_: QueryCommunityPoolRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest; + fromPartial(_: Partial): QueryCommunityPoolRequest; + fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest; + toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino; + fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest; + toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg; + fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest; + toProto(message: QueryCommunityPoolRequest): Uint8Array; + toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg; +}; +export declare const QueryCommunityPoolResponse: { + typeUrl: string; + encode(message: QueryCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse; + fromPartial(object: Partial): QueryCommunityPoolResponse; + fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse; + toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino; + fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse; + toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg; + fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse; + toProto(message: QueryCommunityPoolResponse): Uint8Array; + toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.js b/packages/api/dist/cosmos/distribution/v1beta1/query.js new file mode 100644 index 00000000..a46744f5 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.js @@ -0,0 +1,1314 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const distribution_1 = require("./distribution"); +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: distribution_1.Params.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + distribution_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = distribution_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? distribution_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = distribution_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? distribution_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsRequest() { + return { + validatorAddress: "" + }; +} +exports.QueryValidatorOutstandingRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", + value: exports.QueryValidatorOutstandingRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorOutstandingRewardsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorOutstandingRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + value: exports.QueryValidatorOutstandingRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsResponse() { + return { + rewards: distribution_1.ValidatorOutstandingRewards.fromPartial({}) + }; +} +exports.QueryValidatorOutstandingRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.rewards !== undefined) { + distribution_1.ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards = distribution_1.ValidatorOutstandingRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = distribution_1.ValidatorOutstandingRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.rewards = message.rewards ? distribution_1.ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", + value: exports.QueryValidatorOutstandingRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorOutstandingRewardsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorOutstandingRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + value: exports.QueryValidatorOutstandingRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionRequest() { + return { + validatorAddress: "" + }; +} +exports.QueryValidatorCommissionRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorCommissionRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorCommissionRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorCommissionRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorCommissionRequest", + value: exports.QueryValidatorCommissionRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorCommissionRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorCommissionRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + value: exports.QueryValidatorCommissionRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionResponse() { + return { + commission: distribution_1.ValidatorAccumulatedCommission.fromPartial({}) + }; +} +exports.QueryValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.commission !== undefined) { + distribution_1.ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission = distribution_1.ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorCommissionResponse(); + message.commission = object.commission !== undefined && object.commission !== null ? distribution_1.ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorCommissionResponse(); + if (object.commission !== undefined && object.commission !== null) { + message.commission = distribution_1.ValidatorAccumulatedCommission.fromAmino(object.commission); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.commission = message.commission ? distribution_1.ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorCommissionResponse", + value: exports.QueryValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorCommissionResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + value: exports.QueryValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesRequest() { + return { + validatorAddress: "", + startingHeight: BigInt(0), + endingHeight: BigInt(0), + pagination: undefined + }; +} +exports.QueryValidatorSlashesRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.startingHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.startingHeight); + } + if (message.endingHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.endingHeight); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.startingHeight = reader.uint64(); + break; + case 3: + message.endingHeight = reader.uint64(); + break; + case 4: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorSlashesRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); + message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorSlashesRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_height !== undefined && object.starting_height !== null) { + message.startingHeight = BigInt(object.starting_height); + } + if (object.ending_height !== undefined && object.ending_height !== null) { + message.endingHeight = BigInt(object.ending_height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; + obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorSlashesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorSlashesRequest", + value: exports.QueryValidatorSlashesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorSlashesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorSlashesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + value: exports.QueryValidatorSlashesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesResponse() { + return { + slashes: [], + pagination: undefined + }; +} +exports.QueryValidatorSlashesResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.slashes) { + distribution_1.ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.slashes.push(distribution_1.ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => distribution_1.ValidatorSlashEvent.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => distribution_1.ValidatorSlashEvent.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.slashes) { + obj.slashes = message.slashes.map(e => e ? distribution_1.ValidatorSlashEvent.toAmino(e) : undefined); + } + else { + obj.slashes = message.slashes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorSlashesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorSlashesResponse", + value: exports.QueryValidatorSlashesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorSlashesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorSlashesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + value: exports.QueryValidatorSlashesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsRequest() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +exports.QueryDelegationRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRewardsRequest", + value: exports.QueryDelegationRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationRewardsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + value: exports.QueryDelegationRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsResponse() { + return { + rewards: [] + }; +} +exports.QueryDelegationRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.rewards) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRewardsResponse", + value: exports.QueryDelegationRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationRewardsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + value: exports.QueryDelegationRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsRequest() { + return { + delegatorAddress: "" + }; +} +exports.QueryDelegationTotalRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationTotalRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationTotalRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationTotalRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", + value: exports.QueryDelegationTotalRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationTotalRewardsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationTotalRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + value: exports.QueryDelegationTotalRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsResponse() { + return { + rewards: [], + total: [] + }; +} +exports.QueryDelegationTotalRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.rewards) { + distribution_1.DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.total) { + coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(distribution_1.DelegationDelegatorReward.decode(reader, reader.uint32())); + break; + case 2: + message.total.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => distribution_1.DelegationDelegatorReward.fromPartial(e)) || []; + message.total = object.total?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => distribution_1.DelegationDelegatorReward.fromAmino(e)) || []; + message.total = object.total?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? distribution_1.DelegationDelegatorReward.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + if (message.total) { + obj.total = message.total.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationTotalRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", + value: exports.QueryDelegationTotalRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationTotalRewardsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationTotalRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + value: exports.QueryDelegationTotalRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest() { + return { + delegatorAddress: "" + }; +} +exports.QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: exports.QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + value: exports.QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse() { + return { + validators: [] + }; +} +exports.QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validators) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e); + } + else { + obj.validators = message.validators; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: exports.QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + value: exports.QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressRequest() { + return { + delegatorAddress: "" + }; +} +exports.QueryDelegatorWithdrawAddressRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", + value: exports.QueryDelegatorWithdrawAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorWithdrawAddressRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorWithdrawAddressRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + value: exports.QueryDelegatorWithdrawAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressResponse() { + return { + withdrawAddress: "" + }; +} +exports.QueryDelegatorWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.withdrawAddress !== "") { + writer.uint32(10).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", + value: exports.QueryDelegatorWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorWithdrawAddressResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + value: exports.QueryDelegatorWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolRequest() { + return {}; +} +exports.QueryCommunityPoolRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCommunityPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCommunityPoolRequest", + value: exports.QueryCommunityPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryCommunityPoolRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryCommunityPoolRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + value: exports.QueryCommunityPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolResponse() { + return { + pool: [] + }; +} +exports.QueryCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.pool) { + coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool.push(coin_1.DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => coin_1.DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => coin_1.DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pool) { + obj.pool = message.pool.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); + } + else { + obj.pool = message.pool; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCommunityPoolResponse", + value: exports.QueryCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryCommunityPoolResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + value: exports.QueryCommunityPoolResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..753bd2d6 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts @@ -0,0 +1,17 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + params(_params?: QueryParamsRequest): Promise; + validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(params: QueryValidatorCommissionRequest): Promise; + validatorSlashes(params: QueryValidatorSlashesRequest): Promise; + delegationRewards(params: QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(_params?: QueryCommunityPoolRequest): Promise; +} diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js new file mode 100644 index 00000000..86787fd2 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js @@ -0,0 +1,79 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + /* Params queries params of the distribution module. */ + async params(_params = {}) { + const endpoint = `cosmos/distribution/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ValidatorOutstandingRewards queries rewards of a validator address. */ + async validatorOutstandingRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; + return await this.req.get(endpoint); + } + /* ValidatorCommission queries accumulated commission for a validator. */ + async validatorCommission(params) { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; + return await this.req.get(endpoint); + } + /* ValidatorSlashes queries slash events of a validator. */ + async validatorSlashes(params) { + const options = { + params: {} + }; + if (typeof params?.startingHeight !== "undefined") { + options.params.starting_height = params.startingHeight; + } + if (typeof params?.endingHeight !== "undefined") { + options.params.ending_height = params.endingHeight; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; + return await this.req.get(endpoint, options); + } + /* DelegationRewards queries the total rewards accrued by a delegation. */ + async delegationRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; + return await this.req.get(endpoint); + } + /* DelegationTotalRewards queries the total rewards accrued by a each + validator. */ + async delegationTotalRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; + return await this.req.get(endpoint); + } + /* DelegatorValidators queries the validators of a delegator. */ + async delegatorValidators(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; + return await this.req.get(endpoint); + } + /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ + async delegatorWithdrawAddress(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; + return await this.req.get(endpoint); + } + /* CommunityPool queries the community pool coins. */ + async communityPool(_params = {}) { + const endpoint = `cosmos/distribution/v1beta1/community_pool`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..be0d7a15 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,51 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; +/** Query defines the gRPC querier service for distribution module. */ +export interface Query { + /** Params queries params of the distribution module. */ + params(request?: QueryParamsRequest): Promise; + /** ValidatorOutstandingRewards queries rewards of a validator address. */ + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + /** ValidatorCommission queries accumulated commission for a validator. */ + validatorCommission(request: QueryValidatorCommissionRequest): Promise; + /** ValidatorSlashes queries slash events of a validator. */ + validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + /** DelegationRewards queries the total rewards accrued by a delegation. */ + delegationRewards(request: QueryDelegationRewardsRequest): Promise; + /** + * DelegationTotalRewards queries the total rewards accrued by a each + * validator. + */ + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + /** DelegatorValidators queries the validators of a delegator. */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + /** CommunityPool queries the community pool coins. */ + communityPool(request?: QueryCommunityPoolRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + params(request?: QueryParamsRequest): Promise; + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + delegationRewards(request: QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: QueryCommunityPoolRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + params(request?: QueryParamsRequest): Promise; + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + delegationRewards(request: QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: QueryCommunityPoolRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..56a9cb38 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js @@ -0,0 +1,101 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + validatorOutstandingRewards(request) { + const data = query_1.QueryValidatorOutstandingRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); + return promise.then(data => query_1.QueryValidatorOutstandingRewardsResponse.decode(new binary_1.BinaryReader(data))); + } + validatorCommission(request) { + const data = query_1.QueryValidatorCommissionRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); + return promise.then(data => query_1.QueryValidatorCommissionResponse.decode(new binary_1.BinaryReader(data))); + } + validatorSlashes(request) { + const data = query_1.QueryValidatorSlashesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); + return promise.then(data => query_1.QueryValidatorSlashesResponse.decode(new binary_1.BinaryReader(data))); + } + delegationRewards(request) { + const data = query_1.QueryDelegationRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); + return promise.then(data => query_1.QueryDelegationRewardsResponse.decode(new binary_1.BinaryReader(data))); + } + delegationTotalRewards(request) { + const data = query_1.QueryDelegationTotalRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); + return promise.then(data => query_1.QueryDelegationTotalRewardsResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorValidators(request) { + const data = query_1.QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => query_1.QueryDelegatorValidatorsResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorWithdrawAddress(request) { + const data = query_1.QueryDelegatorWithdrawAddressRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); + return promise.then(data => query_1.QueryDelegatorWithdrawAddressResponse.decode(new binary_1.BinaryReader(data))); + } + communityPool(request = {}) { + const data = query_1.QueryCommunityPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); + return promise.then(data => query_1.QueryCommunityPoolResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + validatorOutstandingRewards(request) { + return queryService.validatorOutstandingRewards(request); + }, + validatorCommission(request) { + return queryService.validatorCommission(request); + }, + validatorSlashes(request) { + return queryService.validatorSlashes(request); + }, + delegationRewards(request) { + return queryService.delegationRewards(request); + }, + delegationTotalRewards(request) { + return queryService.delegationTotalRewards(request); + }, + delegatorValidators(request) { + return queryService.delegatorValidators(request); + }, + delegatorWithdrawAddress(request) { + return queryService.delegatorWithdrawAddress(request); + }, + communityPool(request) { + return queryService.communityPool(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..aa7ec544 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts @@ -0,0 +1,23 @@ +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export declare const AminoConverter: { + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: string; + toAmino: (message: MsgSetWithdrawAddress) => import("./tx").MsgSetWithdrawAddressAmino; + fromAmino: (object: import("./tx").MsgSetWithdrawAddressAmino) => MsgSetWithdrawAddress; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: string; + toAmino: (message: MsgWithdrawDelegatorReward) => import("./tx").MsgWithdrawDelegatorRewardAmino; + fromAmino: (object: import("./tx").MsgWithdrawDelegatorRewardAmino) => MsgWithdrawDelegatorReward; + }; + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: string; + toAmino: (message: MsgWithdrawValidatorCommission) => import("./tx").MsgWithdrawValidatorCommissionAmino; + fromAmino: (object: import("./tx").MsgWithdrawValidatorCommissionAmino) => MsgWithdrawValidatorCommission; + }; + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: string; + toAmino: (message: MsgFundCommunityPool) => import("./tx").MsgFundCommunityPoolAmino; + fromAmino: (object: import("./tx").MsgFundCommunityPoolAmino) => MsgFundCommunityPool; + }; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js new file mode 100644 index 00000000..253fe779 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", + toAmino: tx_1.MsgSetWithdrawAddress.toAmino, + fromAmino: tx_1.MsgSetWithdrawAddress.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", + toAmino: tx_1.MsgWithdrawDelegatorReward.toAmino, + fromAmino: tx_1.MsgWithdrawDelegatorReward.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", + toAmino: tx_1.MsgWithdrawValidatorCommission.toAmino, + fromAmino: tx_1.MsgWithdrawValidatorCommission.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: "cosmos-sdk/MsgFundCommunityPool", + toAmino: tx_1.MsgFundCommunityPool.toAmino, + fromAmino: tx_1.MsgFundCommunityPool.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts new file mode 100644 index 00000000..774b9189 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts @@ -0,0 +1,309 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddress { + delegatorAddress: string; + withdrawAddress: string; +} +export interface MsgSetWithdrawAddressProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; + value: Uint8Array; +} +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddressAmino { + delegator_address?: string; + withdraw_address?: string; +} +export interface MsgSetWithdrawAddressAminoMsg { + type: "cosmos-sdk/MsgModifyWithdrawAddress"; + value: MsgSetWithdrawAddressAmino; +} +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddressSDKType { + delegator_address: string; + withdraw_address: string; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponse { +} +export interface MsgSetWithdrawAddressResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; + value: Uint8Array; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponseAmino { +} +export interface MsgSetWithdrawAddressResponseAminoMsg { + type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; + value: MsgSetWithdrawAddressResponseAmino; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponseSDKType { +} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorReward { + delegatorAddress: string; + validatorAddress: string; +} +export interface MsgWithdrawDelegatorRewardProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; + value: Uint8Array; +} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorRewardAmino { + delegator_address?: string; + validator_address?: string; +} +export interface MsgWithdrawDelegatorRewardAminoMsg { + type: "cosmos-sdk/MsgWithdrawDelegationReward"; + value: MsgWithdrawDelegatorRewardAmino; +} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorRewardSDKType { + delegator_address: string; + validator_address: string; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponse { + /** Since: cosmos-sdk 0.46 */ + amount: Coin[]; +} +export interface MsgWithdrawDelegatorRewardResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; + value: Uint8Array; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponseAmino { + /** Since: cosmos-sdk 0.46 */ + amount?: CoinAmino[]; +} +export interface MsgWithdrawDelegatorRewardResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; + value: MsgWithdrawDelegatorRewardResponseAmino; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponseSDKType { + amount: CoinSDKType[]; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommission { + validatorAddress: string; +} +export interface MsgWithdrawValidatorCommissionProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; + value: Uint8Array; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommissionAmino { + validator_address?: string; +} +export interface MsgWithdrawValidatorCommissionAminoMsg { + type: "cosmos-sdk/MsgWithdrawValidatorCommission"; + value: MsgWithdrawValidatorCommissionAmino; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommissionSDKType { + validator_address: string; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponse { + /** Since: cosmos-sdk 0.46 */ + amount: Coin[]; +} +export interface MsgWithdrawValidatorCommissionResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; + value: Uint8Array; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponseAmino { + /** Since: cosmos-sdk 0.46 */ + amount?: CoinAmino[]; +} +export interface MsgWithdrawValidatorCommissionResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; + value: MsgWithdrawValidatorCommissionResponseAmino; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponseSDKType { + amount: CoinSDKType[]; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPool { + amount: Coin[]; + depositor: string; +} +export interface MsgFundCommunityPoolProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; + value: Uint8Array; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPoolAmino { + amount?: CoinAmino[]; + depositor?: string; +} +export interface MsgFundCommunityPoolAminoMsg { + type: "cosmos-sdk/MsgFundCommunityPool"; + value: MsgFundCommunityPoolAmino; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPoolSDKType { + amount: CoinSDKType[]; + depositor: string; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponse { +} +export interface MsgFundCommunityPoolResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; + value: Uint8Array; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponseAmino { +} +export interface MsgFundCommunityPoolResponseAminoMsg { + type: "cosmos-sdk/MsgFundCommunityPoolResponse"; + value: MsgFundCommunityPoolResponseAmino; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponseSDKType { +} +export declare const MsgSetWithdrawAddress: { + typeUrl: string; + encode(message: MsgSetWithdrawAddress, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress; + fromPartial(object: Partial): MsgSetWithdrawAddress; + fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress; + toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino; + fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress; + toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg; + fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress; + toProto(message: MsgSetWithdrawAddress): Uint8Array; + toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg; +}; +export declare const MsgSetWithdrawAddressResponse: { + typeUrl: string; + encode(_: MsgSetWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; + fromPartial(_: Partial): MsgSetWithdrawAddressResponse; + fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse; + toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino; + fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse; + toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg; + fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse; + toProto(message: MsgSetWithdrawAddressResponse): Uint8Array; + toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg; +}; +export declare const MsgWithdrawDelegatorReward: { + typeUrl: string; + encode(message: MsgWithdrawDelegatorReward, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; + fromPartial(object: Partial): MsgWithdrawDelegatorReward; + fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward; + toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino; + fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward; + toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg; + fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward; + toProto(message: MsgWithdrawDelegatorReward): Uint8Array; + toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg; +}; +export declare const MsgWithdrawDelegatorRewardResponse: { + typeUrl: string; + encode(message: MsgWithdrawDelegatorRewardResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; + fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse; + fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse; + toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino; + fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse; + toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg; + fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse; + toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array; + toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg; +}; +export declare const MsgWithdrawValidatorCommission: { + typeUrl: string; + encode(message: MsgWithdrawValidatorCommission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; + fromPartial(object: Partial): MsgWithdrawValidatorCommission; + fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission; + toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino; + fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission; + toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg; + fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission; + toProto(message: MsgWithdrawValidatorCommission): Uint8Array; + toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg; +}; +export declare const MsgWithdrawValidatorCommissionResponse: { + typeUrl: string; + encode(message: MsgWithdrawValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; + fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse; + fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse; + toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino; + fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse; + toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg; + fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse; + toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array; + toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg; +}; +export declare const MsgFundCommunityPool: { + typeUrl: string; + encode(message: MsgFundCommunityPool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool; + fromPartial(object: Partial): MsgFundCommunityPool; + fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool; + toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino; + fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool; + toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg; + fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool; + toProto(message: MsgFundCommunityPool): Uint8Array; + toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg; +}; +export declare const MsgFundCommunityPoolResponse: { + typeUrl: string; + encode(_: MsgFundCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; + fromPartial(_: Partial): MsgFundCommunityPoolResponse; + fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse; + toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino; + fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse; + toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg; + fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse; + toProto(message: MsgFundCommunityPoolResponse): Uint8Array; + toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.js new file mode 100644 index 00000000..2a72e76a --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.js @@ -0,0 +1,577 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseMsgSetWithdrawAddress() { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +exports.MsgSetWithdrawAddress = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSetWithdrawAddress(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSetWithdrawAddress(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSetWithdrawAddress.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgModifyWithdrawAddress", + value: exports.MsgSetWithdrawAddress.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSetWithdrawAddress.decode(message.value); + }, + toProto(message) { + return exports.MsgSetWithdrawAddress.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: exports.MsgSetWithdrawAddress.encode(message).finish() + }; + } +}; +function createBaseMsgSetWithdrawAddressResponse() { + return {}; +} +exports.MsgSetWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSetWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSetWithdrawAddressResponse", + value: exports.MsgSetWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSetWithdrawAddressResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSetWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + value: exports.MsgSetWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorReward() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +exports.MsgWithdrawDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawDelegatorReward(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawDelegatorReward(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawDelegationReward", + value: exports.MsgWithdrawDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawDelegatorReward.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: exports.MsgWithdrawDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorRewardResponse() { + return { + amount: [] + }; +} +exports.MsgWithdrawDelegatorRewardResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", + value: exports.MsgWithdrawDelegatorRewardResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawDelegatorRewardResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawDelegatorRewardResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + value: exports.MsgWithdrawDelegatorRewardResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommission() { + return { + validatorAddress: "" + }; +} +exports.MsgWithdrawValidatorCommission = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawValidatorCommission(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawValidatorCommission(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawValidatorCommission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommission", + value: exports.MsgWithdrawValidatorCommission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawValidatorCommission.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawValidatorCommission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: exports.MsgWithdrawValidatorCommission.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommissionResponse() { + return { + amount: [] + }; +} +exports.MsgWithdrawValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", + value: exports.MsgWithdrawValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawValidatorCommissionResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + value: exports.MsgWithdrawValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPool() { + return { + amount: [], + depositor: "" + }; +} +exports.MsgFundCommunityPool = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgFundCommunityPool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgFundCommunityPool", + value: exports.MsgFundCommunityPool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgFundCommunityPool.decode(message.value); + }, + toProto(message) { + return exports.MsgFundCommunityPool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: exports.MsgFundCommunityPool.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPoolResponse() { + return {}; +} +exports.MsgFundCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgFundCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgFundCommunityPoolResponse", + value: exports.MsgFundCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgFundCommunityPoolResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgFundCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + value: exports.MsgFundCommunityPoolResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..a9f17ac7 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts @@ -0,0 +1,60 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + setWithdrawAddress(value: MsgSetWithdrawAddress): { + typeUrl: string; + value: Uint8Array; + }; + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { + typeUrl: string; + value: Uint8Array; + }; + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { + typeUrl: string; + value: Uint8Array; + }; + fundCommunityPool(value: MsgFundCommunityPool): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + setWithdrawAddress(value: MsgSetWithdrawAddress): { + typeUrl: string; + value: MsgSetWithdrawAddress; + }; + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { + typeUrl: string; + value: MsgWithdrawDelegatorReward; + }; + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { + typeUrl: string; + value: MsgWithdrawValidatorCommission; + }; + fundCommunityPool(value: MsgFundCommunityPool): { + typeUrl: string; + value: MsgFundCommunityPool; + }; + }; + fromPartial: { + setWithdrawAddress(value: MsgSetWithdrawAddress): { + typeUrl: string; + value: MsgSetWithdrawAddress; + }; + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { + typeUrl: string; + value: MsgWithdrawDelegatorReward; + }; + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { + typeUrl: string; + value: MsgWithdrawValidatorCommission; + }; + fundCommunityPool(value: MsgFundCommunityPool): { + typeUrl: string; + value: MsgFundCommunityPool; + }; + }; +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js new file mode 100644 index 00000000..1b7cf3cc --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", tx_1.MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", tx_1.MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", tx_1.MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", tx_1.MsgFundCommunityPool]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: tx_1.MsgSetWithdrawAddress.encode(value).finish() + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: tx_1.MsgWithdrawDelegatorReward.encode(value).finish() + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: tx_1.MsgWithdrawValidatorCommission.encode(value).finish() + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: tx_1.MsgFundCommunityPool.encode(value).finish() + }; + } + }, + withTypeUrl: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value + }; + } + }, + fromPartial: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: tx_1.MsgSetWithdrawAddress.fromPartial(value) + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: tx_1.MsgWithdrawDelegatorReward.fromPartial(value) + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: tx_1.MsgWithdrawValidatorCommission.fromPartial(value) + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: tx_1.MsgFundCommunityPool.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..38723e88 --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,33 @@ +import { Rpc } from "../../../helpers"; +import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; +/** Msg defines the distribution Msg service. */ +export interface Msg { + /** + * SetWithdrawAddress defines a method to change the withdraw address + * for a delegator (or validator self-delegation). + */ + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; + /** + * WithdrawDelegatorReward defines a method to withdraw rewards of delegator + * from a single validator. + */ + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; + /** + * WithdrawValidatorCommission defines a method to withdraw the + * full commission to the validator address. + */ + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; + /** + * FundCommunityPool defines a method to allow an account to directly + * fund the community pool. + */ + fundCommunityPool(request: MsgFundCommunityPool): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; + fundCommunityPool(request: MsgFundCommunityPool): Promise; +} diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..d9e728dc --- /dev/null +++ b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.setWithdrawAddress = this.setWithdrawAddress.bind(this); + this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); + this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); + this.fundCommunityPool = this.fundCommunityPool.bind(this); + } + setWithdrawAddress(request) { + const data = tx_1.MsgSetWithdrawAddress.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); + return promise.then(data => tx_1.MsgSetWithdrawAddressResponse.decode(new binary_1.BinaryReader(data))); + } + withdrawDelegatorReward(request) { + const data = tx_1.MsgWithdrawDelegatorReward.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); + return promise.then(data => tx_1.MsgWithdrawDelegatorRewardResponse.decode(new binary_1.BinaryReader(data))); + } + withdrawValidatorCommission(request) { + const data = tx_1.MsgWithdrawValidatorCommission.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); + return promise.then(data => tx_1.MsgWithdrawValidatorCommissionResponse.decode(new binary_1.BinaryReader(data))); + } + fundCommunityPool(request) { + const data = tx_1.MsgFundCommunityPool.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); + return promise.then(data => tx_1.MsgFundCommunityPoolResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts new file mode 100644 index 00000000..221add2f --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts @@ -0,0 +1,245 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; + /** + * spend_limit specifies the maximum amount of coins that can be spent + * by this allowance and will be updated as coins are spent. If it is + * empty, there is no spend limit and any amount of coins can be spent. + */ + spendLimit: Coin[]; + /** expiration specifies an optional time when this allowance expires */ + expiration?: Date; +} +export interface BasicAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; + value: Uint8Array; +} +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowanceAmino { + /** + * spend_limit specifies the maximum amount of coins that can be spent + * by this allowance and will be updated as coins are spent. If it is + * empty, there is no spend limit and any amount of coins can be spent. + */ + spend_limit?: CoinAmino[]; + /** expiration specifies an optional time when this allowance expires */ + expiration?: string; +} +export interface BasicAllowanceAminoMsg { + type: "cosmos-sdk/BasicAllowance"; + value: BasicAllowanceAmino; +} +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; + spend_limit: CoinSDKType[]; + expiration?: Date; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + /** basic specifies a struct of `BasicAllowance` */ + basic: BasicAllowance; + /** + * period specifies the time duration in which period_spend_limit coins can + * be spent before that allowance is reset + */ + period: Duration; + /** + * period_spend_limit specifies the maximum number of coins that can be spent + * in the period + */ + periodSpendLimit: Coin[]; + /** period_can_spend is the number of coins left to be spent before the period_reset time */ + periodCanSpend: Coin[]; + /** + * period_reset is the time at which this period resets and a new one begins, + * it is calculated from the start time of the first transaction after the + * last period ended + */ + periodReset: Date; +} +export interface PeriodicAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + value: Uint8Array; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowanceAmino { + /** basic specifies a struct of `BasicAllowance` */ + basic?: BasicAllowanceAmino; + /** + * period specifies the time duration in which period_spend_limit coins can + * be spent before that allowance is reset + */ + period?: DurationAmino; + /** + * period_spend_limit specifies the maximum number of coins that can be spent + * in the period + */ + period_spend_limit?: CoinAmino[]; + /** period_can_spend is the number of coins left to be spent before the period_reset time */ + period_can_spend?: CoinAmino[]; + /** + * period_reset is the time at which this period resets and a new one begins, + * it is calculated from the start time of the first transaction after the + * last period ended + */ + period_reset?: string; +} +export interface PeriodicAllowanceAminoMsg { + type: "cosmos-sdk/PeriodicAllowance"; + value: PeriodicAllowanceAmino; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + basic: BasicAllowanceSDKType; + period: DurationSDKType; + period_spend_limit: CoinSDKType[]; + period_can_spend: CoinSDKType[]; + period_reset: Date; +} +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + /** allowance can be any of basic and periodic fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; + /** allowed_messages are the messages for which the grantee has the access. */ + allowedMessages: string[]; +} +export interface AllowedMsgAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + value: Uint8Array; +} +export type AllowedMsgAllowanceEncoded = Omit & { + /** allowance can be any of basic and periodic fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowanceAmino { + /** allowance can be any of basic and periodic fee allowance. */ + allowance?: AnyAmino; + /** allowed_messages are the messages for which the grantee has the access. */ + allowed_messages?: string[]; +} +export interface AllowedMsgAllowanceAminoMsg { + type: "cosmos-sdk/AllowedMsgAllowance"; + value: AllowedMsgAllowanceAmino; +} +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; + allowed_messages: string[]; +} +/** Grant is stored in the KVStore to record a grant with full context */ +export interface Grant { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; +} +export interface GrantProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.Grant"; + value: Uint8Array; +} +export type GrantEncoded = Omit & { + /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** Grant is stored in the KVStore to record a grant with full context */ +export interface GrantAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: AnyAmino; +} +export interface GrantAminoMsg { + type: "cosmos-sdk/Grant"; + value: GrantAmino; +} +/** Grant is stored in the KVStore to record a grant with full context */ +export interface GrantSDKType { + granter: string; + grantee: string; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; +} +export declare const BasicAllowance: { + typeUrl: string; + encode(message: BasicAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance; + fromPartial(object: Partial): BasicAllowance; + fromAmino(object: BasicAllowanceAmino): BasicAllowance; + toAmino(message: BasicAllowance): BasicAllowanceAmino; + fromAminoMsg(object: BasicAllowanceAminoMsg): BasicAllowance; + toAminoMsg(message: BasicAllowance): BasicAllowanceAminoMsg; + fromProtoMsg(message: BasicAllowanceProtoMsg): BasicAllowance; + toProto(message: BasicAllowance): Uint8Array; + toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg; +}; +export declare const PeriodicAllowance: { + typeUrl: string; + encode(message: PeriodicAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance; + fromPartial(object: Partial): PeriodicAllowance; + fromAmino(object: PeriodicAllowanceAmino): PeriodicAllowance; + toAmino(message: PeriodicAllowance): PeriodicAllowanceAmino; + fromAminoMsg(object: PeriodicAllowanceAminoMsg): PeriodicAllowance; + toAminoMsg(message: PeriodicAllowance): PeriodicAllowanceAminoMsg; + fromProtoMsg(message: PeriodicAllowanceProtoMsg): PeriodicAllowance; + toProto(message: PeriodicAllowance): Uint8Array; + toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg; +}; +export declare const AllowedMsgAllowance: { + typeUrl: string; + encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance; + fromPartial(object: Partial): AllowedMsgAllowance; + fromAmino(object: AllowedMsgAllowanceAmino): AllowedMsgAllowance; + toAmino(message: AllowedMsgAllowance): AllowedMsgAllowanceAmino; + fromAminoMsg(object: AllowedMsgAllowanceAminoMsg): AllowedMsgAllowance; + toAminoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceAminoMsg; + fromProtoMsg(message: AllowedMsgAllowanceProtoMsg): AllowedMsgAllowance; + toProto(message: AllowedMsgAllowance): Uint8Array; + toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg; +}; +export declare const Grant: { + typeUrl: string; + encode(message: Grant, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Grant; + fromPartial(object: Partial): Grant; + fromAmino(object: GrantAmino): Grant; + toAmino(message: Grant): GrantAmino; + fromAminoMsg(object: GrantAminoMsg): Grant; + toAminoMsg(message: Grant): GrantAminoMsg; + fromProtoMsg(message: GrantProtoMsg): Grant; + toProto(message: Grant): Uint8Array; + toProtoMsg(message: Grant): GrantProtoMsg; +}; +export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; +export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; +export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js new file mode 100644 index 00000000..742d5048 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js @@ -0,0 +1,456 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FeeAllowanceI_ToAmino = exports.FeeAllowanceI_FromAmino = exports.FeeAllowanceI_InterfaceDecoder = exports.Grant = exports.AllowedMsgAllowance = exports.PeriodicAllowance = exports.BasicAllowance = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const duration_1 = require("../../../google/protobuf/duration"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseBasicAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + spendLimit: [], + expiration: undefined + }; +} +exports.BasicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.spendLimit) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.spend_limit = message.spendLimit; + } + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BasicAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BasicAllowance", + value: exports.BasicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BasicAllowance.decode(message.value); + }, + toProto(message) { + return exports.BasicAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: exports.BasicAllowance.encode(message).finish() + }; + } +}; +function createBasePeriodicAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + basic: exports.BasicAllowance.fromPartial({}), + period: duration_1.Duration.fromPartial({}), + periodSpendLimit: [], + periodCanSpend: [], + periodReset: new Date() + }; +} +exports.PeriodicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basic !== undefined) { + exports.BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== undefined) { + duration_1.Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.periodSpendLimit) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.periodCanSpend) { + coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.periodReset !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.periodReset), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basic = exports.BasicAllowance.decode(reader, reader.uint32()); + break; + case 2: + message.period = duration_1.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.periodSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 4: + message.periodCanSpend.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 5: + message.periodReset = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriodicAllowance(); + message.basic = object.basic !== undefined && object.basic !== null ? exports.BasicAllowance.fromPartial(object.basic) : undefined; + message.period = object.period !== undefined && object.period !== null ? duration_1.Duration.fromPartial(object.period) : undefined; + message.periodSpendLimit = object.periodSpendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.periodCanSpend = object.periodCanSpend?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.periodReset = object.periodReset ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBasePeriodicAllowance(); + if (object.basic !== undefined && object.basic !== null) { + message.basic = exports.BasicAllowance.fromAmino(object.basic); + } + if (object.period !== undefined && object.period !== null) { + message.period = duration_1.Duration.fromAmino(object.period); + } + message.periodSpendLimit = object.period_spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.periodCanSpend = object.period_can_spend?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.period_reset !== undefined && object.period_reset !== null) { + message.periodReset = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.period_reset)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basic = message.basic ? exports.BasicAllowance.toAmino(message.basic) : undefined; + obj.period = message.period ? duration_1.Duration.toAmino(message.period) : undefined; + if (message.periodSpendLimit) { + obj.period_spend_limit = message.periodSpendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.period_spend_limit = message.periodSpendLimit; + } + if (message.periodCanSpend) { + obj.period_can_spend = message.periodCanSpend.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.period_can_spend = message.periodCanSpend; + } + obj.period_reset = message.periodReset ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.periodReset)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PeriodicAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PeriodicAllowance", + value: exports.PeriodicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PeriodicAllowance.decode(message.value); + }, + toProto(message) { + return exports.PeriodicAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: exports.PeriodicAllowance.encode(message).finish() + }; + } +}; +function createBaseAllowedMsgAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + allowance: undefined, + allowedMessages: [] + }; +} +exports.AllowedMsgAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.allowance !== undefined) { + any_1.Any.encode(message.allowance, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedMessages) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedMsgAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); + break; + case 2: + message.allowedMessages.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedMsgAllowance(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; + message.allowedMessages = object.allowedMessages?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedMsgAllowance(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); + } + message.allowedMessages = object.allowed_messages?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; + if (message.allowedMessages) { + obj.allowed_messages = message.allowedMessages.map(e => e); + } + else { + obj.allowed_messages = message.allowedMessages; + } + return obj; + }, + fromAminoMsg(object) { + return exports.AllowedMsgAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: exports.AllowedMsgAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AllowedMsgAllowance.decode(message.value); + }, + toProto(message) { + return exports.AllowedMsgAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: exports.AllowedMsgAllowance.encode(message).finish() + }; + } +}; +function createBaseGrant() { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +exports.Grant = { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + any_1.Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Grant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Grant", + value: exports.Grant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Grant.decode(message.value); + }, + toProto(message) { + return exports.Grant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + value: exports.Grant.encode(message).finish() + }; + } +}; +const FeeAllowanceI_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return exports.BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return exports.PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return exports.AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +exports.FeeAllowanceI_InterfaceDecoder = FeeAllowanceI_InterfaceDecoder; +const FeeAllowanceI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: exports.BasicAllowance.encode(exports.BasicAllowance.fromPartial(exports.BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: exports.PeriodicAllowance.encode(exports.PeriodicAllowance.fromPartial(exports.PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: exports.AllowedMsgAllowance.encode(exports.AllowedMsgAllowance.fromPartial(exports.AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.FeeAllowanceI_FromAmino = FeeAllowanceI_FromAmino; +const FeeAllowanceI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: exports.BasicAllowance.toAmino(exports.BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: exports.PeriodicAllowance.toAmino(exports.PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: exports.AllowedMsgAllowance.toAmino(exports.AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.FeeAllowanceI_ToAmino = FeeAllowanceI_ToAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts new file mode 100644 index 00000000..0c5d1a32 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts @@ -0,0 +1,35 @@ +import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisState { + allowances: Grant[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisStateAmino { + allowances?: GrantAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisStateSDKType { + allowances: GrantSDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js new file mode 100644 index 00000000..59159504 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js @@ -0,0 +1,78 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const feegrant_1 = require("./feegrant"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + allowances: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowances) { + feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts new file mode 100644 index 00000000..a6206fb6 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts @@ -0,0 +1,258 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequest { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; +} +export interface QueryAllowanceRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; + value: Uint8Array; +} +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequestAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; +} +export interface QueryAllowanceRequestAminoMsg { + type: "cosmos-sdk/QueryAllowanceRequest"; + value: QueryAllowanceRequestAmino; +} +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequestSDKType { + granter: string; + grantee: string; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponse { + /** allowance is a allowance granted for grantee by granter. */ + allowance?: Grant; +} +export interface QueryAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; + value: Uint8Array; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponseAmino { + /** allowance is a allowance granted for grantee by granter. */ + allowance?: GrantAmino; +} +export interface QueryAllowanceResponseAminoMsg { + type: "cosmos-sdk/QueryAllowanceResponse"; + value: QueryAllowanceResponseAmino; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponseSDKType { + allowance?: GrantSDKType; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequest { + grantee: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowancesRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; + value: Uint8Array; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequestAmino { + grantee?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowancesRequestAminoMsg { + type: "cosmos-sdk/QueryAllowancesRequest"; + value: QueryAllowancesRequestAmino; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequestSDKType { + grantee: string; + pagination?: PageRequestSDKType; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponse { + /** allowances are allowance's granted for grantee by granter. */ + allowances: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowancesResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; + value: Uint8Array; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponseAmino { + /** allowances are allowance's granted for grantee by granter. */ + allowances?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowancesResponseAminoMsg { + type: "cosmos-sdk/QueryAllowancesResponse"; + value: QueryAllowancesResponseAmino; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponseSDKType { + allowances: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequest { + granter: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowancesByGranterRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; + value: Uint8Array; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequestAmino { + granter?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowancesByGranterRequestAminoMsg { + type: "cosmos-sdk/QueryAllowancesByGranterRequest"; + value: QueryAllowancesByGranterRequestAmino; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequestSDKType { + granter: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponse { + /** allowances that have been issued by the granter. */ + allowances: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowancesByGranterResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; + value: Uint8Array; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponseAmino { + /** allowances that have been issued by the granter. */ + allowances?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowancesByGranterResponseAminoMsg { + type: "cosmos-sdk/QueryAllowancesByGranterResponse"; + value: QueryAllowancesByGranterResponseAmino; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponseSDKType { + allowances: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +export declare const QueryAllowanceRequest: { + typeUrl: string; + encode(message: QueryAllowanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest; + fromPartial(object: Partial): QueryAllowanceRequest; + fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest; + toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino; + fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest; + toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg; + fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest; + toProto(message: QueryAllowanceRequest): Uint8Array; + toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg; +}; +export declare const QueryAllowanceResponse: { + typeUrl: string; + encode(message: QueryAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse; + fromPartial(object: Partial): QueryAllowanceResponse; + fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse; + toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino; + fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse; + toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg; + fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse; + toProto(message: QueryAllowanceResponse): Uint8Array; + toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg; +}; +export declare const QueryAllowancesRequest: { + typeUrl: string; + encode(message: QueryAllowancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest; + fromPartial(object: Partial): QueryAllowancesRequest; + fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest; + toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino; + fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest; + toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg; + fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest; + toProto(message: QueryAllowancesRequest): Uint8Array; + toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg; +}; +export declare const QueryAllowancesResponse: { + typeUrl: string; + encode(message: QueryAllowancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse; + fromPartial(object: Partial): QueryAllowancesResponse; + fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse; + toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino; + fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse; + toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg; + fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse; + toProto(message: QueryAllowancesResponse): Uint8Array; + toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg; +}; +export declare const QueryAllowancesByGranterRequest: { + typeUrl: string; + encode(message: QueryAllowancesByGranterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; + fromPartial(object: Partial): QueryAllowancesByGranterRequest; + fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest; + toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino; + fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest; + toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg; + fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest; + toProto(message: QueryAllowancesByGranterRequest): Uint8Array; + toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg; +}; +export declare const QueryAllowancesByGranterResponse: { + typeUrl: string; + encode(message: QueryAllowancesByGranterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; + fromPartial(object: Partial): QueryAllowancesByGranterResponse; + fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse; + toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino; + fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse; + toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg; + fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse; + toProto(message: QueryAllowancesByGranterResponse): Uint8Array; + toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.js new file mode 100644 index 00000000..99531acb --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.js @@ -0,0 +1,487 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryAllowancesByGranterResponse = exports.QueryAllowancesByGranterRequest = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const feegrant_1 = require("./feegrant"); +const binary_1 = require("../../../binary"); +function createBaseQueryAllowanceRequest() { + return { + granter: "", + grantee: "" + }; +} +exports.QueryAllowanceRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowanceRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowanceRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowanceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowanceRequest", + value: exports.QueryAllowanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowanceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + value: exports.QueryAllowanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowanceResponse() { + return { + allowance: undefined + }; +} +exports.QueryAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.allowance !== undefined) { + feegrant_1.Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = feegrant_1.Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowanceResponse(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? feegrant_1.Grant.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowanceResponse(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = feegrant_1.Grant.fromAmino(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.allowance = message.allowance ? feegrant_1.Grant.toAmino(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowanceResponse", + value: exports.QueryAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowanceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + value: exports.QueryAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesRequest() { + return { + grantee: "", + pagination: undefined + }; +} +exports.QueryAllowancesRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesRequest", + value: exports.QueryAllowancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + value: exports.QueryAllowancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesResponse() { + return { + allowances: [], + pagination: undefined + }; +} +exports.QueryAllowancesResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowances) { + feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesResponse", + value: exports.QueryAllowancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + value: exports.QueryAllowancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterRequest() { + return { + granter: "", + pagination: undefined + }; +} +exports.QueryAllowancesByGranterRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesByGranterRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesByGranterRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowancesByGranterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesByGranterRequest", + value: exports.QueryAllowancesByGranterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowancesByGranterRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowancesByGranterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + value: exports.QueryAllowancesByGranterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterResponse() { + return { + allowances: [], + pagination: undefined + }; +} +exports.QueryAllowancesByGranterResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowances) { + feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowancesByGranterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesByGranterResponse", + value: exports.QueryAllowancesByGranterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAllowancesByGranterResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowancesByGranterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + value: exports.QueryAllowancesByGranterResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..39e515e0 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts @@ -0,0 +1,11 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + allowance(params: QueryAllowanceRequest): Promise; + allowances(params: QueryAllowancesRequest): Promise; + allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise; +} diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js new file mode 100644 index 00000000..f782d1e1 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + /* Allowance returns fee granted to the grantee by the granter. */ + async allowance(params) { + const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; + return await this.req.get(endpoint); + } + /* Allowances returns all the grants for address. */ + async allowances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; + return await this.req.get(endpoint, options); + } + /* AllowancesByGranter returns all the grants given by an address + + Since: cosmos-sdk 0.46 */ + async allowancesByGranter(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; + return await this.req.get(endpoint, options); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..d42c5966 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,28 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Allowance returns fee granted to the grantee by the granter. */ + allowance(request: QueryAllowanceRequest): Promise; + /** Allowances returns all the grants for address. */ + allowances(request: QueryAllowancesRequest): Promise; + /** + * AllowancesByGranter returns all the grants given by an address + * + * Since: cosmos-sdk 0.46 + */ + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + allowance(request: QueryAllowanceRequest): Promise; + allowances(request: QueryAllowancesRequest): Promise; + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + allowance(request: QueryAllowanceRequest): Promise; + allowances(request: QueryAllowancesRequest): Promise; + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..66911ae2 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + allowance(request) { + const data = query_1.QueryAllowanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); + return promise.then(data => query_1.QueryAllowanceResponse.decode(new binary_1.BinaryReader(data))); + } + allowances(request) { + const data = query_1.QueryAllowancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); + return promise.then(data => query_1.QueryAllowancesResponse.decode(new binary_1.BinaryReader(data))); + } + allowancesByGranter(request) { + const data = query_1.QueryAllowancesByGranterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); + return promise.then(data => query_1.QueryAllowancesByGranterResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + allowance(request) { + return queryService.allowance(request); + }, + allowances(request) { + return queryService.allowances(request); + }, + allowancesByGranter(request) { + return queryService.allowancesByGranter(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..8767b85a --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts @@ -0,0 +1,13 @@ +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export declare const AminoConverter: { + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: string; + toAmino: (message: MsgGrantAllowance) => import("./tx").MsgGrantAllowanceAmino; + fromAmino: (object: import("./tx").MsgGrantAllowanceAmino) => MsgGrantAllowance; + }; + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: string; + toAmino: (message: MsgRevokeAllowance) => import("./tx").MsgRevokeAllowanceAmino; + fromAmino: (object: import("./tx").MsgRevokeAllowanceAmino) => MsgRevokeAllowance; + }; +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js new file mode 100644 index 00000000..90ad97ea --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: "cosmos-sdk/MsgGrantAllowance", + toAmino: tx_1.MsgGrantAllowance.toAmino, + fromAmino: tx_1.MsgGrantAllowance.fromAmino + }, + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: "cosmos-sdk/MsgRevokeAllowance", + toAmino: tx_1.MsgRevokeAllowance.toAmino, + fromAmino: tx_1.MsgRevokeAllowance.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts new file mode 100644 index 00000000..4f454289 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts @@ -0,0 +1,163 @@ +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowance { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; +} +export interface MsgGrantAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; + value: Uint8Array; +} +export type MsgGrantAllowanceEncoded = Omit & { + /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowanceAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: AnyAmino; +} +export interface MsgGrantAllowanceAminoMsg { + type: "cosmos-sdk/MsgGrantAllowance"; + value: MsgGrantAllowanceAmino; +} +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowanceSDKType { + granter: string; + grantee: string; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponse { +} +export interface MsgGrantAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; + value: Uint8Array; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponseAmino { +} +export interface MsgGrantAllowanceResponseAminoMsg { + type: "cosmos-sdk/MsgGrantAllowanceResponse"; + value: MsgGrantAllowanceResponseAmino; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponseSDKType { +} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowance { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; +} +export interface MsgRevokeAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; + value: Uint8Array; +} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowanceAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; +} +export interface MsgRevokeAllowanceAminoMsg { + type: "cosmos-sdk/MsgRevokeAllowance"; + value: MsgRevokeAllowanceAmino; +} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowanceSDKType { + granter: string; + grantee: string; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponse { +} +export interface MsgRevokeAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; + value: Uint8Array; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponseAmino { +} +export interface MsgRevokeAllowanceResponseAminoMsg { + type: "cosmos-sdk/MsgRevokeAllowanceResponse"; + value: MsgRevokeAllowanceResponseAmino; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponseSDKType { +} +export declare const MsgGrantAllowance: { + typeUrl: string; + encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; + fromPartial(object: Partial): MsgGrantAllowance; + fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance; + toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino; + fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance; + toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg; + fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance; + toProto(message: MsgGrantAllowance): Uint8Array; + toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg; +}; +export declare const MsgGrantAllowanceResponse: { + typeUrl: string; + encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; + fromPartial(_: Partial): MsgGrantAllowanceResponse; + fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse; + toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino; + fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse; + toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg; + fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse; + toProto(message: MsgGrantAllowanceResponse): Uint8Array; + toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg; +}; +export declare const MsgRevokeAllowance: { + typeUrl: string; + encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; + fromPartial(object: Partial): MsgRevokeAllowance; + fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance; + toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino; + fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance; + toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg; + fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance; + toProto(message: MsgRevokeAllowance): Uint8Array; + toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg; +}; +export declare const MsgRevokeAllowanceResponse: { + typeUrl: string; + encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; + fromPartial(_: Partial): MsgRevokeAllowanceResponse; + fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse; + toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino; + fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse; + toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg; + fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse; + toProto(message: MsgRevokeAllowanceResponse): Uint8Array; + toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg; +}; +export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; +export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; +export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.js new file mode 100644 index 00000000..cc14d92f --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.js @@ -0,0 +1,352 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FeeAllowanceI_ToAmino = exports.FeeAllowanceI_FromAmino = exports.FeeAllowanceI_InterfaceDecoder = exports.MsgRevokeAllowanceResponse = exports.MsgRevokeAllowance = exports.MsgGrantAllowanceResponse = exports.MsgGrantAllowance = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const feegrant_1 = require("./feegrant"); +const binary_1 = require("../../../binary"); +function createBaseMsgGrantAllowance() { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +exports.MsgGrantAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + any_1.Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgGrantAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgGrantAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgGrantAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantAllowance", + value: exports.MsgGrantAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgGrantAllowance.decode(message.value); + }, + toProto(message) { + return exports.MsgGrantAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: exports.MsgGrantAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgGrantAllowanceResponse() { + return {}; +} +exports.MsgGrantAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgGrantAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantAllowanceResponse", + value: exports.MsgGrantAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgGrantAllowanceResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgGrantAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + value: exports.MsgGrantAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowance() { + return { + granter: "", + grantee: "" + }; +} +exports.MsgRevokeAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRevokeAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRevokeAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRevokeAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeAllowance", + value: exports.MsgRevokeAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRevokeAllowance.decode(message.value); + }, + toProto(message) { + return exports.MsgRevokeAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: exports.MsgRevokeAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowanceResponse() { + return {}; +} +exports.MsgRevokeAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRevokeAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeAllowanceResponse", + value: exports.MsgRevokeAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRevokeAllowanceResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRevokeAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + value: exports.MsgRevokeAllowanceResponse.encode(message).finish() + }; + } +}; +const FeeAllowanceI_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return feegrant_1.BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return feegrant_1.PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return feegrant_1.AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +exports.FeeAllowanceI_InterfaceDecoder = FeeAllowanceI_InterfaceDecoder; +const FeeAllowanceI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: feegrant_1.BasicAllowance.encode(feegrant_1.BasicAllowance.fromPartial(feegrant_1.BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: feegrant_1.PeriodicAllowance.encode(feegrant_1.PeriodicAllowance.fromPartial(feegrant_1.PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: feegrant_1.AllowedMsgAllowance.encode(feegrant_1.AllowedMsgAllowance.fromPartial(feegrant_1.AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.FeeAllowanceI_FromAmino = FeeAllowanceI_FromAmino; +const FeeAllowanceI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: feegrant_1.BasicAllowance.toAmino(feegrant_1.BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: feegrant_1.PeriodicAllowance.toAmino(feegrant_1.PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: feegrant_1.AllowedMsgAllowance.toAmino(feegrant_1.AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.FeeAllowanceI_ToAmino = FeeAllowanceI_ToAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..9e55d38d --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts @@ -0,0 +1,36 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + grantAllowance(value: MsgGrantAllowance): { + typeUrl: string; + value: Uint8Array; + }; + revokeAllowance(value: MsgRevokeAllowance): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + grantAllowance(value: MsgGrantAllowance): { + typeUrl: string; + value: MsgGrantAllowance; + }; + revokeAllowance(value: MsgRevokeAllowance): { + typeUrl: string; + value: MsgRevokeAllowance; + }; + }; + fromPartial: { + grantAllowance(value: MsgGrantAllowance): { + typeUrl: string; + value: MsgGrantAllowance; + }; + revokeAllowance(value: MsgRevokeAllowance): { + typeUrl: string; + value: MsgRevokeAllowance; + }; + }; +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js new file mode 100644 index 00000000..6b7eb6b0 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", tx_1.MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", tx_1.MsgRevokeAllowance]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: tx_1.MsgGrantAllowance.encode(value).finish() + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: tx_1.MsgRevokeAllowance.encode(value).finish() + }; + } + }, + withTypeUrl: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value + }; + } + }, + fromPartial: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: tx_1.MsgGrantAllowance.fromPartial(value) + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: tx_1.MsgRevokeAllowance.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..9ec43a55 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,21 @@ +import { Rpc } from "../../../helpers"; +import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; +/** Msg defines the feegrant msg service. */ +export interface Msg { + /** + * GrantAllowance grants fee allowance to the grantee on the granter's + * account with the provided expiration time. + */ + grantAllowance(request: MsgGrantAllowance): Promise; + /** + * RevokeAllowance revokes any fee allowance of granter's account that + * has been granted to the grantee. + */ + revokeAllowance(request: MsgRevokeAllowance): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + grantAllowance(request: MsgGrantAllowance): Promise; + revokeAllowance(request: MsgRevokeAllowance): Promise; +} diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..de7cf296 --- /dev/null +++ b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grantAllowance = this.grantAllowance.bind(this); + this.revokeAllowance = this.revokeAllowance.bind(this); + } + grantAllowance(request) { + const data = tx_1.MsgGrantAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); + return promise.then(data => tx_1.MsgGrantAllowanceResponse.decode(new binary_1.BinaryReader(data))); + } + revokeAllowance(request) { + const data = tx_1.MsgRevokeAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); + return promise.then(data => tx_1.MsgRevokeAllowanceResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/gov/v1/genesis.d.ts b/packages/api/dist/cosmos/gov/v1/genesis.d.ts new file mode 100644 index 00000000..e6cba7c3 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/genesis.d.ts @@ -0,0 +1,67 @@ +import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisState { + /** starting_proposal_id is the ID of the starting proposal. */ + startingProposalId: bigint; + /** deposits defines all the deposits present at genesis. */ + deposits: Deposit[]; + /** votes defines all the votes present at genesis. */ + votes: Vote[]; + /** proposals defines all the proposals present at genesis. */ + proposals: Proposal[]; + /** params defines all the paramaters of related to deposit. */ + depositParams?: DepositParams; + /** params defines all the paramaters of related to voting. */ + votingParams?: VotingParams; + /** params defines all the paramaters of related to tally. */ + tallyParams?: TallyParams; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.gov.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateAmino { + /** starting_proposal_id is the ID of the starting proposal. */ + starting_proposal_id?: string; + /** deposits defines all the deposits present at genesis. */ + deposits?: DepositAmino[]; + /** votes defines all the votes present at genesis. */ + votes?: VoteAmino[]; + /** proposals defines all the proposals present at genesis. */ + proposals?: ProposalAmino[]; + /** params defines all the paramaters of related to deposit. */ + deposit_params?: DepositParamsAmino; + /** params defines all the paramaters of related to voting. */ + voting_params?: VotingParamsAmino; + /** params defines all the paramaters of related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/v1/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateSDKType { + starting_proposal_id: bigint; + deposits: DepositSDKType[]; + votes: VoteSDKType[]; + proposals: ProposalSDKType[]; + deposit_params?: DepositParamsSDKType; + voting_params?: VotingParamsSDKType; + tally_params?: TallyParamsSDKType; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/gov/v1/genesis.js b/packages/api/dist/cosmos/gov/v1/genesis.js new file mode 100644 index 00000000..36f59a16 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/genesis.js @@ -0,0 +1,156 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const gov_1 = require("./gov"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: undefined, + votingParams: undefined, + tallyParams: undefined + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.gov.v1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + gov_1.Deposit.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + gov_1.Vote.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + gov_1.Proposal.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + gov_1.DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + gov_1.VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/gov/v1/gov.d.ts b/packages/api/dist/cosmos/gov/v1/gov.d.ts new file mode 100644 index 00000000..35e30032 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/gov.d.ts @@ -0,0 +1,446 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export declare enum VoteOption { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1 +} +export declare const VoteOptionSDKType: typeof VoteOption; +export declare const VoteOptionAmino: typeof VoteOption; +export declare function voteOptionFromJSON(object: any): VoteOption; +export declare function voteOptionToJSON(object: VoteOption): string; +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export declare enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + PROPOSAL_STATUS_VOTING_PERIOD = 2, + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + PROPOSAL_STATUS_PASSED = 3, + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + PROPOSAL_STATUS_REJECTED = 4, + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + PROPOSAL_STATUS_FAILED = 5, + UNRECOGNIZED = -1 +} +export declare const ProposalStatusSDKType: typeof ProposalStatus; +export declare const ProposalStatusAmino: typeof ProposalStatus; +export declare function proposalStatusFromJSON(object: any): ProposalStatus; +export declare function proposalStatusToJSON(object: ProposalStatus): string; +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOption { + option: VoteOption; + weight: string; +} +export interface WeightedVoteOptionProtoMsg { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; + value: Uint8Array; +} +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOptionAmino { + option?: VoteOption; + weight?: string; +} +export interface WeightedVoteOptionAminoMsg { + type: "cosmos-sdk/v1/WeightedVoteOption"; + value: WeightedVoteOptionAmino; +} +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOptionSDKType { + option: VoteOption; + weight: string; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface Deposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface DepositProtoMsg { + typeUrl: "/cosmos.gov.v1.Deposit"; + value: Uint8Array; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositAmino { + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface DepositAminoMsg { + type: "cosmos-sdk/v1/Deposit"; + value: DepositAmino; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface Proposal { + id: bigint; + messages: Any[]; + status: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + finalTallyResult?: TallyResult; + submitTime?: Date; + depositEndTime?: Date; + totalDeposit: Coin[]; + votingStartTime?: Date; + votingEndTime?: Date; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata: string; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.gov.v1.Proposal"; + value: Uint8Array; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalAmino { + id?: string; + messages?: AnyAmino[]; + status?: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + final_tally_result?: TallyResultAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata?: string; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/v1/Proposal"; + value: ProposalAmino; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalSDKType { + id: bigint; + messages: AnySDKType[]; + status: ProposalStatus; + final_tally_result?: TallyResultSDKType; + submit_time?: Date; + deposit_end_time?: Date; + total_deposit: CoinSDKType[]; + voting_start_time?: Date; + voting_end_time?: Date; + metadata: string; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResult { + yesCount: string; + abstainCount: string; + noCount: string; + noWithVetoCount: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.gov.v1.TallyResult"; + value: Uint8Array; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultAmino { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/v1/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultSDKType { + yes_count: string; + abstain_count: string; + no_count: string; + no_with_veto_count: string; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface Vote { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.gov.v1.Vote"; + value: Uint8Array; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteAmino { + proposal_id?: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/v1/Vote"; + value: VoteAmino; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; + metadata: string; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + minDeposit: Coin[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + maxDepositPeriod?: Duration; +} +export interface DepositParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.DepositParams"; + value: Uint8Array; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsAmino { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: CoinAmino[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: DurationAmino; +} +export interface DepositParamsAminoMsg { + type: "cosmos-sdk/v1/DepositParams"; + value: DepositParamsAmino; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsSDKType { + min_deposit: CoinSDKType[]; + max_deposit_period?: DurationSDKType; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParams { + /** Length of the voting period. */ + votingPeriod?: Duration; +} +export interface VotingParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.VotingParams"; + value: Uint8Array; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsAmino { + /** Length of the voting period. */ + voting_period?: DurationAmino; +} +export interface VotingParamsAminoMsg { + type: "cosmos-sdk/v1/VotingParams"; + value: VotingParamsAmino; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsSDKType { + voting_period?: DurationSDKType; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + vetoThreshold: string; +} +export interface TallyParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.TallyParams"; + value: Uint8Array; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsAmino { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum?: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + veto_threshold?: string; +} +export interface TallyParamsAminoMsg { + type: "cosmos-sdk/v1/TallyParams"; + value: TallyParamsAmino; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsSDKType { + quorum: string; + threshold: string; + veto_threshold: string; +} +export declare const WeightedVoteOption: { + typeUrl: string; + encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; + fromPartial(object: Partial): WeightedVoteOption; + fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; + toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; + fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; + toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; + fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; + toProto(message: WeightedVoteOption): Uint8Array; + toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; +}; +export declare const Deposit: { + typeUrl: string; + encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Deposit; + fromPartial(object: Partial): Deposit; + fromAmino(object: DepositAmino): Deposit; + toAmino(message: Deposit): DepositAmino; + fromAminoMsg(object: DepositAminoMsg): Deposit; + toAminoMsg(message: Deposit): DepositAminoMsg; + fromProtoMsg(message: DepositProtoMsg): Deposit; + toProto(message: Deposit): Uint8Array; + toProtoMsg(message: Deposit): DepositProtoMsg; +}; +export declare const Proposal: { + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; + fromPartial(object: Partial): Proposal; + fromAmino(object: ProposalAmino): Proposal; + toAmino(message: Proposal): ProposalAmino; + fromAminoMsg(object: ProposalAminoMsg): Proposal; + toAminoMsg(message: Proposal): ProposalAminoMsg; + fromProtoMsg(message: ProposalProtoMsg): Proposal; + toProto(message: Proposal): Uint8Array; + toProtoMsg(message: Proposal): ProposalProtoMsg; +}; +export declare const TallyResult: { + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; + fromPartial(object: Partial): TallyResult; + fromAmino(object: TallyResultAmino): TallyResult; + toAmino(message: TallyResult): TallyResultAmino; + fromAminoMsg(object: TallyResultAminoMsg): TallyResult; + toAminoMsg(message: TallyResult): TallyResultAminoMsg; + fromProtoMsg(message: TallyResultProtoMsg): TallyResult; + toProto(message: TallyResult): Uint8Array; + toProtoMsg(message: TallyResult): TallyResultProtoMsg; +}; +export declare const Vote: { + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; + fromPartial(object: Partial): Vote; + fromAmino(object: VoteAmino): Vote; + toAmino(message: Vote): VoteAmino; + fromAminoMsg(object: VoteAminoMsg): Vote; + toAminoMsg(message: Vote): VoteAminoMsg; + fromProtoMsg(message: VoteProtoMsg): Vote; + toProto(message: Vote): Uint8Array; + toProtoMsg(message: Vote): VoteProtoMsg; +}; +export declare const DepositParams: { + typeUrl: string; + encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; + fromPartial(object: Partial): DepositParams; + fromAmino(object: DepositParamsAmino): DepositParams; + toAmino(message: DepositParams): DepositParamsAmino; + fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; + toAminoMsg(message: DepositParams): DepositParamsAminoMsg; + fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; + toProto(message: DepositParams): Uint8Array; + toProtoMsg(message: DepositParams): DepositParamsProtoMsg; +}; +export declare const VotingParams: { + typeUrl: string; + encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; + fromPartial(object: Partial): VotingParams; + fromAmino(object: VotingParamsAmino): VotingParams; + toAmino(message: VotingParams): VotingParamsAmino; + fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; + toAminoMsg(message: VotingParams): VotingParamsAminoMsg; + fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; + toProto(message: VotingParams): Uint8Array; + toProtoMsg(message: VotingParams): VotingParamsProtoMsg; +}; +export declare const TallyParams: { + typeUrl: string; + encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; + fromPartial(object: Partial): TallyParams; + fromAmino(object: TallyParamsAmino): TallyParams; + toAmino(message: TallyParams): TallyParamsAmino; + fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; + toAminoMsg(message: TallyParams): TallyParamsAminoMsg; + fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; + toProto(message: TallyParams): Uint8Array; + toProtoMsg(message: TallyParams): TallyParamsProtoMsg; +}; diff --git a/packages/api/dist/cosmos/gov/v1/gov.js b/packages/api/dist/cosmos/gov/v1/gov.js new file mode 100644 index 00000000..2ae746fd --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/gov.js @@ -0,0 +1,969 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const any_1 = require("../../../google/protobuf/any"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const duration_1 = require("../../../google/protobuf/duration"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +var VoteOption; +(function (VoteOption) { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (exports.VoteOption = VoteOption = {})); +exports.VoteOptionSDKType = VoteOption; +exports.VoteOptionAmino = VoteOption; +function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +exports.voteOptionFromJSON = voteOptionFromJSON; +function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.voteOptionToJSON = voteOptionToJSON; +/** ProposalStatus enumerates the valid statuses of a proposal. */ +var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); +exports.ProposalStatusSDKType = ProposalStatus; +exports.ProposalStatusAmino = ProposalStatus; +function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +exports.proposalStatusFromJSON = proposalStatusFromJSON; +function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.proposalStatusToJSON = proposalStatusToJSON; +function createBaseWeightedVoteOption() { + return { + option: 0, + weight: "" + }; +} +exports.WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = reader.int32(); + break; + case 2: + message.weight = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object) { + return exports.WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/WeightedVoteOption", + value: exports.WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.WeightedVoteOption.decode(message.value); + }, + toProto(message) { + return exports.WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + value: exports.WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +exports.Deposit = { + typeUrl: "/cosmos.gov.v1.Deposit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Deposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Deposit", + value: exports.Deposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Deposit.decode(message.value); + }, + toProto(message) { + return exports.Deposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Deposit", + value: exports.Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + id: BigInt(0), + messages: [], + status: 0, + finalTallyResult: undefined, + submitTime: undefined, + depositEndTime: undefined, + totalDeposit: [], + votingStartTime: undefined, + votingEndTime: undefined, + metadata: "" + }; +} +exports.Proposal = { + typeUrl: "/cosmos.gov.v1.Proposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + for (const v of message.messages) { + any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + exports.TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + coin_1.Coin.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(82).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.messages.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_end_time)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + if (message.messages) { + obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingEndTime)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Proposal", + value: exports.Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Proposal.decode(message.value); + }, + toProto(message) { + return exports.Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Proposal", + value: exports.Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +exports.TallyResult = { + typeUrl: "/cosmos.gov.v1.TallyResult", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object) { + return exports.TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/TallyResult", + value: exports.TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TallyResult.decode(message.value); + }, + toProto(message) { + return exports.TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.TallyResult", + value: exports.TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +exports.Vote = { + typeUrl: "/cosmos.gov.v1.Vote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + exports.WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 4: + message.options.push(exports.WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => exports.WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => exports.WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? exports.WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Vote", + value: exports.Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Vote.decode(message.value); + }, + toProto(message) { + return exports.Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Vote", + value: exports.Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams() { + return { + minDeposit: [], + maxDepositPeriod: undefined + }; +} +exports.DepositParams = { + typeUrl: "/cosmos.gov.v1.DepositParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.minDeposit) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + duration_1.Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? duration_1.Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = duration_1.Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? duration_1.Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DepositParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/DepositParams", + value: exports.DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DepositParams.decode(message.value); + }, + toProto(message) { + return exports.DepositParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.DepositParams", + value: exports.DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams() { + return { + votingPeriod: undefined + }; +} +exports.VotingParams = { + typeUrl: "/cosmos.gov.v1.VotingParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.VotingParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/VotingParams", + value: exports.VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.VotingParams.decode(message.value); + }, + toProto(message) { + return exports.VotingParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.VotingParams", + value: exports.VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams() { + return { + quorum: "", + threshold: "", + vetoThreshold: "" + }; +} +exports.TallyParams = { + typeUrl: "/cosmos.gov.v1.TallyParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.quorum !== "") { + writer.uint32(10).string(message.quorum); + } + if (message.threshold !== "") { + writer.uint32(18).string(message.threshold); + } + if (message.vetoThreshold !== "") { + writer.uint32(26).string(message.vetoThreshold); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.string(); + break; + case 2: + message.threshold = reader.string(); + break; + case 3: + message.vetoThreshold = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? ""; + message.threshold = object.threshold ?? ""; + message.vetoThreshold = object.vetoThreshold ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = object.quorum; + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = object.veto_threshold; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.quorum = message.quorum === "" ? undefined : message.quorum; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; + return obj; + }, + fromAminoMsg(object) { + return exports.TallyParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/TallyParams", + value: exports.TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TallyParams.decode(message.value); + }, + toProto(message) { + return exports.TallyParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.TallyParams", + value: exports.TallyParams.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/gov/v1/query.d.ts b/packages/api/dist/cosmos/gov/v1/query.d.ts new file mode 100644 index 00000000..80109174 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.d.ts @@ -0,0 +1,632 @@ +import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/v1/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponse { + proposal?: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseAmino { + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/v1/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseSDKType { + proposal?: ProposalSDKType; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequest { + /** proposal_status defines the status of the proposals. */ + proposalStatus: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; + value: Uint8Array; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestAmino { + /** proposal_status defines the status of the proposals. */ + proposal_status?: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryProposalsRequest"; + value: QueryProposalsRequestAmino; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestSDKType { + proposal_status: ProposalStatus; + voter: string; + depositor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponse { + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; + value: Uint8Array; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseAmino { + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryProposalsResponse"; + value: QueryProposalsResponseAmino; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** voter defines the voter address for the proposals. */ + voter: string; +} +export interface QueryVoteRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; + value: Uint8Array; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** voter defines the voter address for the proposals. */ + voter?: string; +} +export interface QueryVoteRequestAminoMsg { + type: "cosmos-sdk/v1/QueryVoteRequest"; + value: QueryVoteRequestAmino; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponse { + /** vote defined the queried vote. */ + vote?: Vote; +} +export interface QueryVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; + value: Uint8Array; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseAmino { + /** vote defined the queried vote. */ + vote?: VoteAmino; +} +export interface QueryVoteResponseAminoMsg { + type: "cosmos-sdk/v1/QueryVoteResponse"; + value: QueryVoteResponseAmino; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseSDKType { + vote?: VoteSDKType; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; + value: Uint8Array; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesRequestAminoMsg { + type: "cosmos-sdk/v1/QueryVotesRequest"; + value: QueryVotesRequestAmino; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponse { + /** votes defined the queried votes. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; + value: Uint8Array; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseAmino { + /** votes defined the queried votes. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesResponseAminoMsg { + type: "cosmos-sdk/v1/QueryVotesResponse"; + value: QueryVotesResponseAmino; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + paramsType: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + params_type?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + params_type: string; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + votingParams?: VotingParams; + /** deposit_params defines the parameters related to deposit. */ + depositParams?: DepositParams; + /** tally_params defines the parameters related to tally. */ + tallyParams?: TallyParams; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** voting_params defines the parameters related to voting. */ + voting_params?: VotingParamsAmino; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: DepositParamsAmino; + /** tally_params defines the parameters related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + voting_params?: VotingParamsSDKType; + deposit_params?: DepositParamsSDKType; + tally_params?: TallyParamsSDKType; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; +} +export interface QueryDepositRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; + value: Uint8Array; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; +} +export interface QueryDepositRequestAminoMsg { + type: "cosmos-sdk/v1/QueryDepositRequest"; + value: QueryDepositRequestAmino; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestSDKType { + proposal_id: bigint; + depositor: string; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponse { + /** deposit defines the requested deposit. */ + deposit?: Deposit; +} +export interface QueryDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; + value: Uint8Array; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseAmino { + /** deposit defines the requested deposit. */ + deposit?: DepositAmino; +} +export interface QueryDepositResponseAminoMsg { + type: "cosmos-sdk/v1/QueryDepositResponse"; + value: QueryDepositResponseAmino; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseSDKType { + deposit?: DepositSDKType; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDepositsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; + value: Uint8Array; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDepositsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryDepositsRequest"; + value: QueryDepositsRequestAmino; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponse { + deposits: Deposit[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDepositsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; + value: Uint8Array; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseAmino { + deposits?: DepositAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDepositsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryDepositsResponse"; + value: QueryDepositsResponseAmino; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseSDKType { + deposits: DepositSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/v1/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally?: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/v1/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseSDKType { + tally?: TallyResultSDKType; +} +export declare const QueryProposalRequest: { + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; + fromPartial(object: Partial): QueryProposalRequest; + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; + toProto(message: QueryProposalRequest): Uint8Array; + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; +}; +export declare const QueryProposalResponse: { + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; + fromPartial(object: Partial): QueryProposalResponse; + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; + toProto(message: QueryProposalResponse): Uint8Array; + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; +}; +export declare const QueryProposalsRequest: { + typeUrl: string; + encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; + fromPartial(object: Partial): QueryProposalsRequest; + fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; + toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; + fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; + toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; + fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; + toProto(message: QueryProposalsRequest): Uint8Array; + toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; +}; +export declare const QueryProposalsResponse: { + typeUrl: string; + encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; + fromPartial(object: Partial): QueryProposalsResponse; + fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; + toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; + fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; + toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; + fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; + toProto(message: QueryProposalsResponse): Uint8Array; + toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; +}; +export declare const QueryVoteRequest: { + typeUrl: string; + encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; + fromPartial(object: Partial): QueryVoteRequest; + fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; + toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; + fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; + toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; + fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; + toProto(message: QueryVoteRequest): Uint8Array; + toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; +}; +export declare const QueryVoteResponse: { + typeUrl: string; + encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; + fromPartial(object: Partial): QueryVoteResponse; + fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; + toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; + fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; + toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; + fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; + toProto(message: QueryVoteResponse): Uint8Array; + toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; +}; +export declare const QueryVotesRequest: { + typeUrl: string; + encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; + fromPartial(object: Partial): QueryVotesRequest; + fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; + toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; + fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; + toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; + fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; + toProto(message: QueryVotesRequest): Uint8Array; + toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; +}; +export declare const QueryVotesResponse: { + typeUrl: string; + encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; + fromPartial(object: Partial): QueryVotesResponse; + fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; + toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; + fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; + toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; + fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; + toProto(message: QueryVotesResponse): Uint8Array; + toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(object: Partial): QueryParamsRequest; + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryDepositRequest: { + typeUrl: string; + encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; + fromPartial(object: Partial): QueryDepositRequest; + fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; + toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; + fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; + toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; + fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; + toProto(message: QueryDepositRequest): Uint8Array; + toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; +}; +export declare const QueryDepositResponse: { + typeUrl: string; + encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; + fromPartial(object: Partial): QueryDepositResponse; + fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; + toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; + fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; + toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; + fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; + toProto(message: QueryDepositResponse): Uint8Array; + toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; +}; +export declare const QueryDepositsRequest: { + typeUrl: string; + encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; + fromPartial(object: Partial): QueryDepositsRequest; + fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; + toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; + fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; + toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; + fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; + toProto(message: QueryDepositsRequest): Uint8Array; + toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; +}; +export declare const QueryDepositsResponse: { + typeUrl: string; + encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; + fromPartial(object: Partial): QueryDepositsResponse; + fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; + toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; + fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; + toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; + fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; + toProto(message: QueryDepositsResponse): Uint8Array; + toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; +}; +export declare const QueryTallyResultRequest: { + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; + fromPartial(object: Partial): QueryTallyResultRequest; + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; + toProto(message: QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; +}; +export declare const QueryTallyResultResponse: { + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; + fromPartial(object: Partial): QueryTallyResultResponse; + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; + toProto(message: QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/gov/v1/query.js b/packages/api/dist/cosmos/gov/v1/query.js new file mode 100644 index 00000000..79307d01 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.js @@ -0,0 +1,1264 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = void 0; +//@ts-nocheck +const gov_1 = require("./gov"); +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const binary_1 = require("../../../binary"); +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalRequest", + value: exports.QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + value: exports.QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: undefined + }; +} +exports.QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposal !== undefined) { + gov_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = gov_1.Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? gov_1.Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = gov_1.Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? gov_1.Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalResponse", + value: exports.QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + value: exports.QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest() { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +exports.QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = reader.int32(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalsRequest", + value: exports.QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + value: exports.QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse() { + return { + proposals: [], + pagination: undefined + }; +} +exports.QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.proposals) { + gov_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalsResponse", + value: exports.QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + value: exports.QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +exports.QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVoteRequest", + value: exports.QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + value: exports.QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse() { + return { + vote: undefined + }; +} +exports.QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.vote !== undefined) { + gov_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = gov_1.Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? gov_1.Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = gov_1.Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? gov_1.Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVoteResponse", + value: exports.QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + value: exports.QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +exports.QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVotesRequest", + value: exports.QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + value: exports.QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse() { + return { + votes: [], + pagination: undefined + }; +} +exports.QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.votes) { + gov_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVotesResponse", + value: exports.QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + value: exports.QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return { + paramsType: "" + }; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + votingParams: undefined, + depositParams: undefined, + tallyParams: undefined + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.votingParams !== undefined) { + gov_1.VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + gov_1.DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + gov_1.TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest() { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +exports.QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositRequest", + value: exports.QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + value: exports.QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse() { + return { + deposit: undefined + }; +} +exports.QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.deposit !== undefined) { + gov_1.Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = gov_1.Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? gov_1.Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = gov_1.Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.deposit = message.deposit ? gov_1.Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositResponse", + value: exports.QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + value: exports.QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +exports.QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositsRequest", + value: exports.QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + value: exports.QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse() { + return { + deposits: [], + pagination: undefined + }; +} +exports.QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.deposits) { + gov_1.Deposit.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositsResponse", + value: exports.QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + value: exports.QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: undefined + }; +} +exports.QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tally !== undefined) { + gov_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = gov_1.TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? gov_1.TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = gov_1.TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? gov_1.TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts b/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts new file mode 100644 index 00000000..e7e28345 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts @@ -0,0 +1,16 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + proposal(params: QueryProposalRequest): Promise; + proposals(params: QueryProposalsRequest): Promise; + vote(params: QueryVoteRequest): Promise; + votes(params: QueryVotesRequest): Promise; + params(params: QueryParamsRequest): Promise; + deposit(params: QueryDepositRequest): Promise; + deposits(params: QueryDepositsRequest): Promise; + tallyResult(params: QueryTallyResultRequest): Promise; +} diff --git a/packages/api/dist/cosmos/gov/v1/query.lcd.js b/packages/api/dist/cosmos/gov/v1/query.lcd.js new file mode 100644 index 00000000..148b0682 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.lcd.js @@ -0,0 +1,87 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params) { + const options = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params) { + const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..8152da58 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts @@ -0,0 +1,44 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query defines the gRPC querier service for gov module */ +export interface Query { + /** Proposal queries proposal details based on ProposalID. */ + proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ + proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ + vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ + votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ + params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ + deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ + deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + proposal(request: QueryProposalRequest): Promise; + proposals(request: QueryProposalsRequest): Promise; + vote(request: QueryVoteRequest): Promise; + votes(request: QueryVotesRequest): Promise; + params(request: QueryParamsRequest): Promise; + deposit(request: QueryDepositRequest): Promise; + deposits(request: QueryDepositsRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + proposal(request: QueryProposalRequest): Promise; + proposals(request: QueryProposalsRequest): Promise; + vote(request: QueryVoteRequest): Promise; + votes(request: QueryVotesRequest): Promise; + params(request: QueryParamsRequest): Promise; + deposit(request: QueryDepositRequest): Promise; + deposits(request: QueryDepositsRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js new file mode 100644 index 00000000..a0d5b26f --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js @@ -0,0 +1,92 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request) { + const data = query_1.QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); + return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); + } + proposals(request) { + const data = query_1.QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); + return promise.then(data => query_1.QueryProposalsResponse.decode(new binary_1.BinaryReader(data))); + } + vote(request) { + const data = query_1.QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); + return promise.then(data => query_1.QueryVoteResponse.decode(new binary_1.BinaryReader(data))); + } + votes(request) { + const data = query_1.QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); + return promise.then(data => query_1.QueryVotesResponse.decode(new binary_1.BinaryReader(data))); + } + params(request) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + deposit(request) { + const data = query_1.QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); + return promise.then(data => query_1.QueryDepositResponse.decode(new binary_1.BinaryReader(data))); + } + deposits(request) { + const data = query_1.QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); + return promise.then(data => query_1.QueryDepositsResponse.decode(new binary_1.BinaryReader(data))); + } + tallyResult(request) { + const data = query_1.QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); + return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request) { + return queryService.proposal(request); + }, + proposals(request) { + return queryService.proposals(request); + }, + vote(request) { + return queryService.vote(request); + }, + votes(request) { + return queryService.votes(request); + }, + params(request) { + return queryService.params(request); + }, + deposit(request) { + return queryService.deposit(request); + }, + deposits(request) { + return queryService.deposits(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts b/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts new file mode 100644 index 00000000..0e354dc4 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts @@ -0,0 +1,28 @@ +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export declare const AminoConverter: { + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; + }; + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: string; + toAmino: (message: MsgExecLegacyContent) => import("./tx").MsgExecLegacyContentAmino; + fromAmino: (object: import("./tx").MsgExecLegacyContentAmino) => MsgExecLegacyContent; + }; + "/cosmos.gov.v1.MsgVote": { + aminoType: string; + toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; + fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; + }; + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; + fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; + }; + "/cosmos.gov.v1.MsgDeposit": { + aminoType: string; + toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; + fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; + }; +}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.amino.js b/packages/api/dist/cosmos/gov/v1/tx.amino.js new file mode 100644 index 00000000..8f75fa16 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.amino.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/v1/MsgSubmitProposal", + toAmino: tx_1.MsgSubmitProposal.toAmino, + fromAmino: tx_1.MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", + toAmino: tx_1.MsgExecLegacyContent.toAmino, + fromAmino: tx_1.MsgExecLegacyContent.fromAmino + }, + "/cosmos.gov.v1.MsgVote": { + aminoType: "cosmos-sdk/v1/MsgVote", + toAmino: tx_1.MsgVote.toAmino, + fromAmino: tx_1.MsgVote.fromAmino + }, + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/v1/MsgVoteWeighted", + toAmino: tx_1.MsgVoteWeighted.toAmino, + fromAmino: tx_1.MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1.MsgDeposit": { + aminoType: "cosmos-sdk/v1/MsgDeposit", + toAmino: tx_1.MsgDeposit.toAmino, + fromAmino: tx_1.MsgDeposit.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.d.ts b/packages/api/dist/cosmos/gov/v1/tx.d.ts new file mode 100644 index 00000000..3c97f440 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.d.ts @@ -0,0 +1,389 @@ +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType } from "./gov"; +import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposal { + messages: Any[]; + initialDeposit: Coin[]; + proposer: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata: string; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; + value: Uint8Array; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalAmino { + messages?: AnyAmino[]; + initial_deposit?: CoinAmino[]; + proposer?: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata?: string; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/v1/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalSDKType { + messages: AnySDKType[]; + initial_deposit: CoinSDKType[]; + proposer: string; + metadata: string; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + proposal_id?: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContent { + /** content is the proposal's content. */ + content?: TextProposal | Any | undefined; + /** authority must be the gov module address. */ + authority: string; +} +export interface MsgExecLegacyContentProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; + value: Uint8Array; +} +export type MsgExecLegacyContentEncoded = Omit & { + /** content is the proposal's content. */ content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContentAmino { + /** content is the proposal's content. */ + content?: AnyAmino; + /** authority must be the gov module address. */ + authority?: string; +} +export interface MsgExecLegacyContentAminoMsg { + type: "cosmos-sdk/v1/MsgExecLegacyContent"; + value: MsgExecLegacyContentAmino; +} +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContentSDKType { + content?: TextProposalSDKType | AnySDKType | undefined; + authority: string; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponse { +} +export interface MsgExecLegacyContentResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; + value: Uint8Array; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponseAmino { +} +export interface MsgExecLegacyContentResponseAminoMsg { + type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; + value: MsgExecLegacyContentResponseAmino; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponseSDKType { +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVote { + proposalId: bigint; + voter: string; + option: VoteOption; + metadata: string; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVote"; + value: Uint8Array; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteAmino { + proposal_id: string; + voter?: string; + option?: VoteOption; + metadata?: string; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/v1/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponse { +} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseAmino { +} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/v1/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType { +} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeighted { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; + metadata: string; +} +export interface MsgVoteWeightedProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; + value: Uint8Array; +} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeightedAmino { + proposal_id: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; + metadata?: string; +} +export interface MsgVoteWeightedAminoMsg { + type: "cosmos-sdk/v1/MsgVoteWeighted"; + value: MsgVoteWeightedAmino; +} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeightedSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; + metadata: string; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponse { +} +export interface MsgVoteWeightedResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; + value: Uint8Array; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponseAmino { +} +export interface MsgVoteWeightedResponseAminoMsg { + type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; + value: MsgVoteWeightedResponseAmino; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponseSDKType { +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDeposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface MsgDepositProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgDeposit"; + value: Uint8Array; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositAmino { + proposal_id: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface MsgDepositAminoMsg { + type: "cosmos-sdk/v1/MsgDeposit"; + value: MsgDepositAmino; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponse { +} +export interface MsgDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; + value: Uint8Array; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseAmino { +} +export interface MsgDepositResponseAminoMsg { + type: "cosmos-sdk/v1/MsgDepositResponse"; + value: MsgDepositResponseAmino; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseSDKType { +} +export declare const MsgSubmitProposal: { + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; + fromPartial(object: Partial): MsgSubmitProposal; + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; + toProto(message: MsgSubmitProposal): Uint8Array; + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; +}; +export declare const MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; + fromPartial(object: Partial): MsgSubmitProposalResponse; + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; + toProto(message: MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; +}; +export declare const MsgExecLegacyContent: { + typeUrl: string; + encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent; + fromPartial(object: Partial): MsgExecLegacyContent; + fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent; + toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino; + fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent; + toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg; + fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent; + toProto(message: MsgExecLegacyContent): Uint8Array; + toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg; +}; +export declare const MsgExecLegacyContentResponse: { + typeUrl: string; + encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse; + fromPartial(_: Partial): MsgExecLegacyContentResponse; + fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse; + toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino; + fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse; + toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg; + fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse; + toProto(message: MsgExecLegacyContentResponse): Uint8Array; + toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg; +}; +export declare const MsgVote: { + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; + fromPartial(object: Partial): MsgVote; + fromAmino(object: MsgVoteAmino): MsgVote; + toAmino(message: MsgVote): MsgVoteAmino; + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; + toAminoMsg(message: MsgVote): MsgVoteAminoMsg; + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; + toProto(message: MsgVote): Uint8Array; + toProtoMsg(message: MsgVote): MsgVoteProtoMsg; +}; +export declare const MsgVoteResponse: { + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; + fromPartial(_: Partial): MsgVoteResponse; + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; + toProto(message: MsgVoteResponse): Uint8Array; + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; +}; +export declare const MsgVoteWeighted: { + typeUrl: string; + encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; + fromPartial(object: Partial): MsgVoteWeighted; + fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; + toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; + fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; + toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; + fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; + toProto(message: MsgVoteWeighted): Uint8Array; + toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; +}; +export declare const MsgVoteWeightedResponse: { + typeUrl: string; + encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; + fromPartial(_: Partial): MsgVoteWeightedResponse; + fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; + toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; + fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; + toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; + fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; + toProto(message: MsgVoteWeightedResponse): Uint8Array; + toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; +}; +export declare const MsgDeposit: { + typeUrl: string; + encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; + fromPartial(object: Partial): MsgDeposit; + fromAmino(object: MsgDepositAmino): MsgDeposit; + toAmino(message: MsgDeposit): MsgDepositAmino; + fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; + toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; + fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; + toProto(message: MsgDeposit): Uint8Array; + toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; +}; +export declare const MsgDepositResponse: { + typeUrl: string; + encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; + fromPartial(_: Partial): MsgDepositResponse; + fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; + toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; + fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; + toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; + fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; + toProto(message: MsgDepositResponse): Uint8Array; + toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; +}; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; +export declare const Content_FromAmino: (content: AnyAmino) => Any; +export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1/tx.js b/packages/api/dist/cosmos/gov/v1/tx.js new file mode 100644 index 00000000..e32f8c52 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.js @@ -0,0 +1,838 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgExecLegacyContentResponse = exports.MsgExecLegacyContent = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const coin_1 = require("../../base/v1beta1/coin"); +const gov_1 = require("./gov"); +const gov_2 = require("../v1beta1/gov"); +const binary_1 = require("../../../binary"); +function createBaseMsgSubmitProposal() { + return { + messages: [], + initialDeposit: [], + proposer: "", + metadata: "" + }; +} +exports.MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.messages) { + any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 2: + message.initialDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; + message.initialDeposit = object.initialDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; + message.initialDeposit = object.initial_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgSubmitProposal", + value: exports.MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: exports.MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +exports.MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContent() { + return { + content: undefined, + authority: "" + }; +} +exports.MsgExecLegacyContent = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.content !== undefined) { + any_1.Any.encode(message.content, writer.uint32(10).fork()).ldelim(); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = (0, exports.Content_InterfaceDecoder)(reader); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecLegacyContent(); + message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecLegacyContent(); + if (object.content !== undefined && object.content !== null) { + message.content = (0, exports.Content_FromAmino)(object.content); + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExecLegacyContent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContent", + value: exports.MsgExecLegacyContent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExecLegacyContent.decode(message.value); + }, + toProto(message) { + return exports.MsgExecLegacyContent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: exports.MsgExecLegacyContent.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContentResponse() { + return {}; +} +exports.MsgExecLegacyContentResponse = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContentResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExecLegacyContentResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", + value: exports.MsgExecLegacyContentResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExecLegacyContentResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgExecLegacyContentResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + value: exports.MsgExecLegacyContentResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "" + }; +} +exports.MsgVote = { + typeUrl: "/cosmos.gov.v1.MsgVote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVote", + value: exports.MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVote.decode(message.value); + }, + toProto(message) { + return exports.MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: exports.MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +exports.MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteResponse", + value: exports.MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + value: exports.MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted() { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +exports.MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + gov_1.WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(gov_1.WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? gov_1.WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteWeighted", + value: exports.MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteWeighted.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: exports.MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse() { + return {}; +} +exports.MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteWeightedResponse", + value: exports.MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + value: exports.MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +exports.MsgDeposit = { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgDeposit", + value: exports.MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDeposit.decode(message.value); + }, + toProto(message) { + return exports.MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: exports.MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse() { + return {}; +} +exports.MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgDepositResponse", + value: exports.MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDepositResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + value: exports.MsgDepositResponse.encode(message).finish() + }; + } +}; +const Content_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return gov_2.TextProposal.decode(data.value); + default: + return data; + } +}; +exports.Content_InterfaceDecoder = Content_InterfaceDecoder; +const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/v1/TextProposal": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: gov_2.TextProposal.encode(gov_2.TextProposal.fromPartial(gov_2.TextProposal.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.Content_FromAmino = Content_FromAmino; +const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/v1/TextProposal", + value: gov_2.TextProposal.toAmino(gov_2.TextProposal.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts b/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts new file mode 100644 index 00000000..2dd13cbd --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts @@ -0,0 +1,72 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + execLegacyContent(value: MsgExecLegacyContent): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: Uint8Array; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + execLegacyContent(value: MsgExecLegacyContent): { + typeUrl: string; + value: MsgExecLegacyContent; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: MsgVoteWeighted; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: MsgDeposit; + }; + }; + fromPartial: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + execLegacyContent(value: MsgExecLegacyContent): { + typeUrl: string; + value: MsgExecLegacyContent; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: MsgVoteWeighted; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: MsgDeposit; + }; + }; +}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.registry.js b/packages/api/dist/cosmos/gov/v1/tx.registry.js new file mode 100644 index 00000000..32abb26d --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.registry.js @@ -0,0 +1,109 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.gov.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", tx_1.MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", tx_1.MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", tx_1.MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", tx_1.MsgDeposit]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.encode(value).finish() + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: tx_1.MsgExecLegacyContent.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: tx_1.MsgVote.encode(value).finish() + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: tx_1.MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: tx_1.MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.fromPartial(value) + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: tx_1.MsgExecLegacyContent.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: tx_1.MsgVote.fromPartial(value) + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: tx_1.MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: tx_1.MsgDeposit.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..4624c3f7 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts @@ -0,0 +1,27 @@ +import { Rpc } from "../../../helpers"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +/** Msg defines the gov Msg service. */ +export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** + * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + * to execute a legacy content-based proposal. + */ + execLegacyContent(request: MsgExecLegacyContent): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ + vote(request: MsgVote): Promise; + /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ + voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ + deposit(request: MsgDeposit): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + submitProposal(request: MsgSubmitProposal): Promise; + execLegacyContent(request: MsgExecLegacyContent): Promise; + vote(request: MsgVote): Promise; + voteWeighted(request: MsgVoteWeighted): Promise; + deposit(request: MsgDeposit): Promise; +} diff --git a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js new file mode 100644 index 00000000..7313246f --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js @@ -0,0 +1,42 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.execLegacyContent = this.execLegacyContent.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request) { + const data = tx_1.MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); + return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); + } + execLegacyContent(request) { + const data = tx_1.MsgExecLegacyContent.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); + return promise.then(data => tx_1.MsgExecLegacyContentResponse.decode(new binary_1.BinaryReader(data))); + } + vote(request) { + const data = tx_1.MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); + return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); + } + voteWeighted(request) { + const data = tx_1.MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); + return promise.then(data => tx_1.MsgVoteWeightedResponse.decode(new binary_1.BinaryReader(data))); + } + deposit(request) { + const data = tx_1.MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); + return promise.then(data => tx_1.MsgDepositResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts new file mode 100644 index 00000000..2a6f8134 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts @@ -0,0 +1,67 @@ +import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisState { + /** starting_proposal_id is the ID of the starting proposal. */ + startingProposalId: bigint; + /** deposits defines all the deposits present at genesis. */ + deposits: Deposit[]; + /** votes defines all the votes present at genesis. */ + votes: Vote[]; + /** proposals defines all the proposals present at genesis. */ + proposals: Proposal[]; + /** params defines all the paramaters of related to deposit. */ + depositParams: DepositParams; + /** params defines all the paramaters of related to voting. */ + votingParams: VotingParams; + /** params defines all the paramaters of related to tally. */ + tallyParams: TallyParams; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateAmino { + /** starting_proposal_id is the ID of the starting proposal. */ + starting_proposal_id?: string; + /** deposits defines all the deposits present at genesis. */ + deposits?: DepositAmino[]; + /** votes defines all the votes present at genesis. */ + votes?: VoteAmino[]; + /** proposals defines all the proposals present at genesis. */ + proposals?: ProposalAmino[]; + /** params defines all the paramaters of related to deposit. */ + deposit_params?: DepositParamsAmino; + /** params defines all the paramaters of related to voting. */ + voting_params?: VotingParamsAmino; + /** params defines all the paramaters of related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateSDKType { + starting_proposal_id: bigint; + deposits: DepositSDKType[]; + votes: VoteSDKType[]; + proposals: ProposalSDKType[]; + deposit_params: DepositParamsSDKType; + voting_params: VotingParamsSDKType; + tally_params: TallyParamsSDKType; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/genesis.js b/packages/api/dist/cosmos/gov/v1beta1/genesis.js new file mode 100644 index 00000000..243a328d --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/genesis.js @@ -0,0 +1,156 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const gov_1 = require("./gov"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: gov_1.DepositParams.fromPartial({}), + votingParams: gov_1.VotingParams.fromPartial({}), + tallyParams: gov_1.TallyParams.fromPartial({}) + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + gov_1.Deposit.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + gov_1.Vote.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + gov_1.Proposal.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + gov_1.DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + gov_1.VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts b/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts new file mode 100644 index 00000000..bc3bcc8f --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts @@ -0,0 +1,519 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export declare enum VoteOption { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1 +} +export declare const VoteOptionSDKType: typeof VoteOption; +export declare const VoteOptionAmino: typeof VoteOption; +export declare function voteOptionFromJSON(object: any): VoteOption; +export declare function voteOptionToJSON(object: VoteOption): string; +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export declare enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + PROPOSAL_STATUS_VOTING_PERIOD = 2, + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + PROPOSAL_STATUS_PASSED = 3, + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + PROPOSAL_STATUS_REJECTED = 4, + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + PROPOSAL_STATUS_FAILED = 5, + UNRECOGNIZED = -1 +} +export declare const ProposalStatusSDKType: typeof ProposalStatus; +export declare const ProposalStatusAmino: typeof ProposalStatus; +export declare function proposalStatusFromJSON(object: any): ProposalStatus; +export declare function proposalStatusToJSON(object: ProposalStatus): string; +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOption { + option: VoteOption; + weight: string; +} +export interface WeightedVoteOptionProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; + value: Uint8Array; +} +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOptionAmino { + option?: VoteOption; + weight?: string; +} +export interface WeightedVoteOptionAminoMsg { + type: "cosmos-sdk/WeightedVoteOption"; + value: WeightedVoteOptionAmino; +} +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOptionSDKType { + option: VoteOption; + weight: string; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposal { + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; + title: string; + description: string; +} +export interface TextProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TextProposal"; + value: Uint8Array; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposalAmino { + title?: string; + description?: string; +} +export interface TextProposalAminoMsg { + type: "cosmos-sdk/TextProposal"; + value: TextProposalAmino; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposalSDKType { + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; + title: string; + description: string; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface Deposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface DepositProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Deposit"; + value: Uint8Array; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositAmino { + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface DepositAminoMsg { + type: "cosmos-sdk/Deposit"; + value: DepositAmino; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface Proposal { + proposalId: bigint; + content?: TextProposal | Any | undefined; + status: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + finalTallyResult: TallyResult; + submitTime: Date; + depositEndTime: Date; + totalDeposit: Coin[]; + votingStartTime: Date; + votingEndTime: Date; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Proposal"; + value: Uint8Array; +} +export type ProposalEncoded = Omit & { + content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalAmino { + proposal_id?: string; + content?: AnyAmino; + status?: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + final_tally_result?: TallyResultAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/Proposal"; + value: ProposalAmino; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalSDKType { + proposal_id: bigint; + content?: TextProposalSDKType | AnySDKType | undefined; + status: ProposalStatus; + final_tally_result: TallyResultSDKType; + submit_time: Date; + deposit_end_time: Date; + total_deposit: CoinSDKType[]; + voting_start_time: Date; + voting_end_time: Date; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResult { + yes: string; + abstain: string; + no: string; + noWithVeto: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TallyResult"; + value: Uint8Array; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultAmino { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultSDKType { + yes: string; + abstain: string; + no: string; + no_with_veto: string; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface Vote { + proposalId: bigint; + voter: string; + /** + * Deprecated: Prefer to use `options` instead. This field is set in queries + * if and only if `len(options) == 1` and that option has weight 1. In all + * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + */ + /** @deprecated */ + option: VoteOption; + /** Since: cosmos-sdk 0.43 */ + options: WeightedVoteOption[]; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Vote"; + value: Uint8Array; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteAmino { + proposal_id: string; + voter?: string; + /** + * Deprecated: Prefer to use `options` instead. This field is set in queries + * if and only if `len(options) == 1` and that option has weight 1. In all + * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + */ + /** @deprecated */ + option?: VoteOption; + /** Since: cosmos-sdk 0.43 */ + options?: WeightedVoteOptionAmino[]; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/Vote"; + value: VoteAmino; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + /** @deprecated */ + option: VoteOption; + options: WeightedVoteOptionSDKType[]; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + minDeposit: Coin[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + maxDepositPeriod: Duration; +} +export interface DepositParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.DepositParams"; + value: Uint8Array; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsAmino { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: CoinAmino[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: DurationAmino; +} +export interface DepositParamsAminoMsg { + type: "cosmos-sdk/DepositParams"; + value: DepositParamsAmino; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsSDKType { + min_deposit: CoinSDKType[]; + max_deposit_period: DurationSDKType; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParams { + /** Length of the voting period. */ + votingPeriod: Duration; +} +export interface VotingParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.VotingParams"; + value: Uint8Array; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsAmino { + /** Length of the voting period. */ + voting_period?: DurationAmino; +} +export interface VotingParamsAminoMsg { + type: "cosmos-sdk/VotingParams"; + value: VotingParamsAmino; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsSDKType { + voting_period: DurationSDKType; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum: Uint8Array; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold: Uint8Array; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + vetoThreshold: Uint8Array; +} +export interface TallyParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TallyParams"; + value: Uint8Array; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsAmino { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum?: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + veto_threshold?: string; +} +export interface TallyParamsAminoMsg { + type: "cosmos-sdk/TallyParams"; + value: TallyParamsAmino; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsSDKType { + quorum: Uint8Array; + threshold: Uint8Array; + veto_threshold: Uint8Array; +} +export declare const WeightedVoteOption: { + typeUrl: string; + encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; + fromPartial(object: Partial): WeightedVoteOption; + fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; + toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; + fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; + toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; + fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; + toProto(message: WeightedVoteOption): Uint8Array; + toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; +}; +export declare const TextProposal: { + typeUrl: string; + encode(message: TextProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TextProposal; + fromPartial(object: Partial): TextProposal; + fromAmino(object: TextProposalAmino): TextProposal; + toAmino(message: TextProposal): TextProposalAmino; + fromAminoMsg(object: TextProposalAminoMsg): TextProposal; + toAminoMsg(message: TextProposal): TextProposalAminoMsg; + fromProtoMsg(message: TextProposalProtoMsg): TextProposal; + toProto(message: TextProposal): Uint8Array; + toProtoMsg(message: TextProposal): TextProposalProtoMsg; +}; +export declare const Deposit: { + typeUrl: string; + encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Deposit; + fromPartial(object: Partial): Deposit; + fromAmino(object: DepositAmino): Deposit; + toAmino(message: Deposit): DepositAmino; + fromAminoMsg(object: DepositAminoMsg): Deposit; + toAminoMsg(message: Deposit): DepositAminoMsg; + fromProtoMsg(message: DepositProtoMsg): Deposit; + toProto(message: Deposit): Uint8Array; + toProtoMsg(message: Deposit): DepositProtoMsg; +}; +export declare const Proposal: { + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; + fromPartial(object: Partial): Proposal; + fromAmino(object: ProposalAmino): Proposal; + toAmino(message: Proposal): ProposalAmino; + fromAminoMsg(object: ProposalAminoMsg): Proposal; + toAminoMsg(message: Proposal): ProposalAminoMsg; + fromProtoMsg(message: ProposalProtoMsg): Proposal; + toProto(message: Proposal): Uint8Array; + toProtoMsg(message: Proposal): ProposalProtoMsg; +}; +export declare const TallyResult: { + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; + fromPartial(object: Partial): TallyResult; + fromAmino(object: TallyResultAmino): TallyResult; + toAmino(message: TallyResult): TallyResultAmino; + fromAminoMsg(object: TallyResultAminoMsg): TallyResult; + toAminoMsg(message: TallyResult): TallyResultAminoMsg; + fromProtoMsg(message: TallyResultProtoMsg): TallyResult; + toProto(message: TallyResult): Uint8Array; + toProtoMsg(message: TallyResult): TallyResultProtoMsg; +}; +export declare const Vote: { + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; + fromPartial(object: Partial): Vote; + fromAmino(object: VoteAmino): Vote; + toAmino(message: Vote): VoteAmino; + fromAminoMsg(object: VoteAminoMsg): Vote; + toAminoMsg(message: Vote): VoteAminoMsg; + fromProtoMsg(message: VoteProtoMsg): Vote; + toProto(message: Vote): Uint8Array; + toProtoMsg(message: Vote): VoteProtoMsg; +}; +export declare const DepositParams: { + typeUrl: string; + encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; + fromPartial(object: Partial): DepositParams; + fromAmino(object: DepositParamsAmino): DepositParams; + toAmino(message: DepositParams): DepositParamsAmino; + fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; + toAminoMsg(message: DepositParams): DepositParamsAminoMsg; + fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; + toProto(message: DepositParams): Uint8Array; + toProtoMsg(message: DepositParams): DepositParamsProtoMsg; +}; +export declare const VotingParams: { + typeUrl: string; + encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; + fromPartial(object: Partial): VotingParams; + fromAmino(object: VotingParamsAmino): VotingParams; + toAmino(message: VotingParams): VotingParamsAmino; + fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; + toAminoMsg(message: VotingParams): VotingParamsAminoMsg; + fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; + toProto(message: VotingParams): Uint8Array; + toProtoMsg(message: VotingParams): VotingParamsProtoMsg; +}; +export declare const TallyParams: { + typeUrl: string; + encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; + fromPartial(object: Partial): TallyParams; + fromAmino(object: TallyParamsAmino): TallyParams; + toAmino(message: TallyParams): TallyParamsAmino; + fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; + toAminoMsg(message: TallyParams): TallyParamsAminoMsg; + fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; + toProto(message: TallyParams): Uint8Array; + toProtoMsg(message: TallyParams): TallyParamsProtoMsg; +}; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; +export declare const Content_FromAmino: (content: AnyAmino) => Any; +export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/gov.js b/packages/api/dist/cosmos/gov/v1beta1/gov.js new file mode 100644 index 00000000..d942bf82 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/gov.js @@ -0,0 +1,1072 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.TextProposal = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const any_1 = require("../../../google/protobuf/any"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const duration_1 = require("../../../google/protobuf/duration"); +const binary_1 = require("../../../binary"); +const math_1 = require("@cosmjs/math"); +const helpers_1 = require("../../../helpers"); +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +var VoteOption; +(function (VoteOption) { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (exports.VoteOption = VoteOption = {})); +exports.VoteOptionSDKType = VoteOption; +exports.VoteOptionAmino = VoteOption; +function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +exports.voteOptionFromJSON = voteOptionFromJSON; +function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.voteOptionToJSON = voteOptionToJSON; +/** ProposalStatus enumerates the valid statuses of a proposal. */ +var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); +exports.ProposalStatusSDKType = ProposalStatus; +exports.ProposalStatusAmino = ProposalStatus; +function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +exports.proposalStatusFromJSON = proposalStatusFromJSON; +function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.proposalStatusToJSON = proposalStatusToJSON; +function createBaseWeightedVoteOption() { + return { + option: 0, + weight: "" + }; +} +exports.WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.weight, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = reader.int32(); + break; + case 2: + message.weight = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object) { + return exports.WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/WeightedVoteOption", + value: exports.WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.WeightedVoteOption.decode(message.value); + }, + toProto(message) { + return exports.WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + value: exports.WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseTextProposal() { + return { + $typeUrl: "/cosmos.gov.v1beta1.TextProposal", + title: "", + description: "" + }; +} +exports.TextProposal = { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTextProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTextProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTextProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return exports.TextProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TextProposal", + value: exports.TextProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TextProposal.decode(message.value); + }, + toProto(message) { + return exports.TextProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: exports.TextProposal.encode(message).finish() + }; + } +}; +function createBaseDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +exports.Deposit = { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Deposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Deposit", + value: exports.Deposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Deposit.decode(message.value); + }, + toProto(message) { + return exports.Deposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + value: exports.Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + proposalId: BigInt(0), + content: undefined, + status: 0, + finalTallyResult: exports.TallyResult.fromPartial({}), + submitTime: new Date(), + depositEndTime: new Date(), + totalDeposit: [], + votingStartTime: new Date(), + votingEndTime: new Date() + }; +} +exports.Proposal = { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.content !== undefined) { + any_1.Any.encode(message.content, writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + exports.TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + coin_1.Coin.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.content = (0, exports.Content_InterfaceDecoder)(reader); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.content !== undefined && object.content !== null) { + message.content = (0, exports.Content_FromAmino)(object.content); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_end_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingEndTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Proposal", + value: exports.Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Proposal.decode(message.value); + }, + toProto(message) { + return exports.Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + value: exports.Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yes: "", + abstain: "", + no: "", + noWithVeto: "" + }; +} +exports.TallyResult = { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.yes !== "") { + writer.uint32(10).string(message.yes); + } + if (message.abstain !== "") { + writer.uint32(18).string(message.abstain); + } + if (message.no !== "") { + writer.uint32(26).string(message.no); + } + if (message.noWithVeto !== "") { + writer.uint32(34).string(message.noWithVeto); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yes = reader.string(); + break; + case 2: + message.abstain = reader.string(); + break; + case 3: + message.no = reader.string(); + break; + case 4: + message.noWithVeto = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yes = object.yes ?? ""; + message.abstain = object.abstain ?? ""; + message.no = object.no ?? ""; + message.noWithVeto = object.noWithVeto ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes !== undefined && object.yes !== null) { + message.yes = object.yes; + } + if (object.abstain !== undefined && object.abstain !== null) { + message.abstain = object.abstain; + } + if (object.no !== undefined && object.no !== null) { + message.no = object.no; + } + if (object.no_with_veto !== undefined && object.no_with_veto !== null) { + message.noWithVeto = object.no_with_veto; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes = message.yes === "" ? undefined : message.yes; + obj.abstain = message.abstain === "" ? undefined : message.abstain; + obj.no = message.no === "" ? undefined : message.no; + obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; + return obj; + }, + fromAminoMsg(object) { + return exports.TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyResult", + value: exports.TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TallyResult.decode(message.value); + }, + toProto(message) { + return exports.TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + value: exports.TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + options: [] + }; +} +exports.Vote = { + typeUrl: "/cosmos.gov.v1beta1.Vote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + for (const v of message.options) { + exports.WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.options.push(exports.WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.options = object.options?.map(e => exports.WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + message.options = object.options?.map(e => exports.WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + if (message.options) { + obj.options = message.options.map(e => e ? exports.WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Vote", + value: exports.Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Vote.decode(message.value); + }, + toProto(message) { + return exports.Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Vote", + value: exports.Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams() { + return { + minDeposit: [], + maxDepositPeriod: duration_1.Duration.fromPartial({}) + }; +} +exports.DepositParams = { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.minDeposit) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + duration_1.Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? duration_1.Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = duration_1.Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? duration_1.Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DepositParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DepositParams", + value: exports.DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DepositParams.decode(message.value); + }, + toProto(message) { + return exports.DepositParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + value: exports.DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams() { + return { + votingPeriod: duration_1.Duration.fromPartial({}) + }; +} +exports.VotingParams = { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.VotingParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/VotingParams", + value: exports.VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.VotingParams.decode(message.value); + }, + toProto(message) { + return exports.VotingParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + value: exports.VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams() { + return { + quorum: new Uint8Array(), + threshold: new Uint8Array(), + vetoThreshold: new Uint8Array() + }; +} +exports.TallyParams = { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.quorum.length !== 0) { + writer.uint32(10).bytes(message.quorum); + } + if (message.threshold.length !== 0) { + writer.uint32(18).bytes(message.threshold); + } + if (message.vetoThreshold.length !== 0) { + writer.uint32(26).bytes(message.vetoThreshold); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.bytes(); + break; + case 2: + message.threshold = reader.bytes(); + break; + case 3: + message.vetoThreshold = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? new Uint8Array(); + message.threshold = object.threshold ?? new Uint8Array(); + message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = (0, helpers_1.bytesFromBase64)(object.quorum); + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = (0, helpers_1.bytesFromBase64)(object.threshold); + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = (0, helpers_1.bytesFromBase64)(object.veto_threshold); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.quorum = message.quorum ? (0, helpers_1.base64FromBytes)(message.quorum) : undefined; + obj.threshold = message.threshold ? (0, helpers_1.base64FromBytes)(message.threshold) : undefined; + obj.veto_threshold = message.vetoThreshold ? (0, helpers_1.base64FromBytes)(message.vetoThreshold) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.TallyParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyParams", + value: exports.TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TallyParams.decode(message.value); + }, + toProto(message) { + return exports.TallyParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + value: exports.TallyParams.encode(message).finish() + }; + } +}; +const Content_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return exports.TextProposal.decode(data.value); + default: + return data; + } +}; +exports.Content_InterfaceDecoder = Content_InterfaceDecoder; +const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: exports.TextProposal.encode(exports.TextProposal.fromPartial(exports.TextProposal.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.Content_FromAmino = Content_FromAmino; +const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: exports.TextProposal.toAmino(exports.TextProposal.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.d.ts new file mode 100644 index 00000000..5c454bbe --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.d.ts @@ -0,0 +1,632 @@ +import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponse { + proposal: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseAmino { + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseSDKType { + proposal: ProposalSDKType; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequest { + /** proposal_status defines the status of the proposals. */ + proposalStatus: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; + value: Uint8Array; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestAmino { + /** proposal_status defines the status of the proposals. */ + proposal_status?: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsRequestAminoMsg { + type: "cosmos-sdk/QueryProposalsRequest"; + value: QueryProposalsRequestAmino; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestSDKType { + proposal_status: ProposalStatus; + voter: string; + depositor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponse { + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; + value: Uint8Array; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseAmino { + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsResponseAminoMsg { + type: "cosmos-sdk/QueryProposalsResponse"; + value: QueryProposalsResponseAmino; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** voter defines the voter address for the proposals. */ + voter: string; +} +export interface QueryVoteRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; + value: Uint8Array; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** voter defines the voter address for the proposals. */ + voter?: string; +} +export interface QueryVoteRequestAminoMsg { + type: "cosmos-sdk/QueryVoteRequest"; + value: QueryVoteRequestAmino; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponse { + /** vote defined the queried vote. */ + vote: Vote; +} +export interface QueryVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; + value: Uint8Array; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseAmino { + /** vote defined the queried vote. */ + vote?: VoteAmino; +} +export interface QueryVoteResponseAminoMsg { + type: "cosmos-sdk/QueryVoteResponse"; + value: QueryVoteResponseAmino; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseSDKType { + vote: VoteSDKType; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; + value: Uint8Array; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesRequestAminoMsg { + type: "cosmos-sdk/QueryVotesRequest"; + value: QueryVotesRequestAmino; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponse { + /** votes defined the queried votes. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; + value: Uint8Array; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseAmino { + /** votes defined the queried votes. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesResponseAminoMsg { + type: "cosmos-sdk/QueryVotesResponse"; + value: QueryVotesResponseAmino; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + paramsType: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + params_type?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + params_type: string; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + votingParams: VotingParams; + /** deposit_params defines the parameters related to deposit. */ + depositParams: DepositParams; + /** tally_params defines the parameters related to tally. */ + tallyParams: TallyParams; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** voting_params defines the parameters related to voting. */ + voting_params?: VotingParamsAmino; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: DepositParamsAmino; + /** tally_params defines the parameters related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + voting_params: VotingParamsSDKType; + deposit_params: DepositParamsSDKType; + tally_params: TallyParamsSDKType; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; +} +export interface QueryDepositRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; + value: Uint8Array; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; +} +export interface QueryDepositRequestAminoMsg { + type: "cosmos-sdk/QueryDepositRequest"; + value: QueryDepositRequestAmino; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestSDKType { + proposal_id: bigint; + depositor: string; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponse { + /** deposit defines the requested deposit. */ + deposit: Deposit; +} +export interface QueryDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; + value: Uint8Array; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseAmino { + /** deposit defines the requested deposit. */ + deposit?: DepositAmino; +} +export interface QueryDepositResponseAminoMsg { + type: "cosmos-sdk/QueryDepositResponse"; + value: QueryDepositResponseAmino; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseSDKType { + deposit: DepositSDKType; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDepositsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; + value: Uint8Array; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDepositsRequestAminoMsg { + type: "cosmos-sdk/QueryDepositsRequest"; + value: QueryDepositsRequestAmino; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponse { + deposits: Deposit[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDepositsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; + value: Uint8Array; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseAmino { + deposits?: DepositAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDepositsResponseAminoMsg { + type: "cosmos-sdk/QueryDepositsResponse"; + value: QueryDepositsResponseAmino; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseSDKType { + deposits: DepositSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseSDKType { + tally: TallyResultSDKType; +} +export declare const QueryProposalRequest: { + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; + fromPartial(object: Partial): QueryProposalRequest; + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; + toProto(message: QueryProposalRequest): Uint8Array; + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; +}; +export declare const QueryProposalResponse: { + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; + fromPartial(object: Partial): QueryProposalResponse; + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; + toProto(message: QueryProposalResponse): Uint8Array; + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; +}; +export declare const QueryProposalsRequest: { + typeUrl: string; + encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; + fromPartial(object: Partial): QueryProposalsRequest; + fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; + toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; + fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; + toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; + fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; + toProto(message: QueryProposalsRequest): Uint8Array; + toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; +}; +export declare const QueryProposalsResponse: { + typeUrl: string; + encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; + fromPartial(object: Partial): QueryProposalsResponse; + fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; + toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; + fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; + toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; + fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; + toProto(message: QueryProposalsResponse): Uint8Array; + toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; +}; +export declare const QueryVoteRequest: { + typeUrl: string; + encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; + fromPartial(object: Partial): QueryVoteRequest; + fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; + toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; + fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; + toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; + fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; + toProto(message: QueryVoteRequest): Uint8Array; + toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; +}; +export declare const QueryVoteResponse: { + typeUrl: string; + encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; + fromPartial(object: Partial): QueryVoteResponse; + fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; + toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; + fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; + toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; + fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; + toProto(message: QueryVoteResponse): Uint8Array; + toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; +}; +export declare const QueryVotesRequest: { + typeUrl: string; + encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; + fromPartial(object: Partial): QueryVotesRequest; + fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; + toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; + fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; + toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; + fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; + toProto(message: QueryVotesRequest): Uint8Array; + toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; +}; +export declare const QueryVotesResponse: { + typeUrl: string; + encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; + fromPartial(object: Partial): QueryVotesResponse; + fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; + toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; + fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; + toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; + fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; + toProto(message: QueryVotesResponse): Uint8Array; + toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(object: Partial): QueryParamsRequest; + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryDepositRequest: { + typeUrl: string; + encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; + fromPartial(object: Partial): QueryDepositRequest; + fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; + toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; + fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; + toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; + fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; + toProto(message: QueryDepositRequest): Uint8Array; + toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; +}; +export declare const QueryDepositResponse: { + typeUrl: string; + encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; + fromPartial(object: Partial): QueryDepositResponse; + fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; + toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; + fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; + toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; + fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; + toProto(message: QueryDepositResponse): Uint8Array; + toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; +}; +export declare const QueryDepositsRequest: { + typeUrl: string; + encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; + fromPartial(object: Partial): QueryDepositsRequest; + fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; + toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; + fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; + toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; + fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; + toProto(message: QueryDepositsRequest): Uint8Array; + toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; +}; +export declare const QueryDepositsResponse: { + typeUrl: string; + encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; + fromPartial(object: Partial): QueryDepositsResponse; + fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; + toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; + fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; + toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; + fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; + toProto(message: QueryDepositsResponse): Uint8Array; + toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; +}; +export declare const QueryTallyResultRequest: { + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; + fromPartial(object: Partial): QueryTallyResultRequest; + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; + toProto(message: QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; +}; +export declare const QueryTallyResultResponse: { + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; + fromPartial(object: Partial): QueryTallyResultResponse; + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; + toProto(message: QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.js b/packages/api/dist/cosmos/gov/v1beta1/query.js new file mode 100644 index 00000000..1ade0dbe --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.js @@ -0,0 +1,1264 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = void 0; +//@ts-nocheck +const gov_1 = require("./gov"); +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const binary_1 = require("../../../binary"); +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: exports.QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + value: exports.QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: gov_1.Proposal.fromPartial({}) + }; +} +exports.QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposal !== undefined) { + gov_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = gov_1.Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? gov_1.Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = gov_1.Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? gov_1.Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: exports.QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + value: exports.QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest() { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +exports.QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = reader.int32(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsRequest", + value: exports.QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + value: exports.QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse() { + return { + proposals: [], + pagination: undefined + }; +} +exports.QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.proposals) { + gov_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsResponse", + value: exports.QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + value: exports.QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +exports.QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteRequest", + value: exports.QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + value: exports.QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse() { + return { + vote: gov_1.Vote.fromPartial({}) + }; +} +exports.QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.vote !== undefined) { + gov_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = gov_1.Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? gov_1.Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = gov_1.Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? gov_1.Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteResponse", + value: exports.QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + value: exports.QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +exports.QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesRequest", + value: exports.QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + value: exports.QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse() { + return { + votes: [], + pagination: undefined + }; +} +exports.QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.votes) { + gov_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesResponse", + value: exports.QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + value: exports.QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return { + paramsType: "" + }; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + votingParams: gov_1.VotingParams.fromPartial({}), + depositParams: gov_1.DepositParams.fromPartial({}), + tallyParams: gov_1.TallyParams.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.votingParams !== undefined) { + gov_1.VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + gov_1.DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + gov_1.TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest() { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +exports.QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositRequest", + value: exports.QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + value: exports.QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse() { + return { + deposit: gov_1.Deposit.fromPartial({}) + }; +} +exports.QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.deposit !== undefined) { + gov_1.Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = gov_1.Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? gov_1.Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = gov_1.Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.deposit = message.deposit ? gov_1.Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositResponse", + value: exports.QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + value: exports.QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +exports.QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositsRequest", + value: exports.QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + value: exports.QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse() { + return { + deposits: [], + pagination: undefined + }; +} +exports.QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.deposits) { + gov_1.Deposit.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositsResponse", + value: exports.QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDepositsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + value: exports.QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: gov_1.TallyResult.fromPartial({}) + }; +} +exports.QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tally !== undefined) { + gov_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = gov_1.TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? gov_1.TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = gov_1.TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? gov_1.TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..e7e28345 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts @@ -0,0 +1,16 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + proposal(params: QueryProposalRequest): Promise; + proposals(params: QueryProposalsRequest): Promise; + vote(params: QueryVoteRequest): Promise; + votes(params: QueryVotesRequest): Promise; + params(params: QueryParamsRequest): Promise; + deposit(params: QueryDepositRequest): Promise; + deposits(params: QueryDepositsRequest): Promise; + tallyResult(params: QueryTallyResultRequest): Promise; +} diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js new file mode 100644 index 00000000..2fa4bb2a --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js @@ -0,0 +1,87 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params) { + const options = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params) { + const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..8152da58 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,44 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query defines the gRPC querier service for gov module */ +export interface Query { + /** Proposal queries proposal details based on ProposalID. */ + proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ + proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ + vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ + votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ + params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ + deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ + deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + proposal(request: QueryProposalRequest): Promise; + proposals(request: QueryProposalsRequest): Promise; + vote(request: QueryVoteRequest): Promise; + votes(request: QueryVotesRequest): Promise; + params(request: QueryParamsRequest): Promise; + deposit(request: QueryDepositRequest): Promise; + deposits(request: QueryDepositsRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + proposal(request: QueryProposalRequest): Promise; + proposals(request: QueryProposalsRequest): Promise; + vote(request: QueryVoteRequest): Promise; + votes(request: QueryVotesRequest): Promise; + params(request: QueryParamsRequest): Promise; + deposit(request: QueryDepositRequest): Promise; + deposits(request: QueryDepositsRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..ddecae75 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js @@ -0,0 +1,92 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request) { + const data = query_1.QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); + return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); + } + proposals(request) { + const data = query_1.QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); + return promise.then(data => query_1.QueryProposalsResponse.decode(new binary_1.BinaryReader(data))); + } + vote(request) { + const data = query_1.QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); + return promise.then(data => query_1.QueryVoteResponse.decode(new binary_1.BinaryReader(data))); + } + votes(request) { + const data = query_1.QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); + return promise.then(data => query_1.QueryVotesResponse.decode(new binary_1.BinaryReader(data))); + } + params(request) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + deposit(request) { + const data = query_1.QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); + return promise.then(data => query_1.QueryDepositResponse.decode(new binary_1.BinaryReader(data))); + } + deposits(request) { + const data = query_1.QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); + return promise.then(data => query_1.QueryDepositsResponse.decode(new binary_1.BinaryReader(data))); + } + tallyResult(request) { + const data = query_1.QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); + return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request) { + return queryService.proposal(request); + }, + proposals(request) { + return queryService.proposals(request); + }, + vote(request) { + return queryService.vote(request); + }, + votes(request) { + return queryService.votes(request); + }, + params(request) { + return queryService.params(request); + }, + deposit(request) { + return queryService.deposit(request); + }, + deposits(request) { + return queryService.deposits(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..c27154bf --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts @@ -0,0 +1,23 @@ +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export declare const AminoConverter: { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; + }; + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: string; + toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; + fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; + }; + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: string; + toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; + fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; + }; + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: string; + toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; + fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; + }; +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js new file mode 100644 index 00000000..70562627 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/MsgSubmitProposal", + toAmino: tx_1.MsgSubmitProposal.toAmino, + fromAmino: tx_1.MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: "cosmos-sdk/MsgVote", + toAmino: tx_1.MsgVote.toAmino, + fromAmino: tx_1.MsgVote.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/MsgVoteWeighted", + toAmino: tx_1.MsgVoteWeighted.toAmino, + fromAmino: tx_1.MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: "cosmos-sdk/MsgDeposit", + toAmino: tx_1.MsgDeposit.toAmino, + fromAmino: tx_1.MsgDeposit.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts new file mode 100644 index 00000000..d05b9763 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts @@ -0,0 +1,322 @@ +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposal { + content?: TextProposal | Any | undefined; + initialDeposit: Coin[]; + proposer: string; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; + value: Uint8Array; +} +export type MsgSubmitProposalEncoded = Omit & { + content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalAmino { + content?: AnyAmino; + initial_deposit?: CoinAmino[]; + proposer?: string; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalSDKType { + content?: TextProposalSDKType | AnySDKType | undefined; + initial_deposit: CoinSDKType[]; + proposer: string; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + proposal_id: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVote { + proposalId: bigint; + voter: string; + option: VoteOption; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVote"; + value: Uint8Array; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteAmino { + proposal_id?: string; + voter?: string; + option?: VoteOption; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponse { +} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseAmino { +} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType { +} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeighted { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; +} +export interface MsgVoteWeightedProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; + value: Uint8Array; +} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedAmino { + proposal_id: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; +} +export interface MsgVoteWeightedAminoMsg { + type: "cosmos-sdk/MsgVoteWeighted"; + value: MsgVoteWeightedAmino; +} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponse { +} +export interface MsgVoteWeightedResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; + value: Uint8Array; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponseAmino { +} +export interface MsgVoteWeightedResponseAminoMsg { + type: "cosmos-sdk/MsgVoteWeightedResponse"; + value: MsgVoteWeightedResponseAmino; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponseSDKType { +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDeposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface MsgDepositProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; + value: Uint8Array; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositAmino { + proposal_id: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface MsgDepositAminoMsg { + type: "cosmos-sdk/MsgDeposit"; + value: MsgDepositAmino; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponse { +} +export interface MsgDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; + value: Uint8Array; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseAmino { +} +export interface MsgDepositResponseAminoMsg { + type: "cosmos-sdk/MsgDepositResponse"; + value: MsgDepositResponseAmino; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseSDKType { +} +export declare const MsgSubmitProposal: { + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; + fromPartial(object: Partial): MsgSubmitProposal; + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; + toProto(message: MsgSubmitProposal): Uint8Array; + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; +}; +export declare const MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; + fromPartial(object: Partial): MsgSubmitProposalResponse; + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; + toProto(message: MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; +}; +export declare const MsgVote: { + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; + fromPartial(object: Partial): MsgVote; + fromAmino(object: MsgVoteAmino): MsgVote; + toAmino(message: MsgVote): MsgVoteAmino; + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; + toAminoMsg(message: MsgVote): MsgVoteAminoMsg; + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; + toProto(message: MsgVote): Uint8Array; + toProtoMsg(message: MsgVote): MsgVoteProtoMsg; +}; +export declare const MsgVoteResponse: { + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; + fromPartial(_: Partial): MsgVoteResponse; + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; + toProto(message: MsgVoteResponse): Uint8Array; + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; +}; +export declare const MsgVoteWeighted: { + typeUrl: string; + encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; + fromPartial(object: Partial): MsgVoteWeighted; + fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; + toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; + fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; + toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; + fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; + toProto(message: MsgVoteWeighted): Uint8Array; + toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; +}; +export declare const MsgVoteWeightedResponse: { + typeUrl: string; + encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; + fromPartial(_: Partial): MsgVoteWeightedResponse; + fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; + toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; + fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; + toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; + fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; + toProto(message: MsgVoteWeightedResponse): Uint8Array; + toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; +}; +export declare const MsgDeposit: { + typeUrl: string; + encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; + fromPartial(object: Partial): MsgDeposit; + fromAmino(object: MsgDepositAmino): MsgDeposit; + toAmino(message: MsgDeposit): MsgDepositAmino; + fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; + toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; + fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; + toProto(message: MsgDeposit): Uint8Array; + toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; +}; +export declare const MsgDepositResponse: { + typeUrl: string; + encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; + fromPartial(_: Partial): MsgDepositResponse; + fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; + toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; + fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; + toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; + fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; + toProto(message: MsgDepositResponse): Uint8Array; + toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; +}; +export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; +export declare const Content_FromAmino: (content: AnyAmino) => Any; +export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.js b/packages/api/dist/cosmos/gov/v1beta1/tx.js new file mode 100644 index 00000000..b808544d --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.js @@ -0,0 +1,661 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const coin_1 = require("../../base/v1beta1/coin"); +const gov_1 = require("./gov"); +const binary_1 = require("../../../binary"); +function createBaseMsgSubmitProposal() { + return { + content: undefined, + initialDeposit: [], + proposer: "" + }; +} +exports.MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.content !== undefined) { + any_1.Any.encode(message.content, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = (0, exports.Content_InterfaceDecoder)(reader); + break; + case 2: + message.initialDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; + message.initialDeposit = object.initialDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + if (object.content !== undefined && object.content !== null) { + message.content = (0, exports.Content_FromAmino)(object.content); + } + message.initialDeposit = object.initial_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposal", + value: exports.MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: exports.MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +exports.MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0 + }; +} +exports.MsgVote = { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVote", + value: exports.MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVote.decode(message.value); + }, + toProto(message) { + return exports.MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: exports.MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +exports.MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: exports.MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + value: exports.MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted() { + return { + proposalId: BigInt(0), + voter: "", + options: [] + }; +} +exports.MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + gov_1.WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(gov_1.WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? gov_1.WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteWeighted", + value: exports.MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteWeighted.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: exports.MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse() { + return {}; +} +exports.MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteWeightedResponse", + value: exports.MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + value: exports.MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +exports.MsgDeposit = { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDeposit", + value: exports.MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDeposit.decode(message.value); + }, + toProto(message) { + return exports.MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: exports.MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse() { + return {}; +} +exports.MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDepositResponse", + value: exports.MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDepositResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + value: exports.MsgDepositResponse.encode(message).finish() + }; + } +}; +const Content_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return gov_1.TextProposal.decode(data.value); + default: + return data; + } +}; +exports.Content_InterfaceDecoder = Content_InterfaceDecoder; +const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: gov_1.TextProposal.encode(gov_1.TextProposal.fromPartial(gov_1.TextProposal.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.Content_FromAmino = Content_FromAmino; +const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: gov_1.TextProposal.toAmino(gov_1.TextProposal.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..9f199486 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts @@ -0,0 +1,60 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: Uint8Array; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: MsgVoteWeighted; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: MsgDeposit; + }; + }; + fromPartial: { + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + voteWeighted(value: MsgVoteWeighted): { + typeUrl: string; + value: MsgVoteWeighted; + }; + deposit(value: MsgDeposit): { + typeUrl: string; + value: MsgDeposit; + }; + }; +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js new file mode 100644 index 00000000..c71ce516 --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.gov.v1beta1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", tx_1.MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", tx_1.MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", tx_1.MsgDeposit]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: tx_1.MsgVote.encode(value).finish() + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: tx_1.MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: tx_1.MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: tx_1.MsgVote.fromPartial(value) + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: tx_1.MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: tx_1.MsgDeposit.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..0fc403bc --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,25 @@ +import { Rpc } from "../../../helpers"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ + vote(request: MsgVote): Promise; + /** + * VoteWeighted defines a method to add a weighted vote on a specific proposal. + * + * Since: cosmos-sdk 0.43 + */ + voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ + deposit(request: MsgDeposit): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + submitProposal(request: MsgSubmitProposal): Promise; + vote(request: MsgVote): Promise; + voteWeighted(request: MsgVoteWeighted): Promise; + deposit(request: MsgDeposit): Promise; +} diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..53f7930b --- /dev/null +++ b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request) { + const data = tx_1.MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); + return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); + } + vote(request) { + const data = tx_1.MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); + return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); + } + voteWeighted(request) { + const data = tx_1.MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); + return promise.then(data => tx_1.MsgVoteWeightedResponse.decode(new binary_1.BinaryReader(data))); + } + deposit(request) { + const data = tx_1.MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); + return promise.then(data => tx_1.MsgDepositResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/group/v1/events.d.ts b/packages/api/dist/cosmos/group/v1/events.d.ts new file mode 100644 index 00000000..a9478ba7 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/events.d.ts @@ -0,0 +1,332 @@ +import { ProposalExecutorResult } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface EventCreateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventCreateGroup"; + value: Uint8Array; +} +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface EventCreateGroupAminoMsg { + type: "cosmos-sdk/EventCreateGroup"; + value: EventCreateGroupAmino; +} +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroupSDKType { + group_id: bigint; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface EventUpdateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventUpdateGroup"; + value: Uint8Array; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface EventUpdateGroupAminoMsg { + type: "cosmos-sdk/EventUpdateGroup"; + value: EventUpdateGroupAmino; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroupSDKType { + group_id: bigint; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicy { + /** address is the account address of the group policy. */ + address: string; +} +export interface EventCreateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; + value: Uint8Array; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicyAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface EventCreateGroupPolicyAminoMsg { + type: "cosmos-sdk/EventCreateGroupPolicy"; + value: EventCreateGroupPolicyAmino; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicySDKType { + address: string; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicy { + /** address is the account address of the group policy. */ + address: string; +} +export interface EventUpdateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; + value: Uint8Array; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicyAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface EventUpdateGroupPolicyAminoMsg { + type: "cosmos-sdk/EventUpdateGroupPolicy"; + value: EventUpdateGroupPolicyAmino; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicySDKType { + address: string; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposal { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventSubmitProposalProtoMsg { + typeUrl: "/cosmos.group.v1.EventSubmitProposal"; + value: Uint8Array; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposalAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventSubmitProposalAminoMsg { + type: "cosmos-sdk/EventSubmitProposal"; + value: EventSubmitProposalAmino; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposalSDKType { + proposal_id: bigint; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposal { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventWithdrawProposalProtoMsg { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; + value: Uint8Array; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposalAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventWithdrawProposalAminoMsg { + type: "cosmos-sdk/EventWithdrawProposal"; + value: EventWithdrawProposalAmino; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposalSDKType { + proposal_id: bigint; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVote { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventVoteProtoMsg { + typeUrl: "/cosmos.group.v1.EventVote"; + value: Uint8Array; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVoteAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventVoteAminoMsg { + type: "cosmos-sdk/EventVote"; + value: EventVoteAmino; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVoteSDKType { + proposal_id: bigint; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExec { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; + /** result is the proposal execution result. */ + result: ProposalExecutorResult; + /** logs contains error logs in case the execution result is FAILURE. */ + logs: string; +} +export interface EventExecProtoMsg { + typeUrl: "/cosmos.group.v1.EventExec"; + value: Uint8Array; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExecAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; + /** result is the proposal execution result. */ + result?: ProposalExecutorResult; + /** logs contains error logs in case the execution result is FAILURE. */ + logs?: string; +} +export interface EventExecAminoMsg { + type: "cosmos-sdk/EventExec"; + value: EventExecAmino; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExecSDKType { + proposal_id: bigint; + result: ProposalExecutorResult; + logs: string; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** address is the account address of the group member. */ + address: string; +} +export interface EventLeaveGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventLeaveGroup"; + value: Uint8Array; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** address is the account address of the group member. */ + address?: string; +} +export interface EventLeaveGroupAminoMsg { + type: "cosmos-sdk/EventLeaveGroup"; + value: EventLeaveGroupAmino; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroupSDKType { + group_id: bigint; + address: string; +} +export declare const EventCreateGroup: { + typeUrl: string; + encode(message: EventCreateGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup; + fromPartial(object: Partial): EventCreateGroup; + fromAmino(object: EventCreateGroupAmino): EventCreateGroup; + toAmino(message: EventCreateGroup): EventCreateGroupAmino; + fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup; + toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg; + fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup; + toProto(message: EventCreateGroup): Uint8Array; + toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg; +}; +export declare const EventUpdateGroup: { + typeUrl: string; + encode(message: EventUpdateGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup; + fromPartial(object: Partial): EventUpdateGroup; + fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup; + toAmino(message: EventUpdateGroup): EventUpdateGroupAmino; + fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup; + toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg; + fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup; + toProto(message: EventUpdateGroup): Uint8Array; + toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg; +}; +export declare const EventCreateGroupPolicy: { + typeUrl: string; + encode(message: EventCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy; + fromPartial(object: Partial): EventCreateGroupPolicy; + fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy; + toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino; + fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy; + toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg; + fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy; + toProto(message: EventCreateGroupPolicy): Uint8Array; + toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg; +}; +export declare const EventUpdateGroupPolicy: { + typeUrl: string; + encode(message: EventUpdateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy; + fromPartial(object: Partial): EventUpdateGroupPolicy; + fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy; + toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino; + fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy; + toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg; + fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy; + toProto(message: EventUpdateGroupPolicy): Uint8Array; + toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg; +}; +export declare const EventSubmitProposal: { + typeUrl: string; + encode(message: EventSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal; + fromPartial(object: Partial): EventSubmitProposal; + fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal; + toAmino(message: EventSubmitProposal): EventSubmitProposalAmino; + fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal; + toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg; + fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal; + toProto(message: EventSubmitProposal): Uint8Array; + toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg; +}; +export declare const EventWithdrawProposal: { + typeUrl: string; + encode(message: EventWithdrawProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal; + fromPartial(object: Partial): EventWithdrawProposal; + fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal; + toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino; + fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal; + toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg; + fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal; + toProto(message: EventWithdrawProposal): Uint8Array; + toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg; +}; +export declare const EventVote: { + typeUrl: string; + encode(message: EventVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventVote; + fromPartial(object: Partial): EventVote; + fromAmino(object: EventVoteAmino): EventVote; + toAmino(message: EventVote): EventVoteAmino; + fromAminoMsg(object: EventVoteAminoMsg): EventVote; + toAminoMsg(message: EventVote): EventVoteAminoMsg; + fromProtoMsg(message: EventVoteProtoMsg): EventVote; + toProto(message: EventVote): Uint8Array; + toProtoMsg(message: EventVote): EventVoteProtoMsg; +}; +export declare const EventExec: { + typeUrl: string; + encode(message: EventExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventExec; + fromPartial(object: Partial): EventExec; + fromAmino(object: EventExecAmino): EventExec; + toAmino(message: EventExec): EventExecAmino; + fromAminoMsg(object: EventExecAminoMsg): EventExec; + toAminoMsg(message: EventExec): EventExecAminoMsg; + fromProtoMsg(message: EventExecProtoMsg): EventExec; + toProto(message: EventExec): Uint8Array; + toProtoMsg(message: EventExec): EventExecProtoMsg; +}; +export declare const EventLeaveGroup: { + typeUrl: string; + encode(message: EventLeaveGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup; + fromPartial(object: Partial): EventLeaveGroup; + fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup; + toAmino(message: EventLeaveGroup): EventLeaveGroupAmino; + fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup; + toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg; + fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup; + toProto(message: EventLeaveGroup): Uint8Array; + toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg; +}; diff --git a/packages/api/dist/cosmos/group/v1/events.js b/packages/api/dist/cosmos/group/v1/events.js new file mode 100644 index 00000000..fe6bdf8f --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/events.js @@ -0,0 +1,661 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = void 0; +const binary_1 = require("../../../binary"); +function createBaseEventCreateGroup() { + return { + groupId: BigInt(0) + }; +} +exports.EventCreateGroup = { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventCreateGroup", + value: exports.EventCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventCreateGroup.decode(message.value); + }, + toProto(message) { + return exports.EventCreateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + value: exports.EventCreateGroup.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroup() { + return { + groupId: BigInt(0) + }; +} +exports.EventUpdateGroup = { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventUpdateGroup", + value: exports.EventUpdateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventUpdateGroup.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + value: exports.EventUpdateGroup.encode(message).finish() + }; + } +}; +function createBaseEventCreateGroupPolicy() { + return { + address: "" + }; +} +exports.EventCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventCreateGroupPolicy", + value: exports.EventCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventCreateGroupPolicy.decode(message.value); + }, + toProto(message) { + return exports.EventCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + value: exports.EventCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroupPolicy() { + return { + address: "" + }; +} +exports.EventUpdateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventUpdateGroupPolicy", + value: exports.EventUpdateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventUpdateGroupPolicy.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + value: exports.EventUpdateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventSubmitProposal() { + return { + proposalId: BigInt(0) + }; +} +exports.EventSubmitProposal = { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSubmitProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventSubmitProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventSubmitProposal", + value: exports.EventSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventSubmitProposal.decode(message.value); + }, + toProto(message) { + return exports.EventSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + value: exports.EventSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseEventWithdrawProposal() { + return { + proposalId: BigInt(0) + }; +} +exports.EventWithdrawProposal = { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventWithdrawProposal", + value: exports.EventWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventWithdrawProposal.decode(message.value); + }, + toProto(message) { + return exports.EventWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + value: exports.EventWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseEventVote() { + return { + proposalId: BigInt(0) + }; +} +exports.EventVote = { + typeUrl: "/cosmos.group.v1.EventVote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventVote", + value: exports.EventVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventVote.decode(message.value); + }, + toProto(message) { + return exports.EventVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventVote", + value: exports.EventVote.encode(message).finish() + }; + } +}; +function createBaseEventExec() { + return { + proposalId: BigInt(0), + result: 0, + logs: "" + }; +} +exports.EventExec = { + typeUrl: "/cosmos.group.v1.EventExec", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + if (message.logs !== "") { + writer.uint32(26).string(message.logs); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.result = reader.int32(); + break; + case 3: + message.logs = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.result = object.result ?? 0; + message.logs = object.logs ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + if (object.logs !== undefined && object.logs !== null) { + message.logs = object.logs; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.result = message.result === 0 ? undefined : message.result; + obj.logs = message.logs === "" ? undefined : message.logs; + return obj; + }, + fromAminoMsg(object) { + return exports.EventExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventExec", + value: exports.EventExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventExec.decode(message.value); + }, + toProto(message) { + return exports.EventExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventExec", + value: exports.EventExec.encode(message).finish() + }; + } +}; +function createBaseEventLeaveGroup() { + return { + groupId: BigInt(0), + address: "" + }; +} +exports.EventLeaveGroup = { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventLeaveGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventLeaveGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.EventLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventLeaveGroup", + value: exports.EventLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.EventLeaveGroup.decode(message.value); + }, + toProto(message) { + return exports.EventLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + value: exports.EventLeaveGroup.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/group/v1/genesis.d.ts b/packages/api/dist/cosmos/group/v1/genesis.d.ts new file mode 100644 index 00000000..3e1b9124 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/genesis.d.ts @@ -0,0 +1,90 @@ +import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the group module's genesis state. */ +export interface GenesisState { + /** + * group_seq is the group table orm.Sequence, + * it is used to get the next group ID. + */ + groupSeq: bigint; + /** groups is the list of groups info. */ + groups: GroupInfo[]; + /** group_members is the list of groups members. */ + groupMembers: GroupMember[]; + /** + * group_policy_seq is the group policy table orm.Sequence, + * it is used to generate the next group policy account address. + */ + groupPolicySeq: bigint; + /** group_policies is the list of group policies info. */ + groupPolicies: GroupPolicyInfo[]; + /** + * proposal_seq is the proposal table orm.Sequence, + * it is used to get the next proposal ID. + */ + proposalSeq: bigint; + /** proposals is the list of proposals. */ + proposals: Proposal[]; + /** votes is the list of votes. */ + votes: Vote[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.group.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the group module's genesis state. */ +export interface GenesisStateAmino { + /** + * group_seq is the group table orm.Sequence, + * it is used to get the next group ID. + */ + group_seq?: string; + /** groups is the list of groups info. */ + groups?: GroupInfoAmino[]; + /** group_members is the list of groups members. */ + group_members?: GroupMemberAmino[]; + /** + * group_policy_seq is the group policy table orm.Sequence, + * it is used to generate the next group policy account address. + */ + group_policy_seq?: string; + /** group_policies is the list of group policies info. */ + group_policies?: GroupPolicyInfoAmino[]; + /** + * proposal_seq is the proposal table orm.Sequence, + * it is used to get the next proposal ID. + */ + proposal_seq?: string; + /** proposals is the list of proposals. */ + proposals?: ProposalAmino[]; + /** votes is the list of votes. */ + votes?: VoteAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the group module's genesis state. */ +export interface GenesisStateSDKType { + group_seq: bigint; + groups: GroupInfoSDKType[]; + group_members: GroupMemberSDKType[]; + group_policy_seq: bigint; + group_policies: GroupPolicyInfoSDKType[]; + proposal_seq: bigint; + proposals: ProposalSDKType[]; + votes: VoteSDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/group/v1/genesis.js b/packages/api/dist/cosmos/group/v1/genesis.js new file mode 100644 index 00000000..be408751 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/genesis.js @@ -0,0 +1,174 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + groupSeq: BigInt(0), + groups: [], + groupMembers: [], + groupPolicySeq: BigInt(0), + groupPolicies: [], + proposalSeq: BigInt(0), + proposals: [], + votes: [] + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.group.v1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupSeq !== BigInt(0)) { + writer.uint32(8).uint64(message.groupSeq); + } + for (const v of message.groups) { + types_1.GroupInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.groupMembers) { + types_1.GroupMember.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.groupPolicySeq !== BigInt(0)) { + writer.uint32(32).uint64(message.groupPolicySeq); + } + for (const v of message.groupPolicies) { + types_1.GroupPolicyInfo.encode(v, writer.uint32(42).fork()).ldelim(); + } + if (message.proposalSeq !== BigInt(0)) { + writer.uint32(48).uint64(message.proposalSeq); + } + for (const v of message.proposals) { + types_1.Proposal.encode(v, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.votes) { + types_1.Vote.encode(v, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupSeq = reader.uint64(); + break; + case 2: + message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); + break; + case 3: + message.groupMembers.push(types_1.GroupMember.decode(reader, reader.uint32())); + break; + case 4: + message.groupPolicySeq = reader.uint64(); + break; + case 5: + message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 6: + message.proposalSeq = reader.uint64(); + break; + case 7: + message.proposals.push(types_1.Proposal.decode(reader, reader.uint32())); + break; + case 8: + message.votes.push(types_1.Vote.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); + message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; + message.groupMembers = object.groupMembers?.map(e => types_1.GroupMember.fromPartial(e)) || []; + message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); + message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; + message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); + message.proposals = object.proposals?.map(e => types_1.Proposal.fromPartial(e)) || []; + message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.group_seq !== undefined && object.group_seq !== null) { + message.groupSeq = BigInt(object.group_seq); + } + message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; + message.groupMembers = object.group_members?.map(e => types_1.GroupMember.fromAmino(e)) || []; + if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { + message.groupPolicySeq = BigInt(object.group_policy_seq); + } + message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; + if (object.proposal_seq !== undefined && object.proposal_seq !== null) { + message.proposalSeq = BigInt(object.proposal_seq); + } + message.proposals = object.proposals?.map(e => types_1.Proposal.fromAmino(e)) || []; + message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; + if (message.groups) { + obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + if (message.groupMembers) { + obj.group_members = message.groupMembers.map(e => e ? types_1.GroupMember.toAmino(e) : undefined); + } + else { + obj.group_members = message.groupMembers; + } + obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? types_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/group/v1/query.d.ts b/packages/api/dist/cosmos/group/v1/query.d.ts new file mode 100644 index 00000000..3caeade1 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.d.ts @@ -0,0 +1,998 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequest { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface QueryGroupInfoRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; + value: Uint8Array; +} +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequestAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface QueryGroupInfoRequestAminoMsg { + type: "cosmos-sdk/QueryGroupInfoRequest"; + value: QueryGroupInfoRequestAmino; +} +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequestSDKType { + group_id: bigint; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponse { + /** info is the GroupInfo for the group. */ + info?: GroupInfo; +} +export interface QueryGroupInfoResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; + value: Uint8Array; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponseAmino { + /** info is the GroupInfo for the group. */ + info?: GroupInfoAmino; +} +export interface QueryGroupInfoResponseAminoMsg { + type: "cosmos-sdk/QueryGroupInfoResponse"; + value: QueryGroupInfoResponseAmino; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponseSDKType { + info?: GroupInfoSDKType; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequest { + /** address is the account address of the group policy. */ + address: string; +} +export interface QueryGroupPolicyInfoRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; + value: Uint8Array; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequestAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface QueryGroupPolicyInfoRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; + value: QueryGroupPolicyInfoRequestAmino; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequestSDKType { + address: string; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponse { + /** info is the GroupPolicyInfo for the group policy. */ + info?: GroupPolicyInfo; +} +export interface QueryGroupPolicyInfoResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; + value: Uint8Array; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponseAmino { + /** info is the GroupPolicyInfo for the group policy. */ + info?: GroupPolicyInfoAmino; +} +export interface QueryGroupPolicyInfoResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPolicyInfoResponse"; + value: QueryGroupPolicyInfoResponseAmino; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponseSDKType { + info?: GroupPolicyInfoSDKType; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequest { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupMembersRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; + value: Uint8Array; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequestAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupMembersRequestAminoMsg { + type: "cosmos-sdk/QueryGroupMembersRequest"; + value: QueryGroupMembersRequestAmino; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequestSDKType { + group_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponse { + /** members are the members of the group with given group_id. */ + members: GroupMember[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupMembersResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; + value: Uint8Array; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponseAmino { + /** members are the members of the group with given group_id. */ + members?: GroupMemberAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupMembersResponseAminoMsg { + type: "cosmos-sdk/QueryGroupMembersResponse"; + value: QueryGroupMembersResponseAmino; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponseSDKType { + members: GroupMemberSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequest { + /** admin is the account address of a group's admin. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupsByAdminRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; + value: Uint8Array; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequestAmino { + /** admin is the account address of a group's admin. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupsByAdminRequestAminoMsg { + type: "cosmos-sdk/QueryGroupsByAdminRequest"; + value: QueryGroupsByAdminRequestAmino; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponse { + /** groups are the groups info with the provided admin. */ + groups: GroupInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupsByAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; + value: Uint8Array; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponseAmino { + /** groups are the groups info with the provided admin. */ + groups?: GroupInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupsByAdminResponseAminoMsg { + type: "cosmos-sdk/QueryGroupsByAdminResponse"; + value: QueryGroupsByAdminResponseAmino; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponseSDKType { + groups: GroupInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequest { + /** group_id is the unique ID of the group policy's group. */ + groupId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupPoliciesByGroupRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; + value: Uint8Array; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequestAmino { + /** group_id is the unique ID of the group policy's group. */ + group_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupPoliciesByGroupRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest"; + value: QueryGroupPoliciesByGroupRequestAmino; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequestSDKType { + group_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponse { + /** group_policies are the group policies info associated with the provided group. */ + groupPolicies: GroupPolicyInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupPoliciesByGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; + value: Uint8Array; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponseAmino { + /** group_policies are the group policies info associated with the provided group. */ + group_policies?: GroupPolicyInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupPoliciesByGroupResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse"; + value: QueryGroupPoliciesByGroupResponseAmino; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponseSDKType { + group_policies: GroupPolicyInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequest { + /** admin is the admin address of the group policy. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupPoliciesByAdminRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; + value: Uint8Array; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequestAmino { + /** admin is the admin address of the group policy. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupPoliciesByAdminRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest"; + value: QueryGroupPoliciesByAdminRequestAmino; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponse { + /** group_policies are the group policies info with provided admin. */ + groupPolicies: GroupPolicyInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupPoliciesByAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; + value: Uint8Array; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponseAmino { + /** group_policies are the group policies info with provided admin. */ + group_policies?: GroupPolicyInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupPoliciesByAdminResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse"; + value: QueryGroupPoliciesByAdminResponseAmino; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponseSDKType { + group_policies: GroupPolicyInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponse { + /** proposal is the proposal info. */ + proposal?: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponseAmino { + /** proposal is the proposal info. */ + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponseSDKType { + proposal?: ProposalSDKType; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequest { + /** address is the account address of the group policy related to proposals. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsByGroupPolicyRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; + value: Uint8Array; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequestAmino { + /** address is the account address of the group policy related to proposals. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsByGroupPolicyRequestAminoMsg { + type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest"; + value: QueryProposalsByGroupPolicyRequestAmino; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponse { + /** proposals are the proposals with given group policy. */ + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsByGroupPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; + value: Uint8Array; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponseAmino { + /** proposals are the proposals with given group policy. */ + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsByGroupPolicyResponseAminoMsg { + type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse"; + value: QueryProposalsByGroupPolicyResponseAmino; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; + /** voter is a proposal voter account address. */ + voter: string; +} +export interface QueryVoteByProposalVoterRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; + value: Uint8Array; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; + /** voter is a proposal voter account address. */ + voter?: string; +} +export interface QueryVoteByProposalVoterRequestAminoMsg { + type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; + value: QueryVoteByProposalVoterRequestAmino; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponse { + /** vote is the vote with given proposal_id and voter. */ + vote?: Vote; +} +export interface QueryVoteByProposalVoterResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; + value: Uint8Array; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponseAmino { + /** vote is the vote with given proposal_id and voter. */ + vote?: VoteAmino; +} +export interface QueryVoteByProposalVoterResponseAminoMsg { + type: "cosmos-sdk/QueryVoteByProposalVoterResponse"; + value: QueryVoteByProposalVoterResponseAmino; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponseSDKType { + vote?: VoteSDKType; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesByProposalRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; + value: Uint8Array; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesByProposalRequestAminoMsg { + type: "cosmos-sdk/QueryVotesByProposalRequest"; + value: QueryVotesByProposalRequestAmino; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponse { + /** votes are the list of votes for given proposal_id. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesByProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; + value: Uint8Array; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponseAmino { + /** votes are the list of votes for given proposal_id. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesByProposalResponseAminoMsg { + type: "cosmos-sdk/QueryVotesByProposalResponse"; + value: QueryVotesByProposalResponseAmino; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequest { + /** voter is a proposal voter account address. */ + voter: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesByVoterRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; + value: Uint8Array; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequestAmino { + /** voter is a proposal voter account address. */ + voter?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesByVoterRequestAminoMsg { + type: "cosmos-sdk/QueryVotesByVoterRequest"; + value: QueryVotesByVoterRequestAmino; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequestSDKType { + voter: string; + pagination?: PageRequestSDKType; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponse { + /** votes are the list of votes by given voter. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesByVoterResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; + value: Uint8Array; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponseAmino { + /** votes are the list of votes by given voter. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesByVoterResponseAminoMsg { + type: "cosmos-sdk/QueryVotesByVoterResponse"; + value: QueryVotesByVoterResponseAmino; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequest { + /** address is the group member address. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupsByMemberRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; + value: Uint8Array; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequestAmino { + /** address is the group member address. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupsByMemberRequestAminoMsg { + type: "cosmos-sdk/QueryGroupsByMemberRequest"; + value: QueryGroupsByMemberRequestAmino; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponse { + /** groups are the groups info with the provided group member. */ + groups: GroupInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupsByMemberResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; + value: Uint8Array; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponseAmino { + /** groups are the groups info with the provided group member. */ + groups?: GroupInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupsByMemberResponseAminoMsg { + type: "cosmos-sdk/QueryGroupsByMemberResponse"; + value: QueryGroupsByMemberResponseAmino; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponseSDKType { + groups: GroupInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequest { + /** proposal_id is the unique id of a proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id is the unique id of a proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponseSDKType { + tally: TallyResultSDKType; +} +export declare const QueryGroupInfoRequest: { + typeUrl: string; + encode(message: QueryGroupInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest; + fromPartial(object: Partial): QueryGroupInfoRequest; + fromAmino(object: QueryGroupInfoRequestAmino): QueryGroupInfoRequest; + toAmino(message: QueryGroupInfoRequest): QueryGroupInfoRequestAmino; + fromAminoMsg(object: QueryGroupInfoRequestAminoMsg): QueryGroupInfoRequest; + toAminoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestAminoMsg; + fromProtoMsg(message: QueryGroupInfoRequestProtoMsg): QueryGroupInfoRequest; + toProto(message: QueryGroupInfoRequest): Uint8Array; + toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg; +}; +export declare const QueryGroupInfoResponse: { + typeUrl: string; + encode(message: QueryGroupInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse; + fromPartial(object: Partial): QueryGroupInfoResponse; + fromAmino(object: QueryGroupInfoResponseAmino): QueryGroupInfoResponse; + toAmino(message: QueryGroupInfoResponse): QueryGroupInfoResponseAmino; + fromAminoMsg(object: QueryGroupInfoResponseAminoMsg): QueryGroupInfoResponse; + toAminoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseAminoMsg; + fromProtoMsg(message: QueryGroupInfoResponseProtoMsg): QueryGroupInfoResponse; + toProto(message: QueryGroupInfoResponse): Uint8Array; + toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg; +}; +export declare const QueryGroupPolicyInfoRequest: { + typeUrl: string; + encode(message: QueryGroupPolicyInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; + fromPartial(object: Partial): QueryGroupPolicyInfoRequest; + fromAmino(object: QueryGroupPolicyInfoRequestAmino): QueryGroupPolicyInfoRequest; + toAmino(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAmino; + fromAminoMsg(object: QueryGroupPolicyInfoRequestAminoMsg): QueryGroupPolicyInfoRequest; + toAminoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAminoMsg; + fromProtoMsg(message: QueryGroupPolicyInfoRequestProtoMsg): QueryGroupPolicyInfoRequest; + toProto(message: QueryGroupPolicyInfoRequest): Uint8Array; + toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg; +}; +export declare const QueryGroupPolicyInfoResponse: { + typeUrl: string; + encode(message: QueryGroupPolicyInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; + fromPartial(object: Partial): QueryGroupPolicyInfoResponse; + fromAmino(object: QueryGroupPolicyInfoResponseAmino): QueryGroupPolicyInfoResponse; + toAmino(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAmino; + fromAminoMsg(object: QueryGroupPolicyInfoResponseAminoMsg): QueryGroupPolicyInfoResponse; + toAminoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAminoMsg; + fromProtoMsg(message: QueryGroupPolicyInfoResponseProtoMsg): QueryGroupPolicyInfoResponse; + toProto(message: QueryGroupPolicyInfoResponse): Uint8Array; + toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg; +}; +export declare const QueryGroupMembersRequest: { + typeUrl: string; + encode(message: QueryGroupMembersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest; + fromPartial(object: Partial): QueryGroupMembersRequest; + fromAmino(object: QueryGroupMembersRequestAmino): QueryGroupMembersRequest; + toAmino(message: QueryGroupMembersRequest): QueryGroupMembersRequestAmino; + fromAminoMsg(object: QueryGroupMembersRequestAminoMsg): QueryGroupMembersRequest; + toAminoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestAminoMsg; + fromProtoMsg(message: QueryGroupMembersRequestProtoMsg): QueryGroupMembersRequest; + toProto(message: QueryGroupMembersRequest): Uint8Array; + toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg; +}; +export declare const QueryGroupMembersResponse: { + typeUrl: string; + encode(message: QueryGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse; + fromPartial(object: Partial): QueryGroupMembersResponse; + fromAmino(object: QueryGroupMembersResponseAmino): QueryGroupMembersResponse; + toAmino(message: QueryGroupMembersResponse): QueryGroupMembersResponseAmino; + fromAminoMsg(object: QueryGroupMembersResponseAminoMsg): QueryGroupMembersResponse; + toAminoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseAminoMsg; + fromProtoMsg(message: QueryGroupMembersResponseProtoMsg): QueryGroupMembersResponse; + toProto(message: QueryGroupMembersResponse): Uint8Array; + toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg; +}; +export declare const QueryGroupsByAdminRequest: { + typeUrl: string; + encode(message: QueryGroupsByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest; + fromPartial(object: Partial): QueryGroupsByAdminRequest; + fromAmino(object: QueryGroupsByAdminRequestAmino): QueryGroupsByAdminRequest; + toAmino(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAmino; + fromAminoMsg(object: QueryGroupsByAdminRequestAminoMsg): QueryGroupsByAdminRequest; + toAminoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAminoMsg; + fromProtoMsg(message: QueryGroupsByAdminRequestProtoMsg): QueryGroupsByAdminRequest; + toProto(message: QueryGroupsByAdminRequest): Uint8Array; + toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg; +}; +export declare const QueryGroupsByAdminResponse: { + typeUrl: string; + encode(message: QueryGroupsByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse; + fromPartial(object: Partial): QueryGroupsByAdminResponse; + fromAmino(object: QueryGroupsByAdminResponseAmino): QueryGroupsByAdminResponse; + toAmino(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAmino; + fromAminoMsg(object: QueryGroupsByAdminResponseAminoMsg): QueryGroupsByAdminResponse; + toAminoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAminoMsg; + fromProtoMsg(message: QueryGroupsByAdminResponseProtoMsg): QueryGroupsByAdminResponse; + toProto(message: QueryGroupsByAdminResponse): Uint8Array; + toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg; +}; +export declare const QueryGroupPoliciesByGroupRequest: { + typeUrl: string; + encode(message: QueryGroupPoliciesByGroupRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; + fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest; + fromAmino(object: QueryGroupPoliciesByGroupRequestAmino): QueryGroupPoliciesByGroupRequest; + toAmino(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAmino; + fromAminoMsg(object: QueryGroupPoliciesByGroupRequestAminoMsg): QueryGroupPoliciesByGroupRequest; + toAminoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAminoMsg; + fromProtoMsg(message: QueryGroupPoliciesByGroupRequestProtoMsg): QueryGroupPoliciesByGroupRequest; + toProto(message: QueryGroupPoliciesByGroupRequest): Uint8Array; + toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg; +}; +export declare const QueryGroupPoliciesByGroupResponse: { + typeUrl: string; + encode(message: QueryGroupPoliciesByGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; + fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse; + fromAmino(object: QueryGroupPoliciesByGroupResponseAmino): QueryGroupPoliciesByGroupResponse; + toAmino(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAmino; + fromAminoMsg(object: QueryGroupPoliciesByGroupResponseAminoMsg): QueryGroupPoliciesByGroupResponse; + toAminoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAminoMsg; + fromProtoMsg(message: QueryGroupPoliciesByGroupResponseProtoMsg): QueryGroupPoliciesByGroupResponse; + toProto(message: QueryGroupPoliciesByGroupResponse): Uint8Array; + toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg; +}; +export declare const QueryGroupPoliciesByAdminRequest: { + typeUrl: string; + encode(message: QueryGroupPoliciesByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; + fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest; + fromAmino(object: QueryGroupPoliciesByAdminRequestAmino): QueryGroupPoliciesByAdminRequest; + toAmino(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAmino; + fromAminoMsg(object: QueryGroupPoliciesByAdminRequestAminoMsg): QueryGroupPoliciesByAdminRequest; + toAminoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAminoMsg; + fromProtoMsg(message: QueryGroupPoliciesByAdminRequestProtoMsg): QueryGroupPoliciesByAdminRequest; + toProto(message: QueryGroupPoliciesByAdminRequest): Uint8Array; + toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg; +}; +export declare const QueryGroupPoliciesByAdminResponse: { + typeUrl: string; + encode(message: QueryGroupPoliciesByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; + fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse; + fromAmino(object: QueryGroupPoliciesByAdminResponseAmino): QueryGroupPoliciesByAdminResponse; + toAmino(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAmino; + fromAminoMsg(object: QueryGroupPoliciesByAdminResponseAminoMsg): QueryGroupPoliciesByAdminResponse; + toAminoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAminoMsg; + fromProtoMsg(message: QueryGroupPoliciesByAdminResponseProtoMsg): QueryGroupPoliciesByAdminResponse; + toProto(message: QueryGroupPoliciesByAdminResponse): Uint8Array; + toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg; +}; +export declare const QueryProposalRequest: { + typeUrl: string; + encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; + fromPartial(object: Partial): QueryProposalRequest; + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; + toProto(message: QueryProposalRequest): Uint8Array; + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; +}; +export declare const QueryProposalResponse: { + typeUrl: string; + encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; + fromPartial(object: Partial): QueryProposalResponse; + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; + toProto(message: QueryProposalResponse): Uint8Array; + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; +}; +export declare const QueryProposalsByGroupPolicyRequest: { + typeUrl: string; + encode(message: QueryProposalsByGroupPolicyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; + fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest; + fromAmino(object: QueryProposalsByGroupPolicyRequestAmino): QueryProposalsByGroupPolicyRequest; + toAmino(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAmino; + fromAminoMsg(object: QueryProposalsByGroupPolicyRequestAminoMsg): QueryProposalsByGroupPolicyRequest; + toAminoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAminoMsg; + fromProtoMsg(message: QueryProposalsByGroupPolicyRequestProtoMsg): QueryProposalsByGroupPolicyRequest; + toProto(message: QueryProposalsByGroupPolicyRequest): Uint8Array; + toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg; +}; +export declare const QueryProposalsByGroupPolicyResponse: { + typeUrl: string; + encode(message: QueryProposalsByGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; + fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse; + fromAmino(object: QueryProposalsByGroupPolicyResponseAmino): QueryProposalsByGroupPolicyResponse; + toAmino(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAmino; + fromAminoMsg(object: QueryProposalsByGroupPolicyResponseAminoMsg): QueryProposalsByGroupPolicyResponse; + toAminoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAminoMsg; + fromProtoMsg(message: QueryProposalsByGroupPolicyResponseProtoMsg): QueryProposalsByGroupPolicyResponse; + toProto(message: QueryProposalsByGroupPolicyResponse): Uint8Array; + toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg; +}; +export declare const QueryVoteByProposalVoterRequest: { + typeUrl: string; + encode(message: QueryVoteByProposalVoterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; + fromPartial(object: Partial): QueryVoteByProposalVoterRequest; + fromAmino(object: QueryVoteByProposalVoterRequestAmino): QueryVoteByProposalVoterRequest; + toAmino(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAmino; + fromAminoMsg(object: QueryVoteByProposalVoterRequestAminoMsg): QueryVoteByProposalVoterRequest; + toAminoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAminoMsg; + fromProtoMsg(message: QueryVoteByProposalVoterRequestProtoMsg): QueryVoteByProposalVoterRequest; + toProto(message: QueryVoteByProposalVoterRequest): Uint8Array; + toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg; +}; +export declare const QueryVoteByProposalVoterResponse: { + typeUrl: string; + encode(message: QueryVoteByProposalVoterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; + fromPartial(object: Partial): QueryVoteByProposalVoterResponse; + fromAmino(object: QueryVoteByProposalVoterResponseAmino): QueryVoteByProposalVoterResponse; + toAmino(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAmino; + fromAminoMsg(object: QueryVoteByProposalVoterResponseAminoMsg): QueryVoteByProposalVoterResponse; + toAminoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAminoMsg; + fromProtoMsg(message: QueryVoteByProposalVoterResponseProtoMsg): QueryVoteByProposalVoterResponse; + toProto(message: QueryVoteByProposalVoterResponse): Uint8Array; + toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg; +}; +export declare const QueryVotesByProposalRequest: { + typeUrl: string; + encode(message: QueryVotesByProposalRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest; + fromPartial(object: Partial): QueryVotesByProposalRequest; + fromAmino(object: QueryVotesByProposalRequestAmino): QueryVotesByProposalRequest; + toAmino(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAmino; + fromAminoMsg(object: QueryVotesByProposalRequestAminoMsg): QueryVotesByProposalRequest; + toAminoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAminoMsg; + fromProtoMsg(message: QueryVotesByProposalRequestProtoMsg): QueryVotesByProposalRequest; + toProto(message: QueryVotesByProposalRequest): Uint8Array; + toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg; +}; +export declare const QueryVotesByProposalResponse: { + typeUrl: string; + encode(message: QueryVotesByProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse; + fromPartial(object: Partial): QueryVotesByProposalResponse; + fromAmino(object: QueryVotesByProposalResponseAmino): QueryVotesByProposalResponse; + toAmino(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAmino; + fromAminoMsg(object: QueryVotesByProposalResponseAminoMsg): QueryVotesByProposalResponse; + toAminoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAminoMsg; + fromProtoMsg(message: QueryVotesByProposalResponseProtoMsg): QueryVotesByProposalResponse; + toProto(message: QueryVotesByProposalResponse): Uint8Array; + toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg; +}; +export declare const QueryVotesByVoterRequest: { + typeUrl: string; + encode(message: QueryVotesByVoterRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest; + fromPartial(object: Partial): QueryVotesByVoterRequest; + fromAmino(object: QueryVotesByVoterRequestAmino): QueryVotesByVoterRequest; + toAmino(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAmino; + fromAminoMsg(object: QueryVotesByVoterRequestAminoMsg): QueryVotesByVoterRequest; + toAminoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAminoMsg; + fromProtoMsg(message: QueryVotesByVoterRequestProtoMsg): QueryVotesByVoterRequest; + toProto(message: QueryVotesByVoterRequest): Uint8Array; + toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg; +}; +export declare const QueryVotesByVoterResponse: { + typeUrl: string; + encode(message: QueryVotesByVoterResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse; + fromPartial(object: Partial): QueryVotesByVoterResponse; + fromAmino(object: QueryVotesByVoterResponseAmino): QueryVotesByVoterResponse; + toAmino(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAmino; + fromAminoMsg(object: QueryVotesByVoterResponseAminoMsg): QueryVotesByVoterResponse; + toAminoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAminoMsg; + fromProtoMsg(message: QueryVotesByVoterResponseProtoMsg): QueryVotesByVoterResponse; + toProto(message: QueryVotesByVoterResponse): Uint8Array; + toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg; +}; +export declare const QueryGroupsByMemberRequest: { + typeUrl: string; + encode(message: QueryGroupsByMemberRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest; + fromPartial(object: Partial): QueryGroupsByMemberRequest; + fromAmino(object: QueryGroupsByMemberRequestAmino): QueryGroupsByMemberRequest; + toAmino(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAmino; + fromAminoMsg(object: QueryGroupsByMemberRequestAminoMsg): QueryGroupsByMemberRequest; + toAminoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAminoMsg; + fromProtoMsg(message: QueryGroupsByMemberRequestProtoMsg): QueryGroupsByMemberRequest; + toProto(message: QueryGroupsByMemberRequest): Uint8Array; + toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg; +}; +export declare const QueryGroupsByMemberResponse: { + typeUrl: string; + encode(message: QueryGroupsByMemberResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse; + fromPartial(object: Partial): QueryGroupsByMemberResponse; + fromAmino(object: QueryGroupsByMemberResponseAmino): QueryGroupsByMemberResponse; + toAmino(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAmino; + fromAminoMsg(object: QueryGroupsByMemberResponseAminoMsg): QueryGroupsByMemberResponse; + toAminoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAminoMsg; + fromProtoMsg(message: QueryGroupsByMemberResponseProtoMsg): QueryGroupsByMemberResponse; + toProto(message: QueryGroupsByMemberResponse): Uint8Array; + toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg; +}; +export declare const QueryTallyResultRequest: { + typeUrl: string; + encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; + fromPartial(object: Partial): QueryTallyResultRequest; + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; + toProto(message: QueryTallyResultRequest): Uint8Array; + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; +}; +export declare const QueryTallyResultResponse: { + typeUrl: string; + encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; + fromPartial(object: Partial): QueryTallyResultResponse; + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; + toProto(message: QueryTallyResultResponse): Uint8Array; + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/group/v1/query.js b/packages/api/dist/cosmos/group/v1/query.js new file mode 100644 index 00000000..5e8777ca --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.js @@ -0,0 +1,2029 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryGroupsByMemberResponse = exports.QueryGroupsByMemberRequest = exports.QueryVotesByVoterResponse = exports.QueryVotesByVoterRequest = exports.QueryVotesByProposalResponse = exports.QueryVotesByProposalRequest = exports.QueryVoteByProposalVoterResponse = exports.QueryVoteByProposalVoterRequest = exports.QueryProposalsByGroupPolicyResponse = exports.QueryProposalsByGroupPolicyRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = exports.QueryGroupPoliciesByAdminResponse = exports.QueryGroupPoliciesByAdminRequest = exports.QueryGroupPoliciesByGroupResponse = exports.QueryGroupPoliciesByGroupRequest = exports.QueryGroupsByAdminResponse = exports.QueryGroupsByAdminRequest = exports.QueryGroupMembersResponse = exports.QueryGroupMembersRequest = exports.QueryGroupPolicyInfoResponse = exports.QueryGroupPolicyInfoRequest = exports.QueryGroupInfoResponse = exports.QueryGroupInfoRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const types_1 = require("./types"); +const binary_1 = require("../../../binary"); +function createBaseQueryGroupInfoRequest() { + return { + groupId: BigInt(0) + }; +} +exports.QueryGroupInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupInfoRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupInfoRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupInfoRequest", + value: exports.QueryGroupInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupInfoRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + value: exports.QueryGroupInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupInfoResponse() { + return { + info: undefined + }; +} +exports.QueryGroupInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.info !== undefined) { + types_1.GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = types_1.GroupInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? types_1.GroupInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = types_1.GroupInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? types_1.GroupInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupInfoResponse", + value: exports.QueryGroupInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupInfoResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + value: exports.QueryGroupInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoRequest() { + return { + address: "" + }; +} +exports.QueryGroupPolicyInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPolicyInfoRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPolicyInfoRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPolicyInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoRequest", + value: exports.QueryGroupPolicyInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPolicyInfoRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPolicyInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + value: exports.QueryGroupPolicyInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoResponse() { + return { + info: undefined + }; +} +exports.QueryGroupPolicyInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.info !== undefined) { + types_1.GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = types_1.GroupPolicyInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPolicyInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? types_1.GroupPolicyInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPolicyInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = types_1.GroupPolicyInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? types_1.GroupPolicyInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPolicyInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoResponse", + value: exports.QueryGroupPolicyInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPolicyInfoResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPolicyInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + value: exports.QueryGroupPolicyInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersRequest() { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +exports.QueryGroupMembersRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupMembersRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupMembersRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupMembersRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupMembersRequest", + value: exports.QueryGroupMembersRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupMembersRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupMembersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + value: exports.QueryGroupMembersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersResponse() { + return { + members: [], + pagination: undefined + }; +} +exports.QueryGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.members) { + types_1.GroupMember.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.members.push(types_1.GroupMember.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => types_1.GroupMember.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => types_1.GroupMember.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.members) { + obj.members = message.members.map(e => e ? types_1.GroupMember.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupMembersResponse", + value: exports.QueryGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupMembersResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + value: exports.QueryGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +exports.QueryGroupsByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupsByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByAdminRequest", + value: exports.QueryGroupsByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupsByAdminRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + value: exports.QueryGroupsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminResponse() { + return { + groups: [], + pagination: undefined + }; +} +exports.QueryGroupsByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.groups) { + types_1.GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupsByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByAdminResponse", + value: exports.QueryGroupsByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupsByAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + value: exports.QueryGroupsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupRequest() { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +exports.QueryGroupPoliciesByGroupRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPoliciesByGroupRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", + value: exports.QueryGroupPoliciesByGroupRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPoliciesByGroupRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPoliciesByGroupRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + value: exports.QueryGroupPoliciesByGroupRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupResponse() { + return { + groupPolicies: [], + pagination: undefined + }; +} +exports.QueryGroupPoliciesByGroupResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.groupPolicies) { + types_1.GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPoliciesByGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", + value: exports.QueryGroupPoliciesByGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPoliciesByGroupResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPoliciesByGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + value: exports.QueryGroupPoliciesByGroupResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +exports.QueryGroupPoliciesByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPoliciesByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", + value: exports.QueryGroupPoliciesByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPoliciesByAdminRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPoliciesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + value: exports.QueryGroupPoliciesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminResponse() { + return { + groupPolicies: [], + pagination: undefined + }; +} +exports.QueryGroupPoliciesByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.groupPolicies) { + types_1.GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupPoliciesByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", + value: exports.QueryGroupPoliciesByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupPoliciesByAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupPoliciesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + value: exports.QueryGroupPoliciesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: exports.QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + value: exports.QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: undefined + }; +} +exports.QueryProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposal !== undefined) { + types_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = types_1.Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? types_1.Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = types_1.Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? types_1.Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: exports.QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + value: exports.QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyRequest() { + return { + address: "", + pagination: undefined + }; +} +exports.QueryProposalsByGroupPolicyRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsByGroupPolicyRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", + value: exports.QueryProposalsByGroupPolicyRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsByGroupPolicyRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsByGroupPolicyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + value: exports.QueryProposalsByGroupPolicyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyResponse() { + return { + proposals: [], + pagination: undefined + }; +} +exports.QueryProposalsByGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.proposals) { + types_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(types_1.Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => types_1.Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => types_1.Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? types_1.Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProposalsByGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", + value: exports.QueryProposalsByGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryProposalsByGroupPolicyResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProposalsByGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + value: exports.QueryProposalsByGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +exports.QueryVoteByProposalVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteByProposalVoterRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteByProposalVoterRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteByProposalVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterRequest", + value: exports.QueryVoteByProposalVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteByProposalVoterRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteByProposalVoterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + value: exports.QueryVoteByProposalVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterResponse() { + return { + vote: undefined + }; +} +exports.QueryVoteByProposalVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.vote !== undefined) { + types_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = types_1.Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteByProposalVoterResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? types_1.Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteByProposalVoterResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = types_1.Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? types_1.Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVoteByProposalVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterResponse", + value: exports.QueryVoteByProposalVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVoteByProposalVoterResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVoteByProposalVoterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + value: exports.QueryVoteByProposalVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +exports.QueryVotesByProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesByProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByProposalRequest", + value: exports.QueryVotesByProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesByProposalRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesByProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + value: exports.QueryVotesByProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalResponse() { + return { + votes: [], + pagination: undefined + }; +} +exports.QueryVotesByProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.votes) { + types_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(types_1.Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesByProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByProposalResponse", + value: exports.QueryVotesByProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesByProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesByProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + value: exports.QueryVotesByProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterRequest() { + return { + voter: "", + pagination: undefined + }; +} +exports.QueryVotesByVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.voter !== "") { + writer.uint32(10).string(message.voter); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voter = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByVoterRequest(); + message.voter = object.voter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByVoterRequest(); + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesByVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByVoterRequest", + value: exports.QueryVotesByVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesByVoterRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesByVoterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + value: exports.QueryVotesByVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterResponse() { + return { + votes: [], + pagination: undefined + }; +} +exports.QueryVotesByVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.votes) { + types_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(types_1.Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryVotesByVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByVoterResponse", + value: exports.QueryVotesByVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryVotesByVoterResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryVotesByVoterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + value: exports.QueryVotesByVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberRequest() { + return { + address: "", + pagination: undefined + }; +} +exports.QueryGroupsByMemberRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByMemberRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupsByMemberRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByMemberRequest", + value: exports.QueryGroupsByMemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupsByMemberRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupsByMemberRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + value: exports.QueryGroupsByMemberRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberResponse() { + return { + groups: [], + pagination: undefined + }; +} +exports.QueryGroupsByMemberResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.groups) { + types_1.GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryGroupsByMemberResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByMemberResponse", + value: exports.QueryGroupsByMemberResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryGroupsByMemberResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryGroupsByMemberResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + value: exports.QueryGroupsByMemberResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +exports.QueryTallyResultRequest = { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + value: exports.QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: types_1.TallyResult.fromPartial({}) + }; +} +exports.QueryTallyResultResponse = { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tally !== undefined) { + types_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = types_1.TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? types_1.TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = types_1.TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? types_1.TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + value: exports.QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/group/v1/query.lcd.d.ts b/packages/api/dist/cosmos/group/v1/query.lcd.d.ts new file mode 100644 index 00000000..f2695451 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.lcd.d.ts @@ -0,0 +1,21 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + groupInfo(params: QueryGroupInfoRequest): Promise; + groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise; + groupMembers(params: QueryGroupMembersRequest): Promise; + groupsByAdmin(params: QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise; + proposal(params: QueryProposalRequest): Promise; + proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise; + votesByProposal(params: QueryVotesByProposalRequest): Promise; + votesByVoter(params: QueryVotesByVoterRequest): Promise; + groupsByMember(params: QueryGroupsByMemberRequest): Promise; + tallyResult(params: QueryTallyResultRequest): Promise; +} diff --git a/packages/api/dist/cosmos/group/v1/query.lcd.js b/packages/api/dist/cosmos/group/v1/query.lcd.js new file mode 100644 index 00000000..78a2890f --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.lcd.js @@ -0,0 +1,142 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* GroupInfo queries group info based on group id. */ + async groupInfo(params) { + const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; + return await this.req.get(endpoint); + } + /* GroupPolicyInfo queries group policy info based on account address of group policy. */ + async groupPolicyInfo(params) { + const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; + return await this.req.get(endpoint); + } + /* GroupMembers queries members of a group */ + async groupMembers(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries groups by admin address. */ + async groupsByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* GroupPoliciesByGroup queries group policies by group id. */ + async groupPoliciesByGroup(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries group policies by admin address. */ + async groupPoliciesByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Proposal queries a proposal based on proposal id. */ + async proposal(params) { + const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ + async proposalsByGroupPolicy(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; + return await this.req.get(endpoint, options); + } + /* VoteByProposalVoter queries a vote by proposal id and voter. */ + async voteByProposalVoter(params) { + const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; + return await this.req.get(endpoint); + } + /* VotesByProposal queries a vote by proposal. */ + async votesByProposal(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; + return await this.req.get(endpoint, options); + } + /* VotesByVoter queries a vote by voter. */ + async votesByVoter(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; + return await this.req.get(endpoint, options); + } + /* GroupsByMember queries groups by member address. */ + async groupsByMember(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TallyResult returns the tally result of a proposal. If the proposal is + still in voting period, then this query computes the current tally state, + which might not be final. On the other hand, if the proposal is final, + then it simply returns the `final_tally_result` state stored in the + proposal itself. */ + async tallyResult(params) { + const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..6ccde5b1 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts @@ -0,0 +1,70 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query is the cosmos.group.v1 Query service. */ +export interface Query { + /** GroupInfo queries group info based on group id. */ + groupInfo(request: QueryGroupInfoRequest): Promise; + /** GroupPolicyInfo queries group policy info based on account address of group policy. */ + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; + /** GroupMembers queries members of a group */ + groupMembers(request: QueryGroupMembersRequest): Promise; + /** GroupsByAdmin queries groups by admin address. */ + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; + /** GroupPoliciesByGroup queries group policies by group id. */ + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; + /** GroupsByAdmin queries group policies by admin address. */ + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; + /** Proposal queries a proposal based on proposal id. */ + proposal(request: QueryProposalRequest): Promise; + /** ProposalsByGroupPolicy queries proposals based on account address of group policy. */ + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; + /** VoteByProposalVoter queries a vote by proposal id and voter. */ + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; + /** VotesByProposal queries a vote by proposal. */ + votesByProposal(request: QueryVotesByProposalRequest): Promise; + /** VotesByVoter queries a vote by voter. */ + votesByVoter(request: QueryVotesByVoterRequest): Promise; + /** GroupsByMember queries groups by member address. */ + groupsByMember(request: QueryGroupsByMemberRequest): Promise; + /** + * TallyResult returns the tally result of a proposal. If the proposal is + * still in voting period, then this query computes the current tally state, + * which might not be final. On the other hand, if the proposal is final, + * then it simply returns the `final_tally_result` state stored in the + * proposal itself. + */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + groupInfo(request: QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: QueryGroupMembersRequest): Promise; + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: QueryVotesByProposalRequest): Promise; + votesByVoter(request: QueryVotesByVoterRequest): Promise; + groupsByMember(request: QueryGroupsByMemberRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + groupInfo(request: QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: QueryGroupMembersRequest): Promise; + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: QueryVotesByProposalRequest): Promise; + votesByVoter(request: QueryVotesByVoterRequest): Promise; + groupsByMember(request: QueryGroupsByMemberRequest): Promise; + tallyResult(request: QueryTallyResultRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/group/v1/query.rpc.Query.js b/packages/api/dist/cosmos/group/v1/query.rpc.Query.js new file mode 100644 index 00000000..68a81dfc --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/query.rpc.Query.js @@ -0,0 +1,137 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + groupInfo(request) { + const data = query_1.QueryGroupInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); + return promise.then(data => query_1.QueryGroupInfoResponse.decode(new binary_1.BinaryReader(data))); + } + groupPolicyInfo(request) { + const data = query_1.QueryGroupPolicyInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); + return promise.then(data => query_1.QueryGroupPolicyInfoResponse.decode(new binary_1.BinaryReader(data))); + } + groupMembers(request) { + const data = query_1.QueryGroupMembersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); + return promise.then(data => query_1.QueryGroupMembersResponse.decode(new binary_1.BinaryReader(data))); + } + groupsByAdmin(request) { + const data = query_1.QueryGroupsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); + return promise.then(data => query_1.QueryGroupsByAdminResponse.decode(new binary_1.BinaryReader(data))); + } + groupPoliciesByGroup(request) { + const data = query_1.QueryGroupPoliciesByGroupRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); + return promise.then(data => query_1.QueryGroupPoliciesByGroupResponse.decode(new binary_1.BinaryReader(data))); + } + groupPoliciesByAdmin(request) { + const data = query_1.QueryGroupPoliciesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); + return promise.then(data => query_1.QueryGroupPoliciesByAdminResponse.decode(new binary_1.BinaryReader(data))); + } + proposal(request) { + const data = query_1.QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); + return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); + } + proposalsByGroupPolicy(request) { + const data = query_1.QueryProposalsByGroupPolicyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); + return promise.then(data => query_1.QueryProposalsByGroupPolicyResponse.decode(new binary_1.BinaryReader(data))); + } + voteByProposalVoter(request) { + const data = query_1.QueryVoteByProposalVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); + return promise.then(data => query_1.QueryVoteByProposalVoterResponse.decode(new binary_1.BinaryReader(data))); + } + votesByProposal(request) { + const data = query_1.QueryVotesByProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); + return promise.then(data => query_1.QueryVotesByProposalResponse.decode(new binary_1.BinaryReader(data))); + } + votesByVoter(request) { + const data = query_1.QueryVotesByVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); + return promise.then(data => query_1.QueryVotesByVoterResponse.decode(new binary_1.BinaryReader(data))); + } + groupsByMember(request) { + const data = query_1.QueryGroupsByMemberRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); + return promise.then(data => query_1.QueryGroupsByMemberResponse.decode(new binary_1.BinaryReader(data))); + } + tallyResult(request) { + const data = query_1.QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); + return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + groupInfo(request) { + return queryService.groupInfo(request); + }, + groupPolicyInfo(request) { + return queryService.groupPolicyInfo(request); + }, + groupMembers(request) { + return queryService.groupMembers(request); + }, + groupsByAdmin(request) { + return queryService.groupsByAdmin(request); + }, + groupPoliciesByGroup(request) { + return queryService.groupPoliciesByGroup(request); + }, + groupPoliciesByAdmin(request) { + return queryService.groupPoliciesByAdmin(request); + }, + proposal(request) { + return queryService.proposal(request); + }, + proposalsByGroupPolicy(request) { + return queryService.proposalsByGroupPolicy(request); + }, + voteByProposalVoter(request) { + return queryService.voteByProposalVoter(request); + }, + votesByProposal(request) { + return queryService.votesByProposal(request); + }, + votesByVoter(request) { + return queryService.votesByVoter(request); + }, + groupsByMember(request) { + return queryService.groupsByMember(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/group/v1/tx.amino.d.ts b/packages/api/dist/cosmos/group/v1/tx.amino.d.ts new file mode 100644 index 00000000..49116292 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.amino.d.ts @@ -0,0 +1,73 @@ +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export declare const AminoConverter: { + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: string; + toAmino: (message: MsgCreateGroup) => import("./tx").MsgCreateGroupAmino; + fromAmino: (object: import("./tx").MsgCreateGroupAmino) => MsgCreateGroup; + }; + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: string; + toAmino: (message: MsgUpdateGroupMembers) => import("./tx").MsgUpdateGroupMembersAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupMembersAmino) => MsgUpdateGroupMembers; + }; + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: string; + toAmino: (message: MsgUpdateGroupAdmin) => import("./tx").MsgUpdateGroupAdminAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupAdminAmino) => MsgUpdateGroupAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateGroupMetadata) => import("./tx").MsgUpdateGroupMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupMetadataAmino) => MsgUpdateGroupMetadata; + }; + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: string; + toAmino: (message: MsgCreateGroupPolicy) => import("./tx").MsgCreateGroupPolicyAmino; + fromAmino: (object: import("./tx").MsgCreateGroupPolicyAmino) => MsgCreateGroupPolicy; + }; + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: string; + toAmino: (message: MsgCreateGroupWithPolicy) => import("./tx").MsgCreateGroupWithPolicyAmino; + fromAmino: (object: import("./tx").MsgCreateGroupWithPolicyAmino) => MsgCreateGroupWithPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: string; + toAmino: (message: MsgUpdateGroupPolicyAdmin) => import("./tx").MsgUpdateGroupPolicyAdminAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupPolicyAdminAmino) => MsgUpdateGroupPolicyAdmin; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: string; + toAmino: (message: MsgUpdateGroupPolicyDecisionPolicy) => import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => MsgUpdateGroupPolicyDecisionPolicy; + }; + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateGroupPolicyMetadata) => import("./tx").MsgUpdateGroupPolicyMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateGroupPolicyMetadataAmino) => MsgUpdateGroupPolicyMetadata; + }; + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: string; + toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; + fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; + }; + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: string; + toAmino: (message: MsgWithdrawProposal) => import("./tx").MsgWithdrawProposalAmino; + fromAmino: (object: import("./tx").MsgWithdrawProposalAmino) => MsgWithdrawProposal; + }; + "/cosmos.group.v1.MsgVote": { + aminoType: string; + toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; + fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; + }; + "/cosmos.group.v1.MsgExec": { + aminoType: string; + toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; + fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; + }; + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: string; + toAmino: (message: MsgLeaveGroup) => import("./tx").MsgLeaveGroupAmino; + fromAmino: (object: import("./tx").MsgLeaveGroupAmino) => MsgLeaveGroup; + }; +}; diff --git a/packages/api/dist/cosmos/group/v1/tx.amino.js b/packages/api/dist/cosmos/group/v1/tx.amino.js new file mode 100644 index 00000000..e2475ea0 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.amino.js @@ -0,0 +1,77 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: "cosmos-sdk/MsgCreateGroup", + toAmino: tx_1.MsgCreateGroup.toAmino, + fromAmino: tx_1.MsgCreateGroup.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: "cosmos-sdk/MsgUpdateGroupMembers", + toAmino: tx_1.MsgUpdateGroupMembers.toAmino, + fromAmino: tx_1.MsgUpdateGroupMembers.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", + toAmino: tx_1.MsgUpdateGroupAdmin.toAmino, + fromAmino: tx_1.MsgUpdateGroupAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", + toAmino: tx_1.MsgUpdateGroupMetadata.toAmino, + fromAmino: tx_1.MsgUpdateGroupMetadata.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupPolicy", + toAmino: tx_1.MsgCreateGroupPolicy.toAmino, + fromAmino: tx_1.MsgCreateGroupPolicy.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", + toAmino: tx_1.MsgCreateGroupWithPolicy.toAmino, + fromAmino: tx_1.MsgCreateGroupWithPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + toAmino: tx_1.MsgUpdateGroupPolicyAdmin.toAmino, + fromAmino: tx_1.MsgUpdateGroupPolicyAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + toAmino: tx_1.MsgUpdateGroupPolicyDecisionPolicy.toAmino, + fromAmino: tx_1.MsgUpdateGroupPolicyDecisionPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + toAmino: tx_1.MsgUpdateGroupPolicyMetadata.toAmino, + fromAmino: tx_1.MsgUpdateGroupPolicyMetadata.fromAmino + }, + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/group/MsgSubmitProposal", + toAmino: tx_1.MsgSubmitProposal.toAmino, + fromAmino: tx_1.MsgSubmitProposal.fromAmino + }, + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: "cosmos-sdk/group/MsgWithdrawProposal", + toAmino: tx_1.MsgWithdrawProposal.toAmino, + fromAmino: tx_1.MsgWithdrawProposal.fromAmino + }, + "/cosmos.group.v1.MsgVote": { + aminoType: "cosmos-sdk/group/MsgVote", + toAmino: tx_1.MsgVote.toAmino, + fromAmino: tx_1.MsgVote.fromAmino + }, + "/cosmos.group.v1.MsgExec": { + aminoType: "cosmos-sdk/group/MsgExec", + toAmino: tx_1.MsgExec.toAmino, + fromAmino: tx_1.MsgExec.fromAmino + }, + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: "cosmos-sdk/group/MsgLeaveGroup", + toAmino: tx_1.MsgLeaveGroup.toAmino, + fromAmino: tx_1.MsgLeaveGroup.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/group/v1/tx.d.ts b/packages/api/dist/cosmos/group/v1/tx.d.ts new file mode 100644 index 00000000..4dc7df10 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.d.ts @@ -0,0 +1,1172 @@ +import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Exec defines modes of execution of a proposal on creation or on new vote. */ +export declare enum Exec { + /** + * EXEC_UNSPECIFIED - An empty value means that there should be a separate + * MsgExec request for the proposal to execute. + */ + EXEC_UNSPECIFIED = 0, + /** + * EXEC_TRY - Try to execute the proposal immediately. + * If the proposal is not allowed per the DecisionPolicy, + * the proposal will still be open and could + * be executed at a later point. + */ + EXEC_TRY = 1, + UNRECOGNIZED = -1 +} +export declare const ExecSDKType: typeof Exec; +export declare const ExecAmino: typeof Exec; +export declare function execFromJSON(object: any): Exec; +export declare function execToJSON(object: Exec): string; +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroup { + /** admin is the account address of the group admin. */ + admin: string; + /** members defines the group members. */ + members: MemberRequest[]; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata: string; +} +export interface MsgCreateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroup"; + value: Uint8Array; +} +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroupAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** members defines the group members. */ + members: MemberRequestAmino[]; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata?: string; +} +export interface MsgCreateGroupAminoMsg { + type: "cosmos-sdk/MsgCreateGroup"; + value: MsgCreateGroupAmino; +} +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroupSDKType { + admin: string; + members: MemberRequestSDKType[]; + metadata: string; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponse { + /** group_id is the unique ID of the newly created group. */ + groupId: bigint; +} +export interface MsgCreateGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; + value: Uint8Array; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponseAmino { + /** group_id is the unique ID of the newly created group. */ + group_id?: string; +} +export interface MsgCreateGroupResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupResponse"; + value: MsgCreateGroupResponseAmino; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponseSDKType { + group_id: bigint; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembers { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** + * member_updates is the list of members to update, + * set weight to 0 to remove a member. + */ + memberUpdates: MemberRequest[]; +} +export interface MsgUpdateGroupMembersProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; + value: Uint8Array; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembersAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** + * member_updates is the list of members to update, + * set weight to 0 to remove a member. + */ + member_updates: MemberRequestAmino[]; +} +export interface MsgUpdateGroupMembersAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMembers"; + value: MsgUpdateGroupMembersAmino; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembersSDKType { + admin: string; + group_id: bigint; + member_updates: MemberRequestSDKType[]; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponse { +} +export interface MsgUpdateGroupMembersResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponseAmino { +} +export interface MsgUpdateGroupMembersResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; + value: MsgUpdateGroupMembersResponseAmino; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponseSDKType { +} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdmin { + /** admin is the current account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** new_admin is the group new admin account address. */ + newAdmin: string; +} +export interface MsgUpdateGroupAdminProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; + value: Uint8Array; +} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdminAmino { + /** admin is the current account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** new_admin is the group new admin account address. */ + new_admin?: string; +} +export interface MsgUpdateGroupAdminAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupAdmin"; + value: MsgUpdateGroupAdminAmino; +} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdminSDKType { + admin: string; + group_id: bigint; + new_admin: string; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponse { +} +export interface MsgUpdateGroupAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponseAmino { +} +export interface MsgUpdateGroupAdminResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; + value: MsgUpdateGroupAdminResponseAmino; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponseSDKType { +} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadata { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** metadata is the updated group's metadata. */ + metadata: string; +} +export interface MsgUpdateGroupMetadataProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; + value: Uint8Array; +} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadataAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** metadata is the updated group's metadata. */ + metadata?: string; +} +export interface MsgUpdateGroupMetadataAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMetadata"; + value: MsgUpdateGroupMetadataAmino; +} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadataSDKType { + admin: string; + group_id: bigint; + metadata: string; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponse { +} +export interface MsgUpdateGroupMetadataResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponseAmino { +} +export interface MsgUpdateGroupMetadataResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; + value: MsgUpdateGroupMetadataResponseAmino; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponseSDKType { +} +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicy { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** metadata is any arbitrary metadata attached to the group policy. */ + metadata: string; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgCreateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; + value: Uint8Array; +} +export type MsgCreateGroupPolicyEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicyAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** metadata is any arbitrary metadata attached to the group policy. */ + metadata?: string; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgCreateGroupPolicyAminoMsg { + type: "cosmos-sdk/MsgCreateGroupPolicy"; + value: MsgCreateGroupPolicyAmino; +} +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicySDKType { + admin: string; + group_id: bigint; + metadata: string; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponse { + /** address is the account address of the newly created group policy. */ + address: string; +} +export interface MsgCreateGroupPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; + value: Uint8Array; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponseAmino { + /** address is the account address of the newly created group policy. */ + address?: string; +} +export interface MsgCreateGroupPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; + value: MsgCreateGroupPolicyResponseAmino; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponseSDKType { + address: string; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdmin { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of the group policy. */ + groupPolicyAddress: string; + /** new_admin is the new group policy admin. */ + newAdmin: string; +} +export interface MsgUpdateGroupPolicyAdminProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdminAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of the group policy. */ + group_policy_address?: string; + /** new_admin is the new group policy admin. */ + new_admin?: string; +} +export interface MsgUpdateGroupPolicyAdminAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; + value: MsgUpdateGroupPolicyAdminAmino; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdminSDKType { + admin: string; + group_policy_address: string; + new_admin: string; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponse { +} +export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponseAmino { +} +export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; + value: MsgUpdateGroupPolicyAdminResponseAmino; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponseSDKType { +} +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicy { + /** admin is the account address of the group and group policy admin. */ + admin: string; + /** members defines the group members. */ + members: MemberRequest[]; + /** group_metadata is any arbitrary metadata attached to the group. */ + groupMetadata: string; + /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ + groupPolicyMetadata: string; + /** + * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + * and group policy admin. + */ + groupPolicyAsAdmin: boolean; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgCreateGroupWithPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; + value: Uint8Array; +} +export type MsgCreateGroupWithPolicyEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicyAmino { + /** admin is the account address of the group and group policy admin. */ + admin?: string; + /** members defines the group members. */ + members: MemberRequestAmino[]; + /** group_metadata is any arbitrary metadata attached to the group. */ + group_metadata?: string; + /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ + group_policy_metadata?: string; + /** + * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + * and group policy admin. + */ + group_policy_as_admin?: boolean; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgCreateGroupWithPolicyAminoMsg { + type: "cosmos-sdk/MsgCreateGroupWithPolicy"; + value: MsgCreateGroupWithPolicyAmino; +} +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicySDKType { + admin: string; + members: MemberRequestSDKType[]; + group_metadata: string; + group_policy_metadata: string; + group_policy_as_admin: boolean; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponse { + /** group_id is the unique ID of the newly created group with policy. */ + groupId: bigint; + /** group_policy_address is the account address of the newly created group policy. */ + groupPolicyAddress: string; +} +export interface MsgCreateGroupWithPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; + value: Uint8Array; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponseAmino { + /** group_id is the unique ID of the newly created group with policy. */ + group_id?: string; + /** group_policy_address is the account address of the newly created group policy. */ + group_policy_address?: string; +} +export interface MsgCreateGroupWithPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; + value: MsgCreateGroupWithPolicyResponseAmino; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponseSDKType { + group_id: bigint; + group_policy_address: string; +} +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicy { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** decision_policy is the updated group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; + value: Uint8Array; +} +export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit & { + /** decision_policy is the updated group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** decision_policy is the updated group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; + value: MsgUpdateGroupPolicyDecisionPolicyAmino; +} +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicySDKType { + admin: string; + group_policy_address: string; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponse { +} +export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino { +} +export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; + value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType { +} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadata { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** metadata is the updated group policy metadata. */ + metadata: string; +} +export interface MsgUpdateGroupPolicyMetadataProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadataAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** metadata is the updated group policy metadata. */ + metadata?: string; +} +export interface MsgUpdateGroupPolicyMetadataAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; + value: MsgUpdateGroupPolicyMetadataAmino; +} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadataSDKType { + admin: string; + group_policy_address: string; + metadata: string; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponse { +} +export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponseAmino { +} +export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; + value: MsgUpdateGroupPolicyMetadataResponseAmino; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponseSDKType { +} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposal { + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** + * proposers are the account addresses of the proposers. + * Proposers signatures will be counted as yes votes. + */ + proposers: string[]; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata: string; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages: Any[]; + /** + * exec defines the mode of execution of the proposal, + * whether it should be executed immediately on creation or not. + * If so, proposers signatures are considered as Yes votes. + */ + exec: Exec; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; + value: Uint8Array; +} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposalAmino { + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** + * proposers are the account addresses of the proposers. + * Proposers signatures will be counted as yes votes. + */ + proposers?: string[]; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata?: string; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages?: AnyAmino[]; + /** + * exec defines the mode of execution of the proposal, + * whether it should be executed immediately on creation or not. + * If so, proposers signatures are considered as Yes votes. + */ + exec?: Exec; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/group/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposalSDKType { + group_policy_address: string; + proposers: string[]; + metadata: string; + messages: AnySDKType[]; + exec: Exec; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposal { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** address is the admin of the group policy or one of the proposer of the proposal. */ + address: string; +} +export interface MsgWithdrawProposalProtoMsg { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; + value: Uint8Array; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposalAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** address is the admin of the group policy or one of the proposer of the proposal. */ + address?: string; +} +export interface MsgWithdrawProposalAminoMsg { + type: "cosmos-sdk/group/MsgWithdrawProposal"; + value: MsgWithdrawProposalAmino; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposalSDKType { + proposal_id: bigint; + address: string; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponse { +} +export interface MsgWithdrawProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; + value: Uint8Array; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponseAmino { +} +export interface MsgWithdrawProposalResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawProposalResponse"; + value: MsgWithdrawProposalResponseAmino; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponseSDKType { +} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVote { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** voter is the voter account address. */ + voter: string; + /** option is the voter's choice on the proposal. */ + option: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; + /** + * exec defines whether the proposal should be executed + * immediately after voting or not. + */ + exec: Exec; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.group.v1.MsgVote"; + value: Uint8Array; +} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVoteAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** voter is the voter account address. */ + voter?: string; + /** option is the voter's choice on the proposal. */ + option?: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; + /** + * exec defines whether the proposal should be executed + * immediately after voting or not. + */ + exec?: Exec; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/group/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; + exec: Exec; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponse { +} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponseAmino { +} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType { +} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExec { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** executor is the account address used to execute the proposal. */ + executor: string; +} +export interface MsgExecProtoMsg { + typeUrl: "/cosmos.group.v1.MsgExec"; + value: Uint8Array; +} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExecAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** executor is the account address used to execute the proposal. */ + executor?: string; +} +export interface MsgExecAminoMsg { + type: "cosmos-sdk/group/MsgExec"; + value: MsgExecAmino; +} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExecSDKType { + proposal_id: bigint; + executor: string; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponse { + /** result is the final result of the proposal execution. */ + result: ProposalExecutorResult; +} +export interface MsgExecResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgExecResponse"; + value: Uint8Array; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponseAmino { + /** result is the final result of the proposal execution. */ + result?: ProposalExecutorResult; +} +export interface MsgExecResponseAminoMsg { + type: "cosmos-sdk/MsgExecResponse"; + value: MsgExecResponseAmino; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponseSDKType { + result: ProposalExecutorResult; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroup { + /** address is the account address of the group member. */ + address: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface MsgLeaveGroupProtoMsg { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; + value: Uint8Array; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroupAmino { + /** address is the account address of the group member. */ + address?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface MsgLeaveGroupAminoMsg { + type: "cosmos-sdk/group/MsgLeaveGroup"; + value: MsgLeaveGroupAmino; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroupSDKType { + address: string; + group_id: bigint; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponse { +} +export interface MsgLeaveGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; + value: Uint8Array; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponseAmino { +} +export interface MsgLeaveGroupResponseAminoMsg { + type: "cosmos-sdk/MsgLeaveGroupResponse"; + value: MsgLeaveGroupResponseAmino; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponseSDKType { +} +export declare const MsgCreateGroup: { + typeUrl: string; + encode(message: MsgCreateGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup; + fromPartial(object: Partial): MsgCreateGroup; + fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup; + toAmino(message: MsgCreateGroup): MsgCreateGroupAmino; + fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup; + toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg; + fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup; + toProto(message: MsgCreateGroup): Uint8Array; + toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg; +}; +export declare const MsgCreateGroupResponse: { + typeUrl: string; + encode(message: MsgCreateGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse; + fromPartial(object: Partial): MsgCreateGroupResponse; + fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse; + toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino; + fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse; + toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg; + fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse; + toProto(message: MsgCreateGroupResponse): Uint8Array; + toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg; +}; +export declare const MsgUpdateGroupMembers: { + typeUrl: string; + encode(message: MsgUpdateGroupMembers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers; + fromPartial(object: Partial): MsgUpdateGroupMembers; + fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers; + toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino; + fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers; + toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg; + fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers; + toProto(message: MsgUpdateGroupMembers): Uint8Array; + toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg; +}; +export declare const MsgUpdateGroupMembersResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; + fromPartial(_: Partial): MsgUpdateGroupMembersResponse; + fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse; + toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino; + fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse; + toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse; + toProto(message: MsgUpdateGroupMembersResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg; +}; +export declare const MsgUpdateGroupAdmin: { + typeUrl: string; + encode(message: MsgUpdateGroupAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin; + fromPartial(object: Partial): MsgUpdateGroupAdmin; + fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin; + toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino; + fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin; + toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg; + fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin; + toProto(message: MsgUpdateGroupAdmin): Uint8Array; + toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg; +}; +export declare const MsgUpdateGroupAdminResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; + fromPartial(_: Partial): MsgUpdateGroupAdminResponse; + fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse; + toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino; + fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse; + toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse; + toProto(message: MsgUpdateGroupAdminResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg; +}; +export declare const MsgUpdateGroupMetadata: { + typeUrl: string; + encode(message: MsgUpdateGroupMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata; + fromPartial(object: Partial): MsgUpdateGroupMetadata; + fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata; + toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino; + fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata; + toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg; + fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata; + toProto(message: MsgUpdateGroupMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg; +}; +export declare const MsgUpdateGroupMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; + fromPartial(_: Partial): MsgUpdateGroupMetadataResponse; + fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse; + toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse; + toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse; + toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg; +}; +export declare const MsgCreateGroupPolicy: { + typeUrl: string; + encode(message: MsgCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy; + fromPartial(object: Partial): MsgCreateGroupPolicy; + fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy; + toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino; + fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy; + toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg; + fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy; + toProto(message: MsgCreateGroupPolicy): Uint8Array; + toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg; +}; +export declare const MsgCreateGroupPolicyResponse: { + typeUrl: string; + encode(message: MsgCreateGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; + fromPartial(object: Partial): MsgCreateGroupPolicyResponse; + fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse; + toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino; + fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse; + toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg; + fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse; + toProto(message: MsgCreateGroupPolicyResponse): Uint8Array; + toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg; +}; +export declare const MsgUpdateGroupPolicyAdmin: { + typeUrl: string; + encode(message: MsgUpdateGroupPolicyAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; + fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin; + fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin; + toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin; + toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin; + toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg; +}; +export declare const MsgUpdateGroupPolicyAdminResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; + fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse; + fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse; + toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse; + toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse; + toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg; +}; +export declare const MsgCreateGroupWithPolicy: { + typeUrl: string; + encode(message: MsgCreateGroupWithPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; + fromPartial(object: Partial): MsgCreateGroupWithPolicy; + fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy; + toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino; + fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy; + toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg; + fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy; + toProto(message: MsgCreateGroupWithPolicy): Uint8Array; + toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg; +}; +export declare const MsgCreateGroupWithPolicyResponse: { + typeUrl: string; + encode(message: MsgCreateGroupWithPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; + fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse; + fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse; + toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino; + fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse; + toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg; + fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse; + toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array; + toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg; +}; +export declare const MsgUpdateGroupPolicyDecisionPolicy: { + typeUrl: string; + encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; + fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy; + fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy; + toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy; + toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy; + toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg; +}; +export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; + fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse; + fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse; + toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; + toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; + toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; +}; +export declare const MsgUpdateGroupPolicyMetadata: { + typeUrl: string; + encode(message: MsgUpdateGroupPolicyMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; + fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata; + fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata; + toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata; + toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata; + toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg; +}; +export declare const MsgUpdateGroupPolicyMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; + fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse; + fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse; + toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse; + toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg; + fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse; + toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg; +}; +export declare const MsgSubmitProposal: { + typeUrl: string; + encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; + fromPartial(object: Partial): MsgSubmitProposal; + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; + toProto(message: MsgSubmitProposal): Uint8Array; + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; +}; +export declare const MsgSubmitProposalResponse: { + typeUrl: string; + encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; + fromPartial(object: Partial): MsgSubmitProposalResponse; + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; + toProto(message: MsgSubmitProposalResponse): Uint8Array; + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; +}; +export declare const MsgWithdrawProposal: { + typeUrl: string; + encode(message: MsgWithdrawProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal; + fromPartial(object: Partial): MsgWithdrawProposal; + fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal; + toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino; + fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal; + toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg; + fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal; + toProto(message: MsgWithdrawProposal): Uint8Array; + toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg; +}; +export declare const MsgWithdrawProposalResponse: { + typeUrl: string; + encode(_: MsgWithdrawProposalResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse; + fromPartial(_: Partial): MsgWithdrawProposalResponse; + fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse; + toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino; + fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse; + toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg; + fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse; + toProto(message: MsgWithdrawProposalResponse): Uint8Array; + toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg; +}; +export declare const MsgVote: { + typeUrl: string; + encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; + fromPartial(object: Partial): MsgVote; + fromAmino(object: MsgVoteAmino): MsgVote; + toAmino(message: MsgVote): MsgVoteAmino; + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; + toAminoMsg(message: MsgVote): MsgVoteAminoMsg; + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; + toProto(message: MsgVote): Uint8Array; + toProtoMsg(message: MsgVote): MsgVoteProtoMsg; +}; +export declare const MsgVoteResponse: { + typeUrl: string; + encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; + fromPartial(_: Partial): MsgVoteResponse; + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; + toProto(message: MsgVoteResponse): Uint8Array; + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; +}; +export declare const MsgExec: { + typeUrl: string; + encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; + fromPartial(object: Partial): MsgExec; + fromAmino(object: MsgExecAmino): MsgExec; + toAmino(message: MsgExec): MsgExecAmino; + fromAminoMsg(object: MsgExecAminoMsg): MsgExec; + toAminoMsg(message: MsgExec): MsgExecAminoMsg; + fromProtoMsg(message: MsgExecProtoMsg): MsgExec; + toProto(message: MsgExec): Uint8Array; + toProtoMsg(message: MsgExec): MsgExecProtoMsg; +}; +export declare const MsgExecResponse: { + typeUrl: string; + encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; + fromPartial(object: Partial): MsgExecResponse; + fromAmino(object: MsgExecResponseAmino): MsgExecResponse; + toAmino(message: MsgExecResponse): MsgExecResponseAmino; + fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; + toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; + fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; + toProto(message: MsgExecResponse): Uint8Array; + toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; +}; +export declare const MsgLeaveGroup: { + typeUrl: string; + encode(message: MsgLeaveGroup, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup; + fromPartial(object: Partial): MsgLeaveGroup; + fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup; + toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino; + fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup; + toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg; + fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup; + toProto(message: MsgLeaveGroup): Uint8Array; + toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg; +}; +export declare const MsgLeaveGroupResponse: { + typeUrl: string; + encode(_: MsgLeaveGroupResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse; + fromPartial(_: Partial): MsgLeaveGroupResponse; + fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse; + toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino; + fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse; + toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg; + fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse; + toProto(message: MsgLeaveGroupResponse): Uint8Array; + toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg; +}; +export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; +export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; +export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/group/v1/tx.js b/packages/api/dist/cosmos/group/v1/tx.js new file mode 100644 index 00000000..eac4b28f --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.js @@ -0,0 +1,2338 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DecisionPolicy_ToAmino = exports.DecisionPolicy_FromAmino = exports.DecisionPolicy_InterfaceDecoder = exports.MsgLeaveGroupResponse = exports.MsgLeaveGroup = exports.MsgExecResponse = exports.MsgExec = exports.MsgVoteResponse = exports.MsgVote = exports.MsgWithdrawProposalResponse = exports.MsgWithdrawProposal = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.MsgUpdateGroupPolicyMetadataResponse = exports.MsgUpdateGroupPolicyMetadata = exports.MsgUpdateGroupPolicyDecisionPolicyResponse = exports.MsgUpdateGroupPolicyDecisionPolicy = exports.MsgCreateGroupWithPolicyResponse = exports.MsgCreateGroupWithPolicy = exports.MsgUpdateGroupPolicyAdminResponse = exports.MsgUpdateGroupPolicyAdmin = exports.MsgCreateGroupPolicyResponse = exports.MsgCreateGroupPolicy = exports.MsgUpdateGroupMetadataResponse = exports.MsgUpdateGroupMetadata = exports.MsgUpdateGroupAdminResponse = exports.MsgUpdateGroupAdmin = exports.MsgUpdateGroupMembersResponse = exports.MsgUpdateGroupMembers = exports.MsgCreateGroupResponse = exports.MsgCreateGroup = exports.execToJSON = exports.execFromJSON = exports.ExecAmino = exports.ExecSDKType = exports.Exec = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +/** Exec defines modes of execution of a proposal on creation or on new vote. */ +var Exec; +(function (Exec) { + /** + * EXEC_UNSPECIFIED - An empty value means that there should be a separate + * MsgExec request for the proposal to execute. + */ + Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED"; + /** + * EXEC_TRY - Try to execute the proposal immediately. + * If the proposal is not allowed per the DecisionPolicy, + * the proposal will still be open and could + * be executed at a later point. + */ + Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY"; + Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(Exec || (exports.Exec = Exec = {})); +exports.ExecSDKType = Exec; +exports.ExecAmino = Exec; +function execFromJSON(object) { + switch (object) { + case 0: + case "EXEC_UNSPECIFIED": + return Exec.EXEC_UNSPECIFIED; + case 1: + case "EXEC_TRY": + return Exec.EXEC_TRY; + case -1: + case "UNRECOGNIZED": + default: + return Exec.UNRECOGNIZED; + } +} +exports.execFromJSON = execFromJSON; +function execToJSON(object) { + switch (object) { + case Exec.EXEC_UNSPECIFIED: + return "EXEC_UNSPECIFIED"; + case Exec.EXEC_TRY: + return "EXEC_TRY"; + case Exec.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.execToJSON = execToJSON; +function createBaseMsgCreateGroup() { + return { + admin: "", + members: [], + metadata: "" + }; +} +exports.MsgCreateGroup = { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + types_1.MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(types_1.MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroup(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => types_1.MemberRequest.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroup(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => types_1.MemberRequest.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroup", + value: exports.MsgCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroup.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: exports.MsgCreateGroup.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupResponse() { + return { + groupId: BigInt(0) + }; +} +exports.MsgCreateGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupResponse", + value: exports.MsgCreateGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroupResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + value: exports.MsgCreateGroupResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembers() { + return { + admin: "", + groupId: BigInt(0), + memberUpdates: [] + }; +} +exports.MsgUpdateGroupMembers = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + for (const v of message.memberUpdates) { + types_1.MemberRequest.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.memberUpdates.push(types_1.MemberRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupMembers(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.memberUpdates = object.memberUpdates?.map(e => types_1.MemberRequest.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupMembers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + message.memberUpdates = object.member_updates?.map(e => types_1.MemberRequest.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + if (message.memberUpdates) { + obj.member_updates = message.memberUpdates.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); + } + else { + obj.member_updates = message.memberUpdates; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupMembers.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMembers", + value: exports.MsgUpdateGroupMembers.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupMembers.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupMembers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: exports.MsgUpdateGroupMembers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembersResponse() { + return {}; +} +exports.MsgUpdateGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMembersResponse", + value: exports.MsgUpdateGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupMembersResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + value: exports.MsgUpdateGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdmin() { + return { + admin: "", + groupId: BigInt(0), + newAdmin: "" + }; +} +exports.MsgUpdateGroupAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupAdmin(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupAdmin", + value: exports.MsgUpdateGroupAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupAdmin.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: exports.MsgUpdateGroupAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdminResponse() { + return {}; +} +exports.MsgUpdateGroupAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupAdminResponse", + value: exports.MsgUpdateGroupAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + value: exports.MsgUpdateGroupAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadata() { + return { + admin: "", + groupId: BigInt(0), + metadata: "" + }; +} +exports.MsgUpdateGroupMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupMetadata(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadata", + value: exports.MsgUpdateGroupMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: exports.MsgUpdateGroupMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadataResponse() { + return {}; +} +exports.MsgUpdateGroupMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", + value: exports.MsgUpdateGroupMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + value: exports.MsgUpdateGroupMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicy() { + return { + admin: "", + groupId: BigInt(0), + metadata: "", + decisionPolicy: undefined + }; +} +exports.MsgCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.decisionPolicy !== undefined) { + any_1.Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupPolicy(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupPolicy", + value: exports.MsgCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroupPolicy.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: exports.MsgCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicyResponse() { + return { + address: "" + }; +} +exports.MsgCreateGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupPolicyResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupPolicyResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupPolicyResponse", + value: exports.MsgCreateGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroupPolicyResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + value: exports.MsgCreateGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdmin() { + return { + admin: "", + groupPolicyAddress: "", + newAdmin: "" + }; +} +exports.MsgUpdateGroupPolicyAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + value: exports.MsgUpdateGroupPolicyAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyAdmin.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: exports.MsgUpdateGroupPolicyAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdminResponse() { + return {}; +} +exports.MsgUpdateGroupPolicyAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", + value: exports.MsgUpdateGroupPolicyAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + value: exports.MsgUpdateGroupPolicyAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicy() { + return { + admin: "", + members: [], + groupMetadata: "", + groupPolicyMetadata: "", + groupPolicyAsAdmin: false, + decisionPolicy: undefined + }; +} +exports.MsgCreateGroupWithPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + types_1.MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.groupMetadata !== "") { + writer.uint32(26).string(message.groupMetadata); + } + if (message.groupPolicyMetadata !== "") { + writer.uint32(34).string(message.groupPolicyMetadata); + } + if (message.groupPolicyAsAdmin === true) { + writer.uint32(40).bool(message.groupPolicyAsAdmin); + } + if (message.decisionPolicy !== undefined) { + any_1.Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(types_1.MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.groupMetadata = reader.string(); + break; + case 4: + message.groupPolicyMetadata = reader.string(); + break; + case 5: + message.groupPolicyAsAdmin = reader.bool(); + break; + case 6: + message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupWithPolicy(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => types_1.MemberRequest.fromPartial(e)) || []; + message.groupMetadata = object.groupMetadata ?? ""; + message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; + message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupWithPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => types_1.MemberRequest.fromAmino(e)) || []; + if (object.group_metadata !== undefined && object.group_metadata !== null) { + message.groupMetadata = object.group_metadata; + } + if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { + message.groupPolicyMetadata = object.group_policy_metadata; + } + if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { + message.groupPolicyAsAdmin = object.group_policy_as_admin; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; + obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; + obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; + obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroupWithPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicy", + value: exports.MsgCreateGroupWithPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroupWithPolicy.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroupWithPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: exports.MsgCreateGroupWithPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicyResponse() { + return { + groupId: BigInt(0), + groupPolicyAddress: "" + }; +} +exports.MsgCreateGroupWithPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateGroupWithPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", + value: exports.MsgCreateGroupWithPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateGroupWithPolicyResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateGroupWithPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + value: exports.MsgCreateGroupWithPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicy() { + return { + admin: "", + groupPolicyAddress: "", + decisionPolicy: undefined + }; +} +exports.MsgUpdateGroupPolicyDecisionPolicy = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.decisionPolicy !== undefined) { + any_1.Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + value: exports.MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: exports.MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() { + return {}; +} +exports.MsgUpdateGroupPolicyDecisionPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", + value: exports.MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + value: exports.MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadata() { + return { + admin: "", + groupPolicyAddress: "", + metadata: "" + }; +} +exports.MsgUpdateGroupPolicyMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + value: exports.MsgUpdateGroupPolicyMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: exports.MsgUpdateGroupPolicyMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadataResponse() { + return {}; +} +exports.MsgUpdateGroupPolicyMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", + value: exports.MsgUpdateGroupPolicyMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateGroupPolicyMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + value: exports.MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposal() { + return { + groupPolicyAddress: "", + proposers: [], + metadata: "", + messages: [], + exec: 0 + }; +} +exports.MsgSubmitProposal = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupPolicyAddress !== "") { + writer.uint32(10).string(message.groupPolicyAddress); + } + for (const v of message.proposers) { + writer.uint32(18).string(v); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.messages) { + any_1.Any.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicyAddress = reader.string(); + break; + case 2: + message.proposers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.messages.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 5: + message.exec = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } + else { + obj.proposers = message.proposers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.messages) { + obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgSubmitProposal", + value: exports.MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: exports.MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +exports.MsgSubmitProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + value: exports.MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposal() { + return { + proposalId: BigInt(0), + address: "" + }; +} +exports.MsgWithdrawProposal = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgWithdrawProposal", + value: exports.MsgWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawProposal.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: exports.MsgWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposalResponse() { + return {}; +} +exports.MsgWithdrawProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgWithdrawProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawProposalResponse", + value: exports.MsgWithdrawProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgWithdrawProposalResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgWithdrawProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + value: exports.MsgWithdrawProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + exec: 0 + }; +} +exports.MsgVote = { + typeUrl: "/cosmos.group.v1.MsgVote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.exec = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgVote", + value: exports.MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVote.decode(message.value); + }, + toProto(message) { + return exports.MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: exports.MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +exports.MsgVoteResponse = { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: exports.MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + value: exports.MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec() { + return { + proposalId: BigInt(0), + executor: "" + }; +} +exports.MsgExec = { + typeUrl: "/cosmos.group.v1.MsgExec", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.executor !== "") { + writer.uint32(18).string(message.executor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.executor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.executor = object.executor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.executor !== undefined && object.executor !== null) { + message.executor = object.executor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.executor = message.executor === "" ? undefined : message.executor; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgExec", + value: exports.MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExec.decode(message.value); + }, + toProto(message) { + return exports.MsgExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: exports.MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse() { + return { + result: 0 + }; +} +exports.MsgExecResponse = { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.result = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecResponse(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecResponse(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExecResponse", + value: exports.MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgExecResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + value: exports.MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroup() { + return { + address: "", + groupId: BigInt(0) + }; +} +exports.MsgLeaveGroup = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgLeaveGroup(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgLeaveGroup(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgLeaveGroup", + value: exports.MsgLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgLeaveGroup.decode(message.value); + }, + toProto(message) { + return exports.MsgLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: exports.MsgLeaveGroup.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroupResponse() { + return {}; +} +exports.MsgLeaveGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgLeaveGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgLeaveGroupResponse", + value: exports.MsgLeaveGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgLeaveGroupResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgLeaveGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + value: exports.MsgLeaveGroupResponse.encode(message).finish() + }; + } +}; +const DecisionPolicy_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return types_1.ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return types_1.PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +exports.DecisionPolicy_InterfaceDecoder = DecisionPolicy_InterfaceDecoder; +const DecisionPolicy_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: types_1.ThresholdDecisionPolicy.encode(types_1.ThresholdDecisionPolicy.fromPartial(types_1.ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: types_1.PercentageDecisionPolicy.encode(types_1.PercentageDecisionPolicy.fromPartial(types_1.PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.DecisionPolicy_FromAmino = DecisionPolicy_FromAmino; +const DecisionPolicy_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: types_1.ThresholdDecisionPolicy.toAmino(types_1.ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: types_1.PercentageDecisionPolicy.toAmino(types_1.PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.DecisionPolicy_ToAmino = DecisionPolicy_ToAmino; diff --git a/packages/api/dist/cosmos/group/v1/tx.registry.d.ts b/packages/api/dist/cosmos/group/v1/tx.registry.d.ts new file mode 100644 index 00000000..bf76cec6 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.registry.d.ts @@ -0,0 +1,180 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createGroup(value: MsgCreateGroup): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupMembers(value: MsgUpdateGroupMembers): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupAdmin(value: MsgUpdateGroupAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupMetadata(value: MsgUpdateGroupMetadata): { + typeUrl: string; + value: Uint8Array; + }; + createGroupPolicy(value: MsgCreateGroupPolicy): { + typeUrl: string; + value: Uint8Array; + }; + createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: Uint8Array; + }; + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: Uint8Array; + }; + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: Uint8Array; + }; + withdrawProposal(value: MsgWithdrawProposal): { + typeUrl: string; + value: Uint8Array; + }; + vote(value: MsgVote): { + typeUrl: string; + value: Uint8Array; + }; + exec(value: MsgExec): { + typeUrl: string; + value: Uint8Array; + }; + leaveGroup(value: MsgLeaveGroup): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createGroup(value: MsgCreateGroup): { + typeUrl: string; + value: MsgCreateGroup; + }; + updateGroupMembers(value: MsgUpdateGroupMembers): { + typeUrl: string; + value: MsgUpdateGroupMembers; + }; + updateGroupAdmin(value: MsgUpdateGroupAdmin): { + typeUrl: string; + value: MsgUpdateGroupAdmin; + }; + updateGroupMetadata(value: MsgUpdateGroupMetadata): { + typeUrl: string; + value: MsgUpdateGroupMetadata; + }; + createGroupPolicy(value: MsgCreateGroupPolicy): { + typeUrl: string; + value: MsgCreateGroupPolicy; + }; + createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { + typeUrl: string; + value: MsgCreateGroupWithPolicy; + }; + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: MsgUpdateGroupPolicyAdmin; + }; + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: MsgUpdateGroupPolicyDecisionPolicy; + }; + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: MsgUpdateGroupPolicyMetadata; + }; + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + withdrawProposal(value: MsgWithdrawProposal): { + typeUrl: string; + value: MsgWithdrawProposal; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + exec(value: MsgExec): { + typeUrl: string; + value: MsgExec; + }; + leaveGroup(value: MsgLeaveGroup): { + typeUrl: string; + value: MsgLeaveGroup; + }; + }; + fromPartial: { + createGroup(value: MsgCreateGroup): { + typeUrl: string; + value: MsgCreateGroup; + }; + updateGroupMembers(value: MsgUpdateGroupMembers): { + typeUrl: string; + value: MsgUpdateGroupMembers; + }; + updateGroupAdmin(value: MsgUpdateGroupAdmin): { + typeUrl: string; + value: MsgUpdateGroupAdmin; + }; + updateGroupMetadata(value: MsgUpdateGroupMetadata): { + typeUrl: string; + value: MsgUpdateGroupMetadata; + }; + createGroupPolicy(value: MsgCreateGroupPolicy): { + typeUrl: string; + value: MsgCreateGroupPolicy; + }; + createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { + typeUrl: string; + value: MsgCreateGroupWithPolicy; + }; + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { + typeUrl: string; + value: MsgUpdateGroupPolicyAdmin; + }; + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { + typeUrl: string; + value: MsgUpdateGroupPolicyDecisionPolicy; + }; + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { + typeUrl: string; + value: MsgUpdateGroupPolicyMetadata; + }; + submitProposal(value: MsgSubmitProposal): { + typeUrl: string; + value: MsgSubmitProposal; + }; + withdrawProposal(value: MsgWithdrawProposal): { + typeUrl: string; + value: MsgWithdrawProposal; + }; + vote(value: MsgVote): { + typeUrl: string; + value: MsgVote; + }; + exec(value: MsgExec): { + typeUrl: string; + value: MsgExec; + }; + leaveGroup(value: MsgLeaveGroup): { + typeUrl: string; + value: MsgLeaveGroup; + }; + }; +}; diff --git a/packages/api/dist/cosmos/group/v1/tx.registry.js b/packages/api/dist/cosmos/group/v1/tx.registry.js new file mode 100644 index 00000000..8f9530c5 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.registry.js @@ -0,0 +1,271 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.group.v1.MsgCreateGroup", tx_1.MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", tx_1.MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", tx_1.MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", tx_1.MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", tx_1.MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", tx_1.MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", tx_1.MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", tx_1.MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", tx_1.MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", tx_1.MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", tx_1.MsgVote], ["/cosmos.group.v1.MsgExec", tx_1.MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", tx_1.MsgLeaveGroup]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: tx_1.MsgCreateGroup.encode(value).finish() + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: tx_1.MsgUpdateGroupMembers.encode(value).finish() + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: tx_1.MsgUpdateGroupAdmin.encode(value).finish() + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: tx_1.MsgUpdateGroupMetadata.encode(value).finish() + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: tx_1.MsgCreateGroupPolicy.encode(value).finish() + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: tx_1.MsgCreateGroupWithPolicy.encode(value).finish() + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: tx_1.MsgUpdateGroupPolicyAdmin.encode(value).finish() + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: tx_1.MsgUpdateGroupPolicyMetadata.encode(value).finish() + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.encode(value).finish() + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: tx_1.MsgWithdrawProposal.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: tx_1.MsgVote.encode(value).finish() + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: tx_1.MsgExec.encode(value).finish() + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: tx_1.MsgLeaveGroup.encode(value).finish() + }; + } + }, + withTypeUrl: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value + }; + } + }, + fromPartial: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: tx_1.MsgCreateGroup.fromPartial(value) + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: tx_1.MsgUpdateGroupMembers.fromPartial(value) + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: tx_1.MsgUpdateGroupAdmin.fromPartial(value) + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: tx_1.MsgUpdateGroupMetadata.fromPartial(value) + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: tx_1.MsgCreateGroupPolicy.fromPartial(value) + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: tx_1.MsgCreateGroupWithPolicy.fromPartial(value) + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: tx_1.MsgUpdateGroupPolicyAdmin.fromPartial(value) + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: tx_1.MsgUpdateGroupPolicyMetadata.fromPartial(value) + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: tx_1.MsgSubmitProposal.fromPartial(value) + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: tx_1.MsgWithdrawProposal.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: tx_1.MsgVote.fromPartial(value) + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: tx_1.MsgExec.fromPartial(value) + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: tx_1.MsgLeaveGroup.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..28620343 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts @@ -0,0 +1,51 @@ +import { Rpc } from "../../../helpers"; +import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; +/** Msg is the cosmos.group.v1 Msg service. */ +export interface Msg { + /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ + createGroup(request: MsgCreateGroup): Promise; + /** UpdateGroupMembers updates the group members with given group id and admin address. */ + updateGroupMembers(request: MsgUpdateGroupMembers): Promise; + /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ + updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; + /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ + updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; + /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ + createGroupPolicy(request: MsgCreateGroupPolicy): Promise; + /** CreateGroupWithPolicy creates a new group with policy. */ + createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; + /** UpdateGroupPolicyAdmin updates a group policy admin. */ + updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; + /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ + updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; + /** UpdateGroupPolicyMetadata updates a group policy metadata. */ + updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; + /** SubmitProposal submits a new proposal. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** WithdrawProposal withdraws a proposal. */ + withdrawProposal(request: MsgWithdrawProposal): Promise; + /** Vote allows a voter to vote on a proposal. */ + vote(request: MsgVote): Promise; + /** Exec executes a proposal. */ + exec(request: MsgExec): Promise; + /** LeaveGroup allows a group member to leave the group. */ + leaveGroup(request: MsgLeaveGroup): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createGroup(request: MsgCreateGroup): Promise; + updateGroupMembers(request: MsgUpdateGroupMembers): Promise; + updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; + updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; + createGroupPolicy(request: MsgCreateGroupPolicy): Promise; + createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; + updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; + updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; + updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; + submitProposal(request: MsgSubmitProposal): Promise; + withdrawProposal(request: MsgWithdrawProposal): Promise; + vote(request: MsgVote): Promise; + exec(request: MsgExec): Promise; + leaveGroup(request: MsgLeaveGroup): Promise; +} diff --git a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js new file mode 100644 index 00000000..1d338d6e --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js @@ -0,0 +1,96 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createGroup = this.createGroup.bind(this); + this.updateGroupMembers = this.updateGroupMembers.bind(this); + this.updateGroupAdmin = this.updateGroupAdmin.bind(this); + this.updateGroupMetadata = this.updateGroupMetadata.bind(this); + this.createGroupPolicy = this.createGroupPolicy.bind(this); + this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); + this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); + this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); + this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); + this.submitProposal = this.submitProposal.bind(this); + this.withdrawProposal = this.withdrawProposal.bind(this); + this.vote = this.vote.bind(this); + this.exec = this.exec.bind(this); + this.leaveGroup = this.leaveGroup.bind(this); + } + createGroup(request) { + const data = tx_1.MsgCreateGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); + return promise.then(data => tx_1.MsgCreateGroupResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupMembers(request) { + const data = tx_1.MsgUpdateGroupMembers.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); + return promise.then(data => tx_1.MsgUpdateGroupMembersResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupAdmin(request) { + const data = tx_1.MsgUpdateGroupAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); + return promise.then(data => tx_1.MsgUpdateGroupAdminResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupMetadata(request) { + const data = tx_1.MsgUpdateGroupMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); + return promise.then(data => tx_1.MsgUpdateGroupMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + createGroupPolicy(request) { + const data = tx_1.MsgCreateGroupPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); + return promise.then(data => tx_1.MsgCreateGroupPolicyResponse.decode(new binary_1.BinaryReader(data))); + } + createGroupWithPolicy(request) { + const data = tx_1.MsgCreateGroupWithPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); + return promise.then(data => tx_1.MsgCreateGroupWithPolicyResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupPolicyAdmin(request) { + const data = tx_1.MsgUpdateGroupPolicyAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); + return promise.then(data => tx_1.MsgUpdateGroupPolicyAdminResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupPolicyDecisionPolicy(request) { + const data = tx_1.MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); + return promise.then(data => tx_1.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new binary_1.BinaryReader(data))); + } + updateGroupPolicyMetadata(request) { + const data = tx_1.MsgUpdateGroupPolicyMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); + return promise.then(data => tx_1.MsgUpdateGroupPolicyMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + submitProposal(request) { + const data = tx_1.MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); + return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); + } + withdrawProposal(request) { + const data = tx_1.MsgWithdrawProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); + return promise.then(data => tx_1.MsgWithdrawProposalResponse.decode(new binary_1.BinaryReader(data))); + } + vote(request) { + const data = tx_1.MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); + return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); + } + exec(request) { + const data = tx_1.MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); + return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data))); + } + leaveGroup(request) { + const data = tx_1.MsgLeaveGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); + return promise.then(data => tx_1.MsgLeaveGroupResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/group/v1/types.d.ts b/packages/api/dist/cosmos/group/v1/types.d.ts new file mode 100644 index 00000000..b5649764 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/types.d.ts @@ -0,0 +1,831 @@ +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** VoteOption enumerates the valid vote options for a given proposal. */ +export declare enum VoteOption { + /** + * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + * return an error. + */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1 +} +export declare const VoteOptionSDKType: typeof VoteOption; +export declare const VoteOptionAmino: typeof VoteOption; +export declare function voteOptionFromJSON(object: any): VoteOption; +export declare function voteOptionToJSON(object: VoteOption): string; +/** ProposalStatus defines proposal statuses. */ +export declare enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ + PROPOSAL_STATUS_SUBMITTED = 1, + /** + * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome + * passes the group policy's decision policy. + */ + PROPOSAL_STATUS_ACCEPTED = 2, + /** + * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome + * is rejected by the group policy's decision policy. + */ + PROPOSAL_STATUS_REJECTED = 3, + /** + * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the + * final tally. + */ + PROPOSAL_STATUS_ABORTED = 4, + /** + * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. + * When this happens the final status is Withdrawn. + */ + PROPOSAL_STATUS_WITHDRAWN = 5, + UNRECOGNIZED = -1 +} +export declare const ProposalStatusSDKType: typeof ProposalStatus; +export declare const ProposalStatusAmino: typeof ProposalStatus; +export declare function proposalStatusFromJSON(object: any): ProposalStatus; +export declare function proposalStatusToJSON(object: ProposalStatus): string; +/** ProposalExecutorResult defines types of proposal executor results. */ +export declare enum ProposalExecutorResult { + /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ + PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, + /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ + PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, + /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ + PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, + /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ + PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, + UNRECOGNIZED = -1 +} +export declare const ProposalExecutorResultSDKType: typeof ProposalExecutorResult; +export declare const ProposalExecutorResultAmino: typeof ProposalExecutorResult; +export declare function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult; +export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string; +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface Member { + /** address is the member's account address. */ + address: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata: string; + /** added_at is a timestamp specifying when a member was added. */ + addedAt: Date; +} +export interface MemberProtoMsg { + typeUrl: "/cosmos.group.v1.Member"; + value: Uint8Array; +} +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface MemberAmino { + /** address is the member's account address. */ + address?: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight?: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata?: string; + /** added_at is a timestamp specifying when a member was added. */ + added_at?: string; +} +export interface MemberAminoMsg { + type: "cosmos-sdk/Member"; + value: MemberAmino; +} +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface MemberSDKType { + address: string; + weight: string; + metadata: string; + added_at: Date; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequest { + /** address is the member's account address. */ + address: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata: string; +} +export interface MemberRequestProtoMsg { + typeUrl: "/cosmos.group.v1.MemberRequest"; + value: Uint8Array; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequestAmino { + /** address is the member's account address. */ + address?: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight?: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata?: string; +} +export interface MemberRequestAminoMsg { + type: "cosmos-sdk/MemberRequest"; + value: MemberRequestAmino; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequestSDKType { + address: string; + weight: string; + metadata: string; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicy { + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; + /** + * threshold is the minimum weighted sum of `YES` votes that must be met or + * exceeded for a proposal to succeed. + */ + threshold: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindows; +} +export interface ThresholdDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; + value: Uint8Array; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicyAmino { + /** + * threshold is the minimum weighted sum of `YES` votes that must be met or + * exceeded for a proposal to succeed. + */ + threshold?: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindowsAmino; +} +export interface ThresholdDecisionPolicyAminoMsg { + type: "cosmos-sdk/ThresholdDecisionPolicy"; + value: ThresholdDecisionPolicyAmino; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicySDKType { + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; + threshold: string; + windows?: DecisionPolicyWindowsSDKType; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicy { + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; + /** + * percentage is the minimum percentage the weighted sum of `YES` votes must + * meet for a proposal to succeed. + */ + percentage: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindows; +} +export interface PercentageDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; + value: Uint8Array; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicyAmino { + /** + * percentage is the minimum percentage the weighted sum of `YES` votes must + * meet for a proposal to succeed. + */ + percentage?: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindowsAmino; +} +export interface PercentageDecisionPolicyAminoMsg { + type: "cosmos-sdk/PercentageDecisionPolicy"; + value: PercentageDecisionPolicyAmino; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicySDKType { + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; + percentage: string; + windows?: DecisionPolicyWindowsSDKType; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindows { + /** + * voting_period is the duration from submission of a proposal to the end of voting period + * Within this times votes can be submitted with MsgVote. + */ + votingPeriod: Duration; + /** + * min_execution_period is the minimum duration after the proposal submission + * where members can start sending MsgExec. This means that the window for + * sending a MsgExec transaction is: + * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + * where max_execution_period is a app-specific config, defined in the keeper. + * If not set, min_execution_period will default to 0. + * + * Please make sure to set a `min_execution_period` that is smaller than + * `voting_period + max_execution_period`, or else the above execution window + * is empty, meaning that all proposals created with this decision policy + * won't be able to be executed. + */ + minExecutionPeriod: Duration; +} +export interface DecisionPolicyWindowsProtoMsg { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; + value: Uint8Array; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindowsAmino { + /** + * voting_period is the duration from submission of a proposal to the end of voting period + * Within this times votes can be submitted with MsgVote. + */ + voting_period?: DurationAmino; + /** + * min_execution_period is the minimum duration after the proposal submission + * where members can start sending MsgExec. This means that the window for + * sending a MsgExec transaction is: + * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + * where max_execution_period is a app-specific config, defined in the keeper. + * If not set, min_execution_period will default to 0. + * + * Please make sure to set a `min_execution_period` that is smaller than + * `voting_period + max_execution_period`, or else the above execution window + * is empty, meaning that all proposals created with this decision policy + * won't be able to be executed. + */ + min_execution_period?: DurationAmino; +} +export interface DecisionPolicyWindowsAminoMsg { + type: "cosmos-sdk/DecisionPolicyWindows"; + value: DecisionPolicyWindowsAmino; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindowsSDKType { + voting_period: DurationSDKType; + min_execution_period: DurationSDKType; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfo { + /** id is the unique ID of the group. */ + id: bigint; + /** admin is the account address of the group's admin. */ + admin: string; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata: string; + /** + * version is used to track changes to a group's membership structure that + * would break existing proposals. Whenever any members weight is changed, + * or any member is added or removed this version is incremented and will + * cause proposals based on older versions of this group to fail + */ + version: bigint; + /** total_weight is the sum of the group members' weights. */ + totalWeight: string; + /** created_at is a timestamp specifying when a group was created. */ + createdAt: Date; +} +export interface GroupInfoProtoMsg { + typeUrl: "/cosmos.group.v1.GroupInfo"; + value: Uint8Array; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfoAmino { + /** id is the unique ID of the group. */ + id?: string; + /** admin is the account address of the group's admin. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata?: string; + /** + * version is used to track changes to a group's membership structure that + * would break existing proposals. Whenever any members weight is changed, + * or any member is added or removed this version is incremented and will + * cause proposals based on older versions of this group to fail + */ + version?: string; + /** total_weight is the sum of the group members' weights. */ + total_weight?: string; + /** created_at is a timestamp specifying when a group was created. */ + created_at?: string; +} +export interface GroupInfoAminoMsg { + type: "cosmos-sdk/GroupInfo"; + value: GroupInfoAmino; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfoSDKType { + id: bigint; + admin: string; + metadata: string; + version: bigint; + total_weight: string; + created_at: Date; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMember { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** member is the member data. */ + member?: Member; +} +export interface GroupMemberProtoMsg { + typeUrl: "/cosmos.group.v1.GroupMember"; + value: Uint8Array; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMemberAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** member is the member data. */ + member?: MemberAmino; +} +export interface GroupMemberAminoMsg { + type: "cosmos-sdk/GroupMember"; + value: GroupMemberAmino; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMemberSDKType { + group_id: bigint; + member?: MemberSDKType; +} +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfo { + /** address is the account address of group policy. */ + address: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** admin is the account address of the group admin. */ + admin: string; + /** metadata is any arbitrary metadata to attached to the group policy. */ + metadata: string; + /** + * version is used to track changes to a group's GroupPolicyInfo structure that + * would create a different result on a running proposal. + */ + version: bigint; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; + /** created_at is a timestamp specifying when a group policy was created. */ + createdAt: Date; +} +export interface GroupPolicyInfoProtoMsg { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; + value: Uint8Array; +} +export type GroupPolicyInfoEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfoAmino { + /** address is the account address of group policy. */ + address?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** admin is the account address of the group admin. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the group policy. */ + metadata?: string; + /** + * version is used to track changes to a group's GroupPolicyInfo structure that + * would create a different result on a running proposal. + */ + version?: string; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; + /** created_at is a timestamp specifying when a group policy was created. */ + created_at?: string; +} +export interface GroupPolicyInfoAminoMsg { + type: "cosmos-sdk/GroupPolicyInfo"; + value: GroupPolicyInfoAmino; +} +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfoSDKType { + address: string; + group_id: bigint; + admin: string; + metadata: string; + version: bigint; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; + created_at: Date; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface Proposal { + /** id is the unique id of the proposal. */ + id: bigint; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata: string; + /** proposers are the account addresses of the proposers. */ + proposers: string[]; + /** submit_time is a timestamp specifying when a proposal was submitted. */ + submitTime: Date; + /** + * group_version tracks the version of the group at proposal submission. + * This field is here for informational purposes only. + */ + groupVersion: bigint; + /** + * group_policy_version tracks the version of the group policy at proposal submission. + * When a decision policy is changed, existing proposals from previous policy + * versions will become invalid with the `ABORTED` status. + * This field is here for informational purposes only. + */ + groupPolicyVersion: bigint; + /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ + status: ProposalStatus; + /** + * final_tally_result contains the sums of all weighted votes for this + * proposal for each vote option. It is empty at submission, and only + * populated after tallying, at voting period end or at proposal execution, + * whichever happens first. + */ + finalTallyResult: TallyResult; + /** + * voting_period_end is the timestamp before which voting must be done. + * Unless a successfull MsgExec is called before (to execute a proposal whose + * tally is successful before the voting period ends), tallying will be done + * at this point, and the `final_tally_result`and `status` fields will be + * accordingly updated. + */ + votingPeriodEnd: Date; + /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ + executorResult: ProposalExecutorResult; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages: Any[]; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.group.v1.Proposal"; + value: Uint8Array; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface ProposalAmino { + /** id is the unique id of the proposal. */ + id?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata?: string; + /** proposers are the account addresses of the proposers. */ + proposers?: string[]; + /** submit_time is a timestamp specifying when a proposal was submitted. */ + submit_time?: string; + /** + * group_version tracks the version of the group at proposal submission. + * This field is here for informational purposes only. + */ + group_version?: string; + /** + * group_policy_version tracks the version of the group policy at proposal submission. + * When a decision policy is changed, existing proposals from previous policy + * versions will become invalid with the `ABORTED` status. + * This field is here for informational purposes only. + */ + group_policy_version?: string; + /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ + status?: ProposalStatus; + /** + * final_tally_result contains the sums of all weighted votes for this + * proposal for each vote option. It is empty at submission, and only + * populated after tallying, at voting period end or at proposal execution, + * whichever happens first. + */ + final_tally_result?: TallyResultAmino; + /** + * voting_period_end is the timestamp before which voting must be done. + * Unless a successfull MsgExec is called before (to execute a proposal whose + * tally is successful before the voting period ends), tallying will be done + * at this point, and the `final_tally_result`and `status` fields will be + * accordingly updated. + */ + voting_period_end?: string; + /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ + executor_result?: ProposalExecutorResult; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages?: AnyAmino[]; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/Proposal"; + value: ProposalAmino; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface ProposalSDKType { + id: bigint; + group_policy_address: string; + metadata: string; + proposers: string[]; + submit_time: Date; + group_version: bigint; + group_policy_version: bigint; + status: ProposalStatus; + final_tally_result: TallyResultSDKType; + voting_period_end: Date; + executor_result: ProposalExecutorResult; + messages: AnySDKType[]; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResult { + /** yes_count is the weighted sum of yes votes. */ + yesCount: string; + /** abstain_count is the weighted sum of abstainers. */ + abstainCount: string; + /** no_count is the weighted sum of no votes. */ + noCount: string; + /** no_with_veto_count is the weighted sum of veto. */ + noWithVetoCount: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.group.v1.TallyResult"; + value: Uint8Array; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResultAmino { + /** yes_count is the weighted sum of yes votes. */ + yes_count?: string; + /** abstain_count is the weighted sum of abstainers. */ + abstain_count?: string; + /** no_count is the weighted sum of no votes. */ + no_count?: string; + /** no_with_veto_count is the weighted sum of veto. */ + no_with_veto_count?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResultSDKType { + yes_count: string; + abstain_count: string; + no_count: string; + no_with_veto_count: string; +} +/** Vote represents a vote for a proposal. */ +export interface Vote { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** voter is the account address of the voter. */ + voter: string; + /** option is the voter's choice on the proposal. */ + option: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; + /** submit_time is the timestamp when the vote was submitted. */ + submitTime: Date; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.group.v1.Vote"; + value: Uint8Array; +} +/** Vote represents a vote for a proposal. */ +export interface VoteAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** voter is the account address of the voter. */ + voter?: string; + /** option is the voter's choice on the proposal. */ + option?: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; + /** submit_time is the timestamp when the vote was submitted. */ + submit_time?: string; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/Vote"; + value: VoteAmino; +} +/** Vote represents a vote for a proposal. */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; + submit_time: Date; +} +export declare const Member: { + typeUrl: string; + encode(message: Member, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Member; + fromPartial(object: Partial): Member; + fromAmino(object: MemberAmino): Member; + toAmino(message: Member): MemberAmino; + fromAminoMsg(object: MemberAminoMsg): Member; + toAminoMsg(message: Member): MemberAminoMsg; + fromProtoMsg(message: MemberProtoMsg): Member; + toProto(message: Member): Uint8Array; + toProtoMsg(message: Member): MemberProtoMsg; +}; +export declare const MemberRequest: { + typeUrl: string; + encode(message: MemberRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest; + fromPartial(object: Partial): MemberRequest; + fromAmino(object: MemberRequestAmino): MemberRequest; + toAmino(message: MemberRequest): MemberRequestAmino; + fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest; + toAminoMsg(message: MemberRequest): MemberRequestAminoMsg; + fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest; + toProto(message: MemberRequest): Uint8Array; + toProtoMsg(message: MemberRequest): MemberRequestProtoMsg; +}; +export declare const ThresholdDecisionPolicy: { + typeUrl: string; + encode(message: ThresholdDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy; + fromPartial(object: Partial): ThresholdDecisionPolicy; + fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy; + toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino; + fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy; + toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg; + fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy; + toProto(message: ThresholdDecisionPolicy): Uint8Array; + toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg; +}; +export declare const PercentageDecisionPolicy: { + typeUrl: string; + encode(message: PercentageDecisionPolicy, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy; + fromPartial(object: Partial): PercentageDecisionPolicy; + fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy; + toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino; + fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy; + toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg; + fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy; + toProto(message: PercentageDecisionPolicy): Uint8Array; + toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg; +}; +export declare const DecisionPolicyWindows: { + typeUrl: string; + encode(message: DecisionPolicyWindows, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows; + fromPartial(object: Partial): DecisionPolicyWindows; + fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows; + toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino; + fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows; + toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg; + fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows; + toProto(message: DecisionPolicyWindows): Uint8Array; + toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg; +}; +export declare const GroupInfo: { + typeUrl: string; + encode(message: GroupInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo; + fromPartial(object: Partial): GroupInfo; + fromAmino(object: GroupInfoAmino): GroupInfo; + toAmino(message: GroupInfo): GroupInfoAmino; + fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo; + toAminoMsg(message: GroupInfo): GroupInfoAminoMsg; + fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo; + toProto(message: GroupInfo): Uint8Array; + toProtoMsg(message: GroupInfo): GroupInfoProtoMsg; +}; +export declare const GroupMember: { + typeUrl: string; + encode(message: GroupMember, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupMember; + fromPartial(object: Partial): GroupMember; + fromAmino(object: GroupMemberAmino): GroupMember; + toAmino(message: GroupMember): GroupMemberAmino; + fromAminoMsg(object: GroupMemberAminoMsg): GroupMember; + toAminoMsg(message: GroupMember): GroupMemberAminoMsg; + fromProtoMsg(message: GroupMemberProtoMsg): GroupMember; + toProto(message: GroupMember): Uint8Array; + toProtoMsg(message: GroupMember): GroupMemberProtoMsg; +}; +export declare const GroupPolicyInfo: { + typeUrl: string; + encode(message: GroupPolicyInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo; + fromPartial(object: Partial): GroupPolicyInfo; + fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo; + toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino; + fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo; + toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg; + fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo; + toProto(message: GroupPolicyInfo): Uint8Array; + toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg; +}; +export declare const Proposal: { + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; + fromPartial(object: Partial): Proposal; + fromAmino(object: ProposalAmino): Proposal; + toAmino(message: Proposal): ProposalAmino; + fromAminoMsg(object: ProposalAminoMsg): Proposal; + toAminoMsg(message: Proposal): ProposalAminoMsg; + fromProtoMsg(message: ProposalProtoMsg): Proposal; + toProto(message: Proposal): Uint8Array; + toProtoMsg(message: Proposal): ProposalProtoMsg; +}; +export declare const TallyResult: { + typeUrl: string; + encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; + fromPartial(object: Partial): TallyResult; + fromAmino(object: TallyResultAmino): TallyResult; + toAmino(message: TallyResult): TallyResultAmino; + fromAminoMsg(object: TallyResultAminoMsg): TallyResult; + toAminoMsg(message: TallyResult): TallyResultAminoMsg; + fromProtoMsg(message: TallyResultProtoMsg): TallyResult; + toProto(message: TallyResult): Uint8Array; + toProtoMsg(message: TallyResult): TallyResultProtoMsg; +}; +export declare const Vote: { + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; + fromPartial(object: Partial): Vote; + fromAmino(object: VoteAmino): Vote; + toAmino(message: Vote): VoteAmino; + fromAminoMsg(object: VoteAminoMsg): Vote; + toAminoMsg(message: Vote): VoteAminoMsg; + fromProtoMsg(message: VoteProtoMsg): Vote; + toProto(message: Vote): Uint8Array; + toProtoMsg(message: Vote): VoteProtoMsg; +}; +export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; +export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; +export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/group/v1/types.js b/packages/api/dist/cosmos/group/v1/types.js new file mode 100644 index 00000000..0daaf445 --- /dev/null +++ b/packages/api/dist/cosmos/group/v1/types.js @@ -0,0 +1,1471 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DecisionPolicy_ToAmino = exports.DecisionPolicy_FromAmino = exports.DecisionPolicy_InterfaceDecoder = exports.Vote = exports.TallyResult = exports.Proposal = exports.GroupPolicyInfo = exports.GroupMember = exports.GroupInfo = exports.DecisionPolicyWindows = exports.PercentageDecisionPolicy = exports.ThresholdDecisionPolicy = exports.MemberRequest = exports.Member = exports.proposalExecutorResultToJSON = exports.proposalExecutorResultFromJSON = exports.ProposalExecutorResultAmino = exports.ProposalExecutorResultSDKType = exports.ProposalExecutorResult = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const duration_1 = require("../../../google/protobuf/duration"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +/** VoteOption enumerates the valid vote options for a given proposal. */ +var VoteOption; +(function (VoteOption) { + /** + * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + * return an error. + */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (exports.VoteOption = VoteOption = {})); +exports.VoteOptionSDKType = VoteOption; +exports.VoteOptionAmino = VoteOption; +function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +exports.voteOptionFromJSON = voteOptionFromJSON; +function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.voteOptionToJSON = voteOptionToJSON; +/** ProposalStatus defines proposal statuses. */ +var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED"; + /** + * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome + * passes the group policy's decision policy. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED"; + /** + * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome + * is rejected by the group policy's decision policy. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the + * final tally. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED"; + /** + * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. + * When this happens the final status is Withdrawn. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); +exports.ProposalStatusSDKType = ProposalStatus; +exports.ProposalStatusAmino = ProposalStatus; +function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_SUBMITTED": + return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; + case 2: + case "PROPOSAL_STATUS_ACCEPTED": + return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; + case 3: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 4: + case "PROPOSAL_STATUS_ABORTED": + return ProposalStatus.PROPOSAL_STATUS_ABORTED; + case 5: + case "PROPOSAL_STATUS_WITHDRAWN": + return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +exports.proposalStatusFromJSON = proposalStatusFromJSON; +function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: + return "PROPOSAL_STATUS_SUBMITTED"; + case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: + return "PROPOSAL_STATUS_ACCEPTED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_ABORTED: + return "PROPOSAL_STATUS_ABORTED"; + case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: + return "PROPOSAL_STATUS_WITHDRAWN"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.proposalStatusToJSON = proposalStatusToJSON; +/** ProposalExecutorResult defines types of proposal executor results. */ +var ProposalExecutorResult; +(function (ProposalExecutorResult) { + /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; + /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; + /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; + /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalExecutorResult || (exports.ProposalExecutorResult = ProposalExecutorResult = {})); +exports.ProposalExecutorResultSDKType = ProposalExecutorResult; +exports.ProposalExecutorResultAmino = ProposalExecutorResult; +function proposalExecutorResultFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; + case 1: + case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; + case 2: + case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; + case 3: + case "PROPOSAL_EXECUTOR_RESULT_FAILURE": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; + case -1: + case "UNRECOGNIZED": + default: + return ProposalExecutorResult.UNRECOGNIZED; + } +} +exports.proposalExecutorResultFromJSON = proposalExecutorResultFromJSON; +function proposalExecutorResultToJSON(object) { + switch (object) { + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: + return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: + return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: + return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: + return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + case ProposalExecutorResult.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.proposalExecutorResultToJSON = proposalExecutorResultToJSON; +function createBaseMember() { + return { + address: "", + weight: "", + metadata: "", + addedAt: new Date() + }; +} +exports.Member = { + typeUrl: "/cosmos.group.v1.Member", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.addedAt !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.addedAt), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMember(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + message.addedAt = object.addedAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMember(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.added_at !== undefined && object.added_at !== null) { + message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.added_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.added_at = message.addedAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.addedAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Member.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Member", + value: exports.Member.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Member.decode(message.value); + }, + toProto(message) { + return exports.Member.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Member", + value: exports.Member.encode(message).finish() + }; + } +}; +function createBaseMemberRequest() { + return { + address: "", + weight: "", + metadata: "" + }; +} +exports.MemberRequest = { + typeUrl: "/cosmos.group.v1.MemberRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMemberRequest(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MemberRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MemberRequest", + value: exports.MemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MemberRequest.decode(message.value); + }, + toProto(message) { + return exports.MemberRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MemberRequest", + value: exports.MemberRequest.encode(message).finish() + }; + } +}; +function createBaseThresholdDecisionPolicy() { + return { + $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + threshold: "", + windows: undefined + }; +} +exports.ThresholdDecisionPolicy = { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.threshold !== "") { + writer.uint32(10).string(message.threshold); + } + if (message.windows !== undefined) { + exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseThresholdDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.string(); + break; + case 2: + message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseThresholdDecisionPolicy(); + message.threshold = object.threshold ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseThresholdDecisionPolicy(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ThresholdDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: exports.ThresholdDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ThresholdDecisionPolicy.decode(message.value); + }, + toProto(message) { + return exports.ThresholdDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: exports.ThresholdDecisionPolicy.encode(message).finish() + }; + } +}; +function createBasePercentageDecisionPolicy() { + return { + $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + percentage: "", + windows: undefined + }; +} +exports.PercentageDecisionPolicy = { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.percentage !== "") { + writer.uint32(10).string(message.percentage); + } + if (message.windows !== undefined) { + exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePercentageDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.percentage = reader.string(); + break; + case 2: + message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePercentageDecisionPolicy(); + message.percentage = object.percentage ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePercentageDecisionPolicy(); + if (object.percentage !== undefined && object.percentage !== null) { + message.percentage = object.percentage; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.percentage = message.percentage === "" ? undefined : message.percentage; + obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PercentageDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: exports.PercentageDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PercentageDecisionPolicy.decode(message.value); + }, + toProto(message) { + return exports.PercentageDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: exports.PercentageDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseDecisionPolicyWindows() { + return { + votingPeriod: duration_1.Duration.fromPartial({}), + minExecutionPeriod: duration_1.Duration.fromPartial({}) + }; +} +exports.DecisionPolicyWindows = { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + if (message.minExecutionPeriod !== undefined) { + duration_1.Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecisionPolicyWindows(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.minExecutionPeriod = duration_1.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecisionPolicyWindows(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; + message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? duration_1.Duration.fromPartial(object.minExecutionPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDecisionPolicyWindows(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); + } + if (object.min_execution_period !== undefined && object.min_execution_period !== null) { + message.minExecutionPeriod = duration_1.Duration.fromAmino(object.min_execution_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; + obj.min_execution_period = message.minExecutionPeriod ? duration_1.Duration.toAmino(message.minExecutionPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DecisionPolicyWindows.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecisionPolicyWindows", + value: exports.DecisionPolicyWindows.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DecisionPolicyWindows.decode(message.value); + }, + toProto(message) { + return exports.DecisionPolicyWindows.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + value: exports.DecisionPolicyWindows.encode(message).finish() + }; + } +}; +function createBaseGroupInfo() { + return { + id: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + totalWeight: "", + createdAt: new Date() + }; +} +exports.GroupInfo = { + typeUrl: "/cosmos.group.v1.GroupInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(32).uint64(message.version); + } + if (message.totalWeight !== "") { + writer.uint32(42).string(message.totalWeight); + } + if (message.createdAt !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.version = reader.uint64(); + break; + case 5: + message.totalWeight = reader.string(); + break; + case 6: + message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.totalWeight = object.totalWeight ?? ""; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.total_weight !== undefined && object.total_weight !== null) { + message.totalWeight = object.total_weight; + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; + obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GroupInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupInfo", + value: exports.GroupInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GroupInfo.decode(message.value); + }, + toProto(message) { + return exports.GroupInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupInfo", + value: exports.GroupInfo.encode(message).finish() + }; + } +}; +function createBaseGroupMember() { + return { + groupId: BigInt(0), + member: undefined + }; +} +exports.GroupMember = { + typeUrl: "/cosmos.group.v1.GroupMember", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.member !== undefined) { + exports.Member.encode(message.member, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.member = exports.Member.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupMember(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.member = object.member !== undefined && object.member !== null ? exports.Member.fromPartial(object.member) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupMember(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.member !== undefined && object.member !== null) { + message.member = exports.Member.fromAmino(object.member); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.member = message.member ? exports.Member.toAmino(message.member) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GroupMember.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupMember", + value: exports.GroupMember.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GroupMember.decode(message.value); + }, + toProto(message) { + return exports.GroupMember.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupMember", + value: exports.GroupMember.encode(message).finish() + }; + } +}; +function createBaseGroupPolicyInfo() { + return { + address: "", + groupId: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + decisionPolicy: undefined, + createdAt: new Date() + }; +} +exports.GroupPolicyInfo = { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.admin !== "") { + writer.uint32(26).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(40).uint64(message.version); + } + if (message.decisionPolicy !== undefined) { + any_1.Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); + } + if (message.createdAt !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupPolicyInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.admin = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.version = reader.uint64(); + break; + case 6: + message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); + break; + case 7: + message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupPolicyInfo(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupPolicyInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; + obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GroupPolicyInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupPolicyInfo", + value: exports.GroupPolicyInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GroupPolicyInfo.decode(message.value); + }, + toProto(message) { + return exports.GroupPolicyInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + value: exports.GroupPolicyInfo.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + id: BigInt(0), + groupPolicyAddress: "", + metadata: "", + proposers: [], + submitTime: new Date(), + groupVersion: BigInt(0), + groupPolicyVersion: BigInt(0), + status: 0, + finalTallyResult: exports.TallyResult.fromPartial({}), + votingPeriodEnd: new Date(), + executorResult: 0, + messages: [] + }; +} +exports.Proposal = { + typeUrl: "/cosmos.group.v1.Proposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.proposers) { + writer.uint32(34).string(v); + } + if (message.submitTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.groupVersion !== BigInt(0)) { + writer.uint32(48).uint64(message.groupVersion); + } + if (message.groupPolicyVersion !== BigInt(0)) { + writer.uint32(56).uint64(message.groupPolicyVersion); + } + if (message.status !== 0) { + writer.uint32(64).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + exports.TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); + } + if (message.votingPeriodEnd !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); + } + if (message.executorResult !== 0) { + writer.uint32(88).int32(message.executorResult); + } + for (const v of message.messages) { + any_1.Any.encode(v, writer.uint32(98).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.proposers.push(reader.string()); + break; + case 5: + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.groupVersion = reader.uint64(); + break; + case 7: + message.groupPolicyVersion = reader.uint64(); + break; + case 8: + message.status = reader.int32(); + break; + case 9: + message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); + break; + case 10: + message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 11: + message.executorResult = reader.int32(); + break; + case 12: + message.messages.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.submitTime = object.submitTime ?? undefined; + message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); + message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; + message.executorResult = object.executorResult ?? 0; + message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); + } + if (object.group_version !== undefined && object.group_version !== null) { + message.groupVersion = BigInt(object.group_version); + } + if (object.group_policy_version !== undefined && object.group_policy_version !== null) { + message.groupPolicyVersion = BigInt(object.group_policy_version); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); + } + if (object.voting_period_end !== undefined && object.voting_period_end !== null) { + message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_period_end)); + } + if (object.executor_result !== undefined && object.executor_result !== null) { + message.executorResult = object.executor_result; + } + message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } + else { + obj.proposers = message.proposers; + } + obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; + obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; + obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.voting_period_end = message.votingPeriodEnd ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingPeriodEnd)) : undefined; + obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; + if (message.messages) { + obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Proposal", + value: exports.Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Proposal.decode(message.value); + }, + toProto(message) { + return exports.Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Proposal", + value: exports.Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +exports.TallyResult = { + typeUrl: "/cosmos.group.v1.TallyResult", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object) { + return exports.TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyResult", + value: exports.TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TallyResult.decode(message.value); + }, + toProto(message) { + return exports.TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.TallyResult", + value: exports.TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + submitTime: new Date() + }; +} +exports.Vote = { + typeUrl: "/cosmos.group.v1.Vote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.submitTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.submitTime = object.submitTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Vote", + value: exports.Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Vote.decode(message.value); + }, + toProto(message) { + return exports.Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Vote", + value: exports.Vote.encode(message).finish() + }; + } +}; +const DecisionPolicy_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return exports.ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return exports.PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +exports.DecisionPolicy_InterfaceDecoder = DecisionPolicy_InterfaceDecoder; +const DecisionPolicy_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: exports.ThresholdDecisionPolicy.encode(exports.ThresholdDecisionPolicy.fromPartial(exports.ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return any_1.Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: exports.PercentageDecisionPolicy.encode(exports.PercentageDecisionPolicy.fromPartial(exports.PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return any_1.Any.fromAmino(content); + } +}; +exports.DecisionPolicy_FromAmino = DecisionPolicy_FromAmino; +const DecisionPolicy_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: exports.ThresholdDecisionPolicy.toAmino(exports.ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: exports.PercentageDecisionPolicy.toAmino(exports.PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return any_1.Any.toAmino(content); + } +}; +exports.DecisionPolicy_ToAmino = DecisionPolicy_ToAmino; diff --git a/packages/api/dist/cosmos/lcd.d.ts b/packages/api/dist/cosmos/lcd.d.ts new file mode 100644 index 00000000..b03f8e7f --- /dev/null +++ b/packages/api/dist/cosmos/lcd.d.ts @@ -0,0 +1,48 @@ +export declare const createLCDClient: ({ restEndpoint }: { + restEndpoint: string; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: import("./auth/v1beta1/query.lcd").LCDQueryClient; + }; + authz: { + v1beta1: import("./authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("./bank/v1beta1/query.lcd").LCDQueryClient; + }; + base: { + node: { + v1beta1: import("./base/node/v1beta1/query.lcd").LCDQueryClient; + }; + }; + distribution: { + v1beta1: import("./distribution/v1beta1/query.lcd").LCDQueryClient; + }; + feegrant: { + v1beta1: import("./feegrant/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1: import("./gov/v1/query.lcd").LCDQueryClient; + v1beta1: import("./gov/v1beta1/query.lcd").LCDQueryClient; + }; + group: { + v1: import("./group/v1/query.lcd").LCDQueryClient; + }; + mint: { + v1beta1: import("./mint/v1beta1/query.lcd").LCDQueryClient; + }; + params: { + v1beta1: import("./params/v1beta1/query.lcd").LCDQueryClient; + }; + staking: { + v1beta1: import("./staking/v1beta1/query.lcd").LCDQueryClient; + }; + tx: { + v1beta1: import("./tx/v1beta1/service.lcd").LCDQueryClient; + }; + upgrade: { + v1beta1: import("./upgrade/v1beta1/query.lcd").LCDQueryClient; + }; + }; +}>; diff --git a/packages/api/dist/cosmos/lcd.js b/packages/api/dist/cosmos/lcd.js new file mode 100644 index 00000000..c9371773 --- /dev/null +++ b/packages/api/dist/cosmos/lcd.js @@ -0,0 +1,108 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createLCDClient = void 0; +//@ts-nocheck +const lcd_1 = require("@cosmology/lcd"); +const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new lcd_1.LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./auth/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./base/node/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1/query.lcd")))).LCDQueryClient({ + requestClient + }), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("./group/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./mint/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./params/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./tx/v1beta1/service.lcd")))).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + } + }; +}; +exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts new file mode 100644 index 00000000..45889924 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts @@ -0,0 +1,42 @@ +import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisState { + /** minter is a space for holding current inflation information. */ + minter: Minter; + /** params defines all the paramaters of the module. */ + params: Params; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisStateAmino { + /** minter is a space for holding current inflation information. */ + minter?: MinterAmino; + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisStateSDKType { + minter: MinterSDKType; + params: ParamsSDKType; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/genesis.js b/packages/api/dist/cosmos/mint/v1beta1/genesis.js new file mode 100644 index 00000000..3a147aff --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/genesis.js @@ -0,0 +1,87 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const mint_1 = require("./mint"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + minter: mint_1.Minter.fromPartial({}), + params: mint_1.Params.fromPartial({}) + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.minter !== undefined) { + mint_1.Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); + } + if (message.params !== undefined) { + mint_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minter = mint_1.Minter.decode(reader, reader.uint32()); + break; + case 2: + message.params = mint_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.minter = object.minter !== undefined && object.minter !== null ? mint_1.Minter.fromPartial(object.minter) : undefined; + message.params = object.params !== undefined && object.params !== null ? mint_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.minter !== undefined && object.minter !== null) { + message.minter = mint_1.Minter.fromAmino(object.minter); + } + if (object.params !== undefined && object.params !== null) { + message.params = mint_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.minter = message.minter ? mint_1.Minter.toAmino(message.minter) : undefined; + obj.params = message.params ? mint_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts b/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts new file mode 100644 index 00000000..8b858c4d --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts @@ -0,0 +1,101 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Minter represents the minting state. */ +export interface Minter { + /** current annual inflation rate */ + inflation: string; + /** current annual expected provisions */ + annualProvisions: string; +} +export interface MinterProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.Minter"; + value: Uint8Array; +} +/** Minter represents the minting state. */ +export interface MinterAmino { + /** current annual inflation rate */ + inflation?: string; + /** current annual expected provisions */ + annual_provisions?: string; +} +export interface MinterAminoMsg { + type: "cosmos-sdk/Minter"; + value: MinterAmino; +} +/** Minter represents the minting state. */ +export interface MinterSDKType { + inflation: string; + annual_provisions: string; +} +/** Params holds parameters for the mint module. */ +export interface Params { + /** type of coin to mint */ + mintDenom: string; + /** maximum annual change in inflation rate */ + inflationRateChange: string; + /** maximum inflation rate */ + inflationMax: string; + /** minimum inflation rate */ + inflationMin: string; + /** goal of percent bonded atoms */ + goalBonded: string; + /** expected blocks per year */ + blocksPerYear: bigint; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.Params"; + value: Uint8Array; +} +/** Params holds parameters for the mint module. */ +export interface ParamsAmino { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** expected blocks per year */ + blocks_per_year?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params holds parameters for the mint module. */ +export interface ParamsSDKType { + mint_denom: string; + inflation_rate_change: string; + inflation_max: string; + inflation_min: string; + goal_bonded: string; + blocks_per_year: bigint; +} +export declare const Minter: { + typeUrl: string; + encode(message: Minter, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Minter; + fromPartial(object: Partial): Minter; + fromAmino(object: MinterAmino): Minter; + toAmino(message: Minter): MinterAmino; + fromAminoMsg(object: MinterAminoMsg): Minter; + toAminoMsg(message: Minter): MinterAminoMsg; + fromProtoMsg(message: MinterProtoMsg): Minter; + toProto(message: Minter): Uint8Array; + toProtoMsg(message: Minter): MinterProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/mint.js b/packages/api/dist/cosmos/mint/v1beta1/mint.js new file mode 100644 index 00000000..e52ef6c1 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/mint.js @@ -0,0 +1,216 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.Minter = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +const math_1 = require("@cosmjs/math"); +function createBaseMinter() { + return { + inflation: "", + annualProvisions: "" + }; +} +exports.Minter = { + typeUrl: "/cosmos.mint.v1beta1.Minter", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.inflation !== "") { + writer.uint32(10).string(math_1.Decimal.fromUserInput(message.inflation, 18).atomics); + } + if (message.annualProvisions !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.annualProvisions, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMinter(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.annualProvisions = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMinter(); + message.inflation = object.inflation ?? ""; + message.annualProvisions = object.annualProvisions ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMinter(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = object.inflation; + } + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = object.annual_provisions; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.inflation = message.inflation === "" ? undefined : message.inflation; + obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; + return obj; + }, + fromAminoMsg(object) { + return exports.Minter.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Minter", + value: exports.Minter.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Minter.decode(message.value); + }, + toProto(message) { + return exports.Minter.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.Minter", + value: exports.Minter.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + mintDenom: "", + inflationRateChange: "", + inflationMax: "", + inflationMin: "", + goalBonded: "", + blocksPerYear: BigInt(0) + }; +} +exports.Params = { + typeUrl: "/cosmos.mint.v1beta1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.mintDenom !== "") { + writer.uint32(10).string(message.mintDenom); + } + if (message.inflationRateChange !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.inflationRateChange, 18).atomics); + } + if (message.inflationMax !== "") { + writer.uint32(26).string(math_1.Decimal.fromUserInput(message.inflationMax, 18).atomics); + } + if (message.inflationMin !== "") { + writer.uint32(34).string(math_1.Decimal.fromUserInput(message.inflationMin, 18).atomics); + } + if (message.goalBonded !== "") { + writer.uint32(42).string(math_1.Decimal.fromUserInput(message.goalBonded, 18).atomics); + } + if (message.blocksPerYear !== BigInt(0)) { + writer.uint32(48).uint64(message.blocksPerYear); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mintDenom = reader.string(); + break; + case 2: + message.inflationRateChange = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.inflationMax = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.inflationMin = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 5: + message.goalBonded = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 6: + message.blocksPerYear = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.mintDenom = object.mintDenom ?? ""; + message.inflationRateChange = object.inflationRateChange ?? ""; + message.inflationMax = object.inflationMax ?? ""; + message.inflationMin = object.inflationMin ?? ""; + message.goalBonded = object.goalBonded ?? ""; + message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.mint_denom !== undefined && object.mint_denom !== null) { + message.mintDenom = object.mint_denom; + } + if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { + message.inflationRateChange = object.inflation_rate_change; + } + if (object.inflation_max !== undefined && object.inflation_max !== null) { + message.inflationMax = object.inflation_max; + } + if (object.inflation_min !== undefined && object.inflation_min !== null) { + message.inflationMin = object.inflation_min; + } + if (object.goal_bonded !== undefined && object.goal_bonded !== null) { + message.goalBonded = object.goal_bonded; + } + if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { + message.blocksPerYear = BigInt(object.blocks_per_year); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; + obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; + obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; + obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; + obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; + obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.d.ts new file mode 100644 index 00000000..34ffa9b1 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.d.ts @@ -0,0 +1,224 @@ +import { Params, ParamsAmino, ParamsSDKType } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequest { +} +export interface QueryInflationRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; + value: Uint8Array; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequestAmino { +} +export interface QueryInflationRequestAminoMsg { + type: "cosmos-sdk/QueryInflationRequest"; + value: QueryInflationRequestAmino; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequestSDKType { +} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponse { + /** inflation is the current minting inflation value. */ + inflation: Uint8Array; +} +export interface QueryInflationResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; + value: Uint8Array; +} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponseAmino { + /** inflation is the current minting inflation value. */ + inflation?: string; +} +export interface QueryInflationResponseAminoMsg { + type: "cosmos-sdk/QueryInflationResponse"; + value: QueryInflationResponseAmino; +} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponseSDKType { + inflation: Uint8Array; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequest { +} +export interface QueryAnnualProvisionsRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; + value: Uint8Array; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequestAmino { +} +export interface QueryAnnualProvisionsRequestAminoMsg { + type: "cosmos-sdk/QueryAnnualProvisionsRequest"; + value: QueryAnnualProvisionsRequestAmino; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequestSDKType { +} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponse { + /** annual_provisions is the current minting annual provisions value. */ + annualProvisions: Uint8Array; +} +export interface QueryAnnualProvisionsResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; + value: Uint8Array; +} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponseAmino { + /** annual_provisions is the current minting annual provisions value. */ + annual_provisions?: string; +} +export interface QueryAnnualProvisionsResponseAminoMsg { + type: "cosmos-sdk/QueryAnnualProvisionsResponse"; + value: QueryAnnualProvisionsResponseAmino; +} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponseSDKType { + annual_provisions: Uint8Array; +} +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryInflationRequest: { + typeUrl: string; + encode(_: QueryInflationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest; + fromPartial(_: Partial): QueryInflationRequest; + fromAmino(_: QueryInflationRequestAmino): QueryInflationRequest; + toAmino(_: QueryInflationRequest): QueryInflationRequestAmino; + fromAminoMsg(object: QueryInflationRequestAminoMsg): QueryInflationRequest; + toAminoMsg(message: QueryInflationRequest): QueryInflationRequestAminoMsg; + fromProtoMsg(message: QueryInflationRequestProtoMsg): QueryInflationRequest; + toProto(message: QueryInflationRequest): Uint8Array; + toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg; +}; +export declare const QueryInflationResponse: { + typeUrl: string; + encode(message: QueryInflationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse; + fromPartial(object: Partial): QueryInflationResponse; + fromAmino(object: QueryInflationResponseAmino): QueryInflationResponse; + toAmino(message: QueryInflationResponse): QueryInflationResponseAmino; + fromAminoMsg(object: QueryInflationResponseAminoMsg): QueryInflationResponse; + toAminoMsg(message: QueryInflationResponse): QueryInflationResponseAminoMsg; + fromProtoMsg(message: QueryInflationResponseProtoMsg): QueryInflationResponse; + toProto(message: QueryInflationResponse): Uint8Array; + toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg; +}; +export declare const QueryAnnualProvisionsRequest: { + typeUrl: string; + encode(_: QueryAnnualProvisionsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; + fromPartial(_: Partial): QueryAnnualProvisionsRequest; + fromAmino(_: QueryAnnualProvisionsRequestAmino): QueryAnnualProvisionsRequest; + toAmino(_: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAmino; + fromAminoMsg(object: QueryAnnualProvisionsRequestAminoMsg): QueryAnnualProvisionsRequest; + toAminoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAminoMsg; + fromProtoMsg(message: QueryAnnualProvisionsRequestProtoMsg): QueryAnnualProvisionsRequest; + toProto(message: QueryAnnualProvisionsRequest): Uint8Array; + toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg; +}; +export declare const QueryAnnualProvisionsResponse: { + typeUrl: string; + encode(message: QueryAnnualProvisionsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; + fromPartial(object: Partial): QueryAnnualProvisionsResponse; + fromAmino(object: QueryAnnualProvisionsResponseAmino): QueryAnnualProvisionsResponse; + toAmino(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAmino; + fromAminoMsg(object: QueryAnnualProvisionsResponseAminoMsg): QueryAnnualProvisionsResponse; + toAminoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAminoMsg; + fromProtoMsg(message: QueryAnnualProvisionsResponseProtoMsg): QueryAnnualProvisionsResponse; + toProto(message: QueryAnnualProvisionsResponse): Uint8Array; + toProtoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.js b/packages/api/dist/cosmos/mint/v1beta1/query.js new file mode 100644 index 00000000..83d865e9 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.js @@ -0,0 +1,382 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryAnnualProvisionsResponse = exports.QueryAnnualProvisionsRequest = exports.QueryInflationResponse = exports.QueryInflationRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; +//@ts-nocheck +const mint_1 = require("./mint"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: mint_1.Params.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + mint_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = mint_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? mint_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = mint_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? mint_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryInflationRequest() { + return {}; +} +exports.QueryInflationRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryInflationRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryInflationRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryInflationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryInflationRequest", + value: exports.QueryInflationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryInflationRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryInflationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + value: exports.QueryInflationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInflationResponse() { + return { + inflation: new Uint8Array() + }; +} +exports.QueryInflationResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.inflation.length !== 0) { + writer.uint32(10).bytes(message.inflation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInflationResponse(); + message.inflation = object.inflation ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryInflationResponse(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = (0, helpers_1.bytesFromBase64)(object.inflation); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.inflation = message.inflation ? (0, helpers_1.base64FromBytes)(message.inflation) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryInflationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryInflationResponse", + value: exports.QueryInflationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryInflationResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryInflationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + value: exports.QueryInflationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsRequest() { + return {}; +} +exports.QueryAnnualProvisionsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnnualProvisionsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAnnualProvisionsRequest", + value: exports.QueryAnnualProvisionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAnnualProvisionsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAnnualProvisionsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + value: exports.QueryAnnualProvisionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsResponse() { + return { + annualProvisions: new Uint8Array() + }; +} +exports.QueryAnnualProvisionsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.annualProvisions.length !== 0) { + writer.uint32(10).bytes(message.annualProvisions); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annualProvisions = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnnualProvisionsResponse(); + message.annualProvisions = object.annualProvisions ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnnualProvisionsResponse(); + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = (0, helpers_1.bytesFromBase64)(object.annual_provisions); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.annual_provisions = message.annualProvisions ? (0, helpers_1.base64FromBytes)(message.annualProvisions) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnnualProvisionsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAnnualProvisionsResponse", + value: exports.QueryAnnualProvisionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAnnualProvisionsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAnnualProvisionsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + value: exports.QueryAnnualProvisionsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..ba5133f7 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts @@ -0,0 +1,11 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + params(_params?: QueryParamsRequest): Promise; + inflation(_params?: QueryInflationRequest): Promise; + annualProvisions(_params?: QueryAnnualProvisionsRequest): Promise; +} diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js new file mode 100644 index 00000000..496c82e1 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + /* Params returns the total set of minting parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/params`; + return await this.req.get(endpoint); + } + /* Inflation returns the current minting inflation value. */ + async inflation(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/inflation`; + return await this.req.get(endpoint); + } + /* AnnualProvisions current minting annual provisions value. */ + async annualProvisions(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/annual_provisions`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..83fc7060 --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,24 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** Params returns the total set of minting parameters. */ + params(request?: QueryParamsRequest): Promise; + /** Inflation returns the current minting inflation value. */ + inflation(request?: QueryInflationRequest): Promise; + /** AnnualProvisions current minting annual provisions value. */ + annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + params(request?: QueryParamsRequest): Promise; + inflation(request?: QueryInflationRequest): Promise; + annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + params(request?: QueryParamsRequest): Promise; + inflation(request?: QueryInflationRequest): Promise; + annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..51b0ac0b --- /dev/null +++ b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + inflation(request = {}) { + const data = query_1.QueryInflationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); + return promise.then(data => query_1.QueryInflationResponse.decode(new binary_1.BinaryReader(data))); + } + annualProvisions(request = {}) { + const data = query_1.QueryAnnualProvisionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); + return promise.then(data => query_1.QueryAnnualProvisionsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + inflation(request) { + return queryService.inflation(request); + }, + annualProvisions(request) { + return queryService.annualProvisions(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/msg/v1/msg.d.ts b/packages/api/dist/cosmos/msg/v1/msg.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/cosmos/msg/v1/msg.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/cosmos/msg/v1/msg.js b/packages/api/dist/cosmos/msg/v1/msg.js new file mode 100644 index 00000000..c8ad2e54 --- /dev/null +++ b/packages/api/dist/cosmos/msg/v1/msg.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts b/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts new file mode 100644 index 00000000..1a977cfb --- /dev/null +++ b/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts @@ -0,0 +1,43 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface Module { +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.orm.module.v1alpha1.Module"; + value: Uint8Array; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleAmino { +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleSDKType { +} +export declare const Module: { + typeUrl: string; + encode(_: Module, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Module; + fromPartial(_: Partial): Module; + fromAmino(_: ModuleAmino): Module; + toAmino(_: Module): ModuleAmino; + fromAminoMsg(object: ModuleAminoMsg): Module; + toAminoMsg(message: Module): ModuleAminoMsg; + fromProtoMsg(message: ModuleProtoMsg): Module; + toProto(message: Module): Uint8Array; + toProtoMsg(message: Module): ModuleProtoMsg; +}; diff --git a/packages/api/dist/cosmos/orm/module/v1alpha1/module.js b/packages/api/dist/cosmos/orm/module/v1alpha1/module.js new file mode 100644 index 00000000..398503e0 --- /dev/null +++ b/packages/api/dist/cosmos/orm/module/v1alpha1/module.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Module = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseModule() { + return {}; +} +exports.Module = { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseModule(); + return message; + }, + fromAmino(_) { + const message = createBaseModule(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.Module.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Module", + value: exports.Module.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Module.decode(message.value); + }, + toProto(message) { + return exports.Module.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + value: exports.Module.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/orm/v1/orm.d.ts b/packages/api/dist/cosmos/orm/v1/orm.d.ts new file mode 100644 index 00000000..766c58ab --- /dev/null +++ b/packages/api/dist/cosmos/orm/v1/orm.d.ts @@ -0,0 +1,280 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptor { + /** primary_key defines the primary key for the table. */ + primaryKey?: PrimaryKeyDescriptor; + /** index defines one or more secondary indexes. */ + index: SecondaryIndexDescriptor[]; + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id: number; +} +export interface TableDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.TableDescriptor"; + value: Uint8Array; +} +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptorAmino { + /** primary_key defines the primary key for the table. */ + primary_key?: PrimaryKeyDescriptorAmino; + /** index defines one or more secondary indexes. */ + index?: SecondaryIndexDescriptorAmino[]; + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id?: number; +} +export interface TableDescriptorAminoMsg { + type: "cosmos-sdk/TableDescriptor"; + value: TableDescriptorAmino; +} +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptorSDKType { + primary_key?: PrimaryKeyDescriptorSDKType; + index: SecondaryIndexDescriptorSDKType[]; + id: number; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptor { + /** + * fields is a comma-separated list of fields in the primary key. Spaces are + * not allowed. Supported field types, their encodings, and any applicable constraints + * are described below. + * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers. + * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers such as auto-incrementing sequences. + * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + * sorted iteration. These types are well-suited for encoding fixed with + * decimals as integers. + * - string's are encoded as raw bytes in terminal key segments and null-terminated + * in non-terminal segments. Null characters are thus forbidden in strings. + * string fields support sorted iteration. + * - bytes are encoded as raw bytes in terminal segments and length-prefixed + * with a 32-bit unsigned varint in non-terminal segments. + * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + * an encoding that enables sorted iteration. + * - google.protobuf.Timestamp and google.protobuf.Duration are encoded + * as 12 bytes using an encoding that enables sorted iteration. + * - enum fields are encoded using varint encoding and do not support sorted + * iteration. + * - bool fields are encoded as a single byte 0 or 1. + * + * All other fields types are unsupported in keys including repeated and + * oneof fields. + * + * Primary keys are prefixed by the varint encoded table id and the byte 0x0 + * plus any additional prefix specified by the schema. + */ + fields: string; + /** + * auto_increment specifies that the primary key is generated by an + * auto-incrementing integer. If this is set to true fields must only + * contain one field of that is of type uint64. + */ + autoIncrement: boolean; +} +export interface PrimaryKeyDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; + value: Uint8Array; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptorAmino { + /** + * fields is a comma-separated list of fields in the primary key. Spaces are + * not allowed. Supported field types, their encodings, and any applicable constraints + * are described below. + * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers. + * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers such as auto-incrementing sequences. + * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + * sorted iteration. These types are well-suited for encoding fixed with + * decimals as integers. + * - string's are encoded as raw bytes in terminal key segments and null-terminated + * in non-terminal segments. Null characters are thus forbidden in strings. + * string fields support sorted iteration. + * - bytes are encoded as raw bytes in terminal segments and length-prefixed + * with a 32-bit unsigned varint in non-terminal segments. + * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + * an encoding that enables sorted iteration. + * - google.protobuf.Timestamp and google.protobuf.Duration are encoded + * as 12 bytes using an encoding that enables sorted iteration. + * - enum fields are encoded using varint encoding and do not support sorted + * iteration. + * - bool fields are encoded as a single byte 0 or 1. + * + * All other fields types are unsupported in keys including repeated and + * oneof fields. + * + * Primary keys are prefixed by the varint encoded table id and the byte 0x0 + * plus any additional prefix specified by the schema. + */ + fields?: string; + /** + * auto_increment specifies that the primary key is generated by an + * auto-incrementing integer. If this is set to true fields must only + * contain one field of that is of type uint64. + */ + auto_increment?: boolean; +} +export interface PrimaryKeyDescriptorAminoMsg { + type: "cosmos-sdk/PrimaryKeyDescriptor"; + value: PrimaryKeyDescriptorAmino; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptorSDKType { + fields: string; + auto_increment: boolean; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptor { + /** + * fields is a comma-separated list of fields in the index. The supported + * field types are the same as those for PrimaryKeyDescriptor.fields. + * Index keys are prefixed by the varint encoded table id and the varint + * encoded index id plus any additional prefix specified by the schema. + * + * In addition the field segments, non-unique index keys are suffixed with + * any additional primary key fields not present in the index fields so that the + * primary key can be reconstructed. Unique indexes instead of being suffixed + * store the remaining primary key fields in the value.. + */ + fields: string; + /** + * id is a non-zero integer ID that must be unique within the indexes for this + * table and less than 32768. It may be deprecated in the future when this can + * be auto-generated. + */ + id: number; + /** unique specifies that this an unique index. */ + unique: boolean; +} +export interface SecondaryIndexDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; + value: Uint8Array; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptorAmino { + /** + * fields is a comma-separated list of fields in the index. The supported + * field types are the same as those for PrimaryKeyDescriptor.fields. + * Index keys are prefixed by the varint encoded table id and the varint + * encoded index id plus any additional prefix specified by the schema. + * + * In addition the field segments, non-unique index keys are suffixed with + * any additional primary key fields not present in the index fields so that the + * primary key can be reconstructed. Unique indexes instead of being suffixed + * store the remaining primary key fields in the value.. + */ + fields?: string; + /** + * id is a non-zero integer ID that must be unique within the indexes for this + * table and less than 32768. It may be deprecated in the future when this can + * be auto-generated. + */ + id?: number; + /** unique specifies that this an unique index. */ + unique?: boolean; +} +export interface SecondaryIndexDescriptorAminoMsg { + type: "cosmos-sdk/SecondaryIndexDescriptor"; + value: SecondaryIndexDescriptorAmino; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptorSDKType { + fields: string; + id: number; + unique: boolean; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptor { + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id: number; +} +export interface SingletonDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; + value: Uint8Array; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptorAmino { + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id?: number; +} +export interface SingletonDescriptorAminoMsg { + type: "cosmos-sdk/SingletonDescriptor"; + value: SingletonDescriptorAmino; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptorSDKType { + id: number; +} +export declare const TableDescriptor: { + typeUrl: string; + encode(message: TableDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor; + fromPartial(object: Partial): TableDescriptor; + fromAmino(object: TableDescriptorAmino): TableDescriptor; + toAmino(message: TableDescriptor): TableDescriptorAmino; + fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor; + toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg; + fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor; + toProto(message: TableDescriptor): Uint8Array; + toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg; +}; +export declare const PrimaryKeyDescriptor: { + typeUrl: string; + encode(message: PrimaryKeyDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor; + fromPartial(object: Partial): PrimaryKeyDescriptor; + fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor; + toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino; + fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor; + toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg; + fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor; + toProto(message: PrimaryKeyDescriptor): Uint8Array; + toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg; +}; +export declare const SecondaryIndexDescriptor: { + typeUrl: string; + encode(message: SecondaryIndexDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor; + fromPartial(object: Partial): SecondaryIndexDescriptor; + fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor; + toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino; + fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor; + toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg; + fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor; + toProto(message: SecondaryIndexDescriptor): Uint8Array; + toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg; +}; +export declare const SingletonDescriptor: { + typeUrl: string; + encode(message: SingletonDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor; + fromPartial(object: Partial): SingletonDescriptor; + fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor; + toAmino(message: SingletonDescriptor): SingletonDescriptorAmino; + fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor; + toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg; + fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor; + toProto(message: SingletonDescriptor): Uint8Array; + toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg; +}; diff --git a/packages/api/dist/cosmos/orm/v1/orm.js b/packages/api/dist/cosmos/orm/v1/orm.js new file mode 100644 index 00000000..91e61afc --- /dev/null +++ b/packages/api/dist/cosmos/orm/v1/orm.js @@ -0,0 +1,344 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SingletonDescriptor = exports.SecondaryIndexDescriptor = exports.PrimaryKeyDescriptor = exports.TableDescriptor = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseTableDescriptor() { + return { + primaryKey: undefined, + index: [], + id: 0 + }; +} +exports.TableDescriptor = { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.primaryKey !== undefined) { + exports.PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.index) { + exports.SecondaryIndexDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.id !== 0) { + writer.uint32(24).uint32(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTableDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primaryKey = exports.PrimaryKeyDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.index.push(exports.SecondaryIndexDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTableDescriptor(); + message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? exports.PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; + message.index = object.index?.map(e => exports.SecondaryIndexDescriptor.fromPartial(e)) || []; + message.id = object.id ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseTableDescriptor(); + if (object.primary_key !== undefined && object.primary_key !== null) { + message.primaryKey = exports.PrimaryKeyDescriptor.fromAmino(object.primary_key); + } + message.index = object.index?.map(e => exports.SecondaryIndexDescriptor.fromAmino(e)) || []; + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.primary_key = message.primaryKey ? exports.PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; + if (message.index) { + obj.index = message.index.map(e => e ? exports.SecondaryIndexDescriptor.toAmino(e) : undefined); + } + else { + obj.index = message.index; + } + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return exports.TableDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TableDescriptor", + value: exports.TableDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TableDescriptor.decode(message.value); + }, + toProto(message) { + return exports.TableDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + value: exports.TableDescriptor.encode(message).finish() + }; + } +}; +function createBasePrimaryKeyDescriptor() { + return { + fields: "", + autoIncrement: false + }; +} +exports.PrimaryKeyDescriptor = { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.autoIncrement === true) { + writer.uint32(16).bool(message.autoIncrement); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrimaryKeyDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.autoIncrement = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrimaryKeyDescriptor(); + message.fields = object.fields ?? ""; + message.autoIncrement = object.autoIncrement ?? false; + return message; + }, + fromAmino(object) { + const message = createBasePrimaryKeyDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.auto_increment !== undefined && object.auto_increment !== null) { + message.autoIncrement = object.auto_increment; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; + return obj; + }, + fromAminoMsg(object) { + return exports.PrimaryKeyDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrimaryKeyDescriptor", + value: exports.PrimaryKeyDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PrimaryKeyDescriptor.decode(message.value); + }, + toProto(message) { + return exports.PrimaryKeyDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + value: exports.PrimaryKeyDescriptor.encode(message).finish() + }; + } +}; +function createBaseSecondaryIndexDescriptor() { + return { + fields: "", + id: 0, + unique: false + }; +} +exports.SecondaryIndexDescriptor = { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.id !== 0) { + writer.uint32(16).uint32(message.id); + } + if (message.unique === true) { + writer.uint32(24).bool(message.unique); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSecondaryIndexDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.id = reader.uint32(); + break; + case 3: + message.unique = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSecondaryIndexDescriptor(); + message.fields = object.fields ?? ""; + message.id = object.id ?? 0; + message.unique = object.unique ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSecondaryIndexDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.unique !== undefined && object.unique !== null) { + message.unique = object.unique; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.id = message.id === 0 ? undefined : message.id; + obj.unique = message.unique === false ? undefined : message.unique; + return obj; + }, + fromAminoMsg(object) { + return exports.SecondaryIndexDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SecondaryIndexDescriptor", + value: exports.SecondaryIndexDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SecondaryIndexDescriptor.decode(message.value); + }, + toProto(message) { + return exports.SecondaryIndexDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + value: exports.SecondaryIndexDescriptor.encode(message).finish() + }; + } +}; +function createBaseSingletonDescriptor() { + return { + id: 0 + }; +} +exports.SingletonDescriptor = { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== 0) { + writer.uint32(8).uint32(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSingletonDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSingletonDescriptor(); + message.id = object.id ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseSingletonDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return exports.SingletonDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SingletonDescriptor", + value: exports.SingletonDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SingletonDescriptor.decode(message.value); + }, + toProto(message) { + return exports.SingletonDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + value: exports.SingletonDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/params.d.ts b/packages/api/dist/cosmos/params/v1beta1/params.d.ts new file mode 100644 index 00000000..3573d703 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/params.d.ts @@ -0,0 +1,90 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposal { + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; + title: string; + description: string; + changes: ParamChange[]; +} +export interface ParameterChangeProposalProtoMsg { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; + value: Uint8Array; +} +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposalAmino { + title?: string; + description?: string; + changes?: ParamChangeAmino[]; +} +export interface ParameterChangeProposalAminoMsg { + type: "cosmos-sdk/ParameterChangeProposal"; + value: ParameterChangeProposalAmino; +} +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposalSDKType { + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; + title: string; + description: string; + changes: ParamChangeSDKType[]; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChange { + subspace: string; + key: string; + value: string; +} +export interface ParamChangeProtoMsg { + typeUrl: "/cosmos.params.v1beta1.ParamChange"; + value: Uint8Array; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChangeAmino { + subspace?: string; + key?: string; + value?: string; +} +export interface ParamChangeAminoMsg { + type: "cosmos-sdk/ParamChange"; + value: ParamChangeAmino; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChangeSDKType { + subspace: string; + key: string; + value: string; +} +export declare const ParameterChangeProposal: { + typeUrl: string; + encode(message: ParameterChangeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal; + fromPartial(object: Partial): ParameterChangeProposal; + fromAmino(object: ParameterChangeProposalAmino): ParameterChangeProposal; + toAmino(message: ParameterChangeProposal): ParameterChangeProposalAmino; + fromAminoMsg(object: ParameterChangeProposalAminoMsg): ParameterChangeProposal; + toAminoMsg(message: ParameterChangeProposal): ParameterChangeProposalAminoMsg; + fromProtoMsg(message: ParameterChangeProposalProtoMsg): ParameterChangeProposal; + toProto(message: ParameterChangeProposal): Uint8Array; + toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg; +}; +export declare const ParamChange: { + typeUrl: string; + encode(message: ParamChange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ParamChange; + fromPartial(object: Partial): ParamChange; + fromAmino(object: ParamChangeAmino): ParamChange; + toAmino(message: ParamChange): ParamChangeAmino; + fromAminoMsg(object: ParamChangeAminoMsg): ParamChange; + toAminoMsg(message: ParamChange): ParamChangeAminoMsg; + fromProtoMsg(message: ParamChangeProtoMsg): ParamChange; + toProto(message: ParamChange): Uint8Array; + toProtoMsg(message: ParamChange): ParamChangeProtoMsg; +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/params.js b/packages/api/dist/cosmos/params/v1beta1/params.js new file mode 100644 index 00000000..d67e5990 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/params.js @@ -0,0 +1,195 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParamChange = exports.ParameterChangeProposal = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseParameterChangeProposal() { + return { + $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + title: "", + description: "", + changes: [] + }; +} +exports.ParameterChangeProposal = { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + for (const v of message.changes) { + exports.ParamChange.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParameterChangeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.changes.push(exports.ParamChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParameterChangeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.changes = object.changes?.map(e => exports.ParamChange.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParameterChangeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.changes = object.changes?.map(e => exports.ParamChange.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + if (message.changes) { + obj.changes = message.changes.map(e => e ? exports.ParamChange.toAmino(e) : undefined); + } + else { + obj.changes = message.changes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ParameterChangeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ParameterChangeProposal", + value: exports.ParameterChangeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ParameterChangeProposal.decode(message.value); + }, + toProto(message) { + return exports.ParameterChangeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + value: exports.ParameterChangeProposal.encode(message).finish() + }; + } +}; +function createBaseParamChange() { + return { + subspace: "", + key: "", + value: "" + }; +} +exports.ParamChange = { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + if (message.value !== "") { + writer.uint32(26).string(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParamChange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + case 3: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParamChange(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseParamChange(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object) { + return exports.ParamChange.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ParamChange", + value: exports.ParamChange.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ParamChange.decode(message.value); + }, + toProto(message) { + return exports.ParamChange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + value: exports.ParamChange.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.d.ts new file mode 100644 index 00000000..400fcc3c --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.d.ts @@ -0,0 +1,221 @@ +import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** subspace defines the module to query the parameter for. */ + subspace: string; + /** key defines the key of the parameter in the subspace. */ + key: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** subspace defines the module to query the parameter for. */ + subspace?: string; + /** key defines the key of the parameter in the subspace. */ + key?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + subspace: string; + key: string; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** param defines the queried parameter. */ + param: ParamChange; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** param defines the queried parameter. */ + param?: ParamChangeAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + param: ParamChangeSDKType; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequest { +} +export interface QuerySubspacesRequestProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; + value: Uint8Array; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequestAmino { +} +export interface QuerySubspacesRequestAminoMsg { + type: "cosmos-sdk/QuerySubspacesRequest"; + value: QuerySubspacesRequestAmino; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequestSDKType { +} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponse { + subspaces: Subspace[]; +} +export interface QuerySubspacesResponseProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; + value: Uint8Array; +} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponseAmino { + subspaces?: SubspaceAmino[]; +} +export interface QuerySubspacesResponseAminoMsg { + type: "cosmos-sdk/QuerySubspacesResponse"; + value: QuerySubspacesResponseAmino; +} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponseSDKType { + subspaces: SubspaceSDKType[]; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface Subspace { + subspace: string; + keys: string[]; +} +export interface SubspaceProtoMsg { + typeUrl: "/cosmos.params.v1beta1.Subspace"; + value: Uint8Array; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface SubspaceAmino { + subspace?: string; + keys?: string[]; +} +export interface SubspaceAminoMsg { + type: "cosmos-sdk/Subspace"; + value: SubspaceAmino; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface SubspaceSDKType { + subspace: string; + keys: string[]; +} +export declare const QueryParamsRequest: { + typeUrl: string; + encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(object: Partial): QueryParamsRequest; + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QuerySubspacesRequest: { + typeUrl: string; + encode(_: QuerySubspacesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest; + fromPartial(_: Partial): QuerySubspacesRequest; + fromAmino(_: QuerySubspacesRequestAmino): QuerySubspacesRequest; + toAmino(_: QuerySubspacesRequest): QuerySubspacesRequestAmino; + fromAminoMsg(object: QuerySubspacesRequestAminoMsg): QuerySubspacesRequest; + toAminoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestAminoMsg; + fromProtoMsg(message: QuerySubspacesRequestProtoMsg): QuerySubspacesRequest; + toProto(message: QuerySubspacesRequest): Uint8Array; + toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg; +}; +export declare const QuerySubspacesResponse: { + typeUrl: string; + encode(message: QuerySubspacesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse; + fromPartial(object: Partial): QuerySubspacesResponse; + fromAmino(object: QuerySubspacesResponseAmino): QuerySubspacesResponse; + toAmino(message: QuerySubspacesResponse): QuerySubspacesResponseAmino; + fromAminoMsg(object: QuerySubspacesResponseAminoMsg): QuerySubspacesResponse; + toAminoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseAminoMsg; + fromProtoMsg(message: QuerySubspacesResponseProtoMsg): QuerySubspacesResponse; + toProto(message: QuerySubspacesResponse): Uint8Array; + toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg; +}; +export declare const Subspace: { + typeUrl: string; + encode(message: Subspace, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Subspace; + fromPartial(object: Partial): Subspace; + fromAmino(object: SubspaceAmino): Subspace; + toAmino(message: Subspace): SubspaceAmino; + fromAminoMsg(object: SubspaceAminoMsg): Subspace; + toAminoMsg(message: Subspace): SubspaceAminoMsg; + fromProtoMsg(message: SubspaceProtoMsg): Subspace; + toProto(message: Subspace): Uint8Array; + toProtoMsg(message: Subspace): SubspaceProtoMsg; +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.js b/packages/api/dist/cosmos/params/v1beta1/query.js new file mode 100644 index 00000000..70f181aa --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.js @@ -0,0 +1,368 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Subspace = exports.QuerySubspacesResponse = exports.QuerySubspacesRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; +//@ts-nocheck +const params_1 = require("./params"); +const binary_1 = require("../../../binary"); +function createBaseQueryParamsRequest() { + return { + subspace: "", + key: "" + }; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + param: params_1.ParamChange.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.param !== undefined) { + params_1.ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.param = params_1.ParamChange.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.param = object.param !== undefined && object.param !== null ? params_1.ParamChange.fromPartial(object.param) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.param !== undefined && object.param !== null) { + message.param = params_1.ParamChange.fromAmino(object.param); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.param = message.param ? params_1.ParamChange.toAmino(message.param) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesRequest() { + return {}; +} +exports.QuerySubspacesRequest = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySubspacesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySubspacesRequest", + value: exports.QuerySubspacesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySubspacesRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySubspacesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + value: exports.QuerySubspacesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesResponse() { + return { + subspaces: [] + }; +} +exports.QuerySubspacesResponse = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.subspaces) { + exports.Subspace.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspaces.push(exports.Subspace.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => exports.Subspace.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => exports.Subspace.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.subspaces) { + obj.subspaces = message.subspaces.map(e => e ? exports.Subspace.toAmino(e) : undefined); + } + else { + obj.subspaces = message.subspaces; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySubspacesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySubspacesResponse", + value: exports.QuerySubspacesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QuerySubspacesResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySubspacesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + value: exports.QuerySubspacesResponse.encode(message).finish() + }; + } +}; +function createBaseSubspace() { + return { + subspace: "", + keys: [] + }; +} +exports.Subspace = { + typeUrl: "/cosmos.params.v1beta1.Subspace", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + for (const v of message.keys) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSubspace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.keys.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSubspace(); + message.subspace = object.subspace ?? ""; + message.keys = object.keys?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSubspace(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + message.keys = object.keys?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + if (message.keys) { + obj.keys = message.keys.map(e => e); + } + else { + obj.keys = message.keys; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Subspace.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Subspace", + value: exports.Subspace.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Subspace.decode(message.value); + }, + toProto(message) { + return exports.Subspace.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.Subspace", + value: exports.Subspace.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..aaa5da47 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts @@ -0,0 +1,10 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + params(params: QueryParamsRequest): Promise; + subspaces(_params?: QuerySubspacesRequest): Promise; +} diff --git a/packages/api/dist/cosmos/params/v1beta1/query.lcd.js b/packages/api/dist/cosmos/params/v1beta1/query.lcd.js new file mode 100644 index 00000000..1eb8b478 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.lcd.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + /* Params queries a specific parameter of a module, given its subspace and + key. */ + async params(params) { + const options = { + params: {} + }; + if (typeof params?.subspace !== "undefined") { + options.params.subspace = params.subspace; + } + if (typeof params?.key !== "undefined") { + options.params.key = params.key; + } + const endpoint = `cosmos/params/v1beta1/params`; + return await this.req.get(endpoint, options); + } + /* Subspaces queries for all registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 */ + async subspaces(_params = {}) { + const endpoint = `cosmos/params/v1beta1/subspaces`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..2fd53465 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,27 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Params queries a specific parameter of a module, given its subspace and + * key. + */ + params(request: QueryParamsRequest): Promise; + /** + * Subspaces queries for all registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ + subspaces(request?: QuerySubspacesRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + params(request: QueryParamsRequest): Promise; + subspaces(request?: QuerySubspacesRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + params(request: QueryParamsRequest): Promise; + subspaces(request?: QuerySubspacesRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..8172a151 --- /dev/null +++ b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + params(request) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + subspaces(request = {}) { + const data = query_1.QuerySubspacesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); + return promise.then(data => query_1.QuerySubspacesResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + subspaces(request) { + return queryService.subspaces(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/rpc.query.d.ts b/packages/api/dist/cosmos/rpc.query.d.ts new file mode 100644 index 00000000..b1243438 --- /dev/null +++ b/packages/api/dist/cosmos/rpc.query.d.ts @@ -0,0 +1,155 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | HttpEndpoint; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: import("./auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("./auth/v1beta1/query").QueryAccountRequest): Promise; + accountAddressByID(request: import("./auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; + params(request?: import("./auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("./auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: import("./auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: import("./auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("./auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("./auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; + }; + authz: { + v1beta1: { + grants(request: import("./authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("./authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("./authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; + }; + bank: { + v1beta1: { + balance(request: import("./bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("./bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("./bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("./bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("./bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("./bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("./bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("./bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("./bank/v1beta1/query").QueryDenomOwnersRequest): Promise; + }; + }; + base: { + node: { + v1beta1: { + config(request?: import("./base/node/v1beta1/query").ConfigRequest): Promise; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: import("./distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("./distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("./distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("./distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("./distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("./distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("./distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("./distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("./distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + feegrant: { + v1beta1: { + allowance(request: import("./feegrant/v1beta1/query").QueryAllowanceRequest): Promise; + allowances(request: import("./feegrant/v1beta1/query").QueryAllowancesRequest): Promise; + allowancesByGranter(request: import("./feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; + }; + }; + gov: { + v1: { + proposal(request: import("./gov/v1/query").QueryProposalRequest): Promise; + proposals(request: import("./gov/v1/query").QueryProposalsRequest): Promise; + vote(request: import("./gov/v1/query").QueryVoteRequest): Promise; + votes(request: import("./gov/v1/query").QueryVotesRequest): Promise; + params(request: import("./gov/v1/query").QueryParamsRequest): Promise; + deposit(request: import("./gov/v1/query").QueryDepositRequest): Promise; + deposits(request: import("./gov/v1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("./gov/v1/query").QueryTallyResultRequest): Promise; + }; + v1beta1: { + proposal(request: import("./gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("./gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("./gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("./gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("./gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("./gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("./gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("./gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; + }; + group: { + v1: { + groupInfo(request: import("./group/v1/query").QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: import("./group/v1/query").QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: import("./group/v1/query").QueryGroupMembersRequest): Promise; + groupsByAdmin(request: import("./group/v1/query").QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: import("./group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: import("./group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: import("./group/v1/query").QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: import("./group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: import("./group/v1/query").QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: import("./group/v1/query").QueryVotesByProposalRequest): Promise; + votesByVoter(request: import("./group/v1/query").QueryVotesByVoterRequest): Promise; + groupsByMember(request: import("./group/v1/query").QueryGroupsByMemberRequest): Promise; + tallyResult(request: import("./group/v1/query").QueryTallyResultRequest): Promise; + }; + }; + mint: { + v1beta1: { + params(request?: import("./mint/v1beta1/query").QueryParamsRequest): Promise; + inflation(request?: import("./mint/v1beta1/query").QueryInflationRequest): Promise; + annualProvisions(request?: import("./mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; + }; + }; + params: { + v1beta1: { + params(request: import("./params/v1beta1/query").QueryParamsRequest): Promise; + subspaces(request?: import("./params/v1beta1/query").QuerySubspacesRequest): Promise; + }; + }; + staking: { + v1beta1: { + validators(request: import("./staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("./staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("./staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("./staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("./staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("./staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("./staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("./staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("./staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("./staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("./staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("./staking/v1beta1/query").QueryParamsRequest): Promise; + }; + }; + tx: { + v1beta1: { + simulate(request: import("./tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("./tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("./tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("./tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("./tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: import("./upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("./upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("./upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("./upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("./upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; +}>; diff --git a/packages/api/dist/cosmos/rpc.query.js b/packages/api/dist/cosmos/rpc.query.js new file mode 100644 index 00000000..ab3b8356 --- /dev/null +++ b/packages/api/dist/cosmos/rpc.query.js @@ -0,0 +1,80 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCQueryClient = void 0; +//@ts-nocheck +const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); +const stargate_1 = require("@cosmjs/stargate"); +const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); + const client = new stargate_1.QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + gov: { + v1: (await Promise.resolve().then(() => __importStar(require("./gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), + v1beta1: (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + group: { + v1: (await Promise.resolve().then(() => __importStar(require("./group/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + } + } + }; +}; +exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/cosmos/rpc.tx.d.ts b/packages/api/dist/cosmos/rpc.tx.d.ts new file mode 100644 index 00000000..aef58b4a --- /dev/null +++ b/packages/api/dist/cosmos/rpc.tx.d.ts @@ -0,0 +1,35 @@ +import { Rpc } from "../helpers"; +export declare const createRPCMsgClient: ({ rpc }: { + rpc: Rpc; +}) => Promise<{ + cosmos: { + authz: { + v1beta1: import("./authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("./bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("./distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + feegrant: { + v1beta1: import("./feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1: import("./gov/v1/tx.rpc.msg").MsgClientImpl; + v1beta1: import("./gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + group: { + v1: import("./group/v1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("./staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("./upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + vesting: { + v1beta1: import("./vesting/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; +}>; diff --git a/packages/api/dist/cosmos/rpc.tx.js b/packages/api/dist/cosmos/rpc.tx.js new file mode 100644 index 00000000..6d5f2c86 --- /dev/null +++ b/packages/api/dist/cosmos/rpc.tx.js @@ -0,0 +1,59 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCMsgClient = void 0; +const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("./group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("./vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + } +}); +exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts b/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts new file mode 100644 index 00000000..73db1983 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts @@ -0,0 +1,131 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * AuthorizationType defines the type of staking module authorization type + * + * Since: cosmos-sdk 0.43 + */ +export declare enum AuthorizationType { + /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ + AUTHORIZATION_TYPE_UNSPECIFIED = 0, + /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ + AUTHORIZATION_TYPE_DELEGATE = 1, + /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ + AUTHORIZATION_TYPE_UNDELEGATE = 2, + /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ + AUTHORIZATION_TYPE_REDELEGATE = 3, + UNRECOGNIZED = -1 +} +export declare const AuthorizationTypeSDKType: typeof AuthorizationType; +export declare const AuthorizationTypeAmino: typeof AuthorizationType; +export declare function authorizationTypeFromJSON(object: any): AuthorizationType; +export declare function authorizationTypeToJSON(object: AuthorizationType): string; +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorization { + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; + /** + * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + * empty, there is no spend limit and any amount of coins can be delegated. + */ + maxTokens?: Coin; + /** + * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + * account. + */ + allowList?: StakeAuthorization_Validators; + /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ + denyList?: StakeAuthorization_Validators; + /** authorization_type defines one of AuthorizationType. */ + authorizationType: AuthorizationType; +} +export interface StakeAuthorizationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; + value: Uint8Array; +} +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorizationAmino { + /** + * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + * empty, there is no spend limit and any amount of coins can be delegated. + */ + max_tokens?: CoinAmino; + /** + * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + * account. + */ + allow_list?: StakeAuthorization_ValidatorsAmino; + /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ + deny_list?: StakeAuthorization_ValidatorsAmino; + /** authorization_type defines one of AuthorizationType. */ + authorization_type?: AuthorizationType; +} +export interface StakeAuthorizationAminoMsg { + type: "cosmos-sdk/StakeAuthorization"; + value: StakeAuthorizationAmino; +} +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorizationSDKType { + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; + max_tokens?: CoinSDKType; + allow_list?: StakeAuthorization_ValidatorsSDKType; + deny_list?: StakeAuthorization_ValidatorsSDKType; + authorization_type: AuthorizationType; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_Validators { + address: string[]; +} +export interface StakeAuthorization_ValidatorsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Validators"; + value: Uint8Array; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_ValidatorsAmino { + address?: string[]; +} +export interface StakeAuthorization_ValidatorsAminoMsg { + type: "cosmos-sdk/Validators"; + value: StakeAuthorization_ValidatorsAmino; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_ValidatorsSDKType { + address: string[]; +} +export declare const StakeAuthorization: { + typeUrl: string; + encode(message: StakeAuthorization, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization; + fromPartial(object: Partial): StakeAuthorization; + fromAmino(object: StakeAuthorizationAmino): StakeAuthorization; + toAmino(message: StakeAuthorization): StakeAuthorizationAmino; + fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization; + toAminoMsg(message: StakeAuthorization): StakeAuthorizationAminoMsg; + fromProtoMsg(message: StakeAuthorizationProtoMsg): StakeAuthorization; + toProto(message: StakeAuthorization): Uint8Array; + toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg; +}; +export declare const StakeAuthorization_Validators: { + typeUrl: string; + encode(message: StakeAuthorization_Validators, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators; + fromPartial(object: Partial): StakeAuthorization_Validators; + fromAmino(object: StakeAuthorization_ValidatorsAmino): StakeAuthorization_Validators; + toAmino(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAmino; + fromAminoMsg(object: StakeAuthorization_ValidatorsAminoMsg): StakeAuthorization_Validators; + toAminoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAminoMsg; + fromProtoMsg(message: StakeAuthorization_ValidatorsProtoMsg): StakeAuthorization_Validators; + toProto(message: StakeAuthorization_Validators): Uint8Array; + toProtoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsProtoMsg; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/authz.js b/packages/api/dist/cosmos/staking/v1beta1/authz.js new file mode 100644 index 00000000..3642665f --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/authz.js @@ -0,0 +1,240 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StakeAuthorization_Validators = exports.StakeAuthorization = exports.authorizationTypeToJSON = exports.authorizationTypeFromJSON = exports.AuthorizationTypeAmino = exports.AuthorizationTypeSDKType = exports.AuthorizationType = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +/** + * AuthorizationType defines the type of staking module authorization type + * + * Since: cosmos-sdk 0.43 + */ +var AuthorizationType; +(function (AuthorizationType) { + /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNSPECIFIED"] = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED"; + /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_DELEGATE"] = 1] = "AUTHORIZATION_TYPE_DELEGATE"; + /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNDELEGATE"] = 2] = "AUTHORIZATION_TYPE_UNDELEGATE"; + /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_REDELEGATE"] = 3] = "AUTHORIZATION_TYPE_REDELEGATE"; + AuthorizationType[AuthorizationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(AuthorizationType || (exports.AuthorizationType = AuthorizationType = {})); +exports.AuthorizationTypeSDKType = AuthorizationType; +exports.AuthorizationTypeAmino = AuthorizationType; +function authorizationTypeFromJSON(object) { + switch (object) { + case 0: + case "AUTHORIZATION_TYPE_UNSPECIFIED": + return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: + case "AUTHORIZATION_TYPE_DELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; + case 2: + case "AUTHORIZATION_TYPE_UNDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; + case 3: + case "AUTHORIZATION_TYPE_REDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; + case -1: + case "UNRECOGNIZED": + default: + return AuthorizationType.UNRECOGNIZED; + } +} +exports.authorizationTypeFromJSON = authorizationTypeFromJSON; +function authorizationTypeToJSON(object) { + switch (object) { + case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: + return "AUTHORIZATION_TYPE_UNSPECIFIED"; + case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: + return "AUTHORIZATION_TYPE_DELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: + return "AUTHORIZATION_TYPE_UNDELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: + return "AUTHORIZATION_TYPE_REDELEGATE"; + case AuthorizationType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.authorizationTypeToJSON = authorizationTypeToJSON; +function createBaseStakeAuthorization() { + return { + $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + maxTokens: undefined, + allowList: undefined, + denyList: undefined, + authorizationType: 0 + }; +} +exports.StakeAuthorization = { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.maxTokens !== undefined) { + coin_1.Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); + } + if (message.allowList !== undefined) { + exports.StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); + } + if (message.denyList !== undefined) { + exports.StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); + } + if (message.authorizationType !== 0) { + writer.uint32(32).int32(message.authorizationType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTokens = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 2: + message.allowList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 3: + message.denyList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 4: + message.authorizationType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStakeAuthorization(); + message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? coin_1.Coin.fromPartial(object.maxTokens) : undefined; + message.allowList = object.allowList !== undefined && object.allowList !== null ? exports.StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; + message.denyList = object.denyList !== undefined && object.denyList !== null ? exports.StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; + message.authorizationType = object.authorizationType ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseStakeAuthorization(); + if (object.max_tokens !== undefined && object.max_tokens !== null) { + message.maxTokens = coin_1.Coin.fromAmino(object.max_tokens); + } + if (object.allow_list !== undefined && object.allow_list !== null) { + message.allowList = exports.StakeAuthorization_Validators.fromAmino(object.allow_list); + } + if (object.deny_list !== undefined && object.deny_list !== null) { + message.denyList = exports.StakeAuthorization_Validators.fromAmino(object.deny_list); + } + if (object.authorization_type !== undefined && object.authorization_type !== null) { + message.authorizationType = object.authorization_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_tokens = message.maxTokens ? coin_1.Coin.toAmino(message.maxTokens) : undefined; + obj.allow_list = message.allowList ? exports.StakeAuthorization_Validators.toAmino(message.allowList) : undefined; + obj.deny_list = message.denyList ? exports.StakeAuthorization_Validators.toAmino(message.denyList) : undefined; + obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; + return obj; + }, + fromAminoMsg(object) { + return exports.StakeAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/StakeAuthorization", + value: exports.StakeAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.StakeAuthorization.decode(message.value); + }, + toProto(message) { + return exports.StakeAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: exports.StakeAuthorization.encode(message).finish() + }; + } +}; +function createBaseStakeAuthorization_Validators() { + return { + address: [] + }; +} +exports.StakeAuthorization_Validators = { + typeUrl: "/cosmos.staking.v1beta1.Validators", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.address) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization_Validators(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.address) { + obj.address = message.address.map(e => e); + } + else { + obj.address = message.address; + } + return obj; + }, + fromAminoMsg(object) { + return exports.StakeAuthorization_Validators.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Validators", + value: exports.StakeAuthorization_Validators.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.StakeAuthorization_Validators.decode(message.value); + }, + toProto(message) { + return exports.StakeAuthorization_Validators.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Validators", + value: exports.StakeAuthorization_Validators.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts new file mode 100644 index 00000000..c91bdc1d --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts @@ -0,0 +1,122 @@ +import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of related to deposit. */ + params: Params; + /** + * last_total_power tracks the total amounts of bonded tokens recorded during + * the previous end block. + */ + lastTotalPower: Uint8Array; + /** + * last_validator_powers is a special index that provides a historical list + * of the last-block's bonded validators. + */ + lastValidatorPowers: LastValidatorPower[]; + /** delegations defines the validator set at genesis. */ + validators: Validator[]; + /** delegations defines the delegations active at genesis. */ + delegations: Delegation[]; + /** unbonding_delegations defines the unbonding delegations active at genesis. */ + unbondingDelegations: UnbondingDelegation[]; + /** redelegations defines the redelegations active at genesis. */ + redelegations: Redelegation[]; + exported: boolean; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of related to deposit. */ + params?: ParamsAmino; + /** + * last_total_power tracks the total amounts of bonded tokens recorded during + * the previous end block. + */ + last_total_power?: string; + /** + * last_validator_powers is a special index that provides a historical list + * of the last-block's bonded validators. + */ + last_validator_powers?: LastValidatorPowerAmino[]; + /** delegations defines the validator set at genesis. */ + validators?: ValidatorAmino[]; + /** delegations defines the delegations active at genesis. */ + delegations?: DelegationAmino[]; + /** unbonding_delegations defines the unbonding delegations active at genesis. */ + unbonding_delegations?: UnbondingDelegationAmino[]; + /** redelegations defines the redelegations active at genesis. */ + redelegations?: RedelegationAmino[]; + exported?: boolean; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + last_total_power: Uint8Array; + last_validator_powers: LastValidatorPowerSDKType[]; + validators: ValidatorSDKType[]; + delegations: DelegationSDKType[]; + unbonding_delegations: UnbondingDelegationSDKType[]; + redelegations: RedelegationSDKType[]; + exported: boolean; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPower { + /** address is the address of the validator. */ + address: string; + /** power defines the power of the validator. */ + power: bigint; +} +export interface LastValidatorPowerProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; + value: Uint8Array; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPowerAmino { + /** address is the address of the validator. */ + address?: string; + /** power defines the power of the validator. */ + power?: string; +} +export interface LastValidatorPowerAminoMsg { + type: "cosmos-sdk/LastValidatorPower"; + value: LastValidatorPowerAmino; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPowerSDKType { + address: string; + power: bigint; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; +export declare const LastValidatorPower: { + typeUrl: string; + encode(message: LastValidatorPower, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower; + fromPartial(object: Partial): LastValidatorPower; + fromAmino(object: LastValidatorPowerAmino): LastValidatorPower; + toAmino(message: LastValidatorPower): LastValidatorPowerAmino; + fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower; + toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg; + fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower; + toProto(message: LastValidatorPower): Uint8Array; + toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/genesis.js b/packages/api/dist/cosmos/staking/v1beta1/genesis.js new file mode 100644 index 00000000..f8fc75bf --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/genesis.js @@ -0,0 +1,256 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LastValidatorPower = exports.GenesisState = void 0; +//@ts-nocheck +const staking_1 = require("./staking"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseGenesisState() { + return { + params: staking_1.Params.fromPartial({}), + lastTotalPower: new Uint8Array(), + lastValidatorPowers: [], + validators: [], + delegations: [], + unbondingDelegations: [], + redelegations: [], + exported: false + }; +} +exports.GenesisState = { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + staking_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.lastTotalPower.length !== 0) { + writer.uint32(18).bytes(message.lastTotalPower); + } + for (const v of message.lastValidatorPowers) { + exports.LastValidatorPower.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + staking_1.Validator.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.delegations) { + staking_1.Delegation.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.unbondingDelegations) { + staking_1.UnbondingDelegation.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.redelegations) { + staking_1.Redelegation.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.exported === true) { + writer.uint32(64).bool(message.exported); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = staking_1.Params.decode(reader, reader.uint32()); + break; + case 2: + message.lastTotalPower = reader.bytes(); + break; + case 3: + message.lastValidatorPowers.push(exports.LastValidatorPower.decode(reader, reader.uint32())); + break; + case 4: + message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); + break; + case 5: + message.delegations.push(staking_1.Delegation.decode(reader, reader.uint32())); + break; + case 6: + message.unbondingDelegations.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 7: + message.redelegations.push(staking_1.Redelegation.decode(reader, reader.uint32())); + break; + case 8: + message.exported = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? staking_1.Params.fromPartial(object.params) : undefined; + message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); + message.lastValidatorPowers = object.lastValidatorPowers?.map(e => exports.LastValidatorPower.fromPartial(e)) || []; + message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; + message.delegations = object.delegations?.map(e => staking_1.Delegation.fromPartial(e)) || []; + message.unbondingDelegations = object.unbondingDelegations?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; + message.redelegations = object.redelegations?.map(e => staking_1.Redelegation.fromPartial(e)) || []; + message.exported = object.exported ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = staking_1.Params.fromAmino(object.params); + } + if (object.last_total_power !== undefined && object.last_total_power !== null) { + message.lastTotalPower = (0, helpers_1.bytesFromBase64)(object.last_total_power); + } + message.lastValidatorPowers = object.last_validator_powers?.map(e => exports.LastValidatorPower.fromAmino(e)) || []; + message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; + message.delegations = object.delegations?.map(e => staking_1.Delegation.fromAmino(e)) || []; + message.unbondingDelegations = object.unbonding_delegations?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; + message.redelegations = object.redelegations?.map(e => staking_1.Redelegation.fromAmino(e)) || []; + if (object.exported !== undefined && object.exported !== null) { + message.exported = object.exported; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? staking_1.Params.toAmino(message.params) : undefined; + obj.last_total_power = message.lastTotalPower ? (0, helpers_1.base64FromBytes)(message.lastTotalPower) : undefined; + if (message.lastValidatorPowers) { + obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? exports.LastValidatorPower.toAmino(e) : undefined); + } + else { + obj.last_validator_powers = message.lastValidatorPowers; + } + if (message.validators) { + obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + if (message.delegations) { + obj.delegations = message.delegations.map(e => e ? staking_1.Delegation.toAmino(e) : undefined); + } + else { + obj.delegations = message.delegations; + } + if (message.unbondingDelegations) { + obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_delegations = message.unbondingDelegations; + } + if (message.redelegations) { + obj.redelegations = message.redelegations.map(e => e ? staking_1.Redelegation.toAmino(e) : undefined); + } + else { + obj.redelegations = message.redelegations; + } + obj.exported = message.exported === false ? undefined : message.exported; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; +function createBaseLastValidatorPower() { + return { + address: "", + power: BigInt(0) + }; +} +exports.LastValidatorPower = { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLastValidatorPower(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLastValidatorPower(); + message.address = object.address ?? ""; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseLastValidatorPower(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.LastValidatorPower.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/LastValidatorPower", + value: exports.LastValidatorPower.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.LastValidatorPower.decode(message.value); + }, + toProto(message) { + return exports.LastValidatorPower.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + value: exports.LastValidatorPower.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.d.ts new file mode 100644 index 00000000..5d8b30c4 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.d.ts @@ -0,0 +1,1222 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequest { + /** status enables to query for validators matching a given status. */ + status: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; + value: Uint8Array; +} +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequestAmino { + /** status enables to query for validators matching a given status. */ + status?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorsRequest"; + value: QueryValidatorsRequestAmino; +} +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequestSDKType { + status: string; + pagination?: PageRequestSDKType; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponse { + /** validators contains all the queried validators. */ + validators: Validator[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; + value: Uint8Array; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponseAmino { + /** validators contains all the queried validators. */ + validators?: ValidatorAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorsResponse"; + value: QueryValidatorsResponseAmino; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponseSDKType { + validators: ValidatorSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryValidatorRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; + value: Uint8Array; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryValidatorRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorRequest"; + value: QueryValidatorRequestAmino; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequestSDKType { + validator_addr: string; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponse { + /** validator defines the validator info. */ + validator: Validator; +} +export interface QueryValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; + value: Uint8Array; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponseAmino { + /** validator defines the validator info. */ + validator?: ValidatorAmino; +} +export interface QueryValidatorResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorResponse"; + value: QueryValidatorResponseAmino; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponseSDKType { + validator: ValidatorSDKType; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorDelegationsRequest"; + value: QueryValidatorDelegationsRequestAmino; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequestSDKType { + validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponse { + delegationResponses: DelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponseAmino { + delegation_responses?: DelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorDelegationsResponse"; + value: QueryValidatorDelegationsResponseAmino; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponseSDKType { + delegation_responses: DelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest"; + value: QueryValidatorUnbondingDelegationsRequestAmino; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequestSDKType { + validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponse { + unbondingResponses: UnbondingDelegation[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponseAmino { + unbonding_responses?: UnbondingDelegationAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse"; + value: QueryValidatorUnbondingDelegationsResponseAmino; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponseSDKType { + unbonding_responses: UnbondingDelegationSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryDelegationRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; + value: Uint8Array; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryDelegationRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationRequest"; + value: QueryDelegationRequestAmino; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponse { + /** delegation_responses defines the delegation info of a delegation. */ + delegationResponse?: DelegationResponse; +} +export interface QueryDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; + value: Uint8Array; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponseAmino { + /** delegation_responses defines the delegation info of a delegation. */ + delegation_response?: DelegationResponseAmino; +} +export interface QueryDelegationResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationResponse"; + value: QueryDelegationResponseAmino; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponseSDKType { + delegation_response?: DelegationResponseSDKType; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryUnbondingDelegationRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; + value: Uint8Array; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryUnbondingDelegationRequestAminoMsg { + type: "cosmos-sdk/QueryUnbondingDelegationRequest"; + value: QueryUnbondingDelegationRequestAmino; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponse { + /** unbond defines the unbonding information of a delegation. */ + unbond: UnbondingDelegation; +} +export interface QueryUnbondingDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; + value: Uint8Array; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponseAmino { + /** unbond defines the unbonding information of a delegation. */ + unbond?: UnbondingDelegationAmino; +} +export interface QueryUnbondingDelegationResponseAminoMsg { + type: "cosmos-sdk/QueryUnbondingDelegationResponse"; + value: QueryUnbondingDelegationResponseAmino; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponseSDKType { + unbond: UnbondingDelegationSDKType; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorDelegationsRequest"; + value: QueryDelegatorDelegationsRequestAmino; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponse { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegationResponses: DelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponseAmino { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: DelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorDelegationsResponse"; + value: QueryDelegatorDelegationsResponseAmino; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponseSDKType { + delegation_responses: DelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest"; + value: QueryDelegatorUnbondingDelegationsRequestAmino; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponse { + unbondingResponses: UnbondingDelegation[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponseAmino { + unbonding_responses?: UnbondingDelegationAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse"; + value: QueryDelegatorUnbondingDelegationsResponseAmino; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponseSDKType { + unbonding_responses: UnbondingDelegationSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** src_validator_addr defines the validator address to redelegate from. */ + srcValidatorAddr: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dstValidatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryRedelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; + value: Uint8Array; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** src_validator_addr defines the validator address to redelegate from. */ + src_validator_addr?: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dst_validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryRedelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryRedelegationsRequest"; + value: QueryRedelegationsRequestAmino; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequestSDKType { + delegator_addr: string; + src_validator_addr: string; + dst_validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponse { + redelegationResponses: RedelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryRedelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; + value: Uint8Array; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponseAmino { + redelegation_responses?: RedelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryRedelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryRedelegationsResponse"; + value: QueryRedelegationsResponseAmino; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponseSDKType { + redelegation_responses: RedelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorValidatorsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; + value: QueryDelegatorValidatorsRequestAmino; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponse { + /** validators defines the validators' info of a delegator. */ + validators: Validator[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorValidatorsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseAmino { + /** validators defines the validators' info of a delegator. */ + validators?: ValidatorAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; + value: QueryDelegatorValidatorsResponseAmino; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseSDKType { + validators: ValidatorSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryDelegatorValidatorRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryDelegatorValidatorRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorRequest"; + value: QueryDelegatorValidatorRequestAmino; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponse { + /** validator defines the validator info. */ + validator: Validator; +} +export interface QueryDelegatorValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponseAmino { + /** validator defines the validator info. */ + validator?: ValidatorAmino; +} +export interface QueryDelegatorValidatorResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorResponse"; + value: QueryDelegatorValidatorResponseAmino; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponseSDKType { + validator: ValidatorSDKType; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequest { + /** height defines at which height to query the historical info. */ + height: bigint; +} +export interface QueryHistoricalInfoRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; + value: Uint8Array; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequestAmino { + /** height defines at which height to query the historical info. */ + height?: string; +} +export interface QueryHistoricalInfoRequestAminoMsg { + type: "cosmos-sdk/QueryHistoricalInfoRequest"; + value: QueryHistoricalInfoRequestAmino; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequestSDKType { + height: bigint; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponse { + /** hist defines the historical info at the given height. */ + hist?: HistoricalInfo; +} +export interface QueryHistoricalInfoResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; + value: Uint8Array; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponseAmino { + /** hist defines the historical info at the given height. */ + hist?: HistoricalInfoAmino; +} +export interface QueryHistoricalInfoResponseAminoMsg { + type: "cosmos-sdk/QueryHistoricalInfoResponse"; + value: QueryHistoricalInfoResponseAmino; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponseSDKType { + hist?: HistoricalInfoSDKType; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequest { +} +export interface QueryPoolRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; + value: Uint8Array; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequestAmino { +} +export interface QueryPoolRequestAminoMsg { + type: "cosmos-sdk/QueryPoolRequest"; + value: QueryPoolRequestAmino; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequestSDKType { +} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponse { + /** pool defines the pool info. */ + pool: Pool; +} +export interface QueryPoolResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; + value: Uint8Array; +} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponseAmino { + /** pool defines the pool info. */ + pool?: PoolAmino; +} +export interface QueryPoolResponseAminoMsg { + type: "cosmos-sdk/QueryPoolResponse"; + value: QueryPoolResponseAmino; +} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponseSDKType { + pool: PoolSDKType; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params holds all the parameters of this module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params holds all the parameters of this module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +export declare const QueryValidatorsRequest: { + typeUrl: string; + encode(message: QueryValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest; + fromPartial(object: Partial): QueryValidatorsRequest; + fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest; + toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino; + fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest; + toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg; + fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest; + toProto(message: QueryValidatorsRequest): Uint8Array; + toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg; +}; +export declare const QueryValidatorsResponse: { + typeUrl: string; + encode(message: QueryValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse; + fromPartial(object: Partial): QueryValidatorsResponse; + fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse; + toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino; + fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse; + toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg; + fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse; + toProto(message: QueryValidatorsResponse): Uint8Array; + toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg; +}; +export declare const QueryValidatorRequest: { + typeUrl: string; + encode(message: QueryValidatorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest; + fromPartial(object: Partial): QueryValidatorRequest; + fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest; + toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino; + fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest; + toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg; + fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest; + toProto(message: QueryValidatorRequest): Uint8Array; + toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg; +}; +export declare const QueryValidatorResponse: { + typeUrl: string; + encode(message: QueryValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse; + fromPartial(object: Partial): QueryValidatorResponse; + fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse; + toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino; + fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse; + toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg; + fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse; + toProto(message: QueryValidatorResponse): Uint8Array; + toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg; +}; +export declare const QueryValidatorDelegationsRequest: { + typeUrl: string; + encode(message: QueryValidatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; + fromPartial(object: Partial): QueryValidatorDelegationsRequest; + fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest; + toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino; + fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest; + toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg; + fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest; + toProto(message: QueryValidatorDelegationsRequest): Uint8Array; + toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg; +}; +export declare const QueryValidatorDelegationsResponse: { + typeUrl: string; + encode(message: QueryValidatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; + fromPartial(object: Partial): QueryValidatorDelegationsResponse; + fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse; + toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino; + fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse; + toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg; + fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse; + toProto(message: QueryValidatorDelegationsResponse): Uint8Array; + toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg; +}; +export declare const QueryValidatorUnbondingDelegationsRequest: { + typeUrl: string; + encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; + fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest; + fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest; + toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino; + fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest; + toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg; + fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest; + toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array; + toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg; +}; +export declare const QueryValidatorUnbondingDelegationsResponse: { + typeUrl: string; + encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; + fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse; + fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse; + toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino; + fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse; + toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg; + fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse; + toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array; + toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg; +}; +export declare const QueryDelegationRequest: { + typeUrl: string; + encode(message: QueryDelegationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest; + fromPartial(object: Partial): QueryDelegationRequest; + fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest; + toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino; + fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest; + toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg; + fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest; + toProto(message: QueryDelegationRequest): Uint8Array; + toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg; +}; +export declare const QueryDelegationResponse: { + typeUrl: string; + encode(message: QueryDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse; + fromPartial(object: Partial): QueryDelegationResponse; + fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse; + toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino; + fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse; + toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg; + fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse; + toProto(message: QueryDelegationResponse): Uint8Array; + toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg; +}; +export declare const QueryUnbondingDelegationRequest: { + typeUrl: string; + encode(message: QueryUnbondingDelegationRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; + fromPartial(object: Partial): QueryUnbondingDelegationRequest; + fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest; + toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino; + fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest; + toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg; + fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest; + toProto(message: QueryUnbondingDelegationRequest): Uint8Array; + toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg; +}; +export declare const QueryUnbondingDelegationResponse: { + typeUrl: string; + encode(message: QueryUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; + fromPartial(object: Partial): QueryUnbondingDelegationResponse; + fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse; + toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino; + fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse; + toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg; + fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse; + toProto(message: QueryUnbondingDelegationResponse): Uint8Array; + toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg; +}; +export declare const QueryDelegatorDelegationsRequest: { + typeUrl: string; + encode(message: QueryDelegatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; + fromPartial(object: Partial): QueryDelegatorDelegationsRequest; + fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest; + toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino; + fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest; + toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest; + toProto(message: QueryDelegatorDelegationsRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg; +}; +export declare const QueryDelegatorDelegationsResponse: { + typeUrl: string; + encode(message: QueryDelegatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; + fromPartial(object: Partial): QueryDelegatorDelegationsResponse; + fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse; + toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino; + fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse; + toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse; + toProto(message: QueryDelegatorDelegationsResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg; +}; +export declare const QueryDelegatorUnbondingDelegationsRequest: { + typeUrl: string; + encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; + fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest; + fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest; + toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino; + fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest; + toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest; + toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg; +}; +export declare const QueryDelegatorUnbondingDelegationsResponse: { + typeUrl: string; + encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; + fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse; + fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse; + toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino; + fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse; + toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse; + toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg; +}; +export declare const QueryRedelegationsRequest: { + typeUrl: string; + encode(message: QueryRedelegationsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest; + fromPartial(object: Partial): QueryRedelegationsRequest; + fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest; + toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino; + fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest; + toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg; + fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest; + toProto(message: QueryRedelegationsRequest): Uint8Array; + toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg; +}; +export declare const QueryRedelegationsResponse: { + typeUrl: string; + encode(message: QueryRedelegationsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse; + fromPartial(object: Partial): QueryRedelegationsResponse; + fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse; + toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino; + fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse; + toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg; + fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse; + toProto(message: QueryRedelegationsResponse): Uint8Array; + toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg; +}; +export declare const QueryDelegatorValidatorsRequest: { + typeUrl: string; + encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; + fromPartial(object: Partial): QueryDelegatorValidatorsRequest; + fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; + toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; + fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; + toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; + toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; +}; +export declare const QueryDelegatorValidatorsResponse: { + typeUrl: string; + encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; + fromPartial(object: Partial): QueryDelegatorValidatorsResponse; + fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; + toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; + fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; + toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; + toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; +}; +export declare const QueryDelegatorValidatorRequest: { + typeUrl: string; + encode(message: QueryDelegatorValidatorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; + fromPartial(object: Partial): QueryDelegatorValidatorRequest; + fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest; + toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino; + fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest; + toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest; + toProto(message: QueryDelegatorValidatorRequest): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg; +}; +export declare const QueryDelegatorValidatorResponse: { + typeUrl: string; + encode(message: QueryDelegatorValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; + fromPartial(object: Partial): QueryDelegatorValidatorResponse; + fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse; + toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino; + fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse; + toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg; + fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse; + toProto(message: QueryDelegatorValidatorResponse): Uint8Array; + toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg; +}; +export declare const QueryHistoricalInfoRequest: { + typeUrl: string; + encode(message: QueryHistoricalInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest; + fromPartial(object: Partial): QueryHistoricalInfoRequest; + fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest; + toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino; + fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest; + toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg; + fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest; + toProto(message: QueryHistoricalInfoRequest): Uint8Array; + toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg; +}; +export declare const QueryHistoricalInfoResponse: { + typeUrl: string; + encode(message: QueryHistoricalInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse; + fromPartial(object: Partial): QueryHistoricalInfoResponse; + fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse; + toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino; + fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse; + toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg; + fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse; + toProto(message: QueryHistoricalInfoResponse): Uint8Array; + toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg; +}; +export declare const QueryPoolRequest: { + typeUrl: string; + encode(_: QueryPoolRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest; + fromPartial(_: Partial): QueryPoolRequest; + fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest; + toAmino(_: QueryPoolRequest): QueryPoolRequestAmino; + fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest; + toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg; + fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest; + toProto(message: QueryPoolRequest): Uint8Array; + toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg; +}; +export declare const QueryPoolResponse: { + typeUrl: string; + encode(message: QueryPoolResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse; + fromPartial(object: Partial): QueryPoolResponse; + fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse; + toAmino(message: QueryPoolResponse): QueryPoolResponseAmino; + fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse; + toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg; + fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse; + toProto(message: QueryPoolResponse): Uint8Array; + toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.js b/packages/api/dist/cosmos/staking/v1beta1/query.js new file mode 100644 index 00000000..3abb848b --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.js @@ -0,0 +1,2162 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryPoolResponse = exports.QueryPoolRequest = exports.QueryHistoricalInfoResponse = exports.QueryHistoricalInfoRequest = exports.QueryDelegatorValidatorResponse = exports.QueryDelegatorValidatorRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryRedelegationsResponse = exports.QueryRedelegationsRequest = exports.QueryDelegatorUnbondingDelegationsResponse = exports.QueryDelegatorUnbondingDelegationsRequest = exports.QueryDelegatorDelegationsResponse = exports.QueryDelegatorDelegationsRequest = exports.QueryUnbondingDelegationResponse = exports.QueryUnbondingDelegationRequest = exports.QueryDelegationResponse = exports.QueryDelegationRequest = exports.QueryValidatorUnbondingDelegationsResponse = exports.QueryValidatorUnbondingDelegationsRequest = exports.QueryValidatorDelegationsResponse = exports.QueryValidatorDelegationsRequest = exports.QueryValidatorResponse = exports.QueryValidatorRequest = exports.QueryValidatorsResponse = exports.QueryValidatorsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const staking_1 = require("./staking"); +const binary_1 = require("../../../binary"); +function createBaseQueryValidatorsRequest() { + return { + status: "", + pagination: undefined + }; +} +exports.QueryValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorsRequest(); + message.status = object.status ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorsRequest(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === "" ? undefined : message.status; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorsRequest", + value: exports.QueryValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + value: exports.QueryValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorsResponse() { + return { + validators: [], + pagination: undefined + }; +} +exports.QueryValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validators) { + staking_1.Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorsResponse", + value: exports.QueryValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + value: exports.QueryValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorRequest() { + return { + validatorAddr: "" + }; +} +exports.QueryValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorRequest", + value: exports.QueryValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + value: exports.QueryValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorResponse() { + return { + validator: staking_1.Validator.fromPartial({}) + }; +} +exports.QueryValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validator !== undefined) { + staking_1.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = staking_1.Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? staking_1.Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = staking_1.Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? staking_1.Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorResponse", + value: exports.QueryValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + value: exports.QueryValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsRequest() { + return { + validatorAddr: "", + pagination: undefined + }; +} +exports.QueryValidatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorDelegationsRequest", + value: exports.QueryValidatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorDelegationsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + value: exports.QueryValidatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsResponse() { + return { + delegationResponses: [], + pagination: undefined + }; +} +exports.QueryValidatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.delegationResponses) { + staking_1.DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(staking_1.DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => staking_1.DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => staking_1.DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? staking_1.DelegationResponse.toAmino(e) : undefined); + } + else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorDelegationsResponse", + value: exports.QueryValidatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorDelegationsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + value: exports.QueryValidatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsRequest() { + return { + validatorAddr: "", + pagination: undefined + }; +} +exports.QueryValidatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", + value: exports.QueryValidatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + value: exports.QueryValidatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsResponse() { + return { + unbondingResponses: [], + pagination: undefined + }; +} +exports.QueryValidatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.unbondingResponses) { + staking_1.UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", + value: exports.QueryValidatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryValidatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + value: exports.QueryValidatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +exports.QueryDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRequest", + value: exports.QueryDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + value: exports.QueryDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationResponse() { + return { + delegationResponse: undefined + }; +} +exports.QueryDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegationResponse !== undefined) { + staking_1.DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponse = staking_1.DelegationResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationResponse(); + message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? staking_1.DelegationResponse.fromPartial(object.delegationResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationResponse(); + if (object.delegation_response !== undefined && object.delegation_response !== null) { + message.delegationResponse = staking_1.DelegationResponse.fromAmino(object.delegation_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegation_response = message.delegationResponse ? staking_1.DelegationResponse.toAmino(message.delegationResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationResponse", + value: exports.QueryDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegationResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + value: exports.QueryDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +exports.QueryUnbondingDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUnbondingDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUnbondingDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUnbondingDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUnbondingDelegationRequest", + value: exports.QueryUnbondingDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUnbondingDelegationRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryUnbondingDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + value: exports.QueryUnbondingDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationResponse() { + return { + unbond: staking_1.UnbondingDelegation.fromPartial({}) + }; +} +exports.QueryUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.unbond !== undefined) { + staking_1.UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbond = staking_1.UnbondingDelegation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUnbondingDelegationResponse(); + message.unbond = object.unbond !== undefined && object.unbond !== null ? staking_1.UnbondingDelegation.fromPartial(object.unbond) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUnbondingDelegationResponse(); + if (object.unbond !== undefined && object.unbond !== null) { + message.unbond = staking_1.UnbondingDelegation.fromAmino(object.unbond); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.unbond = message.unbond ? staking_1.UnbondingDelegation.toAmino(message.unbond) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUnbondingDelegationResponse", + value: exports.QueryUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUnbondingDelegationResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + value: exports.QueryUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +exports.QueryDelegatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsRequest", + value: exports.QueryDelegatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorDelegationsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + value: exports.QueryDelegatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsResponse() { + return { + delegationResponses: [], + pagination: undefined + }; +} +exports.QueryDelegatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.delegationResponses) { + staking_1.DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(staking_1.DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => staking_1.DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => staking_1.DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? staking_1.DelegationResponse.toAmino(e) : undefined); + } + else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsResponse", + value: exports.QueryDelegatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorDelegationsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + value: exports.QueryDelegatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +exports.QueryDelegatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", + value: exports.QueryDelegatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + value: exports.QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsResponse() { + return { + unbondingResponses: [], + pagination: undefined + }; +} +exports.QueryDelegatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.unbondingResponses) { + staking_1.UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", + value: exports.QueryDelegatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + value: exports.QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsRequest() { + return { + delegatorAddr: "", + srcValidatorAddr: "", + dstValidatorAddr: "", + pagination: undefined + }; +} +exports.QueryRedelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.srcValidatorAddr !== "") { + writer.uint32(18).string(message.srcValidatorAddr); + } + if (message.dstValidatorAddr !== "") { + writer.uint32(26).string(message.dstValidatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.srcValidatorAddr = reader.string(); + break; + case 3: + message.dstValidatorAddr = reader.string(); + break; + case 4: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryRedelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.srcValidatorAddr = object.srcValidatorAddr ?? ""; + message.dstValidatorAddr = object.dstValidatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryRedelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { + message.srcValidatorAddr = object.src_validator_addr; + } + if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { + message.dstValidatorAddr = object.dst_validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; + obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryRedelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryRedelegationsRequest", + value: exports.QueryRedelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryRedelegationsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryRedelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + value: exports.QueryRedelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsResponse() { + return { + redelegationResponses: [], + pagination: undefined + }; +} +exports.QueryRedelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.redelegationResponses) { + staking_1.RedelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationResponses.push(staking_1.RedelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegationResponses?.map(e => staking_1.RedelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegation_responses?.map(e => staking_1.RedelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.redelegationResponses) { + obj.redelegation_responses = message.redelegationResponses.map(e => e ? staking_1.RedelegationResponse.toAmino(e) : undefined); + } + else { + obj.redelegation_responses = message.redelegationResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryRedelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryRedelegationsResponse", + value: exports.QueryRedelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryRedelegationsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryRedelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + value: exports.QueryRedelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +exports.QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: exports.QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + value: exports.QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse() { + return { + validators: [], + pagination: undefined + }; +} +exports.QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validators) { + staking_1.Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: exports.QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + value: exports.QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +exports.QueryDelegatorValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorRequest", + value: exports.QueryDelegatorValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + value: exports.QueryDelegatorValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorResponse() { + return { + validator: staking_1.Validator.fromPartial({}) + }; +} +exports.QueryDelegatorValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validator !== undefined) { + staking_1.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = staking_1.Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? staking_1.Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = staking_1.Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? staking_1.Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDelegatorValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorResponse", + value: exports.QueryDelegatorValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDelegatorValidatorResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDelegatorValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + value: exports.QueryDelegatorValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoRequest() { + return { + height: BigInt(0) + }; +} +exports.QueryHistoricalInfoRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryHistoricalInfoRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryHistoricalInfoRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryHistoricalInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryHistoricalInfoRequest", + value: exports.QueryHistoricalInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryHistoricalInfoRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryHistoricalInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + value: exports.QueryHistoricalInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoResponse() { + return { + hist: undefined + }; +} +exports.QueryHistoricalInfoResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hist !== undefined) { + staking_1.HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hist = staking_1.HistoricalInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryHistoricalInfoResponse(); + message.hist = object.hist !== undefined && object.hist !== null ? staking_1.HistoricalInfo.fromPartial(object.hist) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryHistoricalInfoResponse(); + if (object.hist !== undefined && object.hist !== null) { + message.hist = staking_1.HistoricalInfo.fromAmino(object.hist); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hist = message.hist ? staking_1.HistoricalInfo.toAmino(message.hist) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryHistoricalInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryHistoricalInfoResponse", + value: exports.QueryHistoricalInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryHistoricalInfoResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryHistoricalInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + value: exports.QueryHistoricalInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryPoolRequest() { + return {}; +} +exports.QueryPoolRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryPoolRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryPoolRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryPoolRequest", + value: exports.QueryPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryPoolRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryPoolRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + value: exports.QueryPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryPoolResponse() { + return { + pool: staking_1.Pool.fromPartial({}) + }; +} +exports.QueryPoolResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pool !== undefined) { + staking_1.Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool = staking_1.Pool.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryPoolResponse(); + message.pool = object.pool !== undefined && object.pool !== null ? staking_1.Pool.fromPartial(object.pool) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryPoolResponse(); + if (object.pool !== undefined && object.pool !== null) { + message.pool = staking_1.Pool.fromAmino(object.pool); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pool = message.pool ? staking_1.Pool.toAmino(message.pool) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryPoolResponse", + value: exports.QueryPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryPoolResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + value: exports.QueryPoolResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: staking_1.Params.fromPartial({}) + }; +} +exports.QueryParamsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + staking_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = staking_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? staking_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = staking_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? staking_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..0f29585b --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts @@ -0,0 +1,22 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + validators(params: QueryValidatorsRequest): Promise; + validator(params: QueryValidatorRequest): Promise; + validatorDelegations(params: QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(params: QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(params: QueryDelegationRequest): Promise; + unbondingDelegation(params: QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(params: QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(params: QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(params: QueryRedelegationsRequest): Promise; + delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(params: QueryDelegatorValidatorRequest): Promise; + historicalInfo(params: QueryHistoricalInfoRequest): Promise; + pool(_params?: QueryPoolRequest): Promise; + params(_params?: QueryParamsRequest): Promise; +} diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js new file mode 100644 index 00000000..ebbef5fc --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js @@ -0,0 +1,151 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + /* Validators queries all validators that match the given status. */ + async validators(params) { + const options = { + params: {} + }; + if (typeof params?.status !== "undefined") { + options.params.status = params.status; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators`; + return await this.req.get(endpoint, options); + } + /* Validator queries validator info for given validator address. */ + async validator(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* ValidatorDelegations queries delegate info for given validator. */ + async validatorDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; + return await this.req.get(endpoint, options); + } + /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + async validatorUnbondingDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Delegation queries delegate info for given validator delegator pair. */ + async delegation(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint); + } + /* UnbondingDelegation queries unbonding info for given validator delegator + pair. */ + async unbondingDelegation(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; + return await this.req.get(endpoint); + } + /* DelegatorDelegations queries all delegations of a given delegator address. */ + async delegatorDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint, options); + } + /* DelegatorUnbondingDelegations queries all unbonding delegations of a given + delegator address. */ + async delegatorUnbondingDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Redelegations queries redelegations of given address. */ + async redelegations(params) { + const options = { + params: {} + }; + if (typeof params?.srcValidatorAddr !== "undefined") { + options.params.src_validator_addr = params.srcValidatorAddr; + } + if (typeof params?.dstValidatorAddr !== "undefined") { + options.params.dst_validator_addr = params.dstValidatorAddr; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidators queries all validators info for given delegator + address. */ + async delegatorValidators(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidator queries validator info for given delegator validator + pair. */ + async delegatorValidator(params) { + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* HistoricalInfo queries the historical info for given height. */ + async historicalInfo(params) { + const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; + return await this.req.get(endpoint); + } + /* Pool queries the pool info. */ + async pool(_params = {}) { + const endpoint = `cosmos/staking/v1beta1/pool`; + return await this.req.get(endpoint); + } + /* Parameters queries the staking parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/staking/v1beta1/params`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..6f710e5d --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,80 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Validators queries all validators that match the given status. */ + validators(request: QueryValidatorsRequest): Promise; + /** Validator queries validator info for given validator address. */ + validator(request: QueryValidatorRequest): Promise; + /** ValidatorDelegations queries delegate info for given validator. */ + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + /** Delegation queries delegate info for given validator delegator pair. */ + delegation(request: QueryDelegationRequest): Promise; + /** + * UnbondingDelegation queries unbonding info for given validator delegator + * pair. + */ + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + /** DelegatorDelegations queries all delegations of a given delegator address. */ + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + /** + * DelegatorUnbondingDelegations queries all unbonding delegations of a given + * delegator address. + */ + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + /** Redelegations queries redelegations of given address. */ + redelegations(request: QueryRedelegationsRequest): Promise; + /** + * DelegatorValidators queries all validators info for given delegator + * address. + */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** + * DelegatorValidator queries validator info for given delegator validator + * pair. + */ + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + /** HistoricalInfo queries the historical info for given height. */ + historicalInfo(request: QueryHistoricalInfoRequest): Promise; + /** Pool queries the pool info. */ + pool(request?: QueryPoolRequest): Promise; + /** Parameters queries the staking parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + validators(request: QueryValidatorsRequest): Promise; + validator(request: QueryValidatorRequest): Promise; + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: QueryDelegationRequest): Promise; + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: QueryRedelegationsRequest): Promise; + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: QueryHistoricalInfoRequest): Promise; + pool(request?: QueryPoolRequest): Promise; + params(request?: QueryParamsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + validators(request: QueryValidatorsRequest): Promise; + validator(request: QueryValidatorRequest): Promise; + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: QueryDelegationRequest): Promise; + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: QueryRedelegationsRequest): Promise; + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: QueryHistoricalInfoRequest): Promise; + pool(request?: QueryPoolRequest): Promise; + params(request?: QueryParamsRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..67d0eba2 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js @@ -0,0 +1,146 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + validators(request) { + const data = query_1.QueryValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); + return promise.then(data => query_1.QueryValidatorsResponse.decode(new binary_1.BinaryReader(data))); + } + validator(request) { + const data = query_1.QueryValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); + return promise.then(data => query_1.QueryValidatorResponse.decode(new binary_1.BinaryReader(data))); + } + validatorDelegations(request) { + const data = query_1.QueryValidatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); + return promise.then(data => query_1.QueryValidatorDelegationsResponse.decode(new binary_1.BinaryReader(data))); + } + validatorUnbondingDelegations(request) { + const data = query_1.QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); + return promise.then(data => query_1.QueryValidatorUnbondingDelegationsResponse.decode(new binary_1.BinaryReader(data))); + } + delegation(request) { + const data = query_1.QueryDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); + return promise.then(data => query_1.QueryDelegationResponse.decode(new binary_1.BinaryReader(data))); + } + unbondingDelegation(request) { + const data = query_1.QueryUnbondingDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); + return promise.then(data => query_1.QueryUnbondingDelegationResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorDelegations(request) { + const data = query_1.QueryDelegatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); + return promise.then(data => query_1.QueryDelegatorDelegationsResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorUnbondingDelegations(request) { + const data = query_1.QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); + return promise.then(data => query_1.QueryDelegatorUnbondingDelegationsResponse.decode(new binary_1.BinaryReader(data))); + } + redelegations(request) { + const data = query_1.QueryRedelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); + return promise.then(data => query_1.QueryRedelegationsResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorValidators(request) { + const data = query_1.QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => query_1.QueryDelegatorValidatorsResponse.decode(new binary_1.BinaryReader(data))); + } + delegatorValidator(request) { + const data = query_1.QueryDelegatorValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); + return promise.then(data => query_1.QueryDelegatorValidatorResponse.decode(new binary_1.BinaryReader(data))); + } + historicalInfo(request) { + const data = query_1.QueryHistoricalInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); + return promise.then(data => query_1.QueryHistoricalInfoResponse.decode(new binary_1.BinaryReader(data))); + } + pool(request = {}) { + const data = query_1.QueryPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); + return promise.then(data => query_1.QueryPoolResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + validators(request) { + return queryService.validators(request); + }, + validator(request) { + return queryService.validator(request); + }, + validatorDelegations(request) { + return queryService.validatorDelegations(request); + }, + validatorUnbondingDelegations(request) { + return queryService.validatorUnbondingDelegations(request); + }, + delegation(request) { + return queryService.delegation(request); + }, + unbondingDelegation(request) { + return queryService.unbondingDelegation(request); + }, + delegatorDelegations(request) { + return queryService.delegatorDelegations(request); + }, + delegatorUnbondingDelegations(request) { + return queryService.delegatorUnbondingDelegations(request); + }, + redelegations(request) { + return queryService.redelegations(request); + }, + delegatorValidators(request) { + return queryService.delegatorValidators(request); + }, + delegatorValidator(request) { + return queryService.delegatorValidator(request); + }, + historicalInfo(request) { + return queryService.historicalInfo(request); + }, + pool(request) { + return queryService.pool(request); + }, + params(request) { + return queryService.params(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts b/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts new file mode 100644 index 00000000..91834f30 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts @@ -0,0 +1,1065 @@ +import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Pubkey } from "@cosmjs/amino"; +/** BondStatus is the status of a validator. */ +export declare enum BondStatus { + /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ + BOND_STATUS_UNSPECIFIED = 0, + /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ + BOND_STATUS_UNBONDED = 1, + /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ + BOND_STATUS_UNBONDING = 2, + /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ + BOND_STATUS_BONDED = 3, + UNRECOGNIZED = -1 +} +export declare const BondStatusSDKType: typeof BondStatus; +export declare const BondStatusAmino: typeof BondStatus; +export declare function bondStatusFromJSON(object: any): BondStatus; +export declare function bondStatusToJSON(object: BondStatus): string; +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfo { + header: Header; + valset: Validator[]; +} +export interface HistoricalInfoProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; + value: Uint8Array; +} +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfoAmino { + header?: HeaderAmino; + valset?: ValidatorAmino[]; +} +export interface HistoricalInfoAminoMsg { + type: "cosmos-sdk/HistoricalInfo"; + value: HistoricalInfoAmino; +} +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfoSDKType { + header: HeaderSDKType; + valset: ValidatorSDKType[]; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRates { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + maxRate: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + maxChangeRate: string; +} +export interface CommissionRatesProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; + value: Uint8Array; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRatesAmino { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; +} +export interface CommissionRatesAminoMsg { + type: "cosmos-sdk/CommissionRates"; + value: CommissionRatesAmino; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRatesSDKType { + rate: string; + max_rate: string; + max_change_rate: string; +} +/** Commission defines commission parameters for a given validator. */ +export interface Commission { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commissionRates: CommissionRates; + /** update_time is the last time the commission rate was changed. */ + updateTime: Date; +} +export interface CommissionProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Commission"; + value: Uint8Array; +} +/** Commission defines commission parameters for a given validator. */ +export interface CommissionAmino { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: CommissionRatesAmino; + /** update_time is the last time the commission rate was changed. */ + update_time?: string; +} +export interface CommissionAminoMsg { + type: "cosmos-sdk/Commission"; + value: CommissionAmino; +} +/** Commission defines commission parameters for a given validator. */ +export interface CommissionSDKType { + commission_rates: CommissionRatesSDKType; + update_time: Date; +} +/** Description defines a validator description. */ +export interface Description { + /** moniker defines a human-readable name for the validator. */ + moniker: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity: string; + /** website defines an optional website link. */ + website: string; + /** security_contact defines an optional email for security contact. */ + securityContact: string; + /** details define other optional details. */ + details: string; +} +export interface DescriptionProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Description"; + value: Uint8Array; +} +/** Description defines a validator description. */ +export interface DescriptionAmino { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; +} +export interface DescriptionAminoMsg { + type: "cosmos-sdk/Description"; + value: DescriptionAmino; +} +/** Description defines a validator description. */ +export interface DescriptionSDKType { + moniker: string; + identity: string; + website: string; + security_contact: string; + details: string; +} +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface Validator { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operatorAddress: string; + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ + consensusPubkey?: Any | undefined; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed: boolean; + /** status is the validator status (bonded/unbonding/unbonded). */ + status: BondStatus; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegatorShares: string; + /** description defines the description terms for the validator. */ + description: Description; + /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ + unbondingHeight: bigint; + /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ + unbondingTime: Date; + /** commission defines the commission parameters. */ + commission: Commission; + /** + * min_self_delegation is the validator's self declared minimum self delegation. + * + * Since: cosmos-sdk 0.46 + */ + minSelfDelegation: string; +} +export interface ValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Validator"; + value: Uint8Array; +} +export type ValidatorEncoded = Omit & { + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ consensusPubkey?: AnyProtoMsg | undefined; +}; +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface ValidatorAmino { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ + consensus_pubkey?: AnyAmino; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** status is the validator status (bonded/unbonding/unbonded). */ + status?: BondStatus; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: DescriptionAmino; + /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ + unbonding_height?: string; + /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: CommissionAmino; + /** + * min_self_delegation is the validator's self declared minimum self delegation. + * + * Since: cosmos-sdk 0.46 + */ + min_self_delegation?: string; +} +export interface ValidatorAminoMsg { + type: "cosmos-sdk/Validator"; + value: ValidatorAmino; +} +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface ValidatorSDKType { + operator_address: string; + consensus_pubkey?: AnySDKType | undefined; + jailed: boolean; + status: BondStatus; + tokens: string; + delegator_shares: string; + description: DescriptionSDKType; + unbonding_height: bigint; + unbonding_time: Date; + commission: CommissionSDKType; + min_self_delegation: string; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddresses { + addresses: string[]; +} +export interface ValAddressesProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; + value: Uint8Array; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddressesAmino { + addresses?: string[]; +} +export interface ValAddressesAminoMsg { + type: "cosmos-sdk/ValAddresses"; + value: ValAddressesAmino; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddressesSDKType { + addresses: string[]; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPair { + delegatorAddress: string; + validatorAddress: string; +} +export interface DVPairProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVPair"; + value: Uint8Array; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPairAmino { + delegator_address?: string; + validator_address?: string; +} +export interface DVPairAminoMsg { + type: "cosmos-sdk/DVPair"; + value: DVPairAmino; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPairSDKType { + delegator_address: string; + validator_address: string; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairs { + pairs: DVPair[]; +} +export interface DVPairsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVPairs"; + value: Uint8Array; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairsAmino { + pairs?: DVPairAmino[]; +} +export interface DVPairsAminoMsg { + type: "cosmos-sdk/DVPairs"; + value: DVPairsAmino; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairsSDKType { + pairs: DVPairSDKType[]; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTriplet { + delegatorAddress: string; + validatorSrcAddress: string; + validatorDstAddress: string; +} +export interface DVVTripletProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; + value: Uint8Array; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTripletAmino { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; +} +export interface DVVTripletAminoMsg { + type: "cosmos-sdk/DVVTriplet"; + value: DVVTripletAmino; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTripletSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTriplets { + triplets: DVVTriplet[]; +} +export interface DVVTripletsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; + value: Uint8Array; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTripletsAmino { + triplets?: DVVTripletAmino[]; +} +export interface DVVTripletsAminoMsg { + type: "cosmos-sdk/DVVTriplets"; + value: DVVTripletsAmino; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTripletsSDKType { + triplets: DVVTripletSDKType[]; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface Delegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_address is the bech32-encoded address of the validator. */ + validatorAddress: string; + /** shares define the delegation shares received. */ + shares: string; +} +export interface DelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Delegation"; + value: Uint8Array; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface DelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; +} +export interface DelegationAminoMsg { + type: "cosmos-sdk/Delegation"; + value: DelegationAmino; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface DelegationSDKType { + delegator_address: string; + validator_address: string; + shares: string; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_address is the bech32-encoded address of the validator. */ + validatorAddress: string; + /** entries are the unbonding delegation entries. */ + entries: UnbondingDelegationEntry[]; +} +export interface UnbondingDelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; + value: Uint8Array; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: UnbondingDelegationEntryAmino[]; +} +export interface UnbondingDelegationAminoMsg { + type: "cosmos-sdk/UnbondingDelegation"; + value: UnbondingDelegationAmino; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegationSDKType { + delegator_address: string; + validator_address: string; + entries: UnbondingDelegationEntrySDKType[]; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntry { + /** creation_height is the height which the unbonding took place. */ + creationHeight: bigint; + /** completion_time is the unix time for unbonding completion. */ + completionTime: Date; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initialBalance: string; + /** balance defines the tokens to receive at completion. */ + balance: string; +} +export interface UnbondingDelegationEntryProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; + value: Uint8Array; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntryAmino { + /** creation_height is the height which the unbonding took place. */ + creation_height?: string; + /** completion_time is the unix time for unbonding completion. */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; +} +export interface UnbondingDelegationEntryAminoMsg { + type: "cosmos-sdk/UnbondingDelegationEntry"; + value: UnbondingDelegationEntryAmino; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntrySDKType { + creation_height: bigint; + completion_time: Date; + initial_balance: string; + balance: string; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntry { + /** creation_height defines the height which the redelegation took place. */ + creationHeight: bigint; + /** completion_time defines the unix time for redelegation completion. */ + completionTime: Date; + /** initial_balance defines the initial balance when redelegation started. */ + initialBalance: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + sharesDst: string; +} +export interface RedelegationEntryProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; + value: Uint8Array; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntryAmino { + /** creation_height defines the height which the redelegation took place. */ + creation_height?: string; + /** completion_time defines the unix time for redelegation completion. */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; +} +export interface RedelegationEntryAminoMsg { + type: "cosmos-sdk/RedelegationEntry"; + value: RedelegationEntryAmino; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntrySDKType { + creation_height: bigint; + completion_time: Date; + initial_balance: string; + shares_dst: string; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface Redelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_src_address is the validator redelegation source operator address. */ + validatorSrcAddress: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validatorDstAddress: string; + /** entries are the redelegation entries. */ + entries: RedelegationEntry[]; +} +export interface RedelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Redelegation"; + value: Uint8Array; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface RedelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: RedelegationEntryAmino[]; +} +export interface RedelegationAminoMsg { + type: "cosmos-sdk/Redelegation"; + value: RedelegationAmino; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface RedelegationSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; + entries: RedelegationEntrySDKType[]; +} +/** Params defines the parameters for the staking module. */ +export interface Params { + /** unbonding_time is the time duration of unbonding. */ + unbondingTime: Duration; + /** max_validators is the maximum number of validators. */ + maxValidators: number; + /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ + maxEntries: number; + /** historical_entries is the number of historical entries to persist. */ + historicalEntries: number; + /** bond_denom defines the bondable coin denomination. */ + bondDenom: string; + /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ + minCommissionRate: string; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the staking module. */ +export interface ParamsAmino { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: DurationAmino; + /** max_validators is the maximum number of validators. */ + max_validators?: number; + /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ + max_entries?: number; + /** historical_entries is the number of historical entries to persist. */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ + min_commission_rate?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the staking module. */ +export interface ParamsSDKType { + unbonding_time: DurationSDKType; + max_validators: number; + max_entries: number; + historical_entries: number; + bond_denom: string; + min_commission_rate: string; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponse { + delegation: Delegation; + balance: Coin; +} +export interface DelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; + value: Uint8Array; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponseAmino { + delegation?: DelegationAmino; + balance?: CoinAmino; +} +export interface DelegationResponseAminoMsg { + type: "cosmos-sdk/DelegationResponse"; + value: DelegationResponseAmino; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponseSDKType { + delegation: DelegationSDKType; + balance: CoinSDKType; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponse { + redelegationEntry: RedelegationEntry; + balance: string; +} +export interface RedelegationEntryResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; + value: Uint8Array; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponseAmino { + redelegation_entry?: RedelegationEntryAmino; + balance?: string; +} +export interface RedelegationEntryResponseAminoMsg { + type: "cosmos-sdk/RedelegationEntryResponse"; + value: RedelegationEntryResponseAmino; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponseSDKType { + redelegation_entry: RedelegationEntrySDKType; + balance: string; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponse { + redelegation: Redelegation; + entries: RedelegationEntryResponse[]; +} +export interface RedelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; + value: Uint8Array; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponseAmino { + redelegation?: RedelegationAmino; + entries?: RedelegationEntryResponseAmino[]; +} +export interface RedelegationResponseAminoMsg { + type: "cosmos-sdk/RedelegationResponse"; + value: RedelegationResponseAmino; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponseSDKType { + redelegation: RedelegationSDKType; + entries: RedelegationEntryResponseSDKType[]; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface Pool { + notBondedTokens: string; + bondedTokens: string; +} +export interface PoolProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Pool"; + value: Uint8Array; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface PoolAmino { + not_bonded_tokens: string; + bonded_tokens: string; +} +export interface PoolAminoMsg { + type: "cosmos-sdk/Pool"; + value: PoolAmino; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface PoolSDKType { + not_bonded_tokens: string; + bonded_tokens: string; +} +export declare const HistoricalInfo: { + typeUrl: string; + encode(message: HistoricalInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo; + fromPartial(object: Partial): HistoricalInfo; + fromAmino(object: HistoricalInfoAmino): HistoricalInfo; + toAmino(message: HistoricalInfo): HistoricalInfoAmino; + fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo; + toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg; + fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo; + toProto(message: HistoricalInfo): Uint8Array; + toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg; +}; +export declare const CommissionRates: { + typeUrl: string; + encode(message: CommissionRates, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates; + fromPartial(object: Partial): CommissionRates; + fromAmino(object: CommissionRatesAmino): CommissionRates; + toAmino(message: CommissionRates): CommissionRatesAmino; + fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates; + toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg; + fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates; + toProto(message: CommissionRates): Uint8Array; + toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg; +}; +export declare const Commission: { + typeUrl: string; + encode(message: Commission, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Commission; + fromPartial(object: Partial): Commission; + fromAmino(object: CommissionAmino): Commission; + toAmino(message: Commission): CommissionAmino; + fromAminoMsg(object: CommissionAminoMsg): Commission; + toAminoMsg(message: Commission): CommissionAminoMsg; + fromProtoMsg(message: CommissionProtoMsg): Commission; + toProto(message: Commission): Uint8Array; + toProtoMsg(message: Commission): CommissionProtoMsg; +}; +export declare const Description: { + typeUrl: string; + encode(message: Description, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Description; + fromPartial(object: Partial): Description; + fromAmino(object: DescriptionAmino): Description; + toAmino(message: Description): DescriptionAmino; + fromAminoMsg(object: DescriptionAminoMsg): Description; + toAminoMsg(message: Description): DescriptionAminoMsg; + fromProtoMsg(message: DescriptionProtoMsg): Description; + toProto(message: Description): Uint8Array; + toProtoMsg(message: Description): DescriptionProtoMsg; +}; +export declare const Validator: { + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; + fromPartial(object: Partial): Validator; + fromAmino(object: ValidatorAmino): Validator; + toAmino(message: Validator): ValidatorAmino; + fromAminoMsg(object: ValidatorAminoMsg): Validator; + toAminoMsg(message: Validator): ValidatorAminoMsg; + fromProtoMsg(message: ValidatorProtoMsg): Validator; + toProto(message: Validator): Uint8Array; + toProtoMsg(message: Validator): ValidatorProtoMsg; +}; +export declare const ValAddresses: { + typeUrl: string; + encode(message: ValAddresses, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses; + fromPartial(object: Partial): ValAddresses; + fromAmino(object: ValAddressesAmino): ValAddresses; + toAmino(message: ValAddresses): ValAddressesAmino; + fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses; + toAminoMsg(message: ValAddresses): ValAddressesAminoMsg; + fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses; + toProto(message: ValAddresses): Uint8Array; + toProtoMsg(message: ValAddresses): ValAddressesProtoMsg; +}; +export declare const DVPair: { + typeUrl: string; + encode(message: DVPair, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVPair; + fromPartial(object: Partial): DVPair; + fromAmino(object: DVPairAmino): DVPair; + toAmino(message: DVPair): DVPairAmino; + fromAminoMsg(object: DVPairAminoMsg): DVPair; + toAminoMsg(message: DVPair): DVPairAminoMsg; + fromProtoMsg(message: DVPairProtoMsg): DVPair; + toProto(message: DVPair): Uint8Array; + toProtoMsg(message: DVPair): DVPairProtoMsg; +}; +export declare const DVPairs: { + typeUrl: string; + encode(message: DVPairs, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVPairs; + fromPartial(object: Partial): DVPairs; + fromAmino(object: DVPairsAmino): DVPairs; + toAmino(message: DVPairs): DVPairsAmino; + fromAminoMsg(object: DVPairsAminoMsg): DVPairs; + toAminoMsg(message: DVPairs): DVPairsAminoMsg; + fromProtoMsg(message: DVPairsProtoMsg): DVPairs; + toProto(message: DVPairs): Uint8Array; + toProtoMsg(message: DVPairs): DVPairsProtoMsg; +}; +export declare const DVVTriplet: { + typeUrl: string; + encode(message: DVVTriplet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet; + fromPartial(object: Partial): DVVTriplet; + fromAmino(object: DVVTripletAmino): DVVTriplet; + toAmino(message: DVVTriplet): DVVTripletAmino; + fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet; + toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg; + fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet; + toProto(message: DVVTriplet): Uint8Array; + toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg; +}; +export declare const DVVTriplets: { + typeUrl: string; + encode(message: DVVTriplets, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets; + fromPartial(object: Partial): DVVTriplets; + fromAmino(object: DVVTripletsAmino): DVVTriplets; + toAmino(message: DVVTriplets): DVVTripletsAmino; + fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets; + toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg; + fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets; + toProto(message: DVVTriplets): Uint8Array; + toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg; +}; +export declare const Delegation: { + typeUrl: string; + encode(message: Delegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Delegation; + fromPartial(object: Partial): Delegation; + fromAmino(object: DelegationAmino): Delegation; + toAmino(message: Delegation): DelegationAmino; + fromAminoMsg(object: DelegationAminoMsg): Delegation; + toAminoMsg(message: Delegation): DelegationAminoMsg; + fromProtoMsg(message: DelegationProtoMsg): Delegation; + toProto(message: Delegation): Uint8Array; + toProtoMsg(message: Delegation): DelegationProtoMsg; +}; +export declare const UnbondingDelegation: { + typeUrl: string; + encode(message: UnbondingDelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation; + fromPartial(object: Partial): UnbondingDelegation; + fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation; + toAmino(message: UnbondingDelegation): UnbondingDelegationAmino; + fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation; + toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg; + fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation; + toProto(message: UnbondingDelegation): Uint8Array; + toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg; +}; +export declare const UnbondingDelegationEntry: { + typeUrl: string; + encode(message: UnbondingDelegationEntry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry; + fromPartial(object: Partial): UnbondingDelegationEntry; + fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry; + toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino; + fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry; + toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg; + fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry; + toProto(message: UnbondingDelegationEntry): Uint8Array; + toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg; +}; +export declare const RedelegationEntry: { + typeUrl: string; + encode(message: RedelegationEntry, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry; + fromPartial(object: Partial): RedelegationEntry; + fromAmino(object: RedelegationEntryAmino): RedelegationEntry; + toAmino(message: RedelegationEntry): RedelegationEntryAmino; + fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry; + toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg; + fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry; + toProto(message: RedelegationEntry): Uint8Array; + toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg; +}; +export declare const Redelegation: { + typeUrl: string; + encode(message: Redelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Redelegation; + fromPartial(object: Partial): Redelegation; + fromAmino(object: RedelegationAmino): Redelegation; + toAmino(message: Redelegation): RedelegationAmino; + fromAminoMsg(object: RedelegationAminoMsg): Redelegation; + toAminoMsg(message: Redelegation): RedelegationAminoMsg; + fromProtoMsg(message: RedelegationProtoMsg): Redelegation; + toProto(message: Redelegation): Uint8Array; + toProtoMsg(message: Redelegation): RedelegationProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; +export declare const DelegationResponse: { + typeUrl: string; + encode(message: DelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse; + fromPartial(object: Partial): DelegationResponse; + fromAmino(object: DelegationResponseAmino): DelegationResponse; + toAmino(message: DelegationResponse): DelegationResponseAmino; + fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse; + toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg; + fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse; + toProto(message: DelegationResponse): Uint8Array; + toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg; +}; +export declare const RedelegationEntryResponse: { + typeUrl: string; + encode(message: RedelegationEntryResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse; + fromPartial(object: Partial): RedelegationEntryResponse; + fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse; + toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino; + fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse; + toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg; + fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse; + toProto(message: RedelegationEntryResponse): Uint8Array; + toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg; +}; +export declare const RedelegationResponse: { + typeUrl: string; + encode(message: RedelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse; + fromPartial(object: Partial): RedelegationResponse; + fromAmino(object: RedelegationResponseAmino): RedelegationResponse; + toAmino(message: RedelegationResponse): RedelegationResponseAmino; + fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse; + toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg; + fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse; + toProto(message: RedelegationResponse): Uint8Array; + toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg; +}; +export declare const Pool: { + typeUrl: string; + encode(message: Pool, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Pool; + fromPartial(object: Partial): Pool; + fromAmino(object: PoolAmino): Pool; + toAmino(message: Pool): PoolAmino; + fromAminoMsg(object: PoolAminoMsg): Pool; + toAminoMsg(message: Pool): PoolAminoMsg; + fromProtoMsg(message: PoolProtoMsg): Pool; + toProto(message: Pool): Uint8Array; + toProtoMsg(message: Pool): PoolProtoMsg; +}; +export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; +export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/dist/cosmos/staking/v1beta1/staking.js b/packages/api/dist/cosmos/staking/v1beta1/staking.js new file mode 100644 index 00000000..245dae4a --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/staking.js @@ -0,0 +1,1999 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Cosmos_cryptoPubKey_ToAmino = exports.Cosmos_cryptoPubKey_FromAmino = exports.Cosmos_cryptoPubKey_InterfaceDecoder = exports.Pool = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.DelegationResponse = exports.Params = exports.Redelegation = exports.RedelegationEntry = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.ValAddresses = exports.Validator = exports.Description = exports.Commission = exports.CommissionRates = exports.HistoricalInfo = exports.bondStatusToJSON = exports.bondStatusFromJSON = exports.BondStatusAmino = exports.BondStatusSDKType = exports.BondStatus = void 0; +//@ts-nocheck +const types_1 = require("../../../tendermint/types/types"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const any_1 = require("../../../google/protobuf/any"); +const duration_1 = require("../../../google/protobuf/duration"); +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const math_1 = require("@cosmjs/math"); +const helpers_1 = require("../../../helpers"); +const proto_signing_1 = require("@cosmjs/proto-signing"); +/** BondStatus is the status of a validator. */ +var BondStatus; +(function (BondStatus) { + /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ + BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED"; + /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ + BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED"; + /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ + BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING"; + /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ + BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED"; + BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BondStatus || (exports.BondStatus = BondStatus = {})); +exports.BondStatusSDKType = BondStatus; +exports.BondStatusAmino = BondStatus; +function bondStatusFromJSON(object) { + switch (object) { + case 0: + case "BOND_STATUS_UNSPECIFIED": + return BondStatus.BOND_STATUS_UNSPECIFIED; + case 1: + case "BOND_STATUS_UNBONDED": + return BondStatus.BOND_STATUS_UNBONDED; + case 2: + case "BOND_STATUS_UNBONDING": + return BondStatus.BOND_STATUS_UNBONDING; + case 3: + case "BOND_STATUS_BONDED": + return BondStatus.BOND_STATUS_BONDED; + case -1: + case "UNRECOGNIZED": + default: + return BondStatus.UNRECOGNIZED; + } +} +exports.bondStatusFromJSON = bondStatusFromJSON; +function bondStatusToJSON(object) { + switch (object) { + case BondStatus.BOND_STATUS_UNSPECIFIED: + return "BOND_STATUS_UNSPECIFIED"; + case BondStatus.BOND_STATUS_UNBONDED: + return "BOND_STATUS_UNBONDED"; + case BondStatus.BOND_STATUS_UNBONDING: + return "BOND_STATUS_UNBONDING"; + case BondStatus.BOND_STATUS_BONDED: + return "BOND_STATUS_BONDED"; + case BondStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.bondStatusToJSON = bondStatusToJSON; +function createBaseHistoricalInfo() { + return { + header: types_1.Header.fromPartial({}), + valset: [] + }; +} +exports.HistoricalInfo = { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.header !== undefined) { + types_1.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.valset) { + exports.Validator.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHistoricalInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = types_1.Header.decode(reader, reader.uint32()); + break; + case 2: + message.valset.push(exports.Validator.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHistoricalInfo(); + message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; + message.valset = object.valset?.map(e => exports.Validator.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseHistoricalInfo(); + if (object.header !== undefined && object.header !== null) { + message.header = types_1.Header.fromAmino(object.header); + } + message.valset = object.valset?.map(e => exports.Validator.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; + if (message.valset) { + obj.valset = message.valset.map(e => e ? exports.Validator.toAmino(e) : undefined); + } + else { + obj.valset = message.valset; + } + return obj; + }, + fromAminoMsg(object) { + return exports.HistoricalInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/HistoricalInfo", + value: exports.HistoricalInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.HistoricalInfo.decode(message.value); + }, + toProto(message) { + return exports.HistoricalInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + value: exports.HistoricalInfo.encode(message).finish() + }; + } +}; +function createBaseCommissionRates() { + return { + rate: "", + maxRate: "", + maxChangeRate: "" + }; +} +exports.CommissionRates = { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.rate !== "") { + writer.uint32(10).string(math_1.Decimal.fromUserInput(message.rate, 18).atomics); + } + if (message.maxRate !== "") { + writer.uint32(18).string(math_1.Decimal.fromUserInput(message.maxRate, 18).atomics); + } + if (message.maxChangeRate !== "") { + writer.uint32(26).string(math_1.Decimal.fromUserInput(message.maxChangeRate, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommissionRates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.maxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.maxChangeRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommissionRates(); + message.rate = object.rate ?? ""; + message.maxRate = object.maxRate ?? ""; + message.maxChangeRate = object.maxChangeRate ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCommissionRates(); + if (object.rate !== undefined && object.rate !== null) { + message.rate = object.rate; + } + if (object.max_rate !== undefined && object.max_rate !== null) { + message.maxRate = object.max_rate; + } + if (object.max_change_rate !== undefined && object.max_change_rate !== null) { + message.maxChangeRate = object.max_change_rate; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.rate = message.rate === "" ? undefined : message.rate; + obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; + obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; + return obj; + }, + fromAminoMsg(object) { + return exports.CommissionRates.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommissionRates", + value: exports.CommissionRates.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CommissionRates.decode(message.value); + }, + toProto(message) { + return exports.CommissionRates.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + value: exports.CommissionRates.encode(message).finish() + }; + } +}; +function createBaseCommission() { + return { + commissionRates: exports.CommissionRates.fromPartial({}), + updateTime: new Date() + }; +} +exports.Commission = { + typeUrl: "/cosmos.staking.v1beta1.Commission", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.commissionRates !== undefined) { + exports.CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); + } + if (message.updateTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.updateTime), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commissionRates = exports.CommissionRates.decode(reader, reader.uint32()); + break; + case 2: + message.updateTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommission(); + message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? exports.CommissionRates.fromPartial(object.commissionRates) : undefined; + message.updateTime = object.updateTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseCommission(); + if (object.commission_rates !== undefined && object.commission_rates !== null) { + message.commissionRates = exports.CommissionRates.fromAmino(object.commission_rates); + } + if (object.update_time !== undefined && object.update_time !== null) { + message.updateTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.update_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.commission_rates = message.commissionRates ? exports.CommissionRates.toAmino(message.commissionRates) : undefined; + obj.update_time = message.updateTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.updateTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Commission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Commission", + value: exports.Commission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Commission.decode(message.value); + }, + toProto(message) { + return exports.Commission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Commission", + value: exports.Commission.encode(message).finish() + }; + } +}; +function createBaseDescription() { + return { + moniker: "", + identity: "", + website: "", + securityContact: "", + details: "" + }; +} +exports.Description = { + typeUrl: "/cosmos.staking.v1beta1.Description", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.moniker !== "") { + writer.uint32(10).string(message.moniker); + } + if (message.identity !== "") { + writer.uint32(18).string(message.identity); + } + if (message.website !== "") { + writer.uint32(26).string(message.website); + } + if (message.securityContact !== "") { + writer.uint32(34).string(message.securityContact); + } + if (message.details !== "") { + writer.uint32(42).string(message.details); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescription(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moniker = reader.string(); + break; + case 2: + message.identity = reader.string(); + break; + case 3: + message.website = reader.string(); + break; + case 4: + message.securityContact = reader.string(); + break; + case 5: + message.details = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescription(); + message.moniker = object.moniker ?? ""; + message.identity = object.identity ?? ""; + message.website = object.website ?? ""; + message.securityContact = object.securityContact ?? ""; + message.details = object.details ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDescription(); + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.identity !== undefined && object.identity !== null) { + message.identity = object.identity; + } + if (object.website !== undefined && object.website !== null) { + message.website = object.website; + } + if (object.security_contact !== undefined && object.security_contact !== null) { + message.securityContact = object.security_contact; + } + if (object.details !== undefined && object.details !== null) { + message.details = object.details; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.identity = message.identity === "" ? undefined : message.identity; + obj.website = message.website === "" ? undefined : message.website; + obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; + obj.details = message.details === "" ? undefined : message.details; + return obj; + }, + fromAminoMsg(object) { + return exports.Description.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Description", + value: exports.Description.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Description.decode(message.value); + }, + toProto(message) { + return exports.Description.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Description", + value: exports.Description.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + operatorAddress: "", + consensusPubkey: undefined, + jailed: false, + status: 0, + tokens: "", + delegatorShares: "", + description: exports.Description.fromPartial({}), + unbondingHeight: BigInt(0), + unbondingTime: new Date(), + commission: exports.Commission.fromPartial({}), + minSelfDelegation: "" + }; +} +exports.Validator = { + typeUrl: "/cosmos.staking.v1beta1.Validator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.operatorAddress !== "") { + writer.uint32(10).string(message.operatorAddress); + } + if (message.consensusPubkey !== undefined) { + any_1.Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim(); + } + if (message.jailed === true) { + writer.uint32(24).bool(message.jailed); + } + if (message.status !== 0) { + writer.uint32(32).int32(message.status); + } + if (message.tokens !== "") { + writer.uint32(42).string(message.tokens); + } + if (message.delegatorShares !== "") { + writer.uint32(50).string(math_1.Decimal.fromUserInput(message.delegatorShares, 18).atomics); + } + if (message.description !== undefined) { + exports.Description.encode(message.description, writer.uint32(58).fork()).ldelim(); + } + if (message.unbondingHeight !== BigInt(0)) { + writer.uint32(64).int64(message.unbondingHeight); + } + if (message.unbondingTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.unbondingTime), writer.uint32(74).fork()).ldelim(); + } + if (message.commission !== undefined) { + exports.Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(90).string(message.minSelfDelegation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operatorAddress = reader.string(); + break; + case 2: + message.consensusPubkey = (0, exports.Cosmos_cryptoPubKey_InterfaceDecoder)(reader); + break; + case 3: + message.jailed = reader.bool(); + break; + case 4: + message.status = reader.int32(); + break; + case 5: + message.tokens = reader.string(); + break; + case 6: + message.delegatorShares = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 7: + message.description = exports.Description.decode(reader, reader.uint32()); + break; + case 8: + message.unbondingHeight = reader.int64(); + break; + case 9: + message.unbondingTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.commission = exports.Commission.decode(reader, reader.uint32()); + break; + case 11: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.operatorAddress = object.operatorAddress ?? ""; + message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? any_1.Any.fromPartial(object.consensusPubkey) : undefined; + message.jailed = object.jailed ?? false; + message.status = object.status ?? 0; + message.tokens = object.tokens ?? ""; + message.delegatorShares = object.delegatorShares ?? ""; + message.description = object.description !== undefined && object.description !== null ? exports.Description.fromPartial(object.description) : undefined; + message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); + message.unbondingTime = object.unbondingTime ?? undefined; + message.commission = object.commission !== undefined && object.commission !== null ? exports.Commission.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.operator_address !== undefined && object.operator_address !== null) { + message.operatorAddress = object.operator_address; + } + if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { + message.consensusPubkey = (0, proto_signing_1.encodePubkey)(object.consensus_pubkey); + } + if (object.jailed !== undefined && object.jailed !== null) { + message.jailed = object.jailed; + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.tokens !== undefined && object.tokens !== null) { + message.tokens = object.tokens; + } + if (object.delegator_shares !== undefined && object.delegator_shares !== null) { + message.delegatorShares = object.delegator_shares; + } + if (object.description !== undefined && object.description !== null) { + message.description = exports.Description.fromAmino(object.description); + } + if (object.unbonding_height !== undefined && object.unbonding_height !== null) { + message.unbondingHeight = BigInt(object.unbonding_height); + } + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.unbonding_time)); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = exports.Commission.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; + obj.consensus_pubkey = message.consensusPubkey ? (0, proto_signing_1.decodePubkey)(message.consensusPubkey) : undefined; + obj.jailed = message.jailed === false ? undefined : message.jailed; + obj.status = message.status === 0 ? undefined : message.status; + obj.tokens = message.tokens === "" ? undefined : message.tokens; + obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; + obj.description = message.description ? exports.Description.toAmino(message.description) : undefined; + obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; + obj.unbonding_time = message.unbondingTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.unbondingTime)) : undefined; + obj.commission = message.commission ? exports.Commission.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object) { + return exports.Validator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Validator", + value: exports.Validator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Validator.decode(message.value); + }, + toProto(message) { + return exports.Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Validator", + value: exports.Validator.encode(message).finish() + }; + } +}; +function createBaseValAddresses() { + return { + addresses: [] + }; +} +exports.ValAddresses = { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.addresses) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValAddresses(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addresses.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.addresses) { + obj.addresses = message.addresses.map(e => e); + } + else { + obj.addresses = message.addresses; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValAddresses.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValAddresses", + value: exports.ValAddresses.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ValAddresses.decode(message.value); + }, + toProto(message) { + return exports.ValAddresses.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + value: exports.ValAddresses.encode(message).finish() + }; + } +}; +function createBaseDVPair() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +exports.DVPair = { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPair(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVPair(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDVPair(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.DVPair.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVPair", + value: exports.DVPair.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DVPair.decode(message.value); + }, + toProto(message) { + return exports.DVPair.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + value: exports.DVPair.encode(message).finish() + }; + } +}; +function createBaseDVPairs() { + return { + pairs: [] + }; +} +exports.DVPairs = { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.pairs) { + exports.DVPair.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPairs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pairs.push(exports.DVPair.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => exports.DVPair.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => exports.DVPair.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pairs) { + obj.pairs = message.pairs.map(e => e ? exports.DVPair.toAmino(e) : undefined); + } + else { + obj.pairs = message.pairs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.DVPairs.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVPairs", + value: exports.DVPairs.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DVPairs.decode(message.value); + }, + toProto(message) { + return exports.DVPairs.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + value: exports.DVPairs.encode(message).finish() + }; + } +}; +function createBaseDVVTriplet() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "" + }; +} +exports.DVVTriplet = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVVTriplet(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDVVTriplet(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.DVVTriplet.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVVTriplet", + value: exports.DVVTriplet.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DVVTriplet.decode(message.value); + }, + toProto(message) { + return exports.DVVTriplet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + value: exports.DVVTriplet.encode(message).finish() + }; + } +}; +function createBaseDVVTriplets() { + return { + triplets: [] + }; +} +exports.DVVTriplets = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.triplets) { + exports.DVVTriplet.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplets(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.triplets.push(exports.DVVTriplet.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => exports.DVVTriplet.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => exports.DVVTriplet.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.triplets) { + obj.triplets = message.triplets.map(e => e ? exports.DVVTriplet.toAmino(e) : undefined); + } + else { + obj.triplets = message.triplets; + } + return obj; + }, + fromAminoMsg(object) { + return exports.DVVTriplets.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVVTriplets", + value: exports.DVVTriplets.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DVVTriplets.decode(message.value); + }, + toProto(message) { + return exports.DVVTriplets.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + value: exports.DVVTriplets.encode(message).finish() + }; + } +}; +function createBaseDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + shares: "" + }; +} +exports.Delegation = { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.shares !== "") { + writer.uint32(26).string(math_1.Decimal.fromUserInput(message.shares, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.shares = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.shares = object.shares ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.shares !== undefined && object.shares !== null) { + message.shares = object.shares; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.shares = message.shares === "" ? undefined : message.shares; + return obj; + }, + fromAminoMsg(object) { + return exports.Delegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Delegation", + value: exports.Delegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Delegation.decode(message.value); + }, + toProto(message) { + return exports.Delegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + value: exports.Delegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + entries: [] + }; +} +exports.UnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + for (const v of message.entries) { + exports.UnbondingDelegationEntry.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.entries.push(exports.UnbondingDelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.entries = object.entries?.map(e => exports.UnbondingDelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.entries = object.entries?.map(e => exports.UnbondingDelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? exports.UnbondingDelegationEntry.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return exports.UnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UnbondingDelegation", + value: exports.UnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.UnbondingDelegation.decode(message.value); + }, + toProto(message) { + return exports.UnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + value: exports.UnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegationEntry() { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + balance: "" + }; +} +exports.UnbondingDelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUnbondingDelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseUnbondingDelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return exports.UnbondingDelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UnbondingDelegationEntry", + value: exports.UnbondingDelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.UnbondingDelegationEntry.decode(message.value); + }, + toProto(message) { + return exports.UnbondingDelegationEntry.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + value: exports.UnbondingDelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntry() { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + sharesDst: "" + }; +} +exports.RedelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.sharesDst !== "") { + writer.uint32(34).string(math_1.Decimal.fromUserInput(message.sharesDst, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.sharesDst = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.sharesDst = object.sharesDst ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.shares_dst !== undefined && object.shares_dst !== null) { + message.sharesDst = object.shares_dst; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; + return obj; + }, + fromAminoMsg(object) { + return exports.RedelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationEntry", + value: exports.RedelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.RedelegationEntry.decode(message.value); + }, + toProto(message) { + return exports.RedelegationEntry.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + value: exports.RedelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegation() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + entries: [] + }; +} +exports.Redelegation = { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + for (const v of message.entries) { + exports.RedelegationEntry.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.entries.push(exports.RedelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.entries = object.entries?.map(e => exports.RedelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + message.entries = object.entries?.map(e => exports.RedelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? exports.RedelegationEntry.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Redelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Redelegation", + value: exports.Redelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Redelegation.decode(message.value); + }, + toProto(message) { + return exports.Redelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + value: exports.Redelegation.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + unbondingTime: duration_1.Duration.fromPartial({}), + maxValidators: 0, + maxEntries: 0, + historicalEntries: 0, + bondDenom: "", + minCommissionRate: "" + }; +} +exports.Params = { + typeUrl: "/cosmos.staking.v1beta1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.unbondingTime !== undefined) { + duration_1.Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); + } + if (message.maxValidators !== 0) { + writer.uint32(16).uint32(message.maxValidators); + } + if (message.maxEntries !== 0) { + writer.uint32(24).uint32(message.maxEntries); + } + if (message.historicalEntries !== 0) { + writer.uint32(32).uint32(message.historicalEntries); + } + if (message.bondDenom !== "") { + writer.uint32(42).string(message.bondDenom); + } + if (message.minCommissionRate !== "") { + writer.uint32(50).string(math_1.Decimal.fromUserInput(message.minCommissionRate, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingTime = duration_1.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.maxValidators = reader.uint32(); + break; + case 3: + message.maxEntries = reader.uint32(); + break; + case 4: + message.historicalEntries = reader.uint32(); + break; + case 5: + message.bondDenom = reader.string(); + break; + case 6: + message.minCommissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? duration_1.Duration.fromPartial(object.unbondingTime) : undefined; + message.maxValidators = object.maxValidators ?? 0; + message.maxEntries = object.maxEntries ?? 0; + message.historicalEntries = object.historicalEntries ?? 0; + message.bondDenom = object.bondDenom ?? ""; + message.minCommissionRate = object.minCommissionRate ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = duration_1.Duration.fromAmino(object.unbonding_time); + } + if (object.max_validators !== undefined && object.max_validators !== null) { + message.maxValidators = object.max_validators; + } + if (object.max_entries !== undefined && object.max_entries !== null) { + message.maxEntries = object.max_entries; + } + if (object.historical_entries !== undefined && object.historical_entries !== null) { + message.historicalEntries = object.historical_entries; + } + if (object.bond_denom !== undefined && object.bond_denom !== null) { + message.bondDenom = object.bond_denom; + } + if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { + message.minCommissionRate = object.min_commission_rate; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.unbonding_time = message.unbondingTime ? duration_1.Duration.toAmino(message.unbondingTime) : undefined; + obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; + obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; + obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; + obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; + obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; +function createBaseDelegationResponse() { + return { + delegation: exports.Delegation.fromPartial({}), + balance: coin_1.Coin.fromPartial({}) + }; +} +exports.DelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegation !== undefined) { + exports.Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== undefined) { + coin_1.Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegation = exports.Delegation.decode(reader, reader.uint32()); + break; + case 2: + message.balance = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegationResponse(); + message.delegation = object.delegation !== undefined && object.delegation !== null ? exports.Delegation.fromPartial(object.delegation) : undefined; + message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelegationResponse(); + if (object.delegation !== undefined && object.delegation !== null) { + message.delegation = exports.Delegation.fromAmino(object.delegation); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = coin_1.Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegation = message.delegation ? exports.Delegation.toAmino(message.delegation) : undefined; + obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegationResponse", + value: exports.DelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelegationResponse.decode(message.value); + }, + toProto(message) { + return exports.DelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + value: exports.DelegationResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntryResponse() { + return { + redelegationEntry: exports.RedelegationEntry.fromPartial({}), + balance: "" + }; +} +exports.RedelegationEntryResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.redelegationEntry !== undefined) { + exports.RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntryResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationEntry = exports.RedelegationEntry.decode(reader, reader.uint32()); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationEntryResponse(); + message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? exports.RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationEntryResponse(); + if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { + message.redelegationEntry = exports.RedelegationEntry.fromAmino(object.redelegation_entry); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.redelegation_entry = message.redelegationEntry ? exports.RedelegationEntry.toAmino(message.redelegationEntry) : undefined; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return exports.RedelegationEntryResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationEntryResponse", + value: exports.RedelegationEntryResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.RedelegationEntryResponse.decode(message.value); + }, + toProto(message) { + return exports.RedelegationEntryResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + value: exports.RedelegationEntryResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationResponse() { + return { + redelegation: exports.Redelegation.fromPartial({}), + entries: [] + }; +} +exports.RedelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.redelegation !== undefined) { + exports.Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.entries) { + exports.RedelegationEntryResponse.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegation = exports.Redelegation.decode(reader, reader.uint32()); + break; + case 2: + message.entries.push(exports.RedelegationEntryResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationResponse(); + message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? exports.Redelegation.fromPartial(object.redelegation) : undefined; + message.entries = object.entries?.map(e => exports.RedelegationEntryResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationResponse(); + if (object.redelegation !== undefined && object.redelegation !== null) { + message.redelegation = exports.Redelegation.fromAmino(object.redelegation); + } + message.entries = object.entries?.map(e => exports.RedelegationEntryResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.redelegation = message.redelegation ? exports.Redelegation.toAmino(message.redelegation) : undefined; + if (message.entries) { + obj.entries = message.entries.map(e => e ? exports.RedelegationEntryResponse.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return exports.RedelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationResponse", + value: exports.RedelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.RedelegationResponse.decode(message.value); + }, + toProto(message) { + return exports.RedelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + value: exports.RedelegationResponse.encode(message).finish() + }; + } +}; +function createBasePool() { + return { + notBondedTokens: "", + bondedTokens: "" + }; +} +exports.Pool = { + typeUrl: "/cosmos.staking.v1beta1.Pool", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.notBondedTokens !== "") { + writer.uint32(10).string(message.notBondedTokens); + } + if (message.bondedTokens !== "") { + writer.uint32(18).string(message.bondedTokens); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.notBondedTokens = reader.string(); + break; + case 2: + message.bondedTokens = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePool(); + message.notBondedTokens = object.notBondedTokens ?? ""; + message.bondedTokens = object.bondedTokens ?? ""; + return message; + }, + fromAmino(object) { + const message = createBasePool(); + if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { + message.notBondedTokens = object.not_bonded_tokens; + } + if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { + message.bondedTokens = object.bonded_tokens; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.not_bonded_tokens = message.notBondedTokens ?? ""; + obj.bonded_tokens = message.bondedTokens ?? ""; + return obj; + }, + fromAminoMsg(object) { + return exports.Pool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Pool", + value: exports.Pool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Pool.decode(message.value); + }, + toProto(message) { + return exports.Pool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Pool", + value: exports.Pool.encode(message).finish() + }; + } +}; +const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +exports.Cosmos_cryptoPubKey_InterfaceDecoder = Cosmos_cryptoPubKey_InterfaceDecoder; +const Cosmos_cryptoPubKey_FromAmino = (content) => { + return (0, proto_signing_1.encodePubkey)(content); +}; +exports.Cosmos_cryptoPubKey_FromAmino = Cosmos_cryptoPubKey_FromAmino; +const Cosmos_cryptoPubKey_ToAmino = (content) => { + return (0, proto_signing_1.decodePubkey)(content); +}; +exports.Cosmos_cryptoPubKey_ToAmino = Cosmos_cryptoPubKey_ToAmino; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..91d9e145 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts @@ -0,0 +1,33 @@ +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export declare const AminoConverter: { + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: string; + toAmino: (message: MsgCreateValidator) => import("./tx").MsgCreateValidatorAmino; + fromAmino: (object: import("./tx").MsgCreateValidatorAmino) => MsgCreateValidator; + }; + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: string; + toAmino: (message: MsgEditValidator) => import("./tx").MsgEditValidatorAmino; + fromAmino: (object: import("./tx").MsgEditValidatorAmino) => MsgEditValidator; + }; + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: string; + toAmino: (message: MsgDelegate) => import("./tx").MsgDelegateAmino; + fromAmino: (object: import("./tx").MsgDelegateAmino) => MsgDelegate; + }; + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: string; + toAmino: (message: MsgBeginRedelegate) => import("./tx").MsgBeginRedelegateAmino; + fromAmino: (object: import("./tx").MsgBeginRedelegateAmino) => MsgBeginRedelegate; + }; + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: string; + toAmino: (message: MsgUndelegate) => import("./tx").MsgUndelegateAmino; + fromAmino: (object: import("./tx").MsgUndelegateAmino) => MsgUndelegate; + }; + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: string; + toAmino: (message: MsgCancelUnbondingDelegation) => import("./tx").MsgCancelUnbondingDelegationAmino; + fromAmino: (object: import("./tx").MsgCancelUnbondingDelegationAmino) => MsgCancelUnbondingDelegation; + }; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js new file mode 100644 index 00000000..2e6b057f --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: "cosmos-sdk/MsgCreateValidator", + toAmino: tx_1.MsgCreateValidator.toAmino, + fromAmino: tx_1.MsgCreateValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: "cosmos-sdk/MsgEditValidator", + toAmino: tx_1.MsgEditValidator.toAmino, + fromAmino: tx_1.MsgEditValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: "cosmos-sdk/MsgDelegate", + toAmino: tx_1.MsgDelegate.toAmino, + fromAmino: tx_1.MsgDelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: "cosmos-sdk/MsgBeginRedelegate", + toAmino: tx_1.MsgBeginRedelegate.toAmino, + fromAmino: tx_1.MsgBeginRedelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: "cosmos-sdk/MsgUndelegate", + toAmino: tx_1.MsgUndelegate.toAmino, + fromAmino: tx_1.MsgUndelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", + toAmino: tx_1.MsgCancelUnbondingDelegation.toAmino, + fromAmino: tx_1.MsgCancelUnbondingDelegation.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts new file mode 100644 index 00000000..1944e6a5 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts @@ -0,0 +1,519 @@ +import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Pubkey } from "@cosmjs/amino"; +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidator { + description: Description; + commission: CommissionRates; + minSelfDelegation: string; + delegatorAddress: string; + validatorAddress: string; + pubkey?: Any | undefined; + value: Coin; +} +export interface MsgCreateValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; + value: Uint8Array; +} +export type MsgCreateValidatorEncoded = Omit & { + pubkey?: AnyProtoMsg | undefined; +}; +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidatorAmino { + description?: DescriptionAmino; + commission?: CommissionRatesAmino; + min_self_delegation?: string; + delegator_address?: string; + validator_address?: string; + pubkey?: AnyAmino; + value?: CoinAmino; +} +export interface MsgCreateValidatorAminoMsg { + type: "cosmos-sdk/MsgCreateValidator"; + value: MsgCreateValidatorAmino; +} +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidatorSDKType { + description: DescriptionSDKType; + commission: CommissionRatesSDKType; + min_self_delegation: string; + delegator_address: string; + validator_address: string; + pubkey?: AnySDKType | undefined; + value: CoinSDKType; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponse { +} +export interface MsgCreateValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; + value: Uint8Array; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponseAmino { +} +export interface MsgCreateValidatorResponseAminoMsg { + type: "cosmos-sdk/MsgCreateValidatorResponse"; + value: MsgCreateValidatorResponseAmino; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponseSDKType { +} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidator { + description: Description; + validatorAddress: string; + /** + * We pass a reference to the new commission rate and min self delegation as + * it's not mandatory to update. If not updated, the deserialized rate will be + * zero with no way to distinguish if an update was intended. + * REF: #2373 + */ + commissionRate: string; + minSelfDelegation: string; +} +export interface MsgEditValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; + value: Uint8Array; +} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidatorAmino { + description?: DescriptionAmino; + validator_address?: string; + /** + * We pass a reference to the new commission rate and min self delegation as + * it's not mandatory to update. If not updated, the deserialized rate will be + * zero with no way to distinguish if an update was intended. + * REF: #2373 + */ + commission_rate?: string; + min_self_delegation?: string; +} +export interface MsgEditValidatorAminoMsg { + type: "cosmos-sdk/MsgEditValidator"; + value: MsgEditValidatorAmino; +} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidatorSDKType { + description: DescriptionSDKType; + validator_address: string; + commission_rate: string; + min_self_delegation: string; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponse { +} +export interface MsgEditValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; + value: Uint8Array; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponseAmino { +} +export interface MsgEditValidatorResponseAminoMsg { + type: "cosmos-sdk/MsgEditValidatorResponse"; + value: MsgEditValidatorResponseAmino; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponseSDKType { +} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegate { + delegatorAddress: string; + validatorAddress: string; + amount: Coin; +} +export interface MsgDelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; + value: Uint8Array; +} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegateAmino { + delegator_address?: string; + validator_address?: string; + amount?: CoinAmino; +} +export interface MsgDelegateAminoMsg { + type: "cosmos-sdk/MsgDelegate"; + value: MsgDelegateAmino; +} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegateSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponse { +} +export interface MsgDelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; + value: Uint8Array; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponseAmino { +} +export interface MsgDelegateResponseAminoMsg { + type: "cosmos-sdk/MsgDelegateResponse"; + value: MsgDelegateResponseAmino; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponseSDKType { +} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegate { + delegatorAddress: string; + validatorSrcAddress: string; + validatorDstAddress: string; + amount: Coin; +} +export interface MsgBeginRedelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; + value: Uint8Array; +} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegateAmino { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + amount?: CoinAmino; +} +export interface MsgBeginRedelegateAminoMsg { + type: "cosmos-sdk/MsgBeginRedelegate"; + value: MsgBeginRedelegateAmino; +} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegateSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; + amount: CoinSDKType; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponse { + completionTime: Date; +} +export interface MsgBeginRedelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; + value: Uint8Array; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponseAmino { + completion_time?: string; +} +export interface MsgBeginRedelegateResponseAminoMsg { + type: "cosmos-sdk/MsgBeginRedelegateResponse"; + value: MsgBeginRedelegateResponseAmino; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponseSDKType { + completion_time: Date; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegate { + delegatorAddress: string; + validatorAddress: string; + amount: Coin; +} +export interface MsgUndelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; + value: Uint8Array; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegateAmino { + delegator_address?: string; + validator_address?: string; + amount?: CoinAmino; +} +export interface MsgUndelegateAminoMsg { + type: "cosmos-sdk/MsgUndelegate"; + value: MsgUndelegateAmino; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegateSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponse { + completionTime: Date; +} +export interface MsgUndelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; + value: Uint8Array; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponseAmino { + completion_time?: string; +} +export interface MsgUndelegateResponseAminoMsg { + type: "cosmos-sdk/MsgUndelegateResponse"; + value: MsgUndelegateResponseAmino; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponseSDKType { + completion_time: Date; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegation { + delegatorAddress: string; + validatorAddress: string; + /** amount is always less than or equal to unbonding delegation entry balance */ + amount: Coin; + /** creation_height is the height which the unbonding took place. */ + creationHeight: bigint; +} +export interface MsgCancelUnbondingDelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; + value: Uint8Array; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationAmino { + delegator_address?: string; + validator_address?: string; + /** amount is always less than or equal to unbonding delegation entry balance */ + amount?: CoinAmino; + /** creation_height is the height which the unbonding took place. */ + creation_height?: string; +} +export interface MsgCancelUnbondingDelegationAminoMsg { + type: "cosmos-sdk/MsgCancelUnbondingDelegation"; + value: MsgCancelUnbondingDelegationAmino; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; + creation_height: bigint; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponse { +} +export interface MsgCancelUnbondingDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; + value: Uint8Array; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponseAmino { +} +export interface MsgCancelUnbondingDelegationResponseAminoMsg { + type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse"; + value: MsgCancelUnbondingDelegationResponseAmino; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponseSDKType { +} +export declare const MsgCreateValidator: { + typeUrl: string; + encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; + fromPartial(object: Partial): MsgCreateValidator; + fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator; + toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino; + fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator; + toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg; + fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator; + toProto(message: MsgCreateValidator): Uint8Array; + toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg; +}; +export declare const MsgCreateValidatorResponse: { + typeUrl: string; + encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; + fromPartial(_: Partial): MsgCreateValidatorResponse; + fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse; + toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino; + fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse; + toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg; + fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse; + toProto(message: MsgCreateValidatorResponse): Uint8Array; + toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg; +}; +export declare const MsgEditValidator: { + typeUrl: string; + encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; + fromPartial(object: Partial): MsgEditValidator; + fromAmino(object: MsgEditValidatorAmino): MsgEditValidator; + toAmino(message: MsgEditValidator): MsgEditValidatorAmino; + fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator; + toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg; + fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator; + toProto(message: MsgEditValidator): Uint8Array; + toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg; +}; +export declare const MsgEditValidatorResponse: { + typeUrl: string; + encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; + fromPartial(_: Partial): MsgEditValidatorResponse; + fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse; + toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino; + fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse; + toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg; + fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse; + toProto(message: MsgEditValidatorResponse): Uint8Array; + toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg; +}; +export declare const MsgDelegate: { + typeUrl: string; + encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; + fromPartial(object: Partial): MsgDelegate; + fromAmino(object: MsgDelegateAmino): MsgDelegate; + toAmino(message: MsgDelegate): MsgDelegateAmino; + fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate; + toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg; + fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate; + toProto(message: MsgDelegate): Uint8Array; + toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg; +}; +export declare const MsgDelegateResponse: { + typeUrl: string; + encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; + fromPartial(_: Partial): MsgDelegateResponse; + fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse; + toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino; + fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse; + toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg; + fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse; + toProto(message: MsgDelegateResponse): Uint8Array; + toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg; +}; +export declare const MsgBeginRedelegate: { + typeUrl: string; + encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; + fromPartial(object: Partial): MsgBeginRedelegate; + fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate; + toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino; + fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate; + toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg; + fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate; + toProto(message: MsgBeginRedelegate): Uint8Array; + toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg; +}; +export declare const MsgBeginRedelegateResponse: { + typeUrl: string; + encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; + fromPartial(object: Partial): MsgBeginRedelegateResponse; + fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse; + toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino; + fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse; + toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg; + fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse; + toProto(message: MsgBeginRedelegateResponse): Uint8Array; + toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg; +}; +export declare const MsgUndelegate: { + typeUrl: string; + encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; + fromPartial(object: Partial): MsgUndelegate; + fromAmino(object: MsgUndelegateAmino): MsgUndelegate; + toAmino(message: MsgUndelegate): MsgUndelegateAmino; + fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate; + toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg; + fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate; + toProto(message: MsgUndelegate): Uint8Array; + toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg; +}; +export declare const MsgUndelegateResponse: { + typeUrl: string; + encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; + fromPartial(object: Partial): MsgUndelegateResponse; + fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse; + toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino; + fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse; + toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg; + fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse; + toProto(message: MsgUndelegateResponse): Uint8Array; + toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg; +}; +export declare const MsgCancelUnbondingDelegation: { + typeUrl: string; + encode(message: MsgCancelUnbondingDelegation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; + fromPartial(object: Partial): MsgCancelUnbondingDelegation; + fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation; + toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino; + fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation; + toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg; + fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation; + toProto(message: MsgCancelUnbondingDelegation): Uint8Array; + toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg; +}; +export declare const MsgCancelUnbondingDelegationResponse: { + typeUrl: string; + encode(_: MsgCancelUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; + fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse; + fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse; + toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino; + fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse; + toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg; + fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse; + toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array; + toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg; +}; +export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; +export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; +export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.js b/packages/api/dist/cosmos/staking/v1beta1/tx.js new file mode 100644 index 00000000..71daeceb --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.js @@ -0,0 +1,1033 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Cosmos_cryptoPubKey_ToAmino = exports.Cosmos_cryptoPubKey_FromAmino = exports.Cosmos_cryptoPubKey_InterfaceDecoder = exports.MsgCancelUnbondingDelegationResponse = exports.MsgCancelUnbondingDelegation = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = void 0; +//@ts-nocheck +const staking_1 = require("./staking"); +const any_1 = require("../../../google/protobuf/any"); +const coin_1 = require("../../base/v1beta1/coin"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const binary_1 = require("../../../binary"); +const proto_signing_1 = require("@cosmjs/proto-signing"); +const math_1 = require("@cosmjs/math"); +const helpers_1 = require("../../../helpers"); +function createBaseMsgCreateValidator() { + return { + description: staking_1.Description.fromPartial({}), + commission: staking_1.CommissionRates.fromPartial({}), + minSelfDelegation: "", + delegatorAddress: "", + validatorAddress: "", + pubkey: undefined, + value: coin_1.Coin.fromPartial({}) + }; +} +exports.MsgCreateValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.description !== undefined) { + staking_1.Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.commission !== undefined) { + staking_1.CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(26).string(message.minSelfDelegation); + } + if (message.delegatorAddress !== "") { + writer.uint32(34).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(42).string(message.validatorAddress); + } + if (message.pubkey !== undefined) { + any_1.Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim(); + } + if (message.value !== undefined) { + coin_1.Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = staking_1.Description.decode(reader, reader.uint32()); + break; + case 2: + message.commission = staking_1.CommissionRates.decode(reader, reader.uint32()); + break; + case 3: + message.minSelfDelegation = reader.string(); + break; + case 4: + message.delegatorAddress = reader.string(); + break; + case 5: + message.validatorAddress = reader.string(); + break; + case 6: + message.pubkey = (0, exports.Cosmos_cryptoPubKey_InterfaceDecoder)(reader); + break; + case 7: + message.value = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateValidator(); + message.description = object.description !== undefined && object.description !== null ? staking_1.Description.fromPartial(object.description) : undefined; + message.commission = object.commission !== undefined && object.commission !== null ? staking_1.CommissionRates.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? any_1.Any.fromPartial(object.pubkey) : undefined; + message.value = object.value !== undefined && object.value !== null ? coin_1.Coin.fromPartial(object.value) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = staking_1.Description.fromAmino(object.description); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = staking_1.CommissionRates.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.pubkey !== undefined && object.pubkey !== null) { + message.pubkey = (0, proto_signing_1.encodePubkey)(object.pubkey); + } + if (object.value !== undefined && object.value !== null) { + message.value = coin_1.Coin.fromAmino(object.value); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description ? staking_1.Description.toAmino(message.description) : undefined; + obj.commission = message.commission ? staking_1.CommissionRates.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.pubkey = message.pubkey ? (0, proto_signing_1.decodePubkey)(message.pubkey) : undefined; + obj.value = message.value ? coin_1.Coin.toAmino(message.value) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateValidator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateValidator", + value: exports.MsgCreateValidator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateValidator.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: exports.MsgCreateValidator.encode(message).finish() + }; + } +}; +function createBaseMsgCreateValidatorResponse() { + return {}; +} +exports.MsgCreateValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateValidatorResponse", + value: exports.MsgCreateValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateValidatorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + value: exports.MsgCreateValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidator() { + return { + description: staking_1.Description.fromPartial({}), + validatorAddress: "", + commissionRate: "", + minSelfDelegation: "" + }; +} +exports.MsgEditValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.description !== undefined) { + staking_1.Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.commissionRate !== "") { + writer.uint32(26).string(math_1.Decimal.fromUserInput(message.commissionRate, 18).atomics); + } + if (message.minSelfDelegation !== "") { + writer.uint32(34).string(message.minSelfDelegation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = staking_1.Description.decode(reader, reader.uint32()); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.commissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgEditValidator(); + message.description = object.description !== undefined && object.description !== null ? staking_1.Description.fromPartial(object.description) : undefined; + message.validatorAddress = object.validatorAddress ?? ""; + message.commissionRate = object.commissionRate ?? ""; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgEditValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = staking_1.Description.fromAmino(object.description); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.commission_rate !== undefined && object.commission_rate !== null) { + message.commissionRate = object.commission_rate; + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description ? staking_1.Description.toAmino(message.description) : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgEditValidator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgEditValidator", + value: exports.MsgEditValidator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgEditValidator.decode(message.value); + }, + toProto(message) { + return exports.MsgEditValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: exports.MsgEditValidator.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidatorResponse() { + return {}; +} +exports.MsgEditValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgEditValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgEditValidatorResponse", + value: exports.MsgEditValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgEditValidatorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgEditValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + value: exports.MsgEditValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDelegate() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: coin_1.Coin.fromPartial({}) + }; +} +exports.MsgDelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = coin_1.Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDelegate", + value: exports.MsgDelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDelegate.decode(message.value); + }, + toProto(message) { + return exports.MsgDelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: exports.MsgDelegate.encode(message).finish() + }; + } +}; +function createBaseMsgDelegateResponse() { + return {}; +} +exports.MsgDelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDelegateResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDelegateResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDelegateResponse", + value: exports.MsgDelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDelegateResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgDelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + value: exports.MsgDelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegate() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + amount: coin_1.Coin.fromPartial({}) + }; +} +exports.MsgBeginRedelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + if (message.amount !== undefined) { + coin_1.Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.amount = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBeginRedelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBeginRedelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = coin_1.Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBeginRedelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgBeginRedelegate", + value: exports.MsgBeginRedelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgBeginRedelegate.decode(message.value); + }, + toProto(message) { + return exports.MsgBeginRedelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: exports.MsgBeginRedelegate.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegateResponse() { + return { + completionTime: new Date() + }; +} +exports.MsgBeginRedelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.completionTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBeginRedelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBeginRedelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBeginRedelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgBeginRedelegateResponse", + value: exports.MsgBeginRedelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgBeginRedelegateResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgBeginRedelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + value: exports.MsgBeginRedelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegate() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: coin_1.Coin.fromPartial({}) + }; +} +exports.MsgUndelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUndelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUndelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = coin_1.Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUndelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUndelegate", + value: exports.MsgUndelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUndelegate.decode(message.value); + }, + toProto(message) { + return exports.MsgUndelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: exports.MsgUndelegate.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegateResponse() { + return { + completionTime: new Date() + }; +} +exports.MsgUndelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.completionTime !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUndelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUndelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUndelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUndelegateResponse", + value: exports.MsgUndelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUndelegateResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUndelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + value: exports.MsgUndelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: coin_1.Coin.fromPartial({}), + creationHeight: BigInt(0) + }; +} +exports.MsgCancelUnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + if (message.creationHeight !== BigInt(0)) { + writer.uint32(32).int64(message.creationHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.creationHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = coin_1.Coin.fromAmino(object.amount); + } + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelUnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegation", + value: exports.MsgCancelUnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancelUnbondingDelegation.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelUnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: exports.MsgCancelUnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegationResponse() { + return {}; +} +exports.MsgCancelUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", + value: exports.MsgCancelUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancelUnbondingDelegationResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + value: exports.MsgCancelUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + const data = any_1.Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +exports.Cosmos_cryptoPubKey_InterfaceDecoder = Cosmos_cryptoPubKey_InterfaceDecoder; +const Cosmos_cryptoPubKey_FromAmino = (content) => { + return (0, proto_signing_1.encodePubkey)(content); +}; +exports.Cosmos_cryptoPubKey_FromAmino = Cosmos_cryptoPubKey_FromAmino; +const Cosmos_cryptoPubKey_ToAmino = (content) => { + return (0, proto_signing_1.decodePubkey)(content); +}; +exports.Cosmos_cryptoPubKey_ToAmino = Cosmos_cryptoPubKey_ToAmino; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..befd0649 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts @@ -0,0 +1,84 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createValidator(value: MsgCreateValidator): { + typeUrl: string; + value: Uint8Array; + }; + editValidator(value: MsgEditValidator): { + typeUrl: string; + value: Uint8Array; + }; + delegate(value: MsgDelegate): { + typeUrl: string; + value: Uint8Array; + }; + beginRedelegate(value: MsgBeginRedelegate): { + typeUrl: string; + value: Uint8Array; + }; + undelegate(value: MsgUndelegate): { + typeUrl: string; + value: Uint8Array; + }; + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createValidator(value: MsgCreateValidator): { + typeUrl: string; + value: MsgCreateValidator; + }; + editValidator(value: MsgEditValidator): { + typeUrl: string; + value: MsgEditValidator; + }; + delegate(value: MsgDelegate): { + typeUrl: string; + value: MsgDelegate; + }; + beginRedelegate(value: MsgBeginRedelegate): { + typeUrl: string; + value: MsgBeginRedelegate; + }; + undelegate(value: MsgUndelegate): { + typeUrl: string; + value: MsgUndelegate; + }; + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { + typeUrl: string; + value: MsgCancelUnbondingDelegation; + }; + }; + fromPartial: { + createValidator(value: MsgCreateValidator): { + typeUrl: string; + value: MsgCreateValidator; + }; + editValidator(value: MsgEditValidator): { + typeUrl: string; + value: MsgEditValidator; + }; + delegate(value: MsgDelegate): { + typeUrl: string; + value: MsgDelegate; + }; + beginRedelegate(value: MsgBeginRedelegate): { + typeUrl: string; + value: MsgBeginRedelegate; + }; + undelegate(value: MsgUndelegate): { + typeUrl: string; + value: MsgUndelegate; + }; + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { + typeUrl: string; + value: MsgCancelUnbondingDelegation; + }; + }; +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js new file mode 100644 index 00000000..bc997fa2 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js @@ -0,0 +1,127 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", tx_1.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", tx_1.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", tx_1.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", tx_1.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", tx_1.MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", tx_1.MsgCancelUnbondingDelegation]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: tx_1.MsgCreateValidator.encode(value).finish() + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: tx_1.MsgEditValidator.encode(value).finish() + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: tx_1.MsgDelegate.encode(value).finish() + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: tx_1.MsgBeginRedelegate.encode(value).finish() + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: tx_1.MsgUndelegate.encode(value).finish() + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: tx_1.MsgCancelUnbondingDelegation.encode(value).finish() + }; + } + }, + withTypeUrl: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value + }; + } + }, + fromPartial: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: tx_1.MsgCreateValidator.fromPartial(value) + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: tx_1.MsgEditValidator.fromPartial(value) + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: tx_1.MsgDelegate.fromPartial(value) + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: tx_1.MsgBeginRedelegate.fromPartial(value) + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: tx_1.MsgUndelegate.fromPartial(value) + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: tx_1.MsgCancelUnbondingDelegation.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..c57e500e --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,41 @@ +import { Rpc } from "../../../helpers"; +import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; +/** Msg defines the staking Msg service. */ +export interface Msg { + /** CreateValidator defines a method for creating a new validator. */ + createValidator(request: MsgCreateValidator): Promise; + /** EditValidator defines a method for editing an existing validator. */ + editValidator(request: MsgEditValidator): Promise; + /** + * Delegate defines a method for performing a delegation of coins + * from a delegator to a validator. + */ + delegate(request: MsgDelegate): Promise; + /** + * BeginRedelegate defines a method for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ + beginRedelegate(request: MsgBeginRedelegate): Promise; + /** + * Undelegate defines a method for performing an undelegation from a + * delegate and a validator. + */ + undelegate(request: MsgUndelegate): Promise; + /** + * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation + * and delegate back to previous validator. + * + * Since: cosmos-sdk 0.46 + */ + cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createValidator(request: MsgCreateValidator): Promise; + editValidator(request: MsgEditValidator): Promise; + delegate(request: MsgDelegate): Promise; + beginRedelegate(request: MsgBeginRedelegate): Promise; + undelegate(request: MsgUndelegate): Promise; + cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; +} diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..b8f00e26 --- /dev/null +++ b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createValidator = this.createValidator.bind(this); + this.editValidator = this.editValidator.bind(this); + this.delegate = this.delegate.bind(this); + this.beginRedelegate = this.beginRedelegate.bind(this); + this.undelegate = this.undelegate.bind(this); + this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); + } + createValidator(request) { + const data = tx_1.MsgCreateValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); + return promise.then(data => tx_1.MsgCreateValidatorResponse.decode(new binary_1.BinaryReader(data))); + } + editValidator(request) { + const data = tx_1.MsgEditValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); + return promise.then(data => tx_1.MsgEditValidatorResponse.decode(new binary_1.BinaryReader(data))); + } + delegate(request) { + const data = tx_1.MsgDelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); + return promise.then(data => tx_1.MsgDelegateResponse.decode(new binary_1.BinaryReader(data))); + } + beginRedelegate(request) { + const data = tx_1.MsgBeginRedelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); + return promise.then(data => tx_1.MsgBeginRedelegateResponse.decode(new binary_1.BinaryReader(data))); + } + undelegate(request) { + const data = tx_1.MsgUndelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); + return promise.then(data => tx_1.MsgUndelegateResponse.decode(new binary_1.BinaryReader(data))); + } + cancelUnbondingDelegation(request) { + const data = tx_1.MsgCancelUnbondingDelegation.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); + return promise.then(data => tx_1.MsgCancelUnbondingDelegationResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts new file mode 100644 index 00000000..4f7ade3d --- /dev/null +++ b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts @@ -0,0 +1,284 @@ +import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * SignMode represents a signing mode with its own security guarantees. + * + * This enum should be considered a registry of all known sign modes + * in the Cosmos ecosystem. Apps are not expected to support all known + * sign modes. Apps that would like to support custom sign modes are + * encouraged to open a small PR against this file to add a new case + * to this SignMode enum describing their sign mode so that different + * apps have a consistent version of this enum. + */ +export declare enum SignMode { + /** + * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected. + */ + SIGN_MODE_UNSPECIFIED = 0, + /** + * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx. + */ + SIGN_MODE_DIRECT = 1, + /** + * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT. It is currently not supported. + */ + SIGN_MODE_TEXTUAL = 2, + /** + * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + * require signers signing over other signers' `signer_info`. It also allows + * for adding Tips in transactions. + * + * Since: cosmos-sdk 0.46 + */ + SIGN_MODE_DIRECT_AUX = 3, + /** + * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future. + */ + SIGN_MODE_LEGACY_AMINO_JSON = 127, + /** + * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + * + * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + * but is not implemented on the SDK by default. To enable EIP-191, you need + * to pass a custom `TxConfig` that has an implementation of + * `SignModeHandler` for EIP-191. The SDK may decide to fully support + * EIP-191 in the future. + * + * Since: cosmos-sdk 0.45.2 + */ + SIGN_MODE_EIP_191 = 191, + UNRECOGNIZED = -1 +} +export declare const SignModeSDKType: typeof SignMode; +export declare const SignModeAmino: typeof SignMode; +export declare function signModeFromJSON(object: any): SignMode; +export declare function signModeToJSON(object: SignMode): string; +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptors { + /** signatures are the signature descriptors */ + signatures: SignatureDescriptor[]; +} +export interface SignatureDescriptorsProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; + value: Uint8Array; +} +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptorsAmino { + /** signatures are the signature descriptors */ + signatures?: SignatureDescriptorAmino[]; +} +export interface SignatureDescriptorsAminoMsg { + type: "cosmos-sdk/SignatureDescriptors"; + value: SignatureDescriptorsAmino; +} +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptorsSDKType { + signatures: SignatureDescriptorSDKType[]; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptor { + /** public_key is the public key of the signer */ + publicKey?: Any; + data?: SignatureDescriptor_Data; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to prevent + * replay attacks. + */ + sequence: bigint; +} +export interface SignatureDescriptorProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; + value: Uint8Array; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptorAmino { + /** public_key is the public key of the signer */ + public_key?: AnyAmino; + data?: SignatureDescriptor_DataAmino; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to prevent + * replay attacks. + */ + sequence?: string; +} +export interface SignatureDescriptorAminoMsg { + type: "cosmos-sdk/SignatureDescriptor"; + value: SignatureDescriptorAmino; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptorSDKType { + public_key?: AnySDKType; + data?: SignatureDescriptor_DataSDKType; + sequence: bigint; +} +/** Data represents signature data */ +export interface SignatureDescriptor_Data { + /** single represents a single signer */ + single?: SignatureDescriptor_Data_Single; + /** multi represents a multisig signer */ + multi?: SignatureDescriptor_Data_Multi; +} +export interface SignatureDescriptor_DataProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Data"; + value: Uint8Array; +} +/** Data represents signature data */ +export interface SignatureDescriptor_DataAmino { + /** single represents a single signer */ + single?: SignatureDescriptor_Data_SingleAmino; + /** multi represents a multisig signer */ + multi?: SignatureDescriptor_Data_MultiAmino; +} +export interface SignatureDescriptor_DataAminoMsg { + type: "cosmos-sdk/Data"; + value: SignatureDescriptor_DataAmino; +} +/** Data represents signature data */ +export interface SignatureDescriptor_DataSDKType { + single?: SignatureDescriptor_Data_SingleSDKType; + multi?: SignatureDescriptor_Data_MultiSDKType; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_Single { + /** mode is the signing mode of the single signer */ + mode: SignMode; + /** signature is the raw signature bytes */ + signature: Uint8Array; +} +export interface SignatureDescriptor_Data_SingleProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Single"; + value: Uint8Array; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_SingleAmino { + /** mode is the signing mode of the single signer */ + mode?: SignMode; + /** signature is the raw signature bytes */ + signature?: string; +} +export interface SignatureDescriptor_Data_SingleAminoMsg { + type: "cosmos-sdk/Single"; + value: SignatureDescriptor_Data_SingleAmino; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_SingleSDKType { + mode: SignMode; + signature: Uint8Array; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_Multi { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArray; + /** signatures is the signatures of the multi-signature */ + signatures: SignatureDescriptor_Data[]; +} +export interface SignatureDescriptor_Data_MultiProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; + value: Uint8Array; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_MultiAmino { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArrayAmino; + /** signatures is the signatures of the multi-signature */ + signatures?: SignatureDescriptor_DataAmino[]; +} +export interface SignatureDescriptor_Data_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: SignatureDescriptor_Data_MultiAmino; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_MultiSDKType { + bitarray?: CompactBitArraySDKType; + signatures: SignatureDescriptor_DataSDKType[]; +} +export declare const SignatureDescriptors: { + typeUrl: string; + encode(message: SignatureDescriptors, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors; + fromPartial(object: Partial): SignatureDescriptors; + fromAmino(object: SignatureDescriptorsAmino): SignatureDescriptors; + toAmino(message: SignatureDescriptors): SignatureDescriptorsAmino; + fromAminoMsg(object: SignatureDescriptorsAminoMsg): SignatureDescriptors; + toAminoMsg(message: SignatureDescriptors): SignatureDescriptorsAminoMsg; + fromProtoMsg(message: SignatureDescriptorsProtoMsg): SignatureDescriptors; + toProto(message: SignatureDescriptors): Uint8Array; + toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg; +}; +export declare const SignatureDescriptor: { + typeUrl: string; + encode(message: SignatureDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor; + fromPartial(object: Partial): SignatureDescriptor; + fromAmino(object: SignatureDescriptorAmino): SignatureDescriptor; + toAmino(message: SignatureDescriptor): SignatureDescriptorAmino; + fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor; + toAminoMsg(message: SignatureDescriptor): SignatureDescriptorAminoMsg; + fromProtoMsg(message: SignatureDescriptorProtoMsg): SignatureDescriptor; + toProto(message: SignatureDescriptor): Uint8Array; + toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg; +}; +export declare const SignatureDescriptor_Data: { + typeUrl: string; + encode(message: SignatureDescriptor_Data, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data; + fromPartial(object: Partial): SignatureDescriptor_Data; + fromAmino(object: SignatureDescriptor_DataAmino): SignatureDescriptor_Data; + toAmino(message: SignatureDescriptor_Data): SignatureDescriptor_DataAmino; + fromAminoMsg(object: SignatureDescriptor_DataAminoMsg): SignatureDescriptor_Data; + toAminoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataAminoMsg; + fromProtoMsg(message: SignatureDescriptor_DataProtoMsg): SignatureDescriptor_Data; + toProto(message: SignatureDescriptor_Data): Uint8Array; + toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg; +}; +export declare const SignatureDescriptor_Data_Single: { + typeUrl: string; + encode(message: SignatureDescriptor_Data_Single, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single; + fromPartial(object: Partial): SignatureDescriptor_Data_Single; + fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single; + toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino; + fromAminoMsg(object: SignatureDescriptor_Data_SingleAminoMsg): SignatureDescriptor_Data_Single; + toAminoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAminoMsg; + fromProtoMsg(message: SignatureDescriptor_Data_SingleProtoMsg): SignatureDescriptor_Data_Single; + toProto(message: SignatureDescriptor_Data_Single): Uint8Array; + toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg; +}; +export declare const SignatureDescriptor_Data_Multi: { + typeUrl: string; + encode(message: SignatureDescriptor_Data_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi; + fromPartial(object: Partial): SignatureDescriptor_Data_Multi; + fromAmino(object: SignatureDescriptor_Data_MultiAmino): SignatureDescriptor_Data_Multi; + toAmino(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAmino; + fromAminoMsg(object: SignatureDescriptor_Data_MultiAminoMsg): SignatureDescriptor_Data_Multi; + toAminoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAminoMsg; + fromProtoMsg(message: SignatureDescriptor_Data_MultiProtoMsg): SignatureDescriptor_Data_Multi; + toProto(message: SignatureDescriptor_Data_Multi): Uint8Array; + toProtoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiProtoMsg; +}; diff --git a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js new file mode 100644 index 00000000..cb041a9c --- /dev/null +++ b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js @@ -0,0 +1,525 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SignatureDescriptor_Data_Multi = exports.SignatureDescriptor_Data_Single = exports.SignatureDescriptor_Data = exports.SignatureDescriptor = exports.SignatureDescriptors = exports.signModeToJSON = exports.signModeFromJSON = exports.SignModeAmino = exports.SignModeSDKType = exports.SignMode = void 0; +//@ts-nocheck +const multisig_1 = require("../../../crypto/multisig/v1beta1/multisig"); +const any_1 = require("../../../../google/protobuf/any"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +/** + * SignMode represents a signing mode with its own security guarantees. + * + * This enum should be considered a registry of all known sign modes + * in the Cosmos ecosystem. Apps are not expected to support all known + * sign modes. Apps that would like to support custom sign modes are + * encouraged to open a small PR against this file to add a new case + * to this SignMode enum describing their sign mode so that different + * apps have a consistent version of this enum. + */ +var SignMode; +(function (SignMode) { + /** + * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected. + */ + SignMode[SignMode["SIGN_MODE_UNSPECIFIED"] = 0] = "SIGN_MODE_UNSPECIFIED"; + /** + * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx. + */ + SignMode[SignMode["SIGN_MODE_DIRECT"] = 1] = "SIGN_MODE_DIRECT"; + /** + * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT. It is currently not supported. + */ + SignMode[SignMode["SIGN_MODE_TEXTUAL"] = 2] = "SIGN_MODE_TEXTUAL"; + /** + * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + * require signers signing over other signers' `signer_info`. It also allows + * for adding Tips in transactions. + * + * Since: cosmos-sdk 0.46 + */ + SignMode[SignMode["SIGN_MODE_DIRECT_AUX"] = 3] = "SIGN_MODE_DIRECT_AUX"; + /** + * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future. + */ + SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON"; + /** + * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + * + * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + * but is not implemented on the SDK by default. To enable EIP-191, you need + * to pass a custom `TxConfig` that has an implementation of + * `SignModeHandler` for EIP-191. The SDK may decide to fully support + * EIP-191 in the future. + * + * Since: cosmos-sdk 0.45.2 + */ + SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191"; + SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(SignMode || (exports.SignMode = SignMode = {})); +exports.SignModeSDKType = SignMode; +exports.SignModeAmino = SignMode; +function signModeFromJSON(object) { + switch (object) { + case 0: + case "SIGN_MODE_UNSPECIFIED": + return SignMode.SIGN_MODE_UNSPECIFIED; + case 1: + case "SIGN_MODE_DIRECT": + return SignMode.SIGN_MODE_DIRECT; + case 2: + case "SIGN_MODE_TEXTUAL": + return SignMode.SIGN_MODE_TEXTUAL; + case 3: + case "SIGN_MODE_DIRECT_AUX": + return SignMode.SIGN_MODE_DIRECT_AUX; + case 127: + case "SIGN_MODE_LEGACY_AMINO_JSON": + return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; + case 191: + case "SIGN_MODE_EIP_191": + return SignMode.SIGN_MODE_EIP_191; + case -1: + case "UNRECOGNIZED": + default: + return SignMode.UNRECOGNIZED; + } +} +exports.signModeFromJSON = signModeFromJSON; +function signModeToJSON(object) { + switch (object) { + case SignMode.SIGN_MODE_UNSPECIFIED: + return "SIGN_MODE_UNSPECIFIED"; + case SignMode.SIGN_MODE_DIRECT: + return "SIGN_MODE_DIRECT"; + case SignMode.SIGN_MODE_TEXTUAL: + return "SIGN_MODE_TEXTUAL"; + case SignMode.SIGN_MODE_DIRECT_AUX: + return "SIGN_MODE_DIRECT_AUX"; + case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: + return "SIGN_MODE_LEGACY_AMINO_JSON"; + case SignMode.SIGN_MODE_EIP_191: + return "SIGN_MODE_EIP_191"; + case SignMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.signModeToJSON = signModeToJSON; +function createBaseSignatureDescriptors() { + return { + signatures: [] + }; +} +exports.SignatureDescriptors = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.signatures) { + exports.SignatureDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptors(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(exports.SignatureDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => exports.SignatureDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => exports.SignatureDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? exports.SignatureDescriptor.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SignatureDescriptors.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignatureDescriptors", + value: exports.SignatureDescriptors.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignatureDescriptors.decode(message.value); + }, + toProto(message) { + return exports.SignatureDescriptors.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + value: exports.SignatureDescriptors.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor() { + return { + publicKey: undefined, + data: undefined, + sequence: BigInt(0) + }; +} +exports.SignatureDescriptor = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.publicKey !== undefined) { + any_1.Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + exports.SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = any_1.Any.decode(reader, reader.uint32()); + break; + case 2: + message.data = exports.SignatureDescriptor_Data.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; + message.data = object.data !== undefined && object.data !== null ? exports.SignatureDescriptor_Data.fromPartial(object.data) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = any_1.Any.fromAmino(object.public_key); + } + if (object.data !== undefined && object.data !== null) { + message.data = exports.SignatureDescriptor_Data.fromAmino(object.data); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; + obj.data = message.data ? exports.SignatureDescriptor_Data.toAmino(message.data) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignatureDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignatureDescriptor", + value: exports.SignatureDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignatureDescriptor.decode(message.value); + }, + toProto(message) { + return exports.SignatureDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + value: exports.SignatureDescriptor.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data() { + return { + single: undefined, + multi: undefined + }; +} +exports.SignatureDescriptor_Data = { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.single !== undefined) { + exports.SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + exports.SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = exports.SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = exports.SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data(); + message.single = object.single !== undefined && object.single !== null ? exports.SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? exports.SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data(); + if (object.single !== undefined && object.single !== null) { + message.single = exports.SignatureDescriptor_Data_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = exports.SignatureDescriptor_Data_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.single = message.single ? exports.SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? exports.SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignatureDescriptor_Data.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Data", + value: exports.SignatureDescriptor_Data.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignatureDescriptor_Data.decode(message.value); + }, + toProto(message) { + return exports.SignatureDescriptor_Data.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + value: exports.SignatureDescriptor_Data.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Single() { + return { + mode: 0, + signature: new Uint8Array() + }; +} +exports.SignatureDescriptor_Data_Single = { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + if (message.signature.length !== 0) { + writer.uint32(18).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + case 2: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data_Single(); + message.mode = object.mode ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = (0, helpers_1.bytesFromBase64)(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignatureDescriptor_Data_Single.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Single", + value: exports.SignatureDescriptor_Data_Single.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignatureDescriptor_Data_Single.decode(message.value); + }, + toProto(message) { + return exports.SignatureDescriptor_Data_Single.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + value: exports.SignatureDescriptor_Data_Single.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Multi() { + return { + bitarray: undefined, + signatures: [] + }; +} +exports.SignatureDescriptor_Data_Multi = { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bitarray !== undefined) { + multisig_1.CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.signatures) { + exports.SignatureDescriptor_Data.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = multisig_1.CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.signatures.push(exports.SignatureDescriptor_Data.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? multisig_1.CompactBitArray.fromPartial(object.bitarray) : undefined; + message.signatures = object.signatures?.map(e => exports.SignatureDescriptor_Data.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = multisig_1.CompactBitArray.fromAmino(object.bitarray); + } + message.signatures = object.signatures?.map(e => exports.SignatureDescriptor_Data.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bitarray = message.bitarray ? multisig_1.CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? exports.SignatureDescriptor_Data.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SignatureDescriptor_Data_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: exports.SignatureDescriptor_Data_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignatureDescriptor_Data_Multi.decode(message.value); + }, + toProto(message) { + return exports.SignatureDescriptor_Data_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + value: exports.SignatureDescriptor_Data_Multi.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.d.ts new file mode 100644 index 00000000..eea3abe1 --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.d.ts @@ -0,0 +1,593 @@ +import { Tx, TxAmino, TxSDKType } from "./tx"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; +import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; +import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** OrderBy defines the sorting order */ +export declare enum OrderBy { + /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ + ORDER_BY_UNSPECIFIED = 0, + /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ + ORDER_BY_ASC = 1, + /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ + ORDER_BY_DESC = 2, + UNRECOGNIZED = -1 +} +export declare const OrderBySDKType: typeof OrderBy; +export declare const OrderByAmino: typeof OrderBy; +export declare function orderByFromJSON(object: any): OrderBy; +export declare function orderByToJSON(object: OrderBy): string; +/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ +export declare enum BroadcastMode { + /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ + BROADCAST_MODE_UNSPECIFIED = 0, + /** + * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + */ + BROADCAST_MODE_BLOCK = 1, + /** + * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + */ + BROADCAST_MODE_SYNC = 2, + /** + * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + */ + BROADCAST_MODE_ASYNC = 3, + UNRECOGNIZED = -1 +} +export declare const BroadcastModeSDKType: typeof BroadcastMode; +export declare const BroadcastModeAmino: typeof BroadcastMode; +export declare function broadcastModeFromJSON(object: any): BroadcastMode; +export declare function broadcastModeToJSON(object: BroadcastMode): string; +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequest { + /** events is the list of transaction event type. */ + events: string[]; + /** + * pagination defines a pagination for the request. + * Deprecated post v0.46.x: use page and limit instead. + */ + /** @deprecated */ + pagination?: PageRequest; + orderBy: OrderBy; + /** page is the page number to query, starts at 1. If not provided, will default to first page. */ + page: bigint; + /** + * 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. + */ + limit: bigint; +} +export interface GetTxsEventRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; + value: Uint8Array; +} +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequestAmino { + /** events is the list of transaction event type. */ + events?: string[]; + /** + * pagination defines a pagination for the request. + * Deprecated post v0.46.x: use page and limit instead. + */ + /** @deprecated */ + pagination?: PageRequestAmino; + order_by?: OrderBy; + /** page is the page number to query, starts at 1. If not provided, will default to first page. */ + page?: string; + /** + * 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. + */ + limit?: string; +} +export interface GetTxsEventRequestAminoMsg { + type: "cosmos-sdk/GetTxsEventRequest"; + value: GetTxsEventRequestAmino; +} +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequestSDKType { + events: string[]; + /** @deprecated */ + pagination?: PageRequestSDKType; + order_by: OrderBy; + page: bigint; + limit: bigint; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponse { + /** txs is the list of queried transactions. */ + txs: Tx[]; + /** tx_responses is the list of queried TxResponses. */ + txResponses: TxResponse[]; + /** + * pagination defines a pagination for the response. + * Deprecated post v0.46.x: use total instead. + */ + /** @deprecated */ + pagination?: PageResponse; + /** total is total number of results available */ + total: bigint; +} +export interface GetTxsEventResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; + value: Uint8Array; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponseAmino { + /** txs is the list of queried transactions. */ + txs?: TxAmino[]; + /** tx_responses is the list of queried TxResponses. */ + tx_responses?: TxResponseAmino[]; + /** + * pagination defines a pagination for the response. + * Deprecated post v0.46.x: use total instead. + */ + /** @deprecated */ + pagination?: PageResponseAmino; + /** total is total number of results available */ + total?: string; +} +export interface GetTxsEventResponseAminoMsg { + type: "cosmos-sdk/GetTxsEventResponse"; + value: GetTxsEventResponseAmino; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponseSDKType { + txs: TxSDKType[]; + tx_responses: TxResponseSDKType[]; + /** @deprecated */ + pagination?: PageResponseSDKType; + total: bigint; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequest { + /** tx_bytes is the raw transaction. */ + txBytes: Uint8Array; + mode: BroadcastMode; +} +export interface BroadcastTxRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; + value: Uint8Array; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequestAmino { + /** tx_bytes is the raw transaction. */ + tx_bytes?: string; + mode?: BroadcastMode; +} +export interface BroadcastTxRequestAminoMsg { + type: "cosmos-sdk/BroadcastTxRequest"; + value: BroadcastTxRequestAmino; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequestSDKType { + tx_bytes: Uint8Array; + mode: BroadcastMode; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponse { + /** tx_response is the queried TxResponses. */ + txResponse?: TxResponse; +} +export interface BroadcastTxResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; + value: Uint8Array; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponseAmino { + /** tx_response is the queried TxResponses. */ + tx_response?: TxResponseAmino; +} +export interface BroadcastTxResponseAminoMsg { + type: "cosmos-sdk/BroadcastTxResponse"; + value: BroadcastTxResponseAmino; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponseSDKType { + tx_response?: TxResponseSDKType; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequest { + /** + * tx is the transaction to simulate. + * Deprecated. Send raw tx bytes instead. + */ + /** @deprecated */ + tx?: Tx; + /** + * tx_bytes is the raw transaction. + * + * Since: cosmos-sdk 0.43 + */ + txBytes: Uint8Array; +} +export interface SimulateRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; + value: Uint8Array; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequestAmino { + /** + * tx is the transaction to simulate. + * Deprecated. Send raw tx bytes instead. + */ + /** @deprecated */ + tx?: TxAmino; + /** + * tx_bytes is the raw transaction. + * + * Since: cosmos-sdk 0.43 + */ + tx_bytes?: string; +} +export interface SimulateRequestAminoMsg { + type: "cosmos-sdk/SimulateRequest"; + value: SimulateRequestAmino; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequestSDKType { + /** @deprecated */ + tx?: TxSDKType; + tx_bytes: Uint8Array; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponse { + /** gas_info is the information about gas used in the simulation. */ + gasInfo?: GasInfo; + /** result is the result of the simulation. */ + result?: Result; +} +export interface SimulateResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; + value: Uint8Array; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponseAmino { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: GasInfoAmino; + /** result is the result of the simulation. */ + result?: ResultAmino; +} +export interface SimulateResponseAminoMsg { + type: "cosmos-sdk/SimulateResponse"; + value: SimulateResponseAmino; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponseSDKType { + gas_info?: GasInfoSDKType; + result?: ResultSDKType; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequest { + /** hash is the tx hash to query, encoded as a hex string. */ + hash: string; +} +export interface GetTxRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; + value: Uint8Array; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequestAmino { + /** hash is the tx hash to query, encoded as a hex string. */ + hash?: string; +} +export interface GetTxRequestAminoMsg { + type: "cosmos-sdk/GetTxRequest"; + value: GetTxRequestAmino; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequestSDKType { + hash: string; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponse { + /** tx is the queried transaction. */ + tx?: Tx; + /** tx_response is the queried TxResponses. */ + txResponse?: TxResponse; +} +export interface GetTxResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; + value: Uint8Array; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponseAmino { + /** tx is the queried transaction. */ + tx?: TxAmino; + /** tx_response is the queried TxResponses. */ + tx_response?: TxResponseAmino; +} +export interface GetTxResponseAminoMsg { + type: "cosmos-sdk/GetTxResponse"; + value: GetTxResponseAmino; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponseSDKType { + tx?: TxSDKType; + tx_response?: TxResponseSDKType; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequest { + /** height is the height of the block to query. */ + height: bigint; + /** pagination defines a pagination for the request. */ + pagination?: PageRequest; +} +export interface GetBlockWithTxsRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; + value: Uint8Array; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequestAmino { + /** height is the height of the block to query. */ + height?: string; + /** pagination defines a pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface GetBlockWithTxsRequestAminoMsg { + type: "cosmos-sdk/GetBlockWithTxsRequest"; + value: GetBlockWithTxsRequestAmino; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequestSDKType { + height: bigint; + pagination?: PageRequestSDKType; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponse { + /** txs are the transactions in the block. */ + txs: Tx[]; + blockId?: BlockID; + block?: Block; + /** pagination defines a pagination for the response. */ + pagination?: PageResponse; +} +export interface GetBlockWithTxsResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; + value: Uint8Array; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponseAmino { + /** txs are the transactions in the block. */ + txs?: TxAmino[]; + block_id?: BlockIDAmino; + block?: BlockAmino; + /** pagination defines a pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface GetBlockWithTxsResponseAminoMsg { + type: "cosmos-sdk/GetBlockWithTxsResponse"; + value: GetBlockWithTxsResponseAmino; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponseSDKType { + txs: TxSDKType[]; + block_id?: BlockIDSDKType; + block?: BlockSDKType; + pagination?: PageResponseSDKType; +} +export declare const GetTxsEventRequest: { + typeUrl: string; + encode(message: GetTxsEventRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest; + fromPartial(object: Partial): GetTxsEventRequest; + fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest; + toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino; + fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest; + toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg; + fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest; + toProto(message: GetTxsEventRequest): Uint8Array; + toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg; +}; +export declare const GetTxsEventResponse: { + typeUrl: string; + encode(message: GetTxsEventResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse; + fromPartial(object: Partial): GetTxsEventResponse; + fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse; + toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino; + fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse; + toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg; + fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse; + toProto(message: GetTxsEventResponse): Uint8Array; + toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg; +}; +export declare const BroadcastTxRequest: { + typeUrl: string; + encode(message: BroadcastTxRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest; + fromPartial(object: Partial): BroadcastTxRequest; + fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest; + toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino; + fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest; + toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg; + fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest; + toProto(message: BroadcastTxRequest): Uint8Array; + toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg; +}; +export declare const BroadcastTxResponse: { + typeUrl: string; + encode(message: BroadcastTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse; + fromPartial(object: Partial): BroadcastTxResponse; + fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse; + toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino; + fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse; + toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg; + fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse; + toProto(message: BroadcastTxResponse): Uint8Array; + toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg; +}; +export declare const SimulateRequest: { + typeUrl: string; + encode(message: SimulateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest; + fromPartial(object: Partial): SimulateRequest; + fromAmino(object: SimulateRequestAmino): SimulateRequest; + toAmino(message: SimulateRequest): SimulateRequestAmino; + fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest; + toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg; + fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest; + toProto(message: SimulateRequest): Uint8Array; + toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg; +}; +export declare const SimulateResponse: { + typeUrl: string; + encode(message: SimulateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse; + fromPartial(object: Partial): SimulateResponse; + fromAmino(object: SimulateResponseAmino): SimulateResponse; + toAmino(message: SimulateResponse): SimulateResponseAmino; + fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse; + toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg; + fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse; + toProto(message: SimulateResponse): Uint8Array; + toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg; +}; +export declare const GetTxRequest: { + typeUrl: string; + encode(message: GetTxRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest; + fromPartial(object: Partial): GetTxRequest; + fromAmino(object: GetTxRequestAmino): GetTxRequest; + toAmino(message: GetTxRequest): GetTxRequestAmino; + fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest; + toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg; + fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest; + toProto(message: GetTxRequest): Uint8Array; + toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg; +}; +export declare const GetTxResponse: { + typeUrl: string; + encode(message: GetTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse; + fromPartial(object: Partial): GetTxResponse; + fromAmino(object: GetTxResponseAmino): GetTxResponse; + toAmino(message: GetTxResponse): GetTxResponseAmino; + fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse; + toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg; + fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse; + toProto(message: GetTxResponse): Uint8Array; + toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg; +}; +export declare const GetBlockWithTxsRequest: { + typeUrl: string; + encode(message: GetBlockWithTxsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest; + fromPartial(object: Partial): GetBlockWithTxsRequest; + fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest; + toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino; + fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest; + toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg; + fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest; + toProto(message: GetBlockWithTxsRequest): Uint8Array; + toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg; +}; +export declare const GetBlockWithTxsResponse: { + typeUrl: string; + encode(message: GetBlockWithTxsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse; + fromPartial(object: Partial): GetBlockWithTxsResponse; + fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse; + toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino; + fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse; + toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg; + fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse; + toProto(message: GetBlockWithTxsResponse): Uint8Array; + toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.js b/packages/api/dist/cosmos/tx/v1beta1/service.js new file mode 100644 index 00000000..11c86eea --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.js @@ -0,0 +1,999 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastModeAmino = exports.BroadcastModeSDKType = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderByAmino = exports.OrderBySDKType = exports.OrderBy = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +const pagination_1 = require("../../base/query/v1beta1/pagination"); +const abci_1 = require("../../base/abci/v1beta1/abci"); +const types_1 = require("../../../tendermint/types/types"); +const block_1 = require("../../../tendermint/types/block"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +/** OrderBy defines the sorting order */ +var OrderBy; +(function (OrderBy) { + /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ + OrderBy[OrderBy["ORDER_BY_UNSPECIFIED"] = 0] = "ORDER_BY_UNSPECIFIED"; + /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ + OrderBy[OrderBy["ORDER_BY_ASC"] = 1] = "ORDER_BY_ASC"; + /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ + OrderBy[OrderBy["ORDER_BY_DESC"] = 2] = "ORDER_BY_DESC"; + OrderBy[OrderBy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(OrderBy || (exports.OrderBy = OrderBy = {})); +exports.OrderBySDKType = OrderBy; +exports.OrderByAmino = OrderBy; +function orderByFromJSON(object) { + switch (object) { + case 0: + case "ORDER_BY_UNSPECIFIED": + return OrderBy.ORDER_BY_UNSPECIFIED; + case 1: + case "ORDER_BY_ASC": + return OrderBy.ORDER_BY_ASC; + case 2: + case "ORDER_BY_DESC": + return OrderBy.ORDER_BY_DESC; + case -1: + case "UNRECOGNIZED": + default: + return OrderBy.UNRECOGNIZED; + } +} +exports.orderByFromJSON = orderByFromJSON; +function orderByToJSON(object) { + switch (object) { + case OrderBy.ORDER_BY_UNSPECIFIED: + return "ORDER_BY_UNSPECIFIED"; + case OrderBy.ORDER_BY_ASC: + return "ORDER_BY_ASC"; + case OrderBy.ORDER_BY_DESC: + return "ORDER_BY_DESC"; + case OrderBy.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.orderByToJSON = orderByToJSON; +/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ +var BroadcastMode; +(function (BroadcastMode) { + /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_UNSPECIFIED"] = 0] = "BROADCAST_MODE_UNSPECIFIED"; + /** + * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_BLOCK"] = 1] = "BROADCAST_MODE_BLOCK"; + /** + * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_SYNC"] = 2] = "BROADCAST_MODE_SYNC"; + /** + * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_ASYNC"] = 3] = "BROADCAST_MODE_ASYNC"; + BroadcastMode[BroadcastMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BroadcastMode || (exports.BroadcastMode = BroadcastMode = {})); +exports.BroadcastModeSDKType = BroadcastMode; +exports.BroadcastModeAmino = BroadcastMode; +function broadcastModeFromJSON(object) { + switch (object) { + case 0: + case "BROADCAST_MODE_UNSPECIFIED": + return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; + case 1: + case "BROADCAST_MODE_BLOCK": + return BroadcastMode.BROADCAST_MODE_BLOCK; + case 2: + case "BROADCAST_MODE_SYNC": + return BroadcastMode.BROADCAST_MODE_SYNC; + case 3: + case "BROADCAST_MODE_ASYNC": + return BroadcastMode.BROADCAST_MODE_ASYNC; + case -1: + case "UNRECOGNIZED": + default: + return BroadcastMode.UNRECOGNIZED; + } +} +exports.broadcastModeFromJSON = broadcastModeFromJSON; +function broadcastModeToJSON(object) { + switch (object) { + case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: + return "BROADCAST_MODE_UNSPECIFIED"; + case BroadcastMode.BROADCAST_MODE_BLOCK: + return "BROADCAST_MODE_BLOCK"; + case BroadcastMode.BROADCAST_MODE_SYNC: + return "BROADCAST_MODE_SYNC"; + case BroadcastMode.BROADCAST_MODE_ASYNC: + return "BROADCAST_MODE_ASYNC"; + case BroadcastMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.broadcastModeToJSON = broadcastModeToJSON; +function createBaseGetTxsEventRequest() { + return { + events: [], + pagination: undefined, + orderBy: 0, + page: BigInt(0), + limit: BigInt(0) + }; +} +exports.GetTxsEventRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.events) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + if (message.orderBy !== 0) { + writer.uint32(24).int32(message.orderBy); + } + if (message.page !== BigInt(0)) { + writer.uint32(32).uint64(message.page); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(reader.string()); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + case 3: + message.orderBy = reader.int32(); + break; + case 4: + message.page = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + message.orderBy = object.orderBy ?? 0; + message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + if (object.order_by !== undefined && object.order_by !== null) { + message.orderBy = object.order_by; + } + if (object.page !== undefined && object.page !== null) { + message.page = BigInt(object.page); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.events) { + obj.events = message.events.map(e => e); + } + else { + obj.events = message.events; + } + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; + obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxsEventRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxsEventRequest", + value: exports.GetTxsEventRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxsEventRequest.decode(message.value); + }, + toProto(message) { + return exports.GetTxsEventRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + value: exports.GetTxsEventRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxsEventResponse() { + return { + txs: [], + txResponses: [], + pagination: undefined, + total: BigInt(0) + }; +} +exports.GetTxsEventResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.txs) { + tx_1.Tx.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.txResponses) { + abci_1.TxResponse.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); + } + if (message.total !== BigInt(0)) { + writer.uint32(32).uint64(message.total); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(tx_1.Tx.decode(reader, reader.uint32())); + break; + case 2: + message.txResponses.push(abci_1.TxResponse.decode(reader, reader.uint32())); + break; + case 3: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + case 4: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => tx_1.Tx.fromPartial(e)) || []; + message.txResponses = object.txResponses?.map(e => abci_1.TxResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => tx_1.Tx.fromAmino(e)) || []; + message.txResponses = object.tx_responses?.map(e => abci_1.TxResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? tx_1.Tx.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + if (message.txResponses) { + obj.tx_responses = message.txResponses.map(e => e ? abci_1.TxResponse.toAmino(e) : undefined); + } + else { + obj.tx_responses = message.txResponses; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxsEventResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxsEventResponse", + value: exports.GetTxsEventResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxsEventResponse.decode(message.value); + }, + toProto(message) { + return exports.GetTxsEventResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + value: exports.GetTxsEventResponse.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxRequest() { + return { + txBytes: new Uint8Array(), + mode: 0 + }; +} +exports.BroadcastTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.txBytes.length !== 0) { + writer.uint32(10).bytes(message.txBytes); + } + if (message.mode !== 0) { + writer.uint32(16).int32(message.mode); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txBytes = reader.bytes(); + break; + case 2: + message.mode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBroadcastTxRequest(); + message.txBytes = object.txBytes ?? new Uint8Array(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBroadcastTxRequest(); + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = (0, helpers_1.bytesFromBase64)(object.tx_bytes); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_bytes = message.txBytes ? (0, helpers_1.base64FromBytes)(message.txBytes) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object) { + return exports.BroadcastTxRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BroadcastTxRequest", + value: exports.BroadcastTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BroadcastTxRequest.decode(message.value); + }, + toProto(message) { + return exports.BroadcastTxRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + value: exports.BroadcastTxRequest.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxResponse() { + return { + txResponse: undefined + }; +} +exports.BroadcastTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.txResponse !== undefined) { + abci_1.TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txResponse = abci_1.TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBroadcastTxResponse(); + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? abci_1.TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBroadcastTxResponse(); + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = abci_1.TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_response = message.txResponse ? abci_1.TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BroadcastTxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BroadcastTxResponse", + value: exports.BroadcastTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BroadcastTxResponse.decode(message.value); + }, + toProto(message) { + return exports.BroadcastTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + value: exports.BroadcastTxResponse.encode(message).finish() + }; + } +}; +function createBaseSimulateRequest() { + return { + tx: undefined, + txBytes: new Uint8Array() + }; +} +exports.SimulateRequest = { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tx !== undefined) { + tx_1.Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txBytes.length !== 0) { + writer.uint32(18).bytes(message.txBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = tx_1.Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulateRequest(); + message.tx = object.tx !== undefined && object.tx !== null ? tx_1.Tx.fromPartial(object.tx) : undefined; + message.txBytes = object.txBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSimulateRequest(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = tx_1.Tx.fromAmino(object.tx); + } + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = (0, helpers_1.bytesFromBase64)(object.tx_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? tx_1.Tx.toAmino(message.tx) : undefined; + obj.tx_bytes = message.txBytes ? (0, helpers_1.base64FromBytes)(message.txBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SimulateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulateRequest", + value: exports.SimulateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SimulateRequest.decode(message.value); + }, + toProto(message) { + return exports.SimulateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + value: exports.SimulateRequest.encode(message).finish() + }; + } +}; +function createBaseSimulateResponse() { + return { + gasInfo: undefined, + result: undefined + }; +} +exports.SimulateResponse = { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.gasInfo !== undefined) { + abci_1.GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + abci_1.Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = abci_1.GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = abci_1.Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulateResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? abci_1.GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? abci_1.Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSimulateResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = abci_1.GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = abci_1.Result.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_info = message.gasInfo ? abci_1.GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? abci_1.Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SimulateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulateResponse", + value: exports.SimulateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SimulateResponse.decode(message.value); + }, + toProto(message) { + return exports.SimulateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + value: exports.SimulateResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxRequest() { + return { + hash: "" + }; +} +exports.GetTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxRequest", + value: exports.GetTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxRequest.decode(message.value); + }, + toProto(message) { + return exports.GetTxRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + value: exports.GetTxRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxResponse() { + return { + tx: undefined, + txResponse: undefined + }; +} +exports.GetTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tx !== undefined) { + tx_1.Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txResponse !== undefined) { + abci_1.TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = tx_1.Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txResponse = abci_1.TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? tx_1.Tx.fromPartial(object.tx) : undefined; + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? abci_1.TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = tx_1.Tx.fromAmino(object.tx); + } + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = abci_1.TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? tx_1.Tx.toAmino(message.tx) : undefined; + obj.tx_response = message.txResponse ? abci_1.TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetTxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxResponse", + value: exports.GetTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetTxResponse.decode(message.value); + }, + toProto(message) { + return exports.GetTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + value: exports.GetTxResponse.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsRequest() { + return { + height: BigInt(0), + pagination: undefined + }; +} +exports.GetBlockWithTxsRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetBlockWithTxsRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetBlockWithTxsRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetBlockWithTxsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetBlockWithTxsRequest", + value: exports.GetBlockWithTxsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetBlockWithTxsRequest.decode(message.value); + }, + toProto(message) { + return exports.GetBlockWithTxsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + value: exports.GetBlockWithTxsRequest.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsResponse() { + return { + txs: [], + blockId: undefined, + block: undefined, + pagination: undefined + }; +} +exports.GetBlockWithTxsResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.txs) { + tx_1.Tx.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.blockId !== undefined) { + types_1.BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); + } + if (message.block !== undefined) { + block_1.Block.encode(message.block, writer.uint32(26).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(tx_1.Tx.decode(reader, reader.uint32())); + break; + case 2: + message.blockId = types_1.BlockID.decode(reader, reader.uint32()); + break; + case 3: + message.block = block_1.Block.decode(reader, reader.uint32()); + break; + case 4: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => tx_1.Tx.fromPartial(e)) || []; + message.blockId = object.blockId !== undefined && object.blockId !== null ? types_1.BlockID.fromPartial(object.blockId) : undefined; + message.block = object.block !== undefined && object.block !== null ? block_1.Block.fromPartial(object.block) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => tx_1.Tx.fromAmino(e)) || []; + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = types_1.BlockID.fromAmino(object.block_id); + } + if (object.block !== undefined && object.block !== null) { + message.block = block_1.Block.fromAmino(object.block); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? tx_1.Tx.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + obj.block_id = message.blockId ? types_1.BlockID.toAmino(message.blockId) : undefined; + obj.block = message.block ? block_1.Block.toAmino(message.block) : undefined; + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GetBlockWithTxsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetBlockWithTxsResponse", + value: exports.GetBlockWithTxsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GetBlockWithTxsResponse.decode(message.value); + }, + toProto(message) { + return exports.GetBlockWithTxsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + value: exports.GetBlockWithTxsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts new file mode 100644 index 00000000..e4a8e7b3 --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts @@ -0,0 +1,11 @@ +import { LCDClient } from "@cosmology/lcd"; +import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + getTx(params: GetTxRequest): Promise; + getTxsEvent(params: GetTxsEventRequest): Promise; + getBlockWithTxs(params: GetBlockWithTxsRequest): Promise; +} diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js new file mode 100644 index 00000000..15eecce7 --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js @@ -0,0 +1,56 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.getTx = this.getTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + /* GetTx fetches a tx by hash. */ + async getTx(params) { + const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; + return await this.req.get(endpoint); + } + /* GetTxsEvent fetches txs by event. */ + async getTxsEvent(params) { + const options = { + params: {} + }; + if (typeof params?.events !== "undefined") { + options.params.events = params.events; + } + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + if (typeof params?.orderBy !== "undefined") { + options.params.order_by = params.orderBy; + } + if (typeof params?.page !== "undefined") { + options.params.page = params.page; + } + if (typeof params?.limit !== "undefined") { + options.params.limit = params.limit; + } + const endpoint = `cosmos/tx/v1beta1/txs`; + return await this.req.get(endpoint, options); + } + /* GetBlockWithTxs fetches a block with decoded txs. + + Since: cosmos-sdk 0.45.2 */ + async getBlockWithTxs(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; + return await this.req.get(endpoint, options); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts new file mode 100644 index 00000000..8ce5bc4f --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts @@ -0,0 +1,36 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; +/** Service defines a gRPC service for interacting with transactions. */ +export interface Service { + /** Simulate simulates executing a transaction for estimating gas usage. */ + simulate(request: SimulateRequest): Promise; + /** GetTx fetches a tx by hash. */ + getTx(request: GetTxRequest): Promise; + /** BroadcastTx broadcast transaction. */ + broadcastTx(request: BroadcastTxRequest): Promise; + /** GetTxsEvent fetches txs by event. */ + getTxsEvent(request: GetTxsEventRequest): Promise; + /** + * GetBlockWithTxs fetches a block with decoded txs. + * + * Since: cosmos-sdk 0.45.2 + */ + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; +} +export declare class ServiceClientImpl implements Service { + private readonly rpc; + constructor(rpc: Rpc); + simulate(request: SimulateRequest): Promise; + getTx(request: GetTxRequest): Promise; + broadcastTx(request: BroadcastTxRequest): Promise; + getTxsEvent(request: GetTxsEventRequest): Promise; + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + simulate(request: SimulateRequest): Promise; + getTx(request: GetTxRequest): Promise; + broadcastTx(request: BroadcastTxRequest): Promise; + getTxsEvent(request: GetTxsEventRequest): Promise; + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js new file mode 100644 index 00000000..6415ffb8 --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js @@ -0,0 +1,65 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.ServiceClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const service_1 = require("./service"); +class ServiceClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.simulate = this.simulate.bind(this); + this.getTx = this.getTx.bind(this); + this.broadcastTx = this.broadcastTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + simulate(request) { + const data = service_1.SimulateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); + return promise.then(data => service_1.SimulateResponse.decode(new binary_1.BinaryReader(data))); + } + getTx(request) { + const data = service_1.GetTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); + return promise.then(data => service_1.GetTxResponse.decode(new binary_1.BinaryReader(data))); + } + broadcastTx(request) { + const data = service_1.BroadcastTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); + return promise.then(data => service_1.BroadcastTxResponse.decode(new binary_1.BinaryReader(data))); + } + getTxsEvent(request) { + const data = service_1.GetTxsEventRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); + return promise.then(data => service_1.GetTxsEventResponse.decode(new binary_1.BinaryReader(data))); + } + getBlockWithTxs(request) { + const data = service_1.GetBlockWithTxsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); + return promise.then(data => service_1.GetBlockWithTxsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.ServiceClientImpl = ServiceClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new ServiceClientImpl(rpc); + return { + simulate(request) { + return queryService.simulate(request); + }, + getTx(request) { + return queryService.getTx(request); + }, + broadcastTx(request) { + return queryService.broadcastTx(request); + }, + getTxsEvent(request) { + return queryService.getTxsEvent(request); + }, + getBlockWithTxs(request) { + return queryService.getBlockWithTxs(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts b/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts new file mode 100644 index 00000000..ba2634cc --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts @@ -0,0 +1,941 @@ +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { SignMode } from "../signing/v1beta1/signing"; +import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Tx is the standard type used for broadcasting transactions. */ +export interface Tx { + /** body is the processable content of the transaction */ + body?: TxBody; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + */ + authInfo?: AuthInfo; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures: Uint8Array[]; +} +export interface TxProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Tx"; + value: Uint8Array; +} +/** Tx is the standard type used for broadcasting transactions. */ +export interface TxAmino { + /** body is the processable content of the transaction */ + body?: TxBodyAmino; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + */ + auth_info?: AuthInfoAmino; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} +export interface TxAminoMsg { + type: "cosmos-sdk/Tx"; + value: TxAmino; +} +/** Tx is the standard type used for broadcasting transactions. */ +export interface TxSDKType { + body?: TxBodySDKType; + auth_info?: AuthInfoSDKType; + signatures: Uint8Array[]; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRaw { + /** + * body_bytes is a protobuf serialization of a TxBody that matches the + * representation in SignDoc. + */ + bodyBytes: Uint8Array; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in SignDoc. + */ + authInfoBytes: Uint8Array; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures: Uint8Array[]; +} +export interface TxRawProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.TxRaw"; + value: Uint8Array; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRawAmino { + /** + * body_bytes is a protobuf serialization of a TxBody that matches the + * representation in SignDoc. + */ + body_bytes?: string; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in SignDoc. + */ + auth_info_bytes?: string; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} +export interface TxRawAminoMsg { + type: "cosmos-sdk/TxRaw"; + value: TxRawAmino; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRawSDKType { + body_bytes: Uint8Array; + auth_info_bytes: Uint8Array; + signatures: Uint8Array[]; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDoc { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + bodyBytes: Uint8Array; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in TxRaw. + */ + authInfoBytes: Uint8Array; + /** + * chain_id is the unique identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker + */ + chainId: string; + /** account_number is the account number of the account in state */ + accountNumber: bigint; +} +export interface SignDocProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignDoc"; + value: Uint8Array; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDocAmino { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + body_bytes?: string; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in TxRaw. + */ + auth_info_bytes?: string; + /** + * chain_id is the unique identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker + */ + chain_id?: string; + /** account_number is the account number of the account in state */ + account_number?: string; +} +export interface SignDocAminoMsg { + type: "cosmos-sdk/SignDoc"; + value: SignDocAmino; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDocSDKType { + body_bytes: Uint8Array; + auth_info_bytes: Uint8Array; + chain_id: string; + account_number: bigint; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAux { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + bodyBytes: Uint8Array; + /** public_key is the public key of the signing account. */ + publicKey?: Any; + /** + * chain_id is the identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker. + */ + chainId: string; + /** account_number is the account number of the account in state. */ + accountNumber: bigint; + /** sequence is the sequence number of the signing account. */ + sequence: bigint; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * It should be left empty if the signer is not the tipper for this + * transaction. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + */ + tip?: Tip; +} +export interface SignDocDirectAuxProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; + value: Uint8Array; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAuxAmino { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + body_bytes?: string; + /** public_key is the public key of the signing account. */ + public_key?: AnyAmino; + /** + * chain_id is the identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker. + */ + chain_id?: string; + /** account_number is the account number of the account in state. */ + account_number?: string; + /** sequence is the sequence number of the signing account. */ + sequence?: string; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * It should be left empty if the signer is not the tipper for this + * transaction. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + */ + tip?: TipAmino; +} +export interface SignDocDirectAuxAminoMsg { + type: "cosmos-sdk/SignDocDirectAux"; + value: SignDocDirectAuxAmino; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAuxSDKType { + body_bytes: Uint8Array; + public_key?: AnySDKType; + chain_id: string; + account_number: bigint; + sequence: bigint; + tip?: TipSDKType; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBody { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages: Any[]; + /** + * memo is any arbitrary note/comment to be added to the transaction. + * WARNING: in clients, any publicly exposed text should not be called memo, + * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + */ + memo: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + */ + timeoutHeight: bigint; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extensionOptions: Any[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + nonCriticalExtensionOptions: Any[]; +} +export interface TxBodyProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.TxBody"; + value: Uint8Array; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBodyAmino { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: AnyAmino[]; + /** + * memo is any arbitrary note/comment to be added to the transaction. + * WARNING: in clients, any publicly exposed text should not be called memo, + * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: AnyAmino[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: AnyAmino[]; +} +export interface TxBodyAminoMsg { + type: "cosmos-sdk/TxBody"; + value: TxBodyAmino; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBodySDKType { + messages: AnySDKType[]; + memo: string; + timeout_height: bigint; + extension_options: AnySDKType[]; + non_critical_extension_options: AnySDKType[]; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfo { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signerInfos: SignerInfo[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: Fee; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + * + * Since: cosmos-sdk 0.46 + */ + tip?: Tip; +} +export interface AuthInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; + value: Uint8Array; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfoAmino { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signer_infos?: SignerInfoAmino[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: FeeAmino; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + * + * Since: cosmos-sdk 0.46 + */ + tip?: TipAmino; +} +export interface AuthInfoAminoMsg { + type: "cosmos-sdk/AuthInfo"; + value: AuthInfoAmino; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfoSDKType { + signer_infos: SignerInfoSDKType[]; + fee?: FeeSDKType; + tip?: TipSDKType; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfo { + /** + * public_key is the public key of the signer. It is optional for accounts + * that already exist in state. If unset, the verifier can use the required \ + * signer address for this position and lookup the public key. + */ + publicKey?: Any; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + */ + modeInfo?: ModeInfo; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + */ + sequence: bigint; +} +export interface SignerInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; + value: Uint8Array; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfoAmino { + /** + * public_key is the public key of the signer. It is optional for accounts + * that already exist in state. If unset, the verifier can use the required \ + * signer address for this position and lookup the public key. + */ + public_key?: AnyAmino; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + */ + mode_info?: ModeInfoAmino; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + */ + sequence?: string; +} +export interface SignerInfoAminoMsg { + type: "cosmos-sdk/SignerInfo"; + value: SignerInfoAmino; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfoSDKType { + public_key?: AnySDKType; + mode_info?: ModeInfoSDKType; + sequence: bigint; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfo { + /** single represents a single signer */ + single?: ModeInfo_Single; + /** multi represents a nested multisig signer */ + multi?: ModeInfo_Multi; +} +export interface ModeInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; + value: Uint8Array; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfoAmino { + /** single represents a single signer */ + single?: ModeInfo_SingleAmino; + /** multi represents a nested multisig signer */ + multi?: ModeInfo_MultiAmino; +} +export interface ModeInfoAminoMsg { + type: "cosmos-sdk/ModeInfo"; + value: ModeInfoAmino; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfoSDKType { + single?: ModeInfo_SingleSDKType; + multi?: ModeInfo_MultiSDKType; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_Single { + /** mode is the signing mode of the single signer */ + mode: SignMode; +} +export interface ModeInfo_SingleProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Single"; + value: Uint8Array; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_SingleAmino { + /** mode is the signing mode of the single signer */ + mode?: SignMode; +} +export interface ModeInfo_SingleAminoMsg { + type: "cosmos-sdk/Single"; + value: ModeInfo_SingleAmino; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_SingleSDKType { + mode: SignMode; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_Multi { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArray; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + modeInfos: ModeInfo[]; +} +export interface ModeInfo_MultiProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Multi"; + value: Uint8Array; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_MultiAmino { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArrayAmino; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + mode_infos?: ModeInfoAmino[]; +} +export interface ModeInfo_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: ModeInfo_MultiAmino; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_MultiSDKType { + bitarray?: CompactBitArraySDKType; + mode_infos: ModeInfoSDKType[]; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface Fee { + /** amount is the amount of coins to be paid as a fee */ + amount: Coin[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + */ + gasLimit: bigint; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter: string; +} +export interface FeeProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Fee"; + value: Uint8Array; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface FeeAmino { + /** amount is the amount of coins to be paid as a fee */ + amount?: CoinAmino[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; +} +export interface FeeAminoMsg { + type: "cosmos-sdk/Fee"; + value: FeeAmino; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface FeeSDKType { + amount: CoinSDKType[]; + gas_limit: bigint; + payer: string; + granter: string; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface Tip { + /** amount is the amount of the tip */ + amount: Coin[]; + /** tipper is the address of the account paying for the tip */ + tipper: string; +} +export interface TipProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Tip"; + value: Uint8Array; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface TipAmino { + /** amount is the amount of the tip */ + amount?: CoinAmino[]; + /** tipper is the address of the account paying for the tip */ + tipper?: string; +} +export interface TipAminoMsg { + type: "cosmos-sdk/Tip"; + value: TipAmino; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface TipSDKType { + amount: CoinSDKType[]; + tipper: string; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerData { + /** + * address is the bech32-encoded address of the auxiliary signer. If using + * AuxSignerData across different chains, the bech32 prefix of the target + * chain (where the final transaction is broadcasted) should be used. + */ + address: string; + /** + * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + * signs. Note: we use the same sign doc even if we're signing with + * LEGACY_AMINO_JSON. + */ + signDoc?: SignDocDirectAux; + /** mode is the signing mode of the single signer. */ + mode: SignMode; + /** sig is the signature of the sign doc. */ + sig: Uint8Array; +} +export interface AuxSignerDataProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; + value: Uint8Array; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerDataAmino { + /** + * address is the bech32-encoded address of the auxiliary signer. If using + * AuxSignerData across different chains, the bech32 prefix of the target + * chain (where the final transaction is broadcasted) should be used. + */ + address?: string; + /** + * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + * signs. Note: we use the same sign doc even if we're signing with + * LEGACY_AMINO_JSON. + */ + sign_doc?: SignDocDirectAuxAmino; + /** mode is the signing mode of the single signer. */ + mode?: SignMode; + /** sig is the signature of the sign doc. */ + sig?: string; +} +export interface AuxSignerDataAminoMsg { + type: "cosmos-sdk/AuxSignerData"; + value: AuxSignerDataAmino; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerDataSDKType { + address: string; + sign_doc?: SignDocDirectAuxSDKType; + mode: SignMode; + sig: Uint8Array; +} +export declare const Tx: { + typeUrl: string; + encode(message: Tx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Tx; + fromPartial(object: Partial): Tx; + fromAmino(object: TxAmino): Tx; + toAmino(message: Tx): TxAmino; + fromAminoMsg(object: TxAminoMsg): Tx; + toAminoMsg(message: Tx): TxAminoMsg; + fromProtoMsg(message: TxProtoMsg): Tx; + toProto(message: Tx): Uint8Array; + toProtoMsg(message: Tx): TxProtoMsg; +}; +export declare const TxRaw: { + typeUrl: string; + encode(message: TxRaw, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxRaw; + fromPartial(object: Partial): TxRaw; + fromAmino(object: TxRawAmino): TxRaw; + toAmino(message: TxRaw): TxRawAmino; + fromAminoMsg(object: TxRawAminoMsg): TxRaw; + toAminoMsg(message: TxRaw): TxRawAminoMsg; + fromProtoMsg(message: TxRawProtoMsg): TxRaw; + toProto(message: TxRaw): Uint8Array; + toProtoMsg(message: TxRaw): TxRawProtoMsg; +}; +export declare const SignDoc: { + typeUrl: string; + encode(message: SignDoc, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignDoc; + fromPartial(object: Partial): SignDoc; + fromAmino(object: SignDocAmino): SignDoc; + toAmino(message: SignDoc): SignDocAmino; + fromAminoMsg(object: SignDocAminoMsg): SignDoc; + toAminoMsg(message: SignDoc): SignDocAminoMsg; + fromProtoMsg(message: SignDocProtoMsg): SignDoc; + toProto(message: SignDoc): Uint8Array; + toProtoMsg(message: SignDoc): SignDocProtoMsg; +}; +export declare const SignDocDirectAux: { + typeUrl: string; + encode(message: SignDocDirectAux, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux; + fromPartial(object: Partial): SignDocDirectAux; + fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux; + toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino; + fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux; + toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg; + fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux; + toProto(message: SignDocDirectAux): Uint8Array; + toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg; +}; +export declare const TxBody: { + typeUrl: string; + encode(message: TxBody, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxBody; + fromPartial(object: Partial): TxBody; + fromAmino(object: TxBodyAmino): TxBody; + toAmino(message: TxBody): TxBodyAmino; + fromAminoMsg(object: TxBodyAminoMsg): TxBody; + toAminoMsg(message: TxBody): TxBodyAminoMsg; + fromProtoMsg(message: TxBodyProtoMsg): TxBody; + toProto(message: TxBody): Uint8Array; + toProtoMsg(message: TxBody): TxBodyProtoMsg; +}; +export declare const AuthInfo: { + typeUrl: string; + encode(message: AuthInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo; + fromPartial(object: Partial): AuthInfo; + fromAmino(object: AuthInfoAmino): AuthInfo; + toAmino(message: AuthInfo): AuthInfoAmino; + fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo; + toAminoMsg(message: AuthInfo): AuthInfoAminoMsg; + fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo; + toProto(message: AuthInfo): Uint8Array; + toProtoMsg(message: AuthInfo): AuthInfoProtoMsg; +}; +export declare const SignerInfo: { + typeUrl: string; + encode(message: SignerInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo; + fromPartial(object: Partial): SignerInfo; + fromAmino(object: SignerInfoAmino): SignerInfo; + toAmino(message: SignerInfo): SignerInfoAmino; + fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo; + toAminoMsg(message: SignerInfo): SignerInfoAminoMsg; + fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo; + toProto(message: SignerInfo): Uint8Array; + toProtoMsg(message: SignerInfo): SignerInfoProtoMsg; +}; +export declare const ModeInfo: { + typeUrl: string; + encode(message: ModeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo; + fromPartial(object: Partial): ModeInfo; + fromAmino(object: ModeInfoAmino): ModeInfo; + toAmino(message: ModeInfo): ModeInfoAmino; + fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo; + toAminoMsg(message: ModeInfo): ModeInfoAminoMsg; + fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo; + toProto(message: ModeInfo): Uint8Array; + toProtoMsg(message: ModeInfo): ModeInfoProtoMsg; +}; +export declare const ModeInfo_Single: { + typeUrl: string; + encode(message: ModeInfo_Single, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single; + fromPartial(object: Partial): ModeInfo_Single; + fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single; + toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino; + fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single; + toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg; + fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single; + toProto(message: ModeInfo_Single): Uint8Array; + toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg; +}; +export declare const ModeInfo_Multi: { + typeUrl: string; + encode(message: ModeInfo_Multi, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi; + fromPartial(object: Partial): ModeInfo_Multi; + fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi; + toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino; + fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi; + toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg; + fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi; + toProto(message: ModeInfo_Multi): Uint8Array; + toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg; +}; +export declare const Fee: { + typeUrl: string; + encode(message: Fee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Fee; + fromPartial(object: Partial): Fee; + fromAmino(object: FeeAmino): Fee; + toAmino(message: Fee): FeeAmino; + fromAminoMsg(object: FeeAminoMsg): Fee; + toAminoMsg(message: Fee): FeeAminoMsg; + fromProtoMsg(message: FeeProtoMsg): Fee; + toProto(message: Fee): Uint8Array; + toProtoMsg(message: Fee): FeeProtoMsg; +}; +export declare const Tip: { + typeUrl: string; + encode(message: Tip, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Tip; + fromPartial(object: Partial): Tip; + fromAmino(object: TipAmino): Tip; + toAmino(message: Tip): TipAmino; + fromAminoMsg(object: TipAminoMsg): Tip; + toAminoMsg(message: Tip): TipAminoMsg; + fromProtoMsg(message: TipProtoMsg): Tip; + toProto(message: Tip): Uint8Array; + toProtoMsg(message: Tip): TipProtoMsg; +}; +export declare const AuxSignerData: { + typeUrl: string; + encode(message: AuxSignerData, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData; + fromPartial(object: Partial): AuxSignerData; + fromAmino(object: AuxSignerDataAmino): AuxSignerData; + toAmino(message: AuxSignerData): AuxSignerDataAmino; + fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData; + toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg; + fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData; + toProto(message: AuxSignerData): Uint8Array; + toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg; +}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/tx.js b/packages/api/dist/cosmos/tx/v1beta1/tx.js new file mode 100644 index 00000000..500ef9d4 --- /dev/null +++ b/packages/api/dist/cosmos/tx/v1beta1/tx.js @@ -0,0 +1,1281 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AuxSignerData = exports.Tip = exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDocDirectAux = exports.SignDoc = exports.TxRaw = exports.Tx = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const multisig_1 = require("../../crypto/multisig/v1beta1/multisig"); +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseTx() { + return { + body: undefined, + authInfo: undefined, + signatures: [] + }; +} +exports.Tx = { + typeUrl: "/cosmos.tx.v1beta1.Tx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.body !== undefined) { + exports.TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); + } + if (message.authInfo !== undefined) { + exports.AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.body = exports.TxBody.decode(reader, reader.uint32()); + break; + case 2: + message.authInfo = exports.AuthInfo.decode(reader, reader.uint32()); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTx(); + message.body = object.body !== undefined && object.body !== null ? exports.TxBody.fromPartial(object.body) : undefined; + message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? exports.AuthInfo.fromPartial(object.authInfo) : undefined; + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTx(); + if (object.body !== undefined && object.body !== null) { + message.body = exports.TxBody.fromAmino(object.body); + } + if (object.auth_info !== undefined && object.auth_info !== null) { + message.authInfo = exports.AuthInfo.fromAmino(object.auth_info); + } + message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.body = message.body ? exports.TxBody.toAmino(message.body) : undefined; + obj.auth_info = message.authInfo ? exports.AuthInfo.toAmino(message.authInfo) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Tx.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Tx", + value: exports.Tx.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Tx.decode(message.value); + }, + toProto(message) { + return exports.Tx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Tx", + value: exports.Tx.encode(message).finish() + }; + } +}; +function createBaseTxRaw() { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + signatures: [] + }; +} +exports.TxRaw = { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxRaw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxRaw(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxRaw(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = (0, helpers_1.bytesFromBase64)(object.auth_info_bytes); + } + message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? (0, helpers_1.base64FromBytes)(message.authInfoBytes) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.TxRaw.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxRaw", + value: exports.TxRaw.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TxRaw.decode(message.value); + }, + toProto(message) { + return exports.TxRaw.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + value: exports.TxRaw.encode(message).finish() + }; + } +}; +function createBaseSignDoc() { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + chainId: "", + accountNumber: BigInt(0) + }; +} +exports.SignDoc = { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDoc(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignDoc(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignDoc(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = (0, helpers_1.bytesFromBase64)(object.auth_info_bytes); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? (0, helpers_1.base64FromBytes)(message.authInfoBytes) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignDoc.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignDoc", + value: exports.SignDoc.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignDoc.decode(message.value); + }, + toProto(message) { + return exports.SignDoc.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + value: exports.SignDoc.encode(message).finish() + }; + } +}; +function createBaseSignDocDirectAux() { + return { + bodyBytes: new Uint8Array(), + publicKey: undefined, + chainId: "", + accountNumber: BigInt(0), + sequence: BigInt(0), + tip: undefined + }; +} +exports.SignDocDirectAux = { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.publicKey !== undefined) { + any_1.Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(40).uint64(message.sequence); + } + if (message.tip !== undefined) { + exports.Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDocDirectAux(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.publicKey = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + case 5: + message.sequence = reader.uint64(); + break; + case 6: + message.tip = exports.Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignDocDirectAux(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + message.tip = object.tip !== undefined && object.tip !== null ? exports.Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignDocDirectAux(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); + } + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = any_1.Any.fromAmino(object.public_key); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = exports.Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; + obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.tip = message.tip ? exports.Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignDocDirectAux.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignDocDirectAux", + value: exports.SignDocDirectAux.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignDocDirectAux.decode(message.value); + }, + toProto(message) { + return exports.SignDocDirectAux.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + value: exports.SignDocDirectAux.encode(message).finish() + }; + } +}; +function createBaseTxBody() { + return { + messages: [], + memo: "", + timeoutHeight: BigInt(0), + extensionOptions: [], + nonCriticalExtensionOptions: [] + }; +} +exports.TxBody = { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.messages) { + any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.memo !== "") { + writer.uint32(18).string(message.memo); + } + if (message.timeoutHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.timeoutHeight); + } + for (const v of message.extensionOptions) { + any_1.Any.encode(v, writer.uint32(8186).fork()).ldelim(); + } + for (const v of message.nonCriticalExtensionOptions) { + any_1.Any.encode(v, writer.uint32(16378).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxBody(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 2: + message.memo = reader.string(); + break; + case 3: + message.timeoutHeight = reader.uint64(); + break; + case 1023: + message.extensionOptions.push(any_1.Any.decode(reader, reader.uint32())); + break; + case 2047: + message.nonCriticalExtensionOptions.push(any_1.Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; + message.memo = object.memo ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); + message.extensionOptions = object.extensionOptions?.map(e => any_1.Any.fromPartial(e)) || []; + message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => any_1.Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; + if (object.memo !== undefined && object.memo !== null) { + message.memo = object.memo; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = BigInt(object.timeout_height); + } + message.extensionOptions = object.extension_options?.map(e => any_1.Any.fromAmino(e)) || []; + message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => any_1.Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.memo = message.memo === "" ? undefined : message.memo; + obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; + if (message.extensionOptions) { + obj.extension_options = message.extensionOptions.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.extension_options = message.extensionOptions; + } + if (message.nonCriticalExtensionOptions) { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? any_1.Any.toAmino(e) : undefined); + } + else { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions; + } + return obj; + }, + fromAminoMsg(object) { + return exports.TxBody.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxBody", + value: exports.TxBody.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.TxBody.decode(message.value); + }, + toProto(message) { + return exports.TxBody.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + value: exports.TxBody.encode(message).finish() + }; + } +}; +function createBaseAuthInfo() { + return { + signerInfos: [], + fee: undefined, + tip: undefined + }; +} +exports.AuthInfo = { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.signerInfos) { + exports.SignerInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.fee !== undefined) { + exports.Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + if (message.tip !== undefined) { + exports.Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signerInfos.push(exports.SignerInfo.decode(reader, reader.uint32())); + break; + case 2: + message.fee = exports.Fee.decode(reader, reader.uint32()); + break; + case 3: + message.tip = exports.Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuthInfo(); + message.signerInfos = object.signerInfos?.map(e => exports.SignerInfo.fromPartial(e)) || []; + message.fee = object.fee !== undefined && object.fee !== null ? exports.Fee.fromPartial(object.fee) : undefined; + message.tip = object.tip !== undefined && object.tip !== null ? exports.Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAuthInfo(); + message.signerInfos = object.signer_infos?.map(e => exports.SignerInfo.fromAmino(e)) || []; + if (object.fee !== undefined && object.fee !== null) { + message.fee = exports.Fee.fromAmino(object.fee); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = exports.Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signerInfos) { + obj.signer_infos = message.signerInfos.map(e => e ? exports.SignerInfo.toAmino(e) : undefined); + } + else { + obj.signer_infos = message.signerInfos; + } + obj.fee = message.fee ? exports.Fee.toAmino(message.fee) : undefined; + obj.tip = message.tip ? exports.Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AuthInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuthInfo", + value: exports.AuthInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AuthInfo.decode(message.value); + }, + toProto(message) { + return exports.AuthInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + value: exports.AuthInfo.encode(message).finish() + }; + } +}; +function createBaseSignerInfo() { + return { + publicKey: undefined, + modeInfo: undefined, + sequence: BigInt(0) + }; +} +exports.SignerInfo = { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.publicKey !== undefined) { + any_1.Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.modeInfo !== undefined) { + exports.ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignerInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = any_1.Any.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfo = exports.ModeInfo.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignerInfo(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; + message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? exports.ModeInfo.fromPartial(object.modeInfo) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignerInfo(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = any_1.Any.fromAmino(object.public_key); + } + if (object.mode_info !== undefined && object.mode_info !== null) { + message.modeInfo = exports.ModeInfo.fromAmino(object.mode_info); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; + obj.mode_info = message.modeInfo ? exports.ModeInfo.toAmino(message.modeInfo) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignerInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignerInfo", + value: exports.SignerInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SignerInfo.decode(message.value); + }, + toProto(message) { + return exports.SignerInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + value: exports.SignerInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo() { + return { + single: undefined, + multi: undefined + }; +} +exports.ModeInfo = { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.single !== undefined) { + exports.ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + exports.ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = exports.ModeInfo_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = exports.ModeInfo_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo(); + message.single = object.single !== undefined && object.single !== null ? exports.ModeInfo_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? exports.ModeInfo_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo(); + if (object.single !== undefined && object.single !== null) { + message.single = exports.ModeInfo_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = exports.ModeInfo_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.single = message.single ? exports.ModeInfo_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? exports.ModeInfo_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ModeInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModeInfo", + value: exports.ModeInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModeInfo.decode(message.value); + }, + toProto(message) { + return exports.ModeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + value: exports.ModeInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Single() { + return { + mode: 0 + }; +} +exports.ModeInfo_Single = { + typeUrl: "/cosmos.tx.v1beta1.Single", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo_Single(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object) { + return exports.ModeInfo_Single.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Single", + value: exports.ModeInfo_Single.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModeInfo_Single.decode(message.value); + }, + toProto(message) { + return exports.ModeInfo_Single.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Single", + value: exports.ModeInfo_Single.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Multi() { + return { + bitarray: undefined, + modeInfos: [] + }; +} +exports.ModeInfo_Multi = { + typeUrl: "/cosmos.tx.v1beta1.Multi", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bitarray !== undefined) { + multisig_1.CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.modeInfos) { + exports.ModeInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = multisig_1.CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfos.push(exports.ModeInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? multisig_1.CompactBitArray.fromPartial(object.bitarray) : undefined; + message.modeInfos = object.modeInfos?.map(e => exports.ModeInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = multisig_1.CompactBitArray.fromAmino(object.bitarray); + } + message.modeInfos = object.mode_infos?.map(e => exports.ModeInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bitarray = message.bitarray ? multisig_1.CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.modeInfos) { + obj.mode_infos = message.modeInfos.map(e => e ? exports.ModeInfo.toAmino(e) : undefined); + } + else { + obj.mode_infos = message.modeInfos; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ModeInfo_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: exports.ModeInfo_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModeInfo_Multi.decode(message.value); + }, + toProto(message) { + return exports.ModeInfo_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Multi", + value: exports.ModeInfo_Multi.encode(message).finish() + }; + } +}; +function createBaseFee() { + return { + amount: [], + gasLimit: BigInt(0), + payer: "", + granter: "" + }; +} +exports.Fee = { + typeUrl: "/cosmos.tx.v1beta1.Fee", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.gasLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.gasLimit); + } + if (message.payer !== "") { + writer.uint32(26).string(message.payer); + } + if (message.granter !== "") { + writer.uint32(34).string(message.granter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.gasLimit = reader.uint64(); + break; + case 3: + message.payer = reader.string(); + break; + case 4: + message.granter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFee(); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); + message.payer = object.payer ?? ""; + message.granter = object.granter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseFee(); + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.gas_limit !== undefined && object.gas_limit !== null) { + message.gasLimit = BigInt(object.gas_limit); + } + if (object.payer !== undefined && object.payer !== null) { + message.payer = object.payer; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; + obj.payer = message.payer === "" ? undefined : message.payer; + obj.granter = message.granter === "" ? undefined : message.granter; + return obj; + }, + fromAminoMsg(object) { + return exports.Fee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Fee", + value: exports.Fee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Fee.decode(message.value); + }, + toProto(message) { + return exports.Fee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Fee", + value: exports.Fee.encode(message).finish() + }; + } +}; +function createBaseTip() { + return { + amount: [], + tipper: "" + }; +} +exports.Tip = { + typeUrl: "/cosmos.tx.v1beta1.Tip", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.tipper !== "") { + writer.uint32(18).string(message.tipper); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTip(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.tipper = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTip(); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.tipper = object.tipper ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTip(); + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.tipper !== undefined && object.tipper !== null) { + message.tipper = object.tipper; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.tipper = message.tipper === "" ? undefined : message.tipper; + return obj; + }, + fromAminoMsg(object) { + return exports.Tip.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Tip", + value: exports.Tip.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Tip.decode(message.value); + }, + toProto(message) { + return exports.Tip.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Tip", + value: exports.Tip.encode(message).finish() + }; + } +}; +function createBaseAuxSignerData() { + return { + address: "", + signDoc: undefined, + mode: 0, + sig: new Uint8Array() + }; +} +exports.AuxSignerData = { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.signDoc !== undefined) { + exports.SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); + } + if (message.mode !== 0) { + writer.uint32(24).int32(message.mode); + } + if (message.sig.length !== 0) { + writer.uint32(34).bytes(message.sig); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuxSignerData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.signDoc = exports.SignDocDirectAux.decode(reader, reader.uint32()); + break; + case 3: + message.mode = reader.int32(); + break; + case 4: + message.sig = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuxSignerData(); + message.address = object.address ?? ""; + message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? exports.SignDocDirectAux.fromPartial(object.signDoc) : undefined; + message.mode = object.mode ?? 0; + message.sig = object.sig ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAuxSignerData(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.sign_doc !== undefined && object.sign_doc !== null) { + message.signDoc = exports.SignDocDirectAux.fromAmino(object.sign_doc); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.sig !== undefined && object.sig !== null) { + message.sig = (0, helpers_1.bytesFromBase64)(object.sig); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.sign_doc = message.signDoc ? exports.SignDocDirectAux.toAmino(message.signDoc) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.sig = message.sig ? (0, helpers_1.base64FromBytes)(message.sig) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AuxSignerData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuxSignerData", + value: exports.AuxSignerData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.AuxSignerData.decode(message.value); + }, + toProto(message) { + return exports.AuxSignerData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + value: exports.AuxSignerData.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts new file mode 100644 index 00000000..a332abd2 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts @@ -0,0 +1,468 @@ +import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequest { +} +export interface QueryCurrentPlanRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; + value: Uint8Array; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequestAmino { +} +export interface QueryCurrentPlanRequestAminoMsg { + type: "cosmos-sdk/QueryCurrentPlanRequest"; + value: QueryCurrentPlanRequestAmino; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequestSDKType { +} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponse { + /** plan is the current upgrade plan. */ + plan?: Plan; +} +export interface QueryCurrentPlanResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; + value: Uint8Array; +} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponseAmino { + /** plan is the current upgrade plan. */ + plan?: PlanAmino; +} +export interface QueryCurrentPlanResponseAminoMsg { + type: "cosmos-sdk/QueryCurrentPlanResponse"; + value: QueryCurrentPlanResponseAmino; +} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponseSDKType { + plan?: PlanSDKType; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequest { + /** name is the name of the applied plan to query for. */ + name: string; +} +export interface QueryAppliedPlanRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; + value: Uint8Array; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequestAmino { + /** name is the name of the applied plan to query for. */ + name?: string; +} +export interface QueryAppliedPlanRequestAminoMsg { + type: "cosmos-sdk/QueryAppliedPlanRequest"; + value: QueryAppliedPlanRequestAmino; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequestSDKType { + name: string; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponse { + /** height is the block height at which the plan was applied. */ + height: bigint; +} +export interface QueryAppliedPlanResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; + value: Uint8Array; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponseAmino { + /** height is the block height at which the plan was applied. */ + height?: string; +} +export interface QueryAppliedPlanResponseAminoMsg { + type: "cosmos-sdk/QueryAppliedPlanResponse"; + value: QueryAppliedPlanResponseAmino; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponseSDKType { + height: bigint; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequest { + /** + * last height of the current chain must be sent in request + * as this is the height under which next consensus state is stored + */ + lastHeight: bigint; +} +export interface QueryUpgradedConsensusStateRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequestAmino { + /** + * last height of the current chain must be sent in request + * as this is the height under which next consensus state is stored + */ + last_height?: string; +} +export interface QueryUpgradedConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; + value: QueryUpgradedConsensusStateRequestAmino; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequestSDKType { + last_height: bigint; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponse { + /** Since: cosmos-sdk 0.43 */ + upgradedConsensusState: Uint8Array; +} +export interface QueryUpgradedConsensusStateResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponseAmino { + /** Since: cosmos-sdk 0.43 */ + upgraded_consensus_state?: string; +} +export interface QueryUpgradedConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; + value: QueryUpgradedConsensusStateResponseAmino; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponseSDKType { + upgraded_consensus_state: Uint8Array; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequest { + /** + * module_name is a field to query a specific module + * consensus version from state. Leaving this empty will + * fetch the full list of module versions from state + */ + moduleName: string; +} +export interface QueryModuleVersionsRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; + value: Uint8Array; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequestAmino { + /** + * module_name is a field to query a specific module + * consensus version from state. Leaving this empty will + * fetch the full list of module versions from state + */ + module_name?: string; +} +export interface QueryModuleVersionsRequestAminoMsg { + type: "cosmos-sdk/QueryModuleVersionsRequest"; + value: QueryModuleVersionsRequestAmino; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequestSDKType { + module_name: string; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponse { + /** module_versions is a list of module names with their consensus versions. */ + moduleVersions: ModuleVersion[]; +} +export interface QueryModuleVersionsResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; + value: Uint8Array; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponseAmino { + /** module_versions is a list of module names with their consensus versions. */ + module_versions?: ModuleVersionAmino[]; +} +export interface QueryModuleVersionsResponseAminoMsg { + type: "cosmos-sdk/QueryModuleVersionsResponse"; + value: QueryModuleVersionsResponseAmino; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponseSDKType { + module_versions: ModuleVersionSDKType[]; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequest { +} +export interface QueryAuthorityRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; + value: Uint8Array; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequestAmino { +} +export interface QueryAuthorityRequestAminoMsg { + type: "cosmos-sdk/QueryAuthorityRequest"; + value: QueryAuthorityRequestAmino; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequestSDKType { +} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponse { + address: string; +} +export interface QueryAuthorityResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; + value: Uint8Array; +} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponseAmino { + address?: string; +} +export interface QueryAuthorityResponseAminoMsg { + type: "cosmos-sdk/QueryAuthorityResponse"; + value: QueryAuthorityResponseAmino; +} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponseSDKType { + address: string; +} +export declare const QueryCurrentPlanRequest: { + typeUrl: string; + encode(_: QueryCurrentPlanRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest; + fromPartial(_: Partial): QueryCurrentPlanRequest; + fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest; + toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino; + fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest; + toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg; + fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest; + toProto(message: QueryCurrentPlanRequest): Uint8Array; + toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg; +}; +export declare const QueryCurrentPlanResponse: { + typeUrl: string; + encode(message: QueryCurrentPlanResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse; + fromPartial(object: Partial): QueryCurrentPlanResponse; + fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse; + toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino; + fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse; + toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg; + fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse; + toProto(message: QueryCurrentPlanResponse): Uint8Array; + toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg; +}; +export declare const QueryAppliedPlanRequest: { + typeUrl: string; + encode(message: QueryAppliedPlanRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest; + fromPartial(object: Partial): QueryAppliedPlanRequest; + fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest; + toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino; + fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest; + toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg; + fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest; + toProto(message: QueryAppliedPlanRequest): Uint8Array; + toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg; +}; +export declare const QueryAppliedPlanResponse: { + typeUrl: string; + encode(message: QueryAppliedPlanResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse; + fromPartial(object: Partial): QueryAppliedPlanResponse; + fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse; + toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino; + fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse; + toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg; + fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse; + toProto(message: QueryAppliedPlanResponse): Uint8Array; + toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg; +}; +export declare const QueryUpgradedConsensusStateRequest: { + typeUrl: string; + encode(message: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; + fromPartial(object: Partial): QueryUpgradedConsensusStateRequest; + fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; + toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; + fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; + toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; + fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; + toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; + toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; +}; +export declare const QueryUpgradedConsensusStateResponse: { + typeUrl: string; + encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; + fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; + fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; + toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; + fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; + toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; + fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; + toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; + toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; +}; +export declare const QueryModuleVersionsRequest: { + typeUrl: string; + encode(message: QueryModuleVersionsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest; + fromPartial(object: Partial): QueryModuleVersionsRequest; + fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest; + toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino; + fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest; + toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg; + fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest; + toProto(message: QueryModuleVersionsRequest): Uint8Array; + toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg; +}; +export declare const QueryModuleVersionsResponse: { + typeUrl: string; + encode(message: QueryModuleVersionsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse; + fromPartial(object: Partial): QueryModuleVersionsResponse; + fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse; + toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino; + fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse; + toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg; + fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse; + toProto(message: QueryModuleVersionsResponse): Uint8Array; + toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg; +}; +export declare const QueryAuthorityRequest: { + typeUrl: string; + encode(_: QueryAuthorityRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest; + fromPartial(_: Partial): QueryAuthorityRequest; + fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest; + toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino; + fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest; + toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg; + fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest; + toProto(message: QueryAuthorityRequest): Uint8Array; + toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg; +}; +export declare const QueryAuthorityResponse: { + typeUrl: string; + encode(message: QueryAuthorityResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse; + fromPartial(object: Partial): QueryAuthorityResponse; + fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse; + toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino; + fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse; + toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg; + fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse; + toProto(message: QueryAuthorityResponse): Uint8Array; + toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.js new file mode 100644 index 00000000..b77f92b9 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.js @@ -0,0 +1,674 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryAuthorityResponse = exports.QueryAuthorityRequest = exports.QueryModuleVersionsResponse = exports.QueryModuleVersionsRequest = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryAppliedPlanResponse = exports.QueryAppliedPlanRequest = exports.QueryCurrentPlanResponse = exports.QueryCurrentPlanRequest = void 0; +//@ts-nocheck +const upgrade_1 = require("./upgrade"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseQueryCurrentPlanRequest() { + return {}; +} +exports.QueryCurrentPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCurrentPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCurrentPlanRequest", + value: exports.QueryCurrentPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryCurrentPlanRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryCurrentPlanRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + value: exports.QueryCurrentPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCurrentPlanResponse() { + return { + plan: undefined + }; +} +exports.QueryCurrentPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.plan !== undefined) { + upgrade_1.Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCurrentPlanResponse(); + message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCurrentPlanResponse(); + if (object.plan !== undefined && object.plan !== null) { + message.plan = upgrade_1.Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCurrentPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCurrentPlanResponse", + value: exports.QueryCurrentPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryCurrentPlanResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryCurrentPlanResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + value: exports.QueryCurrentPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanRequest() { + return { + name: "" + }; +} +exports.QueryAppliedPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAppliedPlanRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAppliedPlanRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAppliedPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAppliedPlanRequest", + value: exports.QueryAppliedPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAppliedPlanRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAppliedPlanRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + value: exports.QueryAppliedPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanResponse() { + return { + height: BigInt(0) + }; +} +exports.QueryAppliedPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAppliedPlanResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAppliedPlanResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAppliedPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAppliedPlanResponse", + value: exports.QueryAppliedPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAppliedPlanResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAppliedPlanResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + value: exports.QueryAppliedPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest() { + return { + lastHeight: BigInt(0) + }; +} +exports.QueryUpgradedConsensusStateRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.lastHeight !== BigInt(0)) { + writer.uint32(8).int64(message.lastHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + if (object.last_height !== undefined && object.last_height !== null) { + message.lastHeight = BigInt(object.last_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: exports.QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + value: exports.QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse() { + return { + upgradedConsensusState: new Uint8Array() + }; +} +exports.QueryUpgradedConsensusStateResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.upgradedConsensusState.length !== 0) { + writer.uint32(18).bytes(message.upgradedConsensusState); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.upgradedConsensusState = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = (0, helpers_1.bytesFromBase64)(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? (0, helpers_1.base64FromBytes)(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: exports.QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + value: exports.QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsRequest() { + return { + moduleName: "" + }; +} +exports.QueryModuleVersionsRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.moduleName !== "") { + writer.uint32(10).string(message.moduleName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleVersionsRequest(); + message.moduleName = object.moduleName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleVersionsRequest(); + if (object.module_name !== undefined && object.module_name !== null) { + message.moduleName = object.module_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.module_name = message.moduleName === "" ? undefined : message.moduleName; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleVersionsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleVersionsRequest", + value: exports.QueryModuleVersionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleVersionsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleVersionsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + value: exports.QueryModuleVersionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsResponse() { + return { + moduleVersions: [] + }; +} +exports.QueryModuleVersionsResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.moduleVersions) { + upgrade_1.ModuleVersion.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleVersions.push(upgrade_1.ModuleVersion.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.moduleVersions?.map(e => upgrade_1.ModuleVersion.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.module_versions?.map(e => upgrade_1.ModuleVersion.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.moduleVersions) { + obj.module_versions = message.moduleVersions.map(e => e ? upgrade_1.ModuleVersion.toAmino(e) : undefined); + } + else { + obj.module_versions = message.moduleVersions; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryModuleVersionsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleVersionsResponse", + value: exports.QueryModuleVersionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryModuleVersionsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryModuleVersionsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + value: exports.QueryModuleVersionsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityRequest() { + return {}; +} +exports.QueryAuthorityRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAuthorityRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAuthorityRequest", + value: exports.QueryAuthorityRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAuthorityRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAuthorityRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + value: exports.QueryAuthorityRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityResponse() { + return { + address: "" + }; +} +exports.QueryAuthorityResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAuthorityResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAuthorityResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAuthorityResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAuthorityResponse", + value: exports.QueryAuthorityResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryAuthorityResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAuthorityResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + value: exports.QueryAuthorityResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts new file mode 100644 index 00000000..c76598bb --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts @@ -0,0 +1,13 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + currentPlan(_params?: QueryCurrentPlanRequest): Promise; + appliedPlan(params: QueryAppliedPlanRequest): Promise; + upgradedConsensusState(params: QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(params: QueryModuleVersionsRequest): Promise; + authority(_params?: QueryAuthorityRequest): Promise; +} diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js new file mode 100644 index 00000000..053f35ce --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + /* CurrentPlan queries the current upgrade plan. */ + async currentPlan(_params = {}) { + const endpoint = `cosmos/upgrade/v1beta1/current_plan`; + return await this.req.get(endpoint); + } + /* AppliedPlan queries a previously applied upgrade plan by its name. */ + async appliedPlan(params) { + const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries the consensus state that will serve + as a trusted kernel for the next version of this chain. It will only be + stored at the last height of this chain. + UpgradedConsensusState RPC not supported with legacy querier + This rpc is deprecated now that IBC has its own replacement + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ + async upgradedConsensusState(params) { + const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; + return await this.req.get(endpoint); + } + /* ModuleVersions queries the list of module versions from state. + + Since: cosmos-sdk 0.43 */ + async moduleVersions(params) { + const options = { + params: {} + }; + if (typeof params?.moduleName !== "undefined") { + options.params.module_name = params.moduleName; + } + const endpoint = `cosmos/upgrade/v1beta1/module_versions`; + return await this.req.get(endpoint, options); + } + /* Returns the account with authority to conduct upgrades + + Since: cosmos-sdk 0.46 */ + async authority(_params = {}) { + const endpoint = `cosmos/upgrade/v1beta1/authority`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts new file mode 100644 index 00000000..aaf18b79 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts @@ -0,0 +1,47 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; +/** Query defines the gRPC upgrade querier service. */ +export interface Query { + /** CurrentPlan queries the current upgrade plan. */ + currentPlan(request?: QueryCurrentPlanRequest): Promise; + /** AppliedPlan queries a previously applied upgrade plan by its name. */ + appliedPlan(request: QueryAppliedPlanRequest): Promise; + /** + * UpgradedConsensusState queries the consensus state that will serve + * as a trusted kernel for the next version of this chain. It will only be + * stored at the last height of this chain. + * UpgradedConsensusState RPC not supported with legacy querier + * This rpc is deprecated now that IBC has its own replacement + * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + */ + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + /** + * ModuleVersions queries the list of module versions from state. + * + * Since: cosmos-sdk 0.43 + */ + moduleVersions(request: QueryModuleVersionsRequest): Promise; + /** + * Returns the account with authority to conduct upgrades + * + * Since: cosmos-sdk 0.46 + */ + authority(request?: QueryAuthorityRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + currentPlan(request?: QueryCurrentPlanRequest): Promise; + appliedPlan(request: QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: QueryModuleVersionsRequest): Promise; + authority(request?: QueryAuthorityRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + currentPlan(request?: QueryCurrentPlanRequest): Promise; + appliedPlan(request: QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: QueryModuleVersionsRequest): Promise; + authority(request?: QueryAuthorityRequest): Promise; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..3e99083f --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js @@ -0,0 +1,65 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + currentPlan(request = {}) { + const data = query_1.QueryCurrentPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); + return promise.then(data => query_1.QueryCurrentPlanResponse.decode(new binary_1.BinaryReader(data))); + } + appliedPlan(request) { + const data = query_1.QueryAppliedPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); + return promise.then(data => query_1.QueryAppliedPlanResponse.decode(new binary_1.BinaryReader(data))); + } + upgradedConsensusState(request) { + const data = query_1.QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); + return promise.then(data => query_1.QueryUpgradedConsensusStateResponse.decode(new binary_1.BinaryReader(data))); + } + moduleVersions(request) { + const data = query_1.QueryModuleVersionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); + return promise.then(data => query_1.QueryModuleVersionsResponse.decode(new binary_1.BinaryReader(data))); + } + authority(request = {}) { + const data = query_1.QueryAuthorityRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); + return promise.then(data => query_1.QueryAuthorityResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + currentPlan(request) { + return queryService.currentPlan(request); + }, + appliedPlan(request) { + return queryService.appliedPlan(request); + }, + upgradedConsensusState(request) { + return queryService.upgradedConsensusState(request); + }, + moduleVersions(request) { + return queryService.moduleVersions(request); + }, + authority(request) { + return queryService.authority(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..a4777694 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts @@ -0,0 +1,13 @@ +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export declare const AminoConverter: { + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: string; + toAmino: (message: MsgSoftwareUpgrade) => import("./tx").MsgSoftwareUpgradeAmino; + fromAmino: (object: import("./tx").MsgSoftwareUpgradeAmino) => MsgSoftwareUpgrade; + }; + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: string; + toAmino: (message: MsgCancelUpgrade) => import("./tx").MsgCancelUpgradeAmino; + fromAmino: (object: import("./tx").MsgCancelUpgradeAmino) => MsgCancelUpgrade; + }; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js new file mode 100644 index 00000000..941fec83 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: "cosmos-sdk/MsgSoftwareUpgrade", + toAmino: tx_1.MsgSoftwareUpgrade.toAmino, + fromAmino: tx_1.MsgSoftwareUpgrade.fromAmino + }, + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: "cosmos-sdk/MsgCancelUpgrade", + toAmino: tx_1.MsgCancelUpgrade.toAmino, + fromAmino: tx_1.MsgCancelUpgrade.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts new file mode 100644 index 00000000..2aa019df --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts @@ -0,0 +1,185 @@ +import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgrade { + /** authority is the address of the governance account. */ + authority: string; + /** plan is the upgrade plan. */ + plan: Plan; +} +export interface MsgSoftwareUpgradeProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; + value: Uint8Array; +} +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** plan is the upgrade plan. */ + plan?: PlanAmino; +} +export interface MsgSoftwareUpgradeAminoMsg { + type: "cosmos-sdk/MsgSoftwareUpgrade"; + value: MsgSoftwareUpgradeAmino; +} +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeSDKType { + authority: string; + plan: PlanSDKType; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponse { +} +export interface MsgSoftwareUpgradeResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; + value: Uint8Array; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponseAmino { +} +export interface MsgSoftwareUpgradeResponseAminoMsg { + type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; + value: MsgSoftwareUpgradeResponseAmino; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponseSDKType { +} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgrade { + /** authority is the address of the governance account. */ + authority: string; +} +export interface MsgCancelUpgradeProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; + value: Uint8Array; +} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeAmino { + /** authority is the address of the governance account. */ + authority?: string; +} +export interface MsgCancelUpgradeAminoMsg { + type: "cosmos-sdk/MsgCancelUpgrade"; + value: MsgCancelUpgradeAmino; +} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeSDKType { + authority: string; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponse { +} +export interface MsgCancelUpgradeResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; + value: Uint8Array; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponseAmino { +} +export interface MsgCancelUpgradeResponseAminoMsg { + type: "cosmos-sdk/MsgCancelUpgradeResponse"; + value: MsgCancelUpgradeResponseAmino; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponseSDKType { +} +export declare const MsgSoftwareUpgrade: { + typeUrl: string; + encode(message: MsgSoftwareUpgrade, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade; + fromPartial(object: Partial): MsgSoftwareUpgrade; + fromAmino(object: MsgSoftwareUpgradeAmino): MsgSoftwareUpgrade; + toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino; + fromAminoMsg(object: MsgSoftwareUpgradeAminoMsg): MsgSoftwareUpgrade; + toAminoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAminoMsg; + fromProtoMsg(message: MsgSoftwareUpgradeProtoMsg): MsgSoftwareUpgrade; + toProto(message: MsgSoftwareUpgrade): Uint8Array; + toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg; +}; +export declare const MsgSoftwareUpgradeResponse: { + typeUrl: string; + encode(_: MsgSoftwareUpgradeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse; + fromPartial(_: Partial): MsgSoftwareUpgradeResponse; + fromAmino(_: MsgSoftwareUpgradeResponseAmino): MsgSoftwareUpgradeResponse; + toAmino(_: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAmino; + fromAminoMsg(object: MsgSoftwareUpgradeResponseAminoMsg): MsgSoftwareUpgradeResponse; + toAminoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAminoMsg; + fromProtoMsg(message: MsgSoftwareUpgradeResponseProtoMsg): MsgSoftwareUpgradeResponse; + toProto(message: MsgSoftwareUpgradeResponse): Uint8Array; + toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg; +}; +export declare const MsgCancelUpgrade: { + typeUrl: string; + encode(message: MsgCancelUpgrade, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade; + fromPartial(object: Partial): MsgCancelUpgrade; + fromAmino(object: MsgCancelUpgradeAmino): MsgCancelUpgrade; + toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino; + fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade; + toAminoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeAminoMsg; + fromProtoMsg(message: MsgCancelUpgradeProtoMsg): MsgCancelUpgrade; + toProto(message: MsgCancelUpgrade): Uint8Array; + toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg; +}; +export declare const MsgCancelUpgradeResponse: { + typeUrl: string; + encode(_: MsgCancelUpgradeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse; + fromPartial(_: Partial): MsgCancelUpgradeResponse; + fromAmino(_: MsgCancelUpgradeResponseAmino): MsgCancelUpgradeResponse; + toAmino(_: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAmino; + fromAminoMsg(object: MsgCancelUpgradeResponseAminoMsg): MsgCancelUpgradeResponse; + toAminoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAminoMsg; + fromProtoMsg(message: MsgCancelUpgradeResponseProtoMsg): MsgCancelUpgradeResponse; + toProto(message: MsgCancelUpgradeResponse): Uint8Array; + toProtoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.js new file mode 100644 index 00000000..410ebc48 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.js @@ -0,0 +1,268 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgCancelUpgradeResponse = exports.MsgCancelUpgrade = exports.MsgSoftwareUpgradeResponse = exports.MsgSoftwareUpgrade = void 0; +//@ts-nocheck +const upgrade_1 = require("./upgrade"); +const binary_1 = require("../../../binary"); +function createBaseMsgSoftwareUpgrade() { + return { + authority: "", + plan: upgrade_1.Plan.fromPartial({}) + }; +} +exports.MsgSoftwareUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.plan !== undefined) { + upgrade_1.Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSoftwareUpgrade(); + message.authority = object.authority ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSoftwareUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = upgrade_1.Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSoftwareUpgrade.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSoftwareUpgrade", + value: exports.MsgSoftwareUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSoftwareUpgrade.decode(message.value); + }, + toProto(message) { + return exports.MsgSoftwareUpgrade.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: exports.MsgSoftwareUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgSoftwareUpgradeResponse() { + return {}; +} +exports.MsgSoftwareUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSoftwareUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSoftwareUpgradeResponse", + value: exports.MsgSoftwareUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSoftwareUpgradeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSoftwareUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + value: exports.MsgSoftwareUpgradeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgrade() { + return { + authority: "" + }; +} +exports.MsgCancelUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelUpgrade(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelUpgrade.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUpgrade", + value: exports.MsgCancelUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancelUpgrade.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelUpgrade.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: exports.MsgCancelUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgradeResponse() { + return {}; +} +exports.MsgCancelUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUpgradeResponse", + value: exports.MsgCancelUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancelUpgradeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + value: exports.MsgCancelUpgradeResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..3ad0f716 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts @@ -0,0 +1,36 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + softwareUpgrade(value: MsgSoftwareUpgrade): { + typeUrl: string; + value: Uint8Array; + }; + cancelUpgrade(value: MsgCancelUpgrade): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + softwareUpgrade(value: MsgSoftwareUpgrade): { + typeUrl: string; + value: MsgSoftwareUpgrade; + }; + cancelUpgrade(value: MsgCancelUpgrade): { + typeUrl: string; + value: MsgCancelUpgrade; + }; + }; + fromPartial: { + softwareUpgrade(value: MsgSoftwareUpgrade): { + typeUrl: string; + value: MsgSoftwareUpgrade; + }; + cancelUpgrade(value: MsgCancelUpgrade): { + typeUrl: string; + value: MsgCancelUpgrade; + }; + }; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js new file mode 100644 index 00000000..84c2782e --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", tx_1.MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", tx_1.MsgCancelUpgrade]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: tx_1.MsgSoftwareUpgrade.encode(value).finish() + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: tx_1.MsgCancelUpgrade.encode(value).finish() + }; + } + }, + withTypeUrl: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value + }; + } + }, + fromPartial: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: tx_1.MsgSoftwareUpgrade.fromPartial(value) + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: tx_1.MsgCancelUpgrade.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..66d0b9a7 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,24 @@ +import { Rpc } from "../../../helpers"; +import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; +/** Msg defines the upgrade Msg service. */ +export interface Msg { + /** + * SoftwareUpgrade is a governance operation for initiating a software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + softwareUpgrade(request: MsgSoftwareUpgrade): Promise; + /** + * CancelUpgrade is a governance operation for cancelling a previously + * approvid software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + cancelUpgrade(request: MsgCancelUpgrade): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + softwareUpgrade(request: MsgSoftwareUpgrade): Promise; + cancelUpgrade(request: MsgCancelUpgrade): Promise; +} diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..7700c5dc --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.softwareUpgrade = this.softwareUpgrade.bind(this); + this.cancelUpgrade = this.cancelUpgrade.bind(this); + } + softwareUpgrade(request) { + const data = tx_1.MsgSoftwareUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); + return promise.then(data => tx_1.MsgSoftwareUpgradeResponse.decode(new binary_1.BinaryReader(data))); + } + cancelUpgrade(request) { + const data = tx_1.MsgCancelUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); + return promise.then(data => tx_1.MsgCancelUpgradeResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts new file mode 100644 index 00000000..0355d405 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts @@ -0,0 +1,274 @@ +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface Plan { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name: string; + /** + * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + * has been removed from the SDK. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + time: Date; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + */ + height: bigint; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info: string; + /** + * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + * moved to the IBC module in the sub module 02-client. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + upgradedClientState?: Any; +} +export interface PlanProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.Plan"; + value: Uint8Array; +} +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface PlanAmino { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + * has been removed from the SDK. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + * moved to the IBC module in the sub module 02-client. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + upgraded_client_state?: AnyAmino; +} +export interface PlanAminoMsg { + type: "cosmos-sdk/Plan"; + value: PlanAmino; +} +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface PlanSDKType { + name: string; + /** @deprecated */ + time: Date; + height: bigint; + info: string; + /** @deprecated */ + upgraded_client_state?: AnySDKType; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposal { + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + title: string; + description: string; + plan: Plan; +} +export interface SoftwareUpgradeProposalProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + value: Uint8Array; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposalAmino { + title?: string; + description?: string; + plan?: PlanAmino; +} +export interface SoftwareUpgradeProposalAminoMsg { + type: "cosmos-sdk/SoftwareUpgradeProposal"; + value: SoftwareUpgradeProposalAmino; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposalSDKType { + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + title: string; + description: string; + plan: PlanSDKType; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposal { + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + title: string; + description: string; +} +export interface CancelSoftwareUpgradeProposalProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + value: Uint8Array; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposalAmino { + title?: string; + description?: string; +} +export interface CancelSoftwareUpgradeProposalAminoMsg { + type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; + value: CancelSoftwareUpgradeProposalAmino; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposalSDKType { + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + title: string; + description: string; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersion { + /** name of the app module */ + name: string; + /** consensus version of the app module */ + version: bigint; +} +export interface ModuleVersionProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; + value: Uint8Array; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersionAmino { + /** name of the app module */ + name?: string; + /** consensus version of the app module */ + version?: string; +} +export interface ModuleVersionAminoMsg { + type: "cosmos-sdk/ModuleVersion"; + value: ModuleVersionAmino; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersionSDKType { + name: string; + version: bigint; +} +export declare const Plan: { + typeUrl: string; + encode(message: Plan, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Plan; + fromPartial(object: Partial): Plan; + fromAmino(object: PlanAmino): Plan; + toAmino(message: Plan): PlanAmino; + fromAminoMsg(object: PlanAminoMsg): Plan; + toAminoMsg(message: Plan): PlanAminoMsg; + fromProtoMsg(message: PlanProtoMsg): Plan; + toProto(message: Plan): Uint8Array; + toProtoMsg(message: Plan): PlanProtoMsg; +}; +export declare const SoftwareUpgradeProposal: { + typeUrl: string; + encode(message: SoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal; + fromPartial(object: Partial): SoftwareUpgradeProposal; + fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal; + toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino; + fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal; + toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg; + fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal; + toProto(message: SoftwareUpgradeProposal): Uint8Array; + toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg; +}; +export declare const CancelSoftwareUpgradeProposal: { + typeUrl: string; + encode(message: CancelSoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal; + fromPartial(object: Partial): CancelSoftwareUpgradeProposal; + fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal; + toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino; + fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal; + toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg; + fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal; + toProto(message: CancelSoftwareUpgradeProposal): Uint8Array; + toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg; +}; +export declare const ModuleVersion: { + typeUrl: string; + encode(message: ModuleVersion, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion; + fromPartial(object: Partial): ModuleVersion; + fromAmino(object: ModuleVersionAmino): ModuleVersion; + toAmino(message: ModuleVersion): ModuleVersionAmino; + fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion; + toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg; + fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion; + toProto(message: ModuleVersion): Uint8Array; + toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg; +}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js new file mode 100644 index 00000000..5f3bf083 --- /dev/null +++ b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js @@ -0,0 +1,382 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModuleVersion = exports.CancelSoftwareUpgradeProposal = exports.SoftwareUpgradeProposal = exports.Plan = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBasePlan() { + return { + name: "", + time: new Date(), + height: BigInt(0), + info: "", + upgradedClientState: undefined + }; +} +exports.Plan = { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.upgradedClientState !== undefined) { + any_1.Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePlan(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePlan(); + message.name = object.name ?? ""; + message.time = object.time ?? undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.info = object.info ?? ""; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePlan(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.info = message.info === "" ? undefined : message.info; + obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Plan.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Plan", + value: exports.Plan.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Plan.decode(message.value); + }, + toProto(message) { + return exports.Plan.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + value: exports.Plan.encode(message).finish() + }; + } +}; +function createBaseSoftwareUpgradeProposal() { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + title: "", + description: "", + plan: exports.Plan.fromPartial({}) + }; +} +exports.SoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + exports.Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = exports.Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? exports.Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = exports.Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? exports.Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SoftwareUpgradeProposal", + value: exports.SoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.SoftwareUpgradeProposal.decode(message.value); + }, + toProto(message) { + return exports.SoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + value: exports.SoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseCancelSoftwareUpgradeProposal() { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + title: "", + description: "" + }; +} +exports.CancelSoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCancelSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCancelSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCancelSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return exports.CancelSoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CancelSoftwareUpgradeProposal", + value: exports.CancelSoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.CancelSoftwareUpgradeProposal.decode(message.value); + }, + toProto(message) { + return exports.CancelSoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + value: exports.CancelSoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseModuleVersion() { + return { + name: "", + version: BigInt(0) + }; +} +exports.ModuleVersion = { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.version !== BigInt(0)) { + writer.uint32(16).uint64(message.version); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleVersion(); + message.name = object.name ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseModuleVersion(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ModuleVersion.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleVersion", + value: exports.ModuleVersion.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ModuleVersion.decode(message.value); + }, + toProto(message) { + return exports.ModuleVersion.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + value: exports.ModuleVersion.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts new file mode 100644 index 00000000..136d9688 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts @@ -0,0 +1,18 @@ +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export declare const AminoConverter: { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: string; + toAmino: (message: MsgCreateVestingAccount) => import("./tx").MsgCreateVestingAccountAmino; + fromAmino: (object: import("./tx").MsgCreateVestingAccountAmino) => MsgCreateVestingAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: string; + toAmino: (message: MsgCreatePermanentLockedAccount) => import("./tx").MsgCreatePermanentLockedAccountAmino; + fromAmino: (object: import("./tx").MsgCreatePermanentLockedAccountAmino) => MsgCreatePermanentLockedAccount; + }; + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: string; + toAmino: (message: MsgCreatePeriodicVestingAccount) => import("./tx").MsgCreatePeriodicVestingAccountAmino; + fromAmino: (object: import("./tx").MsgCreatePeriodicVestingAccountAmino) => MsgCreatePeriodicVestingAccount; + }; +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js new file mode 100644 index 00000000..c7fc542a --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: "cosmos-sdk/MsgCreateVestingAccount", + toAmino: tx_1.MsgCreateVestingAccount.toAmino, + fromAmino: tx_1.MsgCreateVestingAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", + toAmino: tx_1.MsgCreatePermanentLockedAccount.toAmino, + fromAmino: tx_1.MsgCreatePermanentLockedAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + toAmino: tx_1.MsgCreatePeriodicVestingAccount.toAmino, + fromAmino: tx_1.MsgCreatePeriodicVestingAccount.fromAmino + } +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts new file mode 100644 index 00000000..603f71b2 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts @@ -0,0 +1,285 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccount { + fromAddress: string; + toAddress: string; + amount: Coin[]; + endTime: bigint; + delayed: boolean; +} +export interface MsgCreateVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccountAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; + end_time?: string; + delayed?: boolean; +} +export interface MsgCreateVestingAccountAminoMsg { + type: "cosmos-sdk/MsgCreateVestingAccount"; + value: MsgCreateVestingAccountAmino; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccountSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; + end_time: bigint; + delayed: boolean; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponse { +} +export interface MsgCreateVestingAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; + value: Uint8Array; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponseAmino { +} +export interface MsgCreateVestingAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreateVestingAccountResponse"; + value: MsgCreateVestingAccountResponseAmino; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponseSDKType { +} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccount { + fromAddress: string; + toAddress: string; + amount: Coin[]; +} +export interface MsgCreatePermanentLockedAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; + value: Uint8Array; +} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; +} +export interface MsgCreatePermanentLockedAccountAminoMsg { + type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; + value: MsgCreatePermanentLockedAccountAmino; +} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponse { +} +export interface MsgCreatePermanentLockedAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; + value: Uint8Array; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponseAmino { +} +export interface MsgCreatePermanentLockedAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; + value: MsgCreatePermanentLockedAccountResponseAmino; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponseSDKType { +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccount { + fromAddress: string; + toAddress: string; + startTime: bigint; + vestingPeriods: Period[]; +} +export interface MsgCreatePeriodicVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountAmino { + from_address?: string; + to_address?: string; + start_time?: string; + vesting_periods?: PeriodAmino[]; +} +export interface MsgCreatePeriodicVestingAccountAminoMsg { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; + value: MsgCreatePeriodicVestingAccountAmino; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountSDKType { + from_address: string; + to_address: string; + start_time: bigint; + vesting_periods: PeriodSDKType[]; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponse { +} +export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponseAmino { +} +export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; + value: MsgCreatePeriodicVestingAccountResponseAmino; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponseSDKType { +} +export declare const MsgCreateVestingAccount: { + typeUrl: string; + encode(message: MsgCreateVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount; + fromPartial(object: Partial): MsgCreateVestingAccount; + fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount; + toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino; + fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount; + toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg; + fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount; + toProto(message: MsgCreateVestingAccount): Uint8Array; + toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg; +}; +export declare const MsgCreateVestingAccountResponse: { + typeUrl: string; + encode(_: MsgCreateVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; + fromPartial(_: Partial): MsgCreateVestingAccountResponse; + fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse; + toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino; + fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse; + toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg; + fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse; + toProto(message: MsgCreateVestingAccountResponse): Uint8Array; + toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg; +}; +export declare const MsgCreatePermanentLockedAccount: { + typeUrl: string; + encode(message: MsgCreatePermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; + fromPartial(object: Partial): MsgCreatePermanentLockedAccount; + fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount; + toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino; + fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount; + toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg; + fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount; + toProto(message: MsgCreatePermanentLockedAccount): Uint8Array; + toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg; +}; +export declare const MsgCreatePermanentLockedAccountResponse: { + typeUrl: string; + encode(_: MsgCreatePermanentLockedAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; + fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse; + fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse; + toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino; + fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse; + toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg; + fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse; + toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array; + toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg; +}; +export declare const MsgCreatePeriodicVestingAccount: { + typeUrl: string; + encode(message: MsgCreatePeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; + fromPartial(object: Partial): MsgCreatePeriodicVestingAccount; + fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount; + toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino; + fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount; + toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg; + fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount; + toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array; + toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg; +}; +export declare const MsgCreatePeriodicVestingAccountResponse: { + typeUrl: string; + encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; + fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse; + fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse; + toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino; + fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse; + toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg; + fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse; + toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array; + toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg; +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.js new file mode 100644 index 00000000..cfa5dbad --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.js @@ -0,0 +1,499 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgCreatePeriodicVestingAccountResponse = exports.MsgCreatePeriodicVestingAccount = exports.MsgCreatePermanentLockedAccountResponse = exports.MsgCreatePermanentLockedAccount = exports.MsgCreateVestingAccountResponse = exports.MsgCreateVestingAccount = void 0; +//@ts-nocheck +const coin_1 = require("../../base/v1beta1/coin"); +const vesting_1 = require("./vesting"); +const binary_1 = require("../../../binary"); +function createBaseMsgCreateVestingAccount() { + return { + fromAddress: "", + toAddress: "", + amount: [], + endTime: BigInt(0), + delayed: false + }; +} +exports.MsgCreateVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(32).int64(message.endTime); + } + if (message.delayed === true) { + writer.uint32(40).bool(message.delayed); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 4: + message.endTime = reader.int64(); + break; + case 5: + message.delayed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + message.delayed = object.delayed ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + if (object.delayed !== undefined && object.delayed !== null) { + message.delayed = object.delayed; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + obj.delayed = message.delayed === false ? undefined : message.delayed; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateVestingAccount", + value: exports.MsgCreateVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: exports.MsgCreateVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreateVestingAccountResponse() { + return {}; +} +exports.MsgCreateVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateVestingAccountResponse", + value: exports.MsgCreateVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateVestingAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + value: exports.MsgCreateVestingAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccount() { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +exports.MsgCreatePermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreatePermanentLockedAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreatePermanentLockedAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreatePermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccount", + value: exports.MsgCreatePermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreatePermanentLockedAccount.decode(message.value); + }, + toProto(message) { + return exports.MsgCreatePermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: exports.MsgCreatePermanentLockedAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccountResponse() { + return {}; +} +exports.MsgCreatePermanentLockedAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", + value: exports.MsgCreatePermanentLockedAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreatePermanentLockedAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreatePermanentLockedAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + value: exports.MsgCreatePermanentLockedAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccount() { + return { + fromAddress: "", + toAddress: "", + startTime: BigInt(0), + vestingPeriods: [] + }; +} +exports.MsgCreatePeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(24).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + vesting_1.Period.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.startTime = reader.int64(); + break; + case 4: + message.vestingPeriods.push(vesting_1.Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreatePeriodicVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => vesting_1.Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreatePeriodicVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => vesting_1.Period.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? vesting_1.Period.toAmino(e) : undefined); + } + else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreatePeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + value: exports.MsgCreatePeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreatePeriodicVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.MsgCreatePeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: exports.MsgCreatePeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccountResponse() { + return {}; +} +exports.MsgCreatePeriodicVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", + value: exports.MsgCreatePeriodicVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreatePeriodicVestingAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + value: exports.MsgCreatePeriodicVestingAccountResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts new file mode 100644 index 00000000..982a5c6a --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts @@ -0,0 +1,48 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createVestingAccount(value: MsgCreateVestingAccount): { + typeUrl: string; + value: Uint8Array; + }; + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: Uint8Array; + }; + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createVestingAccount(value: MsgCreateVestingAccount): { + typeUrl: string; + value: MsgCreateVestingAccount; + }; + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: MsgCreatePermanentLockedAccount; + }; + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: MsgCreatePeriodicVestingAccount; + }; + }; + fromPartial: { + createVestingAccount(value: MsgCreateVestingAccount): { + typeUrl: string; + value: MsgCreateVestingAccount; + }; + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { + typeUrl: string; + value: MsgCreatePermanentLockedAccount; + }; + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { + typeUrl: string; + value: MsgCreatePeriodicVestingAccount; + }; + }; +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js new file mode 100644 index 00000000..c51acfd7 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", tx_1.MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", tx_1.MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", tx_1.MsgCreatePeriodicVestingAccount]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: tx_1.MsgCreateVestingAccount.encode(value).finish() + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: tx_1.MsgCreatePermanentLockedAccount.encode(value).finish() + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: tx_1.MsgCreatePeriodicVestingAccount.encode(value).finish() + }; + } + }, + withTypeUrl: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value + }; + } + }, + fromPartial: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: tx_1.MsgCreateVestingAccount.fromPartial(value) + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: tx_1.MsgCreatePermanentLockedAccount.fromPartial(value) + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: tx_1.MsgCreatePeriodicVestingAccount.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..53bd60d0 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts @@ -0,0 +1,31 @@ +import { Rpc } from "../../../helpers"; +import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** + * CreateVestingAccount defines a method that enables creating a vesting + * account. + */ + createVestingAccount(request: MsgCreateVestingAccount): Promise; + /** + * CreatePermanentLockedAccount defines a method that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ + createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; + /** + * CreatePeriodicVestingAccount defines a method that enables creating a + * periodic vesting account. + * + * Since: cosmos-sdk 0.46 + */ + createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createVestingAccount(request: MsgCreateVestingAccount): Promise; + createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; + createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; +} diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..e3928f47 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createVestingAccount = this.createVestingAccount.bind(this); + this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); + this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); + } + createVestingAccount(request) { + const data = tx_1.MsgCreateVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); + return promise.then(data => tx_1.MsgCreateVestingAccountResponse.decode(new binary_1.BinaryReader(data))); + } + createPermanentLockedAccount(request) { + const data = tx_1.MsgCreatePermanentLockedAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); + return promise.then(data => tx_1.MsgCreatePermanentLockedAccountResponse.decode(new binary_1.BinaryReader(data))); + } + createPeriodicVestingAccount(request) { + const data = tx_1.MsgCreatePeriodicVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); + return promise.then(data => tx_1.MsgCreatePeriodicVestingAccountResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts new file mode 100644 index 00000000..f3add67f --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts @@ -0,0 +1,282 @@ +import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccount { + baseAccount?: BaseAccount; + originalVesting: Coin[]; + delegatedFree: Coin[]; + delegatedVesting: Coin[]; + endTime: bigint; +} +export interface BaseVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; + value: Uint8Array; +} +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccountAmino { + base_account?: BaseAccountAmino; + original_vesting?: CoinAmino[]; + delegated_free?: CoinAmino[]; + delegated_vesting?: CoinAmino[]; + end_time?: string; +} +export interface BaseVestingAccountAminoMsg { + type: "cosmos-sdk/BaseVestingAccount"; + value: BaseVestingAccountAmino; +} +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccountSDKType { + base_account?: BaseAccountSDKType; + original_vesting: CoinSDKType[]; + delegated_free: CoinSDKType[]; + delegated_vesting: CoinSDKType[]; + end_time: bigint; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccount { + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; +} +export interface ContinuousVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; + value: Uint8Array; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; + start_time?: string; +} +export interface ContinuousVestingAccountAminoMsg { + type: "cosmos-sdk/ContinuousVestingAccount"; + value: ContinuousVestingAccountAmino; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccount { + baseVestingAccount?: BaseVestingAccount; +} +export interface DelayedVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; + value: Uint8Array; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; +} +export interface DelayedVestingAccountAminoMsg { + type: "cosmos-sdk/DelayedVestingAccount"; + value: DelayedVestingAccountAmino; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface Period { + length: bigint; + amount: Coin[]; +} +export interface PeriodProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.Period"; + value: Uint8Array; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface PeriodAmino { + length?: string; + amount?: CoinAmino[]; +} +export interface PeriodAminoMsg { + type: "cosmos-sdk/Period"; + value: PeriodAmino; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface PeriodSDKType { + length: bigint; + amount: CoinSDKType[]; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccount { + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; + vestingPeriods: Period[]; +} +export interface PeriodicVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; + value: Uint8Array; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; + start_time?: string; + vesting_periods?: PeriodAmino[]; +} +export interface PeriodicVestingAccountAminoMsg { + type: "cosmos-sdk/PeriodicVestingAccount"; + value: PeriodicVestingAccountAmino; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; + vesting_periods: PeriodSDKType[]; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccount { + baseVestingAccount?: BaseVestingAccount; +} +export interface PermanentLockedAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; + value: Uint8Array; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; +} +export interface PermanentLockedAccountAminoMsg { + type: "cosmos-sdk/PermanentLockedAccount"; + value: PermanentLockedAccountAmino; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; +} +export declare const BaseVestingAccount: { + typeUrl: string; + encode(message: BaseVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount; + fromPartial(object: Partial): BaseVestingAccount; + fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount; + toAmino(message: BaseVestingAccount): BaseVestingAccountAmino; + fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount; + toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg; + fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount; + toProto(message: BaseVestingAccount): Uint8Array; + toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg; +}; +export declare const ContinuousVestingAccount: { + typeUrl: string; + encode(message: ContinuousVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount; + fromPartial(object: Partial): ContinuousVestingAccount; + fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount; + toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino; + fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount; + toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg; + fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount; + toProto(message: ContinuousVestingAccount): Uint8Array; + toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg; +}; +export declare const DelayedVestingAccount: { + typeUrl: string; + encode(message: DelayedVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount; + fromPartial(object: Partial): DelayedVestingAccount; + fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount; + toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino; + fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount; + toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg; + fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount; + toProto(message: DelayedVestingAccount): Uint8Array; + toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg; +}; +export declare const Period: { + typeUrl: string; + encode(message: Period, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Period; + fromPartial(object: Partial): Period; + fromAmino(object: PeriodAmino): Period; + toAmino(message: Period): PeriodAmino; + fromAminoMsg(object: PeriodAminoMsg): Period; + toAminoMsg(message: Period): PeriodAminoMsg; + fromProtoMsg(message: PeriodProtoMsg): Period; + toProto(message: Period): Uint8Array; + toProtoMsg(message: Period): PeriodProtoMsg; +}; +export declare const PeriodicVestingAccount: { + typeUrl: string; + encode(message: PeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount; + fromPartial(object: Partial): PeriodicVestingAccount; + fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount; + toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino; + fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount; + toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg; + fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount; + toProto(message: PeriodicVestingAccount): Uint8Array; + toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg; +}; +export declare const PermanentLockedAccount: { + typeUrl: string; + encode(message: PermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount; + fromPartial(object: Partial): PermanentLockedAccount; + fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount; + toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino; + fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount; + toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg; + fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount; + toProto(message: PermanentLockedAccount): Uint8Array; + toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg; +}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/vesting.js b/packages/api/dist/cosmos/vesting/v1beta1/vesting.js new file mode 100644 index 00000000..67f82e71 --- /dev/null +++ b/packages/api/dist/cosmos/vesting/v1beta1/vesting.js @@ -0,0 +1,532 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermanentLockedAccount = exports.PeriodicVestingAccount = exports.Period = exports.DelayedVestingAccount = exports.ContinuousVestingAccount = exports.BaseVestingAccount = void 0; +//@ts-nocheck +const auth_1 = require("../../auth/v1beta1/auth"); +const coin_1 = require("../../base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +function createBaseBaseVestingAccount() { + return { + baseAccount: undefined, + originalVesting: [], + delegatedFree: [], + delegatedVesting: [], + endTime: BigInt(0) + }; +} +exports.BaseVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseAccount !== undefined) { + auth_1.BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.originalVesting) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatedFree) { + coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.delegatedVesting) { + coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(40).int64(message.endTime); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = auth_1.BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.originalVesting.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 3: + message.delegatedFree.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 4: + message.delegatedVesting.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 5: + message.endTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBaseVestingAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? auth_1.BaseAccount.fromPartial(object.baseAccount) : undefined; + message.originalVesting = object.originalVesting?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.delegatedFree = object.delegatedFree?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.delegatedVesting = object.delegatedVesting?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBaseVestingAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = auth_1.BaseAccount.fromAmino(object.base_account); + } + message.originalVesting = object.original_vesting?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.delegatedFree = object.delegated_free?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.delegatedVesting = object.delegated_vesting?.map(e => coin_1.Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_account = message.baseAccount ? auth_1.BaseAccount.toAmino(message.baseAccount) : undefined; + if (message.originalVesting) { + obj.original_vesting = message.originalVesting.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.original_vesting = message.originalVesting; + } + if (message.delegatedFree) { + obj.delegated_free = message.delegatedFree.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.delegated_free = message.delegatedFree; + } + if (message.delegatedVesting) { + obj.delegated_vesting = message.delegatedVesting.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.delegated_vesting = message.delegatedVesting; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BaseVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BaseVestingAccount", + value: exports.BaseVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.BaseVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.BaseVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + value: exports.BaseVestingAccount.encode(message).finish() + }; + } +}; +function createBaseContinuousVestingAccount() { + return { + baseVestingAccount: undefined, + startTime: BigInt(0) + }; +} +exports.ContinuousVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContinuousVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContinuousVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseContinuousVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ContinuousVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ContinuousVestingAccount", + value: exports.ContinuousVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ContinuousVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.ContinuousVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + value: exports.ContinuousVestingAccount.encode(message).finish() + }; + } +}; +function createBaseDelayedVestingAccount() { + return { + baseVestingAccount: undefined + }; +} +exports.DelayedVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelayedVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelayedVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelayedVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DelayedVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelayedVestingAccount", + value: exports.DelayedVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DelayedVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.DelayedVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + value: exports.DelayedVestingAccount.encode(message).finish() + }; + } +}; +function createBasePeriod() { + return { + length: BigInt(0), + amount: [] + }; +} +exports.Period = { + typeUrl: "/cosmos.vesting.v1beta1.Period", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.length !== BigInt(0)) { + writer.uint32(8).int64(message.length); + } + for (const v of message.amount) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriod(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.length = reader.int64(); + break; + case 2: + message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriod(); + message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); + message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBasePeriod(); + if (object.length !== undefined && object.length !== null) { + message.length = BigInt(object.length); + } + message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; + if (message.amount) { + obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Period.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Period", + value: exports.Period.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Period.decode(message.value); + }, + toProto(message) { + return exports.Period.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.Period", + value: exports.Period.encode(message).finish() + }; + } +}; +function createBasePeriodicVestingAccount() { + return { + baseVestingAccount: undefined, + startTime: BigInt(0), + vestingPeriods: [] + }; +} +exports.PeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + exports.Period.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + case 3: + message.vestingPeriods.push(exports.Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriodicVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => exports.Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBasePeriodicVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => exports.Period.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? exports.Period.toAmino(e) : undefined); + } + else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object) { + return exports.PeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PeriodicVestingAccount", + value: exports.PeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PeriodicVestingAccount.decode(message.value); + }, + toProto(message) { + return exports.PeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + value: exports.PeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBasePermanentLockedAccount() { + return { + baseVestingAccount: undefined + }; +} +exports.PermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePermanentLockedAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePermanentLockedAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PermanentLockedAccount", + value: exports.PermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.PermanentLockedAccount.decode(message.value); + }, + toProto(message) { + return exports.PermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + value: exports.PermanentLockedAccount.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/cosmos_proto/bundle.d.ts b/packages/api/dist/cosmos_proto/bundle.d.ts new file mode 100644 index 00000000..4b6ccc71 --- /dev/null +++ b/packages/api/dist/cosmos_proto/bundle.d.ts @@ -0,0 +1,32 @@ +import * as _1 from "./cosmos"; +export declare const cosmos_proto: { + scalarTypeFromJSON(object: any): _1.ScalarType; + scalarTypeToJSON(object: _1.ScalarType): string; + ScalarType: typeof _1.ScalarType; + ScalarTypeSDKType: typeof _1.ScalarType; + ScalarTypeAmino: typeof _1.ScalarType; + InterfaceDescriptor: { + typeUrl: string; + encode(message: _1.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _1.InterfaceDescriptor; + fromPartial(object: Partial<_1.InterfaceDescriptor>): _1.InterfaceDescriptor; + fromAmino(object: _1.InterfaceDescriptorAmino): _1.InterfaceDescriptor; + toAmino(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorAmino; + fromAminoMsg(object: _1.InterfaceDescriptorAminoMsg): _1.InterfaceDescriptor; + fromProtoMsg(message: _1.InterfaceDescriptorProtoMsg): _1.InterfaceDescriptor; + toProto(message: _1.InterfaceDescriptor): Uint8Array; + toProtoMsg(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorProtoMsg; + }; + ScalarDescriptor: { + typeUrl: string; + encode(message: _1.ScalarDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _1.ScalarDescriptor; + fromPartial(object: Partial<_1.ScalarDescriptor>): _1.ScalarDescriptor; + fromAmino(object: _1.ScalarDescriptorAmino): _1.ScalarDescriptor; + toAmino(message: _1.ScalarDescriptor): _1.ScalarDescriptorAmino; + fromAminoMsg(object: _1.ScalarDescriptorAminoMsg): _1.ScalarDescriptor; + fromProtoMsg(message: _1.ScalarDescriptorProtoMsg): _1.ScalarDescriptor; + toProto(message: _1.ScalarDescriptor): Uint8Array; + toProtoMsg(message: _1.ScalarDescriptor): _1.ScalarDescriptorProtoMsg; + }; +}; diff --git a/packages/api/dist/cosmos_proto/bundle.js b/packages/api/dist/cosmos_proto/bundle.js new file mode 100644 index 00000000..501580e7 --- /dev/null +++ b/packages/api/dist/cosmos_proto/bundle.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.cosmos_proto = void 0; +//@ts-nocheck +const _1 = __importStar(require("./cosmos")); +exports.cosmos_proto = { + ..._1 +}; diff --git a/packages/api/dist/cosmos_proto/cosmos.d.ts b/packages/api/dist/cosmos_proto/cosmos.d.ts new file mode 100644 index 00000000..8142502d --- /dev/null +++ b/packages/api/dist/cosmos_proto/cosmos.d.ts @@ -0,0 +1,171 @@ +import { BinaryReader, BinaryWriter } from "../binary"; +export declare enum ScalarType { + SCALAR_TYPE_UNSPECIFIED = 0, + SCALAR_TYPE_STRING = 1, + SCALAR_TYPE_BYTES = 2, + UNRECOGNIZED = -1 +} +export declare const ScalarTypeSDKType: typeof ScalarType; +export declare const ScalarTypeAmino: typeof ScalarType; +export declare function scalarTypeFromJSON(object: any): ScalarType; +export declare function scalarTypeToJSON(object: ScalarType): string; +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptor { + /** + * name is the name of the interface. It should be a short-name (without + * a period) such that the fully qualified name of the interface will be + * package.name, ex. for the package a.b and interface named C, the + * fully-qualified name will be a.b.C. + */ + name: string; + /** + * description is a human-readable description of the interface and its + * purpose. + */ + description: string; +} +export interface InterfaceDescriptorProtoMsg { + typeUrl: "/cosmos_proto.InterfaceDescriptor"; + value: Uint8Array; +} +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptorAmino { + /** + * name is the name of the interface. It should be a short-name (without + * a period) such that the fully qualified name of the interface will be + * package.name, ex. for the package a.b and interface named C, the + * fully-qualified name will be a.b.C. + */ + name?: string; + /** + * description is a human-readable description of the interface and its + * purpose. + */ + description?: string; +} +export interface InterfaceDescriptorAminoMsg { + type: "/cosmos_proto.InterfaceDescriptor"; + value: InterfaceDescriptorAmino; +} +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptorSDKType { + name: string; + description: string; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptor { + /** + * name is the name of the scalar. It should be a short-name (without + * a period) such that the fully qualified name of the scalar will be + * package.name, ex. for the package a.b and scalar named C, the + * fully-qualified name will be a.b.C. + */ + name: string; + /** + * description is a human-readable description of the scalar and its + * encoding format. For instance a big integer or decimal scalar should + * specify precisely the expected encoding format. + */ + description: string; + /** + * field_type is the type of field with which this scalar can be used. + * Scalars can be used with one and only one type of field so that + * encoding standards and simple and clear. Currently only string and + * bytes fields are supported for scalars. + */ + fieldType: ScalarType[]; +} +export interface ScalarDescriptorProtoMsg { + typeUrl: "/cosmos_proto.ScalarDescriptor"; + value: Uint8Array; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptorAmino { + /** + * name is the name of the scalar. It should be a short-name (without + * a period) such that the fully qualified name of the scalar will be + * package.name, ex. for the package a.b and scalar named C, the + * fully-qualified name will be a.b.C. + */ + name?: string; + /** + * description is a human-readable description of the scalar and its + * encoding format. For instance a big integer or decimal scalar should + * specify precisely the expected encoding format. + */ + description?: string; + /** + * field_type is the type of field with which this scalar can be used. + * Scalars can be used with one and only one type of field so that + * encoding standards and simple and clear. Currently only string and + * bytes fields are supported for scalars. + */ + field_type?: ScalarType[]; +} +export interface ScalarDescriptorAminoMsg { + type: "/cosmos_proto.ScalarDescriptor"; + value: ScalarDescriptorAmino; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptorSDKType { + name: string; + description: string; + field_type: ScalarType[]; +} +export declare const InterfaceDescriptor: { + typeUrl: string; + encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; + fromPartial(object: Partial): InterfaceDescriptor; + fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; + toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; + fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; + fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; + toProto(message: InterfaceDescriptor): Uint8Array; + toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; +}; +export declare const ScalarDescriptor: { + typeUrl: string; + encode(message: ScalarDescriptor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor; + fromPartial(object: Partial): ScalarDescriptor; + fromAmino(object: ScalarDescriptorAmino): ScalarDescriptor; + toAmino(message: ScalarDescriptor): ScalarDescriptorAmino; + fromAminoMsg(object: ScalarDescriptorAminoMsg): ScalarDescriptor; + fromProtoMsg(message: ScalarDescriptorProtoMsg): ScalarDescriptor; + toProto(message: ScalarDescriptor): Uint8Array; + toProtoMsg(message: ScalarDescriptor): ScalarDescriptorProtoMsg; +}; diff --git a/packages/api/dist/cosmos_proto/cosmos.js b/packages/api/dist/cosmos_proto/cosmos.js new file mode 100644 index 00000000..0347c7ae --- /dev/null +++ b/packages/api/dist/cosmos_proto/cosmos.js @@ -0,0 +1,221 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScalarDescriptor = exports.InterfaceDescriptor = exports.scalarTypeToJSON = exports.scalarTypeFromJSON = exports.ScalarTypeAmino = exports.ScalarTypeSDKType = exports.ScalarType = void 0; +//@ts-nocheck +const binary_1 = require("../binary"); +var ScalarType; +(function (ScalarType) { + ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED"; + ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING"; + ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES"; + ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ScalarType || (exports.ScalarType = ScalarType = {})); +exports.ScalarTypeSDKType = ScalarType; +exports.ScalarTypeAmino = ScalarType; +function scalarTypeFromJSON(object) { + switch (object) { + case 0: + case "SCALAR_TYPE_UNSPECIFIED": + return ScalarType.SCALAR_TYPE_UNSPECIFIED; + case 1: + case "SCALAR_TYPE_STRING": + return ScalarType.SCALAR_TYPE_STRING; + case 2: + case "SCALAR_TYPE_BYTES": + return ScalarType.SCALAR_TYPE_BYTES; + case -1: + case "UNRECOGNIZED": + default: + return ScalarType.UNRECOGNIZED; + } +} +exports.scalarTypeFromJSON = scalarTypeFromJSON; +function scalarTypeToJSON(object) { + switch (object) { + case ScalarType.SCALAR_TYPE_UNSPECIFIED: + return "SCALAR_TYPE_UNSPECIFIED"; + case ScalarType.SCALAR_TYPE_STRING: + return "SCALAR_TYPE_STRING"; + case ScalarType.SCALAR_TYPE_BYTES: + return "SCALAR_TYPE_BYTES"; + case ScalarType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.scalarTypeToJSON = scalarTypeToJSON; +function createBaseInterfaceDescriptor() { + return { + name: "", + description: "" + }; +} +exports.InterfaceDescriptor = { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return exports.InterfaceDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.InterfaceDescriptor.decode(message.value); + }, + toProto(message) { + return exports.InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + value: exports.InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseScalarDescriptor() { + return { + name: "", + description: "", + fieldType: [] + }; +} +exports.ScalarDescriptor = { + typeUrl: "/cosmos_proto.ScalarDescriptor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + writer.uint32(26).fork(); + for (const v of message.fieldType) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseScalarDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.fieldType.push(reader.int32()); + } + } + else { + message.fieldType.push(reader.int32()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseScalarDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.fieldType = object.fieldType?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseScalarDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.fieldType = object.field_type?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + if (message.fieldType) { + obj.field_type = message.fieldType.map(e => e); + } + else { + obj.field_type = message.fieldType; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ScalarDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ScalarDescriptor.decode(message.value); + }, + toProto(message) { + return exports.ScalarDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos_proto.ScalarDescriptor", + value: exports.ScalarDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/amino/amino.js b/packages/api/dist/esm/amino/amino.js new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/esm/amino/amino.js @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/esm/amino/bundle.js b/packages/api/dist/esm/amino/bundle.js new file mode 100644 index 00000000..903af984 --- /dev/null +++ b/packages/api/dist/esm/amino/bundle.js @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _0 from "./amino"; +export const amino = { + ..._0 +}; diff --git a/packages/api/dist/esm/binary.js b/packages/api/dist/esm/binary.js new file mode 100644 index 00000000..c6cb1ff0 --- /dev/null +++ b/packages/api/dist/esm/binary.js @@ -0,0 +1,366 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +// Copyright (c) 2016, Daniel Wirtz All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// --- +// Code generated by the command line utilities is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. +import { utf8Length, utf8Read, utf8Write } from "./utf8"; +import { int64ToString, readInt32, readUInt32, uInt64ToString, varint32read, varint64read, writeVarint32, writeVarint64, int64FromString, int64Length, writeFixed32, writeByte, zzDecode, zzEncode, } from "./varint"; +export var WireType; +(function (WireType) { + WireType[WireType["Varint"] = 0] = "Varint"; + WireType[WireType["Fixed64"] = 1] = "Fixed64"; + WireType[WireType["Bytes"] = 2] = "Bytes"; + WireType[WireType["Fixed32"] = 5] = "Fixed32"; +})(WireType || (WireType = {})); +export class BinaryReader { + buf; + pos; + type; + len; + assertBounds() { + if (this.pos > this.len) + throw new RangeError("premature EOF"); + } + constructor(buf) { + this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); + this.pos = 0; + this.type = 0; + this.len = this.buf.length; + } + tag() { + const tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; + if (fieldNo <= 0 || wireType < 0 || wireType > 5) + throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); + return [fieldNo, wireType, tag]; + } + skip(length) { + if (typeof length === "number") { + if (this.pos + length > this.len) + throw indexOutOfRange(this, length); + this.pos += length; + } + else { + do { + if (this.pos >= this.len) + throw indexOutOfRange(this); + } while (this.buf[this.pos++] & 128); + } + return this; + } + skipType(wireType) { + switch (wireType) { + case WireType.Varint: + this.skip(); + break; + case WireType.Fixed64: + this.skip(8); + break; + case WireType.Bytes: + this.skip(this.uint32()); + break; + case 3: + while ((wireType = this.uint32() & 7) !== 4) { + this.skipType(wireType); + } + break; + case WireType.Fixed32: + this.skip(4); + break; + /* istanbul ignore next */ + default: + throw Error("invalid wire type " + wireType + " at offset " + this.pos); + } + return this; + } + uint32() { + return varint32read.bind(this)(); + } + int32() { + return this.uint32() | 0; + } + sint32() { + const num = this.uint32(); + return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding + } + fixed32() { + const val = readUInt32(this.buf, this.pos); + this.pos += 4; + return val; + } + sfixed32() { + const val = readInt32(this.buf, this.pos); + this.pos += 4; + return val; + } + int64() { + const [lo, hi] = varint64read.bind(this)(); + return BigInt(int64ToString(lo, hi)); + } + uint64() { + const [lo, hi] = varint64read.bind(this)(); + return BigInt(uInt64ToString(lo, hi)); + } + sint64() { + let [lo, hi] = varint64read.bind(this)(); + // zig zag + [lo, hi] = zzDecode(lo, hi); + return BigInt(int64ToString(lo, hi)); + } + fixed64() { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt(uInt64ToString(lo, hi)); + } + sfixed64() { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt(int64ToString(lo, hi)); + } + float() { + throw new Error("float not supported"); + } + double() { + throw new Error("double not supported"); + } + bool() { + const [lo, hi] = varint64read.bind(this)(); + return lo !== 0 || hi !== 0; + } + bytes() { + const len = this.uint32(), start = this.pos; + this.pos += len; + this.assertBounds(); + return this.buf.subarray(start, start + len); + } + string() { + const bytes = this.bytes(); + return utf8Read(bytes, 0, bytes.length); + } +} +class Op { + fn; + len; + val; + next; + constructor(fn, len, val) { + this.fn = fn; + this.len = len; + this.val = val; + } + proceed(buf, pos) { + if (this.fn) { + this.fn(this.val, buf, pos); + } + } +} +class State { + head; + tail; + len; + next; + constructor(writer) { + this.head = writer.head; + this.tail = writer.tail; + this.len = writer.len; + this.next = writer.states; + } +} +export class BinaryWriter { + len = 0; + head; + tail; + states; + constructor() { + this.head = new Op(null, 0, 0); + this.tail = this.head; + this.states = null; + } + static create() { + return new BinaryWriter(); + } + static alloc(size) { + if (typeof Uint8Array !== "undefined") { + return pool((size) => new Uint8Array(size), Uint8Array.prototype.subarray)(size); + } + else { + return new Array(size); + } + } + _push(fn, len, val) { + this.tail = this.tail.next = new Op(fn, len, val); + this.len += len; + return this; + } + finish() { + let head = this.head.next, pos = 0; + const buf = BinaryWriter.alloc(this.len); + while (head) { + head.proceed(buf, pos); + pos += head.len; + head = head.next; + } + return buf; + } + fork() { + this.states = new State(this); + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + return this; + } + reset() { + if (this.states) { + this.head = this.states.head; + this.tail = this.states.tail; + this.len = this.states.len; + this.states = this.states.next; + } + else { + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + } + return this; + } + ldelim() { + const head = this.head, tail = this.tail, len = this.len; + this.reset().uint32(len); + if (len) { + this.tail.next = head.next; // skip noop + this.tail = tail; + this.len += len; + } + return this; + } + tag(fieldNo, type) { + return this.uint32(((fieldNo << 3) | type) >>> 0); + } + uint32(value) { + this.len += (this.tail = this.tail.next = + new Op(writeVarint32, (value = value >>> 0) < 128 + ? 1 + : value < 16384 + ? 2 + : value < 2097152 + ? 3 + : value < 268435456 + ? 4 + : 5, value)).len; + return this; + } + int32(value) { + return value < 0 + ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec + : this.uint32(value); + } + sint32(value) { + return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); + } + int64(value) { + const { lo, hi } = int64FromString(value.toString()); + return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); + } + // uint64 is the same with int64 + uint64 = BinaryWriter.prototype.int64; + sint64(value) { + let { lo, hi } = int64FromString(value.toString()); + // zig zag + [lo, hi] = zzEncode(lo, hi); + return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); + } + fixed64(value) { + const { lo, hi } = int64FromString(value.toString()); + return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi); + } + // sfixed64 is the same with fixed64 + sfixed64 = BinaryWriter.prototype.fixed64; + bool(value) { + return this._push(writeByte, 1, value ? 1 : 0); + } + fixed32(value) { + return this._push(writeFixed32, 4, value >>> 0); + } + // sfixed32 is the same with fixed32 + sfixed32 = BinaryWriter.prototype.fixed32; + float(value) { + throw new Error("float not supported" + value); + } + double(value) { + throw new Error("double not supported" + value); + } + bytes(value) { + const len = value.length >>> 0; + if (!len) + return this._push(writeByte, 1, 0); + return this.uint32(len)._push(writeBytes, len, value); + } + string(value) { + const len = utf8Length(value); + return len + ? this.uint32(len)._push(utf8Write, len, value) + : this._push(writeByte, 1, 0); + } +} +function writeBytes(val, buf, pos) { + if (typeof Uint8Array !== "undefined") { + buf.set(val, pos); + } + else { + for (let i = 0; i < val.length; ++i) + buf[pos + i] = val[i]; + } +} +function pool(alloc, slice, size) { + const SIZE = size || 8192; + const MAX = SIZE >>> 1; + let slab = null; + let offset = SIZE; + return function pool_alloc(size) { + if (size < 1 || size > MAX) + return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + const buf = slice.call(slab, offset, (offset += size)); + if (offset & 7) + // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} +function indexOutOfRange(reader, writeLength) { + return RangeError("index out of range: " + + reader.pos + + " + " + + (writeLength || 1) + + " > " + + reader.len); +} diff --git a/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js b/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js new file mode 100644 index 00000000..ef3c8601 --- /dev/null +++ b/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js @@ -0,0 +1,58 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseModule() { + return {}; +} +export const Module = { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseModule(); + return message; + }, + fromAmino(_) { + const message = createBaseModule(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return Module.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Module.decode(message.value); + }, + toProto(message) { + return Module.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + value: Module.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/app/v1alpha1/module.js b/packages/api/dist/esm/cosmos/app/v1alpha1/module.js new file mode 100644 index 00000000..0364c3db --- /dev/null +++ b/packages/api/dist/esm/cosmos/app/v1alpha1/module.js @@ -0,0 +1,251 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseModuleDescriptor() { + return { + goImport: "", + usePackage: [], + canMigrateFrom: [] + }; +} +export const ModuleDescriptor = { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.goImport !== "") { + writer.uint32(10).string(message.goImport); + } + for (const v of message.usePackage) { + PackageReference.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.canMigrateFrom) { + MigrateFromInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.goImport = reader.string(); + break; + case 2: + message.usePackage.push(PackageReference.decode(reader, reader.uint32())); + break; + case 3: + message.canMigrateFrom.push(MigrateFromInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleDescriptor(); + message.goImport = object.goImport ?? ""; + message.usePackage = object.usePackage?.map(e => PackageReference.fromPartial(e)) || []; + message.canMigrateFrom = object.canMigrateFrom?.map(e => MigrateFromInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModuleDescriptor(); + if (object.go_import !== undefined && object.go_import !== null) { + message.goImport = object.go_import; + } + message.usePackage = object.use_package?.map(e => PackageReference.fromAmino(e)) || []; + message.canMigrateFrom = object.can_migrate_from?.map(e => MigrateFromInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.go_import = message.goImport === "" ? undefined : message.goImport; + if (message.usePackage) { + obj.use_package = message.usePackage.map(e => e ? PackageReference.toAmino(e) : undefined); + } + else { + obj.use_package = message.usePackage; + } + if (message.canMigrateFrom) { + obj.can_migrate_from = message.canMigrateFrom.map(e => e ? MigrateFromInfo.toAmino(e) : undefined); + } + else { + obj.can_migrate_from = message.canMigrateFrom; + } + return obj; + }, + fromAminoMsg(object) { + return ModuleDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleDescriptor", + value: ModuleDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModuleDescriptor.decode(message.value); + }, + toProto(message) { + return ModuleDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + value: ModuleDescriptor.encode(message).finish() + }; + } +}; +function createBasePackageReference() { + return { + name: "", + revision: 0 + }; +} +export const PackageReference = { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.revision !== 0) { + writer.uint32(16).uint32(message.revision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePackageReference(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.revision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePackageReference(); + message.name = object.name ?? ""; + message.revision = object.revision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBasePackageReference(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.revision !== undefined && object.revision !== null) { + message.revision = object.revision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.revision = message.revision === 0 ? undefined : message.revision; + return obj; + }, + fromAminoMsg(object) { + return PackageReference.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PackageReference", + value: PackageReference.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PackageReference.decode(message.value); + }, + toProto(message) { + return PackageReference.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + value: PackageReference.encode(message).finish() + }; + } +}; +function createBaseMigrateFromInfo() { + return { + module: "" + }; +} +export const MigrateFromInfo = { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.module !== "") { + writer.uint32(10).string(message.module); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMigrateFromInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.module = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMigrateFromInfo(); + message.module = object.module ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMigrateFromInfo(); + if (object.module !== undefined && object.module !== null) { + message.module = object.module; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.module = message.module === "" ? undefined : message.module; + return obj; + }, + fromAminoMsg(object) { + return MigrateFromInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MigrateFromInfo", + value: MigrateFromInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MigrateFromInfo.decode(message.value); + }, + toProto(message) { + return MigrateFromInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + value: MigrateFromInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js b/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js new file mode 100644 index 00000000..32b2b1d5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js @@ -0,0 +1,323 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseBaseAccount() { + return { + $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + address: "", + pubKey: undefined, + accountNumber: BigInt(0), + sequence: BigInt(0) + }; +} +export const BaseAccount = { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pubKey !== undefined) { + Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(32).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pubKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.accountNumber = reader.uint64(); + break; + case 4: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBaseAccount(); + message.address = object.address ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBaseAccount(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = Any.fromAmino(object.pub_key); + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BaseAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BaseAccount", + value: BaseAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BaseAccount.decode(message.value); + }, + toProto(message) { + return BaseAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: BaseAccount.encode(message).finish() + }; + } +}; +function createBaseModuleAccount() { + return { + $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + baseAccount: undefined, + name: "", + permissions: [] + }; +} +export const ModuleAccount = { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseAccount !== undefined) { + BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + for (const v of message.permissions) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; + message.name = object.name ?? ""; + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModuleAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = BaseAccount.fromAmino(object.base_account); + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; + obj.name = message.name === "" ? undefined : message.name; + if (message.permissions) { + obj.permissions = message.permissions.map(e => e); + } + else { + obj.permissions = message.permissions; + } + return obj; + }, + fromAminoMsg(object) { + return ModuleAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleAccount", + value: ModuleAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModuleAccount.decode(message.value); + }, + toProto(message) { + return ModuleAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: ModuleAccount.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + maxMemoCharacters: BigInt(0), + txSigLimit: BigInt(0), + txSizeCostPerByte: BigInt(0), + sigVerifyCostEd25519: BigInt(0), + sigVerifyCostSecp256k1: BigInt(0) + }; +} +export const Params = { + typeUrl: "/cosmos.auth.v1beta1.Params", + encode(message, writer = BinaryWriter.create()) { + if (message.maxMemoCharacters !== BigInt(0)) { + writer.uint32(8).uint64(message.maxMemoCharacters); + } + if (message.txSigLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.txSigLimit); + } + if (message.txSizeCostPerByte !== BigInt(0)) { + writer.uint32(24).uint64(message.txSizeCostPerByte); + } + if (message.sigVerifyCostEd25519 !== BigInt(0)) { + writer.uint32(32).uint64(message.sigVerifyCostEd25519); + } + if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { + writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxMemoCharacters = reader.uint64(); + break; + case 2: + message.txSigLimit = reader.uint64(); + break; + case 3: + message.txSizeCostPerByte = reader.uint64(); + break; + case 4: + message.sigVerifyCostEd25519 = reader.uint64(); + break; + case 5: + message.sigVerifyCostSecp256k1 = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); + message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); + message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); + message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); + message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { + message.maxMemoCharacters = BigInt(object.max_memo_characters); + } + if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { + message.txSigLimit = BigInt(object.tx_sig_limit); + } + if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { + message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); + } + if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { + message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); + } + if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { + message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; + obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; + obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; + obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; + obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js new file mode 100644 index 00000000..59cec461 --- /dev/null +++ b/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js @@ -0,0 +1,88 @@ +//@ts-nocheck +import { Params } from "./auth"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + params: Params.fromPartial({}), + accounts: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.accounts) { + Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.accounts.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.accounts = object.accounts?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.js new file mode 100644 index 00000000..fc2d3b77 --- /dev/null +++ b/packages/api/dist/esm/cosmos/auth/v1beta1/query.js @@ -0,0 +1,1291 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Any } from "../../../google/protobuf/any"; +import { Params, BaseAccount, ModuleAccount } from "./auth"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseQueryAccountsRequest() { + return { + pagination: undefined + }; +} +export const QueryAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountsRequest", + value: QueryAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountsRequest.decode(message.value); + }, + toProto(message) { + return QueryAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + value: QueryAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountsResponse() { + return { + accounts: [], + pagination: undefined + }; +} +export const QueryAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.accounts) { + Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push(Any.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => AccountI_FromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? AccountI_ToAmino(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountsResponse", + value: QueryAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountsResponse.decode(message.value); + }, + toProto(message) { + return QueryAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + value: QueryAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountRequest() { + return { + address: "" + }; +} +export const QueryAccountRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountRequest", + value: QueryAccountRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountRequest.decode(message.value); + }, + toProto(message) { + return QueryAccountRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + value: QueryAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountResponse() { + return { + account: undefined + }; +} +export const QueryAccountResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.account !== undefined) { + Any.encode(message.account, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = AccountI_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountResponse(); + message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = AccountI_FromAmino(object.account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account ? AccountI_ToAmino(message.account) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountResponse", + value: QueryAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountResponse.decode(message.value); + }, + toProto(message) { + return QueryAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + value: QueryAccountResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsRequest() { + return {}; +} +export const QueryModuleAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryModuleAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountsRequest", + value: QueryModuleAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleAccountsRequest.decode(message.value); + }, + toProto(message) { + return QueryModuleAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + value: QueryModuleAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsResponse() { + return { + accounts: [] + }; +} +export const QueryModuleAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.accounts) { + Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => ModuleAccountI_FromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? ModuleAccountI_ToAmino(e) : undefined); + } + else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object) { + return QueryModuleAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountsResponse", + value: QueryModuleAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleAccountsResponse.decode(message.value); + }, + toProto(message) { + return QueryModuleAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + value: QueryModuleAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameRequest() { + return { + name: "" + }; +} +export const QueryModuleAccountByNameRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountByNameRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountByNameRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object) { + return QueryModuleAccountByNameRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountByNameRequest", + value: QueryModuleAccountByNameRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleAccountByNameRequest.decode(message.value); + }, + toProto(message) { + return QueryModuleAccountByNameRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + value: QueryModuleAccountByNameRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameResponse() { + return { + account: undefined + }; +} +export const QueryModuleAccountByNameResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.account !== undefined) { + Any.encode(message.account, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = ModuleAccountI_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleAccountByNameResponse(); + message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleAccountByNameResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = ModuleAccountI_FromAmino(object.account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account ? ModuleAccountI_ToAmino(message.account) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryModuleAccountByNameResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleAccountByNameResponse", + value: QueryModuleAccountByNameResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleAccountByNameResponse.decode(message.value); + }, + toProto(message) { + return QueryModuleAccountByNameResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + value: QueryModuleAccountByNameResponse.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixRequest() { + return {}; +} +export const Bech32PrefixRequest = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseBech32PrefixRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseBech32PrefixRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return Bech32PrefixRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Bech32PrefixRequest", + value: Bech32PrefixRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Bech32PrefixRequest.decode(message.value); + }, + toProto(message) { + return Bech32PrefixRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + value: Bech32PrefixRequest.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixResponse() { + return { + bech32Prefix: "" + }; +} +export const Bech32PrefixResponse = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.bech32Prefix !== "") { + writer.uint32(10).string(message.bech32Prefix); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32Prefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBech32PrefixResponse(); + message.bech32Prefix = object.bech32Prefix ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBech32PrefixResponse(); + if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { + message.bech32Prefix = object.bech32_prefix; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; + return obj; + }, + fromAminoMsg(object) { + return Bech32PrefixResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Bech32PrefixResponse", + value: Bech32PrefixResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Bech32PrefixResponse.decode(message.value); + }, + toProto(message) { + return Bech32PrefixResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + value: Bech32PrefixResponse.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringRequest() { + return { + addressBytes: new Uint8Array() + }; +} +export const AddressBytesToStringRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressBytesToStringRequest(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAddressBytesToStringRequest(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = bytesFromBase64(object.address_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AddressBytesToStringRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressBytesToStringRequest", + value: AddressBytesToStringRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AddressBytesToStringRequest.decode(message.value); + }, + toProto(message) { + return AddressBytesToStringRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + value: AddressBytesToStringRequest.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringResponse() { + return { + addressString: "" + }; +} +export const AddressBytesToStringResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressBytesToStringResponse(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAddressBytesToStringResponse(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object) { + return AddressBytesToStringResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressBytesToStringResponse", + value: AddressBytesToStringResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AddressBytesToStringResponse.decode(message.value); + }, + toProto(message) { + return AddressBytesToStringResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + value: AddressBytesToStringResponse.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesRequest() { + return { + addressString: "" + }; +} +export const AddressStringToBytesRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressStringToBytesRequest(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAddressStringToBytesRequest(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object) { + return AddressStringToBytesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressStringToBytesRequest", + value: AddressStringToBytesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AddressStringToBytesRequest.decode(message.value); + }, + toProto(message) { + return AddressStringToBytesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + value: AddressStringToBytesRequest.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesResponse() { + return { + addressBytes: new Uint8Array() + }; +} +export const AddressStringToBytesResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAddressStringToBytesResponse(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAddressStringToBytesResponse(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = bytesFromBase64(object.address_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AddressStringToBytesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AddressStringToBytesResponse", + value: AddressStringToBytesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AddressStringToBytesResponse.decode(message.value); + }, + toProto(message) { + return AddressStringToBytesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + value: AddressStringToBytesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDRequest() { + return { + id: BigInt(0) + }; +} +export const QueryAccountAddressByIDRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).int64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountAddressByIDRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountAddressByIDRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountAddressByIDRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountAddressByIDRequest", + value: QueryAccountAddressByIDRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountAddressByIDRequest.decode(message.value); + }, + toProto(message) { + return QueryAccountAddressByIDRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + value: QueryAccountAddressByIDRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDResponse() { + return { + accountAddress: "" + }; +} +export const QueryAccountAddressByIDResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.accountAddress !== "") { + writer.uint32(10).string(message.accountAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAccountAddressByIDResponse(); + message.accountAddress = object.accountAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAccountAddressByIDResponse(); + if (object.account_address !== undefined && object.account_address !== null) { + message.accountAddress = object.account_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryAccountAddressByIDResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAccountAddressByIDResponse", + value: QueryAccountAddressByIDResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAccountAddressByIDResponse.decode(message.value); + }, + toProto(message) { + return QueryAccountAddressByIDResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + value: QueryAccountAddressByIDResponse.encode(message).finish() + }; + } +}; +export const AccountI_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return BaseAccount.decode(data.value); + default: + return data; + } +}; +export const AccountI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BaseAccount": + return Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: BaseAccount.encode(BaseAccount.fromPartial(BaseAccount.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const AccountI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return { + type: "cosmos-sdk/BaseAccount", + value: BaseAccount.toAmino(BaseAccount.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; +export const ModuleAccountI_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return ModuleAccount.decode(data.value); + default: + return data; + } +}; +export const ModuleAccountI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ModuleAccount": + return Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: ModuleAccount.encode(ModuleAccount.fromPartial(ModuleAccount.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const ModuleAccountI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return { + type: "cosmos-sdk/ModuleAccount", + value: ModuleAccount.toAmino(ModuleAccount.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js new file mode 100644 index 00000000..05492486 --- /dev/null +++ b/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js @@ -0,0 +1,82 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + /* Accounts returns all the existing accounts + + Since: cosmos-sdk 0.43 */ + async accounts(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/auth/v1beta1/accounts`; + return await this.req.get(endpoint, options); + } + /* Account returns account details based on address. */ + async account(params) { + const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; + return await this.req.get(endpoint); + } + /* AccountAddressByID returns account address based on account number. + + Since: cosmos-sdk 0.46.2 */ + async accountAddressByID(params) { + const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; + return await this.req.get(endpoint); + } + /* Params queries all parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ModuleAccounts returns all the existing module accounts. + + Since: cosmos-sdk 0.46 */ + async moduleAccounts(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/module_accounts`; + return await this.req.get(endpoint); + } + /* ModuleAccountByName returns the module account info by module name */ + async moduleAccountByName(params) { + const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; + return await this.req.get(endpoint); + } + /* Bech32Prefix queries bech32Prefix + + Since: cosmos-sdk 0.46 */ + async bech32Prefix(_params = {}) { + const endpoint = `cosmos/auth/v1beta1/bech32`; + return await this.req.get(endpoint); + } + /* AddressBytesToString converts Account Address bytes to string + + Since: cosmos-sdk 0.46 */ + async addressBytesToString(params) { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; + return await this.req.get(endpoint); + } + /* AddressStringToBytes converts Address string to bytes + + Since: cosmos-sdk 0.46 */ + async addressStringToBytes(params) { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..74d204ef --- /dev/null +++ b/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js @@ -0,0 +1,98 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + accounts(request = { + pagination: undefined + }) { + const data = QueryAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); + return promise.then(data => QueryAccountsResponse.decode(new BinaryReader(data))); + } + account(request) { + const data = QueryAccountRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); + return promise.then(data => QueryAccountResponse.decode(new BinaryReader(data))); + } + accountAddressByID(request) { + const data = QueryAccountAddressByIDRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); + return promise.then(data => QueryAccountAddressByIDResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + moduleAccounts(request = {}) { + const data = QueryModuleAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); + return promise.then(data => QueryModuleAccountsResponse.decode(new BinaryReader(data))); + } + moduleAccountByName(request) { + const data = QueryModuleAccountByNameRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); + return promise.then(data => QueryModuleAccountByNameResponse.decode(new BinaryReader(data))); + } + bech32Prefix(request = {}) { + const data = Bech32PrefixRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); + return promise.then(data => Bech32PrefixResponse.decode(new BinaryReader(data))); + } + addressBytesToString(request) { + const data = AddressBytesToStringRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); + return promise.then(data => AddressBytesToStringResponse.decode(new BinaryReader(data))); + } + addressStringToBytes(request) { + const data = AddressStringToBytesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); + return promise.then(data => AddressStringToBytesResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + accounts(request) { + return queryService.accounts(request); + }, + account(request) { + return queryService.account(request); + }, + accountAddressByID(request) { + return queryService.accountAddressByID(request); + }, + params(request) { + return queryService.params(request); + }, + moduleAccounts(request) { + return queryService.moduleAccounts(request); + }, + moduleAccountByName(request) { + return queryService.moduleAccountByName(request); + }, + bech32Prefix(request) { + return queryService.bech32Prefix(request); + }, + addressBytesToString(request) { + return queryService.addressBytesToString(request); + }, + addressStringToBytes(request) { + return queryService.addressStringToBytes(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js b/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js new file mode 100644 index 00000000..5f0e3477 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js @@ -0,0 +1,391 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { SendAuthorization } from "../../bank/v1beta1/authz"; +import { StakeAuthorization } from "../../staking/v1beta1/authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseGenericAuthorization() { + return { + $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + msg: "" + }; +} +export const GenericAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + encode(message, writer = BinaryWriter.create()) { + if (message.msg !== "") { + writer.uint32(10).string(message.msg); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenericAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenericAuthorization(); + message.msg = object.msg ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseGenericAuthorization(); + if (object.msg !== undefined && object.msg !== null) { + message.msg = object.msg; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg = message.msg === "" ? undefined : message.msg; + return obj; + }, + fromAminoMsg(object) { + return GenericAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenericAuthorization", + value: GenericAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenericAuthorization.decode(message.value); + }, + toProto(message) { + return GenericAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: GenericAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrant() { + return { + authorization: undefined, + expiration: undefined + }; +} +export const Grant = { + typeUrl: "/cosmos.authz.v1beta1.Grant", + encode(message, writer = BinaryWriter.create()) { + if (message.authorization !== undefined) { + Any.encode(message.authorization, writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization = Authorization_InterfaceDecoder(reader); + break; + case 2: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrant(); + message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrant(); + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = Authorization_FromAmino(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authorization = message.authorization ? Authorization_ToAmino(message.authorization) : undefined; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Grant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Grant", + value: Grant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Grant.decode(message.value); + }, + toProto(message) { + return Grant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.Grant", + value: Grant.encode(message).finish() + }; + } +}; +function createBaseGrantAuthorization() { + return { + granter: "", + grantee: "", + authorization: undefined, + expiration: undefined + }; +} +export const GrantAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.authorization !== undefined) { + Any.encode(message.authorization, writer.uint32(26).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.authorization = Authorization_InterfaceDecoder(reader); + break; + case 4: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrantAuthorization(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrantAuthorization(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = Authorization_FromAmino(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.authorization = message.authorization ? Authorization_ToAmino(message.authorization) : undefined; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GrantAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GrantAuthorization", + value: GrantAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GrantAuthorization.decode(message.value); + }, + toProto(message) { + return GrantAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + value: GrantAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrantQueueItem() { + return { + msgTypeUrls: [] + }; +} +export const GrantQueueItem = { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.msgTypeUrls) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantQueueItem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrls.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.msgTypeUrls) { + obj.msg_type_urls = message.msgTypeUrls.map(e => e); + } + else { + obj.msg_type_urls = message.msgTypeUrls; + } + return obj; + }, + fromAminoMsg(object) { + return GrantQueueItem.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GrantQueueItem", + value: GrantQueueItem.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GrantQueueItem.decode(message.value); + }, + toProto(message) { + return GrantQueueItem.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + value: GrantQueueItem.encode(message).finish() + }; + } +}; +export const Authorization_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return GenericAuthorization.decode(data.value); + case "/cosmos.bank.v1beta1.SendAuthorization": + return SendAuthorization.decode(data.value); + case "/cosmos.staking.v1beta1.StakeAuthorization": + return StakeAuthorization.decode(data.value); + default: + return data; + } +}; +export const Authorization_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/GenericAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: GenericAuthorization.encode(GenericAuthorization.fromPartial(GenericAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/SendAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: SendAuthorization.encode(SendAuthorization.fromPartial(SendAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/StakeAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: StakeAuthorization.encode(StakeAuthorization.fromPartial(StakeAuthorization.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Authorization_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return { + type: "cosmos-sdk/GenericAuthorization", + value: GenericAuthorization.toAmino(GenericAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.bank.v1beta1.SendAuthorization": + return { + type: "cosmos-sdk/SendAuthorization", + value: SendAuthorization.toAmino(SendAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.staking.v1beta1.StakeAuthorization": + return { + type: "cosmos-sdk/StakeAuthorization", + value: StakeAuthorization.toAmino(StakeAuthorization.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/event.js b/packages/api/dist/esm/cosmos/authz/v1beta1/event.js new file mode 100644 index 00000000..7b8f9994 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/event.js @@ -0,0 +1,188 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseEventGrant() { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +export const EventGrant = { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + encode(message, writer = BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventGrant(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventGrant(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return EventGrant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventGrant", + value: EventGrant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventGrant.decode(message.value); + }, + toProto(message) { + return EventGrant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + value: EventGrant.encode(message).finish() + }; + } +}; +function createBaseEventRevoke() { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +export const EventRevoke = { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + encode(message, writer = BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRevoke(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRevoke(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return EventRevoke.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventRevoke", + value: EventRevoke.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventRevoke.decode(message.value); + }, + toProto(message) { + return EventRevoke.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + value: EventRevoke.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js new file mode 100644 index 00000000..5a25a3be --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js @@ -0,0 +1,75 @@ +//@ts-nocheck +import { GrantAuthorization } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + authorization: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.authorization) { + GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => GrantAuthorization.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => GrantAuthorization.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.authorization) { + obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.authorization = message.authorization; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.js new file mode 100644 index 00000000..312b03a9 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/query.js @@ -0,0 +1,523 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Grant, GrantAuthorization } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryGrantsRequest() { + return { + granter: "", + grantee: "", + msgTypeUrl: "", + pagination: undefined + }; +} +export const QueryGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGrantsRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGrantsRequest", + value: QueryGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGrantsRequest.decode(message.value); + }, + toProto(message) { + return QueryGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + value: QueryGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.grants) { + Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? Grant.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGrantsResponse", + value: QueryGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGrantsResponse.decode(message.value); + }, + toProto(message) { + return QueryGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + value: QueryGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsRequest() { + return { + granter: "", + pagination: undefined + }; +} +export const QueryGranterGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranterGrantsRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranterGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGranterGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranterGrantsRequest", + value: QueryGranterGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGranterGrantsRequest.decode(message.value); + }, + toProto(message) { + return QueryGranterGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + value: QueryGranterGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGranterGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.grants) { + GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGranterGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranterGrantsResponse", + value: QueryGranterGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGranterGrantsResponse.decode(message.value); + }, + toProto(message) { + return QueryGranterGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + value: QueryGranterGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsRequest() { + return { + grantee: "", + pagination: undefined + }; +} +export const QueryGranteeGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranteeGrantsRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranteeGrantsRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGranteeGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranteeGrantsRequest", + value: QueryGranteeGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGranteeGrantsRequest.decode(message.value); + }, + toProto(message) { + return QueryGranteeGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + value: QueryGranteeGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsResponse() { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGranteeGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.grants) { + GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } + else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGranteeGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGranteeGrantsResponse", + value: QueryGranteeGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGranteeGrantsResponse.decode(message.value); + }, + toProto(message) { + return QueryGranteeGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + value: QueryGranteeGrantsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js new file mode 100644 index 00000000..650ec7af --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js @@ -0,0 +1,57 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + /* Returns list of `Authorization`, granted to the grantee by the granter. */ + async grants(params) { + const options = { + params: {} + }; + if (typeof params?.granter !== "undefined") { + options.params.granter = params.granter; + } + if (typeof params?.grantee !== "undefined") { + options.params.grantee = params.grantee; + } + if (typeof params?.msgTypeUrl !== "undefined") { + options.params.msg_type_url = params.msgTypeUrl; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants`; + return await this.req.get(endpoint, options); + } + /* GranterGrants returns list of `GrantAuthorization`, granted by granter. + + Since: cosmos-sdk 0.46 */ + async granterGrants(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; + return await this.req.get(endpoint, options); + } + /* GranteeGrants returns a list of `GrantAuthorization` by grantee. + + Since: cosmos-sdk 0.46 */ + async granteeGrants(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; + return await this.req.get(endpoint, options); + } +} diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..4dfb451d --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js @@ -0,0 +1,42 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + grants(request) { + const data = QueryGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); + return promise.then(data => QueryGrantsResponse.decode(new BinaryReader(data))); + } + granterGrants(request) { + const data = QueryGranterGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); + return promise.then(data => QueryGranterGrantsResponse.decode(new BinaryReader(data))); + } + granteeGrants(request) { + const data = QueryGranteeGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); + return promise.then(data => QueryGranteeGrantsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + grants(request) { + return queryService.grants(request); + }, + granterGrants(request) { + return queryService.granterGrants(request); + }, + granteeGrants(request) { + return queryService.granteeGrants(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js new file mode 100644 index 00000000..4518741e --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js @@ -0,0 +1,19 @@ +//@ts-nocheck +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export const AminoConverter = { + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: "cosmos-sdk/MsgGrant", + toAmino: MsgGrant.toAmino, + fromAmino: MsgGrant.fromAmino + }, + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: "cosmos-sdk/MsgExec", + toAmino: MsgExec.toAmino, + fromAmino: MsgExec.fromAmino + }, + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: "cosmos-sdk/MsgRevoke", + toAmino: MsgRevoke.toAmino, + fromAmino: MsgRevoke.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js new file mode 100644 index 00000000..326af534 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js @@ -0,0 +1,487 @@ +//@ts-nocheck +import { Grant } from "./authz"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseMsgGrant() { + return { + granter: "", + grantee: "", + grant: Grant.fromPartial({}) + }; +} +export const MsgGrant = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.grant !== undefined) { + Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.grant = Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.grant = object.grant !== undefined && object.grant !== null ? Grant.fromPartial(object.grant) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.grant !== undefined && object.grant !== null) { + message.grant = Grant.fromAmino(object.grant); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.grant = message.grant ? Grant.toAmino(message.grant) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgGrant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrant", + value: MsgGrant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgGrant.decode(message.value); + }, + toProto(message) { + return MsgGrant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse() { + return { + results: [] + }; +} +export const MsgExecResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.results) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.results.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.results) { + obj.results = message.results.map(e => base64FromBytes(e)); + } + else { + obj.results = message.results; + } + return obj; + }, + fromAminoMsg(object) { + return MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExecResponse", + value: MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExecResponse.decode(message.value); + }, + toProto(message) { + return MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + value: MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec() { + return { + grantee: "", + msgs: [] + }; +} +export const MsgExec = { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + encode(message, writer = BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + for (const v of message.msgs) { + Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.msgs.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExec(); + message.grantee = object.grantee ?? ""; + message.msgs = object.msgs?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExec(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino(e) : undefined); + } + else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object) { + return MsgExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExec", + value: MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExec.decode(message.value); + }, + toProto(message) { + return MsgExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgGrantResponse() { + return {}; +} +export const MsgGrantResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgGrantResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgGrantResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgGrantResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantResponse", + value: MsgGrantResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgGrantResponse.decode(message.value); + }, + toProto(message) { + return MsgGrantResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + value: MsgGrantResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevoke() { + return { + granter: "", + grantee: "", + msgTypeUrl: "" + }; +} +export const MsgRevoke = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRevoke(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRevoke(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object) { + return MsgRevoke.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevoke", + value: MsgRevoke.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRevoke.decode(message.value); + }, + toProto(message) { + return MsgRevoke.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeResponse() { + return {}; +} +export const MsgRevokeResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRevokeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRevokeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRevokeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeResponse", + value: MsgRevokeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRevokeResponse.decode(message.value); + }, + toProto(message) { + return MsgRevokeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + value: MsgRevokeResponse.encode(message).finish() + }; + } +}; +export const Sdk_Msg_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Sdk_Msg_FromAmino = (content) => { + return Any.fromAmino(content); +}; +export const Sdk_Msg_ToAmino = (content) => { + return Any.toAmino(content); +}; +export const Authz_Authorization_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Authz_Authorization_FromAmino = (content) => { + return Any.fromAmino(content); +}; +export const Authz_Authorization_ToAmino = (content) => { + return Any.toAmino(content); +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js new file mode 100644 index 00000000..acf4a634 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js @@ -0,0 +1,69 @@ +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export const registry = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.encode(value).finish() + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.encode(value).finish() + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.encode(value).finish() + }; + } + }, + withTypeUrl: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value + }; + } + }, + fromPartial: { + grant(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.fromPartial(value) + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.fromPartial(value) + }; + }, + revoke(value) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..8fd1c326 --- /dev/null +++ b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js @@ -0,0 +1,26 @@ +import { BinaryReader } from "../../../binary"; +import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grant = this.grant.bind(this); + this.exec = this.exec.bind(this); + this.revoke = this.revoke.bind(this); + } + grant(request) { + const data = MsgGrant.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); + return promise.then(data => MsgGrantResponse.decode(new BinaryReader(data))); + } + exec(request) { + const data = MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); + return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); + } + revoke(request) { + const data = MsgRevoke.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); + return promise.then(data => MsgRevokeResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js b/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js new file mode 100644 index 00000000..3f323ad6 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js @@ -0,0 +1,76 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseSendAuthorization() { + return { + $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + spendLimit: [] + }; +} +export const SendAuthorization = { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.spendLimit) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.spend_limit = message.spendLimit; + } + return obj; + }, + fromAminoMsg(object) { + return SendAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SendAuthorization", + value: SendAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SendAuthorization.decode(message.value); + }, + toProto(message) { + return SendAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: SendAuthorization.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js b/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js new file mode 100644 index 00000000..dd04a706 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js @@ -0,0 +1,661 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseParams() { + return { + sendEnabled: [], + defaultSendEnabled: false + }; +} +export const Params = { + typeUrl: "/cosmos.bank.v1beta1.Params", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.sendEnabled) { + SendEnabled.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultSendEnabled === true) { + writer.uint32(16).bool(message.defaultSendEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32())); + break; + case 2: + message.defaultSendEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || []; + message.defaultSendEnabled = object.defaultSendEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || []; + if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { + message.defaultSendEnabled = object.default_send_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sendEnabled) { + obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined); + } + else { + obj.send_enabled = message.sendEnabled; + } + obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseSendEnabled() { + return { + denom: "", + enabled: false + }; +} +export const SendEnabled = { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendEnabled(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSendEnabled(); + message.denom = object.denom ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSendEnabled(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return SendEnabled.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SendEnabled", + value: SendEnabled.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SendEnabled.decode(message.value); + }, + toProto(message) { + return SendEnabled.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + value: SendEnabled.encode(message).finish() + }; + } +}; +function createBaseInput() { + return { + address: "", + coins: [] + }; +} +export const Input = { + typeUrl: "/cosmos.bank.v1beta1.Input", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return Input.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Input", + value: Input.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Input.decode(message.value); + }, + toProto(message) { + return Input.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Input", + value: Input.encode(message).finish() + }; + } +}; +function createBaseOutput() { + return { + address: "", + coins: [] + }; +} +export const Output = { + typeUrl: "/cosmos.bank.v1beta1.Output", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOutput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOutput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseOutput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return Output.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Output", + value: Output.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Output.decode(message.value); + }, + toProto(message) { + return Output.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Output", + value: Output.encode(message).finish() + }; + } +}; +function createBaseSupply() { + return { + $typeUrl: "/cosmos.bank.v1beta1.Supply", + total: [] + }; +} +export const Supply = { + typeUrl: "/cosmos.bank.v1beta1.Supply", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.total) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSupply(); + message.total = object.total?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSupply(); + message.total = object.total?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.total) { + obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object) { + return Supply.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Supply", + value: Supply.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Supply.decode(message.value); + }, + toProto(message) { + return Supply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Supply", + value: Supply.encode(message).finish() + }; + } +}; +function createBaseDenomUnit() { + return { + denom: "", + exponent: 0, + aliases: [] + }; +} +export const DenomUnit = { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.exponent !== 0) { + writer.uint32(16).uint32(message.exponent); + } + for (const v of message.aliases) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomUnit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.exponent = reader.uint32(); + break; + case 3: + message.aliases.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomUnit(); + message.denom = object.denom ?? ""; + message.exponent = object.exponent ?? 0; + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDenomUnit(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + if (message.aliases) { + obj.aliases = message.aliases.map(e => e); + } + else { + obj.aliases = message.aliases; + } + return obj; + }, + fromAminoMsg(object) { + return DenomUnit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomUnit", + value: DenomUnit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DenomUnit.decode(message.value); + }, + toProto(message) { + return DenomUnit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + value: DenomUnit.encode(message).finish() + }; + } +}; +function createBaseMetadata() { + return { + description: "", + denomUnits: [], + base: "", + display: "", + name: "", + symbol: "", + uri: "", + uriHash: "" + }; +} +export const Metadata = { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + encode(message, writer = BinaryWriter.create()) { + if (message.description !== "") { + writer.uint32(10).string(message.description); + } + for (const v of message.denomUnits) { + DenomUnit.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.base !== "") { + writer.uint32(26).string(message.base); + } + if (message.display !== "") { + writer.uint32(34).string(message.display); + } + if (message.name !== "") { + writer.uint32(42).string(message.name); + } + if (message.symbol !== "") { + writer.uint32(50).string(message.symbol); + } + if (message.uri !== "") { + writer.uint32(58).string(message.uri); + } + if (message.uriHash !== "") { + writer.uint32(66).string(message.uriHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + message.denomUnits.push(DenomUnit.decode(reader, reader.uint32())); + break; + case 3: + message.base = reader.string(); + break; + case 4: + message.display = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + case 6: + message.symbol = reader.string(); + break; + case 7: + message.uri = reader.string(); + break; + case 8: + message.uriHash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMetadata(); + message.description = object.description ?? ""; + message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || []; + message.base = object.base ?? ""; + message.display = object.display ?? ""; + message.name = object.name ?? ""; + message.symbol = object.symbol ?? ""; + message.uri = object.uri ?? ""; + message.uriHash = object.uriHash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMetadata(); + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.denomUnits = object.denom_units?.map(e => DenomUnit.fromAmino(e)) || []; + if (object.base !== undefined && object.base !== null) { + message.base = object.base; + } + if (object.display !== undefined && object.display !== null) { + message.display = object.display; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.symbol !== undefined && object.symbol !== null) { + message.symbol = object.symbol; + } + if (object.uri !== undefined && object.uri !== null) { + message.uri = object.uri; + } + if (object.uri_hash !== undefined && object.uri_hash !== null) { + message.uriHash = object.uri_hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description === "" ? undefined : message.description; + if (message.denomUnits) { + obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined); + } + else { + obj.denom_units = message.denomUnits; + } + obj.base = message.base === "" ? undefined : message.base; + obj.display = message.display === "" ? undefined : message.display; + obj.name = message.name === "" ? undefined : message.name; + obj.symbol = message.symbol === "" ? undefined : message.symbol; + obj.uri = message.uri === "" ? undefined : message.uri; + obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; + return obj; + }, + fromAminoMsg(object) { + return Metadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Metadata", + value: Metadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Metadata.decode(message.value); + }, + toProto(message) { + return Metadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + value: Metadata.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js new file mode 100644 index 00000000..e78dacb8 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js @@ -0,0 +1,202 @@ +//@ts-nocheck +import { Params, Metadata } from "./bank"; +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + params: Params.fromPartial({}), + balances: [], + supply: [], + denomMetadata: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.balances) { + Balance.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.supply) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.denomMetadata) { + Metadata.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.balances.push(Balance.decode(reader, reader.uint32())); + break; + case 3: + message.supply.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.denomMetadata.push(Metadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; + message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; + message.denomMetadata = object.denomMetadata?.map(e => Metadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; + message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; + message.denomMetadata = object.denom_metadata?.map(e => Metadata.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + if (message.supply) { + obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.supply = message.supply; + } + if (message.denomMetadata) { + obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined); + } + else { + obj.denom_metadata = message.denomMetadata; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance() { + return { + address: "", + coins: [] + }; +} +export const Balance = { + typeUrl: "/cosmos.bank.v1beta1.Balance", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object) { + return Balance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Balance", + value: Balance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Balance.decode(message.value); + }, + toProto(message) { + return Balance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.Balance", + value: Balance.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.js new file mode 100644 index 00000000..d9f5b60d --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/query.js @@ -0,0 +1,1438 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Coin } from "../../base/v1beta1/coin"; +import { Params, Metadata } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryBalanceRequest() { + return { + address: "", + denom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryBalanceRequest", + value: QueryBalanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + balance: undefined + }; +} +export const QueryBalanceResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryBalanceResponse", + value: QueryBalanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +export const QueryAllBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllBalancesRequest", + value: QueryAllBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllBalancesRequest.decode(message.value); + }, + toProto(message) { + return QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + value: QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +export const QueryAllBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllBalancesResponse", + value: QueryAllBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllBalancesResponse.decode(message.value); + }, + toProto(message) { + return QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + value: QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +export const QuerySpendableBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySpendableBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySpendableBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySpendableBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySpendableBalancesRequest", + value: QuerySpendableBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySpendableBalancesRequest.decode(message.value); + }, + toProto(message) { + return QuerySpendableBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + value: QuerySpendableBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +export const QuerySpendableBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySpendableBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySpendableBalancesResponse", + value: QuerySpendableBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySpendableBalancesResponse.decode(message.value); + }, + toProto(message) { + return QuerySpendableBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + value: QuerySpendableBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyRequest() { + return { + pagination: undefined + }; +} +export const QueryTotalSupplyRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTotalSupplyRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTotalSupplyRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTotalSupplyRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTotalSupplyRequest", + value: QueryTotalSupplyRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTotalSupplyRequest.decode(message.value); + }, + toProto(message) { + return QueryTotalSupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + value: QueryTotalSupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyResponse() { + return { + supply: [], + pagination: undefined + }; +} +export const QueryTotalSupplyResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.supply) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.supply.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.supply) { + obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.supply = message.supply; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTotalSupplyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTotalSupplyResponse", + value: QueryTotalSupplyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTotalSupplyResponse.decode(message.value); + }, + toProto(message) { + return QueryTotalSupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + value: QueryTotalSupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfRequest() { + return { + denom: "" + }; +} +export const QuerySupplyOfRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyOfRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyOfRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyOfRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySupplyOfRequest", + value: QuerySupplyOfRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySupplyOfRequest.decode(message.value); + }, + toProto(message) { + return QuerySupplyOfRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + value: QuerySupplyOfRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfResponse() { + return { + amount: Coin.fromPartial({}) + }; +} +export const QuerySupplyOfResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyOfResponse(); + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyOfResponse(); + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyOfResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySupplyOfResponse", + value: QuerySupplyOfResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySupplyOfResponse.decode(message.value); + }, + toProto(message) { + return QuerySupplyOfResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + value: QuerySupplyOfResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataRequest() { + return { + pagination: undefined + }; +} +export const QueryDenomsMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomsMetadataRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomsMetadataRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomsMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomsMetadataRequest", + value: QueryDenomsMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomsMetadataRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomsMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + value: QueryDenomsMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataResponse() { + return { + metadatas: [], + pagination: undefined + }; +} +export const QueryDenomsMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.metadatas) { + Metadata.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadatas.push(Metadata.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => Metadata.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => Metadata.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.metadatas) { + obj.metadatas = message.metadatas.map(e => e ? Metadata.toAmino(e) : undefined); + } + else { + obj.metadatas = message.metadatas; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomsMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomsMetadataResponse", + value: QueryDenomsMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomsMetadataResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomsMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + value: QueryDenomsMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataRequest() { + return { + denom: "" + }; +} +export const QueryDenomMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomMetadataRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomMetadataRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomMetadataRequest", + value: QueryDenomMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomMetadataRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + value: QueryDenomMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataResponse() { + return { + metadata: Metadata.fromPartial({}) + }; +} +export const QueryDenomMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.metadata !== undefined) { + Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = Metadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomMetadataResponse(); + message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomMetadataResponse(); + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = Metadata.fromAmino(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomMetadataResponse", + value: QueryDenomMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomMetadataResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + value: QueryDenomMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersRequest() { + return { + denom: "", + pagination: undefined + }; +} +export const QueryDenomOwnersRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomOwnersRequest(); + message.denom = object.denom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomOwnersRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomOwnersRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomOwnersRequest", + value: QueryDenomOwnersRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomOwnersRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomOwnersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + value: QueryDenomOwnersRequest.encode(message).finish() + }; + } +}; +function createBaseDenomOwner() { + return { + address: "", + balance: Coin.fromPartial({}) + }; +} +export const DenomOwner = { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomOwner(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomOwner(); + message.address = object.address ?? ""; + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDenomOwner(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DenomOwner.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomOwner", + value: DenomOwner.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DenomOwner.decode(message.value); + }, + toProto(message) { + return DenomOwner.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + value: DenomOwner.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersResponse() { + return { + denomOwners: [], + pagination: undefined + }; +} +export const QueryDenomOwnersResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.denomOwners) { + DenomOwner.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomOwners.push(DenomOwner.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denomOwners?.map(e => DenomOwner.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denom_owners?.map(e => DenomOwner.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.denomOwners) { + obj.denom_owners = message.denomOwners.map(e => e ? DenomOwner.toAmino(e) : undefined); + } + else { + obj.denom_owners = message.denomOwners; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomOwnersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomOwnersResponse", + value: QueryDenomOwnersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomOwnersResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomOwnersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + value: QueryDenomOwnersResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js new file mode 100644 index 00000000..0d6befa5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js @@ -0,0 +1,115 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + /* Balance queries the balance of a single coin for a single account. */ + async balance(params) { + const options = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries the balance of all coins for a single account. */ + async allBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* SpendableBalances queries the spenable balance of all coins for a single + account. + + Since: cosmos-sdk 0.46 */ + async spendableBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TotalSupply queries the total supply of all coins. */ + async totalSupply(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/supply`; + return await this.req.get(endpoint, options); + } + /* SupplyOf queries the supply of a single coin. */ + async supplyOf(params) { + const options = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; + return await this.req.get(endpoint, options); + } + /* Params queries the parameters of x/bank module. */ + async params(_params = {}) { + const endpoint = `cosmos/bank/v1beta1/params`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata of a given coin denomination. */ + async denomMetadata(params) { + const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata for all registered coin + denominations. */ + async denomsMetadata(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; + return await this.req.get(endpoint, options); + } + /* DenomOwners queries for all account addresses that own a particular token + denomination. + + Since: cosmos-sdk 0.46 */ + async denomOwners(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; + return await this.req.get(endpoint, options); + } +} diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..85bf0a91 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js @@ -0,0 +1,100 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + balance(request) { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + allBalances(request) { + const data = QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); + return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); + } + spendableBalances(request) { + const data = QuerySpendableBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); + return promise.then(data => QuerySpendableBalancesResponse.decode(new BinaryReader(data))); + } + totalSupply(request = { + pagination: undefined + }) { + const data = QueryTotalSupplyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); + return promise.then(data => QueryTotalSupplyResponse.decode(new BinaryReader(data))); + } + supplyOf(request) { + const data = QuerySupplyOfRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); + return promise.then(data => QuerySupplyOfResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + denomMetadata(request) { + const data = QueryDenomMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); + return promise.then(data => QueryDenomMetadataResponse.decode(new BinaryReader(data))); + } + denomsMetadata(request = { + pagination: undefined + }) { + const data = QueryDenomsMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); + return promise.then(data => QueryDenomsMetadataResponse.decode(new BinaryReader(data))); + } + denomOwners(request) { + const data = QueryDenomOwnersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); + return promise.then(data => QueryDenomOwnersResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + balance(request) { + return queryService.balance(request); + }, + allBalances(request) { + return queryService.allBalances(request); + }, + spendableBalances(request) { + return queryService.spendableBalances(request); + }, + totalSupply(request) { + return queryService.totalSupply(request); + }, + supplyOf(request) { + return queryService.supplyOf(request); + }, + params(request) { + return queryService.params(request); + }, + denomMetadata(request) { + return queryService.denomMetadata(request); + }, + denomsMetadata(request) { + return queryService.denomsMetadata(request); + }, + denomOwners(request) { + return queryService.denomOwners(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js new file mode 100644 index 00000000..38fd8ad2 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgSend, MsgMultiSend } from "./tx"; +export const AminoConverter = { + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: "cosmos-sdk/MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: "cosmos-sdk/MsgMultiSend", + toAmino: MsgMultiSend.toAmino, + fromAmino: MsgMultiSend.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js new file mode 100644 index 00000000..c148754a --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js @@ -0,0 +1,299 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { Input, Output } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgSend() { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +export const MsgSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + encode(message, writer = BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSend", + value: MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSend.decode(message.value); + }, + toProto(message) { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSendResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSendResponse", + value: MsgSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSendResponse.decode(message.value); + }, + toProto(message) { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSend() { + return { + inputs: [], + outputs: [] + }; +} +export const MsgMultiSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.inputs) { + Input.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.outputs) { + Output.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs.push(Input.decode(reader, reader.uint32())); + break; + case 2: + message.outputs.push(Output.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => Input.fromPartial(e)) || []; + message.outputs = object.outputs?.map(e => Output.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => Input.fromAmino(e)) || []; + message.outputs = object.outputs?.map(e => Output.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.inputs) { + obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined); + } + else { + obj.inputs = message.inputs; + } + if (message.outputs) { + obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined); + } + else { + obj.outputs = message.outputs; + } + return obj; + }, + fromAminoMsg(object) { + return MsgMultiSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgMultiSend", + value: MsgMultiSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgMultiSend.decode(message.value); + }, + toProto(message) { + return MsgMultiSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSendResponse() { + return {}; +} +export const MsgMultiSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgMultiSendResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgMultiSendResponse", + value: MsgMultiSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgMultiSendResponse.decode(message.value); + }, + toProto(message) { + return MsgMultiSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + value: MsgMultiSendResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js new file mode 100644 index 00000000..5bdf1132 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js @@ -0,0 +1,51 @@ +import { MsgSend, MsgMultiSend } from "./tx"; +export const registry = [["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.encode(value).finish() + }; + } + }, + withTypeUrl: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value + }; + } + }, + fromPartial: { + send(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + multiSend(value) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..6670fa19 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js @@ -0,0 +1,20 @@ +import { BinaryReader } from "../../../binary"; +import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.send = this.send.bind(this); + this.multiSend = this.multiSend.bind(this); + } + send(request) { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + multiSend(request) { + const data = MsgMultiSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); + return promise.then(data => MsgMultiSendResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js b/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js new file mode 100644 index 00000000..11f361af --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js @@ -0,0 +1,1058 @@ +//@ts-nocheck +import { Any } from "../../../../google/protobuf/any"; +import { Event } from "../../../../tendermint/abci/types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseTxResponse() { + return { + height: BigInt(0), + txhash: "", + codespace: "", + code: 0, + data: "", + rawLog: "", + logs: [], + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + tx: undefined, + timestamp: "", + events: [] + }; +} +export const TxResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.txhash !== "") { + writer.uint32(18).string(message.txhash); + } + if (message.codespace !== "") { + writer.uint32(26).string(message.codespace); + } + if (message.code !== 0) { + writer.uint32(32).uint32(message.code); + } + if (message.data !== "") { + writer.uint32(42).string(message.data); + } + if (message.rawLog !== "") { + writer.uint32(50).string(message.rawLog); + } + for (const v of message.logs) { + ABCIMessageLog.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.info !== "") { + writer.uint32(66).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(72).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(80).int64(message.gasUsed); + } + if (message.tx !== undefined) { + Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); + } + if (message.timestamp !== "") { + writer.uint32(98).string(message.timestamp); + } + for (const v of message.events) { + Event.encode(v, writer.uint32(106).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.txhash = reader.string(); + break; + case 3: + message.codespace = reader.string(); + break; + case 4: + message.code = reader.uint32(); + break; + case 5: + message.data = reader.string(); + break; + case 6: + message.rawLog = reader.string(); + break; + case 7: + message.logs.push(ABCIMessageLog.decode(reader, reader.uint32())); + break; + case 8: + message.info = reader.string(); + break; + case 9: + message.gasWanted = reader.int64(); + break; + case 10: + message.gasUsed = reader.int64(); + break; + case 11: + message.tx = Any.decode(reader, reader.uint32()); + break; + case 12: + message.timestamp = reader.string(); + break; + case 13: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.txhash = object.txhash ?? ""; + message.codespace = object.codespace ?? ""; + message.code = object.code ?? 0; + message.data = object.data ?? ""; + message.rawLog = object.rawLog ?? ""; + message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || []; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined; + message.timestamp = object.timestamp ?? ""; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.txhash !== undefined && object.txhash !== null) { + message.txhash = object.txhash; + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.raw_log !== undefined && object.raw_log !== null) { + message.rawLog = object.raw_log; + } + message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || []; + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = Any.fromAmino(object.tx); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = object.timestamp; + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.txhash = message.txhash === "" ? undefined : message.txhash; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data === "" ? undefined : message.data; + obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; + if (message.logs) { + obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined); + } + else { + obj.logs = message.logs; + } + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + obj.tx = message.tx ? Any.toAmino(message.tx) : undefined; + obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return TxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxResponse", + value: TxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TxResponse.decode(message.value); + }, + toProto(message) { + return TxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + value: TxResponse.encode(message).finish() + }; + } +}; +function createBaseABCIMessageLog() { + return { + msgIndex: 0, + log: "", + events: [] + }; +} +export const ABCIMessageLog = { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + encode(message, writer = BinaryWriter.create()) { + if (message.msgIndex !== 0) { + writer.uint32(8).uint32(message.msgIndex); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + StringEvent.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseABCIMessageLog(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgIndex = reader.uint32(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(StringEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseABCIMessageLog(); + message.msgIndex = object.msgIndex ?? 0; + message.log = object.log ?? ""; + message.events = object.events?.map(e => StringEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseABCIMessageLog(); + if (object.msg_index !== undefined && object.msg_index !== null) { + message.msgIndex = object.msg_index; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => StringEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_index = message.msgIndex ?? 0; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return ABCIMessageLog.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ABCIMessageLog", + value: ABCIMessageLog.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ABCIMessageLog.decode(message.value); + }, + toProto(message) { + return ABCIMessageLog.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + value: ABCIMessageLog.encode(message).finish() + }; + } +}; +function createBaseStringEvent() { + return { + type: "", + attributes: [] + }; +} +export const StringEvent = { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + Attribute.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStringEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(Attribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStringEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseStringEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined); + } + else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object) { + return StringEvent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/StringEvent", + value: StringEvent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return StringEvent.decode(message.value); + }, + toProto(message) { + return StringEvent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + value: StringEvent.encode(message).finish() + }; + } +}; +function createBaseAttribute() { + return { + key: "", + value: "" + }; +} +export const Attribute = { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object) { + return Attribute.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Attribute", + value: Attribute.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Attribute.decode(message.value); + }, + toProto(message) { + return Attribute.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + value: Attribute.encode(message).finish() + }; + } +}; +function createBaseGasInfo() { + return { + gasWanted: BigInt(0), + gasUsed: BigInt(0) + }; +} +export const GasInfo = { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.gasWanted !== BigInt(0)) { + writer.uint32(8).uint64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(16).uint64(message.gasUsed); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGasInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasWanted = reader.uint64(); + break; + case 2: + message.gasUsed = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGasInfo(); + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGasInfo(); + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return GasInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GasInfo", + value: GasInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GasInfo.decode(message.value); + }, + toProto(message) { + return GasInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + value: GasInfo.encode(message).finish() + }; + } +}; +function createBaseResult() { + return { + data: new Uint8Array(), + log: "", + events: [], + msgResponses: [] + }; +} +export const Result = { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + encode(message, writer = BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + Event.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.msgResponses) { + Any.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 4: + message.msgResponses.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResult(); + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResult(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object) { + return Result.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Result", + value: Result.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Result.decode(message.value); + }, + toProto(message) { + return Result.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + value: Result.encode(message).finish() + }; + } +}; +function createBaseSimulationResponse() { + return { + gasInfo: GasInfo.fromPartial({}), + result: undefined + }; +} +export const SimulationResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.gasInfo !== undefined) { + GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulationResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSimulationResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = Result.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SimulationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulationResponse", + value: SimulationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SimulationResponse.decode(message.value); + }, + toProto(message) { + return SimulationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + value: SimulationResponse.encode(message).finish() + }; + } +}; +function createBaseMsgData() { + return { + msgType: "", + data: new Uint8Array() + }; +} +export const MsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + encode(message, writer = BinaryWriter.create()) { + if (message.msgType !== "") { + writer.uint32(10).string(message.msgType); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgType = reader.string(); + break; + case 2: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgData(); + message.msgType = object.msgType ?? ""; + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseMsgData(); + if (object.msg_type !== undefined && object.msg_type !== null) { + message.msgType = object.msg_type; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type = message.msgType === "" ? undefined : message.msgType; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgData", + value: MsgData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgData.decode(message.value); + }, + toProto(message) { + return MsgData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + value: MsgData.encode(message).finish() + }; + } +}; +function createBaseTxMsgData() { + return { + data: [], + msgResponses: [] + }; +} +export const TxMsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.data) { + MsgData.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.msgResponses) { + Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data.push(MsgData.decode(reader, reader.uint32())); + break; + case 2: + message.msgResponses.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => MsgData.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => MsgData.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.data) { + obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined); + } + else { + obj.data = message.data; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object) { + return TxMsgData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxMsgData", + value: TxMsgData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TxMsgData.decode(message.value); + }, + toProto(message) { + return TxMsgData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + value: TxMsgData.encode(message).finish() + }; + } +}; +function createBaseSearchTxsResult() { + return { + totalCount: BigInt(0), + count: BigInt(0), + pageNumber: BigInt(0), + pageTotal: BigInt(0), + limit: BigInt(0), + txs: [] + }; +} +export const SearchTxsResult = { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + encode(message, writer = BinaryWriter.create()) { + if (message.totalCount !== BigInt(0)) { + writer.uint32(8).uint64(message.totalCount); + } + if (message.count !== BigInt(0)) { + writer.uint32(16).uint64(message.count); + } + if (message.pageNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.pageNumber); + } + if (message.pageTotal !== BigInt(0)) { + writer.uint32(32).uint64(message.pageTotal); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + for (const v of message.txs) { + TxResponse.encode(v, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSearchTxsResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.totalCount = reader.uint64(); + break; + case 2: + message.count = reader.uint64(); + break; + case 3: + message.pageNumber = reader.uint64(); + break; + case 4: + message.pageTotal = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + case 6: + message.txs.push(TxResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSearchTxsResult(); + message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); + message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); + message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); + message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSearchTxsResult(); + if (object.total_count !== undefined && object.total_count !== null) { + message.totalCount = BigInt(object.total_count); + } + if (object.count !== undefined && object.count !== null) { + message.count = BigInt(object.count); + } + if (object.page_number !== undefined && object.page_number !== null) { + message.pageNumber = BigInt(object.page_number); + } + if (object.page_total !== undefined && object.page_total !== null) { + message.pageTotal = BigInt(object.page_total); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; + obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; + obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; + obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return SearchTxsResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SearchTxsResult", + value: SearchTxsResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SearchTxsResult.decode(message.value); + }, + toProto(message) { + return SearchTxsResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + value: SearchTxsResult.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js new file mode 100644 index 00000000..142f4d62 --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js @@ -0,0 +1,127 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseConfigRequest() { + return {}; +} +export const ConfigRequest = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseConfigRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseConfigRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return ConfigRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigRequest", + value: ConfigRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ConfigRequest.decode(message.value); + }, + toProto(message) { + return ConfigRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + value: ConfigRequest.encode(message).finish() + }; + } +}; +function createBaseConfigResponse() { + return { + minimumGasPrice: "" + }; +} +export const ConfigResponse = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.minimumGasPrice !== "") { + writer.uint32(10).string(message.minimumGasPrice); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minimumGasPrice = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConfigResponse(); + message.minimumGasPrice = object.minimumGasPrice ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConfigResponse(); + if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { + message.minimumGasPrice = object.minimum_gas_price; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; + return obj; + }, + fromAminoMsg(object) { + return ConfigResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigResponse", + value: ConfigResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ConfigResponse.decode(message.value); + }, + toProto(message) { + return ConfigResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + value: ConfigResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js new file mode 100644 index 00000000..31c82b7a --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js @@ -0,0 +1,12 @@ +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.config = this.config.bind(this); + } + /* Config queries for the operator configuration. */ + async config(_params = {}) { + const endpoint = `cosmos/base/node/v1beta1/config`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js new file mode 100644 index 00000000..16b59d42 --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js @@ -0,0 +1,24 @@ +import { BinaryReader } from "../../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { ConfigRequest, ConfigResponse } from "./query"; +export class ServiceClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.config = this.config.bind(this); + } + config(request = {}) { + const data = ConfigRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); + return promise.then(data => ConfigResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new ServiceClientImpl(rpc); + return { + config(request) { + return queryService.config(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js b/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js new file mode 100644 index 00000000..0ef2c5a0 --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js @@ -0,0 +1,201 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBasePageRequest() { + return { + key: new Uint8Array(), + offset: BigInt(0), + limit: BigInt(0), + countTotal: false, + reverse: false + }; +} +export const PageRequest = { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.offset !== BigInt(0)) { + writer.uint32(16).uint64(message.offset); + } + if (message.limit !== BigInt(0)) { + writer.uint32(24).uint64(message.limit); + } + if (message.countTotal === true) { + writer.uint32(32).bool(message.countTotal); + } + if (message.reverse === true) { + writer.uint32(40).bool(message.reverse); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.offset = reader.uint64(); + break; + case 3: + message.limit = reader.uint64(); + break; + case 4: + message.countTotal = reader.bool(); + break; + case 5: + message.reverse = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePageRequest(); + message.key = object.key ?? new Uint8Array(); + message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.countTotal = object.countTotal ?? false; + message.reverse = object.reverse ?? false; + return message; + }, + fromAmino(object) { + const message = createBasePageRequest(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.offset !== undefined && object.offset !== null) { + message.offset = BigInt(object.offset); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + if (object.count_total !== undefined && object.count_total !== null) { + message.countTotal = object.count_total; + } + if (object.reverse !== undefined && object.reverse !== null) { + message.reverse = object.reverse; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + obj.count_total = message.countTotal === false ? undefined : message.countTotal; + obj.reverse = message.reverse === false ? undefined : message.reverse; + return obj; + }, + fromAminoMsg(object) { + return PageRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PageRequest", + value: PageRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PageRequest.decode(message.value); + }, + toProto(message) { + return PageRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + value: PageRequest.encode(message).finish() + }; + } +}; +function createBasePageResponse() { + return { + nextKey: new Uint8Array(), + total: BigInt(0) + }; +} +export const PageResponse = { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.nextKey.length !== 0) { + writer.uint32(10).bytes(message.nextKey); + } + if (message.total !== BigInt(0)) { + writer.uint32(16).uint64(message.total); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nextKey = reader.bytes(); + break; + case 2: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePageResponse(); + message.nextKey = object.nextKey ?? new Uint8Array(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBasePageResponse(); + if (object.next_key !== undefined && object.next_key !== null) { + message.nextKey = bytesFromBase64(object.next_key); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return PageResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PageResponse", + value: PageResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PageResponse.decode(message.value); + }, + toProto(message) { + return PageResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + value: PageResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js b/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js new file mode 100644 index 00000000..9bfad250 --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js @@ -0,0 +1,1922 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseAppDescriptor() { + return { + authn: undefined, + chain: undefined, + codec: undefined, + configuration: undefined, + queryServices: undefined, + tx: undefined + }; +} +export const AppDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.authn !== undefined) { + AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + if (message.chain !== undefined) { + ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); + } + if (message.codec !== undefined) { + CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); + } + if (message.configuration !== undefined) { + ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); + } + if (message.queryServices !== undefined) { + QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); + } + if (message.tx !== undefined) { + TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAppDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = AuthnDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.chain = ChainDescriptor.decode(reader, reader.uint32()); + break; + case 3: + message.codec = CodecDescriptor.decode(reader, reader.uint32()); + break; + case 4: + message.configuration = ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + case 5: + message.queryServices = QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + case 6: + message.tx = TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAppDescriptor(); + message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; + message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; + message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; + message.configuration = object.configuration !== undefined && object.configuration !== null ? ConfigurationDescriptor.fromPartial(object.configuration) : undefined; + message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; + message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAppDescriptor(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = AuthnDescriptor.fromAmino(object.authn); + } + if (object.chain !== undefined && object.chain !== null) { + message.chain = ChainDescriptor.fromAmino(object.chain); + } + if (object.codec !== undefined && object.codec !== null) { + message.codec = CodecDescriptor.fromAmino(object.codec); + } + if (object.configuration !== undefined && object.configuration !== null) { + message.configuration = ConfigurationDescriptor.fromAmino(object.configuration); + } + if (object.query_services !== undefined && object.query_services !== null) { + message.queryServices = QueryServicesDescriptor.fromAmino(object.query_services); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; + obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; + obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; + obj.configuration = message.configuration ? ConfigurationDescriptor.toAmino(message.configuration) : undefined; + obj.query_services = message.queryServices ? QueryServicesDescriptor.toAmino(message.queryServices) : undefined; + obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AppDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AppDescriptor", + value: AppDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AppDescriptor.decode(message.value); + }, + toProto(message) { + return AppDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + value: AppDescriptor.encode(message).finish() + }; + } +}; +function createBaseTxDescriptor() { + return { + fullname: "", + msgs: [] + }; +} +export const TxDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.msgs) { + MsgDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.msgs.push(MsgDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxDescriptor(); + message.fullname = object.fullname ?? ""; + message.msgs = object.msgs?.map(e => MsgDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.msgs = object.msgs?.map(e => MsgDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toAmino(e) : undefined); + } + else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object) { + return TxDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxDescriptor", + value: TxDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TxDescriptor.decode(message.value); + }, + toProto(message) { + return TxDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + value: TxDescriptor.encode(message).finish() + }; + } +}; +function createBaseAuthnDescriptor() { + return { + signModes: [] + }; +} +export const AuthnDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.signModes) { + SigningModeDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthnDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signModes.push(SigningModeDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuthnDescriptor(); + message.signModes = object.signModes?.map(e => SigningModeDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseAuthnDescriptor(); + message.signModes = object.sign_modes?.map(e => SigningModeDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signModes) { + obj.sign_modes = message.signModes.map(e => e ? SigningModeDescriptor.toAmino(e) : undefined); + } + else { + obj.sign_modes = message.signModes; + } + return obj; + }, + fromAminoMsg(object) { + return AuthnDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuthnDescriptor", + value: AuthnDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AuthnDescriptor.decode(message.value); + }, + toProto(message) { + return AuthnDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + value: AuthnDescriptor.encode(message).finish() + }; + } +}; +function createBaseSigningModeDescriptor() { + return { + name: "", + number: 0, + authnInfoProviderMethodFullname: "" + }; +} +export const SigningModeDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.authnInfoProviderMethodFullname !== "") { + writer.uint32(26).string(message.authnInfoProviderMethodFullname); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSigningModeDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.authnInfoProviderMethodFullname = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSigningModeDescriptor(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseSigningModeDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { + message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; + return obj; + }, + fromAminoMsg(object) { + return SigningModeDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SigningModeDescriptor", + value: SigningModeDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SigningModeDescriptor.decode(message.value); + }, + toProto(message) { + return SigningModeDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + value: SigningModeDescriptor.encode(message).finish() + }; + } +}; +function createBaseChainDescriptor() { + return { + id: "" + }; +} +export const ChainDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChainDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseChainDescriptor(); + message.id = object.id ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseChainDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return ChainDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ChainDescriptor", + value: ChainDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ChainDescriptor.decode(message.value); + }, + toProto(message) { + return ChainDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + value: ChainDescriptor.encode(message).finish() + }; + } +}; +function createBaseCodecDescriptor() { + return { + interfaces: [] + }; +} +export const CodecDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.interfaces) { + InterfaceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCodecDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interfaces.push(InterfaceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.interfaces) { + obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toAmino(e) : undefined); + } + else { + obj.interfaces = message.interfaces; + } + return obj; + }, + fromAminoMsg(object) { + return CodecDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CodecDescriptor", + value: CodecDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CodecDescriptor.decode(message.value); + }, + toProto(message) { + return CodecDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + value: CodecDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceDescriptor() { + return { + fullname: "", + interfaceAcceptingMessages: [], + interfaceImplementers: [] + }; +} +export const InterfaceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.interfaceAcceptingMessages) { + InterfaceAcceptingMessageDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.interfaceImplementers) { + InterfaceImplementerDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.interfaceAcceptingMessages.push(InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.interfaceImplementers.push(InterfaceImplementerDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceDescriptor(); + message.fullname = object.fullname ?? ""; + message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; + message.interfaceImplementers = object.interfaceImplementers?.map(e => InterfaceImplementerDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; + message.interfaceImplementers = object.interface_implementers?.map(e => InterfaceImplementerDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.interfaceAcceptingMessages) { + obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); + } + else { + obj.interface_accepting_messages = message.interfaceAcceptingMessages; + } + if (message.interfaceImplementers) { + obj.interface_implementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toAmino(e) : undefined); + } + else { + obj.interface_implementers = message.interfaceImplementers; + } + return obj; + }, + fromAminoMsg(object) { + return InterfaceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceDescriptor", + value: InterfaceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return InterfaceDescriptor.decode(message.value); + }, + toProto(message) { + return InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + value: InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceImplementerDescriptor() { + return { + fullname: "", + typeUrl: "" + }; +} +export const InterfaceImplementerDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.typeUrl !== "") { + writer.uint32(18).string(message.typeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceImplementerDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.typeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceImplementerDescriptor(); + message.fullname = object.fullname ?? ""; + message.typeUrl = object.typeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceImplementerDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.type_url !== undefined && object.type_url !== null) { + message.typeUrl = object.type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; + return obj; + }, + fromAminoMsg(object) { + return InterfaceImplementerDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceImplementerDescriptor", + value: InterfaceImplementerDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return InterfaceImplementerDescriptor.decode(message.value); + }, + toProto(message) { + return InterfaceImplementerDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + value: InterfaceImplementerDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceAcceptingMessageDescriptor() { + return { + fullname: "", + fieldDescriptorNames: [] + }; +} +export const InterfaceAcceptingMessageDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.fieldDescriptorNames) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceAcceptingMessageDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.fieldDescriptorNames.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + message.fullname = object.fullname ?? ""; + message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.fieldDescriptorNames) { + obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); + } + else { + obj.field_descriptor_names = message.fieldDescriptorNames; + } + return obj; + }, + fromAminoMsg(object) { + return InterfaceAcceptingMessageDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", + value: InterfaceAcceptingMessageDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return InterfaceAcceptingMessageDescriptor.decode(message.value); + }, + toProto(message) { + return InterfaceAcceptingMessageDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + value: InterfaceAcceptingMessageDescriptor.encode(message).finish() + }; + } +}; +function createBaseConfigurationDescriptor() { + return { + bech32AccountAddressPrefix: "" + }; +} +export const ConfigurationDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.bech32AccountAddressPrefix !== "") { + writer.uint32(10).string(message.bech32AccountAddressPrefix); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigurationDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32AccountAddressPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConfigurationDescriptor(); + message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConfigurationDescriptor(); + if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { + message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; + return obj; + }, + fromAminoMsg(object) { + return ConfigurationDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConfigurationDescriptor", + value: ConfigurationDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ConfigurationDescriptor.decode(message.value); + }, + toProto(message) { + return ConfigurationDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + value: ConfigurationDescriptor.encode(message).finish() + }; + } +}; +function createBaseMsgDescriptor() { + return { + msgTypeUrl: "" + }; +} +export const MsgDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.msgTypeUrl !== "") { + writer.uint32(10).string(message.msgTypeUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDescriptor(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDescriptor(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object) { + return MsgDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDescriptor", + value: MsgDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDescriptor.decode(message.value); + }, + toProto(message) { + return MsgDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + value: MsgDescriptor.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorRequest() { + return {}; +} +export const GetAuthnDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetAuthnDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetAuthnDescriptorRequest", + value: GetAuthnDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetAuthnDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetAuthnDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + value: GetAuthnDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorResponse() { + return { + authn: undefined + }; +} +export const GetAuthnDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.authn !== undefined) { + AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = AuthnDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetAuthnDescriptorResponse(); + message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetAuthnDescriptorResponse(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = AuthnDescriptor.fromAmino(object.authn); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetAuthnDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetAuthnDescriptorResponse", + value: GetAuthnDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetAuthnDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetAuthnDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + value: GetAuthnDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorRequest() { + return {}; +} +export const GetChainDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetChainDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetChainDescriptorRequest", + value: GetChainDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetChainDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetChainDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + value: GetChainDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorResponse() { + return { + chain: undefined + }; +} +export const GetChainDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.chain !== undefined) { + ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chain = ChainDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetChainDescriptorResponse(); + message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetChainDescriptorResponse(); + if (object.chain !== undefined && object.chain !== null) { + message.chain = ChainDescriptor.fromAmino(object.chain); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetChainDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetChainDescriptorResponse", + value: GetChainDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetChainDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetChainDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + value: GetChainDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorRequest() { + return {}; +} +export const GetCodecDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetCodecDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetCodecDescriptorRequest", + value: GetCodecDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetCodecDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetCodecDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + value: GetCodecDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorResponse() { + return { + codec: undefined + }; +} +export const GetCodecDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.codec !== undefined) { + CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.codec = CodecDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetCodecDescriptorResponse(); + message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetCodecDescriptorResponse(); + if (object.codec !== undefined && object.codec !== null) { + message.codec = CodecDescriptor.fromAmino(object.codec); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetCodecDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetCodecDescriptorResponse", + value: GetCodecDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetCodecDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetCodecDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + value: GetCodecDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorRequest() { + return {}; +} +export const GetConfigurationDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetConfigurationDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetConfigurationDescriptorRequest", + value: GetConfigurationDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetConfigurationDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetConfigurationDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + value: GetConfigurationDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorResponse() { + return { + config: undefined + }; +} +export const GetConfigurationDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.config !== undefined) { + ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.config = ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetConfigurationDescriptorResponse(); + message.config = object.config !== undefined && object.config !== null ? ConfigurationDescriptor.fromPartial(object.config) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetConfigurationDescriptorResponse(); + if (object.config !== undefined && object.config !== null) { + message.config = ConfigurationDescriptor.fromAmino(object.config); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.config = message.config ? ConfigurationDescriptor.toAmino(message.config) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetConfigurationDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetConfigurationDescriptorResponse", + value: GetConfigurationDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetConfigurationDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetConfigurationDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + value: GetConfigurationDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorRequest() { + return {}; +} +export const GetQueryServicesDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetQueryServicesDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorRequest", + value: GetQueryServicesDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetQueryServicesDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetQueryServicesDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + value: GetQueryServicesDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorResponse() { + return { + queries: undefined + }; +} +export const GetQueryServicesDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.queries !== undefined) { + QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queries = QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetQueryServicesDescriptorResponse(); + message.queries = object.queries !== undefined && object.queries !== null ? QueryServicesDescriptor.fromPartial(object.queries) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetQueryServicesDescriptorResponse(); + if (object.queries !== undefined && object.queries !== null) { + message.queries = QueryServicesDescriptor.fromAmino(object.queries); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.queries = message.queries ? QueryServicesDescriptor.toAmino(message.queries) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetQueryServicesDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorResponse", + value: GetQueryServicesDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetQueryServicesDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetQueryServicesDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + value: GetQueryServicesDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorRequest() { + return {}; +} +export const GetTxDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return GetTxDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxDescriptorRequest", + value: GetTxDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxDescriptorRequest.decode(message.value); + }, + toProto(message) { + return GetTxDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + value: GetTxDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorResponse() { + return { + tx: undefined + }; +} +export const GetTxDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tx !== undefined) { + TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxDescriptorResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxDescriptorResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetTxDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxDescriptorResponse", + value: GetTxDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxDescriptorResponse.decode(message.value); + }, + toProto(message) { + return GetTxDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + value: GetTxDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryServicesDescriptor() { + return { + queryServices: [] + }; +} +export const QueryServicesDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.queryServices) { + QueryServiceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServicesDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queryServices.push(QueryServiceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.queryServices?.map(e => QueryServiceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.query_services?.map(e => QueryServiceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.queryServices) { + obj.query_services = message.queryServices.map(e => e ? QueryServiceDescriptor.toAmino(e) : undefined); + } + else { + obj.query_services = message.queryServices; + } + return obj; + }, + fromAminoMsg(object) { + return QueryServicesDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryServicesDescriptor", + value: QueryServicesDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryServicesDescriptor.decode(message.value); + }, + toProto(message) { + return QueryServicesDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + value: QueryServicesDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryServiceDescriptor() { + return { + fullname: "", + isModule: false, + methods: [] + }; +} +export const QueryServiceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.isModule === true) { + writer.uint32(16).bool(message.isModule); + } + for (const v of message.methods) { + QueryMethodDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServiceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.isModule = reader.bool(); + break; + case 3: + message.methods.push(QueryMethodDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryServiceDescriptor(); + message.fullname = object.fullname ?? ""; + message.isModule = object.isModule ?? false; + message.methods = object.methods?.map(e => QueryMethodDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryServiceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.is_module !== undefined && object.is_module !== null) { + message.isModule = object.is_module; + } + message.methods = object.methods?.map(e => QueryMethodDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.is_module = message.isModule === false ? undefined : message.isModule; + if (message.methods) { + obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toAmino(e) : undefined); + } + else { + obj.methods = message.methods; + } + return obj; + }, + fromAminoMsg(object) { + return QueryServiceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryServiceDescriptor", + value: QueryServiceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryServiceDescriptor.decode(message.value); + }, + toProto(message) { + return QueryServiceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + value: QueryServiceDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryMethodDescriptor() { + return { + name: "", + fullQueryPath: "" + }; +} +export const QueryMethodDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.fullQueryPath !== "") { + writer.uint32(18).string(message.fullQueryPath); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryMethodDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.fullQueryPath = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryMethodDescriptor(); + message.name = object.name ?? ""; + message.fullQueryPath = object.fullQueryPath ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryMethodDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.full_query_path !== undefined && object.full_query_path !== null) { + message.fullQueryPath = object.full_query_path; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; + return obj; + }, + fromAminoMsg(object) { + return QueryMethodDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryMethodDescriptor", + value: QueryMethodDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryMethodDescriptor.decode(message.value); + }, + toProto(message) { + return QueryMethodDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + value: QueryMethodDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/base/v1beta1/coin.js b/packages/api/dist/esm/cosmos/base/v1beta1/coin.js new file mode 100644 index 00000000..d16ebb3a --- /dev/null +++ b/packages/api/dist/esm/cosmos/base/v1beta1/coin.js @@ -0,0 +1,302 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseCoin() { + return { + denom: "", + amount: "" + }; +} +export const Coin = { + typeUrl: "/cosmos.base.v1beta1.Coin", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return Coin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Coin", + value: Coin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Coin.decode(message.value); + }, + toProto(message) { + return Coin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.Coin", + value: Coin.encode(message).finish() + }; + } +}; +function createBaseDecCoin() { + return { + denom: "", + amount: "" + }; +} +export const DecCoin = { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDecCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return DecCoin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecCoin", + value: DecCoin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DecCoin.decode(message.value); + }, + toProto(message) { + return DecCoin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + value: DecCoin.encode(message).finish() + }; + } +}; +function createBaseIntProto() { + return { + int: "" + }; +} +export const IntProto = { + typeUrl: "/cosmos.base.v1beta1.IntProto", + encode(message, writer = BinaryWriter.create()) { + if (message.int !== "") { + writer.uint32(10).string(message.int); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIntProto(); + message.int = object.int ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseIntProto(); + if (object.int !== undefined && object.int !== null) { + message.int = object.int; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.int = message.int === "" ? undefined : message.int; + return obj; + }, + fromAminoMsg(object) { + return IntProto.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IntProto", + value: IntProto.toAmino(message) + }; + }, + fromProtoMsg(message) { + return IntProto.decode(message.value); + }, + toProto(message) { + return IntProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.IntProto", + value: IntProto.encode(message).finish() + }; + } +}; +function createBaseDecProto() { + return { + dec: "" + }; +} +export const DecProto = { + typeUrl: "/cosmos.base.v1beta1.DecProto", + encode(message, writer = BinaryWriter.create()) { + if (message.dec !== "") { + writer.uint32(10).string(message.dec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dec = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecProto(); + message.dec = object.dec ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDecProto(); + if (object.dec !== undefined && object.dec !== null) { + message.dec = object.dec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.dec = message.dec === "" ? undefined : message.dec; + return obj; + }, + fromAminoMsg(object) { + return DecProto.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecProto", + value: DecProto.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DecProto.decode(message.value); + }, + toProto(message) { + return DecProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.base.v1beta1.DecProto", + value: DecProto.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/bundle.js b/packages/api/dist/esm/cosmos/bundle.js new file mode 100644 index 00000000..5ad7f802 --- /dev/null +++ b/packages/api/dist/esm/cosmos/bundle.js @@ -0,0 +1,392 @@ +//@ts-nocheck +import * as _2 from "./app/module/v1alpha1/module"; +import * as _3 from "./auth/v1beta1/auth"; +import * as _4 from "./auth/v1beta1/genesis"; +import * as _5 from "./auth/v1beta1/query"; +import * as _6 from "./authz/v1beta1/authz"; +import * as _7 from "./authz/v1beta1/event"; +import * as _8 from "./authz/v1beta1/genesis"; +import * as _9 from "./authz/v1beta1/query"; +import * as _10 from "./authz/v1beta1/tx"; +import * as _11 from "./bank/v1beta1/authz"; +import * as _12 from "./bank/v1beta1/bank"; +import * as _13 from "./bank/v1beta1/genesis"; +import * as _14 from "./bank/v1beta1/query"; +import * as _15 from "./bank/v1beta1/tx"; +import * as _16 from "./base/abci/v1beta1/abci"; +import * as _17 from "./base/node/v1beta1/query"; +import * as _18 from "./base/query/v1beta1/pagination"; +import * as _19 from "./base/reflection/v2alpha1/reflection"; +import * as _20 from "./base/v1beta1/coin"; +import * as _21 from "./crypto/ed25519/keys"; +import * as _22 from "./crypto/hd/v1/hd"; +import * as _23 from "./crypto/keyring/v1/record"; +import * as _24 from "./crypto/multisig/keys"; +import * as _25 from "./crypto/secp256k1/keys"; +import * as _26 from "./crypto/secp256r1/keys"; +import * as _27 from "./distribution/v1beta1/distribution"; +import * as _28 from "./distribution/v1beta1/genesis"; +import * as _29 from "./distribution/v1beta1/query"; +import * as _30 from "./distribution/v1beta1/tx"; +import * as _31 from "./feegrant/v1beta1/feegrant"; +import * as _32 from "./feegrant/v1beta1/genesis"; +import * as _33 from "./feegrant/v1beta1/query"; +import * as _34 from "./feegrant/v1beta1/tx"; +import * as _35 from "./gov/v1/genesis"; +import * as _36 from "./gov/v1/gov"; +import * as _37 from "./gov/v1/query"; +import * as _38 from "./gov/v1/tx"; +import * as _39 from "./gov/v1beta1/genesis"; +import * as _40 from "./gov/v1beta1/gov"; +import * as _41 from "./gov/v1beta1/query"; +import * as _42 from "./gov/v1beta1/tx"; +import * as _43 from "./group/v1/events"; +import * as _44 from "./group/v1/genesis"; +import * as _45 from "./group/v1/query"; +import * as _46 from "./group/v1/tx"; +import * as _47 from "./group/v1/types"; +import * as _48 from "./mint/v1beta1/genesis"; +import * as _49 from "./mint/v1beta1/mint"; +import * as _50 from "./mint/v1beta1/query"; +import * as _51 from "./orm/module/v1alpha1/module"; +import * as _52 from "./params/v1beta1/params"; +import * as _53 from "./params/v1beta1/query"; +import * as _54 from "./staking/v1beta1/authz"; +import * as _55 from "./staking/v1beta1/genesis"; +import * as _56 from "./staking/v1beta1/query"; +import * as _57 from "./staking/v1beta1/staking"; +import * as _58 from "./staking/v1beta1/tx"; +import * as _59 from "./tx/signing/v1beta1/signing"; +import * as _60 from "./tx/v1beta1/service"; +import * as _61 from "./tx/v1beta1/tx"; +import * as _62 from "./upgrade/v1beta1/query"; +import * as _63 from "./upgrade/v1beta1/tx"; +import * as _64 from "./upgrade/v1beta1/upgrade"; +import * as _65 from "./vesting/v1beta1/tx"; +import * as _66 from "./vesting/v1beta1/vesting"; +import * as _119 from "./authz/v1beta1/tx.amino"; +import * as _120 from "./bank/v1beta1/tx.amino"; +import * as _121 from "./distribution/v1beta1/tx.amino"; +import * as _122 from "./feegrant/v1beta1/tx.amino"; +import * as _123 from "./gov/v1/tx.amino"; +import * as _124 from "./gov/v1beta1/tx.amino"; +import * as _125 from "./group/v1/tx.amino"; +import * as _126 from "./staking/v1beta1/tx.amino"; +import * as _127 from "./upgrade/v1beta1/tx.amino"; +import * as _128 from "./vesting/v1beta1/tx.amino"; +import * as _129 from "./authz/v1beta1/tx.registry"; +import * as _130 from "./bank/v1beta1/tx.registry"; +import * as _131 from "./distribution/v1beta1/tx.registry"; +import * as _132 from "./feegrant/v1beta1/tx.registry"; +import * as _133 from "./gov/v1/tx.registry"; +import * as _134 from "./gov/v1beta1/tx.registry"; +import * as _135 from "./group/v1/tx.registry"; +import * as _136 from "./staking/v1beta1/tx.registry"; +import * as _137 from "./upgrade/v1beta1/tx.registry"; +import * as _138 from "./vesting/v1beta1/tx.registry"; +import * as _139 from "./auth/v1beta1/query.lcd"; +import * as _140 from "./authz/v1beta1/query.lcd"; +import * as _141 from "./bank/v1beta1/query.lcd"; +import * as _142 from "./base/node/v1beta1/query.lcd"; +import * as _143 from "./distribution/v1beta1/query.lcd"; +import * as _144 from "./feegrant/v1beta1/query.lcd"; +import * as _145 from "./gov/v1/query.lcd"; +import * as _146 from "./gov/v1beta1/query.lcd"; +import * as _147 from "./group/v1/query.lcd"; +import * as _148 from "./mint/v1beta1/query.lcd"; +import * as _149 from "./params/v1beta1/query.lcd"; +import * as _150 from "./staking/v1beta1/query.lcd"; +import * as _151 from "./tx/v1beta1/service.lcd"; +import * as _152 from "./upgrade/v1beta1/query.lcd"; +import * as _153 from "./auth/v1beta1/query.rpc.Query"; +import * as _154 from "./authz/v1beta1/query.rpc.Query"; +import * as _155 from "./bank/v1beta1/query.rpc.Query"; +import * as _156 from "./base/node/v1beta1/query.rpc.Service"; +import * as _157 from "./distribution/v1beta1/query.rpc.Query"; +import * as _158 from "./feegrant/v1beta1/query.rpc.Query"; +import * as _159 from "./gov/v1/query.rpc.Query"; +import * as _160 from "./gov/v1beta1/query.rpc.Query"; +import * as _161 from "./group/v1/query.rpc.Query"; +import * as _162 from "./mint/v1beta1/query.rpc.Query"; +import * as _163 from "./params/v1beta1/query.rpc.Query"; +import * as _164 from "./staking/v1beta1/query.rpc.Query"; +import * as _165 from "./tx/v1beta1/service.rpc.Service"; +import * as _166 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _167 from "./authz/v1beta1/tx.rpc.msg"; +import * as _168 from "./bank/v1beta1/tx.rpc.msg"; +import * as _169 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _170 from "./feegrant/v1beta1/tx.rpc.msg"; +import * as _171 from "./gov/v1/tx.rpc.msg"; +import * as _172 from "./gov/v1beta1/tx.rpc.msg"; +import * as _173 from "./group/v1/tx.rpc.msg"; +import * as _174 from "./staking/v1beta1/tx.rpc.msg"; +import * as _175 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _176 from "./vesting/v1beta1/tx.rpc.msg"; +import * as _217 from "./lcd"; +import * as _218 from "./rpc.query"; +import * as _219 from "./rpc.tx"; +export var cosmos; +(function (cosmos) { + let app; + (function (app) { + let module; + (function (module) { + module.v1alpha1 = { + ..._2 + }; + })(module = app.module || (app.module = {})); + })(app = cosmos.app || (cosmos.app = {})); + let auth; + (function (auth) { + auth.v1beta1 = { + ..._3, + ..._4, + ..._5, + ..._139, + ..._153 + }; + })(auth = cosmos.auth || (cosmos.auth = {})); + let authz; + (function (authz) { + authz.v1beta1 = { + ..._6, + ..._7, + ..._8, + ..._9, + ..._10, + ..._119, + ..._129, + ..._140, + ..._154, + ..._167 + }; + })(authz = cosmos.authz || (cosmos.authz = {})); + let bank; + (function (bank) { + bank.v1beta1 = { + ..._11, + ..._12, + ..._13, + ..._14, + ..._15, + ..._120, + ..._130, + ..._141, + ..._155, + ..._168 + }; + })(bank = cosmos.bank || (cosmos.bank = {})); + let base; + (function (base) { + let abci; + (function (abci) { + abci.v1beta1 = { + ..._16 + }; + })(abci = base.abci || (base.abci = {})); + let node; + (function (node) { + node.v1beta1 = { + ..._17, + ..._142, + ..._156 + }; + })(node = base.node || (base.node = {})); + let query; + (function (query) { + query.v1beta1 = { + ..._18 + }; + })(query = base.query || (base.query = {})); + let reflection; + (function (reflection) { + reflection.v2alpha1 = { + ..._19 + }; + })(reflection = base.reflection || (base.reflection = {})); + base.v1beta1 = { + ..._20 + }; + })(base = cosmos.base || (cosmos.base = {})); + let crypto; + (function (crypto) { + crypto.ed25519 = { + ..._21 + }; + let hd; + (function (hd) { + hd.v1 = { + ..._22 + }; + })(hd = crypto.hd || (crypto.hd = {})); + let keyring; + (function (keyring) { + keyring.v1 = { + ..._23 + }; + })(keyring = crypto.keyring || (crypto.keyring = {})); + crypto.multisig = { + ..._24 + }; + crypto.secp256k1 = { + ..._25 + }; + crypto.secp256r1 = { + ..._26 + }; + })(crypto = cosmos.crypto || (cosmos.crypto = {})); + let distribution; + (function (distribution) { + distribution.v1beta1 = { + ..._27, + ..._28, + ..._29, + ..._30, + ..._121, + ..._131, + ..._143, + ..._157, + ..._169 + }; + })(distribution = cosmos.distribution || (cosmos.distribution = {})); + let feegrant; + (function (feegrant) { + feegrant.v1beta1 = { + ..._31, + ..._32, + ..._33, + ..._34, + ..._122, + ..._132, + ..._144, + ..._158, + ..._170 + }; + })(feegrant = cosmos.feegrant || (cosmos.feegrant = {})); + let gov; + (function (gov) { + gov.v1 = { + ..._35, + ..._36, + ..._37, + ..._38, + ..._123, + ..._133, + ..._145, + ..._159, + ..._171 + }; + gov.v1beta1 = { + ..._39, + ..._40, + ..._41, + ..._42, + ..._124, + ..._134, + ..._146, + ..._160, + ..._172 + }; + })(gov = cosmos.gov || (cosmos.gov = {})); + let group; + (function (group) { + group.v1 = { + ..._43, + ..._44, + ..._45, + ..._46, + ..._47, + ..._125, + ..._135, + ..._147, + ..._161, + ..._173 + }; + })(group = cosmos.group || (cosmos.group = {})); + let mint; + (function (mint) { + mint.v1beta1 = { + ..._48, + ..._49, + ..._50, + ..._148, + ..._162 + }; + })(mint = cosmos.mint || (cosmos.mint = {})); + let orm; + (function (orm) { + let module; + (function (module) { + module.v1alpha1 = { + ..._51 + }; + })(module = orm.module || (orm.module = {})); + })(orm = cosmos.orm || (cosmos.orm = {})); + let params; + (function (params) { + params.v1beta1 = { + ..._52, + ..._53, + ..._149, + ..._163 + }; + })(params = cosmos.params || (cosmos.params = {})); + let staking; + (function (staking) { + staking.v1beta1 = { + ..._54, + ..._55, + ..._56, + ..._57, + ..._58, + ..._126, + ..._136, + ..._150, + ..._164, + ..._174 + }; + })(staking = cosmos.staking || (cosmos.staking = {})); + let tx; + (function (tx) { + let signing; + (function (signing) { + signing.v1beta1 = { + ..._59 + }; + })(signing = tx.signing || (tx.signing = {})); + tx.v1beta1 = { + ..._60, + ..._61, + ..._151, + ..._165 + }; + })(tx = cosmos.tx || (cosmos.tx = {})); + let upgrade; + (function (upgrade) { + upgrade.v1beta1 = { + ..._62, + ..._63, + ..._64, + ..._127, + ..._137, + ..._152, + ..._166, + ..._175 + }; + })(upgrade = cosmos.upgrade || (cosmos.upgrade = {})); + let vesting; + (function (vesting) { + vesting.v1beta1 = { + ..._65, + ..._66, + ..._128, + ..._138, + ..._176 + }; + })(vesting = cosmos.vesting || (cosmos.vesting = {})); + cosmos.ClientFactory = { + ..._217, + ..._218, + ..._219 + }; +})(cosmos || (cosmos = {})); diff --git a/packages/api/dist/esm/cosmos/client.js b/packages/api/dist/esm/cosmos/client.js new file mode 100644 index 00000000..8478f404 --- /dev/null +++ b/packages/api/dist/esm/cosmos/client.js @@ -0,0 +1,54 @@ +//@ts-nocheck +import { Registry } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; +import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; +import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry"; +import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry"; +import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry"; +import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry"; +import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry"; +import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; +import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; +import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry"; +import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; +import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; +import * as cosmosDistributionV1beta1TxAmino from "./distribution/v1beta1/tx.amino"; +import * as cosmosFeegrantV1beta1TxAmino from "./feegrant/v1beta1/tx.amino"; +import * as cosmosGovV1TxAmino from "./gov/v1/tx.amino"; +import * as cosmosGovV1beta1TxAmino from "./gov/v1beta1/tx.amino"; +import * as cosmosGroupV1TxAmino from "./group/v1/tx.amino"; +import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; +import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; +import * as cosmosVestingV1beta1TxAmino from "./vesting/v1beta1/tx.amino"; +export const cosmosAminoConverters = { + ...cosmosAuthzV1beta1TxAmino.AminoConverter, + ...cosmosBankV1beta1TxAmino.AminoConverter, + ...cosmosDistributionV1beta1TxAmino.AminoConverter, + ...cosmosFeegrantV1beta1TxAmino.AminoConverter, + ...cosmosGovV1TxAmino.AminoConverter, + ...cosmosGovV1beta1TxAmino.AminoConverter, + ...cosmosGroupV1TxAmino.AminoConverter, + ...cosmosStakingV1beta1TxAmino.AminoConverter, + ...cosmosUpgradeV1beta1TxAmino.AminoConverter, + ...cosmosVestingV1beta1TxAmino.AminoConverter +}; +export const cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; +export const getSigningCosmosClientOptions = () => { + const registry = new Registry([...cosmosProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...cosmosAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => { + const { registry, aminoTypes } = getSigningCosmosClientOptions(); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; diff --git a/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js b/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js new file mode 100644 index 00000000..642aaa7a --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js @@ -0,0 +1,141 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PubKey.decode(message.value); + }, + toProto(message) { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + key: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PrivKey.decode(message.value); + }, + toProto(message) { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js b/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js new file mode 100644 index 00000000..85917947 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js @@ -0,0 +1,119 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseBIP44Params() { + return { + purpose: 0, + coinType: 0, + account: 0, + change: false, + addressIndex: 0 + }; +} +export const BIP44Params = { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + encode(message, writer = BinaryWriter.create()) { + if (message.purpose !== 0) { + writer.uint32(8).uint32(message.purpose); + } + if (message.coinType !== 0) { + writer.uint32(16).uint32(message.coinType); + } + if (message.account !== 0) { + writer.uint32(24).uint32(message.account); + } + if (message.change === true) { + writer.uint32(32).bool(message.change); + } + if (message.addressIndex !== 0) { + writer.uint32(40).uint32(message.addressIndex); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBIP44Params(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.purpose = reader.uint32(); + break; + case 2: + message.coinType = reader.uint32(); + break; + case 3: + message.account = reader.uint32(); + break; + case 4: + message.change = reader.bool(); + break; + case 5: + message.addressIndex = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBIP44Params(); + message.purpose = object.purpose ?? 0; + message.coinType = object.coinType ?? 0; + message.account = object.account ?? 0; + message.change = object.change ?? false; + message.addressIndex = object.addressIndex ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBIP44Params(); + if (object.purpose !== undefined && object.purpose !== null) { + message.purpose = object.purpose; + } + if (object.coin_type !== undefined && object.coin_type !== null) { + message.coinType = object.coin_type; + } + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.change !== undefined && object.change !== null) { + message.change = object.change; + } + if (object.address_index !== undefined && object.address_index !== null) { + message.addressIndex = object.address_index; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.purpose = message.purpose === 0 ? undefined : message.purpose; + obj.coin_type = message.coinType === 0 ? undefined : message.coinType; + obj.account = message.account === 0 ? undefined : message.account; + obj.change = message.change === false ? undefined : message.change; + obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; + return obj; + }, + fromAminoMsg(object) { + return BIP44Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BIP44Params", + value: BIP44Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BIP44Params.decode(message.value); + }, + toProto(message) { + return BIP44Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + value: BIP44Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js b/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js new file mode 100644 index 00000000..7a775331 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js @@ -0,0 +1,383 @@ +//@ts-nocheck +import { Any } from "../../../../google/protobuf/any"; +import { BIP44Params } from "../../hd/v1/hd"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseRecord() { + return { + name: "", + pubKey: undefined, + local: undefined, + ledger: undefined, + multi: undefined, + offline: undefined + }; +} +export const Record = { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.pubKey !== undefined) { + Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.local !== undefined) { + Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); + } + if (message.ledger !== undefined) { + Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); + } + if (message.multi !== undefined) { + Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); + } + if (message.offline !== undefined) { + Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.pubKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.local = Record_Local.decode(reader, reader.uint32()); + break; + case 4: + message.ledger = Record_Ledger.decode(reader, reader.uint32()); + break; + case 5: + message.multi = Record_Multi.decode(reader, reader.uint32()); + break; + case 6: + message.offline = Record_Offline.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord(); + message.name = object.name ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; + message.local = object.local !== undefined && object.local !== null ? Record_Local.fromPartial(object.local) : undefined; + message.ledger = object.ledger !== undefined && object.ledger !== null ? Record_Ledger.fromPartial(object.ledger) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? Record_Multi.fromPartial(object.multi) : undefined; + message.offline = object.offline !== undefined && object.offline !== null ? Record_Offline.fromPartial(object.offline) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = Any.fromAmino(object.pub_key); + } + if (object.local !== undefined && object.local !== null) { + message.local = Record_Local.fromAmino(object.local); + } + if (object.ledger !== undefined && object.ledger !== null) { + message.ledger = Record_Ledger.fromAmino(object.ledger); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = Record_Multi.fromAmino(object.multi); + } + if (object.offline !== undefined && object.offline !== null) { + message.offline = Record_Offline.fromAmino(object.offline); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; + obj.local = message.local ? Record_Local.toAmino(message.local) : undefined; + obj.ledger = message.ledger ? Record_Ledger.toAmino(message.ledger) : undefined; + obj.multi = message.multi ? Record_Multi.toAmino(message.multi) : undefined; + obj.offline = message.offline ? Record_Offline.toAmino(message.offline) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Record.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Record", + value: Record.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Record.decode(message.value); + }, + toProto(message) { + return Record.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + value: Record.encode(message).finish() + }; + } +}; +function createBaseRecord_Local() { + return { + privKey: undefined + }; +} +export const Record_Local = { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + encode(message, writer = BinaryWriter.create()) { + if (message.privKey !== undefined) { + Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Local(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.privKey = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord_Local(); + message.privKey = object.privKey !== undefined && object.privKey !== null ? Any.fromPartial(object.privKey) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord_Local(); + if (object.priv_key !== undefined && object.priv_key !== null) { + message.privKey = Any.fromAmino(object.priv_key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.priv_key = message.privKey ? Any.toAmino(message.privKey) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Record_Local.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Local", + value: Record_Local.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Record_Local.decode(message.value); + }, + toProto(message) { + return Record_Local.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + value: Record_Local.encode(message).finish() + }; + } +}; +function createBaseRecord_Ledger() { + return { + path: undefined + }; +} +export const Record_Ledger = { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + encode(message, writer = BinaryWriter.create()) { + if (message.path !== undefined) { + BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Ledger(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = BIP44Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRecord_Ledger(); + message.path = object.path !== undefined && object.path !== null ? BIP44Params.fromPartial(object.path) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRecord_Ledger(); + if (object.path !== undefined && object.path !== null) { + message.path = BIP44Params.fromAmino(object.path); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.path = message.path ? BIP44Params.toAmino(message.path) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Record_Ledger.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Ledger", + value: Record_Ledger.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Record_Ledger.decode(message.value); + }, + toProto(message) { + return Record_Ledger.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + value: Record_Ledger.encode(message).finish() + }; + } +}; +function createBaseRecord_Multi() { + return {}; +} +export const Record_Multi = { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRecord_Multi(); + return message; + }, + fromAmino(_) { + const message = createBaseRecord_Multi(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return Record_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: Record_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Record_Multi.decode(message.value); + }, + toProto(message) { + return Record_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + value: Record_Multi.encode(message).finish() + }; + } +}; +function createBaseRecord_Offline() { + return {}; +} +export const Record_Offline = { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Offline(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRecord_Offline(); + return message; + }, + fromAmino(_) { + const message = createBaseRecord_Offline(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return Record_Offline.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Offline", + value: Record_Offline.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Record_Offline.decode(message.value); + }, + toProto(message) { + return Record_Offline.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + value: Record_Offline.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/multisig/keys.js b/packages/api/dist/esm/cosmos/crypto/multisig/keys.js new file mode 100644 index 00000000..354bd9c4 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/multisig/keys.js @@ -0,0 +1,87 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseLegacyAminoPubKey() { + return { + threshold: 0, + publicKeys: [] + }; +} +export const LegacyAminoPubKey = { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + encode(message, writer = BinaryWriter.create()) { + if (message.threshold !== 0) { + writer.uint32(8).uint32(message.threshold); + } + for (const v of message.publicKeys) { + Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLegacyAminoPubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.uint32(); + break; + case 2: + message.publicKeys.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLegacyAminoPubKey(); + message.threshold = object.threshold ?? 0; + message.publicKeys = object.publicKeys?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseLegacyAminoPubKey(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + message.publicKeys = object.public_keys?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.threshold = message.threshold === 0 ? undefined : message.threshold; + if (message.publicKeys) { + obj.public_keys = message.publicKeys.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.public_keys = message.publicKeys; + } + return obj; + }, + fromAminoMsg(object) { + return LegacyAminoPubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/LegacyAminoPubKey", + value: LegacyAminoPubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return LegacyAminoPubKey.decode(message.value); + }, + toProto(message) { + return LegacyAminoPubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + value: LegacyAminoPubKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js b/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js new file mode 100644 index 00000000..17472fc4 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js @@ -0,0 +1,156 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseMultiSignature() { + return { + signatures: [] + }; +} +export const MultiSignature = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.signatures) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMultiSignature(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return MultiSignature.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MultiSignature", + value: MultiSignature.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MultiSignature.decode(message.value); + }, + toProto(message) { + return MultiSignature.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + value: MultiSignature.encode(message).finish() + }; + } +}; +function createBaseCompactBitArray() { + return { + extraBitsStored: 0, + elems: new Uint8Array() + }; +} +export const CompactBitArray = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + encode(message, writer = BinaryWriter.create()) { + if (message.extraBitsStored !== 0) { + writer.uint32(8).uint32(message.extraBitsStored); + } + if (message.elems.length !== 0) { + writer.uint32(18).bytes(message.elems); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCompactBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.extraBitsStored = reader.uint32(); + break; + case 2: + message.elems = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCompactBitArray(); + message.extraBitsStored = object.extraBitsStored ?? 0; + message.elems = object.elems ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseCompactBitArray(); + if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { + message.extraBitsStored = object.extra_bits_stored; + } + if (object.elems !== undefined && object.elems !== null) { + message.elems = bytesFromBase64(object.elems); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; + obj.elems = message.elems ? base64FromBytes(message.elems) : undefined; + return obj; + }, + fromAminoMsg(object) { + return CompactBitArray.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CompactBitArray", + value: CompactBitArray.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CompactBitArray.decode(message.value); + }, + toProto(message) { + return CompactBitArray.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + value: CompactBitArray.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js b/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js new file mode 100644 index 00000000..ca982665 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js @@ -0,0 +1,141 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PubKey.decode(message.value); + }, + toProto(message) { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + key: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PrivKey.decode(message.value); + }, + toProto(message) { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js b/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js new file mode 100644 index 00000000..69c70603 --- /dev/null +++ b/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js @@ -0,0 +1,141 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBasePubKey() { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PubKey.decode(message.value); + }, + toProto(message) { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey() { + return { + secret: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + encode(message, writer = BinaryWriter.create()) { + if (message.secret.length !== 0) { + writer.uint32(10).bytes(message.secret); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.secret = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrivKey(); + message.secret = object.secret ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePrivKey(); + if (object.secret !== undefined && object.secret !== null) { + message.secret = bytesFromBase64(object.secret); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.secret = message.secret ? base64FromBytes(message.secret) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PrivKey.decode(message.value); + }, + toProto(message) { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js new file mode 100644 index 00000000..5e82b637 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js @@ -0,0 +1,1050 @@ +//@ts-nocheck +import { DecCoin, Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +function createBaseParams() { + return { + communityTax: "", + baseProposerReward: "", + bonusProposerReward: "", + withdrawAddrEnabled: false + }; +} +export const Params = { + typeUrl: "/cosmos.distribution.v1beta1.Params", + encode(message, writer = BinaryWriter.create()) { + if (message.communityTax !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics); + } + if (message.baseProposerReward !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics); + } + if (message.bonusProposerReward !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); + } + if (message.withdrawAddrEnabled === true) { + writer.uint32(32).bool(message.withdrawAddrEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.withdrawAddrEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.communityTax = object.communityTax ?? ""; + message.baseProposerReward = object.baseProposerReward ?? ""; + message.bonusProposerReward = object.bonusProposerReward ?? ""; + message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.community_tax !== undefined && object.community_tax !== null) { + message.communityTax = object.community_tax; + } + if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { + message.baseProposerReward = object.base_proposer_reward; + } + if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { + message.bonusProposerReward = object.bonus_proposer_reward; + } + if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { + message.withdrawAddrEnabled = object.withdraw_addr_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; + obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; + obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; + obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewards() { + return { + cumulativeRewardRatio: [], + referenceCount: 0 + }; +} +export const ValidatorHistoricalRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.cumulativeRewardRatio) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.referenceCount !== 0) { + writer.uint32(16).uint32(message.referenceCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.referenceCount = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || []; + message.referenceCount = object.referenceCount ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => DecCoin.fromAmino(e)) || []; + if (object.reference_count !== undefined && object.reference_count !== null) { + message.referenceCount = object.reference_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.cumulativeRewardRatio) { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio; + } + obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; + return obj; + }, + fromAminoMsg(object) { + return ValidatorHistoricalRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorHistoricalRewards", + value: ValidatorHistoricalRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorHistoricalRewards.decode(message.value); + }, + toProto(message) { + return ValidatorHistoricalRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + value: ValidatorHistoricalRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewards() { + return { + rewards: [], + period: BigInt(0) + }; +} +export const ValidatorCurrentRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.rewards) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.period = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorCurrentRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorCurrentRewards", + value: ValidatorCurrentRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorCurrentRewards.decode(message.value); + }, + toProto(message) { + return ValidatorCurrentRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + value: ValidatorCurrentRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommission() { + return { + commission: [] + }; +} +export const ValidatorAccumulatedCommission = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.commission) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.commission) { + obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.commission = message.commission; + } + return obj; + }, + fromAminoMsg(object) { + return ValidatorAccumulatedCommission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommission", + value: ValidatorAccumulatedCommission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorAccumulatedCommission.decode(message.value); + }, + toProto(message) { + return ValidatorAccumulatedCommission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + value: ValidatorAccumulatedCommission.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewards() { + return { + rewards: [] + }; +} +export const ValidatorOutstandingRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.rewards) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object) { + return ValidatorOutstandingRewards.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorOutstandingRewards", + value: ValidatorOutstandingRewards.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorOutstandingRewards.decode(message.value); + }, + toProto(message) { + return ValidatorOutstandingRewards.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + value: ValidatorOutstandingRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvent() { + return { + validatorPeriod: BigInt(0), + fraction: "" + }; +} +export const ValidatorSlashEvent = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.validatorPeriod); + } + if (message.fraction !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorPeriod = reader.uint64(); + break; + case 2: + message.fraction = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEvent(); + message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); + message.fraction = object.fraction ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEvent(); + if (object.validator_period !== undefined && object.validator_period !== null) { + message.validatorPeriod = BigInt(object.validator_period); + } + if (object.fraction !== undefined && object.fraction !== null) { + message.fraction = object.fraction; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; + obj.fraction = message.fraction === "" ? undefined : message.fraction; + return obj; + }, + fromAminoMsg(object) { + return ValidatorSlashEvent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEvent", + value: ValidatorSlashEvent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorSlashEvent.decode(message.value); + }, + toProto(message) { + return ValidatorSlashEvent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + value: ValidatorSlashEvent.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvents() { + return { + validatorSlashEvents: [] + }; +} +export const ValidatorSlashEvents = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validatorSlashEvents) { + ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvents(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); + } + else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object) { + return ValidatorSlashEvents.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEvents", + value: ValidatorSlashEvents.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorSlashEvents.decode(message.value); + }, + toProto(message) { + return ValidatorSlashEvents.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + value: ValidatorSlashEvents.encode(message).finish() + }; + } +}; +function createBaseFeePool() { + return { + communityPool: [] + }; +} +export const FeePool = { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.communityPool) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFeePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityPool.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFeePool(); + message.communityPool = object.communityPool?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFeePool(); + message.communityPool = object.community_pool?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.communityPool) { + obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.community_pool = message.communityPool; + } + return obj; + }, + fromAminoMsg(object) { + return FeePool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/FeePool", + value: FeePool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return FeePool.decode(message.value); + }, + toProto(message) { + return FeePool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + value: FeePool.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposal() { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + title: "", + description: "", + recipient: "", + amount: [] + }; +} +export const CommunityPoolSpendProposal = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommunityPoolSpendProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommunityPoolSpendProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return CommunityPoolSpendProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommunityPoolSpendProposal", + value: CommunityPoolSpendProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CommunityPoolSpendProposal.decode(message.value); + }, + toProto(message) { + return CommunityPoolSpendProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + value: CommunityPoolSpendProposal.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfo() { + return { + previousPeriod: BigInt(0), + stake: "", + height: BigInt(0) + }; +} +export const DelegatorStartingInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.previousPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.previousPeriod); + } + if (message.stake !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).uint64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.previousPeriod = reader.uint64(); + break; + case 2: + message.stake = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorStartingInfo(); + message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); + message.stake = object.stake ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorStartingInfo(); + if (object.previous_period !== undefined && object.previous_period !== null) { + message.previousPeriod = BigInt(object.previous_period); + } + if (object.stake !== undefined && object.stake !== null) { + message.stake = object.stake; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; + obj.stake = message.stake === "" ? undefined : message.stake; + obj.height = message.height ? message.height.toString() : "0"; + return obj; + }, + fromAminoMsg(object) { + return DelegatorStartingInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorStartingInfo", + value: DelegatorStartingInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelegatorStartingInfo.decode(message.value); + }, + toProto(message) { + return DelegatorStartingInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + value: DelegatorStartingInfo.encode(message).finish() + }; + } +}; +function createBaseDelegationDelegatorReward() { + return { + validatorAddress: "", + reward: [] + }; +} +export const DelegationDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.reward) { + DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.reward.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegationDelegatorReward(); + message.validatorAddress = object.validatorAddress ?? ""; + message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDelegationDelegatorReward(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.reward = object.reward?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.reward) { + obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.reward = message.reward; + } + return obj; + }, + fromAminoMsg(object) { + return DelegationDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegationDelegatorReward", + value: DelegationDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelegationDelegatorReward.decode(message.value); + }, + toProto(message) { + return DelegationDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + value: DelegationDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposalWithDeposit() { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + title: "", + description: "", + recipient: "", + amount: "", + deposit: "" + }; +} +export const CommunityPoolSpendProposalWithDeposit = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.deposit !== "") { + writer.uint32(42).string(message.deposit); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.deposit = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.deposit = object.deposit ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = object.deposit; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.deposit = message.deposit === "" ? undefined : message.deposit; + return obj; + }, + fromAminoMsg(object) { + return CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", + value: CommunityPoolSpendProposalWithDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CommunityPoolSpendProposalWithDeposit.decode(message.value); + }, + toProto(message) { + return CommunityPoolSpendProposalWithDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + value: CommunityPoolSpendProposalWithDeposit.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js new file mode 100644 index 00000000..8c98ab83 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js @@ -0,0 +1,820 @@ +//@ts-nocheck +import { DecCoin } from "../../base/v1beta1/coin"; +import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool } from "./distribution"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseDelegatorWithdrawInfo() { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +export const DelegatorWithdrawInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorWithdrawInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorWithdrawInfo(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorWithdrawInfo(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return DelegatorWithdrawInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorWithdrawInfo", + value: DelegatorWithdrawInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelegatorWithdrawInfo.decode(message.value); + }, + toProto(message) { + return DelegatorWithdrawInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + value: DelegatorWithdrawInfo.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewardsRecord() { + return { + validatorAddress: "", + outstandingRewards: [] + }; +} +export const ValidatorOutstandingRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.outstandingRewards) { + DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorOutstandingRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorOutstandingRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.outstanding_rewards = message.outstandingRewards; + } + return obj; + }, + fromAminoMsg(object) { + return ValidatorOutstandingRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", + value: ValidatorOutstandingRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorOutstandingRewardsRecord.decode(message.value); + }, + toProto(message) { + return ValidatorOutstandingRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + value: ValidatorOutstandingRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommissionRecord() { + return { + validatorAddress: "", + accumulated: ValidatorAccumulatedCommission.fromPartial({}) + }; +} +export const ValidatorAccumulatedCommissionRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.accumulated !== undefined) { + ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommissionRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorAccumulatedCommissionRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorAccumulatedCommissionRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.accumulated !== undefined && object.accumulated !== null) { + message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorAccumulatedCommissionRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", + value: ValidatorAccumulatedCommissionRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorAccumulatedCommissionRecord.decode(message.value); + }, + toProto(message) { + return ValidatorAccumulatedCommissionRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + value: ValidatorAccumulatedCommissionRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewardsRecord() { + return { + validatorAddress: "", + period: BigInt(0), + rewards: ValidatorHistoricalRewards.fromPartial({}) + }; +} +export const ValidatorHistoricalRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + if (message.rewards !== undefined) { + ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.period = reader.uint64(); + break; + case 3: + message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorHistoricalRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorHistoricalRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorHistoricalRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", + value: ValidatorHistoricalRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorHistoricalRewardsRecord.decode(message.value); + }, + toProto(message) { + return ValidatorHistoricalRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + value: ValidatorHistoricalRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewardsRecord() { + return { + validatorAddress: "", + rewards: ValidatorCurrentRewards.fromPartial({}) + }; +} +export const ValidatorCurrentRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.rewards !== undefined) { + ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorCurrentRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorCurrentRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorCurrentRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorCurrentRewardsRecord", + value: ValidatorCurrentRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorCurrentRewardsRecord.decode(message.value); + }, + toProto(message) { + return ValidatorCurrentRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + value: ValidatorCurrentRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfoRecord() { + return { + delegatorAddress: "", + validatorAddress: "", + startingInfo: DelegatorStartingInfo.fromPartial({}) + }; +} +export const DelegatorStartingInfoRecord = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.startingInfo !== undefined) { + DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfoRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegatorStartingInfoRecord(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelegatorStartingInfoRecord(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_info !== undefined && object.starting_info !== null) { + message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DelegatorStartingInfoRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegatorStartingInfoRecord", + value: DelegatorStartingInfoRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelegatorStartingInfoRecord.decode(message.value); + }, + toProto(message) { + return DelegatorStartingInfoRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + value: DelegatorStartingInfoRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEventRecord() { + return { + validatorAddress: "", + height: BigInt(0), + period: BigInt(0), + validatorSlashEvent: ValidatorSlashEvent.fromPartial({}) + }; +} +export const ValidatorSlashEventRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).uint64(message.height); + } + if (message.period !== BigInt(0)) { + writer.uint32(24).uint64(message.period); + } + if (message.validatorSlashEvent !== undefined) { + ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEventRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.height = reader.uint64(); + break; + case 3: + message.period = reader.uint64(); + break; + case 4: + message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSlashEventRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSlashEventRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { + message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorSlashEventRecord.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValidatorSlashEventRecord", + value: ValidatorSlashEventRecord.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValidatorSlashEventRecord.decode(message.value); + }, + toProto(message) { + return ValidatorSlashEventRecord.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + value: ValidatorSlashEventRecord.encode(message).finish() + }; + } +}; +function createBaseGenesisState() { + return { + params: Params.fromPartial({}), + feePool: FeePool.fromPartial({}), + delegatorWithdrawInfos: [], + previousProposer: "", + outstandingRewards: [], + validatorAccumulatedCommissions: [], + validatorHistoricalRewards: [], + validatorCurrentRewards: [], + delegatorStartingInfos: [], + validatorSlashEvents: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.feePool !== undefined) { + FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatorWithdrawInfos) { + DelegatorWithdrawInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.previousProposer !== "") { + writer.uint32(34).string(message.previousProposer); + } + for (const v of message.outstandingRewards) { + ValidatorOutstandingRewardsRecord.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.validatorAccumulatedCommissions) { + ValidatorAccumulatedCommissionRecord.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.validatorHistoricalRewards) { + ValidatorHistoricalRewardsRecord.encode(v, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.validatorCurrentRewards) { + ValidatorCurrentRewardsRecord.encode(v, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.delegatorStartingInfos) { + DelegatorStartingInfoRecord.encode(v, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.validatorSlashEvents) { + ValidatorSlashEventRecord.encode(v, writer.uint32(82).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.feePool = FeePool.decode(reader, reader.uint32()); + break; + case 3: + message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32())); + break; + case 4: + message.previousProposer = reader.string(); + break; + case 5: + message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); + break; + case 7: + message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); + break; + case 8: + message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); + break; + case 9: + message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32())); + break; + case 10: + message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined; + message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || []; + message.previousProposer = object.previousProposer ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; + message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; + message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; + message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || []; + message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || []; + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.fee_pool !== undefined && object.fee_pool !== null) { + message.feePool = FeePool.fromAmino(object.fee_pool); + } + message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || []; + if (object.previous_proposer !== undefined && object.previous_proposer !== null) { + message.previousProposer = object.previous_proposer; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; + message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; + message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; + message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || []; + message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || []; + message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : undefined; + if (message.delegatorWithdrawInfos) { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined); + } + else { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; + } + obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); + } + else { + obj.outstanding_rewards = message.outstandingRewards; + } + if (message.validatorAccumulatedCommissions) { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); + } + else { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; + } + if (message.validatorHistoricalRewards) { + obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); + } + else { + obj.validator_historical_rewards = message.validatorHistoricalRewards; + } + if (message.validatorCurrentRewards) { + obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined); + } + else { + obj.validator_current_rewards = message.validatorCurrentRewards; + } + if (message.delegatorStartingInfos) { + obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined); + } + else { + obj.delegator_starting_infos = message.delegatorStartingInfos; + } + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined); + } + else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js new file mode 100644 index 00000000..f393e30a --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js @@ -0,0 +1,1311 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "./distribution"; +import { DecCoin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsRequest() { + return { + validatorAddress: "" + }; +} +export const QueryValidatorOutstandingRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", + value: QueryValidatorOutstandingRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorOutstandingRewardsRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorOutstandingRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + value: QueryValidatorOutstandingRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsResponse() { + return { + rewards: ValidatorOutstandingRewards.fromPartial({}) + }; +} +export const QueryValidatorOutstandingRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.rewards !== undefined) { + ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorOutstandingRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.rewards = message.rewards ? ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", + value: QueryValidatorOutstandingRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorOutstandingRewardsResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorOutstandingRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + value: QueryValidatorOutstandingRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionRequest() { + return { + validatorAddress: "" + }; +} +export const QueryValidatorCommissionRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorCommissionRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorCommissionRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorCommissionRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorCommissionRequest", + value: QueryValidatorCommissionRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorCommissionRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorCommissionRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + value: QueryValidatorCommissionRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionResponse() { + return { + commission: ValidatorAccumulatedCommission.fromPartial({}) + }; +} +export const QueryValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.commission !== undefined) { + ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorCommissionResponse(); + message.commission = object.commission !== undefined && object.commission !== null ? ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorCommissionResponse(); + if (object.commission !== undefined && object.commission !== null) { + message.commission = ValidatorAccumulatedCommission.fromAmino(object.commission); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.commission = message.commission ? ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorCommissionResponse", + value: QueryValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorCommissionResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + value: QueryValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesRequest() { + return { + validatorAddress: "", + startingHeight: BigInt(0), + endingHeight: BigInt(0), + pagination: undefined + }; +} +export const QueryValidatorSlashesRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.startingHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.startingHeight); + } + if (message.endingHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.endingHeight); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.startingHeight = reader.uint64(); + break; + case 3: + message.endingHeight = reader.uint64(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorSlashesRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); + message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorSlashesRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_height !== undefined && object.starting_height !== null) { + message.startingHeight = BigInt(object.starting_height); + } + if (object.ending_height !== undefined && object.ending_height !== null) { + message.endingHeight = BigInt(object.ending_height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; + obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorSlashesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorSlashesRequest", + value: QueryValidatorSlashesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorSlashesRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorSlashesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + value: QueryValidatorSlashesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesResponse() { + return { + slashes: [], + pagination: undefined + }; +} +export const QueryValidatorSlashesResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.slashes) { + ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.slashes) { + obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); + } + else { + obj.slashes = message.slashes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorSlashesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorSlashesResponse", + value: QueryValidatorSlashesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorSlashesResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorSlashesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + value: QueryValidatorSlashesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsRequest() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const QueryDelegationRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRewardsRequest", + value: QueryDelegationRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationRewardsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegationRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + value: QueryDelegationRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsResponse() { + return { + rewards: [] + }; +} +export const QueryDelegationRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.rewards) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRewardsResponse", + value: QueryDelegationRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationRewardsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegationRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + value: QueryDelegationRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsRequest() { + return { + delegatorAddress: "" + }; +} +export const QueryDelegationTotalRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationTotalRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationTotalRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationTotalRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", + value: QueryDelegationTotalRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationTotalRewardsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegationTotalRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + value: QueryDelegationTotalRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsResponse() { + return { + rewards: [], + total: [] + }; +} +export const QueryDelegationTotalRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.rewards) { + DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.total) { + DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32())); + break; + case 2: + message.total.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || []; + message.total = object.total?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromAmino(e)) || []; + message.total = object.total?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined); + } + else { + obj.rewards = message.rewards; + } + if (message.total) { + obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationTotalRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", + value: QueryDelegationTotalRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationTotalRewardsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegationTotalRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + value: QueryDelegationTotalRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest() { + return { + delegatorAddress: "" + }; +} +export const QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse() { + return { + validators: [] + }; +} +export const QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validators) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e); + } + else { + obj.validators = message.validators; + } + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressRequest() { + return { + delegatorAddress: "" + }; +} +export const QueryDelegatorWithdrawAddressRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", + value: QueryDelegatorWithdrawAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorWithdrawAddressRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorWithdrawAddressRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + value: QueryDelegatorWithdrawAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressResponse() { + return { + withdrawAddress: "" + }; +} +export const QueryDelegatorWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.withdrawAddress !== "") { + writer.uint32(10).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", + value: QueryDelegatorWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorWithdrawAddressResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + value: QueryDelegatorWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolRequest() { + return {}; +} +export const QueryCommunityPoolRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryCommunityPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCommunityPoolRequest", + value: QueryCommunityPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryCommunityPoolRequest.decode(message.value); + }, + toProto(message) { + return QueryCommunityPoolRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + value: QueryCommunityPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolResponse() { + return { + pool: [] + }; +} +export const QueryCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.pool) { + DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pool) { + obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined); + } + else { + obj.pool = message.pool; + } + return obj; + }, + fromAminoMsg(object) { + return QueryCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCommunityPoolResponse", + value: QueryCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryCommunityPoolResponse.decode(message.value); + }, + toProto(message) { + return QueryCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + value: QueryCommunityPoolResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js new file mode 100644 index 00000000..41b44f14 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js @@ -0,0 +1,75 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + /* Params queries params of the distribution module. */ + async params(_params = {}) { + const endpoint = `cosmos/distribution/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ValidatorOutstandingRewards queries rewards of a validator address. */ + async validatorOutstandingRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; + return await this.req.get(endpoint); + } + /* ValidatorCommission queries accumulated commission for a validator. */ + async validatorCommission(params) { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; + return await this.req.get(endpoint); + } + /* ValidatorSlashes queries slash events of a validator. */ + async validatorSlashes(params) { + const options = { + params: {} + }; + if (typeof params?.startingHeight !== "undefined") { + options.params.starting_height = params.startingHeight; + } + if (typeof params?.endingHeight !== "undefined") { + options.params.ending_height = params.endingHeight; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; + return await this.req.get(endpoint, options); + } + /* DelegationRewards queries the total rewards accrued by a delegation. */ + async delegationRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; + return await this.req.get(endpoint); + } + /* DelegationTotalRewards queries the total rewards accrued by a each + validator. */ + async delegationTotalRewards(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; + return await this.req.get(endpoint); + } + /* DelegatorValidators queries the validators of a delegator. */ + async delegatorValidators(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; + return await this.req.get(endpoint); + } + /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ + async delegatorWithdrawAddress(params) { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; + return await this.req.get(endpoint); + } + /* CommunityPool queries the community pool coins. */ + async communityPool(_params = {}) { + const endpoint = `cosmos/distribution/v1beta1/community_pool`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..123ff28b --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js @@ -0,0 +1,96 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + validatorOutstandingRewards(request) { + const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); + return promise.then(data => QueryValidatorOutstandingRewardsResponse.decode(new BinaryReader(data))); + } + validatorCommission(request) { + const data = QueryValidatorCommissionRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); + return promise.then(data => QueryValidatorCommissionResponse.decode(new BinaryReader(data))); + } + validatorSlashes(request) { + const data = QueryValidatorSlashesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); + return promise.then(data => QueryValidatorSlashesResponse.decode(new BinaryReader(data))); + } + delegationRewards(request) { + const data = QueryDelegationRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); + return promise.then(data => QueryDelegationRewardsResponse.decode(new BinaryReader(data))); + } + delegationTotalRewards(request) { + const data = QueryDelegationTotalRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); + return promise.then(data => QueryDelegationTotalRewardsResponse.decode(new BinaryReader(data))); + } + delegatorValidators(request) { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); + } + delegatorWithdrawAddress(request) { + const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); + return promise.then(data => QueryDelegatorWithdrawAddressResponse.decode(new BinaryReader(data))); + } + communityPool(request = {}) { + const data = QueryCommunityPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); + return promise.then(data => QueryCommunityPoolResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + validatorOutstandingRewards(request) { + return queryService.validatorOutstandingRewards(request); + }, + validatorCommission(request) { + return queryService.validatorCommission(request); + }, + validatorSlashes(request) { + return queryService.validatorSlashes(request); + }, + delegationRewards(request) { + return queryService.delegationRewards(request); + }, + delegationTotalRewards(request) { + return queryService.delegationTotalRewards(request); + }, + delegatorValidators(request) { + return queryService.delegatorValidators(request); + }, + delegatorWithdrawAddress(request) { + return queryService.delegatorWithdrawAddress(request); + }, + communityPool(request) { + return queryService.communityPool(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js new file mode 100644 index 00000000..20cc05f1 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export const AminoConverter = { + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", + toAmino: MsgSetWithdrawAddress.toAmino, + fromAmino: MsgSetWithdrawAddress.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", + toAmino: MsgWithdrawDelegatorReward.toAmino, + fromAmino: MsgWithdrawDelegatorReward.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", + toAmino: MsgWithdrawValidatorCommission.toAmino, + fromAmino: MsgWithdrawValidatorCommission.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: "cosmos-sdk/MsgFundCommunityPool", + toAmino: MsgFundCommunityPool.toAmino, + fromAmino: MsgFundCommunityPool.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js new file mode 100644 index 00000000..8a57224e --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js @@ -0,0 +1,574 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgSetWithdrawAddress() { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +export const MsgSetWithdrawAddress = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSetWithdrawAddress(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSetWithdrawAddress(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object) { + return MsgSetWithdrawAddress.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgModifyWithdrawAddress", + value: MsgSetWithdrawAddress.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSetWithdrawAddress.decode(message.value); + }, + toProto(message) { + return MsgSetWithdrawAddress.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.encode(message).finish() + }; + } +}; +function createBaseMsgSetWithdrawAddressResponse() { + return {}; +} +export const MsgSetWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSetWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSetWithdrawAddressResponse", + value: MsgSetWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSetWithdrawAddressResponse.decode(message.value); + }, + toProto(message) { + return MsgSetWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + value: MsgSetWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorReward() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const MsgWithdrawDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawDelegatorReward(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawDelegatorReward(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawDelegationReward", + value: MsgWithdrawDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawDelegatorReward.decode(message.value); + }, + toProto(message) { + return MsgWithdrawDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorRewardResponse() { + return { + amount: [] + }; +} +export const MsgWithdrawDelegatorRewardResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.amount) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", + value: MsgWithdrawDelegatorRewardResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawDelegatorRewardResponse.decode(message.value); + }, + toProto(message) { + return MsgWithdrawDelegatorRewardResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + value: MsgWithdrawDelegatorRewardResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommission() { + return { + validatorAddress: "" + }; +} +export const MsgWithdrawValidatorCommission = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawValidatorCommission(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawValidatorCommission(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawValidatorCommission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawValidatorCommission.decode(message.value); + }, + toProto(message) { + return MsgWithdrawValidatorCommission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommissionResponse() { + return { + amount: [] + }; +} +export const MsgWithdrawValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.amount) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", + value: MsgWithdrawValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawValidatorCommissionResponse.decode(message.value); + }, + toProto(message) { + return MsgWithdrawValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + value: MsgWithdrawValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPool() { + return { + amount: [], + depositor: "" + }; +} +export const MsgFundCommunityPool = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.amount) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return MsgFundCommunityPool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgFundCommunityPool", + value: MsgFundCommunityPool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgFundCommunityPool.decode(message.value); + }, + toProto(message) { + return MsgFundCommunityPool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPoolResponse() { + return {}; +} +export const MsgFundCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgFundCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgFundCommunityPoolResponse", + value: MsgFundCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgFundCommunityPoolResponse.decode(message.value); + }, + toProto(message) { + return MsgFundCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + value: MsgFundCommunityPoolResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js new file mode 100644 index 00000000..6bfab5f5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js @@ -0,0 +1,87 @@ +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export const registry = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.encode(value).finish() + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.encode(value).finish() + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.encode(value).finish() + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.encode(value).finish() + }; + } + }, + withTypeUrl: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value + }; + } + }, + fromPartial: { + setWithdrawAddress(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.fromPartial(value) + }; + }, + withdrawDelegatorReward(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.fromPartial(value) + }; + }, + withdrawValidatorCommission(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.fromPartial(value) + }; + }, + fundCommunityPool(value) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..e13bc697 --- /dev/null +++ b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js @@ -0,0 +1,32 @@ +import { BinaryReader } from "../../../binary"; +import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.setWithdrawAddress = this.setWithdrawAddress.bind(this); + this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); + this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); + this.fundCommunityPool = this.fundCommunityPool.bind(this); + } + setWithdrawAddress(request) { + const data = MsgSetWithdrawAddress.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); + return promise.then(data => MsgSetWithdrawAddressResponse.decode(new BinaryReader(data))); + } + withdrawDelegatorReward(request) { + const data = MsgWithdrawDelegatorReward.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); + return promise.then(data => MsgWithdrawDelegatorRewardResponse.decode(new BinaryReader(data))); + } + withdrawValidatorCommission(request) { + const data = MsgWithdrawValidatorCommission.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); + return promise.then(data => MsgWithdrawValidatorCommissionResponse.decode(new BinaryReader(data))); + } + fundCommunityPool(request) { + const data = MsgFundCommunityPool.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); + return promise.then(data => MsgFundCommunityPoolResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js new file mode 100644 index 00000000..4a867882 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js @@ -0,0 +1,450 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration } from "../../../google/protobuf/duration"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseBasicAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + spendLimit: [], + expiration: undefined + }; +} +export const BasicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.spendLimit) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.spend_limit = message.spendLimit; + } + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BasicAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BasicAllowance.decode(message.value); + }, + toProto(message) { + return BasicAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(message).finish() + }; + } +}; +function createBasePeriodicAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + basic: BasicAllowance.fromPartial({}), + period: Duration.fromPartial({}), + periodSpendLimit: [], + periodCanSpend: [], + periodReset: new Date() + }; +} +export const PeriodicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + encode(message, writer = BinaryWriter.create()) { + if (message.basic !== undefined) { + BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== undefined) { + Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.periodSpendLimit) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.periodCanSpend) { + Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.periodReset !== undefined) { + Timestamp.encode(toTimestamp(message.periodReset), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basic = BasicAllowance.decode(reader, reader.uint32()); + break; + case 2: + message.period = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.periodSpendLimit.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.periodCanSpend.push(Coin.decode(reader, reader.uint32())); + break; + case 5: + message.periodReset = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriodicAllowance(); + message.basic = object.basic !== undefined && object.basic !== null ? BasicAllowance.fromPartial(object.basic) : undefined; + message.period = object.period !== undefined && object.period !== null ? Duration.fromPartial(object.period) : undefined; + message.periodSpendLimit = object.periodSpendLimit?.map(e => Coin.fromPartial(e)) || []; + message.periodCanSpend = object.periodCanSpend?.map(e => Coin.fromPartial(e)) || []; + message.periodReset = object.periodReset ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBasePeriodicAllowance(); + if (object.basic !== undefined && object.basic !== null) { + message.basic = BasicAllowance.fromAmino(object.basic); + } + if (object.period !== undefined && object.period !== null) { + message.period = Duration.fromAmino(object.period); + } + message.periodSpendLimit = object.period_spend_limit?.map(e => Coin.fromAmino(e)) || []; + message.periodCanSpend = object.period_can_spend?.map(e => Coin.fromAmino(e)) || []; + if (object.period_reset !== undefined && object.period_reset !== null) { + message.periodReset = fromTimestamp(Timestamp.fromAmino(object.period_reset)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basic = message.basic ? BasicAllowance.toAmino(message.basic) : undefined; + obj.period = message.period ? Duration.toAmino(message.period) : undefined; + if (message.periodSpendLimit) { + obj.period_spend_limit = message.periodSpendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.period_spend_limit = message.periodSpendLimit; + } + if (message.periodCanSpend) { + obj.period_can_spend = message.periodCanSpend.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.period_can_spend = message.periodCanSpend; + } + obj.period_reset = message.periodReset ? Timestamp.toAmino(toTimestamp(message.periodReset)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PeriodicAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PeriodicAllowance.decode(message.value); + }, + toProto(message) { + return PeriodicAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(message).finish() + }; + } +}; +function createBaseAllowedMsgAllowance() { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + allowance: undefined, + allowedMessages: [] + }; +} +export const AllowedMsgAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + encode(message, writer = BinaryWriter.create()) { + if (message.allowance !== undefined) { + Any.encode(message.allowance, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedMessages) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedMsgAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = FeeAllowanceI_InterfaceDecoder(reader); + break; + case 2: + message.allowedMessages.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedMsgAllowance(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + message.allowedMessages = object.allowedMessages?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedMsgAllowance(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + message.allowedMessages = object.allowed_messages?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; + if (message.allowedMessages) { + obj.allowed_messages = message.allowedMessages.map(e => e); + } + else { + obj.allowed_messages = message.allowedMessages; + } + return obj; + }, + fromAminoMsg(object) { + return AllowedMsgAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AllowedMsgAllowance.decode(message.value); + }, + toProto(message) { + return AllowedMsgAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(message).finish() + }; + } +}; +function createBaseGrant() { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +export const Grant = { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = FeeAllowanceI_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Grant.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Grant", + value: Grant.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Grant.decode(message.value); + }, + toProto(message) { + return Grant.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + value: Grant.encode(message).finish() + }; + } +}; +export const FeeAllowanceI_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +export const FeeAllowanceI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const FeeAllowanceI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js new file mode 100644 index 00000000..2a1e945e --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js @@ -0,0 +1,75 @@ +//@ts-nocheck +import { Grant } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + allowances: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowances) { + Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js new file mode 100644 index 00000000..bcbe3d22 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js @@ -0,0 +1,484 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Grant } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryAllowanceRequest() { + return { + granter: "", + grantee: "" + }; +} +export const QueryAllowanceRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowanceRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowanceRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowanceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowanceRequest", + value: QueryAllowanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowanceRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + value: QueryAllowanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowanceResponse() { + return { + allowance: undefined + }; +} +export const QueryAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.allowance !== undefined) { + Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowanceResponse(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowanceResponse(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = Grant.fromAmino(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowanceResponse", + value: QueryAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowanceResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + value: QueryAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesRequest() { + return { + grantee: "", + pagination: undefined + }; +} +export const QueryAllowancesRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowancesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesRequest", + value: QueryAllowancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowancesRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + value: QueryAllowancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesResponse() { + return { + allowances: [], + pagination: undefined + }; +} +export const QueryAllowancesResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowances) { + Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowancesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesResponse", + value: QueryAllowancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowancesResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + value: QueryAllowancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterRequest() { + return { + granter: "", + pagination: undefined + }; +} +export const QueryAllowancesByGranterRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesByGranterRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesByGranterRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowancesByGranterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesByGranterRequest", + value: QueryAllowancesByGranterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowancesByGranterRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowancesByGranterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + value: QueryAllowancesByGranterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterResponse() { + return { + allowances: [], + pagination: undefined + }; +} +export const QueryAllowancesByGranterResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowances) { + Grant.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } + else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowancesByGranterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAllowancesByGranterResponse", + value: QueryAllowancesByGranterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAllowancesByGranterResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowancesByGranterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + value: QueryAllowancesByGranterResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js new file mode 100644 index 00000000..08e94895 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js @@ -0,0 +1,40 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + /* Allowance returns fee granted to the grantee by the granter. */ + async allowance(params) { + const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; + return await this.req.get(endpoint); + } + /* Allowances returns all the grants for address. */ + async allowances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; + return await this.req.get(endpoint, options); + } + /* AllowancesByGranter returns all the grants given by an address + + Since: cosmos-sdk 0.46 */ + async allowancesByGranter(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; + return await this.req.get(endpoint, options); + } +} diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..dc7173c5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js @@ -0,0 +1,42 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + allowance(request) { + const data = QueryAllowanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); + return promise.then(data => QueryAllowanceResponse.decode(new BinaryReader(data))); + } + allowances(request) { + const data = QueryAllowancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); + return promise.then(data => QueryAllowancesResponse.decode(new BinaryReader(data))); + } + allowancesByGranter(request) { + const data = QueryAllowancesByGranterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); + return promise.then(data => QueryAllowancesByGranterResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + allowance(request) { + return queryService.allowance(request); + }, + allowances(request) { + return queryService.allowances(request); + }, + allowancesByGranter(request) { + return queryService.allowancesByGranter(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js new file mode 100644 index 00000000..1f034a8a --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export const AminoConverter = { + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: "cosmos-sdk/MsgGrantAllowance", + toAmino: MsgGrantAllowance.toAmino, + fromAmino: MsgGrantAllowance.fromAmino + }, + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: "cosmos-sdk/MsgRevokeAllowance", + toAmino: MsgRevokeAllowance.toAmino, + fromAmino: MsgRevokeAllowance.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js new file mode 100644 index 00000000..df1944a6 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js @@ -0,0 +1,346 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { BasicAllowance, PeriodicAllowance, AllowedMsgAllowance } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgGrantAllowance() { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +export const MsgGrantAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = FeeAllowanceI_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgGrantAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgGrantAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgGrantAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantAllowance", + value: MsgGrantAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgGrantAllowance.decode(message.value); + }, + toProto(message) { + return MsgGrantAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgGrantAllowanceResponse() { + return {}; +} +export const MsgGrantAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgGrantAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgGrantAllowanceResponse", + value: MsgGrantAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgGrantAllowanceResponse.decode(message.value); + }, + toProto(message) { + return MsgGrantAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + value: MsgGrantAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowance() { + return { + granter: "", + grantee: "" + }; +} +export const MsgRevokeAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + encode(message, writer = BinaryWriter.create()) { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRevokeAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRevokeAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object) { + return MsgRevokeAllowance.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeAllowance", + value: MsgRevokeAllowance.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRevokeAllowance.decode(message.value); + }, + toProto(message) { + return MsgRevokeAllowance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowanceResponse() { + return {}; +} +export const MsgRevokeAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRevokeAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgRevokeAllowanceResponse", + value: MsgRevokeAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRevokeAllowanceResponse.decode(message.value); + }, + toProto(message) { + return MsgRevokeAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + value: MsgRevokeAllowanceResponse.encode(message).finish() + }; + } +}; +export const FeeAllowanceI_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +export const FeeAllowanceI_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const FeeAllowanceI_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js new file mode 100644 index 00000000..d312eba3 --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js @@ -0,0 +1,51 @@ +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export const registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.encode(value).finish() + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.encode(value).finish() + }; + } + }, + withTypeUrl: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value + }; + } + }, + fromPartial: { + grantAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.fromPartial(value) + }; + }, + revokeAllowance(value) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..2097620b --- /dev/null +++ b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js @@ -0,0 +1,20 @@ +import { BinaryReader } from "../../../binary"; +import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.grantAllowance = this.grantAllowance.bind(this); + this.revokeAllowance = this.revokeAllowance.bind(this); + } + grantAllowance(request) { + const data = MsgGrantAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); + return promise.then(data => MsgGrantAllowanceResponse.decode(new BinaryReader(data))); + } + revokeAllowance(request) { + const data = MsgRevokeAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); + return promise.then(data => MsgRevokeAllowanceResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/gov/v1/genesis.js b/packages/api/dist/esm/cosmos/gov/v1/genesis.js new file mode 100644 index 00000000..d7d23e73 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/genesis.js @@ -0,0 +1,153 @@ +//@ts-nocheck +import { Deposit, Vote, Proposal, DepositParams, VotingParams, TallyParams } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: undefined, + votingParams: undefined, + tallyParams: undefined + }; +} +export const GenesisState = { + typeUrl: "/cosmos.gov.v1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + Deposit.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/gov.js b/packages/api/dist/esm/cosmos/gov/v1/gov.js new file mode 100644 index 00000000..e7e99e71 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/gov.js @@ -0,0 +1,962 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { Any } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export var VoteOption; +(function (VoteOption) { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (VoteOption = {})); +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (ProposalStatus = {})); +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseWeightedVoteOption() { + return { + option: 0, + weight: "" + }; +} +export const WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + encode(message, writer = BinaryWriter.create()) { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = reader.int32(); + break; + case 2: + message.weight = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object) { + return WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/WeightedVoteOption", + value: WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message) { + return WeightedVoteOption.decode(message.value); + }, + toProto(message) { + return WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + value: WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const Deposit = { + typeUrl: "/cosmos.gov.v1.Deposit", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return Deposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Deposit", + value: Deposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Deposit.decode(message.value); + }, + toProto(message) { + return Deposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Deposit", + value: Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + id: BigInt(0), + messages: [], + status: 0, + finalTallyResult: undefined, + submitTime: undefined, + depositEndTime: undefined, + totalDeposit: [], + votingStartTime: undefined, + votingEndTime: undefined, + metadata: "" + }; +} +export const Proposal = { + typeUrl: "/cosmos.gov.v1.Proposal", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + for (const v of message.messages) { + Any.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + Coin.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(82).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Proposal.decode(message.value); + }, + toProto(message) { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.gov.v1.TallyResult", + encode(message, writer = BinaryWriter.create()) { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object) { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TallyResult.decode(message.value); + }, + toProto(message) { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +export const Vote = { + typeUrl: "/cosmos.gov.v1.Vote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 4: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Vote.decode(message.value); + }, + toProto(message) { + return Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams() { + return { + minDeposit: [], + maxDepositPeriod: undefined + }; +} +export const DepositParams = { + typeUrl: "/cosmos.gov.v1.DepositParams", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.minDeposit) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DepositParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/DepositParams", + value: DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DepositParams.decode(message.value); + }, + toProto(message) { + return DepositParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.DepositParams", + value: DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams() { + return { + votingPeriod: undefined + }; +} +export const VotingParams = { + typeUrl: "/cosmos.gov.v1.VotingParams", + encode(message, writer = BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return VotingParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/VotingParams", + value: VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return VotingParams.decode(message.value); + }, + toProto(message) { + return VotingParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.VotingParams", + value: VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams() { + return { + quorum: "", + threshold: "", + vetoThreshold: "" + }; +} +export const TallyParams = { + typeUrl: "/cosmos.gov.v1.TallyParams", + encode(message, writer = BinaryWriter.create()) { + if (message.quorum !== "") { + writer.uint32(10).string(message.quorum); + } + if (message.threshold !== "") { + writer.uint32(18).string(message.threshold); + } + if (message.vetoThreshold !== "") { + writer.uint32(26).string(message.vetoThreshold); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.string(); + break; + case 2: + message.threshold = reader.string(); + break; + case 3: + message.vetoThreshold = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? ""; + message.threshold = object.threshold ?? ""; + message.vetoThreshold = object.vetoThreshold ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = object.quorum; + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = object.veto_threshold; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.quorum = message.quorum === "" ? undefined : message.quorum; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; + return obj; + }, + fromAminoMsg(object) { + return TallyParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/TallyParams", + value: TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TallyParams.decode(message.value); + }, + toProto(message) { + return TallyParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.TallyParams", + value: TallyParams.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.js b/packages/api/dist/esm/cosmos/gov/v1/query.js new file mode 100644 index 00000000..423a99d1 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/query.js @@ -0,0 +1,1261 @@ +//@ts-nocheck +import { Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov"; +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: undefined + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest() { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +export const QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = reader.int32(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalsRequest", + value: QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + value: QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse() { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryProposalsResponse", + value: QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + value: QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVoteRequest", + value: QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteRequest.decode(message.value); + }, + toProto(message) { + return QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + value: QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse() { + return { + vote: undefined + }; +} +export const QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVoteResponse", + value: QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteResponse.decode(message.value); + }, + toProto(message) { + return QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + value: QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVotesRequest", + value: QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesRequest.decode(message.value); + }, + toProto(message) { + return QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + value: QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse() { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.votes) { + Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryVotesResponse", + value: QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesResponse.decode(message.value); + }, + toProto(message) { + return QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + value: QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return { + paramsType: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + votingParams: undefined, + depositParams: undefined, + tallyParams: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest() { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +export const QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositRequest", + value: QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositRequest.decode(message.value); + }, + toProto(message) { + return QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + value: QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse() { + return { + deposit: undefined + }; +} +export const QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.deposit !== undefined) { + Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositResponse", + value: QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositResponse.decode(message.value); + }, + toProto(message) { + return QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + value: QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositsRequest", + value: QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositsRequest.decode(message.value); + }, + toProto(message) { + return QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + value: QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse() { + return { + deposits: [], + pagination: undefined + }; +} +export const QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.deposits) { + Deposit.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryDepositsResponse", + value: QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositsResponse.decode(message.value); + }, + toProto(message) { + return QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + value: QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: undefined + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js b/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js new file mode 100644 index 00000000..a47eda0a --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js @@ -0,0 +1,83 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params) { + const options = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params) { + const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params) { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js new file mode 100644 index 00000000..4e083712 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js @@ -0,0 +1,87 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request) { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposals(request) { + const data = QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); + return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); + } + vote(request) { + const data = QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); + return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); + } + votes(request) { + const data = QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); + return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); + } + params(request) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + deposit(request) { + const data = QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); + return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); + } + deposits(request) { + const data = QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); + return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); + } + tallyResult(request) { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request) { + return queryService.proposal(request); + }, + proposals(request) { + return queryService.proposals(request); + }, + vote(request) { + return queryService.vote(request); + }, + votes(request) { + return queryService.votes(request); + }, + params(request) { + return queryService.params(request); + }, + deposit(request) { + return queryService.deposit(request); + }, + deposits(request) { + return queryService.deposits(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js b/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js new file mode 100644 index 00000000..396f3ab2 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js @@ -0,0 +1,29 @@ +//@ts-nocheck +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const AminoConverter = { + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/v1/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", + toAmino: MsgExecLegacyContent.toAmino, + fromAmino: MsgExecLegacyContent.fromAmino + }, + "/cosmos.gov.v1.MsgVote": { + aminoType: "cosmos-sdk/v1/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/v1/MsgVoteWeighted", + toAmino: MsgVoteWeighted.toAmino, + fromAmino: MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1.MsgDeposit": { + aminoType: "cosmos-sdk/v1/MsgDeposit", + toAmino: MsgDeposit.toAmino, + fromAmino: MsgDeposit.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.js b/packages/api/dist/esm/cosmos/gov/v1/tx.js new file mode 100644 index 00000000..6491cc9f --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/tx.js @@ -0,0 +1,832 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { Coin } from "../../base/v1beta1/coin"; +import { WeightedVoteOption } from "./gov"; +import { TextProposal } from "../v1beta1/gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgSubmitProposal() { + return { + messages: [], + initialDeposit: [], + proposer: "", + metadata: "" + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.messages) { + Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 2: + message.initialDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContent() { + return { + content: undefined, + authority: "" + }; +} +export const MsgExecLegacyContent = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + encode(message, writer = BinaryWriter.create()) { + if (message.content !== undefined) { + Any.encode(message.content, writer.uint32(10).fork()).ldelim(); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = Content_InterfaceDecoder(reader); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecLegacyContent(); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecLegacyContent(); + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content = message.content ? Content_ToAmino(message.content) : undefined; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object) { + return MsgExecLegacyContent.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContent", + value: MsgExecLegacyContent.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExecLegacyContent.decode(message.value); + }, + toProto(message) { + return MsgExecLegacyContent.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContentResponse() { + return {}; +} +export const MsgExecLegacyContentResponse = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContentResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgExecLegacyContentResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", + value: MsgExecLegacyContentResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExecLegacyContentResponse.decode(message.value); + }, + toProto(message) { + return MsgExecLegacyContentResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + value: MsgExecLegacyContentResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "" + }; +} +export const MsgVote = { + typeUrl: "/cosmos.gov.v1.MsgVote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVote.decode(message.value); + }, + toProto(message) { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted() { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +export const MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteWeighted", + value: MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteWeighted.decode(message.value); + }, + toProto(message) { + return MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse() { + return {}; +} +export const MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message) { + return MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const MsgDeposit = { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgDeposit", + value: MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDeposit.decode(message.value); + }, + toProto(message) { + return MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse() { + return {}; +} +export const MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/v1/MsgDepositResponse", + value: MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDepositResponse.decode(message.value); + }, + toProto(message) { + return MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + value: MsgDepositResponse.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/v1/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/v1/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js b/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js new file mode 100644 index 00000000..94989290 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js @@ -0,0 +1,105 @@ +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const registry = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + execLegacyContent(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js new file mode 100644 index 00000000..453f46fb --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js @@ -0,0 +1,38 @@ +import { BinaryReader } from "../../../binary"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.execLegacyContent = this.execLegacyContent.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request) { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + execLegacyContent(request) { + const data = MsgExecLegacyContent.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); + return promise.then(data => MsgExecLegacyContentResponse.decode(new BinaryReader(data))); + } + vote(request) { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + voteWeighted(request) { + const data = MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); + return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); + } + deposit(request) { + const data = MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); + return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js new file mode 100644 index 00000000..3d7b10ce --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js @@ -0,0 +1,153 @@ +//@ts-nocheck +import { Deposit, Vote, Proposal, DepositParams, VotingParams, TallyParams } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: DepositParams.fromPartial({}), + votingParams: VotingParams.fromPartial({}), + tallyParams: TallyParams.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + Deposit.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js b/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js new file mode 100644 index 00000000..637de443 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js @@ -0,0 +1,1062 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { Any } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export var VoteOption; +(function (VoteOption) { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (VoteOption = {})); +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (ProposalStatus = {})); +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseWeightedVoteOption() { + return { + option: 0, + weight: "" + }; +} +export const WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + encode(message, writer = BinaryWriter.create()) { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.weight, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = reader.int32(); + break; + case 2: + message.weight = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object) { + return WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/WeightedVoteOption", + value: WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message) { + return WeightedVoteOption.decode(message.value); + }, + toProto(message) { + return WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + value: WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseTextProposal() { + return { + $typeUrl: "/cosmos.gov.v1beta1.TextProposal", + title: "", + description: "" + }; +} +export const TextProposal = { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTextProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTextProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTextProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return TextProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TextProposal.decode(message.value); + }, + toProto(message) { + return TextProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(message).finish() + }; + } +}; +function createBaseDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const Deposit = { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return Deposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Deposit", + value: Deposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Deposit.decode(message.value); + }, + toProto(message) { + return Deposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + value: Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + proposalId: BigInt(0), + content: undefined, + status: 0, + finalTallyResult: TallyResult.fromPartial({}), + submitTime: new Date(), + depositEndTime: new Date(), + totalDeposit: [], + votingStartTime: new Date(), + votingEndTime: new Date() + }; +} +export const Proposal = { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.content !== undefined) { + Any.encode(message.content, writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + Coin.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.content = Content_InterfaceDecoder(reader); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.content = message.content ? Content_ToAmino(message.content) : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Proposal.decode(message.value); + }, + toProto(message) { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yes: "", + abstain: "", + no: "", + noWithVeto: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + encode(message, writer = BinaryWriter.create()) { + if (message.yes !== "") { + writer.uint32(10).string(message.yes); + } + if (message.abstain !== "") { + writer.uint32(18).string(message.abstain); + } + if (message.no !== "") { + writer.uint32(26).string(message.no); + } + if (message.noWithVeto !== "") { + writer.uint32(34).string(message.noWithVeto); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yes = reader.string(); + break; + case 2: + message.abstain = reader.string(); + break; + case 3: + message.no = reader.string(); + break; + case 4: + message.noWithVeto = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yes = object.yes ?? ""; + message.abstain = object.abstain ?? ""; + message.no = object.no ?? ""; + message.noWithVeto = object.noWithVeto ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes !== undefined && object.yes !== null) { + message.yes = object.yes; + } + if (object.abstain !== undefined && object.abstain !== null) { + message.abstain = object.abstain; + } + if (object.no !== undefined && object.no !== null) { + message.no = object.no; + } + if (object.no_with_veto !== undefined && object.no_with_veto !== null) { + message.noWithVeto = object.no_with_veto; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes = message.yes === "" ? undefined : message.yes; + obj.abstain = message.abstain === "" ? undefined : message.abstain; + obj.no = message.no === "" ? undefined : message.no; + obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; + return obj; + }, + fromAminoMsg(object) { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TallyResult.decode(message.value); + }, + toProto(message) { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + options: [] + }; +} +export const Vote = { + typeUrl: "/cosmos.gov.v1beta1.Vote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + for (const v of message.options) { + WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object) { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Vote.decode(message.value); + }, + toProto(message) { + return Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams() { + return { + minDeposit: [], + maxDepositPeriod: Duration.fromPartial({}) + }; +} +export const DepositParams = { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.minDeposit) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DepositParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DepositParams", + value: DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DepositParams.decode(message.value); + }, + toProto(message) { + return DepositParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + value: DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams() { + return { + votingPeriod: Duration.fromPartial({}) + }; +} +export const VotingParams = { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + encode(message, writer = BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return VotingParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/VotingParams", + value: VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return VotingParams.decode(message.value); + }, + toProto(message) { + return VotingParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + value: VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams() { + return { + quorum: new Uint8Array(), + threshold: new Uint8Array(), + vetoThreshold: new Uint8Array() + }; +} +export const TallyParams = { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + encode(message, writer = BinaryWriter.create()) { + if (message.quorum.length !== 0) { + writer.uint32(10).bytes(message.quorum); + } + if (message.threshold.length !== 0) { + writer.uint32(18).bytes(message.threshold); + } + if (message.vetoThreshold.length !== 0) { + writer.uint32(26).bytes(message.vetoThreshold); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.bytes(); + break; + case 2: + message.threshold = reader.bytes(); + break; + case 3: + message.vetoThreshold = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? new Uint8Array(); + message.threshold = object.threshold ?? new Uint8Array(); + message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = bytesFromBase64(object.quorum); + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = bytesFromBase64(object.threshold); + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = bytesFromBase64(object.veto_threshold); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.quorum = message.quorum ? base64FromBytes(message.quorum) : undefined; + obj.threshold = message.threshold ? base64FromBytes(message.threshold) : undefined; + obj.veto_threshold = message.vetoThreshold ? base64FromBytes(message.vetoThreshold) : undefined; + return obj; + }, + fromAminoMsg(object) { + return TallyParams.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyParams", + value: TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TallyParams.decode(message.value); + }, + toProto(message) { + return TallyParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + value: TallyParams.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.js new file mode 100644 index 00000000..42694bba --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/query.js @@ -0,0 +1,1261 @@ +//@ts-nocheck +import { Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov"; +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: Proposal.fromPartial({}) + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest() { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +export const QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = reader.int32(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsRequest", + value: QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + value: QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse() { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsResponse", + value: QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + value: QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteRequest", + value: QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteRequest.decode(message.value); + }, + toProto(message) { + return QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + value: QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse() { + return { + vote: Vote.fromPartial({}) + }; +} +export const QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteResponse", + value: QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteResponse.decode(message.value); + }, + toProto(message) { + return QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + value: QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesRequest", + value: QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesRequest.decode(message.value); + }, + toProto(message) { + return QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + value: QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse() { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.votes) { + Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesResponse", + value: QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesResponse.decode(message.value); + }, + toProto(message) { + return QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + value: QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return { + paramsType: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + votingParams: VotingParams.fromPartial({}), + depositParams: DepositParams.fromPartial({}), + tallyParams: TallyParams.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest() { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +export const QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositRequest", + value: QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositRequest.decode(message.value); + }, + toProto(message) { + return QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + value: QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse() { + return { + deposit: Deposit.fromPartial({}) + }; +} +export const QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.deposit !== undefined) { + Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositResponse", + value: QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositResponse.decode(message.value); + }, + toProto(message) { + return QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + value: QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositsRequest", + value: QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositsRequest.decode(message.value); + }, + toProto(message) { + return QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + value: QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse() { + return { + deposits: [], + pagination: undefined + }; +} +export const QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.deposits) { + Deposit.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } + else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDepositsResponse", + value: QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDepositsResponse.decode(message.value); + }, + toProto(message) { + return QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + value: QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: TallyResult.fromPartial({}) + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js new file mode 100644 index 00000000..e466aa96 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js @@ -0,0 +1,83 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params) { + const options = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params) { + const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params) { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..a35f7597 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js @@ -0,0 +1,87 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request) { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposals(request) { + const data = QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); + return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); + } + vote(request) { + const data = QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); + return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); + } + votes(request) { + const data = QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); + return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); + } + params(request) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + deposit(request) { + const data = QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); + return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); + } + deposits(request) { + const data = QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); + return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); + } + tallyResult(request) { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request) { + return queryService.proposal(request); + }, + proposals(request) { + return queryService.proposals(request); + }, + vote(request) { + return queryService.vote(request); + }, + votes(request) { + return queryService.votes(request); + }, + params(request) { + return queryService.params(request); + }, + deposit(request) { + return queryService.deposit(request); + }, + deposits(request) { + return queryService.deposits(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js new file mode 100644 index 00000000..c6e65148 --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const AminoConverter = { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: "cosmos-sdk/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/MsgVoteWeighted", + toAmino: MsgVoteWeighted.toAmino, + fromAmino: MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: "cosmos-sdk/MsgDeposit", + toAmino: MsgDeposit.toAmino, + fromAmino: MsgDeposit.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js new file mode 100644 index 00000000..988e013b --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js @@ -0,0 +1,655 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { Coin } from "../../base/v1beta1/coin"; +import { WeightedVoteOption, TextProposal } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgSubmitProposal() { + return { + content: undefined, + initialDeposit: [], + proposer: "" + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.content !== undefined) { + Any.encode(message.content, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = Content_InterfaceDecoder(reader); + break; + case 2: + message.initialDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content = message.content ? Content_ToAmino(message.content) : undefined; + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0 + }; +} +export const MsgVote = { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + return obj; + }, + fromAminoMsg(object) { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVote.decode(message.value); + }, + toProto(message) { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted() { + return { + proposalId: BigInt(0), + voter: "", + options: [] + }; +} +export const MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } + else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object) { + return MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteWeighted", + value: MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteWeighted.decode(message.value); + }, + toProto(message) { + return MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse() { + return {}; +} +export const MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message) { + return MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit() { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const MsgDeposit = { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDeposit", + value: MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDeposit.decode(message.value); + }, + toProto(message) { + return MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse() { + return {}; +} +export const MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDepositResponse", + value: MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDepositResponse.decode(message.value); + }, + toProto(message) { + return MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + value: MsgDepositResponse.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js new file mode 100644 index 00000000..b9119b4b --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js @@ -0,0 +1,87 @@ +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const registry = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + voteWeighted(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..7be0ba7e --- /dev/null +++ b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js @@ -0,0 +1,32 @@ +import { BinaryReader } from "../../../binary"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request) { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + vote(request) { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + voteWeighted(request) { + const data = MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); + return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); + } + deposit(request) { + const data = MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); + return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/group/v1/events.js b/packages/api/dist/esm/cosmos/group/v1/events.js new file mode 100644 index 00000000..8360b1a9 --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/events.js @@ -0,0 +1,658 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseEventCreateGroup() { + return { + groupId: BigInt(0) + }; +} +export const EventCreateGroup = { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventCreateGroup", + value: EventCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventCreateGroup.decode(message.value); + }, + toProto(message) { + return EventCreateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + value: EventCreateGroup.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroup() { + return { + groupId: BigInt(0) + }; +} +export const EventUpdateGroup = { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventUpdateGroup", + value: EventUpdateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventUpdateGroup.decode(message.value); + }, + toProto(message) { + return EventUpdateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + value: EventUpdateGroup.encode(message).finish() + }; + } +}; +function createBaseEventCreateGroupPolicy() { + return { + address: "" + }; +} +export const EventCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return EventCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventCreateGroupPolicy", + value: EventCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventCreateGroupPolicy.decode(message.value); + }, + toProto(message) { + return EventCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + value: EventCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroupPolicy() { + return { + address: "" + }; +} +export const EventUpdateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventUpdateGroupPolicy", + value: EventUpdateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventUpdateGroupPolicy.decode(message.value); + }, + toProto(message) { + return EventUpdateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + value: EventUpdateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventSubmitProposal() { + return { + proposalId: BigInt(0) + }; +} +export const EventSubmitProposal = { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSubmitProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventSubmitProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventSubmitProposal", + value: EventSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventSubmitProposal.decode(message.value); + }, + toProto(message) { + return EventSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + value: EventSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseEventWithdrawProposal() { + return { + proposalId: BigInt(0) + }; +} +export const EventWithdrawProposal = { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventWithdrawProposal", + value: EventWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventWithdrawProposal.decode(message.value); + }, + toProto(message) { + return EventWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + value: EventWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseEventVote() { + return { + proposalId: BigInt(0) + }; +} +export const EventVote = { + typeUrl: "/cosmos.group.v1.EventVote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventVote", + value: EventVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventVote.decode(message.value); + }, + toProto(message) { + return EventVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventVote", + value: EventVote.encode(message).finish() + }; + } +}; +function createBaseEventExec() { + return { + proposalId: BigInt(0), + result: 0, + logs: "" + }; +} +export const EventExec = { + typeUrl: "/cosmos.group.v1.EventExec", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + if (message.logs !== "") { + writer.uint32(26).string(message.logs); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.result = reader.int32(); + break; + case 3: + message.logs = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.result = object.result ?? 0; + message.logs = object.logs ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + if (object.logs !== undefined && object.logs !== null) { + message.logs = object.logs; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.result = message.result === 0 ? undefined : message.result; + obj.logs = message.logs === "" ? undefined : message.logs; + return obj; + }, + fromAminoMsg(object) { + return EventExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventExec", + value: EventExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventExec.decode(message.value); + }, + toProto(message) { + return EventExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventExec", + value: EventExec.encode(message).finish() + }; + } +}; +function createBaseEventLeaveGroup() { + return { + groupId: BigInt(0), + address: "" + }; +} +export const EventLeaveGroup = { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventLeaveGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventLeaveGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return EventLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/EventLeaveGroup", + value: EventLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return EventLeaveGroup.decode(message.value); + }, + toProto(message) { + return EventLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + value: EventLeaveGroup.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/genesis.js b/packages/api/dist/esm/cosmos/group/v1/genesis.js new file mode 100644 index 00000000..ee58fd5b --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/genesis.js @@ -0,0 +1,171 @@ +//@ts-nocheck +import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, Vote } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + groupSeq: BigInt(0), + groups: [], + groupMembers: [], + groupPolicySeq: BigInt(0), + groupPolicies: [], + proposalSeq: BigInt(0), + proposals: [], + votes: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.group.v1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.groupSeq !== BigInt(0)) { + writer.uint32(8).uint64(message.groupSeq); + } + for (const v of message.groups) { + GroupInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.groupMembers) { + GroupMember.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.groupPolicySeq !== BigInt(0)) { + writer.uint32(32).uint64(message.groupPolicySeq); + } + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v, writer.uint32(42).fork()).ldelim(); + } + if (message.proposalSeq !== BigInt(0)) { + writer.uint32(48).uint64(message.proposalSeq); + } + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupSeq = reader.uint64(); + break; + case 2: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 3: + message.groupMembers.push(GroupMember.decode(reader, reader.uint32())); + break; + case 4: + message.groupPolicySeq = reader.uint64(); + break; + case 5: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 6: + message.proposalSeq = reader.uint64(); + break; + case 7: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 8: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.groupMembers = object.groupMembers?.map(e => GroupMember.fromPartial(e)) || []; + message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.group_seq !== undefined && object.group_seq !== null) { + message.groupSeq = BigInt(object.group_seq); + } + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + message.groupMembers = object.group_members?.map(e => GroupMember.fromAmino(e)) || []; + if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { + message.groupPolicySeq = BigInt(object.group_policy_seq); + } + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.proposal_seq !== undefined && object.proposal_seq !== null) { + message.proposalSeq = BigInt(object.proposal_seq); + } + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + if (message.groupMembers) { + obj.group_members = message.groupMembers.map(e => e ? GroupMember.toAmino(e) : undefined); + } + else { + obj.group_members = message.groupMembers; + } + obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/query.js b/packages/api/dist/esm/cosmos/group/v1/query.js new file mode 100644 index 00000000..988ff64a --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/query.js @@ -0,0 +1,2026 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { GroupInfo, GroupPolicyInfo, GroupMember, Proposal, Vote, TallyResult } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryGroupInfoRequest() { + return { + groupId: BigInt(0) + }; +} +export const QueryGroupInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupInfoRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupInfoRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupInfoRequest", + value: QueryGroupInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupInfoRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + value: QueryGroupInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupInfoResponse() { + return { + info: undefined + }; +} +export const QueryGroupInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.info !== undefined) { + GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = GroupInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? GroupInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = GroupInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? GroupInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupInfoResponse", + value: QueryGroupInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupInfoResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + value: QueryGroupInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoRequest() { + return { + address: "" + }; +} +export const QueryGroupPolicyInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPolicyInfoRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPolicyInfoRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPolicyInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoRequest", + value: QueryGroupPolicyInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPolicyInfoRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupPolicyInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + value: QueryGroupPolicyInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoResponse() { + return { + info: undefined + }; +} +export const QueryGroupPolicyInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.info !== undefined) { + GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = GroupPolicyInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPolicyInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? GroupPolicyInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPolicyInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = GroupPolicyInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? GroupPolicyInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPolicyInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoResponse", + value: QueryGroupPolicyInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPolicyInfoResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupPolicyInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + value: QueryGroupPolicyInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersRequest() { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +export const QueryGroupMembersRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupMembersRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupMembersRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupMembersRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupMembersRequest", + value: QueryGroupMembersRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupMembersRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupMembersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + value: QueryGroupMembersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersResponse() { + return { + members: [], + pagination: undefined + }; +} +export const QueryGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.members) { + GroupMember.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.members.push(GroupMember.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => GroupMember.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => GroupMember.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.members) { + obj.members = message.members.map(e => e ? GroupMember.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupMembersResponse", + value: QueryGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupMembersResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + value: QueryGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +export const QueryGroupsByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupsByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByAdminRequest", + value: QueryGroupsByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupsByAdminRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + value: QueryGroupsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminResponse() { + return { + groups: [], + pagination: undefined + }; +} +export const QueryGroupsByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.groups) { + GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupsByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByAdminResponse", + value: QueryGroupsByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupsByAdminResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + value: QueryGroupsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupRequest() { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +export const QueryGroupPoliciesByGroupRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPoliciesByGroupRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", + value: QueryGroupPoliciesByGroupRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPoliciesByGroupRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupPoliciesByGroupRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + value: QueryGroupPoliciesByGroupRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupResponse() { + return { + groupPolicies: [], + pagination: undefined + }; +} +export const QueryGroupPoliciesByGroupResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPoliciesByGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", + value: QueryGroupPoliciesByGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPoliciesByGroupResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupPoliciesByGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + value: QueryGroupPoliciesByGroupResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +export const QueryGroupPoliciesByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPoliciesByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", + value: QueryGroupPoliciesByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPoliciesByAdminRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupPoliciesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + value: QueryGroupPoliciesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminResponse() { + return { + groupPolicies: [], + pagination: undefined + }; +} +export const QueryGroupPoliciesByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } + else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupPoliciesByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", + value: QueryGroupPoliciesByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupPoliciesByAdminResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupPoliciesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + value: QueryGroupPoliciesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse() { + return { + proposal: undefined + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyRequest() { + return { + address: "", + pagination: undefined + }; +} +export const QueryProposalsByGroupPolicyRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsByGroupPolicyRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", + value: QueryProposalsByGroupPolicyRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsByGroupPolicyRequest.decode(message.value); + }, + toProto(message) { + return QueryProposalsByGroupPolicyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + value: QueryProposalsByGroupPolicyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyResponse() { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsByGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.proposals) { + Proposal.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } + else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProposalsByGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", + value: QueryProposalsByGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryProposalsByGroupPolicyResponse.decode(message.value); + }, + toProto(message) { + return QueryProposalsByGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + value: QueryProposalsByGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterRequest() { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteByProposalVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteByProposalVoterRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteByProposalVoterRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteByProposalVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterRequest", + value: QueryVoteByProposalVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteByProposalVoterRequest.decode(message.value); + }, + toProto(message) { + return QueryVoteByProposalVoterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + value: QueryVoteByProposalVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterResponse() { + return { + vote: undefined + }; +} +export const QueryVoteByProposalVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVoteByProposalVoterResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVoteByProposalVoterResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVoteByProposalVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterResponse", + value: QueryVoteByProposalVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVoteByProposalVoterResponse.decode(message.value); + }, + toProto(message) { + return QueryVoteByProposalVoterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + value: QueryVoteByProposalVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalRequest() { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesByProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesByProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByProposalRequest", + value: QueryVotesByProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesByProposalRequest.decode(message.value); + }, + toProto(message) { + return QueryVotesByProposalRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + value: QueryVotesByProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalResponse() { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesByProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.votes) { + Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesByProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByProposalResponse", + value: QueryVotesByProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesByProposalResponse.decode(message.value); + }, + toProto(message) { + return QueryVotesByProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + value: QueryVotesByProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterRequest() { + return { + voter: "", + pagination: undefined + }; +} +export const QueryVotesByVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.voter !== "") { + writer.uint32(10).string(message.voter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByVoterRequest(); + message.voter = object.voter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByVoterRequest(); + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesByVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByVoterRequest", + value: QueryVotesByVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesByVoterRequest.decode(message.value); + }, + toProto(message) { + return QueryVotesByVoterRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + value: QueryVotesByVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterResponse() { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesByVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.votes) { + Vote.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryVotesByVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryVotesByVoterResponse", + value: QueryVotesByVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryVotesByVoterResponse.decode(message.value); + }, + toProto(message) { + return QueryVotesByVoterResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + value: QueryVotesByVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberRequest() { + return { + address: "", + pagination: undefined + }; +} +export const QueryGroupsByMemberRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByMemberRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupsByMemberRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByMemberRequest", + value: QueryGroupsByMemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupsByMemberRequest.decode(message.value); + }, + toProto(message) { + return QueryGroupsByMemberRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + value: QueryGroupsByMemberRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberResponse() { + return { + groups: [], + pagination: undefined + }; +} +export const QueryGroupsByMemberResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.groups) { + GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } + else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryGroupsByMemberResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryGroupsByMemberResponse", + value: QueryGroupsByMemberResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryGroupsByMemberResponse.decode(message.value); + }, + toProto(message) { + return QueryGroupsByMemberResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + value: QueryGroupsByMemberResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest() { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message) { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse() { + return { + tally: TallyResult.fromPartial({}) + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message) { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/query.lcd.js b/packages/api/dist/esm/cosmos/group/v1/query.lcd.js new file mode 100644 index 00000000..62fb885c --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/query.lcd.js @@ -0,0 +1,138 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* GroupInfo queries group info based on group id. */ + async groupInfo(params) { + const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; + return await this.req.get(endpoint); + } + /* GroupPolicyInfo queries group policy info based on account address of group policy. */ + async groupPolicyInfo(params) { + const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; + return await this.req.get(endpoint); + } + /* GroupMembers queries members of a group */ + async groupMembers(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries groups by admin address. */ + async groupsByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* GroupPoliciesByGroup queries group policies by group id. */ + async groupPoliciesByGroup(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries group policies by admin address. */ + async groupPoliciesByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Proposal queries a proposal based on proposal id. */ + async proposal(params) { + const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ + async proposalsByGroupPolicy(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; + return await this.req.get(endpoint, options); + } + /* VoteByProposalVoter queries a vote by proposal id and voter. */ + async voteByProposalVoter(params) { + const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; + return await this.req.get(endpoint); + } + /* VotesByProposal queries a vote by proposal. */ + async votesByProposal(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; + return await this.req.get(endpoint, options); + } + /* VotesByVoter queries a vote by voter. */ + async votesByVoter(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; + return await this.req.get(endpoint, options); + } + /* GroupsByMember queries groups by member address. */ + async groupsByMember(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TallyResult returns the tally result of a proposal. If the proposal is + still in voting period, then this query computes the current tally state, + which might not be final. On the other hand, if the proposal is final, + then it simply returns the `final_tally_result` state stored in the + proposal itself. */ + async tallyResult(params) { + const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js new file mode 100644 index 00000000..9d2d72aa --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js @@ -0,0 +1,132 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + groupInfo(request) { + const data = QueryGroupInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); + return promise.then(data => QueryGroupInfoResponse.decode(new BinaryReader(data))); + } + groupPolicyInfo(request) { + const data = QueryGroupPolicyInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); + return promise.then(data => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data))); + } + groupMembers(request) { + const data = QueryGroupMembersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); + return promise.then(data => QueryGroupMembersResponse.decode(new BinaryReader(data))); + } + groupsByAdmin(request) { + const data = QueryGroupsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); + return promise.then(data => QueryGroupsByAdminResponse.decode(new BinaryReader(data))); + } + groupPoliciesByGroup(request) { + const data = QueryGroupPoliciesByGroupRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); + return promise.then(data => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data))); + } + groupPoliciesByAdmin(request) { + const data = QueryGroupPoliciesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); + return promise.then(data => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data))); + } + proposal(request) { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposalsByGroupPolicy(request) { + const data = QueryProposalsByGroupPolicyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); + return promise.then(data => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data))); + } + voteByProposalVoter(request) { + const data = QueryVoteByProposalVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); + return promise.then(data => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data))); + } + votesByProposal(request) { + const data = QueryVotesByProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); + return promise.then(data => QueryVotesByProposalResponse.decode(new BinaryReader(data))); + } + votesByVoter(request) { + const data = QueryVotesByVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); + return promise.then(data => QueryVotesByVoterResponse.decode(new BinaryReader(data))); + } + groupsByMember(request) { + const data = QueryGroupsByMemberRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); + return promise.then(data => QueryGroupsByMemberResponse.decode(new BinaryReader(data))); + } + tallyResult(request) { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + groupInfo(request) { + return queryService.groupInfo(request); + }, + groupPolicyInfo(request) { + return queryService.groupPolicyInfo(request); + }, + groupMembers(request) { + return queryService.groupMembers(request); + }, + groupsByAdmin(request) { + return queryService.groupsByAdmin(request); + }, + groupPoliciesByGroup(request) { + return queryService.groupPoliciesByGroup(request); + }, + groupPoliciesByAdmin(request) { + return queryService.groupPoliciesByAdmin(request); + }, + proposal(request) { + return queryService.proposal(request); + }, + proposalsByGroupPolicy(request) { + return queryService.proposalsByGroupPolicy(request); + }, + voteByProposalVoter(request) { + return queryService.voteByProposalVoter(request); + }, + votesByProposal(request) { + return queryService.votesByProposal(request); + }, + votesByVoter(request) { + return queryService.votesByVoter(request); + }, + groupsByMember(request) { + return queryService.groupsByMember(request); + }, + tallyResult(request) { + return queryService.tallyResult(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.amino.js b/packages/api/dist/esm/cosmos/group/v1/tx.amino.js new file mode 100644 index 00000000..8e1710f5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/tx.amino.js @@ -0,0 +1,74 @@ +//@ts-nocheck +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export const AminoConverter = { + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: "cosmos-sdk/MsgCreateGroup", + toAmino: MsgCreateGroup.toAmino, + fromAmino: MsgCreateGroup.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: "cosmos-sdk/MsgUpdateGroupMembers", + toAmino: MsgUpdateGroupMembers.toAmino, + fromAmino: MsgUpdateGroupMembers.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", + toAmino: MsgUpdateGroupAdmin.toAmino, + fromAmino: MsgUpdateGroupAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", + toAmino: MsgUpdateGroupMetadata.toAmino, + fromAmino: MsgUpdateGroupMetadata.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupPolicy", + toAmino: MsgCreateGroupPolicy.toAmino, + fromAmino: MsgCreateGroupPolicy.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", + toAmino: MsgCreateGroupWithPolicy.toAmino, + fromAmino: MsgCreateGroupWithPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + toAmino: MsgUpdateGroupPolicyAdmin.toAmino, + fromAmino: MsgUpdateGroupPolicyAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + toAmino: MsgUpdateGroupPolicyDecisionPolicy.toAmino, + fromAmino: MsgUpdateGroupPolicyDecisionPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + toAmino: MsgUpdateGroupPolicyMetadata.toAmino, + fromAmino: MsgUpdateGroupPolicyMetadata.fromAmino + }, + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/group/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: "cosmos-sdk/group/MsgWithdrawProposal", + toAmino: MsgWithdrawProposal.toAmino, + fromAmino: MsgWithdrawProposal.fromAmino + }, + "/cosmos.group.v1.MsgVote": { + aminoType: "cosmos-sdk/group/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.group.v1.MsgExec": { + aminoType: "cosmos-sdk/group/MsgExec", + toAmino: MsgExec.toAmino, + fromAmino: MsgExec.fromAmino + }, + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: "cosmos-sdk/group/MsgLeaveGroup", + toAmino: MsgLeaveGroup.toAmino, + fromAmino: MsgLeaveGroup.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.js b/packages/api/dist/esm/cosmos/group/v1/tx.js new file mode 100644 index 00000000..f3475d36 --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/tx.js @@ -0,0 +1,2330 @@ +//@ts-nocheck +import { MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy } from "./types"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Exec defines modes of execution of a proposal on creation or on new vote. */ +export var Exec; +(function (Exec) { + /** + * EXEC_UNSPECIFIED - An empty value means that there should be a separate + * MsgExec request for the proposal to execute. + */ + Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED"; + /** + * EXEC_TRY - Try to execute the proposal immediately. + * If the proposal is not allowed per the DecisionPolicy, + * the proposal will still be open and could + * be executed at a later point. + */ + Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY"; + Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(Exec || (Exec = {})); +export const ExecSDKType = Exec; +export const ExecAmino = Exec; +export function execFromJSON(object) { + switch (object) { + case 0: + case "EXEC_UNSPECIFIED": + return Exec.EXEC_UNSPECIFIED; + case 1: + case "EXEC_TRY": + return Exec.EXEC_TRY; + case -1: + case "UNRECOGNIZED": + default: + return Exec.UNRECOGNIZED; + } +} +export function execToJSON(object) { + switch (object) { + case Exec.EXEC_UNSPECIFIED: + return "EXEC_UNSPECIFIED"; + case Exec.EXEC_TRY: + return "EXEC_TRY"; + case Exec.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseMsgCreateGroup() { + return { + admin: "", + members: [], + metadata: "" + }; +} +export const MsgCreateGroup = { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroup(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroup(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroup", + value: MsgCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroup.decode(message.value); + }, + toProto(message) { + return MsgCreateGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupResponse() { + return { + groupId: BigInt(0) + }; +} +export const MsgCreateGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupResponse", + value: MsgCreateGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroupResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + value: MsgCreateGroupResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembers() { + return { + admin: "", + groupId: BigInt(0), + memberUpdates: [] + }; +} +export const MsgUpdateGroupMembers = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + for (const v of message.memberUpdates) { + MemberRequest.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupMembers(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupMembers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + if (message.memberUpdates) { + obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined); + } + else { + obj.member_updates = message.memberUpdates; + } + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupMembers.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupMembers.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupMembers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembersResponse() { + return {}; +} +export const MsgUpdateGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMembersResponse", + value: MsgUpdateGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupMembersResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + value: MsgUpdateGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdmin() { + return { + admin: "", + groupId: BigInt(0), + newAdmin: "" + }; +} +export const MsgUpdateGroupAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupAdmin(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupAdmin.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdminResponse() { + return {}; +} +export const MsgUpdateGroupAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupAdminResponse", + value: MsgUpdateGroupAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupAdminResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + value: MsgUpdateGroupAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadata() { + return { + admin: "", + groupId: BigInt(0), + metadata: "" + }; +} +export const MsgUpdateGroupMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupMetadata(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadataResponse() { + return {}; +} +export const MsgUpdateGroupMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", + value: MsgUpdateGroupMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + value: MsgUpdateGroupMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicy() { + return { + admin: "", + groupId: BigInt(0), + metadata: "", + decisionPolicy: undefined + }; +} +export const MsgCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.decisionPolicy !== undefined) { + Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupPolicy(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroupPolicy.decode(message.value); + }, + toProto(message) { + return MsgCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicyResponse() { + return { + address: "" + }; +} +export const MsgCreateGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupPolicyResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupPolicyResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupPolicyResponse", + value: MsgCreateGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroupPolicyResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + value: MsgCreateGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdmin() { + return { + admin: "", + groupPolicyAddress: "", + newAdmin: "" + }; +} +export const MsgUpdateGroupPolicyAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyAdmin.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdminResponse() { + return {}; +} +export const MsgUpdateGroupPolicyAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", + value: MsgUpdateGroupPolicyAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyAdminResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicy() { + return { + admin: "", + members: [], + groupMetadata: "", + groupPolicyMetadata: "", + groupPolicyAsAdmin: false, + decisionPolicy: undefined + }; +} +export const MsgCreateGroupWithPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.groupMetadata !== "") { + writer.uint32(26).string(message.groupMetadata); + } + if (message.groupPolicyMetadata !== "") { + writer.uint32(34).string(message.groupPolicyMetadata); + } + if (message.groupPolicyAsAdmin === true) { + writer.uint32(40).bool(message.groupPolicyAsAdmin); + } + if (message.decisionPolicy !== undefined) { + Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.groupMetadata = reader.string(); + break; + case 4: + message.groupPolicyMetadata = reader.string(); + break; + case 5: + message.groupPolicyAsAdmin = reader.bool(); + break; + case 6: + message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupWithPolicy(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; + message.groupMetadata = object.groupMetadata ?? ""; + message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; + message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupWithPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; + if (object.group_metadata !== undefined && object.group_metadata !== null) { + message.groupMetadata = object.group_metadata; + } + if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { + message.groupPolicyMetadata = object.group_policy_metadata; + } + if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { + message.groupPolicyAsAdmin = object.group_policy_as_admin; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); + } + else { + obj.members = message.members; + } + obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; + obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; + obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroupWithPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroupWithPolicy.decode(message.value); + }, + toProto(message) { + return MsgCreateGroupWithPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicyResponse() { + return { + groupId: BigInt(0), + groupPolicyAddress: "" + }; +} +export const MsgCreateGroupWithPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateGroupWithPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", + value: MsgCreateGroupWithPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateGroupWithPolicyResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateGroupWithPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + value: MsgCreateGroupWithPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicy() { + return { + admin: "", + groupPolicyAddress: "", + decisionPolicy: undefined + }; +} +export const MsgUpdateGroupPolicyDecisionPolicy = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.decisionPolicy !== undefined) { + Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() { + return {}; +} +export const MsgUpdateGroupPolicyDecisionPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", + value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadata() { + return { + admin: "", + groupPolicyAddress: "", + metadata: "" + }; +} +export const MsgUpdateGroupPolicyMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadataResponse() { + return {}; +} +export const MsgUpdateGroupPolicyMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", + value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateGroupPolicyMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposal() { + return { + groupPolicyAddress: "", + proposers: [], + metadata: "", + messages: [], + exec: 0 + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.groupPolicyAddress !== "") { + writer.uint32(10).string(message.groupPolicyAddress); + } + for (const v of message.proposers) { + writer.uint32(18).string(v); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.messages) { + Any.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicyAddress = reader.string(); + break; + case 2: + message.proposers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 5: + message.exec = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposal(); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposal(); + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } + else { + obj.proposers = message.proposers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse() { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message) { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposal() { + return { + proposalId: BigInt(0), + address: "" + }; +} +export const MsgWithdrawProposal = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgWithdrawProposal", + value: MsgWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawProposal.decode(message.value); + }, + toProto(message) { + return MsgWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposalResponse() { + return {}; +} +export const MsgWithdrawProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgWithdrawProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgWithdrawProposalResponse", + value: MsgWithdrawProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgWithdrawProposalResponse.decode(message.value); + }, + toProto(message) { + return MsgWithdrawProposalResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + value: MsgWithdrawProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + exec: 0 + }; +} +export const MsgVote = { + typeUrl: "/cosmos.group.v1.MsgVote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.exec = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object) { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVote.decode(message.value); + }, + toProto(message) { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse() { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgVoteResponse.decode(message.value); + }, + toProto(message) { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec() { + return { + proposalId: BigInt(0), + executor: "" + }; +} +export const MsgExec = { + typeUrl: "/cosmos.group.v1.MsgExec", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.executor !== "") { + writer.uint32(18).string(message.executor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.executor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.executor = object.executor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.executor !== undefined && object.executor !== null) { + message.executor = object.executor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.executor = message.executor === "" ? undefined : message.executor; + return obj; + }, + fromAminoMsg(object) { + return MsgExec.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgExec", + value: MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExec.decode(message.value); + }, + toProto(message) { + return MsgExec.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse() { + return { + result: 0 + }; +} +export const MsgExecResponse = { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.result = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgExecResponse(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgExecResponse(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object) { + return MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgExecResponse", + value: MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgExecResponse.decode(message.value); + }, + toProto(message) { + return MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + value: MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroup() { + return { + address: "", + groupId: BigInt(0) + }; +} +export const MsgLeaveGroup = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgLeaveGroup(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgLeaveGroup(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/group/MsgLeaveGroup", + value: MsgLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgLeaveGroup.decode(message.value); + }, + toProto(message) { + return MsgLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroupResponse() { + return {}; +} +export const MsgLeaveGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgLeaveGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgLeaveGroupResponse", + value: MsgLeaveGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgLeaveGroupResponse.decode(message.value); + }, + toProto(message) { + return MsgLeaveGroupResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + value: MsgLeaveGroupResponse.encode(message).finish() + }; + } +}; +export const DecisionPolicy_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +export const DecisionPolicy_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const DecisionPolicy_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.registry.js b/packages/api/dist/esm/cosmos/group/v1/tx.registry.js new file mode 100644 index 00000000..324f1a24 --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/tx.registry.js @@ -0,0 +1,267 @@ +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export const registry = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.encode(value).finish() + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.encode(value).finish() + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.encode(value).finish() + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.encode(value).finish() + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.encode(value).finish() + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.encode(value).finish() + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.encode(value).finish() + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.encode(value).finish() + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.encode(value).finish() + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.encode(value).finish() + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.encode(value).finish() + }; + } + }, + withTypeUrl: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value + }; + } + }, + fromPartial: { + createGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.fromPartial(value) + }; + }, + updateGroupMembers(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.fromPartial(value) + }; + }, + updateGroupAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.fromPartial(value) + }; + }, + updateGroupMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.fromPartial(value) + }; + }, + createGroupPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.fromPartial(value) + }; + }, + createGroupWithPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.fromPartial(value) + }; + }, + updateGroupPolicyAdmin(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.fromPartial(value) + }; + }, + updateGroupPolicyDecisionPolicy(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) + }; + }, + updateGroupPolicyMetadata(value) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.fromPartial(value) + }; + }, + submitProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + withdrawProposal(value) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.fromPartial(value) + }; + }, + vote(value) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + exec(value) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.fromPartial(value) + }; + }, + leaveGroup(value) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js new file mode 100644 index 00000000..b313f99c --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js @@ -0,0 +1,92 @@ +import { BinaryReader } from "../../../binary"; +import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createGroup = this.createGroup.bind(this); + this.updateGroupMembers = this.updateGroupMembers.bind(this); + this.updateGroupAdmin = this.updateGroupAdmin.bind(this); + this.updateGroupMetadata = this.updateGroupMetadata.bind(this); + this.createGroupPolicy = this.createGroupPolicy.bind(this); + this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); + this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); + this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); + this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); + this.submitProposal = this.submitProposal.bind(this); + this.withdrawProposal = this.withdrawProposal.bind(this); + this.vote = this.vote.bind(this); + this.exec = this.exec.bind(this); + this.leaveGroup = this.leaveGroup.bind(this); + } + createGroup(request) { + const data = MsgCreateGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); + return promise.then(data => MsgCreateGroupResponse.decode(new BinaryReader(data))); + } + updateGroupMembers(request) { + const data = MsgUpdateGroupMembers.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); + return promise.then(data => MsgUpdateGroupMembersResponse.decode(new BinaryReader(data))); + } + updateGroupAdmin(request) { + const data = MsgUpdateGroupAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); + return promise.then(data => MsgUpdateGroupAdminResponse.decode(new BinaryReader(data))); + } + updateGroupMetadata(request) { + const data = MsgUpdateGroupMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); + return promise.then(data => MsgUpdateGroupMetadataResponse.decode(new BinaryReader(data))); + } + createGroupPolicy(request) { + const data = MsgCreateGroupPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); + return promise.then(data => MsgCreateGroupPolicyResponse.decode(new BinaryReader(data))); + } + createGroupWithPolicy(request) { + const data = MsgCreateGroupWithPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); + return promise.then(data => MsgCreateGroupWithPolicyResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyAdmin(request) { + const data = MsgUpdateGroupPolicyAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); + return promise.then(data => MsgUpdateGroupPolicyAdminResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyDecisionPolicy(request) { + const data = MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); + return promise.then(data => MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyMetadata(request) { + const data = MsgUpdateGroupPolicyMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); + return promise.then(data => MsgUpdateGroupPolicyMetadataResponse.decode(new BinaryReader(data))); + } + submitProposal(request) { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + withdrawProposal(request) { + const data = MsgWithdrawProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); + return promise.then(data => MsgWithdrawProposalResponse.decode(new BinaryReader(data))); + } + vote(request) { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + exec(request) { + const data = MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); + return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); + } + leaveGroup(request) { + const data = MsgLeaveGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); + return promise.then(data => MsgLeaveGroupResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/group/v1/types.js b/packages/api/dist/esm/cosmos/group/v1/types.js new file mode 100644 index 00000000..be16d42c --- /dev/null +++ b/packages/api/dist/esm/cosmos/group/v1/types.js @@ -0,0 +1,1459 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration } from "../../../google/protobuf/duration"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given proposal. */ +export var VoteOption; +(function (VoteOption) { + /** + * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + * return an error. + */ + VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; + VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(VoteOption || (VoteOption = {})); +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object) { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object) { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus defines proposal statuses. */ +export var ProposalStatus; +(function (ProposalStatus) { + /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; + /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED"; + /** + * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome + * passes the group policy's decision policy. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED"; + /** + * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome + * is rejected by the group policy's decision policy. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED"; + /** + * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the + * final tally. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED"; + /** + * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. + * When this happens the final status is Withdrawn. + */ + ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN"; + ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalStatus || (ProposalStatus = {})); +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_SUBMITTED": + return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; + case 2: + case "PROPOSAL_STATUS_ACCEPTED": + return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; + case 3: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 4: + case "PROPOSAL_STATUS_ABORTED": + return ProposalStatus.PROPOSAL_STATUS_ABORTED; + case 5: + case "PROPOSAL_STATUS_WITHDRAWN": + return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object) { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: + return "PROPOSAL_STATUS_SUBMITTED"; + case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: + return "PROPOSAL_STATUS_ACCEPTED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_ABORTED: + return "PROPOSAL_STATUS_ABORTED"; + case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: + return "PROPOSAL_STATUS_WITHDRAWN"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalExecutorResult defines types of proposal executor results. */ +export var ProposalExecutorResult; +(function (ProposalExecutorResult) { + /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; + /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; + /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; + /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ + ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ProposalExecutorResult || (ProposalExecutorResult = {})); +export const ProposalExecutorResultSDKType = ProposalExecutorResult; +export const ProposalExecutorResultAmino = ProposalExecutorResult; +export function proposalExecutorResultFromJSON(object) { + switch (object) { + case 0: + case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; + case 1: + case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; + case 2: + case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; + case 3: + case "PROPOSAL_EXECUTOR_RESULT_FAILURE": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; + case -1: + case "UNRECOGNIZED": + default: + return ProposalExecutorResult.UNRECOGNIZED; + } +} +export function proposalExecutorResultToJSON(object) { + switch (object) { + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: + return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: + return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: + return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: + return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + case ProposalExecutorResult.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseMember() { + return { + address: "", + weight: "", + metadata: "", + addedAt: new Date() + }; +} +export const Member = { + typeUrl: "/cosmos.group.v1.Member", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.addedAt !== undefined) { + Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMember(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + message.addedAt = object.addedAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMember(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.added_at !== undefined && object.added_at !== null) { + message.addedAt = fromTimestamp(Timestamp.fromAmino(object.added_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.added_at = message.addedAt ? Timestamp.toAmino(toTimestamp(message.addedAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Member.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Member", + value: Member.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Member.decode(message.value); + }, + toProto(message) { + return Member.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Member", + value: Member.encode(message).finish() + }; + } +}; +function createBaseMemberRequest() { + return { + address: "", + weight: "", + metadata: "" + }; +} +export const MemberRequest = { + typeUrl: "/cosmos.group.v1.MemberRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMemberRequest(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MemberRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MemberRequest", + value: MemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MemberRequest.decode(message.value); + }, + toProto(message) { + return MemberRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.MemberRequest", + value: MemberRequest.encode(message).finish() + }; + } +}; +function createBaseThresholdDecisionPolicy() { + return { + $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + threshold: "", + windows: undefined + }; +} +export const ThresholdDecisionPolicy = { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.threshold !== "") { + writer.uint32(10).string(message.threshold); + } + if (message.windows !== undefined) { + DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseThresholdDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.string(); + break; + case 2: + message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseThresholdDecisionPolicy(); + message.threshold = object.threshold ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseThresholdDecisionPolicy(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ThresholdDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ThresholdDecisionPolicy.decode(message.value); + }, + toProto(message) { + return ThresholdDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(message).finish() + }; + } +}; +function createBasePercentageDecisionPolicy() { + return { + $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + percentage: "", + windows: undefined + }; +} +export const PercentageDecisionPolicy = { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + encode(message, writer = BinaryWriter.create()) { + if (message.percentage !== "") { + writer.uint32(10).string(message.percentage); + } + if (message.windows !== undefined) { + DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePercentageDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.percentage = reader.string(); + break; + case 2: + message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePercentageDecisionPolicy(); + message.percentage = object.percentage ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePercentageDecisionPolicy(); + if (object.percentage !== undefined && object.percentage !== null) { + message.percentage = object.percentage; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.percentage = message.percentage === "" ? undefined : message.percentage; + obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PercentageDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PercentageDecisionPolicy.decode(message.value); + }, + toProto(message) { + return PercentageDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseDecisionPolicyWindows() { + return { + votingPeriod: Duration.fromPartial({}), + minExecutionPeriod: Duration.fromPartial({}) + }; +} +export const DecisionPolicyWindows = { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + encode(message, writer = BinaryWriter.create()) { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + if (message.minExecutionPeriod !== undefined) { + Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecisionPolicyWindows(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + case 2: + message.minExecutionPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDecisionPolicyWindows(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDecisionPolicyWindows(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + if (object.min_execution_period !== undefined && object.min_execution_period !== null) { + message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DecisionPolicyWindows.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DecisionPolicyWindows", + value: DecisionPolicyWindows.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DecisionPolicyWindows.decode(message.value); + }, + toProto(message) { + return DecisionPolicyWindows.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + value: DecisionPolicyWindows.encode(message).finish() + }; + } +}; +function createBaseGroupInfo() { + return { + id: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + totalWeight: "", + createdAt: new Date() + }; +} +export const GroupInfo = { + typeUrl: "/cosmos.group.v1.GroupInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(32).uint64(message.version); + } + if (message.totalWeight !== "") { + writer.uint32(42).string(message.totalWeight); + } + if (message.createdAt !== undefined) { + Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.version = reader.uint64(); + break; + case 5: + message.totalWeight = reader.string(); + break; + case 6: + message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.totalWeight = object.totalWeight ?? ""; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.total_weight !== undefined && object.total_weight !== null) { + message.totalWeight = object.total_weight; + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; + obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GroupInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupInfo", + value: GroupInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GroupInfo.decode(message.value); + }, + toProto(message) { + return GroupInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupInfo", + value: GroupInfo.encode(message).finish() + }; + } +}; +function createBaseGroupMember() { + return { + groupId: BigInt(0), + member: undefined + }; +} +export const GroupMember = { + typeUrl: "/cosmos.group.v1.GroupMember", + encode(message, writer = BinaryWriter.create()) { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.member !== undefined) { + Member.encode(message.member, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.member = Member.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupMember(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupMember(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.member !== undefined && object.member !== null) { + message.member = Member.fromAmino(object.member); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.member = message.member ? Member.toAmino(message.member) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GroupMember.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupMember", + value: GroupMember.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GroupMember.decode(message.value); + }, + toProto(message) { + return GroupMember.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupMember", + value: GroupMember.encode(message).finish() + }; + } +}; +function createBaseGroupPolicyInfo() { + return { + address: "", + groupId: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + decisionPolicy: undefined, + createdAt: new Date() + }; +} +export const GroupPolicyInfo = { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.admin !== "") { + writer.uint32(26).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(40).uint64(message.version); + } + if (message.decisionPolicy !== undefined) { + Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); + } + if (message.createdAt !== undefined) { + Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupPolicyInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.admin = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.version = reader.uint64(); + break; + case 6: + message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); + break; + case 7: + message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGroupPolicyInfo(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGroupPolicyInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; + obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GroupPolicyInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GroupPolicyInfo", + value: GroupPolicyInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GroupPolicyInfo.decode(message.value); + }, + toProto(message) { + return GroupPolicyInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + value: GroupPolicyInfo.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + id: BigInt(0), + groupPolicyAddress: "", + metadata: "", + proposers: [], + submitTime: new Date(), + groupVersion: BigInt(0), + groupPolicyVersion: BigInt(0), + status: 0, + finalTallyResult: TallyResult.fromPartial({}), + votingPeriodEnd: new Date(), + executorResult: 0, + messages: [] + }; +} +export const Proposal = { + typeUrl: "/cosmos.group.v1.Proposal", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.proposers) { + writer.uint32(34).string(v); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.groupVersion !== BigInt(0)) { + writer.uint32(48).uint64(message.groupVersion); + } + if (message.groupPolicyVersion !== BigInt(0)) { + writer.uint32(56).uint64(message.groupPolicyVersion); + } + if (message.status !== 0) { + writer.uint32(64).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); + } + if (message.votingPeriodEnd !== undefined) { + Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); + } + if (message.executorResult !== 0) { + writer.uint32(88).int32(message.executorResult); + } + for (const v of message.messages) { + Any.encode(v, writer.uint32(98).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.proposers.push(reader.string()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.groupVersion = reader.uint64(); + break; + case 7: + message.groupPolicyVersion = reader.uint64(); + break; + case 8: + message.status = reader.int32(); + break; + case 9: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 10: + message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 11: + message.executorResult = reader.int32(); + break; + case 12: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.submitTime = object.submitTime ?? undefined; + message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); + message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; + message.executorResult = object.executorResult ?? 0; + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.group_version !== undefined && object.group_version !== null) { + message.groupVersion = BigInt(object.group_version); + } + if (object.group_policy_version !== undefined && object.group_policy_version !== null) { + message.groupPolicyVersion = BigInt(object.group_policy_version); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.voting_period_end !== undefined && object.voting_period_end !== null) { + message.votingPeriodEnd = fromTimestamp(Timestamp.fromAmino(object.voting_period_end)); + } + if (object.executor_result !== undefined && object.executor_result !== null) { + message.executorResult = object.executor_result; + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } + else { + obj.proposers = message.proposers; + } + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; + obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(toTimestamp(message.votingPeriodEnd)) : undefined; + obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + return obj; + }, + fromAminoMsg(object) { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Proposal.decode(message.value); + }, + toProto(message) { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult() { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.group.v1.TallyResult", + encode(message, writer = BinaryWriter.create()) { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object) { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TallyResult.decode(message.value); + }, + toProto(message) { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + submitTime: new Date() + }; +} +export const Vote = { + typeUrl: "/cosmos.group.v1.Vote", + encode(message, writer = BinaryWriter.create()) { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = reader.int32(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.submitTime = object.submitTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Vote.decode(message.value); + }, + toProto(message) { + return Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.group.v1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +export const DecisionPolicy_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +export const DecisionPolicy_FromAmino = (content) => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const DecisionPolicy_ToAmino = (content) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; diff --git a/packages/api/dist/esm/cosmos/lcd.js b/packages/api/dist/esm/cosmos/lcd.js new file mode 100644 index 00000000..464d1d1c --- /dev/null +++ b/packages/api/dist/esm/cosmos/lcd.js @@ -0,0 +1,81 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("./auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("./authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("./bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("./base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("./distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("./feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("./gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("./gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("./group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("./mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("./params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("./staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("./tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("./upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js new file mode 100644 index 00000000..dd2f0dde --- /dev/null +++ b/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js @@ -0,0 +1,84 @@ +//@ts-nocheck +import { Minter, Params } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + minter: Minter.fromPartial({}), + params: Params.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.minter !== undefined) { + Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minter = Minter.decode(reader, reader.uint32()); + break; + case 2: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.minter !== undefined && object.minter !== null) { + message.minter = Minter.fromAmino(object.minter); + } + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.minter = message.minter ? Minter.toAmino(message.minter) : undefined; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js b/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js new file mode 100644 index 00000000..aaa78a76 --- /dev/null +++ b/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js @@ -0,0 +1,213 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +function createBaseMinter() { + return { + inflation: "", + annualProvisions: "" + }; +} +export const Minter = { + typeUrl: "/cosmos.mint.v1beta1.Minter", + encode(message, writer = BinaryWriter.create()) { + if (message.inflation !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.inflation, 18).atomics); + } + if (message.annualProvisions !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.annualProvisions, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMinter(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.annualProvisions = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMinter(); + message.inflation = object.inflation ?? ""; + message.annualProvisions = object.annualProvisions ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMinter(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = object.inflation; + } + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = object.annual_provisions; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.inflation = message.inflation === "" ? undefined : message.inflation; + obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; + return obj; + }, + fromAminoMsg(object) { + return Minter.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Minter", + value: Minter.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Minter.decode(message.value); + }, + toProto(message) { + return Minter.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.Minter", + value: Minter.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + mintDenom: "", + inflationRateChange: "", + inflationMax: "", + inflationMin: "", + goalBonded: "", + blocksPerYear: BigInt(0) + }; +} +export const Params = { + typeUrl: "/cosmos.mint.v1beta1.Params", + encode(message, writer = BinaryWriter.create()) { + if (message.mintDenom !== "") { + writer.uint32(10).string(message.mintDenom); + } + if (message.inflationRateChange !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.inflationRateChange, 18).atomics); + } + if (message.inflationMax !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.inflationMax, 18).atomics); + } + if (message.inflationMin !== "") { + writer.uint32(34).string(Decimal.fromUserInput(message.inflationMin, 18).atomics); + } + if (message.goalBonded !== "") { + writer.uint32(42).string(Decimal.fromUserInput(message.goalBonded, 18).atomics); + } + if (message.blocksPerYear !== BigInt(0)) { + writer.uint32(48).uint64(message.blocksPerYear); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mintDenom = reader.string(); + break; + case 2: + message.inflationRateChange = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.inflationMax = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.inflationMin = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 5: + message.goalBonded = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 6: + message.blocksPerYear = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.mintDenom = object.mintDenom ?? ""; + message.inflationRateChange = object.inflationRateChange ?? ""; + message.inflationMax = object.inflationMax ?? ""; + message.inflationMin = object.inflationMin ?? ""; + message.goalBonded = object.goalBonded ?? ""; + message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.mint_denom !== undefined && object.mint_denom !== null) { + message.mintDenom = object.mint_denom; + } + if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { + message.inflationRateChange = object.inflation_rate_change; + } + if (object.inflation_max !== undefined && object.inflation_max !== null) { + message.inflationMax = object.inflation_max; + } + if (object.inflation_min !== undefined && object.inflation_min !== null) { + message.inflationMin = object.inflation_min; + } + if (object.goal_bonded !== undefined && object.goal_bonded !== null) { + message.goalBonded = object.goal_bonded; + } + if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { + message.blocksPerYear = BigInt(object.blocks_per_year); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; + obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; + obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; + obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; + obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; + obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.js new file mode 100644 index 00000000..1b7ce20f --- /dev/null +++ b/packages/api/dist/esm/cosmos/mint/v1beta1/query.js @@ -0,0 +1,379 @@ +//@ts-nocheck +import { Params } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryInflationRequest() { + return {}; +} +export const QueryInflationRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryInflationRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryInflationRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryInflationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryInflationRequest", + value: QueryInflationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryInflationRequest.decode(message.value); + }, + toProto(message) { + return QueryInflationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + value: QueryInflationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInflationResponse() { + return { + inflation: new Uint8Array() + }; +} +export const QueryInflationResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.inflation.length !== 0) { + writer.uint32(10).bytes(message.inflation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInflationResponse(); + message.inflation = object.inflation ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryInflationResponse(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = bytesFromBase64(object.inflation); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.inflation = message.inflation ? base64FromBytes(message.inflation) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryInflationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryInflationResponse", + value: QueryInflationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryInflationResponse.decode(message.value); + }, + toProto(message) { + return QueryInflationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + value: QueryInflationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsRequest() { + return {}; +} +export const QueryAnnualProvisionsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryAnnualProvisionsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAnnualProvisionsRequest", + value: QueryAnnualProvisionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAnnualProvisionsRequest.decode(message.value); + }, + toProto(message) { + return QueryAnnualProvisionsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + value: QueryAnnualProvisionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsResponse() { + return { + annualProvisions: new Uint8Array() + }; +} +export const QueryAnnualProvisionsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.annualProvisions.length !== 0) { + writer.uint32(10).bytes(message.annualProvisions); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annualProvisions = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnnualProvisionsResponse(); + message.annualProvisions = object.annualProvisions ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnnualProvisionsResponse(); + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = bytesFromBase64(object.annual_provisions); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.annual_provisions = message.annualProvisions ? base64FromBytes(message.annualProvisions) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAnnualProvisionsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAnnualProvisionsResponse", + value: QueryAnnualProvisionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAnnualProvisionsResponse.decode(message.value); + }, + toProto(message) { + return QueryAnnualProvisionsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + value: QueryAnnualProvisionsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js new file mode 100644 index 00000000..4bb5f508 --- /dev/null +++ b/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js @@ -0,0 +1,24 @@ +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + /* Params returns the total set of minting parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/params`; + return await this.req.get(endpoint); + } + /* Inflation returns the current minting inflation value. */ + async inflation(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/inflation`; + return await this.req.get(endpoint); + } + /* AnnualProvisions current minting annual provisions value. */ + async annualProvisions(_params = {}) { + const endpoint = `cosmos/mint/v1beta1/annual_provisions`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..b498800e --- /dev/null +++ b/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js @@ -0,0 +1,42 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + inflation(request = {}) { + const data = QueryInflationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); + return promise.then(data => QueryInflationResponse.decode(new BinaryReader(data))); + } + annualProvisions(request = {}) { + const data = QueryAnnualProvisionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); + return promise.then(data => QueryAnnualProvisionsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + inflation(request) { + return queryService.inflation(request); + }, + annualProvisions(request) { + return queryService.annualProvisions(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/msg/v1/msg.js b/packages/api/dist/esm/cosmos/msg/v1/msg.js new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/esm/cosmos/msg/v1/msg.js @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js b/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js new file mode 100644 index 00000000..00efbfc3 --- /dev/null +++ b/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js @@ -0,0 +1,58 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseModule() { + return {}; +} +export const Module = { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseModule(); + return message; + }, + fromAmino(_) { + const message = createBaseModule(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return Module.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Module.decode(message.value); + }, + toProto(message) { + return Module.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + value: Module.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/orm/v1/orm.js b/packages/api/dist/esm/cosmos/orm/v1/orm.js new file mode 100644 index 00000000..51920125 --- /dev/null +++ b/packages/api/dist/esm/cosmos/orm/v1/orm.js @@ -0,0 +1,341 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseTableDescriptor() { + return { + primaryKey: undefined, + index: [], + id: 0 + }; +} +export const TableDescriptor = { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.primaryKey !== undefined) { + PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.index) { + SecondaryIndexDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.id !== 0) { + writer.uint32(24).uint32(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTableDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTableDescriptor(); + message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; + message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || []; + message.id = object.id ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseTableDescriptor(); + if (object.primary_key !== undefined && object.primary_key !== null) { + message.primaryKey = PrimaryKeyDescriptor.fromAmino(object.primary_key); + } + message.index = object.index?.map(e => SecondaryIndexDescriptor.fromAmino(e)) || []; + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.primary_key = message.primaryKey ? PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; + if (message.index) { + obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toAmino(e) : undefined); + } + else { + obj.index = message.index; + } + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return TableDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TableDescriptor", + value: TableDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TableDescriptor.decode(message.value); + }, + toProto(message) { + return TableDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + value: TableDescriptor.encode(message).finish() + }; + } +}; +function createBasePrimaryKeyDescriptor() { + return { + fields: "", + autoIncrement: false + }; +} +export const PrimaryKeyDescriptor = { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.autoIncrement === true) { + writer.uint32(16).bool(message.autoIncrement); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrimaryKeyDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.autoIncrement = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePrimaryKeyDescriptor(); + message.fields = object.fields ?? ""; + message.autoIncrement = object.autoIncrement ?? false; + return message; + }, + fromAmino(object) { + const message = createBasePrimaryKeyDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.auto_increment !== undefined && object.auto_increment !== null) { + message.autoIncrement = object.auto_increment; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; + return obj; + }, + fromAminoMsg(object) { + return PrimaryKeyDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PrimaryKeyDescriptor", + value: PrimaryKeyDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PrimaryKeyDescriptor.decode(message.value); + }, + toProto(message) { + return PrimaryKeyDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + value: PrimaryKeyDescriptor.encode(message).finish() + }; + } +}; +function createBaseSecondaryIndexDescriptor() { + return { + fields: "", + id: 0, + unique: false + }; +} +export const SecondaryIndexDescriptor = { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.id !== 0) { + writer.uint32(16).uint32(message.id); + } + if (message.unique === true) { + writer.uint32(24).bool(message.unique); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSecondaryIndexDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.id = reader.uint32(); + break; + case 3: + message.unique = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSecondaryIndexDescriptor(); + message.fields = object.fields ?? ""; + message.id = object.id ?? 0; + message.unique = object.unique ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSecondaryIndexDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.unique !== undefined && object.unique !== null) { + message.unique = object.unique; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.id = message.id === 0 ? undefined : message.id; + obj.unique = message.unique === false ? undefined : message.unique; + return obj; + }, + fromAminoMsg(object) { + return SecondaryIndexDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SecondaryIndexDescriptor", + value: SecondaryIndexDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SecondaryIndexDescriptor.decode(message.value); + }, + toProto(message) { + return SecondaryIndexDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + value: SecondaryIndexDescriptor.encode(message).finish() + }; + } +}; +function createBaseSingletonDescriptor() { + return { + id: 0 + }; +} +export const SingletonDescriptor = { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== 0) { + writer.uint32(8).uint32(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSingletonDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSingletonDescriptor(); + message.id = object.id ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseSingletonDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object) { + return SingletonDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SingletonDescriptor", + value: SingletonDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SingletonDescriptor.decode(message.value); + }, + toProto(message) { + return SingletonDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + value: SingletonDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/params.js b/packages/api/dist/esm/cosmos/params/v1beta1/params.js new file mode 100644 index 00000000..f82aa198 --- /dev/null +++ b/packages/api/dist/esm/cosmos/params/v1beta1/params.js @@ -0,0 +1,192 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseParameterChangeProposal() { + return { + $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + title: "", + description: "", + changes: [] + }; +} +export const ParameterChangeProposal = { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + for (const v of message.changes) { + ParamChange.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParameterChangeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.changes.push(ParamChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParameterChangeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.changes = object.changes?.map(e => ParamChange.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParameterChangeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.changes = object.changes?.map(e => ParamChange.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + if (message.changes) { + obj.changes = message.changes.map(e => e ? ParamChange.toAmino(e) : undefined); + } + else { + obj.changes = message.changes; + } + return obj; + }, + fromAminoMsg(object) { + return ParameterChangeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ParameterChangeProposal", + value: ParameterChangeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ParameterChangeProposal.decode(message.value); + }, + toProto(message) { + return ParameterChangeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + value: ParameterChangeProposal.encode(message).finish() + }; + } +}; +function createBaseParamChange() { + return { + subspace: "", + key: "", + value: "" + }; +} +export const ParamChange = { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + encode(message, writer = BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + if (message.value !== "") { + writer.uint32(26).string(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParamChange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + case 3: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParamChange(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseParamChange(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object) { + return ParamChange.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ParamChange", + value: ParamChange.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ParamChange.decode(message.value); + }, + toProto(message) { + return ParamChange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + value: ParamChange.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.js new file mode 100644 index 00000000..5afa1aa4 --- /dev/null +++ b/packages/api/dist/esm/cosmos/params/v1beta1/query.js @@ -0,0 +1,365 @@ +//@ts-nocheck +import { ParamChange } from "./params"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryParamsRequest() { + return { + subspace: "", + key: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsRequest(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsRequest(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + param: ParamChange.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.param !== undefined) { + ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.param = ParamChange.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.param = object.param !== undefined && object.param !== null ? ParamChange.fromPartial(object.param) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.param !== undefined && object.param !== null) { + message.param = ParamChange.fromAmino(object.param); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.param = message.param ? ParamChange.toAmino(message.param) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesRequest() { + return {}; +} +export const QuerySubspacesRequest = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QuerySubspacesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySubspacesRequest", + value: QuerySubspacesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySubspacesRequest.decode(message.value); + }, + toProto(message) { + return QuerySubspacesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + value: QuerySubspacesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesResponse() { + return { + subspaces: [] + }; +} +export const QuerySubspacesResponse = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.subspaces) { + Subspace.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspaces.push(Subspace.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => Subspace.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => Subspace.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.subspaces) { + obj.subspaces = message.subspaces.map(e => e ? Subspace.toAmino(e) : undefined); + } + else { + obj.subspaces = message.subspaces; + } + return obj; + }, + fromAminoMsg(object) { + return QuerySubspacesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QuerySubspacesResponse", + value: QuerySubspacesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QuerySubspacesResponse.decode(message.value); + }, + toProto(message) { + return QuerySubspacesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + value: QuerySubspacesResponse.encode(message).finish() + }; + } +}; +function createBaseSubspace() { + return { + subspace: "", + keys: [] + }; +} +export const Subspace = { + typeUrl: "/cosmos.params.v1beta1.Subspace", + encode(message, writer = BinaryWriter.create()) { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + for (const v of message.keys) { + writer.uint32(18).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSubspace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.keys.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSubspace(); + message.subspace = object.subspace ?? ""; + message.keys = object.keys?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSubspace(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + message.keys = object.keys?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + if (message.keys) { + obj.keys = message.keys.map(e => e); + } + else { + obj.keys = message.keys; + } + return obj; + }, + fromAminoMsg(object) { + return Subspace.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Subspace", + value: Subspace.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Subspace.decode(message.value); + }, + toProto(message) { + return Subspace.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.params.v1beta1.Subspace", + value: Subspace.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js new file mode 100644 index 00000000..b3668695 --- /dev/null +++ b/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js @@ -0,0 +1,30 @@ +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + /* Params queries a specific parameter of a module, given its subspace and + key. */ + async params(params) { + const options = { + params: {} + }; + if (typeof params?.subspace !== "undefined") { + options.params.subspace = params.subspace; + } + if (typeof params?.key !== "undefined") { + options.params.key = params.key; + } + const endpoint = `cosmos/params/v1beta1/params`; + return await this.req.get(endpoint, options); + } + /* Subspaces queries for all registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 */ + async subspaces(_params = {}) { + const endpoint = `cosmos/params/v1beta1/subspaces`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..6139240a --- /dev/null +++ b/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js @@ -0,0 +1,33 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + params(request) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + subspaces(request = {}) { + const data = QuerySubspacesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); + return promise.then(data => QuerySubspacesResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request) { + return queryService.params(request); + }, + subspaces(request) { + return queryService.subspaces(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/rpc.query.js b/packages/api/dist/esm/cosmos/rpc.query.js new file mode 100644 index 00000000..1030eb0d --- /dev/null +++ b/packages/api/dist/esm/cosmos/rpc.query.js @@ -0,0 +1,53 @@ +//@ts-nocheck +import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("./base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("./feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("./gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("./group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("./mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("./params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/rpc.tx.js b/packages/api/dist/esm/cosmos/rpc.tx.js new file mode 100644 index 00000000..b9ea66c8 --- /dev/null +++ b/packages/api/dist/esm/cosmos/rpc.tx.js @@ -0,0 +1,32 @@ +export const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("./feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("./gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("./group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("./vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js b/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js new file mode 100644 index 00000000..87905b09 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js @@ -0,0 +1,235 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * AuthorizationType defines the type of staking module authorization type + * + * Since: cosmos-sdk 0.43 + */ +export var AuthorizationType; +(function (AuthorizationType) { + /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNSPECIFIED"] = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED"; + /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_DELEGATE"] = 1] = "AUTHORIZATION_TYPE_DELEGATE"; + /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNDELEGATE"] = 2] = "AUTHORIZATION_TYPE_UNDELEGATE"; + /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ + AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_REDELEGATE"] = 3] = "AUTHORIZATION_TYPE_REDELEGATE"; + AuthorizationType[AuthorizationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(AuthorizationType || (AuthorizationType = {})); +export const AuthorizationTypeSDKType = AuthorizationType; +export const AuthorizationTypeAmino = AuthorizationType; +export function authorizationTypeFromJSON(object) { + switch (object) { + case 0: + case "AUTHORIZATION_TYPE_UNSPECIFIED": + return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: + case "AUTHORIZATION_TYPE_DELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; + case 2: + case "AUTHORIZATION_TYPE_UNDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; + case 3: + case "AUTHORIZATION_TYPE_REDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; + case -1: + case "UNRECOGNIZED": + default: + return AuthorizationType.UNRECOGNIZED; + } +} +export function authorizationTypeToJSON(object) { + switch (object) { + case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: + return "AUTHORIZATION_TYPE_UNSPECIFIED"; + case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: + return "AUTHORIZATION_TYPE_DELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: + return "AUTHORIZATION_TYPE_UNDELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: + return "AUTHORIZATION_TYPE_REDELEGATE"; + case AuthorizationType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseStakeAuthorization() { + return { + $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + maxTokens: undefined, + allowList: undefined, + denyList: undefined, + authorizationType: 0 + }; +} +export const StakeAuthorization = { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + encode(message, writer = BinaryWriter.create()) { + if (message.maxTokens !== undefined) { + Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); + } + if (message.allowList !== undefined) { + StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); + } + if (message.denyList !== undefined) { + StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); + } + if (message.authorizationType !== 0) { + writer.uint32(32).int32(message.authorizationType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTokens = Coin.decode(reader, reader.uint32()); + break; + case 2: + message.allowList = StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 3: + message.denyList = StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 4: + message.authorizationType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStakeAuthorization(); + message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? Coin.fromPartial(object.maxTokens) : undefined; + message.allowList = object.allowList !== undefined && object.allowList !== null ? StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; + message.denyList = object.denyList !== undefined && object.denyList !== null ? StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; + message.authorizationType = object.authorizationType ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseStakeAuthorization(); + if (object.max_tokens !== undefined && object.max_tokens !== null) { + message.maxTokens = Coin.fromAmino(object.max_tokens); + } + if (object.allow_list !== undefined && object.allow_list !== null) { + message.allowList = StakeAuthorization_Validators.fromAmino(object.allow_list); + } + if (object.deny_list !== undefined && object.deny_list !== null) { + message.denyList = StakeAuthorization_Validators.fromAmino(object.deny_list); + } + if (object.authorization_type !== undefined && object.authorization_type !== null) { + message.authorizationType = object.authorization_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_tokens = message.maxTokens ? Coin.toAmino(message.maxTokens) : undefined; + obj.allow_list = message.allowList ? StakeAuthorization_Validators.toAmino(message.allowList) : undefined; + obj.deny_list = message.denyList ? StakeAuthorization_Validators.toAmino(message.denyList) : undefined; + obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; + return obj; + }, + fromAminoMsg(object) { + return StakeAuthorization.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/StakeAuthorization", + value: StakeAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message) { + return StakeAuthorization.decode(message.value); + }, + toProto(message) { + return StakeAuthorization.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: StakeAuthorization.encode(message).finish() + }; + } +}; +function createBaseStakeAuthorization_Validators() { + return { + address: [] + }; +} +export const StakeAuthorization_Validators = { + typeUrl: "/cosmos.staking.v1beta1.Validators", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.address) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization_Validators(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.address) { + obj.address = message.address.map(e => e); + } + else { + obj.address = message.address; + } + return obj; + }, + fromAminoMsg(object) { + return StakeAuthorization_Validators.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Validators", + value: StakeAuthorization_Validators.toAmino(message) + }; + }, + fromProtoMsg(message) { + return StakeAuthorization_Validators.decode(message.value); + }, + toProto(message) { + return StakeAuthorization_Validators.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Validators", + value: StakeAuthorization_Validators.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js new file mode 100644 index 00000000..06ab3121 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js @@ -0,0 +1,253 @@ +//@ts-nocheck +import { Params, Validator, Delegation, UnbondingDelegation, Redelegation } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseGenesisState() { + return { + params: Params.fromPartial({}), + lastTotalPower: new Uint8Array(), + lastValidatorPowers: [], + validators: [], + delegations: [], + unbondingDelegations: [], + redelegations: [], + exported: false + }; +} +export const GenesisState = { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.lastTotalPower.length !== 0) { + writer.uint32(18).bytes(message.lastTotalPower); + } + for (const v of message.lastValidatorPowers) { + LastValidatorPower.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + Validator.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.delegations) { + Delegation.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.unbondingDelegations) { + UnbondingDelegation.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.redelegations) { + Redelegation.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.exported === true) { + writer.uint32(64).bool(message.exported); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.lastTotalPower = reader.bytes(); + break; + case 3: + message.lastValidatorPowers.push(LastValidatorPower.decode(reader, reader.uint32())); + break; + case 4: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 5: + message.delegations.push(Delegation.decode(reader, reader.uint32())); + break; + case 6: + message.unbondingDelegations.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 7: + message.redelegations.push(Redelegation.decode(reader, reader.uint32())); + break; + case 8: + message.exported = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); + message.lastValidatorPowers = object.lastValidatorPowers?.map(e => LastValidatorPower.fromPartial(e)) || []; + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.delegations = object.delegations?.map(e => Delegation.fromPartial(e)) || []; + message.unbondingDelegations = object.unbondingDelegations?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.redelegations = object.redelegations?.map(e => Redelegation.fromPartial(e)) || []; + message.exported = object.exported ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.last_total_power !== undefined && object.last_total_power !== null) { + message.lastTotalPower = bytesFromBase64(object.last_total_power); + } + message.lastValidatorPowers = object.last_validator_powers?.map(e => LastValidatorPower.fromAmino(e)) || []; + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + message.delegations = object.delegations?.map(e => Delegation.fromAmino(e)) || []; + message.unbondingDelegations = object.unbonding_delegations?.map(e => UnbondingDelegation.fromAmino(e)) || []; + message.redelegations = object.redelegations?.map(e => Redelegation.fromAmino(e)) || []; + if (object.exported !== undefined && object.exported !== null) { + message.exported = object.exported; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.last_total_power = message.lastTotalPower ? base64FromBytes(message.lastTotalPower) : undefined; + if (message.lastValidatorPowers) { + obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toAmino(e) : undefined); + } + else { + obj.last_validator_powers = message.lastValidatorPowers; + } + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + if (message.delegations) { + obj.delegations = message.delegations.map(e => e ? Delegation.toAmino(e) : undefined); + } + else { + obj.delegations = message.delegations; + } + if (message.unbondingDelegations) { + obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_delegations = message.unbondingDelegations; + } + if (message.redelegations) { + obj.redelegations = message.redelegations.map(e => e ? Redelegation.toAmino(e) : undefined); + } + else { + obj.redelegations = message.redelegations; + } + obj.exported = message.exported === false ? undefined : message.exported; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseLastValidatorPower() { + return { + address: "", + power: BigInt(0) + }; +} +export const LastValidatorPower = { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLastValidatorPower(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLastValidatorPower(); + message.address = object.address ?? ""; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseLastValidatorPower(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return LastValidatorPower.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/LastValidatorPower", + value: LastValidatorPower.toAmino(message) + }; + }, + fromProtoMsg(message) { + return LastValidatorPower.decode(message.value); + }, + toProto(message) { + return LastValidatorPower.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + value: LastValidatorPower.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.js new file mode 100644 index 00000000..11f45c15 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/query.js @@ -0,0 +1,2159 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { Validator, DelegationResponse, UnbondingDelegation, RedelegationResponse, HistoricalInfo, Pool, Params } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryValidatorsRequest() { + return { + status: "", + pagination: undefined + }; +} +export const QueryValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorsRequest(); + message.status = object.status ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorsRequest(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === "" ? undefined : message.status; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorsRequest", + value: QueryValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorsRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + value: QueryValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorsResponse() { + return { + validators: [], + pagination: undefined + }; +} +export const QueryValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validators) { + Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorsResponse", + value: QueryValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorsResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + value: QueryValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorRequest() { + return { + validatorAddr: "" + }; +} +export const QueryValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorRequest", + value: QueryValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + value: QueryValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorResponse() { + return { + validator: Validator.fromPartial({}) + }; +} +export const QueryValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorResponse", + value: QueryValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + value: QueryValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsRequest() { + return { + validatorAddr: "", + pagination: undefined + }; +} +export const QueryValidatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorDelegationsRequest", + value: QueryValidatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorDelegationsRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + value: QueryValidatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsResponse() { + return { + delegationResponses: [], + pagination: undefined + }; +} +export const QueryValidatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.delegationResponses) { + DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); + } + else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorDelegationsResponse", + value: QueryValidatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorDelegationsResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + value: QueryValidatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsRequest() { + return { + validatorAddr: "", + pagination: undefined + }; +} +export const QueryValidatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", + value: QueryValidatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message) { + return QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + value: QueryValidatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsResponse() { + return { + unbondingResponses: [], + pagination: undefined + }; +} +export const QueryValidatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.unbondingResponses) { + UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", + value: QueryValidatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryValidatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message) { + return QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + value: QueryValidatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationRequest", + value: QueryDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + value: QueryDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationResponse() { + return { + delegationResponse: undefined + }; +} +export const QueryDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.delegationResponse !== undefined) { + DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponse = DelegationResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegationResponse(); + message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? DelegationResponse.fromPartial(object.delegationResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegationResponse(); + if (object.delegation_response !== undefined && object.delegation_response !== null) { + message.delegationResponse = DelegationResponse.fromAmino(object.delegation_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegation_response = message.delegationResponse ? DelegationResponse.toAmino(message.delegationResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegationResponse", + value: QueryDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegationResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + value: QueryDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryUnbondingDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUnbondingDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUnbondingDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return QueryUnbondingDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUnbondingDelegationRequest", + value: QueryUnbondingDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUnbondingDelegationRequest.decode(message.value); + }, + toProto(message) { + return QueryUnbondingDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + value: QueryUnbondingDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationResponse() { + return { + unbond: UnbondingDelegation.fromPartial({}) + }; +} +export const QueryUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.unbond !== undefined) { + UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbond = UnbondingDelegation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUnbondingDelegationResponse(); + message.unbond = object.unbond !== undefined && object.unbond !== null ? UnbondingDelegation.fromPartial(object.unbond) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUnbondingDelegationResponse(); + if (object.unbond !== undefined && object.unbond !== null) { + message.unbond = UnbondingDelegation.fromAmino(object.unbond); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.unbond = message.unbond ? UnbondingDelegation.toAmino(message.unbond) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUnbondingDelegationResponse", + value: QueryUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUnbondingDelegationResponse.decode(message.value); + }, + toProto(message) { + return QueryUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + value: QueryUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsRequest", + value: QueryDelegatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorDelegationsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + value: QueryDelegatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsResponse() { + return { + delegationResponses: [], + pagination: undefined + }; +} +export const QueryDelegatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.delegationResponses) { + DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); + } + else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsResponse", + value: QueryDelegatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorDelegationsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + value: QueryDelegatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", + value: QueryDelegatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + value: QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsResponse() { + return { + unbondingResponses: [], + pagination: undefined + }; +} +export const QueryDelegatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.unbondingResponses) { + UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } + else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", + value: QueryDelegatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + value: QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsRequest() { + return { + delegatorAddr: "", + srcValidatorAddr: "", + dstValidatorAddr: "", + pagination: undefined + }; +} +export const QueryRedelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.srcValidatorAddr !== "") { + writer.uint32(18).string(message.srcValidatorAddr); + } + if (message.dstValidatorAddr !== "") { + writer.uint32(26).string(message.dstValidatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.srcValidatorAddr = reader.string(); + break; + case 3: + message.dstValidatorAddr = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryRedelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.srcValidatorAddr = object.srcValidatorAddr ?? ""; + message.dstValidatorAddr = object.dstValidatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryRedelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { + message.srcValidatorAddr = object.src_validator_addr; + } + if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { + message.dstValidatorAddr = object.dst_validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; + obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryRedelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryRedelegationsRequest", + value: QueryRedelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryRedelegationsRequest.decode(message.value); + }, + toProto(message) { + return QueryRedelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + value: QueryRedelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsResponse() { + return { + redelegationResponses: [], + pagination: undefined + }; +} +export const QueryRedelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.redelegationResponses) { + RedelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegationResponses?.map(e => RedelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegation_responses?.map(e => RedelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.redelegationResponses) { + obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined); + } + else { + obj.redelegation_responses = message.redelegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryRedelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryRedelegationsResponse", + value: QueryRedelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryRedelegationsResponse.decode(message.value); + }, + toProto(message) { + return QueryRedelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + value: QueryRedelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest() { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse() { + return { + validators: [], + pagination: undefined + }; +} +export const QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validators) { + Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorRequest() { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryDelegatorValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorRequest", + value: QueryDelegatorValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorRequest.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + value: QueryDelegatorValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorResponse() { + return { + validator: Validator.fromPartial({}) + }; +} +export const QueryDelegatorValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDelegatorValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDelegatorValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDelegatorValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDelegatorValidatorResponse", + value: QueryDelegatorValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDelegatorValidatorResponse.decode(message.value); + }, + toProto(message) { + return QueryDelegatorValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + value: QueryDelegatorValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoRequest() { + return { + height: BigInt(0) + }; +} +export const QueryHistoricalInfoRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryHistoricalInfoRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryHistoricalInfoRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryHistoricalInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryHistoricalInfoRequest", + value: QueryHistoricalInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryHistoricalInfoRequest.decode(message.value); + }, + toProto(message) { + return QueryHistoricalInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + value: QueryHistoricalInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoResponse() { + return { + hist: undefined + }; +} +export const QueryHistoricalInfoResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.hist !== undefined) { + HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hist = HistoricalInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryHistoricalInfoResponse(); + message.hist = object.hist !== undefined && object.hist !== null ? HistoricalInfo.fromPartial(object.hist) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryHistoricalInfoResponse(); + if (object.hist !== undefined && object.hist !== null) { + message.hist = HistoricalInfo.fromAmino(object.hist); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hist = message.hist ? HistoricalInfo.toAmino(message.hist) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryHistoricalInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryHistoricalInfoResponse", + value: QueryHistoricalInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryHistoricalInfoResponse.decode(message.value); + }, + toProto(message) { + return QueryHistoricalInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + value: QueryHistoricalInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryPoolRequest() { + return {}; +} +export const QueryPoolRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryPoolRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryPoolRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryPoolRequest", + value: QueryPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryPoolRequest.decode(message.value); + }, + toProto(message) { + return QueryPoolRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + value: QueryPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryPoolResponse() { + return { + pool: Pool.fromPartial({}) + }; +} +export const QueryPoolResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.pool !== undefined) { + Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool = Pool.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryPoolResponse(); + message.pool = object.pool !== undefined && object.pool !== null ? Pool.fromPartial(object.pool) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryPoolResponse(); + if (object.pool !== undefined && object.pool !== null) { + message.pool = Pool.fromAmino(object.pool); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pool = message.pool ? Pool.toAmino(message.pool) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryPoolResponse", + value: QueryPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryPoolResponse.decode(message.value); + }, + toProto(message) { + return QueryPoolResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + value: QueryPoolResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js new file mode 100644 index 00000000..4de9ac9a --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js @@ -0,0 +1,147 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + /* Validators queries all validators that match the given status. */ + async validators(params) { + const options = { + params: {} + }; + if (typeof params?.status !== "undefined") { + options.params.status = params.status; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators`; + return await this.req.get(endpoint, options); + } + /* Validator queries validator info for given validator address. */ + async validator(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* ValidatorDelegations queries delegate info for given validator. */ + async validatorDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; + return await this.req.get(endpoint, options); + } + /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + async validatorUnbondingDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Delegation queries delegate info for given validator delegator pair. */ + async delegation(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint); + } + /* UnbondingDelegation queries unbonding info for given validator delegator + pair. */ + async unbondingDelegation(params) { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; + return await this.req.get(endpoint); + } + /* DelegatorDelegations queries all delegations of a given delegator address. */ + async delegatorDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint, options); + } + /* DelegatorUnbondingDelegations queries all unbonding delegations of a given + delegator address. */ + async delegatorUnbondingDelegations(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Redelegations queries redelegations of given address. */ + async redelegations(params) { + const options = { + params: {} + }; + if (typeof params?.srcValidatorAddr !== "undefined") { + options.params.src_validator_addr = params.srcValidatorAddr; + } + if (typeof params?.dstValidatorAddr !== "undefined") { + options.params.dst_validator_addr = params.dstValidatorAddr; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidators queries all validators info for given delegator + address. */ + async delegatorValidators(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidator queries validator info for given delegator validator + pair. */ + async delegatorValidator(params) { + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* HistoricalInfo queries the historical info for given height. */ + async historicalInfo(params) { + const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; + return await this.req.get(endpoint); + } + /* Pool queries the pool info. */ + async pool(_params = {}) { + const endpoint = `cosmos/staking/v1beta1/pool`; + return await this.req.get(endpoint); + } + /* Parameters queries the staking parameters. */ + async params(_params = {}) { + const endpoint = `cosmos/staking/v1beta1/params`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..4a863df5 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js @@ -0,0 +1,141 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + validators(request) { + const data = QueryValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); + return promise.then(data => QueryValidatorsResponse.decode(new BinaryReader(data))); + } + validator(request) { + const data = QueryValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); + return promise.then(data => QueryValidatorResponse.decode(new BinaryReader(data))); + } + validatorDelegations(request) { + const data = QueryValidatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); + return promise.then(data => QueryValidatorDelegationsResponse.decode(new BinaryReader(data))); + } + validatorUnbondingDelegations(request) { + const data = QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); + return promise.then(data => QueryValidatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); + } + delegation(request) { + const data = QueryDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); + return promise.then(data => QueryDelegationResponse.decode(new BinaryReader(data))); + } + unbondingDelegation(request) { + const data = QueryUnbondingDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); + return promise.then(data => QueryUnbondingDelegationResponse.decode(new BinaryReader(data))); + } + delegatorDelegations(request) { + const data = QueryDelegatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); + return promise.then(data => QueryDelegatorDelegationsResponse.decode(new BinaryReader(data))); + } + delegatorUnbondingDelegations(request) { + const data = QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); + return promise.then(data => QueryDelegatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); + } + redelegations(request) { + const data = QueryRedelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); + return promise.then(data => QueryRedelegationsResponse.decode(new BinaryReader(data))); + } + delegatorValidators(request) { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); + } + delegatorValidator(request) { + const data = QueryDelegatorValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); + return promise.then(data => QueryDelegatorValidatorResponse.decode(new BinaryReader(data))); + } + historicalInfo(request) { + const data = QueryHistoricalInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); + return promise.then(data => QueryHistoricalInfoResponse.decode(new BinaryReader(data))); + } + pool(request = {}) { + const data = QueryPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); + return promise.then(data => QueryPoolResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + validators(request) { + return queryService.validators(request); + }, + validator(request) { + return queryService.validator(request); + }, + validatorDelegations(request) { + return queryService.validatorDelegations(request); + }, + validatorUnbondingDelegations(request) { + return queryService.validatorUnbondingDelegations(request); + }, + delegation(request) { + return queryService.delegation(request); + }, + unbondingDelegation(request) { + return queryService.unbondingDelegation(request); + }, + delegatorDelegations(request) { + return queryService.delegatorDelegations(request); + }, + delegatorUnbondingDelegations(request) { + return queryService.delegatorUnbondingDelegations(request); + }, + redelegations(request) { + return queryService.redelegations(request); + }, + delegatorValidators(request) { + return queryService.delegatorValidators(request); + }, + delegatorValidator(request) { + return queryService.delegatorValidator(request); + }, + historicalInfo(request) { + return queryService.historicalInfo(request); + }, + pool(request) { + return queryService.pool(request); + }, + params(request) { + return queryService.params(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js b/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js new file mode 100644 index 00000000..1db40f88 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js @@ -0,0 +1,1991 @@ +//@ts-nocheck +import { Header } from "../../../tendermint/types/types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Any } from "../../../google/protobuf/any"; +import { Duration } from "../../../google/protobuf/duration"; +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; +/** BondStatus is the status of a validator. */ +export var BondStatus; +(function (BondStatus) { + /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ + BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED"; + /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ + BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED"; + /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ + BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING"; + /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ + BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED"; + BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BondStatus || (BondStatus = {})); +export const BondStatusSDKType = BondStatus; +export const BondStatusAmino = BondStatus; +export function bondStatusFromJSON(object) { + switch (object) { + case 0: + case "BOND_STATUS_UNSPECIFIED": + return BondStatus.BOND_STATUS_UNSPECIFIED; + case 1: + case "BOND_STATUS_UNBONDED": + return BondStatus.BOND_STATUS_UNBONDED; + case 2: + case "BOND_STATUS_UNBONDING": + return BondStatus.BOND_STATUS_UNBONDING; + case 3: + case "BOND_STATUS_BONDED": + return BondStatus.BOND_STATUS_BONDED; + case -1: + case "UNRECOGNIZED": + default: + return BondStatus.UNRECOGNIZED; + } +} +export function bondStatusToJSON(object) { + switch (object) { + case BondStatus.BOND_STATUS_UNSPECIFIED: + return "BOND_STATUS_UNSPECIFIED"; + case BondStatus.BOND_STATUS_UNBONDED: + return "BOND_STATUS_UNBONDED"; + case BondStatus.BOND_STATUS_UNBONDING: + return "BOND_STATUS_UNBONDING"; + case BondStatus.BOND_STATUS_BONDED: + return "BOND_STATUS_BONDED"; + case BondStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseHistoricalInfo() { + return { + header: Header.fromPartial({}), + valset: [] + }; +} +export const HistoricalInfo = { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.valset) { + Validator.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHistoricalInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.valset.push(Validator.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHistoricalInfo(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.valset = object.valset?.map(e => Validator.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseHistoricalInfo(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + message.valset = object.valset?.map(e => Validator.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + if (message.valset) { + obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.valset = message.valset; + } + return obj; + }, + fromAminoMsg(object) { + return HistoricalInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/HistoricalInfo", + value: HistoricalInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return HistoricalInfo.decode(message.value); + }, + toProto(message) { + return HistoricalInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + value: HistoricalInfo.encode(message).finish() + }; + } +}; +function createBaseCommissionRates() { + return { + rate: "", + maxRate: "", + maxChangeRate: "" + }; +} +export const CommissionRates = { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + encode(message, writer = BinaryWriter.create()) { + if (message.rate !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics); + } + if (message.maxRate !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics); + } + if (message.maxChangeRate !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommissionRates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommissionRates(); + message.rate = object.rate ?? ""; + message.maxRate = object.maxRate ?? ""; + message.maxChangeRate = object.maxChangeRate ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCommissionRates(); + if (object.rate !== undefined && object.rate !== null) { + message.rate = object.rate; + } + if (object.max_rate !== undefined && object.max_rate !== null) { + message.maxRate = object.max_rate; + } + if (object.max_change_rate !== undefined && object.max_change_rate !== null) { + message.maxChangeRate = object.max_change_rate; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.rate = message.rate === "" ? undefined : message.rate; + obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; + obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; + return obj; + }, + fromAminoMsg(object) { + return CommissionRates.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CommissionRates", + value: CommissionRates.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CommissionRates.decode(message.value); + }, + toProto(message) { + return CommissionRates.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + value: CommissionRates.encode(message).finish() + }; + } +}; +function createBaseCommission() { + return { + commissionRates: CommissionRates.fromPartial({}), + updateTime: new Date() + }; +} +export const Commission = { + typeUrl: "/cosmos.staking.v1beta1.Commission", + encode(message, writer = BinaryWriter.create()) { + if (message.commissionRates !== undefined) { + CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); + } + if (message.updateTime !== undefined) { + Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commissionRates = CommissionRates.decode(reader, reader.uint32()); + break; + case 2: + message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommission(); + message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined; + message.updateTime = object.updateTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseCommission(); + if (object.commission_rates !== undefined && object.commission_rates !== null) { + message.commissionRates = CommissionRates.fromAmino(object.commission_rates); + } + if (object.update_time !== undefined && object.update_time !== null) { + message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined; + obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Commission.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Commission", + value: Commission.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Commission.decode(message.value); + }, + toProto(message) { + return Commission.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Commission", + value: Commission.encode(message).finish() + }; + } +}; +function createBaseDescription() { + return { + moniker: "", + identity: "", + website: "", + securityContact: "", + details: "" + }; +} +export const Description = { + typeUrl: "/cosmos.staking.v1beta1.Description", + encode(message, writer = BinaryWriter.create()) { + if (message.moniker !== "") { + writer.uint32(10).string(message.moniker); + } + if (message.identity !== "") { + writer.uint32(18).string(message.identity); + } + if (message.website !== "") { + writer.uint32(26).string(message.website); + } + if (message.securityContact !== "") { + writer.uint32(34).string(message.securityContact); + } + if (message.details !== "") { + writer.uint32(42).string(message.details); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescription(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moniker = reader.string(); + break; + case 2: + message.identity = reader.string(); + break; + case 3: + message.website = reader.string(); + break; + case 4: + message.securityContact = reader.string(); + break; + case 5: + message.details = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescription(); + message.moniker = object.moniker ?? ""; + message.identity = object.identity ?? ""; + message.website = object.website ?? ""; + message.securityContact = object.securityContact ?? ""; + message.details = object.details ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDescription(); + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.identity !== undefined && object.identity !== null) { + message.identity = object.identity; + } + if (object.website !== undefined && object.website !== null) { + message.website = object.website; + } + if (object.security_contact !== undefined && object.security_contact !== null) { + message.securityContact = object.security_contact; + } + if (object.details !== undefined && object.details !== null) { + message.details = object.details; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.identity = message.identity === "" ? undefined : message.identity; + obj.website = message.website === "" ? undefined : message.website; + obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; + obj.details = message.details === "" ? undefined : message.details; + return obj; + }, + fromAminoMsg(object) { + return Description.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Description", + value: Description.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Description.decode(message.value); + }, + toProto(message) { + return Description.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Description", + value: Description.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + operatorAddress: "", + consensusPubkey: undefined, + jailed: false, + status: 0, + tokens: "", + delegatorShares: "", + description: Description.fromPartial({}), + unbondingHeight: BigInt(0), + unbondingTime: new Date(), + commission: Commission.fromPartial({}), + minSelfDelegation: "" + }; +} +export const Validator = { + typeUrl: "/cosmos.staking.v1beta1.Validator", + encode(message, writer = BinaryWriter.create()) { + if (message.operatorAddress !== "") { + writer.uint32(10).string(message.operatorAddress); + } + if (message.consensusPubkey !== undefined) { + Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim(); + } + if (message.jailed === true) { + writer.uint32(24).bool(message.jailed); + } + if (message.status !== 0) { + writer.uint32(32).int32(message.status); + } + if (message.tokens !== "") { + writer.uint32(42).string(message.tokens); + } + if (message.delegatorShares !== "") { + writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics); + } + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(58).fork()).ldelim(); + } + if (message.unbondingHeight !== BigInt(0)) { + writer.uint32(64).int64(message.unbondingHeight); + } + if (message.unbondingTime !== undefined) { + Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim(); + } + if (message.commission !== undefined) { + Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(90).string(message.minSelfDelegation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operatorAddress = reader.string(); + break; + case 2: + message.consensusPubkey = Cosmos_cryptoPubKey_InterfaceDecoder(reader); + break; + case 3: + message.jailed = reader.bool(); + break; + case 4: + message.status = reader.int32(); + break; + case 5: + message.tokens = reader.string(); + break; + case 6: + message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 7: + message.description = Description.decode(reader, reader.uint32()); + break; + case 8: + message.unbondingHeight = reader.int64(); + break; + case 9: + message.unbondingTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.commission = Commission.decode(reader, reader.uint32()); + break; + case 11: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.operatorAddress = object.operatorAddress ?? ""; + message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? Any.fromPartial(object.consensusPubkey) : undefined; + message.jailed = object.jailed ?? false; + message.status = object.status ?? 0; + message.tokens = object.tokens ?? ""; + message.delegatorShares = object.delegatorShares ?? ""; + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); + message.unbondingTime = object.unbondingTime ?? undefined; + message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.operator_address !== undefined && object.operator_address !== null) { + message.operatorAddress = object.operator_address; + } + if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { + message.consensusPubkey = encodePubkey(object.consensus_pubkey); + } + if (object.jailed !== undefined && object.jailed !== null) { + message.jailed = object.jailed; + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.tokens !== undefined && object.tokens !== null) { + message.tokens = object.tokens; + } + if (object.delegator_shares !== undefined && object.delegator_shares !== null) { + message.delegatorShares = object.delegator_shares; + } + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.unbonding_height !== undefined && object.unbonding_height !== null) { + message.unbondingHeight = BigInt(object.unbonding_height); + } + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = fromTimestamp(Timestamp.fromAmino(object.unbonding_time)); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = Commission.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; + obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined; + obj.jailed = message.jailed === false ? undefined : message.jailed; + obj.status = message.status === 0 ? undefined : message.status; + obj.tokens = message.tokens === "" ? undefined : message.tokens; + obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; + obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : undefined; + obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object) { + return Validator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Validator", + value: Validator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Validator.decode(message.value); + }, + toProto(message) { + return Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseValAddresses() { + return { + addresses: [] + }; +} +export const ValAddresses = { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.addresses) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValAddresses(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addresses.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.addresses) { + obj.addresses = message.addresses.map(e => e); + } + else { + obj.addresses = message.addresses; + } + return obj; + }, + fromAminoMsg(object) { + return ValAddresses.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ValAddresses", + value: ValAddresses.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ValAddresses.decode(message.value); + }, + toProto(message) { + return ValAddresses.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + value: ValAddresses.encode(message).finish() + }; + } +}; +function createBaseDVPair() { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const DVPair = { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPair(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVPair(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDVPair(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object) { + return DVPair.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVPair", + value: DVPair.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DVPair.decode(message.value); + }, + toProto(message) { + return DVPair.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + value: DVPair.encode(message).finish() + }; + } +}; +function createBaseDVPairs() { + return { + pairs: [] + }; +} +export const DVPairs = { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.pairs) { + DVPair.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPairs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pairs.push(DVPair.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => DVPair.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => DVPair.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pairs) { + obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined); + } + else { + obj.pairs = message.pairs; + } + return obj; + }, + fromAminoMsg(object) { + return DVPairs.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVPairs", + value: DVPairs.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DVPairs.decode(message.value); + }, + toProto(message) { + return DVPairs.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + value: DVPairs.encode(message).finish() + }; + } +}; +function createBaseDVVTriplet() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "" + }; +} +export const DVVTriplet = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVVTriplet(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDVVTriplet(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + return obj; + }, + fromAminoMsg(object) { + return DVVTriplet.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVVTriplet", + value: DVVTriplet.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DVVTriplet.decode(message.value); + }, + toProto(message) { + return DVVTriplet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + value: DVVTriplet.encode(message).finish() + }; + } +}; +function createBaseDVVTriplets() { + return { + triplets: [] + }; +} +export const DVVTriplets = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.triplets) { + DVVTriplet.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplets(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.triplets.push(DVVTriplet.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => DVVTriplet.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => DVVTriplet.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.triplets) { + obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined); + } + else { + obj.triplets = message.triplets; + } + return obj; + }, + fromAminoMsg(object) { + return DVVTriplets.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DVVTriplets", + value: DVVTriplets.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DVVTriplets.decode(message.value); + }, + toProto(message) { + return DVVTriplets.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + value: DVVTriplets.encode(message).finish() + }; + } +}; +function createBaseDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + shares: "" + }; +} +export const Delegation = { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.shares !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.shares = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.shares = object.shares ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.shares !== undefined && object.shares !== null) { + message.shares = object.shares; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.shares = message.shares === "" ? undefined : message.shares; + return obj; + }, + fromAminoMsg(object) { + return Delegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Delegation", + value: Delegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Delegation.decode(message.value); + }, + toProto(message) { + return Delegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + value: Delegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + entries: [] + }; +} +export const UnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + for (const v of message.entries) { + UnbondingDelegationEntry.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return UnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UnbondingDelegation", + value: UnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return UnbondingDelegation.decode(message.value); + }, + toProto(message) { + return UnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + value: UnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegationEntry() { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + balance: "" + }; +} +export const UnbondingDelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + encode(message, writer = BinaryWriter.create()) { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUnbondingDelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseUnbondingDelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return UnbondingDelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UnbondingDelegationEntry", + value: UnbondingDelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message) { + return UnbondingDelegationEntry.decode(message.value); + }, + toProto(message) { + return UnbondingDelegationEntry.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + value: UnbondingDelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntry() { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + sharesDst: "" + }; +} +export const RedelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + encode(message, writer = BinaryWriter.create()) { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.sharesDst !== "") { + writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.sharesDst = object.sharesDst ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.shares_dst !== undefined && object.shares_dst !== null) { + message.sharesDst = object.shares_dst; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; + return obj; + }, + fromAminoMsg(object) { + return RedelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationEntry", + value: RedelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message) { + return RedelegationEntry.decode(message.value); + }, + toProto(message) { + return RedelegationEntry.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + value: RedelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegation() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + entries: [] + }; +} +export const Redelegation = { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + for (const v of message.entries) { + RedelegationEntry.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.entries.push(RedelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.entries = object.entries?.map(e => RedelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + message.entries = object.entries?.map(e => RedelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return Redelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Redelegation", + value: Redelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Redelegation.decode(message.value); + }, + toProto(message) { + return Redelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + value: Redelegation.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + unbondingTime: Duration.fromPartial({}), + maxValidators: 0, + maxEntries: 0, + historicalEntries: 0, + bondDenom: "", + minCommissionRate: "" + }; +} +export const Params = { + typeUrl: "/cosmos.staking.v1beta1.Params", + encode(message, writer = BinaryWriter.create()) { + if (message.unbondingTime !== undefined) { + Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); + } + if (message.maxValidators !== 0) { + writer.uint32(16).uint32(message.maxValidators); + } + if (message.maxEntries !== 0) { + writer.uint32(24).uint32(message.maxEntries); + } + if (message.historicalEntries !== 0) { + writer.uint32(32).uint32(message.historicalEntries); + } + if (message.bondDenom !== "") { + writer.uint32(42).string(message.bondDenom); + } + if (message.minCommissionRate !== "") { + writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingTime = Duration.decode(reader, reader.uint32()); + break; + case 2: + message.maxValidators = reader.uint32(); + break; + case 3: + message.maxEntries = reader.uint32(); + break; + case 4: + message.historicalEntries = reader.uint32(); + break; + case 5: + message.bondDenom = reader.string(); + break; + case 6: + message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Duration.fromPartial(object.unbondingTime) : undefined; + message.maxValidators = object.maxValidators ?? 0; + message.maxEntries = object.maxEntries ?? 0; + message.historicalEntries = object.historicalEntries ?? 0; + message.bondDenom = object.bondDenom ?? ""; + message.minCommissionRate = object.minCommissionRate ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = Duration.fromAmino(object.unbonding_time); + } + if (object.max_validators !== undefined && object.max_validators !== null) { + message.maxValidators = object.max_validators; + } + if (object.max_entries !== undefined && object.max_entries !== null) { + message.maxEntries = object.max_entries; + } + if (object.historical_entries !== undefined && object.historical_entries !== null) { + message.historicalEntries = object.historical_entries; + } + if (object.bond_denom !== undefined && object.bond_denom !== null) { + message.bondDenom = object.bond_denom; + } + if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { + message.minCommissionRate = object.min_commission_rate; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined; + obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; + obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; + obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; + obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; + obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseDelegationResponse() { + return { + delegation: Delegation.fromPartial({}), + balance: Coin.fromPartial({}) + }; +} +export const DelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.delegation !== undefined) { + Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegation = Delegation.decode(reader, reader.uint32()); + break; + case 2: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelegationResponse(); + message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined; + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelegationResponse(); + if (object.delegation !== undefined && object.delegation !== null) { + message.delegation = Delegation.fromAmino(object.delegation); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelegationResponse", + value: DelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelegationResponse.decode(message.value); + }, + toProto(message) { + return DelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + value: DelegationResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntryResponse() { + return { + redelegationEntry: RedelegationEntry.fromPartial({}), + balance: "" + }; +} +export const RedelegationEntryResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.redelegationEntry !== undefined) { + RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntryResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32()); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationEntryResponse(); + message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationEntryResponse(); + if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { + message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return RedelegationEntryResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationEntryResponse", + value: RedelegationEntryResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return RedelegationEntryResponse.decode(message.value); + }, + toProto(message) { + return RedelegationEntryResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + value: RedelegationEntryResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationResponse() { + return { + redelegation: Redelegation.fromPartial({}), + entries: [] + }; +} +export const RedelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.redelegation !== undefined) { + Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.entries) { + RedelegationEntryResponse.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegation = Redelegation.decode(reader, reader.uint32()); + break; + case 2: + message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRedelegationResponse(); + message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined; + message.entries = object.entries?.map(e => RedelegationEntryResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRedelegationResponse(); + if (object.redelegation !== undefined && object.redelegation !== null) { + message.redelegation = Redelegation.fromAmino(object.redelegation); + } + message.entries = object.entries?.map(e => RedelegationEntryResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined; + if (message.entries) { + obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined); + } + else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object) { + return RedelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/RedelegationResponse", + value: RedelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return RedelegationResponse.decode(message.value); + }, + toProto(message) { + return RedelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + value: RedelegationResponse.encode(message).finish() + }; + } +}; +function createBasePool() { + return { + notBondedTokens: "", + bondedTokens: "" + }; +} +export const Pool = { + typeUrl: "/cosmos.staking.v1beta1.Pool", + encode(message, writer = BinaryWriter.create()) { + if (message.notBondedTokens !== "") { + writer.uint32(10).string(message.notBondedTokens); + } + if (message.bondedTokens !== "") { + writer.uint32(18).string(message.bondedTokens); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.notBondedTokens = reader.string(); + break; + case 2: + message.bondedTokens = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePool(); + message.notBondedTokens = object.notBondedTokens ?? ""; + message.bondedTokens = object.bondedTokens ?? ""; + return message; + }, + fromAmino(object) { + const message = createBasePool(); + if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { + message.notBondedTokens = object.not_bonded_tokens; + } + if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { + message.bondedTokens = object.bonded_tokens; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.not_bonded_tokens = message.notBondedTokens ?? ""; + obj.bonded_tokens = message.bondedTokens ?? ""; + return obj; + }, + fromAminoMsg(object) { + return Pool.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Pool", + value: Pool.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Pool.decode(message.value); + }, + toProto(message) { + return Pool.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.Pool", + value: Pool.encode(message).finish() + }; + } +}; +export const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Cosmos_cryptoPubKey_FromAmino = (content) => { + return encodePubkey(content); +}; +export const Cosmos_cryptoPubKey_ToAmino = (content) => { + return decodePubkey(content); +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js new file mode 100644 index 00000000..58438164 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export const AminoConverter = { + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: "cosmos-sdk/MsgCreateValidator", + toAmino: MsgCreateValidator.toAmino, + fromAmino: MsgCreateValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: "cosmos-sdk/MsgEditValidator", + toAmino: MsgEditValidator.toAmino, + fromAmino: MsgEditValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: "cosmos-sdk/MsgDelegate", + toAmino: MsgDelegate.toAmino, + fromAmino: MsgDelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: "cosmos-sdk/MsgBeginRedelegate", + toAmino: MsgBeginRedelegate.toAmino, + fromAmino: MsgBeginRedelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: "cosmos-sdk/MsgUndelegate", + toAmino: MsgUndelegate.toAmino, + fromAmino: MsgUndelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", + toAmino: MsgCancelUnbondingDelegation.toAmino, + fromAmino: MsgCancelUnbondingDelegation.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js new file mode 100644 index 00000000..2f829fc4 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js @@ -0,0 +1,1027 @@ +//@ts-nocheck +import { Description, CommissionRates } from "./staking"; +import { Any } from "../../../google/protobuf/any"; +import { Coin } from "../../base/v1beta1/coin"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseMsgCreateValidator() { + return { + description: Description.fromPartial({}), + commission: CommissionRates.fromPartial({}), + minSelfDelegation: "", + delegatorAddress: "", + validatorAddress: "", + pubkey: undefined, + value: Coin.fromPartial({}) + }; +} +export const MsgCreateValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + encode(message, writer = BinaryWriter.create()) { + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.commission !== undefined) { + CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(26).string(message.minSelfDelegation); + } + if (message.delegatorAddress !== "") { + writer.uint32(34).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(42).string(message.validatorAddress); + } + if (message.pubkey !== undefined) { + Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim(); + } + if (message.value !== undefined) { + Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = Description.decode(reader, reader.uint32()); + break; + case 2: + message.commission = CommissionRates.decode(reader, reader.uint32()); + break; + case 3: + message.minSelfDelegation = reader.string(); + break; + case 4: + message.delegatorAddress = reader.string(); + break; + case 5: + message.validatorAddress = reader.string(); + break; + case 6: + message.pubkey = Cosmos_cryptoPubKey_InterfaceDecoder(reader); + break; + case 7: + message.value = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateValidator(); + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? Any.fromPartial(object.pubkey) : undefined; + message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = CommissionRates.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.pubkey !== undefined && object.pubkey !== null) { + message.pubkey = encodePubkey(object.pubkey); + } + if (object.value !== undefined && object.value !== null) { + message.value = Coin.fromAmino(object.value); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined; + obj.value = message.value ? Coin.toAmino(message.value) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateValidator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateValidator", + value: MsgCreateValidator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateValidator.decode(message.value); + }, + toProto(message) { + return MsgCreateValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.encode(message).finish() + }; + } +}; +function createBaseMsgCreateValidatorResponse() { + return {}; +} +export const MsgCreateValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateValidatorResponse", + value: MsgCreateValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateValidatorResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + value: MsgCreateValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidator() { + return { + description: Description.fromPartial({}), + validatorAddress: "", + commissionRate: "", + minSelfDelegation: "" + }; +} +export const MsgEditValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + encode(message, writer = BinaryWriter.create()) { + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.commissionRate !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics); + } + if (message.minSelfDelegation !== "") { + writer.uint32(34).string(message.minSelfDelegation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = Description.decode(reader, reader.uint32()); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgEditValidator(); + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.validatorAddress = object.validatorAddress ?? ""; + message.commissionRate = object.commissionRate ?? ""; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgEditValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.commission_rate !== undefined && object.commission_rate !== null) { + message.commissionRate = object.commission_rate; + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object) { + return MsgEditValidator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgEditValidator", + value: MsgEditValidator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgEditValidator.decode(message.value); + }, + toProto(message) { + return MsgEditValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidatorResponse() { + return {}; +} +export const MsgEditValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgEditValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgEditValidatorResponse", + value: MsgEditValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgEditValidatorResponse.decode(message.value); + }, + toProto(message) { + return MsgEditValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + value: MsgEditValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDelegate() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgDelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgDelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDelegate", + value: MsgDelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDelegate.decode(message.value); + }, + toProto(message) { + return MsgDelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.encode(message).finish() + }; + } +}; +function createBaseMsgDelegateResponse() { + return {}; +} +export const MsgDelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgDelegateResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgDelegateResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgDelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgDelegateResponse", + value: MsgDelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDelegateResponse.decode(message.value); + }, + toProto(message) { + return MsgDelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + value: MsgDelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegate() { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgBeginRedelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBeginRedelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBeginRedelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgBeginRedelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgBeginRedelegate", + value: MsgBeginRedelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgBeginRedelegate.decode(message.value); + }, + toProto(message) { + return MsgBeginRedelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegateResponse() { + return { + completionTime: new Date() + }; +} +export const MsgBeginRedelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBeginRedelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBeginRedelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgBeginRedelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgBeginRedelegateResponse", + value: MsgBeginRedelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgBeginRedelegateResponse.decode(message.value); + }, + toProto(message) { + return MsgBeginRedelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + value: MsgBeginRedelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegate() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgUndelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUndelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUndelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUndelegate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUndelegate", + value: MsgUndelegate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUndelegate.decode(message.value); + }, + toProto(message) { + return MsgUndelegate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegateResponse() { + return { + completionTime: new Date() + }; +} +export const MsgUndelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUndelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUndelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUndelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUndelegateResponse", + value: MsgUndelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUndelegateResponse.decode(message.value); + }, + toProto(message) { + return MsgUndelegateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + value: MsgUndelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegation() { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}), + creationHeight: BigInt(0) + }; +} +export const MsgCancelUnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + encode(message, writer = BinaryWriter.create()) { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + if (message.creationHeight !== BigInt(0)) { + writer.uint32(32).int64(message.creationHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.creationHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelUnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancelUnbondingDelegation.decode(message.value); + }, + toProto(message) { + return MsgCancelUnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegationResponse() { + return {}; +} +export const MsgCancelUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", + value: MsgCancelUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancelUnbondingDelegationResponse.decode(message.value); + }, + toProto(message) { + return MsgCancelUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + value: MsgCancelUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +export const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Cosmos_cryptoPubKey_FromAmino = (content) => { + return encodePubkey(content); +}; +export const Cosmos_cryptoPubKey_ToAmino = (content) => { + return decodePubkey(content); +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js new file mode 100644 index 00000000..8681a809 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js @@ -0,0 +1,123 @@ +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export const registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.encode(value).finish() + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.encode(value).finish() + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.encode(value).finish() + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.encode(value).finish() + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.encode(value).finish() + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.encode(value).finish() + }; + } + }, + withTypeUrl: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value + }; + } + }, + fromPartial: { + createValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.fromPartial(value) + }; + }, + editValidator(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.fromPartial(value) + }; + }, + delegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.fromPartial(value) + }; + }, + beginRedelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.fromPartial(value) + }; + }, + undelegate(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.fromPartial(value) + }; + }, + cancelUnbondingDelegation(value) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..da994263 --- /dev/null +++ b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js @@ -0,0 +1,44 @@ +import { BinaryReader } from "../../../binary"; +import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createValidator = this.createValidator.bind(this); + this.editValidator = this.editValidator.bind(this); + this.delegate = this.delegate.bind(this); + this.beginRedelegate = this.beginRedelegate.bind(this); + this.undelegate = this.undelegate.bind(this); + this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); + } + createValidator(request) { + const data = MsgCreateValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); + return promise.then(data => MsgCreateValidatorResponse.decode(new BinaryReader(data))); + } + editValidator(request) { + const data = MsgEditValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); + return promise.then(data => MsgEditValidatorResponse.decode(new BinaryReader(data))); + } + delegate(request) { + const data = MsgDelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); + return promise.then(data => MsgDelegateResponse.decode(new BinaryReader(data))); + } + beginRedelegate(request) { + const data = MsgBeginRedelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); + return promise.then(data => MsgBeginRedelegateResponse.decode(new BinaryReader(data))); + } + undelegate(request) { + const data = MsgUndelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); + return promise.then(data => MsgUndelegateResponse.decode(new BinaryReader(data))); + } + cancelUnbondingDelegation(request) { + const data = MsgCancelUnbondingDelegation.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); + return promise.then(data => MsgCancelUnbondingDelegationResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js b/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js new file mode 100644 index 00000000..a3dbed35 --- /dev/null +++ b/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js @@ -0,0 +1,520 @@ +//@ts-nocheck +import { CompactBitArray } from "../../../crypto/multisig/v1beta1/multisig"; +import { Any } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * SignMode represents a signing mode with its own security guarantees. + * + * This enum should be considered a registry of all known sign modes + * in the Cosmos ecosystem. Apps are not expected to support all known + * sign modes. Apps that would like to support custom sign modes are + * encouraged to open a small PR against this file to add a new case + * to this SignMode enum describing their sign mode so that different + * apps have a consistent version of this enum. + */ +export var SignMode; +(function (SignMode) { + /** + * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected. + */ + SignMode[SignMode["SIGN_MODE_UNSPECIFIED"] = 0] = "SIGN_MODE_UNSPECIFIED"; + /** + * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx. + */ + SignMode[SignMode["SIGN_MODE_DIRECT"] = 1] = "SIGN_MODE_DIRECT"; + /** + * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT. It is currently not supported. + */ + SignMode[SignMode["SIGN_MODE_TEXTUAL"] = 2] = "SIGN_MODE_TEXTUAL"; + /** + * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + * require signers signing over other signers' `signer_info`. It also allows + * for adding Tips in transactions. + * + * Since: cosmos-sdk 0.46 + */ + SignMode[SignMode["SIGN_MODE_DIRECT_AUX"] = 3] = "SIGN_MODE_DIRECT_AUX"; + /** + * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future. + */ + SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON"; + /** + * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + * + * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + * but is not implemented on the SDK by default. To enable EIP-191, you need + * to pass a custom `TxConfig` that has an implementation of + * `SignModeHandler` for EIP-191. The SDK may decide to fully support + * EIP-191 in the future. + * + * Since: cosmos-sdk 0.45.2 + */ + SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191"; + SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(SignMode || (SignMode = {})); +export const SignModeSDKType = SignMode; +export const SignModeAmino = SignMode; +export function signModeFromJSON(object) { + switch (object) { + case 0: + case "SIGN_MODE_UNSPECIFIED": + return SignMode.SIGN_MODE_UNSPECIFIED; + case 1: + case "SIGN_MODE_DIRECT": + return SignMode.SIGN_MODE_DIRECT; + case 2: + case "SIGN_MODE_TEXTUAL": + return SignMode.SIGN_MODE_TEXTUAL; + case 3: + case "SIGN_MODE_DIRECT_AUX": + return SignMode.SIGN_MODE_DIRECT_AUX; + case 127: + case "SIGN_MODE_LEGACY_AMINO_JSON": + return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; + case 191: + case "SIGN_MODE_EIP_191": + return SignMode.SIGN_MODE_EIP_191; + case -1: + case "UNRECOGNIZED": + default: + return SignMode.UNRECOGNIZED; + } +} +export function signModeToJSON(object) { + switch (object) { + case SignMode.SIGN_MODE_UNSPECIFIED: + return "SIGN_MODE_UNSPECIFIED"; + case SignMode.SIGN_MODE_DIRECT: + return "SIGN_MODE_DIRECT"; + case SignMode.SIGN_MODE_TEXTUAL: + return "SIGN_MODE_TEXTUAL"; + case SignMode.SIGN_MODE_DIRECT_AUX: + return "SIGN_MODE_DIRECT_AUX"; + case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: + return "SIGN_MODE_LEGACY_AMINO_JSON"; + case SignMode.SIGN_MODE_EIP_191: + return "SIGN_MODE_EIP_191"; + case SignMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseSignatureDescriptors() { + return { + signatures: [] + }; +} +export const SignatureDescriptors = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.signatures) { + SignatureDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptors(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(SignatureDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => SignatureDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => SignatureDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return SignatureDescriptors.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignatureDescriptors", + value: SignatureDescriptors.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignatureDescriptors.decode(message.value); + }, + toProto(message) { + return SignatureDescriptors.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + value: SignatureDescriptors.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor() { + return { + publicKey: undefined, + data: undefined, + sequence: BigInt(0) + }; +} +export const SignatureDescriptor = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 2: + message.data = SignatureDescriptor_Data.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.data = object.data !== undefined && object.data !== null ? SignatureDescriptor_Data.fromPartial(object.data) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.data !== undefined && object.data !== null) { + message.data = SignatureDescriptor_Data.fromAmino(object.data); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.data = message.data ? SignatureDescriptor_Data.toAmino(message.data) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignatureDescriptor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignatureDescriptor", + value: SignatureDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignatureDescriptor.decode(message.value); + }, + toProto(message) { + return SignatureDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + value: SignatureDescriptor.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data() { + return { + single: undefined, + multi: undefined + }; +} +export const SignatureDescriptor_Data = { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + encode(message, writer = BinaryWriter.create()) { + if (message.single !== undefined) { + SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data(); + message.single = object.single !== undefined && object.single !== null ? SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data(); + if (object.single !== undefined && object.single !== null) { + message.single = SignatureDescriptor_Data_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = SignatureDescriptor_Data_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.single = message.single ? SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignatureDescriptor_Data.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Data", + value: SignatureDescriptor_Data.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignatureDescriptor_Data.decode(message.value); + }, + toProto(message) { + return SignatureDescriptor_Data.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + value: SignatureDescriptor_Data.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Single() { + return { + mode: 0, + signature: new Uint8Array() + }; +} +export const SignatureDescriptor_Data_Single = { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + encode(message, writer = BinaryWriter.create()) { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + if (message.signature.length !== 0) { + writer.uint32(18).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + case 2: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data_Single(); + message.mode = object.mode ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignatureDescriptor_Data_Single.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Single", + value: SignatureDescriptor_Data_Single.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignatureDescriptor_Data_Single.decode(message.value); + }, + toProto(message) { + return SignatureDescriptor_Data_Single.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + value: SignatureDescriptor_Data_Single.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Multi() { + return { + bitarray: undefined, + signatures: [] + }; +} +export const SignatureDescriptor_Data_Multi = { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + encode(message, writer = BinaryWriter.create()) { + if (message.bitarray !== undefined) { + CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.signatures) { + SignatureDescriptor_Data.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.signatures.push(SignatureDescriptor_Data.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignatureDescriptor_Data_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; + message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSignatureDescriptor_Data_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = CompactBitArray.fromAmino(object.bitarray); + } + message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return SignatureDescriptor_Data_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: SignatureDescriptor_Data_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignatureDescriptor_Data_Multi.decode(message.value); + }, + toProto(message) { + return SignatureDescriptor_Data_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + value: SignatureDescriptor_Data_Multi.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.js new file mode 100644 index 00000000..0902bea0 --- /dev/null +++ b/packages/api/dist/esm/cosmos/tx/v1beta1/service.js @@ -0,0 +1,992 @@ +//@ts-nocheck +import { Tx } from "./tx"; +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; +import { TxResponse, GasInfo, Result } from "../../base/abci/v1beta1/abci"; +import { BlockID } from "../../../tendermint/types/types"; +import { Block } from "../../../tendermint/types/block"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** OrderBy defines the sorting order */ +export var OrderBy; +(function (OrderBy) { + /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ + OrderBy[OrderBy["ORDER_BY_UNSPECIFIED"] = 0] = "ORDER_BY_UNSPECIFIED"; + /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ + OrderBy[OrderBy["ORDER_BY_ASC"] = 1] = "ORDER_BY_ASC"; + /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ + OrderBy[OrderBy["ORDER_BY_DESC"] = 2] = "ORDER_BY_DESC"; + OrderBy[OrderBy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(OrderBy || (OrderBy = {})); +export const OrderBySDKType = OrderBy; +export const OrderByAmino = OrderBy; +export function orderByFromJSON(object) { + switch (object) { + case 0: + case "ORDER_BY_UNSPECIFIED": + return OrderBy.ORDER_BY_UNSPECIFIED; + case 1: + case "ORDER_BY_ASC": + return OrderBy.ORDER_BY_ASC; + case 2: + case "ORDER_BY_DESC": + return OrderBy.ORDER_BY_DESC; + case -1: + case "UNRECOGNIZED": + default: + return OrderBy.UNRECOGNIZED; + } +} +export function orderByToJSON(object) { + switch (object) { + case OrderBy.ORDER_BY_UNSPECIFIED: + return "ORDER_BY_UNSPECIFIED"; + case OrderBy.ORDER_BY_ASC: + return "ORDER_BY_ASC"; + case OrderBy.ORDER_BY_DESC: + return "ORDER_BY_DESC"; + case OrderBy.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ +export var BroadcastMode; +(function (BroadcastMode) { + /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_UNSPECIFIED"] = 0] = "BROADCAST_MODE_UNSPECIFIED"; + /** + * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_BLOCK"] = 1] = "BROADCAST_MODE_BLOCK"; + /** + * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_SYNC"] = 2] = "BROADCAST_MODE_SYNC"; + /** + * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + */ + BroadcastMode[BroadcastMode["BROADCAST_MODE_ASYNC"] = 3] = "BROADCAST_MODE_ASYNC"; + BroadcastMode[BroadcastMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BroadcastMode || (BroadcastMode = {})); +export const BroadcastModeSDKType = BroadcastMode; +export const BroadcastModeAmino = BroadcastMode; +export function broadcastModeFromJSON(object) { + switch (object) { + case 0: + case "BROADCAST_MODE_UNSPECIFIED": + return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; + case 1: + case "BROADCAST_MODE_BLOCK": + return BroadcastMode.BROADCAST_MODE_BLOCK; + case 2: + case "BROADCAST_MODE_SYNC": + return BroadcastMode.BROADCAST_MODE_SYNC; + case 3: + case "BROADCAST_MODE_ASYNC": + return BroadcastMode.BROADCAST_MODE_ASYNC; + case -1: + case "UNRECOGNIZED": + default: + return BroadcastMode.UNRECOGNIZED; + } +} +export function broadcastModeToJSON(object) { + switch (object) { + case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: + return "BROADCAST_MODE_UNSPECIFIED"; + case BroadcastMode.BROADCAST_MODE_BLOCK: + return "BROADCAST_MODE_BLOCK"; + case BroadcastMode.BROADCAST_MODE_SYNC: + return "BROADCAST_MODE_SYNC"; + case BroadcastMode.BROADCAST_MODE_ASYNC: + return "BROADCAST_MODE_ASYNC"; + case BroadcastMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseGetTxsEventRequest() { + return { + events: [], + pagination: undefined, + orderBy: 0, + page: BigInt(0), + limit: BigInt(0) + }; +} +export const GetTxsEventRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.events) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + if (message.orderBy !== 0) { + writer.uint32(24).int32(message.orderBy); + } + if (message.page !== BigInt(0)) { + writer.uint32(32).uint64(message.page); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(reader.string()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + case 3: + message.orderBy = reader.int32(); + break; + case 4: + message.page = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + message.orderBy = object.orderBy ?? 0; + message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + if (object.order_by !== undefined && object.order_by !== null) { + message.orderBy = object.order_by; + } + if (object.page !== undefined && object.page !== null) { + message.page = BigInt(object.page); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.events) { + obj.events = message.events.map(e => e); + } + else { + obj.events = message.events; + } + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; + obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetTxsEventRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxsEventRequest", + value: GetTxsEventRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxsEventRequest.decode(message.value); + }, + toProto(message) { + return GetTxsEventRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + value: GetTxsEventRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxsEventResponse() { + return { + txs: [], + txResponses: [], + pagination: undefined, + total: BigInt(0) + }; +} +export const GetTxsEventResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.txs) { + Tx.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.txResponses) { + TxResponse.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); + } + if (message.total !== BigInt(0)) { + writer.uint32(32).uint64(message.total); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(Tx.decode(reader, reader.uint32())); + break; + case 2: + message.txResponses.push(TxResponse.decode(reader, reader.uint32())); + break; + case 3: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 4: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; + message.txResponses = object.txResponses?.map(e => TxResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; + message.txResponses = object.tx_responses?.map(e => TxResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + if (message.txResponses) { + obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined); + } + else { + obj.tx_responses = message.txResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetTxsEventResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxsEventResponse", + value: GetTxsEventResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxsEventResponse.decode(message.value); + }, + toProto(message) { + return GetTxsEventResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + value: GetTxsEventResponse.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxRequest() { + return { + txBytes: new Uint8Array(), + mode: 0 + }; +} +export const BroadcastTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.txBytes.length !== 0) { + writer.uint32(10).bytes(message.txBytes); + } + if (message.mode !== 0) { + writer.uint32(16).int32(message.mode); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txBytes = reader.bytes(); + break; + case 2: + message.mode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBroadcastTxRequest(); + message.txBytes = object.txBytes ?? new Uint8Array(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBroadcastTxRequest(); + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = bytesFromBase64(object.tx_bytes); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object) { + return BroadcastTxRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BroadcastTxRequest", + value: BroadcastTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BroadcastTxRequest.decode(message.value); + }, + toProto(message) { + return BroadcastTxRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + value: BroadcastTxRequest.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxResponse() { + return { + txResponse: undefined + }; +} +export const BroadcastTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.txResponse !== undefined) { + TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txResponse = TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBroadcastTxResponse(); + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBroadcastTxResponse(); + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BroadcastTxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BroadcastTxResponse", + value: BroadcastTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BroadcastTxResponse.decode(message.value); + }, + toProto(message) { + return BroadcastTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + value: BroadcastTxResponse.encode(message).finish() + }; + } +}; +function createBaseSimulateRequest() { + return { + tx: undefined, + txBytes: new Uint8Array() + }; +} +export const SimulateRequest = { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.tx !== undefined) { + Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txBytes.length !== 0) { + writer.uint32(18).bytes(message.txBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulateRequest(); + message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; + message.txBytes = object.txBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSimulateRequest(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = Tx.fromAmino(object.tx); + } + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = bytesFromBase64(object.tx_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; + obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SimulateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulateRequest", + value: SimulateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SimulateRequest.decode(message.value); + }, + toProto(message) { + return SimulateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + value: SimulateRequest.encode(message).finish() + }; + } +}; +function createBaseSimulateResponse() { + return { + gasInfo: undefined, + result: undefined + }; +} +export const SimulateResponse = { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.gasInfo !== undefined) { + GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimulateResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSimulateResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = Result.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SimulateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SimulateResponse", + value: SimulateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SimulateResponse.decode(message.value); + }, + toProto(message) { + return SimulateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + value: SimulateResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxRequest() { + return { + hash: "" + }; +} +export const GetTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return GetTxRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxRequest", + value: GetTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxRequest.decode(message.value); + }, + toProto(message) { + return GetTxRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + value: GetTxRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxResponse() { + return { + tx: undefined, + txResponse: undefined + }; +} +export const GetTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tx !== undefined) { + Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txResponse !== undefined) { + TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txResponse = TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetTxResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetTxResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = Tx.fromAmino(object.tx); + } + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; + obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetTxResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetTxResponse", + value: GetTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetTxResponse.decode(message.value); + }, + toProto(message) { + return GetTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + value: GetTxResponse.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsRequest() { + return { + height: BigInt(0), + pagination: undefined + }; +} +export const GetBlockWithTxsRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetBlockWithTxsRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetBlockWithTxsRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetBlockWithTxsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetBlockWithTxsRequest", + value: GetBlockWithTxsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetBlockWithTxsRequest.decode(message.value); + }, + toProto(message) { + return GetBlockWithTxsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + value: GetBlockWithTxsRequest.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsResponse() { + return { + txs: [], + blockId: undefined, + block: undefined, + pagination: undefined + }; +} +export const GetBlockWithTxsResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.txs) { + Tx.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); + } + if (message.block !== undefined) { + Block.encode(message.block, writer.uint32(26).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(Tx.decode(reader, reader.uint32())); + break; + case 2: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 3: + message.block = Block.decode(reader, reader.uint32()); + break; + case 4: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.block !== undefined && object.block !== null) { + message.block = Block.fromAmino(object.block); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); + } + else { + obj.txs = message.txs; + } + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.block = message.block ? Block.toAmino(message.block) : undefined; + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GetBlockWithTxsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GetBlockWithTxsResponse", + value: GetBlockWithTxsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GetBlockWithTxsResponse.decode(message.value); + }, + toProto(message) { + return GetBlockWithTxsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + value: GetBlockWithTxsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js new file mode 100644 index 00000000..39fc4cc1 --- /dev/null +++ b/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js @@ -0,0 +1,52 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.getTx = this.getTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + /* GetTx fetches a tx by hash. */ + async getTx(params) { + const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; + return await this.req.get(endpoint); + } + /* GetTxsEvent fetches txs by event. */ + async getTxsEvent(params) { + const options = { + params: {} + }; + if (typeof params?.events !== "undefined") { + options.params.events = params.events; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + if (typeof params?.orderBy !== "undefined") { + options.params.order_by = params.orderBy; + } + if (typeof params?.page !== "undefined") { + options.params.page = params.page; + } + if (typeof params?.limit !== "undefined") { + options.params.limit = params.limit; + } + const endpoint = `cosmos/tx/v1beta1/txs`; + return await this.req.get(endpoint, options); + } + /* GetBlockWithTxs fetches a block with decoded txs. + + Since: cosmos-sdk 0.45.2 */ + async getBlockWithTxs(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; + return await this.req.get(endpoint, options); + } +} diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js new file mode 100644 index 00000000..536211dc --- /dev/null +++ b/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js @@ -0,0 +1,60 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; +export class ServiceClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.simulate = this.simulate.bind(this); + this.getTx = this.getTx.bind(this); + this.broadcastTx = this.broadcastTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + simulate(request) { + const data = SimulateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); + return promise.then(data => SimulateResponse.decode(new BinaryReader(data))); + } + getTx(request) { + const data = GetTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); + return promise.then(data => GetTxResponse.decode(new BinaryReader(data))); + } + broadcastTx(request) { + const data = BroadcastTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); + return promise.then(data => BroadcastTxResponse.decode(new BinaryReader(data))); + } + getTxsEvent(request) { + const data = GetTxsEventRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); + return promise.then(data => GetTxsEventResponse.decode(new BinaryReader(data))); + } + getBlockWithTxs(request) { + const data = GetBlockWithTxsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); + return promise.then(data => GetBlockWithTxsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new ServiceClientImpl(rpc); + return { + simulate(request) { + return queryService.simulate(request); + }, + getTx(request) { + return queryService.getTx(request); + }, + broadcastTx(request) { + return queryService.broadcastTx(request); + }, + getTxsEvent(request) { + return queryService.getTxsEvent(request); + }, + getBlockWithTxs(request) { + return queryService.getBlockWithTxs(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js b/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js new file mode 100644 index 00000000..23926909 --- /dev/null +++ b/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js @@ -0,0 +1,1278 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { CompactBitArray } from "../../crypto/multisig/v1beta1/multisig"; +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseTx() { + return { + body: undefined, + authInfo: undefined, + signatures: [] + }; +} +export const Tx = { + typeUrl: "/cosmos.tx.v1beta1.Tx", + encode(message, writer = BinaryWriter.create()) { + if (message.body !== undefined) { + TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); + } + if (message.authInfo !== undefined) { + AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.body = TxBody.decode(reader, reader.uint32()); + break; + case 2: + message.authInfo = AuthInfo.decode(reader, reader.uint32()); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTx(); + message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined; + message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined; + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTx(); + if (object.body !== undefined && object.body !== null) { + message.body = TxBody.fromAmino(object.body); + } + if (object.auth_info !== undefined && object.auth_info !== null) { + message.authInfo = AuthInfo.fromAmino(object.auth_info); + } + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.body = message.body ? TxBody.toAmino(message.body) : undefined; + obj.auth_info = message.authInfo ? AuthInfo.toAmino(message.authInfo) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return Tx.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Tx", + value: Tx.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Tx.decode(message.value); + }, + toProto(message) { + return Tx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Tx", + value: Tx.encode(message).finish() + }; + } +}; +function createBaseTxRaw() { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + signatures: [] + }; +} +export const TxRaw = { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + encode(message, writer = BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxRaw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxRaw(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxRaw(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); + } + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return TxRaw.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxRaw", + value: TxRaw.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TxRaw.decode(message.value); + }, + toProto(message) { + return TxRaw.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + value: TxRaw.encode(message).finish() + }; + } +}; +function createBaseSignDoc() { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + chainId: "", + accountNumber: BigInt(0) + }; +} +export const SignDoc = { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + encode(message, writer = BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDoc(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignDoc(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignDoc(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignDoc.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignDoc", + value: SignDoc.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignDoc.decode(message.value); + }, + toProto(message) { + return SignDoc.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + value: SignDoc.encode(message).finish() + }; + } +}; +function createBaseSignDocDirectAux() { + return { + bodyBytes: new Uint8Array(), + publicKey: undefined, + chainId: "", + accountNumber: BigInt(0), + sequence: BigInt(0), + tip: undefined + }; +} +export const SignDocDirectAux = { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + encode(message, writer = BinaryWriter.create()) { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(40).uint64(message.sequence); + } + if (message.tip !== undefined) { + Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDocDirectAux(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + case 5: + message.sequence = reader.uint64(); + break; + case 6: + message.tip = Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignDocDirectAux(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignDocDirectAux(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignDocDirectAux.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignDocDirectAux", + value: SignDocDirectAux.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignDocDirectAux.decode(message.value); + }, + toProto(message) { + return SignDocDirectAux.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + value: SignDocDirectAux.encode(message).finish() + }; + } +}; +function createBaseTxBody() { + return { + messages: [], + memo: "", + timeoutHeight: BigInt(0), + extensionOptions: [], + nonCriticalExtensionOptions: [] + }; +} +export const TxBody = { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.messages) { + Any.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.memo !== "") { + writer.uint32(18).string(message.memo); + } + if (message.timeoutHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.timeoutHeight); + } + for (const v of message.extensionOptions) { + Any.encode(v, writer.uint32(8186).fork()).ldelim(); + } + for (const v of message.nonCriticalExtensionOptions) { + Any.encode(v, writer.uint32(16378).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxBody(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 2: + message.memo = reader.string(); + break; + case 3: + message.timeoutHeight = reader.uint64(); + break; + case 1023: + message.extensionOptions.push(Any.decode(reader, reader.uint32())); + break; + case 2047: + message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.memo = object.memo ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); + message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || []; + message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.memo !== undefined && object.memo !== null) { + message.memo = object.memo; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = BigInt(object.timeout_height); + } + message.extensionOptions = object.extension_options?.map(e => Any.fromAmino(e)) || []; + message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.messages = message.messages; + } + obj.memo = message.memo === "" ? undefined : message.memo; + obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; + if (message.extensionOptions) { + obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.extension_options = message.extensionOptions; + } + if (message.nonCriticalExtensionOptions) { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined); + } + else { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions; + } + return obj; + }, + fromAminoMsg(object) { + return TxBody.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/TxBody", + value: TxBody.toAmino(message) + }; + }, + fromProtoMsg(message) { + return TxBody.decode(message.value); + }, + toProto(message) { + return TxBody.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + value: TxBody.encode(message).finish() + }; + } +}; +function createBaseAuthInfo() { + return { + signerInfos: [], + fee: undefined, + tip: undefined + }; +} +export const AuthInfo = { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.signerInfos) { + SignerInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.fee !== undefined) { + Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + if (message.tip !== undefined) { + Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signerInfos.push(SignerInfo.decode(reader, reader.uint32())); + break; + case 2: + message.fee = Fee.decode(reader, reader.uint32()); + break; + case 3: + message.tip = Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuthInfo(); + message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || []; + message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined; + message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAuthInfo(); + message.signerInfos = object.signer_infos?.map(e => SignerInfo.fromAmino(e)) || []; + if (object.fee !== undefined && object.fee !== null) { + message.fee = Fee.fromAmino(object.fee); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.signerInfos) { + obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined); + } + else { + obj.signer_infos = message.signerInfos; + } + obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined; + obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AuthInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuthInfo", + value: AuthInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AuthInfo.decode(message.value); + }, + toProto(message) { + return AuthInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + value: AuthInfo.encode(message).finish() + }; + } +}; +function createBaseSignerInfo() { + return { + publicKey: undefined, + modeInfo: undefined, + sequence: BigInt(0) + }; +} +export const SignerInfo = { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.modeInfo !== undefined) { + ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignerInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfo = ModeInfo.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignerInfo(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSignerInfo(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.mode_info !== undefined && object.mode_info !== null) { + message.modeInfo = ModeInfo.fromAmino(object.mode_info); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignerInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SignerInfo", + value: SignerInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SignerInfo.decode(message.value); + }, + toProto(message) { + return SignerInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + value: SignerInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo() { + return { + single: undefined, + multi: undefined + }; +} +export const ModeInfo = { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.single !== undefined) { + ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = ModeInfo_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = ModeInfo_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo(); + message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo(); + if (object.single !== undefined && object.single !== null) { + message.single = ModeInfo_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = ModeInfo_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.single = message.single ? ModeInfo_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? ModeInfo_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ModeInfo.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModeInfo", + value: ModeInfo.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModeInfo.decode(message.value); + }, + toProto(message) { + return ModeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + value: ModeInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Single() { + return { + mode: 0 + }; +} +export const ModeInfo_Single = { + typeUrl: "/cosmos.tx.v1beta1.Single", + encode(message, writer = BinaryWriter.create()) { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo_Single(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object) { + return ModeInfo_Single.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Single", + value: ModeInfo_Single.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModeInfo_Single.decode(message.value); + }, + toProto(message) { + return ModeInfo_Single.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Single", + value: ModeInfo_Single.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Multi() { + return { + bitarray: undefined, + modeInfos: [] + }; +} +export const ModeInfo_Multi = { + typeUrl: "/cosmos.tx.v1beta1.Multi", + encode(message, writer = BinaryWriter.create()) { + if (message.bitarray !== undefined) { + CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.modeInfos) { + ModeInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfos.push(ModeInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModeInfo_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; + message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseModeInfo_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = CompactBitArray.fromAmino(object.bitarray); + } + message.modeInfos = object.mode_infos?.map(e => ModeInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.modeInfos) { + obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined); + } + else { + obj.mode_infos = message.modeInfos; + } + return obj; + }, + fromAminoMsg(object) { + return ModeInfo_Multi.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Multi", + value: ModeInfo_Multi.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModeInfo_Multi.decode(message.value); + }, + toProto(message) { + return ModeInfo_Multi.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Multi", + value: ModeInfo_Multi.encode(message).finish() + }; + } +}; +function createBaseFee() { + return { + amount: [], + gasLimit: BigInt(0), + payer: "", + granter: "" + }; +} +export const Fee = { + typeUrl: "/cosmos.tx.v1beta1.Fee", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.amount) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.gasLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.gasLimit); + } + if (message.payer !== "") { + writer.uint32(26).string(message.payer); + } + if (message.granter !== "") { + writer.uint32(34).string(message.granter); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.gasLimit = reader.uint64(); + break; + case 3: + message.payer = reader.string(); + break; + case 4: + message.granter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFee(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); + message.payer = object.payer ?? ""; + message.granter = object.granter ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseFee(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.gas_limit !== undefined && object.gas_limit !== null) { + message.gasLimit = BigInt(object.gas_limit); + } + if (object.payer !== undefined && object.payer !== null) { + message.payer = object.payer; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; + obj.payer = message.payer === "" ? undefined : message.payer; + obj.granter = message.granter === "" ? undefined : message.granter; + return obj; + }, + fromAminoMsg(object) { + return Fee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Fee", + value: Fee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Fee.decode(message.value); + }, + toProto(message) { + return Fee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Fee", + value: Fee.encode(message).finish() + }; + } +}; +function createBaseTip() { + return { + amount: [], + tipper: "" + }; +} +export const Tip = { + typeUrl: "/cosmos.tx.v1beta1.Tip", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.amount) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.tipper !== "") { + writer.uint32(18).string(message.tipper); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTip(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.tipper = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTip(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.tipper = object.tipper ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseTip(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.tipper !== undefined && object.tipper !== null) { + message.tipper = object.tipper; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.tipper = message.tipper === "" ? undefined : message.tipper; + return obj; + }, + fromAminoMsg(object) { + return Tip.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Tip", + value: Tip.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Tip.decode(message.value); + }, + toProto(message) { + return Tip.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.Tip", + value: Tip.encode(message).finish() + }; + } +}; +function createBaseAuxSignerData() { + return { + address: "", + signDoc: undefined, + mode: 0, + sig: new Uint8Array() + }; +} +export const AuxSignerData = { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.signDoc !== undefined) { + SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); + } + if (message.mode !== 0) { + writer.uint32(24).int32(message.mode); + } + if (message.sig.length !== 0) { + writer.uint32(34).bytes(message.sig); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuxSignerData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.signDoc = SignDocDirectAux.decode(reader, reader.uint32()); + break; + case 3: + message.mode = reader.int32(); + break; + case 4: + message.sig = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAuxSignerData(); + message.address = object.address ?? ""; + message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined; + message.mode = object.mode ?? 0; + message.sig = object.sig ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAuxSignerData(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.sign_doc !== undefined && object.sign_doc !== null) { + message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.sig !== undefined && object.sig !== null) { + message.sig = bytesFromBase64(object.sig); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.sig = message.sig ? base64FromBytes(message.sig) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AuxSignerData.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/AuxSignerData", + value: AuxSignerData.toAmino(message) + }; + }, + fromProtoMsg(message) { + return AuxSignerData.decode(message.value); + }, + toProto(message) { + return AuxSignerData.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + value: AuxSignerData.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js new file mode 100644 index 00000000..cc8d787e --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js @@ -0,0 +1,671 @@ +//@ts-nocheck +import { Plan, ModuleVersion } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +function createBaseQueryCurrentPlanRequest() { + return {}; +} +export const QueryCurrentPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryCurrentPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCurrentPlanRequest", + value: QueryCurrentPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryCurrentPlanRequest.decode(message.value); + }, + toProto(message) { + return QueryCurrentPlanRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + value: QueryCurrentPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCurrentPlanResponse() { + return { + plan: undefined + }; +} +export const QueryCurrentPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCurrentPlanResponse(); + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCurrentPlanResponse(); + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryCurrentPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryCurrentPlanResponse", + value: QueryCurrentPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryCurrentPlanResponse.decode(message.value); + }, + toProto(message) { + return QueryCurrentPlanResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + value: QueryCurrentPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanRequest() { + return { + name: "" + }; +} +export const QueryAppliedPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAppliedPlanRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAppliedPlanRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object) { + return QueryAppliedPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAppliedPlanRequest", + value: QueryAppliedPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAppliedPlanRequest.decode(message.value); + }, + toProto(message) { + return QueryAppliedPlanRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + value: QueryAppliedPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanResponse() { + return { + height: BigInt(0) + }; +} +export const QueryAppliedPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAppliedPlanResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryAppliedPlanResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAppliedPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAppliedPlanResponse", + value: QueryAppliedPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAppliedPlanResponse.decode(message.value); + }, + toProto(message) { + return QueryAppliedPlanResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + value: QueryAppliedPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest() { + return { + lastHeight: BigInt(0) + }; +} +export const QueryUpgradedConsensusStateRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.lastHeight !== BigInt(0)) { + writer.uint32(8).int64(message.lastHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + if (object.last_height !== undefined && object.last_height !== null) { + message.lastHeight = BigInt(object.last_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse() { + return { + upgradedConsensusState: new Uint8Array() + }; +} +export const QueryUpgradedConsensusStateResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.upgradedConsensusState.length !== 0) { + writer.uint32(18).bytes(message.upgradedConsensusState); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.upgradedConsensusState = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = bytesFromBase64(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? base64FromBytes(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsRequest() { + return { + moduleName: "" + }; +} +export const QueryModuleVersionsRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.moduleName !== "") { + writer.uint32(10).string(message.moduleName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleVersionsRequest(); + message.moduleName = object.moduleName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleVersionsRequest(); + if (object.module_name !== undefined && object.module_name !== null) { + message.moduleName = object.module_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.module_name = message.moduleName === "" ? undefined : message.moduleName; + return obj; + }, + fromAminoMsg(object) { + return QueryModuleVersionsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleVersionsRequest", + value: QueryModuleVersionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleVersionsRequest.decode(message.value); + }, + toProto(message) { + return QueryModuleVersionsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + value: QueryModuleVersionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsResponse() { + return { + moduleVersions: [] + }; +} +export const QueryModuleVersionsResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.moduleVersions) { + ModuleVersion.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.moduleVersions?.map(e => ModuleVersion.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.module_versions?.map(e => ModuleVersion.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.moduleVersions) { + obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined); + } + else { + obj.module_versions = message.moduleVersions; + } + return obj; + }, + fromAminoMsg(object) { + return QueryModuleVersionsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryModuleVersionsResponse", + value: QueryModuleVersionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryModuleVersionsResponse.decode(message.value); + }, + toProto(message) { + return QueryModuleVersionsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + value: QueryModuleVersionsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityRequest() { + return {}; +} +export const QueryAuthorityRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryAuthorityRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAuthorityRequest", + value: QueryAuthorityRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAuthorityRequest.decode(message.value); + }, + toProto(message) { + return QueryAuthorityRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + value: QueryAuthorityRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityResponse() { + return { + address: "" + }; +} +export const QueryAuthorityResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAuthorityResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAuthorityResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object) { + return QueryAuthorityResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryAuthorityResponse", + value: QueryAuthorityResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryAuthorityResponse.decode(message.value); + }, + toProto(message) { + return QueryAuthorityResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + value: QueryAuthorityResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js new file mode 100644 index 00000000..2e058664 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js @@ -0,0 +1,51 @@ +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + /* CurrentPlan queries the current upgrade plan. */ + async currentPlan(_params = {}) { + const endpoint = `cosmos/upgrade/v1beta1/current_plan`; + return await this.req.get(endpoint); + } + /* AppliedPlan queries a previously applied upgrade plan by its name. */ + async appliedPlan(params) { + const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries the consensus state that will serve + as a trusted kernel for the next version of this chain. It will only be + stored at the last height of this chain. + UpgradedConsensusState RPC not supported with legacy querier + This rpc is deprecated now that IBC has its own replacement + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ + async upgradedConsensusState(params) { + const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; + return await this.req.get(endpoint); + } + /* ModuleVersions queries the list of module versions from state. + + Since: cosmos-sdk 0.43 */ + async moduleVersions(params) { + const options = { + params: {} + }; + if (typeof params?.moduleName !== "undefined") { + options.params.module_name = params.moduleName; + } + const endpoint = `cosmos/upgrade/v1beta1/module_versions`; + return await this.req.get(endpoint, options); + } + /* Returns the account with authority to conduct upgrades + + Since: cosmos-sdk 0.46 */ + async authority(_params = {}) { + const endpoint = `cosmos/upgrade/v1beta1/authority`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js new file mode 100644 index 00000000..7f1a0276 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js @@ -0,0 +1,60 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + currentPlan(request = {}) { + const data = QueryCurrentPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); + return promise.then(data => QueryCurrentPlanResponse.decode(new BinaryReader(data))); + } + appliedPlan(request) { + const data = QueryAppliedPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); + return promise.then(data => QueryAppliedPlanResponse.decode(new BinaryReader(data))); + } + upgradedConsensusState(request) { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); + } + moduleVersions(request) { + const data = QueryModuleVersionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); + return promise.then(data => QueryModuleVersionsResponse.decode(new BinaryReader(data))); + } + authority(request = {}) { + const data = QueryAuthorityRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); + return promise.then(data => QueryAuthorityResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + currentPlan(request) { + return queryService.currentPlan(request); + }, + appliedPlan(request) { + return queryService.appliedPlan(request); + }, + upgradedConsensusState(request) { + return queryService.upgradedConsensusState(request); + }, + moduleVersions(request) { + return queryService.moduleVersions(request); + }, + authority(request) { + return queryService.authority(request); + } + }; +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js new file mode 100644 index 00000000..31cd8520 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export const AminoConverter = { + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: "cosmos-sdk/MsgSoftwareUpgrade", + toAmino: MsgSoftwareUpgrade.toAmino, + fromAmino: MsgSoftwareUpgrade.fromAmino + }, + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: "cosmos-sdk/MsgCancelUpgrade", + toAmino: MsgCancelUpgrade.toAmino, + fromAmino: MsgCancelUpgrade.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js new file mode 100644 index 00000000..85ff8ac6 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js @@ -0,0 +1,265 @@ +//@ts-nocheck +import { Plan } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgSoftwareUpgrade() { + return { + authority: "", + plan: Plan.fromPartial({}) + }; +} +export const MsgSoftwareUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSoftwareUpgrade(); + message.authority = object.authority ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSoftwareUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgSoftwareUpgrade.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSoftwareUpgrade.decode(message.value); + }, + toProto(message) { + return MsgSoftwareUpgrade.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgSoftwareUpgradeResponse() { + return {}; +} +export const MsgSoftwareUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSoftwareUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSoftwareUpgradeResponse", + value: MsgSoftwareUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSoftwareUpgradeResponse.decode(message.value); + }, + toProto(message) { + return MsgSoftwareUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + value: MsgSoftwareUpgradeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgrade() { + return { + authority: "" + }; +} +export const MsgCancelUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelUpgrade(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelUpgrade.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUpgrade", + value: MsgCancelUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancelUpgrade.decode(message.value); + }, + toProto(message) { + return MsgCancelUpgrade.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgradeResponse() { + return {}; +} +export const MsgCancelUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCancelUpgradeResponse", + value: MsgCancelUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancelUpgradeResponse.decode(message.value); + }, + toProto(message) { + return MsgCancelUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + value: MsgCancelUpgradeResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js new file mode 100644 index 00000000..0eb19fb9 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js @@ -0,0 +1,51 @@ +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export const registry = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.encode(value).finish() + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.encode(value).finish() + }; + } + }, + withTypeUrl: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value + }; + } + }, + fromPartial: { + softwareUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.fromPartial(value) + }; + }, + cancelUpgrade(value) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..99b3aa61 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js @@ -0,0 +1,20 @@ +import { BinaryReader } from "../../../binary"; +import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.softwareUpgrade = this.softwareUpgrade.bind(this); + this.cancelUpgrade = this.cancelUpgrade.bind(this); + } + softwareUpgrade(request) { + const data = MsgSoftwareUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); + return promise.then(data => MsgSoftwareUpgradeResponse.decode(new BinaryReader(data))); + } + cancelUpgrade(request) { + const data = MsgCancelUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); + return promise.then(data => MsgCancelUpgradeResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js new file mode 100644 index 00000000..d69db1c9 --- /dev/null +++ b/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js @@ -0,0 +1,379 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBasePlan() { + return { + name: "", + time: new Date(), + height: BigInt(0), + info: "", + upgradedClientState: undefined + }; +} +export const Plan = { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePlan(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePlan(); + message.name = object.name ?? ""; + message.time = object.time ?? undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.info = object.info ?? ""; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePlan(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.info = message.info === "" ? undefined : message.info; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Plan.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Plan", + value: Plan.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Plan.decode(message.value); + }, + toProto(message) { + return Plan.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + value: Plan.encode(message).finish() + }; + } +}; +function createBaseSoftwareUpgradeProposal() { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + title: "", + description: "", + plan: Plan.fromPartial({}) + }; +} +export const SoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/SoftwareUpgradeProposal", + value: SoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return SoftwareUpgradeProposal.decode(message.value); + }, + toProto(message) { + return SoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + value: SoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseCancelSoftwareUpgradeProposal() { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + title: "", + description: "" + }; +} +export const CancelSoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCancelSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCancelSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCancelSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return CancelSoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/CancelSoftwareUpgradeProposal", + value: CancelSoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return CancelSoftwareUpgradeProposal.decode(message.value); + }, + toProto(message) { + return CancelSoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + value: CancelSoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseModuleVersion() { + return { + name: "", + version: BigInt(0) + }; +} +export const ModuleVersion = { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.version !== BigInt(0)) { + writer.uint32(16).uint64(message.version); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseModuleVersion(); + message.name = object.name ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseModuleVersion(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ModuleVersion.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ModuleVersion", + value: ModuleVersion.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ModuleVersion.decode(message.value); + }, + toProto(message) { + return ModuleVersion.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + value: ModuleVersion.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js new file mode 100644 index 00000000..e3c19978 --- /dev/null +++ b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js @@ -0,0 +1,19 @@ +//@ts-nocheck +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export const AminoConverter = { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: "cosmos-sdk/MsgCreateVestingAccount", + toAmino: MsgCreateVestingAccount.toAmino, + fromAmino: MsgCreateVestingAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", + toAmino: MsgCreatePermanentLockedAccount.toAmino, + fromAmino: MsgCreatePermanentLockedAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + toAmino: MsgCreatePeriodicVestingAccount.toAmino, + fromAmino: MsgCreatePeriodicVestingAccount.fromAmino + } +}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js new file mode 100644 index 00000000..bea97212 --- /dev/null +++ b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js @@ -0,0 +1,496 @@ +//@ts-nocheck +import { Coin } from "../../base/v1beta1/coin"; +import { Period } from "./vesting"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgCreateVestingAccount() { + return { + fromAddress: "", + toAddress: "", + amount: [], + endTime: BigInt(0), + delayed: false + }; +} +export const MsgCreateVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(32).int64(message.endTime); + } + if (message.delayed === true) { + writer.uint32(40).bool(message.delayed); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.endTime = reader.int64(); + break; + case 5: + message.delayed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + message.delayed = object.delayed ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + if (object.delayed !== undefined && object.delayed !== null) { + message.delayed = object.delayed; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + obj.delayed = message.delayed === false ? undefined : message.delayed; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateVestingAccount", + value: MsgCreateVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateVestingAccount.decode(message.value); + }, + toProto(message) { + return MsgCreateVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreateVestingAccountResponse() { + return {}; +} +export const MsgCreateVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateVestingAccountResponse", + value: MsgCreateVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateVestingAccountResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + value: MsgCreateVestingAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccount() { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +export const MsgCreatePermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreatePermanentLockedAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreatePermanentLockedAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return MsgCreatePermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreatePermanentLockedAccount.decode(message.value); + }, + toProto(message) { + return MsgCreatePermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccountResponse() { + return {}; +} +export const MsgCreatePermanentLockedAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", + value: MsgCreatePermanentLockedAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreatePermanentLockedAccountResponse.decode(message.value); + }, + toProto(message) { + return MsgCreatePermanentLockedAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + value: MsgCreatePermanentLockedAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccount() { + return { + fromAddress: "", + toAddress: "", + startTime: BigInt(0), + vestingPeriods: [] + }; +} +export const MsgCreatePeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(24).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + Period.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.startTime = reader.int64(); + break; + case 4: + message.vestingPeriods.push(Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreatePeriodicVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreatePeriodicVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); + } + else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object) { + return MsgCreatePeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreatePeriodicVestingAccount.decode(message.value); + }, + toProto(message) { + return MsgCreatePeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccountResponse() { + return {}; +} +export const MsgCreatePeriodicVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", + value: MsgCreatePeriodicVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreatePeriodicVestingAccountResponse.decode(message.value); + }, + toProto(message) { + return MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + value: MsgCreatePeriodicVestingAccountResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js new file mode 100644 index 00000000..26984d0e --- /dev/null +++ b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js @@ -0,0 +1,69 @@ +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export const registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.encode(value).finish() + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.encode(value).finish() + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.encode(value).finish() + }; + } + }, + withTypeUrl: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value + }; + } + }, + fromPartial: { + createVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.fromPartial(value) + }; + }, + createPermanentLockedAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.fromPartial(value) + }; + }, + createPeriodicVestingAccount(value) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js new file mode 100644 index 00000000..4f25483f --- /dev/null +++ b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js @@ -0,0 +1,26 @@ +import { BinaryReader } from "../../../binary"; +import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createVestingAccount = this.createVestingAccount.bind(this); + this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); + this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); + } + createVestingAccount(request) { + const data = MsgCreateVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); + return promise.then(data => MsgCreateVestingAccountResponse.decode(new BinaryReader(data))); + } + createPermanentLockedAccount(request) { + const data = MsgCreatePermanentLockedAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); + return promise.then(data => MsgCreatePermanentLockedAccountResponse.decode(new BinaryReader(data))); + } + createPeriodicVestingAccount(request) { + const data = MsgCreatePeriodicVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); + return promise.then(data => MsgCreatePeriodicVestingAccountResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js new file mode 100644 index 00000000..9e50765d --- /dev/null +++ b/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js @@ -0,0 +1,529 @@ +//@ts-nocheck +import { BaseAccount } from "../../auth/v1beta1/auth"; +import { Coin } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseBaseVestingAccount() { + return { + baseAccount: undefined, + originalVesting: [], + delegatedFree: [], + delegatedVesting: [], + endTime: BigInt(0) + }; +} +export const BaseVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseAccount !== undefined) { + BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.originalVesting) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatedFree) { + Coin.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.delegatedVesting) { + Coin.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(40).int64(message.endTime); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.originalVesting.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.delegatedFree.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.delegatedVesting.push(Coin.decode(reader, reader.uint32())); + break; + case 5: + message.endTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBaseVestingAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; + message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || []; + message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || []; + message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBaseVestingAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = BaseAccount.fromAmino(object.base_account); + } + message.originalVesting = object.original_vesting?.map(e => Coin.fromAmino(e)) || []; + message.delegatedFree = object.delegated_free?.map(e => Coin.fromAmino(e)) || []; + message.delegatedVesting = object.delegated_vesting?.map(e => Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; + if (message.originalVesting) { + obj.original_vesting = message.originalVesting.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.original_vesting = message.originalVesting; + } + if (message.delegatedFree) { + obj.delegated_free = message.delegatedFree.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.delegated_free = message.delegatedFree; + } + if (message.delegatedVesting) { + obj.delegated_vesting = message.delegatedVesting.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.delegated_vesting = message.delegatedVesting; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BaseVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/BaseVestingAccount", + value: BaseVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return BaseVestingAccount.decode(message.value); + }, + toProto(message) { + return BaseVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + value: BaseVestingAccount.encode(message).finish() + }; + } +}; +function createBaseContinuousVestingAccount() { + return { + baseVestingAccount: undefined, + startTime: BigInt(0) + }; +} +export const ContinuousVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContinuousVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContinuousVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseContinuousVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ContinuousVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ContinuousVestingAccount", + value: ContinuousVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ContinuousVestingAccount.decode(message.value); + }, + toProto(message) { + return ContinuousVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + value: ContinuousVestingAccount.encode(message).finish() + }; + } +}; +function createBaseDelayedVestingAccount() { + return { + baseVestingAccount: undefined + }; +} +export const DelayedVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelayedVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDelayedVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDelayedVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DelayedVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DelayedVestingAccount", + value: DelayedVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DelayedVestingAccount.decode(message.value); + }, + toProto(message) { + return DelayedVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + value: DelayedVestingAccount.encode(message).finish() + }; + } +}; +function createBasePeriod() { + return { + length: BigInt(0), + amount: [] + }; +} +export const Period = { + typeUrl: "/cosmos.vesting.v1beta1.Period", + encode(message, writer = BinaryWriter.create()) { + if (message.length !== BigInt(0)) { + writer.uint32(8).int64(message.length); + } + for (const v of message.amount) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriod(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.length = reader.int64(); + break; + case 2: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriod(); + message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBasePeriod(); + if (object.length !== undefined && object.length !== null) { + message.length = BigInt(object.length); + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object) { + return Period.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Period", + value: Period.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Period.decode(message.value); + }, + toProto(message) { + return Period.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.Period", + value: Period.encode(message).finish() + }; + } +}; +function createBasePeriodicVestingAccount() { + return { + baseVestingAccount: undefined, + startTime: BigInt(0), + vestingPeriods: [] + }; +} +export const PeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + Period.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + case 3: + message.vestingPeriods.push(Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePeriodicVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBasePeriodicVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); + } + else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object) { + return PeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PeriodicVestingAccount", + value: PeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PeriodicVestingAccount.decode(message.value); + }, + toProto(message) { + return PeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + value: PeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBasePermanentLockedAccount() { + return { + baseVestingAccount: undefined + }; +} +export const PermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePermanentLockedAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePermanentLockedAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/PermanentLockedAccount", + value: PermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message) { + return PermanentLockedAccount.decode(message.value); + }, + toProto(message) { + return PermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + value: PermanentLockedAccount.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/cosmos_proto/bundle.js b/packages/api/dist/esm/cosmos_proto/bundle.js new file mode 100644 index 00000000..90736301 --- /dev/null +++ b/packages/api/dist/esm/cosmos_proto/bundle.js @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _1 from "./cosmos"; +export const cosmos_proto = { + ..._1 +}; diff --git a/packages/api/dist/esm/cosmos_proto/cosmos.js b/packages/api/dist/esm/cosmos_proto/cosmos.js new file mode 100644 index 00000000..d1d3296b --- /dev/null +++ b/packages/api/dist/esm/cosmos_proto/cosmos.js @@ -0,0 +1,216 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../binary"; +export var ScalarType; +(function (ScalarType) { + ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED"; + ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING"; + ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES"; + ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ScalarType || (ScalarType = {})); +export const ScalarTypeSDKType = ScalarType; +export const ScalarTypeAmino = ScalarType; +export function scalarTypeFromJSON(object) { + switch (object) { + case 0: + case "SCALAR_TYPE_UNSPECIFIED": + return ScalarType.SCALAR_TYPE_UNSPECIFIED; + case 1: + case "SCALAR_TYPE_STRING": + return ScalarType.SCALAR_TYPE_STRING; + case 2: + case "SCALAR_TYPE_BYTES": + return ScalarType.SCALAR_TYPE_BYTES; + case -1: + case "UNRECOGNIZED": + default: + return ScalarType.UNRECOGNIZED; + } +} +export function scalarTypeToJSON(object) { + switch (object) { + case ScalarType.SCALAR_TYPE_UNSPECIFIED: + return "SCALAR_TYPE_UNSPECIFIED"; + case ScalarType.SCALAR_TYPE_STRING: + return "SCALAR_TYPE_STRING"; + case ScalarType.SCALAR_TYPE_BYTES: + return "SCALAR_TYPE_BYTES"; + case ScalarType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseInterfaceDescriptor() { + return { + name: "", + description: "" + }; +} +export const InterfaceDescriptor = { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseInterfaceDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseInterfaceDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object) { + return InterfaceDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return InterfaceDescriptor.decode(message.value); + }, + toProto(message) { + return InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + value: InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseScalarDescriptor() { + return { + name: "", + description: "", + fieldType: [] + }; +} +export const ScalarDescriptor = { + typeUrl: "/cosmos_proto.ScalarDescriptor", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + writer.uint32(26).fork(); + for (const v of message.fieldType) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseScalarDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.fieldType.push(reader.int32()); + } + } + else { + message.fieldType.push(reader.int32()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseScalarDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.fieldType = object.fieldType?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseScalarDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.fieldType = object.field_type?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + if (message.fieldType) { + obj.field_type = message.fieldType.map(e => e); + } + else { + obj.field_type = message.fieldType; + } + return obj; + }, + fromAminoMsg(object) { + return ScalarDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ScalarDescriptor.decode(message.value); + }, + toProto(message) { + return ScalarDescriptor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/cosmos_proto.ScalarDescriptor", + value: ScalarDescriptor.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/gogoproto/bundle.js b/packages/api/dist/esm/gogoproto/bundle.js new file mode 100644 index 00000000..3c6de980 --- /dev/null +++ b/packages/api/dist/esm/gogoproto/bundle.js @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _67 from "./gogo"; +export const gogoproto = { + ..._67 +}; diff --git a/packages/api/dist/esm/gogoproto/gogo.js b/packages/api/dist/esm/gogoproto/gogo.js new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/esm/gogoproto/gogo.js @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/esm/google/api/annotations.js b/packages/api/dist/esm/google/api/annotations.js new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/esm/google/api/annotations.js @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/esm/google/api/http.js b/packages/api/dist/esm/google/api/http.js new file mode 100644 index 00000000..7a405fd6 --- /dev/null +++ b/packages/api/dist/esm/google/api/http.js @@ -0,0 +1,329 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseHttp() { + return { + rules: [], + fullyDecodeReservedExpansion: false + }; +} +export const Http = { + typeUrl: "/google.api.Http", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.rules) { + HttpRule.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.fullyDecodeReservedExpansion === true) { + writer.uint32(16).bool(message.fullyDecodeReservedExpansion); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rules.push(HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; + message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || []; + if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { + message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rules) { + obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined); + } + else { + obj.rules = message.rules; + } + obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; + return obj; + }, + fromAminoMsg(object) { + return Http.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Http.decode(message.value); + }, + toProto(message) { + return Http.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.Http", + value: Http.encode(message).finish() + }; + } +}; +function createBaseHttpRule() { + return { + selector: "", + get: undefined, + put: undefined, + post: undefined, + delete: undefined, + patch: undefined, + custom: undefined, + body: "", + responseBody: "", + additionalBindings: [] + }; +} +export const HttpRule = { + typeUrl: "/google.api.HttpRule", + encode(message, writer = BinaryWriter.create()) { + if (message.selector !== "") { + writer.uint32(10).string(message.selector); + } + if (message.get !== undefined) { + writer.uint32(18).string(message.get); + } + if (message.put !== undefined) { + writer.uint32(26).string(message.put); + } + if (message.post !== undefined) { + writer.uint32(34).string(message.post); + } + if (message.delete !== undefined) { + writer.uint32(42).string(message.delete); + } + if (message.patch !== undefined) { + writer.uint32(50).string(message.patch); + } + if (message.custom !== undefined) { + CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); + } + if (message.body !== "") { + writer.uint32(58).string(message.body); + } + if (message.responseBody !== "") { + writer.uint32(98).string(message.responseBody); + } + for (const v of message.additionalBindings) { + HttpRule.encode(v, writer.uint32(90).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttpRule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message.delete = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHttpRule(); + message.selector = object.selector ?? ""; + message.get = object.get ?? undefined; + message.put = object.put ?? undefined; + message.post = object.post ?? undefined; + message.delete = object.delete ?? undefined; + message.patch = object.patch ?? undefined; + message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined; + message.body = object.body ?? ""; + message.responseBody = object.responseBody ?? ""; + message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseHttpRule(); + if (object.selector !== undefined && object.selector !== null) { + message.selector = object.selector; + } + if (object.get !== undefined && object.get !== null) { + message.get = object.get; + } + if (object.put !== undefined && object.put !== null) { + message.put = object.put; + } + if (object.post !== undefined && object.post !== null) { + message.post = object.post; + } + if (object.delete !== undefined && object.delete !== null) { + message.delete = object.delete; + } + if (object.patch !== undefined && object.patch !== null) { + message.patch = object.patch; + } + if (object.custom !== undefined && object.custom !== null) { + message.custom = CustomHttpPattern.fromAmino(object.custom); + } + if (object.body !== undefined && object.body !== null) { + message.body = object.body; + } + if (object.response_body !== undefined && object.response_body !== null) { + message.responseBody = object.response_body; + } + message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.selector = message.selector === "" ? undefined : message.selector; + obj.get = message.get === null ? undefined : message.get; + obj.put = message.put === null ? undefined : message.put; + obj.post = message.post === null ? undefined : message.post; + obj.delete = message.delete === null ? undefined : message.delete; + obj.patch = message.patch === null ? undefined : message.patch; + obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined; + obj.body = message.body === "" ? undefined : message.body; + obj.response_body = message.responseBody === "" ? undefined : message.responseBody; + if (message.additionalBindings) { + obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined); + } + else { + obj.additional_bindings = message.additionalBindings; + } + return obj; + }, + fromAminoMsg(object) { + return HttpRule.fromAmino(object.value); + }, + fromProtoMsg(message) { + return HttpRule.decode(message.value); + }, + toProto(message) { + return HttpRule.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.HttpRule", + value: HttpRule.encode(message).finish() + }; + } +}; +function createBaseCustomHttpPattern() { + return { + kind: "", + path: "" + }; +} +export const CustomHttpPattern = { + typeUrl: "/google.api.CustomHttpPattern", + encode(message, writer = BinaryWriter.create()) { + if (message.kind !== "") { + writer.uint32(10).string(message.kind); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCustomHttpPattern(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCustomHttpPattern(); + message.kind = object.kind ?? ""; + message.path = object.path ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCustomHttpPattern(); + if (object.kind !== undefined && object.kind !== null) { + message.kind = object.kind; + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.kind = message.kind === "" ? undefined : message.kind; + obj.path = message.path === "" ? undefined : message.path; + return obj; + }, + fromAminoMsg(object) { + return CustomHttpPattern.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CustomHttpPattern.decode(message.value); + }, + toProto(message) { + return CustomHttpPattern.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.CustomHttpPattern", + value: CustomHttpPattern.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/google/bundle.js b/packages/api/dist/esm/google/bundle.js new file mode 100644 index 00000000..2a311494 --- /dev/null +++ b/packages/api/dist/esm/google/bundle.js @@ -0,0 +1,14 @@ +//@ts-nocheck +import * as _115 from "./protobuf/descriptor"; +import * as _116 from "./protobuf/any"; +import * as _117 from "./protobuf/timestamp"; +import * as _118 from "./protobuf/duration"; +export var google; +(function (google) { + google.protobuf = { + ..._115, + ..._116, + ..._117, + ..._118 + }; +})(google || (google = {})); diff --git a/packages/api/dist/esm/google/protobuf/any.js b/packages/api/dist/esm/google/protobuf/any.js new file mode 100644 index 00000000..2ad51414 --- /dev/null +++ b/packages/api/dist/esm/google/protobuf/any.js @@ -0,0 +1,74 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseAny() { + return { + $typeUrl: "/google.protobuf.Any", + typeUrl: "", + value: new Uint8Array() + }; +} +export const Any = { + typeUrl: "/google.protobuf.Any", + encode(message, writer = BinaryWriter.create()) { + if (message.typeUrl !== "") { + writer.uint32(10).string(message.typeUrl); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAny(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.typeUrl = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAny(); + message.typeUrl = object.typeUrl ?? ""; + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + return { + typeUrl: object.type, + value: object.value + }; + }, + toAmino(message) { + const obj = {}; + obj.type = message.typeUrl; + obj.value = message.value; + return obj; + }, + fromAminoMsg(object) { + return Any.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Any.decode(message.value); + }, + toProto(message) { + return Any.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Any", + value: Any.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/google/protobuf/descriptor.js b/packages/api/dist/esm/google/protobuf/descriptor.js new file mode 100644 index 00000000..70ce4619 --- /dev/null +++ b/packages/api/dist/esm/google/protobuf/descriptor.js @@ -0,0 +1,3390 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +export var FieldDescriptorProto_Type; +(function (FieldDescriptorProto_Type) { + /** + * TYPE_DOUBLE - 0 is reserved for errors. + * Order is weird for historical reasons. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; + /** + * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; + /** + * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; + /** + * TYPE_GROUP - Tag-delimited aggregate. + * Group type is deprecated and not supported in proto3. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; + /** TYPE_BYTES - New in version 2. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; + /** TYPE_SINT32 - Uses ZigZag encoding. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; + /** TYPE_SINT64 - Uses ZigZag encoding. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {})); +export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; +export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; +export function fieldDescriptorProto_TypeFromJSON(object) { + switch (object) { + case 1: + case "TYPE_DOUBLE": + return FieldDescriptorProto_Type.TYPE_DOUBLE; + case 2: + case "TYPE_FLOAT": + return FieldDescriptorProto_Type.TYPE_FLOAT; + case 3: + case "TYPE_INT64": + return FieldDescriptorProto_Type.TYPE_INT64; + case 4: + case "TYPE_UINT64": + return FieldDescriptorProto_Type.TYPE_UINT64; + case 5: + case "TYPE_INT32": + return FieldDescriptorProto_Type.TYPE_INT32; + case 6: + case "TYPE_FIXED64": + return FieldDescriptorProto_Type.TYPE_FIXED64; + case 7: + case "TYPE_FIXED32": + return FieldDescriptorProto_Type.TYPE_FIXED32; + case 8: + case "TYPE_BOOL": + return FieldDescriptorProto_Type.TYPE_BOOL; + case 9: + case "TYPE_STRING": + return FieldDescriptorProto_Type.TYPE_STRING; + case 10: + case "TYPE_GROUP": + return FieldDescriptorProto_Type.TYPE_GROUP; + case 11: + case "TYPE_MESSAGE": + return FieldDescriptorProto_Type.TYPE_MESSAGE; + case 12: + case "TYPE_BYTES": + return FieldDescriptorProto_Type.TYPE_BYTES; + case 13: + case "TYPE_UINT32": + return FieldDescriptorProto_Type.TYPE_UINT32; + case 14: + case "TYPE_ENUM": + return FieldDescriptorProto_Type.TYPE_ENUM; + case 15: + case "TYPE_SFIXED32": + return FieldDescriptorProto_Type.TYPE_SFIXED32; + case 16: + case "TYPE_SFIXED64": + return FieldDescriptorProto_Type.TYPE_SFIXED64; + case 17: + case "TYPE_SINT32": + return FieldDescriptorProto_Type.TYPE_SINT32; + case 18: + case "TYPE_SINT64": + return FieldDescriptorProto_Type.TYPE_SINT64; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Type.UNRECOGNIZED; + } +} +export function fieldDescriptorProto_TypeToJSON(object) { + switch (object) { + case FieldDescriptorProto_Type.TYPE_DOUBLE: + return "TYPE_DOUBLE"; + case FieldDescriptorProto_Type.TYPE_FLOAT: + return "TYPE_FLOAT"; + case FieldDescriptorProto_Type.TYPE_INT64: + return "TYPE_INT64"; + case FieldDescriptorProto_Type.TYPE_UINT64: + return "TYPE_UINT64"; + case FieldDescriptorProto_Type.TYPE_INT32: + return "TYPE_INT32"; + case FieldDescriptorProto_Type.TYPE_FIXED64: + return "TYPE_FIXED64"; + case FieldDescriptorProto_Type.TYPE_FIXED32: + return "TYPE_FIXED32"; + case FieldDescriptorProto_Type.TYPE_BOOL: + return "TYPE_BOOL"; + case FieldDescriptorProto_Type.TYPE_STRING: + return "TYPE_STRING"; + case FieldDescriptorProto_Type.TYPE_GROUP: + return "TYPE_GROUP"; + case FieldDescriptorProto_Type.TYPE_MESSAGE: + return "TYPE_MESSAGE"; + case FieldDescriptorProto_Type.TYPE_BYTES: + return "TYPE_BYTES"; + case FieldDescriptorProto_Type.TYPE_UINT32: + return "TYPE_UINT32"; + case FieldDescriptorProto_Type.TYPE_ENUM: + return "TYPE_ENUM"; + case FieldDescriptorProto_Type.TYPE_SFIXED32: + return "TYPE_SFIXED32"; + case FieldDescriptorProto_Type.TYPE_SFIXED64: + return "TYPE_SFIXED64"; + case FieldDescriptorProto_Type.TYPE_SINT32: + return "TYPE_SINT32"; + case FieldDescriptorProto_Type.TYPE_SINT64: + return "TYPE_SINT64"; + case FieldDescriptorProto_Type.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var FieldDescriptorProto_Label; +(function (FieldDescriptorProto_Label) { + /** LABEL_OPTIONAL - 0 is reserved for errors */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {})); +export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; +export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; +export function fieldDescriptorProto_LabelFromJSON(object) { + switch (object) { + case 1: + case "LABEL_OPTIONAL": + return FieldDescriptorProto_Label.LABEL_OPTIONAL; + case 2: + case "LABEL_REQUIRED": + return FieldDescriptorProto_Label.LABEL_REQUIRED; + case 3: + case "LABEL_REPEATED": + return FieldDescriptorProto_Label.LABEL_REPEATED; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Label.UNRECOGNIZED; + } +} +export function fieldDescriptorProto_LabelToJSON(object) { + switch (object) { + case FieldDescriptorProto_Label.LABEL_OPTIONAL: + return "LABEL_OPTIONAL"; + case FieldDescriptorProto_Label.LABEL_REQUIRED: + return "LABEL_REQUIRED"; + case FieldDescriptorProto_Label.LABEL_REPEATED: + return "LABEL_REPEATED"; + case FieldDescriptorProto_Label.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** Generated classes can be optimized for speed or code size. */ +export var FileOptions_OptimizeMode; +(function (FileOptions_OptimizeMode) { + /** + * SPEED - Generate complete code for parsing, serialization, + * etc. + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; + /** CODE_SIZE - Use ReflectionOps to implement these methods. */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; + /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; + FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {})); +export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; +export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; +export function fileOptions_OptimizeModeFromJSON(object) { + switch (object) { + case 1: + case "SPEED": + return FileOptions_OptimizeMode.SPEED; + case 2: + case "CODE_SIZE": + return FileOptions_OptimizeMode.CODE_SIZE; + case 3: + case "LITE_RUNTIME": + return FileOptions_OptimizeMode.LITE_RUNTIME; + case -1: + case "UNRECOGNIZED": + default: + return FileOptions_OptimizeMode.UNRECOGNIZED; + } +} +export function fileOptions_OptimizeModeToJSON(object) { + switch (object) { + case FileOptions_OptimizeMode.SPEED: + return "SPEED"; + case FileOptions_OptimizeMode.CODE_SIZE: + return "CODE_SIZE"; + case FileOptions_OptimizeMode.LITE_RUNTIME: + return "LITE_RUNTIME"; + case FileOptions_OptimizeMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var FieldOptions_CType; +(function (FieldOptions_CType) { + /** STRING - Default mode. */ + FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; + FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; + FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; + FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldOptions_CType || (FieldOptions_CType = {})); +export const FieldOptions_CTypeSDKType = FieldOptions_CType; +export const FieldOptions_CTypeAmino = FieldOptions_CType; +export function fieldOptions_CTypeFromJSON(object) { + switch (object) { + case 0: + case "STRING": + return FieldOptions_CType.STRING; + case 1: + case "CORD": + return FieldOptions_CType.CORD; + case 2: + case "STRING_PIECE": + return FieldOptions_CType.STRING_PIECE; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_CType.UNRECOGNIZED; + } +} +export function fieldOptions_CTypeToJSON(object) { + switch (object) { + case FieldOptions_CType.STRING: + return "STRING"; + case FieldOptions_CType.CORD: + return "CORD"; + case FieldOptions_CType.STRING_PIECE: + return "STRING_PIECE"; + case FieldOptions_CType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var FieldOptions_JSType; +(function (FieldOptions_JSType) { + /** JS_NORMAL - Use the default type. */ + FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; + /** JS_STRING - Use JavaScript strings. */ + FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; + /** JS_NUMBER - Use JavaScript numbers. */ + FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; + FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldOptions_JSType || (FieldOptions_JSType = {})); +export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; +export const FieldOptions_JSTypeAmino = FieldOptions_JSType; +export function fieldOptions_JSTypeFromJSON(object) { + switch (object) { + case 0: + case "JS_NORMAL": + return FieldOptions_JSType.JS_NORMAL; + case 1: + case "JS_STRING": + return FieldOptions_JSType.JS_STRING; + case 2: + case "JS_NUMBER": + return FieldOptions_JSType.JS_NUMBER; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_JSType.UNRECOGNIZED; + } +} +export function fieldOptions_JSTypeToJSON(object) { + switch (object) { + case FieldOptions_JSType.JS_NORMAL: + return "JS_NORMAL"; + case FieldOptions_JSType.JS_STRING: + return "JS_STRING"; + case FieldOptions_JSType.JS_NUMBER: + return "JS_NUMBER"; + case FieldOptions_JSType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + */ +export var MethodOptions_IdempotencyLevel; +(function (MethodOptions_IdempotencyLevel) { + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; + /** NO_SIDE_EFFECTS - implies idempotent */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; + /** IDEMPOTENT - idempotent, but may have side effects */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {})); +export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; +export const MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; +export function methodOptions_IdempotencyLevelFromJSON(object) { + switch (object) { + case 0: + case "IDEMPOTENCY_UNKNOWN": + return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; + case 1: + case "NO_SIDE_EFFECTS": + return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; + case 2: + case "IDEMPOTENT": + return MethodOptions_IdempotencyLevel.IDEMPOTENT; + case -1: + case "UNRECOGNIZED": + default: + return MethodOptions_IdempotencyLevel.UNRECOGNIZED; + } +} +export function methodOptions_IdempotencyLevelToJSON(object) { + switch (object) { + case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: + return "IDEMPOTENCY_UNKNOWN"; + case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: + return "NO_SIDE_EFFECTS"; + case MethodOptions_IdempotencyLevel.IDEMPOTENT: + return "IDEMPOTENT"; + case MethodOptions_IdempotencyLevel.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseFileDescriptorSet() { + return { + file: [] + }; +} +export const FileDescriptorSet = { + typeUrl: "/google.protobuf.FileDescriptorSet", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.file) { + FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.file.push(FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => FileDescriptorProto.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.file) { + obj.file = message.file.map(e => e ? FileDescriptorProto.toAmino(e) : undefined); + } + else { + obj.file = message.file; + } + return obj; + }, + fromAminoMsg(object) { + return FileDescriptorSet.fromAmino(object.value); + }, + fromProtoMsg(message) { + return FileDescriptorSet.decode(message.value); + }, + toProto(message) { + return FileDescriptorSet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileDescriptorSet", + value: FileDescriptorSet.encode(message).finish() + }; + } +}; +function createBaseFileDescriptorProto() { + return { + name: "", + package: "", + dependency: [], + publicDependency: [], + weakDependency: [], + messageType: [], + enumType: [], + service: [], + extension: [], + options: undefined, + sourceCodeInfo: undefined, + syntax: "" + }; +} +export const FileDescriptorProto = { + typeUrl: "/google.protobuf.FileDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.package !== "") { + writer.uint32(18).string(message.package); + } + for (const v of message.dependency) { + writer.uint32(26).string(v); + } + writer.uint32(82).fork(); + for (const v of message.publicDependency) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(90).fork(); + for (const v of message.weakDependency) { + writer.int32(v); + } + writer.ldelim(); + for (const v of message.messageType) { + DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.enumType) { + EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.service) { + ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.extension) { + FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.options !== undefined) { + FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + if (message.sourceCodeInfo !== undefined) { + SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); + } + if (message.syntax !== "") { + writer.uint32(98).string(message.syntax); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.package = reader.string(); + break; + case 3: + message.dependency.push(reader.string()); + break; + case 10: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.publicDependency.push(reader.int32()); + } + } + else { + message.publicDependency.push(reader.int32()); + } + break; + case 11: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.weakDependency.push(reader.int32()); + } + } + else { + message.weakDependency.push(reader.int32()); + } + break; + case 4: + message.messageType.push(DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileDescriptorProto(); + message.name = object.name ?? ""; + message.package = object.package ?? ""; + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.publicDependency?.map(e => e) || []; + message.weakDependency = object.weakDependency?.map(e => e) || []; + message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; + message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined; + message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; + message.syntax = object.syntax ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseFileDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.package !== undefined && object.package !== null) { + message.package = object.package; + } + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.public_dependency?.map(e => e) || []; + message.weakDependency = object.weak_dependency?.map(e => e) || []; + message.messageType = object.message_type?.map(e => DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; + message.service = object.service?.map(e => ServiceDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = FileOptions.fromAmino(object.options); + } + if (object.source_code_info !== undefined && object.source_code_info !== null) { + message.sourceCodeInfo = SourceCodeInfo.fromAmino(object.source_code_info); + } + if (object.syntax !== undefined && object.syntax !== null) { + message.syntax = object.syntax; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.package = message.package === "" ? undefined : message.package; + if (message.dependency) { + obj.dependency = message.dependency.map(e => e); + } + else { + obj.dependency = message.dependency; + } + if (message.publicDependency) { + obj.public_dependency = message.publicDependency.map(e => e); + } + else { + obj.public_dependency = message.publicDependency; + } + if (message.weakDependency) { + obj.weak_dependency = message.weakDependency.map(e => e); + } + else { + obj.weak_dependency = message.weakDependency; + } + if (message.messageType) { + obj.message_type = message.messageType.map(e => e ? DescriptorProto.toAmino(e) : undefined); + } + else { + obj.message_type = message.messageType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); + } + else { + obj.enum_type = message.enumType; + } + if (message.service) { + obj.service = message.service.map(e => e ? ServiceDescriptorProto.toAmino(e) : undefined); + } + else { + obj.service = message.service; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.extension = message.extension; + } + obj.options = message.options ? FileOptions.toAmino(message.options) : undefined; + obj.source_code_info = message.sourceCodeInfo ? SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; + obj.syntax = message.syntax === "" ? undefined : message.syntax; + return obj; + }, + fromAminoMsg(object) { + return FileDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return FileDescriptorProto.decode(message.value); + }, + toProto(message) { + return FileDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileDescriptorProto", + value: FileDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto() { + return { + name: "", + field: [], + extension: [], + nestedType: [], + enumType: [], + extensionRange: [], + oneofDecl: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +export const DescriptorProto = { + typeUrl: "/google.protobuf.DescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.field) { + FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.extension) { + FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.nestedType) { + DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.enumType) { + EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.extensionRange) { + DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.oneofDecl) { + OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim(); + } + if (message.options !== undefined) { + MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.reservedRange) { + DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(82).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.field.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.nestedType.push(DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto(); + message.name = object.name ?? ""; + message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; + message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || []; + message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.field = object.field?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + message.nestedType = object.nested_type?.map(e => DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; + message.extensionRange = object.extension_range?.map(e => DescriptorProto_ExtensionRange.fromAmino(e)) || []; + message.oneofDecl = object.oneof_decl?.map(e => OneofDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = MessageOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => DescriptorProto_ReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.field) { + obj.field = message.field.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.field = message.field; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.extension = message.extension; + } + if (message.nestedType) { + obj.nested_type = message.nestedType.map(e => e ? DescriptorProto.toAmino(e) : undefined); + } + else { + obj.nested_type = message.nestedType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); + } + else { + obj.enum_type = message.enumType; + } + if (message.extensionRange) { + obj.extension_range = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toAmino(e) : undefined); + } + else { + obj.extension_range = message.extensionRange; + } + if (message.oneofDecl) { + obj.oneof_decl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toAmino(e) : undefined); + } + else { + obj.oneof_decl = message.oneofDecl; + } + obj.options = message.options ? MessageOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toAmino(e) : undefined); + } + else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } + else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object) { + return DescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DescriptorProto.decode(message.value); + }, + toProto(message) { + return DescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.DescriptorProto", + value: DescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ExtensionRange() { + return { + start: 0, + end: 0, + options: undefined + }; +} +export const DescriptorProto_ExtensionRange = { + typeUrl: "/google.protobuf.ExtensionRange", + encode(message, writer = BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + if (message.options !== undefined) { + ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ExtensionRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto_ExtensionRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto_ExtensionRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + if (object.options !== undefined && object.options !== null) { + message.options = ExtensionRangeOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + obj.options = message.options ? ExtensionRangeOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DescriptorProto_ExtensionRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DescriptorProto_ExtensionRange.decode(message.value); + }, + toProto(message) { + return DescriptorProto_ExtensionRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ExtensionRange", + value: DescriptorProto_ExtensionRange.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ReservedRange() { + return { + start: 0, + end: 0 + }; +} +export const DescriptorProto_ReservedRange = { + typeUrl: "/google.protobuf.ReservedRange", + encode(message, writer = BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto_ReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto_ReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return DescriptorProto_ReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DescriptorProto_ReservedRange.decode(message.value); + }, + toProto(message) { + return DescriptorProto_ReservedRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ReservedRange", + value: DescriptorProto_ReservedRange.encode(message).finish() + }; + } +}; +function createBaseExtensionRangeOptions() { + return { + uninterpretedOption: [] + }; +} +export const ExtensionRangeOptions = { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtensionRangeOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return ExtensionRangeOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ExtensionRangeOptions.decode(message.value); + }, + toProto(message) { + return ExtensionRangeOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + value: ExtensionRangeOptions.encode(message).finish() + }; + } +}; +function createBaseFieldDescriptorProto() { + return { + name: "", + number: 0, + label: 1, + type: 1, + typeName: "", + extendee: "", + defaultValue: "", + oneofIndex: 0, + jsonName: "", + options: undefined + }; +} +export const FieldDescriptorProto = { + typeUrl: "/google.protobuf.FieldDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(24).int32(message.number); + } + if (message.label !== 1) { + writer.uint32(32).int32(message.label); + } + if (message.type !== 1) { + writer.uint32(40).int32(message.type); + } + if (message.typeName !== "") { + writer.uint32(50).string(message.typeName); + } + if (message.extendee !== "") { + writer.uint32(18).string(message.extendee); + } + if (message.defaultValue !== "") { + writer.uint32(58).string(message.defaultValue); + } + if (message.oneofIndex !== 0) { + writer.uint32(72).int32(message.oneofIndex); + } + if (message.jsonName !== "") { + writer.uint32(82).string(message.jsonName); + } + if (message.options !== undefined) { + FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFieldDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.label = object.label ?? 1; + message.type = object.type ?? 1; + message.typeName = object.typeName ?? ""; + message.extendee = object.extendee ?? ""; + message.defaultValue = object.defaultValue ?? ""; + message.oneofIndex = object.oneofIndex ?? 0; + message.jsonName = object.jsonName ?? ""; + message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseFieldDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.label !== undefined && object.label !== null) { + message.label = object.label; + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.type_name !== undefined && object.type_name !== null) { + message.typeName = object.type_name; + } + if (object.extendee !== undefined && object.extendee !== null) { + message.extendee = object.extendee; + } + if (object.default_value !== undefined && object.default_value !== null) { + message.defaultValue = object.default_value; + } + if (object.oneof_index !== undefined && object.oneof_index !== null) { + message.oneofIndex = object.oneof_index; + } + if (object.json_name !== undefined && object.json_name !== null) { + message.jsonName = object.json_name; + } + if (object.options !== undefined && object.options !== null) { + message.options = FieldOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.label = message.label === 1 ? undefined : message.label; + obj.type = message.type === 1 ? undefined : message.type; + obj.type_name = message.typeName === "" ? undefined : message.typeName; + obj.extendee = message.extendee === "" ? undefined : message.extendee; + obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; + obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; + obj.json_name = message.jsonName === "" ? undefined : message.jsonName; + obj.options = message.options ? FieldOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return FieldDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return FieldDescriptorProto.decode(message.value); + }, + toProto(message) { + return FieldDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FieldDescriptorProto", + value: FieldDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseOneofDescriptorProto() { + return { + name: "", + options: undefined + }; +} +export const OneofDescriptorProto = { + typeUrl: "/google.protobuf.OneofDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.options !== undefined) { + OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOneofDescriptorProto(); + message.name = object.name ?? ""; + message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseOneofDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.options !== undefined && object.options !== null) { + message.options = OneofOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.options = message.options ? OneofOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return OneofDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return OneofDescriptorProto.decode(message.value); + }, + toProto(message) { + return OneofDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.OneofDescriptorProto", + value: OneofDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto() { + return { + name: "", + value: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +export const EnumDescriptorProto = { + typeUrl: "/google.protobuf.EnumDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.value) { + EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.reservedRange) { + EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(42).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = EnumOptions.decode(reader, reader.uint32()); + break; + case 4: + message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); + break; + case 5: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumDescriptorProto(); + message.name = object.name ?? ""; + message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.value = object.value?.map(e => EnumValueDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = EnumOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.value) { + obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toAmino(e) : undefined); + } + else { + obj.value = message.value; + } + obj.options = message.options ? EnumOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); + } + else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } + else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object) { + return EnumDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EnumDescriptorProto.decode(message.value); + }, + toProto(message) { + return EnumDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumDescriptorProto", + value: EnumDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto_EnumReservedRange() { + return { + start: 0, + end: 0 + }; +} +export const EnumDescriptorProto_EnumReservedRange = { + typeUrl: "/google.protobuf.EnumReservedRange", + encode(message, writer = BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EnumDescriptorProto_EnumReservedRange.decode(message.value); + }, + toProto(message) { + return EnumDescriptorProto_EnumReservedRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumReservedRange", + value: EnumDescriptorProto_EnumReservedRange.encode(message).finish() + }; + } +}; +function createBaseEnumValueDescriptorProto() { + return { + name: "", + number: 0, + options: undefined + }; +} +export const EnumValueDescriptorProto = { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.options !== undefined) { + EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumValueDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEnumValueDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.options !== undefined && object.options !== null) { + message.options = EnumValueOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.options = message.options ? EnumValueOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return EnumValueDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EnumValueDescriptorProto.decode(message.value); + }, + toProto(message) { + return EnumValueDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + value: EnumValueDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseServiceDescriptorProto() { + return { + name: "", + method: [], + options: undefined + }; +} +export const ServiceDescriptorProto = { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.method) { + MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.method.push(MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseServiceDescriptorProto(); + message.name = object.name ?? ""; + message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseServiceDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.method = object.method?.map(e => MethodDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = ServiceOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.method) { + obj.method = message.method.map(e => e ? MethodDescriptorProto.toAmino(e) : undefined); + } + else { + obj.method = message.method; + } + obj.options = message.options ? ServiceOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ServiceDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ServiceDescriptorProto.decode(message.value); + }, + toProto(message) { + return ServiceDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + value: ServiceDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseMethodDescriptorProto() { + return { + name: "", + inputType: "", + outputType: "", + options: undefined, + clientStreaming: false, + serverStreaming: false + }; +} +export const MethodDescriptorProto = { + typeUrl: "/google.protobuf.MethodDescriptorProto", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.inputType !== "") { + writer.uint32(18).string(message.inputType); + } + if (message.outputType !== "") { + writer.uint32(26).string(message.outputType); + } + if (message.options !== undefined) { + MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); + } + if (message.clientStreaming === true) { + writer.uint32(40).bool(message.clientStreaming); + } + if (message.serverStreaming === true) { + writer.uint32(48).bool(message.serverStreaming); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMethodDescriptorProto(); + message.name = object.name ?? ""; + message.inputType = object.inputType ?? ""; + message.outputType = object.outputType ?? ""; + message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined; + message.clientStreaming = object.clientStreaming ?? false; + message.serverStreaming = object.serverStreaming ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMethodDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.input_type !== undefined && object.input_type !== null) { + message.inputType = object.input_type; + } + if (object.output_type !== undefined && object.output_type !== null) { + message.outputType = object.output_type; + } + if (object.options !== undefined && object.options !== null) { + message.options = MethodOptions.fromAmino(object.options); + } + if (object.client_streaming !== undefined && object.client_streaming !== null) { + message.clientStreaming = object.client_streaming; + } + if (object.server_streaming !== undefined && object.server_streaming !== null) { + message.serverStreaming = object.server_streaming; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.input_type = message.inputType === "" ? undefined : message.inputType; + obj.output_type = message.outputType === "" ? undefined : message.outputType; + obj.options = message.options ? MethodOptions.toAmino(message.options) : undefined; + obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; + obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; + return obj; + }, + fromAminoMsg(object) { + return MethodDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MethodDescriptorProto.decode(message.value); + }, + toProto(message) { + return MethodDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MethodDescriptorProto", + value: MethodDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseFileOptions() { + return { + javaPackage: "", + javaOuterClassname: "", + javaMultipleFiles: false, + javaGenerateEqualsAndHash: false, + javaStringCheckUtf8: false, + optimizeFor: 1, + goPackage: "", + ccGenericServices: false, + javaGenericServices: false, + pyGenericServices: false, + phpGenericServices: false, + deprecated: false, + ccEnableArenas: false, + objcClassPrefix: "", + csharpNamespace: "", + swiftPrefix: "", + phpClassPrefix: "", + phpNamespace: "", + phpMetadataNamespace: "", + rubyPackage: "", + uninterpretedOption: [] + }; +} +export const FileOptions = { + typeUrl: "/google.protobuf.FileOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.javaPackage !== "") { + writer.uint32(10).string(message.javaPackage); + } + if (message.javaOuterClassname !== "") { + writer.uint32(66).string(message.javaOuterClassname); + } + if (message.javaMultipleFiles === true) { + writer.uint32(80).bool(message.javaMultipleFiles); + } + if (message.javaGenerateEqualsAndHash === true) { + writer.uint32(160).bool(message.javaGenerateEqualsAndHash); + } + if (message.javaStringCheckUtf8 === true) { + writer.uint32(216).bool(message.javaStringCheckUtf8); + } + if (message.optimizeFor !== 1) { + writer.uint32(72).int32(message.optimizeFor); + } + if (message.goPackage !== "") { + writer.uint32(90).string(message.goPackage); + } + if (message.ccGenericServices === true) { + writer.uint32(128).bool(message.ccGenericServices); + } + if (message.javaGenericServices === true) { + writer.uint32(136).bool(message.javaGenericServices); + } + if (message.pyGenericServices === true) { + writer.uint32(144).bool(message.pyGenericServices); + } + if (message.phpGenericServices === true) { + writer.uint32(336).bool(message.phpGenericServices); + } + if (message.deprecated === true) { + writer.uint32(184).bool(message.deprecated); + } + if (message.ccEnableArenas === true) { + writer.uint32(248).bool(message.ccEnableArenas); + } + if (message.objcClassPrefix !== "") { + writer.uint32(290).string(message.objcClassPrefix); + } + if (message.csharpNamespace !== "") { + writer.uint32(298).string(message.csharpNamespace); + } + if (message.swiftPrefix !== "") { + writer.uint32(314).string(message.swiftPrefix); + } + if (message.phpClassPrefix !== "") { + writer.uint32(322).string(message.phpClassPrefix); + } + if (message.phpNamespace !== "") { + writer.uint32(330).string(message.phpNamespace); + } + if (message.phpMetadataNamespace !== "") { + writer.uint32(354).string(message.phpMetadataNamespace); + } + if (message.rubyPackage !== "") { + writer.uint32(362).string(message.rubyPackage); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileOptions(); + message.javaPackage = object.javaPackage ?? ""; + message.javaOuterClassname = object.javaOuterClassname ?? ""; + message.javaMultipleFiles = object.javaMultipleFiles ?? false; + message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; + message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; + message.optimizeFor = object.optimizeFor ?? 1; + message.goPackage = object.goPackage ?? ""; + message.ccGenericServices = object.ccGenericServices ?? false; + message.javaGenericServices = object.javaGenericServices ?? false; + message.pyGenericServices = object.pyGenericServices ?? false; + message.phpGenericServices = object.phpGenericServices ?? false; + message.deprecated = object.deprecated ?? false; + message.ccEnableArenas = object.ccEnableArenas ?? false; + message.objcClassPrefix = object.objcClassPrefix ?? ""; + message.csharpNamespace = object.csharpNamespace ?? ""; + message.swiftPrefix = object.swiftPrefix ?? ""; + message.phpClassPrefix = object.phpClassPrefix ?? ""; + message.phpNamespace = object.phpNamespace ?? ""; + message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; + message.rubyPackage = object.rubyPackage ?? ""; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFileOptions(); + if (object.java_package !== undefined && object.java_package !== null) { + message.javaPackage = object.java_package; + } + if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { + message.javaOuterClassname = object.java_outer_classname; + } + if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { + message.javaMultipleFiles = object.java_multiple_files; + } + if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { + message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; + } + if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { + message.javaStringCheckUtf8 = object.java_string_check_utf8; + } + if (object.optimize_for !== undefined && object.optimize_for !== null) { + message.optimizeFor = object.optimize_for; + } + if (object.go_package !== undefined && object.go_package !== null) { + message.goPackage = object.go_package; + } + if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { + message.ccGenericServices = object.cc_generic_services; + } + if (object.java_generic_services !== undefined && object.java_generic_services !== null) { + message.javaGenericServices = object.java_generic_services; + } + if (object.py_generic_services !== undefined && object.py_generic_services !== null) { + message.pyGenericServices = object.py_generic_services; + } + if (object.php_generic_services !== undefined && object.php_generic_services !== null) { + message.phpGenericServices = object.php_generic_services; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { + message.ccEnableArenas = object.cc_enable_arenas; + } + if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { + message.objcClassPrefix = object.objc_class_prefix; + } + if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { + message.csharpNamespace = object.csharp_namespace; + } + if (object.swift_prefix !== undefined && object.swift_prefix !== null) { + message.swiftPrefix = object.swift_prefix; + } + if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { + message.phpClassPrefix = object.php_class_prefix; + } + if (object.php_namespace !== undefined && object.php_namespace !== null) { + message.phpNamespace = object.php_namespace; + } + if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { + message.phpMetadataNamespace = object.php_metadata_namespace; + } + if (object.ruby_package !== undefined && object.ruby_package !== null) { + message.rubyPackage = object.ruby_package; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; + obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; + obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; + obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; + obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; + obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; + obj.go_package = message.goPackage === "" ? undefined : message.goPackage; + obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; + obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; + obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; + obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; + obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; + obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; + obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; + obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; + obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; + obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; + obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return FileOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return FileOptions.decode(message.value); + }, + toProto(message) { + return FileOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileOptions", + value: FileOptions.encode(message).finish() + }; + } +}; +function createBaseMessageOptions() { + return { + messageSetWireFormat: false, + noStandardDescriptorAccessor: false, + deprecated: false, + mapEntry: false, + uninterpretedOption: [] + }; +} +export const MessageOptions = { + typeUrl: "/google.protobuf.MessageOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.messageSetWireFormat === true) { + writer.uint32(8).bool(message.messageSetWireFormat); + } + if (message.noStandardDescriptorAccessor === true) { + writer.uint32(16).bool(message.noStandardDescriptorAccessor); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.mapEntry === true) { + writer.uint32(56).bool(message.mapEntry); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMessageOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMessageOptions(); + message.messageSetWireFormat = object.messageSetWireFormat ?? false; + message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; + message.deprecated = object.deprecated ?? false; + message.mapEntry = object.mapEntry ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMessageOptions(); + if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { + message.messageSetWireFormat = object.message_set_wire_format; + } + if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { + message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.map_entry !== undefined && object.map_entry !== null) { + message.mapEntry = object.map_entry; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; + obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return MessageOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MessageOptions.decode(message.value); + }, + toProto(message) { + return MessageOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MessageOptions", + value: MessageOptions.encode(message).finish() + }; + } +}; +function createBaseFieldOptions() { + return { + ctype: 1, + packed: false, + jstype: 1, + lazy: false, + deprecated: false, + weak: false, + uninterpretedOption: [] + }; +} +export const FieldOptions = { + typeUrl: "/google.protobuf.FieldOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.ctype !== 1) { + writer.uint32(8).int32(message.ctype); + } + if (message.packed === true) { + writer.uint32(16).bool(message.packed); + } + if (message.jstype !== 1) { + writer.uint32(48).int32(message.jstype); + } + if (message.lazy === true) { + writer.uint32(40).bool(message.lazy); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.weak === true) { + writer.uint32(80).bool(message.weak); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFieldOptions(); + message.ctype = object.ctype ?? 1; + message.packed = object.packed ?? false; + message.jstype = object.jstype ?? 1; + message.lazy = object.lazy ?? false; + message.deprecated = object.deprecated ?? false; + message.weak = object.weak ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFieldOptions(); + if (object.ctype !== undefined && object.ctype !== null) { + message.ctype = object.ctype; + } + if (object.packed !== undefined && object.packed !== null) { + message.packed = object.packed; + } + if (object.jstype !== undefined && object.jstype !== null) { + message.jstype = object.jstype; + } + if (object.lazy !== undefined && object.lazy !== null) { + message.lazy = object.lazy; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.weak !== undefined && object.weak !== null) { + message.weak = object.weak; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.ctype = message.ctype === 1 ? undefined : message.ctype; + obj.packed = message.packed === false ? undefined : message.packed; + obj.jstype = message.jstype === 1 ? undefined : message.jstype; + obj.lazy = message.lazy === false ? undefined : message.lazy; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.weak = message.weak === false ? undefined : message.weak; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return FieldOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return FieldOptions.decode(message.value); + }, + toProto(message) { + return FieldOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FieldOptions", + value: FieldOptions.encode(message).finish() + }; + } +}; +function createBaseOneofOptions() { + return { + uninterpretedOption: [] + }; +} +export const OneofOptions = { + typeUrl: "/google.protobuf.OneofOptions", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return OneofOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return OneofOptions.decode(message.value); + }, + toProto(message) { + return OneofOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.OneofOptions", + value: OneofOptions.encode(message).finish() + }; + } +}; +function createBaseEnumOptions() { + return { + allowAlias: false, + deprecated: false, + uninterpretedOption: [] + }; +} +export const EnumOptions = { + typeUrl: "/google.protobuf.EnumOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.allowAlias === true) { + writer.uint32(16).bool(message.allowAlias); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumOptions(); + message.allowAlias = object.allowAlias ?? false; + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumOptions(); + if (object.allow_alias !== undefined && object.allow_alias !== null) { + message.allowAlias = object.allow_alias; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return EnumOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EnumOptions.decode(message.value); + }, + toProto(message) { + return EnumOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumOptions", + value: EnumOptions.encode(message).finish() + }; + } +}; +function createBaseEnumValueOptions() { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +export const EnumValueOptions = { + typeUrl: "/google.protobuf.EnumValueOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(8).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumValueOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumValueOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return EnumValueOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EnumValueOptions.decode(message.value); + }, + toProto(message) { + return EnumValueOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumValueOptions", + value: EnumValueOptions.encode(message).finish() + }; + } +}; +function createBaseServiceOptions() { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +export const ServiceOptions = { + typeUrl: "/google.protobuf.ServiceOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseServiceOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseServiceOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return ServiceOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ServiceOptions.decode(message.value); + }, + toProto(message) { + return ServiceOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ServiceOptions", + value: ServiceOptions.encode(message).finish() + }; + } +}; +function createBaseMethodOptions() { + return { + deprecated: false, + idempotencyLevel: 1, + uninterpretedOption: [] + }; +} +export const MethodOptions = { + typeUrl: "/google.protobuf.MethodOptions", + encode(message, writer = BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + if (message.idempotencyLevel !== 1) { + writer.uint32(272).int32(message.idempotencyLevel); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 34: + message.idempotencyLevel = reader.int32(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMethodOptions(); + message.deprecated = object.deprecated ?? false; + message.idempotencyLevel = object.idempotencyLevel ?? 1; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMethodOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.idempotency_level !== undefined && object.idempotency_level !== null) { + message.idempotencyLevel = object.idempotency_level; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return MethodOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MethodOptions.decode(message.value); + }, + toProto(message) { + return MethodOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MethodOptions", + value: MethodOptions.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption() { + return { + name: [], + identifierValue: "", + positiveIntValue: BigInt(0), + negativeIntValue: BigInt(0), + doubleValue: 0, + stringValue: new Uint8Array(), + aggregateValue: "" + }; +} +export const UninterpretedOption = { + typeUrl: "/google.protobuf.UninterpretedOption", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.name) { + UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.identifierValue !== "") { + writer.uint32(26).string(message.identifierValue); + } + if (message.positiveIntValue !== BigInt(0)) { + writer.uint32(32).uint64(message.positiveIntValue); + } + if (message.negativeIntValue !== BigInt(0)) { + writer.uint32(40).int64(message.negativeIntValue); + } + if (message.doubleValue !== 0) { + writer.uint32(49).double(message.doubleValue); + } + if (message.stringValue.length !== 0) { + writer.uint32(58).bytes(message.stringValue); + } + if (message.aggregateValue !== "") { + writer.uint32(66).string(message.aggregateValue); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || []; + message.identifierValue = object.identifierValue ?? ""; + message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); + message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); + message.doubleValue = object.doubleValue ?? 0; + message.stringValue = object.stringValue ?? new Uint8Array(); + message.aggregateValue = object.aggregateValue ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => UninterpretedOption_NamePart.fromAmino(e)) || []; + if (object.identifier_value !== undefined && object.identifier_value !== null) { + message.identifierValue = object.identifier_value; + } + if (object.positive_int_value !== undefined && object.positive_int_value !== null) { + message.positiveIntValue = BigInt(object.positive_int_value); + } + if (object.negative_int_value !== undefined && object.negative_int_value !== null) { + message.negativeIntValue = BigInt(object.negative_int_value); + } + if (object.double_value !== undefined && object.double_value !== null) { + message.doubleValue = object.double_value; + } + if (object.string_value !== undefined && object.string_value !== null) { + message.stringValue = bytesFromBase64(object.string_value); + } + if (object.aggregate_value !== undefined && object.aggregate_value !== null) { + message.aggregateValue = object.aggregate_value; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.name) { + obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toAmino(e) : undefined); + } + else { + obj.name = message.name; + } + obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; + obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; + obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; + obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; + obj.string_value = message.stringValue ? base64FromBytes(message.stringValue) : undefined; + obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; + return obj; + }, + fromAminoMsg(object) { + return UninterpretedOption.fromAmino(object.value); + }, + fromProtoMsg(message) { + return UninterpretedOption.decode(message.value); + }, + toProto(message) { + return UninterpretedOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.UninterpretedOption", + value: UninterpretedOption.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption_NamePart() { + return { + namePart: "", + isExtension: false + }; +} +export const UninterpretedOption_NamePart = { + typeUrl: "/google.protobuf.NamePart", + encode(message, writer = BinaryWriter.create()) { + if (message.namePart !== "") { + writer.uint32(10).string(message.namePart); + } + if (message.isExtension === true) { + writer.uint32(16).bool(message.isExtension); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption_NamePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUninterpretedOption_NamePart(); + message.namePart = object.namePart ?? ""; + message.isExtension = object.isExtension ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseUninterpretedOption_NamePart(); + if (object.name_part !== undefined && object.name_part !== null) { + message.namePart = object.name_part; + } + if (object.is_extension !== undefined && object.is_extension !== null) { + message.isExtension = object.is_extension; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name_part = message.namePart === "" ? undefined : message.namePart; + obj.is_extension = message.isExtension === false ? undefined : message.isExtension; + return obj; + }, + fromAminoMsg(object) { + return UninterpretedOption_NamePart.fromAmino(object.value); + }, + fromProtoMsg(message) { + return UninterpretedOption_NamePart.decode(message.value); + }, + toProto(message) { + return UninterpretedOption_NamePart.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.NamePart", + value: UninterpretedOption_NamePart.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo() { + return { + location: [] + }; +} +export const SourceCodeInfo = { + typeUrl: "/google.protobuf.SourceCodeInfo", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.location) { + SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => SourceCodeInfo_Location.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.location) { + obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toAmino(e) : undefined); + } + else { + obj.location = message.location; + } + return obj; + }, + fromAminoMsg(object) { + return SourceCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SourceCodeInfo.decode(message.value); + }, + toProto(message) { + return SourceCodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.SourceCodeInfo", + value: SourceCodeInfo.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo_Location() { + return { + path: [], + span: [], + leadingComments: "", + trailingComments: "", + leadingDetachedComments: [] + }; +} +export const SourceCodeInfo_Location = { + typeUrl: "/google.protobuf.Location", + encode(message, writer = BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(18).fork(); + for (const v of message.span) { + writer.int32(v); + } + writer.ldelim(); + if (message.leadingComments !== "") { + writer.uint32(26).string(message.leadingComments); + } + if (message.trailingComments !== "") { + writer.uint32(34).string(message.trailingComments); + } + for (const v of message.leadingDetachedComments) { + writer.uint32(50).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo_Location(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } + else { + message.path.push(reader.int32()); + } + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.span.push(reader.int32()); + } + } + else { + message.span.push(reader.int32()); + } + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + message.leadingComments = object.leadingComments ?? ""; + message.trailingComments = object.trailingComments ?? ""; + message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + if (object.leading_comments !== undefined && object.leading_comments !== null) { + message.leadingComments = object.leading_comments; + } + if (object.trailing_comments !== undefined && object.trailing_comments !== null) { + message.trailingComments = object.trailing_comments; + } + message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } + else { + obj.path = message.path; + } + if (message.span) { + obj.span = message.span.map(e => e); + } + else { + obj.span = message.span; + } + obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; + obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; + if (message.leadingDetachedComments) { + obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); + } + else { + obj.leading_detached_comments = message.leadingDetachedComments; + } + return obj; + }, + fromAminoMsg(object) { + return SourceCodeInfo_Location.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SourceCodeInfo_Location.decode(message.value); + }, + toProto(message) { + return SourceCodeInfo_Location.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Location", + value: SourceCodeInfo_Location.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo() { + return { + annotation: [] + }; +} +export const GeneratedCodeInfo = { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.annotation) { + GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.annotation) { + obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toAmino(e) : undefined); + } + else { + obj.annotation = message.annotation; + } + return obj; + }, + fromAminoMsg(object) { + return GeneratedCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return GeneratedCodeInfo.decode(message.value); + }, + toProto(message) { + return GeneratedCodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + value: GeneratedCodeInfo.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo_Annotation() { + return { + path: [], + sourceFile: "", + begin: 0, + end: 0 + }; +} +export const GeneratedCodeInfo_Annotation = { + typeUrl: "/google.protobuf.Annotation", + encode(message, writer = BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + if (message.sourceFile !== "") { + writer.uint32(18).string(message.sourceFile); + } + if (message.begin !== 0) { + writer.uint32(24).int32(message.begin); + } + if (message.end !== 0) { + writer.uint32(32).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo_Annotation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } + else { + message.path.push(reader.int32()); + } + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + message.sourceFile = object.sourceFile ?? ""; + message.begin = object.begin ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + if (object.source_file !== undefined && object.source_file !== null) { + message.sourceFile = object.source_file; + } + if (object.begin !== undefined && object.begin !== null) { + message.begin = object.begin; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } + else { + obj.path = message.path; + } + obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; + obj.begin = message.begin === 0 ? undefined : message.begin; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return GeneratedCodeInfo_Annotation.fromAmino(object.value); + }, + fromProtoMsg(message) { + return GeneratedCodeInfo_Annotation.decode(message.value); + }, + toProto(message) { + return GeneratedCodeInfo_Annotation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Annotation", + value: GeneratedCodeInfo_Annotation.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/google/protobuf/duration.js b/packages/api/dist/esm/google/protobuf/duration.js new file mode 100644 index 00000000..0ed30a3d --- /dev/null +++ b/packages/api/dist/esm/google/protobuf/duration.js @@ -0,0 +1,71 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseDuration() { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +export const Duration = { + typeUrl: "/google.protobuf.Duration", + encode(message, writer = BinaryWriter.create()) { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuration(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDuration(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object) { + const value = BigInt(object); + return { + seconds: value / BigInt("1000000000"), + nanos: Number(value % BigInt("1000000000")) + }; + }, + toAmino(message) { + return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); + }, + fromAminoMsg(object) { + return Duration.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Duration.decode(message.value); + }, + toProto(message) { + return Duration.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Duration", + value: Duration.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/google/protobuf/timestamp.js b/packages/api/dist/esm/google/protobuf/timestamp.js new file mode 100644 index 00000000..373ac581 --- /dev/null +++ b/packages/api/dist/esm/google/protobuf/timestamp.js @@ -0,0 +1,68 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { fromJsonTimestamp, fromTimestamp } from "../../helpers"; +function createBaseTimestamp() { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +export const Timestamp = { + typeUrl: "/google.protobuf.Timestamp", + encode(message, writer = BinaryWriter.create()) { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTimestamp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTimestamp(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object) { + return fromJsonTimestamp(object); + }, + toAmino(message) { + return fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z"); + }, + fromAminoMsg(object) { + return Timestamp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Timestamp.decode(message.value); + }, + toProto(message) { + return Timestamp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Timestamp", + value: Timestamp.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/helpers.js b/packages/api/dist/esm/helpers.js new file mode 100644 index 00000000..d73c455a --- /dev/null +++ b/packages/api/dist/esm/helpers.js @@ -0,0 +1,126 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +var globalThis = (() => { + if (typeof globalThis !== 'undefined') + return globalThis; + if (typeof self !== 'undefined') + return self; + if (typeof window !== 'undefined') + return window; + if (typeof global !== 'undefined') + return global; + throw 'Unable to locate global object'; +})(); +const atob = globalThis.atob || + ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); +export function bytesFromBase64(b64) { + const bin = atob(b64); + const arr = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; ++i) { + arr[i] = bin.charCodeAt(i); + } + return arr; +} +const btoa = globalThis.btoa || + ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); +export function base64FromBytes(arr) { + const bin = []; + arr.forEach((byte) => { + bin.push(String.fromCharCode(byte)); + }); + return btoa(bin.join('')); +} +export function omitDefault(input) { + if (typeof input === 'string') { + return input === '' ? undefined : input; + } + if (typeof input === 'number') { + return input === 0 ? undefined : input; + } + if (typeof input === "boolean") { + return input === false ? undefined : input; + } + if (typeof input === 'bigint') { + return input === BigInt(0) ? undefined : input; + } + throw new Error(`Got unsupported type ${typeof input}`); +} +export function toDuration(duration) { + return { + seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), + nanos: parseInt(duration) % 1000000000 + }; +} +export function fromDuration(duration) { + return (parseInt(duration.seconds.toString()) * 1000000000 + + duration.nanos).toString(); +} +export function isSet(value) { + return value !== null && value !== undefined; +} +export function isObject(value) { + return typeof value === 'object' && value !== null; +} +export const setPaginationParams = (options, pagination) => { + if (!pagination) { + return options; + } + if (typeof pagination?.countTotal !== 'undefined') { + options.params['pagination.count_total'] = pagination.countTotal; + } + if (typeof pagination?.key !== 'undefined') { + // String to Uint8Array + // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); + // Uint8Array to String + options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64'); + } + if (typeof pagination?.limit !== 'undefined') { + options.params['pagination.limit'] = pagination.limit.toString(); + } + if (typeof pagination?.offset !== 'undefined') { + options.params['pagination.offset'] = pagination.offset.toString(); + } + if (typeof pagination?.reverse !== 'undefined') { + options.params['pagination.reverse'] = pagination.reverse; + } + return options; +}; +export function toTimestamp(date) { + const seconds = numberToLong(date.getTime() / 1000); + const nanos = (date.getTime() % 1000) * 1000000; + return { + seconds, + nanos + }; +} +export function fromTimestamp(t) { + let millis = Number(t.seconds) * 1000; + millis += t.nanos / 1000000; + return new Date(millis); +} +const timestampFromJSON = (object) => { + return { + seconds: isSet(object.seconds) + ? BigInt(object.seconds.toString()) + : BigInt(0), + nanos: isSet(object.nanos) ? Number(object.nanos) : 0 + }; +}; +export function fromJsonTimestamp(o) { + if (o instanceof Date) { + return toTimestamp(o); + } + else if (typeof o === 'string') { + return toTimestamp(new Date(o)); + } + else { + return timestampFromJSON(o); + } +} +function numberToLong(number) { + return BigInt(Math.trunc(number)); +} diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js b/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js new file mode 100644 index 00000000..9201a1b5 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js @@ -0,0 +1,99 @@ +//@ts-nocheck +import { DenomTrace, Params } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseGenesisState() { + return { + portId: "", + denomTraces: [], + params: Params.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + for (const v of message.denomTraces) { + DenomTrace.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); + break; + case 3: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.portId = object.portId ?? ""; + message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); + } + else { + obj.denom_traces = message.denomTraces; + } + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.js new file mode 100644 index 00000000..daf4f35c --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/query.js @@ -0,0 +1,708 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { DenomTrace, Params } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseQueryDenomTraceRequest() { + return { + hash: "" + }; +} +export const QueryDenomTraceRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTraceRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTraceRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomTraceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTraceRequest", + value: QueryDenomTraceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomTraceRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomTraceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + value: QueryDenomTraceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTraceResponse() { + return { + denomTrace: undefined + }; +} +export const QueryDenomTraceResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.denomTrace !== undefined) { + DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTrace = DenomTrace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTraceResponse(); + message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? DenomTrace.fromPartial(object.denomTrace) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTraceResponse(); + if (object.denom_trace !== undefined && object.denom_trace !== null) { + message.denomTrace = DenomTrace.fromAmino(object.denom_trace); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom_trace = message.denomTrace ? DenomTrace.toAmino(message.denomTrace) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomTraceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTraceResponse", + value: QueryDenomTraceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomTraceResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomTraceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + value: QueryDenomTraceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesRequest() { + return { + pagination: undefined + }; +} +export const QueryDenomTracesRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTracesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTracesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomTracesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTracesRequest", + value: QueryDenomTracesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomTracesRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomTracesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + value: QueryDenomTracesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesResponse() { + return { + denomTraces: [], + pagination: undefined + }; +} +export const QueryDenomTracesResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.denomTraces) { + DenomTrace.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); + } + else { + obj.denom_traces = message.denomTraces; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomTracesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTracesResponse", + value: QueryDenomTracesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomTracesResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomTracesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + value: QueryDenomTracesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashRequest() { + return { + trace: "" + }; +} +export const QueryDenomHashRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.trace !== "") { + writer.uint32(10).string(message.trace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomHashRequest(); + message.trace = object.trace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomHashRequest(); + if (object.trace !== undefined && object.trace !== null) { + message.trace = object.trace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.trace = message.trace === "" ? undefined : message.trace; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomHashRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomHashRequest", + value: QueryDenomHashRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomHashRequest.decode(message.value); + }, + toProto(message) { + return QueryDenomHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + value: QueryDenomHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashResponse() { + return { + hash: "" + }; +} +export const QueryDenomHashResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomHashResponse(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomHashResponse(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return QueryDenomHashResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomHashResponse", + value: QueryDenomHashResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryDenomHashResponse.decode(message.value); + }, + toProto(message) { + return QueryDenomHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + value: QueryDenomHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressRequest() { + return { + portId: "", + channelId: "" + }; +} +export const QueryEscrowAddressRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + if (message.channelId !== "") { + writer.uint32(18).string(message.channelId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.channelId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryEscrowAddressRequest(); + message.portId = object.portId ?? ""; + message.channelId = object.channelId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryEscrowAddressRequest(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + if (object.channel_id !== undefined && object.channel_id !== null) { + message.channelId = object.channel_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + return obj; + }, + fromAminoMsg(object) { + return QueryEscrowAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryEscrowAddressRequest", + value: QueryEscrowAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryEscrowAddressRequest.decode(message.value); + }, + toProto(message) { + return QueryEscrowAddressRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + value: QueryEscrowAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressResponse() { + return { + escrowAddress: "" + }; +} +export const QueryEscrowAddressResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.escrowAddress !== "") { + writer.uint32(10).string(message.escrowAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.escrowAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryEscrowAddressResponse(); + message.escrowAddress = object.escrowAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryEscrowAddressResponse(); + if (object.escrow_address !== undefined && object.escrow_address !== null) { + message.escrowAddress = object.escrow_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryEscrowAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryEscrowAddressResponse", + value: QueryEscrowAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryEscrowAddressResponse.decode(message.value); + }, + toProto(message) { + return QueryEscrowAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + value: QueryEscrowAddressResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js new file mode 100644 index 00000000..b83062e5 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js @@ -0,0 +1,46 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + /* DenomTrace queries a denomination trace information. */ + async denomTrace(params) { + const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; + return await this.req.get(endpoint); + } + /* DenomTraces queries all denomination traces. */ + async denomTraces(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/apps/transfer/v1/denom_traces`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the ibc-transfer module. */ + async params(_params = {}) { + const endpoint = `ibc/apps/transfer/v1/params`; + return await this.req.get(endpoint); + } + /* DenomHash queries a denomination hash information. */ + async denomHash(params) { + const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; + return await this.req.get(endpoint); + } + /* EscrowAddress returns the escrow address for a particular port and channel id. */ + async escrowAddress(params) { + const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js new file mode 100644 index 00000000..86f11c32 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js @@ -0,0 +1,62 @@ +import { BinaryReader } from "../../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + denomTrace(request) { + const data = QueryDenomTraceRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); + return promise.then(data => QueryDenomTraceResponse.decode(new BinaryReader(data))); + } + denomTraces(request = { + pagination: undefined + }) { + const data = QueryDenomTracesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); + return promise.then(data => QueryDenomTracesResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + denomHash(request) { + const data = QueryDenomHashRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); + return promise.then(data => QueryDenomHashResponse.decode(new BinaryReader(data))); + } + escrowAddress(request) { + const data = QueryEscrowAddressRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); + return promise.then(data => QueryEscrowAddressResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + denomTrace(request) { + return queryService.denomTrace(request); + }, + denomTraces(request) { + return queryService.denomTraces(request); + }, + params(request) { + return queryService.params(request); + }, + denomHash(request) { + return queryService.denomHash(request); + }, + escrowAddress(request) { + return queryService.escrowAddress(request); + } + }; +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js b/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js new file mode 100644 index 00000000..db7b8646 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js @@ -0,0 +1,164 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseDenomTrace() { + return { + path: "", + baseDenom: "" + }; +} +export const DenomTrace = { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + encode(message, writer = BinaryWriter.create()) { + if (message.path !== "") { + writer.uint32(10).string(message.path); + } + if (message.baseDenom !== "") { + writer.uint32(18).string(message.baseDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomTrace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = reader.string(); + break; + case 2: + message.baseDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomTrace(); + message.path = object.path ?? ""; + message.baseDenom = object.baseDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDenomTrace(); + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.base_denom !== undefined && object.base_denom !== null) { + message.baseDenom = object.base_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.path = message.path === "" ? undefined : message.path; + obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; + return obj; + }, + fromAminoMsg(object) { + return DenomTrace.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomTrace", + value: DenomTrace.toAmino(message) + }; + }, + fromProtoMsg(message) { + return DenomTrace.decode(message.value); + }, + toProto(message) { + return DenomTrace.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + value: DenomTrace.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + sendEnabled: false, + receiveEnabled: false + }; +} +export const Params = { + typeUrl: "/ibc.applications.transfer.v1.Params", + encode(message, writer = BinaryWriter.create()) { + if (message.sendEnabled === true) { + writer.uint32(8).bool(message.sendEnabled); + } + if (message.receiveEnabled === true) { + writer.uint32(16).bool(message.receiveEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled = reader.bool(); + break; + case 2: + message.receiveEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled ?? false; + message.receiveEnabled = object.receiveEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.send_enabled !== undefined && object.send_enabled !== null) { + message.sendEnabled = object.send_enabled; + } + if (object.receive_enabled !== undefined && object.receive_enabled !== null) { + message.receiveEnabled = object.receive_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; + obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.Params", + value: Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js new file mode 100644 index 00000000..cbdd6b53 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js @@ -0,0 +1,9 @@ +//@ts-nocheck +import { MsgTransfer } from "./tx"; +export const AminoConverter = { + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: "cosmos-sdk/MsgTransfer", + toAmino: MsgTransfer.toAmino, + fromAmino: MsgTransfer.fromAmino + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js new file mode 100644 index 00000000..e34b38a0 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js @@ -0,0 +1,201 @@ +//@ts-nocheck +import { Coin } from "../../../../cosmos/base/v1beta1/coin"; +import { Height } from "../../../core/client/v1/client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseMsgTransfer() { + return { + sourcePort: "", + sourceChannel: "", + token: Coin.fromPartial({}), + sender: "", + receiver: "", + timeoutHeight: Height.fromPartial({}), + timeoutTimestamp: BigInt(0) + }; +} +export const MsgTransfer = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + encode(message, writer = BinaryWriter.create()) { + if (message.sourcePort !== "") { + writer.uint32(10).string(message.sourcePort); + } + if (message.sourceChannel !== "") { + writer.uint32(18).string(message.sourceChannel); + } + if (message.token !== undefined) { + Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); + } + if (message.sender !== "") { + writer.uint32(34).string(message.sender); + } + if (message.receiver !== "") { + writer.uint32(42).string(message.receiver); + } + if (message.timeoutHeight !== undefined) { + Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); + } + if (message.timeoutTimestamp !== BigInt(0)) { + writer.uint32(56).uint64(message.timeoutTimestamp); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sourcePort = reader.string(); + break; + case 2: + message.sourceChannel = reader.string(); + break; + case 3: + message.token = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.sender = reader.string(); + break; + case 5: + message.receiver = reader.string(); + break; + case 6: + message.timeoutHeight = Height.decode(reader, reader.uint32()); + break; + case 7: + message.timeoutTimestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTransfer(); + message.sourcePort = object.sourcePort ?? ""; + message.sourceChannel = object.sourceChannel ?? ""; + message.token = object.token !== undefined && object.token !== null ? Coin.fromPartial(object.token) : undefined; + message.sender = object.sender ?? ""; + message.receiver = object.receiver ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Height.fromPartial(object.timeoutHeight) : undefined; + message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgTransfer(); + if (object.source_port !== undefined && object.source_port !== null) { + message.sourcePort = object.source_port; + } + if (object.source_channel !== undefined && object.source_channel !== null) { + message.sourceChannel = object.source_channel; + } + if (object.token !== undefined && object.token !== null) { + message.token = Coin.fromAmino(object.token); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.receiver !== undefined && object.receiver !== null) { + message.receiver = object.receiver; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = Height.fromAmino(object.timeout_height); + } + if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { + message.timeoutTimestamp = BigInt(object.timeout_timestamp); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; + obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; + obj.token = message.token ? Coin.toAmino(message.token) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.receiver = message.receiver === "" ? undefined : message.receiver; + obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgTransfer.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgTransfer", + value: MsgTransfer.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgTransfer.decode(message.value); + }, + toProto(message) { + return MsgTransfer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.encode(message).finish() + }; + } +}; +function createBaseMsgTransferResponse() { + return {}; +} +export const MsgTransferResponse = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransferResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgTransferResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgTransferResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgTransferResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgTransferResponse", + value: MsgTransferResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgTransferResponse.decode(message.value); + }, + toProto(message) { + return MsgTransferResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + value: MsgTransferResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js new file mode 100644 index 00000000..2e4ed8fa --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js @@ -0,0 +1,33 @@ +import { MsgTransfer } from "./tx"; +export const registry = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.encode(value).finish() + }; + } + }, + withTypeUrl: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value + }; + } + }, + fromPartial: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js new file mode 100644 index 00000000..6b260e53 --- /dev/null +++ b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js @@ -0,0 +1,14 @@ +import { BinaryReader } from "../../../../binary"; +import { MsgTransfer, MsgTransferResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.transfer = this.transfer.bind(this); + } + transfer(request) { + const data = MsgTransfer.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); + return promise.then(data => MsgTransferResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/ibc/bundle.js b/packages/api/dist/esm/ibc/bundle.js new file mode 100644 index 00000000..e3127c8a --- /dev/null +++ b/packages/api/dist/esm/ibc/bundle.js @@ -0,0 +1,64 @@ +//@ts-nocheck +import * as _68 from "./applications/transfer/v1/genesis"; +import * as _69 from "./applications/transfer/v1/query"; +import * as _70 from "./applications/transfer/v1/transfer"; +import * as _71 from "./applications/transfer/v1/tx"; +import * as _72 from "./core/client/v1/client"; +import * as _73 from "./core/client/v1/genesis"; +import * as _74 from "./core/client/v1/query"; +import * as _75 from "./core/client/v1/tx"; +import * as _177 from "./applications/transfer/v1/tx.amino"; +import * as _178 from "./core/client/v1/tx.amino"; +import * as _179 from "./applications/transfer/v1/tx.registry"; +import * as _180 from "./core/client/v1/tx.registry"; +import * as _181 from "./applications/transfer/v1/query.lcd"; +import * as _182 from "./core/client/v1/query.lcd"; +import * as _183 from "./applications/transfer/v1/query.rpc.Query"; +import * as _184 from "./core/client/v1/query.rpc.Query"; +import * as _185 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _186 from "./core/client/v1/tx.rpc.msg"; +import * as _220 from "./lcd"; +import * as _221 from "./rpc.query"; +import * as _222 from "./rpc.tx"; +export var ibc; +(function (ibc) { + let applications; + (function (applications) { + let transfer; + (function (transfer) { + transfer.v1 = { + ..._68, + ..._69, + ..._70, + ..._71, + ..._177, + ..._179, + ..._181, + ..._183, + ..._185 + }; + })(transfer = applications.transfer || (applications.transfer = {})); + })(applications = ibc.applications || (ibc.applications = {})); + let core; + (function (core) { + let client; + (function (client) { + client.v1 = { + ..._72, + ..._73, + ..._74, + ..._75, + ..._178, + ..._180, + ..._182, + ..._184, + ..._186 + }; + })(client = core.client || (core.client = {})); + })(core = ibc.core || (ibc.core = {})); + ibc.ClientFactory = { + ..._220, + ..._221, + ..._222 + }; +})(ibc || (ibc = {})); diff --git a/packages/api/dist/esm/ibc/client.js b/packages/api/dist/esm/ibc/client.js new file mode 100644 index 00000000..fd3d6d47 --- /dev/null +++ b/packages/api/dist/esm/ibc/client.js @@ -0,0 +1,32 @@ +//@ts-nocheck +import { Registry } from "@cosmjs/proto-signing"; +import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry"; +import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry"; +import * as ibcApplicationsTransferV1TxAmino from "./applications/transfer/v1/tx.amino"; +import * as ibcCoreClientV1TxAmino from "./core/client/v1/tx.amino"; +export const ibcAminoConverters = { + ...ibcApplicationsTransferV1TxAmino.AminoConverter, + ...ibcCoreClientV1TxAmino.AminoConverter +}; +export const ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; +export const getSigningIbcClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => { + const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...ibcAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => { + const { registry, aminoTypes } = getSigningIbcClientOptions({ + defaultTypes + }); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/client.js b/packages/api/dist/esm/ibc/core/client/v1/client.js new file mode 100644 index 00000000..ab0f15c7 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/client.js @@ -0,0 +1,611 @@ +//@ts-nocheck +import { Any } from "../../../../google/protobuf/any"; +import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseIdentifiedClientState() { + return { + clientId: "", + clientState: undefined + }; +} +export const IdentifiedClientState = { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedClientState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIdentifiedClientState(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseIdentifiedClientState(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return IdentifiedClientState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IdentifiedClientState", + value: IdentifiedClientState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return IdentifiedClientState.decode(message.value); + }, + toProto(message) { + return IdentifiedClientState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + value: IdentifiedClientState.encode(message).finish() + }; + } +}; +function createBaseConsensusStateWithHeight() { + return { + height: Height.fromPartial({}), + consensusState: undefined + }; +} +export const ConsensusStateWithHeight = { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== undefined) { + Height.encode(message.height, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusStateWithHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = Height.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensusStateWithHeight(); + message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConsensusStateWithHeight(); + if (object.height !== undefined && object.height !== null) { + message.height = Height.fromAmino(object.height); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height ? Height.toAmino(message.height) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ConsensusStateWithHeight.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConsensusStateWithHeight", + value: ConsensusStateWithHeight.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ConsensusStateWithHeight.decode(message.value); + }, + toProto(message) { + return ConsensusStateWithHeight.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + value: ConsensusStateWithHeight.encode(message).finish() + }; + } +}; +function createBaseClientConsensusStates() { + return { + clientId: "", + consensusStates: [] + }; +} +export const ClientConsensusStates = { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.consensusStates) { + ConsensusStateWithHeight.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientConsensusStates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClientConsensusStates(); + message.clientId = object.clientId ?? ""; + message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseClientConsensusStates(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); + } + else { + obj.consensus_states = message.consensusStates; + } + return obj; + }, + fromAminoMsg(object) { + return ClientConsensusStates.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ClientConsensusStates", + value: ClientConsensusStates.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ClientConsensusStates.decode(message.value); + }, + toProto(message) { + return ClientConsensusStates.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + value: ClientConsensusStates.encode(message).finish() + }; + } +}; +function createBaseClientUpdateProposal() { + return { + $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + title: "", + description: "", + subjectClientId: "", + substituteClientId: "" + }; +} +export const ClientUpdateProposal = { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.subjectClientId !== "") { + writer.uint32(26).string(message.subjectClientId); + } + if (message.substituteClientId !== "") { + writer.uint32(34).string(message.substituteClientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientUpdateProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.subjectClientId = reader.string(); + break; + case 4: + message.substituteClientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClientUpdateProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.subjectClientId = object.subjectClientId ?? ""; + message.substituteClientId = object.substituteClientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClientUpdateProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.subject_client_id !== undefined && object.subject_client_id !== null) { + message.subjectClientId = object.subject_client_id; + } + if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { + message.substituteClientId = object.substitute_client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; + obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; + return obj; + }, + fromAminoMsg(object) { + return ClientUpdateProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ClientUpdateProposal", + value: ClientUpdateProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return ClientUpdateProposal.decode(message.value); + }, + toProto(message) { + return ClientUpdateProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + value: ClientUpdateProposal.encode(message).finish() + }; + } +}; +function createBaseUpgradeProposal() { + return { + $typeUrl: "/ibc.core.client.v1.UpgradeProposal", + title: "", + description: "", + plan: Plan.fromPartial({}), + upgradedClientState: undefined + }; +} +export const UpgradeProposal = { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = Plan.decode(reader, reader.uint32()); + break; + case 4: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return UpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UpgradeProposal", + value: UpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return UpgradeProposal.decode(message.value); + }, + toProto(message) { + return UpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + value: UpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseHeight() { + return { + revisionNumber: BigInt(0), + revisionHeight: BigInt(0) + }; +} +export const Height = { + typeUrl: "/ibc.core.client.v1.Height", + encode(message, writer = BinaryWriter.create()) { + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(8).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.revisionNumber = reader.uint64(); + break; + case 2: + message.revisionHeight = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHeight(); + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + return { + revisionNumber: BigInt(object.revision_number || "0"), + revisionHeight: BigInt(object.revision_height || "0") + }; + }, + toAmino(message) { + const obj = {}; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Height.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Height", + value: Height.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Height.decode(message.value); + }, + toProto(message) { + return Height.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.Height", + value: Height.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + allowedClients: [] + }; +} +export const Params = { + typeUrl: "/ibc.core.client.v1.Params", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowedClients) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedClients.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.allowedClients = object.allowedClients?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.allowedClients = object.allowed_clients?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedClients) { + obj.allowed_clients = message.allowedClients.map(e => e); + } + else { + obj.allowed_clients = message.allowedClients; + } + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.Params", + value: Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/genesis.js b/packages/api/dist/esm/ibc/core/client/v1/genesis.js new file mode 100644 index 00000000..975c8090 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/genesis.js @@ -0,0 +1,307 @@ +//@ts-nocheck +import { IdentifiedClientState, ClientConsensusStates, Params } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseGenesisState() { + return { + clients: [], + clientsConsensus: [], + clientsMetadata: [], + params: Params.fromPartial({}), + createLocalhost: false, + nextClientSequence: BigInt(0) + }; +} +export const GenesisState = { + typeUrl: "/ibc.core.client.v1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.clients) { + IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.clientsConsensus) { + ClientConsensusStates.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.clientsMetadata) { + IdentifiedGenesisMetadata.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(34).fork()).ldelim(); + } + if (message.createLocalhost === true) { + writer.uint32(40).bool(message.createLocalhost); + } + if (message.nextClientSequence !== BigInt(0)) { + writer.uint32(48).uint64(message.nextClientSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clients.push(IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.clientsConsensus.push(ClientConsensusStates.decode(reader, reader.uint32())); + break; + case 3: + message.clientsMetadata.push(IdentifiedGenesisMetadata.decode(reader, reader.uint32())); + break; + case 4: + message.params = Params.decode(reader, reader.uint32()); + break; + case 5: + message.createLocalhost = reader.bool(); + break; + case 6: + message.nextClientSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => IdentifiedClientState.fromPartial(e)) || []; + message.clientsConsensus = object.clientsConsensus?.map(e => ClientConsensusStates.fromPartial(e)) || []; + message.clientsMetadata = object.clientsMetadata?.map(e => IdentifiedGenesisMetadata.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.createLocalhost = object.createLocalhost ?? false; + message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => IdentifiedClientState.fromAmino(e)) || []; + message.clientsConsensus = object.clients_consensus?.map(e => ClientConsensusStates.fromAmino(e)) || []; + message.clientsMetadata = object.clients_metadata?.map(e => IdentifiedGenesisMetadata.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.create_localhost !== undefined && object.create_localhost !== null) { + message.createLocalhost = object.create_localhost; + } + if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { + message.nextClientSequence = BigInt(object.next_client_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.clients) { + obj.clients = message.clients.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); + } + else { + obj.clients = message.clients; + } + if (message.clientsConsensus) { + obj.clients_consensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toAmino(e) : undefined); + } + else { + obj.clients_consensus = message.clientsConsensus; + } + if (message.clientsMetadata) { + obj.clients_metadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toAmino(e) : undefined); + } + else { + obj.clients_metadata = message.clientsMetadata; + } + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; + obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseGenesisMetadata() { + return { + key: new Uint8Array(), + value: new Uint8Array() + }; +} +export const GenesisMetadata = { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisMetadata(); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseGenesisMetadata(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = bytesFromBase64(object.value); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.value = message.value ? base64FromBytes(message.value) : undefined; + return obj; + }, + fromAminoMsg(object) { + return GenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisMetadata", + value: GenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return GenesisMetadata.decode(message.value); + }, + toProto(message) { + return GenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + value: GenesisMetadata.encode(message).finish() + }; + } +}; +function createBaseIdentifiedGenesisMetadata() { + return { + clientId: "", + clientMetadata: [] + }; +} +export const IdentifiedGenesisMetadata = { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.clientMetadata) { + GenesisMetadata.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMetadata.push(GenesisMetadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIdentifiedGenesisMetadata(); + message.clientId = object.clientId ?? ""; + message.clientMetadata = object.clientMetadata?.map(e => GenesisMetadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseIdentifiedGenesisMetadata(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.clientMetadata = object.client_metadata?.map(e => GenesisMetadata.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.clientMetadata) { + obj.client_metadata = message.clientMetadata.map(e => e ? GenesisMetadata.toAmino(e) : undefined); + } + else { + obj.client_metadata = message.clientMetadata; + } + return obj; + }, + fromAminoMsg(object) { + return IdentifiedGenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IdentifiedGenesisMetadata", + value: IdentifiedGenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return IdentifiedGenesisMetadata.decode(message.value); + }, + toProto(message) { + return IdentifiedGenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + value: IdentifiedGenesisMetadata.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.js b/packages/api/dist/esm/ibc/core/client/v1/query.js new file mode 100644 index 00000000..33faa10c --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/query.js @@ -0,0 +1,1362 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Any } from "../../../../google/protobuf/any"; +import { Height, IdentifiedClientState, ConsensusStateWithHeight, Params } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseQueryClientStateRequest() { + return { + clientId: "" + }; +} +export const QueryClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStateRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStateRequest", + value: QueryClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStateRequest.decode(message.value); + }, + toProto(message) { + return QueryClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + value: QueryClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStateResponse() { + return { + clientState: undefined, + proof: new Uint8Array(), + proofHeight: Height.fromPartial({}) + }; +} +export const QueryClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStateResponse(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStateResponse(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = bytesFromBase64(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; + obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStateResponse", + value: QueryClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStateResponse.decode(message.value); + }, + toProto(message) { + return QueryClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + value: QueryClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesRequest() { + return { + pagination: undefined + }; +} +export const QueryClientStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatesRequest", + value: QueryClientStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStatesRequest.decode(message.value); + }, + toProto(message) { + return QueryClientStatesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + value: QueryClientStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesResponse() { + return { + clientStates: [], + pagination: undefined + }; +} +export const QueryClientStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.clientStates) { + IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.clientStates?.map(e => IdentifiedClientState.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.client_states?.map(e => IdentifiedClientState.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.clientStates) { + obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); + } + else { + obj.client_states = message.clientStates; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatesResponse", + value: QueryClientStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStatesResponse.decode(message.value); + }, + toProto(message) { + return QueryClientStatesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + value: QueryClientStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateRequest() { + return { + clientId: "", + revisionNumber: BigInt(0), + revisionHeight: BigInt(0), + latestHeight: false + }; +} +export const QueryConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.revisionHeight); + } + if (message.latestHeight === true) { + writer.uint32(32).bool(message.latestHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.revisionNumber = reader.uint64(); + break; + case 3: + message.revisionHeight = reader.uint64(); + break; + case 4: + message.latestHeight = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateRequest(); + message.clientId = object.clientId ?? ""; + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + message.latestHeight = object.latestHeight ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.revision_number !== undefined && object.revision_number !== null) { + message.revisionNumber = BigInt(object.revision_number); + } + if (object.revision_height !== undefined && object.revision_height !== null) { + message.revisionHeight = BigInt(object.revision_height); + } + if (object.latest_height !== undefined && object.latest_height !== null) { + message.latestHeight = object.latest_height; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateRequest", + value: QueryConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return QueryConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + value: QueryConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateResponse() { + return { + consensusState: undefined, + proof: new Uint8Array(), + proofHeight: Height.fromPartial({}) + }; +} +export const QueryConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateResponse(); + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateResponse(); + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = bytesFromBase64(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; + obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateResponse", + value: QueryConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return QueryConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + value: QueryConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesRequest() { + return { + clientId: "", + pagination: undefined + }; +} +export const QueryConsensusStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStatesRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStatesRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStatesRequest", + value: QueryConsensusStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStatesRequest.decode(message.value); + }, + toProto(message) { + return QueryConsensusStatesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + value: QueryConsensusStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesResponse() { + return { + consensusStates: [], + pagination: undefined + }; +} +export const QueryConsensusStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.consensusStates) { + ConsensusStateWithHeight.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); + } + else { + obj.consensus_states = message.consensusStates; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStatesResponse", + value: QueryConsensusStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStatesResponse.decode(message.value); + }, + toProto(message) { + return QueryConsensusStatesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + value: QueryConsensusStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsRequest() { + return { + clientId: "", + pagination: undefined + }; +} +export const QueryConsensusStateHeightsRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateHeightsRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateHeightsRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStateHeightsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsRequest", + value: QueryConsensusStateHeightsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStateHeightsRequest.decode(message.value); + }, + toProto(message) { + return QueryConsensusStateHeightsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + value: QueryConsensusStateHeightsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsResponse() { + return { + consensusStateHeights: [], + pagination: undefined + }; +} +export const QueryConsensusStateHeightsResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.consensusStateHeights) { + Height.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStateHeights.push(Height.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensusStateHeights?.map(e => Height.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensus_state_heights?.map(e => Height.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.consensusStateHeights) { + obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? Height.toAmino(e) : undefined); + } + else { + obj.consensus_state_heights = message.consensusStateHeights; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryConsensusStateHeightsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsResponse", + value: QueryConsensusStateHeightsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryConsensusStateHeightsResponse.decode(message.value); + }, + toProto(message) { + return QueryConsensusStateHeightsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + value: QueryConsensusStateHeightsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusRequest() { + return { + clientId: "" + }; +} +export const QueryClientStatusRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatusRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatusRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStatusRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatusRequest", + value: QueryClientStatusRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStatusRequest.decode(message.value); + }, + toProto(message) { + return QueryClientStatusRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + value: QueryClientStatusRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusResponse() { + return { + status: "" + }; +} +export const QueryClientStatusResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatusResponse(); + message.status = object.status ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatusResponse(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === "" ? undefined : message.status; + return obj; + }, + fromAminoMsg(object) { + return QueryClientStatusResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatusResponse", + value: QueryClientStatusResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientStatusResponse.decode(message.value); + }, + toProto(message) { + return QueryClientStatusResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + value: QueryClientStatusResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsRequest() { + return {}; +} +export const QueryClientParamsRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryClientParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientParamsRequest", + value: QueryClientParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryClientParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + value: QueryClientParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsResponse() { + return { + params: undefined + }; +} +export const QueryClientParamsResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClientParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientParamsResponse", + value: QueryClientParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryClientParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryClientParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + value: QueryClientParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateRequest() { + return {}; +} +export const QueryUpgradedClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedClientStateRequest", + value: QueryUpgradedClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedClientStateRequest.decode(message.value); + }, + toProto(message) { + return QueryUpgradedClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + value: QueryUpgradedClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateResponse() { + return { + upgradedClientState: undefined + }; +} +export const QueryUpgradedClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedClientStateResponse(); + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedClientStateResponse(); + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedClientStateResponse", + value: QueryUpgradedClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedClientStateResponse.decode(message.value); + }, + toProto(message) { + return QueryUpgradedClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + value: QueryUpgradedClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest() { + return {}; +} +export const QueryUpgradedConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse() { + return { + upgradedConsensusState: undefined + }; +} +export const QueryUpgradedConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.upgradedConsensusState !== undefined) { + Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedConsensusState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? Any.fromPartial(object.upgradedConsensusState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = Any.fromAmino(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? Any.toAmino(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js b/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js new file mode 100644 index 00000000..7ec97b85 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js @@ -0,0 +1,90 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + /* ClientState queries an IBC light client. */ + async clientState(params) { + const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientStates queries all the IBC light clients of a chain. */ + async clientStates(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/client_states`; + return await this.req.get(endpoint, options); + } + /* ConsensusState queries a consensus state associated with a client state at + a given height. */ + async consensusState(params) { + const options = { + params: {} + }; + if (typeof params?.latestHeight !== "undefined") { + options.params.latest_height = params.latestHeight; + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStates queries all the consensus state associated with a given + client. */ + async consensusStates(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ + async consensusStateHeights(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; + return await this.req.get(endpoint, options); + } + /* Status queries the status of an IBC client. */ + async clientStatus(params) { + const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientParams queries all parameters of the ibc client. */ + async clientParams(_params = {}) { + const endpoint = `ibc/client/v1/params`; + return await this.req.get(endpoint); + } + /* UpgradedClientState queries an Upgraded IBC light client. */ + async upgradedClientState(_params = {}) { + const endpoint = `ibc/core/client/v1/upgraded_client_states`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ + async upgradedConsensusState(_params = {}) { + const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js b/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js new file mode 100644 index 00000000..21e8a8ef --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js @@ -0,0 +1,98 @@ +import { BinaryReader } from "../../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + clientState(request) { + const data = QueryClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); + return promise.then(data => QueryClientStateResponse.decode(new BinaryReader(data))); + } + clientStates(request = { + pagination: undefined + }) { + const data = QueryClientStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); + return promise.then(data => QueryClientStatesResponse.decode(new BinaryReader(data))); + } + consensusState(request) { + const data = QueryConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); + return promise.then(data => QueryConsensusStateResponse.decode(new BinaryReader(data))); + } + consensusStates(request) { + const data = QueryConsensusStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); + return promise.then(data => QueryConsensusStatesResponse.decode(new BinaryReader(data))); + } + consensusStateHeights(request) { + const data = QueryConsensusStateHeightsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); + return promise.then(data => QueryConsensusStateHeightsResponse.decode(new BinaryReader(data))); + } + clientStatus(request) { + const data = QueryClientStatusRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); + return promise.then(data => QueryClientStatusResponse.decode(new BinaryReader(data))); + } + clientParams(request = {}) { + const data = QueryClientParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); + return promise.then(data => QueryClientParamsResponse.decode(new BinaryReader(data))); + } + upgradedClientState(request = {}) { + const data = QueryUpgradedClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); + return promise.then(data => QueryUpgradedClientStateResponse.decode(new BinaryReader(data))); + } + upgradedConsensusState(request = {}) { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + clientState(request) { + return queryService.clientState(request); + }, + clientStates(request) { + return queryService.clientStates(request); + }, + consensusState(request) { + return queryService.consensusState(request); + }, + consensusStates(request) { + return queryService.consensusStates(request); + }, + consensusStateHeights(request) { + return queryService.consensusStateHeights(request); + }, + clientStatus(request) { + return queryService.clientStatus(request); + }, + clientParams(request) { + return queryService.clientParams(request); + }, + upgradedClientState(request) { + return queryService.upgradedClientState(request); + }, + upgradedConsensusState(request) { + return queryService.upgradedConsensusState(request); + } + }; +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js b/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js new file mode 100644 index 00000000..41c2fe96 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export const AminoConverter = { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: "cosmos-sdk/MsgCreateClient", + toAmino: MsgCreateClient.toAmino, + fromAmino: MsgCreateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: "cosmos-sdk/MsgUpdateClient", + toAmino: MsgUpdateClient.toAmino, + fromAmino: MsgUpdateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: "cosmos-sdk/MsgUpgradeClient", + toAmino: MsgUpgradeClient.toAmino, + fromAmino: MsgUpgradeClient.fromAmino + }, + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", + toAmino: MsgSubmitMisbehaviour.toAmino, + fromAmino: MsgSubmitMisbehaviour.fromAmino + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.js b/packages/api/dist/esm/ibc/core/client/v1/tx.js new file mode 100644 index 00000000..dbfc0f92 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/tx.js @@ -0,0 +1,636 @@ +//@ts-nocheck +import { Any } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseMsgCreateClient() { + return { + clientState: undefined, + consensusState: undefined, + signer: "" + }; +} +export const MsgCreateClient = { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + encode(message, writer = BinaryWriter.create()) { + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClient(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClient(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateClient", + value: MsgCreateClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateClient.decode(message.value); + }, + toProto(message) { + return MsgCreateClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClientResponse() { + return {}; +} +export const MsgCreateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateClientResponse", + value: MsgCreateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateClientResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + value: MsgCreateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClient() { + return { + clientId: "", + clientMessage: undefined, + signer: "" + }; +} +export const MsgUpdateClient = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientMessage !== undefined) { + Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMessage = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClient(); + message.clientId = object.clientId ?? ""; + message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? Any.fromPartial(object.clientMessage) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_message !== undefined && object.client_message !== null) { + message.clientMessage = Any.fromAmino(object.client_message); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_message = message.clientMessage ? Any.toAmino(message.clientMessage) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateClient", + value: MsgUpdateClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClient.decode(message.value); + }, + toProto(message) { + return MsgUpdateClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClientResponse() { + return {}; +} +export const MsgUpdateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateClientResponse", + value: MsgUpdateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClientResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + value: MsgUpdateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClient() { + return { + clientId: "", + clientState: undefined, + consensusState: undefined, + proofUpgradeClient: new Uint8Array(), + proofUpgradeConsensusState: new Uint8Array(), + signer: "" + }; +} +export const MsgUpgradeClient = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); + } + if (message.proofUpgradeClient.length !== 0) { + writer.uint32(34).bytes(message.proofUpgradeClient); + } + if (message.proofUpgradeConsensusState.length !== 0) { + writer.uint32(42).bytes(message.proofUpgradeConsensusState); + } + if (message.signer !== "") { + writer.uint32(50).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 3: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 4: + message.proofUpgradeClient = reader.bytes(); + break; + case 5: + message.proofUpgradeConsensusState = reader.bytes(); + break; + case 6: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpgradeClient(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); + message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpgradeClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { + message.proofUpgradeClient = bytesFromBase64(object.proof_upgrade_client); + } + if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { + message.proofUpgradeConsensusState = bytesFromBase64(object.proof_upgrade_consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.proof_upgrade_client = message.proofUpgradeClient ? base64FromBytes(message.proofUpgradeClient) : undefined; + obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? base64FromBytes(message.proofUpgradeConsensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return MsgUpgradeClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpgradeClient", + value: MsgUpgradeClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpgradeClient.decode(message.value); + }, + toProto(message) { + return MsgUpgradeClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClientResponse() { + return {}; +} +export const MsgUpgradeClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpgradeClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpgradeClientResponse", + value: MsgUpgradeClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpgradeClientResponse.decode(message.value); + }, + toProto(message) { + return MsgUpgradeClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + value: MsgUpgradeClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviour() { + return { + clientId: "", + misbehaviour: undefined, + signer: "" + }; +} +export const MsgSubmitMisbehaviour = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + encode(message, writer = BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.misbehaviour !== undefined) { + Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviour(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.misbehaviour = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitMisbehaviour(); + message.clientId = object.clientId ?? ""; + message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? Any.fromPartial(object.misbehaviour) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitMisbehaviour(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.misbehaviour !== undefined && object.misbehaviour !== null) { + message.misbehaviour = Any.fromAmino(object.misbehaviour); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.misbehaviour = message.misbehaviour ? Any.toAmino(message.misbehaviour) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitMisbehaviour.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitMisbehaviour.decode(message.value); + }, + toProto(message) { + return MsgSubmitMisbehaviour.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviourResponse() { + return {}; +} +export const MsgSubmitMisbehaviourResponse = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviourResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitMisbehaviourResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", + value: MsgSubmitMisbehaviourResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSubmitMisbehaviourResponse.decode(message.value); + }, + toProto(message) { + return MsgSubmitMisbehaviourResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + value: MsgSubmitMisbehaviourResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js b/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js new file mode 100644 index 00000000..7afcf0be --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js @@ -0,0 +1,87 @@ +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export const registry = [["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.encode(value).finish() + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.encode(value).finish() + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.encode(value).finish() + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value + }; + } + }, + fromPartial: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.fromPartial(value) + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.fromPartial(value) + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.fromPartial(value) + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js b/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js new file mode 100644 index 00000000..a01e2ae4 --- /dev/null +++ b/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js @@ -0,0 +1,32 @@ +import { BinaryReader } from "../../../../binary"; +import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClient = this.createClient.bind(this); + this.updateClient = this.updateClient.bind(this); + this.upgradeClient = this.upgradeClient.bind(this); + this.submitMisbehaviour = this.submitMisbehaviour.bind(this); + } + createClient(request) { + const data = MsgCreateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); + return promise.then(data => MsgCreateClientResponse.decode(new BinaryReader(data))); + } + updateClient(request) { + const data = MsgUpdateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); + return promise.then(data => MsgUpdateClientResponse.decode(new BinaryReader(data))); + } + upgradeClient(request) { + const data = MsgUpgradeClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); + return promise.then(data => MsgUpgradeClientResponse.decode(new BinaryReader(data))); + } + submitMisbehaviour(request) { + const data = MsgSubmitMisbehaviour.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); + return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/ibc/lcd.js b/packages/api/dist/esm/ibc/lcd.js new file mode 100644 index 00000000..879621d6 --- /dev/null +++ b/packages/api/dist/esm/ibc/lcd.js @@ -0,0 +1,97 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await import("./applications/transfer/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + core: { + client: { + v1: new (await import("./core/client/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + } + }; +}; diff --git a/packages/api/dist/esm/ibc/rpc.query.js b/packages/api/dist/esm/ibc/rpc.query.js new file mode 100644 index 00000000..eef6bb0c --- /dev/null +++ b/packages/api/dist/esm/ibc/rpc.query.js @@ -0,0 +1,65 @@ +//@ts-nocheck +import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + ibc: { + applications: { + transfer: { + v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + core: { + client: { + v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + } + }; +}; diff --git a/packages/api/dist/esm/ibc/rpc.tx.js b/packages/api/dist/esm/ibc/rpc.tx.js new file mode 100644 index 00000000..bc826323 --- /dev/null +++ b/packages/api/dist/esm/ibc/rpc.tx.js @@ -0,0 +1,44 @@ +export const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + core: { + client: { + v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } + } +}); diff --git a/packages/api/dist/esm/index.js b/packages/api/dist/esm/index.js new file mode 100644 index 00000000..88b8236c --- /dev/null +++ b/packages/api/dist/esm/index.js @@ -0,0 +1,20 @@ +//@ts-nocheck +/** + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 + * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain + * and run the transpile command or yarn proto command to regenerate this bundle. + */ +export * from "./amino/bundle"; +export * from "./cosmos_proto/bundle"; +export * from "./cosmos/bundle"; +export * from "./cosmos/client"; +export * from "./gogoproto/bundle"; +export * from "./ibc/bundle"; +export * from "./ibc/client"; +export * from "./regen/bundle"; +export * from "./regen/client"; +export * from "./tendermint/bundle"; +export * from "./google/bundle"; +export * from "./varint"; +export * from "./utf8"; +export * from "./binary"; diff --git a/packages/api/dist/esm/regen/bundle.js b/packages/api/dist/esm/regen/bundle.js new file mode 100644 index 00000000..ce470ec7 --- /dev/null +++ b/packages/api/dist/esm/regen/bundle.js @@ -0,0 +1,160 @@ +//@ts-nocheck +import * as _76 from "./data/v1/events"; +import * as _77 from "./data/v1/query"; +import * as _78 from "./data/v1/state"; +import * as _79 from "./data/v1/tx"; +import * as _80 from "./data/v1/types"; +import * as _81 from "./ecocredit/basket/v1/events"; +import * as _82 from "./ecocredit/basket/v1/query"; +import * as _83 from "./ecocredit/basket/v1/state"; +import * as _84 from "./ecocredit/basket/v1/tx"; +import * as _85 from "./ecocredit/basket/v1/types"; +import * as _86 from "./ecocredit/marketplace/v1/events"; +import * as _87 from "./ecocredit/marketplace/v1/query"; +import * as _88 from "./ecocredit/marketplace/v1/state"; +import * as _89 from "./ecocredit/marketplace/v1/tx"; +import * as _90 from "./ecocredit/marketplace/v1/types"; +import * as _91 from "./ecocredit/orderbook/v1alpha1/memory"; +import * as _92 from "./ecocredit/v1/events"; +import * as _93 from "./ecocredit/v1/query"; +import * as _94 from "./ecocredit/v1/state"; +import * as _95 from "./ecocredit/v1/tx"; +import * as _96 from "./ecocredit/v1/types"; +import * as _97 from "./ecocredit/v1alpha1/events"; +import * as _98 from "./ecocredit/v1alpha1/genesis"; +import * as _99 from "./ecocredit/v1alpha1/query"; +import * as _100 from "./ecocredit/v1alpha1/tx"; +import * as _101 from "./ecocredit/v1alpha1/types"; +import * as _102 from "./intertx/v1/query"; +import * as _103 from "./intertx/v1/tx"; +import * as _187 from "./data/v1/tx.amino"; +import * as _188 from "./ecocredit/basket/v1/tx.amino"; +import * as _189 from "./ecocredit/marketplace/v1/tx.amino"; +import * as _190 from "./ecocredit/v1/tx.amino"; +import * as _191 from "./ecocredit/v1alpha1/tx.amino"; +import * as _192 from "./intertx/v1/tx.amino"; +import * as _193 from "./data/v1/tx.registry"; +import * as _194 from "./ecocredit/basket/v1/tx.registry"; +import * as _195 from "./ecocredit/marketplace/v1/tx.registry"; +import * as _196 from "./ecocredit/v1/tx.registry"; +import * as _197 from "./ecocredit/v1alpha1/tx.registry"; +import * as _198 from "./intertx/v1/tx.registry"; +import * as _199 from "./data/v1/query.lcd"; +import * as _200 from "./ecocredit/basket/v1/query.lcd"; +import * as _201 from "./ecocredit/marketplace/v1/query.lcd"; +import * as _202 from "./ecocredit/v1/query.lcd"; +import * as _203 from "./ecocredit/v1alpha1/query.lcd"; +import * as _204 from "./intertx/v1/query.lcd"; +import * as _205 from "./data/v1/query.rpc.Query"; +import * as _206 from "./ecocredit/basket/v1/query.rpc.Query"; +import * as _207 from "./ecocredit/marketplace/v1/query.rpc.Query"; +import * as _208 from "./ecocredit/v1/query.rpc.Query"; +import * as _209 from "./ecocredit/v1alpha1/query.rpc.Query"; +import * as _210 from "./intertx/v1/query.rpc.Query"; +import * as _211 from "./data/v1/tx.rpc.msg"; +import * as _212 from "./ecocredit/basket/v1/tx.rpc.msg"; +import * as _213 from "./ecocredit/marketplace/v1/tx.rpc.msg"; +import * as _214 from "./ecocredit/v1/tx.rpc.msg"; +import * as _215 from "./ecocredit/v1alpha1/tx.rpc.msg"; +import * as _216 from "./intertx/v1/tx.rpc.msg"; +import * as _223 from "./lcd"; +import * as _224 from "./rpc.query"; +import * as _225 from "./rpc.tx"; +export var regen; +(function (regen) { + let data; + (function (data) { + data.v1 = { + ..._76, + ..._77, + ..._78, + ..._79, + ..._80, + ..._187, + ..._193, + ..._199, + ..._205, + ..._211 + }; + })(data = regen.data || (regen.data = {})); + let ecocredit; + (function (ecocredit) { + let basket; + (function (basket) { + basket.v1 = { + ..._81, + ..._82, + ..._83, + ..._84, + ..._85, + ..._188, + ..._194, + ..._200, + ..._206, + ..._212 + }; + })(basket = ecocredit.basket || (ecocredit.basket = {})); + let marketplace; + (function (marketplace) { + marketplace.v1 = { + ..._86, + ..._87, + ..._88, + ..._89, + ..._90, + ..._189, + ..._195, + ..._201, + ..._207, + ..._213 + }; + })(marketplace = ecocredit.marketplace || (ecocredit.marketplace = {})); + let orderbook; + (function (orderbook) { + orderbook.v1alpha1 = { + ..._91 + }; + })(orderbook = ecocredit.orderbook || (ecocredit.orderbook = {})); + ecocredit.v1 = { + ..._92, + ..._93, + ..._94, + ..._95, + ..._96, + ..._190, + ..._196, + ..._202, + ..._208, + ..._214 + }; + ecocredit.v1alpha1 = { + ..._97, + ..._98, + ..._99, + ..._100, + ..._101, + ..._191, + ..._197, + ..._203, + ..._209, + ..._215 + }; + })(ecocredit = regen.ecocredit || (regen.ecocredit = {})); + let intertx; + (function (intertx) { + intertx.v1 = { + ..._102, + ..._103, + ..._192, + ..._198, + ..._204, + ..._210, + ..._216 + }; + })(intertx = regen.intertx || (regen.intertx = {})); + regen.ClientFactory = { + ..._223, + ..._224, + ..._225 + }; +})(regen || (regen = {})); diff --git a/packages/api/dist/esm/regen/client.js b/packages/api/dist/esm/regen/client.js new file mode 100644 index 00000000..2e5ccb2a --- /dev/null +++ b/packages/api/dist/esm/regen/client.js @@ -0,0 +1,44 @@ +//@ts-nocheck +import { Registry } from "@cosmjs/proto-signing"; +import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import * as regenDataV1TxRegistry from "./data/v1/tx.registry"; +import * as regenEcocreditBasketV1TxRegistry from "./ecocredit/basket/v1/tx.registry"; +import * as regenEcocreditMarketplaceV1TxRegistry from "./ecocredit/marketplace/v1/tx.registry"; +import * as regenEcocreditV1TxRegistry from "./ecocredit/v1/tx.registry"; +import * as regenEcocreditV1alpha1TxRegistry from "./ecocredit/v1alpha1/tx.registry"; +import * as regenIntertxV1TxRegistry from "./intertx/v1/tx.registry"; +import * as regenDataV1TxAmino from "./data/v1/tx.amino"; +import * as regenEcocreditBasketV1TxAmino from "./ecocredit/basket/v1/tx.amino"; +import * as regenEcocreditMarketplaceV1TxAmino from "./ecocredit/marketplace/v1/tx.amino"; +import * as regenEcocreditV1TxAmino from "./ecocredit/v1/tx.amino"; +import * as regenEcocreditV1alpha1TxAmino from "./ecocredit/v1alpha1/tx.amino"; +import * as regenIntertxV1TxAmino from "./intertx/v1/tx.amino"; +export const regenAminoConverters = { + ...regenDataV1TxAmino.AminoConverter, + ...regenEcocreditBasketV1TxAmino.AminoConverter, + ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, + ...regenEcocreditV1TxAmino.AminoConverter, + ...regenEcocreditV1alpha1TxAmino.AminoConverter, + ...regenIntertxV1TxAmino.AminoConverter +}; +export const regenProtoRegistry = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; +export const getSigningRegenClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => { + const registry = new Registry([...defaultTypes, ...regenProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...regenAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningRegenClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => { + const { registry, aminoTypes } = getSigningRegenClientOptions({ + defaultTypes + }); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; diff --git a/packages/api/dist/esm/regen/data/v1/events.js b/packages/api/dist/esm/regen/data/v1/events.js new file mode 100644 index 00000000..7cfddb8d --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/events.js @@ -0,0 +1,278 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseEventAnchor() { + return { + iri: "" + }; +} +export const EventAnchor = { + typeUrl: "/regen.data.v1.EventAnchor", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAnchor(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAnchor(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return EventAnchor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventAnchor.decode(message.value); + }, + toProto(message) { + return EventAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventAnchor", + value: EventAnchor.encode(message).finish() + }; + } +}; +function createBaseEventAttest() { + return { + iri: "", + attestor: "" + }; +} +export const EventAttest = { + typeUrl: "/regen.data.v1.EventAttest", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAttest(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAttest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + return obj; + }, + fromAminoMsg(object) { + return EventAttest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventAttest.decode(message.value); + }, + toProto(message) { + return EventAttest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventAttest", + value: EventAttest.encode(message).finish() + }; + } +}; +function createBaseEventDefineResolver() { + return { + id: BigInt(0) + }; +} +export const EventDefineResolver = { + typeUrl: "/regen.data.v1.EventDefineResolver", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventDefineResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventDefineResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventDefineResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventDefineResolver.decode(message.value); + }, + toProto(message) { + return EventDefineResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventDefineResolver", + value: EventDefineResolver.encode(message).finish() + }; + } +}; +function createBaseEventRegisterResolver() { + return { + id: BigInt(0), + iri: "" + }; +} +export const EventRegisterResolver = { + typeUrl: "/regen.data.v1.EventRegisterResolver", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRegisterResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRegisterResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return EventRegisterResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventRegisterResolver.decode(message.value); + }, + toProto(message) { + return EventRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventRegisterResolver", + value: EventRegisterResolver.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/query.js b/packages/api/dist/esm/regen/data/v1/query.js new file mode 100644 index 00000000..e3b3814a --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/query.js @@ -0,0 +1,1815 @@ +//@ts-nocheck +import { ContentHash } from "./types"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseQueryAnchorByIRIRequest() { + return { + iri: "" + }; +} +export const QueryAnchorByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByIRIRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return QueryAnchorByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAnchorByIRIRequest.decode(message.value); + }, + toProto(message) { + return QueryAnchorByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + value: QueryAnchorByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByIRIResponse() { + return { + anchor: undefined + }; +} +export const QueryAnchorByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.anchor !== undefined) { + AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByIRIResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByIRIResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAnchorByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAnchorByIRIResponse.decode(message.value); + }, + toProto(message) { + return QueryAnchorByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + value: QueryAnchorByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashRequest() { + return { + contentHash: undefined + }; +} +export const QueryAnchorByHashRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAnchorByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAnchorByHashRequest.decode(message.value); + }, + toProto(message) { + return QueryAnchorByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + value: QueryAnchorByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashResponse() { + return { + anchor: undefined + }; +} +export const QueryAnchorByHashResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.anchor !== undefined) { + AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByHashResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByHashResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAnchorByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAnchorByHashResponse.decode(message.value); + }, + toProto(message) { + return QueryAnchorByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + value: QueryAnchorByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorRequest() { + return { + attestor: "", + pagination: undefined + }; +} +export const QueryAttestationsByAttestorRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByAttestorRequest(); + message.attestor = object.attestor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByAttestorRequest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByAttestorRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByAttestorRequest.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByAttestorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + value: QueryAttestationsByAttestorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorResponse() { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByAttestorResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.attestations) { + AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByAttestorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByAttestorResponse.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByAttestorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + value: QueryAttestationsByAttestorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIRequest() { + return { + iri: "", + pagination: undefined + }; +} +export const QueryAttestationsByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByIRIRequest.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + value: QueryAttestationsByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIResponse() { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.attestations) { + AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByIRIResponse.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + value: QueryAttestationsByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashRequest() { + return { + contentHash: undefined, + pagination: undefined + }; +} +export const QueryAttestationsByHashRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByHashRequest.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + value: QueryAttestationsByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashResponse() { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByHashResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.attestations) { + AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAttestationsByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAttestationsByHashResponse.decode(message.value); + }, + toProto(message) { + return QueryAttestationsByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + value: QueryAttestationsByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolverRequest() { + return { + id: BigInt(0) + }; +} +export const QueryResolverRequest = { + typeUrl: "/regen.data.v1.QueryResolverRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolverRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolverRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolverRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolverRequest.decode(message.value); + }, + toProto(message) { + return QueryResolverRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolverRequest", + value: QueryResolverRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolverResponse() { + return { + resolver: undefined + }; +} +export const QueryResolverResponse = { + typeUrl: "/regen.data.v1.QueryResolverResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.resolver !== undefined) { + ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolver = ResolverInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolverResponse(); + message.resolver = object.resolver !== undefined && object.resolver !== null ? ResolverInfo.fromPartial(object.resolver) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolverResponse(); + if (object.resolver !== undefined && object.resolver !== null) { + message.resolver = ResolverInfo.fromAmino(object.resolver); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.resolver = message.resolver ? ResolverInfo.toAmino(message.resolver) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolverResponse.decode(message.value); + }, + toProto(message) { + return QueryResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolverResponse", + value: QueryResolverResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIRequest() { + return { + iri: "", + pagination: undefined + }; +} +export const QueryResolversByIRIRequest = { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByIRIRequest.decode(message.value); + }, + toProto(message) { + return QueryResolversByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + value: QueryResolversByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByIRIResponse = { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.resolvers) { + ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByIRIResponse.decode(message.value); + }, + toProto(message) { + return QueryResolversByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + value: QueryResolversByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashRequest() { + return { + contentHash: undefined, + pagination: undefined + }; +} +export const QueryResolversByHashRequest = { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByHashRequest.decode(message.value); + }, + toProto(message) { + return QueryResolversByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + value: QueryResolversByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByHashResponse = { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.resolvers) { + ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByHashResponse.decode(message.value); + }, + toProto(message) { + return QueryResolversByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + value: QueryResolversByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLRequest() { + return { + url: "", + pagination: undefined + }; +} +export const QueryResolversByURLRequest = { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.url !== "") { + writer.uint32(10).string(message.url); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByURLRequest(); + message.url = object.url ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByURLRequest(); + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.url = message.url === "" ? undefined : message.url; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByURLRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByURLRequest.decode(message.value); + }, + toProto(message) { + return QueryResolversByURLRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + value: QueryResolversByURLRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByURLResponse = { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.resolvers) { + ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryResolversByURLResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryResolversByURLResponse.decode(message.value); + }, + toProto(message) { + return QueryResolversByURLResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + value: QueryResolversByURLResponse.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashRequest() { + return { + iri: "" + }; +} +export const ConvertIRIToHashRequest = { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertIRIToHashRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConvertIRIToHashRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return ConvertIRIToHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ConvertIRIToHashRequest.decode(message.value); + }, + toProto(message) { + return ConvertIRIToHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + value: ConvertIRIToHashRequest.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashResponse() { + return { + contentHash: undefined + }; +} +export const ConvertIRIToHashResponse = { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertIRIToHashResponse(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConvertIRIToHashResponse(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ConvertIRIToHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ConvertIRIToHashResponse.decode(message.value); + }, + toProto(message) { + return ConvertIRIToHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + value: ConvertIRIToHashResponse.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIRequest() { + return { + contentHash: undefined + }; +} +export const ConvertHashToIRIRequest = { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertHashToIRIRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConvertHashToIRIRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ConvertHashToIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ConvertHashToIRIRequest.decode(message.value); + }, + toProto(message) { + return ConvertHashToIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + value: ConvertHashToIRIRequest.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIResponse() { + return { + iri: "" + }; +} +export const ConvertHashToIRIResponse = { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertHashToIRIResponse(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConvertHashToIRIResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return ConvertHashToIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ConvertHashToIRIResponse.decode(message.value); + }, + toProto(message) { + return ConvertHashToIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + value: ConvertHashToIRIResponse.encode(message).finish() + }; + } +}; +function createBaseAnchorInfo() { + return { + iri: "", + contentHash: undefined, + timestamp: undefined + }; +} +export const AnchorInfo = { + typeUrl: "/regen.data.v1.AnchorInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAnchorInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAnchorInfo(); + message.iri = object.iri ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAnchorInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AnchorInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AnchorInfo.decode(message.value); + }, + toProto(message) { + return AnchorInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.AnchorInfo", + value: AnchorInfo.encode(message).finish() + }; + } +}; +function createBaseAttestationInfo() { + return { + iri: "", + attestor: "", + timestamp: undefined + }; +} +export const AttestationInfo = { + typeUrl: "/regen.data.v1.AttestationInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttestationInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAttestationInfo(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAttestationInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AttestationInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AttestationInfo.decode(message.value); + }, + toProto(message) { + return AttestationInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.AttestationInfo", + value: AttestationInfo.encode(message).finish() + }; + } +}; +function createBaseResolverInfo() { + return { + id: BigInt(0), + url: "", + manager: "" + }; +} +export const ResolverInfo = { + typeUrl: "/regen.data.v1.ResolverInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager !== "") { + writer.uint32(26).string(message.manager); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolverInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResolverInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResolverInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager === "" ? undefined : message.manager; + return obj; + }, + fromAminoMsg(object) { + return ResolverInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResolverInfo.decode(message.value); + }, + toProto(message) { + return ResolverInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ResolverInfo", + value: ResolverInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/query.lcd.js b/packages/api/dist/esm/regen/data/v1/query.lcd.js new file mode 100644 index 00000000..6e03b74a --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/query.lcd.js @@ -0,0 +1,63 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + } + /* AnchorByIRI queries a data anchor by the IRI of the data. */ + async anchorByIRI(params) { + const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; + return await this.req.get(endpoint); + } + /* AttestationsByAttestor queries data attestations by an attestor. */ + async attestationsByAttestor(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; + return await this.req.get(endpoint, options); + } + /* AttestationsByIRI queries data attestations by the IRI of the data. */ + async attestationsByIRI(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* Resolver queries a resolver by its unique identifier. */ + async resolver(params) { + const endpoint = `regen/data/v1/resolver/${params.id}`; + return await this.req.get(endpoint); + } + /* ResolversByIRI queries resolvers with registered data by the IRI of the + data. */ + async resolversByIRI(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* ConvertIRIToHash converts an IRI to a ContentHash. */ + async convertIRIToHash(params) { + const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js new file mode 100644 index 00000000..ba703916 --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js @@ -0,0 +1,114 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.anchorByHash = this.anchorByHash.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.attestationsByHash = this.attestationsByHash.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.resolversByHash = this.resolversByHash.bind(this); + this.resolversByURL = this.resolversByURL.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + this.convertHashToIRI = this.convertHashToIRI.bind(this); + } + anchorByIRI(request) { + const data = QueryAnchorByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); + return promise.then(data => QueryAnchorByIRIResponse.decode(new BinaryReader(data))); + } + anchorByHash(request) { + const data = QueryAnchorByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); + return promise.then(data => QueryAnchorByHashResponse.decode(new BinaryReader(data))); + } + attestationsByAttestor(request) { + const data = QueryAttestationsByAttestorRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); + return promise.then(data => QueryAttestationsByAttestorResponse.decode(new BinaryReader(data))); + } + attestationsByIRI(request) { + const data = QueryAttestationsByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); + return promise.then(data => QueryAttestationsByIRIResponse.decode(new BinaryReader(data))); + } + attestationsByHash(request) { + const data = QueryAttestationsByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); + return promise.then(data => QueryAttestationsByHashResponse.decode(new BinaryReader(data))); + } + resolver(request) { + const data = QueryResolverRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); + return promise.then(data => QueryResolverResponse.decode(new BinaryReader(data))); + } + resolversByIRI(request) { + const data = QueryResolversByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); + return promise.then(data => QueryResolversByIRIResponse.decode(new BinaryReader(data))); + } + resolversByHash(request) { + const data = QueryResolversByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); + return promise.then(data => QueryResolversByHashResponse.decode(new BinaryReader(data))); + } + resolversByURL(request) { + const data = QueryResolversByURLRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); + return promise.then(data => QueryResolversByURLResponse.decode(new BinaryReader(data))); + } + convertIRIToHash(request) { + const data = ConvertIRIToHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); + return promise.then(data => ConvertIRIToHashResponse.decode(new BinaryReader(data))); + } + convertHashToIRI(request) { + const data = ConvertHashToIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); + return promise.then(data => ConvertHashToIRIResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + anchorByIRI(request) { + return queryService.anchorByIRI(request); + }, + anchorByHash(request) { + return queryService.anchorByHash(request); + }, + attestationsByAttestor(request) { + return queryService.attestationsByAttestor(request); + }, + attestationsByIRI(request) { + return queryService.attestationsByIRI(request); + }, + attestationsByHash(request) { + return queryService.attestationsByHash(request); + }, + resolver(request) { + return queryService.resolver(request); + }, + resolversByIRI(request) { + return queryService.resolversByIRI(request); + }, + resolversByHash(request) { + return queryService.resolversByHash(request); + }, + resolversByURL(request) { + return queryService.resolversByURL(request); + }, + convertIRIToHash(request) { + return queryService.convertIRIToHash(request); + }, + convertHashToIRI(request) { + return queryService.convertHashToIRI(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/data/v1/state.js b/packages/api/dist/esm/regen/data/v1/state.js new file mode 100644 index 00000000..08081aaa --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/state.js @@ -0,0 +1,403 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseDataID() { + return { + id: new Uint8Array(), + iri: "" + }; +} +export const DataID = { + typeUrl: "/regen.data.v1.DataID", + encode(message, writer = BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataID(); + message.id = object.id ?? new Uint8Array(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDataID(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return DataID.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DataID.decode(message.value); + }, + toProto(message) { + return DataID.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataID", + value: DataID.encode(message).finish() + }; + } +}; +function createBaseDataAnchor() { + return { + id: new Uint8Array(), + timestamp: undefined + }; +} +export const DataAnchor = { + typeUrl: "/regen.data.v1.DataAnchor", + encode(message, writer = BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataAnchor(); + message.id = object.id ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDataAnchor(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DataAnchor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DataAnchor.decode(message.value); + }, + toProto(message) { + return DataAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataAnchor", + value: DataAnchor.encode(message).finish() + }; + } +}; +function createBaseDataAttestor() { + return { + id: new Uint8Array(), + attestor: new Uint8Array(), + timestamp: undefined + }; +} +export const DataAttestor = { + typeUrl: "/regen.data.v1.DataAttestor", + encode(message, writer = BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.attestor.length !== 0) { + writer.uint32(18).bytes(message.attestor); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAttestor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.attestor = reader.bytes(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataAttestor(); + message.id = object.id ?? new Uint8Array(); + message.attestor = object.attestor ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDataAttestor(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = bytesFromBase64(object.attestor); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.attestor = message.attestor ? base64FromBytes(message.attestor) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DataAttestor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DataAttestor.decode(message.value); + }, + toProto(message) { + return DataAttestor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataAttestor", + value: DataAttestor.encode(message).finish() + }; + } +}; +function createBaseResolver() { + return { + id: BigInt(0), + url: "", + manager: new Uint8Array() + }; +} +export const Resolver = { + typeUrl: "/regen.data.v1.Resolver", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager.length !== 0) { + writer.uint32(26).bytes(message.manager); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = bytesFromBase64(object.manager); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager ? base64FromBytes(message.manager) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Resolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Resolver.decode(message.value); + }, + toProto(message) { + return Resolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Resolver", + value: Resolver.encode(message).finish() + }; + } +}; +function createBaseDataResolver() { + return { + id: new Uint8Array(), + resolverId: BigInt(0) + }; +} +export const DataResolver = { + typeUrl: "/regen.data.v1.DataResolver", + encode(message, writer = BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataResolver(); + message.id = object.id ?? new Uint8Array(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseDataResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return DataResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DataResolver.decode(message.value); + }, + toProto(message) { + return DataResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataResolver", + value: DataResolver.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.amino.js b/packages/api/dist/esm/regen/data/v1/tx.amino.js new file mode 100644 index 00000000..2c9c9fec --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/tx.amino.js @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export const AminoConverter = { + "/regen.data.v1.MsgAnchor": { + aminoType: "regen-ledger/MsgAnchor", + toAmino: MsgAnchor.toAmino, + fromAmino: MsgAnchor.fromAmino + }, + "/regen.data.v1.MsgAttest": { + aminoType: "regen-ledger/MsgAttest", + toAmino: MsgAttest.toAmino, + fromAmino: MsgAttest.fromAmino + }, + "/regen.data.v1.MsgDefineResolver": { + aminoType: "regen-ledger/MsgDefineResolver", + toAmino: MsgDefineResolver.toAmino, + fromAmino: MsgDefineResolver.fromAmino + }, + "/regen.data.v1.MsgRegisterResolver": { + aminoType: "regen-ledger/MsgRegisterResolver", + toAmino: MsgRegisterResolver.toAmino, + fromAmino: MsgRegisterResolver.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.js b/packages/api/dist/esm/regen/data/v1/tx.js new file mode 100644 index 00000000..8d05332a --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/tx.js @@ -0,0 +1,613 @@ +//@ts-nocheck +import { ContentHash, ContentHash_Graph } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseMsgAnchor() { + return { + sender: "", + contentHash: undefined + }; +} +export const MsgAnchor = { + typeUrl: "/regen.data.v1.MsgAnchor", + encode(message, writer = BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAnchor(); + message.sender = object.sender ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAnchor(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgAnchor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgAnchor", + value: MsgAnchor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAnchor.decode(message.value); + }, + toProto(message) { + return MsgAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.encode(message).finish() + }; + } +}; +function createBaseMsgAnchorResponse() { + return { + iri: "", + timestamp: undefined + }; +} +export const MsgAnchorResponse = { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAnchorResponse(); + message.iri = object.iri ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAnchorResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgAnchorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAnchorResponse.decode(message.value); + }, + toProto(message) { + return MsgAnchorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + value: MsgAnchorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAttest() { + return { + attestor: "", + contentHashes: [] + }; +} +export const MsgAttest = { + typeUrl: "/regen.data.v1.MsgAttest", + encode(message, writer = BinaryWriter.create()) { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + for (const v of message.contentHashes) { + ContentHash_Graph.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.contentHashes.push(ContentHash_Graph.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAttest(); + message.attestor = object.attestor ?? ""; + message.contentHashes = object.contentHashes?.map(e => ContentHash_Graph.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAttest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + message.contentHashes = object.content_hashes?.map(e => ContentHash_Graph.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash_Graph.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return MsgAttest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgAttest", + value: MsgAttest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAttest.decode(message.value); + }, + toProto(message) { + return MsgAttest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.encode(message).finish() + }; + } +}; +function createBaseMsgAttestResponse() { + return { + iris: [], + timestamp: undefined + }; +} +export const MsgAttestResponse = { + typeUrl: "/regen.data.v1.MsgAttestResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.iris) { + writer.uint32(10).string(v); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttestResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iris.push(reader.string()); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.iris) { + obj.iris = message.iris.map(e => e); + } + else { + obj.iris = message.iris; + } + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgAttestResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAttestResponse.decode(message.value); + }, + toProto(message) { + return MsgAttestResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAttestResponse", + value: MsgAttestResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolver() { + return { + manager: "", + resolverUrl: "" + }; +} +export const MsgDefineResolver = { + typeUrl: "/regen.data.v1.MsgDefineResolver", + encode(message, writer = BinaryWriter.create()) { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverUrl !== "") { + writer.uint32(18).string(message.resolverUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDefineResolver(); + message.manager = object.manager ?? ""; + message.resolverUrl = object.resolverUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDefineResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_url !== undefined && object.resolver_url !== null) { + message.resolverUrl = object.resolver_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; + return obj; + }, + fromAminoMsg(object) { + return MsgDefineResolver.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgDefineResolver", + value: MsgDefineResolver.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgDefineResolver.decode(message.value); + }, + toProto(message) { + return MsgDefineResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolverResponse() { + return { + resolverId: BigInt(0) + }; +} +export const MsgDefineResolverResponse = { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.resolverId !== BigInt(0)) { + writer.uint32(8).uint64(message.resolverId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDefineResolverResponse(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgDefineResolverResponse(); + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgDefineResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgDefineResolverResponse.decode(message.value); + }, + toProto(message) { + return MsgDefineResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + value: MsgDefineResolverResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolver() { + return { + manager: "", + resolverId: BigInt(0), + contentHashes: [] + }; +} +export const MsgRegisterResolver = { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + encode(message, writer = BinaryWriter.create()) { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + for (const v of message.contentHashes) { + ContentHash.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + case 3: + message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRegisterResolver(); + message.manager = object.manager ?? ""; + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRegisterResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return MsgRegisterResolver.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgRegisterResolver", + value: MsgRegisterResolver.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRegisterResolver.decode(message.value); + }, + toProto(message) { + return MsgRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolverResponse() { + return {}; +} +export const MsgRegisterResolverResponse = { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRegisterResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRegisterResolverResponse.decode(message.value); + }, + toProto(message) { + return MsgRegisterResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + value: MsgRegisterResolverResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.registry.js b/packages/api/dist/esm/regen/data/v1/tx.registry.js new file mode 100644 index 00000000..2f206c4e --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/tx.registry.js @@ -0,0 +1,87 @@ +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export const registry = [["/regen.data.v1.MsgAnchor", MsgAnchor], ["/regen.data.v1.MsgAttest", MsgAttest], ["/regen.data.v1.MsgDefineResolver", MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", MsgRegisterResolver]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.encode(value).finish() + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.encode(value).finish() + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.encode(value).finish() + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.encode(value).finish() + }; + } + }, + withTypeUrl: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value + }; + } + }, + fromPartial: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.fromPartial(value) + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.fromPartial(value) + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.fromPartial(value) + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js new file mode 100644 index 00000000..6bfa0a89 --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js @@ -0,0 +1,32 @@ +import { BinaryReader } from "../../../binary"; +import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.anchor = this.anchor.bind(this); + this.attest = this.attest.bind(this); + this.defineResolver = this.defineResolver.bind(this); + this.registerResolver = this.registerResolver.bind(this); + } + anchor(request) { + const data = MsgAnchor.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); + return promise.then(data => MsgAnchorResponse.decode(new BinaryReader(data))); + } + attest(request) { + const data = MsgAttest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); + return promise.then(data => MsgAttestResponse.decode(new BinaryReader(data))); + } + defineResolver(request) { + const data = MsgDefineResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); + return promise.then(data => MsgDefineResolverResponse.decode(new BinaryReader(data))); + } + registerResolver(request) { + const data = MsgRegisterResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); + return promise.then(data => MsgRegisterResolverResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/data/v1/types.js b/packages/api/dist/esm/regen/data/v1/types.js new file mode 100644 index 00000000..b6399c38 --- /dev/null +++ b/packages/api/dist/esm/regen/data/v1/types.js @@ -0,0 +1,579 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** DigestAlgorithm is the hash digest algorithm */ +export var DigestAlgorithm; +(function (DigestAlgorithm) { + /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_UNSPECIFIED"] = 0] = "DIGEST_ALGORITHM_UNSPECIFIED"; + /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ + DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_BLAKE2B_256"] = 1] = "DIGEST_ALGORITHM_BLAKE2B_256"; + DigestAlgorithm[DigestAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(DigestAlgorithm || (DigestAlgorithm = {})); +export const DigestAlgorithmSDKType = DigestAlgorithm; +export const DigestAlgorithmAmino = DigestAlgorithm; +export function digestAlgorithmFromJSON(object) { + switch (object) { + case 0: + case "DIGEST_ALGORITHM_UNSPECIFIED": + return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; + case 1: + case "DIGEST_ALGORITHM_BLAKE2B_256": + return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; + case -1: + case "UNRECOGNIZED": + default: + return DigestAlgorithm.UNRECOGNIZED; + } +} +export function digestAlgorithmToJSON(object) { + switch (object) { + case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: + return "DIGEST_ALGORITHM_UNSPECIFIED"; + case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: + return "DIGEST_ALGORITHM_BLAKE2B_256"; + case DigestAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ +export var RawMediaType; +(function (RawMediaType) { + /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_UNSPECIFIED"] = 0] = "RAW_MEDIA_TYPE_UNSPECIFIED"; + /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TEXT_PLAIN"] = 1] = "RAW_MEDIA_TYPE_TEXT_PLAIN"; + /** RAW_MEDIA_TYPE_JSON - JSON */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JSON"] = 2] = "RAW_MEDIA_TYPE_JSON"; + /** RAW_MEDIA_TYPE_CSV - CSV */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_CSV"] = 3] = "RAW_MEDIA_TYPE_CSV"; + /** RAW_MEDIA_TYPE_XML - XML */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_XML"] = 4] = "RAW_MEDIA_TYPE_XML"; + /** RAW_MEDIA_TYPE_PDF - PDF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PDF"] = 5] = "RAW_MEDIA_TYPE_PDF"; + /** RAW_MEDIA_TYPE_TIFF - TIIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TIFF"] = 16] = "RAW_MEDIA_TYPE_TIFF"; + /** RAW_MEDIA_TYPE_JPG - JPG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JPG"] = 17] = "RAW_MEDIA_TYPE_JPG"; + /** RAW_MEDIA_TYPE_PNG - PNG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PNG"] = 18] = "RAW_MEDIA_TYPE_PNG"; + /** RAW_MEDIA_TYPE_SVG - SVG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_SVG"] = 19] = "RAW_MEDIA_TYPE_SVG"; + /** RAW_MEDIA_TYPE_WEBP - WEBP */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBP"] = 20] = "RAW_MEDIA_TYPE_WEBP"; + /** RAW_MEDIA_TYPE_AVIF - AVIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_AVIF"] = 21] = "RAW_MEDIA_TYPE_AVIF"; + /** RAW_MEDIA_TYPE_GIF - GIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_GIF"] = 22] = "RAW_MEDIA_TYPE_GIF"; + /** RAW_MEDIA_TYPE_APNG - APNG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_APNG"] = 23] = "RAW_MEDIA_TYPE_APNG"; + /** RAW_MEDIA_TYPE_MPEG - MPEG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MPEG"] = 32] = "RAW_MEDIA_TYPE_MPEG"; + /** RAW_MEDIA_TYPE_MP4 - MP4 */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MP4"] = 33] = "RAW_MEDIA_TYPE_MP4"; + /** RAW_MEDIA_TYPE_WEBM - WEBM */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBM"] = 34] = "RAW_MEDIA_TYPE_WEBM"; + /** RAW_MEDIA_TYPE_OGG - OGG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_OGG"] = 35] = "RAW_MEDIA_TYPE_OGG"; + RawMediaType[RawMediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(RawMediaType || (RawMediaType = {})); +export const RawMediaTypeSDKType = RawMediaType; +export const RawMediaTypeAmino = RawMediaType; +export function rawMediaTypeFromJSON(object) { + switch (object) { + case 0: + case "RAW_MEDIA_TYPE_UNSPECIFIED": + return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; + case 1: + case "RAW_MEDIA_TYPE_TEXT_PLAIN": + return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; + case 2: + case "RAW_MEDIA_TYPE_JSON": + return RawMediaType.RAW_MEDIA_TYPE_JSON; + case 3: + case "RAW_MEDIA_TYPE_CSV": + return RawMediaType.RAW_MEDIA_TYPE_CSV; + case 4: + case "RAW_MEDIA_TYPE_XML": + return RawMediaType.RAW_MEDIA_TYPE_XML; + case 5: + case "RAW_MEDIA_TYPE_PDF": + return RawMediaType.RAW_MEDIA_TYPE_PDF; + case 16: + case "RAW_MEDIA_TYPE_TIFF": + return RawMediaType.RAW_MEDIA_TYPE_TIFF; + case 17: + case "RAW_MEDIA_TYPE_JPG": + return RawMediaType.RAW_MEDIA_TYPE_JPG; + case 18: + case "RAW_MEDIA_TYPE_PNG": + return RawMediaType.RAW_MEDIA_TYPE_PNG; + case 19: + case "RAW_MEDIA_TYPE_SVG": + return RawMediaType.RAW_MEDIA_TYPE_SVG; + case 20: + case "RAW_MEDIA_TYPE_WEBP": + return RawMediaType.RAW_MEDIA_TYPE_WEBP; + case 21: + case "RAW_MEDIA_TYPE_AVIF": + return RawMediaType.RAW_MEDIA_TYPE_AVIF; + case 22: + case "RAW_MEDIA_TYPE_GIF": + return RawMediaType.RAW_MEDIA_TYPE_GIF; + case 23: + case "RAW_MEDIA_TYPE_APNG": + return RawMediaType.RAW_MEDIA_TYPE_APNG; + case 32: + case "RAW_MEDIA_TYPE_MPEG": + return RawMediaType.RAW_MEDIA_TYPE_MPEG; + case 33: + case "RAW_MEDIA_TYPE_MP4": + return RawMediaType.RAW_MEDIA_TYPE_MP4; + case 34: + case "RAW_MEDIA_TYPE_WEBM": + return RawMediaType.RAW_MEDIA_TYPE_WEBM; + case 35: + case "RAW_MEDIA_TYPE_OGG": + return RawMediaType.RAW_MEDIA_TYPE_OGG; + case -1: + case "UNRECOGNIZED": + default: + return RawMediaType.UNRECOGNIZED; + } +} +export function rawMediaTypeToJSON(object) { + switch (object) { + case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: + return "RAW_MEDIA_TYPE_UNSPECIFIED"; + case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: + return "RAW_MEDIA_TYPE_TEXT_PLAIN"; + case RawMediaType.RAW_MEDIA_TYPE_JSON: + return "RAW_MEDIA_TYPE_JSON"; + case RawMediaType.RAW_MEDIA_TYPE_CSV: + return "RAW_MEDIA_TYPE_CSV"; + case RawMediaType.RAW_MEDIA_TYPE_XML: + return "RAW_MEDIA_TYPE_XML"; + case RawMediaType.RAW_MEDIA_TYPE_PDF: + return "RAW_MEDIA_TYPE_PDF"; + case RawMediaType.RAW_MEDIA_TYPE_TIFF: + return "RAW_MEDIA_TYPE_TIFF"; + case RawMediaType.RAW_MEDIA_TYPE_JPG: + return "RAW_MEDIA_TYPE_JPG"; + case RawMediaType.RAW_MEDIA_TYPE_PNG: + return "RAW_MEDIA_TYPE_PNG"; + case RawMediaType.RAW_MEDIA_TYPE_SVG: + return "RAW_MEDIA_TYPE_SVG"; + case RawMediaType.RAW_MEDIA_TYPE_WEBP: + return "RAW_MEDIA_TYPE_WEBP"; + case RawMediaType.RAW_MEDIA_TYPE_AVIF: + return "RAW_MEDIA_TYPE_AVIF"; + case RawMediaType.RAW_MEDIA_TYPE_GIF: + return "RAW_MEDIA_TYPE_GIF"; + case RawMediaType.RAW_MEDIA_TYPE_APNG: + return "RAW_MEDIA_TYPE_APNG"; + case RawMediaType.RAW_MEDIA_TYPE_MPEG: + return "RAW_MEDIA_TYPE_MPEG"; + case RawMediaType.RAW_MEDIA_TYPE_MP4: + return "RAW_MEDIA_TYPE_MP4"; + case RawMediaType.RAW_MEDIA_TYPE_WEBM: + return "RAW_MEDIA_TYPE_WEBM"; + case RawMediaType.RAW_MEDIA_TYPE_OGG: + return "RAW_MEDIA_TYPE_OGG"; + case RawMediaType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ +export var GraphCanonicalizationAlgorithm; +(function (GraphCanonicalizationAlgorithm) { + /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"] = 0] = "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; + /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"] = 1] = "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(GraphCanonicalizationAlgorithm || (GraphCanonicalizationAlgorithm = {})); +export const GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; +export const GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; +export function graphCanonicalizationAlgorithmFromJSON(object) { + switch (object) { + case 0: + case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; + case 1: + case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; + case -1: + case "UNRECOGNIZED": + default: + return GraphCanonicalizationAlgorithm.UNRECOGNIZED; + } +} +export function graphCanonicalizationAlgorithmToJSON(object) { + switch (object) { + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: + return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: + return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; + case GraphCanonicalizationAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ +export var GraphMerkleTree; +(function (GraphMerkleTree) { + /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ + GraphMerkleTree[GraphMerkleTree["GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"] = 0] = "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; + GraphMerkleTree[GraphMerkleTree["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(GraphMerkleTree || (GraphMerkleTree = {})); +export const GraphMerkleTreeSDKType = GraphMerkleTree; +export const GraphMerkleTreeAmino = GraphMerkleTree; +export function graphMerkleTreeFromJSON(object) { + switch (object) { + case 0: + case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": + return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; + case -1: + case "UNRECOGNIZED": + default: + return GraphMerkleTree.UNRECOGNIZED; + } +} +export function graphMerkleTreeToJSON(object) { + switch (object) { + case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: + return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; + case GraphMerkleTree.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseContentHash() { + return { + raw: undefined, + graph: undefined + }; +} +export const ContentHash = { + typeUrl: "/regen.data.v1.ContentHash", + encode(message, writer = BinaryWriter.create()) { + if (message.raw !== undefined) { + ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); + } + if (message.graph !== undefined) { + ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.raw = ContentHash_Raw.decode(reader, reader.uint32()); + break; + case 2: + message.graph = ContentHash_Graph.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash(); + message.raw = object.raw !== undefined && object.raw !== null ? ContentHash_Raw.fromPartial(object.raw) : undefined; + message.graph = object.graph !== undefined && object.graph !== null ? ContentHash_Graph.fromPartial(object.graph) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash(); + if (object.raw !== undefined && object.raw !== null) { + message.raw = ContentHash_Raw.fromAmino(object.raw); + } + if (object.graph !== undefined && object.graph !== null) { + message.graph = ContentHash_Graph.fromAmino(object.graph); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.raw = message.raw ? ContentHash_Raw.toAmino(message.raw) : undefined; + obj.graph = message.graph ? ContentHash_Graph.toAmino(message.graph) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ContentHash.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ContentHash.decode(message.value); + }, + toProto(message) { + return ContentHash.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ContentHash", + value: ContentHash.encode(message).finish() + }; + } +}; +function createBaseContentHash_Raw() { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + mediaType: 0 + }; +} +export const ContentHash_Raw = { + typeUrl: "/regen.data.v1.Raw", + encode(message, writer = BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.mediaType !== 0) { + writer.uint32(24).int32(message.mediaType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Raw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = reader.int32(); + break; + case 3: + message.mediaType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash_Raw(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.mediaType = object.mediaType ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash_Raw(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.media_type !== undefined && object.media_type !== null) { + message.mediaType = object.media_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; + return obj; + }, + fromAminoMsg(object) { + return ContentHash_Raw.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ContentHash_Raw.decode(message.value); + }, + toProto(message) { + return ContentHash_Raw.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Raw", + value: ContentHash_Raw.encode(message).finish() + }; + } +}; +function createBaseContentHash_Graph() { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + canonicalizationAlgorithm: 0, + merkleTree: 0 + }; +} +export const ContentHash_Graph = { + typeUrl: "/regen.data.v1.Graph", + encode(message, writer = BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.canonicalizationAlgorithm !== 0) { + writer.uint32(24).int32(message.canonicalizationAlgorithm); + } + if (message.merkleTree !== 0) { + writer.uint32(32).int32(message.merkleTree); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Graph(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = reader.int32(); + break; + case 3: + message.canonicalizationAlgorithm = reader.int32(); + break; + case 4: + message.merkleTree = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash_Graph(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; + message.merkleTree = object.merkleTree ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash_Graph(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { + message.canonicalizationAlgorithm = object.canonicalization_algorithm; + } + if (object.merkle_tree !== undefined && object.merkle_tree !== null) { + message.merkleTree = object.merkle_tree; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; + obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; + return obj; + }, + fromAminoMsg(object) { + return ContentHash_Graph.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ContentHash_Graph.decode(message.value); + }, + toProto(message) { + return ContentHash_Graph.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Graph", + value: ContentHash_Graph.encode(message).finish() + }; + } +}; +function createBaseContentHashes() { + return { + contentHashes: [] + }; +} +export const ContentHashes = { + typeUrl: "/regen.data.v1.ContentHashes", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.contentHashes) { + ContentHash.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHashes(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHashes(); + message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseContentHashes(); + message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return ContentHashes.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ContentHashes.decode(message.value); + }, + toProto(message) { + return ContentHashes.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ContentHashes", + value: ContentHashes.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js new file mode 100644 index 00000000..dd96789a --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js @@ -0,0 +1,408 @@ +//@ts-nocheck +import { BasketCredit } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseEventCreate() { + return { + basketDenom: "", + curator: "" + }; +} +export const EventCreate = { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.curator !== "") { + writer.uint32(18).string(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreate(); + message.basketDenom = object.basketDenom ?? ""; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreate(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object) { + return EventCreate.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreate.decode(message.value); + }, + toProto(message) { + return EventCreate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + value: EventCreate.encode(message).finish() + }; + } +}; +function createBaseEventPut() { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +export const EventPut = { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return EventPut.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventPut.decode(message.value); + }, + toProto(message) { + return EventPut.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + value: EventPut.encode(message).finish() + }; + } +}; +function createBaseEventTake() { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +export const EventTake = { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return EventTake.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventTake.decode(message.value); + }, + toProto(message) { + return EventTake.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + value: EventTake.encode(message).finish() + }; + } +}; +function createBaseEventUpdateCurator() { + return { + denom: "" + }; +} +export const EventUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateCurator(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateCurator(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateCurator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateCurator.decode(message.value); + }, + toProto(message) { + return EventUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + value: EventUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseEventUpdateDateCriteria() { + return { + denom: "" + }; +} +export const EventUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateDateCriteria(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateDateCriteria(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateDateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateDateCriteria.decode(message.value); + }, + toProto(message) { + return EventUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + value: EventUpdateDateCriteria.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js new file mode 100644 index 00000000..21a3f162 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js @@ -0,0 +1,944 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Basket, BasketBalance } from "./state"; +import { DateCriteria } from "./types"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseQueryBasketRequest() { + return { + basketDenom: "" + }; +} +export const QueryBasketRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketRequest(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketRequest.decode(message.value); + }, + toProto(message) { + return QueryBasketRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + value: QueryBasketRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketResponse() { + return { + basket: undefined, + classes: [], + basketInfo: undefined + }; +} +export const QueryBasketResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.basket !== undefined) { + Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classes) { + writer.uint32(18).string(v); + } + if (message.basketInfo !== undefined) { + BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basket = Basket.decode(reader, reader.uint32()); + break; + case 2: + message.classes.push(reader.string()); + break; + case 3: + message.basketInfo = BasketInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketResponse(); + message.basket = object.basket !== undefined && object.basket !== null ? Basket.fromPartial(object.basket) : undefined; + message.classes = object.classes?.map(e => e) || []; + message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? BasketInfo.fromPartial(object.basketInfo) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketResponse(); + if (object.basket !== undefined && object.basket !== null) { + message.basket = Basket.fromAmino(object.basket); + } + message.classes = object.classes?.map(e => e) || []; + if (object.basket_info !== undefined && object.basket_info !== null) { + message.basketInfo = BasketInfo.fromAmino(object.basket_info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket = message.basket ? Basket.toAmino(message.basket) : undefined; + if (message.classes) { + obj.classes = message.classes.map(e => e); + } + else { + obj.classes = message.classes; + } + obj.basket_info = message.basketInfo ? BasketInfo.toAmino(message.basketInfo) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketResponse.decode(message.value); + }, + toProto(message) { + return QueryBasketResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + value: QueryBasketResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsRequest() { + return { + pagination: undefined + }; +} +export const QueryBasketsRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketsRequest.decode(message.value); + }, + toProto(message) { + return QueryBasketsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + value: QueryBasketsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsResponse() { + return { + baskets: [], + pagination: undefined, + basketsInfo: [] + }; +} +export const QueryBasketsResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.baskets) { + Basket.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.basketsInfo) { + BasketInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baskets.push(Basket.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.basketsInfo.push(BasketInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => Basket.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.basketsInfo = object.basketsInfo?.map(e => BasketInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => Basket.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + message.basketsInfo = object.baskets_info?.map(e => BasketInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.baskets) { + obj.baskets = message.baskets.map(e => e ? Basket.toAmino(e) : undefined); + } + else { + obj.baskets = message.baskets; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + if (message.basketsInfo) { + obj.baskets_info = message.basketsInfo.map(e => e ? BasketInfo.toAmino(e) : undefined); + } + else { + obj.baskets_info = message.basketsInfo; + } + return obj; + }, + fromAminoMsg(object) { + return QueryBasketsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketsResponse.decode(message.value); + }, + toProto(message) { + return QueryBasketsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + value: QueryBasketsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesRequest() { + return { + basketDenom: "", + pagination: undefined + }; +} +export const QueryBasketBalancesRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalancesRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalancesRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketBalancesRequest.decode(message.value); + }, + toProto(message) { + return QueryBasketBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + value: QueryBasketBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesResponse() { + return { + balances: [], + pagination: undefined, + balancesInfo: [] + }; +} +export const QueryBasketBalancesResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + BasketBalance.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.balancesInfo) { + BasketBalanceInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BasketBalance.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.balancesInfo.push(BasketBalanceInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => BasketBalance.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.balancesInfo = object.balancesInfo?.map(e => BasketBalanceInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => BasketBalance.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + message.balancesInfo = object.balances_info?.map(e => BasketBalanceInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BasketBalance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + if (message.balancesInfo) { + obj.balances_info = message.balancesInfo.map(e => e ? BasketBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances_info = message.balancesInfo; + } + return obj; + }, + fromAminoMsg(object) { + return QueryBasketBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketBalancesResponse.decode(message.value); + }, + toProto(message) { + return QueryBasketBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + value: QueryBasketBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceRequest() { + return { + basketDenom: "", + batchDenom: "" + }; +} +export const QueryBasketBalanceRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalanceRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalanceRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketBalanceRequest.decode(message.value); + }, + toProto(message) { + return QueryBasketBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + value: QueryBasketBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceResponse() { + return { + balance: "" + }; +} +export const QueryBasketBalanceResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.balance !== "") { + writer.uint32(10).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalanceResponse(); + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketBalanceResponse.decode(message.value); + }, + toProto(message) { + return QueryBasketBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + value: QueryBasketBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseBasketInfo() { + return { + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: "" + }; +} +export const BasketInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(24).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(48).uint32(message.exponent); + } + if (message.curator !== "") { + writer.uint32(58).string(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.disableAutoRetire = reader.bool(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 6: + message.exponent = reader.uint32(); + break; + case 7: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketInfo(); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketInfo(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object) { + return BasketInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketInfo.decode(message.value); + }, + toProto(message) { + return BasketInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + value: BasketInfo.encode(message).finish() + }; + } +}; +function createBaseBasketBalanceInfo() { + return { + batchDenom: "", + balance: "" + }; +} +export const BasketBalanceInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(18).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketBalanceInfo(); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketBalanceInfo(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return BasketBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketBalanceInfo.decode(message.value); + }, + toProto(message) { + return BasketBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + value: BasketBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeRequest() { + return {}; +} +export const QueryBasketFeeRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketFeeRequest.decode(message.value); + }, + toProto(message) { + return QueryBasketFeeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + value: QueryBasketFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeResponse() { + return { + fee: undefined + }; +} +export const QueryBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBasketFeeResponse.decode(message.value); + }, + toProto(message) { + return QueryBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + value: QueryBasketFeeResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js new file mode 100644 index 00000000..ea612740 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js @@ -0,0 +1,55 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + /* Basket queries one basket by denom. */ + async basket(params) { + const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; + return await this.req.get(endpoint); + } + /* Baskets lists all baskets in the ecocredit module. */ + async baskets(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/baskets`; + return await this.req.get(endpoint, options); + } + /* BasketBalances lists the balance of each credit batch in the basket. */ + async basketBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; + return await this.req.get(endpoint, options); + } + /* BasketBalance queries the balance of a specific credit batch in the basket. */ + async basketBalance(params) { + const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* BasketFee returns the basket creation fee. If not set, a basket creation + fee is not required. + + Since Revision 2 */ + async basketFee(_params = {}) { + const endpoint = `regen/ecocredit/basket/v1/basket-fee`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js new file mode 100644 index 00000000..8824a083 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js @@ -0,0 +1,62 @@ +import { BinaryReader } from "../../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + basket(request) { + const data = QueryBasketRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); + return promise.then(data => QueryBasketResponse.decode(new BinaryReader(data))); + } + baskets(request = { + pagination: undefined + }) { + const data = QueryBasketsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); + return promise.then(data => QueryBasketsResponse.decode(new BinaryReader(data))); + } + basketBalances(request) { + const data = QueryBasketBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); + return promise.then(data => QueryBasketBalancesResponse.decode(new BinaryReader(data))); + } + basketBalance(request) { + const data = QueryBasketBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); + return promise.then(data => QueryBasketBalanceResponse.decode(new BinaryReader(data))); + } + basketFee(request = {}) { + const data = QueryBasketFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); + return promise.then(data => QueryBasketFeeResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + basket(request) { + return queryService.basket(request); + }, + baskets(request) { + return queryService.baskets(request); + }, + basketBalances(request) { + return queryService.basketBalances(request); + }, + basketBalance(request) { + return queryService.basketBalance(request); + }, + basketFee(request) { + return queryService.basketFee(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js new file mode 100644 index 00000000..8a69f026 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js @@ -0,0 +1,390 @@ +//@ts-nocheck +import { DateCriteria } from "./types"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../../helpers"; +function createBaseBasket() { + return { + id: BigInt(0), + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: new Uint8Array() + }; +} +export const Basket = { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(26).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(56).uint32(message.exponent); + } + if (message.curator.length !== 0) { + writer.uint32(66).bytes(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + case 6: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 7: + message.exponent = reader.uint32(); + break; + case 8: + message.curator = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseBasket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = bytesFromBase64(object.curator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator ? base64FromBytes(message.curator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Basket.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Basket.decode(message.value); + }, + toProto(message) { + return Basket.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + value: Basket.encode(message).finish() + }; + } +}; +function createBaseBasketClass() { + return { + basketId: BigInt(0), + classId: "" + }; +} +export const BasketClass = { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + encode(message, writer = BinaryWriter.create()) { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketClass(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketClass(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return BasketClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketClass.decode(message.value); + }, + toProto(message) { + return BasketClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + value: BasketClass.encode(message).finish() + }; + } +}; +function createBaseBasketBalance() { + return { + basketId: BigInt(0), + batchDenom: "", + balance: "", + batchStartDate: undefined + }; +} +export const BasketBalance = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + encode(message, writer = BinaryWriter.create()) { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(26).string(message.balance); + } + if (message.batchStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.batchStartDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.balance = reader.string(); + break; + case 4: + message.batchStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketBalance(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + message.batchStartDate = object.batchStartDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasketBalance(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + if (object.batch_start_date !== undefined && object.batch_start_date !== null) { + message.batchStartDate = fromTimestamp(Timestamp.fromAmino(object.batch_start_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + obj.batch_start_date = message.batchStartDate ? Timestamp.toAmino(toTimestamp(message.batchStartDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BasketBalance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketBalance.decode(message.value); + }, + toProto(message) { + return BasketBalance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + value: BasketBalance.encode(message).finish() + }; + } +}; +function createBaseBasketFee() { + return { + fee: undefined + }; +} +export const BasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + encode(message, writer = BinaryWriter.create()) { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketFee(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasketFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BasketFee.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketFee.decode(message.value); + }, + toProto(message) { + return BasketFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + value: BasketFee.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js new file mode 100644 index 00000000..f28756f4 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: "regen.basket/MsgCreate", + toAmino: MsgCreate.toAmino, + fromAmino: MsgCreate.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: "regen.basket/MsgPut", + toAmino: MsgPut.toAmino, + fromAmino: MsgPut.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: "regen.basket/MsgTake", + toAmino: MsgTake.toAmino, + fromAmino: MsgTake.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: "regen.basket/MsgUpdateBasketFee", + toAmino: MsgUpdateBasketFee.toAmino, + fromAmino: MsgUpdateBasketFee.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: "regen.basket/MsgUpdateCurator", + toAmino: MsgUpdateCurator.toAmino, + fromAmino: MsgUpdateCurator.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: "regen.basket/MsgUpdateDateCriteria", + toAmino: MsgUpdateDateCriteria.toAmino, + fromAmino: MsgUpdateDateCriteria.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js new file mode 100644 index 00000000..82d48bdb --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js @@ -0,0 +1,1021 @@ +//@ts-nocheck +import { DateCriteria, BasketCredit } from "./types"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseMsgCreate() { + return { + curator: "", + name: "", + description: "", + exponent: 0, + disableAutoRetire: false, + creditTypeAbbrev: "", + allowedClasses: [], + dateCriteria: undefined, + fee: [] + }; +} +export const MsgCreate = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + encode(message, writer = BinaryWriter.create()) { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.description !== "") { + writer.uint32(26).string(message.description); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(50).string(message.creditTypeAbbrev); + } + for (const v of message.allowedClasses) { + writer.uint32(58).string(v); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.fee) { + Coin.encode(v, writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.creditTypeAbbrev = reader.string(); + break; + case 7: + message.allowedClasses.push(reader.string()); + break; + case 8: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 9: + message.fee.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreate(); + message.curator = object.curator ?? ""; + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.exponent = object.exponent ?? 0; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.allowedClasses = object.allowedClasses?.map(e => e) || []; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.fee = object.fee?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreate(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + message.allowedClasses = object.allowed_classes?.map(e => e) || []; + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + message.fee = object.fee?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + if (message.allowedClasses) { + obj.allowed_classes = message.allowedClasses.map(e => e); + } + else { + obj.allowed_classes = message.allowedClasses; + } + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + if (message.fee) { + obj.fee = message.fee.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.fee = message.fee; + } + return obj; + }, + fromAminoMsg(object) { + return MsgCreate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgCreate", + value: MsgCreate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreate.decode(message.value); + }, + toProto(message) { + return MsgCreate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.encode(message).finish() + }; + } +}; +function createBaseMsgCreateResponse() { + return { + basketDenom: "" + }; +} +export const MsgCreateResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateResponse(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateResponse(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + value: MsgCreateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgPut() { + return { + owner: "", + basketDenom: "", + credits: [] + }; +} +export const MsgPut = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgPut.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgPut", + value: MsgPut.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgPut.decode(message.value); + }, + toProto(message) { + return MsgPut.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.encode(message).finish() + }; + } +}; +function createBaseMsgPutResponse() { + return { + amountReceived: "" + }; +} +export const MsgPutResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.amountReceived !== "") { + writer.uint32(10).string(message.amountReceived); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPutResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amountReceived = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgPutResponse(); + message.amountReceived = object.amountReceived ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgPutResponse(); + if (object.amount_received !== undefined && object.amount_received !== null) { + message.amountReceived = object.amount_received; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; + return obj; + }, + fromAminoMsg(object) { + return MsgPutResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgPutResponse.decode(message.value); + }, + toProto(message) { + return MsgPutResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + value: MsgPutResponse.encode(message).finish() + }; + } +}; +function createBaseMsgTake() { + return { + owner: "", + basketDenom: "", + amount: "", + retirementLocation: "", + retireOnTake: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgTake = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + if (message.retireOnTake === true) { + writer.uint32(40).bool(message.retireOnTake); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + case 5: + message.retireOnTake = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.amount = object.amount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + message.retireOnTake = object.retireOnTake ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + if (object.retire_on_take !== undefined && object.retire_on_take !== null) { + message.retireOnTake = object.retire_on_take; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return MsgTake.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgTake", + value: MsgTake.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgTake.decode(message.value); + }, + toProto(message) { + return MsgTake.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.encode(message).finish() + }; + } +}; +function createBaseMsgTakeResponse() { + return { + credits: [] + }; +} +export const MsgTakeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.credits) { + BasketCredit.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTakeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgTakeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgTakeResponse.decode(message.value); + }, + toProto(message) { + return MsgTakeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + value: MsgTakeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFee() { + return { + authority: "", + fee: undefined + }; +} +export const MsgUpdateBasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateBasketFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateBasketFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateBasketFee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateBasketFee", + value: MsgUpdateBasketFee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateBasketFee.decode(message.value); + }, + toProto(message) { + return MsgUpdateBasketFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFeeResponse() { + return {}; +} +export const MsgUpdateBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateBasketFeeResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + value: MsgUpdateBasketFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCurator() { + return { + curator: "", + denom: "", + newCurator: "" + }; +} +export const MsgUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + encode(message, writer = BinaryWriter.create()) { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newCurator !== "") { + writer.uint32(26).string(message.newCurator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 3: + message.newCurator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateCurator(); + message.curator = object.curator ?? ""; + message.denom = object.denom ?? ""; + message.newCurator = object.newCurator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateCurator(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_curator !== undefined && object.new_curator !== null) { + message.newCurator = object.new_curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateCurator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateCurator", + value: MsgUpdateCurator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateCurator.decode(message.value); + }, + toProto(message) { + return MsgUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCuratorResponse() { + return {}; +} +export const MsgUpdateCuratorResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCuratorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateCuratorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateCuratorResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateCuratorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + value: MsgUpdateCuratorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteria() { + return { + authority: "", + denom: "", + newDateCriteria: undefined + }; +} +export const MsgUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newDateCriteria !== undefined) { + DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 8: + message.newDateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateDateCriteria(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? DateCriteria.fromPartial(object.newDateCriteria) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateDateCriteria(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { + message.newDateCriteria = DateCriteria.fromAmino(object.new_date_criteria); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_date_criteria = message.newDateCriteria ? DateCriteria.toAmino(message.newDateCriteria) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateDateCriteria.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateDateCriteria.decode(message.value); + }, + toProto(message) { + return MsgUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteriaResponse() { + return {}; +} +export const MsgUpdateDateCriteriaResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteriaResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateDateCriteriaResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateDateCriteriaResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateDateCriteriaResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + value: MsgUpdateDateCriteriaResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js new file mode 100644 index 00000000..b7e95b01 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js @@ -0,0 +1,123 @@ +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export const registry = [["/regen.ecocredit.basket.v1.MsgCreate", MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", MsgUpdateDateCriteria]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.encode(value).finish() + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.encode(value).finish() + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.encode(value).finish() + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.encode(value).finish() + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.encode(value).finish() + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.encode(value).finish() + }; + } + }, + withTypeUrl: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value + }; + } + }, + fromPartial: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.fromPartial(value) + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.fromPartial(value) + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.fromPartial(value) + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.fromPartial(value) + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.fromPartial(value) + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js new file mode 100644 index 00000000..f6e086a7 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js @@ -0,0 +1,44 @@ +import { BinaryReader } from "../../../../binary"; +import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.create = this.create.bind(this); + this.put = this.put.bind(this); + this.take = this.take.bind(this); + this.updateBasketFee = this.updateBasketFee.bind(this); + this.updateCurator = this.updateCurator.bind(this); + this.updateDateCriteria = this.updateDateCriteria.bind(this); + } + create(request) { + const data = MsgCreate.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); + return promise.then(data => MsgCreateResponse.decode(new BinaryReader(data))); + } + put(request) { + const data = MsgPut.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); + return promise.then(data => MsgPutResponse.decode(new BinaryReader(data))); + } + take(request) { + const data = MsgTake.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); + return promise.then(data => MsgTakeResponse.decode(new BinaryReader(data))); + } + updateBasketFee(request) { + const data = MsgUpdateBasketFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); + return promise.then(data => MsgUpdateBasketFeeResponse.decode(new BinaryReader(data))); + } + updateCurator(request) { + const data = MsgUpdateCurator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); + return promise.then(data => MsgUpdateCuratorResponse.decode(new BinaryReader(data))); + } + updateDateCriteria(request) { + const data = MsgUpdateDateCriteria.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); + return promise.then(data => MsgUpdateDateCriteriaResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js new file mode 100644 index 00000000..dd0644d3 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js @@ -0,0 +1,167 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { Duration } from "../../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +function createBaseBasketCredit() { + return { + batchDenom: "", + amount: "" + }; +} +export const BasketCredit = { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketCredit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketCredit(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketCredit(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return BasketCredit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BasketCredit.decode(message.value); + }, + toProto(message) { + return BasketCredit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + value: BasketCredit.encode(message).finish() + }; + } +}; +function createBaseDateCriteria() { + return { + minStartDate: undefined, + startDateWindow: undefined, + yearsInThePast: 0 + }; +} +export const DateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + encode(message, writer = BinaryWriter.create()) { + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(10).fork()).ldelim(); + } + if (message.startDateWindow !== undefined) { + Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); + } + if (message.yearsInThePast !== 0) { + writer.uint32(24).uint32(message.yearsInThePast); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.startDateWindow = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.yearsInThePast = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDateCriteria(); + message.minStartDate = object.minStartDate ?? undefined; + message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? Duration.fromPartial(object.startDateWindow) : undefined; + message.yearsInThePast = object.yearsInThePast ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseDateCriteria(); + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.start_date_window !== undefined && object.start_date_window !== null) { + message.startDateWindow = Duration.fromAmino(object.start_date_window); + } + if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { + message.yearsInThePast = object.years_in_the_past; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.start_date_window = message.startDateWindow ? Duration.toAmino(message.startDateWindow) : undefined; + obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; + return obj; + }, + fromAminoMsg(object) { + return DateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DateCriteria.decode(message.value); + }, + toProto(message) { + return DateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + value: DateCriteria.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js new file mode 100644 index 00000000..176c33dc --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js @@ -0,0 +1,380 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseEventSell() { + return { + sellOrderId: BigInt(0) + }; +} +export const EventSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSell(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventSell(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventSell.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventSell.decode(message.value); + }, + toProto(message) { + return EventSell.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + value: EventSell.encode(message).finish() + }; + } +}; +function createBaseEventBuyDirect() { + return { + sellOrderId: BigInt(0) + }; +} +export const EventBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBuyDirect(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventBuyDirect(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventBuyDirect.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventBuyDirect.decode(message.value); + }, + toProto(message) { + return EventBuyDirect.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + value: EventBuyDirect.encode(message).finish() + }; + } +}; +function createBaseEventUpdateSellOrder() { + return { + sellOrderId: BigInt(0) + }; +} +export const EventUpdateSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateSellOrder.decode(message.value); + }, + toProto(message) { + return EventUpdateSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + value: EventUpdateSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventCancelSellOrder() { + return { + sellOrderId: BigInt(0) + }; +} +export const EventCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancelSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventCancelSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventCancelSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCancelSellOrder.decode(message.value); + }, + toProto(message) { + return EventCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + value: EventCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventAllowDenom() { + return { + denom: "" + }; +} +export const EventAllowDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAllowDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAllowDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAllowDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return EventAllowDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventAllowDenom.decode(message.value); + }, + toProto(message) { + return EventAllowDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + value: EventAllowDenom.encode(message).finish() + }; + } +}; +function createBaseEventRemoveAllowedDenom() { + return { + denom: "" + }; +} +export const EventRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRemoveAllowedDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRemoveAllowedDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return EventRemoveAllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventRemoveAllowedDenom.decode(message.value); + }, + toProto(message) { + return EventRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + value: EventRemoveAllowedDenom.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js new file mode 100644 index 00000000..39d46bce --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js @@ -0,0 +1,867 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { AllowedDenom } from "./state"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +function createBaseQuerySellOrderRequest() { + return { + sellOrderId: BigInt(0) + }; +} +export const QuerySellOrderRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrderRequest(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrderRequest(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrderRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrderRequest.decode(message.value); + }, + toProto(message) { + return QuerySellOrderRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + value: QuerySellOrderRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrderResponse() { + return { + sellOrder: undefined + }; +} +export const QuerySellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrder !== undefined) { + SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrder = SellOrderInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrderResponse(); + message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? SellOrderInfo.fromPartial(object.sellOrder) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrderResponse(); + if (object.sell_order !== undefined && object.sell_order !== null) { + message.sellOrder = SellOrderInfo.fromAmino(object.sell_order); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order = message.sellOrder ? SellOrderInfo.toAmino(message.sellOrder) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrderResponse.decode(message.value); + }, + toProto(message) { + return QuerySellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + value: QuerySellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersRequest() { + return { + pagination: undefined + }; +} +export const QuerySellOrdersRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersRequest.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + value: QuerySellOrdersRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersResponse.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + value: QuerySellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchRequest() { + return { + batchDenom: "", + pagination: undefined + }; +} +export const QuerySellOrdersByBatchRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersByBatchRequest.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + value: QuerySellOrdersByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersByBatchResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersByBatchResponse.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + value: QuerySellOrdersByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerRequest() { + return { + seller: "", + pagination: undefined + }; +} +export const QuerySellOrdersBySellerRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersBySellerRequest(); + message.seller = object.seller ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersBySellerRequest(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersBySellerRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersBySellerRequest.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersBySellerRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + value: QuerySellOrdersBySellerRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersBySellerResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QuerySellOrdersBySellerResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySellOrdersBySellerResponse.decode(message.value); + }, + toProto(message) { + return QuerySellOrdersBySellerResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + value: QuerySellOrdersBySellerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsRequest() { + return { + pagination: undefined + }; +} +export const QueryAllowedDenomsRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedDenomsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedDenomsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedDenomsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedDenomsRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowedDenomsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + value: QueryAllowedDenomsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsResponse() { + return { + allowedDenoms: [], + pagination: undefined + }; +} +export const QueryAllowedDenomsResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowedDenoms) { + AllowedDenom.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); + } + else { + obj.allowed_denoms = message.allowedDenoms; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedDenomsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedDenomsResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowedDenomsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + value: QueryAllowedDenomsResponse.encode(message).finish() + }; + } +}; +function createBaseSellOrderInfo() { + return { + id: BigInt(0), + seller: "", + batchDenom: "", + quantity: "", + askDenom: "", + askAmount: "", + disableAutoRetire: false, + expiration: undefined + }; +} +export const SellOrderInfo = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller !== "") { + writer.uint32(18).string(message.seller); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.askDenom !== "") { + writer.uint32(42).string(message.askDenom); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrderInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.askDenom = reader.string(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSellOrderInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askDenom = object.askDenom ?? ""; + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSellOrderInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_denom !== undefined && object.ask_denom !== null) { + message.askDenom = object.ask_denom; + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SellOrderInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SellOrderInfo.decode(message.value); + }, + toProto(message) { + return SellOrderInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + value: SellOrderInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js new file mode 100644 index 00000000..a44a329b --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js @@ -0,0 +1,69 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + /* SellOrder queries a sell order by its unique identifier. */ + async sellOrder(params) { + const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; + return await this.req.get(endpoint); + } + /* SellOrders queries a paginated list of all sell orders. */ + async sellOrders(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; + return await this.req.get(endpoint, options); + } + /* SellOrdersByBatch queries a paginated list of all sell orders based on + the batch denom of the credits being sold. */ + async sellOrdersByBatch(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* SellOrdersBySeller queries a paginated list of all sell orders based on the + account address of the seller. */ + async sellOrdersBySeller(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; + return await this.req.get(endpoint, options); + } + /* AllowedDenoms queries a paginated list of all bank denoms allowed to be + used in the marketplace. */ + async allowedDenoms(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; + return await this.req.get(endpoint, options); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js new file mode 100644 index 00000000..680f45ca --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js @@ -0,0 +1,64 @@ +import { BinaryReader } from "../../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + sellOrder(request) { + const data = QuerySellOrderRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); + return promise.then(data => QuerySellOrderResponse.decode(new BinaryReader(data))); + } + sellOrders(request = { + pagination: undefined + }) { + const data = QuerySellOrdersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); + return promise.then(data => QuerySellOrdersResponse.decode(new BinaryReader(data))); + } + sellOrdersByBatch(request) { + const data = QuerySellOrdersByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); + return promise.then(data => QuerySellOrdersByBatchResponse.decode(new BinaryReader(data))); + } + sellOrdersBySeller(request) { + const data = QuerySellOrdersBySellerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); + return promise.then(data => QuerySellOrdersBySellerResponse.decode(new BinaryReader(data))); + } + allowedDenoms(request = { + pagination: undefined + }) { + const data = QueryAllowedDenomsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); + return promise.then(data => QueryAllowedDenomsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + sellOrder(request) { + return queryService.sellOrder(request); + }, + sellOrders(request) { + return queryService.sellOrders(request); + }, + sellOrdersByBatch(request) { + return queryService.sellOrdersByBatch(request); + }, + sellOrdersBySeller(request) { + return queryService.sellOrdersBySeller(request); + }, + allowedDenoms(request) { + return queryService.allowedDenoms(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js new file mode 100644 index 00000000..49ec581f --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js @@ -0,0 +1,349 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers"; +function createBaseSellOrder() { + return { + id: BigInt(0), + seller: new Uint8Array(), + batchKey: BigInt(0), + quantity: "", + marketId: BigInt(0), + askAmount: "", + disableAutoRetire: false, + expiration: undefined, + maker: false + }; +} +export const SellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller.length !== 0) { + writer.uint32(18).bytes(message.seller); + } + if (message.batchKey !== BigInt(0)) { + writer.uint32(24).uint64(message.batchKey); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.marketId !== BigInt(0)) { + writer.uint32(40).uint64(message.marketId); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); + } + if (message.maker === true) { + writer.uint32(80).bool(message.maker); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.bytes(); + break; + case 3: + message.batchKey = reader.uint64(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.marketId = reader.uint64(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.maker = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSellOrder(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? new Uint8Array(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + message.maker = object.maker ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSellOrder(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = bytesFromBase64(object.seller); + } + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + if (object.maker !== undefined && object.maker !== null) { + message.maker = object.maker; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller ? base64FromBytes(message.seller) : undefined; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + obj.maker = message.maker === false ? undefined : message.maker; + return obj; + }, + fromAminoMsg(object) { + return SellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SellOrder.decode(message.value); + }, + toProto(message) { + return SellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + value: SellOrder.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom() { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const AllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AllowedDenom.decode(message.value); + }, + toProto(message) { + return AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + value: AllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMarket() { + return { + id: BigInt(0), + creditTypeAbbrev: "", + bankDenom: "", + precisionModifier: 0 + }; +} +export const Market = { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(18).string(message.creditTypeAbbrev); + } + if (message.bankDenom !== "") { + writer.uint32(26).string(message.bankDenom); + } + if (message.precisionModifier !== 0) { + writer.uint32(32).uint32(message.precisionModifier); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMarket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.creditTypeAbbrev = reader.string(); + break; + case 3: + message.bankDenom = reader.string(); + break; + case 4: + message.precisionModifier = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMarket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.precisionModifier = object.precisionModifier ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMarket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.precision_modifier !== undefined && object.precision_modifier !== null) { + message.precisionModifier = object.precision_modifier; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; + return obj; + }, + fromAminoMsg(object) { + return Market.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Market.decode(message.value); + }, + toProto(message) { + return Market.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + value: Market.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js new file mode 100644 index 00000000..b996d951 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: "regen.marketplace/MsgSell", + toAmino: MsgSell.toAmino, + fromAmino: MsgSell.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: "regen.marketplace/MsgUpdateSellOrders", + toAmino: MsgUpdateSellOrders.toAmino, + fromAmino: MsgUpdateSellOrders.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: "regen.marketplace/MsgCancelSellOrder", + toAmino: MsgCancelSellOrder.toAmino, + fromAmino: MsgCancelSellOrder.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: "regen.marketplace/MsgBuyDirect", + toAmino: MsgBuyDirect.toAmino, + fromAmino: MsgBuyDirect.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: "regen.marketplace/MsgAddAllowedDenom", + toAmino: MsgAddAllowedDenom.toAmino, + fromAmino: MsgAddAllowedDenom.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: "regen.marketplace/MsgRemoveAllowedDenom", + toAmino: MsgRemoveAllowedDenom.toAmino, + fromAmino: MsgRemoveAllowedDenom.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js new file mode 100644 index 00000000..bc08c1de --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js @@ -0,0 +1,1195 @@ +//@ts-nocheck +import { Coin } from "../../../../cosmos/base/v1beta1/coin"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +function createBaseMsgSell() { + return { + seller: "", + orders: [] + }; +} +export const MsgSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + encode(message, writer = BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.orders) { + MsgSell_Order.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.orders.push(MsgSell_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSell(); + message.seller = object.seller ?? ""; + message.orders = object.orders?.map(e => MsgSell_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSell(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.orders = object.orders?.map(e => MsgSell_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.orders) { + obj.orders = message.orders.map(e => e ? MsgSell_Order.toAmino(e) : undefined); + } + else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object) { + return MsgSell.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgSell", + value: MsgSell.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSell.decode(message.value); + }, + toProto(message) { + return MsgSell.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.encode(message).finish() + }; + } +}; +function createBaseMsgSell_Order() { + return { + batchDenom: "", + quantity: "", + askPrice: undefined, + disableAutoRetire: false, + expiration: undefined + }; +} +export const MsgSell_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(18).string(message.quantity); + } + if (message.askPrice !== undefined) { + Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.quantity = reader.string(); + break; + case 3: + message.askPrice = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSell_Order(); + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? Coin.fromPartial(object.askPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSell_Order(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = Coin.fromAmino(object.ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_price = message.askPrice ? Coin.toAmino(message.askPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgSell_Order.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSell_Order.decode(message.value); + }, + toProto(message) { + return MsgSell_Order.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: MsgSell_Order.encode(message).finish() + }; + } +}; +function createBaseMsgSellResponse() { + return { + sellOrderIds: [] + }; +} +export const MsgSellResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + encode(message, writer = BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.sellOrderIds) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSellResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.sellOrderIds.push(reader.uint64()); + } + } + else { + message.sellOrderIds.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrderIds) { + obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); + } + else { + obj.sell_order_ids = message.sellOrderIds; + } + return obj; + }, + fromAminoMsg(object) { + return MsgSellResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSellResponse.decode(message.value); + }, + toProto(message) { + return MsgSellResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + value: MsgSellResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders() { + return { + seller: "", + updates: [] + }; +} +export const MsgUpdateSellOrders = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + encode(message, writer = BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.updates) { + MsgUpdateSellOrders_Update.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.updates.push(MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateSellOrders(); + message.seller = object.seller ?? ""; + message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateSellOrders(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.updates) { + obj.updates = message.updates.map(e => e ? MsgUpdateSellOrders_Update.toAmino(e) : undefined); + } + else { + obj.updates = message.updates; + } + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateSellOrders.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgUpdateSellOrders", + value: MsgUpdateSellOrders.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateSellOrders.decode(message.value); + }, + toProto(message) { + return MsgUpdateSellOrders.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders_Update() { + return { + sellOrderId: BigInt(0), + newQuantity: "", + newAskPrice: undefined, + disableAutoRetire: false, + newExpiration: undefined + }; +} +export const MsgUpdateSellOrders_Update = { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + if (message.newQuantity !== "") { + writer.uint32(18).string(message.newQuantity); + } + if (message.newAskPrice !== undefined) { + Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.newExpiration !== undefined) { + Timestamp.encode(toTimestamp(message.newExpiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders_Update(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + case 2: + message.newQuantity = reader.string(); + break; + case 3: + message.newAskPrice = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.newExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateSellOrders_Update(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.newQuantity = object.newQuantity ?? ""; + message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? Coin.fromPartial(object.newAskPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.newExpiration = object.newExpiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateSellOrders_Update(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.new_quantity !== undefined && object.new_quantity !== null) { + message.newQuantity = object.new_quantity; + } + if (object.new_ask_price !== undefined && object.new_ask_price !== null) { + message.newAskPrice = Coin.fromAmino(object.new_ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.new_expiration !== undefined && object.new_expiration !== null) { + message.newExpiration = fromTimestamp(Timestamp.fromAmino(object.new_expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; + obj.new_ask_price = message.newAskPrice ? Coin.toAmino(message.newAskPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.new_expiration = message.newExpiration ? Timestamp.toAmino(toTimestamp(message.newExpiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateSellOrders_Update.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateSellOrders_Update.decode(message.value); + }, + toProto(message) { + return MsgUpdateSellOrders_Update.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + value: MsgUpdateSellOrders_Update.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrdersResponse() { + return {}; +} +export const MsgUpdateSellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateSellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateSellOrdersResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateSellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + value: MsgUpdateSellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrder() { + return { + seller: "", + sellOrderId: BigInt(0) + }; +} +export const MsgCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + encode(message, writer = BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelSellOrder(); + message.seller = object.seller ?? ""; + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelSellOrder(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelSellOrder.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgCancelSellOrder", + value: MsgCancelSellOrder.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancelSellOrder.decode(message.value); + }, + toProto(message) { + return MsgCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrderResponse() { + return {}; +} +export const MsgCancelSellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelSellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCancelSellOrderResponse.decode(message.value); + }, + toProto(message) { + return MsgCancelSellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + value: MsgCancelSellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect() { + return { + buyer: "", + orders: [] + }; +} +export const MsgBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + encode(message, writer = BinaryWriter.create()) { + if (message.buyer !== "") { + writer.uint32(10).string(message.buyer); + } + for (const v of message.orders) { + MsgBuyDirect_Order.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyer = reader.string(); + break; + case 2: + message.orders.push(MsgBuyDirect_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBuyDirect(); + message.buyer = object.buyer ?? ""; + message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBuyDirect(); + if (object.buyer !== undefined && object.buyer !== null) { + message.buyer = object.buyer; + } + message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.buyer = message.buyer === "" ? undefined : message.buyer; + if (message.orders) { + obj.orders = message.orders.map(e => e ? MsgBuyDirect_Order.toAmino(e) : undefined); + } + else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object) { + return MsgBuyDirect.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgBuyDirect", + value: MsgBuyDirect.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgBuyDirect.decode(message.value); + }, + toProto(message) { + return MsgBuyDirect.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect_Order() { + return { + sellOrderId: BigInt(0), + quantity: "", + bidPrice: undefined, + disableAutoRetire: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgBuyDirect_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message, writer = BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + if (message.quantity !== "") { + writer.uint32(26).string(message.quantity); + } + if (message.bidPrice !== undefined) { + Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.sellOrderId = reader.uint64(); + break; + case 3: + message.quantity = reader.string(); + break; + case 4: + message.bidPrice = Coin.decode(reader, reader.uint32()); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBuyDirect_Order(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? Coin.fromPartial(object.bidPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBuyDirect_Order(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.bid_price !== undefined && object.bid_price !== null) { + message.bidPrice = Coin.fromAmino(object.bid_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.bid_price = message.bidPrice ? Coin.toAmino(message.bidPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return MsgBuyDirect_Order.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBuyDirect_Order.decode(message.value); + }, + toProto(message) { + return MsgBuyDirect_Order.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: MsgBuyDirect_Order.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirectResponse() { + return {}; +} +export const MsgBuyDirectResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgBuyDirectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBuyDirectResponse.decode(message.value); + }, + toProto(message) { + return MsgBuyDirectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + value: MsgBuyDirectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenom() { + return { + authority: "", + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const MsgAddAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.bankDenom !== "") { + writer.uint32(18).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(26).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.bankDenom = reader.string(); + break; + case 3: + message.displayDenom = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddAllowedDenom(); + message.authority = object.authority ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return MsgAddAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgAddAllowedDenom", + value: MsgAddAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAddAllowedDenom.decode(message.value); + }, + toProto(message) { + return MsgAddAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenomResponse() { + return {}; +} +export const MsgAddAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgAddAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAddAllowedDenomResponse.decode(message.value); + }, + toProto(message) { + return MsgAddAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + value: MsgAddAllowedDenomResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenom() { + return { + authority: "", + denom: "" + }; +} +export const MsgRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveAllowedDenom(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRemoveAllowedDenom.decode(message.value); + }, + toProto(message) { + return MsgRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenomResponse() { + return {}; +} +export const MsgRemoveAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRemoveAllowedDenomResponse.decode(message.value); + }, + toProto(message) { + return MsgRemoveAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + value: MsgRemoveAllowedDenomResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js new file mode 100644 index 00000000..4798e20f --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js @@ -0,0 +1,123 @@ +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export const registry = [["/regen.ecocredit.marketplace.v1.MsgSell", MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", MsgRemoveAllowedDenom]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.encode(value).finish() + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.encode(value).finish() + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.encode(value).finish() + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.encode(value).finish() + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.encode(value).finish() + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.encode(value).finish() + }; + } + }, + withTypeUrl: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value + }; + } + }, + fromPartial: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.fromPartial(value) + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.fromPartial(value) + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.fromPartial(value) + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.fromPartial(value) + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.fromPartial(value) + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js new file mode 100644 index 00000000..ff0ca370 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js @@ -0,0 +1,44 @@ +import { BinaryReader } from "../../../../binary"; +import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.sell = this.sell.bind(this); + this.updateSellOrders = this.updateSellOrders.bind(this); + this.cancelSellOrder = this.cancelSellOrder.bind(this); + this.buyDirect = this.buyDirect.bind(this); + this.addAllowedDenom = this.addAllowedDenom.bind(this); + this.removeAllowedDenom = this.removeAllowedDenom.bind(this); + } + sell(request) { + const data = MsgSell.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); + return promise.then(data => MsgSellResponse.decode(new BinaryReader(data))); + } + updateSellOrders(request) { + const data = MsgUpdateSellOrders.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); + return promise.then(data => MsgUpdateSellOrdersResponse.decode(new BinaryReader(data))); + } + cancelSellOrder(request) { + const data = MsgCancelSellOrder.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); + return promise.then(data => MsgCancelSellOrderResponse.decode(new BinaryReader(data))); + } + buyDirect(request) { + const data = MsgBuyDirect.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); + return promise.then(data => MsgBuyDirectResponse.decode(new BinaryReader(data))); + } + addAllowedDenom(request) { + const data = MsgAddAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); + return promise.then(data => MsgAddAllowedDenomResponse.decode(new BinaryReader(data))); + } + removeAllowedDenom(request) { + const data = MsgRemoveAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); + return promise.then(data => MsgRemoveAllowedDenomResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js new file mode 100644 index 00000000..d11a2083 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js @@ -0,0 +1,90 @@ +//@ts-nocheck +import { AllowedDenom } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +function createBaseAllowDenomProposal() { + return { + title: "", + description: "", + denom: undefined + }; +} +export const AllowDenomProposal = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.denom !== undefined) { + AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowDenomProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.denom = AllowedDenom.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowDenomProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.denom = object.denom !== undefined && object.denom !== null ? AllowedDenom.fromPartial(object.denom) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAllowDenomProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = AllowedDenom.fromAmino(object.denom); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.denom = message.denom ? AllowedDenom.toAmino(message.denom) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AllowDenomProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AllowDenomProposal.decode(message.value); + }, + toProto(message) { + return AllowDenomProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + value: AllowDenomProposal.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js b/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js new file mode 100644 index 00000000..439ed4d1 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js @@ -0,0 +1,400 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +function createBaseBuyOrderSellOrderMatch() { + return { + marketId: BigInt(0), + buyOrderId: BigInt(0), + sellOrderId: BigInt(0), + bidPriceComplement: 0, + askPrice: 0 + }; +} +export const BuyOrderSellOrderMatch = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + encode(message, writer = BinaryWriter.create()) { + if (message.marketId !== BigInt(0)) { + writer.uint32(8).uint64(message.marketId); + } + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.buyOrderId); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(24).uint64(message.sellOrderId); + } + if (message.bidPriceComplement !== 0) { + writer.uint32(37).fixed32(message.bidPriceComplement); + } + if (message.askPrice !== 0) { + writer.uint32(45).fixed32(message.askPrice); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderSellOrderMatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.marketId = reader.uint64(); + break; + case 2: + message.buyOrderId = reader.uint64(); + break; + case 3: + message.sellOrderId = reader.uint64(); + break; + case 4: + message.bidPriceComplement = reader.fixed32(); + break; + case 5: + message.askPrice = reader.fixed32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderSellOrderMatch(); + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.bidPriceComplement = object.bidPriceComplement ?? 0; + message.askPrice = object.askPrice ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderSellOrderMatch(); + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { + message.bidPriceComplement = object.bid_price_complement; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = object.ask_price; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; + obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; + return obj; + }, + fromAminoMsg(object) { + return BuyOrderSellOrderMatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BuyOrderSellOrderMatch.decode(message.value); + }, + toProto(message) { + return BuyOrderSellOrderMatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + value: BuyOrderSellOrderMatch.encode(message).finish() + }; + } +}; +function createBaseBuyOrderClassSelector() { + return { + buyOrderId: BigInt(0), + classId: BigInt(0), + projectLocation: "", + minStartDate: undefined, + maxEndDate: undefined + }; +} +export const BuyOrderClassSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + encode(message, writer = BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.classId !== BigInt(0)) { + writer.uint32(16).uint64(message.classId); + } + if (message.projectLocation !== "") { + writer.uint32(26).string(message.projectLocation); + } + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(34).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderClassSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.classId = reader.uint64(); + break; + case 3: + message.projectLocation = reader.string(); + break; + case 4: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderClassSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); + message.projectLocation = object.projectLocation ?? ""; + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderClassSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = BigInt(object.class_id); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BuyOrderClassSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BuyOrderClassSelector.decode(message.value); + }, + toProto(message) { + return BuyOrderClassSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + value: BuyOrderClassSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderProjectSelector() { + return { + buyOrderId: BigInt(0), + projectId: BigInt(0), + minStartDate: undefined, + maxEndDate: undefined + }; +} +export const BuyOrderProjectSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + encode(message, writer = BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.projectId !== BigInt(0)) { + writer.uint32(16).uint64(message.projectId); + } + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(26).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderProjectSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.projectId = reader.uint64(); + break; + case 3: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderProjectSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderProjectSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = BigInt(object.project_id); + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BuyOrderProjectSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BuyOrderProjectSelector.decode(message.value); + }, + toProto(message) { + return BuyOrderProjectSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + value: BuyOrderProjectSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderBatchSelector() { + return { + buyOrderId: BigInt(0), + batchId: BigInt(0) + }; +} +export const BuyOrderBatchSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + encode(message, writer = BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.batchId !== BigInt(0)) { + writer.uint32(16).uint64(message.batchId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderBatchSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.batchId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderBatchSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderBatchSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.batch_id !== undefined && object.batch_id !== null) { + message.batchId = BigInt(object.batch_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BuyOrderBatchSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BuyOrderBatchSelector.decode(message.value); + }, + toProto(message) { + return BuyOrderBatchSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + value: BuyOrderBatchSelector.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/events.js b/packages/api/dist/esm/regen/ecocredit/v1/events.js new file mode 100644 index 00000000..c4b46873 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/events.js @@ -0,0 +1,1413 @@ +//@ts-nocheck +import { OriginTx } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseEventCreateClass() { + return { + classId: "" + }; +} +export const EventCreateClass = { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreateClass.decode(message.value); + }, + toProto(message) { + return EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + value: EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateProject() { + return { + projectId: "" + }; +} +export const EventCreateProject = { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateProject(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateProject(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return EventCreateProject.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreateProject.decode(message.value); + }, + toProto(message) { + return EventCreateProject.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + value: EventCreateProject.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch() { + return { + batchDenom: "", + originTx: undefined + }; +} +export const EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateBatch(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreateBatch.decode(message.value); + }, + toProto(message) { + return EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + value: EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventMint() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +export const EventMint = { + typeUrl: "/regen.ecocredit.v1.EventMint", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMint(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventMint(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventMint(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return EventMint.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventMint.decode(message.value); + }, + toProto(message) { + return EventMint.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventMint", + value: EventMint.encode(message).finish() + }; + } +}; +function createBaseEventMintBatchCredits() { + return { + batchDenom: "", + originTx: undefined + }; +} +export const EventMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventMintBatchCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventMintBatchCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventMintBatchCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventMintBatchCredits.decode(message.value); + }, + toProto(message) { + return EventMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + value: EventMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseEventTransfer() { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +export const EventTransfer = { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + encode(message, writer = BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventTransfer(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventTransfer(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return EventTransfer.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventTransfer.decode(message.value); + }, + toProto(message) { + return EventTransfer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + value: EventTransfer.encode(message).finish() + }; + } +}; +function createBaseEventRetire() { + return { + owner: "", + batchDenom: "", + amount: "", + jurisdiction: "", + reason: "" + }; +} +export const EventRetire = { + typeUrl: "/regen.ecocredit.v1.EventRetire", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(42).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRetire(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventRetire.decode(message.value); + }, + toProto(message) { + return EventRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventRetire", + value: EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel() { + return { + owner: "", + batchDenom: "", + amount: "", + reason: "" + }; +} +export const EventCancel = { + typeUrl: "/regen.ecocredit.v1.EventCancel", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancel(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCancel.decode(message.value); + }, + toProto(message) { + return EventCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCancel", + value: EventCancel.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassAdmin() { + return { + classId: "" + }; +} +export const EventUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassAdmin(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassAdmin(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return EventUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + value: EventUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassIssuers() { + return { + classId: "" + }; +} +export const EventUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassIssuers(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassIssuers(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return EventUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + value: EventUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassMetadata() { + return { + classId: "" + }; +} +export const EventUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassMetadata(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassMetadata(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return EventUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + value: EventUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectAdmin() { + return { + projectId: "" + }; +} +export const EventUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateProjectAdmin(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateProjectAdmin(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateProjectAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateProjectAdmin.decode(message.value); + }, + toProto(message) { + return EventUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + value: EventUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectMetadata() { + return { + projectId: "" + }; +} +export const EventUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateProjectMetadata(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateProjectMetadata(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateProjectMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateProjectMetadata.decode(message.value); + }, + toProto(message) { + return EventUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + value: EventUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateBatchMetadata() { + return { + batchDenom: "" + }; +} +export const EventUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateBatchMetadata(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateBatchMetadata(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return EventUpdateBatchMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventUpdateBatchMetadata.decode(message.value); + }, + toProto(message) { + return EventUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + value: EventUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseEventSealBatch() { + return { + batchDenom: "" + }; +} +export const EventSealBatch = { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSealBatch(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventSealBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return EventSealBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventSealBatch.decode(message.value); + }, + toProto(message) { + return EventSealBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + value: EventSealBatch.encode(message).finish() + }; + } +}; +function createBaseEventAddCreditType() { + return { + abbreviation: "" + }; +} +export const EventAddCreditType = { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + encode(message, writer = BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAddCreditType(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAddCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object) { + return EventAddCreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventAddCreditType.decode(message.value); + }, + toProto(message) { + return EventAddCreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + value: EventAddCreditType.encode(message).finish() + }; + } +}; +function createBaseEventBridge() { + return { + target: "", + recipient: "", + contract: "", + amount: "", + owner: "", + batchDenom: "" + }; +} +export const EventBridge = { + typeUrl: "/regen.ecocredit.v1.EventBridge", + encode(message, writer = BinaryWriter.create()) { + if (message.target !== "") { + writer.uint32(10).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.owner !== "") { + writer.uint32(42).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(50).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.target = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.owner = reader.string(); + break; + case 6: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBridge(); + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.contract = object.contract ?? ""; + message.amount = object.amount ?? ""; + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventBridge(); + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return EventBridge.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventBridge.decode(message.value); + }, + toProto(message) { + return EventBridge.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventBridge", + value: EventBridge.encode(message).finish() + }; + } +}; +function createBaseEventBridgeReceive() { + return { + projectId: "", + batchDenom: "", + amount: "", + originTx: undefined + }; +} +export const EventBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBridgeReceive(); + message.projectId = object.projectId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventBridgeReceive(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return EventBridgeReceive.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventBridgeReceive.decode(message.value); + }, + toProto(message) { + return EventBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + value: EventBridgeReceive.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.js b/packages/api/dist/esm/regen/ecocredit/v1/query.js new file mode 100644 index 00000000..dd11d7b0 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/query.js @@ -0,0 +1,4086 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; +import { CreditType } from "./state"; +import { Params } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseQueryClassesRequest() { + return { + pagination: undefined + }; +} +export const QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesRequest.decode(message.value); + }, + toProto(message) { + return QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + value: QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse() { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.classes) { + ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesResponse.decode(message.value); + }, + toProto(message) { + return QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + value: QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +export const QueryClassesByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesByAdminRequest.decode(message.value); + }, + toProto(message) { + return QueryClassesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + value: QueryClassesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminResponse() { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.classes) { + ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesByAdminResponse.decode(message.value); + }, + toProto(message) { + return QueryClassesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + value: QueryClassesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassRequest() { + return { + classId: "" + }; +} +export const QueryClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return QueryClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassRequest.decode(message.value); + }, + toProto(message) { + return QueryClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + value: QueryClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassResponse() { + return { + class: undefined + }; +} +export const QueryClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.class !== undefined) { + ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.class = ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassResponse(); + message.class = object.class !== undefined && object.class !== null ? ClassInfo.fromPartial(object.class) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassResponse(); + if (object.class !== undefined && object.class !== null) { + message.class = ClassInfo.fromAmino(object.class); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class = message.class ? ClassInfo.toAmino(message.class) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassResponse.decode(message.value); + }, + toProto(message) { + return QueryClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + value: QueryClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersRequest() { + return { + classId: "", + pagination: undefined + }; +} +export const QueryClassIssuersRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassIssuersRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassIssuersRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassIssuersRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassIssuersRequest.decode(message.value); + }, + toProto(message) { + return QueryClassIssuersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + value: QueryClassIssuersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersResponse() { + return { + issuers: [], + pagination: undefined + }; +} +export const QueryClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.issuers) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuers.push(reader.string()); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return QueryClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + value: QueryClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsRequest() { + return { + pagination: undefined + }; +} +export const QueryProjectsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsRequest.decode(message.value); + }, + toProto(message) { + return QueryProjectsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + value: QueryProjectsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsResponse() { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.projects) { + ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsResponse.decode(message.value); + }, + toProto(message) { + return QueryProjectsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + value: QueryProjectsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassRequest() { + return { + classId: "", + pagination: undefined + }; +} +export const QueryProjectsByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByClassRequest.decode(message.value); + }, + toProto(message) { + return QueryProjectsByClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + value: QueryProjectsByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassResponse() { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.projects) { + ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByClassResponse.decode(message.value); + }, + toProto(message) { + return QueryProjectsByClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + value: QueryProjectsByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdRequest() { + return { + referenceId: "", + pagination: undefined + }; +} +export const QueryProjectsByReferenceIdRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByReferenceIdRequest(); + message.referenceId = object.referenceId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByReferenceIdRequest(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByReferenceIdRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByReferenceIdRequest.decode(message.value); + }, + toProto(message) { + return QueryProjectsByReferenceIdRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + value: QueryProjectsByReferenceIdRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdResponse() { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByReferenceIdResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.projects) { + ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByReferenceIdResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByReferenceIdResponse.decode(message.value); + }, + toProto(message) { + return QueryProjectsByReferenceIdResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + value: QueryProjectsByReferenceIdResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +export const QueryProjectsByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByAdminRequest.decode(message.value); + }, + toProto(message) { + return QueryProjectsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + value: QueryProjectsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminResponse() { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.projects) { + ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectsByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectsByAdminResponse.decode(message.value); + }, + toProto(message) { + return QueryProjectsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + value: QueryProjectsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectRequest() { + return { + projectId: "" + }; +} +export const QueryProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectRequest(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectRequest.decode(message.value); + }, + toProto(message) { + return QueryProjectRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + value: QueryProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectResponse() { + return { + project: undefined + }; +} +export const QueryProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.project !== undefined) { + ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = ProjectInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectResponse(); + message.project = object.project !== undefined && object.project !== null ? ProjectInfo.fromPartial(object.project) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectResponse(); + if (object.project !== undefined && object.project !== null) { + message.project = ProjectInfo.fromAmino(object.project); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project = message.project ? ProjectInfo.toAmino(message.project) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryProjectResponse.decode(message.value); + }, + toProto(message) { + return QueryProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + value: QueryProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest() { + return { + pagination: undefined + }; +} +export const QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + value: QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse() { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.batches) { + BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + value: QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerRequest() { + return { + issuer: "", + pagination: undefined + }; +} +export const QueryBatchesByIssuerRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByIssuerRequest(); + message.issuer = object.issuer ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByIssuerRequest(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByIssuerRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByIssuerRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchesByIssuerRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + value: QueryBatchesByIssuerRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerResponse() { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByIssuerResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.batches) { + BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByIssuerResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByIssuerResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchesByIssuerResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + value: QueryBatchesByIssuerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassRequest() { + return { + classId: "", + pagination: undefined + }; +} +export const QueryBatchesByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByClassRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchesByClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + value: QueryBatchesByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectRequest() { + return { + projectId: "", + pagination: undefined + }; +} +export const QueryBatchesByProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByProjectRequest(); + message.projectId = object.projectId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByProjectRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchesByProjectRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + value: QueryBatchesByProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectResponse() { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.batches) { + BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByProjectResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchesByProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + value: QueryBatchesByProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassResponse() { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.batches) { + BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesByClassResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchesByClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + value: QueryBatchesByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchRequest() { + return { + batchDenom: "" + }; +} +export const QueryBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + value: QueryBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchResponse() { + return { + batch: undefined + }; +} +export const QueryBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.batch !== undefined) { + BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batch = BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchResponse(); + message.batch = object.batch !== undefined && object.batch !== null ? BatchInfo.fromPartial(object.batch) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchResponse(); + if (object.batch !== undefined && object.batch !== null) { + message.batch = BatchInfo.fromAmino(object.batch); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch = message.batch ? BatchInfo.toAmino(message.batch) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + value: QueryBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest() { + return { + address: "", + batchDenom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + balance: undefined + }; +} +export const QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.balance !== undefined) { + BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = BatchBalanceInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? BatchBalanceInfo.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = BatchBalanceInfo.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance ? BatchBalanceInfo.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +export const QueryBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalancesRequest.decode(message.value); + }, + toProto(message) { + return QueryBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + value: QueryBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +export const QueryBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalancesResponse.decode(message.value); + }, + toProto(message) { + return QueryBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + value: QueryBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchRequest() { + return { + batchDenom: "", + pagination: undefined + }; +} +export const QueryBalancesByBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalancesByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalancesByBatchRequest.decode(message.value); + }, + toProto(message) { + return QueryBalancesByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + value: QueryBalancesByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchResponse() { + return { + balances: [], + pagination: undefined + }; +} +export const QueryBalancesByBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBalancesByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalancesByBatchResponse.decode(message.value); + }, + toProto(message) { + return QueryBalancesByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + value: QueryBalancesByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest() { + return { + pagination: undefined + }; +} +export const QueryAllBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllBalancesRequest.decode(message.value); + }, + toProto(message) { + return QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + value: QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +export const QueryAllBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.balances) { + BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllBalancesResponse.decode(message.value); + }, + toProto(message) { + return QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + value: QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest() { + return { + batchDenom: "" + }; +} +export const QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySupplyRequest.decode(message.value); + }, + toProto(message) { + return QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + value: QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse() { + return { + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +export const QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(26).string(message.cancelledAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + case 3: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySupplyResponse.decode(message.value); + }, + toProto(message) { + return QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + value: QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest() { + return {}; +} +export const QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypesRequest.decode(message.value); + }, + toProto(message) { + return QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + value: QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse() { + return { + creditTypes: [] + }; +} +export const QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.creditTypes) { + CreditType.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypesResponse.decode(message.value); + }, + toProto(message) { + return QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + value: QueryCreditTypesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeRequest() { + return { + abbreviation: "" + }; +} +export const QueryCreditTypeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypeRequest(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypeRequest(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypeRequest.decode(message.value); + }, + toProto(message) { + return QueryCreditTypeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + value: QueryCreditTypeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeResponse() { + return { + creditType: undefined + }; +} +export const QueryCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypeResponse(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypeResponse(); + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypeResponse.decode(message.value); + }, + toProto(message) { + return QueryCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + value: QueryCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseClassInfo() { + return { + id: "", + admin: "", + metadata: "", + creditTypeAbbrev: "" + }; +} +export const ClassInfo = { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClassInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object) { + return ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassInfo.decode(message.value); + }, + toProto(message) { + return ClassInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + value: ClassInfo.encode(message).finish() + }; + } +}; +function createBaseProjectInfo() { + return { + id: "", + admin: "", + classId: "", + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +export const ProjectInfo = { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(26).string(message.classId); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(50).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.classId = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProjectInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProjectInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return ProjectInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ProjectInfo.decode(message.value); + }, + toProto(message) { + return ProjectInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + value: ProjectInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo() { + return { + issuer: "", + projectId: "", + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +export const BatchInfo = { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.denom !== "") { + writer.uint32(26).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(58).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(64).bool(message.open); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.denom = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchInfo(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseBatchInfo(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object) { + return BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchInfo.decode(message.value); + }, + toProto(message) { + return BatchInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + value: BatchInfo.encode(message).finish() + }; + } +}; +function createBaseBatchBalanceInfo() { + return { + address: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +export const BatchBalanceInfo = { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchBalanceInfo(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchBalanceInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object) { + return BatchBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchBalanceInfo.decode(message.value); + }, + toProto(message) { + return BatchBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + value: BatchBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistRequest() { + return {}; +} +export const QueryClassCreatorAllowlistRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryClassCreatorAllowlistRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassCreatorAllowlistRequest.decode(message.value); + }, + toProto(message) { + return QueryClassCreatorAllowlistRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + value: QueryClassCreatorAllowlistRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistResponse() { + return { + enabled: false + }; +} +export const QueryClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassCreatorAllowlistResponse(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassCreatorAllowlistResponse(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return QueryClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message) { + return QueryClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + value: QueryClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsRequest() { + return { + pagination: undefined + }; +} +export const QueryAllowedClassCreatorsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedClassCreatorsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedClassCreatorsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedClassCreatorsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedClassCreatorsRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowedClassCreatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + value: QueryAllowedClassCreatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsResponse() { + return { + classCreators: [], + pagination: undefined + }; +} +export const QueryAllowedClassCreatorsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.classCreators) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classCreators.push(reader.string()); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.classCreators?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.class_creators?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classCreators) { + obj.class_creators = message.classCreators.map(e => e); + } + else { + obj.class_creators = message.classCreators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedClassCreatorsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedClassCreatorsResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowedClassCreatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + value: QueryAllowedClassCreatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeRequest() { + return {}; +} +export const QueryClassFeeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryClassFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassFeeRequest.decode(message.value); + }, + toProto(message) { + return QueryClassFeeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + value: QueryClassFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeResponse() { + return { + fee: undefined + }; +} +export const QueryClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassFeeResponse.decode(message.value); + }, + toProto(message) { + return QueryClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + value: QueryClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsRequest() { + return {}; +} +export const QueryAllowedBridgeChainsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedBridgeChainsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedBridgeChainsRequest.decode(message.value); + }, + toProto(message) { + return QueryAllowedBridgeChainsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + value: QueryAllowedBridgeChainsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsResponse() { + return { + allowedBridgeChains: [] + }; +} +export const QueryAllowedBridgeChainsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.allowedBridgeChains) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } + else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object) { + return QueryAllowedBridgeChainsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryAllowedBridgeChainsResponse.decode(message.value); + }, + toProto(message) { + return QueryAllowedBridgeChainsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + value: QueryAllowedBridgeChainsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js new file mode 100644 index 00000000..881310c3 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js @@ -0,0 +1,288 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassesByAdmin queries for all credit classes with a specific admin + address. */ + async classesByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Class queries for information on a credit class. */ + async class(params) { + const endpoint = `regen/ecocredit/v1/class/${params.classId}`; + return await this.req.get(endpoint); + } + /* ClassIssuers queries for the addresses of the issuers for a credit class. */ + async classIssuers(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* Projects queries for all projects with pagination. */ + async projects(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects`; + return await this.req.get(endpoint, options); + } + /* ProjectsByClass queries for all projects within a class with pagination. */ + async projectsByClass(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByReferenceId queries for all projects by reference-id with + pagination. */ + async projectsByReferenceId(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByAdmin queries for all projects by admin with + pagination. */ + async projectsByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Project queries for information on a project. */ + async project(params) { + const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches with pagination. */ + async batches(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches`; + return await this.req.get(endpoint, options); + } + /* BatchesByIssuer queries all batches issued from a given issuer address. */ + async batchesByIssuer(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; + return await this.req.get(endpoint, options); + } + /* BatchesByClass queries all batches issued from a given class. */ + async batchesByClass(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* BatchesByProject queries for all batches from a given project with + pagination. */ + async batchesByProject(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; + return await this.req.get(endpoint, options); + } + /* Batch queries for information on a credit batch. */ + async batch(params) { + const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account address. */ + async balance(params) { + const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; + return await this.req.get(endpoint); + } + /* Balances queries all credit balances the given account holds. */ + async balances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* BalancesByBatch queries all credit balances from a given batch. + + Since Revision 2 */ + async balancesByBatch(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries all credit balances. + + Since Revision 2 */ + async allBalances(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/all-balances`; + return await this.req.get(endpoint, options); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params) { + const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params = {}) { + const endpoint = `regen/ecocredit/v1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. + + Deprecated (Since Revision 2): This rpc will be removed in the next + version. */ + async params(_params = {}) { + const endpoint = `regen/ecocredit/v1/params`; + return await this.req.get(endpoint); + } + /* CreditType queries credit type information by abbreviation. */ + async creditType(params) { + const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; + return await this.req.get(endpoint); + } + /* ClassCreatorAllowlist queries the credit class creator allowlist + enabled setting. + + Since Revision 2 */ + async classCreatorAllowlist(_params = {}) { + const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; + return await this.req.get(endpoint); + } + /* AllowedClassCreators queries allowed credit class creators list. + + Since Revision 2 */ + async allowedClassCreators(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/allowed-class-creators`; + return await this.req.get(endpoint, options); + } + /* ClassFee returns the credit class creation fee. If not set, a credit class + creation fee is not required. + + Since Revision 2 */ + async classFee(_params = {}) { + const endpoint = `regen/ecocredit/v1/class-fee`; + return await this.req.get(endpoint); + } + /* AllowedBridgeChains queries the list of chains allowed to be used in bridge + operations. + + Since Revision 2 */ + async allowedBridgeChains(_params = {}) { + const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js new file mode 100644 index 00000000..3fa65b70 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js @@ -0,0 +1,259 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + classes(request = { + pagination: undefined + }) { + const data = QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); + return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); + } + classesByAdmin(request) { + const data = QueryClassesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); + return promise.then(data => QueryClassesByAdminResponse.decode(new BinaryReader(data))); + } + class(request) { + const data = QueryClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); + return promise.then(data => QueryClassResponse.decode(new BinaryReader(data))); + } + classIssuers(request) { + const data = QueryClassIssuersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); + return promise.then(data => QueryClassIssuersResponse.decode(new BinaryReader(data))); + } + projects(request = { + pagination: undefined + }) { + const data = QueryProjectsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); + return promise.then(data => QueryProjectsResponse.decode(new BinaryReader(data))); + } + projectsByClass(request) { + const data = QueryProjectsByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); + return promise.then(data => QueryProjectsByClassResponse.decode(new BinaryReader(data))); + } + projectsByReferenceId(request) { + const data = QueryProjectsByReferenceIdRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); + return promise.then(data => QueryProjectsByReferenceIdResponse.decode(new BinaryReader(data))); + } + projectsByAdmin(request) { + const data = QueryProjectsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); + return promise.then(data => QueryProjectsByAdminResponse.decode(new BinaryReader(data))); + } + project(request) { + const data = QueryProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); + return promise.then(data => QueryProjectResponse.decode(new BinaryReader(data))); + } + batches(request = { + pagination: undefined + }) { + const data = QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); + return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); + } + batchesByIssuer(request) { + const data = QueryBatchesByIssuerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); + return promise.then(data => QueryBatchesByIssuerResponse.decode(new BinaryReader(data))); + } + batchesByClass(request) { + const data = QueryBatchesByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); + return promise.then(data => QueryBatchesByClassResponse.decode(new BinaryReader(data))); + } + batchesByProject(request) { + const data = QueryBatchesByProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); + return promise.then(data => QueryBatchesByProjectResponse.decode(new BinaryReader(data))); + } + batch(request) { + const data = QueryBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); + return promise.then(data => QueryBatchResponse.decode(new BinaryReader(data))); + } + balance(request) { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + balances(request) { + const data = QueryBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); + return promise.then(data => QueryBalancesResponse.decode(new BinaryReader(data))); + } + balancesByBatch(request) { + const data = QueryBalancesByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); + return promise.then(data => QueryBalancesByBatchResponse.decode(new BinaryReader(data))); + } + allBalances(request = { + pagination: undefined + }) { + const data = QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); + return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); + } + supply(request) { + const data = QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); + return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); + } + creditTypes(request = {}) { + const data = QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); + return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + creditType(request) { + const data = QueryCreditTypeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); + return promise.then(data => QueryCreditTypeResponse.decode(new BinaryReader(data))); + } + classCreatorAllowlist(request = {}) { + const data = QueryClassCreatorAllowlistRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); + return promise.then(data => QueryClassCreatorAllowlistResponse.decode(new BinaryReader(data))); + } + allowedClassCreators(request = { + pagination: undefined + }) { + const data = QueryAllowedClassCreatorsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); + return promise.then(data => QueryAllowedClassCreatorsResponse.decode(new BinaryReader(data))); + } + classFee(request = {}) { + const data = QueryClassFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); + return promise.then(data => QueryClassFeeResponse.decode(new BinaryReader(data))); + } + allowedBridgeChains(request = {}) { + const data = QueryAllowedBridgeChainsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); + return promise.then(data => QueryAllowedBridgeChainsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request) { + return queryService.classes(request); + }, + classesByAdmin(request) { + return queryService.classesByAdmin(request); + }, + class(request) { + return queryService.class(request); + }, + classIssuers(request) { + return queryService.classIssuers(request); + }, + projects(request) { + return queryService.projects(request); + }, + projectsByClass(request) { + return queryService.projectsByClass(request); + }, + projectsByReferenceId(request) { + return queryService.projectsByReferenceId(request); + }, + projectsByAdmin(request) { + return queryService.projectsByAdmin(request); + }, + project(request) { + return queryService.project(request); + }, + batches(request) { + return queryService.batches(request); + }, + batchesByIssuer(request) { + return queryService.batchesByIssuer(request); + }, + batchesByClass(request) { + return queryService.batchesByClass(request); + }, + batchesByProject(request) { + return queryService.batchesByProject(request); + }, + batch(request) { + return queryService.batch(request); + }, + balance(request) { + return queryService.balance(request); + }, + balances(request) { + return queryService.balances(request); + }, + balancesByBatch(request) { + return queryService.balancesByBatch(request); + }, + allBalances(request) { + return queryService.allBalances(request); + }, + supply(request) { + return queryService.supply(request); + }, + creditTypes(request) { + return queryService.creditTypes(request); + }, + params(request) { + return queryService.params(request); + }, + creditType(request) { + return queryService.creditType(request); + }, + classCreatorAllowlist(request) { + return queryService.classCreatorAllowlist(request); + }, + allowedClassCreators(request) { + return queryService.allowedClassCreators(request); + }, + classFee(request) { + return queryService.classFee(request); + }, + allowedBridgeChains(request) { + return queryService.allowedBridgeChains(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/state.js b/packages/api/dist/esm/regen/ecocredit/v1/state.js new file mode 100644 index 00000000..45d93b98 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/state.js @@ -0,0 +1,1445 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseCreditType() { + return { + abbreviation: "", + name: "", + unit: "", + precision: 0 + }; +} +export const CreditType = { + typeUrl: "/regen.ecocredit.v1.CreditType", + encode(message, writer = BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditType(); + message.abbreviation = object.abbreviation ?? ""; + message.name = object.name ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.name = message.name === "" ? undefined : message.name; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object) { + return CreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CreditType.decode(message.value); + }, + toProto(message) { + return CreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.CreditType", + value: CreditType.encode(message).finish() + }; + } +}; +function createBaseClass() { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + metadata: "", + creditTypeAbbrev: "" + }; +} +export const Class = { + typeUrl: "/regen.ecocredit.v1.Class", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClass(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClass(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = bytesFromBase64(object.admin); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object) { + return Class.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Class.decode(message.value); + }, + toProto(message) { + return Class.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Class", + value: Class.encode(message).finish() + }; + } +}; +function createBaseClassIssuer() { + return { + classKey: BigInt(0), + issuer: new Uint8Array() + }; +} +export const ClassIssuer = { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + encode(message, writer = BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassIssuer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassIssuer(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseClassIssuer(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = bytesFromBase64(object.issuer); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ClassIssuer.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassIssuer.decode(message.value); + }, + toProto(message) { + return ClassIssuer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + value: ClassIssuer.encode(message).finish() + }; + } +}; +function createBaseProject() { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + classKey: BigInt(0), + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +export const Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(32).uint64(message.classKey); + } + if (message.jurisdiction !== "") { + writer.uint32(42).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(50).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(58).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.classKey = reader.uint64(); + break; + case 5: + message.jurisdiction = reader.string(); + break; + case 6: + message.metadata = reader.string(); + break; + case 7: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProject(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProject(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = bytesFromBase64(object.admin); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return Project.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Project.decode(message.value); + }, + toProto(message) { + return Project.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: Project.encode(message).finish() + }; + } +}; +function createBaseBatch() { + return { + key: BigInt(0), + issuer: new Uint8Array(), + projectKey: BigInt(0), + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +export const Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + if (message.projectKey !== BigInt(0)) { + writer.uint32(24).uint64(message.projectKey); + } + if (message.denom !== "") { + writer.uint32(34).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(50).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(58).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(66).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(72).bool(message.open); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + case 3: + message.projectKey = reader.uint64(); + break; + case 4: + message.denom = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatch(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseBatch(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = bytesFromBase64(object.issuer); + } + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object) { + return Batch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Batch.decode(message.value); + }, + toProto(message) { + return Batch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: Batch.encode(message).finish() + }; + } +}; +function createBaseClassSequence() { + return { + creditTypeAbbrev: "", + nextSequence: BigInt(0) + }; +} +export const ClassSequence = { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + encode(message, writer = BinaryWriter.create()) { + if (message.creditTypeAbbrev !== "") { + writer.uint32(10).string(message.creditTypeAbbrev); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypeAbbrev = reader.string(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassSequence(); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseClassSequence(); + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ClassSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassSequence.decode(message.value); + }, + toProto(message) { + return ClassSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + value: ClassSequence.encode(message).finish() + }; + } +}; +function createBaseProjectSequence() { + return { + classKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +export const ProjectSequence = { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + encode(message, writer = BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProjectSequence(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseProjectSequence(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ProjectSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ProjectSequence.decode(message.value); + }, + toProto(message) { + return ProjectSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + value: ProjectSequence.encode(message).finish() + }; + } +}; +function createBaseBatchSequence() { + return { + projectKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +export const BatchSequence = { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + encode(message, writer = BinaryWriter.create()) { + if (message.projectKey !== BigInt(0)) { + writer.uint32(8).uint64(message.projectKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchSequence(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBatchSequence(); + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BatchSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchSequence.decode(message.value); + }, + toProto(message) { + return BatchSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + value: BatchSequence.encode(message).finish() + }; + } +}; +function createBaseBatchBalance() { + return { + batchKey: BigInt(0), + address: new Uint8Array(), + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +export const BatchBalance = { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + encode(message, writer = BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.address.length !== 0) { + writer.uint32(18).bytes(message.address); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.address = reader.bytes(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchBalance(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.address = object.address ?? new Uint8Array(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchBalance(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object) { + return BatchBalance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchBalance.decode(message.value); + }, + toProto(message) { + return BatchBalance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + value: BatchBalance.encode(message).finish() + }; + } +}; +function createBaseBatchSupply() { + return { + batchKey: BigInt(0), + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +export const BatchSupply = { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + encode(message, writer = BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(34).string(message.cancelledAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchSupply(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchSupply(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object) { + return BatchSupply.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchSupply.decode(message.value); + }, + toProto(message) { + return BatchSupply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + value: BatchSupply.encode(message).finish() + }; + } +}; +function createBaseOriginTxIndex() { + return { + classKey: BigInt(0), + id: "", + source: "" + }; +} +export const OriginTxIndex = { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + encode(message, writer = BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.source !== "") { + writer.uint32(26).string(message.source); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTxIndex(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.source = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOriginTxIndex(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseOriginTxIndex(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + return obj; + }, + fromAminoMsg(object) { + return OriginTxIndex.fromAmino(object.value); + }, + fromProtoMsg(message) { + return OriginTxIndex.decode(message.value); + }, + toProto(message) { + return OriginTxIndex.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + value: OriginTxIndex.encode(message).finish() + }; + } +}; +function createBaseBatchContract() { + return { + batchKey: BigInt(0), + classKey: BigInt(0), + contract: "" + }; +} +export const BatchContract = { + typeUrl: "/regen.ecocredit.v1.BatchContract", + encode(message, writer = BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(16).uint64(message.classKey); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchContract(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.classKey = reader.uint64(); + break; + case 3: + message.contract = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchContract(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.contract = object.contract ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchContract(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.contract = message.contract === "" ? undefined : message.contract; + return obj; + }, + fromAminoMsg(object) { + return BatchContract.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchContract.decode(message.value); + }, + toProto(message) { + return BatchContract.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchContract", + value: BatchContract.encode(message).finish() + }; + } +}; +function createBaseClassCreatorAllowlist() { + return { + enabled: false + }; +} +export const ClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + encode(message, writer = BinaryWriter.create()) { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassCreatorAllowlist(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseClassCreatorAllowlist(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return ClassCreatorAllowlist.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassCreatorAllowlist.decode(message.value); + }, + toProto(message) { + return ClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + value: ClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseAllowedClassCreator() { + return { + address: new Uint8Array() + }; +} +export const AllowedClassCreator = { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + encode(message, writer = BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedClassCreator(); + message.address = object.address ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAllowedClassCreator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + return obj; + }, + fromAminoMsg(object) { + return AllowedClassCreator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AllowedClassCreator.decode(message.value); + }, + toProto(message) { + return AllowedClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + value: AllowedClassCreator.encode(message).finish() + }; + } +}; +function createBaseClassFee() { + return { + fee: undefined + }; +} +export const ClassFee = { + typeUrl: "/regen.ecocredit.v1.ClassFee", + encode(message, writer = BinaryWriter.create()) { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassFee(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseClassFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ClassFee.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassFee.decode(message.value); + }, + toProto(message) { + return ClassFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassFee", + value: ClassFee.encode(message).finish() + }; + } +}; +function createBaseAllowedBridgeChain() { + return { + chainName: "" + }; +} +export const AllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + encode(message, writer = BinaryWriter.create()) { + if (message.chainName !== "") { + writer.uint32(10).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedBridgeChain(); + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedBridgeChain(); + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return AllowedBridgeChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return AllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + value: AllowedBridgeChain.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js new file mode 100644 index 00000000..36761801 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js @@ -0,0 +1,119 @@ +//@ts-nocheck +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: "regen/MsgCreateClass", + toAmino: MsgCreateClass.toAmino, + fromAmino: MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: "regen/MsgCreateProject", + toAmino: MsgCreateProject.toAmino, + fromAmino: MsgCreateProject.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: "regen/MsgCreateBatch", + toAmino: MsgCreateBatch.toAmino, + fromAmino: MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: "regen/MsgMintBatchCredits", + toAmino: MsgMintBatchCredits.toAmino, + fromAmino: MsgMintBatchCredits.fromAmino + }, + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: "regen/MsgSealBatch", + toAmino: MsgSealBatch.toAmino, + fromAmino: MsgSealBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgSend": { + aminoType: "regen/MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/regen.ecocredit.v1.MsgRetire": { + aminoType: "regen/MsgRetire", + toAmino: MsgRetire.toAmino, + fromAmino: MsgRetire.fromAmino + }, + "/regen.ecocredit.v1.MsgCancel": { + aminoType: "regen/MsgCancel", + toAmino: MsgCancel.toAmino, + fromAmino: MsgCancel.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: "regen/MsgUpdateClassAdmin", + toAmino: MsgUpdateClassAdmin.toAmino, + fromAmino: MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: "regen/MsgUpdateClassIssuers", + toAmino: MsgUpdateClassIssuers.toAmino, + fromAmino: MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: "regen/MsgUpdateClassMetadata", + toAmino: MsgUpdateClassMetadata.toAmino, + fromAmino: MsgUpdateClassMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: "regen/MsgUpdateProjectAdmin", + toAmino: MsgUpdateProjectAdmin.toAmino, + fromAmino: MsgUpdateProjectAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: "regen/MsgUpdateProjectMetadata", + toAmino: MsgUpdateProjectMetadata.toAmino, + fromAmino: MsgUpdateProjectMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: "regen/MsgUpdateBatchMetadata", + toAmino: MsgUpdateBatchMetadata.toAmino, + fromAmino: MsgUpdateBatchMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgBridge": { + aminoType: "regen/MsgBridge", + toAmino: MsgBridge.toAmino, + fromAmino: MsgBridge.fromAmino + }, + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: "regen/MsgBridgeReceive", + toAmino: MsgBridgeReceive.toAmino, + fromAmino: MsgBridgeReceive.fromAmino + }, + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: "regen/MsgAddCreditType", + toAmino: MsgAddCreditType.toAmino, + fromAmino: MsgAddCreditType.fromAmino + }, + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: "regen/MsgSetClassCreatorAllowlist", + toAmino: MsgSetClassCreatorAllowlist.toAmino, + fromAmino: MsgSetClassCreatorAllowlist.fromAmino + }, + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: "regen/MsgAddClassCreator", + toAmino: MsgAddClassCreator.toAmino, + fromAmino: MsgAddClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: "regen/MsgRemoveClassCreator", + toAmino: MsgRemoveClassCreator.toAmino, + fromAmino: MsgRemoveClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: "regen/MsgUpdateClassFee", + toAmino: MsgUpdateClassFee.toAmino, + fromAmino: MsgUpdateClassFee.fromAmino + }, + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: "regen/MsgAddAllowedBridgeChain", + toAmino: MsgAddAllowedBridgeChain.toAmino, + fromAmino: MsgAddAllowedBridgeChain.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: "regen/MsgRemoveAllowedBridgeChain", + toAmino: MsgRemoveAllowedBridgeChain.toAmino, + fromAmino: MsgRemoveAllowedBridgeChain.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.js new file mode 100644 index 00000000..42eaf6f6 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/tx.js @@ -0,0 +1,3780 @@ +//@ts-nocheck +import { Coin } from "../../../cosmos/base/v1beta1/coin"; +import { BatchIssuance, OriginTx, Credits } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { CreditType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseMsgAddCreditType() { + return { + authority: "", + creditType: undefined + }; +} +export const MsgAddCreditType = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddCreditType(); + message.authority = object.authority ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddCreditType(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgAddCreditType.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddCreditType", + value: MsgAddCreditType.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAddCreditType.decode(message.value); + }, + toProto(message) { + return MsgAddCreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.encode(message).finish() + }; + } +}; +function createBaseMsgAddCreditTypeResponse() { + return {}; +} +export const MsgAddCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgAddCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAddCreditTypeResponse.decode(message.value); + }, + toProto(message) { + return MsgAddCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + value: MsgAddCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClass() { + return { + admin: "", + issuers: [], + metadata: "", + creditTypeAbbrev: "", + fee: undefined + }; +} +export const MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClass.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateClass", + value: MsgCreateClass.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateClass.decode(message.value); + }, + toProto(message) { + return MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse() { + return { + classId: "" + }; +} +export const MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateClassResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + value: MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProject() { + return { + admin: "", + classId: "", + metadata: "", + jurisdiction: "", + referenceId: "" + }; +} +export const MsgCreateProject = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.referenceId !== "") { + writer.uint32(42).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateProject(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateProject(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateProject.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateProject", + value: MsgCreateProject.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateProject.decode(message.value); + }, + toProto(message) { + return MsgCreateProject.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProjectResponse() { + return { + projectId: "" + }; +} +export const MsgCreateProjectResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateProjectResponse(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateProjectResponse(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateProjectResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + value: MsgCreateProjectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch() { + return { + issuer: "", + projectId: "", + issuance: [], + metadata: "", + startDate: undefined, + endDate: undefined, + open: false, + originTx: undefined + }; +} +export const MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + for (const v of message.issuance) { + BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(56).bool(message.open); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.open = reader.bool(); + break; + case 8: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.open = object.open ?? false; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateBatch.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateBatch", + value: MsgCreateBatch.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCreateBatch.decode(message.value); + }, + toProto(message) { + return MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse() { + return { + batchDenom: "" + }; +} +export const MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateBatchResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + value: MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCredits() { + return { + issuer: "", + batchDenom: "", + issuance: [], + originTx: undefined + }; +} +export const MsgMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + for (const v of message.issuance) { + BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgMintBatchCredits(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgMintBatchCredits(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgMintBatchCredits.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgMintBatchCredits", + value: MsgMintBatchCredits.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgMintBatchCredits.decode(message.value); + }, + toProto(message) { + return MsgMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCreditsResponse() { + return {}; +} +export const MsgMintBatchCreditsResponse = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCreditsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgMintBatchCreditsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgMintBatchCreditsResponse.decode(message.value); + }, + toProto(message) { + return MsgMintBatchCreditsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + value: MsgMintBatchCreditsResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatch() { + return { + issuer: "", + batchDenom: "" + }; +} +export const MsgSealBatch = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSealBatch(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSealBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return MsgSealBatch.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSealBatch", + value: MsgSealBatch.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSealBatch.decode(message.value); + }, + toProto(message) { + return MsgSealBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatchResponse() { + return {}; +} +export const MsgSealBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSealBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSealBatchResponse.decode(message.value); + }, + toProto(message) { + return MsgSealBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + value: MsgSealBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend() { + return { + sender: "", + recipient: "", + credits: [] + }; +} +export const MsgSend = { + typeUrl: "/regen.ecocredit.v1.MsgSend", + encode(message, writer = BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSend", + value: MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSend.decode(message.value); + }, + toProto(message) { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1.SendCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSend_SendCredits.decode(message.value); + }, + toProto(message) { + return MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.SendCredits", + value: MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSendResponse.decode(message.value); + }, + toProto(message) { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire() { + return { + owner: "", + credits: [], + jurisdiction: "", + reason: "" + }; +} +export const MsgRetire = { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + Credits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.jurisdiction !== "") { + writer.uint32(26).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + case 3: + message.jurisdiction = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return MsgRetire.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRetire", + value: MsgRetire.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRetire.decode(message.value); + }, + toProto(message) { + return MsgRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse() { + return {}; +} +export const MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRetireResponse.decode(message.value); + }, + toProto(message) { + return MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + value: MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel() { + return { + owner: "", + credits: [], + reason: "" + }; +} +export const MsgCancel = { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + Credits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.reason !== "") { + writer.uint32(26).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + case 3: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return MsgCancel.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCancel", + value: MsgCancel.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgCancel.decode(message.value); + }, + toProto(message) { + return MsgCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse() { + return {}; +} +export const MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCancelResponse.decode(message.value); + }, + toProto(message) { + return MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + value: MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin() { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +export const MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse() { + return {}; +} +export const MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + value: MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers() { + return { + admin: "", + classId: "", + addIssuers: [], + removeIssuers: [] + }; +} +export const MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.addIssuers) { + writer.uint32(26).string(v); + } + for (const v of message.removeIssuers) { + writer.uint32(34).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.addIssuers.push(reader.string()); + break; + case 4: + message.removeIssuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.addIssuers = object.addIssuers?.map(e => e) || []; + message.removeIssuers = object.removeIssuers?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.addIssuers = object.add_issuers?.map(e => e) || []; + message.removeIssuers = object.remove_issuers?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.addIssuers) { + obj.add_issuers = message.addIssuers.map(e => e); + } + else { + obj.add_issuers = message.addIssuers; + } + if (message.removeIssuers) { + obj.remove_issuers = message.removeIssuers.map(e => e); + } + else { + obj.remove_issuers = message.removeIssuers; + } + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassIssuers.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse() { + return {}; +} +export const MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + value: MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata() { + return { + admin: "", + classId: "", + newMetadata: "" + }; +} +export const MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse() { + return {}; +} +export const MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + value: MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdmin() { + return { + admin: "", + projectId: "", + newAdmin: "" + }; +} +export const MsgUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateProjectAdmin(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateProjectAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateProjectAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateProjectAdmin.decode(message.value); + }, + toProto(message) { + return MsgUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdminResponse() { + return {}; +} +export const MsgUpdateProjectAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateProjectAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateProjectAdminResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateProjectAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + value: MsgUpdateProjectAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadata() { + return { + admin: "", + projectId: "", + newMetadata: "" + }; +} +export const MsgUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateProjectMetadata(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateProjectMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateProjectMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateProjectMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadataResponse() { + return {}; +} +export const MsgUpdateProjectMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateProjectMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateProjectMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateProjectMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + value: MsgUpdateProjectMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridge() { + return { + owner: "", + target: "", + recipient: "", + credits: [] + }; +} +export const MsgBridge = { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.target !== "") { + writer.uint32(18).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.credits) { + Credits.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.target = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridge(); + message.owner = object.owner ?? ""; + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridge(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgBridge.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgBridge", + value: MsgBridge.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgBridge.decode(message.value); + }, + toProto(message) { + return MsgBridge.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadata() { + return { + issuer: "", + batchDenom: "", + newMetadata: "" + }; +} +export const MsgUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateBatchMetadata(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateBatchMetadata(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateBatchMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateBatchMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadataResponse() { + return {}; +} +export const MsgUpdateBatchMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateBatchMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateBatchMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateBatchMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + value: MsgUpdateBatchMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeResponse() { + return {}; +} +export const MsgBridgeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgBridgeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgBridgeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgBridgeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBridgeResponse.decode(message.value); + }, + toProto(message) { + return MsgBridgeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + value: MsgBridgeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive() { + return { + issuer: "", + classId: "", + project: undefined, + batch: undefined, + originTx: undefined + }; +} +export const MsgBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.project !== undefined) { + MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); + } + if (message.batch !== undefined) { + MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.project = MsgBridgeReceive_Project.decode(reader, reader.uint32()); + break; + case 4: + message.batch = MsgBridgeReceive_Batch.decode(reader, reader.uint32()); + break; + case 5: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.project = object.project !== undefined && object.project !== null ? MsgBridgeReceive_Project.fromPartial(object.project) : undefined; + message.batch = object.batch !== undefined && object.batch !== null ? MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.project !== undefined && object.project !== null) { + message.project = MsgBridgeReceive_Project.fromAmino(object.project); + } + if (object.batch !== undefined && object.batch !== null) { + message.batch = MsgBridgeReceive_Batch.fromAmino(object.batch); + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.project = message.project ? MsgBridgeReceive_Project.toAmino(message.project) : undefined; + obj.batch = message.batch ? MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgBridgeReceive.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgBridgeReceive", + value: MsgBridgeReceive.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgBridgeReceive.decode(message.value); + }, + toProto(message) { + return MsgBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Batch() { + return { + recipient: "", + amount: "", + startDate: undefined, + endDate: undefined, + metadata: "" + }; +} +export const MsgBridgeReceive_Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message, writer = BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(26).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Batch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + case 3: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive_Batch(); + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive_Batch(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgBridgeReceive_Batch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBridgeReceive_Batch.decode(message.value); + }, + toProto(message) { + return MsgBridgeReceive_Batch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: MsgBridgeReceive_Batch.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Project() { + return { + referenceId: "", + jurisdiction: "", + metadata: "" + }; +} +export const MsgBridgeReceive_Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message, writer = BinaryWriter.create()) { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.jurisdiction !== "") { + writer.uint32(18).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Project(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.jurisdiction = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive_Project(); + message.referenceId = object.referenceId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive_Project(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return MsgBridgeReceive_Project.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBridgeReceive_Project.decode(message.value); + }, + toProto(message) { + return MsgBridgeReceive_Project.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: MsgBridgeReceive_Project.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceiveResponse() { + return { + batchDenom: "", + projectId: "" + }; +} +export const MsgBridgeReceiveResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceiveResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceiveResponse(); + message.batchDenom = object.batchDenom ?? ""; + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceiveResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return MsgBridgeReceiveResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgBridgeReceiveResponse.decode(message.value); + }, + toProto(message) { + return MsgBridgeReceiveResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + value: MsgBridgeReceiveResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreator() { + return { + authority: "", + creator: "" + }; +} +export const MsgAddClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object) { + return MsgAddClassCreator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddClassCreator", + value: MsgAddClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAddClassCreator.decode(message.value); + }, + toProto(message) { + return MsgAddClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreatorResponse() { + return {}; +} +export const MsgAddClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgAddClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAddClassCreatorResponse.decode(message.value); + }, + toProto(message) { + return MsgAddClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + value: MsgAddClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlist() { + return { + authority: "", + enabled: false + }; +} +export const MsgSetClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSetClassCreatorAllowlist(); + message.authority = object.authority ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSetClassCreatorAllowlist(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return MsgSetClassCreatorAllowlist.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgSetClassCreatorAllowlist.decode(message.value); + }, + toProto(message) { + return MsgSetClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlistResponse() { + return {}; +} +export const MsgSetClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSetClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message) { + return MsgSetClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + value: MsgSetClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreator() { + return { + authority: "", + creator: "" + }; +} +export const MsgRemoveClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveClassCreator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRemoveClassCreator", + value: MsgRemoveClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRemoveClassCreator.decode(message.value); + }, + toProto(message) { + return MsgRemoveClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreatorResponse() { + return {}; +} +export const MsgRemoveClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRemoveClassCreatorResponse.decode(message.value); + }, + toProto(message) { + return MsgRemoveClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + value: MsgRemoveClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFee() { + return { + authority: "", + fee: undefined + }; +} +export const MsgUpdateClassFee = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassFee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassFee", + value: MsgUpdateClassFee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgUpdateClassFee.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFeeResponse() { + return {}; +} +export const MsgUpdateClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassFeeResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + value: MsgUpdateClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChain() { + return { + authority: "", + chainName: "" + }; +} +export const MsgAddAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return MsgAddAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgAddAllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return MsgAddAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChainResponse() { + return {}; +} +export const MsgAddAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgAddAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgAddAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message) { + return MsgAddAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + value: MsgAddAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChain() { + return { + authority: "", + chainName: "" + }; +} +export const MsgRemoveAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + encode(message, writer = BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message) { + return MsgRemoveAllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return MsgRemoveAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChainResponse() { + return {}; +} +export const MsgRemoveAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRemoveAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message) { + return MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + value: MsgRemoveAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js new file mode 100644 index 00000000..ef347636 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js @@ -0,0 +1,429 @@ +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export const registry = [["/regen.ecocredit.v1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", MsgSend], ["/regen.ecocredit.v1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", MsgRemoveAllowedBridgeChain]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.encode(value).finish() + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.encode(value).finish() + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.encode(value).finish() + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.encode(value).finish() + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.encode(value).finish() + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.encode(value).finish() + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(value).finish() + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.encode(value).finish() + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.encode(value).finish() + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.encode(value).finish() + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.encode(value).finish() + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.encode(value).finish() + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.encode(value).finish() + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.encode(value).finish() + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.encode(value).finish() + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.encode(value).finish() + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.encode(value).finish() + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.encode(value).finish() + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value + }; + } + }, + fromPartial: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.fromPartial(value) + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.fromPartial(value) + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.fromPartial(value) + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.fromPartial(value) + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.fromPartial(value) + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.fromPartial(value) + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.fromPartial(value) + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.fromPartial(value) + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.fromPartial(value) + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.fromPartial(value) + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.fromPartial(value) + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.fromPartial(value) + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.fromPartial(value) + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.fromPartial(value) + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.fromPartial(value) + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.fromPartial(value) + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.fromPartial(value) + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.fromPartial(value) + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js new file mode 100644 index 00000000..ab295737 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js @@ -0,0 +1,146 @@ +import { BinaryReader } from "../../../binary"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createProject = this.createProject.bind(this); + this.createBatch = this.createBatch.bind(this); + this.mintBatchCredits = this.mintBatchCredits.bind(this); + this.sealBatch = this.sealBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + this.updateProjectAdmin = this.updateProjectAdmin.bind(this); + this.updateProjectMetadata = this.updateProjectMetadata.bind(this); + this.updateBatchMetadata = this.updateBatchMetadata.bind(this); + this.bridge = this.bridge.bind(this); + this.bridgeReceive = this.bridgeReceive.bind(this); + this.addCreditType = this.addCreditType.bind(this); + this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); + this.addClassCreator = this.addClassCreator.bind(this); + this.removeClassCreator = this.removeClassCreator.bind(this); + this.updateClassFee = this.updateClassFee.bind(this); + this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); + this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); + } + createClass(request) { + const data = MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); + return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); + } + createProject(request) { + const data = MsgCreateProject.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); + return promise.then(data => MsgCreateProjectResponse.decode(new BinaryReader(data))); + } + createBatch(request) { + const data = MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); + return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); + } + mintBatchCredits(request) { + const data = MsgMintBatchCredits.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); + return promise.then(data => MsgMintBatchCreditsResponse.decode(new BinaryReader(data))); + } + sealBatch(request) { + const data = MsgSealBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); + return promise.then(data => MsgSealBatchResponse.decode(new BinaryReader(data))); + } + send(request) { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + retire(request) { + const data = MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); + return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); + } + cancel(request) { + const data = MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); + return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); + } + updateClassAdmin(request) { + const data = MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); + return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); + } + updateClassIssuers(request) { + const data = MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); + return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); + } + updateClassMetadata(request) { + const data = MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); + return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); + } + updateProjectAdmin(request) { + const data = MsgUpdateProjectAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); + return promise.then(data => MsgUpdateProjectAdminResponse.decode(new BinaryReader(data))); + } + updateProjectMetadata(request) { + const data = MsgUpdateProjectMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); + return promise.then(data => MsgUpdateProjectMetadataResponse.decode(new BinaryReader(data))); + } + updateBatchMetadata(request) { + const data = MsgUpdateBatchMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); + return promise.then(data => MsgUpdateBatchMetadataResponse.decode(new BinaryReader(data))); + } + bridge(request) { + const data = MsgBridge.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); + return promise.then(data => MsgBridgeResponse.decode(new BinaryReader(data))); + } + bridgeReceive(request) { + const data = MsgBridgeReceive.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); + return promise.then(data => MsgBridgeReceiveResponse.decode(new BinaryReader(data))); + } + addCreditType(request) { + const data = MsgAddCreditType.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); + return promise.then(data => MsgAddCreditTypeResponse.decode(new BinaryReader(data))); + } + setClassCreatorAllowlist(request) { + const data = MsgSetClassCreatorAllowlist.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); + return promise.then(data => MsgSetClassCreatorAllowlistResponse.decode(new BinaryReader(data))); + } + addClassCreator(request) { + const data = MsgAddClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); + return promise.then(data => MsgAddClassCreatorResponse.decode(new BinaryReader(data))); + } + removeClassCreator(request) { + const data = MsgRemoveClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); + return promise.then(data => MsgRemoveClassCreatorResponse.decode(new BinaryReader(data))); + } + updateClassFee(request) { + const data = MsgUpdateClassFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); + return promise.then(data => MsgUpdateClassFeeResponse.decode(new BinaryReader(data))); + } + addAllowedBridgeChain(request) { + const data = MsgAddAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); + return promise.then(data => MsgAddAllowedBridgeChainResponse.decode(new BinaryReader(data))); + } + removeAllowedBridgeChain(request) { + const data = MsgRemoveAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); + return promise.then(data => MsgRemoveAllowedBridgeChainResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/v1/types.js b/packages/api/dist/esm/regen/ecocredit/v1/types.js new file mode 100644 index 00000000..8be67487 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1/types.js @@ -0,0 +1,601 @@ +//@ts-nocheck +import { Coin } from "../../../cosmos/base/v1beta1/coin"; +import { CreditType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseParams() { + return { + creditClassFee: [], + basketFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + allowedDenoms: [], + allowedBridgeChains: [] + }; +} +export const Params = { + typeUrl: "/regen.ecocredit.v1.Params", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.creditClassFee) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.basketFee) { + Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(26).string(v); + } + if (message.allowlistEnabled === true) { + writer.uint32(32).bool(message.allowlistEnabled); + } + for (const v of message.allowedDenoms) { + AllowedDenom.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.allowedBridgeChains) { + writer.uint32(50).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.basketFee.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.allowedClassCreators.push(reader.string()); + break; + case 4: + message.allowlistEnabled = reader.bool(); + break; + case 5: + message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); + break; + case 6: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; + message.basketFee = object.basketFee?.map(e => Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; + message.basketFee = object.basket_fee?.map(e => Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.basketFee) { + obj.basket_fee = message.basketFee.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.basket_fee = message.basketFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } + else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); + } + else { + obj.allowed_denoms = message.allowedDenoms; + } + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } + else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseCredits() { + return { + batchDenom: "", + amount: "" + }; +} +export const Credits = { + typeUrl: "/regen.ecocredit.v1.Credits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return Credits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Credits.decode(message.value); + }, + toProto(message) { + return Credits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Credits", + value: Credits.encode(message).finish() + }; + } +}; +function createBaseBatchIssuance() { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const BatchIssuance = { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + encode(message, writer = BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchIssuance.decode(message.value); + }, + toProto(message) { + return BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + value: BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseOriginTx() { + return { + id: "", + source: "", + contract: "", + note: "" + }; +} +export const OriginTx = { + typeUrl: "/regen.ecocredit.v1.OriginTx", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.source !== "") { + writer.uint32(18).string(message.source); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.note !== "") { + writer.uint32(34).string(message.note); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.source = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.note = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOriginTx(); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + message.contract = object.contract ?? ""; + message.note = object.note ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseOriginTx(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.note !== undefined && object.note !== null) { + message.note = object.note; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.note = message.note === "" ? undefined : message.note; + return obj; + }, + fromAminoMsg(object) { + return OriginTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return OriginTx.decode(message.value); + }, + toProto(message) { + return OriginTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.OriginTx", + value: OriginTx.encode(message).finish() + }; + } +}; +function createBaseCreditTypeProposal() { + return { + title: "", + description: "", + creditType: undefined + }; +} +export const CreditTypeProposal = { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditTypeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseCreditTypeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return CreditTypeProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CreditTypeProposal.decode(message.value); + }, + toProto(message) { + return CreditTypeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + value: CreditTypeProposal.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom() { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const AllowedDenom = { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + encode(message, writer = BinaryWriter.create()) { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return AllowedDenom.decode(message.value); + }, + toProto(message) { + return AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + value: AllowedDenom.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js new file mode 100644 index 00000000..190329ee --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js @@ -0,0 +1,521 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseEventCreateClass() { + return { + classId: "", + admin: "" + }; +} +export const EventCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + return obj; + }, + fromAminoMsg(object) { + return EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreateClass.decode(message.value); + }, + toProto(message) { + return EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + value: EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch() { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + startDate: "", + endDate: "", + projectLocation: "" + }; +} +export const EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.startDate !== "") { + writer.uint32(42).string(message.startDate); + } + if (message.endDate !== "") { + writer.uint32(50).string(message.endDate); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.startDate = reader.string(); + break; + case 6: + message.endDate = reader.string(); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateBatch(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.startDate = object.startDate ?? ""; + message.endDate = object.endDate ?? ""; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateBatch(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = object.start_date; + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = object.end_date; + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCreateBatch.decode(message.value); + }, + toProto(message) { + return EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + value: EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventReceive() { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + basketDenom: "" + }; +} +export const EventReceive = { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + encode(message, writer = BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + if (message.basketDenom !== "") { + writer.uint32(50).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + case 6: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventReceive(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventReceive(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return EventReceive.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventReceive.decode(message.value); + }, + toProto(message) { + return EventReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + value: EventReceive.encode(message).finish() + }; + } +}; +function createBaseEventRetire() { + return { + retirer: "", + batchDenom: "", + amount: "", + location: "" + }; +} +export const EventRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + encode(message, writer = BinaryWriter.create()) { + if (message.retirer !== "") { + writer.uint32(10).string(message.retirer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.location !== "") { + writer.uint32(34).string(message.location); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.retirer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRetire(); + message.retirer = object.retirer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRetire(); + if (object.retirer !== undefined && object.retirer !== null) { + message.retirer = object.retirer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.retirer = message.retirer === "" ? undefined : message.retirer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object) { + return EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventRetire.decode(message.value); + }, + toProto(message) { + return EventRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + value: EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel() { + return { + canceller: "", + batchDenom: "", + amount: "" + }; +} +export const EventCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + encode(message, writer = BinaryWriter.create()) { + if (message.canceller !== "") { + writer.uint32(10).string(message.canceller); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.canceller = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancel(); + message.canceller = object.canceller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCancel(); + if (object.canceller !== undefined && object.canceller !== null) { + message.canceller = object.canceller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.canceller = message.canceller === "" ? undefined : message.canceller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventCancel.decode(message.value); + }, + toProto(message) { + return EventCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + value: EventCancel.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js new file mode 100644 index 00000000..3863dc06 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js @@ -0,0 +1,327 @@ +//@ts-nocheck +import { Params, ClassInfo, BatchInfo, CreditTypeSeq } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseGenesisState() { + return { + params: Params.fromPartial({}), + classInfo: [], + batchInfo: [], + sequences: [], + balances: [], + supplies: [] + }; +} +export const GenesisState = { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classInfo) { + ClassInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.batchInfo) { + BatchInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.sequences) { + CreditTypeSeq.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.balances) { + Balance.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.supplies) { + Supply.encode(v, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.classInfo.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 3: + message.batchInfo.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 4: + message.sequences.push(CreditTypeSeq.decode(reader, reader.uint32())); + break; + case 5: + message.balances.push(Balance.decode(reader, reader.uint32())); + break; + case 6: + message.supplies.push(Supply.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.classInfo = object.classInfo?.map(e => ClassInfo.fromPartial(e)) || []; + message.batchInfo = object.batchInfo?.map(e => BatchInfo.fromPartial(e)) || []; + message.sequences = object.sequences?.map(e => CreditTypeSeq.fromPartial(e)) || []; + message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; + message.supplies = object.supplies?.map(e => Supply.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.classInfo = object.class_info?.map(e => ClassInfo.fromAmino(e)) || []; + message.batchInfo = object.batch_info?.map(e => BatchInfo.fromAmino(e)) || []; + message.sequences = object.sequences?.map(e => CreditTypeSeq.fromAmino(e)) || []; + message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; + message.supplies = object.supplies?.map(e => Supply.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.classInfo) { + obj.class_info = message.classInfo.map(e => e ? ClassInfo.toAmino(e) : undefined); + } + else { + obj.class_info = message.classInfo; + } + if (message.batchInfo) { + obj.batch_info = message.batchInfo.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batch_info = message.batchInfo; + } + if (message.sequences) { + obj.sequences = message.sequences.map(e => e ? CreditTypeSeq.toAmino(e) : undefined); + } + else { + obj.sequences = message.sequences; + } + if (message.balances) { + obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + if (message.supplies) { + obj.supplies = message.supplies.map(e => e ? Supply.toAmino(e) : undefined); + } + else { + obj.supplies = message.supplies; + } + return obj; + }, + fromAminoMsg(object) { + return GenesisState.fromAmino(object.value); + }, + fromProtoMsg(message) { + return GenesisState.decode(message.value); + }, + toProto(message) { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance() { + return { + address: "", + batchDenom: "", + tradableBalance: "", + retiredBalance: "" + }; +} +export const Balance = { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + encode(message, writer = BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableBalance !== "") { + writer.uint32(26).string(message.tradableBalance); + } + if (message.retiredBalance !== "") { + writer.uint32(34).string(message.retiredBalance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableBalance = reader.string(); + break; + case 4: + message.retiredBalance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableBalance = object.tradableBalance ?? ""; + message.retiredBalance = object.retiredBalance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_balance !== undefined && object.tradable_balance !== null) { + message.tradableBalance = object.tradable_balance; + } + if (object.retired_balance !== undefined && object.retired_balance !== null) { + message.retiredBalance = object.retired_balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; + obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; + return obj; + }, + fromAminoMsg(object) { + return Balance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Balance.decode(message.value); + }, + toProto(message) { + return Balance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + value: Balance.encode(message).finish() + }; + } +}; +function createBaseSupply() { + return { + batchDenom: "", + tradableSupply: "", + retiredSupply: "" + }; +} +export const Supply = { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableSupply !== "") { + writer.uint32(18).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(26).string(message.retiredSupply); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableSupply = reader.string(); + break; + case 3: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSupply(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseSupply(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object) { + return Supply.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Supply.decode(message.value); + }, + toProto(message) { + return Supply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + value: Supply.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js new file mode 100644 index 00000000..dc96f0f5 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js @@ -0,0 +1,1067 @@ +//@ts-nocheck +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; +import { Params, ClassInfo, BatchInfo, CreditType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryParamsRequest() { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesRequest() { + return { + pagination: undefined + }; +} +export const QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesRequest.decode(message.value); + }, + toProto(message) { + return QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + value: QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse() { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.classes) { + ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassesResponse.decode(message.value); + }, + toProto(message) { + return QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + value: QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoRequest() { + return { + classId: "" + }; +} +export const QueryClassInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassInfoRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassInfoRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return QueryClassInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassInfoRequest.decode(message.value); + }, + toProto(message) { + return QueryClassInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + value: QueryClassInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoResponse() { + return { + info: undefined + }; +} +export const QueryClassInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.info !== undefined) { + ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? ClassInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = ClassInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? ClassInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryClassInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryClassInfoResponse.decode(message.value); + }, + toProto(message) { + return QueryClassInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + value: QueryClassInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest() { + return { + classId: "", + pagination: undefined + }; +} +export const QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + value: QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse() { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.batches) { + BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchesResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + value: QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoRequest() { + return { + batchDenom: "" + }; +} +export const QueryBatchInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchInfoRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchInfoRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchInfoRequest.decode(message.value); + }, + toProto(message) { + return QueryBatchInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + value: QueryBatchInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoResponse() { + return { + info: undefined + }; +} +export const QueryBatchInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.info !== undefined) { + BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? BatchInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = BatchInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? BatchInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return QueryBatchInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBatchInfoResponse.decode(message.value); + }, + toProto(message) { + return QueryBatchInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + value: QueryBatchInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest() { + return { + account: "", + batchDenom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.account !== "") { + writer.uint32(10).string(message.account); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.account = object.account ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account === "" ? undefined : message.account; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + tradableAmount: "", + retiredAmount: "" + }; +} +export const QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest() { + return { + batchDenom: "" + }; +} +export const QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySupplyRequest.decode(message.value); + }, + toProto(message) { + return QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + value: QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse() { + return { + tradableSupply: "", + retiredSupply: "" + }; +} +export const QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.tradableSupply !== "") { + writer.uint32(10).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(18).string(message.retiredSupply); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableSupply = reader.string(); + break; + case 2: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyResponse(); + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object) { + return QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QuerySupplyResponse.decode(message.value); + }, + toProto(message) { + return QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + value: QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest() { + return {}; +} +export const QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypesRequest.decode(message.value); + }, + toProto(message) { + return QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + value: QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse() { + return { + creditTypes: [] + }; +} +export const QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.creditTypes) { + CreditType.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object) { + return QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryCreditTypesResponse.decode(message.value); + }, + toProto(message) { + return QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + value: QueryCreditTypesResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js new file mode 100644 index 00000000..200096db --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js @@ -0,0 +1,72 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassInfo queries for information on a credit class. */ + async classInfo(params) { + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches in the given credit class with pagination. */ + async batches(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; + return await this.req.get(endpoint, options); + } + /* BatchInfo queries for information on a credit batch. */ + async batchInfo(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account. */ + async balance(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; + return await this.req.get(endpoint); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params = {}) { + const endpoint = `regen/ecocredit/v1alpha1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. */ + async params(_params = {}) { + const endpoint = `regen/ecocredit/v1alpha1/params`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js new file mode 100644 index 00000000..859e4d18 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js @@ -0,0 +1,89 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + classes(request = { + pagination: undefined + }) { + const data = QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); + return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); + } + classInfo(request) { + const data = QueryClassInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); + return promise.then(data => QueryClassInfoResponse.decode(new BinaryReader(data))); + } + batches(request) { + const data = QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); + return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); + } + batchInfo(request) { + const data = QueryBatchInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); + return promise.then(data => QueryBatchInfoResponse.decode(new BinaryReader(data))); + } + balance(request) { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + supply(request) { + const data = QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); + return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); + } + creditTypes(request = {}) { + const data = QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); + return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); + } + params(request = {}) { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request) { + return queryService.classes(request); + }, + classInfo(request) { + return queryService.classInfo(request); + }, + batches(request) { + return queryService.batches(request); + }, + batchInfo(request) { + return queryService.batchInfo(request); + }, + balance(request) { + return queryService.balance(request); + }, + supply(request) { + return queryService.supply(request); + }, + creditTypes(request) { + return queryService.creditTypes(request); + }, + params(request) { + return queryService.params(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js new file mode 100644 index 00000000..2a4c2603 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js @@ -0,0 +1,44 @@ +//@ts-nocheck +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", + toAmino: MsgCreateClass.toAmino, + fromAmino: MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + toAmino: MsgCreateBatch.toAmino, + fromAmino: MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: "/regen.ecocredit.v1alpha1.MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", + toAmino: MsgRetire.toAmino, + fromAmino: MsgRetire.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", + toAmino: MsgCancel.toAmino, + fromAmino: MsgCancel.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + toAmino: MsgUpdateClassAdmin.toAmino, + fromAmino: MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + toAmino: MsgUpdateClassIssuers.toAmino, + fromAmino: MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + toAmino: MsgUpdateClassMetadata.toAmino, + fromAmino: MsgUpdateClassMetadata.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js new file mode 100644 index 00000000..c53ab50b --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js @@ -0,0 +1,1540 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseMsgCreateClass() { + return { + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditTypeName: "" + }; +} +export const MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + if (message.creditTypeName !== "") { + writer.uint32(34).string(message.creditTypeName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.bytes(); + break; + case 4: + message.creditTypeName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditTypeName = object.creditTypeName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.credit_type_name !== undefined && object.credit_type_name !== null) { + message.creditTypeName = object.credit_type_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateClass.decode(message.value); + }, + toProto(message) { + return MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse() { + return { + classId: "" + }; +} +export const MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateClassResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + value: MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch() { + return { + issuer: "", + classId: "", + issuance: [], + metadata: new Uint8Array(), + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +export const MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + encode(message, writer = BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuance) { + MsgCreateBatch_BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuance.push(MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateBatch.decode(message.value); + }, + toProto(message) { + return MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch_BatchIssuance() { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +export const MsgCreateBatch_BatchIssuance = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + encode(message, writer = BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch_BatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch_BatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch_BatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateBatch_BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateBatch_BatchIssuance.decode(message.value); + }, + toProto(message) { + return MsgCreateBatch_BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + value: MsgCreateBatch_BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse() { + return { + batchDenom: "" + }; +} +export const MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCreateBatchResponse.decode(message.value); + }, + toProto(message) { + return MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + value: MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend() { + return { + sender: "", + recipient: "", + credits: [] + }; +} +export const MsgSend = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + encode(message, writer = BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgSend.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSend.decode(message.value); + }, + toProto(message) { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +export const MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object) { + return MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSend_SendCredits.decode(message.value); + }, + toProto(message) { + return MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + value: MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSendResponse.decode(message.value); + }, + toProto(message) { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire() { + return { + holder: "", + credits: [], + location: "" + }; +} +export const MsgRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + encode(message, writer = BinaryWriter.create()) { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + MsgRetire_RetireCredits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.location !== "") { + writer.uint32(26).string(message.location); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(MsgRetire_RetireCredits.decode(reader, reader.uint32())); + break; + case 3: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromPartial(e)) || []; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromAmino(e)) || []; + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgRetire_RetireCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object) { + return MsgRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRetire.decode(message.value); + }, + toProto(message) { + return MsgRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetire_RetireCredits() { + return { + batchDenom: "", + amount: "" + }; +} +export const MsgRetire_RetireCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire_RetireCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire_RetireCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire_RetireCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return MsgRetire_RetireCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRetire_RetireCredits.decode(message.value); + }, + toProto(message) { + return MsgRetire_RetireCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + value: MsgRetire_RetireCredits.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse() { + return {}; +} +export const MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRetireResponse.decode(message.value); + }, + toProto(message) { + return MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + value: MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel() { + return { + holder: "", + credits: [] + }; +} +export const MsgCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + encode(message, writer = BinaryWriter.create()) { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + MsgCancel_CancelCredits.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(MsgCancel_CancelCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgCancel_CancelCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return MsgCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCancel.decode(message.value); + }, + toProto(message) { + return MsgCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancel_CancelCredits() { + return { + batchDenom: "", + amount: "" + }; +} +export const MsgCancel_CancelCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + encode(message, writer = BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel_CancelCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel_CancelCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel_CancelCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return MsgCancel_CancelCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCancel_CancelCredits.decode(message.value); + }, + toProto(message) { + return MsgCancel_CancelCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + value: MsgCancel_CancelCredits.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse() { + return {}; +} +export const MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgCancelResponse.decode(message.value); + }, + toProto(message) { + return MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + value: MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin() { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +export const MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse() { + return {}; +} +export const MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + value: MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers() { + return { + admin: "", + classId: "", + issuers: [] + }; +} +export const MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuers) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse() { + return {}; +} +export const MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + value: MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata() { + return { + admin: "", + classId: "", + metadata: new Uint8Array() + }; +} +export const MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + encode(message, writer = BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse() { + return {}; +} +export const MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message) { + return MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + value: MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js new file mode 100644 index 00000000..5b326843 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js @@ -0,0 +1,159 @@ +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export const registry = [["/regen.ecocredit.v1alpha1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", MsgUpdateClassMetadata]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.encode(value).finish() + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.encode(value).finish() + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.encode(value).finish() + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value + }; + } + }, + fromPartial: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.fromPartial(value) + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.fromPartial(value) + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.fromPartial(value) + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js new file mode 100644 index 00000000..e9ede447 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js @@ -0,0 +1,56 @@ +import { BinaryReader } from "../../../binary"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createBatch = this.createBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + } + createClass(request) { + const data = MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); + return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); + } + createBatch(request) { + const data = MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); + return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); + } + send(request) { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + retire(request) { + const data = MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); + return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); + } + cancel(request) { + const data = MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); + return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); + } + updateClassAdmin(request) { + const data = MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); + return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); + } + updateClassIssuers(request) { + const data = MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); + return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); + } + updateClassMetadata(request) { + const data = MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); + return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js new file mode 100644 index 00000000..adc5f200 --- /dev/null +++ b/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js @@ -0,0 +1,587 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +function createBaseClassInfo() { + return { + classId: "", + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditType: undefined, + numBatches: BigInt(0) + }; +} +export const ClassInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(26).string(v); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); + } + if (message.numBatches !== BigInt(0)) { + writer.uint32(48).uint64(message.numBatches); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + case 6: + message.numBatches = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassInfo(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseClassInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + if (object.num_batches !== undefined && object.num_batches !== null) { + message.numBatches = BigInt(object.num_batches); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ClassInfo.decode(message.value); + }, + toProto(message) { + return ClassInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + value: ClassInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo() { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + metadata: new Uint8Array(), + amountCancelled: "", + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +export const BatchInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + if (message.amountCancelled !== "") { + writer.uint32(50).string(message.amountCancelled); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(58).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(66).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(74).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.metadata = reader.bytes(); + break; + case 6: + message.amountCancelled = reader.string(); + break; + case 7: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchInfo(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + message.amountCancelled = object.amountCancelled ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { + message.amountCancelled = object.amount_cancelled; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BatchInfo.decode(message.value); + }, + toProto(message) { + return BatchInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + value: BatchInfo.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + creditClassFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + creditTypes: [], + basketCreationFee: [] + }; +} +export const Params = { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.creditClassFee) { + Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(18).string(v); + } + if (message.allowlistEnabled === true) { + writer.uint32(24).bool(message.allowlistEnabled); + } + for (const v of message.creditTypes) { + CreditType.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.basketCreationFee) { + Coin.encode(v, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.allowedClassCreators.push(reader.string()); + break; + case 3: + message.allowlistEnabled = reader.bool(); + break; + case 4: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + case 5: + message.basketCreationFee.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + message.basketCreationFee = object.basketCreationFee?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + message.basketCreationFee = object.basket_creation_fee?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } + else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + if (message.basketCreationFee) { + obj.basket_creation_fee = message.basketCreationFee.map(e => e ? Coin.toAmino(e) : undefined); + } + else { + obj.basket_creation_fee = message.basketCreationFee; + } + return obj; + }, + fromAminoMsg(object) { + return Params.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Params.decode(message.value); + }, + toProto(message) { + return Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseCreditType() { + return { + name: "", + abbreviation: "", + unit: "", + precision: 0 + }; +} +export const CreditType = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + encode(message, writer = BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.abbreviation !== "") { + writer.uint32(18).string(message.abbreviation); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.abbreviation = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditType(); + message.name = object.name ?? ""; + message.abbreviation = object.abbreviation ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseCreditType(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object) { + return CreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CreditType.decode(message.value); + }, + toProto(message) { + return CreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + value: CreditType.encode(message).finish() + }; + } +}; +function createBaseCreditTypeSeq() { + return { + abbreviation: "", + seqNumber: BigInt(0) + }; +} +export const CreditTypeSeq = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + encode(message, writer = BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.seqNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.seqNumber); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeSeq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.seqNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditTypeSeq(); + message.abbreviation = object.abbreviation ?? ""; + message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseCreditTypeSeq(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.seq_number !== undefined && object.seq_number !== null) { + message.seqNumber = BigInt(object.seq_number); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return CreditTypeSeq.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CreditTypeSeq.decode(message.value); + }, + toProto(message) { + return CreditTypeSeq.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + value: CreditTypeSeq.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/query.js b/packages/api/dist/esm/regen/intertx/v1/query.js new file mode 100644 index 00000000..03efd554 --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/query.js @@ -0,0 +1,140 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseQueryInterchainAccountRequest() { + return { + owner: "", + connectionId: "" + }; +} +export const QueryInterchainAccountRequest = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInterchainAccountRequest(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryInterchainAccountRequest(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + return obj; + }, + fromAminoMsg(object) { + return QueryInterchainAccountRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryInterchainAccountRequest.decode(message.value); + }, + toProto(message) { + return QueryInterchainAccountRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + value: QueryInterchainAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInterchainAccountResponse() { + return { + interchainAccountAddress: "" + }; +} +export const QueryInterchainAccountResponse = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + encode(message, writer = BinaryWriter.create()) { + if (message.interchainAccountAddress !== "") { + writer.uint32(10).string(message.interchainAccountAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interchainAccountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInterchainAccountResponse(); + message.interchainAccountAddress = object.interchainAccountAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryInterchainAccountResponse(); + if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { + message.interchainAccountAddress = object.interchain_account_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; + return obj; + }, + fromAminoMsg(object) { + return QueryInterchainAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return QueryInterchainAccountResponse.decode(message.value); + }, + toProto(message) { + return QueryInterchainAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + value: QueryInterchainAccountResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/query.lcd.js b/packages/api/dist/esm/regen/intertx/v1/query.lcd.js new file mode 100644 index 00000000..5c811cb4 --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/query.lcd.js @@ -0,0 +1,13 @@ +export class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.interchainAccount = this.interchainAccount.bind(this); + } + /* QueryInterchainAccount returns the interchain account for given owner + address on a given connection pair */ + async interchainAccount(params) { + const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; + return await this.req.get(endpoint); + } +} diff --git a/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js new file mode 100644 index 00000000..888a0421 --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js @@ -0,0 +1,24 @@ +import { BinaryReader } from "../../../binary"; +import { createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; +export class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.interchainAccount = this.interchainAccount.bind(this); + } + interchainAccount(request) { + const data = QueryInterchainAccountRequest.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); + return promise.then(data => QueryInterchainAccountResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + interchainAccount(request) { + return queryService.interchainAccount(request); + } + }; +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.amino.js b/packages/api/dist/esm/regen/intertx/v1/tx.amino.js new file mode 100644 index 00000000..59aac059 --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/tx.amino.js @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export const AminoConverter = { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: "/regen.intertx.v1.MsgRegisterAccount", + toAmino: MsgRegisterAccount.toAmino, + fromAmino: MsgRegisterAccount.fromAmino + }, + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: "/regen.intertx.v1.MsgSubmitTx", + toAmino: MsgSubmitTx.toAmino, + fromAmino: MsgSubmitTx.fromAmino + } +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.js b/packages/api/dist/esm/regen/intertx/v1/tx.js new file mode 100644 index 00000000..19988a7f --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/tx.js @@ -0,0 +1,277 @@ +//@ts-nocheck +import { Any } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseMsgRegisterAccount() { + return { + owner: "", + connectionId: "", + version: "" + }; +} +export const MsgRegisterAccount = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.version !== "") { + writer.uint32(26).string(message.version); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRegisterAccount(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.version = object.version ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRegisterAccount(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.version = message.version === "" ? undefined : message.version; + return obj; + }, + fromAminoMsg(object) { + return MsgRegisterAccount.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRegisterAccount.decode(message.value); + }, + toProto(message) { + return MsgRegisterAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterAccountResponse() { + return {}; +} +export const MsgRegisterAccountResponse = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgRegisterAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgRegisterAccountResponse.decode(message.value); + }, + toProto(message) { + return MsgRegisterAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + value: MsgRegisterAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTx() { + return { + owner: "", + connectionId: "", + msg: undefined + }; +} +export const MsgSubmitTx = { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + encode(message, writer = BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.msg !== undefined) { + Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.msg = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitTx(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.msg = object.msg !== undefined && object.msg !== null ? Any.fromPartial(object.msg) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitTx(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.msg !== undefined && object.msg !== null) { + message.msg = Any.fromAmino(object.msg); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.msg = message.msg ? Any.toAmino(message.msg) : undefined; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSubmitTx.decode(message.value); + }, + toProto(message) { + return MsgSubmitTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTxResponse() { + return {}; +} +export const MsgSubmitTxResponse = { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return MsgSubmitTxResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return MsgSubmitTxResponse.decode(message.value); + }, + toProto(message) { + return MsgSubmitTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + value: MsgSubmitTxResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.registry.js b/packages/api/dist/esm/regen/intertx/v1/tx.registry.js new file mode 100644 index 00000000..ff78df35 --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/tx.registry.js @@ -0,0 +1,51 @@ +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export const registry = [["/regen.intertx.v1.MsgRegisterAccount", MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", MsgSubmitTx]]; +export const load = (protoRegistry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.encode(value).finish() + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.encode(value).finish() + }; + } + }, + withTypeUrl: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value + }; + } + }, + fromPartial: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.fromPartial(value) + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js new file mode 100644 index 00000000..ad15416e --- /dev/null +++ b/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js @@ -0,0 +1,20 @@ +import { BinaryReader } from "../../../binary"; +import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; +export class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.registerAccount = this.registerAccount.bind(this); + this.submitTx = this.submitTx.bind(this); + } + registerAccount(request) { + const data = MsgRegisterAccount.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); + return promise.then(data => MsgRegisterAccountResponse.decode(new BinaryReader(data))); + } + submitTx(request) { + const data = MsgSubmitTx.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); + return promise.then(data => MsgSubmitTxResponse.decode(new BinaryReader(data))); + } +} diff --git a/packages/api/dist/esm/regen/lcd.js b/packages/api/dist/esm/regen/lcd.js new file mode 100644 index 00000000..c621697b --- /dev/null +++ b/packages/api/dist/esm/regen/lcd.js @@ -0,0 +1,111 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + regen: { + data: { + v1: new (await import("./data/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + ecocredit: { + basket: { + v1: new (await import("./ecocredit/basket/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + marketplace: { + v1: new (await import("./ecocredit/marketplace/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + v1: new (await import("./ecocredit/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1alpha1: new (await import("./ecocredit/v1alpha1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + intertx: { + v1: new (await import("./intertx/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + }; +}; diff --git a/packages/api/dist/esm/regen/rpc.query.js b/packages/api/dist/esm/regen/rpc.query.js new file mode 100644 index 00000000..3264f19b --- /dev/null +++ b/packages/api/dist/esm/regen/rpc.query.js @@ -0,0 +1,71 @@ +//@ts-nocheck +import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + regen: { + data: { + v1: (await import("./data/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + ecocredit: { + basket: { + v1: (await import("./ecocredit/basket/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + marketplace: { + v1: (await import("./ecocredit/marketplace/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + v1: (await import("./ecocredit/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1alpha1: (await import("./ecocredit/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) + }, + intertx: { + v1: (await import("./intertx/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; diff --git a/packages/api/dist/esm/regen/rpc.tx.js b/packages/api/dist/esm/regen/rpc.tx.js new file mode 100644 index 00000000..1f001964 --- /dev/null +++ b/packages/api/dist/esm/regen/rpc.tx.js @@ -0,0 +1,50 @@ +export const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + regen: { + data: { + v1: new (await import("./data/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + ecocredit: { + basket: { + v1: new (await import("./ecocredit/basket/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + marketplace: { + v1: new (await import("./ecocredit/marketplace/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + v1: new (await import("./ecocredit/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1alpha1: new (await import("./ecocredit/v1alpha1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + intertx: { + v1: new (await import("./intertx/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); diff --git a/packages/api/dist/esm/tendermint/abci/types.js b/packages/api/dist/esm/tendermint/abci/types.js new file mode 100644 index 00000000..84a05096 --- /dev/null +++ b/packages/api/dist/esm/tendermint/abci/types.js @@ -0,0 +1,4622 @@ +//@ts-nocheck +import { Timestamp } from "../../google/protobuf/timestamp"; +import { ConsensusParams } from "../types/params"; +import { Header } from "../types/types"; +import { ProofOps } from "../crypto/proof"; +import { PublicKey } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../helpers"; +export var CheckTxType; +(function (CheckTxType) { + CheckTxType[CheckTxType["NEW"] = 0] = "NEW"; + CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK"; + CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(CheckTxType || (CheckTxType = {})); +export const CheckTxTypeSDKType = CheckTxType; +export const CheckTxTypeAmino = CheckTxType; +export function checkTxTypeFromJSON(object) { + switch (object) { + case 0: + case "NEW": + return CheckTxType.NEW; + case 1: + case "RECHECK": + return CheckTxType.RECHECK; + case -1: + case "UNRECOGNIZED": + default: + return CheckTxType.UNRECOGNIZED; + } +} +export function checkTxTypeToJSON(object) { + switch (object) { + case CheckTxType.NEW: + return "NEW"; + case CheckTxType.RECHECK: + return "RECHECK"; + case CheckTxType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var ResponseOfferSnapshot_Result; +(function (ResponseOfferSnapshot_Result) { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNKNOWN"] = 0] = "UNKNOWN"; + /** ACCEPT - Snapshot accepted, apply chunks */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ACCEPT"] = 1] = "ACCEPT"; + /** ABORT - Abort all snapshot restoration */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ABORT"] = 2] = "ABORT"; + /** REJECT - Reject this specific snapshot, try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT"] = 3] = "REJECT"; + /** REJECT_FORMAT - Reject all snapshots of this format, try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_FORMAT"] = 4] = "REJECT_FORMAT"; + /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_SENDER"] = 5] = "REJECT_SENDER"; + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseOfferSnapshot_Result || (ResponseOfferSnapshot_Result = {})); +export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; +export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; +export function responseOfferSnapshot_ResultFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseOfferSnapshot_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseOfferSnapshot_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseOfferSnapshot_Result.ABORT; + case 3: + case "REJECT": + return ResponseOfferSnapshot_Result.REJECT; + case 4: + case "REJECT_FORMAT": + return ResponseOfferSnapshot_Result.REJECT_FORMAT; + case 5: + case "REJECT_SENDER": + return ResponseOfferSnapshot_Result.REJECT_SENDER; + case -1: + case "UNRECOGNIZED": + default: + return ResponseOfferSnapshot_Result.UNRECOGNIZED; + } +} +export function responseOfferSnapshot_ResultToJSON(object) { + switch (object) { + case ResponseOfferSnapshot_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseOfferSnapshot_Result.ACCEPT: + return "ACCEPT"; + case ResponseOfferSnapshot_Result.ABORT: + return "ABORT"; + case ResponseOfferSnapshot_Result.REJECT: + return "REJECT"; + case ResponseOfferSnapshot_Result.REJECT_FORMAT: + return "REJECT_FORMAT"; + case ResponseOfferSnapshot_Result.REJECT_SENDER: + return "REJECT_SENDER"; + case ResponseOfferSnapshot_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var ResponseApplySnapshotChunk_Result; +(function (ResponseApplySnapshotChunk_Result) { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNKNOWN"] = 0] = "UNKNOWN"; + /** ACCEPT - Chunk successfully accepted */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ACCEPT"] = 1] = "ACCEPT"; + /** ABORT - Abort all snapshot restoration */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ABORT"] = 2] = "ABORT"; + /** RETRY - Retry chunk (combine with refetch and reject) */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY"] = 3] = "RETRY"; + /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY_SNAPSHOT"] = 4] = "RETRY_SNAPSHOT"; + /** REJECT_SNAPSHOT - Reject this snapshot, try others */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["REJECT_SNAPSHOT"] = 5] = "REJECT_SNAPSHOT"; + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseApplySnapshotChunk_Result || (ResponseApplySnapshotChunk_Result = {})); +export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; +export const ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; +export function responseApplySnapshotChunk_ResultFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseApplySnapshotChunk_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseApplySnapshotChunk_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseApplySnapshotChunk_Result.ABORT; + case 3: + case "RETRY": + return ResponseApplySnapshotChunk_Result.RETRY; + case 4: + case "RETRY_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; + case 5: + case "REJECT_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; + } +} +export function responseApplySnapshotChunk_ResultToJSON(object) { + switch (object) { + case ResponseApplySnapshotChunk_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseApplySnapshotChunk_Result.ACCEPT: + return "ACCEPT"; + case ResponseApplySnapshotChunk_Result.ABORT: + return "ABORT"; + case ResponseApplySnapshotChunk_Result.RETRY: + return "RETRY"; + case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: + return "RETRY_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: + return "REJECT_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var ResponseProcessProposal_ProposalStatus; +(function (ResponseProcessProposal_ProposalStatus) { + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseProcessProposal_ProposalStatus || (ResponseProcessProposal_ProposalStatus = {})); +export const ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; +export const ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; +export function responseProcessProposal_ProposalStatusFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseProcessProposal_ProposalStatus.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseProcessProposal_ProposalStatus.ACCEPT; + case 2: + case "REJECT": + return ResponseProcessProposal_ProposalStatus.REJECT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; + } +} +export function responseProcessProposal_ProposalStatusToJSON(object) { + switch (object) { + case ResponseProcessProposal_ProposalStatus.UNKNOWN: + return "UNKNOWN"; + case ResponseProcessProposal_ProposalStatus.ACCEPT: + return "ACCEPT"; + case ResponseProcessProposal_ProposalStatus.REJECT: + return "REJECT"; + case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export var MisbehaviorType; +(function (MisbehaviorType) { + MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN"; + MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE"; + MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK"; + MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(MisbehaviorType || (MisbehaviorType = {})); +export const MisbehaviorTypeSDKType = MisbehaviorType; +export const MisbehaviorTypeAmino = MisbehaviorType; +export function misbehaviorTypeFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return MisbehaviorType.UNKNOWN; + case 1: + case "DUPLICATE_VOTE": + return MisbehaviorType.DUPLICATE_VOTE; + case 2: + case "LIGHT_CLIENT_ATTACK": + return MisbehaviorType.LIGHT_CLIENT_ATTACK; + case -1: + case "UNRECOGNIZED": + default: + return MisbehaviorType.UNRECOGNIZED; + } +} +export function misbehaviorTypeToJSON(object) { + switch (object) { + case MisbehaviorType.UNKNOWN: + return "UNKNOWN"; + case MisbehaviorType.DUPLICATE_VOTE: + return "DUPLICATE_VOTE"; + case MisbehaviorType.LIGHT_CLIENT_ATTACK: + return "LIGHT_CLIENT_ATTACK"; + case MisbehaviorType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBaseRequest() { + return { + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +export const Request = { + typeUrl: "/tendermint.abci.Request", + encode(message, writer = BinaryWriter.create()) { + if (message.echo !== undefined) { + RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); + } + if (message.flush !== undefined) { + RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); + } + if (message.info !== undefined) { + RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); + } + if (message.initChain !== undefined) { + RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); + } + if (message.query !== undefined) { + RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); + } + if (message.commit !== undefined) { + RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.echo = RequestEcho.decode(reader, reader.uint32()); + break; + case 2: + message.flush = RequestFlush.decode(reader, reader.uint32()); + break; + case 3: + message.info = RequestInfo.decode(reader, reader.uint32()); + break; + case 5: + message.initChain = RequestInitChain.decode(reader, reader.uint32()); + break; + case 6: + message.query = RequestQuery.decode(reader, reader.uint32()); + break; + case 7: + message.beginBlock = RequestBeginBlock.decode(reader, reader.uint32()); + break; + case 8: + message.checkTx = RequestCheckTx.decode(reader, reader.uint32()); + break; + case 9: + message.deliverTx = RequestDeliverTx.decode(reader, reader.uint32()); + break; + case 10: + message.endBlock = RequestEndBlock.decode(reader, reader.uint32()); + break; + case 11: + message.commit = RequestCommit.decode(reader, reader.uint32()); + break; + case 12: + message.listSnapshots = RequestListSnapshots.decode(reader, reader.uint32()); + break; + case 13: + message.offerSnapshot = RequestOfferSnapshot.decode(reader, reader.uint32()); + break; + case 14: + message.loadSnapshotChunk = RequestLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 15: + message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32()); + break; + case 17: + message.processProposal = RequestProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequest(); + message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? RequestInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? RequestInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? RequestQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? RequestBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? RequestCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? RequestDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? RequestEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? RequestCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? RequestProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRequest(); + if (object.echo !== undefined && object.echo !== null) { + message.echo = RequestEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = RequestFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = RequestInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = RequestInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = RequestQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = RequestBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = RequestCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = RequestDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = RequestEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = RequestCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = RequestListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = RequestOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = RequestPrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = RequestProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.echo = message.echo ? RequestEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? RequestFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? RequestInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? RequestInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? RequestQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? RequestBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? RequestCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? RequestDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? RequestEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? RequestCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? RequestListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? RequestProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Request.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Request.decode(message.value); + }, + toProto(message) { + return Request.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Request", + value: Request.encode(message).finish() + }; + } +}; +function createBaseRequestEcho() { + return { + message: "" + }; +} +export const RequestEcho = { + typeUrl: "/tendermint.abci.RequestEcho", + encode(message, writer = BinaryWriter.create()) { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object) { + return RequestEcho.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestEcho.decode(message.value); + }, + toProto(message) { + return RequestEcho.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestEcho", + value: RequestEcho.encode(message).finish() + }; + } +}; +function createBaseRequestFlush() { + return {}; +} +export const RequestFlush = { + typeUrl: "/tendermint.abci.RequestFlush", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestFlush(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestFlush(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return RequestFlush.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestFlush.decode(message.value); + }, + toProto(message) { + return RequestFlush.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestFlush", + value: RequestFlush.encode(message).finish() + }; + } +}; +function createBaseRequestInfo() { + return { + version: "", + blockVersion: BigInt(0), + p2pVersion: BigInt(0), + abciVersion: "" + }; +} +export const RequestInfo = { + typeUrl: "/tendermint.abci.RequestInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.version !== "") { + writer.uint32(10).string(message.version); + } + if (message.blockVersion !== BigInt(0)) { + writer.uint32(16).uint64(message.blockVersion); + } + if (message.p2pVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.p2pVersion); + } + if (message.abciVersion !== "") { + writer.uint32(34).string(message.abciVersion); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.blockVersion = reader.uint64(); + break; + case 3: + message.p2pVersion = reader.uint64(); + break; + case 4: + message.abciVersion = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestInfo(); + message.version = object.version ?? ""; + message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); + message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); + message.abciVersion = object.abciVersion ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestInfo(); + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.block_version !== undefined && object.block_version !== null) { + message.blockVersion = BigInt(object.block_version); + } + if (object.p2p_version !== undefined && object.p2p_version !== null) { + message.p2pVersion = BigInt(object.p2p_version); + } + if (object.abci_version !== undefined && object.abci_version !== null) { + message.abciVersion = object.abci_version; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.version = message.version === "" ? undefined : message.version; + obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; + obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; + obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; + return obj; + }, + fromAminoMsg(object) { + return RequestInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestInfo.decode(message.value); + }, + toProto(message) { + return RequestInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestInfo", + value: RequestInfo.encode(message).finish() + }; + } +}; +function createBaseRequestInitChain() { + return { + time: new Date(), + chainId: "", + consensusParams: undefined, + validators: [], + appStateBytes: new Uint8Array(), + initialHeight: BigInt(0) + }; +} +export const RequestInitChain = { + typeUrl: "/tendermint.abci.RequestInitChain", + encode(message, writer = BinaryWriter.create()) { + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.consensusParams !== undefined) { + ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + ValidatorUpdate.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.appStateBytes.length !== 0) { + writer.uint32(42).bytes(message.appStateBytes); + } + if (message.initialHeight !== BigInt(0)) { + writer.uint32(48).int64(message.initialHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); + break; + case 4: + message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 5: + message.appStateBytes = reader.bytes(); + break; + case 6: + message.initialHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestInitChain(); + message.time = object.time ?? undefined; + message.chainId = object.chainId ?? ""; + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.appStateBytes = object.appStateBytes ?? new Uint8Array(); + message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseRequestInitChain(); + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { + message.appStateBytes = bytesFromBase64(object.app_state_bytes); + } + if (object.initial_height !== undefined && object.initial_height !== null) { + message.initialHeight = BigInt(object.initial_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.app_state_bytes = message.appStateBytes ? base64FromBytes(message.appStateBytes) : undefined; + obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestInitChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestInitChain.decode(message.value); + }, + toProto(message) { + return RequestInitChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestInitChain", + value: RequestInitChain.encode(message).finish() + }; + } +}; +function createBaseRequestQuery() { + return { + data: new Uint8Array(), + path: "", + height: BigInt(0), + prove: false + }; +} +export const RequestQuery = { + typeUrl: "/tendermint.abci.RequestQuery", + encode(message, writer = BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.prove === true) { + writer.uint32(32).bool(message.prove); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.path = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.prove = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestQuery(); + message.data = object.data ?? new Uint8Array(); + message.path = object.path ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.prove = object.prove ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseRequestQuery(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.prove !== undefined && object.prove !== null) { + message.prove = object.prove; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.path = message.path === "" ? undefined : message.path; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.prove = message.prove === false ? undefined : message.prove; + return obj; + }, + fromAminoMsg(object) { + return RequestQuery.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestQuery.decode(message.value); + }, + toProto(message) { + return RequestQuery.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestQuery", + value: RequestQuery.encode(message).finish() + }; + } +}; +function createBaseRequestBeginBlock() { + return { + hash: new Uint8Array(), + header: Header.fromPartial({}), + lastCommitInfo: CommitInfo.fromPartial({}), + byzantineValidators: [] + }; +} +export const RequestBeginBlock = { + typeUrl: "/tendermint.abci.RequestBeginBlock", + encode(message, writer = BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(18).fork()).ldelim(); + } + if (message.lastCommitInfo !== undefined) { + CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.byzantineValidators) { + Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.header = Header.decode(reader, reader.uint32()); + break; + case 3: + message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestBeginBlock(); + message.hash = object.hash ?? new Uint8Array(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? CommitInfo.fromPartial(object.lastCommitInfo) : undefined; + message.byzantineValidators = object.byzantineValidators?.map(e => Misbehavior.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRequestBeginBlock(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.last_commit_info !== undefined && object.last_commit_info !== null) { + message.lastCommitInfo = CommitInfo.fromAmino(object.last_commit_info); + } + message.byzantineValidators = object.byzantine_validators?.map(e => Misbehavior.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.last_commit_info = message.lastCommitInfo ? CommitInfo.toAmino(message.lastCommitInfo) : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? Misbehavior.toAmino(e) : undefined); + } + else { + obj.byzantine_validators = message.byzantineValidators; + } + return obj; + }, + fromAminoMsg(object) { + return RequestBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestBeginBlock.decode(message.value); + }, + toProto(message) { + return RequestBeginBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestBeginBlock", + value: RequestBeginBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCheckTx() { + return { + tx: new Uint8Array(), + type: 0 + }; +} +export const RequestCheckTx = { + typeUrl: "/tendermint.abci.RequestCheckTx", + encode(message, writer = BinaryWriter.create()) { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + if (message.type !== 0) { + writer.uint32(16).int32(message.type); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestCheckTx(); + message.tx = object.tx ?? new Uint8Array(); + message.type = object.type ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseRequestCheckTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + obj.type = message.type === 0 ? undefined : message.type; + return obj; + }, + fromAminoMsg(object) { + return RequestCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestCheckTx.decode(message.value); + }, + toProto(message) { + return RequestCheckTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestCheckTx", + value: RequestCheckTx.encode(message).finish() + }; + } +}; +function createBaseRequestDeliverTx() { + return { + tx: new Uint8Array() + }; +} +export const RequestDeliverTx = { + typeUrl: "/tendermint.abci.RequestDeliverTx", + encode(message, writer = BinaryWriter.create()) { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestDeliverTx(); + message.tx = object.tx ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestDeliverTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestDeliverTx.decode(message.value); + }, + toProto(message) { + return RequestDeliverTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestDeliverTx", + value: RequestDeliverTx.encode(message).finish() + }; + } +}; +function createBaseRequestEndBlock() { + return { + height: BigInt(0) + }; +} +export const RequestEndBlock = { + typeUrl: "/tendermint.abci.RequestEndBlock", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestEndBlock(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseRequestEndBlock(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestEndBlock.decode(message.value); + }, + toProto(message) { + return RequestEndBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestEndBlock", + value: RequestEndBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCommit() { + return {}; +} +export const RequestCommit = { + typeUrl: "/tendermint.abci.RequestCommit", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestCommit(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestCommit(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return RequestCommit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestCommit.decode(message.value); + }, + toProto(message) { + return RequestCommit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestCommit", + value: RequestCommit.encode(message).finish() + }; + } +}; +function createBaseRequestListSnapshots() { + return {}; +} +export const RequestListSnapshots = { + typeUrl: "/tendermint.abci.RequestListSnapshots", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestListSnapshots(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestListSnapshots(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return RequestListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestListSnapshots.decode(message.value); + }, + toProto(message) { + return RequestListSnapshots.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestListSnapshots", + value: RequestListSnapshots.encode(message).finish() + }; + } +}; +function createBaseRequestOfferSnapshot() { + return { + snapshot: undefined, + appHash: new Uint8Array() + }; +} +export const RequestOfferSnapshot = { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + encode(message, writer = BinaryWriter.create()) { + if (message.snapshot !== undefined) { + Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(18).bytes(message.appHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshot = Snapshot.decode(reader, reader.uint32()); + break; + case 2: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestOfferSnapshot(); + message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestOfferSnapshot(); + if (object.snapshot !== undefined && object.snapshot !== null) { + message.snapshot = Snapshot.fromAmino(object.snapshot); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.snapshot = message.snapshot ? Snapshot.toAmino(message.snapshot) : undefined; + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestOfferSnapshot.decode(message.value); + }, + toProto(message) { + return RequestOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + value: RequestOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseRequestLoadSnapshotChunk() { + return { + height: BigInt(0), + format: 0, + chunk: 0 + }; +} +export const RequestLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunk !== 0) { + writer.uint32(24).uint32(message.chunk); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunk = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestLoadSnapshotChunk(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunk = object.chunk ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseRequestLoadSnapshotChunk(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = object.chunk; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunk = message.chunk === 0 ? undefined : message.chunk; + return obj; + }, + fromAminoMsg(object) { + return RequestLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestLoadSnapshotChunk.decode(message.value); + }, + toProto(message) { + return RequestLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + value: RequestLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestApplySnapshotChunk() { + return { + index: 0, + chunk: new Uint8Array(), + sender: "" + }; +} +export const RequestApplySnapshotChunk = { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + encode(message, writer = BinaryWriter.create()) { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.chunk.length !== 0) { + writer.uint32(18).bytes(message.chunk); + } + if (message.sender !== "") { + writer.uint32(26).string(message.sender); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.chunk = reader.bytes(); + break; + case 3: + message.sender = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestApplySnapshotChunk(); + message.index = object.index ?? 0; + message.chunk = object.chunk ?? new Uint8Array(); + message.sender = object.sender ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestApplySnapshotChunk(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = bytesFromBase64(object.chunk); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + return obj; + }, + fromAminoMsg(object) { + return RequestApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestApplySnapshotChunk.decode(message.value); + }, + toProto(message) { + return RequestApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + value: RequestApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestPrepareProposal() { + return { + maxTxBytes: BigInt(0), + txs: [], + localLastCommit: ExtendedCommitInfo.fromPartial({}), + misbehavior: [], + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const RequestPrepareProposal = { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.maxTxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxTxBytes); + } + for (const v of message.txs) { + writer.uint32(18).bytes(v); + } + if (message.localLastCommit !== undefined) { + ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.misbehavior) { + Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestPrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTxBytes = reader.int64(); + break; + case 2: + message.txs.push(reader.bytes()); + break; + case 3: + message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestPrepareProposal(); + message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); + message.txs = object.txs?.map(e => e) || []; + message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestPrepareProposal(); + if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { + message.maxTxBytes = BigInt(object.max_tx_bytes); + } + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + if (object.local_last_commit !== undefined && object.local_last_commit !== null) { + message.localLastCommit = ExtendedCommitInfo.fromAmino(object.local_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } + else { + obj.txs = message.txs; + } + obj.local_last_commit = message.localLastCommit ? ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); + } + else { + obj.misbehavior = message.misbehavior; + } + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestPrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestPrepareProposal.decode(message.value); + }, + toProto(message) { + return RequestPrepareProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + value: RequestPrepareProposal.encode(message).finish() + }; + } +}; +function createBaseRequestProcessProposal() { + return { + txs: [], + proposedLastCommit: CommitInfo.fromPartial({}), + misbehavior: [], + hash: new Uint8Array(), + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const RequestProcessProposal = { + typeUrl: "/tendermint.abci.RequestProcessProposal", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + if (message.proposedLastCommit !== undefined) { + CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.misbehavior) { + Misbehavior.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + case 2: + message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32()); + break; + case 3: + message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => e) || []; + message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? CommitInfo.fromPartial(object.proposedLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; + message.hash = object.hash ?? new Uint8Array(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { + message.proposedLastCommit = CommitInfo.fromAmino(object.proposed_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } + else { + obj.txs = message.txs; + } + obj.proposed_last_commit = message.proposedLastCommit ? CommitInfo.toAmino(message.proposedLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); + } + else { + obj.misbehavior = message.misbehavior; + } + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return RequestProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return RequestProcessProposal.decode(message.value); + }, + toProto(message) { + return RequestProcessProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestProcessProposal", + value: RequestProcessProposal.encode(message).finish() + }; + } +}; +function createBaseResponse() { + return { + exception: undefined, + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +export const Response = { + typeUrl: "/tendermint.abci.Response", + encode(message, writer = BinaryWriter.create()) { + if (message.exception !== undefined) { + ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); + } + if (message.echo !== undefined) { + ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); + } + if (message.flush !== undefined) { + ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); + } + if (message.info !== undefined) { + ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); + } + if (message.initChain !== undefined) { + ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); + } + if (message.query !== undefined) { + ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); + } + if (message.commit !== undefined) { + ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exception = ResponseException.decode(reader, reader.uint32()); + break; + case 2: + message.echo = ResponseEcho.decode(reader, reader.uint32()); + break; + case 3: + message.flush = ResponseFlush.decode(reader, reader.uint32()); + break; + case 4: + message.info = ResponseInfo.decode(reader, reader.uint32()); + break; + case 6: + message.initChain = ResponseInitChain.decode(reader, reader.uint32()); + break; + case 7: + message.query = ResponseQuery.decode(reader, reader.uint32()); + break; + case 8: + message.beginBlock = ResponseBeginBlock.decode(reader, reader.uint32()); + break; + case 9: + message.checkTx = ResponseCheckTx.decode(reader, reader.uint32()); + break; + case 10: + message.deliverTx = ResponseDeliverTx.decode(reader, reader.uint32()); + break; + case 11: + message.endBlock = ResponseEndBlock.decode(reader, reader.uint32()); + break; + case 12: + message.commit = ResponseCommit.decode(reader, reader.uint32()); + break; + case 13: + message.listSnapshots = ResponseListSnapshots.decode(reader, reader.uint32()); + break; + case 14: + message.offerSnapshot = ResponseOfferSnapshot.decode(reader, reader.uint32()); + break; + case 15: + message.loadSnapshotChunk = ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 17: + message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32()); + break; + case 18: + message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponse(); + message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined; + message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? ResponseFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? ResponseInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? ResponseInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? ResponseQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? ResponseCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? ResponseEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? ResponseCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? ResponseProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseResponse(); + if (object.exception !== undefined && object.exception !== null) { + message.exception = ResponseException.fromAmino(object.exception); + } + if (object.echo !== undefined && object.echo !== null) { + message.echo = ResponseEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = ResponseFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = ResponseInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = ResponseInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = ResponseQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = ResponseBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = ResponseCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = ResponseDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = ResponseEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = ResponseCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = ResponseListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = ResponseOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = ResponsePrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = ResponseProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.exception = message.exception ? ResponseException.toAmino(message.exception) : undefined; + obj.echo = message.echo ? ResponseEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? ResponseFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? ResponseInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? ResponseInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? ResponseQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? ResponseBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? ResponseCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? ResponseDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? ResponseEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? ResponseCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? ResponseProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Response.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Response.decode(message.value); + }, + toProto(message) { + return Response.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Response", + value: Response.encode(message).finish() + }; + } +}; +function createBaseResponseException() { + return { + error: "" + }; +} +export const ResponseException = { + typeUrl: "/tendermint.abci.ResponseException", + encode(message, writer = BinaryWriter.create()) { + if (message.error !== "") { + writer.uint32(10).string(message.error); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseException(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseException(); + message.error = object.error ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseException(); + if (object.error !== undefined && object.error !== null) { + message.error = object.error; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.error = message.error === "" ? undefined : message.error; + return obj; + }, + fromAminoMsg(object) { + return ResponseException.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseException.decode(message.value); + }, + toProto(message) { + return ResponseException.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseException", + value: ResponseException.encode(message).finish() + }; + } +}; +function createBaseResponseEcho() { + return { + message: "" + }; +} +export const ResponseEcho = { + typeUrl: "/tendermint.abci.ResponseEcho", + encode(message, writer = BinaryWriter.create()) { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object) { + return ResponseEcho.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseEcho.decode(message.value); + }, + toProto(message) { + return ResponseEcho.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseEcho", + value: ResponseEcho.encode(message).finish() + }; + } +}; +function createBaseResponseFlush() { + return {}; +} +export const ResponseFlush = { + typeUrl: "/tendermint.abci.ResponseFlush", + encode(_, writer = BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseResponseFlush(); + return message; + }, + fromAmino(_) { + const message = createBaseResponseFlush(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return ResponseFlush.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseFlush.decode(message.value); + }, + toProto(message) { + return ResponseFlush.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseFlush", + value: ResponseFlush.encode(message).finish() + }; + } +}; +function createBaseResponseInfo() { + return { + data: "", + version: "", + appVersion: BigInt(0), + lastBlockHeight: BigInt(0), + lastBlockAppHash: new Uint8Array() + }; +} +export const ResponseInfo = { + typeUrl: "/tendermint.abci.ResponseInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.data !== "") { + writer.uint32(10).string(message.data); + } + if (message.version !== "") { + writer.uint32(18).string(message.version); + } + if (message.appVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.appVersion); + } + if (message.lastBlockHeight !== BigInt(0)) { + writer.uint32(32).int64(message.lastBlockHeight); + } + if (message.lastBlockAppHash.length !== 0) { + writer.uint32(42).bytes(message.lastBlockAppHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.string(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.appVersion = reader.uint64(); + break; + case 4: + message.lastBlockHeight = reader.int64(); + break; + case 5: + message.lastBlockAppHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseInfo(); + message.data = object.data ?? ""; + message.version = object.version ?? ""; + message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); + message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); + message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseInfo(); + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.app_version !== undefined && object.app_version !== null) { + message.appVersion = BigInt(object.app_version); + } + if (object.last_block_height !== undefined && object.last_block_height !== null) { + message.lastBlockHeight = BigInt(object.last_block_height); + } + if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { + message.lastBlockAppHash = bytesFromBase64(object.last_block_app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data === "" ? undefined : message.data; + obj.version = message.version === "" ? undefined : message.version; + obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; + obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; + obj.last_block_app_hash = message.lastBlockAppHash ? base64FromBytes(message.lastBlockAppHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ResponseInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseInfo.decode(message.value); + }, + toProto(message) { + return ResponseInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseInfo", + value: ResponseInfo.encode(message).finish() + }; + } +}; +function createBaseResponseInitChain() { + return { + consensusParams: undefined, + validators: [], + appHash: new Uint8Array() + }; +} +export const ResponseInitChain = { + typeUrl: "/tendermint.abci.ResponseInitChain", + encode(message, writer = BinaryWriter.create()) { + if (message.consensusParams !== undefined) { + ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.validators) { + ValidatorUpdate.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(26).bytes(message.appHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); + break; + case 2: + message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 3: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseInitChain(); + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseInitChain(); + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ResponseInitChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseInitChain.decode(message.value); + }, + toProto(message) { + return ResponseInitChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseInitChain", + value: ResponseInitChain.encode(message).finish() + }; + } +}; +function createBaseResponseQuery() { + return { + code: 0, + log: "", + info: "", + index: BigInt(0), + key: new Uint8Array(), + value: new Uint8Array(), + proofOps: undefined, + height: BigInt(0), + codespace: "" + }; +} +export const ResponseQuery = { + typeUrl: "/tendermint.abci.ResponseQuery", + encode(message, writer = BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.index !== BigInt(0)) { + writer.uint32(40).int64(message.index); + } + if (message.key.length !== 0) { + writer.uint32(50).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(58).bytes(message.value); + } + if (message.proofOps !== undefined) { + ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(72).int64(message.height); + } + if (message.codespace !== "") { + writer.uint32(82).string(message.codespace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.index = reader.int64(); + break; + case 6: + message.key = reader.bytes(); + break; + case 7: + message.value = reader.bytes(); + break; + case 8: + message.proofOps = ProofOps.decode(reader, reader.uint32()); + break; + case 9: + message.height = reader.int64(); + break; + case 10: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseQuery(); + message.code = object.code ?? 0; + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseQuery(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = bytesFromBase64(object.value); + } + if (object.proof_ops !== undefined && object.proof_ops !== null) { + message.proofOps = ProofOps.fromAmino(object.proof_ops); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.value = message.value ? base64FromBytes(message.value) : undefined; + obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object) { + return ResponseQuery.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseQuery.decode(message.value); + }, + toProto(message) { + return ResponseQuery.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseQuery", + value: ResponseQuery.encode(message).finish() + }; + } +}; +function createBaseResponseBeginBlock() { + return { + events: [] + }; +} +export const ResponseBeginBlock = { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.events) { + Event.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return ResponseBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseBeginBlock.decode(message.value); + }, + toProto(message) { + return ResponseBeginBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + value: ResponseBeginBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCheckTx() { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "", + sender: "", + priority: BigInt(0), + mempoolError: "" + }; +} +export const ResponseCheckTx = { + typeUrl: "/tendermint.abci.ResponseCheckTx", + encode(message, writer = BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + Event.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + if (message.sender !== "") { + writer.uint32(74).string(message.sender); + } + if (message.priority !== BigInt(0)) { + writer.uint32(80).int64(message.priority); + } + if (message.mempoolError !== "") { + writer.uint32(90).string(message.mempoolError); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + case 9: + message.sender = reader.string(); + break; + case 10: + message.priority = reader.int64(); + break; + case 11: + message.mempoolError = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseCheckTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + message.sender = object.sender ?? ""; + message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); + message.mempoolError = object.mempoolError ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseCheckTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.priority !== undefined && object.priority !== null) { + message.priority = BigInt(object.priority); + } + if (object.mempool_error !== undefined && object.mempool_error !== null) { + message.mempoolError = object.mempool_error; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; + obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; + return obj; + }, + fromAminoMsg(object) { + return ResponseCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseCheckTx.decode(message.value); + }, + toProto(message) { + return ResponseCheckTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseCheckTx", + value: ResponseCheckTx.encode(message).finish() + }; + } +}; +function createBaseResponseDeliverTx() { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "" + }; +} +export const ResponseDeliverTx = { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + encode(message, writer = BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + Event.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseDeliverTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseDeliverTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object) { + return ResponseDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseDeliverTx.decode(message.value); + }, + toProto(message) { + return ResponseDeliverTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + value: ResponseDeliverTx.encode(message).finish() + }; + } +}; +function createBaseResponseEndBlock() { + return { + validatorUpdates: [], + consensusParamUpdates: undefined, + events: [] + }; +} +export const ResponseEndBlock = { + typeUrl: "/tendermint.abci.ResponseEndBlock", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validatorUpdates) { + ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusParamUpdates !== undefined) { + ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.events) { + Event.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorUpdates.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 2: + message.consensusParamUpdates = ConsensusParams.decode(reader, reader.uint32()); + break; + case 3: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validator_updates?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { + message.consensusParamUpdates = ConsensusParams.fromAmino(object.consensus_param_updates); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validatorUpdates) { + obj.validator_updates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validator_updates = message.validatorUpdates; + } + obj.consensus_param_updates = message.consensusParamUpdates ? ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return ResponseEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseEndBlock.decode(message.value); + }, + toProto(message) { + return ResponseEndBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseEndBlock", + value: ResponseEndBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCommit() { + return { + data: new Uint8Array(), + retainHeight: BigInt(0) + }; +} +export const ResponseCommit = { + typeUrl: "/tendermint.abci.ResponseCommit", + encode(message, writer = BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.retainHeight !== BigInt(0)) { + writer.uint32(24).int64(message.retainHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.data = reader.bytes(); + break; + case 3: + message.retainHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseCommit(); + message.data = object.data ?? new Uint8Array(); + message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseResponseCommit(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.retain_height !== undefined && object.retain_height !== null) { + message.retainHeight = BigInt(object.retain_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ResponseCommit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseCommit.decode(message.value); + }, + toProto(message) { + return ResponseCommit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseCommit", + value: ResponseCommit.encode(message).finish() + }; + } +}; +function createBaseResponseListSnapshots() { + return { + snapshots: [] + }; +} +export const ResponseListSnapshots = { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.snapshots) { + Snapshot.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshots.push(Snapshot.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => Snapshot.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.snapshots) { + obj.snapshots = message.snapshots.map(e => e ? Snapshot.toAmino(e) : undefined); + } + else { + obj.snapshots = message.snapshots; + } + return obj; + }, + fromAminoMsg(object) { + return ResponseListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseListSnapshots.decode(message.value); + }, + toProto(message) { + return ResponseListSnapshots.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + value: ResponseListSnapshots.encode(message).finish() + }; + } +}; +function createBaseResponseOfferSnapshot() { + return { + result: 0 + }; +} +export const ResponseOfferSnapshot = { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + encode(message, writer = BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseOfferSnapshot(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseResponseOfferSnapshot(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object) { + return ResponseOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseOfferSnapshot.decode(message.value); + }, + toProto(message) { + return ResponseOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + value: ResponseOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseResponseLoadSnapshotChunk() { + return { + chunk: new Uint8Array() + }; +} +export const ResponseLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + encode(message, writer = BinaryWriter.create()) { + if (message.chunk.length !== 0) { + writer.uint32(10).bytes(message.chunk); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chunk = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseLoadSnapshotChunk(); + message.chunk = object.chunk ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseLoadSnapshotChunk(); + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = bytesFromBase64(object.chunk); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ResponseLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseLoadSnapshotChunk.decode(message.value); + }, + toProto(message) { + return ResponseLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + value: ResponseLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponseApplySnapshotChunk() { + return { + result: 0, + refetchChunks: [], + rejectSenders: [] + }; +} +export const ResponseApplySnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + encode(message, writer = BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + writer.uint32(18).fork(); + for (const v of message.refetchChunks) { + writer.uint32(v); + } + writer.ldelim(); + for (const v of message.rejectSenders) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = reader.int32(); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.refetchChunks.push(reader.uint32()); + } + } + else { + message.refetchChunks.push(reader.uint32()); + } + break; + case 3: + message.rejectSenders.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseApplySnapshotChunk(); + message.result = object.result ?? 0; + message.refetchChunks = object.refetchChunks?.map(e => e) || []; + message.rejectSenders = object.rejectSenders?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseApplySnapshotChunk(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + message.refetchChunks = object.refetch_chunks?.map(e => e) || []; + message.rejectSenders = object.reject_senders?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + if (message.refetchChunks) { + obj.refetch_chunks = message.refetchChunks.map(e => e); + } + else { + obj.refetch_chunks = message.refetchChunks; + } + if (message.rejectSenders) { + obj.reject_senders = message.rejectSenders.map(e => e); + } + else { + obj.reject_senders = message.rejectSenders; + } + return obj; + }, + fromAminoMsg(object) { + return ResponseApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseApplySnapshotChunk.decode(message.value); + }, + toProto(message) { + return ResponseApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + value: ResponseApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponsePrepareProposal() { + return { + txs: [] + }; +} +export const ResponsePrepareProposal = { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponsePrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return ResponsePrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponsePrepareProposal.decode(message.value); + }, + toProto(message) { + return ResponsePrepareProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + value: ResponsePrepareProposal.encode(message).finish() + }; + } +}; +function createBaseResponseProcessProposal() { + return { + status: 0 + }; +} +export const ResponseProcessProposal = { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + encode(message, writer = BinaryWriter.create()) { + if (message.status !== 0) { + writer.uint32(8).int32(message.status); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseProcessProposal(); + message.status = object.status ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseResponseProcessProposal(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === 0 ? undefined : message.status; + return obj; + }, + fromAminoMsg(object) { + return ResponseProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ResponseProcessProposal.decode(message.value); + }, + toProto(message) { + return ResponseProcessProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + value: ResponseProcessProposal.encode(message).finish() + }; + } +}; +function createBaseCommitInfo() { + return { + round: 0, + votes: [] + }; +} +export const CommitInfo = { + typeUrl: "/tendermint.abci.CommitInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + VoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(VoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => VoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? VoteInfo.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return CommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CommitInfo.decode(message.value); + }, + toProto(message) { + return CommitInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.CommitInfo", + value: CommitInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedCommitInfo() { + return { + round: 0, + votes: [] + }; +} +export const ExtendedCommitInfo = { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + ExtendedVoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtendedCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => ExtendedVoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseExtendedCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => ExtendedVoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? ExtendedVoteInfo.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return ExtendedCommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ExtendedCommitInfo.decode(message.value); + }, + toProto(message) { + return ExtendedCommitInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + value: ExtendedCommitInfo.encode(message).finish() + }; + } +}; +function createBaseEvent() { + return { + type: "", + attributes: [] + }; +} +export const Event = { + typeUrl: "/tendermint.abci.Event", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + EventAttribute.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(EventAttribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => EventAttribute.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? EventAttribute.toAmino(e) : undefined); + } + else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object) { + return Event.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Event.decode(message.value); + }, + toProto(message) { + return Event.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Event", + value: Event.encode(message).finish() + }; + } +}; +function createBaseEventAttribute() { + return { + key: "", + value: "", + index: false + }; +} +export const EventAttribute = { + typeUrl: "/tendermint.abci.EventAttribute", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + if (message.index === true) { + writer.uint32(24).bool(message.index); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.index = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + message.index = object.index ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseEventAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + obj.index = message.index === false ? undefined : message.index; + return obj; + }, + fromAminoMsg(object) { + return EventAttribute.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EventAttribute.decode(message.value); + }, + toProto(message) { + return EventAttribute.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.EventAttribute", + value: EventAttribute.encode(message).finish() + }; + } +}; +function createBaseTxResult() { + return { + height: BigInt(0), + index: 0, + tx: new Uint8Array(), + result: ResponseDeliverTx.fromPartial({}) + }; +} +export const TxResult = { + typeUrl: "/tendermint.abci.TxResult", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.index !== 0) { + writer.uint32(16).uint32(message.index); + } + if (message.tx.length !== 0) { + writer.uint32(26).bytes(message.tx); + } + if (message.result !== undefined) { + ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.index = reader.uint32(); + break; + case 3: + message.tx = reader.bytes(); + break; + case 4: + message.result = ResponseDeliverTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxResult(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.index = object.index ?? 0; + message.tx = object.tx ?? new Uint8Array(); + message.result = object.result !== undefined && object.result !== null ? ResponseDeliverTx.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseTxResult(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + if (object.result !== undefined && object.result !== null) { + message.result = ResponseDeliverTx.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.index = message.index === 0 ? undefined : message.index; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + obj.result = message.result ? ResponseDeliverTx.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return TxResult.fromAmino(object.value); + }, + fromProtoMsg(message) { + return TxResult.decode(message.value); + }, + toProto(message) { + return TxResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.TxResult", + value: TxResult.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + address: new Uint8Array(), + power: BigInt(0) + }; +} +export const Validator = { + typeUrl: "/tendermint.abci.Validator", + encode(message, writer = BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(24).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 3: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Validator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Validator.decode(message.value); + }, + toProto(message) { + return Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseValidatorUpdate() { + return { + pubKey: PublicKey.fromPartial({}), + power: BigInt(0) + }; +} +export const ValidatorUpdate = { + typeUrl: "/tendermint.abci.ValidatorUpdate", + encode(message, writer = BinaryWriter.create()) { + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorUpdate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorUpdate(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorUpdate(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorUpdate.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ValidatorUpdate.decode(message.value); + }, + toProto(message) { + return ValidatorUpdate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ValidatorUpdate", + value: ValidatorUpdate.encode(message).finish() + }; + } +}; +function createBaseVoteInfo() { + return { + validator: Validator.fromPartial({}), + signedLastBlock: false + }; +} +export const VoteInfo = { + typeUrl: "/tendermint.abci.VoteInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + return obj; + }, + fromAminoMsg(object) { + return VoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return VoteInfo.decode(message.value); + }, + toProto(message) { + return VoteInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.VoteInfo", + value: VoteInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedVoteInfo() { + return { + validator: Validator.fromPartial({}), + signedLastBlock: false, + voteExtension: new Uint8Array() + }; +} +export const ExtendedVoteInfo = { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + if (message.voteExtension.length !== 0) { + writer.uint32(26).bytes(message.voteExtension); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + case 3: + message.voteExtension = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtendedVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + message.voteExtension = object.voteExtension ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseExtendedVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + if (object.vote_extension !== undefined && object.vote_extension !== null) { + message.voteExtension = bytesFromBase64(object.vote_extension); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + obj.vote_extension = message.voteExtension ? base64FromBytes(message.voteExtension) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ExtendedVoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ExtendedVoteInfo.decode(message.value); + }, + toProto(message) { + return ExtendedVoteInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + value: ExtendedVoteInfo.encode(message).finish() + }; + } +}; +function createBaseMisbehavior() { + return { + type: 0, + validator: Validator.fromPartial({}), + height: BigInt(0), + time: new Date(), + totalVotingPower: BigInt(0) + }; +} +export const Misbehavior = { + typeUrl: "/tendermint.abci.Misbehavior", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(40).int64(message.totalVotingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMisbehavior(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMisbehavior(); + message.type = object.type ?? 0; + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMisbehavior(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Misbehavior.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Misbehavior.decode(message.value); + }, + toProto(message) { + return Misbehavior.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Misbehavior", + value: Misbehavior.encode(message).finish() + }; + } +}; +function createBaseSnapshot() { + return { + height: BigInt(0), + format: 0, + chunks: 0, + hash: new Uint8Array(), + metadata: new Uint8Array() + }; +} +export const Snapshot = { + typeUrl: "/tendermint.abci.Snapshot", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunks !== 0) { + writer.uint32(24).uint32(message.chunks); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunks = reader.uint32(); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSnapshot(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunks = object.chunks ?? 0; + message.hash = object.hash ?? new Uint8Array(); + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSnapshot(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunks !== undefined && object.chunks !== null) { + message.chunks = object.chunks; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunks = message.chunks === 0 ? undefined : message.chunks; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Snapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Snapshot.decode(message.value); + }, + toProto(message) { + return Snapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Snapshot", + value: Snapshot.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/bundle.js b/packages/api/dist/esm/tendermint/bundle.js new file mode 100644 index 00000000..946f5e54 --- /dev/null +++ b/packages/api/dist/esm/tendermint/bundle.js @@ -0,0 +1,41 @@ +//@ts-nocheck +import * as _104 from "./abci/types"; +import * as _105 from "./crypto/keys"; +import * as _106 from "./crypto/proof"; +import * as _107 from "./libs/bits/types"; +import * as _108 from "./p2p/types"; +import * as _109 from "./types/block"; +import * as _110 from "./types/evidence"; +import * as _111 from "./types/params"; +import * as _112 from "./types/types"; +import * as _113 from "./types/validator"; +import * as _114 from "./version/types"; +export var tendermint; +(function (tendermint) { + tendermint.abci = { + ..._104 + }; + tendermint.crypto = { + ..._105, + ..._106 + }; + let libs; + (function (libs) { + libs.bits = { + ..._107 + }; + })(libs = tendermint.libs || (tendermint.libs = {})); + tendermint.p2p = { + ..._108 + }; + tendermint.types = { + ..._109, + ..._110, + ..._111, + ..._112, + ..._113 + }; + tendermint.version = { + ..._114 + }; +})(tendermint || (tendermint = {})); diff --git a/packages/api/dist/esm/tendermint/crypto/keys.js b/packages/api/dist/esm/tendermint/crypto/keys.js new file mode 100644 index 00000000..14bd6b05 --- /dev/null +++ b/packages/api/dist/esm/tendermint/crypto/keys.js @@ -0,0 +1,78 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +function createBasePublicKey() { + return { + ed25519: undefined, + secp256k1: undefined + }; +} +export const PublicKey = { + typeUrl: "/tendermint.crypto.PublicKey", + encode(message, writer = BinaryWriter.create()) { + if (message.ed25519 !== undefined) { + writer.uint32(10).bytes(message.ed25519); + } + if (message.secp256k1 !== undefined) { + writer.uint32(18).bytes(message.secp256k1); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePublicKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ed25519 = reader.bytes(); + break; + case 2: + message.secp256k1 = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePublicKey(); + message.ed25519 = object.ed25519 ?? undefined; + message.secp256k1 = object.secp256k1 ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBasePublicKey(); + if (object.ed25519 !== undefined && object.ed25519 !== null) { + message.ed25519 = bytesFromBase64(object.ed25519); + } + if (object.secp256k1 !== undefined && object.secp256k1 !== null) { + message.secp256k1 = bytesFromBase64(object.secp256k1); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.ed25519 = message.ed25519 ? base64FromBytes(message.ed25519) : undefined; + obj.secp256k1 = message.secp256k1 ? base64FromBytes(message.secp256k1) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PublicKey.fromAmino(object.value); + }, + fromProtoMsg(message) { + return PublicKey.decode(message.value); + }, + toProto(message) { + return PublicKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.PublicKey", + value: PublicKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/crypto/proof.js b/packages/api/dist/esm/tendermint/crypto/proof.js new file mode 100644 index 00000000..9ad154c7 --- /dev/null +++ b/packages/api/dist/esm/tendermint/crypto/proof.js @@ -0,0 +1,420 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +function createBaseProof() { + return { + total: BigInt(0), + index: BigInt(0), + leafHash: new Uint8Array(), + aunts: [] + }; +} +export const Proof = { + typeUrl: "/tendermint.crypto.Proof", + encode(message, writer = BinaryWriter.create()) { + if (message.total !== BigInt(0)) { + writer.uint32(8).int64(message.total); + } + if (message.index !== BigInt(0)) { + writer.uint32(16).int64(message.index); + } + if (message.leafHash.length !== 0) { + writer.uint32(26).bytes(message.leafHash); + } + for (const v of message.aunts) { + writer.uint32(34).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.int64(); + break; + case 2: + message.index = reader.int64(); + break; + case 3: + message.leafHash = reader.bytes(); + break; + case 4: + message.aunts.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProof(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.leafHash = object.leafHash ?? new Uint8Array(); + message.aunts = object.aunts?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProof(); + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.leaf_hash !== undefined && object.leaf_hash !== null) { + message.leafHash = bytesFromBase64(object.leaf_hash); + } + message.aunts = object.aunts?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined; + if (message.aunts) { + obj.aunts = message.aunts.map(e => base64FromBytes(e)); + } + else { + obj.aunts = message.aunts; + } + return obj; + }, + fromAminoMsg(object) { + return Proof.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Proof.decode(message.value); + }, + toProto(message) { + return Proof.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.Proof", + value: Proof.encode(message).finish() + }; + } +}; +function createBaseValueOp() { + return { + key: new Uint8Array(), + proof: undefined + }; +} +export const ValueOp = { + typeUrl: "/tendermint.crypto.ValueOp", + encode(message, writer = BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValueOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValueOp(); + message.key = object.key ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValueOp(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValueOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ValueOp.decode(message.value); + }, + toProto(message) { + return ValueOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ValueOp", + value: ValueOp.encode(message).finish() + }; + } +}; +function createBaseDominoOp() { + return { + key: "", + input: "", + output: "" + }; +} +export const DominoOp = { + typeUrl: "/tendermint.crypto.DominoOp", + encode(message, writer = BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.input !== "") { + writer.uint32(18).string(message.input); + } + if (message.output !== "") { + writer.uint32(26).string(message.output); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDominoOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.input = reader.string(); + break; + case 3: + message.output = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDominoOp(); + message.key = object.key ?? ""; + message.input = object.input ?? ""; + message.output = object.output ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDominoOp(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.input !== undefined && object.input !== null) { + message.input = object.input; + } + if (object.output !== undefined && object.output !== null) { + message.output = object.output; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.input = message.input === "" ? undefined : message.input; + obj.output = message.output === "" ? undefined : message.output; + return obj; + }, + fromAminoMsg(object) { + return DominoOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DominoOp.decode(message.value); + }, + toProto(message) { + return DominoOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.DominoOp", + value: DominoOp.encode(message).finish() + }; + } +}; +function createBaseProofOp() { + return { + type: "", + key: new Uint8Array(), + data: new Uint8Array() + }; +} +export const ProofOp = { + typeUrl: "/tendermint.crypto.ProofOp", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + if (message.key.length !== 0) { + writer.uint32(18).bytes(message.key); + } + if (message.data.length !== 0) { + writer.uint32(26).bytes(message.data); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.key = reader.bytes(); + break; + case 3: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProofOp(); + message.type = object.type ?? ""; + message.key = object.key ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseProofOp(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ProofOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ProofOp.decode(message.value); + }, + toProto(message) { + return ProofOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ProofOp", + value: ProofOp.encode(message).finish() + }; + } +}; +function createBaseProofOps() { + return { + ops: [] + }; +} +export const ProofOps = { + typeUrl: "/tendermint.crypto.ProofOps", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.ops) { + ProofOp.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOps(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ops.push(ProofOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.ops) { + obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); + } + else { + obj.ops = message.ops; + } + return obj; + }, + fromAminoMsg(object) { + return ProofOps.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ProofOps.decode(message.value); + }, + toProto(message) { + return ProofOps.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ProofOps", + value: ProofOps.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/libs/bits/types.js b/packages/api/dist/esm/tendermint/libs/bits/types.js new file mode 100644 index 00000000..efc3b5f1 --- /dev/null +++ b/packages/api/dist/esm/tendermint/libs/bits/types.js @@ -0,0 +1,90 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +function createBaseBitArray() { + return { + bits: BigInt(0), + elems: [] + }; +} +export const BitArray = { + typeUrl: "/tendermint.libs.bits.BitArray", + encode(message, writer = BinaryWriter.create()) { + if (message.bits !== BigInt(0)) { + writer.uint32(8).int64(message.bits); + } + writer.uint32(18).fork(); + for (const v of message.elems) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bits = reader.int64(); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.elems.push(reader.uint64()); + } + } + else { + message.elems.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBitArray(); + message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); + message.elems = object.elems?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object) { + const message = createBaseBitArray(); + if (object.bits !== undefined && object.bits !== null) { + message.bits = BigInt(object.bits); + } + message.elems = object.elems?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; + if (message.elems) { + obj.elems = message.elems.map(e => e.toString()); + } + else { + obj.elems = message.elems; + } + return obj; + }, + fromAminoMsg(object) { + return BitArray.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BitArray.decode(message.value); + }, + toProto(message) { + return BitArray.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.libs.bits.BitArray", + value: BitArray.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/p2p/types.js b/packages/api/dist/esm/tendermint/p2p/types.js new file mode 100644 index 00000000..efae0d92 --- /dev/null +++ b/packages/api/dist/esm/tendermint/p2p/types.js @@ -0,0 +1,399 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +function createBaseNetAddress() { + return { + id: "", + ip: "", + port: 0 + }; +} +export const NetAddress = { + typeUrl: "/tendermint.p2p.NetAddress", + encode(message, writer = BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.ip !== "") { + writer.uint32(18).string(message.ip); + } + if (message.port !== 0) { + writer.uint32(24).uint32(message.port); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.ip = reader.string(); + break; + case 3: + message.port = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseNetAddress(); + message.id = object.id ?? ""; + message.ip = object.ip ?? ""; + message.port = object.port ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseNetAddress(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.ip !== undefined && object.ip !== null) { + message.ip = object.ip; + } + if (object.port !== undefined && object.port !== null) { + message.port = object.port; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.ip = message.ip === "" ? undefined : message.ip; + obj.port = message.port === 0 ? undefined : message.port; + return obj; + }, + fromAminoMsg(object) { + return NetAddress.fromAmino(object.value); + }, + fromProtoMsg(message) { + return NetAddress.decode(message.value); + }, + toProto(message) { + return NetAddress.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.NetAddress", + value: NetAddress.encode(message).finish() + }; + } +}; +function createBaseProtocolVersion() { + return { + p2p: BigInt(0), + block: BigInt(0), + app: BigInt(0) + }; +} +export const ProtocolVersion = { + typeUrl: "/tendermint.p2p.ProtocolVersion", + encode(message, writer = BinaryWriter.create()) { + if (message.p2p !== BigInt(0)) { + writer.uint32(8).uint64(message.p2p); + } + if (message.block !== BigInt(0)) { + writer.uint32(16).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(24).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProtocolVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.p2p = reader.uint64(); + break; + case 2: + message.block = reader.uint64(); + break; + case 3: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProtocolVersion(); + message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseProtocolVersion(); + if (object.p2p !== undefined && object.p2p !== null) { + message.p2p = BigInt(object.p2p); + } + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ProtocolVersion.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ProtocolVersion.decode(message.value); + }, + toProto(message) { + return ProtocolVersion.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.ProtocolVersion", + value: ProtocolVersion.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfo() { + return { + protocolVersion: ProtocolVersion.fromPartial({}), + defaultNodeId: "", + listenAddr: "", + network: "", + version: "", + channels: new Uint8Array(), + moniker: "", + other: DefaultNodeInfoOther.fromPartial({}) + }; +} +export const DefaultNodeInfo = { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + encode(message, writer = BinaryWriter.create()) { + if (message.protocolVersion !== undefined) { + ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultNodeId !== "") { + writer.uint32(18).string(message.defaultNodeId); + } + if (message.listenAddr !== "") { + writer.uint32(26).string(message.listenAddr); + } + if (message.network !== "") { + writer.uint32(34).string(message.network); + } + if (message.version !== "") { + writer.uint32(42).string(message.version); + } + if (message.channels.length !== 0) { + writer.uint32(50).bytes(message.channels); + } + if (message.moniker !== "") { + writer.uint32(58).string(message.moniker); + } + if (message.other !== undefined) { + DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocolVersion = ProtocolVersion.decode(reader, reader.uint32()); + break; + case 2: + message.defaultNodeId = reader.string(); + break; + case 3: + message.listenAddr = reader.string(); + break; + case 4: + message.network = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.channels = reader.bytes(); + break; + case 7: + message.moniker = reader.string(); + break; + case 8: + message.other = DefaultNodeInfoOther.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDefaultNodeInfo(); + message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? ProtocolVersion.fromPartial(object.protocolVersion) : undefined; + message.defaultNodeId = object.defaultNodeId ?? ""; + message.listenAddr = object.listenAddr ?? ""; + message.network = object.network ?? ""; + message.version = object.version ?? ""; + message.channels = object.channels ?? new Uint8Array(); + message.moniker = object.moniker ?? ""; + message.other = object.other !== undefined && object.other !== null ? DefaultNodeInfoOther.fromPartial(object.other) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDefaultNodeInfo(); + if (object.protocol_version !== undefined && object.protocol_version !== null) { + message.protocolVersion = ProtocolVersion.fromAmino(object.protocol_version); + } + if (object.default_node_id !== undefined && object.default_node_id !== null) { + message.defaultNodeId = object.default_node_id; + } + if (object.listen_addr !== undefined && object.listen_addr !== null) { + message.listenAddr = object.listen_addr; + } + if (object.network !== undefined && object.network !== null) { + message.network = object.network; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.channels !== undefined && object.channels !== null) { + message.channels = bytesFromBase64(object.channels); + } + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.other !== undefined && object.other !== null) { + message.other = DefaultNodeInfoOther.fromAmino(object.other); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.protocol_version = message.protocolVersion ? ProtocolVersion.toAmino(message.protocolVersion) : undefined; + obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; + obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; + obj.network = message.network === "" ? undefined : message.network; + obj.version = message.version === "" ? undefined : message.version; + obj.channels = message.channels ? base64FromBytes(message.channels) : undefined; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.other = message.other ? DefaultNodeInfoOther.toAmino(message.other) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DefaultNodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DefaultNodeInfo.decode(message.value); + }, + toProto(message) { + return DefaultNodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + value: DefaultNodeInfo.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfoOther() { + return { + txIndex: "", + rpcAddress: "" + }; +} +export const DefaultNodeInfoOther = { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + encode(message, writer = BinaryWriter.create()) { + if (message.txIndex !== "") { + writer.uint32(10).string(message.txIndex); + } + if (message.rpcAddress !== "") { + writer.uint32(18).string(message.rpcAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfoOther(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txIndex = reader.string(); + break; + case 2: + message.rpcAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDefaultNodeInfoOther(); + message.txIndex = object.txIndex ?? ""; + message.rpcAddress = object.rpcAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDefaultNodeInfoOther(); + if (object.tx_index !== undefined && object.tx_index !== null) { + message.txIndex = object.tx_index; + } + if (object.rpc_address !== undefined && object.rpc_address !== null) { + message.rpcAddress = object.rpc_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; + obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; + return obj; + }, + fromAminoMsg(object) { + return DefaultNodeInfoOther.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DefaultNodeInfoOther.decode(message.value); + }, + toProto(message) { + return DefaultNodeInfoOther.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + value: DefaultNodeInfoOther.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/types/block.js b/packages/api/dist/esm/tendermint/types/block.js new file mode 100644 index 00000000..f1434aac --- /dev/null +++ b/packages/api/dist/esm/tendermint/types/block.js @@ -0,0 +1,103 @@ +//@ts-nocheck +import { Header, Data, Commit } from "./types"; +import { EvidenceList } from "./evidence"; +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseBlock() { + return { + header: Header.fromPartial({}), + data: Data.fromPartial({}), + evidence: EvidenceList.fromPartial({}), + lastCommit: undefined + }; +} +export const Block = { + typeUrl: "/tendermint.types.Block", + encode(message, writer = BinaryWriter.create()) { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.evidence !== undefined) { + EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); + } + if (message.lastCommit !== undefined) { + Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.data = Data.decode(reader, reader.uint32()); + break; + case 3: + message.evidence = EvidenceList.decode(reader, reader.uint32()); + break; + case 4: + message.lastCommit = Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlock(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.data = object.data !== undefined && object.data !== null ? Data.fromPartial(object.data) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceList.fromPartial(object.evidence) : undefined; + message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? Commit.fromPartial(object.lastCommit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBlock(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.data !== undefined && object.data !== null) { + message.data = Data.fromAmino(object.data); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = EvidenceList.fromAmino(object.evidence); + } + if (object.last_commit !== undefined && object.last_commit !== null) { + message.lastCommit = Commit.fromAmino(object.last_commit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.data = message.data ? Data.toAmino(message.data) : undefined; + obj.evidence = message.evidence ? EvidenceList.toAmino(message.evidence) : undefined; + obj.last_commit = message.lastCommit ? Commit.toAmino(message.lastCommit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Block.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Block.decode(message.value); + }, + toProto(message) { + return Block.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Block", + value: Block.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/types/evidence.js b/packages/api/dist/esm/tendermint/types/evidence.js new file mode 100644 index 00000000..90ce49d7 --- /dev/null +++ b/packages/api/dist/esm/tendermint/types/evidence.js @@ -0,0 +1,372 @@ +//@ts-nocheck +import { Vote, LightBlock } from "./types"; +import { Timestamp } from "../../google/protobuf/timestamp"; +import { Validator } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { toTimestamp, fromTimestamp } from "../../helpers"; +function createBaseEvidence() { + return { + duplicateVoteEvidence: undefined, + lightClientAttackEvidence: undefined + }; +} +export const Evidence = { + typeUrl: "/tendermint.types.Evidence", + encode(message, writer = BinaryWriter.create()) { + if (message.duplicateVoteEvidence !== undefined) { + DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); + } + if (message.lightClientAttackEvidence !== undefined) { + LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.duplicateVoteEvidence = DuplicateVoteEvidence.decode(reader, reader.uint32()); + break; + case 2: + message.lightClientAttackEvidence = LightClientAttackEvidence.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidence(); + message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; + message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEvidence(); + if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { + message.duplicateVoteEvidence = DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); + } + if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { + message.lightClientAttackEvidence = LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; + obj.light_client_attack_evidence = message.lightClientAttackEvidence ? LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Evidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Evidence.decode(message.value); + }, + toProto(message) { + return Evidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Evidence", + value: Evidence.encode(message).finish() + }; + } +}; +function createBaseDuplicateVoteEvidence() { + return { + voteA: undefined, + voteB: undefined, + totalVotingPower: BigInt(0), + validatorPower: BigInt(0), + timestamp: new Date() + }; +} +export const DuplicateVoteEvidence = { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + encode(message, writer = BinaryWriter.create()) { + if (message.voteA !== undefined) { + Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); + } + if (message.voteB !== undefined) { + Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + if (message.validatorPower !== BigInt(0)) { + writer.uint32(32).int64(message.validatorPower); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuplicateVoteEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voteA = Vote.decode(reader, reader.uint32()); + break; + case 2: + message.voteB = Vote.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + case 4: + message.validatorPower = reader.int64(); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDuplicateVoteEvidence(); + message.voteA = object.voteA !== undefined && object.voteA !== null ? Vote.fromPartial(object.voteA) : undefined; + message.voteB = object.voteB !== undefined && object.voteB !== null ? Vote.fromPartial(object.voteB) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDuplicateVoteEvidence(); + if (object.vote_a !== undefined && object.vote_a !== null) { + message.voteA = Vote.fromAmino(object.vote_a); + } + if (object.vote_b !== undefined && object.vote_b !== null) { + message.voteB = Vote.fromAmino(object.vote_b); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.validator_power !== undefined && object.validator_power !== null) { + message.validatorPower = BigInt(object.validator_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote_a = message.voteA ? Vote.toAmino(message.voteA) : undefined; + obj.vote_b = message.voteB ? Vote.toAmino(message.voteB) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return DuplicateVoteEvidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return DuplicateVoteEvidence.decode(message.value); + }, + toProto(message) { + return DuplicateVoteEvidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + value: DuplicateVoteEvidence.encode(message).finish() + }; + } +}; +function createBaseLightClientAttackEvidence() { + return { + conflictingBlock: undefined, + commonHeight: BigInt(0), + byzantineValidators: [], + totalVotingPower: BigInt(0), + timestamp: new Date() + }; +} +export const LightClientAttackEvidence = { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + encode(message, writer = BinaryWriter.create()) { + if (message.conflictingBlock !== undefined) { + LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); + } + if (message.commonHeight !== BigInt(0)) { + writer.uint32(16).int64(message.commonHeight); + } + for (const v of message.byzantineValidators) { + Validator.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(32).int64(message.totalVotingPower); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightClientAttackEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conflictingBlock = LightBlock.decode(reader, reader.uint32()); + break; + case 2: + message.commonHeight = reader.int64(); + break; + case 3: + message.byzantineValidators.push(Validator.decode(reader, reader.uint32())); + break; + case 4: + message.totalVotingPower = reader.int64(); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLightClientAttackEvidence(); + message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? LightBlock.fromPartial(object.conflictingBlock) : undefined; + message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); + message.byzantineValidators = object.byzantineValidators?.map(e => Validator.fromPartial(e)) || []; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseLightClientAttackEvidence(); + if (object.conflicting_block !== undefined && object.conflicting_block !== null) { + message.conflictingBlock = LightBlock.fromAmino(object.conflicting_block); + } + if (object.common_height !== undefined && object.common_height !== null) { + message.commonHeight = BigInt(object.common_height); + } + message.byzantineValidators = object.byzantine_validators?.map(e => Validator.fromAmino(e)) || []; + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.conflicting_block = message.conflictingBlock ? LightBlock.toAmino(message.conflictingBlock) : undefined; + obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.byzantine_validators = message.byzantineValidators; + } + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return LightClientAttackEvidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return LightClientAttackEvidence.decode(message.value); + }, + toProto(message) { + return LightClientAttackEvidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + value: LightClientAttackEvidence.encode(message).finish() + }; + } +}; +function createBaseEvidenceList() { + return { + evidence: [] + }; +} +export const EvidenceList = { + typeUrl: "/tendermint.types.EvidenceList", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.evidence) { + Evidence.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.evidence.push(Evidence.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => Evidence.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => Evidence.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.evidence) { + obj.evidence = message.evidence.map(e => e ? Evidence.toAmino(e) : undefined); + } + else { + obj.evidence = message.evidence; + } + return obj; + }, + fromAminoMsg(object) { + return EvidenceList.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EvidenceList.decode(message.value); + }, + toProto(message) { + return EvidenceList.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.EvidenceList", + value: EvidenceList.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/types/params.js b/packages/api/dist/esm/tendermint/types/params.js new file mode 100644 index 00000000..13375c6e --- /dev/null +++ b/packages/api/dist/esm/tendermint/types/params.js @@ -0,0 +1,468 @@ +//@ts-nocheck +import { Duration } from "../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseConsensusParams() { + return { + block: undefined, + evidence: undefined, + validator: undefined, + version: undefined + }; +} +export const ConsensusParams = { + typeUrl: "/tendermint.types.ConsensusParams", + encode(message, writer = BinaryWriter.create()) { + if (message.block !== undefined) { + BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); + } + if (message.evidence !== undefined) { + EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); + } + if (message.validator !== undefined) { + ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); + } + if (message.version !== undefined) { + VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = BlockParams.decode(reader, reader.uint32()); + break; + case 2: + message.evidence = EvidenceParams.decode(reader, reader.uint32()); + break; + case 3: + message.validator = ValidatorParams.decode(reader, reader.uint32()); + break; + case 4: + message.version = VersionParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensusParams(); + message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined; + message.validator = object.validator !== undefined && object.validator !== null ? ValidatorParams.fromPartial(object.validator) : undefined; + message.version = object.version !== undefined && object.version !== null ? VersionParams.fromPartial(object.version) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConsensusParams(); + if (object.block !== undefined && object.block !== null) { + message.block = BlockParams.fromAmino(object.block); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = EvidenceParams.fromAmino(object.evidence); + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = ValidatorParams.fromAmino(object.validator); + } + if (object.version !== undefined && object.version !== null) { + message.version = VersionParams.fromAmino(object.version); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block = message.block ? BlockParams.toAmino(message.block) : undefined; + obj.evidence = message.evidence ? EvidenceParams.toAmino(message.evidence) : undefined; + obj.validator = message.validator ? ValidatorParams.toAmino(message.validator) : undefined; + obj.version = message.version ? VersionParams.toAmino(message.version) : undefined; + return obj; + }, + fromAminoMsg(object) { + return ConsensusParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ConsensusParams.decode(message.value); + }, + toProto(message) { + return ConsensusParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ConsensusParams", + value: ConsensusParams.encode(message).finish() + }; + } +}; +function createBaseBlockParams() { + return { + maxBytes: BigInt(0), + maxGas: BigInt(0) + }; +} +export const BlockParams = { + typeUrl: "/tendermint.types.BlockParams", + encode(message, writer = BinaryWriter.create()) { + if (message.maxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxBytes); + } + if (message.maxGas !== BigInt(0)) { + writer.uint32(16).int64(message.maxGas); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxBytes = reader.int64(); + break; + case 2: + message.maxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockParams(); + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBlockParams(); + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + if (object.max_gas !== undefined && object.max_gas !== null) { + message.maxGas = BigInt(object.max_gas); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BlockParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BlockParams.decode(message.value); + }, + toProto(message) { + return BlockParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockParams", + value: BlockParams.encode(message).finish() + }; + } +}; +function createBaseEvidenceParams() { + return { + maxAgeNumBlocks: BigInt(0), + maxAgeDuration: Duration.fromPartial({}), + maxBytes: BigInt(0) + }; +} +export const EvidenceParams = { + typeUrl: "/tendermint.types.EvidenceParams", + encode(message, writer = BinaryWriter.create()) { + if (message.maxAgeNumBlocks !== BigInt(0)) { + writer.uint32(8).int64(message.maxAgeNumBlocks); + } + if (message.maxAgeDuration !== undefined) { + Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); + } + if (message.maxBytes !== BigInt(0)) { + writer.uint32(24).int64(message.maxBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxAgeNumBlocks = reader.int64(); + break; + case 2: + message.maxAgeDuration = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.maxBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidenceParams(); + message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); + message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? Duration.fromPartial(object.maxAgeDuration) : undefined; + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEvidenceParams(); + if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { + message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); + } + if (object.max_age_duration !== undefined && object.max_age_duration !== null) { + message.maxAgeDuration = Duration.fromAmino(object.max_age_duration); + } + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; + obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return EvidenceParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return EvidenceParams.decode(message.value); + }, + toProto(message) { + return EvidenceParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.EvidenceParams", + value: EvidenceParams.encode(message).finish() + }; + } +}; +function createBaseValidatorParams() { + return { + pubKeyTypes: [] + }; +} +export const ValidatorParams = { + typeUrl: "/tendermint.types.ValidatorParams", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.pubKeyTypes) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKeyTypes.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pubKeyTypes) { + obj.pub_key_types = message.pubKeyTypes.map(e => e); + } + else { + obj.pub_key_types = message.pubKeyTypes; + } + return obj; + }, + fromAminoMsg(object) { + return ValidatorParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ValidatorParams.decode(message.value); + }, + toProto(message) { + return ValidatorParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ValidatorParams", + value: ValidatorParams.encode(message).finish() + }; + } +}; +function createBaseVersionParams() { + return { + app: BigInt(0) + }; +} +export const VersionParams = { + typeUrl: "/tendermint.types.VersionParams", + encode(message, writer = BinaryWriter.create()) { + if (message.app !== BigInt(0)) { + writer.uint32(8).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVersionParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVersionParams(); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseVersionParams(); + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return VersionParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return VersionParams.decode(message.value); + }, + toProto(message) { + return VersionParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.VersionParams", + value: VersionParams.encode(message).finish() + }; + } +}; +function createBaseHashedParams() { + return { + blockMaxBytes: BigInt(0), + blockMaxGas: BigInt(0) + }; +} +export const HashedParams = { + typeUrl: "/tendermint.types.HashedParams", + encode(message, writer = BinaryWriter.create()) { + if (message.blockMaxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.blockMaxBytes); + } + if (message.blockMaxGas !== BigInt(0)) { + writer.uint32(16).int64(message.blockMaxGas); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHashedParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockMaxBytes = reader.int64(); + break; + case 2: + message.blockMaxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHashedParams(); + message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); + message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseHashedParams(); + if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { + message.blockMaxBytes = BigInt(object.block_max_bytes); + } + if (object.block_max_gas !== undefined && object.block_max_gas !== null) { + message.blockMaxGas = BigInt(object.block_max_gas); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; + obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return HashedParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return HashedParams.decode(message.value); + }, + toProto(message) { + return HashedParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.HashedParams", + value: HashedParams.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/types/types.js b/packages/api/dist/esm/tendermint/types/types.js new file mode 100644 index 00000000..ea389028 --- /dev/null +++ b/packages/api/dist/esm/tendermint/types/types.js @@ -0,0 +1,1442 @@ +//@ts-nocheck +import { Proof } from "../crypto/proof"; +import { Consensus } from "../version/types"; +import { Timestamp } from "../../google/protobuf/timestamp"; +import { ValidatorSet } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../helpers"; +/** BlockIdFlag indicates which BlcokID the signature is for */ +export var BlockIDFlag; +(function (BlockIDFlag) { + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_UNKNOWN"] = 0] = "BLOCK_ID_FLAG_UNKNOWN"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_ABSENT"] = 1] = "BLOCK_ID_FLAG_ABSENT"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_COMMIT"] = 2] = "BLOCK_ID_FLAG_COMMIT"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_NIL"] = 3] = "BLOCK_ID_FLAG_NIL"; + BlockIDFlag[BlockIDFlag["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BlockIDFlag || (BlockIDFlag = {})); +export const BlockIDFlagSDKType = BlockIDFlag; +export const BlockIDFlagAmino = BlockIDFlag; +export function blockIDFlagFromJSON(object) { + switch (object) { + case 0: + case "BLOCK_ID_FLAG_UNKNOWN": + return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; + case 1: + case "BLOCK_ID_FLAG_ABSENT": + return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; + case 2: + case "BLOCK_ID_FLAG_COMMIT": + return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; + case 3: + case "BLOCK_ID_FLAG_NIL": + return BlockIDFlag.BLOCK_ID_FLAG_NIL; + case -1: + case "UNRECOGNIZED": + default: + return BlockIDFlag.UNRECOGNIZED; + } +} +export function blockIDFlagToJSON(object) { + switch (object) { + case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: + return "BLOCK_ID_FLAG_UNKNOWN"; + case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: + return "BLOCK_ID_FLAG_ABSENT"; + case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: + return "BLOCK_ID_FLAG_COMMIT"; + case BlockIDFlag.BLOCK_ID_FLAG_NIL: + return "BLOCK_ID_FLAG_NIL"; + case BlockIDFlag.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** SignedMsgType is a type of signed message in the consensus. */ +export var SignedMsgType; +(function (SignedMsgType) { + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_UNKNOWN"] = 0] = "SIGNED_MSG_TYPE_UNKNOWN"; + /** SIGNED_MSG_TYPE_PREVOTE - Votes */ + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PREVOTE"] = 1] = "SIGNED_MSG_TYPE_PREVOTE"; + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PRECOMMIT"] = 2] = "SIGNED_MSG_TYPE_PRECOMMIT"; + /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL"; + SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(SignedMsgType || (SignedMsgType = {})); +export const SignedMsgTypeSDKType = SignedMsgType; +export const SignedMsgTypeAmino = SignedMsgType; +export function signedMsgTypeFromJSON(object) { + switch (object) { + case 0: + case "SIGNED_MSG_TYPE_UNKNOWN": + return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; + case 1: + case "SIGNED_MSG_TYPE_PREVOTE": + return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; + case 2: + case "SIGNED_MSG_TYPE_PRECOMMIT": + return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; + case 32: + case "SIGNED_MSG_TYPE_PROPOSAL": + return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; + case -1: + case "UNRECOGNIZED": + default: + return SignedMsgType.UNRECOGNIZED; + } +} +export function signedMsgTypeToJSON(object) { + switch (object) { + case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: + return "SIGNED_MSG_TYPE_UNKNOWN"; + case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: + return "SIGNED_MSG_TYPE_PREVOTE"; + case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: + return "SIGNED_MSG_TYPE_PRECOMMIT"; + case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: + return "SIGNED_MSG_TYPE_PROPOSAL"; + case SignedMsgType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +function createBasePartSetHeader() { + return { + total: 0, + hash: new Uint8Array() + }; +} +export const PartSetHeader = { + typeUrl: "/tendermint.types.PartSetHeader", + encode(message, writer = BinaryWriter.create()) { + if (message.total !== 0) { + writer.uint32(8).uint32(message.total); + } + if (message.hash.length !== 0) { + writer.uint32(18).bytes(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePartSetHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.uint32(); + break; + case 2: + message.hash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePartSetHeader(); + message.total = object.total ?? 0; + message.hash = object.hash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePartSetHeader(); + if (object.total !== undefined && object.total !== null) { + message.total = object.total; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.total = message.total === 0 ? undefined : message.total; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return PartSetHeader.fromAmino(object.value); + }, + fromProtoMsg(message) { + return PartSetHeader.decode(message.value); + }, + toProto(message) { + return PartSetHeader.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.PartSetHeader", + value: PartSetHeader.encode(message).finish() + }; + } +}; +function createBasePart() { + return { + index: 0, + bytes: new Uint8Array(), + proof: Proof.fromPartial({}) + }; +} +export const Part = { + typeUrl: "/tendermint.types.Part", + encode(message, writer = BinaryWriter.create()) { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.bytes.length !== 0) { + writer.uint32(18).bytes(message.bytes); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.bytes = reader.bytes(); + break; + case 3: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePart(); + message.index = object.index ?? 0; + message.bytes = object.bytes ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePart(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.bytes !== undefined && object.bytes !== null) { + message.bytes = bytesFromBase64(object.bytes); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.bytes = message.bytes ? base64FromBytes(message.bytes) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Part.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Part.decode(message.value); + }, + toProto(message) { + return Part.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Part", + value: Part.encode(message).finish() + }; + } +}; +function createBaseBlockID() { + return { + hash: new Uint8Array(), + partSetHeader: PartSetHeader.fromPartial({}) + }; +} +export const BlockID = { + typeUrl: "/tendermint.types.BlockID", + encode(message, writer = BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.partSetHeader !== undefined) { + PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.partSetHeader = PartSetHeader.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockID(); + message.hash = object.hash ?? new Uint8Array(); + message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? PartSetHeader.fromPartial(object.partSetHeader) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBlockID(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.part_set_header !== undefined && object.part_set_header !== null) { + message.partSetHeader = PartSetHeader.fromAmino(object.part_set_header); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.part_set_header = message.partSetHeader ? PartSetHeader.toAmino(message.partSetHeader) : undefined; + return obj; + }, + fromAminoMsg(object) { + return BlockID.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BlockID.decode(message.value); + }, + toProto(message) { + return BlockID.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockID", + value: BlockID.encode(message).finish() + }; + } +}; +function createBaseHeader() { + return { + version: Consensus.fromPartial({}), + chainId: "", + height: BigInt(0), + time: new Date(), + lastBlockId: BlockID.fromPartial({}), + lastCommitHash: new Uint8Array(), + dataHash: new Uint8Array(), + validatorsHash: new Uint8Array(), + nextValidatorsHash: new Uint8Array(), + consensusHash: new Uint8Array(), + appHash: new Uint8Array(), + lastResultsHash: new Uint8Array(), + evidenceHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const Header = { + typeUrl: "/tendermint.types.Header", + encode(message, writer = BinaryWriter.create()) { + if (message.version !== undefined) { + Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.lastBlockId !== undefined) { + BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); + } + if (message.lastCommitHash.length !== 0) { + writer.uint32(50).bytes(message.lastCommitHash); + } + if (message.dataHash.length !== 0) { + writer.uint32(58).bytes(message.dataHash); + } + if (message.validatorsHash.length !== 0) { + writer.uint32(66).bytes(message.validatorsHash); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(74).bytes(message.nextValidatorsHash); + } + if (message.consensusHash.length !== 0) { + writer.uint32(82).bytes(message.consensusHash); + } + if (message.appHash.length !== 0) { + writer.uint32(90).bytes(message.appHash); + } + if (message.lastResultsHash.length !== 0) { + writer.uint32(98).bytes(message.lastResultsHash); + } + if (message.evidenceHash.length !== 0) { + writer.uint32(106).bytes(message.evidenceHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(114).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = Consensus.decode(reader, reader.uint32()); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.lastBlockId = BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.lastCommitHash = reader.bytes(); + break; + case 7: + message.dataHash = reader.bytes(); + break; + case 8: + message.validatorsHash = reader.bytes(); + break; + case 9: + message.nextValidatorsHash = reader.bytes(); + break; + case 10: + message.consensusHash = reader.bytes(); + break; + case 11: + message.appHash = reader.bytes(); + break; + case 12: + message.lastResultsHash = reader.bytes(); + break; + case 13: + message.evidenceHash = reader.bytes(); + break; + case 14: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHeader(); + message.version = object.version !== undefined && object.version !== null ? Consensus.fromPartial(object.version) : undefined; + message.chainId = object.chainId ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? BlockID.fromPartial(object.lastBlockId) : undefined; + message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); + message.dataHash = object.dataHash ?? new Uint8Array(); + message.validatorsHash = object.validatorsHash ?? new Uint8Array(); + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.consensusHash = object.consensusHash ?? new Uint8Array(); + message.appHash = object.appHash ?? new Uint8Array(); + message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); + message.evidenceHash = object.evidenceHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseHeader(); + if (object.version !== undefined && object.version !== null) { + message.version = Consensus.fromAmino(object.version); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.last_block_id !== undefined && object.last_block_id !== null) { + message.lastBlockId = BlockID.fromAmino(object.last_block_id); + } + if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { + message.lastCommitHash = bytesFromBase64(object.last_commit_hash); + } + if (object.data_hash !== undefined && object.data_hash !== null) { + message.dataHash = bytesFromBase64(object.data_hash); + } + if (object.validators_hash !== undefined && object.validators_hash !== null) { + message.validatorsHash = bytesFromBase64(object.validators_hash); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.consensus_hash !== undefined && object.consensus_hash !== null) { + message.consensusHash = bytesFromBase64(object.consensus_hash); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + if (object.last_results_hash !== undefined && object.last_results_hash !== null) { + message.lastResultsHash = bytesFromBase64(object.last_results_hash); + } + if (object.evidence_hash !== undefined && object.evidence_hash !== null) { + message.evidenceHash = bytesFromBase64(object.evidence_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.version = message.version ? Consensus.toAmino(message.version) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; + obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; + obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; + obj.validators_hash = message.validatorsHash ? base64FromBytes(message.validatorsHash) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.consensus_hash = message.consensusHash ? base64FromBytes(message.consensusHash) : undefined; + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + obj.last_results_hash = message.lastResultsHash ? base64FromBytes(message.lastResultsHash) : undefined; + obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Header.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Header.decode(message.value); + }, + toProto(message) { + return Header.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Header", + value: Header.encode(message).finish() + }; + } +}; +function createBaseData() { + return { + txs: [] + }; +} +export const Data = { + typeUrl: "/tendermint.types.Data", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseData(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseData(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return Data.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Data.decode(message.value); + }, + toProto(message) { + return Data.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Data", + value: Data.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + type: 0, + height: BigInt(0), + round: 0, + blockId: BlockID.fromPartial({}), + timestamp: new Date(), + validatorAddress: new Uint8Array(), + validatorIndex: 0, + signature: new Uint8Array() + }; +} +export const Vote = { + typeUrl: "/tendermint.types.Vote", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(50).bytes(message.validatorAddress); + } + if (message.validatorIndex !== 0) { + writer.uint32(56).int32(message.validatorIndex); + } + if (message.signature.length !== 0) { + writer.uint32(66).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAddress = reader.bytes(); + break; + case 7: + message.validatorIndex = reader.int32(); + break; + case 8: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.validatorIndex = object.validatorIndex ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = bytesFromBase64(object.validator_address); + } + if (object.validator_index !== undefined && object.validator_index !== null) { + message.validatorIndex = object.validator_index; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; + obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Vote.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Vote.decode(message.value); + }, + toProto(message) { + return Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseCommit() { + return { + height: BigInt(0), + round: 0, + blockId: BlockID.fromPartial({}), + signatures: [] + }; +} +export const Commit = { + typeUrl: "/tendermint.types.Commit", + encode(message, writer = BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(16).int32(message.round); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.signatures) { + CommitSig.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.round = reader.int32(); + break; + case 3: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 4: + message.signatures.push(CommitSig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommit(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.signatures = object.signatures?.map(e => CommitSig.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommit(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + message.signatures = object.signatures?.map(e => CommitSig.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? CommitSig.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return Commit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Commit.decode(message.value); + }, + toProto(message) { + return Commit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Commit", + value: Commit.encode(message).finish() + }; + } +}; +function createBaseCommitSig() { + return { + blockIdFlag: 0, + validatorAddress: new Uint8Array(), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +export const CommitSig = { + typeUrl: "/tendermint.types.CommitSig", + encode(message, writer = BinaryWriter.create()) { + if (message.blockIdFlag !== 0) { + writer.uint32(8).int32(message.blockIdFlag); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(18).bytes(message.validatorAddress); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(34).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitSig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockIdFlag = reader.int32(); + break; + case 2: + message.validatorAddress = reader.bytes(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommitSig(); + message.blockIdFlag = object.blockIdFlag ?? 0; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseCommitSig(); + if (object.block_id_flag !== undefined && object.block_id_flag !== null) { + message.blockIdFlag = object.block_id_flag; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = bytesFromBase64(object.validator_address); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; + obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return CommitSig.fromAmino(object.value); + }, + fromProtoMsg(message) { + return CommitSig.decode(message.value); + }, + toProto(message) { + return CommitSig.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.CommitSig", + value: CommitSig.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + type: 0, + height: BigInt(0), + round: 0, + polRound: 0, + blockId: BlockID.fromPartial({}), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +export const Proposal = { + typeUrl: "/tendermint.types.Proposal", + encode(message, writer = BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.polRound !== 0) { + writer.uint32(32).int32(message.polRound); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(58).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.polRound = reader.int32(); + break; + case 5: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.polRound = object.polRound ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.pol_round !== undefined && object.pol_round !== null) { + message.polRound = object.pol_round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.pol_round = message.polRound === 0 ? undefined : message.polRound; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return Proposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Proposal.decode(message.value); + }, + toProto(message) { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseSignedHeader() { + return { + header: undefined, + commit: undefined + }; +} +export const SignedHeader = { + typeUrl: "/tendermint.types.SignedHeader", + encode(message, writer = BinaryWriter.create()) { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.commit !== undefined) { + Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignedHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.commit = Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignedHeader(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? Commit.fromPartial(object.commit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignedHeader(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = Commit.fromAmino(object.commit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.commit = message.commit ? Commit.toAmino(message.commit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return SignedHeader.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SignedHeader.decode(message.value); + }, + toProto(message) { + return SignedHeader.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.SignedHeader", + value: SignedHeader.encode(message).finish() + }; + } +}; +function createBaseLightBlock() { + return { + signedHeader: undefined, + validatorSet: undefined + }; +} +export const LightBlock = { + typeUrl: "/tendermint.types.LightBlock", + encode(message, writer = BinaryWriter.create()) { + if (message.signedHeader !== undefined) { + SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorSet !== undefined) { + ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedHeader = SignedHeader.decode(reader, reader.uint32()); + break; + case 2: + message.validatorSet = ValidatorSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLightBlock(); + message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? SignedHeader.fromPartial(object.signedHeader) : undefined; + message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? ValidatorSet.fromPartial(object.validatorSet) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseLightBlock(); + if (object.signed_header !== undefined && object.signed_header !== null) { + message.signedHeader = SignedHeader.fromAmino(object.signed_header); + } + if (object.validator_set !== undefined && object.validator_set !== null) { + message.validatorSet = ValidatorSet.fromAmino(object.validator_set); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.signed_header = message.signedHeader ? SignedHeader.toAmino(message.signedHeader) : undefined; + obj.validator_set = message.validatorSet ? ValidatorSet.toAmino(message.validatorSet) : undefined; + return obj; + }, + fromAminoMsg(object) { + return LightBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return LightBlock.decode(message.value); + }, + toProto(message) { + return LightBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.LightBlock", + value: LightBlock.encode(message).finish() + }; + } +}; +function createBaseBlockMeta() { + return { + blockId: BlockID.fromPartial({}), + blockSize: BigInt(0), + header: Header.fromPartial({}), + numTxs: BigInt(0) + }; +} +export const BlockMeta = { + typeUrl: "/tendermint.types.BlockMeta", + encode(message, writer = BinaryWriter.create()) { + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); + } + if (message.blockSize !== BigInt(0)) { + writer.uint32(16).int64(message.blockSize); + } + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(26).fork()).ldelim(); + } + if (message.numTxs !== BigInt(0)) { + writer.uint32(32).int64(message.numTxs); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockMeta(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 2: + message.blockSize = reader.int64(); + break; + case 3: + message.header = Header.decode(reader, reader.uint32()); + break; + case 4: + message.numTxs = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockMeta(); + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBlockMeta(); + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.block_size !== undefined && object.block_size !== null) { + message.blockSize = BigInt(object.block_size); + } + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.num_txs !== undefined && object.num_txs !== null) { + message.numTxs = BigInt(object.num_txs); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return BlockMeta.fromAmino(object.value); + }, + fromProtoMsg(message) { + return BlockMeta.decode(message.value); + }, + toProto(message) { + return BlockMeta.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockMeta", + value: BlockMeta.encode(message).finish() + }; + } +}; +function createBaseTxProof() { + return { + rootHash: new Uint8Array(), + data: new Uint8Array(), + proof: undefined + }; +} +export const TxProof = { + typeUrl: "/tendermint.types.TxProof", + encode(message, writer = BinaryWriter.create()) { + if (message.rootHash.length !== 0) { + writer.uint32(10).bytes(message.rootHash); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rootHash = reader.bytes(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxProof(); + message.rootHash = object.rootHash ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseTxProof(); + if (object.root_hash !== undefined && object.root_hash !== null) { + message.rootHash = bytesFromBase64(object.root_hash); + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.root_hash = message.rootHash ? base64FromBytes(message.rootHash) : undefined; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return TxProof.fromAmino(object.value); + }, + fromProtoMsg(message) { + return TxProof.decode(message.value); + }, + toProto(message) { + return TxProof.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.TxProof", + value: TxProof.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/types/validator.js b/packages/api/dist/esm/tendermint/types/validator.js new file mode 100644 index 00000000..073e7eed --- /dev/null +++ b/packages/api/dist/esm/tendermint/types/validator.js @@ -0,0 +1,268 @@ +//@ts-nocheck +import { PublicKey } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +function createBaseValidatorSet() { + return { + validators: [], + proposer: undefined, + totalVotingPower: BigInt(0) + }; +} +export const ValidatorSet = { + typeUrl: "/tendermint.types.ValidatorSet", + encode(message, writer = BinaryWriter.create()) { + for (const v of message.validators) { + Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.proposer !== undefined) { + Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.proposer = Validator.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.proposer = object.proposer !== undefined && object.proposer !== null ? Validator.fromPartial(object.proposer) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = Validator.fromAmino(object.proposer); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return ValidatorSet.fromAmino(object.value); + }, + fromProtoMsg(message) { + return ValidatorSet.decode(message.value); + }, + toProto(message) { + return ValidatorSet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ValidatorSet", + value: ValidatorSet.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + address: new Uint8Array(), + pubKey: PublicKey.fromPartial({}), + votingPower: BigInt(0), + proposerPriority: BigInt(0) + }; +} +export const Validator = { + typeUrl: "/tendermint.types.Validator", + encode(message, writer = BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(24).int64(message.votingPower); + } + if (message.proposerPriority !== BigInt(0)) { + writer.uint32(32).int64(message.proposerPriority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 2: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 3: + message.votingPower = reader.int64(); + break; + case 4: + message.proposerPriority = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + if (object.proposer_priority !== undefined && object.proposer_priority !== null) { + message.proposerPriority = BigInt(object.proposer_priority); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Validator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Validator.decode(message.value); + }, + toProto(message) { + return Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseSimpleValidator() { + return { + pubKey: undefined, + votingPower: BigInt(0) + }; +} +export const SimpleValidator = { + typeUrl: "/tendermint.types.SimpleValidator", + encode(message, writer = BinaryWriter.create()) { + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(16).int64(message.votingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimpleValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.votingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimpleValidator(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSimpleValidator(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return SimpleValidator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return SimpleValidator.decode(message.value); + }, + toProto(message) { + return SimpleValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.SimpleValidator", + value: SimpleValidator.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/tendermint/version/types.js b/packages/api/dist/esm/tendermint/version/types.js new file mode 100644 index 00000000..5adee9ba --- /dev/null +++ b/packages/api/dist/esm/tendermint/version/types.js @@ -0,0 +1,152 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +function createBaseApp() { + return { + protocol: BigInt(0), + software: "" + }; +} +export const App = { + typeUrl: "/tendermint.version.App", + encode(message, writer = BinaryWriter.create()) { + if (message.protocol !== BigInt(0)) { + writer.uint32(8).uint64(message.protocol); + } + if (message.software !== "") { + writer.uint32(18).string(message.software); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseApp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocol = reader.uint64(); + break; + case 2: + message.software = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseApp(); + message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); + message.software = object.software ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseApp(); + if (object.protocol !== undefined && object.protocol !== null) { + message.protocol = BigInt(object.protocol); + } + if (object.software !== undefined && object.software !== null) { + message.software = object.software; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; + obj.software = message.software === "" ? undefined : message.software; + return obj; + }, + fromAminoMsg(object) { + return App.fromAmino(object.value); + }, + fromProtoMsg(message) { + return App.decode(message.value); + }, + toProto(message) { + return App.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.version.App", + value: App.encode(message).finish() + }; + } +}; +function createBaseConsensus() { + return { + block: BigInt(0), + app: BigInt(0) + }; +} +export const Consensus = { + typeUrl: "/tendermint.version.Consensus", + encode(message, writer = BinaryWriter.create()) { + if (message.block !== BigInt(0)) { + writer.uint32(8).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(16).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = reader.uint64(); + break; + case 2: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensus(); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseConsensus(); + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return Consensus.fromAmino(object.value); + }, + fromProtoMsg(message) { + return Consensus.decode(message.value); + }, + toProto(message) { + return Consensus.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.version.Consensus", + value: Consensus.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/esm/utf8.js b/packages/api/dist/esm/utf8.js new file mode 100644 index 00000000..820830be --- /dev/null +++ b/packages/api/dist/esm/utf8.js @@ -0,0 +1,137 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +// Copyright (c) 2016, Daniel Wirtz All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +"use strict"; +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +export function utf8Length(str) { + let len = 0, c = 0; + for (let i = 0; i < str.length; ++i) { + c = str.charCodeAt(i); + if (c < 128) + len += 1; + else if (c < 2048) + len += 2; + else if ((c & 0xfc00) === 0xd800 && + (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { + ++i; + len += 4; + } + else + len += 3; + } + return len; +} +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +export function utf8Read(buffer, start, end) { + const len = end - start; + if (len < 1) + return ""; + const chunk = []; + let parts = [], i = 0, // char offset + t; // temporary + while (start < end) { + t = buffer[start++]; + if (t < 128) + chunk[i++] = t; + else if (t > 191 && t < 224) + chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); + else if (t > 239 && t < 365) { + t = + (((t & 7) << 18) | + ((buffer[start++] & 63) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63)) - + 0x10000; + chunk[i++] = 0xd800 + (t >> 10); + chunk[i++] = 0xdc00 + (t & 1023); + } + else + chunk[i++] = + ((t & 15) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63); + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode(...chunk)); + i = 0; + } + } + if (parts) { + if (i) + parts.push(String.fromCharCode(...chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode(...chunk.slice(0, i)); +} +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +export function utf8Write(str, buffer, offset) { + const start = offset; + let c1, // character 1 + c2; // character 2 + for (let i = 0; i < str.length; ++i) { + c1 = str.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } + else if (c1 < 2048) { + buffer[offset++] = (c1 >> 6) | 192; + buffer[offset++] = (c1 & 63) | 128; + } + else if ((c1 & 0xfc00) === 0xd800 && + ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00) { + c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); + ++i; + buffer[offset++] = (c1 >> 18) | 240; + buffer[offset++] = ((c1 >> 12) & 63) | 128; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } + else { + buffer[offset++] = (c1 >> 12) | 224; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } + } + return offset - start; +} diff --git a/packages/api/dist/esm/varint.js b/packages/api/dist/esm/varint.js new file mode 100644 index 00000000..ebebceff --- /dev/null +++ b/packages/api/dist/esm/varint.js @@ -0,0 +1,408 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +// Copyright 2008 Google Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Code generated by the Protocol Buffer compiler is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. +/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ +/** + * Read a 64 bit varint as two JS numbers. + * + * Returns tuple: + * [0]: low bits + * [1]: high bits + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 + */ +export function varint64read() { + let lowBits = 0; + let highBits = 0; + for (let shift = 0; shift < 28; shift += 7) { + let b = this.buf[this.pos++]; + lowBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + let middleByte = this.buf[this.pos++]; + // last four bits of the first 32 bit number + lowBits |= (middleByte & 0x0f) << 28; + // 3 upper bits are part of the next 32 bit number + highBits = (middleByte & 0x70) >> 4; + if ((middleByte & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + for (let shift = 3; shift <= 31; shift += 7) { + let b = this.buf[this.pos++]; + highBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + throw new Error("invalid varint"); +} +/** + * Write a 64 bit varint, given as two JS numbers, to the given bytes array. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 + */ +export function varint64write(lo, hi, bytes) { + for (let i = 0; i < 28; i = i + 7) { + const shift = lo >>> i; + const hasNext = !(shift >>> 7 == 0 && hi == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); + const hasMoreBits = !(hi >> 3 == 0); + bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); + if (!hasMoreBits) { + return; + } + for (let i = 3; i < 31; i = i + 7) { + const shift = hi >>> i; + const hasNext = !(shift >>> 7 == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + bytes.push((hi >>> 31) & 0x01); +} +// constants for binary math +const TWO_PWR_32_DBL = 0x100000000; +/** + * Parse decimal string of 64 bit integer value as two JS numbers. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function int64FromString(dec) { + // Check for minus sign. + const minus = dec[0] === "-"; + if (minus) { + dec = dec.slice(1); + } + // Work 6 decimal digits at a time, acting like we're converting base 1e6 + // digits to binary. This is safe to do with floating point math because + // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. + const base = 1e6; + let lowBits = 0; + let highBits = 0; + function add1e6digit(begin, end) { + // Note: Number('') is 0. + const digit1e6 = Number(dec.slice(begin, end)); + highBits *= base; + lowBits = lowBits * base + digit1e6; + // Carry bits from lowBits to + if (lowBits >= TWO_PWR_32_DBL) { + highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); + lowBits = lowBits % TWO_PWR_32_DBL; + } + } + add1e6digit(-24, -18); + add1e6digit(-18, -12); + add1e6digit(-12, -6); + add1e6digit(-6); + return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); +} +/** + * Losslessly converts a 64-bit signed integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function int64ToString(lo, hi) { + let bits = newBits(lo, hi); + // If we're treating the input as a signed value and the high bit is set, do + // a manual two's complement conversion before the decimal conversion. + const negative = bits.hi & 0x80000000; + if (negative) { + bits = negate(bits.lo, bits.hi); + } + const result = uInt64ToString(bits.lo, bits.hi); + return negative ? "-" + result : result; +} +/** + * Losslessly converts a 64-bit unsigned integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function uInt64ToString(lo, hi) { + ({ lo, hi } = toUnsigned(lo, hi)); + // Skip the expensive conversion if the number is small enough to use the + // built-in conversions. + // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with + // highBits <= 0x1FFFFF can be safely expressed with a double and retain + // integer precision. + // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. + if (hi <= 0x1fffff) { + return String(TWO_PWR_32_DBL * hi + lo); + } + // What this code is doing is essentially converting the input number from + // base-2 to base-1e7, which allows us to represent the 64-bit range with + // only 3 (very large) digits. Those digits are then trivial to convert to + // a base-10 string. + // The magic numbers used here are - + // 2^24 = 16777216 = (1,6777216) in base-1e7. + // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. + // Split 32:32 representation into 16:24:24 representation so our + // intermediate digits don't overflow. + const low = lo & 0xffffff; + const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; + const high = (hi >> 16) & 0xffff; + // Assemble our three base-1e7 digits, ignoring carries. The maximum + // value in a digit at this step is representable as a 48-bit integer, which + // can be stored in a 64-bit floating point number. + let digitA = low + mid * 6777216 + high * 6710656; + let digitB = mid + high * 8147497; + let digitC = high * 2; + // Apply carries from A to B and from B to C. + const base = 10000000; + if (digitA >= base) { + digitB += Math.floor(digitA / base); + digitA %= base; + } + if (digitB >= base) { + digitC += Math.floor(digitB / base); + digitB %= base; + } + // If digitC is 0, then we should have returned in the trivial code path + // at the top for non-safe integers. Given this, we can assume both digitB + // and digitA need leading zeros. + return (digitC.toString() + + decimalFrom1e7WithLeadingZeros(digitB) + + decimalFrom1e7WithLeadingZeros(digitA)); +} +function toUnsigned(lo, hi) { + return { lo: lo >>> 0, hi: hi >>> 0 }; +} +function newBits(lo, hi) { + return { lo: lo | 0, hi: hi | 0 }; +} +/** + * Returns two's compliment negation of input. + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers + */ +function negate(lowBits, highBits) { + highBits = ~highBits; + if (lowBits) { + lowBits = ~lowBits + 1; + } + else { + // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, + // adding 1 to that, results in 0x100000000, which leaves + // the low bits 0x0 and simply adds one to the high bits. + highBits += 1; + } + return newBits(lowBits, highBits); +} +/** + * Returns decimal representation of digit1e7 with leading zeros. + */ +const decimalFrom1e7WithLeadingZeros = (digit1e7) => { + const partial = String(digit1e7); + return "0000000".slice(partial.length) + partial; +}; +/** + * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 + */ +export function varint32write(value, bytes) { + if (value >= 0) { + // write value as varint 32 + while (value > 0x7f) { + bytes.push((value & 0x7f) | 0x80); + value = value >>> 7; + } + bytes.push(value); + } + else { + for (let i = 0; i < 9; i++) { + bytes.push((value & 127) | 128); + value = value >> 7; + } + bytes.push(1); + } +} +/** + * Read an unsigned 32 bit varint. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 + */ +export function varint32read() { + let b = this.buf[this.pos++]; + let result = b & 0x7f; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 7; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 14; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 21; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + // Extract only last 4 bits + b = this.buf[this.pos++]; + result |= (b & 0x0f) << 28; + for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) + b = this.buf[this.pos++]; + if ((b & 0x80) != 0) + throw new Error("invalid varint"); + this.assertBounds(); + // Result can have 32 bits, convert it to unsigned + return result >>> 0; +} +/** + * encode zig zag + */ +export function zzEncode(lo, hi) { + let mask = hi >> 31; + hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; + lo = ((lo << 1) ^ mask) >>> 0; + return [lo, hi]; +} +/** + * decode zig zag + */ +export function zzDecode(lo, hi) { + let mask = -(lo & 1); + lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; + hi = ((hi >>> 1) ^ mask) >>> 0; + return [lo, hi]; +} +/** + * unsigned int32 without moving pos. + */ +export function readUInt32(buf, pos) { + return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + buf[pos + 3] * 0x1000000); +} +/** + * signed int32 without moving pos. + */ +export function readInt32(buf, pos) { + return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + (buf[pos + 3] << 24)); +} +/** + * writing varint32 to pos + */ +export function writeVarint32(val, buf, pos) { + while (val > 127) { + buf[pos++] = (val & 127) | 128; + val >>>= 7; + } + buf[pos] = val; +} +/** + * writing varint64 to pos + */ +export function writeVarint64(val, buf, pos) { + while (val.hi) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; + val.hi >>>= 7; + } + while (val.lo > 127) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = val.lo >>> 7; + } + buf[pos++] = val.lo; +} +export function int64Length(lo, hi) { + let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24; + return part2 === 0 + ? part1 === 0 + ? part0 < 16384 + ? part0 < 128 + ? 1 + : 2 + : part0 < 2097152 + ? 3 + : 4 + : part1 < 16384 + ? part1 < 128 + ? 5 + : 6 + : part1 < 2097152 + ? 7 + : 8 + : part2 < 128 + ? 9 + : 10; +} +export function writeFixed32(val, buf, pos) { + buf[pos] = val & 255; + buf[pos + 1] = (val >>> 8) & 255; + buf[pos + 2] = (val >>> 16) & 255; + buf[pos + 3] = val >>> 24; +} +export function writeByte(val, buf, pos) { + buf[pos] = val & 255; +} diff --git a/packages/api/dist/gogoproto/bundle.d.ts b/packages/api/dist/gogoproto/bundle.d.ts new file mode 100644 index 00000000..55791e68 --- /dev/null +++ b/packages/api/dist/gogoproto/bundle.d.ts @@ -0,0 +1 @@ +export declare const gogoproto: {}; diff --git a/packages/api/dist/gogoproto/bundle.js b/packages/api/dist/gogoproto/bundle.js new file mode 100644 index 00000000..028bf20c --- /dev/null +++ b/packages/api/dist/gogoproto/bundle.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.gogoproto = void 0; +//@ts-nocheck +const _67 = __importStar(require("./gogo")); +exports.gogoproto = { + ..._67 +}; diff --git a/packages/api/dist/gogoproto/gogo.d.ts b/packages/api/dist/gogoproto/gogo.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/gogoproto/gogo.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/gogoproto/gogo.js b/packages/api/dist/gogoproto/gogo.js new file mode 100644 index 00000000..c8ad2e54 --- /dev/null +++ b/packages/api/dist/gogoproto/gogo.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/google/api/annotations.d.ts b/packages/api/dist/google/api/annotations.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/packages/api/dist/google/api/annotations.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/api/dist/google/api/annotations.js b/packages/api/dist/google/api/annotations.js new file mode 100644 index 00000000..c8ad2e54 --- /dev/null +++ b/packages/api/dist/google/api/annotations.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/google/api/http.d.ts b/packages/api/dist/google/api/http.d.ts new file mode 100644 index 00000000..31e16298 --- /dev/null +++ b/packages/api/dist/google/api/http.d.ts @@ -0,0 +1,1073 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface Http { + /** + * A list of HTTP configuration rules that apply to individual API methods. + * + * **NOTE:** All service configuration rules follow "last one wins" order. + */ + rules: HttpRule[]; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + */ + fullyDecodeReservedExpansion: boolean; +} +export interface HttpProtoMsg { + typeUrl: "/google.api.Http"; + value: Uint8Array; +} +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface HttpAmino { + /** + * A list of HTTP configuration rules that apply to individual API methods. + * + * **NOTE:** All service configuration rules follow "last one wins" order. + */ + rules?: HttpRuleAmino[]; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + */ + fully_decode_reserved_expansion?: boolean; +} +export interface HttpAminoMsg { + type: "/google.api.Http"; + value: HttpAmino; +} +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface HttpSDKType { + rules: HttpRuleSDKType[]; + fully_decode_reserved_expansion: boolean; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRule { + /** + * Selects a method to which this rule applies. + * + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + */ + selector: string; + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + */ + get?: string; + /** Maps to HTTP PUT. Used for replacing a resource. */ + put?: string; + /** Maps to HTTP POST. Used for creating a resource or performing an action. */ + post?: string; + /** Maps to HTTP DELETE. Used for deleting a resource. */ + delete?: string; + /** Maps to HTTP PATCH. Used for updating a resource. */ + patch?: string; + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ + custom?: CustomHttpPattern; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * + * NOTE: the referred field must be present at the top-level of the request + * message type. + */ + body: string; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * + * NOTE: The referred field must be present at the top-level of the response + * message type. + */ + responseBody: string; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + */ + additionalBindings: HttpRule[]; +} +export interface HttpRuleProtoMsg { + typeUrl: "/google.api.HttpRule"; + value: Uint8Array; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRuleAmino { + /** + * Selects a method to which this rule applies. + * + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + */ + selector?: string; + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + */ + get?: string; + /** Maps to HTTP PUT. Used for replacing a resource. */ + put?: string; + /** Maps to HTTP POST. Used for creating a resource or performing an action. */ + post?: string; + /** Maps to HTTP DELETE. Used for deleting a resource. */ + delete?: string; + /** Maps to HTTP PATCH. Used for updating a resource. */ + patch?: string; + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ + custom?: CustomHttpPatternAmino; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * + * NOTE: the referred field must be present at the top-level of the request + * message type. + */ + body?: string; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * + * NOTE: The referred field must be present at the top-level of the response + * message type. + */ + response_body?: string; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + */ + additional_bindings?: HttpRuleAmino[]; +} +export interface HttpRuleAminoMsg { + type: "/google.api.HttpRule"; + value: HttpRuleAmino; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRuleSDKType { + selector: string; + get?: string; + put?: string; + post?: string; + delete?: string; + patch?: string; + custom?: CustomHttpPatternSDKType; + body: string; + response_body: string; + additional_bindings: HttpRuleSDKType[]; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPattern { + /** The name of this custom HTTP verb. */ + kind: string; + /** The path matched by this custom verb. */ + path: string; +} +export interface CustomHttpPatternProtoMsg { + typeUrl: "/google.api.CustomHttpPattern"; + value: Uint8Array; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPatternAmino { + /** The name of this custom HTTP verb. */ + kind?: string; + /** The path matched by this custom verb. */ + path?: string; +} +export interface CustomHttpPatternAminoMsg { + type: "/google.api.CustomHttpPattern"; + value: CustomHttpPatternAmino; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPatternSDKType { + kind: string; + path: string; +} +export declare const Http: { + typeUrl: string; + encode(message: Http, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Http; + fromPartial(object: Partial): Http; + fromAmino(object: HttpAmino): Http; + toAmino(message: Http): HttpAmino; + fromAminoMsg(object: HttpAminoMsg): Http; + fromProtoMsg(message: HttpProtoMsg): Http; + toProto(message: Http): Uint8Array; + toProtoMsg(message: Http): HttpProtoMsg; +}; +export declare const HttpRule: { + typeUrl: string; + encode(message: HttpRule, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): HttpRule; + fromPartial(object: Partial): HttpRule; + fromAmino(object: HttpRuleAmino): HttpRule; + toAmino(message: HttpRule): HttpRuleAmino; + fromAminoMsg(object: HttpRuleAminoMsg): HttpRule; + fromProtoMsg(message: HttpRuleProtoMsg): HttpRule; + toProto(message: HttpRule): Uint8Array; + toProtoMsg(message: HttpRule): HttpRuleProtoMsg; +}; +export declare const CustomHttpPattern: { + typeUrl: string; + encode(message: CustomHttpPattern, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern; + fromPartial(object: Partial): CustomHttpPattern; + fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern; + toAmino(message: CustomHttpPattern): CustomHttpPatternAmino; + fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern; + fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern; + toProto(message: CustomHttpPattern): Uint8Array; + toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg; +}; diff --git a/packages/api/dist/google/api/http.js b/packages/api/dist/google/api/http.js new file mode 100644 index 00000000..2ade7aa2 --- /dev/null +++ b/packages/api/dist/google/api/http.js @@ -0,0 +1,332 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CustomHttpPattern = exports.HttpRule = exports.Http = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +function createBaseHttp() { + return { + rules: [], + fullyDecodeReservedExpansion: false + }; +} +exports.Http = { + typeUrl: "/google.api.Http", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.rules) { + exports.HttpRule.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.fullyDecodeReservedExpansion === true) { + writer.uint32(16).bool(message.fullyDecodeReservedExpansion); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rules.push(exports.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => exports.HttpRule.fromPartial(e)) || []; + message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => exports.HttpRule.fromAmino(e)) || []; + if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { + message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.rules) { + obj.rules = message.rules.map(e => e ? exports.HttpRule.toAmino(e) : undefined); + } + else { + obj.rules = message.rules; + } + obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; + return obj; + }, + fromAminoMsg(object) { + return exports.Http.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Http.decode(message.value); + }, + toProto(message) { + return exports.Http.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.Http", + value: exports.Http.encode(message).finish() + }; + } +}; +function createBaseHttpRule() { + return { + selector: "", + get: undefined, + put: undefined, + post: undefined, + delete: undefined, + patch: undefined, + custom: undefined, + body: "", + responseBody: "", + additionalBindings: [] + }; +} +exports.HttpRule = { + typeUrl: "/google.api.HttpRule", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.selector !== "") { + writer.uint32(10).string(message.selector); + } + if (message.get !== undefined) { + writer.uint32(18).string(message.get); + } + if (message.put !== undefined) { + writer.uint32(26).string(message.put); + } + if (message.post !== undefined) { + writer.uint32(34).string(message.post); + } + if (message.delete !== undefined) { + writer.uint32(42).string(message.delete); + } + if (message.patch !== undefined) { + writer.uint32(50).string(message.patch); + } + if (message.custom !== undefined) { + exports.CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); + } + if (message.body !== "") { + writer.uint32(58).string(message.body); + } + if (message.responseBody !== "") { + writer.uint32(98).string(message.responseBody); + } + for (const v of message.additionalBindings) { + exports.HttpRule.encode(v, writer.uint32(90).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttpRule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message.delete = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = exports.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + message.additionalBindings.push(exports.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHttpRule(); + message.selector = object.selector ?? ""; + message.get = object.get ?? undefined; + message.put = object.put ?? undefined; + message.post = object.post ?? undefined; + message.delete = object.delete ?? undefined; + message.patch = object.patch ?? undefined; + message.custom = object.custom !== undefined && object.custom !== null ? exports.CustomHttpPattern.fromPartial(object.custom) : undefined; + message.body = object.body ?? ""; + message.responseBody = object.responseBody ?? ""; + message.additionalBindings = object.additionalBindings?.map(e => exports.HttpRule.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseHttpRule(); + if (object.selector !== undefined && object.selector !== null) { + message.selector = object.selector; + } + if (object.get !== undefined && object.get !== null) { + message.get = object.get; + } + if (object.put !== undefined && object.put !== null) { + message.put = object.put; + } + if (object.post !== undefined && object.post !== null) { + message.post = object.post; + } + if (object.delete !== undefined && object.delete !== null) { + message.delete = object.delete; + } + if (object.patch !== undefined && object.patch !== null) { + message.patch = object.patch; + } + if (object.custom !== undefined && object.custom !== null) { + message.custom = exports.CustomHttpPattern.fromAmino(object.custom); + } + if (object.body !== undefined && object.body !== null) { + message.body = object.body; + } + if (object.response_body !== undefined && object.response_body !== null) { + message.responseBody = object.response_body; + } + message.additionalBindings = object.additional_bindings?.map(e => exports.HttpRule.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.selector = message.selector === "" ? undefined : message.selector; + obj.get = message.get === null ? undefined : message.get; + obj.put = message.put === null ? undefined : message.put; + obj.post = message.post === null ? undefined : message.post; + obj.delete = message.delete === null ? undefined : message.delete; + obj.patch = message.patch === null ? undefined : message.patch; + obj.custom = message.custom ? exports.CustomHttpPattern.toAmino(message.custom) : undefined; + obj.body = message.body === "" ? undefined : message.body; + obj.response_body = message.responseBody === "" ? undefined : message.responseBody; + if (message.additionalBindings) { + obj.additional_bindings = message.additionalBindings.map(e => e ? exports.HttpRule.toAmino(e) : undefined); + } + else { + obj.additional_bindings = message.additionalBindings; + } + return obj; + }, + fromAminoMsg(object) { + return exports.HttpRule.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.HttpRule.decode(message.value); + }, + toProto(message) { + return exports.HttpRule.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.HttpRule", + value: exports.HttpRule.encode(message).finish() + }; + } +}; +function createBaseCustomHttpPattern() { + return { + kind: "", + path: "" + }; +} +exports.CustomHttpPattern = { + typeUrl: "/google.api.CustomHttpPattern", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.kind !== "") { + writer.uint32(10).string(message.kind); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCustomHttpPattern(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCustomHttpPattern(); + message.kind = object.kind ?? ""; + message.path = object.path ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCustomHttpPattern(); + if (object.kind !== undefined && object.kind !== null) { + message.kind = object.kind; + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.kind = message.kind === "" ? undefined : message.kind; + obj.path = message.path === "" ? undefined : message.path; + return obj; + }, + fromAminoMsg(object) { + return exports.CustomHttpPattern.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CustomHttpPattern.decode(message.value); + }, + toProto(message) { + return exports.CustomHttpPattern.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.api.CustomHttpPattern", + value: exports.CustomHttpPattern.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/google/bundle.d.ts b/packages/api/dist/google/bundle.d.ts new file mode 100644 index 00000000..014494c1 --- /dev/null +++ b/packages/api/dist/google/bundle.d.ts @@ -0,0 +1,398 @@ +import * as _115 from "./protobuf/descriptor"; +import * as _116 from "./protobuf/any"; +import * as _117 from "./protobuf/timestamp"; +import * as _118 from "./protobuf/duration"; +export declare namespace google { + const protobuf: { + Duration: { + typeUrl: string; + encode(message: _118.Duration, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _118.Duration; + fromPartial(object: Partial<_118.Duration>): _118.Duration; + fromAmino(object: string): _118.Duration; + toAmino(message: _118.Duration): string; + fromAminoMsg(object: _118.DurationAminoMsg): _118.Duration; + fromProtoMsg(message: _118.DurationProtoMsg): _118.Duration; + toProto(message: _118.Duration): Uint8Array; + toProtoMsg(message: _118.Duration): _118.DurationProtoMsg; + }; + Timestamp: { + typeUrl: string; + encode(message: _117.Timestamp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _117.Timestamp; + fromPartial(object: Partial<_117.Timestamp>): _117.Timestamp; + fromAmino(object: string): _117.Timestamp; + toAmino(message: _117.Timestamp): string; + fromAminoMsg(object: _117.TimestampAminoMsg): _117.Timestamp; + fromProtoMsg(message: _117.TimestampProtoMsg): _117.Timestamp; + toProto(message: _117.Timestamp): Uint8Array; + toProtoMsg(message: _117.Timestamp): _117.TimestampProtoMsg; + }; + Any: { + typeUrl: string; + encode(message: _116.Any, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _116.Any; + fromPartial(object: Partial<_116.Any>): _116.Any; + fromAmino(object: _116.AnyAmino): _116.Any; + toAmino(message: _116.Any): _116.AnyAmino; + fromAminoMsg(object: _116.AnyAminoMsg): _116.Any; + fromProtoMsg(message: _116.AnyProtoMsg): _116.Any; + toProto(message: _116.Any): Uint8Array; + toProtoMsg(message: _116.Any): _116.AnyProtoMsg; + }; + fieldDescriptorProto_TypeFromJSON(object: any): _115.FieldDescriptorProto_Type; + fieldDescriptorProto_TypeToJSON(object: _115.FieldDescriptorProto_Type): string; + fieldDescriptorProto_LabelFromJSON(object: any): _115.FieldDescriptorProto_Label; + fieldDescriptorProto_LabelToJSON(object: _115.FieldDescriptorProto_Label): string; + fileOptions_OptimizeModeFromJSON(object: any): _115.FileOptions_OptimizeMode; + fileOptions_OptimizeModeToJSON(object: _115.FileOptions_OptimizeMode): string; + fieldOptions_CTypeFromJSON(object: any): _115.FieldOptions_CType; + fieldOptions_CTypeToJSON(object: _115.FieldOptions_CType): string; + fieldOptions_JSTypeFromJSON(object: any): _115.FieldOptions_JSType; + fieldOptions_JSTypeToJSON(object: _115.FieldOptions_JSType): string; + methodOptions_IdempotencyLevelFromJSON(object: any): _115.MethodOptions_IdempotencyLevel; + methodOptions_IdempotencyLevelToJSON(object: _115.MethodOptions_IdempotencyLevel): string; + FieldDescriptorProto_Type: typeof _115.FieldDescriptorProto_Type; + FieldDescriptorProto_TypeSDKType: typeof _115.FieldDescriptorProto_Type; + FieldDescriptorProto_TypeAmino: typeof _115.FieldDescriptorProto_Type; + FieldDescriptorProto_Label: typeof _115.FieldDescriptorProto_Label; + FieldDescriptorProto_LabelSDKType: typeof _115.FieldDescriptorProto_Label; + FieldDescriptorProto_LabelAmino: typeof _115.FieldDescriptorProto_Label; + FileOptions_OptimizeMode: typeof _115.FileOptions_OptimizeMode; + FileOptions_OptimizeModeSDKType: typeof _115.FileOptions_OptimizeMode; + FileOptions_OptimizeModeAmino: typeof _115.FileOptions_OptimizeMode; + FieldOptions_CType: typeof _115.FieldOptions_CType; + FieldOptions_CTypeSDKType: typeof _115.FieldOptions_CType; + FieldOptions_CTypeAmino: typeof _115.FieldOptions_CType; + FieldOptions_JSType: typeof _115.FieldOptions_JSType; + FieldOptions_JSTypeSDKType: typeof _115.FieldOptions_JSType; + FieldOptions_JSTypeAmino: typeof _115.FieldOptions_JSType; + MethodOptions_IdempotencyLevel: typeof _115.MethodOptions_IdempotencyLevel; + MethodOptions_IdempotencyLevelSDKType: typeof _115.MethodOptions_IdempotencyLevel; + MethodOptions_IdempotencyLevelAmino: typeof _115.MethodOptions_IdempotencyLevel; + FileDescriptorSet: { + typeUrl: string; + encode(message: _115.FileDescriptorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileDescriptorSet; + fromPartial(object: Partial<_115.FileDescriptorSet>): _115.FileDescriptorSet; + fromAmino(object: _115.FileDescriptorSetAmino): _115.FileDescriptorSet; + toAmino(message: _115.FileDescriptorSet): _115.FileDescriptorSetAmino; + fromAminoMsg(object: _115.FileDescriptorSetAminoMsg): _115.FileDescriptorSet; + fromProtoMsg(message: _115.FileDescriptorSetProtoMsg): _115.FileDescriptorSet; + toProto(message: _115.FileDescriptorSet): Uint8Array; + toProtoMsg(message: _115.FileDescriptorSet): _115.FileDescriptorSetProtoMsg; + }; + FileDescriptorProto: { + typeUrl: string; + encode(message: _115.FileDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileDescriptorProto; + fromPartial(object: Partial<_115.FileDescriptorProto>): _115.FileDescriptorProto; + fromAmino(object: _115.FileDescriptorProtoAmino): _115.FileDescriptorProto; + toAmino(message: _115.FileDescriptorProto): _115.FileDescriptorProtoAmino; + fromAminoMsg(object: _115.FileDescriptorProtoAminoMsg): _115.FileDescriptorProto; + fromProtoMsg(message: _115.FileDescriptorProtoProtoMsg): _115.FileDescriptorProto; + toProto(message: _115.FileDescriptorProto): Uint8Array; + toProtoMsg(message: _115.FileDescriptorProto): _115.FileDescriptorProtoProtoMsg; + }; + DescriptorProto: { + typeUrl: string; + encode(message: _115.DescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto; + fromPartial(object: Partial<_115.DescriptorProto>): _115.DescriptorProto; + fromAmino(object: _115.DescriptorProtoAmino): _115.DescriptorProto; + toAmino(message: _115.DescriptorProto): _115.DescriptorProtoAmino; + fromAminoMsg(object: _115.DescriptorProtoAminoMsg): _115.DescriptorProto; + fromProtoMsg(message: _115.DescriptorProtoProtoMsg): _115.DescriptorProto; + toProto(message: _115.DescriptorProto): Uint8Array; + toProtoMsg(message: _115.DescriptorProto): _115.DescriptorProtoProtoMsg; + }; + DescriptorProto_ExtensionRange: { + typeUrl: string; + encode(message: _115.DescriptorProto_ExtensionRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto_ExtensionRange; + fromPartial(object: Partial<_115.DescriptorProto_ExtensionRange>): _115.DescriptorProto_ExtensionRange; + fromAmino(object: _115.DescriptorProto_ExtensionRangeAmino): _115.DescriptorProto_ExtensionRange; + toAmino(message: _115.DescriptorProto_ExtensionRange): _115.DescriptorProto_ExtensionRangeAmino; + fromAminoMsg(object: _115.DescriptorProto_ExtensionRangeAminoMsg): _115.DescriptorProto_ExtensionRange; + fromProtoMsg(message: _115.DescriptorProto_ExtensionRangeProtoMsg): _115.DescriptorProto_ExtensionRange; + toProto(message: _115.DescriptorProto_ExtensionRange): Uint8Array; + toProtoMsg(message: _115.DescriptorProto_ExtensionRange): _115.DescriptorProto_ExtensionRangeProtoMsg; + }; + DescriptorProto_ReservedRange: { + typeUrl: string; + encode(message: _115.DescriptorProto_ReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto_ReservedRange; + fromPartial(object: Partial<_115.DescriptorProto_ReservedRange>): _115.DescriptorProto_ReservedRange; + fromAmino(object: _115.DescriptorProto_ReservedRangeAmino): _115.DescriptorProto_ReservedRange; + toAmino(message: _115.DescriptorProto_ReservedRange): _115.DescriptorProto_ReservedRangeAmino; + fromAminoMsg(object: _115.DescriptorProto_ReservedRangeAminoMsg): _115.DescriptorProto_ReservedRange; + fromProtoMsg(message: _115.DescriptorProto_ReservedRangeProtoMsg): _115.DescriptorProto_ReservedRange; + toProto(message: _115.DescriptorProto_ReservedRange): Uint8Array; + toProtoMsg(message: _115.DescriptorProto_ReservedRange): _115.DescriptorProto_ReservedRangeProtoMsg; + }; + ExtensionRangeOptions: { + typeUrl: string; + encode(message: _115.ExtensionRangeOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ExtensionRangeOptions; + fromPartial(object: Partial<_115.ExtensionRangeOptions>): _115.ExtensionRangeOptions; + fromAmino(object: _115.ExtensionRangeOptionsAmino): _115.ExtensionRangeOptions; + toAmino(message: _115.ExtensionRangeOptions): _115.ExtensionRangeOptionsAmino; + fromAminoMsg(object: _115.ExtensionRangeOptionsAminoMsg): _115.ExtensionRangeOptions; + fromProtoMsg(message: _115.ExtensionRangeOptionsProtoMsg): _115.ExtensionRangeOptions; + toProto(message: _115.ExtensionRangeOptions): Uint8Array; + toProtoMsg(message: _115.ExtensionRangeOptions): _115.ExtensionRangeOptionsProtoMsg; + }; + FieldDescriptorProto: { + typeUrl: string; + encode(message: _115.FieldDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FieldDescriptorProto; + fromPartial(object: Partial<_115.FieldDescriptorProto>): _115.FieldDescriptorProto; + fromAmino(object: _115.FieldDescriptorProtoAmino): _115.FieldDescriptorProto; + toAmino(message: _115.FieldDescriptorProto): _115.FieldDescriptorProtoAmino; + fromAminoMsg(object: _115.FieldDescriptorProtoAminoMsg): _115.FieldDescriptorProto; + fromProtoMsg(message: _115.FieldDescriptorProtoProtoMsg): _115.FieldDescriptorProto; + toProto(message: _115.FieldDescriptorProto): Uint8Array; + toProtoMsg(message: _115.FieldDescriptorProto): _115.FieldDescriptorProtoProtoMsg; + }; + OneofDescriptorProto: { + typeUrl: string; + encode(message: _115.OneofDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.OneofDescriptorProto; + fromPartial(object: Partial<_115.OneofDescriptorProto>): _115.OneofDescriptorProto; + fromAmino(object: _115.OneofDescriptorProtoAmino): _115.OneofDescriptorProto; + toAmino(message: _115.OneofDescriptorProto): _115.OneofDescriptorProtoAmino; + fromAminoMsg(object: _115.OneofDescriptorProtoAminoMsg): _115.OneofDescriptorProto; + fromProtoMsg(message: _115.OneofDescriptorProtoProtoMsg): _115.OneofDescriptorProto; + toProto(message: _115.OneofDescriptorProto): Uint8Array; + toProtoMsg(message: _115.OneofDescriptorProto): _115.OneofDescriptorProtoProtoMsg; + }; + EnumDescriptorProto: { + typeUrl: string; + encode(message: _115.EnumDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumDescriptorProto; + fromPartial(object: Partial<_115.EnumDescriptorProto>): _115.EnumDescriptorProto; + fromAmino(object: _115.EnumDescriptorProtoAmino): _115.EnumDescriptorProto; + toAmino(message: _115.EnumDescriptorProto): _115.EnumDescriptorProtoAmino; + fromAminoMsg(object: _115.EnumDescriptorProtoAminoMsg): _115.EnumDescriptorProto; + fromProtoMsg(message: _115.EnumDescriptorProtoProtoMsg): _115.EnumDescriptorProto; + toProto(message: _115.EnumDescriptorProto): Uint8Array; + toProtoMsg(message: _115.EnumDescriptorProto): _115.EnumDescriptorProtoProtoMsg; + }; + EnumDescriptorProto_EnumReservedRange: { + typeUrl: string; + encode(message: _115.EnumDescriptorProto_EnumReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumDescriptorProto_EnumReservedRange; + fromPartial(object: Partial<_115.EnumDescriptorProto_EnumReservedRange>): _115.EnumDescriptorProto_EnumReservedRange; + fromAmino(object: _115.EnumDescriptorProto_EnumReservedRangeAmino): _115.EnumDescriptorProto_EnumReservedRange; + toAmino(message: _115.EnumDescriptorProto_EnumReservedRange): _115.EnumDescriptorProto_EnumReservedRangeAmino; + fromAminoMsg(object: _115.EnumDescriptorProto_EnumReservedRangeAminoMsg): _115.EnumDescriptorProto_EnumReservedRange; + fromProtoMsg(message: _115.EnumDescriptorProto_EnumReservedRangeProtoMsg): _115.EnumDescriptorProto_EnumReservedRange; + toProto(message: _115.EnumDescriptorProto_EnumReservedRange): Uint8Array; + toProtoMsg(message: _115.EnumDescriptorProto_EnumReservedRange): _115.EnumDescriptorProto_EnumReservedRangeProtoMsg; + }; + EnumValueDescriptorProto: { + typeUrl: string; + encode(message: _115.EnumValueDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumValueDescriptorProto; + fromPartial(object: Partial<_115.EnumValueDescriptorProto>): _115.EnumValueDescriptorProto; + fromAmino(object: _115.EnumValueDescriptorProtoAmino): _115.EnumValueDescriptorProto; + toAmino(message: _115.EnumValueDescriptorProto): _115.EnumValueDescriptorProtoAmino; + fromAminoMsg(object: _115.EnumValueDescriptorProtoAminoMsg): _115.EnumValueDescriptorProto; + fromProtoMsg(message: _115.EnumValueDescriptorProtoProtoMsg): _115.EnumValueDescriptorProto; + toProto(message: _115.EnumValueDescriptorProto): Uint8Array; + toProtoMsg(message: _115.EnumValueDescriptorProto): _115.EnumValueDescriptorProtoProtoMsg; + }; + ServiceDescriptorProto: { + typeUrl: string; + encode(message: _115.ServiceDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ServiceDescriptorProto; + fromPartial(object: Partial<_115.ServiceDescriptorProto>): _115.ServiceDescriptorProto; + fromAmino(object: _115.ServiceDescriptorProtoAmino): _115.ServiceDescriptorProto; + toAmino(message: _115.ServiceDescriptorProto): _115.ServiceDescriptorProtoAmino; + fromAminoMsg(object: _115.ServiceDescriptorProtoAminoMsg): _115.ServiceDescriptorProto; + fromProtoMsg(message: _115.ServiceDescriptorProtoProtoMsg): _115.ServiceDescriptorProto; + toProto(message: _115.ServiceDescriptorProto): Uint8Array; + toProtoMsg(message: _115.ServiceDescriptorProto): _115.ServiceDescriptorProtoProtoMsg; + }; + MethodDescriptorProto: { + typeUrl: string; + encode(message: _115.MethodDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MethodDescriptorProto; + fromPartial(object: Partial<_115.MethodDescriptorProto>): _115.MethodDescriptorProto; + fromAmino(object: _115.MethodDescriptorProtoAmino): _115.MethodDescriptorProto; + toAmino(message: _115.MethodDescriptorProto): _115.MethodDescriptorProtoAmino; + fromAminoMsg(object: _115.MethodDescriptorProtoAminoMsg): _115.MethodDescriptorProto; + fromProtoMsg(message: _115.MethodDescriptorProtoProtoMsg): _115.MethodDescriptorProto; + toProto(message: _115.MethodDescriptorProto): Uint8Array; + toProtoMsg(message: _115.MethodDescriptorProto): _115.MethodDescriptorProtoProtoMsg; + }; + FileOptions: { + typeUrl: string; + encode(message: _115.FileOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileOptions; + fromPartial(object: Partial<_115.FileOptions>): _115.FileOptions; + fromAmino(object: _115.FileOptionsAmino): _115.FileOptions; + toAmino(message: _115.FileOptions): _115.FileOptionsAmino; + fromAminoMsg(object: _115.FileOptionsAminoMsg): _115.FileOptions; + fromProtoMsg(message: _115.FileOptionsProtoMsg): _115.FileOptions; + toProto(message: _115.FileOptions): Uint8Array; + toProtoMsg(message: _115.FileOptions): _115.FileOptionsProtoMsg; + }; + MessageOptions: { + typeUrl: string; + encode(message: _115.MessageOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MessageOptions; + fromPartial(object: Partial<_115.MessageOptions>): _115.MessageOptions; + fromAmino(object: _115.MessageOptionsAmino): _115.MessageOptions; + toAmino(message: _115.MessageOptions): _115.MessageOptionsAmino; + fromAminoMsg(object: _115.MessageOptionsAminoMsg): _115.MessageOptions; + fromProtoMsg(message: _115.MessageOptionsProtoMsg): _115.MessageOptions; + toProto(message: _115.MessageOptions): Uint8Array; + toProtoMsg(message: _115.MessageOptions): _115.MessageOptionsProtoMsg; + }; + FieldOptions: { + typeUrl: string; + encode(message: _115.FieldOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FieldOptions; + fromPartial(object: Partial<_115.FieldOptions>): _115.FieldOptions; + fromAmino(object: _115.FieldOptionsAmino): _115.FieldOptions; + toAmino(message: _115.FieldOptions): _115.FieldOptionsAmino; + fromAminoMsg(object: _115.FieldOptionsAminoMsg): _115.FieldOptions; + fromProtoMsg(message: _115.FieldOptionsProtoMsg): _115.FieldOptions; + toProto(message: _115.FieldOptions): Uint8Array; + toProtoMsg(message: _115.FieldOptions): _115.FieldOptionsProtoMsg; + }; + OneofOptions: { + typeUrl: string; + encode(message: _115.OneofOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.OneofOptions; + fromPartial(object: Partial<_115.OneofOptions>): _115.OneofOptions; + fromAmino(object: _115.OneofOptionsAmino): _115.OneofOptions; + toAmino(message: _115.OneofOptions): _115.OneofOptionsAmino; + fromAminoMsg(object: _115.OneofOptionsAminoMsg): _115.OneofOptions; + fromProtoMsg(message: _115.OneofOptionsProtoMsg): _115.OneofOptions; + toProto(message: _115.OneofOptions): Uint8Array; + toProtoMsg(message: _115.OneofOptions): _115.OneofOptionsProtoMsg; + }; + EnumOptions: { + typeUrl: string; + encode(message: _115.EnumOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumOptions; + fromPartial(object: Partial<_115.EnumOptions>): _115.EnumOptions; + fromAmino(object: _115.EnumOptionsAmino): _115.EnumOptions; + toAmino(message: _115.EnumOptions): _115.EnumOptionsAmino; + fromAminoMsg(object: _115.EnumOptionsAminoMsg): _115.EnumOptions; + fromProtoMsg(message: _115.EnumOptionsProtoMsg): _115.EnumOptions; + toProto(message: _115.EnumOptions): Uint8Array; + toProtoMsg(message: _115.EnumOptions): _115.EnumOptionsProtoMsg; + }; + EnumValueOptions: { + typeUrl: string; + encode(message: _115.EnumValueOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumValueOptions; + fromPartial(object: Partial<_115.EnumValueOptions>): _115.EnumValueOptions; + fromAmino(object: _115.EnumValueOptionsAmino): _115.EnumValueOptions; + toAmino(message: _115.EnumValueOptions): _115.EnumValueOptionsAmino; + fromAminoMsg(object: _115.EnumValueOptionsAminoMsg): _115.EnumValueOptions; + fromProtoMsg(message: _115.EnumValueOptionsProtoMsg): _115.EnumValueOptions; + toProto(message: _115.EnumValueOptions): Uint8Array; + toProtoMsg(message: _115.EnumValueOptions): _115.EnumValueOptionsProtoMsg; + }; + ServiceOptions: { + typeUrl: string; + encode(message: _115.ServiceOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ServiceOptions; + fromPartial(object: Partial<_115.ServiceOptions>): _115.ServiceOptions; + fromAmino(object: _115.ServiceOptionsAmino): _115.ServiceOptions; + toAmino(message: _115.ServiceOptions): _115.ServiceOptionsAmino; + fromAminoMsg(object: _115.ServiceOptionsAminoMsg): _115.ServiceOptions; + fromProtoMsg(message: _115.ServiceOptionsProtoMsg): _115.ServiceOptions; + toProto(message: _115.ServiceOptions): Uint8Array; + toProtoMsg(message: _115.ServiceOptions): _115.ServiceOptionsProtoMsg; + }; + MethodOptions: { + typeUrl: string; + encode(message: _115.MethodOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MethodOptions; + fromPartial(object: Partial<_115.MethodOptions>): _115.MethodOptions; + fromAmino(object: _115.MethodOptionsAmino): _115.MethodOptions; + toAmino(message: _115.MethodOptions): _115.MethodOptionsAmino; + fromAminoMsg(object: _115.MethodOptionsAminoMsg): _115.MethodOptions; + fromProtoMsg(message: _115.MethodOptionsProtoMsg): _115.MethodOptions; + toProto(message: _115.MethodOptions): Uint8Array; + toProtoMsg(message: _115.MethodOptions): _115.MethodOptionsProtoMsg; + }; + UninterpretedOption: { + typeUrl: string; + encode(message: _115.UninterpretedOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.UninterpretedOption; + fromPartial(object: Partial<_115.UninterpretedOption>): _115.UninterpretedOption; + fromAmino(object: _115.UninterpretedOptionAmino): _115.UninterpretedOption; + toAmino(message: _115.UninterpretedOption): _115.UninterpretedOptionAmino; + fromAminoMsg(object: _115.UninterpretedOptionAminoMsg): _115.UninterpretedOption; + fromProtoMsg(message: _115.UninterpretedOptionProtoMsg): _115.UninterpretedOption; + toProto(message: _115.UninterpretedOption): Uint8Array; + toProtoMsg(message: _115.UninterpretedOption): _115.UninterpretedOptionProtoMsg; + }; + UninterpretedOption_NamePart: { + typeUrl: string; + encode(message: _115.UninterpretedOption_NamePart, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.UninterpretedOption_NamePart; + fromPartial(object: Partial<_115.UninterpretedOption_NamePart>): _115.UninterpretedOption_NamePart; + fromAmino(object: _115.UninterpretedOption_NamePartAmino): _115.UninterpretedOption_NamePart; + toAmino(message: _115.UninterpretedOption_NamePart): _115.UninterpretedOption_NamePartAmino; + fromAminoMsg(object: _115.UninterpretedOption_NamePartAminoMsg): _115.UninterpretedOption_NamePart; + fromProtoMsg(message: _115.UninterpretedOption_NamePartProtoMsg): _115.UninterpretedOption_NamePart; + toProto(message: _115.UninterpretedOption_NamePart): Uint8Array; + toProtoMsg(message: _115.UninterpretedOption_NamePart): _115.UninterpretedOption_NamePartProtoMsg; + }; + SourceCodeInfo: { + typeUrl: string; + encode(message: _115.SourceCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.SourceCodeInfo; + fromPartial(object: Partial<_115.SourceCodeInfo>): _115.SourceCodeInfo; + fromAmino(object: _115.SourceCodeInfoAmino): _115.SourceCodeInfo; + toAmino(message: _115.SourceCodeInfo): _115.SourceCodeInfoAmino; + fromAminoMsg(object: _115.SourceCodeInfoAminoMsg): _115.SourceCodeInfo; + fromProtoMsg(message: _115.SourceCodeInfoProtoMsg): _115.SourceCodeInfo; + toProto(message: _115.SourceCodeInfo): Uint8Array; + toProtoMsg(message: _115.SourceCodeInfo): _115.SourceCodeInfoProtoMsg; + }; + SourceCodeInfo_Location: { + typeUrl: string; + encode(message: _115.SourceCodeInfo_Location, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.SourceCodeInfo_Location; + fromPartial(object: Partial<_115.SourceCodeInfo_Location>): _115.SourceCodeInfo_Location; + fromAmino(object: _115.SourceCodeInfo_LocationAmino): _115.SourceCodeInfo_Location; + toAmino(message: _115.SourceCodeInfo_Location): _115.SourceCodeInfo_LocationAmino; + fromAminoMsg(object: _115.SourceCodeInfo_LocationAminoMsg): _115.SourceCodeInfo_Location; + fromProtoMsg(message: _115.SourceCodeInfo_LocationProtoMsg): _115.SourceCodeInfo_Location; + toProto(message: _115.SourceCodeInfo_Location): Uint8Array; + toProtoMsg(message: _115.SourceCodeInfo_Location): _115.SourceCodeInfo_LocationProtoMsg; + }; + GeneratedCodeInfo: { + typeUrl: string; + encode(message: _115.GeneratedCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.GeneratedCodeInfo; + fromPartial(object: Partial<_115.GeneratedCodeInfo>): _115.GeneratedCodeInfo; + fromAmino(object: _115.GeneratedCodeInfoAmino): _115.GeneratedCodeInfo; + toAmino(message: _115.GeneratedCodeInfo): _115.GeneratedCodeInfoAmino; + fromAminoMsg(object: _115.GeneratedCodeInfoAminoMsg): _115.GeneratedCodeInfo; + fromProtoMsg(message: _115.GeneratedCodeInfoProtoMsg): _115.GeneratedCodeInfo; + toProto(message: _115.GeneratedCodeInfo): Uint8Array; + toProtoMsg(message: _115.GeneratedCodeInfo): _115.GeneratedCodeInfoProtoMsg; + }; + GeneratedCodeInfo_Annotation: { + typeUrl: string; + encode(message: _115.GeneratedCodeInfo_Annotation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.GeneratedCodeInfo_Annotation; + fromPartial(object: Partial<_115.GeneratedCodeInfo_Annotation>): _115.GeneratedCodeInfo_Annotation; + fromAmino(object: _115.GeneratedCodeInfo_AnnotationAmino): _115.GeneratedCodeInfo_Annotation; + toAmino(message: _115.GeneratedCodeInfo_Annotation): _115.GeneratedCodeInfo_AnnotationAmino; + fromAminoMsg(object: _115.GeneratedCodeInfo_AnnotationAminoMsg): _115.GeneratedCodeInfo_Annotation; + fromProtoMsg(message: _115.GeneratedCodeInfo_AnnotationProtoMsg): _115.GeneratedCodeInfo_Annotation; + toProto(message: _115.GeneratedCodeInfo_Annotation): Uint8Array; + toProtoMsg(message: _115.GeneratedCodeInfo_Annotation): _115.GeneratedCodeInfo_AnnotationProtoMsg; + }; + }; +} diff --git a/packages/api/dist/google/bundle.js b/packages/api/dist/google/bundle.js new file mode 100644 index 00000000..92da1163 --- /dev/null +++ b/packages/api/dist/google/bundle.js @@ -0,0 +1,40 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.google = void 0; +//@ts-nocheck +const _115 = __importStar(require("./protobuf/descriptor")); +const _116 = __importStar(require("./protobuf/any")); +const _117 = __importStar(require("./protobuf/timestamp")); +const _118 = __importStar(require("./protobuf/duration")); +var google; +(function (google) { + google.protobuf = { + ..._115, + ..._116, + ..._117, + ..._118 + }; +})(google || (exports.google = google = {})); diff --git a/packages/api/dist/google/protobuf/any.d.ts b/packages/api/dist/google/protobuf/any.d.ts new file mode 100644 index 00000000..67f7b844 --- /dev/null +++ b/packages/api/dist/google/protobuf/any.d.ts @@ -0,0 +1,338 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface Any { + $typeUrl?: "/google.protobuf.Any" | string; + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + typeUrl: string; + /** Must be a valid serialized protocol buffer of the above specified type. */ + value: Uint8Array; +} +export interface AnyProtoMsg { + typeUrl: "/google.protobuf.Any"; + value: Uint8Array; +} +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface AnyAmino { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type: string; + /** Must be a valid serialized protocol buffer of the above specified type. */ + value: any; +} +export interface AnyAminoMsg { + type: string; + value: AnyAmino; +} +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface AnySDKType { + $typeUrl?: "/google.protobuf.Any" | string; + type_url: string; + value: Uint8Array; +} +export declare const Any: { + typeUrl: string; + encode(message: Any, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Any; + fromPartial(object: Partial): Any; + fromAmino(object: AnyAmino): Any; + toAmino(message: Any): AnyAmino; + fromAminoMsg(object: AnyAminoMsg): Any; + fromProtoMsg(message: AnyProtoMsg): Any; + toProto(message: Any): Uint8Array; + toProtoMsg(message: Any): AnyProtoMsg; +}; diff --git a/packages/api/dist/google/protobuf/any.js b/packages/api/dist/google/protobuf/any.js new file mode 100644 index 00000000..ad29bfbc --- /dev/null +++ b/packages/api/dist/google/protobuf/any.js @@ -0,0 +1,77 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Any = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +function createBaseAny() { + return { + $typeUrl: "/google.protobuf.Any", + typeUrl: "", + value: new Uint8Array() + }; +} +exports.Any = { + typeUrl: "/google.protobuf.Any", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.typeUrl !== "") { + writer.uint32(10).string(message.typeUrl); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAny(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.typeUrl = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAny(); + message.typeUrl = object.typeUrl ?? ""; + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + return { + typeUrl: object.type, + value: object.value + }; + }, + toAmino(message) { + const obj = {}; + obj.type = message.typeUrl; + obj.value = message.value; + return obj; + }, + fromAminoMsg(object) { + return exports.Any.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Any.decode(message.value); + }, + toProto(message) { + return exports.Any.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Any", + value: exports.Any.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/google/protobuf/descriptor.d.ts b/packages/api/dist/google/protobuf/descriptor.d.ts new file mode 100644 index 00000000..87ad1172 --- /dev/null +++ b/packages/api/dist/google/protobuf/descriptor.d.ts @@ -0,0 +1,2278 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +export declare enum FieldDescriptorProto_Type { + /** + * TYPE_DOUBLE - 0 is reserved for errors. + * Order is weird for historical reasons. + */ + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + /** + * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + */ + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + /** + * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + */ + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + /** + * TYPE_GROUP - Tag-delimited aggregate. + * Group type is deprecated and not supported in proto3. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. + */ + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + /** TYPE_BYTES - New in version 2. */ + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + /** TYPE_SINT32 - Uses ZigZag encoding. */ + TYPE_SINT32 = 17, + /** TYPE_SINT64 - Uses ZigZag encoding. */ + TYPE_SINT64 = 18, + UNRECOGNIZED = -1 +} +export declare const FieldDescriptorProto_TypeSDKType: typeof FieldDescriptorProto_Type; +export declare const FieldDescriptorProto_TypeAmino: typeof FieldDescriptorProto_Type; +export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type; +export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string; +export declare enum FieldDescriptorProto_Label { + /** LABEL_OPTIONAL - 0 is reserved for errors */ + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3, + UNRECOGNIZED = -1 +} +export declare const FieldDescriptorProto_LabelSDKType: typeof FieldDescriptorProto_Label; +export declare const FieldDescriptorProto_LabelAmino: typeof FieldDescriptorProto_Label; +export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label; +export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string; +/** Generated classes can be optimized for speed or code size. */ +export declare enum FileOptions_OptimizeMode { + /** + * SPEED - Generate complete code for parsing, serialization, + * etc. + */ + SPEED = 1, + /** CODE_SIZE - Use ReflectionOps to implement these methods. */ + CODE_SIZE = 2, + /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ + LITE_RUNTIME = 3, + UNRECOGNIZED = -1 +} +export declare const FileOptions_OptimizeModeSDKType: typeof FileOptions_OptimizeMode; +export declare const FileOptions_OptimizeModeAmino: typeof FileOptions_OptimizeMode; +export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode; +export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string; +export declare enum FieldOptions_CType { + /** STRING - Default mode. */ + STRING = 0, + CORD = 1, + STRING_PIECE = 2, + UNRECOGNIZED = -1 +} +export declare const FieldOptions_CTypeSDKType: typeof FieldOptions_CType; +export declare const FieldOptions_CTypeAmino: typeof FieldOptions_CType; +export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType; +export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string; +export declare enum FieldOptions_JSType { + /** JS_NORMAL - Use the default type. */ + JS_NORMAL = 0, + /** JS_STRING - Use JavaScript strings. */ + JS_STRING = 1, + /** JS_NUMBER - Use JavaScript numbers. */ + JS_NUMBER = 2, + UNRECOGNIZED = -1 +} +export declare const FieldOptions_JSTypeSDKType: typeof FieldOptions_JSType; +export declare const FieldOptions_JSTypeAmino: typeof FieldOptions_JSType; +export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType; +export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string; +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + */ +export declare enum MethodOptions_IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + /** NO_SIDE_EFFECTS - implies idempotent */ + NO_SIDE_EFFECTS = 1, + /** IDEMPOTENT - idempotent, but may have side effects */ + IDEMPOTENT = 2, + UNRECOGNIZED = -1 +} +export declare const MethodOptions_IdempotencyLevelSDKType: typeof MethodOptions_IdempotencyLevel; +export declare const MethodOptions_IdempotencyLevelAmino: typeof MethodOptions_IdempotencyLevel; +export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel; +export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string; +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSet { + file: FileDescriptorProto[]; +} +export interface FileDescriptorSetProtoMsg { + typeUrl: "/google.protobuf.FileDescriptorSet"; + value: Uint8Array; +} +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSetAmino { + file?: FileDescriptorProtoAmino[]; +} +export interface FileDescriptorSetAminoMsg { + type: "/google.protobuf.FileDescriptorSet"; + value: FileDescriptorSetAmino; +} +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSetSDKType { + file: FileDescriptorProtoSDKType[]; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProto { + /** file name, relative to root of source tree */ + name: string; + package: string; + /** Names of files imported by this file. */ + dependency: string[]; + /** Indexes of the public imported files in the dependency list above. */ + publicDependency: number[]; + /** + * Indexes of the weak imported files in the dependency list. + * For Google-internal migration only. Do not use. + */ + weakDependency: number[]; + /** All top-level definitions in this file. */ + messageType: DescriptorProto[]; + enumType: EnumDescriptorProto[]; + service: ServiceDescriptorProto[]; + extension: FieldDescriptorProto[]; + options?: FileOptions; + /** + * This field contains optional information about the original source code. + * You may safely remove this entire field without harming runtime + * functionality of the descriptors -- the information is needed only by + * development tools. + */ + sourceCodeInfo?: SourceCodeInfo; + /** + * The syntax of the proto file. + * The supported values are "proto2" and "proto3". + */ + syntax: string; +} +export interface FileDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.FileDescriptorProto"; + value: Uint8Array; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProtoAmino { + /** file name, relative to root of source tree */ + name?: string; + package?: string; + /** Names of files imported by this file. */ + dependency?: string[]; + /** Indexes of the public imported files in the dependency list above. */ + public_dependency?: number[]; + /** + * Indexes of the weak imported files in the dependency list. + * For Google-internal migration only. Do not use. + */ + weak_dependency?: number[]; + /** All top-level definitions in this file. */ + message_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + service?: ServiceDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; + options?: FileOptionsAmino; + /** + * This field contains optional information about the original source code. + * You may safely remove this entire field without harming runtime + * functionality of the descriptors -- the information is needed only by + * development tools. + */ + source_code_info?: SourceCodeInfoAmino; + /** + * The syntax of the proto file. + * The supported values are "proto2" and "proto3". + */ + syntax?: string; +} +export interface FileDescriptorProtoAminoMsg { + type: "/google.protobuf.FileDescriptorProto"; + value: FileDescriptorProtoAmino; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProtoSDKType { + name: string; + package: string; + dependency: string[]; + public_dependency: number[]; + weak_dependency: number[]; + message_type: DescriptorProtoSDKType[]; + enum_type: EnumDescriptorProtoSDKType[]; + service: ServiceDescriptorProtoSDKType[]; + extension: FieldDescriptorProtoSDKType[]; + options?: FileOptionsSDKType; + source_code_info?: SourceCodeInfoSDKType; + syntax: string; +} +/** Describes a message type. */ +export interface DescriptorProto { + name: string; + field: FieldDescriptorProto[]; + extension: FieldDescriptorProto[]; + nestedType: DescriptorProto[]; + enumType: EnumDescriptorProto[]; + extensionRange: DescriptorProto_ExtensionRange[]; + oneofDecl: OneofDescriptorProto[]; + options?: MessageOptions; + reservedRange: DescriptorProto_ReservedRange[]; + /** + * Reserved field names, which may not be used by fields in the same message. + * A given name may only be reserved once. + */ + reservedName: string[]; +} +export interface DescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.DescriptorProto"; + value: Uint8Array; +} +/** Describes a message type. */ +export interface DescriptorProtoAmino { + name?: string; + field?: FieldDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; + nested_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + extension_range?: DescriptorProto_ExtensionRangeAmino[]; + oneof_decl?: OneofDescriptorProtoAmino[]; + options?: MessageOptionsAmino; + reserved_range?: DescriptorProto_ReservedRangeAmino[]; + /** + * Reserved field names, which may not be used by fields in the same message. + * A given name may only be reserved once. + */ + reserved_name?: string[]; +} +export interface DescriptorProtoAminoMsg { + type: "/google.protobuf.DescriptorProto"; + value: DescriptorProtoAmino; +} +/** Describes a message type. */ +export interface DescriptorProtoSDKType { + name: string; + field: FieldDescriptorProtoSDKType[]; + extension: FieldDescriptorProtoSDKType[]; + nested_type: DescriptorProtoSDKType[]; + enum_type: EnumDescriptorProtoSDKType[]; + extension_range: DescriptorProto_ExtensionRangeSDKType[]; + oneof_decl: OneofDescriptorProtoSDKType[]; + options?: MessageOptionsSDKType; + reserved_range: DescriptorProto_ReservedRangeSDKType[]; + reserved_name: string[]; +} +export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ + start: number; + /** Exclusive. */ + end: number; + options?: ExtensionRangeOptions; +} +export interface DescriptorProto_ExtensionRangeProtoMsg { + typeUrl: "/google.protobuf.ExtensionRange"; + value: Uint8Array; +} +export interface DescriptorProto_ExtensionRangeAmino { + /** Inclusive. */ + start?: number; + /** Exclusive. */ + end?: number; + options?: ExtensionRangeOptionsAmino; +} +export interface DescriptorProto_ExtensionRangeAminoMsg { + type: "/google.protobuf.ExtensionRange"; + value: DescriptorProto_ExtensionRangeAmino; +} +export interface DescriptorProto_ExtensionRangeSDKType { + start: number; + end: number; + options?: ExtensionRangeOptionsSDKType; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRange { + /** Inclusive. */ + start: number; + /** Exclusive. */ + end: number; +} +export interface DescriptorProto_ReservedRangeProtoMsg { + typeUrl: "/google.protobuf.ReservedRange"; + value: Uint8Array; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRangeAmino { + /** Inclusive. */ + start?: number; + /** Exclusive. */ + end?: number; +} +export interface DescriptorProto_ReservedRangeAminoMsg { + type: "/google.protobuf.ReservedRange"; + value: DescriptorProto_ReservedRangeAmino; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRangeSDKType { + start: number; + end: number; +} +export interface ExtensionRangeOptions { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface ExtensionRangeOptionsProtoMsg { + typeUrl: "/google.protobuf.ExtensionRangeOptions"; + value: Uint8Array; +} +export interface ExtensionRangeOptionsAmino { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface ExtensionRangeOptionsAminoMsg { + type: "/google.protobuf.ExtensionRangeOptions"; + value: ExtensionRangeOptionsAmino; +} +export interface ExtensionRangeOptionsSDKType { + uninterpreted_option: UninterpretedOptionSDKType[]; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProto { + name: string; + number: number; + label: FieldDescriptorProto_Label; + /** + * If type_name is set, this need not be set. If both this and type_name + * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + */ + type: FieldDescriptorProto_Type; + /** + * For message and enum types, this is the name of the type. If the name + * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + * rules are used to find the type (i.e. first the nested types within this + * message are searched, then within the parent, on up to the root + * namespace). + */ + typeName: string; + /** + * For extensions, this is the name of the type being extended. It is + * resolved in the same manner as type_name. + */ + extendee: string; + /** + * For numeric types, contains the original text representation of the value. + * For booleans, "true" or "false". + * For strings, contains the default text contents (not escaped in any way). + * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * TODO(kenton): Base-64 encode? + */ + defaultValue: string; + /** + * If set, gives the index of a oneof in the containing type's oneof_decl + * list. This field is a member of that oneof. + */ + oneofIndex: number; + /** + * JSON name of this field. The value is set by protocol compiler. If the + * user has set a "json_name" option on this field, that option's value + * will be used. Otherwise, it's deduced from the field's name by converting + * it to camelCase. + */ + jsonName: string; + options?: FieldOptions; +} +export interface FieldDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.FieldDescriptorProto"; + value: Uint8Array; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProtoAmino { + name?: string; + number?: number; + label?: FieldDescriptorProto_Label; + /** + * If type_name is set, this need not be set. If both this and type_name + * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + */ + type?: FieldDescriptorProto_Type; + /** + * For message and enum types, this is the name of the type. If the name + * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + * rules are used to find the type (i.e. first the nested types within this + * message are searched, then within the parent, on up to the root + * namespace). + */ + type_name?: string; + /** + * For extensions, this is the name of the type being extended. It is + * resolved in the same manner as type_name. + */ + extendee?: string; + /** + * For numeric types, contains the original text representation of the value. + * For booleans, "true" or "false". + * For strings, contains the default text contents (not escaped in any way). + * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * TODO(kenton): Base-64 encode? + */ + default_value?: string; + /** + * If set, gives the index of a oneof in the containing type's oneof_decl + * list. This field is a member of that oneof. + */ + oneof_index?: number; + /** + * JSON name of this field. The value is set by protocol compiler. If the + * user has set a "json_name" option on this field, that option's value + * will be used. Otherwise, it's deduced from the field's name by converting + * it to camelCase. + */ + json_name?: string; + options?: FieldOptionsAmino; +} +export interface FieldDescriptorProtoAminoMsg { + type: "/google.protobuf.FieldDescriptorProto"; + value: FieldDescriptorProtoAmino; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProtoSDKType { + name: string; + number: number; + label: FieldDescriptorProto_Label; + type: FieldDescriptorProto_Type; + type_name: string; + extendee: string; + default_value: string; + oneof_index: number; + json_name: string; + options?: FieldOptionsSDKType; +} +/** Describes a oneof. */ +export interface OneofDescriptorProto { + name: string; + options?: OneofOptions; +} +export interface OneofDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.OneofDescriptorProto"; + value: Uint8Array; +} +/** Describes a oneof. */ +export interface OneofDescriptorProtoAmino { + name?: string; + options?: OneofOptionsAmino; +} +export interface OneofDescriptorProtoAminoMsg { + type: "/google.protobuf.OneofDescriptorProto"; + value: OneofDescriptorProtoAmino; +} +/** Describes a oneof. */ +export interface OneofDescriptorProtoSDKType { + name: string; + options?: OneofOptionsSDKType; +} +/** Describes an enum type. */ +export interface EnumDescriptorProto { + name: string; + value: EnumValueDescriptorProto[]; + options?: EnumOptions; + /** + * Range of reserved numeric values. Reserved numeric values may not be used + * by enum values in the same enum declaration. Reserved ranges may not + * overlap. + */ + reservedRange: EnumDescriptorProto_EnumReservedRange[]; + /** + * Reserved enum value names, which may not be reused. A given name may only + * be reserved once. + */ + reservedName: string[]; +} +export interface EnumDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.EnumDescriptorProto"; + value: Uint8Array; +} +/** Describes an enum type. */ +export interface EnumDescriptorProtoAmino { + name?: string; + value?: EnumValueDescriptorProtoAmino[]; + options?: EnumOptionsAmino; + /** + * Range of reserved numeric values. Reserved numeric values may not be used + * by enum values in the same enum declaration. Reserved ranges may not + * overlap. + */ + reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; + /** + * Reserved enum value names, which may not be reused. A given name may only + * be reserved once. + */ + reserved_name?: string[]; +} +export interface EnumDescriptorProtoAminoMsg { + type: "/google.protobuf.EnumDescriptorProto"; + value: EnumDescriptorProtoAmino; +} +/** Describes an enum type. */ +export interface EnumDescriptorProtoSDKType { + name: string; + value: EnumValueDescriptorProtoSDKType[]; + options?: EnumOptionsSDKType; + reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; + reserved_name: string[]; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRange { + /** Inclusive. */ + start: number; + /** Inclusive. */ + end: number; +} +export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { + typeUrl: "/google.protobuf.EnumReservedRange"; + value: Uint8Array; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRangeAmino { + /** Inclusive. */ + start?: number; + /** Inclusive. */ + end?: number; +} +export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { + type: "/google.protobuf.EnumReservedRange"; + value: EnumDescriptorProto_EnumReservedRangeAmino; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRangeSDKType { + start: number; + end: number; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProto { + name: string; + number: number; + options?: EnumValueOptions; +} +export interface EnumValueDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.EnumValueDescriptorProto"; + value: Uint8Array; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProtoAmino { + name?: string; + number?: number; + options?: EnumValueOptionsAmino; +} +export interface EnumValueDescriptorProtoAminoMsg { + type: "/google.protobuf.EnumValueDescriptorProto"; + value: EnumValueDescriptorProtoAmino; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProtoSDKType { + name: string; + number: number; + options?: EnumValueOptionsSDKType; +} +/** Describes a service. */ +export interface ServiceDescriptorProto { + name: string; + method: MethodDescriptorProto[]; + options?: ServiceOptions; +} +export interface ServiceDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.ServiceDescriptorProto"; + value: Uint8Array; +} +/** Describes a service. */ +export interface ServiceDescriptorProtoAmino { + name?: string; + method?: MethodDescriptorProtoAmino[]; + options?: ServiceOptionsAmino; +} +export interface ServiceDescriptorProtoAminoMsg { + type: "/google.protobuf.ServiceDescriptorProto"; + value: ServiceDescriptorProtoAmino; +} +/** Describes a service. */ +export interface ServiceDescriptorProtoSDKType { + name: string; + method: MethodDescriptorProtoSDKType[]; + options?: ServiceOptionsSDKType; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProto { + name: string; + /** + * Input and output type names. These are resolved in the same way as + * FieldDescriptorProto.type_name, but must refer to a message type. + */ + inputType: string; + outputType: string; + options?: MethodOptions; + /** Identifies if client streams multiple client messages */ + clientStreaming: boolean; + /** Identifies if server streams multiple server messages */ + serverStreaming: boolean; +} +export interface MethodDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.MethodDescriptorProto"; + value: Uint8Array; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProtoAmino { + name?: string; + /** + * Input and output type names. These are resolved in the same way as + * FieldDescriptorProto.type_name, but must refer to a message type. + */ + input_type?: string; + output_type?: string; + options?: MethodOptionsAmino; + /** Identifies if client streams multiple client messages */ + client_streaming?: boolean; + /** Identifies if server streams multiple server messages */ + server_streaming?: boolean; +} +export interface MethodDescriptorProtoAminoMsg { + type: "/google.protobuf.MethodDescriptorProto"; + value: MethodDescriptorProtoAmino; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProtoSDKType { + name: string; + input_type: string; + output_type: string; + options?: MethodOptionsSDKType; + client_streaming: boolean; + server_streaming: boolean; +} +export interface FileOptions { + /** + * Sets the Java package where classes generated from this .proto will be + * placed. By default, the proto package is used, but this is often + * inappropriate because proto packages do not normally start with backwards + * domain names. + */ + javaPackage: string; + /** + * If set, all the classes from the .proto file are wrapped in a single + * outer class with the given name. This applies to both Proto1 + * (equivalent to the old "--one_java_file" option) and Proto2 (where + * a .proto always translates to a single class, but you may want to + * explicitly choose the class name). + */ + javaOuterClassname: string; + /** + * If set true, then the Java code generator will generate a separate .java + * file for each top-level message, enum, and service defined in the .proto + * file. Thus, these types will *not* be nested inside the outer class + * named by java_outer_classname. However, the outer class will still be + * generated to contain the file's getDescriptor() method as well as any + * top-level extensions defined in the file. + */ + javaMultipleFiles: boolean; + /** This option does nothing. */ + /** @deprecated */ + javaGenerateEqualsAndHash: boolean; + /** + * If set true, then the Java2 code generator will generate code that + * throws an exception whenever an attempt is made to assign a non-UTF-8 + * byte sequence to a string field. + * Message reflection will do the same. + * However, an extension field still accepts non-UTF-8 byte sequences. + * This option has no effect on when used with the lite runtime. + */ + javaStringCheckUtf8: boolean; + optimizeFor: FileOptions_OptimizeMode; + /** + * Sets the Go package where structs generated from this .proto will be + * placed. If omitted, the Go package will be derived from the following: + * - The basename of the package import path, if provided. + * - Otherwise, the package statement in the .proto file, if present. + * - Otherwise, the basename of the .proto file, without extension. + */ + goPackage: string; + /** + * Should generic services be generated in each language? "Generic" services + * are not specific to any particular RPC system. They are generated by the + * main code generators in each language (without additional plugins). + * Generic services were the only kind of service generation supported by + * early versions of google.protobuf. + * + * Generic services are now considered deprecated in favor of using plugins + * that generate code specific to your particular RPC system. Therefore, + * these default to false. Old code which depends on generic services should + * explicitly set them to true. + */ + ccGenericServices: boolean; + javaGenericServices: boolean; + pyGenericServices: boolean; + phpGenericServices: boolean; + /** + * Is this file deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for everything in the file, or it will be completely ignored; in the very + * least, this is a formalization for deprecating files. + */ + deprecated: boolean; + /** + * Enables the use of arenas for the proto messages in this file. This applies + * only to generated classes for C++. + */ + ccEnableArenas: boolean; + /** + * Sets the objective c class prefix which is prepended to all objective c + * generated classes from this .proto. There is no default. + */ + objcClassPrefix: string; + /** Namespace for generated classes; defaults to the package. */ + csharpNamespace: string; + /** + * By default Swift generators will take the proto package and CamelCase it + * replacing '.' with underscore and use that to prefix the types/symbols + * defined. When this options is provided, they will use this value instead + * to prefix the types/symbols defined. + */ + swiftPrefix: string; + /** + * Sets the php class prefix which is prepended to all php generated classes + * from this .proto. Default is empty. + */ + phpClassPrefix: string; + /** + * Use this option to change the namespace of php generated classes. Default + * is empty. When this option is empty, the package name will be used for + * determining the namespace. + */ + phpNamespace: string; + /** + * Use this option to change the namespace of php generated metadata classes. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. + */ + phpMetadataNamespace: string; + /** + * Use this option to change the package of ruby generated classes. Default + * is empty. When this option is not set, the package name will be used for + * determining the ruby package. + */ + rubyPackage: string; + /** + * The parser stores options it doesn't recognize here. + * See the documentation for the "Options" section above. + */ + uninterpretedOption: UninterpretedOption[]; +} +export interface FileOptionsProtoMsg { + typeUrl: "/google.protobuf.FileOptions"; + value: Uint8Array; +} +export interface FileOptionsAmino { + /** + * Sets the Java package where classes generated from this .proto will be + * placed. By default, the proto package is used, but this is often + * inappropriate because proto packages do not normally start with backwards + * domain names. + */ + java_package?: string; + /** + * If set, all the classes from the .proto file are wrapped in a single + * outer class with the given name. This applies to both Proto1 + * (equivalent to the old "--one_java_file" option) and Proto2 (where + * a .proto always translates to a single class, but you may want to + * explicitly choose the class name). + */ + java_outer_classname?: string; + /** + * If set true, then the Java code generator will generate a separate .java + * file for each top-level message, enum, and service defined in the .proto + * file. Thus, these types will *not* be nested inside the outer class + * named by java_outer_classname. However, the outer class will still be + * generated to contain the file's getDescriptor() method as well as any + * top-level extensions defined in the file. + */ + java_multiple_files?: boolean; + /** This option does nothing. */ + /** @deprecated */ + java_generate_equals_and_hash?: boolean; + /** + * If set true, then the Java2 code generator will generate code that + * throws an exception whenever an attempt is made to assign a non-UTF-8 + * byte sequence to a string field. + * Message reflection will do the same. + * However, an extension field still accepts non-UTF-8 byte sequences. + * This option has no effect on when used with the lite runtime. + */ + java_string_check_utf8?: boolean; + optimize_for?: FileOptions_OptimizeMode; + /** + * Sets the Go package where structs generated from this .proto will be + * placed. If omitted, the Go package will be derived from the following: + * - The basename of the package import path, if provided. + * - Otherwise, the package statement in the .proto file, if present. + * - Otherwise, the basename of the .proto file, without extension. + */ + go_package?: string; + /** + * Should generic services be generated in each language? "Generic" services + * are not specific to any particular RPC system. They are generated by the + * main code generators in each language (without additional plugins). + * Generic services were the only kind of service generation supported by + * early versions of google.protobuf. + * + * Generic services are now considered deprecated in favor of using plugins + * that generate code specific to your particular RPC system. Therefore, + * these default to false. Old code which depends on generic services should + * explicitly set them to true. + */ + cc_generic_services?: boolean; + java_generic_services?: boolean; + py_generic_services?: boolean; + php_generic_services?: boolean; + /** + * Is this file deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for everything in the file, or it will be completely ignored; in the very + * least, this is a formalization for deprecating files. + */ + deprecated?: boolean; + /** + * Enables the use of arenas for the proto messages in this file. This applies + * only to generated classes for C++. + */ + cc_enable_arenas?: boolean; + /** + * Sets the objective c class prefix which is prepended to all objective c + * generated classes from this .proto. There is no default. + */ + objc_class_prefix?: string; + /** Namespace for generated classes; defaults to the package. */ + csharp_namespace?: string; + /** + * By default Swift generators will take the proto package and CamelCase it + * replacing '.' with underscore and use that to prefix the types/symbols + * defined. When this options is provided, they will use this value instead + * to prefix the types/symbols defined. + */ + swift_prefix?: string; + /** + * Sets the php class prefix which is prepended to all php generated classes + * from this .proto. Default is empty. + */ + php_class_prefix?: string; + /** + * Use this option to change the namespace of php generated classes. Default + * is empty. When this option is empty, the package name will be used for + * determining the namespace. + */ + php_namespace?: string; + /** + * Use this option to change the namespace of php generated metadata classes. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. + */ + php_metadata_namespace?: string; + /** + * Use this option to change the package of ruby generated classes. Default + * is empty. When this option is not set, the package name will be used for + * determining the ruby package. + */ + ruby_package?: string; + /** + * The parser stores options it doesn't recognize here. + * See the documentation for the "Options" section above. + */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface FileOptionsAminoMsg { + type: "/google.protobuf.FileOptions"; + value: FileOptionsAmino; +} +export interface FileOptionsSDKType { + java_package: string; + java_outer_classname: string; + java_multiple_files: boolean; + /** @deprecated */ + java_generate_equals_and_hash: boolean; + java_string_check_utf8: boolean; + optimize_for: FileOptions_OptimizeMode; + go_package: string; + cc_generic_services: boolean; + java_generic_services: boolean; + py_generic_services: boolean; + php_generic_services: boolean; + deprecated: boolean; + cc_enable_arenas: boolean; + objc_class_prefix: string; + csharp_namespace: string; + swift_prefix: string; + php_class_prefix: string; + php_namespace: string; + php_metadata_namespace: string; + ruby_package: string; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface MessageOptions { + /** + * Set true to use the old proto1 MessageSet wire format for extensions. + * This is provided for backwards-compatibility with the MessageSet wire + * format. You should not use this for any other reason: It's less + * efficient, has fewer features, and is more complicated. + * + * The message must be defined exactly as follows: + * message Foo { + * option message_set_wire_format = true; + * extensions 4 to max; + * } + * Note that the message cannot have any defined fields; MessageSets only + * have extensions. + * + * All extensions of your type must be singular messages; e.g. they cannot + * be int32s, enums, or repeated messages. + * + * Because this is an option, the above two restrictions are not enforced by + * the protocol compiler. + */ + messageSetWireFormat: boolean; + /** + * Disables the generation of the standard "descriptor()" accessor, which can + * conflict with a field of the same name. This is meant to make migration + * from proto1 easier; new code should avoid fields named "descriptor". + */ + noStandardDescriptorAccessor: boolean; + /** + * Is this message deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the message, or it will be completely ignored; in the very least, + * this is a formalization for deprecating messages. + */ + deprecated: boolean; + /** + * Whether the message is an automatically generated map entry type for the + * maps field. + * + * For maps fields: + * map map_field = 1; + * The parsed descriptor looks like: + * message MapFieldEntry { + * option map_entry = true; + * optional KeyType key = 1; + * optional ValueType value = 2; + * } + * repeated MapFieldEntry map_field = 1; + * + * Implementations may choose not to generate the map_entry=true message, but + * use a native map in the target language to hold the keys and values. + * The reflection APIs in such implementations still need to work as + * if the field is a repeated message field. + * + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. + */ + mapEntry: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface MessageOptionsProtoMsg { + typeUrl: "/google.protobuf.MessageOptions"; + value: Uint8Array; +} +export interface MessageOptionsAmino { + /** + * Set true to use the old proto1 MessageSet wire format for extensions. + * This is provided for backwards-compatibility with the MessageSet wire + * format. You should not use this for any other reason: It's less + * efficient, has fewer features, and is more complicated. + * + * The message must be defined exactly as follows: + * message Foo { + * option message_set_wire_format = true; + * extensions 4 to max; + * } + * Note that the message cannot have any defined fields; MessageSets only + * have extensions. + * + * All extensions of your type must be singular messages; e.g. they cannot + * be int32s, enums, or repeated messages. + * + * Because this is an option, the above two restrictions are not enforced by + * the protocol compiler. + */ + message_set_wire_format?: boolean; + /** + * Disables the generation of the standard "descriptor()" accessor, which can + * conflict with a field of the same name. This is meant to make migration + * from proto1 easier; new code should avoid fields named "descriptor". + */ + no_standard_descriptor_accessor?: boolean; + /** + * Is this message deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the message, or it will be completely ignored; in the very least, + * this is a formalization for deprecating messages. + */ + deprecated?: boolean; + /** + * Whether the message is an automatically generated map entry type for the + * maps field. + * + * For maps fields: + * map map_field = 1; + * The parsed descriptor looks like: + * message MapFieldEntry { + * option map_entry = true; + * optional KeyType key = 1; + * optional ValueType value = 2; + * } + * repeated MapFieldEntry map_field = 1; + * + * Implementations may choose not to generate the map_entry=true message, but + * use a native map in the target language to hold the keys and values. + * The reflection APIs in such implementations still need to work as + * if the field is a repeated message field. + * + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. + */ + map_entry?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface MessageOptionsAminoMsg { + type: "/google.protobuf.MessageOptions"; + value: MessageOptionsAmino; +} +export interface MessageOptionsSDKType { + message_set_wire_format: boolean; + no_standard_descriptor_accessor: boolean; + deprecated: boolean; + map_entry: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface FieldOptions { + /** + * The ctype option instructs the C++ code generator to use a different + * representation of the field than it normally would. See the specific + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! + */ + ctype: FieldOptions_CType; + /** + * The packed option can be enabled for repeated primitive fields to enable + * a more efficient representation on the wire. Rather than repeatedly + * writing the tag and type for each element, the entire array is encoded as + * a single length-delimited blob. In proto3, only explicit setting it to + * false will avoid using packed encoding. + */ + packed: boolean; + /** + * The jstype option determines the JavaScript type used for values of the + * field. The option is permitted only for 64 bit integral and fixed types + * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + * is represented as JavaScript string, which avoids loss of precision that + * can happen when a large value is converted to a floating point JavaScript. + * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + * use the JavaScript "number" type. The behavior of the default option + * JS_NORMAL is implementation dependent. + * + * This option is an enum to permit additional types to be added, e.g. + * goog.math.Integer. + */ + jstype: FieldOptions_JSType; + /** + * Should this field be parsed lazily? Lazy applies only to message-type + * fields. It means that when the outer message is initially parsed, the + * inner message's contents will not be parsed but instead stored in encoded + * form. The inner message will actually be parsed when it is first accessed. + * + * This is only a hint. Implementations are free to choose whether to use + * eager or lazy parsing regardless of the value of this option. However, + * setting this option true suggests that the protocol author believes that + * using lazy parsing on this field is worth the additional bookkeeping + * overhead typically needed to implement it. + * + * This option does not affect the public interface of any generated code; + * all method signatures remain the same. Furthermore, thread-safety of the + * interface is not affected by this option; const methods remain safe to + * call from multiple threads concurrently, while non-const methods continue + * to require exclusive access. + * + * + * Note that implementations may choose not to check required fields within + * a lazy sub-message. That is, calling IsInitialized() on the outer message + * may return true even if the inner message has missing required fields. + * This is necessary because otherwise the inner message would have to be + * parsed in order to perform the check, defeating the purpose of lazy + * parsing. An implementation which chooses not to check required fields + * must be consistent about it. That is, for any particular sub-message, the + * implementation must either *always* check its required fields, or *never* + * check its required fields, regardless of whether or not the message has + * been parsed. + */ + lazy: boolean; + /** + * Is this field deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for accessors, or it will be completely ignored; in the very least, this + * is a formalization for deprecating fields. + */ + deprecated: boolean; + /** For Google-internal migration only. Do not use. */ + weak: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface FieldOptionsProtoMsg { + typeUrl: "/google.protobuf.FieldOptions"; + value: Uint8Array; +} +export interface FieldOptionsAmino { + /** + * The ctype option instructs the C++ code generator to use a different + * representation of the field than it normally would. See the specific + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! + */ + ctype?: FieldOptions_CType; + /** + * The packed option can be enabled for repeated primitive fields to enable + * a more efficient representation on the wire. Rather than repeatedly + * writing the tag and type for each element, the entire array is encoded as + * a single length-delimited blob. In proto3, only explicit setting it to + * false will avoid using packed encoding. + */ + packed?: boolean; + /** + * The jstype option determines the JavaScript type used for values of the + * field. The option is permitted only for 64 bit integral and fixed types + * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + * is represented as JavaScript string, which avoids loss of precision that + * can happen when a large value is converted to a floating point JavaScript. + * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + * use the JavaScript "number" type. The behavior of the default option + * JS_NORMAL is implementation dependent. + * + * This option is an enum to permit additional types to be added, e.g. + * goog.math.Integer. + */ + jstype?: FieldOptions_JSType; + /** + * Should this field be parsed lazily? Lazy applies only to message-type + * fields. It means that when the outer message is initially parsed, the + * inner message's contents will not be parsed but instead stored in encoded + * form. The inner message will actually be parsed when it is first accessed. + * + * This is only a hint. Implementations are free to choose whether to use + * eager or lazy parsing regardless of the value of this option. However, + * setting this option true suggests that the protocol author believes that + * using lazy parsing on this field is worth the additional bookkeeping + * overhead typically needed to implement it. + * + * This option does not affect the public interface of any generated code; + * all method signatures remain the same. Furthermore, thread-safety of the + * interface is not affected by this option; const methods remain safe to + * call from multiple threads concurrently, while non-const methods continue + * to require exclusive access. + * + * + * Note that implementations may choose not to check required fields within + * a lazy sub-message. That is, calling IsInitialized() on the outer message + * may return true even if the inner message has missing required fields. + * This is necessary because otherwise the inner message would have to be + * parsed in order to perform the check, defeating the purpose of lazy + * parsing. An implementation which chooses not to check required fields + * must be consistent about it. That is, for any particular sub-message, the + * implementation must either *always* check its required fields, or *never* + * check its required fields, regardless of whether or not the message has + * been parsed. + */ + lazy?: boolean; + /** + * Is this field deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for accessors, or it will be completely ignored; in the very least, this + * is a formalization for deprecating fields. + */ + deprecated?: boolean; + /** For Google-internal migration only. Do not use. */ + weak?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface FieldOptionsAminoMsg { + type: "/google.protobuf.FieldOptions"; + value: FieldOptionsAmino; +} +export interface FieldOptionsSDKType { + ctype: FieldOptions_CType; + packed: boolean; + jstype: FieldOptions_JSType; + lazy: boolean; + deprecated: boolean; + weak: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface OneofOptions { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface OneofOptionsProtoMsg { + typeUrl: "/google.protobuf.OneofOptions"; + value: Uint8Array; +} +export interface OneofOptionsAmino { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface OneofOptionsAminoMsg { + type: "/google.protobuf.OneofOptions"; + value: OneofOptionsAmino; +} +export interface OneofOptionsSDKType { + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface EnumOptions { + /** + * Set this option to true to allow mapping different tag names to the same + * value. + */ + allowAlias: boolean; + /** + * Is this enum deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum, or it will be completely ignored; in the very least, this + * is a formalization for deprecating enums. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface EnumOptionsProtoMsg { + typeUrl: "/google.protobuf.EnumOptions"; + value: Uint8Array; +} +export interface EnumOptionsAmino { + /** + * Set this option to true to allow mapping different tag names to the same + * value. + */ + allow_alias?: boolean; + /** + * Is this enum deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum, or it will be completely ignored; in the very least, this + * is a formalization for deprecating enums. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface EnumOptionsAminoMsg { + type: "/google.protobuf.EnumOptions"; + value: EnumOptionsAmino; +} +export interface EnumOptionsSDKType { + allow_alias: boolean; + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface EnumValueOptions { + /** + * Is this enum value deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum value, or it will be completely ignored; in the very least, + * this is a formalization for deprecating enum values. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface EnumValueOptionsProtoMsg { + typeUrl: "/google.protobuf.EnumValueOptions"; + value: Uint8Array; +} +export interface EnumValueOptionsAmino { + /** + * Is this enum value deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum value, or it will be completely ignored; in the very least, + * this is a formalization for deprecating enum values. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface EnumValueOptionsAminoMsg { + type: "/google.protobuf.EnumValueOptions"; + value: EnumValueOptionsAmino; +} +export interface EnumValueOptionsSDKType { + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface ServiceOptions { + /** + * Is this service deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the service, or it will be completely ignored; in the very least, + * this is a formalization for deprecating services. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface ServiceOptionsProtoMsg { + typeUrl: "/google.protobuf.ServiceOptions"; + value: Uint8Array; +} +export interface ServiceOptionsAmino { + /** + * Is this service deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the service, or it will be completely ignored; in the very least, + * this is a formalization for deprecating services. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface ServiceOptionsAminoMsg { + type: "/google.protobuf.ServiceOptions"; + value: ServiceOptionsAmino; +} +export interface ServiceOptionsSDKType { + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface MethodOptions { + /** + * Is this method deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the method, or it will be completely ignored; in the very least, + * this is a formalization for deprecating methods. + */ + deprecated: boolean; + idempotencyLevel: MethodOptions_IdempotencyLevel; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface MethodOptionsProtoMsg { + typeUrl: "/google.protobuf.MethodOptions"; + value: Uint8Array; +} +export interface MethodOptionsAmino { + /** + * Is this method deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the method, or it will be completely ignored; in the very least, + * this is a formalization for deprecating methods. + */ + deprecated?: boolean; + idempotency_level?: MethodOptions_IdempotencyLevel; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface MethodOptionsAminoMsg { + type: "/google.protobuf.MethodOptions"; + value: MethodOptionsAmino; +} +export interface MethodOptionsSDKType { + deprecated: boolean; + idempotency_level: MethodOptions_IdempotencyLevel; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOption { + name: UninterpretedOption_NamePart[]; + /** + * The value of the uninterpreted option, in whatever type the tokenizer + * identified it as during parsing. Exactly one of these should be set. + */ + identifierValue: string; + positiveIntValue: bigint; + negativeIntValue: bigint; + doubleValue: number; + stringValue: Uint8Array; + aggregateValue: string; +} +export interface UninterpretedOptionProtoMsg { + typeUrl: "/google.protobuf.UninterpretedOption"; + value: Uint8Array; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOptionAmino { + name?: UninterpretedOption_NamePartAmino[]; + /** + * The value of the uninterpreted option, in whatever type the tokenizer + * identified it as during parsing. Exactly one of these should be set. + */ + identifier_value?: string; + positive_int_value?: string; + negative_int_value?: string; + double_value?: number; + string_value?: string; + aggregate_value?: string; +} +export interface UninterpretedOptionAminoMsg { + type: "/google.protobuf.UninterpretedOption"; + value: UninterpretedOptionAmino; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOptionSDKType { + name: UninterpretedOption_NamePartSDKType[]; + identifier_value: string; + positive_int_value: bigint; + negative_int_value: bigint; + double_value: number; + string_value: Uint8Array; + aggregate_value: string; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePart { + namePart: string; + isExtension: boolean; +} +export interface UninterpretedOption_NamePartProtoMsg { + typeUrl: "/google.protobuf.NamePart"; + value: Uint8Array; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePartAmino { + name_part?: string; + is_extension?: boolean; +} +export interface UninterpretedOption_NamePartAminoMsg { + type: "/google.protobuf.NamePart"; + value: UninterpretedOption_NamePartAmino; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePartSDKType { + name_part: string; + is_extension: boolean; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfo { + /** + * A Location identifies a piece of source code in a .proto file which + * corresponds to a particular definition. This information is intended + * to be useful to IDEs, code indexers, documentation generators, and similar + * tools. + * + * For example, say we have a file like: + * message Foo { + * optional string foo = 1; + * } + * Let's look at just the field definition: + * optional string foo = 1; + * ^ ^^ ^^ ^ ^^^ + * a bc de f ghi + * We have the following locations: + * span path represents + * [a,i) [ 4, 0, 2, 0 ] The whole field definition. + * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + * + * Notes: + * - A location may refer to a repeated field itself (i.e. not to any + * particular index within it). This is used whenever a set of elements are + * logically enclosed in a single code segment. For example, an entire + * extend block (possibly containing multiple extension definitions) will + * have an outer location whose path refers to the "extensions" repeated + * field without an index. + * - Multiple locations may have the same path. This happens when a single + * logical declaration is spread out across multiple places. The most + * obvious example is the "extend" block again -- there may be multiple + * extend blocks in the same scope, each of which will have the same path. + * - A location's span is not always a subset of its parent's span. For + * example, the "extendee" of an extension declaration appears at the + * beginning of the "extend" block and is shared by all extensions within + * the block. + * - Just because a location's span is a subset of some other location's span + * does not mean that it is a descendant. For example, a "group" defines + * both a type and a field in a single declaration. Thus, the locations + * corresponding to the type and field and their components will overlap. + * - Code which tries to interpret locations should probably be designed to + * ignore those that it doesn't understand, as more types of locations could + * be recorded in the future. + */ + location: SourceCodeInfo_Location[]; +} +export interface SourceCodeInfoProtoMsg { + typeUrl: "/google.protobuf.SourceCodeInfo"; + value: Uint8Array; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfoAmino { + /** + * A Location identifies a piece of source code in a .proto file which + * corresponds to a particular definition. This information is intended + * to be useful to IDEs, code indexers, documentation generators, and similar + * tools. + * + * For example, say we have a file like: + * message Foo { + * optional string foo = 1; + * } + * Let's look at just the field definition: + * optional string foo = 1; + * ^ ^^ ^^ ^ ^^^ + * a bc de f ghi + * We have the following locations: + * span path represents + * [a,i) [ 4, 0, 2, 0 ] The whole field definition. + * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + * + * Notes: + * - A location may refer to a repeated field itself (i.e. not to any + * particular index within it). This is used whenever a set of elements are + * logically enclosed in a single code segment. For example, an entire + * extend block (possibly containing multiple extension definitions) will + * have an outer location whose path refers to the "extensions" repeated + * field without an index. + * - Multiple locations may have the same path. This happens when a single + * logical declaration is spread out across multiple places. The most + * obvious example is the "extend" block again -- there may be multiple + * extend blocks in the same scope, each of which will have the same path. + * - A location's span is not always a subset of its parent's span. For + * example, the "extendee" of an extension declaration appears at the + * beginning of the "extend" block and is shared by all extensions within + * the block. + * - Just because a location's span is a subset of some other location's span + * does not mean that it is a descendant. For example, a "group" defines + * both a type and a field in a single declaration. Thus, the locations + * corresponding to the type and field and their components will overlap. + * - Code which tries to interpret locations should probably be designed to + * ignore those that it doesn't understand, as more types of locations could + * be recorded in the future. + */ + location?: SourceCodeInfo_LocationAmino[]; +} +export interface SourceCodeInfoAminoMsg { + type: "/google.protobuf.SourceCodeInfo"; + value: SourceCodeInfoAmino; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfoSDKType { + location: SourceCodeInfo_LocationSDKType[]; +} +export interface SourceCodeInfo_Location { + /** + * Identifies which part of the FileDescriptorProto was defined at this + * location. + * + * Each element is a field number or an index. They form a path from + * the root FileDescriptorProto to the place where the definition. For + * example, this path: + * [ 4, 3, 2, 7, 1 ] + * refers to: + * file.message_type(3) // 4, 3 + * .field(7) // 2, 7 + * .name() // 1 + * This is because FileDescriptorProto.message_type has field number 4: + * repeated DescriptorProto message_type = 4; + * and DescriptorProto.field has field number 2: + * repeated FieldDescriptorProto field = 2; + * and FieldDescriptorProto.name has field number 1: + * optional string name = 1; + * + * Thus, the above path gives the location of a field name. If we removed + * the last element: + * [ 4, 3, 2, 7 ] + * this path refers to the whole field declaration (from the beginning + * of the label to the terminating semicolon). + */ + path: number[]; + /** + * Always has exactly three or four elements: start line, start column, + * end line (optional, otherwise assumed same as start line), end column. + * These are packed into a single field for efficiency. Note that line + * and column numbers are zero-based -- typically you will want to add + * 1 to each before displaying to a user. + */ + span: number[]; + /** + * If this SourceCodeInfo represents a complete declaration, these are any + * comments appearing before and after the declaration which appear to be + * attached to the declaration. + * + * A series of line comments appearing on consecutive lines, with no other + * tokens appearing on those lines, will be treated as a single comment. + * + * leading_detached_comments will keep paragraphs of comments that appear + * before (but not connected to) the current element. Each paragraph, + * separated by empty lines, will be one comment element in the repeated + * field. + * + * Only the comment content is provided; comment markers (e.g. //) are + * stripped out. For block comments, leading whitespace and an asterisk + * will be stripped from the beginning of each line other than the first. + * Newlines are included in the output. + * + * Examples: + * + * optional int32 foo = 1; // Comment attached to foo. + * // Comment attached to bar. + * optional int32 bar = 2; + * + * optional string baz = 3; + * // Comment attached to baz. + * // Another line attached to baz. + * + * // Comment attached to qux. + * // + * // Another line attached to qux. + * optional double qux = 4; + * + * // Detached comment for corge. This is not leading or trailing comments + * // to qux or corge because there are blank lines separating it from + * // both. + * + * // Detached comment for corge paragraph 2. + * + * optional string corge = 5; + * /* Block comment attached + * * to corge. Leading asterisks + * * will be removed. *\/ + * /* Block comment attached to + * * grault. *\/ + * optional int32 grault = 6; + * + * // ignored detached comments. + */ + leadingComments: string; + trailingComments: string; + leadingDetachedComments: string[]; +} +export interface SourceCodeInfo_LocationProtoMsg { + typeUrl: "/google.protobuf.Location"; + value: Uint8Array; +} +export interface SourceCodeInfo_LocationAmino { + /** + * Identifies which part of the FileDescriptorProto was defined at this + * location. + * + * Each element is a field number or an index. They form a path from + * the root FileDescriptorProto to the place where the definition. For + * example, this path: + * [ 4, 3, 2, 7, 1 ] + * refers to: + * file.message_type(3) // 4, 3 + * .field(7) // 2, 7 + * .name() // 1 + * This is because FileDescriptorProto.message_type has field number 4: + * repeated DescriptorProto message_type = 4; + * and DescriptorProto.field has field number 2: + * repeated FieldDescriptorProto field = 2; + * and FieldDescriptorProto.name has field number 1: + * optional string name = 1; + * + * Thus, the above path gives the location of a field name. If we removed + * the last element: + * [ 4, 3, 2, 7 ] + * this path refers to the whole field declaration (from the beginning + * of the label to the terminating semicolon). + */ + path?: number[]; + /** + * Always has exactly three or four elements: start line, start column, + * end line (optional, otherwise assumed same as start line), end column. + * These are packed into a single field for efficiency. Note that line + * and column numbers are zero-based -- typically you will want to add + * 1 to each before displaying to a user. + */ + span?: number[]; + /** + * If this SourceCodeInfo represents a complete declaration, these are any + * comments appearing before and after the declaration which appear to be + * attached to the declaration. + * + * A series of line comments appearing on consecutive lines, with no other + * tokens appearing on those lines, will be treated as a single comment. + * + * leading_detached_comments will keep paragraphs of comments that appear + * before (but not connected to) the current element. Each paragraph, + * separated by empty lines, will be one comment element in the repeated + * field. + * + * Only the comment content is provided; comment markers (e.g. //) are + * stripped out. For block comments, leading whitespace and an asterisk + * will be stripped from the beginning of each line other than the first. + * Newlines are included in the output. + * + * Examples: + * + * optional int32 foo = 1; // Comment attached to foo. + * // Comment attached to bar. + * optional int32 bar = 2; + * + * optional string baz = 3; + * // Comment attached to baz. + * // Another line attached to baz. + * + * // Comment attached to qux. + * // + * // Another line attached to qux. + * optional double qux = 4; + * + * // Detached comment for corge. This is not leading or trailing comments + * // to qux or corge because there are blank lines separating it from + * // both. + * + * // Detached comment for corge paragraph 2. + * + * optional string corge = 5; + * /* Block comment attached + * * to corge. Leading asterisks + * * will be removed. *\/ + * /* Block comment attached to + * * grault. *\/ + * optional int32 grault = 6; + * + * // ignored detached comments. + */ + leading_comments?: string; + trailing_comments?: string; + leading_detached_comments?: string[]; +} +export interface SourceCodeInfo_LocationAminoMsg { + type: "/google.protobuf.Location"; + value: SourceCodeInfo_LocationAmino; +} +export interface SourceCodeInfo_LocationSDKType { + path: number[]; + span: number[]; + leading_comments: string; + trailing_comments: string; + leading_detached_comments: string[]; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfo { + /** + * An Annotation connects some span of text in generated code to an element + * of its generating .proto file. + */ + annotation: GeneratedCodeInfo_Annotation[]; +} +export interface GeneratedCodeInfoProtoMsg { + typeUrl: "/google.protobuf.GeneratedCodeInfo"; + value: Uint8Array; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfoAmino { + /** + * An Annotation connects some span of text in generated code to an element + * of its generating .proto file. + */ + annotation?: GeneratedCodeInfo_AnnotationAmino[]; +} +export interface GeneratedCodeInfoAminoMsg { + type: "/google.protobuf.GeneratedCodeInfo"; + value: GeneratedCodeInfoAmino; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfoSDKType { + annotation: GeneratedCodeInfo_AnnotationSDKType[]; +} +export interface GeneratedCodeInfo_Annotation { + /** + * Identifies the element in the original source .proto file. This field + * is formatted the same as SourceCodeInfo.Location.path. + */ + path: number[]; + /** Identifies the filesystem path to the original source .proto. */ + sourceFile: string; + /** + * Identifies the starting offset in bytes in the generated code + * that relates to the identified object. + */ + begin: number; + /** + * Identifies the ending offset in bytes in the generated code that + * relates to the identified offset. The end offset should be one past + * the last relevant byte (so the length of the text = end - begin). + */ + end: number; +} +export interface GeneratedCodeInfo_AnnotationProtoMsg { + typeUrl: "/google.protobuf.Annotation"; + value: Uint8Array; +} +export interface GeneratedCodeInfo_AnnotationAmino { + /** + * Identifies the element in the original source .proto file. This field + * is formatted the same as SourceCodeInfo.Location.path. + */ + path?: number[]; + /** Identifies the filesystem path to the original source .proto. */ + source_file?: string; + /** + * Identifies the starting offset in bytes in the generated code + * that relates to the identified object. + */ + begin?: number; + /** + * Identifies the ending offset in bytes in the generated code that + * relates to the identified offset. The end offset should be one past + * the last relevant byte (so the length of the text = end - begin). + */ + end?: number; +} +export interface GeneratedCodeInfo_AnnotationAminoMsg { + type: "/google.protobuf.Annotation"; + value: GeneratedCodeInfo_AnnotationAmino; +} +export interface GeneratedCodeInfo_AnnotationSDKType { + path: number[]; + source_file: string; + begin: number; + end: number; +} +export declare const FileDescriptorSet: { + typeUrl: string; + encode(message: FileDescriptorSet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet; + fromPartial(object: Partial): FileDescriptorSet; + fromAmino(object: FileDescriptorSetAmino): FileDescriptorSet; + toAmino(message: FileDescriptorSet): FileDescriptorSetAmino; + fromAminoMsg(object: FileDescriptorSetAminoMsg): FileDescriptorSet; + fromProtoMsg(message: FileDescriptorSetProtoMsg): FileDescriptorSet; + toProto(message: FileDescriptorSet): Uint8Array; + toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg; +}; +export declare const FileDescriptorProto: { + typeUrl: string; + encode(message: FileDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto; + fromPartial(object: Partial): FileDescriptorProto; + fromAmino(object: FileDescriptorProtoAmino): FileDescriptorProto; + toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino; + fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto; + fromProtoMsg(message: FileDescriptorProtoProtoMsg): FileDescriptorProto; + toProto(message: FileDescriptorProto): Uint8Array; + toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg; +}; +export declare const DescriptorProto: { + typeUrl: string; + encode(message: DescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto; + fromPartial(object: Partial): DescriptorProto; + fromAmino(object: DescriptorProtoAmino): DescriptorProto; + toAmino(message: DescriptorProto): DescriptorProtoAmino; + fromAminoMsg(object: DescriptorProtoAminoMsg): DescriptorProto; + fromProtoMsg(message: DescriptorProtoProtoMsg): DescriptorProto; + toProto(message: DescriptorProto): Uint8Array; + toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg; +}; +export declare const DescriptorProto_ExtensionRange: { + typeUrl: string; + encode(message: DescriptorProto_ExtensionRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; + fromPartial(object: Partial): DescriptorProto_ExtensionRange; + fromAmino(object: DescriptorProto_ExtensionRangeAmino): DescriptorProto_ExtensionRange; + toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino; + fromAminoMsg(object: DescriptorProto_ExtensionRangeAminoMsg): DescriptorProto_ExtensionRange; + fromProtoMsg(message: DescriptorProto_ExtensionRangeProtoMsg): DescriptorProto_ExtensionRange; + toProto(message: DescriptorProto_ExtensionRange): Uint8Array; + toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg; +}; +export declare const DescriptorProto_ReservedRange: { + typeUrl: string; + encode(message: DescriptorProto_ReservedRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange; + fromPartial(object: Partial): DescriptorProto_ReservedRange; + fromAmino(object: DescriptorProto_ReservedRangeAmino): DescriptorProto_ReservedRange; + toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino; + fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange; + fromProtoMsg(message: DescriptorProto_ReservedRangeProtoMsg): DescriptorProto_ReservedRange; + toProto(message: DescriptorProto_ReservedRange): Uint8Array; + toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg; +}; +export declare const ExtensionRangeOptions: { + typeUrl: string; + encode(message: ExtensionRangeOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions; + fromPartial(object: Partial): ExtensionRangeOptions; + fromAmino(object: ExtensionRangeOptionsAmino): ExtensionRangeOptions; + toAmino(message: ExtensionRangeOptions): ExtensionRangeOptionsAmino; + fromAminoMsg(object: ExtensionRangeOptionsAminoMsg): ExtensionRangeOptions; + fromProtoMsg(message: ExtensionRangeOptionsProtoMsg): ExtensionRangeOptions; + toProto(message: ExtensionRangeOptions): Uint8Array; + toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg; +}; +export declare const FieldDescriptorProto: { + typeUrl: string; + encode(message: FieldDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto; + fromPartial(object: Partial): FieldDescriptorProto; + fromAmino(object: FieldDescriptorProtoAmino): FieldDescriptorProto; + toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino; + fromAminoMsg(object: FieldDescriptorProtoAminoMsg): FieldDescriptorProto; + fromProtoMsg(message: FieldDescriptorProtoProtoMsg): FieldDescriptorProto; + toProto(message: FieldDescriptorProto): Uint8Array; + toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg; +}; +export declare const OneofDescriptorProto: { + typeUrl: string; + encode(message: OneofDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto; + fromPartial(object: Partial): OneofDescriptorProto; + fromAmino(object: OneofDescriptorProtoAmino): OneofDescriptorProto; + toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino; + fromAminoMsg(object: OneofDescriptorProtoAminoMsg): OneofDescriptorProto; + fromProtoMsg(message: OneofDescriptorProtoProtoMsg): OneofDescriptorProto; + toProto(message: OneofDescriptorProto): Uint8Array; + toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg; +}; +export declare const EnumDescriptorProto: { + typeUrl: string; + encode(message: EnumDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto; + fromPartial(object: Partial): EnumDescriptorProto; + fromAmino(object: EnumDescriptorProtoAmino): EnumDescriptorProto; + toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino; + fromAminoMsg(object: EnumDescriptorProtoAminoMsg): EnumDescriptorProto; + fromProtoMsg(message: EnumDescriptorProtoProtoMsg): EnumDescriptorProto; + toProto(message: EnumDescriptorProto): Uint8Array; + toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg; +}; +export declare const EnumDescriptorProto_EnumReservedRange: { + typeUrl: string; + encode(message: EnumDescriptorProto_EnumReservedRange, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; + fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange; + fromAmino(object: EnumDescriptorProto_EnumReservedRangeAmino): EnumDescriptorProto_EnumReservedRange; + toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino; + fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange; + fromProtoMsg(message: EnumDescriptorProto_EnumReservedRangeProtoMsg): EnumDescriptorProto_EnumReservedRange; + toProto(message: EnumDescriptorProto_EnumReservedRange): Uint8Array; + toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg; +}; +export declare const EnumValueDescriptorProto: { + typeUrl: string; + encode(message: EnumValueDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto; + fromPartial(object: Partial): EnumValueDescriptorProto; + fromAmino(object: EnumValueDescriptorProtoAmino): EnumValueDescriptorProto; + toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino; + fromAminoMsg(object: EnumValueDescriptorProtoAminoMsg): EnumValueDescriptorProto; + fromProtoMsg(message: EnumValueDescriptorProtoProtoMsg): EnumValueDescriptorProto; + toProto(message: EnumValueDescriptorProto): Uint8Array; + toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg; +}; +export declare const ServiceDescriptorProto: { + typeUrl: string; + encode(message: ServiceDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto; + fromPartial(object: Partial): ServiceDescriptorProto; + fromAmino(object: ServiceDescriptorProtoAmino): ServiceDescriptorProto; + toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino; + fromAminoMsg(object: ServiceDescriptorProtoAminoMsg): ServiceDescriptorProto; + fromProtoMsg(message: ServiceDescriptorProtoProtoMsg): ServiceDescriptorProto; + toProto(message: ServiceDescriptorProto): Uint8Array; + toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg; +}; +export declare const MethodDescriptorProto: { + typeUrl: string; + encode(message: MethodDescriptorProto, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto; + fromPartial(object: Partial): MethodDescriptorProto; + fromAmino(object: MethodDescriptorProtoAmino): MethodDescriptorProto; + toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino; + fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto; + fromProtoMsg(message: MethodDescriptorProtoProtoMsg): MethodDescriptorProto; + toProto(message: MethodDescriptorProto): Uint8Array; + toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg; +}; +export declare const FileOptions: { + typeUrl: string; + encode(message: FileOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FileOptions; + fromPartial(object: Partial): FileOptions; + fromAmino(object: FileOptionsAmino): FileOptions; + toAmino(message: FileOptions): FileOptionsAmino; + fromAminoMsg(object: FileOptionsAminoMsg): FileOptions; + fromProtoMsg(message: FileOptionsProtoMsg): FileOptions; + toProto(message: FileOptions): Uint8Array; + toProtoMsg(message: FileOptions): FileOptionsProtoMsg; +}; +export declare const MessageOptions: { + typeUrl: string; + encode(message: MessageOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions; + fromPartial(object: Partial): MessageOptions; + fromAmino(object: MessageOptionsAmino): MessageOptions; + toAmino(message: MessageOptions): MessageOptionsAmino; + fromAminoMsg(object: MessageOptionsAminoMsg): MessageOptions; + fromProtoMsg(message: MessageOptionsProtoMsg): MessageOptions; + toProto(message: MessageOptions): Uint8Array; + toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg; +}; +export declare const FieldOptions: { + typeUrl: string; + encode(message: FieldOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions; + fromPartial(object: Partial): FieldOptions; + fromAmino(object: FieldOptionsAmino): FieldOptions; + toAmino(message: FieldOptions): FieldOptionsAmino; + fromAminoMsg(object: FieldOptionsAminoMsg): FieldOptions; + fromProtoMsg(message: FieldOptionsProtoMsg): FieldOptions; + toProto(message: FieldOptions): Uint8Array; + toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg; +}; +export declare const OneofOptions: { + typeUrl: string; + encode(message: OneofOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions; + fromPartial(object: Partial): OneofOptions; + fromAmino(object: OneofOptionsAmino): OneofOptions; + toAmino(message: OneofOptions): OneofOptionsAmino; + fromAminoMsg(object: OneofOptionsAminoMsg): OneofOptions; + fromProtoMsg(message: OneofOptionsProtoMsg): OneofOptions; + toProto(message: OneofOptions): Uint8Array; + toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg; +}; +export declare const EnumOptions: { + typeUrl: string; + encode(message: EnumOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions; + fromPartial(object: Partial): EnumOptions; + fromAmino(object: EnumOptionsAmino): EnumOptions; + toAmino(message: EnumOptions): EnumOptionsAmino; + fromAminoMsg(object: EnumOptionsAminoMsg): EnumOptions; + fromProtoMsg(message: EnumOptionsProtoMsg): EnumOptions; + toProto(message: EnumOptions): Uint8Array; + toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg; +}; +export declare const EnumValueOptions: { + typeUrl: string; + encode(message: EnumValueOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions; + fromPartial(object: Partial): EnumValueOptions; + fromAmino(object: EnumValueOptionsAmino): EnumValueOptions; + toAmino(message: EnumValueOptions): EnumValueOptionsAmino; + fromAminoMsg(object: EnumValueOptionsAminoMsg): EnumValueOptions; + fromProtoMsg(message: EnumValueOptionsProtoMsg): EnumValueOptions; + toProto(message: EnumValueOptions): Uint8Array; + toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg; +}; +export declare const ServiceOptions: { + typeUrl: string; + encode(message: ServiceOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions; + fromPartial(object: Partial): ServiceOptions; + fromAmino(object: ServiceOptionsAmino): ServiceOptions; + toAmino(message: ServiceOptions): ServiceOptionsAmino; + fromAminoMsg(object: ServiceOptionsAminoMsg): ServiceOptions; + fromProtoMsg(message: ServiceOptionsProtoMsg): ServiceOptions; + toProto(message: ServiceOptions): Uint8Array; + toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg; +}; +export declare const MethodOptions: { + typeUrl: string; + encode(message: MethodOptions, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions; + fromPartial(object: Partial): MethodOptions; + fromAmino(object: MethodOptionsAmino): MethodOptions; + toAmino(message: MethodOptions): MethodOptionsAmino; + fromAminoMsg(object: MethodOptionsAminoMsg): MethodOptions; + fromProtoMsg(message: MethodOptionsProtoMsg): MethodOptions; + toProto(message: MethodOptions): Uint8Array; + toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg; +}; +export declare const UninterpretedOption: { + typeUrl: string; + encode(message: UninterpretedOption, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption; + fromPartial(object: Partial): UninterpretedOption; + fromAmino(object: UninterpretedOptionAmino): UninterpretedOption; + toAmino(message: UninterpretedOption): UninterpretedOptionAmino; + fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption; + fromProtoMsg(message: UninterpretedOptionProtoMsg): UninterpretedOption; + toProto(message: UninterpretedOption): Uint8Array; + toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg; +}; +export declare const UninterpretedOption_NamePart: { + typeUrl: string; + encode(message: UninterpretedOption_NamePart, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart; + fromPartial(object: Partial): UninterpretedOption_NamePart; + fromAmino(object: UninterpretedOption_NamePartAmino): UninterpretedOption_NamePart; + toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino; + fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart; + fromProtoMsg(message: UninterpretedOption_NamePartProtoMsg): UninterpretedOption_NamePart; + toProto(message: UninterpretedOption_NamePart): Uint8Array; + toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg; +}; +export declare const SourceCodeInfo: { + typeUrl: string; + encode(message: SourceCodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo; + fromPartial(object: Partial): SourceCodeInfo; + fromAmino(object: SourceCodeInfoAmino): SourceCodeInfo; + toAmino(message: SourceCodeInfo): SourceCodeInfoAmino; + fromAminoMsg(object: SourceCodeInfoAminoMsg): SourceCodeInfo; + fromProtoMsg(message: SourceCodeInfoProtoMsg): SourceCodeInfo; + toProto(message: SourceCodeInfo): Uint8Array; + toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg; +}; +export declare const SourceCodeInfo_Location: { + typeUrl: string; + encode(message: SourceCodeInfo_Location, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location; + fromPartial(object: Partial): SourceCodeInfo_Location; + fromAmino(object: SourceCodeInfo_LocationAmino): SourceCodeInfo_Location; + toAmino(message: SourceCodeInfo_Location): SourceCodeInfo_LocationAmino; + fromAminoMsg(object: SourceCodeInfo_LocationAminoMsg): SourceCodeInfo_Location; + fromProtoMsg(message: SourceCodeInfo_LocationProtoMsg): SourceCodeInfo_Location; + toProto(message: SourceCodeInfo_Location): Uint8Array; + toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg; +}; +export declare const GeneratedCodeInfo: { + typeUrl: string; + encode(message: GeneratedCodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo; + fromPartial(object: Partial): GeneratedCodeInfo; + fromAmino(object: GeneratedCodeInfoAmino): GeneratedCodeInfo; + toAmino(message: GeneratedCodeInfo): GeneratedCodeInfoAmino; + fromAminoMsg(object: GeneratedCodeInfoAminoMsg): GeneratedCodeInfo; + fromProtoMsg(message: GeneratedCodeInfoProtoMsg): GeneratedCodeInfo; + toProto(message: GeneratedCodeInfo): Uint8Array; + toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg; +}; +export declare const GeneratedCodeInfo_Annotation: { + typeUrl: string; + encode(message: GeneratedCodeInfo_Annotation, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; + fromPartial(object: Partial): GeneratedCodeInfo_Annotation; + fromAmino(object: GeneratedCodeInfo_AnnotationAmino): GeneratedCodeInfo_Annotation; + toAmino(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationAmino; + fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation; + fromProtoMsg(message: GeneratedCodeInfo_AnnotationProtoMsg): GeneratedCodeInfo_Annotation; + toProto(message: GeneratedCodeInfo_Annotation): Uint8Array; + toProtoMsg(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationProtoMsg; +}; diff --git a/packages/api/dist/google/protobuf/descriptor.js b/packages/api/dist/google/protobuf/descriptor.js new file mode 100644 index 00000000..736962d4 --- /dev/null +++ b/packages/api/dist/google/protobuf/descriptor.js @@ -0,0 +1,3406 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevelAmino = exports.MethodOptions_IdempotencyLevelSDKType = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSTypeAmino = exports.FieldOptions_JSTypeSDKType = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CTypeAmino = exports.FieldOptions_CTypeSDKType = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeModeAmino = exports.FileOptions_OptimizeModeSDKType = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_LabelAmino = exports.FieldDescriptorProto_LabelSDKType = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_TypeAmino = exports.FieldDescriptorProto_TypeSDKType = exports.FieldDescriptorProto_Type = void 0; +exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +var FieldDescriptorProto_Type; +(function (FieldDescriptorProto_Type) { + /** + * TYPE_DOUBLE - 0 is reserved for errors. + * Order is weird for historical reasons. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; + /** + * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; + /** + * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; + /** + * TYPE_GROUP - Tag-delimited aggregate. + * Group type is deprecated and not supported in proto3. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. + */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; + /** TYPE_BYTES - New in version 2. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; + /** TYPE_SINT32 - Uses ZigZag encoding. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; + /** TYPE_SINT64 - Uses ZigZag encoding. */ + FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; + FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {})); +exports.FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; +exports.FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; +function fieldDescriptorProto_TypeFromJSON(object) { + switch (object) { + case 1: + case "TYPE_DOUBLE": + return FieldDescriptorProto_Type.TYPE_DOUBLE; + case 2: + case "TYPE_FLOAT": + return FieldDescriptorProto_Type.TYPE_FLOAT; + case 3: + case "TYPE_INT64": + return FieldDescriptorProto_Type.TYPE_INT64; + case 4: + case "TYPE_UINT64": + return FieldDescriptorProto_Type.TYPE_UINT64; + case 5: + case "TYPE_INT32": + return FieldDescriptorProto_Type.TYPE_INT32; + case 6: + case "TYPE_FIXED64": + return FieldDescriptorProto_Type.TYPE_FIXED64; + case 7: + case "TYPE_FIXED32": + return FieldDescriptorProto_Type.TYPE_FIXED32; + case 8: + case "TYPE_BOOL": + return FieldDescriptorProto_Type.TYPE_BOOL; + case 9: + case "TYPE_STRING": + return FieldDescriptorProto_Type.TYPE_STRING; + case 10: + case "TYPE_GROUP": + return FieldDescriptorProto_Type.TYPE_GROUP; + case 11: + case "TYPE_MESSAGE": + return FieldDescriptorProto_Type.TYPE_MESSAGE; + case 12: + case "TYPE_BYTES": + return FieldDescriptorProto_Type.TYPE_BYTES; + case 13: + case "TYPE_UINT32": + return FieldDescriptorProto_Type.TYPE_UINT32; + case 14: + case "TYPE_ENUM": + return FieldDescriptorProto_Type.TYPE_ENUM; + case 15: + case "TYPE_SFIXED32": + return FieldDescriptorProto_Type.TYPE_SFIXED32; + case 16: + case "TYPE_SFIXED64": + return FieldDescriptorProto_Type.TYPE_SFIXED64; + case 17: + case "TYPE_SINT32": + return FieldDescriptorProto_Type.TYPE_SINT32; + case 18: + case "TYPE_SINT64": + return FieldDescriptorProto_Type.TYPE_SINT64; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Type.UNRECOGNIZED; + } +} +exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON; +function fieldDescriptorProto_TypeToJSON(object) { + switch (object) { + case FieldDescriptorProto_Type.TYPE_DOUBLE: + return "TYPE_DOUBLE"; + case FieldDescriptorProto_Type.TYPE_FLOAT: + return "TYPE_FLOAT"; + case FieldDescriptorProto_Type.TYPE_INT64: + return "TYPE_INT64"; + case FieldDescriptorProto_Type.TYPE_UINT64: + return "TYPE_UINT64"; + case FieldDescriptorProto_Type.TYPE_INT32: + return "TYPE_INT32"; + case FieldDescriptorProto_Type.TYPE_FIXED64: + return "TYPE_FIXED64"; + case FieldDescriptorProto_Type.TYPE_FIXED32: + return "TYPE_FIXED32"; + case FieldDescriptorProto_Type.TYPE_BOOL: + return "TYPE_BOOL"; + case FieldDescriptorProto_Type.TYPE_STRING: + return "TYPE_STRING"; + case FieldDescriptorProto_Type.TYPE_GROUP: + return "TYPE_GROUP"; + case FieldDescriptorProto_Type.TYPE_MESSAGE: + return "TYPE_MESSAGE"; + case FieldDescriptorProto_Type.TYPE_BYTES: + return "TYPE_BYTES"; + case FieldDescriptorProto_Type.TYPE_UINT32: + return "TYPE_UINT32"; + case FieldDescriptorProto_Type.TYPE_ENUM: + return "TYPE_ENUM"; + case FieldDescriptorProto_Type.TYPE_SFIXED32: + return "TYPE_SFIXED32"; + case FieldDescriptorProto_Type.TYPE_SFIXED64: + return "TYPE_SFIXED64"; + case FieldDescriptorProto_Type.TYPE_SINT32: + return "TYPE_SINT32"; + case FieldDescriptorProto_Type.TYPE_SINT64: + return "TYPE_SINT64"; + case FieldDescriptorProto_Type.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON; +var FieldDescriptorProto_Label; +(function (FieldDescriptorProto_Label) { + /** LABEL_OPTIONAL - 0 is reserved for errors */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; + FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {})); +exports.FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; +exports.FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; +function fieldDescriptorProto_LabelFromJSON(object) { + switch (object) { + case 1: + case "LABEL_OPTIONAL": + return FieldDescriptorProto_Label.LABEL_OPTIONAL; + case 2: + case "LABEL_REQUIRED": + return FieldDescriptorProto_Label.LABEL_REQUIRED; + case 3: + case "LABEL_REPEATED": + return FieldDescriptorProto_Label.LABEL_REPEATED; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Label.UNRECOGNIZED; + } +} +exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON; +function fieldDescriptorProto_LabelToJSON(object) { + switch (object) { + case FieldDescriptorProto_Label.LABEL_OPTIONAL: + return "LABEL_OPTIONAL"; + case FieldDescriptorProto_Label.LABEL_REQUIRED: + return "LABEL_REQUIRED"; + case FieldDescriptorProto_Label.LABEL_REPEATED: + return "LABEL_REPEATED"; + case FieldDescriptorProto_Label.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.fieldDescriptorProto_LabelToJSON = fieldDescriptorProto_LabelToJSON; +/** Generated classes can be optimized for speed or code size. */ +var FileOptions_OptimizeMode; +(function (FileOptions_OptimizeMode) { + /** + * SPEED - Generate complete code for parsing, serialization, + * etc. + */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; + /** CODE_SIZE - Use ReflectionOps to implement these methods. */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; + /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ + FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; + FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {})); +exports.FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; +exports.FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; +function fileOptions_OptimizeModeFromJSON(object) { + switch (object) { + case 1: + case "SPEED": + return FileOptions_OptimizeMode.SPEED; + case 2: + case "CODE_SIZE": + return FileOptions_OptimizeMode.CODE_SIZE; + case 3: + case "LITE_RUNTIME": + return FileOptions_OptimizeMode.LITE_RUNTIME; + case -1: + case "UNRECOGNIZED": + default: + return FileOptions_OptimizeMode.UNRECOGNIZED; + } +} +exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON; +function fileOptions_OptimizeModeToJSON(object) { + switch (object) { + case FileOptions_OptimizeMode.SPEED: + return "SPEED"; + case FileOptions_OptimizeMode.CODE_SIZE: + return "CODE_SIZE"; + case FileOptions_OptimizeMode.LITE_RUNTIME: + return "LITE_RUNTIME"; + case FileOptions_OptimizeMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON; +var FieldOptions_CType; +(function (FieldOptions_CType) { + /** STRING - Default mode. */ + FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; + FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; + FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; + FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {})); +exports.FieldOptions_CTypeSDKType = FieldOptions_CType; +exports.FieldOptions_CTypeAmino = FieldOptions_CType; +function fieldOptions_CTypeFromJSON(object) { + switch (object) { + case 0: + case "STRING": + return FieldOptions_CType.STRING; + case 1: + case "CORD": + return FieldOptions_CType.CORD; + case 2: + case "STRING_PIECE": + return FieldOptions_CType.STRING_PIECE; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_CType.UNRECOGNIZED; + } +} +exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON; +function fieldOptions_CTypeToJSON(object) { + switch (object) { + case FieldOptions_CType.STRING: + return "STRING"; + case FieldOptions_CType.CORD: + return "CORD"; + case FieldOptions_CType.STRING_PIECE: + return "STRING_PIECE"; + case FieldOptions_CType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON; +var FieldOptions_JSType; +(function (FieldOptions_JSType) { + /** JS_NORMAL - Use the default type. */ + FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; + /** JS_STRING - Use JavaScript strings. */ + FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; + /** JS_NUMBER - Use JavaScript numbers. */ + FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; + FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {})); +exports.FieldOptions_JSTypeSDKType = FieldOptions_JSType; +exports.FieldOptions_JSTypeAmino = FieldOptions_JSType; +function fieldOptions_JSTypeFromJSON(object) { + switch (object) { + case 0: + case "JS_NORMAL": + return FieldOptions_JSType.JS_NORMAL; + case 1: + case "JS_STRING": + return FieldOptions_JSType.JS_STRING; + case 2: + case "JS_NUMBER": + return FieldOptions_JSType.JS_NUMBER; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_JSType.UNRECOGNIZED; + } +} +exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON; +function fieldOptions_JSTypeToJSON(object) { + switch (object) { + case FieldOptions_JSType.JS_NORMAL: + return "JS_NORMAL"; + case FieldOptions_JSType.JS_STRING: + return "JS_STRING"; + case FieldOptions_JSType.JS_NUMBER: + return "JS_NUMBER"; + case FieldOptions_JSType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.fieldOptions_JSTypeToJSON = fieldOptions_JSTypeToJSON; +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + */ +var MethodOptions_IdempotencyLevel; +(function (MethodOptions_IdempotencyLevel) { + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; + /** NO_SIDE_EFFECTS - implies idempotent */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; + /** IDEMPOTENT - idempotent, but may have side effects */ + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; + MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {})); +exports.MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; +exports.MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; +function methodOptions_IdempotencyLevelFromJSON(object) { + switch (object) { + case 0: + case "IDEMPOTENCY_UNKNOWN": + return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; + case 1: + case "NO_SIDE_EFFECTS": + return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; + case 2: + case "IDEMPOTENT": + return MethodOptions_IdempotencyLevel.IDEMPOTENT; + case -1: + case "UNRECOGNIZED": + default: + return MethodOptions_IdempotencyLevel.UNRECOGNIZED; + } +} +exports.methodOptions_IdempotencyLevelFromJSON = methodOptions_IdempotencyLevelFromJSON; +function methodOptions_IdempotencyLevelToJSON(object) { + switch (object) { + case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: + return "IDEMPOTENCY_UNKNOWN"; + case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: + return "NO_SIDE_EFFECTS"; + case MethodOptions_IdempotencyLevel.IDEMPOTENT: + return "IDEMPOTENT"; + case MethodOptions_IdempotencyLevel.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON; +function createBaseFileDescriptorSet() { + return { + file: [] + }; +} +exports.FileDescriptorSet = { + typeUrl: "/google.protobuf.FileDescriptorSet", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.file) { + exports.FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.file.push(exports.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => exports.FileDescriptorProto.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => exports.FileDescriptorProto.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.file) { + obj.file = message.file.map(e => e ? exports.FileDescriptorProto.toAmino(e) : undefined); + } + else { + obj.file = message.file; + } + return obj; + }, + fromAminoMsg(object) { + return exports.FileDescriptorSet.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.FileDescriptorSet.decode(message.value); + }, + toProto(message) { + return exports.FileDescriptorSet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileDescriptorSet", + value: exports.FileDescriptorSet.encode(message).finish() + }; + } +}; +function createBaseFileDescriptorProto() { + return { + name: "", + package: "", + dependency: [], + publicDependency: [], + weakDependency: [], + messageType: [], + enumType: [], + service: [], + extension: [], + options: undefined, + sourceCodeInfo: undefined, + syntax: "" + }; +} +exports.FileDescriptorProto = { + typeUrl: "/google.protobuf.FileDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.package !== "") { + writer.uint32(18).string(message.package); + } + for (const v of message.dependency) { + writer.uint32(26).string(v); + } + writer.uint32(82).fork(); + for (const v of message.publicDependency) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(90).fork(); + for (const v of message.weakDependency) { + writer.int32(v); + } + writer.ldelim(); + for (const v of message.messageType) { + exports.DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.enumType) { + exports.EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.service) { + exports.ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.extension) { + exports.FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.options !== undefined) { + exports.FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + if (message.sourceCodeInfo !== undefined) { + exports.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); + } + if (message.syntax !== "") { + writer.uint32(98).string(message.syntax); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.package = reader.string(); + break; + case 3: + message.dependency.push(reader.string()); + break; + case 10: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.publicDependency.push(reader.int32()); + } + } + else { + message.publicDependency.push(reader.int32()); + } + break; + case 11: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.weakDependency.push(reader.int32()); + } + } + else { + message.weakDependency.push(reader.int32()); + } + break; + case 4: + message.messageType.push(exports.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.service.push(exports.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = exports.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = exports.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileDescriptorProto(); + message.name = object.name ?? ""; + message.package = object.package ?? ""; + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.publicDependency?.map(e => e) || []; + message.weakDependency = object.weakDependency?.map(e => e) || []; + message.messageType = object.messageType?.map(e => exports.DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => exports.EnumDescriptorProto.fromPartial(e)) || []; + message.service = object.service?.map(e => exports.ServiceDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? exports.FileOptions.fromPartial(object.options) : undefined; + message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? exports.SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; + message.syntax = object.syntax ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseFileDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.package !== undefined && object.package !== null) { + message.package = object.package; + } + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.public_dependency?.map(e => e) || []; + message.weakDependency = object.weak_dependency?.map(e => e) || []; + message.messageType = object.message_type?.map(e => exports.DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => exports.EnumDescriptorProto.fromAmino(e)) || []; + message.service = object.service?.map(e => exports.ServiceDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = exports.FileOptions.fromAmino(object.options); + } + if (object.source_code_info !== undefined && object.source_code_info !== null) { + message.sourceCodeInfo = exports.SourceCodeInfo.fromAmino(object.source_code_info); + } + if (object.syntax !== undefined && object.syntax !== null) { + message.syntax = object.syntax; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.package = message.package === "" ? undefined : message.package; + if (message.dependency) { + obj.dependency = message.dependency.map(e => e); + } + else { + obj.dependency = message.dependency; + } + if (message.publicDependency) { + obj.public_dependency = message.publicDependency.map(e => e); + } + else { + obj.public_dependency = message.publicDependency; + } + if (message.weakDependency) { + obj.weak_dependency = message.weakDependency.map(e => e); + } + else { + obj.weak_dependency = message.weakDependency; + } + if (message.messageType) { + obj.message_type = message.messageType.map(e => e ? exports.DescriptorProto.toAmino(e) : undefined); + } + else { + obj.message_type = message.messageType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? exports.EnumDescriptorProto.toAmino(e) : undefined); + } + else { + obj.enum_type = message.enumType; + } + if (message.service) { + obj.service = message.service.map(e => e ? exports.ServiceDescriptorProto.toAmino(e) : undefined); + } + else { + obj.service = message.service; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.extension = message.extension; + } + obj.options = message.options ? exports.FileOptions.toAmino(message.options) : undefined; + obj.source_code_info = message.sourceCodeInfo ? exports.SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; + obj.syntax = message.syntax === "" ? undefined : message.syntax; + return obj; + }, + fromAminoMsg(object) { + return exports.FileDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.FileDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.FileDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileDescriptorProto", + value: exports.FileDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto() { + return { + name: "", + field: [], + extension: [], + nestedType: [], + enumType: [], + extensionRange: [], + oneofDecl: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +exports.DescriptorProto = { + typeUrl: "/google.protobuf.DescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.field) { + exports.FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.extension) { + exports.FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.nestedType) { + exports.DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.enumType) { + exports.EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.extensionRange) { + exports.DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.oneofDecl) { + exports.OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim(); + } + if (message.options !== undefined) { + exports.MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.reservedRange) { + exports.DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(82).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.field.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.nestedType.push(exports.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.extensionRange.push(exports.DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + message.oneofDecl.push(exports.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = exports.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + message.reservedRange.push(exports.DescriptorProto_ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto(); + message.name = object.name ?? ""; + message.field = object.field?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; + message.nestedType = object.nestedType?.map(e => exports.DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => exports.EnumDescriptorProto.fromPartial(e)) || []; + message.extensionRange = object.extensionRange?.map(e => exports.DescriptorProto_ExtensionRange.fromPartial(e)) || []; + message.oneofDecl = object.oneofDecl?.map(e => exports.OneofDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? exports.MessageOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => exports.DescriptorProto_ReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.field = object.field?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; + message.nestedType = object.nested_type?.map(e => exports.DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => exports.EnumDescriptorProto.fromAmino(e)) || []; + message.extensionRange = object.extension_range?.map(e => exports.DescriptorProto_ExtensionRange.fromAmino(e)) || []; + message.oneofDecl = object.oneof_decl?.map(e => exports.OneofDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = exports.MessageOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => exports.DescriptorProto_ReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.field) { + obj.field = message.field.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.field = message.field; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); + } + else { + obj.extension = message.extension; + } + if (message.nestedType) { + obj.nested_type = message.nestedType.map(e => e ? exports.DescriptorProto.toAmino(e) : undefined); + } + else { + obj.nested_type = message.nestedType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? exports.EnumDescriptorProto.toAmino(e) : undefined); + } + else { + obj.enum_type = message.enumType; + } + if (message.extensionRange) { + obj.extension_range = message.extensionRange.map(e => e ? exports.DescriptorProto_ExtensionRange.toAmino(e) : undefined); + } + else { + obj.extension_range = message.extensionRange; + } + if (message.oneofDecl) { + obj.oneof_decl = message.oneofDecl.map(e => e ? exports.OneofDescriptorProto.toAmino(e) : undefined); + } + else { + obj.oneof_decl = message.oneofDecl; + } + obj.options = message.options ? exports.MessageOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? exports.DescriptorProto_ReservedRange.toAmino(e) : undefined); + } + else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } + else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object) { + return exports.DescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.DescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.DescriptorProto", + value: exports.DescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ExtensionRange() { + return { + start: 0, + end: 0, + options: undefined + }; +} +exports.DescriptorProto_ExtensionRange = { + typeUrl: "/google.protobuf.ExtensionRange", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + if (message.options !== undefined) { + exports.ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ExtensionRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = exports.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto_ExtensionRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + message.options = object.options !== undefined && object.options !== null ? exports.ExtensionRangeOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto_ExtensionRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + if (object.options !== undefined && object.options !== null) { + message.options = exports.ExtensionRangeOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + obj.options = message.options ? exports.ExtensionRangeOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DescriptorProto_ExtensionRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DescriptorProto_ExtensionRange.decode(message.value); + }, + toProto(message) { + return exports.DescriptorProto_ExtensionRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ExtensionRange", + value: exports.DescriptorProto_ExtensionRange.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ReservedRange() { + return { + start: 0, + end: 0 + }; +} +exports.DescriptorProto_ReservedRange = { + typeUrl: "/google.protobuf.ReservedRange", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDescriptorProto_ReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseDescriptorProto_ReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return exports.DescriptorProto_ReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DescriptorProto_ReservedRange.decode(message.value); + }, + toProto(message) { + return exports.DescriptorProto_ReservedRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ReservedRange", + value: exports.DescriptorProto_ReservedRange.encode(message).finish() + }; + } +}; +function createBaseExtensionRangeOptions() { + return { + uninterpretedOption: [] + }; +} +exports.ExtensionRangeOptions = { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtensionRangeOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ExtensionRangeOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ExtensionRangeOptions.decode(message.value); + }, + toProto(message) { + return exports.ExtensionRangeOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + value: exports.ExtensionRangeOptions.encode(message).finish() + }; + } +}; +function createBaseFieldDescriptorProto() { + return { + name: "", + number: 0, + label: 1, + type: 1, + typeName: "", + extendee: "", + defaultValue: "", + oneofIndex: 0, + jsonName: "", + options: undefined + }; +} +exports.FieldDescriptorProto = { + typeUrl: "/google.protobuf.FieldDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(24).int32(message.number); + } + if (message.label !== 1) { + writer.uint32(32).int32(message.label); + } + if (message.type !== 1) { + writer.uint32(40).int32(message.type); + } + if (message.typeName !== "") { + writer.uint32(50).string(message.typeName); + } + if (message.extendee !== "") { + writer.uint32(18).string(message.extendee); + } + if (message.defaultValue !== "") { + writer.uint32(58).string(message.defaultValue); + } + if (message.oneofIndex !== 0) { + writer.uint32(72).int32(message.oneofIndex); + } + if (message.jsonName !== "") { + writer.uint32(82).string(message.jsonName); + } + if (message.options !== undefined) { + exports.FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = exports.FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFieldDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.label = object.label ?? 1; + message.type = object.type ?? 1; + message.typeName = object.typeName ?? ""; + message.extendee = object.extendee ?? ""; + message.defaultValue = object.defaultValue ?? ""; + message.oneofIndex = object.oneofIndex ?? 0; + message.jsonName = object.jsonName ?? ""; + message.options = object.options !== undefined && object.options !== null ? exports.FieldOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseFieldDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.label !== undefined && object.label !== null) { + message.label = object.label; + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.type_name !== undefined && object.type_name !== null) { + message.typeName = object.type_name; + } + if (object.extendee !== undefined && object.extendee !== null) { + message.extendee = object.extendee; + } + if (object.default_value !== undefined && object.default_value !== null) { + message.defaultValue = object.default_value; + } + if (object.oneof_index !== undefined && object.oneof_index !== null) { + message.oneofIndex = object.oneof_index; + } + if (object.json_name !== undefined && object.json_name !== null) { + message.jsonName = object.json_name; + } + if (object.options !== undefined && object.options !== null) { + message.options = exports.FieldOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.label = message.label === 1 ? undefined : message.label; + obj.type = message.type === 1 ? undefined : message.type; + obj.type_name = message.typeName === "" ? undefined : message.typeName; + obj.extendee = message.extendee === "" ? undefined : message.extendee; + obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; + obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; + obj.json_name = message.jsonName === "" ? undefined : message.jsonName; + obj.options = message.options ? exports.FieldOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.FieldDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.FieldDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.FieldDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FieldDescriptorProto", + value: exports.FieldDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseOneofDescriptorProto() { + return { + name: "", + options: undefined + }; +} +exports.OneofDescriptorProto = { + typeUrl: "/google.protobuf.OneofDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.options !== undefined) { + exports.OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = exports.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOneofDescriptorProto(); + message.name = object.name ?? ""; + message.options = object.options !== undefined && object.options !== null ? exports.OneofOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseOneofDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.options !== undefined && object.options !== null) { + message.options = exports.OneofOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.options = message.options ? exports.OneofOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.OneofDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.OneofDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.OneofDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.OneofDescriptorProto", + value: exports.OneofDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto() { + return { + name: "", + value: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +exports.EnumDescriptorProto = { + typeUrl: "/google.protobuf.EnumDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.value) { + exports.EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + exports.EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.reservedRange) { + exports.EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(42).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.value.push(exports.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = exports.EnumOptions.decode(reader, reader.uint32()); + break; + case 4: + message.reservedRange.push(exports.EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); + break; + case 5: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumDescriptorProto(); + message.name = object.name ?? ""; + message.value = object.value?.map(e => exports.EnumValueDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? exports.EnumOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => exports.EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.value = object.value?.map(e => exports.EnumValueDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = exports.EnumOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => exports.EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.value) { + obj.value = message.value.map(e => e ? exports.EnumValueDescriptorProto.toAmino(e) : undefined); + } + else { + obj.value = message.value; + } + obj.options = message.options ? exports.EnumOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? exports.EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); + } + else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } + else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object) { + return exports.EnumDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EnumDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.EnumDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumDescriptorProto", + value: exports.EnumDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto_EnumReservedRange() { + return { + start: 0, + end: 0 + }; +} +exports.EnumDescriptorProto_EnumReservedRange = { + typeUrl: "/google.protobuf.EnumReservedRange", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return exports.EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EnumDescriptorProto_EnumReservedRange.decode(message.value); + }, + toProto(message) { + return exports.EnumDescriptorProto_EnumReservedRange.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumReservedRange", + value: exports.EnumDescriptorProto_EnumReservedRange.encode(message).finish() + }; + } +}; +function createBaseEnumValueDescriptorProto() { + return { + name: "", + number: 0, + options: undefined + }; +} +exports.EnumValueDescriptorProto = { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.options !== undefined) { + exports.EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = exports.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumValueDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.options = object.options !== undefined && object.options !== null ? exports.EnumValueOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEnumValueDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.options !== undefined && object.options !== null) { + message.options = exports.EnumValueOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.options = message.options ? exports.EnumValueOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EnumValueDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EnumValueDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.EnumValueDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + value: exports.EnumValueDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseServiceDescriptorProto() { + return { + name: "", + method: [], + options: undefined + }; +} +exports.ServiceDescriptorProto = { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.method) { + exports.MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + exports.ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.method.push(exports.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = exports.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseServiceDescriptorProto(); + message.name = object.name ?? ""; + message.method = object.method?.map(e => exports.MethodDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? exports.ServiceOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseServiceDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.method = object.method?.map(e => exports.MethodDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = exports.ServiceOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.method) { + obj.method = message.method.map(e => e ? exports.MethodDescriptorProto.toAmino(e) : undefined); + } + else { + obj.method = message.method; + } + obj.options = message.options ? exports.ServiceOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ServiceDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ServiceDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.ServiceDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + value: exports.ServiceDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseMethodDescriptorProto() { + return { + name: "", + inputType: "", + outputType: "", + options: undefined, + clientStreaming: false, + serverStreaming: false + }; +} +exports.MethodDescriptorProto = { + typeUrl: "/google.protobuf.MethodDescriptorProto", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.inputType !== "") { + writer.uint32(18).string(message.inputType); + } + if (message.outputType !== "") { + writer.uint32(26).string(message.outputType); + } + if (message.options !== undefined) { + exports.MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); + } + if (message.clientStreaming === true) { + writer.uint32(40).bool(message.clientStreaming); + } + if (message.serverStreaming === true) { + writer.uint32(48).bool(message.serverStreaming); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = exports.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMethodDescriptorProto(); + message.name = object.name ?? ""; + message.inputType = object.inputType ?? ""; + message.outputType = object.outputType ?? ""; + message.options = object.options !== undefined && object.options !== null ? exports.MethodOptions.fromPartial(object.options) : undefined; + message.clientStreaming = object.clientStreaming ?? false; + message.serverStreaming = object.serverStreaming ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMethodDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.input_type !== undefined && object.input_type !== null) { + message.inputType = object.input_type; + } + if (object.output_type !== undefined && object.output_type !== null) { + message.outputType = object.output_type; + } + if (object.options !== undefined && object.options !== null) { + message.options = exports.MethodOptions.fromAmino(object.options); + } + if (object.client_streaming !== undefined && object.client_streaming !== null) { + message.clientStreaming = object.client_streaming; + } + if (object.server_streaming !== undefined && object.server_streaming !== null) { + message.serverStreaming = object.server_streaming; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.input_type = message.inputType === "" ? undefined : message.inputType; + obj.output_type = message.outputType === "" ? undefined : message.outputType; + obj.options = message.options ? exports.MethodOptions.toAmino(message.options) : undefined; + obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; + obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; + return obj; + }, + fromAminoMsg(object) { + return exports.MethodDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MethodDescriptorProto.decode(message.value); + }, + toProto(message) { + return exports.MethodDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MethodDescriptorProto", + value: exports.MethodDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseFileOptions() { + return { + javaPackage: "", + javaOuterClassname: "", + javaMultipleFiles: false, + javaGenerateEqualsAndHash: false, + javaStringCheckUtf8: false, + optimizeFor: 1, + goPackage: "", + ccGenericServices: false, + javaGenericServices: false, + pyGenericServices: false, + phpGenericServices: false, + deprecated: false, + ccEnableArenas: false, + objcClassPrefix: "", + csharpNamespace: "", + swiftPrefix: "", + phpClassPrefix: "", + phpNamespace: "", + phpMetadataNamespace: "", + rubyPackage: "", + uninterpretedOption: [] + }; +} +exports.FileOptions = { + typeUrl: "/google.protobuf.FileOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.javaPackage !== "") { + writer.uint32(10).string(message.javaPackage); + } + if (message.javaOuterClassname !== "") { + writer.uint32(66).string(message.javaOuterClassname); + } + if (message.javaMultipleFiles === true) { + writer.uint32(80).bool(message.javaMultipleFiles); + } + if (message.javaGenerateEqualsAndHash === true) { + writer.uint32(160).bool(message.javaGenerateEqualsAndHash); + } + if (message.javaStringCheckUtf8 === true) { + writer.uint32(216).bool(message.javaStringCheckUtf8); + } + if (message.optimizeFor !== 1) { + writer.uint32(72).int32(message.optimizeFor); + } + if (message.goPackage !== "") { + writer.uint32(90).string(message.goPackage); + } + if (message.ccGenericServices === true) { + writer.uint32(128).bool(message.ccGenericServices); + } + if (message.javaGenericServices === true) { + writer.uint32(136).bool(message.javaGenericServices); + } + if (message.pyGenericServices === true) { + writer.uint32(144).bool(message.pyGenericServices); + } + if (message.phpGenericServices === true) { + writer.uint32(336).bool(message.phpGenericServices); + } + if (message.deprecated === true) { + writer.uint32(184).bool(message.deprecated); + } + if (message.ccEnableArenas === true) { + writer.uint32(248).bool(message.ccEnableArenas); + } + if (message.objcClassPrefix !== "") { + writer.uint32(290).string(message.objcClassPrefix); + } + if (message.csharpNamespace !== "") { + writer.uint32(298).string(message.csharpNamespace); + } + if (message.swiftPrefix !== "") { + writer.uint32(314).string(message.swiftPrefix); + } + if (message.phpClassPrefix !== "") { + writer.uint32(322).string(message.phpClassPrefix); + } + if (message.phpNamespace !== "") { + writer.uint32(330).string(message.phpNamespace); + } + if (message.phpMetadataNamespace !== "") { + writer.uint32(354).string(message.phpMetadataNamespace); + } + if (message.rubyPackage !== "") { + writer.uint32(362).string(message.rubyPackage); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFileOptions(); + message.javaPackage = object.javaPackage ?? ""; + message.javaOuterClassname = object.javaOuterClassname ?? ""; + message.javaMultipleFiles = object.javaMultipleFiles ?? false; + message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; + message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; + message.optimizeFor = object.optimizeFor ?? 1; + message.goPackage = object.goPackage ?? ""; + message.ccGenericServices = object.ccGenericServices ?? false; + message.javaGenericServices = object.javaGenericServices ?? false; + message.pyGenericServices = object.pyGenericServices ?? false; + message.phpGenericServices = object.phpGenericServices ?? false; + message.deprecated = object.deprecated ?? false; + message.ccEnableArenas = object.ccEnableArenas ?? false; + message.objcClassPrefix = object.objcClassPrefix ?? ""; + message.csharpNamespace = object.csharpNamespace ?? ""; + message.swiftPrefix = object.swiftPrefix ?? ""; + message.phpClassPrefix = object.phpClassPrefix ?? ""; + message.phpNamespace = object.phpNamespace ?? ""; + message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; + message.rubyPackage = object.rubyPackage ?? ""; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFileOptions(); + if (object.java_package !== undefined && object.java_package !== null) { + message.javaPackage = object.java_package; + } + if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { + message.javaOuterClassname = object.java_outer_classname; + } + if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { + message.javaMultipleFiles = object.java_multiple_files; + } + if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { + message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; + } + if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { + message.javaStringCheckUtf8 = object.java_string_check_utf8; + } + if (object.optimize_for !== undefined && object.optimize_for !== null) { + message.optimizeFor = object.optimize_for; + } + if (object.go_package !== undefined && object.go_package !== null) { + message.goPackage = object.go_package; + } + if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { + message.ccGenericServices = object.cc_generic_services; + } + if (object.java_generic_services !== undefined && object.java_generic_services !== null) { + message.javaGenericServices = object.java_generic_services; + } + if (object.py_generic_services !== undefined && object.py_generic_services !== null) { + message.pyGenericServices = object.py_generic_services; + } + if (object.php_generic_services !== undefined && object.php_generic_services !== null) { + message.phpGenericServices = object.php_generic_services; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { + message.ccEnableArenas = object.cc_enable_arenas; + } + if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { + message.objcClassPrefix = object.objc_class_prefix; + } + if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { + message.csharpNamespace = object.csharp_namespace; + } + if (object.swift_prefix !== undefined && object.swift_prefix !== null) { + message.swiftPrefix = object.swift_prefix; + } + if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { + message.phpClassPrefix = object.php_class_prefix; + } + if (object.php_namespace !== undefined && object.php_namespace !== null) { + message.phpNamespace = object.php_namespace; + } + if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { + message.phpMetadataNamespace = object.php_metadata_namespace; + } + if (object.ruby_package !== undefined && object.ruby_package !== null) { + message.rubyPackage = object.ruby_package; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; + obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; + obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; + obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; + obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; + obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; + obj.go_package = message.goPackage === "" ? undefined : message.goPackage; + obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; + obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; + obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; + obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; + obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; + obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; + obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; + obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; + obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; + obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; + obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.FileOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.FileOptions.decode(message.value); + }, + toProto(message) { + return exports.FileOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FileOptions", + value: exports.FileOptions.encode(message).finish() + }; + } +}; +function createBaseMessageOptions() { + return { + messageSetWireFormat: false, + noStandardDescriptorAccessor: false, + deprecated: false, + mapEntry: false, + uninterpretedOption: [] + }; +} +exports.MessageOptions = { + typeUrl: "/google.protobuf.MessageOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.messageSetWireFormat === true) { + writer.uint32(8).bool(message.messageSetWireFormat); + } + if (message.noStandardDescriptorAccessor === true) { + writer.uint32(16).bool(message.noStandardDescriptorAccessor); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.mapEntry === true) { + writer.uint32(56).bool(message.mapEntry); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMessageOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMessageOptions(); + message.messageSetWireFormat = object.messageSetWireFormat ?? false; + message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; + message.deprecated = object.deprecated ?? false; + message.mapEntry = object.mapEntry ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMessageOptions(); + if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { + message.messageSetWireFormat = object.message_set_wire_format; + } + if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { + message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.map_entry !== undefined && object.map_entry !== null) { + message.mapEntry = object.map_entry; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; + obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MessageOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MessageOptions.decode(message.value); + }, + toProto(message) { + return exports.MessageOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MessageOptions", + value: exports.MessageOptions.encode(message).finish() + }; + } +}; +function createBaseFieldOptions() { + return { + ctype: 1, + packed: false, + jstype: 1, + lazy: false, + deprecated: false, + weak: false, + uninterpretedOption: [] + }; +} +exports.FieldOptions = { + typeUrl: "/google.protobuf.FieldOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.ctype !== 1) { + writer.uint32(8).int32(message.ctype); + } + if (message.packed === true) { + writer.uint32(16).bool(message.packed); + } + if (message.jstype !== 1) { + writer.uint32(48).int32(message.jstype); + } + if (message.lazy === true) { + writer.uint32(40).bool(message.lazy); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.weak === true) { + writer.uint32(80).bool(message.weak); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseFieldOptions(); + message.ctype = object.ctype ?? 1; + message.packed = object.packed ?? false; + message.jstype = object.jstype ?? 1; + message.lazy = object.lazy ?? false; + message.deprecated = object.deprecated ?? false; + message.weak = object.weak ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseFieldOptions(); + if (object.ctype !== undefined && object.ctype !== null) { + message.ctype = object.ctype; + } + if (object.packed !== undefined && object.packed !== null) { + message.packed = object.packed; + } + if (object.jstype !== undefined && object.jstype !== null) { + message.jstype = object.jstype; + } + if (object.lazy !== undefined && object.lazy !== null) { + message.lazy = object.lazy; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.weak !== undefined && object.weak !== null) { + message.weak = object.weak; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.ctype = message.ctype === 1 ? undefined : message.ctype; + obj.packed = message.packed === false ? undefined : message.packed; + obj.jstype = message.jstype === 1 ? undefined : message.jstype; + obj.lazy = message.lazy === false ? undefined : message.lazy; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.weak = message.weak === false ? undefined : message.weak; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.FieldOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.FieldOptions.decode(message.value); + }, + toProto(message) { + return exports.FieldOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.FieldOptions", + value: exports.FieldOptions.encode(message).finish() + }; + } +}; +function createBaseOneofOptions() { + return { + uninterpretedOption: [] + }; +} +exports.OneofOptions = { + typeUrl: "/google.protobuf.OneofOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.OneofOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.OneofOptions.decode(message.value); + }, + toProto(message) { + return exports.OneofOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.OneofOptions", + value: exports.OneofOptions.encode(message).finish() + }; + } +}; +function createBaseEnumOptions() { + return { + allowAlias: false, + deprecated: false, + uninterpretedOption: [] + }; +} +exports.EnumOptions = { + typeUrl: "/google.protobuf.EnumOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.allowAlias === true) { + writer.uint32(16).bool(message.allowAlias); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumOptions(); + message.allowAlias = object.allowAlias ?? false; + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumOptions(); + if (object.allow_alias !== undefined && object.allow_alias !== null) { + message.allowAlias = object.allow_alias; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.EnumOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EnumOptions.decode(message.value); + }, + toProto(message) { + return exports.EnumOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumOptions", + value: exports.EnumOptions.encode(message).finish() + }; + } +}; +function createBaseEnumValueOptions() { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +exports.EnumValueOptions = { + typeUrl: "/google.protobuf.EnumValueOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(8).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEnumValueOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEnumValueOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.EnumValueOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EnumValueOptions.decode(message.value); + }, + toProto(message) { + return exports.EnumValueOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.EnumValueOptions", + value: exports.EnumValueOptions.encode(message).finish() + }; + } +}; +function createBaseServiceOptions() { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +exports.ServiceOptions = { + typeUrl: "/google.protobuf.ServiceOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseServiceOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseServiceOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ServiceOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ServiceOptions.decode(message.value); + }, + toProto(message) { + return exports.ServiceOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.ServiceOptions", + value: exports.ServiceOptions.encode(message).finish() + }; + } +}; +function createBaseMethodOptions() { + return { + deprecated: false, + idempotencyLevel: 1, + uninterpretedOption: [] + }; +} +exports.MethodOptions = { + typeUrl: "/google.protobuf.MethodOptions", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + if (message.idempotencyLevel !== 1) { + writer.uint32(272).int32(message.idempotencyLevel); + } + for (const v of message.uninterpretedOption) { + exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 34: + message.idempotencyLevel = reader.int32(); + break; + case 999: + message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMethodOptions(); + message.deprecated = object.deprecated ?? false; + message.idempotencyLevel = object.idempotencyLevel ?? 1; + message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMethodOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.idempotency_level !== undefined && object.idempotency_level !== null) { + message.idempotencyLevel = object.idempotency_level; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); + } + else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MethodOptions.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MethodOptions.decode(message.value); + }, + toProto(message) { + return exports.MethodOptions.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.MethodOptions", + value: exports.MethodOptions.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption() { + return { + name: [], + identifierValue: "", + positiveIntValue: BigInt(0), + negativeIntValue: BigInt(0), + doubleValue: 0, + stringValue: new Uint8Array(), + aggregateValue: "" + }; +} +exports.UninterpretedOption = { + typeUrl: "/google.protobuf.UninterpretedOption", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.name) { + exports.UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.identifierValue !== "") { + writer.uint32(26).string(message.identifierValue); + } + if (message.positiveIntValue !== BigInt(0)) { + writer.uint32(32).uint64(message.positiveIntValue); + } + if (message.negativeIntValue !== BigInt(0)) { + writer.uint32(40).int64(message.negativeIntValue); + } + if (message.doubleValue !== 0) { + writer.uint32(49).double(message.doubleValue); + } + if (message.stringValue.length !== 0) { + writer.uint32(58).bytes(message.stringValue); + } + if (message.aggregateValue !== "") { + writer.uint32(66).string(message.aggregateValue); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.name.push(exports.UninterpretedOption_NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => exports.UninterpretedOption_NamePart.fromPartial(e)) || []; + message.identifierValue = object.identifierValue ?? ""; + message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); + message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); + message.doubleValue = object.doubleValue ?? 0; + message.stringValue = object.stringValue ?? new Uint8Array(); + message.aggregateValue = object.aggregateValue ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => exports.UninterpretedOption_NamePart.fromAmino(e)) || []; + if (object.identifier_value !== undefined && object.identifier_value !== null) { + message.identifierValue = object.identifier_value; + } + if (object.positive_int_value !== undefined && object.positive_int_value !== null) { + message.positiveIntValue = BigInt(object.positive_int_value); + } + if (object.negative_int_value !== undefined && object.negative_int_value !== null) { + message.negativeIntValue = BigInt(object.negative_int_value); + } + if (object.double_value !== undefined && object.double_value !== null) { + message.doubleValue = object.double_value; + } + if (object.string_value !== undefined && object.string_value !== null) { + message.stringValue = (0, helpers_1.bytesFromBase64)(object.string_value); + } + if (object.aggregate_value !== undefined && object.aggregate_value !== null) { + message.aggregateValue = object.aggregate_value; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.name) { + obj.name = message.name.map(e => e ? exports.UninterpretedOption_NamePart.toAmino(e) : undefined); + } + else { + obj.name = message.name; + } + obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; + obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; + obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; + obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; + obj.string_value = message.stringValue ? (0, helpers_1.base64FromBytes)(message.stringValue) : undefined; + obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; + return obj; + }, + fromAminoMsg(object) { + return exports.UninterpretedOption.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.UninterpretedOption.decode(message.value); + }, + toProto(message) { + return exports.UninterpretedOption.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.UninterpretedOption", + value: exports.UninterpretedOption.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption_NamePart() { + return { + namePart: "", + isExtension: false + }; +} +exports.UninterpretedOption_NamePart = { + typeUrl: "/google.protobuf.NamePart", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.namePart !== "") { + writer.uint32(10).string(message.namePart); + } + if (message.isExtension === true) { + writer.uint32(16).bool(message.isExtension); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption_NamePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUninterpretedOption_NamePart(); + message.namePart = object.namePart ?? ""; + message.isExtension = object.isExtension ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseUninterpretedOption_NamePart(); + if (object.name_part !== undefined && object.name_part !== null) { + message.namePart = object.name_part; + } + if (object.is_extension !== undefined && object.is_extension !== null) { + message.isExtension = object.is_extension; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name_part = message.namePart === "" ? undefined : message.namePart; + obj.is_extension = message.isExtension === false ? undefined : message.isExtension; + return obj; + }, + fromAminoMsg(object) { + return exports.UninterpretedOption_NamePart.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.UninterpretedOption_NamePart.decode(message.value); + }, + toProto(message) { + return exports.UninterpretedOption_NamePart.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.NamePart", + value: exports.UninterpretedOption_NamePart.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo() { + return { + location: [] + }; +} +exports.SourceCodeInfo = { + typeUrl: "/google.protobuf.SourceCodeInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.location) { + exports.SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.location.push(exports.SourceCodeInfo_Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => exports.SourceCodeInfo_Location.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => exports.SourceCodeInfo_Location.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.location) { + obj.location = message.location.map(e => e ? exports.SourceCodeInfo_Location.toAmino(e) : undefined); + } + else { + obj.location = message.location; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SourceCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SourceCodeInfo.decode(message.value); + }, + toProto(message) { + return exports.SourceCodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.SourceCodeInfo", + value: exports.SourceCodeInfo.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo_Location() { + return { + path: [], + span: [], + leadingComments: "", + trailingComments: "", + leadingDetachedComments: [] + }; +} +exports.SourceCodeInfo_Location = { + typeUrl: "/google.protobuf.Location", + encode(message, writer = binary_1.BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(18).fork(); + for (const v of message.span) { + writer.int32(v); + } + writer.ldelim(); + if (message.leadingComments !== "") { + writer.uint32(26).string(message.leadingComments); + } + if (message.trailingComments !== "") { + writer.uint32(34).string(message.trailingComments); + } + for (const v of message.leadingDetachedComments) { + writer.uint32(50).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo_Location(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } + else { + message.path.push(reader.int32()); + } + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.span.push(reader.int32()); + } + } + else { + message.span.push(reader.int32()); + } + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + message.leadingComments = object.leadingComments ?? ""; + message.trailingComments = object.trailingComments ?? ""; + message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + if (object.leading_comments !== undefined && object.leading_comments !== null) { + message.leadingComments = object.leading_comments; + } + if (object.trailing_comments !== undefined && object.trailing_comments !== null) { + message.trailingComments = object.trailing_comments; + } + message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } + else { + obj.path = message.path; + } + if (message.span) { + obj.span = message.span.map(e => e); + } + else { + obj.span = message.span; + } + obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; + obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; + if (message.leadingDetachedComments) { + obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); + } + else { + obj.leading_detached_comments = message.leadingDetachedComments; + } + return obj; + }, + fromAminoMsg(object) { + return exports.SourceCodeInfo_Location.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SourceCodeInfo_Location.decode(message.value); + }, + toProto(message) { + return exports.SourceCodeInfo_Location.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Location", + value: exports.SourceCodeInfo_Location.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo() { + return { + annotation: [] + }; +} +exports.GeneratedCodeInfo = { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.annotation) { + exports.GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotation.push(exports.GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => exports.GeneratedCodeInfo_Annotation.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => exports.GeneratedCodeInfo_Annotation.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.annotation) { + obj.annotation = message.annotation.map(e => e ? exports.GeneratedCodeInfo_Annotation.toAmino(e) : undefined); + } + else { + obj.annotation = message.annotation; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GeneratedCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.GeneratedCodeInfo.decode(message.value); + }, + toProto(message) { + return exports.GeneratedCodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + value: exports.GeneratedCodeInfo.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo_Annotation() { + return { + path: [], + sourceFile: "", + begin: 0, + end: 0 + }; +} +exports.GeneratedCodeInfo_Annotation = { + typeUrl: "/google.protobuf.Annotation", + encode(message, writer = binary_1.BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + if (message.sourceFile !== "") { + writer.uint32(18).string(message.sourceFile); + } + if (message.begin !== 0) { + writer.uint32(24).int32(message.begin); + } + if (message.end !== 0) { + writer.uint32(32).int32(message.end); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo_Annotation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } + else { + message.path.push(reader.int32()); + } + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + message.sourceFile = object.sourceFile ?? ""; + message.begin = object.begin ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + if (object.source_file !== undefined && object.source_file !== null) { + message.sourceFile = object.source_file; + } + if (object.begin !== undefined && object.begin !== null) { + message.begin = object.begin; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } + else { + obj.path = message.path; + } + obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; + obj.begin = message.begin === 0 ? undefined : message.begin; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object) { + return exports.GeneratedCodeInfo_Annotation.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.GeneratedCodeInfo_Annotation.decode(message.value); + }, + toProto(message) { + return exports.GeneratedCodeInfo_Annotation.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Annotation", + value: exports.GeneratedCodeInfo_Annotation.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/google/protobuf/duration.d.ts b/packages/api/dist/google/protobuf/duration.d.ts new file mode 100644 index 00000000..64b0008c --- /dev/null +++ b/packages/api/dist/google/protobuf/duration.d.ts @@ -0,0 +1,223 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export interface Duration { + /** + * Signed seconds of the span of time. Must be from -315,576,000,000 + * to +315,576,000,000 inclusive. Note: these bounds are computed from: + * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + */ + seconds: bigint; + /** + * Signed fractions of a second at nanosecond resolution of the span + * of time. Durations less than one second are represented with a 0 + * `seconds` field and a positive or negative `nanos` field. For durations + * of one second or more, a non-zero value for the `nanos` field must be + * of the same sign as the `seconds` field. Must be from -999,999,999 + * to +999,999,999 inclusive. + */ + nanos: number; +} +export interface DurationProtoMsg { + typeUrl: "/google.protobuf.Duration"; + value: Uint8Array; +} +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export type DurationAmino = string; +export interface DurationAminoMsg { + type: "/google.protobuf.Duration"; + value: DurationAmino; +} +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export interface DurationSDKType { + seconds: bigint; + nanos: number; +} +export declare const Duration: { + typeUrl: string; + encode(message: Duration, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Duration; + fromPartial(object: Partial): Duration; + fromAmino(object: DurationAmino): Duration; + toAmino(message: Duration): DurationAmino; + fromAminoMsg(object: DurationAminoMsg): Duration; + fromProtoMsg(message: DurationProtoMsg): Duration; + toProto(message: Duration): Uint8Array; + toProtoMsg(message: Duration): DurationProtoMsg; +}; diff --git a/packages/api/dist/google/protobuf/duration.js b/packages/api/dist/google/protobuf/duration.js new file mode 100644 index 00000000..1ae855ed --- /dev/null +++ b/packages/api/dist/google/protobuf/duration.js @@ -0,0 +1,74 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Duration = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +function createBaseDuration() { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +exports.Duration = { + typeUrl: "/google.protobuf.Duration", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuration(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDuration(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object) { + const value = BigInt(object); + return { + seconds: value / BigInt("1000000000"), + nanos: Number(value % BigInt("1000000000")) + }; + }, + toAmino(message) { + return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); + }, + fromAminoMsg(object) { + return exports.Duration.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Duration.decode(message.value); + }, + toProto(message) { + return exports.Duration.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Duration", + value: exports.Duration.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/google/protobuf/timestamp.d.ts b/packages/api/dist/google/protobuf/timestamp.d.ts new file mode 100644 index 00000000..79f1d3e8 --- /dev/null +++ b/packages/api/dist/google/protobuf/timestamp.d.ts @@ -0,0 +1,293 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export interface Timestamp { + /** + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + */ + seconds: bigint; + /** + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + */ + nanos: number; +} +export interface TimestampProtoMsg { + typeUrl: "/google.protobuf.Timestamp"; + value: Uint8Array; +} +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export type TimestampAmino = string; +export interface TimestampAminoMsg { + type: "/google.protobuf.Timestamp"; + value: TimestampAmino; +} +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export interface TimestampSDKType { + seconds: bigint; + nanos: number; +} +export declare const Timestamp: { + typeUrl: string; + encode(message: Timestamp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Timestamp; + fromPartial(object: Partial): Timestamp; + fromAmino(object: TimestampAmino): Timestamp; + toAmino(message: Timestamp): TimestampAmino; + fromAminoMsg(object: TimestampAminoMsg): Timestamp; + fromProtoMsg(message: TimestampProtoMsg): Timestamp; + toProto(message: Timestamp): Uint8Array; + toProtoMsg(message: Timestamp): TimestampProtoMsg; +}; diff --git a/packages/api/dist/google/protobuf/timestamp.js b/packages/api/dist/google/protobuf/timestamp.js new file mode 100644 index 00000000..8852e382 --- /dev/null +++ b/packages/api/dist/google/protobuf/timestamp.js @@ -0,0 +1,71 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Timestamp = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBaseTimestamp() { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +exports.Timestamp = { + typeUrl: "/google.protobuf.Timestamp", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTimestamp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTimestamp(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object) { + return (0, helpers_1.fromJsonTimestamp)(object); + }, + toAmino(message) { + return (0, helpers_1.fromTimestamp)(message).toISOString().replace(/\.\d+Z$/, "Z"); + }, + fromAminoMsg(object) { + return exports.Timestamp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Timestamp.decode(message.value); + }, + toProto(message) { + return exports.Timestamp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/google.protobuf.Timestamp", + value: exports.Timestamp.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/helpers.d.ts b/packages/api/dist/helpers.d.ts new file mode 100644 index 00000000..39f0b29e --- /dev/null +++ b/packages/api/dist/helpers.d.ts @@ -0,0 +1,81 @@ +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +export declare function bytesFromBase64(b64: string): Uint8Array; +export declare function base64FromBytes(arr: Uint8Array): string; +export interface AminoHeight { + readonly revision_number?: string; + readonly revision_height?: string; +} +export declare function omitDefault(input: T): T | undefined; +interface Duration { + /** + * Signed seconds of the span of time. Must be from -315,576,000,000 + * to +315,576,000,000 inclusive. Note: these bounds are computed from: + * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + */ + seconds: bigint; + /** + * Signed fractions of a second at nanosecond resolution of the span + * of time. Durations less than one second are represented with a 0 + * `seconds` field and a positive or negative `nanos` field. For durations + * of one second or more, a non-zero value for the `nanos` field must be + * of the same sign as the `seconds` field. Must be from -999,999,999 + * to +999,999,999 inclusive. + */ + nanos: number; +} +export declare function toDuration(duration: string): Duration; +export declare function fromDuration(duration: Duration): string; +export declare function isSet(value: any): boolean; +export declare function isObject(value: any): boolean; +export interface PageRequest { + key: Uint8Array; + offset: bigint; + limit: bigint; + countTotal: boolean; + reverse: boolean; +} +export interface PageRequestParams { + 'pagination.key'?: string; + 'pagination.offset'?: string; + 'pagination.limit'?: string; + 'pagination.count_total'?: boolean; + 'pagination.reverse'?: boolean; +} +export interface Params { + params: PageRequestParams; +} +export declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params; +type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined; +export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { + [K in keyof T]?: DeepPartial; +} : Partial; +type KeysOfUnion = T extends T ? keyof T : never; +export type Exact = P extends Builtin ? P : P & { + [K in keyof P]: Exact; +} & Record>, never>; +export interface Rpc { + request(service: string, method: string, data: Uint8Array): Promise; +} +interface Timestamp { + /** + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + */ + seconds: bigint; + /** + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + */ + nanos: number; +} +export declare function toTimestamp(date: Date): Timestamp; +export declare function fromTimestamp(t: Timestamp): Date; +export declare function fromJsonTimestamp(o: any): Timestamp; +export {}; diff --git a/packages/api/dist/helpers.js b/packages/api/dist/helpers.js new file mode 100644 index 00000000..f70f2a79 --- /dev/null +++ b/packages/api/dist/helpers.js @@ -0,0 +1,140 @@ +"use strict"; +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fromJsonTimestamp = exports.fromTimestamp = exports.toTimestamp = exports.setPaginationParams = exports.isObject = exports.isSet = exports.fromDuration = exports.toDuration = exports.omitDefault = exports.base64FromBytes = exports.bytesFromBase64 = void 0; +var globalThis = (() => { + if (typeof globalThis !== 'undefined') + return globalThis; + if (typeof self !== 'undefined') + return self; + if (typeof window !== 'undefined') + return window; + if (typeof global !== 'undefined') + return global; + throw 'Unable to locate global object'; +})(); +const atob = globalThis.atob || + ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); +function bytesFromBase64(b64) { + const bin = atob(b64); + const arr = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; ++i) { + arr[i] = bin.charCodeAt(i); + } + return arr; +} +exports.bytesFromBase64 = bytesFromBase64; +const btoa = globalThis.btoa || + ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); +function base64FromBytes(arr) { + const bin = []; + arr.forEach((byte) => { + bin.push(String.fromCharCode(byte)); + }); + return btoa(bin.join('')); +} +exports.base64FromBytes = base64FromBytes; +function omitDefault(input) { + if (typeof input === 'string') { + return input === '' ? undefined : input; + } + if (typeof input === 'number') { + return input === 0 ? undefined : input; + } + if (typeof input === "boolean") { + return input === false ? undefined : input; + } + if (typeof input === 'bigint') { + return input === BigInt(0) ? undefined : input; + } + throw new Error(`Got unsupported type ${typeof input}`); +} +exports.omitDefault = omitDefault; +function toDuration(duration) { + return { + seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), + nanos: parseInt(duration) % 1000000000 + }; +} +exports.toDuration = toDuration; +function fromDuration(duration) { + return (parseInt(duration.seconds.toString()) * 1000000000 + + duration.nanos).toString(); +} +exports.fromDuration = fromDuration; +function isSet(value) { + return value !== null && value !== undefined; +} +exports.isSet = isSet; +function isObject(value) { + return typeof value === 'object' && value !== null; +} +exports.isObject = isObject; +const setPaginationParams = (options, pagination) => { + if (!pagination) { + return options; + } + if (typeof pagination?.countTotal !== 'undefined') { + options.params['pagination.count_total'] = pagination.countTotal; + } + if (typeof pagination?.key !== 'undefined') { + // String to Uint8Array + // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); + // Uint8Array to String + options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64'); + } + if (typeof pagination?.limit !== 'undefined') { + options.params['pagination.limit'] = pagination.limit.toString(); + } + if (typeof pagination?.offset !== 'undefined') { + options.params['pagination.offset'] = pagination.offset.toString(); + } + if (typeof pagination?.reverse !== 'undefined') { + options.params['pagination.reverse'] = pagination.reverse; + } + return options; +}; +exports.setPaginationParams = setPaginationParams; +function toTimestamp(date) { + const seconds = numberToLong(date.getTime() / 1000); + const nanos = (date.getTime() % 1000) * 1000000; + return { + seconds, + nanos + }; +} +exports.toTimestamp = toTimestamp; +function fromTimestamp(t) { + let millis = Number(t.seconds) * 1000; + millis += t.nanos / 1000000; + return new Date(millis); +} +exports.fromTimestamp = fromTimestamp; +const timestampFromJSON = (object) => { + return { + seconds: isSet(object.seconds) + ? BigInt(object.seconds.toString()) + : BigInt(0), + nanos: isSet(object.nanos) ? Number(object.nanos) : 0 + }; +}; +function fromJsonTimestamp(o) { + if (o instanceof Date) { + return toTimestamp(o); + } + else if (typeof o === 'string') { + return toTimestamp(new Date(o)); + } + else { + return timestampFromJSON(o); + } +} +exports.fromJsonTimestamp = fromJsonTimestamp; +function numberToLong(number) { + return BigInt(Math.trunc(number)); +} diff --git a/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts b/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts new file mode 100644 index 00000000..3903482d --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts @@ -0,0 +1,41 @@ +import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisState { + portId: string; + denomTraces: DenomTrace[]; + params: Params; +} +export interface GenesisStateProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisStateAmino { + port_id?: string; + denom_traces?: DenomTraceAmino[]; + params?: ParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisStateSDKType { + port_id: string; + denom_traces: DenomTraceSDKType[]; + params: ParamsSDKType; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/genesis.js b/packages/api/dist/ibc/applications/transfer/v1/genesis.js new file mode 100644 index 00000000..58737193 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/genesis.js @@ -0,0 +1,102 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenesisState = void 0; +//@ts-nocheck +const transfer_1 = require("./transfer"); +const binary_1 = require("../../../../binary"); +function createBaseGenesisState() { + return { + portId: "", + denomTraces: [], + params: transfer_1.Params.fromPartial({}) + }; +} +exports.GenesisState = { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + for (const v of message.denomTraces) { + transfer_1.DenomTrace.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.params !== undefined) { + transfer_1.Params.encode(message.params, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.denomTraces.push(transfer_1.DenomTrace.decode(reader, reader.uint32())); + break; + case 3: + message.params = transfer_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.portId = object.portId ?? ""; + message.denomTraces = object.denomTraces?.map(e => transfer_1.DenomTrace.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? transfer_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + message.denomTraces = object.denom_traces?.map(e => transfer_1.DenomTrace.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = transfer_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? transfer_1.DenomTrace.toAmino(e) : undefined); + } + else { + obj.denom_traces = message.denomTraces; + } + obj.params = message.params ? transfer_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.d.ts new file mode 100644 index 00000000..36038f87 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.d.ts @@ -0,0 +1,412 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequest { + /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ + hash: string; +} +export interface QueryDenomTraceRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; + value: Uint8Array; +} +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequestAmino { + /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ + hash?: string; +} +export interface QueryDenomTraceRequestAminoMsg { + type: "cosmos-sdk/QueryDenomTraceRequest"; + value: QueryDenomTraceRequestAmino; +} +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequestSDKType { + hash: string; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponse { + /** denom_trace returns the requested denomination trace information. */ + denomTrace?: DenomTrace; +} +export interface QueryDenomTraceResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; + value: Uint8Array; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponseAmino { + /** denom_trace returns the requested denomination trace information. */ + denom_trace?: DenomTraceAmino; +} +export interface QueryDenomTraceResponseAminoMsg { + type: "cosmos-sdk/QueryDenomTraceResponse"; + value: QueryDenomTraceResponseAmino; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponseSDKType { + denom_trace?: DenomTraceSDKType; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomTracesRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; + value: Uint8Array; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomTracesRequestAminoMsg { + type: "cosmos-sdk/QueryDenomTracesRequest"; + value: QueryDenomTracesRequestAmino; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponse { + /** denom_traces returns all denominations trace information. */ + denomTraces: DenomTrace[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomTracesResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; + value: Uint8Array; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponseAmino { + /** denom_traces returns all denominations trace information. */ + denom_traces?: DenomTraceAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomTracesResponseAminoMsg { + type: "cosmos-sdk/QueryDenomTracesResponse"; + value: QueryDenomTracesResponseAmino; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponseSDKType { + denom_traces: DenomTraceSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequest { + /** The denomination trace ([port_id]/[channel_id])+/[denom] */ + trace: string; +} +export interface QueryDenomHashRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest"; + value: Uint8Array; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequestAmino { + /** The denomination trace ([port_id]/[channel_id])+/[denom] */ + trace?: string; +} +export interface QueryDenomHashRequestAminoMsg { + type: "cosmos-sdk/QueryDenomHashRequest"; + value: QueryDenomHashRequestAmino; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequestSDKType { + trace: string; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponse { + /** hash (in hex format) of the denomination trace information. */ + hash: string; +} +export interface QueryDenomHashResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse"; + value: Uint8Array; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponseAmino { + /** hash (in hex format) of the denomination trace information. */ + hash?: string; +} +export interface QueryDenomHashResponseAminoMsg { + type: "cosmos-sdk/QueryDenomHashResponse"; + value: QueryDenomHashResponseAmino; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponseSDKType { + hash: string; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequest { + /** unique port identifier */ + portId: string; + /** unique channel identifier */ + channelId: string; +} +export interface QueryEscrowAddressRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest"; + value: Uint8Array; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequestAmino { + /** unique port identifier */ + port_id?: string; + /** unique channel identifier */ + channel_id?: string; +} +export interface QueryEscrowAddressRequestAminoMsg { + type: "cosmos-sdk/QueryEscrowAddressRequest"; + value: QueryEscrowAddressRequestAmino; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequestSDKType { + port_id: string; + channel_id: string; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponse { + /** the escrow account address */ + escrowAddress: string; +} +export interface QueryEscrowAddressResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse"; + value: Uint8Array; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponseAmino { + /** the escrow account address */ + escrow_address?: string; +} +export interface QueryEscrowAddressResponseAminoMsg { + type: "cosmos-sdk/QueryEscrowAddressResponse"; + value: QueryEscrowAddressResponseAmino; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponseSDKType { + escrow_address: string; +} +export declare const QueryDenomTraceRequest: { + typeUrl: string; + encode(message: QueryDenomTraceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest; + fromPartial(object: Partial): QueryDenomTraceRequest; + fromAmino(object: QueryDenomTraceRequestAmino): QueryDenomTraceRequest; + toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino; + fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest; + toAminoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestAminoMsg; + fromProtoMsg(message: QueryDenomTraceRequestProtoMsg): QueryDenomTraceRequest; + toProto(message: QueryDenomTraceRequest): Uint8Array; + toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg; +}; +export declare const QueryDenomTraceResponse: { + typeUrl: string; + encode(message: QueryDenomTraceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse; + fromPartial(object: Partial): QueryDenomTraceResponse; + fromAmino(object: QueryDenomTraceResponseAmino): QueryDenomTraceResponse; + toAmino(message: QueryDenomTraceResponse): QueryDenomTraceResponseAmino; + fromAminoMsg(object: QueryDenomTraceResponseAminoMsg): QueryDenomTraceResponse; + toAminoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseAminoMsg; + fromProtoMsg(message: QueryDenomTraceResponseProtoMsg): QueryDenomTraceResponse; + toProto(message: QueryDenomTraceResponse): Uint8Array; + toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg; +}; +export declare const QueryDenomTracesRequest: { + typeUrl: string; + encode(message: QueryDenomTracesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest; + fromPartial(object: Partial): QueryDenomTracesRequest; + fromAmino(object: QueryDenomTracesRequestAmino): QueryDenomTracesRequest; + toAmino(message: QueryDenomTracesRequest): QueryDenomTracesRequestAmino; + fromAminoMsg(object: QueryDenomTracesRequestAminoMsg): QueryDenomTracesRequest; + toAminoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestAminoMsg; + fromProtoMsg(message: QueryDenomTracesRequestProtoMsg): QueryDenomTracesRequest; + toProto(message: QueryDenomTracesRequest): Uint8Array; + toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg; +}; +export declare const QueryDenomTracesResponse: { + typeUrl: string; + encode(message: QueryDenomTracesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse; + fromPartial(object: Partial): QueryDenomTracesResponse; + fromAmino(object: QueryDenomTracesResponseAmino): QueryDenomTracesResponse; + toAmino(message: QueryDenomTracesResponse): QueryDenomTracesResponseAmino; + fromAminoMsg(object: QueryDenomTracesResponseAminoMsg): QueryDenomTracesResponse; + toAminoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseAminoMsg; + fromProtoMsg(message: QueryDenomTracesResponseProtoMsg): QueryDenomTracesResponse; + toProto(message: QueryDenomTracesResponse): Uint8Array; + toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryDenomHashRequest: { + typeUrl: string; + encode(message: QueryDenomHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest; + fromPartial(object: Partial): QueryDenomHashRequest; + fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest; + toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino; + fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest; + toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg; + fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest; + toProto(message: QueryDenomHashRequest): Uint8Array; + toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg; +}; +export declare const QueryDenomHashResponse: { + typeUrl: string; + encode(message: QueryDenomHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse; + fromPartial(object: Partial): QueryDenomHashResponse; + fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse; + toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino; + fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse; + toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg; + fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse; + toProto(message: QueryDenomHashResponse): Uint8Array; + toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg; +}; +export declare const QueryEscrowAddressRequest: { + typeUrl: string; + encode(message: QueryEscrowAddressRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest; + fromPartial(object: Partial): QueryEscrowAddressRequest; + fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest; + toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino; + fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest; + toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg; + fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest; + toProto(message: QueryEscrowAddressRequest): Uint8Array; + toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg; +}; +export declare const QueryEscrowAddressResponse: { + typeUrl: string; + encode(message: QueryEscrowAddressResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse; + fromPartial(object: Partial): QueryEscrowAddressResponse; + fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse; + toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino; + fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse; + toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg; + fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse; + toProto(message: QueryEscrowAddressResponse): Uint8Array; + toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.js b/packages/api/dist/ibc/applications/transfer/v1/query.js new file mode 100644 index 00000000..90e17d5e --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.js @@ -0,0 +1,711 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryEscrowAddressResponse = exports.QueryEscrowAddressRequest = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); +const transfer_1 = require("./transfer"); +const binary_1 = require("../../../../binary"); +function createBaseQueryDenomTraceRequest() { + return { + hash: "" + }; +} +exports.QueryDenomTraceRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTraceRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTraceRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomTraceRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTraceRequest", + value: exports.QueryDenomTraceRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomTraceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomTraceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + value: exports.QueryDenomTraceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTraceResponse() { + return { + denomTrace: undefined + }; +} +exports.QueryDenomTraceResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denomTrace !== undefined) { + transfer_1.DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTrace = transfer_1.DenomTrace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTraceResponse(); + message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? transfer_1.DenomTrace.fromPartial(object.denomTrace) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTraceResponse(); + if (object.denom_trace !== undefined && object.denom_trace !== null) { + message.denomTrace = transfer_1.DenomTrace.fromAmino(object.denom_trace); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom_trace = message.denomTrace ? transfer_1.DenomTrace.toAmino(message.denomTrace) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomTraceResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTraceResponse", + value: exports.QueryDenomTraceResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomTraceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomTraceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + value: exports.QueryDenomTraceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesRequest() { + return { + pagination: undefined + }; +} +exports.QueryDenomTracesRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTracesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTracesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomTracesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTracesRequest", + value: exports.QueryDenomTracesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomTracesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomTracesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + value: exports.QueryDenomTracesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesResponse() { + return { + denomTraces: [], + pagination: undefined + }; +} +exports.QueryDenomTracesResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.denomTraces) { + transfer_1.DenomTrace.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTraces.push(transfer_1.DenomTrace.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denomTraces?.map(e => transfer_1.DenomTrace.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denom_traces?.map(e => transfer_1.DenomTrace.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? transfer_1.DenomTrace.toAmino(e) : undefined); + } + else { + obj.denom_traces = message.denomTraces; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomTracesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomTracesResponse", + value: exports.QueryDenomTracesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomTracesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomTracesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + value: exports.QueryDenomTracesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: exports.QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +exports.QueryParamsResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + transfer_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = transfer_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? transfer_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = transfer_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? transfer_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: exports.QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashRequest() { + return { + trace: "" + }; +} +exports.QueryDenomHashRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.trace !== "") { + writer.uint32(10).string(message.trace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomHashRequest(); + message.trace = object.trace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomHashRequest(); + if (object.trace !== undefined && object.trace !== null) { + message.trace = object.trace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.trace = message.trace === "" ? undefined : message.trace; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomHashRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomHashRequest", + value: exports.QueryDenomHashRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomHashRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + value: exports.QueryDenomHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashResponse() { + return { + hash: "" + }; +} +exports.QueryDenomHashResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryDenomHashResponse(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryDenomHashResponse(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryDenomHashResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryDenomHashResponse", + value: exports.QueryDenomHashResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryDenomHashResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryDenomHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + value: exports.QueryDenomHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressRequest() { + return { + portId: "", + channelId: "" + }; +} +exports.QueryEscrowAddressRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + if (message.channelId !== "") { + writer.uint32(18).string(message.channelId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.channelId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryEscrowAddressRequest(); + message.portId = object.portId ?? ""; + message.channelId = object.channelId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryEscrowAddressRequest(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + if (object.channel_id !== undefined && object.channel_id !== null) { + message.channelId = object.channel_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryEscrowAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryEscrowAddressRequest", + value: exports.QueryEscrowAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryEscrowAddressRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryEscrowAddressRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + value: exports.QueryEscrowAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressResponse() { + return { + escrowAddress: "" + }; +} +exports.QueryEscrowAddressResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.escrowAddress !== "") { + writer.uint32(10).string(message.escrowAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.escrowAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryEscrowAddressResponse(); + message.escrowAddress = object.escrowAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryEscrowAddressResponse(); + if (object.escrow_address !== undefined && object.escrow_address !== null) { + message.escrowAddress = object.escrow_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryEscrowAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryEscrowAddressResponse", + value: exports.QueryEscrowAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryEscrowAddressResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryEscrowAddressResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + value: exports.QueryEscrowAddressResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts new file mode 100644 index 00000000..8c8ba879 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts @@ -0,0 +1,13 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + denomTrace(params: QueryDenomTraceRequest): Promise; + denomTraces(params?: QueryDenomTracesRequest): Promise; + params(_params?: QueryParamsRequest): Promise; + denomHash(params: QueryDenomHashRequest): Promise; + escrowAddress(params: QueryEscrowAddressRequest): Promise; +} diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js new file mode 100644 index 00000000..faa1922a --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js @@ -0,0 +1,50 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + /* DenomTrace queries a denomination trace information. */ + async denomTrace(params) { + const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; + return await this.req.get(endpoint); + } + /* DenomTraces queries all denomination traces. */ + async denomTraces(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `ibc/apps/transfer/v1/denom_traces`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the ibc-transfer module. */ + async params(_params = {}) { + const endpoint = `ibc/apps/transfer/v1/params`; + return await this.req.get(endpoint); + } + /* DenomHash queries a denomination hash information. */ + async denomHash(params) { + const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; + return await this.req.get(endpoint); + } + /* EscrowAddress returns the escrow address for a particular port and channel id. */ + async escrowAddress(params) { + const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..3df3adea --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts @@ -0,0 +1,32 @@ +import { Rpc } from "../../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** DenomTrace queries a denomination trace information. */ + denomTrace(request: QueryDenomTraceRequest): Promise; + /** DenomTraces queries all denomination traces. */ + denomTraces(request?: QueryDenomTracesRequest): Promise; + /** Params queries all parameters of the ibc-transfer module. */ + params(request?: QueryParamsRequest): Promise; + /** DenomHash queries a denomination hash information. */ + denomHash(request: QueryDenomHashRequest): Promise; + /** EscrowAddress returns the escrow address for a particular port and channel id. */ + escrowAddress(request: QueryEscrowAddressRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + denomTrace(request: QueryDenomTraceRequest): Promise; + denomTraces(request?: QueryDenomTracesRequest): Promise; + params(request?: QueryParamsRequest): Promise; + denomHash(request: QueryDenomHashRequest): Promise; + escrowAddress(request: QueryEscrowAddressRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + denomTrace(request: QueryDenomTraceRequest): Promise; + denomTraces(request?: QueryDenomTracesRequest): Promise; + params(request?: QueryParamsRequest): Promise; + denomHash(request: QueryDenomHashRequest): Promise; + escrowAddress(request: QueryEscrowAddressRequest): Promise; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js new file mode 100644 index 00000000..fba67d5c --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + denomTrace(request) { + const data = query_1.QueryDenomTraceRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); + return promise.then(data => query_1.QueryDenomTraceResponse.decode(new binary_1.BinaryReader(data))); + } + denomTraces(request = { + pagination: undefined + }) { + const data = query_1.QueryDenomTracesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); + return promise.then(data => query_1.QueryDenomTracesResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + denomHash(request) { + const data = query_1.QueryDenomHashRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); + return promise.then(data => query_1.QueryDenomHashResponse.decode(new binary_1.BinaryReader(data))); + } + escrowAddress(request) { + const data = query_1.QueryEscrowAddressRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); + return promise.then(data => query_1.QueryEscrowAddressResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + denomTrace(request) { + return queryService.denomTrace(request); + }, + denomTraces(request) { + return queryService.denomTraces(request); + }, + params(request) { + return queryService.params(request); + }, + denomHash(request) { + return queryService.denomHash(request); + }, + escrowAddress(request) { + return queryService.escrowAddress(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts b/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts new file mode 100644 index 00000000..003c479e --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts @@ -0,0 +1,123 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTrace { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path: string; + /** base denomination of the relayed fungible token. */ + baseDenom: string; +} +export interface DenomTraceProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; + value: Uint8Array; +} +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTraceAmino { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; +} +export interface DenomTraceAminoMsg { + type: "cosmos-sdk/DenomTrace"; + value: DenomTraceAmino; +} +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTraceSDKType { + path: string; + base_denom: string; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface Params { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + sendEnabled: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receiveEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.Params"; + value: Uint8Array; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface ParamsAmino { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface ParamsSDKType { + send_enabled: boolean; + receive_enabled: boolean; +} +export declare const DenomTrace: { + typeUrl: string; + encode(message: DenomTrace, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace; + fromPartial(object: Partial): DenomTrace; + fromAmino(object: DenomTraceAmino): DenomTrace; + toAmino(message: DenomTrace): DenomTraceAmino; + fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace; + toAminoMsg(message: DenomTrace): DenomTraceAminoMsg; + fromProtoMsg(message: DenomTraceProtoMsg): DenomTrace; + toProto(message: DenomTrace): Uint8Array; + toProtoMsg(message: DenomTrace): DenomTraceProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/transfer.js b/packages/api/dist/ibc/applications/transfer/v1/transfer.js new file mode 100644 index 00000000..2195dcde --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/transfer.js @@ -0,0 +1,167 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.DenomTrace = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseDenomTrace() { + return { + path: "", + baseDenom: "" + }; +} +exports.DenomTrace = { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.path !== "") { + writer.uint32(10).string(message.path); + } + if (message.baseDenom !== "") { + writer.uint32(18).string(message.baseDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomTrace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = reader.string(); + break; + case 2: + message.baseDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDenomTrace(); + message.path = object.path ?? ""; + message.baseDenom = object.baseDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDenomTrace(); + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.base_denom !== undefined && object.base_denom !== null) { + message.baseDenom = object.base_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.path = message.path === "" ? undefined : message.path; + obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.DenomTrace.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/DenomTrace", + value: exports.DenomTrace.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.DenomTrace.decode(message.value); + }, + toProto(message) { + return exports.DenomTrace.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + value: exports.DenomTrace.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + sendEnabled: false, + receiveEnabled: false + }; +} +exports.Params = { + typeUrl: "/ibc.applications.transfer.v1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sendEnabled === true) { + writer.uint32(8).bool(message.sendEnabled); + } + if (message.receiveEnabled === true) { + writer.uint32(16).bool(message.receiveEnabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled = reader.bool(); + break; + case 2: + message.receiveEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled ?? false; + message.receiveEnabled = object.receiveEnabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + if (object.send_enabled !== undefined && object.send_enabled !== null) { + message.sendEnabled = object.send_enabled; + } + if (object.receive_enabled !== undefined && object.receive_enabled !== null) { + message.receiveEnabled = object.receive_enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; + obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts new file mode 100644 index 00000000..7bd64477 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts @@ -0,0 +1,8 @@ +import { MsgTransfer } from "./tx"; +export declare const AminoConverter: { + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: string; + toAmino: (message: MsgTransfer) => import("./tx").MsgTransferAmino; + fromAmino: (object: import("./tx").MsgTransferAmino) => MsgTransfer; + }; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js new file mode 100644 index 00000000..0ecec267 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: "cosmos-sdk/MsgTransfer", + toAmino: tx_1.MsgTransfer.toAmino, + fromAmino: tx_1.MsgTransfer.fromAmino + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts new file mode 100644 index 00000000..f6b7f228 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts @@ -0,0 +1,122 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransfer { + /** the port on which the packet will be sent */ + sourcePort: string; + /** the channel by which the packet will be sent */ + sourceChannel: string; + /** the tokens to be transferred */ + token: Coin; + /** the sender address */ + sender: string; + /** the recipient address on the destination chain */ + receiver: string; + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + */ + timeoutHeight: Height; + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + */ + timeoutTimestamp: bigint; +} +export interface MsgTransferProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; + value: Uint8Array; +} +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransferAmino { + /** the port on which the packet will be sent */ + source_port?: string; + /** the channel by which the packet will be sent */ + source_channel?: string; + /** the tokens to be transferred */ + token?: CoinAmino; + /** the sender address */ + sender?: string; + /** the recipient address on the destination chain */ + receiver?: string; + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + */ + timeout_height?: HeightAmino; + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + */ + timeout_timestamp?: string; +} +export interface MsgTransferAminoMsg { + type: "cosmos-sdk/MsgTransfer"; + value: MsgTransferAmino; +} +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransferSDKType { + source_port: string; + source_channel: string; + token: CoinSDKType; + sender: string; + receiver: string; + timeout_height: HeightSDKType; + timeout_timestamp: bigint; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponse { +} +export interface MsgTransferResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; + value: Uint8Array; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponseAmino { +} +export interface MsgTransferResponseAminoMsg { + type: "cosmos-sdk/MsgTransferResponse"; + value: MsgTransferResponseAmino; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponseSDKType { +} +export declare const MsgTransfer: { + typeUrl: string; + encode(message: MsgTransfer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer; + fromPartial(object: Partial): MsgTransfer; + fromAmino(object: MsgTransferAmino): MsgTransfer; + toAmino(message: MsgTransfer): MsgTransferAmino; + fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer; + toAminoMsg(message: MsgTransfer): MsgTransferAminoMsg; + fromProtoMsg(message: MsgTransferProtoMsg): MsgTransfer; + toProto(message: MsgTransfer): Uint8Array; + toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg; +}; +export declare const MsgTransferResponse: { + typeUrl: string; + encode(_: MsgTransferResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse; + fromPartial(_: Partial): MsgTransferResponse; + fromAmino(_: MsgTransferResponseAmino): MsgTransferResponse; + toAmino(_: MsgTransferResponse): MsgTransferResponseAmino; + fromAminoMsg(object: MsgTransferResponseAminoMsg): MsgTransferResponse; + toAminoMsg(message: MsgTransferResponse): MsgTransferResponseAminoMsg; + fromProtoMsg(message: MsgTransferResponseProtoMsg): MsgTransferResponse; + toProto(message: MsgTransferResponse): Uint8Array; + toProtoMsg(message: MsgTransferResponse): MsgTransferResponseProtoMsg; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.js b/packages/api/dist/ibc/applications/transfer/v1/tx.js new file mode 100644 index 00000000..d08c30c9 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.js @@ -0,0 +1,204 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgTransferResponse = exports.MsgTransfer = void 0; +//@ts-nocheck +const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); +const client_1 = require("../../../core/client/v1/client"); +const binary_1 = require("../../../../binary"); +function createBaseMsgTransfer() { + return { + sourcePort: "", + sourceChannel: "", + token: coin_1.Coin.fromPartial({}), + sender: "", + receiver: "", + timeoutHeight: client_1.Height.fromPartial({}), + timeoutTimestamp: BigInt(0) + }; +} +exports.MsgTransfer = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sourcePort !== "") { + writer.uint32(10).string(message.sourcePort); + } + if (message.sourceChannel !== "") { + writer.uint32(18).string(message.sourceChannel); + } + if (message.token !== undefined) { + coin_1.Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); + } + if (message.sender !== "") { + writer.uint32(34).string(message.sender); + } + if (message.receiver !== "") { + writer.uint32(42).string(message.receiver); + } + if (message.timeoutHeight !== undefined) { + client_1.Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); + } + if (message.timeoutTimestamp !== BigInt(0)) { + writer.uint32(56).uint64(message.timeoutTimestamp); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sourcePort = reader.string(); + break; + case 2: + message.sourceChannel = reader.string(); + break; + case 3: + message.token = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.sender = reader.string(); + break; + case 5: + message.receiver = reader.string(); + break; + case 6: + message.timeoutHeight = client_1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.timeoutTimestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTransfer(); + message.sourcePort = object.sourcePort ?? ""; + message.sourceChannel = object.sourceChannel ?? ""; + message.token = object.token !== undefined && object.token !== null ? coin_1.Coin.fromPartial(object.token) : undefined; + message.sender = object.sender ?? ""; + message.receiver = object.receiver ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? client_1.Height.fromPartial(object.timeoutHeight) : undefined; + message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgTransfer(); + if (object.source_port !== undefined && object.source_port !== null) { + message.sourcePort = object.source_port; + } + if (object.source_channel !== undefined && object.source_channel !== null) { + message.sourceChannel = object.source_channel; + } + if (object.token !== undefined && object.token !== null) { + message.token = coin_1.Coin.fromAmino(object.token); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.receiver !== undefined && object.receiver !== null) { + message.receiver = object.receiver; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = client_1.Height.fromAmino(object.timeout_height); + } + if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { + message.timeoutTimestamp = BigInt(object.timeout_timestamp); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; + obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; + obj.token = message.token ? coin_1.Coin.toAmino(message.token) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.receiver = message.receiver === "" ? undefined : message.receiver; + obj.timeout_height = message.timeoutHeight ? client_1.Height.toAmino(message.timeoutHeight) : {}; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgTransfer.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgTransfer", + value: exports.MsgTransfer.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgTransfer.decode(message.value); + }, + toProto(message) { + return exports.MsgTransfer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: exports.MsgTransfer.encode(message).finish() + }; + } +}; +function createBaseMsgTransferResponse() { + return {}; +} +exports.MsgTransferResponse = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransferResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgTransferResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgTransferResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgTransferResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgTransferResponse", + value: exports.MsgTransferResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgTransferResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgTransferResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + value: exports.MsgTransferResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts new file mode 100644 index 00000000..c4e84a0d --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts @@ -0,0 +1,24 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgTransfer } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + transfer(value: MsgTransfer): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + transfer(value: MsgTransfer): { + typeUrl: string; + value: MsgTransfer; + }; + }; + fromPartial: { + transfer(value: MsgTransfer): { + typeUrl: string; + value: MsgTransfer; + }; + }; +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js new file mode 100644 index 00000000..8fc71908 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/ibc.applications.transfer.v1.MsgTransfer", tx_1.MsgTransfer]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: tx_1.MsgTransfer.encode(value).finish() + }; + } + }, + withTypeUrl: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value + }; + } + }, + fromPartial: { + transfer(value) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: tx_1.MsgTransfer.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..d000d7b5 --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts @@ -0,0 +1,12 @@ +import { Rpc } from "../../../../helpers"; +import { MsgTransfer, MsgTransferResponse } from "./tx"; +/** Msg defines the ibc/transfer Msg service. */ +export interface Msg { + /** Transfer defines a rpc handler method for MsgTransfer. */ + transfer(request: MsgTransfer): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + transfer(request: MsgTransfer): Promise; +} diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js new file mode 100644 index 00000000..53cca1ce --- /dev/null +++ b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.transfer = this.transfer.bind(this); + } + transfer(request) { + const data = tx_1.MsgTransfer.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); + return promise.then(data => tx_1.MsgTransferResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/ibc/bundle.d.ts b/packages/api/dist/ibc/bundle.d.ts new file mode 100644 index 00000000..4fb51139 --- /dev/null +++ b/packages/api/dist/ibc/bundle.d.ts @@ -0,0 +1,1114 @@ +import * as _68 from "./applications/transfer/v1/genesis"; +import * as _69 from "./applications/transfer/v1/query"; +import * as _70 from "./applications/transfer/v1/transfer"; +import * as _71 from "./applications/transfer/v1/tx"; +import * as _72 from "./core/client/v1/client"; +import * as _73 from "./core/client/v1/genesis"; +import * as _74 from "./core/client/v1/query"; +import * as _75 from "./core/client/v1/tx"; +import * as _181 from "./applications/transfer/v1/query.lcd"; +import * as _182 from "./core/client/v1/query.lcd"; +import * as _183 from "./applications/transfer/v1/query.rpc.Query"; +import * as _184 from "./core/client/v1/query.rpc.Query"; +import * as _185 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _186 from "./core/client/v1/tx.rpc.msg"; +export declare namespace ibc { + namespace applications { + namespace transfer { + const v1: { + MsgClientImpl: typeof _185.MsgClientImpl; + QueryClientImpl: typeof _183.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + denomTrace(request: _69.QueryDenomTraceRequest): Promise<_69.QueryDenomTraceResponse>; + denomTraces(request?: _69.QueryDenomTracesRequest): Promise<_69.QueryDenomTracesResponse>; + params(request?: _69.QueryParamsRequest): Promise<_69.QueryParamsResponse>; + denomHash(request: _69.QueryDenomHashRequest): Promise<_69.QueryDenomHashResponse>; + escrowAddress(request: _69.QueryEscrowAddressRequest): Promise<_69.QueryEscrowAddressResponse>; + }; + LCDQueryClient: typeof _181.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + transfer(value: _71.MsgTransfer): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + transfer(value: _71.MsgTransfer): { + typeUrl: string; + value: _71.MsgTransfer; + }; + }; + fromPartial: { + transfer(value: _71.MsgTransfer): { + typeUrl: string; + value: _71.MsgTransfer; + }; + }; + }; + AminoConverter: { + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: string; + toAmino: (message: _71.MsgTransfer) => _71.MsgTransferAmino; + fromAmino: (object: _71.MsgTransferAmino) => _71.MsgTransfer; + }; + }; + MsgTransfer: { + typeUrl: string; + encode(message: _71.MsgTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _71.MsgTransfer; + fromPartial(object: Partial<_71.MsgTransfer>): _71.MsgTransfer; + fromAmino(object: _71.MsgTransferAmino): _71.MsgTransfer; + toAmino(message: _71.MsgTransfer): _71.MsgTransferAmino; + fromAminoMsg(object: _71.MsgTransferAminoMsg): _71.MsgTransfer; + toAminoMsg(message: _71.MsgTransfer): _71.MsgTransferAminoMsg; + fromProtoMsg(message: _71.MsgTransferProtoMsg): _71.MsgTransfer; + toProto(message: _71.MsgTransfer): Uint8Array; + toProtoMsg(message: _71.MsgTransfer): _71.MsgTransferProtoMsg; + }; + MsgTransferResponse: { + typeUrl: string; + encode(_: _71.MsgTransferResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _71.MsgTransferResponse; + fromPartial(_: Partial<_71.MsgTransferResponse>): _71.MsgTransferResponse; + fromAmino(_: _71.MsgTransferResponseAmino): _71.MsgTransferResponse; + toAmino(_: _71.MsgTransferResponse): _71.MsgTransferResponseAmino; + fromAminoMsg(object: _71.MsgTransferResponseAminoMsg): _71.MsgTransferResponse; + toAminoMsg(message: _71.MsgTransferResponse): _71.MsgTransferResponseAminoMsg; + fromProtoMsg(message: _71.MsgTransferResponseProtoMsg): _71.MsgTransferResponse; + toProto(message: _71.MsgTransferResponse): Uint8Array; + toProtoMsg(message: _71.MsgTransferResponse): _71.MsgTransferResponseProtoMsg; + }; + DenomTrace: { + typeUrl: string; + encode(message: _70.DenomTrace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _70.DenomTrace; + fromPartial(object: Partial<_70.DenomTrace>): _70.DenomTrace; + fromAmino(object: _70.DenomTraceAmino): _70.DenomTrace; + toAmino(message: _70.DenomTrace): _70.DenomTraceAmino; + fromAminoMsg(object: _70.DenomTraceAminoMsg): _70.DenomTrace; + toAminoMsg(message: _70.DenomTrace): _70.DenomTraceAminoMsg; + fromProtoMsg(message: _70.DenomTraceProtoMsg): _70.DenomTrace; + toProto(message: _70.DenomTrace): Uint8Array; + toProtoMsg(message: _70.DenomTrace): _70.DenomTraceProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _70.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _70.Params; + fromPartial(object: Partial<_70.Params>): _70.Params; + fromAmino(object: _70.ParamsAmino): _70.Params; + toAmino(message: _70.Params): _70.ParamsAmino; + fromAminoMsg(object: _70.ParamsAminoMsg): _70.Params; + toAminoMsg(message: _70.Params): _70.ParamsAminoMsg; + fromProtoMsg(message: _70.ParamsProtoMsg): _70.Params; + toProto(message: _70.Params): Uint8Array; + toProtoMsg(message: _70.Params): _70.ParamsProtoMsg; + }; + QueryDenomTraceRequest: { + typeUrl: string; + encode(message: _69.QueryDenomTraceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTraceRequest; + fromPartial(object: Partial<_69.QueryDenomTraceRequest>): _69.QueryDenomTraceRequest; + fromAmino(object: _69.QueryDenomTraceRequestAmino): _69.QueryDenomTraceRequest; + toAmino(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestAmino; + fromAminoMsg(object: _69.QueryDenomTraceRequestAminoMsg): _69.QueryDenomTraceRequest; + toAminoMsg(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestAminoMsg; + fromProtoMsg(message: _69.QueryDenomTraceRequestProtoMsg): _69.QueryDenomTraceRequest; + toProto(message: _69.QueryDenomTraceRequest): Uint8Array; + toProtoMsg(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestProtoMsg; + }; + QueryDenomTraceResponse: { + typeUrl: string; + encode(message: _69.QueryDenomTraceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTraceResponse; + fromPartial(object: Partial<_69.QueryDenomTraceResponse>): _69.QueryDenomTraceResponse; + fromAmino(object: _69.QueryDenomTraceResponseAmino): _69.QueryDenomTraceResponse; + toAmino(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseAmino; + fromAminoMsg(object: _69.QueryDenomTraceResponseAminoMsg): _69.QueryDenomTraceResponse; + toAminoMsg(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseAminoMsg; + fromProtoMsg(message: _69.QueryDenomTraceResponseProtoMsg): _69.QueryDenomTraceResponse; + toProto(message: _69.QueryDenomTraceResponse): Uint8Array; + toProtoMsg(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseProtoMsg; + }; + QueryDenomTracesRequest: { + typeUrl: string; + encode(message: _69.QueryDenomTracesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTracesRequest; + fromPartial(object: Partial<_69.QueryDenomTracesRequest>): _69.QueryDenomTracesRequest; + fromAmino(object: _69.QueryDenomTracesRequestAmino): _69.QueryDenomTracesRequest; + toAmino(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestAmino; + fromAminoMsg(object: _69.QueryDenomTracesRequestAminoMsg): _69.QueryDenomTracesRequest; + toAminoMsg(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestAminoMsg; + fromProtoMsg(message: _69.QueryDenomTracesRequestProtoMsg): _69.QueryDenomTracesRequest; + toProto(message: _69.QueryDenomTracesRequest): Uint8Array; + toProtoMsg(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestProtoMsg; + }; + QueryDenomTracesResponse: { + typeUrl: string; + encode(message: _69.QueryDenomTracesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTracesResponse; + fromPartial(object: Partial<_69.QueryDenomTracesResponse>): _69.QueryDenomTracesResponse; + fromAmino(object: _69.QueryDenomTracesResponseAmino): _69.QueryDenomTracesResponse; + toAmino(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseAmino; + fromAminoMsg(object: _69.QueryDenomTracesResponseAminoMsg): _69.QueryDenomTracesResponse; + toAminoMsg(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseAminoMsg; + fromProtoMsg(message: _69.QueryDenomTracesResponseProtoMsg): _69.QueryDenomTracesResponse; + toProto(message: _69.QueryDenomTracesResponse): Uint8Array; + toProtoMsg(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _69.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryParamsRequest; + fromPartial(_: Partial<_69.QueryParamsRequest>): _69.QueryParamsRequest; + fromAmino(_: _69.QueryParamsRequestAmino): _69.QueryParamsRequest; + toAmino(_: _69.QueryParamsRequest): _69.QueryParamsRequestAmino; + fromAminoMsg(object: _69.QueryParamsRequestAminoMsg): _69.QueryParamsRequest; + toAminoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestAminoMsg; + fromProtoMsg(message: _69.QueryParamsRequestProtoMsg): _69.QueryParamsRequest; + toProto(message: _69.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _69.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryParamsResponse; + fromPartial(object: Partial<_69.QueryParamsResponse>): _69.QueryParamsResponse; + fromAmino(object: _69.QueryParamsResponseAmino): _69.QueryParamsResponse; + toAmino(message: _69.QueryParamsResponse): _69.QueryParamsResponseAmino; + fromAminoMsg(object: _69.QueryParamsResponseAminoMsg): _69.QueryParamsResponse; + toAminoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseAminoMsg; + fromProtoMsg(message: _69.QueryParamsResponseProtoMsg): _69.QueryParamsResponse; + toProto(message: _69.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseProtoMsg; + }; + QueryDenomHashRequest: { + typeUrl: string; + encode(message: _69.QueryDenomHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomHashRequest; + fromPartial(object: Partial<_69.QueryDenomHashRequest>): _69.QueryDenomHashRequest; + fromAmino(object: _69.QueryDenomHashRequestAmino): _69.QueryDenomHashRequest; + toAmino(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestAmino; + fromAminoMsg(object: _69.QueryDenomHashRequestAminoMsg): _69.QueryDenomHashRequest; + toAminoMsg(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestAminoMsg; + fromProtoMsg(message: _69.QueryDenomHashRequestProtoMsg): _69.QueryDenomHashRequest; + toProto(message: _69.QueryDenomHashRequest): Uint8Array; + toProtoMsg(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestProtoMsg; + }; + QueryDenomHashResponse: { + typeUrl: string; + encode(message: _69.QueryDenomHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomHashResponse; + fromPartial(object: Partial<_69.QueryDenomHashResponse>): _69.QueryDenomHashResponse; + fromAmino(object: _69.QueryDenomHashResponseAmino): _69.QueryDenomHashResponse; + toAmino(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseAmino; + fromAminoMsg(object: _69.QueryDenomHashResponseAminoMsg): _69.QueryDenomHashResponse; + toAminoMsg(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseAminoMsg; + fromProtoMsg(message: _69.QueryDenomHashResponseProtoMsg): _69.QueryDenomHashResponse; + toProto(message: _69.QueryDenomHashResponse): Uint8Array; + toProtoMsg(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseProtoMsg; + }; + QueryEscrowAddressRequest: { + typeUrl: string; + encode(message: _69.QueryEscrowAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryEscrowAddressRequest; + fromPartial(object: Partial<_69.QueryEscrowAddressRequest>): _69.QueryEscrowAddressRequest; + fromAmino(object: _69.QueryEscrowAddressRequestAmino): _69.QueryEscrowAddressRequest; + toAmino(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestAmino; + fromAminoMsg(object: _69.QueryEscrowAddressRequestAminoMsg): _69.QueryEscrowAddressRequest; + toAminoMsg(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestAminoMsg; + fromProtoMsg(message: _69.QueryEscrowAddressRequestProtoMsg): _69.QueryEscrowAddressRequest; + toProto(message: _69.QueryEscrowAddressRequest): Uint8Array; + toProtoMsg(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestProtoMsg; + }; + QueryEscrowAddressResponse: { + typeUrl: string; + encode(message: _69.QueryEscrowAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryEscrowAddressResponse; + fromPartial(object: Partial<_69.QueryEscrowAddressResponse>): _69.QueryEscrowAddressResponse; + fromAmino(object: _69.QueryEscrowAddressResponseAmino): _69.QueryEscrowAddressResponse; + toAmino(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseAmino; + fromAminoMsg(object: _69.QueryEscrowAddressResponseAminoMsg): _69.QueryEscrowAddressResponse; + toAminoMsg(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseAminoMsg; + fromProtoMsg(message: _69.QueryEscrowAddressResponseProtoMsg): _69.QueryEscrowAddressResponse; + toProto(message: _69.QueryEscrowAddressResponse): Uint8Array; + toProtoMsg(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _68.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _68.GenesisState; + fromPartial(object: Partial<_68.GenesisState>): _68.GenesisState; + fromAmino(object: _68.GenesisStateAmino): _68.GenesisState; + toAmino(message: _68.GenesisState): _68.GenesisStateAmino; + fromAminoMsg(object: _68.GenesisStateAminoMsg): _68.GenesisState; + toAminoMsg(message: _68.GenesisState): _68.GenesisStateAminoMsg; + fromProtoMsg(message: _68.GenesisStateProtoMsg): _68.GenesisState; + toProto(message: _68.GenesisState): Uint8Array; + toProtoMsg(message: _68.GenesisState): _68.GenesisStateProtoMsg; + }; + }; + } + } + namespace core { + namespace client { + const v1: { + MsgClientImpl: typeof _186.MsgClientImpl; + QueryClientImpl: typeof _184.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + clientState(request: _74.QueryClientStateRequest): Promise<_74.QueryClientStateResponse>; + clientStates(request?: _74.QueryClientStatesRequest): Promise<_74.QueryClientStatesResponse>; + consensusState(request: _74.QueryConsensusStateRequest): Promise<_74.QueryConsensusStateResponse>; + consensusStates(request: _74.QueryConsensusStatesRequest): Promise<_74.QueryConsensusStatesResponse>; + consensusStateHeights(request: _74.QueryConsensusStateHeightsRequest): Promise<_74.QueryConsensusStateHeightsResponse>; + clientStatus(request: _74.QueryClientStatusRequest): Promise<_74.QueryClientStatusResponse>; + clientParams(request?: _74.QueryClientParamsRequest): Promise<_74.QueryClientParamsResponse>; + upgradedClientState(request?: _74.QueryUpgradedClientStateRequest): Promise<_74.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _74.QueryUpgradedConsensusStateRequest): Promise<_74.QueryUpgradedConsensusStateResponse>; + }; + LCDQueryClient: typeof _182.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createClient(value: _75.MsgCreateClient): { + typeUrl: string; + value: Uint8Array; + }; + updateClient(value: _75.MsgUpdateClient): { + typeUrl: string; + value: Uint8Array; + }; + upgradeClient(value: _75.MsgUpgradeClient): { + typeUrl: string; + value: Uint8Array; + }; + submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClient(value: _75.MsgCreateClient): { + typeUrl: string; + value: _75.MsgCreateClient; + }; + updateClient(value: _75.MsgUpdateClient): { + typeUrl: string; + value: _75.MsgUpdateClient; + }; + upgradeClient(value: _75.MsgUpgradeClient): { + typeUrl: string; + value: _75.MsgUpgradeClient; + }; + submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { + typeUrl: string; + value: _75.MsgSubmitMisbehaviour; + }; + }; + fromPartial: { + createClient(value: _75.MsgCreateClient): { + typeUrl: string; + value: _75.MsgCreateClient; + }; + updateClient(value: _75.MsgUpdateClient): { + typeUrl: string; + value: _75.MsgUpdateClient; + }; + upgradeClient(value: _75.MsgUpgradeClient): { + typeUrl: string; + value: _75.MsgUpgradeClient; + }; + submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { + typeUrl: string; + value: _75.MsgSubmitMisbehaviour; + }; + }; + }; + AminoConverter: { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: string; + toAmino: (message: _75.MsgCreateClient) => _75.MsgCreateClientAmino; + fromAmino: (object: _75.MsgCreateClientAmino) => _75.MsgCreateClient; + }; + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: string; + toAmino: (message: _75.MsgUpdateClient) => _75.MsgUpdateClientAmino; + fromAmino: (object: _75.MsgUpdateClientAmino) => _75.MsgUpdateClient; + }; + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: string; + toAmino: (message: _75.MsgUpgradeClient) => _75.MsgUpgradeClientAmino; + fromAmino: (object: _75.MsgUpgradeClientAmino) => _75.MsgUpgradeClient; + }; + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: string; + toAmino: (message: _75.MsgSubmitMisbehaviour) => _75.MsgSubmitMisbehaviourAmino; + fromAmino: (object: _75.MsgSubmitMisbehaviourAmino) => _75.MsgSubmitMisbehaviour; + }; + }; + MsgCreateClient: { + typeUrl: string; + encode(message: _75.MsgCreateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgCreateClient; + fromPartial(object: Partial<_75.MsgCreateClient>): _75.MsgCreateClient; + fromAmino(object: _75.MsgCreateClientAmino): _75.MsgCreateClient; + toAmino(message: _75.MsgCreateClient): _75.MsgCreateClientAmino; + fromAminoMsg(object: _75.MsgCreateClientAminoMsg): _75.MsgCreateClient; + toAminoMsg(message: _75.MsgCreateClient): _75.MsgCreateClientAminoMsg; + fromProtoMsg(message: _75.MsgCreateClientProtoMsg): _75.MsgCreateClient; + toProto(message: _75.MsgCreateClient): Uint8Array; + toProtoMsg(message: _75.MsgCreateClient): _75.MsgCreateClientProtoMsg; + }; + MsgCreateClientResponse: { + typeUrl: string; + encode(_: _75.MsgCreateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgCreateClientResponse; + fromPartial(_: Partial<_75.MsgCreateClientResponse>): _75.MsgCreateClientResponse; + fromAmino(_: _75.MsgCreateClientResponseAmino): _75.MsgCreateClientResponse; + toAmino(_: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseAmino; + fromAminoMsg(object: _75.MsgCreateClientResponseAminoMsg): _75.MsgCreateClientResponse; + toAminoMsg(message: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseAminoMsg; + fromProtoMsg(message: _75.MsgCreateClientResponseProtoMsg): _75.MsgCreateClientResponse; + toProto(message: _75.MsgCreateClientResponse): Uint8Array; + toProtoMsg(message: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseProtoMsg; + }; + MsgUpdateClient: { + typeUrl: string; + encode(message: _75.MsgUpdateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpdateClient; + fromPartial(object: Partial<_75.MsgUpdateClient>): _75.MsgUpdateClient; + fromAmino(object: _75.MsgUpdateClientAmino): _75.MsgUpdateClient; + toAmino(message: _75.MsgUpdateClient): _75.MsgUpdateClientAmino; + fromAminoMsg(object: _75.MsgUpdateClientAminoMsg): _75.MsgUpdateClient; + toAminoMsg(message: _75.MsgUpdateClient): _75.MsgUpdateClientAminoMsg; + fromProtoMsg(message: _75.MsgUpdateClientProtoMsg): _75.MsgUpdateClient; + toProto(message: _75.MsgUpdateClient): Uint8Array; + toProtoMsg(message: _75.MsgUpdateClient): _75.MsgUpdateClientProtoMsg; + }; + MsgUpdateClientResponse: { + typeUrl: string; + encode(_: _75.MsgUpdateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpdateClientResponse; + fromPartial(_: Partial<_75.MsgUpdateClientResponse>): _75.MsgUpdateClientResponse; + fromAmino(_: _75.MsgUpdateClientResponseAmino): _75.MsgUpdateClientResponse; + toAmino(_: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseAmino; + fromAminoMsg(object: _75.MsgUpdateClientResponseAminoMsg): _75.MsgUpdateClientResponse; + toAminoMsg(message: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseAminoMsg; + fromProtoMsg(message: _75.MsgUpdateClientResponseProtoMsg): _75.MsgUpdateClientResponse; + toProto(message: _75.MsgUpdateClientResponse): Uint8Array; + toProtoMsg(message: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseProtoMsg; + }; + MsgUpgradeClient: { + typeUrl: string; + encode(message: _75.MsgUpgradeClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpgradeClient; + fromPartial(object: Partial<_75.MsgUpgradeClient>): _75.MsgUpgradeClient; + fromAmino(object: _75.MsgUpgradeClientAmino): _75.MsgUpgradeClient; + toAmino(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientAmino; + fromAminoMsg(object: _75.MsgUpgradeClientAminoMsg): _75.MsgUpgradeClient; + toAminoMsg(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientAminoMsg; + fromProtoMsg(message: _75.MsgUpgradeClientProtoMsg): _75.MsgUpgradeClient; + toProto(message: _75.MsgUpgradeClient): Uint8Array; + toProtoMsg(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientProtoMsg; + }; + MsgUpgradeClientResponse: { + typeUrl: string; + encode(_: _75.MsgUpgradeClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpgradeClientResponse; + fromPartial(_: Partial<_75.MsgUpgradeClientResponse>): _75.MsgUpgradeClientResponse; + fromAmino(_: _75.MsgUpgradeClientResponseAmino): _75.MsgUpgradeClientResponse; + toAmino(_: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseAmino; + fromAminoMsg(object: _75.MsgUpgradeClientResponseAminoMsg): _75.MsgUpgradeClientResponse; + toAminoMsg(message: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseAminoMsg; + fromProtoMsg(message: _75.MsgUpgradeClientResponseProtoMsg): _75.MsgUpgradeClientResponse; + toProto(message: _75.MsgUpgradeClientResponse): Uint8Array; + toProtoMsg(message: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseProtoMsg; + }; + MsgSubmitMisbehaviour: { + typeUrl: string; + encode(message: _75.MsgSubmitMisbehaviour, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgSubmitMisbehaviour; + fromPartial(object: Partial<_75.MsgSubmitMisbehaviour>): _75.MsgSubmitMisbehaviour; + fromAmino(object: _75.MsgSubmitMisbehaviourAmino): _75.MsgSubmitMisbehaviour; + toAmino(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourAmino; + fromAminoMsg(object: _75.MsgSubmitMisbehaviourAminoMsg): _75.MsgSubmitMisbehaviour; + toAminoMsg(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourAminoMsg; + fromProtoMsg(message: _75.MsgSubmitMisbehaviourProtoMsg): _75.MsgSubmitMisbehaviour; + toProto(message: _75.MsgSubmitMisbehaviour): Uint8Array; + toProtoMsg(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourProtoMsg; + }; + MsgSubmitMisbehaviourResponse: { + typeUrl: string; + encode(_: _75.MsgSubmitMisbehaviourResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgSubmitMisbehaviourResponse; + fromPartial(_: Partial<_75.MsgSubmitMisbehaviourResponse>): _75.MsgSubmitMisbehaviourResponse; + fromAmino(_: _75.MsgSubmitMisbehaviourResponseAmino): _75.MsgSubmitMisbehaviourResponse; + toAmino(_: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseAmino; + fromAminoMsg(object: _75.MsgSubmitMisbehaviourResponseAminoMsg): _75.MsgSubmitMisbehaviourResponse; + toAminoMsg(message: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseAminoMsg; + fromProtoMsg(message: _75.MsgSubmitMisbehaviourResponseProtoMsg): _75.MsgSubmitMisbehaviourResponse; + toProto(message: _75.MsgSubmitMisbehaviourResponse): Uint8Array; + toProtoMsg(message: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseProtoMsg; + }; + QueryClientStateRequest: { + typeUrl: string; + encode(message: _74.QueryClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStateRequest; + fromPartial(object: Partial<_74.QueryClientStateRequest>): _74.QueryClientStateRequest; + fromAmino(object: _74.QueryClientStateRequestAmino): _74.QueryClientStateRequest; + toAmino(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestAmino; + fromAminoMsg(object: _74.QueryClientStateRequestAminoMsg): _74.QueryClientStateRequest; + toAminoMsg(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestAminoMsg; + fromProtoMsg(message: _74.QueryClientStateRequestProtoMsg): _74.QueryClientStateRequest; + toProto(message: _74.QueryClientStateRequest): Uint8Array; + toProtoMsg(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestProtoMsg; + }; + QueryClientStateResponse: { + typeUrl: string; + encode(message: _74.QueryClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStateResponse; + fromPartial(object: Partial<_74.QueryClientStateResponse>): _74.QueryClientStateResponse; + fromAmino(object: _74.QueryClientStateResponseAmino): _74.QueryClientStateResponse; + toAmino(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseAmino; + fromAminoMsg(object: _74.QueryClientStateResponseAminoMsg): _74.QueryClientStateResponse; + toAminoMsg(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseAminoMsg; + fromProtoMsg(message: _74.QueryClientStateResponseProtoMsg): _74.QueryClientStateResponse; + toProto(message: _74.QueryClientStateResponse): Uint8Array; + toProtoMsg(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseProtoMsg; + }; + QueryClientStatesRequest: { + typeUrl: string; + encode(message: _74.QueryClientStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatesRequest; + fromPartial(object: Partial<_74.QueryClientStatesRequest>): _74.QueryClientStatesRequest; + fromAmino(object: _74.QueryClientStatesRequestAmino): _74.QueryClientStatesRequest; + toAmino(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestAmino; + fromAminoMsg(object: _74.QueryClientStatesRequestAminoMsg): _74.QueryClientStatesRequest; + toAminoMsg(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestAminoMsg; + fromProtoMsg(message: _74.QueryClientStatesRequestProtoMsg): _74.QueryClientStatesRequest; + toProto(message: _74.QueryClientStatesRequest): Uint8Array; + toProtoMsg(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestProtoMsg; + }; + QueryClientStatesResponse: { + typeUrl: string; + encode(message: _74.QueryClientStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatesResponse; + fromPartial(object: Partial<_74.QueryClientStatesResponse>): _74.QueryClientStatesResponse; + fromAmino(object: _74.QueryClientStatesResponseAmino): _74.QueryClientStatesResponse; + toAmino(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseAmino; + fromAminoMsg(object: _74.QueryClientStatesResponseAminoMsg): _74.QueryClientStatesResponse; + toAminoMsg(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseAminoMsg; + fromProtoMsg(message: _74.QueryClientStatesResponseProtoMsg): _74.QueryClientStatesResponse; + toProto(message: _74.QueryClientStatesResponse): Uint8Array; + toProtoMsg(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseProtoMsg; + }; + QueryConsensusStateRequest: { + typeUrl: string; + encode(message: _74.QueryConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateRequest; + fromPartial(object: Partial<_74.QueryConsensusStateRequest>): _74.QueryConsensusStateRequest; + fromAmino(object: _74.QueryConsensusStateRequestAmino): _74.QueryConsensusStateRequest; + toAmino(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestAmino; + fromAminoMsg(object: _74.QueryConsensusStateRequestAminoMsg): _74.QueryConsensusStateRequest; + toAminoMsg(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStateRequestProtoMsg): _74.QueryConsensusStateRequest; + toProto(message: _74.QueryConsensusStateRequest): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestProtoMsg; + }; + QueryConsensusStateResponse: { + typeUrl: string; + encode(message: _74.QueryConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateResponse; + fromPartial(object: Partial<_74.QueryConsensusStateResponse>): _74.QueryConsensusStateResponse; + fromAmino(object: _74.QueryConsensusStateResponseAmino): _74.QueryConsensusStateResponse; + toAmino(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseAmino; + fromAminoMsg(object: _74.QueryConsensusStateResponseAminoMsg): _74.QueryConsensusStateResponse; + toAminoMsg(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStateResponseProtoMsg): _74.QueryConsensusStateResponse; + toProto(message: _74.QueryConsensusStateResponse): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseProtoMsg; + }; + QueryConsensusStatesRequest: { + typeUrl: string; + encode(message: _74.QueryConsensusStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStatesRequest; + fromPartial(object: Partial<_74.QueryConsensusStatesRequest>): _74.QueryConsensusStatesRequest; + fromAmino(object: _74.QueryConsensusStatesRequestAmino): _74.QueryConsensusStatesRequest; + toAmino(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestAmino; + fromAminoMsg(object: _74.QueryConsensusStatesRequestAminoMsg): _74.QueryConsensusStatesRequest; + toAminoMsg(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStatesRequestProtoMsg): _74.QueryConsensusStatesRequest; + toProto(message: _74.QueryConsensusStatesRequest): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestProtoMsg; + }; + QueryConsensusStatesResponse: { + typeUrl: string; + encode(message: _74.QueryConsensusStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStatesResponse; + fromPartial(object: Partial<_74.QueryConsensusStatesResponse>): _74.QueryConsensusStatesResponse; + fromAmino(object: _74.QueryConsensusStatesResponseAmino): _74.QueryConsensusStatesResponse; + toAmino(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseAmino; + fromAminoMsg(object: _74.QueryConsensusStatesResponseAminoMsg): _74.QueryConsensusStatesResponse; + toAminoMsg(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStatesResponseProtoMsg): _74.QueryConsensusStatesResponse; + toProto(message: _74.QueryConsensusStatesResponse): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseProtoMsg; + }; + QueryConsensusStateHeightsRequest: { + typeUrl: string; + encode(message: _74.QueryConsensusStateHeightsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateHeightsRequest; + fromPartial(object: Partial<_74.QueryConsensusStateHeightsRequest>): _74.QueryConsensusStateHeightsRequest; + fromAmino(object: _74.QueryConsensusStateHeightsRequestAmino): _74.QueryConsensusStateHeightsRequest; + toAmino(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestAmino; + fromAminoMsg(object: _74.QueryConsensusStateHeightsRequestAminoMsg): _74.QueryConsensusStateHeightsRequest; + toAminoMsg(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStateHeightsRequestProtoMsg): _74.QueryConsensusStateHeightsRequest; + toProto(message: _74.QueryConsensusStateHeightsRequest): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestProtoMsg; + }; + QueryConsensusStateHeightsResponse: { + typeUrl: string; + encode(message: _74.QueryConsensusStateHeightsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateHeightsResponse; + fromPartial(object: Partial<_74.QueryConsensusStateHeightsResponse>): _74.QueryConsensusStateHeightsResponse; + fromAmino(object: _74.QueryConsensusStateHeightsResponseAmino): _74.QueryConsensusStateHeightsResponse; + toAmino(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseAmino; + fromAminoMsg(object: _74.QueryConsensusStateHeightsResponseAminoMsg): _74.QueryConsensusStateHeightsResponse; + toAminoMsg(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseAminoMsg; + fromProtoMsg(message: _74.QueryConsensusStateHeightsResponseProtoMsg): _74.QueryConsensusStateHeightsResponse; + toProto(message: _74.QueryConsensusStateHeightsResponse): Uint8Array; + toProtoMsg(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseProtoMsg; + }; + QueryClientStatusRequest: { + typeUrl: string; + encode(message: _74.QueryClientStatusRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatusRequest; + fromPartial(object: Partial<_74.QueryClientStatusRequest>): _74.QueryClientStatusRequest; + fromAmino(object: _74.QueryClientStatusRequestAmino): _74.QueryClientStatusRequest; + toAmino(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestAmino; + fromAminoMsg(object: _74.QueryClientStatusRequestAminoMsg): _74.QueryClientStatusRequest; + toAminoMsg(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestAminoMsg; + fromProtoMsg(message: _74.QueryClientStatusRequestProtoMsg): _74.QueryClientStatusRequest; + toProto(message: _74.QueryClientStatusRequest): Uint8Array; + toProtoMsg(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestProtoMsg; + }; + QueryClientStatusResponse: { + typeUrl: string; + encode(message: _74.QueryClientStatusResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatusResponse; + fromPartial(object: Partial<_74.QueryClientStatusResponse>): _74.QueryClientStatusResponse; + fromAmino(object: _74.QueryClientStatusResponseAmino): _74.QueryClientStatusResponse; + toAmino(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseAmino; + fromAminoMsg(object: _74.QueryClientStatusResponseAminoMsg): _74.QueryClientStatusResponse; + toAminoMsg(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseAminoMsg; + fromProtoMsg(message: _74.QueryClientStatusResponseProtoMsg): _74.QueryClientStatusResponse; + toProto(message: _74.QueryClientStatusResponse): Uint8Array; + toProtoMsg(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseProtoMsg; + }; + QueryClientParamsRequest: { + typeUrl: string; + encode(_: _74.QueryClientParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientParamsRequest; + fromPartial(_: Partial<_74.QueryClientParamsRequest>): _74.QueryClientParamsRequest; + fromAmino(_: _74.QueryClientParamsRequestAmino): _74.QueryClientParamsRequest; + toAmino(_: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestAmino; + fromAminoMsg(object: _74.QueryClientParamsRequestAminoMsg): _74.QueryClientParamsRequest; + toAminoMsg(message: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestAminoMsg; + fromProtoMsg(message: _74.QueryClientParamsRequestProtoMsg): _74.QueryClientParamsRequest; + toProto(message: _74.QueryClientParamsRequest): Uint8Array; + toProtoMsg(message: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestProtoMsg; + }; + QueryClientParamsResponse: { + typeUrl: string; + encode(message: _74.QueryClientParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientParamsResponse; + fromPartial(object: Partial<_74.QueryClientParamsResponse>): _74.QueryClientParamsResponse; + fromAmino(object: _74.QueryClientParamsResponseAmino): _74.QueryClientParamsResponse; + toAmino(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseAmino; + fromAminoMsg(object: _74.QueryClientParamsResponseAminoMsg): _74.QueryClientParamsResponse; + toAminoMsg(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseAminoMsg; + fromProtoMsg(message: _74.QueryClientParamsResponseProtoMsg): _74.QueryClientParamsResponse; + toProto(message: _74.QueryClientParamsResponse): Uint8Array; + toProtoMsg(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseProtoMsg; + }; + QueryUpgradedClientStateRequest: { + typeUrl: string; + encode(_: _74.QueryUpgradedClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedClientStateRequest; + fromPartial(_: Partial<_74.QueryUpgradedClientStateRequest>): _74.QueryUpgradedClientStateRequest; + fromAmino(_: _74.QueryUpgradedClientStateRequestAmino): _74.QueryUpgradedClientStateRequest; + toAmino(_: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestAmino; + fromAminoMsg(object: _74.QueryUpgradedClientStateRequestAminoMsg): _74.QueryUpgradedClientStateRequest; + toAminoMsg(message: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestAminoMsg; + fromProtoMsg(message: _74.QueryUpgradedClientStateRequestProtoMsg): _74.QueryUpgradedClientStateRequest; + toProto(message: _74.QueryUpgradedClientStateRequest): Uint8Array; + toProtoMsg(message: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestProtoMsg; + }; + QueryUpgradedClientStateResponse: { + typeUrl: string; + encode(message: _74.QueryUpgradedClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedClientStateResponse; + fromPartial(object: Partial<_74.QueryUpgradedClientStateResponse>): _74.QueryUpgradedClientStateResponse; + fromAmino(object: _74.QueryUpgradedClientStateResponseAmino): _74.QueryUpgradedClientStateResponse; + toAmino(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseAmino; + fromAminoMsg(object: _74.QueryUpgradedClientStateResponseAminoMsg): _74.QueryUpgradedClientStateResponse; + toAminoMsg(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseAminoMsg; + fromProtoMsg(message: _74.QueryUpgradedClientStateResponseProtoMsg): _74.QueryUpgradedClientStateResponse; + toProto(message: _74.QueryUpgradedClientStateResponse): Uint8Array; + toProtoMsg(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseProtoMsg; + }; + QueryUpgradedConsensusStateRequest: { + typeUrl: string; + encode(_: _74.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedConsensusStateRequest; + fromPartial(_: Partial<_74.QueryUpgradedConsensusStateRequest>): _74.QueryUpgradedConsensusStateRequest; + fromAmino(_: _74.QueryUpgradedConsensusStateRequestAmino): _74.QueryUpgradedConsensusStateRequest; + toAmino(_: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestAmino; + fromAminoMsg(object: _74.QueryUpgradedConsensusStateRequestAminoMsg): _74.QueryUpgradedConsensusStateRequest; + toAminoMsg(message: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestAminoMsg; + fromProtoMsg(message: _74.QueryUpgradedConsensusStateRequestProtoMsg): _74.QueryUpgradedConsensusStateRequest; + toProto(message: _74.QueryUpgradedConsensusStateRequest): Uint8Array; + toProtoMsg(message: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestProtoMsg; + }; + QueryUpgradedConsensusStateResponse: { + typeUrl: string; + encode(message: _74.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedConsensusStateResponse; + fromPartial(object: Partial<_74.QueryUpgradedConsensusStateResponse>): _74.QueryUpgradedConsensusStateResponse; + fromAmino(object: _74.QueryUpgradedConsensusStateResponseAmino): _74.QueryUpgradedConsensusStateResponse; + toAmino(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseAmino; + fromAminoMsg(object: _74.QueryUpgradedConsensusStateResponseAminoMsg): _74.QueryUpgradedConsensusStateResponse; + toAminoMsg(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseAminoMsg; + fromProtoMsg(message: _74.QueryUpgradedConsensusStateResponseProtoMsg): _74.QueryUpgradedConsensusStateResponse; + toProto(message: _74.QueryUpgradedConsensusStateResponse): Uint8Array; + toProtoMsg(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _73.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.GenesisState; + fromPartial(object: Partial<_73.GenesisState>): _73.GenesisState; + fromAmino(object: _73.GenesisStateAmino): _73.GenesisState; + toAmino(message: _73.GenesisState): _73.GenesisStateAmino; + fromAminoMsg(object: _73.GenesisStateAminoMsg): _73.GenesisState; + toAminoMsg(message: _73.GenesisState): _73.GenesisStateAminoMsg; + fromProtoMsg(message: _73.GenesisStateProtoMsg): _73.GenesisState; + toProto(message: _73.GenesisState): Uint8Array; + toProtoMsg(message: _73.GenesisState): _73.GenesisStateProtoMsg; + }; + GenesisMetadata: { + typeUrl: string; + encode(message: _73.GenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.GenesisMetadata; + fromPartial(object: Partial<_73.GenesisMetadata>): _73.GenesisMetadata; + fromAmino(object: _73.GenesisMetadataAmino): _73.GenesisMetadata; + toAmino(message: _73.GenesisMetadata): _73.GenesisMetadataAmino; + fromAminoMsg(object: _73.GenesisMetadataAminoMsg): _73.GenesisMetadata; + toAminoMsg(message: _73.GenesisMetadata): _73.GenesisMetadataAminoMsg; + fromProtoMsg(message: _73.GenesisMetadataProtoMsg): _73.GenesisMetadata; + toProto(message: _73.GenesisMetadata): Uint8Array; + toProtoMsg(message: _73.GenesisMetadata): _73.GenesisMetadataProtoMsg; + }; + IdentifiedGenesisMetadata: { + typeUrl: string; + encode(message: _73.IdentifiedGenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.IdentifiedGenesisMetadata; + fromPartial(object: Partial<_73.IdentifiedGenesisMetadata>): _73.IdentifiedGenesisMetadata; + fromAmino(object: _73.IdentifiedGenesisMetadataAmino): _73.IdentifiedGenesisMetadata; + toAmino(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataAmino; + fromAminoMsg(object: _73.IdentifiedGenesisMetadataAminoMsg): _73.IdentifiedGenesisMetadata; + toAminoMsg(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataAminoMsg; + fromProtoMsg(message: _73.IdentifiedGenesisMetadataProtoMsg): _73.IdentifiedGenesisMetadata; + toProto(message: _73.IdentifiedGenesisMetadata): Uint8Array; + toProtoMsg(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataProtoMsg; + }; + IdentifiedClientState: { + typeUrl: string; + encode(message: _72.IdentifiedClientState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.IdentifiedClientState; + fromPartial(object: Partial<_72.IdentifiedClientState>): _72.IdentifiedClientState; + fromAmino(object: _72.IdentifiedClientStateAmino): _72.IdentifiedClientState; + toAmino(message: _72.IdentifiedClientState): _72.IdentifiedClientStateAmino; + fromAminoMsg(object: _72.IdentifiedClientStateAminoMsg): _72.IdentifiedClientState; + toAminoMsg(message: _72.IdentifiedClientState): _72.IdentifiedClientStateAminoMsg; + fromProtoMsg(message: _72.IdentifiedClientStateProtoMsg): _72.IdentifiedClientState; + toProto(message: _72.IdentifiedClientState): Uint8Array; + toProtoMsg(message: _72.IdentifiedClientState): _72.IdentifiedClientStateProtoMsg; + }; + ConsensusStateWithHeight: { + typeUrl: string; + encode(message: _72.ConsensusStateWithHeight, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ConsensusStateWithHeight; + fromPartial(object: Partial<_72.ConsensusStateWithHeight>): _72.ConsensusStateWithHeight; + fromAmino(object: _72.ConsensusStateWithHeightAmino): _72.ConsensusStateWithHeight; + toAmino(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightAmino; + fromAminoMsg(object: _72.ConsensusStateWithHeightAminoMsg): _72.ConsensusStateWithHeight; + toAminoMsg(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightAminoMsg; + fromProtoMsg(message: _72.ConsensusStateWithHeightProtoMsg): _72.ConsensusStateWithHeight; + toProto(message: _72.ConsensusStateWithHeight): Uint8Array; + toProtoMsg(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightProtoMsg; + }; + ClientConsensusStates: { + typeUrl: string; + encode(message: _72.ClientConsensusStates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ClientConsensusStates; + fromPartial(object: Partial<_72.ClientConsensusStates>): _72.ClientConsensusStates; + fromAmino(object: _72.ClientConsensusStatesAmino): _72.ClientConsensusStates; + toAmino(message: _72.ClientConsensusStates): _72.ClientConsensusStatesAmino; + fromAminoMsg(object: _72.ClientConsensusStatesAminoMsg): _72.ClientConsensusStates; + toAminoMsg(message: _72.ClientConsensusStates): _72.ClientConsensusStatesAminoMsg; + fromProtoMsg(message: _72.ClientConsensusStatesProtoMsg): _72.ClientConsensusStates; + toProto(message: _72.ClientConsensusStates): Uint8Array; + toProtoMsg(message: _72.ClientConsensusStates): _72.ClientConsensusStatesProtoMsg; + }; + ClientUpdateProposal: { + typeUrl: string; + encode(message: _72.ClientUpdateProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ClientUpdateProposal; + fromPartial(object: Partial<_72.ClientUpdateProposal>): _72.ClientUpdateProposal; + fromAmino(object: _72.ClientUpdateProposalAmino): _72.ClientUpdateProposal; + toAmino(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalAmino; + fromAminoMsg(object: _72.ClientUpdateProposalAminoMsg): _72.ClientUpdateProposal; + toAminoMsg(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalAminoMsg; + fromProtoMsg(message: _72.ClientUpdateProposalProtoMsg): _72.ClientUpdateProposal; + toProto(message: _72.ClientUpdateProposal): Uint8Array; + toProtoMsg(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalProtoMsg; + }; + UpgradeProposal: { + typeUrl: string; + encode(message: _72.UpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.UpgradeProposal; + fromPartial(object: Partial<_72.UpgradeProposal>): _72.UpgradeProposal; + fromAmino(object: _72.UpgradeProposalAmino): _72.UpgradeProposal; + toAmino(message: _72.UpgradeProposal): _72.UpgradeProposalAmino; + fromAminoMsg(object: _72.UpgradeProposalAminoMsg): _72.UpgradeProposal; + toAminoMsg(message: _72.UpgradeProposal): _72.UpgradeProposalAminoMsg; + fromProtoMsg(message: _72.UpgradeProposalProtoMsg): _72.UpgradeProposal; + toProto(message: _72.UpgradeProposal): Uint8Array; + toProtoMsg(message: _72.UpgradeProposal): _72.UpgradeProposalProtoMsg; + }; + Height: { + typeUrl: string; + encode(message: _72.Height, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.Height; + fromPartial(object: Partial<_72.Height>): _72.Height; + fromAmino(object: _72.HeightAmino): _72.Height; + toAmino(message: _72.Height): _72.HeightAmino; + fromAminoMsg(object: _72.HeightAminoMsg): _72.Height; + toAminoMsg(message: _72.Height): _72.HeightAminoMsg; + fromProtoMsg(message: _72.HeightProtoMsg): _72.Height; + toProto(message: _72.Height): Uint8Array; + toProtoMsg(message: _72.Height): _72.HeightProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _72.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.Params; + fromPartial(object: Partial<_72.Params>): _72.Params; + fromAmino(object: _72.ParamsAmino): _72.Params; + toAmino(message: _72.Params): _72.ParamsAmino; + fromAminoMsg(object: _72.ParamsAminoMsg): _72.Params; + toAminoMsg(message: _72.Params): _72.ParamsAminoMsg; + fromProtoMsg(message: _72.ParamsProtoMsg): _72.Params; + toProto(message: _72.Params): Uint8Array; + toProtoMsg(message: _72.Params): _72.ParamsProtoMsg; + }; + }; + } + } + const ClientFactory: { + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + group: { + v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + vesting: { + v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + ibc: { + applications: { + transfer: { + v1: _185.MsgClientImpl; + }; + }; + core: { + client: { + v1: _186.MsgClientImpl; + }; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; + }; + authz: { + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; + }; + bank: { + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; + }; + }; + base: { + node: { + v1beta1: { + config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + feegrant: { + v1beta1: { + allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; + allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; + allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; + }; + }; + gov: { + v1: { + proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; + }; + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; + }; + group: { + v1: { + groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; + groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; + votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; + groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; + tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; + }; + }; + mint: { + v1beta1: { + params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; + inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; + annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; + }; + }; + params: { + v1beta1: { + params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; + subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; + }; + }; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; + }; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; + ibc: { + applications: { + transfer: { + v1: { + denomTrace(request: _69.QueryDenomTraceRequest): Promise<_69.QueryDenomTraceResponse>; + denomTraces(request?: _69.QueryDenomTracesRequest): Promise<_69.QueryDenomTracesResponse>; + params(request?: _69.QueryParamsRequest): Promise<_69.QueryParamsResponse>; + denomHash(request: _69.QueryDenomHashRequest): Promise<_69.QueryDenomHashResponse>; + escrowAddress(request: _69.QueryEscrowAddressRequest): Promise<_69.QueryEscrowAddressResponse>; + }; + }; + }; + core: { + client: { + v1: { + clientState(request: _74.QueryClientStateRequest): Promise<_74.QueryClientStateResponse>; + clientStates(request?: _74.QueryClientStatesRequest): Promise<_74.QueryClientStatesResponse>; + consensusState(request: _74.QueryConsensusStateRequest): Promise<_74.QueryConsensusStateResponse>; + consensusStates(request: _74.QueryConsensusStatesRequest): Promise<_74.QueryConsensusStatesResponse>; + consensusStateHeights(request: _74.QueryConsensusStateHeightsRequest): Promise<_74.QueryConsensusStateHeightsResponse>; + clientStatus(request: _74.QueryClientStatusRequest): Promise<_74.QueryClientStatusResponse>; + clientParams(request?: _74.QueryClientParamsRequest): Promise<_74.QueryClientParamsResponse>; + upgradedClientState(request?: _74.QueryUpgradedClientStateRequest): Promise<_74.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _74.QueryUpgradedConsensusStateRequest): Promise<_74.QueryUpgradedConsensusStateResponse>; + }; + }; + }; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + }; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; + }; + base: { + node: { + v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; + }; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + }; + group: { + v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + mint: { + v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + params: { + v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; + }; + tx: { + v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; + }; + }; + ibc: { + applications: { + transfer: { + v1: _181.LCDQueryClient; + }; + }; + core: { + client: { + v1: _182.LCDQueryClient; + }; + }; + }; + }>; + }; +} diff --git a/packages/api/dist/ibc/bundle.js b/packages/api/dist/ibc/bundle.js new file mode 100644 index 00000000..2b853813 --- /dev/null +++ b/packages/api/dist/ibc/bundle.js @@ -0,0 +1,90 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ibc = void 0; +//@ts-nocheck +const _68 = __importStar(require("./applications/transfer/v1/genesis")); +const _69 = __importStar(require("./applications/transfer/v1/query")); +const _70 = __importStar(require("./applications/transfer/v1/transfer")); +const _71 = __importStar(require("./applications/transfer/v1/tx")); +const _72 = __importStar(require("./core/client/v1/client")); +const _73 = __importStar(require("./core/client/v1/genesis")); +const _74 = __importStar(require("./core/client/v1/query")); +const _75 = __importStar(require("./core/client/v1/tx")); +const _177 = __importStar(require("./applications/transfer/v1/tx.amino")); +const _178 = __importStar(require("./core/client/v1/tx.amino")); +const _179 = __importStar(require("./applications/transfer/v1/tx.registry")); +const _180 = __importStar(require("./core/client/v1/tx.registry")); +const _181 = __importStar(require("./applications/transfer/v1/query.lcd")); +const _182 = __importStar(require("./core/client/v1/query.lcd")); +const _183 = __importStar(require("./applications/transfer/v1/query.rpc.Query")); +const _184 = __importStar(require("./core/client/v1/query.rpc.Query")); +const _185 = __importStar(require("./applications/transfer/v1/tx.rpc.msg")); +const _186 = __importStar(require("./core/client/v1/tx.rpc.msg")); +const _220 = __importStar(require("./lcd")); +const _221 = __importStar(require("./rpc.query")); +const _222 = __importStar(require("./rpc.tx")); +var ibc; +(function (ibc) { + let applications; + (function (applications) { + let transfer; + (function (transfer) { + transfer.v1 = { + ..._68, + ..._69, + ..._70, + ..._71, + ..._177, + ..._179, + ..._181, + ..._183, + ..._185 + }; + })(transfer = applications.transfer || (applications.transfer = {})); + })(applications = ibc.applications || (ibc.applications = {})); + let core; + (function (core) { + let client; + (function (client) { + client.v1 = { + ..._72, + ..._73, + ..._74, + ..._75, + ..._178, + ..._180, + ..._182, + ..._184, + ..._186 + }; + })(client = core.client || (core.client = {})); + })(core = ibc.core || (ibc.core = {})); + ibc.ClientFactory = { + ..._220, + ..._221, + ..._222 + }; +})(ibc || (exports.ibc = ibc = {})); diff --git a/packages/api/dist/ibc/client.d.ts b/packages/api/dist/ibc/client.d.ts new file mode 100644 index 00000000..b071b27e --- /dev/null +++ b/packages/api/dist/ibc/client.d.ts @@ -0,0 +1,42 @@ +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const ibcAminoConverters: { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: string; + toAmino: (message: import("./core/client/v1/tx").MsgCreateClient) => import("./core/client/v1/tx").MsgCreateClientAmino; + fromAmino: (object: import("./core/client/v1/tx").MsgCreateClientAmino) => import("./core/client/v1/tx").MsgCreateClient; + }; + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: string; + toAmino: (message: import("./core/client/v1/tx").MsgUpdateClient) => import("./core/client/v1/tx").MsgUpdateClientAmino; + fromAmino: (object: import("./core/client/v1/tx").MsgUpdateClientAmino) => import("./core/client/v1/tx").MsgUpdateClient; + }; + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: string; + toAmino: (message: import("./core/client/v1/tx").MsgUpgradeClient) => import("./core/client/v1/tx").MsgUpgradeClientAmino; + fromAmino: (object: import("./core/client/v1/tx").MsgUpgradeClientAmino) => import("./core/client/v1/tx").MsgUpgradeClient; + }; + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: string; + toAmino: (message: import("./core/client/v1/tx").MsgSubmitMisbehaviour) => import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino; + fromAmino: (object: import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino) => import("./core/client/v1/tx").MsgSubmitMisbehaviour; + }; + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: string; + toAmino: (message: import("./applications/transfer/v1/tx").MsgTransfer) => import("./applications/transfer/v1/tx").MsgTransferAmino; + fromAmino: (object: import("./applications/transfer/v1/tx").MsgTransferAmino) => import("./applications/transfer/v1/tx").MsgTransfer; + }; +}; +export declare const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]>; +export declare const getSigningIbcClientOptions: ({ defaultTypes }?: { + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => { + registry: Registry; + aminoTypes: AminoTypes; +}; +export declare const getSigningIbcClient: ({ rpcEndpoint, signer, defaultTypes }: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => Promise; diff --git a/packages/api/dist/ibc/client.js b/packages/api/dist/ibc/client.js new file mode 100644 index 00000000..81ceb042 --- /dev/null +++ b/packages/api/dist/ibc/client.js @@ -0,0 +1,60 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSigningIbcClient = exports.getSigningIbcClientOptions = exports.ibcProtoRegistry = exports.ibcAminoConverters = void 0; +//@ts-nocheck +const proto_signing_1 = require("@cosmjs/proto-signing"); +const stargate_1 = require("@cosmjs/stargate"); +const ibcApplicationsTransferV1TxRegistry = __importStar(require("./applications/transfer/v1/tx.registry")); +const ibcCoreClientV1TxRegistry = __importStar(require("./core/client/v1/tx.registry")); +const ibcApplicationsTransferV1TxAmino = __importStar(require("./applications/transfer/v1/tx.amino")); +const ibcCoreClientV1TxAmino = __importStar(require("./core/client/v1/tx.amino")); +exports.ibcAminoConverters = { + ...ibcApplicationsTransferV1TxAmino.AminoConverter, + ...ibcCoreClientV1TxAmino.AminoConverter +}; +exports.ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; +const getSigningIbcClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => { + const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.ibcProtoRegistry]); + const aminoTypes = new stargate_1.AminoTypes({ + ...exports.ibcAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +exports.getSigningIbcClientOptions = getSigningIbcClientOptions; +const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => { + const { registry, aminoTypes } = (0, exports.getSigningIbcClientOptions)({ + defaultTypes + }); + const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; +exports.getSigningIbcClient = getSigningIbcClient; diff --git a/packages/api/dist/ibc/core/client/v1/client.d.ts b/packages/api/dist/ibc/core/client/v1/client.d.ts new file mode 100644 index 00000000..899f4da4 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/client.d.ts @@ -0,0 +1,400 @@ +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientState { + /** client identifier */ + clientId: string; + /** client state */ + clientState?: Any; +} +export interface IdentifiedClientStateProtoMsg { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; + value: Uint8Array; +} +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientStateAmino { + /** client identifier */ + client_id?: string; + /** client state */ + client_state?: AnyAmino; +} +export interface IdentifiedClientStateAminoMsg { + type: "cosmos-sdk/IdentifiedClientState"; + value: IdentifiedClientStateAmino; +} +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientStateSDKType { + client_id: string; + client_state?: AnySDKType; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeight { + /** consensus state height */ + height: Height; + /** consensus state */ + consensusState?: Any; +} +export interface ConsensusStateWithHeightProtoMsg { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; + value: Uint8Array; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeightAmino { + /** consensus state height */ + height?: HeightAmino; + /** consensus state */ + consensus_state?: AnyAmino; +} +export interface ConsensusStateWithHeightAminoMsg { + type: "cosmos-sdk/ConsensusStateWithHeight"; + value: ConsensusStateWithHeightAmino; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeightSDKType { + height: HeightSDKType; + consensus_state?: AnySDKType; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStates { + /** client identifier */ + clientId: string; + /** consensus states and their heights associated with the client */ + consensusStates: ConsensusStateWithHeight[]; +} +export interface ClientConsensusStatesProtoMsg { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; + value: Uint8Array; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStatesAmino { + /** client identifier */ + client_id?: string; + /** consensus states and their heights associated with the client */ + consensus_states?: ConsensusStateWithHeightAmino[]; +} +export interface ClientConsensusStatesAminoMsg { + type: "cosmos-sdk/ClientConsensusStates"; + value: ClientConsensusStatesAmino; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStatesSDKType { + client_id: string; + consensus_states: ConsensusStateWithHeightSDKType[]; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposal { + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; + /** the title of the update proposal */ + title: string; + /** the description of the proposal */ + description: string; + /** the client identifier for the client to be updated if the proposal passes */ + subjectClientId: string; + /** + * the substitute client identifier for the client standing in for the subject + * client + */ + substituteClientId: string; +} +export interface ClientUpdateProposalProtoMsg { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; + value: Uint8Array; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposalAmino { + /** the title of the update proposal */ + title?: string; + /** the description of the proposal */ + description?: string; + /** the client identifier for the client to be updated if the proposal passes */ + subject_client_id?: string; + /** + * the substitute client identifier for the client standing in for the subject + * client + */ + substitute_client_id?: string; +} +export interface ClientUpdateProposalAminoMsg { + type: "cosmos-sdk/ClientUpdateProposal"; + value: ClientUpdateProposalAmino; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposalSDKType { + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; + title: string; + description: string; + subject_client_id: string; + substitute_client_id: string; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposal { + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; + title: string; + description: string; + plan: Plan; + /** + * An UpgradedClientState must be provided to perform an IBC breaking upgrade. + * This will make the chain commit to the correct upgraded (self) client state + * before the upgrade occurs, so that connecting chains can verify that the + * new upgraded client is valid by verifying a proof on the previous version + * of the chain. This will allow IBC connections to persist smoothly across + * planned chain upgrades + */ + upgradedClientState?: Any; +} +export interface UpgradeProposalProtoMsg { + typeUrl: "/ibc.core.client.v1.UpgradeProposal"; + value: Uint8Array; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposalAmino { + title?: string; + description?: string; + plan?: PlanAmino; + /** + * An UpgradedClientState must be provided to perform an IBC breaking upgrade. + * This will make the chain commit to the correct upgraded (self) client state + * before the upgrade occurs, so that connecting chains can verify that the + * new upgraded client is valid by verifying a proof on the previous version + * of the chain. This will allow IBC connections to persist smoothly across + * planned chain upgrades + */ + upgraded_client_state?: AnyAmino; +} +export interface UpgradeProposalAminoMsg { + type: "cosmos-sdk/UpgradeProposal"; + value: UpgradeProposalAmino; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposalSDKType { + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; + title: string; + description: string; + plan: PlanSDKType; + upgraded_client_state?: AnySDKType; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface Height { + /** the revision that the client is currently on */ + revisionNumber: bigint; + /** the height within the given revision */ + revisionHeight: bigint; +} +export interface HeightProtoMsg { + typeUrl: "/ibc.core.client.v1.Height"; + value: Uint8Array; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface HeightAmino { + /** the revision that the client is currently on */ + revision_number?: string; + /** the height within the given revision */ + revision_height?: string; +} +export interface HeightAminoMsg { + type: "cosmos-sdk/Height"; + value: HeightAmino; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface HeightSDKType { + revision_number: bigint; + revision_height: bigint; +} +/** Params defines the set of IBC light client parameters. */ +export interface Params { + /** allowed_clients defines the list of allowed client state types. */ + allowedClients: string[]; +} +export interface ParamsProtoMsg { + typeUrl: "/ibc.core.client.v1.Params"; + value: Uint8Array; +} +/** Params defines the set of IBC light client parameters. */ +export interface ParamsAmino { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the set of IBC light client parameters. */ +export interface ParamsSDKType { + allowed_clients: string[]; +} +export declare const IdentifiedClientState: { + typeUrl: string; + encode(message: IdentifiedClientState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState; + fromPartial(object: Partial): IdentifiedClientState; + fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState; + toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino; + fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState; + toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg; + fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState; + toProto(message: IdentifiedClientState): Uint8Array; + toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg; +}; +export declare const ConsensusStateWithHeight: { + typeUrl: string; + encode(message: ConsensusStateWithHeight, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight; + fromPartial(object: Partial): ConsensusStateWithHeight; + fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight; + toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino; + fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight; + toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg; + fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight; + toProto(message: ConsensusStateWithHeight): Uint8Array; + toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg; +}; +export declare const ClientConsensusStates: { + typeUrl: string; + encode(message: ClientConsensusStates, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates; + fromPartial(object: Partial): ClientConsensusStates; + fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates; + toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino; + fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates; + toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg; + fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates; + toProto(message: ClientConsensusStates): Uint8Array; + toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg; +}; +export declare const ClientUpdateProposal: { + typeUrl: string; + encode(message: ClientUpdateProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal; + fromPartial(object: Partial): ClientUpdateProposal; + fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal; + toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino; + fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal; + toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg; + fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal; + toProto(message: ClientUpdateProposal): Uint8Array; + toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg; +}; +export declare const UpgradeProposal: { + typeUrl: string; + encode(message: UpgradeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal; + fromPartial(object: Partial): UpgradeProposal; + fromAmino(object: UpgradeProposalAmino): UpgradeProposal; + toAmino(message: UpgradeProposal): UpgradeProposalAmino; + fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal; + toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg; + fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal; + toProto(message: UpgradeProposal): Uint8Array; + toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg; +}; +export declare const Height: { + typeUrl: string; + encode(message: Height, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Height; + fromPartial(object: Partial): Height; + fromAmino(object: HeightAmino): Height; + toAmino(message: Height): HeightAmino; + fromAminoMsg(object: HeightAminoMsg): Height; + toAminoMsg(message: Height): HeightAminoMsg; + fromProtoMsg(message: HeightProtoMsg): Height; + toProto(message: Height): Uint8Array; + toProtoMsg(message: Height): HeightProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + toAminoMsg(message: Params): ParamsAminoMsg; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; diff --git a/packages/api/dist/ibc/core/client/v1/client.js b/packages/api/dist/ibc/core/client/v1/client.js new file mode 100644 index 00000000..86362717 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/client.js @@ -0,0 +1,614 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0; +//@ts-nocheck +const any_1 = require("../../../../google/protobuf/any"); +const upgrade_1 = require("../../../../cosmos/upgrade/v1beta1/upgrade"); +const binary_1 = require("../../../../binary"); +function createBaseIdentifiedClientState() { + return { + clientId: "", + clientState: undefined + }; +} +exports.IdentifiedClientState = { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + any_1.Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedClientState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIdentifiedClientState(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseIdentifiedClientState(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = any_1.Any.fromAmino(object.client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.IdentifiedClientState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IdentifiedClientState", + value: exports.IdentifiedClientState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.IdentifiedClientState.decode(message.value); + }, + toProto(message) { + return exports.IdentifiedClientState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + value: exports.IdentifiedClientState.encode(message).finish() + }; + } +}; +function createBaseConsensusStateWithHeight() { + return { + height: exports.Height.fromPartial({}), + consensusState: undefined + }; +} +exports.ConsensusStateWithHeight = { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== undefined) { + exports.Height.encode(message.height, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + any_1.Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusStateWithHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = exports.Height.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensusStateWithHeight(); + message.height = object.height !== undefined && object.height !== null ? exports.Height.fromPartial(object.height) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConsensusStateWithHeight(); + if (object.height !== undefined && object.height !== null) { + message.height = exports.Height.fromAmino(object.height); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = any_1.Any.fromAmino(object.consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height ? exports.Height.toAmino(message.height) : undefined; + obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ConsensusStateWithHeight.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ConsensusStateWithHeight", + value: exports.ConsensusStateWithHeight.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ConsensusStateWithHeight.decode(message.value); + }, + toProto(message) { + return exports.ConsensusStateWithHeight.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + value: exports.ConsensusStateWithHeight.encode(message).finish() + }; + } +}; +function createBaseClientConsensusStates() { + return { + clientId: "", + consensusStates: [] + }; +} +exports.ClientConsensusStates = { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.consensusStates) { + exports.ConsensusStateWithHeight.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientConsensusStates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.consensusStates.push(exports.ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClientConsensusStates(); + message.clientId = object.clientId ?? ""; + message.consensusStates = object.consensusStates?.map(e => exports.ConsensusStateWithHeight.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseClientConsensusStates(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.consensusStates = object.consensus_states?.map(e => exports.ConsensusStateWithHeight.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? exports.ConsensusStateWithHeight.toAmino(e) : undefined); + } + else { + obj.consensus_states = message.consensusStates; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ClientConsensusStates.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ClientConsensusStates", + value: exports.ClientConsensusStates.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ClientConsensusStates.decode(message.value); + }, + toProto(message) { + return exports.ClientConsensusStates.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + value: exports.ClientConsensusStates.encode(message).finish() + }; + } +}; +function createBaseClientUpdateProposal() { + return { + $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + title: "", + description: "", + subjectClientId: "", + substituteClientId: "" + }; +} +exports.ClientUpdateProposal = { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.subjectClientId !== "") { + writer.uint32(26).string(message.subjectClientId); + } + if (message.substituteClientId !== "") { + writer.uint32(34).string(message.substituteClientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientUpdateProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.subjectClientId = reader.string(); + break; + case 4: + message.substituteClientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClientUpdateProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.subjectClientId = object.subjectClientId ?? ""; + message.substituteClientId = object.substituteClientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClientUpdateProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.subject_client_id !== undefined && object.subject_client_id !== null) { + message.subjectClientId = object.subject_client_id; + } + if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { + message.substituteClientId = object.substitute_client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; + obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; + return obj; + }, + fromAminoMsg(object) { + return exports.ClientUpdateProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/ClientUpdateProposal", + value: exports.ClientUpdateProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.ClientUpdateProposal.decode(message.value); + }, + toProto(message) { + return exports.ClientUpdateProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + value: exports.ClientUpdateProposal.encode(message).finish() + }; + } +}; +function createBaseUpgradeProposal() { + return { + $typeUrl: "/ibc.core.client.v1.UpgradeProposal", + title: "", + description: "", + plan: upgrade_1.Plan.fromPartial({}), + upgradedClientState: undefined + }; +} +exports.UpgradeProposal = { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + upgrade_1.Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + if (message.upgradedClientState !== undefined) { + any_1.Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); + break; + case 4: + message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = upgrade_1.Plan.fromAmino(object.plan); + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; + obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.UpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/UpgradeProposal", + value: exports.UpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.UpgradeProposal.decode(message.value); + }, + toProto(message) { + return exports.UpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + value: exports.UpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseHeight() { + return { + revisionNumber: BigInt(0), + revisionHeight: BigInt(0) + }; +} +exports.Height = { + typeUrl: "/ibc.core.client.v1.Height", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(8).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.revisionNumber = reader.uint64(); + break; + case 2: + message.revisionHeight = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHeight(); + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + return { + revisionNumber: BigInt(object.revision_number || "0"), + revisionHeight: BigInt(object.revision_height || "0") + }; + }, + toAmino(message) { + const obj = {}; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Height.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Height", + value: exports.Height.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Height.decode(message.value); + }, + toProto(message) { + return exports.Height.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.Height", + value: exports.Height.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + allowedClients: [] + }; +} +exports.Params = { + typeUrl: "/ibc.core.client.v1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowedClients) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedClients.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.allowedClients = object.allowedClients?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.allowedClients = object.allowed_clients?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedClients) { + obj.allowed_clients = message.allowedClients.map(e => e); + } + else { + obj.allowed_clients = message.allowedClients; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/Params", + value: exports.Params.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/genesis.d.ts b/packages/api/dist/ibc/core/client/v1/genesis.d.ts new file mode 100644 index 00000000..e9c90ef9 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/genesis.d.ts @@ -0,0 +1,154 @@ +import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisState { + /** client states with their corresponding identifiers */ + clients: IdentifiedClientState[]; + /** consensus states from each client */ + clientsConsensus: ClientConsensusStates[]; + /** metadata from each client */ + clientsMetadata: IdentifiedGenesisMetadata[]; + params: Params; + /** create localhost on initialization */ + createLocalhost: boolean; + /** the sequence for the next generated client identifier */ + nextClientSequence: bigint; +} +export interface GenesisStateProtoMsg { + typeUrl: "/ibc.core.client.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisStateAmino { + /** client states with their corresponding identifiers */ + clients?: IdentifiedClientStateAmino[]; + /** consensus states from each client */ + clients_consensus?: ClientConsensusStatesAmino[]; + /** metadata from each client */ + clients_metadata?: IdentifiedGenesisMetadataAmino[]; + params?: ParamsAmino; + /** create localhost on initialization */ + create_localhost?: boolean; + /** the sequence for the next generated client identifier */ + next_client_sequence?: string; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisStateSDKType { + clients: IdentifiedClientStateSDKType[]; + clients_consensus: ClientConsensusStatesSDKType[]; + clients_metadata: IdentifiedGenesisMetadataSDKType[]; + params: ParamsSDKType; + create_localhost: boolean; + next_client_sequence: bigint; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadata { + /** store key of metadata without clientID-prefix */ + key: Uint8Array; + /** metadata value */ + value: Uint8Array; +} +export interface GenesisMetadataProtoMsg { + typeUrl: "/ibc.core.client.v1.GenesisMetadata"; + value: Uint8Array; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadataAmino { + /** store key of metadata without clientID-prefix */ + key?: string; + /** metadata value */ + value?: string; +} +export interface GenesisMetadataAminoMsg { + type: "cosmos-sdk/GenesisMetadata"; + value: GenesisMetadataAmino; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadataSDKType { + key: Uint8Array; + value: Uint8Array; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadata { + clientId: string; + clientMetadata: GenesisMetadata[]; +} +export interface IdentifiedGenesisMetadataProtoMsg { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; + value: Uint8Array; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadataAmino { + client_id?: string; + client_metadata?: GenesisMetadataAmino[]; +} +export interface IdentifiedGenesisMetadataAminoMsg { + type: "cosmos-sdk/IdentifiedGenesisMetadata"; + value: IdentifiedGenesisMetadataAmino; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadataSDKType { + client_id: string; + client_metadata: GenesisMetadataSDKType[]; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + toAminoMsg(message: GenesisState): GenesisStateAminoMsg; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; +export declare const GenesisMetadata: { + typeUrl: string; + encode(message: GenesisMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata; + fromPartial(object: Partial): GenesisMetadata; + fromAmino(object: GenesisMetadataAmino): GenesisMetadata; + toAmino(message: GenesisMetadata): GenesisMetadataAmino; + fromAminoMsg(object: GenesisMetadataAminoMsg): GenesisMetadata; + toAminoMsg(message: GenesisMetadata): GenesisMetadataAminoMsg; + fromProtoMsg(message: GenesisMetadataProtoMsg): GenesisMetadata; + toProto(message: GenesisMetadata): Uint8Array; + toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg; +}; +export declare const IdentifiedGenesisMetadata: { + typeUrl: string; + encode(message: IdentifiedGenesisMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata; + fromPartial(object: Partial): IdentifiedGenesisMetadata; + fromAmino(object: IdentifiedGenesisMetadataAmino): IdentifiedGenesisMetadata; + toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino; + fromAminoMsg(object: IdentifiedGenesisMetadataAminoMsg): IdentifiedGenesisMetadata; + toAminoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAminoMsg; + fromProtoMsg(message: IdentifiedGenesisMetadataProtoMsg): IdentifiedGenesisMetadata; + toProto(message: IdentifiedGenesisMetadata): Uint8Array; + toProtoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataProtoMsg; +}; diff --git a/packages/api/dist/ibc/core/client/v1/genesis.js b/packages/api/dist/ibc/core/client/v1/genesis.js new file mode 100644 index 00000000..98eb0b45 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/genesis.js @@ -0,0 +1,310 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.GenesisState = void 0; +//@ts-nocheck +const client_1 = require("./client"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseGenesisState() { + return { + clients: [], + clientsConsensus: [], + clientsMetadata: [], + params: client_1.Params.fromPartial({}), + createLocalhost: false, + nextClientSequence: BigInt(0) + }; +} +exports.GenesisState = { + typeUrl: "/ibc.core.client.v1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.clients) { + client_1.IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.clientsConsensus) { + client_1.ClientConsensusStates.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.clientsMetadata) { + exports.IdentifiedGenesisMetadata.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.params !== undefined) { + client_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim(); + } + if (message.createLocalhost === true) { + writer.uint32(40).bool(message.createLocalhost); + } + if (message.nextClientSequence !== BigInt(0)) { + writer.uint32(48).uint64(message.nextClientSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clients.push(client_1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.clientsConsensus.push(client_1.ClientConsensusStates.decode(reader, reader.uint32())); + break; + case 3: + message.clientsMetadata.push(exports.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); + break; + case 4: + message.params = client_1.Params.decode(reader, reader.uint32()); + break; + case 5: + message.createLocalhost = reader.bool(); + break; + case 6: + message.nextClientSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => client_1.IdentifiedClientState.fromPartial(e)) || []; + message.clientsConsensus = object.clientsConsensus?.map(e => client_1.ClientConsensusStates.fromPartial(e)) || []; + message.clientsMetadata = object.clientsMetadata?.map(e => exports.IdentifiedGenesisMetadata.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? client_1.Params.fromPartial(object.params) : undefined; + message.createLocalhost = object.createLocalhost ?? false; + message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => client_1.IdentifiedClientState.fromAmino(e)) || []; + message.clientsConsensus = object.clients_consensus?.map(e => client_1.ClientConsensusStates.fromAmino(e)) || []; + message.clientsMetadata = object.clients_metadata?.map(e => exports.IdentifiedGenesisMetadata.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = client_1.Params.fromAmino(object.params); + } + if (object.create_localhost !== undefined && object.create_localhost !== null) { + message.createLocalhost = object.create_localhost; + } + if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { + message.nextClientSequence = BigInt(object.next_client_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.clients) { + obj.clients = message.clients.map(e => e ? client_1.IdentifiedClientState.toAmino(e) : undefined); + } + else { + obj.clients = message.clients; + } + if (message.clientsConsensus) { + obj.clients_consensus = message.clientsConsensus.map(e => e ? client_1.ClientConsensusStates.toAmino(e) : undefined); + } + else { + obj.clients_consensus = message.clientsConsensus; + } + if (message.clientsMetadata) { + obj.clients_metadata = message.clientsMetadata.map(e => e ? exports.IdentifiedGenesisMetadata.toAmino(e) : undefined); + } + else { + obj.clients_metadata = message.clientsMetadata; + } + obj.params = message.params ? client_1.Params.toAmino(message.params) : undefined; + obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; + obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisState", + value: exports.GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; +function createBaseGenesisMetadata() { + return { + key: new Uint8Array(), + value: new Uint8Array() + }; +} +exports.GenesisMetadata = { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisMetadata(); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseGenesisMetadata(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = (0, helpers_1.bytesFromBase64)(object.value); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + obj.value = message.value ? (0, helpers_1.base64FromBytes)(message.value) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/GenesisMetadata", + value: exports.GenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.GenesisMetadata.decode(message.value); + }, + toProto(message) { + return exports.GenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + value: exports.GenesisMetadata.encode(message).finish() + }; + } +}; +function createBaseIdentifiedGenesisMetadata() { + return { + clientId: "", + clientMetadata: [] + }; +} +exports.IdentifiedGenesisMetadata = { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.clientMetadata) { + exports.GenesisMetadata.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMetadata.push(exports.GenesisMetadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseIdentifiedGenesisMetadata(); + message.clientId = object.clientId ?? ""; + message.clientMetadata = object.clientMetadata?.map(e => exports.GenesisMetadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseIdentifiedGenesisMetadata(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.clientMetadata = object.client_metadata?.map(e => exports.GenesisMetadata.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.clientMetadata) { + obj.client_metadata = message.clientMetadata.map(e => e ? exports.GenesisMetadata.toAmino(e) : undefined); + } + else { + obj.client_metadata = message.clientMetadata; + } + return obj; + }, + fromAminoMsg(object) { + return exports.IdentifiedGenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/IdentifiedGenesisMetadata", + value: exports.IdentifiedGenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.IdentifiedGenesisMetadata.decode(message.value); + }, + toProto(message) { + return exports.IdentifiedGenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + value: exports.IdentifiedGenesisMetadata.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/query.d.ts b/packages/api/dist/ibc/core/client/v1/query.d.ts new file mode 100644 index 00000000..be14205f --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.d.ts @@ -0,0 +1,851 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequest { + /** client state unique identifier */ + clientId: string; +} +export interface QueryClientStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; + value: Uint8Array; +} +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequestAmino { + /** client state unique identifier */ + client_id?: string; +} +export interface QueryClientStateRequestAminoMsg { + type: "cosmos-sdk/QueryClientStateRequest"; + value: QueryClientStateRequestAmino; +} +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequestSDKType { + client_id: string; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponse { + /** client state associated with the request identifier */ + clientState?: Any; + /** merkle proof of existence */ + proof: Uint8Array; + /** height at which the proof was retrieved */ + proofHeight: Height; +} +export interface QueryClientStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; + value: Uint8Array; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponseAmino { + /** client state associated with the request identifier */ + client_state?: AnyAmino; + /** merkle proof of existence */ + proof?: string; + /** height at which the proof was retrieved */ + proof_height?: HeightAmino; +} +export interface QueryClientStateResponseAminoMsg { + type: "cosmos-sdk/QueryClientStateResponse"; + value: QueryClientStateResponseAmino; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponseSDKType { + client_state?: AnySDKType; + proof: Uint8Array; + proof_height: HeightSDKType; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequest { + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryClientStatesRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; + value: Uint8Array; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequestAmino { + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryClientStatesRequestAminoMsg { + type: "cosmos-sdk/QueryClientStatesRequest"; + value: QueryClientStatesRequestAmino; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponse { + /** list of stored ClientStates of the chain. */ + clientStates: IdentifiedClientState[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryClientStatesResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; + value: Uint8Array; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponseAmino { + /** list of stored ClientStates of the chain. */ + client_states?: IdentifiedClientStateAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryClientStatesResponseAminoMsg { + type: "cosmos-sdk/QueryClientStatesResponse"; + value: QueryClientStatesResponseAmino; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponseSDKType { + client_states: IdentifiedClientStateSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequest { + /** client identifier */ + clientId: string; + /** consensus state revision number */ + revisionNumber: bigint; + /** consensus state revision height */ + revisionHeight: bigint; + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState + */ + latestHeight: boolean; +} +export interface QueryConsensusStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequestAmino { + /** client identifier */ + client_id?: string; + /** consensus state revision number */ + revision_number?: string; + /** consensus state revision height */ + revision_height?: string; + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState + */ + latest_height?: boolean; +} +export interface QueryConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStateRequest"; + value: QueryConsensusStateRequestAmino; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequestSDKType { + client_id: string; + revision_number: bigint; + revision_height: bigint; + latest_height: boolean; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponse { + /** consensus state associated with the client identifier at the given height */ + consensusState?: Any; + /** merkle proof of existence */ + proof: Uint8Array; + /** height at which the proof was retrieved */ + proofHeight: Height; +} +export interface QueryConsensusStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponseAmino { + /** consensus state associated with the client identifier at the given height */ + consensus_state?: AnyAmino; + /** merkle proof of existence */ + proof?: string; + /** height at which the proof was retrieved */ + proof_height?: HeightAmino; +} +export interface QueryConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStateResponse"; + value: QueryConsensusStateResponseAmino; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponseSDKType { + consensus_state?: AnySDKType; + proof: Uint8Array; + proof_height: HeightSDKType; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequest { + /** client identifier */ + clientId: string; + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryConsensusStatesRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequestAmino { + /** client identifier */ + client_id?: string; + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryConsensusStatesRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStatesRequest"; + value: QueryConsensusStatesRequestAmino; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequestSDKType { + client_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponse { + /** consensus states associated with the identifier */ + consensusStates: ConsensusStateWithHeight[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryConsensusStatesResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponseAmino { + /** consensus states associated with the identifier */ + consensus_states?: ConsensusStateWithHeightAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryConsensusStatesResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStatesResponse"; + value: QueryConsensusStatesResponseAmino; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponseSDKType { + consensus_states: ConsensusStateWithHeightSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequest { + /** client identifier */ + clientId: string; + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryConsensusStateHeightsRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequestAmino { + /** client identifier */ + client_id?: string; + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryConsensusStateHeightsRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStateHeightsRequest"; + value: QueryConsensusStateHeightsRequestAmino; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequestSDKType { + client_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponse { + /** consensus state heights */ + consensusStateHeights: Height[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryConsensusStateHeightsResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponseAmino { + /** consensus state heights */ + consensus_state_heights?: HeightAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryConsensusStateHeightsResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStateHeightsResponse"; + value: QueryConsensusStateHeightsResponseAmino; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponseSDKType { + consensus_state_heights: HeightSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequest { + /** client unique identifier */ + clientId: string; +} +export interface QueryClientStatusRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; + value: Uint8Array; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequestAmino { + /** client unique identifier */ + client_id?: string; +} +export interface QueryClientStatusRequestAminoMsg { + type: "cosmos-sdk/QueryClientStatusRequest"; + value: QueryClientStatusRequestAmino; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequestSDKType { + client_id: string; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponse { + status: string; +} +export interface QueryClientStatusResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; + value: Uint8Array; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponseAmino { + status?: string; +} +export interface QueryClientStatusResponseAminoMsg { + type: "cosmos-sdk/QueryClientStatusResponse"; + value: QueryClientStatusResponseAmino; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponseSDKType { + status: string; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequest { +} +export interface QueryClientParamsRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; + value: Uint8Array; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequestAmino { +} +export interface QueryClientParamsRequestAminoMsg { + type: "cosmos-sdk/QueryClientParamsRequest"; + value: QueryClientParamsRequestAmino; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequestSDKType { +} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponse { + /** params defines the parameters of the module. */ + params?: Params; +} +export interface QueryClientParamsResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; + value: Uint8Array; +} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryClientParamsResponseAminoMsg { + type: "cosmos-sdk/QueryClientParamsResponse"; + value: QueryClientParamsResponseAmino; +} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponseSDKType { + params?: ParamsSDKType; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequest { +} +export interface QueryUpgradedClientStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequestAmino { +} +export interface QueryUpgradedClientStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedClientStateRequest"; + value: QueryUpgradedClientStateRequestAmino; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequestSDKType { +} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponse { + /** client state associated with the request identifier */ + upgradedClientState?: Any; +} +export interface QueryUpgradedClientStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponseAmino { + /** client state associated with the request identifier */ + upgraded_client_state?: AnyAmino; +} +export interface QueryUpgradedClientStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedClientStateResponse"; + value: QueryUpgradedClientStateResponseAmino; +} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponseSDKType { + upgraded_client_state?: AnySDKType; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequest { +} +export interface QueryUpgradedConsensusStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequestAmino { +} +export interface QueryUpgradedConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; + value: QueryUpgradedConsensusStateRequestAmino; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequestSDKType { +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponse { + /** Consensus state associated with the request identifier */ + upgradedConsensusState?: Any; +} +export interface QueryUpgradedConsensusStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponseAmino { + /** Consensus state associated with the request identifier */ + upgraded_consensus_state?: AnyAmino; +} +export interface QueryUpgradedConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; + value: QueryUpgradedConsensusStateResponseAmino; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponseSDKType { + upgraded_consensus_state?: AnySDKType; +} +export declare const QueryClientStateRequest: { + typeUrl: string; + encode(message: QueryClientStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest; + fromPartial(object: Partial): QueryClientStateRequest; + fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest; + toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino; + fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest; + toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg; + fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest; + toProto(message: QueryClientStateRequest): Uint8Array; + toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg; +}; +export declare const QueryClientStateResponse: { + typeUrl: string; + encode(message: QueryClientStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse; + fromPartial(object: Partial): QueryClientStateResponse; + fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse; + toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino; + fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse; + toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg; + fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse; + toProto(message: QueryClientStateResponse): Uint8Array; + toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg; +}; +export declare const QueryClientStatesRequest: { + typeUrl: string; + encode(message: QueryClientStatesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest; + fromPartial(object: Partial): QueryClientStatesRequest; + fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest; + toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino; + fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest; + toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg; + fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest; + toProto(message: QueryClientStatesRequest): Uint8Array; + toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg; +}; +export declare const QueryClientStatesResponse: { + typeUrl: string; + encode(message: QueryClientStatesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse; + fromPartial(object: Partial): QueryClientStatesResponse; + fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse; + toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino; + fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse; + toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg; + fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse; + toProto(message: QueryClientStatesResponse): Uint8Array; + toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg; +}; +export declare const QueryConsensusStateRequest: { + typeUrl: string; + encode(message: QueryConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest; + fromPartial(object: Partial): QueryConsensusStateRequest; + fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest; + toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino; + fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest; + toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg; + fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest; + toProto(message: QueryConsensusStateRequest): Uint8Array; + toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg; +}; +export declare const QueryConsensusStateResponse: { + typeUrl: string; + encode(message: QueryConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse; + fromPartial(object: Partial): QueryConsensusStateResponse; + fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse; + toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino; + fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse; + toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg; + fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse; + toProto(message: QueryConsensusStateResponse): Uint8Array; + toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg; +}; +export declare const QueryConsensusStatesRequest: { + typeUrl: string; + encode(message: QueryConsensusStatesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest; + fromPartial(object: Partial): QueryConsensusStatesRequest; + fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest; + toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino; + fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest; + toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg; + fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest; + toProto(message: QueryConsensusStatesRequest): Uint8Array; + toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg; +}; +export declare const QueryConsensusStatesResponse: { + typeUrl: string; + encode(message: QueryConsensusStatesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse; + fromPartial(object: Partial): QueryConsensusStatesResponse; + fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse; + toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino; + fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse; + toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg; + fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse; + toProto(message: QueryConsensusStatesResponse): Uint8Array; + toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg; +}; +export declare const QueryConsensusStateHeightsRequest: { + typeUrl: string; + encode(message: QueryConsensusStateHeightsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; + fromPartial(object: Partial): QueryConsensusStateHeightsRequest; + fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest; + toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino; + fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest; + toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg; + fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest; + toProto(message: QueryConsensusStateHeightsRequest): Uint8Array; + toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg; +}; +export declare const QueryConsensusStateHeightsResponse: { + typeUrl: string; + encode(message: QueryConsensusStateHeightsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; + fromPartial(object: Partial): QueryConsensusStateHeightsResponse; + fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse; + toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino; + fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse; + toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg; + fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse; + toProto(message: QueryConsensusStateHeightsResponse): Uint8Array; + toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg; +}; +export declare const QueryClientStatusRequest: { + typeUrl: string; + encode(message: QueryClientStatusRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest; + fromPartial(object: Partial): QueryClientStatusRequest; + fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest; + toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino; + fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest; + toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg; + fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest; + toProto(message: QueryClientStatusRequest): Uint8Array; + toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg; +}; +export declare const QueryClientStatusResponse: { + typeUrl: string; + encode(message: QueryClientStatusResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse; + fromPartial(object: Partial): QueryClientStatusResponse; + fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse; + toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino; + fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse; + toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg; + fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse; + toProto(message: QueryClientStatusResponse): Uint8Array; + toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg; +}; +export declare const QueryClientParamsRequest: { + typeUrl: string; + encode(_: QueryClientParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest; + fromPartial(_: Partial): QueryClientParamsRequest; + fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest; + toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino; + fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest; + toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg; + fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest; + toProto(message: QueryClientParamsRequest): Uint8Array; + toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg; +}; +export declare const QueryClientParamsResponse: { + typeUrl: string; + encode(message: QueryClientParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse; + fromPartial(object: Partial): QueryClientParamsResponse; + fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse; + toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino; + fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse; + toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg; + fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse; + toProto(message: QueryClientParamsResponse): Uint8Array; + toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg; +}; +export declare const QueryUpgradedClientStateRequest: { + typeUrl: string; + encode(_: QueryUpgradedClientStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; + fromPartial(_: Partial): QueryUpgradedClientStateRequest; + fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest; + toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino; + fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest; + toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg; + fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest; + toProto(message: QueryUpgradedClientStateRequest): Uint8Array; + toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg; +}; +export declare const QueryUpgradedClientStateResponse: { + typeUrl: string; + encode(message: QueryUpgradedClientStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; + fromPartial(object: Partial): QueryUpgradedClientStateResponse; + fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse; + toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino; + fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse; + toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg; + fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse; + toProto(message: QueryUpgradedClientStateResponse): Uint8Array; + toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg; +}; +export declare const QueryUpgradedConsensusStateRequest: { + typeUrl: string; + encode(_: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; + fromPartial(_: Partial): QueryUpgradedConsensusStateRequest; + fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; + toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; + fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; + toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; + fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; + toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; + toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; +}; +export declare const QueryUpgradedConsensusStateResponse: { + typeUrl: string; + encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; + fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; + fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; + toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; + fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; + toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; + fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; + toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; + toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; +}; diff --git a/packages/api/dist/ibc/core/client/v1/query.js b/packages/api/dist/ibc/core/client/v1/query.js new file mode 100644 index 00000000..18dde31e --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.js @@ -0,0 +1,1365 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); +const any_1 = require("../../../../google/protobuf/any"); +const client_1 = require("./client"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseQueryClientStateRequest() { + return { + clientId: "" + }; +} +exports.QueryClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStateRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStateRequest", + value: exports.QueryClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStateRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + value: exports.QueryClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStateResponse() { + return { + clientState: undefined, + proof: new Uint8Array(), + proofHeight: client_1.Height.fromPartial({}) + }; +} +exports.QueryClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientState !== undefined) { + any_1.Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + client_1.Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = any_1.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = client_1.Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStateResponse(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? client_1.Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStateResponse(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = any_1.Any.fromAmino(object.client_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = (0, helpers_1.bytesFromBase64)(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = client_1.Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; + obj.proof = message.proof ? (0, helpers_1.base64FromBytes)(message.proof) : undefined; + obj.proof_height = message.proofHeight ? client_1.Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStateResponse", + value: exports.QueryClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStateResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + value: exports.QueryClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesRequest() { + return { + pagination: undefined + }; +} +exports.QueryClientStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatesRequest", + value: exports.QueryClientStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStatesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStatesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + value: exports.QueryClientStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesResponse() { + return { + clientStates: [], + pagination: undefined + }; +} +exports.QueryClientStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.clientStates) { + client_1.IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientStates.push(client_1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.clientStates?.map(e => client_1.IdentifiedClientState.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.client_states?.map(e => client_1.IdentifiedClientState.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.clientStates) { + obj.client_states = message.clientStates.map(e => e ? client_1.IdentifiedClientState.toAmino(e) : undefined); + } + else { + obj.client_states = message.clientStates; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatesResponse", + value: exports.QueryClientStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStatesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStatesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + value: exports.QueryClientStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateRequest() { + return { + clientId: "", + revisionNumber: BigInt(0), + revisionHeight: BigInt(0), + latestHeight: false + }; +} +exports.QueryConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.revisionHeight); + } + if (message.latestHeight === true) { + writer.uint32(32).bool(message.latestHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.revisionNumber = reader.uint64(); + break; + case 3: + message.revisionHeight = reader.uint64(); + break; + case 4: + message.latestHeight = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateRequest(); + message.clientId = object.clientId ?? ""; + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + message.latestHeight = object.latestHeight ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.revision_number !== undefined && object.revision_number !== null) { + message.revisionNumber = BigInt(object.revision_number); + } + if (object.revision_height !== undefined && object.revision_height !== null) { + message.revisionHeight = BigInt(object.revision_height); + } + if (object.latest_height !== undefined && object.latest_height !== null) { + message.latestHeight = object.latest_height; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateRequest", + value: exports.QueryConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + value: exports.QueryConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateResponse() { + return { + consensusState: undefined, + proof: new Uint8Array(), + proofHeight: client_1.Height.fromPartial({}) + }; +} +exports.QueryConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.consensusState !== undefined) { + any_1.Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + client_1.Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusState = any_1.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = client_1.Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateResponse(); + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? client_1.Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateResponse(); + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = any_1.Any.fromAmino(object.consensus_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = (0, helpers_1.bytesFromBase64)(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = client_1.Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; + obj.proof = message.proof ? (0, helpers_1.base64FromBytes)(message.proof) : undefined; + obj.proof_height = message.proofHeight ? client_1.Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateResponse", + value: exports.QueryConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + value: exports.QueryConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesRequest() { + return { + clientId: "", + pagination: undefined + }; +} +exports.QueryConsensusStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStatesRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStatesRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStatesRequest", + value: exports.QueryConsensusStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStatesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStatesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + value: exports.QueryConsensusStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesResponse() { + return { + consensusStates: [], + pagination: undefined + }; +} +exports.QueryConsensusStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.consensusStates) { + client_1.ConsensusStateWithHeight.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStates.push(client_1.ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensusStates?.map(e => client_1.ConsensusStateWithHeight.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensus_states?.map(e => client_1.ConsensusStateWithHeight.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? client_1.ConsensusStateWithHeight.toAmino(e) : undefined); + } + else { + obj.consensus_states = message.consensusStates; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStatesResponse", + value: exports.QueryConsensusStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStatesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStatesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + value: exports.QueryConsensusStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsRequest() { + return { + clientId: "", + pagination: undefined + }; +} +exports.QueryConsensusStateHeightsRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateHeightsRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateHeightsRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStateHeightsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsRequest", + value: exports.QueryConsensusStateHeightsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStateHeightsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStateHeightsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + value: exports.QueryConsensusStateHeightsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsResponse() { + return { + consensusStateHeights: [], + pagination: undefined + }; +} +exports.QueryConsensusStateHeightsResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.consensusStateHeights) { + client_1.Height.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStateHeights.push(client_1.Height.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensusStateHeights?.map(e => client_1.Height.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensus_state_heights?.map(e => client_1.Height.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.consensusStateHeights) { + obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? client_1.Height.toAmino(e) : undefined); + } + else { + obj.consensus_state_heights = message.consensusStateHeights; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryConsensusStateHeightsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsResponse", + value: exports.QueryConsensusStateHeightsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryConsensusStateHeightsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryConsensusStateHeightsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + value: exports.QueryConsensusStateHeightsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusRequest() { + return { + clientId: "" + }; +} +exports.QueryClientStatusRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatusRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatusRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStatusRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatusRequest", + value: exports.QueryClientStatusRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStatusRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStatusRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + value: exports.QueryClientStatusRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusResponse() { + return { + status: "" + }; +} +exports.QueryClientStatusResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientStatusResponse(); + message.status = object.status ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientStatusResponse(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === "" ? undefined : message.status; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientStatusResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientStatusResponse", + value: exports.QueryClientStatusResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientStatusResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClientStatusResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + value: exports.QueryClientStatusResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsRequest() { + return {}; +} +exports.QueryClientParamsRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientParamsRequest", + value: exports.QueryClientParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClientParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + value: exports.QueryClientParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsResponse() { + return { + params: undefined + }; +} +exports.QueryClientParamsResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + client_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = client_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClientParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? client_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClientParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = client_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? client_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClientParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryClientParamsResponse", + value: exports.QueryClientParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryClientParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClientParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + value: exports.QueryClientParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateRequest() { + return {}; +} +exports.QueryUpgradedClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedClientStateRequest", + value: exports.QueryUpgradedClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedClientStateRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + value: exports.QueryUpgradedClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateResponse() { + return { + upgradedClientState: undefined + }; +} +exports.QueryUpgradedClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.upgradedClientState !== undefined) { + any_1.Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedClientStateResponse(); + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedClientStateResponse(); + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedClientStateResponse", + value: exports.QueryUpgradedClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedClientStateResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + value: exports.QueryUpgradedClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest() { + return {}; +} +exports.QueryUpgradedConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: exports.QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + value: exports.QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse() { + return { + upgradedConsensusState: undefined + }; +} +exports.QueryUpgradedConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.upgradedConsensusState !== undefined) { + any_1.Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedConsensusState = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? any_1.Any.fromPartial(object.upgradedConsensusState) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = any_1.Any.fromAmino(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? any_1.Any.toAmino(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: exports.QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + value: exports.QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts b/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts new file mode 100644 index 00000000..995c8c32 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts @@ -0,0 +1,17 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + clientState(params: QueryClientStateRequest): Promise; + clientStates(params?: QueryClientStatesRequest): Promise; + consensusState(params: QueryConsensusStateRequest): Promise; + consensusStates(params: QueryConsensusStatesRequest): Promise; + consensusStateHeights(params: QueryConsensusStateHeightsRequest): Promise; + clientStatus(params: QueryClientStatusRequest): Promise; + clientParams(_params?: QueryClientParamsRequest): Promise; + upgradedClientState(_params?: QueryUpgradedClientStateRequest): Promise; + upgradedConsensusState(_params?: QueryUpgradedConsensusStateRequest): Promise; +} diff --git a/packages/api/dist/ibc/core/client/v1/query.lcd.js b/packages/api/dist/ibc/core/client/v1/query.lcd.js new file mode 100644 index 00000000..706762fc --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.lcd.js @@ -0,0 +1,94 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + /* ClientState queries an IBC light client. */ + async clientState(params) { + const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientStates queries all the IBC light clients of a chain. */ + async clientStates(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/client_states`; + return await this.req.get(endpoint, options); + } + /* ConsensusState queries a consensus state associated with a client state at + a given height. */ + async consensusState(params) { + const options = { + params: {} + }; + if (typeof params?.latestHeight !== "undefined") { + options.params.latest_height = params.latestHeight; + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStates queries all the consensus state associated with a given + client. */ + async consensusStates(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ + async consensusStateHeights(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; + return await this.req.get(endpoint, options); + } + /* Status queries the status of an IBC client. */ + async clientStatus(params) { + const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientParams queries all parameters of the ibc client. */ + async clientParams(_params = {}) { + const endpoint = `ibc/client/v1/params`; + return await this.req.get(endpoint); + } + /* UpgradedClientState queries an Upgraded IBC light client. */ + async upgradedClientState(_params = {}) { + const endpoint = `ibc/core/client/v1/upgraded_client_states`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ + async upgradedConsensusState(_params = {}) { + const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..306362d3 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts @@ -0,0 +1,54 @@ +import { Rpc } from "../../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** ClientState queries an IBC light client. */ + clientState(request: QueryClientStateRequest): Promise; + /** ClientStates queries all the IBC light clients of a chain. */ + clientStates(request?: QueryClientStatesRequest): Promise; + /** + * ConsensusState queries a consensus state associated with a client state at + * a given height. + */ + consensusState(request: QueryConsensusStateRequest): Promise; + /** + * ConsensusStates queries all the consensus state associated with a given + * client. + */ + consensusStates(request: QueryConsensusStatesRequest): Promise; + /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; + /** Status queries the status of an IBC client. */ + clientStatus(request: QueryClientStatusRequest): Promise; + /** ClientParams queries all parameters of the ibc client. */ + clientParams(request?: QueryClientParamsRequest): Promise; + /** UpgradedClientState queries an Upgraded IBC light client. */ + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + clientState(request: QueryClientStateRequest): Promise; + clientStates(request?: QueryClientStatesRequest): Promise; + consensusState(request: QueryConsensusStateRequest): Promise; + consensusStates(request: QueryConsensusStatesRequest): Promise; + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; + clientStatus(request: QueryClientStatusRequest): Promise; + clientParams(request?: QueryClientParamsRequest): Promise; + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + clientState(request: QueryClientStateRequest): Promise; + clientStates(request?: QueryClientStatesRequest): Promise; + consensusState(request: QueryConsensusStateRequest): Promise; + consensusStates(request: QueryConsensusStatesRequest): Promise; + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; + clientStatus(request: QueryClientStatusRequest): Promise; + clientParams(request?: QueryClientParamsRequest): Promise; + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; +}; diff --git a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js new file mode 100644 index 00000000..976263cd --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js @@ -0,0 +1,103 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + clientState(request) { + const data = query_1.QueryClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); + return promise.then(data => query_1.QueryClientStateResponse.decode(new binary_1.BinaryReader(data))); + } + clientStates(request = { + pagination: undefined + }) { + const data = query_1.QueryClientStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); + return promise.then(data => query_1.QueryClientStatesResponse.decode(new binary_1.BinaryReader(data))); + } + consensusState(request) { + const data = query_1.QueryConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); + return promise.then(data => query_1.QueryConsensusStateResponse.decode(new binary_1.BinaryReader(data))); + } + consensusStates(request) { + const data = query_1.QueryConsensusStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); + return promise.then(data => query_1.QueryConsensusStatesResponse.decode(new binary_1.BinaryReader(data))); + } + consensusStateHeights(request) { + const data = query_1.QueryConsensusStateHeightsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); + return promise.then(data => query_1.QueryConsensusStateHeightsResponse.decode(new binary_1.BinaryReader(data))); + } + clientStatus(request) { + const data = query_1.QueryClientStatusRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); + return promise.then(data => query_1.QueryClientStatusResponse.decode(new binary_1.BinaryReader(data))); + } + clientParams(request = {}) { + const data = query_1.QueryClientParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); + return promise.then(data => query_1.QueryClientParamsResponse.decode(new binary_1.BinaryReader(data))); + } + upgradedClientState(request = {}) { + const data = query_1.QueryUpgradedClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); + return promise.then(data => query_1.QueryUpgradedClientStateResponse.decode(new binary_1.BinaryReader(data))); + } + upgradedConsensusState(request = {}) { + const data = query_1.QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); + return promise.then(data => query_1.QueryUpgradedConsensusStateResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + clientState(request) { + return queryService.clientState(request); + }, + clientStates(request) { + return queryService.clientStates(request); + }, + consensusState(request) { + return queryService.consensusState(request); + }, + consensusStates(request) { + return queryService.consensusStates(request); + }, + consensusStateHeights(request) { + return queryService.consensusStateHeights(request); + }, + clientStatus(request) { + return queryService.clientStatus(request); + }, + clientParams(request) { + return queryService.clientParams(request); + }, + upgradedClientState(request) { + return queryService.upgradedClientState(request); + }, + upgradedConsensusState(request) { + return queryService.upgradedConsensusState(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts b/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts new file mode 100644 index 00000000..179f257f --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts @@ -0,0 +1,23 @@ +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export declare const AminoConverter: { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: string; + toAmino: (message: MsgCreateClient) => import("./tx").MsgCreateClientAmino; + fromAmino: (object: import("./tx").MsgCreateClientAmino) => MsgCreateClient; + }; + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: string; + toAmino: (message: MsgUpdateClient) => import("./tx").MsgUpdateClientAmino; + fromAmino: (object: import("./tx").MsgUpdateClientAmino) => MsgUpdateClient; + }; + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: string; + toAmino: (message: MsgUpgradeClient) => import("./tx").MsgUpgradeClientAmino; + fromAmino: (object: import("./tx").MsgUpgradeClientAmino) => MsgUpgradeClient; + }; + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: string; + toAmino: (message: MsgSubmitMisbehaviour) => import("./tx").MsgSubmitMisbehaviourAmino; + fromAmino: (object: import("./tx").MsgSubmitMisbehaviourAmino) => MsgSubmitMisbehaviour; + }; +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.amino.js b/packages/api/dist/ibc/core/client/v1/tx.amino.js new file mode 100644 index 00000000..4abd504f --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.amino.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: "cosmos-sdk/MsgCreateClient", + toAmino: tx_1.MsgCreateClient.toAmino, + fromAmino: tx_1.MsgCreateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: "cosmos-sdk/MsgUpdateClient", + toAmino: tx_1.MsgUpdateClient.toAmino, + fromAmino: tx_1.MsgUpdateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: "cosmos-sdk/MsgUpgradeClient", + toAmino: tx_1.MsgUpgradeClient.toAmino, + fromAmino: tx_1.MsgUpgradeClient.fromAmino + }, + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", + toAmino: tx_1.MsgSubmitMisbehaviour.toAmino, + fromAmino: tx_1.MsgSubmitMisbehaviour.fromAmino + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.d.ts b/packages/api/dist/ibc/core/client/v1/tx.d.ts new file mode 100644 index 00000000..f4594be5 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.d.ts @@ -0,0 +1,377 @@ +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClient { + /** light client state */ + clientState?: Any; + /** + * consensus state associated with the client that corresponds to a given + * height. + */ + consensusState?: Any; + /** signer address */ + signer: string; +} +export interface MsgCreateClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgCreateClient"; + value: Uint8Array; +} +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClientAmino { + /** light client state */ + client_state?: AnyAmino; + /** + * consensus state associated with the client that corresponds to a given + * height. + */ + consensus_state?: AnyAmino; + /** signer address */ + signer?: string; +} +export interface MsgCreateClientAminoMsg { + type: "cosmos-sdk/MsgCreateClient"; + value: MsgCreateClientAmino; +} +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClientSDKType { + client_state?: AnySDKType; + consensus_state?: AnySDKType; + signer: string; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponse { +} +export interface MsgCreateClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; + value: Uint8Array; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponseAmino { +} +export interface MsgCreateClientResponseAminoMsg { + type: "cosmos-sdk/MsgCreateClientResponse"; + value: MsgCreateClientResponseAmino; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponseSDKType { +} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClient { + /** client unique identifier */ + clientId: string; + /** client message to update the light client */ + clientMessage?: Any; + /** signer address */ + signer: string; +} +export interface MsgUpdateClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; + value: Uint8Array; +} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClientAmino { + /** client unique identifier */ + client_id?: string; + /** client message to update the light client */ + client_message?: AnyAmino; + /** signer address */ + signer?: string; +} +export interface MsgUpdateClientAminoMsg { + type: "cosmos-sdk/MsgUpdateClient"; + value: MsgUpdateClientAmino; +} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClientSDKType { + client_id: string; + client_message?: AnySDKType; + signer: string; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponse { +} +export interface MsgUpdateClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; + value: Uint8Array; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponseAmino { +} +export interface MsgUpdateClientResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateClientResponse"; + value: MsgUpdateClientResponseAmino; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponseSDKType { +} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClient { + /** client unique identifier */ + clientId: string; + /** upgraded client state */ + clientState?: Any; + /** + * upgraded consensus state, only contains enough information to serve as a + * basis of trust in update logic + */ + consensusState?: Any; + /** proof that old chain committed to new client */ + proofUpgradeClient: Uint8Array; + /** proof that old chain committed to new consensus state */ + proofUpgradeConsensusState: Uint8Array; + /** signer address */ + signer: string; +} +export interface MsgUpgradeClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; + value: Uint8Array; +} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClientAmino { + /** client unique identifier */ + client_id?: string; + /** upgraded client state */ + client_state?: AnyAmino; + /** + * upgraded consensus state, only contains enough information to serve as a + * basis of trust in update logic + */ + consensus_state?: AnyAmino; + /** proof that old chain committed to new client */ + proof_upgrade_client?: string; + /** proof that old chain committed to new consensus state */ + proof_upgrade_consensus_state?: string; + /** signer address */ + signer?: string; +} +export interface MsgUpgradeClientAminoMsg { + type: "cosmos-sdk/MsgUpgradeClient"; + value: MsgUpgradeClientAmino; +} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClientSDKType { + client_id: string; + client_state?: AnySDKType; + consensus_state?: AnySDKType; + proof_upgrade_client: Uint8Array; + proof_upgrade_consensus_state: Uint8Array; + signer: string; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponse { +} +export interface MsgUpgradeClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; + value: Uint8Array; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponseAmino { +} +export interface MsgUpgradeClientResponseAminoMsg { + type: "cosmos-sdk/MsgUpgradeClientResponse"; + value: MsgUpgradeClientResponseAmino; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponseSDKType { +} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviour { + /** client unique identifier */ + /** @deprecated */ + clientId: string; + /** misbehaviour used for freezing the light client */ + /** @deprecated */ + misbehaviour?: Any; + /** signer address */ + /** @deprecated */ + signer: string; +} +export interface MsgSubmitMisbehaviourProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; + value: Uint8Array; +} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviourAmino { + /** client unique identifier */ + /** @deprecated */ + client_id?: string; + /** misbehaviour used for freezing the light client */ + /** @deprecated */ + misbehaviour?: AnyAmino; + /** signer address */ + /** @deprecated */ + signer?: string; +} +export interface MsgSubmitMisbehaviourAminoMsg { + type: "cosmos-sdk/MsgSubmitMisbehaviour"; + value: MsgSubmitMisbehaviourAmino; +} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviourSDKType { + /** @deprecated */ + client_id: string; + /** @deprecated */ + misbehaviour?: AnySDKType; + /** @deprecated */ + signer: string; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponse { +} +export interface MsgSubmitMisbehaviourResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; + value: Uint8Array; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponseAmino { +} +export interface MsgSubmitMisbehaviourResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; + value: MsgSubmitMisbehaviourResponseAmino; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponseSDKType { +} +export declare const MsgCreateClient: { + typeUrl: string; + encode(message: MsgCreateClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient; + fromPartial(object: Partial): MsgCreateClient; + fromAmino(object: MsgCreateClientAmino): MsgCreateClient; + toAmino(message: MsgCreateClient): MsgCreateClientAmino; + fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient; + toAminoMsg(message: MsgCreateClient): MsgCreateClientAminoMsg; + fromProtoMsg(message: MsgCreateClientProtoMsg): MsgCreateClient; + toProto(message: MsgCreateClient): Uint8Array; + toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg; +}; +export declare const MsgCreateClientResponse: { + typeUrl: string; + encode(_: MsgCreateClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse; + fromPartial(_: Partial): MsgCreateClientResponse; + fromAmino(_: MsgCreateClientResponseAmino): MsgCreateClientResponse; + toAmino(_: MsgCreateClientResponse): MsgCreateClientResponseAmino; + fromAminoMsg(object: MsgCreateClientResponseAminoMsg): MsgCreateClientResponse; + toAminoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseAminoMsg; + fromProtoMsg(message: MsgCreateClientResponseProtoMsg): MsgCreateClientResponse; + toProto(message: MsgCreateClientResponse): Uint8Array; + toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg; +}; +export declare const MsgUpdateClient: { + typeUrl: string; + encode(message: MsgUpdateClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient; + fromPartial(object: Partial): MsgUpdateClient; + fromAmino(object: MsgUpdateClientAmino): MsgUpdateClient; + toAmino(message: MsgUpdateClient): MsgUpdateClientAmino; + fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient; + toAminoMsg(message: MsgUpdateClient): MsgUpdateClientAminoMsg; + fromProtoMsg(message: MsgUpdateClientProtoMsg): MsgUpdateClient; + toProto(message: MsgUpdateClient): Uint8Array; + toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg; +}; +export declare const MsgUpdateClientResponse: { + typeUrl: string; + encode(_: MsgUpdateClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse; + fromPartial(_: Partial): MsgUpdateClientResponse; + fromAmino(_: MsgUpdateClientResponseAmino): MsgUpdateClientResponse; + toAmino(_: MsgUpdateClientResponse): MsgUpdateClientResponseAmino; + fromAminoMsg(object: MsgUpdateClientResponseAminoMsg): MsgUpdateClientResponse; + toAminoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseAminoMsg; + fromProtoMsg(message: MsgUpdateClientResponseProtoMsg): MsgUpdateClientResponse; + toProto(message: MsgUpdateClientResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg; +}; +export declare const MsgUpgradeClient: { + typeUrl: string; + encode(message: MsgUpgradeClient, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient; + fromPartial(object: Partial): MsgUpgradeClient; + fromAmino(object: MsgUpgradeClientAmino): MsgUpgradeClient; + toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino; + fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient; + toAminoMsg(message: MsgUpgradeClient): MsgUpgradeClientAminoMsg; + fromProtoMsg(message: MsgUpgradeClientProtoMsg): MsgUpgradeClient; + toProto(message: MsgUpgradeClient): Uint8Array; + toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg; +}; +export declare const MsgUpgradeClientResponse: { + typeUrl: string; + encode(_: MsgUpgradeClientResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse; + fromPartial(_: Partial): MsgUpgradeClientResponse; + fromAmino(_: MsgUpgradeClientResponseAmino): MsgUpgradeClientResponse; + toAmino(_: MsgUpgradeClientResponse): MsgUpgradeClientResponseAmino; + fromAminoMsg(object: MsgUpgradeClientResponseAminoMsg): MsgUpgradeClientResponse; + toAminoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseAminoMsg; + fromProtoMsg(message: MsgUpgradeClientResponseProtoMsg): MsgUpgradeClientResponse; + toProto(message: MsgUpgradeClientResponse): Uint8Array; + toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg; +}; +export declare const MsgSubmitMisbehaviour: { + typeUrl: string; + encode(message: MsgSubmitMisbehaviour, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour; + fromPartial(object: Partial): MsgSubmitMisbehaviour; + fromAmino(object: MsgSubmitMisbehaviourAmino): MsgSubmitMisbehaviour; + toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino; + fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour; + toAminoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAminoMsg; + fromProtoMsg(message: MsgSubmitMisbehaviourProtoMsg): MsgSubmitMisbehaviour; + toProto(message: MsgSubmitMisbehaviour): Uint8Array; + toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg; +}; +export declare const MsgSubmitMisbehaviourResponse: { + typeUrl: string; + encode(_: MsgSubmitMisbehaviourResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse; + fromPartial(_: Partial): MsgSubmitMisbehaviourResponse; + fromAmino(_: MsgSubmitMisbehaviourResponseAmino): MsgSubmitMisbehaviourResponse; + toAmino(_: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAmino; + fromAminoMsg(object: MsgSubmitMisbehaviourResponseAminoMsg): MsgSubmitMisbehaviourResponse; + toAminoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAminoMsg; + fromProtoMsg(message: MsgSubmitMisbehaviourResponseProtoMsg): MsgSubmitMisbehaviourResponse; + toProto(message: MsgSubmitMisbehaviourResponse): Uint8Array; + toProtoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseProtoMsg; +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.js b/packages/api/dist/ibc/core/client/v1/tx.js new file mode 100644 index 00000000..3a884a4e --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.js @@ -0,0 +1,639 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = void 0; +//@ts-nocheck +const any_1 = require("../../../../google/protobuf/any"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseMsgCreateClient() { + return { + clientState: undefined, + consensusState: undefined, + signer: "" + }; +} +exports.MsgCreateClient = { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientState !== undefined) { + any_1.Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + any_1.Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = any_1.Any.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClient(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClient(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = any_1.Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = any_1.Any.fromAmino(object.consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateClient", + value: exports.MsgCreateClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateClient.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: exports.MsgCreateClient.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClientResponse() { + return {}; +} +exports.MsgCreateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgCreateClientResponse", + value: exports.MsgCreateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateClientResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + value: exports.MsgCreateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClient() { + return { + clientId: "", + clientMessage: undefined, + signer: "" + }; +} +exports.MsgUpdateClient = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientMessage !== undefined) { + any_1.Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMessage = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClient(); + message.clientId = object.clientId ?? ""; + message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? any_1.Any.fromPartial(object.clientMessage) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_message !== undefined && object.client_message !== null) { + message.clientMessage = any_1.Any.fromAmino(object.client_message); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_message = message.clientMessage ? any_1.Any.toAmino(message.clientMessage) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateClient", + value: exports.MsgUpdateClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClient.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: exports.MsgUpdateClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClientResponse() { + return {}; +} +exports.MsgUpdateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpdateClientResponse", + value: exports.MsgUpdateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClientResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + value: exports.MsgUpdateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClient() { + return { + clientId: "", + clientState: undefined, + consensusState: undefined, + proofUpgradeClient: new Uint8Array(), + proofUpgradeConsensusState: new Uint8Array(), + signer: "" + }; +} +exports.MsgUpgradeClient = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + any_1.Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + any_1.Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); + } + if (message.proofUpgradeClient.length !== 0) { + writer.uint32(34).bytes(message.proofUpgradeClient); + } + if (message.proofUpgradeConsensusState.length !== 0) { + writer.uint32(42).bytes(message.proofUpgradeConsensusState); + } + if (message.signer !== "") { + writer.uint32(50).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.consensusState = any_1.Any.decode(reader, reader.uint32()); + break; + case 4: + message.proofUpgradeClient = reader.bytes(); + break; + case 5: + message.proofUpgradeConsensusState = reader.bytes(); + break; + case 6: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpgradeClient(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; + message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); + message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpgradeClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = any_1.Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = any_1.Any.fromAmino(object.consensus_state); + } + if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { + message.proofUpgradeClient = (0, helpers_1.bytesFromBase64)(object.proof_upgrade_client); + } + if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { + message.proofUpgradeConsensusState = (0, helpers_1.bytesFromBase64)(object.proof_upgrade_consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; + obj.proof_upgrade_client = message.proofUpgradeClient ? (0, helpers_1.base64FromBytes)(message.proofUpgradeClient) : undefined; + obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? (0, helpers_1.base64FromBytes)(message.proofUpgradeConsensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpgradeClient.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpgradeClient", + value: exports.MsgUpgradeClient.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpgradeClient.decode(message.value); + }, + toProto(message) { + return exports.MsgUpgradeClient.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: exports.MsgUpgradeClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClientResponse() { + return {}; +} +exports.MsgUpgradeClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpgradeClientResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgUpgradeClientResponse", + value: exports.MsgUpgradeClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpgradeClientResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpgradeClientResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + value: exports.MsgUpgradeClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviour() { + return { + clientId: "", + misbehaviour: undefined, + signer: "" + }; +} +exports.MsgSubmitMisbehaviour = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.misbehaviour !== undefined) { + any_1.Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviour(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.misbehaviour = any_1.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitMisbehaviour(); + message.clientId = object.clientId ?? ""; + message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? any_1.Any.fromPartial(object.misbehaviour) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitMisbehaviour(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.misbehaviour !== undefined && object.misbehaviour !== null) { + message.misbehaviour = any_1.Any.fromAmino(object.misbehaviour); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.misbehaviour = message.misbehaviour ? any_1.Any.toAmino(message.misbehaviour) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitMisbehaviour.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviour", + value: exports.MsgSubmitMisbehaviour.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitMisbehaviour.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitMisbehaviour.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: exports.MsgSubmitMisbehaviour.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviourResponse() { + return {}; +} +exports.MsgSubmitMisbehaviourResponse = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviourResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitMisbehaviourResponse.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", + value: exports.MsgSubmitMisbehaviourResponse.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSubmitMisbehaviourResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitMisbehaviourResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + value: exports.MsgSubmitMisbehaviourResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts b/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts new file mode 100644 index 00000000..43f51b57 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts @@ -0,0 +1,60 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createClient(value: MsgCreateClient): { + typeUrl: string; + value: Uint8Array; + }; + updateClient(value: MsgUpdateClient): { + typeUrl: string; + value: Uint8Array; + }; + upgradeClient(value: MsgUpgradeClient): { + typeUrl: string; + value: Uint8Array; + }; + submitMisbehaviour(value: MsgSubmitMisbehaviour): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClient(value: MsgCreateClient): { + typeUrl: string; + value: MsgCreateClient; + }; + updateClient(value: MsgUpdateClient): { + typeUrl: string; + value: MsgUpdateClient; + }; + upgradeClient(value: MsgUpgradeClient): { + typeUrl: string; + value: MsgUpgradeClient; + }; + submitMisbehaviour(value: MsgSubmitMisbehaviour): { + typeUrl: string; + value: MsgSubmitMisbehaviour; + }; + }; + fromPartial: { + createClient(value: MsgCreateClient): { + typeUrl: string; + value: MsgCreateClient; + }; + updateClient(value: MsgUpdateClient): { + typeUrl: string; + value: MsgUpdateClient; + }; + upgradeClient(value: MsgUpgradeClient): { + typeUrl: string; + value: MsgUpgradeClient; + }; + submitMisbehaviour(value: MsgSubmitMisbehaviour): { + typeUrl: string; + value: MsgSubmitMisbehaviour; + }; + }; +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.registry.js b/packages/api/dist/ibc/core/client/v1/tx.registry.js new file mode 100644 index 00000000..7fc4fcf5 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.registry.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/ibc.core.client.v1.MsgCreateClient", tx_1.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", tx_1.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", tx_1.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", tx_1.MsgSubmitMisbehaviour]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: tx_1.MsgCreateClient.encode(value).finish() + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: tx_1.MsgUpdateClient.encode(value).finish() + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: tx_1.MsgUpgradeClient.encode(value).finish() + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: tx_1.MsgSubmitMisbehaviour.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value + }; + } + }, + fromPartial: { + createClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: tx_1.MsgCreateClient.fromPartial(value) + }; + }, + updateClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: tx_1.MsgUpdateClient.fromPartial(value) + }; + }, + upgradeClient(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: tx_1.MsgUpgradeClient.fromPartial(value) + }; + }, + submitMisbehaviour(value) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: tx_1.MsgSubmitMisbehaviour.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..d49d180d --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts @@ -0,0 +1,21 @@ +import { Rpc } from "../../../../helpers"; +import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; +/** Msg defines the ibc/client Msg service. */ +export interface Msg { + /** CreateClient defines a rpc handler method for MsgCreateClient. */ + createClient(request: MsgCreateClient): Promise; + /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ + updateClient(request: MsgUpdateClient): Promise; + /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ + upgradeClient(request: MsgUpgradeClient): Promise; + /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createClient(request: MsgCreateClient): Promise; + updateClient(request: MsgUpdateClient): Promise; + upgradeClient(request: MsgUpgradeClient): Promise; + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; +} diff --git a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js new file mode 100644 index 00000000..6840a4a2 --- /dev/null +++ b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClient = this.createClient.bind(this); + this.updateClient = this.updateClient.bind(this); + this.upgradeClient = this.upgradeClient.bind(this); + this.submitMisbehaviour = this.submitMisbehaviour.bind(this); + } + createClient(request) { + const data = tx_1.MsgCreateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); + return promise.then(data => tx_1.MsgCreateClientResponse.decode(new binary_1.BinaryReader(data))); + } + updateClient(request) { + const data = tx_1.MsgUpdateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); + return promise.then(data => tx_1.MsgUpdateClientResponse.decode(new binary_1.BinaryReader(data))); + } + upgradeClient(request) { + const data = tx_1.MsgUpgradeClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); + return promise.then(data => tx_1.MsgUpgradeClientResponse.decode(new binary_1.BinaryReader(data))); + } + submitMisbehaviour(request) { + const data = tx_1.MsgSubmitMisbehaviour.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); + return promise.then(data => tx_1.MsgSubmitMisbehaviourResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/ibc/lcd.d.ts b/packages/api/dist/ibc/lcd.d.ts new file mode 100644 index 00000000..bab8b3c1 --- /dev/null +++ b/packages/api/dist/ibc/lcd.d.ts @@ -0,0 +1,60 @@ +export declare const createLCDClient: ({ restEndpoint }: { + restEndpoint: string; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + }; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; + }; + base: { + node: { + v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; + }; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + }; + group: { + v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + mint: { + v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + params: { + v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; + }; + tx: { + v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; + }; + }; + ibc: { + applications: { + transfer: { + v1: import("./applications/transfer/v1/query.lcd").LCDQueryClient; + }; + }; + core: { + client: { + v1: import("./core/client/v1/query.lcd").LCDQueryClient; + }; + }; + }; +}>; diff --git a/packages/api/dist/ibc/lcd.js b/packages/api/dist/ibc/lcd.js new file mode 100644 index 00000000..2e03e034 --- /dev/null +++ b/packages/api/dist/ibc/lcd.js @@ -0,0 +1,124 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createLCDClient = void 0; +//@ts-nocheck +const lcd_1 = require("@cosmology/lcd"); +const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new lcd_1.LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.lcd")))).LCDQueryClient({ + requestClient + }), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.lcd")))).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + core: { + client: { + v1: new (await Promise.resolve().then(() => __importStar(require("./core/client/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + } + } + }; +}; +exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/ibc/rpc.query.d.ts b/packages/api/dist/ibc/rpc.query.d.ts new file mode 100644 index 00000000..d7b799db --- /dev/null +++ b/packages/api/dist/ibc/rpc.query.d.ts @@ -0,0 +1,183 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | HttpEndpoint; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; + }; + authz: { + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; + }; + bank: { + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; + }; + }; + base: { + node: { + v1beta1: { + config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + feegrant: { + v1beta1: { + allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; + allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; + allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; + }; + }; + gov: { + v1: { + proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; + }; + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; + }; + group: { + v1: { + groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; + groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; + votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; + groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; + tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; + }; + }; + mint: { + v1beta1: { + params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; + inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; + annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; + }; + }; + params: { + v1beta1: { + params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; + subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; + }; + }; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; + }; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; + ibc: { + applications: { + transfer: { + v1: { + denomTrace(request: import("./applications/transfer/v1/query").QueryDenomTraceRequest): Promise; + denomTraces(request?: import("./applications/transfer/v1/query").QueryDenomTracesRequest): Promise; + params(request?: import("./applications/transfer/v1/query").QueryParamsRequest): Promise; + denomHash(request: import("./applications/transfer/v1/query").QueryDenomHashRequest): Promise; + escrowAddress(request: import("./applications/transfer/v1/query").QueryEscrowAddressRequest): Promise; + }; + }; + }; + core: { + client: { + v1: { + clientState(request: import("./core/client/v1/query").QueryClientStateRequest): Promise; + clientStates(request?: import("./core/client/v1/query").QueryClientStatesRequest): Promise; + consensusState(request: import("./core/client/v1/query").QueryConsensusStateRequest): Promise; + consensusStates(request: import("./core/client/v1/query").QueryConsensusStatesRequest): Promise; + consensusStateHeights(request: import("./core/client/v1/query").QueryConsensusStateHeightsRequest): Promise; + clientStatus(request: import("./core/client/v1/query").QueryClientStatusRequest): Promise; + clientParams(request?: import("./core/client/v1/query").QueryClientParamsRequest): Promise; + upgradedClientState(request?: import("./core/client/v1/query").QueryUpgradedClientStateRequest): Promise; + upgradedConsensusState(request?: import("./core/client/v1/query").QueryUpgradedConsensusStateRequest): Promise; + }; + }; + }; + }; +}>; diff --git a/packages/api/dist/ibc/rpc.query.js b/packages/api/dist/ibc/rpc.query.js new file mode 100644 index 00000000..68cf2fd2 --- /dev/null +++ b/packages/api/dist/ibc/rpc.query.js @@ -0,0 +1,92 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCQueryClient = void 0; +//@ts-nocheck +const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); +const stargate_1 = require("@cosmjs/stargate"); +const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); + const client = new stargate_1.QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + gov: { + v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + group: { + v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + } + }, + ibc: { + applications: { + transfer: { + v1: (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/query.rpc.Query")))).createRpcQueryExtension(client) + } + }, + core: { + client: { + v1: (await Promise.resolve().then(() => __importStar(require("./core/client/v1/query.rpc.Query")))).createRpcQueryExtension(client) + } + } + } + }; +}; +exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/ibc/rpc.tx.d.ts b/packages/api/dist/ibc/rpc.tx.d.ts new file mode 100644 index 00000000..38e47694 --- /dev/null +++ b/packages/api/dist/ibc/rpc.tx.d.ts @@ -0,0 +1,47 @@ +import { Rpc } from "../helpers"; +export declare const createRPCMsgClient: ({ rpc }: { + rpc: Rpc; +}) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + group: { + v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + vesting: { + v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + ibc: { + applications: { + transfer: { + v1: import("./applications/transfer/v1/tx.rpc.msg").MsgClientImpl; + }; + }; + core: { + client: { + v1: import("./core/client/v1/tx.rpc.msg").MsgClientImpl; + }; + }; + }; +}>; diff --git a/packages/api/dist/ibc/rpc.tx.js b/packages/api/dist/ibc/rpc.tx.js new file mode 100644 index 00000000..28a9d986 --- /dev/null +++ b/packages/api/dist/ibc/rpc.tx.js @@ -0,0 +1,71 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCMsgClient = void 0; +const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + }, + core: { + client: { + v1: new (await Promise.resolve().then(() => __importStar(require("./core/client/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + } + } +}); +exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/index.d.ts b/packages/api/dist/index.d.ts new file mode 100644 index 00000000..7e24dd2b --- /dev/null +++ b/packages/api/dist/index.d.ts @@ -0,0 +1,19 @@ +/** + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 + * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain + * and run the transpile command or yarn proto command to regenerate this bundle. + */ +export * from "./amino/bundle"; +export * from "./cosmos_proto/bundle"; +export * from "./cosmos/bundle"; +export * from "./cosmos/client"; +export * from "./gogoproto/bundle"; +export * from "./ibc/bundle"; +export * from "./ibc/client"; +export * from "./regen/bundle"; +export * from "./regen/client"; +export * from "./tendermint/bundle"; +export * from "./google/bundle"; +export * from "./varint"; +export * from "./utf8"; +export * from "./binary"; diff --git a/packages/api/dist/index.js b/packages/api/dist/index.js new file mode 100644 index 00000000..191de442 --- /dev/null +++ b/packages/api/dist/index.js @@ -0,0 +1,36 @@ +"use strict"; +//@ts-nocheck +/** + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 + * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain + * and run the transpile command or yarn proto command to regenerate this bundle. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./amino/bundle"), exports); +__exportStar(require("./cosmos_proto/bundle"), exports); +__exportStar(require("./cosmos/bundle"), exports); +__exportStar(require("./cosmos/client"), exports); +__exportStar(require("./gogoproto/bundle"), exports); +__exportStar(require("./ibc/bundle"), exports); +__exportStar(require("./ibc/client"), exports); +__exportStar(require("./regen/bundle"), exports); +__exportStar(require("./regen/client"), exports); +__exportStar(require("./tendermint/bundle"), exports); +__exportStar(require("./google/bundle"), exports); +__exportStar(require("./varint"), exports); +__exportStar(require("./utf8"), exports); +__exportStar(require("./binary"), exports); diff --git a/packages/api/dist/package.json b/packages/api/dist/package.json new file mode 100644 index 00000000..6f89275e --- /dev/null +++ b/packages/api/dist/package.json @@ -0,0 +1,43 @@ +{ + "name": "@regen-network/api", + "version": "v1.0.0-alpha5", + "author": "admin@regen.network", + "description": "Javascript API for Regen Ledger", + "main": "index.js", + "module": "esm/index.js", + "types": "index.d.ts", + "license": "Apache-2.0", + "homepage": "https://github.com/regen-network/api", + "repository": { + "type": "git", + "url": "https://github.com/regen-network/regen-js" + }, + "bugs": { + "url": "https://github.com/regen-network/regen-js/issues" + }, + "publishConfig": { + "access": "public", + "directory": "dist" + }, + "scripts": { + "copy": "copyfiles -f ../../LICENSE README.md package.json dist", + "clean": "rimraf dist/**", + "prepare": "npm run build", + "codegen": "ts-node scripts/codegen.ts", + "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", + "lint": "eslint . --fix", + "test": "jest", + "test:watch": "jest --watch" + }, + "devDependencies": { + "@cosmology/telescope": "^1.5.2" + }, + "dependencies": { + "@cosmjs/encoding": "0.31.0", + "@cosmjs/math": "0.31.0", + "@cosmjs/amino": "0.31.0", + "@cosmjs/proto-signing": "0.31.0", + "@cosmjs/stargate": "0.31.0" + }, + "keywords": [] +} \ No newline at end of file diff --git a/packages/api/dist/regen/bundle.d.ts b/packages/api/dist/regen/bundle.d.ts new file mode 100644 index 00000000..ca23880b --- /dev/null +++ b/packages/api/dist/regen/bundle.d.ts @@ -0,0 +1,5330 @@ +import * as _76 from "./data/v1/events"; +import * as _77 from "./data/v1/query"; +import * as _78 from "./data/v1/state"; +import * as _79 from "./data/v1/tx"; +import * as _80 from "./data/v1/types"; +import * as _81 from "./ecocredit/basket/v1/events"; +import * as _82 from "./ecocredit/basket/v1/query"; +import * as _83 from "./ecocredit/basket/v1/state"; +import * as _84 from "./ecocredit/basket/v1/tx"; +import * as _85 from "./ecocredit/basket/v1/types"; +import * as _86 from "./ecocredit/marketplace/v1/events"; +import * as _87 from "./ecocredit/marketplace/v1/query"; +import * as _88 from "./ecocredit/marketplace/v1/state"; +import * as _89 from "./ecocredit/marketplace/v1/tx"; +import * as _90 from "./ecocredit/marketplace/v1/types"; +import * as _91 from "./ecocredit/orderbook/v1alpha1/memory"; +import * as _92 from "./ecocredit/v1/events"; +import * as _93 from "./ecocredit/v1/query"; +import * as _94 from "./ecocredit/v1/state"; +import * as _95 from "./ecocredit/v1/tx"; +import * as _96 from "./ecocredit/v1/types"; +import * as _97 from "./ecocredit/v1alpha1/events"; +import * as _98 from "./ecocredit/v1alpha1/genesis"; +import * as _99 from "./ecocredit/v1alpha1/query"; +import * as _100 from "./ecocredit/v1alpha1/tx"; +import * as _101 from "./ecocredit/v1alpha1/types"; +import * as _102 from "./intertx/v1/query"; +import * as _103 from "./intertx/v1/tx"; +import * as _199 from "./data/v1/query.lcd"; +import * as _200 from "./ecocredit/basket/v1/query.lcd"; +import * as _201 from "./ecocredit/marketplace/v1/query.lcd"; +import * as _202 from "./ecocredit/v1/query.lcd"; +import * as _203 from "./ecocredit/v1alpha1/query.lcd"; +import * as _204 from "./intertx/v1/query.lcd"; +import * as _205 from "./data/v1/query.rpc.Query"; +import * as _206 from "./ecocredit/basket/v1/query.rpc.Query"; +import * as _207 from "./ecocredit/marketplace/v1/query.rpc.Query"; +import * as _208 from "./ecocredit/v1/query.rpc.Query"; +import * as _209 from "./ecocredit/v1alpha1/query.rpc.Query"; +import * as _210 from "./intertx/v1/query.rpc.Query"; +import * as _211 from "./data/v1/tx.rpc.msg"; +import * as _212 from "./ecocredit/basket/v1/tx.rpc.msg"; +import * as _213 from "./ecocredit/marketplace/v1/tx.rpc.msg"; +import * as _214 from "./ecocredit/v1/tx.rpc.msg"; +import * as _215 from "./ecocredit/v1alpha1/tx.rpc.msg"; +import * as _216 from "./intertx/v1/tx.rpc.msg"; +export declare namespace regen { + namespace data { + const v1: { + MsgClientImpl: typeof _211.MsgClientImpl; + QueryClientImpl: typeof _205.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + anchorByIRI(request: _77.QueryAnchorByIRIRequest): Promise<_77.QueryAnchorByIRIResponse>; + anchorByHash(request: _77.QueryAnchorByHashRequest): Promise<_77.QueryAnchorByHashResponse>; + attestationsByAttestor(request: _77.QueryAttestationsByAttestorRequest): Promise<_77.QueryAttestationsByAttestorResponse>; + attestationsByIRI(request: _77.QueryAttestationsByIRIRequest): Promise<_77.QueryAttestationsByIRIResponse>; + attestationsByHash(request: _77.QueryAttestationsByHashRequest): Promise<_77.QueryAttestationsByHashResponse>; + resolver(request: _77.QueryResolverRequest): Promise<_77.QueryResolverResponse>; + resolversByIRI(request: _77.QueryResolversByIRIRequest): Promise<_77.QueryResolversByIRIResponse>; + resolversByHash(request: _77.QueryResolversByHashRequest): Promise<_77.QueryResolversByHashResponse>; + resolversByURL(request: _77.QueryResolversByURLRequest): Promise<_77.QueryResolversByURLResponse>; + convertIRIToHash(request: _77.ConvertIRIToHashRequest): Promise<_77.ConvertIRIToHashResponse>; + convertHashToIRI(request: _77.ConvertHashToIRIRequest): Promise<_77.ConvertHashToIRIResponse>; + }; + LCDQueryClient: typeof _199.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + anchor(value: _79.MsgAnchor): { + typeUrl: string; + value: Uint8Array; + }; + attest(value: _79.MsgAttest): { + typeUrl: string; + value: Uint8Array; + }; + defineResolver(value: _79.MsgDefineResolver): { + typeUrl: string; + value: Uint8Array; + }; + registerResolver(value: _79.MsgRegisterResolver): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + anchor(value: _79.MsgAnchor): { + typeUrl: string; + value: _79.MsgAnchor; + }; + attest(value: _79.MsgAttest): { + typeUrl: string; + value: _79.MsgAttest; + }; + defineResolver(value: _79.MsgDefineResolver): { + typeUrl: string; + value: _79.MsgDefineResolver; + }; + registerResolver(value: _79.MsgRegisterResolver): { + typeUrl: string; + value: _79.MsgRegisterResolver; + }; + }; + fromPartial: { + anchor(value: _79.MsgAnchor): { + typeUrl: string; + value: _79.MsgAnchor; + }; + attest(value: _79.MsgAttest): { + typeUrl: string; + value: _79.MsgAttest; + }; + defineResolver(value: _79.MsgDefineResolver): { + typeUrl: string; + value: _79.MsgDefineResolver; + }; + registerResolver(value: _79.MsgRegisterResolver): { + typeUrl: string; + value: _79.MsgRegisterResolver; + }; + }; + }; + AminoConverter: { + "/regen.data.v1.MsgAnchor": { + aminoType: string; + toAmino: (message: _79.MsgAnchor) => _79.MsgAnchorAmino; + fromAmino: (object: _79.MsgAnchorAmino) => _79.MsgAnchor; + }; + "/regen.data.v1.MsgAttest": { + aminoType: string; + toAmino: (message: _79.MsgAttest) => _79.MsgAttestAmino; + fromAmino: (object: _79.MsgAttestAmino) => _79.MsgAttest; + }; + "/regen.data.v1.MsgDefineResolver": { + aminoType: string; + toAmino: (message: _79.MsgDefineResolver) => _79.MsgDefineResolverAmino; + fromAmino: (object: _79.MsgDefineResolverAmino) => _79.MsgDefineResolver; + }; + "/regen.data.v1.MsgRegisterResolver": { + aminoType: string; + toAmino: (message: _79.MsgRegisterResolver) => _79.MsgRegisterResolverAmino; + fromAmino: (object: _79.MsgRegisterResolverAmino) => _79.MsgRegisterResolver; + }; + }; + digestAlgorithmFromJSON(object: any): _80.DigestAlgorithm; + digestAlgorithmToJSON(object: _80.DigestAlgorithm): string; + rawMediaTypeFromJSON(object: any): _80.RawMediaType; + rawMediaTypeToJSON(object: _80.RawMediaType): string; + graphCanonicalizationAlgorithmFromJSON(object: any): _80.GraphCanonicalizationAlgorithm; + graphCanonicalizationAlgorithmToJSON(object: _80.GraphCanonicalizationAlgorithm): string; + graphMerkleTreeFromJSON(object: any): _80.GraphMerkleTree; + graphMerkleTreeToJSON(object: _80.GraphMerkleTree): string; + DigestAlgorithm: typeof _80.DigestAlgorithm; + DigestAlgorithmSDKType: typeof _80.DigestAlgorithm; + DigestAlgorithmAmino: typeof _80.DigestAlgorithm; + RawMediaType: typeof _80.RawMediaType; + RawMediaTypeSDKType: typeof _80.RawMediaType; + RawMediaTypeAmino: typeof _80.RawMediaType; + GraphCanonicalizationAlgorithm: typeof _80.GraphCanonicalizationAlgorithm; + GraphCanonicalizationAlgorithmSDKType: typeof _80.GraphCanonicalizationAlgorithm; + GraphCanonicalizationAlgorithmAmino: typeof _80.GraphCanonicalizationAlgorithm; + GraphMerkleTree: typeof _80.GraphMerkleTree; + GraphMerkleTreeSDKType: typeof _80.GraphMerkleTree; + GraphMerkleTreeAmino: typeof _80.GraphMerkleTree; + ContentHash: { + typeUrl: string; + encode(message: _80.ContentHash, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash; + fromPartial(object: Partial<_80.ContentHash>): _80.ContentHash; + fromAmino(object: _80.ContentHashAmino): _80.ContentHash; + toAmino(message: _80.ContentHash): _80.ContentHashAmino; + fromAminoMsg(object: _80.ContentHashAminoMsg): _80.ContentHash; + fromProtoMsg(message: _80.ContentHashProtoMsg): _80.ContentHash; + toProto(message: _80.ContentHash): Uint8Array; + toProtoMsg(message: _80.ContentHash): _80.ContentHashProtoMsg; + }; + ContentHash_Raw: { + typeUrl: string; + encode(message: _80.ContentHash_Raw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash_Raw; + fromPartial(object: Partial<_80.ContentHash_Raw>): _80.ContentHash_Raw; + fromAmino(object: _80.ContentHash_RawAmino): _80.ContentHash_Raw; + toAmino(message: _80.ContentHash_Raw): _80.ContentHash_RawAmino; + fromAminoMsg(object: _80.ContentHash_RawAminoMsg): _80.ContentHash_Raw; + fromProtoMsg(message: _80.ContentHash_RawProtoMsg): _80.ContentHash_Raw; + toProto(message: _80.ContentHash_Raw): Uint8Array; + toProtoMsg(message: _80.ContentHash_Raw): _80.ContentHash_RawProtoMsg; + }; + ContentHash_Graph: { + typeUrl: string; + encode(message: _80.ContentHash_Graph, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash_Graph; + fromPartial(object: Partial<_80.ContentHash_Graph>): _80.ContentHash_Graph; + fromAmino(object: _80.ContentHash_GraphAmino): _80.ContentHash_Graph; + toAmino(message: _80.ContentHash_Graph): _80.ContentHash_GraphAmino; + fromAminoMsg(object: _80.ContentHash_GraphAminoMsg): _80.ContentHash_Graph; + fromProtoMsg(message: _80.ContentHash_GraphProtoMsg): _80.ContentHash_Graph; + toProto(message: _80.ContentHash_Graph): Uint8Array; + toProtoMsg(message: _80.ContentHash_Graph): _80.ContentHash_GraphProtoMsg; + }; + ContentHashes: { + typeUrl: string; + encode(message: _80.ContentHashes, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHashes; + fromPartial(object: Partial<_80.ContentHashes>): _80.ContentHashes; + fromAmino(object: _80.ContentHashesAmino): _80.ContentHashes; + toAmino(message: _80.ContentHashes): _80.ContentHashesAmino; + fromAminoMsg(object: _80.ContentHashesAminoMsg): _80.ContentHashes; + fromProtoMsg(message: _80.ContentHashesProtoMsg): _80.ContentHashes; + toProto(message: _80.ContentHashes): Uint8Array; + toProtoMsg(message: _80.ContentHashes): _80.ContentHashesProtoMsg; + }; + MsgAnchor: { + typeUrl: string; + encode(message: _79.MsgAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAnchor; + fromPartial(object: Partial<_79.MsgAnchor>): _79.MsgAnchor; + fromAmino(object: _79.MsgAnchorAmino): _79.MsgAnchor; + toAmino(message: _79.MsgAnchor): _79.MsgAnchorAmino; + fromAminoMsg(object: _79.MsgAnchorAminoMsg): _79.MsgAnchor; + toAminoMsg(message: _79.MsgAnchor): _79.MsgAnchorAminoMsg; + fromProtoMsg(message: _79.MsgAnchorProtoMsg): _79.MsgAnchor; + toProto(message: _79.MsgAnchor): Uint8Array; + toProtoMsg(message: _79.MsgAnchor): _79.MsgAnchorProtoMsg; + }; + MsgAnchorResponse: { + typeUrl: string; + encode(message: _79.MsgAnchorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAnchorResponse; + fromPartial(object: Partial<_79.MsgAnchorResponse>): _79.MsgAnchorResponse; + fromAmino(object: _79.MsgAnchorResponseAmino): _79.MsgAnchorResponse; + toAmino(message: _79.MsgAnchorResponse): _79.MsgAnchorResponseAmino; + fromAminoMsg(object: _79.MsgAnchorResponseAminoMsg): _79.MsgAnchorResponse; + fromProtoMsg(message: _79.MsgAnchorResponseProtoMsg): _79.MsgAnchorResponse; + toProto(message: _79.MsgAnchorResponse): Uint8Array; + toProtoMsg(message: _79.MsgAnchorResponse): _79.MsgAnchorResponseProtoMsg; + }; + MsgAttest: { + typeUrl: string; + encode(message: _79.MsgAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAttest; + fromPartial(object: Partial<_79.MsgAttest>): _79.MsgAttest; + fromAmino(object: _79.MsgAttestAmino): _79.MsgAttest; + toAmino(message: _79.MsgAttest): _79.MsgAttestAmino; + fromAminoMsg(object: _79.MsgAttestAminoMsg): _79.MsgAttest; + toAminoMsg(message: _79.MsgAttest): _79.MsgAttestAminoMsg; + fromProtoMsg(message: _79.MsgAttestProtoMsg): _79.MsgAttest; + toProto(message: _79.MsgAttest): Uint8Array; + toProtoMsg(message: _79.MsgAttest): _79.MsgAttestProtoMsg; + }; + MsgAttestResponse: { + typeUrl: string; + encode(message: _79.MsgAttestResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAttestResponse; + fromPartial(object: Partial<_79.MsgAttestResponse>): _79.MsgAttestResponse; + fromAmino(object: _79.MsgAttestResponseAmino): _79.MsgAttestResponse; + toAmino(message: _79.MsgAttestResponse): _79.MsgAttestResponseAmino; + fromAminoMsg(object: _79.MsgAttestResponseAminoMsg): _79.MsgAttestResponse; + fromProtoMsg(message: _79.MsgAttestResponseProtoMsg): _79.MsgAttestResponse; + toProto(message: _79.MsgAttestResponse): Uint8Array; + toProtoMsg(message: _79.MsgAttestResponse): _79.MsgAttestResponseProtoMsg; + }; + MsgDefineResolver: { + typeUrl: string; + encode(message: _79.MsgDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgDefineResolver; + fromPartial(object: Partial<_79.MsgDefineResolver>): _79.MsgDefineResolver; + fromAmino(object: _79.MsgDefineResolverAmino): _79.MsgDefineResolver; + toAmino(message: _79.MsgDefineResolver): _79.MsgDefineResolverAmino; + fromAminoMsg(object: _79.MsgDefineResolverAminoMsg): _79.MsgDefineResolver; + toAminoMsg(message: _79.MsgDefineResolver): _79.MsgDefineResolverAminoMsg; + fromProtoMsg(message: _79.MsgDefineResolverProtoMsg): _79.MsgDefineResolver; + toProto(message: _79.MsgDefineResolver): Uint8Array; + toProtoMsg(message: _79.MsgDefineResolver): _79.MsgDefineResolverProtoMsg; + }; + MsgDefineResolverResponse: { + typeUrl: string; + encode(message: _79.MsgDefineResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgDefineResolverResponse; + fromPartial(object: Partial<_79.MsgDefineResolverResponse>): _79.MsgDefineResolverResponse; + fromAmino(object: _79.MsgDefineResolverResponseAmino): _79.MsgDefineResolverResponse; + toAmino(message: _79.MsgDefineResolverResponse): _79.MsgDefineResolverResponseAmino; + fromAminoMsg(object: _79.MsgDefineResolverResponseAminoMsg): _79.MsgDefineResolverResponse; + fromProtoMsg(message: _79.MsgDefineResolverResponseProtoMsg): _79.MsgDefineResolverResponse; + toProto(message: _79.MsgDefineResolverResponse): Uint8Array; + toProtoMsg(message: _79.MsgDefineResolverResponse): _79.MsgDefineResolverResponseProtoMsg; + }; + MsgRegisterResolver: { + typeUrl: string; + encode(message: _79.MsgRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgRegisterResolver; + fromPartial(object: Partial<_79.MsgRegisterResolver>): _79.MsgRegisterResolver; + fromAmino(object: _79.MsgRegisterResolverAmino): _79.MsgRegisterResolver; + toAmino(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverAmino; + fromAminoMsg(object: _79.MsgRegisterResolverAminoMsg): _79.MsgRegisterResolver; + toAminoMsg(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverAminoMsg; + fromProtoMsg(message: _79.MsgRegisterResolverProtoMsg): _79.MsgRegisterResolver; + toProto(message: _79.MsgRegisterResolver): Uint8Array; + toProtoMsg(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverProtoMsg; + }; + MsgRegisterResolverResponse: { + typeUrl: string; + encode(_: _79.MsgRegisterResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgRegisterResolverResponse; + fromPartial(_: Partial<_79.MsgRegisterResolverResponse>): _79.MsgRegisterResolverResponse; + fromAmino(_: _79.MsgRegisterResolverResponseAmino): _79.MsgRegisterResolverResponse; + toAmino(_: _79.MsgRegisterResolverResponse): _79.MsgRegisterResolverResponseAmino; + fromAminoMsg(object: _79.MsgRegisterResolverResponseAminoMsg): _79.MsgRegisterResolverResponse; + fromProtoMsg(message: _79.MsgRegisterResolverResponseProtoMsg): _79.MsgRegisterResolverResponse; + toProto(message: _79.MsgRegisterResolverResponse): Uint8Array; + toProtoMsg(message: _79.MsgRegisterResolverResponse): _79.MsgRegisterResolverResponseProtoMsg; + }; + DataID: { + typeUrl: string; + encode(message: _78.DataID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataID; + fromPartial(object: Partial<_78.DataID>): _78.DataID; + fromAmino(object: _78.DataIDAmino): _78.DataID; + toAmino(message: _78.DataID): _78.DataIDAmino; + fromAminoMsg(object: _78.DataIDAminoMsg): _78.DataID; + fromProtoMsg(message: _78.DataIDProtoMsg): _78.DataID; + toProto(message: _78.DataID): Uint8Array; + toProtoMsg(message: _78.DataID): _78.DataIDProtoMsg; + }; + DataAnchor: { + typeUrl: string; + encode(message: _78.DataAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataAnchor; + fromPartial(object: Partial<_78.DataAnchor>): _78.DataAnchor; + fromAmino(object: _78.DataAnchorAmino): _78.DataAnchor; + toAmino(message: _78.DataAnchor): _78.DataAnchorAmino; + fromAminoMsg(object: _78.DataAnchorAminoMsg): _78.DataAnchor; + fromProtoMsg(message: _78.DataAnchorProtoMsg): _78.DataAnchor; + toProto(message: _78.DataAnchor): Uint8Array; + toProtoMsg(message: _78.DataAnchor): _78.DataAnchorProtoMsg; + }; + DataAttestor: { + typeUrl: string; + encode(message: _78.DataAttestor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataAttestor; + fromPartial(object: Partial<_78.DataAttestor>): _78.DataAttestor; + fromAmino(object: _78.DataAttestorAmino): _78.DataAttestor; + toAmino(message: _78.DataAttestor): _78.DataAttestorAmino; + fromAminoMsg(object: _78.DataAttestorAminoMsg): _78.DataAttestor; + fromProtoMsg(message: _78.DataAttestorProtoMsg): _78.DataAttestor; + toProto(message: _78.DataAttestor): Uint8Array; + toProtoMsg(message: _78.DataAttestor): _78.DataAttestorProtoMsg; + }; + Resolver: { + typeUrl: string; + encode(message: _78.Resolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.Resolver; + fromPartial(object: Partial<_78.Resolver>): _78.Resolver; + fromAmino(object: _78.ResolverAmino): _78.Resolver; + toAmino(message: _78.Resolver): _78.ResolverAmino; + fromAminoMsg(object: _78.ResolverAminoMsg): _78.Resolver; + fromProtoMsg(message: _78.ResolverProtoMsg): _78.Resolver; + toProto(message: _78.Resolver): Uint8Array; + toProtoMsg(message: _78.Resolver): _78.ResolverProtoMsg; + }; + DataResolver: { + typeUrl: string; + encode(message: _78.DataResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataResolver; + fromPartial(object: Partial<_78.DataResolver>): _78.DataResolver; + fromAmino(object: _78.DataResolverAmino): _78.DataResolver; + toAmino(message: _78.DataResolver): _78.DataResolverAmino; + fromAminoMsg(object: _78.DataResolverAminoMsg): _78.DataResolver; + fromProtoMsg(message: _78.DataResolverProtoMsg): _78.DataResolver; + toProto(message: _78.DataResolver): Uint8Array; + toProtoMsg(message: _78.DataResolver): _78.DataResolverProtoMsg; + }; + QueryAnchorByIRIRequest: { + typeUrl: string; + encode(message: _77.QueryAnchorByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByIRIRequest; + fromPartial(object: Partial<_77.QueryAnchorByIRIRequest>): _77.QueryAnchorByIRIRequest; + fromAmino(object: _77.QueryAnchorByIRIRequestAmino): _77.QueryAnchorByIRIRequest; + toAmino(message: _77.QueryAnchorByIRIRequest): _77.QueryAnchorByIRIRequestAmino; + fromAminoMsg(object: _77.QueryAnchorByIRIRequestAminoMsg): _77.QueryAnchorByIRIRequest; + fromProtoMsg(message: _77.QueryAnchorByIRIRequestProtoMsg): _77.QueryAnchorByIRIRequest; + toProto(message: _77.QueryAnchorByIRIRequest): Uint8Array; + toProtoMsg(message: _77.QueryAnchorByIRIRequest): _77.QueryAnchorByIRIRequestProtoMsg; + }; + QueryAnchorByIRIResponse: { + typeUrl: string; + encode(message: _77.QueryAnchorByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByIRIResponse; + fromPartial(object: Partial<_77.QueryAnchorByIRIResponse>): _77.QueryAnchorByIRIResponse; + fromAmino(object: _77.QueryAnchorByIRIResponseAmino): _77.QueryAnchorByIRIResponse; + toAmino(message: _77.QueryAnchorByIRIResponse): _77.QueryAnchorByIRIResponseAmino; + fromAminoMsg(object: _77.QueryAnchorByIRIResponseAminoMsg): _77.QueryAnchorByIRIResponse; + fromProtoMsg(message: _77.QueryAnchorByIRIResponseProtoMsg): _77.QueryAnchorByIRIResponse; + toProto(message: _77.QueryAnchorByIRIResponse): Uint8Array; + toProtoMsg(message: _77.QueryAnchorByIRIResponse): _77.QueryAnchorByIRIResponseProtoMsg; + }; + QueryAnchorByHashRequest: { + typeUrl: string; + encode(message: _77.QueryAnchorByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByHashRequest; + fromPartial(object: Partial<_77.QueryAnchorByHashRequest>): _77.QueryAnchorByHashRequest; + fromAmino(object: _77.QueryAnchorByHashRequestAmino): _77.QueryAnchorByHashRequest; + toAmino(message: _77.QueryAnchorByHashRequest): _77.QueryAnchorByHashRequestAmino; + fromAminoMsg(object: _77.QueryAnchorByHashRequestAminoMsg): _77.QueryAnchorByHashRequest; + fromProtoMsg(message: _77.QueryAnchorByHashRequestProtoMsg): _77.QueryAnchorByHashRequest; + toProto(message: _77.QueryAnchorByHashRequest): Uint8Array; + toProtoMsg(message: _77.QueryAnchorByHashRequest): _77.QueryAnchorByHashRequestProtoMsg; + }; + QueryAnchorByHashResponse: { + typeUrl: string; + encode(message: _77.QueryAnchorByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByHashResponse; + fromPartial(object: Partial<_77.QueryAnchorByHashResponse>): _77.QueryAnchorByHashResponse; + fromAmino(object: _77.QueryAnchorByHashResponseAmino): _77.QueryAnchorByHashResponse; + toAmino(message: _77.QueryAnchorByHashResponse): _77.QueryAnchorByHashResponseAmino; + fromAminoMsg(object: _77.QueryAnchorByHashResponseAminoMsg): _77.QueryAnchorByHashResponse; + fromProtoMsg(message: _77.QueryAnchorByHashResponseProtoMsg): _77.QueryAnchorByHashResponse; + toProto(message: _77.QueryAnchorByHashResponse): Uint8Array; + toProtoMsg(message: _77.QueryAnchorByHashResponse): _77.QueryAnchorByHashResponseProtoMsg; + }; + QueryAttestationsByAttestorRequest: { + typeUrl: string; + encode(message: _77.QueryAttestationsByAttestorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByAttestorRequest; + fromPartial(object: Partial<_77.QueryAttestationsByAttestorRequest>): _77.QueryAttestationsByAttestorRequest; + fromAmino(object: _77.QueryAttestationsByAttestorRequestAmino): _77.QueryAttestationsByAttestorRequest; + toAmino(message: _77.QueryAttestationsByAttestorRequest): _77.QueryAttestationsByAttestorRequestAmino; + fromAminoMsg(object: _77.QueryAttestationsByAttestorRequestAminoMsg): _77.QueryAttestationsByAttestorRequest; + fromProtoMsg(message: _77.QueryAttestationsByAttestorRequestProtoMsg): _77.QueryAttestationsByAttestorRequest; + toProto(message: _77.QueryAttestationsByAttestorRequest): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByAttestorRequest): _77.QueryAttestationsByAttestorRequestProtoMsg; + }; + QueryAttestationsByAttestorResponse: { + typeUrl: string; + encode(message: _77.QueryAttestationsByAttestorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByAttestorResponse; + fromPartial(object: Partial<_77.QueryAttestationsByAttestorResponse>): _77.QueryAttestationsByAttestorResponse; + fromAmino(object: _77.QueryAttestationsByAttestorResponseAmino): _77.QueryAttestationsByAttestorResponse; + toAmino(message: _77.QueryAttestationsByAttestorResponse): _77.QueryAttestationsByAttestorResponseAmino; + fromAminoMsg(object: _77.QueryAttestationsByAttestorResponseAminoMsg): _77.QueryAttestationsByAttestorResponse; + fromProtoMsg(message: _77.QueryAttestationsByAttestorResponseProtoMsg): _77.QueryAttestationsByAttestorResponse; + toProto(message: _77.QueryAttestationsByAttestorResponse): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByAttestorResponse): _77.QueryAttestationsByAttestorResponseProtoMsg; + }; + QueryAttestationsByIRIRequest: { + typeUrl: string; + encode(message: _77.QueryAttestationsByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByIRIRequest; + fromPartial(object: Partial<_77.QueryAttestationsByIRIRequest>): _77.QueryAttestationsByIRIRequest; + fromAmino(object: _77.QueryAttestationsByIRIRequestAmino): _77.QueryAttestationsByIRIRequest; + toAmino(message: _77.QueryAttestationsByIRIRequest): _77.QueryAttestationsByIRIRequestAmino; + fromAminoMsg(object: _77.QueryAttestationsByIRIRequestAminoMsg): _77.QueryAttestationsByIRIRequest; + fromProtoMsg(message: _77.QueryAttestationsByIRIRequestProtoMsg): _77.QueryAttestationsByIRIRequest; + toProto(message: _77.QueryAttestationsByIRIRequest): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByIRIRequest): _77.QueryAttestationsByIRIRequestProtoMsg; + }; + QueryAttestationsByIRIResponse: { + typeUrl: string; + encode(message: _77.QueryAttestationsByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByIRIResponse; + fromPartial(object: Partial<_77.QueryAttestationsByIRIResponse>): _77.QueryAttestationsByIRIResponse; + fromAmino(object: _77.QueryAttestationsByIRIResponseAmino): _77.QueryAttestationsByIRIResponse; + toAmino(message: _77.QueryAttestationsByIRIResponse): _77.QueryAttestationsByIRIResponseAmino; + fromAminoMsg(object: _77.QueryAttestationsByIRIResponseAminoMsg): _77.QueryAttestationsByIRIResponse; + fromProtoMsg(message: _77.QueryAttestationsByIRIResponseProtoMsg): _77.QueryAttestationsByIRIResponse; + toProto(message: _77.QueryAttestationsByIRIResponse): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByIRIResponse): _77.QueryAttestationsByIRIResponseProtoMsg; + }; + QueryAttestationsByHashRequest: { + typeUrl: string; + encode(message: _77.QueryAttestationsByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByHashRequest; + fromPartial(object: Partial<_77.QueryAttestationsByHashRequest>): _77.QueryAttestationsByHashRequest; + fromAmino(object: _77.QueryAttestationsByHashRequestAmino): _77.QueryAttestationsByHashRequest; + toAmino(message: _77.QueryAttestationsByHashRequest): _77.QueryAttestationsByHashRequestAmino; + fromAminoMsg(object: _77.QueryAttestationsByHashRequestAminoMsg): _77.QueryAttestationsByHashRequest; + fromProtoMsg(message: _77.QueryAttestationsByHashRequestProtoMsg): _77.QueryAttestationsByHashRequest; + toProto(message: _77.QueryAttestationsByHashRequest): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByHashRequest): _77.QueryAttestationsByHashRequestProtoMsg; + }; + QueryAttestationsByHashResponse: { + typeUrl: string; + encode(message: _77.QueryAttestationsByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByHashResponse; + fromPartial(object: Partial<_77.QueryAttestationsByHashResponse>): _77.QueryAttestationsByHashResponse; + fromAmino(object: _77.QueryAttestationsByHashResponseAmino): _77.QueryAttestationsByHashResponse; + toAmino(message: _77.QueryAttestationsByHashResponse): _77.QueryAttestationsByHashResponseAmino; + fromAminoMsg(object: _77.QueryAttestationsByHashResponseAminoMsg): _77.QueryAttestationsByHashResponse; + fromProtoMsg(message: _77.QueryAttestationsByHashResponseProtoMsg): _77.QueryAttestationsByHashResponse; + toProto(message: _77.QueryAttestationsByHashResponse): Uint8Array; + toProtoMsg(message: _77.QueryAttestationsByHashResponse): _77.QueryAttestationsByHashResponseProtoMsg; + }; + QueryResolverRequest: { + typeUrl: string; + encode(message: _77.QueryResolverRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolverRequest; + fromPartial(object: Partial<_77.QueryResolverRequest>): _77.QueryResolverRequest; + fromAmino(object: _77.QueryResolverRequestAmino): _77.QueryResolverRequest; + toAmino(message: _77.QueryResolverRequest): _77.QueryResolverRequestAmino; + fromAminoMsg(object: _77.QueryResolverRequestAminoMsg): _77.QueryResolverRequest; + fromProtoMsg(message: _77.QueryResolverRequestProtoMsg): _77.QueryResolverRequest; + toProto(message: _77.QueryResolverRequest): Uint8Array; + toProtoMsg(message: _77.QueryResolverRequest): _77.QueryResolverRequestProtoMsg; + }; + QueryResolverResponse: { + typeUrl: string; + encode(message: _77.QueryResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolverResponse; + fromPartial(object: Partial<_77.QueryResolverResponse>): _77.QueryResolverResponse; + fromAmino(object: _77.QueryResolverResponseAmino): _77.QueryResolverResponse; + toAmino(message: _77.QueryResolverResponse): _77.QueryResolverResponseAmino; + fromAminoMsg(object: _77.QueryResolverResponseAminoMsg): _77.QueryResolverResponse; + fromProtoMsg(message: _77.QueryResolverResponseProtoMsg): _77.QueryResolverResponse; + toProto(message: _77.QueryResolverResponse): Uint8Array; + toProtoMsg(message: _77.QueryResolverResponse): _77.QueryResolverResponseProtoMsg; + }; + QueryResolversByIRIRequest: { + typeUrl: string; + encode(message: _77.QueryResolversByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByIRIRequest; + fromPartial(object: Partial<_77.QueryResolversByIRIRequest>): _77.QueryResolversByIRIRequest; + fromAmino(object: _77.QueryResolversByIRIRequestAmino): _77.QueryResolversByIRIRequest; + toAmino(message: _77.QueryResolversByIRIRequest): _77.QueryResolversByIRIRequestAmino; + fromAminoMsg(object: _77.QueryResolversByIRIRequestAminoMsg): _77.QueryResolversByIRIRequest; + fromProtoMsg(message: _77.QueryResolversByIRIRequestProtoMsg): _77.QueryResolversByIRIRequest; + toProto(message: _77.QueryResolversByIRIRequest): Uint8Array; + toProtoMsg(message: _77.QueryResolversByIRIRequest): _77.QueryResolversByIRIRequestProtoMsg; + }; + QueryResolversByIRIResponse: { + typeUrl: string; + encode(message: _77.QueryResolversByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByIRIResponse; + fromPartial(object: Partial<_77.QueryResolversByIRIResponse>): _77.QueryResolversByIRIResponse; + fromAmino(object: _77.QueryResolversByIRIResponseAmino): _77.QueryResolversByIRIResponse; + toAmino(message: _77.QueryResolversByIRIResponse): _77.QueryResolversByIRIResponseAmino; + fromAminoMsg(object: _77.QueryResolversByIRIResponseAminoMsg): _77.QueryResolversByIRIResponse; + fromProtoMsg(message: _77.QueryResolversByIRIResponseProtoMsg): _77.QueryResolversByIRIResponse; + toProto(message: _77.QueryResolversByIRIResponse): Uint8Array; + toProtoMsg(message: _77.QueryResolversByIRIResponse): _77.QueryResolversByIRIResponseProtoMsg; + }; + QueryResolversByHashRequest: { + typeUrl: string; + encode(message: _77.QueryResolversByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByHashRequest; + fromPartial(object: Partial<_77.QueryResolversByHashRequest>): _77.QueryResolversByHashRequest; + fromAmino(object: _77.QueryResolversByHashRequestAmino): _77.QueryResolversByHashRequest; + toAmino(message: _77.QueryResolversByHashRequest): _77.QueryResolversByHashRequestAmino; + fromAminoMsg(object: _77.QueryResolversByHashRequestAminoMsg): _77.QueryResolversByHashRequest; + fromProtoMsg(message: _77.QueryResolversByHashRequestProtoMsg): _77.QueryResolversByHashRequest; + toProto(message: _77.QueryResolversByHashRequest): Uint8Array; + toProtoMsg(message: _77.QueryResolversByHashRequest): _77.QueryResolversByHashRequestProtoMsg; + }; + QueryResolversByHashResponse: { + typeUrl: string; + encode(message: _77.QueryResolversByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByHashResponse; + fromPartial(object: Partial<_77.QueryResolversByHashResponse>): _77.QueryResolversByHashResponse; + fromAmino(object: _77.QueryResolversByHashResponseAmino): _77.QueryResolversByHashResponse; + toAmino(message: _77.QueryResolversByHashResponse): _77.QueryResolversByHashResponseAmino; + fromAminoMsg(object: _77.QueryResolversByHashResponseAminoMsg): _77.QueryResolversByHashResponse; + fromProtoMsg(message: _77.QueryResolversByHashResponseProtoMsg): _77.QueryResolversByHashResponse; + toProto(message: _77.QueryResolversByHashResponse): Uint8Array; + toProtoMsg(message: _77.QueryResolversByHashResponse): _77.QueryResolversByHashResponseProtoMsg; + }; + QueryResolversByURLRequest: { + typeUrl: string; + encode(message: _77.QueryResolversByURLRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByURLRequest; + fromPartial(object: Partial<_77.QueryResolversByURLRequest>): _77.QueryResolversByURLRequest; + fromAmino(object: _77.QueryResolversByURLRequestAmino): _77.QueryResolversByURLRequest; + toAmino(message: _77.QueryResolversByURLRequest): _77.QueryResolversByURLRequestAmino; + fromAminoMsg(object: _77.QueryResolversByURLRequestAminoMsg): _77.QueryResolversByURLRequest; + fromProtoMsg(message: _77.QueryResolversByURLRequestProtoMsg): _77.QueryResolversByURLRequest; + toProto(message: _77.QueryResolversByURLRequest): Uint8Array; + toProtoMsg(message: _77.QueryResolversByURLRequest): _77.QueryResolversByURLRequestProtoMsg; + }; + QueryResolversByURLResponse: { + typeUrl: string; + encode(message: _77.QueryResolversByURLResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByURLResponse; + fromPartial(object: Partial<_77.QueryResolversByURLResponse>): _77.QueryResolversByURLResponse; + fromAmino(object: _77.QueryResolversByURLResponseAmino): _77.QueryResolversByURLResponse; + toAmino(message: _77.QueryResolversByURLResponse): _77.QueryResolversByURLResponseAmino; + fromAminoMsg(object: _77.QueryResolversByURLResponseAminoMsg): _77.QueryResolversByURLResponse; + fromProtoMsg(message: _77.QueryResolversByURLResponseProtoMsg): _77.QueryResolversByURLResponse; + toProto(message: _77.QueryResolversByURLResponse): Uint8Array; + toProtoMsg(message: _77.QueryResolversByURLResponse): _77.QueryResolversByURLResponseProtoMsg; + }; + ConvertIRIToHashRequest: { + typeUrl: string; + encode(message: _77.ConvertIRIToHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertIRIToHashRequest; + fromPartial(object: Partial<_77.ConvertIRIToHashRequest>): _77.ConvertIRIToHashRequest; + fromAmino(object: _77.ConvertIRIToHashRequestAmino): _77.ConvertIRIToHashRequest; + toAmino(message: _77.ConvertIRIToHashRequest): _77.ConvertIRIToHashRequestAmino; + fromAminoMsg(object: _77.ConvertIRIToHashRequestAminoMsg): _77.ConvertIRIToHashRequest; + fromProtoMsg(message: _77.ConvertIRIToHashRequestProtoMsg): _77.ConvertIRIToHashRequest; + toProto(message: _77.ConvertIRIToHashRequest): Uint8Array; + toProtoMsg(message: _77.ConvertIRIToHashRequest): _77.ConvertIRIToHashRequestProtoMsg; + }; + ConvertIRIToHashResponse: { + typeUrl: string; + encode(message: _77.ConvertIRIToHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertIRIToHashResponse; + fromPartial(object: Partial<_77.ConvertIRIToHashResponse>): _77.ConvertIRIToHashResponse; + fromAmino(object: _77.ConvertIRIToHashResponseAmino): _77.ConvertIRIToHashResponse; + toAmino(message: _77.ConvertIRIToHashResponse): _77.ConvertIRIToHashResponseAmino; + fromAminoMsg(object: _77.ConvertIRIToHashResponseAminoMsg): _77.ConvertIRIToHashResponse; + fromProtoMsg(message: _77.ConvertIRIToHashResponseProtoMsg): _77.ConvertIRIToHashResponse; + toProto(message: _77.ConvertIRIToHashResponse): Uint8Array; + toProtoMsg(message: _77.ConvertIRIToHashResponse): _77.ConvertIRIToHashResponseProtoMsg; + }; + ConvertHashToIRIRequest: { + typeUrl: string; + encode(message: _77.ConvertHashToIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertHashToIRIRequest; + fromPartial(object: Partial<_77.ConvertHashToIRIRequest>): _77.ConvertHashToIRIRequest; + fromAmino(object: _77.ConvertHashToIRIRequestAmino): _77.ConvertHashToIRIRequest; + toAmino(message: _77.ConvertHashToIRIRequest): _77.ConvertHashToIRIRequestAmino; + fromAminoMsg(object: _77.ConvertHashToIRIRequestAminoMsg): _77.ConvertHashToIRIRequest; + fromProtoMsg(message: _77.ConvertHashToIRIRequestProtoMsg): _77.ConvertHashToIRIRequest; + toProto(message: _77.ConvertHashToIRIRequest): Uint8Array; + toProtoMsg(message: _77.ConvertHashToIRIRequest): _77.ConvertHashToIRIRequestProtoMsg; + }; + ConvertHashToIRIResponse: { + typeUrl: string; + encode(message: _77.ConvertHashToIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertHashToIRIResponse; + fromPartial(object: Partial<_77.ConvertHashToIRIResponse>): _77.ConvertHashToIRIResponse; + fromAmino(object: _77.ConvertHashToIRIResponseAmino): _77.ConvertHashToIRIResponse; + toAmino(message: _77.ConvertHashToIRIResponse): _77.ConvertHashToIRIResponseAmino; + fromAminoMsg(object: _77.ConvertHashToIRIResponseAminoMsg): _77.ConvertHashToIRIResponse; + fromProtoMsg(message: _77.ConvertHashToIRIResponseProtoMsg): _77.ConvertHashToIRIResponse; + toProto(message: _77.ConvertHashToIRIResponse): Uint8Array; + toProtoMsg(message: _77.ConvertHashToIRIResponse): _77.ConvertHashToIRIResponseProtoMsg; + }; + AnchorInfo: { + typeUrl: string; + encode(message: _77.AnchorInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.AnchorInfo; + fromPartial(object: Partial<_77.AnchorInfo>): _77.AnchorInfo; + fromAmino(object: _77.AnchorInfoAmino): _77.AnchorInfo; + toAmino(message: _77.AnchorInfo): _77.AnchorInfoAmino; + fromAminoMsg(object: _77.AnchorInfoAminoMsg): _77.AnchorInfo; + fromProtoMsg(message: _77.AnchorInfoProtoMsg): _77.AnchorInfo; + toProto(message: _77.AnchorInfo): Uint8Array; + toProtoMsg(message: _77.AnchorInfo): _77.AnchorInfoProtoMsg; + }; + AttestationInfo: { + typeUrl: string; + encode(message: _77.AttestationInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.AttestationInfo; + fromPartial(object: Partial<_77.AttestationInfo>): _77.AttestationInfo; + fromAmino(object: _77.AttestationInfoAmino): _77.AttestationInfo; + toAmino(message: _77.AttestationInfo): _77.AttestationInfoAmino; + fromAminoMsg(object: _77.AttestationInfoAminoMsg): _77.AttestationInfo; + fromProtoMsg(message: _77.AttestationInfoProtoMsg): _77.AttestationInfo; + toProto(message: _77.AttestationInfo): Uint8Array; + toProtoMsg(message: _77.AttestationInfo): _77.AttestationInfoProtoMsg; + }; + ResolverInfo: { + typeUrl: string; + encode(message: _77.ResolverInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ResolverInfo; + fromPartial(object: Partial<_77.ResolverInfo>): _77.ResolverInfo; + fromAmino(object: _77.ResolverInfoAmino): _77.ResolverInfo; + toAmino(message: _77.ResolverInfo): _77.ResolverInfoAmino; + fromAminoMsg(object: _77.ResolverInfoAminoMsg): _77.ResolverInfo; + fromProtoMsg(message: _77.ResolverInfoProtoMsg): _77.ResolverInfo; + toProto(message: _77.ResolverInfo): Uint8Array; + toProtoMsg(message: _77.ResolverInfo): _77.ResolverInfoProtoMsg; + }; + EventAnchor: { + typeUrl: string; + encode(message: _76.EventAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventAnchor; + fromPartial(object: Partial<_76.EventAnchor>): _76.EventAnchor; + fromAmino(object: _76.EventAnchorAmino): _76.EventAnchor; + toAmino(message: _76.EventAnchor): _76.EventAnchorAmino; + fromAminoMsg(object: _76.EventAnchorAminoMsg): _76.EventAnchor; + fromProtoMsg(message: _76.EventAnchorProtoMsg): _76.EventAnchor; + toProto(message: _76.EventAnchor): Uint8Array; + toProtoMsg(message: _76.EventAnchor): _76.EventAnchorProtoMsg; + }; + EventAttest: { + typeUrl: string; + encode(message: _76.EventAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventAttest; + fromPartial(object: Partial<_76.EventAttest>): _76.EventAttest; + fromAmino(object: _76.EventAttestAmino): _76.EventAttest; + toAmino(message: _76.EventAttest): _76.EventAttestAmino; + fromAminoMsg(object: _76.EventAttestAminoMsg): _76.EventAttest; + fromProtoMsg(message: _76.EventAttestProtoMsg): _76.EventAttest; + toProto(message: _76.EventAttest): Uint8Array; + toProtoMsg(message: _76.EventAttest): _76.EventAttestProtoMsg; + }; + EventDefineResolver: { + typeUrl: string; + encode(message: _76.EventDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventDefineResolver; + fromPartial(object: Partial<_76.EventDefineResolver>): _76.EventDefineResolver; + fromAmino(object: _76.EventDefineResolverAmino): _76.EventDefineResolver; + toAmino(message: _76.EventDefineResolver): _76.EventDefineResolverAmino; + fromAminoMsg(object: _76.EventDefineResolverAminoMsg): _76.EventDefineResolver; + fromProtoMsg(message: _76.EventDefineResolverProtoMsg): _76.EventDefineResolver; + toProto(message: _76.EventDefineResolver): Uint8Array; + toProtoMsg(message: _76.EventDefineResolver): _76.EventDefineResolverProtoMsg; + }; + EventRegisterResolver: { + typeUrl: string; + encode(message: _76.EventRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventRegisterResolver; + fromPartial(object: Partial<_76.EventRegisterResolver>): _76.EventRegisterResolver; + fromAmino(object: _76.EventRegisterResolverAmino): _76.EventRegisterResolver; + toAmino(message: _76.EventRegisterResolver): _76.EventRegisterResolverAmino; + fromAminoMsg(object: _76.EventRegisterResolverAminoMsg): _76.EventRegisterResolver; + fromProtoMsg(message: _76.EventRegisterResolverProtoMsg): _76.EventRegisterResolver; + toProto(message: _76.EventRegisterResolver): Uint8Array; + toProtoMsg(message: _76.EventRegisterResolver): _76.EventRegisterResolverProtoMsg; + }; + }; + } + namespace ecocredit { + namespace basket { + const v1: { + MsgClientImpl: typeof _212.MsgClientImpl; + QueryClientImpl: typeof _206.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + basket(request: _82.QueryBasketRequest): Promise<_82.QueryBasketResponse>; + baskets(request?: _82.QueryBasketsRequest): Promise<_82.QueryBasketsResponse>; + basketBalances(request: _82.QueryBasketBalancesRequest): Promise<_82.QueryBasketBalancesResponse>; + basketBalance(request: _82.QueryBasketBalanceRequest): Promise<_82.QueryBasketBalanceResponse>; + basketFee(request?: _82.QueryBasketFeeRequest): Promise<_82.QueryBasketFeeResponse>; + }; + LCDQueryClient: typeof _200.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + create(value: _84.MsgCreate): { + typeUrl: string; + value: Uint8Array; + }; + put(value: _84.MsgPut): { + typeUrl: string; + value: Uint8Array; + }; + take(value: _84.MsgTake): { + typeUrl: string; + value: Uint8Array; + }; + updateBasketFee(value: _84.MsgUpdateBasketFee): { + typeUrl: string; + value: Uint8Array; + }; + updateCurator(value: _84.MsgUpdateCurator): { + typeUrl: string; + value: Uint8Array; + }; + updateDateCriteria(value: _84.MsgUpdateDateCriteria): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + create(value: _84.MsgCreate): { + typeUrl: string; + value: _84.MsgCreate; + }; + put(value: _84.MsgPut): { + typeUrl: string; + value: _84.MsgPut; + }; + take(value: _84.MsgTake): { + typeUrl: string; + value: _84.MsgTake; + }; + updateBasketFee(value: _84.MsgUpdateBasketFee): { + typeUrl: string; + value: _84.MsgUpdateBasketFee; + }; + updateCurator(value: _84.MsgUpdateCurator): { + typeUrl: string; + value: _84.MsgUpdateCurator; + }; + updateDateCriteria(value: _84.MsgUpdateDateCriteria): { + typeUrl: string; + value: _84.MsgUpdateDateCriteria; + }; + }; + fromPartial: { + create(value: _84.MsgCreate): { + typeUrl: string; + value: _84.MsgCreate; + }; + put(value: _84.MsgPut): { + typeUrl: string; + value: _84.MsgPut; + }; + take(value: _84.MsgTake): { + typeUrl: string; + value: _84.MsgTake; + }; + updateBasketFee(value: _84.MsgUpdateBasketFee): { + typeUrl: string; + value: _84.MsgUpdateBasketFee; + }; + updateCurator(value: _84.MsgUpdateCurator): { + typeUrl: string; + value: _84.MsgUpdateCurator; + }; + updateDateCriteria(value: _84.MsgUpdateDateCriteria): { + typeUrl: string; + value: _84.MsgUpdateDateCriteria; + }; + }; + }; + AminoConverter: { + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: string; + toAmino: (message: _84.MsgCreate) => _84.MsgCreateAmino; + fromAmino: (object: _84.MsgCreateAmino) => _84.MsgCreate; + }; + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: string; + toAmino: (message: _84.MsgPut) => _84.MsgPutAmino; + fromAmino: (object: _84.MsgPutAmino) => _84.MsgPut; + }; + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: string; + toAmino: (message: _84.MsgTake) => _84.MsgTakeAmino; + fromAmino: (object: _84.MsgTakeAmino) => _84.MsgTake; + }; + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: string; + toAmino: (message: _84.MsgUpdateBasketFee) => _84.MsgUpdateBasketFeeAmino; + fromAmino: (object: _84.MsgUpdateBasketFeeAmino) => _84.MsgUpdateBasketFee; + }; + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: string; + toAmino: (message: _84.MsgUpdateCurator) => _84.MsgUpdateCuratorAmino; + fromAmino: (object: _84.MsgUpdateCuratorAmino) => _84.MsgUpdateCurator; + }; + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: string; + toAmino: (message: _84.MsgUpdateDateCriteria) => _84.MsgUpdateDateCriteriaAmino; + fromAmino: (object: _84.MsgUpdateDateCriteriaAmino) => _84.MsgUpdateDateCriteria; + }; + }; + BasketCredit: { + typeUrl: string; + encode(message: _85.BasketCredit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _85.BasketCredit; + fromPartial(object: Partial<_85.BasketCredit>): _85.BasketCredit; + fromAmino(object: _85.BasketCreditAmino): _85.BasketCredit; + toAmino(message: _85.BasketCredit): _85.BasketCreditAmino; + fromAminoMsg(object: _85.BasketCreditAminoMsg): _85.BasketCredit; + fromProtoMsg(message: _85.BasketCreditProtoMsg): _85.BasketCredit; + toProto(message: _85.BasketCredit): Uint8Array; + toProtoMsg(message: _85.BasketCredit): _85.BasketCreditProtoMsg; + }; + DateCriteria: { + typeUrl: string; + encode(message: _85.DateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _85.DateCriteria; + fromPartial(object: Partial<_85.DateCriteria>): _85.DateCriteria; + fromAmino(object: _85.DateCriteriaAmino): _85.DateCriteria; + toAmino(message: _85.DateCriteria): _85.DateCriteriaAmino; + fromAminoMsg(object: _85.DateCriteriaAminoMsg): _85.DateCriteria; + fromProtoMsg(message: _85.DateCriteriaProtoMsg): _85.DateCriteria; + toProto(message: _85.DateCriteria): Uint8Array; + toProtoMsg(message: _85.DateCriteria): _85.DateCriteriaProtoMsg; + }; + MsgCreate: { + typeUrl: string; + encode(message: _84.MsgCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgCreate; + fromPartial(object: Partial<_84.MsgCreate>): _84.MsgCreate; + fromAmino(object: _84.MsgCreateAmino): _84.MsgCreate; + toAmino(message: _84.MsgCreate): _84.MsgCreateAmino; + fromAminoMsg(object: _84.MsgCreateAminoMsg): _84.MsgCreate; + toAminoMsg(message: _84.MsgCreate): _84.MsgCreateAminoMsg; + fromProtoMsg(message: _84.MsgCreateProtoMsg): _84.MsgCreate; + toProto(message: _84.MsgCreate): Uint8Array; + toProtoMsg(message: _84.MsgCreate): _84.MsgCreateProtoMsg; + }; + MsgCreateResponse: { + typeUrl: string; + encode(message: _84.MsgCreateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgCreateResponse; + fromPartial(object: Partial<_84.MsgCreateResponse>): _84.MsgCreateResponse; + fromAmino(object: _84.MsgCreateResponseAmino): _84.MsgCreateResponse; + toAmino(message: _84.MsgCreateResponse): _84.MsgCreateResponseAmino; + fromAminoMsg(object: _84.MsgCreateResponseAminoMsg): _84.MsgCreateResponse; + fromProtoMsg(message: _84.MsgCreateResponseProtoMsg): _84.MsgCreateResponse; + toProto(message: _84.MsgCreateResponse): Uint8Array; + toProtoMsg(message: _84.MsgCreateResponse): _84.MsgCreateResponseProtoMsg; + }; + MsgPut: { + typeUrl: string; + encode(message: _84.MsgPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgPut; + fromPartial(object: Partial<_84.MsgPut>): _84.MsgPut; + fromAmino(object: _84.MsgPutAmino): _84.MsgPut; + toAmino(message: _84.MsgPut): _84.MsgPutAmino; + fromAminoMsg(object: _84.MsgPutAminoMsg): _84.MsgPut; + toAminoMsg(message: _84.MsgPut): _84.MsgPutAminoMsg; + fromProtoMsg(message: _84.MsgPutProtoMsg): _84.MsgPut; + toProto(message: _84.MsgPut): Uint8Array; + toProtoMsg(message: _84.MsgPut): _84.MsgPutProtoMsg; + }; + MsgPutResponse: { + typeUrl: string; + encode(message: _84.MsgPutResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgPutResponse; + fromPartial(object: Partial<_84.MsgPutResponse>): _84.MsgPutResponse; + fromAmino(object: _84.MsgPutResponseAmino): _84.MsgPutResponse; + toAmino(message: _84.MsgPutResponse): _84.MsgPutResponseAmino; + fromAminoMsg(object: _84.MsgPutResponseAminoMsg): _84.MsgPutResponse; + fromProtoMsg(message: _84.MsgPutResponseProtoMsg): _84.MsgPutResponse; + toProto(message: _84.MsgPutResponse): Uint8Array; + toProtoMsg(message: _84.MsgPutResponse): _84.MsgPutResponseProtoMsg; + }; + MsgTake: { + typeUrl: string; + encode(message: _84.MsgTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgTake; + fromPartial(object: Partial<_84.MsgTake>): _84.MsgTake; + fromAmino(object: _84.MsgTakeAmino): _84.MsgTake; + toAmino(message: _84.MsgTake): _84.MsgTakeAmino; + fromAminoMsg(object: _84.MsgTakeAminoMsg): _84.MsgTake; + toAminoMsg(message: _84.MsgTake): _84.MsgTakeAminoMsg; + fromProtoMsg(message: _84.MsgTakeProtoMsg): _84.MsgTake; + toProto(message: _84.MsgTake): Uint8Array; + toProtoMsg(message: _84.MsgTake): _84.MsgTakeProtoMsg; + }; + MsgTakeResponse: { + typeUrl: string; + encode(message: _84.MsgTakeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgTakeResponse; + fromPartial(object: Partial<_84.MsgTakeResponse>): _84.MsgTakeResponse; + fromAmino(object: _84.MsgTakeResponseAmino): _84.MsgTakeResponse; + toAmino(message: _84.MsgTakeResponse): _84.MsgTakeResponseAmino; + fromAminoMsg(object: _84.MsgTakeResponseAminoMsg): _84.MsgTakeResponse; + fromProtoMsg(message: _84.MsgTakeResponseProtoMsg): _84.MsgTakeResponse; + toProto(message: _84.MsgTakeResponse): Uint8Array; + toProtoMsg(message: _84.MsgTakeResponse): _84.MsgTakeResponseProtoMsg; + }; + MsgUpdateBasketFee: { + typeUrl: string; + encode(message: _84.MsgUpdateBasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateBasketFee; + fromPartial(object: Partial<_84.MsgUpdateBasketFee>): _84.MsgUpdateBasketFee; + fromAmino(object: _84.MsgUpdateBasketFeeAmino): _84.MsgUpdateBasketFee; + toAmino(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeAmino; + fromAminoMsg(object: _84.MsgUpdateBasketFeeAminoMsg): _84.MsgUpdateBasketFee; + toAminoMsg(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeAminoMsg; + fromProtoMsg(message: _84.MsgUpdateBasketFeeProtoMsg): _84.MsgUpdateBasketFee; + toProto(message: _84.MsgUpdateBasketFee): Uint8Array; + toProtoMsg(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeProtoMsg; + }; + MsgUpdateBasketFeeResponse: { + typeUrl: string; + encode(_: _84.MsgUpdateBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateBasketFeeResponse; + fromPartial(_: Partial<_84.MsgUpdateBasketFeeResponse>): _84.MsgUpdateBasketFeeResponse; + fromAmino(_: _84.MsgUpdateBasketFeeResponseAmino): _84.MsgUpdateBasketFeeResponse; + toAmino(_: _84.MsgUpdateBasketFeeResponse): _84.MsgUpdateBasketFeeResponseAmino; + fromAminoMsg(object: _84.MsgUpdateBasketFeeResponseAminoMsg): _84.MsgUpdateBasketFeeResponse; + fromProtoMsg(message: _84.MsgUpdateBasketFeeResponseProtoMsg): _84.MsgUpdateBasketFeeResponse; + toProto(message: _84.MsgUpdateBasketFeeResponse): Uint8Array; + toProtoMsg(message: _84.MsgUpdateBasketFeeResponse): _84.MsgUpdateBasketFeeResponseProtoMsg; + }; + MsgUpdateCurator: { + typeUrl: string; + encode(message: _84.MsgUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateCurator; + fromPartial(object: Partial<_84.MsgUpdateCurator>): _84.MsgUpdateCurator; + fromAmino(object: _84.MsgUpdateCuratorAmino): _84.MsgUpdateCurator; + toAmino(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorAmino; + fromAminoMsg(object: _84.MsgUpdateCuratorAminoMsg): _84.MsgUpdateCurator; + toAminoMsg(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorAminoMsg; + fromProtoMsg(message: _84.MsgUpdateCuratorProtoMsg): _84.MsgUpdateCurator; + toProto(message: _84.MsgUpdateCurator): Uint8Array; + toProtoMsg(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorProtoMsg; + }; + MsgUpdateCuratorResponse: { + typeUrl: string; + encode(_: _84.MsgUpdateCuratorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateCuratorResponse; + fromPartial(_: Partial<_84.MsgUpdateCuratorResponse>): _84.MsgUpdateCuratorResponse; + fromAmino(_: _84.MsgUpdateCuratorResponseAmino): _84.MsgUpdateCuratorResponse; + toAmino(_: _84.MsgUpdateCuratorResponse): _84.MsgUpdateCuratorResponseAmino; + fromAminoMsg(object: _84.MsgUpdateCuratorResponseAminoMsg): _84.MsgUpdateCuratorResponse; + fromProtoMsg(message: _84.MsgUpdateCuratorResponseProtoMsg): _84.MsgUpdateCuratorResponse; + toProto(message: _84.MsgUpdateCuratorResponse): Uint8Array; + toProtoMsg(message: _84.MsgUpdateCuratorResponse): _84.MsgUpdateCuratorResponseProtoMsg; + }; + MsgUpdateDateCriteria: { + typeUrl: string; + encode(message: _84.MsgUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateDateCriteria; + fromPartial(object: Partial<_84.MsgUpdateDateCriteria>): _84.MsgUpdateDateCriteria; + fromAmino(object: _84.MsgUpdateDateCriteriaAmino): _84.MsgUpdateDateCriteria; + toAmino(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaAmino; + fromAminoMsg(object: _84.MsgUpdateDateCriteriaAminoMsg): _84.MsgUpdateDateCriteria; + toAminoMsg(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaAminoMsg; + fromProtoMsg(message: _84.MsgUpdateDateCriteriaProtoMsg): _84.MsgUpdateDateCriteria; + toProto(message: _84.MsgUpdateDateCriteria): Uint8Array; + toProtoMsg(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaProtoMsg; + }; + MsgUpdateDateCriteriaResponse: { + typeUrl: string; + encode(_: _84.MsgUpdateDateCriteriaResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateDateCriteriaResponse; + fromPartial(_: Partial<_84.MsgUpdateDateCriteriaResponse>): _84.MsgUpdateDateCriteriaResponse; + fromAmino(_: _84.MsgUpdateDateCriteriaResponseAmino): _84.MsgUpdateDateCriteriaResponse; + toAmino(_: _84.MsgUpdateDateCriteriaResponse): _84.MsgUpdateDateCriteriaResponseAmino; + fromAminoMsg(object: _84.MsgUpdateDateCriteriaResponseAminoMsg): _84.MsgUpdateDateCriteriaResponse; + fromProtoMsg(message: _84.MsgUpdateDateCriteriaResponseProtoMsg): _84.MsgUpdateDateCriteriaResponse; + toProto(message: _84.MsgUpdateDateCriteriaResponse): Uint8Array; + toProtoMsg(message: _84.MsgUpdateDateCriteriaResponse): _84.MsgUpdateDateCriteriaResponseProtoMsg; + }; + Basket: { + typeUrl: string; + encode(message: _83.Basket, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.Basket; + fromPartial(object: Partial<_83.Basket>): _83.Basket; + fromAmino(object: _83.BasketAmino): _83.Basket; + toAmino(message: _83.Basket): _83.BasketAmino; + fromAminoMsg(object: _83.BasketAminoMsg): _83.Basket; + fromProtoMsg(message: _83.BasketProtoMsg): _83.Basket; + toProto(message: _83.Basket): Uint8Array; + toProtoMsg(message: _83.Basket): _83.BasketProtoMsg; + }; + BasketClass: { + typeUrl: string; + encode(message: _83.BasketClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketClass; + fromPartial(object: Partial<_83.BasketClass>): _83.BasketClass; + fromAmino(object: _83.BasketClassAmino): _83.BasketClass; + toAmino(message: _83.BasketClass): _83.BasketClassAmino; + fromAminoMsg(object: _83.BasketClassAminoMsg): _83.BasketClass; + fromProtoMsg(message: _83.BasketClassProtoMsg): _83.BasketClass; + toProto(message: _83.BasketClass): Uint8Array; + toProtoMsg(message: _83.BasketClass): _83.BasketClassProtoMsg; + }; + BasketBalance: { + typeUrl: string; + encode(message: _83.BasketBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketBalance; + fromPartial(object: Partial<_83.BasketBalance>): _83.BasketBalance; + fromAmino(object: _83.BasketBalanceAmino): _83.BasketBalance; + toAmino(message: _83.BasketBalance): _83.BasketBalanceAmino; + fromAminoMsg(object: _83.BasketBalanceAminoMsg): _83.BasketBalance; + fromProtoMsg(message: _83.BasketBalanceProtoMsg): _83.BasketBalance; + toProto(message: _83.BasketBalance): Uint8Array; + toProtoMsg(message: _83.BasketBalance): _83.BasketBalanceProtoMsg; + }; + BasketFee: { + typeUrl: string; + encode(message: _83.BasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketFee; + fromPartial(object: Partial<_83.BasketFee>): _83.BasketFee; + fromAmino(object: _83.BasketFeeAmino): _83.BasketFee; + toAmino(message: _83.BasketFee): _83.BasketFeeAmino; + fromAminoMsg(object: _83.BasketFeeAminoMsg): _83.BasketFee; + fromProtoMsg(message: _83.BasketFeeProtoMsg): _83.BasketFee; + toProto(message: _83.BasketFee): Uint8Array; + toProtoMsg(message: _83.BasketFee): _83.BasketFeeProtoMsg; + }; + QueryBasketRequest: { + typeUrl: string; + encode(message: _82.QueryBasketRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketRequest; + fromPartial(object: Partial<_82.QueryBasketRequest>): _82.QueryBasketRequest; + fromAmino(object: _82.QueryBasketRequestAmino): _82.QueryBasketRequest; + toAmino(message: _82.QueryBasketRequest): _82.QueryBasketRequestAmino; + fromAminoMsg(object: _82.QueryBasketRequestAminoMsg): _82.QueryBasketRequest; + fromProtoMsg(message: _82.QueryBasketRequestProtoMsg): _82.QueryBasketRequest; + toProto(message: _82.QueryBasketRequest): Uint8Array; + toProtoMsg(message: _82.QueryBasketRequest): _82.QueryBasketRequestProtoMsg; + }; + QueryBasketResponse: { + typeUrl: string; + encode(message: _82.QueryBasketResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketResponse; + fromPartial(object: Partial<_82.QueryBasketResponse>): _82.QueryBasketResponse; + fromAmino(object: _82.QueryBasketResponseAmino): _82.QueryBasketResponse; + toAmino(message: _82.QueryBasketResponse): _82.QueryBasketResponseAmino; + fromAminoMsg(object: _82.QueryBasketResponseAminoMsg): _82.QueryBasketResponse; + fromProtoMsg(message: _82.QueryBasketResponseProtoMsg): _82.QueryBasketResponse; + toProto(message: _82.QueryBasketResponse): Uint8Array; + toProtoMsg(message: _82.QueryBasketResponse): _82.QueryBasketResponseProtoMsg; + }; + QueryBasketsRequest: { + typeUrl: string; + encode(message: _82.QueryBasketsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketsRequest; + fromPartial(object: Partial<_82.QueryBasketsRequest>): _82.QueryBasketsRequest; + fromAmino(object: _82.QueryBasketsRequestAmino): _82.QueryBasketsRequest; + toAmino(message: _82.QueryBasketsRequest): _82.QueryBasketsRequestAmino; + fromAminoMsg(object: _82.QueryBasketsRequestAminoMsg): _82.QueryBasketsRequest; + fromProtoMsg(message: _82.QueryBasketsRequestProtoMsg): _82.QueryBasketsRequest; + toProto(message: _82.QueryBasketsRequest): Uint8Array; + toProtoMsg(message: _82.QueryBasketsRequest): _82.QueryBasketsRequestProtoMsg; + }; + QueryBasketsResponse: { + typeUrl: string; + encode(message: _82.QueryBasketsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketsResponse; + fromPartial(object: Partial<_82.QueryBasketsResponse>): _82.QueryBasketsResponse; + fromAmino(object: _82.QueryBasketsResponseAmino): _82.QueryBasketsResponse; + toAmino(message: _82.QueryBasketsResponse): _82.QueryBasketsResponseAmino; + fromAminoMsg(object: _82.QueryBasketsResponseAminoMsg): _82.QueryBasketsResponse; + fromProtoMsg(message: _82.QueryBasketsResponseProtoMsg): _82.QueryBasketsResponse; + toProto(message: _82.QueryBasketsResponse): Uint8Array; + toProtoMsg(message: _82.QueryBasketsResponse): _82.QueryBasketsResponseProtoMsg; + }; + QueryBasketBalancesRequest: { + typeUrl: string; + encode(message: _82.QueryBasketBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalancesRequest; + fromPartial(object: Partial<_82.QueryBasketBalancesRequest>): _82.QueryBasketBalancesRequest; + fromAmino(object: _82.QueryBasketBalancesRequestAmino): _82.QueryBasketBalancesRequest; + toAmino(message: _82.QueryBasketBalancesRequest): _82.QueryBasketBalancesRequestAmino; + fromAminoMsg(object: _82.QueryBasketBalancesRequestAminoMsg): _82.QueryBasketBalancesRequest; + fromProtoMsg(message: _82.QueryBasketBalancesRequestProtoMsg): _82.QueryBasketBalancesRequest; + toProto(message: _82.QueryBasketBalancesRequest): Uint8Array; + toProtoMsg(message: _82.QueryBasketBalancesRequest): _82.QueryBasketBalancesRequestProtoMsg; + }; + QueryBasketBalancesResponse: { + typeUrl: string; + encode(message: _82.QueryBasketBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalancesResponse; + fromPartial(object: Partial<_82.QueryBasketBalancesResponse>): _82.QueryBasketBalancesResponse; + fromAmino(object: _82.QueryBasketBalancesResponseAmino): _82.QueryBasketBalancesResponse; + toAmino(message: _82.QueryBasketBalancesResponse): _82.QueryBasketBalancesResponseAmino; + fromAminoMsg(object: _82.QueryBasketBalancesResponseAminoMsg): _82.QueryBasketBalancesResponse; + fromProtoMsg(message: _82.QueryBasketBalancesResponseProtoMsg): _82.QueryBasketBalancesResponse; + toProto(message: _82.QueryBasketBalancesResponse): Uint8Array; + toProtoMsg(message: _82.QueryBasketBalancesResponse): _82.QueryBasketBalancesResponseProtoMsg; + }; + QueryBasketBalanceRequest: { + typeUrl: string; + encode(message: _82.QueryBasketBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalanceRequest; + fromPartial(object: Partial<_82.QueryBasketBalanceRequest>): _82.QueryBasketBalanceRequest; + fromAmino(object: _82.QueryBasketBalanceRequestAmino): _82.QueryBasketBalanceRequest; + toAmino(message: _82.QueryBasketBalanceRequest): _82.QueryBasketBalanceRequestAmino; + fromAminoMsg(object: _82.QueryBasketBalanceRequestAminoMsg): _82.QueryBasketBalanceRequest; + fromProtoMsg(message: _82.QueryBasketBalanceRequestProtoMsg): _82.QueryBasketBalanceRequest; + toProto(message: _82.QueryBasketBalanceRequest): Uint8Array; + toProtoMsg(message: _82.QueryBasketBalanceRequest): _82.QueryBasketBalanceRequestProtoMsg; + }; + QueryBasketBalanceResponse: { + typeUrl: string; + encode(message: _82.QueryBasketBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalanceResponse; + fromPartial(object: Partial<_82.QueryBasketBalanceResponse>): _82.QueryBasketBalanceResponse; + fromAmino(object: _82.QueryBasketBalanceResponseAmino): _82.QueryBasketBalanceResponse; + toAmino(message: _82.QueryBasketBalanceResponse): _82.QueryBasketBalanceResponseAmino; + fromAminoMsg(object: _82.QueryBasketBalanceResponseAminoMsg): _82.QueryBasketBalanceResponse; + fromProtoMsg(message: _82.QueryBasketBalanceResponseProtoMsg): _82.QueryBasketBalanceResponse; + toProto(message: _82.QueryBasketBalanceResponse): Uint8Array; + toProtoMsg(message: _82.QueryBasketBalanceResponse): _82.QueryBasketBalanceResponseProtoMsg; + }; + BasketInfo: { + typeUrl: string; + encode(message: _82.BasketInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.BasketInfo; + fromPartial(object: Partial<_82.BasketInfo>): _82.BasketInfo; + fromAmino(object: _82.BasketInfoAmino): _82.BasketInfo; + toAmino(message: _82.BasketInfo): _82.BasketInfoAmino; + fromAminoMsg(object: _82.BasketInfoAminoMsg): _82.BasketInfo; + fromProtoMsg(message: _82.BasketInfoProtoMsg): _82.BasketInfo; + toProto(message: _82.BasketInfo): Uint8Array; + toProtoMsg(message: _82.BasketInfo): _82.BasketInfoProtoMsg; + }; + BasketBalanceInfo: { + typeUrl: string; + encode(message: _82.BasketBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.BasketBalanceInfo; + fromPartial(object: Partial<_82.BasketBalanceInfo>): _82.BasketBalanceInfo; + fromAmino(object: _82.BasketBalanceInfoAmino): _82.BasketBalanceInfo; + toAmino(message: _82.BasketBalanceInfo): _82.BasketBalanceInfoAmino; + fromAminoMsg(object: _82.BasketBalanceInfoAminoMsg): _82.BasketBalanceInfo; + fromProtoMsg(message: _82.BasketBalanceInfoProtoMsg): _82.BasketBalanceInfo; + toProto(message: _82.BasketBalanceInfo): Uint8Array; + toProtoMsg(message: _82.BasketBalanceInfo): _82.BasketBalanceInfoProtoMsg; + }; + QueryBasketFeeRequest: { + typeUrl: string; + encode(_: _82.QueryBasketFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketFeeRequest; + fromPartial(_: Partial<_82.QueryBasketFeeRequest>): _82.QueryBasketFeeRequest; + fromAmino(_: _82.QueryBasketFeeRequestAmino): _82.QueryBasketFeeRequest; + toAmino(_: _82.QueryBasketFeeRequest): _82.QueryBasketFeeRequestAmino; + fromAminoMsg(object: _82.QueryBasketFeeRequestAminoMsg): _82.QueryBasketFeeRequest; + fromProtoMsg(message: _82.QueryBasketFeeRequestProtoMsg): _82.QueryBasketFeeRequest; + toProto(message: _82.QueryBasketFeeRequest): Uint8Array; + toProtoMsg(message: _82.QueryBasketFeeRequest): _82.QueryBasketFeeRequestProtoMsg; + }; + QueryBasketFeeResponse: { + typeUrl: string; + encode(message: _82.QueryBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketFeeResponse; + fromPartial(object: Partial<_82.QueryBasketFeeResponse>): _82.QueryBasketFeeResponse; + fromAmino(object: _82.QueryBasketFeeResponseAmino): _82.QueryBasketFeeResponse; + toAmino(message: _82.QueryBasketFeeResponse): _82.QueryBasketFeeResponseAmino; + fromAminoMsg(object: _82.QueryBasketFeeResponseAminoMsg): _82.QueryBasketFeeResponse; + fromProtoMsg(message: _82.QueryBasketFeeResponseProtoMsg): _82.QueryBasketFeeResponse; + toProto(message: _82.QueryBasketFeeResponse): Uint8Array; + toProtoMsg(message: _82.QueryBasketFeeResponse): _82.QueryBasketFeeResponseProtoMsg; + }; + EventCreate: { + typeUrl: string; + encode(message: _81.EventCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventCreate; + fromPartial(object: Partial<_81.EventCreate>): _81.EventCreate; + fromAmino(object: _81.EventCreateAmino): _81.EventCreate; + toAmino(message: _81.EventCreate): _81.EventCreateAmino; + fromAminoMsg(object: _81.EventCreateAminoMsg): _81.EventCreate; + fromProtoMsg(message: _81.EventCreateProtoMsg): _81.EventCreate; + toProto(message: _81.EventCreate): Uint8Array; + toProtoMsg(message: _81.EventCreate): _81.EventCreateProtoMsg; + }; + EventPut: { + typeUrl: string; + encode(message: _81.EventPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventPut; + fromPartial(object: Partial<_81.EventPut>): _81.EventPut; + fromAmino(object: _81.EventPutAmino): _81.EventPut; + toAmino(message: _81.EventPut): _81.EventPutAmino; + fromAminoMsg(object: _81.EventPutAminoMsg): _81.EventPut; + fromProtoMsg(message: _81.EventPutProtoMsg): _81.EventPut; + toProto(message: _81.EventPut): Uint8Array; + toProtoMsg(message: _81.EventPut): _81.EventPutProtoMsg; + }; + EventTake: { + typeUrl: string; + encode(message: _81.EventTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventTake; + fromPartial(object: Partial<_81.EventTake>): _81.EventTake; + fromAmino(object: _81.EventTakeAmino): _81.EventTake; + toAmino(message: _81.EventTake): _81.EventTakeAmino; + fromAminoMsg(object: _81.EventTakeAminoMsg): _81.EventTake; + fromProtoMsg(message: _81.EventTakeProtoMsg): _81.EventTake; + toProto(message: _81.EventTake): Uint8Array; + toProtoMsg(message: _81.EventTake): _81.EventTakeProtoMsg; + }; + EventUpdateCurator: { + typeUrl: string; + encode(message: _81.EventUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventUpdateCurator; + fromPartial(object: Partial<_81.EventUpdateCurator>): _81.EventUpdateCurator; + fromAmino(object: _81.EventUpdateCuratorAmino): _81.EventUpdateCurator; + toAmino(message: _81.EventUpdateCurator): _81.EventUpdateCuratorAmino; + fromAminoMsg(object: _81.EventUpdateCuratorAminoMsg): _81.EventUpdateCurator; + fromProtoMsg(message: _81.EventUpdateCuratorProtoMsg): _81.EventUpdateCurator; + toProto(message: _81.EventUpdateCurator): Uint8Array; + toProtoMsg(message: _81.EventUpdateCurator): _81.EventUpdateCuratorProtoMsg; + }; + EventUpdateDateCriteria: { + typeUrl: string; + encode(message: _81.EventUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventUpdateDateCriteria; + fromPartial(object: Partial<_81.EventUpdateDateCriteria>): _81.EventUpdateDateCriteria; + fromAmino(object: _81.EventUpdateDateCriteriaAmino): _81.EventUpdateDateCriteria; + toAmino(message: _81.EventUpdateDateCriteria): _81.EventUpdateDateCriteriaAmino; + fromAminoMsg(object: _81.EventUpdateDateCriteriaAminoMsg): _81.EventUpdateDateCriteria; + fromProtoMsg(message: _81.EventUpdateDateCriteriaProtoMsg): _81.EventUpdateDateCriteria; + toProto(message: _81.EventUpdateDateCriteria): Uint8Array; + toProtoMsg(message: _81.EventUpdateDateCriteria): _81.EventUpdateDateCriteriaProtoMsg; + }; + }; + } + namespace marketplace { + const v1: { + MsgClientImpl: typeof _213.MsgClientImpl; + QueryClientImpl: typeof _207.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + sellOrder(request: _87.QuerySellOrderRequest): Promise<_87.QuerySellOrderResponse>; + sellOrders(request?: _87.QuerySellOrdersRequest): Promise<_87.QuerySellOrdersResponse>; + sellOrdersByBatch(request: _87.QuerySellOrdersByBatchRequest): Promise<_87.QuerySellOrdersByBatchResponse>; + sellOrdersBySeller(request: _87.QuerySellOrdersBySellerRequest): Promise<_87.QuerySellOrdersBySellerResponse>; + allowedDenoms(request?: _87.QueryAllowedDenomsRequest): Promise<_87.QueryAllowedDenomsResponse>; + }; + LCDQueryClient: typeof _201.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + sell(value: _89.MsgSell): { + typeUrl: string; + value: Uint8Array; + }; + updateSellOrders(value: _89.MsgUpdateSellOrders): { + typeUrl: string; + value: Uint8Array; + }; + cancelSellOrder(value: _89.MsgCancelSellOrder): { + typeUrl: string; + value: Uint8Array; + }; + buyDirect(value: _89.MsgBuyDirect): { + typeUrl: string; + value: Uint8Array; + }; + addAllowedDenom(value: _89.MsgAddAllowedDenom): { + typeUrl: string; + value: Uint8Array; + }; + removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + sell(value: _89.MsgSell): { + typeUrl: string; + value: _89.MsgSell; + }; + updateSellOrders(value: _89.MsgUpdateSellOrders): { + typeUrl: string; + value: _89.MsgUpdateSellOrders; + }; + cancelSellOrder(value: _89.MsgCancelSellOrder): { + typeUrl: string; + value: _89.MsgCancelSellOrder; + }; + buyDirect(value: _89.MsgBuyDirect): { + typeUrl: string; + value: _89.MsgBuyDirect; + }; + addAllowedDenom(value: _89.MsgAddAllowedDenom): { + typeUrl: string; + value: _89.MsgAddAllowedDenom; + }; + removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { + typeUrl: string; + value: _89.MsgRemoveAllowedDenom; + }; + }; + fromPartial: { + sell(value: _89.MsgSell): { + typeUrl: string; + value: _89.MsgSell; + }; + updateSellOrders(value: _89.MsgUpdateSellOrders): { + typeUrl: string; + value: _89.MsgUpdateSellOrders; + }; + cancelSellOrder(value: _89.MsgCancelSellOrder): { + typeUrl: string; + value: _89.MsgCancelSellOrder; + }; + buyDirect(value: _89.MsgBuyDirect): { + typeUrl: string; + value: _89.MsgBuyDirect; + }; + addAllowedDenom(value: _89.MsgAddAllowedDenom): { + typeUrl: string; + value: _89.MsgAddAllowedDenom; + }; + removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { + typeUrl: string; + value: _89.MsgRemoveAllowedDenom; + }; + }; + }; + AminoConverter: { + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: string; + toAmino: (message: _89.MsgSell) => _89.MsgSellAmino; + fromAmino: (object: _89.MsgSellAmino) => _89.MsgSell; + }; + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: string; + toAmino: (message: _89.MsgUpdateSellOrders) => _89.MsgUpdateSellOrdersAmino; + fromAmino: (object: _89.MsgUpdateSellOrdersAmino) => _89.MsgUpdateSellOrders; + }; + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: string; + toAmino: (message: _89.MsgCancelSellOrder) => _89.MsgCancelSellOrderAmino; + fromAmino: (object: _89.MsgCancelSellOrderAmino) => _89.MsgCancelSellOrder; + }; + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: string; + toAmino: (message: _89.MsgBuyDirect) => _89.MsgBuyDirectAmino; + fromAmino: (object: _89.MsgBuyDirectAmino) => _89.MsgBuyDirect; + }; + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: string; + toAmino: (message: _89.MsgAddAllowedDenom) => _89.MsgAddAllowedDenomAmino; + fromAmino: (object: _89.MsgAddAllowedDenomAmino) => _89.MsgAddAllowedDenom; + }; + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: string; + toAmino: (message: _89.MsgRemoveAllowedDenom) => _89.MsgRemoveAllowedDenomAmino; + fromAmino: (object: _89.MsgRemoveAllowedDenomAmino) => _89.MsgRemoveAllowedDenom; + }; + }; + AllowDenomProposal: { + typeUrl: string; + encode(message: _90.AllowDenomProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _90.AllowDenomProposal; + fromPartial(object: Partial<_90.AllowDenomProposal>): _90.AllowDenomProposal; + fromAmino(object: _90.AllowDenomProposalAmino): _90.AllowDenomProposal; + toAmino(message: _90.AllowDenomProposal): _90.AllowDenomProposalAmino; + fromAminoMsg(object: _90.AllowDenomProposalAminoMsg): _90.AllowDenomProposal; + fromProtoMsg(message: _90.AllowDenomProposalProtoMsg): _90.AllowDenomProposal; + toProto(message: _90.AllowDenomProposal): Uint8Array; + toProtoMsg(message: _90.AllowDenomProposal): _90.AllowDenomProposalProtoMsg; + }; + MsgSell: { + typeUrl: string; + encode(message: _89.MsgSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSell; + fromPartial(object: Partial<_89.MsgSell>): _89.MsgSell; + fromAmino(object: _89.MsgSellAmino): _89.MsgSell; + toAmino(message: _89.MsgSell): _89.MsgSellAmino; + fromAminoMsg(object: _89.MsgSellAminoMsg): _89.MsgSell; + toAminoMsg(message: _89.MsgSell): _89.MsgSellAminoMsg; + fromProtoMsg(message: _89.MsgSellProtoMsg): _89.MsgSell; + toProto(message: _89.MsgSell): Uint8Array; + toProtoMsg(message: _89.MsgSell): _89.MsgSellProtoMsg; + }; + MsgSell_Order: { + typeUrl: string; + encode(message: _89.MsgSell_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSell_Order; + fromPartial(object: Partial<_89.MsgSell_Order>): _89.MsgSell_Order; + fromAmino(object: _89.MsgSell_OrderAmino): _89.MsgSell_Order; + toAmino(message: _89.MsgSell_Order): _89.MsgSell_OrderAmino; + fromAminoMsg(object: _89.MsgSell_OrderAminoMsg): _89.MsgSell_Order; + fromProtoMsg(message: _89.MsgSell_OrderProtoMsg): _89.MsgSell_Order; + toProto(message: _89.MsgSell_Order): Uint8Array; + toProtoMsg(message: _89.MsgSell_Order): _89.MsgSell_OrderProtoMsg; + }; + MsgSellResponse: { + typeUrl: string; + encode(message: _89.MsgSellResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSellResponse; + fromPartial(object: Partial<_89.MsgSellResponse>): _89.MsgSellResponse; + fromAmino(object: _89.MsgSellResponseAmino): _89.MsgSellResponse; + toAmino(message: _89.MsgSellResponse): _89.MsgSellResponseAmino; + fromAminoMsg(object: _89.MsgSellResponseAminoMsg): _89.MsgSellResponse; + fromProtoMsg(message: _89.MsgSellResponseProtoMsg): _89.MsgSellResponse; + toProto(message: _89.MsgSellResponse): Uint8Array; + toProtoMsg(message: _89.MsgSellResponse): _89.MsgSellResponseProtoMsg; + }; + MsgUpdateSellOrders: { + typeUrl: string; + encode(message: _89.MsgUpdateSellOrders, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrders; + fromPartial(object: Partial<_89.MsgUpdateSellOrders>): _89.MsgUpdateSellOrders; + fromAmino(object: _89.MsgUpdateSellOrdersAmino): _89.MsgUpdateSellOrders; + toAmino(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersAmino; + fromAminoMsg(object: _89.MsgUpdateSellOrdersAminoMsg): _89.MsgUpdateSellOrders; + toAminoMsg(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersAminoMsg; + fromProtoMsg(message: _89.MsgUpdateSellOrdersProtoMsg): _89.MsgUpdateSellOrders; + toProto(message: _89.MsgUpdateSellOrders): Uint8Array; + toProtoMsg(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersProtoMsg; + }; + MsgUpdateSellOrders_Update: { + typeUrl: string; + encode(message: _89.MsgUpdateSellOrders_Update, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrders_Update; + fromPartial(object: Partial<_89.MsgUpdateSellOrders_Update>): _89.MsgUpdateSellOrders_Update; + fromAmino(object: _89.MsgUpdateSellOrders_UpdateAmino): _89.MsgUpdateSellOrders_Update; + toAmino(message: _89.MsgUpdateSellOrders_Update): _89.MsgUpdateSellOrders_UpdateAmino; + fromAminoMsg(object: _89.MsgUpdateSellOrders_UpdateAminoMsg): _89.MsgUpdateSellOrders_Update; + fromProtoMsg(message: _89.MsgUpdateSellOrders_UpdateProtoMsg): _89.MsgUpdateSellOrders_Update; + toProto(message: _89.MsgUpdateSellOrders_Update): Uint8Array; + toProtoMsg(message: _89.MsgUpdateSellOrders_Update): _89.MsgUpdateSellOrders_UpdateProtoMsg; + }; + MsgUpdateSellOrdersResponse: { + typeUrl: string; + encode(_: _89.MsgUpdateSellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrdersResponse; + fromPartial(_: Partial<_89.MsgUpdateSellOrdersResponse>): _89.MsgUpdateSellOrdersResponse; + fromAmino(_: _89.MsgUpdateSellOrdersResponseAmino): _89.MsgUpdateSellOrdersResponse; + toAmino(_: _89.MsgUpdateSellOrdersResponse): _89.MsgUpdateSellOrdersResponseAmino; + fromAminoMsg(object: _89.MsgUpdateSellOrdersResponseAminoMsg): _89.MsgUpdateSellOrdersResponse; + fromProtoMsg(message: _89.MsgUpdateSellOrdersResponseProtoMsg): _89.MsgUpdateSellOrdersResponse; + toProto(message: _89.MsgUpdateSellOrdersResponse): Uint8Array; + toProtoMsg(message: _89.MsgUpdateSellOrdersResponse): _89.MsgUpdateSellOrdersResponseProtoMsg; + }; + MsgCancelSellOrder: { + typeUrl: string; + encode(message: _89.MsgCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgCancelSellOrder; + fromPartial(object: Partial<_89.MsgCancelSellOrder>): _89.MsgCancelSellOrder; + fromAmino(object: _89.MsgCancelSellOrderAmino): _89.MsgCancelSellOrder; + toAmino(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderAmino; + fromAminoMsg(object: _89.MsgCancelSellOrderAminoMsg): _89.MsgCancelSellOrder; + toAminoMsg(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderAminoMsg; + fromProtoMsg(message: _89.MsgCancelSellOrderProtoMsg): _89.MsgCancelSellOrder; + toProto(message: _89.MsgCancelSellOrder): Uint8Array; + toProtoMsg(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderProtoMsg; + }; + MsgCancelSellOrderResponse: { + typeUrl: string; + encode(_: _89.MsgCancelSellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgCancelSellOrderResponse; + fromPartial(_: Partial<_89.MsgCancelSellOrderResponse>): _89.MsgCancelSellOrderResponse; + fromAmino(_: _89.MsgCancelSellOrderResponseAmino): _89.MsgCancelSellOrderResponse; + toAmino(_: _89.MsgCancelSellOrderResponse): _89.MsgCancelSellOrderResponseAmino; + fromAminoMsg(object: _89.MsgCancelSellOrderResponseAminoMsg): _89.MsgCancelSellOrderResponse; + fromProtoMsg(message: _89.MsgCancelSellOrderResponseProtoMsg): _89.MsgCancelSellOrderResponse; + toProto(message: _89.MsgCancelSellOrderResponse): Uint8Array; + toProtoMsg(message: _89.MsgCancelSellOrderResponse): _89.MsgCancelSellOrderResponseProtoMsg; + }; + MsgBuyDirect: { + typeUrl: string; + encode(message: _89.MsgBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirect; + fromPartial(object: Partial<_89.MsgBuyDirect>): _89.MsgBuyDirect; + fromAmino(object: _89.MsgBuyDirectAmino): _89.MsgBuyDirect; + toAmino(message: _89.MsgBuyDirect): _89.MsgBuyDirectAmino; + fromAminoMsg(object: _89.MsgBuyDirectAminoMsg): _89.MsgBuyDirect; + toAminoMsg(message: _89.MsgBuyDirect): _89.MsgBuyDirectAminoMsg; + fromProtoMsg(message: _89.MsgBuyDirectProtoMsg): _89.MsgBuyDirect; + toProto(message: _89.MsgBuyDirect): Uint8Array; + toProtoMsg(message: _89.MsgBuyDirect): _89.MsgBuyDirectProtoMsg; + }; + MsgBuyDirect_Order: { + typeUrl: string; + encode(message: _89.MsgBuyDirect_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirect_Order; + fromPartial(object: Partial<_89.MsgBuyDirect_Order>): _89.MsgBuyDirect_Order; + fromAmino(object: _89.MsgBuyDirect_OrderAmino): _89.MsgBuyDirect_Order; + toAmino(message: _89.MsgBuyDirect_Order): _89.MsgBuyDirect_OrderAmino; + fromAminoMsg(object: _89.MsgBuyDirect_OrderAminoMsg): _89.MsgBuyDirect_Order; + fromProtoMsg(message: _89.MsgBuyDirect_OrderProtoMsg): _89.MsgBuyDirect_Order; + toProto(message: _89.MsgBuyDirect_Order): Uint8Array; + toProtoMsg(message: _89.MsgBuyDirect_Order): _89.MsgBuyDirect_OrderProtoMsg; + }; + MsgBuyDirectResponse: { + typeUrl: string; + encode(_: _89.MsgBuyDirectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirectResponse; + fromPartial(_: Partial<_89.MsgBuyDirectResponse>): _89.MsgBuyDirectResponse; + fromAmino(_: _89.MsgBuyDirectResponseAmino): _89.MsgBuyDirectResponse; + toAmino(_: _89.MsgBuyDirectResponse): _89.MsgBuyDirectResponseAmino; + fromAminoMsg(object: _89.MsgBuyDirectResponseAminoMsg): _89.MsgBuyDirectResponse; + fromProtoMsg(message: _89.MsgBuyDirectResponseProtoMsg): _89.MsgBuyDirectResponse; + toProto(message: _89.MsgBuyDirectResponse): Uint8Array; + toProtoMsg(message: _89.MsgBuyDirectResponse): _89.MsgBuyDirectResponseProtoMsg; + }; + MsgAddAllowedDenom: { + typeUrl: string; + encode(message: _89.MsgAddAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgAddAllowedDenom; + fromPartial(object: Partial<_89.MsgAddAllowedDenom>): _89.MsgAddAllowedDenom; + fromAmino(object: _89.MsgAddAllowedDenomAmino): _89.MsgAddAllowedDenom; + toAmino(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomAmino; + fromAminoMsg(object: _89.MsgAddAllowedDenomAminoMsg): _89.MsgAddAllowedDenom; + toAminoMsg(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomAminoMsg; + fromProtoMsg(message: _89.MsgAddAllowedDenomProtoMsg): _89.MsgAddAllowedDenom; + toProto(message: _89.MsgAddAllowedDenom): Uint8Array; + toProtoMsg(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomProtoMsg; + }; + MsgAddAllowedDenomResponse: { + typeUrl: string; + encode(_: _89.MsgAddAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgAddAllowedDenomResponse; + fromPartial(_: Partial<_89.MsgAddAllowedDenomResponse>): _89.MsgAddAllowedDenomResponse; + fromAmino(_: _89.MsgAddAllowedDenomResponseAmino): _89.MsgAddAllowedDenomResponse; + toAmino(_: _89.MsgAddAllowedDenomResponse): _89.MsgAddAllowedDenomResponseAmino; + fromAminoMsg(object: _89.MsgAddAllowedDenomResponseAminoMsg): _89.MsgAddAllowedDenomResponse; + fromProtoMsg(message: _89.MsgAddAllowedDenomResponseProtoMsg): _89.MsgAddAllowedDenomResponse; + toProto(message: _89.MsgAddAllowedDenomResponse): Uint8Array; + toProtoMsg(message: _89.MsgAddAllowedDenomResponse): _89.MsgAddAllowedDenomResponseProtoMsg; + }; + MsgRemoveAllowedDenom: { + typeUrl: string; + encode(message: _89.MsgRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgRemoveAllowedDenom; + fromPartial(object: Partial<_89.MsgRemoveAllowedDenom>): _89.MsgRemoveAllowedDenom; + fromAmino(object: _89.MsgRemoveAllowedDenomAmino): _89.MsgRemoveAllowedDenom; + toAmino(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomAmino; + fromAminoMsg(object: _89.MsgRemoveAllowedDenomAminoMsg): _89.MsgRemoveAllowedDenom; + toAminoMsg(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomAminoMsg; + fromProtoMsg(message: _89.MsgRemoveAllowedDenomProtoMsg): _89.MsgRemoveAllowedDenom; + toProto(message: _89.MsgRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomProtoMsg; + }; + MsgRemoveAllowedDenomResponse: { + typeUrl: string; + encode(_: _89.MsgRemoveAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgRemoveAllowedDenomResponse; + fromPartial(_: Partial<_89.MsgRemoveAllowedDenomResponse>): _89.MsgRemoveAllowedDenomResponse; + fromAmino(_: _89.MsgRemoveAllowedDenomResponseAmino): _89.MsgRemoveAllowedDenomResponse; + toAmino(_: _89.MsgRemoveAllowedDenomResponse): _89.MsgRemoveAllowedDenomResponseAmino; + fromAminoMsg(object: _89.MsgRemoveAllowedDenomResponseAminoMsg): _89.MsgRemoveAllowedDenomResponse; + fromProtoMsg(message: _89.MsgRemoveAllowedDenomResponseProtoMsg): _89.MsgRemoveAllowedDenomResponse; + toProto(message: _89.MsgRemoveAllowedDenomResponse): Uint8Array; + toProtoMsg(message: _89.MsgRemoveAllowedDenomResponse): _89.MsgRemoveAllowedDenomResponseProtoMsg; + }; + SellOrder: { + typeUrl: string; + encode(message: _88.SellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.SellOrder; + fromPartial(object: Partial<_88.SellOrder>): _88.SellOrder; + fromAmino(object: _88.SellOrderAmino): _88.SellOrder; + toAmino(message: _88.SellOrder): _88.SellOrderAmino; + fromAminoMsg(object: _88.SellOrderAminoMsg): _88.SellOrder; + fromProtoMsg(message: _88.SellOrderProtoMsg): _88.SellOrder; + toProto(message: _88.SellOrder): Uint8Array; + toProtoMsg(message: _88.SellOrder): _88.SellOrderProtoMsg; + }; + AllowedDenom: { + typeUrl: string; + encode(message: _88.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.AllowedDenom; + fromPartial(object: Partial<_88.AllowedDenom>): _88.AllowedDenom; + fromAmino(object: _88.AllowedDenomAmino): _88.AllowedDenom; + toAmino(message: _88.AllowedDenom): _88.AllowedDenomAmino; + fromAminoMsg(object: _88.AllowedDenomAminoMsg): _88.AllowedDenom; + fromProtoMsg(message: _88.AllowedDenomProtoMsg): _88.AllowedDenom; + toProto(message: _88.AllowedDenom): Uint8Array; + toProtoMsg(message: _88.AllowedDenom): _88.AllowedDenomProtoMsg; + }; + Market: { + typeUrl: string; + encode(message: _88.Market, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.Market; + fromPartial(object: Partial<_88.Market>): _88.Market; + fromAmino(object: _88.MarketAmino): _88.Market; + toAmino(message: _88.Market): _88.MarketAmino; + fromAminoMsg(object: _88.MarketAminoMsg): _88.Market; + fromProtoMsg(message: _88.MarketProtoMsg): _88.Market; + toProto(message: _88.Market): Uint8Array; + toProtoMsg(message: _88.Market): _88.MarketProtoMsg; + }; + QuerySellOrderRequest: { + typeUrl: string; + encode(message: _87.QuerySellOrderRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrderRequest; + fromPartial(object: Partial<_87.QuerySellOrderRequest>): _87.QuerySellOrderRequest; + fromAmino(object: _87.QuerySellOrderRequestAmino): _87.QuerySellOrderRequest; + toAmino(message: _87.QuerySellOrderRequest): _87.QuerySellOrderRequestAmino; + fromAminoMsg(object: _87.QuerySellOrderRequestAminoMsg): _87.QuerySellOrderRequest; + fromProtoMsg(message: _87.QuerySellOrderRequestProtoMsg): _87.QuerySellOrderRequest; + toProto(message: _87.QuerySellOrderRequest): Uint8Array; + toProtoMsg(message: _87.QuerySellOrderRequest): _87.QuerySellOrderRequestProtoMsg; + }; + QuerySellOrderResponse: { + typeUrl: string; + encode(message: _87.QuerySellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrderResponse; + fromPartial(object: Partial<_87.QuerySellOrderResponse>): _87.QuerySellOrderResponse; + fromAmino(object: _87.QuerySellOrderResponseAmino): _87.QuerySellOrderResponse; + toAmino(message: _87.QuerySellOrderResponse): _87.QuerySellOrderResponseAmino; + fromAminoMsg(object: _87.QuerySellOrderResponseAminoMsg): _87.QuerySellOrderResponse; + fromProtoMsg(message: _87.QuerySellOrderResponseProtoMsg): _87.QuerySellOrderResponse; + toProto(message: _87.QuerySellOrderResponse): Uint8Array; + toProtoMsg(message: _87.QuerySellOrderResponse): _87.QuerySellOrderResponseProtoMsg; + }; + QuerySellOrdersRequest: { + typeUrl: string; + encode(message: _87.QuerySellOrdersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersRequest; + fromPartial(object: Partial<_87.QuerySellOrdersRequest>): _87.QuerySellOrdersRequest; + fromAmino(object: _87.QuerySellOrdersRequestAmino): _87.QuerySellOrdersRequest; + toAmino(message: _87.QuerySellOrdersRequest): _87.QuerySellOrdersRequestAmino; + fromAminoMsg(object: _87.QuerySellOrdersRequestAminoMsg): _87.QuerySellOrdersRequest; + fromProtoMsg(message: _87.QuerySellOrdersRequestProtoMsg): _87.QuerySellOrdersRequest; + toProto(message: _87.QuerySellOrdersRequest): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersRequest): _87.QuerySellOrdersRequestProtoMsg; + }; + QuerySellOrdersResponse: { + typeUrl: string; + encode(message: _87.QuerySellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersResponse; + fromPartial(object: Partial<_87.QuerySellOrdersResponse>): _87.QuerySellOrdersResponse; + fromAmino(object: _87.QuerySellOrdersResponseAmino): _87.QuerySellOrdersResponse; + toAmino(message: _87.QuerySellOrdersResponse): _87.QuerySellOrdersResponseAmino; + fromAminoMsg(object: _87.QuerySellOrdersResponseAminoMsg): _87.QuerySellOrdersResponse; + fromProtoMsg(message: _87.QuerySellOrdersResponseProtoMsg): _87.QuerySellOrdersResponse; + toProto(message: _87.QuerySellOrdersResponse): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersResponse): _87.QuerySellOrdersResponseProtoMsg; + }; + QuerySellOrdersByBatchRequest: { + typeUrl: string; + encode(message: _87.QuerySellOrdersByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersByBatchRequest; + fromPartial(object: Partial<_87.QuerySellOrdersByBatchRequest>): _87.QuerySellOrdersByBatchRequest; + fromAmino(object: _87.QuerySellOrdersByBatchRequestAmino): _87.QuerySellOrdersByBatchRequest; + toAmino(message: _87.QuerySellOrdersByBatchRequest): _87.QuerySellOrdersByBatchRequestAmino; + fromAminoMsg(object: _87.QuerySellOrdersByBatchRequestAminoMsg): _87.QuerySellOrdersByBatchRequest; + fromProtoMsg(message: _87.QuerySellOrdersByBatchRequestProtoMsg): _87.QuerySellOrdersByBatchRequest; + toProto(message: _87.QuerySellOrdersByBatchRequest): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersByBatchRequest): _87.QuerySellOrdersByBatchRequestProtoMsg; + }; + QuerySellOrdersByBatchResponse: { + typeUrl: string; + encode(message: _87.QuerySellOrdersByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersByBatchResponse; + fromPartial(object: Partial<_87.QuerySellOrdersByBatchResponse>): _87.QuerySellOrdersByBatchResponse; + fromAmino(object: _87.QuerySellOrdersByBatchResponseAmino): _87.QuerySellOrdersByBatchResponse; + toAmino(message: _87.QuerySellOrdersByBatchResponse): _87.QuerySellOrdersByBatchResponseAmino; + fromAminoMsg(object: _87.QuerySellOrdersByBatchResponseAminoMsg): _87.QuerySellOrdersByBatchResponse; + fromProtoMsg(message: _87.QuerySellOrdersByBatchResponseProtoMsg): _87.QuerySellOrdersByBatchResponse; + toProto(message: _87.QuerySellOrdersByBatchResponse): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersByBatchResponse): _87.QuerySellOrdersByBatchResponseProtoMsg; + }; + QuerySellOrdersBySellerRequest: { + typeUrl: string; + encode(message: _87.QuerySellOrdersBySellerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersBySellerRequest; + fromPartial(object: Partial<_87.QuerySellOrdersBySellerRequest>): _87.QuerySellOrdersBySellerRequest; + fromAmino(object: _87.QuerySellOrdersBySellerRequestAmino): _87.QuerySellOrdersBySellerRequest; + toAmino(message: _87.QuerySellOrdersBySellerRequest): _87.QuerySellOrdersBySellerRequestAmino; + fromAminoMsg(object: _87.QuerySellOrdersBySellerRequestAminoMsg): _87.QuerySellOrdersBySellerRequest; + fromProtoMsg(message: _87.QuerySellOrdersBySellerRequestProtoMsg): _87.QuerySellOrdersBySellerRequest; + toProto(message: _87.QuerySellOrdersBySellerRequest): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersBySellerRequest): _87.QuerySellOrdersBySellerRequestProtoMsg; + }; + QuerySellOrdersBySellerResponse: { + typeUrl: string; + encode(message: _87.QuerySellOrdersBySellerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersBySellerResponse; + fromPartial(object: Partial<_87.QuerySellOrdersBySellerResponse>): _87.QuerySellOrdersBySellerResponse; + fromAmino(object: _87.QuerySellOrdersBySellerResponseAmino): _87.QuerySellOrdersBySellerResponse; + toAmino(message: _87.QuerySellOrdersBySellerResponse): _87.QuerySellOrdersBySellerResponseAmino; + fromAminoMsg(object: _87.QuerySellOrdersBySellerResponseAminoMsg): _87.QuerySellOrdersBySellerResponse; + fromProtoMsg(message: _87.QuerySellOrdersBySellerResponseProtoMsg): _87.QuerySellOrdersBySellerResponse; + toProto(message: _87.QuerySellOrdersBySellerResponse): Uint8Array; + toProtoMsg(message: _87.QuerySellOrdersBySellerResponse): _87.QuerySellOrdersBySellerResponseProtoMsg; + }; + QueryAllowedDenomsRequest: { + typeUrl: string; + encode(message: _87.QueryAllowedDenomsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QueryAllowedDenomsRequest; + fromPartial(object: Partial<_87.QueryAllowedDenomsRequest>): _87.QueryAllowedDenomsRequest; + fromAmino(object: _87.QueryAllowedDenomsRequestAmino): _87.QueryAllowedDenomsRequest; + toAmino(message: _87.QueryAllowedDenomsRequest): _87.QueryAllowedDenomsRequestAmino; + fromAminoMsg(object: _87.QueryAllowedDenomsRequestAminoMsg): _87.QueryAllowedDenomsRequest; + fromProtoMsg(message: _87.QueryAllowedDenomsRequestProtoMsg): _87.QueryAllowedDenomsRequest; + toProto(message: _87.QueryAllowedDenomsRequest): Uint8Array; + toProtoMsg(message: _87.QueryAllowedDenomsRequest): _87.QueryAllowedDenomsRequestProtoMsg; + }; + QueryAllowedDenomsResponse: { + typeUrl: string; + encode(message: _87.QueryAllowedDenomsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QueryAllowedDenomsResponse; + fromPartial(object: Partial<_87.QueryAllowedDenomsResponse>): _87.QueryAllowedDenomsResponse; + fromAmino(object: _87.QueryAllowedDenomsResponseAmino): _87.QueryAllowedDenomsResponse; + toAmino(message: _87.QueryAllowedDenomsResponse): _87.QueryAllowedDenomsResponseAmino; + fromAminoMsg(object: _87.QueryAllowedDenomsResponseAminoMsg): _87.QueryAllowedDenomsResponse; + fromProtoMsg(message: _87.QueryAllowedDenomsResponseProtoMsg): _87.QueryAllowedDenomsResponse; + toProto(message: _87.QueryAllowedDenomsResponse): Uint8Array; + toProtoMsg(message: _87.QueryAllowedDenomsResponse): _87.QueryAllowedDenomsResponseProtoMsg; + }; + SellOrderInfo: { + typeUrl: string; + encode(message: _87.SellOrderInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.SellOrderInfo; + fromPartial(object: Partial<_87.SellOrderInfo>): _87.SellOrderInfo; + fromAmino(object: _87.SellOrderInfoAmino): _87.SellOrderInfo; + toAmino(message: _87.SellOrderInfo): _87.SellOrderInfoAmino; + fromAminoMsg(object: _87.SellOrderInfoAminoMsg): _87.SellOrderInfo; + fromProtoMsg(message: _87.SellOrderInfoProtoMsg): _87.SellOrderInfo; + toProto(message: _87.SellOrderInfo): Uint8Array; + toProtoMsg(message: _87.SellOrderInfo): _87.SellOrderInfoProtoMsg; + }; + EventSell: { + typeUrl: string; + encode(message: _86.EventSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventSell; + fromPartial(object: Partial<_86.EventSell>): _86.EventSell; + fromAmino(object: _86.EventSellAmino): _86.EventSell; + toAmino(message: _86.EventSell): _86.EventSellAmino; + fromAminoMsg(object: _86.EventSellAminoMsg): _86.EventSell; + fromProtoMsg(message: _86.EventSellProtoMsg): _86.EventSell; + toProto(message: _86.EventSell): Uint8Array; + toProtoMsg(message: _86.EventSell): _86.EventSellProtoMsg; + }; + EventBuyDirect: { + typeUrl: string; + encode(message: _86.EventBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventBuyDirect; + fromPartial(object: Partial<_86.EventBuyDirect>): _86.EventBuyDirect; + fromAmino(object: _86.EventBuyDirectAmino): _86.EventBuyDirect; + toAmino(message: _86.EventBuyDirect): _86.EventBuyDirectAmino; + fromAminoMsg(object: _86.EventBuyDirectAminoMsg): _86.EventBuyDirect; + fromProtoMsg(message: _86.EventBuyDirectProtoMsg): _86.EventBuyDirect; + toProto(message: _86.EventBuyDirect): Uint8Array; + toProtoMsg(message: _86.EventBuyDirect): _86.EventBuyDirectProtoMsg; + }; + EventUpdateSellOrder: { + typeUrl: string; + encode(message: _86.EventUpdateSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventUpdateSellOrder; + fromPartial(object: Partial<_86.EventUpdateSellOrder>): _86.EventUpdateSellOrder; + fromAmino(object: _86.EventUpdateSellOrderAmino): _86.EventUpdateSellOrder; + toAmino(message: _86.EventUpdateSellOrder): _86.EventUpdateSellOrderAmino; + fromAminoMsg(object: _86.EventUpdateSellOrderAminoMsg): _86.EventUpdateSellOrder; + fromProtoMsg(message: _86.EventUpdateSellOrderProtoMsg): _86.EventUpdateSellOrder; + toProto(message: _86.EventUpdateSellOrder): Uint8Array; + toProtoMsg(message: _86.EventUpdateSellOrder): _86.EventUpdateSellOrderProtoMsg; + }; + EventCancelSellOrder: { + typeUrl: string; + encode(message: _86.EventCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventCancelSellOrder; + fromPartial(object: Partial<_86.EventCancelSellOrder>): _86.EventCancelSellOrder; + fromAmino(object: _86.EventCancelSellOrderAmino): _86.EventCancelSellOrder; + toAmino(message: _86.EventCancelSellOrder): _86.EventCancelSellOrderAmino; + fromAminoMsg(object: _86.EventCancelSellOrderAminoMsg): _86.EventCancelSellOrder; + fromProtoMsg(message: _86.EventCancelSellOrderProtoMsg): _86.EventCancelSellOrder; + toProto(message: _86.EventCancelSellOrder): Uint8Array; + toProtoMsg(message: _86.EventCancelSellOrder): _86.EventCancelSellOrderProtoMsg; + }; + EventAllowDenom: { + typeUrl: string; + encode(message: _86.EventAllowDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventAllowDenom; + fromPartial(object: Partial<_86.EventAllowDenom>): _86.EventAllowDenom; + fromAmino(object: _86.EventAllowDenomAmino): _86.EventAllowDenom; + toAmino(message: _86.EventAllowDenom): _86.EventAllowDenomAmino; + fromAminoMsg(object: _86.EventAllowDenomAminoMsg): _86.EventAllowDenom; + fromProtoMsg(message: _86.EventAllowDenomProtoMsg): _86.EventAllowDenom; + toProto(message: _86.EventAllowDenom): Uint8Array; + toProtoMsg(message: _86.EventAllowDenom): _86.EventAllowDenomProtoMsg; + }; + EventRemoveAllowedDenom: { + typeUrl: string; + encode(message: _86.EventRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventRemoveAllowedDenom; + fromPartial(object: Partial<_86.EventRemoveAllowedDenom>): _86.EventRemoveAllowedDenom; + fromAmino(object: _86.EventRemoveAllowedDenomAmino): _86.EventRemoveAllowedDenom; + toAmino(message: _86.EventRemoveAllowedDenom): _86.EventRemoveAllowedDenomAmino; + fromAminoMsg(object: _86.EventRemoveAllowedDenomAminoMsg): _86.EventRemoveAllowedDenom; + fromProtoMsg(message: _86.EventRemoveAllowedDenomProtoMsg): _86.EventRemoveAllowedDenom; + toProto(message: _86.EventRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: _86.EventRemoveAllowedDenom): _86.EventRemoveAllowedDenomProtoMsg; + }; + }; + } + namespace orderbook { + const v1alpha1: { + BuyOrderSellOrderMatch: { + typeUrl: string; + encode(message: _91.BuyOrderSellOrderMatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderSellOrderMatch; + fromPartial(object: Partial<_91.BuyOrderSellOrderMatch>): _91.BuyOrderSellOrderMatch; + fromAmino(object: _91.BuyOrderSellOrderMatchAmino): _91.BuyOrderSellOrderMatch; + toAmino(message: _91.BuyOrderSellOrderMatch): _91.BuyOrderSellOrderMatchAmino; + fromAminoMsg(object: _91.BuyOrderSellOrderMatchAminoMsg): _91.BuyOrderSellOrderMatch; + fromProtoMsg(message: _91.BuyOrderSellOrderMatchProtoMsg): _91.BuyOrderSellOrderMatch; + toProto(message: _91.BuyOrderSellOrderMatch): Uint8Array; + toProtoMsg(message: _91.BuyOrderSellOrderMatch): _91.BuyOrderSellOrderMatchProtoMsg; + }; + BuyOrderClassSelector: { + typeUrl: string; + encode(message: _91.BuyOrderClassSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderClassSelector; + fromPartial(object: Partial<_91.BuyOrderClassSelector>): _91.BuyOrderClassSelector; + fromAmino(object: _91.BuyOrderClassSelectorAmino): _91.BuyOrderClassSelector; + toAmino(message: _91.BuyOrderClassSelector): _91.BuyOrderClassSelectorAmino; + fromAminoMsg(object: _91.BuyOrderClassSelectorAminoMsg): _91.BuyOrderClassSelector; + fromProtoMsg(message: _91.BuyOrderClassSelectorProtoMsg): _91.BuyOrderClassSelector; + toProto(message: _91.BuyOrderClassSelector): Uint8Array; + toProtoMsg(message: _91.BuyOrderClassSelector): _91.BuyOrderClassSelectorProtoMsg; + }; + BuyOrderProjectSelector: { + typeUrl: string; + encode(message: _91.BuyOrderProjectSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderProjectSelector; + fromPartial(object: Partial<_91.BuyOrderProjectSelector>): _91.BuyOrderProjectSelector; + fromAmino(object: _91.BuyOrderProjectSelectorAmino): _91.BuyOrderProjectSelector; + toAmino(message: _91.BuyOrderProjectSelector): _91.BuyOrderProjectSelectorAmino; + fromAminoMsg(object: _91.BuyOrderProjectSelectorAminoMsg): _91.BuyOrderProjectSelector; + fromProtoMsg(message: _91.BuyOrderProjectSelectorProtoMsg): _91.BuyOrderProjectSelector; + toProto(message: _91.BuyOrderProjectSelector): Uint8Array; + toProtoMsg(message: _91.BuyOrderProjectSelector): _91.BuyOrderProjectSelectorProtoMsg; + }; + BuyOrderBatchSelector: { + typeUrl: string; + encode(message: _91.BuyOrderBatchSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderBatchSelector; + fromPartial(object: Partial<_91.BuyOrderBatchSelector>): _91.BuyOrderBatchSelector; + fromAmino(object: _91.BuyOrderBatchSelectorAmino): _91.BuyOrderBatchSelector; + toAmino(message: _91.BuyOrderBatchSelector): _91.BuyOrderBatchSelectorAmino; + fromAminoMsg(object: _91.BuyOrderBatchSelectorAminoMsg): _91.BuyOrderBatchSelector; + fromProtoMsg(message: _91.BuyOrderBatchSelectorProtoMsg): _91.BuyOrderBatchSelector; + toProto(message: _91.BuyOrderBatchSelector): Uint8Array; + toProtoMsg(message: _91.BuyOrderBatchSelector): _91.BuyOrderBatchSelectorProtoMsg; + }; + }; + } + const v1: { + MsgClientImpl: typeof _214.MsgClientImpl; + QueryClientImpl: typeof _208.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + classes(request?: _93.QueryClassesRequest): Promise<_93.QueryClassesResponse>; + classesByAdmin(request: _93.QueryClassesByAdminRequest): Promise<_93.QueryClassesByAdminResponse>; + class(request: _93.QueryClassRequest): Promise<_93.QueryClassResponse>; + classIssuers(request: _93.QueryClassIssuersRequest): Promise<_93.QueryClassIssuersResponse>; + projects(request?: _93.QueryProjectsRequest): Promise<_93.QueryProjectsResponse>; + projectsByClass(request: _93.QueryProjectsByClassRequest): Promise<_93.QueryProjectsByClassResponse>; + projectsByReferenceId(request: _93.QueryProjectsByReferenceIdRequest): Promise<_93.QueryProjectsByReferenceIdResponse>; + projectsByAdmin(request: _93.QueryProjectsByAdminRequest): Promise<_93.QueryProjectsByAdminResponse>; + project(request: _93.QueryProjectRequest): Promise<_93.QueryProjectResponse>; + batches(request?: _93.QueryBatchesRequest): Promise<_93.QueryBatchesResponse>; + batchesByIssuer(request: _93.QueryBatchesByIssuerRequest): Promise<_93.QueryBatchesByIssuerResponse>; + batchesByClass(request: _93.QueryBatchesByClassRequest): Promise<_93.QueryBatchesByClassResponse>; + batchesByProject(request: _93.QueryBatchesByProjectRequest): Promise<_93.QueryBatchesByProjectResponse>; + batch(request: _93.QueryBatchRequest): Promise<_93.QueryBatchResponse>; + balance(request: _93.QueryBalanceRequest): Promise<_93.QueryBalanceResponse>; + balances(request: _93.QueryBalancesRequest): Promise<_93.QueryBalancesResponse>; + balancesByBatch(request: _93.QueryBalancesByBatchRequest): Promise<_93.QueryBalancesByBatchResponse>; + allBalances(request?: _93.QueryAllBalancesRequest): Promise<_93.QueryAllBalancesResponse>; + supply(request: _93.QuerySupplyRequest): Promise<_93.QuerySupplyResponse>; + creditTypes(request?: _93.QueryCreditTypesRequest): Promise<_93.QueryCreditTypesResponse>; + params(request?: _93.QueryParamsRequest): Promise<_93.QueryParamsResponse>; + creditType(request: _93.QueryCreditTypeRequest): Promise<_93.QueryCreditTypeResponse>; + classCreatorAllowlist(request?: _93.QueryClassCreatorAllowlistRequest): Promise<_93.QueryClassCreatorAllowlistResponse>; + allowedClassCreators(request?: _93.QueryAllowedClassCreatorsRequest): Promise<_93.QueryAllowedClassCreatorsResponse>; + classFee(request?: _93.QueryClassFeeRequest): Promise<_93.QueryClassFeeResponse>; + allowedBridgeChains(request?: _93.QueryAllowedBridgeChainsRequest): Promise<_93.QueryAllowedBridgeChainsResponse>; + }; + LCDQueryClient: typeof _202.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createClass(value: _95.MsgCreateClass): { + typeUrl: string; + value: Uint8Array; + }; + createProject(value: _95.MsgCreateProject): { + typeUrl: string; + value: Uint8Array; + }; + createBatch(value: _95.MsgCreateBatch): { + typeUrl: string; + value: Uint8Array; + }; + mintBatchCredits(value: _95.MsgMintBatchCredits): { + typeUrl: string; + value: Uint8Array; + }; + sealBatch(value: _95.MsgSealBatch): { + typeUrl: string; + value: Uint8Array; + }; + send(value: _95.MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + retire(value: _95.MsgRetire): { + typeUrl: string; + value: Uint8Array; + }; + cancel(value: _95.MsgCancel): { + typeUrl: string; + value: Uint8Array; + }; + updateClassAdmin(value: _95.MsgUpdateClassAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateClassIssuers(value: _95.MsgUpdateClassIssuers): { + typeUrl: string; + value: Uint8Array; + }; + updateClassMetadata(value: _95.MsgUpdateClassMetadata): { + typeUrl: string; + value: Uint8Array; + }; + updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { + typeUrl: string; + value: Uint8Array; + }; + updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { + typeUrl: string; + value: Uint8Array; + }; + bridge(value: _95.MsgBridge): { + typeUrl: string; + value: Uint8Array; + }; + bridgeReceive(value: _95.MsgBridgeReceive): { + typeUrl: string; + value: Uint8Array; + }; + addCreditType(value: _95.MsgAddCreditType): { + typeUrl: string; + value: Uint8Array; + }; + setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: Uint8Array; + }; + addClassCreator(value: _95.MsgAddClassCreator): { + typeUrl: string; + value: Uint8Array; + }; + removeClassCreator(value: _95.MsgRemoveClassCreator): { + typeUrl: string; + value: Uint8Array; + }; + updateClassFee(value: _95.MsgUpdateClassFee): { + typeUrl: string; + value: Uint8Array; + }; + addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { + typeUrl: string; + value: Uint8Array; + }; + removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClass(value: _95.MsgCreateClass): { + typeUrl: string; + value: _95.MsgCreateClass; + }; + createProject(value: _95.MsgCreateProject): { + typeUrl: string; + value: _95.MsgCreateProject; + }; + createBatch(value: _95.MsgCreateBatch): { + typeUrl: string; + value: _95.MsgCreateBatch; + }; + mintBatchCredits(value: _95.MsgMintBatchCredits): { + typeUrl: string; + value: _95.MsgMintBatchCredits; + }; + sealBatch(value: _95.MsgSealBatch): { + typeUrl: string; + value: _95.MsgSealBatch; + }; + send(value: _95.MsgSend): { + typeUrl: string; + value: _95.MsgSend; + }; + retire(value: _95.MsgRetire): { + typeUrl: string; + value: _95.MsgRetire; + }; + cancel(value: _95.MsgCancel): { + typeUrl: string; + value: _95.MsgCancel; + }; + updateClassAdmin(value: _95.MsgUpdateClassAdmin): { + typeUrl: string; + value: _95.MsgUpdateClassAdmin; + }; + updateClassIssuers(value: _95.MsgUpdateClassIssuers): { + typeUrl: string; + value: _95.MsgUpdateClassIssuers; + }; + updateClassMetadata(value: _95.MsgUpdateClassMetadata): { + typeUrl: string; + value: _95.MsgUpdateClassMetadata; + }; + updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { + typeUrl: string; + value: _95.MsgUpdateProjectAdmin; + }; + updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { + typeUrl: string; + value: _95.MsgUpdateProjectMetadata; + }; + updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { + typeUrl: string; + value: _95.MsgUpdateBatchMetadata; + }; + bridge(value: _95.MsgBridge): { + typeUrl: string; + value: _95.MsgBridge; + }; + bridgeReceive(value: _95.MsgBridgeReceive): { + typeUrl: string; + value: _95.MsgBridgeReceive; + }; + addCreditType(value: _95.MsgAddCreditType): { + typeUrl: string; + value: _95.MsgAddCreditType; + }; + setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: _95.MsgSetClassCreatorAllowlist; + }; + addClassCreator(value: _95.MsgAddClassCreator): { + typeUrl: string; + value: _95.MsgAddClassCreator; + }; + removeClassCreator(value: _95.MsgRemoveClassCreator): { + typeUrl: string; + value: _95.MsgRemoveClassCreator; + }; + updateClassFee(value: _95.MsgUpdateClassFee): { + typeUrl: string; + value: _95.MsgUpdateClassFee; + }; + addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { + typeUrl: string; + value: _95.MsgAddAllowedBridgeChain; + }; + removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: _95.MsgRemoveAllowedBridgeChain; + }; + }; + fromPartial: { + createClass(value: _95.MsgCreateClass): { + typeUrl: string; + value: _95.MsgCreateClass; + }; + createProject(value: _95.MsgCreateProject): { + typeUrl: string; + value: _95.MsgCreateProject; + }; + createBatch(value: _95.MsgCreateBatch): { + typeUrl: string; + value: _95.MsgCreateBatch; + }; + mintBatchCredits(value: _95.MsgMintBatchCredits): { + typeUrl: string; + value: _95.MsgMintBatchCredits; + }; + sealBatch(value: _95.MsgSealBatch): { + typeUrl: string; + value: _95.MsgSealBatch; + }; + send(value: _95.MsgSend): { + typeUrl: string; + value: _95.MsgSend; + }; + retire(value: _95.MsgRetire): { + typeUrl: string; + value: _95.MsgRetire; + }; + cancel(value: _95.MsgCancel): { + typeUrl: string; + value: _95.MsgCancel; + }; + updateClassAdmin(value: _95.MsgUpdateClassAdmin): { + typeUrl: string; + value: _95.MsgUpdateClassAdmin; + }; + updateClassIssuers(value: _95.MsgUpdateClassIssuers): { + typeUrl: string; + value: _95.MsgUpdateClassIssuers; + }; + updateClassMetadata(value: _95.MsgUpdateClassMetadata): { + typeUrl: string; + value: _95.MsgUpdateClassMetadata; + }; + updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { + typeUrl: string; + value: _95.MsgUpdateProjectAdmin; + }; + updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { + typeUrl: string; + value: _95.MsgUpdateProjectMetadata; + }; + updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { + typeUrl: string; + value: _95.MsgUpdateBatchMetadata; + }; + bridge(value: _95.MsgBridge): { + typeUrl: string; + value: _95.MsgBridge; + }; + bridgeReceive(value: _95.MsgBridgeReceive): { + typeUrl: string; + value: _95.MsgBridgeReceive; + }; + addCreditType(value: _95.MsgAddCreditType): { + typeUrl: string; + value: _95.MsgAddCreditType; + }; + setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: _95.MsgSetClassCreatorAllowlist; + }; + addClassCreator(value: _95.MsgAddClassCreator): { + typeUrl: string; + value: _95.MsgAddClassCreator; + }; + removeClassCreator(value: _95.MsgRemoveClassCreator): { + typeUrl: string; + value: _95.MsgRemoveClassCreator; + }; + updateClassFee(value: _95.MsgUpdateClassFee): { + typeUrl: string; + value: _95.MsgUpdateClassFee; + }; + addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { + typeUrl: string; + value: _95.MsgAddAllowedBridgeChain; + }; + removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: _95.MsgRemoveAllowedBridgeChain; + }; + }; + }; + AminoConverter: { + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: string; + toAmino: (message: _95.MsgCreateClass) => _95.MsgCreateClassAmino; + fromAmino: (object: _95.MsgCreateClassAmino) => _95.MsgCreateClass; + }; + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: string; + toAmino: (message: _95.MsgCreateProject) => _95.MsgCreateProjectAmino; + fromAmino: (object: _95.MsgCreateProjectAmino) => _95.MsgCreateProject; + }; + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: _95.MsgCreateBatch) => _95.MsgCreateBatchAmino; + fromAmino: (object: _95.MsgCreateBatchAmino) => _95.MsgCreateBatch; + }; + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: string; + toAmino: (message: _95.MsgMintBatchCredits) => _95.MsgMintBatchCreditsAmino; + fromAmino: (object: _95.MsgMintBatchCreditsAmino) => _95.MsgMintBatchCredits; + }; + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: string; + toAmino: (message: _95.MsgSealBatch) => _95.MsgSealBatchAmino; + fromAmino: (object: _95.MsgSealBatchAmino) => _95.MsgSealBatch; + }; + "/regen.ecocredit.v1.MsgSend": { + aminoType: string; + toAmino: (message: _95.MsgSend) => _95.MsgSendAmino; + fromAmino: (object: _95.MsgSendAmino) => _95.MsgSend; + }; + "/regen.ecocredit.v1.MsgRetire": { + aminoType: string; + toAmino: (message: _95.MsgRetire) => _95.MsgRetireAmino; + fromAmino: (object: _95.MsgRetireAmino) => _95.MsgRetire; + }; + "/regen.ecocredit.v1.MsgCancel": { + aminoType: string; + toAmino: (message: _95.MsgCancel) => _95.MsgCancelAmino; + fromAmino: (object: _95.MsgCancelAmino) => _95.MsgCancel; + }; + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: _95.MsgUpdateClassAdmin) => _95.MsgUpdateClassAdminAmino; + fromAmino: (object: _95.MsgUpdateClassAdminAmino) => _95.MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: _95.MsgUpdateClassIssuers) => _95.MsgUpdateClassIssuersAmino; + fromAmino: (object: _95.MsgUpdateClassIssuersAmino) => _95.MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: _95.MsgUpdateClassMetadata) => _95.MsgUpdateClassMetadataAmino; + fromAmino: (object: _95.MsgUpdateClassMetadataAmino) => _95.MsgUpdateClassMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: string; + toAmino: (message: _95.MsgUpdateProjectAdmin) => _95.MsgUpdateProjectAdminAmino; + fromAmino: (object: _95.MsgUpdateProjectAdminAmino) => _95.MsgUpdateProjectAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: string; + toAmino: (message: _95.MsgUpdateProjectMetadata) => _95.MsgUpdateProjectMetadataAmino; + fromAmino: (object: _95.MsgUpdateProjectMetadataAmino) => _95.MsgUpdateProjectMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: string; + toAmino: (message: _95.MsgUpdateBatchMetadata) => _95.MsgUpdateBatchMetadataAmino; + fromAmino: (object: _95.MsgUpdateBatchMetadataAmino) => _95.MsgUpdateBatchMetadata; + }; + "/regen.ecocredit.v1.MsgBridge": { + aminoType: string; + toAmino: (message: _95.MsgBridge) => _95.MsgBridgeAmino; + fromAmino: (object: _95.MsgBridgeAmino) => _95.MsgBridge; + }; + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: string; + toAmino: (message: _95.MsgBridgeReceive) => _95.MsgBridgeReceiveAmino; + fromAmino: (object: _95.MsgBridgeReceiveAmino) => _95.MsgBridgeReceive; + }; + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: string; + toAmino: (message: _95.MsgAddCreditType) => _95.MsgAddCreditTypeAmino; + fromAmino: (object: _95.MsgAddCreditTypeAmino) => _95.MsgAddCreditType; + }; + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: string; + toAmino: (message: _95.MsgSetClassCreatorAllowlist) => _95.MsgSetClassCreatorAllowlistAmino; + fromAmino: (object: _95.MsgSetClassCreatorAllowlistAmino) => _95.MsgSetClassCreatorAllowlist; + }; + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: string; + toAmino: (message: _95.MsgAddClassCreator) => _95.MsgAddClassCreatorAmino; + fromAmino: (object: _95.MsgAddClassCreatorAmino) => _95.MsgAddClassCreator; + }; + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: string; + toAmino: (message: _95.MsgRemoveClassCreator) => _95.MsgRemoveClassCreatorAmino; + fromAmino: (object: _95.MsgRemoveClassCreatorAmino) => _95.MsgRemoveClassCreator; + }; + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: string; + toAmino: (message: _95.MsgUpdateClassFee) => _95.MsgUpdateClassFeeAmino; + fromAmino: (object: _95.MsgUpdateClassFeeAmino) => _95.MsgUpdateClassFee; + }; + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: string; + toAmino: (message: _95.MsgAddAllowedBridgeChain) => _95.MsgAddAllowedBridgeChainAmino; + fromAmino: (object: _95.MsgAddAllowedBridgeChainAmino) => _95.MsgAddAllowedBridgeChain; + }; + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: string; + toAmino: (message: _95.MsgRemoveAllowedBridgeChain) => _95.MsgRemoveAllowedBridgeChainAmino; + fromAmino: (object: _95.MsgRemoveAllowedBridgeChainAmino) => _95.MsgRemoveAllowedBridgeChain; + }; + }; + Params: { + typeUrl: string; + encode(message: _96.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.Params; + fromPartial(object: Partial<_96.Params>): _96.Params; + fromAmino(object: _96.ParamsAmino): _96.Params; + toAmino(message: _96.Params): _96.ParamsAmino; + fromAminoMsg(object: _96.ParamsAminoMsg): _96.Params; + fromProtoMsg(message: _96.ParamsProtoMsg): _96.Params; + toProto(message: _96.Params): Uint8Array; + toProtoMsg(message: _96.Params): _96.ParamsProtoMsg; + }; + Credits: { + typeUrl: string; + encode(message: _96.Credits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.Credits; + fromPartial(object: Partial<_96.Credits>): _96.Credits; + fromAmino(object: _96.CreditsAmino): _96.Credits; + toAmino(message: _96.Credits): _96.CreditsAmino; + fromAminoMsg(object: _96.CreditsAminoMsg): _96.Credits; + fromProtoMsg(message: _96.CreditsProtoMsg): _96.Credits; + toProto(message: _96.Credits): Uint8Array; + toProtoMsg(message: _96.Credits): _96.CreditsProtoMsg; + }; + BatchIssuance: { + typeUrl: string; + encode(message: _96.BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.BatchIssuance; + fromPartial(object: Partial<_96.BatchIssuance>): _96.BatchIssuance; + fromAmino(object: _96.BatchIssuanceAmino): _96.BatchIssuance; + toAmino(message: _96.BatchIssuance): _96.BatchIssuanceAmino; + fromAminoMsg(object: _96.BatchIssuanceAminoMsg): _96.BatchIssuance; + fromProtoMsg(message: _96.BatchIssuanceProtoMsg): _96.BatchIssuance; + toProto(message: _96.BatchIssuance): Uint8Array; + toProtoMsg(message: _96.BatchIssuance): _96.BatchIssuanceProtoMsg; + }; + OriginTx: { + typeUrl: string; + encode(message: _96.OriginTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.OriginTx; + fromPartial(object: Partial<_96.OriginTx>): _96.OriginTx; + fromAmino(object: _96.OriginTxAmino): _96.OriginTx; + toAmino(message: _96.OriginTx): _96.OriginTxAmino; + fromAminoMsg(object: _96.OriginTxAminoMsg): _96.OriginTx; + fromProtoMsg(message: _96.OriginTxProtoMsg): _96.OriginTx; + toProto(message: _96.OriginTx): Uint8Array; + toProtoMsg(message: _96.OriginTx): _96.OriginTxProtoMsg; + }; + CreditTypeProposal: { + typeUrl: string; + encode(message: _96.CreditTypeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.CreditTypeProposal; + fromPartial(object: Partial<_96.CreditTypeProposal>): _96.CreditTypeProposal; + fromAmino(object: _96.CreditTypeProposalAmino): _96.CreditTypeProposal; + toAmino(message: _96.CreditTypeProposal): _96.CreditTypeProposalAmino; + fromAminoMsg(object: _96.CreditTypeProposalAminoMsg): _96.CreditTypeProposal; + fromProtoMsg(message: _96.CreditTypeProposalProtoMsg): _96.CreditTypeProposal; + toProto(message: _96.CreditTypeProposal): Uint8Array; + toProtoMsg(message: _96.CreditTypeProposal): _96.CreditTypeProposalProtoMsg; + }; + AllowedDenom: { + typeUrl: string; + encode(message: _96.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.AllowedDenom; + fromPartial(object: Partial<_96.AllowedDenom>): _96.AllowedDenom; + fromAmino(object: _96.AllowedDenomAmino): _96.AllowedDenom; + toAmino(message: _96.AllowedDenom): _96.AllowedDenomAmino; + fromAminoMsg(object: _96.AllowedDenomAminoMsg): _96.AllowedDenom; + fromProtoMsg(message: _96.AllowedDenomProtoMsg): _96.AllowedDenom; + toProto(message: _96.AllowedDenom): Uint8Array; + toProtoMsg(message: _96.AllowedDenom): _96.AllowedDenomProtoMsg; + }; + MsgAddCreditType: { + typeUrl: string; + encode(message: _95.MsgAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddCreditType; + fromPartial(object: Partial<_95.MsgAddCreditType>): _95.MsgAddCreditType; + fromAmino(object: _95.MsgAddCreditTypeAmino): _95.MsgAddCreditType; + toAmino(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeAmino; + fromAminoMsg(object: _95.MsgAddCreditTypeAminoMsg): _95.MsgAddCreditType; + toAminoMsg(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeAminoMsg; + fromProtoMsg(message: _95.MsgAddCreditTypeProtoMsg): _95.MsgAddCreditType; + toProto(message: _95.MsgAddCreditType): Uint8Array; + toProtoMsg(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeProtoMsg; + }; + MsgAddCreditTypeResponse: { + typeUrl: string; + encode(_: _95.MsgAddCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddCreditTypeResponse; + fromPartial(_: Partial<_95.MsgAddCreditTypeResponse>): _95.MsgAddCreditTypeResponse; + fromAmino(_: _95.MsgAddCreditTypeResponseAmino): _95.MsgAddCreditTypeResponse; + toAmino(_: _95.MsgAddCreditTypeResponse): _95.MsgAddCreditTypeResponseAmino; + fromAminoMsg(object: _95.MsgAddCreditTypeResponseAminoMsg): _95.MsgAddCreditTypeResponse; + fromProtoMsg(message: _95.MsgAddCreditTypeResponseProtoMsg): _95.MsgAddCreditTypeResponse; + toProto(message: _95.MsgAddCreditTypeResponse): Uint8Array; + toProtoMsg(message: _95.MsgAddCreditTypeResponse): _95.MsgAddCreditTypeResponseProtoMsg; + }; + MsgCreateClass: { + typeUrl: string; + encode(message: _95.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateClass; + fromPartial(object: Partial<_95.MsgCreateClass>): _95.MsgCreateClass; + fromAmino(object: _95.MsgCreateClassAmino): _95.MsgCreateClass; + toAmino(message: _95.MsgCreateClass): _95.MsgCreateClassAmino; + fromAminoMsg(object: _95.MsgCreateClassAminoMsg): _95.MsgCreateClass; + toAminoMsg(message: _95.MsgCreateClass): _95.MsgCreateClassAminoMsg; + fromProtoMsg(message: _95.MsgCreateClassProtoMsg): _95.MsgCreateClass; + toProto(message: _95.MsgCreateClass): Uint8Array; + toProtoMsg(message: _95.MsgCreateClass): _95.MsgCreateClassProtoMsg; + }; + MsgCreateClassResponse: { + typeUrl: string; + encode(message: _95.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateClassResponse; + fromPartial(object: Partial<_95.MsgCreateClassResponse>): _95.MsgCreateClassResponse; + fromAmino(object: _95.MsgCreateClassResponseAmino): _95.MsgCreateClassResponse; + toAmino(message: _95.MsgCreateClassResponse): _95.MsgCreateClassResponseAmino; + fromAminoMsg(object: _95.MsgCreateClassResponseAminoMsg): _95.MsgCreateClassResponse; + fromProtoMsg(message: _95.MsgCreateClassResponseProtoMsg): _95.MsgCreateClassResponse; + toProto(message: _95.MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: _95.MsgCreateClassResponse): _95.MsgCreateClassResponseProtoMsg; + }; + MsgCreateProject: { + typeUrl: string; + encode(message: _95.MsgCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateProject; + fromPartial(object: Partial<_95.MsgCreateProject>): _95.MsgCreateProject; + fromAmino(object: _95.MsgCreateProjectAmino): _95.MsgCreateProject; + toAmino(message: _95.MsgCreateProject): _95.MsgCreateProjectAmino; + fromAminoMsg(object: _95.MsgCreateProjectAminoMsg): _95.MsgCreateProject; + toAminoMsg(message: _95.MsgCreateProject): _95.MsgCreateProjectAminoMsg; + fromProtoMsg(message: _95.MsgCreateProjectProtoMsg): _95.MsgCreateProject; + toProto(message: _95.MsgCreateProject): Uint8Array; + toProtoMsg(message: _95.MsgCreateProject): _95.MsgCreateProjectProtoMsg; + }; + MsgCreateProjectResponse: { + typeUrl: string; + encode(message: _95.MsgCreateProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateProjectResponse; + fromPartial(object: Partial<_95.MsgCreateProjectResponse>): _95.MsgCreateProjectResponse; + fromAmino(object: _95.MsgCreateProjectResponseAmino): _95.MsgCreateProjectResponse; + toAmino(message: _95.MsgCreateProjectResponse): _95.MsgCreateProjectResponseAmino; + fromAminoMsg(object: _95.MsgCreateProjectResponseAminoMsg): _95.MsgCreateProjectResponse; + fromProtoMsg(message: _95.MsgCreateProjectResponseProtoMsg): _95.MsgCreateProjectResponse; + toProto(message: _95.MsgCreateProjectResponse): Uint8Array; + toProtoMsg(message: _95.MsgCreateProjectResponse): _95.MsgCreateProjectResponseProtoMsg; + }; + MsgCreateBatch: { + typeUrl: string; + encode(message: _95.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateBatch; + fromPartial(object: Partial<_95.MsgCreateBatch>): _95.MsgCreateBatch; + fromAmino(object: _95.MsgCreateBatchAmino): _95.MsgCreateBatch; + toAmino(message: _95.MsgCreateBatch): _95.MsgCreateBatchAmino; + fromAminoMsg(object: _95.MsgCreateBatchAminoMsg): _95.MsgCreateBatch; + toAminoMsg(message: _95.MsgCreateBatch): _95.MsgCreateBatchAminoMsg; + fromProtoMsg(message: _95.MsgCreateBatchProtoMsg): _95.MsgCreateBatch; + toProto(message: _95.MsgCreateBatch): Uint8Array; + toProtoMsg(message: _95.MsgCreateBatch): _95.MsgCreateBatchProtoMsg; + }; + MsgCreateBatchResponse: { + typeUrl: string; + encode(message: _95.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateBatchResponse; + fromPartial(object: Partial<_95.MsgCreateBatchResponse>): _95.MsgCreateBatchResponse; + fromAmino(object: _95.MsgCreateBatchResponseAmino): _95.MsgCreateBatchResponse; + toAmino(message: _95.MsgCreateBatchResponse): _95.MsgCreateBatchResponseAmino; + fromAminoMsg(object: _95.MsgCreateBatchResponseAminoMsg): _95.MsgCreateBatchResponse; + fromProtoMsg(message: _95.MsgCreateBatchResponseProtoMsg): _95.MsgCreateBatchResponse; + toProto(message: _95.MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: _95.MsgCreateBatchResponse): _95.MsgCreateBatchResponseProtoMsg; + }; + MsgMintBatchCredits: { + typeUrl: string; + encode(message: _95.MsgMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgMintBatchCredits; + fromPartial(object: Partial<_95.MsgMintBatchCredits>): _95.MsgMintBatchCredits; + fromAmino(object: _95.MsgMintBatchCreditsAmino): _95.MsgMintBatchCredits; + toAmino(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsAmino; + fromAminoMsg(object: _95.MsgMintBatchCreditsAminoMsg): _95.MsgMintBatchCredits; + toAminoMsg(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsAminoMsg; + fromProtoMsg(message: _95.MsgMintBatchCreditsProtoMsg): _95.MsgMintBatchCredits; + toProto(message: _95.MsgMintBatchCredits): Uint8Array; + toProtoMsg(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsProtoMsg; + }; + MsgMintBatchCreditsResponse: { + typeUrl: string; + encode(_: _95.MsgMintBatchCreditsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgMintBatchCreditsResponse; + fromPartial(_: Partial<_95.MsgMintBatchCreditsResponse>): _95.MsgMintBatchCreditsResponse; + fromAmino(_: _95.MsgMintBatchCreditsResponseAmino): _95.MsgMintBatchCreditsResponse; + toAmino(_: _95.MsgMintBatchCreditsResponse): _95.MsgMintBatchCreditsResponseAmino; + fromAminoMsg(object: _95.MsgMintBatchCreditsResponseAminoMsg): _95.MsgMintBatchCreditsResponse; + fromProtoMsg(message: _95.MsgMintBatchCreditsResponseProtoMsg): _95.MsgMintBatchCreditsResponse; + toProto(message: _95.MsgMintBatchCreditsResponse): Uint8Array; + toProtoMsg(message: _95.MsgMintBatchCreditsResponse): _95.MsgMintBatchCreditsResponseProtoMsg; + }; + MsgSealBatch: { + typeUrl: string; + encode(message: _95.MsgSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSealBatch; + fromPartial(object: Partial<_95.MsgSealBatch>): _95.MsgSealBatch; + fromAmino(object: _95.MsgSealBatchAmino): _95.MsgSealBatch; + toAmino(message: _95.MsgSealBatch): _95.MsgSealBatchAmino; + fromAminoMsg(object: _95.MsgSealBatchAminoMsg): _95.MsgSealBatch; + toAminoMsg(message: _95.MsgSealBatch): _95.MsgSealBatchAminoMsg; + fromProtoMsg(message: _95.MsgSealBatchProtoMsg): _95.MsgSealBatch; + toProto(message: _95.MsgSealBatch): Uint8Array; + toProtoMsg(message: _95.MsgSealBatch): _95.MsgSealBatchProtoMsg; + }; + MsgSealBatchResponse: { + typeUrl: string; + encode(_: _95.MsgSealBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSealBatchResponse; + fromPartial(_: Partial<_95.MsgSealBatchResponse>): _95.MsgSealBatchResponse; + fromAmino(_: _95.MsgSealBatchResponseAmino): _95.MsgSealBatchResponse; + toAmino(_: _95.MsgSealBatchResponse): _95.MsgSealBatchResponseAmino; + fromAminoMsg(object: _95.MsgSealBatchResponseAminoMsg): _95.MsgSealBatchResponse; + fromProtoMsg(message: _95.MsgSealBatchResponseProtoMsg): _95.MsgSealBatchResponse; + toProto(message: _95.MsgSealBatchResponse): Uint8Array; + toProtoMsg(message: _95.MsgSealBatchResponse): _95.MsgSealBatchResponseProtoMsg; + }; + MsgSend: { + typeUrl: string; + encode(message: _95.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSend; + fromPartial(object: Partial<_95.MsgSend>): _95.MsgSend; + fromAmino(object: _95.MsgSendAmino): _95.MsgSend; + toAmino(message: _95.MsgSend): _95.MsgSendAmino; + fromAminoMsg(object: _95.MsgSendAminoMsg): _95.MsgSend; + toAminoMsg(message: _95.MsgSend): _95.MsgSendAminoMsg; + fromProtoMsg(message: _95.MsgSendProtoMsg): _95.MsgSend; + toProto(message: _95.MsgSend): Uint8Array; + toProtoMsg(message: _95.MsgSend): _95.MsgSendProtoMsg; + }; + MsgSend_SendCredits: { + typeUrl: string; + encode(message: _95.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSend_SendCredits; + fromPartial(object: Partial<_95.MsgSend_SendCredits>): _95.MsgSend_SendCredits; + fromAmino(object: _95.MsgSend_SendCreditsAmino): _95.MsgSend_SendCredits; + toAmino(message: _95.MsgSend_SendCredits): _95.MsgSend_SendCreditsAmino; + fromAminoMsg(object: _95.MsgSend_SendCreditsAminoMsg): _95.MsgSend_SendCredits; + fromProtoMsg(message: _95.MsgSend_SendCreditsProtoMsg): _95.MsgSend_SendCredits; + toProto(message: _95.MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: _95.MsgSend_SendCredits): _95.MsgSend_SendCreditsProtoMsg; + }; + MsgSendResponse: { + typeUrl: string; + encode(_: _95.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSendResponse; + fromPartial(_: Partial<_95.MsgSendResponse>): _95.MsgSendResponse; + fromAmino(_: _95.MsgSendResponseAmino): _95.MsgSendResponse; + toAmino(_: _95.MsgSendResponse): _95.MsgSendResponseAmino; + fromAminoMsg(object: _95.MsgSendResponseAminoMsg): _95.MsgSendResponse; + fromProtoMsg(message: _95.MsgSendResponseProtoMsg): _95.MsgSendResponse; + toProto(message: _95.MsgSendResponse): Uint8Array; + toProtoMsg(message: _95.MsgSendResponse): _95.MsgSendResponseProtoMsg; + }; + MsgRetire: { + typeUrl: string; + encode(message: _95.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRetire; + fromPartial(object: Partial<_95.MsgRetire>): _95.MsgRetire; + fromAmino(object: _95.MsgRetireAmino): _95.MsgRetire; + toAmino(message: _95.MsgRetire): _95.MsgRetireAmino; + fromAminoMsg(object: _95.MsgRetireAminoMsg): _95.MsgRetire; + toAminoMsg(message: _95.MsgRetire): _95.MsgRetireAminoMsg; + fromProtoMsg(message: _95.MsgRetireProtoMsg): _95.MsgRetire; + toProto(message: _95.MsgRetire): Uint8Array; + toProtoMsg(message: _95.MsgRetire): _95.MsgRetireProtoMsg; + }; + MsgRetireResponse: { + typeUrl: string; + encode(_: _95.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRetireResponse; + fromPartial(_: Partial<_95.MsgRetireResponse>): _95.MsgRetireResponse; + fromAmino(_: _95.MsgRetireResponseAmino): _95.MsgRetireResponse; + toAmino(_: _95.MsgRetireResponse): _95.MsgRetireResponseAmino; + fromAminoMsg(object: _95.MsgRetireResponseAminoMsg): _95.MsgRetireResponse; + fromProtoMsg(message: _95.MsgRetireResponseProtoMsg): _95.MsgRetireResponse; + toProto(message: _95.MsgRetireResponse): Uint8Array; + toProtoMsg(message: _95.MsgRetireResponse): _95.MsgRetireResponseProtoMsg; + }; + MsgCancel: { + typeUrl: string; + encode(message: _95.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCancel; + fromPartial(object: Partial<_95.MsgCancel>): _95.MsgCancel; + fromAmino(object: _95.MsgCancelAmino): _95.MsgCancel; + toAmino(message: _95.MsgCancel): _95.MsgCancelAmino; + fromAminoMsg(object: _95.MsgCancelAminoMsg): _95.MsgCancel; + toAminoMsg(message: _95.MsgCancel): _95.MsgCancelAminoMsg; + fromProtoMsg(message: _95.MsgCancelProtoMsg): _95.MsgCancel; + toProto(message: _95.MsgCancel): Uint8Array; + toProtoMsg(message: _95.MsgCancel): _95.MsgCancelProtoMsg; + }; + MsgCancelResponse: { + typeUrl: string; + encode(_: _95.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCancelResponse; + fromPartial(_: Partial<_95.MsgCancelResponse>): _95.MsgCancelResponse; + fromAmino(_: _95.MsgCancelResponseAmino): _95.MsgCancelResponse; + toAmino(_: _95.MsgCancelResponse): _95.MsgCancelResponseAmino; + fromAminoMsg(object: _95.MsgCancelResponseAminoMsg): _95.MsgCancelResponse; + fromProtoMsg(message: _95.MsgCancelResponseProtoMsg): _95.MsgCancelResponse; + toProto(message: _95.MsgCancelResponse): Uint8Array; + toProtoMsg(message: _95.MsgCancelResponse): _95.MsgCancelResponseProtoMsg; + }; + MsgUpdateClassAdmin: { + typeUrl: string; + encode(message: _95.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassAdmin; + fromPartial(object: Partial<_95.MsgUpdateClassAdmin>): _95.MsgUpdateClassAdmin; + fromAmino(object: _95.MsgUpdateClassAdminAmino): _95.MsgUpdateClassAdmin; + toAmino(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminAmino; + fromAminoMsg(object: _95.MsgUpdateClassAdminAminoMsg): _95.MsgUpdateClassAdmin; + toAminoMsg(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminAminoMsg; + fromProtoMsg(message: _95.MsgUpdateClassAdminProtoMsg): _95.MsgUpdateClassAdmin; + toProto(message: _95.MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminProtoMsg; + }; + MsgUpdateClassAdminResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassAdminResponse; + fromPartial(_: Partial<_95.MsgUpdateClassAdminResponse>): _95.MsgUpdateClassAdminResponse; + fromAmino(_: _95.MsgUpdateClassAdminResponseAmino): _95.MsgUpdateClassAdminResponse; + toAmino(_: _95.MsgUpdateClassAdminResponse): _95.MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: _95.MsgUpdateClassAdminResponseAminoMsg): _95.MsgUpdateClassAdminResponse; + fromProtoMsg(message: _95.MsgUpdateClassAdminResponseProtoMsg): _95.MsgUpdateClassAdminResponse; + toProto(message: _95.MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassAdminResponse): _95.MsgUpdateClassAdminResponseProtoMsg; + }; + MsgUpdateClassIssuers: { + typeUrl: string; + encode(message: _95.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassIssuers; + fromPartial(object: Partial<_95.MsgUpdateClassIssuers>): _95.MsgUpdateClassIssuers; + fromAmino(object: _95.MsgUpdateClassIssuersAmino): _95.MsgUpdateClassIssuers; + toAmino(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersAmino; + fromAminoMsg(object: _95.MsgUpdateClassIssuersAminoMsg): _95.MsgUpdateClassIssuers; + toAminoMsg(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersAminoMsg; + fromProtoMsg(message: _95.MsgUpdateClassIssuersProtoMsg): _95.MsgUpdateClassIssuers; + toProto(message: _95.MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersProtoMsg; + }; + MsgUpdateClassIssuersResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassIssuersResponse; + fromPartial(_: Partial<_95.MsgUpdateClassIssuersResponse>): _95.MsgUpdateClassIssuersResponse; + fromAmino(_: _95.MsgUpdateClassIssuersResponseAmino): _95.MsgUpdateClassIssuersResponse; + toAmino(_: _95.MsgUpdateClassIssuersResponse): _95.MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: _95.MsgUpdateClassIssuersResponseAminoMsg): _95.MsgUpdateClassIssuersResponse; + fromProtoMsg(message: _95.MsgUpdateClassIssuersResponseProtoMsg): _95.MsgUpdateClassIssuersResponse; + toProto(message: _95.MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassIssuersResponse): _95.MsgUpdateClassIssuersResponseProtoMsg; + }; + MsgUpdateClassMetadata: { + typeUrl: string; + encode(message: _95.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassMetadata; + fromPartial(object: Partial<_95.MsgUpdateClassMetadata>): _95.MsgUpdateClassMetadata; + fromAmino(object: _95.MsgUpdateClassMetadataAmino): _95.MsgUpdateClassMetadata; + toAmino(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataAmino; + fromAminoMsg(object: _95.MsgUpdateClassMetadataAminoMsg): _95.MsgUpdateClassMetadata; + toAminoMsg(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataAminoMsg; + fromProtoMsg(message: _95.MsgUpdateClassMetadataProtoMsg): _95.MsgUpdateClassMetadata; + toProto(message: _95.MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataProtoMsg; + }; + MsgUpdateClassMetadataResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassMetadataResponse; + fromPartial(_: Partial<_95.MsgUpdateClassMetadataResponse>): _95.MsgUpdateClassMetadataResponse; + fromAmino(_: _95.MsgUpdateClassMetadataResponseAmino): _95.MsgUpdateClassMetadataResponse; + toAmino(_: _95.MsgUpdateClassMetadataResponse): _95.MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: _95.MsgUpdateClassMetadataResponseAminoMsg): _95.MsgUpdateClassMetadataResponse; + fromProtoMsg(message: _95.MsgUpdateClassMetadataResponseProtoMsg): _95.MsgUpdateClassMetadataResponse; + toProto(message: _95.MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassMetadataResponse): _95.MsgUpdateClassMetadataResponseProtoMsg; + }; + MsgUpdateProjectAdmin: { + typeUrl: string; + encode(message: _95.MsgUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectAdmin; + fromPartial(object: Partial<_95.MsgUpdateProjectAdmin>): _95.MsgUpdateProjectAdmin; + fromAmino(object: _95.MsgUpdateProjectAdminAmino): _95.MsgUpdateProjectAdmin; + toAmino(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminAmino; + fromAminoMsg(object: _95.MsgUpdateProjectAdminAminoMsg): _95.MsgUpdateProjectAdmin; + toAminoMsg(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminAminoMsg; + fromProtoMsg(message: _95.MsgUpdateProjectAdminProtoMsg): _95.MsgUpdateProjectAdmin; + toProto(message: _95.MsgUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminProtoMsg; + }; + MsgUpdateProjectAdminResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateProjectAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectAdminResponse; + fromPartial(_: Partial<_95.MsgUpdateProjectAdminResponse>): _95.MsgUpdateProjectAdminResponse; + fromAmino(_: _95.MsgUpdateProjectAdminResponseAmino): _95.MsgUpdateProjectAdminResponse; + toAmino(_: _95.MsgUpdateProjectAdminResponse): _95.MsgUpdateProjectAdminResponseAmino; + fromAminoMsg(object: _95.MsgUpdateProjectAdminResponseAminoMsg): _95.MsgUpdateProjectAdminResponse; + fromProtoMsg(message: _95.MsgUpdateProjectAdminResponseProtoMsg): _95.MsgUpdateProjectAdminResponse; + toProto(message: _95.MsgUpdateProjectAdminResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateProjectAdminResponse): _95.MsgUpdateProjectAdminResponseProtoMsg; + }; + MsgUpdateProjectMetadata: { + typeUrl: string; + encode(message: _95.MsgUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectMetadata; + fromPartial(object: Partial<_95.MsgUpdateProjectMetadata>): _95.MsgUpdateProjectMetadata; + fromAmino(object: _95.MsgUpdateProjectMetadataAmino): _95.MsgUpdateProjectMetadata; + toAmino(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataAmino; + fromAminoMsg(object: _95.MsgUpdateProjectMetadataAminoMsg): _95.MsgUpdateProjectMetadata; + toAminoMsg(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataAminoMsg; + fromProtoMsg(message: _95.MsgUpdateProjectMetadataProtoMsg): _95.MsgUpdateProjectMetadata; + toProto(message: _95.MsgUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataProtoMsg; + }; + MsgUpdateProjectMetadataResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateProjectMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectMetadataResponse; + fromPartial(_: Partial<_95.MsgUpdateProjectMetadataResponse>): _95.MsgUpdateProjectMetadataResponse; + fromAmino(_: _95.MsgUpdateProjectMetadataResponseAmino): _95.MsgUpdateProjectMetadataResponse; + toAmino(_: _95.MsgUpdateProjectMetadataResponse): _95.MsgUpdateProjectMetadataResponseAmino; + fromAminoMsg(object: _95.MsgUpdateProjectMetadataResponseAminoMsg): _95.MsgUpdateProjectMetadataResponse; + fromProtoMsg(message: _95.MsgUpdateProjectMetadataResponseProtoMsg): _95.MsgUpdateProjectMetadataResponse; + toProto(message: _95.MsgUpdateProjectMetadataResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateProjectMetadataResponse): _95.MsgUpdateProjectMetadataResponseProtoMsg; + }; + MsgBridge: { + typeUrl: string; + encode(message: _95.MsgBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridge; + fromPartial(object: Partial<_95.MsgBridge>): _95.MsgBridge; + fromAmino(object: _95.MsgBridgeAmino): _95.MsgBridge; + toAmino(message: _95.MsgBridge): _95.MsgBridgeAmino; + fromAminoMsg(object: _95.MsgBridgeAminoMsg): _95.MsgBridge; + toAminoMsg(message: _95.MsgBridge): _95.MsgBridgeAminoMsg; + fromProtoMsg(message: _95.MsgBridgeProtoMsg): _95.MsgBridge; + toProto(message: _95.MsgBridge): Uint8Array; + toProtoMsg(message: _95.MsgBridge): _95.MsgBridgeProtoMsg; + }; + MsgUpdateBatchMetadata: { + typeUrl: string; + encode(message: _95.MsgUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateBatchMetadata; + fromPartial(object: Partial<_95.MsgUpdateBatchMetadata>): _95.MsgUpdateBatchMetadata; + fromAmino(object: _95.MsgUpdateBatchMetadataAmino): _95.MsgUpdateBatchMetadata; + toAmino(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataAmino; + fromAminoMsg(object: _95.MsgUpdateBatchMetadataAminoMsg): _95.MsgUpdateBatchMetadata; + toAminoMsg(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataAminoMsg; + fromProtoMsg(message: _95.MsgUpdateBatchMetadataProtoMsg): _95.MsgUpdateBatchMetadata; + toProto(message: _95.MsgUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataProtoMsg; + }; + MsgUpdateBatchMetadataResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateBatchMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateBatchMetadataResponse; + fromPartial(_: Partial<_95.MsgUpdateBatchMetadataResponse>): _95.MsgUpdateBatchMetadataResponse; + fromAmino(_: _95.MsgUpdateBatchMetadataResponseAmino): _95.MsgUpdateBatchMetadataResponse; + toAmino(_: _95.MsgUpdateBatchMetadataResponse): _95.MsgUpdateBatchMetadataResponseAmino; + fromAminoMsg(object: _95.MsgUpdateBatchMetadataResponseAminoMsg): _95.MsgUpdateBatchMetadataResponse; + fromProtoMsg(message: _95.MsgUpdateBatchMetadataResponseProtoMsg): _95.MsgUpdateBatchMetadataResponse; + toProto(message: _95.MsgUpdateBatchMetadataResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateBatchMetadataResponse): _95.MsgUpdateBatchMetadataResponseProtoMsg; + }; + MsgBridgeResponse: { + typeUrl: string; + encode(_: _95.MsgBridgeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeResponse; + fromPartial(_: Partial<_95.MsgBridgeResponse>): _95.MsgBridgeResponse; + fromAmino(_: _95.MsgBridgeResponseAmino): _95.MsgBridgeResponse; + toAmino(_: _95.MsgBridgeResponse): _95.MsgBridgeResponseAmino; + fromAminoMsg(object: _95.MsgBridgeResponseAminoMsg): _95.MsgBridgeResponse; + fromProtoMsg(message: _95.MsgBridgeResponseProtoMsg): _95.MsgBridgeResponse; + toProto(message: _95.MsgBridgeResponse): Uint8Array; + toProtoMsg(message: _95.MsgBridgeResponse): _95.MsgBridgeResponseProtoMsg; + }; + MsgBridgeReceive: { + typeUrl: string; + encode(message: _95.MsgBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive; + fromPartial(object: Partial<_95.MsgBridgeReceive>): _95.MsgBridgeReceive; + fromAmino(object: _95.MsgBridgeReceiveAmino): _95.MsgBridgeReceive; + toAmino(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveAmino; + fromAminoMsg(object: _95.MsgBridgeReceiveAminoMsg): _95.MsgBridgeReceive; + toAminoMsg(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveAminoMsg; + fromProtoMsg(message: _95.MsgBridgeReceiveProtoMsg): _95.MsgBridgeReceive; + toProto(message: _95.MsgBridgeReceive): Uint8Array; + toProtoMsg(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveProtoMsg; + }; + MsgBridgeReceive_Batch: { + typeUrl: string; + encode(message: _95.MsgBridgeReceive_Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive_Batch; + fromPartial(object: Partial<_95.MsgBridgeReceive_Batch>): _95.MsgBridgeReceive_Batch; + fromAmino(object: _95.MsgBridgeReceive_BatchAmino): _95.MsgBridgeReceive_Batch; + toAmino(message: _95.MsgBridgeReceive_Batch): _95.MsgBridgeReceive_BatchAmino; + fromAminoMsg(object: _95.MsgBridgeReceive_BatchAminoMsg): _95.MsgBridgeReceive_Batch; + fromProtoMsg(message: _95.MsgBridgeReceive_BatchProtoMsg): _95.MsgBridgeReceive_Batch; + toProto(message: _95.MsgBridgeReceive_Batch): Uint8Array; + toProtoMsg(message: _95.MsgBridgeReceive_Batch): _95.MsgBridgeReceive_BatchProtoMsg; + }; + MsgBridgeReceive_Project: { + typeUrl: string; + encode(message: _95.MsgBridgeReceive_Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive_Project; + fromPartial(object: Partial<_95.MsgBridgeReceive_Project>): _95.MsgBridgeReceive_Project; + fromAmino(object: _95.MsgBridgeReceive_ProjectAmino): _95.MsgBridgeReceive_Project; + toAmino(message: _95.MsgBridgeReceive_Project): _95.MsgBridgeReceive_ProjectAmino; + fromAminoMsg(object: _95.MsgBridgeReceive_ProjectAminoMsg): _95.MsgBridgeReceive_Project; + fromProtoMsg(message: _95.MsgBridgeReceive_ProjectProtoMsg): _95.MsgBridgeReceive_Project; + toProto(message: _95.MsgBridgeReceive_Project): Uint8Array; + toProtoMsg(message: _95.MsgBridgeReceive_Project): _95.MsgBridgeReceive_ProjectProtoMsg; + }; + MsgBridgeReceiveResponse: { + typeUrl: string; + encode(message: _95.MsgBridgeReceiveResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceiveResponse; + fromPartial(object: Partial<_95.MsgBridgeReceiveResponse>): _95.MsgBridgeReceiveResponse; + fromAmino(object: _95.MsgBridgeReceiveResponseAmino): _95.MsgBridgeReceiveResponse; + toAmino(message: _95.MsgBridgeReceiveResponse): _95.MsgBridgeReceiveResponseAmino; + fromAminoMsg(object: _95.MsgBridgeReceiveResponseAminoMsg): _95.MsgBridgeReceiveResponse; + fromProtoMsg(message: _95.MsgBridgeReceiveResponseProtoMsg): _95.MsgBridgeReceiveResponse; + toProto(message: _95.MsgBridgeReceiveResponse): Uint8Array; + toProtoMsg(message: _95.MsgBridgeReceiveResponse): _95.MsgBridgeReceiveResponseProtoMsg; + }; + MsgAddClassCreator: { + typeUrl: string; + encode(message: _95.MsgAddClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddClassCreator; + fromPartial(object: Partial<_95.MsgAddClassCreator>): _95.MsgAddClassCreator; + fromAmino(object: _95.MsgAddClassCreatorAmino): _95.MsgAddClassCreator; + toAmino(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorAmino; + fromAminoMsg(object: _95.MsgAddClassCreatorAminoMsg): _95.MsgAddClassCreator; + toAminoMsg(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorAminoMsg; + fromProtoMsg(message: _95.MsgAddClassCreatorProtoMsg): _95.MsgAddClassCreator; + toProto(message: _95.MsgAddClassCreator): Uint8Array; + toProtoMsg(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorProtoMsg; + }; + MsgAddClassCreatorResponse: { + typeUrl: string; + encode(_: _95.MsgAddClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddClassCreatorResponse; + fromPartial(_: Partial<_95.MsgAddClassCreatorResponse>): _95.MsgAddClassCreatorResponse; + fromAmino(_: _95.MsgAddClassCreatorResponseAmino): _95.MsgAddClassCreatorResponse; + toAmino(_: _95.MsgAddClassCreatorResponse): _95.MsgAddClassCreatorResponseAmino; + fromAminoMsg(object: _95.MsgAddClassCreatorResponseAminoMsg): _95.MsgAddClassCreatorResponse; + fromProtoMsg(message: _95.MsgAddClassCreatorResponseProtoMsg): _95.MsgAddClassCreatorResponse; + toProto(message: _95.MsgAddClassCreatorResponse): Uint8Array; + toProtoMsg(message: _95.MsgAddClassCreatorResponse): _95.MsgAddClassCreatorResponseProtoMsg; + }; + MsgSetClassCreatorAllowlist: { + typeUrl: string; + encode(message: _95.MsgSetClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSetClassCreatorAllowlist; + fromPartial(object: Partial<_95.MsgSetClassCreatorAllowlist>): _95.MsgSetClassCreatorAllowlist; + fromAmino(object: _95.MsgSetClassCreatorAllowlistAmino): _95.MsgSetClassCreatorAllowlist; + toAmino(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistAmino; + fromAminoMsg(object: _95.MsgSetClassCreatorAllowlistAminoMsg): _95.MsgSetClassCreatorAllowlist; + toAminoMsg(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistAminoMsg; + fromProtoMsg(message: _95.MsgSetClassCreatorAllowlistProtoMsg): _95.MsgSetClassCreatorAllowlist; + toProto(message: _95.MsgSetClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistProtoMsg; + }; + MsgSetClassCreatorAllowlistResponse: { + typeUrl: string; + encode(_: _95.MsgSetClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSetClassCreatorAllowlistResponse; + fromPartial(_: Partial<_95.MsgSetClassCreatorAllowlistResponse>): _95.MsgSetClassCreatorAllowlistResponse; + fromAmino(_: _95.MsgSetClassCreatorAllowlistResponseAmino): _95.MsgSetClassCreatorAllowlistResponse; + toAmino(_: _95.MsgSetClassCreatorAllowlistResponse): _95.MsgSetClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: _95.MsgSetClassCreatorAllowlistResponseAminoMsg): _95.MsgSetClassCreatorAllowlistResponse; + fromProtoMsg(message: _95.MsgSetClassCreatorAllowlistResponseProtoMsg): _95.MsgSetClassCreatorAllowlistResponse; + toProto(message: _95.MsgSetClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: _95.MsgSetClassCreatorAllowlistResponse): _95.MsgSetClassCreatorAllowlistResponseProtoMsg; + }; + MsgRemoveClassCreator: { + typeUrl: string; + encode(message: _95.MsgRemoveClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveClassCreator; + fromPartial(object: Partial<_95.MsgRemoveClassCreator>): _95.MsgRemoveClassCreator; + fromAmino(object: _95.MsgRemoveClassCreatorAmino): _95.MsgRemoveClassCreator; + toAmino(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorAmino; + fromAminoMsg(object: _95.MsgRemoveClassCreatorAminoMsg): _95.MsgRemoveClassCreator; + toAminoMsg(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorAminoMsg; + fromProtoMsg(message: _95.MsgRemoveClassCreatorProtoMsg): _95.MsgRemoveClassCreator; + toProto(message: _95.MsgRemoveClassCreator): Uint8Array; + toProtoMsg(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorProtoMsg; + }; + MsgRemoveClassCreatorResponse: { + typeUrl: string; + encode(_: _95.MsgRemoveClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveClassCreatorResponse; + fromPartial(_: Partial<_95.MsgRemoveClassCreatorResponse>): _95.MsgRemoveClassCreatorResponse; + fromAmino(_: _95.MsgRemoveClassCreatorResponseAmino): _95.MsgRemoveClassCreatorResponse; + toAmino(_: _95.MsgRemoveClassCreatorResponse): _95.MsgRemoveClassCreatorResponseAmino; + fromAminoMsg(object: _95.MsgRemoveClassCreatorResponseAminoMsg): _95.MsgRemoveClassCreatorResponse; + fromProtoMsg(message: _95.MsgRemoveClassCreatorResponseProtoMsg): _95.MsgRemoveClassCreatorResponse; + toProto(message: _95.MsgRemoveClassCreatorResponse): Uint8Array; + toProtoMsg(message: _95.MsgRemoveClassCreatorResponse): _95.MsgRemoveClassCreatorResponseProtoMsg; + }; + MsgUpdateClassFee: { + typeUrl: string; + encode(message: _95.MsgUpdateClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassFee; + fromPartial(object: Partial<_95.MsgUpdateClassFee>): _95.MsgUpdateClassFee; + fromAmino(object: _95.MsgUpdateClassFeeAmino): _95.MsgUpdateClassFee; + toAmino(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeAmino; + fromAminoMsg(object: _95.MsgUpdateClassFeeAminoMsg): _95.MsgUpdateClassFee; + toAminoMsg(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeAminoMsg; + fromProtoMsg(message: _95.MsgUpdateClassFeeProtoMsg): _95.MsgUpdateClassFee; + toProto(message: _95.MsgUpdateClassFee): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeProtoMsg; + }; + MsgUpdateClassFeeResponse: { + typeUrl: string; + encode(_: _95.MsgUpdateClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassFeeResponse; + fromPartial(_: Partial<_95.MsgUpdateClassFeeResponse>): _95.MsgUpdateClassFeeResponse; + fromAmino(_: _95.MsgUpdateClassFeeResponseAmino): _95.MsgUpdateClassFeeResponse; + toAmino(_: _95.MsgUpdateClassFeeResponse): _95.MsgUpdateClassFeeResponseAmino; + fromAminoMsg(object: _95.MsgUpdateClassFeeResponseAminoMsg): _95.MsgUpdateClassFeeResponse; + fromProtoMsg(message: _95.MsgUpdateClassFeeResponseProtoMsg): _95.MsgUpdateClassFeeResponse; + toProto(message: _95.MsgUpdateClassFeeResponse): Uint8Array; + toProtoMsg(message: _95.MsgUpdateClassFeeResponse): _95.MsgUpdateClassFeeResponseProtoMsg; + }; + MsgAddAllowedBridgeChain: { + typeUrl: string; + encode(message: _95.MsgAddAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddAllowedBridgeChain; + fromPartial(object: Partial<_95.MsgAddAllowedBridgeChain>): _95.MsgAddAllowedBridgeChain; + fromAmino(object: _95.MsgAddAllowedBridgeChainAmino): _95.MsgAddAllowedBridgeChain; + toAmino(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainAmino; + fromAminoMsg(object: _95.MsgAddAllowedBridgeChainAminoMsg): _95.MsgAddAllowedBridgeChain; + toAminoMsg(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainAminoMsg; + fromProtoMsg(message: _95.MsgAddAllowedBridgeChainProtoMsg): _95.MsgAddAllowedBridgeChain; + toProto(message: _95.MsgAddAllowedBridgeChain): Uint8Array; + toProtoMsg(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainProtoMsg; + }; + MsgAddAllowedBridgeChainResponse: { + typeUrl: string; + encode(_: _95.MsgAddAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddAllowedBridgeChainResponse; + fromPartial(_: Partial<_95.MsgAddAllowedBridgeChainResponse>): _95.MsgAddAllowedBridgeChainResponse; + fromAmino(_: _95.MsgAddAllowedBridgeChainResponseAmino): _95.MsgAddAllowedBridgeChainResponse; + toAmino(_: _95.MsgAddAllowedBridgeChainResponse): _95.MsgAddAllowedBridgeChainResponseAmino; + fromAminoMsg(object: _95.MsgAddAllowedBridgeChainResponseAminoMsg): _95.MsgAddAllowedBridgeChainResponse; + fromProtoMsg(message: _95.MsgAddAllowedBridgeChainResponseProtoMsg): _95.MsgAddAllowedBridgeChainResponse; + toProto(message: _95.MsgAddAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: _95.MsgAddAllowedBridgeChainResponse): _95.MsgAddAllowedBridgeChainResponseProtoMsg; + }; + MsgRemoveAllowedBridgeChain: { + typeUrl: string; + encode(message: _95.MsgRemoveAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveAllowedBridgeChain; + fromPartial(object: Partial<_95.MsgRemoveAllowedBridgeChain>): _95.MsgRemoveAllowedBridgeChain; + fromAmino(object: _95.MsgRemoveAllowedBridgeChainAmino): _95.MsgRemoveAllowedBridgeChain; + toAmino(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainAmino; + fromAminoMsg(object: _95.MsgRemoveAllowedBridgeChainAminoMsg): _95.MsgRemoveAllowedBridgeChain; + toAminoMsg(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainAminoMsg; + fromProtoMsg(message: _95.MsgRemoveAllowedBridgeChainProtoMsg): _95.MsgRemoveAllowedBridgeChain; + toProto(message: _95.MsgRemoveAllowedBridgeChain): Uint8Array; + toProtoMsg(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainProtoMsg; + }; + MsgRemoveAllowedBridgeChainResponse: { + typeUrl: string; + encode(_: _95.MsgRemoveAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveAllowedBridgeChainResponse; + fromPartial(_: Partial<_95.MsgRemoveAllowedBridgeChainResponse>): _95.MsgRemoveAllowedBridgeChainResponse; + fromAmino(_: _95.MsgRemoveAllowedBridgeChainResponseAmino): _95.MsgRemoveAllowedBridgeChainResponse; + toAmino(_: _95.MsgRemoveAllowedBridgeChainResponse): _95.MsgRemoveAllowedBridgeChainResponseAmino; + fromAminoMsg(object: _95.MsgRemoveAllowedBridgeChainResponseAminoMsg): _95.MsgRemoveAllowedBridgeChainResponse; + fromProtoMsg(message: _95.MsgRemoveAllowedBridgeChainResponseProtoMsg): _95.MsgRemoveAllowedBridgeChainResponse; + toProto(message: _95.MsgRemoveAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: _95.MsgRemoveAllowedBridgeChainResponse): _95.MsgRemoveAllowedBridgeChainResponseProtoMsg; + }; + CreditType: { + typeUrl: string; + encode(message: _94.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.CreditType; + fromPartial(object: Partial<_94.CreditType>): _94.CreditType; + fromAmino(object: _94.CreditTypeAmino): _94.CreditType; + toAmino(message: _94.CreditType): _94.CreditTypeAmino; + fromAminoMsg(object: _94.CreditTypeAminoMsg): _94.CreditType; + fromProtoMsg(message: _94.CreditTypeProtoMsg): _94.CreditType; + toProto(message: _94.CreditType): Uint8Array; + toProtoMsg(message: _94.CreditType): _94.CreditTypeProtoMsg; + }; + Class: { + typeUrl: string; + encode(message: _94.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Class; + fromPartial(object: Partial<_94.Class>): _94.Class; + fromAmino(object: _94.ClassAmino): _94.Class; + toAmino(message: _94.Class): _94.ClassAmino; + fromAminoMsg(object: _94.ClassAminoMsg): _94.Class; + fromProtoMsg(message: _94.ClassProtoMsg): _94.Class; + toProto(message: _94.Class): Uint8Array; + toProtoMsg(message: _94.Class): _94.ClassProtoMsg; + }; + ClassIssuer: { + typeUrl: string; + encode(message: _94.ClassIssuer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassIssuer; + fromPartial(object: Partial<_94.ClassIssuer>): _94.ClassIssuer; + fromAmino(object: _94.ClassIssuerAmino): _94.ClassIssuer; + toAmino(message: _94.ClassIssuer): _94.ClassIssuerAmino; + fromAminoMsg(object: _94.ClassIssuerAminoMsg): _94.ClassIssuer; + fromProtoMsg(message: _94.ClassIssuerProtoMsg): _94.ClassIssuer; + toProto(message: _94.ClassIssuer): Uint8Array; + toProtoMsg(message: _94.ClassIssuer): _94.ClassIssuerProtoMsg; + }; + Project: { + typeUrl: string; + encode(message: _94.Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Project; + fromPartial(object: Partial<_94.Project>): _94.Project; + fromAmino(object: _94.ProjectAmino): _94.Project; + toAmino(message: _94.Project): _94.ProjectAmino; + fromAminoMsg(object: _94.ProjectAminoMsg): _94.Project; + fromProtoMsg(message: _94.ProjectProtoMsg): _94.Project; + toProto(message: _94.Project): Uint8Array; + toProtoMsg(message: _94.Project): _94.ProjectProtoMsg; + }; + Batch: { + typeUrl: string; + encode(message: _94.Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Batch; + fromPartial(object: Partial<_94.Batch>): _94.Batch; + fromAmino(object: _94.BatchAmino): _94.Batch; + toAmino(message: _94.Batch): _94.BatchAmino; + fromAminoMsg(object: _94.BatchAminoMsg): _94.Batch; + fromProtoMsg(message: _94.BatchProtoMsg): _94.Batch; + toProto(message: _94.Batch): Uint8Array; + toProtoMsg(message: _94.Batch): _94.BatchProtoMsg; + }; + ClassSequence: { + typeUrl: string; + encode(message: _94.ClassSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassSequence; + fromPartial(object: Partial<_94.ClassSequence>): _94.ClassSequence; + fromAmino(object: _94.ClassSequenceAmino): _94.ClassSequence; + toAmino(message: _94.ClassSequence): _94.ClassSequenceAmino; + fromAminoMsg(object: _94.ClassSequenceAminoMsg): _94.ClassSequence; + fromProtoMsg(message: _94.ClassSequenceProtoMsg): _94.ClassSequence; + toProto(message: _94.ClassSequence): Uint8Array; + toProtoMsg(message: _94.ClassSequence): _94.ClassSequenceProtoMsg; + }; + ProjectSequence: { + typeUrl: string; + encode(message: _94.ProjectSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ProjectSequence; + fromPartial(object: Partial<_94.ProjectSequence>): _94.ProjectSequence; + fromAmino(object: _94.ProjectSequenceAmino): _94.ProjectSequence; + toAmino(message: _94.ProjectSequence): _94.ProjectSequenceAmino; + fromAminoMsg(object: _94.ProjectSequenceAminoMsg): _94.ProjectSequence; + fromProtoMsg(message: _94.ProjectSequenceProtoMsg): _94.ProjectSequence; + toProto(message: _94.ProjectSequence): Uint8Array; + toProtoMsg(message: _94.ProjectSequence): _94.ProjectSequenceProtoMsg; + }; + BatchSequence: { + typeUrl: string; + encode(message: _94.BatchSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchSequence; + fromPartial(object: Partial<_94.BatchSequence>): _94.BatchSequence; + fromAmino(object: _94.BatchSequenceAmino): _94.BatchSequence; + toAmino(message: _94.BatchSequence): _94.BatchSequenceAmino; + fromAminoMsg(object: _94.BatchSequenceAminoMsg): _94.BatchSequence; + fromProtoMsg(message: _94.BatchSequenceProtoMsg): _94.BatchSequence; + toProto(message: _94.BatchSequence): Uint8Array; + toProtoMsg(message: _94.BatchSequence): _94.BatchSequenceProtoMsg; + }; + BatchBalance: { + typeUrl: string; + encode(message: _94.BatchBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchBalance; + fromPartial(object: Partial<_94.BatchBalance>): _94.BatchBalance; + fromAmino(object: _94.BatchBalanceAmino): _94.BatchBalance; + toAmino(message: _94.BatchBalance): _94.BatchBalanceAmino; + fromAminoMsg(object: _94.BatchBalanceAminoMsg): _94.BatchBalance; + fromProtoMsg(message: _94.BatchBalanceProtoMsg): _94.BatchBalance; + toProto(message: _94.BatchBalance): Uint8Array; + toProtoMsg(message: _94.BatchBalance): _94.BatchBalanceProtoMsg; + }; + BatchSupply: { + typeUrl: string; + encode(message: _94.BatchSupply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchSupply; + fromPartial(object: Partial<_94.BatchSupply>): _94.BatchSupply; + fromAmino(object: _94.BatchSupplyAmino): _94.BatchSupply; + toAmino(message: _94.BatchSupply): _94.BatchSupplyAmino; + fromAminoMsg(object: _94.BatchSupplyAminoMsg): _94.BatchSupply; + fromProtoMsg(message: _94.BatchSupplyProtoMsg): _94.BatchSupply; + toProto(message: _94.BatchSupply): Uint8Array; + toProtoMsg(message: _94.BatchSupply): _94.BatchSupplyProtoMsg; + }; + OriginTxIndex: { + typeUrl: string; + encode(message: _94.OriginTxIndex, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.OriginTxIndex; + fromPartial(object: Partial<_94.OriginTxIndex>): _94.OriginTxIndex; + fromAmino(object: _94.OriginTxIndexAmino): _94.OriginTxIndex; + toAmino(message: _94.OriginTxIndex): _94.OriginTxIndexAmino; + fromAminoMsg(object: _94.OriginTxIndexAminoMsg): _94.OriginTxIndex; + fromProtoMsg(message: _94.OriginTxIndexProtoMsg): _94.OriginTxIndex; + toProto(message: _94.OriginTxIndex): Uint8Array; + toProtoMsg(message: _94.OriginTxIndex): _94.OriginTxIndexProtoMsg; + }; + BatchContract: { + typeUrl: string; + encode(message: _94.BatchContract, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchContract; + fromPartial(object: Partial<_94.BatchContract>): _94.BatchContract; + fromAmino(object: _94.BatchContractAmino): _94.BatchContract; + toAmino(message: _94.BatchContract): _94.BatchContractAmino; + fromAminoMsg(object: _94.BatchContractAminoMsg): _94.BatchContract; + fromProtoMsg(message: _94.BatchContractProtoMsg): _94.BatchContract; + toProto(message: _94.BatchContract): Uint8Array; + toProtoMsg(message: _94.BatchContract): _94.BatchContractProtoMsg; + }; + ClassCreatorAllowlist: { + typeUrl: string; + encode(message: _94.ClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassCreatorAllowlist; + fromPartial(object: Partial<_94.ClassCreatorAllowlist>): _94.ClassCreatorAllowlist; + fromAmino(object: _94.ClassCreatorAllowlistAmino): _94.ClassCreatorAllowlist; + toAmino(message: _94.ClassCreatorAllowlist): _94.ClassCreatorAllowlistAmino; + fromAminoMsg(object: _94.ClassCreatorAllowlistAminoMsg): _94.ClassCreatorAllowlist; + fromProtoMsg(message: _94.ClassCreatorAllowlistProtoMsg): _94.ClassCreatorAllowlist; + toProto(message: _94.ClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: _94.ClassCreatorAllowlist): _94.ClassCreatorAllowlistProtoMsg; + }; + AllowedClassCreator: { + typeUrl: string; + encode(message: _94.AllowedClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.AllowedClassCreator; + fromPartial(object: Partial<_94.AllowedClassCreator>): _94.AllowedClassCreator; + fromAmino(object: _94.AllowedClassCreatorAmino): _94.AllowedClassCreator; + toAmino(message: _94.AllowedClassCreator): _94.AllowedClassCreatorAmino; + fromAminoMsg(object: _94.AllowedClassCreatorAminoMsg): _94.AllowedClassCreator; + fromProtoMsg(message: _94.AllowedClassCreatorProtoMsg): _94.AllowedClassCreator; + toProto(message: _94.AllowedClassCreator): Uint8Array; + toProtoMsg(message: _94.AllowedClassCreator): _94.AllowedClassCreatorProtoMsg; + }; + ClassFee: { + typeUrl: string; + encode(message: _94.ClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassFee; + fromPartial(object: Partial<_94.ClassFee>): _94.ClassFee; + fromAmino(object: _94.ClassFeeAmino): _94.ClassFee; + toAmino(message: _94.ClassFee): _94.ClassFeeAmino; + fromAminoMsg(object: _94.ClassFeeAminoMsg): _94.ClassFee; + fromProtoMsg(message: _94.ClassFeeProtoMsg): _94.ClassFee; + toProto(message: _94.ClassFee): Uint8Array; + toProtoMsg(message: _94.ClassFee): _94.ClassFeeProtoMsg; + }; + AllowedBridgeChain: { + typeUrl: string; + encode(message: _94.AllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.AllowedBridgeChain; + fromPartial(object: Partial<_94.AllowedBridgeChain>): _94.AllowedBridgeChain; + fromAmino(object: _94.AllowedBridgeChainAmino): _94.AllowedBridgeChain; + toAmino(message: _94.AllowedBridgeChain): _94.AllowedBridgeChainAmino; + fromAminoMsg(object: _94.AllowedBridgeChainAminoMsg): _94.AllowedBridgeChain; + fromProtoMsg(message: _94.AllowedBridgeChainProtoMsg): _94.AllowedBridgeChain; + toProto(message: _94.AllowedBridgeChain): Uint8Array; + toProtoMsg(message: _94.AllowedBridgeChain): _94.AllowedBridgeChainProtoMsg; + }; + QueryClassesRequest: { + typeUrl: string; + encode(message: _93.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesRequest; + fromPartial(object: Partial<_93.QueryClassesRequest>): _93.QueryClassesRequest; + fromAmino(object: _93.QueryClassesRequestAmino): _93.QueryClassesRequest; + toAmino(message: _93.QueryClassesRequest): _93.QueryClassesRequestAmino; + fromAminoMsg(object: _93.QueryClassesRequestAminoMsg): _93.QueryClassesRequest; + fromProtoMsg(message: _93.QueryClassesRequestProtoMsg): _93.QueryClassesRequest; + toProto(message: _93.QueryClassesRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassesRequest): _93.QueryClassesRequestProtoMsg; + }; + QueryClassesResponse: { + typeUrl: string; + encode(message: _93.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesResponse; + fromPartial(object: Partial<_93.QueryClassesResponse>): _93.QueryClassesResponse; + fromAmino(object: _93.QueryClassesResponseAmino): _93.QueryClassesResponse; + toAmino(message: _93.QueryClassesResponse): _93.QueryClassesResponseAmino; + fromAminoMsg(object: _93.QueryClassesResponseAminoMsg): _93.QueryClassesResponse; + fromProtoMsg(message: _93.QueryClassesResponseProtoMsg): _93.QueryClassesResponse; + toProto(message: _93.QueryClassesResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassesResponse): _93.QueryClassesResponseProtoMsg; + }; + QueryClassesByAdminRequest: { + typeUrl: string; + encode(message: _93.QueryClassesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesByAdminRequest; + fromPartial(object: Partial<_93.QueryClassesByAdminRequest>): _93.QueryClassesByAdminRequest; + fromAmino(object: _93.QueryClassesByAdminRequestAmino): _93.QueryClassesByAdminRequest; + toAmino(message: _93.QueryClassesByAdminRequest): _93.QueryClassesByAdminRequestAmino; + fromAminoMsg(object: _93.QueryClassesByAdminRequestAminoMsg): _93.QueryClassesByAdminRequest; + fromProtoMsg(message: _93.QueryClassesByAdminRequestProtoMsg): _93.QueryClassesByAdminRequest; + toProto(message: _93.QueryClassesByAdminRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassesByAdminRequest): _93.QueryClassesByAdminRequestProtoMsg; + }; + QueryClassesByAdminResponse: { + typeUrl: string; + encode(message: _93.QueryClassesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesByAdminResponse; + fromPartial(object: Partial<_93.QueryClassesByAdminResponse>): _93.QueryClassesByAdminResponse; + fromAmino(object: _93.QueryClassesByAdminResponseAmino): _93.QueryClassesByAdminResponse; + toAmino(message: _93.QueryClassesByAdminResponse): _93.QueryClassesByAdminResponseAmino; + fromAminoMsg(object: _93.QueryClassesByAdminResponseAminoMsg): _93.QueryClassesByAdminResponse; + fromProtoMsg(message: _93.QueryClassesByAdminResponseProtoMsg): _93.QueryClassesByAdminResponse; + toProto(message: _93.QueryClassesByAdminResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassesByAdminResponse): _93.QueryClassesByAdminResponseProtoMsg; + }; + QueryClassRequest: { + typeUrl: string; + encode(message: _93.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassRequest; + fromPartial(object: Partial<_93.QueryClassRequest>): _93.QueryClassRequest; + fromAmino(object: _93.QueryClassRequestAmino): _93.QueryClassRequest; + toAmino(message: _93.QueryClassRequest): _93.QueryClassRequestAmino; + fromAminoMsg(object: _93.QueryClassRequestAminoMsg): _93.QueryClassRequest; + fromProtoMsg(message: _93.QueryClassRequestProtoMsg): _93.QueryClassRequest; + toProto(message: _93.QueryClassRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassRequest): _93.QueryClassRequestProtoMsg; + }; + QueryClassResponse: { + typeUrl: string; + encode(message: _93.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassResponse; + fromPartial(object: Partial<_93.QueryClassResponse>): _93.QueryClassResponse; + fromAmino(object: _93.QueryClassResponseAmino): _93.QueryClassResponse; + toAmino(message: _93.QueryClassResponse): _93.QueryClassResponseAmino; + fromAminoMsg(object: _93.QueryClassResponseAminoMsg): _93.QueryClassResponse; + fromProtoMsg(message: _93.QueryClassResponseProtoMsg): _93.QueryClassResponse; + toProto(message: _93.QueryClassResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassResponse): _93.QueryClassResponseProtoMsg; + }; + QueryClassIssuersRequest: { + typeUrl: string; + encode(message: _93.QueryClassIssuersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassIssuersRequest; + fromPartial(object: Partial<_93.QueryClassIssuersRequest>): _93.QueryClassIssuersRequest; + fromAmino(object: _93.QueryClassIssuersRequestAmino): _93.QueryClassIssuersRequest; + toAmino(message: _93.QueryClassIssuersRequest): _93.QueryClassIssuersRequestAmino; + fromAminoMsg(object: _93.QueryClassIssuersRequestAminoMsg): _93.QueryClassIssuersRequest; + fromProtoMsg(message: _93.QueryClassIssuersRequestProtoMsg): _93.QueryClassIssuersRequest; + toProto(message: _93.QueryClassIssuersRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassIssuersRequest): _93.QueryClassIssuersRequestProtoMsg; + }; + QueryClassIssuersResponse: { + typeUrl: string; + encode(message: _93.QueryClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassIssuersResponse; + fromPartial(object: Partial<_93.QueryClassIssuersResponse>): _93.QueryClassIssuersResponse; + fromAmino(object: _93.QueryClassIssuersResponseAmino): _93.QueryClassIssuersResponse; + toAmino(message: _93.QueryClassIssuersResponse): _93.QueryClassIssuersResponseAmino; + fromAminoMsg(object: _93.QueryClassIssuersResponseAminoMsg): _93.QueryClassIssuersResponse; + fromProtoMsg(message: _93.QueryClassIssuersResponseProtoMsg): _93.QueryClassIssuersResponse; + toProto(message: _93.QueryClassIssuersResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassIssuersResponse): _93.QueryClassIssuersResponseProtoMsg; + }; + QueryProjectsRequest: { + typeUrl: string; + encode(message: _93.QueryProjectsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsRequest; + fromPartial(object: Partial<_93.QueryProjectsRequest>): _93.QueryProjectsRequest; + fromAmino(object: _93.QueryProjectsRequestAmino): _93.QueryProjectsRequest; + toAmino(message: _93.QueryProjectsRequest): _93.QueryProjectsRequestAmino; + fromAminoMsg(object: _93.QueryProjectsRequestAminoMsg): _93.QueryProjectsRequest; + fromProtoMsg(message: _93.QueryProjectsRequestProtoMsg): _93.QueryProjectsRequest; + toProto(message: _93.QueryProjectsRequest): Uint8Array; + toProtoMsg(message: _93.QueryProjectsRequest): _93.QueryProjectsRequestProtoMsg; + }; + QueryProjectsResponse: { + typeUrl: string; + encode(message: _93.QueryProjectsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsResponse; + fromPartial(object: Partial<_93.QueryProjectsResponse>): _93.QueryProjectsResponse; + fromAmino(object: _93.QueryProjectsResponseAmino): _93.QueryProjectsResponse; + toAmino(message: _93.QueryProjectsResponse): _93.QueryProjectsResponseAmino; + fromAminoMsg(object: _93.QueryProjectsResponseAminoMsg): _93.QueryProjectsResponse; + fromProtoMsg(message: _93.QueryProjectsResponseProtoMsg): _93.QueryProjectsResponse; + toProto(message: _93.QueryProjectsResponse): Uint8Array; + toProtoMsg(message: _93.QueryProjectsResponse): _93.QueryProjectsResponseProtoMsg; + }; + QueryProjectsByClassRequest: { + typeUrl: string; + encode(message: _93.QueryProjectsByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByClassRequest; + fromPartial(object: Partial<_93.QueryProjectsByClassRequest>): _93.QueryProjectsByClassRequest; + fromAmino(object: _93.QueryProjectsByClassRequestAmino): _93.QueryProjectsByClassRequest; + toAmino(message: _93.QueryProjectsByClassRequest): _93.QueryProjectsByClassRequestAmino; + fromAminoMsg(object: _93.QueryProjectsByClassRequestAminoMsg): _93.QueryProjectsByClassRequest; + fromProtoMsg(message: _93.QueryProjectsByClassRequestProtoMsg): _93.QueryProjectsByClassRequest; + toProto(message: _93.QueryProjectsByClassRequest): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByClassRequest): _93.QueryProjectsByClassRequestProtoMsg; + }; + QueryProjectsByClassResponse: { + typeUrl: string; + encode(message: _93.QueryProjectsByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByClassResponse; + fromPartial(object: Partial<_93.QueryProjectsByClassResponse>): _93.QueryProjectsByClassResponse; + fromAmino(object: _93.QueryProjectsByClassResponseAmino): _93.QueryProjectsByClassResponse; + toAmino(message: _93.QueryProjectsByClassResponse): _93.QueryProjectsByClassResponseAmino; + fromAminoMsg(object: _93.QueryProjectsByClassResponseAminoMsg): _93.QueryProjectsByClassResponse; + fromProtoMsg(message: _93.QueryProjectsByClassResponseProtoMsg): _93.QueryProjectsByClassResponse; + toProto(message: _93.QueryProjectsByClassResponse): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByClassResponse): _93.QueryProjectsByClassResponseProtoMsg; + }; + QueryProjectsByReferenceIdRequest: { + typeUrl: string; + encode(message: _93.QueryProjectsByReferenceIdRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByReferenceIdRequest; + fromPartial(object: Partial<_93.QueryProjectsByReferenceIdRequest>): _93.QueryProjectsByReferenceIdRequest; + fromAmino(object: _93.QueryProjectsByReferenceIdRequestAmino): _93.QueryProjectsByReferenceIdRequest; + toAmino(message: _93.QueryProjectsByReferenceIdRequest): _93.QueryProjectsByReferenceIdRequestAmino; + fromAminoMsg(object: _93.QueryProjectsByReferenceIdRequestAminoMsg): _93.QueryProjectsByReferenceIdRequest; + fromProtoMsg(message: _93.QueryProjectsByReferenceIdRequestProtoMsg): _93.QueryProjectsByReferenceIdRequest; + toProto(message: _93.QueryProjectsByReferenceIdRequest): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByReferenceIdRequest): _93.QueryProjectsByReferenceIdRequestProtoMsg; + }; + QueryProjectsByReferenceIdResponse: { + typeUrl: string; + encode(message: _93.QueryProjectsByReferenceIdResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByReferenceIdResponse; + fromPartial(object: Partial<_93.QueryProjectsByReferenceIdResponse>): _93.QueryProjectsByReferenceIdResponse; + fromAmino(object: _93.QueryProjectsByReferenceIdResponseAmino): _93.QueryProjectsByReferenceIdResponse; + toAmino(message: _93.QueryProjectsByReferenceIdResponse): _93.QueryProjectsByReferenceIdResponseAmino; + fromAminoMsg(object: _93.QueryProjectsByReferenceIdResponseAminoMsg): _93.QueryProjectsByReferenceIdResponse; + fromProtoMsg(message: _93.QueryProjectsByReferenceIdResponseProtoMsg): _93.QueryProjectsByReferenceIdResponse; + toProto(message: _93.QueryProjectsByReferenceIdResponse): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByReferenceIdResponse): _93.QueryProjectsByReferenceIdResponseProtoMsg; + }; + QueryProjectsByAdminRequest: { + typeUrl: string; + encode(message: _93.QueryProjectsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByAdminRequest; + fromPartial(object: Partial<_93.QueryProjectsByAdminRequest>): _93.QueryProjectsByAdminRequest; + fromAmino(object: _93.QueryProjectsByAdminRequestAmino): _93.QueryProjectsByAdminRequest; + toAmino(message: _93.QueryProjectsByAdminRequest): _93.QueryProjectsByAdminRequestAmino; + fromAminoMsg(object: _93.QueryProjectsByAdminRequestAminoMsg): _93.QueryProjectsByAdminRequest; + fromProtoMsg(message: _93.QueryProjectsByAdminRequestProtoMsg): _93.QueryProjectsByAdminRequest; + toProto(message: _93.QueryProjectsByAdminRequest): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByAdminRequest): _93.QueryProjectsByAdminRequestProtoMsg; + }; + QueryProjectsByAdminResponse: { + typeUrl: string; + encode(message: _93.QueryProjectsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByAdminResponse; + fromPartial(object: Partial<_93.QueryProjectsByAdminResponse>): _93.QueryProjectsByAdminResponse; + fromAmino(object: _93.QueryProjectsByAdminResponseAmino): _93.QueryProjectsByAdminResponse; + toAmino(message: _93.QueryProjectsByAdminResponse): _93.QueryProjectsByAdminResponseAmino; + fromAminoMsg(object: _93.QueryProjectsByAdminResponseAminoMsg): _93.QueryProjectsByAdminResponse; + fromProtoMsg(message: _93.QueryProjectsByAdminResponseProtoMsg): _93.QueryProjectsByAdminResponse; + toProto(message: _93.QueryProjectsByAdminResponse): Uint8Array; + toProtoMsg(message: _93.QueryProjectsByAdminResponse): _93.QueryProjectsByAdminResponseProtoMsg; + }; + QueryProjectRequest: { + typeUrl: string; + encode(message: _93.QueryProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectRequest; + fromPartial(object: Partial<_93.QueryProjectRequest>): _93.QueryProjectRequest; + fromAmino(object: _93.QueryProjectRequestAmino): _93.QueryProjectRequest; + toAmino(message: _93.QueryProjectRequest): _93.QueryProjectRequestAmino; + fromAminoMsg(object: _93.QueryProjectRequestAminoMsg): _93.QueryProjectRequest; + fromProtoMsg(message: _93.QueryProjectRequestProtoMsg): _93.QueryProjectRequest; + toProto(message: _93.QueryProjectRequest): Uint8Array; + toProtoMsg(message: _93.QueryProjectRequest): _93.QueryProjectRequestProtoMsg; + }; + QueryProjectResponse: { + typeUrl: string; + encode(message: _93.QueryProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectResponse; + fromPartial(object: Partial<_93.QueryProjectResponse>): _93.QueryProjectResponse; + fromAmino(object: _93.QueryProjectResponseAmino): _93.QueryProjectResponse; + toAmino(message: _93.QueryProjectResponse): _93.QueryProjectResponseAmino; + fromAminoMsg(object: _93.QueryProjectResponseAminoMsg): _93.QueryProjectResponse; + fromProtoMsg(message: _93.QueryProjectResponseProtoMsg): _93.QueryProjectResponse; + toProto(message: _93.QueryProjectResponse): Uint8Array; + toProtoMsg(message: _93.QueryProjectResponse): _93.QueryProjectResponseProtoMsg; + }; + QueryBatchesRequest: { + typeUrl: string; + encode(message: _93.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesRequest; + fromPartial(object: Partial<_93.QueryBatchesRequest>): _93.QueryBatchesRequest; + fromAmino(object: _93.QueryBatchesRequestAmino): _93.QueryBatchesRequest; + toAmino(message: _93.QueryBatchesRequest): _93.QueryBatchesRequestAmino; + fromAminoMsg(object: _93.QueryBatchesRequestAminoMsg): _93.QueryBatchesRequest; + fromProtoMsg(message: _93.QueryBatchesRequestProtoMsg): _93.QueryBatchesRequest; + toProto(message: _93.QueryBatchesRequest): Uint8Array; + toProtoMsg(message: _93.QueryBatchesRequest): _93.QueryBatchesRequestProtoMsg; + }; + QueryBatchesResponse: { + typeUrl: string; + encode(message: _93.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesResponse; + fromPartial(object: Partial<_93.QueryBatchesResponse>): _93.QueryBatchesResponse; + fromAmino(object: _93.QueryBatchesResponseAmino): _93.QueryBatchesResponse; + toAmino(message: _93.QueryBatchesResponse): _93.QueryBatchesResponseAmino; + fromAminoMsg(object: _93.QueryBatchesResponseAminoMsg): _93.QueryBatchesResponse; + fromProtoMsg(message: _93.QueryBatchesResponseProtoMsg): _93.QueryBatchesResponse; + toProto(message: _93.QueryBatchesResponse): Uint8Array; + toProtoMsg(message: _93.QueryBatchesResponse): _93.QueryBatchesResponseProtoMsg; + }; + QueryBatchesByIssuerRequest: { + typeUrl: string; + encode(message: _93.QueryBatchesByIssuerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByIssuerRequest; + fromPartial(object: Partial<_93.QueryBatchesByIssuerRequest>): _93.QueryBatchesByIssuerRequest; + fromAmino(object: _93.QueryBatchesByIssuerRequestAmino): _93.QueryBatchesByIssuerRequest; + toAmino(message: _93.QueryBatchesByIssuerRequest): _93.QueryBatchesByIssuerRequestAmino; + fromAminoMsg(object: _93.QueryBatchesByIssuerRequestAminoMsg): _93.QueryBatchesByIssuerRequest; + fromProtoMsg(message: _93.QueryBatchesByIssuerRequestProtoMsg): _93.QueryBatchesByIssuerRequest; + toProto(message: _93.QueryBatchesByIssuerRequest): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByIssuerRequest): _93.QueryBatchesByIssuerRequestProtoMsg; + }; + QueryBatchesByIssuerResponse: { + typeUrl: string; + encode(message: _93.QueryBatchesByIssuerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByIssuerResponse; + fromPartial(object: Partial<_93.QueryBatchesByIssuerResponse>): _93.QueryBatchesByIssuerResponse; + fromAmino(object: _93.QueryBatchesByIssuerResponseAmino): _93.QueryBatchesByIssuerResponse; + toAmino(message: _93.QueryBatchesByIssuerResponse): _93.QueryBatchesByIssuerResponseAmino; + fromAminoMsg(object: _93.QueryBatchesByIssuerResponseAminoMsg): _93.QueryBatchesByIssuerResponse; + fromProtoMsg(message: _93.QueryBatchesByIssuerResponseProtoMsg): _93.QueryBatchesByIssuerResponse; + toProto(message: _93.QueryBatchesByIssuerResponse): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByIssuerResponse): _93.QueryBatchesByIssuerResponseProtoMsg; + }; + QueryBatchesByClassRequest: { + typeUrl: string; + encode(message: _93.QueryBatchesByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByClassRequest; + fromPartial(object: Partial<_93.QueryBatchesByClassRequest>): _93.QueryBatchesByClassRequest; + fromAmino(object: _93.QueryBatchesByClassRequestAmino): _93.QueryBatchesByClassRequest; + toAmino(message: _93.QueryBatchesByClassRequest): _93.QueryBatchesByClassRequestAmino; + fromAminoMsg(object: _93.QueryBatchesByClassRequestAminoMsg): _93.QueryBatchesByClassRequest; + fromProtoMsg(message: _93.QueryBatchesByClassRequestProtoMsg): _93.QueryBatchesByClassRequest; + toProto(message: _93.QueryBatchesByClassRequest): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByClassRequest): _93.QueryBatchesByClassRequestProtoMsg; + }; + QueryBatchesByProjectRequest: { + typeUrl: string; + encode(message: _93.QueryBatchesByProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByProjectRequest; + fromPartial(object: Partial<_93.QueryBatchesByProjectRequest>): _93.QueryBatchesByProjectRequest; + fromAmino(object: _93.QueryBatchesByProjectRequestAmino): _93.QueryBatchesByProjectRequest; + toAmino(message: _93.QueryBatchesByProjectRequest): _93.QueryBatchesByProjectRequestAmino; + fromAminoMsg(object: _93.QueryBatchesByProjectRequestAminoMsg): _93.QueryBatchesByProjectRequest; + fromProtoMsg(message: _93.QueryBatchesByProjectRequestProtoMsg): _93.QueryBatchesByProjectRequest; + toProto(message: _93.QueryBatchesByProjectRequest): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByProjectRequest): _93.QueryBatchesByProjectRequestProtoMsg; + }; + QueryBatchesByProjectResponse: { + typeUrl: string; + encode(message: _93.QueryBatchesByProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByProjectResponse; + fromPartial(object: Partial<_93.QueryBatchesByProjectResponse>): _93.QueryBatchesByProjectResponse; + fromAmino(object: _93.QueryBatchesByProjectResponseAmino): _93.QueryBatchesByProjectResponse; + toAmino(message: _93.QueryBatchesByProjectResponse): _93.QueryBatchesByProjectResponseAmino; + fromAminoMsg(object: _93.QueryBatchesByProjectResponseAminoMsg): _93.QueryBatchesByProjectResponse; + fromProtoMsg(message: _93.QueryBatchesByProjectResponseProtoMsg): _93.QueryBatchesByProjectResponse; + toProto(message: _93.QueryBatchesByProjectResponse): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByProjectResponse): _93.QueryBatchesByProjectResponseProtoMsg; + }; + QueryBatchesByClassResponse: { + typeUrl: string; + encode(message: _93.QueryBatchesByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByClassResponse; + fromPartial(object: Partial<_93.QueryBatchesByClassResponse>): _93.QueryBatchesByClassResponse; + fromAmino(object: _93.QueryBatchesByClassResponseAmino): _93.QueryBatchesByClassResponse; + toAmino(message: _93.QueryBatchesByClassResponse): _93.QueryBatchesByClassResponseAmino; + fromAminoMsg(object: _93.QueryBatchesByClassResponseAminoMsg): _93.QueryBatchesByClassResponse; + fromProtoMsg(message: _93.QueryBatchesByClassResponseProtoMsg): _93.QueryBatchesByClassResponse; + toProto(message: _93.QueryBatchesByClassResponse): Uint8Array; + toProtoMsg(message: _93.QueryBatchesByClassResponse): _93.QueryBatchesByClassResponseProtoMsg; + }; + QueryBatchRequest: { + typeUrl: string; + encode(message: _93.QueryBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchRequest; + fromPartial(object: Partial<_93.QueryBatchRequest>): _93.QueryBatchRequest; + fromAmino(object: _93.QueryBatchRequestAmino): _93.QueryBatchRequest; + toAmino(message: _93.QueryBatchRequest): _93.QueryBatchRequestAmino; + fromAminoMsg(object: _93.QueryBatchRequestAminoMsg): _93.QueryBatchRequest; + fromProtoMsg(message: _93.QueryBatchRequestProtoMsg): _93.QueryBatchRequest; + toProto(message: _93.QueryBatchRequest): Uint8Array; + toProtoMsg(message: _93.QueryBatchRequest): _93.QueryBatchRequestProtoMsg; + }; + QueryBatchResponse: { + typeUrl: string; + encode(message: _93.QueryBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchResponse; + fromPartial(object: Partial<_93.QueryBatchResponse>): _93.QueryBatchResponse; + fromAmino(object: _93.QueryBatchResponseAmino): _93.QueryBatchResponse; + toAmino(message: _93.QueryBatchResponse): _93.QueryBatchResponseAmino; + fromAminoMsg(object: _93.QueryBatchResponseAminoMsg): _93.QueryBatchResponse; + fromProtoMsg(message: _93.QueryBatchResponseProtoMsg): _93.QueryBatchResponse; + toProto(message: _93.QueryBatchResponse): Uint8Array; + toProtoMsg(message: _93.QueryBatchResponse): _93.QueryBatchResponseProtoMsg; + }; + QueryBalanceRequest: { + typeUrl: string; + encode(message: _93.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalanceRequest; + fromPartial(object: Partial<_93.QueryBalanceRequest>): _93.QueryBalanceRequest; + fromAmino(object: _93.QueryBalanceRequestAmino): _93.QueryBalanceRequest; + toAmino(message: _93.QueryBalanceRequest): _93.QueryBalanceRequestAmino; + fromAminoMsg(object: _93.QueryBalanceRequestAminoMsg): _93.QueryBalanceRequest; + fromProtoMsg(message: _93.QueryBalanceRequestProtoMsg): _93.QueryBalanceRequest; + toProto(message: _93.QueryBalanceRequest): Uint8Array; + toProtoMsg(message: _93.QueryBalanceRequest): _93.QueryBalanceRequestProtoMsg; + }; + QueryBalanceResponse: { + typeUrl: string; + encode(message: _93.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalanceResponse; + fromPartial(object: Partial<_93.QueryBalanceResponse>): _93.QueryBalanceResponse; + fromAmino(object: _93.QueryBalanceResponseAmino): _93.QueryBalanceResponse; + toAmino(message: _93.QueryBalanceResponse): _93.QueryBalanceResponseAmino; + fromAminoMsg(object: _93.QueryBalanceResponseAminoMsg): _93.QueryBalanceResponse; + fromProtoMsg(message: _93.QueryBalanceResponseProtoMsg): _93.QueryBalanceResponse; + toProto(message: _93.QueryBalanceResponse): Uint8Array; + toProtoMsg(message: _93.QueryBalanceResponse): _93.QueryBalanceResponseProtoMsg; + }; + QueryBalancesRequest: { + typeUrl: string; + encode(message: _93.QueryBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesRequest; + fromPartial(object: Partial<_93.QueryBalancesRequest>): _93.QueryBalancesRequest; + fromAmino(object: _93.QueryBalancesRequestAmino): _93.QueryBalancesRequest; + toAmino(message: _93.QueryBalancesRequest): _93.QueryBalancesRequestAmino; + fromAminoMsg(object: _93.QueryBalancesRequestAminoMsg): _93.QueryBalancesRequest; + fromProtoMsg(message: _93.QueryBalancesRequestProtoMsg): _93.QueryBalancesRequest; + toProto(message: _93.QueryBalancesRequest): Uint8Array; + toProtoMsg(message: _93.QueryBalancesRequest): _93.QueryBalancesRequestProtoMsg; + }; + QueryBalancesResponse: { + typeUrl: string; + encode(message: _93.QueryBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesResponse; + fromPartial(object: Partial<_93.QueryBalancesResponse>): _93.QueryBalancesResponse; + fromAmino(object: _93.QueryBalancesResponseAmino): _93.QueryBalancesResponse; + toAmino(message: _93.QueryBalancesResponse): _93.QueryBalancesResponseAmino; + fromAminoMsg(object: _93.QueryBalancesResponseAminoMsg): _93.QueryBalancesResponse; + fromProtoMsg(message: _93.QueryBalancesResponseProtoMsg): _93.QueryBalancesResponse; + toProto(message: _93.QueryBalancesResponse): Uint8Array; + toProtoMsg(message: _93.QueryBalancesResponse): _93.QueryBalancesResponseProtoMsg; + }; + QueryBalancesByBatchRequest: { + typeUrl: string; + encode(message: _93.QueryBalancesByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesByBatchRequest; + fromPartial(object: Partial<_93.QueryBalancesByBatchRequest>): _93.QueryBalancesByBatchRequest; + fromAmino(object: _93.QueryBalancesByBatchRequestAmino): _93.QueryBalancesByBatchRequest; + toAmino(message: _93.QueryBalancesByBatchRequest): _93.QueryBalancesByBatchRequestAmino; + fromAminoMsg(object: _93.QueryBalancesByBatchRequestAminoMsg): _93.QueryBalancesByBatchRequest; + fromProtoMsg(message: _93.QueryBalancesByBatchRequestProtoMsg): _93.QueryBalancesByBatchRequest; + toProto(message: _93.QueryBalancesByBatchRequest): Uint8Array; + toProtoMsg(message: _93.QueryBalancesByBatchRequest): _93.QueryBalancesByBatchRequestProtoMsg; + }; + QueryBalancesByBatchResponse: { + typeUrl: string; + encode(message: _93.QueryBalancesByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesByBatchResponse; + fromPartial(object: Partial<_93.QueryBalancesByBatchResponse>): _93.QueryBalancesByBatchResponse; + fromAmino(object: _93.QueryBalancesByBatchResponseAmino): _93.QueryBalancesByBatchResponse; + toAmino(message: _93.QueryBalancesByBatchResponse): _93.QueryBalancesByBatchResponseAmino; + fromAminoMsg(object: _93.QueryBalancesByBatchResponseAminoMsg): _93.QueryBalancesByBatchResponse; + fromProtoMsg(message: _93.QueryBalancesByBatchResponseProtoMsg): _93.QueryBalancesByBatchResponse; + toProto(message: _93.QueryBalancesByBatchResponse): Uint8Array; + toProtoMsg(message: _93.QueryBalancesByBatchResponse): _93.QueryBalancesByBatchResponseProtoMsg; + }; + QueryAllBalancesRequest: { + typeUrl: string; + encode(message: _93.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllBalancesRequest; + fromPartial(object: Partial<_93.QueryAllBalancesRequest>): _93.QueryAllBalancesRequest; + fromAmino(object: _93.QueryAllBalancesRequestAmino): _93.QueryAllBalancesRequest; + toAmino(message: _93.QueryAllBalancesRequest): _93.QueryAllBalancesRequestAmino; + fromAminoMsg(object: _93.QueryAllBalancesRequestAminoMsg): _93.QueryAllBalancesRequest; + fromProtoMsg(message: _93.QueryAllBalancesRequestProtoMsg): _93.QueryAllBalancesRequest; + toProto(message: _93.QueryAllBalancesRequest): Uint8Array; + toProtoMsg(message: _93.QueryAllBalancesRequest): _93.QueryAllBalancesRequestProtoMsg; + }; + QueryAllBalancesResponse: { + typeUrl: string; + encode(message: _93.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllBalancesResponse; + fromPartial(object: Partial<_93.QueryAllBalancesResponse>): _93.QueryAllBalancesResponse; + fromAmino(object: _93.QueryAllBalancesResponseAmino): _93.QueryAllBalancesResponse; + toAmino(message: _93.QueryAllBalancesResponse): _93.QueryAllBalancesResponseAmino; + fromAminoMsg(object: _93.QueryAllBalancesResponseAminoMsg): _93.QueryAllBalancesResponse; + fromProtoMsg(message: _93.QueryAllBalancesResponseProtoMsg): _93.QueryAllBalancesResponse; + toProto(message: _93.QueryAllBalancesResponse): Uint8Array; + toProtoMsg(message: _93.QueryAllBalancesResponse): _93.QueryAllBalancesResponseProtoMsg; + }; + QuerySupplyRequest: { + typeUrl: string; + encode(message: _93.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QuerySupplyRequest; + fromPartial(object: Partial<_93.QuerySupplyRequest>): _93.QuerySupplyRequest; + fromAmino(object: _93.QuerySupplyRequestAmino): _93.QuerySupplyRequest; + toAmino(message: _93.QuerySupplyRequest): _93.QuerySupplyRequestAmino; + fromAminoMsg(object: _93.QuerySupplyRequestAminoMsg): _93.QuerySupplyRequest; + fromProtoMsg(message: _93.QuerySupplyRequestProtoMsg): _93.QuerySupplyRequest; + toProto(message: _93.QuerySupplyRequest): Uint8Array; + toProtoMsg(message: _93.QuerySupplyRequest): _93.QuerySupplyRequestProtoMsg; + }; + QuerySupplyResponse: { + typeUrl: string; + encode(message: _93.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QuerySupplyResponse; + fromPartial(object: Partial<_93.QuerySupplyResponse>): _93.QuerySupplyResponse; + fromAmino(object: _93.QuerySupplyResponseAmino): _93.QuerySupplyResponse; + toAmino(message: _93.QuerySupplyResponse): _93.QuerySupplyResponseAmino; + fromAminoMsg(object: _93.QuerySupplyResponseAminoMsg): _93.QuerySupplyResponse; + fromProtoMsg(message: _93.QuerySupplyResponseProtoMsg): _93.QuerySupplyResponse; + toProto(message: _93.QuerySupplyResponse): Uint8Array; + toProtoMsg(message: _93.QuerySupplyResponse): _93.QuerySupplyResponseProtoMsg; + }; + QueryCreditTypesRequest: { + typeUrl: string; + encode(_: _93.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypesRequest; + fromPartial(_: Partial<_93.QueryCreditTypesRequest>): _93.QueryCreditTypesRequest; + fromAmino(_: _93.QueryCreditTypesRequestAmino): _93.QueryCreditTypesRequest; + toAmino(_: _93.QueryCreditTypesRequest): _93.QueryCreditTypesRequestAmino; + fromAminoMsg(object: _93.QueryCreditTypesRequestAminoMsg): _93.QueryCreditTypesRequest; + fromProtoMsg(message: _93.QueryCreditTypesRequestProtoMsg): _93.QueryCreditTypesRequest; + toProto(message: _93.QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: _93.QueryCreditTypesRequest): _93.QueryCreditTypesRequestProtoMsg; + }; + QueryCreditTypesResponse: { + typeUrl: string; + encode(message: _93.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypesResponse; + fromPartial(object: Partial<_93.QueryCreditTypesResponse>): _93.QueryCreditTypesResponse; + fromAmino(object: _93.QueryCreditTypesResponseAmino): _93.QueryCreditTypesResponse; + toAmino(message: _93.QueryCreditTypesResponse): _93.QueryCreditTypesResponseAmino; + fromAminoMsg(object: _93.QueryCreditTypesResponseAminoMsg): _93.QueryCreditTypesResponse; + fromProtoMsg(message: _93.QueryCreditTypesResponseProtoMsg): _93.QueryCreditTypesResponse; + toProto(message: _93.QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: _93.QueryCreditTypesResponse): _93.QueryCreditTypesResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _93.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryParamsRequest; + fromPartial(_: Partial<_93.QueryParamsRequest>): _93.QueryParamsRequest; + fromAmino(_: _93.QueryParamsRequestAmino): _93.QueryParamsRequest; + toAmino(_: _93.QueryParamsRequest): _93.QueryParamsRequestAmino; + fromAminoMsg(object: _93.QueryParamsRequestAminoMsg): _93.QueryParamsRequest; + fromProtoMsg(message: _93.QueryParamsRequestProtoMsg): _93.QueryParamsRequest; + toProto(message: _93.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _93.QueryParamsRequest): _93.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _93.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryParamsResponse; + fromPartial(object: Partial<_93.QueryParamsResponse>): _93.QueryParamsResponse; + fromAmino(object: _93.QueryParamsResponseAmino): _93.QueryParamsResponse; + toAmino(message: _93.QueryParamsResponse): _93.QueryParamsResponseAmino; + fromAminoMsg(object: _93.QueryParamsResponseAminoMsg): _93.QueryParamsResponse; + fromProtoMsg(message: _93.QueryParamsResponseProtoMsg): _93.QueryParamsResponse; + toProto(message: _93.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _93.QueryParamsResponse): _93.QueryParamsResponseProtoMsg; + }; + QueryCreditTypeRequest: { + typeUrl: string; + encode(message: _93.QueryCreditTypeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypeRequest; + fromPartial(object: Partial<_93.QueryCreditTypeRequest>): _93.QueryCreditTypeRequest; + fromAmino(object: _93.QueryCreditTypeRequestAmino): _93.QueryCreditTypeRequest; + toAmino(message: _93.QueryCreditTypeRequest): _93.QueryCreditTypeRequestAmino; + fromAminoMsg(object: _93.QueryCreditTypeRequestAminoMsg): _93.QueryCreditTypeRequest; + fromProtoMsg(message: _93.QueryCreditTypeRequestProtoMsg): _93.QueryCreditTypeRequest; + toProto(message: _93.QueryCreditTypeRequest): Uint8Array; + toProtoMsg(message: _93.QueryCreditTypeRequest): _93.QueryCreditTypeRequestProtoMsg; + }; + QueryCreditTypeResponse: { + typeUrl: string; + encode(message: _93.QueryCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypeResponse; + fromPartial(object: Partial<_93.QueryCreditTypeResponse>): _93.QueryCreditTypeResponse; + fromAmino(object: _93.QueryCreditTypeResponseAmino): _93.QueryCreditTypeResponse; + toAmino(message: _93.QueryCreditTypeResponse): _93.QueryCreditTypeResponseAmino; + fromAminoMsg(object: _93.QueryCreditTypeResponseAminoMsg): _93.QueryCreditTypeResponse; + fromProtoMsg(message: _93.QueryCreditTypeResponseProtoMsg): _93.QueryCreditTypeResponse; + toProto(message: _93.QueryCreditTypeResponse): Uint8Array; + toProtoMsg(message: _93.QueryCreditTypeResponse): _93.QueryCreditTypeResponseProtoMsg; + }; + ClassInfo: { + typeUrl: string; + encode(message: _93.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.ClassInfo; + fromPartial(object: Partial<_93.ClassInfo>): _93.ClassInfo; + fromAmino(object: _93.ClassInfoAmino): _93.ClassInfo; + toAmino(message: _93.ClassInfo): _93.ClassInfoAmino; + fromAminoMsg(object: _93.ClassInfoAminoMsg): _93.ClassInfo; + fromProtoMsg(message: _93.ClassInfoProtoMsg): _93.ClassInfo; + toProto(message: _93.ClassInfo): Uint8Array; + toProtoMsg(message: _93.ClassInfo): _93.ClassInfoProtoMsg; + }; + ProjectInfo: { + typeUrl: string; + encode(message: _93.ProjectInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.ProjectInfo; + fromPartial(object: Partial<_93.ProjectInfo>): _93.ProjectInfo; + fromAmino(object: _93.ProjectInfoAmino): _93.ProjectInfo; + toAmino(message: _93.ProjectInfo): _93.ProjectInfoAmino; + fromAminoMsg(object: _93.ProjectInfoAminoMsg): _93.ProjectInfo; + fromProtoMsg(message: _93.ProjectInfoProtoMsg): _93.ProjectInfo; + toProto(message: _93.ProjectInfo): Uint8Array; + toProtoMsg(message: _93.ProjectInfo): _93.ProjectInfoProtoMsg; + }; + BatchInfo: { + typeUrl: string; + encode(message: _93.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.BatchInfo; + fromPartial(object: Partial<_93.BatchInfo>): _93.BatchInfo; + fromAmino(object: _93.BatchInfoAmino): _93.BatchInfo; + toAmino(message: _93.BatchInfo): _93.BatchInfoAmino; + fromAminoMsg(object: _93.BatchInfoAminoMsg): _93.BatchInfo; + fromProtoMsg(message: _93.BatchInfoProtoMsg): _93.BatchInfo; + toProto(message: _93.BatchInfo): Uint8Array; + toProtoMsg(message: _93.BatchInfo): _93.BatchInfoProtoMsg; + }; + BatchBalanceInfo: { + typeUrl: string; + encode(message: _93.BatchBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.BatchBalanceInfo; + fromPartial(object: Partial<_93.BatchBalanceInfo>): _93.BatchBalanceInfo; + fromAmino(object: _93.BatchBalanceInfoAmino): _93.BatchBalanceInfo; + toAmino(message: _93.BatchBalanceInfo): _93.BatchBalanceInfoAmino; + fromAminoMsg(object: _93.BatchBalanceInfoAminoMsg): _93.BatchBalanceInfo; + fromProtoMsg(message: _93.BatchBalanceInfoProtoMsg): _93.BatchBalanceInfo; + toProto(message: _93.BatchBalanceInfo): Uint8Array; + toProtoMsg(message: _93.BatchBalanceInfo): _93.BatchBalanceInfoProtoMsg; + }; + QueryClassCreatorAllowlistRequest: { + typeUrl: string; + encode(_: _93.QueryClassCreatorAllowlistRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassCreatorAllowlistRequest; + fromPartial(_: Partial<_93.QueryClassCreatorAllowlistRequest>): _93.QueryClassCreatorAllowlistRequest; + fromAmino(_: _93.QueryClassCreatorAllowlistRequestAmino): _93.QueryClassCreatorAllowlistRequest; + toAmino(_: _93.QueryClassCreatorAllowlistRequest): _93.QueryClassCreatorAllowlistRequestAmino; + fromAminoMsg(object: _93.QueryClassCreatorAllowlistRequestAminoMsg): _93.QueryClassCreatorAllowlistRequest; + fromProtoMsg(message: _93.QueryClassCreatorAllowlistRequestProtoMsg): _93.QueryClassCreatorAllowlistRequest; + toProto(message: _93.QueryClassCreatorAllowlistRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassCreatorAllowlistRequest): _93.QueryClassCreatorAllowlistRequestProtoMsg; + }; + QueryClassCreatorAllowlistResponse: { + typeUrl: string; + encode(message: _93.QueryClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassCreatorAllowlistResponse; + fromPartial(object: Partial<_93.QueryClassCreatorAllowlistResponse>): _93.QueryClassCreatorAllowlistResponse; + fromAmino(object: _93.QueryClassCreatorAllowlistResponseAmino): _93.QueryClassCreatorAllowlistResponse; + toAmino(message: _93.QueryClassCreatorAllowlistResponse): _93.QueryClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: _93.QueryClassCreatorAllowlistResponseAminoMsg): _93.QueryClassCreatorAllowlistResponse; + fromProtoMsg(message: _93.QueryClassCreatorAllowlistResponseProtoMsg): _93.QueryClassCreatorAllowlistResponse; + toProto(message: _93.QueryClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassCreatorAllowlistResponse): _93.QueryClassCreatorAllowlistResponseProtoMsg; + }; + QueryAllowedClassCreatorsRequest: { + typeUrl: string; + encode(message: _93.QueryAllowedClassCreatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedClassCreatorsRequest; + fromPartial(object: Partial<_93.QueryAllowedClassCreatorsRequest>): _93.QueryAllowedClassCreatorsRequest; + fromAmino(object: _93.QueryAllowedClassCreatorsRequestAmino): _93.QueryAllowedClassCreatorsRequest; + toAmino(message: _93.QueryAllowedClassCreatorsRequest): _93.QueryAllowedClassCreatorsRequestAmino; + fromAminoMsg(object: _93.QueryAllowedClassCreatorsRequestAminoMsg): _93.QueryAllowedClassCreatorsRequest; + fromProtoMsg(message: _93.QueryAllowedClassCreatorsRequestProtoMsg): _93.QueryAllowedClassCreatorsRequest; + toProto(message: _93.QueryAllowedClassCreatorsRequest): Uint8Array; + toProtoMsg(message: _93.QueryAllowedClassCreatorsRequest): _93.QueryAllowedClassCreatorsRequestProtoMsg; + }; + QueryAllowedClassCreatorsResponse: { + typeUrl: string; + encode(message: _93.QueryAllowedClassCreatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedClassCreatorsResponse; + fromPartial(object: Partial<_93.QueryAllowedClassCreatorsResponse>): _93.QueryAllowedClassCreatorsResponse; + fromAmino(object: _93.QueryAllowedClassCreatorsResponseAmino): _93.QueryAllowedClassCreatorsResponse; + toAmino(message: _93.QueryAllowedClassCreatorsResponse): _93.QueryAllowedClassCreatorsResponseAmino; + fromAminoMsg(object: _93.QueryAllowedClassCreatorsResponseAminoMsg): _93.QueryAllowedClassCreatorsResponse; + fromProtoMsg(message: _93.QueryAllowedClassCreatorsResponseProtoMsg): _93.QueryAllowedClassCreatorsResponse; + toProto(message: _93.QueryAllowedClassCreatorsResponse): Uint8Array; + toProtoMsg(message: _93.QueryAllowedClassCreatorsResponse): _93.QueryAllowedClassCreatorsResponseProtoMsg; + }; + QueryClassFeeRequest: { + typeUrl: string; + encode(_: _93.QueryClassFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassFeeRequest; + fromPartial(_: Partial<_93.QueryClassFeeRequest>): _93.QueryClassFeeRequest; + fromAmino(_: _93.QueryClassFeeRequestAmino): _93.QueryClassFeeRequest; + toAmino(_: _93.QueryClassFeeRequest): _93.QueryClassFeeRequestAmino; + fromAminoMsg(object: _93.QueryClassFeeRequestAminoMsg): _93.QueryClassFeeRequest; + fromProtoMsg(message: _93.QueryClassFeeRequestProtoMsg): _93.QueryClassFeeRequest; + toProto(message: _93.QueryClassFeeRequest): Uint8Array; + toProtoMsg(message: _93.QueryClassFeeRequest): _93.QueryClassFeeRequestProtoMsg; + }; + QueryClassFeeResponse: { + typeUrl: string; + encode(message: _93.QueryClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassFeeResponse; + fromPartial(object: Partial<_93.QueryClassFeeResponse>): _93.QueryClassFeeResponse; + fromAmino(object: _93.QueryClassFeeResponseAmino): _93.QueryClassFeeResponse; + toAmino(message: _93.QueryClassFeeResponse): _93.QueryClassFeeResponseAmino; + fromAminoMsg(object: _93.QueryClassFeeResponseAminoMsg): _93.QueryClassFeeResponse; + fromProtoMsg(message: _93.QueryClassFeeResponseProtoMsg): _93.QueryClassFeeResponse; + toProto(message: _93.QueryClassFeeResponse): Uint8Array; + toProtoMsg(message: _93.QueryClassFeeResponse): _93.QueryClassFeeResponseProtoMsg; + }; + QueryAllowedBridgeChainsRequest: { + typeUrl: string; + encode(_: _93.QueryAllowedBridgeChainsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedBridgeChainsRequest; + fromPartial(_: Partial<_93.QueryAllowedBridgeChainsRequest>): _93.QueryAllowedBridgeChainsRequest; + fromAmino(_: _93.QueryAllowedBridgeChainsRequestAmino): _93.QueryAllowedBridgeChainsRequest; + toAmino(_: _93.QueryAllowedBridgeChainsRequest): _93.QueryAllowedBridgeChainsRequestAmino; + fromAminoMsg(object: _93.QueryAllowedBridgeChainsRequestAminoMsg): _93.QueryAllowedBridgeChainsRequest; + fromProtoMsg(message: _93.QueryAllowedBridgeChainsRequestProtoMsg): _93.QueryAllowedBridgeChainsRequest; + toProto(message: _93.QueryAllowedBridgeChainsRequest): Uint8Array; + toProtoMsg(message: _93.QueryAllowedBridgeChainsRequest): _93.QueryAllowedBridgeChainsRequestProtoMsg; + }; + QueryAllowedBridgeChainsResponse: { + typeUrl: string; + encode(message: _93.QueryAllowedBridgeChainsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedBridgeChainsResponse; + fromPartial(object: Partial<_93.QueryAllowedBridgeChainsResponse>): _93.QueryAllowedBridgeChainsResponse; + fromAmino(object: _93.QueryAllowedBridgeChainsResponseAmino): _93.QueryAllowedBridgeChainsResponse; + toAmino(message: _93.QueryAllowedBridgeChainsResponse): _93.QueryAllowedBridgeChainsResponseAmino; + fromAminoMsg(object: _93.QueryAllowedBridgeChainsResponseAminoMsg): _93.QueryAllowedBridgeChainsResponse; + fromProtoMsg(message: _93.QueryAllowedBridgeChainsResponseProtoMsg): _93.QueryAllowedBridgeChainsResponse; + toProto(message: _93.QueryAllowedBridgeChainsResponse): Uint8Array; + toProtoMsg(message: _93.QueryAllowedBridgeChainsResponse): _93.QueryAllowedBridgeChainsResponseProtoMsg; + }; + EventCreateClass: { + typeUrl: string; + encode(message: _92.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateClass; + fromPartial(object: Partial<_92.EventCreateClass>): _92.EventCreateClass; + fromAmino(object: _92.EventCreateClassAmino): _92.EventCreateClass; + toAmino(message: _92.EventCreateClass): _92.EventCreateClassAmino; + fromAminoMsg(object: _92.EventCreateClassAminoMsg): _92.EventCreateClass; + fromProtoMsg(message: _92.EventCreateClassProtoMsg): _92.EventCreateClass; + toProto(message: _92.EventCreateClass): Uint8Array; + toProtoMsg(message: _92.EventCreateClass): _92.EventCreateClassProtoMsg; + }; + EventCreateProject: { + typeUrl: string; + encode(message: _92.EventCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateProject; + fromPartial(object: Partial<_92.EventCreateProject>): _92.EventCreateProject; + fromAmino(object: _92.EventCreateProjectAmino): _92.EventCreateProject; + toAmino(message: _92.EventCreateProject): _92.EventCreateProjectAmino; + fromAminoMsg(object: _92.EventCreateProjectAminoMsg): _92.EventCreateProject; + fromProtoMsg(message: _92.EventCreateProjectProtoMsg): _92.EventCreateProject; + toProto(message: _92.EventCreateProject): Uint8Array; + toProtoMsg(message: _92.EventCreateProject): _92.EventCreateProjectProtoMsg; + }; + EventCreateBatch: { + typeUrl: string; + encode(message: _92.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateBatch; + fromPartial(object: Partial<_92.EventCreateBatch>): _92.EventCreateBatch; + fromAmino(object: _92.EventCreateBatchAmino): _92.EventCreateBatch; + toAmino(message: _92.EventCreateBatch): _92.EventCreateBatchAmino; + fromAminoMsg(object: _92.EventCreateBatchAminoMsg): _92.EventCreateBatch; + fromProtoMsg(message: _92.EventCreateBatchProtoMsg): _92.EventCreateBatch; + toProto(message: _92.EventCreateBatch): Uint8Array; + toProtoMsg(message: _92.EventCreateBatch): _92.EventCreateBatchProtoMsg; + }; + EventMint: { + typeUrl: string; + encode(message: _92.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventMint; + fromPartial(object: Partial<_92.EventMint>): _92.EventMint; + fromAmino(object: _92.EventMintAmino): _92.EventMint; + toAmino(message: _92.EventMint): _92.EventMintAmino; + fromAminoMsg(object: _92.EventMintAminoMsg): _92.EventMint; + fromProtoMsg(message: _92.EventMintProtoMsg): _92.EventMint; + toProto(message: _92.EventMint): Uint8Array; + toProtoMsg(message: _92.EventMint): _92.EventMintProtoMsg; + }; + EventMintBatchCredits: { + typeUrl: string; + encode(message: _92.EventMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventMintBatchCredits; + fromPartial(object: Partial<_92.EventMintBatchCredits>): _92.EventMintBatchCredits; + fromAmino(object: _92.EventMintBatchCreditsAmino): _92.EventMintBatchCredits; + toAmino(message: _92.EventMintBatchCredits): _92.EventMintBatchCreditsAmino; + fromAminoMsg(object: _92.EventMintBatchCreditsAminoMsg): _92.EventMintBatchCredits; + fromProtoMsg(message: _92.EventMintBatchCreditsProtoMsg): _92.EventMintBatchCredits; + toProto(message: _92.EventMintBatchCredits): Uint8Array; + toProtoMsg(message: _92.EventMintBatchCredits): _92.EventMintBatchCreditsProtoMsg; + }; + EventTransfer: { + typeUrl: string; + encode(message: _92.EventTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventTransfer; + fromPartial(object: Partial<_92.EventTransfer>): _92.EventTransfer; + fromAmino(object: _92.EventTransferAmino): _92.EventTransfer; + toAmino(message: _92.EventTransfer): _92.EventTransferAmino; + fromAminoMsg(object: _92.EventTransferAminoMsg): _92.EventTransfer; + fromProtoMsg(message: _92.EventTransferProtoMsg): _92.EventTransfer; + toProto(message: _92.EventTransfer): Uint8Array; + toProtoMsg(message: _92.EventTransfer): _92.EventTransferProtoMsg; + }; + EventRetire: { + typeUrl: string; + encode(message: _92.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventRetire; + fromPartial(object: Partial<_92.EventRetire>): _92.EventRetire; + fromAmino(object: _92.EventRetireAmino): _92.EventRetire; + toAmino(message: _92.EventRetire): _92.EventRetireAmino; + fromAminoMsg(object: _92.EventRetireAminoMsg): _92.EventRetire; + fromProtoMsg(message: _92.EventRetireProtoMsg): _92.EventRetire; + toProto(message: _92.EventRetire): Uint8Array; + toProtoMsg(message: _92.EventRetire): _92.EventRetireProtoMsg; + }; + EventCancel: { + typeUrl: string; + encode(message: _92.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCancel; + fromPartial(object: Partial<_92.EventCancel>): _92.EventCancel; + fromAmino(object: _92.EventCancelAmino): _92.EventCancel; + toAmino(message: _92.EventCancel): _92.EventCancelAmino; + fromAminoMsg(object: _92.EventCancelAminoMsg): _92.EventCancel; + fromProtoMsg(message: _92.EventCancelProtoMsg): _92.EventCancel; + toProto(message: _92.EventCancel): Uint8Array; + toProtoMsg(message: _92.EventCancel): _92.EventCancelProtoMsg; + }; + EventUpdateClassAdmin: { + typeUrl: string; + encode(message: _92.EventUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassAdmin; + fromPartial(object: Partial<_92.EventUpdateClassAdmin>): _92.EventUpdateClassAdmin; + fromAmino(object: _92.EventUpdateClassAdminAmino): _92.EventUpdateClassAdmin; + toAmino(message: _92.EventUpdateClassAdmin): _92.EventUpdateClassAdminAmino; + fromAminoMsg(object: _92.EventUpdateClassAdminAminoMsg): _92.EventUpdateClassAdmin; + fromProtoMsg(message: _92.EventUpdateClassAdminProtoMsg): _92.EventUpdateClassAdmin; + toProto(message: _92.EventUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _92.EventUpdateClassAdmin): _92.EventUpdateClassAdminProtoMsg; + }; + EventUpdateClassIssuers: { + typeUrl: string; + encode(message: _92.EventUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassIssuers; + fromPartial(object: Partial<_92.EventUpdateClassIssuers>): _92.EventUpdateClassIssuers; + fromAmino(object: _92.EventUpdateClassIssuersAmino): _92.EventUpdateClassIssuers; + toAmino(message: _92.EventUpdateClassIssuers): _92.EventUpdateClassIssuersAmino; + fromAminoMsg(object: _92.EventUpdateClassIssuersAminoMsg): _92.EventUpdateClassIssuers; + fromProtoMsg(message: _92.EventUpdateClassIssuersProtoMsg): _92.EventUpdateClassIssuers; + toProto(message: _92.EventUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _92.EventUpdateClassIssuers): _92.EventUpdateClassIssuersProtoMsg; + }; + EventUpdateClassMetadata: { + typeUrl: string; + encode(message: _92.EventUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassMetadata; + fromPartial(object: Partial<_92.EventUpdateClassMetadata>): _92.EventUpdateClassMetadata; + fromAmino(object: _92.EventUpdateClassMetadataAmino): _92.EventUpdateClassMetadata; + toAmino(message: _92.EventUpdateClassMetadata): _92.EventUpdateClassMetadataAmino; + fromAminoMsg(object: _92.EventUpdateClassMetadataAminoMsg): _92.EventUpdateClassMetadata; + fromProtoMsg(message: _92.EventUpdateClassMetadataProtoMsg): _92.EventUpdateClassMetadata; + toProto(message: _92.EventUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _92.EventUpdateClassMetadata): _92.EventUpdateClassMetadataProtoMsg; + }; + EventUpdateProjectAdmin: { + typeUrl: string; + encode(message: _92.EventUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateProjectAdmin; + fromPartial(object: Partial<_92.EventUpdateProjectAdmin>): _92.EventUpdateProjectAdmin; + fromAmino(object: _92.EventUpdateProjectAdminAmino): _92.EventUpdateProjectAdmin; + toAmino(message: _92.EventUpdateProjectAdmin): _92.EventUpdateProjectAdminAmino; + fromAminoMsg(object: _92.EventUpdateProjectAdminAminoMsg): _92.EventUpdateProjectAdmin; + fromProtoMsg(message: _92.EventUpdateProjectAdminProtoMsg): _92.EventUpdateProjectAdmin; + toProto(message: _92.EventUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: _92.EventUpdateProjectAdmin): _92.EventUpdateProjectAdminProtoMsg; + }; + EventUpdateProjectMetadata: { + typeUrl: string; + encode(message: _92.EventUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateProjectMetadata; + fromPartial(object: Partial<_92.EventUpdateProjectMetadata>): _92.EventUpdateProjectMetadata; + fromAmino(object: _92.EventUpdateProjectMetadataAmino): _92.EventUpdateProjectMetadata; + toAmino(message: _92.EventUpdateProjectMetadata): _92.EventUpdateProjectMetadataAmino; + fromAminoMsg(object: _92.EventUpdateProjectMetadataAminoMsg): _92.EventUpdateProjectMetadata; + fromProtoMsg(message: _92.EventUpdateProjectMetadataProtoMsg): _92.EventUpdateProjectMetadata; + toProto(message: _92.EventUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: _92.EventUpdateProjectMetadata): _92.EventUpdateProjectMetadataProtoMsg; + }; + EventUpdateBatchMetadata: { + typeUrl: string; + encode(message: _92.EventUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateBatchMetadata; + fromPartial(object: Partial<_92.EventUpdateBatchMetadata>): _92.EventUpdateBatchMetadata; + fromAmino(object: _92.EventUpdateBatchMetadataAmino): _92.EventUpdateBatchMetadata; + toAmino(message: _92.EventUpdateBatchMetadata): _92.EventUpdateBatchMetadataAmino; + fromAminoMsg(object: _92.EventUpdateBatchMetadataAminoMsg): _92.EventUpdateBatchMetadata; + fromProtoMsg(message: _92.EventUpdateBatchMetadataProtoMsg): _92.EventUpdateBatchMetadata; + toProto(message: _92.EventUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: _92.EventUpdateBatchMetadata): _92.EventUpdateBatchMetadataProtoMsg; + }; + EventSealBatch: { + typeUrl: string; + encode(message: _92.EventSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventSealBatch; + fromPartial(object: Partial<_92.EventSealBatch>): _92.EventSealBatch; + fromAmino(object: _92.EventSealBatchAmino): _92.EventSealBatch; + toAmino(message: _92.EventSealBatch): _92.EventSealBatchAmino; + fromAminoMsg(object: _92.EventSealBatchAminoMsg): _92.EventSealBatch; + fromProtoMsg(message: _92.EventSealBatchProtoMsg): _92.EventSealBatch; + toProto(message: _92.EventSealBatch): Uint8Array; + toProtoMsg(message: _92.EventSealBatch): _92.EventSealBatchProtoMsg; + }; + EventAddCreditType: { + typeUrl: string; + encode(message: _92.EventAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventAddCreditType; + fromPartial(object: Partial<_92.EventAddCreditType>): _92.EventAddCreditType; + fromAmino(object: _92.EventAddCreditTypeAmino): _92.EventAddCreditType; + toAmino(message: _92.EventAddCreditType): _92.EventAddCreditTypeAmino; + fromAminoMsg(object: _92.EventAddCreditTypeAminoMsg): _92.EventAddCreditType; + fromProtoMsg(message: _92.EventAddCreditTypeProtoMsg): _92.EventAddCreditType; + toProto(message: _92.EventAddCreditType): Uint8Array; + toProtoMsg(message: _92.EventAddCreditType): _92.EventAddCreditTypeProtoMsg; + }; + EventBridge: { + typeUrl: string; + encode(message: _92.EventBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventBridge; + fromPartial(object: Partial<_92.EventBridge>): _92.EventBridge; + fromAmino(object: _92.EventBridgeAmino): _92.EventBridge; + toAmino(message: _92.EventBridge): _92.EventBridgeAmino; + fromAminoMsg(object: _92.EventBridgeAminoMsg): _92.EventBridge; + fromProtoMsg(message: _92.EventBridgeProtoMsg): _92.EventBridge; + toProto(message: _92.EventBridge): Uint8Array; + toProtoMsg(message: _92.EventBridge): _92.EventBridgeProtoMsg; + }; + EventBridgeReceive: { + typeUrl: string; + encode(message: _92.EventBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventBridgeReceive; + fromPartial(object: Partial<_92.EventBridgeReceive>): _92.EventBridgeReceive; + fromAmino(object: _92.EventBridgeReceiveAmino): _92.EventBridgeReceive; + toAmino(message: _92.EventBridgeReceive): _92.EventBridgeReceiveAmino; + fromAminoMsg(object: _92.EventBridgeReceiveAminoMsg): _92.EventBridgeReceive; + fromProtoMsg(message: _92.EventBridgeReceiveProtoMsg): _92.EventBridgeReceive; + toProto(message: _92.EventBridgeReceive): Uint8Array; + toProtoMsg(message: _92.EventBridgeReceive): _92.EventBridgeReceiveProtoMsg; + }; + }; + const v1alpha1: { + MsgClientImpl: typeof _215.MsgClientImpl; + QueryClientImpl: typeof _209.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + classes(request?: _99.QueryClassesRequest): Promise<_99.QueryClassesResponse>; + classInfo(request: _99.QueryClassInfoRequest): Promise<_99.QueryClassInfoResponse>; + batches(request: _99.QueryBatchesRequest): Promise<_99.QueryBatchesResponse>; + batchInfo(request: _99.QueryBatchInfoRequest): Promise<_99.QueryBatchInfoResponse>; + balance(request: _99.QueryBalanceRequest): Promise<_99.QueryBalanceResponse>; + supply(request: _99.QuerySupplyRequest): Promise<_99.QuerySupplyResponse>; + creditTypes(request?: _99.QueryCreditTypesRequest): Promise<_99.QueryCreditTypesResponse>; + params(request?: _99.QueryParamsRequest): Promise<_99.QueryParamsResponse>; + }; + LCDQueryClient: typeof _203.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + createClass(value: _100.MsgCreateClass): { + typeUrl: string; + value: Uint8Array; + }; + createBatch(value: _100.MsgCreateBatch): { + typeUrl: string; + value: Uint8Array; + }; + send(value: _100.MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + retire(value: _100.MsgRetire): { + typeUrl: string; + value: Uint8Array; + }; + cancel(value: _100.MsgCancel): { + typeUrl: string; + value: Uint8Array; + }; + updateClassAdmin(value: _100.MsgUpdateClassAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateClassIssuers(value: _100.MsgUpdateClassIssuers): { + typeUrl: string; + value: Uint8Array; + }; + updateClassMetadata(value: _100.MsgUpdateClassMetadata): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClass(value: _100.MsgCreateClass): { + typeUrl: string; + value: _100.MsgCreateClass; + }; + createBatch(value: _100.MsgCreateBatch): { + typeUrl: string; + value: _100.MsgCreateBatch; + }; + send(value: _100.MsgSend): { + typeUrl: string; + value: _100.MsgSend; + }; + retire(value: _100.MsgRetire): { + typeUrl: string; + value: _100.MsgRetire; + }; + cancel(value: _100.MsgCancel): { + typeUrl: string; + value: _100.MsgCancel; + }; + updateClassAdmin(value: _100.MsgUpdateClassAdmin): { + typeUrl: string; + value: _100.MsgUpdateClassAdmin; + }; + updateClassIssuers(value: _100.MsgUpdateClassIssuers): { + typeUrl: string; + value: _100.MsgUpdateClassIssuers; + }; + updateClassMetadata(value: _100.MsgUpdateClassMetadata): { + typeUrl: string; + value: _100.MsgUpdateClassMetadata; + }; + }; + fromPartial: { + createClass(value: _100.MsgCreateClass): { + typeUrl: string; + value: _100.MsgCreateClass; + }; + createBatch(value: _100.MsgCreateBatch): { + typeUrl: string; + value: _100.MsgCreateBatch; + }; + send(value: _100.MsgSend): { + typeUrl: string; + value: _100.MsgSend; + }; + retire(value: _100.MsgRetire): { + typeUrl: string; + value: _100.MsgRetire; + }; + cancel(value: _100.MsgCancel): { + typeUrl: string; + value: _100.MsgCancel; + }; + updateClassAdmin(value: _100.MsgUpdateClassAdmin): { + typeUrl: string; + value: _100.MsgUpdateClassAdmin; + }; + updateClassIssuers(value: _100.MsgUpdateClassIssuers): { + typeUrl: string; + value: _100.MsgUpdateClassIssuers; + }; + updateClassMetadata(value: _100.MsgUpdateClassMetadata): { + typeUrl: string; + value: _100.MsgUpdateClassMetadata; + }; + }; + }; + AminoConverter: { + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: string; + toAmino: (message: _100.MsgCreateClass) => _100.MsgCreateClassAmino; + fromAmino: (object: _100.MsgCreateClassAmino) => _100.MsgCreateClass; + }; + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: _100.MsgCreateBatch) => _100.MsgCreateBatchAmino; + fromAmino: (object: _100.MsgCreateBatchAmino) => _100.MsgCreateBatch; + }; + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: string; + toAmino: (message: _100.MsgSend) => _100.MsgSendAmino; + fromAmino: (object: _100.MsgSendAmino) => _100.MsgSend; + }; + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: string; + toAmino: (message: _100.MsgRetire) => _100.MsgRetireAmino; + fromAmino: (object: _100.MsgRetireAmino) => _100.MsgRetire; + }; + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: string; + toAmino: (message: _100.MsgCancel) => _100.MsgCancelAmino; + fromAmino: (object: _100.MsgCancelAmino) => _100.MsgCancel; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: _100.MsgUpdateClassAdmin) => _100.MsgUpdateClassAdminAmino; + fromAmino: (object: _100.MsgUpdateClassAdminAmino) => _100.MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: _100.MsgUpdateClassIssuers) => _100.MsgUpdateClassIssuersAmino; + fromAmino: (object: _100.MsgUpdateClassIssuersAmino) => _100.MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: _100.MsgUpdateClassMetadata) => _100.MsgUpdateClassMetadataAmino; + fromAmino: (object: _100.MsgUpdateClassMetadataAmino) => _100.MsgUpdateClassMetadata; + }; + }; + ClassInfo: { + typeUrl: string; + encode(message: _101.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.ClassInfo; + fromPartial(object: Partial<_101.ClassInfo>): _101.ClassInfo; + fromAmino(object: _101.ClassInfoAmino): _101.ClassInfo; + toAmino(message: _101.ClassInfo): _101.ClassInfoAmino; + fromAminoMsg(object: _101.ClassInfoAminoMsg): _101.ClassInfo; + fromProtoMsg(message: _101.ClassInfoProtoMsg): _101.ClassInfo; + toProto(message: _101.ClassInfo): Uint8Array; + toProtoMsg(message: _101.ClassInfo): _101.ClassInfoProtoMsg; + }; + BatchInfo: { + typeUrl: string; + encode(message: _101.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.BatchInfo; + fromPartial(object: Partial<_101.BatchInfo>): _101.BatchInfo; + fromAmino(object: _101.BatchInfoAmino): _101.BatchInfo; + toAmino(message: _101.BatchInfo): _101.BatchInfoAmino; + fromAminoMsg(object: _101.BatchInfoAminoMsg): _101.BatchInfo; + fromProtoMsg(message: _101.BatchInfoProtoMsg): _101.BatchInfo; + toProto(message: _101.BatchInfo): Uint8Array; + toProtoMsg(message: _101.BatchInfo): _101.BatchInfoProtoMsg; + }; + Params: { + typeUrl: string; + encode(message: _101.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.Params; + fromPartial(object: Partial<_101.Params>): _101.Params; + fromAmino(object: _101.ParamsAmino): _101.Params; + toAmino(message: _101.Params): _101.ParamsAmino; + fromAminoMsg(object: _101.ParamsAminoMsg): _101.Params; + fromProtoMsg(message: _101.ParamsProtoMsg): _101.Params; + toProto(message: _101.Params): Uint8Array; + toProtoMsg(message: _101.Params): _101.ParamsProtoMsg; + }; + CreditType: { + typeUrl: string; + encode(message: _101.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.CreditType; + fromPartial(object: Partial<_101.CreditType>): _101.CreditType; + fromAmino(object: _101.CreditTypeAmino): _101.CreditType; + toAmino(message: _101.CreditType): _101.CreditTypeAmino; + fromAminoMsg(object: _101.CreditTypeAminoMsg): _101.CreditType; + fromProtoMsg(message: _101.CreditTypeProtoMsg): _101.CreditType; + toProto(message: _101.CreditType): Uint8Array; + toProtoMsg(message: _101.CreditType): _101.CreditTypeProtoMsg; + }; + CreditTypeSeq: { + typeUrl: string; + encode(message: _101.CreditTypeSeq, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.CreditTypeSeq; + fromPartial(object: Partial<_101.CreditTypeSeq>): _101.CreditTypeSeq; + fromAmino(object: _101.CreditTypeSeqAmino): _101.CreditTypeSeq; + toAmino(message: _101.CreditTypeSeq): _101.CreditTypeSeqAmino; + fromAminoMsg(object: _101.CreditTypeSeqAminoMsg): _101.CreditTypeSeq; + fromProtoMsg(message: _101.CreditTypeSeqProtoMsg): _101.CreditTypeSeq; + toProto(message: _101.CreditTypeSeq): Uint8Array; + toProtoMsg(message: _101.CreditTypeSeq): _101.CreditTypeSeqProtoMsg; + }; + MsgCreateClass: { + typeUrl: string; + encode(message: _100.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateClass; + fromPartial(object: Partial<_100.MsgCreateClass>): _100.MsgCreateClass; + fromAmino(object: _100.MsgCreateClassAmino): _100.MsgCreateClass; + toAmino(message: _100.MsgCreateClass): _100.MsgCreateClassAmino; + fromAminoMsg(object: _100.MsgCreateClassAminoMsg): _100.MsgCreateClass; + fromProtoMsg(message: _100.MsgCreateClassProtoMsg): _100.MsgCreateClass; + toProto(message: _100.MsgCreateClass): Uint8Array; + toProtoMsg(message: _100.MsgCreateClass): _100.MsgCreateClassProtoMsg; + }; + MsgCreateClassResponse: { + typeUrl: string; + encode(message: _100.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateClassResponse; + fromPartial(object: Partial<_100.MsgCreateClassResponse>): _100.MsgCreateClassResponse; + fromAmino(object: _100.MsgCreateClassResponseAmino): _100.MsgCreateClassResponse; + toAmino(message: _100.MsgCreateClassResponse): _100.MsgCreateClassResponseAmino; + fromAminoMsg(object: _100.MsgCreateClassResponseAminoMsg): _100.MsgCreateClassResponse; + fromProtoMsg(message: _100.MsgCreateClassResponseProtoMsg): _100.MsgCreateClassResponse; + toProto(message: _100.MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: _100.MsgCreateClassResponse): _100.MsgCreateClassResponseProtoMsg; + }; + MsgCreateBatch: { + typeUrl: string; + encode(message: _100.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatch; + fromPartial(object: Partial<_100.MsgCreateBatch>): _100.MsgCreateBatch; + fromAmino(object: _100.MsgCreateBatchAmino): _100.MsgCreateBatch; + toAmino(message: _100.MsgCreateBatch): _100.MsgCreateBatchAmino; + fromAminoMsg(object: _100.MsgCreateBatchAminoMsg): _100.MsgCreateBatch; + fromProtoMsg(message: _100.MsgCreateBatchProtoMsg): _100.MsgCreateBatch; + toProto(message: _100.MsgCreateBatch): Uint8Array; + toProtoMsg(message: _100.MsgCreateBatch): _100.MsgCreateBatchProtoMsg; + }; + MsgCreateBatch_BatchIssuance: { + typeUrl: string; + encode(message: _100.MsgCreateBatch_BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatch_BatchIssuance; + fromPartial(object: Partial<_100.MsgCreateBatch_BatchIssuance>): _100.MsgCreateBatch_BatchIssuance; + fromAmino(object: _100.MsgCreateBatch_BatchIssuanceAmino): _100.MsgCreateBatch_BatchIssuance; + toAmino(message: _100.MsgCreateBatch_BatchIssuance): _100.MsgCreateBatch_BatchIssuanceAmino; + fromAminoMsg(object: _100.MsgCreateBatch_BatchIssuanceAminoMsg): _100.MsgCreateBatch_BatchIssuance; + fromProtoMsg(message: _100.MsgCreateBatch_BatchIssuanceProtoMsg): _100.MsgCreateBatch_BatchIssuance; + toProto(message: _100.MsgCreateBatch_BatchIssuance): Uint8Array; + toProtoMsg(message: _100.MsgCreateBatch_BatchIssuance): _100.MsgCreateBatch_BatchIssuanceProtoMsg; + }; + MsgCreateBatchResponse: { + typeUrl: string; + encode(message: _100.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatchResponse; + fromPartial(object: Partial<_100.MsgCreateBatchResponse>): _100.MsgCreateBatchResponse; + fromAmino(object: _100.MsgCreateBatchResponseAmino): _100.MsgCreateBatchResponse; + toAmino(message: _100.MsgCreateBatchResponse): _100.MsgCreateBatchResponseAmino; + fromAminoMsg(object: _100.MsgCreateBatchResponseAminoMsg): _100.MsgCreateBatchResponse; + fromProtoMsg(message: _100.MsgCreateBatchResponseProtoMsg): _100.MsgCreateBatchResponse; + toProto(message: _100.MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: _100.MsgCreateBatchResponse): _100.MsgCreateBatchResponseProtoMsg; + }; + MsgSend: { + typeUrl: string; + encode(message: _100.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSend; + fromPartial(object: Partial<_100.MsgSend>): _100.MsgSend; + fromAmino(object: _100.MsgSendAmino): _100.MsgSend; + toAmino(message: _100.MsgSend): _100.MsgSendAmino; + fromAminoMsg(object: _100.MsgSendAminoMsg): _100.MsgSend; + fromProtoMsg(message: _100.MsgSendProtoMsg): _100.MsgSend; + toProto(message: _100.MsgSend): Uint8Array; + toProtoMsg(message: _100.MsgSend): _100.MsgSendProtoMsg; + }; + MsgSend_SendCredits: { + typeUrl: string; + encode(message: _100.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSend_SendCredits; + fromPartial(object: Partial<_100.MsgSend_SendCredits>): _100.MsgSend_SendCredits; + fromAmino(object: _100.MsgSend_SendCreditsAmino): _100.MsgSend_SendCredits; + toAmino(message: _100.MsgSend_SendCredits): _100.MsgSend_SendCreditsAmino; + fromAminoMsg(object: _100.MsgSend_SendCreditsAminoMsg): _100.MsgSend_SendCredits; + fromProtoMsg(message: _100.MsgSend_SendCreditsProtoMsg): _100.MsgSend_SendCredits; + toProto(message: _100.MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: _100.MsgSend_SendCredits): _100.MsgSend_SendCreditsProtoMsg; + }; + MsgSendResponse: { + typeUrl: string; + encode(_: _100.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSendResponse; + fromPartial(_: Partial<_100.MsgSendResponse>): _100.MsgSendResponse; + fromAmino(_: _100.MsgSendResponseAmino): _100.MsgSendResponse; + toAmino(_: _100.MsgSendResponse): _100.MsgSendResponseAmino; + fromAminoMsg(object: _100.MsgSendResponseAminoMsg): _100.MsgSendResponse; + fromProtoMsg(message: _100.MsgSendResponseProtoMsg): _100.MsgSendResponse; + toProto(message: _100.MsgSendResponse): Uint8Array; + toProtoMsg(message: _100.MsgSendResponse): _100.MsgSendResponseProtoMsg; + }; + MsgRetire: { + typeUrl: string; + encode(message: _100.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetire; + fromPartial(object: Partial<_100.MsgRetire>): _100.MsgRetire; + fromAmino(object: _100.MsgRetireAmino): _100.MsgRetire; + toAmino(message: _100.MsgRetire): _100.MsgRetireAmino; + fromAminoMsg(object: _100.MsgRetireAminoMsg): _100.MsgRetire; + fromProtoMsg(message: _100.MsgRetireProtoMsg): _100.MsgRetire; + toProto(message: _100.MsgRetire): Uint8Array; + toProtoMsg(message: _100.MsgRetire): _100.MsgRetireProtoMsg; + }; + MsgRetire_RetireCredits: { + typeUrl: string; + encode(message: _100.MsgRetire_RetireCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetire_RetireCredits; + fromPartial(object: Partial<_100.MsgRetire_RetireCredits>): _100.MsgRetire_RetireCredits; + fromAmino(object: _100.MsgRetire_RetireCreditsAmino): _100.MsgRetire_RetireCredits; + toAmino(message: _100.MsgRetire_RetireCredits): _100.MsgRetire_RetireCreditsAmino; + fromAminoMsg(object: _100.MsgRetire_RetireCreditsAminoMsg): _100.MsgRetire_RetireCredits; + fromProtoMsg(message: _100.MsgRetire_RetireCreditsProtoMsg): _100.MsgRetire_RetireCredits; + toProto(message: _100.MsgRetire_RetireCredits): Uint8Array; + toProtoMsg(message: _100.MsgRetire_RetireCredits): _100.MsgRetire_RetireCreditsProtoMsg; + }; + MsgRetireResponse: { + typeUrl: string; + encode(_: _100.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetireResponse; + fromPartial(_: Partial<_100.MsgRetireResponse>): _100.MsgRetireResponse; + fromAmino(_: _100.MsgRetireResponseAmino): _100.MsgRetireResponse; + toAmino(_: _100.MsgRetireResponse): _100.MsgRetireResponseAmino; + fromAminoMsg(object: _100.MsgRetireResponseAminoMsg): _100.MsgRetireResponse; + fromProtoMsg(message: _100.MsgRetireResponseProtoMsg): _100.MsgRetireResponse; + toProto(message: _100.MsgRetireResponse): Uint8Array; + toProtoMsg(message: _100.MsgRetireResponse): _100.MsgRetireResponseProtoMsg; + }; + MsgCancel: { + typeUrl: string; + encode(message: _100.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancel; + fromPartial(object: Partial<_100.MsgCancel>): _100.MsgCancel; + fromAmino(object: _100.MsgCancelAmino): _100.MsgCancel; + toAmino(message: _100.MsgCancel): _100.MsgCancelAmino; + fromAminoMsg(object: _100.MsgCancelAminoMsg): _100.MsgCancel; + fromProtoMsg(message: _100.MsgCancelProtoMsg): _100.MsgCancel; + toProto(message: _100.MsgCancel): Uint8Array; + toProtoMsg(message: _100.MsgCancel): _100.MsgCancelProtoMsg; + }; + MsgCancel_CancelCredits: { + typeUrl: string; + encode(message: _100.MsgCancel_CancelCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancel_CancelCredits; + fromPartial(object: Partial<_100.MsgCancel_CancelCredits>): _100.MsgCancel_CancelCredits; + fromAmino(object: _100.MsgCancel_CancelCreditsAmino): _100.MsgCancel_CancelCredits; + toAmino(message: _100.MsgCancel_CancelCredits): _100.MsgCancel_CancelCreditsAmino; + fromAminoMsg(object: _100.MsgCancel_CancelCreditsAminoMsg): _100.MsgCancel_CancelCredits; + fromProtoMsg(message: _100.MsgCancel_CancelCreditsProtoMsg): _100.MsgCancel_CancelCredits; + toProto(message: _100.MsgCancel_CancelCredits): Uint8Array; + toProtoMsg(message: _100.MsgCancel_CancelCredits): _100.MsgCancel_CancelCreditsProtoMsg; + }; + MsgCancelResponse: { + typeUrl: string; + encode(_: _100.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancelResponse; + fromPartial(_: Partial<_100.MsgCancelResponse>): _100.MsgCancelResponse; + fromAmino(_: _100.MsgCancelResponseAmino): _100.MsgCancelResponse; + toAmino(_: _100.MsgCancelResponse): _100.MsgCancelResponseAmino; + fromAminoMsg(object: _100.MsgCancelResponseAminoMsg): _100.MsgCancelResponse; + fromProtoMsg(message: _100.MsgCancelResponseProtoMsg): _100.MsgCancelResponse; + toProto(message: _100.MsgCancelResponse): Uint8Array; + toProtoMsg(message: _100.MsgCancelResponse): _100.MsgCancelResponseProtoMsg; + }; + MsgUpdateClassAdmin: { + typeUrl: string; + encode(message: _100.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassAdmin; + fromPartial(object: Partial<_100.MsgUpdateClassAdmin>): _100.MsgUpdateClassAdmin; + fromAmino(object: _100.MsgUpdateClassAdminAmino): _100.MsgUpdateClassAdmin; + toAmino(message: _100.MsgUpdateClassAdmin): _100.MsgUpdateClassAdminAmino; + fromAminoMsg(object: _100.MsgUpdateClassAdminAminoMsg): _100.MsgUpdateClassAdmin; + fromProtoMsg(message: _100.MsgUpdateClassAdminProtoMsg): _100.MsgUpdateClassAdmin; + toProto(message: _100.MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassAdmin): _100.MsgUpdateClassAdminProtoMsg; + }; + MsgUpdateClassAdminResponse: { + typeUrl: string; + encode(_: _100.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassAdminResponse; + fromPartial(_: Partial<_100.MsgUpdateClassAdminResponse>): _100.MsgUpdateClassAdminResponse; + fromAmino(_: _100.MsgUpdateClassAdminResponseAmino): _100.MsgUpdateClassAdminResponse; + toAmino(_: _100.MsgUpdateClassAdminResponse): _100.MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: _100.MsgUpdateClassAdminResponseAminoMsg): _100.MsgUpdateClassAdminResponse; + fromProtoMsg(message: _100.MsgUpdateClassAdminResponseProtoMsg): _100.MsgUpdateClassAdminResponse; + toProto(message: _100.MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassAdminResponse): _100.MsgUpdateClassAdminResponseProtoMsg; + }; + MsgUpdateClassIssuers: { + typeUrl: string; + encode(message: _100.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassIssuers; + fromPartial(object: Partial<_100.MsgUpdateClassIssuers>): _100.MsgUpdateClassIssuers; + fromAmino(object: _100.MsgUpdateClassIssuersAmino): _100.MsgUpdateClassIssuers; + toAmino(message: _100.MsgUpdateClassIssuers): _100.MsgUpdateClassIssuersAmino; + fromAminoMsg(object: _100.MsgUpdateClassIssuersAminoMsg): _100.MsgUpdateClassIssuers; + fromProtoMsg(message: _100.MsgUpdateClassIssuersProtoMsg): _100.MsgUpdateClassIssuers; + toProto(message: _100.MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassIssuers): _100.MsgUpdateClassIssuersProtoMsg; + }; + MsgUpdateClassIssuersResponse: { + typeUrl: string; + encode(_: _100.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassIssuersResponse; + fromPartial(_: Partial<_100.MsgUpdateClassIssuersResponse>): _100.MsgUpdateClassIssuersResponse; + fromAmino(_: _100.MsgUpdateClassIssuersResponseAmino): _100.MsgUpdateClassIssuersResponse; + toAmino(_: _100.MsgUpdateClassIssuersResponse): _100.MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: _100.MsgUpdateClassIssuersResponseAminoMsg): _100.MsgUpdateClassIssuersResponse; + fromProtoMsg(message: _100.MsgUpdateClassIssuersResponseProtoMsg): _100.MsgUpdateClassIssuersResponse; + toProto(message: _100.MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassIssuersResponse): _100.MsgUpdateClassIssuersResponseProtoMsg; + }; + MsgUpdateClassMetadata: { + typeUrl: string; + encode(message: _100.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassMetadata; + fromPartial(object: Partial<_100.MsgUpdateClassMetadata>): _100.MsgUpdateClassMetadata; + fromAmino(object: _100.MsgUpdateClassMetadataAmino): _100.MsgUpdateClassMetadata; + toAmino(message: _100.MsgUpdateClassMetadata): _100.MsgUpdateClassMetadataAmino; + fromAminoMsg(object: _100.MsgUpdateClassMetadataAminoMsg): _100.MsgUpdateClassMetadata; + fromProtoMsg(message: _100.MsgUpdateClassMetadataProtoMsg): _100.MsgUpdateClassMetadata; + toProto(message: _100.MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassMetadata): _100.MsgUpdateClassMetadataProtoMsg; + }; + MsgUpdateClassMetadataResponse: { + typeUrl: string; + encode(_: _100.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassMetadataResponse; + fromPartial(_: Partial<_100.MsgUpdateClassMetadataResponse>): _100.MsgUpdateClassMetadataResponse; + fromAmino(_: _100.MsgUpdateClassMetadataResponseAmino): _100.MsgUpdateClassMetadataResponse; + toAmino(_: _100.MsgUpdateClassMetadataResponse): _100.MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: _100.MsgUpdateClassMetadataResponseAminoMsg): _100.MsgUpdateClassMetadataResponse; + fromProtoMsg(message: _100.MsgUpdateClassMetadataResponseProtoMsg): _100.MsgUpdateClassMetadataResponse; + toProto(message: _100.MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: _100.MsgUpdateClassMetadataResponse): _100.MsgUpdateClassMetadataResponseProtoMsg; + }; + QueryParamsRequest: { + typeUrl: string; + encode(_: _99.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryParamsRequest; + fromPartial(_: Partial<_99.QueryParamsRequest>): _99.QueryParamsRequest; + fromAmino(_: _99.QueryParamsRequestAmino): _99.QueryParamsRequest; + toAmino(_: _99.QueryParamsRequest): _99.QueryParamsRequestAmino; + fromAminoMsg(object: _99.QueryParamsRequestAminoMsg): _99.QueryParamsRequest; + fromProtoMsg(message: _99.QueryParamsRequestProtoMsg): _99.QueryParamsRequest; + toProto(message: _99.QueryParamsRequest): Uint8Array; + toProtoMsg(message: _99.QueryParamsRequest): _99.QueryParamsRequestProtoMsg; + }; + QueryParamsResponse: { + typeUrl: string; + encode(message: _99.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryParamsResponse; + fromPartial(object: Partial<_99.QueryParamsResponse>): _99.QueryParamsResponse; + fromAmino(object: _99.QueryParamsResponseAmino): _99.QueryParamsResponse; + toAmino(message: _99.QueryParamsResponse): _99.QueryParamsResponseAmino; + fromAminoMsg(object: _99.QueryParamsResponseAminoMsg): _99.QueryParamsResponse; + fromProtoMsg(message: _99.QueryParamsResponseProtoMsg): _99.QueryParamsResponse; + toProto(message: _99.QueryParamsResponse): Uint8Array; + toProtoMsg(message: _99.QueryParamsResponse): _99.QueryParamsResponseProtoMsg; + }; + QueryClassesRequest: { + typeUrl: string; + encode(message: _99.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassesRequest; + fromPartial(object: Partial<_99.QueryClassesRequest>): _99.QueryClassesRequest; + fromAmino(object: _99.QueryClassesRequestAmino): _99.QueryClassesRequest; + toAmino(message: _99.QueryClassesRequest): _99.QueryClassesRequestAmino; + fromAminoMsg(object: _99.QueryClassesRequestAminoMsg): _99.QueryClassesRequest; + fromProtoMsg(message: _99.QueryClassesRequestProtoMsg): _99.QueryClassesRequest; + toProto(message: _99.QueryClassesRequest): Uint8Array; + toProtoMsg(message: _99.QueryClassesRequest): _99.QueryClassesRequestProtoMsg; + }; + QueryClassesResponse: { + typeUrl: string; + encode(message: _99.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassesResponse; + fromPartial(object: Partial<_99.QueryClassesResponse>): _99.QueryClassesResponse; + fromAmino(object: _99.QueryClassesResponseAmino): _99.QueryClassesResponse; + toAmino(message: _99.QueryClassesResponse): _99.QueryClassesResponseAmino; + fromAminoMsg(object: _99.QueryClassesResponseAminoMsg): _99.QueryClassesResponse; + fromProtoMsg(message: _99.QueryClassesResponseProtoMsg): _99.QueryClassesResponse; + toProto(message: _99.QueryClassesResponse): Uint8Array; + toProtoMsg(message: _99.QueryClassesResponse): _99.QueryClassesResponseProtoMsg; + }; + QueryClassInfoRequest: { + typeUrl: string; + encode(message: _99.QueryClassInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassInfoRequest; + fromPartial(object: Partial<_99.QueryClassInfoRequest>): _99.QueryClassInfoRequest; + fromAmino(object: _99.QueryClassInfoRequestAmino): _99.QueryClassInfoRequest; + toAmino(message: _99.QueryClassInfoRequest): _99.QueryClassInfoRequestAmino; + fromAminoMsg(object: _99.QueryClassInfoRequestAminoMsg): _99.QueryClassInfoRequest; + fromProtoMsg(message: _99.QueryClassInfoRequestProtoMsg): _99.QueryClassInfoRequest; + toProto(message: _99.QueryClassInfoRequest): Uint8Array; + toProtoMsg(message: _99.QueryClassInfoRequest): _99.QueryClassInfoRequestProtoMsg; + }; + QueryClassInfoResponse: { + typeUrl: string; + encode(message: _99.QueryClassInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassInfoResponse; + fromPartial(object: Partial<_99.QueryClassInfoResponse>): _99.QueryClassInfoResponse; + fromAmino(object: _99.QueryClassInfoResponseAmino): _99.QueryClassInfoResponse; + toAmino(message: _99.QueryClassInfoResponse): _99.QueryClassInfoResponseAmino; + fromAminoMsg(object: _99.QueryClassInfoResponseAminoMsg): _99.QueryClassInfoResponse; + fromProtoMsg(message: _99.QueryClassInfoResponseProtoMsg): _99.QueryClassInfoResponse; + toProto(message: _99.QueryClassInfoResponse): Uint8Array; + toProtoMsg(message: _99.QueryClassInfoResponse): _99.QueryClassInfoResponseProtoMsg; + }; + QueryBatchesRequest: { + typeUrl: string; + encode(message: _99.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchesRequest; + fromPartial(object: Partial<_99.QueryBatchesRequest>): _99.QueryBatchesRequest; + fromAmino(object: _99.QueryBatchesRequestAmino): _99.QueryBatchesRequest; + toAmino(message: _99.QueryBatchesRequest): _99.QueryBatchesRequestAmino; + fromAminoMsg(object: _99.QueryBatchesRequestAminoMsg): _99.QueryBatchesRequest; + fromProtoMsg(message: _99.QueryBatchesRequestProtoMsg): _99.QueryBatchesRequest; + toProto(message: _99.QueryBatchesRequest): Uint8Array; + toProtoMsg(message: _99.QueryBatchesRequest): _99.QueryBatchesRequestProtoMsg; + }; + QueryBatchesResponse: { + typeUrl: string; + encode(message: _99.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchesResponse; + fromPartial(object: Partial<_99.QueryBatchesResponse>): _99.QueryBatchesResponse; + fromAmino(object: _99.QueryBatchesResponseAmino): _99.QueryBatchesResponse; + toAmino(message: _99.QueryBatchesResponse): _99.QueryBatchesResponseAmino; + fromAminoMsg(object: _99.QueryBatchesResponseAminoMsg): _99.QueryBatchesResponse; + fromProtoMsg(message: _99.QueryBatchesResponseProtoMsg): _99.QueryBatchesResponse; + toProto(message: _99.QueryBatchesResponse): Uint8Array; + toProtoMsg(message: _99.QueryBatchesResponse): _99.QueryBatchesResponseProtoMsg; + }; + QueryBatchInfoRequest: { + typeUrl: string; + encode(message: _99.QueryBatchInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchInfoRequest; + fromPartial(object: Partial<_99.QueryBatchInfoRequest>): _99.QueryBatchInfoRequest; + fromAmino(object: _99.QueryBatchInfoRequestAmino): _99.QueryBatchInfoRequest; + toAmino(message: _99.QueryBatchInfoRequest): _99.QueryBatchInfoRequestAmino; + fromAminoMsg(object: _99.QueryBatchInfoRequestAminoMsg): _99.QueryBatchInfoRequest; + fromProtoMsg(message: _99.QueryBatchInfoRequestProtoMsg): _99.QueryBatchInfoRequest; + toProto(message: _99.QueryBatchInfoRequest): Uint8Array; + toProtoMsg(message: _99.QueryBatchInfoRequest): _99.QueryBatchInfoRequestProtoMsg; + }; + QueryBatchInfoResponse: { + typeUrl: string; + encode(message: _99.QueryBatchInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchInfoResponse; + fromPartial(object: Partial<_99.QueryBatchInfoResponse>): _99.QueryBatchInfoResponse; + fromAmino(object: _99.QueryBatchInfoResponseAmino): _99.QueryBatchInfoResponse; + toAmino(message: _99.QueryBatchInfoResponse): _99.QueryBatchInfoResponseAmino; + fromAminoMsg(object: _99.QueryBatchInfoResponseAminoMsg): _99.QueryBatchInfoResponse; + fromProtoMsg(message: _99.QueryBatchInfoResponseProtoMsg): _99.QueryBatchInfoResponse; + toProto(message: _99.QueryBatchInfoResponse): Uint8Array; + toProtoMsg(message: _99.QueryBatchInfoResponse): _99.QueryBatchInfoResponseProtoMsg; + }; + QueryBalanceRequest: { + typeUrl: string; + encode(message: _99.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBalanceRequest; + fromPartial(object: Partial<_99.QueryBalanceRequest>): _99.QueryBalanceRequest; + fromAmino(object: _99.QueryBalanceRequestAmino): _99.QueryBalanceRequest; + toAmino(message: _99.QueryBalanceRequest): _99.QueryBalanceRequestAmino; + fromAminoMsg(object: _99.QueryBalanceRequestAminoMsg): _99.QueryBalanceRequest; + fromProtoMsg(message: _99.QueryBalanceRequestProtoMsg): _99.QueryBalanceRequest; + toProto(message: _99.QueryBalanceRequest): Uint8Array; + toProtoMsg(message: _99.QueryBalanceRequest): _99.QueryBalanceRequestProtoMsg; + }; + QueryBalanceResponse: { + typeUrl: string; + encode(message: _99.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBalanceResponse; + fromPartial(object: Partial<_99.QueryBalanceResponse>): _99.QueryBalanceResponse; + fromAmino(object: _99.QueryBalanceResponseAmino): _99.QueryBalanceResponse; + toAmino(message: _99.QueryBalanceResponse): _99.QueryBalanceResponseAmino; + fromAminoMsg(object: _99.QueryBalanceResponseAminoMsg): _99.QueryBalanceResponse; + fromProtoMsg(message: _99.QueryBalanceResponseProtoMsg): _99.QueryBalanceResponse; + toProto(message: _99.QueryBalanceResponse): Uint8Array; + toProtoMsg(message: _99.QueryBalanceResponse): _99.QueryBalanceResponseProtoMsg; + }; + QuerySupplyRequest: { + typeUrl: string; + encode(message: _99.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QuerySupplyRequest; + fromPartial(object: Partial<_99.QuerySupplyRequest>): _99.QuerySupplyRequest; + fromAmino(object: _99.QuerySupplyRequestAmino): _99.QuerySupplyRequest; + toAmino(message: _99.QuerySupplyRequest): _99.QuerySupplyRequestAmino; + fromAminoMsg(object: _99.QuerySupplyRequestAminoMsg): _99.QuerySupplyRequest; + fromProtoMsg(message: _99.QuerySupplyRequestProtoMsg): _99.QuerySupplyRequest; + toProto(message: _99.QuerySupplyRequest): Uint8Array; + toProtoMsg(message: _99.QuerySupplyRequest): _99.QuerySupplyRequestProtoMsg; + }; + QuerySupplyResponse: { + typeUrl: string; + encode(message: _99.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QuerySupplyResponse; + fromPartial(object: Partial<_99.QuerySupplyResponse>): _99.QuerySupplyResponse; + fromAmino(object: _99.QuerySupplyResponseAmino): _99.QuerySupplyResponse; + toAmino(message: _99.QuerySupplyResponse): _99.QuerySupplyResponseAmino; + fromAminoMsg(object: _99.QuerySupplyResponseAminoMsg): _99.QuerySupplyResponse; + fromProtoMsg(message: _99.QuerySupplyResponseProtoMsg): _99.QuerySupplyResponse; + toProto(message: _99.QuerySupplyResponse): Uint8Array; + toProtoMsg(message: _99.QuerySupplyResponse): _99.QuerySupplyResponseProtoMsg; + }; + QueryCreditTypesRequest: { + typeUrl: string; + encode(_: _99.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryCreditTypesRequest; + fromPartial(_: Partial<_99.QueryCreditTypesRequest>): _99.QueryCreditTypesRequest; + fromAmino(_: _99.QueryCreditTypesRequestAmino): _99.QueryCreditTypesRequest; + toAmino(_: _99.QueryCreditTypesRequest): _99.QueryCreditTypesRequestAmino; + fromAminoMsg(object: _99.QueryCreditTypesRequestAminoMsg): _99.QueryCreditTypesRequest; + fromProtoMsg(message: _99.QueryCreditTypesRequestProtoMsg): _99.QueryCreditTypesRequest; + toProto(message: _99.QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: _99.QueryCreditTypesRequest): _99.QueryCreditTypesRequestProtoMsg; + }; + QueryCreditTypesResponse: { + typeUrl: string; + encode(message: _99.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryCreditTypesResponse; + fromPartial(object: Partial<_99.QueryCreditTypesResponse>): _99.QueryCreditTypesResponse; + fromAmino(object: _99.QueryCreditTypesResponseAmino): _99.QueryCreditTypesResponse; + toAmino(message: _99.QueryCreditTypesResponse): _99.QueryCreditTypesResponseAmino; + fromAminoMsg(object: _99.QueryCreditTypesResponseAminoMsg): _99.QueryCreditTypesResponse; + fromProtoMsg(message: _99.QueryCreditTypesResponseProtoMsg): _99.QueryCreditTypesResponse; + toProto(message: _99.QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: _99.QueryCreditTypesResponse): _99.QueryCreditTypesResponseProtoMsg; + }; + GenesisState: { + typeUrl: string; + encode(message: _98.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.GenesisState; + fromPartial(object: Partial<_98.GenesisState>): _98.GenesisState; + fromAmino(object: _98.GenesisStateAmino): _98.GenesisState; + toAmino(message: _98.GenesisState): _98.GenesisStateAmino; + fromAminoMsg(object: _98.GenesisStateAminoMsg): _98.GenesisState; + fromProtoMsg(message: _98.GenesisStateProtoMsg): _98.GenesisState; + toProto(message: _98.GenesisState): Uint8Array; + toProtoMsg(message: _98.GenesisState): _98.GenesisStateProtoMsg; + }; + Balance: { + typeUrl: string; + encode(message: _98.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.Balance; + fromPartial(object: Partial<_98.Balance>): _98.Balance; + fromAmino(object: _98.BalanceAmino): _98.Balance; + toAmino(message: _98.Balance): _98.BalanceAmino; + fromAminoMsg(object: _98.BalanceAminoMsg): _98.Balance; + fromProtoMsg(message: _98.BalanceProtoMsg): _98.Balance; + toProto(message: _98.Balance): Uint8Array; + toProtoMsg(message: _98.Balance): _98.BalanceProtoMsg; + }; + Supply: { + typeUrl: string; + encode(message: _98.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.Supply; + fromPartial(object: Partial<_98.Supply>): _98.Supply; + fromAmino(object: _98.SupplyAmino): _98.Supply; + toAmino(message: _98.Supply): _98.SupplyAmino; + fromAminoMsg(object: _98.SupplyAminoMsg): _98.Supply; + fromProtoMsg(message: _98.SupplyProtoMsg): _98.Supply; + toProto(message: _98.Supply): Uint8Array; + toProtoMsg(message: _98.Supply): _98.SupplyProtoMsg; + }; + EventCreateClass: { + typeUrl: string; + encode(message: _97.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCreateClass; + fromPartial(object: Partial<_97.EventCreateClass>): _97.EventCreateClass; + fromAmino(object: _97.EventCreateClassAmino): _97.EventCreateClass; + toAmino(message: _97.EventCreateClass): _97.EventCreateClassAmino; + fromAminoMsg(object: _97.EventCreateClassAminoMsg): _97.EventCreateClass; + fromProtoMsg(message: _97.EventCreateClassProtoMsg): _97.EventCreateClass; + toProto(message: _97.EventCreateClass): Uint8Array; + toProtoMsg(message: _97.EventCreateClass): _97.EventCreateClassProtoMsg; + }; + EventCreateBatch: { + typeUrl: string; + encode(message: _97.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCreateBatch; + fromPartial(object: Partial<_97.EventCreateBatch>): _97.EventCreateBatch; + fromAmino(object: _97.EventCreateBatchAmino): _97.EventCreateBatch; + toAmino(message: _97.EventCreateBatch): _97.EventCreateBatchAmino; + fromAminoMsg(object: _97.EventCreateBatchAminoMsg): _97.EventCreateBatch; + fromProtoMsg(message: _97.EventCreateBatchProtoMsg): _97.EventCreateBatch; + toProto(message: _97.EventCreateBatch): Uint8Array; + toProtoMsg(message: _97.EventCreateBatch): _97.EventCreateBatchProtoMsg; + }; + EventReceive: { + typeUrl: string; + encode(message: _97.EventReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventReceive; + fromPartial(object: Partial<_97.EventReceive>): _97.EventReceive; + fromAmino(object: _97.EventReceiveAmino): _97.EventReceive; + toAmino(message: _97.EventReceive): _97.EventReceiveAmino; + fromAminoMsg(object: _97.EventReceiveAminoMsg): _97.EventReceive; + fromProtoMsg(message: _97.EventReceiveProtoMsg): _97.EventReceive; + toProto(message: _97.EventReceive): Uint8Array; + toProtoMsg(message: _97.EventReceive): _97.EventReceiveProtoMsg; + }; + EventRetire: { + typeUrl: string; + encode(message: _97.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventRetire; + fromPartial(object: Partial<_97.EventRetire>): _97.EventRetire; + fromAmino(object: _97.EventRetireAmino): _97.EventRetire; + toAmino(message: _97.EventRetire): _97.EventRetireAmino; + fromAminoMsg(object: _97.EventRetireAminoMsg): _97.EventRetire; + fromProtoMsg(message: _97.EventRetireProtoMsg): _97.EventRetire; + toProto(message: _97.EventRetire): Uint8Array; + toProtoMsg(message: _97.EventRetire): _97.EventRetireProtoMsg; + }; + EventCancel: { + typeUrl: string; + encode(message: _97.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCancel; + fromPartial(object: Partial<_97.EventCancel>): _97.EventCancel; + fromAmino(object: _97.EventCancelAmino): _97.EventCancel; + toAmino(message: _97.EventCancel): _97.EventCancelAmino; + fromAminoMsg(object: _97.EventCancelAminoMsg): _97.EventCancel; + fromProtoMsg(message: _97.EventCancelProtoMsg): _97.EventCancel; + toProto(message: _97.EventCancel): Uint8Array; + toProtoMsg(message: _97.EventCancel): _97.EventCancelProtoMsg; + }; + }; + } + namespace intertx { + const v1: { + MsgClientImpl: typeof _216.MsgClientImpl; + QueryClientImpl: typeof _210.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + interchainAccount(request: _102.QueryInterchainAccountRequest): Promise<_102.QueryInterchainAccountResponse>; + }; + LCDQueryClient: typeof _204.LCDQueryClient; + registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; + load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; + MessageComposer: { + encoded: { + registerAccount(value: _103.MsgRegisterAccount): { + typeUrl: string; + value: Uint8Array; + }; + submitTx(value: _103.MsgSubmitTx): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + registerAccount(value: _103.MsgRegisterAccount): { + typeUrl: string; + value: _103.MsgRegisterAccount; + }; + submitTx(value: _103.MsgSubmitTx): { + typeUrl: string; + value: _103.MsgSubmitTx; + }; + }; + fromPartial: { + registerAccount(value: _103.MsgRegisterAccount): { + typeUrl: string; + value: _103.MsgRegisterAccount; + }; + submitTx(value: _103.MsgSubmitTx): { + typeUrl: string; + value: _103.MsgSubmitTx; + }; + }; + }; + AminoConverter: { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: string; + toAmino: (message: _103.MsgRegisterAccount) => _103.MsgRegisterAccountAmino; + fromAmino: (object: _103.MsgRegisterAccountAmino) => _103.MsgRegisterAccount; + }; + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: string; + toAmino: (message: _103.MsgSubmitTx) => _103.MsgSubmitTxAmino; + fromAmino: (object: _103.MsgSubmitTxAmino) => _103.MsgSubmitTx; + }; + }; + MsgRegisterAccount: { + typeUrl: string; + encode(message: _103.MsgRegisterAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgRegisterAccount; + fromPartial(object: Partial<_103.MsgRegisterAccount>): _103.MsgRegisterAccount; + fromAmino(object: _103.MsgRegisterAccountAmino): _103.MsgRegisterAccount; + toAmino(message: _103.MsgRegisterAccount): _103.MsgRegisterAccountAmino; + fromAminoMsg(object: _103.MsgRegisterAccountAminoMsg): _103.MsgRegisterAccount; + fromProtoMsg(message: _103.MsgRegisterAccountProtoMsg): _103.MsgRegisterAccount; + toProto(message: _103.MsgRegisterAccount): Uint8Array; + toProtoMsg(message: _103.MsgRegisterAccount): _103.MsgRegisterAccountProtoMsg; + }; + MsgRegisterAccountResponse: { + typeUrl: string; + encode(_: _103.MsgRegisterAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgRegisterAccountResponse; + fromPartial(_: Partial<_103.MsgRegisterAccountResponse>): _103.MsgRegisterAccountResponse; + fromAmino(_: _103.MsgRegisterAccountResponseAmino): _103.MsgRegisterAccountResponse; + toAmino(_: _103.MsgRegisterAccountResponse): _103.MsgRegisterAccountResponseAmino; + fromAminoMsg(object: _103.MsgRegisterAccountResponseAminoMsg): _103.MsgRegisterAccountResponse; + fromProtoMsg(message: _103.MsgRegisterAccountResponseProtoMsg): _103.MsgRegisterAccountResponse; + toProto(message: _103.MsgRegisterAccountResponse): Uint8Array; + toProtoMsg(message: _103.MsgRegisterAccountResponse): _103.MsgRegisterAccountResponseProtoMsg; + }; + MsgSubmitTx: { + typeUrl: string; + encode(message: _103.MsgSubmitTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgSubmitTx; + fromPartial(object: Partial<_103.MsgSubmitTx>): _103.MsgSubmitTx; + fromAmino(object: _103.MsgSubmitTxAmino): _103.MsgSubmitTx; + toAmino(message: _103.MsgSubmitTx): _103.MsgSubmitTxAmino; + fromAminoMsg(object: _103.MsgSubmitTxAminoMsg): _103.MsgSubmitTx; + fromProtoMsg(message: _103.MsgSubmitTxProtoMsg): _103.MsgSubmitTx; + toProto(message: _103.MsgSubmitTx): Uint8Array; + toProtoMsg(message: _103.MsgSubmitTx): _103.MsgSubmitTxProtoMsg; + }; + MsgSubmitTxResponse: { + typeUrl: string; + encode(_: _103.MsgSubmitTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgSubmitTxResponse; + fromPartial(_: Partial<_103.MsgSubmitTxResponse>): _103.MsgSubmitTxResponse; + fromAmino(_: _103.MsgSubmitTxResponseAmino): _103.MsgSubmitTxResponse; + toAmino(_: _103.MsgSubmitTxResponse): _103.MsgSubmitTxResponseAmino; + fromAminoMsg(object: _103.MsgSubmitTxResponseAminoMsg): _103.MsgSubmitTxResponse; + fromProtoMsg(message: _103.MsgSubmitTxResponseProtoMsg): _103.MsgSubmitTxResponse; + toProto(message: _103.MsgSubmitTxResponse): Uint8Array; + toProtoMsg(message: _103.MsgSubmitTxResponse): _103.MsgSubmitTxResponseProtoMsg; + }; + QueryInterchainAccountRequest: { + typeUrl: string; + encode(message: _102.QueryInterchainAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _102.QueryInterchainAccountRequest; + fromPartial(object: Partial<_102.QueryInterchainAccountRequest>): _102.QueryInterchainAccountRequest; + fromAmino(object: _102.QueryInterchainAccountRequestAmino): _102.QueryInterchainAccountRequest; + toAmino(message: _102.QueryInterchainAccountRequest): _102.QueryInterchainAccountRequestAmino; + fromAminoMsg(object: _102.QueryInterchainAccountRequestAminoMsg): _102.QueryInterchainAccountRequest; + fromProtoMsg(message: _102.QueryInterchainAccountRequestProtoMsg): _102.QueryInterchainAccountRequest; + toProto(message: _102.QueryInterchainAccountRequest): Uint8Array; + toProtoMsg(message: _102.QueryInterchainAccountRequest): _102.QueryInterchainAccountRequestProtoMsg; + }; + QueryInterchainAccountResponse: { + typeUrl: string; + encode(message: _102.QueryInterchainAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _102.QueryInterchainAccountResponse; + fromPartial(object: Partial<_102.QueryInterchainAccountResponse>): _102.QueryInterchainAccountResponse; + fromAmino(object: _102.QueryInterchainAccountResponseAmino): _102.QueryInterchainAccountResponse; + toAmino(message: _102.QueryInterchainAccountResponse): _102.QueryInterchainAccountResponseAmino; + fromAminoMsg(object: _102.QueryInterchainAccountResponseAminoMsg): _102.QueryInterchainAccountResponse; + fromProtoMsg(message: _102.QueryInterchainAccountResponseProtoMsg): _102.QueryInterchainAccountResponse; + toProto(message: _102.QueryInterchainAccountResponse): Uint8Array; + toProtoMsg(message: _102.QueryInterchainAccountResponse): _102.QueryInterchainAccountResponseProtoMsg; + }; + }; + } + const ClientFactory: { + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + group: { + v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + vesting: { + v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + regen: { + data: { + v1: _211.MsgClientImpl; + }; + ecocredit: { + basket: { + v1: _212.MsgClientImpl; + }; + marketplace: { + v1: _213.MsgClientImpl; + }; + v1: _214.MsgClientImpl; + v1alpha1: _215.MsgClientImpl; + }; + intertx: { + v1: _216.MsgClientImpl; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; + }; + authz: { + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; + }; + bank: { + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; + }; + }; + base: { + node: { + v1beta1: { + config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + feegrant: { + v1beta1: { + allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; + allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; + allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; + }; + }; + gov: { + v1: { + proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; + }; + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; + }; + group: { + v1: { + groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; + groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; + votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; + groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; + tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; + }; + }; + mint: { + v1beta1: { + params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; + inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; + annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; + }; + }; + params: { + v1beta1: { + params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; + subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; + }; + }; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; + }; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; + regen: { + data: { + v1: { + anchorByIRI(request: _77.QueryAnchorByIRIRequest): Promise<_77.QueryAnchorByIRIResponse>; + anchorByHash(request: _77.QueryAnchorByHashRequest): Promise<_77.QueryAnchorByHashResponse>; + attestationsByAttestor(request: _77.QueryAttestationsByAttestorRequest): Promise<_77.QueryAttestationsByAttestorResponse>; + attestationsByIRI(request: _77.QueryAttestationsByIRIRequest): Promise<_77.QueryAttestationsByIRIResponse>; + attestationsByHash(request: _77.QueryAttestationsByHashRequest): Promise<_77.QueryAttestationsByHashResponse>; + resolver(request: _77.QueryResolverRequest): Promise<_77.QueryResolverResponse>; + resolversByIRI(request: _77.QueryResolversByIRIRequest): Promise<_77.QueryResolversByIRIResponse>; + resolversByHash(request: _77.QueryResolversByHashRequest): Promise<_77.QueryResolversByHashResponse>; + resolversByURL(request: _77.QueryResolversByURLRequest): Promise<_77.QueryResolversByURLResponse>; + convertIRIToHash(request: _77.ConvertIRIToHashRequest): Promise<_77.ConvertIRIToHashResponse>; + convertHashToIRI(request: _77.ConvertHashToIRIRequest): Promise<_77.ConvertHashToIRIResponse>; + }; + }; + ecocredit: { + basket: { + v1: { + basket(request: _82.QueryBasketRequest): Promise<_82.QueryBasketResponse>; + baskets(request?: _82.QueryBasketsRequest): Promise<_82.QueryBasketsResponse>; + basketBalances(request: _82.QueryBasketBalancesRequest): Promise<_82.QueryBasketBalancesResponse>; + basketBalance(request: _82.QueryBasketBalanceRequest): Promise<_82.QueryBasketBalanceResponse>; + basketFee(request?: _82.QueryBasketFeeRequest): Promise<_82.QueryBasketFeeResponse>; + }; + }; + marketplace: { + v1: { + sellOrder(request: _87.QuerySellOrderRequest): Promise<_87.QuerySellOrderResponse>; + sellOrders(request?: _87.QuerySellOrdersRequest): Promise<_87.QuerySellOrdersResponse>; + sellOrdersByBatch(request: _87.QuerySellOrdersByBatchRequest): Promise<_87.QuerySellOrdersByBatchResponse>; + sellOrdersBySeller(request: _87.QuerySellOrdersBySellerRequest): Promise<_87.QuerySellOrdersBySellerResponse>; + allowedDenoms(request?: _87.QueryAllowedDenomsRequest): Promise<_87.QueryAllowedDenomsResponse>; + }; + }; + v1: { + classes(request?: _93.QueryClassesRequest): Promise<_93.QueryClassesResponse>; + classesByAdmin(request: _93.QueryClassesByAdminRequest): Promise<_93.QueryClassesByAdminResponse>; + class(request: _93.QueryClassRequest): Promise<_93.QueryClassResponse>; + classIssuers(request: _93.QueryClassIssuersRequest): Promise<_93.QueryClassIssuersResponse>; + projects(request?: _93.QueryProjectsRequest): Promise<_93.QueryProjectsResponse>; + projectsByClass(request: _93.QueryProjectsByClassRequest): Promise<_93.QueryProjectsByClassResponse>; + projectsByReferenceId(request: _93.QueryProjectsByReferenceIdRequest): Promise<_93.QueryProjectsByReferenceIdResponse>; + projectsByAdmin(request: _93.QueryProjectsByAdminRequest): Promise<_93.QueryProjectsByAdminResponse>; + project(request: _93.QueryProjectRequest): Promise<_93.QueryProjectResponse>; + batches(request?: _93.QueryBatchesRequest): Promise<_93.QueryBatchesResponse>; + batchesByIssuer(request: _93.QueryBatchesByIssuerRequest): Promise<_93.QueryBatchesByIssuerResponse>; + batchesByClass(request: _93.QueryBatchesByClassRequest): Promise<_93.QueryBatchesByClassResponse>; + batchesByProject(request: _93.QueryBatchesByProjectRequest): Promise<_93.QueryBatchesByProjectResponse>; + batch(request: _93.QueryBatchRequest): Promise<_93.QueryBatchResponse>; + balance(request: _93.QueryBalanceRequest): Promise<_93.QueryBalanceResponse>; + balances(request: _93.QueryBalancesRequest): Promise<_93.QueryBalancesResponse>; + balancesByBatch(request: _93.QueryBalancesByBatchRequest): Promise<_93.QueryBalancesByBatchResponse>; + allBalances(request?: _93.QueryAllBalancesRequest): Promise<_93.QueryAllBalancesResponse>; + supply(request: _93.QuerySupplyRequest): Promise<_93.QuerySupplyResponse>; + creditTypes(request?: _93.QueryCreditTypesRequest): Promise<_93.QueryCreditTypesResponse>; + params(request?: _93.QueryParamsRequest): Promise<_93.QueryParamsResponse>; + creditType(request: _93.QueryCreditTypeRequest): Promise<_93.QueryCreditTypeResponse>; + classCreatorAllowlist(request?: _93.QueryClassCreatorAllowlistRequest): Promise<_93.QueryClassCreatorAllowlistResponse>; + allowedClassCreators(request?: _93.QueryAllowedClassCreatorsRequest): Promise<_93.QueryAllowedClassCreatorsResponse>; + classFee(request?: _93.QueryClassFeeRequest): Promise<_93.QueryClassFeeResponse>; + allowedBridgeChains(request?: _93.QueryAllowedBridgeChainsRequest): Promise<_93.QueryAllowedBridgeChainsResponse>; + }; + v1alpha1: { + classes(request?: _99.QueryClassesRequest): Promise<_99.QueryClassesResponse>; + classInfo(request: _99.QueryClassInfoRequest): Promise<_99.QueryClassInfoResponse>; + batches(request: _99.QueryBatchesRequest): Promise<_99.QueryBatchesResponse>; + batchInfo(request: _99.QueryBatchInfoRequest): Promise<_99.QueryBatchInfoResponse>; + balance(request: _99.QueryBalanceRequest): Promise<_99.QueryBalanceResponse>; + supply(request: _99.QuerySupplyRequest): Promise<_99.QuerySupplyResponse>; + creditTypes(request?: _99.QueryCreditTypesRequest): Promise<_99.QueryCreditTypesResponse>; + params(request?: _99.QueryParamsRequest): Promise<_99.QueryParamsResponse>; + }; + }; + intertx: { + v1: { + interchainAccount(request: _102.QueryInterchainAccountRequest): Promise<_102.QueryInterchainAccountResponse>; + }; + }; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + }; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; + }; + base: { + node: { + v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; + }; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + }; + group: { + v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + mint: { + v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + params: { + v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; + }; + tx: { + v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; + }; + }; + regen: { + data: { + v1: _199.LCDQueryClient; + }; + ecocredit: { + basket: { + v1: _200.LCDQueryClient; + }; + marketplace: { + v1: _201.LCDQueryClient; + }; + v1: _202.LCDQueryClient; + v1alpha1: _203.LCDQueryClient; + }; + intertx: { + v1: _204.LCDQueryClient; + }; + }; + }>; + }; +} diff --git a/packages/api/dist/regen/bundle.js b/packages/api/dist/regen/bundle.js new file mode 100644 index 00000000..f79fa008 --- /dev/null +++ b/packages/api/dist/regen/bundle.js @@ -0,0 +1,186 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.regen = void 0; +//@ts-nocheck +const _76 = __importStar(require("./data/v1/events")); +const _77 = __importStar(require("./data/v1/query")); +const _78 = __importStar(require("./data/v1/state")); +const _79 = __importStar(require("./data/v1/tx")); +const _80 = __importStar(require("./data/v1/types")); +const _81 = __importStar(require("./ecocredit/basket/v1/events")); +const _82 = __importStar(require("./ecocredit/basket/v1/query")); +const _83 = __importStar(require("./ecocredit/basket/v1/state")); +const _84 = __importStar(require("./ecocredit/basket/v1/tx")); +const _85 = __importStar(require("./ecocredit/basket/v1/types")); +const _86 = __importStar(require("./ecocredit/marketplace/v1/events")); +const _87 = __importStar(require("./ecocredit/marketplace/v1/query")); +const _88 = __importStar(require("./ecocredit/marketplace/v1/state")); +const _89 = __importStar(require("./ecocredit/marketplace/v1/tx")); +const _90 = __importStar(require("./ecocredit/marketplace/v1/types")); +const _91 = __importStar(require("./ecocredit/orderbook/v1alpha1/memory")); +const _92 = __importStar(require("./ecocredit/v1/events")); +const _93 = __importStar(require("./ecocredit/v1/query")); +const _94 = __importStar(require("./ecocredit/v1/state")); +const _95 = __importStar(require("./ecocredit/v1/tx")); +const _96 = __importStar(require("./ecocredit/v1/types")); +const _97 = __importStar(require("./ecocredit/v1alpha1/events")); +const _98 = __importStar(require("./ecocredit/v1alpha1/genesis")); +const _99 = __importStar(require("./ecocredit/v1alpha1/query")); +const _100 = __importStar(require("./ecocredit/v1alpha1/tx")); +const _101 = __importStar(require("./ecocredit/v1alpha1/types")); +const _102 = __importStar(require("./intertx/v1/query")); +const _103 = __importStar(require("./intertx/v1/tx")); +const _187 = __importStar(require("./data/v1/tx.amino")); +const _188 = __importStar(require("./ecocredit/basket/v1/tx.amino")); +const _189 = __importStar(require("./ecocredit/marketplace/v1/tx.amino")); +const _190 = __importStar(require("./ecocredit/v1/tx.amino")); +const _191 = __importStar(require("./ecocredit/v1alpha1/tx.amino")); +const _192 = __importStar(require("./intertx/v1/tx.amino")); +const _193 = __importStar(require("./data/v1/tx.registry")); +const _194 = __importStar(require("./ecocredit/basket/v1/tx.registry")); +const _195 = __importStar(require("./ecocredit/marketplace/v1/tx.registry")); +const _196 = __importStar(require("./ecocredit/v1/tx.registry")); +const _197 = __importStar(require("./ecocredit/v1alpha1/tx.registry")); +const _198 = __importStar(require("./intertx/v1/tx.registry")); +const _199 = __importStar(require("./data/v1/query.lcd")); +const _200 = __importStar(require("./ecocredit/basket/v1/query.lcd")); +const _201 = __importStar(require("./ecocredit/marketplace/v1/query.lcd")); +const _202 = __importStar(require("./ecocredit/v1/query.lcd")); +const _203 = __importStar(require("./ecocredit/v1alpha1/query.lcd")); +const _204 = __importStar(require("./intertx/v1/query.lcd")); +const _205 = __importStar(require("./data/v1/query.rpc.Query")); +const _206 = __importStar(require("./ecocredit/basket/v1/query.rpc.Query")); +const _207 = __importStar(require("./ecocredit/marketplace/v1/query.rpc.Query")); +const _208 = __importStar(require("./ecocredit/v1/query.rpc.Query")); +const _209 = __importStar(require("./ecocredit/v1alpha1/query.rpc.Query")); +const _210 = __importStar(require("./intertx/v1/query.rpc.Query")); +const _211 = __importStar(require("./data/v1/tx.rpc.msg")); +const _212 = __importStar(require("./ecocredit/basket/v1/tx.rpc.msg")); +const _213 = __importStar(require("./ecocredit/marketplace/v1/tx.rpc.msg")); +const _214 = __importStar(require("./ecocredit/v1/tx.rpc.msg")); +const _215 = __importStar(require("./ecocredit/v1alpha1/tx.rpc.msg")); +const _216 = __importStar(require("./intertx/v1/tx.rpc.msg")); +const _223 = __importStar(require("./lcd")); +const _224 = __importStar(require("./rpc.query")); +const _225 = __importStar(require("./rpc.tx")); +var regen; +(function (regen) { + let data; + (function (data) { + data.v1 = { + ..._76, + ..._77, + ..._78, + ..._79, + ..._80, + ..._187, + ..._193, + ..._199, + ..._205, + ..._211 + }; + })(data = regen.data || (regen.data = {})); + let ecocredit; + (function (ecocredit) { + let basket; + (function (basket) { + basket.v1 = { + ..._81, + ..._82, + ..._83, + ..._84, + ..._85, + ..._188, + ..._194, + ..._200, + ..._206, + ..._212 + }; + })(basket = ecocredit.basket || (ecocredit.basket = {})); + let marketplace; + (function (marketplace) { + marketplace.v1 = { + ..._86, + ..._87, + ..._88, + ..._89, + ..._90, + ..._189, + ..._195, + ..._201, + ..._207, + ..._213 + }; + })(marketplace = ecocredit.marketplace || (ecocredit.marketplace = {})); + let orderbook; + (function (orderbook) { + orderbook.v1alpha1 = { + ..._91 + }; + })(orderbook = ecocredit.orderbook || (ecocredit.orderbook = {})); + ecocredit.v1 = { + ..._92, + ..._93, + ..._94, + ..._95, + ..._96, + ..._190, + ..._196, + ..._202, + ..._208, + ..._214 + }; + ecocredit.v1alpha1 = { + ..._97, + ..._98, + ..._99, + ..._100, + ..._101, + ..._191, + ..._197, + ..._203, + ..._209, + ..._215 + }; + })(ecocredit = regen.ecocredit || (regen.ecocredit = {})); + let intertx; + (function (intertx) { + intertx.v1 = { + ..._102, + ..._103, + ..._192, + ..._198, + ..._204, + ..._210, + ..._216 + }; + })(intertx = regen.intertx || (regen.intertx = {})); + regen.ClientFactory = { + ..._223, + ..._224, + ..._225 + }; +})(regen || (exports.regen = regen = {})); diff --git a/packages/api/dist/regen/client.d.ts b/packages/api/dist/regen/client.d.ts new file mode 100644 index 00000000..d7a24797 --- /dev/null +++ b/packages/api/dist/regen/client.d.ts @@ -0,0 +1,262 @@ +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const regenAminoConverters: { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: string; + toAmino: (message: import("./intertx/v1/tx").MsgRegisterAccount) => import("./intertx/v1/tx").MsgRegisterAccountAmino; + fromAmino: (object: import("./intertx/v1/tx").MsgRegisterAccountAmino) => import("./intertx/v1/tx").MsgRegisterAccount; + }; + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: string; + toAmino: (message: import("./intertx/v1/tx").MsgSubmitTx) => import("./intertx/v1/tx").MsgSubmitTxAmino; + fromAmino: (object: import("./intertx/v1/tx").MsgSubmitTxAmino) => import("./intertx/v1/tx").MsgSubmitTx; + }; + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateClass) => import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateClass; + }; + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateBatch) => import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateBatch; + }; + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgSend) => import("./ecocredit/v1alpha1/tx").MsgSendAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgSendAmino) => import("./ecocredit/v1alpha1/tx").MsgSend; + }; + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgRetire) => import("./ecocredit/v1alpha1/tx").MsgRetireAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgRetireAmino) => import("./ecocredit/v1alpha1/tx").MsgRetire; + }; + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCancel) => import("./ecocredit/v1alpha1/tx").MsgCancelAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCancelAmino) => import("./ecocredit/v1alpha1/tx").MsgCancel; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino; + fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata; + }; + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgCreateClass) => import("./ecocredit/v1/tx").MsgCreateClassAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateClassAmino) => import("./ecocredit/v1/tx").MsgCreateClass; + }; + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgCreateProject) => import("./ecocredit/v1/tx").MsgCreateProjectAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateProjectAmino) => import("./ecocredit/v1/tx").MsgCreateProject; + }; + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgCreateBatch) => import("./ecocredit/v1/tx").MsgCreateBatchAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1/tx").MsgCreateBatch; + }; + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgMintBatchCredits) => import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino) => import("./ecocredit/v1/tx").MsgMintBatchCredits; + }; + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgSealBatch) => import("./ecocredit/v1/tx").MsgSealBatchAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgSealBatchAmino) => import("./ecocredit/v1/tx").MsgSealBatch; + }; + "/regen.ecocredit.v1.MsgSend": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgSend) => import("./ecocredit/v1/tx").MsgSendAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgSendAmino) => import("./ecocredit/v1/tx").MsgSend; + }; + "/regen.ecocredit.v1.MsgRetire": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgRetire) => import("./ecocredit/v1/tx").MsgRetireAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgRetireAmino) => import("./ecocredit/v1/tx").MsgRetire; + }; + "/regen.ecocredit.v1.MsgCancel": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgCancel) => import("./ecocredit/v1/tx").MsgCancelAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgCancelAmino) => import("./ecocredit/v1/tx").MsgCancel; + }; + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1/tx").MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateClassMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectAdmin) => import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectMetadata) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateBatchMetadata) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadata; + }; + "/regen.ecocredit.v1.MsgBridge": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgBridge) => import("./ecocredit/v1/tx").MsgBridgeAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeAmino) => import("./ecocredit/v1/tx").MsgBridge; + }; + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgBridgeReceive) => import("./ecocredit/v1/tx").MsgBridgeReceiveAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeReceiveAmino) => import("./ecocredit/v1/tx").MsgBridgeReceive; + }; + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgAddCreditType) => import("./ecocredit/v1/tx").MsgAddCreditTypeAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgAddCreditTypeAmino) => import("./ecocredit/v1/tx").MsgAddCreditType; + }; + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist; + }; + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgAddClassCreator) => import("./ecocredit/v1/tx").MsgAddClassCreatorAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgAddClassCreatorAmino) => import("./ecocredit/v1/tx").MsgAddClassCreator; + }; + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveClassCreator) => import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino) => import("./ecocredit/v1/tx").MsgRemoveClassCreator; + }; + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassFee) => import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino) => import("./ecocredit/v1/tx").MsgUpdateClassFee; + }; + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain; + }; + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: string; + toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino; + fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain; + }; + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgSell) => import("./ecocredit/marketplace/v1/tx").MsgSellAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgSellAmino) => import("./ecocredit/marketplace/v1/tx").MsgSell; + }; + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders; + }; + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder; + }; + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgBuyDirect) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirect; + }; + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom; + }; + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: string; + toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino; + fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom; + }; + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgCreate) => import("./ecocredit/basket/v1/tx").MsgCreateAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgCreateAmino) => import("./ecocredit/basket/v1/tx").MsgCreate; + }; + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgPut) => import("./ecocredit/basket/v1/tx").MsgPutAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgPutAmino) => import("./ecocredit/basket/v1/tx").MsgPut; + }; + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgTake) => import("./ecocredit/basket/v1/tx").MsgTakeAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgTakeAmino) => import("./ecocredit/basket/v1/tx").MsgTake; + }; + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee; + }; + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateCurator) => import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateCurator; + }; + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: string; + toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino; + fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria; + }; + "/regen.data.v1.MsgAnchor": { + aminoType: string; + toAmino: (message: import("./data/v1/tx").MsgAnchor) => import("./data/v1/tx").MsgAnchorAmino; + fromAmino: (object: import("./data/v1/tx").MsgAnchorAmino) => import("./data/v1/tx").MsgAnchor; + }; + "/regen.data.v1.MsgAttest": { + aminoType: string; + toAmino: (message: import("./data/v1/tx").MsgAttest) => import("./data/v1/tx").MsgAttestAmino; + fromAmino: (object: import("./data/v1/tx").MsgAttestAmino) => import("./data/v1/tx").MsgAttest; + }; + "/regen.data.v1.MsgDefineResolver": { + aminoType: string; + toAmino: (message: import("./data/v1/tx").MsgDefineResolver) => import("./data/v1/tx").MsgDefineResolverAmino; + fromAmino: (object: import("./data/v1/tx").MsgDefineResolverAmino) => import("./data/v1/tx").MsgDefineResolver; + }; + "/regen.data.v1.MsgRegisterResolver": { + aminoType: string; + toAmino: (message: import("./data/v1/tx").MsgRegisterResolver) => import("./data/v1/tx").MsgRegisterResolverAmino; + fromAmino: (object: import("./data/v1/tx").MsgRegisterResolverAmino) => import("./data/v1/tx").MsgRegisterResolver; + }; +}; +export declare const regenProtoRegistry: ReadonlyArray<[string, GeneratedType]>; +export declare const getSigningRegenClientOptions: ({ defaultTypes }?: { + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => { + registry: Registry; + aminoTypes: AminoTypes; +}; +export declare const getSigningRegenClient: ({ rpcEndpoint, signer, defaultTypes }: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => Promise; diff --git a/packages/api/dist/regen/client.js b/packages/api/dist/regen/client.js new file mode 100644 index 00000000..b0035d01 --- /dev/null +++ b/packages/api/dist/regen/client.js @@ -0,0 +1,72 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSigningRegenClient = exports.getSigningRegenClientOptions = exports.regenProtoRegistry = exports.regenAminoConverters = void 0; +//@ts-nocheck +const proto_signing_1 = require("@cosmjs/proto-signing"); +const stargate_1 = require("@cosmjs/stargate"); +const regenDataV1TxRegistry = __importStar(require("./data/v1/tx.registry")); +const regenEcocreditBasketV1TxRegistry = __importStar(require("./ecocredit/basket/v1/tx.registry")); +const regenEcocreditMarketplaceV1TxRegistry = __importStar(require("./ecocredit/marketplace/v1/tx.registry")); +const regenEcocreditV1TxRegistry = __importStar(require("./ecocredit/v1/tx.registry")); +const regenEcocreditV1alpha1TxRegistry = __importStar(require("./ecocredit/v1alpha1/tx.registry")); +const regenIntertxV1TxRegistry = __importStar(require("./intertx/v1/tx.registry")); +const regenDataV1TxAmino = __importStar(require("./data/v1/tx.amino")); +const regenEcocreditBasketV1TxAmino = __importStar(require("./ecocredit/basket/v1/tx.amino")); +const regenEcocreditMarketplaceV1TxAmino = __importStar(require("./ecocredit/marketplace/v1/tx.amino")); +const regenEcocreditV1TxAmino = __importStar(require("./ecocredit/v1/tx.amino")); +const regenEcocreditV1alpha1TxAmino = __importStar(require("./ecocredit/v1alpha1/tx.amino")); +const regenIntertxV1TxAmino = __importStar(require("./intertx/v1/tx.amino")); +exports.regenAminoConverters = { + ...regenDataV1TxAmino.AminoConverter, + ...regenEcocreditBasketV1TxAmino.AminoConverter, + ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, + ...regenEcocreditV1TxAmino.AminoConverter, + ...regenEcocreditV1alpha1TxAmino.AminoConverter, + ...regenIntertxV1TxAmino.AminoConverter +}; +exports.regenProtoRegistry = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; +const getSigningRegenClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => { + const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.regenProtoRegistry]); + const aminoTypes = new stargate_1.AminoTypes({ + ...exports.regenAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +exports.getSigningRegenClientOptions = getSigningRegenClientOptions; +const getSigningRegenClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => { + const { registry, aminoTypes } = (0, exports.getSigningRegenClientOptions)({ + defaultTypes + }); + const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: registry, + aminoTypes + }); + return client; +}; +exports.getSigningRegenClient = getSigningRegenClient; diff --git a/packages/api/dist/regen/data/v1/events.d.ts b/packages/api/dist/regen/data/v1/events.d.ts new file mode 100644 index 00000000..56302a53 --- /dev/null +++ b/packages/api/dist/regen/data/v1/events.d.ts @@ -0,0 +1,162 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchor { + /** iri is the IRI of the data anchored on chain. */ + iri: string; +} +export interface EventAnchorProtoMsg { + typeUrl: "/regen.data.v1.EventAnchor"; + value: Uint8Array; +} +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchorAmino { + /** iri is the IRI of the data anchored on chain. */ + iri?: string; +} +export interface EventAnchorAminoMsg { + type: "/regen.data.v1.EventAnchor"; + value: EventAnchorAmino; +} +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchorSDKType { + iri: string; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttest { + /** iri is the IRI of the data attested to. */ + iri: string; + /** + * attestor is the address of the account that has attested to the veracity of + * the data. + */ + attestor: string; +} +export interface EventAttestProtoMsg { + typeUrl: "/regen.data.v1.EventAttest"; + value: Uint8Array; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttestAmino { + /** iri is the IRI of the data attested to. */ + iri?: string; + /** + * attestor is the address of the account that has attested to the veracity of + * the data. + */ + attestor?: string; +} +export interface EventAttestAminoMsg { + type: "/regen.data.v1.EventAttest"; + value: EventAttestAmino; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttestSDKType { + iri: string; + attestor: string; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolver { + /** id is the ID of the defined resolver. */ + id: bigint; +} +export interface EventDefineResolverProtoMsg { + typeUrl: "/regen.data.v1.EventDefineResolver"; + value: Uint8Array; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolverAmino { + /** id is the ID of the defined resolver. */ + id?: string; +} +export interface EventDefineResolverAminoMsg { + type: "/regen.data.v1.EventDefineResolver"; + value: EventDefineResolverAmino; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolverSDKType { + id: bigint; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolver { + /** id is the ID of the resolver that the data was registered to. */ + id: bigint; + /** iri is the IRI of the data that was registered. */ + iri: string; +} +export interface EventRegisterResolverProtoMsg { + typeUrl: "/regen.data.v1.EventRegisterResolver"; + value: Uint8Array; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolverAmino { + /** id is the ID of the resolver that the data was registered to. */ + id?: string; + /** iri is the IRI of the data that was registered. */ + iri?: string; +} +export interface EventRegisterResolverAminoMsg { + type: "/regen.data.v1.EventRegisterResolver"; + value: EventRegisterResolverAmino; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolverSDKType { + id: bigint; + iri: string; +} +export declare const EventAnchor: { + typeUrl: string; + encode(message: EventAnchor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor; + fromPartial(object: Partial): EventAnchor; + fromAmino(object: EventAnchorAmino): EventAnchor; + toAmino(message: EventAnchor): EventAnchorAmino; + fromAminoMsg(object: EventAnchorAminoMsg): EventAnchor; + fromProtoMsg(message: EventAnchorProtoMsg): EventAnchor; + toProto(message: EventAnchor): Uint8Array; + toProtoMsg(message: EventAnchor): EventAnchorProtoMsg; +}; +export declare const EventAttest: { + typeUrl: string; + encode(message: EventAttest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAttest; + fromPartial(object: Partial): EventAttest; + fromAmino(object: EventAttestAmino): EventAttest; + toAmino(message: EventAttest): EventAttestAmino; + fromAminoMsg(object: EventAttestAminoMsg): EventAttest; + fromProtoMsg(message: EventAttestProtoMsg): EventAttest; + toProto(message: EventAttest): Uint8Array; + toProtoMsg(message: EventAttest): EventAttestProtoMsg; +}; +export declare const EventDefineResolver: { + typeUrl: string; + encode(message: EventDefineResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver; + fromPartial(object: Partial): EventDefineResolver; + fromAmino(object: EventDefineResolverAmino): EventDefineResolver; + toAmino(message: EventDefineResolver): EventDefineResolverAmino; + fromAminoMsg(object: EventDefineResolverAminoMsg): EventDefineResolver; + fromProtoMsg(message: EventDefineResolverProtoMsg): EventDefineResolver; + toProto(message: EventDefineResolver): Uint8Array; + toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg; +}; +export declare const EventRegisterResolver: { + typeUrl: string; + encode(message: EventRegisterResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver; + fromPartial(object: Partial): EventRegisterResolver; + fromAmino(object: EventRegisterResolverAmino): EventRegisterResolver; + toAmino(message: EventRegisterResolver): EventRegisterResolverAmino; + fromAminoMsg(object: EventRegisterResolverAminoMsg): EventRegisterResolver; + fromProtoMsg(message: EventRegisterResolverProtoMsg): EventRegisterResolver; + toProto(message: EventRegisterResolver): Uint8Array; + toProtoMsg(message: EventRegisterResolver): EventRegisterResolverProtoMsg; +}; diff --git a/packages/api/dist/regen/data/v1/events.js b/packages/api/dist/regen/data/v1/events.js new file mode 100644 index 00000000..35236ebf --- /dev/null +++ b/packages/api/dist/regen/data/v1/events.js @@ -0,0 +1,281 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventRegisterResolver = exports.EventDefineResolver = exports.EventAttest = exports.EventAnchor = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseEventAnchor() { + return { + iri: "" + }; +} +exports.EventAnchor = { + typeUrl: "/regen.data.v1.EventAnchor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAnchor(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAnchor(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.EventAnchor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventAnchor.decode(message.value); + }, + toProto(message) { + return exports.EventAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventAnchor", + value: exports.EventAnchor.encode(message).finish() + }; + } +}; +function createBaseEventAttest() { + return { + iri: "", + attestor: "" + }; +} +exports.EventAttest = { + typeUrl: "/regen.data.v1.EventAttest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAttest(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAttest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + return obj; + }, + fromAminoMsg(object) { + return exports.EventAttest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventAttest.decode(message.value); + }, + toProto(message) { + return exports.EventAttest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventAttest", + value: exports.EventAttest.encode(message).finish() + }; + } +}; +function createBaseEventDefineResolver() { + return { + id: BigInt(0) + }; +} +exports.EventDefineResolver = { + typeUrl: "/regen.data.v1.EventDefineResolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventDefineResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventDefineResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventDefineResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventDefineResolver.decode(message.value); + }, + toProto(message) { + return exports.EventDefineResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventDefineResolver", + value: exports.EventDefineResolver.encode(message).finish() + }; + } +}; +function createBaseEventRegisterResolver() { + return { + id: BigInt(0), + iri: "" + }; +} +exports.EventRegisterResolver = { + typeUrl: "/regen.data.v1.EventRegisterResolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRegisterResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRegisterResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.EventRegisterResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventRegisterResolver.decode(message.value); + }, + toProto(message) { + return exports.EventRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.EventRegisterResolver", + value: exports.EventRegisterResolver.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/data/v1/query.d.ts b/packages/api/dist/regen/data/v1/query.d.ts new file mode 100644 index 00000000..53374e0c --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.d.ts @@ -0,0 +1,970 @@ +import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; +} +export interface QueryAnchorByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest"; + value: Uint8Array; +} +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; +} +export interface QueryAnchorByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryAnchorByIRIRequest"; + value: QueryAnchorByIRIRequestAmino; +} +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequestSDKType { + iri: string; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponse { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfo; +} +export interface QueryAnchorByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; + value: Uint8Array; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponseAmino { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfoAmino; +} +export interface QueryAnchorByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryAnchorByIRIResponse"; + value: QueryAnchorByIRIResponseAmino; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponseSDKType { + anchor?: AnchorInfoSDKType; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; +} +export interface QueryAnchorByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; + value: Uint8Array; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; +} +export interface QueryAnchorByHashRequestAminoMsg { + type: "/regen.data.v1.QueryAnchorByHashRequest"; + value: QueryAnchorByHashRequestAmino; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequestSDKType { + content_hash?: ContentHashSDKType; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponse { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfo; +} +export interface QueryAnchorByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; + value: Uint8Array; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponseAmino { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfoAmino; +} +export interface QueryAnchorByHashResponseAminoMsg { + type: "/regen.data.v1.QueryAnchorByHashResponse"; + value: QueryAnchorByHashResponseAmino; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponseSDKType { + anchor?: AnchorInfoSDKType; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequest { + /** attestor is the address of the attestor. */ + attestor: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByAttestorRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; + value: Uint8Array; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequestAmino { + /** attestor is the address of the attestor. */ + attestor?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByAttestorRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByAttestorRequest"; + value: QueryAttestationsByAttestorRequestAmino; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequestSDKType { + attestor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponse { + /** attestations are the attestations by the attestor. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByAttestorResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; + value: Uint8Array; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponseAmino { + /** attestations are the attestations by the attestor. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByAttestorResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByAttestorResponse"; + value: QueryAttestationsByAttestorResponseAmino; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; + value: Uint8Array; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByIRIRequest"; + value: QueryAttestationsByIRIRequestAmino; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequestSDKType { + iri: string; + pagination?: PageRequestSDKType; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponse { + /** attestations are the attestations that have been made to the anchored data. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; + value: Uint8Array; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponseAmino { + /** attestations are the attestations that have been made to the anchored data. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByIRIResponse"; + value: QueryAttestationsByIRIResponseAmino; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; + value: Uint8Array; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByHashRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByHashRequest"; + value: QueryAttestationsByHashRequestAmino; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequestSDKType { + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponse { + /** attestations are the attestations that have been made to the anchored data. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; + value: Uint8Array; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponseAmino { + /** attestations are the attestations that have been made to the anchored data. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByHashResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByHashResponse"; + value: QueryAttestationsByHashResponseAmino; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequest { + /** id is the ID of the resolver. */ + id: bigint; +} +export interface QueryResolverRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolverRequest"; + value: Uint8Array; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequestAmino { + /** id is the ID of the resolver. */ + id?: string; +} +export interface QueryResolverRequestAminoMsg { + type: "/regen.data.v1.QueryResolverRequest"; + value: QueryResolverRequestAmino; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequestSDKType { + id: bigint; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponse { + /** resolver is information about the resolver. */ + resolver?: ResolverInfo; +} +export interface QueryResolverResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolverResponse"; + value: Uint8Array; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponseAmino { + /** resolver is information about the resolver. */ + resolver?: ResolverInfoAmino; +} +export interface QueryResolverResponseAminoMsg { + type: "/regen.data.v1.QueryResolverResponse"; + value: QueryResolverResponseAmino; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponseSDKType { + resolver?: ResolverInfoSDKType; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; + value: Uint8Array; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByIRIRequest"; + value: QueryResolversByIRIRequestAmino; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequestSDKType { + iri: string; + pagination?: PageRequestSDKType; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponse { + /** resolvers are the resolvers that have registered the anchored data. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; + value: Uint8Array; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponseAmino { + /** resolvers are the resolvers that have registered the anchored data. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByIRIResponse"; + value: QueryResolversByIRIResponseAmino; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; + value: Uint8Array; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByHashRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByHashRequest"; + value: QueryResolversByHashRequestAmino; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequestSDKType { + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponse { + /** resolvers are the resolvers that have registered the data. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; + value: Uint8Array; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponseAmino { + /** resolvers are the resolvers that have registered the data. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByHashResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByHashResponse"; + value: QueryResolversByHashResponseAmino; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequest { + /** url is the URL of the resolver. */ + url: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByURLRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; + value: Uint8Array; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequestAmino { + /** url is the URL of the resolver. */ + url?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByURLRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByURLRequest"; + value: QueryResolversByURLRequestAmino; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequestSDKType { + url: string; + pagination?: PageRequestSDKType; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponse { + /** resolvers are the resolvers that have a matching URL. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByURLResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; + value: Uint8Array; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponseAmino { + /** resolvers are the resolvers that have a matching URL. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByURLResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByURLResponse"; + value: QueryResolversByURLResponseAmino; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequest { + /** iri is the IRI to convert to a ContentHash. */ + iri: string; +} +export interface ConvertIRIToHashRequestProtoMsg { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest"; + value: Uint8Array; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequestAmino { + /** iri is the IRI to convert to a ContentHash. */ + iri?: string; +} +export interface ConvertIRIToHashRequestAminoMsg { + type: "/regen.data.v1.ConvertIRIToHashRequest"; + value: ConvertIRIToHashRequestAmino; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequestSDKType { + iri: string; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponse { + /** content_hash is the ContentHash converted from the IRI. */ + contentHash?: ContentHash; +} +export interface ConvertIRIToHashResponseProtoMsg { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; + value: Uint8Array; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponseAmino { + /** content_hash is the ContentHash converted from the IRI. */ + content_hash?: ContentHashAmino; +} +export interface ConvertIRIToHashResponseAminoMsg { + type: "/regen.data.v1.ConvertIRIToHashResponse"; + value: ConvertIRIToHashResponseAmino; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponseSDKType { + content_hash?: ContentHashSDKType; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequest { + /** content_hash is the ContentHash to convert to an IRI. */ + contentHash?: ContentHash; +} +export interface ConvertHashToIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; + value: Uint8Array; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequestAmino { + /** content_hash is the ContentHash to convert to an IRI. */ + content_hash?: ContentHashAmino; +} +export interface ConvertHashToIRIRequestAminoMsg { + type: "/regen.data.v1.ConvertHashToIRIRequest"; + value: ConvertHashToIRIRequestAmino; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequestSDKType { + content_hash?: ContentHashSDKType; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponse { + /** iri is the IRI converted from the ContentHash. */ + iri: string; +} +export interface ConvertHashToIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse"; + value: Uint8Array; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponseAmino { + /** iri is the IRI converted from the ContentHash. */ + iri?: string; +} +export interface ConvertHashToIRIResponseAminoMsg { + type: "/regen.data.v1.ConvertHashToIRIResponse"; + value: ConvertHashToIRIResponseAmino; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponseSDKType { + iri: string; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfo { + /** iri is the IRI of the anchored data. */ + iri: string; + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** timestamp is the time at which the data was anchored. */ + timestamp?: Date; +} +export interface AnchorInfoProtoMsg { + typeUrl: "/regen.data.v1.AnchorInfo"; + value: Uint8Array; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfoAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** timestamp is the time at which the data was anchored. */ + timestamp?: string; +} +export interface AnchorInfoAminoMsg { + type: "/regen.data.v1.AnchorInfo"; + value: AnchorInfoAmino; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfoSDKType { + iri: string; + content_hash?: ContentHashSDKType; + timestamp?: Date; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfo { + /** iri is the IRI of the anchored data. */ + iri: string; + /** attestor is the address of the account that attested to the anchored data. */ + attestor: string; + /** timestamp is the time at which the data was attested to. */ + timestamp?: Date; +} +export interface AttestationInfoProtoMsg { + typeUrl: "/regen.data.v1.AttestationInfo"; + value: Uint8Array; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfoAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** attestor is the address of the account that attested to the anchored data. */ + attestor?: string; + /** timestamp is the time at which the data was attested to. */ + timestamp?: string; +} +export interface AttestationInfoAminoMsg { + type: "/regen.data.v1.AttestationInfo"; + value: AttestationInfoAmino; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfoSDKType { + iri: string; + attestor: string; + timestamp?: Date; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfo { + /** id is the ID of the resolver. */ + id: bigint; + /** url is the URL of the resolver. */ + url: string; + /** manager is the address of the account that manages the resolver. */ + manager: string; +} +export interface ResolverInfoProtoMsg { + typeUrl: "/regen.data.v1.ResolverInfo"; + value: Uint8Array; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfoAmino { + /** id is the ID of the resolver. */ + id?: string; + /** url is the URL of the resolver. */ + url?: string; + /** manager is the address of the account that manages the resolver. */ + manager?: string; +} +export interface ResolverInfoAminoMsg { + type: "/regen.data.v1.ResolverInfo"; + value: ResolverInfoAmino; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfoSDKType { + id: bigint; + url: string; + manager: string; +} +export declare const QueryAnchorByIRIRequest: { + typeUrl: string; + encode(message: QueryAnchorByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest; + fromPartial(object: Partial): QueryAnchorByIRIRequest; + fromAmino(object: QueryAnchorByIRIRequestAmino): QueryAnchorByIRIRequest; + toAmino(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestAmino; + fromAminoMsg(object: QueryAnchorByIRIRequestAminoMsg): QueryAnchorByIRIRequest; + fromProtoMsg(message: QueryAnchorByIRIRequestProtoMsg): QueryAnchorByIRIRequest; + toProto(message: QueryAnchorByIRIRequest): Uint8Array; + toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg; +}; +export declare const QueryAnchorByIRIResponse: { + typeUrl: string; + encode(message: QueryAnchorByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse; + fromPartial(object: Partial): QueryAnchorByIRIResponse; + fromAmino(object: QueryAnchorByIRIResponseAmino): QueryAnchorByIRIResponse; + toAmino(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseAmino; + fromAminoMsg(object: QueryAnchorByIRIResponseAminoMsg): QueryAnchorByIRIResponse; + fromProtoMsg(message: QueryAnchorByIRIResponseProtoMsg): QueryAnchorByIRIResponse; + toProto(message: QueryAnchorByIRIResponse): Uint8Array; + toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg; +}; +export declare const QueryAnchorByHashRequest: { + typeUrl: string; + encode(message: QueryAnchorByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest; + fromPartial(object: Partial): QueryAnchorByHashRequest; + fromAmino(object: QueryAnchorByHashRequestAmino): QueryAnchorByHashRequest; + toAmino(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestAmino; + fromAminoMsg(object: QueryAnchorByHashRequestAminoMsg): QueryAnchorByHashRequest; + fromProtoMsg(message: QueryAnchorByHashRequestProtoMsg): QueryAnchorByHashRequest; + toProto(message: QueryAnchorByHashRequest): Uint8Array; + toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg; +}; +export declare const QueryAnchorByHashResponse: { + typeUrl: string; + encode(message: QueryAnchorByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse; + fromPartial(object: Partial): QueryAnchorByHashResponse; + fromAmino(object: QueryAnchorByHashResponseAmino): QueryAnchorByHashResponse; + toAmino(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseAmino; + fromAminoMsg(object: QueryAnchorByHashResponseAminoMsg): QueryAnchorByHashResponse; + fromProtoMsg(message: QueryAnchorByHashResponseProtoMsg): QueryAnchorByHashResponse; + toProto(message: QueryAnchorByHashResponse): Uint8Array; + toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg; +}; +export declare const QueryAttestationsByAttestorRequest: { + typeUrl: string; + encode(message: QueryAttestationsByAttestorRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest; + fromPartial(object: Partial): QueryAttestationsByAttestorRequest; + fromAmino(object: QueryAttestationsByAttestorRequestAmino): QueryAttestationsByAttestorRequest; + toAmino(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestAmino; + fromAminoMsg(object: QueryAttestationsByAttestorRequestAminoMsg): QueryAttestationsByAttestorRequest; + fromProtoMsg(message: QueryAttestationsByAttestorRequestProtoMsg): QueryAttestationsByAttestorRequest; + toProto(message: QueryAttestationsByAttestorRequest): Uint8Array; + toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg; +}; +export declare const QueryAttestationsByAttestorResponse: { + typeUrl: string; + encode(message: QueryAttestationsByAttestorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse; + fromPartial(object: Partial): QueryAttestationsByAttestorResponse; + fromAmino(object: QueryAttestationsByAttestorResponseAmino): QueryAttestationsByAttestorResponse; + toAmino(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseAmino; + fromAminoMsg(object: QueryAttestationsByAttestorResponseAminoMsg): QueryAttestationsByAttestorResponse; + fromProtoMsg(message: QueryAttestationsByAttestorResponseProtoMsg): QueryAttestationsByAttestorResponse; + toProto(message: QueryAttestationsByAttestorResponse): Uint8Array; + toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg; +}; +export declare const QueryAttestationsByIRIRequest: { + typeUrl: string; + encode(message: QueryAttestationsByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest; + fromPartial(object: Partial): QueryAttestationsByIRIRequest; + fromAmino(object: QueryAttestationsByIRIRequestAmino): QueryAttestationsByIRIRequest; + toAmino(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestAmino; + fromAminoMsg(object: QueryAttestationsByIRIRequestAminoMsg): QueryAttestationsByIRIRequest; + fromProtoMsg(message: QueryAttestationsByIRIRequestProtoMsg): QueryAttestationsByIRIRequest; + toProto(message: QueryAttestationsByIRIRequest): Uint8Array; + toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg; +}; +export declare const QueryAttestationsByIRIResponse: { + typeUrl: string; + encode(message: QueryAttestationsByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse; + fromPartial(object: Partial): QueryAttestationsByIRIResponse; + fromAmino(object: QueryAttestationsByIRIResponseAmino): QueryAttestationsByIRIResponse; + toAmino(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseAmino; + fromAminoMsg(object: QueryAttestationsByIRIResponseAminoMsg): QueryAttestationsByIRIResponse; + fromProtoMsg(message: QueryAttestationsByIRIResponseProtoMsg): QueryAttestationsByIRIResponse; + toProto(message: QueryAttestationsByIRIResponse): Uint8Array; + toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg; +}; +export declare const QueryAttestationsByHashRequest: { + typeUrl: string; + encode(message: QueryAttestationsByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest; + fromPartial(object: Partial): QueryAttestationsByHashRequest; + fromAmino(object: QueryAttestationsByHashRequestAmino): QueryAttestationsByHashRequest; + toAmino(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestAmino; + fromAminoMsg(object: QueryAttestationsByHashRequestAminoMsg): QueryAttestationsByHashRequest; + fromProtoMsg(message: QueryAttestationsByHashRequestProtoMsg): QueryAttestationsByHashRequest; + toProto(message: QueryAttestationsByHashRequest): Uint8Array; + toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg; +}; +export declare const QueryAttestationsByHashResponse: { + typeUrl: string; + encode(message: QueryAttestationsByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse; + fromPartial(object: Partial): QueryAttestationsByHashResponse; + fromAmino(object: QueryAttestationsByHashResponseAmino): QueryAttestationsByHashResponse; + toAmino(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseAmino; + fromAminoMsg(object: QueryAttestationsByHashResponseAminoMsg): QueryAttestationsByHashResponse; + fromProtoMsg(message: QueryAttestationsByHashResponseProtoMsg): QueryAttestationsByHashResponse; + toProto(message: QueryAttestationsByHashResponse): Uint8Array; + toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg; +}; +export declare const QueryResolverRequest: { + typeUrl: string; + encode(message: QueryResolverRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest; + fromPartial(object: Partial): QueryResolverRequest; + fromAmino(object: QueryResolverRequestAmino): QueryResolverRequest; + toAmino(message: QueryResolverRequest): QueryResolverRequestAmino; + fromAminoMsg(object: QueryResolverRequestAminoMsg): QueryResolverRequest; + fromProtoMsg(message: QueryResolverRequestProtoMsg): QueryResolverRequest; + toProto(message: QueryResolverRequest): Uint8Array; + toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg; +}; +export declare const QueryResolverResponse: { + typeUrl: string; + encode(message: QueryResolverResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse; + fromPartial(object: Partial): QueryResolverResponse; + fromAmino(object: QueryResolverResponseAmino): QueryResolverResponse; + toAmino(message: QueryResolverResponse): QueryResolverResponseAmino; + fromAminoMsg(object: QueryResolverResponseAminoMsg): QueryResolverResponse; + fromProtoMsg(message: QueryResolverResponseProtoMsg): QueryResolverResponse; + toProto(message: QueryResolverResponse): Uint8Array; + toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg; +}; +export declare const QueryResolversByIRIRequest: { + typeUrl: string; + encode(message: QueryResolversByIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest; + fromPartial(object: Partial): QueryResolversByIRIRequest; + fromAmino(object: QueryResolversByIRIRequestAmino): QueryResolversByIRIRequest; + toAmino(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestAmino; + fromAminoMsg(object: QueryResolversByIRIRequestAminoMsg): QueryResolversByIRIRequest; + fromProtoMsg(message: QueryResolversByIRIRequestProtoMsg): QueryResolversByIRIRequest; + toProto(message: QueryResolversByIRIRequest): Uint8Array; + toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg; +}; +export declare const QueryResolversByIRIResponse: { + typeUrl: string; + encode(message: QueryResolversByIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse; + fromPartial(object: Partial): QueryResolversByIRIResponse; + fromAmino(object: QueryResolversByIRIResponseAmino): QueryResolversByIRIResponse; + toAmino(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseAmino; + fromAminoMsg(object: QueryResolversByIRIResponseAminoMsg): QueryResolversByIRIResponse; + fromProtoMsg(message: QueryResolversByIRIResponseProtoMsg): QueryResolversByIRIResponse; + toProto(message: QueryResolversByIRIResponse): Uint8Array; + toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg; +}; +export declare const QueryResolversByHashRequest: { + typeUrl: string; + encode(message: QueryResolversByHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest; + fromPartial(object: Partial): QueryResolversByHashRequest; + fromAmino(object: QueryResolversByHashRequestAmino): QueryResolversByHashRequest; + toAmino(message: QueryResolversByHashRequest): QueryResolversByHashRequestAmino; + fromAminoMsg(object: QueryResolversByHashRequestAminoMsg): QueryResolversByHashRequest; + fromProtoMsg(message: QueryResolversByHashRequestProtoMsg): QueryResolversByHashRequest; + toProto(message: QueryResolversByHashRequest): Uint8Array; + toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg; +}; +export declare const QueryResolversByHashResponse: { + typeUrl: string; + encode(message: QueryResolversByHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse; + fromPartial(object: Partial): QueryResolversByHashResponse; + fromAmino(object: QueryResolversByHashResponseAmino): QueryResolversByHashResponse; + toAmino(message: QueryResolversByHashResponse): QueryResolversByHashResponseAmino; + fromAminoMsg(object: QueryResolversByHashResponseAminoMsg): QueryResolversByHashResponse; + fromProtoMsg(message: QueryResolversByHashResponseProtoMsg): QueryResolversByHashResponse; + toProto(message: QueryResolversByHashResponse): Uint8Array; + toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg; +}; +export declare const QueryResolversByURLRequest: { + typeUrl: string; + encode(message: QueryResolversByURLRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest; + fromPartial(object: Partial): QueryResolversByURLRequest; + fromAmino(object: QueryResolversByURLRequestAmino): QueryResolversByURLRequest; + toAmino(message: QueryResolversByURLRequest): QueryResolversByURLRequestAmino; + fromAminoMsg(object: QueryResolversByURLRequestAminoMsg): QueryResolversByURLRequest; + fromProtoMsg(message: QueryResolversByURLRequestProtoMsg): QueryResolversByURLRequest; + toProto(message: QueryResolversByURLRequest): Uint8Array; + toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg; +}; +export declare const QueryResolversByURLResponse: { + typeUrl: string; + encode(message: QueryResolversByURLResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse; + fromPartial(object: Partial): QueryResolversByURLResponse; + fromAmino(object: QueryResolversByURLResponseAmino): QueryResolversByURLResponse; + toAmino(message: QueryResolversByURLResponse): QueryResolversByURLResponseAmino; + fromAminoMsg(object: QueryResolversByURLResponseAminoMsg): QueryResolversByURLResponse; + fromProtoMsg(message: QueryResolversByURLResponseProtoMsg): QueryResolversByURLResponse; + toProto(message: QueryResolversByURLResponse): Uint8Array; + toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg; +}; +export declare const ConvertIRIToHashRequest: { + typeUrl: string; + encode(message: ConvertIRIToHashRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest; + fromPartial(object: Partial): ConvertIRIToHashRequest; + fromAmino(object: ConvertIRIToHashRequestAmino): ConvertIRIToHashRequest; + toAmino(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestAmino; + fromAminoMsg(object: ConvertIRIToHashRequestAminoMsg): ConvertIRIToHashRequest; + fromProtoMsg(message: ConvertIRIToHashRequestProtoMsg): ConvertIRIToHashRequest; + toProto(message: ConvertIRIToHashRequest): Uint8Array; + toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg; +}; +export declare const ConvertIRIToHashResponse: { + typeUrl: string; + encode(message: ConvertIRIToHashResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse; + fromPartial(object: Partial): ConvertIRIToHashResponse; + fromAmino(object: ConvertIRIToHashResponseAmino): ConvertIRIToHashResponse; + toAmino(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseAmino; + fromAminoMsg(object: ConvertIRIToHashResponseAminoMsg): ConvertIRIToHashResponse; + fromProtoMsg(message: ConvertIRIToHashResponseProtoMsg): ConvertIRIToHashResponse; + toProto(message: ConvertIRIToHashResponse): Uint8Array; + toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg; +}; +export declare const ConvertHashToIRIRequest: { + typeUrl: string; + encode(message: ConvertHashToIRIRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest; + fromPartial(object: Partial): ConvertHashToIRIRequest; + fromAmino(object: ConvertHashToIRIRequestAmino): ConvertHashToIRIRequest; + toAmino(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestAmino; + fromAminoMsg(object: ConvertHashToIRIRequestAminoMsg): ConvertHashToIRIRequest; + fromProtoMsg(message: ConvertHashToIRIRequestProtoMsg): ConvertHashToIRIRequest; + toProto(message: ConvertHashToIRIRequest): Uint8Array; + toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg; +}; +export declare const ConvertHashToIRIResponse: { + typeUrl: string; + encode(message: ConvertHashToIRIResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse; + fromPartial(object: Partial): ConvertHashToIRIResponse; + fromAmino(object: ConvertHashToIRIResponseAmino): ConvertHashToIRIResponse; + toAmino(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseAmino; + fromAminoMsg(object: ConvertHashToIRIResponseAminoMsg): ConvertHashToIRIResponse; + fromProtoMsg(message: ConvertHashToIRIResponseProtoMsg): ConvertHashToIRIResponse; + toProto(message: ConvertHashToIRIResponse): Uint8Array; + toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg; +}; +export declare const AnchorInfo: { + typeUrl: string; + encode(message: AnchorInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo; + fromPartial(object: Partial): AnchorInfo; + fromAmino(object: AnchorInfoAmino): AnchorInfo; + toAmino(message: AnchorInfo): AnchorInfoAmino; + fromAminoMsg(object: AnchorInfoAminoMsg): AnchorInfo; + fromProtoMsg(message: AnchorInfoProtoMsg): AnchorInfo; + toProto(message: AnchorInfo): Uint8Array; + toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg; +}; +export declare const AttestationInfo: { + typeUrl: string; + encode(message: AttestationInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo; + fromPartial(object: Partial): AttestationInfo; + fromAmino(object: AttestationInfoAmino): AttestationInfo; + toAmino(message: AttestationInfo): AttestationInfoAmino; + fromAminoMsg(object: AttestationInfoAminoMsg): AttestationInfo; + fromProtoMsg(message: AttestationInfoProtoMsg): AttestationInfo; + toProto(message: AttestationInfo): Uint8Array; + toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg; +}; +export declare const ResolverInfo: { + typeUrl: string; + encode(message: ResolverInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo; + fromPartial(object: Partial): ResolverInfo; + fromAmino(object: ResolverInfoAmino): ResolverInfo; + toAmino(message: ResolverInfo): ResolverInfoAmino; + fromAminoMsg(object: ResolverInfoAminoMsg): ResolverInfo; + fromProtoMsg(message: ResolverInfoProtoMsg): ResolverInfo; + toProto(message: ResolverInfo): Uint8Array; + toProtoMsg(message: ResolverInfo): ResolverInfoProtoMsg; +}; diff --git a/packages/api/dist/regen/data/v1/query.js b/packages/api/dist/regen/data/v1/query.js new file mode 100644 index 00000000..e3baf77d --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.js @@ -0,0 +1,1818 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResolverInfo = exports.AttestationInfo = exports.AnchorInfo = exports.ConvertHashToIRIResponse = exports.ConvertHashToIRIRequest = exports.ConvertIRIToHashResponse = exports.ConvertIRIToHashRequest = exports.QueryResolversByURLResponse = exports.QueryResolversByURLRequest = exports.QueryResolversByHashResponse = exports.QueryResolversByHashRequest = exports.QueryResolversByIRIResponse = exports.QueryResolversByIRIRequest = exports.QueryResolverResponse = exports.QueryResolverRequest = exports.QueryAttestationsByHashResponse = exports.QueryAttestationsByHashRequest = exports.QueryAttestationsByIRIResponse = exports.QueryAttestationsByIRIRequest = exports.QueryAttestationsByAttestorResponse = exports.QueryAttestationsByAttestorRequest = exports.QueryAnchorByHashResponse = exports.QueryAnchorByHashRequest = exports.QueryAnchorByIRIResponse = exports.QueryAnchorByIRIRequest = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseQueryAnchorByIRIRequest() { + return { + iri: "" + }; +} +exports.QueryAnchorByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByIRIRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnchorByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAnchorByIRIRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAnchorByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + value: exports.QueryAnchorByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByIRIResponse() { + return { + anchor: undefined + }; +} +exports.QueryAnchorByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.anchor !== undefined) { + exports.AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = exports.AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByIRIResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? exports.AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByIRIResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = exports.AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.anchor = message.anchor ? exports.AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnchorByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAnchorByIRIResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAnchorByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + value: exports.QueryAnchorByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashRequest() { + return { + contentHash: undefined + }; +} +exports.QueryAnchorByHashRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnchorByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAnchorByHashRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAnchorByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + value: exports.QueryAnchorByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashResponse() { + return { + anchor: undefined + }; +} +exports.QueryAnchorByHashResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.anchor !== undefined) { + exports.AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = exports.AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAnchorByHashResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? exports.AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAnchorByHashResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = exports.AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.anchor = message.anchor ? exports.AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAnchorByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAnchorByHashResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAnchorByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + value: exports.QueryAnchorByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorRequest() { + return { + attestor: "", + pagination: undefined + }; +} +exports.QueryAttestationsByAttestorRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByAttestorRequest(); + message.attestor = object.attestor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByAttestorRequest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByAttestorRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByAttestorRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByAttestorRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + value: exports.QueryAttestationsByAttestorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorResponse() { + return { + attestations: [], + pagination: undefined + }; +} +exports.QueryAttestationsByAttestorResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.attestations) { + exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByAttestorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByAttestorResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByAttestorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + value: exports.QueryAttestationsByAttestorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIRequest() { + return { + iri: "", + pagination: undefined + }; +} +exports.QueryAttestationsByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByIRIRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + value: exports.QueryAttestationsByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIResponse() { + return { + attestations: [], + pagination: undefined + }; +} +exports.QueryAttestationsByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.attestations) { + exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByIRIResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + value: exports.QueryAttestationsByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashRequest() { + return { + contentHash: undefined, + pagination: undefined + }; +} +exports.QueryAttestationsByHashRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByHashRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + value: exports.QueryAttestationsByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashResponse() { + return { + attestations: [], + pagination: undefined + }; +} +exports.QueryAttestationsByHashResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.attestations) { + exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); + } + else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAttestationsByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAttestationsByHashResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAttestationsByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + value: exports.QueryAttestationsByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolverRequest() { + return { + id: BigInt(0) + }; +} +exports.QueryResolverRequest = { + typeUrl: "/regen.data.v1.QueryResolverRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolverRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolverRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolverRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolverRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryResolverRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolverRequest", + value: exports.QueryResolverRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolverResponse() { + return { + resolver: undefined + }; +} +exports.QueryResolverResponse = { + typeUrl: "/regen.data.v1.QueryResolverResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.resolver !== undefined) { + exports.ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolver = exports.ResolverInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolverResponse(); + message.resolver = object.resolver !== undefined && object.resolver !== null ? exports.ResolverInfo.fromPartial(object.resolver) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolverResponse(); + if (object.resolver !== undefined && object.resolver !== null) { + message.resolver = exports.ResolverInfo.fromAmino(object.resolver); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.resolver = message.resolver ? exports.ResolverInfo.toAmino(message.resolver) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolverResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolverResponse", + value: exports.QueryResolverResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIRequest() { + return { + iri: "", + pagination: undefined + }; +} +exports.QueryResolversByIRIRequest = { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByIRIRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + value: exports.QueryResolversByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +exports.QueryResolversByIRIResponse = { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.resolvers) { + exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByIRIResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + value: exports.QueryResolversByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashRequest() { + return { + contentHash: undefined, + pagination: undefined + }; +} +exports.QueryResolversByHashRequest = { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByHashRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + value: exports.QueryResolversByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +exports.QueryResolversByHashResponse = { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.resolvers) { + exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByHashResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + value: exports.QueryResolversByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLRequest() { + return { + url: "", + pagination: undefined + }; +} +exports.QueryResolversByURLRequest = { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.url !== "") { + writer.uint32(10).string(message.url); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByURLRequest(); + message.url = object.url ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByURLRequest(); + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.url = message.url === "" ? undefined : message.url; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByURLRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByURLRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByURLRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + value: exports.QueryResolversByURLRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLResponse() { + return { + resolvers: [], + pagination: undefined + }; +} +exports.QueryResolversByURLResponse = { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.resolvers) { + exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); + } + else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryResolversByURLResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryResolversByURLResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryResolversByURLResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + value: exports.QueryResolversByURLResponse.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashRequest() { + return { + iri: "" + }; +} +exports.ConvertIRIToHashRequest = { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertIRIToHashRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConvertIRIToHashRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.ConvertIRIToHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ConvertIRIToHashRequest.decode(message.value); + }, + toProto(message) { + return exports.ConvertIRIToHashRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + value: exports.ConvertIRIToHashRequest.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashResponse() { + return { + contentHash: undefined + }; +} +exports.ConvertIRIToHashResponse = { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertIRIToHashResponse(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConvertIRIToHashResponse(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ConvertIRIToHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ConvertIRIToHashResponse.decode(message.value); + }, + toProto(message) { + return exports.ConvertIRIToHashResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + value: exports.ConvertIRIToHashResponse.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIRequest() { + return { + contentHash: undefined + }; +} +exports.ConvertHashToIRIRequest = { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertHashToIRIRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConvertHashToIRIRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ConvertHashToIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ConvertHashToIRIRequest.decode(message.value); + }, + toProto(message) { + return exports.ConvertHashToIRIRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + value: exports.ConvertHashToIRIRequest.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIResponse() { + return { + iri: "" + }; +} +exports.ConvertHashToIRIResponse = { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConvertHashToIRIResponse(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseConvertHashToIRIResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.ConvertHashToIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ConvertHashToIRIResponse.decode(message.value); + }, + toProto(message) { + return exports.ConvertHashToIRIResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + value: exports.ConvertHashToIRIResponse.encode(message).finish() + }; + } +}; +function createBaseAnchorInfo() { + return { + iri: "", + contentHash: undefined, + timestamp: undefined + }; +} +exports.AnchorInfo = { + typeUrl: "/regen.data.v1.AnchorInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAnchorInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + case 3: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAnchorInfo(); + message.iri = object.iri ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAnchorInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AnchorInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AnchorInfo.decode(message.value); + }, + toProto(message) { + return exports.AnchorInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.AnchorInfo", + value: exports.AnchorInfo.encode(message).finish() + }; + } +}; +function createBaseAttestationInfo() { + return { + iri: "", + attestor: "", + timestamp: undefined + }; +} +exports.AttestationInfo = { + typeUrl: "/regen.data.v1.AttestationInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttestationInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + case 3: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAttestationInfo(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAttestationInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AttestationInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AttestationInfo.decode(message.value); + }, + toProto(message) { + return exports.AttestationInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.AttestationInfo", + value: exports.AttestationInfo.encode(message).finish() + }; + } +}; +function createBaseResolverInfo() { + return { + id: BigInt(0), + url: "", + manager: "" + }; +} +exports.ResolverInfo = { + typeUrl: "/regen.data.v1.ResolverInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager !== "") { + writer.uint32(26).string(message.manager); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolverInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResolverInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResolverInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager === "" ? undefined : message.manager; + return obj; + }, + fromAminoMsg(object) { + return exports.ResolverInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResolverInfo.decode(message.value); + }, + toProto(message) { + return exports.ResolverInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ResolverInfo", + value: exports.ResolverInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/data/v1/query.lcd.d.ts b/packages/api/dist/regen/data/v1/query.lcd.d.ts new file mode 100644 index 00000000..22fbc40c --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.lcd.d.ts @@ -0,0 +1,14 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + anchorByIRI(params: QueryAnchorByIRIRequest): Promise; + attestationsByAttestor(params: QueryAttestationsByAttestorRequest): Promise; + attestationsByIRI(params: QueryAttestationsByIRIRequest): Promise; + resolver(params: QueryResolverRequest): Promise; + resolversByIRI(params: QueryResolversByIRIRequest): Promise; + convertIRIToHash(params: ConvertIRIToHashRequest): Promise; +} diff --git a/packages/api/dist/regen/data/v1/query.lcd.js b/packages/api/dist/regen/data/v1/query.lcd.js new file mode 100644 index 00000000..cba00872 --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.lcd.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + } + /* AnchorByIRI queries a data anchor by the IRI of the data. */ + async anchorByIRI(params) { + const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; + return await this.req.get(endpoint); + } + /* AttestationsByAttestor queries data attestations by an attestor. */ + async attestationsByAttestor(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; + return await this.req.get(endpoint, options); + } + /* AttestationsByIRI queries data attestations by the IRI of the data. */ + async attestationsByIRI(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* Resolver queries a resolver by its unique identifier. */ + async resolver(params) { + const endpoint = `regen/data/v1/resolver/${params.id}`; + return await this.req.get(endpoint); + } + /* ResolversByIRI queries resolvers with registered data by the IRI of the + data. */ + async resolversByIRI(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* ConvertIRIToHash converts an IRI to a ContentHash. */ + async convertIRIToHash(params) { + const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..62fa3704 --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts @@ -0,0 +1,65 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; +/** Query is the regen.data.v1 Query service */ +export interface Query { + /** AnchorByIRI queries a data anchor by the IRI of the data. */ + anchorByIRI(request: QueryAnchorByIRIRequest): Promise; + /** AnchorByHash queries a data anchor by the ContentHash of the data. */ + anchorByHash(request: QueryAnchorByHashRequest): Promise; + /** AttestationsByAttestor queries data attestations by an attestor. */ + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; + /** AttestationsByIRI queries data attestations by the IRI of the data. */ + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; + /** + * AttestationsByHash queries data attestations by the ContentHash of the + * data. + */ + attestationsByHash(request: QueryAttestationsByHashRequest): Promise; + /** Resolver queries a resolver by its unique identifier. */ + resolver(request: QueryResolverRequest): Promise; + /** + * ResolversByIRI queries resolvers with registered data by the IRI of the + * data. + */ + resolversByIRI(request: QueryResolversByIRIRequest): Promise; + /** + * ResolversByHash queries resolvers with registered data by the ContentHash + * of the data. + */ + resolversByHash(request: QueryResolversByHashRequest): Promise; + /** ResolversByURL queries resolvers by URL. */ + resolversByURL(request: QueryResolversByURLRequest): Promise; + /** ConvertIRIToHash converts an IRI to a ContentHash. */ + convertIRIToHash(request: ConvertIRIToHashRequest): Promise; + /** ConvertHashToIRI converts a ContentHash to an IRI. */ + convertHashToIRI(request: ConvertHashToIRIRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + anchorByIRI(request: QueryAnchorByIRIRequest): Promise; + anchorByHash(request: QueryAnchorByHashRequest): Promise; + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; + attestationsByHash(request: QueryAttestationsByHashRequest): Promise; + resolver(request: QueryResolverRequest): Promise; + resolversByIRI(request: QueryResolversByIRIRequest): Promise; + resolversByHash(request: QueryResolversByHashRequest): Promise; + resolversByURL(request: QueryResolversByURLRequest): Promise; + convertIRIToHash(request: ConvertIRIToHashRequest): Promise; + convertHashToIRI(request: ConvertHashToIRIRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + anchorByIRI(request: QueryAnchorByIRIRequest): Promise; + anchorByHash(request: QueryAnchorByHashRequest): Promise; + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; + attestationsByHash(request: QueryAttestationsByHashRequest): Promise; + resolver(request: QueryResolverRequest): Promise; + resolversByIRI(request: QueryResolversByIRIRequest): Promise; + resolversByHash(request: QueryResolversByHashRequest): Promise; + resolversByURL(request: QueryResolversByURLRequest): Promise; + convertIRIToHash(request: ConvertIRIToHashRequest): Promise; + convertHashToIRI(request: ConvertHashToIRIRequest): Promise; +}; diff --git a/packages/api/dist/regen/data/v1/query.rpc.Query.js b/packages/api/dist/regen/data/v1/query.rpc.Query.js new file mode 100644 index 00000000..556b070d --- /dev/null +++ b/packages/api/dist/regen/data/v1/query.rpc.Query.js @@ -0,0 +1,119 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.anchorByHash = this.anchorByHash.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.attestationsByHash = this.attestationsByHash.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.resolversByHash = this.resolversByHash.bind(this); + this.resolversByURL = this.resolversByURL.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + this.convertHashToIRI = this.convertHashToIRI.bind(this); + } + anchorByIRI(request) { + const data = query_1.QueryAnchorByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); + return promise.then(data => query_1.QueryAnchorByIRIResponse.decode(new binary_1.BinaryReader(data))); + } + anchorByHash(request) { + const data = query_1.QueryAnchorByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); + return promise.then(data => query_1.QueryAnchorByHashResponse.decode(new binary_1.BinaryReader(data))); + } + attestationsByAttestor(request) { + const data = query_1.QueryAttestationsByAttestorRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); + return promise.then(data => query_1.QueryAttestationsByAttestorResponse.decode(new binary_1.BinaryReader(data))); + } + attestationsByIRI(request) { + const data = query_1.QueryAttestationsByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); + return promise.then(data => query_1.QueryAttestationsByIRIResponse.decode(new binary_1.BinaryReader(data))); + } + attestationsByHash(request) { + const data = query_1.QueryAttestationsByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); + return promise.then(data => query_1.QueryAttestationsByHashResponse.decode(new binary_1.BinaryReader(data))); + } + resolver(request) { + const data = query_1.QueryResolverRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); + return promise.then(data => query_1.QueryResolverResponse.decode(new binary_1.BinaryReader(data))); + } + resolversByIRI(request) { + const data = query_1.QueryResolversByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); + return promise.then(data => query_1.QueryResolversByIRIResponse.decode(new binary_1.BinaryReader(data))); + } + resolversByHash(request) { + const data = query_1.QueryResolversByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); + return promise.then(data => query_1.QueryResolversByHashResponse.decode(new binary_1.BinaryReader(data))); + } + resolversByURL(request) { + const data = query_1.QueryResolversByURLRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); + return promise.then(data => query_1.QueryResolversByURLResponse.decode(new binary_1.BinaryReader(data))); + } + convertIRIToHash(request) { + const data = query_1.ConvertIRIToHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); + return promise.then(data => query_1.ConvertIRIToHashResponse.decode(new binary_1.BinaryReader(data))); + } + convertHashToIRI(request) { + const data = query_1.ConvertHashToIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); + return promise.then(data => query_1.ConvertHashToIRIResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + anchorByIRI(request) { + return queryService.anchorByIRI(request); + }, + anchorByHash(request) { + return queryService.anchorByHash(request); + }, + attestationsByAttestor(request) { + return queryService.attestationsByAttestor(request); + }, + attestationsByIRI(request) { + return queryService.attestationsByIRI(request); + }, + attestationsByHash(request) { + return queryService.attestationsByHash(request); + }, + resolver(request) { + return queryService.resolver(request); + }, + resolversByIRI(request) { + return queryService.resolversByIRI(request); + }, + resolversByHash(request) { + return queryService.resolversByHash(request); + }, + resolversByURL(request) { + return queryService.resolversByURL(request); + }, + convertIRIToHash(request) { + return queryService.convertIRIToHash(request); + }, + convertHashToIRI(request) { + return queryService.convertHashToIRI(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/data/v1/state.d.ts b/packages/api/dist/regen/data/v1/state.d.ts new file mode 100644 index 00000000..4fb85fa8 --- /dev/null +++ b/packages/api/dist/regen/data/v1/state.d.ts @@ -0,0 +1,227 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** DataID stores a compact data ID and its full IRI. */ +export interface DataID { + /** id is the compact automatically-generated data ID. */ + id: Uint8Array; + /** iri is the IRI of the data which contains its full ContentHash. */ + iri: string; +} +export interface DataIDProtoMsg { + typeUrl: "/regen.data.v1.DataID"; + value: Uint8Array; +} +/** DataID stores a compact data ID and its full IRI. */ +export interface DataIDAmino { + /** id is the compact automatically-generated data ID. */ + id?: string; + /** iri is the IRI of the data which contains its full ContentHash. */ + iri?: string; +} +export interface DataIDAminoMsg { + type: "/regen.data.v1.DataID"; + value: DataIDAmino; +} +/** DataID stores a compact data ID and its full IRI. */ +export interface DataIDSDKType { + id: Uint8Array; + iri: string; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchor { + /** id is the compact data ID. */ + id: Uint8Array; + /** + * timestamp is the anchor timestamp for this object - the time at which + * it was first known to the blockchain. + */ + timestamp?: Date; +} +export interface DataAnchorProtoMsg { + typeUrl: "/regen.data.v1.DataAnchor"; + value: Uint8Array; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchorAmino { + /** id is the compact data ID. */ + id?: string; + /** + * timestamp is the anchor timestamp for this object - the time at which + * it was first known to the blockchain. + */ + timestamp?: string; +} +export interface DataAnchorAminoMsg { + type: "/regen.data.v1.DataAnchor"; + value: DataAnchorAmino; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchorSDKType { + id: Uint8Array; + timestamp?: Date; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestor { + /** id is the compact data ID. */ + id: Uint8Array; + /** attestor is the account address of the attestor. */ + attestor: Uint8Array; + /** timestamp is the time at which the attestor signed this data object. */ + timestamp?: Date; +} +export interface DataAttestorProtoMsg { + typeUrl: "/regen.data.v1.DataAttestor"; + value: Uint8Array; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestorAmino { + /** id is the compact data ID. */ + id?: string; + /** attestor is the account address of the attestor. */ + attestor?: string; + /** timestamp is the time at which the attestor signed this data object. */ + timestamp?: string; +} +export interface DataAttestorAminoMsg { + type: "/regen.data.v1.DataAttestor"; + value: DataAttestorAmino; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestorSDKType { + id: Uint8Array; + attestor: Uint8Array; + timestamp?: Date; +} +/** Resolver describes a data resolver. */ +export interface Resolver { + /** id is the ID of the resolver. */ + id: bigint; + /** url is the URL of the resolver. */ + url: string; + /** + * manager is the bytes address of the resolver manager who is allowed + * to make calls to Msg/RegisterResolver for this resolver. + */ + manager: Uint8Array; +} +export interface ResolverProtoMsg { + typeUrl: "/regen.data.v1.Resolver"; + value: Uint8Array; +} +/** Resolver describes a data resolver. */ +export interface ResolverAmino { + /** id is the ID of the resolver. */ + id?: string; + /** url is the URL of the resolver. */ + url?: string; + /** + * manager is the bytes address of the resolver manager who is allowed + * to make calls to Msg/RegisterResolver for this resolver. + */ + manager?: string; +} +export interface ResolverAminoMsg { + type: "/regen.data.v1.Resolver"; + value: ResolverAmino; +} +/** Resolver describes a data resolver. */ +export interface ResolverSDKType { + id: bigint; + url: string; + manager: Uint8Array; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolver { + /** id is the compact data ID. */ + id: Uint8Array; + /** resolver_id is the ID of the resolver. */ + resolverId: bigint; +} +export interface DataResolverProtoMsg { + typeUrl: "/regen.data.v1.DataResolver"; + value: Uint8Array; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolverAmino { + /** id is the compact data ID. */ + id?: string; + /** resolver_id is the ID of the resolver. */ + resolver_id?: string; +} +export interface DataResolverAminoMsg { + type: "/regen.data.v1.DataResolver"; + value: DataResolverAmino; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolverSDKType { + id: Uint8Array; + resolver_id: bigint; +} +export declare const DataID: { + typeUrl: string; + encode(message: DataID, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataID; + fromPartial(object: Partial): DataID; + fromAmino(object: DataIDAmino): DataID; + toAmino(message: DataID): DataIDAmino; + fromAminoMsg(object: DataIDAminoMsg): DataID; + fromProtoMsg(message: DataIDProtoMsg): DataID; + toProto(message: DataID): Uint8Array; + toProtoMsg(message: DataID): DataIDProtoMsg; +}; +export declare const DataAnchor: { + typeUrl: string; + encode(message: DataAnchor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor; + fromPartial(object: Partial): DataAnchor; + fromAmino(object: DataAnchorAmino): DataAnchor; + toAmino(message: DataAnchor): DataAnchorAmino; + fromAminoMsg(object: DataAnchorAminoMsg): DataAnchor; + fromProtoMsg(message: DataAnchorProtoMsg): DataAnchor; + toProto(message: DataAnchor): Uint8Array; + toProtoMsg(message: DataAnchor): DataAnchorProtoMsg; +}; +export declare const DataAttestor: { + typeUrl: string; + encode(message: DataAttestor, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor; + fromPartial(object: Partial): DataAttestor; + fromAmino(object: DataAttestorAmino): DataAttestor; + toAmino(message: DataAttestor): DataAttestorAmino; + fromAminoMsg(object: DataAttestorAminoMsg): DataAttestor; + fromProtoMsg(message: DataAttestorProtoMsg): DataAttestor; + toProto(message: DataAttestor): Uint8Array; + toProtoMsg(message: DataAttestor): DataAttestorProtoMsg; +}; +export declare const Resolver: { + typeUrl: string; + encode(message: Resolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Resolver; + fromPartial(object: Partial): Resolver; + fromAmino(object: ResolverAmino): Resolver; + toAmino(message: Resolver): ResolverAmino; + fromAminoMsg(object: ResolverAminoMsg): Resolver; + fromProtoMsg(message: ResolverProtoMsg): Resolver; + toProto(message: Resolver): Uint8Array; + toProtoMsg(message: Resolver): ResolverProtoMsg; +}; +export declare const DataResolver: { + typeUrl: string; + encode(message: DataResolver, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DataResolver; + fromPartial(object: Partial): DataResolver; + fromAmino(object: DataResolverAmino): DataResolver; + toAmino(message: DataResolver): DataResolverAmino; + fromAminoMsg(object: DataResolverAminoMsg): DataResolver; + fromProtoMsg(message: DataResolverProtoMsg): DataResolver; + toProto(message: DataResolver): Uint8Array; + toProtoMsg(message: DataResolver): DataResolverProtoMsg; +}; diff --git a/packages/api/dist/regen/data/v1/state.js b/packages/api/dist/regen/data/v1/state.js new file mode 100644 index 00000000..7f0c35d1 --- /dev/null +++ b/packages/api/dist/regen/data/v1/state.js @@ -0,0 +1,406 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataResolver = exports.Resolver = exports.DataAttestor = exports.DataAnchor = exports.DataID = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseDataID() { + return { + id: new Uint8Array(), + iri: "" + }; +} +exports.DataID = { + typeUrl: "/regen.data.v1.DataID", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataID(); + message.id = object.id ?? new Uint8Array(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDataID(); + if (object.id !== undefined && object.id !== null) { + message.id = (0, helpers_1.bytesFromBase64)(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object) { + return exports.DataID.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DataID.decode(message.value); + }, + toProto(message) { + return exports.DataID.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataID", + value: exports.DataID.encode(message).finish() + }; + } +}; +function createBaseDataAnchor() { + return { + id: new Uint8Array(), + timestamp: undefined + }; +} +exports.DataAnchor = { + typeUrl: "/regen.data.v1.DataAnchor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataAnchor(); + message.id = object.id ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDataAnchor(); + if (object.id !== undefined && object.id !== null) { + message.id = (0, helpers_1.bytesFromBase64)(object.id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DataAnchor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DataAnchor.decode(message.value); + }, + toProto(message) { + return exports.DataAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataAnchor", + value: exports.DataAnchor.encode(message).finish() + }; + } +}; +function createBaseDataAttestor() { + return { + id: new Uint8Array(), + attestor: new Uint8Array(), + timestamp: undefined + }; +} +exports.DataAttestor = { + typeUrl: "/regen.data.v1.DataAttestor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.attestor.length !== 0) { + writer.uint32(18).bytes(message.attestor); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAttestor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.attestor = reader.bytes(); + break; + case 3: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataAttestor(); + message.id = object.id ?? new Uint8Array(); + message.attestor = object.attestor ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDataAttestor(); + if (object.id !== undefined && object.id !== null) { + message.id = (0, helpers_1.bytesFromBase64)(object.id); + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = (0, helpers_1.bytesFromBase64)(object.attestor); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; + obj.attestor = message.attestor ? (0, helpers_1.base64FromBytes)(message.attestor) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DataAttestor.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DataAttestor.decode(message.value); + }, + toProto(message) { + return exports.DataAttestor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataAttestor", + value: exports.DataAttestor.encode(message).finish() + }; + } +}; +function createBaseResolver() { + return { + id: BigInt(0), + url: "", + manager: new Uint8Array() + }; +} +exports.Resolver = { + typeUrl: "/regen.data.v1.Resolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager.length !== 0) { + writer.uint32(26).bytes(message.manager); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = (0, helpers_1.bytesFromBase64)(object.manager); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager ? (0, helpers_1.base64FromBytes)(message.manager) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Resolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Resolver.decode(message.value); + }, + toProto(message) { + return exports.Resolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Resolver", + value: exports.Resolver.encode(message).finish() + }; + } +}; +function createBaseDataResolver() { + return { + id: new Uint8Array(), + resolverId: BigInt(0) + }; +} +exports.DataResolver = { + typeUrl: "/regen.data.v1.DataResolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDataResolver(); + message.id = object.id ?? new Uint8Array(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseDataResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = (0, helpers_1.bytesFromBase64)(object.id); + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DataResolver.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DataResolver.decode(message.value); + }, + toProto(message) { + return exports.DataResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.DataResolver", + value: exports.DataResolver.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/data/v1/tx.amino.d.ts b/packages/api/dist/regen/data/v1/tx.amino.d.ts new file mode 100644 index 00000000..bc6cf1aa --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.amino.d.ts @@ -0,0 +1,23 @@ +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export declare const AminoConverter: { + "/regen.data.v1.MsgAnchor": { + aminoType: string; + toAmino: (message: MsgAnchor) => import("./tx").MsgAnchorAmino; + fromAmino: (object: import("./tx").MsgAnchorAmino) => MsgAnchor; + }; + "/regen.data.v1.MsgAttest": { + aminoType: string; + toAmino: (message: MsgAttest) => import("./tx").MsgAttestAmino; + fromAmino: (object: import("./tx").MsgAttestAmino) => MsgAttest; + }; + "/regen.data.v1.MsgDefineResolver": { + aminoType: string; + toAmino: (message: MsgDefineResolver) => import("./tx").MsgDefineResolverAmino; + fromAmino: (object: import("./tx").MsgDefineResolverAmino) => MsgDefineResolver; + }; + "/regen.data.v1.MsgRegisterResolver": { + aminoType: string; + toAmino: (message: MsgRegisterResolver) => import("./tx").MsgRegisterResolverAmino; + fromAmino: (object: import("./tx").MsgRegisterResolverAmino) => MsgRegisterResolver; + }; +}; diff --git a/packages/api/dist/regen/data/v1/tx.amino.js b/packages/api/dist/regen/data/v1/tx.amino.js new file mode 100644 index 00000000..f6003604 --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.amino.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.data.v1.MsgAnchor": { + aminoType: "regen-ledger/MsgAnchor", + toAmino: tx_1.MsgAnchor.toAmino, + fromAmino: tx_1.MsgAnchor.fromAmino + }, + "/regen.data.v1.MsgAttest": { + aminoType: "regen-ledger/MsgAttest", + toAmino: tx_1.MsgAttest.toAmino, + fromAmino: tx_1.MsgAttest.fromAmino + }, + "/regen.data.v1.MsgDefineResolver": { + aminoType: "regen-ledger/MsgDefineResolver", + toAmino: tx_1.MsgDefineResolver.toAmino, + fromAmino: tx_1.MsgDefineResolver.fromAmino + }, + "/regen.data.v1.MsgRegisterResolver": { + aminoType: "regen-ledger/MsgRegisterResolver", + toAmino: tx_1.MsgRegisterResolver.toAmino, + fromAmino: tx_1.MsgRegisterResolver.fromAmino + } +}; diff --git a/packages/api/dist/regen/data/v1/tx.js b/packages/api/dist/regen/data/v1/tx.js new file mode 100644 index 00000000..113b35b6 --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.js @@ -0,0 +1,616 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgRegisterResolverResponse = exports.MsgRegisterResolver = exports.MsgDefineResolverResponse = exports.MsgDefineResolver = exports.MsgAttestResponse = exports.MsgAttest = exports.MsgAnchorResponse = exports.MsgAnchor = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseMsgAnchor() { + return { + sender: "", + contentHash: undefined + }; +} +exports.MsgAnchor = { + typeUrl: "/regen.data.v1.MsgAnchor", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.contentHash !== undefined) { + types_1.ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAnchor(); + message.sender = object.sender ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAnchor(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAnchor.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgAnchor", + value: exports.MsgAnchor.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAnchor.decode(message.value); + }, + toProto(message) { + return exports.MsgAnchor.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: exports.MsgAnchor.encode(message).finish() + }; + } +}; +function createBaseMsgAnchorResponse() { + return { + iri: "", + timestamp: undefined + }; +} +exports.MsgAnchorResponse = { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAnchorResponse(); + message.iri = object.iri ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAnchorResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAnchorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAnchorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAnchorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + value: exports.MsgAnchorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAttest() { + return { + attestor: "", + contentHashes: [] + }; +} +exports.MsgAttest = { + typeUrl: "/regen.data.v1.MsgAttest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + for (const v of message.contentHashes) { + types_1.ContentHash_Graph.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.contentHashes.push(types_1.ContentHash_Graph.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAttest(); + message.attestor = object.attestor ?? ""; + message.contentHashes = object.contentHashes?.map(e => types_1.ContentHash_Graph.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAttest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + message.contentHashes = object.content_hashes?.map(e => types_1.ContentHash_Graph.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? types_1.ContentHash_Graph.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAttest.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgAttest", + value: exports.MsgAttest.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAttest.decode(message.value); + }, + toProto(message) { + return exports.MsgAttest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: exports.MsgAttest.encode(message).finish() + }; + } +}; +function createBaseMsgAttestResponse() { + return { + iris: [], + timestamp: undefined + }; +} +exports.MsgAttestResponse = { + typeUrl: "/regen.data.v1.MsgAttestResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.iris) { + writer.uint32(10).string(v); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttestResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iris.push(reader.string()); + break; + case 2: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.iris) { + obj.iris = message.iris.map(e => e); + } + else { + obj.iris = message.iris; + } + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAttestResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAttestResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAttestResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgAttestResponse", + value: exports.MsgAttestResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolver() { + return { + manager: "", + resolverUrl: "" + }; +} +exports.MsgDefineResolver = { + typeUrl: "/regen.data.v1.MsgDefineResolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverUrl !== "") { + writer.uint32(18).string(message.resolverUrl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDefineResolver(); + message.manager = object.manager ?? ""; + message.resolverUrl = object.resolverUrl ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgDefineResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_url !== undefined && object.resolver_url !== null) { + message.resolverUrl = object.resolver_url; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDefineResolver.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgDefineResolver", + value: exports.MsgDefineResolver.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgDefineResolver.decode(message.value); + }, + toProto(message) { + return exports.MsgDefineResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: exports.MsgDefineResolver.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolverResponse() { + return { + resolverId: BigInt(0) + }; +} +exports.MsgDefineResolverResponse = { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.resolverId !== BigInt(0)) { + writer.uint32(8).uint64(message.resolverId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgDefineResolverResponse(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgDefineResolverResponse(); + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgDefineResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgDefineResolverResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgDefineResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + value: exports.MsgDefineResolverResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolver() { + return { + manager: "", + resolverId: BigInt(0), + contentHashes: [] + }; +} +exports.MsgRegisterResolver = { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + for (const v of message.contentHashes) { + types_1.ContentHash.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + case 3: + message.contentHashes.push(types_1.ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRegisterResolver(); + message.manager = object.manager ?? ""; + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + message.contentHashes = object.contentHashes?.map(e => types_1.ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRegisterResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + message.contentHashes = object.content_hashes?.map(e => types_1.ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? types_1.ContentHash.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRegisterResolver.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen-ledger/MsgRegisterResolver", + value: exports.MsgRegisterResolver.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRegisterResolver.decode(message.value); + }, + toProto(message) { + return exports.MsgRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: exports.MsgRegisterResolver.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolverResponse() { + return {}; +} +exports.MsgRegisterResolverResponse = { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRegisterResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRegisterResolverResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRegisterResolverResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + value: exports.MsgRegisterResolverResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/data/v1/tx.registry.d.ts b/packages/api/dist/regen/data/v1/tx.registry.d.ts new file mode 100644 index 00000000..d70b4309 --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.registry.d.ts @@ -0,0 +1,60 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + anchor(value: MsgAnchor): { + typeUrl: string; + value: Uint8Array; + }; + attest(value: MsgAttest): { + typeUrl: string; + value: Uint8Array; + }; + defineResolver(value: MsgDefineResolver): { + typeUrl: string; + value: Uint8Array; + }; + registerResolver(value: MsgRegisterResolver): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + anchor(value: MsgAnchor): { + typeUrl: string; + value: MsgAnchor; + }; + attest(value: MsgAttest): { + typeUrl: string; + value: MsgAttest; + }; + defineResolver(value: MsgDefineResolver): { + typeUrl: string; + value: MsgDefineResolver; + }; + registerResolver(value: MsgRegisterResolver): { + typeUrl: string; + value: MsgRegisterResolver; + }; + }; + fromPartial: { + anchor(value: MsgAnchor): { + typeUrl: string; + value: MsgAnchor; + }; + attest(value: MsgAttest): { + typeUrl: string; + value: MsgAttest; + }; + defineResolver(value: MsgDefineResolver): { + typeUrl: string; + value: MsgDefineResolver; + }; + registerResolver(value: MsgRegisterResolver): { + typeUrl: string; + value: MsgRegisterResolver; + }; + }; +}; diff --git a/packages/api/dist/regen/data/v1/tx.registry.js b/packages/api/dist/regen/data/v1/tx.registry.js new file mode 100644 index 00000000..42c74cf7 --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.registry.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.data.v1.MsgAnchor", tx_1.MsgAnchor], ["/regen.data.v1.MsgAttest", tx_1.MsgAttest], ["/regen.data.v1.MsgDefineResolver", tx_1.MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", tx_1.MsgRegisterResolver]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: tx_1.MsgAnchor.encode(value).finish() + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: tx_1.MsgAttest.encode(value).finish() + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: tx_1.MsgDefineResolver.encode(value).finish() + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: tx_1.MsgRegisterResolver.encode(value).finish() + }; + } + }, + withTypeUrl: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value + }; + } + }, + fromPartial: { + anchor(value) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: tx_1.MsgAnchor.fromPartial(value) + }; + }, + attest(value) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: tx_1.MsgAttest.fromPartial(value) + }; + }, + defineResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: tx_1.MsgDefineResolver.fromPartial(value) + }; + }, + registerResolver(value) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: tx_1.MsgRegisterResolver.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..774839ef --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts @@ -0,0 +1,55 @@ +import { Rpc } from "../../../helpers"; +import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; +/** Msg is the regen.data.v1 Msg service */ +export interface Msg { + /** + * Anchor "anchors" a piece of data to the blockchain based on its secure + * hash, effectively providing a tamper resistant timestamp. + * + * The sender in Anchor is not attesting to the veracity of the underlying + * data. They can simply be an intermediary providing timestamp services. + * Attest should be used to create a digital signature attesting to the + * veracity of some piece of data. + */ + anchor(request: MsgAnchor): Promise; + /** + * Attest allows for digital signing of an arbitrary piece of data on the + * blockchain. By attesting to data, the attestor is making a statement about + * the veracity of the data itself. It is like signing a legal document, + * meaning that I agree to all conditions and to the best of my knowledge + * everything is true. When anchoring data, the sender is not attesting to the + * veracity of the data, they are simply communicating that it exists. + * + * On-chain signatures have the following benefits: + * - on-chain identities can be managed using different cryptographic keys + * that change over time through key rotation practices + * - an on-chain identity may represent an organization and through delegation + * individual members may sign on behalf of the group + * - the blockchain transaction envelope provides built-in replay protection + * and timestamping + * + * Attest implicitly calls Anchor if the data was not already anchored. + * + * Attest can be called multiple times for the same content hash with + * different attestors and those attestors will be appended to the list of + * attestors. If the same attestor attempts to attest to the same piece of + * data, the attestor will be ignored and a new attestation with a new + * timestamp will not be added. + */ + attest(request: MsgAttest): Promise; + /** + * DefineResolver defines a resolver URL and assigns it a new integer ID + * that can be used in calls to RegisterResolver. + */ + defineResolver(request: MsgDefineResolver): Promise; + /** RegisterResolver registers data content hashes */ + registerResolver(request: MsgRegisterResolver): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + anchor(request: MsgAnchor): Promise; + attest(request: MsgAttest): Promise; + defineResolver(request: MsgDefineResolver): Promise; + registerResolver(request: MsgRegisterResolver): Promise; +} diff --git a/packages/api/dist/regen/data/v1/tx.rpc.msg.js b/packages/api/dist/regen/data/v1/tx.rpc.msg.js new file mode 100644 index 00000000..ce09860d --- /dev/null +++ b/packages/api/dist/regen/data/v1/tx.rpc.msg.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.anchor = this.anchor.bind(this); + this.attest = this.attest.bind(this); + this.defineResolver = this.defineResolver.bind(this); + this.registerResolver = this.registerResolver.bind(this); + } + anchor(request) { + const data = tx_1.MsgAnchor.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); + return promise.then(data => tx_1.MsgAnchorResponse.decode(new binary_1.BinaryReader(data))); + } + attest(request) { + const data = tx_1.MsgAttest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); + return promise.then(data => tx_1.MsgAttestResponse.decode(new binary_1.BinaryReader(data))); + } + defineResolver(request) { + const data = tx_1.MsgDefineResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); + return promise.then(data => tx_1.MsgDefineResolverResponse.decode(new binary_1.BinaryReader(data))); + } + registerResolver(request) { + const data = tx_1.MsgRegisterResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); + return promise.then(data => tx_1.MsgRegisterResolverResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/data/v1/types.d.ts b/packages/api/dist/regen/data/v1/types.d.ts new file mode 100644 index 00000000..f9ba0942 --- /dev/null +++ b/packages/api/dist/regen/data/v1/types.d.ts @@ -0,0 +1,287 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** DigestAlgorithm is the hash digest algorithm */ +export declare enum DigestAlgorithm { + /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + DIGEST_ALGORITHM_UNSPECIFIED = 0, + /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ + DIGEST_ALGORITHM_BLAKE2B_256 = 1, + UNRECOGNIZED = -1 +} +export declare const DigestAlgorithmSDKType: typeof DigestAlgorithm; +export declare const DigestAlgorithmAmino: typeof DigestAlgorithm; +export declare function digestAlgorithmFromJSON(object: any): DigestAlgorithm; +export declare function digestAlgorithmToJSON(object: DigestAlgorithm): string; +/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ +export declare enum RawMediaType { + /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ + RAW_MEDIA_TYPE_UNSPECIFIED = 0, + /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ + RAW_MEDIA_TYPE_TEXT_PLAIN = 1, + /** RAW_MEDIA_TYPE_JSON - JSON */ + RAW_MEDIA_TYPE_JSON = 2, + /** RAW_MEDIA_TYPE_CSV - CSV */ + RAW_MEDIA_TYPE_CSV = 3, + /** RAW_MEDIA_TYPE_XML - XML */ + RAW_MEDIA_TYPE_XML = 4, + /** RAW_MEDIA_TYPE_PDF - PDF */ + RAW_MEDIA_TYPE_PDF = 5, + /** RAW_MEDIA_TYPE_TIFF - TIIF */ + RAW_MEDIA_TYPE_TIFF = 16, + /** RAW_MEDIA_TYPE_JPG - JPG */ + RAW_MEDIA_TYPE_JPG = 17, + /** RAW_MEDIA_TYPE_PNG - PNG */ + RAW_MEDIA_TYPE_PNG = 18, + /** RAW_MEDIA_TYPE_SVG - SVG */ + RAW_MEDIA_TYPE_SVG = 19, + /** RAW_MEDIA_TYPE_WEBP - WEBP */ + RAW_MEDIA_TYPE_WEBP = 20, + /** RAW_MEDIA_TYPE_AVIF - AVIF */ + RAW_MEDIA_TYPE_AVIF = 21, + /** RAW_MEDIA_TYPE_GIF - GIF */ + RAW_MEDIA_TYPE_GIF = 22, + /** RAW_MEDIA_TYPE_APNG - APNG */ + RAW_MEDIA_TYPE_APNG = 23, + /** RAW_MEDIA_TYPE_MPEG - MPEG */ + RAW_MEDIA_TYPE_MPEG = 32, + /** RAW_MEDIA_TYPE_MP4 - MP4 */ + RAW_MEDIA_TYPE_MP4 = 33, + /** RAW_MEDIA_TYPE_WEBM - WEBM */ + RAW_MEDIA_TYPE_WEBM = 34, + /** RAW_MEDIA_TYPE_OGG - OGG */ + RAW_MEDIA_TYPE_OGG = 35, + UNRECOGNIZED = -1 +} +export declare const RawMediaTypeSDKType: typeof RawMediaType; +export declare const RawMediaTypeAmino: typeof RawMediaType; +export declare function rawMediaTypeFromJSON(object: any): RawMediaType; +export declare function rawMediaTypeToJSON(object: RawMediaType): string; +/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ +export declare enum GraphCanonicalizationAlgorithm { + /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0, + /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ + GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1, + UNRECOGNIZED = -1 +} +export declare const GraphCanonicalizationAlgorithmSDKType: typeof GraphCanonicalizationAlgorithm; +export declare const GraphCanonicalizationAlgorithmAmino: typeof GraphCanonicalizationAlgorithm; +export declare function graphCanonicalizationAlgorithmFromJSON(object: any): GraphCanonicalizationAlgorithm; +export declare function graphCanonicalizationAlgorithmToJSON(object: GraphCanonicalizationAlgorithm): string; +/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ +export declare enum GraphMerkleTree { + /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ + GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0, + UNRECOGNIZED = -1 +} +export declare const GraphMerkleTreeSDKType: typeof GraphMerkleTree; +export declare const GraphMerkleTreeAmino: typeof GraphMerkleTree; +export declare function graphMerkleTreeFromJSON(object: any): GraphMerkleTree; +export declare function graphMerkleTreeToJSON(object: GraphMerkleTree): string; +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHash { + /** + * Raw specifies "raw" data which does not specify a deterministic, canonical + * encoding. Users of these hashes MUST maintain a copy of the hashed data + * which is preserved bit by bit. All other content encodings specify a + * deterministic, canonical encoding allowing implementations to choose from a + * variety of alternative formats for transport and encoding while maintaining + * the guarantee that the canonical hash will not change. The media type for + * "raw" data is defined by the MediaType enum. + */ + raw?: ContentHash_Raw; + /** + * Graph specifies graph data that conforms to the RDF data model. + * The canonicalization algorithm used for an RDF graph is specified by + * GraphCanonicalizationAlgorithm. + */ + graph?: ContentHash_Graph; +} +export interface ContentHashProtoMsg { + typeUrl: "/regen.data.v1.ContentHash"; + value: Uint8Array; +} +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHashAmino { + /** + * Raw specifies "raw" data which does not specify a deterministic, canonical + * encoding. Users of these hashes MUST maintain a copy of the hashed data + * which is preserved bit by bit. All other content encodings specify a + * deterministic, canonical encoding allowing implementations to choose from a + * variety of alternative formats for transport and encoding while maintaining + * the guarantee that the canonical hash will not change. The media type for + * "raw" data is defined by the MediaType enum. + */ + raw?: ContentHash_RawAmino; + /** + * Graph specifies graph data that conforms to the RDF data model. + * The canonicalization algorithm used for an RDF graph is specified by + * GraphCanonicalizationAlgorithm. + */ + graph?: ContentHash_GraphAmino; +} +export interface ContentHashAminoMsg { + type: "/regen.data.v1.ContentHash"; + value: ContentHashAmino; +} +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHashSDKType { + raw?: ContentHash_RawSDKType; + graph?: ContentHash_GraphSDKType; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_Raw { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash: Uint8Array; + /** digest_algorithm represents the hash digest algorithm. */ + digestAlgorithm: DigestAlgorithm; + /** media_type represents the media type for raw data. */ + mediaType: RawMediaType; +} +export interface ContentHash_RawProtoMsg { + typeUrl: "/regen.data.v1.Raw"; + value: Uint8Array; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_RawAmino { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash?: string; + /** digest_algorithm represents the hash digest algorithm. */ + digest_algorithm?: DigestAlgorithm; + /** media_type represents the media type for raw data. */ + media_type?: RawMediaType; +} +export interface ContentHash_RawAminoMsg { + type: "/regen.data.v1.Raw"; + value: ContentHash_RawAmino; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_RawSDKType { + hash: Uint8Array; + digest_algorithm: DigestAlgorithm; + media_type: RawMediaType; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_Graph { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash: Uint8Array; + /** digest_algorithm represents the hash digest algorithm. */ + digestAlgorithm: DigestAlgorithm; + /** + * graph_canonicalization_algorithm represents the RDF graph + * canonicalization algorithm. + */ + canonicalizationAlgorithm: GraphCanonicalizationAlgorithm; + /** merkle_tree is the merkle tree type used for the graph hash, if any. */ + merkleTree: GraphMerkleTree; +} +export interface ContentHash_GraphProtoMsg { + typeUrl: "/regen.data.v1.Graph"; + value: Uint8Array; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_GraphAmino { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash?: string; + /** digest_algorithm represents the hash digest algorithm. */ + digest_algorithm?: DigestAlgorithm; + /** + * graph_canonicalization_algorithm represents the RDF graph + * canonicalization algorithm. + */ + canonicalization_algorithm?: GraphCanonicalizationAlgorithm; + /** merkle_tree is the merkle tree type used for the graph hash, if any. */ + merkle_tree?: GraphMerkleTree; +} +export interface ContentHash_GraphAminoMsg { + type: "/regen.data.v1.Graph"; + value: ContentHash_GraphAmino; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_GraphSDKType { + hash: Uint8Array; + digest_algorithm: DigestAlgorithm; + canonicalization_algorithm: GraphCanonicalizationAlgorithm; + merkle_tree: GraphMerkleTree; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashes { + /** data is a list of content hashes which the resolver claims to serve. */ + contentHashes: ContentHash[]; +} +export interface ContentHashesProtoMsg { + typeUrl: "/regen.data.v1.ContentHashes"; + value: Uint8Array; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashesAmino { + /** data is a list of content hashes which the resolver claims to serve. */ + content_hashes?: ContentHashAmino[]; +} +export interface ContentHashesAminoMsg { + type: "/regen.data.v1.ContentHashes"; + value: ContentHashesAmino; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashesSDKType { + content_hashes: ContentHashSDKType[]; +} +export declare const ContentHash: { + typeUrl: string; + encode(message: ContentHash, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash; + fromPartial(object: Partial): ContentHash; + fromAmino(object: ContentHashAmino): ContentHash; + toAmino(message: ContentHash): ContentHashAmino; + fromAminoMsg(object: ContentHashAminoMsg): ContentHash; + fromProtoMsg(message: ContentHashProtoMsg): ContentHash; + toProto(message: ContentHash): Uint8Array; + toProtoMsg(message: ContentHash): ContentHashProtoMsg; +}; +export declare const ContentHash_Raw: { + typeUrl: string; + encode(message: ContentHash_Raw, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw; + fromPartial(object: Partial): ContentHash_Raw; + fromAmino(object: ContentHash_RawAmino): ContentHash_Raw; + toAmino(message: ContentHash_Raw): ContentHash_RawAmino; + fromAminoMsg(object: ContentHash_RawAminoMsg): ContentHash_Raw; + fromProtoMsg(message: ContentHash_RawProtoMsg): ContentHash_Raw; + toProto(message: ContentHash_Raw): Uint8Array; + toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg; +}; +export declare const ContentHash_Graph: { + typeUrl: string; + encode(message: ContentHash_Graph, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph; + fromPartial(object: Partial): ContentHash_Graph; + fromAmino(object: ContentHash_GraphAmino): ContentHash_Graph; + toAmino(message: ContentHash_Graph): ContentHash_GraphAmino; + fromAminoMsg(object: ContentHash_GraphAminoMsg): ContentHash_Graph; + fromProtoMsg(message: ContentHash_GraphProtoMsg): ContentHash_Graph; + toProto(message: ContentHash_Graph): Uint8Array; + toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg; +}; +export declare const ContentHashes: { + typeUrl: string; + encode(message: ContentHashes, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes; + fromPartial(object: Partial): ContentHashes; + fromAmino(object: ContentHashesAmino): ContentHashes; + toAmino(message: ContentHashes): ContentHashesAmino; + fromAminoMsg(object: ContentHashesAminoMsg): ContentHashes; + fromProtoMsg(message: ContentHashesProtoMsg): ContentHashes; + toProto(message: ContentHashes): Uint8Array; + toProtoMsg(message: ContentHashes): ContentHashesProtoMsg; +}; diff --git a/packages/api/dist/regen/data/v1/types.js b/packages/api/dist/regen/data/v1/types.js new file mode 100644 index 00000000..982fb888 --- /dev/null +++ b/packages/api/dist/regen/data/v1/types.js @@ -0,0 +1,590 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ContentHashes = exports.ContentHash_Graph = exports.ContentHash_Raw = exports.ContentHash = exports.graphMerkleTreeToJSON = exports.graphMerkleTreeFromJSON = exports.GraphMerkleTreeAmino = exports.GraphMerkleTreeSDKType = exports.GraphMerkleTree = exports.graphCanonicalizationAlgorithmToJSON = exports.graphCanonicalizationAlgorithmFromJSON = exports.GraphCanonicalizationAlgorithmAmino = exports.GraphCanonicalizationAlgorithmSDKType = exports.GraphCanonicalizationAlgorithm = exports.rawMediaTypeToJSON = exports.rawMediaTypeFromJSON = exports.RawMediaTypeAmino = exports.RawMediaTypeSDKType = exports.RawMediaType = exports.digestAlgorithmToJSON = exports.digestAlgorithmFromJSON = exports.DigestAlgorithmAmino = exports.DigestAlgorithmSDKType = exports.DigestAlgorithm = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +/** DigestAlgorithm is the hash digest algorithm */ +var DigestAlgorithm; +(function (DigestAlgorithm) { + /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_UNSPECIFIED"] = 0] = "DIGEST_ALGORITHM_UNSPECIFIED"; + /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ + DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_BLAKE2B_256"] = 1] = "DIGEST_ALGORITHM_BLAKE2B_256"; + DigestAlgorithm[DigestAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(DigestAlgorithm || (exports.DigestAlgorithm = DigestAlgorithm = {})); +exports.DigestAlgorithmSDKType = DigestAlgorithm; +exports.DigestAlgorithmAmino = DigestAlgorithm; +function digestAlgorithmFromJSON(object) { + switch (object) { + case 0: + case "DIGEST_ALGORITHM_UNSPECIFIED": + return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; + case 1: + case "DIGEST_ALGORITHM_BLAKE2B_256": + return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; + case -1: + case "UNRECOGNIZED": + default: + return DigestAlgorithm.UNRECOGNIZED; + } +} +exports.digestAlgorithmFromJSON = digestAlgorithmFromJSON; +function digestAlgorithmToJSON(object) { + switch (object) { + case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: + return "DIGEST_ALGORITHM_UNSPECIFIED"; + case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: + return "DIGEST_ALGORITHM_BLAKE2B_256"; + case DigestAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.digestAlgorithmToJSON = digestAlgorithmToJSON; +/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ +var RawMediaType; +(function (RawMediaType) { + /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_UNSPECIFIED"] = 0] = "RAW_MEDIA_TYPE_UNSPECIFIED"; + /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TEXT_PLAIN"] = 1] = "RAW_MEDIA_TYPE_TEXT_PLAIN"; + /** RAW_MEDIA_TYPE_JSON - JSON */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JSON"] = 2] = "RAW_MEDIA_TYPE_JSON"; + /** RAW_MEDIA_TYPE_CSV - CSV */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_CSV"] = 3] = "RAW_MEDIA_TYPE_CSV"; + /** RAW_MEDIA_TYPE_XML - XML */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_XML"] = 4] = "RAW_MEDIA_TYPE_XML"; + /** RAW_MEDIA_TYPE_PDF - PDF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PDF"] = 5] = "RAW_MEDIA_TYPE_PDF"; + /** RAW_MEDIA_TYPE_TIFF - TIIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TIFF"] = 16] = "RAW_MEDIA_TYPE_TIFF"; + /** RAW_MEDIA_TYPE_JPG - JPG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JPG"] = 17] = "RAW_MEDIA_TYPE_JPG"; + /** RAW_MEDIA_TYPE_PNG - PNG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PNG"] = 18] = "RAW_MEDIA_TYPE_PNG"; + /** RAW_MEDIA_TYPE_SVG - SVG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_SVG"] = 19] = "RAW_MEDIA_TYPE_SVG"; + /** RAW_MEDIA_TYPE_WEBP - WEBP */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBP"] = 20] = "RAW_MEDIA_TYPE_WEBP"; + /** RAW_MEDIA_TYPE_AVIF - AVIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_AVIF"] = 21] = "RAW_MEDIA_TYPE_AVIF"; + /** RAW_MEDIA_TYPE_GIF - GIF */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_GIF"] = 22] = "RAW_MEDIA_TYPE_GIF"; + /** RAW_MEDIA_TYPE_APNG - APNG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_APNG"] = 23] = "RAW_MEDIA_TYPE_APNG"; + /** RAW_MEDIA_TYPE_MPEG - MPEG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MPEG"] = 32] = "RAW_MEDIA_TYPE_MPEG"; + /** RAW_MEDIA_TYPE_MP4 - MP4 */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MP4"] = 33] = "RAW_MEDIA_TYPE_MP4"; + /** RAW_MEDIA_TYPE_WEBM - WEBM */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBM"] = 34] = "RAW_MEDIA_TYPE_WEBM"; + /** RAW_MEDIA_TYPE_OGG - OGG */ + RawMediaType[RawMediaType["RAW_MEDIA_TYPE_OGG"] = 35] = "RAW_MEDIA_TYPE_OGG"; + RawMediaType[RawMediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(RawMediaType || (exports.RawMediaType = RawMediaType = {})); +exports.RawMediaTypeSDKType = RawMediaType; +exports.RawMediaTypeAmino = RawMediaType; +function rawMediaTypeFromJSON(object) { + switch (object) { + case 0: + case "RAW_MEDIA_TYPE_UNSPECIFIED": + return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; + case 1: + case "RAW_MEDIA_TYPE_TEXT_PLAIN": + return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; + case 2: + case "RAW_MEDIA_TYPE_JSON": + return RawMediaType.RAW_MEDIA_TYPE_JSON; + case 3: + case "RAW_MEDIA_TYPE_CSV": + return RawMediaType.RAW_MEDIA_TYPE_CSV; + case 4: + case "RAW_MEDIA_TYPE_XML": + return RawMediaType.RAW_MEDIA_TYPE_XML; + case 5: + case "RAW_MEDIA_TYPE_PDF": + return RawMediaType.RAW_MEDIA_TYPE_PDF; + case 16: + case "RAW_MEDIA_TYPE_TIFF": + return RawMediaType.RAW_MEDIA_TYPE_TIFF; + case 17: + case "RAW_MEDIA_TYPE_JPG": + return RawMediaType.RAW_MEDIA_TYPE_JPG; + case 18: + case "RAW_MEDIA_TYPE_PNG": + return RawMediaType.RAW_MEDIA_TYPE_PNG; + case 19: + case "RAW_MEDIA_TYPE_SVG": + return RawMediaType.RAW_MEDIA_TYPE_SVG; + case 20: + case "RAW_MEDIA_TYPE_WEBP": + return RawMediaType.RAW_MEDIA_TYPE_WEBP; + case 21: + case "RAW_MEDIA_TYPE_AVIF": + return RawMediaType.RAW_MEDIA_TYPE_AVIF; + case 22: + case "RAW_MEDIA_TYPE_GIF": + return RawMediaType.RAW_MEDIA_TYPE_GIF; + case 23: + case "RAW_MEDIA_TYPE_APNG": + return RawMediaType.RAW_MEDIA_TYPE_APNG; + case 32: + case "RAW_MEDIA_TYPE_MPEG": + return RawMediaType.RAW_MEDIA_TYPE_MPEG; + case 33: + case "RAW_MEDIA_TYPE_MP4": + return RawMediaType.RAW_MEDIA_TYPE_MP4; + case 34: + case "RAW_MEDIA_TYPE_WEBM": + return RawMediaType.RAW_MEDIA_TYPE_WEBM; + case 35: + case "RAW_MEDIA_TYPE_OGG": + return RawMediaType.RAW_MEDIA_TYPE_OGG; + case -1: + case "UNRECOGNIZED": + default: + return RawMediaType.UNRECOGNIZED; + } +} +exports.rawMediaTypeFromJSON = rawMediaTypeFromJSON; +function rawMediaTypeToJSON(object) { + switch (object) { + case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: + return "RAW_MEDIA_TYPE_UNSPECIFIED"; + case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: + return "RAW_MEDIA_TYPE_TEXT_PLAIN"; + case RawMediaType.RAW_MEDIA_TYPE_JSON: + return "RAW_MEDIA_TYPE_JSON"; + case RawMediaType.RAW_MEDIA_TYPE_CSV: + return "RAW_MEDIA_TYPE_CSV"; + case RawMediaType.RAW_MEDIA_TYPE_XML: + return "RAW_MEDIA_TYPE_XML"; + case RawMediaType.RAW_MEDIA_TYPE_PDF: + return "RAW_MEDIA_TYPE_PDF"; + case RawMediaType.RAW_MEDIA_TYPE_TIFF: + return "RAW_MEDIA_TYPE_TIFF"; + case RawMediaType.RAW_MEDIA_TYPE_JPG: + return "RAW_MEDIA_TYPE_JPG"; + case RawMediaType.RAW_MEDIA_TYPE_PNG: + return "RAW_MEDIA_TYPE_PNG"; + case RawMediaType.RAW_MEDIA_TYPE_SVG: + return "RAW_MEDIA_TYPE_SVG"; + case RawMediaType.RAW_MEDIA_TYPE_WEBP: + return "RAW_MEDIA_TYPE_WEBP"; + case RawMediaType.RAW_MEDIA_TYPE_AVIF: + return "RAW_MEDIA_TYPE_AVIF"; + case RawMediaType.RAW_MEDIA_TYPE_GIF: + return "RAW_MEDIA_TYPE_GIF"; + case RawMediaType.RAW_MEDIA_TYPE_APNG: + return "RAW_MEDIA_TYPE_APNG"; + case RawMediaType.RAW_MEDIA_TYPE_MPEG: + return "RAW_MEDIA_TYPE_MPEG"; + case RawMediaType.RAW_MEDIA_TYPE_MP4: + return "RAW_MEDIA_TYPE_MP4"; + case RawMediaType.RAW_MEDIA_TYPE_WEBM: + return "RAW_MEDIA_TYPE_WEBM"; + case RawMediaType.RAW_MEDIA_TYPE_OGG: + return "RAW_MEDIA_TYPE_OGG"; + case RawMediaType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.rawMediaTypeToJSON = rawMediaTypeToJSON; +/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ +var GraphCanonicalizationAlgorithm; +(function (GraphCanonicalizationAlgorithm) { + /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"] = 0] = "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; + /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"] = 1] = "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; + GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(GraphCanonicalizationAlgorithm || (exports.GraphCanonicalizationAlgorithm = GraphCanonicalizationAlgorithm = {})); +exports.GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; +exports.GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; +function graphCanonicalizationAlgorithmFromJSON(object) { + switch (object) { + case 0: + case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; + case 1: + case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; + case -1: + case "UNRECOGNIZED": + default: + return GraphCanonicalizationAlgorithm.UNRECOGNIZED; + } +} +exports.graphCanonicalizationAlgorithmFromJSON = graphCanonicalizationAlgorithmFromJSON; +function graphCanonicalizationAlgorithmToJSON(object) { + switch (object) { + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: + return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: + return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; + case GraphCanonicalizationAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.graphCanonicalizationAlgorithmToJSON = graphCanonicalizationAlgorithmToJSON; +/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ +var GraphMerkleTree; +(function (GraphMerkleTree) { + /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ + GraphMerkleTree[GraphMerkleTree["GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"] = 0] = "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; + GraphMerkleTree[GraphMerkleTree["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(GraphMerkleTree || (exports.GraphMerkleTree = GraphMerkleTree = {})); +exports.GraphMerkleTreeSDKType = GraphMerkleTree; +exports.GraphMerkleTreeAmino = GraphMerkleTree; +function graphMerkleTreeFromJSON(object) { + switch (object) { + case 0: + case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": + return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; + case -1: + case "UNRECOGNIZED": + default: + return GraphMerkleTree.UNRECOGNIZED; + } +} +exports.graphMerkleTreeFromJSON = graphMerkleTreeFromJSON; +function graphMerkleTreeToJSON(object) { + switch (object) { + case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: + return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; + case GraphMerkleTree.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.graphMerkleTreeToJSON = graphMerkleTreeToJSON; +function createBaseContentHash() { + return { + raw: undefined, + graph: undefined + }; +} +exports.ContentHash = { + typeUrl: "/regen.data.v1.ContentHash", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.raw !== undefined) { + exports.ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); + } + if (message.graph !== undefined) { + exports.ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.raw = exports.ContentHash_Raw.decode(reader, reader.uint32()); + break; + case 2: + message.graph = exports.ContentHash_Graph.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash(); + message.raw = object.raw !== undefined && object.raw !== null ? exports.ContentHash_Raw.fromPartial(object.raw) : undefined; + message.graph = object.graph !== undefined && object.graph !== null ? exports.ContentHash_Graph.fromPartial(object.graph) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash(); + if (object.raw !== undefined && object.raw !== null) { + message.raw = exports.ContentHash_Raw.fromAmino(object.raw); + } + if (object.graph !== undefined && object.graph !== null) { + message.graph = exports.ContentHash_Graph.fromAmino(object.graph); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.raw = message.raw ? exports.ContentHash_Raw.toAmino(message.raw) : undefined; + obj.graph = message.graph ? exports.ContentHash_Graph.toAmino(message.graph) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ContentHash.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ContentHash.decode(message.value); + }, + toProto(message) { + return exports.ContentHash.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ContentHash", + value: exports.ContentHash.encode(message).finish() + }; + } +}; +function createBaseContentHash_Raw() { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + mediaType: 0 + }; +} +exports.ContentHash_Raw = { + typeUrl: "/regen.data.v1.Raw", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.mediaType !== 0) { + writer.uint32(24).int32(message.mediaType); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Raw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = reader.int32(); + break; + case 3: + message.mediaType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash_Raw(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.mediaType = object.mediaType ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash_Raw(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.media_type !== undefined && object.media_type !== null) { + message.mediaType = object.media_type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; + return obj; + }, + fromAminoMsg(object) { + return exports.ContentHash_Raw.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ContentHash_Raw.decode(message.value); + }, + toProto(message) { + return exports.ContentHash_Raw.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Raw", + value: exports.ContentHash_Raw.encode(message).finish() + }; + } +}; +function createBaseContentHash_Graph() { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + canonicalizationAlgorithm: 0, + merkleTree: 0 + }; +} +exports.ContentHash_Graph = { + typeUrl: "/regen.data.v1.Graph", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.canonicalizationAlgorithm !== 0) { + writer.uint32(24).int32(message.canonicalizationAlgorithm); + } + if (message.merkleTree !== 0) { + writer.uint32(32).int32(message.merkleTree); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Graph(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = reader.int32(); + break; + case 3: + message.canonicalizationAlgorithm = reader.int32(); + break; + case 4: + message.merkleTree = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHash_Graph(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; + message.merkleTree = object.merkleTree ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseContentHash_Graph(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { + message.canonicalizationAlgorithm = object.canonicalization_algorithm; + } + if (object.merkle_tree !== undefined && object.merkle_tree !== null) { + message.merkleTree = object.merkle_tree; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; + obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; + return obj; + }, + fromAminoMsg(object) { + return exports.ContentHash_Graph.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ContentHash_Graph.decode(message.value); + }, + toProto(message) { + return exports.ContentHash_Graph.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.Graph", + value: exports.ContentHash_Graph.encode(message).finish() + }; + } +}; +function createBaseContentHashes() { + return { + contentHashes: [] + }; +} +exports.ContentHashes = { + typeUrl: "/regen.data.v1.ContentHashes", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.contentHashes) { + exports.ContentHash.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHashes(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHashes.push(exports.ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseContentHashes(); + message.contentHashes = object.contentHashes?.map(e => exports.ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseContentHashes(); + message.contentHashes = object.content_hashes?.map(e => exports.ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? exports.ContentHash.toAmino(e) : undefined); + } + else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ContentHashes.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ContentHashes.decode(message.value); + }, + toProto(message) { + return exports.ContentHashes.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.data.v1.ContentHashes", + value: exports.ContentHashes.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts new file mode 100644 index 00000000..ccef6a18 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts @@ -0,0 +1,319 @@ +import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreate { + /** basket_denom is the basket bank denom. */ + basketDenom: string; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + curator: string; +} +export interface EventCreateProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate"; + value: Uint8Array; +} +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreateAmino { + /** basket_denom is the basket bank denom. */ + basket_denom?: string; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + curator?: string; +} +export interface EventCreateAminoMsg { + type: "/regen.ecocredit.basket.v1.EventCreate"; + value: EventCreateAmino; +} +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreateSDKType { + basket_denom: string; + /** @deprecated */ + curator: string; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPut { + /** owner is the owner of the credits put into the basket. */ + owner: string; + /** basket_denom is the basket bank denom that the credits were added to. */ + basketDenom: string; + /** + * credits are the credits that were added to the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits: BasketCredit[]; + /** + * amount is the integer number of basket tokens converted from credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount: string; +} +export interface EventPutProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventPut"; + value: Uint8Array; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPutAmino { + /** owner is the owner of the credits put into the basket. */ + owner?: string; + /** basket_denom is the basket bank denom that the credits were added to. */ + basket_denom?: string; + /** + * credits are the credits that were added to the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits?: BasketCreditAmino[]; + /** + * amount is the integer number of basket tokens converted from credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount?: string; +} +export interface EventPutAminoMsg { + type: "/regen.ecocredit.basket.v1.EventPut"; + value: EventPutAmino; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPutSDKType { + owner: string; + basket_denom: string; + /** @deprecated */ + credits: BasketCreditSDKType[]; + /** @deprecated */ + amount: string; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTake { + /** owner is the owner of the credits taken from the basket. */ + owner: string; + /** basket_denom is the basket bank denom that credits were taken from. */ + basketDenom: string; + /** + * credits are the credits that were taken from the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits: BasketCredit[]; + /** + * amount is the integer number of basket tokens converted to credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount: string; +} +export interface EventTakeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventTake"; + value: Uint8Array; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTakeAmino { + /** owner is the owner of the credits taken from the basket. */ + owner?: string; + /** basket_denom is the basket bank denom that credits were taken from. */ + basket_denom?: string; + /** + * credits are the credits that were taken from the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits?: BasketCreditAmino[]; + /** + * amount is the integer number of basket tokens converted to credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount?: string; +} +export interface EventTakeAminoMsg { + type: "/regen.ecocredit.basket.v1.EventTake"; + value: EventTakeAmino; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTakeSDKType { + owner: string; + basket_denom: string; + /** @deprecated */ + credits: BasketCreditSDKType[]; + /** @deprecated */ + amount: string; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCurator { + /** denom is the basket denom. */ + denom: string; +} +export interface EventUpdateCuratorProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator"; + value: Uint8Array; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCuratorAmino { + /** denom is the basket denom. */ + denom?: string; +} +export interface EventUpdateCuratorAminoMsg { + type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; + value: EventUpdateCuratorAmino; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCuratorSDKType { + denom: string; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteria { + /** denom is the basket denom. */ + denom: string; +} +export interface EventUpdateDateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; + value: Uint8Array; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteriaAmino { + /** denom is the basket denom. */ + denom?: string; +} +export interface EventUpdateDateCriteriaAminoMsg { + type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; + value: EventUpdateDateCriteriaAmino; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteriaSDKType { + denom: string; +} +export declare const EventCreate: { + typeUrl: string; + encode(message: EventCreate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreate; + fromPartial(object: Partial): EventCreate; + fromAmino(object: EventCreateAmino): EventCreate; + toAmino(message: EventCreate): EventCreateAmino; + fromAminoMsg(object: EventCreateAminoMsg): EventCreate; + fromProtoMsg(message: EventCreateProtoMsg): EventCreate; + toProto(message: EventCreate): Uint8Array; + toProtoMsg(message: EventCreate): EventCreateProtoMsg; +}; +export declare const EventPut: { + typeUrl: string; + encode(message: EventPut, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventPut; + fromPartial(object: Partial): EventPut; + fromAmino(object: EventPutAmino): EventPut; + toAmino(message: EventPut): EventPutAmino; + fromAminoMsg(object: EventPutAminoMsg): EventPut; + fromProtoMsg(message: EventPutProtoMsg): EventPut; + toProto(message: EventPut): Uint8Array; + toProtoMsg(message: EventPut): EventPutProtoMsg; +}; +export declare const EventTake: { + typeUrl: string; + encode(message: EventTake, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventTake; + fromPartial(object: Partial): EventTake; + fromAmino(object: EventTakeAmino): EventTake; + toAmino(message: EventTake): EventTakeAmino; + fromAminoMsg(object: EventTakeAminoMsg): EventTake; + fromProtoMsg(message: EventTakeProtoMsg): EventTake; + toProto(message: EventTake): Uint8Array; + toProtoMsg(message: EventTake): EventTakeProtoMsg; +}; +export declare const EventUpdateCurator: { + typeUrl: string; + encode(message: EventUpdateCurator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator; + fromPartial(object: Partial): EventUpdateCurator; + fromAmino(object: EventUpdateCuratorAmino): EventUpdateCurator; + toAmino(message: EventUpdateCurator): EventUpdateCuratorAmino; + fromAminoMsg(object: EventUpdateCuratorAminoMsg): EventUpdateCurator; + fromProtoMsg(message: EventUpdateCuratorProtoMsg): EventUpdateCurator; + toProto(message: EventUpdateCurator): Uint8Array; + toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg; +}; +export declare const EventUpdateDateCriteria: { + typeUrl: string; + encode(message: EventUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria; + fromPartial(object: Partial): EventUpdateDateCriteria; + fromAmino(object: EventUpdateDateCriteriaAmino): EventUpdateDateCriteria; + toAmino(message: EventUpdateDateCriteria): EventUpdateDateCriteriaAmino; + fromAminoMsg(object: EventUpdateDateCriteriaAminoMsg): EventUpdateDateCriteria; + fromProtoMsg(message: EventUpdateDateCriteriaProtoMsg): EventUpdateDateCriteria; + toProto(message: EventUpdateDateCriteria): Uint8Array; + toProtoMsg(message: EventUpdateDateCriteria): EventUpdateDateCriteriaProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/events.js b/packages/api/dist/regen/ecocredit/basket/v1/events.js new file mode 100644 index 00000000..c8848d3a --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/events.js @@ -0,0 +1,411 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventUpdateDateCriteria = exports.EventUpdateCurator = exports.EventTake = exports.EventPut = exports.EventCreate = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const binary_1 = require("../../../../binary"); +function createBaseEventCreate() { + return { + basketDenom: "", + curator: "" + }; +} +exports.EventCreate = { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.curator !== "") { + writer.uint32(18).string(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreate(); + message.basketDenom = object.basketDenom ?? ""; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreate(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreate.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreate.decode(message.value); + }, + toProto(message) { + return exports.EventCreate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + value: exports.EventCreate.encode(message).finish() + }; + } +}; +function createBaseEventPut() { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +exports.EventPut = { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.EventPut.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventPut.decode(message.value); + }, + toProto(message) { + return exports.EventPut.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + value: exports.EventPut.encode(message).finish() + }; + } +}; +function createBaseEventTake() { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +exports.EventTake = { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.EventTake.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventTake.decode(message.value); + }, + toProto(message) { + return exports.EventTake.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + value: exports.EventTake.encode(message).finish() + }; + } +}; +function createBaseEventUpdateCurator() { + return { + denom: "" + }; +} +exports.EventUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateCurator(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateCurator(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateCurator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateCurator.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + value: exports.EventUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseEventUpdateDateCriteria() { + return { + denom: "" + }; +} +exports.EventUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateDateCriteria(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateDateCriteria(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateDateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateDateCriteria.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + value: exports.EventUpdateDateCriteria.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts new file mode 100644 index 00000000..f2e11167 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts @@ -0,0 +1,608 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequest { + /** basket_denom represents the denom of the basket to query. */ + basketDenom: string; +} +export interface QueryBasketRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest"; + value: Uint8Array; +} +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequestAmino { + /** basket_denom represents the denom of the basket to query. */ + basket_denom?: string; +} +export interface QueryBasketRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; + value: QueryBasketRequestAmino; +} +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequestSDKType { + basket_denom: string; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponse { + /** + * basket is the queried basket. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * basket_info is available using BasketInfo. + */ + /** @deprecated */ + basket?: Basket; + /** classes are the credit classes that can be deposited in the basket. */ + classes: string[]; + /** + * basket_info is the queried basket. + * + * Since Revision 1 + */ + basketInfo?: BasketInfo; +} +export interface QueryBasketResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; + value: Uint8Array; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponseAmino { + /** + * basket is the queried basket. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * basket_info is available using BasketInfo. + */ + /** @deprecated */ + basket?: BasketAmino; + /** classes are the credit classes that can be deposited in the basket. */ + classes?: string[]; + /** + * basket_info is the queried basket. + * + * Since Revision 1 + */ + basket_info?: BasketInfoAmino; +} +export interface QueryBasketResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketResponse"; + value: QueryBasketResponseAmino; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponseSDKType { + /** @deprecated */ + basket?: BasketSDKType; + classes: string[]; + basket_info?: BasketInfoSDKType; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBasketsRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; + value: Uint8Array; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBasketsRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; + value: QueryBasketsRequestAmino; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponse { + /** + * baskets are the fetched baskets. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * baskets_info is available using BasketInfo. + */ + /** @deprecated */ + baskets: Basket[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; + /** + * baskets_info are the fetched baskets. + * + * Since Revision 1 + */ + basketsInfo: BasketInfo[]; +} +export interface QueryBasketsResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; + value: Uint8Array; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponseAmino { + /** + * baskets are the fetched baskets. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * baskets_info is available using BasketInfo. + */ + /** @deprecated */ + baskets?: BasketAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; + /** + * baskets_info are the fetched baskets. + * + * Since Revision 1 + */ + baskets_info?: BasketInfoAmino[]; +} +export interface QueryBasketsResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; + value: QueryBasketsResponseAmino; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponseSDKType { + /** @deprecated */ + baskets: BasketSDKType[]; + pagination?: PageResponseSDKType; + baskets_info: BasketInfoSDKType[]; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequest { + /** basket_denom is the denom of the basket. */ + basketDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBasketBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; + value: Uint8Array; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequestAmino { + /** basket_denom is the denom of the basket. */ + basket_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBasketBalancesRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; + value: QueryBasketBalancesRequestAmino; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequestSDKType { + basket_denom: string; + pagination?: PageRequestSDKType; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponse { + /** + * balances is a list of credit balances in the basket. + * + * Deprecated (Since Revision 1): This field is still populated using + * BasketBalance but will be updated to use BasketBalanceInfo in the next + * version. In the meantime baskets_info is available using BasketBalanceInfo. + */ + /** @deprecated */ + balances: BasketBalance[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; + /** + * balances_info is a list of credit balances in the basket. + * + * Since Revision 1 + */ + balancesInfo: BasketBalanceInfo[]; +} +export interface QueryBasketBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; + value: Uint8Array; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponseAmino { + /** + * balances is a list of credit balances in the basket. + * + * Deprecated (Since Revision 1): This field is still populated using + * BasketBalance but will be updated to use BasketBalanceInfo in the next + * version. In the meantime baskets_info is available using BasketBalanceInfo. + */ + /** @deprecated */ + balances?: BasketBalanceAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; + /** + * balances_info is a list of credit balances in the basket. + * + * Since Revision 1 + */ + balances_info?: BasketBalanceInfoAmino[]; +} +export interface QueryBasketBalancesResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; + value: QueryBasketBalancesResponseAmino; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponseSDKType { + /** @deprecated */ + balances: BasketBalanceSDKType[]; + pagination?: PageResponseSDKType; + balances_info: BasketBalanceInfoSDKType[]; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequest { + /** basket_denom is the denom of the basket. */ + basketDenom: string; + /** batch_denom is the denom of the credit batch. */ + batchDenom: string; +} +export interface QueryBasketBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; + value: Uint8Array; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequestAmino { + /** basket_denom is the denom of the basket. */ + basket_denom?: string; + /** batch_denom is the denom of the credit batch. */ + batch_denom?: string; +} +export interface QueryBasketBalanceRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; + value: QueryBasketBalanceRequestAmino; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequestSDKType { + basket_denom: string; + batch_denom: string; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponse { + /** balance is the amount of the queried credit batch in the basket. */ + balance: string; +} +export interface QueryBasketBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; + value: Uint8Array; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponseAmino { + /** balance is the amount of the queried credit batch in the basket. */ + balance?: string; +} +export interface QueryBasketBalanceResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; + value: QueryBasketBalanceResponseAmino; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponseSDKType { + balance: string; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfo { + /** basket_denom is the basket bank denom. */ + basketDenom: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + dateCriteria?: DateCriteria; + /** exponent is the exponent for converting credits to/from basket tokens. */ + exponent: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator: string; +} +export interface BasketInfoProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo"; + value: Uint8Array; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfoAmino { + /** basket_denom is the basket bank denom. */ + basket_denom?: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name?: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + date_criteria?: DateCriteriaAmino; + /** exponent is the exponent for converting credits to/from basket tokens. */ + exponent?: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator?: string; +} +export interface BasketInfoAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketInfo"; + value: BasketInfoAmino; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfoSDKType { + basket_denom: string; + name: string; + disable_auto_retire: boolean; + credit_type_abbrev: string; + date_criteria?: DateCriteriaSDKType; + exponent: number; + curator: string; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfo { + /** batch_denom is the denom of the credit batch */ + batchDenom: string; + /** balance is the amount of ecocredits held in the basket */ + balance: string; +} +export interface BasketBalanceInfoProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; + value: Uint8Array; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfoAmino { + /** batch_denom is the denom of the credit batch */ + batch_denom?: string; + /** balance is the amount of ecocredits held in the basket */ + balance?: string; +} +export interface BasketBalanceInfoAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; + value: BasketBalanceInfoAmino; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfoSDKType { + batch_denom: string; + balance: string; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequest { +} +export interface QueryBasketFeeRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; + value: Uint8Array; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequestAmino { +} +export interface QueryBasketFeeRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; + value: QueryBasketFeeRequestAmino; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequestSDKType { +} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponse { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: Coin; +} +export interface QueryBasketFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; + value: Uint8Array; +} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponseAmino { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: CoinAmino; +} +export interface QueryBasketFeeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; + value: QueryBasketFeeResponseAmino; +} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponseSDKType { + fee?: CoinSDKType; +} +export declare const QueryBasketRequest: { + typeUrl: string; + encode(message: QueryBasketRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest; + fromPartial(object: Partial): QueryBasketRequest; + fromAmino(object: QueryBasketRequestAmino): QueryBasketRequest; + toAmino(message: QueryBasketRequest): QueryBasketRequestAmino; + fromAminoMsg(object: QueryBasketRequestAminoMsg): QueryBasketRequest; + fromProtoMsg(message: QueryBasketRequestProtoMsg): QueryBasketRequest; + toProto(message: QueryBasketRequest): Uint8Array; + toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg; +}; +export declare const QueryBasketResponse: { + typeUrl: string; + encode(message: QueryBasketResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse; + fromPartial(object: Partial): QueryBasketResponse; + fromAmino(object: QueryBasketResponseAmino): QueryBasketResponse; + toAmino(message: QueryBasketResponse): QueryBasketResponseAmino; + fromAminoMsg(object: QueryBasketResponseAminoMsg): QueryBasketResponse; + fromProtoMsg(message: QueryBasketResponseProtoMsg): QueryBasketResponse; + toProto(message: QueryBasketResponse): Uint8Array; + toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg; +}; +export declare const QueryBasketsRequest: { + typeUrl: string; + encode(message: QueryBasketsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest; + fromPartial(object: Partial): QueryBasketsRequest; + fromAmino(object: QueryBasketsRequestAmino): QueryBasketsRequest; + toAmino(message: QueryBasketsRequest): QueryBasketsRequestAmino; + fromAminoMsg(object: QueryBasketsRequestAminoMsg): QueryBasketsRequest; + fromProtoMsg(message: QueryBasketsRequestProtoMsg): QueryBasketsRequest; + toProto(message: QueryBasketsRequest): Uint8Array; + toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg; +}; +export declare const QueryBasketsResponse: { + typeUrl: string; + encode(message: QueryBasketsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse; + fromPartial(object: Partial): QueryBasketsResponse; + fromAmino(object: QueryBasketsResponseAmino): QueryBasketsResponse; + toAmino(message: QueryBasketsResponse): QueryBasketsResponseAmino; + fromAminoMsg(object: QueryBasketsResponseAminoMsg): QueryBasketsResponse; + fromProtoMsg(message: QueryBasketsResponseProtoMsg): QueryBasketsResponse; + toProto(message: QueryBasketsResponse): Uint8Array; + toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg; +}; +export declare const QueryBasketBalancesRequest: { + typeUrl: string; + encode(message: QueryBasketBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest; + fromPartial(object: Partial): QueryBasketBalancesRequest; + fromAmino(object: QueryBasketBalancesRequestAmino): QueryBasketBalancesRequest; + toAmino(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestAmino; + fromAminoMsg(object: QueryBasketBalancesRequestAminoMsg): QueryBasketBalancesRequest; + fromProtoMsg(message: QueryBasketBalancesRequestProtoMsg): QueryBasketBalancesRequest; + toProto(message: QueryBasketBalancesRequest): Uint8Array; + toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg; +}; +export declare const QueryBasketBalancesResponse: { + typeUrl: string; + encode(message: QueryBasketBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse; + fromPartial(object: Partial): QueryBasketBalancesResponse; + fromAmino(object: QueryBasketBalancesResponseAmino): QueryBasketBalancesResponse; + toAmino(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseAmino; + fromAminoMsg(object: QueryBasketBalancesResponseAminoMsg): QueryBasketBalancesResponse; + fromProtoMsg(message: QueryBasketBalancesResponseProtoMsg): QueryBasketBalancesResponse; + toProto(message: QueryBasketBalancesResponse): Uint8Array; + toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg; +}; +export declare const QueryBasketBalanceRequest: { + typeUrl: string; + encode(message: QueryBasketBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest; + fromPartial(object: Partial): QueryBasketBalanceRequest; + fromAmino(object: QueryBasketBalanceRequestAmino): QueryBasketBalanceRequest; + toAmino(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestAmino; + fromAminoMsg(object: QueryBasketBalanceRequestAminoMsg): QueryBasketBalanceRequest; + fromProtoMsg(message: QueryBasketBalanceRequestProtoMsg): QueryBasketBalanceRequest; + toProto(message: QueryBasketBalanceRequest): Uint8Array; + toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg; +}; +export declare const QueryBasketBalanceResponse: { + typeUrl: string; + encode(message: QueryBasketBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse; + fromPartial(object: Partial): QueryBasketBalanceResponse; + fromAmino(object: QueryBasketBalanceResponseAmino): QueryBasketBalanceResponse; + toAmino(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseAmino; + fromAminoMsg(object: QueryBasketBalanceResponseAminoMsg): QueryBasketBalanceResponse; + fromProtoMsg(message: QueryBasketBalanceResponseProtoMsg): QueryBasketBalanceResponse; + toProto(message: QueryBasketBalanceResponse): Uint8Array; + toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg; +}; +export declare const BasketInfo: { + typeUrl: string; + encode(message: BasketInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo; + fromPartial(object: Partial): BasketInfo; + fromAmino(object: BasketInfoAmino): BasketInfo; + toAmino(message: BasketInfo): BasketInfoAmino; + fromAminoMsg(object: BasketInfoAminoMsg): BasketInfo; + fromProtoMsg(message: BasketInfoProtoMsg): BasketInfo; + toProto(message: BasketInfo): Uint8Array; + toProtoMsg(message: BasketInfo): BasketInfoProtoMsg; +}; +export declare const BasketBalanceInfo: { + typeUrl: string; + encode(message: BasketBalanceInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo; + fromPartial(object: Partial): BasketBalanceInfo; + fromAmino(object: BasketBalanceInfoAmino): BasketBalanceInfo; + toAmino(message: BasketBalanceInfo): BasketBalanceInfoAmino; + fromAminoMsg(object: BasketBalanceInfoAminoMsg): BasketBalanceInfo; + fromProtoMsg(message: BasketBalanceInfoProtoMsg): BasketBalanceInfo; + toProto(message: BasketBalanceInfo): Uint8Array; + toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg; +}; +export declare const QueryBasketFeeRequest: { + typeUrl: string; + encode(_: QueryBasketFeeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest; + fromPartial(_: Partial): QueryBasketFeeRequest; + fromAmino(_: QueryBasketFeeRequestAmino): QueryBasketFeeRequest; + toAmino(_: QueryBasketFeeRequest): QueryBasketFeeRequestAmino; + fromAminoMsg(object: QueryBasketFeeRequestAminoMsg): QueryBasketFeeRequest; + fromProtoMsg(message: QueryBasketFeeRequestProtoMsg): QueryBasketFeeRequest; + toProto(message: QueryBasketFeeRequest): Uint8Array; + toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg; +}; +export declare const QueryBasketFeeResponse: { + typeUrl: string; + encode(message: QueryBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse; + fromPartial(object: Partial): QueryBasketFeeResponse; + fromAmino(object: QueryBasketFeeResponseAmino): QueryBasketFeeResponse; + toAmino(message: QueryBasketFeeResponse): QueryBasketFeeResponseAmino; + fromAminoMsg(object: QueryBasketFeeResponseAminoMsg): QueryBasketFeeResponse; + fromProtoMsg(message: QueryBasketFeeResponseProtoMsg): QueryBasketFeeResponse; + toProto(message: QueryBasketFeeResponse): Uint8Array; + toProtoMsg(message: QueryBasketFeeResponse): QueryBasketFeeResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.js b/packages/api/dist/regen/ecocredit/basket/v1/query.js new file mode 100644 index 00000000..1dfbe3a7 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.js @@ -0,0 +1,947 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryBasketFeeResponse = exports.QueryBasketFeeRequest = exports.BasketBalanceInfo = exports.BasketInfo = exports.QueryBasketBalanceResponse = exports.QueryBasketBalanceRequest = exports.QueryBasketBalancesResponse = exports.QueryBasketBalancesRequest = exports.QueryBasketsResponse = exports.QueryBasketsRequest = exports.QueryBasketResponse = exports.QueryBasketRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); +const state_1 = require("./state"); +const types_1 = require("./types"); +const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../../binary"); +function createBaseQueryBasketRequest() { + return { + basketDenom: "" + }; +} +exports.QueryBasketRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketRequest(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + value: exports.QueryBasketRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketResponse() { + return { + basket: undefined, + classes: [], + basketInfo: undefined + }; +} +exports.QueryBasketResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basket !== undefined) { + state_1.Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classes) { + writer.uint32(18).string(v); + } + if (message.basketInfo !== undefined) { + exports.BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basket = state_1.Basket.decode(reader, reader.uint32()); + break; + case 2: + message.classes.push(reader.string()); + break; + case 3: + message.basketInfo = exports.BasketInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketResponse(); + message.basket = object.basket !== undefined && object.basket !== null ? state_1.Basket.fromPartial(object.basket) : undefined; + message.classes = object.classes?.map(e => e) || []; + message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? exports.BasketInfo.fromPartial(object.basketInfo) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketResponse(); + if (object.basket !== undefined && object.basket !== null) { + message.basket = state_1.Basket.fromAmino(object.basket); + } + message.classes = object.classes?.map(e => e) || []; + if (object.basket_info !== undefined && object.basket_info !== null) { + message.basketInfo = exports.BasketInfo.fromAmino(object.basket_info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket = message.basket ? state_1.Basket.toAmino(message.basket) : undefined; + if (message.classes) { + obj.classes = message.classes.map(e => e); + } + else { + obj.classes = message.classes; + } + obj.basket_info = message.basketInfo ? exports.BasketInfo.toAmino(message.basketInfo) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + value: exports.QueryBasketResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsRequest() { + return { + pagination: undefined + }; +} +exports.QueryBasketsRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + value: exports.QueryBasketsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsResponse() { + return { + baskets: [], + pagination: undefined, + basketsInfo: [] + }; +} +exports.QueryBasketsResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.baskets) { + state_1.Basket.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.basketsInfo) { + exports.BasketInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baskets.push(state_1.Basket.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.basketsInfo.push(exports.BasketInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => state_1.Basket.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + message.basketsInfo = object.basketsInfo?.map(e => exports.BasketInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => state_1.Basket.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + message.basketsInfo = object.baskets_info?.map(e => exports.BasketInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.baskets) { + obj.baskets = message.baskets.map(e => e ? state_1.Basket.toAmino(e) : undefined); + } + else { + obj.baskets = message.baskets; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + if (message.basketsInfo) { + obj.baskets_info = message.basketsInfo.map(e => e ? exports.BasketInfo.toAmino(e) : undefined); + } + else { + obj.baskets_info = message.basketsInfo; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + value: exports.QueryBasketsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesRequest() { + return { + basketDenom: "", + pagination: undefined + }; +} +exports.QueryBasketBalancesRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalancesRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalancesRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketBalancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + value: exports.QueryBasketBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesResponse() { + return { + balances: [], + pagination: undefined, + balancesInfo: [] + }; +} +exports.QueryBasketBalancesResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + state_1.BasketBalance.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.balancesInfo) { + exports.BasketBalanceInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(state_1.BasketBalance.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.balancesInfo.push(exports.BasketBalanceInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => state_1.BasketBalance.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + message.balancesInfo = object.balancesInfo?.map(e => exports.BasketBalanceInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => state_1.BasketBalance.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + message.balancesInfo = object.balances_info?.map(e => exports.BasketBalanceInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? state_1.BasketBalance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + if (message.balancesInfo) { + obj.balances_info = message.balancesInfo.map(e => e ? exports.BasketBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances_info = message.balancesInfo; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketBalancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + value: exports.QueryBasketBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceRequest() { + return { + basketDenom: "", + batchDenom: "" + }; +} +exports.QueryBasketBalanceRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalanceRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalanceRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketBalanceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + value: exports.QueryBasketBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceResponse() { + return { + balance: "" + }; +} +exports.QueryBasketBalanceResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.balance !== "") { + writer.uint32(10).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketBalanceResponse(); + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketBalanceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + value: exports.QueryBasketBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseBasketInfo() { + return { + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: "" + }; +} +exports.BasketInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(24).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(48).uint32(message.exponent); + } + if (message.curator !== "") { + writer.uint32(58).string(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.disableAutoRetire = reader.bool(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); + break; + case 6: + message.exponent = reader.uint32(); + break; + case 7: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketInfo(); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketInfo(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketInfo.decode(message.value); + }, + toProto(message) { + return exports.BasketInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + value: exports.BasketInfo.encode(message).finish() + }; + } +}; +function createBaseBasketBalanceInfo() { + return { + batchDenom: "", + balance: "" + }; +} +exports.BasketBalanceInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(18).string(message.balance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketBalanceInfo(); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketBalanceInfo(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketBalanceInfo.decode(message.value); + }, + toProto(message) { + return exports.BasketBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + value: exports.BasketBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeRequest() { + return {}; +} +exports.QueryBasketFeeRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketFeeRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketFeeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + value: exports.QueryBasketFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeResponse() { + return { + fee: undefined + }; +} +exports.QueryBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBasketFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBasketFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBasketFeeResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + value: exports.QueryBasketFeeResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts new file mode 100644 index 00000000..15ab387e --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts @@ -0,0 +1,13 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + basket(params: QueryBasketRequest): Promise; + baskets(params?: QueryBasketsRequest): Promise; + basketBalances(params: QueryBasketBalancesRequest): Promise; + basketBalance(params: QueryBasketBalanceRequest): Promise; + basketFee(_params?: QueryBasketFeeRequest): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js new file mode 100644 index 00000000..f587c1d4 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + /* Basket queries one basket by denom. */ + async basket(params) { + const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; + return await this.req.get(endpoint); + } + /* Baskets lists all baskets in the ecocredit module. */ + async baskets(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/baskets`; + return await this.req.get(endpoint, options); + } + /* BasketBalances lists the balance of each credit batch in the basket. */ + async basketBalances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; + return await this.req.get(endpoint, options); + } + /* BasketBalance queries the balance of a specific credit batch in the basket. */ + async basketBalance(params) { + const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* BasketFee returns the basket creation fee. If not set, a basket creation + fee is not required. + + Since Revision 2 */ + async basketFee(_params = {}) { + const endpoint = `regen/ecocredit/basket/v1/basket-fee`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..9087afa0 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts @@ -0,0 +1,37 @@ +import { Rpc } from "../../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; +/** Msg is the regen.ecocredit.basket.v1 Query service. */ +export interface Query { + /** Basket queries one basket by denom. */ + basket(request: QueryBasketRequest): Promise; + /** Baskets lists all baskets in the ecocredit module. */ + baskets(request?: QueryBasketsRequest): Promise; + /** BasketBalances lists the balance of each credit batch in the basket. */ + basketBalances(request: QueryBasketBalancesRequest): Promise; + /** BasketBalance queries the balance of a specific credit batch in the basket. */ + basketBalance(request: QueryBasketBalanceRequest): Promise; + /** + * BasketFee returns the basket creation fee. If not set, a basket creation + * fee is not required. + * + * Since Revision 2 + */ + basketFee(request?: QueryBasketFeeRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + basket(request: QueryBasketRequest): Promise; + baskets(request?: QueryBasketsRequest): Promise; + basketBalances(request: QueryBasketBalancesRequest): Promise; + basketBalance(request: QueryBasketBalanceRequest): Promise; + basketFee(request?: QueryBasketFeeRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + basket(request: QueryBasketRequest): Promise; + baskets(request?: QueryBasketsRequest): Promise; + basketBalances(request: QueryBasketBalancesRequest): Promise; + basketBalance(request: QueryBasketBalanceRequest): Promise; + basketFee(request?: QueryBasketFeeRequest): Promise; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js new file mode 100644 index 00000000..4ae8b562 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + basket(request) { + const data = query_1.QueryBasketRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); + return promise.then(data => query_1.QueryBasketResponse.decode(new binary_1.BinaryReader(data))); + } + baskets(request = { + pagination: undefined + }) { + const data = query_1.QueryBasketsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); + return promise.then(data => query_1.QueryBasketsResponse.decode(new binary_1.BinaryReader(data))); + } + basketBalances(request) { + const data = query_1.QueryBasketBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); + return promise.then(data => query_1.QueryBasketBalancesResponse.decode(new binary_1.BinaryReader(data))); + } + basketBalance(request) { + const data = query_1.QueryBasketBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); + return promise.then(data => query_1.QueryBasketBalanceResponse.decode(new binary_1.BinaryReader(data))); + } + basketFee(request = {}) { + const data = query_1.QueryBasketFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); + return promise.then(data => query_1.QueryBasketFeeResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + basket(request) { + return queryService.basket(request); + }, + baskets(request) { + return queryService.baskets(request); + }, + basketBalances(request) { + return queryService.basketBalances(request); + }, + basketBalance(request) { + return queryService.basketBalance(request); + }, + basketFee(request) { + return queryService.basketFee(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts new file mode 100644 index 00000000..4b0728de --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts @@ -0,0 +1,308 @@ +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Basket represents a basket in state. */ +export interface Basket { + /** + * id is the uint64 ID of the basket. It is used internally for reducing + * storage space. + */ + id: bigint; + /** + * basket_denom is the basket bank denom formed from name and credit type with + * the format `eco..` where prefix is the + * prefix of the bank denom exponent, a standard SI unit derived from credit + * type precision, and mapped as follows: + * 0 - no prefix + * 1 - d (deci) + * 2 - c (centi) + * 3 - m (milli) + * 6 - u (micro) + * 9 - n (nano) + * 12 - p (pico) + * 15 - f (femto) + * 18 - a (atto) + * 21 - z (zepto) + * 24 - y (yocto) + */ + basketDenom: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + dateCriteria?: DateCriteria; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when converting credits to/from basket tokens. This + * field will be set to the value of credit type precision until removed. + */ + /** @deprecated */ + exponent: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Since Revision 1 + */ + curator: Uint8Array; +} +export interface BasketProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.Basket"; + value: Uint8Array; +} +/** Basket represents a basket in state. */ +export interface BasketAmino { + /** + * id is the uint64 ID of the basket. It is used internally for reducing + * storage space. + */ + id?: string; + /** + * basket_denom is the basket bank denom formed from name and credit type with + * the format `eco..` where prefix is the + * prefix of the bank denom exponent, a standard SI unit derived from credit + * type precision, and mapped as follows: + * 0 - no prefix + * 1 - d (deci) + * 2 - c (centi) + * 3 - m (milli) + * 6 - u (micro) + * 9 - n (nano) + * 12 - p (pico) + * 15 - f (femto) + * 18 - a (atto) + * 21 - z (zepto) + * 24 - y (yocto) + */ + basket_denom?: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name?: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + date_criteria?: DateCriteriaAmino; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when converting credits to/from basket tokens. This + * field will be set to the value of credit type precision until removed. + */ + /** @deprecated */ + exponent?: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Since Revision 1 + */ + curator?: string; +} +export interface BasketAminoMsg { + type: "/regen.ecocredit.basket.v1.Basket"; + value: BasketAmino; +} +/** Basket represents a basket in state. */ +export interface BasketSDKType { + id: bigint; + basket_denom: string; + name: string; + disable_auto_retire: boolean; + credit_type_abbrev: string; + date_criteria?: DateCriteriaSDKType; + /** @deprecated */ + exponent: number; + curator: Uint8Array; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClass { + /** basket_id is the ID of the basket */ + basketId: bigint; + /** + * class_id is the id of the credit class that is allowed to be deposited in + * the basket + */ + classId: string; +} +export interface BasketClassProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass"; + value: Uint8Array; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClassAmino { + /** basket_id is the ID of the basket */ + basket_id?: string; + /** + * class_id is the id of the credit class that is allowed to be deposited in + * the basket + */ + class_id?: string; +} +export interface BasketClassAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketClass"; + value: BasketClassAmino; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClassSDKType { + basket_id: bigint; + class_id: string; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalance { + /** basket_id is the ID of the basket */ + basketId: bigint; + /** batch_denom is the denom of the credit batch */ + batchDenom: string; + /** balance is the amount of ecocredits held in the basket */ + balance: string; + /** + * batch_start_date is the start date of the batch. This field is used + * to create an index which is used to remove the oldest credits first. + */ + batchStartDate?: Date; +} +export interface BasketBalanceProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; + value: Uint8Array; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalanceAmino { + /** basket_id is the ID of the basket */ + basket_id?: string; + /** batch_denom is the denom of the credit batch */ + batch_denom?: string; + /** balance is the amount of ecocredits held in the basket */ + balance?: string; + /** + * batch_start_date is the start date of the batch. This field is used + * to create an index which is used to remove the oldest credits first. + */ + batch_start_date?: string; +} +export interface BasketBalanceAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketBalance"; + value: BasketBalanceAmino; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalanceSDKType { + basket_id: bigint; + batch_denom: string; + balance: string; + batch_start_date?: Date; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFee { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: Coin; +} +export interface BasketFeeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; + value: Uint8Array; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFeeAmino { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: CoinAmino; +} +export interface BasketFeeAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketFee"; + value: BasketFeeAmino; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFeeSDKType { + fee?: CoinSDKType; +} +export declare const Basket: { + typeUrl: string; + encode(message: Basket, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Basket; + fromPartial(object: Partial): Basket; + fromAmino(object: BasketAmino): Basket; + toAmino(message: Basket): BasketAmino; + fromAminoMsg(object: BasketAminoMsg): Basket; + fromProtoMsg(message: BasketProtoMsg): Basket; + toProto(message: Basket): Uint8Array; + toProtoMsg(message: Basket): BasketProtoMsg; +}; +export declare const BasketClass: { + typeUrl: string; + encode(message: BasketClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketClass; + fromPartial(object: Partial): BasketClass; + fromAmino(object: BasketClassAmino): BasketClass; + toAmino(message: BasketClass): BasketClassAmino; + fromAminoMsg(object: BasketClassAminoMsg): BasketClass; + fromProtoMsg(message: BasketClassProtoMsg): BasketClass; + toProto(message: BasketClass): Uint8Array; + toProtoMsg(message: BasketClass): BasketClassProtoMsg; +}; +export declare const BasketBalance: { + typeUrl: string; + encode(message: BasketBalance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance; + fromPartial(object: Partial): BasketBalance; + fromAmino(object: BasketBalanceAmino): BasketBalance; + toAmino(message: BasketBalance): BasketBalanceAmino; + fromAminoMsg(object: BasketBalanceAminoMsg): BasketBalance; + fromProtoMsg(message: BasketBalanceProtoMsg): BasketBalance; + toProto(message: BasketBalance): Uint8Array; + toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg; +}; +export declare const BasketFee: { + typeUrl: string; + encode(message: BasketFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketFee; + fromPartial(object: Partial): BasketFee; + fromAmino(object: BasketFeeAmino): BasketFee; + toAmino(message: BasketFee): BasketFeeAmino; + fromAminoMsg(object: BasketFeeAminoMsg): BasketFee; + fromProtoMsg(message: BasketFeeProtoMsg): BasketFee; + toProto(message: BasketFee): Uint8Array; + toProtoMsg(message: BasketFee): BasketFeeProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/state.js b/packages/api/dist/regen/ecocredit/basket/v1/state.js new file mode 100644 index 00000000..c4ff3e07 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/state.js @@ -0,0 +1,393 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BasketFee = exports.BasketBalance = exports.BasketClass = exports.Basket = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseBasket() { + return { + id: BigInt(0), + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: new Uint8Array() + }; +} +exports.Basket = { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(26).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(56).uint32(message.exponent); + } + if (message.curator.length !== 0) { + writer.uint32(66).bytes(message.curator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + case 6: + message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); + break; + case 7: + message.exponent = reader.uint32(); + break; + case 8: + message.curator = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseBasket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = (0, helpers_1.bytesFromBase64)(object.curator); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator ? (0, helpers_1.base64FromBytes)(message.curator) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Basket.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Basket.decode(message.value); + }, + toProto(message) { + return exports.Basket.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + value: exports.Basket.encode(message).finish() + }; + } +}; +function createBaseBasketClass() { + return { + basketId: BigInt(0), + classId: "" + }; +} +exports.BasketClass = { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketClass(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketClass(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketClass.decode(message.value); + }, + toProto(message) { + return exports.BasketClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + value: exports.BasketClass.encode(message).finish() + }; + } +}; +function createBaseBasketBalance() { + return { + basketId: BigInt(0), + batchDenom: "", + balance: "", + batchStartDate: undefined + }; +} +exports.BasketBalance = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(26).string(message.balance); + } + if (message.batchStartDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.batchStartDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.balance = reader.string(); + break; + case 4: + message.batchStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketBalance(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + message.batchStartDate = object.batchStartDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasketBalance(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + if (object.batch_start_date !== undefined && object.batch_start_date !== null) { + message.batchStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.batch_start_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + obj.batch_start_date = message.batchStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.batchStartDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketBalance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketBalance.decode(message.value); + }, + toProto(message) { + return exports.BasketBalance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + value: exports.BasketBalance.encode(message).finish() + }; + } +}; +function createBaseBasketFee() { + return { + fee: undefined + }; +} +exports.BasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketFee(); + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBasketFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketFee.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketFee.decode(message.value); + }, + toProto(message) { + return exports.BasketFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + value: exports.BasketFee.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts new file mode 100644 index 00000000..b96583d1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts @@ -0,0 +1,33 @@ +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export declare const AminoConverter: { + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: string; + toAmino: (message: MsgCreate) => import("./tx").MsgCreateAmino; + fromAmino: (object: import("./tx").MsgCreateAmino) => MsgCreate; + }; + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: string; + toAmino: (message: MsgPut) => import("./tx").MsgPutAmino; + fromAmino: (object: import("./tx").MsgPutAmino) => MsgPut; + }; + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: string; + toAmino: (message: MsgTake) => import("./tx").MsgTakeAmino; + fromAmino: (object: import("./tx").MsgTakeAmino) => MsgTake; + }; + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: string; + toAmino: (message: MsgUpdateBasketFee) => import("./tx").MsgUpdateBasketFeeAmino; + fromAmino: (object: import("./tx").MsgUpdateBasketFeeAmino) => MsgUpdateBasketFee; + }; + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: string; + toAmino: (message: MsgUpdateCurator) => import("./tx").MsgUpdateCuratorAmino; + fromAmino: (object: import("./tx").MsgUpdateCuratorAmino) => MsgUpdateCurator; + }; + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: string; + toAmino: (message: MsgUpdateDateCriteria) => import("./tx").MsgUpdateDateCriteriaAmino; + fromAmino: (object: import("./tx").MsgUpdateDateCriteriaAmino) => MsgUpdateDateCriteria; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js new file mode 100644 index 00000000..d4fb2571 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: "regen.basket/MsgCreate", + toAmino: tx_1.MsgCreate.toAmino, + fromAmino: tx_1.MsgCreate.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: "regen.basket/MsgPut", + toAmino: tx_1.MsgPut.toAmino, + fromAmino: tx_1.MsgPut.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: "regen.basket/MsgTake", + toAmino: tx_1.MsgTake.toAmino, + fromAmino: tx_1.MsgTake.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: "regen.basket/MsgUpdateBasketFee", + toAmino: tx_1.MsgUpdateBasketFee.toAmino, + fromAmino: tx_1.MsgUpdateBasketFee.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: "regen.basket/MsgUpdateCurator", + toAmino: tx_1.MsgUpdateCurator.toAmino, + fromAmino: tx_1.MsgUpdateCurator.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: "regen.basket/MsgUpdateDateCriteria", + toAmino: tx_1.MsgUpdateDateCriteria.toAmino, + fromAmino: tx_1.MsgUpdateDateCriteria.fromAmino + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts new file mode 100644 index 00000000..c0c88568 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts @@ -0,0 +1,741 @@ +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreate { + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator: string; + /** + * name will be used to together with prefix to create a bank denom for this + * basket token. It can be between 3-8 alphanumeric characters, with the + * first character being alphabetic. + * + * The bank denom will be formed from name and credit type with the format + * `eco..` where prefix is the prefix of + * a standard SI unit derived from credit type precision. + */ + name: string; + /** + * description is a human-readable description of the basket denom that should + * be at most 256 characters. + */ + description: string; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when determining the prefix for basket denom, defining + * bank denom metadata, and converting credits to/from basket tokens. + */ + /** @deprecated */ + exponent: number; + /** + * disable_auto_retire allows auto-retirement to be disabled. + * The credits will be auto-retired if disable_auto_retire is + * false unless the credits were previously put into the basket by the + * address picking them from the basket, in which case they will remain + * tradable. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** allowed_classes are the credit classes allowed to be put in the basket */ + allowedClasses: string[]; + /** + * date_criteria is the date criteria for batches admitted to the basket. + * At most, only one of the date criteria fields can be set. + */ + dateCriteria?: DateCriteria; + /** + * fee is the basket creation fee. A fee is not required if no fee exists + * in the basket fee parameter. The fee must be greater than or equal to the + * fee param. The curator will be charged the amount specified in the fee + * parameter, even if a greater amount is provided. + * + * Note (Since Revision 1): Although this field supports a list of fees, the + * basket creator must provide no more than one fee (i.e. one Coin in a list + * of Coins). Providing more than one fee will fail basic message validation. + * This field will be updated to a single fee rather than a list of fees in + * the next version to reflect these requirements. + */ + fee: Coin[]; +} +export interface MsgCreateProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate"; + value: Uint8Array; +} +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreateAmino { + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator?: string; + /** + * name will be used to together with prefix to create a bank denom for this + * basket token. It can be between 3-8 alphanumeric characters, with the + * first character being alphabetic. + * + * The bank denom will be formed from name and credit type with the format + * `eco..` where prefix is the prefix of + * a standard SI unit derived from credit type precision. + */ + name?: string; + /** + * description is a human-readable description of the basket denom that should + * be at most 256 characters. + */ + description?: string; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when determining the prefix for basket denom, defining + * bank denom metadata, and converting credits to/from basket tokens. + */ + /** @deprecated */ + exponent?: number; + /** + * disable_auto_retire allows auto-retirement to be disabled. + * The credits will be auto-retired if disable_auto_retire is + * false unless the credits were previously put into the basket by the + * address picking them from the basket, in which case they will remain + * tradable. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** allowed_classes are the credit classes allowed to be put in the basket */ + allowed_classes?: string[]; + /** + * date_criteria is the date criteria for batches admitted to the basket. + * At most, only one of the date criteria fields can be set. + */ + date_criteria?: DateCriteriaAmino; + /** + * fee is the basket creation fee. A fee is not required if no fee exists + * in the basket fee parameter. The fee must be greater than or equal to the + * fee param. The curator will be charged the amount specified in the fee + * parameter, even if a greater amount is provided. + * + * Note (Since Revision 1): Although this field supports a list of fees, the + * basket creator must provide no more than one fee (i.e. one Coin in a list + * of Coins). Providing more than one fee will fail basic message validation. + * This field will be updated to a single fee rather than a list of fees in + * the next version to reflect these requirements. + */ + fee?: CoinAmino[]; +} +export interface MsgCreateAminoMsg { + type: "regen.basket/MsgCreate"; + value: MsgCreateAmino; +} +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreateSDKType { + curator: string; + name: string; + description: string; + /** @deprecated */ + exponent: number; + disable_auto_retire: boolean; + credit_type_abbrev: string; + allowed_classes: string[]; + date_criteria?: DateCriteriaSDKType; + fee: CoinSDKType[]; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponse { + /** basket_denom is the unique denomination ID of the newly created basket. */ + basketDenom: string; +} +export interface MsgCreateResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse"; + value: Uint8Array; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponseAmino { + /** basket_denom is the unique denomination ID of the newly created basket. */ + basket_denom?: string; +} +export interface MsgCreateResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; + value: MsgCreateResponseAmino; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponseSDKType { + basket_denom: string; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPut { + /** owner is the owner of credits being put into the basket. */ + owner: string; + /** basket_denom is the basket denom to add credits to. */ + basketDenom: string; + /** + * credits are credits to add to the basket. If they do not match the basket's + * admission criteria, the operation will fail. + */ + credits: BasketCredit[]; +} +export interface MsgPutProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut"; + value: Uint8Array; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPutAmino { + /** owner is the owner of credits being put into the basket. */ + owner?: string; + /** basket_denom is the basket denom to add credits to. */ + basket_denom?: string; + /** + * credits are credits to add to the basket. If they do not match the basket's + * admission criteria, the operation will fail. + */ + credits?: BasketCreditAmino[]; +} +export interface MsgPutAminoMsg { + type: "regen.basket/MsgPut"; + value: MsgPutAmino; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPutSDKType { + owner: string; + basket_denom: string; + credits: BasketCreditSDKType[]; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponse { + /** amount_received is the integer amount of basket tokens received. */ + amountReceived: string; +} +export interface MsgPutResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse"; + value: Uint8Array; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponseAmino { + /** amount_received is the integer amount of basket tokens received. */ + amount_received?: string; +} +export interface MsgPutResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgPutResponse"; + value: MsgPutResponseAmino; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponseSDKType { + amount_received: string; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTake { + /** owner is the owner of the basket tokens. */ + owner: string; + /** basket_denom is the basket bank denom to take credits from. */ + basketDenom: string; + /** amount is the integer number of basket tokens to convert into credits. */ + amount: string; + /** + * retirement_location is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Deprecated (Since Revision 1): This field will be removed in the next + * version in favor of retirement_jurisdiction. Only one of these need to be + * set and retirement_jurisdiction will be used if both are set. + */ + /** @deprecated */ + retirementLocation: string; + /** + * retire_on_take is a boolean that dictates whether the ecocredits + * received in exchange for the basket tokens will be received as + * retired or tradable credits. If the basket has disable_auto_retire set to + * false, retire_on_take MUST be set to true, and a retirement jurisdiction + * must be provided. + */ + retireOnTake: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Since Revision 1 + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface MsgTakeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake"; + value: Uint8Array; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTakeAmino { + /** owner is the owner of the basket tokens. */ + owner?: string; + /** basket_denom is the basket bank denom to take credits from. */ + basket_denom?: string; + /** amount is the integer number of basket tokens to convert into credits. */ + amount?: string; + /** + * retirement_location is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Deprecated (Since Revision 1): This field will be removed in the next + * version in favor of retirement_jurisdiction. Only one of these need to be + * set and retirement_jurisdiction will be used if both are set. + */ + /** @deprecated */ + retirement_location?: string; + /** + * retire_on_take is a boolean that dictates whether the ecocredits + * received in exchange for the basket tokens will be received as + * retired or tradable credits. If the basket has disable_auto_retire set to + * false, retire_on_take MUST be set to true, and a retirement jurisdiction + * must be provided. + */ + retire_on_take?: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Since Revision 1 + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface MsgTakeAminoMsg { + type: "regen.basket/MsgTake"; + value: MsgTakeAmino; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTakeSDKType { + owner: string; + basket_denom: string; + amount: string; + /** @deprecated */ + retirement_location: string; + retire_on_take: boolean; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponse { + /** credits are the credits taken out of the basket. */ + credits: BasketCredit[]; +} +export interface MsgTakeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse"; + value: Uint8Array; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponseAmino { + /** credits are the credits taken out of the basket. */ + credits?: BasketCreditAmino[]; +} +export interface MsgTakeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; + value: MsgTakeResponseAmino; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponseSDKType { + credits: BasketCreditSDKType[]; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFee { + /** authority is the address of the governance account. */ + authority: string; + /** + * fee is the basket creation fee. If not set, the basket creation fee will be + * removed and no fee will be required to create a basket. + */ + fee?: Coin; +} +export interface MsgUpdateBasketFeeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; + value: Uint8Array; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * fee is the basket creation fee. If not set, the basket creation fee will be + * removed and no fee will be required to create a basket. + */ + fee?: CoinAmino; +} +export interface MsgUpdateBasketFeeAminoMsg { + type: "regen.basket/MsgUpdateBasketFee"; + value: MsgUpdateBasketFeeAmino; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeSDKType { + authority: string; + fee?: CoinSDKType; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponse { +} +export interface MsgUpdateBasketFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; + value: Uint8Array; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponseAmino { +} +export interface MsgUpdateBasketFeeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; + value: MsgUpdateBasketFeeResponseAmino; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponseSDKType { +} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCurator { + /** curator is the address of the basket curator. */ + curator: string; + /** denom is the unique identifier of the basket. */ + denom: string; + /** + * new_curator is the address of the account that will become the + * new curator of the basket. + */ + newCurator: string; +} +export interface MsgUpdateCuratorProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator"; + value: Uint8Array; +} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorAmino { + /** curator is the address of the basket curator. */ + curator?: string; + /** denom is the unique identifier of the basket. */ + denom?: string; + /** + * new_curator is the address of the account that will become the + * new curator of the basket. + */ + new_curator?: string; +} +export interface MsgUpdateCuratorAminoMsg { + type: "regen.basket/MsgUpdateCurator"; + value: MsgUpdateCuratorAmino; +} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorSDKType { + curator: string; + denom: string; + new_curator: string; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponse { +} +export interface MsgUpdateCuratorResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; + value: Uint8Array; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponseAmino { +} +export interface MsgUpdateCuratorResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; + value: MsgUpdateCuratorResponseAmino; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponseSDKType { +} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteria { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the unique identifier of the basket. */ + denom: string; + /** + * new_date_criteria is the new date criteria for batches admitted to the + * basket. At most, only one of the date criteria fields can be set. + */ + newDateCriteria?: DateCriteria; +} +export interface MsgUpdateDateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; + value: Uint8Array; +} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the unique identifier of the basket. */ + denom?: string; + /** + * new_date_criteria is the new date criteria for batches admitted to the + * basket. At most, only one of the date criteria fields can be set. + */ + new_date_criteria?: DateCriteriaAmino; +} +export interface MsgUpdateDateCriteriaAminoMsg { + type: "regen.basket/MsgUpdateDateCriteria"; + value: MsgUpdateDateCriteriaAmino; +} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaSDKType { + authority: string; + denom: string; + new_date_criteria?: DateCriteriaSDKType; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponse { +} +export interface MsgUpdateDateCriteriaResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; + value: Uint8Array; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponseAmino { +} +export interface MsgUpdateDateCriteriaResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; + value: MsgUpdateDateCriteriaResponseAmino; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponseSDKType { +} +export declare const MsgCreate: { + typeUrl: string; + encode(message: MsgCreate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate; + fromPartial(object: Partial): MsgCreate; + fromAmino(object: MsgCreateAmino): MsgCreate; + toAmino(message: MsgCreate): MsgCreateAmino; + fromAminoMsg(object: MsgCreateAminoMsg): MsgCreate; + toAminoMsg(message: MsgCreate): MsgCreateAminoMsg; + fromProtoMsg(message: MsgCreateProtoMsg): MsgCreate; + toProto(message: MsgCreate): Uint8Array; + toProtoMsg(message: MsgCreate): MsgCreateProtoMsg; +}; +export declare const MsgCreateResponse: { + typeUrl: string; + encode(message: MsgCreateResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse; + fromPartial(object: Partial): MsgCreateResponse; + fromAmino(object: MsgCreateResponseAmino): MsgCreateResponse; + toAmino(message: MsgCreateResponse): MsgCreateResponseAmino; + fromAminoMsg(object: MsgCreateResponseAminoMsg): MsgCreateResponse; + fromProtoMsg(message: MsgCreateResponseProtoMsg): MsgCreateResponse; + toProto(message: MsgCreateResponse): Uint8Array; + toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg; +}; +export declare const MsgPut: { + typeUrl: string; + encode(message: MsgPut, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgPut; + fromPartial(object: Partial): MsgPut; + fromAmino(object: MsgPutAmino): MsgPut; + toAmino(message: MsgPut): MsgPutAmino; + fromAminoMsg(object: MsgPutAminoMsg): MsgPut; + toAminoMsg(message: MsgPut): MsgPutAminoMsg; + fromProtoMsg(message: MsgPutProtoMsg): MsgPut; + toProto(message: MsgPut): Uint8Array; + toProtoMsg(message: MsgPut): MsgPutProtoMsg; +}; +export declare const MsgPutResponse: { + typeUrl: string; + encode(message: MsgPutResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse; + fromPartial(object: Partial): MsgPutResponse; + fromAmino(object: MsgPutResponseAmino): MsgPutResponse; + toAmino(message: MsgPutResponse): MsgPutResponseAmino; + fromAminoMsg(object: MsgPutResponseAminoMsg): MsgPutResponse; + fromProtoMsg(message: MsgPutResponseProtoMsg): MsgPutResponse; + toProto(message: MsgPutResponse): Uint8Array; + toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg; +}; +export declare const MsgTake: { + typeUrl: string; + encode(message: MsgTake, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTake; + fromPartial(object: Partial): MsgTake; + fromAmino(object: MsgTakeAmino): MsgTake; + toAmino(message: MsgTake): MsgTakeAmino; + fromAminoMsg(object: MsgTakeAminoMsg): MsgTake; + toAminoMsg(message: MsgTake): MsgTakeAminoMsg; + fromProtoMsg(message: MsgTakeProtoMsg): MsgTake; + toProto(message: MsgTake): Uint8Array; + toProtoMsg(message: MsgTake): MsgTakeProtoMsg; +}; +export declare const MsgTakeResponse: { + typeUrl: string; + encode(message: MsgTakeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse; + fromPartial(object: Partial): MsgTakeResponse; + fromAmino(object: MsgTakeResponseAmino): MsgTakeResponse; + toAmino(message: MsgTakeResponse): MsgTakeResponseAmino; + fromAminoMsg(object: MsgTakeResponseAminoMsg): MsgTakeResponse; + fromProtoMsg(message: MsgTakeResponseProtoMsg): MsgTakeResponse; + toProto(message: MsgTakeResponse): Uint8Array; + toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg; +}; +export declare const MsgUpdateBasketFee: { + typeUrl: string; + encode(message: MsgUpdateBasketFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee; + fromPartial(object: Partial): MsgUpdateBasketFee; + fromAmino(object: MsgUpdateBasketFeeAmino): MsgUpdateBasketFee; + toAmino(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAmino; + fromAminoMsg(object: MsgUpdateBasketFeeAminoMsg): MsgUpdateBasketFee; + toAminoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAminoMsg; + fromProtoMsg(message: MsgUpdateBasketFeeProtoMsg): MsgUpdateBasketFee; + toProto(message: MsgUpdateBasketFee): Uint8Array; + toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg; +}; +export declare const MsgUpdateBasketFeeResponse: { + typeUrl: string; + encode(_: MsgUpdateBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse; + fromPartial(_: Partial): MsgUpdateBasketFeeResponse; + fromAmino(_: MsgUpdateBasketFeeResponseAmino): MsgUpdateBasketFeeResponse; + toAmino(_: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseAmino; + fromAminoMsg(object: MsgUpdateBasketFeeResponseAminoMsg): MsgUpdateBasketFeeResponse; + fromProtoMsg(message: MsgUpdateBasketFeeResponseProtoMsg): MsgUpdateBasketFeeResponse; + toProto(message: MsgUpdateBasketFeeResponse): Uint8Array; + toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg; +}; +export declare const MsgUpdateCurator: { + typeUrl: string; + encode(message: MsgUpdateCurator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator; + fromPartial(object: Partial): MsgUpdateCurator; + fromAmino(object: MsgUpdateCuratorAmino): MsgUpdateCurator; + toAmino(message: MsgUpdateCurator): MsgUpdateCuratorAmino; + fromAminoMsg(object: MsgUpdateCuratorAminoMsg): MsgUpdateCurator; + toAminoMsg(message: MsgUpdateCurator): MsgUpdateCuratorAminoMsg; + fromProtoMsg(message: MsgUpdateCuratorProtoMsg): MsgUpdateCurator; + toProto(message: MsgUpdateCurator): Uint8Array; + toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg; +}; +export declare const MsgUpdateCuratorResponse: { + typeUrl: string; + encode(_: MsgUpdateCuratorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse; + fromPartial(_: Partial): MsgUpdateCuratorResponse; + fromAmino(_: MsgUpdateCuratorResponseAmino): MsgUpdateCuratorResponse; + toAmino(_: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseAmino; + fromAminoMsg(object: MsgUpdateCuratorResponseAminoMsg): MsgUpdateCuratorResponse; + fromProtoMsg(message: MsgUpdateCuratorResponseProtoMsg): MsgUpdateCuratorResponse; + toProto(message: MsgUpdateCuratorResponse): Uint8Array; + toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg; +}; +export declare const MsgUpdateDateCriteria: { + typeUrl: string; + encode(message: MsgUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria; + fromPartial(object: Partial): MsgUpdateDateCriteria; + fromAmino(object: MsgUpdateDateCriteriaAmino): MsgUpdateDateCriteria; + toAmino(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAmino; + fromAminoMsg(object: MsgUpdateDateCriteriaAminoMsg): MsgUpdateDateCriteria; + toAminoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAminoMsg; + fromProtoMsg(message: MsgUpdateDateCriteriaProtoMsg): MsgUpdateDateCriteria; + toProto(message: MsgUpdateDateCriteria): Uint8Array; + toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg; +}; +export declare const MsgUpdateDateCriteriaResponse: { + typeUrl: string; + encode(_: MsgUpdateDateCriteriaResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse; + fromPartial(_: Partial): MsgUpdateDateCriteriaResponse; + fromAmino(_: MsgUpdateDateCriteriaResponseAmino): MsgUpdateDateCriteriaResponse; + toAmino(_: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseAmino; + fromAminoMsg(object: MsgUpdateDateCriteriaResponseAminoMsg): MsgUpdateDateCriteriaResponse; + fromProtoMsg(message: MsgUpdateDateCriteriaResponseProtoMsg): MsgUpdateDateCriteriaResponse; + toProto(message: MsgUpdateDateCriteriaResponse): Uint8Array; + toProtoMsg(message: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.js new file mode 100644 index 00000000..7cd2995e --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.js @@ -0,0 +1,1024 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgUpdateDateCriteriaResponse = exports.MsgUpdateDateCriteria = exports.MsgUpdateCuratorResponse = exports.MsgUpdateCurator = exports.MsgUpdateBasketFeeResponse = exports.MsgUpdateBasketFee = exports.MsgTakeResponse = exports.MsgTake = exports.MsgPutResponse = exports.MsgPut = exports.MsgCreateResponse = exports.MsgCreate = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../../binary"); +function createBaseMsgCreate() { + return { + curator: "", + name: "", + description: "", + exponent: 0, + disableAutoRetire: false, + creditTypeAbbrev: "", + allowedClasses: [], + dateCriteria: undefined, + fee: [] + }; +} +exports.MsgCreate = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.description !== "") { + writer.uint32(26).string(message.description); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(50).string(message.creditTypeAbbrev); + } + for (const v of message.allowedClasses) { + writer.uint32(58).string(v); + } + if (message.dateCriteria !== undefined) { + types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.fee) { + coin_1.Coin.encode(v, writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.creditTypeAbbrev = reader.string(); + break; + case 7: + message.allowedClasses.push(reader.string()); + break; + case 8: + message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); + break; + case 9: + message.fee.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreate(); + message.curator = object.curator ?? ""; + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.exponent = object.exponent ?? 0; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.allowedClasses = object.allowedClasses?.map(e => e) || []; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.fee = object.fee?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreate(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + message.allowedClasses = object.allowed_classes?.map(e => e) || []; + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); + } + message.fee = object.fee?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + if (message.allowedClasses) { + obj.allowed_classes = message.allowedClasses.map(e => e); + } + else { + obj.allowed_classes = message.allowedClasses; + } + obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; + if (message.fee) { + obj.fee = message.fee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.fee = message.fee; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreate.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgCreate", + value: exports.MsgCreate.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreate.decode(message.value); + }, + toProto(message) { + return exports.MsgCreate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: exports.MsgCreate.encode(message).finish() + }; + } +}; +function createBaseMsgCreateResponse() { + return { + basketDenom: "" + }; +} +exports.MsgCreateResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateResponse(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateResponse(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + value: exports.MsgCreateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgPut() { + return { + owner: "", + basketDenom: "", + credits: [] + }; +} +exports.MsgPut = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgPut.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgPut", + value: exports.MsgPut.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgPut.decode(message.value); + }, + toProto(message) { + return exports.MsgPut.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: exports.MsgPut.encode(message).finish() + }; + } +}; +function createBaseMsgPutResponse() { + return { + amountReceived: "" + }; +} +exports.MsgPutResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.amountReceived !== "") { + writer.uint32(10).string(message.amountReceived); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPutResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amountReceived = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgPutResponse(); + message.amountReceived = object.amountReceived ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgPutResponse(); + if (object.amount_received !== undefined && object.amount_received !== null) { + message.amountReceived = object.amount_received; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgPutResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgPutResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgPutResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + value: exports.MsgPutResponse.encode(message).finish() + }; + } +}; +function createBaseMsgTake() { + return { + owner: "", + basketDenom: "", + amount: "", + retirementLocation: "", + retireOnTake: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +exports.MsgTake = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + if (message.retireOnTake === true) { + writer.uint32(40).bool(message.retireOnTake); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + case 5: + message.retireOnTake = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.amount = object.amount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + message.retireOnTake = object.retireOnTake ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + if (object.retire_on_take !== undefined && object.retire_on_take !== null) { + message.retireOnTake = object.retire_on_take; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgTake.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgTake", + value: exports.MsgTake.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgTake.decode(message.value); + }, + toProto(message) { + return exports.MsgTake.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: exports.MsgTake.encode(message).finish() + }; + } +}; +function createBaseMsgTakeResponse() { + return { + credits: [] + }; +} +exports.MsgTakeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.credits) { + types_1.BasketCredit.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTakeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgTakeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgTakeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgTakeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + value: exports.MsgTakeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFee() { + return { + authority: "", + fee: undefined + }; +} +exports.MsgUpdateBasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateBasketFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateBasketFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateBasketFee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateBasketFee", + value: exports.MsgUpdateBasketFee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateBasketFee.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateBasketFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: exports.MsgUpdateBasketFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFeeResponse() { + return {}; +} +exports.MsgUpdateBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateBasketFeeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + value: exports.MsgUpdateBasketFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCurator() { + return { + curator: "", + denom: "", + newCurator: "" + }; +} +exports.MsgUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newCurator !== "") { + writer.uint32(26).string(message.newCurator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 3: + message.newCurator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateCurator(); + message.curator = object.curator ?? ""; + message.denom = object.denom ?? ""; + message.newCurator = object.newCurator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateCurator(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_curator !== undefined && object.new_curator !== null) { + message.newCurator = object.new_curator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateCurator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateCurator", + value: exports.MsgUpdateCurator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateCurator.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: exports.MsgUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCuratorResponse() { + return {}; +} +exports.MsgUpdateCuratorResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCuratorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateCuratorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateCuratorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateCuratorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + value: exports.MsgUpdateCuratorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteria() { + return { + authority: "", + denom: "", + newDateCriteria: undefined + }; +} +exports.MsgUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newDateCriteria !== undefined) { + types_1.DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 8: + message.newDateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateDateCriteria(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? types_1.DateCriteria.fromPartial(object.newDateCriteria) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateDateCriteria(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { + message.newDateCriteria = types_1.DateCriteria.fromAmino(object.new_date_criteria); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_date_criteria = message.newDateCriteria ? types_1.DateCriteria.toAmino(message.newDateCriteria) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateDateCriteria.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.basket/MsgUpdateDateCriteria", + value: exports.MsgUpdateDateCriteria.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateDateCriteria.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: exports.MsgUpdateDateCriteria.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteriaResponse() { + return {}; +} +exports.MsgUpdateDateCriteriaResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteriaResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateDateCriteriaResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateDateCriteriaResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateDateCriteriaResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + value: exports.MsgUpdateDateCriteriaResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts new file mode 100644 index 00000000..8c3e2fb1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts @@ -0,0 +1,84 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + create(value: MsgCreate): { + typeUrl: string; + value: Uint8Array; + }; + put(value: MsgPut): { + typeUrl: string; + value: Uint8Array; + }; + take(value: MsgTake): { + typeUrl: string; + value: Uint8Array; + }; + updateBasketFee(value: MsgUpdateBasketFee): { + typeUrl: string; + value: Uint8Array; + }; + updateCurator(value: MsgUpdateCurator): { + typeUrl: string; + value: Uint8Array; + }; + updateDateCriteria(value: MsgUpdateDateCriteria): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + create(value: MsgCreate): { + typeUrl: string; + value: MsgCreate; + }; + put(value: MsgPut): { + typeUrl: string; + value: MsgPut; + }; + take(value: MsgTake): { + typeUrl: string; + value: MsgTake; + }; + updateBasketFee(value: MsgUpdateBasketFee): { + typeUrl: string; + value: MsgUpdateBasketFee; + }; + updateCurator(value: MsgUpdateCurator): { + typeUrl: string; + value: MsgUpdateCurator; + }; + updateDateCriteria(value: MsgUpdateDateCriteria): { + typeUrl: string; + value: MsgUpdateDateCriteria; + }; + }; + fromPartial: { + create(value: MsgCreate): { + typeUrl: string; + value: MsgCreate; + }; + put(value: MsgPut): { + typeUrl: string; + value: MsgPut; + }; + take(value: MsgTake): { + typeUrl: string; + value: MsgTake; + }; + updateBasketFee(value: MsgUpdateBasketFee): { + typeUrl: string; + value: MsgUpdateBasketFee; + }; + updateCurator(value: MsgUpdateCurator): { + typeUrl: string; + value: MsgUpdateCurator; + }; + updateDateCriteria(value: MsgUpdateDateCriteria): { + typeUrl: string; + value: MsgUpdateDateCriteria; + }; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js new file mode 100644 index 00000000..f3843a6f --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js @@ -0,0 +1,127 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.ecocredit.basket.v1.MsgCreate", tx_1.MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", tx_1.MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", tx_1.MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", tx_1.MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", tx_1.MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", tx_1.MsgUpdateDateCriteria]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: tx_1.MsgCreate.encode(value).finish() + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: tx_1.MsgPut.encode(value).finish() + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: tx_1.MsgTake.encode(value).finish() + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: tx_1.MsgUpdateBasketFee.encode(value).finish() + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: tx_1.MsgUpdateCurator.encode(value).finish() + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: tx_1.MsgUpdateDateCriteria.encode(value).finish() + }; + } + }, + withTypeUrl: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value + }; + } + }, + fromPartial: { + create(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: tx_1.MsgCreate.fromPartial(value) + }; + }, + put(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: tx_1.MsgPut.fromPartial(value) + }; + }, + take(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: tx_1.MsgTake.fromPartial(value) + }; + }, + updateBasketFee(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: tx_1.MsgUpdateBasketFee.fromPartial(value) + }; + }, + updateCurator(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: tx_1.MsgUpdateCurator.fromPartial(value) + }; + }, + updateDateCriteria(value) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: tx_1.MsgUpdateDateCriteria.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..9a754117 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts @@ -0,0 +1,74 @@ +import { Rpc } from "../../../../helpers"; +import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; +/** Msg is the regen.ecocredit.basket.v1 Msg service. */ +export interface Msg { + /** + * Create creates a basket that can hold different types of ecocredits that + * meet the basket's criteria. Upon depositing ecocredits into the basket, + * basket tokens are minted and sent to depositor using the Cosmos SDK Bank + * module. This allows basket tokens to be utilized within IBC. Basket tokens + * are fully fungible with other basket tokens from the same basket. The + * basket token denom is derived from the basket name, credit type + * abbreviation, and credit type precision (i.e. basket name "foo", credit + * type exponent 6, and credit type abbreviation "C" generates the denom + * eco.uC.foo). Baskets can limit credit acceptance criteria based on a + * combination of credit type, credit classes, and credit batch start date. + * Credits can be taken from the basket in exchange for basket tokens. Taken + * credits will be immediately retired, unless disable_auto_retire is set to + * true. When set to true, credits may be received in either a tradable or + * retired state, depending on the taker's request. If the basket fee + * governance parameter is set, a fee of equal or greater value must be + * provided in the request. Only the amount specified in the fee parameter + * will be charged, even if a greater value fee is provided. Fees from + * creating a basket are burned. + */ + create(request: MsgCreate): Promise; + /** + * Put deposits credits into the basket from the holder's tradable balance in + * exchange for basket tokens. The amount of tokens received is calculated by + * the following formula: sum(credits_deposited) * 10^credit_type_exponent. + * The credits being deposited MUST adhere to the criteria of the basket. + */ + put(request: MsgPut): Promise; + /** + * Take exchanges basket tokens for credits from the specified basket. Credits + * are taken deterministically, ordered by oldest batch start date to the most + * recent batch start date. If the basket has disable_auto_retire set to + * false, both retirement_jurisdiction and retire_on_take must be set, and the + * taken credits will be retired immediately upon receipt. Otherwise, credits + * may be received as tradable or retired, based on the request. + */ + take(request: MsgTake): Promise; + /** + * UpdateBasketFee is a governance method that allows for updating the basket + * creation fee. If not set, the basket creation fee will be removed and no + * fee will be required to create a basket. + * + * Since Revision 2 + */ + updateBasketFee(request: MsgUpdateBasketFee): Promise; + /** + * UpdateCurator updates basket curator. + * + * Since Revision 2 + */ + updateCurator(request: MsgUpdateCurator): Promise; + /** + * UpdateDateCriteria is a governance method that allows for updating the date + * criteria of a basket. Updating basket date criteria could affect the value + * of basket tokens and therefore requires a network-wide governance process. + * + * Since Revision 3 + */ + updateDateCriteria(request: MsgUpdateDateCriteria): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + create(request: MsgCreate): Promise; + put(request: MsgPut): Promise; + take(request: MsgTake): Promise; + updateBasketFee(request: MsgUpdateBasketFee): Promise; + updateCurator(request: MsgUpdateCurator): Promise; + updateDateCriteria(request: MsgUpdateDateCriteria): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js new file mode 100644 index 00000000..3c7e5c57 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.create = this.create.bind(this); + this.put = this.put.bind(this); + this.take = this.take.bind(this); + this.updateBasketFee = this.updateBasketFee.bind(this); + this.updateCurator = this.updateCurator.bind(this); + this.updateDateCriteria = this.updateDateCriteria.bind(this); + } + create(request) { + const data = tx_1.MsgCreate.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); + return promise.then(data => tx_1.MsgCreateResponse.decode(new binary_1.BinaryReader(data))); + } + put(request) { + const data = tx_1.MsgPut.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); + return promise.then(data => tx_1.MsgPutResponse.decode(new binary_1.BinaryReader(data))); + } + take(request) { + const data = tx_1.MsgTake.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); + return promise.then(data => tx_1.MsgTakeResponse.decode(new binary_1.BinaryReader(data))); + } + updateBasketFee(request) { + const data = tx_1.MsgUpdateBasketFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); + return promise.then(data => tx_1.MsgUpdateBasketFeeResponse.decode(new binary_1.BinaryReader(data))); + } + updateCurator(request) { + const data = tx_1.MsgUpdateCurator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); + return promise.then(data => tx_1.MsgUpdateCuratorResponse.decode(new binary_1.BinaryReader(data))); + } + updateDateCriteria(request) { + const data = tx_1.MsgUpdateDateCriteria.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); + return promise.then(data => tx_1.MsgUpdateDateCriteriaResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts new file mode 100644 index 00000000..9302ed9d --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts @@ -0,0 +1,142 @@ +import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCredit { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being put into or taken out of the basket. + * Decimal values are acceptable within the precision of the corresponding + * credit type for this batch. + */ + amount: string; +} +export interface BasketCreditProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit"; + value: Uint8Array; +} +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCreditAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being put into or taken out of the basket. + * Decimal values are acceptable within the precision of the corresponding + * credit type for this batch. + */ + amount?: string; +} +export interface BasketCreditAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketCredit"; + value: BasketCreditAmino; +} +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCreditSDKType { + batch_denom: string; + amount: string; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteria { + /** + * min_start_date (optional) is the earliest start date for batches of credits + * allowed into the basket. At most only one of `start_date_window`, + * `min_start_date`, and `years_in_the_past` can be set for a basket. + */ + minStartDate?: Date; + /** + * start_date_window (optional) is a duration of time measured into the past + * which sets a cutoff for batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date is + * before `block_timestamp - start_date_window` will not be allowed into the + * basket. At most only one of `start_date_window`, `min_start_date`, and + * `years_in_the_past` can be set for a basket. + */ + startDateWindow?: Duration; + /** + * years_in_the_past (optional) is the number of years into the past which + * sets a cutoff for the batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date year + * is less than `block_timestamp_year - years_in_the_past` will not be allowed + * into the basket. At most only one of `start_date_window`, `min_start_date`, + * and `years_in_the_past` can be set for a basket. + * + * Since Revision 1 + */ + yearsInThePast: number; +} +export interface DateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria"; + value: Uint8Array; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteriaAmino { + /** + * min_start_date (optional) is the earliest start date for batches of credits + * allowed into the basket. At most only one of `start_date_window`, + * `min_start_date`, and `years_in_the_past` can be set for a basket. + */ + min_start_date?: string; + /** + * start_date_window (optional) is a duration of time measured into the past + * which sets a cutoff for batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date is + * before `block_timestamp - start_date_window` will not be allowed into the + * basket. At most only one of `start_date_window`, `min_start_date`, and + * `years_in_the_past` can be set for a basket. + */ + start_date_window?: DurationAmino; + /** + * years_in_the_past (optional) is the number of years into the past which + * sets a cutoff for the batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date year + * is less than `block_timestamp_year - years_in_the_past` will not be allowed + * into the basket. At most only one of `start_date_window`, `min_start_date`, + * and `years_in_the_past` can be set for a basket. + * + * Since Revision 1 + */ + years_in_the_past?: number; +} +export interface DateCriteriaAminoMsg { + type: "/regen.ecocredit.basket.v1.DateCriteria"; + value: DateCriteriaAmino; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteriaSDKType { + min_start_date?: Date; + start_date_window?: DurationSDKType; + years_in_the_past: number; +} +export declare const BasketCredit: { + typeUrl: string; + encode(message: BasketCredit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit; + fromPartial(object: Partial): BasketCredit; + fromAmino(object: BasketCreditAmino): BasketCredit; + toAmino(message: BasketCredit): BasketCreditAmino; + fromAminoMsg(object: BasketCreditAminoMsg): BasketCredit; + fromProtoMsg(message: BasketCreditProtoMsg): BasketCredit; + toProto(message: BasketCredit): Uint8Array; + toProtoMsg(message: BasketCredit): BasketCreditProtoMsg; +}; +export declare const DateCriteria: { + typeUrl: string; + encode(message: DateCriteria, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria; + fromPartial(object: Partial): DateCriteria; + fromAmino(object: DateCriteriaAmino): DateCriteria; + toAmino(message: DateCriteria): DateCriteriaAmino; + fromAminoMsg(object: DateCriteriaAminoMsg): DateCriteria; + fromProtoMsg(message: DateCriteriaProtoMsg): DateCriteria; + toProto(message: DateCriteria): Uint8Array; + toProtoMsg(message: DateCriteria): DateCriteriaProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/types.js b/packages/api/dist/regen/ecocredit/basket/v1/types.js new file mode 100644 index 00000000..79a965bc --- /dev/null +++ b/packages/api/dist/regen/ecocredit/basket/v1/types.js @@ -0,0 +1,170 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DateCriteria = exports.BasketCredit = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const duration_1 = require("../../../../google/protobuf/duration"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseBasketCredit() { + return { + batchDenom: "", + amount: "" + }; +} +exports.BasketCredit = { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketCredit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBasketCredit(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBasketCredit(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.BasketCredit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BasketCredit.decode(message.value); + }, + toProto(message) { + return exports.BasketCredit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + value: exports.BasketCredit.encode(message).finish() + }; + } +}; +function createBaseDateCriteria() { + return { + minStartDate: undefined, + startDateWindow: undefined, + yearsInThePast: 0 + }; +} +exports.DateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.minStartDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(10).fork()).ldelim(); + } + if (message.startDateWindow !== undefined) { + duration_1.Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); + } + if (message.yearsInThePast !== 0) { + writer.uint32(24).uint32(message.yearsInThePast); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.startDateWindow = duration_1.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.yearsInThePast = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDateCriteria(); + message.minStartDate = object.minStartDate ?? undefined; + message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? duration_1.Duration.fromPartial(object.startDateWindow) : undefined; + message.yearsInThePast = object.yearsInThePast ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseDateCriteria(); + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); + } + if (object.start_date_window !== undefined && object.start_date_window !== null) { + message.startDateWindow = duration_1.Duration.fromAmino(object.start_date_window); + } + if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { + message.yearsInThePast = object.years_in_the_past; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; + obj.start_date_window = message.startDateWindow ? duration_1.Duration.toAmino(message.startDateWindow) : undefined; + obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; + return obj; + }, + fromAminoMsg(object) { + return exports.DateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DateCriteria.decode(message.value); + }, + toProto(message) { + return exports.DateCriteria.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + value: exports.DateCriteria.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts new file mode 100644 index 00000000..5d1129ac --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts @@ -0,0 +1,253 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSell { + /** sell_order_id is the unique identifier of the sell order that was created. */ + sellOrderId: bigint; +} +export interface EventSellProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; + value: Uint8Array; +} +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSellAmino { + /** sell_order_id is the unique identifier of the sell order that was created. */ + sell_order_id?: string; +} +export interface EventSellAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventSell"; + value: EventSellAmino; +} +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSellSDKType { + sell_order_id: bigint; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirect { + /** + * sell_order_id is the unique identifier of the sell order that credits were + * purchased from. + */ + sellOrderId: bigint; +} +export interface EventBuyDirectProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; + value: Uint8Array; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirectAmino { + /** + * sell_order_id is the unique identifier of the sell order that credits were + * purchased from. + */ + sell_order_id?: string; +} +export interface EventBuyDirectAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; + value: EventBuyDirectAmino; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirectSDKType { + sell_order_id: bigint; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrder { + /** sell_order_id is the unique identifier of the sell order that was updated. */ + sellOrderId: bigint; +} +export interface EventUpdateSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; + value: Uint8Array; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrderAmino { + /** sell_order_id is the unique identifier of the sell order that was updated. */ + sell_order_id?: string; +} +export interface EventUpdateSellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; + value: EventUpdateSellOrderAmino; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrderSDKType { + sell_order_id: bigint; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrder { + /** + * sell_order_id is the unique identifier of the sell order that was + * cancelled. + */ + sellOrderId: bigint; +} +export interface EventCancelSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; + value: Uint8Array; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrderAmino { + /** + * sell_order_id is the unique identifier of the sell order that was + * cancelled. + */ + sell_order_id?: string; +} +export interface EventCancelSellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; + value: EventCancelSellOrderAmino; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrderSDKType { + sell_order_id: bigint; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenom { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of + * allowed denoms for use in the marketplace. + */ + denom: string; +} +export interface EventAllowDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; + value: Uint8Array; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenomAmino { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of + * allowed denoms for use in the marketplace. + */ + denom?: string; +} +export interface EventAllowDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; + value: EventAllowDenomAmino; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenomSDKType { + denom: string; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenom { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of + * allowed denoms for use in the marketplace. + */ + denom: string; +} +export interface EventRemoveAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; + value: Uint8Array; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenomAmino { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of + * allowed denoms for use in the marketplace. + */ + denom?: string; +} +export interface EventRemoveAllowedDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; + value: EventRemoveAllowedDenomAmino; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenomSDKType { + denom: string; +} +export declare const EventSell: { + typeUrl: string; + encode(message: EventSell, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSell; + fromPartial(object: Partial): EventSell; + fromAmino(object: EventSellAmino): EventSell; + toAmino(message: EventSell): EventSellAmino; + fromAminoMsg(object: EventSellAminoMsg): EventSell; + fromProtoMsg(message: EventSellProtoMsg): EventSell; + toProto(message: EventSell): Uint8Array; + toProtoMsg(message: EventSell): EventSellProtoMsg; +}; +export declare const EventBuyDirect: { + typeUrl: string; + encode(message: EventBuyDirect, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect; + fromPartial(object: Partial): EventBuyDirect; + fromAmino(object: EventBuyDirectAmino): EventBuyDirect; + toAmino(message: EventBuyDirect): EventBuyDirectAmino; + fromAminoMsg(object: EventBuyDirectAminoMsg): EventBuyDirect; + fromProtoMsg(message: EventBuyDirectProtoMsg): EventBuyDirect; + toProto(message: EventBuyDirect): Uint8Array; + toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg; +}; +export declare const EventUpdateSellOrder: { + typeUrl: string; + encode(message: EventUpdateSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder; + fromPartial(object: Partial): EventUpdateSellOrder; + fromAmino(object: EventUpdateSellOrderAmino): EventUpdateSellOrder; + toAmino(message: EventUpdateSellOrder): EventUpdateSellOrderAmino; + fromAminoMsg(object: EventUpdateSellOrderAminoMsg): EventUpdateSellOrder; + fromProtoMsg(message: EventUpdateSellOrderProtoMsg): EventUpdateSellOrder; + toProto(message: EventUpdateSellOrder): Uint8Array; + toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg; +}; +export declare const EventCancelSellOrder: { + typeUrl: string; + encode(message: EventCancelSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder; + fromPartial(object: Partial): EventCancelSellOrder; + fromAmino(object: EventCancelSellOrderAmino): EventCancelSellOrder; + toAmino(message: EventCancelSellOrder): EventCancelSellOrderAmino; + fromAminoMsg(object: EventCancelSellOrderAminoMsg): EventCancelSellOrder; + fromProtoMsg(message: EventCancelSellOrderProtoMsg): EventCancelSellOrder; + toProto(message: EventCancelSellOrder): Uint8Array; + toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg; +}; +export declare const EventAllowDenom: { + typeUrl: string; + encode(message: EventAllowDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom; + fromPartial(object: Partial): EventAllowDenom; + fromAmino(object: EventAllowDenomAmino): EventAllowDenom; + toAmino(message: EventAllowDenom): EventAllowDenomAmino; + fromAminoMsg(object: EventAllowDenomAminoMsg): EventAllowDenom; + fromProtoMsg(message: EventAllowDenomProtoMsg): EventAllowDenom; + toProto(message: EventAllowDenom): Uint8Array; + toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg; +}; +export declare const EventRemoveAllowedDenom: { + typeUrl: string; + encode(message: EventRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom; + fromPartial(object: Partial): EventRemoveAllowedDenom; + fromAmino(object: EventRemoveAllowedDenomAmino): EventRemoveAllowedDenom; + toAmino(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomAmino; + fromAminoMsg(object: EventRemoveAllowedDenomAminoMsg): EventRemoveAllowedDenom; + fromProtoMsg(message: EventRemoveAllowedDenomProtoMsg): EventRemoveAllowedDenom; + toProto(message: EventRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/events.js b/packages/api/dist/regen/ecocredit/marketplace/v1/events.js new file mode 100644 index 00000000..abefcf69 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/events.js @@ -0,0 +1,383 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventRemoveAllowedDenom = exports.EventAllowDenom = exports.EventCancelSellOrder = exports.EventUpdateSellOrder = exports.EventBuyDirect = exports.EventSell = void 0; +//@ts-nocheck +const binary_1 = require("../../../../binary"); +function createBaseEventSell() { + return { + sellOrderId: BigInt(0) + }; +} +exports.EventSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSell(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventSell(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventSell.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventSell.decode(message.value); + }, + toProto(message) { + return exports.EventSell.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + value: exports.EventSell.encode(message).finish() + }; + } +}; +function createBaseEventBuyDirect() { + return { + sellOrderId: BigInt(0) + }; +} +exports.EventBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBuyDirect(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventBuyDirect(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventBuyDirect.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventBuyDirect.decode(message.value); + }, + toProto(message) { + return exports.EventBuyDirect.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + value: exports.EventBuyDirect.encode(message).finish() + }; + } +}; +function createBaseEventUpdateSellOrder() { + return { + sellOrderId: BigInt(0) + }; +} +exports.EventUpdateSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateSellOrder.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + value: exports.EventUpdateSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventCancelSellOrder() { + return { + sellOrderId: BigInt(0) + }; +} +exports.EventCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancelSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEventCancelSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCancelSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCancelSellOrder.decode(message.value); + }, + toProto(message) { + return exports.EventCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + value: exports.EventCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventAllowDenom() { + return { + denom: "" + }; +} +exports.EventAllowDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAllowDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAllowDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAllowDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventAllowDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventAllowDenom.decode(message.value); + }, + toProto(message) { + return exports.EventAllowDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + value: exports.EventAllowDenom.encode(message).finish() + }; + } +}; +function createBaseEventRemoveAllowedDenom() { + return { + denom: "" + }; +} +exports.EventRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRemoveAllowedDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRemoveAllowedDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventRemoveAllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventRemoveAllowedDenom.decode(message.value); + }, + toProto(message) { + return exports.EventRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + value: exports.EventRemoveAllowedDenom.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts new file mode 100644 index 00000000..fd86969e --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts @@ -0,0 +1,506 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequest { + /** sell_order_id is the id of the requested sell order. */ + sellOrderId: bigint; +} +export interface QuerySellOrderRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; + value: Uint8Array; +} +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequestAmino { + /** sell_order_id is the id of the requested sell order. */ + sell_order_id?: string; +} +export interface QuerySellOrderRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; + value: QuerySellOrderRequestAmino; +} +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequestSDKType { + sell_order_id: bigint; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponse { + /** sell_order contains all information related to a sell order. */ + sellOrder?: SellOrderInfo; +} +export interface QuerySellOrderResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; + value: Uint8Array; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponseAmino { + /** sell_order contains all information related to a sell order. */ + sell_order?: SellOrderInfoAmino; +} +export interface QuerySellOrderResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; + value: QuerySellOrderResponseAmino; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponseSDKType { + sell_order?: SellOrderInfoSDKType; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; + value: Uint8Array; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; + value: QuerySellOrdersRequestAmino; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; + value: Uint8Array; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; + value: QuerySellOrdersResponseAmino; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequest { + /** batch_denom is an ecocredit denom */ + batchDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersByBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; + value: Uint8Array; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequestAmino { + /** batch_denom is an ecocredit denom */ + batch_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersByBatchRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; + value: QuerySellOrdersByBatchRequestAmino; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequestSDKType { + batch_denom: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersByBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; + value: Uint8Array; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersByBatchResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; + value: QuerySellOrdersByBatchResponseAmino; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequest { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersBySellerRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; + value: Uint8Array; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequestAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersBySellerRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; + value: QuerySellOrdersBySellerRequestAmino; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequestSDKType { + seller: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersBySellerResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; + value: Uint8Array; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersBySellerResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; + value: QuerySellOrdersBySellerResponseAmino; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowedDenomsRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; + value: Uint8Array; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowedDenomsRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; + value: QueryAllowedDenomsRequestAmino; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponse { + /** + * allowed_denoms is a list of coin denoms allowed to use in the ask price of + * sell orders. + */ + allowedDenoms: AllowedDenom[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowedDenomsResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; + value: Uint8Array; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponseAmino { + /** + * allowed_denoms is a list of coin denoms allowed to use in the ask price of + * sell orders. + */ + allowed_denoms?: AllowedDenomAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowedDenomsResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; + value: QueryAllowedDenomsResponseAmino; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponseSDKType { + allowed_denoms: AllowedDenomSDKType[]; + pagination?: PageResponseSDKType; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfo { + /** id is the unique ID of sell order. */ + id: bigint; + /** seller is the address of the account that is selling credits. */ + seller: string; + /** batch_denom is denom of the credit batch being sold. */ + batchDenom: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity: string; + /** ask_denom is the denom used in the ask price of the sell order. */ + askDenom: string; + /** + * ask_amount is the amount that the seller is asking for each credit unit of + * the batch. Each credit unit of the batch will be sold for at least the + * ask_amount. + */ + askAmount: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; +} +export interface SellOrderInfoProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; + value: Uint8Array; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfoAmino { + /** id is the unique ID of sell order. */ + id?: string; + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** batch_denom is denom of the credit batch being sold. */ + batch_denom?: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity?: string; + /** ask_denom is the denom used in the ask price of the sell order. */ + ask_denom?: string; + /** + * ask_amount is the amount that the seller is asking for each credit unit of + * the batch. Each credit unit of the batch will be sold for at least the + * ask_amount. + */ + ask_amount?: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; +} +export interface SellOrderInfoAminoMsg { + type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; + value: SellOrderInfoAmino; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfoSDKType { + id: bigint; + seller: string; + batch_denom: string; + quantity: string; + ask_denom: string; + ask_amount: string; + disable_auto_retire: boolean; + expiration?: Date; +} +export declare const QuerySellOrderRequest: { + typeUrl: string; + encode(message: QuerySellOrderRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest; + fromPartial(object: Partial): QuerySellOrderRequest; + fromAmino(object: QuerySellOrderRequestAmino): QuerySellOrderRequest; + toAmino(message: QuerySellOrderRequest): QuerySellOrderRequestAmino; + fromAminoMsg(object: QuerySellOrderRequestAminoMsg): QuerySellOrderRequest; + fromProtoMsg(message: QuerySellOrderRequestProtoMsg): QuerySellOrderRequest; + toProto(message: QuerySellOrderRequest): Uint8Array; + toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg; +}; +export declare const QuerySellOrderResponse: { + typeUrl: string; + encode(message: QuerySellOrderResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse; + fromPartial(object: Partial): QuerySellOrderResponse; + fromAmino(object: QuerySellOrderResponseAmino): QuerySellOrderResponse; + toAmino(message: QuerySellOrderResponse): QuerySellOrderResponseAmino; + fromAminoMsg(object: QuerySellOrderResponseAminoMsg): QuerySellOrderResponse; + fromProtoMsg(message: QuerySellOrderResponseProtoMsg): QuerySellOrderResponse; + toProto(message: QuerySellOrderResponse): Uint8Array; + toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg; +}; +export declare const QuerySellOrdersRequest: { + typeUrl: string; + encode(message: QuerySellOrdersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest; + fromPartial(object: Partial): QuerySellOrdersRequest; + fromAmino(object: QuerySellOrdersRequestAmino): QuerySellOrdersRequest; + toAmino(message: QuerySellOrdersRequest): QuerySellOrdersRequestAmino; + fromAminoMsg(object: QuerySellOrdersRequestAminoMsg): QuerySellOrdersRequest; + fromProtoMsg(message: QuerySellOrdersRequestProtoMsg): QuerySellOrdersRequest; + toProto(message: QuerySellOrdersRequest): Uint8Array; + toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg; +}; +export declare const QuerySellOrdersResponse: { + typeUrl: string; + encode(message: QuerySellOrdersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse; + fromPartial(object: Partial): QuerySellOrdersResponse; + fromAmino(object: QuerySellOrdersResponseAmino): QuerySellOrdersResponse; + toAmino(message: QuerySellOrdersResponse): QuerySellOrdersResponseAmino; + fromAminoMsg(object: QuerySellOrdersResponseAminoMsg): QuerySellOrdersResponse; + fromProtoMsg(message: QuerySellOrdersResponseProtoMsg): QuerySellOrdersResponse; + toProto(message: QuerySellOrdersResponse): Uint8Array; + toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg; +}; +export declare const QuerySellOrdersByBatchRequest: { + typeUrl: string; + encode(message: QuerySellOrdersByBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest; + fromPartial(object: Partial): QuerySellOrdersByBatchRequest; + fromAmino(object: QuerySellOrdersByBatchRequestAmino): QuerySellOrdersByBatchRequest; + toAmino(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestAmino; + fromAminoMsg(object: QuerySellOrdersByBatchRequestAminoMsg): QuerySellOrdersByBatchRequest; + fromProtoMsg(message: QuerySellOrdersByBatchRequestProtoMsg): QuerySellOrdersByBatchRequest; + toProto(message: QuerySellOrdersByBatchRequest): Uint8Array; + toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg; +}; +export declare const QuerySellOrdersByBatchResponse: { + typeUrl: string; + encode(message: QuerySellOrdersByBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse; + fromPartial(object: Partial): QuerySellOrdersByBatchResponse; + fromAmino(object: QuerySellOrdersByBatchResponseAmino): QuerySellOrdersByBatchResponse; + toAmino(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseAmino; + fromAminoMsg(object: QuerySellOrdersByBatchResponseAminoMsg): QuerySellOrdersByBatchResponse; + fromProtoMsg(message: QuerySellOrdersByBatchResponseProtoMsg): QuerySellOrdersByBatchResponse; + toProto(message: QuerySellOrdersByBatchResponse): Uint8Array; + toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg; +}; +export declare const QuerySellOrdersBySellerRequest: { + typeUrl: string; + encode(message: QuerySellOrdersBySellerRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest; + fromPartial(object: Partial): QuerySellOrdersBySellerRequest; + fromAmino(object: QuerySellOrdersBySellerRequestAmino): QuerySellOrdersBySellerRequest; + toAmino(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestAmino; + fromAminoMsg(object: QuerySellOrdersBySellerRequestAminoMsg): QuerySellOrdersBySellerRequest; + fromProtoMsg(message: QuerySellOrdersBySellerRequestProtoMsg): QuerySellOrdersBySellerRequest; + toProto(message: QuerySellOrdersBySellerRequest): Uint8Array; + toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg; +}; +export declare const QuerySellOrdersBySellerResponse: { + typeUrl: string; + encode(message: QuerySellOrdersBySellerResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse; + fromPartial(object: Partial): QuerySellOrdersBySellerResponse; + fromAmino(object: QuerySellOrdersBySellerResponseAmino): QuerySellOrdersBySellerResponse; + toAmino(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseAmino; + fromAminoMsg(object: QuerySellOrdersBySellerResponseAminoMsg): QuerySellOrdersBySellerResponse; + fromProtoMsg(message: QuerySellOrdersBySellerResponseProtoMsg): QuerySellOrdersBySellerResponse; + toProto(message: QuerySellOrdersBySellerResponse): Uint8Array; + toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg; +}; +export declare const QueryAllowedDenomsRequest: { + typeUrl: string; + encode(message: QueryAllowedDenomsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest; + fromPartial(object: Partial): QueryAllowedDenomsRequest; + fromAmino(object: QueryAllowedDenomsRequestAmino): QueryAllowedDenomsRequest; + toAmino(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestAmino; + fromAminoMsg(object: QueryAllowedDenomsRequestAminoMsg): QueryAllowedDenomsRequest; + fromProtoMsg(message: QueryAllowedDenomsRequestProtoMsg): QueryAllowedDenomsRequest; + toProto(message: QueryAllowedDenomsRequest): Uint8Array; + toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg; +}; +export declare const QueryAllowedDenomsResponse: { + typeUrl: string; + encode(message: QueryAllowedDenomsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse; + fromPartial(object: Partial): QueryAllowedDenomsResponse; + fromAmino(object: QueryAllowedDenomsResponseAmino): QueryAllowedDenomsResponse; + toAmino(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseAmino; + fromAminoMsg(object: QueryAllowedDenomsResponseAminoMsg): QueryAllowedDenomsResponse; + fromProtoMsg(message: QueryAllowedDenomsResponseProtoMsg): QueryAllowedDenomsResponse; + toProto(message: QueryAllowedDenomsResponse): Uint8Array; + toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg; +}; +export declare const SellOrderInfo: { + typeUrl: string; + encode(message: SellOrderInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo; + fromPartial(object: Partial): SellOrderInfo; + fromAmino(object: SellOrderInfoAmino): SellOrderInfo; + toAmino(message: SellOrderInfo): SellOrderInfoAmino; + fromAminoMsg(object: SellOrderInfoAminoMsg): SellOrderInfo; + fromProtoMsg(message: SellOrderInfoProtoMsg): SellOrderInfo; + toProto(message: SellOrderInfo): Uint8Array; + toProtoMsg(message: SellOrderInfo): SellOrderInfoProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.js new file mode 100644 index 00000000..d3a5d2de --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.js @@ -0,0 +1,870 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellOrderInfo = exports.QueryAllowedDenomsResponse = exports.QueryAllowedDenomsRequest = exports.QuerySellOrdersBySellerResponse = exports.QuerySellOrdersBySellerRequest = exports.QuerySellOrdersByBatchResponse = exports.QuerySellOrdersByBatchRequest = exports.QuerySellOrdersResponse = exports.QuerySellOrdersRequest = exports.QuerySellOrderResponse = exports.QuerySellOrderRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); +const state_1 = require("./state"); +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseQuerySellOrderRequest() { + return { + sellOrderId: BigInt(0) + }; +} +exports.QuerySellOrderRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrderRequest(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrderRequest(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrderRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrderRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrderRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + value: exports.QuerySellOrderRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrderResponse() { + return { + sellOrder: undefined + }; +} +exports.QuerySellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrder !== undefined) { + exports.SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrder = exports.SellOrderInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrderResponse(); + message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? exports.SellOrderInfo.fromPartial(object.sellOrder) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrderResponse(); + if (object.sell_order !== undefined && object.sell_order !== null) { + message.sellOrder = exports.SellOrderInfo.fromAmino(object.sell_order); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order = message.sellOrder ? exports.SellOrderInfo.toAmino(message.sellOrder) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrderResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + value: exports.QuerySellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersRequest() { + return { + pagination: undefined + }; +} +exports.QuerySellOrdersRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + value: exports.QuerySellOrdersRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +exports.QuerySellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.sellOrders) { + exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + value: exports.QuerySellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchRequest() { + return { + batchDenom: "", + pagination: undefined + }; +} +exports.QuerySellOrdersByBatchRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersByBatchRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + value: exports.QuerySellOrdersByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +exports.QuerySellOrdersByBatchResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.sellOrders) { + exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersByBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + value: exports.QuerySellOrdersByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerRequest() { + return { + seller: "", + pagination: undefined + }; +} +exports.QuerySellOrdersBySellerRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersBySellerRequest(); + message.seller = object.seller ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersBySellerRequest(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersBySellerRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersBySellerRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersBySellerRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + value: exports.QuerySellOrdersBySellerRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerResponse() { + return { + sellOrders: [], + pagination: undefined + }; +} +exports.QuerySellOrdersBySellerResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.sellOrders) { + exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); + } + else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySellOrdersBySellerResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySellOrdersBySellerResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySellOrdersBySellerResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + value: exports.QuerySellOrdersBySellerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsRequest() { + return { + pagination: undefined + }; +} +exports.QueryAllowedDenomsRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedDenomsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedDenomsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedDenomsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedDenomsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedDenomsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + value: exports.QueryAllowedDenomsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsResponse() { + return { + allowedDenoms: [], + pagination: undefined + }; +} +exports.QueryAllowedDenomsResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowedDenoms) { + state_1.AllowedDenom.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedDenoms.push(state_1.AllowedDenom.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowedDenoms?.map(e => state_1.AllowedDenom.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowed_denoms?.map(e => state_1.AllowedDenom.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? state_1.AllowedDenom.toAmino(e) : undefined); + } + else { + obj.allowed_denoms = message.allowedDenoms; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedDenomsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedDenomsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedDenomsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + value: exports.QueryAllowedDenomsResponse.encode(message).finish() + }; + } +}; +function createBaseSellOrderInfo() { + return { + id: BigInt(0), + seller: "", + batchDenom: "", + quantity: "", + askDenom: "", + askAmount: "", + disableAutoRetire: false, + expiration: undefined + }; +} +exports.SellOrderInfo = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller !== "") { + writer.uint32(18).string(message.seller); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.askDenom !== "") { + writer.uint32(42).string(message.askDenom); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrderInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.askDenom = reader.string(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSellOrderInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askDenom = object.askDenom ?? ""; + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSellOrderInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_denom !== undefined && object.ask_denom !== null) { + message.askDenom = object.ask_denom; + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SellOrderInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SellOrderInfo.decode(message.value); + }, + toProto(message) { + return exports.SellOrderInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + value: exports.SellOrderInfo.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts new file mode 100644 index 00000000..ca3ff490 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts @@ -0,0 +1,13 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + sellOrder(params: QuerySellOrderRequest): Promise; + sellOrders(params?: QuerySellOrdersRequest): Promise; + sellOrdersByBatch(params: QuerySellOrdersByBatchRequest): Promise; + sellOrdersBySeller(params: QuerySellOrdersBySellerRequest): Promise; + allowedDenoms(params?: QueryAllowedDenomsRequest): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js new file mode 100644 index 00000000..be3a5ad1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + /* SellOrder queries a sell order by its unique identifier. */ + async sellOrder(params) { + const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; + return await this.req.get(endpoint); + } + /* SellOrders queries a paginated list of all sell orders. */ + async sellOrders(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; + return await this.req.get(endpoint, options); + } + /* SellOrdersByBatch queries a paginated list of all sell orders based on + the batch denom of the credits being sold. */ + async sellOrdersByBatch(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* SellOrdersBySeller queries a paginated list of all sell orders based on the + account address of the seller. */ + async sellOrdersBySeller(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; + return await this.req.get(endpoint, options); + } + /* AllowedDenoms queries a paginated list of all bank denoms allowed to be + used in the marketplace. */ + async allowedDenoms(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; + return await this.req.get(endpoint, options); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..8edfdc02 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts @@ -0,0 +1,41 @@ +import { Rpc } from "../../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; +/** Msg is the regen.ecocredit.marketplace.v1 Query service. */ +export interface Query { + /** SellOrder queries a sell order by its unique identifier. */ + sellOrder(request: QuerySellOrderRequest): Promise; + /** SellOrders queries a paginated list of all sell orders. */ + sellOrders(request?: QuerySellOrdersRequest): Promise; + /** + * SellOrdersByBatch queries a paginated list of all sell orders based on + * the batch denom of the credits being sold. + */ + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; + /** + * SellOrdersBySeller queries a paginated list of all sell orders based on the + * account address of the seller. + */ + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; + /** + * AllowedDenoms queries a paginated list of all bank denoms allowed to be + * used in the marketplace. + */ + allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + sellOrder(request: QuerySellOrderRequest): Promise; + sellOrders(request?: QuerySellOrdersRequest): Promise; + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; + allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + sellOrder(request: QuerySellOrderRequest): Promise; + sellOrders(request?: QuerySellOrdersRequest): Promise; + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; + allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js new file mode 100644 index 00000000..3d1086f2 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js @@ -0,0 +1,69 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + sellOrder(request) { + const data = query_1.QuerySellOrderRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); + return promise.then(data => query_1.QuerySellOrderResponse.decode(new binary_1.BinaryReader(data))); + } + sellOrders(request = { + pagination: undefined + }) { + const data = query_1.QuerySellOrdersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); + return promise.then(data => query_1.QuerySellOrdersResponse.decode(new binary_1.BinaryReader(data))); + } + sellOrdersByBatch(request) { + const data = query_1.QuerySellOrdersByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); + return promise.then(data => query_1.QuerySellOrdersByBatchResponse.decode(new binary_1.BinaryReader(data))); + } + sellOrdersBySeller(request) { + const data = query_1.QuerySellOrdersBySellerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); + return promise.then(data => query_1.QuerySellOrdersBySellerResponse.decode(new binary_1.BinaryReader(data))); + } + allowedDenoms(request = { + pagination: undefined + }) { + const data = query_1.QueryAllowedDenomsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); + return promise.then(data => query_1.QueryAllowedDenomsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + sellOrder(request) { + return queryService.sellOrder(request); + }, + sellOrders(request) { + return queryService.sellOrders(request); + }, + sellOrdersByBatch(request) { + return queryService.sellOrdersByBatch(request); + }, + sellOrdersBySeller(request) { + return queryService.sellOrdersBySeller(request); + }, + allowedDenoms(request) { + return queryService.allowedDenoms(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts new file mode 100644 index 00000000..a7c6a4da --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts @@ -0,0 +1,306 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** SellOrder represents the information for a sell order. */ +export interface SellOrder { + /** id is the unique ID of sell order. */ + id: bigint; + /** seller is the address of the account that is selling credits. */ + seller: Uint8Array; + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a sell order to a credit batch. + */ + batchKey: bigint; + /** quantity is the decimal quantity of credits being sold. */ + quantity: string; + /** + * market_id is the market in which this sell order exists and specifies + * the bank_denom that ask_amount corresponds to forming the ask_price. + */ + marketId: bigint; + /** + * ask_amount is the integer amount (encoded as a string) that the seller is + * asking for each credit unit of the batch. Each credit unit of the batch + * will be sold for at least the ask_amount. The ask_amount corresponds to the + * Market.denom to form the ask price. + */ + askAmount: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; + /** + * maker indicates that this is a maker order, meaning that when it hit + * the order book, there were no matching buy orders. + */ + maker: boolean; +} +export interface SellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder"; + value: Uint8Array; +} +/** SellOrder represents the information for a sell order. */ +export interface SellOrderAmino { + /** id is the unique ID of sell order. */ + id?: string; + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a sell order to a credit batch. + */ + batch_key?: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity?: string; + /** + * market_id is the market in which this sell order exists and specifies + * the bank_denom that ask_amount corresponds to forming the ask_price. + */ + market_id?: string; + /** + * ask_amount is the integer amount (encoded as a string) that the seller is + * asking for each credit unit of the batch. Each credit unit of the batch + * will be sold for at least the ask_amount. The ask_amount corresponds to the + * Market.denom to form the ask price. + */ + ask_amount?: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; + /** + * maker indicates that this is a maker order, meaning that when it hit + * the order book, there were no matching buy orders. + */ + maker?: boolean; +} +export interface SellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.SellOrder"; + value: SellOrderAmino; +} +/** SellOrder represents the information for a sell order. */ +export interface SellOrderSDKType { + id: bigint; + seller: Uint8Array; + batch_key: bigint; + quantity: string; + market_id: bigint; + ask_amount: string; + disable_auto_retire: boolean; + expiration?: Date; + maker: boolean; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenom { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface AllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom"; + value: Uint8Array; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenomAmino { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface AllowedDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; + value: AllowedDenomAmino; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenomSDKType { + bank_denom: string; + display_denom: string; + exponent: number; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface Market { + /** id is the unique ID of the market. */ + id: bigint; + /** credit_type_abbrev is the abbreviation of the credit type. */ + creditTypeAbbrev: string; + /** bank_denom is an allowed bank denom. */ + bankDenom: string; + /** + * precision_modifier is an optional modifier used to convert arbitrary + * precision integer bank amounts to uint32 values used for sorting in the + * order book. Given an arbitrary precision integer x, its uint32 conversion + * will be x / 10^precision_modifier using round half away from zero + * rounding. + * + * uint32 values range from 0 to 4,294,967,295. + * This allows for a full 9 digits of precision. In most real world markets + * this amount of precision is sufficient and most common downside - + * that some orders with very miniscule price differences may be ordered + * equivalently (because of rounding) - is acceptable. + * Note that this rounding will not affect settlement price which will + * always be done exactly. + * + * Given a USD stable coin with 6 decimal digits, a precision_modifier + * of 0 is probably acceptable as long as credits are always less than + * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 + * in this case), prices can rise up to $4,294,000/unit. Either scenario + * is probably quite acceptable given that carbon prices are unlikely to + * rise above $1000/ton any time in the near future. + * + * If credit prices, exceed the maximum range of uint32 with this + * precision_modifier, orders with high prices will fail and governance + * will need to adjust precision_modifier to allow for higher prices in + * exchange for less precision at the lower end. + */ + precisionModifier: number; +} +export interface MarketProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Market"; + value: Uint8Array; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface MarketAmino { + /** id is the unique ID of the market. */ + id?: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + credit_type_abbrev?: string; + /** bank_denom is an allowed bank denom. */ + bank_denom?: string; + /** + * precision_modifier is an optional modifier used to convert arbitrary + * precision integer bank amounts to uint32 values used for sorting in the + * order book. Given an arbitrary precision integer x, its uint32 conversion + * will be x / 10^precision_modifier using round half away from zero + * rounding. + * + * uint32 values range from 0 to 4,294,967,295. + * This allows for a full 9 digits of precision. In most real world markets + * this amount of precision is sufficient and most common downside - + * that some orders with very miniscule price differences may be ordered + * equivalently (because of rounding) - is acceptable. + * Note that this rounding will not affect settlement price which will + * always be done exactly. + * + * Given a USD stable coin with 6 decimal digits, a precision_modifier + * of 0 is probably acceptable as long as credits are always less than + * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 + * in this case), prices can rise up to $4,294,000/unit. Either scenario + * is probably quite acceptable given that carbon prices are unlikely to + * rise above $1000/ton any time in the near future. + * + * If credit prices, exceed the maximum range of uint32 with this + * precision_modifier, orders with high prices will fail and governance + * will need to adjust precision_modifier to allow for higher prices in + * exchange for less precision at the lower end. + */ + precision_modifier?: number; +} +export interface MarketAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Market"; + value: MarketAmino; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface MarketSDKType { + id: bigint; + credit_type_abbrev: string; + bank_denom: string; + precision_modifier: number; +} +export declare const SellOrder: { + typeUrl: string; + encode(message: SellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SellOrder; + fromPartial(object: Partial): SellOrder; + fromAmino(object: SellOrderAmino): SellOrder; + toAmino(message: SellOrder): SellOrderAmino; + fromAminoMsg(object: SellOrderAminoMsg): SellOrder; + fromProtoMsg(message: SellOrderProtoMsg): SellOrder; + toProto(message: SellOrder): Uint8Array; + toProtoMsg(message: SellOrder): SellOrderProtoMsg; +}; +export declare const AllowedDenom: { + typeUrl: string; + encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; + fromPartial(object: Partial): AllowedDenom; + fromAmino(object: AllowedDenomAmino): AllowedDenom; + toAmino(message: AllowedDenom): AllowedDenomAmino; + fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; + fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; + toProto(message: AllowedDenom): Uint8Array; + toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; +}; +export declare const Market: { + typeUrl: string; + encode(message: Market, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Market; + fromPartial(object: Partial): Market; + fromAmino(object: MarketAmino): Market; + toAmino(message: Market): MarketAmino; + fromAminoMsg(object: MarketAminoMsg): Market; + fromProtoMsg(message: MarketProtoMsg): Market; + toProto(message: Market): Uint8Array; + toProtoMsg(message: Market): MarketProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/state.js b/packages/api/dist/regen/ecocredit/marketplace/v1/state.js new file mode 100644 index 00000000..cf9f3208 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/state.js @@ -0,0 +1,352 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Market = exports.AllowedDenom = exports.SellOrder = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseSellOrder() { + return { + id: BigInt(0), + seller: new Uint8Array(), + batchKey: BigInt(0), + quantity: "", + marketId: BigInt(0), + askAmount: "", + disableAutoRetire: false, + expiration: undefined, + maker: false + }; +} +exports.SellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller.length !== 0) { + writer.uint32(18).bytes(message.seller); + } + if (message.batchKey !== BigInt(0)) { + writer.uint32(24).uint64(message.batchKey); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.marketId !== BigInt(0)) { + writer.uint32(40).uint64(message.marketId); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(74).fork()).ldelim(); + } + if (message.maker === true) { + writer.uint32(80).bool(message.maker); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.bytes(); + break; + case 3: + message.batchKey = reader.uint64(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.marketId = reader.uint64(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.maker = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSellOrder(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? new Uint8Array(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + message.maker = object.maker ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseSellOrder(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = (0, helpers_1.bytesFromBase64)(object.seller); + } + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + if (object.maker !== undefined && object.maker !== null) { + message.maker = object.maker; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller ? (0, helpers_1.base64FromBytes)(message.seller) : undefined; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + obj.maker = message.maker === false ? undefined : message.maker; + return obj; + }, + fromAminoMsg(object) { + return exports.SellOrder.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SellOrder.decode(message.value); + }, + toProto(message) { + return exports.SellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + value: exports.SellOrder.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom() { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +exports.AllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return exports.AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AllowedDenom.decode(message.value); + }, + toProto(message) { + return exports.AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + value: exports.AllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMarket() { + return { + id: BigInt(0), + creditTypeAbbrev: "", + bankDenom: "", + precisionModifier: 0 + }; +} +exports.Market = { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(18).string(message.creditTypeAbbrev); + } + if (message.bankDenom !== "") { + writer.uint32(26).string(message.bankDenom); + } + if (message.precisionModifier !== 0) { + writer.uint32(32).uint32(message.precisionModifier); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMarket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.creditTypeAbbrev = reader.string(); + break; + case 3: + message.bankDenom = reader.string(); + break; + case 4: + message.precisionModifier = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMarket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.precisionModifier = object.precisionModifier ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMarket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.precision_modifier !== undefined && object.precision_modifier !== null) { + message.precisionModifier = object.precision_modifier; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; + return obj; + }, + fromAminoMsg(object) { + return exports.Market.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Market.decode(message.value); + }, + toProto(message) { + return exports.Market.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + value: exports.Market.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts new file mode 100644 index 00000000..d17e5b87 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts @@ -0,0 +1,33 @@ +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export declare const AminoConverter: { + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: string; + toAmino: (message: MsgSell) => import("./tx").MsgSellAmino; + fromAmino: (object: import("./tx").MsgSellAmino) => MsgSell; + }; + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: string; + toAmino: (message: MsgUpdateSellOrders) => import("./tx").MsgUpdateSellOrdersAmino; + fromAmino: (object: import("./tx").MsgUpdateSellOrdersAmino) => MsgUpdateSellOrders; + }; + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: string; + toAmino: (message: MsgCancelSellOrder) => import("./tx").MsgCancelSellOrderAmino; + fromAmino: (object: import("./tx").MsgCancelSellOrderAmino) => MsgCancelSellOrder; + }; + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: string; + toAmino: (message: MsgBuyDirect) => import("./tx").MsgBuyDirectAmino; + fromAmino: (object: import("./tx").MsgBuyDirectAmino) => MsgBuyDirect; + }; + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: string; + toAmino: (message: MsgAddAllowedDenom) => import("./tx").MsgAddAllowedDenomAmino; + fromAmino: (object: import("./tx").MsgAddAllowedDenomAmino) => MsgAddAllowedDenom; + }; + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: string; + toAmino: (message: MsgRemoveAllowedDenom) => import("./tx").MsgRemoveAllowedDenomAmino; + fromAmino: (object: import("./tx").MsgRemoveAllowedDenomAmino) => MsgRemoveAllowedDenom; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js new file mode 100644 index 00000000..3e3f3d52 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: "regen.marketplace/MsgSell", + toAmino: tx_1.MsgSell.toAmino, + fromAmino: tx_1.MsgSell.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: "regen.marketplace/MsgUpdateSellOrders", + toAmino: tx_1.MsgUpdateSellOrders.toAmino, + fromAmino: tx_1.MsgUpdateSellOrders.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: "regen.marketplace/MsgCancelSellOrder", + toAmino: tx_1.MsgCancelSellOrder.toAmino, + fromAmino: tx_1.MsgCancelSellOrder.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: "regen.marketplace/MsgBuyDirect", + toAmino: tx_1.MsgBuyDirect.toAmino, + fromAmino: tx_1.MsgBuyDirect.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: "regen.marketplace/MsgAddAllowedDenom", + toAmino: tx_1.MsgAddAllowedDenom.toAmino, + fromAmino: tx_1.MsgAddAllowedDenom.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: "regen.marketplace/MsgRemoveAllowedDenom", + toAmino: tx_1.MsgRemoveAllowedDenom.toAmino, + fromAmino: tx_1.MsgRemoveAllowedDenom.fromAmino + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts new file mode 100644 index 00000000..719c406a --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts @@ -0,0 +1,748 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSell { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** orders are the sell orders being created. */ + orders: MsgSell_Order[]; +} +export interface MsgSellProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell"; + value: Uint8Array; +} +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSellAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** orders are the sell orders being created. */ + orders?: MsgSell_OrderAmino[]; +} +export interface MsgSellAminoMsg { + type: "regen.marketplace/MsgSell"; + value: MsgSellAmino; +} +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSellSDKType { + seller: string; + orders: MsgSell_OrderSDKType[]; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_Order { + /** batch_denom is the credit batch being sold. */ + batchDenom: string; + /** + * quantity is the quantity of credits being sold from this batch. If it is + * less then the balance of credits the owner has available at the time this + * sell order is matched, the quantity will be adjusted downwards to the + * owner's balance. However, if the balance of credits is less than this + * quantity at the time the sell order is created, the operation will fail. + */ + quantity: string; + /** + * ask_price is the price the seller is asking for each unit of the + * batch_denom. Each credit unit of the batch will be sold for at least the + * ask_price or more. + */ + askPrice?: Coin; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; +} +export interface MsgSell_OrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Order"; + value: Uint8Array; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_OrderAmino { + /** batch_denom is the credit batch being sold. */ + batch_denom?: string; + /** + * quantity is the quantity of credits being sold from this batch. If it is + * less then the balance of credits the owner has available at the time this + * sell order is matched, the quantity will be adjusted downwards to the + * owner's balance. However, if the balance of credits is less than this + * quantity at the time the sell order is created, the operation will fail. + */ + quantity?: string; + /** + * ask_price is the price the seller is asking for each unit of the + * batch_denom. Each credit unit of the batch will be sold for at least the + * ask_price or more. + */ + ask_price?: CoinAmino; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; +} +export interface MsgSell_OrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Order"; + value: MsgSell_OrderAmino; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_OrderSDKType { + batch_denom: string; + quantity: string; + ask_price?: CoinSDKType; + disable_auto_retire: boolean; + expiration?: Date; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponse { + /** sell_order_ids are the sell order IDs of the newly created sell orders. */ + sellOrderIds: bigint[]; +} +export interface MsgSellResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; + value: Uint8Array; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponseAmino { + /** sell_order_ids are the sell order IDs of the newly created sell orders. */ + sell_order_ids?: string[]; +} +export interface MsgSellResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; + value: MsgSellResponseAmino; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponseSDKType { + sell_order_ids: bigint[]; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrders { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** updates are updates to existing sell orders. */ + updates: MsgUpdateSellOrders_Update[]; +} +export interface MsgUpdateSellOrdersProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders"; + value: Uint8Array; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrdersAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** updates are updates to existing sell orders. */ + updates?: MsgUpdateSellOrders_UpdateAmino[]; +} +export interface MsgUpdateSellOrdersAminoMsg { + type: "regen.marketplace/MsgUpdateSellOrders"; + value: MsgUpdateSellOrdersAmino; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrdersSDKType { + seller: string; + updates: MsgUpdateSellOrders_UpdateSDKType[]; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_Update { + /** sell_order_id is the ID of an existing sell order. */ + sellOrderId: bigint; + /** new_quantity is the updated quantity of credits available to sell. */ + newQuantity: string; + /** new_ask_price is the new ask price for this sell order */ + newAskPrice?: Coin; + /** + * disable_auto_retire updates the disable_auto_retire field in the sell + * order. + */ + disableAutoRetire: boolean; + /** + * new_expiration is an optional timestamp when the sell order expires. When + * the expiration time is reached, the sell order is removed from state. + */ + newExpiration?: Date; +} +export interface MsgUpdateSellOrders_UpdateProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Update"; + value: Uint8Array; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_UpdateAmino { + /** sell_order_id is the ID of an existing sell order. */ + sell_order_id?: string; + /** new_quantity is the updated quantity of credits available to sell. */ + new_quantity?: string; + /** new_ask_price is the new ask price for this sell order */ + new_ask_price?: CoinAmino; + /** + * disable_auto_retire updates the disable_auto_retire field in the sell + * order. + */ + disable_auto_retire?: boolean; + /** + * new_expiration is an optional timestamp when the sell order expires. When + * the expiration time is reached, the sell order is removed from state. + */ + new_expiration?: string; +} +export interface MsgUpdateSellOrders_UpdateAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Update"; + value: MsgUpdateSellOrders_UpdateAmino; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_UpdateSDKType { + sell_order_id: bigint; + new_quantity: string; + new_ask_price?: CoinSDKType; + disable_auto_retire: boolean; + new_expiration?: Date; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponse { +} +export interface MsgUpdateSellOrdersResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; + value: Uint8Array; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponseAmino { +} +export interface MsgUpdateSellOrdersResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; + value: MsgUpdateSellOrdersResponseAmino; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponseSDKType { +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrder { + /** + * seller is the address of the account that created the sell order and is + * therefore authorized to cancel the sell order. + */ + seller: string; + /** sell_order_id is the id of the seller order to cancel. */ + sellOrderId: bigint; +} +export interface MsgCancelSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; + value: Uint8Array; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrderAmino { + /** + * seller is the address of the account that created the sell order and is + * therefore authorized to cancel the sell order. + */ + seller?: string; + /** sell_order_id is the id of the seller order to cancel. */ + sell_order_id?: string; +} +export interface MsgCancelSellOrderAminoMsg { + type: "regen.marketplace/MsgCancelSellOrder"; + value: MsgCancelSellOrderAmino; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrderSDKType { + seller: string; + sell_order_id: bigint; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponse { +} +export interface MsgCancelSellOrderResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; + value: Uint8Array; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponseAmino { +} +export interface MsgCancelSellOrderResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; + value: MsgCancelSellOrderResponseAmino; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponseSDKType { +} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirect { + /** buyer is the address of the account that is buying credits. */ + buyer: string; + /** orders is a list of orders for ecocredits. */ + orders: MsgBuyDirect_Order[]; +} +export interface MsgBuyDirectProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect"; + value: Uint8Array; +} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirectAmino { + /** buyer is the address of the account that is buying credits. */ + buyer?: string; + /** orders is a list of orders for ecocredits. */ + orders?: MsgBuyDirect_OrderAmino[]; +} +export interface MsgBuyDirectAminoMsg { + type: "regen.marketplace/MsgBuyDirect"; + value: MsgBuyDirectAmino; +} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirectSDKType { + buyer: string; + orders: MsgBuyDirect_OrderSDKType[]; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_Order { + /** + * sell_order_id is the sell order ID against which the buyer is trying + * to buy. + */ + sellOrderId: bigint; + /** quantity is the quantity of credits to buy. */ + quantity: string; + /** bid_price is the price the buyer is willing to pay per credit. */ + bidPrice?: Coin; + /** + * disable_auto_retire allows auto-retirement to be disabled. If it is set + * to true the credits will not auto-retire and can be resold assuming that + * the corresponding sell order has auto-retirement disabled. If the sell + * order hasn't disabled auto-retirement and the buy order tries to disable + * it, that buy order will fail. + */ + disableAutoRetire: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if disable_auto_retire is false. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 1 + */ + retirementReason: string; +} +export interface MsgBuyDirect_OrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Order"; + value: Uint8Array; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_OrderAmino { + /** + * sell_order_id is the sell order ID against which the buyer is trying + * to buy. + */ + sell_order_id?: string; + /** quantity is the quantity of credits to buy. */ + quantity?: string; + /** bid_price is the price the buyer is willing to pay per credit. */ + bid_price?: CoinAmino; + /** + * disable_auto_retire allows auto-retirement to be disabled. If it is set + * to true the credits will not auto-retire and can be resold assuming that + * the corresponding sell order has auto-retirement disabled. If the sell + * order hasn't disabled auto-retirement and the buy order tries to disable + * it, that buy order will fail. + */ + disable_auto_retire?: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if disable_auto_retire is false. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 1 + */ + retirement_reason?: string; +} +export interface MsgBuyDirect_OrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Order"; + value: MsgBuyDirect_OrderAmino; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_OrderSDKType { + sell_order_id: bigint; + quantity: string; + bid_price?: CoinSDKType; + disable_auto_retire: boolean; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponse { +} +export interface MsgBuyDirectResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; + value: Uint8Array; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponseAmino { +} +export interface MsgBuyDirectResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; + value: MsgBuyDirectResponseAmino; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponseSDKType { +} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenom { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface MsgAddAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom"; + value: Uint8Array; +} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface MsgAddAllowedDenomAminoMsg { + type: "regen.marketplace/MsgAddAllowedDenom"; + value: MsgAddAllowedDenomAmino; +} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomSDKType { + authority: string; + bank_denom: string; + display_denom: string; + exponent: number; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponse { +} +export interface MsgAddAllowedDenomResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; + value: Uint8Array; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponseAmino { +} +export interface MsgAddAllowedDenomResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; + value: MsgAddAllowedDenomResponseAmino; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponseSDKType { +} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenom { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ + denom: string; +} +export interface MsgRemoveAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ + denom?: string; +} +export interface MsgRemoveAllowedDenomAminoMsg { + type: "regen.marketplace/MsgRemoveAllowedDenom"; + value: MsgRemoveAllowedDenomAmino; +} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomSDKType { + authority: string; + denom: string; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponse { +} +export interface MsgRemoveAllowedDenomResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponseAmino { +} +export interface MsgRemoveAllowedDenomResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; + value: MsgRemoveAllowedDenomResponseAmino; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponseSDKType { +} +export declare const MsgSell: { + typeUrl: string; + encode(message: MsgSell, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell; + fromPartial(object: Partial): MsgSell; + fromAmino(object: MsgSellAmino): MsgSell; + toAmino(message: MsgSell): MsgSellAmino; + fromAminoMsg(object: MsgSellAminoMsg): MsgSell; + toAminoMsg(message: MsgSell): MsgSellAminoMsg; + fromProtoMsg(message: MsgSellProtoMsg): MsgSell; + toProto(message: MsgSell): Uint8Array; + toProtoMsg(message: MsgSell): MsgSellProtoMsg; +}; +export declare const MsgSell_Order: { + typeUrl: string; + encode(message: MsgSell_Order, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order; + fromPartial(object: Partial): MsgSell_Order; + fromAmino(object: MsgSell_OrderAmino): MsgSell_Order; + toAmino(message: MsgSell_Order): MsgSell_OrderAmino; + fromAminoMsg(object: MsgSell_OrderAminoMsg): MsgSell_Order; + fromProtoMsg(message: MsgSell_OrderProtoMsg): MsgSell_Order; + toProto(message: MsgSell_Order): Uint8Array; + toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg; +}; +export declare const MsgSellResponse: { + typeUrl: string; + encode(message: MsgSellResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse; + fromPartial(object: Partial): MsgSellResponse; + fromAmino(object: MsgSellResponseAmino): MsgSellResponse; + toAmino(message: MsgSellResponse): MsgSellResponseAmino; + fromAminoMsg(object: MsgSellResponseAminoMsg): MsgSellResponse; + fromProtoMsg(message: MsgSellResponseProtoMsg): MsgSellResponse; + toProto(message: MsgSellResponse): Uint8Array; + toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg; +}; +export declare const MsgUpdateSellOrders: { + typeUrl: string; + encode(message: MsgUpdateSellOrders, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders; + fromPartial(object: Partial): MsgUpdateSellOrders; + fromAmino(object: MsgUpdateSellOrdersAmino): MsgUpdateSellOrders; + toAmino(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAmino; + fromAminoMsg(object: MsgUpdateSellOrdersAminoMsg): MsgUpdateSellOrders; + toAminoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAminoMsg; + fromProtoMsg(message: MsgUpdateSellOrdersProtoMsg): MsgUpdateSellOrders; + toProto(message: MsgUpdateSellOrders): Uint8Array; + toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg; +}; +export declare const MsgUpdateSellOrders_Update: { + typeUrl: string; + encode(message: MsgUpdateSellOrders_Update, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update; + fromPartial(object: Partial): MsgUpdateSellOrders_Update; + fromAmino(object: MsgUpdateSellOrders_UpdateAmino): MsgUpdateSellOrders_Update; + toAmino(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateAmino; + fromAminoMsg(object: MsgUpdateSellOrders_UpdateAminoMsg): MsgUpdateSellOrders_Update; + fromProtoMsg(message: MsgUpdateSellOrders_UpdateProtoMsg): MsgUpdateSellOrders_Update; + toProto(message: MsgUpdateSellOrders_Update): Uint8Array; + toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg; +}; +export declare const MsgUpdateSellOrdersResponse: { + typeUrl: string; + encode(_: MsgUpdateSellOrdersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse; + fromPartial(_: Partial): MsgUpdateSellOrdersResponse; + fromAmino(_: MsgUpdateSellOrdersResponseAmino): MsgUpdateSellOrdersResponse; + toAmino(_: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseAmino; + fromAminoMsg(object: MsgUpdateSellOrdersResponseAminoMsg): MsgUpdateSellOrdersResponse; + fromProtoMsg(message: MsgUpdateSellOrdersResponseProtoMsg): MsgUpdateSellOrdersResponse; + toProto(message: MsgUpdateSellOrdersResponse): Uint8Array; + toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg; +}; +export declare const MsgCancelSellOrder: { + typeUrl: string; + encode(message: MsgCancelSellOrder, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder; + fromPartial(object: Partial): MsgCancelSellOrder; + fromAmino(object: MsgCancelSellOrderAmino): MsgCancelSellOrder; + toAmino(message: MsgCancelSellOrder): MsgCancelSellOrderAmino; + fromAminoMsg(object: MsgCancelSellOrderAminoMsg): MsgCancelSellOrder; + toAminoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderAminoMsg; + fromProtoMsg(message: MsgCancelSellOrderProtoMsg): MsgCancelSellOrder; + toProto(message: MsgCancelSellOrder): Uint8Array; + toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg; +}; +export declare const MsgCancelSellOrderResponse: { + typeUrl: string; + encode(_: MsgCancelSellOrderResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse; + fromPartial(_: Partial): MsgCancelSellOrderResponse; + fromAmino(_: MsgCancelSellOrderResponseAmino): MsgCancelSellOrderResponse; + toAmino(_: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseAmino; + fromAminoMsg(object: MsgCancelSellOrderResponseAminoMsg): MsgCancelSellOrderResponse; + fromProtoMsg(message: MsgCancelSellOrderResponseProtoMsg): MsgCancelSellOrderResponse; + toProto(message: MsgCancelSellOrderResponse): Uint8Array; + toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg; +}; +export declare const MsgBuyDirect: { + typeUrl: string; + encode(message: MsgBuyDirect, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect; + fromPartial(object: Partial): MsgBuyDirect; + fromAmino(object: MsgBuyDirectAmino): MsgBuyDirect; + toAmino(message: MsgBuyDirect): MsgBuyDirectAmino; + fromAminoMsg(object: MsgBuyDirectAminoMsg): MsgBuyDirect; + toAminoMsg(message: MsgBuyDirect): MsgBuyDirectAminoMsg; + fromProtoMsg(message: MsgBuyDirectProtoMsg): MsgBuyDirect; + toProto(message: MsgBuyDirect): Uint8Array; + toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg; +}; +export declare const MsgBuyDirect_Order: { + typeUrl: string; + encode(message: MsgBuyDirect_Order, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order; + fromPartial(object: Partial): MsgBuyDirect_Order; + fromAmino(object: MsgBuyDirect_OrderAmino): MsgBuyDirect_Order; + toAmino(message: MsgBuyDirect_Order): MsgBuyDirect_OrderAmino; + fromAminoMsg(object: MsgBuyDirect_OrderAminoMsg): MsgBuyDirect_Order; + fromProtoMsg(message: MsgBuyDirect_OrderProtoMsg): MsgBuyDirect_Order; + toProto(message: MsgBuyDirect_Order): Uint8Array; + toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg; +}; +export declare const MsgBuyDirectResponse: { + typeUrl: string; + encode(_: MsgBuyDirectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse; + fromPartial(_: Partial): MsgBuyDirectResponse; + fromAmino(_: MsgBuyDirectResponseAmino): MsgBuyDirectResponse; + toAmino(_: MsgBuyDirectResponse): MsgBuyDirectResponseAmino; + fromAminoMsg(object: MsgBuyDirectResponseAminoMsg): MsgBuyDirectResponse; + fromProtoMsg(message: MsgBuyDirectResponseProtoMsg): MsgBuyDirectResponse; + toProto(message: MsgBuyDirectResponse): Uint8Array; + toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg; +}; +export declare const MsgAddAllowedDenom: { + typeUrl: string; + encode(message: MsgAddAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom; + fromPartial(object: Partial): MsgAddAllowedDenom; + fromAmino(object: MsgAddAllowedDenomAmino): MsgAddAllowedDenom; + toAmino(message: MsgAddAllowedDenom): MsgAddAllowedDenomAmino; + fromAminoMsg(object: MsgAddAllowedDenomAminoMsg): MsgAddAllowedDenom; + toAminoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomAminoMsg; + fromProtoMsg(message: MsgAddAllowedDenomProtoMsg): MsgAddAllowedDenom; + toProto(message: MsgAddAllowedDenom): Uint8Array; + toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg; +}; +export declare const MsgAddAllowedDenomResponse: { + typeUrl: string; + encode(_: MsgAddAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse; + fromPartial(_: Partial): MsgAddAllowedDenomResponse; + fromAmino(_: MsgAddAllowedDenomResponseAmino): MsgAddAllowedDenomResponse; + toAmino(_: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseAmino; + fromAminoMsg(object: MsgAddAllowedDenomResponseAminoMsg): MsgAddAllowedDenomResponse; + fromProtoMsg(message: MsgAddAllowedDenomResponseProtoMsg): MsgAddAllowedDenomResponse; + toProto(message: MsgAddAllowedDenomResponse): Uint8Array; + toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg; +}; +export declare const MsgRemoveAllowedDenom: { + typeUrl: string; + encode(message: MsgRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom; + fromPartial(object: Partial): MsgRemoveAllowedDenom; + fromAmino(object: MsgRemoveAllowedDenomAmino): MsgRemoveAllowedDenom; + toAmino(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAmino; + fromAminoMsg(object: MsgRemoveAllowedDenomAminoMsg): MsgRemoveAllowedDenom; + toAminoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAminoMsg; + fromProtoMsg(message: MsgRemoveAllowedDenomProtoMsg): MsgRemoveAllowedDenom; + toProto(message: MsgRemoveAllowedDenom): Uint8Array; + toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg; +}; +export declare const MsgRemoveAllowedDenomResponse: { + typeUrl: string; + encode(_: MsgRemoveAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse; + fromPartial(_: Partial): MsgRemoveAllowedDenomResponse; + fromAmino(_: MsgRemoveAllowedDenomResponseAmino): MsgRemoveAllowedDenomResponse; + toAmino(_: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseAmino; + fromAminoMsg(object: MsgRemoveAllowedDenomResponseAminoMsg): MsgRemoveAllowedDenomResponse; + fromProtoMsg(message: MsgRemoveAllowedDenomResponseProtoMsg): MsgRemoveAllowedDenomResponse; + toProto(message: MsgRemoveAllowedDenomResponse): Uint8Array; + toProtoMsg(message: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js new file mode 100644 index 00000000..51a511d3 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js @@ -0,0 +1,1198 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgRemoveAllowedDenomResponse = exports.MsgRemoveAllowedDenom = exports.MsgAddAllowedDenomResponse = exports.MsgAddAllowedDenom = exports.MsgBuyDirectResponse = exports.MsgBuyDirect_Order = exports.MsgBuyDirect = exports.MsgCancelSellOrderResponse = exports.MsgCancelSellOrder = exports.MsgUpdateSellOrdersResponse = exports.MsgUpdateSellOrders_Update = exports.MsgUpdateSellOrders = exports.MsgSellResponse = exports.MsgSell_Order = exports.MsgSell = void 0; +//@ts-nocheck +const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseMsgSell() { + return { + seller: "", + orders: [] + }; +} +exports.MsgSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.orders) { + exports.MsgSell_Order.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.orders.push(exports.MsgSell_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSell(); + message.seller = object.seller ?? ""; + message.orders = object.orders?.map(e => exports.MsgSell_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSell(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.orders = object.orders?.map(e => exports.MsgSell_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.orders) { + obj.orders = message.orders.map(e => e ? exports.MsgSell_Order.toAmino(e) : undefined); + } + else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSell.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgSell", + value: exports.MsgSell.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSell.decode(message.value); + }, + toProto(message) { + return exports.MsgSell.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: exports.MsgSell.encode(message).finish() + }; + } +}; +function createBaseMsgSell_Order() { + return { + batchDenom: "", + quantity: "", + askPrice: undefined, + disableAutoRetire: false, + expiration: undefined + }; +} +exports.MsgSell_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(18).string(message.quantity); + } + if (message.askPrice !== undefined) { + coin_1.Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.quantity = reader.string(); + break; + case 3: + message.askPrice = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSell_Order(); + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? coin_1.Coin.fromPartial(object.askPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSell_Order(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = coin_1.Coin.fromAmino(object.ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_price = message.askPrice ? coin_1.Coin.toAmino(message.askPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSell_Order.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSell_Order.decode(message.value); + }, + toProto(message) { + return exports.MsgSell_Order.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: exports.MsgSell_Order.encode(message).finish() + }; + } +}; +function createBaseMsgSellResponse() { + return { + sellOrderIds: [] + }; +} +exports.MsgSellResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + writer.uint32(10).fork(); + for (const v of message.sellOrderIds) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSellResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.sellOrderIds.push(reader.uint64()); + } + } + else { + message.sellOrderIds.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.sellOrderIds) { + obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); + } + else { + obj.sell_order_ids = message.sellOrderIds; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSellResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSellResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSellResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + value: exports.MsgSellResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders() { + return { + seller: "", + updates: [] + }; +} +exports.MsgUpdateSellOrders = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.updates) { + exports.MsgUpdateSellOrders_Update.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.updates.push(exports.MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateSellOrders(); + message.seller = object.seller ?? ""; + message.updates = object.updates?.map(e => exports.MsgUpdateSellOrders_Update.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateSellOrders(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.updates = object.updates?.map(e => exports.MsgUpdateSellOrders_Update.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.updates) { + obj.updates = message.updates.map(e => e ? exports.MsgUpdateSellOrders_Update.toAmino(e) : undefined); + } + else { + obj.updates = message.updates; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateSellOrders.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgUpdateSellOrders", + value: exports.MsgUpdateSellOrders.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateSellOrders.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateSellOrders.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: exports.MsgUpdateSellOrders.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders_Update() { + return { + sellOrderId: BigInt(0), + newQuantity: "", + newAskPrice: undefined, + disableAutoRetire: false, + newExpiration: undefined + }; +} +exports.MsgUpdateSellOrders_Update = { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + if (message.newQuantity !== "") { + writer.uint32(18).string(message.newQuantity); + } + if (message.newAskPrice !== undefined) { + coin_1.Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.newExpiration !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.newExpiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders_Update(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + case 2: + message.newQuantity = reader.string(); + break; + case 3: + message.newAskPrice = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.newExpiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateSellOrders_Update(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.newQuantity = object.newQuantity ?? ""; + message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? coin_1.Coin.fromPartial(object.newAskPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.newExpiration = object.newExpiration ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateSellOrders_Update(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.new_quantity !== undefined && object.new_quantity !== null) { + message.newQuantity = object.new_quantity; + } + if (object.new_ask_price !== undefined && object.new_ask_price !== null) { + message.newAskPrice = coin_1.Coin.fromAmino(object.new_ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.new_expiration !== undefined && object.new_expiration !== null) { + message.newExpiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.new_expiration)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; + obj.new_ask_price = message.newAskPrice ? coin_1.Coin.toAmino(message.newAskPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.new_expiration = message.newExpiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.newExpiration)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateSellOrders_Update.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateSellOrders_Update.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateSellOrders_Update.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + value: exports.MsgUpdateSellOrders_Update.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrdersResponse() { + return {}; +} +exports.MsgUpdateSellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateSellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateSellOrdersResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateSellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + value: exports.MsgUpdateSellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrder() { + return { + seller: "", + sellOrderId: BigInt(0) + }; +} +exports.MsgCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancelSellOrder(); + message.seller = object.seller ?? ""; + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancelSellOrder(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelSellOrder.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgCancelSellOrder", + value: exports.MsgCancelSellOrder.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancelSellOrder.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: exports.MsgCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrderResponse() { + return {}; +} +exports.MsgCancelSellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelSellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCancelSellOrderResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelSellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + value: exports.MsgCancelSellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect() { + return { + buyer: "", + orders: [] + }; +} +exports.MsgBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.buyer !== "") { + writer.uint32(10).string(message.buyer); + } + for (const v of message.orders) { + exports.MsgBuyDirect_Order.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyer = reader.string(); + break; + case 2: + message.orders.push(exports.MsgBuyDirect_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBuyDirect(); + message.buyer = object.buyer ?? ""; + message.orders = object.orders?.map(e => exports.MsgBuyDirect_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBuyDirect(); + if (object.buyer !== undefined && object.buyer !== null) { + message.buyer = object.buyer; + } + message.orders = object.orders?.map(e => exports.MsgBuyDirect_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.buyer = message.buyer === "" ? undefined : message.buyer; + if (message.orders) { + obj.orders = message.orders.map(e => e ? exports.MsgBuyDirect_Order.toAmino(e) : undefined); + } + else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBuyDirect.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgBuyDirect", + value: exports.MsgBuyDirect.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgBuyDirect.decode(message.value); + }, + toProto(message) { + return exports.MsgBuyDirect.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: exports.MsgBuyDirect.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect_Order() { + return { + sellOrderId: BigInt(0), + quantity: "", + bidPrice: undefined, + disableAutoRetire: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +exports.MsgBuyDirect_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + if (message.quantity !== "") { + writer.uint32(26).string(message.quantity); + } + if (message.bidPrice !== undefined) { + coin_1.Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.sellOrderId = reader.uint64(); + break; + case 3: + message.quantity = reader.string(); + break; + case 4: + message.bidPrice = coin_1.Coin.decode(reader, reader.uint32()); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBuyDirect_Order(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? coin_1.Coin.fromPartial(object.bidPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBuyDirect_Order(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.bid_price !== undefined && object.bid_price !== null) { + message.bidPrice = coin_1.Coin.fromAmino(object.bid_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.bid_price = message.bidPrice ? coin_1.Coin.toAmino(message.bidPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBuyDirect_Order.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBuyDirect_Order.decode(message.value); + }, + toProto(message) { + return exports.MsgBuyDirect_Order.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: exports.MsgBuyDirect_Order.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirectResponse() { + return {}; +} +exports.MsgBuyDirectResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBuyDirectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBuyDirectResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgBuyDirectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + value: exports.MsgBuyDirectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenom() { + return { + authority: "", + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +exports.MsgAddAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.bankDenom !== "") { + writer.uint32(18).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(26).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.bankDenom = reader.string(); + break; + case 3: + message.displayDenom = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddAllowedDenom(); + message.authority = object.authority ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgAddAllowedDenom", + value: exports.MsgAddAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAddAllowedDenom.decode(message.value); + }, + toProto(message) { + return exports.MsgAddAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: exports.MsgAddAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenomResponse() { + return {}; +} +exports.MsgAddAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAddAllowedDenomResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAddAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + value: exports.MsgAddAllowedDenomResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenom() { + return { + authority: "", + denom: "" + }; +} +exports.MsgRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveAllowedDenom(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen.marketplace/MsgRemoveAllowedDenom", + value: exports.MsgRemoveAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRemoveAllowedDenom.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: exports.MsgRemoveAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenomResponse() { + return {}; +} +exports.MsgRemoveAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRemoveAllowedDenomResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + value: exports.MsgRemoveAllowedDenomResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts new file mode 100644 index 00000000..559a3b22 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts @@ -0,0 +1,84 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + sell(value: MsgSell): { + typeUrl: string; + value: Uint8Array; + }; + updateSellOrders(value: MsgUpdateSellOrders): { + typeUrl: string; + value: Uint8Array; + }; + cancelSellOrder(value: MsgCancelSellOrder): { + typeUrl: string; + value: Uint8Array; + }; + buyDirect(value: MsgBuyDirect): { + typeUrl: string; + value: Uint8Array; + }; + addAllowedDenom(value: MsgAddAllowedDenom): { + typeUrl: string; + value: Uint8Array; + }; + removeAllowedDenom(value: MsgRemoveAllowedDenom): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + sell(value: MsgSell): { + typeUrl: string; + value: MsgSell; + }; + updateSellOrders(value: MsgUpdateSellOrders): { + typeUrl: string; + value: MsgUpdateSellOrders; + }; + cancelSellOrder(value: MsgCancelSellOrder): { + typeUrl: string; + value: MsgCancelSellOrder; + }; + buyDirect(value: MsgBuyDirect): { + typeUrl: string; + value: MsgBuyDirect; + }; + addAllowedDenom(value: MsgAddAllowedDenom): { + typeUrl: string; + value: MsgAddAllowedDenom; + }; + removeAllowedDenom(value: MsgRemoveAllowedDenom): { + typeUrl: string; + value: MsgRemoveAllowedDenom; + }; + }; + fromPartial: { + sell(value: MsgSell): { + typeUrl: string; + value: MsgSell; + }; + updateSellOrders(value: MsgUpdateSellOrders): { + typeUrl: string; + value: MsgUpdateSellOrders; + }; + cancelSellOrder(value: MsgCancelSellOrder): { + typeUrl: string; + value: MsgCancelSellOrder; + }; + buyDirect(value: MsgBuyDirect): { + typeUrl: string; + value: MsgBuyDirect; + }; + addAllowedDenom(value: MsgAddAllowedDenom): { + typeUrl: string; + value: MsgAddAllowedDenom; + }; + removeAllowedDenom(value: MsgRemoveAllowedDenom): { + typeUrl: string; + value: MsgRemoveAllowedDenom; + }; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js new file mode 100644 index 00000000..3073a280 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js @@ -0,0 +1,127 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.ecocredit.marketplace.v1.MsgSell", tx_1.MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", tx_1.MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", tx_1.MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", tx_1.MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", tx_1.MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", tx_1.MsgRemoveAllowedDenom]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: tx_1.MsgSell.encode(value).finish() + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: tx_1.MsgUpdateSellOrders.encode(value).finish() + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: tx_1.MsgCancelSellOrder.encode(value).finish() + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: tx_1.MsgBuyDirect.encode(value).finish() + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: tx_1.MsgAddAllowedDenom.encode(value).finish() + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: tx_1.MsgRemoveAllowedDenom.encode(value).finish() + }; + } + }, + withTypeUrl: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value + }; + } + }, + fromPartial: { + sell(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: tx_1.MsgSell.fromPartial(value) + }; + }, + updateSellOrders(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: tx_1.MsgUpdateSellOrders.fromPartial(value) + }; + }, + cancelSellOrder(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: tx_1.MsgCancelSellOrder.fromPartial(value) + }; + }, + buyDirect(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: tx_1.MsgBuyDirect.fromPartial(value) + }; + }, + addAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: tx_1.MsgAddAllowedDenom.fromPartial(value) + }; + }, + removeAllowedDenom(value) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: tx_1.MsgRemoveAllowedDenom.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..9f22b1bb --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts @@ -0,0 +1,36 @@ +import { Rpc } from "../../../../helpers"; +import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; +/** Msg is the regen.ecocredit.marketplace.v1 Msg service. */ +export interface Msg { + /** Sell creates new sell orders. */ + sell(request: MsgSell): Promise; + /** UpdateSellOrders updates existing sell orders. */ + updateSellOrders(request: MsgUpdateSellOrders): Promise; + /** CancelSellOrder cancels a sell order and returns the credits from escrow. */ + cancelSellOrder(request: MsgCancelSellOrder): Promise; + /** BuyDirect purchases credits directly from the specified sell order. */ + buyDirect(request: MsgBuyDirect): Promise; + /** + * AddAllowedDenom is a governance method that allows the addition of + * new allowed denom. + * + * Since Revision 1 + */ + addAllowedDenom(request: MsgAddAllowedDenom): Promise; + /** + * RemoveAllowedDenom is a governance method that removes allowed denom. + * + * Since Revision 1 + */ + removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + sell(request: MsgSell): Promise; + updateSellOrders(request: MsgUpdateSellOrders): Promise; + cancelSellOrder(request: MsgCancelSellOrder): Promise; + buyDirect(request: MsgBuyDirect): Promise; + addAllowedDenom(request: MsgAddAllowedDenom): Promise; + removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js new file mode 100644 index 00000000..81f80cc1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.sell = this.sell.bind(this); + this.updateSellOrders = this.updateSellOrders.bind(this); + this.cancelSellOrder = this.cancelSellOrder.bind(this); + this.buyDirect = this.buyDirect.bind(this); + this.addAllowedDenom = this.addAllowedDenom.bind(this); + this.removeAllowedDenom = this.removeAllowedDenom.bind(this); + } + sell(request) { + const data = tx_1.MsgSell.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); + return promise.then(data => tx_1.MsgSellResponse.decode(new binary_1.BinaryReader(data))); + } + updateSellOrders(request) { + const data = tx_1.MsgUpdateSellOrders.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); + return promise.then(data => tx_1.MsgUpdateSellOrdersResponse.decode(new binary_1.BinaryReader(data))); + } + cancelSellOrder(request) { + const data = tx_1.MsgCancelSellOrder.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); + return promise.then(data => tx_1.MsgCancelSellOrderResponse.decode(new binary_1.BinaryReader(data))); + } + buyDirect(request) { + const data = tx_1.MsgBuyDirect.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); + return promise.then(data => tx_1.MsgBuyDirectResponse.decode(new binary_1.BinaryReader(data))); + } + addAllowedDenom(request) { + const data = tx_1.MsgAddAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); + return promise.then(data => tx_1.MsgAddAllowedDenomResponse.decode(new binary_1.BinaryReader(data))); + } + removeAllowedDenom(request) { + const data = tx_1.MsgRemoveAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); + return promise.then(data => tx_1.MsgRemoveAllowedDenomResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts new file mode 100644 index 00000000..7273f8a1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts @@ -0,0 +1,70 @@ +import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposal { + /** title is the title of the proposal. */ + title: string; + /** description is the description of the proposal. */ + description: string; + /** + * denom contains coin denom information that will be added to the + * list of allowed denoms for use in the marketplace. + */ + denom?: AllowedDenom; +} +export interface AllowDenomProposalProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; + value: Uint8Array; +} +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposalAmino { + /** title is the title of the proposal. */ + title?: string; + /** description is the description of the proposal. */ + description?: string; + /** + * denom contains coin denom information that will be added to the + * list of allowed denoms for use in the marketplace. + */ + denom?: AllowedDenomAmino; +} +export interface AllowDenomProposalAminoMsg { + type: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; + value: AllowDenomProposalAmino; +} +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposalSDKType { + title: string; + description: string; + denom?: AllowedDenomSDKType; +} +export declare const AllowDenomProposal: { + typeUrl: string; + encode(message: AllowDenomProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal; + fromPartial(object: Partial): AllowDenomProposal; + fromAmino(object: AllowDenomProposalAmino): AllowDenomProposal; + toAmino(message: AllowDenomProposal): AllowDenomProposalAmino; + fromAminoMsg(object: AllowDenomProposalAminoMsg): AllowDenomProposal; + fromProtoMsg(message: AllowDenomProposalProtoMsg): AllowDenomProposal; + toProto(message: AllowDenomProposal): Uint8Array; + toProtoMsg(message: AllowDenomProposal): AllowDenomProposalProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/types.js b/packages/api/dist/regen/ecocredit/marketplace/v1/types.js new file mode 100644 index 00000000..f609e845 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/marketplace/v1/types.js @@ -0,0 +1,93 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllowDenomProposal = void 0; +//@ts-nocheck +const state_1 = require("./state"); +const binary_1 = require("../../../../binary"); +function createBaseAllowDenomProposal() { + return { + title: "", + description: "", + denom: undefined + }; +} +exports.AllowDenomProposal = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.denom !== undefined) { + state_1.AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowDenomProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.denom = state_1.AllowedDenom.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowDenomProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.denom = object.denom !== undefined && object.denom !== null ? state_1.AllowedDenom.fromPartial(object.denom) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseAllowDenomProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = state_1.AllowedDenom.fromAmino(object.denom); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.denom = message.denom ? state_1.AllowedDenom.toAmino(message.denom) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AllowDenomProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AllowDenomProposal.decode(message.value); + }, + toProto(message) { + return exports.AllowDenomProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + value: exports.AllowDenomProposal.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts new file mode 100644 index 00000000..168f8a4b --- /dev/null +++ b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts @@ -0,0 +1,222 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatch { + /** market_id defines the market within which this match exists. */ + marketId: bigint; + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** sell_order_id is the sell order ID. */ + sellOrderId: bigint; + /** + * bid_price_complement is the the complement (^ operator) of the bid price + * encoded as a uint32 (which should have sufficient precision) - effectively + * ~price * 10^exponent (usually 10^6). The complement is used so that bids + * can be sorted high to low. + */ + bidPriceComplement: number; + /** + * ask_price is the ask price encoded to a uint32. Ask prices are sorted low + * to high. + */ + askPrice: number; +} +export interface BuyOrderSellOrderMatchProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; + value: Uint8Array; +} +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatchAmino { + /** market_id defines the market within which this match exists. */ + market_id?: string; + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** sell_order_id is the sell order ID. */ + sell_order_id?: string; + /** + * bid_price_complement is the the complement (^ operator) of the bid price + * encoded as a uint32 (which should have sufficient precision) - effectively + * ~price * 10^exponent (usually 10^6). The complement is used so that bids + * can be sorted high to low. + */ + bid_price_complement?: number; + /** + * ask_price is the ask price encoded to a uint32. Ask prices are sorted low + * to high. + */ + ask_price?: number; +} +export interface BuyOrderSellOrderMatchAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; + value: BuyOrderSellOrderMatchAmino; +} +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatchSDKType { + market_id: bigint; + buy_order_id: bigint; + sell_order_id: bigint; + bid_price_complement: number; + ask_price: number; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** class_id is the class ID. */ + classId: bigint; + /** project_location is the project location in the selector's criteria. */ + projectLocation: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + minStartDate?: Date; + /** max_end_date is the maximum end date in the selector's criteria. */ + maxEndDate?: Date; +} +export interface BuyOrderClassSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; + value: Uint8Array; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** class_id is the class ID. */ + class_id?: string; + /** project_location is the project location in the selector's criteria. */ + project_location?: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + min_start_date?: string; + /** max_end_date is the maximum end date in the selector's criteria. */ + max_end_date?: string; +} +export interface BuyOrderClassSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; + value: BuyOrderClassSelectorAmino; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelectorSDKType { + buy_order_id: bigint; + class_id: bigint; + project_location: string; + min_start_date?: Date; + max_end_date?: Date; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** project_id is the project ID. */ + projectId: bigint; + /** min_start_date is the minimum start date in the selector's criteria. */ + minStartDate?: Date; + /** max_end_date is the maximum end date in the selector's criteria. */ + maxEndDate?: Date; +} +export interface BuyOrderProjectSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; + value: Uint8Array; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** project_id is the project ID. */ + project_id?: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + min_start_date?: string; + /** max_end_date is the maximum end date in the selector's criteria. */ + max_end_date?: string; +} +export interface BuyOrderProjectSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; + value: BuyOrderProjectSelectorAmino; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelectorSDKType { + buy_order_id: bigint; + project_id: bigint; + min_start_date?: Date; + max_end_date?: Date; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** batch_id is the batch ID. */ + batchId: bigint; +} +export interface BuyOrderBatchSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; + value: Uint8Array; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** batch_id is the batch ID. */ + batch_id?: string; +} +export interface BuyOrderBatchSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; + value: BuyOrderBatchSelectorAmino; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelectorSDKType { + buy_order_id: bigint; + batch_id: bigint; +} +export declare const BuyOrderSellOrderMatch: { + typeUrl: string; + encode(message: BuyOrderSellOrderMatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch; + fromPartial(object: Partial): BuyOrderSellOrderMatch; + fromAmino(object: BuyOrderSellOrderMatchAmino): BuyOrderSellOrderMatch; + toAmino(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchAmino; + fromAminoMsg(object: BuyOrderSellOrderMatchAminoMsg): BuyOrderSellOrderMatch; + fromProtoMsg(message: BuyOrderSellOrderMatchProtoMsg): BuyOrderSellOrderMatch; + toProto(message: BuyOrderSellOrderMatch): Uint8Array; + toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg; +}; +export declare const BuyOrderClassSelector: { + typeUrl: string; + encode(message: BuyOrderClassSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector; + fromPartial(object: Partial): BuyOrderClassSelector; + fromAmino(object: BuyOrderClassSelectorAmino): BuyOrderClassSelector; + toAmino(message: BuyOrderClassSelector): BuyOrderClassSelectorAmino; + fromAminoMsg(object: BuyOrderClassSelectorAminoMsg): BuyOrderClassSelector; + fromProtoMsg(message: BuyOrderClassSelectorProtoMsg): BuyOrderClassSelector; + toProto(message: BuyOrderClassSelector): Uint8Array; + toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg; +}; +export declare const BuyOrderProjectSelector: { + typeUrl: string; + encode(message: BuyOrderProjectSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector; + fromPartial(object: Partial): BuyOrderProjectSelector; + fromAmino(object: BuyOrderProjectSelectorAmino): BuyOrderProjectSelector; + toAmino(message: BuyOrderProjectSelector): BuyOrderProjectSelectorAmino; + fromAminoMsg(object: BuyOrderProjectSelectorAminoMsg): BuyOrderProjectSelector; + fromProtoMsg(message: BuyOrderProjectSelectorProtoMsg): BuyOrderProjectSelector; + toProto(message: BuyOrderProjectSelector): Uint8Array; + toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg; +}; +export declare const BuyOrderBatchSelector: { + typeUrl: string; + encode(message: BuyOrderBatchSelector, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector; + fromPartial(object: Partial): BuyOrderBatchSelector; + fromAmino(object: BuyOrderBatchSelectorAmino): BuyOrderBatchSelector; + toAmino(message: BuyOrderBatchSelector): BuyOrderBatchSelectorAmino; + fromAminoMsg(object: BuyOrderBatchSelectorAminoMsg): BuyOrderBatchSelector; + fromProtoMsg(message: BuyOrderBatchSelectorProtoMsg): BuyOrderBatchSelector; + toProto(message: BuyOrderBatchSelector): Uint8Array; + toProtoMsg(message: BuyOrderBatchSelector): BuyOrderBatchSelectorProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js new file mode 100644 index 00000000..018974a4 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js @@ -0,0 +1,403 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BuyOrderBatchSelector = exports.BuyOrderProjectSelector = exports.BuyOrderClassSelector = exports.BuyOrderSellOrderMatch = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../../google/protobuf/timestamp"); +const binary_1 = require("../../../../binary"); +const helpers_1 = require("../../../../helpers"); +function createBaseBuyOrderSellOrderMatch() { + return { + marketId: BigInt(0), + buyOrderId: BigInt(0), + sellOrderId: BigInt(0), + bidPriceComplement: 0, + askPrice: 0 + }; +} +exports.BuyOrderSellOrderMatch = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.marketId !== BigInt(0)) { + writer.uint32(8).uint64(message.marketId); + } + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.buyOrderId); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(24).uint64(message.sellOrderId); + } + if (message.bidPriceComplement !== 0) { + writer.uint32(37).fixed32(message.bidPriceComplement); + } + if (message.askPrice !== 0) { + writer.uint32(45).fixed32(message.askPrice); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderSellOrderMatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.marketId = reader.uint64(); + break; + case 2: + message.buyOrderId = reader.uint64(); + break; + case 3: + message.sellOrderId = reader.uint64(); + break; + case 4: + message.bidPriceComplement = reader.fixed32(); + break; + case 5: + message.askPrice = reader.fixed32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderSellOrderMatch(); + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.bidPriceComplement = object.bidPriceComplement ?? 0; + message.askPrice = object.askPrice ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderSellOrderMatch(); + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { + message.bidPriceComplement = object.bid_price_complement; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = object.ask_price; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; + obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; + return obj; + }, + fromAminoMsg(object) { + return exports.BuyOrderSellOrderMatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BuyOrderSellOrderMatch.decode(message.value); + }, + toProto(message) { + return exports.BuyOrderSellOrderMatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + value: exports.BuyOrderSellOrderMatch.encode(message).finish() + }; + } +}; +function createBaseBuyOrderClassSelector() { + return { + buyOrderId: BigInt(0), + classId: BigInt(0), + projectLocation: "", + minStartDate: undefined, + maxEndDate: undefined + }; +} +exports.BuyOrderClassSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.classId !== BigInt(0)) { + writer.uint32(16).uint64(message.classId); + } + if (message.projectLocation !== "") { + writer.uint32(26).string(message.projectLocation); + } + if (message.minStartDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(34).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.maxEndDate), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderClassSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.classId = reader.uint64(); + break; + case 3: + message.projectLocation = reader.string(); + break; + case 4: + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderClassSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); + message.projectLocation = object.projectLocation ?? ""; + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderClassSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = BigInt(object.class_id); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BuyOrderClassSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BuyOrderClassSelector.decode(message.value); + }, + toProto(message) { + return exports.BuyOrderClassSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + value: exports.BuyOrderClassSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderProjectSelector() { + return { + buyOrderId: BigInt(0), + projectId: BigInt(0), + minStartDate: undefined, + maxEndDate: undefined + }; +} +exports.BuyOrderProjectSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.projectId !== BigInt(0)) { + writer.uint32(16).uint64(message.projectId); + } + if (message.minStartDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(26).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.maxEndDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderProjectSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.projectId = reader.uint64(); + break; + case 3: + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderProjectSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderProjectSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = BigInt(object.project_id); + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; + obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BuyOrderProjectSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BuyOrderProjectSelector.decode(message.value); + }, + toProto(message) { + return exports.BuyOrderProjectSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + value: exports.BuyOrderProjectSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderBatchSelector() { + return { + buyOrderId: BigInt(0), + batchId: BigInt(0) + }; +} +exports.BuyOrderBatchSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.batchId !== BigInt(0)) { + writer.uint32(16).uint64(message.batchId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderBatchSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.batchId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBuyOrderBatchSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBuyOrderBatchSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.batch_id !== undefined && object.batch_id !== null) { + message.batchId = BigInt(object.batch_id); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BuyOrderBatchSelector.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BuyOrderBatchSelector.decode(message.value); + }, + toProto(message) { + return exports.BuyOrderBatchSelector.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + value: exports.BuyOrderBatchSelector.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/events.d.ts b/packages/api/dist/regen/ecocredit/v1/events.d.ts new file mode 100644 index 00000000..cf8c3f69 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/events.d.ts @@ -0,0 +1,958 @@ +import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClass { + /** class_id is the unique identifier of the credit class. */ + classId: string; +} +export interface EventCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateClass"; + value: Uint8Array; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassAmino { + /** class_id is the unique identifier of the credit class. */ + class_id?: string; +} +export interface EventCreateClassAminoMsg { + type: "/regen.ecocredit.v1.EventCreateClass"; + value: EventCreateClassAmino; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassSDKType { + class_id: string; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProject { + /** project_id is the unique identifier of the project. */ + projectId: string; +} +export interface EventCreateProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateProject"; + value: Uint8Array; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProjectAmino { + /** project_id is the unique identifier of the project. */ + project_id?: string; +} +export interface EventCreateProjectAminoMsg { + type: "/regen.ecocredit.v1.EventCreateProject"; + value: EventCreateProjectAmino; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProjectSDKType { + project_id: string; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatch { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. + */ + originTx?: OriginTx; +} +export interface EventCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; + value: Uint8Array; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. + */ + origin_tx?: OriginTxAmino; +} +export interface EventCreateBatchAminoMsg { + type: "/regen.ecocredit.v1.EventCreateBatch"; + value: EventCreateBatchAmino; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchSDKType { + batch_denom: string; + origin_tx?: OriginTxSDKType; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMint { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batchDenom: string; + /** tradable_amount is the amount of tradable credits minted. */ + tradableAmount: string; + /** retired_amount is the amount of retired credits minted. */ + retiredAmount: string; +} +export interface EventMintProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventMint"; + value: Uint8Array; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMintAmino { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batch_denom?: string; + /** tradable_amount is the amount of tradable credits minted. */ + tradable_amount?: string; + /** retired_amount is the amount of retired credits minted. */ + retired_amount?: string; +} +export interface EventMintAminoMsg { + type: "/regen.ecocredit.v1.EventMint"; + value: EventMintAmino; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMintSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCredits { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batchDenom: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + */ + originTx?: OriginTx; +} +export interface EventMintBatchCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; + value: Uint8Array; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCreditsAmino { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batch_denom?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + */ + origin_tx?: OriginTxAmino; +} +export interface EventMintBatchCreditsAminoMsg { + type: "/regen.ecocredit.v1.EventMintBatchCredits"; + value: EventMintBatchCreditsAmino; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCreditsSDKType { + batch_denom: string; + origin_tx?: OriginTxSDKType; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransfer { + /** + * sender is the sender of the credits. In the case that the credits were + * transferred from a base account, this will be the account address. In the + * case that the credits were transferred from a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + sender: string; + /** + * recipient is the recipient of the credits. In the case that the credits + * were transferred to a base account, this will be the account address. In + * the case that the credits were transferred to a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + recipient: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits received. */ + retiredAmount: string; +} +export interface EventTransferProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventTransfer"; + value: Uint8Array; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransferAmino { + /** + * sender is the sender of the credits. In the case that the credits were + * transferred from a base account, this will be the account address. In the + * case that the credits were transferred from a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + sender?: string; + /** + * recipient is the recipient of the credits. In the case that the credits + * were transferred to a base account, this will be the account address. In + * the case that the credits were transferred to a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + recipient?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits received. */ + retired_amount?: string; +} +export interface EventTransferAminoMsg { + type: "/regen.ecocredit.v1.EventTransfer"; + value: EventTransferAmino; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransferSDKType { + sender: string; + recipient: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetire { + /** + * owner is the address of the account that owns the retired credits. This + * will be the account receiving credits in the case that credits were retired + * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, + * retired upon taking from a basket using basket.Msg/Take, or retired upon + * purchase using marketplace.Msg/BuyDirect. + */ + owner: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were retired. + */ + batchDenom: string; + /** amount is the decimal number of credits that have been retired. */ + amount: string; + /** + * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + jurisdiction: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason: string; +} +export interface EventRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventRetire"; + value: Uint8Array; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireAmino { + /** + * owner is the address of the account that owns the retired credits. This + * will be the account receiving credits in the case that credits were retired + * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, + * retired upon taking from a basket using basket.Msg/Take, or retired upon + * purchase using marketplace.Msg/BuyDirect. + */ + owner?: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were retired. + */ + batch_denom?: string; + /** amount is the decimal number of credits that have been retired. */ + amount?: string; + /** + * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + jurisdiction?: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason?: string; +} +export interface EventRetireAminoMsg { + type: "/regen.ecocredit.v1.EventRetire"; + value: EventRetireAmino; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireSDKType { + owner: string; + batch_denom: string; + amount: string; + jurisdiction: string; + reason: string; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancel { + /** owner is the address of the account that cancelled the credits. */ + owner: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were cancelled. + */ + batchDenom: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount: string; + /** reason is the reason the credits were cancelled. */ + reason: string; +} +export interface EventCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCancel"; + value: Uint8Array; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelAmino { + /** owner is the address of the account that cancelled the credits. */ + owner?: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were cancelled. + */ + batch_denom?: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount?: string; + /** reason is the reason the credits were cancelled. */ + reason?: string; +} +export interface EventCancelAminoMsg { + type: "/regen.ecocredit.v1.EventCancel"; + value: EventCancelAmino; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelSDKType { + owner: string; + batch_denom: string; + amount: string; + reason: string; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdmin { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin"; + value: Uint8Array; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdminAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassAdminAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; + value: EventUpdateClassAdminAmino; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdminSDKType { + class_id: string; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuers { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers"; + value: Uint8Array; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuersAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassIssuersAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; + value: EventUpdateClassIssuersAmino; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuersSDKType { + class_id: string; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadata { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata"; + value: Uint8Array; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadataAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; + value: EventUpdateClassMetadataAmino; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadataSDKType { + class_id: string; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdmin { + /** project_id is the unique identifier of the project that was updated. */ + projectId: string; +} +export interface EventUpdateProjectAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; + value: Uint8Array; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdminAmino { + /** project_id is the unique identifier of the project that was updated. */ + project_id?: string; +} +export interface EventUpdateProjectAdminAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; + value: EventUpdateProjectAdminAmino; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdminSDKType { + project_id: string; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadata { + /** project_id is the unique identifier of the project that was updated. */ + projectId: string; +} +export interface EventUpdateProjectMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; + value: Uint8Array; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadataAmino { + /** project_id is the unique identifier of the project that was updated. */ + project_id?: string; +} +export interface EventUpdateProjectMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; + value: EventUpdateProjectMetadataAmino; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadataSDKType { + project_id: string; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadata { + /** batch_denom is the unique identifier of the batch that was updated. */ + batchDenom: string; +} +export interface EventUpdateBatchMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; + value: Uint8Array; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadataAmino { + /** batch_denom is the unique identifier of the batch that was updated. */ + batch_denom?: string; +} +export interface EventUpdateBatchMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; + value: EventUpdateBatchMetadataAmino; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadataSDKType { + batch_denom: string; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatch { + /** batch_denom is the denom of the batch that was sealed. */ + batchDenom: string; +} +export interface EventSealBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventSealBatch"; + value: Uint8Array; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatchAmino { + /** batch_denom is the denom of the batch that was sealed. */ + batch_denom?: string; +} +export interface EventSealBatchAminoMsg { + type: "/regen.ecocredit.v1.EventSealBatch"; + value: EventSealBatchAmino; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatchSDKType { + batch_denom: string; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditType { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation: string; +} +export interface EventAddCreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType"; + value: Uint8Array; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditTypeAmino { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation?: string; +} +export interface EventAddCreditTypeAminoMsg { + type: "/regen.ecocredit.v1.EventAddCreditType"; + value: EventAddCreditTypeAmino; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditTypeSDKType { + abbreviation: string; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridge { + /** target is the target chain. */ + target: string; + /** recipient is the recipient address. */ + recipient: string; + /** contract is the contract address. */ + contract: string; + /** amount is the amount of credits. */ + amount: string; + /** + * owner is the owner address. + * + * Since Revision 1 + */ + owner: string; + /** + * batch_denom is the credit batch denom. + * + * Since Revision 3 + */ + batchDenom: string; +} +export interface EventBridgeProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventBridge"; + value: Uint8Array; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridgeAmino { + /** target is the target chain. */ + target?: string; + /** recipient is the recipient address. */ + recipient?: string; + /** contract is the contract address. */ + contract?: string; + /** amount is the amount of credits. */ + amount?: string; + /** + * owner is the owner address. + * + * Since Revision 1 + */ + owner?: string; + /** + * batch_denom is the credit batch denom. + * + * Since Revision 3 + */ + batch_denom?: string; +} +export interface EventBridgeAminoMsg { + type: "/regen.ecocredit.v1.EventBridge"; + value: EventBridgeAmino; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridgeSDKType { + target: string; + recipient: string; + contract: string; + amount: string; + owner: string; + batch_denom: string; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceive { + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + projectId: string; + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batchDenom: string; + /** + * amount is the amount of credits. + * + * Since Revision 3 + */ + amount: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + * + * Since Revision 3 + */ + originTx?: OriginTx; +} +export interface EventBridgeReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; + value: Uint8Array; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceiveAmino { + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + project_id?: string; + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batch_denom?: string; + /** + * amount is the amount of credits. + * + * Since Revision 3 + */ + amount?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + * + * Since Revision 3 + */ + origin_tx?: OriginTxAmino; +} +export interface EventBridgeReceiveAminoMsg { + type: "/regen.ecocredit.v1.EventBridgeReceive"; + value: EventBridgeReceiveAmino; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceiveSDKType { + project_id: string; + batch_denom: string; + amount: string; + origin_tx?: OriginTxSDKType; +} +export declare const EventCreateClass: { + typeUrl: string; + encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; + fromPartial(object: Partial): EventCreateClass; + fromAmino(object: EventCreateClassAmino): EventCreateClass; + toAmino(message: EventCreateClass): EventCreateClassAmino; + fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; + fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; + toProto(message: EventCreateClass): Uint8Array; + toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; +}; +export declare const EventCreateProject: { + typeUrl: string; + encode(message: EventCreateProject, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject; + fromPartial(object: Partial): EventCreateProject; + fromAmino(object: EventCreateProjectAmino): EventCreateProject; + toAmino(message: EventCreateProject): EventCreateProjectAmino; + fromAminoMsg(object: EventCreateProjectAminoMsg): EventCreateProject; + fromProtoMsg(message: EventCreateProjectProtoMsg): EventCreateProject; + toProto(message: EventCreateProject): Uint8Array; + toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg; +}; +export declare const EventCreateBatch: { + typeUrl: string; + encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; + fromPartial(object: Partial): EventCreateBatch; + fromAmino(object: EventCreateBatchAmino): EventCreateBatch; + toAmino(message: EventCreateBatch): EventCreateBatchAmino; + fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; + fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; + toProto(message: EventCreateBatch): Uint8Array; + toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; +}; +export declare const EventMint: { + typeUrl: string; + encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventMint; + fromPartial(object: Partial): EventMint; + fromAmino(object: EventMintAmino): EventMint; + toAmino(message: EventMint): EventMintAmino; + fromAminoMsg(object: EventMintAminoMsg): EventMint; + fromProtoMsg(message: EventMintProtoMsg): EventMint; + toProto(message: EventMint): Uint8Array; + toProtoMsg(message: EventMint): EventMintProtoMsg; +}; +export declare const EventMintBatchCredits: { + typeUrl: string; + encode(message: EventMintBatchCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits; + fromPartial(object: Partial): EventMintBatchCredits; + fromAmino(object: EventMintBatchCreditsAmino): EventMintBatchCredits; + toAmino(message: EventMintBatchCredits): EventMintBatchCreditsAmino; + fromAminoMsg(object: EventMintBatchCreditsAminoMsg): EventMintBatchCredits; + fromProtoMsg(message: EventMintBatchCreditsProtoMsg): EventMintBatchCredits; + toProto(message: EventMintBatchCredits): Uint8Array; + toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg; +}; +export declare const EventTransfer: { + typeUrl: string; + encode(message: EventTransfer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer; + fromPartial(object: Partial): EventTransfer; + fromAmino(object: EventTransferAmino): EventTransfer; + toAmino(message: EventTransfer): EventTransferAmino; + fromAminoMsg(object: EventTransferAminoMsg): EventTransfer; + fromProtoMsg(message: EventTransferProtoMsg): EventTransfer; + toProto(message: EventTransfer): Uint8Array; + toProtoMsg(message: EventTransfer): EventTransferProtoMsg; +}; +export declare const EventRetire: { + typeUrl: string; + encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; + fromPartial(object: Partial): EventRetire; + fromAmino(object: EventRetireAmino): EventRetire; + toAmino(message: EventRetire): EventRetireAmino; + fromAminoMsg(object: EventRetireAminoMsg): EventRetire; + fromProtoMsg(message: EventRetireProtoMsg): EventRetire; + toProto(message: EventRetire): Uint8Array; + toProtoMsg(message: EventRetire): EventRetireProtoMsg; +}; +export declare const EventCancel: { + typeUrl: string; + encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; + fromPartial(object: Partial): EventCancel; + fromAmino(object: EventCancelAmino): EventCancel; + toAmino(message: EventCancel): EventCancelAmino; + fromAminoMsg(object: EventCancelAminoMsg): EventCancel; + fromProtoMsg(message: EventCancelProtoMsg): EventCancel; + toProto(message: EventCancel): Uint8Array; + toProtoMsg(message: EventCancel): EventCancelProtoMsg; +}; +export declare const EventUpdateClassAdmin: { + typeUrl: string; + encode(message: EventUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin; + fromPartial(object: Partial): EventUpdateClassAdmin; + fromAmino(object: EventUpdateClassAdminAmino): EventUpdateClassAdmin; + toAmino(message: EventUpdateClassAdmin): EventUpdateClassAdminAmino; + fromAminoMsg(object: EventUpdateClassAdminAminoMsg): EventUpdateClassAdmin; + fromProtoMsg(message: EventUpdateClassAdminProtoMsg): EventUpdateClassAdmin; + toProto(message: EventUpdateClassAdmin): Uint8Array; + toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg; +}; +export declare const EventUpdateClassIssuers: { + typeUrl: string; + encode(message: EventUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers; + fromPartial(object: Partial): EventUpdateClassIssuers; + fromAmino(object: EventUpdateClassIssuersAmino): EventUpdateClassIssuers; + toAmino(message: EventUpdateClassIssuers): EventUpdateClassIssuersAmino; + fromAminoMsg(object: EventUpdateClassIssuersAminoMsg): EventUpdateClassIssuers; + fromProtoMsg(message: EventUpdateClassIssuersProtoMsg): EventUpdateClassIssuers; + toProto(message: EventUpdateClassIssuers): Uint8Array; + toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg; +}; +export declare const EventUpdateClassMetadata: { + typeUrl: string; + encode(message: EventUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata; + fromPartial(object: Partial): EventUpdateClassMetadata; + fromAmino(object: EventUpdateClassMetadataAmino): EventUpdateClassMetadata; + toAmino(message: EventUpdateClassMetadata): EventUpdateClassMetadataAmino; + fromAminoMsg(object: EventUpdateClassMetadataAminoMsg): EventUpdateClassMetadata; + fromProtoMsg(message: EventUpdateClassMetadataProtoMsg): EventUpdateClassMetadata; + toProto(message: EventUpdateClassMetadata): Uint8Array; + toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg; +}; +export declare const EventUpdateProjectAdmin: { + typeUrl: string; + encode(message: EventUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin; + fromPartial(object: Partial): EventUpdateProjectAdmin; + fromAmino(object: EventUpdateProjectAdminAmino): EventUpdateProjectAdmin; + toAmino(message: EventUpdateProjectAdmin): EventUpdateProjectAdminAmino; + fromAminoMsg(object: EventUpdateProjectAdminAminoMsg): EventUpdateProjectAdmin; + fromProtoMsg(message: EventUpdateProjectAdminProtoMsg): EventUpdateProjectAdmin; + toProto(message: EventUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg; +}; +export declare const EventUpdateProjectMetadata: { + typeUrl: string; + encode(message: EventUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata; + fromPartial(object: Partial): EventUpdateProjectMetadata; + fromAmino(object: EventUpdateProjectMetadataAmino): EventUpdateProjectMetadata; + toAmino(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataAmino; + fromAminoMsg(object: EventUpdateProjectMetadataAminoMsg): EventUpdateProjectMetadata; + fromProtoMsg(message: EventUpdateProjectMetadataProtoMsg): EventUpdateProjectMetadata; + toProto(message: EventUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg; +}; +export declare const EventUpdateBatchMetadata: { + typeUrl: string; + encode(message: EventUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata; + fromPartial(object: Partial): EventUpdateBatchMetadata; + fromAmino(object: EventUpdateBatchMetadataAmino): EventUpdateBatchMetadata; + toAmino(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataAmino; + fromAminoMsg(object: EventUpdateBatchMetadataAminoMsg): EventUpdateBatchMetadata; + fromProtoMsg(message: EventUpdateBatchMetadataProtoMsg): EventUpdateBatchMetadata; + toProto(message: EventUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg; +}; +export declare const EventSealBatch: { + typeUrl: string; + encode(message: EventSealBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch; + fromPartial(object: Partial): EventSealBatch; + fromAmino(object: EventSealBatchAmino): EventSealBatch; + toAmino(message: EventSealBatch): EventSealBatchAmino; + fromAminoMsg(object: EventSealBatchAminoMsg): EventSealBatch; + fromProtoMsg(message: EventSealBatchProtoMsg): EventSealBatch; + toProto(message: EventSealBatch): Uint8Array; + toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg; +}; +export declare const EventAddCreditType: { + typeUrl: string; + encode(message: EventAddCreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType; + fromPartial(object: Partial): EventAddCreditType; + fromAmino(object: EventAddCreditTypeAmino): EventAddCreditType; + toAmino(message: EventAddCreditType): EventAddCreditTypeAmino; + fromAminoMsg(object: EventAddCreditTypeAminoMsg): EventAddCreditType; + fromProtoMsg(message: EventAddCreditTypeProtoMsg): EventAddCreditType; + toProto(message: EventAddCreditType): Uint8Array; + toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg; +}; +export declare const EventBridge: { + typeUrl: string; + encode(message: EventBridge, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBridge; + fromPartial(object: Partial): EventBridge; + fromAmino(object: EventBridgeAmino): EventBridge; + toAmino(message: EventBridge): EventBridgeAmino; + fromAminoMsg(object: EventBridgeAminoMsg): EventBridge; + fromProtoMsg(message: EventBridgeProtoMsg): EventBridge; + toProto(message: EventBridge): Uint8Array; + toProtoMsg(message: EventBridge): EventBridgeProtoMsg; +}; +export declare const EventBridgeReceive: { + typeUrl: string; + encode(message: EventBridgeReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive; + fromPartial(object: Partial): EventBridgeReceive; + fromAmino(object: EventBridgeReceiveAmino): EventBridgeReceive; + toAmino(message: EventBridgeReceive): EventBridgeReceiveAmino; + fromAminoMsg(object: EventBridgeReceiveAminoMsg): EventBridgeReceive; + fromProtoMsg(message: EventBridgeReceiveProtoMsg): EventBridgeReceive; + toProto(message: EventBridgeReceive): Uint8Array; + toProtoMsg(message: EventBridgeReceive): EventBridgeReceiveProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/events.js b/packages/api/dist/regen/ecocredit/v1/events.js new file mode 100644 index 00000000..92741250 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/events.js @@ -0,0 +1,1416 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventBridgeReceive = exports.EventBridge = exports.EventAddCreditType = exports.EventSealBatch = exports.EventUpdateBatchMetadata = exports.EventUpdateProjectMetadata = exports.EventUpdateProjectAdmin = exports.EventUpdateClassMetadata = exports.EventUpdateClassIssuers = exports.EventUpdateClassAdmin = exports.EventCancel = exports.EventRetire = exports.EventTransfer = exports.EventMintBatchCredits = exports.EventMint = exports.EventCreateBatch = exports.EventCreateProject = exports.EventCreateClass = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const binary_1 = require("../../../binary"); +function createBaseEventCreateClass() { + return { + classId: "" + }; +} +exports.EventCreateClass = { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreateClass.decode(message.value); + }, + toProto(message) { + return exports.EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + value: exports.EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateProject() { + return { + projectId: "" + }; +} +exports.EventCreateProject = { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateProject(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateProject(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateProject.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreateProject.decode(message.value); + }, + toProto(message) { + return exports.EventCreateProject.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + value: exports.EventCreateProject.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch() { + return { + batchDenom: "", + originTx: undefined + }; +} +exports.EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateBatch(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreateBatch.decode(message.value); + }, + toProto(message) { + return exports.EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + value: exports.EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventMint() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +exports.EventMint = { + typeUrl: "/regen.ecocredit.v1.EventMint", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMint(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventMint(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventMint(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.EventMint.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventMint.decode(message.value); + }, + toProto(message) { + return exports.EventMint.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventMint", + value: exports.EventMint.encode(message).finish() + }; + } +}; +function createBaseEventMintBatchCredits() { + return { + batchDenom: "", + originTx: undefined + }; +} +exports.EventMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventMintBatchCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventMintBatchCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventMintBatchCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventMintBatchCredits.decode(message.value); + }, + toProto(message) { + return exports.EventMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + value: exports.EventMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseEventTransfer() { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +exports.EventTransfer = { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventTransfer(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventTransfer(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.EventTransfer.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventTransfer.decode(message.value); + }, + toProto(message) { + return exports.EventTransfer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + value: exports.EventTransfer.encode(message).finish() + }; + } +}; +function createBaseEventRetire() { + return { + owner: "", + batchDenom: "", + amount: "", + jurisdiction: "", + reason: "" + }; +} +exports.EventRetire = { + typeUrl: "/regen.ecocredit.v1.EventRetire", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(42).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRetire(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return exports.EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventRetire.decode(message.value); + }, + toProto(message) { + return exports.EventRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventRetire", + value: exports.EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel() { + return { + owner: "", + batchDenom: "", + amount: "", + reason: "" + }; +} +exports.EventCancel = { + typeUrl: "/regen.ecocredit.v1.EventCancel", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancel(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCancel.decode(message.value); + }, + toProto(message) { + return exports.EventCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventCancel", + value: exports.EventCancel.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassAdmin() { + return { + classId: "" + }; +} +exports.EventUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassAdmin(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassAdmin(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + value: exports.EventUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassIssuers() { + return { + classId: "" + }; +} +exports.EventUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassIssuers(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassIssuers(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + value: exports.EventUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassMetadata() { + return { + classId: "" + }; +} +exports.EventUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateClassMetadata(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateClassMetadata(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + value: exports.EventUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectAdmin() { + return { + projectId: "" + }; +} +exports.EventUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateProjectAdmin(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateProjectAdmin(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateProjectAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateProjectAdmin.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + value: exports.EventUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectMetadata() { + return { + projectId: "" + }; +} +exports.EventUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateProjectMetadata(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateProjectMetadata(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateProjectMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateProjectMetadata.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + value: exports.EventUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateBatchMetadata() { + return { + batchDenom: "" + }; +} +exports.EventUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventUpdateBatchMetadata(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventUpdateBatchMetadata(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventUpdateBatchMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventUpdateBatchMetadata.decode(message.value); + }, + toProto(message) { + return exports.EventUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + value: exports.EventUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseEventSealBatch() { + return { + batchDenom: "" + }; +} +exports.EventSealBatch = { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventSealBatch(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventSealBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventSealBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventSealBatch.decode(message.value); + }, + toProto(message) { + return exports.EventSealBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + value: exports.EventSealBatch.encode(message).finish() + }; + } +}; +function createBaseEventAddCreditType() { + return { + abbreviation: "" + }; +} +exports.EventAddCreditType = { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAddCreditType(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventAddCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object) { + return exports.EventAddCreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventAddCreditType.decode(message.value); + }, + toProto(message) { + return exports.EventAddCreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + value: exports.EventAddCreditType.encode(message).finish() + }; + } +}; +function createBaseEventBridge() { + return { + target: "", + recipient: "", + contract: "", + amount: "", + owner: "", + batchDenom: "" + }; +} +exports.EventBridge = { + typeUrl: "/regen.ecocredit.v1.EventBridge", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.target !== "") { + writer.uint32(10).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.owner !== "") { + writer.uint32(42).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(50).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.target = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.owner = reader.string(); + break; + case 6: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBridge(); + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.contract = object.contract ?? ""; + message.amount = object.amount ?? ""; + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventBridge(); + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventBridge.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventBridge.decode(message.value); + }, + toProto(message) { + return exports.EventBridge.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventBridge", + value: exports.EventBridge.encode(message).finish() + }; + } +}; +function createBaseEventBridgeReceive() { + return { + projectId: "", + batchDenom: "", + amount: "", + originTx: undefined + }; +} +exports.EventBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventBridgeReceive(); + message.projectId = object.projectId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEventBridgeReceive(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EventBridgeReceive.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventBridgeReceive.decode(message.value); + }, + toProto(message) { + return exports.EventBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + value: exports.EventBridgeReceive.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.d.ts b/packages/api/dist/regen/ecocredit/v1/query.d.ts new file mode 100644 index 00000000..f5e5091d --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.d.ts @@ -0,0 +1,2417 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { Params, ParamsAmino, ParamsSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; + value: Uint8Array; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesRequest"; + value: QueryClassesRequestAmino; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; + value: Uint8Array; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesResponse"; + value: QueryClassesResponseAmino; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequest { + /** admin is the address of the admin of the class. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesByAdminRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; + value: Uint8Array; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequestAmino { + /** admin is the address of the admin of the class. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesByAdminRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; + value: QueryClassesByAdminRequestAmino; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesByAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; + value: Uint8Array; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesByAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; + value: QueryClassesByAdminResponseAmino; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; +} +export interface QueryClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest"; + value: Uint8Array; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; +} +export interface QueryClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassRequest"; + value: QueryClassRequestAmino; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequestSDKType { + class_id: string; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponse { + /** class is the fetched credit class. */ + class?: ClassInfo; +} +export interface QueryClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; + value: Uint8Array; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponseAmino { + /** class is the fetched credit class. */ + class?: ClassInfoAmino; +} +export interface QueryClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassResponse"; + value: QueryClassResponseAmino; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponseSDKType { + class?: ClassInfoSDKType; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassIssuersRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; + value: Uint8Array; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassIssuersRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassIssuersRequest"; + value: QueryClassIssuersRequestAmino; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponse { + /** issuers is a list of issuers for the credit class */ + issuers: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; + value: Uint8Array; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponseAmino { + /** issuers is a list of issuers for the credit class */ + issuers?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassIssuersResponse"; + value: QueryClassIssuersResponseAmino; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponseSDKType { + issuers: string[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; + value: Uint8Array; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsRequest"; + value: QueryProjectsRequestAmino; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; + value: Uint8Array; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsResponse"; + value: QueryProjectsResponseAmino; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; + value: Uint8Array; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; + value: QueryProjectsByClassRequestAmino; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; + value: Uint8Array; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; + value: QueryProjectsByClassResponseAmino; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequest { + /** reference_id is the project reference id. */ + referenceId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByReferenceIdRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; + value: Uint8Array; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequestAmino { + /** reference_id is the project reference id. */ + reference_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByReferenceIdRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; + value: QueryProjectsByReferenceIdRequestAmino; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequestSDKType { + reference_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByReferenceIdResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; + value: Uint8Array; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByReferenceIdResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; + value: QueryProjectsByReferenceIdResponseAmino; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequest { + /** admin is the account address of project admin. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByAdminRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; + value: Uint8Array; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequestAmino { + /** admin is the account address of project admin. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByAdminRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; + value: QueryProjectsByAdminRequestAmino; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; + value: Uint8Array; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; + value: QueryProjectsByAdminResponseAmino; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequest { + /** project_id is the unique identifier of the project to query. */ + projectId: string; +} +export interface QueryProjectRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest"; + value: Uint8Array; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequestAmino { + /** project_id is the unique identifier of the project to query. */ + project_id?: string; +} +export interface QueryProjectRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectRequest"; + value: QueryProjectRequestAmino; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequestSDKType { + project_id: string; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponse { + /** project is the fetched project. */ + project?: ProjectInfo; +} +export interface QueryProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; + value: Uint8Array; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponseAmino { + /** project is the fetched project. */ + project?: ProjectInfoAmino; +} +export interface QueryProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectResponse"; + value: QueryProjectResponseAmino; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponseSDKType { + project?: ProjectInfoSDKType; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; + value: Uint8Array; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesRequest"; + value: QueryBatchesRequestAmino; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; + value: Uint8Array; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesResponse"; + value: QueryBatchesResponseAmino; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequest { + /** issuer is the address that issued the batch */ + issuer: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByIssuerRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; + value: Uint8Array; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequestAmino { + /** issuer is the address that issued the batch */ + issuer?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByIssuerRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; + value: QueryBatchesByIssuerRequestAmino; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequestSDKType { + issuer: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByIssuerResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; + value: Uint8Array; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByIssuerResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; + value: QueryBatchesByIssuerResponseAmino; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; + value: Uint8Array; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; + value: QueryBatchesByClassRequestAmino; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequest { + /** project_id is the unique identifier of the project to query. */ + projectId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByProjectRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; + value: Uint8Array; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequestAmino { + /** project_id is the unique identifier of the project to query. */ + project_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByProjectRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; + value: QueryBatchesByProjectRequestAmino; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequestSDKType { + project_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; + value: Uint8Array; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; + value: QueryBatchesByProjectResponseAmino; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; + value: Uint8Array; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; + value: QueryBatchesByClassResponseAmino; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequest { + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QueryBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest"; + value: Uint8Array; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequestAmino { + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QueryBatchRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchRequest"; + value: QueryBatchRequestAmino; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequestSDKType { + batch_denom: string; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponse { + /** batch is the fetched credit batch. */ + batch?: BatchInfo; +} +export interface QueryBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; + value: Uint8Array; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponseAmino { + /** batch is the fetched credit batch. */ + batch?: BatchInfoAmino; +} +export interface QueryBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchResponse"; + value: QueryBatchResponseAmino; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponseSDKType { + batch?: BatchInfoSDKType; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequest { + /** address is the address of the account whose balance is being queried. */ + address: string; + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestAmino { + /** address is the address of the account whose balance is being queried. */ + address?: string; + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestSDKType { + address: string; + batch_denom: string; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponse { + /** balance is the balance of the given account. */ + balance?: BatchBalanceInfo; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseAmino { + /** balance is the balance of the given account. */ + balance?: BatchBalanceInfoAmino; +} +export interface QueryBalanceResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseSDKType { + balance?: BatchBalanceInfoSDKType; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequest { + /** address is the address of the account whose balance is being queried. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; + value: Uint8Array; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequestAmino { + /** address is the address of the account whose balance is being queried. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBalancesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesRequest"; + value: QueryBalancesRequestAmino; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; + value: Uint8Array; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBalancesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesResponse"; + value: QueryBalancesResponseAmino; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequest { + /** batch_denom is the denom of the batch to query by. */ + batchDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBalancesByBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; + value: Uint8Array; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequestAmino { + /** batch_denom is the denom of the batch to query by. */ + batch_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBalancesByBatchRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; + value: QueryBalancesByBatchRequestAmino; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequestSDKType { + batch_denom: string; + pagination?: PageRequestSDKType; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBalancesByBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; + value: Uint8Array; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBalancesByBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; + value: QueryBalancesByBatchResponseAmino; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; + value: Uint8Array; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllBalancesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllBalancesRequest"; + value: QueryAllBalancesRequestAmino; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; + value: Uint8Array; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllBalancesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllBalancesResponse"; + value: QueryAllBalancesResponseAmino; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequest { + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QuerySupplyRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest"; + value: Uint8Array; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestAmino { + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QuerySupplyRequestAminoMsg { + type: "/regen.ecocredit.v1.QuerySupplyRequest"; + value: QuerySupplyRequestAmino; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestSDKType { + batch_denom: string; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponse { + /** + * tradable_amount is the decimal number of tradable credits in the batch + * supply. + */ + tradableAmount: string; + /** + * retired_amount is the decimal number of retired credits in the batch + * supply. + */ + retiredAmount: string; + /** + * cancelled_amount is the decimal number of cancelled credits in the batch + * supply. + */ + cancelledAmount: string; +} +export interface QuerySupplyResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse"; + value: Uint8Array; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseAmino { + /** + * tradable_amount is the decimal number of tradable credits in the batch + * supply. + */ + tradable_amount?: string; + /** + * retired_amount is the decimal number of retired credits in the batch + * supply. + */ + retired_amount?: string; + /** + * cancelled_amount is the decimal number of cancelled credits in the batch + * supply. + */ + cancelled_amount?: string; +} +export interface QuerySupplyResponseAminoMsg { + type: "/regen.ecocredit.v1.QuerySupplyResponse"; + value: QuerySupplyResponseAmino; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseSDKType { + tradable_amount: string; + retired_amount: string; + cancelled_amount: string; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequest { +} +export interface QueryCreditTypesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestAmino { +} +export interface QueryCreditTypesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypesRequest"; + value: QueryCreditTypesRequestAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestSDKType { +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponse { + /** credit_types are the fetched credit types. */ + creditTypes: CreditType[]; +} +export interface QueryCreditTypesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseAmino { + /** credit_types are the fetched credit types. */ + credit_types?: CreditTypeAmino[]; +} +export interface QueryCreditTypesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; + value: QueryCreditTypesResponseAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseSDKType { + credit_types: CreditTypeSDKType[]; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponse { + /** params defines the parameters of the ecocredit module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the ecocredit module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequest { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation: string; +} +export interface QueryCreditTypeRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest"; + value: Uint8Array; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequestAmino { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation?: string; +} +export interface QueryCreditTypeRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; + value: QueryCreditTypeRequestAmino; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequestSDKType { + abbreviation: string; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponse { + /** credit_type is the fetched credit type. */ + creditType?: CreditType; +} +export interface QueryCreditTypeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; + value: Uint8Array; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponseAmino { + /** credit_type is the fetched credit type. */ + credit_type?: CreditTypeAmino; +} +export interface QueryCreditTypeResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypeResponse"; + value: QueryCreditTypeResponseAmino; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponseSDKType { + credit_type?: CreditTypeSDKType; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfo { + /** id is the unique identifier of the credit class. */ + id: string; + /** admin is the admin of the credit class. */ + admin: string; + /** metadata is the arbitrary metadata attached to the credit class. */ + metadata: string; + /** + * credit_type_abbrev is the abbreviation of the credit type within which this + * credit class was created. + */ + creditTypeAbbrev: string; +} +export interface ClassInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassInfo"; + value: Uint8Array; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfoAmino { + /** id is the unique identifier of the credit class. */ + id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** metadata is the arbitrary metadata attached to the credit class. */ + metadata?: string; + /** + * credit_type_abbrev is the abbreviation of the credit type within which this + * credit class was created. + */ + credit_type_abbrev?: string; +} +export interface ClassInfoAminoMsg { + type: "/regen.ecocredit.v1.ClassInfo"; + value: ClassInfoAmino; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfoSDKType { + id: string; + admin: string; + metadata: string; + credit_type_abbrev: string; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfo { + /** id is the unique identifier of the project. */ + id: string; + /** admin is the admin of the project. */ + admin: string; + /** + * class_id is the unique identifier of the credit class within which the + * project was created. + */ + classId: string; + /** + * jurisdiction is the jurisdiction of the project. Full documentation can be + * found in MsgCreateProject.jurisdiction. + */ + jurisdiction: string; + /** metadata is the arbitrary metadata attached to the project. */ + metadata: string; + /** reference_id is any arbitrary string that can be use to reference project. */ + referenceId: string; +} +export interface ProjectInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.ProjectInfo"; + value: Uint8Array; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfoAmino { + /** id is the unique identifier of the project. */ + id?: string; + /** admin is the admin of the project. */ + admin?: string; + /** + * class_id is the unique identifier of the credit class within which the + * project was created. + */ + class_id?: string; + /** + * jurisdiction is the jurisdiction of the project. Full documentation can be + * found in MsgCreateProject.jurisdiction. + */ + jurisdiction?: string; + /** metadata is the arbitrary metadata attached to the project. */ + metadata?: string; + /** reference_id is any arbitrary string that can be use to reference project. */ + reference_id?: string; +} +export interface ProjectInfoAminoMsg { + type: "/regen.ecocredit.v1.ProjectInfo"; + value: ProjectInfoAmino; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfoSDKType { + id: string; + admin: string; + class_id: string; + jurisdiction: string; + metadata: string; + reference_id: string; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfo { + /** + * issuer is the address that created the batch and the address authorized to + * mint new credits to the credit batch if the credit batch is open. + */ + issuer: string; + /** + * project_id is the unique identifier of the project within which this credit + * batch was created. + */ + projectId: string; + /** + * denom is the unique identifier of the credit batch formed from the project + * name, batch sequence number and dates. + */ + denom: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuanceDate?: Date; + /** + * open determines whether or not the credit batch is open, i.e. whether or + * not new credits can be minted to the credit batch. + */ + open: boolean; +} +export interface BatchInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchInfo"; + value: Uint8Array; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfoAmino { + /** + * issuer is the address that created the batch and the address authorized to + * mint new credits to the credit batch if the credit batch is open. + */ + issuer?: string; + /** + * project_id is the unique identifier of the project within which this credit + * batch was created. + */ + project_id?: string; + /** + * denom is the unique identifier of the credit batch formed from the project + * name, batch sequence number and dates. + */ + denom?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuance_date?: string; + /** + * open determines whether or not the credit batch is open, i.e. whether or + * not new credits can be minted to the credit batch. + */ + open?: boolean; +} +export interface BatchInfoAminoMsg { + type: "/regen.ecocredit.v1.BatchInfo"; + value: BatchInfoAmino; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfoSDKType { + issuer: string; + project_id: string; + denom: string; + metadata: string; + start_date?: Date; + end_date?: Date; + issuance_date?: Date; + open: boolean; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfo { + /** address is the address of the account that owns the credits. */ + address: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradableAmount: string; + /** retired_amount is the total number of retired credits owned by address. */ + retiredAmount: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowedAmount: string; +} +export interface BatchBalanceInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo"; + value: Uint8Array; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfoAmino { + /** address is the address of the account that owns the credits. */ + address?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradable_amount?: string; + /** retired_amount is the total number of retired credits owned by address. */ + retired_amount?: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowed_amount?: string; +} +export interface BatchBalanceInfoAminoMsg { + type: "/regen.ecocredit.v1.BatchBalanceInfo"; + value: BatchBalanceInfoAmino; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfoSDKType { + address: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; + escrowed_amount: string; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequest { +} +export interface QueryClassCreatorAllowlistRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; + value: Uint8Array; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequestAmino { +} +export interface QueryClassCreatorAllowlistRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; + value: QueryClassCreatorAllowlistRequestAmino; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequestSDKType { +} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponse { + /** + * enabled determines whether or not the allowlist for creating credit classes + * is enabled. + */ + enabled: boolean; +} +export interface QueryClassCreatorAllowlistResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; + value: Uint8Array; +} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponseAmino { + /** + * enabled determines whether or not the allowlist for creating credit classes + * is enabled. + */ + enabled?: boolean; +} +export interface QueryClassCreatorAllowlistResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; + value: QueryClassCreatorAllowlistResponseAmino; +} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponseSDKType { + enabled: boolean; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowedClassCreatorsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; + value: Uint8Array; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowedClassCreatorsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; + value: QueryAllowedClassCreatorsRequestAmino; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponse { + /** class_creators is the list of allowed credit class creators. */ + classCreators: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllowedClassCreatorsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; + value: Uint8Array; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponseAmino { + /** class_creators is the list of allowed credit class creators. */ + class_creators?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowedClassCreatorsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; + value: QueryAllowedClassCreatorsResponseAmino; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponseSDKType { + class_creators: string[]; + pagination?: PageResponseSDKType; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequest { +} +export interface QueryClassFeeRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest"; + value: Uint8Array; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequestAmino { +} +export interface QueryClassFeeRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassFeeRequest"; + value: QueryClassFeeRequestAmino; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequestSDKType { +} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponse { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: Coin; +} +export interface QueryClassFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; + value: Uint8Array; +} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponseAmino { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: CoinAmino; +} +export interface QueryClassFeeResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassFeeResponse"; + value: QueryClassFeeResponseAmino; +} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponseSDKType { + fee?: CoinSDKType; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequest { +} +export interface QueryAllowedBridgeChainsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; + value: Uint8Array; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequestAmino { +} +export interface QueryAllowedBridgeChainsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; + value: QueryAllowedBridgeChainsRequestAmino; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequestSDKType { +} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponse { + /** + * allowed_bridge_chains is a list of chains that are allowed to be used in + * bridge operations. + */ + allowedBridgeChains: string[]; +} +export interface QueryAllowedBridgeChainsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; + value: Uint8Array; +} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponseAmino { + /** + * allowed_bridge_chains is a list of chains that are allowed to be used in + * bridge operations. + */ + allowed_bridge_chains?: string[]; +} +export interface QueryAllowedBridgeChainsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; + value: QueryAllowedBridgeChainsResponseAmino; +} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponseSDKType { + allowed_bridge_chains: string[]; +} +export declare const QueryClassesRequest: { + typeUrl: string; + encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; + fromPartial(object: Partial): QueryClassesRequest; + fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; + toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; + fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; + fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; + toProto(message: QueryClassesRequest): Uint8Array; + toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; +}; +export declare const QueryClassesResponse: { + typeUrl: string; + encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; + fromPartial(object: Partial): QueryClassesResponse; + fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; + toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; + fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; + fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; + toProto(message: QueryClassesResponse): Uint8Array; + toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; +}; +export declare const QueryClassesByAdminRequest: { + typeUrl: string; + encode(message: QueryClassesByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest; + fromPartial(object: Partial): QueryClassesByAdminRequest; + fromAmino(object: QueryClassesByAdminRequestAmino): QueryClassesByAdminRequest; + toAmino(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestAmino; + fromAminoMsg(object: QueryClassesByAdminRequestAminoMsg): QueryClassesByAdminRequest; + fromProtoMsg(message: QueryClassesByAdminRequestProtoMsg): QueryClassesByAdminRequest; + toProto(message: QueryClassesByAdminRequest): Uint8Array; + toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg; +}; +export declare const QueryClassesByAdminResponse: { + typeUrl: string; + encode(message: QueryClassesByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse; + fromPartial(object: Partial): QueryClassesByAdminResponse; + fromAmino(object: QueryClassesByAdminResponseAmino): QueryClassesByAdminResponse; + toAmino(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseAmino; + fromAminoMsg(object: QueryClassesByAdminResponseAminoMsg): QueryClassesByAdminResponse; + fromProtoMsg(message: QueryClassesByAdminResponseProtoMsg): QueryClassesByAdminResponse; + toProto(message: QueryClassesByAdminResponse): Uint8Array; + toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg; +}; +export declare const QueryClassRequest: { + typeUrl: string; + encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; + fromPartial(object: Partial): QueryClassRequest; + fromAmino(object: QueryClassRequestAmino): QueryClassRequest; + toAmino(message: QueryClassRequest): QueryClassRequestAmino; + fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest; + fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest; + toProto(message: QueryClassRequest): Uint8Array; + toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; +}; +export declare const QueryClassResponse: { + typeUrl: string; + encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; + fromPartial(object: Partial): QueryClassResponse; + fromAmino(object: QueryClassResponseAmino): QueryClassResponse; + toAmino(message: QueryClassResponse): QueryClassResponseAmino; + fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse; + fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse; + toProto(message: QueryClassResponse): Uint8Array; + toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; +}; +export declare const QueryClassIssuersRequest: { + typeUrl: string; + encode(message: QueryClassIssuersRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest; + fromPartial(object: Partial): QueryClassIssuersRequest; + fromAmino(object: QueryClassIssuersRequestAmino): QueryClassIssuersRequest; + toAmino(message: QueryClassIssuersRequest): QueryClassIssuersRequestAmino; + fromAminoMsg(object: QueryClassIssuersRequestAminoMsg): QueryClassIssuersRequest; + fromProtoMsg(message: QueryClassIssuersRequestProtoMsg): QueryClassIssuersRequest; + toProto(message: QueryClassIssuersRequest): Uint8Array; + toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg; +}; +export declare const QueryClassIssuersResponse: { + typeUrl: string; + encode(message: QueryClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse; + fromPartial(object: Partial): QueryClassIssuersResponse; + fromAmino(object: QueryClassIssuersResponseAmino): QueryClassIssuersResponse; + toAmino(message: QueryClassIssuersResponse): QueryClassIssuersResponseAmino; + fromAminoMsg(object: QueryClassIssuersResponseAminoMsg): QueryClassIssuersResponse; + fromProtoMsg(message: QueryClassIssuersResponseProtoMsg): QueryClassIssuersResponse; + toProto(message: QueryClassIssuersResponse): Uint8Array; + toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg; +}; +export declare const QueryProjectsRequest: { + typeUrl: string; + encode(message: QueryProjectsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest; + fromPartial(object: Partial): QueryProjectsRequest; + fromAmino(object: QueryProjectsRequestAmino): QueryProjectsRequest; + toAmino(message: QueryProjectsRequest): QueryProjectsRequestAmino; + fromAminoMsg(object: QueryProjectsRequestAminoMsg): QueryProjectsRequest; + fromProtoMsg(message: QueryProjectsRequestProtoMsg): QueryProjectsRequest; + toProto(message: QueryProjectsRequest): Uint8Array; + toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg; +}; +export declare const QueryProjectsResponse: { + typeUrl: string; + encode(message: QueryProjectsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse; + fromPartial(object: Partial): QueryProjectsResponse; + fromAmino(object: QueryProjectsResponseAmino): QueryProjectsResponse; + toAmino(message: QueryProjectsResponse): QueryProjectsResponseAmino; + fromAminoMsg(object: QueryProjectsResponseAminoMsg): QueryProjectsResponse; + fromProtoMsg(message: QueryProjectsResponseProtoMsg): QueryProjectsResponse; + toProto(message: QueryProjectsResponse): Uint8Array; + toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg; +}; +export declare const QueryProjectsByClassRequest: { + typeUrl: string; + encode(message: QueryProjectsByClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest; + fromPartial(object: Partial): QueryProjectsByClassRequest; + fromAmino(object: QueryProjectsByClassRequestAmino): QueryProjectsByClassRequest; + toAmino(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestAmino; + fromAminoMsg(object: QueryProjectsByClassRequestAminoMsg): QueryProjectsByClassRequest; + fromProtoMsg(message: QueryProjectsByClassRequestProtoMsg): QueryProjectsByClassRequest; + toProto(message: QueryProjectsByClassRequest): Uint8Array; + toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg; +}; +export declare const QueryProjectsByClassResponse: { + typeUrl: string; + encode(message: QueryProjectsByClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse; + fromPartial(object: Partial): QueryProjectsByClassResponse; + fromAmino(object: QueryProjectsByClassResponseAmino): QueryProjectsByClassResponse; + toAmino(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseAmino; + fromAminoMsg(object: QueryProjectsByClassResponseAminoMsg): QueryProjectsByClassResponse; + fromProtoMsg(message: QueryProjectsByClassResponseProtoMsg): QueryProjectsByClassResponse; + toProto(message: QueryProjectsByClassResponse): Uint8Array; + toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg; +}; +export declare const QueryProjectsByReferenceIdRequest: { + typeUrl: string; + encode(message: QueryProjectsByReferenceIdRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest; + fromPartial(object: Partial): QueryProjectsByReferenceIdRequest; + fromAmino(object: QueryProjectsByReferenceIdRequestAmino): QueryProjectsByReferenceIdRequest; + toAmino(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestAmino; + fromAminoMsg(object: QueryProjectsByReferenceIdRequestAminoMsg): QueryProjectsByReferenceIdRequest; + fromProtoMsg(message: QueryProjectsByReferenceIdRequestProtoMsg): QueryProjectsByReferenceIdRequest; + toProto(message: QueryProjectsByReferenceIdRequest): Uint8Array; + toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg; +}; +export declare const QueryProjectsByReferenceIdResponse: { + typeUrl: string; + encode(message: QueryProjectsByReferenceIdResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse; + fromPartial(object: Partial): QueryProjectsByReferenceIdResponse; + fromAmino(object: QueryProjectsByReferenceIdResponseAmino): QueryProjectsByReferenceIdResponse; + toAmino(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseAmino; + fromAminoMsg(object: QueryProjectsByReferenceIdResponseAminoMsg): QueryProjectsByReferenceIdResponse; + fromProtoMsg(message: QueryProjectsByReferenceIdResponseProtoMsg): QueryProjectsByReferenceIdResponse; + toProto(message: QueryProjectsByReferenceIdResponse): Uint8Array; + toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg; +}; +export declare const QueryProjectsByAdminRequest: { + typeUrl: string; + encode(message: QueryProjectsByAdminRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest; + fromPartial(object: Partial): QueryProjectsByAdminRequest; + fromAmino(object: QueryProjectsByAdminRequestAmino): QueryProjectsByAdminRequest; + toAmino(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestAmino; + fromAminoMsg(object: QueryProjectsByAdminRequestAminoMsg): QueryProjectsByAdminRequest; + fromProtoMsg(message: QueryProjectsByAdminRequestProtoMsg): QueryProjectsByAdminRequest; + toProto(message: QueryProjectsByAdminRequest): Uint8Array; + toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg; +}; +export declare const QueryProjectsByAdminResponse: { + typeUrl: string; + encode(message: QueryProjectsByAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse; + fromPartial(object: Partial): QueryProjectsByAdminResponse; + fromAmino(object: QueryProjectsByAdminResponseAmino): QueryProjectsByAdminResponse; + toAmino(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseAmino; + fromAminoMsg(object: QueryProjectsByAdminResponseAminoMsg): QueryProjectsByAdminResponse; + fromProtoMsg(message: QueryProjectsByAdminResponseProtoMsg): QueryProjectsByAdminResponse; + toProto(message: QueryProjectsByAdminResponse): Uint8Array; + toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg; +}; +export declare const QueryProjectRequest: { + typeUrl: string; + encode(message: QueryProjectRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest; + fromPartial(object: Partial): QueryProjectRequest; + fromAmino(object: QueryProjectRequestAmino): QueryProjectRequest; + toAmino(message: QueryProjectRequest): QueryProjectRequestAmino; + fromAminoMsg(object: QueryProjectRequestAminoMsg): QueryProjectRequest; + fromProtoMsg(message: QueryProjectRequestProtoMsg): QueryProjectRequest; + toProto(message: QueryProjectRequest): Uint8Array; + toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg; +}; +export declare const QueryProjectResponse: { + typeUrl: string; + encode(message: QueryProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse; + fromPartial(object: Partial): QueryProjectResponse; + fromAmino(object: QueryProjectResponseAmino): QueryProjectResponse; + toAmino(message: QueryProjectResponse): QueryProjectResponseAmino; + fromAminoMsg(object: QueryProjectResponseAminoMsg): QueryProjectResponse; + fromProtoMsg(message: QueryProjectResponseProtoMsg): QueryProjectResponse; + toProto(message: QueryProjectResponse): Uint8Array; + toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg; +}; +export declare const QueryBatchesRequest: { + typeUrl: string; + encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; + fromPartial(object: Partial): QueryBatchesRequest; + fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; + toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; + fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; + fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; + toProto(message: QueryBatchesRequest): Uint8Array; + toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; +}; +export declare const QueryBatchesResponse: { + typeUrl: string; + encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; + fromPartial(object: Partial): QueryBatchesResponse; + fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; + toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; + fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; + fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; + toProto(message: QueryBatchesResponse): Uint8Array; + toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; +}; +export declare const QueryBatchesByIssuerRequest: { + typeUrl: string; + encode(message: QueryBatchesByIssuerRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest; + fromPartial(object: Partial): QueryBatchesByIssuerRequest; + fromAmino(object: QueryBatchesByIssuerRequestAmino): QueryBatchesByIssuerRequest; + toAmino(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestAmino; + fromAminoMsg(object: QueryBatchesByIssuerRequestAminoMsg): QueryBatchesByIssuerRequest; + fromProtoMsg(message: QueryBatchesByIssuerRequestProtoMsg): QueryBatchesByIssuerRequest; + toProto(message: QueryBatchesByIssuerRequest): Uint8Array; + toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg; +}; +export declare const QueryBatchesByIssuerResponse: { + typeUrl: string; + encode(message: QueryBatchesByIssuerResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse; + fromPartial(object: Partial): QueryBatchesByIssuerResponse; + fromAmino(object: QueryBatchesByIssuerResponseAmino): QueryBatchesByIssuerResponse; + toAmino(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseAmino; + fromAminoMsg(object: QueryBatchesByIssuerResponseAminoMsg): QueryBatchesByIssuerResponse; + fromProtoMsg(message: QueryBatchesByIssuerResponseProtoMsg): QueryBatchesByIssuerResponse; + toProto(message: QueryBatchesByIssuerResponse): Uint8Array; + toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg; +}; +export declare const QueryBatchesByClassRequest: { + typeUrl: string; + encode(message: QueryBatchesByClassRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest; + fromPartial(object: Partial): QueryBatchesByClassRequest; + fromAmino(object: QueryBatchesByClassRequestAmino): QueryBatchesByClassRequest; + toAmino(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestAmino; + fromAminoMsg(object: QueryBatchesByClassRequestAminoMsg): QueryBatchesByClassRequest; + fromProtoMsg(message: QueryBatchesByClassRequestProtoMsg): QueryBatchesByClassRequest; + toProto(message: QueryBatchesByClassRequest): Uint8Array; + toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg; +}; +export declare const QueryBatchesByProjectRequest: { + typeUrl: string; + encode(message: QueryBatchesByProjectRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest; + fromPartial(object: Partial): QueryBatchesByProjectRequest; + fromAmino(object: QueryBatchesByProjectRequestAmino): QueryBatchesByProjectRequest; + toAmino(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestAmino; + fromAminoMsg(object: QueryBatchesByProjectRequestAminoMsg): QueryBatchesByProjectRequest; + fromProtoMsg(message: QueryBatchesByProjectRequestProtoMsg): QueryBatchesByProjectRequest; + toProto(message: QueryBatchesByProjectRequest): Uint8Array; + toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg; +}; +export declare const QueryBatchesByProjectResponse: { + typeUrl: string; + encode(message: QueryBatchesByProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse; + fromPartial(object: Partial): QueryBatchesByProjectResponse; + fromAmino(object: QueryBatchesByProjectResponseAmino): QueryBatchesByProjectResponse; + toAmino(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseAmino; + fromAminoMsg(object: QueryBatchesByProjectResponseAminoMsg): QueryBatchesByProjectResponse; + fromProtoMsg(message: QueryBatchesByProjectResponseProtoMsg): QueryBatchesByProjectResponse; + toProto(message: QueryBatchesByProjectResponse): Uint8Array; + toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg; +}; +export declare const QueryBatchesByClassResponse: { + typeUrl: string; + encode(message: QueryBatchesByClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse; + fromPartial(object: Partial): QueryBatchesByClassResponse; + fromAmino(object: QueryBatchesByClassResponseAmino): QueryBatchesByClassResponse; + toAmino(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseAmino; + fromAminoMsg(object: QueryBatchesByClassResponseAminoMsg): QueryBatchesByClassResponse; + fromProtoMsg(message: QueryBatchesByClassResponseProtoMsg): QueryBatchesByClassResponse; + toProto(message: QueryBatchesByClassResponse): Uint8Array; + toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg; +}; +export declare const QueryBatchRequest: { + typeUrl: string; + encode(message: QueryBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest; + fromPartial(object: Partial): QueryBatchRequest; + fromAmino(object: QueryBatchRequestAmino): QueryBatchRequest; + toAmino(message: QueryBatchRequest): QueryBatchRequestAmino; + fromAminoMsg(object: QueryBatchRequestAminoMsg): QueryBatchRequest; + fromProtoMsg(message: QueryBatchRequestProtoMsg): QueryBatchRequest; + toProto(message: QueryBatchRequest): Uint8Array; + toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg; +}; +export declare const QueryBatchResponse: { + typeUrl: string; + encode(message: QueryBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse; + fromPartial(object: Partial): QueryBatchResponse; + fromAmino(object: QueryBatchResponseAmino): QueryBatchResponse; + toAmino(message: QueryBatchResponse): QueryBatchResponseAmino; + fromAminoMsg(object: QueryBatchResponseAminoMsg): QueryBatchResponse; + fromProtoMsg(message: QueryBatchResponseProtoMsg): QueryBatchResponse; + toProto(message: QueryBatchResponse): Uint8Array; + toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg; +}; +export declare const QueryBalanceRequest: { + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; + fromPartial(object: Partial): QueryBalanceRequest; + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; + toProto(message: QueryBalanceRequest): Uint8Array; + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; +}; +export declare const QueryBalanceResponse: { + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; + fromPartial(object: Partial): QueryBalanceResponse; + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; + toProto(message: QueryBalanceResponse): Uint8Array; + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; +}; +export declare const QueryBalancesRequest: { + typeUrl: string; + encode(message: QueryBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest; + fromPartial(object: Partial): QueryBalancesRequest; + fromAmino(object: QueryBalancesRequestAmino): QueryBalancesRequest; + toAmino(message: QueryBalancesRequest): QueryBalancesRequestAmino; + fromAminoMsg(object: QueryBalancesRequestAminoMsg): QueryBalancesRequest; + fromProtoMsg(message: QueryBalancesRequestProtoMsg): QueryBalancesRequest; + toProto(message: QueryBalancesRequest): Uint8Array; + toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg; +}; +export declare const QueryBalancesResponse: { + typeUrl: string; + encode(message: QueryBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse; + fromPartial(object: Partial): QueryBalancesResponse; + fromAmino(object: QueryBalancesResponseAmino): QueryBalancesResponse; + toAmino(message: QueryBalancesResponse): QueryBalancesResponseAmino; + fromAminoMsg(object: QueryBalancesResponseAminoMsg): QueryBalancesResponse; + fromProtoMsg(message: QueryBalancesResponseProtoMsg): QueryBalancesResponse; + toProto(message: QueryBalancesResponse): Uint8Array; + toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg; +}; +export declare const QueryBalancesByBatchRequest: { + typeUrl: string; + encode(message: QueryBalancesByBatchRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest; + fromPartial(object: Partial): QueryBalancesByBatchRequest; + fromAmino(object: QueryBalancesByBatchRequestAmino): QueryBalancesByBatchRequest; + toAmino(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestAmino; + fromAminoMsg(object: QueryBalancesByBatchRequestAminoMsg): QueryBalancesByBatchRequest; + fromProtoMsg(message: QueryBalancesByBatchRequestProtoMsg): QueryBalancesByBatchRequest; + toProto(message: QueryBalancesByBatchRequest): Uint8Array; + toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg; +}; +export declare const QueryBalancesByBatchResponse: { + typeUrl: string; + encode(message: QueryBalancesByBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse; + fromPartial(object: Partial): QueryBalancesByBatchResponse; + fromAmino(object: QueryBalancesByBatchResponseAmino): QueryBalancesByBatchResponse; + toAmino(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseAmino; + fromAminoMsg(object: QueryBalancesByBatchResponseAminoMsg): QueryBalancesByBatchResponse; + fromProtoMsg(message: QueryBalancesByBatchResponseProtoMsg): QueryBalancesByBatchResponse; + toProto(message: QueryBalancesByBatchResponse): Uint8Array; + toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg; +}; +export declare const QueryAllBalancesRequest: { + typeUrl: string; + encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; + fromPartial(object: Partial): QueryAllBalancesRequest; + fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; + toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; + fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; + fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; + toProto(message: QueryAllBalancesRequest): Uint8Array; + toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; +}; +export declare const QueryAllBalancesResponse: { + typeUrl: string; + encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; + fromPartial(object: Partial): QueryAllBalancesResponse; + fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; + toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; + fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; + fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; + toProto(message: QueryAllBalancesResponse): Uint8Array; + toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; +}; +export declare const QuerySupplyRequest: { + typeUrl: string; + encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; + fromPartial(object: Partial): QuerySupplyRequest; + fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; + toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; + fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; + fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; + toProto(message: QuerySupplyRequest): Uint8Array; + toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; +}; +export declare const QuerySupplyResponse: { + typeUrl: string; + encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; + fromPartial(object: Partial): QuerySupplyResponse; + fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; + toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; + fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; + fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; + toProto(message: QuerySupplyResponse): Uint8Array; + toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; +}; +export declare const QueryCreditTypesRequest: { + typeUrl: string; + encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; + fromPartial(_: Partial): QueryCreditTypesRequest; + fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; + toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; + fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; + fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; + toProto(message: QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; +}; +export declare const QueryCreditTypesResponse: { + typeUrl: string; + encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; + fromPartial(object: Partial): QueryCreditTypesResponse; + fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; + toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; + fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; + fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; + toProto(message: QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; +}; +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryCreditTypeRequest: { + typeUrl: string; + encode(message: QueryCreditTypeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest; + fromPartial(object: Partial): QueryCreditTypeRequest; + fromAmino(object: QueryCreditTypeRequestAmino): QueryCreditTypeRequest; + toAmino(message: QueryCreditTypeRequest): QueryCreditTypeRequestAmino; + fromAminoMsg(object: QueryCreditTypeRequestAminoMsg): QueryCreditTypeRequest; + fromProtoMsg(message: QueryCreditTypeRequestProtoMsg): QueryCreditTypeRequest; + toProto(message: QueryCreditTypeRequest): Uint8Array; + toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg; +}; +export declare const QueryCreditTypeResponse: { + typeUrl: string; + encode(message: QueryCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse; + fromPartial(object: Partial): QueryCreditTypeResponse; + fromAmino(object: QueryCreditTypeResponseAmino): QueryCreditTypeResponse; + toAmino(message: QueryCreditTypeResponse): QueryCreditTypeResponseAmino; + fromAminoMsg(object: QueryCreditTypeResponseAminoMsg): QueryCreditTypeResponse; + fromProtoMsg(message: QueryCreditTypeResponseProtoMsg): QueryCreditTypeResponse; + toProto(message: QueryCreditTypeResponse): Uint8Array; + toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg; +}; +export declare const ClassInfo: { + typeUrl: string; + encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; + fromPartial(object: Partial): ClassInfo; + fromAmino(object: ClassInfoAmino): ClassInfo; + toAmino(message: ClassInfo): ClassInfoAmino; + fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; + fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; + toProto(message: ClassInfo): Uint8Array; + toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; +}; +export declare const ProjectInfo: { + typeUrl: string; + encode(message: ProjectInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo; + fromPartial(object: Partial): ProjectInfo; + fromAmino(object: ProjectInfoAmino): ProjectInfo; + toAmino(message: ProjectInfo): ProjectInfoAmino; + fromAminoMsg(object: ProjectInfoAminoMsg): ProjectInfo; + fromProtoMsg(message: ProjectInfoProtoMsg): ProjectInfo; + toProto(message: ProjectInfo): Uint8Array; + toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg; +}; +export declare const BatchInfo: { + typeUrl: string; + encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; + fromPartial(object: Partial): BatchInfo; + fromAmino(object: BatchInfoAmino): BatchInfo; + toAmino(message: BatchInfo): BatchInfoAmino; + fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; + fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; + toProto(message: BatchInfo): Uint8Array; + toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; +}; +export declare const BatchBalanceInfo: { + typeUrl: string; + encode(message: BatchBalanceInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo; + fromPartial(object: Partial): BatchBalanceInfo; + fromAmino(object: BatchBalanceInfoAmino): BatchBalanceInfo; + toAmino(message: BatchBalanceInfo): BatchBalanceInfoAmino; + fromAminoMsg(object: BatchBalanceInfoAminoMsg): BatchBalanceInfo; + fromProtoMsg(message: BatchBalanceInfoProtoMsg): BatchBalanceInfo; + toProto(message: BatchBalanceInfo): Uint8Array; + toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg; +}; +export declare const QueryClassCreatorAllowlistRequest: { + typeUrl: string; + encode(_: QueryClassCreatorAllowlistRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest; + fromPartial(_: Partial): QueryClassCreatorAllowlistRequest; + fromAmino(_: QueryClassCreatorAllowlistRequestAmino): QueryClassCreatorAllowlistRequest; + toAmino(_: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestAmino; + fromAminoMsg(object: QueryClassCreatorAllowlistRequestAminoMsg): QueryClassCreatorAllowlistRequest; + fromProtoMsg(message: QueryClassCreatorAllowlistRequestProtoMsg): QueryClassCreatorAllowlistRequest; + toProto(message: QueryClassCreatorAllowlistRequest): Uint8Array; + toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg; +}; +export declare const QueryClassCreatorAllowlistResponse: { + typeUrl: string; + encode(message: QueryClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse; + fromPartial(object: Partial): QueryClassCreatorAllowlistResponse; + fromAmino(object: QueryClassCreatorAllowlistResponseAmino): QueryClassCreatorAllowlistResponse; + toAmino(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: QueryClassCreatorAllowlistResponseAminoMsg): QueryClassCreatorAllowlistResponse; + fromProtoMsg(message: QueryClassCreatorAllowlistResponseProtoMsg): QueryClassCreatorAllowlistResponse; + toProto(message: QueryClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg; +}; +export declare const QueryAllowedClassCreatorsRequest: { + typeUrl: string; + encode(message: QueryAllowedClassCreatorsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest; + fromPartial(object: Partial): QueryAllowedClassCreatorsRequest; + fromAmino(object: QueryAllowedClassCreatorsRequestAmino): QueryAllowedClassCreatorsRequest; + toAmino(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestAmino; + fromAminoMsg(object: QueryAllowedClassCreatorsRequestAminoMsg): QueryAllowedClassCreatorsRequest; + fromProtoMsg(message: QueryAllowedClassCreatorsRequestProtoMsg): QueryAllowedClassCreatorsRequest; + toProto(message: QueryAllowedClassCreatorsRequest): Uint8Array; + toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg; +}; +export declare const QueryAllowedClassCreatorsResponse: { + typeUrl: string; + encode(message: QueryAllowedClassCreatorsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse; + fromPartial(object: Partial): QueryAllowedClassCreatorsResponse; + fromAmino(object: QueryAllowedClassCreatorsResponseAmino): QueryAllowedClassCreatorsResponse; + toAmino(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseAmino; + fromAminoMsg(object: QueryAllowedClassCreatorsResponseAminoMsg): QueryAllowedClassCreatorsResponse; + fromProtoMsg(message: QueryAllowedClassCreatorsResponseProtoMsg): QueryAllowedClassCreatorsResponse; + toProto(message: QueryAllowedClassCreatorsResponse): Uint8Array; + toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg; +}; +export declare const QueryClassFeeRequest: { + typeUrl: string; + encode(_: QueryClassFeeRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest; + fromPartial(_: Partial): QueryClassFeeRequest; + fromAmino(_: QueryClassFeeRequestAmino): QueryClassFeeRequest; + toAmino(_: QueryClassFeeRequest): QueryClassFeeRequestAmino; + fromAminoMsg(object: QueryClassFeeRequestAminoMsg): QueryClassFeeRequest; + fromProtoMsg(message: QueryClassFeeRequestProtoMsg): QueryClassFeeRequest; + toProto(message: QueryClassFeeRequest): Uint8Array; + toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg; +}; +export declare const QueryClassFeeResponse: { + typeUrl: string; + encode(message: QueryClassFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse; + fromPartial(object: Partial): QueryClassFeeResponse; + fromAmino(object: QueryClassFeeResponseAmino): QueryClassFeeResponse; + toAmino(message: QueryClassFeeResponse): QueryClassFeeResponseAmino; + fromAminoMsg(object: QueryClassFeeResponseAminoMsg): QueryClassFeeResponse; + fromProtoMsg(message: QueryClassFeeResponseProtoMsg): QueryClassFeeResponse; + toProto(message: QueryClassFeeResponse): Uint8Array; + toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg; +}; +export declare const QueryAllowedBridgeChainsRequest: { + typeUrl: string; + encode(_: QueryAllowedBridgeChainsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest; + fromPartial(_: Partial): QueryAllowedBridgeChainsRequest; + fromAmino(_: QueryAllowedBridgeChainsRequestAmino): QueryAllowedBridgeChainsRequest; + toAmino(_: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestAmino; + fromAminoMsg(object: QueryAllowedBridgeChainsRequestAminoMsg): QueryAllowedBridgeChainsRequest; + fromProtoMsg(message: QueryAllowedBridgeChainsRequestProtoMsg): QueryAllowedBridgeChainsRequest; + toProto(message: QueryAllowedBridgeChainsRequest): Uint8Array; + toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg; +}; +export declare const QueryAllowedBridgeChainsResponse: { + typeUrl: string; + encode(message: QueryAllowedBridgeChainsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse; + fromPartial(object: Partial): QueryAllowedBridgeChainsResponse; + fromAmino(object: QueryAllowedBridgeChainsResponseAmino): QueryAllowedBridgeChainsResponse; + toAmino(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseAmino; + fromAminoMsg(object: QueryAllowedBridgeChainsResponseAminoMsg): QueryAllowedBridgeChainsResponse; + fromProtoMsg(message: QueryAllowedBridgeChainsResponseProtoMsg): QueryAllowedBridgeChainsResponse; + toProto(message: QueryAllowedBridgeChainsResponse): Uint8Array; + toProtoMsg(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.js b/packages/api/dist/regen/ecocredit/v1/query.js new file mode 100644 index 00000000..e572c344 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.js @@ -0,0 +1,4090 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryClassCreatorAllowlistResponse = exports.QueryClassCreatorAllowlistRequest = exports.BatchBalanceInfo = exports.BatchInfo = exports.ProjectInfo = exports.ClassInfo = exports.QueryCreditTypeResponse = exports.QueryCreditTypeRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryCreditTypesResponse = exports.QueryCreditTypesRequest = exports.QuerySupplyResponse = exports.QuerySupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalancesByBatchResponse = exports.QueryBalancesByBatchRequest = exports.QueryBalancesResponse = exports.QueryBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryBatchResponse = exports.QueryBatchRequest = exports.QueryBatchesByClassResponse = exports.QueryBatchesByProjectResponse = exports.QueryBatchesByProjectRequest = exports.QueryBatchesByClassRequest = exports.QueryBatchesByIssuerResponse = exports.QueryBatchesByIssuerRequest = exports.QueryBatchesResponse = exports.QueryBatchesRequest = exports.QueryProjectResponse = exports.QueryProjectRequest = exports.QueryProjectsByAdminResponse = exports.QueryProjectsByAdminRequest = exports.QueryProjectsByReferenceIdResponse = exports.QueryProjectsByReferenceIdRequest = exports.QueryProjectsByClassResponse = exports.QueryProjectsByClassRequest = exports.QueryProjectsResponse = exports.QueryProjectsRequest = exports.QueryClassIssuersResponse = exports.QueryClassIssuersRequest = exports.QueryClassResponse = exports.QueryClassRequest = exports.QueryClassesByAdminResponse = exports.QueryClassesByAdminRequest = exports.QueryClassesResponse = exports.QueryClassesRequest = void 0; +exports.QueryAllowedBridgeChainsResponse = exports.QueryAllowedBridgeChainsRequest = exports.QueryClassFeeResponse = exports.QueryClassFeeRequest = exports.QueryAllowedClassCreatorsResponse = exports.QueryAllowedClassCreatorsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); +const state_1 = require("./state"); +const types_1 = require("./types"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const coin_1 = require("../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseQueryClassesRequest() { + return { + pagination: undefined + }; +} +exports.QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + value: exports.QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse() { + return { + classes: [], + pagination: undefined + }; +} +exports.QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.classes) { + exports.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(exports.ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => exports.ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => exports.ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? exports.ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + value: exports.QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +exports.QueryClassesByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesByAdminRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + value: exports.QueryClassesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminResponse() { + return { + classes: [], + pagination: undefined + }; +} +exports.QueryClassesByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.classes) { + exports.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(exports.ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => exports.ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => exports.ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? exports.ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesByAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + value: exports.QueryClassesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassRequest() { + return { + classId: "" + }; +} +exports.QueryClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + value: exports.QueryClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassResponse() { + return { + class: undefined + }; +} +exports.QueryClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.class !== undefined) { + exports.ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.class = exports.ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassResponse(); + message.class = object.class !== undefined && object.class !== null ? exports.ClassInfo.fromPartial(object.class) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassResponse(); + if (object.class !== undefined && object.class !== null) { + message.class = exports.ClassInfo.fromAmino(object.class); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class = message.class ? exports.ClassInfo.toAmino(message.class) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + value: exports.QueryClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersRequest() { + return { + classId: "", + pagination: undefined + }; +} +exports.QueryClassIssuersRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassIssuersRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassIssuersRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassIssuersRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassIssuersRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassIssuersRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + value: exports.QueryClassIssuersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersResponse() { + return { + issuers: [], + pagination: undefined + }; +} +exports.QueryClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.issuers) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuers.push(reader.string()); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + value: exports.QueryClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsRequest() { + return { + pagination: undefined + }; +} +exports.QueryProjectsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + value: exports.QueryProjectsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsResponse() { + return { + projects: [], + pagination: undefined + }; +} +exports.QueryProjectsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.projects) { + exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + value: exports.QueryProjectsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassRequest() { + return { + classId: "", + pagination: undefined + }; +} +exports.QueryProjectsByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByClassRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + value: exports.QueryProjectsByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassResponse() { + return { + projects: [], + pagination: undefined + }; +} +exports.QueryProjectsByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.projects) { + exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByClassResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + value: exports.QueryProjectsByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdRequest() { + return { + referenceId: "", + pagination: undefined + }; +} +exports.QueryProjectsByReferenceIdRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByReferenceIdRequest(); + message.referenceId = object.referenceId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByReferenceIdRequest(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByReferenceIdRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByReferenceIdRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByReferenceIdRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + value: exports.QueryProjectsByReferenceIdRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdResponse() { + return { + projects: [], + pagination: undefined + }; +} +exports.QueryProjectsByReferenceIdResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.projects) { + exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByReferenceIdResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByReferenceIdResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByReferenceIdResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + value: exports.QueryProjectsByReferenceIdResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminRequest() { + return { + admin: "", + pagination: undefined + }; +} +exports.QueryProjectsByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByAdminRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + value: exports.QueryProjectsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminResponse() { + return { + projects: [], + pagination: undefined + }; +} +exports.QueryProjectsByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.projects) { + exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); + } + else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectsByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectsByAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + value: exports.QueryProjectsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectRequest() { + return { + projectId: "" + }; +} +exports.QueryProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectRequest(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + value: exports.QueryProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectResponse() { + return { + project: undefined + }; +} +exports.QueryProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.project !== undefined) { + exports.ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = exports.ProjectInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryProjectResponse(); + message.project = object.project !== undefined && object.project !== null ? exports.ProjectInfo.fromPartial(object.project) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryProjectResponse(); + if (object.project !== undefined && object.project !== null) { + message.project = exports.ProjectInfo.fromAmino(object.project); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project = message.project ? exports.ProjectInfo.toAmino(message.project) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryProjectResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + value: exports.QueryProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest() { + return { + pagination: undefined + }; +} +exports.QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + value: exports.QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse() { + return { + batches: [], + pagination: undefined + }; +} +exports.QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.batches) { + exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + value: exports.QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerRequest() { + return { + issuer: "", + pagination: undefined + }; +} +exports.QueryBatchesByIssuerRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByIssuerRequest(); + message.issuer = object.issuer ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByIssuerRequest(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByIssuerRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByIssuerRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByIssuerRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + value: exports.QueryBatchesByIssuerRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerResponse() { + return { + batches: [], + pagination: undefined + }; +} +exports.QueryBatchesByIssuerResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.batches) { + exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByIssuerResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByIssuerResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByIssuerResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + value: exports.QueryBatchesByIssuerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassRequest() { + return { + classId: "", + pagination: undefined + }; +} +exports.QueryBatchesByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByClassRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByClassRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + value: exports.QueryBatchesByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectRequest() { + return { + projectId: "", + pagination: undefined + }; +} +exports.QueryBatchesByProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByProjectRequest(); + message.projectId = object.projectId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByProjectRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByProjectRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + value: exports.QueryBatchesByProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectResponse() { + return { + batches: [], + pagination: undefined + }; +} +exports.QueryBatchesByProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.batches) { + exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByProjectResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + value: exports.QueryBatchesByProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassResponse() { + return { + batches: [], + pagination: undefined + }; +} +exports.QueryBatchesByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.batches) { + exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesByClassResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesByClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + value: exports.QueryBatchesByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchRequest() { + return { + batchDenom: "" + }; +} +exports.QueryBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + value: exports.QueryBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchResponse() { + return { + batch: undefined + }; +} +exports.QueryBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batch !== undefined) { + exports.BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batch = exports.BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchResponse(); + message.batch = object.batch !== undefined && object.batch !== null ? exports.BatchInfo.fromPartial(object.batch) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchResponse(); + if (object.batch !== undefined && object.batch !== null) { + message.batch = exports.BatchInfo.fromAmino(object.batch); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch = message.batch ? exports.BatchInfo.toAmino(message.batch) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + value: exports.QueryBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest() { + return { + address: "", + batchDenom: "" + }; +} +exports.QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + value: exports.QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + balance: undefined + }; +} +exports.QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.balance !== undefined) { + exports.BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = exports.BatchBalanceInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? exports.BatchBalanceInfo.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = exports.BatchBalanceInfo.fromAmino(object.balance); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.balance = message.balance ? exports.BatchBalanceInfo.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + value: exports.QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesRequest() { + return { + address: "", + pagination: undefined + }; +} +exports.QueryBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + value: exports.QueryBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +exports.QueryBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + value: exports.QueryBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchRequest() { + return { + batchDenom: "", + pagination: undefined + }; +} +exports.QueryBalancesByBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalancesByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalancesByBatchRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBalancesByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + value: exports.QueryBalancesByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchResponse() { + return { + balances: [], + pagination: undefined + }; +} +exports.QueryBalancesByBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalancesByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalancesByBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBalancesByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + value: exports.QueryBalancesByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest() { + return { + pagination: undefined + }; +} +exports.QueryAllBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllBalancesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + value: exports.QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse() { + return { + balances: [], + pagination: undefined + }; +} +exports.QueryAllBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.balances) { + exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllBalancesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + value: exports.QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest() { + return { + batchDenom: "" + }; +} +exports.QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySupplyRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + value: exports.QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse() { + return { + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +exports.QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(26).string(message.cancelledAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + case 3: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySupplyResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + value: exports.QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest() { + return {}; +} +exports.QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + value: exports.QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse() { + return { + creditTypes: [] + }; +} +exports.QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.creditTypes) { + state_1.CreditType.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(state_1.CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => state_1.CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => state_1.CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? state_1.CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + value: exports.QueryCreditTypesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +exports.QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = types_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = types_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeRequest() { + return { + abbreviation: "" + }; +} +exports.QueryCreditTypeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypeRequest(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypeRequest(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypeRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + value: exports.QueryCreditTypeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeResponse() { + return { + creditType: undefined + }; +} +exports.QueryCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.creditType !== undefined) { + state_1.CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditType = state_1.CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypeResponse(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypeResponse(); + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = state_1.CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypeResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + value: exports.QueryCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseClassInfo() { + return { + id: "", + admin: "", + metadata: "", + creditTypeAbbrev: "" + }; +} +exports.ClassInfo = { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClassInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassInfo.decode(message.value); + }, + toProto(message) { + return exports.ClassInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + value: exports.ClassInfo.encode(message).finish() + }; + } +}; +function createBaseProjectInfo() { + return { + id: "", + admin: "", + classId: "", + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +exports.ProjectInfo = { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(26).string(message.classId); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(50).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.classId = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProjectInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProjectInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return exports.ProjectInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ProjectInfo.decode(message.value); + }, + toProto(message) { + return exports.ProjectInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + value: exports.ProjectInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo() { + return { + issuer: "", + projectId: "", + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +exports.BatchInfo = { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.denom !== "") { + writer.uint32(26).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.issuanceDate), writer.uint32(58).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(64).bool(message.open); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.denom = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchInfo(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseBatchInfo(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchInfo.decode(message.value); + }, + toProto(message) { + return exports.BatchInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + value: exports.BatchInfo.encode(message).finish() + }; + } +}; +function createBaseBatchBalanceInfo() { + return { + address: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +exports.BatchBalanceInfo = { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchBalanceInfo(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchBalanceInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchBalanceInfo.decode(message.value); + }, + toProto(message) { + return exports.BatchBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + value: exports.BatchBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistRequest() { + return {}; +} +exports.QueryClassCreatorAllowlistRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassCreatorAllowlistRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassCreatorAllowlistRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassCreatorAllowlistRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + value: exports.QueryClassCreatorAllowlistRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistResponse() { + return { + enabled: false + }; +} +exports.QueryClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassCreatorAllowlistResponse(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassCreatorAllowlistResponse(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + value: exports.QueryClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsRequest() { + return { + pagination: undefined + }; +} +exports.QueryAllowedClassCreatorsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedClassCreatorsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedClassCreatorsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedClassCreatorsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedClassCreatorsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedClassCreatorsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + value: exports.QueryAllowedClassCreatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsResponse() { + return { + classCreators: [], + pagination: undefined + }; +} +exports.QueryAllowedClassCreatorsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.classCreators) { + writer.uint32(10).string(v); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classCreators.push(reader.string()); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.classCreators?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.class_creators?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classCreators) { + obj.class_creators = message.classCreators.map(e => e); + } + else { + obj.class_creators = message.classCreators; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedClassCreatorsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedClassCreatorsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedClassCreatorsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + value: exports.QueryAllowedClassCreatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeRequest() { + return {}; +} +exports.QueryClassFeeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassFeeRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassFeeRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + value: exports.QueryClassFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeResponse() { + return { + fee: undefined + }; +} +exports.QueryClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassFeeResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + value: exports.QueryClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsRequest() { + return {}; +} +exports.QueryAllowedBridgeChainsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedBridgeChainsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedBridgeChainsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedBridgeChainsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + value: exports.QueryAllowedBridgeChainsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsResponse() { + return { + allowedBridgeChains: [] + }; +} +exports.QueryAllowedBridgeChainsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.allowedBridgeChains) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } + else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryAllowedBridgeChainsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryAllowedBridgeChainsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryAllowedBridgeChainsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + value: exports.QueryAllowedBridgeChainsResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts new file mode 100644 index 00000000..022714ce --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts @@ -0,0 +1,34 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + classes(params?: QueryClassesRequest): Promise; + classesByAdmin(params: QueryClassesByAdminRequest): Promise; + class(params: QueryClassRequest): Promise; + classIssuers(params: QueryClassIssuersRequest): Promise; + projects(params?: QueryProjectsRequest): Promise; + projectsByClass(params: QueryProjectsByClassRequest): Promise; + projectsByReferenceId(params: QueryProjectsByReferenceIdRequest): Promise; + projectsByAdmin(params: QueryProjectsByAdminRequest): Promise; + project(params: QueryProjectRequest): Promise; + batches(params?: QueryBatchesRequest): Promise; + batchesByIssuer(params: QueryBatchesByIssuerRequest): Promise; + batchesByClass(params: QueryBatchesByClassRequest): Promise; + batchesByProject(params: QueryBatchesByProjectRequest): Promise; + batch(params: QueryBatchRequest): Promise; + balance(params: QueryBalanceRequest): Promise; + balances(params: QueryBalancesRequest): Promise; + balancesByBatch(params: QueryBalancesByBatchRequest): Promise; + allBalances(params?: QueryAllBalancesRequest): Promise; + supply(params: QuerySupplyRequest): Promise; + creditTypes(_params?: QueryCreditTypesRequest): Promise; + params(_params?: QueryParamsRequest): Promise; + creditType(params: QueryCreditTypeRequest): Promise; + classCreatorAllowlist(_params?: QueryClassCreatorAllowlistRequest): Promise; + allowedClassCreators(params?: QueryAllowedClassCreatorsRequest): Promise; + classFee(_params?: QueryClassFeeRequest): Promise; + allowedBridgeChains(_params?: QueryAllowedBridgeChainsRequest): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/v1/query.lcd.js new file mode 100644 index 00000000..a6098764 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.lcd.js @@ -0,0 +1,292 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassesByAdmin queries for all credit classes with a specific admin + address. */ + async classesByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Class queries for information on a credit class. */ + async class(params) { + const endpoint = `regen/ecocredit/v1/class/${params.classId}`; + return await this.req.get(endpoint); + } + /* ClassIssuers queries for the addresses of the issuers for a credit class. */ + async classIssuers(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* Projects queries for all projects with pagination. */ + async projects(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects`; + return await this.req.get(endpoint, options); + } + /* ProjectsByClass queries for all projects within a class with pagination. */ + async projectsByClass(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByReferenceId queries for all projects by reference-id with + pagination. */ + async projectsByReferenceId(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByAdmin queries for all projects by admin with + pagination. */ + async projectsByAdmin(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Project queries for information on a project. */ + async project(params) { + const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches with pagination. */ + async batches(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches`; + return await this.req.get(endpoint, options); + } + /* BatchesByIssuer queries all batches issued from a given issuer address. */ + async batchesByIssuer(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; + return await this.req.get(endpoint, options); + } + /* BatchesByClass queries all batches issued from a given class. */ + async batchesByClass(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* BatchesByProject queries for all batches from a given project with + pagination. */ + async batchesByProject(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; + return await this.req.get(endpoint, options); + } + /* Batch queries for information on a credit batch. */ + async batch(params) { + const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account address. */ + async balance(params) { + const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; + return await this.req.get(endpoint); + } + /* Balances queries all credit balances the given account holds. */ + async balances(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* BalancesByBatch queries all credit balances from a given batch. + + Since Revision 2 */ + async balancesByBatch(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries all credit balances. + + Since Revision 2 */ + async allBalances(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/all-balances`; + return await this.req.get(endpoint, options); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params) { + const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params = {}) { + const endpoint = `regen/ecocredit/v1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. + + Deprecated (Since Revision 2): This rpc will be removed in the next + version. */ + async params(_params = {}) { + const endpoint = `regen/ecocredit/v1/params`; + return await this.req.get(endpoint); + } + /* CreditType queries credit type information by abbreviation. */ + async creditType(params) { + const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; + return await this.req.get(endpoint); + } + /* ClassCreatorAllowlist queries the credit class creator allowlist + enabled setting. + + Since Revision 2 */ + async classCreatorAllowlist(_params = {}) { + const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; + return await this.req.get(endpoint); + } + /* AllowedClassCreators queries allowed credit class creators list. + + Since Revision 2 */ + async allowedClassCreators(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/allowed-class-creators`; + return await this.req.get(endpoint, options); + } + /* ClassFee returns the credit class creation fee. If not set, a credit class + creation fee is not required. + + Since Revision 2 */ + async classFee(_params = {}) { + const endpoint = `regen/ecocredit/v1/class-fee`; + return await this.req.get(endpoint); + } + /* AllowedBridgeChains queries the list of chains allowed to be used in bridge + operations. + + Since Revision 2 */ + async allowedBridgeChains(_params = {}) { + const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..de47b8aa --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts @@ -0,0 +1,166 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; +/** Msg is the regen.ecocredit.v1 Query service. */ +export interface Query { + /** Classes queries for all credit classes with pagination. */ + classes(request?: QueryClassesRequest): Promise; + /** + * ClassesByAdmin queries for all credit classes with a specific admin + * address. + */ + classesByAdmin(request: QueryClassesByAdminRequest): Promise; + /** Class queries for information on a credit class. */ + class(request: QueryClassRequest): Promise; + /** ClassIssuers queries for the addresses of the issuers for a credit class. */ + classIssuers(request: QueryClassIssuersRequest): Promise; + /** Projects queries for all projects with pagination. */ + projects(request?: QueryProjectsRequest): Promise; + /** ProjectsByClass queries for all projects within a class with pagination. */ + projectsByClass(request: QueryProjectsByClassRequest): Promise; + /** + * ProjectsByReferenceId queries for all projects by reference-id with + * pagination. + */ + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; + /** + * ProjectsByAdmin queries for all projects by admin with + * pagination. + */ + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; + /** Project queries for information on a project. */ + project(request: QueryProjectRequest): Promise; + /** Batches queries for all batches with pagination. */ + batches(request?: QueryBatchesRequest): Promise; + /** BatchesByIssuer queries all batches issued from a given issuer address. */ + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; + /** BatchesByClass queries all batches issued from a given class. */ + batchesByClass(request: QueryBatchesByClassRequest): Promise; + /** + * BatchesByProject queries for all batches from a given project with + * pagination. + */ + batchesByProject(request: QueryBatchesByProjectRequest): Promise; + /** Batch queries for information on a credit batch. */ + batch(request: QueryBatchRequest): Promise; + /** + * Balance queries the balance (both tradable and retired) of a given credit + * batch for a given account address. + */ + balance(request: QueryBalanceRequest): Promise; + /** Balances queries all credit balances the given account holds. */ + balances(request: QueryBalancesRequest): Promise; + /** + * BalancesByBatch queries all credit balances from a given batch. + * + * Since Revision 2 + */ + balancesByBatch(request: QueryBalancesByBatchRequest): Promise; + /** + * AllBalances queries all credit balances. + * + * Since Revision 2 + */ + allBalances(request?: QueryAllBalancesRequest): Promise; + /** Supply queries the tradable and retired supply of a credit batch. */ + supply(request: QuerySupplyRequest): Promise; + /** + * CreditTypes returns the list of allowed types that credit classes can have. + * See Types/CreditType for more details. + */ + creditTypes(request?: QueryCreditTypesRequest): Promise; + /** + * Params queries the ecocredit module parameters. + * + * Deprecated (Since Revision 2): This rpc will be removed in the next + * version. + */ + params(request?: QueryParamsRequest): Promise; + /** CreditType queries credit type information by abbreviation. */ + creditType(request: QueryCreditTypeRequest): Promise; + /** + * ClassCreatorAllowlist queries the credit class creator allowlist + * enabled setting. + * + * Since Revision 2 + */ + classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; + /** + * AllowedClassCreators queries allowed credit class creators list. + * + * Since Revision 2 + */ + allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; + /** + * ClassFee returns the credit class creation fee. If not set, a credit class + * creation fee is not required. + * + * Since Revision 2 + */ + classFee(request?: QueryClassFeeRequest): Promise; + /** + * AllowedBridgeChains queries the list of chains allowed to be used in bridge + * operations. + * + * Since Revision 2 + */ + allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + classes(request?: QueryClassesRequest): Promise; + classesByAdmin(request: QueryClassesByAdminRequest): Promise; + class(request: QueryClassRequest): Promise; + classIssuers(request: QueryClassIssuersRequest): Promise; + projects(request?: QueryProjectsRequest): Promise; + projectsByClass(request: QueryProjectsByClassRequest): Promise; + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; + project(request: QueryProjectRequest): Promise; + batches(request?: QueryBatchesRequest): Promise; + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; + batchesByClass(request: QueryBatchesByClassRequest): Promise; + batchesByProject(request: QueryBatchesByProjectRequest): Promise; + batch(request: QueryBatchRequest): Promise; + balance(request: QueryBalanceRequest): Promise; + balances(request: QueryBalancesRequest): Promise; + balancesByBatch(request: QueryBalancesByBatchRequest): Promise; + allBalances(request?: QueryAllBalancesRequest): Promise; + supply(request: QuerySupplyRequest): Promise; + creditTypes(request?: QueryCreditTypesRequest): Promise; + params(request?: QueryParamsRequest): Promise; + creditType(request: QueryCreditTypeRequest): Promise; + classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; + allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; + classFee(request?: QueryClassFeeRequest): Promise; + allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + classes(request?: QueryClassesRequest): Promise; + classesByAdmin(request: QueryClassesByAdminRequest): Promise; + class(request: QueryClassRequest): Promise; + classIssuers(request: QueryClassIssuersRequest): Promise; + projects(request?: QueryProjectsRequest): Promise; + projectsByClass(request: QueryProjectsByClassRequest): Promise; + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; + project(request: QueryProjectRequest): Promise; + batches(request?: QueryBatchesRequest): Promise; + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; + batchesByClass(request: QueryBatchesByClassRequest): Promise; + batchesByProject(request: QueryBatchesByProjectRequest): Promise; + batch(request: QueryBatchRequest): Promise; + balance(request: QueryBalanceRequest): Promise; + balances(request: QueryBalancesRequest): Promise; + balancesByBatch(request: QueryBalancesByBatchRequest): Promise; + allBalances(request?: QueryAllBalancesRequest): Promise; + supply(request: QuerySupplyRequest): Promise; + creditTypes(request?: QueryCreditTypesRequest): Promise; + params(request?: QueryParamsRequest): Promise; + creditType(request: QueryCreditTypeRequest): Promise; + classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; + allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; + classFee(request?: QueryClassFeeRequest): Promise; + allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js new file mode 100644 index 00000000..fb9e4747 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js @@ -0,0 +1,264 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + classes(request = { + pagination: undefined + }) { + const data = query_1.QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); + return promise.then(data => query_1.QueryClassesResponse.decode(new binary_1.BinaryReader(data))); + } + classesByAdmin(request) { + const data = query_1.QueryClassesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); + return promise.then(data => query_1.QueryClassesByAdminResponse.decode(new binary_1.BinaryReader(data))); + } + class(request) { + const data = query_1.QueryClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); + return promise.then(data => query_1.QueryClassResponse.decode(new binary_1.BinaryReader(data))); + } + classIssuers(request) { + const data = query_1.QueryClassIssuersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); + return promise.then(data => query_1.QueryClassIssuersResponse.decode(new binary_1.BinaryReader(data))); + } + projects(request = { + pagination: undefined + }) { + const data = query_1.QueryProjectsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); + return promise.then(data => query_1.QueryProjectsResponse.decode(new binary_1.BinaryReader(data))); + } + projectsByClass(request) { + const data = query_1.QueryProjectsByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); + return promise.then(data => query_1.QueryProjectsByClassResponse.decode(new binary_1.BinaryReader(data))); + } + projectsByReferenceId(request) { + const data = query_1.QueryProjectsByReferenceIdRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); + return promise.then(data => query_1.QueryProjectsByReferenceIdResponse.decode(new binary_1.BinaryReader(data))); + } + projectsByAdmin(request) { + const data = query_1.QueryProjectsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); + return promise.then(data => query_1.QueryProjectsByAdminResponse.decode(new binary_1.BinaryReader(data))); + } + project(request) { + const data = query_1.QueryProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); + return promise.then(data => query_1.QueryProjectResponse.decode(new binary_1.BinaryReader(data))); + } + batches(request = { + pagination: undefined + }) { + const data = query_1.QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); + return promise.then(data => query_1.QueryBatchesResponse.decode(new binary_1.BinaryReader(data))); + } + batchesByIssuer(request) { + const data = query_1.QueryBatchesByIssuerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); + return promise.then(data => query_1.QueryBatchesByIssuerResponse.decode(new binary_1.BinaryReader(data))); + } + batchesByClass(request) { + const data = query_1.QueryBatchesByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); + return promise.then(data => query_1.QueryBatchesByClassResponse.decode(new binary_1.BinaryReader(data))); + } + batchesByProject(request) { + const data = query_1.QueryBatchesByProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); + return promise.then(data => query_1.QueryBatchesByProjectResponse.decode(new binary_1.BinaryReader(data))); + } + batch(request) { + const data = query_1.QueryBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); + return promise.then(data => query_1.QueryBatchResponse.decode(new binary_1.BinaryReader(data))); + } + balance(request) { + const data = query_1.QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); + return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); + } + balances(request) { + const data = query_1.QueryBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); + return promise.then(data => query_1.QueryBalancesResponse.decode(new binary_1.BinaryReader(data))); + } + balancesByBatch(request) { + const data = query_1.QueryBalancesByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); + return promise.then(data => query_1.QueryBalancesByBatchResponse.decode(new binary_1.BinaryReader(data))); + } + allBalances(request = { + pagination: undefined + }) { + const data = query_1.QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); + return promise.then(data => query_1.QueryAllBalancesResponse.decode(new binary_1.BinaryReader(data))); + } + supply(request) { + const data = query_1.QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); + return promise.then(data => query_1.QuerySupplyResponse.decode(new binary_1.BinaryReader(data))); + } + creditTypes(request = {}) { + const data = query_1.QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); + return promise.then(data => query_1.QueryCreditTypesResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } + creditType(request) { + const data = query_1.QueryCreditTypeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); + return promise.then(data => query_1.QueryCreditTypeResponse.decode(new binary_1.BinaryReader(data))); + } + classCreatorAllowlist(request = {}) { + const data = query_1.QueryClassCreatorAllowlistRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); + return promise.then(data => query_1.QueryClassCreatorAllowlistResponse.decode(new binary_1.BinaryReader(data))); + } + allowedClassCreators(request = { + pagination: undefined + }) { + const data = query_1.QueryAllowedClassCreatorsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); + return promise.then(data => query_1.QueryAllowedClassCreatorsResponse.decode(new binary_1.BinaryReader(data))); + } + classFee(request = {}) { + const data = query_1.QueryClassFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); + return promise.then(data => query_1.QueryClassFeeResponse.decode(new binary_1.BinaryReader(data))); + } + allowedBridgeChains(request = {}) { + const data = query_1.QueryAllowedBridgeChainsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); + return promise.then(data => query_1.QueryAllowedBridgeChainsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request) { + return queryService.classes(request); + }, + classesByAdmin(request) { + return queryService.classesByAdmin(request); + }, + class(request) { + return queryService.class(request); + }, + classIssuers(request) { + return queryService.classIssuers(request); + }, + projects(request) { + return queryService.projects(request); + }, + projectsByClass(request) { + return queryService.projectsByClass(request); + }, + projectsByReferenceId(request) { + return queryService.projectsByReferenceId(request); + }, + projectsByAdmin(request) { + return queryService.projectsByAdmin(request); + }, + project(request) { + return queryService.project(request); + }, + batches(request) { + return queryService.batches(request); + }, + batchesByIssuer(request) { + return queryService.batchesByIssuer(request); + }, + batchesByClass(request) { + return queryService.batchesByClass(request); + }, + batchesByProject(request) { + return queryService.batchesByProject(request); + }, + batch(request) { + return queryService.batch(request); + }, + balance(request) { + return queryService.balance(request); + }, + balances(request) { + return queryService.balances(request); + }, + balancesByBatch(request) { + return queryService.balancesByBatch(request); + }, + allBalances(request) { + return queryService.allBalances(request); + }, + supply(request) { + return queryService.supply(request); + }, + creditTypes(request) { + return queryService.creditTypes(request); + }, + params(request) { + return queryService.params(request); + }, + creditType(request) { + return queryService.creditType(request); + }, + classCreatorAllowlist(request) { + return queryService.classCreatorAllowlist(request); + }, + allowedClassCreators(request) { + return queryService.allowedClassCreators(request); + }, + classFee(request) { + return queryService.classFee(request); + }, + allowedBridgeChains(request) { + return queryService.allowedBridgeChains(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/v1/state.d.ts b/packages/api/dist/regen/ecocredit/v1/state.d.ts new file mode 100644 index 00000000..9871ea8e --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/state.d.ts @@ -0,0 +1,1110 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditType { + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation: string; + /** name is the name of the credit type (e.g. carbon, biodiversity). */ + name: string; + /** unit is the measurement unit of the credit type (e.g. kg, ton). */ + unit: string; + /** precision is the decimal precision of the credit type. */ + precision: number; +} +export interface CreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.CreditType"; + value: Uint8Array; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeAmino { + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation?: string; + /** name is the name of the credit type (e.g. carbon, biodiversity). */ + name?: string; + /** unit is the measurement unit of the credit type (e.g. kg, ton). */ + unit?: string; + /** precision is the decimal precision of the credit type. */ + precision?: number; +} +export interface CreditTypeAminoMsg { + type: "/regen.ecocredit.v1.CreditType"; + value: CreditTypeAmino; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeSDKType { + abbreviation: string; + name: string; + unit: string; + precision: number; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface Class { + /** + * key is the table row identifier of the credit class used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * id is the unique identifier of the credit class auto-generated from the + * credit type abbreviation and the credit class sequence number. + */ + id: string; + /** admin is the admin of the credit class. */ + admin: Uint8Array; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + creditTypeAbbrev: string; +} +export interface ClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.Class"; + value: Uint8Array; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface ClassAmino { + /** + * key is the table row identifier of the credit class used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * id is the unique identifier of the credit class auto-generated from the + * credit type abbreviation and the credit class sequence number. + */ + id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + credit_type_abbrev?: string; +} +export interface ClassAminoMsg { + type: "/regen.ecocredit.v1.Class"; + value: ClassAmino; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface ClassSDKType { + key: bigint; + id: string; + admin: Uint8Array; + metadata: string; + credit_type_abbrev: string; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuer { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a class issuer to a credit class. + */ + classKey: bigint; + /** issuer is the approved issuer of the credit class. */ + issuer: Uint8Array; +} +export interface ClassIssuerProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassIssuer"; + value: Uint8Array; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuerAmino { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a class issuer to a credit class. + */ + class_key?: string; + /** issuer is the approved issuer of the credit class. */ + issuer?: string; +} +export interface ClassIssuerAminoMsg { + type: "/regen.ecocredit.v1.ClassIssuer"; + value: ClassIssuerAmino; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuerSDKType { + class_key: bigint; + issuer: Uint8Array; +} +/** Project represents the high-level on-chain information for a project. */ +export interface Project { + /** + * key is the table row identifier of the project used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * id is the unique identifier of the project either auto-generated from the + * credit class id and project sequence number or provided upon creation. + */ + id: string; + /** admin is the admin of the project. */ + admin: Uint8Array; + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project to a credit class. + */ + classKey: bigint; + /** + * jurisdiction is the jurisdiction of the project. + * Full documentation can be found in MsgCreateProject.jurisdiction. + */ + jurisdiction: string; + /** metadata is any arbitrary metadata attached to the project. */ + metadata: string; + /** reference_id is any arbitrary string used to reference the project. */ + referenceId: string; +} +export interface ProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.Project"; + value: Uint8Array; +} +/** Project represents the high-level on-chain information for a project. */ +export interface ProjectAmino { + /** + * key is the table row identifier of the project used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * id is the unique identifier of the project either auto-generated from the + * credit class id and project sequence number or provided upon creation. + */ + id?: string; + /** admin is the admin of the project. */ + admin?: string; + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project to a credit class. + */ + class_key?: string; + /** + * jurisdiction is the jurisdiction of the project. + * Full documentation can be found in MsgCreateProject.jurisdiction. + */ + jurisdiction?: string; + /** metadata is any arbitrary metadata attached to the project. */ + metadata?: string; + /** reference_id is any arbitrary string used to reference the project. */ + reference_id?: string; +} +export interface ProjectAminoMsg { + type: "/regen.ecocredit.v1.Project"; + value: ProjectAmino; +} +/** Project represents the high-level on-chain information for a project. */ +export interface ProjectSDKType { + key: bigint; + id: string; + admin: Uint8Array; + class_key: bigint; + jurisdiction: string; + metadata: string; + reference_id: string; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface Batch { + /** + * key is the table row identifier of the credit batch used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * issuer is the address that created the batch and which is + * authorized to mint more credits if open=true. + */ + issuer: Uint8Array; + /** + * project_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a credit batch to a project. + */ + projectKey: bigint; + /** + * denom is the unique identifier of the credit batch formed from the + * project id, the batch sequence number, and the start and end date of the + * credit batch. + */ + denom: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuanceDate?: Date; + /** + * open tells if it's possible to mint new credits in the future. + * Once `open` is set to false, it can't be toggled any more. + */ + open: boolean; +} +export interface BatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.Batch"; + value: Uint8Array; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface BatchAmino { + /** + * key is the table row identifier of the credit batch used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * issuer is the address that created the batch and which is + * authorized to mint more credits if open=true. + */ + issuer?: string; + /** + * project_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a credit batch to a project. + */ + project_key?: string; + /** + * denom is the unique identifier of the credit batch formed from the + * project id, the batch sequence number, and the start and end date of the + * credit batch. + */ + denom?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuance_date?: string; + /** + * open tells if it's possible to mint new credits in the future. + * Once `open` is set to false, it can't be toggled any more. + */ + open?: boolean; +} +export interface BatchAminoMsg { + type: "/regen.ecocredit.v1.Batch"; + value: BatchAmino; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface BatchSDKType { + key: bigint; + issuer: Uint8Array; + project_key: bigint; + denom: string; + metadata: string; + start_date?: Date; + end_date?: Date; + issuance_date?: Date; + open: boolean; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequence { + /** + * credit_type_abbrev is the credit type abbreviation. This links a class + * sequence to a credit type. + */ + creditTypeAbbrev: string; + /** + * next_sequence is the next sequence number for a credit class within the + * credit type. The sequence number is used to generate a class id. + */ + nextSequence: bigint; +} +export interface ClassSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassSequence"; + value: Uint8Array; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequenceAmino { + /** + * credit_type_abbrev is the credit type abbreviation. This links a class + * sequence to a credit type. + */ + credit_type_abbrev?: string; + /** + * next_sequence is the next sequence number for a credit class within the + * credit type. The sequence number is used to generate a class id. + */ + next_sequence?: string; +} +export interface ClassSequenceAminoMsg { + type: "/regen.ecocredit.v1.ClassSequence"; + value: ClassSequenceAmino; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequenceSDKType { + credit_type_abbrev: string; + next_sequence: bigint; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequence { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project sequence to a credit class. + */ + classKey: bigint; + /** + * next_sequence is the next sequence number for a project within the credit + * class. The sequence number is used to generate a project id. + */ + nextSequence: bigint; +} +export interface ProjectSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.ProjectSequence"; + value: Uint8Array; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequenceAmino { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project sequence to a credit class. + */ + class_key?: string; + /** + * next_sequence is the next sequence number for a project within the credit + * class. The sequence number is used to generate a project id. + */ + next_sequence?: string; +} +export interface ProjectSequenceAminoMsg { + type: "/regen.ecocredit.v1.ProjectSequence"; + value: ProjectSequenceAmino; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequenceSDKType { + class_key: bigint; + next_sequence: bigint; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequence { + /** + * project_key is the table row identifier of the project used internally for + * efficient lookups. This links a batch sequence to a project. + */ + projectKey: bigint; + /** + * next_sequence is the next sequence number for a credit batch within the + * project. The sequence number is used to generate a batch denom. + */ + nextSequence: bigint; +} +export interface BatchSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchSequence"; + value: Uint8Array; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequenceAmino { + /** + * project_key is the table row identifier of the project used internally for + * efficient lookups. This links a batch sequence to a project. + */ + project_key?: string; + /** + * next_sequence is the next sequence number for a credit batch within the + * project. The sequence number is used to generate a batch denom. + */ + next_sequence?: string; +} +export interface BatchSequenceAminoMsg { + type: "/regen.ecocredit.v1.BatchSequence"; + value: BatchSequenceAmino; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequenceSDKType { + project_key: bigint; + next_sequence: bigint; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalance { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch balance to a credit batch. + */ + batchKey: bigint; + /** address is the address of the account that owns the credits. */ + address: Uint8Array; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradableAmount: string; + /** retired_amount is the total number of retired credits owned by address. */ + retiredAmount: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowedAmount: string; +} +export interface BatchBalanceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchBalance"; + value: Uint8Array; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalanceAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch balance to a credit batch. + */ + batch_key?: string; + /** address is the address of the account that owns the credits. */ + address?: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradable_amount?: string; + /** retired_amount is the total number of retired credits owned by address. */ + retired_amount?: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowed_amount?: string; +} +export interface BatchBalanceAminoMsg { + type: "/regen.ecocredit.v1.BatchBalance"; + value: BatchBalanceAmino; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalanceSDKType { + batch_key: bigint; + address: Uint8Array; + tradable_amount: string; + retired_amount: string; + escrowed_amount: string; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupply { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch supply to a credit batch. + */ + batchKey: bigint; + /** + * tradable_amount is the total number of tradable credits in the credit + * batch. Tradable credits may be retired in which case they will be removed + * from tradable_amount and tracked in retired_amount. Tradable credits may + * also be cancelled in which case they will be removed from tradable_amount + * and tracked in cancelled_amount. The sum of the tradable, retired, and + * cancelled amounts will always equal the original credit issuance amount. + */ + tradableAmount: string; + /** + * retired_amount is the total amount of credits that have been retired in the + * credit batch. The sum of the tradable, retired, and cancelled amounts will + * always equal the original credit issuance amount. + */ + retiredAmount: string; + /** + * cancelled_amount is the number of credits in the batch that have been + * cancelled, effectively undoing the issuance. The sum of the tradable, + * retired, and cancelled amounts will always equal the original credit + * issuance amount. + */ + cancelledAmount: string; +} +export interface BatchSupplyProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchSupply"; + value: Uint8Array; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupplyAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch supply to a credit batch. + */ + batch_key?: string; + /** + * tradable_amount is the total number of tradable credits in the credit + * batch. Tradable credits may be retired in which case they will be removed + * from tradable_amount and tracked in retired_amount. Tradable credits may + * also be cancelled in which case they will be removed from tradable_amount + * and tracked in cancelled_amount. The sum of the tradable, retired, and + * cancelled amounts will always equal the original credit issuance amount. + */ + tradable_amount?: string; + /** + * retired_amount is the total amount of credits that have been retired in the + * credit batch. The sum of the tradable, retired, and cancelled amounts will + * always equal the original credit issuance amount. + */ + retired_amount?: string; + /** + * cancelled_amount is the number of credits in the batch that have been + * cancelled, effectively undoing the issuance. The sum of the tradable, + * retired, and cancelled amounts will always equal the original credit + * issuance amount. + */ + cancelled_amount?: string; +} +export interface BatchSupplyAminoMsg { + type: "/regen.ecocredit.v1.BatchSupply"; + value: BatchSupplyAmino; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupplySDKType { + batch_key: bigint; + tradable_amount: string; + retired_amount: string; + cancelled_amount: string; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndex { + /** + * class_key is the table row identifier of the credit class within which the + * credits were issued or minted. The class_key is included within the index + * to prevent malicious credit class issuers from blocking bridge operations + * taking place within another credit class. + */ + classKey: bigint; + /** + * id is the transaction ID of an originating transaction or operation + * based on a type (i.e. transaction ID, serial number). + */ + id: string; + /** + * source is the source chain or registry of the transaction originating + * the mint process (e.g. polygon, ethereum, verra). + */ + source: string; +} +export interface OriginTxIndexProtoMsg { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex"; + value: Uint8Array; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndexAmino { + /** + * class_key is the table row identifier of the credit class within which the + * credits were issued or minted. The class_key is included within the index + * to prevent malicious credit class issuers from blocking bridge operations + * taking place within another credit class. + */ + class_key?: string; + /** + * id is the transaction ID of an originating transaction or operation + * based on a type (i.e. transaction ID, serial number). + */ + id?: string; + /** + * source is the source chain or registry of the transaction originating + * the mint process (e.g. polygon, ethereum, verra). + */ + source?: string; +} +export interface OriginTxIndexAminoMsg { + type: "/regen.ecocredit.v1.OriginTxIndex"; + value: OriginTxIndexAmino; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndexSDKType { + class_key: bigint; + id: string; + source: string; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContract { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links an external contract to a credit batch. + */ + batchKey: bigint; + /** + * class_key is the table row identifier of the credit class within which the + * credit batch exists. A contract is unique within the scope of a credit + * class to prevent malicious credit class issuers from blocking bridge + * operations taking place within another credit class. + */ + classKey: bigint; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be used when + * sending credits back to the source chain. + */ + contract: string; +} +export interface BatchContractProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchContract"; + value: Uint8Array; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContractAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links an external contract to a credit batch. + */ + batch_key?: string; + /** + * class_key is the table row identifier of the credit class within which the + * credit batch exists. A contract is unique within the scope of a credit + * class to prevent malicious credit class issuers from blocking bridge + * operations taking place within another credit class. + */ + class_key?: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be used when + * sending credits back to the source chain. + */ + contract?: string; +} +export interface BatchContractAminoMsg { + type: "/regen.ecocredit.v1.BatchContract"; + value: BatchContractAmino; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContractSDKType { + batch_key: bigint; + class_key: bigint; + contract: string; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlist { + /** enabled is whether or not the allow list is enabled. */ + enabled: boolean; +} +export interface ClassCreatorAllowlistProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist"; + value: Uint8Array; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlistAmino { + /** enabled is whether or not the allow list is enabled. */ + enabled?: boolean; +} +export interface ClassCreatorAllowlistAminoMsg { + type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; + value: ClassCreatorAllowlistAmino; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlistSDKType { + enabled: boolean; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreator { + /** address is the address that is allowed to create credit classes */ + address: Uint8Array; +} +export interface AllowedClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator"; + value: Uint8Array; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreatorAmino { + /** address is the address that is allowed to create credit classes */ + address?: string; +} +export interface AllowedClassCreatorAminoMsg { + type: "/regen.ecocredit.v1.AllowedClassCreator"; + value: AllowedClassCreatorAmino; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreatorSDKType { + address: Uint8Array; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFee { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: Coin; +} +export interface ClassFeeProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassFee"; + value: Uint8Array; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFeeAmino { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: CoinAmino; +} +export interface ClassFeeAminoMsg { + type: "/regen.ecocredit.v1.ClassFee"; + value: ClassFeeAmino; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFeeSDKType { + fee?: CoinSDKType; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChain { + /** chain_name is the name of the chain allowed to bridge ecocredits to. */ + chainName: string; +} +export interface AllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain"; + value: Uint8Array; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChainAmino { + /** chain_name is the name of the chain allowed to bridge ecocredits to. */ + chain_name?: string; +} +export interface AllowedBridgeChainAminoMsg { + type: "/regen.ecocredit.v1.AllowedBridgeChain"; + value: AllowedBridgeChainAmino; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChainSDKType { + chain_name: string; +} +export declare const CreditType: { + typeUrl: string; + encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditType; + fromPartial(object: Partial): CreditType; + fromAmino(object: CreditTypeAmino): CreditType; + toAmino(message: CreditType): CreditTypeAmino; + fromAminoMsg(object: CreditTypeAminoMsg): CreditType; + fromProtoMsg(message: CreditTypeProtoMsg): CreditType; + toProto(message: CreditType): Uint8Array; + toProtoMsg(message: CreditType): CreditTypeProtoMsg; +}; +export declare const Class: { + typeUrl: string; + encode(message: Class, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Class; + fromPartial(object: Partial): Class; + fromAmino(object: ClassAmino): Class; + toAmino(message: Class): ClassAmino; + fromAminoMsg(object: ClassAminoMsg): Class; + fromProtoMsg(message: ClassProtoMsg): Class; + toProto(message: Class): Uint8Array; + toProtoMsg(message: Class): ClassProtoMsg; +}; +export declare const ClassIssuer: { + typeUrl: string; + encode(message: ClassIssuer, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer; + fromPartial(object: Partial): ClassIssuer; + fromAmino(object: ClassIssuerAmino): ClassIssuer; + toAmino(message: ClassIssuer): ClassIssuerAmino; + fromAminoMsg(object: ClassIssuerAminoMsg): ClassIssuer; + fromProtoMsg(message: ClassIssuerProtoMsg): ClassIssuer; + toProto(message: ClassIssuer): Uint8Array; + toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg; +}; +export declare const Project: { + typeUrl: string; + encode(message: Project, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Project; + fromPartial(object: Partial): Project; + fromAmino(object: ProjectAmino): Project; + toAmino(message: Project): ProjectAmino; + fromAminoMsg(object: ProjectAminoMsg): Project; + fromProtoMsg(message: ProjectProtoMsg): Project; + toProto(message: Project): Uint8Array; + toProtoMsg(message: Project): ProjectProtoMsg; +}; +export declare const Batch: { + typeUrl: string; + encode(message: Batch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Batch; + fromPartial(object: Partial): Batch; + fromAmino(object: BatchAmino): Batch; + toAmino(message: Batch): BatchAmino; + fromAminoMsg(object: BatchAminoMsg): Batch; + fromProtoMsg(message: BatchProtoMsg): Batch; + toProto(message: Batch): Uint8Array; + toProtoMsg(message: Batch): BatchProtoMsg; +}; +export declare const ClassSequence: { + typeUrl: string; + encode(message: ClassSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence; + fromPartial(object: Partial): ClassSequence; + fromAmino(object: ClassSequenceAmino): ClassSequence; + toAmino(message: ClassSequence): ClassSequenceAmino; + fromAminoMsg(object: ClassSequenceAminoMsg): ClassSequence; + fromProtoMsg(message: ClassSequenceProtoMsg): ClassSequence; + toProto(message: ClassSequence): Uint8Array; + toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg; +}; +export declare const ProjectSequence: { + typeUrl: string; + encode(message: ProjectSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence; + fromPartial(object: Partial): ProjectSequence; + fromAmino(object: ProjectSequenceAmino): ProjectSequence; + toAmino(message: ProjectSequence): ProjectSequenceAmino; + fromAminoMsg(object: ProjectSequenceAminoMsg): ProjectSequence; + fromProtoMsg(message: ProjectSequenceProtoMsg): ProjectSequence; + toProto(message: ProjectSequence): Uint8Array; + toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg; +}; +export declare const BatchSequence: { + typeUrl: string; + encode(message: BatchSequence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence; + fromPartial(object: Partial): BatchSequence; + fromAmino(object: BatchSequenceAmino): BatchSequence; + toAmino(message: BatchSequence): BatchSequenceAmino; + fromAminoMsg(object: BatchSequenceAminoMsg): BatchSequence; + fromProtoMsg(message: BatchSequenceProtoMsg): BatchSequence; + toProto(message: BatchSequence): Uint8Array; + toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg; +}; +export declare const BatchBalance: { + typeUrl: string; + encode(message: BatchBalance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance; + fromPartial(object: Partial): BatchBalance; + fromAmino(object: BatchBalanceAmino): BatchBalance; + toAmino(message: BatchBalance): BatchBalanceAmino; + fromAminoMsg(object: BatchBalanceAminoMsg): BatchBalance; + fromProtoMsg(message: BatchBalanceProtoMsg): BatchBalance; + toProto(message: BatchBalance): Uint8Array; + toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg; +}; +export declare const BatchSupply: { + typeUrl: string; + encode(message: BatchSupply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply; + fromPartial(object: Partial): BatchSupply; + fromAmino(object: BatchSupplyAmino): BatchSupply; + toAmino(message: BatchSupply): BatchSupplyAmino; + fromAminoMsg(object: BatchSupplyAminoMsg): BatchSupply; + fromProtoMsg(message: BatchSupplyProtoMsg): BatchSupply; + toProto(message: BatchSupply): Uint8Array; + toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg; +}; +export declare const OriginTxIndex: { + typeUrl: string; + encode(message: OriginTxIndex, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex; + fromPartial(object: Partial): OriginTxIndex; + fromAmino(object: OriginTxIndexAmino): OriginTxIndex; + toAmino(message: OriginTxIndex): OriginTxIndexAmino; + fromAminoMsg(object: OriginTxIndexAminoMsg): OriginTxIndex; + fromProtoMsg(message: OriginTxIndexProtoMsg): OriginTxIndex; + toProto(message: OriginTxIndex): Uint8Array; + toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg; +}; +export declare const BatchContract: { + typeUrl: string; + encode(message: BatchContract, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchContract; + fromPartial(object: Partial): BatchContract; + fromAmino(object: BatchContractAmino): BatchContract; + toAmino(message: BatchContract): BatchContractAmino; + fromAminoMsg(object: BatchContractAminoMsg): BatchContract; + fromProtoMsg(message: BatchContractProtoMsg): BatchContract; + toProto(message: BatchContract): Uint8Array; + toProtoMsg(message: BatchContract): BatchContractProtoMsg; +}; +export declare const ClassCreatorAllowlist: { + typeUrl: string; + encode(message: ClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist; + fromPartial(object: Partial): ClassCreatorAllowlist; + fromAmino(object: ClassCreatorAllowlistAmino): ClassCreatorAllowlist; + toAmino(message: ClassCreatorAllowlist): ClassCreatorAllowlistAmino; + fromAminoMsg(object: ClassCreatorAllowlistAminoMsg): ClassCreatorAllowlist; + fromProtoMsg(message: ClassCreatorAllowlistProtoMsg): ClassCreatorAllowlist; + toProto(message: ClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg; +}; +export declare const AllowedClassCreator: { + typeUrl: string; + encode(message: AllowedClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator; + fromPartial(object: Partial): AllowedClassCreator; + fromAmino(object: AllowedClassCreatorAmino): AllowedClassCreator; + toAmino(message: AllowedClassCreator): AllowedClassCreatorAmino; + fromAminoMsg(object: AllowedClassCreatorAminoMsg): AllowedClassCreator; + fromProtoMsg(message: AllowedClassCreatorProtoMsg): AllowedClassCreator; + toProto(message: AllowedClassCreator): Uint8Array; + toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg; +}; +export declare const ClassFee: { + typeUrl: string; + encode(message: ClassFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassFee; + fromPartial(object: Partial): ClassFee; + fromAmino(object: ClassFeeAmino): ClassFee; + toAmino(message: ClassFee): ClassFeeAmino; + fromAminoMsg(object: ClassFeeAminoMsg): ClassFee; + fromProtoMsg(message: ClassFeeProtoMsg): ClassFee; + toProto(message: ClassFee): Uint8Array; + toProtoMsg(message: ClassFee): ClassFeeProtoMsg; +}; +export declare const AllowedBridgeChain: { + typeUrl: string; + encode(message: AllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain; + fromPartial(object: Partial): AllowedBridgeChain; + fromAmino(object: AllowedBridgeChainAmino): AllowedBridgeChain; + toAmino(message: AllowedBridgeChain): AllowedBridgeChainAmino; + fromAminoMsg(object: AllowedBridgeChainAminoMsg): AllowedBridgeChain; + fromProtoMsg(message: AllowedBridgeChainProtoMsg): AllowedBridgeChain; + toProto(message: AllowedBridgeChain): Uint8Array; + toProtoMsg(message: AllowedBridgeChain): AllowedBridgeChainProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/state.js b/packages/api/dist/regen/ecocredit/v1/state.js new file mode 100644 index 00000000..48a7ccf4 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/state.js @@ -0,0 +1,1448 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllowedBridgeChain = exports.ClassFee = exports.AllowedClassCreator = exports.ClassCreatorAllowlist = exports.BatchContract = exports.OriginTxIndex = exports.BatchSupply = exports.BatchBalance = exports.BatchSequence = exports.ProjectSequence = exports.ClassSequence = exports.Batch = exports.Project = exports.ClassIssuer = exports.Class = exports.CreditType = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const coin_1 = require("../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseCreditType() { + return { + abbreviation: "", + name: "", + unit: "", + precision: 0 + }; +} +exports.CreditType = { + typeUrl: "/regen.ecocredit.v1.CreditType", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditType(); + message.abbreviation = object.abbreviation ?? ""; + message.name = object.name ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.name = message.name === "" ? undefined : message.name; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object) { + return exports.CreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CreditType.decode(message.value); + }, + toProto(message) { + return exports.CreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.CreditType", + value: exports.CreditType.encode(message).finish() + }; + } +}; +function createBaseClass() { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + metadata: "", + creditTypeAbbrev: "" + }; +} +exports.Class = { + typeUrl: "/regen.ecocredit.v1.Class", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClass(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseClass(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = (0, helpers_1.bytesFromBase64)(object.admin); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? (0, helpers_1.base64FromBytes)(message.admin) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object) { + return exports.Class.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Class.decode(message.value); + }, + toProto(message) { + return exports.Class.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Class", + value: exports.Class.encode(message).finish() + }; + } +}; +function createBaseClassIssuer() { + return { + classKey: BigInt(0), + issuer: new Uint8Array() + }; +} +exports.ClassIssuer = { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassIssuer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassIssuer(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseClassIssuer(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = (0, helpers_1.bytesFromBase64)(object.issuer); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.issuer = message.issuer ? (0, helpers_1.base64FromBytes)(message.issuer) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassIssuer.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassIssuer.decode(message.value); + }, + toProto(message) { + return exports.ClassIssuer.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + value: exports.ClassIssuer.encode(message).finish() + }; + } +}; +function createBaseProject() { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + classKey: BigInt(0), + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +exports.Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(32).uint64(message.classKey); + } + if (message.jurisdiction !== "") { + writer.uint32(42).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(50).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(58).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.classKey = reader.uint64(); + break; + case 5: + message.jurisdiction = reader.string(); + break; + case 6: + message.metadata = reader.string(); + break; + case 7: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProject(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseProject(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = (0, helpers_1.bytesFromBase64)(object.admin); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? (0, helpers_1.base64FromBytes)(message.admin) : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return exports.Project.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Project.decode(message.value); + }, + toProto(message) { + return exports.Project.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: exports.Project.encode(message).finish() + }; + } +}; +function createBaseBatch() { + return { + key: BigInt(0), + issuer: new Uint8Array(), + projectKey: BigInt(0), + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +exports.Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + if (message.projectKey !== BigInt(0)) { + writer.uint32(24).uint64(message.projectKey); + } + if (message.denom !== "") { + writer.uint32(34).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(50).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(58).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.issuanceDate), writer.uint32(66).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(72).bool(message.open); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + case 3: + message.projectKey = reader.uint64(); + break; + case 4: + message.denom = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatch(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseBatch(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = (0, helpers_1.bytesFromBase64)(object.issuer); + } + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.issuer = message.issuer ? (0, helpers_1.base64FromBytes)(message.issuer) : undefined; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object) { + return exports.Batch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Batch.decode(message.value); + }, + toProto(message) { + return exports.Batch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: exports.Batch.encode(message).finish() + }; + } +}; +function createBaseClassSequence() { + return { + creditTypeAbbrev: "", + nextSequence: BigInt(0) + }; +} +exports.ClassSequence = { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.creditTypeAbbrev !== "") { + writer.uint32(10).string(message.creditTypeAbbrev); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypeAbbrev = reader.string(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassSequence(); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseClassSequence(); + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassSequence.decode(message.value); + }, + toProto(message) { + return exports.ClassSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + value: exports.ClassSequence.encode(message).finish() + }; + } +}; +function createBaseProjectSequence() { + return { + classKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +exports.ProjectSequence = { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProjectSequence(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseProjectSequence(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ProjectSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ProjectSequence.decode(message.value); + }, + toProto(message) { + return exports.ProjectSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + value: exports.ProjectSequence.encode(message).finish() + }; + } +}; +function createBaseBatchSequence() { + return { + projectKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +exports.BatchSequence = { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectKey !== BigInt(0)) { + writer.uint32(8).uint64(message.projectKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchSequence(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBatchSequence(); + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchSequence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchSequence.decode(message.value); + }, + toProto(message) { + return exports.BatchSequence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + value: exports.BatchSequence.encode(message).finish() + }; + } +}; +function createBaseBatchBalance() { + return { + batchKey: BigInt(0), + address: new Uint8Array(), + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +exports.BatchBalance = { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.address.length !== 0) { + writer.uint32(18).bytes(message.address); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.address = reader.bytes(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchBalance(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.address = object.address ?? new Uint8Array(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchBalance(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.address !== undefined && object.address !== null) { + message.address = (0, helpers_1.bytesFromBase64)(object.address); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchBalance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchBalance.decode(message.value); + }, + toProto(message) { + return exports.BatchBalance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + value: exports.BatchBalance.encode(message).finish() + }; + } +}; +function createBaseBatchSupply() { + return { + batchKey: BigInt(0), + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +exports.BatchSupply = { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(34).string(message.cancelledAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchSupply(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchSupply(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchSupply.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchSupply.decode(message.value); + }, + toProto(message) { + return exports.BatchSupply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + value: exports.BatchSupply.encode(message).finish() + }; + } +}; +function createBaseOriginTxIndex() { + return { + classKey: BigInt(0), + id: "", + source: "" + }; +} +exports.OriginTxIndex = { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.source !== "") { + writer.uint32(26).string(message.source); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTxIndex(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.source = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOriginTxIndex(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseOriginTxIndex(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + return obj; + }, + fromAminoMsg(object) { + return exports.OriginTxIndex.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.OriginTxIndex.decode(message.value); + }, + toProto(message) { + return exports.OriginTxIndex.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + value: exports.OriginTxIndex.encode(message).finish() + }; + } +}; +function createBaseBatchContract() { + return { + batchKey: BigInt(0), + classKey: BigInt(0), + contract: "" + }; +} +exports.BatchContract = { + typeUrl: "/regen.ecocredit.v1.BatchContract", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(16).uint64(message.classKey); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchContract(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.classKey = reader.uint64(); + break; + case 3: + message.contract = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchContract(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.contract = object.contract ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchContract(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.contract = message.contract === "" ? undefined : message.contract; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchContract.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchContract.decode(message.value); + }, + toProto(message) { + return exports.BatchContract.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchContract", + value: exports.BatchContract.encode(message).finish() + }; + } +}; +function createBaseClassCreatorAllowlist() { + return { + enabled: false + }; +} +exports.ClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassCreatorAllowlist(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseClassCreatorAllowlist(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassCreatorAllowlist.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassCreatorAllowlist.decode(message.value); + }, + toProto(message) { + return exports.ClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + value: exports.ClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseAllowedClassCreator() { + return { + address: new Uint8Array() + }; +} +exports.AllowedClassCreator = { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedClassCreator(); + message.address = object.address ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseAllowedClassCreator(); + if (object.address !== undefined && object.address !== null) { + message.address = (0, helpers_1.bytesFromBase64)(object.address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.AllowedClassCreator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AllowedClassCreator.decode(message.value); + }, + toProto(message) { + return exports.AllowedClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + value: exports.AllowedClassCreator.encode(message).finish() + }; + } +}; +function createBaseClassFee() { + return { + fee: undefined + }; +} +exports.ClassFee = { + typeUrl: "/regen.ecocredit.v1.ClassFee", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassFee(); + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseClassFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassFee.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassFee.decode(message.value); + }, + toProto(message) { + return exports.ClassFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.ClassFee", + value: exports.ClassFee.encode(message).finish() + }; + } +}; +function createBaseAllowedBridgeChain() { + return { + chainName: "" + }; +} +exports.AllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.chainName !== "") { + writer.uint32(10).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedBridgeChain(); + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedBridgeChain(); + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return exports.AllowedBridgeChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return exports.AllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + value: exports.AllowedBridgeChain.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts new file mode 100644 index 00000000..392f9256 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts @@ -0,0 +1,118 @@ +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export declare const AminoConverter: { + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: string; + toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; + fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; + }; + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: string; + toAmino: (message: MsgCreateProject) => import("./tx").MsgCreateProjectAmino; + fromAmino: (object: import("./tx").MsgCreateProjectAmino) => MsgCreateProject; + }; + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; + fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; + }; + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: string; + toAmino: (message: MsgMintBatchCredits) => import("./tx").MsgMintBatchCreditsAmino; + fromAmino: (object: import("./tx").MsgMintBatchCreditsAmino) => MsgMintBatchCredits; + }; + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: string; + toAmino: (message: MsgSealBatch) => import("./tx").MsgSealBatchAmino; + fromAmino: (object: import("./tx").MsgSealBatchAmino) => MsgSealBatch; + }; + "/regen.ecocredit.v1.MsgSend": { + aminoType: string; + toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; + fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; + }; + "/regen.ecocredit.v1.MsgRetire": { + aminoType: string; + toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; + fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; + }; + "/regen.ecocredit.v1.MsgCancel": { + aminoType: string; + toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; + fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; + }; + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; + fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; + fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: string; + toAmino: (message: MsgUpdateProjectAdmin) => import("./tx").MsgUpdateProjectAdminAmino; + fromAmino: (object: import("./tx").MsgUpdateProjectAdminAmino) => MsgUpdateProjectAdmin; + }; + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateProjectMetadata) => import("./tx").MsgUpdateProjectMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateProjectMetadataAmino) => MsgUpdateProjectMetadata; + }; + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateBatchMetadata) => import("./tx").MsgUpdateBatchMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateBatchMetadataAmino) => MsgUpdateBatchMetadata; + }; + "/regen.ecocredit.v1.MsgBridge": { + aminoType: string; + toAmino: (message: MsgBridge) => import("./tx").MsgBridgeAmino; + fromAmino: (object: import("./tx").MsgBridgeAmino) => MsgBridge; + }; + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: string; + toAmino: (message: MsgBridgeReceive) => import("./tx").MsgBridgeReceiveAmino; + fromAmino: (object: import("./tx").MsgBridgeReceiveAmino) => MsgBridgeReceive; + }; + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: string; + toAmino: (message: MsgAddCreditType) => import("./tx").MsgAddCreditTypeAmino; + fromAmino: (object: import("./tx").MsgAddCreditTypeAmino) => MsgAddCreditType; + }; + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: string; + toAmino: (message: MsgSetClassCreatorAllowlist) => import("./tx").MsgSetClassCreatorAllowlistAmino; + fromAmino: (object: import("./tx").MsgSetClassCreatorAllowlistAmino) => MsgSetClassCreatorAllowlist; + }; + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: string; + toAmino: (message: MsgAddClassCreator) => import("./tx").MsgAddClassCreatorAmino; + fromAmino: (object: import("./tx").MsgAddClassCreatorAmino) => MsgAddClassCreator; + }; + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: string; + toAmino: (message: MsgRemoveClassCreator) => import("./tx").MsgRemoveClassCreatorAmino; + fromAmino: (object: import("./tx").MsgRemoveClassCreatorAmino) => MsgRemoveClassCreator; + }; + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: string; + toAmino: (message: MsgUpdateClassFee) => import("./tx").MsgUpdateClassFeeAmino; + fromAmino: (object: import("./tx").MsgUpdateClassFeeAmino) => MsgUpdateClassFee; + }; + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: string; + toAmino: (message: MsgAddAllowedBridgeChain) => import("./tx").MsgAddAllowedBridgeChainAmino; + fromAmino: (object: import("./tx").MsgAddAllowedBridgeChainAmino) => MsgAddAllowedBridgeChain; + }; + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: string; + toAmino: (message: MsgRemoveAllowedBridgeChain) => import("./tx").MsgRemoveAllowedBridgeChainAmino; + fromAmino: (object: import("./tx").MsgRemoveAllowedBridgeChainAmino) => MsgRemoveAllowedBridgeChain; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/v1/tx.amino.js new file mode 100644 index 00000000..cc8d9f20 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.amino.js @@ -0,0 +1,122 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: "regen/MsgCreateClass", + toAmino: tx_1.MsgCreateClass.toAmino, + fromAmino: tx_1.MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: "regen/MsgCreateProject", + toAmino: tx_1.MsgCreateProject.toAmino, + fromAmino: tx_1.MsgCreateProject.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: "regen/MsgCreateBatch", + toAmino: tx_1.MsgCreateBatch.toAmino, + fromAmino: tx_1.MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: "regen/MsgMintBatchCredits", + toAmino: tx_1.MsgMintBatchCredits.toAmino, + fromAmino: tx_1.MsgMintBatchCredits.fromAmino + }, + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: "regen/MsgSealBatch", + toAmino: tx_1.MsgSealBatch.toAmino, + fromAmino: tx_1.MsgSealBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgSend": { + aminoType: "regen/MsgSend", + toAmino: tx_1.MsgSend.toAmino, + fromAmino: tx_1.MsgSend.fromAmino + }, + "/regen.ecocredit.v1.MsgRetire": { + aminoType: "regen/MsgRetire", + toAmino: tx_1.MsgRetire.toAmino, + fromAmino: tx_1.MsgRetire.fromAmino + }, + "/regen.ecocredit.v1.MsgCancel": { + aminoType: "regen/MsgCancel", + toAmino: tx_1.MsgCancel.toAmino, + fromAmino: tx_1.MsgCancel.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: "regen/MsgUpdateClassAdmin", + toAmino: tx_1.MsgUpdateClassAdmin.toAmino, + fromAmino: tx_1.MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: "regen/MsgUpdateClassIssuers", + toAmino: tx_1.MsgUpdateClassIssuers.toAmino, + fromAmino: tx_1.MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: "regen/MsgUpdateClassMetadata", + toAmino: tx_1.MsgUpdateClassMetadata.toAmino, + fromAmino: tx_1.MsgUpdateClassMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: "regen/MsgUpdateProjectAdmin", + toAmino: tx_1.MsgUpdateProjectAdmin.toAmino, + fromAmino: tx_1.MsgUpdateProjectAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: "regen/MsgUpdateProjectMetadata", + toAmino: tx_1.MsgUpdateProjectMetadata.toAmino, + fromAmino: tx_1.MsgUpdateProjectMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: "regen/MsgUpdateBatchMetadata", + toAmino: tx_1.MsgUpdateBatchMetadata.toAmino, + fromAmino: tx_1.MsgUpdateBatchMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgBridge": { + aminoType: "regen/MsgBridge", + toAmino: tx_1.MsgBridge.toAmino, + fromAmino: tx_1.MsgBridge.fromAmino + }, + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: "regen/MsgBridgeReceive", + toAmino: tx_1.MsgBridgeReceive.toAmino, + fromAmino: tx_1.MsgBridgeReceive.fromAmino + }, + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: "regen/MsgAddCreditType", + toAmino: tx_1.MsgAddCreditType.toAmino, + fromAmino: tx_1.MsgAddCreditType.fromAmino + }, + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: "regen/MsgSetClassCreatorAllowlist", + toAmino: tx_1.MsgSetClassCreatorAllowlist.toAmino, + fromAmino: tx_1.MsgSetClassCreatorAllowlist.fromAmino + }, + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: "regen/MsgAddClassCreator", + toAmino: tx_1.MsgAddClassCreator.toAmino, + fromAmino: tx_1.MsgAddClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: "regen/MsgRemoveClassCreator", + toAmino: tx_1.MsgRemoveClassCreator.toAmino, + fromAmino: tx_1.MsgRemoveClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: "regen/MsgUpdateClassFee", + toAmino: tx_1.MsgUpdateClassFee.toAmino, + fromAmino: tx_1.MsgUpdateClassFee.fromAmino + }, + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: "regen/MsgAddAllowedBridgeChain", + toAmino: tx_1.MsgAddAllowedBridgeChain.toAmino, + fromAmino: tx_1.MsgAddAllowedBridgeChain.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: "regen/MsgRemoveAllowedBridgeChain", + toAmino: tx_1.MsgRemoveAllowedBridgeChain.toAmino, + fromAmino: tx_1.MsgRemoveAllowedBridgeChain.fromAmino + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.d.ts new file mode 100644 index 00000000..f66e0ecb --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.d.ts @@ -0,0 +1,2528 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditType { + /** authority is the address of the governance account. */ + authority: string; + /** credit_type defines a credit type to add to the credit types parameter. */ + creditType?: CreditType; +} +export interface MsgAddCreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; + value: Uint8Array; +} +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** credit_type defines a credit type to add to the credit types parameter. */ + credit_type?: CreditTypeAmino; +} +export interface MsgAddCreditTypeAminoMsg { + type: "regen/MsgAddCreditType"; + value: MsgAddCreditTypeAmino; +} +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeSDKType { + authority: string; + credit_type?: CreditTypeSDKType; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponse { +} +export interface MsgAddCreditTypeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; + value: Uint8Array; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponseAmino { +} +export interface MsgAddCreditTypeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; + value: MsgAddCreditTypeResponseAmino; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponseSDKType { +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClass { + /** + * admin is the address of the account creating the credit class that will + * become the admin of the credit class upon creation. The admin will have + * permissions within the credit class to update the credit class including + * the list of approved issuers. If Params.allowlist_enabled is set to true, + * this address must be included in Params.allowed_class_creators. + */ + admin: string; + /** + * issuers are the addresses of the accounts that will have permissions within + * the credit class to create projects and issue credits. + */ + issuers: string[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit class. + */ + metadata: string; + /** + * credit_type_abbrev is the abbreviation of the credit type under which the + * credit class will be created (e.g. "C", "BIO"). + */ + creditTypeAbbrev: string; + /** + * fee is the credit class creation fee. An equal fee is required if the class + * creation fee parameter is set. The provided fee can be greater than the + * parameter, but only the amount in the parameter will be charged. + */ + fee?: Coin; +} +export interface MsgCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; + value: Uint8Array; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassAmino { + /** + * admin is the address of the account creating the credit class that will + * become the admin of the credit class upon creation. The admin will have + * permissions within the credit class to update the credit class including + * the list of approved issuers. If Params.allowlist_enabled is set to true, + * this address must be included in Params.allowed_class_creators. + */ + admin?: string; + /** + * issuers are the addresses of the accounts that will have permissions within + * the credit class to create projects and issue credits. + */ + issuers?: string[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit class. + */ + metadata?: string; + /** + * credit_type_abbrev is the abbreviation of the credit type under which the + * credit class will be created (e.g. "C", "BIO"). + */ + credit_type_abbrev?: string; + /** + * fee is the credit class creation fee. An equal fee is required if the class + * creation fee parameter is set. The provided fee can be greater than the + * parameter, but only the amount in the parameter will be charged. + */ + fee?: CoinAmino; +} +export interface MsgCreateClassAminoMsg { + type: "regen/MsgCreateClass"; + value: MsgCreateClassAmino; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassSDKType { + admin: string; + issuers: string[]; + metadata: string; + credit_type_abbrev: string; + fee?: CoinSDKType; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponse { + /** class_id is the unique identifier of the credit class. */ + classId: string; +} +export interface MsgCreateClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse"; + value: Uint8Array; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseAmino { + /** class_id is the unique identifier of the credit class. */ + class_id?: string; +} +export interface MsgCreateClassResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateClassResponse"; + value: MsgCreateClassResponseAmino; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseSDKType { + class_id: string; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProject { + /** + * admin is the address of the account creating the project that will become + * the admin of the project upon creation. The creator of the project must be + * an approved issuer within the credit class under which the project is being + * created. The admin will have permissions to update the project including + * the ability to reassign the admin role to another account. + */ + admin: string; + /** + * class_id is the unique identifier of the credit class under which the + * project will be created. + */ + classId: string; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the project. + */ + metadata: string; + /** + * jurisdiction is the jurisdiction of the project. A jurisdiction has with + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction: string; + /** + * reference_id is any arbitrary string used to reference the project with a + * maximum length of 32 characters. + */ + referenceId: string; +} +export interface MsgCreateProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject"; + value: Uint8Array; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProjectAmino { + /** + * admin is the address of the account creating the project that will become + * the admin of the project upon creation. The creator of the project must be + * an approved issuer within the credit class under which the project is being + * created. The admin will have permissions to update the project including + * the ability to reassign the admin role to another account. + */ + admin?: string; + /** + * class_id is the unique identifier of the credit class under which the + * project will be created. + */ + class_id?: string; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the project. + */ + metadata?: string; + /** + * jurisdiction is the jurisdiction of the project. A jurisdiction has with + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction?: string; + /** + * reference_id is any arbitrary string used to reference the project with a + * maximum length of 32 characters. + */ + reference_id?: string; +} +export interface MsgCreateProjectAminoMsg { + type: "regen/MsgCreateProject"; + value: MsgCreateProjectAmino; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProjectSDKType { + admin: string; + class_id: string; + metadata: string; + jurisdiction: string; + reference_id: string; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponse { + /** project_id is the unique identifier of the project. */ + projectId: string; +} +export interface MsgCreateProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse"; + value: Uint8Array; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponseAmino { + /** project_id is the unique identifier of the project. */ + project_id?: string; +} +export interface MsgCreateProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; + value: MsgCreateProjectResponseAmino; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponseSDKType { + project_id: string; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatch { + /** + * issuer is the address of the account issuing the credits and must be an + * approved issuer within the credit class of the project. + */ + issuer: string; + /** + * project_id is the unique identifier of the project under which the credit + * batch will be created. + */ + projectId: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance: BatchIssuance[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit batch. + */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * open determines whether or not the credits can be dynamically minted to the + * credit batch following the creation of the credit batch. This field should + * only be set to true when bridging credits from another chain or registry as + * a result of a bridge operation and is not intended for native issuance. + */ + open: boolean; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. This field can be ignored when natively + * issuing credits and should only be set when bridging assets from another + * chain or registry as a result of a bridge operation. + */ + originTx?: OriginTx; +} +export interface MsgCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; + value: Uint8Array; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchAmino { + /** + * issuer is the address of the account issuing the credits and must be an + * approved issuer within the credit class of the project. + */ + issuer?: string; + /** + * project_id is the unique identifier of the project under which the credit + * batch will be created. + */ + project_id?: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance?: BatchIssuanceAmino[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit batch. + */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * open determines whether or not the credits can be dynamically minted to the + * credit batch following the creation of the credit batch. This field should + * only be set to true when bridging credits from another chain or registry as + * a result of a bridge operation and is not intended for native issuance. + */ + open?: boolean; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. This field can be ignored when natively + * issuing credits and should only be set when bridging assets from another + * chain or registry as a result of a bridge operation. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgCreateBatchAminoMsg { + type: "regen/MsgCreateBatch"; + value: MsgCreateBatchAmino; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchSDKType { + issuer: string; + project_id: string; + issuance: BatchIssuanceSDKType[]; + metadata: string; + start_date?: Date; + end_date?: Date; + open: boolean; + origin_tx?: OriginTxSDKType; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponse { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; +} +export interface MsgCreateBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse"; + value: Uint8Array; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; +} +export interface MsgCreateBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; + value: MsgCreateBatchResponseAmino; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseSDKType { + batch_denom: string; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCredits { + /** + * issuer is the address of the account minting the credits and must be the + * same issuer who created the credit batch. + */ + issuer: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance: BatchIssuance[]; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits. + */ + originTx?: OriginTx; +} +export interface MsgMintBatchCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; + value: Uint8Array; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCreditsAmino { + /** + * issuer is the address of the account minting the credits and must be the + * same issuer who created the credit batch. + */ + issuer?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance?: BatchIssuanceAmino[]; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgMintBatchCreditsAminoMsg { + type: "regen/MsgMintBatchCredits"; + value: MsgMintBatchCreditsAmino; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCreditsSDKType { + issuer: string; + batch_denom: string; + issuance: BatchIssuanceSDKType[]; + origin_tx?: OriginTxSDKType; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponse { +} +export interface MsgMintBatchCreditsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; + value: Uint8Array; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponseAmino { +} +export interface MsgMintBatchCreditsResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; + value: MsgMintBatchCreditsResponseAmino; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponseSDKType { +} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatch { + /** + * issuer is the address of the account that created the credit batch and the + * only account with permissions to seal the credit batch. + */ + issuer: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; +} +export interface MsgSealBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch"; + value: Uint8Array; +} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatchAmino { + /** + * issuer is the address of the account that created the credit batch and the + * only account with permissions to seal the credit batch. + */ + issuer?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; +} +export interface MsgSealBatchAminoMsg { + type: "regen/MsgSealBatch"; + value: MsgSealBatchAmino; +} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatchSDKType { + issuer: string; + batch_denom: string; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponse { +} +export interface MsgSealBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse"; + value: Uint8Array; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponseAmino { +} +export interface MsgSealBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSealBatchResponse"; + value: MsgSealBatchResponseAmino; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponseSDKType { +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSend { + /** sender is the address of the account sending credits. */ + sender: string; + /** recipient is the address of the account receiving credits. */ + recipient: string; + /** credits are the credits being sent to the recipient. */ + credits: MsgSend_SendCredits[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSend"; + value: Uint8Array; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendAmino { + /** sender is the address of the account sending credits. */ + sender?: string; + /** recipient is the address of the account receiving credits. */ + recipient?: string; + /** credits are the credits being sent to the recipient. */ + credits?: MsgSend_SendCreditsAmino[]; +} +export interface MsgSendAminoMsg { + type: "regen/MsgSend"; + value: MsgSendAmino; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendSDKType { + sender: string; + recipient: string; + credits: MsgSend_SendCreditsSDKType[]; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCredits { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * tradable_amount is the amount of credits in this transfer that can be + * traded by the recipient. The number of decimal places must be less than + * or equal to the credit type precision. + */ + tradableAmount: string; + /** + * retired_amount is the amount of credits in this transfer that are retired + * upon receipt. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retiredAmount: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the format: + * [-[ ]] + * The country-code and sub-national-code must conform to ISO 3166-2 and the + * postal-code can be up to 64 alphanumeric characters. Only the + * country-code is required, while the sub-national-code and postal-code are + * optional and can be added for increased precision. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. This field is only required if retired_amount is + * positive. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface MsgSend_SendCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.SendCredits"; + value: Uint8Array; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCreditsAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * tradable_amount is the amount of credits in this transfer that can be + * traded by the recipient. The number of decimal places must be less than + * or equal to the credit type precision. + */ + tradable_amount?: string; + /** + * retired_amount is the amount of credits in this transfer that are retired + * upon receipt. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retired_amount?: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the format: + * [-[ ]] + * The country-code and sub-national-code must conform to ISO 3166-2 and the + * postal-code can be up to 64 alphanumeric characters. Only the + * country-code is required, while the sub-national-code and postal-code are + * optional and can be added for increased precision. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. This field is only required if retired_amount is + * positive. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface MsgSend_SendCreditsAminoMsg { + type: "/regen.ecocredit.v1.SendCredits"; + value: MsgSend_SendCreditsAmino; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCreditsSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponse { +} +export interface MsgSendResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseAmino { +} +export interface MsgSendResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseSDKType { +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetire { + /** owner is the address of the account that owns the credits being retired. */ + owner: string; + /** credits specifies a credit batch and the number of credits being retired. */ + credits: Credits[]; + /** + * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason: string; +} +export interface MsgRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRetire"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireAmino { + /** owner is the address of the account that owns the credits being retired. */ + owner?: string; + /** credits specifies a credit batch and the number of credits being retired. */ + credits?: CreditsAmino[]; + /** + * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction?: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason?: string; +} +export interface MsgRetireAminoMsg { + type: "regen/MsgRetire"; + value: MsgRetireAmino; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireSDKType { + owner: string; + credits: CreditsSDKType[]; + jurisdiction: string; + reason: string; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponse { +} +export interface MsgRetireResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseAmino { +} +export interface MsgRetireResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRetireResponse"; + value: MsgRetireResponseAmino; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseSDKType { +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancel { + /** owner is the address of the account that owns the credits being cancelled. */ + owner: string; + /** credits specifies a credit batch and the number of credits being cancelled. */ + credits: Credits[]; + /** + * reason is any arbitrary string that specifies the reason for cancelling + * credits. + */ + reason: string; +} +export interface MsgCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCancel"; + value: Uint8Array; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelAmino { + /** owner is the address of the account that owns the credits being cancelled. */ + owner?: string; + /** credits specifies a credit batch and the number of credits being cancelled. */ + credits?: CreditsAmino[]; + /** + * reason is any arbitrary string that specifies the reason for cancelling + * credits. + */ + reason?: string; +} +export interface MsgCancelAminoMsg { + type: "regen/MsgCancel"; + value: MsgCancelAmino; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelSDKType { + owner: string; + credits: CreditsSDKType[]; + reason: string; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponse { +} +export interface MsgCancelResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse"; + value: Uint8Array; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseAmino { +} +export interface MsgCancelResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCancelResponse"; + value: MsgCancelResponseAmino; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseSDKType { +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdmin { + /** + * admin is the address of the account that is currently the admin of the + * credit class. + */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * new_admin is the address of the account that will become the new admin of + * the credit class. + */ + newAdmin: string; +} +export interface MsgUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin"; + value: Uint8Array; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminAmino { + /** + * admin is the address of the account that is currently the admin of the + * credit class. + */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * new_admin is the address of the account that will become the new admin of + * the credit class. + */ + new_admin?: string; +} +export interface MsgUpdateClassAdminAminoMsg { + type: "regen/MsgUpdateClassAdmin"; + value: MsgUpdateClassAdminAmino; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminSDKType { + admin: string; + class_id: string; + new_admin: string; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponse { +} +export interface MsgUpdateClassAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseAmino { +} +export interface MsgUpdateClassAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; + value: MsgUpdateClassAdminResponseAmino; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseSDKType { +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuers { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * add_issuers are the addresses of the accounts that will be added to the + * list of approved credit class issuers. + */ + addIssuers: string[]; + /** + * remove_issuers are the addresses of the accounts that will be removed from + * the list of approved credit class issuers. + */ + removeIssuers: string[]; +} +export interface MsgUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers"; + value: Uint8Array; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * add_issuers are the addresses of the accounts that will be added to the + * list of approved credit class issuers. + */ + add_issuers?: string[]; + /** + * remove_issuers are the addresses of the accounts that will be removed from + * the list of approved credit class issuers. + */ + remove_issuers?: string[]; +} +export interface MsgUpdateClassIssuersAminoMsg { + type: "regen/MsgUpdateClassIssuers"; + value: MsgUpdateClassIssuersAmino; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersSDKType { + admin: string; + class_id: string; + add_issuers: string[]; + remove_issuers: string[]; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponse { +} +export interface MsgUpdateClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; + value: Uint8Array; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseAmino { +} +export interface MsgUpdateClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; + value: MsgUpdateClassIssuersResponseAmino; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseSDKType { +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadata { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the credit class. + */ + newMetadata: string; +} +export interface MsgUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata"; + value: Uint8Array; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the credit class. + */ + new_metadata?: string; +} +export interface MsgUpdateClassMetadataAminoMsg { + type: "regen/MsgUpdateClassMetadata"; + value: MsgUpdateClassMetadataAmino; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataSDKType { + admin: string; + class_id: string; + new_metadata: string; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponse { +} +export interface MsgUpdateClassMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseAmino { +} +export interface MsgUpdateClassMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; + value: MsgUpdateClassMetadataResponseAmino; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseSDKType { +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdmin { + /** + * admin is the address of the account that is the currently the admin of the + * project. + */ + admin: string; + /** project_id is the unique identifier of the project. */ + projectId: string; + /** + * new_admin is the address of the account that will become the new admin of + * the project. + */ + newAdmin: string; +} +export interface MsgUpdateProjectAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin"; + value: Uint8Array; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdminAmino { + /** + * admin is the address of the account that is the currently the admin of the + * project. + */ + admin?: string; + /** project_id is the unique identifier of the project. */ + project_id?: string; + /** + * new_admin is the address of the account that will become the new admin of + * the project. + */ + new_admin?: string; +} +export interface MsgUpdateProjectAdminAminoMsg { + type: "regen/MsgUpdateProjectAdmin"; + value: MsgUpdateProjectAdminAmino; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdminSDKType { + admin: string; + project_id: string; + new_admin: string; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponse { +} +export interface MsgUpdateProjectAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponseAmino { +} +export interface MsgUpdateProjectAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; + value: MsgUpdateProjectAdminResponseAmino; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponseSDKType { +} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadata { + /** admin is the address of the account that is the admin of the project. */ + admin: string; + /** project_id is the unique identifier of the project. */ + projectId: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the project. + */ + newMetadata: string; +} +export interface MsgUpdateProjectMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata"; + value: Uint8Array; +} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadataAmino { + /** admin is the address of the account that is the admin of the project. */ + admin?: string; + /** project_id is the unique identifier of the project. */ + project_id?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the project. + */ + new_metadata?: string; +} +export interface MsgUpdateProjectMetadataAminoMsg { + type: "regen/MsgUpdateProjectMetadata"; + value: MsgUpdateProjectMetadataAmino; +} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadataSDKType { + admin: string; + project_id: string; + new_metadata: string; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponse { +} +export interface MsgUpdateProjectMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; + value: Uint8Array; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponseAmino { +} +export interface MsgUpdateProjectMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; + value: MsgUpdateProjectMetadataResponseAmino; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponseSDKType { +} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridge { + /** owner is the address of the account that owns the credits being bridged. */ + owner: string; + /** target is the name of the target chain or registry. */ + target: string; + /** recipient is the address of the account receiving the bridged credits. */ + recipient: string; + /** credits specifies a credit batch and the number of credits being bridged. */ + credits: Credits[]; +} +export interface MsgBridgeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridge"; + value: Uint8Array; +} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridgeAmino { + /** owner is the address of the account that owns the credits being bridged. */ + owner?: string; + /** target is the name of the target chain or registry. */ + target?: string; + /** recipient is the address of the account receiving the bridged credits. */ + recipient?: string; + /** credits specifies a credit batch and the number of credits being bridged. */ + credits?: CreditsAmino[]; +} +export interface MsgBridgeAminoMsg { + type: "regen/MsgBridge"; + value: MsgBridgeAmino; +} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridgeSDKType { + owner: string; + target: string; + recipient: string; + credits: CreditsSDKType[]; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadata { + /** issuer is the address of the account that is the issuer of the batch. */ + issuer: string; + /** batch_denom is the unique identifier of the batch. */ + batchDenom: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the batch. + */ + newMetadata: string; +} +export interface MsgUpdateBatchMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata"; + value: Uint8Array; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataAmino { + /** issuer is the address of the account that is the issuer of the batch. */ + issuer?: string; + /** batch_denom is the unique identifier of the batch. */ + batch_denom?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the batch. + */ + new_metadata?: string; +} +export interface MsgUpdateBatchMetadataAminoMsg { + type: "regen/MsgUpdateBatchMetadata"; + value: MsgUpdateBatchMetadataAmino; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataSDKType { + issuer: string; + batch_denom: string; + new_metadata: string; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponse { +} +export interface MsgUpdateBatchMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; + value: Uint8Array; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponseAmino { +} +export interface MsgUpdateBatchMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; + value: MsgUpdateBatchMetadataResponseAmino; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponseSDKType { +} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponse { +} +export interface MsgBridgeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse"; + value: Uint8Array; +} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponseAmino { +} +export interface MsgBridgeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgBridgeResponse"; + value: MsgBridgeResponseAmino; +} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponseSDKType { +} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceive { + /** issuer is the account address of the service bridging the credits. */ + issuer: string; + /** + * class_id is the unique identifier of the credit class within which the + * project and credit batch already exist or will be created. + */ + classId: string; + /** project defines the project information for the bridged credits. */ + project?: MsgBridgeReceive_Project; + /** batch defines the credit batch information for the bridged credits. */ + batch?: MsgBridgeReceive_Batch; + /** + * origin_tx is a reference to a transaction which caused the transfer from + * another chain or registry. + */ + originTx?: OriginTx; +} +export interface MsgBridgeReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; + value: Uint8Array; +} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceiveAmino { + /** issuer is the account address of the service bridging the credits. */ + issuer?: string; + /** + * class_id is the unique identifier of the credit class within which the + * project and credit batch already exist or will be created. + */ + class_id?: string; + /** project defines the project information for the bridged credits. */ + project?: MsgBridgeReceive_ProjectAmino; + /** batch defines the credit batch information for the bridged credits. */ + batch?: MsgBridgeReceive_BatchAmino; + /** + * origin_tx is a reference to a transaction which caused the transfer from + * another chain or registry. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgBridgeReceiveAminoMsg { + type: "regen/MsgBridgeReceive"; + value: MsgBridgeReceiveAmino; +} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceiveSDKType { + issuer: string; + class_id: string; + project?: MsgBridgeReceive_ProjectSDKType; + batch?: MsgBridgeReceive_BatchSDKType; + origin_tx?: OriginTxSDKType; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_Batch { + /** recipient is the recipient of the bridged credits. */ + recipient: string; + /** amount is the amount of credits being bridged. */ + amount: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** metadata is the metadata for the credit batch. */ + metadata: string; +} +export interface MsgBridgeReceive_BatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.Batch"; + value: Uint8Array; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_BatchAmino { + /** recipient is the recipient of the bridged credits. */ + recipient?: string; + /** amount is the amount of credits being bridged. */ + amount?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** metadata is the metadata for the credit batch. */ + metadata?: string; +} +export interface MsgBridgeReceive_BatchAminoMsg { + type: "/regen.ecocredit.v1.Batch"; + value: MsgBridgeReceive_BatchAmino; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_BatchSDKType { + recipient: string; + amount: string; + start_date?: Date; + end_date?: Date; + metadata: string; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_Project { + /** reference_id is the reference id of the project. */ + referenceId: string; + /** jurisdiction is the project jurisdiction. */ + jurisdiction: string; + /** metadata is the metadata for the project. */ + metadata: string; +} +export interface MsgBridgeReceive_ProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.Project"; + value: Uint8Array; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_ProjectAmino { + /** reference_id is the reference id of the project. */ + reference_id?: string; + /** jurisdiction is the project jurisdiction. */ + jurisdiction?: string; + /** metadata is the metadata for the project. */ + metadata?: string; +} +export interface MsgBridgeReceive_ProjectAminoMsg { + type: "/regen.ecocredit.v1.Project"; + value: MsgBridgeReceive_ProjectAmino; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_ProjectSDKType { + reference_id: string; + jurisdiction: string; + metadata: string; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponse { + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batchDenom: string; + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + projectId: string; +} +export interface MsgBridgeReceiveResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; + value: Uint8Array; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponseAmino { + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batch_denom?: string; + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + project_id?: string; +} +export interface MsgBridgeReceiveResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; + value: MsgBridgeReceiveResponseAmino; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponseSDKType { + batch_denom: string; + project_id: string; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreator { + /** authority is the address of the governance account. */ + authority: string; + /** creator is the address to add to the class creator list. */ + creator: string; +} +export interface MsgAddClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator"; + value: Uint8Array; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** creator is the address to add to the class creator list. */ + creator?: string; +} +export interface MsgAddClassCreatorAminoMsg { + type: "regen/MsgAddClassCreator"; + value: MsgAddClassCreatorAmino; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorSDKType { + authority: string; + creator: string; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponse { +} +export interface MsgAddClassCreatorResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; + value: Uint8Array; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponseAmino { +} +export interface MsgAddClassCreatorResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; + value: MsgAddClassCreatorResponseAmino; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponseSDKType { +} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlist { + /** authority is the address of the governance account. */ + authority: string; + /** enabled defines the boolean value to set the allowlist on or off. */ + enabled: boolean; +} +export interface MsgSetClassCreatorAllowlistProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist"; + value: Uint8Array; +} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** enabled defines the boolean value to set the allowlist on or off. */ + enabled?: boolean; +} +export interface MsgSetClassCreatorAllowlistAminoMsg { + type: "regen/MsgSetClassCreatorAllowlist"; + value: MsgSetClassCreatorAllowlistAmino; +} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistSDKType { + authority: string; + enabled: boolean; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponse { +} +export interface MsgSetClassCreatorAllowlistResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; + value: Uint8Array; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponseAmino { +} +export interface MsgSetClassCreatorAllowlistResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; + value: MsgSetClassCreatorAllowlistResponseAmino; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponseSDKType { +} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreator { + /** authority is the address of the governance account. */ + authority: string; + /** creator is the address to remove from the class creator list. */ + creator: string; +} +export interface MsgRemoveClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator"; + value: Uint8Array; +} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** creator is the address to remove from the class creator list. */ + creator?: string; +} +export interface MsgRemoveClassCreatorAminoMsg { + type: "regen/MsgRemoveClassCreator"; + value: MsgRemoveClassCreatorAmino; +} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorSDKType { + authority: string; + creator: string; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponse { +} +export interface MsgRemoveClassCreatorResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; + value: Uint8Array; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponseAmino { +} +export interface MsgRemoveClassCreatorResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; + value: MsgRemoveClassCreatorResponseAmino; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponseSDKType { +} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFee { + /** authority is the address of the governance account. */ + authority: string; + /** + * fee is the credit class creation fee. If not set, the credit class creation + * fee will be removed and no fee will be required to create a credit class. + */ + fee?: Coin; +} +export interface MsgUpdateClassFeeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; + value: Uint8Array; +} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * fee is the credit class creation fee. If not set, the credit class creation + * fee will be removed and no fee will be required to create a credit class. + */ + fee?: CoinAmino; +} +export interface MsgUpdateClassFeeAminoMsg { + type: "regen/MsgUpdateClassFee"; + value: MsgUpdateClassFeeAmino; +} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeSDKType { + authority: string; + fee?: CoinSDKType; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponse { +} +export interface MsgUpdateClassFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; + value: Uint8Array; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponseAmino { +} +export interface MsgUpdateClassFeeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; + value: MsgUpdateClassFeeResponseAmino; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponseSDKType { +} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChain { + /** authority is the address of the governance account. */ + authority: string; + /** + * chain_name is the name of the chain to allow bridging of ecocredits to + * (i.e. polygon, ethereum, celo). + */ + chainName: string; +} +export interface MsgAddAllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain"; + value: Uint8Array; +} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * chain_name is the name of the chain to allow bridging of ecocredits to + * (i.e. polygon, ethereum, celo). + */ + chain_name?: string; +} +export interface MsgAddAllowedBridgeChainAminoMsg { + type: "regen/MsgAddAllowedBridgeChain"; + value: MsgAddAllowedBridgeChainAmino; +} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainSDKType { + authority: string; + chain_name: string; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponse { +} +export interface MsgAddAllowedBridgeChainResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; + value: Uint8Array; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponseAmino { +} +export interface MsgAddAllowedBridgeChainResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; + value: MsgAddAllowedBridgeChainResponseAmino; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponseSDKType { +} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChain { + /** authority is the address of the governance account. */ + authority: string; + /** + * chain_name is the name of the chain to remove from the list of allowed + * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). + */ + chainName: string; +} +export interface MsgRemoveAllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * chain_name is the name of the chain to remove from the list of allowed + * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). + */ + chain_name?: string; +} +export interface MsgRemoveAllowedBridgeChainAminoMsg { + type: "regen/MsgRemoveAllowedBridgeChain"; + value: MsgRemoveAllowedBridgeChainAmino; +} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainSDKType { + authority: string; + chain_name: string; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponse { +} +export interface MsgRemoveAllowedBridgeChainResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponseAmino { +} +export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; + value: MsgRemoveAllowedBridgeChainResponseAmino; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponseSDKType { +} +export declare const MsgAddCreditType: { + typeUrl: string; + encode(message: MsgAddCreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType; + fromPartial(object: Partial): MsgAddCreditType; + fromAmino(object: MsgAddCreditTypeAmino): MsgAddCreditType; + toAmino(message: MsgAddCreditType): MsgAddCreditTypeAmino; + fromAminoMsg(object: MsgAddCreditTypeAminoMsg): MsgAddCreditType; + toAminoMsg(message: MsgAddCreditType): MsgAddCreditTypeAminoMsg; + fromProtoMsg(message: MsgAddCreditTypeProtoMsg): MsgAddCreditType; + toProto(message: MsgAddCreditType): Uint8Array; + toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg; +}; +export declare const MsgAddCreditTypeResponse: { + typeUrl: string; + encode(_: MsgAddCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse; + fromPartial(_: Partial): MsgAddCreditTypeResponse; + fromAmino(_: MsgAddCreditTypeResponseAmino): MsgAddCreditTypeResponse; + toAmino(_: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseAmino; + fromAminoMsg(object: MsgAddCreditTypeResponseAminoMsg): MsgAddCreditTypeResponse; + fromProtoMsg(message: MsgAddCreditTypeResponseProtoMsg): MsgAddCreditTypeResponse; + toProto(message: MsgAddCreditTypeResponse): Uint8Array; + toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg; +}; +export declare const MsgCreateClass: { + typeUrl: string; + encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; + fromPartial(object: Partial): MsgCreateClass; + fromAmino(object: MsgCreateClassAmino): MsgCreateClass; + toAmino(message: MsgCreateClass): MsgCreateClassAmino; + fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; + toAminoMsg(message: MsgCreateClass): MsgCreateClassAminoMsg; + fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; + toProto(message: MsgCreateClass): Uint8Array; + toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; +}; +export declare const MsgCreateClassResponse: { + typeUrl: string; + encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; + fromPartial(object: Partial): MsgCreateClassResponse; + fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; + toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; + fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; + fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; + toProto(message: MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; +}; +export declare const MsgCreateProject: { + typeUrl: string; + encode(message: MsgCreateProject, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject; + fromPartial(object: Partial): MsgCreateProject; + fromAmino(object: MsgCreateProjectAmino): MsgCreateProject; + toAmino(message: MsgCreateProject): MsgCreateProjectAmino; + fromAminoMsg(object: MsgCreateProjectAminoMsg): MsgCreateProject; + toAminoMsg(message: MsgCreateProject): MsgCreateProjectAminoMsg; + fromProtoMsg(message: MsgCreateProjectProtoMsg): MsgCreateProject; + toProto(message: MsgCreateProject): Uint8Array; + toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg; +}; +export declare const MsgCreateProjectResponse: { + typeUrl: string; + encode(message: MsgCreateProjectResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse; + fromPartial(object: Partial): MsgCreateProjectResponse; + fromAmino(object: MsgCreateProjectResponseAmino): MsgCreateProjectResponse; + toAmino(message: MsgCreateProjectResponse): MsgCreateProjectResponseAmino; + fromAminoMsg(object: MsgCreateProjectResponseAminoMsg): MsgCreateProjectResponse; + fromProtoMsg(message: MsgCreateProjectResponseProtoMsg): MsgCreateProjectResponse; + toProto(message: MsgCreateProjectResponse): Uint8Array; + toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg; +}; +export declare const MsgCreateBatch: { + typeUrl: string; + encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; + fromPartial(object: Partial): MsgCreateBatch; + fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; + toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; + fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; + toAminoMsg(message: MsgCreateBatch): MsgCreateBatchAminoMsg; + fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; + toProto(message: MsgCreateBatch): Uint8Array; + toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; +}; +export declare const MsgCreateBatchResponse: { + typeUrl: string; + encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; + fromPartial(object: Partial): MsgCreateBatchResponse; + fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; + toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; + fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; + fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; + toProto(message: MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; +}; +export declare const MsgMintBatchCredits: { + typeUrl: string; + encode(message: MsgMintBatchCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits; + fromPartial(object: Partial): MsgMintBatchCredits; + fromAmino(object: MsgMintBatchCreditsAmino): MsgMintBatchCredits; + toAmino(message: MsgMintBatchCredits): MsgMintBatchCreditsAmino; + fromAminoMsg(object: MsgMintBatchCreditsAminoMsg): MsgMintBatchCredits; + toAminoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsAminoMsg; + fromProtoMsg(message: MsgMintBatchCreditsProtoMsg): MsgMintBatchCredits; + toProto(message: MsgMintBatchCredits): Uint8Array; + toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg; +}; +export declare const MsgMintBatchCreditsResponse: { + typeUrl: string; + encode(_: MsgMintBatchCreditsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse; + fromPartial(_: Partial): MsgMintBatchCreditsResponse; + fromAmino(_: MsgMintBatchCreditsResponseAmino): MsgMintBatchCreditsResponse; + toAmino(_: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseAmino; + fromAminoMsg(object: MsgMintBatchCreditsResponseAminoMsg): MsgMintBatchCreditsResponse; + fromProtoMsg(message: MsgMintBatchCreditsResponseProtoMsg): MsgMintBatchCreditsResponse; + toProto(message: MsgMintBatchCreditsResponse): Uint8Array; + toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg; +}; +export declare const MsgSealBatch: { + typeUrl: string; + encode(message: MsgSealBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch; + fromPartial(object: Partial): MsgSealBatch; + fromAmino(object: MsgSealBatchAmino): MsgSealBatch; + toAmino(message: MsgSealBatch): MsgSealBatchAmino; + fromAminoMsg(object: MsgSealBatchAminoMsg): MsgSealBatch; + toAminoMsg(message: MsgSealBatch): MsgSealBatchAminoMsg; + fromProtoMsg(message: MsgSealBatchProtoMsg): MsgSealBatch; + toProto(message: MsgSealBatch): Uint8Array; + toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg; +}; +export declare const MsgSealBatchResponse: { + typeUrl: string; + encode(_: MsgSealBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse; + fromPartial(_: Partial): MsgSealBatchResponse; + fromAmino(_: MsgSealBatchResponseAmino): MsgSealBatchResponse; + toAmino(_: MsgSealBatchResponse): MsgSealBatchResponseAmino; + fromAminoMsg(object: MsgSealBatchResponseAminoMsg): MsgSealBatchResponse; + fromProtoMsg(message: MsgSealBatchResponseProtoMsg): MsgSealBatchResponse; + toProto(message: MsgSealBatchResponse): Uint8Array; + toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg; +}; +export declare const MsgSend: { + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; + fromPartial(object: Partial): MsgSend; + fromAmino(object: MsgSendAmino): MsgSend; + toAmino(message: MsgSend): MsgSendAmino; + fromAminoMsg(object: MsgSendAminoMsg): MsgSend; + toAminoMsg(message: MsgSend): MsgSendAminoMsg; + fromProtoMsg(message: MsgSendProtoMsg): MsgSend; + toProto(message: MsgSend): Uint8Array; + toProtoMsg(message: MsgSend): MsgSendProtoMsg; +}; +export declare const MsgSend_SendCredits: { + typeUrl: string; + encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; + fromPartial(object: Partial): MsgSend_SendCredits; + fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; + toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; + fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; + fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; + toProto(message: MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; +}; +export declare const MsgSendResponse: { + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; + fromPartial(_: Partial): MsgSendResponse; + fromAmino(_: MsgSendResponseAmino): MsgSendResponse; + toAmino(_: MsgSendResponse): MsgSendResponseAmino; + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; + toProto(message: MsgSendResponse): Uint8Array; + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; +}; +export declare const MsgRetire: { + typeUrl: string; + encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; + fromPartial(object: Partial): MsgRetire; + fromAmino(object: MsgRetireAmino): MsgRetire; + toAmino(message: MsgRetire): MsgRetireAmino; + fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; + toAminoMsg(message: MsgRetire): MsgRetireAminoMsg; + fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; + toProto(message: MsgRetire): Uint8Array; + toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; +}; +export declare const MsgRetireResponse: { + typeUrl: string; + encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; + fromPartial(_: Partial): MsgRetireResponse; + fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; + toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; + fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; + fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; + toProto(message: MsgRetireResponse): Uint8Array; + toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; +}; +export declare const MsgCancel: { + typeUrl: string; + encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; + fromPartial(object: Partial): MsgCancel; + fromAmino(object: MsgCancelAmino): MsgCancel; + toAmino(message: MsgCancel): MsgCancelAmino; + fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; + toAminoMsg(message: MsgCancel): MsgCancelAminoMsg; + fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; + toProto(message: MsgCancel): Uint8Array; + toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; +}; +export declare const MsgCancelResponse: { + typeUrl: string; + encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; + fromPartial(_: Partial): MsgCancelResponse; + fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; + toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; + fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; + fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; + toProto(message: MsgCancelResponse): Uint8Array; + toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; +}; +export declare const MsgUpdateClassAdmin: { + typeUrl: string; + encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; + fromPartial(object: Partial): MsgUpdateClassAdmin; + fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; + toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; + fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; + toAminoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAminoMsg; + fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; + toProto(message: MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; +}; +export declare const MsgUpdateClassAdminResponse: { + typeUrl: string; + encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; + fromPartial(_: Partial): MsgUpdateClassAdminResponse; + fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; + toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; + fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; + toProto(message: MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; +}; +export declare const MsgUpdateClassIssuers: { + typeUrl: string; + encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; + fromPartial(object: Partial): MsgUpdateClassIssuers; + fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; + toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; + fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; + toAminoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAminoMsg; + fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; + toProto(message: MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; +}; +export declare const MsgUpdateClassIssuersResponse: { + typeUrl: string; + encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; + fromPartial(_: Partial): MsgUpdateClassIssuersResponse; + fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; + toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; + fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; + toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; +}; +export declare const MsgUpdateClassMetadata: { + typeUrl: string; + encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; + fromPartial(object: Partial): MsgUpdateClassMetadata; + fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; + toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; + fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; + toAminoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAminoMsg; + fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; + toProto(message: MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; +}; +export declare const MsgUpdateClassMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; + fromPartial(_: Partial): MsgUpdateClassMetadataResponse; + fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; + toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; + fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; + toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; +}; +export declare const MsgUpdateProjectAdmin: { + typeUrl: string; + encode(message: MsgUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin; + fromPartial(object: Partial): MsgUpdateProjectAdmin; + fromAmino(object: MsgUpdateProjectAdminAmino): MsgUpdateProjectAdmin; + toAmino(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAmino; + fromAminoMsg(object: MsgUpdateProjectAdminAminoMsg): MsgUpdateProjectAdmin; + toAminoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAminoMsg; + fromProtoMsg(message: MsgUpdateProjectAdminProtoMsg): MsgUpdateProjectAdmin; + toProto(message: MsgUpdateProjectAdmin): Uint8Array; + toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg; +}; +export declare const MsgUpdateProjectAdminResponse: { + typeUrl: string; + encode(_: MsgUpdateProjectAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse; + fromPartial(_: Partial): MsgUpdateProjectAdminResponse; + fromAmino(_: MsgUpdateProjectAdminResponseAmino): MsgUpdateProjectAdminResponse; + toAmino(_: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseAmino; + fromAminoMsg(object: MsgUpdateProjectAdminResponseAminoMsg): MsgUpdateProjectAdminResponse; + fromProtoMsg(message: MsgUpdateProjectAdminResponseProtoMsg): MsgUpdateProjectAdminResponse; + toProto(message: MsgUpdateProjectAdminResponse): Uint8Array; + toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg; +}; +export declare const MsgUpdateProjectMetadata: { + typeUrl: string; + encode(message: MsgUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata; + fromPartial(object: Partial): MsgUpdateProjectMetadata; + fromAmino(object: MsgUpdateProjectMetadataAmino): MsgUpdateProjectMetadata; + toAmino(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAmino; + fromAminoMsg(object: MsgUpdateProjectMetadataAminoMsg): MsgUpdateProjectMetadata; + toAminoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAminoMsg; + fromProtoMsg(message: MsgUpdateProjectMetadataProtoMsg): MsgUpdateProjectMetadata; + toProto(message: MsgUpdateProjectMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg; +}; +export declare const MsgUpdateProjectMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateProjectMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse; + fromPartial(_: Partial): MsgUpdateProjectMetadataResponse; + fromAmino(_: MsgUpdateProjectMetadataResponseAmino): MsgUpdateProjectMetadataResponse; + toAmino(_: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateProjectMetadataResponseAminoMsg): MsgUpdateProjectMetadataResponse; + fromProtoMsg(message: MsgUpdateProjectMetadataResponseProtoMsg): MsgUpdateProjectMetadataResponse; + toProto(message: MsgUpdateProjectMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg; +}; +export declare const MsgBridge: { + typeUrl: string; + encode(message: MsgBridge, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge; + fromPartial(object: Partial): MsgBridge; + fromAmino(object: MsgBridgeAmino): MsgBridge; + toAmino(message: MsgBridge): MsgBridgeAmino; + fromAminoMsg(object: MsgBridgeAminoMsg): MsgBridge; + toAminoMsg(message: MsgBridge): MsgBridgeAminoMsg; + fromProtoMsg(message: MsgBridgeProtoMsg): MsgBridge; + toProto(message: MsgBridge): Uint8Array; + toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg; +}; +export declare const MsgUpdateBatchMetadata: { + typeUrl: string; + encode(message: MsgUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata; + fromPartial(object: Partial): MsgUpdateBatchMetadata; + fromAmino(object: MsgUpdateBatchMetadataAmino): MsgUpdateBatchMetadata; + toAmino(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAmino; + fromAminoMsg(object: MsgUpdateBatchMetadataAminoMsg): MsgUpdateBatchMetadata; + toAminoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAminoMsg; + fromProtoMsg(message: MsgUpdateBatchMetadataProtoMsg): MsgUpdateBatchMetadata; + toProto(message: MsgUpdateBatchMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg; +}; +export declare const MsgUpdateBatchMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateBatchMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse; + fromPartial(_: Partial): MsgUpdateBatchMetadataResponse; + fromAmino(_: MsgUpdateBatchMetadataResponseAmino): MsgUpdateBatchMetadataResponse; + toAmino(_: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateBatchMetadataResponseAminoMsg): MsgUpdateBatchMetadataResponse; + fromProtoMsg(message: MsgUpdateBatchMetadataResponseProtoMsg): MsgUpdateBatchMetadataResponse; + toProto(message: MsgUpdateBatchMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg; +}; +export declare const MsgBridgeResponse: { + typeUrl: string; + encode(_: MsgBridgeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse; + fromPartial(_: Partial): MsgBridgeResponse; + fromAmino(_: MsgBridgeResponseAmino): MsgBridgeResponse; + toAmino(_: MsgBridgeResponse): MsgBridgeResponseAmino; + fromAminoMsg(object: MsgBridgeResponseAminoMsg): MsgBridgeResponse; + fromProtoMsg(message: MsgBridgeResponseProtoMsg): MsgBridgeResponse; + toProto(message: MsgBridgeResponse): Uint8Array; + toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg; +}; +export declare const MsgBridgeReceive: { + typeUrl: string; + encode(message: MsgBridgeReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive; + fromPartial(object: Partial): MsgBridgeReceive; + fromAmino(object: MsgBridgeReceiveAmino): MsgBridgeReceive; + toAmino(message: MsgBridgeReceive): MsgBridgeReceiveAmino; + fromAminoMsg(object: MsgBridgeReceiveAminoMsg): MsgBridgeReceive; + toAminoMsg(message: MsgBridgeReceive): MsgBridgeReceiveAminoMsg; + fromProtoMsg(message: MsgBridgeReceiveProtoMsg): MsgBridgeReceive; + toProto(message: MsgBridgeReceive): Uint8Array; + toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg; +}; +export declare const MsgBridgeReceive_Batch: { + typeUrl: string; + encode(message: MsgBridgeReceive_Batch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch; + fromPartial(object: Partial): MsgBridgeReceive_Batch; + fromAmino(object: MsgBridgeReceive_BatchAmino): MsgBridgeReceive_Batch; + toAmino(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchAmino; + fromAminoMsg(object: MsgBridgeReceive_BatchAminoMsg): MsgBridgeReceive_Batch; + fromProtoMsg(message: MsgBridgeReceive_BatchProtoMsg): MsgBridgeReceive_Batch; + toProto(message: MsgBridgeReceive_Batch): Uint8Array; + toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg; +}; +export declare const MsgBridgeReceive_Project: { + typeUrl: string; + encode(message: MsgBridgeReceive_Project, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project; + fromPartial(object: Partial): MsgBridgeReceive_Project; + fromAmino(object: MsgBridgeReceive_ProjectAmino): MsgBridgeReceive_Project; + toAmino(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectAmino; + fromAminoMsg(object: MsgBridgeReceive_ProjectAminoMsg): MsgBridgeReceive_Project; + fromProtoMsg(message: MsgBridgeReceive_ProjectProtoMsg): MsgBridgeReceive_Project; + toProto(message: MsgBridgeReceive_Project): Uint8Array; + toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg; +}; +export declare const MsgBridgeReceiveResponse: { + typeUrl: string; + encode(message: MsgBridgeReceiveResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse; + fromPartial(object: Partial): MsgBridgeReceiveResponse; + fromAmino(object: MsgBridgeReceiveResponseAmino): MsgBridgeReceiveResponse; + toAmino(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseAmino; + fromAminoMsg(object: MsgBridgeReceiveResponseAminoMsg): MsgBridgeReceiveResponse; + fromProtoMsg(message: MsgBridgeReceiveResponseProtoMsg): MsgBridgeReceiveResponse; + toProto(message: MsgBridgeReceiveResponse): Uint8Array; + toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg; +}; +export declare const MsgAddClassCreator: { + typeUrl: string; + encode(message: MsgAddClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator; + fromPartial(object: Partial): MsgAddClassCreator; + fromAmino(object: MsgAddClassCreatorAmino): MsgAddClassCreator; + toAmino(message: MsgAddClassCreator): MsgAddClassCreatorAmino; + fromAminoMsg(object: MsgAddClassCreatorAminoMsg): MsgAddClassCreator; + toAminoMsg(message: MsgAddClassCreator): MsgAddClassCreatorAminoMsg; + fromProtoMsg(message: MsgAddClassCreatorProtoMsg): MsgAddClassCreator; + toProto(message: MsgAddClassCreator): Uint8Array; + toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg; +}; +export declare const MsgAddClassCreatorResponse: { + typeUrl: string; + encode(_: MsgAddClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse; + fromPartial(_: Partial): MsgAddClassCreatorResponse; + fromAmino(_: MsgAddClassCreatorResponseAmino): MsgAddClassCreatorResponse; + toAmino(_: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseAmino; + fromAminoMsg(object: MsgAddClassCreatorResponseAminoMsg): MsgAddClassCreatorResponse; + fromProtoMsg(message: MsgAddClassCreatorResponseProtoMsg): MsgAddClassCreatorResponse; + toProto(message: MsgAddClassCreatorResponse): Uint8Array; + toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg; +}; +export declare const MsgSetClassCreatorAllowlist: { + typeUrl: string; + encode(message: MsgSetClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist; + fromPartial(object: Partial): MsgSetClassCreatorAllowlist; + fromAmino(object: MsgSetClassCreatorAllowlistAmino): MsgSetClassCreatorAllowlist; + toAmino(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAmino; + fromAminoMsg(object: MsgSetClassCreatorAllowlistAminoMsg): MsgSetClassCreatorAllowlist; + toAminoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAminoMsg; + fromProtoMsg(message: MsgSetClassCreatorAllowlistProtoMsg): MsgSetClassCreatorAllowlist; + toProto(message: MsgSetClassCreatorAllowlist): Uint8Array; + toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg; +}; +export declare const MsgSetClassCreatorAllowlistResponse: { + typeUrl: string; + encode(_: MsgSetClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse; + fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse; + fromAmino(_: MsgSetClassCreatorAllowlistResponseAmino): MsgSetClassCreatorAllowlistResponse; + toAmino(_: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseAmino; + fromAminoMsg(object: MsgSetClassCreatorAllowlistResponseAminoMsg): MsgSetClassCreatorAllowlistResponse; + fromProtoMsg(message: MsgSetClassCreatorAllowlistResponseProtoMsg): MsgSetClassCreatorAllowlistResponse; + toProto(message: MsgSetClassCreatorAllowlistResponse): Uint8Array; + toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg; +}; +export declare const MsgRemoveClassCreator: { + typeUrl: string; + encode(message: MsgRemoveClassCreator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator; + fromPartial(object: Partial): MsgRemoveClassCreator; + fromAmino(object: MsgRemoveClassCreatorAmino): MsgRemoveClassCreator; + toAmino(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAmino; + fromAminoMsg(object: MsgRemoveClassCreatorAminoMsg): MsgRemoveClassCreator; + toAminoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAminoMsg; + fromProtoMsg(message: MsgRemoveClassCreatorProtoMsg): MsgRemoveClassCreator; + toProto(message: MsgRemoveClassCreator): Uint8Array; + toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg; +}; +export declare const MsgRemoveClassCreatorResponse: { + typeUrl: string; + encode(_: MsgRemoveClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse; + fromPartial(_: Partial): MsgRemoveClassCreatorResponse; + fromAmino(_: MsgRemoveClassCreatorResponseAmino): MsgRemoveClassCreatorResponse; + toAmino(_: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseAmino; + fromAminoMsg(object: MsgRemoveClassCreatorResponseAminoMsg): MsgRemoveClassCreatorResponse; + fromProtoMsg(message: MsgRemoveClassCreatorResponseProtoMsg): MsgRemoveClassCreatorResponse; + toProto(message: MsgRemoveClassCreatorResponse): Uint8Array; + toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg; +}; +export declare const MsgUpdateClassFee: { + typeUrl: string; + encode(message: MsgUpdateClassFee, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee; + fromPartial(object: Partial): MsgUpdateClassFee; + fromAmino(object: MsgUpdateClassFeeAmino): MsgUpdateClassFee; + toAmino(message: MsgUpdateClassFee): MsgUpdateClassFeeAmino; + fromAminoMsg(object: MsgUpdateClassFeeAminoMsg): MsgUpdateClassFee; + toAminoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeAminoMsg; + fromProtoMsg(message: MsgUpdateClassFeeProtoMsg): MsgUpdateClassFee; + toProto(message: MsgUpdateClassFee): Uint8Array; + toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg; +}; +export declare const MsgUpdateClassFeeResponse: { + typeUrl: string; + encode(_: MsgUpdateClassFeeResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse; + fromPartial(_: Partial): MsgUpdateClassFeeResponse; + fromAmino(_: MsgUpdateClassFeeResponseAmino): MsgUpdateClassFeeResponse; + toAmino(_: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseAmino; + fromAminoMsg(object: MsgUpdateClassFeeResponseAminoMsg): MsgUpdateClassFeeResponse; + fromProtoMsg(message: MsgUpdateClassFeeResponseProtoMsg): MsgUpdateClassFeeResponse; + toProto(message: MsgUpdateClassFeeResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg; +}; +export declare const MsgAddAllowedBridgeChain: { + typeUrl: string; + encode(message: MsgAddAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain; + fromPartial(object: Partial): MsgAddAllowedBridgeChain; + fromAmino(object: MsgAddAllowedBridgeChainAmino): MsgAddAllowedBridgeChain; + toAmino(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAmino; + fromAminoMsg(object: MsgAddAllowedBridgeChainAminoMsg): MsgAddAllowedBridgeChain; + toAminoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAminoMsg; + fromProtoMsg(message: MsgAddAllowedBridgeChainProtoMsg): MsgAddAllowedBridgeChain; + toProto(message: MsgAddAllowedBridgeChain): Uint8Array; + toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg; +}; +export declare const MsgAddAllowedBridgeChainResponse: { + typeUrl: string; + encode(_: MsgAddAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse; + fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse; + fromAmino(_: MsgAddAllowedBridgeChainResponseAmino): MsgAddAllowedBridgeChainResponse; + toAmino(_: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseAmino; + fromAminoMsg(object: MsgAddAllowedBridgeChainResponseAminoMsg): MsgAddAllowedBridgeChainResponse; + fromProtoMsg(message: MsgAddAllowedBridgeChainResponseProtoMsg): MsgAddAllowedBridgeChainResponse; + toProto(message: MsgAddAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg; +}; +export declare const MsgRemoveAllowedBridgeChain: { + typeUrl: string; + encode(message: MsgRemoveAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain; + fromPartial(object: Partial): MsgRemoveAllowedBridgeChain; + fromAmino(object: MsgRemoveAllowedBridgeChainAmino): MsgRemoveAllowedBridgeChain; + toAmino(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAmino; + fromAminoMsg(object: MsgRemoveAllowedBridgeChainAminoMsg): MsgRemoveAllowedBridgeChain; + toAminoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAminoMsg; + fromProtoMsg(message: MsgRemoveAllowedBridgeChainProtoMsg): MsgRemoveAllowedBridgeChain; + toProto(message: MsgRemoveAllowedBridgeChain): Uint8Array; + toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg; +}; +export declare const MsgRemoveAllowedBridgeChainResponse: { + typeUrl: string; + encode(_: MsgRemoveAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse; + fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse; + fromAmino(_: MsgRemoveAllowedBridgeChainResponseAmino): MsgRemoveAllowedBridgeChainResponse; + toAmino(_: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseAmino; + fromAminoMsg(object: MsgRemoveAllowedBridgeChainResponseAminoMsg): MsgRemoveAllowedBridgeChainResponse; + fromProtoMsg(message: MsgRemoveAllowedBridgeChainResponseProtoMsg): MsgRemoveAllowedBridgeChainResponse; + toProto(message: MsgRemoveAllowedBridgeChainResponse): Uint8Array; + toProtoMsg(message: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.js b/packages/api/dist/regen/ecocredit/v1/tx.js new file mode 100644 index 00000000..2e88366c --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.js @@ -0,0 +1,3783 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgRemoveAllowedBridgeChainResponse = exports.MsgRemoveAllowedBridgeChain = exports.MsgAddAllowedBridgeChainResponse = exports.MsgAddAllowedBridgeChain = exports.MsgUpdateClassFeeResponse = exports.MsgUpdateClassFee = exports.MsgRemoveClassCreatorResponse = exports.MsgRemoveClassCreator = exports.MsgSetClassCreatorAllowlistResponse = exports.MsgSetClassCreatorAllowlist = exports.MsgAddClassCreatorResponse = exports.MsgAddClassCreator = exports.MsgBridgeReceiveResponse = exports.MsgBridgeReceive_Project = exports.MsgBridgeReceive_Batch = exports.MsgBridgeReceive = exports.MsgBridgeResponse = exports.MsgUpdateBatchMetadataResponse = exports.MsgUpdateBatchMetadata = exports.MsgBridge = exports.MsgUpdateProjectMetadataResponse = exports.MsgUpdateProjectMetadata = exports.MsgUpdateProjectAdminResponse = exports.MsgUpdateProjectAdmin = exports.MsgUpdateClassMetadataResponse = exports.MsgUpdateClassMetadata = exports.MsgUpdateClassIssuersResponse = exports.MsgUpdateClassIssuers = exports.MsgUpdateClassAdminResponse = exports.MsgUpdateClassAdmin = exports.MsgCancelResponse = exports.MsgCancel = exports.MsgRetireResponse = exports.MsgRetire = exports.MsgSendResponse = exports.MsgSend_SendCredits = exports.MsgSend = exports.MsgSealBatchResponse = exports.MsgSealBatch = exports.MsgMintBatchCreditsResponse = exports.MsgMintBatchCredits = exports.MsgCreateBatchResponse = exports.MsgCreateBatch = exports.MsgCreateProjectResponse = exports.MsgCreateProject = exports.MsgCreateClassResponse = exports.MsgCreateClass = exports.MsgAddCreditTypeResponse = exports.MsgAddCreditType = void 0; +//@ts-nocheck +const coin_1 = require("../../../cosmos/base/v1beta1/coin"); +const types_1 = require("./types"); +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const state_1 = require("./state"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseMsgAddCreditType() { + return { + authority: "", + creditType: undefined + }; +} +exports.MsgAddCreditType = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creditType !== undefined) { + state_1.CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creditType = state_1.CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddCreditType(); + message.authority = object.authority ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddCreditType(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = state_1.CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddCreditType.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddCreditType", + value: exports.MsgAddCreditType.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAddCreditType.decode(message.value); + }, + toProto(message) { + return exports.MsgAddCreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: exports.MsgAddCreditType.encode(message).finish() + }; + } +}; +function createBaseMsgAddCreditTypeResponse() { + return {}; +} +exports.MsgAddCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAddCreditTypeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAddCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + value: exports.MsgAddCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClass() { + return { + admin: "", + issuers: [], + metadata: "", + creditTypeAbbrev: "", + fee: undefined + }; +} +exports.MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClass.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateClass", + value: exports.MsgCreateClass.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateClass.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: exports.MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse() { + return { + classId: "" + }; +} +exports.MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateClassResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + value: exports.MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProject() { + return { + admin: "", + classId: "", + metadata: "", + jurisdiction: "", + referenceId: "" + }; +} +exports.MsgCreateProject = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.referenceId !== "") { + writer.uint32(42).string(message.referenceId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateProject(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateProject(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateProject.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateProject", + value: exports.MsgCreateProject.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateProject.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateProject.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: exports.MsgCreateProject.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProjectResponse() { + return { + projectId: "" + }; +} +exports.MsgCreateProjectResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateProjectResponse(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateProjectResponse(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateProjectResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateProjectResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + value: exports.MsgCreateProjectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch() { + return { + issuer: "", + projectId: "", + issuance: [], + metadata: "", + startDate: undefined, + endDate: undefined, + open: false, + originTx: undefined + }; +} +exports.MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + for (const v of message.issuance) { + types_1.BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(56).bool(message.open); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.issuance.push(types_1.BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.open = reader.bool(); + break; + case 8: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.open = object.open ?? false; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? types_1.BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateBatch.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCreateBatch", + value: exports.MsgCreateBatch.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCreateBatch.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: exports.MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse() { + return { + batchDenom: "" + }; +} +exports.MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + value: exports.MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCredits() { + return { + issuer: "", + batchDenom: "", + issuance: [], + originTx: undefined + }; +} +exports.MsgMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + for (const v of message.issuance) { + types_1.BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuance.push(types_1.BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgMintBatchCredits(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromPartial(e)) || []; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgMintBatchCredits(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromAmino(e)) || []; + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? types_1.BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgMintBatchCredits.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgMintBatchCredits", + value: exports.MsgMintBatchCredits.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgMintBatchCredits.decode(message.value); + }, + toProto(message) { + return exports.MsgMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: exports.MsgMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCreditsResponse() { + return {}; +} +exports.MsgMintBatchCreditsResponse = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCreditsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgMintBatchCreditsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgMintBatchCreditsResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgMintBatchCreditsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + value: exports.MsgMintBatchCreditsResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatch() { + return { + issuer: "", + batchDenom: "" + }; +} +exports.MsgSealBatch = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSealBatch(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSealBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSealBatch.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSealBatch", + value: exports.MsgSealBatch.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSealBatch.decode(message.value); + }, + toProto(message) { + return exports.MsgSealBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: exports.MsgSealBatch.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatchResponse() { + return {}; +} +exports.MsgSealBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSealBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSealBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSealBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + value: exports.MsgSealBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend() { + return { + sender: "", + recipient: "", + credits: [] + }; +} +exports.MsgSend = { + typeUrl: "/regen.ecocredit.v1.MsgSend", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + exports.MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(exports.MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? exports.MsgSend_SendCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSend.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSend", + value: exports.MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSend.decode(message.value); + }, + toProto(message) { + return exports.MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: exports.MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +exports.MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1.SendCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSend_SendCredits.decode(message.value); + }, + toProto(message) { + return exports.MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.SendCredits", + value: exports.MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +exports.MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSendResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + value: exports.MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire() { + return { + owner: "", + credits: [], + jurisdiction: "", + reason: "" + }; +} +exports.MsgRetire = { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + types_1.Credits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.jurisdiction !== "") { + writer.uint32(26).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(types_1.Credits.decode(reader, reader.uint32())); + break; + case 3: + message.jurisdiction = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRetire.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRetire", + value: exports.MsgRetire.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRetire.decode(message.value); + }, + toProto(message) { + return exports.MsgRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: exports.MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse() { + return {}; +} +exports.MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRetireResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + value: exports.MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel() { + return { + owner: "", + credits: [], + reason: "" + }; +} +exports.MsgCancel = { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + types_1.Credits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.reason !== "") { + writer.uint32(26).string(message.reason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(types_1.Credits.decode(reader, reader.uint32())); + break; + case 3: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancel.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgCancel", + value: exports.MsgCancel.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgCancel.decode(message.value); + }, + toProto(message) { + return exports.MsgCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: exports.MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse() { + return {}; +} +exports.MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCancelResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + value: exports.MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin() { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +exports.MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassAdmin", + value: exports.MsgUpdateClassAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: exports.MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse() { + return {}; +} +exports.MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + value: exports.MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers() { + return { + admin: "", + classId: "", + addIssuers: [], + removeIssuers: [] + }; +} +exports.MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.addIssuers) { + writer.uint32(26).string(v); + } + for (const v of message.removeIssuers) { + writer.uint32(34).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.addIssuers.push(reader.string()); + break; + case 4: + message.removeIssuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.addIssuers = object.addIssuers?.map(e => e) || []; + message.removeIssuers = object.removeIssuers?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.addIssuers = object.add_issuers?.map(e => e) || []; + message.removeIssuers = object.remove_issuers?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.addIssuers) { + obj.add_issuers = message.addIssuers.map(e => e); + } + else { + obj.add_issuers = message.addIssuers; + } + if (message.removeIssuers) { + obj.remove_issuers = message.removeIssuers.map(e => e); + } + else { + obj.remove_issuers = message.removeIssuers; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassIssuers.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassIssuers", + value: exports.MsgUpdateClassIssuers.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: exports.MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse() { + return {}; +} +exports.MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + value: exports.MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata() { + return { + admin: "", + classId: "", + newMetadata: "" + }; +} +exports.MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassMetadata", + value: exports.MsgUpdateClassMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: exports.MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse() { + return {}; +} +exports.MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + value: exports.MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdmin() { + return { + admin: "", + projectId: "", + newAdmin: "" + }; +} +exports.MsgUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateProjectAdmin(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateProjectAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateProjectAdmin.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateProjectAdmin", + value: exports.MsgUpdateProjectAdmin.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateProjectAdmin.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: exports.MsgUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdminResponse() { + return {}; +} +exports.MsgUpdateProjectAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateProjectAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateProjectAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateProjectAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + value: exports.MsgUpdateProjectAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadata() { + return { + admin: "", + projectId: "", + newMetadata: "" + }; +} +exports.MsgUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateProjectMetadata(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateProjectMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateProjectMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateProjectMetadata", + value: exports.MsgUpdateProjectMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateProjectMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: exports.MsgUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadataResponse() { + return {}; +} +exports.MsgUpdateProjectMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateProjectMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateProjectMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateProjectMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + value: exports.MsgUpdateProjectMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridge() { + return { + owner: "", + target: "", + recipient: "", + credits: [] + }; +} +exports.MsgBridge = { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.target !== "") { + writer.uint32(18).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.credits) { + types_1.Credits.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.target = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.credits.push(types_1.Credits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridge(); + message.owner = object.owner ?? ""; + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridge(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridge.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgBridge", + value: exports.MsgBridge.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgBridge.decode(message.value); + }, + toProto(message) { + return exports.MsgBridge.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: exports.MsgBridge.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadata() { + return { + issuer: "", + batchDenom: "", + newMetadata: "" + }; +} +exports.MsgUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateBatchMetadata(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateBatchMetadata(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateBatchMetadata.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateBatchMetadata", + value: exports.MsgUpdateBatchMetadata.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateBatchMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: exports.MsgUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadataResponse() { + return {}; +} +exports.MsgUpdateBatchMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateBatchMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateBatchMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateBatchMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + value: exports.MsgUpdateBatchMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeResponse() { + return {}; +} +exports.MsgBridgeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgBridgeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgBridgeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridgeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBridgeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgBridgeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + value: exports.MsgBridgeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive() { + return { + issuer: "", + classId: "", + project: undefined, + batch: undefined, + originTx: undefined + }; +} +exports.MsgBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.project !== undefined) { + exports.MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); + } + if (message.batch !== undefined) { + exports.MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); + } + if (message.originTx !== undefined) { + types_1.OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.project = exports.MsgBridgeReceive_Project.decode(reader, reader.uint32()); + break; + case 4: + message.batch = exports.MsgBridgeReceive_Batch.decode(reader, reader.uint32()); + break; + case 5: + message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.project = object.project !== undefined && object.project !== null ? exports.MsgBridgeReceive_Project.fromPartial(object.project) : undefined; + message.batch = object.batch !== undefined && object.batch !== null ? exports.MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; + message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.project !== undefined && object.project !== null) { + message.project = exports.MsgBridgeReceive_Project.fromAmino(object.project); + } + if (object.batch !== undefined && object.batch !== null) { + message.batch = exports.MsgBridgeReceive_Batch.fromAmino(object.batch); + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.project = message.project ? exports.MsgBridgeReceive_Project.toAmino(message.project) : undefined; + obj.batch = message.batch ? exports.MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; + obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridgeReceive.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgBridgeReceive", + value: exports.MsgBridgeReceive.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgBridgeReceive.decode(message.value); + }, + toProto(message) { + return exports.MsgBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: exports.MsgBridgeReceive.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Batch() { + return { + recipient: "", + amount: "", + startDate: undefined, + endDate: undefined, + metadata: "" + }; +} +exports.MsgBridgeReceive_Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(26).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Batch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + case 3: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive_Batch(); + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive_Batch(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridgeReceive_Batch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBridgeReceive_Batch.decode(message.value); + }, + toProto(message) { + return exports.MsgBridgeReceive_Batch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: exports.MsgBridgeReceive_Batch.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Project() { + return { + referenceId: "", + jurisdiction: "", + metadata: "" + }; +} +exports.MsgBridgeReceive_Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.jurisdiction !== "") { + writer.uint32(18).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Project(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.jurisdiction = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceive_Project(); + message.referenceId = object.referenceId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceive_Project(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridgeReceive_Project.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBridgeReceive_Project.decode(message.value); + }, + toProto(message) { + return exports.MsgBridgeReceive_Project.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: exports.MsgBridgeReceive_Project.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceiveResponse() { + return { + batchDenom: "", + projectId: "" + }; +} +exports.MsgBridgeReceiveResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceiveResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgBridgeReceiveResponse(); + message.batchDenom = object.batchDenom ?? ""; + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgBridgeReceiveResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgBridgeReceiveResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgBridgeReceiveResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgBridgeReceiveResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + value: exports.MsgBridgeReceiveResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreator() { + return { + authority: "", + creator: "" + }; +} +exports.MsgAddClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddClassCreator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddClassCreator", + value: exports.MsgAddClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAddClassCreator.decode(message.value); + }, + toProto(message) { + return exports.MsgAddClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: exports.MsgAddClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreatorResponse() { + return {}; +} +exports.MsgAddClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAddClassCreatorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAddClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + value: exports.MsgAddClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlist() { + return { + authority: "", + enabled: false + }; +} +exports.MsgSetClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSetClassCreatorAllowlist(); + message.authority = object.authority ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSetClassCreatorAllowlist(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSetClassCreatorAllowlist.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgSetClassCreatorAllowlist", + value: exports.MsgSetClassCreatorAllowlist.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgSetClassCreatorAllowlist.decode(message.value); + }, + toProto(message) { + return exports.MsgSetClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: exports.MsgSetClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlistResponse() { + return {}; +} +exports.MsgSetClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSetClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSetClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + value: exports.MsgSetClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreator() { + return { + authority: "", + creator: "" + }; +} +exports.MsgRemoveClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveClassCreator.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRemoveClassCreator", + value: exports.MsgRemoveClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRemoveClassCreator.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveClassCreator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: exports.MsgRemoveClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreatorResponse() { + return {}; +} +exports.MsgRemoveClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRemoveClassCreatorResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + value: exports.MsgRemoveClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFee() { + return { + authority: "", + fee: undefined + }; +} +exports.MsgUpdateClassFee = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + coin_1.Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = coin_1.Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = coin_1.Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassFee.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgUpdateClassFee", + value: exports.MsgUpdateClassFee.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassFee.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassFee.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: exports.MsgUpdateClassFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFeeResponse() { + return {}; +} +exports.MsgUpdateClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassFeeResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + value: exports.MsgUpdateClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChain() { + return { + authority: "", + chainName: "" + }; +} +exports.MsgAddAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgAddAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgAddAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgAddAllowedBridgeChain", + value: exports.MsgAddAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgAddAllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return exports.MsgAddAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: exports.MsgAddAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChainResponse() { + return {}; +} +exports.MsgAddAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgAddAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgAddAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgAddAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + value: exports.MsgAddAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChain() { + return { + authority: "", + chainName: "" + }; +} +exports.MsgRemoveAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRemoveAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRemoveAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message) { + return { + type: "regen/MsgRemoveAllowedBridgeChain", + value: exports.MsgRemoveAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message) { + return exports.MsgRemoveAllowedBridgeChain.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: exports.MsgRemoveAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChainResponse() { + return {}; +} +exports.MsgRemoveAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRemoveAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + value: exports.MsgRemoveAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts new file mode 100644 index 00000000..f47c4c8c --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts @@ -0,0 +1,288 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: Uint8Array; + }; + createProject(value: MsgCreateProject): { + typeUrl: string; + value: Uint8Array; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: Uint8Array; + }; + mintBatchCredits(value: MsgMintBatchCredits): { + typeUrl: string; + value: Uint8Array; + }; + sealBatch(value: MsgSealBatch): { + typeUrl: string; + value: Uint8Array; + }; + send(value: MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: Uint8Array; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: Uint8Array; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: Uint8Array; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: Uint8Array; + }; + updateProjectAdmin(value: MsgUpdateProjectAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateProjectMetadata(value: MsgUpdateProjectMetadata): { + typeUrl: string; + value: Uint8Array; + }; + updateBatchMetadata(value: MsgUpdateBatchMetadata): { + typeUrl: string; + value: Uint8Array; + }; + bridge(value: MsgBridge): { + typeUrl: string; + value: Uint8Array; + }; + bridgeReceive(value: MsgBridgeReceive): { + typeUrl: string; + value: Uint8Array; + }; + addCreditType(value: MsgAddCreditType): { + typeUrl: string; + value: Uint8Array; + }; + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: Uint8Array; + }; + addClassCreator(value: MsgAddClassCreator): { + typeUrl: string; + value: Uint8Array; + }; + removeClassCreator(value: MsgRemoveClassCreator): { + typeUrl: string; + value: Uint8Array; + }; + updateClassFee(value: MsgUpdateClassFee): { + typeUrl: string; + value: Uint8Array; + }; + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { + typeUrl: string; + value: Uint8Array; + }; + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: MsgCreateClass; + }; + createProject(value: MsgCreateProject): { + typeUrl: string; + value: MsgCreateProject; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: MsgCreateBatch; + }; + mintBatchCredits(value: MsgMintBatchCredits): { + typeUrl: string; + value: MsgMintBatchCredits; + }; + sealBatch(value: MsgSealBatch): { + typeUrl: string; + value: MsgSealBatch; + }; + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: MsgRetire; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: MsgCancel; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: MsgUpdateClassAdmin; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: MsgUpdateClassIssuers; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: MsgUpdateClassMetadata; + }; + updateProjectAdmin(value: MsgUpdateProjectAdmin): { + typeUrl: string; + value: MsgUpdateProjectAdmin; + }; + updateProjectMetadata(value: MsgUpdateProjectMetadata): { + typeUrl: string; + value: MsgUpdateProjectMetadata; + }; + updateBatchMetadata(value: MsgUpdateBatchMetadata): { + typeUrl: string; + value: MsgUpdateBatchMetadata; + }; + bridge(value: MsgBridge): { + typeUrl: string; + value: MsgBridge; + }; + bridgeReceive(value: MsgBridgeReceive): { + typeUrl: string; + value: MsgBridgeReceive; + }; + addCreditType(value: MsgAddCreditType): { + typeUrl: string; + value: MsgAddCreditType; + }; + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: MsgSetClassCreatorAllowlist; + }; + addClassCreator(value: MsgAddClassCreator): { + typeUrl: string; + value: MsgAddClassCreator; + }; + removeClassCreator(value: MsgRemoveClassCreator): { + typeUrl: string; + value: MsgRemoveClassCreator; + }; + updateClassFee(value: MsgUpdateClassFee): { + typeUrl: string; + value: MsgUpdateClassFee; + }; + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { + typeUrl: string; + value: MsgAddAllowedBridgeChain; + }; + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: MsgRemoveAllowedBridgeChain; + }; + }; + fromPartial: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: MsgCreateClass; + }; + createProject(value: MsgCreateProject): { + typeUrl: string; + value: MsgCreateProject; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: MsgCreateBatch; + }; + mintBatchCredits(value: MsgMintBatchCredits): { + typeUrl: string; + value: MsgMintBatchCredits; + }; + sealBatch(value: MsgSealBatch): { + typeUrl: string; + value: MsgSealBatch; + }; + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: MsgRetire; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: MsgCancel; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: MsgUpdateClassAdmin; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: MsgUpdateClassIssuers; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: MsgUpdateClassMetadata; + }; + updateProjectAdmin(value: MsgUpdateProjectAdmin): { + typeUrl: string; + value: MsgUpdateProjectAdmin; + }; + updateProjectMetadata(value: MsgUpdateProjectMetadata): { + typeUrl: string; + value: MsgUpdateProjectMetadata; + }; + updateBatchMetadata(value: MsgUpdateBatchMetadata): { + typeUrl: string; + value: MsgUpdateBatchMetadata; + }; + bridge(value: MsgBridge): { + typeUrl: string; + value: MsgBridge; + }; + bridgeReceive(value: MsgBridgeReceive): { + typeUrl: string; + value: MsgBridgeReceive; + }; + addCreditType(value: MsgAddCreditType): { + typeUrl: string; + value: MsgAddCreditType; + }; + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { + typeUrl: string; + value: MsgSetClassCreatorAllowlist; + }; + addClassCreator(value: MsgAddClassCreator): { + typeUrl: string; + value: MsgAddClassCreator; + }; + removeClassCreator(value: MsgRemoveClassCreator): { + typeUrl: string; + value: MsgRemoveClassCreator; + }; + updateClassFee(value: MsgUpdateClassFee): { + typeUrl: string; + value: MsgUpdateClassFee; + }; + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { + typeUrl: string; + value: MsgAddAllowedBridgeChain; + }; + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { + typeUrl: string; + value: MsgRemoveAllowedBridgeChain; + }; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/v1/tx.registry.js new file mode 100644 index 00000000..ca0f52ac --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.registry.js @@ -0,0 +1,433 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.ecocredit.v1.MsgCreateClass", tx_1.MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", tx_1.MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", tx_1.MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", tx_1.MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", tx_1.MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", tx_1.MsgSend], ["/regen.ecocredit.v1.MsgRetire", tx_1.MsgRetire], ["/regen.ecocredit.v1.MsgCancel", tx_1.MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", tx_1.MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", tx_1.MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", tx_1.MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", tx_1.MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", tx_1.MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", tx_1.MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", tx_1.MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", tx_1.MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", tx_1.MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", tx_1.MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", tx_1.MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", tx_1.MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", tx_1.MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", tx_1.MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", tx_1.MsgRemoveAllowedBridgeChain]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: tx_1.MsgCreateClass.encode(value).finish() + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: tx_1.MsgCreateProject.encode(value).finish() + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: tx_1.MsgCreateBatch.encode(value).finish() + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: tx_1.MsgMintBatchCredits.encode(value).finish() + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: tx_1.MsgSealBatch.encode(value).finish() + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: tx_1.MsgSend.encode(value).finish() + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: tx_1.MsgRetire.encode(value).finish() + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: tx_1.MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: tx_1.MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: tx_1.MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: tx_1.MsgUpdateClassMetadata.encode(value).finish() + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: tx_1.MsgUpdateProjectAdmin.encode(value).finish() + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: tx_1.MsgUpdateProjectMetadata.encode(value).finish() + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: tx_1.MsgUpdateBatchMetadata.encode(value).finish() + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: tx_1.MsgBridge.encode(value).finish() + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: tx_1.MsgBridgeReceive.encode(value).finish() + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: tx_1.MsgAddCreditType.encode(value).finish() + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: tx_1.MsgSetClassCreatorAllowlist.encode(value).finish() + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: tx_1.MsgAddClassCreator.encode(value).finish() + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: tx_1.MsgRemoveClassCreator.encode(value).finish() + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: tx_1.MsgUpdateClassFee.encode(value).finish() + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: tx_1.MsgAddAllowedBridgeChain.encode(value).finish() + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: tx_1.MsgRemoveAllowedBridgeChain.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value + }; + } + }, + fromPartial: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: tx_1.MsgCreateClass.fromPartial(value) + }; + }, + createProject(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: tx_1.MsgCreateProject.fromPartial(value) + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: tx_1.MsgCreateBatch.fromPartial(value) + }; + }, + mintBatchCredits(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: tx_1.MsgMintBatchCredits.fromPartial(value) + }; + }, + sealBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: tx_1.MsgSealBatch.fromPartial(value) + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: tx_1.MsgSend.fromPartial(value) + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: tx_1.MsgRetire.fromPartial(value) + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: tx_1.MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: tx_1.MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: tx_1.MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: tx_1.MsgUpdateClassMetadata.fromPartial(value) + }; + }, + updateProjectAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: tx_1.MsgUpdateProjectAdmin.fromPartial(value) + }; + }, + updateProjectMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: tx_1.MsgUpdateProjectMetadata.fromPartial(value) + }; + }, + updateBatchMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: tx_1.MsgUpdateBatchMetadata.fromPartial(value) + }; + }, + bridge(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: tx_1.MsgBridge.fromPartial(value) + }; + }, + bridgeReceive(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: tx_1.MsgBridgeReceive.fromPartial(value) + }; + }, + addCreditType(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: tx_1.MsgAddCreditType.fromPartial(value) + }; + }, + setClassCreatorAllowlist(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: tx_1.MsgSetClassCreatorAllowlist.fromPartial(value) + }; + }, + addClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: tx_1.MsgAddClassCreator.fromPartial(value) + }; + }, + removeClassCreator(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: tx_1.MsgRemoveClassCreator.fromPartial(value) + }; + }, + updateClassFee(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: tx_1.MsgUpdateClassFee.fromPartial(value) + }; + }, + addAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: tx_1.MsgAddAllowedBridgeChain.fromPartial(value) + }; + }, + removeAllowedBridgeChain(value) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: tx_1.MsgRemoveAllowedBridgeChain.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..cddea8c1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts @@ -0,0 +1,202 @@ +import { Rpc } from "../../../helpers"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; +/** Msg is the regen.ecocredit.v1 Msg service. */ +export interface Msg { + /** + * CreateClass creates a new credit class under the given credit type with an + * approved list of issuers and optional metadata. If the class fee parameter + * is set, the fee field must be populated with equal value. A greater fee can + * be provided, however, the creator will only be charged the amount specified + * in the fee parameter. The creator of the credit class becomes the admin of + * the credit class upon creation. + */ + createClass(request: MsgCreateClass): Promise; + /** + * CreateProject creates a new project under the given credit class with a + * jurisdiction, optional metadata, and an optional reference ID. The creator + * of the project must be an approved credit class issuer for the given credit + * class. The creator becomes the admin of the project upon creation. + */ + createProject(request: MsgCreateProject): Promise; + /** + * CreateBatch creates a new batch of credits under the given project with a + * start and end date representing the monitoring period, a list of credits to + * be issued with each issuance specifying a recipient, the amount of tradable + * and retired credits, and the retirement jurisdiction (if credits are to be + * retired upon receipt), and optional metadata. The credit batch creator must + * be listed as an approved issuer within the credit class of the project that + * the credits are being issued under. + * + * The default behavior is for a new credit batch to be "sealed" as opposed to + * being "open". When a credit batch is "open", new credits can be dynamically + * minted to the credit batch following the creation of the credit batch. This + * "open" option should only be set to true when bridging credits from another + * chain or registry as a result of a bridge operation and is not intended for + * native credit issuance. + */ + createBatch(request: MsgCreateBatch): Promise; + /** + * MintBatchCredits dynamically mints credits to an "open" credit batch. This + * feature is only meant to be used when bridging credits from another chain + * or registry and is not intended for native credit issuance. When bridging + * credits from the same vintage (or monitoring period) as an existing credit + * batch, the credits can be dynamically minted to the existing credit batch + * if the credit batch is "open". + */ + mintBatchCredits(request: MsgMintBatchCredits): Promise; + /** + * MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed + * (i.e. once "open" is set to false), credits can no longer be dynamically + * minted to the credit batch. A sealed credit batch cannot be unsealed and + * only the credit batch issuer can seal a credit batch. + */ + sealBatch(request: MsgSealBatch): Promise; + /** + * Send sends a specified amount of tradable credits from the credit owner's + * account to another account. Sent credits can either remain tradable or be + * retired upon receipt. + */ + send(request: MsgSend): Promise; + /** + * Retire retires a specified amount of tradable credits, removing the amount + * from the credit owner's tradable balance and adding it to their retired + * balance. Retiring credits is permanent and implies the credits are being + * consumed as a offset. + */ + retire(request: MsgRetire): Promise; + /** + * Cancel cancels a specified amount of tradable credits, removing the amount + * from the credit owner's tradable balance and removing the amount from the + * credit batch's tradable supply. Cancelling credits is permanent and implies + * the credits have been moved to another chain or registry. + */ + cancel(request: MsgCancel): Promise; + /** + * UpdateClassAdmin updates the credit class admin. Only the admin of the + * credit class can update the credit class. + */ + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + /** + * UpdateClassIssuers updates the credit class issuer list. Only the admin of + * the credit class can update the credit class. + */ + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + /** + * UpdateClassMetadata updates the credit class metadata. Only the admin of + * the credit class can update the credit class. + */ + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; + /** + * UpdateProjectAdmin updates the project admin address. Only the admin of the + * project can update the project. + */ + updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; + /** + * UpdateProjectMetadata updates the project metadata. Only the admin of the + * project can update the project. + */ + updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; + /** + * UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be + * updated and only the issuer of the batch can update the batch. + * + * Since Revision 2 + */ + updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; + /** + * Bridge processes credits being sent back to the source chain. When credits + * are sent back to the source chain, the credits are cancelled and an event + * is emitted to be handled by an external bridge service. + */ + bridge(request: MsgBridge): Promise; + /** + * BridgeReceive processes credits being sent from another chain. When the + * credits are sent from the same vintage as an existing credit batch within + * the scope of the provided credit class, the credits will be minted to the + * existing credit batch, otherwise the credits will be issued in a new credit + * batch. The new credit batch will be created under an existing project if a + * project with a matching reference id already exists within the scope of the + * credit class, otherwise a new project will be created. + */ + bridgeReceive(request: MsgBridgeReceive): Promise; + /** + * AddCreditType is a governance method that allows the addition of new + * credit types to the network. + * + * Since Revision 2 + */ + addCreditType(request: MsgAddCreditType): Promise; + /** + * SetClassCreatorAllowlist is a governance method that updates the class + * creator allowlist enabled setting. When enabled, only addresses listed in + * the allowlist can create credit classes. When disabled, any address can + * create credit classes. + * + * Since Revision 2 + */ + setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; + /** + * AddClassCreator is a governance method that allows the addition of a new + * address to the class creation allowlist. + * + * Since Revision 2 + */ + addClassCreator(request: MsgAddClassCreator): Promise; + /** + * RemoveClassCreator is a governance method that removes an + * address from the class creation allowlist. + * + * Since Revision 2 + */ + removeClassCreator(request: MsgRemoveClassCreator): Promise; + /** + * UpdateClassFee is a governance method that allows for updating the credit + * class creation fee. If no fee is specified in the request, the credit + * class creation fee will be removed and no fee will be required to create + * a credit class. + * + * Since Revision 2 + */ + updateClassFee(request: MsgUpdateClassFee): Promise; + /** + * AddAllowedBridgeChain is a governance method that allows for the + * addition of a chain to bridge ecocredits to. + * + * Since Revision 2 + */ + addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; + /** + * RemoveAllowedBridgeChain is a governance method that allows for the + * removal of a chain to bridge ecocredits to. + * + * Since Revision 2 + */ + removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createClass(request: MsgCreateClass): Promise; + createProject(request: MsgCreateProject): Promise; + createBatch(request: MsgCreateBatch): Promise; + mintBatchCredits(request: MsgMintBatchCredits): Promise; + sealBatch(request: MsgSealBatch): Promise; + send(request: MsgSend): Promise; + retire(request: MsgRetire): Promise; + cancel(request: MsgCancel): Promise; + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; + updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; + updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; + updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; + bridge(request: MsgBridge): Promise; + bridgeReceive(request: MsgBridgeReceive): Promise; + addCreditType(request: MsgAddCreditType): Promise; + setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; + addClassCreator(request: MsgAddClassCreator): Promise; + removeClassCreator(request: MsgRemoveClassCreator): Promise; + updateClassFee(request: MsgUpdateClassFee): Promise; + addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; + removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js new file mode 100644 index 00000000..5526cd7a --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js @@ -0,0 +1,150 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createProject = this.createProject.bind(this); + this.createBatch = this.createBatch.bind(this); + this.mintBatchCredits = this.mintBatchCredits.bind(this); + this.sealBatch = this.sealBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + this.updateProjectAdmin = this.updateProjectAdmin.bind(this); + this.updateProjectMetadata = this.updateProjectMetadata.bind(this); + this.updateBatchMetadata = this.updateBatchMetadata.bind(this); + this.bridge = this.bridge.bind(this); + this.bridgeReceive = this.bridgeReceive.bind(this); + this.addCreditType = this.addCreditType.bind(this); + this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); + this.addClassCreator = this.addClassCreator.bind(this); + this.removeClassCreator = this.removeClassCreator.bind(this); + this.updateClassFee = this.updateClassFee.bind(this); + this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); + this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); + } + createClass(request) { + const data = tx_1.MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); + return promise.then(data => tx_1.MsgCreateClassResponse.decode(new binary_1.BinaryReader(data))); + } + createProject(request) { + const data = tx_1.MsgCreateProject.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); + return promise.then(data => tx_1.MsgCreateProjectResponse.decode(new binary_1.BinaryReader(data))); + } + createBatch(request) { + const data = tx_1.MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); + return promise.then(data => tx_1.MsgCreateBatchResponse.decode(new binary_1.BinaryReader(data))); + } + mintBatchCredits(request) { + const data = tx_1.MsgMintBatchCredits.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); + return promise.then(data => tx_1.MsgMintBatchCreditsResponse.decode(new binary_1.BinaryReader(data))); + } + sealBatch(request) { + const data = tx_1.MsgSealBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); + return promise.then(data => tx_1.MsgSealBatchResponse.decode(new binary_1.BinaryReader(data))); + } + send(request) { + const data = tx_1.MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); + return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); + } + retire(request) { + const data = tx_1.MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); + return promise.then(data => tx_1.MsgRetireResponse.decode(new binary_1.BinaryReader(data))); + } + cancel(request) { + const data = tx_1.MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); + return promise.then(data => tx_1.MsgCancelResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassAdmin(request) { + const data = tx_1.MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); + return promise.then(data => tx_1.MsgUpdateClassAdminResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassIssuers(request) { + const data = tx_1.MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); + return promise.then(data => tx_1.MsgUpdateClassIssuersResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassMetadata(request) { + const data = tx_1.MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); + return promise.then(data => tx_1.MsgUpdateClassMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + updateProjectAdmin(request) { + const data = tx_1.MsgUpdateProjectAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); + return promise.then(data => tx_1.MsgUpdateProjectAdminResponse.decode(new binary_1.BinaryReader(data))); + } + updateProjectMetadata(request) { + const data = tx_1.MsgUpdateProjectMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); + return promise.then(data => tx_1.MsgUpdateProjectMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + updateBatchMetadata(request) { + const data = tx_1.MsgUpdateBatchMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); + return promise.then(data => tx_1.MsgUpdateBatchMetadataResponse.decode(new binary_1.BinaryReader(data))); + } + bridge(request) { + const data = tx_1.MsgBridge.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); + return promise.then(data => tx_1.MsgBridgeResponse.decode(new binary_1.BinaryReader(data))); + } + bridgeReceive(request) { + const data = tx_1.MsgBridgeReceive.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); + return promise.then(data => tx_1.MsgBridgeReceiveResponse.decode(new binary_1.BinaryReader(data))); + } + addCreditType(request) { + const data = tx_1.MsgAddCreditType.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); + return promise.then(data => tx_1.MsgAddCreditTypeResponse.decode(new binary_1.BinaryReader(data))); + } + setClassCreatorAllowlist(request) { + const data = tx_1.MsgSetClassCreatorAllowlist.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); + return promise.then(data => tx_1.MsgSetClassCreatorAllowlistResponse.decode(new binary_1.BinaryReader(data))); + } + addClassCreator(request) { + const data = tx_1.MsgAddClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); + return promise.then(data => tx_1.MsgAddClassCreatorResponse.decode(new binary_1.BinaryReader(data))); + } + removeClassCreator(request) { + const data = tx_1.MsgRemoveClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); + return promise.then(data => tx_1.MsgRemoveClassCreatorResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassFee(request) { + const data = tx_1.MsgUpdateClassFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); + return promise.then(data => tx_1.MsgUpdateClassFeeResponse.decode(new binary_1.BinaryReader(data))); + } + addAllowedBridgeChain(request) { + const data = tx_1.MsgAddAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); + return promise.then(data => tx_1.MsgAddAllowedBridgeChainResponse.decode(new binary_1.BinaryReader(data))); + } + removeAllowedBridgeChain(request) { + const data = tx_1.MsgRemoveAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); + return promise.then(data => tx_1.MsgRemoveAllowedBridgeChainResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/v1/types.d.ts b/packages/api/dist/regen/ecocredit/v1/types.d.ts new file mode 100644 index 00000000..08f6b583 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/types.d.ts @@ -0,0 +1,493 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface Params { + /** + * credit_class_fee is a list of credit class creation fees accepted when + * creating a credit class. Any fee listed is accepted and charged to the + * credit class creator when creating a credit class. + */ + creditClassFee: Coin[]; + /** + * basket_fee is a list of basket creation fees accepted when creating a + * basket. Any fee listed is accepted and charged to the basket creator when + * creating a basket. + */ + basketFee: Coin[]; + /** + * allowed_class_creators is an allowlist defining the addresses with the + * required permissions to create credit classes when allowlist_enabled is set + * to true. If allowlist_enabled is set to false, this list has no effect. + */ + allowedClassCreators: string[]; + /** + * allowlist_enabled determines whether or not the allowlist for creating + * credit classes is enabled. When set to true, only the addresses listed in + * allowed_class_creators can create credit classes. When set to false, any + * address can create credit classes. + */ + allowlistEnabled: boolean; + /** + * allowed_denoms is a list of bank denoms allowed to be used in the ask price + * of sell orders. + * + * Since Revision 2 + */ + allowedDenoms: AllowedDenom[]; + /** + * AllowedBridgeChains is a list of chain names that are allowed to be used in + * bridge operations. + * + * Since Revision 2 + */ + allowedBridgeChains: string[]; +} +export interface ParamsProtoMsg { + typeUrl: "/regen.ecocredit.v1.Params"; + value: Uint8Array; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsAmino { + /** + * credit_class_fee is a list of credit class creation fees accepted when + * creating a credit class. Any fee listed is accepted and charged to the + * credit class creator when creating a credit class. + */ + credit_class_fee?: CoinAmino[]; + /** + * basket_fee is a list of basket creation fees accepted when creating a + * basket. Any fee listed is accepted and charged to the basket creator when + * creating a basket. + */ + basket_fee?: CoinAmino[]; + /** + * allowed_class_creators is an allowlist defining the addresses with the + * required permissions to create credit classes when allowlist_enabled is set + * to true. If allowlist_enabled is set to false, this list has no effect. + */ + allowed_class_creators?: string[]; + /** + * allowlist_enabled determines whether or not the allowlist for creating + * credit classes is enabled. When set to true, only the addresses listed in + * allowed_class_creators can create credit classes. When set to false, any + * address can create credit classes. + */ + allowlist_enabled?: boolean; + /** + * allowed_denoms is a list of bank denoms allowed to be used in the ask price + * of sell orders. + * + * Since Revision 2 + */ + allowed_denoms?: AllowedDenomAmino[]; + /** + * AllowedBridgeChains is a list of chain names that are allowed to be used in + * bridge operations. + * + * Since Revision 2 + */ + allowed_bridge_chains?: string[]; +} +export interface ParamsAminoMsg { + type: "/regen.ecocredit.v1.Params"; + value: ParamsAmino; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsSDKType { + credit_class_fee: CoinSDKType[]; + basket_fee: CoinSDKType[]; + allowed_class_creators: string[]; + allowlist_enabled: boolean; + allowed_denoms: AllowedDenomSDKType[]; + allowed_bridge_chains: string[]; +} +/** Credits represents a simple structure for credits. */ +export interface Credits { + /** batch_denom is the denom of the credit batch. */ + batchDenom: string; + /** amount is the amount of credits. */ + amount: string; +} +export interface CreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.Credits"; + value: Uint8Array; +} +/** Credits represents a simple structure for credits. */ +export interface CreditsAmino { + /** batch_denom is the denom of the credit batch. */ + batch_denom?: string; + /** amount is the amount of credits. */ + amount?: string; +} +export interface CreditsAminoMsg { + type: "/regen.ecocredit.v1.Credits"; + value: CreditsAmino; +} +/** Credits represents a simple structure for credits. */ +export interface CreditsSDKType { + batch_denom: string; + amount: string; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuance { + /** recipient is the address of the account receiving the issued credits. */ + recipient: string; + /** + * tradable_amount is the amount of credits that the recipient will receive in + * a tradable state. The number of decimal places must be less than or equal + * to the credit type precision. + */ + tradableAmount: string; + /** + * retired_amount is the amount of credits that the recipient will receive in + * a retired state. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retiredAmount: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the following + * format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface BatchIssuanceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchIssuance"; + value: Uint8Array; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuanceAmino { + /** recipient is the address of the account receiving the issued credits. */ + recipient?: string; + /** + * tradable_amount is the amount of credits that the recipient will receive in + * a tradable state. The number of decimal places must be less than or equal + * to the credit type precision. + */ + tradable_amount?: string; + /** + * retired_amount is the amount of credits that the recipient will receive in + * a retired state. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retired_amount?: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the following + * format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface BatchIssuanceAminoMsg { + type: "/regen.ecocredit.v1.BatchIssuance"; + value: BatchIssuanceAmino; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuanceSDKType { + recipient: string; + tradable_amount: string; + retired_amount: string; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTx { + /** + * id is the transaction ID of an originating transaction or operation based + * on a type (i.e. transaction ID, serial number). + */ + id: string; + /** + * source is the source chain or registry of the transaction originating the + * mint process (e.g. polygon, ethereum, verra). + */ + source: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be stored in + * state separately from the origin tx and on a per credit batch basis to be + * used when sending credits back to the source chain. This field can be left + * blank if credits are bridged from a non-contract-based source. + */ + contract: string; + /** + * note is a reference note for accounting that will be included in an event + * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. + */ + note: string; +} +export interface OriginTxProtoMsg { + typeUrl: "/regen.ecocredit.v1.OriginTx"; + value: Uint8Array; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTxAmino { + /** + * id is the transaction ID of an originating transaction or operation based + * on a type (i.e. transaction ID, serial number). + */ + id?: string; + /** + * source is the source chain or registry of the transaction originating the + * mint process (e.g. polygon, ethereum, verra). + */ + source?: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be stored in + * state separately from the origin tx and on a per credit batch basis to be + * used when sending credits back to the source chain. This field can be left + * blank if credits are bridged from a non-contract-based source. + */ + contract?: string; + /** + * note is a reference note for accounting that will be included in an event + * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. + */ + note?: string; +} +export interface OriginTxAminoMsg { + type: "/regen.ecocredit.v1.OriginTx"; + value: OriginTxAmino; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTxSDKType { + id: string; + source: string; + contract: string; + note: string; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposal { + /** title is the title of the proposal. */ + title: string; + /** description is the description of the proposal. */ + description: string; + /** + * credit_type is the credit type to be added to the network if the proposal + * passes. + */ + creditType?: CreditType; +} +export interface CreditTypeProposalProtoMsg { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; + value: Uint8Array; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposalAmino { + /** title is the title of the proposal. */ + title?: string; + /** description is the description of the proposal. */ + description?: string; + /** + * credit_type is the credit type to be added to the network if the proposal + * passes. + */ + credit_type?: CreditTypeAmino; +} +export interface CreditTypeProposalAminoMsg { + type: "/regen.ecocredit.v1.CreditTypeProposal"; + value: CreditTypeProposalAmino; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposalSDKType { + title: string; + description: string; + credit_type?: CreditTypeSDKType; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenom { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface AllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedDenom"; + value: Uint8Array; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenomAmino { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface AllowedDenomAminoMsg { + type: "/regen.ecocredit.v1.AllowedDenom"; + value: AllowedDenomAmino; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenomSDKType { + bank_denom: string; + display_denom: string; + exponent: number; +} +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; +export declare const Credits: { + typeUrl: string; + encode(message: Credits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Credits; + fromPartial(object: Partial): Credits; + fromAmino(object: CreditsAmino): Credits; + toAmino(message: Credits): CreditsAmino; + fromAminoMsg(object: CreditsAminoMsg): Credits; + fromProtoMsg(message: CreditsProtoMsg): Credits; + toProto(message: Credits): Uint8Array; + toProtoMsg(message: Credits): CreditsProtoMsg; +}; +export declare const BatchIssuance: { + typeUrl: string; + encode(message: BatchIssuance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance; + fromPartial(object: Partial): BatchIssuance; + fromAmino(object: BatchIssuanceAmino): BatchIssuance; + toAmino(message: BatchIssuance): BatchIssuanceAmino; + fromAminoMsg(object: BatchIssuanceAminoMsg): BatchIssuance; + fromProtoMsg(message: BatchIssuanceProtoMsg): BatchIssuance; + toProto(message: BatchIssuance): Uint8Array; + toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg; +}; +export declare const OriginTx: { + typeUrl: string; + encode(message: OriginTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): OriginTx; + fromPartial(object: Partial): OriginTx; + fromAmino(object: OriginTxAmino): OriginTx; + toAmino(message: OriginTx): OriginTxAmino; + fromAminoMsg(object: OriginTxAminoMsg): OriginTx; + fromProtoMsg(message: OriginTxProtoMsg): OriginTx; + toProto(message: OriginTx): Uint8Array; + toProtoMsg(message: OriginTx): OriginTxProtoMsg; +}; +export declare const CreditTypeProposal: { + typeUrl: string; + encode(message: CreditTypeProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal; + fromPartial(object: Partial): CreditTypeProposal; + fromAmino(object: CreditTypeProposalAmino): CreditTypeProposal; + toAmino(message: CreditTypeProposal): CreditTypeProposalAmino; + fromAminoMsg(object: CreditTypeProposalAminoMsg): CreditTypeProposal; + fromProtoMsg(message: CreditTypeProposalProtoMsg): CreditTypeProposal; + toProto(message: CreditTypeProposal): Uint8Array; + toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg; +}; +export declare const AllowedDenom: { + typeUrl: string; + encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; + fromPartial(object: Partial): AllowedDenom; + fromAmino(object: AllowedDenomAmino): AllowedDenom; + toAmino(message: AllowedDenom): AllowedDenomAmino; + fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; + fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; + toProto(message: AllowedDenom): Uint8Array; + toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1/types.js b/packages/api/dist/regen/ecocredit/v1/types.js new file mode 100644 index 00000000..9de74ae9 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1/types.js @@ -0,0 +1,604 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllowedDenom = exports.CreditTypeProposal = exports.OriginTx = exports.BatchIssuance = exports.Credits = exports.Params = void 0; +//@ts-nocheck +const coin_1 = require("../../../cosmos/base/v1beta1/coin"); +const state_1 = require("./state"); +const binary_1 = require("../../../binary"); +function createBaseParams() { + return { + creditClassFee: [], + basketFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + allowedDenoms: [], + allowedBridgeChains: [] + }; +} +exports.Params = { + typeUrl: "/regen.ecocredit.v1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.creditClassFee) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.basketFee) { + coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(26).string(v); + } + if (message.allowlistEnabled === true) { + writer.uint32(32).bool(message.allowlistEnabled); + } + for (const v of message.allowedDenoms) { + exports.AllowedDenom.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.allowedBridgeChains) { + writer.uint32(50).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.basketFee.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 3: + message.allowedClassCreators.push(reader.string()); + break; + case 4: + message.allowlistEnabled = reader.bool(); + break; + case 5: + message.allowedDenoms.push(exports.AllowedDenom.decode(reader, reader.uint32())); + break; + case 6: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.basketFee = object.basketFee?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.allowedDenoms = object.allowedDenoms?.map(e => exports.AllowedDenom.fromPartial(e)) || []; + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.basketFee = object.basket_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.allowedDenoms = object.allowed_denoms?.map(e => exports.AllowedDenom.fromAmino(e)) || []; + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.basketFee) { + obj.basket_fee = message.basketFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.basket_fee = message.basketFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } + else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? exports.AllowedDenom.toAmino(e) : undefined); + } + else { + obj.allowed_denoms = message.allowedDenoms; + } + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } + else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; +function createBaseCredits() { + return { + batchDenom: "", + amount: "" + }; +} +exports.Credits = { + typeUrl: "/regen.ecocredit.v1.Credits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.Credits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Credits.decode(message.value); + }, + toProto(message) { + return exports.Credits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.Credits", + value: exports.Credits.encode(message).finish() + }; + } +}; +function createBaseBatchIssuance() { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +exports.BatchIssuance = { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchIssuance.decode(message.value); + }, + toProto(message) { + return exports.BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + value: exports.BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseOriginTx() { + return { + id: "", + source: "", + contract: "", + note: "" + }; +} +exports.OriginTx = { + typeUrl: "/regen.ecocredit.v1.OriginTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.source !== "") { + writer.uint32(18).string(message.source); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.note !== "") { + writer.uint32(34).string(message.note); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.source = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.note = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseOriginTx(); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + message.contract = object.contract ?? ""; + message.note = object.note ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseOriginTx(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.note !== undefined && object.note !== null) { + message.note = object.note; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.note = message.note === "" ? undefined : message.note; + return obj; + }, + fromAminoMsg(object) { + return exports.OriginTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.OriginTx.decode(message.value); + }, + toProto(message) { + return exports.OriginTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.OriginTx", + value: exports.OriginTx.encode(message).finish() + }; + } +}; +function createBaseCreditTypeProposal() { + return { + title: "", + description: "", + creditType: undefined + }; +} +exports.CreditTypeProposal = { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.creditType !== undefined) { + state_1.CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.creditType = state_1.CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditTypeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseCreditTypeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = state_1.CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.CreditTypeProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CreditTypeProposal.decode(message.value); + }, + toProto(message) { + return exports.CreditTypeProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + value: exports.CreditTypeProposal.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom() { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +exports.AllowedDenom = { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object) { + return exports.AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.AllowedDenom.decode(message.value); + }, + toProto(message) { + return exports.AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + value: exports.AllowedDenom.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts new file mode 100644 index 00000000..98efc6a1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts @@ -0,0 +1,357 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClass { + /** class_id is the unique ID of credit class. */ + classId: string; + /** admin is the admin of the credit class. */ + admin: string; +} +export interface EventCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass"; + value: Uint8Array; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** admin is the admin of the credit class. */ + admin?: string; +} +export interface EventCreateClassAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCreateClass"; + value: EventCreateClassAmino; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassSDKType { + class_id: string; + admin: string; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatch { + /** class_id is the unique ID of credit class. */ + classId: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** issuer is the account address of the issuer of the credit batch. */ + issuer: string; + /** total_amount is the total number of credits in the credit batch. */ + totalAmount: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + projectLocation: string; +} +export interface EventCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch"; + value: Uint8Array; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** issuer is the account address of the issuer of the credit batch. */ + issuer?: string; + /** total_amount is the total number of credits in the credit batch. */ + total_amount?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + project_location?: string; +} +export interface EventCreateBatchAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; + value: EventCreateBatchAmino; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchSDKType { + class_id: string; + batch_denom: string; + issuer: string; + total_amount: string; + start_date: string; + end_date: string; + project_location: string; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceive { + /** + * sender is the sender of the credits in the case that this event is the + * result of a transfer. It will not be set when credits are received at + * initial issuance or taken from a basket. + */ + sender: string; + /** recipient is the recipient of the credits. */ + recipient: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits received. */ + retiredAmount: string; + /** + * basket_denom is the denom of the basket. when the basket_denom field is + * set, it indicates that this event was triggered by the transfer of credits + * from a basket. It will not be set if the credits were sent by a user, or by + * initial issuance. + */ + basketDenom: string; +} +export interface EventReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive"; + value: Uint8Array; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceiveAmino { + /** + * sender is the sender of the credits in the case that this event is the + * result of a transfer. It will not be set when credits are received at + * initial issuance or taken from a basket. + */ + sender?: string; + /** recipient is the recipient of the credits. */ + recipient?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits received. */ + retired_amount?: string; + /** + * basket_denom is the denom of the basket. when the basket_denom field is + * set, it indicates that this event was triggered by the transfer of credits + * from a basket. It will not be set if the credits were sent by a user, or by + * initial issuance. + */ + basket_denom?: string; +} +export interface EventReceiveAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventReceive"; + value: EventReceiveAmino; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceiveSDKType { + sender: string; + recipient: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; + basket_denom: string; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetire { + /** + * retirer is the account which has done the "retiring". This will be the + * account receiving credits in the case that credits were retired upon + * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. + */ + retirer: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** amount is the decimal number of credits that have been retired. */ + amount: string; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location: string; +} +export interface EventRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire"; + value: Uint8Array; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireAmino { + /** + * retirer is the account which has done the "retiring". This will be the + * account receiving credits in the case that credits were retired upon + * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. + */ + retirer?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** amount is the decimal number of credits that have been retired. */ + amount?: string; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location?: string; +} +export interface EventRetireAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventRetire"; + value: EventRetireAmino; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireSDKType { + retirer: string; + batch_denom: string; + amount: string; + location: string; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancel { + /** + * canceller is the account which has cancelled the credits, which should be + * the holder of the credits. + */ + canceller: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount: string; +} +export interface EventCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel"; + value: Uint8Array; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelAmino { + /** + * canceller is the account which has cancelled the credits, which should be + * the holder of the credits. + */ + canceller?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount?: string; +} +export interface EventCancelAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCancel"; + value: EventCancelAmino; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelSDKType { + canceller: string; + batch_denom: string; + amount: string; +} +export declare const EventCreateClass: { + typeUrl: string; + encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; + fromPartial(object: Partial): EventCreateClass; + fromAmino(object: EventCreateClassAmino): EventCreateClass; + toAmino(message: EventCreateClass): EventCreateClassAmino; + fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; + fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; + toProto(message: EventCreateClass): Uint8Array; + toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; +}; +export declare const EventCreateBatch: { + typeUrl: string; + encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; + fromPartial(object: Partial): EventCreateBatch; + fromAmino(object: EventCreateBatchAmino): EventCreateBatch; + toAmino(message: EventCreateBatch): EventCreateBatchAmino; + fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; + fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; + toProto(message: EventCreateBatch): Uint8Array; + toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; +}; +export declare const EventReceive: { + typeUrl: string; + encode(message: EventReceive, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventReceive; + fromPartial(object: Partial): EventReceive; + fromAmino(object: EventReceiveAmino): EventReceive; + toAmino(message: EventReceive): EventReceiveAmino; + fromAminoMsg(object: EventReceiveAminoMsg): EventReceive; + fromProtoMsg(message: EventReceiveProtoMsg): EventReceive; + toProto(message: EventReceive): Uint8Array; + toProtoMsg(message: EventReceive): EventReceiveProtoMsg; +}; +export declare const EventRetire: { + typeUrl: string; + encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; + fromPartial(object: Partial): EventRetire; + fromAmino(object: EventRetireAmino): EventRetire; + toAmino(message: EventRetire): EventRetireAmino; + fromAminoMsg(object: EventRetireAminoMsg): EventRetire; + fromProtoMsg(message: EventRetireProtoMsg): EventRetire; + toProto(message: EventRetire): Uint8Array; + toProtoMsg(message: EventRetire): EventRetireProtoMsg; +}; +export declare const EventCancel: { + typeUrl: string; + encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; + fromPartial(object: Partial): EventCancel; + fromAmino(object: EventCancelAmino): EventCancel; + toAmino(message: EventCancel): EventCancelAmino; + fromAminoMsg(object: EventCancelAminoMsg): EventCancel; + fromProtoMsg(message: EventCancelProtoMsg): EventCancel; + toProto(message: EventCancel): Uint8Array; + toProtoMsg(message: EventCancel): EventCancelProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/events.js b/packages/api/dist/regen/ecocredit/v1alpha1/events.js new file mode 100644 index 00000000..9cc0b4bd --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/events.js @@ -0,0 +1,524 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventCancel = exports.EventRetire = exports.EventReceive = exports.EventCreateBatch = exports.EventCreateClass = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseEventCreateClass() { + return { + classId: "", + admin: "" + }; +} +exports.EventCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreateClass.decode(message.value); + }, + toProto(message) { + return exports.EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + value: exports.EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch() { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + startDate: "", + endDate: "", + projectLocation: "" + }; +} +exports.EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.startDate !== "") { + writer.uint32(42).string(message.startDate); + } + if (message.endDate !== "") { + writer.uint32(50).string(message.endDate); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.startDate = reader.string(); + break; + case 6: + message.endDate = reader.string(); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCreateBatch(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.startDate = object.startDate ?? ""; + message.endDate = object.endDate ?? ""; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCreateBatch(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = object.start_date; + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = object.end_date; + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCreateBatch.decode(message.value); + }, + toProto(message) { + return exports.EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + value: exports.EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventReceive() { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + basketDenom: "" + }; +} +exports.EventReceive = { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + if (message.basketDenom !== "") { + writer.uint32(50).string(message.basketDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + case 6: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventReceive(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventReceive(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.EventReceive.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventReceive.decode(message.value); + }, + toProto(message) { + return exports.EventReceive.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + value: exports.EventReceive.encode(message).finish() + }; + } +}; +function createBaseEventRetire() { + return { + retirer: "", + batchDenom: "", + amount: "", + location: "" + }; +} +exports.EventRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.retirer !== "") { + writer.uint32(10).string(message.retirer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.location !== "") { + writer.uint32(34).string(message.location); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.retirer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventRetire(); + message.retirer = object.retirer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventRetire(); + if (object.retirer !== undefined && object.retirer !== null) { + message.retirer = object.retirer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.retirer = message.retirer === "" ? undefined : message.retirer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object) { + return exports.EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventRetire.decode(message.value); + }, + toProto(message) { + return exports.EventRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + value: exports.EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel() { + return { + canceller: "", + batchDenom: "", + amount: "" + }; +} +exports.EventCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.canceller !== "") { + writer.uint32(10).string(message.canceller); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.canceller = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventCancel(); + message.canceller = object.canceller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseEventCancel(); + if (object.canceller !== undefined && object.canceller !== null) { + message.canceller = object.canceller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.canceller = message.canceller === "" ? undefined : message.canceller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventCancel.decode(message.value); + }, + toProto(message) { + return exports.EventCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + value: exports.EventCancel.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts new file mode 100644 index 00000000..55155c16 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts @@ -0,0 +1,169 @@ +import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisState { + /** + * Params contains the updateable global parameters for use with the x/params + * module + */ + params: Params; + /** class_info is the list of credit class info. */ + classInfo: ClassInfo[]; + /** batch_info is the list of credit batch info. */ + batchInfo: BatchInfo[]; + /** sequences is the list of credit type sequence. */ + sequences: CreditTypeSeq[]; + /** balances is the list of credit batch tradable/retired units. */ + balances: Balance[]; + /** supplies is the list of credit batch tradable/retired supply. */ + supplies: Supply[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisStateAmino { + /** + * Params contains the updateable global parameters for use with the x/params + * module + */ + params?: ParamsAmino; + /** class_info is the list of credit class info. */ + class_info?: ClassInfoAmino[]; + /** batch_info is the list of credit batch info. */ + batch_info?: BatchInfoAmino[]; + /** sequences is the list of credit type sequence. */ + sequences?: CreditTypeSeqAmino[]; + /** balances is the list of credit batch tradable/retired units. */ + balances?: BalanceAmino[]; + /** supplies is the list of credit batch tradable/retired supply. */ + supplies?: SupplyAmino[]; +} +export interface GenesisStateAminoMsg { + type: "/regen.ecocredit.v1alpha1.GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + class_info: ClassInfoSDKType[]; + batch_info: BatchInfoSDKType[]; + sequences: CreditTypeSeqSDKType[]; + balances: BalanceSDKType[]; + supplies: SupplySDKType[]; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface Balance { + /** address is the account address of the account holding credits. */ + address: string; + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** tradable_balance is the tradable balance of the credit batch. */ + tradableBalance: string; + /** retired_balance is the retired balance of the credit batch. */ + retiredBalance: string; +} +export interface BalanceProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Balance"; + value: Uint8Array; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface BalanceAmino { + /** address is the account address of the account holding credits. */ + address?: string; + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** tradable_balance is the tradable balance of the credit batch. */ + tradable_balance?: string; + /** retired_balance is the retired balance of the credit batch. */ + retired_balance?: string; +} +export interface BalanceAminoMsg { + type: "/regen.ecocredit.v1alpha1.Balance"; + value: BalanceAmino; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface BalanceSDKType { + address: string; + batch_denom: string; + tradable_balance: string; + retired_balance: string; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface Supply { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** tradable_supply is the tradable supply of the credit batch. */ + tradableSupply: string; + /** retired_supply is the retired supply of the credit batch. */ + retiredSupply: string; +} +export interface SupplyProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Supply"; + value: Uint8Array; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface SupplyAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** tradable_supply is the tradable supply of the credit batch. */ + tradable_supply?: string; + /** retired_supply is the retired supply of the credit batch. */ + retired_supply?: string; +} +export interface SupplyAminoMsg { + type: "/regen.ecocredit.v1alpha1.Supply"; + value: SupplyAmino; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface SupplySDKType { + batch_denom: string; + tradable_supply: string; + retired_supply: string; +} +export declare const GenesisState: { + typeUrl: string; + encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; + fromPartial(object: Partial): GenesisState; + fromAmino(object: GenesisStateAmino): GenesisState; + toAmino(message: GenesisState): GenesisStateAmino; + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; + toProto(message: GenesisState): Uint8Array; + toProtoMsg(message: GenesisState): GenesisStateProtoMsg; +}; +export declare const Balance: { + typeUrl: string; + encode(message: Balance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Balance; + fromPartial(object: Partial): Balance; + fromAmino(object: BalanceAmino): Balance; + toAmino(message: Balance): BalanceAmino; + fromAminoMsg(object: BalanceAminoMsg): Balance; + fromProtoMsg(message: BalanceProtoMsg): Balance; + toProto(message: Balance): Uint8Array; + toProtoMsg(message: Balance): BalanceProtoMsg; +}; +export declare const Supply: { + typeUrl: string; + encode(message: Supply, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Supply; + fromPartial(object: Partial): Supply; + fromAmino(object: SupplyAmino): Supply; + toAmino(message: Supply): SupplyAmino; + fromAminoMsg(object: SupplyAminoMsg): Supply; + fromProtoMsg(message: SupplyProtoMsg): Supply; + toProto(message: Supply): Uint8Array; + toProtoMsg(message: Supply): SupplyProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js new file mode 100644 index 00000000..4447214c --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js @@ -0,0 +1,330 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Supply = exports.Balance = exports.GenesisState = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const binary_1 = require("../../../binary"); +function createBaseGenesisState() { + return { + params: types_1.Params.fromPartial({}), + classInfo: [], + batchInfo: [], + sequences: [], + balances: [], + supplies: [] + }; +} +exports.GenesisState = { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classInfo) { + types_1.ClassInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.batchInfo) { + types_1.BatchInfo.encode(v, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.sequences) { + types_1.CreditTypeSeq.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.balances) { + exports.Balance.encode(v, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.supplies) { + exports.Supply.encode(v, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = types_1.Params.decode(reader, reader.uint32()); + break; + case 2: + message.classInfo.push(types_1.ClassInfo.decode(reader, reader.uint32())); + break; + case 3: + message.batchInfo.push(types_1.BatchInfo.decode(reader, reader.uint32())); + break; + case 4: + message.sequences.push(types_1.CreditTypeSeq.decode(reader, reader.uint32())); + break; + case 5: + message.balances.push(exports.Balance.decode(reader, reader.uint32())); + break; + case 6: + message.supplies.push(exports.Supply.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; + message.classInfo = object.classInfo?.map(e => types_1.ClassInfo.fromPartial(e)) || []; + message.batchInfo = object.batchInfo?.map(e => types_1.BatchInfo.fromPartial(e)) || []; + message.sequences = object.sequences?.map(e => types_1.CreditTypeSeq.fromPartial(e)) || []; + message.balances = object.balances?.map(e => exports.Balance.fromPartial(e)) || []; + message.supplies = object.supplies?.map(e => exports.Supply.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = types_1.Params.fromAmino(object.params); + } + message.classInfo = object.class_info?.map(e => types_1.ClassInfo.fromAmino(e)) || []; + message.batchInfo = object.batch_info?.map(e => types_1.BatchInfo.fromAmino(e)) || []; + message.sequences = object.sequences?.map(e => types_1.CreditTypeSeq.fromAmino(e)) || []; + message.balances = object.balances?.map(e => exports.Balance.fromAmino(e)) || []; + message.supplies = object.supplies?.map(e => exports.Supply.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; + if (message.classInfo) { + obj.class_info = message.classInfo.map(e => e ? types_1.ClassInfo.toAmino(e) : undefined); + } + else { + obj.class_info = message.classInfo; + } + if (message.batchInfo) { + obj.batch_info = message.batchInfo.map(e => e ? types_1.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batch_info = message.batchInfo; + } + if (message.sequences) { + obj.sequences = message.sequences.map(e => e ? types_1.CreditTypeSeq.toAmino(e) : undefined); + } + else { + obj.sequences = message.sequences; + } + if (message.balances) { + obj.balances = message.balances.map(e => e ? exports.Balance.toAmino(e) : undefined); + } + else { + obj.balances = message.balances; + } + if (message.supplies) { + obj.supplies = message.supplies.map(e => e ? exports.Supply.toAmino(e) : undefined); + } + else { + obj.supplies = message.supplies; + } + return obj; + }, + fromAminoMsg(object) { + return exports.GenesisState.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.GenesisState.decode(message.value); + }, + toProto(message) { + return exports.GenesisState.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + value: exports.GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance() { + return { + address: "", + batchDenom: "", + tradableBalance: "", + retiredBalance: "" + }; +} +exports.Balance = { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableBalance !== "") { + writer.uint32(26).string(message.tradableBalance); + } + if (message.retiredBalance !== "") { + writer.uint32(34).string(message.retiredBalance); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableBalance = reader.string(); + break; + case 4: + message.retiredBalance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableBalance = object.tradableBalance ?? ""; + message.retiredBalance = object.retiredBalance ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_balance !== undefined && object.tradable_balance !== null) { + message.tradableBalance = object.tradable_balance; + } + if (object.retired_balance !== undefined && object.retired_balance !== null) { + message.retiredBalance = object.retired_balance; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; + obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; + return obj; + }, + fromAminoMsg(object) { + return exports.Balance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Balance.decode(message.value); + }, + toProto(message) { + return exports.Balance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + value: exports.Balance.encode(message).finish() + }; + } +}; +function createBaseSupply() { + return { + batchDenom: "", + tradableSupply: "", + retiredSupply: "" + }; +} +exports.Supply = { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableSupply !== "") { + writer.uint32(18).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(26).string(message.retiredSupply); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableSupply = reader.string(); + break; + case 3: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSupply(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseSupply(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object) { + return exports.Supply.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Supply.decode(message.value); + }, + toProto(message) { + return exports.Supply.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + value: exports.Supply.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts new file mode 100644 index 00000000..5e311b47 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts @@ -0,0 +1,579 @@ +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequest { +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestAmino { +} +export interface QueryParamsRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestSDKType { +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponse { + /** params defines the parameters of the ecocredit module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the ecocredit module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; + value: Uint8Array; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; + value: QueryClassesRequestAmino; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; + value: Uint8Array; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; + value: QueryClassesResponseAmino; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequest { + /** class_id is the unique ID of credit class to query. */ + classId: string; +} +export interface QueryClassInfoRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; + value: Uint8Array; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequestAmino { + /** class_id is the unique ID of credit class to query. */ + class_id?: string; +} +export interface QueryClassInfoRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; + value: QueryClassInfoRequestAmino; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequestSDKType { + class_id: string; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponse { + /** info is the ClassInfo for the credit class. */ + info?: ClassInfo; +} +export interface QueryClassInfoResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; + value: Uint8Array; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponseAmino { + /** info is the ClassInfo for the credit class. */ + info?: ClassInfoAmino; +} +export interface QueryClassInfoResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; + value: QueryClassInfoResponseAmino; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponseSDKType { + info?: ClassInfoSDKType; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequest { + /** class_id is the unique ID of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; + value: Uint8Array; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestAmino { + /** class_id is the unique ID of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; + value: QueryBatchesRequestAmino; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponse { + /** batches are the fetched credit batches within the class. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; + value: Uint8Array; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseAmino { + /** batches are the fetched credit batches within the class. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; + value: QueryBatchesResponseAmino; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequest { + /** batch_denom is the unique ID of credit batch to query. */ + batchDenom: string; +} +export interface QueryBatchInfoRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; + value: Uint8Array; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequestAmino { + /** batch_denom is the unique ID of credit batch to query. */ + batch_denom?: string; +} +export interface QueryBatchInfoRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; + value: QueryBatchInfoRequestAmino; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequestSDKType { + batch_denom: string; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponse { + /** info is the BatchInfo for the credit batch. */ + info?: BatchInfo; +} +export interface QueryBatchInfoResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; + value: Uint8Array; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponseAmino { + /** info is the BatchInfo for the credit batch. */ + info?: BatchInfoAmino; +} +export interface QueryBatchInfoResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; + value: QueryBatchInfoResponseAmino; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponseSDKType { + info?: BatchInfoSDKType; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequest { + /** account is the address of the account whose balance is being queried. */ + account: string; + /** batch_denom is the unique ID of credit batch balance to query. */ + batchDenom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestAmino { + /** account is the address of the account whose balance is being queried. */ + account?: string; + /** batch_denom is the unique ID of credit batch balance to query. */ + batch_denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestSDKType { + account: string; + batch_denom: string; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponse { + /** tradable_amount is the decimal number of tradable credits. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits. */ + retiredAmount: string; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseAmino { + /** tradable_amount is the decimal number of tradable credits. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits. */ + retired_amount?: string; +} +export interface QueryBalanceResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseSDKType { + tradable_amount: string; + retired_amount: string; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequest { + /** batch_denom is the unique ID of credit batch to query. */ + batchDenom: string; +} +export interface QuerySupplyRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; + value: Uint8Array; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestAmino { + /** batch_denom is the unique ID of credit batch to query. */ + batch_denom?: string; +} +export interface QuerySupplyRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; + value: QuerySupplyRequestAmino; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestSDKType { + batch_denom: string; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponse { + /** + * tradable_supply is the decimal number of tradable credits in the batch + * supply. + */ + tradableSupply: string; + /** + * retired_supply is the decimal number of retired credits in the batch + * supply. + */ + retiredSupply: string; +} +export interface QuerySupplyResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; + value: Uint8Array; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseAmino { + /** + * tradable_supply is the decimal number of tradable credits in the batch + * supply. + */ + tradable_supply?: string; + /** + * retired_supply is the decimal number of retired credits in the batch + * supply. + */ + retired_supply?: string; +} +export interface QuerySupplyResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; + value: QuerySupplyResponseAmino; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseSDKType { + tradable_supply: string; + retired_supply: string; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequest { +} +export interface QueryCreditTypesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestAmino { +} +export interface QueryCreditTypesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; + value: QueryCreditTypesRequestAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestSDKType { +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponse { + /** list of credit types */ + creditTypes: CreditType[]; +} +export interface QueryCreditTypesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseAmino { + /** list of credit types */ + credit_types?: CreditTypeAmino[]; +} +export interface QueryCreditTypesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; + value: QueryCreditTypesResponseAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseSDKType { + credit_types: CreditTypeSDKType[]; +} +export declare const QueryParamsRequest: { + typeUrl: string; + encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; + fromPartial(_: Partial): QueryParamsRequest; + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; + toProto(message: QueryParamsRequest): Uint8Array; + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; +}; +export declare const QueryParamsResponse: { + typeUrl: string; + encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; + fromPartial(object: Partial): QueryParamsResponse; + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; + toProto(message: QueryParamsResponse): Uint8Array; + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; +}; +export declare const QueryClassesRequest: { + typeUrl: string; + encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; + fromPartial(object: Partial): QueryClassesRequest; + fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; + toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; + fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; + fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; + toProto(message: QueryClassesRequest): Uint8Array; + toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; +}; +export declare const QueryClassesResponse: { + typeUrl: string; + encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; + fromPartial(object: Partial): QueryClassesResponse; + fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; + toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; + fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; + fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; + toProto(message: QueryClassesResponse): Uint8Array; + toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; +}; +export declare const QueryClassInfoRequest: { + typeUrl: string; + encode(message: QueryClassInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest; + fromPartial(object: Partial): QueryClassInfoRequest; + fromAmino(object: QueryClassInfoRequestAmino): QueryClassInfoRequest; + toAmino(message: QueryClassInfoRequest): QueryClassInfoRequestAmino; + fromAminoMsg(object: QueryClassInfoRequestAminoMsg): QueryClassInfoRequest; + fromProtoMsg(message: QueryClassInfoRequestProtoMsg): QueryClassInfoRequest; + toProto(message: QueryClassInfoRequest): Uint8Array; + toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg; +}; +export declare const QueryClassInfoResponse: { + typeUrl: string; + encode(message: QueryClassInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse; + fromPartial(object: Partial): QueryClassInfoResponse; + fromAmino(object: QueryClassInfoResponseAmino): QueryClassInfoResponse; + toAmino(message: QueryClassInfoResponse): QueryClassInfoResponseAmino; + fromAminoMsg(object: QueryClassInfoResponseAminoMsg): QueryClassInfoResponse; + fromProtoMsg(message: QueryClassInfoResponseProtoMsg): QueryClassInfoResponse; + toProto(message: QueryClassInfoResponse): Uint8Array; + toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg; +}; +export declare const QueryBatchesRequest: { + typeUrl: string; + encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; + fromPartial(object: Partial): QueryBatchesRequest; + fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; + toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; + fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; + fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; + toProto(message: QueryBatchesRequest): Uint8Array; + toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; +}; +export declare const QueryBatchesResponse: { + typeUrl: string; + encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; + fromPartial(object: Partial): QueryBatchesResponse; + fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; + toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; + fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; + fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; + toProto(message: QueryBatchesResponse): Uint8Array; + toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; +}; +export declare const QueryBatchInfoRequest: { + typeUrl: string; + encode(message: QueryBatchInfoRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest; + fromPartial(object: Partial): QueryBatchInfoRequest; + fromAmino(object: QueryBatchInfoRequestAmino): QueryBatchInfoRequest; + toAmino(message: QueryBatchInfoRequest): QueryBatchInfoRequestAmino; + fromAminoMsg(object: QueryBatchInfoRequestAminoMsg): QueryBatchInfoRequest; + fromProtoMsg(message: QueryBatchInfoRequestProtoMsg): QueryBatchInfoRequest; + toProto(message: QueryBatchInfoRequest): Uint8Array; + toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg; +}; +export declare const QueryBatchInfoResponse: { + typeUrl: string; + encode(message: QueryBatchInfoResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse; + fromPartial(object: Partial): QueryBatchInfoResponse; + fromAmino(object: QueryBatchInfoResponseAmino): QueryBatchInfoResponse; + toAmino(message: QueryBatchInfoResponse): QueryBatchInfoResponseAmino; + fromAminoMsg(object: QueryBatchInfoResponseAminoMsg): QueryBatchInfoResponse; + fromProtoMsg(message: QueryBatchInfoResponseProtoMsg): QueryBatchInfoResponse; + toProto(message: QueryBatchInfoResponse): Uint8Array; + toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg; +}; +export declare const QueryBalanceRequest: { + typeUrl: string; + encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; + fromPartial(object: Partial): QueryBalanceRequest; + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; + toProto(message: QueryBalanceRequest): Uint8Array; + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; +}; +export declare const QueryBalanceResponse: { + typeUrl: string; + encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; + fromPartial(object: Partial): QueryBalanceResponse; + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; + toProto(message: QueryBalanceResponse): Uint8Array; + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; +}; +export declare const QuerySupplyRequest: { + typeUrl: string; + encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; + fromPartial(object: Partial): QuerySupplyRequest; + fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; + toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; + fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; + fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; + toProto(message: QuerySupplyRequest): Uint8Array; + toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; +}; +export declare const QuerySupplyResponse: { + typeUrl: string; + encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; + fromPartial(object: Partial): QuerySupplyResponse; + fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; + toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; + fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; + fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; + toProto(message: QuerySupplyResponse): Uint8Array; + toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; +}; +export declare const QueryCreditTypesRequest: { + typeUrl: string; + encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; + fromPartial(_: Partial): QueryCreditTypesRequest; + fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; + toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; + fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; + fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; + toProto(message: QueryCreditTypesRequest): Uint8Array; + toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; +}; +export declare const QueryCreditTypesResponse: { + typeUrl: string; + encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; + fromPartial(object: Partial): QueryCreditTypesResponse; + fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; + toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; + fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; + fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; + toProto(message: QueryCreditTypesResponse): Uint8Array; + toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.js new file mode 100644 index 00000000..c27c67d8 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.js @@ -0,0 +1,1070 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryCreditTypesResponse = exports.QueryCreditTypesRequest = exports.QuerySupplyResponse = exports.QuerySupplyRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryBatchInfoResponse = exports.QueryBatchInfoRequest = exports.QueryBatchesResponse = exports.QueryBatchesRequest = exports.QueryClassInfoResponse = exports.QueryClassInfoRequest = exports.QueryClassesResponse = exports.QueryClassesRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; +//@ts-nocheck +const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); +const types_1 = require("./types"); +const binary_1 = require("../../../binary"); +function createBaseQueryParamsRequest() { + return {}; +} +exports.QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryParamsRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + value: exports.QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse() { + return { + params: undefined + }; +} +exports.QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.params !== undefined) { + types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = types_1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = types_1.Params.fromAmino(object.params); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryParamsResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + value: exports.QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesRequest() { + return { + pagination: undefined + }; +} +exports.QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + value: exports.QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse() { + return { + classes: [], + pagination: undefined + }; +} +exports.QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.classes) { + types_1.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(types_1.ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => types_1.ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => types_1.ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? types_1.ClassInfo.toAmino(e) : undefined); + } + else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + value: exports.QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoRequest() { + return { + classId: "" + }; +} +exports.QueryClassInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassInfoRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassInfoRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassInfoRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryClassInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + value: exports.QueryClassInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoResponse() { + return { + info: undefined + }; +} +exports.QueryClassInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.info !== undefined) { + types_1.ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = types_1.ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryClassInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? types_1.ClassInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryClassInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = types_1.ClassInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? types_1.ClassInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryClassInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryClassInfoResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryClassInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + value: exports.QueryClassInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest() { + return { + classId: "", + pagination: undefined + }; +} +exports.QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + value: exports.QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse() { + return { + batches: [], + pagination: undefined + }; +} +exports.QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.batches) { + types_1.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(types_1.BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => types_1.BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => types_1.BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? types_1.BatchInfo.toAmino(e) : undefined); + } + else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + value: exports.QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoRequest() { + return { + batchDenom: "" + }; +} +exports.QueryBatchInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchInfoRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchInfoRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchInfoRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchInfoRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + value: exports.QueryBatchInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoResponse() { + return { + info: undefined + }; +} +exports.QueryBatchInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.info !== undefined) { + types_1.BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = types_1.BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBatchInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? types_1.BatchInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBatchInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = types_1.BatchInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.info = message.info ? types_1.BatchInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBatchInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBatchInfoResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBatchInfoResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + value: exports.QueryBatchInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest() { + return { + account: "", + batchDenom: "" + }; +} +exports.QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.account !== "") { + writer.uint32(10).string(message.account); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceRequest(); + message.account = object.account ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceRequest(); + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.account = message.account === "" ? undefined : message.account; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalanceRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + value: exports.QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse() { + return { + tradableAmount: "", + retiredAmount: "" + }; +} +exports.QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryBalanceResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryBalanceResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryBalanceResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + value: exports.QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest() { + return { + batchDenom: "" + }; +} +exports.QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySupplyRequest.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + value: exports.QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse() { + return { + tradableSupply: "", + retiredSupply: "" + }; +} +exports.QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tradableSupply !== "") { + writer.uint32(10).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(18).string(message.retiredSupply); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableSupply = reader.string(); + break; + case 2: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQuerySupplyResponse(); + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object) { + return exports.QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QuerySupplyResponse.decode(message.value); + }, + toProto(message) { + return exports.QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + value: exports.QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest() { + return {}; +} +exports.QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_) { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypesRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + value: exports.QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse() { + return { + creditTypes: [] + }; +} +exports.QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.creditTypes) { + types_1.CreditType.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(types_1.CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => types_1.CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => types_1.CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? types_1.CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryCreditTypesResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + value: exports.QueryCreditTypesResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts new file mode 100644 index 00000000..14568f80 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts @@ -0,0 +1,16 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + classes(params?: QueryClassesRequest): Promise; + classInfo(params: QueryClassInfoRequest): Promise; + batches(params: QueryBatchesRequest): Promise; + batchInfo(params: QueryBatchInfoRequest): Promise; + balance(params: QueryBalanceRequest): Promise; + supply(params: QuerySupplyRequest): Promise; + creditTypes(_params?: QueryCreditTypesRequest): Promise; + params(_params?: QueryParamsRequest): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js new file mode 100644 index 00000000..a8397db5 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js @@ -0,0 +1,76 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +//@ts-nocheck +const helpers_1 = require("../../../helpers"); +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params = { + pagination: undefined + }) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassInfo queries for information on a credit class. */ + async classInfo(params) { + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches in the given credit class with pagination. */ + async batches(params) { + const options = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + (0, helpers_1.setPaginationParams)(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; + return await this.req.get(endpoint, options); + } + /* BatchInfo queries for information on a credit batch. */ + async batchInfo(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account. */ + async balance(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; + return await this.req.get(endpoint); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params) { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params = {}) { + const endpoint = `regen/ecocredit/v1alpha1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. */ + async params(_params = {}) { + const endpoint = `regen/ecocredit/v1alpha1/params`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts new file mode 100644 index 00000000..f750f1dd --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts @@ -0,0 +1,50 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Msg is the regen.ecocredit.v1alpha1 Query service. */ +export interface Query { + /** Classes queries for all credit classes with pagination. */ + classes(request?: QueryClassesRequest): Promise; + /** ClassInfo queries for information on a credit class. */ + classInfo(request: QueryClassInfoRequest): Promise; + /** Batches queries for all batches in the given credit class with pagination. */ + batches(request: QueryBatchesRequest): Promise; + /** BatchInfo queries for information on a credit batch. */ + batchInfo(request: QueryBatchInfoRequest): Promise; + /** + * Balance queries the balance (both tradable and retired) of a given credit + * batch for a given account. + */ + balance(request: QueryBalanceRequest): Promise; + /** Supply queries the tradable and retired supply of a credit batch. */ + supply(request: QuerySupplyRequest): Promise; + /** + * CreditTypes returns the list of allowed types that credit classes can have. + * See Types/CreditType for more details. + */ + creditTypes(request?: QueryCreditTypesRequest): Promise; + /** Params queries the ecocredit module parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + classes(request?: QueryClassesRequest): Promise; + classInfo(request: QueryClassInfoRequest): Promise; + batches(request: QueryBatchesRequest): Promise; + batchInfo(request: QueryBatchInfoRequest): Promise; + balance(request: QueryBalanceRequest): Promise; + supply(request: QuerySupplyRequest): Promise; + creditTypes(request?: QueryCreditTypesRequest): Promise; + params(request?: QueryParamsRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + classes(request?: QueryClassesRequest): Promise; + classInfo(request: QueryClassInfoRequest): Promise; + batches(request: QueryBatchesRequest): Promise; + batchInfo(request: QueryBatchInfoRequest): Promise; + balance(request: QueryBalanceRequest): Promise; + supply(request: QuerySupplyRequest): Promise; + creditTypes(request?: QueryCreditTypesRequest): Promise; + params(request?: QueryParamsRequest): Promise; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js new file mode 100644 index 00000000..6d153541 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js @@ -0,0 +1,94 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + classes(request = { + pagination: undefined + }) { + const data = query_1.QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); + return promise.then(data => query_1.QueryClassesResponse.decode(new binary_1.BinaryReader(data))); + } + classInfo(request) { + const data = query_1.QueryClassInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); + return promise.then(data => query_1.QueryClassInfoResponse.decode(new binary_1.BinaryReader(data))); + } + batches(request) { + const data = query_1.QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); + return promise.then(data => query_1.QueryBatchesResponse.decode(new binary_1.BinaryReader(data))); + } + batchInfo(request) { + const data = query_1.QueryBatchInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); + return promise.then(data => query_1.QueryBatchInfoResponse.decode(new binary_1.BinaryReader(data))); + } + balance(request) { + const data = query_1.QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); + return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); + } + supply(request) { + const data = query_1.QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); + return promise.then(data => query_1.QuerySupplyResponse.decode(new binary_1.BinaryReader(data))); + } + creditTypes(request = {}) { + const data = query_1.QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); + return promise.then(data => query_1.QueryCreditTypesResponse.decode(new binary_1.BinaryReader(data))); + } + params(request = {}) { + const data = query_1.QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); + return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request) { + return queryService.classes(request); + }, + classInfo(request) { + return queryService.classInfo(request); + }, + batches(request) { + return queryService.batches(request); + }, + batchInfo(request) { + return queryService.batchInfo(request); + }, + balance(request) { + return queryService.balance(request); + }, + supply(request) { + return queryService.supply(request); + }, + creditTypes(request) { + return queryService.creditTypes(request); + }, + params(request) { + return queryService.params(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts new file mode 100644 index 00000000..712d9cec --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts @@ -0,0 +1,43 @@ +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export declare const AminoConverter: { + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: string; + toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; + fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; + }; + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: string; + toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; + fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; + }; + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: string; + toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; + fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; + }; + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: string; + toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; + fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; + }; + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: string; + toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; + fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: string; + toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; + fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: string; + toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; + fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; + }; + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: string; + toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; + fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js new file mode 100644 index 00000000..81bc974b --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", + toAmino: tx_1.MsgCreateClass.toAmino, + fromAmino: tx_1.MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + toAmino: tx_1.MsgCreateBatch.toAmino, + fromAmino: tx_1.MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: "/regen.ecocredit.v1alpha1.MsgSend", + toAmino: tx_1.MsgSend.toAmino, + fromAmino: tx_1.MsgSend.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", + toAmino: tx_1.MsgRetire.toAmino, + fromAmino: tx_1.MsgRetire.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", + toAmino: tx_1.MsgCancel.toAmino, + fromAmino: tx_1.MsgCancel.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + toAmino: tx_1.MsgUpdateClassAdmin.toAmino, + fromAmino: tx_1.MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + toAmino: tx_1.MsgUpdateClassIssuers.toAmino, + fromAmino: tx_1.MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + toAmino: tx_1.MsgUpdateClassMetadata.toAmino, + fromAmino: tx_1.MsgUpdateClassMetadata.fromAmino + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts new file mode 100644 index 00000000..1710ad15 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts @@ -0,0 +1,936 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClass { + /** admin is the address of the account that created the credit class. */ + admin: string; + /** issuers are the account addresses of the approved issuers. */ + issuers: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: Uint8Array; + /** + * credit_type_name describes the type of credit (e.g. "carbon", + * "biodiversity"). + */ + creditTypeName: string; +} +export interface MsgCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass"; + value: Uint8Array; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassAmino { + /** admin is the address of the account that created the credit class. */ + admin?: string; + /** issuers are the account addresses of the approved issuers. */ + issuers?: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** + * credit_type_name describes the type of credit (e.g. "carbon", + * "biodiversity"). + */ + credit_type_name?: string; +} +export interface MsgCreateClassAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; + value: MsgCreateClassAmino; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassSDKType { + admin: string; + issuers: string[]; + metadata: Uint8Array; + credit_type_name: string; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponse { + /** class_id is the unique ID of the newly created credit class. */ + classId: string; +} +export interface MsgCreateClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; + value: Uint8Array; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseAmino { + /** class_id is the unique ID of the newly created credit class. */ + class_id?: string; +} +export interface MsgCreateClassResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; + value: MsgCreateClassResponseAmino; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseSDKType { + class_id: string; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatch { + /** issuer is the address of the batch issuer. */ + issuer: string; + /** class_id is the unique ID of the class. */ + classId: string; + /** issuance are the credits issued in the batch. */ + issuance: MsgCreateBatch_BatchIssuance[]; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: Uint8Array; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * project_location is the location of the project backing the credits in this + * batch. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. country-code is required, while sub-national-code + * and postal-code can be added for increasing precision. + */ + projectLocation: string; +} +export interface MsgCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; + value: Uint8Array; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchAmino { + /** issuer is the address of the batch issuer. */ + issuer?: string; + /** class_id is the unique ID of the class. */ + class_id?: string; + /** issuance are the credits issued in the batch. */ + issuance?: MsgCreateBatch_BatchIssuanceAmino[]; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. country-code is required, while sub-national-code + * and postal-code can be added for increasing precision. + */ + project_location?: string; +} +export interface MsgCreateBatchAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; + value: MsgCreateBatchAmino; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchSDKType { + issuer: string; + class_id: string; + issuance: MsgCreateBatch_BatchIssuanceSDKType[]; + metadata: Uint8Array; + start_date?: Date; + end_date?: Date; + project_location: string; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuance { + /** recipient is the account of the recipient. */ + recipient: string; + /** + * tradable_amount is the number of credits in this issuance that can be + * traded by this recipient. Decimal values are acceptable. + */ + tradableAmount: string; + /** + * retired_amount is the number of credits in this issuance that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable. + */ + retiredAmount: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirementLocation: string; +} +export interface MsgCreateBatch_BatchIssuanceProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance"; + value: Uint8Array; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuanceAmino { + /** recipient is the account of the recipient. */ + recipient?: string; + /** + * tradable_amount is the number of credits in this issuance that can be + * traded by this recipient. Decimal values are acceptable. + */ + tradable_amount?: string; + /** + * retired_amount is the number of credits in this issuance that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable. + */ + retired_amount?: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirement_location?: string; +} +export interface MsgCreateBatch_BatchIssuanceAminoMsg { + type: "/regen.ecocredit.v1alpha1.BatchIssuance"; + value: MsgCreateBatch_BatchIssuanceAmino; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuanceSDKType { + recipient: string; + tradable_amount: string; + retired_amount: string; + retirement_location: string; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponse { + /** batch_denom is the unique denomination ID of the newly created batch. */ + batchDenom: string; +} +export interface MsgCreateBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; + value: Uint8Array; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseAmino { + /** batch_denom is the unique denomination ID of the newly created batch. */ + batch_denom?: string; +} +export interface MsgCreateBatchResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; + value: MsgCreateBatchResponseAmino; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseSDKType { + batch_denom: string; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSend { + /** sender is the address of the account sending credits. */ + sender: string; + /** sender is the address of the account receiving credits. */ + recipient: string; + /** credits are the credits being sent. */ + credits: MsgSend_SendCredits[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend"; + value: Uint8Array; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendAmino { + /** sender is the address of the account sending credits. */ + sender?: string; + /** sender is the address of the account receiving credits. */ + recipient?: string; + /** credits are the credits being sent. */ + credits?: MsgSend_SendCreditsAmino[]; +} +export interface MsgSendAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgSend"; + value: MsgSendAmino; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendSDKType { + sender: string; + recipient: string; + credits: MsgSend_SendCreditsSDKType[]; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * tradable_amount is the number of credits in this transfer that can be + * traded by the recipient. Decimal values are acceptable within the + * precision returned by Query/Precision. + */ + tradableAmount: string; + /** + * retired_amount is the number of credits in this transfer that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable within the precision returned by Query/Precision. + */ + retiredAmount: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirementLocation: string; +} +export interface MsgSend_SendCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits"; + value: Uint8Array; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * tradable_amount is the number of credits in this transfer that can be + * traded by the recipient. Decimal values are acceptable within the + * precision returned by Query/Precision. + */ + tradable_amount?: string; + /** + * retired_amount is the number of credits in this transfer that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable within the precision returned by Query/Precision. + */ + retired_amount?: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirement_location?: string; +} +export interface MsgSend_SendCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.SendCredits"; + value: MsgSend_SendCreditsAmino; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCreditsSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; + retirement_location: string; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponse { +} +export interface MsgSendResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseAmino { +} +export interface MsgSendResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseSDKType { +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetire { + /** holder is the credit holder address. */ + holder: string; + /** credits are the credits being retired. */ + credits: MsgRetire_RetireCredits[]; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location: string; +} +export interface MsgRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireAmino { + /** holder is the credit holder address. */ + holder?: string; + /** credits are the credits being retired. */ + credits?: MsgRetire_RetireCreditsAmino[]; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location?: string; +} +export interface MsgRetireAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgRetire"; + value: MsgRetireAmino; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireSDKType { + holder: string; + credits: MsgRetire_RetireCreditsSDKType[]; + location: string; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being retired. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount: string; +} +export interface MsgRetire_RetireCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits"; + value: Uint8Array; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being retired. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount?: string; +} +export interface MsgRetire_RetireCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.RetireCredits"; + value: MsgRetire_RetireCreditsAmino; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCreditsSDKType { + batch_denom: string; + amount: string; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponse { +} +export interface MsgRetireResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseAmino { +} +export interface MsgRetireResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; + value: MsgRetireResponseAmino; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseSDKType { +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancel { + /** holder is the credit holder address. */ + holder: string; + /** credits are the credits being cancelled. */ + credits: MsgCancel_CancelCredits[]; +} +export interface MsgCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel"; + value: Uint8Array; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelAmino { + /** holder is the credit holder address. */ + holder?: string; + /** credits are the credits being cancelled. */ + credits?: MsgCancel_CancelCreditsAmino[]; +} +export interface MsgCancelAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCancel"; + value: MsgCancelAmino; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelSDKType { + holder: string; + credits: MsgCancel_CancelCreditsSDKType[]; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being cancelled. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount: string; +} +export interface MsgCancel_CancelCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits"; + value: Uint8Array; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being cancelled. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount?: string; +} +export interface MsgCancel_CancelCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.CancelCredits"; + value: MsgCancel_CancelCreditsAmino; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCreditsSDKType { + batch_denom: string; + amount: string; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponse { +} +export interface MsgCancelResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; + value: Uint8Array; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseAmino { +} +export interface MsgCancelResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; + value: MsgCancelResponseAmino; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseSDKType { +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdmin { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** new_admin is the address of the new admin of the credit class. */ + newAdmin: string; +} +export interface MsgUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; + value: Uint8Array; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** new_admin is the address of the new admin of the credit class. */ + new_admin?: string; +} +export interface MsgUpdateClassAdminAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; + value: MsgUpdateClassAdminAmino; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminSDKType { + admin: string; + class_id: string; + new_admin: string; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponse { +} +export interface MsgUpdateClassAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseAmino { +} +export interface MsgUpdateClassAdminResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; + value: MsgUpdateClassAdminResponseAmino; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseSDKType { +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuers { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** issuers are the updated account addresses of the approved issuers. */ + issuers: string[]; +} +export interface MsgUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; + value: Uint8Array; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** issuers are the updated account addresses of the approved issuers. */ + issuers?: string[]; +} +export interface MsgUpdateClassIssuersAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; + value: MsgUpdateClassIssuersAmino; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersSDKType { + admin: string; + class_id: string; + issuers: string[]; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponse { +} +export interface MsgUpdateClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; + value: Uint8Array; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseAmino { +} +export interface MsgUpdateClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; + value: MsgUpdateClassIssuersResponseAmino; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseSDKType { +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadata { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** + * metadata is the updated arbitrary metadata to be attached to the credit + * class. + */ + metadata: Uint8Array; +} +export interface MsgUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; + value: Uint8Array; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** + * metadata is the updated arbitrary metadata to be attached to the credit + * class. + */ + metadata?: string; +} +export interface MsgUpdateClassMetadataAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; + value: MsgUpdateClassMetadataAmino; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataSDKType { + admin: string; + class_id: string; + metadata: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponse { +} +export interface MsgUpdateClassMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseAmino { +} +export interface MsgUpdateClassMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; + value: MsgUpdateClassMetadataResponseAmino; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseSDKType { +} +export declare const MsgCreateClass: { + typeUrl: string; + encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; + fromPartial(object: Partial): MsgCreateClass; + fromAmino(object: MsgCreateClassAmino): MsgCreateClass; + toAmino(message: MsgCreateClass): MsgCreateClassAmino; + fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; + fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; + toProto(message: MsgCreateClass): Uint8Array; + toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; +}; +export declare const MsgCreateClassResponse: { + typeUrl: string; + encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; + fromPartial(object: Partial): MsgCreateClassResponse; + fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; + toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; + fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; + fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; + toProto(message: MsgCreateClassResponse): Uint8Array; + toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; +}; +export declare const MsgCreateBatch: { + typeUrl: string; + encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; + fromPartial(object: Partial): MsgCreateBatch; + fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; + toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; + fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; + fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; + toProto(message: MsgCreateBatch): Uint8Array; + toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; +}; +export declare const MsgCreateBatch_BatchIssuance: { + typeUrl: string; + encode(message: MsgCreateBatch_BatchIssuance, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance; + fromPartial(object: Partial): MsgCreateBatch_BatchIssuance; + fromAmino(object: MsgCreateBatch_BatchIssuanceAmino): MsgCreateBatch_BatchIssuance; + toAmino(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceAmino; + fromAminoMsg(object: MsgCreateBatch_BatchIssuanceAminoMsg): MsgCreateBatch_BatchIssuance; + fromProtoMsg(message: MsgCreateBatch_BatchIssuanceProtoMsg): MsgCreateBatch_BatchIssuance; + toProto(message: MsgCreateBatch_BatchIssuance): Uint8Array; + toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg; +}; +export declare const MsgCreateBatchResponse: { + typeUrl: string; + encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; + fromPartial(object: Partial): MsgCreateBatchResponse; + fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; + toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; + fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; + fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; + toProto(message: MsgCreateBatchResponse): Uint8Array; + toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; +}; +export declare const MsgSend: { + typeUrl: string; + encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; + fromPartial(object: Partial): MsgSend; + fromAmino(object: MsgSendAmino): MsgSend; + toAmino(message: MsgSend): MsgSendAmino; + fromAminoMsg(object: MsgSendAminoMsg): MsgSend; + fromProtoMsg(message: MsgSendProtoMsg): MsgSend; + toProto(message: MsgSend): Uint8Array; + toProtoMsg(message: MsgSend): MsgSendProtoMsg; +}; +export declare const MsgSend_SendCredits: { + typeUrl: string; + encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; + fromPartial(object: Partial): MsgSend_SendCredits; + fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; + toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; + fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; + fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; + toProto(message: MsgSend_SendCredits): Uint8Array; + toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; +}; +export declare const MsgSendResponse: { + typeUrl: string; + encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; + fromPartial(_: Partial): MsgSendResponse; + fromAmino(_: MsgSendResponseAmino): MsgSendResponse; + toAmino(_: MsgSendResponse): MsgSendResponseAmino; + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; + toProto(message: MsgSendResponse): Uint8Array; + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; +}; +export declare const MsgRetire: { + typeUrl: string; + encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; + fromPartial(object: Partial): MsgRetire; + fromAmino(object: MsgRetireAmino): MsgRetire; + toAmino(message: MsgRetire): MsgRetireAmino; + fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; + fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; + toProto(message: MsgRetire): Uint8Array; + toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; +}; +export declare const MsgRetire_RetireCredits: { + typeUrl: string; + encode(message: MsgRetire_RetireCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits; + fromPartial(object: Partial): MsgRetire_RetireCredits; + fromAmino(object: MsgRetire_RetireCreditsAmino): MsgRetire_RetireCredits; + toAmino(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsAmino; + fromAminoMsg(object: MsgRetire_RetireCreditsAminoMsg): MsgRetire_RetireCredits; + fromProtoMsg(message: MsgRetire_RetireCreditsProtoMsg): MsgRetire_RetireCredits; + toProto(message: MsgRetire_RetireCredits): Uint8Array; + toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg; +}; +export declare const MsgRetireResponse: { + typeUrl: string; + encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; + fromPartial(_: Partial): MsgRetireResponse; + fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; + toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; + fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; + fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; + toProto(message: MsgRetireResponse): Uint8Array; + toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; +}; +export declare const MsgCancel: { + typeUrl: string; + encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; + fromPartial(object: Partial): MsgCancel; + fromAmino(object: MsgCancelAmino): MsgCancel; + toAmino(message: MsgCancel): MsgCancelAmino; + fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; + fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; + toProto(message: MsgCancel): Uint8Array; + toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; +}; +export declare const MsgCancel_CancelCredits: { + typeUrl: string; + encode(message: MsgCancel_CancelCredits, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits; + fromPartial(object: Partial): MsgCancel_CancelCredits; + fromAmino(object: MsgCancel_CancelCreditsAmino): MsgCancel_CancelCredits; + toAmino(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsAmino; + fromAminoMsg(object: MsgCancel_CancelCreditsAminoMsg): MsgCancel_CancelCredits; + fromProtoMsg(message: MsgCancel_CancelCreditsProtoMsg): MsgCancel_CancelCredits; + toProto(message: MsgCancel_CancelCredits): Uint8Array; + toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg; +}; +export declare const MsgCancelResponse: { + typeUrl: string; + encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; + fromPartial(_: Partial): MsgCancelResponse; + fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; + toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; + fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; + fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; + toProto(message: MsgCancelResponse): Uint8Array; + toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; +}; +export declare const MsgUpdateClassAdmin: { + typeUrl: string; + encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; + fromPartial(object: Partial): MsgUpdateClassAdmin; + fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; + toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; + fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; + fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; + toProto(message: MsgUpdateClassAdmin): Uint8Array; + toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; +}; +export declare const MsgUpdateClassAdminResponse: { + typeUrl: string; + encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; + fromPartial(_: Partial): MsgUpdateClassAdminResponse; + fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; + toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; + fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; + fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; + toProto(message: MsgUpdateClassAdminResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; +}; +export declare const MsgUpdateClassIssuers: { + typeUrl: string; + encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; + fromPartial(object: Partial): MsgUpdateClassIssuers; + fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; + toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; + fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; + fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; + toProto(message: MsgUpdateClassIssuers): Uint8Array; + toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; +}; +export declare const MsgUpdateClassIssuersResponse: { + typeUrl: string; + encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; + fromPartial(_: Partial): MsgUpdateClassIssuersResponse; + fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; + toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; + fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; + fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; + toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; +}; +export declare const MsgUpdateClassMetadata: { + typeUrl: string; + encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; + fromPartial(object: Partial): MsgUpdateClassMetadata; + fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; + toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; + fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; + fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; + toProto(message: MsgUpdateClassMetadata): Uint8Array; + toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; +}; +export declare const MsgUpdateClassMetadataResponse: { + typeUrl: string; + encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; + fromPartial(_: Partial): MsgUpdateClassMetadataResponse; + fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; + toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; + fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; + fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; + toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; + toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.js new file mode 100644 index 00000000..85ffdd5c --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.js @@ -0,0 +1,1543 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgUpdateClassMetadataResponse = exports.MsgUpdateClassMetadata = exports.MsgUpdateClassIssuersResponse = exports.MsgUpdateClassIssuers = exports.MsgUpdateClassAdminResponse = exports.MsgUpdateClassAdmin = exports.MsgCancelResponse = exports.MsgCancel_CancelCredits = exports.MsgCancel = exports.MsgRetireResponse = exports.MsgRetire_RetireCredits = exports.MsgRetire = exports.MsgSendResponse = exports.MsgSend_SendCredits = exports.MsgSend = exports.MsgCreateBatchResponse = exports.MsgCreateBatch_BatchIssuance = exports.MsgCreateBatch = exports.MsgCreateClassResponse = exports.MsgCreateClass = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseMsgCreateClass() { + return { + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditTypeName: "" + }; +} +exports.MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + if (message.creditTypeName !== "") { + writer.uint32(34).string(message.creditTypeName); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.bytes(); + break; + case 4: + message.creditTypeName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditTypeName = object.creditTypeName ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + if (object.credit_type_name !== undefined && object.credit_type_name !== null) { + message.creditTypeName = object.credit_type_name; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateClass.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: exports.MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse() { + return { + classId: "" + }; +} +exports.MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateClassResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + value: exports.MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch() { + return { + issuer: "", + classId: "", + issuance: [], + metadata: new Uint8Array(), + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +exports.MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuance) { + exports.MsgCreateBatch_BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuance.push(exports.MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.issuance = object.issuance?.map(e => exports.MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuance = object.issuance?.map(e => exports.MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? exports.MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); + } + else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateBatch.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: exports.MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch_BatchIssuance() { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +exports.MsgCreateBatch_BatchIssuance = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch_BatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatch_BatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatch_BatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateBatch_BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateBatch_BatchIssuance.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateBatch_BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + value: exports.MsgCreateBatch_BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse() { + return { + batchDenom: "" + }; +} +exports.MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCreateBatchResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + value: exports.MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend() { + return { + sender: "", + recipient: "", + credits: [] + }; +} +exports.MsgSend = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + exports.MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(exports.MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? exports.MsgSend_SendCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSend.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSend.decode(message.value); + }, + toProto(message) { + return exports.MsgSend.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: exports.MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits() { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +exports.MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSend_SendCredits.decode(message.value); + }, + toProto(message) { + return exports.MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + value: exports.MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse() { + return {}; +} +exports.MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSendResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + value: exports.MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire() { + return { + holder: "", + credits: [], + location: "" + }; +} +exports.MsgRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + exports.MsgRetire_RetireCredits.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.location !== "") { + writer.uint32(26).string(message.location); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(exports.MsgRetire_RetireCredits.decode(reader, reader.uint32())); + break; + case 3: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => exports.MsgRetire_RetireCredits.fromPartial(e)) || []; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => exports.MsgRetire_RetireCredits.fromAmino(e)) || []; + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? exports.MsgRetire_RetireCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRetire.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRetire.decode(message.value); + }, + toProto(message) { + return exports.MsgRetire.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: exports.MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetire_RetireCredits() { + return { + batchDenom: "", + amount: "" + }; +} +exports.MsgRetire_RetireCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire_RetireCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRetire_RetireCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRetire_RetireCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRetire_RetireCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRetire_RetireCredits.decode(message.value); + }, + toProto(message) { + return exports.MsgRetire_RetireCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + value: exports.MsgRetire_RetireCredits.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse() { + return {}; +} +exports.MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRetireResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + value: exports.MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel() { + return { + holder: "", + credits: [] + }; +} +exports.MsgCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + exports.MsgCancel_CancelCredits.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(exports.MsgCancel_CancelCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => exports.MsgCancel_CancelCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => exports.MsgCancel_CancelCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? exports.MsgCancel_CancelCredits.toAmino(e) : undefined); + } + else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancel.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCancel.decode(message.value); + }, + toProto(message) { + return exports.MsgCancel.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: exports.MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancel_CancelCredits() { + return { + batchDenom: "", + amount: "" + }; +} +exports.MsgCancel_CancelCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel_CancelCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgCancel_CancelCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgCancel_CancelCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancel_CancelCredits.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCancel_CancelCredits.decode(message.value); + }, + toProto(message) { + return exports.MsgCancel_CancelCredits.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + value: exports.MsgCancel_CancelCredits.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse() { + return {}; +} +exports.MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgCancelResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + value: exports.MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin() { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +exports.MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: exports.MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse() { + return {}; +} +exports.MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + value: exports.MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers() { + return { + admin: "", + classId: "", + issuers: [] + }; +} +exports.MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuers) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: exports.MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse() { + return {}; +} +exports.MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + value: exports.MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata() { + return { + admin: "", + classId: "", + metadata: new Uint8Array() + }; +} +exports.MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: exports.MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse() { + return {}; +} +exports.MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + value: exports.MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts new file mode 100644 index 00000000..3401b090 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts @@ -0,0 +1,108 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: Uint8Array; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: Uint8Array; + }; + send(value: MsgSend): { + typeUrl: string; + value: Uint8Array; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: Uint8Array; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: Uint8Array; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: Uint8Array; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: Uint8Array; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: MsgCreateClass; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: MsgCreateBatch; + }; + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: MsgRetire; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: MsgCancel; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: MsgUpdateClassAdmin; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: MsgUpdateClassIssuers; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: MsgUpdateClassMetadata; + }; + }; + fromPartial: { + createClass(value: MsgCreateClass): { + typeUrl: string; + value: MsgCreateClass; + }; + createBatch(value: MsgCreateBatch): { + typeUrl: string; + value: MsgCreateBatch; + }; + send(value: MsgSend): { + typeUrl: string; + value: MsgSend; + }; + retire(value: MsgRetire): { + typeUrl: string; + value: MsgRetire; + }; + cancel(value: MsgCancel): { + typeUrl: string; + value: MsgCancel; + }; + updateClassAdmin(value: MsgUpdateClassAdmin): { + typeUrl: string; + value: MsgUpdateClassAdmin; + }; + updateClassIssuers(value: MsgUpdateClassIssuers): { + typeUrl: string; + value: MsgUpdateClassIssuers; + }; + updateClassMetadata(value: MsgUpdateClassMetadata): { + typeUrl: string; + value: MsgUpdateClassMetadata; + }; + }; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js new file mode 100644 index 00000000..4da252ef --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js @@ -0,0 +1,163 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.ecocredit.v1alpha1.MsgCreateClass", tx_1.MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", tx_1.MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", tx_1.MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", tx_1.MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", tx_1.MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", tx_1.MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", tx_1.MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", tx_1.MsgUpdateClassMetadata]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: tx_1.MsgCreateClass.encode(value).finish() + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: tx_1.MsgCreateBatch.encode(value).finish() + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: tx_1.MsgSend.encode(value).finish() + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: tx_1.MsgRetire.encode(value).finish() + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: tx_1.MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: tx_1.MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: tx_1.MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: tx_1.MsgUpdateClassMetadata.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value + }; + } + }, + fromPartial: { + createClass(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: tx_1.MsgCreateClass.fromPartial(value) + }; + }, + createBatch(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: tx_1.MsgCreateBatch.fromPartial(value) + }; + }, + send(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: tx_1.MsgSend.fromPartial(value) + }; + }, + retire(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: tx_1.MsgRetire.fromPartial(value) + }; + }, + cancel(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: tx_1.MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: tx_1.MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: tx_1.MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: tx_1.MsgUpdateClassMetadata.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..bc4794c1 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts @@ -0,0 +1,47 @@ +import { Rpc } from "../../../helpers"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; +/** Msg is the regen.ecocredit.v1alpha1 Msg service. */ +export interface Msg { + /** + * CreateClass creates a new credit class with an approved list of issuers and + * optional metadata. + */ + createClass(request: MsgCreateClass): Promise; + /** + * CreateBatch creates a new batch of credits for an existing credit class. + * This will create a new batch denom with a fixed supply. Issued credits can + * be distributed to recipients in either tradable or retired form. + */ + createBatch(request: MsgCreateBatch): Promise; + /** + * Send sends tradable credits from one account to another account. Sent + * credits can either be tradable or retired on receipt. + */ + send(request: MsgSend): Promise; + /** Retire retires a specified number of credits in the holder's account. */ + retire(request: MsgRetire): Promise; + /** + * Cancel removes a number of credits from the holder's account and also + * deducts them from the tradable supply, effectively cancelling their + * issuance on Regen Ledger + */ + cancel(request: MsgCancel): Promise; + /** UpdateClassAdmin updates the credit class admin */ + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + /** UpdateClassIssuers updates the credit class issuer list */ + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + /** UpdateClassMetadata updates the credit class metadata */ + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + createClass(request: MsgCreateClass): Promise; + createBatch(request: MsgCreateBatch): Promise; + send(request: MsgSend): Promise; + retire(request: MsgRetire): Promise; + cancel(request: MsgCancel): Promise; + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; +} diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js new file mode 100644 index 00000000..48407e31 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js @@ -0,0 +1,60 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createBatch = this.createBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + } + createClass(request) { + const data = tx_1.MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); + return promise.then(data => tx_1.MsgCreateClassResponse.decode(new binary_1.BinaryReader(data))); + } + createBatch(request) { + const data = tx_1.MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); + return promise.then(data => tx_1.MsgCreateBatchResponse.decode(new binary_1.BinaryReader(data))); + } + send(request) { + const data = tx_1.MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); + return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); + } + retire(request) { + const data = tx_1.MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); + return promise.then(data => tx_1.MsgRetireResponse.decode(new binary_1.BinaryReader(data))); + } + cancel(request) { + const data = tx_1.MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); + return promise.then(data => tx_1.MsgCancelResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassAdmin(request) { + const data = tx_1.MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); + return promise.then(data => tx_1.MsgUpdateClassAdminResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassIssuers(request) { + const data = tx_1.MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); + return promise.then(data => tx_1.MsgUpdateClassIssuersResponse.decode(new binary_1.BinaryReader(data))); + } + updateClassMetadata(request) { + const data = tx_1.MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); + return promise.then(data => tx_1.MsgUpdateClassMetadataResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts new file mode 100644 index 00000000..799750e5 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts @@ -0,0 +1,368 @@ +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfo { + /** class_id is the unique ID of credit class. */ + classId: string; + /** admin is the admin of the credit class. */ + admin: string; + /** issuers are the approved issuers of the credit class. */ + issuers: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: Uint8Array; + /** + * credit_type describes the type of credit (e.g. carbon, biodiversity), as + * well as unit and precision. + */ + creditType?: CreditType; + /** The number of batches issued in this credit class. */ + numBatches: bigint; +} +export interface ClassInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; + value: Uint8Array; +} +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfoAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** issuers are the approved issuers of the credit class. */ + issuers?: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** + * credit_type describes the type of credit (e.g. carbon, biodiversity), as + * well as unit and precision. + */ + credit_type?: CreditTypeAmino; + /** The number of batches issued in this credit class. */ + num_batches?: string; +} +export interface ClassInfoAminoMsg { + type: "/regen.ecocredit.v1alpha1.ClassInfo"; + value: ClassInfoAmino; +} +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfoSDKType { + class_id: string; + admin: string; + issuers: string[]; + metadata: Uint8Array; + credit_type?: CreditTypeSDKType; + num_batches: bigint; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfo { + /** class_id is the unique ID of credit class. */ + classId: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** issuer is the issuer of the credit batch. */ + issuer: string; + /** + * total_amount is the total number of active credits in the credit batch. + * Some of the issued credits may be cancelled and will be removed from + * total_amount and tracked in amount_cancelled. total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + totalAmount: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: Uint8Array; + /** + * amount_cancelled is the number of credits in the batch that have been + * cancelled, effectively undoing there issuance. The sum of total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + amountCancelled: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + projectLocation: string; +} +export interface BatchInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo"; + value: Uint8Array; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfoAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** issuer is the issuer of the credit batch. */ + issuer?: string; + /** + * total_amount is the total number of active credits in the credit batch. + * Some of the issued credits may be cancelled and will be removed from + * total_amount and tracked in amount_cancelled. total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + total_amount?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * amount_cancelled is the number of credits in the batch that have been + * cancelled, effectively undoing there issuance. The sum of total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + amount_cancelled?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + project_location?: string; +} +export interface BatchInfoAminoMsg { + type: "/regen.ecocredit.v1alpha1.BatchInfo"; + value: BatchInfoAmino; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfoSDKType { + class_id: string; + batch_denom: string; + issuer: string; + total_amount: string; + metadata: Uint8Array; + amount_cancelled: string; + start_date?: Date; + end_date?: Date; + project_location: string; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface Params { + /** credit_class_fee is the fixed fee charged on creation of a new credit class */ + creditClassFee: Coin[]; + /** + * allowed_class_creators is an allowlist defining the addresses with + * the required permissions to create credit classes + */ + allowedClassCreators: string[]; + /** + * allowlist_enabled is a param that enables/disables the allowlist for credit + * creation + */ + allowlistEnabled: boolean; + /** credit_types is a list of definitions for credit types */ + creditTypes: CreditType[]; + /** basket_creation_fee is the fee to create a new basket denom. */ + basketCreationFee: Coin[]; +} +export interface ParamsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Params"; + value: Uint8Array; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsAmino { + /** credit_class_fee is the fixed fee charged on creation of a new credit class */ + credit_class_fee?: CoinAmino[]; + /** + * allowed_class_creators is an allowlist defining the addresses with + * the required permissions to create credit classes + */ + allowed_class_creators?: string[]; + /** + * allowlist_enabled is a param that enables/disables the allowlist for credit + * creation + */ + allowlist_enabled?: boolean; + /** credit_types is a list of definitions for credit types */ + credit_types?: CreditTypeAmino[]; + /** basket_creation_fee is the fee to create a new basket denom. */ + basket_creation_fee?: CoinAmino[]; +} +export interface ParamsAminoMsg { + type: "/regen.ecocredit.v1alpha1.Params"; + value: ParamsAmino; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsSDKType { + credit_class_fee: CoinSDKType[]; + allowed_class_creators: string[]; + allowlist_enabled: boolean; + credit_types: CreditTypeSDKType[]; + basket_creation_fee: CoinSDKType[]; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditType { + /** the type of credit (e.g. carbon, biodiversity, etc) */ + name: string; + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation: string; + /** the measurement unit (e.g. kg, ton, etc) */ + unit: string; + /** the decimal precision */ + precision: number; +} +export interface CreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType"; + value: Uint8Array; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeAmino { + /** the type of credit (e.g. carbon, biodiversity, etc) */ + name?: string; + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation?: string; + /** the measurement unit (e.g. kg, ton, etc) */ + unit?: string; + /** the decimal precision */ + precision?: number; +} +export interface CreditTypeAminoMsg { + type: "/regen.ecocredit.v1alpha1.CreditType"; + value: CreditTypeAmino; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeSDKType { + name: string; + abbreviation: string; + unit: string; + precision: number; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeq { + /** The credit type abbreviation */ + abbreviation: string; + /** The sequence number of classes of the credit type */ + seqNumber: bigint; +} +export interface CreditTypeSeqProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; + value: Uint8Array; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeqAmino { + /** The credit type abbreviation */ + abbreviation?: string; + /** The sequence number of classes of the credit type */ + seq_number?: string; +} +export interface CreditTypeSeqAminoMsg { + type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; + value: CreditTypeSeqAmino; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeqSDKType { + abbreviation: string; + seq_number: bigint; +} +export declare const ClassInfo: { + typeUrl: string; + encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; + fromPartial(object: Partial): ClassInfo; + fromAmino(object: ClassInfoAmino): ClassInfo; + toAmino(message: ClassInfo): ClassInfoAmino; + fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; + fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; + toProto(message: ClassInfo): Uint8Array; + toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; +}; +export declare const BatchInfo: { + typeUrl: string; + encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; + fromPartial(object: Partial): BatchInfo; + fromAmino(object: BatchInfoAmino): BatchInfo; + toAmino(message: BatchInfo): BatchInfoAmino; + fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; + fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; + toProto(message: BatchInfo): Uint8Array; + toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; +}; +export declare const Params: { + typeUrl: string; + encode(message: Params, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Params; + fromPartial(object: Partial): Params; + fromAmino(object: ParamsAmino): Params; + toAmino(message: Params): ParamsAmino; + fromAminoMsg(object: ParamsAminoMsg): Params; + fromProtoMsg(message: ParamsProtoMsg): Params; + toProto(message: Params): Uint8Array; + toProtoMsg(message: Params): ParamsProtoMsg; +}; +export declare const CreditType: { + typeUrl: string; + encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditType; + fromPartial(object: Partial): CreditType; + fromAmino(object: CreditTypeAmino): CreditType; + toAmino(message: CreditType): CreditTypeAmino; + fromAminoMsg(object: CreditTypeAminoMsg): CreditType; + fromProtoMsg(message: CreditTypeProtoMsg): CreditType; + toProto(message: CreditType): Uint8Array; + toProtoMsg(message: CreditType): CreditTypeProtoMsg; +}; +export declare const CreditTypeSeq: { + typeUrl: string; + encode(message: CreditTypeSeq, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq; + fromPartial(object: Partial): CreditTypeSeq; + fromAmino(object: CreditTypeSeqAmino): CreditTypeSeq; + toAmino(message: CreditTypeSeq): CreditTypeSeqAmino; + fromAminoMsg(object: CreditTypeSeqAminoMsg): CreditTypeSeq; + fromProtoMsg(message: CreditTypeSeqProtoMsg): CreditTypeSeq; + toProto(message: CreditTypeSeq): Uint8Array; + toProtoMsg(message: CreditTypeSeq): CreditTypeSeqProtoMsg; +}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/types.js b/packages/api/dist/regen/ecocredit/v1alpha1/types.js new file mode 100644 index 00000000..971c1665 --- /dev/null +++ b/packages/api/dist/regen/ecocredit/v1alpha1/types.js @@ -0,0 +1,590 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreditTypeSeq = exports.CreditType = exports.Params = exports.BatchInfo = exports.ClassInfo = void 0; +//@ts-nocheck +const timestamp_1 = require("../../../google/protobuf/timestamp"); +const coin_1 = require("../../../cosmos/base/v1beta1/coin"); +const binary_1 = require("../../../binary"); +const helpers_1 = require("../../../helpers"); +function createBaseClassInfo() { + return { + classId: "", + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditType: undefined, + numBatches: BigInt(0) + }; +} +exports.ClassInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(26).string(v); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.creditType !== undefined) { + exports.CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); + } + if (message.numBatches !== BigInt(0)) { + writer.uint32(48).uint64(message.numBatches); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.creditType = exports.CreditType.decode(reader, reader.uint32()); + break; + case 6: + message.numBatches = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseClassInfo(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? exports.CreditType.fromPartial(object.creditType) : undefined; + message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseClassInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = exports.CreditType.fromAmino(object.credit_type); + } + if (object.num_batches !== undefined && object.num_batches !== null) { + message.numBatches = BigInt(object.num_batches); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } + else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + obj.credit_type = message.creditType ? exports.CreditType.toAmino(message.creditType) : undefined; + obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ClassInfo.decode(message.value); + }, + toProto(message) { + return exports.ClassInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + value: exports.ClassInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo() { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + metadata: new Uint8Array(), + amountCancelled: "", + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +exports.BatchInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + if (message.amountCancelled !== "") { + writer.uint32(50).string(message.amountCancelled); + } + if (message.startDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(58).fork()).ldelim(); + } + if (message.endDate !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(66).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(74).string(message.projectLocation); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.metadata = reader.bytes(); + break; + case 6: + message.amountCancelled = reader.string(); + break; + case 7: + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBatchInfo(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + message.amountCancelled = object.amountCancelled ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseBatchInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { + message.amountCancelled = object.amount_cancelled; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; + obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; + obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object) { + return exports.BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BatchInfo.decode(message.value); + }, + toProto(message) { + return exports.BatchInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + value: exports.BatchInfo.encode(message).finish() + }; + } +}; +function createBaseParams() { + return { + creditClassFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + creditTypes: [], + basketCreationFee: [] + }; +} +exports.Params = { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.creditClassFee) { + coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(18).string(v); + } + if (message.allowlistEnabled === true) { + writer.uint32(24).bool(message.allowlistEnabled); + } + for (const v of message.creditTypes) { + exports.CreditType.encode(v, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.basketCreationFee) { + coin_1.Coin.encode(v, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.allowedClassCreators.push(reader.string()); + break; + case 3: + message.allowlistEnabled = reader.bool(); + break; + case 4: + message.creditTypes.push(exports.CreditType.decode(reader, reader.uint32())); + break; + case 5: + message.basketCreationFee.push(coin_1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => coin_1.Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.creditTypes = object.creditTypes?.map(e => exports.CreditType.fromPartial(e)) || []; + message.basketCreationFee = object.basketCreationFee?.map(e => coin_1.Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.creditTypes = object.credit_types?.map(e => exports.CreditType.fromAmino(e)) || []; + message.basketCreationFee = object.basket_creation_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } + else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? exports.CreditType.toAmino(e) : undefined); + } + else { + obj.credit_types = message.creditTypes; + } + if (message.basketCreationFee) { + obj.basket_creation_fee = message.basketCreationFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); + } + else { + obj.basket_creation_fee = message.basketCreationFee; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Params.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Params.decode(message.value); + }, + toProto(message) { + return exports.Params.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + value: exports.Params.encode(message).finish() + }; + } +}; +function createBaseCreditType() { + return { + name: "", + abbreviation: "", + unit: "", + precision: 0 + }; +} +exports.CreditType = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.abbreviation !== "") { + writer.uint32(18).string(message.abbreviation); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.abbreviation = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditType(); + message.name = object.name ?? ""; + message.abbreviation = object.abbreviation ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseCreditType(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object) { + return exports.CreditType.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CreditType.decode(message.value); + }, + toProto(message) { + return exports.CreditType.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + value: exports.CreditType.encode(message).finish() + }; + } +}; +function createBaseCreditTypeSeq() { + return { + abbreviation: "", + seqNumber: BigInt(0) + }; +} +exports.CreditTypeSeq = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.seqNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.seqNumber); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeSeq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.seqNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCreditTypeSeq(); + message.abbreviation = object.abbreviation ?? ""; + message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseCreditTypeSeq(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.seq_number !== undefined && object.seq_number !== null) { + message.seqNumber = BigInt(object.seq_number); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.CreditTypeSeq.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CreditTypeSeq.decode(message.value); + }, + toProto(message) { + return exports.CreditTypeSeq.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + value: exports.CreditTypeSeq.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/intertx/v1/query.d.ts b/packages/api/dist/regen/intertx/v1/query.d.ts new file mode 100644 index 00000000..4aed74b8 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.d.ts @@ -0,0 +1,92 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequest { + /** owner is the address of the account that owns the ICA. */ + owner: string; + /** connection_id is the connection the ICA claimed. */ + connectionId: string; +} +export interface QueryInterchainAccountRequestProtoMsg { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest"; + value: Uint8Array; +} +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequestAmino { + /** owner is the address of the account that owns the ICA. */ + owner?: string; + /** connection_id is the connection the ICA claimed. */ + connection_id?: string; +} +export interface QueryInterchainAccountRequestAminoMsg { + type: "/regen.intertx.v1.QueryInterchainAccountRequest"; + value: QueryInterchainAccountRequestAmino; +} +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequestSDKType { + owner: string; + connection_id: string; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponse { + /** interchain_account_address is the address of the ICA. */ + interchainAccountAddress: string; +} +export interface QueryInterchainAccountResponseProtoMsg { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse"; + value: Uint8Array; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponseAmino { + /** interchain_account_address is the address of the ICA. */ + interchain_account_address?: string; +} +export interface QueryInterchainAccountResponseAminoMsg { + type: "/regen.intertx.v1.QueryInterchainAccountResponse"; + value: QueryInterchainAccountResponseAmino; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponseSDKType { + interchain_account_address: string; +} +export declare const QueryInterchainAccountRequest: { + typeUrl: string; + encode(message: QueryInterchainAccountRequest, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest; + fromPartial(object: Partial): QueryInterchainAccountRequest; + fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest; + toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino; + fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest; + fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest; + toProto(message: QueryInterchainAccountRequest): Uint8Array; + toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg; +}; +export declare const QueryInterchainAccountResponse: { + typeUrl: string; + encode(message: QueryInterchainAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse; + fromPartial(object: Partial): QueryInterchainAccountResponse; + fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse; + toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino; + fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse; + fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse; + toProto(message: QueryInterchainAccountResponse): Uint8Array; + toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/intertx/v1/query.js b/packages/api/dist/regen/intertx/v1/query.js new file mode 100644 index 00000000..f1290f1b --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.js @@ -0,0 +1,143 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QueryInterchainAccountResponse = exports.QueryInterchainAccountRequest = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseQueryInterchainAccountRequest() { + return { + owner: "", + connectionId: "" + }; +} +exports.QueryInterchainAccountRequest = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInterchainAccountRequest(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryInterchainAccountRequest(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryInterchainAccountRequest.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryInterchainAccountRequest.decode(message.value); + }, + toProto(message) { + return exports.QueryInterchainAccountRequest.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + value: exports.QueryInterchainAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInterchainAccountResponse() { + return { + interchainAccountAddress: "" + }; +} +exports.QueryInterchainAccountResponse = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.interchainAccountAddress !== "") { + writer.uint32(10).string(message.interchainAccountAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interchainAccountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseQueryInterchainAccountResponse(); + message.interchainAccountAddress = object.interchainAccountAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseQueryInterchainAccountResponse(); + if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { + message.interchainAccountAddress = object.interchain_account_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.QueryInterchainAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.QueryInterchainAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.QueryInterchainAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + value: exports.QueryInterchainAccountResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/intertx/v1/query.lcd.d.ts b/packages/api/dist/regen/intertx/v1/query.lcd.d.ts new file mode 100644 index 00000000..54d4635a --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.lcd.d.ts @@ -0,0 +1,9 @@ +import { LCDClient } from "@cosmology/lcd"; +import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; +export declare class LCDQueryClient { + req: LCDClient; + constructor({ requestClient }: { + requestClient: LCDClient; + }); + interchainAccount(params: QueryInterchainAccountRequest): Promise; +} diff --git a/packages/api/dist/regen/intertx/v1/query.lcd.js b/packages/api/dist/regen/intertx/v1/query.lcd.js new file mode 100644 index 00000000..902d44e5 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.lcd.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LCDQueryClient = void 0; +class LCDQueryClient { + req; + constructor({ requestClient }) { + this.req = requestClient; + this.interchainAccount = this.interchainAccount.bind(this); + } + /* QueryInterchainAccount returns the interchain account for given owner + address on a given connection pair */ + async interchainAccount(params) { + const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; + return await this.req.get(endpoint); + } +} +exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts new file mode 100644 index 00000000..f78e9e39 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts @@ -0,0 +1,19 @@ +import { Rpc } from "../../../helpers"; +import { QueryClient } from "@cosmjs/stargate"; +import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * QueryInterchainAccount returns the interchain account for given owner + * address on a given connection pair + */ + interchainAccount(request: QueryInterchainAccountRequest): Promise; +} +export declare class QueryClientImpl implements Query { + private readonly rpc; + constructor(rpc: Rpc); + interchainAccount(request: QueryInterchainAccountRequest): Promise; +} +export declare const createRpcQueryExtension: (base: QueryClient) => { + interchainAccount(request: QueryInterchainAccountRequest): Promise; +}; diff --git a/packages/api/dist/regen/intertx/v1/query.rpc.Query.js b/packages/api/dist/regen/intertx/v1/query.rpc.Query.js new file mode 100644 index 00000000..ef97951b --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/query.rpc.Query.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; +const binary_1 = require("../../../binary"); +const stargate_1 = require("@cosmjs/stargate"); +const query_1 = require("./query"); +class QueryClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.interchainAccount = this.interchainAccount.bind(this); + } + interchainAccount(request) { + const data = query_1.QueryInterchainAccountRequest.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); + return promise.then(data => query_1.QueryInterchainAccountResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.QueryClientImpl = QueryClientImpl; +const createRpcQueryExtension = (base) => { + const rpc = (0, stargate_1.createProtobufRpcClient)(base); + const queryService = new QueryClientImpl(rpc); + return { + interchainAccount(request) { + return queryService.interchainAccount(request); + } + }; +}; +exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/intertx/v1/tx.amino.d.ts b/packages/api/dist/regen/intertx/v1/tx.amino.d.ts new file mode 100644 index 00000000..a9d30d0e --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.amino.d.ts @@ -0,0 +1,13 @@ +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export declare const AminoConverter: { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: string; + toAmino: (message: MsgRegisterAccount) => import("./tx").MsgRegisterAccountAmino; + fromAmino: (object: import("./tx").MsgRegisterAccountAmino) => MsgRegisterAccount; + }; + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: string; + toAmino: (message: MsgSubmitTx) => import("./tx").MsgSubmitTxAmino; + fromAmino: (object: import("./tx").MsgSubmitTxAmino) => MsgSubmitTx; + }; +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.amino.js b/packages/api/dist/regen/intertx/v1/tx.amino.js new file mode 100644 index 00000000..0ef57607 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.amino.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AminoConverter = void 0; +//@ts-nocheck +const tx_1 = require("./tx"); +exports.AminoConverter = { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: "/regen.intertx.v1.MsgRegisterAccount", + toAmino: tx_1.MsgRegisterAccount.toAmino, + fromAmino: tx_1.MsgRegisterAccount.fromAmino + }, + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: "/regen.intertx.v1.MsgSubmitTx", + toAmino: tx_1.MsgSubmitTx.toAmino, + fromAmino: tx_1.MsgSubmitTx.fromAmino + } +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.d.ts b/packages/api/dist/regen/intertx/v1/tx.d.ts new file mode 100644 index 00000000..ddc17964 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.d.ts @@ -0,0 +1,156 @@ +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccount { + /** owner is the address of the interchain account owner. */ + owner: string; + /** connection_id is the connection id string (i.e. channel-5). */ + connectionId: string; + /** + * version is the application version string. For example, this could be an + * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested + * application version. + */ + version: string; +} +export interface MsgRegisterAccountProtoMsg { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount"; + value: Uint8Array; +} +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccountAmino { + /** owner is the address of the interchain account owner. */ + owner?: string; + /** connection_id is the connection id string (i.e. channel-5). */ + connection_id?: string; + /** + * version is the application version string. For example, this could be an + * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested + * application version. + */ + version?: string; +} +export interface MsgRegisterAccountAminoMsg { + type: "/regen.intertx.v1.MsgRegisterAccount"; + value: MsgRegisterAccountAmino; +} +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccountSDKType { + owner: string; + connection_id: string; + version: string; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponse { +} +export interface MsgRegisterAccountResponseProtoMsg { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse"; + value: Uint8Array; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponseAmino { +} +export interface MsgRegisterAccountResponseAminoMsg { + type: "/regen.intertx.v1.MsgRegisterAccountResponse"; + value: MsgRegisterAccountResponseAmino; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponseSDKType { +} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTx { + /** owner is the owner address of the interchain account. */ + owner: string; + /** connection_id is the id of the connection. */ + connectionId: string; + /** msg is the bytes of the transaction msg to send. */ + msg?: Any; +} +export interface MsgSubmitTxProtoMsg { + typeUrl: "/regen.intertx.v1.MsgSubmitTx"; + value: Uint8Array; +} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTxAmino { + /** owner is the owner address of the interchain account. */ + owner?: string; + /** connection_id is the id of the connection. */ + connection_id?: string; + /** msg is the bytes of the transaction msg to send. */ + msg?: AnyAmino; +} +export interface MsgSubmitTxAminoMsg { + type: "/regen.intertx.v1.MsgSubmitTx"; + value: MsgSubmitTxAmino; +} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTxSDKType { + owner: string; + connection_id: string; + msg?: AnySDKType; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponse { +} +export interface MsgSubmitTxResponseProtoMsg { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse"; + value: Uint8Array; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponseAmino { +} +export interface MsgSubmitTxResponseAminoMsg { + type: "/regen.intertx.v1.MsgSubmitTxResponse"; + value: MsgSubmitTxResponseAmino; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponseSDKType { +} +export declare const MsgRegisterAccount: { + typeUrl: string; + encode(message: MsgRegisterAccount, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount; + fromPartial(object: Partial): MsgRegisterAccount; + fromAmino(object: MsgRegisterAccountAmino): MsgRegisterAccount; + toAmino(message: MsgRegisterAccount): MsgRegisterAccountAmino; + fromAminoMsg(object: MsgRegisterAccountAminoMsg): MsgRegisterAccount; + fromProtoMsg(message: MsgRegisterAccountProtoMsg): MsgRegisterAccount; + toProto(message: MsgRegisterAccount): Uint8Array; + toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg; +}; +export declare const MsgRegisterAccountResponse: { + typeUrl: string; + encode(_: MsgRegisterAccountResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse; + fromPartial(_: Partial): MsgRegisterAccountResponse; + fromAmino(_: MsgRegisterAccountResponseAmino): MsgRegisterAccountResponse; + toAmino(_: MsgRegisterAccountResponse): MsgRegisterAccountResponseAmino; + fromAminoMsg(object: MsgRegisterAccountResponseAminoMsg): MsgRegisterAccountResponse; + fromProtoMsg(message: MsgRegisterAccountResponseProtoMsg): MsgRegisterAccountResponse; + toProto(message: MsgRegisterAccountResponse): Uint8Array; + toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg; +}; +export declare const MsgSubmitTx: { + typeUrl: string; + encode(message: MsgSubmitTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx; + fromPartial(object: Partial): MsgSubmitTx; + fromAmino(object: MsgSubmitTxAmino): MsgSubmitTx; + toAmino(message: MsgSubmitTx): MsgSubmitTxAmino; + fromAminoMsg(object: MsgSubmitTxAminoMsg): MsgSubmitTx; + fromProtoMsg(message: MsgSubmitTxProtoMsg): MsgSubmitTx; + toProto(message: MsgSubmitTx): Uint8Array; + toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg; +}; +export declare const MsgSubmitTxResponse: { + typeUrl: string; + encode(_: MsgSubmitTxResponse, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse; + fromPartial(_: Partial): MsgSubmitTxResponse; + fromAmino(_: MsgSubmitTxResponseAmino): MsgSubmitTxResponse; + toAmino(_: MsgSubmitTxResponse): MsgSubmitTxResponseAmino; + fromAminoMsg(object: MsgSubmitTxResponseAminoMsg): MsgSubmitTxResponse; + fromProtoMsg(message: MsgSubmitTxResponseProtoMsg): MsgSubmitTxResponse; + toProto(message: MsgSubmitTxResponse): Uint8Array; + toProtoMsg(message: MsgSubmitTxResponse): MsgSubmitTxResponseProtoMsg; +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.js b/packages/api/dist/regen/intertx/v1/tx.js new file mode 100644 index 00000000..15f777c3 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.js @@ -0,0 +1,280 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgSubmitTxResponse = exports.MsgSubmitTx = exports.MsgRegisterAccountResponse = exports.MsgRegisterAccount = void 0; +//@ts-nocheck +const any_1 = require("../../../google/protobuf/any"); +const binary_1 = require("../../../binary"); +function createBaseMsgRegisterAccount() { + return { + owner: "", + connectionId: "", + version: "" + }; +} +exports.MsgRegisterAccount = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.version !== "") { + writer.uint32(26).string(message.version); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgRegisterAccount(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.version = object.version ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseMsgRegisterAccount(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.version = message.version === "" ? undefined : message.version; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRegisterAccount.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRegisterAccount.decode(message.value); + }, + toProto(message) { + return exports.MsgRegisterAccount.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: exports.MsgRegisterAccount.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterAccountResponse() { + return {}; +} +exports.MsgRegisterAccountResponse = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgRegisterAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgRegisterAccountResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgRegisterAccountResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + value: exports.MsgRegisterAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTx() { + return { + owner: "", + connectionId: "", + msg: undefined + }; +} +exports.MsgSubmitTx = { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.msg !== undefined) { + any_1.Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.msg = any_1.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMsgSubmitTx(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.msg = object.msg !== undefined && object.msg !== null ? any_1.Any.fromPartial(object.msg) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseMsgSubmitTx(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.msg !== undefined && object.msg !== null) { + message.msg = any_1.Any.fromAmino(object.msg); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.msg = message.msg ? any_1.Any.toAmino(message.msg) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSubmitTx.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: exports.MsgSubmitTx.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTxResponse() { + return {}; +} +exports.MsgSubmitTxResponse = { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + fromAmino(_) { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.MsgSubmitTxResponse.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.MsgSubmitTxResponse.decode(message.value); + }, + toProto(message) { + return exports.MsgSubmitTxResponse.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + value: exports.MsgSubmitTxResponse.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.registry.d.ts b/packages/api/dist/regen/intertx/v1/tx.registry.d.ts new file mode 100644 index 00000000..d8a7cf1a --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.registry.d.ts @@ -0,0 +1,36 @@ +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export declare const registry: ReadonlyArray<[string, GeneratedType]>; +export declare const load: (protoRegistry: Registry) => void; +export declare const MessageComposer: { + encoded: { + registerAccount(value: MsgRegisterAccount): { + typeUrl: string; + value: Uint8Array; + }; + submitTx(value: MsgSubmitTx): { + typeUrl: string; + value: Uint8Array; + }; + }; + withTypeUrl: { + registerAccount(value: MsgRegisterAccount): { + typeUrl: string; + value: MsgRegisterAccount; + }; + submitTx(value: MsgSubmitTx): { + typeUrl: string; + value: MsgSubmitTx; + }; + }; + fromPartial: { + registerAccount(value: MsgRegisterAccount): { + typeUrl: string; + value: MsgRegisterAccount; + }; + submitTx(value: MsgSubmitTx): { + typeUrl: string; + value: MsgSubmitTx; + }; + }; +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.registry.js b/packages/api/dist/regen/intertx/v1/tx.registry.js new file mode 100644 index 00000000..782984cc --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.registry.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageComposer = exports.load = exports.registry = void 0; +const tx_1 = require("./tx"); +exports.registry = [["/regen.intertx.v1.MsgRegisterAccount", tx_1.MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", tx_1.MsgSubmitTx]]; +const load = (protoRegistry) => { + exports.registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +exports.load = load; +exports.MessageComposer = { + encoded: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: tx_1.MsgRegisterAccount.encode(value).finish() + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: tx_1.MsgSubmitTx.encode(value).finish() + }; + } + }, + withTypeUrl: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value + }; + } + }, + fromPartial: { + registerAccount(value) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: tx_1.MsgRegisterAccount.fromPartial(value) + }; + }, + submitTx(value) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: tx_1.MsgSubmitTx.fromPartial(value) + }; + } + } +}; diff --git a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts new file mode 100644 index 00000000..43ba16a3 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts @@ -0,0 +1,15 @@ +import { Rpc } from "../../../helpers"; +import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; +/** Msg defines the intertx Msg service. */ +export interface Msg { + /** Register defines a rpc handler for MsgRegisterAccount */ + registerAccount(request: MsgRegisterAccount): Promise; + /** SubmitTx defines a rpc handler for MsgSubmitTx */ + submitTx(request: MsgSubmitTx): Promise; +} +export declare class MsgClientImpl implements Msg { + private readonly rpc; + constructor(rpc: Rpc); + registerAccount(request: MsgRegisterAccount): Promise; + submitTx(request: MsgSubmitTx): Promise; +} diff --git a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js new file mode 100644 index 00000000..50c1a491 --- /dev/null +++ b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MsgClientImpl = void 0; +const binary_1 = require("../../../binary"); +const tx_1 = require("./tx"); +class MsgClientImpl { + rpc; + constructor(rpc) { + this.rpc = rpc; + this.registerAccount = this.registerAccount.bind(this); + this.submitTx = this.submitTx.bind(this); + } + registerAccount(request) { + const data = tx_1.MsgRegisterAccount.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); + return promise.then(data => tx_1.MsgRegisterAccountResponse.decode(new binary_1.BinaryReader(data))); + } + submitTx(request) { + const data = tx_1.MsgSubmitTx.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); + return promise.then(data => tx_1.MsgSubmitTxResponse.decode(new binary_1.BinaryReader(data))); + } +} +exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/lcd.d.ts b/packages/api/dist/regen/lcd.d.ts new file mode 100644 index 00000000..80ef431f --- /dev/null +++ b/packages/api/dist/regen/lcd.d.ts @@ -0,0 +1,66 @@ +export declare const createLCDClient: ({ restEndpoint }: { + restEndpoint: string; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + }; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; + }; + base: { + node: { + v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; + }; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + }; + group: { + v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + mint: { + v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + params: { + v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; + }; + tx: { + v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; + }; + }; + regen: { + data: { + v1: import("./data/v1/query.lcd").LCDQueryClient; + }; + ecocredit: { + basket: { + v1: import("./ecocredit/basket/v1/query.lcd").LCDQueryClient; + }; + marketplace: { + v1: import("./ecocredit/marketplace/v1/query.lcd").LCDQueryClient; + }; + v1: import("./ecocredit/v1/query.lcd").LCDQueryClient; + v1alpha1: import("./ecocredit/v1alpha1/query.lcd").LCDQueryClient; + }; + intertx: { + v1: import("./intertx/v1/query.lcd").LCDQueryClient; + }; + }; +}>; diff --git a/packages/api/dist/regen/lcd.js b/packages/api/dist/regen/lcd.js new file mode 100644 index 00000000..3ce63992 --- /dev/null +++ b/packages/api/dist/regen/lcd.js @@ -0,0 +1,138 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createLCDClient = void 0; +//@ts-nocheck +const lcd_1 = require("@cosmology/lcd"); +const createLCDClient = async ({ restEndpoint }) => { + const requestClient = new lcd_1.LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.lcd")))).LCDQueryClient({ + requestClient + }), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.lcd")))).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + }, + regen: { + data: { + v1: new (await Promise.resolve().then(() => __importStar(require("./data/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + ecocredit: { + basket: { + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + marketplace: { + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/query.lcd")))).LCDQueryClient({ + requestClient + }), + v1alpha1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/query.lcd")))).LCDQueryClient({ + requestClient + }) + }, + intertx: { + v1: new (await Promise.resolve().then(() => __importStar(require("./intertx/v1/query.lcd")))).LCDQueryClient({ + requestClient + }) + } + } + }; +}; +exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/regen/rpc.query.d.ts b/packages/api/dist/regen/rpc.query.d.ts new file mode 100644 index 00000000..83009b0d --- /dev/null +++ b/packages/api/dist/regen/rpc.query.d.ts @@ -0,0 +1,235 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +export declare const createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | HttpEndpoint; +}) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; + }; + authz: { + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; + }; + bank: { + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; + }; + }; + base: { + node: { + v1beta1: { + config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; + }; + }; + }; + distribution: { + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + feegrant: { + v1beta1: { + allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; + allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; + allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; + }; + }; + gov: { + v1: { + proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; + }; + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; + }; + group: { + v1: { + groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; + groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; + groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; + groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; + groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; + groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; + proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; + proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; + voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; + votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; + votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; + groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; + tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; + }; + }; + mint: { + v1beta1: { + params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; + inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; + annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; + }; + }; + params: { + v1beta1: { + params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; + subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; + }; + }; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; + }; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; + }; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; + regen: { + data: { + v1: { + anchorByIRI(request: import("./data/v1/query").QueryAnchorByIRIRequest): Promise; + anchorByHash(request: import("./data/v1/query").QueryAnchorByHashRequest): Promise; + attestationsByAttestor(request: import("./data/v1/query").QueryAttestationsByAttestorRequest): Promise; + attestationsByIRI(request: import("./data/v1/query").QueryAttestationsByIRIRequest): Promise; + attestationsByHash(request: import("./data/v1/query").QueryAttestationsByHashRequest): Promise; + resolver(request: import("./data/v1/query").QueryResolverRequest): Promise; + resolversByIRI(request: import("./data/v1/query").QueryResolversByIRIRequest): Promise; + resolversByHash(request: import("./data/v1/query").QueryResolversByHashRequest): Promise; + resolversByURL(request: import("./data/v1/query").QueryResolversByURLRequest): Promise; + convertIRIToHash(request: import("./data/v1/query").ConvertIRIToHashRequest): Promise; + convertHashToIRI(request: import("./data/v1/query").ConvertHashToIRIRequest): Promise; + }; + }; + ecocredit: { + basket: { + v1: { + basket(request: import("./ecocredit/basket/v1/query").QueryBasketRequest): Promise; + baskets(request?: import("./ecocredit/basket/v1/query").QueryBasketsRequest): Promise; + basketBalances(request: import("./ecocredit/basket/v1/query").QueryBasketBalancesRequest): Promise; + basketBalance(request: import("./ecocredit/basket/v1/query").QueryBasketBalanceRequest): Promise; + basketFee(request?: import("./ecocredit/basket/v1/query").QueryBasketFeeRequest): Promise; + }; + }; + marketplace: { + v1: { + sellOrder(request: import("./ecocredit/marketplace/v1/query").QuerySellOrderRequest): Promise; + sellOrders(request?: import("./ecocredit/marketplace/v1/query").QuerySellOrdersRequest): Promise; + sellOrdersByBatch(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersByBatchRequest): Promise; + sellOrdersBySeller(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersBySellerRequest): Promise; + allowedDenoms(request?: import("./ecocredit/marketplace/v1/query").QueryAllowedDenomsRequest): Promise; + }; + }; + v1: { + classes(request?: import("./ecocredit/v1/query").QueryClassesRequest): Promise; + classesByAdmin(request: import("./ecocredit/v1/query").QueryClassesByAdminRequest): Promise; + class(request: import("./ecocredit/v1/query").QueryClassRequest): Promise; + classIssuers(request: import("./ecocredit/v1/query").QueryClassIssuersRequest): Promise; + projects(request?: import("./ecocredit/v1/query").QueryProjectsRequest): Promise; + projectsByClass(request: import("./ecocredit/v1/query").QueryProjectsByClassRequest): Promise; + projectsByReferenceId(request: import("./ecocredit/v1/query").QueryProjectsByReferenceIdRequest): Promise; + projectsByAdmin(request: import("./ecocredit/v1/query").QueryProjectsByAdminRequest): Promise; + project(request: import("./ecocredit/v1/query").QueryProjectRequest): Promise; + batches(request?: import("./ecocredit/v1/query").QueryBatchesRequest): Promise; + batchesByIssuer(request: import("./ecocredit/v1/query").QueryBatchesByIssuerRequest): Promise; + batchesByClass(request: import("./ecocredit/v1/query").QueryBatchesByClassRequest): Promise; + batchesByProject(request: import("./ecocredit/v1/query").QueryBatchesByProjectRequest): Promise; + batch(request: import("./ecocredit/v1/query").QueryBatchRequest): Promise; + balance(request: import("./ecocredit/v1/query").QueryBalanceRequest): Promise; + balances(request: import("./ecocredit/v1/query").QueryBalancesRequest): Promise; + balancesByBatch(request: import("./ecocredit/v1/query").QueryBalancesByBatchRequest): Promise; + allBalances(request?: import("./ecocredit/v1/query").QueryAllBalancesRequest): Promise; + supply(request: import("./ecocredit/v1/query").QuerySupplyRequest): Promise; + creditTypes(request?: import("./ecocredit/v1/query").QueryCreditTypesRequest): Promise; + params(request?: import("./ecocredit/v1/query").QueryParamsRequest): Promise; + creditType(request: import("./ecocredit/v1/query").QueryCreditTypeRequest): Promise; + classCreatorAllowlist(request?: import("./ecocredit/v1/query").QueryClassCreatorAllowlistRequest): Promise; + allowedClassCreators(request?: import("./ecocredit/v1/query").QueryAllowedClassCreatorsRequest): Promise; + classFee(request?: import("./ecocredit/v1/query").QueryClassFeeRequest): Promise; + allowedBridgeChains(request?: import("./ecocredit/v1/query").QueryAllowedBridgeChainsRequest): Promise; + }; + v1alpha1: { + classes(request?: import("./ecocredit/v1alpha1/query").QueryClassesRequest): Promise; + classInfo(request: import("./ecocredit/v1alpha1/query").QueryClassInfoRequest): Promise; + batches(request: import("./ecocredit/v1alpha1/query").QueryBatchesRequest): Promise; + batchInfo(request: import("./ecocredit/v1alpha1/query").QueryBatchInfoRequest): Promise; + balance(request: import("./ecocredit/v1alpha1/query").QueryBalanceRequest): Promise; + supply(request: import("./ecocredit/v1alpha1/query").QuerySupplyRequest): Promise; + creditTypes(request?: import("./ecocredit/v1alpha1/query").QueryCreditTypesRequest): Promise; + params(request?: import("./ecocredit/v1alpha1/query").QueryParamsRequest): Promise; + }; + }; + intertx: { + v1: { + interchainAccount(request: import("./intertx/v1/query").QueryInterchainAccountRequest): Promise; + }; + }; + }; +}>; diff --git a/packages/api/dist/regen/rpc.query.js b/packages/api/dist/regen/rpc.query.js new file mode 100644 index 00000000..3e4719f0 --- /dev/null +++ b/packages/api/dist/regen/rpc.query.js @@ -0,0 +1,98 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCQueryClient = void 0; +//@ts-nocheck +const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); +const stargate_1 = require("@cosmjs/stargate"); +const createRPCQueryClient = async ({ rpcEndpoint }) => { + const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); + const client = new stargate_1.QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + gov: { + v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + group: { + v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) + } + }, + regen: { + data: { + v1: (await Promise.resolve().then(() => __importStar(require("./data/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + ecocredit: { + basket: { + v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + marketplace: { + v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/query.rpc.Query")))).createRpcQueryExtension(client), + v1alpha1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/query.rpc.Query")))).createRpcQueryExtension(client) + }, + intertx: { + v1: (await Promise.resolve().then(() => __importStar(require("./intertx/v1/query.rpc.Query")))).createRpcQueryExtension(client) + } + } + }; +}; +exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/regen/rpc.tx.d.ts b/packages/api/dist/regen/rpc.tx.d.ts new file mode 100644 index 00000000..4b07759c --- /dev/null +++ b/packages/api/dist/regen/rpc.tx.d.ts @@ -0,0 +1,53 @@ +import { Rpc } from "../helpers"; +export declare const createRPCMsgClient: ({ rpc }: { + rpc: Rpc; +}) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + feegrant: { + v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + group: { + v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + vesting: { + v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + regen: { + data: { + v1: import("./data/v1/tx.rpc.msg").MsgClientImpl; + }; + ecocredit: { + basket: { + v1: import("./ecocredit/basket/v1/tx.rpc.msg").MsgClientImpl; + }; + marketplace: { + v1: import("./ecocredit/marketplace/v1/tx.rpc.msg").MsgClientImpl; + }; + v1: import("./ecocredit/v1/tx.rpc.msg").MsgClientImpl; + v1alpha1: import("./ecocredit/v1alpha1/tx.rpc.msg").MsgClientImpl; + }; + intertx: { + v1: import("./intertx/v1/tx.rpc.msg").MsgClientImpl; + }; + }; +}>; diff --git a/packages/api/dist/regen/rpc.tx.js b/packages/api/dist/regen/rpc.tx.js new file mode 100644 index 00000000..7ecb8250 --- /dev/null +++ b/packages/api/dist/regen/rpc.tx.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRPCMsgClient = void 0; +const createRPCMsgClient = async ({ rpc }) => ({ + cosmos: { + authz: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + gov: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + group: { + v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + }, + regen: { + data: { + v1: new (await Promise.resolve().then(() => __importStar(require("./data/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + ecocredit: { + basket: { + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + marketplace: { + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/tx.rpc.msg")))).MsgClientImpl(rpc), + v1alpha1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/tx.rpc.msg")))).MsgClientImpl(rpc) + }, + intertx: { + v1: new (await Promise.resolve().then(() => __importStar(require("./intertx/v1/tx.rpc.msg")))).MsgClientImpl(rpc) + } + } +}); +exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/tendermint/abci/types.d.ts b/packages/api/dist/tendermint/abci/types.d.ts new file mode 100644 index 00000000..ad6f91f1 --- /dev/null +++ b/packages/api/dist/tendermint/abci/types.d.ts @@ -0,0 +1,1913 @@ +import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; +import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; +import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; +import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +export declare enum CheckTxType { + NEW = 0, + RECHECK = 1, + UNRECOGNIZED = -1 +} +export declare const CheckTxTypeSDKType: typeof CheckTxType; +export declare const CheckTxTypeAmino: typeof CheckTxType; +export declare function checkTxTypeFromJSON(object: any): CheckTxType; +export declare function checkTxTypeToJSON(object: CheckTxType): string; +export declare enum ResponseOfferSnapshot_Result { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + UNKNOWN = 0, + /** ACCEPT - Snapshot accepted, apply chunks */ + ACCEPT = 1, + /** ABORT - Abort all snapshot restoration */ + ABORT = 2, + /** REJECT - Reject this specific snapshot, try others */ + REJECT = 3, + /** REJECT_FORMAT - Reject all snapshots of this format, try others */ + REJECT_FORMAT = 4, + /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ + REJECT_SENDER = 5, + UNRECOGNIZED = -1 +} +export declare const ResponseOfferSnapshot_ResultSDKType: typeof ResponseOfferSnapshot_Result; +export declare const ResponseOfferSnapshot_ResultAmino: typeof ResponseOfferSnapshot_Result; +export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result; +export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string; +export declare enum ResponseApplySnapshotChunk_Result { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + UNKNOWN = 0, + /** ACCEPT - Chunk successfully accepted */ + ACCEPT = 1, + /** ABORT - Abort all snapshot restoration */ + ABORT = 2, + /** RETRY - Retry chunk (combine with refetch and reject) */ + RETRY = 3, + /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ + RETRY_SNAPSHOT = 4, + /** REJECT_SNAPSHOT - Reject this snapshot, try others */ + REJECT_SNAPSHOT = 5, + UNRECOGNIZED = -1 +} +export declare const ResponseApplySnapshotChunk_ResultSDKType: typeof ResponseApplySnapshotChunk_Result; +export declare const ResponseApplySnapshotChunk_ResultAmino: typeof ResponseApplySnapshotChunk_Result; +export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result; +export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string; +export declare enum ResponseProcessProposal_ProposalStatus { + UNKNOWN = 0, + ACCEPT = 1, + REJECT = 2, + UNRECOGNIZED = -1 +} +export declare const ResponseProcessProposal_ProposalStatusSDKType: typeof ResponseProcessProposal_ProposalStatus; +export declare const ResponseProcessProposal_ProposalStatusAmino: typeof ResponseProcessProposal_ProposalStatus; +export declare function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus; +export declare function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string; +export declare enum MisbehaviorType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2, + UNRECOGNIZED = -1 +} +export declare const MisbehaviorTypeSDKType: typeof MisbehaviorType; +export declare const MisbehaviorTypeAmino: typeof MisbehaviorType; +export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType; +export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string; +export interface Request { + echo?: RequestEcho; + flush?: RequestFlush; + info?: RequestInfo; + initChain?: RequestInitChain; + query?: RequestQuery; + beginBlock?: RequestBeginBlock; + checkTx?: RequestCheckTx; + deliverTx?: RequestDeliverTx; + endBlock?: RequestEndBlock; + commit?: RequestCommit; + listSnapshots?: RequestListSnapshots; + offerSnapshot?: RequestOfferSnapshot; + loadSnapshotChunk?: RequestLoadSnapshotChunk; + applySnapshotChunk?: RequestApplySnapshotChunk; + prepareProposal?: RequestPrepareProposal; + processProposal?: RequestProcessProposal; +} +export interface RequestProtoMsg { + typeUrl: "/tendermint.abci.Request"; + value: Uint8Array; +} +export interface RequestAmino { + echo?: RequestEchoAmino; + flush?: RequestFlushAmino; + info?: RequestInfoAmino; + init_chain?: RequestInitChainAmino; + query?: RequestQueryAmino; + begin_block?: RequestBeginBlockAmino; + check_tx?: RequestCheckTxAmino; + deliver_tx?: RequestDeliverTxAmino; + end_block?: RequestEndBlockAmino; + commit?: RequestCommitAmino; + list_snapshots?: RequestListSnapshotsAmino; + offer_snapshot?: RequestOfferSnapshotAmino; + load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; + apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; + prepare_proposal?: RequestPrepareProposalAmino; + process_proposal?: RequestProcessProposalAmino; +} +export interface RequestAminoMsg { + type: "/tendermint.abci.Request"; + value: RequestAmino; +} +export interface RequestSDKType { + echo?: RequestEchoSDKType; + flush?: RequestFlushSDKType; + info?: RequestInfoSDKType; + init_chain?: RequestInitChainSDKType; + query?: RequestQuerySDKType; + begin_block?: RequestBeginBlockSDKType; + check_tx?: RequestCheckTxSDKType; + deliver_tx?: RequestDeliverTxSDKType; + end_block?: RequestEndBlockSDKType; + commit?: RequestCommitSDKType; + list_snapshots?: RequestListSnapshotsSDKType; + offer_snapshot?: RequestOfferSnapshotSDKType; + load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; + apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; + prepare_proposal?: RequestPrepareProposalSDKType; + process_proposal?: RequestProcessProposalSDKType; +} +export interface RequestEcho { + message: string; +} +export interface RequestEchoProtoMsg { + typeUrl: "/tendermint.abci.RequestEcho"; + value: Uint8Array; +} +export interface RequestEchoAmino { + message?: string; +} +export interface RequestEchoAminoMsg { + type: "/tendermint.abci.RequestEcho"; + value: RequestEchoAmino; +} +export interface RequestEchoSDKType { + message: string; +} +export interface RequestFlush { +} +export interface RequestFlushProtoMsg { + typeUrl: "/tendermint.abci.RequestFlush"; + value: Uint8Array; +} +export interface RequestFlushAmino { +} +export interface RequestFlushAminoMsg { + type: "/tendermint.abci.RequestFlush"; + value: RequestFlushAmino; +} +export interface RequestFlushSDKType { +} +export interface RequestInfo { + version: string; + blockVersion: bigint; + p2pVersion: bigint; + abciVersion: string; +} +export interface RequestInfoProtoMsg { + typeUrl: "/tendermint.abci.RequestInfo"; + value: Uint8Array; +} +export interface RequestInfoAmino { + version?: string; + block_version?: string; + p2p_version?: string; + abci_version?: string; +} +export interface RequestInfoAminoMsg { + type: "/tendermint.abci.RequestInfo"; + value: RequestInfoAmino; +} +export interface RequestInfoSDKType { + version: string; + block_version: bigint; + p2p_version: bigint; + abci_version: string; +} +export interface RequestInitChain { + time: Date; + chainId: string; + consensusParams?: ConsensusParams; + validators: ValidatorUpdate[]; + appStateBytes: Uint8Array; + initialHeight: bigint; +} +export interface RequestInitChainProtoMsg { + typeUrl: "/tendermint.abci.RequestInitChain"; + value: Uint8Array; +} +export interface RequestInitChainAmino { + time?: string; + chain_id?: string; + consensus_params?: ConsensusParamsAmino; + validators?: ValidatorUpdateAmino[]; + app_state_bytes?: string; + initial_height?: string; +} +export interface RequestInitChainAminoMsg { + type: "/tendermint.abci.RequestInitChain"; + value: RequestInitChainAmino; +} +export interface RequestInitChainSDKType { + time: Date; + chain_id: string; + consensus_params?: ConsensusParamsSDKType; + validators: ValidatorUpdateSDKType[]; + app_state_bytes: Uint8Array; + initial_height: bigint; +} +export interface RequestQuery { + data: Uint8Array; + path: string; + height: bigint; + prove: boolean; +} +export interface RequestQueryProtoMsg { + typeUrl: "/tendermint.abci.RequestQuery"; + value: Uint8Array; +} +export interface RequestQueryAmino { + data?: string; + path?: string; + height?: string; + prove?: boolean; +} +export interface RequestQueryAminoMsg { + type: "/tendermint.abci.RequestQuery"; + value: RequestQueryAmino; +} +export interface RequestQuerySDKType { + data: Uint8Array; + path: string; + height: bigint; + prove: boolean; +} +export interface RequestBeginBlock { + hash: Uint8Array; + header: Header; + lastCommitInfo: CommitInfo; + byzantineValidators: Misbehavior[]; +} +export interface RequestBeginBlockProtoMsg { + typeUrl: "/tendermint.abci.RequestBeginBlock"; + value: Uint8Array; +} +export interface RequestBeginBlockAmino { + hash?: string; + header?: HeaderAmino; + last_commit_info?: CommitInfoAmino; + byzantine_validators?: MisbehaviorAmino[]; +} +export interface RequestBeginBlockAminoMsg { + type: "/tendermint.abci.RequestBeginBlock"; + value: RequestBeginBlockAmino; +} +export interface RequestBeginBlockSDKType { + hash: Uint8Array; + header: HeaderSDKType; + last_commit_info: CommitInfoSDKType; + byzantine_validators: MisbehaviorSDKType[]; +} +export interface RequestCheckTx { + tx: Uint8Array; + type: CheckTxType; +} +export interface RequestCheckTxProtoMsg { + typeUrl: "/tendermint.abci.RequestCheckTx"; + value: Uint8Array; +} +export interface RequestCheckTxAmino { + tx?: string; + type?: CheckTxType; +} +export interface RequestCheckTxAminoMsg { + type: "/tendermint.abci.RequestCheckTx"; + value: RequestCheckTxAmino; +} +export interface RequestCheckTxSDKType { + tx: Uint8Array; + type: CheckTxType; +} +export interface RequestDeliverTx { + tx: Uint8Array; +} +export interface RequestDeliverTxProtoMsg { + typeUrl: "/tendermint.abci.RequestDeliverTx"; + value: Uint8Array; +} +export interface RequestDeliverTxAmino { + tx?: string; +} +export interface RequestDeliverTxAminoMsg { + type: "/tendermint.abci.RequestDeliverTx"; + value: RequestDeliverTxAmino; +} +export interface RequestDeliverTxSDKType { + tx: Uint8Array; +} +export interface RequestEndBlock { + height: bigint; +} +export interface RequestEndBlockProtoMsg { + typeUrl: "/tendermint.abci.RequestEndBlock"; + value: Uint8Array; +} +export interface RequestEndBlockAmino { + height?: string; +} +export interface RequestEndBlockAminoMsg { + type: "/tendermint.abci.RequestEndBlock"; + value: RequestEndBlockAmino; +} +export interface RequestEndBlockSDKType { + height: bigint; +} +export interface RequestCommit { +} +export interface RequestCommitProtoMsg { + typeUrl: "/tendermint.abci.RequestCommit"; + value: Uint8Array; +} +export interface RequestCommitAmino { +} +export interface RequestCommitAminoMsg { + type: "/tendermint.abci.RequestCommit"; + value: RequestCommitAmino; +} +export interface RequestCommitSDKType { +} +/** lists available snapshots */ +export interface RequestListSnapshots { +} +export interface RequestListSnapshotsProtoMsg { + typeUrl: "/tendermint.abci.RequestListSnapshots"; + value: Uint8Array; +} +/** lists available snapshots */ +export interface RequestListSnapshotsAmino { +} +export interface RequestListSnapshotsAminoMsg { + type: "/tendermint.abci.RequestListSnapshots"; + value: RequestListSnapshotsAmino; +} +/** lists available snapshots */ +export interface RequestListSnapshotsSDKType { +} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshot { + /** snapshot offered by peers */ + snapshot?: Snapshot; + /** light client-verified app hash for snapshot height */ + appHash: Uint8Array; +} +export interface RequestOfferSnapshotProtoMsg { + typeUrl: "/tendermint.abci.RequestOfferSnapshot"; + value: Uint8Array; +} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshotAmino { + /** snapshot offered by peers */ + snapshot?: SnapshotAmino; + /** light client-verified app hash for snapshot height */ + app_hash?: string; +} +export interface RequestOfferSnapshotAminoMsg { + type: "/tendermint.abci.RequestOfferSnapshot"; + value: RequestOfferSnapshotAmino; +} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshotSDKType { + snapshot?: SnapshotSDKType; + app_hash: Uint8Array; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunk { + height: bigint; + format: number; + chunk: number; +} +export interface RequestLoadSnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; + value: Uint8Array; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunkAmino { + height?: string; + format?: number; + chunk?: number; +} +export interface RequestLoadSnapshotChunkAminoMsg { + type: "/tendermint.abci.RequestLoadSnapshotChunk"; + value: RequestLoadSnapshotChunkAmino; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunkSDKType { + height: bigint; + format: number; + chunk: number; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunk { + index: number; + chunk: Uint8Array; + sender: string; +} +export interface RequestApplySnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; + value: Uint8Array; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunkAmino { + index?: number; + chunk?: string; + sender?: string; +} +export interface RequestApplySnapshotChunkAminoMsg { + type: "/tendermint.abci.RequestApplySnapshotChunk"; + value: RequestApplySnapshotChunkAmino; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunkSDKType { + index: number; + chunk: Uint8Array; + sender: string; +} +export interface RequestPrepareProposal { + /** the modified transactions cannot exceed this size. */ + maxTxBytes: bigint; + /** + * txs is an array of transactions that will be included in a block, + * sent to the app for possible modifications. + */ + txs: Uint8Array[]; + localLastCommit: ExtendedCommitInfo; + misbehavior: Misbehavior[]; + height: bigint; + time: Date; + nextValidatorsHash: Uint8Array; + /** address of the public key of the validator proposing the block. */ + proposerAddress: Uint8Array; +} +export interface RequestPrepareProposalProtoMsg { + typeUrl: "/tendermint.abci.RequestPrepareProposal"; + value: Uint8Array; +} +export interface RequestPrepareProposalAmino { + /** the modified transactions cannot exceed this size. */ + max_tx_bytes?: string; + /** + * txs is an array of transactions that will be included in a block, + * sent to the app for possible modifications. + */ + txs?: string[]; + local_last_commit?: ExtendedCommitInfoAmino; + misbehavior?: MisbehaviorAmino[]; + height?: string; + time?: string; + next_validators_hash?: string; + /** address of the public key of the validator proposing the block. */ + proposer_address?: string; +} +export interface RequestPrepareProposalAminoMsg { + type: "/tendermint.abci.RequestPrepareProposal"; + value: RequestPrepareProposalAmino; +} +export interface RequestPrepareProposalSDKType { + max_tx_bytes: bigint; + txs: Uint8Array[]; + local_last_commit: ExtendedCommitInfoSDKType; + misbehavior: MisbehaviorSDKType[]; + height: bigint; + time: Date; + next_validators_hash: Uint8Array; + proposer_address: Uint8Array; +} +export interface RequestProcessProposal { + txs: Uint8Array[]; + proposedLastCommit: CommitInfo; + misbehavior: Misbehavior[]; + /** hash is the merkle root hash of the fields of the proposed block. */ + hash: Uint8Array; + height: bigint; + time: Date; + nextValidatorsHash: Uint8Array; + /** address of the public key of the original proposer of the block. */ + proposerAddress: Uint8Array; +} +export interface RequestProcessProposalProtoMsg { + typeUrl: "/tendermint.abci.RequestProcessProposal"; + value: Uint8Array; +} +export interface RequestProcessProposalAmino { + txs?: string[]; + proposed_last_commit?: CommitInfoAmino; + misbehavior?: MisbehaviorAmino[]; + /** hash is the merkle root hash of the fields of the proposed block. */ + hash?: string; + height?: string; + time?: string; + next_validators_hash?: string; + /** address of the public key of the original proposer of the block. */ + proposer_address?: string; +} +export interface RequestProcessProposalAminoMsg { + type: "/tendermint.abci.RequestProcessProposal"; + value: RequestProcessProposalAmino; +} +export interface RequestProcessProposalSDKType { + txs: Uint8Array[]; + proposed_last_commit: CommitInfoSDKType; + misbehavior: MisbehaviorSDKType[]; + hash: Uint8Array; + height: bigint; + time: Date; + next_validators_hash: Uint8Array; + proposer_address: Uint8Array; +} +export interface Response { + exception?: ResponseException; + echo?: ResponseEcho; + flush?: ResponseFlush; + info?: ResponseInfo; + initChain?: ResponseInitChain; + query?: ResponseQuery; + beginBlock?: ResponseBeginBlock; + checkTx?: ResponseCheckTx; + deliverTx?: ResponseDeliverTx; + endBlock?: ResponseEndBlock; + commit?: ResponseCommit; + listSnapshots?: ResponseListSnapshots; + offerSnapshot?: ResponseOfferSnapshot; + loadSnapshotChunk?: ResponseLoadSnapshotChunk; + applySnapshotChunk?: ResponseApplySnapshotChunk; + prepareProposal?: ResponsePrepareProposal; + processProposal?: ResponseProcessProposal; +} +export interface ResponseProtoMsg { + typeUrl: "/tendermint.abci.Response"; + value: Uint8Array; +} +export interface ResponseAmino { + exception?: ResponseExceptionAmino; + echo?: ResponseEchoAmino; + flush?: ResponseFlushAmino; + info?: ResponseInfoAmino; + init_chain?: ResponseInitChainAmino; + query?: ResponseQueryAmino; + begin_block?: ResponseBeginBlockAmino; + check_tx?: ResponseCheckTxAmino; + deliver_tx?: ResponseDeliverTxAmino; + end_block?: ResponseEndBlockAmino; + commit?: ResponseCommitAmino; + list_snapshots?: ResponseListSnapshotsAmino; + offer_snapshot?: ResponseOfferSnapshotAmino; + load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; + apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; + prepare_proposal?: ResponsePrepareProposalAmino; + process_proposal?: ResponseProcessProposalAmino; +} +export interface ResponseAminoMsg { + type: "/tendermint.abci.Response"; + value: ResponseAmino; +} +export interface ResponseSDKType { + exception?: ResponseExceptionSDKType; + echo?: ResponseEchoSDKType; + flush?: ResponseFlushSDKType; + info?: ResponseInfoSDKType; + init_chain?: ResponseInitChainSDKType; + query?: ResponseQuerySDKType; + begin_block?: ResponseBeginBlockSDKType; + check_tx?: ResponseCheckTxSDKType; + deliver_tx?: ResponseDeliverTxSDKType; + end_block?: ResponseEndBlockSDKType; + commit?: ResponseCommitSDKType; + list_snapshots?: ResponseListSnapshotsSDKType; + offer_snapshot?: ResponseOfferSnapshotSDKType; + load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; + apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; + prepare_proposal?: ResponsePrepareProposalSDKType; + process_proposal?: ResponseProcessProposalSDKType; +} +/** nondeterministic */ +export interface ResponseException { + error: string; +} +export interface ResponseExceptionProtoMsg { + typeUrl: "/tendermint.abci.ResponseException"; + value: Uint8Array; +} +/** nondeterministic */ +export interface ResponseExceptionAmino { + error?: string; +} +export interface ResponseExceptionAminoMsg { + type: "/tendermint.abci.ResponseException"; + value: ResponseExceptionAmino; +} +/** nondeterministic */ +export interface ResponseExceptionSDKType { + error: string; +} +export interface ResponseEcho { + message: string; +} +export interface ResponseEchoProtoMsg { + typeUrl: "/tendermint.abci.ResponseEcho"; + value: Uint8Array; +} +export interface ResponseEchoAmino { + message?: string; +} +export interface ResponseEchoAminoMsg { + type: "/tendermint.abci.ResponseEcho"; + value: ResponseEchoAmino; +} +export interface ResponseEchoSDKType { + message: string; +} +export interface ResponseFlush { +} +export interface ResponseFlushProtoMsg { + typeUrl: "/tendermint.abci.ResponseFlush"; + value: Uint8Array; +} +export interface ResponseFlushAmino { +} +export interface ResponseFlushAminoMsg { + type: "/tendermint.abci.ResponseFlush"; + value: ResponseFlushAmino; +} +export interface ResponseFlushSDKType { +} +export interface ResponseInfo { + data: string; + version: string; + appVersion: bigint; + lastBlockHeight: bigint; + lastBlockAppHash: Uint8Array; +} +export interface ResponseInfoProtoMsg { + typeUrl: "/tendermint.abci.ResponseInfo"; + value: Uint8Array; +} +export interface ResponseInfoAmino { + data?: string; + version?: string; + app_version?: string; + last_block_height?: string; + last_block_app_hash?: string; +} +export interface ResponseInfoAminoMsg { + type: "/tendermint.abci.ResponseInfo"; + value: ResponseInfoAmino; +} +export interface ResponseInfoSDKType { + data: string; + version: string; + app_version: bigint; + last_block_height: bigint; + last_block_app_hash: Uint8Array; +} +export interface ResponseInitChain { + consensusParams?: ConsensusParams; + validators: ValidatorUpdate[]; + appHash: Uint8Array; +} +export interface ResponseInitChainProtoMsg { + typeUrl: "/tendermint.abci.ResponseInitChain"; + value: Uint8Array; +} +export interface ResponseInitChainAmino { + consensus_params?: ConsensusParamsAmino; + validators?: ValidatorUpdateAmino[]; + app_hash?: string; +} +export interface ResponseInitChainAminoMsg { + type: "/tendermint.abci.ResponseInitChain"; + value: ResponseInitChainAmino; +} +export interface ResponseInitChainSDKType { + consensus_params?: ConsensusParamsSDKType; + validators: ValidatorUpdateSDKType[]; + app_hash: Uint8Array; +} +export interface ResponseQuery { + code: number; + /** bytes data = 2; // use "value" instead. */ + log: string; + /** nondeterministic */ + info: string; + index: bigint; + key: Uint8Array; + value: Uint8Array; + proofOps?: ProofOps; + height: bigint; + codespace: string; +} +export interface ResponseQueryProtoMsg { + typeUrl: "/tendermint.abci.ResponseQuery"; + value: Uint8Array; +} +export interface ResponseQueryAmino { + code?: number; + /** bytes data = 2; // use "value" instead. */ + log?: string; + /** nondeterministic */ + info?: string; + index?: string; + key?: string; + value?: string; + proof_ops?: ProofOpsAmino; + height?: string; + codespace?: string; +} +export interface ResponseQueryAminoMsg { + type: "/tendermint.abci.ResponseQuery"; + value: ResponseQueryAmino; +} +export interface ResponseQuerySDKType { + code: number; + log: string; + info: string; + index: bigint; + key: Uint8Array; + value: Uint8Array; + proof_ops?: ProofOpsSDKType; + height: bigint; + codespace: string; +} +export interface ResponseBeginBlock { + events: Event[]; +} +export interface ResponseBeginBlockProtoMsg { + typeUrl: "/tendermint.abci.ResponseBeginBlock"; + value: Uint8Array; +} +export interface ResponseBeginBlockAmino { + events?: EventAmino[]; +} +export interface ResponseBeginBlockAminoMsg { + type: "/tendermint.abci.ResponseBeginBlock"; + value: ResponseBeginBlockAmino; +} +export interface ResponseBeginBlockSDKType { + events: EventSDKType[]; +} +export interface ResponseCheckTx { + code: number; + data: Uint8Array; + /** nondeterministic */ + log: string; + /** nondeterministic */ + info: string; + gasWanted: bigint; + gasUsed: bigint; + events: Event[]; + codespace: string; + sender: string; + priority: bigint; + /** + * mempool_error is set by CometBFT. + * ABCI applictions creating a ResponseCheckTX should not set mempool_error. + */ + mempoolError: string; +} +export interface ResponseCheckTxProtoMsg { + typeUrl: "/tendermint.abci.ResponseCheckTx"; + value: Uint8Array; +} +export interface ResponseCheckTxAmino { + code?: number; + data?: string; + /** nondeterministic */ + log?: string; + /** nondeterministic */ + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; + sender?: string; + priority?: string; + /** + * mempool_error is set by CometBFT. + * ABCI applictions creating a ResponseCheckTX should not set mempool_error. + */ + mempool_error?: string; +} +export interface ResponseCheckTxAminoMsg { + type: "/tendermint.abci.ResponseCheckTx"; + value: ResponseCheckTxAmino; +} +export interface ResponseCheckTxSDKType { + code: number; + data: Uint8Array; + log: string; + info: string; + gas_wanted: bigint; + gas_used: bigint; + events: EventSDKType[]; + codespace: string; + sender: string; + priority: bigint; + mempool_error: string; +} +export interface ResponseDeliverTx { + code: number; + data: Uint8Array; + /** nondeterministic */ + log: string; + /** nondeterministic */ + info: string; + gasWanted: bigint; + gasUsed: bigint; + events: Event[]; + codespace: string; +} +export interface ResponseDeliverTxProtoMsg { + typeUrl: "/tendermint.abci.ResponseDeliverTx"; + value: Uint8Array; +} +export interface ResponseDeliverTxAmino { + code?: number; + data?: string; + /** nondeterministic */ + log?: string; + /** nondeterministic */ + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; +} +export interface ResponseDeliverTxAminoMsg { + type: "/tendermint.abci.ResponseDeliverTx"; + value: ResponseDeliverTxAmino; +} +export interface ResponseDeliverTxSDKType { + code: number; + data: Uint8Array; + log: string; + info: string; + gas_wanted: bigint; + gas_used: bigint; + events: EventSDKType[]; + codespace: string; +} +export interface ResponseEndBlock { + validatorUpdates: ValidatorUpdate[]; + consensusParamUpdates?: ConsensusParams; + events: Event[]; +} +export interface ResponseEndBlockProtoMsg { + typeUrl: "/tendermint.abci.ResponseEndBlock"; + value: Uint8Array; +} +export interface ResponseEndBlockAmino { + validator_updates?: ValidatorUpdateAmino[]; + consensus_param_updates?: ConsensusParamsAmino; + events?: EventAmino[]; +} +export interface ResponseEndBlockAminoMsg { + type: "/tendermint.abci.ResponseEndBlock"; + value: ResponseEndBlockAmino; +} +export interface ResponseEndBlockSDKType { + validator_updates: ValidatorUpdateSDKType[]; + consensus_param_updates?: ConsensusParamsSDKType; + events: EventSDKType[]; +} +export interface ResponseCommit { + /** reserve 1 */ + data: Uint8Array; + retainHeight: bigint; +} +export interface ResponseCommitProtoMsg { + typeUrl: "/tendermint.abci.ResponseCommit"; + value: Uint8Array; +} +export interface ResponseCommitAmino { + /** reserve 1 */ + data?: string; + retain_height?: string; +} +export interface ResponseCommitAminoMsg { + type: "/tendermint.abci.ResponseCommit"; + value: ResponseCommitAmino; +} +export interface ResponseCommitSDKType { + data: Uint8Array; + retain_height: bigint; +} +export interface ResponseListSnapshots { + snapshots: Snapshot[]; +} +export interface ResponseListSnapshotsProtoMsg { + typeUrl: "/tendermint.abci.ResponseListSnapshots"; + value: Uint8Array; +} +export interface ResponseListSnapshotsAmino { + snapshots?: SnapshotAmino[]; +} +export interface ResponseListSnapshotsAminoMsg { + type: "/tendermint.abci.ResponseListSnapshots"; + value: ResponseListSnapshotsAmino; +} +export interface ResponseListSnapshotsSDKType { + snapshots: SnapshotSDKType[]; +} +export interface ResponseOfferSnapshot { + result: ResponseOfferSnapshot_Result; +} +export interface ResponseOfferSnapshotProtoMsg { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; + value: Uint8Array; +} +export interface ResponseOfferSnapshotAmino { + result?: ResponseOfferSnapshot_Result; +} +export interface ResponseOfferSnapshotAminoMsg { + type: "/tendermint.abci.ResponseOfferSnapshot"; + value: ResponseOfferSnapshotAmino; +} +export interface ResponseOfferSnapshotSDKType { + result: ResponseOfferSnapshot_Result; +} +export interface ResponseLoadSnapshotChunk { + chunk: Uint8Array; +} +export interface ResponseLoadSnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; + value: Uint8Array; +} +export interface ResponseLoadSnapshotChunkAmino { + chunk?: string; +} +export interface ResponseLoadSnapshotChunkAminoMsg { + type: "/tendermint.abci.ResponseLoadSnapshotChunk"; + value: ResponseLoadSnapshotChunkAmino; +} +export interface ResponseLoadSnapshotChunkSDKType { + chunk: Uint8Array; +} +export interface ResponseApplySnapshotChunk { + result: ResponseApplySnapshotChunk_Result; + /** Chunks to refetch and reapply */ + refetchChunks: number[]; + /** Chunk senders to reject and ban */ + rejectSenders: string[]; +} +export interface ResponseApplySnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; + value: Uint8Array; +} +export interface ResponseApplySnapshotChunkAmino { + result?: ResponseApplySnapshotChunk_Result; + /** Chunks to refetch and reapply */ + refetch_chunks?: number[]; + /** Chunk senders to reject and ban */ + reject_senders?: string[]; +} +export interface ResponseApplySnapshotChunkAminoMsg { + type: "/tendermint.abci.ResponseApplySnapshotChunk"; + value: ResponseApplySnapshotChunkAmino; +} +export interface ResponseApplySnapshotChunkSDKType { + result: ResponseApplySnapshotChunk_Result; + refetch_chunks: number[]; + reject_senders: string[]; +} +export interface ResponsePrepareProposal { + txs: Uint8Array[]; +} +export interface ResponsePrepareProposalProtoMsg { + typeUrl: "/tendermint.abci.ResponsePrepareProposal"; + value: Uint8Array; +} +export interface ResponsePrepareProposalAmino { + txs?: string[]; +} +export interface ResponsePrepareProposalAminoMsg { + type: "/tendermint.abci.ResponsePrepareProposal"; + value: ResponsePrepareProposalAmino; +} +export interface ResponsePrepareProposalSDKType { + txs: Uint8Array[]; +} +export interface ResponseProcessProposal { + status: ResponseProcessProposal_ProposalStatus; +} +export interface ResponseProcessProposalProtoMsg { + typeUrl: "/tendermint.abci.ResponseProcessProposal"; + value: Uint8Array; +} +export interface ResponseProcessProposalAmino { + status?: ResponseProcessProposal_ProposalStatus; +} +export interface ResponseProcessProposalAminoMsg { + type: "/tendermint.abci.ResponseProcessProposal"; + value: ResponseProcessProposalAmino; +} +export interface ResponseProcessProposalSDKType { + status: ResponseProcessProposal_ProposalStatus; +} +export interface CommitInfo { + round: number; + votes: VoteInfo[]; +} +export interface CommitInfoProtoMsg { + typeUrl: "/tendermint.abci.CommitInfo"; + value: Uint8Array; +} +export interface CommitInfoAmino { + round?: number; + votes?: VoteInfoAmino[]; +} +export interface CommitInfoAminoMsg { + type: "/tendermint.abci.CommitInfo"; + value: CommitInfoAmino; +} +export interface CommitInfoSDKType { + round: number; + votes: VoteInfoSDKType[]; +} +export interface ExtendedCommitInfo { + /** The round at which the block proposer decided in the previous height. */ + round: number; + /** + * List of validators' addresses in the last validator set with their voting + * information, including vote extensions. + */ + votes: ExtendedVoteInfo[]; +} +export interface ExtendedCommitInfoProtoMsg { + typeUrl: "/tendermint.abci.ExtendedCommitInfo"; + value: Uint8Array; +} +export interface ExtendedCommitInfoAmino { + /** The round at which the block proposer decided in the previous height. */ + round?: number; + /** + * List of validators' addresses in the last validator set with their voting + * information, including vote extensions. + */ + votes?: ExtendedVoteInfoAmino[]; +} +export interface ExtendedCommitInfoAminoMsg { + type: "/tendermint.abci.ExtendedCommitInfo"; + value: ExtendedCommitInfoAmino; +} +export interface ExtendedCommitInfoSDKType { + round: number; + votes: ExtendedVoteInfoSDKType[]; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface Event { + type: string; + attributes: EventAttribute[]; +} +export interface EventProtoMsg { + typeUrl: "/tendermint.abci.Event"; + value: Uint8Array; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface EventAmino { + type?: string; + attributes?: EventAttributeAmino[]; +} +export interface EventAminoMsg { + type: "/tendermint.abci.Event"; + value: EventAmino; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface EventSDKType { + type: string; + attributes: EventAttributeSDKType[]; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttribute { + key: string; + value: string; + /** nondeterministic */ + index: boolean; +} +export interface EventAttributeProtoMsg { + typeUrl: "/tendermint.abci.EventAttribute"; + value: Uint8Array; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttributeAmino { + key?: string; + value?: string; + /** nondeterministic */ + index?: boolean; +} +export interface EventAttributeAminoMsg { + type: "/tendermint.abci.EventAttribute"; + value: EventAttributeAmino; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttributeSDKType { + key: string; + value: string; + index: boolean; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResult { + height: bigint; + index: number; + tx: Uint8Array; + result: ResponseDeliverTx; +} +export interface TxResultProtoMsg { + typeUrl: "/tendermint.abci.TxResult"; + value: Uint8Array; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResultAmino { + height?: string; + index?: number; + tx?: string; + result?: ResponseDeliverTxAmino; +} +export interface TxResultAminoMsg { + type: "/tendermint.abci.TxResult"; + value: TxResultAmino; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResultSDKType { + height: bigint; + index: number; + tx: Uint8Array; + result: ResponseDeliverTxSDKType; +} +/** Validator */ +export interface Validator { + /** + * The first 20 bytes of SHA256(public key) + * PubKey pub_key = 2 [(gogoproto.nullable)=false]; + */ + address: Uint8Array; + /** The voting power */ + power: bigint; +} +export interface ValidatorProtoMsg { + typeUrl: "/tendermint.abci.Validator"; + value: Uint8Array; +} +/** Validator */ +export interface ValidatorAmino { + /** + * The first 20 bytes of SHA256(public key) + * PubKey pub_key = 2 [(gogoproto.nullable)=false]; + */ + address?: string; + /** The voting power */ + power?: string; +} +export interface ValidatorAminoMsg { + type: "/tendermint.abci.Validator"; + value: ValidatorAmino; +} +/** Validator */ +export interface ValidatorSDKType { + address: Uint8Array; + power: bigint; +} +/** ValidatorUpdate */ +export interface ValidatorUpdate { + pubKey: PublicKey; + power: bigint; +} +export interface ValidatorUpdateProtoMsg { + typeUrl: "/tendermint.abci.ValidatorUpdate"; + value: Uint8Array; +} +/** ValidatorUpdate */ +export interface ValidatorUpdateAmino { + pub_key?: PublicKeyAmino; + power?: string; +} +export interface ValidatorUpdateAminoMsg { + type: "/tendermint.abci.ValidatorUpdate"; + value: ValidatorUpdateAmino; +} +/** ValidatorUpdate */ +export interface ValidatorUpdateSDKType { + pub_key: PublicKeySDKType; + power: bigint; +} +/** VoteInfo */ +export interface VoteInfo { + validator: Validator; + signedLastBlock: boolean; +} +export interface VoteInfoProtoMsg { + typeUrl: "/tendermint.abci.VoteInfo"; + value: Uint8Array; +} +/** VoteInfo */ +export interface VoteInfoAmino { + validator?: ValidatorAmino; + signed_last_block?: boolean; +} +export interface VoteInfoAminoMsg { + type: "/tendermint.abci.VoteInfo"; + value: VoteInfoAmino; +} +/** VoteInfo */ +export interface VoteInfoSDKType { + validator: ValidatorSDKType; + signed_last_block: boolean; +} +export interface ExtendedVoteInfo { + validator: Validator; + signedLastBlock: boolean; + /** Reserved for future use */ + voteExtension: Uint8Array; +} +export interface ExtendedVoteInfoProtoMsg { + typeUrl: "/tendermint.abci.ExtendedVoteInfo"; + value: Uint8Array; +} +export interface ExtendedVoteInfoAmino { + validator?: ValidatorAmino; + signed_last_block?: boolean; + /** Reserved for future use */ + vote_extension?: string; +} +export interface ExtendedVoteInfoAminoMsg { + type: "/tendermint.abci.ExtendedVoteInfo"; + value: ExtendedVoteInfoAmino; +} +export interface ExtendedVoteInfoSDKType { + validator: ValidatorSDKType; + signed_last_block: boolean; + vote_extension: Uint8Array; +} +export interface Misbehavior { + type: MisbehaviorType; + /** The offending validator */ + validator: Validator; + /** The height when the offense occurred */ + height: bigint; + /** The corresponding time where the offense occurred */ + time: Date; + /** + * Total voting power of the validator set in case the ABCI application does + * not store historical validators. + * https://github.com/tendermint/tendermint/issues/4581 + */ + totalVotingPower: bigint; +} +export interface MisbehaviorProtoMsg { + typeUrl: "/tendermint.abci.Misbehavior"; + value: Uint8Array; +} +export interface MisbehaviorAmino { + type?: MisbehaviorType; + /** The offending validator */ + validator?: ValidatorAmino; + /** The height when the offense occurred */ + height?: string; + /** The corresponding time where the offense occurred */ + time?: string; + /** + * Total voting power of the validator set in case the ABCI application does + * not store historical validators. + * https://github.com/tendermint/tendermint/issues/4581 + */ + total_voting_power?: string; +} +export interface MisbehaviorAminoMsg { + type: "/tendermint.abci.Misbehavior"; + value: MisbehaviorAmino; +} +export interface MisbehaviorSDKType { + type: MisbehaviorType; + validator: ValidatorSDKType; + height: bigint; + time: Date; + total_voting_power: bigint; +} +export interface Snapshot { + /** The height at which the snapshot was taken */ + height: bigint; + /** The application-specific snapshot format */ + format: number; + /** Number of chunks in the snapshot */ + chunks: number; + /** Arbitrary snapshot hash, equal only if identical */ + hash: Uint8Array; + /** Arbitrary application metadata */ + metadata: Uint8Array; +} +export interface SnapshotProtoMsg { + typeUrl: "/tendermint.abci.Snapshot"; + value: Uint8Array; +} +export interface SnapshotAmino { + /** The height at which the snapshot was taken */ + height?: string; + /** The application-specific snapshot format */ + format?: number; + /** Number of chunks in the snapshot */ + chunks?: number; + /** Arbitrary snapshot hash, equal only if identical */ + hash?: string; + /** Arbitrary application metadata */ + metadata?: string; +} +export interface SnapshotAminoMsg { + type: "/tendermint.abci.Snapshot"; + value: SnapshotAmino; +} +export interface SnapshotSDKType { + height: bigint; + format: number; + chunks: number; + hash: Uint8Array; + metadata: Uint8Array; +} +export declare const Request: { + typeUrl: string; + encode(message: Request, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Request; + fromPartial(object: Partial): Request; + fromAmino(object: RequestAmino): Request; + toAmino(message: Request): RequestAmino; + fromAminoMsg(object: RequestAminoMsg): Request; + fromProtoMsg(message: RequestProtoMsg): Request; + toProto(message: Request): Uint8Array; + toProtoMsg(message: Request): RequestProtoMsg; +}; +export declare const RequestEcho: { + typeUrl: string; + encode(message: RequestEcho, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho; + fromPartial(object: Partial): RequestEcho; + fromAmino(object: RequestEchoAmino): RequestEcho; + toAmino(message: RequestEcho): RequestEchoAmino; + fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho; + fromProtoMsg(message: RequestEchoProtoMsg): RequestEcho; + toProto(message: RequestEcho): Uint8Array; + toProtoMsg(message: RequestEcho): RequestEchoProtoMsg; +}; +export declare const RequestFlush: { + typeUrl: string; + encode(_: RequestFlush, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush; + fromPartial(_: Partial): RequestFlush; + fromAmino(_: RequestFlushAmino): RequestFlush; + toAmino(_: RequestFlush): RequestFlushAmino; + fromAminoMsg(object: RequestFlushAminoMsg): RequestFlush; + fromProtoMsg(message: RequestFlushProtoMsg): RequestFlush; + toProto(message: RequestFlush): Uint8Array; + toProtoMsg(message: RequestFlush): RequestFlushProtoMsg; +}; +export declare const RequestInfo: { + typeUrl: string; + encode(message: RequestInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo; + fromPartial(object: Partial): RequestInfo; + fromAmino(object: RequestInfoAmino): RequestInfo; + toAmino(message: RequestInfo): RequestInfoAmino; + fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo; + fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo; + toProto(message: RequestInfo): Uint8Array; + toProtoMsg(message: RequestInfo): RequestInfoProtoMsg; +}; +export declare const RequestInitChain: { + typeUrl: string; + encode(message: RequestInitChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain; + fromPartial(object: Partial): RequestInitChain; + fromAmino(object: RequestInitChainAmino): RequestInitChain; + toAmino(message: RequestInitChain): RequestInitChainAmino; + fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain; + fromProtoMsg(message: RequestInitChainProtoMsg): RequestInitChain; + toProto(message: RequestInitChain): Uint8Array; + toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg; +}; +export declare const RequestQuery: { + typeUrl: string; + encode(message: RequestQuery, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery; + fromPartial(object: Partial): RequestQuery; + fromAmino(object: RequestQueryAmino): RequestQuery; + toAmino(message: RequestQuery): RequestQueryAmino; + fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery; + fromProtoMsg(message: RequestQueryProtoMsg): RequestQuery; + toProto(message: RequestQuery): Uint8Array; + toProtoMsg(message: RequestQuery): RequestQueryProtoMsg; +}; +export declare const RequestBeginBlock: { + typeUrl: string; + encode(message: RequestBeginBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock; + fromPartial(object: Partial): RequestBeginBlock; + fromAmino(object: RequestBeginBlockAmino): RequestBeginBlock; + toAmino(message: RequestBeginBlock): RequestBeginBlockAmino; + fromAminoMsg(object: RequestBeginBlockAminoMsg): RequestBeginBlock; + fromProtoMsg(message: RequestBeginBlockProtoMsg): RequestBeginBlock; + toProto(message: RequestBeginBlock): Uint8Array; + toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg; +}; +export declare const RequestCheckTx: { + typeUrl: string; + encode(message: RequestCheckTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx; + fromPartial(object: Partial): RequestCheckTx; + fromAmino(object: RequestCheckTxAmino): RequestCheckTx; + toAmino(message: RequestCheckTx): RequestCheckTxAmino; + fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx; + fromProtoMsg(message: RequestCheckTxProtoMsg): RequestCheckTx; + toProto(message: RequestCheckTx): Uint8Array; + toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg; +}; +export declare const RequestDeliverTx: { + typeUrl: string; + encode(message: RequestDeliverTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx; + fromPartial(object: Partial): RequestDeliverTx; + fromAmino(object: RequestDeliverTxAmino): RequestDeliverTx; + toAmino(message: RequestDeliverTx): RequestDeliverTxAmino; + fromAminoMsg(object: RequestDeliverTxAminoMsg): RequestDeliverTx; + fromProtoMsg(message: RequestDeliverTxProtoMsg): RequestDeliverTx; + toProto(message: RequestDeliverTx): Uint8Array; + toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg; +}; +export declare const RequestEndBlock: { + typeUrl: string; + encode(message: RequestEndBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock; + fromPartial(object: Partial): RequestEndBlock; + fromAmino(object: RequestEndBlockAmino): RequestEndBlock; + toAmino(message: RequestEndBlock): RequestEndBlockAmino; + fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock; + fromProtoMsg(message: RequestEndBlockProtoMsg): RequestEndBlock; + toProto(message: RequestEndBlock): Uint8Array; + toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg; +}; +export declare const RequestCommit: { + typeUrl: string; + encode(_: RequestCommit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit; + fromPartial(_: Partial): RequestCommit; + fromAmino(_: RequestCommitAmino): RequestCommit; + toAmino(_: RequestCommit): RequestCommitAmino; + fromAminoMsg(object: RequestCommitAminoMsg): RequestCommit; + fromProtoMsg(message: RequestCommitProtoMsg): RequestCommit; + toProto(message: RequestCommit): Uint8Array; + toProtoMsg(message: RequestCommit): RequestCommitProtoMsg; +}; +export declare const RequestListSnapshots: { + typeUrl: string; + encode(_: RequestListSnapshots, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots; + fromPartial(_: Partial): RequestListSnapshots; + fromAmino(_: RequestListSnapshotsAmino): RequestListSnapshots; + toAmino(_: RequestListSnapshots): RequestListSnapshotsAmino; + fromAminoMsg(object: RequestListSnapshotsAminoMsg): RequestListSnapshots; + fromProtoMsg(message: RequestListSnapshotsProtoMsg): RequestListSnapshots; + toProto(message: RequestListSnapshots): Uint8Array; + toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg; +}; +export declare const RequestOfferSnapshot: { + typeUrl: string; + encode(message: RequestOfferSnapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot; + fromPartial(object: Partial): RequestOfferSnapshot; + fromAmino(object: RequestOfferSnapshotAmino): RequestOfferSnapshot; + toAmino(message: RequestOfferSnapshot): RequestOfferSnapshotAmino; + fromAminoMsg(object: RequestOfferSnapshotAminoMsg): RequestOfferSnapshot; + fromProtoMsg(message: RequestOfferSnapshotProtoMsg): RequestOfferSnapshot; + toProto(message: RequestOfferSnapshot): Uint8Array; + toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg; +}; +export declare const RequestLoadSnapshotChunk: { + typeUrl: string; + encode(message: RequestLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk; + fromPartial(object: Partial): RequestLoadSnapshotChunk; + fromAmino(object: RequestLoadSnapshotChunkAmino): RequestLoadSnapshotChunk; + toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino; + fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk; + fromProtoMsg(message: RequestLoadSnapshotChunkProtoMsg): RequestLoadSnapshotChunk; + toProto(message: RequestLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg; +}; +export declare const RequestApplySnapshotChunk: { + typeUrl: string; + encode(message: RequestApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk; + fromPartial(object: Partial): RequestApplySnapshotChunk; + fromAmino(object: RequestApplySnapshotChunkAmino): RequestApplySnapshotChunk; + toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino; + fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk; + fromProtoMsg(message: RequestApplySnapshotChunkProtoMsg): RequestApplySnapshotChunk; + toProto(message: RequestApplySnapshotChunk): Uint8Array; + toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg; +}; +export declare const RequestPrepareProposal: { + typeUrl: string; + encode(message: RequestPrepareProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal; + fromPartial(object: Partial): RequestPrepareProposal; + fromAmino(object: RequestPrepareProposalAmino): RequestPrepareProposal; + toAmino(message: RequestPrepareProposal): RequestPrepareProposalAmino; + fromAminoMsg(object: RequestPrepareProposalAminoMsg): RequestPrepareProposal; + fromProtoMsg(message: RequestPrepareProposalProtoMsg): RequestPrepareProposal; + toProto(message: RequestPrepareProposal): Uint8Array; + toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg; +}; +export declare const RequestProcessProposal: { + typeUrl: string; + encode(message: RequestProcessProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal; + fromPartial(object: Partial): RequestProcessProposal; + fromAmino(object: RequestProcessProposalAmino): RequestProcessProposal; + toAmino(message: RequestProcessProposal): RequestProcessProposalAmino; + fromAminoMsg(object: RequestProcessProposalAminoMsg): RequestProcessProposal; + fromProtoMsg(message: RequestProcessProposalProtoMsg): RequestProcessProposal; + toProto(message: RequestProcessProposal): Uint8Array; + toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg; +}; +export declare const Response: { + typeUrl: string; + encode(message: Response, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Response; + fromPartial(object: Partial): Response; + fromAmino(object: ResponseAmino): Response; + toAmino(message: Response): ResponseAmino; + fromAminoMsg(object: ResponseAminoMsg): Response; + fromProtoMsg(message: ResponseProtoMsg): Response; + toProto(message: Response): Uint8Array; + toProtoMsg(message: Response): ResponseProtoMsg; +}; +export declare const ResponseException: { + typeUrl: string; + encode(message: ResponseException, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseException; + fromPartial(object: Partial): ResponseException; + fromAmino(object: ResponseExceptionAmino): ResponseException; + toAmino(message: ResponseException): ResponseExceptionAmino; + fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException; + fromProtoMsg(message: ResponseExceptionProtoMsg): ResponseException; + toProto(message: ResponseException): Uint8Array; + toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg; +}; +export declare const ResponseEcho: { + typeUrl: string; + encode(message: ResponseEcho, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho; + fromPartial(object: Partial): ResponseEcho; + fromAmino(object: ResponseEchoAmino): ResponseEcho; + toAmino(message: ResponseEcho): ResponseEchoAmino; + fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho; + fromProtoMsg(message: ResponseEchoProtoMsg): ResponseEcho; + toProto(message: ResponseEcho): Uint8Array; + toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg; +}; +export declare const ResponseFlush: { + typeUrl: string; + encode(_: ResponseFlush, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush; + fromPartial(_: Partial): ResponseFlush; + fromAmino(_: ResponseFlushAmino): ResponseFlush; + toAmino(_: ResponseFlush): ResponseFlushAmino; + fromAminoMsg(object: ResponseFlushAminoMsg): ResponseFlush; + fromProtoMsg(message: ResponseFlushProtoMsg): ResponseFlush; + toProto(message: ResponseFlush): Uint8Array; + toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg; +}; +export declare const ResponseInfo: { + typeUrl: string; + encode(message: ResponseInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo; + fromPartial(object: Partial): ResponseInfo; + fromAmino(object: ResponseInfoAmino): ResponseInfo; + toAmino(message: ResponseInfo): ResponseInfoAmino; + fromAminoMsg(object: ResponseInfoAminoMsg): ResponseInfo; + fromProtoMsg(message: ResponseInfoProtoMsg): ResponseInfo; + toProto(message: ResponseInfo): Uint8Array; + toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg; +}; +export declare const ResponseInitChain: { + typeUrl: string; + encode(message: ResponseInitChain, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain; + fromPartial(object: Partial): ResponseInitChain; + fromAmino(object: ResponseInitChainAmino): ResponseInitChain; + toAmino(message: ResponseInitChain): ResponseInitChainAmino; + fromAminoMsg(object: ResponseInitChainAminoMsg): ResponseInitChain; + fromProtoMsg(message: ResponseInitChainProtoMsg): ResponseInitChain; + toProto(message: ResponseInitChain): Uint8Array; + toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg; +}; +export declare const ResponseQuery: { + typeUrl: string; + encode(message: ResponseQuery, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery; + fromPartial(object: Partial): ResponseQuery; + fromAmino(object: ResponseQueryAmino): ResponseQuery; + toAmino(message: ResponseQuery): ResponseQueryAmino; + fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery; + fromProtoMsg(message: ResponseQueryProtoMsg): ResponseQuery; + toProto(message: ResponseQuery): Uint8Array; + toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg; +}; +export declare const ResponseBeginBlock: { + typeUrl: string; + encode(message: ResponseBeginBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock; + fromPartial(object: Partial): ResponseBeginBlock; + fromAmino(object: ResponseBeginBlockAmino): ResponseBeginBlock; + toAmino(message: ResponseBeginBlock): ResponseBeginBlockAmino; + fromAminoMsg(object: ResponseBeginBlockAminoMsg): ResponseBeginBlock; + fromProtoMsg(message: ResponseBeginBlockProtoMsg): ResponseBeginBlock; + toProto(message: ResponseBeginBlock): Uint8Array; + toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg; +}; +export declare const ResponseCheckTx: { + typeUrl: string; + encode(message: ResponseCheckTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx; + fromPartial(object: Partial): ResponseCheckTx; + fromAmino(object: ResponseCheckTxAmino): ResponseCheckTx; + toAmino(message: ResponseCheckTx): ResponseCheckTxAmino; + fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx; + fromProtoMsg(message: ResponseCheckTxProtoMsg): ResponseCheckTx; + toProto(message: ResponseCheckTx): Uint8Array; + toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg; +}; +export declare const ResponseDeliverTx: { + typeUrl: string; + encode(message: ResponseDeliverTx, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx; + fromPartial(object: Partial): ResponseDeliverTx; + fromAmino(object: ResponseDeliverTxAmino): ResponseDeliverTx; + toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino; + fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx; + fromProtoMsg(message: ResponseDeliverTxProtoMsg): ResponseDeliverTx; + toProto(message: ResponseDeliverTx): Uint8Array; + toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg; +}; +export declare const ResponseEndBlock: { + typeUrl: string; + encode(message: ResponseEndBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock; + fromPartial(object: Partial): ResponseEndBlock; + fromAmino(object: ResponseEndBlockAmino): ResponseEndBlock; + toAmino(message: ResponseEndBlock): ResponseEndBlockAmino; + fromAminoMsg(object: ResponseEndBlockAminoMsg): ResponseEndBlock; + fromProtoMsg(message: ResponseEndBlockProtoMsg): ResponseEndBlock; + toProto(message: ResponseEndBlock): Uint8Array; + toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg; +}; +export declare const ResponseCommit: { + typeUrl: string; + encode(message: ResponseCommit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit; + fromPartial(object: Partial): ResponseCommit; + fromAmino(object: ResponseCommitAmino): ResponseCommit; + toAmino(message: ResponseCommit): ResponseCommitAmino; + fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit; + fromProtoMsg(message: ResponseCommitProtoMsg): ResponseCommit; + toProto(message: ResponseCommit): Uint8Array; + toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg; +}; +export declare const ResponseListSnapshots: { + typeUrl: string; + encode(message: ResponseListSnapshots, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots; + fromPartial(object: Partial): ResponseListSnapshots; + fromAmino(object: ResponseListSnapshotsAmino): ResponseListSnapshots; + toAmino(message: ResponseListSnapshots): ResponseListSnapshotsAmino; + fromAminoMsg(object: ResponseListSnapshotsAminoMsg): ResponseListSnapshots; + fromProtoMsg(message: ResponseListSnapshotsProtoMsg): ResponseListSnapshots; + toProto(message: ResponseListSnapshots): Uint8Array; + toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg; +}; +export declare const ResponseOfferSnapshot: { + typeUrl: string; + encode(message: ResponseOfferSnapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot; + fromPartial(object: Partial): ResponseOfferSnapshot; + fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot; + toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino; + fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot; + fromProtoMsg(message: ResponseOfferSnapshotProtoMsg): ResponseOfferSnapshot; + toProto(message: ResponseOfferSnapshot): Uint8Array; + toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg; +}; +export declare const ResponseLoadSnapshotChunk: { + typeUrl: string; + encode(message: ResponseLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; + fromPartial(object: Partial): ResponseLoadSnapshotChunk; + fromAmino(object: ResponseLoadSnapshotChunkAmino): ResponseLoadSnapshotChunk; + toAmino(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkAmino; + fromAminoMsg(object: ResponseLoadSnapshotChunkAminoMsg): ResponseLoadSnapshotChunk; + fromProtoMsg(message: ResponseLoadSnapshotChunkProtoMsg): ResponseLoadSnapshotChunk; + toProto(message: ResponseLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg; +}; +export declare const ResponseApplySnapshotChunk: { + typeUrl: string; + encode(message: ResponseApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk; + fromPartial(object: Partial): ResponseApplySnapshotChunk; + fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk; + toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino; + fromAminoMsg(object: ResponseApplySnapshotChunkAminoMsg): ResponseApplySnapshotChunk; + fromProtoMsg(message: ResponseApplySnapshotChunkProtoMsg): ResponseApplySnapshotChunk; + toProto(message: ResponseApplySnapshotChunk): Uint8Array; + toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg; +}; +export declare const ResponsePrepareProposal: { + typeUrl: string; + encode(message: ResponsePrepareProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal; + fromPartial(object: Partial): ResponsePrepareProposal; + fromAmino(object: ResponsePrepareProposalAmino): ResponsePrepareProposal; + toAmino(message: ResponsePrepareProposal): ResponsePrepareProposalAmino; + fromAminoMsg(object: ResponsePrepareProposalAminoMsg): ResponsePrepareProposal; + fromProtoMsg(message: ResponsePrepareProposalProtoMsg): ResponsePrepareProposal; + toProto(message: ResponsePrepareProposal): Uint8Array; + toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg; +}; +export declare const ResponseProcessProposal: { + typeUrl: string; + encode(message: ResponseProcessProposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal; + fromPartial(object: Partial): ResponseProcessProposal; + fromAmino(object: ResponseProcessProposalAmino): ResponseProcessProposal; + toAmino(message: ResponseProcessProposal): ResponseProcessProposalAmino; + fromAminoMsg(object: ResponseProcessProposalAminoMsg): ResponseProcessProposal; + fromProtoMsg(message: ResponseProcessProposalProtoMsg): ResponseProcessProposal; + toProto(message: ResponseProcessProposal): Uint8Array; + toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg; +}; +export declare const CommitInfo: { + typeUrl: string; + encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; + fromPartial(object: Partial): CommitInfo; + fromAmino(object: CommitInfoAmino): CommitInfo; + toAmino(message: CommitInfo): CommitInfoAmino; + fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo; + fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo; + toProto(message: CommitInfo): Uint8Array; + toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; +}; +export declare const ExtendedCommitInfo: { + typeUrl: string; + encode(message: ExtendedCommitInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo; + fromPartial(object: Partial): ExtendedCommitInfo; + fromAmino(object: ExtendedCommitInfoAmino): ExtendedCommitInfo; + toAmino(message: ExtendedCommitInfo): ExtendedCommitInfoAmino; + fromAminoMsg(object: ExtendedCommitInfoAminoMsg): ExtendedCommitInfo; + fromProtoMsg(message: ExtendedCommitInfoProtoMsg): ExtendedCommitInfo; + toProto(message: ExtendedCommitInfo): Uint8Array; + toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg; +}; +export declare const Event: { + typeUrl: string; + encode(message: Event, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Event; + fromPartial(object: Partial): Event; + fromAmino(object: EventAmino): Event; + toAmino(message: Event): EventAmino; + fromAminoMsg(object: EventAminoMsg): Event; + fromProtoMsg(message: EventProtoMsg): Event; + toProto(message: Event): Uint8Array; + toProtoMsg(message: Event): EventProtoMsg; +}; +export declare const EventAttribute: { + typeUrl: string; + encode(message: EventAttribute, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute; + fromPartial(object: Partial): EventAttribute; + fromAmino(object: EventAttributeAmino): EventAttribute; + toAmino(message: EventAttribute): EventAttributeAmino; + fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute; + fromProtoMsg(message: EventAttributeProtoMsg): EventAttribute; + toProto(message: EventAttribute): Uint8Array; + toProtoMsg(message: EventAttribute): EventAttributeProtoMsg; +}; +export declare const TxResult: { + typeUrl: string; + encode(message: TxResult, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxResult; + fromPartial(object: Partial): TxResult; + fromAmino(object: TxResultAmino): TxResult; + toAmino(message: TxResult): TxResultAmino; + fromAminoMsg(object: TxResultAminoMsg): TxResult; + fromProtoMsg(message: TxResultProtoMsg): TxResult; + toProto(message: TxResult): Uint8Array; + toProtoMsg(message: TxResult): TxResultProtoMsg; +}; +export declare const Validator: { + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; + fromPartial(object: Partial): Validator; + fromAmino(object: ValidatorAmino): Validator; + toAmino(message: Validator): ValidatorAmino; + fromAminoMsg(object: ValidatorAminoMsg): Validator; + fromProtoMsg(message: ValidatorProtoMsg): Validator; + toProto(message: Validator): Uint8Array; + toProtoMsg(message: Validator): ValidatorProtoMsg; +}; +export declare const ValidatorUpdate: { + typeUrl: string; + encode(message: ValidatorUpdate, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate; + fromPartial(object: Partial): ValidatorUpdate; + fromAmino(object: ValidatorUpdateAmino): ValidatorUpdate; + toAmino(message: ValidatorUpdate): ValidatorUpdateAmino; + fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate; + fromProtoMsg(message: ValidatorUpdateProtoMsg): ValidatorUpdate; + toProto(message: ValidatorUpdate): Uint8Array; + toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg; +}; +export declare const VoteInfo: { + typeUrl: string; + encode(message: VoteInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo; + fromPartial(object: Partial): VoteInfo; + fromAmino(object: VoteInfoAmino): VoteInfo; + toAmino(message: VoteInfo): VoteInfoAmino; + fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo; + fromProtoMsg(message: VoteInfoProtoMsg): VoteInfo; + toProto(message: VoteInfo): Uint8Array; + toProtoMsg(message: VoteInfo): VoteInfoProtoMsg; +}; +export declare const ExtendedVoteInfo: { + typeUrl: string; + encode(message: ExtendedVoteInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo; + fromPartial(object: Partial): ExtendedVoteInfo; + fromAmino(object: ExtendedVoteInfoAmino): ExtendedVoteInfo; + toAmino(message: ExtendedVoteInfo): ExtendedVoteInfoAmino; + fromAminoMsg(object: ExtendedVoteInfoAminoMsg): ExtendedVoteInfo; + fromProtoMsg(message: ExtendedVoteInfoProtoMsg): ExtendedVoteInfo; + toProto(message: ExtendedVoteInfo): Uint8Array; + toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg; +}; +export declare const Misbehavior: { + typeUrl: string; + encode(message: Misbehavior, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior; + fromPartial(object: Partial): Misbehavior; + fromAmino(object: MisbehaviorAmino): Misbehavior; + toAmino(message: Misbehavior): MisbehaviorAmino; + fromAminoMsg(object: MisbehaviorAminoMsg): Misbehavior; + fromProtoMsg(message: MisbehaviorProtoMsg): Misbehavior; + toProto(message: Misbehavior): Uint8Array; + toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg; +}; +export declare const Snapshot: { + typeUrl: string; + encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; + fromPartial(object: Partial): Snapshot; + fromAmino(object: SnapshotAmino): Snapshot; + toAmino(message: Snapshot): SnapshotAmino; + fromAminoMsg(object: SnapshotAminoMsg): Snapshot; + fromProtoMsg(message: SnapshotProtoMsg): Snapshot; + toProto(message: Snapshot): Uint8Array; + toProtoMsg(message: Snapshot): SnapshotProtoMsg; +}; diff --git a/packages/api/dist/tendermint/abci/types.js b/packages/api/dist/tendermint/abci/types.js new file mode 100644 index 00000000..93b785b5 --- /dev/null +++ b/packages/api/dist/tendermint/abci/types.js @@ -0,0 +1,4636 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResponseBeginBlock = exports.ResponseQuery = exports.ResponseInitChain = exports.ResponseInfo = exports.ResponseFlush = exports.ResponseEcho = exports.ResponseException = exports.Response = exports.RequestProcessProposal = exports.RequestPrepareProposal = exports.RequestApplySnapshotChunk = exports.RequestLoadSnapshotChunk = exports.RequestOfferSnapshot = exports.RequestListSnapshots = exports.RequestCommit = exports.RequestEndBlock = exports.RequestDeliverTx = exports.RequestCheckTx = exports.RequestBeginBlock = exports.RequestQuery = exports.RequestInitChain = exports.RequestInfo = exports.RequestFlush = exports.RequestEcho = exports.Request = exports.misbehaviorTypeToJSON = exports.misbehaviorTypeFromJSON = exports.MisbehaviorTypeAmino = exports.MisbehaviorTypeSDKType = exports.MisbehaviorType = exports.responseProcessProposal_ProposalStatusToJSON = exports.responseProcessProposal_ProposalStatusFromJSON = exports.ResponseProcessProposal_ProposalStatusAmino = exports.ResponseProcessProposal_ProposalStatusSDKType = exports.ResponseProcessProposal_ProposalStatus = exports.responseApplySnapshotChunk_ResultToJSON = exports.responseApplySnapshotChunk_ResultFromJSON = exports.ResponseApplySnapshotChunk_ResultAmino = exports.ResponseApplySnapshotChunk_ResultSDKType = exports.ResponseApplySnapshotChunk_Result = exports.responseOfferSnapshot_ResultToJSON = exports.responseOfferSnapshot_ResultFromJSON = exports.ResponseOfferSnapshot_ResultAmino = exports.ResponseOfferSnapshot_ResultSDKType = exports.ResponseOfferSnapshot_Result = exports.checkTxTypeToJSON = exports.checkTxTypeFromJSON = exports.CheckTxTypeAmino = exports.CheckTxTypeSDKType = exports.CheckTxType = void 0; +exports.Snapshot = exports.Misbehavior = exports.ExtendedVoteInfo = exports.VoteInfo = exports.ValidatorUpdate = exports.Validator = exports.TxResult = exports.EventAttribute = exports.Event = exports.ExtendedCommitInfo = exports.CommitInfo = exports.ResponseProcessProposal = exports.ResponsePrepareProposal = exports.ResponseApplySnapshotChunk = exports.ResponseLoadSnapshotChunk = exports.ResponseOfferSnapshot = exports.ResponseListSnapshots = exports.ResponseCommit = exports.ResponseEndBlock = exports.ResponseDeliverTx = exports.ResponseCheckTx = void 0; +//@ts-nocheck +const timestamp_1 = require("../../google/protobuf/timestamp"); +const params_1 = require("../types/params"); +const types_1 = require("../types/types"); +const proof_1 = require("../crypto/proof"); +const keys_1 = require("../crypto/keys"); +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +var CheckTxType; +(function (CheckTxType) { + CheckTxType[CheckTxType["NEW"] = 0] = "NEW"; + CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK"; + CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(CheckTxType || (exports.CheckTxType = CheckTxType = {})); +exports.CheckTxTypeSDKType = CheckTxType; +exports.CheckTxTypeAmino = CheckTxType; +function checkTxTypeFromJSON(object) { + switch (object) { + case 0: + case "NEW": + return CheckTxType.NEW; + case 1: + case "RECHECK": + return CheckTxType.RECHECK; + case -1: + case "UNRECOGNIZED": + default: + return CheckTxType.UNRECOGNIZED; + } +} +exports.checkTxTypeFromJSON = checkTxTypeFromJSON; +function checkTxTypeToJSON(object) { + switch (object) { + case CheckTxType.NEW: + return "NEW"; + case CheckTxType.RECHECK: + return "RECHECK"; + case CheckTxType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.checkTxTypeToJSON = checkTxTypeToJSON; +var ResponseOfferSnapshot_Result; +(function (ResponseOfferSnapshot_Result) { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNKNOWN"] = 0] = "UNKNOWN"; + /** ACCEPT - Snapshot accepted, apply chunks */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ACCEPT"] = 1] = "ACCEPT"; + /** ABORT - Abort all snapshot restoration */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ABORT"] = 2] = "ABORT"; + /** REJECT - Reject this specific snapshot, try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT"] = 3] = "REJECT"; + /** REJECT_FORMAT - Reject all snapshots of this format, try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_FORMAT"] = 4] = "REJECT_FORMAT"; + /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_SENDER"] = 5] = "REJECT_SENDER"; + ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseOfferSnapshot_Result || (exports.ResponseOfferSnapshot_Result = ResponseOfferSnapshot_Result = {})); +exports.ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; +exports.ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; +function responseOfferSnapshot_ResultFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseOfferSnapshot_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseOfferSnapshot_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseOfferSnapshot_Result.ABORT; + case 3: + case "REJECT": + return ResponseOfferSnapshot_Result.REJECT; + case 4: + case "REJECT_FORMAT": + return ResponseOfferSnapshot_Result.REJECT_FORMAT; + case 5: + case "REJECT_SENDER": + return ResponseOfferSnapshot_Result.REJECT_SENDER; + case -1: + case "UNRECOGNIZED": + default: + return ResponseOfferSnapshot_Result.UNRECOGNIZED; + } +} +exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON; +function responseOfferSnapshot_ResultToJSON(object) { + switch (object) { + case ResponseOfferSnapshot_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseOfferSnapshot_Result.ACCEPT: + return "ACCEPT"; + case ResponseOfferSnapshot_Result.ABORT: + return "ABORT"; + case ResponseOfferSnapshot_Result.REJECT: + return "REJECT"; + case ResponseOfferSnapshot_Result.REJECT_FORMAT: + return "REJECT_FORMAT"; + case ResponseOfferSnapshot_Result.REJECT_SENDER: + return "REJECT_SENDER"; + case ResponseOfferSnapshot_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON; +var ResponseApplySnapshotChunk_Result; +(function (ResponseApplySnapshotChunk_Result) { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNKNOWN"] = 0] = "UNKNOWN"; + /** ACCEPT - Chunk successfully accepted */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ACCEPT"] = 1] = "ACCEPT"; + /** ABORT - Abort all snapshot restoration */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ABORT"] = 2] = "ABORT"; + /** RETRY - Retry chunk (combine with refetch and reject) */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY"] = 3] = "RETRY"; + /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY_SNAPSHOT"] = 4] = "RETRY_SNAPSHOT"; + /** REJECT_SNAPSHOT - Reject this snapshot, try others */ + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["REJECT_SNAPSHOT"] = 5] = "REJECT_SNAPSHOT"; + ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseApplySnapshotChunk_Result || (exports.ResponseApplySnapshotChunk_Result = ResponseApplySnapshotChunk_Result = {})); +exports.ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; +exports.ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; +function responseApplySnapshotChunk_ResultFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseApplySnapshotChunk_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseApplySnapshotChunk_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseApplySnapshotChunk_Result.ABORT; + case 3: + case "RETRY": + return ResponseApplySnapshotChunk_Result.RETRY; + case 4: + case "RETRY_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; + case 5: + case "REJECT_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; + } +} +exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON; +function responseApplySnapshotChunk_ResultToJSON(object) { + switch (object) { + case ResponseApplySnapshotChunk_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseApplySnapshotChunk_Result.ACCEPT: + return "ACCEPT"; + case ResponseApplySnapshotChunk_Result.ABORT: + return "ABORT"; + case ResponseApplySnapshotChunk_Result.RETRY: + return "RETRY"; + case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: + return "RETRY_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: + return "REJECT_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON; +var ResponseProcessProposal_ProposalStatus; +(function (ResponseProcessProposal_ProposalStatus) { + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT"; + ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(ResponseProcessProposal_ProposalStatus || (exports.ResponseProcessProposal_ProposalStatus = ResponseProcessProposal_ProposalStatus = {})); +exports.ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; +exports.ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; +function responseProcessProposal_ProposalStatusFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseProcessProposal_ProposalStatus.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseProcessProposal_ProposalStatus.ACCEPT; + case 2: + case "REJECT": + return ResponseProcessProposal_ProposalStatus.REJECT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; + } +} +exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON; +function responseProcessProposal_ProposalStatusToJSON(object) { + switch (object) { + case ResponseProcessProposal_ProposalStatus.UNKNOWN: + return "UNKNOWN"; + case ResponseProcessProposal_ProposalStatus.ACCEPT: + return "ACCEPT"; + case ResponseProcessProposal_ProposalStatus.REJECT: + return "REJECT"; + case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON; +var MisbehaviorType; +(function (MisbehaviorType) { + MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN"; + MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE"; + MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK"; + MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(MisbehaviorType || (exports.MisbehaviorType = MisbehaviorType = {})); +exports.MisbehaviorTypeSDKType = MisbehaviorType; +exports.MisbehaviorTypeAmino = MisbehaviorType; +function misbehaviorTypeFromJSON(object) { + switch (object) { + case 0: + case "UNKNOWN": + return MisbehaviorType.UNKNOWN; + case 1: + case "DUPLICATE_VOTE": + return MisbehaviorType.DUPLICATE_VOTE; + case 2: + case "LIGHT_CLIENT_ATTACK": + return MisbehaviorType.LIGHT_CLIENT_ATTACK; + case -1: + case "UNRECOGNIZED": + default: + return MisbehaviorType.UNRECOGNIZED; + } +} +exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON; +function misbehaviorTypeToJSON(object) { + switch (object) { + case MisbehaviorType.UNKNOWN: + return "UNKNOWN"; + case MisbehaviorType.DUPLICATE_VOTE: + return "DUPLICATE_VOTE"; + case MisbehaviorType.LIGHT_CLIENT_ATTACK: + return "LIGHT_CLIENT_ATTACK"; + case MisbehaviorType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON; +function createBaseRequest() { + return { + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +exports.Request = { + typeUrl: "/tendermint.abci.Request", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.echo !== undefined) { + exports.RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); + } + if (message.flush !== undefined) { + exports.RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); + } + if (message.info !== undefined) { + exports.RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); + } + if (message.initChain !== undefined) { + exports.RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); + } + if (message.query !== undefined) { + exports.RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + exports.RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + exports.RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + exports.RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + exports.RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); + } + if (message.commit !== undefined) { + exports.RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + exports.RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + exports.RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + exports.RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + exports.RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + exports.RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + exports.RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.echo = exports.RequestEcho.decode(reader, reader.uint32()); + break; + case 2: + message.flush = exports.RequestFlush.decode(reader, reader.uint32()); + break; + case 3: + message.info = exports.RequestInfo.decode(reader, reader.uint32()); + break; + case 5: + message.initChain = exports.RequestInitChain.decode(reader, reader.uint32()); + break; + case 6: + message.query = exports.RequestQuery.decode(reader, reader.uint32()); + break; + case 7: + message.beginBlock = exports.RequestBeginBlock.decode(reader, reader.uint32()); + break; + case 8: + message.checkTx = exports.RequestCheckTx.decode(reader, reader.uint32()); + break; + case 9: + message.deliverTx = exports.RequestDeliverTx.decode(reader, reader.uint32()); + break; + case 10: + message.endBlock = exports.RequestEndBlock.decode(reader, reader.uint32()); + break; + case 11: + message.commit = exports.RequestCommit.decode(reader, reader.uint32()); + break; + case 12: + message.listSnapshots = exports.RequestListSnapshots.decode(reader, reader.uint32()); + break; + case 13: + message.offerSnapshot = exports.RequestOfferSnapshot.decode(reader, reader.uint32()); + break; + case 14: + message.loadSnapshotChunk = exports.RequestLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 15: + message.applySnapshotChunk = exports.RequestApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.prepareProposal = exports.RequestPrepareProposal.decode(reader, reader.uint32()); + break; + case 17: + message.processProposal = exports.RequestProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequest(); + message.echo = object.echo !== undefined && object.echo !== null ? exports.RequestEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? exports.RequestFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? exports.RequestInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? exports.RequestInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? exports.RequestQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? exports.RequestBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? exports.RequestCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? exports.RequestDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? exports.RequestEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? exports.RequestCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? exports.RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? exports.RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? exports.RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? exports.RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? exports.RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? exports.RequestProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseRequest(); + if (object.echo !== undefined && object.echo !== null) { + message.echo = exports.RequestEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = exports.RequestFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = exports.RequestInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = exports.RequestInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = exports.RequestQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = exports.RequestBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = exports.RequestCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = exports.RequestDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = exports.RequestEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = exports.RequestCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = exports.RequestListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = exports.RequestOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = exports.RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = exports.RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = exports.RequestPrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = exports.RequestProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.echo = message.echo ? exports.RequestEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? exports.RequestFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? exports.RequestInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? exports.RequestInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? exports.RequestQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? exports.RequestBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? exports.RequestCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? exports.RequestDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? exports.RequestEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? exports.RequestCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? exports.RequestListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? exports.RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? exports.RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? exports.RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? exports.RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? exports.RequestProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Request.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Request.decode(message.value); + }, + toProto(message) { + return exports.Request.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Request", + value: exports.Request.encode(message).finish() + }; + } +}; +function createBaseRequestEcho() { + return { + message: "" + }; +} +exports.RequestEcho = { + typeUrl: "/tendermint.abci.RequestEcho", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestEcho.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestEcho.decode(message.value); + }, + toProto(message) { + return exports.RequestEcho.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestEcho", + value: exports.RequestEcho.encode(message).finish() + }; + } +}; +function createBaseRequestFlush() { + return {}; +} +exports.RequestFlush = { + typeUrl: "/tendermint.abci.RequestFlush", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestFlush(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestFlush(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestFlush.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestFlush.decode(message.value); + }, + toProto(message) { + return exports.RequestFlush.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestFlush", + value: exports.RequestFlush.encode(message).finish() + }; + } +}; +function createBaseRequestInfo() { + return { + version: "", + blockVersion: BigInt(0), + p2pVersion: BigInt(0), + abciVersion: "" + }; +} +exports.RequestInfo = { + typeUrl: "/tendermint.abci.RequestInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.version !== "") { + writer.uint32(10).string(message.version); + } + if (message.blockVersion !== BigInt(0)) { + writer.uint32(16).uint64(message.blockVersion); + } + if (message.p2pVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.p2pVersion); + } + if (message.abciVersion !== "") { + writer.uint32(34).string(message.abciVersion); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.blockVersion = reader.uint64(); + break; + case 3: + message.p2pVersion = reader.uint64(); + break; + case 4: + message.abciVersion = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestInfo(); + message.version = object.version ?? ""; + message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); + message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); + message.abciVersion = object.abciVersion ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestInfo(); + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.block_version !== undefined && object.block_version !== null) { + message.blockVersion = BigInt(object.block_version); + } + if (object.p2p_version !== undefined && object.p2p_version !== null) { + message.p2pVersion = BigInt(object.p2p_version); + } + if (object.abci_version !== undefined && object.abci_version !== null) { + message.abciVersion = object.abci_version; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.version = message.version === "" ? undefined : message.version; + obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; + obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; + obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestInfo.decode(message.value); + }, + toProto(message) { + return exports.RequestInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestInfo", + value: exports.RequestInfo.encode(message).finish() + }; + } +}; +function createBaseRequestInitChain() { + return { + time: new Date(), + chainId: "", + consensusParams: undefined, + validators: [], + appStateBytes: new Uint8Array(), + initialHeight: BigInt(0) + }; +} +exports.RequestInitChain = { + typeUrl: "/tendermint.abci.RequestInitChain", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.consensusParams !== undefined) { + params_1.ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + exports.ValidatorUpdate.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.appStateBytes.length !== 0) { + writer.uint32(42).bytes(message.appStateBytes); + } + if (message.initialHeight !== BigInt(0)) { + writer.uint32(48).int64(message.initialHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.consensusParams = params_1.ConsensusParams.decode(reader, reader.uint32()); + break; + case 4: + message.validators.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 5: + message.appStateBytes = reader.bytes(); + break; + case 6: + message.initialHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestInitChain(); + message.time = object.time ?? undefined; + message.chainId = object.chainId ?? ""; + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? params_1.ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; + message.appStateBytes = object.appStateBytes ?? new Uint8Array(); + message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseRequestInitChain(); + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = params_1.ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; + if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { + message.appStateBytes = (0, helpers_1.bytesFromBase64)(object.app_state_bytes); + } + if (object.initial_height !== undefined && object.initial_height !== null) { + message.initialHeight = BigInt(object.initial_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.consensus_params = message.consensusParams ? params_1.ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.app_state_bytes = message.appStateBytes ? (0, helpers_1.base64FromBytes)(message.appStateBytes) : undefined; + obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestInitChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestInitChain.decode(message.value); + }, + toProto(message) { + return exports.RequestInitChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestInitChain", + value: exports.RequestInitChain.encode(message).finish() + }; + } +}; +function createBaseRequestQuery() { + return { + data: new Uint8Array(), + path: "", + height: BigInt(0), + prove: false + }; +} +exports.RequestQuery = { + typeUrl: "/tendermint.abci.RequestQuery", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.prove === true) { + writer.uint32(32).bool(message.prove); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.path = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.prove = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestQuery(); + message.data = object.data ?? new Uint8Array(); + message.path = object.path ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.prove = object.prove ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseRequestQuery(); + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.prove !== undefined && object.prove !== null) { + message.prove = object.prove; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.path = message.path === "" ? undefined : message.path; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.prove = message.prove === false ? undefined : message.prove; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestQuery.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestQuery.decode(message.value); + }, + toProto(message) { + return exports.RequestQuery.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestQuery", + value: exports.RequestQuery.encode(message).finish() + }; + } +}; +function createBaseRequestBeginBlock() { + return { + hash: new Uint8Array(), + header: types_1.Header.fromPartial({}), + lastCommitInfo: exports.CommitInfo.fromPartial({}), + byzantineValidators: [] + }; +} +exports.RequestBeginBlock = { + typeUrl: "/tendermint.abci.RequestBeginBlock", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.header !== undefined) { + types_1.Header.encode(message.header, writer.uint32(18).fork()).ldelim(); + } + if (message.lastCommitInfo !== undefined) { + exports.CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.byzantineValidators) { + exports.Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.header = types_1.Header.decode(reader, reader.uint32()); + break; + case 3: + message.lastCommitInfo = exports.CommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.byzantineValidators.push(exports.Misbehavior.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestBeginBlock(); + message.hash = object.hash ?? new Uint8Array(); + message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; + message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? exports.CommitInfo.fromPartial(object.lastCommitInfo) : undefined; + message.byzantineValidators = object.byzantineValidators?.map(e => exports.Misbehavior.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseRequestBeginBlock(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.header !== undefined && object.header !== null) { + message.header = types_1.Header.fromAmino(object.header); + } + if (object.last_commit_info !== undefined && object.last_commit_info !== null) { + message.lastCommitInfo = exports.CommitInfo.fromAmino(object.last_commit_info); + } + message.byzantineValidators = object.byzantine_validators?.map(e => exports.Misbehavior.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; + obj.last_commit_info = message.lastCommitInfo ? exports.CommitInfo.toAmino(message.lastCommitInfo) : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); + } + else { + obj.byzantine_validators = message.byzantineValidators; + } + return obj; + }, + fromAminoMsg(object) { + return exports.RequestBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestBeginBlock.decode(message.value); + }, + toProto(message) { + return exports.RequestBeginBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestBeginBlock", + value: exports.RequestBeginBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCheckTx() { + return { + tx: new Uint8Array(), + type: 0 + }; +} +exports.RequestCheckTx = { + typeUrl: "/tendermint.abci.RequestCheckTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + if (message.type !== 0) { + writer.uint32(16).int32(message.type); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestCheckTx(); + message.tx = object.tx ?? new Uint8Array(); + message.type = object.type ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseRequestCheckTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = (0, helpers_1.bytesFromBase64)(object.tx); + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; + obj.type = message.type === 0 ? undefined : message.type; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestCheckTx.decode(message.value); + }, + toProto(message) { + return exports.RequestCheckTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestCheckTx", + value: exports.RequestCheckTx.encode(message).finish() + }; + } +}; +function createBaseRequestDeliverTx() { + return { + tx: new Uint8Array() + }; +} +exports.RequestDeliverTx = { + typeUrl: "/tendermint.abci.RequestDeliverTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestDeliverTx(); + message.tx = object.tx ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestDeliverTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = (0, helpers_1.bytesFromBase64)(object.tx); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestDeliverTx.decode(message.value); + }, + toProto(message) { + return exports.RequestDeliverTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestDeliverTx", + value: exports.RequestDeliverTx.encode(message).finish() + }; + } +}; +function createBaseRequestEndBlock() { + return { + height: BigInt(0) + }; +} +exports.RequestEndBlock = { + typeUrl: "/tendermint.abci.RequestEndBlock", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestEndBlock(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseRequestEndBlock(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestEndBlock.decode(message.value); + }, + toProto(message) { + return exports.RequestEndBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestEndBlock", + value: exports.RequestEndBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCommit() { + return {}; +} +exports.RequestCommit = { + typeUrl: "/tendermint.abci.RequestCommit", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestCommit(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestCommit(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestCommit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestCommit.decode(message.value); + }, + toProto(message) { + return exports.RequestCommit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestCommit", + value: exports.RequestCommit.encode(message).finish() + }; + } +}; +function createBaseRequestListSnapshots() { + return {}; +} +exports.RequestListSnapshots = { + typeUrl: "/tendermint.abci.RequestListSnapshots", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseRequestListSnapshots(); + return message; + }, + fromAmino(_) { + const message = createBaseRequestListSnapshots(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestListSnapshots.decode(message.value); + }, + toProto(message) { + return exports.RequestListSnapshots.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestListSnapshots", + value: exports.RequestListSnapshots.encode(message).finish() + }; + } +}; +function createBaseRequestOfferSnapshot() { + return { + snapshot: undefined, + appHash: new Uint8Array() + }; +} +exports.RequestOfferSnapshot = { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.snapshot !== undefined) { + exports.Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(18).bytes(message.appHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshot = exports.Snapshot.decode(reader, reader.uint32()); + break; + case 2: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestOfferSnapshot(); + message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? exports.Snapshot.fromPartial(object.snapshot) : undefined; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestOfferSnapshot(); + if (object.snapshot !== undefined && object.snapshot !== null) { + message.snapshot = exports.Snapshot.fromAmino(object.snapshot); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.snapshot = message.snapshot ? exports.Snapshot.toAmino(message.snapshot) : undefined; + obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestOfferSnapshot.decode(message.value); + }, + toProto(message) { + return exports.RequestOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + value: exports.RequestOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseRequestLoadSnapshotChunk() { + return { + height: BigInt(0), + format: 0, + chunk: 0 + }; +} +exports.RequestLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunk !== 0) { + writer.uint32(24).uint32(message.chunk); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunk = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestLoadSnapshotChunk(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunk = object.chunk ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseRequestLoadSnapshotChunk(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = object.chunk; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunk = message.chunk === 0 ? undefined : message.chunk; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestLoadSnapshotChunk.decode(message.value); + }, + toProto(message) { + return exports.RequestLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + value: exports.RequestLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestApplySnapshotChunk() { + return { + index: 0, + chunk: new Uint8Array(), + sender: "" + }; +} +exports.RequestApplySnapshotChunk = { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.chunk.length !== 0) { + writer.uint32(18).bytes(message.chunk); + } + if (message.sender !== "") { + writer.uint32(26).string(message.sender); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.chunk = reader.bytes(); + break; + case 3: + message.sender = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestApplySnapshotChunk(); + message.index = object.index ?? 0; + message.chunk = object.chunk ?? new Uint8Array(); + message.sender = object.sender ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseRequestApplySnapshotChunk(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = (0, helpers_1.bytesFromBase64)(object.chunk); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.chunk = message.chunk ? (0, helpers_1.base64FromBytes)(message.chunk) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestApplySnapshotChunk.decode(message.value); + }, + toProto(message) { + return exports.RequestApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + value: exports.RequestApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestPrepareProposal() { + return { + maxTxBytes: BigInt(0), + txs: [], + localLastCommit: exports.ExtendedCommitInfo.fromPartial({}), + misbehavior: [], + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +exports.RequestPrepareProposal = { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.maxTxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxTxBytes); + } + for (const v of message.txs) { + writer.uint32(18).bytes(v); + } + if (message.localLastCommit !== undefined) { + exports.ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.misbehavior) { + exports.Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestPrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTxBytes = reader.int64(); + break; + case 2: + message.txs.push(reader.bytes()); + break; + case 3: + message.localLastCommit = exports.ExtendedCommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.misbehavior.push(exports.Misbehavior.decode(reader, reader.uint32())); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestPrepareProposal(); + message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); + message.txs = object.txs?.map(e => e) || []; + message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? exports.ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromPartial(e)) || []; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestPrepareProposal(); + if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { + message.maxTxBytes = BigInt(object.max_tx_bytes); + } + message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + if (object.local_last_commit !== undefined && object.local_last_commit !== null) { + message.localLastCommit = exports.ExtendedCommitInfo.fromAmino(object.local_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromAmino(e)) || []; + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.txs = message.txs; + } + obj.local_last_commit = message.localLastCommit ? exports.ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); + } + else { + obj.misbehavior = message.misbehavior; + } + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestPrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestPrepareProposal.decode(message.value); + }, + toProto(message) { + return exports.RequestPrepareProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + value: exports.RequestPrepareProposal.encode(message).finish() + }; + } +}; +function createBaseRequestProcessProposal() { + return { + txs: [], + proposedLastCommit: exports.CommitInfo.fromPartial({}), + misbehavior: [], + hash: new Uint8Array(), + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +exports.RequestProcessProposal = { + typeUrl: "/tendermint.abci.RequestProcessProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + if (message.proposedLastCommit !== undefined) { + exports.CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.misbehavior) { + exports.Misbehavior.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + case 2: + message.proposedLastCommit = exports.CommitInfo.decode(reader, reader.uint32()); + break; + case 3: + message.misbehavior.push(exports.Misbehavior.decode(reader, reader.uint32())); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => e) || []; + message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? exports.CommitInfo.fromPartial(object.proposedLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromPartial(e)) || []; + message.hash = object.hash ?? new Uint8Array(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { + message.proposedLastCommit = exports.CommitInfo.fromAmino(object.proposed_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromAmino(e)) || []; + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.txs = message.txs; + } + obj.proposed_last_commit = message.proposedLastCommit ? exports.CommitInfo.toAmino(message.proposedLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); + } + else { + obj.misbehavior = message.misbehavior; + } + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.RequestProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.RequestProcessProposal.decode(message.value); + }, + toProto(message) { + return exports.RequestProcessProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.RequestProcessProposal", + value: exports.RequestProcessProposal.encode(message).finish() + }; + } +}; +function createBaseResponse() { + return { + exception: undefined, + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +exports.Response = { + typeUrl: "/tendermint.abci.Response", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.exception !== undefined) { + exports.ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); + } + if (message.echo !== undefined) { + exports.ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); + } + if (message.flush !== undefined) { + exports.ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); + } + if (message.info !== undefined) { + exports.ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); + } + if (message.initChain !== undefined) { + exports.ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); + } + if (message.query !== undefined) { + exports.ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + exports.ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + exports.ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + exports.ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + exports.ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); + } + if (message.commit !== undefined) { + exports.ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + exports.ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + exports.ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + exports.ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + exports.ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + exports.ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + exports.ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exception = exports.ResponseException.decode(reader, reader.uint32()); + break; + case 2: + message.echo = exports.ResponseEcho.decode(reader, reader.uint32()); + break; + case 3: + message.flush = exports.ResponseFlush.decode(reader, reader.uint32()); + break; + case 4: + message.info = exports.ResponseInfo.decode(reader, reader.uint32()); + break; + case 6: + message.initChain = exports.ResponseInitChain.decode(reader, reader.uint32()); + break; + case 7: + message.query = exports.ResponseQuery.decode(reader, reader.uint32()); + break; + case 8: + message.beginBlock = exports.ResponseBeginBlock.decode(reader, reader.uint32()); + break; + case 9: + message.checkTx = exports.ResponseCheckTx.decode(reader, reader.uint32()); + break; + case 10: + message.deliverTx = exports.ResponseDeliverTx.decode(reader, reader.uint32()); + break; + case 11: + message.endBlock = exports.ResponseEndBlock.decode(reader, reader.uint32()); + break; + case 12: + message.commit = exports.ResponseCommit.decode(reader, reader.uint32()); + break; + case 13: + message.listSnapshots = exports.ResponseListSnapshots.decode(reader, reader.uint32()); + break; + case 14: + message.offerSnapshot = exports.ResponseOfferSnapshot.decode(reader, reader.uint32()); + break; + case 15: + message.loadSnapshotChunk = exports.ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.applySnapshotChunk = exports.ResponseApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 17: + message.prepareProposal = exports.ResponsePrepareProposal.decode(reader, reader.uint32()); + break; + case 18: + message.processProposal = exports.ResponseProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponse(); + message.exception = object.exception !== undefined && object.exception !== null ? exports.ResponseException.fromPartial(object.exception) : undefined; + message.echo = object.echo !== undefined && object.echo !== null ? exports.ResponseEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? exports.ResponseFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? exports.ResponseInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? exports.ResponseInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? exports.ResponseQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? exports.ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? exports.ResponseCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? exports.ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? exports.ResponseEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? exports.ResponseCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? exports.ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? exports.ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? exports.ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? exports.ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? exports.ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? exports.ResponseProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseResponse(); + if (object.exception !== undefined && object.exception !== null) { + message.exception = exports.ResponseException.fromAmino(object.exception); + } + if (object.echo !== undefined && object.echo !== null) { + message.echo = exports.ResponseEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = exports.ResponseFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = exports.ResponseInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = exports.ResponseInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = exports.ResponseQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = exports.ResponseBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = exports.ResponseCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = exports.ResponseDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = exports.ResponseEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = exports.ResponseCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = exports.ResponseListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = exports.ResponseOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = exports.ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = exports.ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = exports.ResponsePrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = exports.ResponseProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.exception = message.exception ? exports.ResponseException.toAmino(message.exception) : undefined; + obj.echo = message.echo ? exports.ResponseEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? exports.ResponseFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? exports.ResponseInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? exports.ResponseInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? exports.ResponseQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? exports.ResponseBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? exports.ResponseCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? exports.ResponseDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? exports.ResponseEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? exports.ResponseCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? exports.ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? exports.ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? exports.ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? exports.ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? exports.ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? exports.ResponseProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Response.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Response.decode(message.value); + }, + toProto(message) { + return exports.Response.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Response", + value: exports.Response.encode(message).finish() + }; + } +}; +function createBaseResponseException() { + return { + error: "" + }; +} +exports.ResponseException = { + typeUrl: "/tendermint.abci.ResponseException", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.error !== "") { + writer.uint32(10).string(message.error); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseException(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseException(); + message.error = object.error ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseException(); + if (object.error !== undefined && object.error !== null) { + message.error = object.error; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.error = message.error === "" ? undefined : message.error; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseException.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseException.decode(message.value); + }, + toProto(message) { + return exports.ResponseException.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseException", + value: exports.ResponseException.encode(message).finish() + }; + } +}; +function createBaseResponseEcho() { + return { + message: "" + }; +} +exports.ResponseEcho = { + typeUrl: "/tendermint.abci.ResponseEcho", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseEcho.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseEcho.decode(message.value); + }, + toProto(message) { + return exports.ResponseEcho.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseEcho", + value: exports.ResponseEcho.encode(message).finish() + }; + } +}; +function createBaseResponseFlush() { + return {}; +} +exports.ResponseFlush = { + typeUrl: "/tendermint.abci.ResponseFlush", + encode(_, writer = binary_1.BinaryWriter.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_) { + const message = createBaseResponseFlush(); + return message; + }, + fromAmino(_) { + const message = createBaseResponseFlush(); + return message; + }, + toAmino(_) { + const obj = {}; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseFlush.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseFlush.decode(message.value); + }, + toProto(message) { + return exports.ResponseFlush.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseFlush", + value: exports.ResponseFlush.encode(message).finish() + }; + } +}; +function createBaseResponseInfo() { + return { + data: "", + version: "", + appVersion: BigInt(0), + lastBlockHeight: BigInt(0), + lastBlockAppHash: new Uint8Array() + }; +} +exports.ResponseInfo = { + typeUrl: "/tendermint.abci.ResponseInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.data !== "") { + writer.uint32(10).string(message.data); + } + if (message.version !== "") { + writer.uint32(18).string(message.version); + } + if (message.appVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.appVersion); + } + if (message.lastBlockHeight !== BigInt(0)) { + writer.uint32(32).int64(message.lastBlockHeight); + } + if (message.lastBlockAppHash.length !== 0) { + writer.uint32(42).bytes(message.lastBlockAppHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.string(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.appVersion = reader.uint64(); + break; + case 4: + message.lastBlockHeight = reader.int64(); + break; + case 5: + message.lastBlockAppHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseInfo(); + message.data = object.data ?? ""; + message.version = object.version ?? ""; + message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); + message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); + message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseInfo(); + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.app_version !== undefined && object.app_version !== null) { + message.appVersion = BigInt(object.app_version); + } + if (object.last_block_height !== undefined && object.last_block_height !== null) { + message.lastBlockHeight = BigInt(object.last_block_height); + } + if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { + message.lastBlockAppHash = (0, helpers_1.bytesFromBase64)(object.last_block_app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data === "" ? undefined : message.data; + obj.version = message.version === "" ? undefined : message.version; + obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; + obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; + obj.last_block_app_hash = message.lastBlockAppHash ? (0, helpers_1.base64FromBytes)(message.lastBlockAppHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseInfo.decode(message.value); + }, + toProto(message) { + return exports.ResponseInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseInfo", + value: exports.ResponseInfo.encode(message).finish() + }; + } +}; +function createBaseResponseInitChain() { + return { + consensusParams: undefined, + validators: [], + appHash: new Uint8Array() + }; +} +exports.ResponseInitChain = { + typeUrl: "/tendermint.abci.ResponseInitChain", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.consensusParams !== undefined) { + params_1.ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.validators) { + exports.ValidatorUpdate.encode(v, writer.uint32(18).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(26).bytes(message.appHash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusParams = params_1.ConsensusParams.decode(reader, reader.uint32()); + break; + case 2: + message.validators.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 3: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseInitChain(); + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? params_1.ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseInitChain(); + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = params_1.ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.consensus_params = message.consensusParams ? params_1.ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseInitChain.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseInitChain.decode(message.value); + }, + toProto(message) { + return exports.ResponseInitChain.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseInitChain", + value: exports.ResponseInitChain.encode(message).finish() + }; + } +}; +function createBaseResponseQuery() { + return { + code: 0, + log: "", + info: "", + index: BigInt(0), + key: new Uint8Array(), + value: new Uint8Array(), + proofOps: undefined, + height: BigInt(0), + codespace: "" + }; +} +exports.ResponseQuery = { + typeUrl: "/tendermint.abci.ResponseQuery", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.index !== BigInt(0)) { + writer.uint32(40).int64(message.index); + } + if (message.key.length !== 0) { + writer.uint32(50).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(58).bytes(message.value); + } + if (message.proofOps !== undefined) { + proof_1.ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(72).int64(message.height); + } + if (message.codespace !== "") { + writer.uint32(82).string(message.codespace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.index = reader.int64(); + break; + case 6: + message.key = reader.bytes(); + break; + case 7: + message.value = reader.bytes(); + break; + case 8: + message.proofOps = proof_1.ProofOps.decode(reader, reader.uint32()); + break; + case 9: + message.height = reader.int64(); + break; + case 10: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseQuery(); + message.code = object.code ?? 0; + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? proof_1.ProofOps.fromPartial(object.proofOps) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseQuery(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = (0, helpers_1.bytesFromBase64)(object.value); + } + if (object.proof_ops !== undefined && object.proof_ops !== null) { + message.proofOps = proof_1.ProofOps.fromAmino(object.proof_ops); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + obj.value = message.value ? (0, helpers_1.base64FromBytes)(message.value) : undefined; + obj.proof_ops = message.proofOps ? proof_1.ProofOps.toAmino(message.proofOps) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseQuery.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseQuery.decode(message.value); + }, + toProto(message) { + return exports.ResponseQuery.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseQuery", + value: exports.ResponseQuery.encode(message).finish() + }; + } +}; +function createBaseResponseBeginBlock() { + return { + events: [] + }; +} +exports.ResponseBeginBlock = { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.events) { + exports.Event.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(exports.Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.events) { + obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseBeginBlock.decode(message.value); + }, + toProto(message) { + return exports.ResponseBeginBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + value: exports.ResponseBeginBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCheckTx() { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "", + sender: "", + priority: BigInt(0), + mempoolError: "" + }; +} +exports.ResponseCheckTx = { + typeUrl: "/tendermint.abci.ResponseCheckTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + exports.Event.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + if (message.sender !== "") { + writer.uint32(74).string(message.sender); + } + if (message.priority !== BigInt(0)) { + writer.uint32(80).int64(message.priority); + } + if (message.mempoolError !== "") { + writer.uint32(90).string(message.mempoolError); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(exports.Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + case 9: + message.sender = reader.string(); + break; + case 10: + message.priority = reader.int64(); + break; + case 11: + message.mempoolError = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseCheckTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + message.sender = object.sender ?? ""; + message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); + message.mempoolError = object.mempoolError ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseCheckTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.priority !== undefined && object.priority !== null) { + message.priority = BigInt(object.priority); + } + if (object.mempool_error !== undefined && object.mempool_error !== null) { + message.mempoolError = object.mempool_error; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; + obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseCheckTx.decode(message.value); + }, + toProto(message) { + return exports.ResponseCheckTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseCheckTx", + value: exports.ResponseCheckTx.encode(message).finish() + }; + } +}; +function createBaseResponseDeliverTx() { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "" + }; +} +exports.ResponseDeliverTx = { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + exports.Event.encode(v, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(exports.Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseDeliverTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseResponseDeliverTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseDeliverTx.decode(message.value); + }, + toProto(message) { + return exports.ResponseDeliverTx.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + value: exports.ResponseDeliverTx.encode(message).finish() + }; + } +}; +function createBaseResponseEndBlock() { + return { + validatorUpdates: [], + consensusParamUpdates: undefined, + events: [] + }; +} +exports.ResponseEndBlock = { + typeUrl: "/tendermint.abci.ResponseEndBlock", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validatorUpdates) { + exports.ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusParamUpdates !== undefined) { + params_1.ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.events) { + exports.Event.encode(v, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorUpdates.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 2: + message.consensusParamUpdates = params_1.ConsensusParams.decode(reader, reader.uint32()); + break; + case 3: + message.events.push(exports.Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validatorUpdates?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; + message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? params_1.ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; + message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validator_updates?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; + if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { + message.consensusParamUpdates = params_1.ConsensusParams.fromAmino(object.consensus_param_updates); + } + message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validatorUpdates) { + obj.validator_updates = message.validatorUpdates.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); + } + else { + obj.validator_updates = message.validatorUpdates; + } + obj.consensus_param_updates = message.consensusParamUpdates ? params_1.ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); + } + else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseEndBlock.decode(message.value); + }, + toProto(message) { + return exports.ResponseEndBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseEndBlock", + value: exports.ResponseEndBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCommit() { + return { + data: new Uint8Array(), + retainHeight: BigInt(0) + }; +} +exports.ResponseCommit = { + typeUrl: "/tendermint.abci.ResponseCommit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.retainHeight !== BigInt(0)) { + writer.uint32(24).int64(message.retainHeight); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.data = reader.bytes(); + break; + case 3: + message.retainHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseCommit(); + message.data = object.data ?? new Uint8Array(); + message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseResponseCommit(); + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.retain_height !== undefined && object.retain_height !== null) { + message.retainHeight = BigInt(object.retain_height); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseCommit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseCommit.decode(message.value); + }, + toProto(message) { + return exports.ResponseCommit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseCommit", + value: exports.ResponseCommit.encode(message).finish() + }; + } +}; +function createBaseResponseListSnapshots() { + return { + snapshots: [] + }; +} +exports.ResponseListSnapshots = { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.snapshots) { + exports.Snapshot.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshots.push(exports.Snapshot.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => exports.Snapshot.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => exports.Snapshot.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.snapshots) { + obj.snapshots = message.snapshots.map(e => e ? exports.Snapshot.toAmino(e) : undefined); + } + else { + obj.snapshots = message.snapshots; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseListSnapshots.decode(message.value); + }, + toProto(message) { + return exports.ResponseListSnapshots.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + value: exports.ResponseListSnapshots.encode(message).finish() + }; + } +}; +function createBaseResponseOfferSnapshot() { + return { + result: 0 + }; +} +exports.ResponseOfferSnapshot = { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseOfferSnapshot(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseResponseOfferSnapshot(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseOfferSnapshot.decode(message.value); + }, + toProto(message) { + return exports.ResponseOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + value: exports.ResponseOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseResponseLoadSnapshotChunk() { + return { + chunk: new Uint8Array() + }; +} +exports.ResponseLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.chunk.length !== 0) { + writer.uint32(10).bytes(message.chunk); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chunk = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseLoadSnapshotChunk(); + message.chunk = object.chunk ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseResponseLoadSnapshotChunk(); + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = (0, helpers_1.bytesFromBase64)(object.chunk); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.chunk = message.chunk ? (0, helpers_1.base64FromBytes)(message.chunk) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseLoadSnapshotChunk.decode(message.value); + }, + toProto(message) { + return exports.ResponseLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + value: exports.ResponseLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponseApplySnapshotChunk() { + return { + result: 0, + refetchChunks: [], + rejectSenders: [] + }; +} +exports.ResponseApplySnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + writer.uint32(18).fork(); + for (const v of message.refetchChunks) { + writer.uint32(v); + } + writer.ldelim(); + for (const v of message.rejectSenders) { + writer.uint32(26).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = reader.int32(); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.refetchChunks.push(reader.uint32()); + } + } + else { + message.refetchChunks.push(reader.uint32()); + } + break; + case 3: + message.rejectSenders.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseApplySnapshotChunk(); + message.result = object.result ?? 0; + message.refetchChunks = object.refetchChunks?.map(e => e) || []; + message.rejectSenders = object.rejectSenders?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponseApplySnapshotChunk(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + message.refetchChunks = object.refetch_chunks?.map(e => e) || []; + message.rejectSenders = object.reject_senders?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.result = message.result === 0 ? undefined : message.result; + if (message.refetchChunks) { + obj.refetch_chunks = message.refetchChunks.map(e => e); + } + else { + obj.refetch_chunks = message.refetchChunks; + } + if (message.rejectSenders) { + obj.reject_senders = message.rejectSenders.map(e => e); + } + else { + obj.reject_senders = message.rejectSenders; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseApplySnapshotChunk.decode(message.value); + }, + toProto(message) { + return exports.ResponseApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + value: exports.ResponseApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponsePrepareProposal() { + return { + txs: [] + }; +} +exports.ResponsePrepareProposal = { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponsePrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ResponsePrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponsePrepareProposal.decode(message.value); + }, + toProto(message) { + return exports.ResponsePrepareProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + value: exports.ResponsePrepareProposal.encode(message).finish() + }; + } +}; +function createBaseResponseProcessProposal() { + return { + status: 0 + }; +} +exports.ResponseProcessProposal = { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.status !== 0) { + writer.uint32(8).int32(message.status); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseResponseProcessProposal(); + message.status = object.status ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseResponseProcessProposal(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.status = message.status === 0 ? undefined : message.status; + return obj; + }, + fromAminoMsg(object) { + return exports.ResponseProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ResponseProcessProposal.decode(message.value); + }, + toProto(message) { + return exports.ResponseProcessProposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + value: exports.ResponseProcessProposal.encode(message).finish() + }; + } +}; +function createBaseCommitInfo() { + return { + round: 0, + votes: [] + }; +} +exports.CommitInfo = { + typeUrl: "/tendermint.abci.CommitInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + exports.VoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(exports.VoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => exports.VoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => exports.VoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? exports.VoteInfo.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.CommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CommitInfo.decode(message.value); + }, + toProto(message) { + return exports.CommitInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.CommitInfo", + value: exports.CommitInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedCommitInfo() { + return { + round: 0, + votes: [] + }; +} +exports.ExtendedCommitInfo = { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + exports.ExtendedVoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(exports.ExtendedVoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtendedCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => exports.ExtendedVoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseExtendedCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => exports.ExtendedVoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? exports.ExtendedVoteInfo.toAmino(e) : undefined); + } + else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ExtendedCommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ExtendedCommitInfo.decode(message.value); + }, + toProto(message) { + return exports.ExtendedCommitInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + value: exports.ExtendedCommitInfo.encode(message).finish() + }; + } +}; +function createBaseEvent() { + return { + type: "", + attributes: [] + }; +} +exports.Event = { + typeUrl: "/tendermint.abci.Event", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + exports.EventAttribute.encode(v, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(exports.EventAttribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => exports.EventAttribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => exports.EventAttribute.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? exports.EventAttribute.toAmino(e) : undefined); + } + else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Event.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Event.decode(message.value); + }, + toProto(message) { + return exports.Event.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Event", + value: exports.Event.encode(message).finish() + }; + } +}; +function createBaseEventAttribute() { + return { + key: "", + value: "", + index: false + }; +} +exports.EventAttribute = { + typeUrl: "/tendermint.abci.EventAttribute", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + if (message.index === true) { + writer.uint32(24).bool(message.index); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.index = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEventAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + message.index = object.index ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseEventAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + obj.index = message.index === false ? undefined : message.index; + return obj; + }, + fromAminoMsg(object) { + return exports.EventAttribute.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EventAttribute.decode(message.value); + }, + toProto(message) { + return exports.EventAttribute.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.EventAttribute", + value: exports.EventAttribute.encode(message).finish() + }; + } +}; +function createBaseTxResult() { + return { + height: BigInt(0), + index: 0, + tx: new Uint8Array(), + result: exports.ResponseDeliverTx.fromPartial({}) + }; +} +exports.TxResult = { + typeUrl: "/tendermint.abci.TxResult", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.index !== 0) { + writer.uint32(16).uint32(message.index); + } + if (message.tx.length !== 0) { + writer.uint32(26).bytes(message.tx); + } + if (message.result !== undefined) { + exports.ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.index = reader.uint32(); + break; + case 3: + message.tx = reader.bytes(); + break; + case 4: + message.result = exports.ResponseDeliverTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxResult(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.index = object.index ?? 0; + message.tx = object.tx ?? new Uint8Array(); + message.result = object.result !== undefined && object.result !== null ? exports.ResponseDeliverTx.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseTxResult(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = (0, helpers_1.bytesFromBase64)(object.tx); + } + if (object.result !== undefined && object.result !== null) { + message.result = exports.ResponseDeliverTx.fromAmino(object.result); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.index = message.index === 0 ? undefined : message.index; + obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; + obj.result = message.result ? exports.ResponseDeliverTx.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.TxResult.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.TxResult.decode(message.value); + }, + toProto(message) { + return exports.TxResult.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.TxResult", + value: exports.TxResult.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + address: new Uint8Array(), + power: BigInt(0) + }; +} +exports.Validator = { + typeUrl: "/tendermint.abci.Validator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(24).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 3: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = (0, helpers_1.bytesFromBase64)(object.address); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Validator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Validator.decode(message.value); + }, + toProto(message) { + return exports.Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Validator", + value: exports.Validator.encode(message).finish() + }; + } +}; +function createBaseValidatorUpdate() { + return { + pubKey: keys_1.PublicKey.fromPartial({}), + power: BigInt(0) + }; +} +exports.ValidatorUpdate = { + typeUrl: "/tendermint.abci.ValidatorUpdate", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pubKey !== undefined) { + keys_1.PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorUpdate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorUpdate(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorUpdate(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorUpdate.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ValidatorUpdate.decode(message.value); + }, + toProto(message) { + return exports.ValidatorUpdate.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ValidatorUpdate", + value: exports.ValidatorUpdate.encode(message).finish() + }; + } +}; +function createBaseVoteInfo() { + return { + validator: exports.Validator.fromPartial({}), + signedLastBlock: false + }; +} +exports.VoteInfo = { + typeUrl: "/tendermint.abci.VoteInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validator !== undefined) { + exports.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = exports.Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + return message; + }, + fromAmino(object) { + const message = createBaseVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = exports.Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + return obj; + }, + fromAminoMsg(object) { + return exports.VoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.VoteInfo.decode(message.value); + }, + toProto(message) { + return exports.VoteInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.VoteInfo", + value: exports.VoteInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedVoteInfo() { + return { + validator: exports.Validator.fromPartial({}), + signedLastBlock: false, + voteExtension: new Uint8Array() + }; +} +exports.ExtendedVoteInfo = { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.validator !== undefined) { + exports.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + if (message.voteExtension.length !== 0) { + writer.uint32(26).bytes(message.voteExtension); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = exports.Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + case 3: + message.voteExtension = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseExtendedVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + message.voteExtension = object.voteExtension ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseExtendedVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = exports.Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + if (object.vote_extension !== undefined && object.vote_extension !== null) { + message.voteExtension = (0, helpers_1.bytesFromBase64)(object.vote_extension); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + obj.vote_extension = message.voteExtension ? (0, helpers_1.base64FromBytes)(message.voteExtension) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ExtendedVoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ExtendedVoteInfo.decode(message.value); + }, + toProto(message) { + return exports.ExtendedVoteInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + value: exports.ExtendedVoteInfo.encode(message).finish() + }; + } +}; +function createBaseMisbehavior() { + return { + type: 0, + validator: exports.Validator.fromPartial({}), + height: BigInt(0), + time: new Date(), + totalVotingPower: BigInt(0) + }; +} +exports.Misbehavior = { + typeUrl: "/tendermint.abci.Misbehavior", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.validator !== undefined) { + exports.Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(40).int64(message.totalVotingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMisbehavior(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.validator = exports.Validator.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseMisbehavior(); + message.type = object.type ?? 0; + message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseMisbehavior(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = exports.Validator.fromAmino(object.validator); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Misbehavior.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Misbehavior.decode(message.value); + }, + toProto(message) { + return exports.Misbehavior.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Misbehavior", + value: exports.Misbehavior.encode(message).finish() + }; + } +}; +function createBaseSnapshot() { + return { + height: BigInt(0), + format: 0, + chunks: 0, + hash: new Uint8Array(), + metadata: new Uint8Array() + }; +} +exports.Snapshot = { + typeUrl: "/tendermint.abci.Snapshot", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunks !== 0) { + writer.uint32(24).uint32(message.chunks); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunks = reader.uint32(); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSnapshot(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunks = object.chunks ?? 0; + message.hash = object.hash ?? new Uint8Array(); + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseSnapshot(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunks !== undefined && object.chunks !== null) { + message.chunks = object.chunks; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunks = message.chunks === 0 ? undefined : message.chunks; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Snapshot.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Snapshot.decode(message.value); + }, + toProto(message) { + return exports.Snapshot.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.abci.Snapshot", + value: exports.Snapshot.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/bundle.d.ts b/packages/api/dist/tendermint/bundle.d.ts new file mode 100644 index 00000000..e7776b17 --- /dev/null +++ b/packages/api/dist/tendermint/bundle.d.ts @@ -0,0 +1,1094 @@ +import * as _104 from "./abci/types"; +import * as _105 from "./crypto/keys"; +import * as _106 from "./crypto/proof"; +import * as _107 from "./libs/bits/types"; +import * as _108 from "./p2p/types"; +import * as _109 from "./types/block"; +import * as _110 from "./types/evidence"; +import * as _111 from "./types/params"; +import * as _112 from "./types/types"; +import * as _113 from "./types/validator"; +import * as _114 from "./version/types"; +export declare namespace tendermint { + const abci: { + checkTxTypeFromJSON(object: any): _104.CheckTxType; + checkTxTypeToJSON(object: _104.CheckTxType): string; + responseOfferSnapshot_ResultFromJSON(object: any): _104.ResponseOfferSnapshot_Result; + responseOfferSnapshot_ResultToJSON(object: _104.ResponseOfferSnapshot_Result): string; + responseApplySnapshotChunk_ResultFromJSON(object: any): _104.ResponseApplySnapshotChunk_Result; + responseApplySnapshotChunk_ResultToJSON(object: _104.ResponseApplySnapshotChunk_Result): string; + responseProcessProposal_ProposalStatusFromJSON(object: any): _104.ResponseProcessProposal_ProposalStatus; + responseProcessProposal_ProposalStatusToJSON(object: _104.ResponseProcessProposal_ProposalStatus): string; + misbehaviorTypeFromJSON(object: any): _104.MisbehaviorType; + misbehaviorTypeToJSON(object: _104.MisbehaviorType): string; + CheckTxType: typeof _104.CheckTxType; + CheckTxTypeSDKType: typeof _104.CheckTxType; + CheckTxTypeAmino: typeof _104.CheckTxType; + ResponseOfferSnapshot_Result: typeof _104.ResponseOfferSnapshot_Result; + ResponseOfferSnapshot_ResultSDKType: typeof _104.ResponseOfferSnapshot_Result; + ResponseOfferSnapshot_ResultAmino: typeof _104.ResponseOfferSnapshot_Result; + ResponseApplySnapshotChunk_Result: typeof _104.ResponseApplySnapshotChunk_Result; + ResponseApplySnapshotChunk_ResultSDKType: typeof _104.ResponseApplySnapshotChunk_Result; + ResponseApplySnapshotChunk_ResultAmino: typeof _104.ResponseApplySnapshotChunk_Result; + ResponseProcessProposal_ProposalStatus: typeof _104.ResponseProcessProposal_ProposalStatus; + ResponseProcessProposal_ProposalStatusSDKType: typeof _104.ResponseProcessProposal_ProposalStatus; + ResponseProcessProposal_ProposalStatusAmino: typeof _104.ResponseProcessProposal_ProposalStatus; + MisbehaviorType: typeof _104.MisbehaviorType; + MisbehaviorTypeSDKType: typeof _104.MisbehaviorType; + MisbehaviorTypeAmino: typeof _104.MisbehaviorType; + Request: { + typeUrl: string; + encode(message: _104.Request, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Request; + fromPartial(object: Partial<_104.Request>): _104.Request; + fromAmino(object: _104.RequestAmino): _104.Request; + toAmino(message: _104.Request): _104.RequestAmino; + fromAminoMsg(object: _104.RequestAminoMsg): _104.Request; + fromProtoMsg(message: _104.RequestProtoMsg): _104.Request; + toProto(message: _104.Request): Uint8Array; + toProtoMsg(message: _104.Request): _104.RequestProtoMsg; + }; + RequestEcho: { + typeUrl: string; + encode(message: _104.RequestEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestEcho; + fromPartial(object: Partial<_104.RequestEcho>): _104.RequestEcho; + fromAmino(object: _104.RequestEchoAmino): _104.RequestEcho; + toAmino(message: _104.RequestEcho): _104.RequestEchoAmino; + fromAminoMsg(object: _104.RequestEchoAminoMsg): _104.RequestEcho; + fromProtoMsg(message: _104.RequestEchoProtoMsg): _104.RequestEcho; + toProto(message: _104.RequestEcho): Uint8Array; + toProtoMsg(message: _104.RequestEcho): _104.RequestEchoProtoMsg; + }; + RequestFlush: { + typeUrl: string; + encode(_: _104.RequestFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestFlush; + fromPartial(_: Partial<_104.RequestFlush>): _104.RequestFlush; + fromAmino(_: _104.RequestFlushAmino): _104.RequestFlush; + toAmino(_: _104.RequestFlush): _104.RequestFlushAmino; + fromAminoMsg(object: _104.RequestFlushAminoMsg): _104.RequestFlush; + fromProtoMsg(message: _104.RequestFlushProtoMsg): _104.RequestFlush; + toProto(message: _104.RequestFlush): Uint8Array; + toProtoMsg(message: _104.RequestFlush): _104.RequestFlushProtoMsg; + }; + RequestInfo: { + typeUrl: string; + encode(message: _104.RequestInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestInfo; + fromPartial(object: Partial<_104.RequestInfo>): _104.RequestInfo; + fromAmino(object: _104.RequestInfoAmino): _104.RequestInfo; + toAmino(message: _104.RequestInfo): _104.RequestInfoAmino; + fromAminoMsg(object: _104.RequestInfoAminoMsg): _104.RequestInfo; + fromProtoMsg(message: _104.RequestInfoProtoMsg): _104.RequestInfo; + toProto(message: _104.RequestInfo): Uint8Array; + toProtoMsg(message: _104.RequestInfo): _104.RequestInfoProtoMsg; + }; + RequestInitChain: { + typeUrl: string; + encode(message: _104.RequestInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestInitChain; + fromPartial(object: Partial<_104.RequestInitChain>): _104.RequestInitChain; + fromAmino(object: _104.RequestInitChainAmino): _104.RequestInitChain; + toAmino(message: _104.RequestInitChain): _104.RequestInitChainAmino; + fromAminoMsg(object: _104.RequestInitChainAminoMsg): _104.RequestInitChain; + fromProtoMsg(message: _104.RequestInitChainProtoMsg): _104.RequestInitChain; + toProto(message: _104.RequestInitChain): Uint8Array; + toProtoMsg(message: _104.RequestInitChain): _104.RequestInitChainProtoMsg; + }; + RequestQuery: { + typeUrl: string; + encode(message: _104.RequestQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestQuery; + fromPartial(object: Partial<_104.RequestQuery>): _104.RequestQuery; + fromAmino(object: _104.RequestQueryAmino): _104.RequestQuery; + toAmino(message: _104.RequestQuery): _104.RequestQueryAmino; + fromAminoMsg(object: _104.RequestQueryAminoMsg): _104.RequestQuery; + fromProtoMsg(message: _104.RequestQueryProtoMsg): _104.RequestQuery; + toProto(message: _104.RequestQuery): Uint8Array; + toProtoMsg(message: _104.RequestQuery): _104.RequestQueryProtoMsg; + }; + RequestBeginBlock: { + typeUrl: string; + encode(message: _104.RequestBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestBeginBlock; + fromPartial(object: Partial<_104.RequestBeginBlock>): _104.RequestBeginBlock; + fromAmino(object: _104.RequestBeginBlockAmino): _104.RequestBeginBlock; + toAmino(message: _104.RequestBeginBlock): _104.RequestBeginBlockAmino; + fromAminoMsg(object: _104.RequestBeginBlockAminoMsg): _104.RequestBeginBlock; + fromProtoMsg(message: _104.RequestBeginBlockProtoMsg): _104.RequestBeginBlock; + toProto(message: _104.RequestBeginBlock): Uint8Array; + toProtoMsg(message: _104.RequestBeginBlock): _104.RequestBeginBlockProtoMsg; + }; + RequestCheckTx: { + typeUrl: string; + encode(message: _104.RequestCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestCheckTx; + fromPartial(object: Partial<_104.RequestCheckTx>): _104.RequestCheckTx; + fromAmino(object: _104.RequestCheckTxAmino): _104.RequestCheckTx; + toAmino(message: _104.RequestCheckTx): _104.RequestCheckTxAmino; + fromAminoMsg(object: _104.RequestCheckTxAminoMsg): _104.RequestCheckTx; + fromProtoMsg(message: _104.RequestCheckTxProtoMsg): _104.RequestCheckTx; + toProto(message: _104.RequestCheckTx): Uint8Array; + toProtoMsg(message: _104.RequestCheckTx): _104.RequestCheckTxProtoMsg; + }; + RequestDeliverTx: { + typeUrl: string; + encode(message: _104.RequestDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestDeliverTx; + fromPartial(object: Partial<_104.RequestDeliverTx>): _104.RequestDeliverTx; + fromAmino(object: _104.RequestDeliverTxAmino): _104.RequestDeliverTx; + toAmino(message: _104.RequestDeliverTx): _104.RequestDeliverTxAmino; + fromAminoMsg(object: _104.RequestDeliverTxAminoMsg): _104.RequestDeliverTx; + fromProtoMsg(message: _104.RequestDeliverTxProtoMsg): _104.RequestDeliverTx; + toProto(message: _104.RequestDeliverTx): Uint8Array; + toProtoMsg(message: _104.RequestDeliverTx): _104.RequestDeliverTxProtoMsg; + }; + RequestEndBlock: { + typeUrl: string; + encode(message: _104.RequestEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestEndBlock; + fromPartial(object: Partial<_104.RequestEndBlock>): _104.RequestEndBlock; + fromAmino(object: _104.RequestEndBlockAmino): _104.RequestEndBlock; + toAmino(message: _104.RequestEndBlock): _104.RequestEndBlockAmino; + fromAminoMsg(object: _104.RequestEndBlockAminoMsg): _104.RequestEndBlock; + fromProtoMsg(message: _104.RequestEndBlockProtoMsg): _104.RequestEndBlock; + toProto(message: _104.RequestEndBlock): Uint8Array; + toProtoMsg(message: _104.RequestEndBlock): _104.RequestEndBlockProtoMsg; + }; + RequestCommit: { + typeUrl: string; + encode(_: _104.RequestCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestCommit; + fromPartial(_: Partial<_104.RequestCommit>): _104.RequestCommit; + fromAmino(_: _104.RequestCommitAmino): _104.RequestCommit; + toAmino(_: _104.RequestCommit): _104.RequestCommitAmino; + fromAminoMsg(object: _104.RequestCommitAminoMsg): _104.RequestCommit; + fromProtoMsg(message: _104.RequestCommitProtoMsg): _104.RequestCommit; + toProto(message: _104.RequestCommit): Uint8Array; + toProtoMsg(message: _104.RequestCommit): _104.RequestCommitProtoMsg; + }; + RequestListSnapshots: { + typeUrl: string; + encode(_: _104.RequestListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestListSnapshots; + fromPartial(_: Partial<_104.RequestListSnapshots>): _104.RequestListSnapshots; + fromAmino(_: _104.RequestListSnapshotsAmino): _104.RequestListSnapshots; + toAmino(_: _104.RequestListSnapshots): _104.RequestListSnapshotsAmino; + fromAminoMsg(object: _104.RequestListSnapshotsAminoMsg): _104.RequestListSnapshots; + fromProtoMsg(message: _104.RequestListSnapshotsProtoMsg): _104.RequestListSnapshots; + toProto(message: _104.RequestListSnapshots): Uint8Array; + toProtoMsg(message: _104.RequestListSnapshots): _104.RequestListSnapshotsProtoMsg; + }; + RequestOfferSnapshot: { + typeUrl: string; + encode(message: _104.RequestOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestOfferSnapshot; + fromPartial(object: Partial<_104.RequestOfferSnapshot>): _104.RequestOfferSnapshot; + fromAmino(object: _104.RequestOfferSnapshotAmino): _104.RequestOfferSnapshot; + toAmino(message: _104.RequestOfferSnapshot): _104.RequestOfferSnapshotAmino; + fromAminoMsg(object: _104.RequestOfferSnapshotAminoMsg): _104.RequestOfferSnapshot; + fromProtoMsg(message: _104.RequestOfferSnapshotProtoMsg): _104.RequestOfferSnapshot; + toProto(message: _104.RequestOfferSnapshot): Uint8Array; + toProtoMsg(message: _104.RequestOfferSnapshot): _104.RequestOfferSnapshotProtoMsg; + }; + RequestLoadSnapshotChunk: { + typeUrl: string; + encode(message: _104.RequestLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestLoadSnapshotChunk; + fromPartial(object: Partial<_104.RequestLoadSnapshotChunk>): _104.RequestLoadSnapshotChunk; + fromAmino(object: _104.RequestLoadSnapshotChunkAmino): _104.RequestLoadSnapshotChunk; + toAmino(message: _104.RequestLoadSnapshotChunk): _104.RequestLoadSnapshotChunkAmino; + fromAminoMsg(object: _104.RequestLoadSnapshotChunkAminoMsg): _104.RequestLoadSnapshotChunk; + fromProtoMsg(message: _104.RequestLoadSnapshotChunkProtoMsg): _104.RequestLoadSnapshotChunk; + toProto(message: _104.RequestLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: _104.RequestLoadSnapshotChunk): _104.RequestLoadSnapshotChunkProtoMsg; + }; + RequestApplySnapshotChunk: { + typeUrl: string; + encode(message: _104.RequestApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestApplySnapshotChunk; + fromPartial(object: Partial<_104.RequestApplySnapshotChunk>): _104.RequestApplySnapshotChunk; + fromAmino(object: _104.RequestApplySnapshotChunkAmino): _104.RequestApplySnapshotChunk; + toAmino(message: _104.RequestApplySnapshotChunk): _104.RequestApplySnapshotChunkAmino; + fromAminoMsg(object: _104.RequestApplySnapshotChunkAminoMsg): _104.RequestApplySnapshotChunk; + fromProtoMsg(message: _104.RequestApplySnapshotChunkProtoMsg): _104.RequestApplySnapshotChunk; + toProto(message: _104.RequestApplySnapshotChunk): Uint8Array; + toProtoMsg(message: _104.RequestApplySnapshotChunk): _104.RequestApplySnapshotChunkProtoMsg; + }; + RequestPrepareProposal: { + typeUrl: string; + encode(message: _104.RequestPrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestPrepareProposal; + fromPartial(object: Partial<_104.RequestPrepareProposal>): _104.RequestPrepareProposal; + fromAmino(object: _104.RequestPrepareProposalAmino): _104.RequestPrepareProposal; + toAmino(message: _104.RequestPrepareProposal): _104.RequestPrepareProposalAmino; + fromAminoMsg(object: _104.RequestPrepareProposalAminoMsg): _104.RequestPrepareProposal; + fromProtoMsg(message: _104.RequestPrepareProposalProtoMsg): _104.RequestPrepareProposal; + toProto(message: _104.RequestPrepareProposal): Uint8Array; + toProtoMsg(message: _104.RequestPrepareProposal): _104.RequestPrepareProposalProtoMsg; + }; + RequestProcessProposal: { + typeUrl: string; + encode(message: _104.RequestProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestProcessProposal; + fromPartial(object: Partial<_104.RequestProcessProposal>): _104.RequestProcessProposal; + fromAmino(object: _104.RequestProcessProposalAmino): _104.RequestProcessProposal; + toAmino(message: _104.RequestProcessProposal): _104.RequestProcessProposalAmino; + fromAminoMsg(object: _104.RequestProcessProposalAminoMsg): _104.RequestProcessProposal; + fromProtoMsg(message: _104.RequestProcessProposalProtoMsg): _104.RequestProcessProposal; + toProto(message: _104.RequestProcessProposal): Uint8Array; + toProtoMsg(message: _104.RequestProcessProposal): _104.RequestProcessProposalProtoMsg; + }; + Response: { + typeUrl: string; + encode(message: _104.Response, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Response; + fromPartial(object: Partial<_104.Response>): _104.Response; + fromAmino(object: _104.ResponseAmino): _104.Response; + toAmino(message: _104.Response): _104.ResponseAmino; + fromAminoMsg(object: _104.ResponseAminoMsg): _104.Response; + fromProtoMsg(message: _104.ResponseProtoMsg): _104.Response; + toProto(message: _104.Response): Uint8Array; + toProtoMsg(message: _104.Response): _104.ResponseProtoMsg; + }; + ResponseException: { + typeUrl: string; + encode(message: _104.ResponseException, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseException; + fromPartial(object: Partial<_104.ResponseException>): _104.ResponseException; + fromAmino(object: _104.ResponseExceptionAmino): _104.ResponseException; + toAmino(message: _104.ResponseException): _104.ResponseExceptionAmino; + fromAminoMsg(object: _104.ResponseExceptionAminoMsg): _104.ResponseException; + fromProtoMsg(message: _104.ResponseExceptionProtoMsg): _104.ResponseException; + toProto(message: _104.ResponseException): Uint8Array; + toProtoMsg(message: _104.ResponseException): _104.ResponseExceptionProtoMsg; + }; + ResponseEcho: { + typeUrl: string; + encode(message: _104.ResponseEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseEcho; + fromPartial(object: Partial<_104.ResponseEcho>): _104.ResponseEcho; + fromAmino(object: _104.ResponseEchoAmino): _104.ResponseEcho; + toAmino(message: _104.ResponseEcho): _104.ResponseEchoAmino; + fromAminoMsg(object: _104.ResponseEchoAminoMsg): _104.ResponseEcho; + fromProtoMsg(message: _104.ResponseEchoProtoMsg): _104.ResponseEcho; + toProto(message: _104.ResponseEcho): Uint8Array; + toProtoMsg(message: _104.ResponseEcho): _104.ResponseEchoProtoMsg; + }; + ResponseFlush: { + typeUrl: string; + encode(_: _104.ResponseFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseFlush; + fromPartial(_: Partial<_104.ResponseFlush>): _104.ResponseFlush; + fromAmino(_: _104.ResponseFlushAmino): _104.ResponseFlush; + toAmino(_: _104.ResponseFlush): _104.ResponseFlushAmino; + fromAminoMsg(object: _104.ResponseFlushAminoMsg): _104.ResponseFlush; + fromProtoMsg(message: _104.ResponseFlushProtoMsg): _104.ResponseFlush; + toProto(message: _104.ResponseFlush): Uint8Array; + toProtoMsg(message: _104.ResponseFlush): _104.ResponseFlushProtoMsg; + }; + ResponseInfo: { + typeUrl: string; + encode(message: _104.ResponseInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseInfo; + fromPartial(object: Partial<_104.ResponseInfo>): _104.ResponseInfo; + fromAmino(object: _104.ResponseInfoAmino): _104.ResponseInfo; + toAmino(message: _104.ResponseInfo): _104.ResponseInfoAmino; + fromAminoMsg(object: _104.ResponseInfoAminoMsg): _104.ResponseInfo; + fromProtoMsg(message: _104.ResponseInfoProtoMsg): _104.ResponseInfo; + toProto(message: _104.ResponseInfo): Uint8Array; + toProtoMsg(message: _104.ResponseInfo): _104.ResponseInfoProtoMsg; + }; + ResponseInitChain: { + typeUrl: string; + encode(message: _104.ResponseInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseInitChain; + fromPartial(object: Partial<_104.ResponseInitChain>): _104.ResponseInitChain; + fromAmino(object: _104.ResponseInitChainAmino): _104.ResponseInitChain; + toAmino(message: _104.ResponseInitChain): _104.ResponseInitChainAmino; + fromAminoMsg(object: _104.ResponseInitChainAminoMsg): _104.ResponseInitChain; + fromProtoMsg(message: _104.ResponseInitChainProtoMsg): _104.ResponseInitChain; + toProto(message: _104.ResponseInitChain): Uint8Array; + toProtoMsg(message: _104.ResponseInitChain): _104.ResponseInitChainProtoMsg; + }; + ResponseQuery: { + typeUrl: string; + encode(message: _104.ResponseQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseQuery; + fromPartial(object: Partial<_104.ResponseQuery>): _104.ResponseQuery; + fromAmino(object: _104.ResponseQueryAmino): _104.ResponseQuery; + toAmino(message: _104.ResponseQuery): _104.ResponseQueryAmino; + fromAminoMsg(object: _104.ResponseQueryAminoMsg): _104.ResponseQuery; + fromProtoMsg(message: _104.ResponseQueryProtoMsg): _104.ResponseQuery; + toProto(message: _104.ResponseQuery): Uint8Array; + toProtoMsg(message: _104.ResponseQuery): _104.ResponseQueryProtoMsg; + }; + ResponseBeginBlock: { + typeUrl: string; + encode(message: _104.ResponseBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseBeginBlock; + fromPartial(object: Partial<_104.ResponseBeginBlock>): _104.ResponseBeginBlock; + fromAmino(object: _104.ResponseBeginBlockAmino): _104.ResponseBeginBlock; + toAmino(message: _104.ResponseBeginBlock): _104.ResponseBeginBlockAmino; + fromAminoMsg(object: _104.ResponseBeginBlockAminoMsg): _104.ResponseBeginBlock; + fromProtoMsg(message: _104.ResponseBeginBlockProtoMsg): _104.ResponseBeginBlock; + toProto(message: _104.ResponseBeginBlock): Uint8Array; + toProtoMsg(message: _104.ResponseBeginBlock): _104.ResponseBeginBlockProtoMsg; + }; + ResponseCheckTx: { + typeUrl: string; + encode(message: _104.ResponseCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseCheckTx; + fromPartial(object: Partial<_104.ResponseCheckTx>): _104.ResponseCheckTx; + fromAmino(object: _104.ResponseCheckTxAmino): _104.ResponseCheckTx; + toAmino(message: _104.ResponseCheckTx): _104.ResponseCheckTxAmino; + fromAminoMsg(object: _104.ResponseCheckTxAminoMsg): _104.ResponseCheckTx; + fromProtoMsg(message: _104.ResponseCheckTxProtoMsg): _104.ResponseCheckTx; + toProto(message: _104.ResponseCheckTx): Uint8Array; + toProtoMsg(message: _104.ResponseCheckTx): _104.ResponseCheckTxProtoMsg; + }; + ResponseDeliverTx: { + typeUrl: string; + encode(message: _104.ResponseDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseDeliverTx; + fromPartial(object: Partial<_104.ResponseDeliverTx>): _104.ResponseDeliverTx; + fromAmino(object: _104.ResponseDeliverTxAmino): _104.ResponseDeliverTx; + toAmino(message: _104.ResponseDeliverTx): _104.ResponseDeliverTxAmino; + fromAminoMsg(object: _104.ResponseDeliverTxAminoMsg): _104.ResponseDeliverTx; + fromProtoMsg(message: _104.ResponseDeliverTxProtoMsg): _104.ResponseDeliverTx; + toProto(message: _104.ResponseDeliverTx): Uint8Array; + toProtoMsg(message: _104.ResponseDeliverTx): _104.ResponseDeliverTxProtoMsg; + }; + ResponseEndBlock: { + typeUrl: string; + encode(message: _104.ResponseEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseEndBlock; + fromPartial(object: Partial<_104.ResponseEndBlock>): _104.ResponseEndBlock; + fromAmino(object: _104.ResponseEndBlockAmino): _104.ResponseEndBlock; + toAmino(message: _104.ResponseEndBlock): _104.ResponseEndBlockAmino; + fromAminoMsg(object: _104.ResponseEndBlockAminoMsg): _104.ResponseEndBlock; + fromProtoMsg(message: _104.ResponseEndBlockProtoMsg): _104.ResponseEndBlock; + toProto(message: _104.ResponseEndBlock): Uint8Array; + toProtoMsg(message: _104.ResponseEndBlock): _104.ResponseEndBlockProtoMsg; + }; + ResponseCommit: { + typeUrl: string; + encode(message: _104.ResponseCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseCommit; + fromPartial(object: Partial<_104.ResponseCommit>): _104.ResponseCommit; + fromAmino(object: _104.ResponseCommitAmino): _104.ResponseCommit; + toAmino(message: _104.ResponseCommit): _104.ResponseCommitAmino; + fromAminoMsg(object: _104.ResponseCommitAminoMsg): _104.ResponseCommit; + fromProtoMsg(message: _104.ResponseCommitProtoMsg): _104.ResponseCommit; + toProto(message: _104.ResponseCommit): Uint8Array; + toProtoMsg(message: _104.ResponseCommit): _104.ResponseCommitProtoMsg; + }; + ResponseListSnapshots: { + typeUrl: string; + encode(message: _104.ResponseListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseListSnapshots; + fromPartial(object: Partial<_104.ResponseListSnapshots>): _104.ResponseListSnapshots; + fromAmino(object: _104.ResponseListSnapshotsAmino): _104.ResponseListSnapshots; + toAmino(message: _104.ResponseListSnapshots): _104.ResponseListSnapshotsAmino; + fromAminoMsg(object: _104.ResponseListSnapshotsAminoMsg): _104.ResponseListSnapshots; + fromProtoMsg(message: _104.ResponseListSnapshotsProtoMsg): _104.ResponseListSnapshots; + toProto(message: _104.ResponseListSnapshots): Uint8Array; + toProtoMsg(message: _104.ResponseListSnapshots): _104.ResponseListSnapshotsProtoMsg; + }; + ResponseOfferSnapshot: { + typeUrl: string; + encode(message: _104.ResponseOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseOfferSnapshot; + fromPartial(object: Partial<_104.ResponseOfferSnapshot>): _104.ResponseOfferSnapshot; + fromAmino(object: _104.ResponseOfferSnapshotAmino): _104.ResponseOfferSnapshot; + toAmino(message: _104.ResponseOfferSnapshot): _104.ResponseOfferSnapshotAmino; + fromAminoMsg(object: _104.ResponseOfferSnapshotAminoMsg): _104.ResponseOfferSnapshot; + fromProtoMsg(message: _104.ResponseOfferSnapshotProtoMsg): _104.ResponseOfferSnapshot; + toProto(message: _104.ResponseOfferSnapshot): Uint8Array; + toProtoMsg(message: _104.ResponseOfferSnapshot): _104.ResponseOfferSnapshotProtoMsg; + }; + ResponseLoadSnapshotChunk: { + typeUrl: string; + encode(message: _104.ResponseLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseLoadSnapshotChunk; + fromPartial(object: Partial<_104.ResponseLoadSnapshotChunk>): _104.ResponseLoadSnapshotChunk; + fromAmino(object: _104.ResponseLoadSnapshotChunkAmino): _104.ResponseLoadSnapshotChunk; + toAmino(message: _104.ResponseLoadSnapshotChunk): _104.ResponseLoadSnapshotChunkAmino; + fromAminoMsg(object: _104.ResponseLoadSnapshotChunkAminoMsg): _104.ResponseLoadSnapshotChunk; + fromProtoMsg(message: _104.ResponseLoadSnapshotChunkProtoMsg): _104.ResponseLoadSnapshotChunk; + toProto(message: _104.ResponseLoadSnapshotChunk): Uint8Array; + toProtoMsg(message: _104.ResponseLoadSnapshotChunk): _104.ResponseLoadSnapshotChunkProtoMsg; + }; + ResponseApplySnapshotChunk: { + typeUrl: string; + encode(message: _104.ResponseApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseApplySnapshotChunk; + fromPartial(object: Partial<_104.ResponseApplySnapshotChunk>): _104.ResponseApplySnapshotChunk; + fromAmino(object: _104.ResponseApplySnapshotChunkAmino): _104.ResponseApplySnapshotChunk; + toAmino(message: _104.ResponseApplySnapshotChunk): _104.ResponseApplySnapshotChunkAmino; + fromAminoMsg(object: _104.ResponseApplySnapshotChunkAminoMsg): _104.ResponseApplySnapshotChunk; + fromProtoMsg(message: _104.ResponseApplySnapshotChunkProtoMsg): _104.ResponseApplySnapshotChunk; + toProto(message: _104.ResponseApplySnapshotChunk): Uint8Array; + toProtoMsg(message: _104.ResponseApplySnapshotChunk): _104.ResponseApplySnapshotChunkProtoMsg; + }; + ResponsePrepareProposal: { + typeUrl: string; + encode(message: _104.ResponsePrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponsePrepareProposal; + fromPartial(object: Partial<_104.ResponsePrepareProposal>): _104.ResponsePrepareProposal; + fromAmino(object: _104.ResponsePrepareProposalAmino): _104.ResponsePrepareProposal; + toAmino(message: _104.ResponsePrepareProposal): _104.ResponsePrepareProposalAmino; + fromAminoMsg(object: _104.ResponsePrepareProposalAminoMsg): _104.ResponsePrepareProposal; + fromProtoMsg(message: _104.ResponsePrepareProposalProtoMsg): _104.ResponsePrepareProposal; + toProto(message: _104.ResponsePrepareProposal): Uint8Array; + toProtoMsg(message: _104.ResponsePrepareProposal): _104.ResponsePrepareProposalProtoMsg; + }; + ResponseProcessProposal: { + typeUrl: string; + encode(message: _104.ResponseProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseProcessProposal; + fromPartial(object: Partial<_104.ResponseProcessProposal>): _104.ResponseProcessProposal; + fromAmino(object: _104.ResponseProcessProposalAmino): _104.ResponseProcessProposal; + toAmino(message: _104.ResponseProcessProposal): _104.ResponseProcessProposalAmino; + fromAminoMsg(object: _104.ResponseProcessProposalAminoMsg): _104.ResponseProcessProposal; + fromProtoMsg(message: _104.ResponseProcessProposalProtoMsg): _104.ResponseProcessProposal; + toProto(message: _104.ResponseProcessProposal): Uint8Array; + toProtoMsg(message: _104.ResponseProcessProposal): _104.ResponseProcessProposalProtoMsg; + }; + CommitInfo: { + typeUrl: string; + encode(message: _104.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.CommitInfo; + fromPartial(object: Partial<_104.CommitInfo>): _104.CommitInfo; + fromAmino(object: _104.CommitInfoAmino): _104.CommitInfo; + toAmino(message: _104.CommitInfo): _104.CommitInfoAmino; + fromAminoMsg(object: _104.CommitInfoAminoMsg): _104.CommitInfo; + fromProtoMsg(message: _104.CommitInfoProtoMsg): _104.CommitInfo; + toProto(message: _104.CommitInfo): Uint8Array; + toProtoMsg(message: _104.CommitInfo): _104.CommitInfoProtoMsg; + }; + ExtendedCommitInfo: { + typeUrl: string; + encode(message: _104.ExtendedCommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ExtendedCommitInfo; + fromPartial(object: Partial<_104.ExtendedCommitInfo>): _104.ExtendedCommitInfo; + fromAmino(object: _104.ExtendedCommitInfoAmino): _104.ExtendedCommitInfo; + toAmino(message: _104.ExtendedCommitInfo): _104.ExtendedCommitInfoAmino; + fromAminoMsg(object: _104.ExtendedCommitInfoAminoMsg): _104.ExtendedCommitInfo; + fromProtoMsg(message: _104.ExtendedCommitInfoProtoMsg): _104.ExtendedCommitInfo; + toProto(message: _104.ExtendedCommitInfo): Uint8Array; + toProtoMsg(message: _104.ExtendedCommitInfo): _104.ExtendedCommitInfoProtoMsg; + }; + Event: { + typeUrl: string; + encode(message: _104.Event, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Event; + fromPartial(object: Partial<_104.Event>): _104.Event; + fromAmino(object: _104.EventAmino): _104.Event; + toAmino(message: _104.Event): _104.EventAmino; + fromAminoMsg(object: _104.EventAminoMsg): _104.Event; + fromProtoMsg(message: _104.EventProtoMsg): _104.Event; + toProto(message: _104.Event): Uint8Array; + toProtoMsg(message: _104.Event): _104.EventProtoMsg; + }; + EventAttribute: { + typeUrl: string; + encode(message: _104.EventAttribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.EventAttribute; + fromPartial(object: Partial<_104.EventAttribute>): _104.EventAttribute; + fromAmino(object: _104.EventAttributeAmino): _104.EventAttribute; + toAmino(message: _104.EventAttribute): _104.EventAttributeAmino; + fromAminoMsg(object: _104.EventAttributeAminoMsg): _104.EventAttribute; + fromProtoMsg(message: _104.EventAttributeProtoMsg): _104.EventAttribute; + toProto(message: _104.EventAttribute): Uint8Array; + toProtoMsg(message: _104.EventAttribute): _104.EventAttributeProtoMsg; + }; + TxResult: { + typeUrl: string; + encode(message: _104.TxResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.TxResult; + fromPartial(object: Partial<_104.TxResult>): _104.TxResult; + fromAmino(object: _104.TxResultAmino): _104.TxResult; + toAmino(message: _104.TxResult): _104.TxResultAmino; + fromAminoMsg(object: _104.TxResultAminoMsg): _104.TxResult; + fromProtoMsg(message: _104.TxResultProtoMsg): _104.TxResult; + toProto(message: _104.TxResult): Uint8Array; + toProtoMsg(message: _104.TxResult): _104.TxResultProtoMsg; + }; + Validator: { + typeUrl: string; + encode(message: _104.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Validator; + fromPartial(object: Partial<_104.Validator>): _104.Validator; + fromAmino(object: _104.ValidatorAmino): _104.Validator; + toAmino(message: _104.Validator): _104.ValidatorAmino; + fromAminoMsg(object: _104.ValidatorAminoMsg): _104.Validator; + fromProtoMsg(message: _104.ValidatorProtoMsg): _104.Validator; + toProto(message: _104.Validator): Uint8Array; + toProtoMsg(message: _104.Validator): _104.ValidatorProtoMsg; + }; + ValidatorUpdate: { + typeUrl: string; + encode(message: _104.ValidatorUpdate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ValidatorUpdate; + fromPartial(object: Partial<_104.ValidatorUpdate>): _104.ValidatorUpdate; + fromAmino(object: _104.ValidatorUpdateAmino): _104.ValidatorUpdate; + toAmino(message: _104.ValidatorUpdate): _104.ValidatorUpdateAmino; + fromAminoMsg(object: _104.ValidatorUpdateAminoMsg): _104.ValidatorUpdate; + fromProtoMsg(message: _104.ValidatorUpdateProtoMsg): _104.ValidatorUpdate; + toProto(message: _104.ValidatorUpdate): Uint8Array; + toProtoMsg(message: _104.ValidatorUpdate): _104.ValidatorUpdateProtoMsg; + }; + VoteInfo: { + typeUrl: string; + encode(message: _104.VoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.VoteInfo; + fromPartial(object: Partial<_104.VoteInfo>): _104.VoteInfo; + fromAmino(object: _104.VoteInfoAmino): _104.VoteInfo; + toAmino(message: _104.VoteInfo): _104.VoteInfoAmino; + fromAminoMsg(object: _104.VoteInfoAminoMsg): _104.VoteInfo; + fromProtoMsg(message: _104.VoteInfoProtoMsg): _104.VoteInfo; + toProto(message: _104.VoteInfo): Uint8Array; + toProtoMsg(message: _104.VoteInfo): _104.VoteInfoProtoMsg; + }; + ExtendedVoteInfo: { + typeUrl: string; + encode(message: _104.ExtendedVoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ExtendedVoteInfo; + fromPartial(object: Partial<_104.ExtendedVoteInfo>): _104.ExtendedVoteInfo; + fromAmino(object: _104.ExtendedVoteInfoAmino): _104.ExtendedVoteInfo; + toAmino(message: _104.ExtendedVoteInfo): _104.ExtendedVoteInfoAmino; + fromAminoMsg(object: _104.ExtendedVoteInfoAminoMsg): _104.ExtendedVoteInfo; + fromProtoMsg(message: _104.ExtendedVoteInfoProtoMsg): _104.ExtendedVoteInfo; + toProto(message: _104.ExtendedVoteInfo): Uint8Array; + toProtoMsg(message: _104.ExtendedVoteInfo): _104.ExtendedVoteInfoProtoMsg; + }; + Misbehavior: { + typeUrl: string; + encode(message: _104.Misbehavior, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Misbehavior; + fromPartial(object: Partial<_104.Misbehavior>): _104.Misbehavior; + fromAmino(object: _104.MisbehaviorAmino): _104.Misbehavior; + toAmino(message: _104.Misbehavior): _104.MisbehaviorAmino; + fromAminoMsg(object: _104.MisbehaviorAminoMsg): _104.Misbehavior; + fromProtoMsg(message: _104.MisbehaviorProtoMsg): _104.Misbehavior; + toProto(message: _104.Misbehavior): Uint8Array; + toProtoMsg(message: _104.Misbehavior): _104.MisbehaviorProtoMsg; + }; + Snapshot: { + typeUrl: string; + encode(message: _104.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Snapshot; + fromPartial(object: Partial<_104.Snapshot>): _104.Snapshot; + fromAmino(object: _104.SnapshotAmino): _104.Snapshot; + toAmino(message: _104.Snapshot): _104.SnapshotAmino; + fromAminoMsg(object: _104.SnapshotAminoMsg): _104.Snapshot; + fromProtoMsg(message: _104.SnapshotProtoMsg): _104.Snapshot; + toProto(message: _104.Snapshot): Uint8Array; + toProtoMsg(message: _104.Snapshot): _104.SnapshotProtoMsg; + }; + }; + const crypto: { + Proof: { + typeUrl: string; + encode(message: _106.Proof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.Proof; + fromPartial(object: Partial<_106.Proof>): _106.Proof; + fromAmino(object: _106.ProofAmino): _106.Proof; + toAmino(message: _106.Proof): _106.ProofAmino; + fromAminoMsg(object: _106.ProofAminoMsg): _106.Proof; + fromProtoMsg(message: _106.ProofProtoMsg): _106.Proof; + toProto(message: _106.Proof): Uint8Array; + toProtoMsg(message: _106.Proof): _106.ProofProtoMsg; + }; + ValueOp: { + typeUrl: string; + encode(message: _106.ValueOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ValueOp; + fromPartial(object: Partial<_106.ValueOp>): _106.ValueOp; + fromAmino(object: _106.ValueOpAmino): _106.ValueOp; + toAmino(message: _106.ValueOp): _106.ValueOpAmino; + fromAminoMsg(object: _106.ValueOpAminoMsg): _106.ValueOp; + fromProtoMsg(message: _106.ValueOpProtoMsg): _106.ValueOp; + toProto(message: _106.ValueOp): Uint8Array; + toProtoMsg(message: _106.ValueOp): _106.ValueOpProtoMsg; + }; + DominoOp: { + typeUrl: string; + encode(message: _106.DominoOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.DominoOp; + fromPartial(object: Partial<_106.DominoOp>): _106.DominoOp; + fromAmino(object: _106.DominoOpAmino): _106.DominoOp; + toAmino(message: _106.DominoOp): _106.DominoOpAmino; + fromAminoMsg(object: _106.DominoOpAminoMsg): _106.DominoOp; + fromProtoMsg(message: _106.DominoOpProtoMsg): _106.DominoOp; + toProto(message: _106.DominoOp): Uint8Array; + toProtoMsg(message: _106.DominoOp): _106.DominoOpProtoMsg; + }; + ProofOp: { + typeUrl: string; + encode(message: _106.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ProofOp; + fromPartial(object: Partial<_106.ProofOp>): _106.ProofOp; + fromAmino(object: _106.ProofOpAmino): _106.ProofOp; + toAmino(message: _106.ProofOp): _106.ProofOpAmino; + fromAminoMsg(object: _106.ProofOpAminoMsg): _106.ProofOp; + fromProtoMsg(message: _106.ProofOpProtoMsg): _106.ProofOp; + toProto(message: _106.ProofOp): Uint8Array; + toProtoMsg(message: _106.ProofOp): _106.ProofOpProtoMsg; + }; + ProofOps: { + typeUrl: string; + encode(message: _106.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ProofOps; + fromPartial(object: Partial<_106.ProofOps>): _106.ProofOps; + fromAmino(object: _106.ProofOpsAmino): _106.ProofOps; + toAmino(message: _106.ProofOps): _106.ProofOpsAmino; + fromAminoMsg(object: _106.ProofOpsAminoMsg): _106.ProofOps; + fromProtoMsg(message: _106.ProofOpsProtoMsg): _106.ProofOps; + toProto(message: _106.ProofOps): Uint8Array; + toProtoMsg(message: _106.ProofOps): _106.ProofOpsProtoMsg; + }; + PublicKey: { + typeUrl: string; + encode(message: _105.PublicKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _105.PublicKey; + fromPartial(object: Partial<_105.PublicKey>): _105.PublicKey; + fromAmino(object: _105.PublicKeyAmino): _105.PublicKey; + toAmino(message: _105.PublicKey): _105.PublicKeyAmino; + fromAminoMsg(object: _105.PublicKeyAminoMsg): _105.PublicKey; + fromProtoMsg(message: _105.PublicKeyProtoMsg): _105.PublicKey; + toProto(message: _105.PublicKey): Uint8Array; + toProtoMsg(message: _105.PublicKey): _105.PublicKeyProtoMsg; + }; + }; + namespace libs { + const bits: { + BitArray: { + typeUrl: string; + encode(message: _107.BitArray, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _107.BitArray; + fromPartial(object: Partial<_107.BitArray>): _107.BitArray; + fromAmino(object: _107.BitArrayAmino): _107.BitArray; + toAmino(message: _107.BitArray): _107.BitArrayAmino; + fromAminoMsg(object: _107.BitArrayAminoMsg): _107.BitArray; + fromProtoMsg(message: _107.BitArrayProtoMsg): _107.BitArray; + toProto(message: _107.BitArray): Uint8Array; + toProtoMsg(message: _107.BitArray): _107.BitArrayProtoMsg; + }; + }; + } + const p2p: { + NetAddress: { + typeUrl: string; + encode(message: _108.NetAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.NetAddress; + fromPartial(object: Partial<_108.NetAddress>): _108.NetAddress; + fromAmino(object: _108.NetAddressAmino): _108.NetAddress; + toAmino(message: _108.NetAddress): _108.NetAddressAmino; + fromAminoMsg(object: _108.NetAddressAminoMsg): _108.NetAddress; + fromProtoMsg(message: _108.NetAddressProtoMsg): _108.NetAddress; + toProto(message: _108.NetAddress): Uint8Array; + toProtoMsg(message: _108.NetAddress): _108.NetAddressProtoMsg; + }; + ProtocolVersion: { + typeUrl: string; + encode(message: _108.ProtocolVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.ProtocolVersion; + fromPartial(object: Partial<_108.ProtocolVersion>): _108.ProtocolVersion; + fromAmino(object: _108.ProtocolVersionAmino): _108.ProtocolVersion; + toAmino(message: _108.ProtocolVersion): _108.ProtocolVersionAmino; + fromAminoMsg(object: _108.ProtocolVersionAminoMsg): _108.ProtocolVersion; + fromProtoMsg(message: _108.ProtocolVersionProtoMsg): _108.ProtocolVersion; + toProto(message: _108.ProtocolVersion): Uint8Array; + toProtoMsg(message: _108.ProtocolVersion): _108.ProtocolVersionProtoMsg; + }; + DefaultNodeInfo: { + typeUrl: string; + encode(message: _108.DefaultNodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.DefaultNodeInfo; + fromPartial(object: Partial<_108.DefaultNodeInfo>): _108.DefaultNodeInfo; + fromAmino(object: _108.DefaultNodeInfoAmino): _108.DefaultNodeInfo; + toAmino(message: _108.DefaultNodeInfo): _108.DefaultNodeInfoAmino; + fromAminoMsg(object: _108.DefaultNodeInfoAminoMsg): _108.DefaultNodeInfo; + fromProtoMsg(message: _108.DefaultNodeInfoProtoMsg): _108.DefaultNodeInfo; + toProto(message: _108.DefaultNodeInfo): Uint8Array; + toProtoMsg(message: _108.DefaultNodeInfo): _108.DefaultNodeInfoProtoMsg; + }; + DefaultNodeInfoOther: { + typeUrl: string; + encode(message: _108.DefaultNodeInfoOther, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.DefaultNodeInfoOther; + fromPartial(object: Partial<_108.DefaultNodeInfoOther>): _108.DefaultNodeInfoOther; + fromAmino(object: _108.DefaultNodeInfoOtherAmino): _108.DefaultNodeInfoOther; + toAmino(message: _108.DefaultNodeInfoOther): _108.DefaultNodeInfoOtherAmino; + fromAminoMsg(object: _108.DefaultNodeInfoOtherAminoMsg): _108.DefaultNodeInfoOther; + fromProtoMsg(message: _108.DefaultNodeInfoOtherProtoMsg): _108.DefaultNodeInfoOther; + toProto(message: _108.DefaultNodeInfoOther): Uint8Array; + toProtoMsg(message: _108.DefaultNodeInfoOther): _108.DefaultNodeInfoOtherProtoMsg; + }; + }; + const types: { + ValidatorSet: { + typeUrl: string; + encode(message: _113.ValidatorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.ValidatorSet; + fromPartial(object: Partial<_113.ValidatorSet>): _113.ValidatorSet; + fromAmino(object: _113.ValidatorSetAmino): _113.ValidatorSet; + toAmino(message: _113.ValidatorSet): _113.ValidatorSetAmino; + fromAminoMsg(object: _113.ValidatorSetAminoMsg): _113.ValidatorSet; + fromProtoMsg(message: _113.ValidatorSetProtoMsg): _113.ValidatorSet; + toProto(message: _113.ValidatorSet): Uint8Array; + toProtoMsg(message: _113.ValidatorSet): _113.ValidatorSetProtoMsg; + }; + Validator: { + typeUrl: string; + encode(message: _113.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.Validator; + fromPartial(object: Partial<_113.Validator>): _113.Validator; + fromAmino(object: _113.ValidatorAmino): _113.Validator; + toAmino(message: _113.Validator): _113.ValidatorAmino; + fromAminoMsg(object: _113.ValidatorAminoMsg): _113.Validator; + fromProtoMsg(message: _113.ValidatorProtoMsg): _113.Validator; + toProto(message: _113.Validator): Uint8Array; + toProtoMsg(message: _113.Validator): _113.ValidatorProtoMsg; + }; + SimpleValidator: { + typeUrl: string; + encode(message: _113.SimpleValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.SimpleValidator; + fromPartial(object: Partial<_113.SimpleValidator>): _113.SimpleValidator; + fromAmino(object: _113.SimpleValidatorAmino): _113.SimpleValidator; + toAmino(message: _113.SimpleValidator): _113.SimpleValidatorAmino; + fromAminoMsg(object: _113.SimpleValidatorAminoMsg): _113.SimpleValidator; + fromProtoMsg(message: _113.SimpleValidatorProtoMsg): _113.SimpleValidator; + toProto(message: _113.SimpleValidator): Uint8Array; + toProtoMsg(message: _113.SimpleValidator): _113.SimpleValidatorProtoMsg; + }; + blockIDFlagFromJSON(object: any): _112.BlockIDFlag; + blockIDFlagToJSON(object: _112.BlockIDFlag): string; + signedMsgTypeFromJSON(object: any): _112.SignedMsgType; + signedMsgTypeToJSON(object: _112.SignedMsgType): string; + BlockIDFlag: typeof _112.BlockIDFlag; + BlockIDFlagSDKType: typeof _112.BlockIDFlag; + BlockIDFlagAmino: typeof _112.BlockIDFlag; + SignedMsgType: typeof _112.SignedMsgType; + SignedMsgTypeSDKType: typeof _112.SignedMsgType; + SignedMsgTypeAmino: typeof _112.SignedMsgType; + PartSetHeader: { + typeUrl: string; + encode(message: _112.PartSetHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.PartSetHeader; + fromPartial(object: Partial<_112.PartSetHeader>): _112.PartSetHeader; + fromAmino(object: _112.PartSetHeaderAmino): _112.PartSetHeader; + toAmino(message: _112.PartSetHeader): _112.PartSetHeaderAmino; + fromAminoMsg(object: _112.PartSetHeaderAminoMsg): _112.PartSetHeader; + fromProtoMsg(message: _112.PartSetHeaderProtoMsg): _112.PartSetHeader; + toProto(message: _112.PartSetHeader): Uint8Array; + toProtoMsg(message: _112.PartSetHeader): _112.PartSetHeaderProtoMsg; + }; + Part: { + typeUrl: string; + encode(message: _112.Part, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Part; + fromPartial(object: Partial<_112.Part>): _112.Part; + fromAmino(object: _112.PartAmino): _112.Part; + toAmino(message: _112.Part): _112.PartAmino; + fromAminoMsg(object: _112.PartAminoMsg): _112.Part; + fromProtoMsg(message: _112.PartProtoMsg): _112.Part; + toProto(message: _112.Part): Uint8Array; + toProtoMsg(message: _112.Part): _112.PartProtoMsg; + }; + BlockID: { + typeUrl: string; + encode(message: _112.BlockID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.BlockID; + fromPartial(object: Partial<_112.BlockID>): _112.BlockID; + fromAmino(object: _112.BlockIDAmino): _112.BlockID; + toAmino(message: _112.BlockID): _112.BlockIDAmino; + fromAminoMsg(object: _112.BlockIDAminoMsg): _112.BlockID; + fromProtoMsg(message: _112.BlockIDProtoMsg): _112.BlockID; + toProto(message: _112.BlockID): Uint8Array; + toProtoMsg(message: _112.BlockID): _112.BlockIDProtoMsg; + }; + Header: { + typeUrl: string; + encode(message: _112.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Header; + fromPartial(object: Partial<_112.Header>): _112.Header; + fromAmino(object: _112.HeaderAmino): _112.Header; + toAmino(message: _112.Header): _112.HeaderAmino; + fromAminoMsg(object: _112.HeaderAminoMsg): _112.Header; + fromProtoMsg(message: _112.HeaderProtoMsg): _112.Header; + toProto(message: _112.Header): Uint8Array; + toProtoMsg(message: _112.Header): _112.HeaderProtoMsg; + }; + Data: { + typeUrl: string; + encode(message: _112.Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Data; + fromPartial(object: Partial<_112.Data>): _112.Data; + fromAmino(object: _112.DataAmino): _112.Data; + toAmino(message: _112.Data): _112.DataAmino; + fromAminoMsg(object: _112.DataAminoMsg): _112.Data; + fromProtoMsg(message: _112.DataProtoMsg): _112.Data; + toProto(message: _112.Data): Uint8Array; + toProtoMsg(message: _112.Data): _112.DataProtoMsg; + }; + Vote: { + typeUrl: string; + encode(message: _112.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Vote; + fromPartial(object: Partial<_112.Vote>): _112.Vote; + fromAmino(object: _112.VoteAmino): _112.Vote; + toAmino(message: _112.Vote): _112.VoteAmino; + fromAminoMsg(object: _112.VoteAminoMsg): _112.Vote; + fromProtoMsg(message: _112.VoteProtoMsg): _112.Vote; + toProto(message: _112.Vote): Uint8Array; + toProtoMsg(message: _112.Vote): _112.VoteProtoMsg; + }; + Commit: { + typeUrl: string; + encode(message: _112.Commit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Commit; + fromPartial(object: Partial<_112.Commit>): _112.Commit; + fromAmino(object: _112.CommitAmino): _112.Commit; + toAmino(message: _112.Commit): _112.CommitAmino; + fromAminoMsg(object: _112.CommitAminoMsg): _112.Commit; + fromProtoMsg(message: _112.CommitProtoMsg): _112.Commit; + toProto(message: _112.Commit): Uint8Array; + toProtoMsg(message: _112.Commit): _112.CommitProtoMsg; + }; + CommitSig: { + typeUrl: string; + encode(message: _112.CommitSig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.CommitSig; + fromPartial(object: Partial<_112.CommitSig>): _112.CommitSig; + fromAmino(object: _112.CommitSigAmino): _112.CommitSig; + toAmino(message: _112.CommitSig): _112.CommitSigAmino; + fromAminoMsg(object: _112.CommitSigAminoMsg): _112.CommitSig; + fromProtoMsg(message: _112.CommitSigProtoMsg): _112.CommitSig; + toProto(message: _112.CommitSig): Uint8Array; + toProtoMsg(message: _112.CommitSig): _112.CommitSigProtoMsg; + }; + Proposal: { + typeUrl: string; + encode(message: _112.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Proposal; + fromPartial(object: Partial<_112.Proposal>): _112.Proposal; + fromAmino(object: _112.ProposalAmino): _112.Proposal; + toAmino(message: _112.Proposal): _112.ProposalAmino; + fromAminoMsg(object: _112.ProposalAminoMsg): _112.Proposal; + fromProtoMsg(message: _112.ProposalProtoMsg): _112.Proposal; + toProto(message: _112.Proposal): Uint8Array; + toProtoMsg(message: _112.Proposal): _112.ProposalProtoMsg; + }; + SignedHeader: { + typeUrl: string; + encode(message: _112.SignedHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.SignedHeader; + fromPartial(object: Partial<_112.SignedHeader>): _112.SignedHeader; + fromAmino(object: _112.SignedHeaderAmino): _112.SignedHeader; + toAmino(message: _112.SignedHeader): _112.SignedHeaderAmino; + fromAminoMsg(object: _112.SignedHeaderAminoMsg): _112.SignedHeader; + fromProtoMsg(message: _112.SignedHeaderProtoMsg): _112.SignedHeader; + toProto(message: _112.SignedHeader): Uint8Array; + toProtoMsg(message: _112.SignedHeader): _112.SignedHeaderProtoMsg; + }; + LightBlock: { + typeUrl: string; + encode(message: _112.LightBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.LightBlock; + fromPartial(object: Partial<_112.LightBlock>): _112.LightBlock; + fromAmino(object: _112.LightBlockAmino): _112.LightBlock; + toAmino(message: _112.LightBlock): _112.LightBlockAmino; + fromAminoMsg(object: _112.LightBlockAminoMsg): _112.LightBlock; + fromProtoMsg(message: _112.LightBlockProtoMsg): _112.LightBlock; + toProto(message: _112.LightBlock): Uint8Array; + toProtoMsg(message: _112.LightBlock): _112.LightBlockProtoMsg; + }; + BlockMeta: { + typeUrl: string; + encode(message: _112.BlockMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.BlockMeta; + fromPartial(object: Partial<_112.BlockMeta>): _112.BlockMeta; + fromAmino(object: _112.BlockMetaAmino): _112.BlockMeta; + toAmino(message: _112.BlockMeta): _112.BlockMetaAmino; + fromAminoMsg(object: _112.BlockMetaAminoMsg): _112.BlockMeta; + fromProtoMsg(message: _112.BlockMetaProtoMsg): _112.BlockMeta; + toProto(message: _112.BlockMeta): Uint8Array; + toProtoMsg(message: _112.BlockMeta): _112.BlockMetaProtoMsg; + }; + TxProof: { + typeUrl: string; + encode(message: _112.TxProof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.TxProof; + fromPartial(object: Partial<_112.TxProof>): _112.TxProof; + fromAmino(object: _112.TxProofAmino): _112.TxProof; + toAmino(message: _112.TxProof): _112.TxProofAmino; + fromAminoMsg(object: _112.TxProofAminoMsg): _112.TxProof; + fromProtoMsg(message: _112.TxProofProtoMsg): _112.TxProof; + toProto(message: _112.TxProof): Uint8Array; + toProtoMsg(message: _112.TxProof): _112.TxProofProtoMsg; + }; + ConsensusParams: { + typeUrl: string; + encode(message: _111.ConsensusParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.ConsensusParams; + fromPartial(object: Partial<_111.ConsensusParams>): _111.ConsensusParams; + fromAmino(object: _111.ConsensusParamsAmino): _111.ConsensusParams; + toAmino(message: _111.ConsensusParams): _111.ConsensusParamsAmino; + fromAminoMsg(object: _111.ConsensusParamsAminoMsg): _111.ConsensusParams; + fromProtoMsg(message: _111.ConsensusParamsProtoMsg): _111.ConsensusParams; + toProto(message: _111.ConsensusParams): Uint8Array; + toProtoMsg(message: _111.ConsensusParams): _111.ConsensusParamsProtoMsg; + }; + BlockParams: { + typeUrl: string; + encode(message: _111.BlockParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.BlockParams; + fromPartial(object: Partial<_111.BlockParams>): _111.BlockParams; + fromAmino(object: _111.BlockParamsAmino): _111.BlockParams; + toAmino(message: _111.BlockParams): _111.BlockParamsAmino; + fromAminoMsg(object: _111.BlockParamsAminoMsg): _111.BlockParams; + fromProtoMsg(message: _111.BlockParamsProtoMsg): _111.BlockParams; + toProto(message: _111.BlockParams): Uint8Array; + toProtoMsg(message: _111.BlockParams): _111.BlockParamsProtoMsg; + }; + EvidenceParams: { + typeUrl: string; + encode(message: _111.EvidenceParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.EvidenceParams; + fromPartial(object: Partial<_111.EvidenceParams>): _111.EvidenceParams; + fromAmino(object: _111.EvidenceParamsAmino): _111.EvidenceParams; + toAmino(message: _111.EvidenceParams): _111.EvidenceParamsAmino; + fromAminoMsg(object: _111.EvidenceParamsAminoMsg): _111.EvidenceParams; + fromProtoMsg(message: _111.EvidenceParamsProtoMsg): _111.EvidenceParams; + toProto(message: _111.EvidenceParams): Uint8Array; + toProtoMsg(message: _111.EvidenceParams): _111.EvidenceParamsProtoMsg; + }; + ValidatorParams: { + typeUrl: string; + encode(message: _111.ValidatorParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.ValidatorParams; + fromPartial(object: Partial<_111.ValidatorParams>): _111.ValidatorParams; + fromAmino(object: _111.ValidatorParamsAmino): _111.ValidatorParams; + toAmino(message: _111.ValidatorParams): _111.ValidatorParamsAmino; + fromAminoMsg(object: _111.ValidatorParamsAminoMsg): _111.ValidatorParams; + fromProtoMsg(message: _111.ValidatorParamsProtoMsg): _111.ValidatorParams; + toProto(message: _111.ValidatorParams): Uint8Array; + toProtoMsg(message: _111.ValidatorParams): _111.ValidatorParamsProtoMsg; + }; + VersionParams: { + typeUrl: string; + encode(message: _111.VersionParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.VersionParams; + fromPartial(object: Partial<_111.VersionParams>): _111.VersionParams; + fromAmino(object: _111.VersionParamsAmino): _111.VersionParams; + toAmino(message: _111.VersionParams): _111.VersionParamsAmino; + fromAminoMsg(object: _111.VersionParamsAminoMsg): _111.VersionParams; + fromProtoMsg(message: _111.VersionParamsProtoMsg): _111.VersionParams; + toProto(message: _111.VersionParams): Uint8Array; + toProtoMsg(message: _111.VersionParams): _111.VersionParamsProtoMsg; + }; + HashedParams: { + typeUrl: string; + encode(message: _111.HashedParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.HashedParams; + fromPartial(object: Partial<_111.HashedParams>): _111.HashedParams; + fromAmino(object: _111.HashedParamsAmino): _111.HashedParams; + toAmino(message: _111.HashedParams): _111.HashedParamsAmino; + fromAminoMsg(object: _111.HashedParamsAminoMsg): _111.HashedParams; + fromProtoMsg(message: _111.HashedParamsProtoMsg): _111.HashedParams; + toProto(message: _111.HashedParams): Uint8Array; + toProtoMsg(message: _111.HashedParams): _111.HashedParamsProtoMsg; + }; + Evidence: { + typeUrl: string; + encode(message: _110.Evidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.Evidence; + fromPartial(object: Partial<_110.Evidence>): _110.Evidence; + fromAmino(object: _110.EvidenceAmino): _110.Evidence; + toAmino(message: _110.Evidence): _110.EvidenceAmino; + fromAminoMsg(object: _110.EvidenceAminoMsg): _110.Evidence; + fromProtoMsg(message: _110.EvidenceProtoMsg): _110.Evidence; + toProto(message: _110.Evidence): Uint8Array; + toProtoMsg(message: _110.Evidence): _110.EvidenceProtoMsg; + }; + DuplicateVoteEvidence: { + typeUrl: string; + encode(message: _110.DuplicateVoteEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.DuplicateVoteEvidence; + fromPartial(object: Partial<_110.DuplicateVoteEvidence>): _110.DuplicateVoteEvidence; + fromAmino(object: _110.DuplicateVoteEvidenceAmino): _110.DuplicateVoteEvidence; + toAmino(message: _110.DuplicateVoteEvidence): _110.DuplicateVoteEvidenceAmino; + fromAminoMsg(object: _110.DuplicateVoteEvidenceAminoMsg): _110.DuplicateVoteEvidence; + fromProtoMsg(message: _110.DuplicateVoteEvidenceProtoMsg): _110.DuplicateVoteEvidence; + toProto(message: _110.DuplicateVoteEvidence): Uint8Array; + toProtoMsg(message: _110.DuplicateVoteEvidence): _110.DuplicateVoteEvidenceProtoMsg; + }; + LightClientAttackEvidence: { + typeUrl: string; + encode(message: _110.LightClientAttackEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.LightClientAttackEvidence; + fromPartial(object: Partial<_110.LightClientAttackEvidence>): _110.LightClientAttackEvidence; + fromAmino(object: _110.LightClientAttackEvidenceAmino): _110.LightClientAttackEvidence; + toAmino(message: _110.LightClientAttackEvidence): _110.LightClientAttackEvidenceAmino; + fromAminoMsg(object: _110.LightClientAttackEvidenceAminoMsg): _110.LightClientAttackEvidence; + fromProtoMsg(message: _110.LightClientAttackEvidenceProtoMsg): _110.LightClientAttackEvidence; + toProto(message: _110.LightClientAttackEvidence): Uint8Array; + toProtoMsg(message: _110.LightClientAttackEvidence): _110.LightClientAttackEvidenceProtoMsg; + }; + EvidenceList: { + typeUrl: string; + encode(message: _110.EvidenceList, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.EvidenceList; + fromPartial(object: Partial<_110.EvidenceList>): _110.EvidenceList; + fromAmino(object: _110.EvidenceListAmino): _110.EvidenceList; + toAmino(message: _110.EvidenceList): _110.EvidenceListAmino; + fromAminoMsg(object: _110.EvidenceListAminoMsg): _110.EvidenceList; + fromProtoMsg(message: _110.EvidenceListProtoMsg): _110.EvidenceList; + toProto(message: _110.EvidenceList): Uint8Array; + toProtoMsg(message: _110.EvidenceList): _110.EvidenceListProtoMsg; + }; + Block: { + typeUrl: string; + encode(message: _109.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _109.Block; + fromPartial(object: Partial<_109.Block>): _109.Block; + fromAmino(object: _109.BlockAmino): _109.Block; + toAmino(message: _109.Block): _109.BlockAmino; + fromAminoMsg(object: _109.BlockAminoMsg): _109.Block; + fromProtoMsg(message: _109.BlockProtoMsg): _109.Block; + toProto(message: _109.Block): Uint8Array; + toProtoMsg(message: _109.Block): _109.BlockProtoMsg; + }; + }; + const version: { + App: { + typeUrl: string; + encode(message: _114.App, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _114.App; + fromPartial(object: Partial<_114.App>): _114.App; + fromAmino(object: _114.AppAmino): _114.App; + toAmino(message: _114.App): _114.AppAmino; + fromAminoMsg(object: _114.AppAminoMsg): _114.App; + fromProtoMsg(message: _114.AppProtoMsg): _114.App; + toProto(message: _114.App): Uint8Array; + toProtoMsg(message: _114.App): _114.AppProtoMsg; + }; + Consensus: { + typeUrl: string; + encode(message: _114.Consensus, writer?: import("..").BinaryWriter): import("..").BinaryWriter; + decode(input: Uint8Array | import("..").BinaryReader, length?: number): _114.Consensus; + fromPartial(object: Partial<_114.Consensus>): _114.Consensus; + fromAmino(object: _114.ConsensusAmino): _114.Consensus; + toAmino(message: _114.Consensus): _114.ConsensusAmino; + fromAminoMsg(object: _114.ConsensusAminoMsg): _114.Consensus; + fromProtoMsg(message: _114.ConsensusProtoMsg): _114.Consensus; + toProto(message: _114.Consensus): Uint8Array; + toProtoMsg(message: _114.Consensus): _114.ConsensusProtoMsg; + }; + }; +} diff --git a/packages/api/dist/tendermint/bundle.js b/packages/api/dist/tendermint/bundle.js new file mode 100644 index 00000000..31531a9b --- /dev/null +++ b/packages/api/dist/tendermint/bundle.js @@ -0,0 +1,67 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.tendermint = void 0; +//@ts-nocheck +const _104 = __importStar(require("./abci/types")); +const _105 = __importStar(require("./crypto/keys")); +const _106 = __importStar(require("./crypto/proof")); +const _107 = __importStar(require("./libs/bits/types")); +const _108 = __importStar(require("./p2p/types")); +const _109 = __importStar(require("./types/block")); +const _110 = __importStar(require("./types/evidence")); +const _111 = __importStar(require("./types/params")); +const _112 = __importStar(require("./types/types")); +const _113 = __importStar(require("./types/validator")); +const _114 = __importStar(require("./version/types")); +var tendermint; +(function (tendermint) { + tendermint.abci = { + ..._104 + }; + tendermint.crypto = { + ..._105, + ..._106 + }; + let libs; + (function (libs) { + libs.bits = { + ..._107 + }; + })(libs = tendermint.libs || (tendermint.libs = {})); + tendermint.p2p = { + ..._108 + }; + tendermint.types = { + ..._109, + ..._110, + ..._111, + ..._112, + ..._113 + }; + tendermint.version = { + ..._114 + }; +})(tendermint || (exports.tendermint = tendermint = {})); diff --git a/packages/api/dist/tendermint/crypto/keys.d.ts b/packages/api/dist/tendermint/crypto/keys.d.ts new file mode 100644 index 00000000..205e9ff8 --- /dev/null +++ b/packages/api/dist/tendermint/crypto/keys.d.ts @@ -0,0 +1,36 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKey { + ed25519?: Uint8Array; + secp256k1?: Uint8Array; +} +export interface PublicKeyProtoMsg { + typeUrl: "/tendermint.crypto.PublicKey"; + value: Uint8Array; +} +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKeyAmino { + ed25519?: string; + secp256k1?: string; +} +export interface PublicKeyAminoMsg { + type: "/tendermint.crypto.PublicKey"; + value: PublicKeyAmino; +} +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKeySDKType { + ed25519?: Uint8Array; + secp256k1?: Uint8Array; +} +export declare const PublicKey: { + typeUrl: string; + encode(message: PublicKey, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PublicKey; + fromPartial(object: Partial): PublicKey; + fromAmino(object: PublicKeyAmino): PublicKey; + toAmino(message: PublicKey): PublicKeyAmino; + fromAminoMsg(object: PublicKeyAminoMsg): PublicKey; + fromProtoMsg(message: PublicKeyProtoMsg): PublicKey; + toProto(message: PublicKey): Uint8Array; + toProtoMsg(message: PublicKey): PublicKeyProtoMsg; +}; diff --git a/packages/api/dist/tendermint/crypto/keys.js b/packages/api/dist/tendermint/crypto/keys.js new file mode 100644 index 00000000..ba451054 --- /dev/null +++ b/packages/api/dist/tendermint/crypto/keys.js @@ -0,0 +1,81 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PublicKey = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBasePublicKey() { + return { + ed25519: undefined, + secp256k1: undefined + }; +} +exports.PublicKey = { + typeUrl: "/tendermint.crypto.PublicKey", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.ed25519 !== undefined) { + writer.uint32(10).bytes(message.ed25519); + } + if (message.secp256k1 !== undefined) { + writer.uint32(18).bytes(message.secp256k1); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePublicKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ed25519 = reader.bytes(); + break; + case 2: + message.secp256k1 = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePublicKey(); + message.ed25519 = object.ed25519 ?? undefined; + message.secp256k1 = object.secp256k1 ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBasePublicKey(); + if (object.ed25519 !== undefined && object.ed25519 !== null) { + message.ed25519 = (0, helpers_1.bytesFromBase64)(object.ed25519); + } + if (object.secp256k1 !== undefined && object.secp256k1 !== null) { + message.secp256k1 = (0, helpers_1.bytesFromBase64)(object.secp256k1); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.ed25519 = message.ed25519 ? (0, helpers_1.base64FromBytes)(message.ed25519) : undefined; + obj.secp256k1 = message.secp256k1 ? (0, helpers_1.base64FromBytes)(message.secp256k1) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PublicKey.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.PublicKey.decode(message.value); + }, + toProto(message) { + return exports.PublicKey.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.PublicKey", + value: exports.PublicKey.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/crypto/proof.d.ts b/packages/api/dist/tendermint/crypto/proof.d.ts new file mode 100644 index 00000000..6e4c286a --- /dev/null +++ b/packages/api/dist/tendermint/crypto/proof.d.ts @@ -0,0 +1,192 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface Proof { + total: bigint; + index: bigint; + leafHash: Uint8Array; + aunts: Uint8Array[]; +} +export interface ProofProtoMsg { + typeUrl: "/tendermint.crypto.Proof"; + value: Uint8Array; +} +export interface ProofAmino { + total?: string; + index?: string; + leaf_hash?: string; + aunts?: string[]; +} +export interface ProofAminoMsg { + type: "/tendermint.crypto.Proof"; + value: ProofAmino; +} +export interface ProofSDKType { + total: bigint; + index: bigint; + leaf_hash: Uint8Array; + aunts: Uint8Array[]; +} +export interface ValueOp { + /** Encoded in ProofOp.Key. */ + key: Uint8Array; + /** To encode in ProofOp.Data */ + proof?: Proof; +} +export interface ValueOpProtoMsg { + typeUrl: "/tendermint.crypto.ValueOp"; + value: Uint8Array; +} +export interface ValueOpAmino { + /** Encoded in ProofOp.Key. */ + key?: string; + /** To encode in ProofOp.Data */ + proof?: ProofAmino; +} +export interface ValueOpAminoMsg { + type: "/tendermint.crypto.ValueOp"; + value: ValueOpAmino; +} +export interface ValueOpSDKType { + key: Uint8Array; + proof?: ProofSDKType; +} +export interface DominoOp { + key: string; + input: string; + output: string; +} +export interface DominoOpProtoMsg { + typeUrl: "/tendermint.crypto.DominoOp"; + value: Uint8Array; +} +export interface DominoOpAmino { + key?: string; + input?: string; + output?: string; +} +export interface DominoOpAminoMsg { + type: "/tendermint.crypto.DominoOp"; + value: DominoOpAmino; +} +export interface DominoOpSDKType { + key: string; + input: string; + output: string; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOp { + type: string; + key: Uint8Array; + data: Uint8Array; +} +export interface ProofOpProtoMsg { + typeUrl: "/tendermint.crypto.ProofOp"; + value: Uint8Array; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOpAmino { + type?: string; + key?: string; + data?: string; +} +export interface ProofOpAminoMsg { + type: "/tendermint.crypto.ProofOp"; + value: ProofOpAmino; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOpSDKType { + type: string; + key: Uint8Array; + data: Uint8Array; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOps { + ops: ProofOp[]; +} +export interface ProofOpsProtoMsg { + typeUrl: "/tendermint.crypto.ProofOps"; + value: Uint8Array; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOpsAmino { + ops?: ProofOpAmino[]; +} +export interface ProofOpsAminoMsg { + type: "/tendermint.crypto.ProofOps"; + value: ProofOpsAmino; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOpsSDKType { + ops: ProofOpSDKType[]; +} +export declare const Proof: { + typeUrl: string; + encode(message: Proof, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proof; + fromPartial(object: Partial): Proof; + fromAmino(object: ProofAmino): Proof; + toAmino(message: Proof): ProofAmino; + fromAminoMsg(object: ProofAminoMsg): Proof; + fromProtoMsg(message: ProofProtoMsg): Proof; + toProto(message: Proof): Uint8Array; + toProtoMsg(message: Proof): ProofProtoMsg; +}; +export declare const ValueOp: { + typeUrl: string; + encode(message: ValueOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValueOp; + fromPartial(object: Partial): ValueOp; + fromAmino(object: ValueOpAmino): ValueOp; + toAmino(message: ValueOp): ValueOpAmino; + fromAminoMsg(object: ValueOpAminoMsg): ValueOp; + fromProtoMsg(message: ValueOpProtoMsg): ValueOp; + toProto(message: ValueOp): Uint8Array; + toProtoMsg(message: ValueOp): ValueOpProtoMsg; +}; +export declare const DominoOp: { + typeUrl: string; + encode(message: DominoOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DominoOp; + fromPartial(object: Partial): DominoOp; + fromAmino(object: DominoOpAmino): DominoOp; + toAmino(message: DominoOp): DominoOpAmino; + fromAminoMsg(object: DominoOpAminoMsg): DominoOp; + fromProtoMsg(message: DominoOpProtoMsg): DominoOp; + toProto(message: DominoOp): Uint8Array; + toProtoMsg(message: DominoOp): DominoOpProtoMsg; +}; +export declare const ProofOp: { + typeUrl: string; + encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; + fromPartial(object: Partial): ProofOp; + fromAmino(object: ProofOpAmino): ProofOp; + toAmino(message: ProofOp): ProofOpAmino; + fromAminoMsg(object: ProofOpAminoMsg): ProofOp; + fromProtoMsg(message: ProofOpProtoMsg): ProofOp; + toProto(message: ProofOp): Uint8Array; + toProtoMsg(message: ProofOp): ProofOpProtoMsg; +}; +export declare const ProofOps: { + typeUrl: string; + encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; + fromPartial(object: Partial): ProofOps; + fromAmino(object: ProofOpsAmino): ProofOps; + toAmino(message: ProofOps): ProofOpsAmino; + fromAminoMsg(object: ProofOpsAminoMsg): ProofOps; + fromProtoMsg(message: ProofOpsProtoMsg): ProofOps; + toProto(message: ProofOps): Uint8Array; + toProtoMsg(message: ProofOps): ProofOpsProtoMsg; +}; diff --git a/packages/api/dist/tendermint/crypto/proof.js b/packages/api/dist/tendermint/crypto/proof.js new file mode 100644 index 00000000..696c41ad --- /dev/null +++ b/packages/api/dist/tendermint/crypto/proof.js @@ -0,0 +1,423 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProofOps = exports.ProofOp = exports.DominoOp = exports.ValueOp = exports.Proof = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBaseProof() { + return { + total: BigInt(0), + index: BigInt(0), + leafHash: new Uint8Array(), + aunts: [] + }; +} +exports.Proof = { + typeUrl: "/tendermint.crypto.Proof", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.total !== BigInt(0)) { + writer.uint32(8).int64(message.total); + } + if (message.index !== BigInt(0)) { + writer.uint32(16).int64(message.index); + } + if (message.leafHash.length !== 0) { + writer.uint32(26).bytes(message.leafHash); + } + for (const v of message.aunts) { + writer.uint32(34).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.int64(); + break; + case 2: + message.index = reader.int64(); + break; + case 3: + message.leafHash = reader.bytes(); + break; + case 4: + message.aunts.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProof(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.leafHash = object.leafHash ?? new Uint8Array(); + message.aunts = object.aunts?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProof(); + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.leaf_hash !== undefined && object.leaf_hash !== null) { + message.leafHash = (0, helpers_1.bytesFromBase64)(object.leaf_hash); + } + message.aunts = object.aunts?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.leaf_hash = message.leafHash ? (0, helpers_1.base64FromBytes)(message.leafHash) : undefined; + if (message.aunts) { + obj.aunts = message.aunts.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.aunts = message.aunts; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Proof.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Proof.decode(message.value); + }, + toProto(message) { + return exports.Proof.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.Proof", + value: exports.Proof.encode(message).finish() + }; + } +}; +function createBaseValueOp() { + return { + key: new Uint8Array(), + proof: undefined + }; +} +exports.ValueOp = { + typeUrl: "/tendermint.crypto.ValueOp", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.proof !== undefined) { + exports.Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValueOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.proof = exports.Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValueOp(); + message.key = object.key ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? exports.Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseValueOp(); + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = exports.Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + obj.proof = message.proof ? exports.Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValueOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ValueOp.decode(message.value); + }, + toProto(message) { + return exports.ValueOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ValueOp", + value: exports.ValueOp.encode(message).finish() + }; + } +}; +function createBaseDominoOp() { + return { + key: "", + input: "", + output: "" + }; +} +exports.DominoOp = { + typeUrl: "/tendermint.crypto.DominoOp", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.input !== "") { + writer.uint32(18).string(message.input); + } + if (message.output !== "") { + writer.uint32(26).string(message.output); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDominoOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.input = reader.string(); + break; + case 3: + message.output = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDominoOp(); + message.key = object.key ?? ""; + message.input = object.input ?? ""; + message.output = object.output ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDominoOp(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.input !== undefined && object.input !== null) { + message.input = object.input; + } + if (object.output !== undefined && object.output !== null) { + message.output = object.output; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.input = message.input === "" ? undefined : message.input; + obj.output = message.output === "" ? undefined : message.output; + return obj; + }, + fromAminoMsg(object) { + return exports.DominoOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DominoOp.decode(message.value); + }, + toProto(message) { + return exports.DominoOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.DominoOp", + value: exports.DominoOp.encode(message).finish() + }; + } +}; +function createBaseProofOp() { + return { + type: "", + key: new Uint8Array(), + data: new Uint8Array() + }; +} +exports.ProofOp = { + typeUrl: "/tendermint.crypto.ProofOp", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + if (message.key.length !== 0) { + writer.uint32(18).bytes(message.key); + } + if (message.data.length !== 0) { + writer.uint32(26).bytes(message.data); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.key = reader.bytes(); + break; + case 3: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProofOp(); + message.type = object.type ?? ""; + message.key = object.key ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseProofOp(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.key !== undefined && object.key !== null) { + message.key = (0, helpers_1.bytesFromBase64)(object.key); + } + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === "" ? undefined : message.type; + obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ProofOp.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ProofOp.decode(message.value); + }, + toProto(message) { + return exports.ProofOp.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ProofOp", + value: exports.ProofOp.encode(message).finish() + }; + } +}; +function createBaseProofOps() { + return { + ops: [] + }; +} +exports.ProofOps = { + typeUrl: "/tendermint.crypto.ProofOps", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.ops) { + exports.ProofOp.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOps(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ops.push(exports.ProofOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => exports.ProofOp.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => exports.ProofOp.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.ops) { + obj.ops = message.ops.map(e => e ? exports.ProofOp.toAmino(e) : undefined); + } + else { + obj.ops = message.ops; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ProofOps.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ProofOps.decode(message.value); + }, + toProto(message) { + return exports.ProofOps.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.crypto.ProofOps", + value: exports.ProofOps.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/libs/bits/types.d.ts b/packages/api/dist/tendermint/libs/bits/types.d.ts new file mode 100644 index 00000000..f653a3c5 --- /dev/null +++ b/packages/api/dist/tendermint/libs/bits/types.d.ts @@ -0,0 +1,33 @@ +import { BinaryReader, BinaryWriter } from "../../../binary"; +export interface BitArray { + bits: bigint; + elems: bigint[]; +} +export interface BitArrayProtoMsg { + typeUrl: "/tendermint.libs.bits.BitArray"; + value: Uint8Array; +} +export interface BitArrayAmino { + bits?: string; + elems?: string[]; +} +export interface BitArrayAminoMsg { + type: "/tendermint.libs.bits.BitArray"; + value: BitArrayAmino; +} +export interface BitArraySDKType { + bits: bigint; + elems: bigint[]; +} +export declare const BitArray: { + typeUrl: string; + encode(message: BitArray, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BitArray; + fromPartial(object: Partial): BitArray; + fromAmino(object: BitArrayAmino): BitArray; + toAmino(message: BitArray): BitArrayAmino; + fromAminoMsg(object: BitArrayAminoMsg): BitArray; + fromProtoMsg(message: BitArrayProtoMsg): BitArray; + toProto(message: BitArray): Uint8Array; + toProtoMsg(message: BitArray): BitArrayProtoMsg; +}; diff --git a/packages/api/dist/tendermint/libs/bits/types.js b/packages/api/dist/tendermint/libs/bits/types.js new file mode 100644 index 00000000..d88654d3 --- /dev/null +++ b/packages/api/dist/tendermint/libs/bits/types.js @@ -0,0 +1,93 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BitArray = void 0; +//@ts-nocheck +const binary_1 = require("../../../binary"); +function createBaseBitArray() { + return { + bits: BigInt(0), + elems: [] + }; +} +exports.BitArray = { + typeUrl: "/tendermint.libs.bits.BitArray", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.bits !== BigInt(0)) { + writer.uint32(8).int64(message.bits); + } + writer.uint32(18).fork(); + for (const v of message.elems) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bits = reader.int64(); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.elems.push(reader.uint64()); + } + } + else { + message.elems.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBitArray(); + message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); + message.elems = object.elems?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object) { + const message = createBaseBitArray(); + if (object.bits !== undefined && object.bits !== null) { + message.bits = BigInt(object.bits); + } + message.elems = object.elems?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; + if (message.elems) { + obj.elems = message.elems.map(e => e.toString()); + } + else { + obj.elems = message.elems; + } + return obj; + }, + fromAminoMsg(object) { + return exports.BitArray.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BitArray.decode(message.value); + }, + toProto(message) { + return exports.BitArray.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.libs.bits.BitArray", + value: exports.BitArray.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/p2p/types.d.ts b/packages/api/dist/tendermint/p2p/types.d.ts new file mode 100644 index 00000000..67765367 --- /dev/null +++ b/packages/api/dist/tendermint/p2p/types.d.ts @@ -0,0 +1,153 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface NetAddress { + id: string; + ip: string; + port: number; +} +export interface NetAddressProtoMsg { + typeUrl: "/tendermint.p2p.NetAddress"; + value: Uint8Array; +} +export interface NetAddressAmino { + id?: string; + ip?: string; + port?: number; +} +export interface NetAddressAminoMsg { + type: "/tendermint.p2p.NetAddress"; + value: NetAddressAmino; +} +export interface NetAddressSDKType { + id: string; + ip: string; + port: number; +} +export interface ProtocolVersion { + p2p: bigint; + block: bigint; + app: bigint; +} +export interface ProtocolVersionProtoMsg { + typeUrl: "/tendermint.p2p.ProtocolVersion"; + value: Uint8Array; +} +export interface ProtocolVersionAmino { + p2p?: string; + block?: string; + app?: string; +} +export interface ProtocolVersionAminoMsg { + type: "/tendermint.p2p.ProtocolVersion"; + value: ProtocolVersionAmino; +} +export interface ProtocolVersionSDKType { + p2p: bigint; + block: bigint; + app: bigint; +} +export interface DefaultNodeInfo { + protocolVersion: ProtocolVersion; + defaultNodeId: string; + listenAddr: string; + network: string; + version: string; + channels: Uint8Array; + moniker: string; + other: DefaultNodeInfoOther; +} +export interface DefaultNodeInfoProtoMsg { + typeUrl: "/tendermint.p2p.DefaultNodeInfo"; + value: Uint8Array; +} +export interface DefaultNodeInfoAmino { + protocol_version?: ProtocolVersionAmino; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + channels?: string; + moniker?: string; + other?: DefaultNodeInfoOtherAmino; +} +export interface DefaultNodeInfoAminoMsg { + type: "/tendermint.p2p.DefaultNodeInfo"; + value: DefaultNodeInfoAmino; +} +export interface DefaultNodeInfoSDKType { + protocol_version: ProtocolVersionSDKType; + default_node_id: string; + listen_addr: string; + network: string; + version: string; + channels: Uint8Array; + moniker: string; + other: DefaultNodeInfoOtherSDKType; +} +export interface DefaultNodeInfoOther { + txIndex: string; + rpcAddress: string; +} +export interface DefaultNodeInfoOtherProtoMsg { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther"; + value: Uint8Array; +} +export interface DefaultNodeInfoOtherAmino { + tx_index?: string; + rpc_address?: string; +} +export interface DefaultNodeInfoOtherAminoMsg { + type: "/tendermint.p2p.DefaultNodeInfoOther"; + value: DefaultNodeInfoOtherAmino; +} +export interface DefaultNodeInfoOtherSDKType { + tx_index: string; + rpc_address: string; +} +export declare const NetAddress: { + typeUrl: string; + encode(message: NetAddress, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): NetAddress; + fromPartial(object: Partial): NetAddress; + fromAmino(object: NetAddressAmino): NetAddress; + toAmino(message: NetAddress): NetAddressAmino; + fromAminoMsg(object: NetAddressAminoMsg): NetAddress; + fromProtoMsg(message: NetAddressProtoMsg): NetAddress; + toProto(message: NetAddress): Uint8Array; + toProtoMsg(message: NetAddress): NetAddressProtoMsg; +}; +export declare const ProtocolVersion: { + typeUrl: string; + encode(message: ProtocolVersion, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion; + fromPartial(object: Partial): ProtocolVersion; + fromAmino(object: ProtocolVersionAmino): ProtocolVersion; + toAmino(message: ProtocolVersion): ProtocolVersionAmino; + fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion; + fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion; + toProto(message: ProtocolVersion): Uint8Array; + toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg; +}; +export declare const DefaultNodeInfo: { + typeUrl: string; + encode(message: DefaultNodeInfo, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo; + fromPartial(object: Partial): DefaultNodeInfo; + fromAmino(object: DefaultNodeInfoAmino): DefaultNodeInfo; + toAmino(message: DefaultNodeInfo): DefaultNodeInfoAmino; + fromAminoMsg(object: DefaultNodeInfoAminoMsg): DefaultNodeInfo; + fromProtoMsg(message: DefaultNodeInfoProtoMsg): DefaultNodeInfo; + toProto(message: DefaultNodeInfo): Uint8Array; + toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg; +}; +export declare const DefaultNodeInfoOther: { + typeUrl: string; + encode(message: DefaultNodeInfoOther, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther; + fromPartial(object: Partial): DefaultNodeInfoOther; + fromAmino(object: DefaultNodeInfoOtherAmino): DefaultNodeInfoOther; + toAmino(message: DefaultNodeInfoOther): DefaultNodeInfoOtherAmino; + fromAminoMsg(object: DefaultNodeInfoOtherAminoMsg): DefaultNodeInfoOther; + fromProtoMsg(message: DefaultNodeInfoOtherProtoMsg): DefaultNodeInfoOther; + toProto(message: DefaultNodeInfoOther): Uint8Array; + toProtoMsg(message: DefaultNodeInfoOther): DefaultNodeInfoOtherProtoMsg; +}; diff --git a/packages/api/dist/tendermint/p2p/types.js b/packages/api/dist/tendermint/p2p/types.js new file mode 100644 index 00000000..0443f903 --- /dev/null +++ b/packages/api/dist/tendermint/p2p/types.js @@ -0,0 +1,402 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefaultNodeInfoOther = exports.DefaultNodeInfo = exports.ProtocolVersion = exports.NetAddress = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBaseNetAddress() { + return { + id: "", + ip: "", + port: 0 + }; +} +exports.NetAddress = { + typeUrl: "/tendermint.p2p.NetAddress", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.ip !== "") { + writer.uint32(18).string(message.ip); + } + if (message.port !== 0) { + writer.uint32(24).uint32(message.port); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.ip = reader.string(); + break; + case 3: + message.port = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseNetAddress(); + message.id = object.id ?? ""; + message.ip = object.ip ?? ""; + message.port = object.port ?? 0; + return message; + }, + fromAmino(object) { + const message = createBaseNetAddress(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.ip !== undefined && object.ip !== null) { + message.ip = object.ip; + } + if (object.port !== undefined && object.port !== null) { + message.port = object.port; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.ip = message.ip === "" ? undefined : message.ip; + obj.port = message.port === 0 ? undefined : message.port; + return obj; + }, + fromAminoMsg(object) { + return exports.NetAddress.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.NetAddress.decode(message.value); + }, + toProto(message) { + return exports.NetAddress.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.NetAddress", + value: exports.NetAddress.encode(message).finish() + }; + } +}; +function createBaseProtocolVersion() { + return { + p2p: BigInt(0), + block: BigInt(0), + app: BigInt(0) + }; +} +exports.ProtocolVersion = { + typeUrl: "/tendermint.p2p.ProtocolVersion", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.p2p !== BigInt(0)) { + writer.uint32(8).uint64(message.p2p); + } + if (message.block !== BigInt(0)) { + writer.uint32(16).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(24).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProtocolVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.p2p = reader.uint64(); + break; + case 2: + message.block = reader.uint64(); + break; + case 3: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProtocolVersion(); + message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseProtocolVersion(); + if (object.p2p !== undefined && object.p2p !== null) { + message.p2p = BigInt(object.p2p); + } + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ProtocolVersion.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ProtocolVersion.decode(message.value); + }, + toProto(message) { + return exports.ProtocolVersion.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.ProtocolVersion", + value: exports.ProtocolVersion.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfo() { + return { + protocolVersion: exports.ProtocolVersion.fromPartial({}), + defaultNodeId: "", + listenAddr: "", + network: "", + version: "", + channels: new Uint8Array(), + moniker: "", + other: exports.DefaultNodeInfoOther.fromPartial({}) + }; +} +exports.DefaultNodeInfo = { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.protocolVersion !== undefined) { + exports.ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultNodeId !== "") { + writer.uint32(18).string(message.defaultNodeId); + } + if (message.listenAddr !== "") { + writer.uint32(26).string(message.listenAddr); + } + if (message.network !== "") { + writer.uint32(34).string(message.network); + } + if (message.version !== "") { + writer.uint32(42).string(message.version); + } + if (message.channels.length !== 0) { + writer.uint32(50).bytes(message.channels); + } + if (message.moniker !== "") { + writer.uint32(58).string(message.moniker); + } + if (message.other !== undefined) { + exports.DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocolVersion = exports.ProtocolVersion.decode(reader, reader.uint32()); + break; + case 2: + message.defaultNodeId = reader.string(); + break; + case 3: + message.listenAddr = reader.string(); + break; + case 4: + message.network = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.channels = reader.bytes(); + break; + case 7: + message.moniker = reader.string(); + break; + case 8: + message.other = exports.DefaultNodeInfoOther.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDefaultNodeInfo(); + message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? exports.ProtocolVersion.fromPartial(object.protocolVersion) : undefined; + message.defaultNodeId = object.defaultNodeId ?? ""; + message.listenAddr = object.listenAddr ?? ""; + message.network = object.network ?? ""; + message.version = object.version ?? ""; + message.channels = object.channels ?? new Uint8Array(); + message.moniker = object.moniker ?? ""; + message.other = object.other !== undefined && object.other !== null ? exports.DefaultNodeInfoOther.fromPartial(object.other) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDefaultNodeInfo(); + if (object.protocol_version !== undefined && object.protocol_version !== null) { + message.protocolVersion = exports.ProtocolVersion.fromAmino(object.protocol_version); + } + if (object.default_node_id !== undefined && object.default_node_id !== null) { + message.defaultNodeId = object.default_node_id; + } + if (object.listen_addr !== undefined && object.listen_addr !== null) { + message.listenAddr = object.listen_addr; + } + if (object.network !== undefined && object.network !== null) { + message.network = object.network; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.channels !== undefined && object.channels !== null) { + message.channels = (0, helpers_1.bytesFromBase64)(object.channels); + } + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.other !== undefined && object.other !== null) { + message.other = exports.DefaultNodeInfoOther.fromAmino(object.other); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.protocol_version = message.protocolVersion ? exports.ProtocolVersion.toAmino(message.protocolVersion) : undefined; + obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; + obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; + obj.network = message.network === "" ? undefined : message.network; + obj.version = message.version === "" ? undefined : message.version; + obj.channels = message.channels ? (0, helpers_1.base64FromBytes)(message.channels) : undefined; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.other = message.other ? exports.DefaultNodeInfoOther.toAmino(message.other) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DefaultNodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DefaultNodeInfo.decode(message.value); + }, + toProto(message) { + return exports.DefaultNodeInfo.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + value: exports.DefaultNodeInfo.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfoOther() { + return { + txIndex: "", + rpcAddress: "" + }; +} +exports.DefaultNodeInfoOther = { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.txIndex !== "") { + writer.uint32(10).string(message.txIndex); + } + if (message.rpcAddress !== "") { + writer.uint32(18).string(message.rpcAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfoOther(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txIndex = reader.string(); + break; + case 2: + message.rpcAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDefaultNodeInfoOther(); + message.txIndex = object.txIndex ?? ""; + message.rpcAddress = object.rpcAddress ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseDefaultNodeInfoOther(); + if (object.tx_index !== undefined && object.tx_index !== null) { + message.txIndex = object.tx_index; + } + if (object.rpc_address !== undefined && object.rpc_address !== null) { + message.rpcAddress = object.rpc_address; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; + obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; + return obj; + }, + fromAminoMsg(object) { + return exports.DefaultNodeInfoOther.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DefaultNodeInfoOther.decode(message.value); + }, + toProto(message) { + return exports.DefaultNodeInfoOther.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + value: exports.DefaultNodeInfoOther.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/types/block.d.ts b/packages/api/dist/tendermint/types/block.d.ts new file mode 100644 index 00000000..7c375f6e --- /dev/null +++ b/packages/api/dist/tendermint/types/block.d.ts @@ -0,0 +1,41 @@ +import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; +import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface Block { + header: Header; + data: Data; + evidence: EvidenceList; + lastCommit?: Commit; +} +export interface BlockProtoMsg { + typeUrl: "/tendermint.types.Block"; + value: Uint8Array; +} +export interface BlockAmino { + header?: HeaderAmino; + data?: DataAmino; + evidence?: EvidenceListAmino; + last_commit?: CommitAmino; +} +export interface BlockAminoMsg { + type: "/tendermint.types.Block"; + value: BlockAmino; +} +export interface BlockSDKType { + header: HeaderSDKType; + data: DataSDKType; + evidence: EvidenceListSDKType; + last_commit?: CommitSDKType; +} +export declare const Block: { + typeUrl: string; + encode(message: Block, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Block; + fromPartial(object: Partial): Block; + fromAmino(object: BlockAmino): Block; + toAmino(message: Block): BlockAmino; + fromAminoMsg(object: BlockAminoMsg): Block; + fromProtoMsg(message: BlockProtoMsg): Block; + toProto(message: Block): Uint8Array; + toProtoMsg(message: Block): BlockProtoMsg; +}; diff --git a/packages/api/dist/tendermint/types/block.js b/packages/api/dist/tendermint/types/block.js new file mode 100644 index 00000000..e739aa80 --- /dev/null +++ b/packages/api/dist/tendermint/types/block.js @@ -0,0 +1,106 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Block = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const evidence_1 = require("./evidence"); +const binary_1 = require("../../binary"); +function createBaseBlock() { + return { + header: types_1.Header.fromPartial({}), + data: types_1.Data.fromPartial({}), + evidence: evidence_1.EvidenceList.fromPartial({}), + lastCommit: undefined + }; +} +exports.Block = { + typeUrl: "/tendermint.types.Block", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.header !== undefined) { + types_1.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + types_1.Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.evidence !== undefined) { + evidence_1.EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); + } + if (message.lastCommit !== undefined) { + types_1.Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = types_1.Header.decode(reader, reader.uint32()); + break; + case 2: + message.data = types_1.Data.decode(reader, reader.uint32()); + break; + case 3: + message.evidence = evidence_1.EvidenceList.decode(reader, reader.uint32()); + break; + case 4: + message.lastCommit = types_1.Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlock(); + message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; + message.data = object.data !== undefined && object.data !== null ? types_1.Data.fromPartial(object.data) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? evidence_1.EvidenceList.fromPartial(object.evidence) : undefined; + message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? types_1.Commit.fromPartial(object.lastCommit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBlock(); + if (object.header !== undefined && object.header !== null) { + message.header = types_1.Header.fromAmino(object.header); + } + if (object.data !== undefined && object.data !== null) { + message.data = types_1.Data.fromAmino(object.data); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = evidence_1.EvidenceList.fromAmino(object.evidence); + } + if (object.last_commit !== undefined && object.last_commit !== null) { + message.lastCommit = types_1.Commit.fromAmino(object.last_commit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; + obj.data = message.data ? types_1.Data.toAmino(message.data) : undefined; + obj.evidence = message.evidence ? evidence_1.EvidenceList.toAmino(message.evidence) : undefined; + obj.last_commit = message.lastCommit ? types_1.Commit.toAmino(message.lastCommit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Block.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Block.decode(message.value); + }, + toProto(message) { + return exports.Block.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Block", + value: exports.Block.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/types/evidence.d.ts b/packages/api/dist/tendermint/types/evidence.d.ts new file mode 100644 index 00000000..184d21ca --- /dev/null +++ b/packages/api/dist/tendermint/types/evidence.d.ts @@ -0,0 +1,152 @@ +import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; +import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface Evidence { + duplicateVoteEvidence?: DuplicateVoteEvidence; + lightClientAttackEvidence?: LightClientAttackEvidence; +} +export interface EvidenceProtoMsg { + typeUrl: "/tendermint.types.Evidence"; + value: Uint8Array; +} +export interface EvidenceAmino { + duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; + light_client_attack_evidence?: LightClientAttackEvidenceAmino; +} +export interface EvidenceAminoMsg { + type: "/tendermint.types.Evidence"; + value: EvidenceAmino; +} +export interface EvidenceSDKType { + duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; + light_client_attack_evidence?: LightClientAttackEvidenceSDKType; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidence { + voteA?: Vote; + voteB?: Vote; + totalVotingPower: bigint; + validatorPower: bigint; + timestamp: Date; +} +export interface DuplicateVoteEvidenceProtoMsg { + typeUrl: "/tendermint.types.DuplicateVoteEvidence"; + value: Uint8Array; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidenceAmino { + vote_a?: VoteAmino; + vote_b?: VoteAmino; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; +} +export interface DuplicateVoteEvidenceAminoMsg { + type: "/tendermint.types.DuplicateVoteEvidence"; + value: DuplicateVoteEvidenceAmino; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidenceSDKType { + vote_a?: VoteSDKType; + vote_b?: VoteSDKType; + total_voting_power: bigint; + validator_power: bigint; + timestamp: Date; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidence { + conflictingBlock?: LightBlock; + commonHeight: bigint; + byzantineValidators: Validator[]; + totalVotingPower: bigint; + timestamp: Date; +} +export interface LightClientAttackEvidenceProtoMsg { + typeUrl: "/tendermint.types.LightClientAttackEvidence"; + value: Uint8Array; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidenceAmino { + conflicting_block?: LightBlockAmino; + common_height?: string; + byzantine_validators?: ValidatorAmino[]; + total_voting_power?: string; + timestamp?: string; +} +export interface LightClientAttackEvidenceAminoMsg { + type: "/tendermint.types.LightClientAttackEvidence"; + value: LightClientAttackEvidenceAmino; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidenceSDKType { + conflicting_block?: LightBlockSDKType; + common_height: bigint; + byzantine_validators: ValidatorSDKType[]; + total_voting_power: bigint; + timestamp: Date; +} +export interface EvidenceList { + evidence: Evidence[]; +} +export interface EvidenceListProtoMsg { + typeUrl: "/tendermint.types.EvidenceList"; + value: Uint8Array; +} +export interface EvidenceListAmino { + evidence?: EvidenceAmino[]; +} +export interface EvidenceListAminoMsg { + type: "/tendermint.types.EvidenceList"; + value: EvidenceListAmino; +} +export interface EvidenceListSDKType { + evidence: EvidenceSDKType[]; +} +export declare const Evidence: { + typeUrl: string; + encode(message: Evidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Evidence; + fromPartial(object: Partial): Evidence; + fromAmino(object: EvidenceAmino): Evidence; + toAmino(message: Evidence): EvidenceAmino; + fromAminoMsg(object: EvidenceAminoMsg): Evidence; + fromProtoMsg(message: EvidenceProtoMsg): Evidence; + toProto(message: Evidence): Uint8Array; + toProtoMsg(message: Evidence): EvidenceProtoMsg; +}; +export declare const DuplicateVoteEvidence: { + typeUrl: string; + encode(message: DuplicateVoteEvidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence; + fromPartial(object: Partial): DuplicateVoteEvidence; + fromAmino(object: DuplicateVoteEvidenceAmino): DuplicateVoteEvidence; + toAmino(message: DuplicateVoteEvidence): DuplicateVoteEvidenceAmino; + fromAminoMsg(object: DuplicateVoteEvidenceAminoMsg): DuplicateVoteEvidence; + fromProtoMsg(message: DuplicateVoteEvidenceProtoMsg): DuplicateVoteEvidence; + toProto(message: DuplicateVoteEvidence): Uint8Array; + toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg; +}; +export declare const LightClientAttackEvidence: { + typeUrl: string; + encode(message: LightClientAttackEvidence, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence; + fromPartial(object: Partial): LightClientAttackEvidence; + fromAmino(object: LightClientAttackEvidenceAmino): LightClientAttackEvidence; + toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino; + fromAminoMsg(object: LightClientAttackEvidenceAminoMsg): LightClientAttackEvidence; + fromProtoMsg(message: LightClientAttackEvidenceProtoMsg): LightClientAttackEvidence; + toProto(message: LightClientAttackEvidence): Uint8Array; + toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg; +}; +export declare const EvidenceList: { + typeUrl: string; + encode(message: EvidenceList, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList; + fromPartial(object: Partial): EvidenceList; + fromAmino(object: EvidenceListAmino): EvidenceList; + toAmino(message: EvidenceList): EvidenceListAmino; + fromAminoMsg(object: EvidenceListAminoMsg): EvidenceList; + fromProtoMsg(message: EvidenceListProtoMsg): EvidenceList; + toProto(message: EvidenceList): Uint8Array; + toProtoMsg(message: EvidenceList): EvidenceListProtoMsg; +}; diff --git a/packages/api/dist/tendermint/types/evidence.js b/packages/api/dist/tendermint/types/evidence.js new file mode 100644 index 00000000..6f9e2b65 --- /dev/null +++ b/packages/api/dist/tendermint/types/evidence.js @@ -0,0 +1,375 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EvidenceList = exports.LightClientAttackEvidence = exports.DuplicateVoteEvidence = exports.Evidence = void 0; +//@ts-nocheck +const types_1 = require("./types"); +const timestamp_1 = require("../../google/protobuf/timestamp"); +const validator_1 = require("./validator"); +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBaseEvidence() { + return { + duplicateVoteEvidence: undefined, + lightClientAttackEvidence: undefined + }; +} +exports.Evidence = { + typeUrl: "/tendermint.types.Evidence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.duplicateVoteEvidence !== undefined) { + exports.DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); + } + if (message.lightClientAttackEvidence !== undefined) { + exports.LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.duplicateVoteEvidence = exports.DuplicateVoteEvidence.decode(reader, reader.uint32()); + break; + case 2: + message.lightClientAttackEvidence = exports.LightClientAttackEvidence.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidence(); + message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? exports.DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; + message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? exports.LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseEvidence(); + if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { + message.duplicateVoteEvidence = exports.DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); + } + if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { + message.lightClientAttackEvidence = exports.LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? exports.DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; + obj.light_client_attack_evidence = message.lightClientAttackEvidence ? exports.LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Evidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Evidence.decode(message.value); + }, + toProto(message) { + return exports.Evidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Evidence", + value: exports.Evidence.encode(message).finish() + }; + } +}; +function createBaseDuplicateVoteEvidence() { + return { + voteA: undefined, + voteB: undefined, + totalVotingPower: BigInt(0), + validatorPower: BigInt(0), + timestamp: new Date() + }; +} +exports.DuplicateVoteEvidence = { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.voteA !== undefined) { + types_1.Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); + } + if (message.voteB !== undefined) { + types_1.Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + if (message.validatorPower !== BigInt(0)) { + writer.uint32(32).int64(message.validatorPower); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuplicateVoteEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voteA = types_1.Vote.decode(reader, reader.uint32()); + break; + case 2: + message.voteB = types_1.Vote.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + case 4: + message.validatorPower = reader.int64(); + break; + case 5: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseDuplicateVoteEvidence(); + message.voteA = object.voteA !== undefined && object.voteA !== null ? types_1.Vote.fromPartial(object.voteA) : undefined; + message.voteB = object.voteB !== undefined && object.voteB !== null ? types_1.Vote.fromPartial(object.voteB) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseDuplicateVoteEvidence(); + if (object.vote_a !== undefined && object.vote_a !== null) { + message.voteA = types_1.Vote.fromAmino(object.vote_a); + } + if (object.vote_b !== undefined && object.vote_b !== null) { + message.voteB = types_1.Vote.fromAmino(object.vote_b); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.validator_power !== undefined && object.validator_power !== null) { + message.validatorPower = BigInt(object.validator_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.vote_a = message.voteA ? types_1.Vote.toAmino(message.voteA) : undefined; + obj.vote_b = message.voteB ? types_1.Vote.toAmino(message.voteB) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.DuplicateVoteEvidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.DuplicateVoteEvidence.decode(message.value); + }, + toProto(message) { + return exports.DuplicateVoteEvidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + value: exports.DuplicateVoteEvidence.encode(message).finish() + }; + } +}; +function createBaseLightClientAttackEvidence() { + return { + conflictingBlock: undefined, + commonHeight: BigInt(0), + byzantineValidators: [], + totalVotingPower: BigInt(0), + timestamp: new Date() + }; +} +exports.LightClientAttackEvidence = { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.conflictingBlock !== undefined) { + types_1.LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); + } + if (message.commonHeight !== BigInt(0)) { + writer.uint32(16).int64(message.commonHeight); + } + for (const v of message.byzantineValidators) { + validator_1.Validator.encode(v, writer.uint32(26).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(32).int64(message.totalVotingPower); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightClientAttackEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conflictingBlock = types_1.LightBlock.decode(reader, reader.uint32()); + break; + case 2: + message.commonHeight = reader.int64(); + break; + case 3: + message.byzantineValidators.push(validator_1.Validator.decode(reader, reader.uint32())); + break; + case 4: + message.totalVotingPower = reader.int64(); + break; + case 5: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLightClientAttackEvidence(); + message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? types_1.LightBlock.fromPartial(object.conflictingBlock) : undefined; + message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); + message.byzantineValidators = object.byzantineValidators?.map(e => validator_1.Validator.fromPartial(e)) || []; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object) { + const message = createBaseLightClientAttackEvidence(); + if (object.conflicting_block !== undefined && object.conflicting_block !== null) { + message.conflictingBlock = types_1.LightBlock.fromAmino(object.conflicting_block); + } + if (object.common_height !== undefined && object.common_height !== null) { + message.commonHeight = BigInt(object.common_height); + } + message.byzantineValidators = object.byzantine_validators?.map(e => validator_1.Validator.fromAmino(e)) || []; + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.conflicting_block = message.conflictingBlock ? types_1.LightBlock.toAmino(message.conflictingBlock) : undefined; + obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? validator_1.Validator.toAmino(e) : undefined); + } + else { + obj.byzantine_validators = message.byzantineValidators; + } + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.LightClientAttackEvidence.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.LightClientAttackEvidence.decode(message.value); + }, + toProto(message) { + return exports.LightClientAttackEvidence.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + value: exports.LightClientAttackEvidence.encode(message).finish() + }; + } +}; +function createBaseEvidenceList() { + return { + evidence: [] + }; +} +exports.EvidenceList = { + typeUrl: "/tendermint.types.EvidenceList", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.evidence) { + exports.Evidence.encode(v, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.evidence.push(exports.Evidence.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => exports.Evidence.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => exports.Evidence.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.evidence) { + obj.evidence = message.evidence.map(e => e ? exports.Evidence.toAmino(e) : undefined); + } + else { + obj.evidence = message.evidence; + } + return obj; + }, + fromAminoMsg(object) { + return exports.EvidenceList.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EvidenceList.decode(message.value); + }, + toProto(message) { + return exports.EvidenceList.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.EvidenceList", + value: exports.EvidenceList.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/types/params.d.ts b/packages/api/dist/tendermint/types/params.d.ts new file mode 100644 index 00000000..83ece52d --- /dev/null +++ b/packages/api/dist/tendermint/types/params.d.ts @@ -0,0 +1,297 @@ +import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParams { + block?: BlockParams; + evidence?: EvidenceParams; + validator?: ValidatorParams; + version?: VersionParams; +} +export interface ConsensusParamsProtoMsg { + typeUrl: "/tendermint.types.ConsensusParams"; + value: Uint8Array; +} +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParamsAmino { + block?: BlockParamsAmino; + evidence?: EvidenceParamsAmino; + validator?: ValidatorParamsAmino; + version?: VersionParamsAmino; +} +export interface ConsensusParamsAminoMsg { + type: "/tendermint.types.ConsensusParams"; + value: ConsensusParamsAmino; +} +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParamsSDKType { + block?: BlockParamsSDKType; + evidence?: EvidenceParamsSDKType; + validator?: ValidatorParamsSDKType; + version?: VersionParamsSDKType; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParams { + /** + * Max block size, in bytes. + * Note: must be greater than 0 + */ + maxBytes: bigint; + /** + * Max gas per block. + * Note: must be greater or equal to -1 + */ + maxGas: bigint; +} +export interface BlockParamsProtoMsg { + typeUrl: "/tendermint.types.BlockParams"; + value: Uint8Array; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParamsAmino { + /** + * Max block size, in bytes. + * Note: must be greater than 0 + */ + max_bytes?: string; + /** + * Max gas per block. + * Note: must be greater or equal to -1 + */ + max_gas?: string; +} +export interface BlockParamsAminoMsg { + type: "/tendermint.types.BlockParams"; + value: BlockParamsAmino; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParamsSDKType { + max_bytes: bigint; + max_gas: bigint; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParams { + /** + * Max age of evidence, in blocks. + * + * The basic formula for calculating this is: MaxAgeDuration / {average block + * time}. + */ + maxAgeNumBlocks: bigint; + /** + * Max age of evidence, in time. + * + * It should correspond with an app's "unbonding period" or other similar + * mechanism for handling [Nothing-At-Stake + * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + */ + maxAgeDuration: Duration; + /** + * This sets the maximum size of total evidence in bytes that can be committed in a single block. + * and should fall comfortably under the max block bytes. + * Default is 1048576 or 1MB + */ + maxBytes: bigint; +} +export interface EvidenceParamsProtoMsg { + typeUrl: "/tendermint.types.EvidenceParams"; + value: Uint8Array; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParamsAmino { + /** + * Max age of evidence, in blocks. + * + * The basic formula for calculating this is: MaxAgeDuration / {average block + * time}. + */ + max_age_num_blocks?: string; + /** + * Max age of evidence, in time. + * + * It should correspond with an app's "unbonding period" or other similar + * mechanism for handling [Nothing-At-Stake + * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + */ + max_age_duration?: DurationAmino; + /** + * This sets the maximum size of total evidence in bytes that can be committed in a single block. + * and should fall comfortably under the max block bytes. + * Default is 1048576 or 1MB + */ + max_bytes?: string; +} +export interface EvidenceParamsAminoMsg { + type: "/tendermint.types.EvidenceParams"; + value: EvidenceParamsAmino; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParamsSDKType { + max_age_num_blocks: bigint; + max_age_duration: DurationSDKType; + max_bytes: bigint; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParams { + pubKeyTypes: string[]; +} +export interface ValidatorParamsProtoMsg { + typeUrl: "/tendermint.types.ValidatorParams"; + value: Uint8Array; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParamsAmino { + pub_key_types?: string[]; +} +export interface ValidatorParamsAminoMsg { + type: "/tendermint.types.ValidatorParams"; + value: ValidatorParamsAmino; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParamsSDKType { + pub_key_types: string[]; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParams { + app: bigint; +} +export interface VersionParamsProtoMsg { + typeUrl: "/tendermint.types.VersionParams"; + value: Uint8Array; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParamsAmino { + app?: string; +} +export interface VersionParamsAminoMsg { + type: "/tendermint.types.VersionParams"; + value: VersionParamsAmino; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParamsSDKType { + app: bigint; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParams { + blockMaxBytes: bigint; + blockMaxGas: bigint; +} +export interface HashedParamsProtoMsg { + typeUrl: "/tendermint.types.HashedParams"; + value: Uint8Array; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParamsAmino { + block_max_bytes?: string; + block_max_gas?: string; +} +export interface HashedParamsAminoMsg { + type: "/tendermint.types.HashedParams"; + value: HashedParamsAmino; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParamsSDKType { + block_max_bytes: bigint; + block_max_gas: bigint; +} +export declare const ConsensusParams: { + typeUrl: string; + encode(message: ConsensusParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams; + fromPartial(object: Partial): ConsensusParams; + fromAmino(object: ConsensusParamsAmino): ConsensusParams; + toAmino(message: ConsensusParams): ConsensusParamsAmino; + fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams; + fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams; + toProto(message: ConsensusParams): Uint8Array; + toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg; +}; +export declare const BlockParams: { + typeUrl: string; + encode(message: BlockParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockParams; + fromPartial(object: Partial): BlockParams; + fromAmino(object: BlockParamsAmino): BlockParams; + toAmino(message: BlockParams): BlockParamsAmino; + fromAminoMsg(object: BlockParamsAminoMsg): BlockParams; + fromProtoMsg(message: BlockParamsProtoMsg): BlockParams; + toProto(message: BlockParams): Uint8Array; + toProtoMsg(message: BlockParams): BlockParamsProtoMsg; +}; +export declare const EvidenceParams: { + typeUrl: string; + encode(message: EvidenceParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams; + fromPartial(object: Partial): EvidenceParams; + fromAmino(object: EvidenceParamsAmino): EvidenceParams; + toAmino(message: EvidenceParams): EvidenceParamsAmino; + fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams; + fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams; + toProto(message: EvidenceParams): Uint8Array; + toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg; +}; +export declare const ValidatorParams: { + typeUrl: string; + encode(message: ValidatorParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams; + fromPartial(object: Partial): ValidatorParams; + fromAmino(object: ValidatorParamsAmino): ValidatorParams; + toAmino(message: ValidatorParams): ValidatorParamsAmino; + fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams; + fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams; + toProto(message: ValidatorParams): Uint8Array; + toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg; +}; +export declare const VersionParams: { + typeUrl: string; + encode(message: VersionParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): VersionParams; + fromPartial(object: Partial): VersionParams; + fromAmino(object: VersionParamsAmino): VersionParams; + toAmino(message: VersionParams): VersionParamsAmino; + fromAminoMsg(object: VersionParamsAminoMsg): VersionParams; + fromProtoMsg(message: VersionParamsProtoMsg): VersionParams; + toProto(message: VersionParams): Uint8Array; + toProtoMsg(message: VersionParams): VersionParamsProtoMsg; +}; +export declare const HashedParams: { + typeUrl: string; + encode(message: HashedParams, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): HashedParams; + fromPartial(object: Partial): HashedParams; + fromAmino(object: HashedParamsAmino): HashedParams; + toAmino(message: HashedParams): HashedParamsAmino; + fromAminoMsg(object: HashedParamsAminoMsg): HashedParams; + fromProtoMsg(message: HashedParamsProtoMsg): HashedParams; + toProto(message: HashedParams): Uint8Array; + toProtoMsg(message: HashedParams): HashedParamsProtoMsg; +}; diff --git a/packages/api/dist/tendermint/types/params.js b/packages/api/dist/tendermint/types/params.js new file mode 100644 index 00000000..1f8d02f2 --- /dev/null +++ b/packages/api/dist/tendermint/types/params.js @@ -0,0 +1,471 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HashedParams = exports.VersionParams = exports.ValidatorParams = exports.EvidenceParams = exports.BlockParams = exports.ConsensusParams = void 0; +//@ts-nocheck +const duration_1 = require("../../google/protobuf/duration"); +const binary_1 = require("../../binary"); +function createBaseConsensusParams() { + return { + block: undefined, + evidence: undefined, + validator: undefined, + version: undefined + }; +} +exports.ConsensusParams = { + typeUrl: "/tendermint.types.ConsensusParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.block !== undefined) { + exports.BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); + } + if (message.evidence !== undefined) { + exports.EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); + } + if (message.validator !== undefined) { + exports.ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); + } + if (message.version !== undefined) { + exports.VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = exports.BlockParams.decode(reader, reader.uint32()); + break; + case 2: + message.evidence = exports.EvidenceParams.decode(reader, reader.uint32()); + break; + case 3: + message.validator = exports.ValidatorParams.decode(reader, reader.uint32()); + break; + case 4: + message.version = exports.VersionParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensusParams(); + message.block = object.block !== undefined && object.block !== null ? exports.BlockParams.fromPartial(object.block) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? exports.EvidenceParams.fromPartial(object.evidence) : undefined; + message.validator = object.validator !== undefined && object.validator !== null ? exports.ValidatorParams.fromPartial(object.validator) : undefined; + message.version = object.version !== undefined && object.version !== null ? exports.VersionParams.fromPartial(object.version) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseConsensusParams(); + if (object.block !== undefined && object.block !== null) { + message.block = exports.BlockParams.fromAmino(object.block); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = exports.EvidenceParams.fromAmino(object.evidence); + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = exports.ValidatorParams.fromAmino(object.validator); + } + if (object.version !== undefined && object.version !== null) { + message.version = exports.VersionParams.fromAmino(object.version); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block = message.block ? exports.BlockParams.toAmino(message.block) : undefined; + obj.evidence = message.evidence ? exports.EvidenceParams.toAmino(message.evidence) : undefined; + obj.validator = message.validator ? exports.ValidatorParams.toAmino(message.validator) : undefined; + obj.version = message.version ? exports.VersionParams.toAmino(message.version) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ConsensusParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ConsensusParams.decode(message.value); + }, + toProto(message) { + return exports.ConsensusParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ConsensusParams", + value: exports.ConsensusParams.encode(message).finish() + }; + } +}; +function createBaseBlockParams() { + return { + maxBytes: BigInt(0), + maxGas: BigInt(0) + }; +} +exports.BlockParams = { + typeUrl: "/tendermint.types.BlockParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.maxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxBytes); + } + if (message.maxGas !== BigInt(0)) { + writer.uint32(16).int64(message.maxGas); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxBytes = reader.int64(); + break; + case 2: + message.maxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockParams(); + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBlockParams(); + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + if (object.max_gas !== undefined && object.max_gas !== null) { + message.maxGas = BigInt(object.max_gas); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BlockParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BlockParams.decode(message.value); + }, + toProto(message) { + return exports.BlockParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockParams", + value: exports.BlockParams.encode(message).finish() + }; + } +}; +function createBaseEvidenceParams() { + return { + maxAgeNumBlocks: BigInt(0), + maxAgeDuration: duration_1.Duration.fromPartial({}), + maxBytes: BigInt(0) + }; +} +exports.EvidenceParams = { + typeUrl: "/tendermint.types.EvidenceParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.maxAgeNumBlocks !== BigInt(0)) { + writer.uint32(8).int64(message.maxAgeNumBlocks); + } + if (message.maxAgeDuration !== undefined) { + duration_1.Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); + } + if (message.maxBytes !== BigInt(0)) { + writer.uint32(24).int64(message.maxBytes); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxAgeNumBlocks = reader.int64(); + break; + case 2: + message.maxAgeDuration = duration_1.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.maxBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseEvidenceParams(); + message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); + message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? duration_1.Duration.fromPartial(object.maxAgeDuration) : undefined; + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseEvidenceParams(); + if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { + message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); + } + if (object.max_age_duration !== undefined && object.max_age_duration !== null) { + message.maxAgeDuration = duration_1.Duration.fromAmino(object.max_age_duration); + } + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; + obj.max_age_duration = message.maxAgeDuration ? duration_1.Duration.toAmino(message.maxAgeDuration) : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.EvidenceParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.EvidenceParams.decode(message.value); + }, + toProto(message) { + return exports.EvidenceParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.EvidenceParams", + value: exports.EvidenceParams.encode(message).finish() + }; + } +}; +function createBaseValidatorParams() { + return { + pubKeyTypes: [] + }; +} +exports.ValidatorParams = { + typeUrl: "/tendermint.types.ValidatorParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.pubKeyTypes) { + writer.uint32(10).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKeyTypes.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.pubKeyTypes) { + obj.pub_key_types = message.pubKeyTypes.map(e => e); + } + else { + obj.pub_key_types = message.pubKeyTypes; + } + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ValidatorParams.decode(message.value); + }, + toProto(message) { + return exports.ValidatorParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ValidatorParams", + value: exports.ValidatorParams.encode(message).finish() + }; + } +}; +function createBaseVersionParams() { + return { + app: BigInt(0) + }; +} +exports.VersionParams = { + typeUrl: "/tendermint.types.VersionParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.app !== BigInt(0)) { + writer.uint32(8).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVersionParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVersionParams(); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseVersionParams(); + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.VersionParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.VersionParams.decode(message.value); + }, + toProto(message) { + return exports.VersionParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.VersionParams", + value: exports.VersionParams.encode(message).finish() + }; + } +}; +function createBaseHashedParams() { + return { + blockMaxBytes: BigInt(0), + blockMaxGas: BigInt(0) + }; +} +exports.HashedParams = { + typeUrl: "/tendermint.types.HashedParams", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.blockMaxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.blockMaxBytes); + } + if (message.blockMaxGas !== BigInt(0)) { + writer.uint32(16).int64(message.blockMaxGas); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHashedParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockMaxBytes = reader.int64(); + break; + case 2: + message.blockMaxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHashedParams(); + message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); + message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseHashedParams(); + if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { + message.blockMaxBytes = BigInt(object.block_max_bytes); + } + if (object.block_max_gas !== undefined && object.block_max_gas !== null) { + message.blockMaxGas = BigInt(object.block_max_gas); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; + obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.HashedParams.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.HashedParams.decode(message.value); + }, + toProto(message) { + return exports.HashedParams.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.HashedParams", + value: exports.HashedParams.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/types/types.d.ts b/packages/api/dist/tendermint/types/types.d.ts new file mode 100644 index 00000000..51ed49aa --- /dev/null +++ b/packages/api/dist/tendermint/types/types.d.ts @@ -0,0 +1,597 @@ +import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; +import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; +import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +/** BlockIdFlag indicates which BlcokID the signature is for */ +export declare enum BlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = 0, + BLOCK_ID_FLAG_ABSENT = 1, + BLOCK_ID_FLAG_COMMIT = 2, + BLOCK_ID_FLAG_NIL = 3, + UNRECOGNIZED = -1 +} +export declare const BlockIDFlagSDKType: typeof BlockIDFlag; +export declare const BlockIDFlagAmino: typeof BlockIDFlag; +export declare function blockIDFlagFromJSON(object: any): BlockIDFlag; +export declare function blockIDFlagToJSON(object: BlockIDFlag): string; +/** SignedMsgType is a type of signed message in the consensus. */ +export declare enum SignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = 0, + /** SIGNED_MSG_TYPE_PREVOTE - Votes */ + SIGNED_MSG_TYPE_PREVOTE = 1, + SIGNED_MSG_TYPE_PRECOMMIT = 2, + /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ + SIGNED_MSG_TYPE_PROPOSAL = 32, + UNRECOGNIZED = -1 +} +export declare const SignedMsgTypeSDKType: typeof SignedMsgType; +export declare const SignedMsgTypeAmino: typeof SignedMsgType; +export declare function signedMsgTypeFromJSON(object: any): SignedMsgType; +export declare function signedMsgTypeToJSON(object: SignedMsgType): string; +/** PartsetHeader */ +export interface PartSetHeader { + total: number; + hash: Uint8Array; +} +export interface PartSetHeaderProtoMsg { + typeUrl: "/tendermint.types.PartSetHeader"; + value: Uint8Array; +} +/** PartsetHeader */ +export interface PartSetHeaderAmino { + total?: number; + hash?: string; +} +export interface PartSetHeaderAminoMsg { + type: "/tendermint.types.PartSetHeader"; + value: PartSetHeaderAmino; +} +/** PartsetHeader */ +export interface PartSetHeaderSDKType { + total: number; + hash: Uint8Array; +} +export interface Part { + index: number; + bytes: Uint8Array; + proof: Proof; +} +export interface PartProtoMsg { + typeUrl: "/tendermint.types.Part"; + value: Uint8Array; +} +export interface PartAmino { + index?: number; + bytes?: string; + proof?: ProofAmino; +} +export interface PartAminoMsg { + type: "/tendermint.types.Part"; + value: PartAmino; +} +export interface PartSDKType { + index: number; + bytes: Uint8Array; + proof: ProofSDKType; +} +/** BlockID */ +export interface BlockID { + hash: Uint8Array; + partSetHeader: PartSetHeader; +} +export interface BlockIDProtoMsg { + typeUrl: "/tendermint.types.BlockID"; + value: Uint8Array; +} +/** BlockID */ +export interface BlockIDAmino { + hash?: string; + part_set_header?: PartSetHeaderAmino; +} +export interface BlockIDAminoMsg { + type: "/tendermint.types.BlockID"; + value: BlockIDAmino; +} +/** BlockID */ +export interface BlockIDSDKType { + hash: Uint8Array; + part_set_header: PartSetHeaderSDKType; +} +/** Header defines the structure of a block header. */ +export interface Header { + /** basic block info */ + version: Consensus; + chainId: string; + height: bigint; + time: Date; + /** prev block info */ + lastBlockId: BlockID; + /** hashes of block data */ + lastCommitHash: Uint8Array; + dataHash: Uint8Array; + /** hashes from the app output from the prev block */ + validatorsHash: Uint8Array; + /** validators for the next block */ + nextValidatorsHash: Uint8Array; + /** consensus params for current block */ + consensusHash: Uint8Array; + /** state after txs from the previous block */ + appHash: Uint8Array; + lastResultsHash: Uint8Array; + /** consensus info */ + evidenceHash: Uint8Array; + /** original proposer of the block */ + proposerAddress: Uint8Array; +} +export interface HeaderProtoMsg { + typeUrl: "/tendermint.types.Header"; + value: Uint8Array; +} +/** Header defines the structure of a block header. */ +export interface HeaderAmino { + /** basic block info */ + version?: ConsensusAmino; + chain_id?: string; + height?: string; + time?: string; + /** prev block info */ + last_block_id?: BlockIDAmino; + /** hashes of block data */ + last_commit_hash?: string; + data_hash?: string; + /** hashes from the app output from the prev block */ + validators_hash?: string; + /** validators for the next block */ + next_validators_hash?: string; + /** consensus params for current block */ + consensus_hash?: string; + /** state after txs from the previous block */ + app_hash?: string; + last_results_hash?: string; + /** consensus info */ + evidence_hash?: string; + /** original proposer of the block */ + proposer_address?: string; +} +export interface HeaderAminoMsg { + type: "/tendermint.types.Header"; + value: HeaderAmino; +} +/** Header defines the structure of a block header. */ +export interface HeaderSDKType { + version: ConsensusSDKType; + chain_id: string; + height: bigint; + time: Date; + last_block_id: BlockIDSDKType; + last_commit_hash: Uint8Array; + data_hash: Uint8Array; + validators_hash: Uint8Array; + next_validators_hash: Uint8Array; + consensus_hash: Uint8Array; + app_hash: Uint8Array; + last_results_hash: Uint8Array; + evidence_hash: Uint8Array; + proposer_address: Uint8Array; +} +/** Data contains the set of transactions included in the block */ +export interface Data { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs: Uint8Array[]; +} +export interface DataProtoMsg { + typeUrl: "/tendermint.types.Data"; + value: Uint8Array; +} +/** Data contains the set of transactions included in the block */ +export interface DataAmino { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; +} +export interface DataAminoMsg { + type: "/tendermint.types.Data"; + value: DataAmino; +} +/** Data contains the set of transactions included in the block */ +export interface DataSDKType { + txs: Uint8Array[]; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface Vote { + type: SignedMsgType; + height: bigint; + round: number; + blockId: BlockID; + timestamp: Date; + validatorAddress: Uint8Array; + validatorIndex: number; + signature: Uint8Array; +} +export interface VoteProtoMsg { + typeUrl: "/tendermint.types.Vote"; + value: Uint8Array; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface VoteAmino { + type?: SignedMsgType; + height?: string; + round?: number; + block_id?: BlockIDAmino; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; +} +export interface VoteAminoMsg { + type: "/tendermint.types.Vote"; + value: VoteAmino; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface VoteSDKType { + type: SignedMsgType; + height: bigint; + round: number; + block_id: BlockIDSDKType; + timestamp: Date; + validator_address: Uint8Array; + validator_index: number; + signature: Uint8Array; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface Commit { + height: bigint; + round: number; + blockId: BlockID; + signatures: CommitSig[]; +} +export interface CommitProtoMsg { + typeUrl: "/tendermint.types.Commit"; + value: Uint8Array; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface CommitAmino { + height?: string; + round?: number; + block_id?: BlockIDAmino; + signatures?: CommitSigAmino[]; +} +export interface CommitAminoMsg { + type: "/tendermint.types.Commit"; + value: CommitAmino; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface CommitSDKType { + height: bigint; + round: number; + block_id: BlockIDSDKType; + signatures: CommitSigSDKType[]; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSig { + blockIdFlag: BlockIDFlag; + validatorAddress: Uint8Array; + timestamp: Date; + signature: Uint8Array; +} +export interface CommitSigProtoMsg { + typeUrl: "/tendermint.types.CommitSig"; + value: Uint8Array; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSigAmino { + block_id_flag?: BlockIDFlag; + validator_address?: string; + timestamp?: string; + signature?: string; +} +export interface CommitSigAminoMsg { + type: "/tendermint.types.CommitSig"; + value: CommitSigAmino; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSigSDKType { + block_id_flag: BlockIDFlag; + validator_address: Uint8Array; + timestamp: Date; + signature: Uint8Array; +} +export interface Proposal { + type: SignedMsgType; + height: bigint; + round: number; + polRound: number; + blockId: BlockID; + timestamp: Date; + signature: Uint8Array; +} +export interface ProposalProtoMsg { + typeUrl: "/tendermint.types.Proposal"; + value: Uint8Array; +} +export interface ProposalAmino { + type?: SignedMsgType; + height?: string; + round?: number; + pol_round?: number; + block_id?: BlockIDAmino; + timestamp?: string; + signature?: string; +} +export interface ProposalAminoMsg { + type: "/tendermint.types.Proposal"; + value: ProposalAmino; +} +export interface ProposalSDKType { + type: SignedMsgType; + height: bigint; + round: number; + pol_round: number; + block_id: BlockIDSDKType; + timestamp: Date; + signature: Uint8Array; +} +export interface SignedHeader { + header?: Header; + commit?: Commit; +} +export interface SignedHeaderProtoMsg { + typeUrl: "/tendermint.types.SignedHeader"; + value: Uint8Array; +} +export interface SignedHeaderAmino { + header?: HeaderAmino; + commit?: CommitAmino; +} +export interface SignedHeaderAminoMsg { + type: "/tendermint.types.SignedHeader"; + value: SignedHeaderAmino; +} +export interface SignedHeaderSDKType { + header?: HeaderSDKType; + commit?: CommitSDKType; +} +export interface LightBlock { + signedHeader?: SignedHeader; + validatorSet?: ValidatorSet; +} +export interface LightBlockProtoMsg { + typeUrl: "/tendermint.types.LightBlock"; + value: Uint8Array; +} +export interface LightBlockAmino { + signed_header?: SignedHeaderAmino; + validator_set?: ValidatorSetAmino; +} +export interface LightBlockAminoMsg { + type: "/tendermint.types.LightBlock"; + value: LightBlockAmino; +} +export interface LightBlockSDKType { + signed_header?: SignedHeaderSDKType; + validator_set?: ValidatorSetSDKType; +} +export interface BlockMeta { + blockId: BlockID; + blockSize: bigint; + header: Header; + numTxs: bigint; +} +export interface BlockMetaProtoMsg { + typeUrl: "/tendermint.types.BlockMeta"; + value: Uint8Array; +} +export interface BlockMetaAmino { + block_id?: BlockIDAmino; + block_size?: string; + header?: HeaderAmino; + num_txs?: string; +} +export interface BlockMetaAminoMsg { + type: "/tendermint.types.BlockMeta"; + value: BlockMetaAmino; +} +export interface BlockMetaSDKType { + block_id: BlockIDSDKType; + block_size: bigint; + header: HeaderSDKType; + num_txs: bigint; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProof { + rootHash: Uint8Array; + data: Uint8Array; + proof?: Proof; +} +export interface TxProofProtoMsg { + typeUrl: "/tendermint.types.TxProof"; + value: Uint8Array; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProofAmino { + root_hash?: string; + data?: string; + proof?: ProofAmino; +} +export interface TxProofAminoMsg { + type: "/tendermint.types.TxProof"; + value: TxProofAmino; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProofSDKType { + root_hash: Uint8Array; + data: Uint8Array; + proof?: ProofSDKType; +} +export declare const PartSetHeader: { + typeUrl: string; + encode(message: PartSetHeader, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader; + fromPartial(object: Partial): PartSetHeader; + fromAmino(object: PartSetHeaderAmino): PartSetHeader; + toAmino(message: PartSetHeader): PartSetHeaderAmino; + fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader; + fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader; + toProto(message: PartSetHeader): Uint8Array; + toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg; +}; +export declare const Part: { + typeUrl: string; + encode(message: Part, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Part; + fromPartial(object: Partial): Part; + fromAmino(object: PartAmino): Part; + toAmino(message: Part): PartAmino; + fromAminoMsg(object: PartAminoMsg): Part; + fromProtoMsg(message: PartProtoMsg): Part; + toProto(message: Part): Uint8Array; + toProtoMsg(message: Part): PartProtoMsg; +}; +export declare const BlockID: { + typeUrl: string; + encode(message: BlockID, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockID; + fromPartial(object: Partial): BlockID; + fromAmino(object: BlockIDAmino): BlockID; + toAmino(message: BlockID): BlockIDAmino; + fromAminoMsg(object: BlockIDAminoMsg): BlockID; + fromProtoMsg(message: BlockIDProtoMsg): BlockID; + toProto(message: BlockID): Uint8Array; + toProtoMsg(message: BlockID): BlockIDProtoMsg; +}; +export declare const Header: { + typeUrl: string; + encode(message: Header, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Header; + fromPartial(object: Partial
): Header; + fromAmino(object: HeaderAmino): Header; + toAmino(message: Header): HeaderAmino; + fromAminoMsg(object: HeaderAminoMsg): Header; + fromProtoMsg(message: HeaderProtoMsg): Header; + toProto(message: Header): Uint8Array; + toProtoMsg(message: Header): HeaderProtoMsg; +}; +export declare const Data: { + typeUrl: string; + encode(message: Data, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Data; + fromPartial(object: Partial): Data; + fromAmino(object: DataAmino): Data; + toAmino(message: Data): DataAmino; + fromAminoMsg(object: DataAminoMsg): Data; + fromProtoMsg(message: DataProtoMsg): Data; + toProto(message: Data): Uint8Array; + toProtoMsg(message: Data): DataProtoMsg; +}; +export declare const Vote: { + typeUrl: string; + encode(message: Vote, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Vote; + fromPartial(object: Partial): Vote; + fromAmino(object: VoteAmino): Vote; + toAmino(message: Vote): VoteAmino; + fromAminoMsg(object: VoteAminoMsg): Vote; + fromProtoMsg(message: VoteProtoMsg): Vote; + toProto(message: Vote): Uint8Array; + toProtoMsg(message: Vote): VoteProtoMsg; +}; +export declare const Commit: { + typeUrl: string; + encode(message: Commit, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Commit; + fromPartial(object: Partial): Commit; + fromAmino(object: CommitAmino): Commit; + toAmino(message: Commit): CommitAmino; + fromAminoMsg(object: CommitAminoMsg): Commit; + fromProtoMsg(message: CommitProtoMsg): Commit; + toProto(message: Commit): Uint8Array; + toProtoMsg(message: Commit): CommitProtoMsg; +}; +export declare const CommitSig: { + typeUrl: string; + encode(message: CommitSig, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): CommitSig; + fromPartial(object: Partial): CommitSig; + fromAmino(object: CommitSigAmino): CommitSig; + toAmino(message: CommitSig): CommitSigAmino; + fromAminoMsg(object: CommitSigAminoMsg): CommitSig; + fromProtoMsg(message: CommitSigProtoMsg): CommitSig; + toProto(message: CommitSig): Uint8Array; + toProtoMsg(message: CommitSig): CommitSigProtoMsg; +}; +export declare const Proposal: { + typeUrl: string; + encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Proposal; + fromPartial(object: Partial): Proposal; + fromAmino(object: ProposalAmino): Proposal; + toAmino(message: Proposal): ProposalAmino; + fromAminoMsg(object: ProposalAminoMsg): Proposal; + fromProtoMsg(message: ProposalProtoMsg): Proposal; + toProto(message: Proposal): Uint8Array; + toProtoMsg(message: Proposal): ProposalProtoMsg; +}; +export declare const SignedHeader: { + typeUrl: string; + encode(message: SignedHeader, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader; + fromPartial(object: Partial): SignedHeader; + fromAmino(object: SignedHeaderAmino): SignedHeader; + toAmino(message: SignedHeader): SignedHeaderAmino; + fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader; + fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader; + toProto(message: SignedHeader): Uint8Array; + toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg; +}; +export declare const LightBlock: { + typeUrl: string; + encode(message: LightBlock, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): LightBlock; + fromPartial(object: Partial): LightBlock; + fromAmino(object: LightBlockAmino): LightBlock; + toAmino(message: LightBlock): LightBlockAmino; + fromAminoMsg(object: LightBlockAminoMsg): LightBlock; + fromProtoMsg(message: LightBlockProtoMsg): LightBlock; + toProto(message: LightBlock): Uint8Array; + toProtoMsg(message: LightBlock): LightBlockProtoMsg; +}; +export declare const BlockMeta: { + typeUrl: string; + encode(message: BlockMeta, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta; + fromPartial(object: Partial): BlockMeta; + fromAmino(object: BlockMetaAmino): BlockMeta; + toAmino(message: BlockMeta): BlockMetaAmino; + fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta; + fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta; + toProto(message: BlockMeta): Uint8Array; + toProtoMsg(message: BlockMeta): BlockMetaProtoMsg; +}; +export declare const TxProof: { + typeUrl: string; + encode(message: TxProof, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): TxProof; + fromPartial(object: Partial): TxProof; + fromAmino(object: TxProofAmino): TxProof; + toAmino(message: TxProof): TxProofAmino; + fromAminoMsg(object: TxProofAminoMsg): TxProof; + fromProtoMsg(message: TxProofProtoMsg): TxProof; + toProto(message: TxProof): Uint8Array; + toProtoMsg(message: TxProof): TxProofProtoMsg; +}; diff --git a/packages/api/dist/tendermint/types/types.js b/packages/api/dist/tendermint/types/types.js new file mode 100644 index 00000000..3b69e204 --- /dev/null +++ b/packages/api/dist/tendermint/types/types.js @@ -0,0 +1,1449 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader = exports.Proposal = exports.CommitSig = exports.Commit = exports.Vote = exports.Data = exports.Header = exports.BlockID = exports.Part = exports.PartSetHeader = exports.signedMsgTypeToJSON = exports.signedMsgTypeFromJSON = exports.SignedMsgTypeAmino = exports.SignedMsgTypeSDKType = exports.SignedMsgType = exports.blockIDFlagToJSON = exports.blockIDFlagFromJSON = exports.BlockIDFlagAmino = exports.BlockIDFlagSDKType = exports.BlockIDFlag = void 0; +//@ts-nocheck +const proof_1 = require("../crypto/proof"); +const types_1 = require("../version/types"); +const timestamp_1 = require("../../google/protobuf/timestamp"); +const validator_1 = require("./validator"); +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +/** BlockIdFlag indicates which BlcokID the signature is for */ +var BlockIDFlag; +(function (BlockIDFlag) { + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_UNKNOWN"] = 0] = "BLOCK_ID_FLAG_UNKNOWN"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_ABSENT"] = 1] = "BLOCK_ID_FLAG_ABSENT"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_COMMIT"] = 2] = "BLOCK_ID_FLAG_COMMIT"; + BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_NIL"] = 3] = "BLOCK_ID_FLAG_NIL"; + BlockIDFlag[BlockIDFlag["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(BlockIDFlag || (exports.BlockIDFlag = BlockIDFlag = {})); +exports.BlockIDFlagSDKType = BlockIDFlag; +exports.BlockIDFlagAmino = BlockIDFlag; +function blockIDFlagFromJSON(object) { + switch (object) { + case 0: + case "BLOCK_ID_FLAG_UNKNOWN": + return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; + case 1: + case "BLOCK_ID_FLAG_ABSENT": + return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; + case 2: + case "BLOCK_ID_FLAG_COMMIT": + return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; + case 3: + case "BLOCK_ID_FLAG_NIL": + return BlockIDFlag.BLOCK_ID_FLAG_NIL; + case -1: + case "UNRECOGNIZED": + default: + return BlockIDFlag.UNRECOGNIZED; + } +} +exports.blockIDFlagFromJSON = blockIDFlagFromJSON; +function blockIDFlagToJSON(object) { + switch (object) { + case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: + return "BLOCK_ID_FLAG_UNKNOWN"; + case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: + return "BLOCK_ID_FLAG_ABSENT"; + case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: + return "BLOCK_ID_FLAG_COMMIT"; + case BlockIDFlag.BLOCK_ID_FLAG_NIL: + return "BLOCK_ID_FLAG_NIL"; + case BlockIDFlag.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.blockIDFlagToJSON = blockIDFlagToJSON; +/** SignedMsgType is a type of signed message in the consensus. */ +var SignedMsgType; +(function (SignedMsgType) { + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_UNKNOWN"] = 0] = "SIGNED_MSG_TYPE_UNKNOWN"; + /** SIGNED_MSG_TYPE_PREVOTE - Votes */ + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PREVOTE"] = 1] = "SIGNED_MSG_TYPE_PREVOTE"; + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PRECOMMIT"] = 2] = "SIGNED_MSG_TYPE_PRECOMMIT"; + /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ + SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL"; + SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; +})(SignedMsgType || (exports.SignedMsgType = SignedMsgType = {})); +exports.SignedMsgTypeSDKType = SignedMsgType; +exports.SignedMsgTypeAmino = SignedMsgType; +function signedMsgTypeFromJSON(object) { + switch (object) { + case 0: + case "SIGNED_MSG_TYPE_UNKNOWN": + return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; + case 1: + case "SIGNED_MSG_TYPE_PREVOTE": + return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; + case 2: + case "SIGNED_MSG_TYPE_PRECOMMIT": + return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; + case 32: + case "SIGNED_MSG_TYPE_PROPOSAL": + return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; + case -1: + case "UNRECOGNIZED": + default: + return SignedMsgType.UNRECOGNIZED; + } +} +exports.signedMsgTypeFromJSON = signedMsgTypeFromJSON; +function signedMsgTypeToJSON(object) { + switch (object) { + case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: + return "SIGNED_MSG_TYPE_UNKNOWN"; + case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: + return "SIGNED_MSG_TYPE_PREVOTE"; + case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: + return "SIGNED_MSG_TYPE_PRECOMMIT"; + case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: + return "SIGNED_MSG_TYPE_PROPOSAL"; + case SignedMsgType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +exports.signedMsgTypeToJSON = signedMsgTypeToJSON; +function createBasePartSetHeader() { + return { + total: 0, + hash: new Uint8Array() + }; +} +exports.PartSetHeader = { + typeUrl: "/tendermint.types.PartSetHeader", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.total !== 0) { + writer.uint32(8).uint32(message.total); + } + if (message.hash.length !== 0) { + writer.uint32(18).bytes(message.hash); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePartSetHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.uint32(); + break; + case 2: + message.hash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePartSetHeader(); + message.total = object.total ?? 0; + message.hash = object.hash ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBasePartSetHeader(); + if (object.total !== undefined && object.total !== null) { + message.total = object.total; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.total = message.total === 0 ? undefined : message.total; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.PartSetHeader.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.PartSetHeader.decode(message.value); + }, + toProto(message) { + return exports.PartSetHeader.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.PartSetHeader", + value: exports.PartSetHeader.encode(message).finish() + }; + } +}; +function createBasePart() { + return { + index: 0, + bytes: new Uint8Array(), + proof: proof_1.Proof.fromPartial({}) + }; +} +exports.Part = { + typeUrl: "/tendermint.types.Part", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.bytes.length !== 0) { + writer.uint32(18).bytes(message.bytes); + } + if (message.proof !== undefined) { + proof_1.Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.bytes = reader.bytes(); + break; + case 3: + message.proof = proof_1.Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBasePart(); + message.index = object.index ?? 0; + message.bytes = object.bytes ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? proof_1.Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBasePart(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.bytes !== undefined && object.bytes !== null) { + message.bytes = (0, helpers_1.bytesFromBase64)(object.bytes); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = proof_1.Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.bytes = message.bytes ? (0, helpers_1.base64FromBytes)(message.bytes) : undefined; + obj.proof = message.proof ? proof_1.Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Part.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Part.decode(message.value); + }, + toProto(message) { + return exports.Part.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Part", + value: exports.Part.encode(message).finish() + }; + } +}; +function createBaseBlockID() { + return { + hash: new Uint8Array(), + partSetHeader: exports.PartSetHeader.fromPartial({}) + }; +} +exports.BlockID = { + typeUrl: "/tendermint.types.BlockID", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.partSetHeader !== undefined) { + exports.PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.partSetHeader = exports.PartSetHeader.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockID(); + message.hash = object.hash ?? new Uint8Array(); + message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? exports.PartSetHeader.fromPartial(object.partSetHeader) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseBlockID(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = (0, helpers_1.bytesFromBase64)(object.hash); + } + if (object.part_set_header !== undefined && object.part_set_header !== null) { + message.partSetHeader = exports.PartSetHeader.fromAmino(object.part_set_header); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; + obj.part_set_header = message.partSetHeader ? exports.PartSetHeader.toAmino(message.partSetHeader) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BlockID.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BlockID.decode(message.value); + }, + toProto(message) { + return exports.BlockID.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockID", + value: exports.BlockID.encode(message).finish() + }; + } +}; +function createBaseHeader() { + return { + version: types_1.Consensus.fromPartial({}), + chainId: "", + height: BigInt(0), + time: new Date(), + lastBlockId: exports.BlockID.fromPartial({}), + lastCommitHash: new Uint8Array(), + dataHash: new Uint8Array(), + validatorsHash: new Uint8Array(), + nextValidatorsHash: new Uint8Array(), + consensusHash: new Uint8Array(), + appHash: new Uint8Array(), + lastResultsHash: new Uint8Array(), + evidenceHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +exports.Header = { + typeUrl: "/tendermint.types.Header", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.version !== undefined) { + types_1.Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.lastBlockId !== undefined) { + exports.BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); + } + if (message.lastCommitHash.length !== 0) { + writer.uint32(50).bytes(message.lastCommitHash); + } + if (message.dataHash.length !== 0) { + writer.uint32(58).bytes(message.dataHash); + } + if (message.validatorsHash.length !== 0) { + writer.uint32(66).bytes(message.validatorsHash); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(74).bytes(message.nextValidatorsHash); + } + if (message.consensusHash.length !== 0) { + writer.uint32(82).bytes(message.consensusHash); + } + if (message.appHash.length !== 0) { + writer.uint32(90).bytes(message.appHash); + } + if (message.lastResultsHash.length !== 0) { + writer.uint32(98).bytes(message.lastResultsHash); + } + if (message.evidenceHash.length !== 0) { + writer.uint32(106).bytes(message.evidenceHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(114).bytes(message.proposerAddress); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = types_1.Consensus.decode(reader, reader.uint32()); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.lastBlockId = exports.BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.lastCommitHash = reader.bytes(); + break; + case 7: + message.dataHash = reader.bytes(); + break; + case 8: + message.validatorsHash = reader.bytes(); + break; + case 9: + message.nextValidatorsHash = reader.bytes(); + break; + case 10: + message.consensusHash = reader.bytes(); + break; + case 11: + message.appHash = reader.bytes(); + break; + case 12: + message.lastResultsHash = reader.bytes(); + break; + case 13: + message.evidenceHash = reader.bytes(); + break; + case 14: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseHeader(); + message.version = object.version !== undefined && object.version !== null ? types_1.Consensus.fromPartial(object.version) : undefined; + message.chainId = object.chainId ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? exports.BlockID.fromPartial(object.lastBlockId) : undefined; + message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); + message.dataHash = object.dataHash ?? new Uint8Array(); + message.validatorsHash = object.validatorsHash ?? new Uint8Array(); + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.consensusHash = object.consensusHash ?? new Uint8Array(); + message.appHash = object.appHash ?? new Uint8Array(); + message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); + message.evidenceHash = object.evidenceHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseHeader(); + if (object.version !== undefined && object.version !== null) { + message.version = types_1.Consensus.fromAmino(object.version); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); + } + if (object.last_block_id !== undefined && object.last_block_id !== null) { + message.lastBlockId = exports.BlockID.fromAmino(object.last_block_id); + } + if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { + message.lastCommitHash = (0, helpers_1.bytesFromBase64)(object.last_commit_hash); + } + if (object.data_hash !== undefined && object.data_hash !== null) { + message.dataHash = (0, helpers_1.bytesFromBase64)(object.data_hash); + } + if (object.validators_hash !== undefined && object.validators_hash !== null) { + message.validatorsHash = (0, helpers_1.bytesFromBase64)(object.validators_hash); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); + } + if (object.consensus_hash !== undefined && object.consensus_hash !== null) { + message.consensusHash = (0, helpers_1.bytesFromBase64)(object.consensus_hash); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); + } + if (object.last_results_hash !== undefined && object.last_results_hash !== null) { + message.lastResultsHash = (0, helpers_1.bytesFromBase64)(object.last_results_hash); + } + if (object.evidence_hash !== undefined && object.evidence_hash !== null) { + message.evidenceHash = (0, helpers_1.bytesFromBase64)(object.evidence_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.version = message.version ? types_1.Consensus.toAmino(message.version) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; + obj.last_block_id = message.lastBlockId ? exports.BlockID.toAmino(message.lastBlockId) : undefined; + obj.last_commit_hash = message.lastCommitHash ? (0, helpers_1.base64FromBytes)(message.lastCommitHash) : undefined; + obj.data_hash = message.dataHash ? (0, helpers_1.base64FromBytes)(message.dataHash) : undefined; + obj.validators_hash = message.validatorsHash ? (0, helpers_1.base64FromBytes)(message.validatorsHash) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; + obj.consensus_hash = message.consensusHash ? (0, helpers_1.base64FromBytes)(message.consensusHash) : undefined; + obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; + obj.last_results_hash = message.lastResultsHash ? (0, helpers_1.base64FromBytes)(message.lastResultsHash) : undefined; + obj.evidence_hash = message.evidenceHash ? (0, helpers_1.base64FromBytes)(message.evidenceHash) : undefined; + obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Header.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Header.decode(message.value); + }, + toProto(message) { + return exports.Header.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Header", + value: exports.Header.encode(message).finish() + }; + } +}; +function createBaseData() { + return { + txs: [] + }; +} +exports.Data = { + typeUrl: "/tendermint.types.Data", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.txs) { + writer.uint32(10).bytes(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseData(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object) { + const message = createBaseData(); + message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + if (message.txs) { + obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); + } + else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Data.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Data.decode(message.value); + }, + toProto(message) { + return exports.Data.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Data", + value: exports.Data.encode(message).finish() + }; + } +}; +function createBaseVote() { + return { + type: 0, + height: BigInt(0), + round: 0, + blockId: exports.BlockID.fromPartial({}), + timestamp: new Date(), + validatorAddress: new Uint8Array(), + validatorIndex: 0, + signature: new Uint8Array() + }; +} +exports.Vote = { + typeUrl: "/tendermint.types.Vote", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.blockId !== undefined) { + exports.BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(50).bytes(message.validatorAddress); + } + if (message.validatorIndex !== 0) { + writer.uint32(56).int32(message.validatorIndex); + } + if (message.signature.length !== 0) { + writer.uint32(66).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.blockId = exports.BlockID.decode(reader, reader.uint32()); + break; + case 5: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAddress = reader.bytes(); + break; + case 7: + message.validatorIndex = reader.int32(); + break; + case 8: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseVote(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.validatorIndex = object.validatorIndex ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseVote(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = exports.BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = (0, helpers_1.bytesFromBase64)(object.validator_address); + } + if (object.validator_index !== undefined && object.validator_index !== null) { + message.validatorIndex = object.validator_index; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = (0, helpers_1.bytesFromBase64)(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + obj.validator_address = message.validatorAddress ? (0, helpers_1.base64FromBytes)(message.validatorAddress) : undefined; + obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; + obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Vote.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Vote.decode(message.value); + }, + toProto(message) { + return exports.Vote.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Vote", + value: exports.Vote.encode(message).finish() + }; + } +}; +function createBaseCommit() { + return { + height: BigInt(0), + round: 0, + blockId: exports.BlockID.fromPartial({}), + signatures: [] + }; +} +exports.Commit = { + typeUrl: "/tendermint.types.Commit", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(16).int32(message.round); + } + if (message.blockId !== undefined) { + exports.BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.signatures) { + exports.CommitSig.encode(v, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.round = reader.int32(); + break; + case 3: + message.blockId = exports.BlockID.decode(reader, reader.uint32()); + break; + case 4: + message.signatures.push(exports.CommitSig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommit(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; + message.signatures = object.signatures?.map(e => exports.CommitSig.fromPartial(e)) || []; + return message; + }, + fromAmino(object) { + const message = createBaseCommit(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = exports.BlockID.fromAmino(object.block_id); + } + message.signatures = object.signatures?.map(e => exports.CommitSig.fromAmino(e)) || []; + return message; + }, + toAmino(message) { + const obj = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? exports.CommitSig.toAmino(e) : undefined); + } + else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object) { + return exports.Commit.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Commit.decode(message.value); + }, + toProto(message) { + return exports.Commit.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Commit", + value: exports.Commit.encode(message).finish() + }; + } +}; +function createBaseCommitSig() { + return { + blockIdFlag: 0, + validatorAddress: new Uint8Array(), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +exports.CommitSig = { + typeUrl: "/tendermint.types.CommitSig", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.blockIdFlag !== 0) { + writer.uint32(8).int32(message.blockIdFlag); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(18).bytes(message.validatorAddress); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(34).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitSig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockIdFlag = reader.int32(); + break; + case 2: + message.validatorAddress = reader.bytes(); + break; + case 3: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseCommitSig(); + message.blockIdFlag = object.blockIdFlag ?? 0; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseCommitSig(); + if (object.block_id_flag !== undefined && object.block_id_flag !== null) { + message.blockIdFlag = object.block_id_flag; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = (0, helpers_1.bytesFromBase64)(object.validator_address); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = (0, helpers_1.bytesFromBase64)(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; + obj.validator_address = message.validatorAddress ? (0, helpers_1.base64FromBytes)(message.validatorAddress) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.CommitSig.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.CommitSig.decode(message.value); + }, + toProto(message) { + return exports.CommitSig.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.CommitSig", + value: exports.CommitSig.encode(message).finish() + }; + } +}; +function createBaseProposal() { + return { + type: 0, + height: BigInt(0), + round: 0, + polRound: 0, + blockId: exports.BlockID.fromPartial({}), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +exports.Proposal = { + typeUrl: "/tendermint.types.Proposal", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.polRound !== 0) { + writer.uint32(32).int32(message.polRound); + } + if (message.blockId !== undefined) { + exports.BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(50).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(58).bytes(message.signature); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.polRound = reader.int32(); + break; + case 5: + message.blockId = exports.BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseProposal(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.polRound = object.polRound ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object) { + const message = createBaseProposal(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.pol_round !== undefined && object.pol_round !== null) { + message.polRound = object.pol_round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = exports.BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = (0, helpers_1.bytesFromBase64)(object.signature); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.pol_round = message.polRound === 0 ? undefined : message.polRound; + obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; + obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Proposal.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Proposal.decode(message.value); + }, + toProto(message) { + return exports.Proposal.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Proposal", + value: exports.Proposal.encode(message).finish() + }; + } +}; +function createBaseSignedHeader() { + return { + header: undefined, + commit: undefined + }; +} +exports.SignedHeader = { + typeUrl: "/tendermint.types.SignedHeader", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.header !== undefined) { + exports.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.commit !== undefined) { + exports.Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignedHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = exports.Header.decode(reader, reader.uint32()); + break; + case 2: + message.commit = exports.Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSignedHeader(); + message.header = object.header !== undefined && object.header !== null ? exports.Header.fromPartial(object.header) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? exports.Commit.fromPartial(object.commit) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseSignedHeader(); + if (object.header !== undefined && object.header !== null) { + message.header = exports.Header.fromAmino(object.header); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = exports.Commit.fromAmino(object.commit); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.header = message.header ? exports.Header.toAmino(message.header) : undefined; + obj.commit = message.commit ? exports.Commit.toAmino(message.commit) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SignedHeader.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SignedHeader.decode(message.value); + }, + toProto(message) { + return exports.SignedHeader.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.SignedHeader", + value: exports.SignedHeader.encode(message).finish() + }; + } +}; +function createBaseLightBlock() { + return { + signedHeader: undefined, + validatorSet: undefined + }; +} +exports.LightBlock = { + typeUrl: "/tendermint.types.LightBlock", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.signedHeader !== undefined) { + exports.SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorSet !== undefined) { + validator_1.ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedHeader = exports.SignedHeader.decode(reader, reader.uint32()); + break; + case 2: + message.validatorSet = validator_1.ValidatorSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseLightBlock(); + message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? exports.SignedHeader.fromPartial(object.signedHeader) : undefined; + message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? validator_1.ValidatorSet.fromPartial(object.validatorSet) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseLightBlock(); + if (object.signed_header !== undefined && object.signed_header !== null) { + message.signedHeader = exports.SignedHeader.fromAmino(object.signed_header); + } + if (object.validator_set !== undefined && object.validator_set !== null) { + message.validatorSet = validator_1.ValidatorSet.fromAmino(object.validator_set); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.signed_header = message.signedHeader ? exports.SignedHeader.toAmino(message.signedHeader) : undefined; + obj.validator_set = message.validatorSet ? validator_1.ValidatorSet.toAmino(message.validatorSet) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.LightBlock.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.LightBlock.decode(message.value); + }, + toProto(message) { + return exports.LightBlock.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.LightBlock", + value: exports.LightBlock.encode(message).finish() + }; + } +}; +function createBaseBlockMeta() { + return { + blockId: exports.BlockID.fromPartial({}), + blockSize: BigInt(0), + header: exports.Header.fromPartial({}), + numTxs: BigInt(0) + }; +} +exports.BlockMeta = { + typeUrl: "/tendermint.types.BlockMeta", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.blockId !== undefined) { + exports.BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); + } + if (message.blockSize !== BigInt(0)) { + writer.uint32(16).int64(message.blockSize); + } + if (message.header !== undefined) { + exports.Header.encode(message.header, writer.uint32(26).fork()).ldelim(); + } + if (message.numTxs !== BigInt(0)) { + writer.uint32(32).int64(message.numTxs); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockMeta(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockId = exports.BlockID.decode(reader, reader.uint32()); + break; + case 2: + message.blockSize = reader.int64(); + break; + case 3: + message.header = exports.Header.decode(reader, reader.uint32()); + break; + case 4: + message.numTxs = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseBlockMeta(); + message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; + message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); + message.header = object.header !== undefined && object.header !== null ? exports.Header.fromPartial(object.header) : undefined; + message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseBlockMeta(); + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = exports.BlockID.fromAmino(object.block_id); + } + if (object.block_size !== undefined && object.block_size !== null) { + message.blockSize = BigInt(object.block_size); + } + if (object.header !== undefined && object.header !== null) { + message.header = exports.Header.fromAmino(object.header); + } + if (object.num_txs !== undefined && object.num_txs !== null) { + message.numTxs = BigInt(object.num_txs); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; + obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; + obj.header = message.header ? exports.Header.toAmino(message.header) : undefined; + obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.BlockMeta.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.BlockMeta.decode(message.value); + }, + toProto(message) { + return exports.BlockMeta.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.BlockMeta", + value: exports.BlockMeta.encode(message).finish() + }; + } +}; +function createBaseTxProof() { + return { + rootHash: new Uint8Array(), + data: new Uint8Array(), + proof: undefined + }; +} +exports.TxProof = { + typeUrl: "/tendermint.types.TxProof", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.rootHash.length !== 0) { + writer.uint32(10).bytes(message.rootHash); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.proof !== undefined) { + proof_1.Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rootHash = reader.bytes(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.proof = proof_1.Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseTxProof(); + message.rootHash = object.rootHash ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? proof_1.Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object) { + const message = createBaseTxProof(); + if (object.root_hash !== undefined && object.root_hash !== null) { + message.rootHash = (0, helpers_1.bytesFromBase64)(object.root_hash); + } + if (object.data !== undefined && object.data !== null) { + message.data = (0, helpers_1.bytesFromBase64)(object.data); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = proof_1.Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.root_hash = message.rootHash ? (0, helpers_1.base64FromBytes)(message.rootHash) : undefined; + obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; + obj.proof = message.proof ? proof_1.Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.TxProof.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.TxProof.decode(message.value); + }, + toProto(message) { + return exports.TxProof.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.TxProof", + value: exports.TxProof.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/types/validator.d.ts b/packages/api/dist/tendermint/types/validator.d.ts new file mode 100644 index 00000000..a6c1477f --- /dev/null +++ b/packages/api/dist/tendermint/types/validator.d.ts @@ -0,0 +1,107 @@ +import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface ValidatorSet { + validators: Validator[]; + proposer?: Validator; + totalVotingPower: bigint; +} +export interface ValidatorSetProtoMsg { + typeUrl: "/tendermint.types.ValidatorSet"; + value: Uint8Array; +} +export interface ValidatorSetAmino { + validators?: ValidatorAmino[]; + proposer?: ValidatorAmino; + total_voting_power?: string; +} +export interface ValidatorSetAminoMsg { + type: "/tendermint.types.ValidatorSet"; + value: ValidatorSetAmino; +} +export interface ValidatorSetSDKType { + validators: ValidatorSDKType[]; + proposer?: ValidatorSDKType; + total_voting_power: bigint; +} +export interface Validator { + address: Uint8Array; + pubKey: PublicKey; + votingPower: bigint; + proposerPriority: bigint; +} +export interface ValidatorProtoMsg { + typeUrl: "/tendermint.types.Validator"; + value: Uint8Array; +} +export interface ValidatorAmino { + address?: string; + pub_key?: PublicKeyAmino; + voting_power?: string; + proposer_priority?: string; +} +export interface ValidatorAminoMsg { + type: "/tendermint.types.Validator"; + value: ValidatorAmino; +} +export interface ValidatorSDKType { + address: Uint8Array; + pub_key: PublicKeySDKType; + voting_power: bigint; + proposer_priority: bigint; +} +export interface SimpleValidator { + pubKey?: PublicKey; + votingPower: bigint; +} +export interface SimpleValidatorProtoMsg { + typeUrl: "/tendermint.types.SimpleValidator"; + value: Uint8Array; +} +export interface SimpleValidatorAmino { + pub_key?: PublicKeyAmino; + voting_power?: string; +} +export interface SimpleValidatorAminoMsg { + type: "/tendermint.types.SimpleValidator"; + value: SimpleValidatorAmino; +} +export interface SimpleValidatorSDKType { + pub_key?: PublicKeySDKType; + voting_power: bigint; +} +export declare const ValidatorSet: { + typeUrl: string; + encode(message: ValidatorSet, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet; + fromPartial(object: Partial): ValidatorSet; + fromAmino(object: ValidatorSetAmino): ValidatorSet; + toAmino(message: ValidatorSet): ValidatorSetAmino; + fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet; + fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet; + toProto(message: ValidatorSet): Uint8Array; + toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg; +}; +export declare const Validator: { + typeUrl: string; + encode(message: Validator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Validator; + fromPartial(object: Partial): Validator; + fromAmino(object: ValidatorAmino): Validator; + toAmino(message: Validator): ValidatorAmino; + fromAminoMsg(object: ValidatorAminoMsg): Validator; + fromProtoMsg(message: ValidatorProtoMsg): Validator; + toProto(message: Validator): Uint8Array; + toProtoMsg(message: Validator): ValidatorProtoMsg; +}; +export declare const SimpleValidator: { + typeUrl: string; + encode(message: SimpleValidator, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator; + fromPartial(object: Partial): SimpleValidator; + fromAmino(object: SimpleValidatorAmino): SimpleValidator; + toAmino(message: SimpleValidator): SimpleValidatorAmino; + fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator; + fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator; + toProto(message: SimpleValidator): Uint8Array; + toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg; +}; diff --git a/packages/api/dist/tendermint/types/validator.js b/packages/api/dist/tendermint/types/validator.js new file mode 100644 index 00000000..6872f136 --- /dev/null +++ b/packages/api/dist/tendermint/types/validator.js @@ -0,0 +1,271 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SimpleValidator = exports.Validator = exports.ValidatorSet = void 0; +//@ts-nocheck +const keys_1 = require("../crypto/keys"); +const binary_1 = require("../../binary"); +const helpers_1 = require("../../helpers"); +function createBaseValidatorSet() { + return { + validators: [], + proposer: undefined, + totalVotingPower: BigInt(0) + }; +} +exports.ValidatorSet = { + typeUrl: "/tendermint.types.ValidatorSet", + encode(message, writer = binary_1.BinaryWriter.create()) { + for (const v of message.validators) { + exports.Validator.encode(v, writer.uint32(10).fork()).ldelim(); + } + if (message.proposer !== undefined) { + exports.Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(exports.Validator.decode(reader, reader.uint32())); + break; + case 2: + message.proposer = exports.Validator.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => exports.Validator.fromPartial(e)) || []; + message.proposer = object.proposer !== undefined && object.proposer !== null ? exports.Validator.fromPartial(object.proposer) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => exports.Validator.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = exports.Validator.fromAmino(object.proposer); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? exports.Validator.toAmino(e) : undefined); + } + else { + obj.validators = message.validators; + } + obj.proposer = message.proposer ? exports.Validator.toAmino(message.proposer) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.ValidatorSet.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.ValidatorSet.decode(message.value); + }, + toProto(message) { + return exports.ValidatorSet.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.ValidatorSet", + value: exports.ValidatorSet.encode(message).finish() + }; + } +}; +function createBaseValidator() { + return { + address: new Uint8Array(), + pubKey: keys_1.PublicKey.fromPartial({}), + votingPower: BigInt(0), + proposerPriority: BigInt(0) + }; +} +exports.Validator = { + typeUrl: "/tendermint.types.Validator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.pubKey !== undefined) { + keys_1.PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(24).int64(message.votingPower); + } + if (message.proposerPriority !== BigInt(0)) { + writer.uint32(32).int64(message.proposerPriority); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 2: + message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); + break; + case 3: + message.votingPower = reader.int64(); + break; + case 4: + message.proposerPriority = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = (0, helpers_1.bytesFromBase64)(object.address); + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + if (object.proposer_priority !== undefined && object.proposer_priority !== null) { + message.proposerPriority = BigInt(object.proposer_priority); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; + obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Validator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Validator.decode(message.value); + }, + toProto(message) { + return exports.Validator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.Validator", + value: exports.Validator.encode(message).finish() + }; + } +}; +function createBaseSimpleValidator() { + return { + pubKey: undefined, + votingPower: BigInt(0) + }; +} +exports.SimpleValidator = { + typeUrl: "/tendermint.types.SimpleValidator", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.pubKey !== undefined) { + keys_1.PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(16).int64(message.votingPower); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimpleValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.votingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseSimpleValidator(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseSimpleValidator(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.SimpleValidator.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.SimpleValidator.decode(message.value); + }, + toProto(message) { + return exports.SimpleValidator.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.types.SimpleValidator", + value: exports.SimpleValidator.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/tendermint/version/types.d.ts b/packages/api/dist/tendermint/version/types.d.ts new file mode 100644 index 00000000..7ae5d8dc --- /dev/null +++ b/packages/api/dist/tendermint/version/types.d.ts @@ -0,0 +1,95 @@ +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface App { + protocol: bigint; + software: string; +} +export interface AppProtoMsg { + typeUrl: "/tendermint.version.App"; + value: Uint8Array; +} +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface AppAmino { + protocol?: string; + software?: string; +} +export interface AppAminoMsg { + type: "/tendermint.version.App"; + value: AppAmino; +} +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface AppSDKType { + protocol: bigint; + software: string; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface Consensus { + block: bigint; + app: bigint; +} +export interface ConsensusProtoMsg { + typeUrl: "/tendermint.version.Consensus"; + value: Uint8Array; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface ConsensusAmino { + block?: string; + app?: string; +} +export interface ConsensusAminoMsg { + type: "/tendermint.version.Consensus"; + value: ConsensusAmino; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface ConsensusSDKType { + block: bigint; + app: bigint; +} +export declare const App: { + typeUrl: string; + encode(message: App, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): App; + fromPartial(object: Partial): App; + fromAmino(object: AppAmino): App; + toAmino(message: App): AppAmino; + fromAminoMsg(object: AppAminoMsg): App; + fromProtoMsg(message: AppProtoMsg): App; + toProto(message: App): Uint8Array; + toProtoMsg(message: App): AppProtoMsg; +}; +export declare const Consensus: { + typeUrl: string; + encode(message: Consensus, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): Consensus; + fromPartial(object: Partial): Consensus; + fromAmino(object: ConsensusAmino): Consensus; + toAmino(message: Consensus): ConsensusAmino; + fromAminoMsg(object: ConsensusAminoMsg): Consensus; + fromProtoMsg(message: ConsensusProtoMsg): Consensus; + toProto(message: Consensus): Uint8Array; + toProtoMsg(message: Consensus): ConsensusProtoMsg; +}; diff --git a/packages/api/dist/tendermint/version/types.js b/packages/api/dist/tendermint/version/types.js new file mode 100644 index 00000000..d56ed167 --- /dev/null +++ b/packages/api/dist/tendermint/version/types.js @@ -0,0 +1,155 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Consensus = exports.App = void 0; +//@ts-nocheck +const binary_1 = require("../../binary"); +function createBaseApp() { + return { + protocol: BigInt(0), + software: "" + }; +} +exports.App = { + typeUrl: "/tendermint.version.App", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.protocol !== BigInt(0)) { + writer.uint32(8).uint64(message.protocol); + } + if (message.software !== "") { + writer.uint32(18).string(message.software); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseApp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocol = reader.uint64(); + break; + case 2: + message.software = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseApp(); + message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); + message.software = object.software ?? ""; + return message; + }, + fromAmino(object) { + const message = createBaseApp(); + if (object.protocol !== undefined && object.protocol !== null) { + message.protocol = BigInt(object.protocol); + } + if (object.software !== undefined && object.software !== null) { + message.software = object.software; + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; + obj.software = message.software === "" ? undefined : message.software; + return obj; + }, + fromAminoMsg(object) { + return exports.App.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.App.decode(message.value); + }, + toProto(message) { + return exports.App.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.version.App", + value: exports.App.encode(message).finish() + }; + } +}; +function createBaseConsensus() { + return { + block: BigInt(0), + app: BigInt(0) + }; +} +exports.Consensus = { + typeUrl: "/tendermint.version.Consensus", + encode(message, writer = binary_1.BinaryWriter.create()) { + if (message.block !== BigInt(0)) { + writer.uint32(8).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(16).uint64(message.app); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = reader.uint64(); + break; + case 2: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object) { + const message = createBaseConsensus(); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object) { + const message = createBaseConsensus(); + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message) { + const obj = {}; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object) { + return exports.Consensus.fromAmino(object.value); + }, + fromProtoMsg(message) { + return exports.Consensus.decode(message.value); + }, + toProto(message) { + return exports.Consensus.encode(message).finish(); + }, + toProtoMsg(message) { + return { + typeUrl: "/tendermint.version.Consensus", + value: exports.Consensus.encode(message).finish() + }; + } +}; diff --git a/packages/api/dist/utf8.d.ts b/packages/api/dist/utf8.d.ts new file mode 100644 index 00000000..839f6a08 --- /dev/null +++ b/packages/api/dist/utf8.d.ts @@ -0,0 +1,27 @@ +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +export declare function utf8Length(str: string): number; +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +export declare function utf8Read(buffer: ArrayLike, start: number, end: number): string; +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +export declare function utf8Write(str: string, buffer: Uint8Array | Array, offset: number): number; diff --git a/packages/api/dist/utf8.js b/packages/api/dist/utf8.js new file mode 100644 index 00000000..25e9a236 --- /dev/null +++ b/packages/api/dist/utf8.js @@ -0,0 +1,142 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +// Copyright (c) 2016, Daniel Wirtz All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.utf8Write = exports.utf8Read = exports.utf8Length = void 0; +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +function utf8Length(str) { + let len = 0, c = 0; + for (let i = 0; i < str.length; ++i) { + c = str.charCodeAt(i); + if (c < 128) + len += 1; + else if (c < 2048) + len += 2; + else if ((c & 0xfc00) === 0xd800 && + (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { + ++i; + len += 4; + } + else + len += 3; + } + return len; +} +exports.utf8Length = utf8Length; +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +function utf8Read(buffer, start, end) { + const len = end - start; + if (len < 1) + return ""; + const chunk = []; + let parts = [], i = 0, // char offset + t; // temporary + while (start < end) { + t = buffer[start++]; + if (t < 128) + chunk[i++] = t; + else if (t > 191 && t < 224) + chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); + else if (t > 239 && t < 365) { + t = + (((t & 7) << 18) | + ((buffer[start++] & 63) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63)) - + 0x10000; + chunk[i++] = 0xd800 + (t >> 10); + chunk[i++] = 0xdc00 + (t & 1023); + } + else + chunk[i++] = + ((t & 15) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63); + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode(...chunk)); + i = 0; + } + } + if (parts) { + if (i) + parts.push(String.fromCharCode(...chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode(...chunk.slice(0, i)); +} +exports.utf8Read = utf8Read; +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +function utf8Write(str, buffer, offset) { + const start = offset; + let c1, // character 1 + c2; // character 2 + for (let i = 0; i < str.length; ++i) { + c1 = str.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } + else if (c1 < 2048) { + buffer[offset++] = (c1 >> 6) | 192; + buffer[offset++] = (c1 & 63) | 128; + } + else if ((c1 & 0xfc00) === 0xd800 && + ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00) { + c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); + ++i; + buffer[offset++] = (c1 >> 18) | 240; + buffer[offset++] = ((c1 >> 12) & 63) | 128; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } + else { + buffer[offset++] = (c1 >> 12) | 224; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } + } + return offset - start; +} +exports.utf8Write = utf8Write; diff --git a/packages/api/dist/varint.d.ts b/packages/api/dist/varint.d.ts new file mode 100644 index 00000000..74d78570 --- /dev/null +++ b/packages/api/dist/varint.d.ts @@ -0,0 +1,105 @@ +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +/** + * Read a 64 bit varint as two JS numbers. + * + * Returns tuple: + * [0]: low bits + * [1]: high bits + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 + */ +export declare function varint64read(this: ReaderLike): [number, number]; +/** + * Write a 64 bit varint, given as two JS numbers, to the given bytes array. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 + */ +export declare function varint64write(lo: number, hi: number, bytes: number[]): void; +/** + * Parse decimal string of 64 bit integer value as two JS numbers. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export declare function int64FromString(dec: string): { + lo: number; + hi: number; +}; +/** + * Losslessly converts a 64-bit signed integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export declare function int64ToString(lo: number, hi: number): string; +/** + * Losslessly converts a 64-bit unsigned integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export declare function uInt64ToString(lo: number, hi: number): string; +/** + * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 + */ +export declare function varint32write(value: number, bytes: number[]): void; +/** + * Read an unsigned 32 bit varint. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 + */ +export declare function varint32read(this: ReaderLike): number; +type ReaderLike = { + buf: Uint8Array; + pos: number; + len: number; + assertBounds(): void; +}; +/** + * encode zig zag + */ +export declare function zzEncode(lo: number, hi: number): number[]; +/** + * decode zig zag + */ +export declare function zzDecode(lo: number, hi: number): number[]; +/** + * unsigned int32 without moving pos. + */ +export declare function readUInt32(buf: Uint8Array, pos: number): number; +/** + * signed int32 without moving pos. + */ +export declare function readInt32(buf: Uint8Array, pos: number): number; +/** + * writing varint32 to pos + */ +export declare function writeVarint32(val: number, buf: Uint8Array | number[], pos: number): void; +/** + * writing varint64 to pos + */ +export declare function writeVarint64(val: { + lo: number; + hi: number; +}, buf: Uint8Array | number[], pos: number): void; +export declare function int64Length(lo: number, hi: number): 1 | 2 | 4 | 3 | 6 | 7 | 10 | 8 | 9 | 5; +export declare function writeFixed32(val: number, buf: Uint8Array | number[], pos: number): void; +export declare function writeByte(val: number, buf: Uint8Array | number[], pos: number): void; +export {}; diff --git a/packages/api/dist/varint.js b/packages/api/dist/varint.js new file mode 100644 index 00000000..bd82a456 --- /dev/null +++ b/packages/api/dist/varint.js @@ -0,0 +1,427 @@ +"use strict"; +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.writeByte = exports.writeFixed32 = exports.int64Length = exports.writeVarint64 = exports.writeVarint32 = exports.readInt32 = exports.readUInt32 = exports.zzDecode = exports.zzEncode = exports.varint32read = exports.varint32write = exports.uInt64ToString = exports.int64ToString = exports.int64FromString = exports.varint64write = exports.varint64read = void 0; +// Copyright 2008 Google Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Code generated by the Protocol Buffer compiler is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. +/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ +/** + * Read a 64 bit varint as two JS numbers. + * + * Returns tuple: + * [0]: low bits + * [1]: high bits + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 + */ +function varint64read() { + let lowBits = 0; + let highBits = 0; + for (let shift = 0; shift < 28; shift += 7) { + let b = this.buf[this.pos++]; + lowBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + let middleByte = this.buf[this.pos++]; + // last four bits of the first 32 bit number + lowBits |= (middleByte & 0x0f) << 28; + // 3 upper bits are part of the next 32 bit number + highBits = (middleByte & 0x70) >> 4; + if ((middleByte & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + for (let shift = 3; shift <= 31; shift += 7) { + let b = this.buf[this.pos++]; + highBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + throw new Error("invalid varint"); +} +exports.varint64read = varint64read; +/** + * Write a 64 bit varint, given as two JS numbers, to the given bytes array. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 + */ +function varint64write(lo, hi, bytes) { + for (let i = 0; i < 28; i = i + 7) { + const shift = lo >>> i; + const hasNext = !(shift >>> 7 == 0 && hi == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); + const hasMoreBits = !(hi >> 3 == 0); + bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); + if (!hasMoreBits) { + return; + } + for (let i = 3; i < 31; i = i + 7) { + const shift = hi >>> i; + const hasNext = !(shift >>> 7 == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + bytes.push((hi >>> 31) & 0x01); +} +exports.varint64write = varint64write; +// constants for binary math +const TWO_PWR_32_DBL = 0x100000000; +/** + * Parse decimal string of 64 bit integer value as two JS numbers. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +function int64FromString(dec) { + // Check for minus sign. + const minus = dec[0] === "-"; + if (minus) { + dec = dec.slice(1); + } + // Work 6 decimal digits at a time, acting like we're converting base 1e6 + // digits to binary. This is safe to do with floating point math because + // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. + const base = 1e6; + let lowBits = 0; + let highBits = 0; + function add1e6digit(begin, end) { + // Note: Number('') is 0. + const digit1e6 = Number(dec.slice(begin, end)); + highBits *= base; + lowBits = lowBits * base + digit1e6; + // Carry bits from lowBits to + if (lowBits >= TWO_PWR_32_DBL) { + highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); + lowBits = lowBits % TWO_PWR_32_DBL; + } + } + add1e6digit(-24, -18); + add1e6digit(-18, -12); + add1e6digit(-12, -6); + add1e6digit(-6); + return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); +} +exports.int64FromString = int64FromString; +/** + * Losslessly converts a 64-bit signed integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +function int64ToString(lo, hi) { + let bits = newBits(lo, hi); + // If we're treating the input as a signed value and the high bit is set, do + // a manual two's complement conversion before the decimal conversion. + const negative = bits.hi & 0x80000000; + if (negative) { + bits = negate(bits.lo, bits.hi); + } + const result = uInt64ToString(bits.lo, bits.hi); + return negative ? "-" + result : result; +} +exports.int64ToString = int64ToString; +/** + * Losslessly converts a 64-bit unsigned integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +function uInt64ToString(lo, hi) { + ({ lo, hi } = toUnsigned(lo, hi)); + // Skip the expensive conversion if the number is small enough to use the + // built-in conversions. + // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with + // highBits <= 0x1FFFFF can be safely expressed with a double and retain + // integer precision. + // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. + if (hi <= 0x1fffff) { + return String(TWO_PWR_32_DBL * hi + lo); + } + // What this code is doing is essentially converting the input number from + // base-2 to base-1e7, which allows us to represent the 64-bit range with + // only 3 (very large) digits. Those digits are then trivial to convert to + // a base-10 string. + // The magic numbers used here are - + // 2^24 = 16777216 = (1,6777216) in base-1e7. + // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. + // Split 32:32 representation into 16:24:24 representation so our + // intermediate digits don't overflow. + const low = lo & 0xffffff; + const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; + const high = (hi >> 16) & 0xffff; + // Assemble our three base-1e7 digits, ignoring carries. The maximum + // value in a digit at this step is representable as a 48-bit integer, which + // can be stored in a 64-bit floating point number. + let digitA = low + mid * 6777216 + high * 6710656; + let digitB = mid + high * 8147497; + let digitC = high * 2; + // Apply carries from A to B and from B to C. + const base = 10000000; + if (digitA >= base) { + digitB += Math.floor(digitA / base); + digitA %= base; + } + if (digitB >= base) { + digitC += Math.floor(digitB / base); + digitB %= base; + } + // If digitC is 0, then we should have returned in the trivial code path + // at the top for non-safe integers. Given this, we can assume both digitB + // and digitA need leading zeros. + return (digitC.toString() + + decimalFrom1e7WithLeadingZeros(digitB) + + decimalFrom1e7WithLeadingZeros(digitA)); +} +exports.uInt64ToString = uInt64ToString; +function toUnsigned(lo, hi) { + return { lo: lo >>> 0, hi: hi >>> 0 }; +} +function newBits(lo, hi) { + return { lo: lo | 0, hi: hi | 0 }; +} +/** + * Returns two's compliment negation of input. + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers + */ +function negate(lowBits, highBits) { + highBits = ~highBits; + if (lowBits) { + lowBits = ~lowBits + 1; + } + else { + // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, + // adding 1 to that, results in 0x100000000, which leaves + // the low bits 0x0 and simply adds one to the high bits. + highBits += 1; + } + return newBits(lowBits, highBits); +} +/** + * Returns decimal representation of digit1e7 with leading zeros. + */ +const decimalFrom1e7WithLeadingZeros = (digit1e7) => { + const partial = String(digit1e7); + return "0000000".slice(partial.length) + partial; +}; +/** + * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 + */ +function varint32write(value, bytes) { + if (value >= 0) { + // write value as varint 32 + while (value > 0x7f) { + bytes.push((value & 0x7f) | 0x80); + value = value >>> 7; + } + bytes.push(value); + } + else { + for (let i = 0; i < 9; i++) { + bytes.push((value & 127) | 128); + value = value >> 7; + } + bytes.push(1); + } +} +exports.varint32write = varint32write; +/** + * Read an unsigned 32 bit varint. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 + */ +function varint32read() { + let b = this.buf[this.pos++]; + let result = b & 0x7f; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 7; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 14; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 21; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + // Extract only last 4 bits + b = this.buf[this.pos++]; + result |= (b & 0x0f) << 28; + for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) + b = this.buf[this.pos++]; + if ((b & 0x80) != 0) + throw new Error("invalid varint"); + this.assertBounds(); + // Result can have 32 bits, convert it to unsigned + return result >>> 0; +} +exports.varint32read = varint32read; +/** + * encode zig zag + */ +function zzEncode(lo, hi) { + let mask = hi >> 31; + hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; + lo = ((lo << 1) ^ mask) >>> 0; + return [lo, hi]; +} +exports.zzEncode = zzEncode; +/** + * decode zig zag + */ +function zzDecode(lo, hi) { + let mask = -(lo & 1); + lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; + hi = ((hi >>> 1) ^ mask) >>> 0; + return [lo, hi]; +} +exports.zzDecode = zzDecode; +/** + * unsigned int32 without moving pos. + */ +function readUInt32(buf, pos) { + return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + buf[pos + 3] * 0x1000000); +} +exports.readUInt32 = readUInt32; +/** + * signed int32 without moving pos. + */ +function readInt32(buf, pos) { + return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + (buf[pos + 3] << 24)); +} +exports.readInt32 = readInt32; +/** + * writing varint32 to pos + */ +function writeVarint32(val, buf, pos) { + while (val > 127) { + buf[pos++] = (val & 127) | 128; + val >>>= 7; + } + buf[pos] = val; +} +exports.writeVarint32 = writeVarint32; +/** + * writing varint64 to pos + */ +function writeVarint64(val, buf, pos) { + while (val.hi) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; + val.hi >>>= 7; + } + while (val.lo > 127) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = val.lo >>> 7; + } + buf[pos++] = val.lo; +} +exports.writeVarint64 = writeVarint64; +function int64Length(lo, hi) { + let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24; + return part2 === 0 + ? part1 === 0 + ? part0 < 16384 + ? part0 < 128 + ? 1 + : 2 + : part0 < 2097152 + ? 3 + : 4 + : part1 < 16384 + ? part1 < 128 + ? 5 + : 6 + : part1 < 2097152 + ? 7 + : 8 + : part2 < 128 + ? 9 + : 10; +} +exports.int64Length = int64Length; +function writeFixed32(val, buf, pos) { + buf[pos] = val & 255; + buf[pos + 1] = (val >>> 8) & 255; + buf[pos + 2] = (val >>> 16) & 255; + buf[pos + 3] = val >>> 24; +} +exports.writeFixed32 = writeFixed32; +function writeByte(val, buf, pos) { + buf[pos] = val & 255; +} +exports.writeByte = writeByte; diff --git a/packages/api/jest.config.js b/packages/api/jest.config.js new file mode 100644 index 00000000..0aa3aaa4 --- /dev/null +++ b/packages/api/jest.config.js @@ -0,0 +1,18 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: "ts-jest", + testEnvironment: "node", + transform: { + "^.+\\.tsx?$": [ + "ts-jest", + { + babelConfig: false, + tsconfig: "tsconfig.json", + }, + ], + }, + transformIgnorePatterns: [`/node_modules/*`], + testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], + modulePathIgnorePatterns: ["dist/*"] +}; diff --git a/packages/api/scripts/aminos.ts b/packages/api/scripts/aminos.ts new file mode 100644 index 00000000..a0c88a28 --- /dev/null +++ b/packages/api/scripts/aminos.ts @@ -0,0 +1,128 @@ +export const AMINO_MAP = { + // NOTE: amino types for cosmos and ibc modules are registered by telescope + + // regen.data.v1 + '/regen.data.v1.MsgAnchor': { + aminoType: 'regen-ledger/MsgAnchor', + }, + '/regen.data.v1.MsgAttest': { + aminoType: 'regen-ledger/MsgAttest', + }, + '/regen.data.v1.MsgDefineResolver': { + aminoType: 'regen-ledger/MsgDefineResolver', + }, + '/regen.data.v1.MsgRegisterResolver': { + aminoType: 'regen-ledger/MsgRegisterResolver', + }, + + // regen.ecocredit.v1 + '/regen.ecocredit.v1.MsgCreateClass': { + aminoType: 'regen/MsgCreateClass', + }, + '/regen.ecocredit.v1.MsgCreateProject': { + aminoType: 'regen/MsgCreateProject', + }, + '/regen.ecocredit.v1.MsgCreateBatch': { + aminoType: 'regen/MsgCreateBatch', + }, + '/regen.ecocredit.v1.MsgMintBatchCredits': { + aminoType: 'regen/MsgMintBatchCredits', + }, + '/regen.ecocredit.v1.MsgSealBatch': { + aminoType: 'regen/MsgSealBatch', + }, + '/regen.ecocredit.v1.MsgSend': { + aminoType: 'regen/MsgSend', + }, + '/regen.ecocredit.v1.MsgRetire': { + aminoType: 'regen/MsgRetire', + }, + '/regen.ecocredit.v1.MsgCancel': { + aminoType: 'regen/MsgCancel', + }, + '/regen.ecocredit.v1.MsgUpdateClassAdmin': { + aminoType: 'regen/MsgUpdateClassAdmin', + }, + '/regen.ecocredit.v1.MsgUpdateClassIssuers': { + aminoType: 'regen/MsgUpdateClassIssuers', + }, + '/regen.ecocredit.v1.MsgUpdateClassMetadata': { + aminoType: 'regen/MsgUpdateClassMetadata', + }, + '/regen.ecocredit.v1.MsgUpdateProjectAdmin': { + aminoType: 'regen/MsgUpdateProjectAdmin', + }, + '/regen.ecocredit.v1.MsgUpdateProjectMetadata': { + aminoType: 'regen/MsgUpdateProjectMetadata', + }, + '/regen.ecocredit.v1.MsgUpdateBatchMetadata': { + aminoType: 'regen/MsgUpdateBatchMetadata', + }, + '/regen.ecocredit.v1.MsgBridge': { + aminoType: 'regen/MsgBridge', + }, + '/regen.ecocredit.v1.MsgBridgeReceive': { + aminoType: 'regen/MsgBridgeReceive', + }, + '/regen.ecocredit.v1.MsgAddCreditType': { + aminoType: 'regen/MsgAddCreditType', + }, + '/regen.ecocredit.v1.MsgSetClassCreatorAllowlist': { + aminoType: 'regen/MsgSetClassCreatorAllowlist', + }, + '/regen.ecocredit.v1.MsgAddClassCreator': { + aminoType: 'regen/MsgAddClassCreator', + }, + '/regen.ecocredit.v1.MsgRemoveClassCreator': { + aminoType: 'regen/MsgRemoveClassCreator', + }, + '/regen.ecocredit.v1.MsgUpdateClassFee': { + aminoType: 'regen/MsgUpdateClassFee', + }, + '/regen.ecocredit.v1.MsgAddAllowedBridgeChain': { + aminoType: 'regen/MsgAddAllowedBridgeChain', + }, + '/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain': { + aminoType: 'regen/MsgRemoveAllowedBridgeChain', + }, + + // regen.ecocredit.basket.v1 + '/regen.ecocredit.basket.v1.MsgCreate': { + aminoType: 'regen.basket/MsgCreate', + }, + '/regen.ecocredit.basket.v1.MsgPut': { + aminoType: 'regen.basket/MsgPut', + }, + '/regen.ecocredit.basket.v1.MsgTake': { + aminoType: 'regen.basket/MsgTake', + }, + '/regen.ecocredit.basket.v1.MsgUpdateBasketFee': { + aminoType: 'regen.basket/MsgUpdateBasketFee', + }, + '/regen.ecocredit.basket.v1.MsgUpdateCurator': { + aminoType: 'regen.basket/MsgUpdateCurator', + }, + '/regen.ecocredit.basket.v1.MsgUpdateDateCriteria': { + aminoType: 'regen.basket/MsgUpdateDateCriteria', + }, + + // regen.ecocredit.marketplace.v1 + '/regen.ecocredit.marketplace.v1.MsgSell': { + aminoType: 'regen.marketplace/MsgSell', + }, + '/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders': { + aminoType: 'regen.marketplace/MsgUpdateSellOrders', + }, + '/regen.ecocredit.marketplace.v1.MsgCancelSellOrder': { + aminoType: 'regen.marketplace/MsgCancelSellOrder', + }, + '/regen.ecocredit.marketplace.v1.MsgBuyDirect': { + aminoType: 'regen.marketplace/MsgBuyDirect', + }, + '/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom': { + aminoType: 'regen.marketplace/MsgAddAllowedDenom', + }, + '/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom': { + aminoType: 'regen.marketplace/MsgRemoveAllowedDenom', + }, +}; diff --git a/packages/api/scripts/codegen.ts b/packages/api/scripts/codegen.ts new file mode 100644 index 00000000..40eaf86c --- /dev/null +++ b/packages/api/scripts/codegen.ts @@ -0,0 +1,110 @@ +import telescope, { TelescopeInput } from '@cosmology/telescope'; +import { join } from 'path'; +import { rimrafSync as rimraf } from 'rimraf'; + +import { AMINO_MAP } from './aminos'; + +const protoDirs: string[] = [join(__dirname, '/../proto')]; +const outPath: string = join(__dirname, '../src'); +rimraf(outPath); + +export const options: TelescopeInput = { + protoDirs, + outPath, + options: { + interfaces: { + enabled: true, + useUnionTypes: true, + }, + prototypes: { + enabled: true, + excluded: { + packages: [ + 'ibc.applications.fee.v1', // issue with parsing protos (LCD routes with nested objects in params) + 'cosmos.app.v1alpha1', + 'cosmos.app.v1beta1', + 'cosmos.base.kv.v1beta1', + 'cosmos.base.reflection.v1beta1', + 'cosmos.base.snapshots.v1beta1', + 'cosmos.base.store.v1beta1', + 'cosmos.base.tendermint.v1beta1', + 'cosmos.crisis.v1beta1', + 'cosmos.evidence.v1beta1', + 'cosmos.genutil.v1beta1', + 'cosmos.autocli.v1', + 'cosmos.msg.v1', + 'cosmos.nft.v1beta1', + 'cosmos.capability.v1beta1', + 'cosmos.orm.v1alpha1', + 'cosmos.orm.v1', + 'cosmos.slashing.v1beta1', + 'google.api', + 'ibc.core.port.v1', + 'ibc.core.types.v1', + ], + }, + typingsFormat: { + num64: 'bigint', + }, + }, + + bundle: { + enabled: true, + }, + + tsDisable: { + files: [], + patterns: [], + disableAll: true, + }, + + eslintDisable: { + files: [], + patterns: [], + disableAll: false, + }, + + stargateClients: { + enabled: true, + includeCosmosDefaultTypes: true, + }, + + aminoEncoding: { + enabled: true, + customTypes: { + useCosmosSDKDec: false, + }, + exceptions: { + ...AMINO_MAP, + }, + }, + lcdClients: { + enabled: true, + }, + rpcClients: { + type: 'tendermint', + enabled: true, + }, + + reactQuery: { + enabled: false, + }, + + mobx: { + enabled: false, + }, + + pinia: { + enabled: false, + }, + }, +}; + +telescope(options) + .then(() => { + console.log('✨ all done!'); + }) + .catch(e => { + console.error(e); + process.exit(1); + }); diff --git a/packages/api/src/amino/amino.ts b/packages/api/src/amino/amino.ts new file mode 100644 index 00000000..693da49f --- /dev/null +++ b/packages/api/src/amino/amino.ts @@ -0,0 +1 @@ +export {} \ No newline at end of file diff --git a/packages/api/src/amino/bundle.ts b/packages/api/src/amino/bundle.ts new file mode 100644 index 00000000..a1ab4c8c --- /dev/null +++ b/packages/api/src/amino/bundle.ts @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _0 from "./amino"; +export const amino = { + ..._0 +}; \ No newline at end of file diff --git a/packages/api/src/binary.ts b/packages/api/src/binary.ts new file mode 100644 index 00000000..e56063cf --- /dev/null +++ b/packages/api/src/binary.ts @@ -0,0 +1,535 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ + + +// Copyright (c) 2016, Daniel Wirtz All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: + +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- + +// Code generated by the command line utilities is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. + +import { utf8Length, utf8Read, utf8Write } from "./utf8"; +import { + int64ToString, + readInt32, + readUInt32, + uInt64ToString, + varint32read, + varint64read, + writeVarint32, + writeVarint64, + int64FromString, + int64Length, + writeFixed32, + writeByte, + zzDecode, + zzEncode, +} from "./varint"; + +export enum WireType { + Varint = 0, + + Fixed64 = 1, + + Bytes = 2, + + Fixed32 = 5, +} + +// Reader +export interface IBinaryReader { + buf: Uint8Array; + pos: number; + type: number; + len: number; + tag(): [number, WireType, number]; + skip(length?: number): this; + skipType(wireType: number): this; + uint32(): number; + int32(): number; + sint32(): number; + fixed32(): number; + sfixed32(): number; + int64(): bigint; + uint64(): bigint; + sint64(): bigint; + fixed64(): bigint; + sfixed64(): bigint; + float(): number; + double(): number; + bool(): boolean; + bytes(): Uint8Array; + string(): string; +} + +export class BinaryReader implements IBinaryReader { + buf: Uint8Array; + pos: number; + type: number; + len: number; + + assertBounds(): void { + if (this.pos > this.len) throw new RangeError("premature EOF"); + } + + constructor(buf?: ArrayLike) { + this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); + this.pos = 0; + this.type = 0; + this.len = this.buf.length; + } + + tag(): [number, WireType, number] { + const tag = this.uint32(), + fieldNo = tag >>> 3, + wireType = tag & 7; + if (fieldNo <= 0 || wireType < 0 || wireType > 5) + throw new Error( + "illegal tag: field no " + fieldNo + " wire type " + wireType + ); + return [fieldNo, wireType, tag]; + } + + skip(length?: number) { + if (typeof length === "number") { + if (this.pos + length > this.len) throw indexOutOfRange(this, length); + this.pos += length; + } else { + do { + if (this.pos >= this.len) throw indexOutOfRange(this); + } while (this.buf[this.pos++] & 128); + } + return this; + } + + skipType(wireType: number) { + switch (wireType) { + case WireType.Varint: + this.skip(); + break; + case WireType.Fixed64: + this.skip(8); + break; + case WireType.Bytes: + this.skip(this.uint32()); + break; + case 3: + while ((wireType = this.uint32() & 7) !== 4) { + this.skipType(wireType); + } + break; + case WireType.Fixed32: + this.skip(4); + break; + + /* istanbul ignore next */ + default: + throw Error("invalid wire type " + wireType + " at offset " + this.pos); + } + return this; + } + + uint32(): number { + return varint32read.bind(this)(); + } + + int32(): number { + return this.uint32() | 0; + } + + sint32(): number { + const num = this.uint32(); + return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding + } + + fixed32(): number { + const val = readUInt32(this.buf, this.pos); + this.pos += 4; + return val; + } + + sfixed32(): number { + const val = readInt32(this.buf, this.pos); + this.pos += 4; + return val; + } + + int64(): bigint { + const [lo, hi] = varint64read.bind(this)(); + return BigInt(int64ToString(lo, hi)); + } + + uint64(): bigint { + const [lo, hi] = varint64read.bind(this)(); + return BigInt(uInt64ToString(lo, hi)); + } + + sint64(): bigint { + let [lo, hi] = varint64read.bind(this)(); + // zig zag + [lo, hi] = zzDecode(lo, hi); + return BigInt(int64ToString(lo, hi)); + } + + fixed64(): bigint { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt(uInt64ToString(lo, hi)); + } + sfixed64(): bigint { + const lo = this.sfixed32(); + const hi = this.sfixed32(); + return BigInt(int64ToString(lo, hi)); + } + + float(): number { + throw new Error("float not supported"); + } + + double(): number { + throw new Error("double not supported"); + } + + bool(): boolean { + const [lo, hi] = varint64read.bind(this)(); + return lo !== 0 || hi !== 0; + } + + bytes(): Uint8Array { + const len = this.uint32(), + start = this.pos; + this.pos += len; + this.assertBounds(); + return this.buf.subarray(start, start + len); + } + + string(): string { + const bytes = this.bytes(); + return utf8Read(bytes, 0, bytes.length); + } +} + +// Writer +export interface IBinaryWriter { + len: number; + head: IOp; + tail: IOp; + states: State | null; + finish(): Uint8Array; + fork(): IBinaryWriter; + reset(): IBinaryWriter; + ldelim(): IBinaryWriter; + tag(fieldNo: number, type: WireType): IBinaryWriter; + uint32(value: number): IBinaryWriter; + int32(value: number): IBinaryWriter; + sint32(value: number): IBinaryWriter; + int64(value: string | number | bigint): IBinaryWriter; + uint64: (value: string | number | bigint) => IBinaryWriter; + sint64(value: string | number | bigint): IBinaryWriter; + fixed64(value: string | number | bigint): IBinaryWriter; + sfixed64: (value: string | number | bigint) => IBinaryWriter; + bool(value: boolean): IBinaryWriter; + fixed32(value: number): IBinaryWriter; + sfixed32: (value: number) => IBinaryWriter; + float(value: number): IBinaryWriter; + double(value: number): IBinaryWriter; + bytes(value: Uint8Array): IBinaryWriter; + string(value: string): IBinaryWriter; +} + +interface IOp { + len: number; + next?: IOp; + proceed(buf: Uint8Array | number[], pos: number): void; +} + +class Op implements IOp { + fn?: ((val: T, buf: Uint8Array | number[], pos: number) => void) | null; + len: number; + val: T; + next?: IOp; + + constructor( + fn: + | (( + val: T, + buf: Uint8Array | number[], + pos: number + ) => void | undefined | null) + | null, + len: number, + val: T + ) { + this.fn = fn; + this.len = len; + this.val = val; + } + + proceed(buf: Uint8Array | number[], pos: number) { + if (this.fn) { + this.fn(this.val, buf, pos); + } + } +} + +class State { + head: IOp; + tail: IOp; + len: number; + next: State | null; + + constructor(writer: BinaryWriter) { + this.head = writer.head; + this.tail = writer.tail; + this.len = writer.len; + this.next = writer.states; + } +} + +export class BinaryWriter implements IBinaryWriter { + len = 0; + head: IOp; + tail: IOp; + states: State | null; + + constructor() { + this.head = new Op(null, 0, 0); + this.tail = this.head; + this.states = null; + } + + static create() { + return new BinaryWriter(); + } + + static alloc(size: number): Uint8Array | number[] { + if (typeof Uint8Array !== "undefined") { + return pool( + (size) => new Uint8Array(size), + Uint8Array.prototype.subarray + )(size); + } else { + return new Array(size); + } + } + + private _push( + fn: (val: T, buf: Uint8Array | number[], pos: number) => void, + len: number, + val: T + ) { + this.tail = this.tail.next = new Op(fn, len, val); + this.len += len; + return this; + } + + finish(): Uint8Array { + let head = this.head.next, + pos = 0; + const buf = BinaryWriter.alloc(this.len); + while (head) { + head.proceed(buf, pos); + pos += head.len; + head = head.next; + } + return buf as Uint8Array; + } + + fork(): BinaryWriter { + this.states = new State(this); + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + return this; + } + + reset(): BinaryWriter { + if (this.states) { + this.head = this.states.head; + this.tail = this.states.tail; + this.len = this.states.len; + this.states = this.states.next; + } else { + this.head = this.tail = new Op(null, 0, 0); + this.len = 0; + } + return this; + } + + ldelim(): BinaryWriter { + const head = this.head, + tail = this.tail, + len = this.len; + this.reset().uint32(len); + if (len) { + this.tail.next = head.next; // skip noop + this.tail = tail; + this.len += len; + } + return this; + } + + tag(fieldNo: number, type: WireType): BinaryWriter { + return this.uint32(((fieldNo << 3) | type) >>> 0); + } + + uint32(value: number): BinaryWriter { + this.len += (this.tail = this.tail.next = + new Op( + writeVarint32, + (value = value >>> 0) < 128 + ? 1 + : value < 16384 + ? 2 + : value < 2097152 + ? 3 + : value < 268435456 + ? 4 + : 5, + value + )).len; + return this; + } + + int32(value: number): BinaryWriter { + return value < 0 + ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec + : this.uint32(value); + } + + sint32(value: number): BinaryWriter { + return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); + } + + int64(value: string | number | bigint): BinaryWriter { + const { lo, hi } = int64FromString(value.toString()); + return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); + } + + // uint64 is the same with int64 + uint64 = BinaryWriter.prototype.int64; + + sint64(value: string | number | bigint): BinaryWriter { + let { lo, hi } = int64FromString(value.toString()); + // zig zag + [lo, hi] = zzEncode(lo, hi); + return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); + } + + fixed64(value: string | number | bigint): BinaryWriter { + const { lo, hi } = int64FromString(value.toString()); + return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi); + } + + // sfixed64 is the same with fixed64 + sfixed64 = BinaryWriter.prototype.fixed64; + + bool(value: boolean): BinaryWriter { + return this._push(writeByte, 1, value ? 1 : 0); + } + + fixed32(value: number): BinaryWriter { + return this._push(writeFixed32, 4, value >>> 0); + } + + // sfixed32 is the same with fixed32 + sfixed32 = BinaryWriter.prototype.fixed32; + + float(value: number): BinaryWriter { + throw new Error("float not supported" + value); + } + + double(value: number): BinaryWriter { + throw new Error("double not supported" + value); + } + + bytes(value: Uint8Array): BinaryWriter { + const len = value.length >>> 0; + if (!len) return this._push(writeByte, 1, 0); + return this.uint32(len)._push(writeBytes, len, value); + } + + string(value: string): BinaryWriter { + const len = utf8Length(value); + return len + ? this.uint32(len)._push(utf8Write, len, value) + : this._push(writeByte, 1, 0); + } +} + +function writeBytes( + val: Uint8Array | number[], + buf: Uint8Array | number[], + pos: number +) { + if (typeof Uint8Array !== "undefined") { + (buf as Uint8Array).set(val, pos); + } else { + for (let i = 0; i < val.length; ++i) buf[pos + i] = val[i]; + } +} + +function pool( + alloc: (size: number) => Uint8Array, + slice: (begin?: number, end?: number) => Uint8Array, + size?: number +): (size: number) => Uint8Array { + const SIZE = size || 8192; + const MAX = SIZE >>> 1; + let slab: Uint8Array | null = null; + let offset = SIZE; + return function pool_alloc(size): Uint8Array { + if (size < 1 || size > MAX) return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + const buf: Uint8Array = slice.call(slab, offset, (offset += size)); + if (offset & 7) + // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} + +function indexOutOfRange(reader: BinaryReader, writeLength?: number) { + return RangeError( + "index out of range: " + + reader.pos + + " + " + + (writeLength || 1) + + " > " + + reader.len + ); +} diff --git a/packages/api/src/cosmos/app/module/v1alpha1/module.ts b/packages/api/src/cosmos/app/module/v1alpha1/module.ts new file mode 100644 index 00000000..3141e41c --- /dev/null +++ b/packages/api/src/cosmos/app/module/v1alpha1/module.ts @@ -0,0 +1,72 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.app.module.v1alpha1.Module"; + value: Uint8Array; +} +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the module config object for the cosmos.app v1 app module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.app.module.v1alpha1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/app/v1alpha1/module.ts b/packages/api/src/cosmos/app/v1alpha1/module.ts new file mode 100644 index 00000000..42f36950 --- /dev/null +++ b/packages/api/src/cosmos/app/v1alpha1/module.ts @@ -0,0 +1,451 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptor { + /** + * go_import names the package that should be imported by an app to load the + * module in the runtime module registry. It is required to make debugging + * of configuration errors easier for users. + */ + goImport: string; + /** + * use_package refers to a protobuf package that this module + * uses and exposes to the world. In an app, only one module should "use" + * or own a single protobuf package. It is assumed that the module uses + * all of the .proto files in a single package. + */ + usePackage: PackageReference[]; + /** + * can_migrate_from defines which module versions this module can migrate + * state from. The framework will check that one module version is able to + * migrate from a previous module version before attempting to update its + * config. It is assumed that modules can transitively migrate from earlier + * versions. For instance if v3 declares it can migrate from v2, and v2 + * declares it can migrate from v1, the framework knows how to migrate + * from v1 to v3, assuming all 3 module versions are registered at runtime. + */ + canMigrateFrom: MigrateFromInfo[]; +} +export interface ModuleDescriptorProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; + value: Uint8Array; +} +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptorAmino { + /** + * go_import names the package that should be imported by an app to load the + * module in the runtime module registry. It is required to make debugging + * of configuration errors easier for users. + */ + go_import?: string; + /** + * use_package refers to a protobuf package that this module + * uses and exposes to the world. In an app, only one module should "use" + * or own a single protobuf package. It is assumed that the module uses + * all of the .proto files in a single package. + */ + use_package?: PackageReferenceAmino[]; + /** + * can_migrate_from defines which module versions this module can migrate + * state from. The framework will check that one module version is able to + * migrate from a previous module version before attempting to update its + * config. It is assumed that modules can transitively migrate from earlier + * versions. For instance if v3 declares it can migrate from v2, and v2 + * declares it can migrate from v1, the framework knows how to migrate + * from v1 to v3, assuming all 3 module versions are registered at runtime. + */ + can_migrate_from?: MigrateFromInfoAmino[]; +} +export interface ModuleDescriptorAminoMsg { + type: "cosmos-sdk/ModuleDescriptor"; + value: ModuleDescriptorAmino; +} +/** ModuleDescriptor describes an app module. */ +export interface ModuleDescriptorSDKType { + go_import: string; + use_package: PackageReferenceSDKType[]; + can_migrate_from: MigrateFromInfoSDKType[]; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReference { + /** name is the fully-qualified name of the package. */ + name: string; + /** + * revision is the optional revision of the package that is being used. + * Protobuf packages used in Cosmos should generally have a major version + * as the last part of the package name, ex. foo.bar.baz.v1. + * The revision of a package can be thought of as the minor version of a + * package which has additional backwards compatible definitions that weren't + * present in a previous version. + * + * A package should indicate its revision with a source code comment + * above the package declaration in one of its files containing the + * text "Revision N" where N is an integer revision. All packages start + * at revision 0 the first time they are released in a module. + * + * When a new version of a module is released and items are added to existing + * .proto files, these definitions should contain comments of the form + * "Since Revision N" where N is an integer revision. + * + * When the module runtime starts up, it will check the pinned proto + * image and panic if there are runtime protobuf definitions that are not + * in the pinned descriptor which do not have + * a "Since Revision N" comment or have a "Since Revision N" comment where + * N is <= to the revision specified here. This indicates that the protobuf + * files have been updated, but the pinned file descriptor hasn't. + * + * If there are items in the pinned file descriptor with a revision + * greater than the value indicated here, this will also cause a panic + * as it may mean that the pinned descriptor for a legacy module has been + * improperly updated or that there is some other versioning discrepancy. + * Runtime protobuf definitions will also be checked for compatibility + * with pinned file descriptors to make sure there are no incompatible changes. + * + * This behavior ensures that: + * * pinned proto images are up-to-date + * * protobuf files are carefully annotated with revision comments which + * are important good client UX + * * protobuf files are changed in backwards and forwards compatible ways + */ + revision: number; +} +export interface PackageReferenceProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.PackageReference"; + value: Uint8Array; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReferenceAmino { + /** name is the fully-qualified name of the package. */ + name?: string; + /** + * revision is the optional revision of the package that is being used. + * Protobuf packages used in Cosmos should generally have a major version + * as the last part of the package name, ex. foo.bar.baz.v1. + * The revision of a package can be thought of as the minor version of a + * package which has additional backwards compatible definitions that weren't + * present in a previous version. + * + * A package should indicate its revision with a source code comment + * above the package declaration in one of its files containing the + * text "Revision N" where N is an integer revision. All packages start + * at revision 0 the first time they are released in a module. + * + * When a new version of a module is released and items are added to existing + * .proto files, these definitions should contain comments of the form + * "Since Revision N" where N is an integer revision. + * + * When the module runtime starts up, it will check the pinned proto + * image and panic if there are runtime protobuf definitions that are not + * in the pinned descriptor which do not have + * a "Since Revision N" comment or have a "Since Revision N" comment where + * N is <= to the revision specified here. This indicates that the protobuf + * files have been updated, but the pinned file descriptor hasn't. + * + * If there are items in the pinned file descriptor with a revision + * greater than the value indicated here, this will also cause a panic + * as it may mean that the pinned descriptor for a legacy module has been + * improperly updated or that there is some other versioning discrepancy. + * Runtime protobuf definitions will also be checked for compatibility + * with pinned file descriptors to make sure there are no incompatible changes. + * + * This behavior ensures that: + * * pinned proto images are up-to-date + * * protobuf files are carefully annotated with revision comments which + * are important good client UX + * * protobuf files are changed in backwards and forwards compatible ways + */ + revision?: number; +} +export interface PackageReferenceAminoMsg { + type: "cosmos-sdk/PackageReference"; + value: PackageReferenceAmino; +} +/** PackageReference is a reference to a protobuf package used by a module. */ +export interface PackageReferenceSDKType { + name: string; + revision: number; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfo { + /** + * module is the fully-qualified protobuf name of the module config object + * for the previous module version, ex: "cosmos.group.module.v1.Module". + */ + module: string; +} +export interface MigrateFromInfoProtoMsg { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; + value: Uint8Array; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfoAmino { + /** + * module is the fully-qualified protobuf name of the module config object + * for the previous module version, ex: "cosmos.group.module.v1.Module". + */ + module?: string; +} +export interface MigrateFromInfoAminoMsg { + type: "cosmos-sdk/MigrateFromInfo"; + value: MigrateFromInfoAmino; +} +/** + * MigrateFromInfo is information on a module version that a newer module + * can migrate from. + */ +export interface MigrateFromInfoSDKType { + module: string; +} +function createBaseModuleDescriptor(): ModuleDescriptor { + return { + goImport: "", + usePackage: [], + canMigrateFrom: [] + }; +} +export const ModuleDescriptor = { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + encode(message: ModuleDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.goImport !== "") { + writer.uint32(10).string(message.goImport); + } + for (const v of message.usePackage) { + PackageReference.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.canMigrateFrom) { + MigrateFromInfo.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.goImport = reader.string(); + break; + case 2: + message.usePackage.push(PackageReference.decode(reader, reader.uint32())); + break; + case 3: + message.canMigrateFrom.push(MigrateFromInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModuleDescriptor { + const message = createBaseModuleDescriptor(); + message.goImport = object.goImport ?? ""; + message.usePackage = object.usePackage?.map(e => PackageReference.fromPartial(e)) || []; + message.canMigrateFrom = object.canMigrateFrom?.map(e => MigrateFromInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ModuleDescriptorAmino): ModuleDescriptor { + const message = createBaseModuleDescriptor(); + if (object.go_import !== undefined && object.go_import !== null) { + message.goImport = object.go_import; + } + message.usePackage = object.use_package?.map(e => PackageReference.fromAmino(e)) || []; + message.canMigrateFrom = object.can_migrate_from?.map(e => MigrateFromInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: ModuleDescriptor): ModuleDescriptorAmino { + const obj: any = {}; + obj.go_import = message.goImport === "" ? undefined : message.goImport; + if (message.usePackage) { + obj.use_package = message.usePackage.map(e => e ? PackageReference.toAmino(e) : undefined); + } else { + obj.use_package = message.usePackage; + } + if (message.canMigrateFrom) { + obj.can_migrate_from = message.canMigrateFrom.map(e => e ? MigrateFromInfo.toAmino(e) : undefined); + } else { + obj.can_migrate_from = message.canMigrateFrom; + } + return obj; + }, + fromAminoMsg(object: ModuleDescriptorAminoMsg): ModuleDescriptor { + return ModuleDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: ModuleDescriptor): ModuleDescriptorAminoMsg { + return { + type: "cosmos-sdk/ModuleDescriptor", + value: ModuleDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleDescriptorProtoMsg): ModuleDescriptor { + return ModuleDescriptor.decode(message.value); + }, + toProto(message: ModuleDescriptor): Uint8Array { + return ModuleDescriptor.encode(message).finish(); + }, + toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg { + return { + typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", + value: ModuleDescriptor.encode(message).finish() + }; + } +}; +function createBasePackageReference(): PackageReference { + return { + name: "", + revision: 0 + }; +} +export const PackageReference = { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + encode(message: PackageReference, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.revision !== 0) { + writer.uint32(16).uint32(message.revision); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PackageReference { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePackageReference(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.revision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PackageReference { + const message = createBasePackageReference(); + message.name = object.name ?? ""; + message.revision = object.revision ?? 0; + return message; + }, + fromAmino(object: PackageReferenceAmino): PackageReference { + const message = createBasePackageReference(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.revision !== undefined && object.revision !== null) { + message.revision = object.revision; + } + return message; + }, + toAmino(message: PackageReference): PackageReferenceAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.revision = message.revision === 0 ? undefined : message.revision; + return obj; + }, + fromAminoMsg(object: PackageReferenceAminoMsg): PackageReference { + return PackageReference.fromAmino(object.value); + }, + toAminoMsg(message: PackageReference): PackageReferenceAminoMsg { + return { + type: "cosmos-sdk/PackageReference", + value: PackageReference.toAmino(message) + }; + }, + fromProtoMsg(message: PackageReferenceProtoMsg): PackageReference { + return PackageReference.decode(message.value); + }, + toProto(message: PackageReference): Uint8Array { + return PackageReference.encode(message).finish(); + }, + toProtoMsg(message: PackageReference): PackageReferenceProtoMsg { + return { + typeUrl: "/cosmos.app.v1alpha1.PackageReference", + value: PackageReference.encode(message).finish() + }; + } +}; +function createBaseMigrateFromInfo(): MigrateFromInfo { + return { + module: "" + }; +} +export const MigrateFromInfo = { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + encode(message: MigrateFromInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.module !== "") { + writer.uint32(10).string(message.module); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMigrateFromInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.module = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MigrateFromInfo { + const message = createBaseMigrateFromInfo(); + message.module = object.module ?? ""; + return message; + }, + fromAmino(object: MigrateFromInfoAmino): MigrateFromInfo { + const message = createBaseMigrateFromInfo(); + if (object.module !== undefined && object.module !== null) { + message.module = object.module; + } + return message; + }, + toAmino(message: MigrateFromInfo): MigrateFromInfoAmino { + const obj: any = {}; + obj.module = message.module === "" ? undefined : message.module; + return obj; + }, + fromAminoMsg(object: MigrateFromInfoAminoMsg): MigrateFromInfo { + return MigrateFromInfo.fromAmino(object.value); + }, + toAminoMsg(message: MigrateFromInfo): MigrateFromInfoAminoMsg { + return { + type: "cosmos-sdk/MigrateFromInfo", + value: MigrateFromInfo.toAmino(message) + }; + }, + fromProtoMsg(message: MigrateFromInfoProtoMsg): MigrateFromInfo { + return MigrateFromInfo.decode(message.value); + }, + toProto(message: MigrateFromInfo): Uint8Array { + return MigrateFromInfo.encode(message).finish(); + }, + toProtoMsg(message: MigrateFromInfo): MigrateFromInfoProtoMsg { + return { + typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", + value: MigrateFromInfo.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/auth/v1beta1/auth.ts b/packages/api/src/cosmos/auth/v1beta1/auth.ts new file mode 100644 index 00000000..c66e90b5 --- /dev/null +++ b/packages/api/src/cosmos/auth/v1beta1/auth.ts @@ -0,0 +1,425 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccount { + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; + address: string; + pubKey?: Any; + accountNumber: bigint; + sequence: bigint; +} +export interface BaseAccountProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; + value: Uint8Array; +} +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccountAmino { + address?: string; + pub_key?: AnyAmino; + account_number?: string; + sequence?: string; +} +export interface BaseAccountAminoMsg { + type: "cosmos-sdk/BaseAccount"; + value: BaseAccountAmino; +} +/** + * BaseAccount defines a base account type. It contains all the necessary fields + * for basic account functionality. Any custom account type should extend this + * type for additional functionality (e.g. vesting). + */ +export interface BaseAccountSDKType { + $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; + address: string; + pub_key?: AnySDKType; + account_number: bigint; + sequence: bigint; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccount { + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + baseAccount?: BaseAccount; + name: string; + permissions: string[]; +} +export interface ModuleAccountProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; + value: Uint8Array; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccountAmino { + base_account?: BaseAccountAmino; + name?: string; + permissions?: string[]; +} +export interface ModuleAccountAminoMsg { + type: "cosmos-sdk/ModuleAccount"; + value: ModuleAccountAmino; +} +/** ModuleAccount defines an account for modules that holds coins on a pool. */ +export interface ModuleAccountSDKType { + $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; + base_account?: BaseAccountSDKType; + name: string; + permissions: string[]; +} +/** Params defines the parameters for the auth module. */ +export interface Params { + maxMemoCharacters: bigint; + txSigLimit: bigint; + txSizeCostPerByte: bigint; + sigVerifyCostEd25519: bigint; + sigVerifyCostSecp256k1: bigint; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the auth module. */ +export interface ParamsAmino { + max_memo_characters?: string; + tx_sig_limit?: string; + tx_size_cost_per_byte?: string; + sig_verify_cost_ed25519?: string; + sig_verify_cost_secp256k1?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the auth module. */ +export interface ParamsSDKType { + max_memo_characters: bigint; + tx_sig_limit: bigint; + tx_size_cost_per_byte: bigint; + sig_verify_cost_ed25519: bigint; + sig_verify_cost_secp256k1: bigint; +} +function createBaseBaseAccount(): BaseAccount { + return { + $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + address: "", + pubKey: undefined, + accountNumber: BigInt(0), + sequence: BigInt(0) + }; +} +export const BaseAccount = { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + encode(message: BaseAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pubKey !== undefined) { + Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(32).uint64(message.sequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pubKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.accountNumber = reader.uint64(); + break; + case 4: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BaseAccount { + const message = createBaseBaseAccount(); + message.address = object.address ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BaseAccountAmino): BaseAccount { + const message = createBaseBaseAccount(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = Any.fromAmino(object.pub_key); + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message: BaseAccount): BaseAccountAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount { + return BaseAccount.fromAmino(object.value); + }, + toAminoMsg(message: BaseAccount): BaseAccountAminoMsg { + return { + type: "cosmos-sdk/BaseAccount", + value: BaseAccount.toAmino(message) + }; + }, + fromProtoMsg(message: BaseAccountProtoMsg): BaseAccount { + return BaseAccount.decode(message.value); + }, + toProto(message: BaseAccount): Uint8Array { + return BaseAccount.encode(message).finish(); + }, + toProtoMsg(message: BaseAccount): BaseAccountProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: BaseAccount.encode(message).finish() + }; + } +}; +function createBaseModuleAccount(): ModuleAccount { + return { + $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + baseAccount: undefined, + name: "", + permissions: [] + }; +} +export const ModuleAccount = { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + encode(message: ModuleAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseAccount !== undefined) { + BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + for (const v of message.permissions) { + writer.uint32(26).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModuleAccount { + const message = createBaseModuleAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; + message.name = object.name ?? ""; + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + fromAmino(object: ModuleAccountAmino): ModuleAccount { + const message = createBaseModuleAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = BaseAccount.fromAmino(object.base_account); + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + toAmino(message: ModuleAccount): ModuleAccountAmino { + const obj: any = {}; + obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; + obj.name = message.name === "" ? undefined : message.name; + if (message.permissions) { + obj.permissions = message.permissions.map(e => e); + } else { + obj.permissions = message.permissions; + } + return obj; + }, + fromAminoMsg(object: ModuleAccountAminoMsg): ModuleAccount { + return ModuleAccount.fromAmino(object.value); + }, + toAminoMsg(message: ModuleAccount): ModuleAccountAminoMsg { + return { + type: "cosmos-sdk/ModuleAccount", + value: ModuleAccount.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleAccountProtoMsg): ModuleAccount { + return ModuleAccount.decode(message.value); + }, + toProto(message: ModuleAccount): Uint8Array { + return ModuleAccount.encode(message).finish(); + }, + toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: ModuleAccount.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + maxMemoCharacters: BigInt(0), + txSigLimit: BigInt(0), + txSizeCostPerByte: BigInt(0), + sigVerifyCostEd25519: BigInt(0), + sigVerifyCostSecp256k1: BigInt(0) + }; +} +export const Params = { + typeUrl: "/cosmos.auth.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxMemoCharacters !== BigInt(0)) { + writer.uint32(8).uint64(message.maxMemoCharacters); + } + if (message.txSigLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.txSigLimit); + } + if (message.txSizeCostPerByte !== BigInt(0)) { + writer.uint32(24).uint64(message.txSizeCostPerByte); + } + if (message.sigVerifyCostEd25519 !== BigInt(0)) { + writer.uint32(32).uint64(message.sigVerifyCostEd25519); + } + if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { + writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxMemoCharacters = reader.uint64(); + break; + case 2: + message.txSigLimit = reader.uint64(); + break; + case 3: + message.txSizeCostPerByte = reader.uint64(); + break; + case 4: + message.sigVerifyCostEd25519 = reader.uint64(); + break; + case 5: + message.sigVerifyCostSecp256k1 = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); + message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); + message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); + message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); + message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { + message.maxMemoCharacters = BigInt(object.max_memo_characters); + } + if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { + message.txSigLimit = BigInt(object.tx_sig_limit); + } + if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { + message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); + } + if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { + message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); + } + if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { + message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; + obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; + obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; + obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; + obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/auth/v1beta1/genesis.ts b/packages/api/src/cosmos/auth/v1beta1/genesis.ts new file mode 100644 index 00000000..ac99436c --- /dev/null +++ b/packages/api/src/cosmos/auth/v1beta1/genesis.ts @@ -0,0 +1,114 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType } from "./auth"; +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** accounts are the accounts present at genesis. */ + accounts: Any[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** accounts are the accounts present at genesis. */ + accounts?: AnyAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the auth module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + accounts: AnySDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}), + accounts: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.accounts) { + Any.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.accounts.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.accounts = object.accounts?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/auth/v1beta1/query.lcd.ts b/packages/api/src/cosmos/auth/v1beta1/query.lcd.ts new file mode 100644 index 00000000..0e3b96b6 --- /dev/null +++ b/packages/api/src/cosmos/auth/v1beta1/query.lcd.ts @@ -0,0 +1,88 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + /* Accounts returns all the existing accounts + + Since: cosmos-sdk 0.43 */ + async accounts(params: QueryAccountsRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/auth/v1beta1/accounts`; + return await this.req.get(endpoint, options); + } + /* Account returns account details based on address. */ + async account(params: QueryAccountRequest): Promise { + const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; + return await this.req.get(endpoint); + } + /* AccountAddressByID returns account address based on account number. + + Since: cosmos-sdk 0.46.2 */ + async accountAddressByID(params: QueryAccountAddressByIDRequest): Promise { + const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; + return await this.req.get(endpoint); + } + /* Params queries all parameters. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `cosmos/auth/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ModuleAccounts returns all the existing module accounts. + + Since: cosmos-sdk 0.46 */ + async moduleAccounts(_params: QueryModuleAccountsRequest = {}): Promise { + const endpoint = `cosmos/auth/v1beta1/module_accounts`; + return await this.req.get(endpoint); + } + /* ModuleAccountByName returns the module account info by module name */ + async moduleAccountByName(params: QueryModuleAccountByNameRequest): Promise { + const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; + return await this.req.get(endpoint); + } + /* Bech32Prefix queries bech32Prefix + + Since: cosmos-sdk 0.46 */ + async bech32Prefix(_params: Bech32PrefixRequest = {}): Promise { + const endpoint = `cosmos/auth/v1beta1/bech32`; + return await this.req.get(endpoint); + } + /* AddressBytesToString converts Account Address bytes to string + + Since: cosmos-sdk 0.46 */ + async addressBytesToString(params: AddressBytesToStringRequest): Promise { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; + return await this.req.get(endpoint); + } + /* AddressStringToBytes converts Address string to bytes + + Since: cosmos-sdk 0.46 */ + async addressStringToBytes(params: AddressStringToBytesRequest): Promise { + const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/auth/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/auth/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..7e8b1d2c --- /dev/null +++ b/packages/api/src/cosmos/auth/v1beta1/query.rpc.Query.ts @@ -0,0 +1,145 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Accounts returns all the existing accounts + * + * Since: cosmos-sdk 0.43 + */ + accounts(request?: QueryAccountsRequest): Promise; + /** Account returns account details based on address. */ + account(request: QueryAccountRequest): Promise; + /** + * AccountAddressByID returns account address based on account number. + * + * Since: cosmos-sdk 0.46.2 + */ + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; + /** Params queries all parameters. */ + params(request?: QueryParamsRequest): Promise; + /** + * ModuleAccounts returns all the existing module accounts. + * + * Since: cosmos-sdk 0.46 + */ + moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + /** ModuleAccountByName returns the module account info by module name */ + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; + /** + * Bech32Prefix queries bech32Prefix + * + * Since: cosmos-sdk 0.46 + */ + bech32Prefix(request?: Bech32PrefixRequest): Promise; + /** + * AddressBytesToString converts Account Address bytes to string + * + * Since: cosmos-sdk 0.46 + */ + addressBytesToString(request: AddressBytesToStringRequest): Promise; + /** + * AddressStringToBytes converts Address string to bytes + * + * Since: cosmos-sdk 0.46 + */ + addressStringToBytes(request: AddressStringToBytesRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.accountAddressByID = this.accountAddressByID.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.moduleAccountByName = this.moduleAccountByName.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + accounts(request: QueryAccountsRequest = { + pagination: undefined + }): Promise { + const data = QueryAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); + return promise.then(data => QueryAccountsResponse.decode(new BinaryReader(data))); + } + account(request: QueryAccountRequest): Promise { + const data = QueryAccountRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); + return promise.then(data => QueryAccountResponse.decode(new BinaryReader(data))); + } + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise { + const data = QueryAccountAddressByIDRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); + return promise.then(data => QueryAccountAddressByIDResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + moduleAccounts(request: QueryModuleAccountsRequest = {}): Promise { + const data = QueryModuleAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); + return promise.then(data => QueryModuleAccountsResponse.decode(new BinaryReader(data))); + } + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise { + const data = QueryModuleAccountByNameRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); + return promise.then(data => QueryModuleAccountByNameResponse.decode(new BinaryReader(data))); + } + bech32Prefix(request: Bech32PrefixRequest = {}): Promise { + const data = Bech32PrefixRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); + return promise.then(data => Bech32PrefixResponse.decode(new BinaryReader(data))); + } + addressBytesToString(request: AddressBytesToStringRequest): Promise { + const data = AddressBytesToStringRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); + return promise.then(data => AddressBytesToStringResponse.decode(new BinaryReader(data))); + } + addressStringToBytes(request: AddressStringToBytesRequest): Promise { + const data = AddressStringToBytesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); + return promise.then(data => AddressStringToBytesResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + accounts(request?: QueryAccountsRequest): Promise { + return queryService.accounts(request); + }, + account(request: QueryAccountRequest): Promise { + return queryService.account(request); + }, + accountAddressByID(request: QueryAccountAddressByIDRequest): Promise { + return queryService.accountAddressByID(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + moduleAccounts(request?: QueryModuleAccountsRequest): Promise { + return queryService.moduleAccounts(request); + }, + moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise { + return queryService.moduleAccountByName(request); + }, + bech32Prefix(request?: Bech32PrefixRequest): Promise { + return queryService.bech32Prefix(request); + }, + addressBytesToString(request: AddressBytesToStringRequest): Promise { + return queryService.addressBytesToString(request); + }, + addressStringToBytes(request: AddressStringToBytesRequest): Promise { + return queryService.addressStringToBytes(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/auth/v1beta1/query.ts b/packages/api/src/cosmos/auth/v1beta1/query.ts new file mode 100644 index 00000000..9ef13b7f --- /dev/null +++ b/packages/api/src/cosmos/auth/v1beta1/query.ts @@ -0,0 +1,1812 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAccountsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; + value: Uint8Array; +} +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAccountsRequestAminoMsg { + type: "cosmos-sdk/QueryAccountsRequest"; + value: QueryAccountsRequestAmino; +} +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponse { + /** accounts are the existing accounts */ + accounts: (BaseAccount | Any)[] | Any[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAccountsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; + value: Uint8Array; +} +export type QueryAccountsResponseEncoded = Omit & { + /** accounts are the existing accounts */accounts: (BaseAccountProtoMsg | AnyProtoMsg)[]; +}; +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponseAmino { + /** accounts are the existing accounts */ + accounts?: AnyAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAccountsResponseAminoMsg { + type: "cosmos-sdk/QueryAccountsResponse"; + value: QueryAccountsResponseAmino; +} +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryAccountsResponseSDKType { + accounts: (BaseAccountSDKType | AnySDKType)[]; + pagination?: PageResponseSDKType; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequest { + /** address defines the address to query for. */ + address: string; +} +export interface QueryAccountRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; + value: Uint8Array; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequestAmino { + /** address defines the address to query for. */ + address?: string; +} +export interface QueryAccountRequestAminoMsg { + type: "cosmos-sdk/QueryAccountRequest"; + value: QueryAccountRequestAmino; +} +/** QueryAccountRequest is the request type for the Query/Account RPC method. */ +export interface QueryAccountRequestSDKType { + address: string; +} +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponse { + /** account defines the account of the corresponding address. */ + account?: BaseAccount | Any | undefined; +} +export interface QueryAccountResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; + value: Uint8Array; +} +export type QueryAccountResponseEncoded = Omit & { + /** account defines the account of the corresponding address. */account?: BaseAccountProtoMsg | AnyProtoMsg | undefined; +}; +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponseAmino { + /** account defines the account of the corresponding address. */ + account?: AnyAmino; +} +export interface QueryAccountResponseAminoMsg { + type: "cosmos-sdk/QueryAccountResponse"; + value: QueryAccountResponseAmino; +} +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface QueryAccountResponseSDKType { + account?: BaseAccountSDKType | AnySDKType | undefined; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequest {} +export interface QueryModuleAccountsRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; + value: Uint8Array; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequestAmino {} +export interface QueryModuleAccountsRequestAminoMsg { + type: "cosmos-sdk/QueryModuleAccountsRequest"; + value: QueryModuleAccountsRequestAmino; +} +/** + * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsRequestSDKType {} +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponse { + accounts: (ModuleAccount | Any)[] | Any[]; +} +export interface QueryModuleAccountsResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; + value: Uint8Array; +} +export type QueryModuleAccountsResponseEncoded = Omit & { + accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[]; +}; +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponseAmino { + accounts?: AnyAmino[]; +} +export interface QueryModuleAccountsResponseAminoMsg { + type: "cosmos-sdk/QueryModuleAccountsResponse"; + value: QueryModuleAccountsResponseAmino; +} +/** + * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryModuleAccountsResponseSDKType { + accounts: (ModuleAccountSDKType | AnySDKType)[]; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequest { + name: string; +} +export interface QueryModuleAccountByNameRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; + value: Uint8Array; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequestAmino { + name?: string; +} +export interface QueryModuleAccountByNameRequestAminoMsg { + type: "cosmos-sdk/QueryModuleAccountByNameRequest"; + value: QueryModuleAccountByNameRequestAmino; +} +/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameRequestSDKType { + name: string; +} +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponse { + account?: ModuleAccount | Any | undefined; +} +export interface QueryModuleAccountByNameResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; + value: Uint8Array; +} +export type QueryModuleAccountByNameResponseEncoded = Omit & { + account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined; +}; +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponseAmino { + account?: AnyAmino; +} +export interface QueryModuleAccountByNameResponseAminoMsg { + type: "cosmos-sdk/QueryModuleAccountByNameResponse"; + value: QueryModuleAccountByNameResponseAmino; +} +/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ +export interface QueryModuleAccountByNameResponseSDKType { + account?: ModuleAccountSDKType | AnySDKType | undefined; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequest {} +export interface Bech32PrefixRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; + value: Uint8Array; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequestAmino {} +export interface Bech32PrefixRequestAminoMsg { + type: "cosmos-sdk/Bech32PrefixRequest"; + value: Bech32PrefixRequestAmino; +} +/** + * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixRequestSDKType {} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponse { + bech32Prefix: string; +} +export interface Bech32PrefixResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; + value: Uint8Array; +} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponseAmino { + bech32_prefix?: string; +} +export interface Bech32PrefixResponseAminoMsg { + type: "cosmos-sdk/Bech32PrefixResponse"; + value: Bech32PrefixResponseAmino; +} +/** + * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface Bech32PrefixResponseSDKType { + bech32_prefix: string; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequest { + addressBytes: Uint8Array; +} +export interface AddressBytesToStringRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; + value: Uint8Array; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequestAmino { + address_bytes?: string; +} +export interface AddressBytesToStringRequestAminoMsg { + type: "cosmos-sdk/AddressBytesToStringRequest"; + value: AddressBytesToStringRequestAmino; +} +/** + * AddressBytesToStringRequest is the request type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringRequestSDKType { + address_bytes: Uint8Array; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponse { + addressString: string; +} +export interface AddressBytesToStringResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; + value: Uint8Array; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponseAmino { + address_string?: string; +} +export interface AddressBytesToStringResponseAminoMsg { + type: "cosmos-sdk/AddressBytesToStringResponse"; + value: AddressBytesToStringResponseAmino; +} +/** + * AddressBytesToStringResponse is the response type for AddressString rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressBytesToStringResponseSDKType { + address_string: string; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequest { + addressString: string; +} +export interface AddressStringToBytesRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; + value: Uint8Array; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequestAmino { + address_string?: string; +} +export interface AddressStringToBytesRequestAminoMsg { + type: "cosmos-sdk/AddressStringToBytesRequest"; + value: AddressStringToBytesRequestAmino; +} +/** + * AddressStringToBytesRequest is the request type for AccountBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesRequestSDKType { + address_string: string; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponse { + addressBytes: Uint8Array; +} +export interface AddressStringToBytesResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; + value: Uint8Array; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponseAmino { + address_bytes?: string; +} +export interface AddressStringToBytesResponseAminoMsg { + type: "cosmos-sdk/AddressStringToBytesResponse"; + value: AddressStringToBytesResponseAmino; +} +/** + * AddressStringToBytesResponse is the response type for AddressBytes rpc method. + * + * Since: cosmos-sdk 0.46 + */ +export interface AddressStringToBytesResponseSDKType { + address_bytes: Uint8Array; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequest { + /** + * id is the account number of the address to be queried. This field + * should have been an uint64 (like all account numbers), and will be + * updated to uint64 in a future version of the auth query. + */ + id: bigint; +} +export interface QueryAccountAddressByIDRequestProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; + value: Uint8Array; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequestAmino { + /** + * id is the account number of the address to be queried. This field + * should have been an uint64 (like all account numbers), and will be + * updated to uint64 in a future version of the auth query. + */ + id?: string; +} +export interface QueryAccountAddressByIDRequestAminoMsg { + type: "cosmos-sdk/QueryAccountAddressByIDRequest"; + value: QueryAccountAddressByIDRequestAmino; +} +/** + * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDRequestSDKType { + id: bigint; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponse { + accountAddress: string; +} +export interface QueryAccountAddressByIDResponseProtoMsg { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; + value: Uint8Array; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponseAmino { + account_address?: string; +} +export interface QueryAccountAddressByIDResponseAminoMsg { + type: "cosmos-sdk/QueryAccountAddressByIDResponse"; + value: QueryAccountAddressByIDResponseAmino; +} +/** + * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method + * + * Since: cosmos-sdk 0.46.2 + */ +export interface QueryAccountAddressByIDResponseSDKType { + account_address: string; +} +function createBaseQueryAccountsRequest(): QueryAccountsRequest { + return { + pagination: undefined + }; +} +export const QueryAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + encode(message: QueryAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountsRequest { + const message = createBaseQueryAccountsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest { + const message = createBaseQueryAccountsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest { + return QueryAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAccountsRequest", + value: QueryAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest { + return QueryAccountsRequest.decode(message.value); + }, + toProto(message: QueryAccountsRequest): Uint8Array { + return QueryAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", + value: QueryAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountsResponse(): QueryAccountsResponse { + return { + accounts: [], + pagination: undefined + }; +} +export const QueryAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + encode(message: QueryAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.accounts) { + Any.encode((v! as Any), writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push((Any.decode(reader, reader.uint32()) as Any)); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountsResponse { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse { + const message = createBaseQueryAccountsResponse(); + message.accounts = object.accounts?.map(e => AccountI_FromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino { + const obj: any = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? AccountI_ToAmino((e as Any)) : undefined); + } else { + obj.accounts = message.accounts; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse { + return QueryAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAccountsResponse", + value: QueryAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse { + return QueryAccountsResponse.decode(message.value); + }, + toProto(message: QueryAccountsResponse): Uint8Array { + return QueryAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", + value: QueryAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountRequest(): QueryAccountRequest { + return { + address: "" + }; +} +export const QueryAccountRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + encode(message: QueryAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountRequest { + const message = createBaseQueryAccountRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest { + const message = createBaseQueryAccountRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: QueryAccountRequest): QueryAccountRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest { + return QueryAccountRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAccountRequest", + value: QueryAccountRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest { + return QueryAccountRequest.decode(message.value); + }, + toProto(message: QueryAccountRequest): Uint8Array { + return QueryAccountRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", + value: QueryAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountResponse(): QueryAccountResponse { + return { + account: undefined + }; +} +export const QueryAccountResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + encode(message: QueryAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.account !== undefined) { + Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = (AccountI_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountResponse { + const message = createBaseQueryAccountResponse(); + message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse { + const message = createBaseQueryAccountResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = AccountI_FromAmino(object.account); + } + return message; + }, + toAmino(message: QueryAccountResponse): QueryAccountResponseAmino { + const obj: any = {}; + obj.account = message.account ? AccountI_ToAmino((message.account as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse { + return QueryAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAccountResponse", + value: QueryAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse { + return QueryAccountResponse.decode(message.value); + }, + toProto(message: QueryAccountResponse): Uint8Array { + return QueryAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", + value: QueryAccountResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsRequest(): QueryModuleAccountsRequest { + return {}; +} +export const QueryModuleAccountsRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + encode(_: QueryModuleAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryModuleAccountsRequest { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest { + const message = createBaseQueryModuleAccountsRequest(); + return message; + }, + toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest { + return QueryModuleAccountsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryModuleAccountsRequest", + value: QueryModuleAccountsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest { + return QueryModuleAccountsRequest.decode(message.value); + }, + toProto(message: QueryModuleAccountsRequest): Uint8Array { + return QueryModuleAccountsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", + value: QueryModuleAccountsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountsResponse(): QueryModuleAccountsResponse { + return { + accounts: [] + }; +} +export const QueryModuleAccountsResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + encode(message: QueryModuleAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.accounts) { + Any.encode((v! as Any), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accounts.push((Any.decode(reader, reader.uint32()) as Any)); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryModuleAccountsResponse { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse { + const message = createBaseQueryModuleAccountsResponse(); + message.accounts = object.accounts?.map(e => ModuleAccountI_FromAmino(e)) || []; + return message; + }, + toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino { + const obj: any = {}; + if (message.accounts) { + obj.accounts = message.accounts.map(e => e ? ModuleAccountI_ToAmino((e as Any)) : undefined); + } else { + obj.accounts = message.accounts; + } + return obj; + }, + fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse { + return QueryModuleAccountsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryModuleAccountsResponse", + value: QueryModuleAccountsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse { + return QueryModuleAccountsResponse.decode(message.value); + }, + toProto(message: QueryModuleAccountsResponse): Uint8Array { + return QueryModuleAccountsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", + value: QueryModuleAccountsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameRequest(): QueryModuleAccountByNameRequest { + return { + name: "" + }; +} +export const QueryModuleAccountByNameRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + encode(message: QueryModuleAccountByNameRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryModuleAccountByNameRequest { + const message = createBaseQueryModuleAccountByNameRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest { + const message = createBaseQueryModuleAccountByNameRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest { + return QueryModuleAccountByNameRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg { + return { + type: "cosmos-sdk/QueryModuleAccountByNameRequest", + value: QueryModuleAccountByNameRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest { + return QueryModuleAccountByNameRequest.decode(message.value); + }, + toProto(message: QueryModuleAccountByNameRequest): Uint8Array { + return QueryModuleAccountByNameRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", + value: QueryModuleAccountByNameRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleAccountByNameResponse(): QueryModuleAccountByNameResponse { + return { + account: undefined + }; +} +export const QueryModuleAccountByNameResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + encode(message: QueryModuleAccountByNameResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.account !== undefined) { + Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleAccountByNameResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = (ModuleAccountI_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryModuleAccountByNameResponse { + const message = createBaseQueryModuleAccountByNameResponse(); + message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; + return message; + }, + fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse { + const message = createBaseQueryModuleAccountByNameResponse(); + if (object.account !== undefined && object.account !== null) { + message.account = ModuleAccountI_FromAmino(object.account); + } + return message; + }, + toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino { + const obj: any = {}; + obj.account = message.account ? ModuleAccountI_ToAmino((message.account as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse { + return QueryModuleAccountByNameResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg { + return { + type: "cosmos-sdk/QueryModuleAccountByNameResponse", + value: QueryModuleAccountByNameResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse { + return QueryModuleAccountByNameResponse.decode(message.value); + }, + toProto(message: QueryModuleAccountByNameResponse): Uint8Array { + return QueryModuleAccountByNameResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", + value: QueryModuleAccountByNameResponse.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixRequest(): Bech32PrefixRequest { + return {}; +} +export const Bech32PrefixRequest = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + encode(_: Bech32PrefixRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Bech32PrefixRequest { + const message = createBaseBech32PrefixRequest(); + return message; + }, + fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest { + const message = createBaseBech32PrefixRequest(); + return message; + }, + toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest { + return Bech32PrefixRequest.fromAmino(object.value); + }, + toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg { + return { + type: "cosmos-sdk/Bech32PrefixRequest", + value: Bech32PrefixRequest.toAmino(message) + }; + }, + fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest { + return Bech32PrefixRequest.decode(message.value); + }, + toProto(message: Bech32PrefixRequest): Uint8Array { + return Bech32PrefixRequest.encode(message).finish(); + }, + toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", + value: Bech32PrefixRequest.encode(message).finish() + }; + } +}; +function createBaseBech32PrefixResponse(): Bech32PrefixResponse { + return { + bech32Prefix: "" + }; +} +export const Bech32PrefixResponse = { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + encode(message: Bech32PrefixResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bech32Prefix !== "") { + writer.uint32(10).string(message.bech32Prefix); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBech32PrefixResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32Prefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Bech32PrefixResponse { + const message = createBaseBech32PrefixResponse(); + message.bech32Prefix = object.bech32Prefix ?? ""; + return message; + }, + fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse { + const message = createBaseBech32PrefixResponse(); + if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { + message.bech32Prefix = object.bech32_prefix; + } + return message; + }, + toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino { + const obj: any = {}; + obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; + return obj; + }, + fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse { + return Bech32PrefixResponse.fromAmino(object.value); + }, + toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg { + return { + type: "cosmos-sdk/Bech32PrefixResponse", + value: Bech32PrefixResponse.toAmino(message) + }; + }, + fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse { + return Bech32PrefixResponse.decode(message.value); + }, + toProto(message: Bech32PrefixResponse): Uint8Array { + return Bech32PrefixResponse.encode(message).finish(); + }, + toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", + value: Bech32PrefixResponse.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringRequest(): AddressBytesToStringRequest { + return { + addressBytes: new Uint8Array() + }; +} +export const AddressBytesToStringRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + encode(message: AddressBytesToStringRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AddressBytesToStringRequest { + const message = createBaseAddressBytesToStringRequest(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest { + const message = createBaseAddressBytesToStringRequest(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = bytesFromBase64(object.address_bytes); + } + return message; + }, + toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino { + const obj: any = {}; + obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest { + return AddressBytesToStringRequest.fromAmino(object.value); + }, + toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg { + return { + type: "cosmos-sdk/AddressBytesToStringRequest", + value: AddressBytesToStringRequest.toAmino(message) + }; + }, + fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest { + return AddressBytesToStringRequest.decode(message.value); + }, + toProto(message: AddressBytesToStringRequest): Uint8Array { + return AddressBytesToStringRequest.encode(message).finish(); + }, + toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", + value: AddressBytesToStringRequest.encode(message).finish() + }; + } +}; +function createBaseAddressBytesToStringResponse(): AddressBytesToStringResponse { + return { + addressString: "" + }; +} +export const AddressBytesToStringResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + encode(message: AddressBytesToStringResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressBytesToStringResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AddressBytesToStringResponse { + const message = createBaseAddressBytesToStringResponse(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse { + const message = createBaseAddressBytesToStringResponse(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino { + const obj: any = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse { + return AddressBytesToStringResponse.fromAmino(object.value); + }, + toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg { + return { + type: "cosmos-sdk/AddressBytesToStringResponse", + value: AddressBytesToStringResponse.toAmino(message) + }; + }, + fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse { + return AddressBytesToStringResponse.decode(message.value); + }, + toProto(message: AddressBytesToStringResponse): Uint8Array { + return AddressBytesToStringResponse.encode(message).finish(); + }, + toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", + value: AddressBytesToStringResponse.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesRequest(): AddressStringToBytesRequest { + return { + addressString: "" + }; +} +export const AddressStringToBytesRequest = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + encode(message: AddressStringToBytesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.addressString !== "") { + writer.uint32(10).string(message.addressString); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AddressStringToBytesRequest { + const message = createBaseAddressStringToBytesRequest(); + message.addressString = object.addressString ?? ""; + return message; + }, + fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest { + const message = createBaseAddressStringToBytesRequest(); + if (object.address_string !== undefined && object.address_string !== null) { + message.addressString = object.address_string; + } + return message; + }, + toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino { + const obj: any = {}; + obj.address_string = message.addressString === "" ? undefined : message.addressString; + return obj; + }, + fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest { + return AddressStringToBytesRequest.fromAmino(object.value); + }, + toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg { + return { + type: "cosmos-sdk/AddressStringToBytesRequest", + value: AddressStringToBytesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest { + return AddressStringToBytesRequest.decode(message.value); + }, + toProto(message: AddressStringToBytesRequest): Uint8Array { + return AddressStringToBytesRequest.encode(message).finish(); + }, + toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", + value: AddressStringToBytesRequest.encode(message).finish() + }; + } +}; +function createBaseAddressStringToBytesResponse(): AddressStringToBytesResponse { + return { + addressBytes: new Uint8Array() + }; +} +export const AddressStringToBytesResponse = { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + encode(message: AddressStringToBytesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.addressBytes.length !== 0) { + writer.uint32(10).bytes(message.addressBytes); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddressStringToBytesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addressBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AddressStringToBytesResponse { + const message = createBaseAddressStringToBytesResponse(); + message.addressBytes = object.addressBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse { + const message = createBaseAddressStringToBytesResponse(); + if (object.address_bytes !== undefined && object.address_bytes !== null) { + message.addressBytes = bytesFromBase64(object.address_bytes); + } + return message; + }, + toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino { + const obj: any = {}; + obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; + return obj; + }, + fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse { + return AddressStringToBytesResponse.fromAmino(object.value); + }, + toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg { + return { + type: "cosmos-sdk/AddressStringToBytesResponse", + value: AddressStringToBytesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse { + return AddressStringToBytesResponse.decode(message.value); + }, + toProto(message: AddressStringToBytesResponse): Uint8Array { + return AddressStringToBytesResponse.encode(message).finish(); + }, + toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", + value: AddressStringToBytesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDRequest(): QueryAccountAddressByIDRequest { + return { + id: BigInt(0) + }; +} +export const QueryAccountAddressByIDRequest = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + encode(message: QueryAccountAddressByIDRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).int64(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountAddressByIDRequest { + const message = createBaseQueryAccountAddressByIDRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest { + const message = createBaseQueryAccountAddressByIDRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest { + return QueryAccountAddressByIDRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAccountAddressByIDRequest", + value: QueryAccountAddressByIDRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest { + return QueryAccountAddressByIDRequest.decode(message.value); + }, + toProto(message: QueryAccountAddressByIDRequest): Uint8Array { + return QueryAccountAddressByIDRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", + value: QueryAccountAddressByIDRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAccountAddressByIDResponse(): QueryAccountAddressByIDResponse { + return { + accountAddress: "" + }; +} +export const QueryAccountAddressByIDResponse = { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + encode(message: QueryAccountAddressByIDResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.accountAddress !== "") { + writer.uint32(10).string(message.accountAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAccountAddressByIDResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.accountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAccountAddressByIDResponse { + const message = createBaseQueryAccountAddressByIDResponse(); + message.accountAddress = object.accountAddress ?? ""; + return message; + }, + fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse { + const message = createBaseQueryAccountAddressByIDResponse(); + if (object.account_address !== undefined && object.account_address !== null) { + message.accountAddress = object.account_address; + } + return message; + }, + toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino { + const obj: any = {}; + obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; + return obj; + }, + fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse { + return QueryAccountAddressByIDResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAccountAddressByIDResponse", + value: QueryAccountAddressByIDResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse { + return QueryAccountAddressByIDResponse.decode(message.value); + }, + toProto(message: QueryAccountAddressByIDResponse): Uint8Array { + return QueryAccountAddressByIDResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg { + return { + typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", + value: QueryAccountAddressByIDResponse.encode(message).finish() + }; + } +}; +export const AccountI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BaseAccount | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return BaseAccount.decode(data.value); + default: + return data; + } +}; +export const AccountI_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/BaseAccount": + return Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.BaseAccount", + value: BaseAccount.encode(BaseAccount.fromPartial(BaseAccount.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const AccountI_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.BaseAccount": + return { + type: "cosmos-sdk/BaseAccount", + value: BaseAccount.toAmino(BaseAccount.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; +export const ModuleAccountI_InterfaceDecoder = (input: BinaryReader | Uint8Array): ModuleAccount | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return ModuleAccount.decode(data.value); + default: + return data; + } +}; +export const ModuleAccountI_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/ModuleAccount": + return Any.fromPartial({ + typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", + value: ModuleAccount.encode(ModuleAccount.fromPartial(ModuleAccount.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const ModuleAccountI_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.auth.v1beta1.ModuleAccount": + return { + type: "cosmos-sdk/ModuleAccount", + value: ModuleAccount.toAmino(ModuleAccount.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/authz.ts b/packages/api/src/cosmos/authz/v1beta1/authz.ts new file mode 100644 index 00000000..0cb8113d --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/authz.ts @@ -0,0 +1,531 @@ +//@ts-nocheck +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; +import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorization { + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; + /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ + msg: string; +} +export interface GenericAuthorizationProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; + value: Uint8Array; +} +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorizationAmino { + /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ + msg?: string; +} +export interface GenericAuthorizationAminoMsg { + type: "cosmos-sdk/GenericAuthorization"; + value: GenericAuthorizationAmino; +} +/** + * GenericAuthorization gives the grantee unrestricted permissions to execute + * the provided method on behalf of the granter's account. + */ +export interface GenericAuthorizationSDKType { + $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; + msg: string; +} +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface Grant { + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; + /** + * time when the grant will expire and will be pruned. If null, then the grant + * doesn't have a time expiration (other conditions in `authorization` + * may apply to invalidate the grant) + */ + expiration?: Date; +} +export interface GrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.Grant"; + value: Uint8Array; +} +export type GrantEncoded = Omit & { + authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; +}; +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface GrantAmino { + authorization?: AnyAmino; + /** + * time when the grant will expire and will be pruned. If null, then the grant + * doesn't have a time expiration (other conditions in `authorization` + * may apply to invalidate the grant) + */ + expiration?: string; +} +export interface GrantAminoMsg { + type: "cosmos-sdk/Grant"; + value: GrantAmino; +} +/** + * Grant gives permissions to execute + * the provide method with expiration time. + */ +export interface GrantSDKType { + authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; + expiration?: Date; +} +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorization { + granter: string; + grantee: string; + authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; + expiration?: Date; +} +export interface GrantAuthorizationProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; + value: Uint8Array; +} +export type GrantAuthorizationEncoded = Omit & { + authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; +}; +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorizationAmino { + granter?: string; + grantee?: string; + authorization?: AnyAmino; + expiration?: string; +} +export interface GrantAuthorizationAminoMsg { + type: "cosmos-sdk/GrantAuthorization"; + value: GrantAuthorizationAmino; +} +/** + * GrantAuthorization extends a grant with both the addresses of the grantee and granter. + * It is used in genesis.proto and query.proto + */ +export interface GrantAuthorizationSDKType { + granter: string; + grantee: string; + authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; + expiration?: Date; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItem { + /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ + msgTypeUrls: string[]; +} +export interface GrantQueueItemProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; + value: Uint8Array; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItemAmino { + /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ + msg_type_urls?: string[]; +} +export interface GrantQueueItemAminoMsg { + type: "cosmos-sdk/GrantQueueItem"; + value: GrantQueueItemAmino; +} +/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ +export interface GrantQueueItemSDKType { + msg_type_urls: string[]; +} +function createBaseGenericAuthorization(): GenericAuthorization { + return { + $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + msg: "" + }; +} +export const GenericAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + encode(message: GenericAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msg !== "") { + writer.uint32(10).string(message.msg); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenericAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenericAuthorization { + const message = createBaseGenericAuthorization(); + message.msg = object.msg ?? ""; + return message; + }, + fromAmino(object: GenericAuthorizationAmino): GenericAuthorization { + const message = createBaseGenericAuthorization(); + if (object.msg !== undefined && object.msg !== null) { + message.msg = object.msg; + } + return message; + }, + toAmino(message: GenericAuthorization): GenericAuthorizationAmino { + const obj: any = {}; + obj.msg = message.msg === "" ? undefined : message.msg; + return obj; + }, + fromAminoMsg(object: GenericAuthorizationAminoMsg): GenericAuthorization { + return GenericAuthorization.fromAmino(object.value); + }, + toAminoMsg(message: GenericAuthorization): GenericAuthorizationAminoMsg { + return { + type: "cosmos-sdk/GenericAuthorization", + value: GenericAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message: GenericAuthorizationProtoMsg): GenericAuthorization { + return GenericAuthorization.decode(message.value); + }, + toProto(message: GenericAuthorization): Uint8Array { + return GenericAuthorization.encode(message).finish(); + }, + toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: GenericAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrant(): Grant { + return { + authorization: undefined, + expiration: undefined + }; +} +export const Grant = { + typeUrl: "/cosmos.authz.v1beta1.Grant", + encode(message: Grant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authorization !== undefined) { + Any.encode((message.authorization as Any), writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Grant { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization = (Authorization_InterfaceDecoder(reader) as Any); + break; + case 2: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Grant { + const message = createBaseGrant(); + message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object: GrantAmino): Grant { + const message = createBaseGrant(); + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = Authorization_FromAmino(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message: Grant): GrantAmino { + const obj: any = {}; + obj.authorization = message.authorization ? Authorization_ToAmino((message.authorization as Any)) : undefined; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object: GrantAminoMsg): Grant { + return Grant.fromAmino(object.value); + }, + toAminoMsg(message: Grant): GrantAminoMsg { + return { + type: "cosmos-sdk/Grant", + value: Grant.toAmino(message) + }; + }, + fromProtoMsg(message: GrantProtoMsg): Grant { + return Grant.decode(message.value); + }, + toProto(message: Grant): Uint8Array { + return Grant.encode(message).finish(); + }, + toProtoMsg(message: Grant): GrantProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.Grant", + value: Grant.encode(message).finish() + }; + } +}; +function createBaseGrantAuthorization(): GrantAuthorization { + return { + granter: "", + grantee: "", + authorization: undefined, + expiration: undefined + }; +} +export const GrantAuthorization = { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + encode(message: GrantAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.authorization !== undefined) { + Any.encode((message.authorization as Any), writer.uint32(26).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.authorization = (Authorization_InterfaceDecoder(reader) as Any); + break; + case 4: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GrantAuthorization { + const message = createBaseGrantAuthorization(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object: GrantAuthorizationAmino): GrantAuthorization { + const message = createBaseGrantAuthorization(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.authorization !== undefined && object.authorization !== null) { + message.authorization = Authorization_FromAmino(object.authorization); + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message: GrantAuthorization): GrantAuthorizationAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.authorization = message.authorization ? Authorization_ToAmino((message.authorization as Any)) : undefined; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object: GrantAuthorizationAminoMsg): GrantAuthorization { + return GrantAuthorization.fromAmino(object.value); + }, + toAminoMsg(message: GrantAuthorization): GrantAuthorizationAminoMsg { + return { + type: "cosmos-sdk/GrantAuthorization", + value: GrantAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message: GrantAuthorizationProtoMsg): GrantAuthorization { + return GrantAuthorization.decode(message.value); + }, + toProto(message: GrantAuthorization): Uint8Array { + return GrantAuthorization.encode(message).finish(); + }, + toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", + value: GrantAuthorization.encode(message).finish() + }; + } +}; +function createBaseGrantQueueItem(): GrantQueueItem { + return { + msgTypeUrls: [] + }; +} +export const GrantQueueItem = { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + encode(message: GrantQueueItem, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.msgTypeUrls) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrantQueueItem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrls.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GrantQueueItem { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; + return message; + }, + fromAmino(object: GrantQueueItemAmino): GrantQueueItem { + const message = createBaseGrantQueueItem(); + message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; + return message; + }, + toAmino(message: GrantQueueItem): GrantQueueItemAmino { + const obj: any = {}; + if (message.msgTypeUrls) { + obj.msg_type_urls = message.msgTypeUrls.map(e => e); + } else { + obj.msg_type_urls = message.msgTypeUrls; + } + return obj; + }, + fromAminoMsg(object: GrantQueueItemAminoMsg): GrantQueueItem { + return GrantQueueItem.fromAmino(object.value); + }, + toAminoMsg(message: GrantQueueItem): GrantQueueItemAminoMsg { + return { + type: "cosmos-sdk/GrantQueueItem", + value: GrantQueueItem.toAmino(message) + }; + }, + fromProtoMsg(message: GrantQueueItemProtoMsg): GrantQueueItem { + return GrantQueueItem.decode(message.value); + }, + toProto(message: GrantQueueItem): Uint8Array { + return GrantQueueItem.encode(message).finish(); + }, + toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", + value: GrantQueueItem.encode(message).finish() + }; + } +}; +export const Authorization_InterfaceDecoder = (input: BinaryReader | Uint8Array): GenericAuthorization | SendAuthorization | StakeAuthorization | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return GenericAuthorization.decode(data.value); + case "/cosmos.bank.v1beta1.SendAuthorization": + return SendAuthorization.decode(data.value); + case "/cosmos.staking.v1beta1.StakeAuthorization": + return StakeAuthorization.decode(data.value); + default: + return data; + } +}; +export const Authorization_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/GenericAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", + value: GenericAuthorization.encode(GenericAuthorization.fromPartial(GenericAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/SendAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: SendAuthorization.encode(SendAuthorization.fromPartial(SendAuthorization.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/StakeAuthorization": + return Any.fromPartial({ + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: StakeAuthorization.encode(StakeAuthorization.fromPartial(StakeAuthorization.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Authorization_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.authz.v1beta1.GenericAuthorization": + return { + type: "cosmos-sdk/GenericAuthorization", + value: GenericAuthorization.toAmino(GenericAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.bank.v1beta1.SendAuthorization": + return { + type: "cosmos-sdk/SendAuthorization", + value: SendAuthorization.toAmino(SendAuthorization.decode(content.value, undefined)) + }; + case "/cosmos.staking.v1beta1.StakeAuthorization": + return { + type: "cosmos-sdk/StakeAuthorization", + value: StakeAuthorization.toAmino(StakeAuthorization.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/event.ts b/packages/api/src/cosmos/authz/v1beta1/event.ts new file mode 100644 index 00000000..b459989a --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/event.ts @@ -0,0 +1,252 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrant { + /** Msg type URL for which an autorization is granted */ + msgTypeUrl: string; + /** Granter account address */ + granter: string; + /** Grantee account address */ + grantee: string; +} +export interface EventGrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.EventGrant"; + value: Uint8Array; +} +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrantAmino { + /** Msg type URL for which an autorization is granted */ + msg_type_url?: string; + /** Granter account address */ + granter?: string; + /** Grantee account address */ + grantee?: string; +} +export interface EventGrantAminoMsg { + type: "cosmos-sdk/EventGrant"; + value: EventGrantAmino; +} +/** EventGrant is emitted on Msg/Grant */ +export interface EventGrantSDKType { + msg_type_url: string; + granter: string; + grantee: string; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevoke { + /** Msg type URL for which an autorization is revoked */ + msgTypeUrl: string; + /** Granter account address */ + granter: string; + /** Grantee account address */ + grantee: string; +} +export interface EventRevokeProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; + value: Uint8Array; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevokeAmino { + /** Msg type URL for which an autorization is revoked */ + msg_type_url?: string; + /** Granter account address */ + granter?: string; + /** Grantee account address */ + grantee?: string; +} +export interface EventRevokeAminoMsg { + type: "cosmos-sdk/EventRevoke"; + value: EventRevokeAmino; +} +/** EventRevoke is emitted on Msg/Revoke */ +export interface EventRevokeSDKType { + msg_type_url: string; + granter: string; + grantee: string; +} +function createBaseEventGrant(): EventGrant { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +export const EventGrant = { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + encode(message: EventGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventGrant { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventGrant { + const message = createBaseEventGrant(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object: EventGrantAmino): EventGrant { + const message = createBaseEventGrant(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message: EventGrant): EventGrantAmino { + const obj: any = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object: EventGrantAminoMsg): EventGrant { + return EventGrant.fromAmino(object.value); + }, + toAminoMsg(message: EventGrant): EventGrantAminoMsg { + return { + type: "cosmos-sdk/EventGrant", + value: EventGrant.toAmino(message) + }; + }, + fromProtoMsg(message: EventGrantProtoMsg): EventGrant { + return EventGrant.decode(message.value); + }, + toProto(message: EventGrant): Uint8Array { + return EventGrant.encode(message).finish(); + }, + toProtoMsg(message: EventGrant): EventGrantProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.EventGrant", + value: EventGrant.encode(message).finish() + }; + } +}; +function createBaseEventRevoke(): EventRevoke { + return { + msgTypeUrl: "", + granter: "", + grantee: "" + }; +} +export const EventRevoke = { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + encode(message: EventRevoke, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msgTypeUrl !== "") { + writer.uint32(18).string(message.msgTypeUrl); + } + if (message.granter !== "") { + writer.uint32(26).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(34).string(message.grantee); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.msgTypeUrl = reader.string(); + break; + case 3: + message.granter = reader.string(); + break; + case 4: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventRevoke { + const message = createBaseEventRevoke(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object: EventRevokeAmino): EventRevoke { + const message = createBaseEventRevoke(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message: EventRevoke): EventRevokeAmino { + const obj: any = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke { + return EventRevoke.fromAmino(object.value); + }, + toAminoMsg(message: EventRevoke): EventRevokeAminoMsg { + return { + type: "cosmos-sdk/EventRevoke", + value: EventRevoke.toAmino(message) + }; + }, + fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke { + return EventRevoke.decode(message.value); + }, + toProto(message: EventRevoke): Uint8Array { + return EventRevoke.encode(message).finish(); + }, + toProtoMsg(message: EventRevoke): EventRevokeProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.EventRevoke", + value: EventRevoke.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/genesis.ts b/packages/api/src/cosmos/authz/v1beta1/genesis.ts new file mode 100644 index 00000000..f5ca9e5e --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/genesis.ts @@ -0,0 +1,94 @@ +//@ts-nocheck +import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisState { + authorization: GrantAuthorization[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisStateAmino { + authorization?: GrantAuthorizationAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the authz module's genesis state. */ +export interface GenesisStateSDKType { + authorization: GrantAuthorizationSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + authorization: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.authorization) { + GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authorization.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => GrantAuthorization.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + message.authorization = object.authorization?.map(e => GrantAuthorization.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + if (message.authorization) { + obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } else { + obj.authorization = message.authorization; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/query.lcd.ts b/packages/api/src/cosmos/authz/v1beta1/query.lcd.ts new file mode 100644 index 00000000..4359f0d3 --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/query.lcd.ts @@ -0,0 +1,63 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + /* Returns list of `Authorization`, granted to the grantee by the granter. */ + async grants(params: QueryGrantsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.granter !== "undefined") { + options.params.granter = params.granter; + } + if (typeof params?.grantee !== "undefined") { + options.params.grantee = params.grantee; + } + if (typeof params?.msgTypeUrl !== "undefined") { + options.params.msg_type_url = params.msgTypeUrl; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants`; + return await this.req.get(endpoint, options); + } + /* GranterGrants returns list of `GrantAuthorization`, granted by granter. + + Since: cosmos-sdk 0.46 */ + async granterGrants(params: QueryGranterGrantsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; + return await this.req.get(endpoint, options); + } + /* GranteeGrants returns a list of `GrantAuthorization` by grantee. + + Since: cosmos-sdk 0.46 */ + async granteeGrants(params: QueryGranteeGrantsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; + return await this.req.get(endpoint, options); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/authz/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..30d70e94 --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/query.rpc.Query.ts @@ -0,0 +1,61 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Returns list of `Authorization`, granted to the grantee by the granter. */ + grants(request: QueryGrantsRequest): Promise; + /** + * GranterGrants returns list of `GrantAuthorization`, granted by granter. + * + * Since: cosmos-sdk 0.46 + */ + granterGrants(request: QueryGranterGrantsRequest): Promise; + /** + * GranteeGrants returns a list of `GrantAuthorization` by grantee. + * + * Since: cosmos-sdk 0.46 + */ + granteeGrants(request: QueryGranteeGrantsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + grants(request: QueryGrantsRequest): Promise { + const data = QueryGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); + return promise.then(data => QueryGrantsResponse.decode(new BinaryReader(data))); + } + granterGrants(request: QueryGranterGrantsRequest): Promise { + const data = QueryGranterGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); + return promise.then(data => QueryGranterGrantsResponse.decode(new BinaryReader(data))); + } + granteeGrants(request: QueryGranteeGrantsRequest): Promise { + const data = QueryGranteeGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); + return promise.then(data => QueryGranteeGrantsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + grants(request: QueryGrantsRequest): Promise { + return queryService.grants(request); + }, + granterGrants(request: QueryGranterGrantsRequest): Promise { + return queryService.granterGrants(request); + }, + granteeGrants(request: QueryGranteeGrantsRequest): Promise { + return queryService.granteeGrants(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/query.ts b/packages/api/src/cosmos/authz/v1beta1/query.ts new file mode 100644 index 00000000..f1459d3f --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/query.ts @@ -0,0 +1,684 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequest { + granter: string; + grantee: string; + /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ + msgTypeUrl: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; + value: Uint8Array; +} +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequestAmino { + granter?: string; + grantee?: string; + /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ + msg_type_url?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGrantsRequest"; + value: QueryGrantsRequestAmino; +} +/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ +export interface QueryGrantsRequestSDKType { + granter: string; + grantee: string; + msg_type_url: string; + pagination?: PageRequestSDKType; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponse { + /** authorizations is a list of grants granted for grantee by granter. */ + grants: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; + value: Uint8Array; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponseAmino { + /** authorizations is a list of grants granted for grantee by granter. */ + grants?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGrantsResponse"; + value: QueryGrantsResponseAmino; +} +/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ +export interface QueryGrantsResponseSDKType { + grants: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequest { + granter: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGranterGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; + value: Uint8Array; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequestAmino { + granter?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGranterGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGranterGrantsRequest"; + value: QueryGranterGrantsRequestAmino; +} +/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsRequestSDKType { + granter: string; + pagination?: PageRequestSDKType; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponse { + /** grants is a list of grants granted by the granter. */ + grants: GrantAuthorization[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGranterGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; + value: Uint8Array; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponseAmino { + /** grants is a list of grants granted by the granter. */ + grants?: GrantAuthorizationAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGranterGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGranterGrantsResponse"; + value: QueryGranterGrantsResponseAmino; +} +/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ +export interface QueryGranterGrantsResponseSDKType { + grants: GrantAuthorizationSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequest { + grantee: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGranteeGrantsRequestProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; + value: Uint8Array; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequestAmino { + grantee?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGranteeGrantsRequestAminoMsg { + type: "cosmos-sdk/QueryGranteeGrantsRequest"; + value: QueryGranteeGrantsRequestAmino; +} +/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ +export interface QueryGranteeGrantsRequestSDKType { + grantee: string; + pagination?: PageRequestSDKType; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponse { + /** grants is a list of grants granted to the grantee. */ + grants: GrantAuthorization[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryGranteeGrantsResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; + value: Uint8Array; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponseAmino { + /** grants is a list of grants granted to the grantee. */ + grants?: GrantAuthorizationAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGranteeGrantsResponseAminoMsg { + type: "cosmos-sdk/QueryGranteeGrantsResponse"; + value: QueryGranteeGrantsResponseAmino; +} +/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ +export interface QueryGranteeGrantsResponseSDKType { + grants: GrantAuthorizationSDKType[]; + pagination?: PageResponseSDKType; +} +function createBaseQueryGrantsRequest(): QueryGrantsRequest { + return { + granter: "", + grantee: "", + msgTypeUrl: "", + pagination: undefined + }; +} +export const QueryGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + encode(message: QueryGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGrantsRequest { + const message = createBaseQueryGrantsRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest { + const message = createBaseQueryGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest { + return QueryGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGrantsRequest", + value: QueryGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest { + return QueryGrantsRequest.decode(message.value); + }, + toProto(message: QueryGrantsRequest): Uint8Array { + return QueryGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", + value: QueryGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGrantsResponse(): QueryGrantsResponse { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + encode(message: QueryGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.grants) { + Grant.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGrantsResponse { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse { + const message = createBaseQueryGrantsResponse(); + message.grants = object.grants?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino { + const obj: any = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? Grant.toAmino(e) : undefined); + } else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse { + return QueryGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGrantsResponse", + value: QueryGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse { + return QueryGrantsResponse.decode(message.value); + }, + toProto(message: QueryGrantsResponse): Uint8Array { + return QueryGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", + value: QueryGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsRequest(): QueryGranterGrantsRequest { + return { + granter: "", + pagination: undefined + }; +} +export const QueryGranterGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + encode(message: QueryGranterGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGranterGrantsRequest { + const message = createBaseQueryGranterGrantsRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest { + const message = createBaseQueryGranterGrantsRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest { + return QueryGranterGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGranterGrantsRequest", + value: QueryGranterGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest { + return QueryGranterGrantsRequest.decode(message.value); + }, + toProto(message: QueryGranterGrantsRequest): Uint8Array { + return QueryGranterGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", + value: QueryGranterGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranterGrantsResponse(): QueryGranterGrantsResponse { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGranterGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + encode(message: QueryGranterGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.grants) { + GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranterGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGranterGrantsResponse { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse { + const message = createBaseQueryGranterGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino { + const obj: any = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse { + return QueryGranterGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGranterGrantsResponse", + value: QueryGranterGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse { + return QueryGranterGrantsResponse.decode(message.value); + }, + toProto(message: QueryGranterGrantsResponse): Uint8Array { + return QueryGranterGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", + value: QueryGranterGrantsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsRequest(): QueryGranteeGrantsRequest { + return { + grantee: "", + pagination: undefined + }; +} +export const QueryGranteeGrantsRequest = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + encode(message: QueryGranteeGrantsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGranteeGrantsRequest { + const message = createBaseQueryGranteeGrantsRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest { + const message = createBaseQueryGranteeGrantsRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino { + const obj: any = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest { + return QueryGranteeGrantsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGranteeGrantsRequest", + value: QueryGranteeGrantsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest { + return QueryGranteeGrantsRequest.decode(message.value); + }, + toProto(message: QueryGranteeGrantsRequest): Uint8Array { + return QueryGranteeGrantsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", + value: QueryGranteeGrantsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGranteeGrantsResponse(): QueryGranteeGrantsResponse { + return { + grants: [], + pagination: undefined + }; +} +export const QueryGranteeGrantsResponse = { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + encode(message: QueryGranteeGrantsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.grants) { + GrantAuthorization.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGranteeGrantsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGranteeGrantsResponse { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse { + const message = createBaseQueryGranteeGrantsResponse(); + message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino { + const obj: any = {}; + if (message.grants) { + obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); + } else { + obj.grants = message.grants; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse { + return QueryGranteeGrantsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGranteeGrantsResponse", + value: QueryGranteeGrantsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse { + return QueryGranteeGrantsResponse.decode(message.value); + }, + toProto(message: QueryGranteeGrantsResponse): Uint8Array { + return QueryGranteeGrantsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", + value: QueryGranteeGrantsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/tx.amino.ts b/packages/api/src/cosmos/authz/v1beta1/tx.amino.ts new file mode 100644 index 00000000..dce86d05 --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/tx.amino.ts @@ -0,0 +1,19 @@ +//@ts-nocheck +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export const AminoConverter = { + "/cosmos.authz.v1beta1.MsgGrant": { + aminoType: "cosmos-sdk/MsgGrant", + toAmino: MsgGrant.toAmino, + fromAmino: MsgGrant.fromAmino + }, + "/cosmos.authz.v1beta1.MsgExec": { + aminoType: "cosmos-sdk/MsgExec", + toAmino: MsgExec.toAmino, + fromAmino: MsgExec.fromAmino + }, + "/cosmos.authz.v1beta1.MsgRevoke": { + aminoType: "cosmos-sdk/MsgRevoke", + toAmino: MsgRevoke.toAmino, + fromAmino: MsgRevoke.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/tx.registry.ts b/packages/api/src/cosmos/authz/v1beta1/tx.registry.ts new file mode 100644 index 00000000..bdcdde87 --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/tx.registry.ts @@ -0,0 +1,71 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + grant(value: MsgGrant) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.encode(value).finish() + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.encode(value).finish() + }; + }, + revoke(value: MsgRevoke) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.encode(value).finish() + }; + } + }, + withTypeUrl: { + grant(value: MsgGrant) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value + }; + }, + revoke(value: MsgRevoke) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value + }; + } + }, + fromPartial: { + grant(value: MsgGrant) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.fromPartial(value) + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.fromPartial(value) + }; + }, + revoke(value: MsgRevoke) { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/authz/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..d06c05f6 --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,49 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; +/** Msg defines the authz Msg service. */ +export interface Msg { + /** + * Grant grants the provided authorization to the grantee on the granter's + * account with the provided expiration time. If there is already a grant + * for the given (granter, grantee, Authorization) triple, then the grant + * will be overwritten. + */ + grant(request: MsgGrant): Promise; + /** + * Exec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ + exec(request: MsgExec): Promise; + /** + * Revoke revokes any authorization corresponding to the provided method name on the + * granter's account that has been granted to the grantee. + */ + revoke(request: MsgRevoke): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.grant = this.grant.bind(this); + this.exec = this.exec.bind(this); + this.revoke = this.revoke.bind(this); + } + grant(request: MsgGrant): Promise { + const data = MsgGrant.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); + return promise.then(data => MsgGrantResponse.decode(new BinaryReader(data))); + } + exec(request: MsgExec): Promise { + const data = MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); + return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); + } + revoke(request: MsgRevoke): Promise { + const data = MsgRevoke.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); + return promise.then(data => MsgRevokeResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/authz/v1beta1/tx.ts b/packages/api/src/cosmos/authz/v1beta1/tx.ts new file mode 100644 index 00000000..953488bd --- /dev/null +++ b/packages/api/src/cosmos/authz/v1beta1/tx.ts @@ -0,0 +1,656 @@ +//@ts-nocheck +import { Grant, GrantAmino, GrantSDKType } from "./authz"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrant { + granter: string; + grantee: string; + grant: Grant; +} +export interface MsgGrantProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; + value: Uint8Array; +} +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrantAmino { + granter?: string; + grantee?: string; + grant?: GrantAmino; +} +export interface MsgGrantAminoMsg { + type: "cosmos-sdk/MsgGrant"; + value: MsgGrantAmino; +} +/** + * MsgGrant is a request type for Grant method. It declares authorization to the grantee + * on behalf of the granter with the provided expiration time. + */ +export interface MsgGrantSDKType { + granter: string; + grantee: string; + grant: GrantSDKType; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponse { + results: Uint8Array[]; +} +export interface MsgExecResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; + value: Uint8Array; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponseAmino { + results?: string[]; +} +export interface MsgExecResponseAminoMsg { + type: "cosmos-sdk/MsgExecResponse"; + value: MsgExecResponseAmino; +} +/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ +export interface MsgExecResponseSDKType { + results: Uint8Array[]; +} +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExec { + grantee: string; + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs: (Any)[] | Any[]; +} +export interface MsgExecProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgExec"; + value: Uint8Array; +} +export type MsgExecEncoded = Omit & { + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs: (AnyProtoMsg)[]; +}; +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExecAmino { + grantee?: string; + /** + * Authorization Msg requests to execute. Each msg must implement Authorization interface + * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + * triple and validate it. + */ + msgs?: AnyAmino[]; +} +export interface MsgExecAminoMsg { + type: "cosmos-sdk/MsgExec"; + value: MsgExecAmino; +} +/** + * MsgExec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ +export interface MsgExecSDKType { + grantee: string; + msgs: (AnySDKType)[]; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponse {} +export interface MsgGrantResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; + value: Uint8Array; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponseAmino {} +export interface MsgGrantResponseAminoMsg { + type: "cosmos-sdk/MsgGrantResponse"; + value: MsgGrantResponseAmino; +} +/** MsgGrantResponse defines the Msg/MsgGrant response type. */ +export interface MsgGrantResponseSDKType {} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevoke { + granter: string; + grantee: string; + msgTypeUrl: string; +} +export interface MsgRevokeProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; + value: Uint8Array; +} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevokeAmino { + granter?: string; + grantee?: string; + msg_type_url?: string; +} +export interface MsgRevokeAminoMsg { + type: "cosmos-sdk/MsgRevoke"; + value: MsgRevokeAmino; +} +/** + * MsgRevoke revokes any authorization with the provided sdk.Msg type on the + * granter's account with that has been granted to the grantee. + */ +export interface MsgRevokeSDKType { + granter: string; + grantee: string; + msg_type_url: string; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponse {} +export interface MsgRevokeResponseProtoMsg { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; + value: Uint8Array; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponseAmino {} +export interface MsgRevokeResponseAminoMsg { + type: "cosmos-sdk/MsgRevokeResponse"; + value: MsgRevokeResponseAmino; +} +/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ +export interface MsgRevokeResponseSDKType {} +function createBaseMsgGrant(): MsgGrant { + return { + granter: "", + grantee: "", + grant: Grant.fromPartial({}) + }; +} +export const MsgGrant = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + encode(message: MsgGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.grant !== undefined) { + Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.grant = Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgGrant { + const message = createBaseMsgGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.grant = object.grant !== undefined && object.grant !== null ? Grant.fromPartial(object.grant) : undefined; + return message; + }, + fromAmino(object: MsgGrantAmino): MsgGrant { + const message = createBaseMsgGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.grant !== undefined && object.grant !== null) { + message.grant = Grant.fromAmino(object.grant); + } + return message; + }, + toAmino(message: MsgGrant): MsgGrantAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.grant = message.grant ? Grant.toAmino(message.grant) : undefined; + return obj; + }, + fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant { + return MsgGrant.fromAmino(object.value); + }, + toAminoMsg(message: MsgGrant): MsgGrantAminoMsg { + return { + type: "cosmos-sdk/MsgGrant", + value: MsgGrant.toAmino(message) + }; + }, + fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant { + return MsgGrant.decode(message.value); + }, + toProto(message: MsgGrant): Uint8Array { + return MsgGrant.encode(message).finish(); + }, + toProtoMsg(message: MsgGrant): MsgGrantProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrant", + value: MsgGrant.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse(): MsgExecResponse { + return { + results: [] + }; +} +export const MsgExecResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.results) { + writer.uint32(10).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.results.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgExecResponse { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => e) || []; + return message; + }, + fromAmino(object: MsgExecResponseAmino): MsgExecResponse { + const message = createBaseMsgExecResponse(); + message.results = object.results?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: MsgExecResponse): MsgExecResponseAmino { + const obj: any = {}; + if (message.results) { + obj.results = message.results.map(e => base64FromBytes(e)); + } else { + obj.results = message.results; + } + return obj; + }, + fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse { + return MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg { + return { + type: "cosmos-sdk/MsgExecResponse", + value: MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse { + return MsgExecResponse.decode(message.value); + }, + toProto(message: MsgExecResponse): Uint8Array { + return MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", + value: MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec(): MsgExec { + return { + grantee: "", + msgs: [] + }; +} +export const MsgExec = { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + for (const v of message.msgs) { + Any.encode((v! as Any), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.msgs.push((Any.decode(reader, reader.uint32()) as Any)); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgExec { + const message = createBaseMsgExec(); + message.grantee = object.grantee ?? ""; + message.msgs = object.msgs?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgExecAmino): MsgExec { + const message = createBaseMsgExec(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; + return message; + }, + toAmino(message: MsgExec): MsgExecAmino { + const obj: any = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino((e as Any)) : undefined); + } else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object: MsgExecAminoMsg): MsgExec { + return MsgExec.fromAmino(object.value); + }, + toAminoMsg(message: MsgExec): MsgExecAminoMsg { + return { + type: "cosmos-sdk/MsgExec", + value: MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecProtoMsg): MsgExec { + return MsgExec.decode(message.value); + }, + toProto(message: MsgExec): Uint8Array { + return MsgExec.encode(message).finish(); + }, + toProtoMsg(message: MsgExec): MsgExecProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgExec", + value: MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgGrantResponse(): MsgGrantResponse { + return {}; +} +export const MsgGrantResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + encode(_: MsgGrantResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgGrantResponse { + const message = createBaseMsgGrantResponse(); + return message; + }, + fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse { + const message = createBaseMsgGrantResponse(); + return message; + }, + toAmino(_: MsgGrantResponse): MsgGrantResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse { + return MsgGrantResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg { + return { + type: "cosmos-sdk/MsgGrantResponse", + value: MsgGrantResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse { + return MsgGrantResponse.decode(message.value); + }, + toProto(message: MsgGrantResponse): Uint8Array { + return MsgGrantResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", + value: MsgGrantResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevoke(): MsgRevoke { + return { + granter: "", + grantee: "", + msgTypeUrl: "" + }; +} +export const MsgRevoke = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + encode(message: MsgRevoke, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.msgTypeUrl !== "") { + writer.uint32(26).string(message.msgTypeUrl); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevoke(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRevoke { + const message = createBaseMsgRevoke(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object: MsgRevokeAmino): MsgRevoke { + const message = createBaseMsgRevoke(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message: MsgRevoke): MsgRevokeAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke { + return MsgRevoke.fromAmino(object.value); + }, + toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg { + return { + type: "cosmos-sdk/MsgRevoke", + value: MsgRevoke.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke { + return MsgRevoke.decode(message.value); + }, + toProto(message: MsgRevoke): Uint8Array { + return MsgRevoke.encode(message).finish(); + }, + toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", + value: MsgRevoke.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeResponse(): MsgRevokeResponse { + return {}; +} +export const MsgRevokeResponse = { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + encode(_: MsgRevokeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRevokeResponse { + const message = createBaseMsgRevokeResponse(); + return message; + }, + fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse { + const message = createBaseMsgRevokeResponse(); + return message; + }, + toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse { + return MsgRevokeResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg { + return { + type: "cosmos-sdk/MsgRevokeResponse", + value: MsgRevokeResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse { + return MsgRevokeResponse.decode(message.value); + }, + toProto(message: MsgRevokeResponse): Uint8Array { + return MsgRevokeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg { + return { + typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", + value: MsgRevokeResponse.encode(message).finish() + }; + } +}; +export const Sdk_Msg_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Sdk_Msg_FromAmino = (content: AnyAmino): Any => { + return Any.fromAmino(content); +}; +export const Sdk_Msg_ToAmino = (content: Any) => { + return Any.toAmino(content); +}; +export const Authz_Authorization_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Authz_Authorization_FromAmino = (content: AnyAmino): Any => { + return Any.fromAmino(content); +}; +export const Authz_Authorization_ToAmino = (content: Any) => { + return Any.toAmino(content); +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/authz.ts b/packages/api/src/cosmos/bank/v1beta1/authz.ts new file mode 100644 index 00000000..2ec7fcb5 --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/authz.ts @@ -0,0 +1,112 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorization { + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; + spendLimit: Coin[]; +} +export interface SendAuthorizationProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; + value: Uint8Array; +} +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorizationAmino { + spend_limit?: CoinAmino[]; +} +export interface SendAuthorizationAminoMsg { + type: "cosmos-sdk/SendAuthorization"; + value: SendAuthorizationAmino; +} +/** + * SendAuthorization allows the grantee to spend up to spend_limit coins from + * the granter's account. + * + * Since: cosmos-sdk 0.43 + */ +export interface SendAuthorizationSDKType { + $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; + spend_limit: CoinSDKType[]; +} +function createBaseSendAuthorization(): SendAuthorization { + return { + $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + spendLimit: [] + }; +} +export const SendAuthorization = { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + encode(message: SendAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.spendLimit) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SendAuthorization { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SendAuthorizationAmino): SendAuthorization { + const message = createBaseSendAuthorization(); + message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: SendAuthorization): SendAuthorizationAmino { + const obj: any = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.spend_limit = message.spendLimit; + } + return obj; + }, + fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization { + return SendAuthorization.fromAmino(object.value); + }, + toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg { + return { + type: "cosmos-sdk/SendAuthorization", + value: SendAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization { + return SendAuthorization.decode(message.value); + }, + toProto(message: SendAuthorization): Uint8Array { + return SendAuthorization.encode(message).finish(); + }, + toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", + value: SendAuthorization.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/bank.ts b/packages/api/src/cosmos/bank/v1beta1/bank.ts new file mode 100644 index 00000000..da93ef76 --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/bank.ts @@ -0,0 +1,952 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Params defines the parameters for the bank module. */ +export interface Params { + sendEnabled: SendEnabled[]; + defaultSendEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the bank module. */ +export interface ParamsAmino { + send_enabled?: SendEnabledAmino[]; + default_send_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the bank module. */ +export interface ParamsSDKType { + send_enabled: SendEnabledSDKType[]; + default_send_enabled: boolean; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabled { + denom: string; + enabled: boolean; +} +export interface SendEnabledProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; + value: Uint8Array; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabledAmino { + denom?: string; + enabled?: boolean; +} +export interface SendEnabledAminoMsg { + type: "cosmos-sdk/SendEnabled"; + value: SendEnabledAmino; +} +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface SendEnabledSDKType { + denom: string; + enabled: boolean; +} +/** Input models transaction input. */ +export interface Input { + address: string; + coins: Coin[]; +} +export interface InputProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Input"; + value: Uint8Array; +} +/** Input models transaction input. */ +export interface InputAmino { + address?: string; + coins?: CoinAmino[]; +} +export interface InputAminoMsg { + type: "cosmos-sdk/Input"; + value: InputAmino; +} +/** Input models transaction input. */ +export interface InputSDKType { + address: string; + coins: CoinSDKType[]; +} +/** Output models transaction outputs. */ +export interface Output { + address: string; + coins: Coin[]; +} +export interface OutputProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Output"; + value: Uint8Array; +} +/** Output models transaction outputs. */ +export interface OutputAmino { + address?: string; + coins?: CoinAmino[]; +} +export interface OutputAminoMsg { + type: "cosmos-sdk/Output"; + value: OutputAmino; +} +/** Output models transaction outputs. */ +export interface OutputSDKType { + address: string; + coins: CoinSDKType[]; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface Supply { + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; + total: Coin[]; +} +export interface SupplyProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Supply"; + value: Uint8Array; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface SupplyAmino { + total?: CoinAmino[]; +} +export interface SupplyAminoMsg { + type: "cosmos-sdk/Supply"; + value: SupplyAmino; +} +/** + * Supply represents a struct that passively keeps track of the total supply + * amounts in the network. + * This message is deprecated now that supply is indexed by denom. + */ +/** @deprecated */ +export interface SupplySDKType { + $typeUrl?: "/cosmos.bank.v1beta1.Supply"; + total: CoinSDKType[]; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnit { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 10^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + */ + exponent: number; + /** aliases is a list of string aliases for the given denom */ + aliases: string[]; +} +export interface DenomUnitProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; + value: Uint8Array; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnitAmino { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 10^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; +} +export interface DenomUnitAminoMsg { + type: "cosmos-sdk/DenomUnit"; + value: DenomUnitAmino; +} +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface DenomUnitSDKType { + denom: string; + exponent: number; + aliases: string[]; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface Metadata { + description: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denomUnits: DenomUnit[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display: string; + /** + * name defines the name of the token (eg: Cosmos Atom) + * + * Since: cosmos-sdk 0.43 + */ + name: string; + /** + * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + * be the same as the display. + * + * Since: cosmos-sdk 0.43 + */ + symbol: string; + /** + * URI to a document (on or off-chain) that contains additional information. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri: string; + /** + * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + * the document didn't change. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uriHash: string; +} +export interface MetadataProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Metadata"; + value: Uint8Array; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface MetadataAmino { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: DenomUnitAmino[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + /** + * name defines the name of the token (eg: Cosmos Atom) + * + * Since: cosmos-sdk 0.43 + */ + name?: string; + /** + * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + * be the same as the display. + * + * Since: cosmos-sdk 0.43 + */ + symbol?: string; + /** + * URI to a document (on or off-chain) that contains additional information. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri?: string; + /** + * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that + * the document didn't change. Optional. + * + * Since: cosmos-sdk 0.46 + */ + uri_hash?: string; +} +export interface MetadataAminoMsg { + type: "cosmos-sdk/Metadata"; + value: MetadataAmino; +} +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface MetadataSDKType { + description: string; + denom_units: DenomUnitSDKType[]; + base: string; + display: string; + name: string; + symbol: string; + uri: string; + uri_hash: string; +} +function createBaseParams(): Params { + return { + sendEnabled: [], + defaultSendEnabled: false + }; +} +export const Params = { + typeUrl: "/cosmos.bank.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.sendEnabled) { + SendEnabled.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultSendEnabled === true) { + writer.uint32(16).bool(message.defaultSendEnabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32())); + break; + case 2: + message.defaultSendEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || []; + message.defaultSendEnabled = object.defaultSendEnabled ?? false; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || []; + if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { + message.defaultSendEnabled = object.default_send_enabled; + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + if (message.sendEnabled) { + obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined); + } else { + obj.send_enabled = message.sendEnabled; + } + obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseSendEnabled(): SendEnabled { + return { + denom: "", + enabled: false + }; +} +export const SendEnabled = { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + encode(message: SendEnabled, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendEnabled(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SendEnabled { + const message = createBaseSendEnabled(); + message.denom = object.denom ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object: SendEnabledAmino): SendEnabled { + const message = createBaseSendEnabled(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message: SendEnabled): SendEnabledAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled { + return SendEnabled.fromAmino(object.value); + }, + toAminoMsg(message: SendEnabled): SendEnabledAminoMsg { + return { + type: "cosmos-sdk/SendEnabled", + value: SendEnabled.toAmino(message) + }; + }, + fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled { + return SendEnabled.decode(message.value); + }, + toProto(message: SendEnabled): Uint8Array { + return SendEnabled.encode(message).finish(); + }, + toProtoMsg(message: SendEnabled): SendEnabledProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.SendEnabled", + value: SendEnabled.encode(message).finish() + }; + } +}; +function createBaseInput(): Input { + return { + address: "", + coins: [] + }; +} +export const Input = { + typeUrl: "/cosmos.bank.v1beta1.Input", + encode(message: Input, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Input { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Input { + const message = createBaseInput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: InputAmino): Input { + const message = createBaseInput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Input): InputAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object: InputAminoMsg): Input { + return Input.fromAmino(object.value); + }, + toAminoMsg(message: Input): InputAminoMsg { + return { + type: "cosmos-sdk/Input", + value: Input.toAmino(message) + }; + }, + fromProtoMsg(message: InputProtoMsg): Input { + return Input.decode(message.value); + }, + toProto(message: Input): Uint8Array { + return Input.encode(message).finish(); + }, + toProtoMsg(message: Input): InputProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Input", + value: Input.encode(message).finish() + }; + } +}; +function createBaseOutput(): Output { + return { + address: "", + coins: [] + }; +} +export const Output = { + typeUrl: "/cosmos.bank.v1beta1.Output", + encode(message: Output, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Output { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOutput(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Output { + const message = createBaseOutput(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: OutputAmino): Output { + const message = createBaseOutput(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Output): OutputAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object: OutputAminoMsg): Output { + return Output.fromAmino(object.value); + }, + toAminoMsg(message: Output): OutputAminoMsg { + return { + type: "cosmos-sdk/Output", + value: Output.toAmino(message) + }; + }, + fromProtoMsg(message: OutputProtoMsg): Output { + return Output.decode(message.value); + }, + toProto(message: Output): Uint8Array { + return Output.encode(message).finish(); + }, + toProtoMsg(message: Output): OutputProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Output", + value: Output.encode(message).finish() + }; + } +}; +function createBaseSupply(): Supply { + return { + $typeUrl: "/cosmos.bank.v1beta1.Supply", + total: [] + }; +} +export const Supply = { + typeUrl: "/cosmos.bank.v1beta1.Supply", + encode(message: Supply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.total) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Supply { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Supply { + const message = createBaseSupply(); + message.total = object.total?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SupplyAmino): Supply { + const message = createBaseSupply(); + message.total = object.total?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Supply): SupplyAmino { + const obj: any = {}; + if (message.total) { + obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object: SupplyAminoMsg): Supply { + return Supply.fromAmino(object.value); + }, + toAminoMsg(message: Supply): SupplyAminoMsg { + return { + type: "cosmos-sdk/Supply", + value: Supply.toAmino(message) + }; + }, + fromProtoMsg(message: SupplyProtoMsg): Supply { + return Supply.decode(message.value); + }, + toProto(message: Supply): Uint8Array { + return Supply.encode(message).finish(); + }, + toProtoMsg(message: Supply): SupplyProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Supply", + value: Supply.encode(message).finish() + }; + } +}; +function createBaseDenomUnit(): DenomUnit { + return { + denom: "", + exponent: 0, + aliases: [] + }; +} +export const DenomUnit = { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + encode(message: DenomUnit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.exponent !== 0) { + writer.uint32(16).uint32(message.exponent); + } + for (const v of message.aliases) { + writer.uint32(26).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomUnit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.exponent = reader.uint32(); + break; + case 3: + message.aliases.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DenomUnit { + const message = createBaseDenomUnit(); + message.denom = object.denom ?? ""; + message.exponent = object.exponent ?? 0; + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + fromAmino(object: DenomUnitAmino): DenomUnit { + const message = createBaseDenomUnit(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + message.aliases = object.aliases?.map(e => e) || []; + return message; + }, + toAmino(message: DenomUnit): DenomUnitAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + if (message.aliases) { + obj.aliases = message.aliases.map(e => e); + } else { + obj.aliases = message.aliases; + } + return obj; + }, + fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit { + return DenomUnit.fromAmino(object.value); + }, + toAminoMsg(message: DenomUnit): DenomUnitAminoMsg { + return { + type: "cosmos-sdk/DenomUnit", + value: DenomUnit.toAmino(message) + }; + }, + fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit { + return DenomUnit.decode(message.value); + }, + toProto(message: DenomUnit): Uint8Array { + return DenomUnit.encode(message).finish(); + }, + toProtoMsg(message: DenomUnit): DenomUnitProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomUnit", + value: DenomUnit.encode(message).finish() + }; + } +}; +function createBaseMetadata(): Metadata { + return { + description: "", + denomUnits: [], + base: "", + display: "", + name: "", + symbol: "", + uri: "", + uriHash: "" + }; +} +export const Metadata = { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + encode(message: Metadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.description !== "") { + writer.uint32(10).string(message.description); + } + for (const v of message.denomUnits) { + DenomUnit.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.base !== "") { + writer.uint32(26).string(message.base); + } + if (message.display !== "") { + writer.uint32(34).string(message.display); + } + if (message.name !== "") { + writer.uint32(42).string(message.name); + } + if (message.symbol !== "") { + writer.uint32(50).string(message.symbol); + } + if (message.uri !== "") { + writer.uint32(58).string(message.uri); + } + if (message.uriHash !== "") { + writer.uint32(66).string(message.uriHash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Metadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + message.denomUnits.push(DenomUnit.decode(reader, reader.uint32())); + break; + case 3: + message.base = reader.string(); + break; + case 4: + message.display = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + case 6: + message.symbol = reader.string(); + break; + case 7: + message.uri = reader.string(); + break; + case 8: + message.uriHash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Metadata { + const message = createBaseMetadata(); + message.description = object.description ?? ""; + message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || []; + message.base = object.base ?? ""; + message.display = object.display ?? ""; + message.name = object.name ?? ""; + message.symbol = object.symbol ?? ""; + message.uri = object.uri ?? ""; + message.uriHash = object.uriHash ?? ""; + return message; + }, + fromAmino(object: MetadataAmino): Metadata { + const message = createBaseMetadata(); + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.denomUnits = object.denom_units?.map(e => DenomUnit.fromAmino(e)) || []; + if (object.base !== undefined && object.base !== null) { + message.base = object.base; + } + if (object.display !== undefined && object.display !== null) { + message.display = object.display; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.symbol !== undefined && object.symbol !== null) { + message.symbol = object.symbol; + } + if (object.uri !== undefined && object.uri !== null) { + message.uri = object.uri; + } + if (object.uri_hash !== undefined && object.uri_hash !== null) { + message.uriHash = object.uri_hash; + } + return message; + }, + toAmino(message: Metadata): MetadataAmino { + const obj: any = {}; + obj.description = message.description === "" ? undefined : message.description; + if (message.denomUnits) { + obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined); + } else { + obj.denom_units = message.denomUnits; + } + obj.base = message.base === "" ? undefined : message.base; + obj.display = message.display === "" ? undefined : message.display; + obj.name = message.name === "" ? undefined : message.name; + obj.symbol = message.symbol === "" ? undefined : message.symbol; + obj.uri = message.uri === "" ? undefined : message.uri; + obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; + return obj; + }, + fromAminoMsg(object: MetadataAminoMsg): Metadata { + return Metadata.fromAmino(object.value); + }, + toAminoMsg(message: Metadata): MetadataAminoMsg { + return { + type: "cosmos-sdk/Metadata", + value: Metadata.toAmino(message) + }; + }, + fromProtoMsg(message: MetadataProtoMsg): Metadata { + return Metadata.decode(message.value); + }, + toProto(message: Metadata): Uint8Array { + return Metadata.encode(message).finish(); + }, + toProtoMsg(message: Metadata): MetadataProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Metadata", + value: Metadata.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/genesis.ts b/packages/api/src/cosmos/bank/v1beta1/genesis.ts new file mode 100644 index 00000000..dfdcd06f --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/genesis.ts @@ -0,0 +1,277 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** balances is an array containing the balances of all the accounts. */ + balances: Balance[]; + /** + * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + */ + supply: Coin[]; + /** denom_metadata defines the metadata of the differents coins. */ + denomMetadata: Metadata[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** balances is an array containing the balances of all the accounts. */ + balances?: BalanceAmino[]; + /** + * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + */ + supply?: CoinAmino[]; + /** denom_metadata defines the metadata of the differents coins. */ + denom_metadata?: MetadataAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the bank module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + balances: BalanceSDKType[]; + supply: CoinSDKType[]; + denom_metadata: MetadataSDKType[]; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface Balance { + /** address is the address of the balance holder. */ + address: string; + /** coins defines the different coins this balance holds. */ + coins: Coin[]; +} +export interface BalanceProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.Balance"; + value: Uint8Array; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface BalanceAmino { + /** address is the address of the balance holder. */ + address?: string; + /** coins defines the different coins this balance holds. */ + coins?: CoinAmino[]; +} +export interface BalanceAminoMsg { + type: "cosmos-sdk/Balance"; + value: BalanceAmino; +} +/** + * Balance defines an account address and balance pair used in the bank module's + * genesis state. + */ +export interface BalanceSDKType { + address: string; + coins: CoinSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}), + balances: [], + supply: [], + denomMetadata: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.balances) { + Balance.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.supply) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.denomMetadata) { + Metadata.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.balances.push(Balance.decode(reader, reader.uint32())); + break; + case 3: + message.supply.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.denomMetadata.push(Metadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; + message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; + message.denomMetadata = object.denomMetadata?.map(e => Metadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; + message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; + message.denomMetadata = object.denom_metadata?.map(e => Metadata.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + if (message.supply) { + obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.supply = message.supply; + } + if (message.denomMetadata) { + obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined); + } else { + obj.denom_metadata = message.denomMetadata; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance(): Balance { + return { + address: "", + coins: [] + }; +} +export const Balance = { + typeUrl: "/cosmos.bank.v1beta1.Balance", + encode(message: Balance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + for (const v of message.coins) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Balance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.coins.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Balance { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: BalanceAmino): Balance { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Balance): BalanceAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + if (message.coins) { + obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.coins = message.coins; + } + return obj; + }, + fromAminoMsg(object: BalanceAminoMsg): Balance { + return Balance.fromAmino(object.value); + }, + toAminoMsg(message: Balance): BalanceAminoMsg { + return { + type: "cosmos-sdk/Balance", + value: Balance.toAmino(message) + }; + }, + fromProtoMsg(message: BalanceProtoMsg): Balance { + return Balance.decode(message.value); + }, + toProto(message: Balance): Uint8Array { + return Balance.encode(message).finish(); + }, + toProtoMsg(message: Balance): BalanceProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.Balance", + value: Balance.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/query.lcd.ts b/packages/api/src/cosmos/bank/v1beta1/query.lcd.ts new file mode 100644 index 00000000..7a74cb83 --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/query.lcd.ts @@ -0,0 +1,121 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + /* Balance queries the balance of a single coin for a single account. */ + async balance(params: QueryBalanceRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries the balance of all coins for a single account. */ + async allBalances(params: QueryAllBalancesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* SpendableBalances queries the spenable balance of all coins for a single + account. + + Since: cosmos-sdk 0.46 */ + async spendableBalances(params: QuerySpendableBalancesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TotalSupply queries the total supply of all coins. */ + async totalSupply(params: QueryTotalSupplyRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/supply`; + return await this.req.get(endpoint, options); + } + /* SupplyOf queries the supply of a single coin. */ + async supplyOf(params: QuerySupplyOfRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.denom !== "undefined") { + options.params.denom = params.denom; + } + const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; + return await this.req.get(endpoint, options); + } + /* Params queries the parameters of x/bank module. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `cosmos/bank/v1beta1/params`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata of a given coin denomination. */ + async denomMetadata(params: QueryDenomMetadataRequest): Promise { + const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; + return await this.req.get(endpoint); + } + /* DenomsMetadata queries the client metadata for all registered coin + denominations. */ + async denomsMetadata(params: QueryDenomsMetadataRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; + return await this.req.get(endpoint, options); + } + /* DenomOwners queries for all account addresses that own a particular token + denomination. + + Since: cosmos-sdk 0.46 */ + async denomOwners(params: QueryDenomOwnersRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; + return await this.req.get(endpoint, options); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/bank/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..c1841757 --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/query.rpc.Query.ts @@ -0,0 +1,136 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Balance queries the balance of a single coin for a single account. */ + balance(request: QueryBalanceRequest): Promise; + /** AllBalances queries the balance of all coins for a single account. */ + allBalances(request: QueryAllBalancesRequest): Promise; + /** + * SpendableBalances queries the spenable balance of all coins for a single + * account. + * + * Since: cosmos-sdk 0.46 + */ + spendableBalances(request: QuerySpendableBalancesRequest): Promise; + /** TotalSupply queries the total supply of all coins. */ + totalSupply(request?: QueryTotalSupplyRequest): Promise; + /** SupplyOf queries the supply of a single coin. */ + supplyOf(request: QuerySupplyOfRequest): Promise; + /** Params queries the parameters of x/bank module. */ + params(request?: QueryParamsRequest): Promise; + /** DenomsMetadata queries the client metadata of a given coin denomination. */ + denomMetadata(request: QueryDenomMetadataRequest): Promise; + /** + * DenomsMetadata queries the client metadata for all registered coin + * denominations. + */ + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + /** + * DenomOwners queries for all account addresses that own a particular token + * denomination. + * + * Since: cosmos-sdk 0.46 + */ + denomOwners(request: QueryDenomOwnersRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + balance(request: QueryBalanceRequest): Promise { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + allBalances(request: QueryAllBalancesRequest): Promise { + const data = QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); + return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); + } + spendableBalances(request: QuerySpendableBalancesRequest): Promise { + const data = QuerySpendableBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); + return promise.then(data => QuerySpendableBalancesResponse.decode(new BinaryReader(data))); + } + totalSupply(request: QueryTotalSupplyRequest = { + pagination: undefined + }): Promise { + const data = QueryTotalSupplyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); + return promise.then(data => QueryTotalSupplyResponse.decode(new BinaryReader(data))); + } + supplyOf(request: QuerySupplyOfRequest): Promise { + const data = QuerySupplyOfRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); + return promise.then(data => QuerySupplyOfResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + denomMetadata(request: QueryDenomMetadataRequest): Promise { + const data = QueryDenomMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); + return promise.then(data => QueryDenomMetadataResponse.decode(new BinaryReader(data))); + } + denomsMetadata(request: QueryDenomsMetadataRequest = { + pagination: undefined + }): Promise { + const data = QueryDenomsMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); + return promise.then(data => QueryDenomsMetadataResponse.decode(new BinaryReader(data))); + } + denomOwners(request: QueryDenomOwnersRequest): Promise { + const data = QueryDenomOwnersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); + return promise.then(data => QueryDenomOwnersResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + balance(request: QueryBalanceRequest): Promise { + return queryService.balance(request); + }, + allBalances(request: QueryAllBalancesRequest): Promise { + return queryService.allBalances(request); + }, + spendableBalances(request: QuerySpendableBalancesRequest): Promise { + return queryService.spendableBalances(request); + }, + totalSupply(request?: QueryTotalSupplyRequest): Promise { + return queryService.totalSupply(request); + }, + supplyOf(request: QuerySupplyOfRequest): Promise { + return queryService.supplyOf(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + denomMetadata(request: QueryDenomMetadataRequest): Promise { + return queryService.denomMetadata(request); + }, + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise { + return queryService.denomsMetadata(request); + }, + denomOwners(request: QueryDenomOwnersRequest): Promise { + return queryService.denomOwners(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/query.ts b/packages/api/src/cosmos/bank/v1beta1/query.ts new file mode 100644 index 00000000..448ec842 --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/query.ts @@ -0,0 +1,2022 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequest { + /** address is the address to query balances for. */ + address: string; + /** denom is the coin denom to query balances for. */ + denom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequestAmino { + /** address is the address to query balances for. */ + address?: string; + /** denom is the coin denom to query balances for. */ + denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "cosmos-sdk/QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ +export interface QueryBalanceRequestSDKType { + address: string; + denom: string; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponse { + /** balance is the balance of the coin. */ + balance?: Coin; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponseAmino { + /** balance is the balance of the coin. */ + balance?: CoinAmino; +} +export interface QueryBalanceResponseAminoMsg { + type: "cosmos-sdk/QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface QueryBalanceResponseSDKType { + balance?: CoinSDKType; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequest { + /** address is the address to query balances for. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllBalancesRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequestAmino { + /** address is the address to query balances for. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllBalancesRequestAminoMsg { + type: "cosmos-sdk/QueryAllBalancesRequest"; + value: QueryAllBalancesRequestAmino; +} +/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ +export interface QueryAllBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponse { + /** balances is the balances of all the coins. */ + balances: Coin[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllBalancesResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; + value: Uint8Array; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponseAmino { + /** balances is the balances of all the coins. */ + balances?: CoinAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllBalancesResponseAminoMsg { + type: "cosmos-sdk/QueryAllBalancesResponse"; + value: QueryAllBalancesResponseAmino; +} +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface QueryAllBalancesResponseSDKType { + balances: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequest { + /** address is the address to query spendable balances for. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySpendableBalancesRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; + value: Uint8Array; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequestAmino { + /** address is the address to query spendable balances for. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySpendableBalancesRequestAminoMsg { + type: "cosmos-sdk/QuerySpendableBalancesRequest"; + value: QuerySpendableBalancesRequestAmino; +} +/** + * QuerySpendableBalancesRequest defines the gRPC request structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponse { + /** balances is the spendable balances of all the coins. */ + balances: Coin[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QuerySpendableBalancesResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; + value: Uint8Array; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponseAmino { + /** balances is the spendable balances of all the coins. */ + balances?: CoinAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySpendableBalancesResponseAminoMsg { + type: "cosmos-sdk/QuerySpendableBalancesResponse"; + value: QuerySpendableBalancesResponseAmino; +} +/** + * QuerySpendableBalancesResponse defines the gRPC response structure for querying + * an account's spendable balances. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySpendableBalancesResponseSDKType { + balances: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequest { + /** + * pagination defines an optional pagination for the request. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageRequest; +} +export interface QueryTotalSupplyRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; + value: Uint8Array; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequestAmino { + /** + * pagination defines an optional pagination for the request. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageRequestAmino; +} +export interface QueryTotalSupplyRequestAminoMsg { + type: "cosmos-sdk/QueryTotalSupplyRequest"; + value: QueryTotalSupplyRequestAmino; +} +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC + * method. + */ +export interface QueryTotalSupplyRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponse { + /** supply is the supply of the coins */ + supply: Coin[]; + /** + * pagination defines the pagination in the response. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageResponse; +} +export interface QueryTotalSupplyResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; + value: Uint8Array; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponseAmino { + /** supply is the supply of the coins */ + supply?: CoinAmino[]; + /** + * pagination defines the pagination in the response. + * + * Since: cosmos-sdk 0.43 + */ + pagination?: PageResponseAmino; +} +export interface QueryTotalSupplyResponseAminoMsg { + type: "cosmos-sdk/QueryTotalSupplyResponse"; + value: QueryTotalSupplyResponseAmino; +} +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface QueryTotalSupplyResponseSDKType { + supply: CoinSDKType[]; + pagination?: PageResponseSDKType; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequest { + /** denom is the coin denom to query balances for. */ + denom: string; +} +export interface QuerySupplyOfRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; + value: Uint8Array; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequestAmino { + /** denom is the coin denom to query balances for. */ + denom?: string; +} +export interface QuerySupplyOfRequestAminoMsg { + type: "cosmos-sdk/QuerySupplyOfRequest"; + value: QuerySupplyOfRequestAmino; +} +/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfRequestSDKType { + denom: string; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponse { + /** amount is the supply of the coin. */ + amount: Coin; +} +export interface QuerySupplyOfResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; + value: Uint8Array; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponseAmino { + /** amount is the supply of the coin. */ + amount?: CoinAmino; +} +export interface QuerySupplyOfResponseAminoMsg { + type: "cosmos-sdk/QuerySupplyOfResponse"; + value: QuerySupplyOfResponseAmino; +} +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface QuerySupplyOfResponseSDKType { + amount: CoinSDKType; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest defines the request type for querying x/bank parameters. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponse { + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponseAmino { + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomsMetadataRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; + value: Uint8Array; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomsMetadataRequestAminoMsg { + type: "cosmos-sdk/QueryDenomsMetadataRequest"; + value: QueryDenomsMetadataRequestAmino; +} +/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ +export interface QueryDenomsMetadataRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponse { + /** metadata provides the client information for all the registered tokens. */ + metadatas: Metadata[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomsMetadataResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; + value: Uint8Array; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponseAmino { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: MetadataAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomsMetadataResponseAminoMsg { + type: "cosmos-sdk/QueryDenomsMetadataResponse"; + value: QueryDenomsMetadataResponseAmino; +} +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface QueryDenomsMetadataResponseSDKType { + metadatas: MetadataSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequest { + /** denom is the coin denom to query the metadata for. */ + denom: string; +} +export interface QueryDenomMetadataRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; + value: Uint8Array; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequestAmino { + /** denom is the coin denom to query the metadata for. */ + denom?: string; +} +export interface QueryDenomMetadataRequestAminoMsg { + type: "cosmos-sdk/QueryDenomMetadataRequest"; + value: QueryDenomMetadataRequestAmino; +} +/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ +export interface QueryDenomMetadataRequestSDKType { + denom: string; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponse { + /** metadata describes and provides all the client information for the requested token. */ + metadata: Metadata; +} +export interface QueryDenomMetadataResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; + value: Uint8Array; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponseAmino { + /** metadata describes and provides all the client information for the requested token. */ + metadata?: MetadataAmino; +} +export interface QueryDenomMetadataResponseAminoMsg { + type: "cosmos-sdk/QueryDenomMetadataResponse"; + value: QueryDenomMetadataResponseAmino; +} +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface QueryDenomMetadataResponseSDKType { + metadata: MetadataSDKType; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequest { + /** denom defines the coin denomination to query all account holders for. */ + denom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomOwnersRequestProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; + value: Uint8Array; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequestAmino { + /** denom defines the coin denomination to query all account holders for. */ + denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomOwnersRequestAminoMsg { + type: "cosmos-sdk/QueryDenomOwnersRequest"; + value: QueryDenomOwnersRequestAmino; +} +/** + * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + */ +export interface QueryDenomOwnersRequestSDKType { + denom: string; + pagination?: PageRequestSDKType; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwner { + /** address defines the address that owns a particular denomination. */ + address: string; + /** balance is the balance of the denominated coin for an account. */ + balance: Coin; +} +export interface DenomOwnerProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; + value: Uint8Array; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwnerAmino { + /** address defines the address that owns a particular denomination. */ + address?: string; + /** balance is the balance of the denominated coin for an account. */ + balance?: CoinAmino; +} +export interface DenomOwnerAminoMsg { + type: "cosmos-sdk/DenomOwner"; + value: DenomOwnerAmino; +} +/** + * DenomOwner defines structure representing an account that owns or holds a + * particular denominated token. It contains the account address and account + * balance of the denominated token. + * + * Since: cosmos-sdk 0.46 + */ +export interface DenomOwnerSDKType { + address: string; + balance: CoinSDKType; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponse { + denomOwners: DenomOwner[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomOwnersResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; + value: Uint8Array; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponseAmino { + denom_owners?: DenomOwnerAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomOwnersResponseAminoMsg { + type: "cosmos-sdk/QueryDenomOwnersResponse"; + value: QueryDenomOwnersResponseAmino; +} +/** + * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryDenomOwnersResponseSDKType { + denom_owners: DenomOwnerSDKType[]; + pagination?: PageResponseSDKType; +} +function createBaseQueryBalanceRequest(): QueryBalanceRequest { + return { + address: "", + denom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { + return QueryBalanceRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg { + return { + type: "cosmos-sdk/QueryBalanceRequest", + value: QueryBalanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message: QueryBalanceRequest): Uint8Array { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse(): QueryBalanceResponse { + return { + balance: undefined + }; +} +export const QueryBalanceResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { + const obj: any = {}; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { + return QueryBalanceResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg { + return { + type: "cosmos-sdk/QueryBalanceResponse", + value: QueryBalanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message: QueryBalanceResponse): Uint8Array { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest(): QueryAllBalancesRequest { + return { + address: "", + pagination: undefined + }; +} +export const QueryAllBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + encode(message: QueryAllBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllBalancesRequest { + const message = createBaseQueryAllBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest { + const message = createBaseQueryAllBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest { + return QueryAllBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAllBalancesRequest", + value: QueryAllBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest { + return QueryAllBalancesRequest.decode(message.value); + }, + toProto(message: QueryAllBalancesRequest): Uint8Array { + return QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", + value: QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse(): QueryAllBalancesResponse { + return { + balances: [], + pagination: undefined + }; +} +export const QueryAllBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + encode(message: QueryAllBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllBalancesResponse { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse { + return QueryAllBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAllBalancesResponse", + value: QueryAllBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse { + return QueryAllBalancesResponse.decode(message.value); + }, + toProto(message: QueryAllBalancesResponse): Uint8Array { + return QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", + value: QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesRequest(): QuerySpendableBalancesRequest { + return { + address: "", + pagination: undefined + }; +} +export const QuerySpendableBalancesRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + encode(message: QuerySpendableBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySpendableBalancesRequest { + const message = createBaseQuerySpendableBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySpendableBalancesRequestAmino): QuerySpendableBalancesRequest { + const message = createBaseQuerySpendableBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySpendableBalancesRequestAminoMsg): QuerySpendableBalancesRequest { + return QuerySpendableBalancesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAminoMsg { + return { + type: "cosmos-sdk/QuerySpendableBalancesRequest", + value: QuerySpendableBalancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySpendableBalancesRequestProtoMsg): QuerySpendableBalancesRequest { + return QuerySpendableBalancesRequest.decode(message.value); + }, + toProto(message: QuerySpendableBalancesRequest): Uint8Array { + return QuerySpendableBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", + value: QuerySpendableBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySpendableBalancesResponse(): QuerySpendableBalancesResponse { + return { + balances: [], + pagination: undefined + }; +} +export const QuerySpendableBalancesResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + encode(message: QuerySpendableBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySpendableBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySpendableBalancesResponse { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySpendableBalancesResponseAmino): QuerySpendableBalancesResponse { + const message = createBaseQuerySpendableBalancesResponse(); + message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySpendableBalancesResponseAminoMsg): QuerySpendableBalancesResponse { + return QuerySpendableBalancesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAminoMsg { + return { + type: "cosmos-sdk/QuerySpendableBalancesResponse", + value: QuerySpendableBalancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySpendableBalancesResponseProtoMsg): QuerySpendableBalancesResponse { + return QuerySpendableBalancesResponse.decode(message.value); + }, + toProto(message: QuerySpendableBalancesResponse): Uint8Array { + return QuerySpendableBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", + value: QuerySpendableBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyRequest(): QueryTotalSupplyRequest { + return { + pagination: undefined + }; +} +export const QueryTotalSupplyRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + encode(message: QueryTotalSupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTotalSupplyRequest { + const message = createBaseQueryTotalSupplyRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryTotalSupplyRequestAmino): QueryTotalSupplyRequest { + const message = createBaseQueryTotalSupplyRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryTotalSupplyRequestAminoMsg): QueryTotalSupplyRequest { + return QueryTotalSupplyRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAminoMsg { + return { + type: "cosmos-sdk/QueryTotalSupplyRequest", + value: QueryTotalSupplyRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTotalSupplyRequestProtoMsg): QueryTotalSupplyRequest { + return QueryTotalSupplyRequest.decode(message.value); + }, + toProto(message: QueryTotalSupplyRequest): Uint8Array { + return QueryTotalSupplyRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", + value: QueryTotalSupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTotalSupplyResponse(): QueryTotalSupplyResponse { + return { + supply: [], + pagination: undefined + }; +} +export const QueryTotalSupplyResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + encode(message: QueryTotalSupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.supply) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTotalSupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.supply.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTotalSupplyResponse { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryTotalSupplyResponseAmino): QueryTotalSupplyResponse { + const message = createBaseQueryTotalSupplyResponse(); + message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAmino { + const obj: any = {}; + if (message.supply) { + obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.supply = message.supply; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryTotalSupplyResponseAminoMsg): QueryTotalSupplyResponse { + return QueryTotalSupplyResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAminoMsg { + return { + type: "cosmos-sdk/QueryTotalSupplyResponse", + value: QueryTotalSupplyResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTotalSupplyResponseProtoMsg): QueryTotalSupplyResponse { + return QueryTotalSupplyResponse.decode(message.value); + }, + toProto(message: QueryTotalSupplyResponse): Uint8Array { + return QueryTotalSupplyResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", + value: QueryTotalSupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfRequest(): QuerySupplyOfRequest { + return { + denom: "" + }; +} +export const QuerySupplyOfRequest = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + encode(message: QuerySupplyOfRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyOfRequest { + const message = createBaseQuerySupplyOfRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: QuerySupplyOfRequestAmino): QuerySupplyOfRequest { + const message = createBaseQuerySupplyOfRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest { + return QuerySupplyOfRequest.fromAmino(object.value); + }, + toAminoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestAminoMsg { + return { + type: "cosmos-sdk/QuerySupplyOfRequest", + value: QuerySupplyOfRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySupplyOfRequestProtoMsg): QuerySupplyOfRequest { + return QuerySupplyOfRequest.decode(message.value); + }, + toProto(message: QuerySupplyOfRequest): Uint8Array { + return QuerySupplyOfRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", + value: QuerySupplyOfRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyOfResponse(): QuerySupplyOfResponse { + return { + amount: Coin.fromPartial({}) + }; +} +export const QuerySupplyOfResponse = { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + encode(message: QuerySupplyOfResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyOfResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyOfResponse { + const message = createBaseQuerySupplyOfResponse(); + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object: QuerySupplyOfResponseAmino): QuerySupplyOfResponse { + const message = createBaseQuerySupplyOfResponse(); + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message: QuerySupplyOfResponse): QuerySupplyOfResponseAmino { + const obj: any = {}; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySupplyOfResponseAminoMsg): QuerySupplyOfResponse { + return QuerySupplyOfResponse.fromAmino(object.value); + }, + toAminoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseAminoMsg { + return { + type: "cosmos-sdk/QuerySupplyOfResponse", + value: QuerySupplyOfResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySupplyOfResponseProtoMsg): QuerySupplyOfResponse { + return QuerySupplyOfResponse.decode(message.value); + }, + toProto(message: QuerySupplyOfResponse): Uint8Array { + return QuerySupplyOfResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", + value: QuerySupplyOfResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataRequest(): QueryDenomsMetadataRequest { + return { + pagination: undefined + }; +} +export const QueryDenomsMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + encode(message: QueryDenomsMetadataRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomsMetadataRequest { + const message = createBaseQueryDenomsMetadataRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomsMetadataRequestAmino): QueryDenomsMetadataRequest { + const message = createBaseQueryDenomsMetadataRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomsMetadataRequestAminoMsg): QueryDenomsMetadataRequest { + return QueryDenomsMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomsMetadataRequest", + value: QueryDenomsMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomsMetadataRequestProtoMsg): QueryDenomsMetadataRequest { + return QueryDenomsMetadataRequest.decode(message.value); + }, + toProto(message: QueryDenomsMetadataRequest): Uint8Array { + return QueryDenomsMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", + value: QueryDenomsMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomsMetadataResponse(): QueryDenomsMetadataResponse { + return { + metadatas: [], + pagination: undefined + }; +} +export const QueryDenomsMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + encode(message: QueryDenomsMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.metadatas) { + Metadata.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomsMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadatas.push(Metadata.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomsMetadataResponse { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => Metadata.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomsMetadataResponseAmino): QueryDenomsMetadataResponse { + const message = createBaseQueryDenomsMetadataResponse(); + message.metadatas = object.metadatas?.map(e => Metadata.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAmino { + const obj: any = {}; + if (message.metadatas) { + obj.metadatas = message.metadatas.map(e => e ? Metadata.toAmino(e) : undefined); + } else { + obj.metadatas = message.metadatas; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomsMetadataResponseAminoMsg): QueryDenomsMetadataResponse { + return QueryDenomsMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomsMetadataResponse", + value: QueryDenomsMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomsMetadataResponseProtoMsg): QueryDenomsMetadataResponse { + return QueryDenomsMetadataResponse.decode(message.value); + }, + toProto(message: QueryDenomsMetadataResponse): Uint8Array { + return QueryDenomsMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", + value: QueryDenomsMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataRequest(): QueryDenomMetadataRequest { + return { + denom: "" + }; +} +export const QueryDenomMetadataRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + encode(message: QueryDenomMetadataRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomMetadataRequest { + const message = createBaseQueryDenomMetadataRequest(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: QueryDenomMetadataRequestAmino): QueryDenomMetadataRequest { + const message = createBaseQueryDenomMetadataRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest { + return QueryDenomMetadataRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomMetadataRequest", + value: QueryDenomMetadataRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomMetadataRequestProtoMsg): QueryDenomMetadataRequest { + return QueryDenomMetadataRequest.decode(message.value); + }, + toProto(message: QueryDenomMetadataRequest): Uint8Array { + return QueryDenomMetadataRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", + value: QueryDenomMetadataRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomMetadataResponse(): QueryDenomMetadataResponse { + return { + metadata: Metadata.fromPartial({}) + }; +} +export const QueryDenomMetadataResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + encode(message: QueryDenomMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.metadata !== undefined) { + Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = Metadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomMetadataResponse { + const message = createBaseQueryDenomMetadataResponse(); + message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; + return message; + }, + fromAmino(object: QueryDenomMetadataResponseAmino): QueryDenomMetadataResponse { + const message = createBaseQueryDenomMetadataResponse(); + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = Metadata.fromAmino(object.metadata); + } + return message; + }, + toAmino(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAmino { + const obj: any = {}; + obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomMetadataResponseAminoMsg): QueryDenomMetadataResponse { + return QueryDenomMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomMetadataResponse", + value: QueryDenomMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomMetadataResponseProtoMsg): QueryDenomMetadataResponse { + return QueryDenomMetadataResponse.decode(message.value); + }, + toProto(message: QueryDenomMetadataResponse): Uint8Array { + return QueryDenomMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", + value: QueryDenomMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersRequest(): QueryDenomOwnersRequest { + return { + denom: "", + pagination: undefined + }; +} +export const QueryDenomOwnersRequest = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + encode(message: QueryDenomOwnersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomOwnersRequest { + const message = createBaseQueryDenomOwnersRequest(); + message.denom = object.denom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomOwnersRequestAmino): QueryDenomOwnersRequest { + const message = createBaseQueryDenomOwnersRequest(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomOwnersRequestAminoMsg): QueryDenomOwnersRequest { + return QueryDenomOwnersRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomOwnersRequest", + value: QueryDenomOwnersRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomOwnersRequestProtoMsg): QueryDenomOwnersRequest { + return QueryDenomOwnersRequest.decode(message.value); + }, + toProto(message: QueryDenomOwnersRequest): Uint8Array { + return QueryDenomOwnersRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", + value: QueryDenomOwnersRequest.encode(message).finish() + }; + } +}; +function createBaseDenomOwner(): DenomOwner { + return { + address: "", + balance: Coin.fromPartial({}) + }; +} +export const DenomOwner = { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + encode(message: DenomOwner, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomOwner(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DenomOwner { + const message = createBaseDenomOwner(); + message.address = object.address ?? ""; + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object: DenomOwnerAmino): DenomOwner { + const message = createBaseDenomOwner(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message: DenomOwner): DenomOwnerAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object: DenomOwnerAminoMsg): DenomOwner { + return DenomOwner.fromAmino(object.value); + }, + toAminoMsg(message: DenomOwner): DenomOwnerAminoMsg { + return { + type: "cosmos-sdk/DenomOwner", + value: DenomOwner.toAmino(message) + }; + }, + fromProtoMsg(message: DenomOwnerProtoMsg): DenomOwner { + return DenomOwner.decode(message.value); + }, + toProto(message: DenomOwner): Uint8Array { + return DenomOwner.encode(message).finish(); + }, + toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.DenomOwner", + value: DenomOwner.encode(message).finish() + }; + } +}; +function createBaseQueryDenomOwnersResponse(): QueryDenomOwnersResponse { + return { + denomOwners: [], + pagination: undefined + }; +} +export const QueryDenomOwnersResponse = { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + encode(message: QueryDenomOwnersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.denomOwners) { + DenomOwner.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomOwnersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomOwners.push(DenomOwner.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomOwnersResponse { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denomOwners?.map(e => DenomOwner.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomOwnersResponseAmino): QueryDenomOwnersResponse { + const message = createBaseQueryDenomOwnersResponse(); + message.denomOwners = object.denom_owners?.map(e => DenomOwner.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAmino { + const obj: any = {}; + if (message.denomOwners) { + obj.denom_owners = message.denomOwners.map(e => e ? DenomOwner.toAmino(e) : undefined); + } else { + obj.denom_owners = message.denomOwners; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomOwnersResponseAminoMsg): QueryDenomOwnersResponse { + return QueryDenomOwnersResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomOwnersResponse", + value: QueryDenomOwnersResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomOwnersResponseProtoMsg): QueryDenomOwnersResponse { + return QueryDenomOwnersResponse.decode(message.value); + }, + toProto(message: QueryDenomOwnersResponse): Uint8Array { + return QueryDenomOwnersResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", + value: QueryDenomOwnersResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/tx.amino.ts b/packages/api/src/cosmos/bank/v1beta1/tx.amino.ts new file mode 100644 index 00000000..340a07fc --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/tx.amino.ts @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgSend, MsgMultiSend } from "./tx"; +export const AminoConverter = { + "/cosmos.bank.v1beta1.MsgSend": { + aminoType: "cosmos-sdk/MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/cosmos.bank.v1beta1.MsgMultiSend": { + aminoType: "cosmos-sdk/MsgMultiSend", + toAmino: MsgMultiSend.toAmino, + fromAmino: MsgMultiSend.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/tx.registry.ts b/packages/api/src/cosmos/bank/v1beta1/tx.registry.ts new file mode 100644 index 00000000..716f9d0d --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/tx.registry.ts @@ -0,0 +1,53 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSend, MsgMultiSend } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + send(value: MsgSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + multiSend(value: MsgMultiSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.encode(value).finish() + }; + } + }, + withTypeUrl: { + send(value: MsgSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value + }; + }, + multiSend(value: MsgMultiSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value + }; + } + }, + fromPartial: { + send(value: MsgSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + multiSend(value: MsgMultiSend) { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/bank/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..31fc997d --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,29 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** Send defines a method for sending coins from one account to another account. */ + send(request: MsgSend): Promise; + /** MultiSend defines a method for sending coins from some accounts to other accounts. */ + multiSend(request: MsgMultiSend): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.send = this.send.bind(this); + this.multiSend = this.multiSend.bind(this); + } + send(request: MsgSend): Promise { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + multiSend(request: MsgMultiSend): Promise { + const data = MsgMultiSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); + return promise.then(data => MsgMultiSendResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/bank/v1beta1/tx.ts b/packages/api/src/cosmos/bank/v1beta1/tx.ts new file mode 100644 index 00000000..6349f1de --- /dev/null +++ b/packages/api/src/cosmos/bank/v1beta1/tx.ts @@ -0,0 +1,373 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSend { + fromAddress: string; + toAddress: string; + amount: Coin[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgSend"; + value: Uint8Array; +} +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSendAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; +} +export interface MsgSendAminoMsg { + type: "cosmos-sdk/MsgSend"; + value: MsgSendAmino; +} +/** MsgSend represents a message to send coins from one account to another. */ +export interface MsgSendSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponse {} +export interface MsgSendResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponseAmino {} +export interface MsgSendResponseAminoMsg { + type: "cosmos-sdk/MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse defines the Msg/Send response type. */ +export interface MsgSendResponseSDKType {} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSend { + inputs: Input[]; + outputs: Output[]; +} +export interface MsgMultiSendProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; + value: Uint8Array; +} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSendAmino { + inputs?: InputAmino[]; + outputs?: OutputAmino[]; +} +export interface MsgMultiSendAminoMsg { + type: "cosmos-sdk/MsgMultiSend"; + value: MsgMultiSendAmino; +} +/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ +export interface MsgMultiSendSDKType { + inputs: InputSDKType[]; + outputs: OutputSDKType[]; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponse {} +export interface MsgMultiSendResponseProtoMsg { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; + value: Uint8Array; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponseAmino {} +export interface MsgMultiSendResponseAminoMsg { + type: "cosmos-sdk/MsgMultiSendResponse"; + value: MsgMultiSendResponseAmino; +} +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export interface MsgMultiSendResponseSDKType {} +function createBaseMsgSend(): MsgSend { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +export const MsgSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSend { + const message = createBaseMsgSend(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgSendAmino): MsgSend { + const message = createBaseMsgSend(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgSend): MsgSendAmino { + const obj: any = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgSendAminoMsg): MsgSend { + return MsgSend.fromAmino(object.value); + }, + toAminoMsg(message: MsgSend): MsgSendAminoMsg { + return { + type: "cosmos-sdk/MsgSend", + value: MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSendProtoMsg): MsgSend { + return MsgSend.decode(message.value); + }, + toProto(message: MsgSend): Uint8Array { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message: MsgSend): MsgSendProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse(): MsgSendResponse { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_: MsgSendResponseAmino): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_: MsgSendResponse): MsgSendResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { + return MsgSendResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSendResponse", + value: MsgSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { + return MsgSendResponse.decode(message.value); + }, + toProto(message: MsgSendResponse): Uint8Array { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSend(): MsgMultiSend { + return { + inputs: [], + outputs: [] + }; +} +export const MsgMultiSend = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + encode(message: MsgMultiSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.inputs) { + Input.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.outputs) { + Output.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs.push(Input.decode(reader, reader.uint32())); + break; + case 2: + message.outputs.push(Output.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgMultiSend { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => Input.fromPartial(e)) || []; + message.outputs = object.outputs?.map(e => Output.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgMultiSendAmino): MsgMultiSend { + const message = createBaseMsgMultiSend(); + message.inputs = object.inputs?.map(e => Input.fromAmino(e)) || []; + message.outputs = object.outputs?.map(e => Output.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgMultiSend): MsgMultiSendAmino { + const obj: any = {}; + if (message.inputs) { + obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined); + } else { + obj.inputs = message.inputs; + } + if (message.outputs) { + obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined); + } else { + obj.outputs = message.outputs; + } + return obj; + }, + fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend { + return MsgMultiSend.fromAmino(object.value); + }, + toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg { + return { + type: "cosmos-sdk/MsgMultiSend", + value: MsgMultiSend.toAmino(message) + }; + }, + fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend { + return MsgMultiSend.decode(message.value); + }, + toProto(message: MsgMultiSend): Uint8Array { + return MsgMultiSend.encode(message).finish(); + }, + toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", + value: MsgMultiSend.encode(message).finish() + }; + } +}; +function createBaseMsgMultiSendResponse(): MsgMultiSendResponse { + return {}; +} +export const MsgMultiSendResponse = { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + encode(_: MsgMultiSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMultiSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgMultiSendResponse { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse { + const message = createBaseMsgMultiSendResponse(); + return message; + }, + toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse { + return MsgMultiSendResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg { + return { + type: "cosmos-sdk/MsgMultiSendResponse", + value: MsgMultiSendResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse { + return MsgMultiSendResponse.decode(message.value); + }, + toProto(message: MsgMultiSendResponse): Uint8Array { + return MsgMultiSendResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg { + return { + typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", + value: MsgMultiSendResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/abci/v1beta1/abci.ts b/packages/api/src/cosmos/base/abci/v1beta1/abci.ts new file mode 100644 index 00000000..0c8944f4 --- /dev/null +++ b/packages/api/src/cosmos/base/abci/v1beta1/abci.ts @@ -0,0 +1,1518 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponse { + /** The block height */ + height: bigint; + /** The transaction hash. */ + txhash: string; + /** Namespace for the Code */ + codespace: string; + /** Response code. */ + code: number; + /** Result bytes, if any. */ + data: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + rawLog: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs: ABCIMessageLog[]; + /** Additional information. May be non-deterministic. */ + info: string; + /** Amount of gas requested for transaction. */ + gasWanted: bigint; + /** Amount of gas consumed by transaction. */ + gasUsed: bigint; + /** The request transaction bytes. */ + tx?: Any; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp: string; + /** + * Events defines all the events emitted by processing a transaction. Note, + * these events include those emitted by processing all the messages and those + * emitted from the ante. Whereas Logs contains the events, with + * additional metadata, emitted only by processing the messages. + * + * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + */ + events: Event[]; +} +export interface TxResponseProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; + value: Uint8Array; +} +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponseAmino { + /** The block height */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** Response code. */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: ABCIMessageLogAmino[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** Amount of gas requested for transaction. */ + gas_wanted?: string; + /** Amount of gas consumed by transaction. */ + gas_used?: string; + /** The request transaction bytes. */ + tx?: AnyAmino; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + /** + * Events defines all the events emitted by processing a transaction. Note, + * these events include those emitted by processing all the messages and those + * emitted from the ante. Whereas Logs contains the events, with + * additional metadata, emitted only by processing the messages. + * + * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + */ + events?: EventAmino[]; +} +export interface TxResponseAminoMsg { + type: "cosmos-sdk/TxResponse"; + value: TxResponseAmino; +} +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface TxResponseSDKType { + height: bigint; + txhash: string; + codespace: string; + code: number; + data: string; + raw_log: string; + logs: ABCIMessageLogSDKType[]; + info: string; + gas_wanted: bigint; + gas_used: bigint; + tx?: AnySDKType; + timestamp: string; + events: EventSDKType[]; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLog { + msgIndex: number; + log: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events: StringEvent[]; +} +export interface ABCIMessageLogProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; + value: Uint8Array; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLogAmino { + msg_index: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: StringEventAmino[]; +} +export interface ABCIMessageLogAminoMsg { + type: "cosmos-sdk/ABCIMessageLog"; + value: ABCIMessageLogAmino; +} +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface ABCIMessageLogSDKType { + msg_index: number; + log: string; + events: StringEventSDKType[]; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEvent { + type: string; + attributes: Attribute[]; +} +export interface StringEventProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; + value: Uint8Array; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEventAmino { + type?: string; + attributes?: AttributeAmino[]; +} +export interface StringEventAminoMsg { + type: "cosmos-sdk/StringEvent"; + value: StringEventAmino; +} +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface StringEventSDKType { + type: string; + attributes: AttributeSDKType[]; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface Attribute { + key: string; + value: string; +} +export interface AttributeProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; + value: Uint8Array; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface AttributeAmino { + key?: string; + value?: string; +} +export interface AttributeAminoMsg { + type: "cosmos-sdk/Attribute"; + value: AttributeAmino; +} +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface AttributeSDKType { + key: string; + value: string; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfo { + /** GasWanted is the maximum units of work we allow this tx to perform. */ + gasWanted: bigint; + /** GasUsed is the amount of gas actually consumed. */ + gasUsed: bigint; +} +export interface GasInfoProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; + value: Uint8Array; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfoAmino { + /** GasWanted is the maximum units of work we allow this tx to perform. */ + gas_wanted?: string; + /** GasUsed is the amount of gas actually consumed. */ + gas_used?: string; +} +export interface GasInfoAminoMsg { + type: "cosmos-sdk/GasInfo"; + value: GasInfoAmino; +} +/** GasInfo defines tx execution gas context. */ +export interface GasInfoSDKType { + gas_wanted: bigint; + gas_used: bigint; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface Result { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * Deprecated. This field is still populated, but prefer msg_response instead + * because it also contains the Msg response typeURL. + */ + /** @deprecated */ + data: Uint8Array; + /** Log contains the log information from message or handler execution. */ + log: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events: Event[]; + /** + * msg_responses contains the Msg handler responses type packed in Anys. + * + * Since: cosmos-sdk 0.46 + */ + msgResponses: Any[]; +} +export interface ResultProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.Result"; + value: Uint8Array; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface ResultAmino { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * Deprecated. This field is still populated, but prefer msg_response instead + * because it also contains the Msg response typeURL. + */ + /** @deprecated */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: EventAmino[]; + /** + * msg_responses contains the Msg handler responses type packed in Anys. + * + * Since: cosmos-sdk 0.46 + */ + msg_responses?: AnyAmino[]; +} +export interface ResultAminoMsg { + type: "cosmos-sdk/Result"; + value: ResultAmino; +} +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface ResultSDKType { + /** @deprecated */ + data: Uint8Array; + log: string; + events: EventSDKType[]; + msg_responses: AnySDKType[]; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponse { + gasInfo: GasInfo; + result?: Result; +} +export interface SimulationResponseProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; + value: Uint8Array; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponseAmino { + gas_info?: GasInfoAmino; + result?: ResultAmino; +} +export interface SimulationResponseAminoMsg { + type: "cosmos-sdk/SimulationResponse"; + value: SimulationResponseAmino; +} +/** + * SimulationResponse defines the response generated when a transaction is + * successfully simulated. + */ +export interface SimulationResponseSDKType { + gas_info: GasInfoSDKType; + result?: ResultSDKType; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgData { + msgType: string; + data: Uint8Array; +} +export interface MsgDataProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; + value: Uint8Array; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgDataAmino { + msg_type?: string; + data?: string; +} +export interface MsgDataAminoMsg { + type: "cosmos-sdk/MsgData"; + value: MsgDataAmino; +} +/** + * MsgData defines the data returned in a Result object during message + * execution. + */ +/** @deprecated */ +export interface MsgDataSDKType { + msg_type: string; + data: Uint8Array; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgData { + /** data field is deprecated and not populated. */ + /** @deprecated */ + data: MsgData[]; + /** + * msg_responses contains the Msg handler responses packed into Anys. + * + * Since: cosmos-sdk 0.46 + */ + msgResponses: Any[]; +} +export interface TxMsgDataProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; + value: Uint8Array; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgDataAmino { + /** data field is deprecated and not populated. */ + /** @deprecated */ + data?: MsgDataAmino[]; + /** + * msg_responses contains the Msg handler responses packed into Anys. + * + * Since: cosmos-sdk 0.46 + */ + msg_responses?: AnyAmino[]; +} +export interface TxMsgDataAminoMsg { + type: "cosmos-sdk/TxMsgData"; + value: TxMsgDataAmino; +} +/** + * TxMsgData defines a list of MsgData. A transaction will have a MsgData object + * for each message. + */ +export interface TxMsgDataSDKType { + /** @deprecated */ + data: MsgDataSDKType[]; + msg_responses: AnySDKType[]; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResult { + /** Count of all txs */ + totalCount: bigint; + /** Count of txs in current page */ + count: bigint; + /** Index of current page, start from 1 */ + pageNumber: bigint; + /** Count of total pages */ + pageTotal: bigint; + /** Max count txs per page */ + limit: bigint; + /** List of txs in current page */ + txs: TxResponse[]; +} +export interface SearchTxsResultProtoMsg { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; + value: Uint8Array; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResultAmino { + /** Count of all txs */ + total_count?: string; + /** Count of txs in current page */ + count?: string; + /** Index of current page, start from 1 */ + page_number?: string; + /** Count of total pages */ + page_total?: string; + /** Max count txs per page */ + limit?: string; + /** List of txs in current page */ + txs?: TxResponseAmino[]; +} +export interface SearchTxsResultAminoMsg { + type: "cosmos-sdk/SearchTxsResult"; + value: SearchTxsResultAmino; +} +/** SearchTxsResult defines a structure for querying txs pageable */ +export interface SearchTxsResultSDKType { + total_count: bigint; + count: bigint; + page_number: bigint; + page_total: bigint; + limit: bigint; + txs: TxResponseSDKType[]; +} +function createBaseTxResponse(): TxResponse { + return { + height: BigInt(0), + txhash: "", + codespace: "", + code: 0, + data: "", + rawLog: "", + logs: [], + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + tx: undefined, + timestamp: "", + events: [] + }; +} +export const TxResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + encode(message: TxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.txhash !== "") { + writer.uint32(18).string(message.txhash); + } + if (message.codespace !== "") { + writer.uint32(26).string(message.codespace); + } + if (message.code !== 0) { + writer.uint32(32).uint32(message.code); + } + if (message.data !== "") { + writer.uint32(42).string(message.data); + } + if (message.rawLog !== "") { + writer.uint32(50).string(message.rawLog); + } + for (const v of message.logs) { + ABCIMessageLog.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.info !== "") { + writer.uint32(66).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(72).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(80).int64(message.gasUsed); + } + if (message.tx !== undefined) { + Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); + } + if (message.timestamp !== "") { + writer.uint32(98).string(message.timestamp); + } + for (const v of message.events) { + Event.encode(v!, writer.uint32(106).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.txhash = reader.string(); + break; + case 3: + message.codespace = reader.string(); + break; + case 4: + message.code = reader.uint32(); + break; + case 5: + message.data = reader.string(); + break; + case 6: + message.rawLog = reader.string(); + break; + case 7: + message.logs.push(ABCIMessageLog.decode(reader, reader.uint32())); + break; + case 8: + message.info = reader.string(); + break; + case 9: + message.gasWanted = reader.int64(); + break; + case 10: + message.gasUsed = reader.int64(); + break; + case 11: + message.tx = Any.decode(reader, reader.uint32()); + break; + case 12: + message.timestamp = reader.string(); + break; + case 13: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxResponse { + const message = createBaseTxResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.txhash = object.txhash ?? ""; + message.codespace = object.codespace ?? ""; + message.code = object.code ?? 0; + message.data = object.data ?? ""; + message.rawLog = object.rawLog ?? ""; + message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || []; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined; + message.timestamp = object.timestamp ?? ""; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object: TxResponseAmino): TxResponse { + const message = createBaseTxResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.txhash !== undefined && object.txhash !== null) { + message.txhash = object.txhash; + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.raw_log !== undefined && object.raw_log !== null) { + message.rawLog = object.raw_log; + } + message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || []; + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = Any.fromAmino(object.tx); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = object.timestamp; + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message: TxResponse): TxResponseAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.txhash = message.txhash === "" ? undefined : message.txhash; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data === "" ? undefined : message.data; + obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; + if (message.logs) { + obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined); + } else { + obj.logs = message.logs; + } + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + obj.tx = message.tx ? Any.toAmino(message.tx) : undefined; + obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object: TxResponseAminoMsg): TxResponse { + return TxResponse.fromAmino(object.value); + }, + toAminoMsg(message: TxResponse): TxResponseAminoMsg { + return { + type: "cosmos-sdk/TxResponse", + value: TxResponse.toAmino(message) + }; + }, + fromProtoMsg(message: TxResponseProtoMsg): TxResponse { + return TxResponse.decode(message.value); + }, + toProto(message: TxResponse): Uint8Array { + return TxResponse.encode(message).finish(); + }, + toProtoMsg(message: TxResponse): TxResponseProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", + value: TxResponse.encode(message).finish() + }; + } +}; +function createBaseABCIMessageLog(): ABCIMessageLog { + return { + msgIndex: 0, + log: "", + events: [] + }; +} +export const ABCIMessageLog = { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + encode(message: ABCIMessageLog, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msgIndex !== 0) { + writer.uint32(8).uint32(message.msgIndex); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + StringEvent.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseABCIMessageLog(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgIndex = reader.uint32(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(StringEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ABCIMessageLog { + const message = createBaseABCIMessageLog(); + message.msgIndex = object.msgIndex ?? 0; + message.log = object.log ?? ""; + message.events = object.events?.map(e => StringEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog { + const message = createBaseABCIMessageLog(); + if (object.msg_index !== undefined && object.msg_index !== null) { + message.msgIndex = object.msg_index; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => StringEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message: ABCIMessageLog): ABCIMessageLogAmino { + const obj: any = {}; + obj.msg_index = message.msgIndex ?? 0; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog { + return ABCIMessageLog.fromAmino(object.value); + }, + toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg { + return { + type: "cosmos-sdk/ABCIMessageLog", + value: ABCIMessageLog.toAmino(message) + }; + }, + fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog { + return ABCIMessageLog.decode(message.value); + }, + toProto(message: ABCIMessageLog): Uint8Array { + return ABCIMessageLog.encode(message).finish(); + }, + toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", + value: ABCIMessageLog.encode(message).finish() + }; + } +}; +function createBaseStringEvent(): StringEvent { + return { + type: "", + attributes: [] + }; +} +export const StringEvent = { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + encode(message: StringEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + Attribute.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): StringEvent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStringEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(Attribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): StringEvent { + const message = createBaseStringEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object: StringEventAmino): StringEvent { + const message = createBaseStringEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || []; + return message; + }, + toAmino(message: StringEvent): StringEventAmino { + const obj: any = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined); + } else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object: StringEventAminoMsg): StringEvent { + return StringEvent.fromAmino(object.value); + }, + toAminoMsg(message: StringEvent): StringEventAminoMsg { + return { + type: "cosmos-sdk/StringEvent", + value: StringEvent.toAmino(message) + }; + }, + fromProtoMsg(message: StringEventProtoMsg): StringEvent { + return StringEvent.decode(message.value); + }, + toProto(message: StringEvent): Uint8Array { + return StringEvent.encode(message).finish(); + }, + toProtoMsg(message: StringEvent): StringEventProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", + value: StringEvent.encode(message).finish() + }; + } +}; +function createBaseAttribute(): Attribute { + return { + key: "", + value: "" + }; +} +export const Attribute = { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Attribute { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Attribute { + const message = createBaseAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object: AttributeAmino): Attribute { + const message = createBaseAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message: Attribute): AttributeAmino { + const obj: any = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object: AttributeAminoMsg): Attribute { + return Attribute.fromAmino(object.value); + }, + toAminoMsg(message: Attribute): AttributeAminoMsg { + return { + type: "cosmos-sdk/Attribute", + value: Attribute.toAmino(message) + }; + }, + fromProtoMsg(message: AttributeProtoMsg): Attribute { + return Attribute.decode(message.value); + }, + toProto(message: Attribute): Uint8Array { + return Attribute.encode(message).finish(); + }, + toProtoMsg(message: Attribute): AttributeProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Attribute", + value: Attribute.encode(message).finish() + }; + } +}; +function createBaseGasInfo(): GasInfo { + return { + gasWanted: BigInt(0), + gasUsed: BigInt(0) + }; +} +export const GasInfo = { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + encode(message: GasInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.gasWanted !== BigInt(0)) { + writer.uint32(8).uint64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(16).uint64(message.gasUsed); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GasInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGasInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasWanted = reader.uint64(); + break; + case 2: + message.gasUsed = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GasInfo { + const message = createBaseGasInfo(); + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + return message; + }, + fromAmino(object: GasInfoAmino): GasInfo { + const message = createBaseGasInfo(); + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + return message; + }, + toAmino(message: GasInfo): GasInfoAmino { + const obj: any = {}; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + return obj; + }, + fromAminoMsg(object: GasInfoAminoMsg): GasInfo { + return GasInfo.fromAmino(object.value); + }, + toAminoMsg(message: GasInfo): GasInfoAminoMsg { + return { + type: "cosmos-sdk/GasInfo", + value: GasInfo.toAmino(message) + }; + }, + fromProtoMsg(message: GasInfoProtoMsg): GasInfo { + return GasInfo.decode(message.value); + }, + toProto(message: GasInfo): Uint8Array { + return GasInfo.encode(message).finish(); + }, + toProtoMsg(message: GasInfo): GasInfoProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", + value: GasInfo.encode(message).finish() + }; + } +}; +function createBaseResult(): Result { + return { + data: new Uint8Array(), + log: "", + events: [], + msgResponses: [] + }; +} +export const Result = { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + encode(message: Result, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(18).string(message.log); + } + for (const v of message.events) { + Event.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.msgResponses) { + Any.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Result { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.log = reader.string(); + break; + case 3: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 4: + message.msgResponses.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Result { + const message = createBaseResult(); + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ResultAmino): Result { + const message = createBaseResult(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: Result): ResultAmino { + const obj: any = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object: ResultAminoMsg): Result { + return Result.fromAmino(object.value); + }, + toAminoMsg(message: Result): ResultAminoMsg { + return { + type: "cosmos-sdk/Result", + value: Result.toAmino(message) + }; + }, + fromProtoMsg(message: ResultProtoMsg): Result { + return Result.decode(message.value); + }, + toProto(message: Result): Uint8Array { + return Result.encode(message).finish(); + }, + toProtoMsg(message: Result): ResultProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.Result", + value: Result.encode(message).finish() + }; + } +}; +function createBaseSimulationResponse(): SimulationResponse { + return { + gasInfo: GasInfo.fromPartial({}), + result: undefined + }; +} +export const SimulationResponse = { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + encode(message: SimulationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.gasInfo !== undefined) { + GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SimulationResponse { + const message = createBaseSimulationResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object: SimulationResponseAmino): SimulationResponse { + const message = createBaseSimulationResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = Result.fromAmino(object.result); + } + return message; + }, + toAmino(message: SimulationResponse): SimulationResponseAmino { + const obj: any = {}; + obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse { + return SimulationResponse.fromAmino(object.value); + }, + toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg { + return { + type: "cosmos-sdk/SimulationResponse", + value: SimulationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse { + return SimulationResponse.decode(message.value); + }, + toProto(message: SimulationResponse): Uint8Array { + return SimulationResponse.encode(message).finish(); + }, + toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", + value: SimulationResponse.encode(message).finish() + }; + } +}; +function createBaseMsgData(): MsgData { + return { + msgType: "", + data: new Uint8Array() + }; +} +export const MsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + encode(message: MsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msgType !== "") { + writer.uint32(10).string(message.msgType); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgType = reader.string(); + break; + case 2: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgData { + const message = createBaseMsgData(); + message.msgType = object.msgType ?? ""; + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object: MsgDataAmino): MsgData { + const message = createBaseMsgData(); + if (object.msg_type !== undefined && object.msg_type !== null) { + message.msgType = object.msg_type; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + return message; + }, + toAmino(message: MsgData): MsgDataAmino { + const obj: any = {}; + obj.msg_type = message.msgType === "" ? undefined : message.msgType; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + return obj; + }, + fromAminoMsg(object: MsgDataAminoMsg): MsgData { + return MsgData.fromAmino(object.value); + }, + toAminoMsg(message: MsgData): MsgDataAminoMsg { + return { + type: "cosmos-sdk/MsgData", + value: MsgData.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDataProtoMsg): MsgData { + return MsgData.decode(message.value); + }, + toProto(message: MsgData): Uint8Array { + return MsgData.encode(message).finish(); + }, + toProtoMsg(message: MsgData): MsgDataProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.MsgData", + value: MsgData.encode(message).finish() + }; + } +}; +function createBaseTxMsgData(): TxMsgData { + return { + data: [], + msgResponses: [] + }; +} +export const TxMsgData = { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + encode(message: TxMsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.data) { + MsgData.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.msgResponses) { + Any.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxMsgData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data.push(MsgData.decode(reader, reader.uint32())); + break; + case 2: + message.msgResponses.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxMsgData { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => MsgData.fromPartial(e)) || []; + message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: TxMsgDataAmino): TxMsgData { + const message = createBaseTxMsgData(); + message.data = object.data?.map(e => MsgData.fromAmino(e)) || []; + message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: TxMsgData): TxMsgDataAmino { + const obj: any = {}; + if (message.data) { + obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined); + } else { + obj.data = message.data; + } + if (message.msgResponses) { + obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.msg_responses = message.msgResponses; + } + return obj; + }, + fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData { + return TxMsgData.fromAmino(object.value); + }, + toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg { + return { + type: "cosmos-sdk/TxMsgData", + value: TxMsgData.toAmino(message) + }; + }, + fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData { + return TxMsgData.decode(message.value); + }, + toProto(message: TxMsgData): Uint8Array { + return TxMsgData.encode(message).finish(); + }, + toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", + value: TxMsgData.encode(message).finish() + }; + } +}; +function createBaseSearchTxsResult(): SearchTxsResult { + return { + totalCount: BigInt(0), + count: BigInt(0), + pageNumber: BigInt(0), + pageTotal: BigInt(0), + limit: BigInt(0), + txs: [] + }; +} +export const SearchTxsResult = { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + encode(message: SearchTxsResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.totalCount !== BigInt(0)) { + writer.uint32(8).uint64(message.totalCount); + } + if (message.count !== BigInt(0)) { + writer.uint32(16).uint64(message.count); + } + if (message.pageNumber !== BigInt(0)) { + writer.uint32(24).uint64(message.pageNumber); + } + if (message.pageTotal !== BigInt(0)) { + writer.uint32(32).uint64(message.pageTotal); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + for (const v of message.txs) { + TxResponse.encode(v!, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSearchTxsResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.totalCount = reader.uint64(); + break; + case 2: + message.count = reader.uint64(); + break; + case 3: + message.pageNumber = reader.uint64(); + break; + case 4: + message.pageTotal = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + case 6: + message.txs.push(TxResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SearchTxsResult { + const message = createBaseSearchTxsResult(); + message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); + message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); + message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); + message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SearchTxsResultAmino): SearchTxsResult { + const message = createBaseSearchTxsResult(); + if (object.total_count !== undefined && object.total_count !== null) { + message.totalCount = BigInt(object.total_count); + } + if (object.count !== undefined && object.count !== null) { + message.count = BigInt(object.count); + } + if (object.page_number !== undefined && object.page_number !== null) { + message.pageNumber = BigInt(object.page_number); + } + if (object.page_total !== undefined && object.page_total !== null) { + message.pageTotal = BigInt(object.page_total); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message: SearchTxsResult): SearchTxsResultAmino { + const obj: any = {}; + obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; + obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; + obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; + obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined); + } else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult { + return SearchTxsResult.fromAmino(object.value); + }, + toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg { + return { + type: "cosmos-sdk/SearchTxsResult", + value: SearchTxsResult.toAmino(message) + }; + }, + fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult { + return SearchTxsResult.decode(message.value); + }, + toProto(message: SearchTxsResult): Uint8Array { + return SearchTxsResult.encode(message).finish(); + }, + toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg { + return { + typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", + value: SearchTxsResult.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/node/v1beta1/query.lcd.ts b/packages/api/src/cosmos/base/node/v1beta1/query.lcd.ts new file mode 100644 index 00000000..3e7b6a5f --- /dev/null +++ b/packages/api/src/cosmos/base/node/v1beta1/query.lcd.ts @@ -0,0 +1,19 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +import { ConfigRequest, ConfigResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.config = this.config.bind(this); + } + /* Config queries for the operator configuration. */ + async config(_params: ConfigRequest = {}): Promise { + const endpoint = `cosmos/base/node/v1beta1/config`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/base/node/v1beta1/query.rpc.Service.ts b/packages/api/src/cosmos/base/node/v1beta1/query.rpc.Service.ts new file mode 100644 index 00000000..db6c9533 --- /dev/null +++ b/packages/api/src/cosmos/base/node/v1beta1/query.rpc.Service.ts @@ -0,0 +1,31 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { ConfigRequest, ConfigResponse } from "./query"; +/** Service defines the gRPC querier service for node related queries. */ +export interface Service { + /** Config queries for the operator configuration. */ + config(request?: ConfigRequest): Promise; +} +export class ServiceClientImpl implements Service { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.config = this.config.bind(this); + } + config(request: ConfigRequest = {}): Promise { + const data = ConfigRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); + return promise.then(data => ConfigResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new ServiceClientImpl(rpc); + return { + config(request?: ConfigRequest): Promise { + return queryService.config(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/node/v1beta1/query.ts b/packages/api/src/cosmos/base/node/v1beta1/query.ts new file mode 100644 index 00000000..31aafa61 --- /dev/null +++ b/packages/api/src/cosmos/base/node/v1beta1/query.ts @@ -0,0 +1,161 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequest {} +export interface ConfigRequestProtoMsg { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest"; + value: Uint8Array; +} +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequestAmino {} +export interface ConfigRequestAminoMsg { + type: "cosmos-sdk/ConfigRequest"; + value: ConfigRequestAmino; +} +/** ConfigRequest defines the request structure for the Config gRPC query. */ +export interface ConfigRequestSDKType {} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponse { + minimumGasPrice: string; +} +export interface ConfigResponseProtoMsg { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse"; + value: Uint8Array; +} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponseAmino { + minimum_gas_price?: string; +} +export interface ConfigResponseAminoMsg { + type: "cosmos-sdk/ConfigResponse"; + value: ConfigResponseAmino; +} +/** ConfigResponse defines the response structure for the Config gRPC query. */ +export interface ConfigResponseSDKType { + minimum_gas_price: string; +} +function createBaseConfigRequest(): ConfigRequest { + return {}; +} +export const ConfigRequest = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + encode(_: ConfigRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): ConfigRequest { + const message = createBaseConfigRequest(); + return message; + }, + fromAmino(_: ConfigRequestAmino): ConfigRequest { + const message = createBaseConfigRequest(); + return message; + }, + toAmino(_: ConfigRequest): ConfigRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ConfigRequestAminoMsg): ConfigRequest { + return ConfigRequest.fromAmino(object.value); + }, + toAminoMsg(message: ConfigRequest): ConfigRequestAminoMsg { + return { + type: "cosmos-sdk/ConfigRequest", + value: ConfigRequest.toAmino(message) + }; + }, + fromProtoMsg(message: ConfigRequestProtoMsg): ConfigRequest { + return ConfigRequest.decode(message.value); + }, + toProto(message: ConfigRequest): Uint8Array { + return ConfigRequest.encode(message).finish(); + }, + toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", + value: ConfigRequest.encode(message).finish() + }; + } +}; +function createBaseConfigResponse(): ConfigResponse { + return { + minimumGasPrice: "" + }; +} +export const ConfigResponse = { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + encode(message: ConfigResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.minimumGasPrice !== "") { + writer.uint32(10).string(message.minimumGasPrice); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minimumGasPrice = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConfigResponse { + const message = createBaseConfigResponse(); + message.minimumGasPrice = object.minimumGasPrice ?? ""; + return message; + }, + fromAmino(object: ConfigResponseAmino): ConfigResponse { + const message = createBaseConfigResponse(); + if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { + message.minimumGasPrice = object.minimum_gas_price; + } + return message; + }, + toAmino(message: ConfigResponse): ConfigResponseAmino { + const obj: any = {}; + obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; + return obj; + }, + fromAminoMsg(object: ConfigResponseAminoMsg): ConfigResponse { + return ConfigResponse.fromAmino(object.value); + }, + toAminoMsg(message: ConfigResponse): ConfigResponseAminoMsg { + return { + type: "cosmos-sdk/ConfigResponse", + value: ConfigResponse.toAmino(message) + }; + }, + fromProtoMsg(message: ConfigResponseProtoMsg): ConfigResponse { + return ConfigResponse.decode(message.value); + }, + toProto(message: ConfigResponse): Uint8Array { + return ConfigResponse.encode(message).finish(); + }, + toProtoMsg(message: ConfigResponse): ConfigResponseProtoMsg { + return { + typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", + value: ConfigResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/query/v1beta1/pagination.ts b/packages/api/src/cosmos/base/query/v1beta1/pagination.ts new file mode 100644 index 00000000..7428fe06 --- /dev/null +++ b/packages/api/src/cosmos/base/query/v1beta1/pagination.ts @@ -0,0 +1,372 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequest { + /** + * 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. + */ + key: Uint8Array; + /** + * 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. + */ + offset: bigint; + /** + * 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. + */ + limit: bigint; + /** + * 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. + */ + countTotal: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * + * Since: cosmos-sdk 0.43 + */ + reverse: boolean; +} +export interface PageRequestProtoMsg { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; + value: Uint8Array; +} +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequestAmino { + /** + * 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. + */ + key?: string; + /** + * 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. + */ + offset?: string; + /** + * 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. + */ + limit?: string; + /** + * 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. + */ + count_total?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * + * Since: cosmos-sdk 0.43 + */ + reverse?: boolean; +} +export interface PageRequestAminoMsg { + type: "cosmos-sdk/PageRequest"; + value: PageRequestAmino; +} +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface PageRequestSDKType { + key: Uint8Array; + offset: bigint; + limit: bigint; + count_total: boolean; + reverse: boolean; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponse { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently. It will be empty if + * there are no more results. + */ + nextKey: Uint8Array; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + */ + total: bigint; +} +export interface PageResponseProtoMsg { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; + value: Uint8Array; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponseAmino { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently. It will be empty if + * there are no more results. + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + */ + total?: string; +} +export interface PageResponseAminoMsg { + type: "cosmos-sdk/PageResponse"; + value: PageResponseAmino; +} +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface PageResponseSDKType { + next_key: Uint8Array; + total: bigint; +} +function createBasePageRequest(): PageRequest { + return { + key: new Uint8Array(), + offset: BigInt(0), + limit: BigInt(0), + countTotal: false, + reverse: false + }; +} +export const PageRequest = { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + encode(message: PageRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.offset !== BigInt(0)) { + writer.uint32(16).uint64(message.offset); + } + if (message.limit !== BigInt(0)) { + writer.uint32(24).uint64(message.limit); + } + if (message.countTotal === true) { + writer.uint32(32).bool(message.countTotal); + } + if (message.reverse === true) { + writer.uint32(40).bool(message.reverse); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PageRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.offset = reader.uint64(); + break; + case 3: + message.limit = reader.uint64(); + break; + case 4: + message.countTotal = reader.bool(); + break; + case 5: + message.reverse = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PageRequest { + const message = createBasePageRequest(); + message.key = object.key ?? new Uint8Array(); + message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + message.countTotal = object.countTotal ?? false; + message.reverse = object.reverse ?? false; + return message; + }, + fromAmino(object: PageRequestAmino): PageRequest { + const message = createBasePageRequest(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.offset !== undefined && object.offset !== null) { + message.offset = BigInt(object.offset); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + if (object.count_total !== undefined && object.count_total !== null) { + message.countTotal = object.count_total; + } + if (object.reverse !== undefined && object.reverse !== null) { + message.reverse = object.reverse; + } + return message; + }, + toAmino(message: PageRequest): PageRequestAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + obj.count_total = message.countTotal === false ? undefined : message.countTotal; + obj.reverse = message.reverse === false ? undefined : message.reverse; + return obj; + }, + fromAminoMsg(object: PageRequestAminoMsg): PageRequest { + return PageRequest.fromAmino(object.value); + }, + toAminoMsg(message: PageRequest): PageRequestAminoMsg { + return { + type: "cosmos-sdk/PageRequest", + value: PageRequest.toAmino(message) + }; + }, + fromProtoMsg(message: PageRequestProtoMsg): PageRequest { + return PageRequest.decode(message.value); + }, + toProto(message: PageRequest): Uint8Array { + return PageRequest.encode(message).finish(); + }, + toProtoMsg(message: PageRequest): PageRequestProtoMsg { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageRequest", + value: PageRequest.encode(message).finish() + }; + } +}; +function createBasePageResponse(): PageResponse { + return { + nextKey: new Uint8Array(), + total: BigInt(0) + }; +} +export const PageResponse = { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + encode(message: PageResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.nextKey.length !== 0) { + writer.uint32(10).bytes(message.nextKey); + } + if (message.total !== BigInt(0)) { + writer.uint32(16).uint64(message.total); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PageResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePageResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nextKey = reader.bytes(); + break; + case 2: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PageResponse { + const message = createBasePageResponse(); + message.nextKey = object.nextKey ?? new Uint8Array(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object: PageResponseAmino): PageResponse { + const message = createBasePageResponse(); + if (object.next_key !== undefined && object.next_key !== null) { + message.nextKey = bytesFromBase64(object.next_key); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message: PageResponse): PageResponseAmino { + const obj: any = {}; + obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object: PageResponseAminoMsg): PageResponse { + return PageResponse.fromAmino(object.value); + }, + toAminoMsg(message: PageResponse): PageResponseAminoMsg { + return { + type: "cosmos-sdk/PageResponse", + value: PageResponse.toAmino(message) + }; + }, + fromProtoMsg(message: PageResponseProtoMsg): PageResponse { + return PageResponse.decode(message.value); + }, + toProto(message: PageResponse): Uint8Array { + return PageResponse.encode(message).finish(); + }, + toProtoMsg(message: PageResponse): PageResponseProtoMsg { + return { + typeUrl: "/cosmos.base.query.v1beta1.PageResponse", + value: PageResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/reflection/v2alpha1/reflection.ts b/packages/api/src/cosmos/base/reflection/v2alpha1/reflection.ts new file mode 100644 index 00000000..85b1d03e --- /dev/null +++ b/packages/api/src/cosmos/base/reflection/v2alpha1/reflection.ts @@ -0,0 +1,2614 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptor { + /** + * AuthnDescriptor provides information on how to authenticate transactions on the application + * NOTE: experimental and subject to change in future releases. + */ + authn?: AuthnDescriptor; + /** chain provides the chain descriptor */ + chain?: ChainDescriptor; + /** codec provides metadata information regarding codec related types */ + codec?: CodecDescriptor; + /** configuration provides metadata information regarding the sdk.Config type */ + configuration?: ConfigurationDescriptor; + /** query_services provides metadata information regarding the available queriable endpoints */ + queryServices?: QueryServicesDescriptor; + /** tx provides metadata information regarding how to send transactions to the given application */ + tx?: TxDescriptor; +} +export interface AppDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; + value: Uint8Array; +} +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptorAmino { + /** + * AuthnDescriptor provides information on how to authenticate transactions on the application + * NOTE: experimental and subject to change in future releases. + */ + authn?: AuthnDescriptorAmino; + /** chain provides the chain descriptor */ + chain?: ChainDescriptorAmino; + /** codec provides metadata information regarding codec related types */ + codec?: CodecDescriptorAmino; + /** configuration provides metadata information regarding the sdk.Config type */ + configuration?: ConfigurationDescriptorAmino; + /** query_services provides metadata information regarding the available queriable endpoints */ + query_services?: QueryServicesDescriptorAmino; + /** tx provides metadata information regarding how to send transactions to the given application */ + tx?: TxDescriptorAmino; +} +export interface AppDescriptorAminoMsg { + type: "cosmos-sdk/AppDescriptor"; + value: AppDescriptorAmino; +} +/** AppDescriptor describes a cosmos-sdk based application */ +export interface AppDescriptorSDKType { + authn?: AuthnDescriptorSDKType; + chain?: ChainDescriptorSDKType; + codec?: CodecDescriptorSDKType; + configuration?: ConfigurationDescriptorSDKType; + query_services?: QueryServicesDescriptorSDKType; + tx?: TxDescriptorSDKType; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptor { + /** + * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + * it is not meant to support polymorphism of transaction types, it is supposed to be used by + * reflection clients to understand if they can handle a specific transaction type in an application. + */ + fullname: string; + /** msgs lists the accepted application messages (sdk.Msg) */ + msgs: MsgDescriptor[]; +} +export interface TxDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; + value: Uint8Array; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptorAmino { + /** + * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + * it is not meant to support polymorphism of transaction types, it is supposed to be used by + * reflection clients to understand if they can handle a specific transaction type in an application. + */ + fullname?: string; + /** msgs lists the accepted application messages (sdk.Msg) */ + msgs?: MsgDescriptorAmino[]; +} +export interface TxDescriptorAminoMsg { + type: "cosmos-sdk/TxDescriptor"; + value: TxDescriptorAmino; +} +/** TxDescriptor describes the accepted transaction type */ +export interface TxDescriptorSDKType { + fullname: string; + msgs: MsgDescriptorSDKType[]; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptor { + /** sign_modes defines the supported signature algorithm */ + signModes: SigningModeDescriptor[]; +} +export interface AuthnDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; + value: Uint8Array; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptorAmino { + /** sign_modes defines the supported signature algorithm */ + sign_modes?: SigningModeDescriptorAmino[]; +} +export interface AuthnDescriptorAminoMsg { + type: "cosmos-sdk/AuthnDescriptor"; + value: AuthnDescriptorAmino; +} +/** + * AuthnDescriptor provides information on how to sign transactions without relying + * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures + */ +export interface AuthnDescriptorSDKType { + sign_modes: SigningModeDescriptorSDKType[]; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptor { + /** name defines the unique name of the signing mode */ + name: string; + /** number is the unique int32 identifier for the sign_mode enum */ + number: number; + /** + * authn_info_provider_method_fullname defines the fullname of the method to call to get + * the metadata required to authenticate using the provided sign_modes + */ + authnInfoProviderMethodFullname: string; +} +export interface SigningModeDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; + value: Uint8Array; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptorAmino { + /** name defines the unique name of the signing mode */ + name?: string; + /** number is the unique int32 identifier for the sign_mode enum */ + number?: number; + /** + * authn_info_provider_method_fullname defines the fullname of the method to call to get + * the metadata required to authenticate using the provided sign_modes + */ + authn_info_provider_method_fullname?: string; +} +export interface SigningModeDescriptorAminoMsg { + type: "cosmos-sdk/SigningModeDescriptor"; + value: SigningModeDescriptorAmino; +} +/** + * SigningModeDescriptor provides information on a signing flow of the application + * NOTE(fdymylja): here we could go as far as providing an entire flow on how + * to sign a message given a SigningModeDescriptor, but it's better to think about + * this another time + */ +export interface SigningModeDescriptorSDKType { + name: string; + number: number; + authn_info_provider_method_fullname: string; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptor { + /** id is the chain id */ + id: string; +} +export interface ChainDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; + value: Uint8Array; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptorAmino { + /** id is the chain id */ + id?: string; +} +export interface ChainDescriptorAminoMsg { + type: "cosmos-sdk/ChainDescriptor"; + value: ChainDescriptorAmino; +} +/** ChainDescriptor describes chain information of the application */ +export interface ChainDescriptorSDKType { + id: string; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptor { + /** interfaces is a list of the registerted interfaces descriptors */ + interfaces: InterfaceDescriptor[]; +} +export interface CodecDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; + value: Uint8Array; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptorAmino { + /** interfaces is a list of the registerted interfaces descriptors */ + interfaces?: InterfaceDescriptorAmino[]; +} +export interface CodecDescriptorAminoMsg { + type: "cosmos-sdk/CodecDescriptor"; + value: CodecDescriptorAmino; +} +/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ +export interface CodecDescriptorSDKType { + interfaces: InterfaceDescriptorSDKType[]; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptor { + /** fullname is the name of the interface */ + fullname: string; + /** + * interface_accepting_messages contains information regarding the proto messages which contain the interface as + * google.protobuf.Any field + */ + interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; + /** interface_implementers is a list of the descriptors of the interface implementers */ + interfaceImplementers: InterfaceImplementerDescriptor[]; +} +export interface InterfaceDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; + value: Uint8Array; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptorAmino { + /** fullname is the name of the interface */ + fullname?: string; + /** + * interface_accepting_messages contains information regarding the proto messages which contain the interface as + * google.protobuf.Any field + */ + interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; + /** interface_implementers is a list of the descriptors of the interface implementers */ + interface_implementers?: InterfaceImplementerDescriptorAmino[]; +} +export interface InterfaceDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceDescriptor"; + value: InterfaceDescriptorAmino; +} +/** InterfaceDescriptor describes the implementation of an interface */ +export interface InterfaceDescriptorSDKType { + fullname: string; + interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; + interface_implementers: InterfaceImplementerDescriptorSDKType[]; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptor { + /** fullname is the protobuf queryable name of the interface implementer */ + fullname: string; + /** + * type_url defines the type URL used when marshalling the type as any + * this is required so we can provide type safe google.protobuf.Any marshalling and + * unmarshalling, making sure that we don't accept just 'any' type + * in our interface fields + */ + typeUrl: string; +} +export interface InterfaceImplementerDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; + value: Uint8Array; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptorAmino { + /** fullname is the protobuf queryable name of the interface implementer */ + fullname?: string; + /** + * type_url defines the type URL used when marshalling the type as any + * this is required so we can provide type safe google.protobuf.Any marshalling and + * unmarshalling, making sure that we don't accept just 'any' type + * in our interface fields + */ + type_url?: string; +} +export interface InterfaceImplementerDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceImplementerDescriptor"; + value: InterfaceImplementerDescriptorAmino; +} +/** InterfaceImplementerDescriptor describes an interface implementer */ +export interface InterfaceImplementerDescriptorSDKType { + fullname: string; + type_url: string; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptor { + /** fullname is the protobuf fullname of the type containing the interface */ + fullname: string; + /** + * field_descriptor_names is a list of the protobuf name (not fullname) of the field + * which contains the interface as google.protobuf.Any (the interface is the same, but + * it can be in multiple fields of the same proto message) + */ + fieldDescriptorNames: string[]; +} +export interface InterfaceAcceptingMessageDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; + value: Uint8Array; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptorAmino { + /** fullname is the protobuf fullname of the type containing the interface */ + fullname?: string; + /** + * field_descriptor_names is a list of the protobuf name (not fullname) of the field + * which contains the interface as google.protobuf.Any (the interface is the same, but + * it can be in multiple fields of the same proto message) + */ + field_descriptor_names?: string[]; +} +export interface InterfaceAcceptingMessageDescriptorAminoMsg { + type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; + value: InterfaceAcceptingMessageDescriptorAmino; +} +/** + * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains + * an interface represented as a google.protobuf.Any + */ +export interface InterfaceAcceptingMessageDescriptorSDKType { + fullname: string; + field_descriptor_names: string[]; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptor { + /** bech32_account_address_prefix is the account address prefix */ + bech32AccountAddressPrefix: string; +} +export interface ConfigurationDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; + value: Uint8Array; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptorAmino { + /** bech32_account_address_prefix is the account address prefix */ + bech32_account_address_prefix?: string; +} +export interface ConfigurationDescriptorAminoMsg { + type: "cosmos-sdk/ConfigurationDescriptor"; + value: ConfigurationDescriptorAmino; +} +/** ConfigurationDescriptor contains metadata information on the sdk.Config */ +export interface ConfigurationDescriptorSDKType { + bech32_account_address_prefix: string; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptor { + /** msg_type_url contains the TypeURL of a sdk.Msg. */ + msgTypeUrl: string; +} +export interface MsgDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; + value: Uint8Array; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptorAmino { + /** msg_type_url contains the TypeURL of a sdk.Msg. */ + msg_type_url?: string; +} +export interface MsgDescriptorAminoMsg { + type: "cosmos-sdk/MsgDescriptor"; + value: MsgDescriptorAmino; +} +/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ +export interface MsgDescriptorSDKType { + msg_type_url: string; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequest {} +export interface GetAuthnDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; + value: Uint8Array; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequestAmino {} +export interface GetAuthnDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetAuthnDescriptorRequest"; + value: GetAuthnDescriptorRequestAmino; +} +/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorRequestSDKType {} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponse { + /** authn describes how to authenticate to the application when sending transactions */ + authn?: AuthnDescriptor; +} +export interface GetAuthnDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; + value: Uint8Array; +} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponseAmino { + /** authn describes how to authenticate to the application when sending transactions */ + authn?: AuthnDescriptorAmino; +} +export interface GetAuthnDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetAuthnDescriptorResponse"; + value: GetAuthnDescriptorResponseAmino; +} +/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ +export interface GetAuthnDescriptorResponseSDKType { + authn?: AuthnDescriptorSDKType; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequest {} +export interface GetChainDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; + value: Uint8Array; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequestAmino {} +export interface GetChainDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetChainDescriptorRequest"; + value: GetChainDescriptorRequestAmino; +} +/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ +export interface GetChainDescriptorRequestSDKType {} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponse { + /** chain describes application chain information */ + chain?: ChainDescriptor; +} +export interface GetChainDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; + value: Uint8Array; +} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponseAmino { + /** chain describes application chain information */ + chain?: ChainDescriptorAmino; +} +export interface GetChainDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetChainDescriptorResponse"; + value: GetChainDescriptorResponseAmino; +} +/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ +export interface GetChainDescriptorResponseSDKType { + chain?: ChainDescriptorSDKType; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequest {} +export interface GetCodecDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; + value: Uint8Array; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequestAmino {} +export interface GetCodecDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetCodecDescriptorRequest"; + value: GetCodecDescriptorRequestAmino; +} +/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorRequestSDKType {} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponse { + /** codec describes the application codec such as registered interfaces and implementations */ + codec?: CodecDescriptor; +} +export interface GetCodecDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; + value: Uint8Array; +} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponseAmino { + /** codec describes the application codec such as registered interfaces and implementations */ + codec?: CodecDescriptorAmino; +} +export interface GetCodecDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetCodecDescriptorResponse"; + value: GetCodecDescriptorResponseAmino; +} +/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ +export interface GetCodecDescriptorResponseSDKType { + codec?: CodecDescriptorSDKType; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequest {} +export interface GetConfigurationDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; + value: Uint8Array; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequestAmino {} +export interface GetConfigurationDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetConfigurationDescriptorRequest"; + value: GetConfigurationDescriptorRequestAmino; +} +/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorRequestSDKType {} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponse { + /** config describes the application's sdk.Config */ + config?: ConfigurationDescriptor; +} +export interface GetConfigurationDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; + value: Uint8Array; +} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponseAmino { + /** config describes the application's sdk.Config */ + config?: ConfigurationDescriptorAmino; +} +export interface GetConfigurationDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetConfigurationDescriptorResponse"; + value: GetConfigurationDescriptorResponseAmino; +} +/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ +export interface GetConfigurationDescriptorResponseSDKType { + config?: ConfigurationDescriptorSDKType; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequest {} +export interface GetQueryServicesDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; + value: Uint8Array; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequestAmino {} +export interface GetQueryServicesDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; + value: GetQueryServicesDescriptorRequestAmino; +} +/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorRequestSDKType {} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponse { + /** queries provides information on the available queryable services */ + queries?: QueryServicesDescriptor; +} +export interface GetQueryServicesDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; + value: Uint8Array; +} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponseAmino { + /** queries provides information on the available queryable services */ + queries?: QueryServicesDescriptorAmino; +} +export interface GetQueryServicesDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; + value: GetQueryServicesDescriptorResponseAmino; +} +/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ +export interface GetQueryServicesDescriptorResponseSDKType { + queries?: QueryServicesDescriptorSDKType; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequest {} +export interface GetTxDescriptorRequestProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; + value: Uint8Array; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequestAmino {} +export interface GetTxDescriptorRequestAminoMsg { + type: "cosmos-sdk/GetTxDescriptorRequest"; + value: GetTxDescriptorRequestAmino; +} +/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ +export interface GetTxDescriptorRequestSDKType {} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponse { + /** + * tx provides information on msgs that can be forwarded to the application + * alongside the accepted transaction protobuf type + */ + tx?: TxDescriptor; +} +export interface GetTxDescriptorResponseProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; + value: Uint8Array; +} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponseAmino { + /** + * tx provides information on msgs that can be forwarded to the application + * alongside the accepted transaction protobuf type + */ + tx?: TxDescriptorAmino; +} +export interface GetTxDescriptorResponseAminoMsg { + type: "cosmos-sdk/GetTxDescriptorResponse"; + value: GetTxDescriptorResponseAmino; +} +/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ +export interface GetTxDescriptorResponseSDKType { + tx?: TxDescriptorSDKType; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptor { + /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ + queryServices: QueryServiceDescriptor[]; +} +export interface QueryServicesDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; + value: Uint8Array; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptorAmino { + /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ + query_services?: QueryServiceDescriptorAmino[]; +} +export interface QueryServicesDescriptorAminoMsg { + type: "cosmos-sdk/QueryServicesDescriptor"; + value: QueryServicesDescriptorAmino; +} +/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ +export interface QueryServicesDescriptorSDKType { + query_services: QueryServiceDescriptorSDKType[]; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptor { + /** fullname is the protobuf fullname of the service descriptor */ + fullname: string; + /** is_module describes if this service is actually exposed by an application's module */ + isModule: boolean; + /** methods provides a list of query service methods */ + methods: QueryMethodDescriptor[]; +} +export interface QueryServiceDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; + value: Uint8Array; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptorAmino { + /** fullname is the protobuf fullname of the service descriptor */ + fullname?: string; + /** is_module describes if this service is actually exposed by an application's module */ + is_module?: boolean; + /** methods provides a list of query service methods */ + methods?: QueryMethodDescriptorAmino[]; +} +export interface QueryServiceDescriptorAminoMsg { + type: "cosmos-sdk/QueryServiceDescriptor"; + value: QueryServiceDescriptorAmino; +} +/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ +export interface QueryServiceDescriptorSDKType { + fullname: string; + is_module: boolean; + methods: QueryMethodDescriptorSDKType[]; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptor { + /** name is the protobuf name (not fullname) of the method */ + name: string; + /** + * full_query_path is the path that can be used to query + * this method via tendermint abci.Query + */ + fullQueryPath: string; +} +export interface QueryMethodDescriptorProtoMsg { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; + value: Uint8Array; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptorAmino { + /** name is the protobuf name (not fullname) of the method */ + name?: string; + /** + * full_query_path is the path that can be used to query + * this method via tendermint abci.Query + */ + full_query_path?: string; +} +export interface QueryMethodDescriptorAminoMsg { + type: "cosmos-sdk/QueryMethodDescriptor"; + value: QueryMethodDescriptorAmino; +} +/** + * QueryMethodDescriptor describes a queryable method of a query service + * no other info is provided beside method name and tendermint queryable path + * because it would be redundant with the grpc reflection service + */ +export interface QueryMethodDescriptorSDKType { + name: string; + full_query_path: string; +} +function createBaseAppDescriptor(): AppDescriptor { + return { + authn: undefined, + chain: undefined, + codec: undefined, + configuration: undefined, + queryServices: undefined, + tx: undefined + }; +} +export const AppDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + encode(message: AppDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authn !== undefined) { + AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + if (message.chain !== undefined) { + ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); + } + if (message.codec !== undefined) { + CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); + } + if (message.configuration !== undefined) { + ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); + } + if (message.queryServices !== undefined) { + QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); + } + if (message.tx !== undefined) { + TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAppDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = AuthnDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.chain = ChainDescriptor.decode(reader, reader.uint32()); + break; + case 3: + message.codec = CodecDescriptor.decode(reader, reader.uint32()); + break; + case 4: + message.configuration = ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + case 5: + message.queryServices = QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + case 6: + message.tx = TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AppDescriptor { + const message = createBaseAppDescriptor(); + message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; + message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; + message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; + message.configuration = object.configuration !== undefined && object.configuration !== null ? ConfigurationDescriptor.fromPartial(object.configuration) : undefined; + message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; + message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object: AppDescriptorAmino): AppDescriptor { + const message = createBaseAppDescriptor(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = AuthnDescriptor.fromAmino(object.authn); + } + if (object.chain !== undefined && object.chain !== null) { + message.chain = ChainDescriptor.fromAmino(object.chain); + } + if (object.codec !== undefined && object.codec !== null) { + message.codec = CodecDescriptor.fromAmino(object.codec); + } + if (object.configuration !== undefined && object.configuration !== null) { + message.configuration = ConfigurationDescriptor.fromAmino(object.configuration); + } + if (object.query_services !== undefined && object.query_services !== null) { + message.queryServices = QueryServicesDescriptor.fromAmino(object.query_services); + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message: AppDescriptor): AppDescriptorAmino { + const obj: any = {}; + obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; + obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; + obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; + obj.configuration = message.configuration ? ConfigurationDescriptor.toAmino(message.configuration) : undefined; + obj.query_services = message.queryServices ? QueryServicesDescriptor.toAmino(message.queryServices) : undefined; + obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object: AppDescriptorAminoMsg): AppDescriptor { + return AppDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: AppDescriptor): AppDescriptorAminoMsg { + return { + type: "cosmos-sdk/AppDescriptor", + value: AppDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: AppDescriptorProtoMsg): AppDescriptor { + return AppDescriptor.decode(message.value); + }, + toProto(message: AppDescriptor): Uint8Array { + return AppDescriptor.encode(message).finish(); + }, + toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", + value: AppDescriptor.encode(message).finish() + }; + } +}; +function createBaseTxDescriptor(): TxDescriptor { + return { + fullname: "", + msgs: [] + }; +} +export const TxDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + encode(message: TxDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.msgs) { + MsgDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.msgs.push(MsgDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxDescriptor { + const message = createBaseTxDescriptor(); + message.fullname = object.fullname ?? ""; + message.msgs = object.msgs?.map(e => MsgDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: TxDescriptorAmino): TxDescriptor { + const message = createBaseTxDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.msgs = object.msgs?.map(e => MsgDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: TxDescriptor): TxDescriptorAmino { + const obj: any = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.msgs) { + obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toAmino(e) : undefined); + } else { + obj.msgs = message.msgs; + } + return obj; + }, + fromAminoMsg(object: TxDescriptorAminoMsg): TxDescriptor { + return TxDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: TxDescriptor): TxDescriptorAminoMsg { + return { + type: "cosmos-sdk/TxDescriptor", + value: TxDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: TxDescriptorProtoMsg): TxDescriptor { + return TxDescriptor.decode(message.value); + }, + toProto(message: TxDescriptor): Uint8Array { + return TxDescriptor.encode(message).finish(); + }, + toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", + value: TxDescriptor.encode(message).finish() + }; + } +}; +function createBaseAuthnDescriptor(): AuthnDescriptor { + return { + signModes: [] + }; +} +export const AuthnDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + encode(message: AuthnDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.signModes) { + SigningModeDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthnDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signModes.push(SigningModeDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AuthnDescriptor { + const message = createBaseAuthnDescriptor(); + message.signModes = object.signModes?.map(e => SigningModeDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: AuthnDescriptorAmino): AuthnDescriptor { + const message = createBaseAuthnDescriptor(); + message.signModes = object.sign_modes?.map(e => SigningModeDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: AuthnDescriptor): AuthnDescriptorAmino { + const obj: any = {}; + if (message.signModes) { + obj.sign_modes = message.signModes.map(e => e ? SigningModeDescriptor.toAmino(e) : undefined); + } else { + obj.sign_modes = message.signModes; + } + return obj; + }, + fromAminoMsg(object: AuthnDescriptorAminoMsg): AuthnDescriptor { + return AuthnDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: AuthnDescriptor): AuthnDescriptorAminoMsg { + return { + type: "cosmos-sdk/AuthnDescriptor", + value: AuthnDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: AuthnDescriptorProtoMsg): AuthnDescriptor { + return AuthnDescriptor.decode(message.value); + }, + toProto(message: AuthnDescriptor): Uint8Array { + return AuthnDescriptor.encode(message).finish(); + }, + toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", + value: AuthnDescriptor.encode(message).finish() + }; + } +}; +function createBaseSigningModeDescriptor(): SigningModeDescriptor { + return { + name: "", + number: 0, + authnInfoProviderMethodFullname: "" + }; +} +export const SigningModeDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + encode(message: SigningModeDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.authnInfoProviderMethodFullname !== "") { + writer.uint32(26).string(message.authnInfoProviderMethodFullname); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSigningModeDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.authnInfoProviderMethodFullname = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SigningModeDescriptor { + const message = createBaseSigningModeDescriptor(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; + return message; + }, + fromAmino(object: SigningModeDescriptorAmino): SigningModeDescriptor { + const message = createBaseSigningModeDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { + message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; + } + return message; + }, + toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; + return obj; + }, + fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor { + return SigningModeDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: SigningModeDescriptor): SigningModeDescriptorAminoMsg { + return { + type: "cosmos-sdk/SigningModeDescriptor", + value: SigningModeDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: SigningModeDescriptorProtoMsg): SigningModeDescriptor { + return SigningModeDescriptor.decode(message.value); + }, + toProto(message: SigningModeDescriptor): Uint8Array { + return SigningModeDescriptor.encode(message).finish(); + }, + toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", + value: SigningModeDescriptor.encode(message).finish() + }; + } +}; +function createBaseChainDescriptor(): ChainDescriptor { + return { + id: "" + }; +} +export const ChainDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + encode(message: ChainDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChainDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ChainDescriptor { + const message = createBaseChainDescriptor(); + message.id = object.id ?? ""; + return message; + }, + fromAmino(object: ChainDescriptorAmino): ChainDescriptor { + const message = createBaseChainDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message: ChainDescriptor): ChainDescriptorAmino { + const obj: any = {}; + obj.id = message.id === "" ? undefined : message.id; + return obj; + }, + fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor { + return ChainDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: ChainDescriptor): ChainDescriptorAminoMsg { + return { + type: "cosmos-sdk/ChainDescriptor", + value: ChainDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: ChainDescriptorProtoMsg): ChainDescriptor { + return ChainDescriptor.decode(message.value); + }, + toProto(message: ChainDescriptor): Uint8Array { + return ChainDescriptor.encode(message).finish(); + }, + toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", + value: ChainDescriptor.encode(message).finish() + }; + } +}; +function createBaseCodecDescriptor(): CodecDescriptor { + return { + interfaces: [] + }; +} +export const CodecDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + encode(message: CodecDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.interfaces) { + InterfaceDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCodecDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interfaces.push(InterfaceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CodecDescriptor { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: CodecDescriptorAmino): CodecDescriptor { + const message = createBaseCodecDescriptor(); + message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: CodecDescriptor): CodecDescriptorAmino { + const obj: any = {}; + if (message.interfaces) { + obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toAmino(e) : undefined); + } else { + obj.interfaces = message.interfaces; + } + return obj; + }, + fromAminoMsg(object: CodecDescriptorAminoMsg): CodecDescriptor { + return CodecDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: CodecDescriptor): CodecDescriptorAminoMsg { + return { + type: "cosmos-sdk/CodecDescriptor", + value: CodecDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: CodecDescriptorProtoMsg): CodecDescriptor { + return CodecDescriptor.decode(message.value); + }, + toProto(message: CodecDescriptor): Uint8Array { + return CodecDescriptor.encode(message).finish(); + }, + toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", + value: CodecDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceDescriptor(): InterfaceDescriptor { + return { + fullname: "", + interfaceAcceptingMessages: [], + interfaceImplementers: [] + }; +} +export const InterfaceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + encode(message: InterfaceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.interfaceAcceptingMessages) { + InterfaceAcceptingMessageDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.interfaceImplementers) { + InterfaceImplementerDescriptor.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.interfaceAcceptingMessages.push(InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.interfaceImplementers.push(InterfaceImplementerDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): InterfaceDescriptor { + const message = createBaseInterfaceDescriptor(); + message.fullname = object.fullname ?? ""; + message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; + message.interfaceImplementers = object.interfaceImplementers?.map(e => InterfaceImplementerDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor { + const message = createBaseInterfaceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; + message.interfaceImplementers = object.interface_implementers?.map(e => InterfaceImplementerDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { + const obj: any = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.interfaceAcceptingMessages) { + obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); + } else { + obj.interface_accepting_messages = message.interfaceAcceptingMessages; + } + if (message.interfaceImplementers) { + obj.interface_implementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toAmino(e) : undefined); + } else { + obj.interface_implementers = message.interfaceImplementers; + } + return obj; + }, + fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor { + return InterfaceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: InterfaceDescriptor): InterfaceDescriptorAminoMsg { + return { + type: "cosmos-sdk/InterfaceDescriptor", + value: InterfaceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor { + return InterfaceDescriptor.decode(message.value); + }, + toProto(message: InterfaceDescriptor): Uint8Array { + return InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", + value: InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceImplementerDescriptor(): InterfaceImplementerDescriptor { + return { + fullname: "", + typeUrl: "" + }; +} +export const InterfaceImplementerDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + encode(message: InterfaceImplementerDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.typeUrl !== "") { + writer.uint32(18).string(message.typeUrl); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceImplementerDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.typeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): InterfaceImplementerDescriptor { + const message = createBaseInterfaceImplementerDescriptor(); + message.fullname = object.fullname ?? ""; + message.typeUrl = object.typeUrl ?? ""; + return message; + }, + fromAmino(object: InterfaceImplementerDescriptorAmino): InterfaceImplementerDescriptor { + const message = createBaseInterfaceImplementerDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.type_url !== undefined && object.type_url !== null) { + message.typeUrl = object.type_url; + } + return message; + }, + toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino { + const obj: any = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; + return obj; + }, + fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor { + return InterfaceImplementerDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAminoMsg { + return { + type: "cosmos-sdk/InterfaceImplementerDescriptor", + value: InterfaceImplementerDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: InterfaceImplementerDescriptorProtoMsg): InterfaceImplementerDescriptor { + return InterfaceImplementerDescriptor.decode(message.value); + }, + toProto(message: InterfaceImplementerDescriptor): Uint8Array { + return InterfaceImplementerDescriptor.encode(message).finish(); + }, + toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", + value: InterfaceImplementerDescriptor.encode(message).finish() + }; + } +}; +function createBaseInterfaceAcceptingMessageDescriptor(): InterfaceAcceptingMessageDescriptor { + return { + fullname: "", + fieldDescriptorNames: [] + }; +} +export const InterfaceAcceptingMessageDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + encode(message: InterfaceAcceptingMessageDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + for (const v of message.fieldDescriptorNames) { + writer.uint32(18).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceAcceptingMessageDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.fieldDescriptorNames.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + message.fullname = object.fullname ?? ""; + message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; + return message; + }, + fromAmino(object: InterfaceAcceptingMessageDescriptorAmino): InterfaceAcceptingMessageDescriptor { + const message = createBaseInterfaceAcceptingMessageDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; + return message; + }, + toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino { + const obj: any = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + if (message.fieldDescriptorNames) { + obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); + } else { + obj.field_descriptor_names = message.fieldDescriptorNames; + } + return obj; + }, + fromAminoMsg(object: InterfaceAcceptingMessageDescriptorAminoMsg): InterfaceAcceptingMessageDescriptor { + return InterfaceAcceptingMessageDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAminoMsg { + return { + type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", + value: InterfaceAcceptingMessageDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: InterfaceAcceptingMessageDescriptorProtoMsg): InterfaceAcceptingMessageDescriptor { + return InterfaceAcceptingMessageDescriptor.decode(message.value); + }, + toProto(message: InterfaceAcceptingMessageDescriptor): Uint8Array { + return InterfaceAcceptingMessageDescriptor.encode(message).finish(); + }, + toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", + value: InterfaceAcceptingMessageDescriptor.encode(message).finish() + }; + } +}; +function createBaseConfigurationDescriptor(): ConfigurationDescriptor { + return { + bech32AccountAddressPrefix: "" + }; +} +export const ConfigurationDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + encode(message: ConfigurationDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bech32AccountAddressPrefix !== "") { + writer.uint32(10).string(message.bech32AccountAddressPrefix); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConfigurationDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32AccountAddressPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConfigurationDescriptor { + const message = createBaseConfigurationDescriptor(); + message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; + return message; + }, + fromAmino(object: ConfigurationDescriptorAmino): ConfigurationDescriptor { + const message = createBaseConfigurationDescriptor(); + if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { + message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; + } + return message; + }, + toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino { + const obj: any = {}; + obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; + return obj; + }, + fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor { + return ConfigurationDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorAminoMsg { + return { + type: "cosmos-sdk/ConfigurationDescriptor", + value: ConfigurationDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: ConfigurationDescriptorProtoMsg): ConfigurationDescriptor { + return ConfigurationDescriptor.decode(message.value); + }, + toProto(message: ConfigurationDescriptor): Uint8Array { + return ConfigurationDescriptor.encode(message).finish(); + }, + toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", + value: ConfigurationDescriptor.encode(message).finish() + }; + } +}; +function createBaseMsgDescriptor(): MsgDescriptor { + return { + msgTypeUrl: "" + }; +} +export const MsgDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + encode(message: MsgDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.msgTypeUrl !== "") { + writer.uint32(10).string(message.msgTypeUrl); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.msgTypeUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDescriptor { + const message = createBaseMsgDescriptor(); + message.msgTypeUrl = object.msgTypeUrl ?? ""; + return message; + }, + fromAmino(object: MsgDescriptorAmino): MsgDescriptor { + const message = createBaseMsgDescriptor(); + if (object.msg_type_url !== undefined && object.msg_type_url !== null) { + message.msgTypeUrl = object.msg_type_url; + } + return message; + }, + toAmino(message: MsgDescriptor): MsgDescriptorAmino { + const obj: any = {}; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; + return obj; + }, + fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor { + return MsgDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: MsgDescriptor): MsgDescriptorAminoMsg { + return { + type: "cosmos-sdk/MsgDescriptor", + value: MsgDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDescriptorProtoMsg): MsgDescriptor { + return MsgDescriptor.decode(message.value); + }, + toProto(message: MsgDescriptor): Uint8Array { + return MsgDescriptor.encode(message).finish(); + }, + toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", + value: MsgDescriptor.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorRequest(): GetAuthnDescriptorRequest { + return {}; +} +export const GetAuthnDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + encode(_: GetAuthnDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetAuthnDescriptorRequest { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + fromAmino(_: GetAuthnDescriptorRequestAmino): GetAuthnDescriptorRequest { + const message = createBaseGetAuthnDescriptorRequest(); + return message; + }, + toAmino(_: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetAuthnDescriptorRequestAminoMsg): GetAuthnDescriptorRequest { + return GetAuthnDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetAuthnDescriptorRequest", + value: GetAuthnDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetAuthnDescriptorRequestProtoMsg): GetAuthnDescriptorRequest { + return GetAuthnDescriptorRequest.decode(message.value); + }, + toProto(message: GetAuthnDescriptorRequest): Uint8Array { + return GetAuthnDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", + value: GetAuthnDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetAuthnDescriptorResponse(): GetAuthnDescriptorResponse { + return { + authn: undefined + }; +} +export const GetAuthnDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + encode(message: GetAuthnDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authn !== undefined) { + AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetAuthnDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authn = AuthnDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetAuthnDescriptorResponse { + const message = createBaseGetAuthnDescriptorResponse(); + message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; + return message; + }, + fromAmino(object: GetAuthnDescriptorResponseAmino): GetAuthnDescriptorResponse { + const message = createBaseGetAuthnDescriptorResponse(); + if (object.authn !== undefined && object.authn !== null) { + message.authn = AuthnDescriptor.fromAmino(object.authn); + } + return message; + }, + toAmino(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAmino { + const obj: any = {}; + obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; + return obj; + }, + fromAminoMsg(object: GetAuthnDescriptorResponseAminoMsg): GetAuthnDescriptorResponse { + return GetAuthnDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetAuthnDescriptorResponse", + value: GetAuthnDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetAuthnDescriptorResponseProtoMsg): GetAuthnDescriptorResponse { + return GetAuthnDescriptorResponse.decode(message.value); + }, + toProto(message: GetAuthnDescriptorResponse): Uint8Array { + return GetAuthnDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", + value: GetAuthnDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorRequest(): GetChainDescriptorRequest { + return {}; +} +export const GetChainDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + encode(_: GetChainDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetChainDescriptorRequest { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + fromAmino(_: GetChainDescriptorRequestAmino): GetChainDescriptorRequest { + const message = createBaseGetChainDescriptorRequest(); + return message; + }, + toAmino(_: GetChainDescriptorRequest): GetChainDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetChainDescriptorRequestAminoMsg): GetChainDescriptorRequest { + return GetChainDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetChainDescriptorRequest", + value: GetChainDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetChainDescriptorRequestProtoMsg): GetChainDescriptorRequest { + return GetChainDescriptorRequest.decode(message.value); + }, + toProto(message: GetChainDescriptorRequest): Uint8Array { + return GetChainDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", + value: GetChainDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetChainDescriptorResponse(): GetChainDescriptorResponse { + return { + chain: undefined + }; +} +export const GetChainDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + encode(message: GetChainDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.chain !== undefined) { + ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetChainDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chain = ChainDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetChainDescriptorResponse { + const message = createBaseGetChainDescriptorResponse(); + message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; + return message; + }, + fromAmino(object: GetChainDescriptorResponseAmino): GetChainDescriptorResponse { + const message = createBaseGetChainDescriptorResponse(); + if (object.chain !== undefined && object.chain !== null) { + message.chain = ChainDescriptor.fromAmino(object.chain); + } + return message; + }, + toAmino(message: GetChainDescriptorResponse): GetChainDescriptorResponseAmino { + const obj: any = {}; + obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; + return obj; + }, + fromAminoMsg(object: GetChainDescriptorResponseAminoMsg): GetChainDescriptorResponse { + return GetChainDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetChainDescriptorResponse", + value: GetChainDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetChainDescriptorResponseProtoMsg): GetChainDescriptorResponse { + return GetChainDescriptorResponse.decode(message.value); + }, + toProto(message: GetChainDescriptorResponse): Uint8Array { + return GetChainDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", + value: GetChainDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorRequest(): GetCodecDescriptorRequest { + return {}; +} +export const GetCodecDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + encode(_: GetCodecDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetCodecDescriptorRequest { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + fromAmino(_: GetCodecDescriptorRequestAmino): GetCodecDescriptorRequest { + const message = createBaseGetCodecDescriptorRequest(); + return message; + }, + toAmino(_: GetCodecDescriptorRequest): GetCodecDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetCodecDescriptorRequestAminoMsg): GetCodecDescriptorRequest { + return GetCodecDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetCodecDescriptorRequest", + value: GetCodecDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetCodecDescriptorRequestProtoMsg): GetCodecDescriptorRequest { + return GetCodecDescriptorRequest.decode(message.value); + }, + toProto(message: GetCodecDescriptorRequest): Uint8Array { + return GetCodecDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", + value: GetCodecDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetCodecDescriptorResponse(): GetCodecDescriptorResponse { + return { + codec: undefined + }; +} +export const GetCodecDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + encode(message: GetCodecDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.codec !== undefined) { + CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCodecDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.codec = CodecDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetCodecDescriptorResponse { + const message = createBaseGetCodecDescriptorResponse(); + message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; + return message; + }, + fromAmino(object: GetCodecDescriptorResponseAmino): GetCodecDescriptorResponse { + const message = createBaseGetCodecDescriptorResponse(); + if (object.codec !== undefined && object.codec !== null) { + message.codec = CodecDescriptor.fromAmino(object.codec); + } + return message; + }, + toAmino(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAmino { + const obj: any = {}; + obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; + return obj; + }, + fromAminoMsg(object: GetCodecDescriptorResponseAminoMsg): GetCodecDescriptorResponse { + return GetCodecDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetCodecDescriptorResponse", + value: GetCodecDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetCodecDescriptorResponseProtoMsg): GetCodecDescriptorResponse { + return GetCodecDescriptorResponse.decode(message.value); + }, + toProto(message: GetCodecDescriptorResponse): Uint8Array { + return GetCodecDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", + value: GetCodecDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorRequest(): GetConfigurationDescriptorRequest { + return {}; +} +export const GetConfigurationDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + encode(_: GetConfigurationDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetConfigurationDescriptorRequest { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + fromAmino(_: GetConfigurationDescriptorRequestAmino): GetConfigurationDescriptorRequest { + const message = createBaseGetConfigurationDescriptorRequest(); + return message; + }, + toAmino(_: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetConfigurationDescriptorRequestAminoMsg): GetConfigurationDescriptorRequest { + return GetConfigurationDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetConfigurationDescriptorRequest", + value: GetConfigurationDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetConfigurationDescriptorRequestProtoMsg): GetConfigurationDescriptorRequest { + return GetConfigurationDescriptorRequest.decode(message.value); + }, + toProto(message: GetConfigurationDescriptorRequest): Uint8Array { + return GetConfigurationDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", + value: GetConfigurationDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetConfigurationDescriptorResponse(): GetConfigurationDescriptorResponse { + return { + config: undefined + }; +} +export const GetConfigurationDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + encode(message: GetConfigurationDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.config !== undefined) { + ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetConfigurationDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.config = ConfigurationDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetConfigurationDescriptorResponse { + const message = createBaseGetConfigurationDescriptorResponse(); + message.config = object.config !== undefined && object.config !== null ? ConfigurationDescriptor.fromPartial(object.config) : undefined; + return message; + }, + fromAmino(object: GetConfigurationDescriptorResponseAmino): GetConfigurationDescriptorResponse { + const message = createBaseGetConfigurationDescriptorResponse(); + if (object.config !== undefined && object.config !== null) { + message.config = ConfigurationDescriptor.fromAmino(object.config); + } + return message; + }, + toAmino(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAmino { + const obj: any = {}; + obj.config = message.config ? ConfigurationDescriptor.toAmino(message.config) : undefined; + return obj; + }, + fromAminoMsg(object: GetConfigurationDescriptorResponseAminoMsg): GetConfigurationDescriptorResponse { + return GetConfigurationDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetConfigurationDescriptorResponse", + value: GetConfigurationDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetConfigurationDescriptorResponseProtoMsg): GetConfigurationDescriptorResponse { + return GetConfigurationDescriptorResponse.decode(message.value); + }, + toProto(message: GetConfigurationDescriptorResponse): Uint8Array { + return GetConfigurationDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", + value: GetConfigurationDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorRequest(): GetQueryServicesDescriptorRequest { + return {}; +} +export const GetQueryServicesDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + encode(_: GetQueryServicesDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetQueryServicesDescriptorRequest { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + fromAmino(_: GetQueryServicesDescriptorRequestAmino): GetQueryServicesDescriptorRequest { + const message = createBaseGetQueryServicesDescriptorRequest(); + return message; + }, + toAmino(_: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetQueryServicesDescriptorRequestAminoMsg): GetQueryServicesDescriptorRequest { + return GetQueryServicesDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorRequest", + value: GetQueryServicesDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetQueryServicesDescriptorRequestProtoMsg): GetQueryServicesDescriptorRequest { + return GetQueryServicesDescriptorRequest.decode(message.value); + }, + toProto(message: GetQueryServicesDescriptorRequest): Uint8Array { + return GetQueryServicesDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", + value: GetQueryServicesDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetQueryServicesDescriptorResponse(): GetQueryServicesDescriptorResponse { + return { + queries: undefined + }; +} +export const GetQueryServicesDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + encode(message: GetQueryServicesDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.queries !== undefined) { + QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQueryServicesDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queries = QueryServicesDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetQueryServicesDescriptorResponse { + const message = createBaseGetQueryServicesDescriptorResponse(); + message.queries = object.queries !== undefined && object.queries !== null ? QueryServicesDescriptor.fromPartial(object.queries) : undefined; + return message; + }, + fromAmino(object: GetQueryServicesDescriptorResponseAmino): GetQueryServicesDescriptorResponse { + const message = createBaseGetQueryServicesDescriptorResponse(); + if (object.queries !== undefined && object.queries !== null) { + message.queries = QueryServicesDescriptor.fromAmino(object.queries); + } + return message; + }, + toAmino(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAmino { + const obj: any = {}; + obj.queries = message.queries ? QueryServicesDescriptor.toAmino(message.queries) : undefined; + return obj; + }, + fromAminoMsg(object: GetQueryServicesDescriptorResponseAminoMsg): GetQueryServicesDescriptorResponse { + return GetQueryServicesDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetQueryServicesDescriptorResponse", + value: GetQueryServicesDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetQueryServicesDescriptorResponseProtoMsg): GetQueryServicesDescriptorResponse { + return GetQueryServicesDescriptorResponse.decode(message.value); + }, + toProto(message: GetQueryServicesDescriptorResponse): Uint8Array { + return GetQueryServicesDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", + value: GetQueryServicesDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorRequest(): GetTxDescriptorRequest { + return {}; +} +export const GetTxDescriptorRequest = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + encode(_: GetTxDescriptorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): GetTxDescriptorRequest { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + fromAmino(_: GetTxDescriptorRequestAmino): GetTxDescriptorRequest { + const message = createBaseGetTxDescriptorRequest(); + return message; + }, + toAmino(_: GetTxDescriptorRequest): GetTxDescriptorRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: GetTxDescriptorRequestAminoMsg): GetTxDescriptorRequest { + return GetTxDescriptorRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestAminoMsg { + return { + type: "cosmos-sdk/GetTxDescriptorRequest", + value: GetTxDescriptorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxDescriptorRequestProtoMsg): GetTxDescriptorRequest { + return GetTxDescriptorRequest.decode(message.value); + }, + toProto(message: GetTxDescriptorRequest): Uint8Array { + return GetTxDescriptorRequest.encode(message).finish(); + }, + toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", + value: GetTxDescriptorRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxDescriptorResponse(): GetTxDescriptorResponse { + return { + tx: undefined + }; +} +export const GetTxDescriptorResponse = { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + encode(message: GetTxDescriptorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tx !== undefined) { + TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxDescriptorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = TxDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetTxDescriptorResponse { + const message = createBaseGetTxDescriptorResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; + return message; + }, + fromAmino(object: GetTxDescriptorResponseAmino): GetTxDescriptorResponse { + const message = createBaseGetTxDescriptorResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = TxDescriptor.fromAmino(object.tx); + } + return message; + }, + toAmino(message: GetTxDescriptorResponse): GetTxDescriptorResponseAmino { + const obj: any = {}; + obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object: GetTxDescriptorResponseAminoMsg): GetTxDescriptorResponse { + return GetTxDescriptorResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseAminoMsg { + return { + type: "cosmos-sdk/GetTxDescriptorResponse", + value: GetTxDescriptorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxDescriptorResponseProtoMsg): GetTxDescriptorResponse { + return GetTxDescriptorResponse.decode(message.value); + }, + toProto(message: GetTxDescriptorResponse): Uint8Array { + return GetTxDescriptorResponse.encode(message).finish(); + }, + toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", + value: GetTxDescriptorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryServicesDescriptor(): QueryServicesDescriptor { + return { + queryServices: [] + }; +} +export const QueryServicesDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + encode(message: QueryServicesDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.queryServices) { + QueryServiceDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServicesDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queryServices.push(QueryServiceDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryServicesDescriptor { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.queryServices?.map(e => QueryServiceDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryServicesDescriptorAmino): QueryServicesDescriptor { + const message = createBaseQueryServicesDescriptor(); + message.queryServices = object.query_services?.map(e => QueryServiceDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryServicesDescriptor): QueryServicesDescriptorAmino { + const obj: any = {}; + if (message.queryServices) { + obj.query_services = message.queryServices.map(e => e ? QueryServiceDescriptor.toAmino(e) : undefined); + } else { + obj.query_services = message.queryServices; + } + return obj; + }, + fromAminoMsg(object: QueryServicesDescriptorAminoMsg): QueryServicesDescriptor { + return QueryServicesDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorAminoMsg { + return { + type: "cosmos-sdk/QueryServicesDescriptor", + value: QueryServicesDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: QueryServicesDescriptorProtoMsg): QueryServicesDescriptor { + return QueryServicesDescriptor.decode(message.value); + }, + toProto(message: QueryServicesDescriptor): Uint8Array { + return QueryServicesDescriptor.encode(message).finish(); + }, + toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", + value: QueryServicesDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryServiceDescriptor(): QueryServiceDescriptor { + return { + fullname: "", + isModule: false, + methods: [] + }; +} +export const QueryServiceDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + encode(message: QueryServiceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fullname !== "") { + writer.uint32(10).string(message.fullname); + } + if (message.isModule === true) { + writer.uint32(16).bool(message.isModule); + } + for (const v of message.methods) { + QueryMethodDescriptor.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryServiceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fullname = reader.string(); + break; + case 2: + message.isModule = reader.bool(); + break; + case 3: + message.methods.push(QueryMethodDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryServiceDescriptor { + const message = createBaseQueryServiceDescriptor(); + message.fullname = object.fullname ?? ""; + message.isModule = object.isModule ?? false; + message.methods = object.methods?.map(e => QueryMethodDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryServiceDescriptorAmino): QueryServiceDescriptor { + const message = createBaseQueryServiceDescriptor(); + if (object.fullname !== undefined && object.fullname !== null) { + message.fullname = object.fullname; + } + if (object.is_module !== undefined && object.is_module !== null) { + message.isModule = object.is_module; + } + message.methods = object.methods?.map(e => QueryMethodDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino { + const obj: any = {}; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.is_module = message.isModule === false ? undefined : message.isModule; + if (message.methods) { + obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toAmino(e) : undefined); + } else { + obj.methods = message.methods; + } + return obj; + }, + fromAminoMsg(object: QueryServiceDescriptorAminoMsg): QueryServiceDescriptor { + return QueryServiceDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorAminoMsg { + return { + type: "cosmos-sdk/QueryServiceDescriptor", + value: QueryServiceDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: QueryServiceDescriptorProtoMsg): QueryServiceDescriptor { + return QueryServiceDescriptor.decode(message.value); + }, + toProto(message: QueryServiceDescriptor): Uint8Array { + return QueryServiceDescriptor.encode(message).finish(); + }, + toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", + value: QueryServiceDescriptor.encode(message).finish() + }; + } +}; +function createBaseQueryMethodDescriptor(): QueryMethodDescriptor { + return { + name: "", + fullQueryPath: "" + }; +} +export const QueryMethodDescriptor = { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + encode(message: QueryMethodDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.fullQueryPath !== "") { + writer.uint32(18).string(message.fullQueryPath); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryMethodDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.fullQueryPath = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryMethodDescriptor { + const message = createBaseQueryMethodDescriptor(); + message.name = object.name ?? ""; + message.fullQueryPath = object.fullQueryPath ?? ""; + return message; + }, + fromAmino(object: QueryMethodDescriptorAmino): QueryMethodDescriptor { + const message = createBaseQueryMethodDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.full_query_path !== undefined && object.full_query_path !== null) { + message.fullQueryPath = object.full_query_path; + } + return message; + }, + toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; + return obj; + }, + fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor { + return QueryMethodDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorAminoMsg { + return { + type: "cosmos-sdk/QueryMethodDescriptor", + value: QueryMethodDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: QueryMethodDescriptorProtoMsg): QueryMethodDescriptor { + return QueryMethodDescriptor.decode(message.value); + }, + toProto(message: QueryMethodDescriptor): Uint8Array { + return QueryMethodDescriptor.encode(message).finish(); + }, + toProtoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorProtoMsg { + return { + typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", + value: QueryMethodDescriptor.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/base/v1beta1/coin.ts b/packages/api/src/cosmos/base/v1beta1/coin.ts new file mode 100644 index 00000000..60a45d97 --- /dev/null +++ b/packages/api/src/cosmos/base/v1beta1/coin.ts @@ -0,0 +1,418 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface Coin { + denom: string; + amount: string; +} +export interface CoinProtoMsg { + typeUrl: "/cosmos.base.v1beta1.Coin"; + value: Uint8Array; +} +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CoinAmino { + denom?: string; + amount?: string; +} +export interface CoinAminoMsg { + type: "cosmos-sdk/Coin"; + value: CoinAmino; +} +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CoinSDKType { + denom: string; + amount: string; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoin { + denom: string; + amount: string; +} +export interface DecCoinProtoMsg { + typeUrl: "/cosmos.base.v1beta1.DecCoin"; + value: Uint8Array; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoinAmino { + denom?: string; + amount?: string; +} +export interface DecCoinAminoMsg { + type: "cosmos-sdk/DecCoin"; + value: DecCoinAmino; +} +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface DecCoinSDKType { + denom: string; + amount: string; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProto { + int: string; +} +export interface IntProtoProtoMsg { + typeUrl: "/cosmos.base.v1beta1.IntProto"; + value: Uint8Array; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProtoAmino { + int?: string; +} +export interface IntProtoAminoMsg { + type: "cosmos-sdk/IntProto"; + value: IntProtoAmino; +} +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProtoSDKType { + int: string; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProto { + dec: string; +} +export interface DecProtoProtoMsg { + typeUrl: "/cosmos.base.v1beta1.DecProto"; + value: Uint8Array; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProtoAmino { + dec?: string; +} +export interface DecProtoAminoMsg { + type: "cosmos-sdk/DecProto"; + value: DecProtoAmino; +} +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProtoSDKType { + dec: string; +} +function createBaseCoin(): Coin { + return { + denom: "", + amount: "" + }; +} +export const Coin = { + typeUrl: "/cosmos.base.v1beta1.Coin", + encode(message: Coin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Coin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Coin { + const message = createBaseCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: CoinAmino): Coin { + const message = createBaseCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: Coin): CoinAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: CoinAminoMsg): Coin { + return Coin.fromAmino(object.value); + }, + toAminoMsg(message: Coin): CoinAminoMsg { + return { + type: "cosmos-sdk/Coin", + value: Coin.toAmino(message) + }; + }, + fromProtoMsg(message: CoinProtoMsg): Coin { + return Coin.decode(message.value); + }, + toProto(message: Coin): Uint8Array { + return Coin.encode(message).finish(); + }, + toProtoMsg(message: Coin): CoinProtoMsg { + return { + typeUrl: "/cosmos.base.v1beta1.Coin", + value: Coin.encode(message).finish() + }; + } +}; +function createBaseDecCoin(): DecCoin { + return { + denom: "", + amount: "" + }; +} +export const DecCoin = { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + encode(message: DecCoin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DecCoin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DecCoin { + const message = createBaseDecCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: DecCoinAmino): DecCoin { + const message = createBaseDecCoin(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: DecCoin): DecCoinAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: DecCoinAminoMsg): DecCoin { + return DecCoin.fromAmino(object.value); + }, + toAminoMsg(message: DecCoin): DecCoinAminoMsg { + return { + type: "cosmos-sdk/DecCoin", + value: DecCoin.toAmino(message) + }; + }, + fromProtoMsg(message: DecCoinProtoMsg): DecCoin { + return DecCoin.decode(message.value); + }, + toProto(message: DecCoin): Uint8Array { + return DecCoin.encode(message).finish(); + }, + toProtoMsg(message: DecCoin): DecCoinProtoMsg { + return { + typeUrl: "/cosmos.base.v1beta1.DecCoin", + value: DecCoin.encode(message).finish() + }; + } +}; +function createBaseIntProto(): IntProto { + return { + int: "" + }; +} +export const IntProto = { + typeUrl: "/cosmos.base.v1beta1.IntProto", + encode(message: IntProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.int !== "") { + writer.uint32(10).string(message.int); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): IntProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): IntProto { + const message = createBaseIntProto(); + message.int = object.int ?? ""; + return message; + }, + fromAmino(object: IntProtoAmino): IntProto { + const message = createBaseIntProto(); + if (object.int !== undefined && object.int !== null) { + message.int = object.int; + } + return message; + }, + toAmino(message: IntProto): IntProtoAmino { + const obj: any = {}; + obj.int = message.int === "" ? undefined : message.int; + return obj; + }, + fromAminoMsg(object: IntProtoAminoMsg): IntProto { + return IntProto.fromAmino(object.value); + }, + toAminoMsg(message: IntProto): IntProtoAminoMsg { + return { + type: "cosmos-sdk/IntProto", + value: IntProto.toAmino(message) + }; + }, + fromProtoMsg(message: IntProtoProtoMsg): IntProto { + return IntProto.decode(message.value); + }, + toProto(message: IntProto): Uint8Array { + return IntProto.encode(message).finish(); + }, + toProtoMsg(message: IntProto): IntProtoProtoMsg { + return { + typeUrl: "/cosmos.base.v1beta1.IntProto", + value: IntProto.encode(message).finish() + }; + } +}; +function createBaseDecProto(): DecProto { + return { + dec: "" + }; +} +export const DecProto = { + typeUrl: "/cosmos.base.v1beta1.DecProto", + encode(message: DecProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.dec !== "") { + writer.uint32(10).string(message.dec); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DecProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dec = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DecProto { + const message = createBaseDecProto(); + message.dec = object.dec ?? ""; + return message; + }, + fromAmino(object: DecProtoAmino): DecProto { + const message = createBaseDecProto(); + if (object.dec !== undefined && object.dec !== null) { + message.dec = object.dec; + } + return message; + }, + toAmino(message: DecProto): DecProtoAmino { + const obj: any = {}; + obj.dec = message.dec === "" ? undefined : message.dec; + return obj; + }, + fromAminoMsg(object: DecProtoAminoMsg): DecProto { + return DecProto.fromAmino(object.value); + }, + toAminoMsg(message: DecProto): DecProtoAminoMsg { + return { + type: "cosmos-sdk/DecProto", + value: DecProto.toAmino(message) + }; + }, + fromProtoMsg(message: DecProtoProtoMsg): DecProto { + return DecProto.decode(message.value); + }, + toProto(message: DecProto): Uint8Array { + return DecProto.encode(message).finish(); + }, + toProtoMsg(message: DecProto): DecProtoProtoMsg { + return { + typeUrl: "/cosmos.base.v1beta1.DecProto", + value: DecProto.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/bundle.ts b/packages/api/src/cosmos/bundle.ts new file mode 100644 index 00000000..aab1f459 --- /dev/null +++ b/packages/api/src/cosmos/bundle.ts @@ -0,0 +1,365 @@ +//@ts-nocheck +import * as _2 from "./app/module/v1alpha1/module"; +import * as _3 from "./auth/v1beta1/auth"; +import * as _4 from "./auth/v1beta1/genesis"; +import * as _5 from "./auth/v1beta1/query"; +import * as _6 from "./authz/v1beta1/authz"; +import * as _7 from "./authz/v1beta1/event"; +import * as _8 from "./authz/v1beta1/genesis"; +import * as _9 from "./authz/v1beta1/query"; +import * as _10 from "./authz/v1beta1/tx"; +import * as _11 from "./bank/v1beta1/authz"; +import * as _12 from "./bank/v1beta1/bank"; +import * as _13 from "./bank/v1beta1/genesis"; +import * as _14 from "./bank/v1beta1/query"; +import * as _15 from "./bank/v1beta1/tx"; +import * as _16 from "./base/abci/v1beta1/abci"; +import * as _17 from "./base/node/v1beta1/query"; +import * as _18 from "./base/query/v1beta1/pagination"; +import * as _19 from "./base/reflection/v2alpha1/reflection"; +import * as _20 from "./base/v1beta1/coin"; +import * as _21 from "./crypto/ed25519/keys"; +import * as _22 from "./crypto/hd/v1/hd"; +import * as _23 from "./crypto/keyring/v1/record"; +import * as _24 from "./crypto/multisig/keys"; +import * as _25 from "./crypto/secp256k1/keys"; +import * as _26 from "./crypto/secp256r1/keys"; +import * as _27 from "./distribution/v1beta1/distribution"; +import * as _28 from "./distribution/v1beta1/genesis"; +import * as _29 from "./distribution/v1beta1/query"; +import * as _30 from "./distribution/v1beta1/tx"; +import * as _31 from "./feegrant/v1beta1/feegrant"; +import * as _32 from "./feegrant/v1beta1/genesis"; +import * as _33 from "./feegrant/v1beta1/query"; +import * as _34 from "./feegrant/v1beta1/tx"; +import * as _35 from "./gov/v1/genesis"; +import * as _36 from "./gov/v1/gov"; +import * as _37 from "./gov/v1/query"; +import * as _38 from "./gov/v1/tx"; +import * as _39 from "./gov/v1beta1/genesis"; +import * as _40 from "./gov/v1beta1/gov"; +import * as _41 from "./gov/v1beta1/query"; +import * as _42 from "./gov/v1beta1/tx"; +import * as _43 from "./group/v1/events"; +import * as _44 from "./group/v1/genesis"; +import * as _45 from "./group/v1/query"; +import * as _46 from "./group/v1/tx"; +import * as _47 from "./group/v1/types"; +import * as _48 from "./mint/v1beta1/genesis"; +import * as _49 from "./mint/v1beta1/mint"; +import * as _50 from "./mint/v1beta1/query"; +import * as _51 from "./orm/module/v1alpha1/module"; +import * as _52 from "./params/v1beta1/params"; +import * as _53 from "./params/v1beta1/query"; +import * as _54 from "./staking/v1beta1/authz"; +import * as _55 from "./staking/v1beta1/genesis"; +import * as _56 from "./staking/v1beta1/query"; +import * as _57 from "./staking/v1beta1/staking"; +import * as _58 from "./staking/v1beta1/tx"; +import * as _59 from "./tx/signing/v1beta1/signing"; +import * as _60 from "./tx/v1beta1/service"; +import * as _61 from "./tx/v1beta1/tx"; +import * as _62 from "./upgrade/v1beta1/query"; +import * as _63 from "./upgrade/v1beta1/tx"; +import * as _64 from "./upgrade/v1beta1/upgrade"; +import * as _65 from "./vesting/v1beta1/tx"; +import * as _66 from "./vesting/v1beta1/vesting"; +import * as _119 from "./authz/v1beta1/tx.amino"; +import * as _120 from "./bank/v1beta1/tx.amino"; +import * as _121 from "./distribution/v1beta1/tx.amino"; +import * as _122 from "./feegrant/v1beta1/tx.amino"; +import * as _123 from "./gov/v1/tx.amino"; +import * as _124 from "./gov/v1beta1/tx.amino"; +import * as _125 from "./group/v1/tx.amino"; +import * as _126 from "./staking/v1beta1/tx.amino"; +import * as _127 from "./upgrade/v1beta1/tx.amino"; +import * as _128 from "./vesting/v1beta1/tx.amino"; +import * as _129 from "./authz/v1beta1/tx.registry"; +import * as _130 from "./bank/v1beta1/tx.registry"; +import * as _131 from "./distribution/v1beta1/tx.registry"; +import * as _132 from "./feegrant/v1beta1/tx.registry"; +import * as _133 from "./gov/v1/tx.registry"; +import * as _134 from "./gov/v1beta1/tx.registry"; +import * as _135 from "./group/v1/tx.registry"; +import * as _136 from "./staking/v1beta1/tx.registry"; +import * as _137 from "./upgrade/v1beta1/tx.registry"; +import * as _138 from "./vesting/v1beta1/tx.registry"; +import * as _139 from "./auth/v1beta1/query.lcd"; +import * as _140 from "./authz/v1beta1/query.lcd"; +import * as _141 from "./bank/v1beta1/query.lcd"; +import * as _142 from "./base/node/v1beta1/query.lcd"; +import * as _143 from "./distribution/v1beta1/query.lcd"; +import * as _144 from "./feegrant/v1beta1/query.lcd"; +import * as _145 from "./gov/v1/query.lcd"; +import * as _146 from "./gov/v1beta1/query.lcd"; +import * as _147 from "./group/v1/query.lcd"; +import * as _148 from "./mint/v1beta1/query.lcd"; +import * as _149 from "./params/v1beta1/query.lcd"; +import * as _150 from "./staking/v1beta1/query.lcd"; +import * as _151 from "./tx/v1beta1/service.lcd"; +import * as _152 from "./upgrade/v1beta1/query.lcd"; +import * as _153 from "./auth/v1beta1/query.rpc.Query"; +import * as _154 from "./authz/v1beta1/query.rpc.Query"; +import * as _155 from "./bank/v1beta1/query.rpc.Query"; +import * as _156 from "./base/node/v1beta1/query.rpc.Service"; +import * as _157 from "./distribution/v1beta1/query.rpc.Query"; +import * as _158 from "./feegrant/v1beta1/query.rpc.Query"; +import * as _159 from "./gov/v1/query.rpc.Query"; +import * as _160 from "./gov/v1beta1/query.rpc.Query"; +import * as _161 from "./group/v1/query.rpc.Query"; +import * as _162 from "./mint/v1beta1/query.rpc.Query"; +import * as _163 from "./params/v1beta1/query.rpc.Query"; +import * as _164 from "./staking/v1beta1/query.rpc.Query"; +import * as _165 from "./tx/v1beta1/service.rpc.Service"; +import * as _166 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _167 from "./authz/v1beta1/tx.rpc.msg"; +import * as _168 from "./bank/v1beta1/tx.rpc.msg"; +import * as _169 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _170 from "./feegrant/v1beta1/tx.rpc.msg"; +import * as _171 from "./gov/v1/tx.rpc.msg"; +import * as _172 from "./gov/v1beta1/tx.rpc.msg"; +import * as _173 from "./group/v1/tx.rpc.msg"; +import * as _174 from "./staking/v1beta1/tx.rpc.msg"; +import * as _175 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _176 from "./vesting/v1beta1/tx.rpc.msg"; +import * as _217 from "./lcd"; +import * as _218 from "./rpc.query"; +import * as _219 from "./rpc.tx"; +export namespace cosmos { + export namespace app { + export namespace module { + export const v1alpha1 = { + ..._2 + }; + } + } + export namespace auth { + export const v1beta1 = { + ..._3, + ..._4, + ..._5, + ..._139, + ..._153 + }; + } + export namespace authz { + export const v1beta1 = { + ..._6, + ..._7, + ..._8, + ..._9, + ..._10, + ..._119, + ..._129, + ..._140, + ..._154, + ..._167 + }; + } + export namespace bank { + export const v1beta1 = { + ..._11, + ..._12, + ..._13, + ..._14, + ..._15, + ..._120, + ..._130, + ..._141, + ..._155, + ..._168 + }; + } + export namespace base { + export namespace abci { + export const v1beta1 = { + ..._16 + }; + } + export namespace node { + export const v1beta1 = { + ..._17, + ..._142, + ..._156 + }; + } + export namespace query { + export const v1beta1 = { + ..._18 + }; + } + export namespace reflection { + export const v2alpha1 = { + ..._19 + }; + } + export const v1beta1 = { + ..._20 + }; + } + export namespace crypto { + export const ed25519 = { + ..._21 + }; + export namespace hd { + export const v1 = { + ..._22 + }; + } + export namespace keyring { + export const v1 = { + ..._23 + }; + } + export const multisig = { + ..._24 + }; + export const secp256k1 = { + ..._25 + }; + export const secp256r1 = { + ..._26 + }; + } + export namespace distribution { + export const v1beta1 = { + ..._27, + ..._28, + ..._29, + ..._30, + ..._121, + ..._131, + ..._143, + ..._157, + ..._169 + }; + } + export namespace feegrant { + export const v1beta1 = { + ..._31, + ..._32, + ..._33, + ..._34, + ..._122, + ..._132, + ..._144, + ..._158, + ..._170 + }; + } + export namespace gov { + export const v1 = { + ..._35, + ..._36, + ..._37, + ..._38, + ..._123, + ..._133, + ..._145, + ..._159, + ..._171 + }; + export const v1beta1 = { + ..._39, + ..._40, + ..._41, + ..._42, + ..._124, + ..._134, + ..._146, + ..._160, + ..._172 + }; + } + export namespace group { + export const v1 = { + ..._43, + ..._44, + ..._45, + ..._46, + ..._47, + ..._125, + ..._135, + ..._147, + ..._161, + ..._173 + }; + } + export namespace mint { + export const v1beta1 = { + ..._48, + ..._49, + ..._50, + ..._148, + ..._162 + }; + } + export namespace orm { + export namespace module { + export const v1alpha1 = { + ..._51 + }; + } + } + export namespace params { + export const v1beta1 = { + ..._52, + ..._53, + ..._149, + ..._163 + }; + } + export namespace staking { + export const v1beta1 = { + ..._54, + ..._55, + ..._56, + ..._57, + ..._58, + ..._126, + ..._136, + ..._150, + ..._164, + ..._174 + }; + } + export namespace tx { + export namespace signing { + export const v1beta1 = { + ..._59 + }; + } + export const v1beta1 = { + ..._60, + ..._61, + ..._151, + ..._165 + }; + } + export namespace upgrade { + export const v1beta1 = { + ..._62, + ..._63, + ..._64, + ..._127, + ..._137, + ..._152, + ..._166, + ..._175 + }; + } + export namespace vesting { + export const v1beta1 = { + ..._65, + ..._66, + ..._128, + ..._138, + ..._176 + }; + } + export const ClientFactory = { + ..._217, + ..._218, + ..._219 + }; +} \ No newline at end of file diff --git a/packages/api/src/cosmos/client.ts b/packages/api/src/cosmos/client.ts new file mode 100644 index 00000000..b146730d --- /dev/null +++ b/packages/api/src/cosmos/client.ts @@ -0,0 +1,67 @@ +//@ts-nocheck +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; +import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; +import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry"; +import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry"; +import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry"; +import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry"; +import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry"; +import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; +import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; +import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry"; +import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; +import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; +import * as cosmosDistributionV1beta1TxAmino from "./distribution/v1beta1/tx.amino"; +import * as cosmosFeegrantV1beta1TxAmino from "./feegrant/v1beta1/tx.amino"; +import * as cosmosGovV1TxAmino from "./gov/v1/tx.amino"; +import * as cosmosGovV1beta1TxAmino from "./gov/v1beta1/tx.amino"; +import * as cosmosGroupV1TxAmino from "./group/v1/tx.amino"; +import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; +import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; +import * as cosmosVestingV1beta1TxAmino from "./vesting/v1beta1/tx.amino"; +export const cosmosAminoConverters = { + ...cosmosAuthzV1beta1TxAmino.AminoConverter, + ...cosmosBankV1beta1TxAmino.AminoConverter, + ...cosmosDistributionV1beta1TxAmino.AminoConverter, + ...cosmosFeegrantV1beta1TxAmino.AminoConverter, + ...cosmosGovV1TxAmino.AminoConverter, + ...cosmosGovV1beta1TxAmino.AminoConverter, + ...cosmosGroupV1TxAmino.AminoConverter, + ...cosmosStakingV1beta1TxAmino.AminoConverter, + ...cosmosUpgradeV1beta1TxAmino.AminoConverter, + ...cosmosVestingV1beta1TxAmino.AminoConverter +}; +export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; +export const getSigningCosmosClientOptions = (): { + registry: Registry; + aminoTypes: AminoTypes; +} => { + const registry = new Registry([...cosmosProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...cosmosAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningCosmosClient = async ({ + rpcEndpoint, + signer +}: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; +}) => { + const { + registry, + aminoTypes + } = getSigningCosmosClientOptions(); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: (registry as any), + aminoTypes + }); + return client; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/ed25519/keys.ts b/packages/api/src/cosmos/crypto/ed25519/keys.ts new file mode 100644 index 00000000..02e83618 --- /dev/null +++ b/packages/api/src/cosmos/crypto/ed25519/keys.ts @@ -0,0 +1,208 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKey { + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.ed25519.PubKey"; + value: Uint8Array; +} +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKeyAmino { + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** + * PubKey is an ed25519 public key for handling Tendermint keys in SDK. + * It's needed for Any serialization and SDK compatibility. + * It must not be used in a non Tendermint key context because it doesn't implement + * ADR-28. Nevertheless, you will like to use ed25519 in app user level + * then you must create a new proto message and follow ADR-28 for Address construction. + */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKey { + key: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.ed25519.PrivKey"; + value: Uint8Array; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKeyAmino { + key?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** + * Deprecated: PrivKey defines a ed25519 private key. + * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + */ +export interface PrivKeySDKType { + key: Uint8Array; +} +function createBasePubKey(): PubKey { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PubKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PubKey { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object: PubKeyAmino): PubKey { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message: PubKey): PubKeyAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object: PubKeyAminoMsg): PubKey { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message: PubKey): PubKeyAminoMsg { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message: PubKeyProtoMsg): PubKey { + return PubKey.decode(message.value); + }, + toProto(message: PubKey): Uint8Array { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message: PubKey): PubKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.ed25519.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey(): PrivKey { + return { + key: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PrivKey { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object: PrivKeyAmino): PrivKey { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message: PrivKey): PrivKeyAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message: PrivKey): PrivKeyAminoMsg { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { + return PrivKey.decode(message.value); + }, + toProto(message: PrivKey): Uint8Array { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message: PrivKey): PrivKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.ed25519.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/hd/v1/hd.ts b/packages/api/src/cosmos/crypto/hd/v1/hd.ts new file mode 100644 index 00000000..e8fccaca --- /dev/null +++ b/packages/api/src/cosmos/crypto/hd/v1/hd.ts @@ -0,0 +1,167 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44Params { + /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ + purpose: number; + /** coin_type is a constant that improves privacy */ + coinType: number; + /** account splits the key space into independent user identities */ + account: number; + /** + * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + * chain. + */ + change: boolean; + /** address_index is used as child index in BIP32 derivation */ + addressIndex: number; +} +export interface BIP44ParamsProtoMsg { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; + value: Uint8Array; +} +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44ParamsAmino { + /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ + purpose?: number; + /** coin_type is a constant that improves privacy */ + coin_type?: number; + /** account splits the key space into independent user identities */ + account?: number; + /** + * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal + * chain. + */ + change?: boolean; + /** address_index is used as child index in BIP32 derivation */ + address_index?: number; +} +export interface BIP44ParamsAminoMsg { + type: "cosmos-sdk/BIP44Params"; + value: BIP44ParamsAmino; +} +/** BIP44Params is used as path field in ledger item in Record. */ +export interface BIP44ParamsSDKType { + purpose: number; + coin_type: number; + account: number; + change: boolean; + address_index: number; +} +function createBaseBIP44Params(): BIP44Params { + return { + purpose: 0, + coinType: 0, + account: 0, + change: false, + addressIndex: 0 + }; +} +export const BIP44Params = { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + encode(message: BIP44Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.purpose !== 0) { + writer.uint32(8).uint32(message.purpose); + } + if (message.coinType !== 0) { + writer.uint32(16).uint32(message.coinType); + } + if (message.account !== 0) { + writer.uint32(24).uint32(message.account); + } + if (message.change === true) { + writer.uint32(32).bool(message.change); + } + if (message.addressIndex !== 0) { + writer.uint32(40).uint32(message.addressIndex); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBIP44Params(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.purpose = reader.uint32(); + break; + case 2: + message.coinType = reader.uint32(); + break; + case 3: + message.account = reader.uint32(); + break; + case 4: + message.change = reader.bool(); + break; + case 5: + message.addressIndex = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BIP44Params { + const message = createBaseBIP44Params(); + message.purpose = object.purpose ?? 0; + message.coinType = object.coinType ?? 0; + message.account = object.account ?? 0; + message.change = object.change ?? false; + message.addressIndex = object.addressIndex ?? 0; + return message; + }, + fromAmino(object: BIP44ParamsAmino): BIP44Params { + const message = createBaseBIP44Params(); + if (object.purpose !== undefined && object.purpose !== null) { + message.purpose = object.purpose; + } + if (object.coin_type !== undefined && object.coin_type !== null) { + message.coinType = object.coin_type; + } + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.change !== undefined && object.change !== null) { + message.change = object.change; + } + if (object.address_index !== undefined && object.address_index !== null) { + message.addressIndex = object.address_index; + } + return message; + }, + toAmino(message: BIP44Params): BIP44ParamsAmino { + const obj: any = {}; + obj.purpose = message.purpose === 0 ? undefined : message.purpose; + obj.coin_type = message.coinType === 0 ? undefined : message.coinType; + obj.account = message.account === 0 ? undefined : message.account; + obj.change = message.change === false ? undefined : message.change; + obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; + return obj; + }, + fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params { + return BIP44Params.fromAmino(object.value); + }, + toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg { + return { + type: "cosmos-sdk/BIP44Params", + value: BIP44Params.toAmino(message) + }; + }, + fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params { + return BIP44Params.decode(message.value); + }, + toProto(message: BIP44Params): Uint8Array { + return BIP44Params.encode(message).finish(); + }, + toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg { + return { + typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", + value: BIP44Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/keyring/v1/record.ts b/packages/api/src/cosmos/crypto/keyring/v1/record.ts new file mode 100644 index 00000000..85cea3fa --- /dev/null +++ b/packages/api/src/cosmos/crypto/keyring/v1/record.ts @@ -0,0 +1,507 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Record is used for representing a key in the keyring. */ +export interface Record { + /** name represents a name of Record */ + name: string; + /** pub_key represents a public key in any format */ + pubKey?: Any; + /** local stores the private key locally. */ + local?: Record_Local; + /** ledger stores the information about a Ledger key. */ + ledger?: Record_Ledger; + /** Multi does not store any other information. */ + multi?: Record_Multi; + /** Offline does not store any other information. */ + offline?: Record_Offline; +} +export interface RecordProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Record"; + value: Uint8Array; +} +/** Record is used for representing a key in the keyring. */ +export interface RecordAmino { + /** name represents a name of Record */ + name?: string; + /** pub_key represents a public key in any format */ + pub_key?: AnyAmino; + /** local stores the private key locally. */ + local?: Record_LocalAmino; + /** ledger stores the information about a Ledger key. */ + ledger?: Record_LedgerAmino; + /** Multi does not store any other information. */ + multi?: Record_MultiAmino; + /** Offline does not store any other information. */ + offline?: Record_OfflineAmino; +} +export interface RecordAminoMsg { + type: "cosmos-sdk/Record"; + value: RecordAmino; +} +/** Record is used for representing a key in the keyring. */ +export interface RecordSDKType { + name: string; + pub_key?: AnySDKType; + local?: Record_LocalSDKType; + ledger?: Record_LedgerSDKType; + multi?: Record_MultiSDKType; + offline?: Record_OfflineSDKType; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_Local { + privKey?: Any; +} +export interface Record_LocalProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Local"; + value: Uint8Array; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_LocalAmino { + priv_key?: AnyAmino; +} +export interface Record_LocalAminoMsg { + type: "cosmos-sdk/Local"; + value: Record_LocalAmino; +} +/** + * Item is a keyring item stored in a keyring backend. + * Local item + */ +export interface Record_LocalSDKType { + priv_key?: AnySDKType; +} +/** Ledger item */ +export interface Record_Ledger { + path?: BIP44Params; +} +export interface Record_LedgerProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; + value: Uint8Array; +} +/** Ledger item */ +export interface Record_LedgerAmino { + path?: BIP44ParamsAmino; +} +export interface Record_LedgerAminoMsg { + type: "cosmos-sdk/Ledger"; + value: Record_LedgerAmino; +} +/** Ledger item */ +export interface Record_LedgerSDKType { + path?: BIP44ParamsSDKType; +} +/** Multi item */ +export interface Record_Multi {} +export interface Record_MultiProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Multi"; + value: Uint8Array; +} +/** Multi item */ +export interface Record_MultiAmino {} +export interface Record_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: Record_MultiAmino; +} +/** Multi item */ +export interface Record_MultiSDKType {} +/** Offline item */ +export interface Record_Offline {} +export interface Record_OfflineProtoMsg { + typeUrl: "/cosmos.crypto.keyring.v1.Offline"; + value: Uint8Array; +} +/** Offline item */ +export interface Record_OfflineAmino {} +export interface Record_OfflineAminoMsg { + type: "cosmos-sdk/Offline"; + value: Record_OfflineAmino; +} +/** Offline item */ +export interface Record_OfflineSDKType {} +function createBaseRecord(): Record { + return { + name: "", + pubKey: undefined, + local: undefined, + ledger: undefined, + multi: undefined, + offline: undefined + }; +} +export const Record = { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + encode(message: Record, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.pubKey !== undefined) { + Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.local !== undefined) { + Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); + } + if (message.ledger !== undefined) { + Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); + } + if (message.multi !== undefined) { + Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); + } + if (message.offline !== undefined) { + Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Record { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.pubKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.local = Record_Local.decode(reader, reader.uint32()); + break; + case 4: + message.ledger = Record_Ledger.decode(reader, reader.uint32()); + break; + case 5: + message.multi = Record_Multi.decode(reader, reader.uint32()); + break; + case 6: + message.offline = Record_Offline.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Record { + const message = createBaseRecord(); + message.name = object.name ?? ""; + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; + message.local = object.local !== undefined && object.local !== null ? Record_Local.fromPartial(object.local) : undefined; + message.ledger = object.ledger !== undefined && object.ledger !== null ? Record_Ledger.fromPartial(object.ledger) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? Record_Multi.fromPartial(object.multi) : undefined; + message.offline = object.offline !== undefined && object.offline !== null ? Record_Offline.fromPartial(object.offline) : undefined; + return message; + }, + fromAmino(object: RecordAmino): Record { + const message = createBaseRecord(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = Any.fromAmino(object.pub_key); + } + if (object.local !== undefined && object.local !== null) { + message.local = Record_Local.fromAmino(object.local); + } + if (object.ledger !== undefined && object.ledger !== null) { + message.ledger = Record_Ledger.fromAmino(object.ledger); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = Record_Multi.fromAmino(object.multi); + } + if (object.offline !== undefined && object.offline !== null) { + message.offline = Record_Offline.fromAmino(object.offline); + } + return message; + }, + toAmino(message: Record): RecordAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; + obj.local = message.local ? Record_Local.toAmino(message.local) : undefined; + obj.ledger = message.ledger ? Record_Ledger.toAmino(message.ledger) : undefined; + obj.multi = message.multi ? Record_Multi.toAmino(message.multi) : undefined; + obj.offline = message.offline ? Record_Offline.toAmino(message.offline) : undefined; + return obj; + }, + fromAminoMsg(object: RecordAminoMsg): Record { + return Record.fromAmino(object.value); + }, + toAminoMsg(message: Record): RecordAminoMsg { + return { + type: "cosmos-sdk/Record", + value: Record.toAmino(message) + }; + }, + fromProtoMsg(message: RecordProtoMsg): Record { + return Record.decode(message.value); + }, + toProto(message: Record): Uint8Array { + return Record.encode(message).finish(); + }, + toProtoMsg(message: Record): RecordProtoMsg { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Record", + value: Record.encode(message).finish() + }; + } +}; +function createBaseRecord_Local(): Record_Local { + return { + privKey: undefined + }; +} +export const Record_Local = { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + encode(message: Record_Local, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.privKey !== undefined) { + Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Record_Local { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Local(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.privKey = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Record_Local { + const message = createBaseRecord_Local(); + message.privKey = object.privKey !== undefined && object.privKey !== null ? Any.fromPartial(object.privKey) : undefined; + return message; + }, + fromAmino(object: Record_LocalAmino): Record_Local { + const message = createBaseRecord_Local(); + if (object.priv_key !== undefined && object.priv_key !== null) { + message.privKey = Any.fromAmino(object.priv_key); + } + return message; + }, + toAmino(message: Record_Local): Record_LocalAmino { + const obj: any = {}; + obj.priv_key = message.privKey ? Any.toAmino(message.privKey) : undefined; + return obj; + }, + fromAminoMsg(object: Record_LocalAminoMsg): Record_Local { + return Record_Local.fromAmino(object.value); + }, + toAminoMsg(message: Record_Local): Record_LocalAminoMsg { + return { + type: "cosmos-sdk/Local", + value: Record_Local.toAmino(message) + }; + }, + fromProtoMsg(message: Record_LocalProtoMsg): Record_Local { + return Record_Local.decode(message.value); + }, + toProto(message: Record_Local): Uint8Array { + return Record_Local.encode(message).finish(); + }, + toProtoMsg(message: Record_Local): Record_LocalProtoMsg { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Local", + value: Record_Local.encode(message).finish() + }; + } +}; +function createBaseRecord_Ledger(): Record_Ledger { + return { + path: undefined + }; +} +export const Record_Ledger = { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + encode(message: Record_Ledger, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.path !== undefined) { + BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Ledger(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = BIP44Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Record_Ledger { + const message = createBaseRecord_Ledger(); + message.path = object.path !== undefined && object.path !== null ? BIP44Params.fromPartial(object.path) : undefined; + return message; + }, + fromAmino(object: Record_LedgerAmino): Record_Ledger { + const message = createBaseRecord_Ledger(); + if (object.path !== undefined && object.path !== null) { + message.path = BIP44Params.fromAmino(object.path); + } + return message; + }, + toAmino(message: Record_Ledger): Record_LedgerAmino { + const obj: any = {}; + obj.path = message.path ? BIP44Params.toAmino(message.path) : undefined; + return obj; + }, + fromAminoMsg(object: Record_LedgerAminoMsg): Record_Ledger { + return Record_Ledger.fromAmino(object.value); + }, + toAminoMsg(message: Record_Ledger): Record_LedgerAminoMsg { + return { + type: "cosmos-sdk/Ledger", + value: Record_Ledger.toAmino(message) + }; + }, + fromProtoMsg(message: Record_LedgerProtoMsg): Record_Ledger { + return Record_Ledger.decode(message.value); + }, + toProto(message: Record_Ledger): Uint8Array { + return Record_Ledger.encode(message).finish(); + }, + toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Ledger", + value: Record_Ledger.encode(message).finish() + }; + } +}; +function createBaseRecord_Multi(): Record_Multi { + return {}; +} +export const Record_Multi = { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + encode(_: Record_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Record_Multi { + const message = createBaseRecord_Multi(); + return message; + }, + fromAmino(_: Record_MultiAmino): Record_Multi { + const message = createBaseRecord_Multi(); + return message; + }, + toAmino(_: Record_Multi): Record_MultiAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: Record_MultiAminoMsg): Record_Multi { + return Record_Multi.fromAmino(object.value); + }, + toAminoMsg(message: Record_Multi): Record_MultiAminoMsg { + return { + type: "cosmos-sdk/Multi", + value: Record_Multi.toAmino(message) + }; + }, + fromProtoMsg(message: Record_MultiProtoMsg): Record_Multi { + return Record_Multi.decode(message.value); + }, + toProto(message: Record_Multi): Uint8Array { + return Record_Multi.encode(message).finish(); + }, + toProtoMsg(message: Record_Multi): Record_MultiProtoMsg { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Multi", + value: Record_Multi.encode(message).finish() + }; + } +}; +function createBaseRecord_Offline(): Record_Offline { + return {}; +} +export const Record_Offline = { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + encode(_: Record_Offline, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRecord_Offline(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Record_Offline { + const message = createBaseRecord_Offline(); + return message; + }, + fromAmino(_: Record_OfflineAmino): Record_Offline { + const message = createBaseRecord_Offline(); + return message; + }, + toAmino(_: Record_Offline): Record_OfflineAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: Record_OfflineAminoMsg): Record_Offline { + return Record_Offline.fromAmino(object.value); + }, + toAminoMsg(message: Record_Offline): Record_OfflineAminoMsg { + return { + type: "cosmos-sdk/Offline", + value: Record_Offline.toAmino(message) + }; + }, + fromProtoMsg(message: Record_OfflineProtoMsg): Record_Offline { + return Record_Offline.decode(message.value); + }, + toProto(message: Record_Offline): Uint8Array { + return Record_Offline.encode(message).finish(); + }, + toProtoMsg(message: Record_Offline): Record_OfflineProtoMsg { + return { + typeUrl: "/cosmos.crypto.keyring.v1.Offline", + value: Record_Offline.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/multisig/keys.ts b/packages/api/src/cosmos/crypto/multisig/keys.ts new file mode 100644 index 00000000..eddecd00 --- /dev/null +++ b/packages/api/src/cosmos/crypto/multisig/keys.ts @@ -0,0 +1,121 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKey { + threshold: number; + publicKeys: Any[]; +} +export interface LegacyAminoPubKeyProtoMsg { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; + value: Uint8Array; +} +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKeyAmino { + threshold?: number; + public_keys?: AnyAmino[]; +} +export interface LegacyAminoPubKeyAminoMsg { + type: "cosmos-sdk/LegacyAminoPubKey"; + value: LegacyAminoPubKeyAmino; +} +/** + * LegacyAminoPubKey specifies a public key type + * which nests multiple public keys and a threshold, + * it uses legacy amino address rules. + */ +export interface LegacyAminoPubKeySDKType { + threshold: number; + public_keys: AnySDKType[]; +} +function createBaseLegacyAminoPubKey(): LegacyAminoPubKey { + return { + threshold: 0, + publicKeys: [] + }; +} +export const LegacyAminoPubKey = { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + encode(message: LegacyAminoPubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.threshold !== 0) { + writer.uint32(8).uint32(message.threshold); + } + for (const v of message.publicKeys) { + Any.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLegacyAminoPubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.uint32(); + break; + case 2: + message.publicKeys.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): LegacyAminoPubKey { + const message = createBaseLegacyAminoPubKey(); + message.threshold = object.threshold ?? 0; + message.publicKeys = object.publicKeys?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: LegacyAminoPubKeyAmino): LegacyAminoPubKey { + const message = createBaseLegacyAminoPubKey(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + message.publicKeys = object.public_keys?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino { + const obj: any = {}; + obj.threshold = message.threshold === 0 ? undefined : message.threshold; + if (message.publicKeys) { + obj.public_keys = message.publicKeys.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.public_keys = message.publicKeys; + } + return obj; + }, + fromAminoMsg(object: LegacyAminoPubKeyAminoMsg): LegacyAminoPubKey { + return LegacyAminoPubKey.fromAmino(object.value); + }, + toAminoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyAminoMsg { + return { + type: "cosmos-sdk/LegacyAminoPubKey", + value: LegacyAminoPubKey.toAmino(message) + }; + }, + fromProtoMsg(message: LegacyAminoPubKeyProtoMsg): LegacyAminoPubKey { + return LegacyAminoPubKey.decode(message.value); + }, + toProto(message: LegacyAminoPubKey): Uint8Array { + return LegacyAminoPubKey.encode(message).finish(); + }, + toProtoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", + value: LegacyAminoPubKey.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/multisig/v1beta1/multisig.ts b/packages/api/src/cosmos/crypto/multisig/v1beta1/multisig.ts new file mode 100644 index 00000000..d9247070 --- /dev/null +++ b/packages/api/src/cosmos/crypto/multisig/v1beta1/multisig.ts @@ -0,0 +1,225 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignature { + signatures: Uint8Array[]; +} +export interface MultiSignatureProtoMsg { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; + value: Uint8Array; +} +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignatureAmino { + signatures?: string[]; +} +export interface MultiSignatureAminoMsg { + type: "cosmos-sdk/MultiSignature"; + value: MultiSignatureAmino; +} +/** + * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. + * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers + * signed and with which modes. + */ +export interface MultiSignatureSDKType { + signatures: Uint8Array[]; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArray { + extraBitsStored: number; + elems: Uint8Array; +} +export interface CompactBitArrayProtoMsg { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; + value: Uint8Array; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArrayAmino { + extra_bits_stored?: number; + elems?: string; +} +export interface CompactBitArrayAminoMsg { + type: "cosmos-sdk/CompactBitArray"; + value: CompactBitArrayAmino; +} +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CompactBitArraySDKType { + extra_bits_stored: number; + elems: Uint8Array; +} +function createBaseMultiSignature(): MultiSignature { + return { + signatures: [] + }; +} +export const MultiSignature = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + encode(message: MultiSignature, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.signatures) { + writer.uint32(10).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMultiSignature(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MultiSignature { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object: MultiSignatureAmino): MultiSignature { + const message = createBaseMultiSignature(); + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: MultiSignature): MultiSignatureAmino { + const obj: any = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature { + return MultiSignature.fromAmino(object.value); + }, + toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg { + return { + type: "cosmos-sdk/MultiSignature", + value: MultiSignature.toAmino(message) + }; + }, + fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature { + return MultiSignature.decode(message.value); + }, + toProto(message: MultiSignature): Uint8Array { + return MultiSignature.encode(message).finish(); + }, + toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", + value: MultiSignature.encode(message).finish() + }; + } +}; +function createBaseCompactBitArray(): CompactBitArray { + return { + extraBitsStored: 0, + elems: new Uint8Array() + }; +} +export const CompactBitArray = { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + encode(message: CompactBitArray, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.extraBitsStored !== 0) { + writer.uint32(8).uint32(message.extraBitsStored); + } + if (message.elems.length !== 0) { + writer.uint32(18).bytes(message.elems); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCompactBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.extraBitsStored = reader.uint32(); + break; + case 2: + message.elems = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CompactBitArray { + const message = createBaseCompactBitArray(); + message.extraBitsStored = object.extraBitsStored ?? 0; + message.elems = object.elems ?? new Uint8Array(); + return message; + }, + fromAmino(object: CompactBitArrayAmino): CompactBitArray { + const message = createBaseCompactBitArray(); + if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { + message.extraBitsStored = object.extra_bits_stored; + } + if (object.elems !== undefined && object.elems !== null) { + message.elems = bytesFromBase64(object.elems); + } + return message; + }, + toAmino(message: CompactBitArray): CompactBitArrayAmino { + const obj: any = {}; + obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; + obj.elems = message.elems ? base64FromBytes(message.elems) : undefined; + return obj; + }, + fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray { + return CompactBitArray.fromAmino(object.value); + }, + toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg { + return { + type: "cosmos-sdk/CompactBitArray", + value: CompactBitArray.toAmino(message) + }; + }, + fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray { + return CompactBitArray.decode(message.value); + }, + toProto(message: CompactBitArray): Uint8Array { + return CompactBitArray.encode(message).finish(); + }, + toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg { + return { + typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", + value: CompactBitArray.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/secp256k1/keys.ts b/packages/api/src/cosmos/crypto/secp256k1/keys.ts new file mode 100644 index 00000000..f5b13ae4 --- /dev/null +++ b/packages/api/src/cosmos/crypto/secp256k1/keys.ts @@ -0,0 +1,199 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKey { + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256k1.PubKey"; + value: Uint8Array; +} +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKeyAmino { + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** + * PubKey defines a secp256k1 public key + * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte + * if the y-coordinate is the lexicographically largest of the two associated with + * the x-coordinate. Otherwise the first byte is a 0x03. + * This prefix is followed with the x-coordinate. + */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKey { + key: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; + value: Uint8Array; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKeyAmino { + key?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** PrivKey defines a secp256k1 private key. */ +export interface PrivKeySDKType { + key: Uint8Array; +} +function createBasePubKey(): PubKey { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PubKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PubKey { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object: PubKeyAmino): PubKey { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message: PubKey): PubKeyAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object: PubKeyAminoMsg): PubKey { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message: PubKey): PubKeyAminoMsg { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message: PubKeyProtoMsg): PubKey { + return PubKey.decode(message.value); + }, + toProto(message: PubKey): Uint8Array { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message: PubKey): PubKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.secp256k1.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey(): PrivKey { + return { + key: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PrivKey { + const message = createBasePrivKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object: PrivKeyAmino): PrivKey { + const message = createBasePrivKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message: PrivKey): PrivKeyAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message: PrivKey): PrivKeyAminoMsg { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { + return PrivKey.decode(message.value); + }, + toProto(message: PrivKey): Uint8Array { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message: PrivKey): PrivKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.secp256k1.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/crypto/secp256r1/keys.ts b/packages/api/src/cosmos/crypto/secp256r1/keys.ts new file mode 100644 index 00000000..87ebef2b --- /dev/null +++ b/packages/api/src/cosmos/crypto/secp256r1/keys.ts @@ -0,0 +1,191 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKey { + /** + * Point on secp256r1 curve in a compressed representation as specified in section + * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + */ + key: Uint8Array; +} +export interface PubKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256r1.PubKey"; + value: Uint8Array; +} +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKeyAmino { + /** + * Point on secp256r1 curve in a compressed representation as specified in section + * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + */ + key?: string; +} +export interface PubKeyAminoMsg { + type: "cosmos-sdk/PubKey"; + value: PubKeyAmino; +} +/** PubKey defines a secp256r1 ECDSA public key. */ +export interface PubKeySDKType { + key: Uint8Array; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKey { + /** secret number serialized using big-endian encoding */ + secret: Uint8Array; +} +export interface PrivKeyProtoMsg { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; + value: Uint8Array; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKeyAmino { + /** secret number serialized using big-endian encoding */ + secret?: string; +} +export interface PrivKeyAminoMsg { + type: "cosmos-sdk/PrivKey"; + value: PrivKeyAmino; +} +/** PrivKey defines a secp256r1 ECDSA private key. */ +export interface PrivKeySDKType { + secret: Uint8Array; +} +function createBasePubKey(): PubKey { + return { + key: new Uint8Array() + }; +} +export const PubKey = { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PubKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePubKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PubKey { + const message = createBasePubKey(); + message.key = object.key ?? new Uint8Array(); + return message; + }, + fromAmino(object: PubKeyAmino): PubKey { + const message = createBasePubKey(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + return message; + }, + toAmino(message: PubKey): PubKeyAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + return obj; + }, + fromAminoMsg(object: PubKeyAminoMsg): PubKey { + return PubKey.fromAmino(object.value); + }, + toAminoMsg(message: PubKey): PubKeyAminoMsg { + return { + type: "cosmos-sdk/PubKey", + value: PubKey.toAmino(message) + }; + }, + fromProtoMsg(message: PubKeyProtoMsg): PubKey { + return PubKey.decode(message.value); + }, + toProto(message: PubKey): Uint8Array { + return PubKey.encode(message).finish(); + }, + toProtoMsg(message: PubKey): PubKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.secp256r1.PubKey", + value: PubKey.encode(message).finish() + }; + } +}; +function createBasePrivKey(): PrivKey { + return { + secret: new Uint8Array() + }; +} +export const PrivKey = { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.secret.length !== 0) { + writer.uint32(10).bytes(message.secret); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PrivKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrivKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.secret = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PrivKey { + const message = createBasePrivKey(); + message.secret = object.secret ?? new Uint8Array(); + return message; + }, + fromAmino(object: PrivKeyAmino): PrivKey { + const message = createBasePrivKey(); + if (object.secret !== undefined && object.secret !== null) { + message.secret = bytesFromBase64(object.secret); + } + return message; + }, + toAmino(message: PrivKey): PrivKeyAmino { + const obj: any = {}; + obj.secret = message.secret ? base64FromBytes(message.secret) : undefined; + return obj; + }, + fromAminoMsg(object: PrivKeyAminoMsg): PrivKey { + return PrivKey.fromAmino(object.value); + }, + toAminoMsg(message: PrivKey): PrivKeyAminoMsg { + return { + type: "cosmos-sdk/PrivKey", + value: PrivKey.toAmino(message) + }; + }, + fromProtoMsg(message: PrivKeyProtoMsg): PrivKey { + return PrivKey.decode(message.value); + }, + toProto(message: PrivKey): Uint8Array { + return PrivKey.encode(message).finish(); + }, + toProtoMsg(message: PrivKey): PrivKeyProtoMsg { + return { + typeUrl: "/cosmos.crypto.secp256r1.PrivKey", + value: PrivKey.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/distribution.ts b/packages/api/src/cosmos/distribution/v1beta1/distribution.ts new file mode 100644 index 00000000..c49d55b6 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/distribution.ts @@ -0,0 +1,1469 @@ +//@ts-nocheck +import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +/** Params defines the set of params for the distribution module. */ +export interface Params { + communityTax: string; + baseProposerReward: string; + bonusProposerReward: string; + withdrawAddrEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the set of params for the distribution module. */ +export interface ParamsAmino { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the set of params for the distribution module. */ +export interface ParamsSDKType { + community_tax: string; + base_proposer_reward: string; + bonus_proposer_reward: string; + withdraw_addr_enabled: boolean; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewards { + cumulativeRewardRatio: DecCoin[]; + referenceCount: number; +} +export interface ValidatorHistoricalRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; + value: Uint8Array; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewardsAmino { + cumulative_reward_ratio?: DecCoinAmino[]; + reference_count?: number; +} +export interface ValidatorHistoricalRewardsAminoMsg { + type: "cosmos-sdk/ValidatorHistoricalRewards"; + value: ValidatorHistoricalRewardsAmino; +} +/** + * ValidatorHistoricalRewards represents historical rewards for a validator. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + */ +export interface ValidatorHistoricalRewardsSDKType { + cumulative_reward_ratio: DecCoinSDKType[]; + reference_count: number; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewards { + rewards: DecCoin[]; + period: bigint; +} +export interface ValidatorCurrentRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; + value: Uint8Array; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewardsAmino { + rewards?: DecCoinAmino[]; + period?: string; +} +export interface ValidatorCurrentRewardsAminoMsg { + type: "cosmos-sdk/ValidatorCurrentRewards"; + value: ValidatorCurrentRewardsAmino; +} +/** + * ValidatorCurrentRewards represents current rewards and current + * period for a validator kept as a running counter and incremented + * each block as long as the validator's tokens remain constant. + */ +export interface ValidatorCurrentRewardsSDKType { + rewards: DecCoinSDKType[]; + period: bigint; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommission { + commission: DecCoin[]; +} +export interface ValidatorAccumulatedCommissionProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; + value: Uint8Array; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommissionAmino { + commission?: DecCoinAmino[]; +} +export interface ValidatorAccumulatedCommissionAminoMsg { + type: "cosmos-sdk/ValidatorAccumulatedCommission"; + value: ValidatorAccumulatedCommissionAmino; +} +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface ValidatorAccumulatedCommissionSDKType { + commission: DecCoinSDKType[]; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewards { + rewards: DecCoin[]; +} +export interface ValidatorOutstandingRewardsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; + value: Uint8Array; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewardsAmino { + rewards?: DecCoinAmino[]; +} +export interface ValidatorOutstandingRewardsAminoMsg { + type: "cosmos-sdk/ValidatorOutstandingRewards"; + value: ValidatorOutstandingRewardsAmino; +} +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface ValidatorOutstandingRewardsSDKType { + rewards: DecCoinSDKType[]; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEvent { + validatorPeriod: bigint; + fraction: string; +} +export interface ValidatorSlashEventProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; + value: Uint8Array; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEventAmino { + validator_period?: string; + fraction?: string; +} +export interface ValidatorSlashEventAminoMsg { + type: "cosmos-sdk/ValidatorSlashEvent"; + value: ValidatorSlashEventAmino; +} +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface ValidatorSlashEventSDKType { + validator_period: bigint; + fraction: string; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEvents { + validatorSlashEvents: ValidatorSlashEvent[]; +} +export interface ValidatorSlashEventsProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; + value: Uint8Array; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEventsAmino { + validator_slash_events?: ValidatorSlashEventAmino[]; +} +export interface ValidatorSlashEventsAminoMsg { + type: "cosmos-sdk/ValidatorSlashEvents"; + value: ValidatorSlashEventsAmino; +} +/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ +export interface ValidatorSlashEventsSDKType { + validator_slash_events: ValidatorSlashEventSDKType[]; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePool { + communityPool: DecCoin[]; +} +export interface FeePoolProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.FeePool"; + value: Uint8Array; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePoolAmino { + community_pool?: DecCoinAmino[]; +} +export interface FeePoolAminoMsg { + type: "cosmos-sdk/FeePool"; + value: FeePoolAmino; +} +/** FeePool is the global fee pool for distribution. */ +export interface FeePoolSDKType { + community_pool: DecCoinSDKType[]; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposal { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + title: string; + description: string; + recipient: string; + amount: Coin[]; +} +export interface CommunityPoolSpendProposalProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + value: Uint8Array; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposalAmino { + title?: string; + description?: string; + recipient?: string; + amount?: CoinAmino[]; +} +export interface CommunityPoolSpendProposalAminoMsg { + type: "cosmos-sdk/CommunityPoolSpendProposal"; + value: CommunityPoolSpendProposalAmino; +} +/** + * CommunityPoolSpendProposal details a proposal for use of community funds, + * together with how many coins are proposed to be spent, and to which + * recipient account. + */ +export interface CommunityPoolSpendProposalSDKType { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; + title: string; + description: string; + recipient: string; + amount: CoinSDKType[]; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfo { + previousPeriod: bigint; + stake: string; + height: bigint; +} +export interface DelegatorStartingInfoProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; + value: Uint8Array; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfoAmino { + previous_period?: string; + stake?: string; + height: string; +} +export interface DelegatorStartingInfoAminoMsg { + type: "cosmos-sdk/DelegatorStartingInfo"; + value: DelegatorStartingInfoAmino; +} +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous validator period, the delegation's amount of + * staking token, and the creation height (to check later on if any slashes have + * occurred). NOTE: Even though validators are slashed to whole staking tokens, + * the delegators within the validator may be left with less than a full token, + * thus sdk.Dec is used. + */ +export interface DelegatorStartingInfoSDKType { + previous_period: bigint; + stake: string; + height: bigint; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorReward { + validatorAddress: string; + reward: DecCoin[]; +} +export interface DelegationDelegatorRewardProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; + value: Uint8Array; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorRewardAmino { + validator_address?: string; + reward?: DecCoinAmino[]; +} +export interface DelegationDelegatorRewardAminoMsg { + type: "cosmos-sdk/DelegationDelegatorReward"; + value: DelegationDelegatorRewardAmino; +} +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface DelegationDelegatorRewardSDKType { + validator_address: string; + reward: DecCoinSDKType[]; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDeposit { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + title: string; + description: string; + recipient: string; + amount: string; + deposit: string; +} +export interface CommunityPoolSpendProposalWithDepositProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + value: Uint8Array; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDepositAmino { + title?: string; + description?: string; + recipient?: string; + amount?: string; + deposit?: string; +} +export interface CommunityPoolSpendProposalWithDepositAminoMsg { + type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; + value: CommunityPoolSpendProposalWithDepositAmino; +} +/** + * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal + * with a deposit + */ +export interface CommunityPoolSpendProposalWithDepositSDKType { + $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; + title: string; + description: string; + recipient: string; + amount: string; + deposit: string; +} +function createBaseParams(): Params { + return { + communityTax: "", + baseProposerReward: "", + bonusProposerReward: "", + withdrawAddrEnabled: false + }; +} +export const Params = { + typeUrl: "/cosmos.distribution.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.communityTax !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics); + } + if (message.baseProposerReward !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics); + } + if (message.bonusProposerReward !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); + } + if (message.withdrawAddrEnabled === true) { + writer.uint32(32).bool(message.withdrawAddrEnabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.withdrawAddrEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.communityTax = object.communityTax ?? ""; + message.baseProposerReward = object.baseProposerReward ?? ""; + message.bonusProposerReward = object.bonusProposerReward ?? ""; + message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + if (object.community_tax !== undefined && object.community_tax !== null) { + message.communityTax = object.community_tax; + } + if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { + message.baseProposerReward = object.base_proposer_reward; + } + if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { + message.bonusProposerReward = object.bonus_proposer_reward; + } + if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { + message.withdrawAddrEnabled = object.withdraw_addr_enabled; + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; + obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; + obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; + obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards { + return { + cumulativeRewardRatio: [], + referenceCount: 0 + }; +} +export const ValidatorHistoricalRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + encode(message: ValidatorHistoricalRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.cumulativeRewardRatio) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.referenceCount !== 0) { + writer.uint32(16).uint32(message.referenceCount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.referenceCount = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorHistoricalRewards { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || []; + message.referenceCount = object.referenceCount ?? 0; + return message; + }, + fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards { + const message = createBaseValidatorHistoricalRewards(); + message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => DecCoin.fromAmino(e)) || []; + if (object.reference_count !== undefined && object.reference_count !== null) { + message.referenceCount = object.reference_count; + } + return message; + }, + toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino { + const obj: any = {}; + if (message.cumulativeRewardRatio) { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.cumulative_reward_ratio = message.cumulativeRewardRatio; + } + obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; + return obj; + }, + fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards { + return ValidatorHistoricalRewards.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg { + return { + type: "cosmos-sdk/ValidatorHistoricalRewards", + value: ValidatorHistoricalRewards.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards { + return ValidatorHistoricalRewards.decode(message.value); + }, + toProto(message: ValidatorHistoricalRewards): Uint8Array { + return ValidatorHistoricalRewards.encode(message).finish(); + }, + toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", + value: ValidatorHistoricalRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards { + return { + rewards: [], + period: BigInt(0) + }; +} +export const ValidatorCurrentRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + encode(message: ValidatorCurrentRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.rewards) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + case 2: + message.period = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorCurrentRewards { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards { + const message = createBaseValidatorCurrentRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + return message; + }, + toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino { + const obj: any = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.rewards = message.rewards; + } + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards { + return ValidatorCurrentRewards.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg { + return { + type: "cosmos-sdk/ValidatorCurrentRewards", + value: ValidatorCurrentRewards.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards { + return ValidatorCurrentRewards.decode(message.value); + }, + toProto(message: ValidatorCurrentRewards): Uint8Array { + return ValidatorCurrentRewards.encode(message).finish(); + }, + toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", + value: ValidatorCurrentRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission { + return { + commission: [] + }; +} +export const ValidatorAccumulatedCommission = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + encode(message: ValidatorAccumulatedCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.commission) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorAccumulatedCommission { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission { + const message = createBaseValidatorAccumulatedCommission(); + message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino { + const obj: any = {}; + if (message.commission) { + obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.commission = message.commission; + } + return obj; + }, + fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission { + return ValidatorAccumulatedCommission.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommission", + value: ValidatorAccumulatedCommission.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission { + return ValidatorAccumulatedCommission.decode(message.value); + }, + toProto(message: ValidatorAccumulatedCommission): Uint8Array { + return ValidatorAccumulatedCommission.encode(message).finish(); + }, + toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", + value: ValidatorAccumulatedCommission.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards { + return { + rewards: [] + }; +} +export const ValidatorOutstandingRewards = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + encode(message: ValidatorOutstandingRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.rewards) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewards(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorOutstandingRewards { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards { + const message = createBaseValidatorOutstandingRewards(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino { + const obj: any = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards { + return ValidatorOutstandingRewards.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg { + return { + type: "cosmos-sdk/ValidatorOutstandingRewards", + value: ValidatorOutstandingRewards.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards { + return ValidatorOutstandingRewards.decode(message.value); + }, + toProto(message: ValidatorOutstandingRewards): Uint8Array { + return ValidatorOutstandingRewards.encode(message).finish(); + }, + toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", + value: ValidatorOutstandingRewards.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvent(): ValidatorSlashEvent { + return { + validatorPeriod: BigInt(0), + fraction: "" + }; +} +export const ValidatorSlashEvent = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + encode(message: ValidatorSlashEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.validatorPeriod); + } + if (message.fraction !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorPeriod = reader.uint64(); + break; + case 2: + message.fraction = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorSlashEvent { + const message = createBaseValidatorSlashEvent(); + message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); + message.fraction = object.fraction ?? ""; + return message; + }, + fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent { + const message = createBaseValidatorSlashEvent(); + if (object.validator_period !== undefined && object.validator_period !== null) { + message.validatorPeriod = BigInt(object.validator_period); + } + if (object.fraction !== undefined && object.fraction !== null) { + message.fraction = object.fraction; + } + return message; + }, + toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino { + const obj: any = {}; + obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; + obj.fraction = message.fraction === "" ? undefined : message.fraction; + return obj; + }, + fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent { + return ValidatorSlashEvent.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg { + return { + type: "cosmos-sdk/ValidatorSlashEvent", + value: ValidatorSlashEvent.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent { + return ValidatorSlashEvent.decode(message.value); + }, + toProto(message: ValidatorSlashEvent): Uint8Array { + return ValidatorSlashEvent.encode(message).finish(); + }, + toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", + value: ValidatorSlashEvent.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEvents(): ValidatorSlashEvents { + return { + validatorSlashEvents: [] + }; +} +export const ValidatorSlashEvents = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + encode(message: ValidatorSlashEvents, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validatorSlashEvents) { + ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEvents(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorSlashEvents { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents { + const message = createBaseValidatorSlashEvents(); + message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; + return message; + }, + toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino { + const obj: any = {}; + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); + } else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents { + return ValidatorSlashEvents.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg { + return { + type: "cosmos-sdk/ValidatorSlashEvents", + value: ValidatorSlashEvents.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents { + return ValidatorSlashEvents.decode(message.value); + }, + toProto(message: ValidatorSlashEvents): Uint8Array { + return ValidatorSlashEvents.encode(message).finish(); + }, + toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", + value: ValidatorSlashEvents.encode(message).finish() + }; + } +}; +function createBaseFeePool(): FeePool { + return { + communityPool: [] + }; +} +export const FeePool = { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + encode(message: FeePool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.communityPool) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FeePool { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFeePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.communityPool.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FeePool { + const message = createBaseFeePool(); + message.communityPool = object.communityPool?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: FeePoolAmino): FeePool { + const message = createBaseFeePool(); + message.communityPool = object.community_pool?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: FeePool): FeePoolAmino { + const obj: any = {}; + if (message.communityPool) { + obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.community_pool = message.communityPool; + } + return obj; + }, + fromAminoMsg(object: FeePoolAminoMsg): FeePool { + return FeePool.fromAmino(object.value); + }, + toAminoMsg(message: FeePool): FeePoolAminoMsg { + return { + type: "cosmos-sdk/FeePool", + value: FeePool.toAmino(message) + }; + }, + fromProtoMsg(message: FeePoolProtoMsg): FeePool { + return FeePool.decode(message.value); + }, + toProto(message: FeePool): Uint8Array { + return FeePool.encode(message).finish(); + }, + toProtoMsg(message: FeePool): FeePoolProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.FeePool", + value: FeePool.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + title: "", + description: "", + recipient: "", + amount: [] + }; +} +export const CommunityPoolSpendProposal = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + encode(message: CommunityPoolSpendProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CommunityPoolSpendProposal { + const message = createBaseCommunityPoolSpendProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal { + const message = createBaseCommunityPoolSpendProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal { + return CommunityPoolSpendProposal.fromAmino(object.value); + }, + toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg { + return { + type: "cosmos-sdk/CommunityPoolSpendProposal", + value: CommunityPoolSpendProposal.toAmino(message) + }; + }, + fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal { + return CommunityPoolSpendProposal.decode(message.value); + }, + toProto(message: CommunityPoolSpendProposal): Uint8Array { + return CommunityPoolSpendProposal.encode(message).finish(); + }, + toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", + value: CommunityPoolSpendProposal.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfo(): DelegatorStartingInfo { + return { + previousPeriod: BigInt(0), + stake: "", + height: BigInt(0) + }; +} +export const DelegatorStartingInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + encode(message: DelegatorStartingInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.previousPeriod !== BigInt(0)) { + writer.uint32(8).uint64(message.previousPeriod); + } + if (message.stake !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).uint64(message.height); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.previousPeriod = reader.uint64(); + break; + case 2: + message.stake = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelegatorStartingInfo { + const message = createBaseDelegatorStartingInfo(); + message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); + message.stake = object.stake ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo { + const message = createBaseDelegatorStartingInfo(); + if (object.previous_period !== undefined && object.previous_period !== null) { + message.previousPeriod = BigInt(object.previous_period); + } + if (object.stake !== undefined && object.stake !== null) { + message.stake = object.stake; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino { + const obj: any = {}; + obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; + obj.stake = message.stake === "" ? undefined : message.stake; + obj.height = message.height ? message.height.toString() : "0"; + return obj; + }, + fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo { + return DelegatorStartingInfo.fromAmino(object.value); + }, + toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg { + return { + type: "cosmos-sdk/DelegatorStartingInfo", + value: DelegatorStartingInfo.toAmino(message) + }; + }, + fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo { + return DelegatorStartingInfo.decode(message.value); + }, + toProto(message: DelegatorStartingInfo): Uint8Array { + return DelegatorStartingInfo.encode(message).finish(); + }, + toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", + value: DelegatorStartingInfo.encode(message).finish() + }; + } +}; +function createBaseDelegationDelegatorReward(): DelegationDelegatorReward { + return { + validatorAddress: "", + reward: [] + }; +} +export const DelegationDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + encode(message: DelegationDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.reward) { + DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.reward.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelegationDelegatorReward { + const message = createBaseDelegationDelegatorReward(); + message.validatorAddress = object.validatorAddress ?? ""; + message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward { + const message = createBaseDelegationDelegatorReward(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.reward = object.reward?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.reward) { + obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.reward = message.reward; + } + return obj; + }, + fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward { + return DelegationDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg { + return { + type: "cosmos-sdk/DelegationDelegatorReward", + value: DelegationDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward { + return DelegationDelegatorReward.decode(message.value); + }, + toProto(message: DelegationDelegatorReward): Uint8Array { + return DelegationDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", + value: DelegationDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit { + return { + $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + title: "", + description: "", + recipient: "", + amount: "", + deposit: "" + }; +} +export const CommunityPoolSpendProposalWithDeposit = { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + encode(message: CommunityPoolSpendProposalWithDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.deposit !== "") { + writer.uint32(42).string(message.deposit); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.deposit = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.deposit = object.deposit ?? ""; + return message; + }, + fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit { + const message = createBaseCommunityPoolSpendProposalWithDeposit(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = object.deposit; + } + return message; + }, + toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.deposit = message.deposit === "" ? undefined : message.deposit; + return obj; + }, + fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit { + return CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); + }, + toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg { + return { + type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", + value: CommunityPoolSpendProposalWithDeposit.toAmino(message) + }; + }, + fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit { + return CommunityPoolSpendProposalWithDeposit.decode(message.value); + }, + toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array { + return CommunityPoolSpendProposalWithDeposit.encode(message).finish(); + }, + toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", + value: CommunityPoolSpendProposalWithDeposit.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/genesis.ts b/packages/api/src/cosmos/distribution/v1beta1/genesis.ts new file mode 100644 index 00000000..b98a03b0 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/genesis.ts @@ -0,0 +1,1118 @@ +//@ts-nocheck +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; +import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfo { + /** delegator_address is the address of the delegator. */ + delegatorAddress: string; + /** withdraw_address is the address to withdraw the delegation rewards to. */ + withdrawAddress: string; +} +export interface DelegatorWithdrawInfoProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; + value: Uint8Array; +} +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfoAmino { + /** delegator_address is the address of the delegator. */ + delegator_address?: string; + /** withdraw_address is the address to withdraw the delegation rewards to. */ + withdraw_address?: string; +} +export interface DelegatorWithdrawInfoAminoMsg { + type: "cosmos-sdk/DelegatorWithdrawInfo"; + value: DelegatorWithdrawInfoAmino; +} +/** + * DelegatorWithdrawInfo is the address for where distributions rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + */ +export interface DelegatorWithdrawInfoSDKType { + delegator_address: string; + withdraw_address: string; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** outstanding_rewards represents the oustanding rewards of a validator. */ + outstandingRewards: DecCoin[]; +} +export interface ValidatorOutstandingRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; + value: Uint8Array; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** outstanding_rewards represents the oustanding rewards of a validator. */ + outstanding_rewards?: DecCoinAmino[]; +} +export interface ValidatorOutstandingRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; + value: ValidatorOutstandingRewardsRecordAmino; +} +/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ +export interface ValidatorOutstandingRewardsRecordSDKType { + validator_address: string; + outstanding_rewards: DecCoinSDKType[]; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** accumulated is the accumulated commission of a validator. */ + accumulated: ValidatorAccumulatedCommission; +} +export interface ValidatorAccumulatedCommissionRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; + value: Uint8Array; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** accumulated is the accumulated commission of a validator. */ + accumulated?: ValidatorAccumulatedCommissionAmino; +} +export interface ValidatorAccumulatedCommissionRecordAminoMsg { + type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; + value: ValidatorAccumulatedCommissionRecordAmino; +} +/** + * ValidatorAccumulatedCommissionRecord is used for import / export via genesis + * json. + */ +export interface ValidatorAccumulatedCommissionRecordSDKType { + validator_address: string; + accumulated: ValidatorAccumulatedCommissionSDKType; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** period defines the period the historical rewards apply to. */ + period: bigint; + /** rewards defines the historical rewards of a validator. */ + rewards: ValidatorHistoricalRewards; +} +export interface ValidatorHistoricalRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; + value: Uint8Array; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** period defines the period the historical rewards apply to. */ + period?: string; + /** rewards defines the historical rewards of a validator. */ + rewards?: ValidatorHistoricalRewardsAmino; +} +export interface ValidatorHistoricalRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; + value: ValidatorHistoricalRewardsRecordAmino; +} +/** + * ValidatorHistoricalRewardsRecord is used for import / export via genesis + * json. + */ +export interface ValidatorHistoricalRewardsRecordSDKType { + validator_address: string; + period: bigint; + rewards: ValidatorHistoricalRewardsSDKType; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** rewards defines the current rewards of a validator. */ + rewards: ValidatorCurrentRewards; +} +export interface ValidatorCurrentRewardsRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; + value: Uint8Array; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** rewards defines the current rewards of a validator. */ + rewards?: ValidatorCurrentRewardsAmino; +} +export interface ValidatorCurrentRewardsRecordAminoMsg { + type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; + value: ValidatorCurrentRewardsRecordAmino; +} +/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ +export interface ValidatorCurrentRewardsRecordSDKType { + validator_address: string; + rewards: ValidatorCurrentRewardsSDKType; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecord { + /** delegator_address is the address of the delegator. */ + delegatorAddress: string; + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** starting_info defines the starting info of a delegator. */ + startingInfo: DelegatorStartingInfo; +} +export interface DelegatorStartingInfoRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; + value: Uint8Array; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecordAmino { + /** delegator_address is the address of the delegator. */ + delegator_address?: string; + /** validator_address is the address of the validator. */ + validator_address?: string; + /** starting_info defines the starting info of a delegator. */ + starting_info?: DelegatorStartingInfoAmino; +} +export interface DelegatorStartingInfoRecordAminoMsg { + type: "cosmos-sdk/DelegatorStartingInfoRecord"; + value: DelegatorStartingInfoRecordAmino; +} +/** DelegatorStartingInfoRecord used for import / export via genesis json. */ +export interface DelegatorStartingInfoRecordSDKType { + delegator_address: string; + validator_address: string; + starting_info: DelegatorStartingInfoSDKType; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecord { + /** validator_address is the address of the validator. */ + validatorAddress: string; + /** height defines the block height at which the slash event occured. */ + height: bigint; + /** period is the period of the slash event. */ + period: bigint; + /** validator_slash_event describes the slash event. */ + validatorSlashEvent: ValidatorSlashEvent; +} +export interface ValidatorSlashEventRecordProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; + value: Uint8Array; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecordAmino { + /** validator_address is the address of the validator. */ + validator_address?: string; + /** height defines the block height at which the slash event occured. */ + height?: string; + /** period is the period of the slash event. */ + period?: string; + /** validator_slash_event describes the slash event. */ + validator_slash_event?: ValidatorSlashEventAmino; +} +export interface ValidatorSlashEventRecordAminoMsg { + type: "cosmos-sdk/ValidatorSlashEventRecord"; + value: ValidatorSlashEventRecordAmino; +} +/** ValidatorSlashEventRecord is used for import / export via genesis json. */ +export interface ValidatorSlashEventRecordSDKType { + validator_address: string; + height: bigint; + period: bigint; + validator_slash_event: ValidatorSlashEventSDKType; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of the module. */ + params: Params; + /** fee_pool defines the fee pool at genesis. */ + feePool: FeePool; + /** fee_pool defines the delegator withdraw infos at genesis. */ + delegatorWithdrawInfos: DelegatorWithdrawInfo[]; + /** fee_pool defines the previous proposer at genesis. */ + previousProposer: string; + /** fee_pool defines the outstanding rewards of all validators at genesis. */ + outstandingRewards: ValidatorOutstandingRewardsRecord[]; + /** fee_pool defines the accumulated commisions of all validators at genesis. */ + validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; + /** fee_pool defines the historical rewards of all validators at genesis. */ + validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; + /** fee_pool defines the current rewards of all validators at genesis. */ + validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; + /** fee_pool defines the delegator starting infos at genesis. */ + delegatorStartingInfos: DelegatorStartingInfoRecord[]; + /** fee_pool defines the validator slash events at genesis. */ + validatorSlashEvents: ValidatorSlashEventRecord[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; + /** fee_pool defines the fee pool at genesis. */ + fee_pool?: FeePoolAmino; + /** fee_pool defines the delegator withdraw infos at genesis. */ + delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; + /** fee_pool defines the previous proposer at genesis. */ + previous_proposer?: string; + /** fee_pool defines the outstanding rewards of all validators at genesis. */ + outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; + /** fee_pool defines the accumulated commisions of all validators at genesis. */ + validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; + /** fee_pool defines the historical rewards of all validators at genesis. */ + validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; + /** fee_pool defines the current rewards of all validators at genesis. */ + validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; + /** fee_pool defines the delegator starting infos at genesis. */ + delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; + /** fee_pool defines the validator slash events at genesis. */ + validator_slash_events?: ValidatorSlashEventRecordAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the distribution module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + fee_pool: FeePoolSDKType; + delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; + previous_proposer: string; + outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; + validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; + validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; + validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; + delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; + validator_slash_events: ValidatorSlashEventRecordSDKType[]; +} +function createBaseDelegatorWithdrawInfo(): DelegatorWithdrawInfo { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +export const DelegatorWithdrawInfo = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + encode(message: DelegatorWithdrawInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorWithdrawInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelegatorWithdrawInfo { + const message = createBaseDelegatorWithdrawInfo(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo { + const message = createBaseDelegatorWithdrawInfo(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo { + return DelegatorWithdrawInfo.fromAmino(object.value); + }, + toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg { + return { + type: "cosmos-sdk/DelegatorWithdrawInfo", + value: DelegatorWithdrawInfo.toAmino(message) + }; + }, + fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo { + return DelegatorWithdrawInfo.decode(message.value); + }, + toProto(message: DelegatorWithdrawInfo): Uint8Array { + return DelegatorWithdrawInfo.encode(message).finish(); + }, + toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", + value: DelegatorWithdrawInfo.encode(message).finish() + }; + } +}; +function createBaseValidatorOutstandingRewardsRecord(): ValidatorOutstandingRewardsRecord { + return { + validatorAddress: "", + outstandingRewards: [] + }; +} +export const ValidatorOutstandingRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + encode(message: ValidatorOutstandingRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + for (const v of message.outstandingRewards) { + DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorOutstandingRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorOutstandingRewardsRecord { + const message = createBaseValidatorOutstandingRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord { + const message = createBaseValidatorOutstandingRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.outstanding_rewards = message.outstandingRewards; + } + return obj; + }, + fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord { + return ValidatorOutstandingRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg { + return { + type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", + value: ValidatorOutstandingRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord { + return ValidatorOutstandingRewardsRecord.decode(message.value); + }, + toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array { + return ValidatorOutstandingRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", + value: ValidatorOutstandingRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorAccumulatedCommissionRecord(): ValidatorAccumulatedCommissionRecord { + return { + validatorAddress: "", + accumulated: ValidatorAccumulatedCommission.fromPartial({}) + }; +} +export const ValidatorAccumulatedCommissionRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + encode(message: ValidatorAccumulatedCommissionRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.accumulated !== undefined) { + ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorAccumulatedCommissionRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord { + const message = createBaseValidatorAccumulatedCommissionRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; + return message; + }, + fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord { + const message = createBaseValidatorAccumulatedCommissionRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.accumulated !== undefined && object.accumulated !== null) { + message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated); + } + return message; + }, + toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord { + return ValidatorAccumulatedCommissionRecord.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg { + return { + type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", + value: ValidatorAccumulatedCommissionRecord.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord { + return ValidatorAccumulatedCommissionRecord.decode(message.value); + }, + toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array { + return ValidatorAccumulatedCommissionRecord.encode(message).finish(); + }, + toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", + value: ValidatorAccumulatedCommissionRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorHistoricalRewardsRecord(): ValidatorHistoricalRewardsRecord { + return { + validatorAddress: "", + period: BigInt(0), + rewards: ValidatorHistoricalRewards.fromPartial({}) + }; +} +export const ValidatorHistoricalRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + encode(message: ValidatorHistoricalRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.period !== BigInt(0)) { + writer.uint32(16).uint64(message.period); + } + if (message.rewards !== undefined) { + ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorHistoricalRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.period = reader.uint64(); + break; + case 3: + message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorHistoricalRewardsRecord { + const message = createBaseValidatorHistoricalRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord { + const message = createBaseValidatorHistoricalRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord { + return ValidatorHistoricalRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg { + return { + type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", + value: ValidatorHistoricalRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord { + return ValidatorHistoricalRewardsRecord.decode(message.value); + }, + toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array { + return ValidatorHistoricalRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", + value: ValidatorHistoricalRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorCurrentRewardsRecord(): ValidatorCurrentRewardsRecord { + return { + validatorAddress: "", + rewards: ValidatorCurrentRewards.fromPartial({}) + }; +} +export const ValidatorCurrentRewardsRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + encode(message: ValidatorCurrentRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.rewards !== undefined) { + ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorCurrentRewardsRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorCurrentRewardsRecord { + const message = createBaseValidatorCurrentRewardsRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord { + const message = createBaseValidatorCurrentRewardsRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord { + return ValidatorCurrentRewardsRecord.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg { + return { + type: "cosmos-sdk/ValidatorCurrentRewardsRecord", + value: ValidatorCurrentRewardsRecord.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord { + return ValidatorCurrentRewardsRecord.decode(message.value); + }, + toProto(message: ValidatorCurrentRewardsRecord): Uint8Array { + return ValidatorCurrentRewardsRecord.encode(message).finish(); + }, + toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", + value: ValidatorCurrentRewardsRecord.encode(message).finish() + }; + } +}; +function createBaseDelegatorStartingInfoRecord(): DelegatorStartingInfoRecord { + return { + delegatorAddress: "", + validatorAddress: "", + startingInfo: DelegatorStartingInfo.fromPartial({}) + }; +} +export const DelegatorStartingInfoRecord = { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + encode(message: DelegatorStartingInfoRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.startingInfo !== undefined) { + DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegatorStartingInfoRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelegatorStartingInfoRecord { + const message = createBaseDelegatorStartingInfoRecord(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; + return message; + }, + fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord { + const message = createBaseDelegatorStartingInfoRecord(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_info !== undefined && object.starting_info !== null) { + message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info); + } + return message; + }, + toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; + return obj; + }, + fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord { + return DelegatorStartingInfoRecord.fromAmino(object.value); + }, + toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg { + return { + type: "cosmos-sdk/DelegatorStartingInfoRecord", + value: DelegatorStartingInfoRecord.toAmino(message) + }; + }, + fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord { + return DelegatorStartingInfoRecord.decode(message.value); + }, + toProto(message: DelegatorStartingInfoRecord): Uint8Array { + return DelegatorStartingInfoRecord.encode(message).finish(); + }, + toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", + value: DelegatorStartingInfoRecord.encode(message).finish() + }; + } +}; +function createBaseValidatorSlashEventRecord(): ValidatorSlashEventRecord { + return { + validatorAddress: "", + height: BigInt(0), + period: BigInt(0), + validatorSlashEvent: ValidatorSlashEvent.fromPartial({}) + }; +} +export const ValidatorSlashEventRecord = { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + encode(message: ValidatorSlashEventRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).uint64(message.height); + } + if (message.period !== BigInt(0)) { + writer.uint32(24).uint64(message.period); + } + if (message.validatorSlashEvent !== undefined) { + ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSlashEventRecord(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.height = reader.uint64(); + break; + case 3: + message.period = reader.uint64(); + break; + case 4: + message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorSlashEventRecord { + const message = createBaseValidatorSlashEventRecord(); + message.validatorAddress = object.validatorAddress ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); + message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; + return message; + }, + fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord { + const message = createBaseValidatorSlashEventRecord(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.period !== undefined && object.period !== null) { + message.period = BigInt(object.period); + } + if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { + message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event); + } + return message; + }, + toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; + obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord { + return ValidatorSlashEventRecord.fromAmino(object.value); + }, + toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg { + return { + type: "cosmos-sdk/ValidatorSlashEventRecord", + value: ValidatorSlashEventRecord.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord { + return ValidatorSlashEventRecord.decode(message.value); + }, + toProto(message: ValidatorSlashEventRecord): Uint8Array { + return ValidatorSlashEventRecord.encode(message).finish(); + }, + toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", + value: ValidatorSlashEventRecord.encode(message).finish() + }; + } +}; +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}), + feePool: FeePool.fromPartial({}), + delegatorWithdrawInfos: [], + previousProposer: "", + outstandingRewards: [], + validatorAccumulatedCommissions: [], + validatorHistoricalRewards: [], + validatorCurrentRewards: [], + delegatorStartingInfos: [], + validatorSlashEvents: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.feePool !== undefined) { + FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatorWithdrawInfos) { + DelegatorWithdrawInfo.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.previousProposer !== "") { + writer.uint32(34).string(message.previousProposer); + } + for (const v of message.outstandingRewards) { + ValidatorOutstandingRewardsRecord.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.validatorAccumulatedCommissions) { + ValidatorAccumulatedCommissionRecord.encode(v!, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.validatorHistoricalRewards) { + ValidatorHistoricalRewardsRecord.encode(v!, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.validatorCurrentRewards) { + ValidatorCurrentRewardsRecord.encode(v!, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.delegatorStartingInfos) { + DelegatorStartingInfoRecord.encode(v!, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.validatorSlashEvents) { + ValidatorSlashEventRecord.encode(v!, writer.uint32(82).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.feePool = FeePool.decode(reader, reader.uint32()); + break; + case 3: + message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32())); + break; + case 4: + message.previousProposer = reader.string(); + break; + case 5: + message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); + break; + case 7: + message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); + break; + case 8: + message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); + break; + case 9: + message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32())); + break; + case 10: + message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined; + message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || []; + message.previousProposer = object.previousProposer ?? ""; + message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; + message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; + message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; + message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || []; + message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || []; + message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.fee_pool !== undefined && object.fee_pool !== null) { + message.feePool = FeePool.fromAmino(object.fee_pool); + } + message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || []; + if (object.previous_proposer !== undefined && object.previous_proposer !== null) { + message.previousProposer = object.previous_proposer; + } + message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; + message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; + message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; + message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || []; + message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || []; + message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : undefined; + if (message.delegatorWithdrawInfos) { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined); + } else { + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; + } + obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; + if (message.outstandingRewards) { + obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); + } else { + obj.outstanding_rewards = message.outstandingRewards; + } + if (message.validatorAccumulatedCommissions) { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); + } else { + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; + } + if (message.validatorHistoricalRewards) { + obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); + } else { + obj.validator_historical_rewards = message.validatorHistoricalRewards; + } + if (message.validatorCurrentRewards) { + obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined); + } else { + obj.validator_current_rewards = message.validatorCurrentRewards; + } + if (message.delegatorStartingInfos) { + obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined); + } else { + obj.delegator_starting_infos = message.delegatorStartingInfos; + } + if (message.validatorSlashEvents) { + obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined); + } else { + obj.validator_slash_events = message.validatorSlashEvents; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/query.lcd.ts b/packages/api/src/cosmos/distribution/v1beta1/query.lcd.ts new file mode 100644 index 00000000..49389ca8 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/query.lcd.ts @@ -0,0 +1,81 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + /* Params queries params of the distribution module. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `cosmos/distribution/v1beta1/params`; + return await this.req.get(endpoint); + } + /* ValidatorOutstandingRewards queries rewards of a validator address. */ + async validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; + return await this.req.get(endpoint); + } + /* ValidatorCommission queries accumulated commission for a validator. */ + async validatorCommission(params: QueryValidatorCommissionRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; + return await this.req.get(endpoint); + } + /* ValidatorSlashes queries slash events of a validator. */ + async validatorSlashes(params: QueryValidatorSlashesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.startingHeight !== "undefined") { + options.params.starting_height = params.startingHeight; + } + if (typeof params?.endingHeight !== "undefined") { + options.params.ending_height = params.endingHeight; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; + return await this.req.get(endpoint, options); + } + /* DelegationRewards queries the total rewards accrued by a delegation. */ + async delegationRewards(params: QueryDelegationRewardsRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; + return await this.req.get(endpoint); + } + /* DelegationTotalRewards queries the total rewards accrued by a each + validator. */ + async delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; + return await this.req.get(endpoint); + } + /* DelegatorValidators queries the validators of a delegator. */ + async delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; + return await this.req.get(endpoint); + } + /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ + async delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise { + const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; + return await this.req.get(endpoint); + } + /* CommunityPool queries the community pool coins. */ + async communityPool(_params: QueryCommunityPoolRequest = {}): Promise { + const endpoint = `cosmos/distribution/v1beta1/community_pool`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/distribution/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..6ff5c4c2 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/query.rpc.Query.ts @@ -0,0 +1,122 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; +/** Query defines the gRPC querier service for distribution module. */ +export interface Query { + /** Params queries params of the distribution module. */ + params(request?: QueryParamsRequest): Promise; + /** ValidatorOutstandingRewards queries rewards of a validator address. */ + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + /** ValidatorCommission queries accumulated commission for a validator. */ + validatorCommission(request: QueryValidatorCommissionRequest): Promise; + /** ValidatorSlashes queries slash events of a validator. */ + validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + /** DelegationRewards queries the total rewards accrued by a delegation. */ + delegationRewards(request: QueryDelegationRewardsRequest): Promise; + /** + * DelegationTotalRewards queries the total rewards accrued by a each + * validator. + */ + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + /** DelegatorValidators queries the validators of a delegator. */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + /** CommunityPool queries the community pool coins. */ + communityPool(request?: QueryCommunityPoolRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { + const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); + return promise.then(data => QueryValidatorOutstandingRewardsResponse.decode(new BinaryReader(data))); + } + validatorCommission(request: QueryValidatorCommissionRequest): Promise { + const data = QueryValidatorCommissionRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); + return promise.then(data => QueryValidatorCommissionResponse.decode(new BinaryReader(data))); + } + validatorSlashes(request: QueryValidatorSlashesRequest): Promise { + const data = QueryValidatorSlashesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); + return promise.then(data => QueryValidatorSlashesResponse.decode(new BinaryReader(data))); + } + delegationRewards(request: QueryDelegationRewardsRequest): Promise { + const data = QueryDelegationRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); + return promise.then(data => QueryDelegationRewardsResponse.decode(new BinaryReader(data))); + } + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { + const data = QueryDelegationTotalRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); + return promise.then(data => QueryDelegationTotalRewardsResponse.decode(new BinaryReader(data))); + } + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); + } + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { + const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); + return promise.then(data => QueryDelegatorWithdrawAddressResponse.decode(new BinaryReader(data))); + } + communityPool(request: QueryCommunityPoolRequest = {}): Promise { + const data = QueryCommunityPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); + return promise.then(data => QueryCommunityPoolResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { + return queryService.validatorOutstandingRewards(request); + }, + validatorCommission(request: QueryValidatorCommissionRequest): Promise { + return queryService.validatorCommission(request); + }, + validatorSlashes(request: QueryValidatorSlashesRequest): Promise { + return queryService.validatorSlashes(request); + }, + delegationRewards(request: QueryDelegationRewardsRequest): Promise { + return queryService.delegationRewards(request); + }, + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { + return queryService.delegationTotalRewards(request); + }, + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + return queryService.delegatorValidators(request); + }, + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { + return queryService.delegatorWithdrawAddress(request); + }, + communityPool(request?: QueryCommunityPoolRequest): Promise { + return queryService.communityPool(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/query.ts b/packages/api/src/cosmos/distribution/v1beta1/query.ts new file mode 100644 index 00000000..cc887847 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/query.ts @@ -0,0 +1,1857 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; +import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryValidatorOutstandingRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryValidatorOutstandingRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; + value: QueryValidatorOutstandingRewardsRequestAmino; +} +/** + * QueryValidatorOutstandingRewardsRequest is the request type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsRequestSDKType { + validator_address: string; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponse { + rewards: ValidatorOutstandingRewards; +} +export interface QueryValidatorOutstandingRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponseAmino { + rewards?: ValidatorOutstandingRewardsAmino; +} +export interface QueryValidatorOutstandingRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse"; + value: QueryValidatorOutstandingRewardsResponseAmino; +} +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface QueryValidatorOutstandingRewardsResponseSDKType { + rewards: ValidatorOutstandingRewardsSDKType; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryValidatorCommissionRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; + value: Uint8Array; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryValidatorCommissionRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorCommissionRequest"; + value: QueryValidatorCommissionRequestAmino; +} +/** + * QueryValidatorCommissionRequest is the request type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionRequestSDKType { + validator_address: string; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponse { + /** commission defines the commision the validator received. */ + commission: ValidatorAccumulatedCommission; +} +export interface QueryValidatorCommissionResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; + value: Uint8Array; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponseAmino { + /** commission defines the commision the validator received. */ + commission?: ValidatorAccumulatedCommissionAmino; +} +export interface QueryValidatorCommissionResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorCommissionResponse"; + value: QueryValidatorCommissionResponseAmino; +} +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface QueryValidatorCommissionResponseSDKType { + commission: ValidatorAccumulatedCommissionSDKType; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequest { + /** validator_address defines the validator address to query for. */ + validatorAddress: string; + /** starting_height defines the optional starting height to query the slashes. */ + startingHeight: bigint; + /** starting_height defines the optional ending height to query the slashes. */ + endingHeight: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorSlashesRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; + value: Uint8Array; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequestAmino { + /** validator_address defines the validator address to query for. */ + validator_address?: string; + /** starting_height defines the optional starting height to query the slashes. */ + starting_height?: string; + /** starting_height defines the optional ending height to query the slashes. */ + ending_height?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorSlashesRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorSlashesRequest"; + value: QueryValidatorSlashesRequestAmino; +} +/** + * QueryValidatorSlashesRequest is the request type for the + * Query/ValidatorSlashes RPC method + */ +export interface QueryValidatorSlashesRequestSDKType { + validator_address: string; + starting_height: bigint; + ending_height: bigint; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponse { + /** slashes defines the slashes the validator received. */ + slashes: ValidatorSlashEvent[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorSlashesResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; + value: Uint8Array; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponseAmino { + /** slashes defines the slashes the validator received. */ + slashes?: ValidatorSlashEventAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorSlashesResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorSlashesResponse"; + value: QueryValidatorSlashesResponseAmino; +} +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface QueryValidatorSlashesResponseSDKType { + slashes: ValidatorSlashEventSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; + /** validator_address defines the validator address to query for. */ + validatorAddress: string; +} +export interface QueryDelegationRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; + value: Uint8Array; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; + /** validator_address defines the validator address to query for. */ + validator_address?: string; +} +export interface QueryDelegationRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationRewardsRequest"; + value: QueryDelegationRewardsRequestAmino; +} +/** + * QueryDelegationRewardsRequest is the request type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsRequestSDKType { + delegator_address: string; + validator_address: string; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponse { + /** rewards defines the rewards accrued by a delegation. */ + rewards: DecCoin[]; +} +export interface QueryDelegationRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; + value: Uint8Array; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponseAmino { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: DecCoinAmino[]; +} +export interface QueryDelegationRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationRewardsResponse"; + value: QueryDelegationRewardsResponseAmino; +} +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface QueryDelegationRewardsResponseSDKType { + rewards: DecCoinSDKType[]; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegationTotalRewardsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; + value: Uint8Array; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegationTotalRewardsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; + value: QueryDelegationTotalRewardsRequestAmino; +} +/** + * QueryDelegationTotalRewardsRequest is the request type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponse { + /** rewards defines all the rewards accrued by a delegator. */ + rewards: DelegationDelegatorReward[]; + /** total defines the sum of all the rewards. */ + total: DecCoin[]; +} +export interface QueryDelegationTotalRewardsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; + value: Uint8Array; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponseAmino { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: DelegationDelegatorRewardAmino[]; + /** total defines the sum of all the rewards. */ + total?: DecCoinAmino[]; +} +export interface QueryDelegationTotalRewardsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; + value: QueryDelegationTotalRewardsResponseAmino; +} +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface QueryDelegationTotalRewardsResponseSDKType { + rewards: DelegationDelegatorRewardSDKType[]; + total: DecCoinSDKType[]; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegatorValidatorsRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegatorValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; + value: QueryDelegatorValidatorsRequestAmino; +} +/** + * QueryDelegatorValidatorsRequest is the request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponse { + /** validators defines the validators a delegator is delegating for. */ + validators: string[]; +} +export interface QueryDelegatorValidatorsResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseAmino { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; +} +export interface QueryDelegatorValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; + value: QueryDelegatorValidatorsResponseAmino; +} +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseSDKType { + validators: string[]; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequest { + /** delegator_address defines the delegator address to query for. */ + delegatorAddress: string; +} +export interface QueryDelegatorWithdrawAddressRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequestAmino { + /** delegator_address defines the delegator address to query for. */ + delegator_address?: string; +} +export interface QueryDelegatorWithdrawAddressRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; + value: QueryDelegatorWithdrawAddressRequestAmino; +} +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressRequestSDKType { + delegator_address: string; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponse { + /** withdraw_address defines the delegator address to query for. */ + withdrawAddress: string; +} +export interface QueryDelegatorWithdrawAddressResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponseAmino { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; +} +export interface QueryDelegatorWithdrawAddressResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; + value: QueryDelegatorWithdrawAddressResponseAmino; +} +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface QueryDelegatorWithdrawAddressResponseSDKType { + withdraw_address: string; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequest {} +export interface QueryCommunityPoolRequestProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; + value: Uint8Array; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequestAmino {} +export interface QueryCommunityPoolRequestAminoMsg { + type: "cosmos-sdk/QueryCommunityPoolRequest"; + value: QueryCommunityPoolRequestAmino; +} +/** + * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC + * method. + */ +export interface QueryCommunityPoolRequestSDKType {} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponse { + /** pool defines community pool's coins. */ + pool: DecCoin[]; +} +export interface QueryCommunityPoolResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; + value: Uint8Array; +} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponseAmino { + /** pool defines community pool's coins. */ + pool?: DecCoinAmino[]; +} +export interface QueryCommunityPoolResponseAminoMsg { + type: "cosmos-sdk/QueryCommunityPoolResponse"; + value: QueryCommunityPoolResponseAmino; +} +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface QueryCommunityPoolResponseSDKType { + pool: DecCoinSDKType[]; +} +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsRequest(): QueryValidatorOutstandingRewardsRequest { + return { + validatorAddress: "" + }; +} +export const QueryValidatorOutstandingRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + encode(message: QueryValidatorOutstandingRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest { + const message = createBaseQueryValidatorOutstandingRewardsRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest { + return QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", + value: QueryValidatorOutstandingRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest { + return QueryValidatorOutstandingRewardsRequest.decode(message.value); + }, + toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array { + return QueryValidatorOutstandingRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", + value: QueryValidatorOutstandingRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorOutstandingRewardsResponse(): QueryValidatorOutstandingRewardsResponse { + return { + rewards: ValidatorOutstandingRewards.fromPartial({}) + }; +} +export const QueryValidatorOutstandingRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + encode(message: QueryValidatorOutstandingRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.rewards !== undefined) { + ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; + return message; + }, + fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse { + const message = createBaseQueryValidatorOutstandingRewardsResponse(); + if (object.rewards !== undefined && object.rewards !== null) { + message.rewards = ValidatorOutstandingRewards.fromAmino(object.rewards); + } + return message; + }, + toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino { + const obj: any = {}; + obj.rewards = message.rewards ? ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse { + return QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", + value: QueryValidatorOutstandingRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse { + return QueryValidatorOutstandingRewardsResponse.decode(message.value); + }, + toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array { + return QueryValidatorOutstandingRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", + value: QueryValidatorOutstandingRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionRequest(): QueryValidatorCommissionRequest { + return { + validatorAddress: "" + }; +} +export const QueryValidatorCommissionRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + encode(message: QueryValidatorCommissionRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorCommissionRequest { + const message = createBaseQueryValidatorCommissionRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest { + const message = createBaseQueryValidatorCommissionRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest { + return QueryValidatorCommissionRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorCommissionRequest", + value: QueryValidatorCommissionRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest { + return QueryValidatorCommissionRequest.decode(message.value); + }, + toProto(message: QueryValidatorCommissionRequest): Uint8Array { + return QueryValidatorCommissionRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", + value: QueryValidatorCommissionRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorCommissionResponse(): QueryValidatorCommissionResponse { + return { + commission: ValidatorAccumulatedCommission.fromPartial({}) + }; +} +export const QueryValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + encode(message: QueryValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.commission !== undefined) { + ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorCommissionResponse { + const message = createBaseQueryValidatorCommissionResponse(); + message.commission = object.commission !== undefined && object.commission !== null ? ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; + return message; + }, + fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse { + const message = createBaseQueryValidatorCommissionResponse(); + if (object.commission !== undefined && object.commission !== null) { + message.commission = ValidatorAccumulatedCommission.fromAmino(object.commission); + } + return message; + }, + toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino { + const obj: any = {}; + obj.commission = message.commission ? ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse { + return QueryValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorCommissionResponse", + value: QueryValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse { + return QueryValidatorCommissionResponse.decode(message.value); + }, + toProto(message: QueryValidatorCommissionResponse): Uint8Array { + return QueryValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", + value: QueryValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesRequest(): QueryValidatorSlashesRequest { + return { + validatorAddress: "", + startingHeight: BigInt(0), + endingHeight: BigInt(0), + pagination: undefined + }; +} +export const QueryValidatorSlashesRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + encode(message: QueryValidatorSlashesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + if (message.startingHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.startingHeight); + } + if (message.endingHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.endingHeight); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + case 2: + message.startingHeight = reader.uint64(); + break; + case 3: + message.endingHeight = reader.uint64(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorSlashesRequest { + const message = createBaseQueryValidatorSlashesRequest(); + message.validatorAddress = object.validatorAddress ?? ""; + message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); + message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest { + const message = createBaseQueryValidatorSlashesRequest(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.starting_height !== undefined && object.starting_height !== null) { + message.startingHeight = BigInt(object.starting_height); + } + if (object.ending_height !== undefined && object.ending_height !== null) { + message.endingHeight = BigInt(object.ending_height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; + obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest { + return QueryValidatorSlashesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorSlashesRequest", + value: QueryValidatorSlashesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest { + return QueryValidatorSlashesRequest.decode(message.value); + }, + toProto(message: QueryValidatorSlashesRequest): Uint8Array { + return QueryValidatorSlashesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", + value: QueryValidatorSlashesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorSlashesResponse(): QueryValidatorSlashesResponse { + return { + slashes: [], + pagination: undefined + }; +} +export const QueryValidatorSlashesResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + encode(message: QueryValidatorSlashesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.slashes) { + ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorSlashesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorSlashesResponse { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse { + const message = createBaseQueryValidatorSlashesResponse(); + message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino { + const obj: any = {}; + if (message.slashes) { + obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); + } else { + obj.slashes = message.slashes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse { + return QueryValidatorSlashesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorSlashesResponse", + value: QueryValidatorSlashesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse { + return QueryValidatorSlashesResponse.decode(message.value); + }, + toProto(message: QueryValidatorSlashesResponse): Uint8Array { + return QueryValidatorSlashesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", + value: QueryValidatorSlashesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsRequest(): QueryDelegationRewardsRequest { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const QueryDelegationRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + encode(message: QueryDelegationRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationRewardsRequest { + const message = createBaseQueryDelegationRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest { + const message = createBaseQueryDelegationRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest { + return QueryDelegationRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationRewardsRequest", + value: QueryDelegationRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest { + return QueryDelegationRewardsRequest.decode(message.value); + }, + toProto(message: QueryDelegationRewardsRequest): Uint8Array { + return QueryDelegationRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", + value: QueryDelegationRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRewardsResponse(): QueryDelegationRewardsResponse { + return { + rewards: [] + }; +} +export const QueryDelegationRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + encode(message: QueryDelegationRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.rewards) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationRewardsResponse { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse { + const message = createBaseQueryDelegationRewardsResponse(); + message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino { + const obj: any = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.rewards = message.rewards; + } + return obj; + }, + fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse { + return QueryDelegationRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationRewardsResponse", + value: QueryDelegationRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse { + return QueryDelegationRewardsResponse.decode(message.value); + }, + toProto(message: QueryDelegationRewardsResponse): Uint8Array { + return QueryDelegationRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", + value: QueryDelegationRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsRequest(): QueryDelegationTotalRewardsRequest { + return { + delegatorAddress: "" + }; +} +export const QueryDelegationTotalRewardsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + encode(message: QueryDelegationTotalRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationTotalRewardsRequest { + const message = createBaseQueryDelegationTotalRewardsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest { + const message = createBaseQueryDelegationTotalRewardsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest { + return QueryDelegationTotalRewardsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", + value: QueryDelegationTotalRewardsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest { + return QueryDelegationTotalRewardsRequest.decode(message.value); + }, + toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array { + return QueryDelegationTotalRewardsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", + value: QueryDelegationTotalRewardsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationTotalRewardsResponse(): QueryDelegationTotalRewardsResponse { + return { + rewards: [], + total: [] + }; +} +export const QueryDelegationTotalRewardsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + encode(message: QueryDelegationTotalRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.rewards) { + DelegationDelegatorReward.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.total) { + DecCoin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationTotalRewardsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32())); + break; + case 2: + message.total.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationTotalRewardsResponse { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || []; + message.total = object.total?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse { + const message = createBaseQueryDelegationTotalRewardsResponse(); + message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromAmino(e)) || []; + message.total = object.total?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino { + const obj: any = {}; + if (message.rewards) { + obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined); + } else { + obj.rewards = message.rewards; + } + if (message.total) { + obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.total = message.total; + } + return obj; + }, + fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse { + return QueryDelegationTotalRewardsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", + value: QueryDelegationTotalRewardsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse { + return QueryDelegationTotalRewardsResponse.decode(message.value); + }, + toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array { + return QueryDelegationTotalRewardsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", + value: QueryDelegationTotalRewardsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest { + return { + delegatorAddress: "" + }; +} +export const QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorsRequest { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest { + return QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest { + return QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorsRequest): Uint8Array { + return QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse { + return { + validators: [] + }; +} +export const QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validators) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorsResponse { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => e) || []; + return message; + }, + toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino { + const obj: any = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e); + } else { + obj.validators = message.validators; + } + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse { + return QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse { + return QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorsResponse): Uint8Array { + return QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressRequest(): QueryDelegatorWithdrawAddressRequest { + return { + delegatorAddress: "" + }; +} +export const QueryDelegatorWithdrawAddressRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + encode(message: QueryDelegatorWithdrawAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + message.delegatorAddress = object.delegatorAddress ?? ""; + return message; + }, + fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest { + const message = createBaseQueryDelegatorWithdrawAddressRequest(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + return message; + }, + toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + return obj; + }, + fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest { + return QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", + value: QueryDelegatorWithdrawAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest { + return QueryDelegatorWithdrawAddressRequest.decode(message.value); + }, + toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array { + return QueryDelegatorWithdrawAddressRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", + value: QueryDelegatorWithdrawAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorWithdrawAddressResponse(): QueryDelegatorWithdrawAddressResponse { + return { + withdrawAddress: "" + }; +} +export const QueryDelegatorWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + encode(message: QueryDelegatorWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.withdrawAddress !== "") { + writer.uint32(10).string(message.withdrawAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse { + const message = createBaseQueryDelegatorWithdrawAddressResponse(); + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino { + const obj: any = {}; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse { + return QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", + value: QueryDelegatorWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse { + return QueryDelegatorWithdrawAddressResponse.decode(message.value); + }, + toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array { + return QueryDelegatorWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", + value: QueryDelegatorWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolRequest(): QueryCommunityPoolRequest { + return {}; +} +export const QueryCommunityPoolRequest = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + encode(_: QueryCommunityPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryCommunityPoolRequest { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest { + const message = createBaseQueryCommunityPoolRequest(); + return message; + }, + toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest { + return QueryCommunityPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg { + return { + type: "cosmos-sdk/QueryCommunityPoolRequest", + value: QueryCommunityPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest { + return QueryCommunityPoolRequest.decode(message.value); + }, + toProto(message: QueryCommunityPoolRequest): Uint8Array { + return QueryCommunityPoolRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", + value: QueryCommunityPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCommunityPoolResponse(): QueryCommunityPoolResponse { + return { + pool: [] + }; +} +export const QueryCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + encode(message: QueryCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.pool) { + DecCoin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool.push(DecCoin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCommunityPoolResponse { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse { + const message = createBaseQueryCommunityPoolResponse(); + message.pool = object.pool?.map(e => DecCoin.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino { + const obj: any = {}; + if (message.pool) { + obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined); + } else { + obj.pool = message.pool; + } + return obj; + }, + fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse { + return QueryCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg { + return { + type: "cosmos-sdk/QueryCommunityPoolResponse", + value: QueryCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse { + return QueryCommunityPoolResponse.decode(message.value); + }, + toProto(message: QueryCommunityPoolResponse): Uint8Array { + return QueryCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", + value: QueryCommunityPoolResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/tx.amino.ts b/packages/api/src/cosmos/distribution/v1beta1/tx.amino.ts new file mode 100644 index 00000000..a55f1e3f --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/tx.amino.ts @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export const AminoConverter = { + "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { + aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", + toAmino: MsgSetWithdrawAddress.toAmino, + fromAmino: MsgSetWithdrawAddress.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { + aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", + toAmino: MsgWithdrawDelegatorReward.toAmino, + fromAmino: MsgWithdrawDelegatorReward.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { + aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", + toAmino: MsgWithdrawValidatorCommission.toAmino, + fromAmino: MsgWithdrawValidatorCommission.fromAmino + }, + "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { + aminoType: "cosmos-sdk/MsgFundCommunityPool", + toAmino: MsgFundCommunityPool.toAmino, + fromAmino: MsgFundCommunityPool.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/tx.registry.ts b/packages/api/src/cosmos/distribution/v1beta1/tx.registry.ts new file mode 100644 index 00000000..52151ed5 --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/tx.registry.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + setWithdrawAddress(value: MsgSetWithdrawAddress) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.encode(value).finish() + }; + }, + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.encode(value).finish() + }; + }, + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.encode(value).finish() + }; + }, + fundCommunityPool(value: MsgFundCommunityPool) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.encode(value).finish() + }; + } + }, + withTypeUrl: { + setWithdrawAddress(value: MsgSetWithdrawAddress) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value + }; + }, + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value + }; + }, + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value + }; + }, + fundCommunityPool(value: MsgFundCommunityPool) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value + }; + } + }, + fromPartial: { + setWithdrawAddress(value: MsgSetWithdrawAddress) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.fromPartial(value) + }; + }, + withdrawDelegatorReward(value: MsgWithdrawDelegatorReward) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.fromPartial(value) + }; + }, + withdrawValidatorCommission(value: MsgWithdrawValidatorCommission) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.fromPartial(value) + }; + }, + fundCommunityPool(value: MsgFundCommunityPool) { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..fefe32ff --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,57 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; +/** Msg defines the distribution Msg service. */ +export interface Msg { + /** + * SetWithdrawAddress defines a method to change the withdraw address + * for a delegator (or validator self-delegation). + */ + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; + /** + * WithdrawDelegatorReward defines a method to withdraw rewards of delegator + * from a single validator. + */ + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; + /** + * WithdrawValidatorCommission defines a method to withdraw the + * full commission to the validator address. + */ + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; + /** + * FundCommunityPool defines a method to allow an account to directly + * fund the community pool. + */ + fundCommunityPool(request: MsgFundCommunityPool): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.setWithdrawAddress = this.setWithdrawAddress.bind(this); + this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); + this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); + this.fundCommunityPool = this.fundCommunityPool.bind(this); + } + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise { + const data = MsgSetWithdrawAddress.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); + return promise.then(data => MsgSetWithdrawAddressResponse.decode(new BinaryReader(data))); + } + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise { + const data = MsgWithdrawDelegatorReward.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); + return promise.then(data => MsgWithdrawDelegatorRewardResponse.decode(new BinaryReader(data))); + } + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise { + const data = MsgWithdrawValidatorCommission.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); + return promise.then(data => MsgWithdrawValidatorCommissionResponse.decode(new BinaryReader(data))); + } + fundCommunityPool(request: MsgFundCommunityPool): Promise { + const data = MsgFundCommunityPool.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); + return promise.then(data => MsgFundCommunityPoolResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/distribution/v1beta1/tx.ts b/packages/api/src/cosmos/distribution/v1beta1/tx.ts new file mode 100644 index 00000000..37ea746c --- /dev/null +++ b/packages/api/src/cosmos/distribution/v1beta1/tx.ts @@ -0,0 +1,768 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddress { + delegatorAddress: string; + withdrawAddress: string; +} +export interface MsgSetWithdrawAddressProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; + value: Uint8Array; +} +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddressAmino { + delegator_address?: string; + withdraw_address?: string; +} +export interface MsgSetWithdrawAddressAminoMsg { + type: "cosmos-sdk/MsgModifyWithdrawAddress"; + value: MsgSetWithdrawAddressAmino; +} +/** + * MsgSetWithdrawAddress sets the withdraw address for + * a delegator (or validator self-delegation). + */ +export interface MsgSetWithdrawAddressSDKType { + delegator_address: string; + withdraw_address: string; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponse {} +export interface MsgSetWithdrawAddressResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; + value: Uint8Array; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponseAmino {} +export interface MsgSetWithdrawAddressResponseAminoMsg { + type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; + value: MsgSetWithdrawAddressResponseAmino; +} +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export interface MsgSetWithdrawAddressResponseSDKType {} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorReward { + delegatorAddress: string; + validatorAddress: string; +} +export interface MsgWithdrawDelegatorRewardProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; + value: Uint8Array; +} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorRewardAmino { + delegator_address?: string; + validator_address?: string; +} +export interface MsgWithdrawDelegatorRewardAminoMsg { + type: "cosmos-sdk/MsgWithdrawDelegationReward"; + value: MsgWithdrawDelegatorRewardAmino; +} +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single validator. + */ +export interface MsgWithdrawDelegatorRewardSDKType { + delegator_address: string; + validator_address: string; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponse { + /** Since: cosmos-sdk 0.46 */ + amount: Coin[]; +} +export interface MsgWithdrawDelegatorRewardResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; + value: Uint8Array; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponseAmino { + /** Since: cosmos-sdk 0.46 */ + amount?: CoinAmino[]; +} +export interface MsgWithdrawDelegatorRewardResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; + value: MsgWithdrawDelegatorRewardResponseAmino; +} +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export interface MsgWithdrawDelegatorRewardResponseSDKType { + amount: CoinSDKType[]; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommission { + validatorAddress: string; +} +export interface MsgWithdrawValidatorCommissionProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; + value: Uint8Array; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommissionAmino { + validator_address?: string; +} +export interface MsgWithdrawValidatorCommissionAminoMsg { + type: "cosmos-sdk/MsgWithdrawValidatorCommission"; + value: MsgWithdrawValidatorCommissionAmino; +} +/** + * MsgWithdrawValidatorCommission withdraws the full commission to the validator + * address. + */ +export interface MsgWithdrawValidatorCommissionSDKType { + validator_address: string; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponse { + /** Since: cosmos-sdk 0.46 */ + amount: Coin[]; +} +export interface MsgWithdrawValidatorCommissionResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; + value: Uint8Array; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponseAmino { + /** Since: cosmos-sdk 0.46 */ + amount?: CoinAmino[]; +} +export interface MsgWithdrawValidatorCommissionResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; + value: MsgWithdrawValidatorCommissionResponseAmino; +} +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export interface MsgWithdrawValidatorCommissionResponseSDKType { + amount: CoinSDKType[]; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPool { + amount: Coin[]; + depositor: string; +} +export interface MsgFundCommunityPoolProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; + value: Uint8Array; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPoolAmino { + amount?: CoinAmino[]; + depositor?: string; +} +export interface MsgFundCommunityPoolAminoMsg { + type: "cosmos-sdk/MsgFundCommunityPool"; + value: MsgFundCommunityPoolAmino; +} +/** + * MsgFundCommunityPool allows an account to directly + * fund the community pool. + */ +export interface MsgFundCommunityPoolSDKType { + amount: CoinSDKType[]; + depositor: string; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponse {} +export interface MsgFundCommunityPoolResponseProtoMsg { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; + value: Uint8Array; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponseAmino {} +export interface MsgFundCommunityPoolResponseAminoMsg { + type: "cosmos-sdk/MsgFundCommunityPoolResponse"; + value: MsgFundCommunityPoolResponseAmino; +} +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export interface MsgFundCommunityPoolResponseSDKType {} +function createBaseMsgSetWithdrawAddress(): MsgSetWithdrawAddress { + return { + delegatorAddress: "", + withdrawAddress: "" + }; +} +export const MsgSetWithdrawAddress = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + encode(message: MsgSetWithdrawAddress, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.withdrawAddress !== "") { + writer.uint32(18).string(message.withdrawAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.withdrawAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSetWithdrawAddress { + const message = createBaseMsgSetWithdrawAddress(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.withdrawAddress = object.withdrawAddress ?? ""; + return message; + }, + fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress { + const message = createBaseMsgSetWithdrawAddress(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.withdraw_address !== undefined && object.withdraw_address !== null) { + message.withdrawAddress = object.withdraw_address; + } + return message; + }, + toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; + return obj; + }, + fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress { + return MsgSetWithdrawAddress.fromAmino(object.value); + }, + toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg { + return { + type: "cosmos-sdk/MsgModifyWithdrawAddress", + value: MsgSetWithdrawAddress.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress { + return MsgSetWithdrawAddress.decode(message.value); + }, + toProto(message: MsgSetWithdrawAddress): Uint8Array { + return MsgSetWithdrawAddress.encode(message).finish(); + }, + toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + value: MsgSetWithdrawAddress.encode(message).finish() + }; + } +}; +function createBaseMsgSetWithdrawAddressResponse(): MsgSetWithdrawAddressResponse { + return {}; +} +export const MsgSetWithdrawAddressResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + encode(_: MsgSetWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetWithdrawAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSetWithdrawAddressResponse { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse { + const message = createBaseMsgSetWithdrawAddressResponse(); + return message; + }, + toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse { + return MsgSetWithdrawAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSetWithdrawAddressResponse", + value: MsgSetWithdrawAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse { + return MsgSetWithdrawAddressResponse.decode(message.value); + }, + toProto(message: MsgSetWithdrawAddressResponse): Uint8Array { + return MsgSetWithdrawAddressResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", + value: MsgSetWithdrawAddressResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorReward(): MsgWithdrawDelegatorReward { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const MsgWithdrawDelegatorReward = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + encode(message: MsgWithdrawDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorReward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgWithdrawDelegatorReward { + const message = createBaseMsgWithdrawDelegatorReward(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward { + const message = createBaseMsgWithdrawDelegatorReward(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward { + return MsgWithdrawDelegatorReward.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg { + return { + type: "cosmos-sdk/MsgWithdrawDelegationReward", + value: MsgWithdrawDelegatorReward.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward { + return MsgWithdrawDelegatorReward.decode(message.value); + }, + toProto(message: MsgWithdrawDelegatorReward): Uint8Array { + return MsgWithdrawDelegatorReward.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + value: MsgWithdrawDelegatorReward.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawDelegatorRewardResponse(): MsgWithdrawDelegatorRewardResponse { + return { + amount: [] + }; +} +export const MsgWithdrawDelegatorRewardResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + encode(message: MsgWithdrawDelegatorRewardResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse { + const message = createBaseMsgWithdrawDelegatorRewardResponse(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino { + const obj: any = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse { + return MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg { + return { + type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", + value: MsgWithdrawDelegatorRewardResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse { + return MsgWithdrawDelegatorRewardResponse.decode(message.value); + }, + toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array { + return MsgWithdrawDelegatorRewardResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", + value: MsgWithdrawDelegatorRewardResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommission(): MsgWithdrawValidatorCommission { + return { + validatorAddress: "" + }; +} +export const MsgWithdrawValidatorCommission = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + encode(message: MsgWithdrawValidatorCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddress !== "") { + writer.uint32(10).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgWithdrawValidatorCommission { + const message = createBaseMsgWithdrawValidatorCommission(); + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission { + const message = createBaseMsgWithdrawValidatorCommission(); + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino { + const obj: any = {}; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission { + return MsgWithdrawValidatorCommission.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission { + return MsgWithdrawValidatorCommission.decode(message.value); + }, + toProto(message: MsgWithdrawValidatorCommission): Uint8Array { + return MsgWithdrawValidatorCommission.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + value: MsgWithdrawValidatorCommission.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawValidatorCommissionResponse(): MsgWithdrawValidatorCommissionResponse { + return { + amount: [] + }; +} +export const MsgWithdrawValidatorCommissionResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + encode(message: MsgWithdrawValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse { + const message = createBaseMsgWithdrawValidatorCommissionResponse(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino { + const obj: any = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse { + return MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg { + return { + type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", + value: MsgWithdrawValidatorCommissionResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse { + return MsgWithdrawValidatorCommissionResponse.decode(message.value); + }, + toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array { + return MsgWithdrawValidatorCommissionResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", + value: MsgWithdrawValidatorCommissionResponse.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPool(): MsgFundCommunityPool { + return { + amount: [], + depositor: "" + }; +} +export const MsgFundCommunityPool = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + encode(message: MsgFundCommunityPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgFundCommunityPool { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool { + const message = createBaseMsgFundCommunityPool(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino { + const obj: any = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool { + return MsgFundCommunityPool.fromAmino(object.value); + }, + toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg { + return { + type: "cosmos-sdk/MsgFundCommunityPool", + value: MsgFundCommunityPool.toAmino(message) + }; + }, + fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool { + return MsgFundCommunityPool.decode(message.value); + }, + toProto(message: MsgFundCommunityPool): Uint8Array { + return MsgFundCommunityPool.encode(message).finish(); + }, + toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", + value: MsgFundCommunityPool.encode(message).finish() + }; + } +}; +function createBaseMsgFundCommunityPoolResponse(): MsgFundCommunityPoolResponse { + return {}; +} +export const MsgFundCommunityPoolResponse = { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + encode(_: MsgFundCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgFundCommunityPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgFundCommunityPoolResponse { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse { + const message = createBaseMsgFundCommunityPoolResponse(); + return message; + }, + toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse { + return MsgFundCommunityPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg { + return { + type: "cosmos-sdk/MsgFundCommunityPoolResponse", + value: MsgFundCommunityPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse { + return MsgFundCommunityPoolResponse.decode(message.value); + }, + toProto(message: MsgFundCommunityPoolResponse): Uint8Array { + return MsgFundCommunityPoolResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg { + return { + typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", + value: MsgFundCommunityPoolResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/feegrant.ts b/packages/api/src/cosmos/feegrant/v1beta1/feegrant.ts new file mode 100644 index 00000000..45b17c84 --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/feegrant.ts @@ -0,0 +1,632 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; + /** + * spend_limit specifies the maximum amount of coins that can be spent + * by this allowance and will be updated as coins are spent. If it is + * empty, there is no spend limit and any amount of coins can be spent. + */ + spendLimit: Coin[]; + /** expiration specifies an optional time when this allowance expires */ + expiration?: Date; +} +export interface BasicAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; + value: Uint8Array; +} +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowanceAmino { + /** + * spend_limit specifies the maximum amount of coins that can be spent + * by this allowance and will be updated as coins are spent. If it is + * empty, there is no spend limit and any amount of coins can be spent. + */ + spend_limit?: CoinAmino[]; + /** expiration specifies an optional time when this allowance expires */ + expiration?: string; +} +export interface BasicAllowanceAminoMsg { + type: "cosmos-sdk/BasicAllowance"; + value: BasicAllowanceAmino; +} +/** + * BasicAllowance implements Allowance with a one-time grant of coins + * that optionally expires. The grantee can use up to SpendLimit to cover fees. + */ +export interface BasicAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; + spend_limit: CoinSDKType[]; + expiration?: Date; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + /** basic specifies a struct of `BasicAllowance` */ + basic: BasicAllowance; + /** + * period specifies the time duration in which period_spend_limit coins can + * be spent before that allowance is reset + */ + period: Duration; + /** + * period_spend_limit specifies the maximum number of coins that can be spent + * in the period + */ + periodSpendLimit: Coin[]; + /** period_can_spend is the number of coins left to be spent before the period_reset time */ + periodCanSpend: Coin[]; + /** + * period_reset is the time at which this period resets and a new one begins, + * it is calculated from the start time of the first transaction after the + * last period ended + */ + periodReset: Date; +} +export interface PeriodicAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + value: Uint8Array; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowanceAmino { + /** basic specifies a struct of `BasicAllowance` */ + basic?: BasicAllowanceAmino; + /** + * period specifies the time duration in which period_spend_limit coins can + * be spent before that allowance is reset + */ + period?: DurationAmino; + /** + * period_spend_limit specifies the maximum number of coins that can be spent + * in the period + */ + period_spend_limit?: CoinAmino[]; + /** period_can_spend is the number of coins left to be spent before the period_reset time */ + period_can_spend?: CoinAmino[]; + /** + * period_reset is the time at which this period resets and a new one begins, + * it is calculated from the start time of the first transaction after the + * last period ended + */ + period_reset?: string; +} +export interface PeriodicAllowanceAminoMsg { + type: "cosmos-sdk/PeriodicAllowance"; + value: PeriodicAllowanceAmino; +} +/** + * PeriodicAllowance extends Allowance to allow for both a maximum cap, + * as well as a limit per time period. + */ +export interface PeriodicAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; + basic: BasicAllowanceSDKType; + period: DurationSDKType; + period_spend_limit: CoinSDKType[]; + period_can_spend: CoinSDKType[]; + period_reset: Date; +} +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowance { + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + /** allowance can be any of basic and periodic fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; + /** allowed_messages are the messages for which the grantee has the access. */ + allowedMessages: string[]; +} +export interface AllowedMsgAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + value: Uint8Array; +} +export type AllowedMsgAllowanceEncoded = Omit & { + /** allowance can be any of basic and periodic fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowanceAmino { + /** allowance can be any of basic and periodic fee allowance. */ + allowance?: AnyAmino; + /** allowed_messages are the messages for which the grantee has the access. */ + allowed_messages?: string[]; +} +export interface AllowedMsgAllowanceAminoMsg { + type: "cosmos-sdk/AllowedMsgAllowance"; + value: AllowedMsgAllowanceAmino; +} +/** AllowedMsgAllowance creates allowance only for specified message types. */ +export interface AllowedMsgAllowanceSDKType { + $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; + allowed_messages: string[]; +} +/** Grant is stored in the KVStore to record a grant with full context */ +export interface Grant { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; +} +export interface GrantProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.Grant"; + value: Uint8Array; +} +export type GrantEncoded = Omit & { + /** allowance can be any of basic, periodic, allowed fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** Grant is stored in the KVStore to record a grant with full context */ +export interface GrantAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: AnyAmino; +} +export interface GrantAminoMsg { + type: "cosmos-sdk/Grant"; + value: GrantAmino; +} +/** Grant is stored in the KVStore to record a grant with full context */ +export interface GrantSDKType { + granter: string; + grantee: string; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; +} +function createBaseBasicAllowance(): BasicAllowance { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + spendLimit: [], + expiration: undefined + }; +} +export const BasicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + encode(message: BasicAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.spendLimit) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.spendLimit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasicAllowance { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object: BasicAllowanceAmino): BasicAllowance { + const message = createBaseBasicAllowance(); + message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message: BasicAllowance): BasicAllowanceAmino { + const obj: any = {}; + if (message.spendLimit) { + obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.spend_limit = message.spendLimit; + } + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object: BasicAllowanceAminoMsg): BasicAllowance { + return BasicAllowance.fromAmino(object.value); + }, + toAminoMsg(message: BasicAllowance): BasicAllowanceAminoMsg { + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message: BasicAllowanceProtoMsg): BasicAllowance { + return BasicAllowance.decode(message.value); + }, + toProto(message: BasicAllowance): Uint8Array { + return BasicAllowance.encode(message).finish(); + }, + toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(message).finish() + }; + } +}; +function createBasePeriodicAllowance(): PeriodicAllowance { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + basic: BasicAllowance.fromPartial({}), + period: Duration.fromPartial({}), + periodSpendLimit: [], + periodCanSpend: [], + periodReset: new Date() + }; +} +export const PeriodicAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + encode(message: PeriodicAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basic !== undefined) { + BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); + } + if (message.period !== undefined) { + Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.periodSpendLimit) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.periodCanSpend) { + Coin.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.periodReset !== undefined) { + Timestamp.encode(toTimestamp(message.periodReset), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basic = BasicAllowance.decode(reader, reader.uint32()); + break; + case 2: + message.period = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.periodSpendLimit.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.periodCanSpend.push(Coin.decode(reader, reader.uint32())); + break; + case 5: + message.periodReset = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PeriodicAllowance { + const message = createBasePeriodicAllowance(); + message.basic = object.basic !== undefined && object.basic !== null ? BasicAllowance.fromPartial(object.basic) : undefined; + message.period = object.period !== undefined && object.period !== null ? Duration.fromPartial(object.period) : undefined; + message.periodSpendLimit = object.periodSpendLimit?.map(e => Coin.fromPartial(e)) || []; + message.periodCanSpend = object.periodCanSpend?.map(e => Coin.fromPartial(e)) || []; + message.periodReset = object.periodReset ?? undefined; + return message; + }, + fromAmino(object: PeriodicAllowanceAmino): PeriodicAllowance { + const message = createBasePeriodicAllowance(); + if (object.basic !== undefined && object.basic !== null) { + message.basic = BasicAllowance.fromAmino(object.basic); + } + if (object.period !== undefined && object.period !== null) { + message.period = Duration.fromAmino(object.period); + } + message.periodSpendLimit = object.period_spend_limit?.map(e => Coin.fromAmino(e)) || []; + message.periodCanSpend = object.period_can_spend?.map(e => Coin.fromAmino(e)) || []; + if (object.period_reset !== undefined && object.period_reset !== null) { + message.periodReset = fromTimestamp(Timestamp.fromAmino(object.period_reset)); + } + return message; + }, + toAmino(message: PeriodicAllowance): PeriodicAllowanceAmino { + const obj: any = {}; + obj.basic = message.basic ? BasicAllowance.toAmino(message.basic) : undefined; + obj.period = message.period ? Duration.toAmino(message.period) : undefined; + if (message.periodSpendLimit) { + obj.period_spend_limit = message.periodSpendLimit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.period_spend_limit = message.periodSpendLimit; + } + if (message.periodCanSpend) { + obj.period_can_spend = message.periodCanSpend.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.period_can_spend = message.periodCanSpend; + } + obj.period_reset = message.periodReset ? Timestamp.toAmino(toTimestamp(message.periodReset)) : undefined; + return obj; + }, + fromAminoMsg(object: PeriodicAllowanceAminoMsg): PeriodicAllowance { + return PeriodicAllowance.fromAmino(object.value); + }, + toAminoMsg(message: PeriodicAllowance): PeriodicAllowanceAminoMsg { + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(message) + }; + }, + fromProtoMsg(message: PeriodicAllowanceProtoMsg): PeriodicAllowance { + return PeriodicAllowance.decode(message.value); + }, + toProto(message: PeriodicAllowance): Uint8Array { + return PeriodicAllowance.encode(message).finish(); + }, + toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(message).finish() + }; + } +}; +function createBaseAllowedMsgAllowance(): AllowedMsgAllowance { + return { + $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + allowance: undefined, + allowedMessages: [] + }; +} +export const AllowedMsgAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + encode(message: AllowedMsgAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.allowance !== undefined) { + Any.encode((message.allowance as Any), writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedMessages) { + writer.uint32(18).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedMsgAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); + break; + case 2: + message.allowedMessages.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowedMsgAllowance { + const message = createBaseAllowedMsgAllowance(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + message.allowedMessages = object.allowedMessages?.map(e => e) || []; + return message; + }, + fromAmino(object: AllowedMsgAllowanceAmino): AllowedMsgAllowance { + const message = createBaseAllowedMsgAllowance(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + message.allowedMessages = object.allowed_messages?.map(e => e) || []; + return message; + }, + toAmino(message: AllowedMsgAllowance): AllowedMsgAllowanceAmino { + const obj: any = {}; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; + if (message.allowedMessages) { + obj.allowed_messages = message.allowedMessages.map(e => e); + } else { + obj.allowed_messages = message.allowedMessages; + } + return obj; + }, + fromAminoMsg(object: AllowedMsgAllowanceAminoMsg): AllowedMsgAllowance { + return AllowedMsgAllowance.fromAmino(object.value); + }, + toAminoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceAminoMsg { + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(message) + }; + }, + fromProtoMsg(message: AllowedMsgAllowanceProtoMsg): AllowedMsgAllowance { + return AllowedMsgAllowance.decode(message.value); + }, + toProto(message: AllowedMsgAllowance): Uint8Array { + return AllowedMsgAllowance.encode(message).finish(); + }, + toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(message).finish() + }; + } +}; +function createBaseGrant(): Grant { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +export const Grant = { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + encode(message: Grant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + Any.encode((message.allowance as Any), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Grant { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrant(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Grant { + const message = createBaseGrant(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object: GrantAmino): Grant { + const message = createBaseGrant(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + return message; + }, + toAmino(message: Grant): GrantAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: GrantAminoMsg): Grant { + return Grant.fromAmino(object.value); + }, + toAminoMsg(message: Grant): GrantAminoMsg { + return { + type: "cosmos-sdk/Grant", + value: Grant.toAmino(message) + }; + }, + fromProtoMsg(message: GrantProtoMsg): Grant { + return Grant.decode(message.value); + }, + toProto(message: Grant): Uint8Array { + return Grant.encode(message).finish(); + }, + toProtoMsg(message: Grant): GrantProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.Grant", + value: Grant.encode(message).finish() + }; + } +}; +export const FeeAllowanceI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +export const FeeAllowanceI_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const FeeAllowanceI_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/genesis.ts b/packages/api/src/cosmos/feegrant/v1beta1/genesis.ts new file mode 100644 index 00000000..2998b092 --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/genesis.ts @@ -0,0 +1,94 @@ +//@ts-nocheck +import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisState { + allowances: Grant[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisStateAmino { + allowances?: GrantAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState contains a set of fee allowances, persisted from the store */ +export interface GenesisStateSDKType { + allowances: GrantSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + allowances: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowances) { + Grant.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } else { + obj.allowances = message.allowances; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/query.lcd.ts b/packages/api/src/cosmos/feegrant/v1beta1/query.lcd.ts new file mode 100644 index 00000000..155d35c8 --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/query.lcd.ts @@ -0,0 +1,46 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + /* Allowance returns fee granted to the grantee by the granter. */ + async allowance(params: QueryAllowanceRequest): Promise { + const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; + return await this.req.get(endpoint); + } + /* Allowances returns all the grants for address. */ + async allowances(params: QueryAllowancesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; + return await this.req.get(endpoint, options); + } + /* AllowancesByGranter returns all the grants given by an address + + Since: cosmos-sdk 0.46 */ + async allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; + return await this.req.get(endpoint, options); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..76667558 --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts @@ -0,0 +1,57 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Allowance returns fee granted to the grantee by the granter. */ + allowance(request: QueryAllowanceRequest): Promise; + /** Allowances returns all the grants for address. */ + allowances(request: QueryAllowancesRequest): Promise; + /** + * AllowancesByGranter returns all the grants given by an address + * + * Since: cosmos-sdk 0.46 + */ + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.allowance = this.allowance.bind(this); + this.allowances = this.allowances.bind(this); + this.allowancesByGranter = this.allowancesByGranter.bind(this); + } + allowance(request: QueryAllowanceRequest): Promise { + const data = QueryAllowanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); + return promise.then(data => QueryAllowanceResponse.decode(new BinaryReader(data))); + } + allowances(request: QueryAllowancesRequest): Promise { + const data = QueryAllowancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); + return promise.then(data => QueryAllowancesResponse.decode(new BinaryReader(data))); + } + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise { + const data = QueryAllowancesByGranterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); + return promise.then(data => QueryAllowancesByGranterResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + allowance(request: QueryAllowanceRequest): Promise { + return queryService.allowance(request); + }, + allowances(request: QueryAllowancesRequest): Promise { + return queryService.allowances(request); + }, + allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise { + return queryService.allowancesByGranter(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/query.ts b/packages/api/src/cosmos/feegrant/v1beta1/query.ts new file mode 100644 index 00000000..37ce48aa --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/query.ts @@ -0,0 +1,659 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequest { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; +} +export interface QueryAllowanceRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; + value: Uint8Array; +} +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequestAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; +} +export interface QueryAllowanceRequestAminoMsg { + type: "cosmos-sdk/QueryAllowanceRequest"; + value: QueryAllowanceRequestAmino; +} +/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ +export interface QueryAllowanceRequestSDKType { + granter: string; + grantee: string; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponse { + /** allowance is a allowance granted for grantee by granter. */ + allowance?: Grant; +} +export interface QueryAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; + value: Uint8Array; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponseAmino { + /** allowance is a allowance granted for grantee by granter. */ + allowance?: GrantAmino; +} +export interface QueryAllowanceResponseAminoMsg { + type: "cosmos-sdk/QueryAllowanceResponse"; + value: QueryAllowanceResponseAmino; +} +/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ +export interface QueryAllowanceResponseSDKType { + allowance?: GrantSDKType; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequest { + grantee: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowancesRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; + value: Uint8Array; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequestAmino { + grantee?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowancesRequestAminoMsg { + type: "cosmos-sdk/QueryAllowancesRequest"; + value: QueryAllowancesRequestAmino; +} +/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ +export interface QueryAllowancesRequestSDKType { + grantee: string; + pagination?: PageRequestSDKType; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponse { + /** allowances are allowance's granted for grantee by granter. */ + allowances: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowancesResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; + value: Uint8Array; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponseAmino { + /** allowances are allowance's granted for grantee by granter. */ + allowances?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowancesResponseAminoMsg { + type: "cosmos-sdk/QueryAllowancesResponse"; + value: QueryAllowancesResponseAmino; +} +/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ +export interface QueryAllowancesResponseSDKType { + allowances: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequest { + granter: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowancesByGranterRequestProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; + value: Uint8Array; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequestAmino { + granter?: string; + /** pagination defines an pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowancesByGranterRequestAminoMsg { + type: "cosmos-sdk/QueryAllowancesByGranterRequest"; + value: QueryAllowancesByGranterRequestAmino; +} +/** + * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterRequestSDKType { + granter: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponse { + /** allowances that have been issued by the granter. */ + allowances: Grant[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowancesByGranterResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; + value: Uint8Array; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponseAmino { + /** allowances that have been issued by the granter. */ + allowances?: GrantAmino[]; + /** pagination defines an pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowancesByGranterResponseAminoMsg { + type: "cosmos-sdk/QueryAllowancesByGranterResponse"; + value: QueryAllowancesByGranterResponseAmino; +} +/** + * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAllowancesByGranterResponseSDKType { + allowances: GrantSDKType[]; + pagination?: PageResponseSDKType; +} +function createBaseQueryAllowanceRequest(): QueryAllowanceRequest { + return { + granter: "", + grantee: "" + }; +} +export const QueryAllowanceRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + encode(message: QueryAllowanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowanceRequest { + const message = createBaseQueryAllowanceRequest(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest { + const message = createBaseQueryAllowanceRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest { + return QueryAllowanceRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAllowanceRequest", + value: QueryAllowanceRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest { + return QueryAllowanceRequest.decode(message.value); + }, + toProto(message: QueryAllowanceRequest): Uint8Array { + return QueryAllowanceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", + value: QueryAllowanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowanceResponse(): QueryAllowanceResponse { + return { + allowance: undefined + }; +} +export const QueryAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + encode(message: QueryAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.allowance !== undefined) { + Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowance = Grant.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowanceResponse { + const message = createBaseQueryAllowanceResponse(); + message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse { + const message = createBaseQueryAllowanceResponse(); + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = Grant.fromAmino(object.allowance); + } + return message; + }, + toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino { + const obj: any = {}; + obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse { + return QueryAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAllowanceResponse", + value: QueryAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse { + return QueryAllowanceResponse.decode(message.value); + }, + toProto(message: QueryAllowanceResponse): Uint8Array { + return QueryAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", + value: QueryAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesRequest(): QueryAllowancesRequest { + return { + grantee: "", + pagination: undefined + }; +} +export const QueryAllowancesRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + encode(message: QueryAllowancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.grantee !== "") { + writer.uint32(10).string(message.grantee); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.grantee = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowancesRequest { + const message = createBaseQueryAllowancesRequest(); + message.grantee = object.grantee ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest { + const message = createBaseQueryAllowancesRequest(); + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino { + const obj: any = {}; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest { + return QueryAllowancesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAllowancesRequest", + value: QueryAllowancesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest { + return QueryAllowancesRequest.decode(message.value); + }, + toProto(message: QueryAllowancesRequest): Uint8Array { + return QueryAllowancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", + value: QueryAllowancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesResponse(): QueryAllowancesResponse { + return { + allowances: [], + pagination: undefined + }; +} +export const QueryAllowancesResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + encode(message: QueryAllowancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowances) { + Grant.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowancesResponse { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse { + const message = createBaseQueryAllowancesResponse(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino { + const obj: any = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse { + return QueryAllowancesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAllowancesResponse", + value: QueryAllowancesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse { + return QueryAllowancesResponse.decode(message.value); + }, + toProto(message: QueryAllowancesResponse): Uint8Array { + return QueryAllowancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", + value: QueryAllowancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest { + return { + granter: "", + pagination: undefined + }; +} +export const QueryAllowancesByGranterRequest = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + encode(message: QueryAllowancesByGranterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowancesByGranterRequest { + const message = createBaseQueryAllowancesByGranterRequest(); + message.granter = object.granter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest { + const message = createBaseQueryAllowancesByGranterRequest(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest { + return QueryAllowancesByGranterRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAllowancesByGranterRequest", + value: QueryAllowancesByGranterRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest { + return QueryAllowancesByGranterRequest.decode(message.value); + }, + toProto(message: QueryAllowancesByGranterRequest): Uint8Array { + return QueryAllowancesByGranterRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", + value: QueryAllowancesByGranterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse { + return { + allowances: [], + pagination: undefined + }; +} +export const QueryAllowancesByGranterResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + encode(message: QueryAllowancesByGranterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowances) { + Grant.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowancesByGranterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowances.push(Grant.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowancesByGranterResponse { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse { + const message = createBaseQueryAllowancesByGranterResponse(); + message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino { + const obj: any = {}; + if (message.allowances) { + obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); + } else { + obj.allowances = message.allowances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse { + return QueryAllowancesByGranterResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAllowancesByGranterResponse", + value: QueryAllowancesByGranterResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse { + return QueryAllowancesByGranterResponse.decode(message.value); + }, + toProto(message: QueryAllowancesByGranterResponse): Uint8Array { + return QueryAllowancesByGranterResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", + value: QueryAllowancesByGranterResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/tx.amino.ts b/packages/api/src/cosmos/feegrant/v1beta1/tx.amino.ts new file mode 100644 index 00000000..4caf0da6 --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/tx.amino.ts @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export const AminoConverter = { + "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { + aminoType: "cosmos-sdk/MsgGrantAllowance", + toAmino: MsgGrantAllowance.toAmino, + fromAmino: MsgGrantAllowance.fromAmino + }, + "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { + aminoType: "cosmos-sdk/MsgRevokeAllowance", + toAmino: MsgRevokeAllowance.toAmino, + fromAmino: MsgRevokeAllowance.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/tx.registry.ts b/packages/api/src/cosmos/feegrant/v1beta1/tx.registry.ts new file mode 100644 index 00000000..0ef6e3bc --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/tx.registry.ts @@ -0,0 +1,53 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + grantAllowance(value: MsgGrantAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.encode(value).finish() + }; + }, + revokeAllowance(value: MsgRevokeAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.encode(value).finish() + }; + } + }, + withTypeUrl: { + grantAllowance(value: MsgGrantAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value + }; + }, + revokeAllowance(value: MsgRevokeAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value + }; + } + }, + fromPartial: { + grantAllowance(value: MsgGrantAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.fromPartial(value) + }; + }, + revokeAllowance(value: MsgRevokeAllowance) { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..ab613eab --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,35 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; +/** Msg defines the feegrant msg service. */ +export interface Msg { + /** + * GrantAllowance grants fee allowance to the grantee on the granter's + * account with the provided expiration time. + */ + grantAllowance(request: MsgGrantAllowance): Promise; + /** + * RevokeAllowance revokes any fee allowance of granter's account that + * has been granted to the grantee. + */ + revokeAllowance(request: MsgRevokeAllowance): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.grantAllowance = this.grantAllowance.bind(this); + this.revokeAllowance = this.revokeAllowance.bind(this); + } + grantAllowance(request: MsgGrantAllowance): Promise { + const data = MsgGrantAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); + return promise.then(data => MsgGrantAllowanceResponse.decode(new BinaryReader(data))); + } + revokeAllowance(request: MsgRevokeAllowance): Promise { + const data = MsgRevokeAllowance.encode(request).finish(); + const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); + return promise.then(data => MsgRevokeAllowanceResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/feegrant/v1beta1/tx.ts b/packages/api/src/cosmos/feegrant/v1beta1/tx.ts new file mode 100644 index 00000000..6e24f86f --- /dev/null +++ b/packages/api/src/cosmos/feegrant/v1beta1/tx.ts @@ -0,0 +1,445 @@ +//@ts-nocheck +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowance { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; +} +export interface MsgGrantAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; + value: Uint8Array; +} +export type MsgGrantAllowanceEncoded = Omit & { + /** allowance can be any of basic, periodic, allowed fee allowance. */allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowanceAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; + /** allowance can be any of basic, periodic, allowed fee allowance. */ + allowance?: AnyAmino; +} +export interface MsgGrantAllowanceAminoMsg { + type: "cosmos-sdk/MsgGrantAllowance"; + value: MsgGrantAllowanceAmino; +} +/** + * MsgGrantAllowance adds permission for Grantee to spend up to Allowance + * of fees from the account of Granter. + */ +export interface MsgGrantAllowanceSDKType { + granter: string; + grantee: string; + allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponse {} +export interface MsgGrantAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; + value: Uint8Array; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponseAmino {} +export interface MsgGrantAllowanceResponseAminoMsg { + type: "cosmos-sdk/MsgGrantAllowanceResponse"; + value: MsgGrantAllowanceResponseAmino; +} +/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ +export interface MsgGrantAllowanceResponseSDKType {} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowance { + /** granter is the address of the user granting an allowance of their funds. */ + granter: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee: string; +} +export interface MsgRevokeAllowanceProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; + value: Uint8Array; +} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowanceAmino { + /** granter is the address of the user granting an allowance of their funds. */ + granter?: string; + /** grantee is the address of the user being granted an allowance of another user's funds. */ + grantee?: string; +} +export interface MsgRevokeAllowanceAminoMsg { + type: "cosmos-sdk/MsgRevokeAllowance"; + value: MsgRevokeAllowanceAmino; +} +/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ +export interface MsgRevokeAllowanceSDKType { + granter: string; + grantee: string; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponse {} +export interface MsgRevokeAllowanceResponseProtoMsg { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; + value: Uint8Array; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponseAmino {} +export interface MsgRevokeAllowanceResponseAminoMsg { + type: "cosmos-sdk/MsgRevokeAllowanceResponse"; + value: MsgRevokeAllowanceResponseAmino; +} +/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ +export interface MsgRevokeAllowanceResponseSDKType {} +function createBaseMsgGrantAllowance(): MsgGrantAllowance { + return { + granter: "", + grantee: "", + allowance: undefined + }; +} +export const MsgGrantAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + encode(message: MsgGrantAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + if (message.allowance !== undefined) { + Any.encode((message.allowance as Any), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + case 3: + message.allowance = (FeeAllowanceI_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgGrantAllowance { + const message = createBaseMsgGrantAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; + return message; + }, + fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance { + const message = createBaseMsgGrantAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + if (object.allowance !== undefined && object.allowance !== null) { + message.allowance = FeeAllowanceI_FromAmino(object.allowance); + } + return message; + }, + toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + obj.allowance = message.allowance ? FeeAllowanceI_ToAmino((message.allowance as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance { + return MsgGrantAllowance.fromAmino(object.value); + }, + toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg { + return { + type: "cosmos-sdk/MsgGrantAllowance", + value: MsgGrantAllowance.toAmino(message) + }; + }, + fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance { + return MsgGrantAllowance.decode(message.value); + }, + toProto(message: MsgGrantAllowance): Uint8Array { + return MsgGrantAllowance.encode(message).finish(); + }, + toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + value: MsgGrantAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgGrantAllowanceResponse(): MsgGrantAllowanceResponse { + return {}; +} +export const MsgGrantAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + encode(_: MsgGrantAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgGrantAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgGrantAllowanceResponse { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse { + const message = createBaseMsgGrantAllowanceResponse(); + return message; + }, + toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse { + return MsgGrantAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg { + return { + type: "cosmos-sdk/MsgGrantAllowanceResponse", + value: MsgGrantAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse { + return MsgGrantAllowanceResponse.decode(message.value); + }, + toProto(message: MsgGrantAllowanceResponse): Uint8Array { + return MsgGrantAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", + value: MsgGrantAllowanceResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowance(): MsgRevokeAllowance { + return { + granter: "", + grantee: "" + }; +} +export const MsgRevokeAllowance = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + encode(message: MsgRevokeAllowance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.granter !== "") { + writer.uint32(10).string(message.granter); + } + if (message.grantee !== "") { + writer.uint32(18).string(message.grantee); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.granter = reader.string(); + break; + case 2: + message.grantee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRevokeAllowance { + const message = createBaseMsgRevokeAllowance(); + message.granter = object.granter ?? ""; + message.grantee = object.grantee ?? ""; + return message; + }, + fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance { + const message = createBaseMsgRevokeAllowance(); + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + if (object.grantee !== undefined && object.grantee !== null) { + message.grantee = object.grantee; + } + return message; + }, + toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino { + const obj: any = {}; + obj.granter = message.granter === "" ? undefined : message.granter; + obj.grantee = message.grantee === "" ? undefined : message.grantee; + return obj; + }, + fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance { + return MsgRevokeAllowance.fromAmino(object.value); + }, + toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg { + return { + type: "cosmos-sdk/MsgRevokeAllowance", + value: MsgRevokeAllowance.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance { + return MsgRevokeAllowance.decode(message.value); + }, + toProto(message: MsgRevokeAllowance): Uint8Array { + return MsgRevokeAllowance.encode(message).finish(); + }, + toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + value: MsgRevokeAllowance.encode(message).finish() + }; + } +}; +function createBaseMsgRevokeAllowanceResponse(): MsgRevokeAllowanceResponse { + return {}; +} +export const MsgRevokeAllowanceResponse = { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + encode(_: MsgRevokeAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRevokeAllowanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRevokeAllowanceResponse { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse { + const message = createBaseMsgRevokeAllowanceResponse(); + return message; + }, + toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse { + return MsgRevokeAllowanceResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg { + return { + type: "cosmos-sdk/MsgRevokeAllowanceResponse", + value: MsgRevokeAllowanceResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse { + return MsgRevokeAllowanceResponse.decode(message.value); + }, + toProto(message: MsgRevokeAllowanceResponse): Uint8Array { + return MsgRevokeAllowanceResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg { + return { + typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", + value: MsgRevokeAllowanceResponse.encode(message).finish() + }; + } +}; +export const FeeAllowanceI_InterfaceDecoder = (input: BinaryReader | Uint8Array): BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return BasicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return PeriodicAllowance.decode(data.value); + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return AllowedMsgAllowance.decode(data.value); + default: + return data; + } +}; +export const FeeAllowanceI_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/BasicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", + value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PeriodicAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", + value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/AllowedMsgAllowance": + return Any.fromPartial({ + typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", + value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const FeeAllowanceI_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.feegrant.v1beta1.BasicAllowance": + return { + type: "cosmos-sdk/BasicAllowance", + value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.PeriodicAllowance": + return { + type: "cosmos-sdk/PeriodicAllowance", + value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) + }; + case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": + return { + type: "cosmos-sdk/AllowedMsgAllowance", + value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/genesis.ts b/packages/api/src/cosmos/gov/v1/genesis.ts new file mode 100644 index 00000000..1c20fcef --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/genesis.ts @@ -0,0 +1,202 @@ +//@ts-nocheck +import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisState { + /** starting_proposal_id is the ID of the starting proposal. */ + startingProposalId: bigint; + /** deposits defines all the deposits present at genesis. */ + deposits: Deposit[]; + /** votes defines all the votes present at genesis. */ + votes: Vote[]; + /** proposals defines all the proposals present at genesis. */ + proposals: Proposal[]; + /** params defines all the paramaters of related to deposit. */ + depositParams?: DepositParams; + /** params defines all the paramaters of related to voting. */ + votingParams?: VotingParams; + /** params defines all the paramaters of related to tally. */ + tallyParams?: TallyParams; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.gov.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateAmino { + /** starting_proposal_id is the ID of the starting proposal. */ + starting_proposal_id?: string; + /** deposits defines all the deposits present at genesis. */ + deposits?: DepositAmino[]; + /** votes defines all the votes present at genesis. */ + votes?: VoteAmino[]; + /** proposals defines all the proposals present at genesis. */ + proposals?: ProposalAmino[]; + /** params defines all the paramaters of related to deposit. */ + deposit_params?: DepositParamsAmino; + /** params defines all the paramaters of related to voting. */ + voting_params?: VotingParamsAmino; + /** params defines all the paramaters of related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/v1/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateSDKType { + starting_proposal_id: bigint; + deposits: DepositSDKType[]; + votes: VoteSDKType[]; + proposals: ProposalSDKType[]; + deposit_params?: DepositParamsSDKType; + voting_params?: VotingParamsSDKType; + tally_params?: TallyParamsSDKType; +} +function createBaseGenesisState(): GenesisState { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: undefined, + votingParams: undefined, + tallyParams: undefined + }; +} +export const GenesisState = { + typeUrl: "/cosmos.gov.v1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + Deposit.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/v1/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/gov.ts b/packages/api/src/cosmos/gov/v1/gov.ts new file mode 100644 index 00000000..75d1f906 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/gov.ts @@ -0,0 +1,1240 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export enum VoteOption { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1, +} +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object: any): VoteOption { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object: VoteOption): string { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + PROPOSAL_STATUS_VOTING_PERIOD = 2, + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + PROPOSAL_STATUS_PASSED = 3, + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + PROPOSAL_STATUS_REJECTED = 4, + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + PROPOSAL_STATUS_FAILED = 5, + UNRECOGNIZED = -1, +} +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object: any): ProposalStatus { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object: ProposalStatus): string { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOption { + option: VoteOption; + weight: string; +} +export interface WeightedVoteOptionProtoMsg { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; + value: Uint8Array; +} +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOptionAmino { + option?: VoteOption; + weight?: string; +} +export interface WeightedVoteOptionAminoMsg { + type: "cosmos-sdk/v1/WeightedVoteOption"; + value: WeightedVoteOptionAmino; +} +/** WeightedVoteOption defines a unit of vote for vote split. */ +export interface WeightedVoteOptionSDKType { + option: VoteOption; + weight: string; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface Deposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface DepositProtoMsg { + typeUrl: "/cosmos.gov.v1.Deposit"; + value: Uint8Array; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositAmino { + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface DepositAminoMsg { + type: "cosmos-sdk/v1/Deposit"; + value: DepositAmino; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface Proposal { + id: bigint; + messages: Any[]; + status: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + finalTallyResult?: TallyResult; + submitTime?: Date; + depositEndTime?: Date; + totalDeposit: Coin[]; + votingStartTime?: Date; + votingEndTime?: Date; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata: string; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.gov.v1.Proposal"; + value: Uint8Array; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalAmino { + id?: string; + messages?: AnyAmino[]; + status?: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + final_tally_result?: TallyResultAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata?: string; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/v1/Proposal"; + value: ProposalAmino; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalSDKType { + id: bigint; + messages: AnySDKType[]; + status: ProposalStatus; + final_tally_result?: TallyResultSDKType; + submit_time?: Date; + deposit_end_time?: Date; + total_deposit: CoinSDKType[]; + voting_start_time?: Date; + voting_end_time?: Date; + metadata: string; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResult { + yesCount: string; + abstainCount: string; + noCount: string; + noWithVetoCount: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.gov.v1.TallyResult"; + value: Uint8Array; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultAmino { + yes_count?: string; + abstain_count?: string; + no_count?: string; + no_with_veto_count?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/v1/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultSDKType { + yes_count: string; + abstain_count: string; + no_count: string; + no_with_veto_count: string; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface Vote { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.gov.v1.Vote"; + value: Uint8Array; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteAmino { + proposal_id?: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/v1/Vote"; + value: VoteAmino; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; + metadata: string; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + minDeposit: Coin[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + maxDepositPeriod?: Duration; +} +export interface DepositParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.DepositParams"; + value: Uint8Array; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsAmino { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: CoinAmino[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: DurationAmino; +} +export interface DepositParamsAminoMsg { + type: "cosmos-sdk/v1/DepositParams"; + value: DepositParamsAmino; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsSDKType { + min_deposit: CoinSDKType[]; + max_deposit_period?: DurationSDKType; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParams { + /** Length of the voting period. */ + votingPeriod?: Duration; +} +export interface VotingParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.VotingParams"; + value: Uint8Array; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsAmino { + /** Length of the voting period. */ + voting_period?: DurationAmino; +} +export interface VotingParamsAminoMsg { + type: "cosmos-sdk/v1/VotingParams"; + value: VotingParamsAmino; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsSDKType { + voting_period?: DurationSDKType; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + vetoThreshold: string; +} +export interface TallyParamsProtoMsg { + typeUrl: "/cosmos.gov.v1.TallyParams"; + value: Uint8Array; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsAmino { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum?: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + veto_threshold?: string; +} +export interface TallyParamsAminoMsg { + type: "cosmos-sdk/v1/TallyParams"; + value: TallyParamsAmino; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsSDKType { + quorum: string; + threshold: string; + veto_threshold: string; +} +function createBaseWeightedVoteOption(): WeightedVoteOption { + return { + option: 0, + weight: "" + }; +} +export const WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + encode(message: WeightedVoteOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = (reader.int32() as any); + break; + case 2: + message.weight = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): WeightedVoteOption { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino { + const obj: any = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption { + return WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg { + return { + type: "cosmos-sdk/v1/WeightedVoteOption", + value: WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption { + return WeightedVoteOption.decode(message.value); + }, + toProto(message: WeightedVoteOption): Uint8Array { + return WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.WeightedVoteOption", + value: WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseDeposit(): Deposit { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const Deposit = { + typeUrl: "/cosmos.gov.v1.Deposit", + encode(message: Deposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Deposit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Deposit { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: DepositAmino): Deposit { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Deposit): DepositAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: DepositAminoMsg): Deposit { + return Deposit.fromAmino(object.value); + }, + toAminoMsg(message: Deposit): DepositAminoMsg { + return { + type: "cosmos-sdk/v1/Deposit", + value: Deposit.toAmino(message) + }; + }, + fromProtoMsg(message: DepositProtoMsg): Deposit { + return Deposit.decode(message.value); + }, + toProto(message: Deposit): Uint8Array { + return Deposit.encode(message).finish(); + }, + toProtoMsg(message: Deposit): DepositProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.Deposit", + value: Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal(): Proposal { + return { + id: BigInt(0), + messages: [], + status: 0, + finalTallyResult: undefined, + submitTime: undefined, + depositEndTime: undefined, + totalDeposit: [], + votingStartTime: undefined, + votingEndTime: undefined, + metadata: "" + }; +} +export const Proposal = { + typeUrl: "/cosmos.gov.v1.Proposal", + encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + for (const v of message.messages) { + Any.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + Coin.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(82).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Proposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 3: + message.status = (reader.int32() as any); + break; + case 4: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Proposal { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: ProposalAmino): Proposal { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: Proposal): ProposalAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.messages = message.messages; + } + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: ProposalAminoMsg): Proposal { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message: Proposal): ProposalAminoMsg { + return { + type: "cosmos-sdk/v1/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message: ProposalProtoMsg): Proposal { + return Proposal.decode(message.value); + }, + toProto(message: Proposal): Uint8Array { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message: Proposal): ProposalProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult(): TallyResult { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.gov.v1.TallyResult", + encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TallyResult { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object: TallyResultAmino): TallyResult { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message: TallyResult): TallyResultAmino { + const obj: any = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object: TallyResultAminoMsg): TallyResult { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message: TallyResult): TallyResultAminoMsg { + return { + type: "cosmos-sdk/v1/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message: TallyResultProtoMsg): TallyResult { + return TallyResult.decode(message.value); + }, + toProto(message: TallyResult): Uint8Array { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message: TallyResult): TallyResultProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote(): Vote { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +export const Vote = { + typeUrl: "/cosmos.gov.v1.Vote", + encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Vote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 4: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Vote { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: VoteAmino): Vote { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: Vote): VoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: VoteAminoMsg): Vote { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message: Vote): VoteAminoMsg { + return { + type: "cosmos-sdk/v1/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message: VoteProtoMsg): Vote { + return Vote.decode(message.value); + }, + toProto(message: Vote): Uint8Array { + return Vote.encode(message).finish(); + }, + toProtoMsg(message: Vote): VoteProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams(): DepositParams { + return { + minDeposit: [], + maxDepositPeriod: undefined + }; +} +export const DepositParams = { + typeUrl: "/cosmos.gov.v1.DepositParams", + encode(message: DepositParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.minDeposit) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DepositParams { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object: DepositParamsAmino): DepositParams { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message: DepositParams): DepositParamsAmino { + const obj: any = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object: DepositParamsAminoMsg): DepositParams { + return DepositParams.fromAmino(object.value); + }, + toAminoMsg(message: DepositParams): DepositParamsAminoMsg { + return { + type: "cosmos-sdk/v1/DepositParams", + value: DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message: DepositParamsProtoMsg): DepositParams { + return DepositParams.decode(message.value); + }, + toProto(message: DepositParams): Uint8Array { + return DepositParams.encode(message).finish(); + }, + toProtoMsg(message: DepositParams): DepositParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.DepositParams", + value: DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams(): VotingParams { + return { + votingPeriod: undefined + }; +} +export const VotingParams = { + typeUrl: "/cosmos.gov.v1.VotingParams", + encode(message: VotingParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): VotingParams { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object: VotingParamsAmino): VotingParams { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message: VotingParams): VotingParamsAmino { + const obj: any = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object: VotingParamsAminoMsg): VotingParams { + return VotingParams.fromAmino(object.value); + }, + toAminoMsg(message: VotingParams): VotingParamsAminoMsg { + return { + type: "cosmos-sdk/v1/VotingParams", + value: VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message: VotingParamsProtoMsg): VotingParams { + return VotingParams.decode(message.value); + }, + toProto(message: VotingParams): Uint8Array { + return VotingParams.encode(message).finish(); + }, + toProtoMsg(message: VotingParams): VotingParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.VotingParams", + value: VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams(): TallyParams { + return { + quorum: "", + threshold: "", + vetoThreshold: "" + }; +} +export const TallyParams = { + typeUrl: "/cosmos.gov.v1.TallyParams", + encode(message: TallyParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.quorum !== "") { + writer.uint32(10).string(message.quorum); + } + if (message.threshold !== "") { + writer.uint32(18).string(message.threshold); + } + if (message.vetoThreshold !== "") { + writer.uint32(26).string(message.vetoThreshold); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.string(); + break; + case 2: + message.threshold = reader.string(); + break; + case 3: + message.vetoThreshold = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TallyParams { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? ""; + message.threshold = object.threshold ?? ""; + message.vetoThreshold = object.vetoThreshold ?? ""; + return message; + }, + fromAmino(object: TallyParamsAmino): TallyParams { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = object.quorum; + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = object.veto_threshold; + } + return message; + }, + toAmino(message: TallyParams): TallyParamsAmino { + const obj: any = {}; + obj.quorum = message.quorum === "" ? undefined : message.quorum; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; + return obj; + }, + fromAminoMsg(object: TallyParamsAminoMsg): TallyParams { + return TallyParams.fromAmino(object.value); + }, + toAminoMsg(message: TallyParams): TallyParamsAminoMsg { + return { + type: "cosmos-sdk/v1/TallyParams", + value: TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message: TallyParamsProtoMsg): TallyParams { + return TallyParams.decode(message.value); + }, + toProto(message: TallyParams): Uint8Array { + return TallyParams.encode(message).finish(); + }, + toProtoMsg(message: TallyParams): TallyParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.TallyParams", + value: TallyParams.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/query.lcd.ts b/packages/api/src/cosmos/gov/v1/query.lcd.ts new file mode 100644 index 00000000..d4e813ff --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/query.lcd.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params: QueryProposalRequest): Promise { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params: QueryProposalsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params: QueryVoteRequest): Promise { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params: QueryVotesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params: QueryParamsRequest): Promise { + const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params: QueryDepositRequest): Promise { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params: QueryDepositsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params: QueryTallyResultRequest): Promise { + const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/query.rpc.Query.ts b/packages/api/src/cosmos/gov/v1/query.rpc.Query.ts new file mode 100644 index 00000000..9ed348ce --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/query.rpc.Query.ts @@ -0,0 +1,108 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query defines the gRPC querier service for gov module */ +export interface Query { + /** Proposal queries proposal details based on ProposalID. */ + proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ + proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ + vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ + votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ + params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ + deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ + deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request: QueryProposalRequest): Promise { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposals(request: QueryProposalsRequest): Promise { + const data = QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); + return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); + } + vote(request: QueryVoteRequest): Promise { + const data = QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); + return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); + } + votes(request: QueryVotesRequest): Promise { + const data = QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); + return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + deposit(request: QueryDepositRequest): Promise { + const data = QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); + return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); + } + deposits(request: QueryDepositsRequest): Promise { + const data = QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); + return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); + } + tallyResult(request: QueryTallyResultRequest): Promise { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request: QueryProposalRequest): Promise { + return queryService.proposal(request); + }, + proposals(request: QueryProposalsRequest): Promise { + return queryService.proposals(request); + }, + vote(request: QueryVoteRequest): Promise { + return queryService.vote(request); + }, + votes(request: QueryVotesRequest): Promise { + return queryService.votes(request); + }, + params(request: QueryParamsRequest): Promise { + return queryService.params(request); + }, + deposit(request: QueryDepositRequest): Promise { + return queryService.deposit(request); + }, + deposits(request: QueryDepositsRequest): Promise { + return queryService.deposits(request); + }, + tallyResult(request: QueryTallyResultRequest): Promise { + return queryService.tallyResult(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/query.ts b/packages/api/src/cosmos/gov/v1/query.ts new file mode 100644 index 00000000..f928c430 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/query.ts @@ -0,0 +1,1679 @@ +//@ts-nocheck +import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/v1/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponse { + proposal?: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseAmino { + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/v1/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseSDKType { + proposal?: ProposalSDKType; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequest { + /** proposal_status defines the status of the proposals. */ + proposalStatus: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; + value: Uint8Array; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestAmino { + /** proposal_status defines the status of the proposals. */ + proposal_status?: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryProposalsRequest"; + value: QueryProposalsRequestAmino; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestSDKType { + proposal_status: ProposalStatus; + voter: string; + depositor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponse { + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; + value: Uint8Array; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseAmino { + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryProposalsResponse"; + value: QueryProposalsResponseAmino; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** voter defines the voter address for the proposals. */ + voter: string; +} +export interface QueryVoteRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; + value: Uint8Array; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** voter defines the voter address for the proposals. */ + voter?: string; +} +export interface QueryVoteRequestAminoMsg { + type: "cosmos-sdk/v1/QueryVoteRequest"; + value: QueryVoteRequestAmino; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponse { + /** vote defined the queried vote. */ + vote?: Vote; +} +export interface QueryVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; + value: Uint8Array; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseAmino { + /** vote defined the queried vote. */ + vote?: VoteAmino; +} +export interface QueryVoteResponseAminoMsg { + type: "cosmos-sdk/v1/QueryVoteResponse"; + value: QueryVoteResponseAmino; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseSDKType { + vote?: VoteSDKType; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; + value: Uint8Array; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesRequestAminoMsg { + type: "cosmos-sdk/v1/QueryVotesRequest"; + value: QueryVotesRequestAmino; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponse { + /** votes defined the queried votes. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; + value: Uint8Array; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseAmino { + /** votes defined the queried votes. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesResponseAminoMsg { + type: "cosmos-sdk/v1/QueryVotesResponse"; + value: QueryVotesResponseAmino; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + paramsType: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + params_type?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + params_type: string; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + votingParams?: VotingParams; + /** deposit_params defines the parameters related to deposit. */ + depositParams?: DepositParams; + /** tally_params defines the parameters related to tally. */ + tallyParams?: TallyParams; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** voting_params defines the parameters related to voting. */ + voting_params?: VotingParamsAmino; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: DepositParamsAmino; + /** tally_params defines the parameters related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + voting_params?: VotingParamsSDKType; + deposit_params?: DepositParamsSDKType; + tally_params?: TallyParamsSDKType; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; +} +export interface QueryDepositRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; + value: Uint8Array; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; +} +export interface QueryDepositRequestAminoMsg { + type: "cosmos-sdk/v1/QueryDepositRequest"; + value: QueryDepositRequestAmino; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestSDKType { + proposal_id: bigint; + depositor: string; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponse { + /** deposit defines the requested deposit. */ + deposit?: Deposit; +} +export interface QueryDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; + value: Uint8Array; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseAmino { + /** deposit defines the requested deposit. */ + deposit?: DepositAmino; +} +export interface QueryDepositResponseAminoMsg { + type: "cosmos-sdk/v1/QueryDepositResponse"; + value: QueryDepositResponseAmino; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseSDKType { + deposit?: DepositSDKType; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDepositsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; + value: Uint8Array; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDepositsRequestAminoMsg { + type: "cosmos-sdk/v1/QueryDepositsRequest"; + value: QueryDepositsRequestAmino; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponse { + deposits: Deposit[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDepositsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; + value: Uint8Array; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseAmino { + deposits?: DepositAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDepositsResponseAminoMsg { + type: "cosmos-sdk/v1/QueryDepositsResponse"; + value: QueryDepositsResponseAmino; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseSDKType { + deposits: DepositSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/v1/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally?: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/v1/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseSDKType { + tally?: TallyResultSDKType; +} +function createBaseQueryProposalRequest(): QueryProposalRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { + return QueryProposalRequest.decode(message.value); + }, + toProto(message: QueryProposalRequest): Uint8Array { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse(): QueryProposalResponse { + return { + proposal: undefined + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { + const obj: any = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { + return QueryProposalResponse.decode(message.value); + }, + toProto(message: QueryProposalResponse): Uint8Array { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest(): QueryProposalsRequest { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +export const QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + encode(message: QueryProposalsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = (reader.int32() as any); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsRequest { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino { + const obj: any = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest { + return QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryProposalsRequest", + value: QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest { + return QueryProposalsRequest.decode(message.value); + }, + toProto(message: QueryProposalsRequest): Uint8Array { + return QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", + value: QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse(): QueryProposalsResponse { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + encode(message: QueryProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino { + const obj: any = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse { + return QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryProposalsResponse", + value: QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse { + return QueryProposalsResponse.decode(message.value); + }, + toProto(message: QueryProposalsResponse): Uint8Array { + return QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", + value: QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest(): QueryVoteRequest { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + encode(message: QueryVoteRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteRequest { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message: QueryVoteRequest): QueryVoteRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest { + return QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryVoteRequest", + value: QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest { + return QueryVoteRequest.decode(message.value); + }, + toProto(message: QueryVoteRequest): Uint8Array { + return QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteRequest", + value: QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse(): QueryVoteResponse { + return { + vote: undefined + }; +} +export const QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + encode(message: QueryVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteResponse { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message: QueryVoteResponse): QueryVoteResponseAmino { + const obj: any = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse { + return QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryVoteResponse", + value: QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse { + return QueryVoteResponse.decode(message.value); + }, + toProto(message: QueryVoteResponse): Uint8Array { + return QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryVoteResponse", + value: QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest(): QueryVotesRequest { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + encode(message: QueryVotesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesRequest { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesRequest): QueryVotesRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest { + return QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryVotesRequest", + value: QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest { + return QueryVotesRequest.decode(message.value); + }, + toProto(message: QueryVotesRequest): Uint8Array { + return QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesRequest", + value: QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse(): QueryVotesResponse { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + encode(message: QueryVotesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesResponse { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesResponse): QueryVotesResponseAmino { + const obj: any = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse { + return QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryVotesResponse", + value: QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse { + return QueryVotesResponse.decode(message.value); + }, + toProto(message: QueryVotesResponse): Uint8Array { + return QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryVotesResponse", + value: QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return { + paramsType: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + votingParams: undefined, + depositParams: undefined, + tallyParams: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest(): QueryDepositRequest { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +export const QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + encode(message: QueryDepositRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositRequest { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message: QueryDepositRequest): QueryDepositRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest { + return QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryDepositRequest", + value: QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest { + return QueryDepositRequest.decode(message.value); + }, + toProto(message: QueryDepositRequest): Uint8Array { + return QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositRequest", + value: QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse(): QueryDepositResponse { + return { + deposit: undefined + }; +} +export const QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + encode(message: QueryDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.deposit !== undefined) { + Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositResponse { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message: QueryDepositResponse): QueryDepositResponseAmino { + const obj: any = {}; + obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse { + return QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryDepositResponse", + value: QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse { + return QueryDepositResponse.decode(message.value); + }, + toProto(message: QueryDepositResponse): Uint8Array { + return QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositResponse", + value: QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest(): QueryDepositsRequest { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + encode(message: QueryDepositsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositsRequest { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest { + return QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryDepositsRequest", + value: QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest { + return QueryDepositsRequest.decode(message.value); + }, + toProto(message: QueryDepositsRequest): Uint8Array { + return QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", + value: QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse(): QueryDepositsResponse { + return { + deposits: [], + pagination: undefined + }; +} +export const QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + encode(message: QueryDepositsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.deposits) { + Deposit.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositsResponse { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino { + const obj: any = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse { + return QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryDepositsResponse", + value: QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse { + return QueryDepositsResponse.decode(message.value); + }, + toProto(message: QueryDepositsResponse): Uint8Array { + return QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", + value: QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { + return { + type: "cosmos-sdk/v1/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message: QueryTallyResultRequest): Uint8Array { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { + return { + tally: undefined + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { + const obj: any = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { + return { + type: "cosmos-sdk/v1/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message: QueryTallyResultResponse): Uint8Array { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/tx.amino.ts b/packages/api/src/cosmos/gov/v1/tx.amino.ts new file mode 100644 index 00000000..a648548e --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/tx.amino.ts @@ -0,0 +1,29 @@ +//@ts-nocheck +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const AminoConverter = { + "/cosmos.gov.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/v1/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1.MsgExecLegacyContent": { + aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", + toAmino: MsgExecLegacyContent.toAmino, + fromAmino: MsgExecLegacyContent.fromAmino + }, + "/cosmos.gov.v1.MsgVote": { + aminoType: "cosmos-sdk/v1/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.gov.v1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/v1/MsgVoteWeighted", + toAmino: MsgVoteWeighted.toAmino, + fromAmino: MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1.MsgDeposit": { + aminoType: "cosmos-sdk/v1/MsgDeposit", + toAmino: MsgDeposit.toAmino, + fromAmino: MsgDeposit.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/tx.registry.ts b/packages/api/src/cosmos/gov/v1/tx.registry.ts new file mode 100644 index 00000000..1201c07b --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/tx.registry.ts @@ -0,0 +1,107 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + execLegacyContent(value: MsgExecLegacyContent) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.encode(value).finish() + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value + }; + }, + execLegacyContent(value: MsgExecLegacyContent) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + execLegacyContent(value: MsgExecLegacyContent) { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.fromPartial(value) + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/tx.rpc.msg.ts b/packages/api/src/cosmos/gov/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..7141fdd1 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/tx.rpc.msg.ts @@ -0,0 +1,56 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +/** Msg defines the gov Msg service. */ +export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** + * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + * to execute a legacy content-based proposal. + */ + execLegacyContent(request: MsgExecLegacyContent): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ + vote(request: MsgVote): Promise; + /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ + voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ + deposit(request: MsgDeposit): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.execLegacyContent = this.execLegacyContent.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request: MsgSubmitProposal): Promise { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + execLegacyContent(request: MsgExecLegacyContent): Promise { + const data = MsgExecLegacyContent.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); + return promise.then(data => MsgExecLegacyContentResponse.decode(new BinaryReader(data))); + } + vote(request: MsgVote): Promise { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + voteWeighted(request: MsgVoteWeighted): Promise { + const data = MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); + return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); + } + deposit(request: MsgDeposit): Promise { + const data = MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); + return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1/tx.ts b/packages/api/src/cosmos/gov/v1/tx.ts new file mode 100644 index 00000000..9faf1aeb --- /dev/null +++ b/packages/api/src/cosmos/gov/v1/tx.ts @@ -0,0 +1,1067 @@ +//@ts-nocheck +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType } from "./gov"; +import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposal { + messages: Any[]; + initialDeposit: Coin[]; + proposer: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata: string; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; + value: Uint8Array; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalAmino { + messages?: AnyAmino[]; + initial_deposit?: CoinAmino[]; + proposer?: string; + /** metadata is any arbitrary metadata attached to the proposal. */ + metadata?: string; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/v1/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalSDKType { + messages: AnySDKType[]; + initial_deposit: CoinSDKType[]; + proposer: string; + metadata: string; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + proposal_id?: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContent { + /** content is the proposal's content. */ + content?: TextProposal | Any | undefined; + /** authority must be the gov module address. */ + authority: string; +} +export interface MsgExecLegacyContentProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; + value: Uint8Array; +} +export type MsgExecLegacyContentEncoded = Omit & { + /** content is the proposal's content. */content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContentAmino { + /** content is the proposal's content. */ + content?: AnyAmino; + /** authority must be the gov module address. */ + authority?: string; +} +export interface MsgExecLegacyContentAminoMsg { + type: "cosmos-sdk/v1/MsgExecLegacyContent"; + value: MsgExecLegacyContentAmino; +} +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + */ +export interface MsgExecLegacyContentSDKType { + content?: TextProposalSDKType | AnySDKType | undefined; + authority: string; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponse {} +export interface MsgExecLegacyContentResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; + value: Uint8Array; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponseAmino {} +export interface MsgExecLegacyContentResponseAminoMsg { + type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; + value: MsgExecLegacyContentResponseAmino; +} +/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ +export interface MsgExecLegacyContentResponseSDKType {} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVote { + proposalId: bigint; + voter: string; + option: VoteOption; + metadata: string; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVote"; + value: Uint8Array; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteAmino { + proposal_id: string; + voter?: string; + option?: VoteOption; + metadata?: string; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/v1/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponse {} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseAmino {} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/v1/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType {} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeighted { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; + metadata: string; +} +export interface MsgVoteWeightedProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; + value: Uint8Array; +} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeightedAmino { + proposal_id: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; + metadata?: string; +} +export interface MsgVoteWeightedAminoMsg { + type: "cosmos-sdk/v1/MsgVoteWeighted"; + value: MsgVoteWeightedAmino; +} +/** MsgVoteWeighted defines a message to cast a vote. */ +export interface MsgVoteWeightedSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; + metadata: string; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponse {} +export interface MsgVoteWeightedResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; + value: Uint8Array; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponseAmino {} +export interface MsgVoteWeightedResponseAminoMsg { + type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; + value: MsgVoteWeightedResponseAmino; +} +/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ +export interface MsgVoteWeightedResponseSDKType {} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDeposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface MsgDepositProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgDeposit"; + value: Uint8Array; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositAmino { + proposal_id: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface MsgDepositAminoMsg { + type: "cosmos-sdk/v1/MsgDeposit"; + value: MsgDepositAmino; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponse {} +export interface MsgDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; + value: Uint8Array; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseAmino {} +export interface MsgDepositResponseAminoMsg { + type: "cosmos-sdk/v1/MsgDepositResponse"; + value: MsgDepositResponseAmino; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseSDKType {} +function createBaseMsgSubmitProposal(): MsgSubmitProposal { + return { + messages: [], + initialDeposit: [], + proposer: "", + metadata: "" + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.messages) { + Any.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 2: + message.initialDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { + const obj: any = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.messages = message.messages; + } + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { + return { + type: "cosmos-sdk/v1/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message: MsgSubmitProposal): Uint8Array { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { + return { + type: "cosmos-sdk/v1/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message: MsgSubmitProposalResponse): Uint8Array { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContent(): MsgExecLegacyContent { + return { + content: undefined, + authority: "" + }; +} +export const MsgExecLegacyContent = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + encode(message: MsgExecLegacyContent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.content !== undefined) { + Any.encode((message.content as Any), writer.uint32(10).fork()).ldelim(); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = (Content_InterfaceDecoder(reader) as Any); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgExecLegacyContent { + const message = createBaseMsgExecLegacyContent(); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent { + const message = createBaseMsgExecLegacyContent(); + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino { + const obj: any = {}; + obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent { + return MsgExecLegacyContent.fromAmino(object.value); + }, + toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContent", + value: MsgExecLegacyContent.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent { + return MsgExecLegacyContent.decode(message.value); + }, + toProto(message: MsgExecLegacyContent): Uint8Array { + return MsgExecLegacyContent.encode(message).finish(); + }, + toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", + value: MsgExecLegacyContent.encode(message).finish() + }; + } +}; +function createBaseMsgExecLegacyContentResponse(): MsgExecLegacyContentResponse { + return {}; +} +export const MsgExecLegacyContentResponse = { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + encode(_: MsgExecLegacyContentResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecLegacyContentResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgExecLegacyContentResponse { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse { + const message = createBaseMsgExecLegacyContentResponse(); + return message; + }, + toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse { + return MsgExecLegacyContentResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg { + return { + type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", + value: MsgExecLegacyContentResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse { + return MsgExecLegacyContentResponse.decode(message.value); + }, + toProto(message: MsgExecLegacyContentResponse): Uint8Array { + return MsgExecLegacyContentResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", + value: MsgExecLegacyContentResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote(): MsgVote { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "" + }; +} +export const MsgVote = { + typeUrl: "/cosmos.gov.v1.MsgVote", + encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = (reader.int32() as any); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgVote { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgVoteAmino): MsgVote { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgVote): MsgVoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message: MsgVote): MsgVoteAminoMsg { + return { + type: "cosmos-sdk/v1/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { + return MsgVote.decode(message.value); + }, + toProto(message: MsgVote): Uint8Array { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message: MsgVote): MsgVoteProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse(): MsgVoteResponse { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { + return { + type: "cosmos-sdk/v1/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { + return MsgVoteResponse.decode(message.value); + }, + toProto(message: MsgVoteResponse): Uint8Array { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted(): MsgVoteWeighted { + return { + proposalId: BigInt(0), + voter: "", + options: [], + metadata: "" + }; +} +export const MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgVoteWeighted { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } else { + obj.options = message.options; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted { + return MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg { + return { + type: "cosmos-sdk/v1/MsgVoteWeighted", + value: MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted { + return MsgVoteWeighted.decode(message.value); + }, + toProto(message: MsgVoteWeighted): Uint8Array { + return MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse { + return {}; +} +export const MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgVoteWeightedResponse { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse { + return MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg { + return { + type: "cosmos-sdk/v1/MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse { + return MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message: MsgVoteWeightedResponse): Uint8Array { + return MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit(): MsgDeposit { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const MsgDeposit = { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDeposit { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgDepositAmino): MsgDeposit { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgDeposit): MsgDepositAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit { + return MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg { + return { + type: "cosmos-sdk/v1/MsgDeposit", + value: MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit { + return MsgDeposit.decode(message.value); + }, + toProto(message: MsgDeposit): Uint8Array { + return MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgDeposit", + value: MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse(): MsgDepositResponse { + return {}; +} +export const MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgDepositResponse { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_: MsgDepositResponse): MsgDepositResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse { + return MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg { + return { + type: "cosmos-sdk/v1/MsgDepositResponse", + value: MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse { + return MsgDepositResponse.decode(message.value); + }, + toProto(message: MsgDepositResponse): Uint8Array { + return MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1.MsgDepositResponse", + value: MsgDepositResponse.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/v1/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/v1/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/genesis.ts b/packages/api/src/cosmos/gov/v1beta1/genesis.ts new file mode 100644 index 00000000..25644b8b --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/genesis.ts @@ -0,0 +1,202 @@ +//@ts-nocheck +import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisState { + /** starting_proposal_id is the ID of the starting proposal. */ + startingProposalId: bigint; + /** deposits defines all the deposits present at genesis. */ + deposits: Deposit[]; + /** votes defines all the votes present at genesis. */ + votes: Vote[]; + /** proposals defines all the proposals present at genesis. */ + proposals: Proposal[]; + /** params defines all the paramaters of related to deposit. */ + depositParams: DepositParams; + /** params defines all the paramaters of related to voting. */ + votingParams: VotingParams; + /** params defines all the paramaters of related to tally. */ + tallyParams: TallyParams; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateAmino { + /** starting_proposal_id is the ID of the starting proposal. */ + starting_proposal_id?: string; + /** deposits defines all the deposits present at genesis. */ + deposits?: DepositAmino[]; + /** votes defines all the votes present at genesis. */ + votes?: VoteAmino[]; + /** proposals defines all the proposals present at genesis. */ + proposals?: ProposalAmino[]; + /** params defines all the paramaters of related to deposit. */ + deposit_params?: DepositParamsAmino; + /** params defines all the paramaters of related to voting. */ + voting_params?: VotingParamsAmino; + /** params defines all the paramaters of related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the gov module's genesis state. */ +export interface GenesisStateSDKType { + starting_proposal_id: bigint; + deposits: DepositSDKType[]; + votes: VoteSDKType[]; + proposals: ProposalSDKType[]; + deposit_params: DepositParamsSDKType; + voting_params: VotingParamsSDKType; + tally_params: TallyParamsSDKType; +} +function createBaseGenesisState(): GenesisState { + return { + startingProposalId: BigInt(0), + deposits: [], + votes: [], + proposals: [], + depositParams: DepositParams.fromPartial({}), + votingParams: VotingParams.fromPartial({}), + tallyParams: TallyParams.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.startingProposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.startingProposalId); + } + for (const v of message.deposits) { + Deposit.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); + } + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startingProposalId = reader.uint64(); + break; + case 2: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 3: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 4: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 5: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 6: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 7: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { + message.startingProposalId = BigInt(object.starting_proposal_id); + } + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } else { + obj.deposits = message.deposits; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/gov.ts b/packages/api/src/cosmos/gov/v1beta1/gov.ts new file mode 100644 index 00000000..ac759ab7 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/gov.ts @@ -0,0 +1,1398 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given governance proposal. */ +export enum VoteOption { + /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1, +} +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object: any): VoteOption { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object: VoteOption): string { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus enumerates the valid statuses of a proposal. */ +export enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + */ + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + /** + * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + */ + PROPOSAL_STATUS_VOTING_PERIOD = 2, + /** + * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + */ + PROPOSAL_STATUS_PASSED = 3, + /** + * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + */ + PROPOSAL_STATUS_REJECTED = 4, + /** + * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + */ + PROPOSAL_STATUS_FAILED = 5, + UNRECOGNIZED = -1, +} +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object: any): ProposalStatus { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; + case 2: + case "PROPOSAL_STATUS_VOTING_PERIOD": + return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; + case 3: + case "PROPOSAL_STATUS_PASSED": + return ProposalStatus.PROPOSAL_STATUS_PASSED; + case 4: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 5: + case "PROPOSAL_STATUS_FAILED": + return ProposalStatus.PROPOSAL_STATUS_FAILED; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object: ProposalStatus): string { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: + return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: + return "PROPOSAL_STATUS_VOTING_PERIOD"; + case ProposalStatus.PROPOSAL_STATUS_PASSED: + return "PROPOSAL_STATUS_PASSED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_FAILED: + return "PROPOSAL_STATUS_FAILED"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOption { + option: VoteOption; + weight: string; +} +export interface WeightedVoteOptionProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; + value: Uint8Array; +} +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOptionAmino { + option?: VoteOption; + weight?: string; +} +export interface WeightedVoteOptionAminoMsg { + type: "cosmos-sdk/WeightedVoteOption"; + value: WeightedVoteOptionAmino; +} +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + */ +export interface WeightedVoteOptionSDKType { + option: VoteOption; + weight: string; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposal { + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; + title: string; + description: string; +} +export interface TextProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TextProposal"; + value: Uint8Array; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposalAmino { + title?: string; + description?: string; +} +export interface TextProposalAminoMsg { + type: "cosmos-sdk/TextProposal"; + value: TextProposalAmino; +} +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + */ +export interface TextProposalSDKType { + $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; + title: string; + description: string; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface Deposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface DepositProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Deposit"; + value: Uint8Array; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositAmino { + proposal_id?: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface DepositAminoMsg { + type: "cosmos-sdk/Deposit"; + value: DepositAmino; +} +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface DepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface Proposal { + proposalId: bigint; + content?: TextProposal | Any | undefined; + status: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + finalTallyResult: TallyResult; + submitTime: Date; + depositEndTime: Date; + totalDeposit: Coin[]; + votingStartTime: Date; + votingEndTime: Date; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Proposal"; + value: Uint8Array; +} +export type ProposalEncoded = Omit & { + content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalAmino { + proposal_id?: string; + content?: AnyAmino; + status?: ProposalStatus; + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + */ + final_tally_result?: TallyResultAmino; + submit_time?: string; + deposit_end_time?: string; + total_deposit?: CoinAmino[]; + voting_start_time?: string; + voting_end_time?: string; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/Proposal"; + value: ProposalAmino; +} +/** Proposal defines the core field members of a governance proposal. */ +export interface ProposalSDKType { + proposal_id: bigint; + content?: TextProposalSDKType | AnySDKType | undefined; + status: ProposalStatus; + final_tally_result: TallyResultSDKType; + submit_time: Date; + deposit_end_time: Date; + total_deposit: CoinSDKType[]; + voting_start_time: Date; + voting_end_time: Date; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResult { + yes: string; + abstain: string; + no: string; + noWithVeto: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TallyResult"; + value: Uint8Array; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultAmino { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult defines a standard tally for a governance proposal. */ +export interface TallyResultSDKType { + yes: string; + abstain: string; + no: string; + no_with_veto: string; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface Vote { + proposalId: bigint; + voter: string; + /** + * Deprecated: Prefer to use `options` instead. This field is set in queries + * if and only if `len(options) == 1` and that option has weight 1. In all + * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + */ + /** @deprecated */ + option: VoteOption; + /** Since: cosmos-sdk 0.43 */ + options: WeightedVoteOption[]; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.Vote"; + value: Uint8Array; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteAmino { + proposal_id: string; + voter?: string; + /** + * Deprecated: Prefer to use `options` instead. This field is set in queries + * if and only if `len(options) == 1` and that option has weight 1. In all + * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + */ + /** @deprecated */ + option?: VoteOption; + /** Since: cosmos-sdk 0.43 */ + options?: WeightedVoteOptionAmino[]; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/Vote"; + value: VoteAmino; +} +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + /** @deprecated */ + option: VoteOption; + options: WeightedVoteOptionSDKType[]; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + minDeposit: Coin[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + maxDepositPeriod: Duration; +} +export interface DepositParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.DepositParams"; + value: Uint8Array; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsAmino { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: CoinAmino[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: DurationAmino; +} +export interface DepositParamsAminoMsg { + type: "cosmos-sdk/DepositParams"; + value: DepositParamsAmino; +} +/** DepositParams defines the params for deposits on governance proposals. */ +export interface DepositParamsSDKType { + min_deposit: CoinSDKType[]; + max_deposit_period: DurationSDKType; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParams { + /** Length of the voting period. */ + votingPeriod: Duration; +} +export interface VotingParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.VotingParams"; + value: Uint8Array; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsAmino { + /** Length of the voting period. */ + voting_period?: DurationAmino; +} +export interface VotingParamsAminoMsg { + type: "cosmos-sdk/VotingParams"; + value: VotingParamsAmino; +} +/** VotingParams defines the params for voting on governance proposals. */ +export interface VotingParamsSDKType { + voting_period: DurationSDKType; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum: Uint8Array; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold: Uint8Array; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + vetoThreshold: Uint8Array; +} +export interface TallyParamsProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.TallyParams"; + value: Uint8Array; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsAmino { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + */ + quorum?: string; + /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + */ + veto_threshold?: string; +} +export interface TallyParamsAminoMsg { + type: "cosmos-sdk/TallyParams"; + value: TallyParamsAmino; +} +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface TallyParamsSDKType { + quorum: Uint8Array; + threshold: Uint8Array; + veto_threshold: Uint8Array; +} +function createBaseWeightedVoteOption(): WeightedVoteOption { + return { + option: 0, + weight: "" + }; +} +export const WeightedVoteOption = { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + encode(message: WeightedVoteOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.option !== 0) { + writer.uint32(8).int32(message.option); + } + if (message.weight !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.weight, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWeightedVoteOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.option = (reader.int32() as any); + break; + case 2: + message.weight = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): WeightedVoteOption { + const message = createBaseWeightedVoteOption(); + message.option = object.option ?? 0; + message.weight = object.weight ?? ""; + return message; + }, + fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption { + const message = createBaseWeightedVoteOption(); + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + return message; + }, + toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino { + const obj: any = {}; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; + return obj; + }, + fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption { + return WeightedVoteOption.fromAmino(object.value); + }, + toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg { + return { + type: "cosmos-sdk/WeightedVoteOption", + value: WeightedVoteOption.toAmino(message) + }; + }, + fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption { + return WeightedVoteOption.decode(message.value); + }, + toProto(message: WeightedVoteOption): Uint8Array { + return WeightedVoteOption.encode(message).finish(); + }, + toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", + value: WeightedVoteOption.encode(message).finish() + }; + } +}; +function createBaseTextProposal(): TextProposal { + return { + $typeUrl: "/cosmos.gov.v1beta1.TextProposal", + title: "", + description: "" + }; +} +export const TextProposal = { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + encode(message: TextProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TextProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTextProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TextProposal { + const message = createBaseTextProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object: TextProposalAmino): TextProposal { + const message = createBaseTextProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message: TextProposal): TextProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object: TextProposalAminoMsg): TextProposal { + return TextProposal.fromAmino(object.value); + }, + toAminoMsg(message: TextProposal): TextProposalAminoMsg { + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(message) + }; + }, + fromProtoMsg(message: TextProposalProtoMsg): TextProposal { + return TextProposal.decode(message.value); + }, + toProto(message: TextProposal): Uint8Array { + return TextProposal.encode(message).finish(); + }, + toProtoMsg(message: TextProposal): TextProposalProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(message).finish() + }; + } +}; +function createBaseDeposit(): Deposit { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const Deposit = { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + encode(message: Deposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Deposit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Deposit { + const message = createBaseDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: DepositAmino): Deposit { + const message = createBaseDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Deposit): DepositAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: DepositAminoMsg): Deposit { + return Deposit.fromAmino(object.value); + }, + toAminoMsg(message: Deposit): DepositAminoMsg { + return { + type: "cosmos-sdk/Deposit", + value: Deposit.toAmino(message) + }; + }, + fromProtoMsg(message: DepositProtoMsg): Deposit { + return Deposit.decode(message.value); + }, + toProto(message: Deposit): Uint8Array { + return Deposit.encode(message).finish(); + }, + toProtoMsg(message: Deposit): DepositProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.Deposit", + value: Deposit.encode(message).finish() + }; + } +}; +function createBaseProposal(): Proposal { + return { + proposalId: BigInt(0), + content: undefined, + status: 0, + finalTallyResult: TallyResult.fromPartial({}), + submitTime: new Date(), + depositEndTime: new Date(), + totalDeposit: [], + votingStartTime: new Date(), + votingEndTime: new Date() + }; +} +export const Proposal = { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.content !== undefined) { + Any.encode((message.content as Any), writer.uint32(18).fork()).ldelim(); + } + if (message.status !== 0) { + writer.uint32(24).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.depositEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); + } + for (const v of message.totalDeposit) { + Coin.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.votingStartTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); + } + if (message.votingEndTime !== undefined) { + Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Proposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.content = (Content_InterfaceDecoder(reader) as Any); + break; + case 3: + message.status = (reader.int32() as any); + break; + case 4: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.totalDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 8: + message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Proposal { + const message = createBaseProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.submitTime = object.submitTime ?? undefined; + message.depositEndTime = object.depositEndTime ?? undefined; + message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; + message.votingStartTime = object.votingStartTime ?? undefined; + message.votingEndTime = object.votingEndTime ?? undefined; + return message; + }, + fromAmino(object: ProposalAmino): Proposal { + const message = createBaseProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { + message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); + } + message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.voting_start_time !== undefined && object.voting_start_time !== null) { + message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); + } + if (object.voting_end_time !== undefined && object.voting_end_time !== null) { + message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); + } + return message; + }, + toAmino(message: Proposal): ProposalAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; + if (message.totalDeposit) { + obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.total_deposit = message.totalDeposit; + } + obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; + obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; + return obj; + }, + fromAminoMsg(object: ProposalAminoMsg): Proposal { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message: Proposal): ProposalAminoMsg { + return { + type: "cosmos-sdk/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message: ProposalProtoMsg): Proposal { + return Proposal.decode(message.value); + }, + toProto(message: Proposal): Uint8Array { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message: Proposal): ProposalProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult(): TallyResult { + return { + yes: "", + abstain: "", + no: "", + noWithVeto: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.yes !== "") { + writer.uint32(10).string(message.yes); + } + if (message.abstain !== "") { + writer.uint32(18).string(message.abstain); + } + if (message.no !== "") { + writer.uint32(26).string(message.no); + } + if (message.noWithVeto !== "") { + writer.uint32(34).string(message.noWithVeto); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yes = reader.string(); + break; + case 2: + message.abstain = reader.string(); + break; + case 3: + message.no = reader.string(); + break; + case 4: + message.noWithVeto = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TallyResult { + const message = createBaseTallyResult(); + message.yes = object.yes ?? ""; + message.abstain = object.abstain ?? ""; + message.no = object.no ?? ""; + message.noWithVeto = object.noWithVeto ?? ""; + return message; + }, + fromAmino(object: TallyResultAmino): TallyResult { + const message = createBaseTallyResult(); + if (object.yes !== undefined && object.yes !== null) { + message.yes = object.yes; + } + if (object.abstain !== undefined && object.abstain !== null) { + message.abstain = object.abstain; + } + if (object.no !== undefined && object.no !== null) { + message.no = object.no; + } + if (object.no_with_veto !== undefined && object.no_with_veto !== null) { + message.noWithVeto = object.no_with_veto; + } + return message; + }, + toAmino(message: TallyResult): TallyResultAmino { + const obj: any = {}; + obj.yes = message.yes === "" ? undefined : message.yes; + obj.abstain = message.abstain === "" ? undefined : message.abstain; + obj.no = message.no === "" ? undefined : message.no; + obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; + return obj; + }, + fromAminoMsg(object: TallyResultAminoMsg): TallyResult { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message: TallyResult): TallyResultAminoMsg { + return { + type: "cosmos-sdk/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message: TallyResultProtoMsg): TallyResult { + return TallyResult.decode(message.value); + }, + toProto(message: TallyResult): Uint8Array { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message: TallyResult): TallyResultProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote(): Vote { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + options: [] + }; +} +export const Vote = { + typeUrl: "/cosmos.gov.v1beta1.Vote", + encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + for (const v of message.options) { + WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Vote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = (reader.int32() as any); + break; + case 4: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Vote { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: VoteAmino): Vote { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: Vote): VoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object: VoteAminoMsg): Vote { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message: Vote): VoteAminoMsg { + return { + type: "cosmos-sdk/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message: VoteProtoMsg): Vote { + return Vote.decode(message.value); + }, + toProto(message: Vote): Uint8Array { + return Vote.encode(message).finish(); + }, + toProtoMsg(message: Vote): VoteProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseDepositParams(): DepositParams { + return { + minDeposit: [], + maxDepositPeriod: Duration.fromPartial({}) + }; +} +export const DepositParams = { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + encode(message: DepositParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.minDeposit) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.maxDepositPeriod !== undefined) { + Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DepositParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDepositParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DepositParams { + const message = createBaseDepositParams(); + message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; + message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; + return message; + }, + fromAmino(object: DepositParamsAmino): DepositParams { + const message = createBaseDepositParams(); + message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { + message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); + } + return message; + }, + toAmino(message: DepositParams): DepositParamsAmino { + const obj: any = {}; + if (message.minDeposit) { + obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.min_deposit = message.minDeposit; + } + obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; + return obj; + }, + fromAminoMsg(object: DepositParamsAminoMsg): DepositParams { + return DepositParams.fromAmino(object.value); + }, + toAminoMsg(message: DepositParams): DepositParamsAminoMsg { + return { + type: "cosmos-sdk/DepositParams", + value: DepositParams.toAmino(message) + }; + }, + fromProtoMsg(message: DepositParamsProtoMsg): DepositParams { + return DepositParams.decode(message.value); + }, + toProto(message: DepositParams): Uint8Array { + return DepositParams.encode(message).finish(); + }, + toProtoMsg(message: DepositParams): DepositParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.DepositParams", + value: DepositParams.encode(message).finish() + }; + } +}; +function createBaseVotingParams(): VotingParams { + return { + votingPeriod: Duration.fromPartial({}) + }; +} +export const VotingParams = { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + encode(message: VotingParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): VotingParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVotingParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): VotingParams { + const message = createBaseVotingParams(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + return message; + }, + fromAmino(object: VotingParamsAmino): VotingParams { + const message = createBaseVotingParams(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + return message; + }, + toAmino(message: VotingParams): VotingParamsAmino { + const obj: any = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + return obj; + }, + fromAminoMsg(object: VotingParamsAminoMsg): VotingParams { + return VotingParams.fromAmino(object.value); + }, + toAminoMsg(message: VotingParams): VotingParamsAminoMsg { + return { + type: "cosmos-sdk/VotingParams", + value: VotingParams.toAmino(message) + }; + }, + fromProtoMsg(message: VotingParamsProtoMsg): VotingParams { + return VotingParams.decode(message.value); + }, + toProto(message: VotingParams): Uint8Array { + return VotingParams.encode(message).finish(); + }, + toProtoMsg(message: VotingParams): VotingParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.VotingParams", + value: VotingParams.encode(message).finish() + }; + } +}; +function createBaseTallyParams(): TallyParams { + return { + quorum: new Uint8Array(), + threshold: new Uint8Array(), + vetoThreshold: new Uint8Array() + }; +} +export const TallyParams = { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + encode(message: TallyParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.quorum.length !== 0) { + writer.uint32(10).bytes(message.quorum); + } + if (message.threshold.length !== 0) { + writer.uint32(18).bytes(message.threshold); + } + if (message.vetoThreshold.length !== 0) { + writer.uint32(26).bytes(message.vetoThreshold); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TallyParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.quorum = reader.bytes(); + break; + case 2: + message.threshold = reader.bytes(); + break; + case 3: + message.vetoThreshold = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TallyParams { + const message = createBaseTallyParams(); + message.quorum = object.quorum ?? new Uint8Array(); + message.threshold = object.threshold ?? new Uint8Array(); + message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); + return message; + }, + fromAmino(object: TallyParamsAmino): TallyParams { + const message = createBaseTallyParams(); + if (object.quorum !== undefined && object.quorum !== null) { + message.quorum = bytesFromBase64(object.quorum); + } + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = bytesFromBase64(object.threshold); + } + if (object.veto_threshold !== undefined && object.veto_threshold !== null) { + message.vetoThreshold = bytesFromBase64(object.veto_threshold); + } + return message; + }, + toAmino(message: TallyParams): TallyParamsAmino { + const obj: any = {}; + obj.quorum = message.quorum ? base64FromBytes(message.quorum) : undefined; + obj.threshold = message.threshold ? base64FromBytes(message.threshold) : undefined; + obj.veto_threshold = message.vetoThreshold ? base64FromBytes(message.vetoThreshold) : undefined; + return obj; + }, + fromAminoMsg(object: TallyParamsAminoMsg): TallyParams { + return TallyParams.fromAmino(object.value); + }, + toAminoMsg(message: TallyParams): TallyParamsAminoMsg { + return { + type: "cosmos-sdk/TallyParams", + value: TallyParams.toAmino(message) + }; + }, + fromProtoMsg(message: TallyParamsProtoMsg): TallyParams { + return TallyParams.decode(message.value); + }, + toProto(message: TallyParams): Uint8Array { + return TallyParams.encode(message).finish(); + }, + toProtoMsg(message: TallyParams): TallyParamsProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.TallyParams", + value: TallyParams.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/query.lcd.ts b/packages/api/src/cosmos/gov/v1beta1/query.lcd.ts new file mode 100644 index 00000000..f7fc03c5 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/query.lcd.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* Proposal queries proposal details based on ProposalID. */ + async proposal(params: QueryProposalRequest): Promise { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* Proposals queries all proposals based on given status. */ + async proposals(params: QueryProposalsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.proposalStatus !== "undefined") { + options.params.proposal_status = params.proposalStatus; + } + if (typeof params?.voter !== "undefined") { + options.params.voter = params.voter; + } + if (typeof params?.depositor !== "undefined") { + options.params.depositor = params.depositor; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals`; + return await this.req.get(endpoint, options); + } + /* Vote queries voted information based on proposalID, voterAddr. */ + async vote(params: QueryVoteRequest): Promise { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; + return await this.req.get(endpoint); + } + /* Votes queries votes of a given proposal. */ + async votes(params: QueryVotesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the gov module. */ + async params(params: QueryParamsRequest): Promise { + const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; + return await this.req.get(endpoint); + } + /* Deposit queries single deposit information based proposalID, depositAddr. */ + async deposit(params: QueryDepositRequest): Promise { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; + return await this.req.get(endpoint); + } + /* Deposits queries all deposits of a single proposal. */ + async deposits(params: QueryDepositsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; + return await this.req.get(endpoint, options); + } + /* TallyResult queries the tally of a proposal vote. */ + async tallyResult(params: QueryTallyResultRequest): Promise { + const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/gov/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..17fd7312 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/query.rpc.Query.ts @@ -0,0 +1,108 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query defines the gRPC querier service for gov module */ +export interface Query { + /** Proposal queries proposal details based on ProposalID. */ + proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ + proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ + vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ + votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ + params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ + deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ + deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request: QueryProposalRequest): Promise { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposals(request: QueryProposalsRequest): Promise { + const data = QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); + return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); + } + vote(request: QueryVoteRequest): Promise { + const data = QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); + return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); + } + votes(request: QueryVotesRequest): Promise { + const data = QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); + return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + deposit(request: QueryDepositRequest): Promise { + const data = QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); + return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); + } + deposits(request: QueryDepositsRequest): Promise { + const data = QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); + return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); + } + tallyResult(request: QueryTallyResultRequest): Promise { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request: QueryProposalRequest): Promise { + return queryService.proposal(request); + }, + proposals(request: QueryProposalsRequest): Promise { + return queryService.proposals(request); + }, + vote(request: QueryVoteRequest): Promise { + return queryService.vote(request); + }, + votes(request: QueryVotesRequest): Promise { + return queryService.votes(request); + }, + params(request: QueryParamsRequest): Promise { + return queryService.params(request); + }, + deposit(request: QueryDepositRequest): Promise { + return queryService.deposit(request); + }, + deposits(request: QueryDepositsRequest): Promise { + return queryService.deposits(request); + }, + tallyResult(request: QueryTallyResultRequest): Promise { + return queryService.tallyResult(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/query.ts b/packages/api/src/cosmos/gov/v1beta1/query.ts new file mode 100644 index 00000000..93e21125 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/query.ts @@ -0,0 +1,1679 @@ +//@ts-nocheck +import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponse { + proposal: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseAmino { + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface QueryProposalResponseSDKType { + proposal: ProposalSDKType; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequest { + /** proposal_status defines the status of the proposals. */ + proposalStatus: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; + value: Uint8Array; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestAmino { + /** proposal_status defines the status of the proposals. */ + proposal_status?: ProposalStatus; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsRequestAminoMsg { + type: "cosmos-sdk/QueryProposalsRequest"; + value: QueryProposalsRequestAmino; +} +/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ +export interface QueryProposalsRequestSDKType { + proposal_status: ProposalStatus; + voter: string; + depositor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponse { + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; + value: Uint8Array; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseAmino { + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsResponseAminoMsg { + type: "cosmos-sdk/QueryProposalsResponse"; + value: QueryProposalsResponseAmino; +} +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface QueryProposalsResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** voter defines the voter address for the proposals. */ + voter: string; +} +export interface QueryVoteRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; + value: Uint8Array; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** voter defines the voter address for the proposals. */ + voter?: string; +} +export interface QueryVoteRequestAminoMsg { + type: "cosmos-sdk/QueryVoteRequest"; + value: QueryVoteRequestAmino; +} +/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ +export interface QueryVoteRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponse { + /** vote defined the queried vote. */ + vote: Vote; +} +export interface QueryVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; + value: Uint8Array; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseAmino { + /** vote defined the queried vote. */ + vote?: VoteAmino; +} +export interface QueryVoteResponseAminoMsg { + type: "cosmos-sdk/QueryVoteResponse"; + value: QueryVoteResponseAmino; +} +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface QueryVoteResponseSDKType { + vote: VoteSDKType; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; + value: Uint8Array; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesRequestAminoMsg { + type: "cosmos-sdk/QueryVotesRequest"; + value: QueryVotesRequestAmino; +} +/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ +export interface QueryVotesRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponse { + /** votes defined the queried votes. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; + value: Uint8Array; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseAmino { + /** votes defined the queried votes. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesResponseAminoMsg { + type: "cosmos-sdk/QueryVotesResponse"; + value: QueryVotesResponseAmino; +} +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface QueryVotesResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + paramsType: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + */ + params_type?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + params_type: string; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + votingParams: VotingParams; + /** deposit_params defines the parameters related to deposit. */ + depositParams: DepositParams; + /** tally_params defines the parameters related to tally. */ + tallyParams: TallyParams; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** voting_params defines the parameters related to voting. */ + voting_params?: VotingParamsAmino; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: DepositParamsAmino; + /** tally_params defines the parameters related to tally. */ + tally_params?: TallyParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + voting_params: VotingParamsSDKType; + deposit_params: DepositParamsSDKType; + tally_params: TallyParamsSDKType; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** depositor defines the deposit addresses from the proposals. */ + depositor: string; +} +export interface QueryDepositRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; + value: Uint8Array; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; +} +export interface QueryDepositRequestAminoMsg { + type: "cosmos-sdk/QueryDepositRequest"; + value: QueryDepositRequestAmino; +} +/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ +export interface QueryDepositRequestSDKType { + proposal_id: bigint; + depositor: string; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponse { + /** deposit defines the requested deposit. */ + deposit: Deposit; +} +export interface QueryDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; + value: Uint8Array; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseAmino { + /** deposit defines the requested deposit. */ + deposit?: DepositAmino; +} +export interface QueryDepositResponseAminoMsg { + type: "cosmos-sdk/QueryDepositResponse"; + value: QueryDepositResponseAmino; +} +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface QueryDepositResponseSDKType { + deposit: DepositSDKType; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDepositsRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; + value: Uint8Array; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDepositsRequestAminoMsg { + type: "cosmos-sdk/QueryDepositsRequest"; + value: QueryDepositsRequestAmino; +} +/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ +export interface QueryDepositsRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponse { + deposits: Deposit[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDepositsResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; + value: Uint8Array; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseAmino { + deposits?: DepositAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDepositsResponseAminoMsg { + type: "cosmos-sdk/QueryDepositsResponse"; + value: QueryDepositsResponseAmino; +} +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface QueryDepositsResponseSDKType { + deposits: DepositSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequest { + /** proposal_id defines the unique id of the proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id defines the unique id of the proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface QueryTallyResultResponseSDKType { + tally: TallyResultSDKType; +} +function createBaseQueryProposalRequest(): QueryProposalRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { + return QueryProposalRequest.decode(message.value); + }, + toProto(message: QueryProposalRequest): Uint8Array { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse(): QueryProposalResponse { + return { + proposal: Proposal.fromPartial({}) + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { + const obj: any = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { + return QueryProposalResponse.decode(message.value); + }, + toProto(message: QueryProposalResponse): Uint8Array { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsRequest(): QueryProposalsRequest { + return { + proposalStatus: 0, + voter: "", + depositor: "", + pagination: undefined + }; +} +export const QueryProposalsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + encode(message: QueryProposalsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalStatus !== 0) { + writer.uint32(8).int32(message.proposalStatus); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.depositor !== "") { + writer.uint32(26).string(message.depositor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalStatus = (reader.int32() as any); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.depositor = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsRequest { + const message = createBaseQueryProposalsRequest(); + message.proposalStatus = object.proposalStatus ?? 0; + message.voter = object.voter ?? ""; + message.depositor = object.depositor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest { + const message = createBaseQueryProposalsRequest(); + if (object.proposal_status !== undefined && object.proposal_status !== null) { + message.proposalStatus = object.proposal_status; + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino { + const obj: any = {}; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest { + return QueryProposalsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryProposalsRequest", + value: QueryProposalsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest { + return QueryProposalsRequest.decode(message.value); + }, + toProto(message: QueryProposalsRequest): Uint8Array { + return QueryProposalsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", + value: QueryProposalsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsResponse(): QueryProposalsResponse { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + encode(message: QueryProposalsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse { + const message = createBaseQueryProposalsResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino { + const obj: any = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse { + return QueryProposalsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryProposalsResponse", + value: QueryProposalsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse { + return QueryProposalsResponse.decode(message.value); + }, + toProto(message: QueryProposalsResponse): Uint8Array { + return QueryProposalsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", + value: QueryProposalsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteRequest(): QueryVoteRequest { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + encode(message: QueryVoteRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteRequest { + const message = createBaseQueryVoteRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest { + const message = createBaseQueryVoteRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message: QueryVoteRequest): QueryVoteRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest { + return QueryVoteRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg { + return { + type: "cosmos-sdk/QueryVoteRequest", + value: QueryVoteRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest { + return QueryVoteRequest.decode(message.value); + }, + toProto(message: QueryVoteRequest): Uint8Array { + return QueryVoteRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", + value: QueryVoteRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteResponse(): QueryVoteResponse { + return { + vote: Vote.fromPartial({}) + }; +} +export const QueryVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + encode(message: QueryVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteResponse { + const message = createBaseQueryVoteResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse { + const message = createBaseQueryVoteResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message: QueryVoteResponse): QueryVoteResponseAmino { + const obj: any = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse { + return QueryVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg { + return { + type: "cosmos-sdk/QueryVoteResponse", + value: QueryVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse { + return QueryVoteResponse.decode(message.value); + }, + toProto(message: QueryVoteResponse): Uint8Array { + return QueryVoteResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", + value: QueryVoteResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesRequest(): QueryVotesRequest { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + encode(message: QueryVotesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesRequest { + const message = createBaseQueryVotesRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest { + const message = createBaseQueryVotesRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesRequest): QueryVotesRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest { + return QueryVotesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryVotesRequest", + value: QueryVotesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest { + return QueryVotesRequest.decode(message.value); + }, + toProto(message: QueryVotesRequest): Uint8Array { + return QueryVotesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", + value: QueryVotesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesResponse(): QueryVotesResponse { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + encode(message: QueryVotesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesResponse { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse { + const message = createBaseQueryVotesResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesResponse): QueryVotesResponseAmino { + const obj: any = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse { + return QueryVotesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryVotesResponse", + value: QueryVotesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse { + return QueryVotesResponse.decode(message.value); + }, + toProto(message: QueryVotesResponse): Uint8Array { + return QueryVotesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", + value: QueryVotesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return { + paramsType: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.paramsType !== "") { + writer.uint32(10).string(message.paramsType); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.paramsType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + message.paramsType = object.paramsType ?? ""; + return message; + }, + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + if (object.params_type !== undefined && object.params_type !== null) { + message.paramsType = object.params_type; + } + return message; + }, + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + votingParams: VotingParams.fromPartial({}), + depositParams: DepositParams.fromPartial({}), + tallyParams: TallyParams.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.votingParams !== undefined) { + VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); + } + if (message.depositParams !== undefined) { + DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); + } + if (message.tallyParams !== undefined) { + TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingParams = VotingParams.decode(reader, reader.uint32()); + break; + case 2: + message.depositParams = DepositParams.decode(reader, reader.uint32()); + break; + case 3: + message.tallyParams = TallyParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; + message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; + message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.voting_params !== undefined && object.voting_params !== null) { + message.votingParams = VotingParams.fromAmino(object.voting_params); + } + if (object.deposit_params !== undefined && object.deposit_params !== null) { + message.depositParams = DepositParams.fromAmino(object.deposit_params); + } + if (object.tally_params !== undefined && object.tally_params !== null) { + message.tallyParams = TallyParams.fromAmino(object.tally_params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; + obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; + obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositRequest(): QueryDepositRequest { + return { + proposalId: BigInt(0), + depositor: "" + }; +} +export const QueryDepositRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + encode(message: QueryDepositRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositRequest { + const message = createBaseQueryDepositRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + return message; + }, + fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest { + const message = createBaseQueryDepositRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + return message; + }, + toAmino(message: QueryDepositRequest): QueryDepositRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + return obj; + }, + fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest { + return QueryDepositRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDepositRequest", + value: QueryDepositRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest { + return QueryDepositRequest.decode(message.value); + }, + toProto(message: QueryDepositRequest): Uint8Array { + return QueryDepositRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", + value: QueryDepositRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositResponse(): QueryDepositResponse { + return { + deposit: Deposit.fromPartial({}) + }; +} +export const QueryDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + encode(message: QueryDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.deposit !== undefined) { + Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposit = Deposit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositResponse { + const message = createBaseQueryDepositResponse(); + message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; + return message; + }, + fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse { + const message = createBaseQueryDepositResponse(); + if (object.deposit !== undefined && object.deposit !== null) { + message.deposit = Deposit.fromAmino(object.deposit); + } + return message; + }, + toAmino(message: QueryDepositResponse): QueryDepositResponseAmino { + const obj: any = {}; + obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse { + return QueryDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDepositResponse", + value: QueryDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse { + return QueryDepositResponse.decode(message.value); + }, + toProto(message: QueryDepositResponse): Uint8Array { + return QueryDepositResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", + value: QueryDepositResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsRequest(): QueryDepositsRequest { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryDepositsRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + encode(message: QueryDepositsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositsRequest { + const message = createBaseQueryDepositsRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest { + const message = createBaseQueryDepositsRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest { + return QueryDepositsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDepositsRequest", + value: QueryDepositsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest { + return QueryDepositsRequest.decode(message.value); + }, + toProto(message: QueryDepositsRequest): Uint8Array { + return QueryDepositsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", + value: QueryDepositsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDepositsResponse(): QueryDepositsResponse { + return { + deposits: [], + pagination: undefined + }; +} +export const QueryDepositsResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + encode(message: QueryDepositsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.deposits) { + Deposit.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDepositsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deposits.push(Deposit.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDepositsResponse { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse { + const message = createBaseQueryDepositsResponse(); + message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino { + const obj: any = {}; + if (message.deposits) { + obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); + } else { + obj.deposits = message.deposits; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse { + return QueryDepositsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDepositsResponse", + value: QueryDepositsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse { + return QueryDepositsResponse.decode(message.value); + }, + toProto(message: QueryDepositsResponse): Uint8Array { + return QueryDepositsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", + value: QueryDepositsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message: QueryTallyResultRequest): Uint8Array { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { + return { + tally: TallyResult.fromPartial({}) + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { + const obj: any = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message: QueryTallyResultResponse): Uint8Array { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/tx.amino.ts b/packages/api/src/cosmos/gov/v1beta1/tx.amino.ts new file mode 100644 index 00000000..933c1663 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/tx.amino.ts @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const AminoConverter = { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVote": { + aminoType: "cosmos-sdk/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.gov.v1beta1.MsgVoteWeighted": { + aminoType: "cosmos-sdk/MsgVoteWeighted", + toAmino: MsgVoteWeighted.toAmino, + fromAmino: MsgVoteWeighted.fromAmino + }, + "/cosmos.gov.v1beta1.MsgDeposit": { + aminoType: "cosmos-sdk/MsgDeposit", + toAmino: MsgDeposit.toAmino, + fromAmino: MsgDeposit.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/tx.registry.ts b/packages/api/src/cosmos/gov/v1beta1/tx.registry.ts new file mode 100644 index 00000000..604c0b30 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/tx.registry.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(value).finish() + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.encode(value).finish() + }; + } + }, + withTypeUrl: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value + }; + } + }, + fromPartial: { + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + voteWeighted(value: MsgVoteWeighted) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.fromPartial(value) + }; + }, + deposit(value: MsgDeposit) { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/gov/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..92c3feaa --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,49 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ + vote(request: MsgVote): Promise; + /** + * VoteWeighted defines a method to add a weighted vote on a specific proposal. + * + * Since: cosmos-sdk 0.43 + */ + voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ + deposit(request: MsgDeposit): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request: MsgSubmitProposal): Promise { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + vote(request: MsgVote): Promise { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + voteWeighted(request: MsgVoteWeighted): Promise { + const data = MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); + return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); + } + deposit(request: MsgDeposit): Promise { + const data = MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); + return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/gov/v1beta1/tx.ts b/packages/api/src/cosmos/gov/v1beta1/tx.ts new file mode 100644 index 00000000..c1056c30 --- /dev/null +++ b/packages/api/src/cosmos/gov/v1beta1/tx.ts @@ -0,0 +1,854 @@ +//@ts-nocheck +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposal { + content?: TextProposal | Any | undefined; + initialDeposit: Coin[]; + proposer: string; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; + value: Uint8Array; +} +export type MsgSubmitProposalEncoded = Omit & { + content?: TextProposalProtoMsg | AnyProtoMsg | undefined; +}; +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalAmino { + content?: AnyAmino; + initial_deposit?: CoinAmino[]; + proposer?: string; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + */ +export interface MsgSubmitProposalSDKType { + content?: TextProposalSDKType | AnySDKType | undefined; + initial_deposit: CoinSDKType[]; + proposer: string; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + proposal_id: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVote { + proposalId: bigint; + voter: string; + option: VoteOption; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVote"; + value: Uint8Array; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteAmino { + proposal_id?: string; + voter?: string; + option?: VoteOption; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote defines a message to cast a vote. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponse {} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseAmino {} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse defines the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType {} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeighted { + proposalId: bigint; + voter: string; + options: WeightedVoteOption[]; +} +export interface MsgVoteWeightedProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; + value: Uint8Array; +} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedAmino { + proposal_id: string; + voter?: string; + options?: WeightedVoteOptionAmino[]; +} +export interface MsgVoteWeightedAminoMsg { + type: "cosmos-sdk/MsgVoteWeighted"; + value: MsgVoteWeightedAmino; +} +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedSDKType { + proposal_id: bigint; + voter: string; + options: WeightedVoteOptionSDKType[]; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponse {} +export interface MsgVoteWeightedResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; + value: Uint8Array; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponseAmino {} +export interface MsgVoteWeightedResponseAminoMsg { + type: "cosmos-sdk/MsgVoteWeightedResponse"; + value: MsgVoteWeightedResponseAmino; +} +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + */ +export interface MsgVoteWeightedResponseSDKType {} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDeposit { + proposalId: bigint; + depositor: string; + amount: Coin[]; +} +export interface MsgDepositProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; + value: Uint8Array; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositAmino { + proposal_id: string; + depositor?: string; + amount?: CoinAmino[]; +} +export interface MsgDepositAminoMsg { + type: "cosmos-sdk/MsgDeposit"; + value: MsgDepositAmino; +} +/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ +export interface MsgDepositSDKType { + proposal_id: bigint; + depositor: string; + amount: CoinSDKType[]; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponse {} +export interface MsgDepositResponseProtoMsg { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; + value: Uint8Array; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseAmino {} +export interface MsgDepositResponseAminoMsg { + type: "cosmos-sdk/MsgDepositResponse"; + value: MsgDepositResponseAmino; +} +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export interface MsgDepositResponseSDKType {} +function createBaseMsgSubmitProposal(): MsgSubmitProposal { + return { + content: undefined, + initialDeposit: [], + proposer: "" + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.content !== undefined) { + Any.encode((message.content as Any), writer.uint32(10).fork()).ldelim(); + } + for (const v of message.initialDeposit) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.proposer !== "") { + writer.uint32(26).string(message.proposer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = (Content_InterfaceDecoder(reader) as Any); + break; + case 2: + message.initialDeposit.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; + message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; + message.proposer = object.proposer ?? ""; + return message; + }, + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + if (object.content !== undefined && object.content !== null) { + message.content = Content_FromAmino(object.content); + } + message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = object.proposer; + } + return message; + }, + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { + const obj: any = {}; + obj.content = message.content ? Content_ToAmino((message.content as Any)) : undefined; + if (message.initialDeposit) { + obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.initial_deposit = message.initialDeposit; + } + obj.proposer = message.proposer === "" ? undefined : message.proposer; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message: MsgSubmitProposal): Uint8Array { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message: MsgSubmitProposalResponse): Uint8Array { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote(): MsgVote { + return { + proposalId: BigInt(0), + voter: "", + option: 0 + }; +} +export const MsgVote = { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgVote { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + return message; + }, + fromAmino(object: MsgVoteAmino): MsgVote { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + return message; + }, + toAmino(message: MsgVote): MsgVoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + return obj; + }, + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message: MsgVote): MsgVoteAminoMsg { + return { + type: "cosmos-sdk/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { + return MsgVote.decode(message.value); + }, + toProto(message: MsgVote): Uint8Array { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message: MsgVote): MsgVoteProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse(): MsgVoteResponse { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { + return MsgVoteResponse.decode(message.value); + }, + toProto(message: MsgVoteResponse): Uint8Array { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeighted(): MsgVoteWeighted { + return { + proposalId: BigInt(0), + voter: "", + options: [] + }; +} +export const MsgVoteWeighted = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + encode(message: MsgVoteWeighted, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + for (const v of message.options) { + WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeighted(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgVoteWeighted { + const message = createBaseMsgVoteWeighted(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted { + const message = createBaseMsgVoteWeighted(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + if (message.options) { + obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); + } else { + obj.options = message.options; + } + return obj; + }, + fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted { + return MsgVoteWeighted.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg { + return { + type: "cosmos-sdk/MsgVoteWeighted", + value: MsgVoteWeighted.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted { + return MsgVoteWeighted.decode(message.value); + }, + toProto(message: MsgVoteWeighted): Uint8Array { + return MsgVoteWeighted.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", + value: MsgVoteWeighted.encode(message).finish() + }; + } +}; +function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse { + return {}; +} +export const MsgVoteWeightedResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + encode(_: MsgVoteWeightedResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteWeightedResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgVoteWeightedResponse { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse { + const message = createBaseMsgVoteWeightedResponse(); + return message; + }, + toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse { + return MsgVoteWeightedResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg { + return { + type: "cosmos-sdk/MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse { + return MsgVoteWeightedResponse.decode(message.value); + }, + toProto(message: MsgVoteWeightedResponse): Uint8Array { + return MsgVoteWeightedResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", + value: MsgVoteWeightedResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDeposit(): MsgDeposit { + return { + proposalId: BigInt(0), + depositor: "", + amount: [] + }; +} +export const MsgDeposit = { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + encode(message: MsgDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.depositor !== "") { + writer.uint32(18).string(message.depositor); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDeposit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.depositor = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDeposit { + const message = createBaseMsgDeposit(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.depositor = object.depositor ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgDepositAmino): MsgDeposit { + const message = createBaseMsgDeposit(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.depositor !== undefined && object.depositor !== null) { + message.depositor = object.depositor; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgDeposit): MsgDepositAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit { + return MsgDeposit.fromAmino(object.value); + }, + toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg { + return { + type: "cosmos-sdk/MsgDeposit", + value: MsgDeposit.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit { + return MsgDeposit.decode(message.value); + }, + toProto(message: MsgDeposit): Uint8Array { + return MsgDeposit.encode(message).finish(); + }, + toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", + value: MsgDeposit.encode(message).finish() + }; + } +}; +function createBaseMsgDepositResponse(): MsgDepositResponse { + return {}; +} +export const MsgDepositResponse = { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + encode(_: MsgDepositResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDepositResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgDepositResponse { + const message = createBaseMsgDepositResponse(); + return message; + }, + fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse { + const message = createBaseMsgDepositResponse(); + return message; + }, + toAmino(_: MsgDepositResponse): MsgDepositResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse { + return MsgDepositResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg { + return { + type: "cosmos-sdk/MsgDepositResponse", + value: MsgDepositResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse { + return MsgDepositResponse.decode(message.value); + }, + toProto(message: MsgDepositResponse): Uint8Array { + return MsgDepositResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg { + return { + typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", + value: MsgDepositResponse.encode(message).finish() + }; + } +}; +export const Content_InterfaceDecoder = (input: BinaryReader | Uint8Array): TextProposal | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return TextProposal.decode(data.value); + default: + return data; + } +}; +export const Content_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/TextProposal": + return Any.fromPartial({ + typeUrl: "/cosmos.gov.v1beta1.TextProposal", + value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const Content_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.gov.v1beta1.TextProposal": + return { + type: "cosmos-sdk/TextProposal", + value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/events.ts b/packages/api/src/cosmos/group/v1/events.ts new file mode 100644 index 00000000..b795ac9c --- /dev/null +++ b/packages/api/src/cosmos/group/v1/events.ts @@ -0,0 +1,873 @@ +//@ts-nocheck +import { ProposalExecutorResult } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface EventCreateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventCreateGroup"; + value: Uint8Array; +} +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface EventCreateGroupAminoMsg { + type: "cosmos-sdk/EventCreateGroup"; + value: EventCreateGroupAmino; +} +/** EventCreateGroup is an event emitted when a group is created. */ +export interface EventCreateGroupSDKType { + group_id: bigint; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface EventUpdateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventUpdateGroup"; + value: Uint8Array; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface EventUpdateGroupAminoMsg { + type: "cosmos-sdk/EventUpdateGroup"; + value: EventUpdateGroupAmino; +} +/** EventUpdateGroup is an event emitted when a group is updated. */ +export interface EventUpdateGroupSDKType { + group_id: bigint; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicy { + /** address is the account address of the group policy. */ + address: string; +} +export interface EventCreateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; + value: Uint8Array; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicyAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface EventCreateGroupPolicyAminoMsg { + type: "cosmos-sdk/EventCreateGroupPolicy"; + value: EventCreateGroupPolicyAmino; +} +/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ +export interface EventCreateGroupPolicySDKType { + address: string; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicy { + /** address is the account address of the group policy. */ + address: string; +} +export interface EventUpdateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; + value: Uint8Array; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicyAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface EventUpdateGroupPolicyAminoMsg { + type: "cosmos-sdk/EventUpdateGroupPolicy"; + value: EventUpdateGroupPolicyAmino; +} +/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ +export interface EventUpdateGroupPolicySDKType { + address: string; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposal { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventSubmitProposalProtoMsg { + typeUrl: "/cosmos.group.v1.EventSubmitProposal"; + value: Uint8Array; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposalAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventSubmitProposalAminoMsg { + type: "cosmos-sdk/EventSubmitProposal"; + value: EventSubmitProposalAmino; +} +/** EventSubmitProposal is an event emitted when a proposal is created. */ +export interface EventSubmitProposalSDKType { + proposal_id: bigint; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposal { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventWithdrawProposalProtoMsg { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; + value: Uint8Array; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposalAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventWithdrawProposalAminoMsg { + type: "cosmos-sdk/EventWithdrawProposal"; + value: EventWithdrawProposalAmino; +} +/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ +export interface EventWithdrawProposalSDKType { + proposal_id: bigint; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVote { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface EventVoteProtoMsg { + typeUrl: "/cosmos.group.v1.EventVote"; + value: Uint8Array; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVoteAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface EventVoteAminoMsg { + type: "cosmos-sdk/EventVote"; + value: EventVoteAmino; +} +/** EventVote is an event emitted when a voter votes on a proposal. */ +export interface EventVoteSDKType { + proposal_id: bigint; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExec { + /** proposal_id is the unique ID of the proposal. */ + proposalId: bigint; + /** result is the proposal execution result. */ + result: ProposalExecutorResult; + /** logs contains error logs in case the execution result is FAILURE. */ + logs: string; +} +export interface EventExecProtoMsg { + typeUrl: "/cosmos.group.v1.EventExec"; + value: Uint8Array; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExecAmino { + /** proposal_id is the unique ID of the proposal. */ + proposal_id?: string; + /** result is the proposal execution result. */ + result?: ProposalExecutorResult; + /** logs contains error logs in case the execution result is FAILURE. */ + logs?: string; +} +export interface EventExecAminoMsg { + type: "cosmos-sdk/EventExec"; + value: EventExecAmino; +} +/** EventExec is an event emitted when a proposal is executed. */ +export interface EventExecSDKType { + proposal_id: bigint; + result: ProposalExecutorResult; + logs: string; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroup { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** address is the account address of the group member. */ + address: string; +} +export interface EventLeaveGroupProtoMsg { + typeUrl: "/cosmos.group.v1.EventLeaveGroup"; + value: Uint8Array; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroupAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** address is the account address of the group member. */ + address?: string; +} +export interface EventLeaveGroupAminoMsg { + type: "cosmos-sdk/EventLeaveGroup"; + value: EventLeaveGroupAmino; +} +/** EventLeaveGroup is an event emitted when group member leaves the group. */ +export interface EventLeaveGroupSDKType { + group_id: bigint; + address: string; +} +function createBaseEventCreateGroup(): EventCreateGroup { + return { + groupId: BigInt(0) + }; +} +export const EventCreateGroup = { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + encode(message: EventCreateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateGroup { + const message = createBaseEventCreateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventCreateGroupAmino): EventCreateGroup { + const message = createBaseEventCreateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message: EventCreateGroup): EventCreateGroupAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup { + return EventCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg { + return { + type: "cosmos-sdk/EventCreateGroup", + value: EventCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup { + return EventCreateGroup.decode(message.value); + }, + toProto(message: EventCreateGroup): Uint8Array { + return EventCreateGroup.encode(message).finish(); + }, + toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroup", + value: EventCreateGroup.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroup(): EventUpdateGroup { + return { + groupId: BigInt(0) + }; +} +export const EventUpdateGroup = { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + encode(message: EventUpdateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateGroup { + const message = createBaseEventUpdateGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup { + const message = createBaseEventUpdateGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message: EventUpdateGroup): EventUpdateGroupAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup { + return EventUpdateGroup.fromAmino(object.value); + }, + toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg { + return { + type: "cosmos-sdk/EventUpdateGroup", + value: EventUpdateGroup.toAmino(message) + }; + }, + fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup { + return EventUpdateGroup.decode(message.value); + }, + toProto(message: EventUpdateGroup): Uint8Array { + return EventUpdateGroup.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroup", + value: EventUpdateGroup.encode(message).finish() + }; + } +}; +function createBaseEventCreateGroupPolicy(): EventCreateGroupPolicy { + return { + address: "" + }; +} +export const EventCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + encode(message: EventCreateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateGroupPolicy { + const message = createBaseEventCreateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy { + const message = createBaseEventCreateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy { + return EventCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg { + return { + type: "cosmos-sdk/EventCreateGroupPolicy", + value: EventCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy { + return EventCreateGroupPolicy.decode(message.value); + }, + toProto(message: EventCreateGroupPolicy): Uint8Array { + return EventCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", + value: EventCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventUpdateGroupPolicy(): EventUpdateGroupPolicy { + return { + address: "" + }; +} +export const EventUpdateGroupPolicy = { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + encode(message: EventUpdateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateGroupPolicy { + const message = createBaseEventUpdateGroupPolicy(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy { + const message = createBaseEventUpdateGroupPolicy(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy { + return EventUpdateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg { + return { + type: "cosmos-sdk/EventUpdateGroupPolicy", + value: EventUpdateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy { + return EventUpdateGroupPolicy.decode(message.value); + }, + toProto(message: EventUpdateGroupPolicy): Uint8Array { + return EventUpdateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", + value: EventUpdateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseEventSubmitProposal(): EventSubmitProposal { + return { + proposalId: BigInt(0) + }; +} +export const EventSubmitProposal = { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + encode(message: EventSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventSubmitProposal { + const message = createBaseEventSubmitProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal { + const message = createBaseEventSubmitProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: EventSubmitProposal): EventSubmitProposalAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal { + return EventSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg { + return { + type: "cosmos-sdk/EventSubmitProposal", + value: EventSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal { + return EventSubmitProposal.decode(message.value); + }, + toProto(message: EventSubmitProposal): Uint8Array { + return EventSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventSubmitProposal", + value: EventSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseEventWithdrawProposal(): EventWithdrawProposal { + return { + proposalId: BigInt(0) + }; +} +export const EventWithdrawProposal = { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + encode(message: EventWithdrawProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventWithdrawProposal { + const message = createBaseEventWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal { + const message = createBaseEventWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal { + return EventWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg { + return { + type: "cosmos-sdk/EventWithdrawProposal", + value: EventWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal { + return EventWithdrawProposal.decode(message.value); + }, + toProto(message: EventWithdrawProposal): Uint8Array { + return EventWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventWithdrawProposal", + value: EventWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseEventVote(): EventVote { + return { + proposalId: BigInt(0) + }; +} +export const EventVote = { + typeUrl: "/cosmos.group.v1.EventVote", + encode(message: EventVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventVote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventVote { + const message = createBaseEventVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventVoteAmino): EventVote { + const message = createBaseEventVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: EventVote): EventVoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventVoteAminoMsg): EventVote { + return EventVote.fromAmino(object.value); + }, + toAminoMsg(message: EventVote): EventVoteAminoMsg { + return { + type: "cosmos-sdk/EventVote", + value: EventVote.toAmino(message) + }; + }, + fromProtoMsg(message: EventVoteProtoMsg): EventVote { + return EventVote.decode(message.value); + }, + toProto(message: EventVote): Uint8Array { + return EventVote.encode(message).finish(); + }, + toProtoMsg(message: EventVote): EventVoteProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventVote", + value: EventVote.encode(message).finish() + }; + } +}; +function createBaseEventExec(): EventExec { + return { + proposalId: BigInt(0), + result: 0, + logs: "" + }; +} +export const EventExec = { + typeUrl: "/cosmos.group.v1.EventExec", + encode(message: EventExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + if (message.logs !== "") { + writer.uint32(26).string(message.logs); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventExec { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.result = (reader.int32() as any); + break; + case 3: + message.logs = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventExec { + const message = createBaseEventExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.result = object.result ?? 0; + message.logs = object.logs ?? ""; + return message; + }, + fromAmino(object: EventExecAmino): EventExec { + const message = createBaseEventExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + if (object.logs !== undefined && object.logs !== null) { + message.logs = object.logs; + } + return message; + }, + toAmino(message: EventExec): EventExecAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.result = message.result === 0 ? undefined : message.result; + obj.logs = message.logs === "" ? undefined : message.logs; + return obj; + }, + fromAminoMsg(object: EventExecAminoMsg): EventExec { + return EventExec.fromAmino(object.value); + }, + toAminoMsg(message: EventExec): EventExecAminoMsg { + return { + type: "cosmos-sdk/EventExec", + value: EventExec.toAmino(message) + }; + }, + fromProtoMsg(message: EventExecProtoMsg): EventExec { + return EventExec.decode(message.value); + }, + toProto(message: EventExec): Uint8Array { + return EventExec.encode(message).finish(); + }, + toProtoMsg(message: EventExec): EventExecProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventExec", + value: EventExec.encode(message).finish() + }; + } +}; +function createBaseEventLeaveGroup(): EventLeaveGroup { + return { + groupId: BigInt(0), + address: "" + }; +} +export const EventLeaveGroup = { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + encode(message: EventLeaveGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventLeaveGroup { + const message = createBaseEventLeaveGroup(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup { + const message = createBaseEventLeaveGroup(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: EventLeaveGroup): EventLeaveGroupAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup { + return EventLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg { + return { + type: "cosmos-sdk/EventLeaveGroup", + value: EventLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup { + return EventLeaveGroup.decode(message.value); + }, + toProto(message: EventLeaveGroup): Uint8Array { + return EventLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg { + return { + typeUrl: "/cosmos.group.v1.EventLeaveGroup", + value: EventLeaveGroup.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/genesis.ts b/packages/api/src/cosmos/group/v1/genesis.ts new file mode 100644 index 00000000..44d152d4 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/genesis.ts @@ -0,0 +1,241 @@ +//@ts-nocheck +import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the group module's genesis state. */ +export interface GenesisState { + /** + * group_seq is the group table orm.Sequence, + * it is used to get the next group ID. + */ + groupSeq: bigint; + /** groups is the list of groups info. */ + groups: GroupInfo[]; + /** group_members is the list of groups members. */ + groupMembers: GroupMember[]; + /** + * group_policy_seq is the group policy table orm.Sequence, + * it is used to generate the next group policy account address. + */ + groupPolicySeq: bigint; + /** group_policies is the list of group policies info. */ + groupPolicies: GroupPolicyInfo[]; + /** + * proposal_seq is the proposal table orm.Sequence, + * it is used to get the next proposal ID. + */ + proposalSeq: bigint; + /** proposals is the list of proposals. */ + proposals: Proposal[]; + /** votes is the list of votes. */ + votes: Vote[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.group.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the group module's genesis state. */ +export interface GenesisStateAmino { + /** + * group_seq is the group table orm.Sequence, + * it is used to get the next group ID. + */ + group_seq?: string; + /** groups is the list of groups info. */ + groups?: GroupInfoAmino[]; + /** group_members is the list of groups members. */ + group_members?: GroupMemberAmino[]; + /** + * group_policy_seq is the group policy table orm.Sequence, + * it is used to generate the next group policy account address. + */ + group_policy_seq?: string; + /** group_policies is the list of group policies info. */ + group_policies?: GroupPolicyInfoAmino[]; + /** + * proposal_seq is the proposal table orm.Sequence, + * it is used to get the next proposal ID. + */ + proposal_seq?: string; + /** proposals is the list of proposals. */ + proposals?: ProposalAmino[]; + /** votes is the list of votes. */ + votes?: VoteAmino[]; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the group module's genesis state. */ +export interface GenesisStateSDKType { + group_seq: bigint; + groups: GroupInfoSDKType[]; + group_members: GroupMemberSDKType[]; + group_policy_seq: bigint; + group_policies: GroupPolicyInfoSDKType[]; + proposal_seq: bigint; + proposals: ProposalSDKType[]; + votes: VoteSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + groupSeq: BigInt(0), + groups: [], + groupMembers: [], + groupPolicySeq: BigInt(0), + groupPolicies: [], + proposalSeq: BigInt(0), + proposals: [], + votes: [] + }; +} +export const GenesisState = { + typeUrl: "/cosmos.group.v1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupSeq !== BigInt(0)) { + writer.uint32(8).uint64(message.groupSeq); + } + for (const v of message.groups) { + GroupInfo.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.groupMembers) { + GroupMember.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.groupPolicySeq !== BigInt(0)) { + writer.uint32(32).uint64(message.groupPolicySeq); + } + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v!, writer.uint32(42).fork()).ldelim(); + } + if (message.proposalSeq !== BigInt(0)) { + writer.uint32(48).uint64(message.proposalSeq); + } + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupSeq = reader.uint64(); + break; + case 2: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 3: + message.groupMembers.push(GroupMember.decode(reader, reader.uint32())); + break; + case 4: + message.groupPolicySeq = reader.uint64(); + break; + case 5: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 6: + message.proposalSeq = reader.uint64(); + break; + case 7: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 8: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.groupMembers = object.groupMembers?.map(e => GroupMember.fromPartial(e)) || []; + message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.group_seq !== undefined && object.group_seq !== null) { + message.groupSeq = BigInt(object.group_seq); + } + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + message.groupMembers = object.group_members?.map(e => GroupMember.fromAmino(e)) || []; + if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { + message.groupPolicySeq = BigInt(object.group_policy_seq); + } + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.proposal_seq !== undefined && object.proposal_seq !== null) { + message.proposalSeq = BigInt(object.proposal_seq); + } + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } else { + obj.groups = message.groups; + } + if (message.groupMembers) { + obj.group_members = message.groupMembers.map(e => e ? GroupMember.toAmino(e) : undefined); + } else { + obj.group_members = message.groupMembers; + } + obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } else { + obj.group_policies = message.groupPolicies; + } + obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.group.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/query.lcd.ts b/packages/api/src/cosmos/group/v1/query.lcd.ts new file mode 100644 index 00000000..56af4985 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/query.lcd.ts @@ -0,0 +1,144 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + /* GroupInfo queries group info based on group id. */ + async groupInfo(params: QueryGroupInfoRequest): Promise { + const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; + return await this.req.get(endpoint); + } + /* GroupPolicyInfo queries group policy info based on account address of group policy. */ + async groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise { + const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; + return await this.req.get(endpoint); + } + /* GroupMembers queries members of a group */ + async groupMembers(params: QueryGroupMembersRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries groups by admin address. */ + async groupsByAdmin(params: QueryGroupsByAdminRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* GroupPoliciesByGroup queries group policies by group id. */ + async groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; + return await this.req.get(endpoint, options); + } + /* GroupsByAdmin queries group policies by admin address. */ + async groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Proposal queries a proposal based on proposal id. */ + async proposal(params: QueryProposalRequest): Promise { + const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; + return await this.req.get(endpoint); + } + /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ + async proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; + return await this.req.get(endpoint, options); + } + /* VoteByProposalVoter queries a vote by proposal id and voter. */ + async voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise { + const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; + return await this.req.get(endpoint); + } + /* VotesByProposal queries a vote by proposal. */ + async votesByProposal(params: QueryVotesByProposalRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; + return await this.req.get(endpoint, options); + } + /* VotesByVoter queries a vote by voter. */ + async votesByVoter(params: QueryVotesByVoterRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; + return await this.req.get(endpoint, options); + } + /* GroupsByMember queries groups by member address. */ + async groupsByMember(params: QueryGroupsByMemberRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; + return await this.req.get(endpoint, options); + } + /* TallyResult returns the tally result of a proposal. If the proposal is + still in voting period, then this query computes the current tally state, + which might not be final. On the other hand, if the proposal is final, + then it simply returns the `final_tally_result` state stored in the + proposal itself. */ + async tallyResult(params: QueryTallyResultRequest): Promise { + const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/query.rpc.Query.ts b/packages/api/src/cosmos/group/v1/query.rpc.Query.ts new file mode 100644 index 00000000..3244771b --- /dev/null +++ b/packages/api/src/cosmos/group/v1/query.rpc.Query.ts @@ -0,0 +1,169 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query is the cosmos.group.v1 Query service. */ +export interface Query { + /** GroupInfo queries group info based on group id. */ + groupInfo(request: QueryGroupInfoRequest): Promise; + /** GroupPolicyInfo queries group policy info based on account address of group policy. */ + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; + /** GroupMembers queries members of a group */ + groupMembers(request: QueryGroupMembersRequest): Promise; + /** GroupsByAdmin queries groups by admin address. */ + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; + /** GroupPoliciesByGroup queries group policies by group id. */ + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; + /** GroupsByAdmin queries group policies by admin address. */ + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; + /** Proposal queries a proposal based on proposal id. */ + proposal(request: QueryProposalRequest): Promise; + /** ProposalsByGroupPolicy queries proposals based on account address of group policy. */ + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; + /** VoteByProposalVoter queries a vote by proposal id and voter. */ + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; + /** VotesByProposal queries a vote by proposal. */ + votesByProposal(request: QueryVotesByProposalRequest): Promise; + /** VotesByVoter queries a vote by voter. */ + votesByVoter(request: QueryVotesByVoterRequest): Promise; + /** GroupsByMember queries groups by member address. */ + groupsByMember(request: QueryGroupsByMemberRequest): Promise; + /** + * TallyResult returns the tally result of a proposal. If the proposal is + * still in voting period, then this query computes the current tally state, + * which might not be final. On the other hand, if the proposal is final, + * then it simply returns the `final_tally_result` state stored in the + * proposal itself. + */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.groupInfo = this.groupInfo.bind(this); + this.groupPolicyInfo = this.groupPolicyInfo.bind(this); + this.groupMembers = this.groupMembers.bind(this); + this.groupsByAdmin = this.groupsByAdmin.bind(this); + this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); + this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); + this.proposal = this.proposal.bind(this); + this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); + this.voteByProposalVoter = this.voteByProposalVoter.bind(this); + this.votesByProposal = this.votesByProposal.bind(this); + this.votesByVoter = this.votesByVoter.bind(this); + this.groupsByMember = this.groupsByMember.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + groupInfo(request: QueryGroupInfoRequest): Promise { + const data = QueryGroupInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); + return promise.then(data => QueryGroupInfoResponse.decode(new BinaryReader(data))); + } + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise { + const data = QueryGroupPolicyInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); + return promise.then(data => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data))); + } + groupMembers(request: QueryGroupMembersRequest): Promise { + const data = QueryGroupMembersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); + return promise.then(data => QueryGroupMembersResponse.decode(new BinaryReader(data))); + } + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise { + const data = QueryGroupsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); + return promise.then(data => QueryGroupsByAdminResponse.decode(new BinaryReader(data))); + } + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise { + const data = QueryGroupPoliciesByGroupRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); + return promise.then(data => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data))); + } + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise { + const data = QueryGroupPoliciesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); + return promise.then(data => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data))); + } + proposal(request: QueryProposalRequest): Promise { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); + } + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise { + const data = QueryProposalsByGroupPolicyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); + return promise.then(data => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data))); + } + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise { + const data = QueryVoteByProposalVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); + return promise.then(data => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data))); + } + votesByProposal(request: QueryVotesByProposalRequest): Promise { + const data = QueryVotesByProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); + return promise.then(data => QueryVotesByProposalResponse.decode(new BinaryReader(data))); + } + votesByVoter(request: QueryVotesByVoterRequest): Promise { + const data = QueryVotesByVoterRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); + return promise.then(data => QueryVotesByVoterResponse.decode(new BinaryReader(data))); + } + groupsByMember(request: QueryGroupsByMemberRequest): Promise { + const data = QueryGroupsByMemberRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); + return promise.then(data => QueryGroupsByMemberResponse.decode(new BinaryReader(data))); + } + tallyResult(request: QueryTallyResultRequest): Promise { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + groupInfo(request: QueryGroupInfoRequest): Promise { + return queryService.groupInfo(request); + }, + groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise { + return queryService.groupPolicyInfo(request); + }, + groupMembers(request: QueryGroupMembersRequest): Promise { + return queryService.groupMembers(request); + }, + groupsByAdmin(request: QueryGroupsByAdminRequest): Promise { + return queryService.groupsByAdmin(request); + }, + groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise { + return queryService.groupPoliciesByGroup(request); + }, + groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise { + return queryService.groupPoliciesByAdmin(request); + }, + proposal(request: QueryProposalRequest): Promise { + return queryService.proposal(request); + }, + proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise { + return queryService.proposalsByGroupPolicy(request); + }, + voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise { + return queryService.voteByProposalVoter(request); + }, + votesByProposal(request: QueryVotesByProposalRequest): Promise { + return queryService.votesByProposal(request); + }, + votesByVoter(request: QueryVotesByVoterRequest): Promise { + return queryService.votesByVoter(request); + }, + groupsByMember(request: QueryGroupsByMemberRequest): Promise { + return queryService.groupsByMember(request); + }, + tallyResult(request: QueryTallyResultRequest): Promise { + return queryService.tallyResult(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/query.ts b/packages/api/src/cosmos/group/v1/query.ts new file mode 100644 index 00000000..c8150ce3 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/query.ts @@ -0,0 +1,2675 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequest { + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface QueryGroupInfoRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; + value: Uint8Array; +} +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequestAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface QueryGroupInfoRequestAminoMsg { + type: "cosmos-sdk/QueryGroupInfoRequest"; + value: QueryGroupInfoRequestAmino; +} +/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ +export interface QueryGroupInfoRequestSDKType { + group_id: bigint; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponse { + /** info is the GroupInfo for the group. */ + info?: GroupInfo; +} +export interface QueryGroupInfoResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; + value: Uint8Array; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponseAmino { + /** info is the GroupInfo for the group. */ + info?: GroupInfoAmino; +} +export interface QueryGroupInfoResponseAminoMsg { + type: "cosmos-sdk/QueryGroupInfoResponse"; + value: QueryGroupInfoResponseAmino; +} +/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ +export interface QueryGroupInfoResponseSDKType { + info?: GroupInfoSDKType; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequest { + /** address is the account address of the group policy. */ + address: string; +} +export interface QueryGroupPolicyInfoRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; + value: Uint8Array; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequestAmino { + /** address is the account address of the group policy. */ + address?: string; +} +export interface QueryGroupPolicyInfoRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; + value: QueryGroupPolicyInfoRequestAmino; +} +/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ +export interface QueryGroupPolicyInfoRequestSDKType { + address: string; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponse { + /** info is the GroupPolicyInfo for the group policy. */ + info?: GroupPolicyInfo; +} +export interface QueryGroupPolicyInfoResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; + value: Uint8Array; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponseAmino { + /** info is the GroupPolicyInfo for the group policy. */ + info?: GroupPolicyInfoAmino; +} +export interface QueryGroupPolicyInfoResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPolicyInfoResponse"; + value: QueryGroupPolicyInfoResponseAmino; +} +/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ +export interface QueryGroupPolicyInfoResponseSDKType { + info?: GroupPolicyInfoSDKType; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequest { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupMembersRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; + value: Uint8Array; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequestAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupMembersRequestAminoMsg { + type: "cosmos-sdk/QueryGroupMembersRequest"; + value: QueryGroupMembersRequestAmino; +} +/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ +export interface QueryGroupMembersRequestSDKType { + group_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponse { + /** members are the members of the group with given group_id. */ + members: GroupMember[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupMembersResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; + value: Uint8Array; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponseAmino { + /** members are the members of the group with given group_id. */ + members?: GroupMemberAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupMembersResponseAminoMsg { + type: "cosmos-sdk/QueryGroupMembersResponse"; + value: QueryGroupMembersResponseAmino; +} +/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ +export interface QueryGroupMembersResponseSDKType { + members: GroupMemberSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequest { + /** admin is the account address of a group's admin. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupsByAdminRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; + value: Uint8Array; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequestAmino { + /** admin is the account address of a group's admin. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupsByAdminRequestAminoMsg { + type: "cosmos-sdk/QueryGroupsByAdminRequest"; + value: QueryGroupsByAdminRequestAmino; +} +/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ +export interface QueryGroupsByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponse { + /** groups are the groups info with the provided admin. */ + groups: GroupInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupsByAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; + value: Uint8Array; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponseAmino { + /** groups are the groups info with the provided admin. */ + groups?: GroupInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupsByAdminResponseAminoMsg { + type: "cosmos-sdk/QueryGroupsByAdminResponse"; + value: QueryGroupsByAdminResponseAmino; +} +/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ +export interface QueryGroupsByAdminResponseSDKType { + groups: GroupInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequest { + /** group_id is the unique ID of the group policy's group. */ + groupId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupPoliciesByGroupRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; + value: Uint8Array; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequestAmino { + /** group_id is the unique ID of the group policy's group. */ + group_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupPoliciesByGroupRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest"; + value: QueryGroupPoliciesByGroupRequestAmino; +} +/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ +export interface QueryGroupPoliciesByGroupRequestSDKType { + group_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponse { + /** group_policies are the group policies info associated with the provided group. */ + groupPolicies: GroupPolicyInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupPoliciesByGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; + value: Uint8Array; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponseAmino { + /** group_policies are the group policies info associated with the provided group. */ + group_policies?: GroupPolicyInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupPoliciesByGroupResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse"; + value: QueryGroupPoliciesByGroupResponseAmino; +} +/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ +export interface QueryGroupPoliciesByGroupResponseSDKType { + group_policies: GroupPolicyInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequest { + /** admin is the admin address of the group policy. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupPoliciesByAdminRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; + value: Uint8Array; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequestAmino { + /** admin is the admin address of the group policy. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupPoliciesByAdminRequestAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest"; + value: QueryGroupPoliciesByAdminRequestAmino; +} +/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ +export interface QueryGroupPoliciesByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponse { + /** group_policies are the group policies info with provided admin. */ + groupPolicies: GroupPolicyInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupPoliciesByAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; + value: Uint8Array; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponseAmino { + /** group_policies are the group policies info with provided admin. */ + group_policies?: GroupPolicyInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupPoliciesByAdminResponseAminoMsg { + type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse"; + value: QueryGroupPoliciesByAdminResponseAmino; +} +/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ +export interface QueryGroupPoliciesByAdminResponseSDKType { + group_policies: GroupPolicyInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; +} +export interface QueryProposalRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalRequest"; + value: Uint8Array; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; +} +export interface QueryProposalRequestAminoMsg { + type: "cosmos-sdk/QueryProposalRequest"; + value: QueryProposalRequestAmino; +} +/** QueryProposalRequest is the Query/Proposal request type. */ +export interface QueryProposalRequestSDKType { + proposal_id: bigint; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponse { + /** proposal is the proposal info. */ + proposal?: Proposal; +} +export interface QueryProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalResponse"; + value: Uint8Array; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponseAmino { + /** proposal is the proposal info. */ + proposal?: ProposalAmino; +} +export interface QueryProposalResponseAminoMsg { + type: "cosmos-sdk/QueryProposalResponse"; + value: QueryProposalResponseAmino; +} +/** QueryProposalResponse is the Query/Proposal response type. */ +export interface QueryProposalResponseSDKType { + proposal?: ProposalSDKType; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequest { + /** address is the account address of the group policy related to proposals. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProposalsByGroupPolicyRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; + value: Uint8Array; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequestAmino { + /** address is the account address of the group policy related to proposals. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProposalsByGroupPolicyRequestAminoMsg { + type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest"; + value: QueryProposalsByGroupPolicyRequestAmino; +} +/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ +export interface QueryProposalsByGroupPolicyRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponse { + /** proposals are the proposals with given group policy. */ + proposals: Proposal[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProposalsByGroupPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; + value: Uint8Array; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponseAmino { + /** proposals are the proposals with given group policy. */ + proposals?: ProposalAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProposalsByGroupPolicyResponseAminoMsg { + type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse"; + value: QueryProposalsByGroupPolicyResponseAmino; +} +/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ +export interface QueryProposalsByGroupPolicyResponseSDKType { + proposals: ProposalSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; + /** voter is a proposal voter account address. */ + voter: string; +} +export interface QueryVoteByProposalVoterRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; + value: Uint8Array; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; + /** voter is a proposal voter account address. */ + voter?: string; +} +export interface QueryVoteByProposalVoterRequestAminoMsg { + type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; + value: QueryVoteByProposalVoterRequestAmino; +} +/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ +export interface QueryVoteByProposalVoterRequestSDKType { + proposal_id: bigint; + voter: string; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponse { + /** vote is the vote with given proposal_id and voter. */ + vote?: Vote; +} +export interface QueryVoteByProposalVoterResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; + value: Uint8Array; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponseAmino { + /** vote is the vote with given proposal_id and voter. */ + vote?: VoteAmino; +} +export interface QueryVoteByProposalVoterResponseAminoMsg { + type: "cosmos-sdk/QueryVoteByProposalVoterResponse"; + value: QueryVoteByProposalVoterResponseAmino; +} +/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ +export interface QueryVoteByProposalVoterResponseSDKType { + vote?: VoteSDKType; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequest { + /** proposal_id is the unique ID of a proposal. */ + proposalId: bigint; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesByProposalRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; + value: Uint8Array; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequestAmino { + /** proposal_id is the unique ID of a proposal. */ + proposal_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesByProposalRequestAminoMsg { + type: "cosmos-sdk/QueryVotesByProposalRequest"; + value: QueryVotesByProposalRequestAmino; +} +/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ +export interface QueryVotesByProposalRequestSDKType { + proposal_id: bigint; + pagination?: PageRequestSDKType; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponse { + /** votes are the list of votes for given proposal_id. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesByProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; + value: Uint8Array; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponseAmino { + /** votes are the list of votes for given proposal_id. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesByProposalResponseAminoMsg { + type: "cosmos-sdk/QueryVotesByProposalResponse"; + value: QueryVotesByProposalResponseAmino; +} +/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ +export interface QueryVotesByProposalResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequest { + /** voter is a proposal voter account address. */ + voter: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryVotesByVoterRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; + value: Uint8Array; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequestAmino { + /** voter is a proposal voter account address. */ + voter?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryVotesByVoterRequestAminoMsg { + type: "cosmos-sdk/QueryVotesByVoterRequest"; + value: QueryVotesByVoterRequestAmino; +} +/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ +export interface QueryVotesByVoterRequestSDKType { + voter: string; + pagination?: PageRequestSDKType; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponse { + /** votes are the list of votes by given voter. */ + votes: Vote[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryVotesByVoterResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; + value: Uint8Array; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponseAmino { + /** votes are the list of votes by given voter. */ + votes?: VoteAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryVotesByVoterResponseAminoMsg { + type: "cosmos-sdk/QueryVotesByVoterResponse"; + value: QueryVotesByVoterResponseAmino; +} +/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ +export interface QueryVotesByVoterResponseSDKType { + votes: VoteSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequest { + /** address is the group member address. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryGroupsByMemberRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; + value: Uint8Array; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequestAmino { + /** address is the group member address. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryGroupsByMemberRequestAminoMsg { + type: "cosmos-sdk/QueryGroupsByMemberRequest"; + value: QueryGroupsByMemberRequestAmino; +} +/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ +export interface QueryGroupsByMemberRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponse { + /** groups are the groups info with the provided group member. */ + groups: GroupInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryGroupsByMemberResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; + value: Uint8Array; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponseAmino { + /** groups are the groups info with the provided group member. */ + groups?: GroupInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryGroupsByMemberResponseAminoMsg { + type: "cosmos-sdk/QueryGroupsByMemberResponse"; + value: QueryGroupsByMemberResponseAmino; +} +/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ +export interface QueryGroupsByMemberResponseSDKType { + groups: GroupInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequest { + /** proposal_id is the unique id of a proposal. */ + proposalId: bigint; +} +export interface QueryTallyResultRequestProtoMsg { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; + value: Uint8Array; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequestAmino { + /** proposal_id is the unique id of a proposal. */ + proposal_id?: string; +} +export interface QueryTallyResultRequestAminoMsg { + type: "cosmos-sdk/QueryTallyResultRequest"; + value: QueryTallyResultRequestAmino; +} +/** QueryTallyResultRequest is the Query/TallyResult request type. */ +export interface QueryTallyResultRequestSDKType { + proposal_id: bigint; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponse { + /** tally defines the requested tally. */ + tally: TallyResult; +} +export interface QueryTallyResultResponseProtoMsg { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; + value: Uint8Array; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponseAmino { + /** tally defines the requested tally. */ + tally?: TallyResultAmino; +} +export interface QueryTallyResultResponseAminoMsg { + type: "cosmos-sdk/QueryTallyResultResponse"; + value: QueryTallyResultResponseAmino; +} +/** QueryTallyResultResponse is the Query/TallyResult response type. */ +export interface QueryTallyResultResponseSDKType { + tally: TallyResultSDKType; +} +function createBaseQueryGroupInfoRequest(): QueryGroupInfoRequest { + return { + groupId: BigInt(0) + }; +} +export const QueryGroupInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + encode(message: QueryGroupInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupInfoRequest { + const message = createBaseQueryGroupInfoRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryGroupInfoRequestAmino): QueryGroupInfoRequest { + const message = createBaseQueryGroupInfoRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message: QueryGroupInfoRequest): QueryGroupInfoRequestAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupInfoRequestAminoMsg): QueryGroupInfoRequest { + return QueryGroupInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupInfoRequest", + value: QueryGroupInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupInfoRequestProtoMsg): QueryGroupInfoRequest { + return QueryGroupInfoRequest.decode(message.value); + }, + toProto(message: QueryGroupInfoRequest): Uint8Array { + return QueryGroupInfoRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", + value: QueryGroupInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupInfoResponse(): QueryGroupInfoResponse { + return { + info: undefined + }; +} +export const QueryGroupInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + encode(message: QueryGroupInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.info !== undefined) { + GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = GroupInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupInfoResponse { + const message = createBaseQueryGroupInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? GroupInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object: QueryGroupInfoResponseAmino): QueryGroupInfoResponse { + const message = createBaseQueryGroupInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = GroupInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message: QueryGroupInfoResponse): QueryGroupInfoResponseAmino { + const obj: any = {}; + obj.info = message.info ? GroupInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupInfoResponseAminoMsg): QueryGroupInfoResponse { + return QueryGroupInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupInfoResponse", + value: QueryGroupInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupInfoResponseProtoMsg): QueryGroupInfoResponse { + return QueryGroupInfoResponse.decode(message.value); + }, + toProto(message: QueryGroupInfoResponse): Uint8Array { + return QueryGroupInfoResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", + value: QueryGroupInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoRequest(): QueryGroupPolicyInfoRequest { + return { + address: "" + }; +} +export const QueryGroupPolicyInfoRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + encode(message: QueryGroupPolicyInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPolicyInfoRequest { + const message = createBaseQueryGroupPolicyInfoRequest(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: QueryGroupPolicyInfoRequestAmino): QueryGroupPolicyInfoRequest { + const message = createBaseQueryGroupPolicyInfoRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: QueryGroupPolicyInfoRequestAminoMsg): QueryGroupPolicyInfoRequest { + return QueryGroupPolicyInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoRequest", + value: QueryGroupPolicyInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPolicyInfoRequestProtoMsg): QueryGroupPolicyInfoRequest { + return QueryGroupPolicyInfoRequest.decode(message.value); + }, + toProto(message: QueryGroupPolicyInfoRequest): Uint8Array { + return QueryGroupPolicyInfoRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", + value: QueryGroupPolicyInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPolicyInfoResponse(): QueryGroupPolicyInfoResponse { + return { + info: undefined + }; +} +export const QueryGroupPolicyInfoResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + encode(message: QueryGroupPolicyInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.info !== undefined) { + GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPolicyInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = GroupPolicyInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPolicyInfoResponse { + const message = createBaseQueryGroupPolicyInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? GroupPolicyInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object: QueryGroupPolicyInfoResponseAmino): QueryGroupPolicyInfoResponse { + const message = createBaseQueryGroupPolicyInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = GroupPolicyInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAmino { + const obj: any = {}; + obj.info = message.info ? GroupPolicyInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupPolicyInfoResponseAminoMsg): QueryGroupPolicyInfoResponse { + return QueryGroupPolicyInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPolicyInfoResponse", + value: QueryGroupPolicyInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPolicyInfoResponseProtoMsg): QueryGroupPolicyInfoResponse { + return QueryGroupPolicyInfoResponse.decode(message.value); + }, + toProto(message: QueryGroupPolicyInfoResponse): Uint8Array { + return QueryGroupPolicyInfoResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", + value: QueryGroupPolicyInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersRequest(): QueryGroupMembersRequest { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +export const QueryGroupMembersRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + encode(message: QueryGroupMembersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupMembersRequest { + const message = createBaseQueryGroupMembersRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupMembersRequestAmino): QueryGroupMembersRequest { + const message = createBaseQueryGroupMembersRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupMembersRequest): QueryGroupMembersRequestAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupMembersRequestAminoMsg): QueryGroupMembersRequest { + return QueryGroupMembersRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupMembersRequest", + value: QueryGroupMembersRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupMembersRequestProtoMsg): QueryGroupMembersRequest { + return QueryGroupMembersRequest.decode(message.value); + }, + toProto(message: QueryGroupMembersRequest): Uint8Array { + return QueryGroupMembersRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", + value: QueryGroupMembersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupMembersResponse(): QueryGroupMembersResponse { + return { + members: [], + pagination: undefined + }; +} +export const QueryGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + encode(message: QueryGroupMembersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.members) { + GroupMember.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.members.push(GroupMember.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupMembersResponse { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => GroupMember.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupMembersResponseAmino): QueryGroupMembersResponse { + const message = createBaseQueryGroupMembersResponse(); + message.members = object.members?.map(e => GroupMember.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupMembersResponse): QueryGroupMembersResponseAmino { + const obj: any = {}; + if (message.members) { + obj.members = message.members.map(e => e ? GroupMember.toAmino(e) : undefined); + } else { + obj.members = message.members; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupMembersResponseAminoMsg): QueryGroupMembersResponse { + return QueryGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupMembersResponse", + value: QueryGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupMembersResponseProtoMsg): QueryGroupMembersResponse { + return QueryGroupMembersResponse.decode(message.value); + }, + toProto(message: QueryGroupMembersResponse): Uint8Array { + return QueryGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", + value: QueryGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminRequest(): QueryGroupsByAdminRequest { + return { + admin: "", + pagination: undefined + }; +} +export const QueryGroupsByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + encode(message: QueryGroupsByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupsByAdminRequest { + const message = createBaseQueryGroupsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupsByAdminRequestAmino): QueryGroupsByAdminRequest { + const message = createBaseQueryGroupsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupsByAdminRequestAminoMsg): QueryGroupsByAdminRequest { + return QueryGroupsByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupsByAdminRequest", + value: QueryGroupsByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupsByAdminRequestProtoMsg): QueryGroupsByAdminRequest { + return QueryGroupsByAdminRequest.decode(message.value); + }, + toProto(message: QueryGroupsByAdminRequest): Uint8Array { + return QueryGroupsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", + value: QueryGroupsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByAdminResponse(): QueryGroupsByAdminResponse { + return { + groups: [], + pagination: undefined + }; +} +export const QueryGroupsByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + encode(message: QueryGroupsByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.groups) { + GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupsByAdminResponse { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupsByAdminResponseAmino): QueryGroupsByAdminResponse { + const message = createBaseQueryGroupsByAdminResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAmino { + const obj: any = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupsByAdminResponseAminoMsg): QueryGroupsByAdminResponse { + return QueryGroupsByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupsByAdminResponse", + value: QueryGroupsByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupsByAdminResponseProtoMsg): QueryGroupsByAdminResponse { + return QueryGroupsByAdminResponse.decode(message.value); + }, + toProto(message: QueryGroupsByAdminResponse): Uint8Array { + return QueryGroupsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", + value: QueryGroupsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupRequest(): QueryGroupPoliciesByGroupRequest { + return { + groupId: BigInt(0), + pagination: undefined + }; +} +export const QueryGroupPoliciesByGroupRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + encode(message: QueryGroupPoliciesByGroupRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupPoliciesByGroupRequestAmino): QueryGroupPoliciesByGroupRequest { + const message = createBaseQueryGroupPoliciesByGroupRequest(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupPoliciesByGroupRequestAminoMsg): QueryGroupPoliciesByGroupRequest { + return QueryGroupPoliciesByGroupRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", + value: QueryGroupPoliciesByGroupRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPoliciesByGroupRequestProtoMsg): QueryGroupPoliciesByGroupRequest { + return QueryGroupPoliciesByGroupRequest.decode(message.value); + }, + toProto(message: QueryGroupPoliciesByGroupRequest): Uint8Array { + return QueryGroupPoliciesByGroupRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", + value: QueryGroupPoliciesByGroupRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByGroupResponse(): QueryGroupPoliciesByGroupResponse { + return { + groupPolicies: [], + pagination: undefined + }; +} +export const QueryGroupPoliciesByGroupResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + encode(message: QueryGroupPoliciesByGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupPoliciesByGroupResponseAmino): QueryGroupPoliciesByGroupResponse { + const message = createBaseQueryGroupPoliciesByGroupResponse(); + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAmino { + const obj: any = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupPoliciesByGroupResponseAminoMsg): QueryGroupPoliciesByGroupResponse { + return QueryGroupPoliciesByGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", + value: QueryGroupPoliciesByGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPoliciesByGroupResponseProtoMsg): QueryGroupPoliciesByGroupResponse { + return QueryGroupPoliciesByGroupResponse.decode(message.value); + }, + toProto(message: QueryGroupPoliciesByGroupResponse): Uint8Array { + return QueryGroupPoliciesByGroupResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", + value: QueryGroupPoliciesByGroupResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminRequest(): QueryGroupPoliciesByAdminRequest { + return { + admin: "", + pagination: undefined + }; +} +export const QueryGroupPoliciesByAdminRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + encode(message: QueryGroupPoliciesByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupPoliciesByAdminRequestAmino): QueryGroupPoliciesByAdminRequest { + const message = createBaseQueryGroupPoliciesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupPoliciesByAdminRequestAminoMsg): QueryGroupPoliciesByAdminRequest { + return QueryGroupPoliciesByAdminRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", + value: QueryGroupPoliciesByAdminRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPoliciesByAdminRequestProtoMsg): QueryGroupPoliciesByAdminRequest { + return QueryGroupPoliciesByAdminRequest.decode(message.value); + }, + toProto(message: QueryGroupPoliciesByAdminRequest): Uint8Array { + return QueryGroupPoliciesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", + value: QueryGroupPoliciesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupPoliciesByAdminResponse(): QueryGroupPoliciesByAdminResponse { + return { + groupPolicies: [], + pagination: undefined + }; +} +export const QueryGroupPoliciesByAdminResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + encode(message: QueryGroupPoliciesByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.groupPolicies) { + GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupPoliciesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupPoliciesByAdminResponseAmino): QueryGroupPoliciesByAdminResponse { + const message = createBaseQueryGroupPoliciesByAdminResponse(); + message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAmino { + const obj: any = {}; + if (message.groupPolicies) { + obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); + } else { + obj.group_policies = message.groupPolicies; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupPoliciesByAdminResponseAminoMsg): QueryGroupPoliciesByAdminResponse { + return QueryGroupPoliciesByAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", + value: QueryGroupPoliciesByAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupPoliciesByAdminResponseProtoMsg): QueryGroupPoliciesByAdminResponse { + return QueryGroupPoliciesByAdminResponse.decode(message.value); + }, + toProto(message: QueryGroupPoliciesByAdminResponse): Uint8Array { + return QueryGroupPoliciesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", + value: QueryGroupPoliciesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalRequest(): QueryProposalRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + encode(message: QueryProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest { + const message = createBaseQueryProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { + return QueryProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg { + return { + type: "cosmos-sdk/QueryProposalRequest", + value: QueryProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest { + return QueryProposalRequest.decode(message.value); + }, + toProto(message: QueryProposalRequest): Uint8Array { + return QueryProposalRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryProposalRequest", + value: QueryProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalResponse(): QueryProposalResponse { + return { + proposal: undefined + }; +} +export const QueryProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + encode(message: QueryProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposal !== undefined) { + Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal = Proposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; + return message; + }, + fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse { + const message = createBaseQueryProposalResponse(); + if (object.proposal !== undefined && object.proposal !== null) { + message.proposal = Proposal.fromAmino(object.proposal); + } + return message; + }, + toAmino(message: QueryProposalResponse): QueryProposalResponseAmino { + const obj: any = {}; + obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse { + return QueryProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg { + return { + type: "cosmos-sdk/QueryProposalResponse", + value: QueryProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse { + return QueryProposalResponse.decode(message.value); + }, + toProto(message: QueryProposalResponse): Uint8Array { + return QueryProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryProposalResponse", + value: QueryProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyRequest(): QueryProposalsByGroupPolicyRequest { + return { + address: "", + pagination: undefined + }; +} +export const QueryProposalsByGroupPolicyRequest = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + encode(message: QueryProposalsByGroupPolicyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsByGroupPolicyRequestAmino): QueryProposalsByGroupPolicyRequest { + const message = createBaseQueryProposalsByGroupPolicyRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsByGroupPolicyRequestAminoMsg): QueryProposalsByGroupPolicyRequest { + return QueryProposalsByGroupPolicyRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAminoMsg { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", + value: QueryProposalsByGroupPolicyRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsByGroupPolicyRequestProtoMsg): QueryProposalsByGroupPolicyRequest { + return QueryProposalsByGroupPolicyRequest.decode(message.value); + }, + toProto(message: QueryProposalsByGroupPolicyRequest): Uint8Array { + return QueryProposalsByGroupPolicyRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", + value: QueryProposalsByGroupPolicyRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProposalsByGroupPolicyResponse(): QueryProposalsByGroupPolicyResponse { + return { + proposals: [], + pagination: undefined + }; +} +export const QueryProposalsByGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + encode(message: QueryProposalsByGroupPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.proposals) { + Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProposalsByGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposals.push(Proposal.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProposalsByGroupPolicyResponseAmino): QueryProposalsByGroupPolicyResponse { + const message = createBaseQueryProposalsByGroupPolicyResponse(); + message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAmino { + const obj: any = {}; + if (message.proposals) { + obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); + } else { + obj.proposals = message.proposals; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProposalsByGroupPolicyResponseAminoMsg): QueryProposalsByGroupPolicyResponse { + return QueryProposalsByGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAminoMsg { + return { + type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", + value: QueryProposalsByGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryProposalsByGroupPolicyResponseProtoMsg): QueryProposalsByGroupPolicyResponse { + return QueryProposalsByGroupPolicyResponse.decode(message.value); + }, + toProto(message: QueryProposalsByGroupPolicyResponse): Uint8Array { + return QueryProposalsByGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", + value: QueryProposalsByGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterRequest(): QueryVoteByProposalVoterRequest { + return { + proposalId: BigInt(0), + voter: "" + }; +} +export const QueryVoteByProposalVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + encode(message: QueryVoteByProposalVoterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteByProposalVoterRequest { + const message = createBaseQueryVoteByProposalVoterRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + return message; + }, + fromAmino(object: QueryVoteByProposalVoterRequestAmino): QueryVoteByProposalVoterRequest { + const message = createBaseQueryVoteByProposalVoterRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + return message; + }, + toAmino(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + return obj; + }, + fromAminoMsg(object: QueryVoteByProposalVoterRequestAminoMsg): QueryVoteByProposalVoterRequest { + return QueryVoteByProposalVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAminoMsg { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterRequest", + value: QueryVoteByProposalVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteByProposalVoterRequestProtoMsg): QueryVoteByProposalVoterRequest { + return QueryVoteByProposalVoterRequest.decode(message.value); + }, + toProto(message: QueryVoteByProposalVoterRequest): Uint8Array { + return QueryVoteByProposalVoterRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", + value: QueryVoteByProposalVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVoteByProposalVoterResponse(): QueryVoteByProposalVoterResponse { + return { + vote: undefined + }; +} +export const QueryVoteByProposalVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + encode(message: QueryVoteByProposalVoterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.vote !== undefined) { + Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVoteByProposalVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.vote = Vote.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVoteByProposalVoterResponse { + const message = createBaseQueryVoteByProposalVoterResponse(); + message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; + return message; + }, + fromAmino(object: QueryVoteByProposalVoterResponseAmino): QueryVoteByProposalVoterResponse { + const message = createBaseQueryVoteByProposalVoterResponse(); + if (object.vote !== undefined && object.vote !== null) { + message.vote = Vote.fromAmino(object.vote); + } + return message; + }, + toAmino(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAmino { + const obj: any = {}; + obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVoteByProposalVoterResponseAminoMsg): QueryVoteByProposalVoterResponse { + return QueryVoteByProposalVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAminoMsg { + return { + type: "cosmos-sdk/QueryVoteByProposalVoterResponse", + value: QueryVoteByProposalVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVoteByProposalVoterResponseProtoMsg): QueryVoteByProposalVoterResponse { + return QueryVoteByProposalVoterResponse.decode(message.value); + }, + toProto(message: QueryVoteByProposalVoterResponse): Uint8Array { + return QueryVoteByProposalVoterResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", + value: QueryVoteByProposalVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalRequest(): QueryVotesByProposalRequest { + return { + proposalId: BigInt(0), + pagination: undefined + }; +} +export const QueryVotesByProposalRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + encode(message: QueryVotesByProposalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesByProposalRequest { + const message = createBaseQueryVotesByProposalRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesByProposalRequestAmino): QueryVotesByProposalRequest { + const message = createBaseQueryVotesByProposalRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesByProposalRequestAminoMsg): QueryVotesByProposalRequest { + return QueryVotesByProposalRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAminoMsg { + return { + type: "cosmos-sdk/QueryVotesByProposalRequest", + value: QueryVotesByProposalRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesByProposalRequestProtoMsg): QueryVotesByProposalRequest { + return QueryVotesByProposalRequest.decode(message.value); + }, + toProto(message: QueryVotesByProposalRequest): Uint8Array { + return QueryVotesByProposalRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", + value: QueryVotesByProposalRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByProposalResponse(): QueryVotesByProposalResponse { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesByProposalResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + encode(message: QueryVotesByProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesByProposalResponse { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesByProposalResponseAmino): QueryVotesByProposalResponse { + const message = createBaseQueryVotesByProposalResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAmino { + const obj: any = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesByProposalResponseAminoMsg): QueryVotesByProposalResponse { + return QueryVotesByProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAminoMsg { + return { + type: "cosmos-sdk/QueryVotesByProposalResponse", + value: QueryVotesByProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesByProposalResponseProtoMsg): QueryVotesByProposalResponse { + return QueryVotesByProposalResponse.decode(message.value); + }, + toProto(message: QueryVotesByProposalResponse): Uint8Array { + return QueryVotesByProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", + value: QueryVotesByProposalResponse.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterRequest(): QueryVotesByVoterRequest { + return { + voter: "", + pagination: undefined + }; +} +export const QueryVotesByVoterRequest = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + encode(message: QueryVotesByVoterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.voter !== "") { + writer.uint32(10).string(message.voter); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voter = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesByVoterRequest { + const message = createBaseQueryVotesByVoterRequest(); + message.voter = object.voter ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesByVoterRequestAmino): QueryVotesByVoterRequest { + const message = createBaseQueryVotesByVoterRequest(); + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAmino { + const obj: any = {}; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesByVoterRequestAminoMsg): QueryVotesByVoterRequest { + return QueryVotesByVoterRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAminoMsg { + return { + type: "cosmos-sdk/QueryVotesByVoterRequest", + value: QueryVotesByVoterRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesByVoterRequestProtoMsg): QueryVotesByVoterRequest { + return QueryVotesByVoterRequest.decode(message.value); + }, + toProto(message: QueryVotesByVoterRequest): Uint8Array { + return QueryVotesByVoterRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", + value: QueryVotesByVoterRequest.encode(message).finish() + }; + } +}; +function createBaseQueryVotesByVoterResponse(): QueryVotesByVoterResponse { + return { + votes: [], + pagination: undefined + }; +} +export const QueryVotesByVoterResponse = { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + encode(message: QueryVotesByVoterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.votes) { + Vote.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryVotesByVoterResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votes.push(Vote.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryVotesByVoterResponse { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryVotesByVoterResponseAmino): QueryVotesByVoterResponse { + const message = createBaseQueryVotesByVoterResponse(); + message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAmino { + const obj: any = {}; + if (message.votes) { + obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryVotesByVoterResponseAminoMsg): QueryVotesByVoterResponse { + return QueryVotesByVoterResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAminoMsg { + return { + type: "cosmos-sdk/QueryVotesByVoterResponse", + value: QueryVotesByVoterResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryVotesByVoterResponseProtoMsg): QueryVotesByVoterResponse { + return QueryVotesByVoterResponse.decode(message.value); + }, + toProto(message: QueryVotesByVoterResponse): Uint8Array { + return QueryVotesByVoterResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", + value: QueryVotesByVoterResponse.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberRequest(): QueryGroupsByMemberRequest { + return { + address: "", + pagination: undefined + }; +} +export const QueryGroupsByMemberRequest = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + encode(message: QueryGroupsByMemberRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupsByMemberRequest { + const message = createBaseQueryGroupsByMemberRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupsByMemberRequestAmino): QueryGroupsByMemberRequest { + const message = createBaseQueryGroupsByMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupsByMemberRequestAminoMsg): QueryGroupsByMemberRequest { + return QueryGroupsByMemberRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAminoMsg { + return { + type: "cosmos-sdk/QueryGroupsByMemberRequest", + value: QueryGroupsByMemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupsByMemberRequestProtoMsg): QueryGroupsByMemberRequest { + return QueryGroupsByMemberRequest.decode(message.value); + }, + toProto(message: QueryGroupsByMemberRequest): Uint8Array { + return QueryGroupsByMemberRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", + value: QueryGroupsByMemberRequest.encode(message).finish() + }; + } +}; +function createBaseQueryGroupsByMemberResponse(): QueryGroupsByMemberResponse { + return { + groups: [], + pagination: undefined + }; +} +export const QueryGroupsByMemberResponse = { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + encode(message: QueryGroupsByMemberResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.groups) { + GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryGroupsByMemberResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groups.push(GroupInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryGroupsByMemberResponse { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryGroupsByMemberResponseAmino): QueryGroupsByMemberResponse { + const message = createBaseQueryGroupsByMemberResponse(); + message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAmino { + const obj: any = {}; + if (message.groups) { + obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); + } else { + obj.groups = message.groups; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryGroupsByMemberResponseAminoMsg): QueryGroupsByMemberResponse { + return QueryGroupsByMemberResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAminoMsg { + return { + type: "cosmos-sdk/QueryGroupsByMemberResponse", + value: QueryGroupsByMemberResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryGroupsByMemberResponseProtoMsg): QueryGroupsByMemberResponse { + return QueryGroupsByMemberResponse.decode(message.value); + }, + toProto(message: QueryGroupsByMemberResponse): Uint8Array { + return QueryGroupsByMemberResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", + value: QueryGroupsByMemberResponse.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { + return { + proposalId: BigInt(0) + }; +} +export const QueryTallyResultRequest = { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + encode(message: QueryTallyResultRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest { + const message = createBaseQueryTallyResultRequest(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg { + return { + type: "cosmos-sdk/QueryTallyResultRequest", + value: QueryTallyResultRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest { + return QueryTallyResultRequest.decode(message.value); + }, + toProto(message: QueryTallyResultRequest): Uint8Array { + return QueryTallyResultRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", + value: QueryTallyResultRequest.encode(message).finish() + }; + } +}; +function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { + return { + tally: TallyResult.fromPartial({}) + }; +} +export const QueryTallyResultResponse = { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + encode(message: QueryTallyResultResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tally !== undefined) { + TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryTallyResultResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tally = TallyResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; + return message; + }, + fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse { + const message = createBaseQueryTallyResultResponse(); + if (object.tally !== undefined && object.tally !== null) { + message.tally = TallyResult.fromAmino(object.tally); + } + return message; + }, + toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino { + const obj: any = {}; + obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; + return obj; + }, + fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg { + return { + type: "cosmos-sdk/QueryTallyResultResponse", + value: QueryTallyResultResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse { + return QueryTallyResultResponse.decode(message.value); + }, + toProto(message: QueryTallyResultResponse): Uint8Array { + return QueryTallyResultResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", + value: QueryTallyResultResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/tx.amino.ts b/packages/api/src/cosmos/group/v1/tx.amino.ts new file mode 100644 index 00000000..2c6f396e --- /dev/null +++ b/packages/api/src/cosmos/group/v1/tx.amino.ts @@ -0,0 +1,74 @@ +//@ts-nocheck +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export const AminoConverter = { + "/cosmos.group.v1.MsgCreateGroup": { + aminoType: "cosmos-sdk/MsgCreateGroup", + toAmino: MsgCreateGroup.toAmino, + fromAmino: MsgCreateGroup.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMembers": { + aminoType: "cosmos-sdk/MsgUpdateGroupMembers", + toAmino: MsgUpdateGroupMembers.toAmino, + fromAmino: MsgUpdateGroupMembers.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", + toAmino: MsgUpdateGroupAdmin.toAmino, + fromAmino: MsgUpdateGroupAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", + toAmino: MsgUpdateGroupMetadata.toAmino, + fromAmino: MsgUpdateGroupMetadata.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupPolicy", + toAmino: MsgCreateGroupPolicy.toAmino, + fromAmino: MsgCreateGroupPolicy.fromAmino + }, + "/cosmos.group.v1.MsgCreateGroupWithPolicy": { + aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", + toAmino: MsgCreateGroupWithPolicy.toAmino, + fromAmino: MsgCreateGroupWithPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + toAmino: MsgUpdateGroupPolicyAdmin.toAmino, + fromAmino: MsgUpdateGroupPolicyAdmin.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { + aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + toAmino: MsgUpdateGroupPolicyDecisionPolicy.toAmino, + fromAmino: MsgUpdateGroupPolicyDecisionPolicy.fromAmino + }, + "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { + aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + toAmino: MsgUpdateGroupPolicyMetadata.toAmino, + fromAmino: MsgUpdateGroupPolicyMetadata.fromAmino + }, + "/cosmos.group.v1.MsgSubmitProposal": { + aminoType: "cosmos-sdk/group/MsgSubmitProposal", + toAmino: MsgSubmitProposal.toAmino, + fromAmino: MsgSubmitProposal.fromAmino + }, + "/cosmos.group.v1.MsgWithdrawProposal": { + aminoType: "cosmos-sdk/group/MsgWithdrawProposal", + toAmino: MsgWithdrawProposal.toAmino, + fromAmino: MsgWithdrawProposal.fromAmino + }, + "/cosmos.group.v1.MsgVote": { + aminoType: "cosmos-sdk/group/MsgVote", + toAmino: MsgVote.toAmino, + fromAmino: MsgVote.fromAmino + }, + "/cosmos.group.v1.MsgExec": { + aminoType: "cosmos-sdk/group/MsgExec", + toAmino: MsgExec.toAmino, + fromAmino: MsgExec.fromAmino + }, + "/cosmos.group.v1.MsgLeaveGroup": { + aminoType: "cosmos-sdk/group/MsgLeaveGroup", + toAmino: MsgLeaveGroup.toAmino, + fromAmino: MsgLeaveGroup.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/tx.registry.ts b/packages/api/src/cosmos/group/v1/tx.registry.ts new file mode 100644 index 00000000..f40d6969 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/tx.registry.ts @@ -0,0 +1,269 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createGroup(value: MsgCreateGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.encode(value).finish() + }; + }, + updateGroupMembers(value: MsgUpdateGroupMembers) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.encode(value).finish() + }; + }, + updateGroupAdmin(value: MsgUpdateGroupAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.encode(value).finish() + }; + }, + updateGroupMetadata(value: MsgUpdateGroupMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.encode(value).finish() + }; + }, + createGroupPolicy(value: MsgCreateGroupPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.encode(value).finish() + }; + }, + createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.encode(value).finish() + }; + }, + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.encode(value).finish() + }; + }, + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() + }; + }, + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.encode(value).finish() + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(value).finish() + }; + }, + withdrawProposal(value: MsgWithdrawProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.encode(value).finish() + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.encode(value).finish() + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.encode(value).finish() + }; + }, + leaveGroup(value: MsgLeaveGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.encode(value).finish() + }; + } + }, + withTypeUrl: { + createGroup(value: MsgCreateGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value + }; + }, + updateGroupMembers(value: MsgUpdateGroupMembers) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value + }; + }, + updateGroupAdmin(value: MsgUpdateGroupAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value + }; + }, + updateGroupMetadata(value: MsgUpdateGroupMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value + }; + }, + createGroupPolicy(value: MsgCreateGroupPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value + }; + }, + createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value + }; + }, + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value + }; + }, + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value + }; + }, + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value + }; + }, + withdrawProposal(value: MsgWithdrawProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value + }; + }, + leaveGroup(value: MsgLeaveGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value + }; + } + }, + fromPartial: { + createGroup(value: MsgCreateGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.fromPartial(value) + }; + }, + updateGroupMembers(value: MsgUpdateGroupMembers) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.fromPartial(value) + }; + }, + updateGroupAdmin(value: MsgUpdateGroupAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.fromPartial(value) + }; + }, + updateGroupMetadata(value: MsgUpdateGroupMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.fromPartial(value) + }; + }, + createGroupPolicy(value: MsgCreateGroupPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.fromPartial(value) + }; + }, + createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.fromPartial(value) + }; + }, + updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.fromPartial(value) + }; + }, + updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) + }; + }, + updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.fromPartial(value) + }; + }, + submitProposal(value: MsgSubmitProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.fromPartial(value) + }; + }, + withdrawProposal(value: MsgWithdrawProposal) { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.fromPartial(value) + }; + }, + vote(value: MsgVote) { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.fromPartial(value) + }; + }, + exec(value: MsgExec) { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.fromPartial(value) + }; + }, + leaveGroup(value: MsgLeaveGroup) { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/tx.rpc.msg.ts b/packages/api/src/cosmos/group/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..9b8761b7 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/tx.rpc.msg.ts @@ -0,0 +1,125 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; +/** Msg is the cosmos.group.v1 Msg service. */ +export interface Msg { + /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ + createGroup(request: MsgCreateGroup): Promise; + /** UpdateGroupMembers updates the group members with given group id and admin address. */ + updateGroupMembers(request: MsgUpdateGroupMembers): Promise; + /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ + updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; + /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ + updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; + /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ + createGroupPolicy(request: MsgCreateGroupPolicy): Promise; + /** CreateGroupWithPolicy creates a new group with policy. */ + createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; + /** UpdateGroupPolicyAdmin updates a group policy admin. */ + updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; + /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ + updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; + /** UpdateGroupPolicyMetadata updates a group policy metadata. */ + updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; + /** SubmitProposal submits a new proposal. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** WithdrawProposal withdraws a proposal. */ + withdrawProposal(request: MsgWithdrawProposal): Promise; + /** Vote allows a voter to vote on a proposal. */ + vote(request: MsgVote): Promise; + /** Exec executes a proposal. */ + exec(request: MsgExec): Promise; + /** LeaveGroup allows a group member to leave the group. */ + leaveGroup(request: MsgLeaveGroup): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createGroup = this.createGroup.bind(this); + this.updateGroupMembers = this.updateGroupMembers.bind(this); + this.updateGroupAdmin = this.updateGroupAdmin.bind(this); + this.updateGroupMetadata = this.updateGroupMetadata.bind(this); + this.createGroupPolicy = this.createGroupPolicy.bind(this); + this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); + this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); + this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); + this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); + this.submitProposal = this.submitProposal.bind(this); + this.withdrawProposal = this.withdrawProposal.bind(this); + this.vote = this.vote.bind(this); + this.exec = this.exec.bind(this); + this.leaveGroup = this.leaveGroup.bind(this); + } + createGroup(request: MsgCreateGroup): Promise { + const data = MsgCreateGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); + return promise.then(data => MsgCreateGroupResponse.decode(new BinaryReader(data))); + } + updateGroupMembers(request: MsgUpdateGroupMembers): Promise { + const data = MsgUpdateGroupMembers.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); + return promise.then(data => MsgUpdateGroupMembersResponse.decode(new BinaryReader(data))); + } + updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise { + const data = MsgUpdateGroupAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); + return promise.then(data => MsgUpdateGroupAdminResponse.decode(new BinaryReader(data))); + } + updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise { + const data = MsgUpdateGroupMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); + return promise.then(data => MsgUpdateGroupMetadataResponse.decode(new BinaryReader(data))); + } + createGroupPolicy(request: MsgCreateGroupPolicy): Promise { + const data = MsgCreateGroupPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); + return promise.then(data => MsgCreateGroupPolicyResponse.decode(new BinaryReader(data))); + } + createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise { + const data = MsgCreateGroupWithPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); + return promise.then(data => MsgCreateGroupWithPolicyResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise { + const data = MsgUpdateGroupPolicyAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); + return promise.then(data => MsgUpdateGroupPolicyAdminResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise { + const data = MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); + return promise.then(data => MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new BinaryReader(data))); + } + updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise { + const data = MsgUpdateGroupPolicyMetadata.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); + return promise.then(data => MsgUpdateGroupPolicyMetadataResponse.decode(new BinaryReader(data))); + } + submitProposal(request: MsgSubmitProposal): Promise { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); + } + withdrawProposal(request: MsgWithdrawProposal): Promise { + const data = MsgWithdrawProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); + return promise.then(data => MsgWithdrawProposalResponse.decode(new BinaryReader(data))); + } + vote(request: MsgVote): Promise { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); + } + exec(request: MsgExec): Promise { + const data = MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); + return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); + } + leaveGroup(request: MsgLeaveGroup): Promise { + const data = MsgLeaveGroup.encode(request).finish(); + const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); + return promise.then(data => MsgLeaveGroupResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/tx.ts b/packages/api/src/cosmos/group/v1/tx.ts new file mode 100644 index 00000000..e7ca5318 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/tx.ts @@ -0,0 +1,3079 @@ +//@ts-nocheck +import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** Exec defines modes of execution of a proposal on creation or on new vote. */ +export enum Exec { + /** + * EXEC_UNSPECIFIED - An empty value means that there should be a separate + * MsgExec request for the proposal to execute. + */ + EXEC_UNSPECIFIED = 0, + /** + * EXEC_TRY - Try to execute the proposal immediately. + * If the proposal is not allowed per the DecisionPolicy, + * the proposal will still be open and could + * be executed at a later point. + */ + EXEC_TRY = 1, + UNRECOGNIZED = -1, +} +export const ExecSDKType = Exec; +export const ExecAmino = Exec; +export function execFromJSON(object: any): Exec { + switch (object) { + case 0: + case "EXEC_UNSPECIFIED": + return Exec.EXEC_UNSPECIFIED; + case 1: + case "EXEC_TRY": + return Exec.EXEC_TRY; + case -1: + case "UNRECOGNIZED": + default: + return Exec.UNRECOGNIZED; + } +} +export function execToJSON(object: Exec): string { + switch (object) { + case Exec.EXEC_UNSPECIFIED: + return "EXEC_UNSPECIFIED"; + case Exec.EXEC_TRY: + return "EXEC_TRY"; + case Exec.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroup { + /** admin is the account address of the group admin. */ + admin: string; + /** members defines the group members. */ + members: MemberRequest[]; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata: string; +} +export interface MsgCreateGroupProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroup"; + value: Uint8Array; +} +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroupAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** members defines the group members. */ + members: MemberRequestAmino[]; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata?: string; +} +export interface MsgCreateGroupAminoMsg { + type: "cosmos-sdk/MsgCreateGroup"; + value: MsgCreateGroupAmino; +} +/** MsgCreateGroup is the Msg/CreateGroup request type. */ +export interface MsgCreateGroupSDKType { + admin: string; + members: MemberRequestSDKType[]; + metadata: string; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponse { + /** group_id is the unique ID of the newly created group. */ + groupId: bigint; +} +export interface MsgCreateGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; + value: Uint8Array; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponseAmino { + /** group_id is the unique ID of the newly created group. */ + group_id?: string; +} +export interface MsgCreateGroupResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupResponse"; + value: MsgCreateGroupResponseAmino; +} +/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ +export interface MsgCreateGroupResponseSDKType { + group_id: bigint; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembers { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** + * member_updates is the list of members to update, + * set weight to 0 to remove a member. + */ + memberUpdates: MemberRequest[]; +} +export interface MsgUpdateGroupMembersProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; + value: Uint8Array; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembersAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** + * member_updates is the list of members to update, + * set weight to 0 to remove a member. + */ + member_updates: MemberRequestAmino[]; +} +export interface MsgUpdateGroupMembersAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMembers"; + value: MsgUpdateGroupMembersAmino; +} +/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ +export interface MsgUpdateGroupMembersSDKType { + admin: string; + group_id: bigint; + member_updates: MemberRequestSDKType[]; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponse {} +export interface MsgUpdateGroupMembersResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponseAmino {} +export interface MsgUpdateGroupMembersResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; + value: MsgUpdateGroupMembersResponseAmino; +} +/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ +export interface MsgUpdateGroupMembersResponseSDKType {} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdmin { + /** admin is the current account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** new_admin is the group new admin account address. */ + newAdmin: string; +} +export interface MsgUpdateGroupAdminProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; + value: Uint8Array; +} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdminAmino { + /** admin is the current account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** new_admin is the group new admin account address. */ + new_admin?: string; +} +export interface MsgUpdateGroupAdminAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupAdmin"; + value: MsgUpdateGroupAdminAmino; +} +/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ +export interface MsgUpdateGroupAdminSDKType { + admin: string; + group_id: bigint; + new_admin: string; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponse {} +export interface MsgUpdateGroupAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponseAmino {} +export interface MsgUpdateGroupAdminResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; + value: MsgUpdateGroupAdminResponseAmino; +} +/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ +export interface MsgUpdateGroupAdminResponseSDKType {} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadata { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** metadata is the updated group's metadata. */ + metadata: string; +} +export interface MsgUpdateGroupMetadataProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; + value: Uint8Array; +} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadataAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** metadata is the updated group's metadata. */ + metadata?: string; +} +export interface MsgUpdateGroupMetadataAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMetadata"; + value: MsgUpdateGroupMetadataAmino; +} +/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ +export interface MsgUpdateGroupMetadataSDKType { + admin: string; + group_id: bigint; + metadata: string; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponse {} +export interface MsgUpdateGroupMetadataResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponseAmino {} +export interface MsgUpdateGroupMetadataResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; + value: MsgUpdateGroupMetadataResponseAmino; +} +/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ +export interface MsgUpdateGroupMetadataResponseSDKType {} +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicy { + /** admin is the account address of the group admin. */ + admin: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** metadata is any arbitrary metadata attached to the group policy. */ + metadata: string; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgCreateGroupPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; + value: Uint8Array; +} +export type MsgCreateGroupPolicyEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicyAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** metadata is any arbitrary metadata attached to the group policy. */ + metadata?: string; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgCreateGroupPolicyAminoMsg { + type: "cosmos-sdk/MsgCreateGroupPolicy"; + value: MsgCreateGroupPolicyAmino; +} +/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ +export interface MsgCreateGroupPolicySDKType { + admin: string; + group_id: bigint; + metadata: string; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponse { + /** address is the account address of the newly created group policy. */ + address: string; +} +export interface MsgCreateGroupPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; + value: Uint8Array; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponseAmino { + /** address is the account address of the newly created group policy. */ + address?: string; +} +export interface MsgCreateGroupPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; + value: MsgCreateGroupPolicyResponseAmino; +} +/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ +export interface MsgCreateGroupPolicyResponseSDKType { + address: string; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdmin { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of the group policy. */ + groupPolicyAddress: string; + /** new_admin is the new group policy admin. */ + newAdmin: string; +} +export interface MsgUpdateGroupPolicyAdminProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdminAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of the group policy. */ + group_policy_address?: string; + /** new_admin is the new group policy admin. */ + new_admin?: string; +} +export interface MsgUpdateGroupPolicyAdminAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; + value: MsgUpdateGroupPolicyAdminAmino; +} +/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ +export interface MsgUpdateGroupPolicyAdminSDKType { + admin: string; + group_policy_address: string; + new_admin: string; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponse {} +export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponseAmino {} +export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; + value: MsgUpdateGroupPolicyAdminResponseAmino; +} +/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ +export interface MsgUpdateGroupPolicyAdminResponseSDKType {} +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicy { + /** admin is the account address of the group and group policy admin. */ + admin: string; + /** members defines the group members. */ + members: MemberRequest[]; + /** group_metadata is any arbitrary metadata attached to the group. */ + groupMetadata: string; + /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ + groupPolicyMetadata: string; + /** + * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + * and group policy admin. + */ + groupPolicyAsAdmin: boolean; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgCreateGroupWithPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; + value: Uint8Array; +} +export type MsgCreateGroupWithPolicyEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicyAmino { + /** admin is the account address of the group and group policy admin. */ + admin?: string; + /** members defines the group members. */ + members: MemberRequestAmino[]; + /** group_metadata is any arbitrary metadata attached to the group. */ + group_metadata?: string; + /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ + group_policy_metadata?: string; + /** + * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group + * and group policy admin. + */ + group_policy_as_admin?: boolean; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgCreateGroupWithPolicyAminoMsg { + type: "cosmos-sdk/MsgCreateGroupWithPolicy"; + value: MsgCreateGroupWithPolicyAmino; +} +/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ +export interface MsgCreateGroupWithPolicySDKType { + admin: string; + members: MemberRequestSDKType[]; + group_metadata: string; + group_policy_metadata: string; + group_policy_as_admin: boolean; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponse { + /** group_id is the unique ID of the newly created group with policy. */ + groupId: bigint; + /** group_policy_address is the account address of the newly created group policy. */ + groupPolicyAddress: string; +} +export interface MsgCreateGroupWithPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; + value: Uint8Array; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponseAmino { + /** group_id is the unique ID of the newly created group with policy. */ + group_id?: string; + /** group_policy_address is the account address of the newly created group policy. */ + group_policy_address?: string; +} +export interface MsgCreateGroupWithPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; + value: MsgCreateGroupWithPolicyResponseAmino; +} +/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ +export interface MsgCreateGroupWithPolicyResponseSDKType { + group_id: bigint; + group_policy_address: string; +} +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicy { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** decision_policy is the updated group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; +} +export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; + value: Uint8Array; +} +export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit & { + /** decision_policy is the updated group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** decision_policy is the updated group policy's decision policy. */ + decision_policy?: AnyAmino; +} +export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; + value: MsgUpdateGroupPolicyDecisionPolicyAmino; +} +/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ +export interface MsgUpdateGroupPolicyDecisionPolicySDKType { + admin: string; + group_policy_address: string; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} +export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino {} +export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; + value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; +} +/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ +export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadata { + /** admin is the account address of the group admin. */ + admin: string; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** metadata is the updated group policy metadata. */ + metadata: string; +} +export interface MsgUpdateGroupPolicyMetadataProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadataAmino { + /** admin is the account address of the group admin. */ + admin?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** metadata is the updated group policy metadata. */ + metadata?: string; +} +export interface MsgUpdateGroupPolicyMetadataAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; + value: MsgUpdateGroupPolicyMetadataAmino; +} +/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ +export interface MsgUpdateGroupPolicyMetadataSDKType { + admin: string; + group_policy_address: string; + metadata: string; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponse {} +export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponseAmino {} +export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; + value: MsgUpdateGroupPolicyMetadataResponseAmino; +} +/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ +export interface MsgUpdateGroupPolicyMetadataResponseSDKType {} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposal { + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** + * proposers are the account addresses of the proposers. + * Proposers signatures will be counted as yes votes. + */ + proposers: string[]; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata: string; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages: Any[]; + /** + * exec defines the mode of execution of the proposal, + * whether it should be executed immediately on creation or not. + * If so, proposers signatures are considered as Yes votes. + */ + exec: Exec; +} +export interface MsgSubmitProposalProtoMsg { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; + value: Uint8Array; +} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposalAmino { + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** + * proposers are the account addresses of the proposers. + * Proposers signatures will be counted as yes votes. + */ + proposers?: string[]; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata?: string; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages?: AnyAmino[]; + /** + * exec defines the mode of execution of the proposal, + * whether it should be executed immediately on creation or not. + * If so, proposers signatures are considered as Yes votes. + */ + exec?: Exec; +} +export interface MsgSubmitProposalAminoMsg { + type: "cosmos-sdk/group/MsgSubmitProposal"; + value: MsgSubmitProposalAmino; +} +/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ +export interface MsgSubmitProposalSDKType { + group_policy_address: string; + proposers: string[]; + metadata: string; + messages: AnySDKType[]; + exec: Exec; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponse { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; +} +export interface MsgSubmitProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; + value: Uint8Array; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; +} +export interface MsgSubmitProposalResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitProposalResponse"; + value: MsgSubmitProposalResponseAmino; +} +/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ +export interface MsgSubmitProposalResponseSDKType { + proposal_id: bigint; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposal { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** address is the admin of the group policy or one of the proposer of the proposal. */ + address: string; +} +export interface MsgWithdrawProposalProtoMsg { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; + value: Uint8Array; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposalAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** address is the admin of the group policy or one of the proposer of the proposal. */ + address?: string; +} +export interface MsgWithdrawProposalAminoMsg { + type: "cosmos-sdk/group/MsgWithdrawProposal"; + value: MsgWithdrawProposalAmino; +} +/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ +export interface MsgWithdrawProposalSDKType { + proposal_id: bigint; + address: string; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponse {} +export interface MsgWithdrawProposalResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; + value: Uint8Array; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponseAmino {} +export interface MsgWithdrawProposalResponseAminoMsg { + type: "cosmos-sdk/MsgWithdrawProposalResponse"; + value: MsgWithdrawProposalResponseAmino; +} +/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ +export interface MsgWithdrawProposalResponseSDKType {} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVote { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** voter is the voter account address. */ + voter: string; + /** option is the voter's choice on the proposal. */ + option: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; + /** + * exec defines whether the proposal should be executed + * immediately after voting or not. + */ + exec: Exec; +} +export interface MsgVoteProtoMsg { + typeUrl: "/cosmos.group.v1.MsgVote"; + value: Uint8Array; +} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVoteAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** voter is the voter account address. */ + voter?: string; + /** option is the voter's choice on the proposal. */ + option?: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; + /** + * exec defines whether the proposal should be executed + * immediately after voting or not. + */ + exec?: Exec; +} +export interface MsgVoteAminoMsg { + type: "cosmos-sdk/group/MsgVote"; + value: MsgVoteAmino; +} +/** MsgVote is the Msg/Vote request type. */ +export interface MsgVoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; + exec: Exec; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponse {} +export interface MsgVoteResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgVoteResponse"; + value: Uint8Array; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponseAmino {} +export interface MsgVoteResponseAminoMsg { + type: "cosmos-sdk/MsgVoteResponse"; + value: MsgVoteResponseAmino; +} +/** MsgVoteResponse is the Msg/Vote response type. */ +export interface MsgVoteResponseSDKType {} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExec { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** executor is the account address used to execute the proposal. */ + executor: string; +} +export interface MsgExecProtoMsg { + typeUrl: "/cosmos.group.v1.MsgExec"; + value: Uint8Array; +} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExecAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** executor is the account address used to execute the proposal. */ + executor?: string; +} +export interface MsgExecAminoMsg { + type: "cosmos-sdk/group/MsgExec"; + value: MsgExecAmino; +} +/** MsgExec is the Msg/Exec request type. */ +export interface MsgExecSDKType { + proposal_id: bigint; + executor: string; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponse { + /** result is the final result of the proposal execution. */ + result: ProposalExecutorResult; +} +export interface MsgExecResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgExecResponse"; + value: Uint8Array; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponseAmino { + /** result is the final result of the proposal execution. */ + result?: ProposalExecutorResult; +} +export interface MsgExecResponseAminoMsg { + type: "cosmos-sdk/MsgExecResponse"; + value: MsgExecResponseAmino; +} +/** MsgExecResponse is the Msg/Exec request type. */ +export interface MsgExecResponseSDKType { + result: ProposalExecutorResult; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroup { + /** address is the account address of the group member. */ + address: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; +} +export interface MsgLeaveGroupProtoMsg { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; + value: Uint8Array; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroupAmino { + /** address is the account address of the group member. */ + address?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; +} +export interface MsgLeaveGroupAminoMsg { + type: "cosmos-sdk/group/MsgLeaveGroup"; + value: MsgLeaveGroupAmino; +} +/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ +export interface MsgLeaveGroupSDKType { + address: string; + group_id: bigint; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponse {} +export interface MsgLeaveGroupResponseProtoMsg { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; + value: Uint8Array; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponseAmino {} +export interface MsgLeaveGroupResponseAminoMsg { + type: "cosmos-sdk/MsgLeaveGroupResponse"; + value: MsgLeaveGroupResponseAmino; +} +/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ +export interface MsgLeaveGroupResponseSDKType {} +function createBaseMsgCreateGroup(): MsgCreateGroup { + return { + admin: "", + members: [], + metadata: "" + }; +} +export const MsgCreateGroup = { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + encode(message: MsgCreateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroup { + const message = createBaseMsgCreateGroup(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup { + const message = createBaseMsgCreateGroup(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgCreateGroup): MsgCreateGroupAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); + } else { + obj.members = message.members; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup { + return MsgCreateGroup.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroup", + value: MsgCreateGroup.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup { + return MsgCreateGroup.decode(message.value); + }, + toProto(message: MsgCreateGroup): Uint8Array { + return MsgCreateGroup.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroup", + value: MsgCreateGroup.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupResponse(): MsgCreateGroupResponse { + return { + groupId: BigInt(0) + }; +} +export const MsgCreateGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + encode(message: MsgCreateGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroupResponse { + const message = createBaseMsgCreateGroupResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse { + const message = createBaseMsgCreateGroupResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse { + return MsgCreateGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroupResponse", + value: MsgCreateGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse { + return MsgCreateGroupResponse.decode(message.value); + }, + toProto(message: MsgCreateGroupResponse): Uint8Array { + return MsgCreateGroupResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", + value: MsgCreateGroupResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembers(): MsgUpdateGroupMembers { + return { + admin: "", + groupId: BigInt(0), + memberUpdates: [] + }; +} +export const MsgUpdateGroupMembers = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + encode(message: MsgUpdateGroupMembers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + for (const v of message.memberUpdates) { + MemberRequest.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupMembers { + const message = createBaseMsgUpdateGroupMembers(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers { + const message = createBaseMsgUpdateGroupMembers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + if (message.memberUpdates) { + obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined); + } else { + obj.member_updates = message.memberUpdates; + } + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers { + return MsgUpdateGroupMembers.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers { + return MsgUpdateGroupMembers.decode(message.value); + }, + toProto(message: MsgUpdateGroupMembers): Uint8Array { + return MsgUpdateGroupMembers.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", + value: MsgUpdateGroupMembers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMembersResponse(): MsgUpdateGroupMembersResponse { + return {}; +} +export const MsgUpdateGroupMembersResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + encode(_: MsgUpdateGroupMembersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMembersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupMembersResponse { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse { + const message = createBaseMsgUpdateGroupMembersResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse { + return MsgUpdateGroupMembersResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupMembersResponse", + value: MsgUpdateGroupMembersResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse { + return MsgUpdateGroupMembersResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupMembersResponse): Uint8Array { + return MsgUpdateGroupMembersResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", + value: MsgUpdateGroupMembersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdmin(): MsgUpdateGroupAdmin { + return { + admin: "", + groupId: BigInt(0), + newAdmin: "" + }; +} +export const MsgUpdateGroupAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + encode(message: MsgUpdateGroupAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupAdmin { + const message = createBaseMsgUpdateGroupAdmin(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin { + const message = createBaseMsgUpdateGroupAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin { + return MsgUpdateGroupAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin { + return MsgUpdateGroupAdmin.decode(message.value); + }, + toProto(message: MsgUpdateGroupAdmin): Uint8Array { + return MsgUpdateGroupAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", + value: MsgUpdateGroupAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupAdminResponse(): MsgUpdateGroupAdminResponse { + return {}; +} +export const MsgUpdateGroupAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + encode(_: MsgUpdateGroupAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupAdminResponse { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse { + const message = createBaseMsgUpdateGroupAdminResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse { + return MsgUpdateGroupAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupAdminResponse", + value: MsgUpdateGroupAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse { + return MsgUpdateGroupAdminResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupAdminResponse): Uint8Array { + return MsgUpdateGroupAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", + value: MsgUpdateGroupAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadata(): MsgUpdateGroupMetadata { + return { + admin: "", + groupId: BigInt(0), + metadata: "" + }; +} +export const MsgUpdateGroupMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + encode(message: MsgUpdateGroupMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupMetadata { + const message = createBaseMsgUpdateGroupMetadata(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata { + const message = createBaseMsgUpdateGroupMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata { + return MsgUpdateGroupMetadata.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata { + return MsgUpdateGroupMetadata.decode(message.value); + }, + toProto(message: MsgUpdateGroupMetadata): Uint8Array { + return MsgUpdateGroupMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", + value: MsgUpdateGroupMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupMetadataResponse(): MsgUpdateGroupMetadataResponse { + return {}; +} +export const MsgUpdateGroupMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + encode(_: MsgUpdateGroupMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupMetadataResponse { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse { + const message = createBaseMsgUpdateGroupMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse { + return MsgUpdateGroupMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", + value: MsgUpdateGroupMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse { + return MsgUpdateGroupMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array { + return MsgUpdateGroupMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", + value: MsgUpdateGroupMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicy(): MsgCreateGroupPolicy { + return { + admin: "", + groupId: BigInt(0), + metadata: "", + decisionPolicy: undefined + }; +} +export const MsgCreateGroupPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + encode(message: MsgCreateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.decisionPolicy !== undefined) { + Any.encode((message.decisionPolicy as Any), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroupPolicy { + const message = createBaseMsgCreateGroupPolicy(); + message.admin = object.admin ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.metadata = object.metadata ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy { + const message = createBaseMsgCreateGroupPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy { + return MsgCreateGroupPolicy.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy { + return MsgCreateGroupPolicy.decode(message.value); + }, + toProto(message: MsgCreateGroupPolicy): Uint8Array { + return MsgCreateGroupPolicy.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", + value: MsgCreateGroupPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupPolicyResponse(): MsgCreateGroupPolicyResponse { + return { + address: "" + }; +} +export const MsgCreateGroupPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + encode(message: MsgCreateGroupPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroupPolicyResponse { + const message = createBaseMsgCreateGroupPolicyResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse { + const message = createBaseMsgCreateGroupPolicyResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse { + return MsgCreateGroupPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroupPolicyResponse", + value: MsgCreateGroupPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse { + return MsgCreateGroupPolicyResponse.decode(message.value); + }, + toProto(message: MsgCreateGroupPolicyResponse): Uint8Array { + return MsgCreateGroupPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", + value: MsgCreateGroupPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdmin(): MsgUpdateGroupPolicyAdmin { + return { + admin: "", + groupPolicyAddress: "", + newAdmin: "" + }; +} +export const MsgUpdateGroupPolicyAdmin = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + encode(message: MsgUpdateGroupPolicyAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin { + const message = createBaseMsgUpdateGroupPolicyAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin { + return MsgUpdateGroupPolicyAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin { + return MsgUpdateGroupPolicyAdmin.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array { + return MsgUpdateGroupPolicyAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", + value: MsgUpdateGroupPolicyAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyAdminResponse(): MsgUpdateGroupPolicyAdminResponse { + return {}; +} +export const MsgUpdateGroupPolicyAdminResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + encode(_: MsgUpdateGroupPolicyAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse { + const message = createBaseMsgUpdateGroupPolicyAdminResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse { + return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", + value: MsgUpdateGroupPolicyAdminResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse { + return MsgUpdateGroupPolicyAdminResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array { + return MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", + value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicy(): MsgCreateGroupWithPolicy { + return { + admin: "", + members: [], + groupMetadata: "", + groupPolicyMetadata: "", + groupPolicyAsAdmin: false, + decisionPolicy: undefined + }; +} +export const MsgCreateGroupWithPolicy = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + encode(message: MsgCreateGroupWithPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.members) { + MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.groupMetadata !== "") { + writer.uint32(26).string(message.groupMetadata); + } + if (message.groupPolicyMetadata !== "") { + writer.uint32(34).string(message.groupPolicyMetadata); + } + if (message.groupPolicyAsAdmin === true) { + writer.uint32(40).bool(message.groupPolicyAsAdmin); + } + if (message.decisionPolicy !== undefined) { + Any.encode((message.decisionPolicy as Any), writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.members.push(MemberRequest.decode(reader, reader.uint32())); + break; + case 3: + message.groupMetadata = reader.string(); + break; + case 4: + message.groupPolicyMetadata = reader.string(); + break; + case 5: + message.groupPolicyAsAdmin = reader.bool(); + break; + case 6: + message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroupWithPolicy { + const message = createBaseMsgCreateGroupWithPolicy(); + message.admin = object.admin ?? ""; + message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; + message.groupMetadata = object.groupMetadata ?? ""; + message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; + message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy { + const message = createBaseMsgCreateGroupWithPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; + if (object.group_metadata !== undefined && object.group_metadata !== null) { + message.groupMetadata = object.group_metadata; + } + if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { + message.groupPolicyMetadata = object.group_policy_metadata; + } + if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { + message.groupPolicyAsAdmin = object.group_policy_as_admin; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.members) { + obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); + } else { + obj.members = message.members; + } + obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; + obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; + obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy { + return MsgCreateGroupWithPolicy.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy { + return MsgCreateGroupWithPolicy.decode(message.value); + }, + toProto(message: MsgCreateGroupWithPolicy): Uint8Array { + return MsgCreateGroupWithPolicy.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", + value: MsgCreateGroupWithPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgCreateGroupWithPolicyResponse(): MsgCreateGroupWithPolicyResponse { + return { + groupId: BigInt(0), + groupPolicyAddress: "" + }; +} +export const MsgCreateGroupWithPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + encode(message: MsgCreateGroupWithPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateGroupWithPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + return message; + }, + fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse { + const message = createBaseMsgCreateGroupWithPolicyResponse(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + return message; + }, + toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + return obj; + }, + fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse { + return MsgCreateGroupWithPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", + value: MsgCreateGroupWithPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse { + return MsgCreateGroupWithPolicyResponse.decode(message.value); + }, + toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array { + return MsgCreateGroupWithPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", + value: MsgCreateGroupWithPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicy(): MsgUpdateGroupPolicyDecisionPolicy { + return { + admin: "", + groupPolicyAddress: "", + decisionPolicy: undefined + }; +} +export const MsgUpdateGroupPolicyDecisionPolicy = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.decisionPolicy !== undefined) { + Any.encode((message.decisionPolicy as Any), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + return message; + }, + fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + return message; + }, + toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy { + return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy { + return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array { + return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", + value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(): MsgUpdateGroupPolicyDecisionPolicyResponse { + return {}; +} +export const MsgUpdateGroupPolicyDecisionPolicyResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse { + const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse { + return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", + value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse { + return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array { + return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", + value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadata(): MsgUpdateGroupPolicyMetadata { + return { + admin: "", + groupPolicyAddress: "", + metadata: "" + }; +} +export const MsgUpdateGroupPolicyMetadata = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + encode(message: MsgUpdateGroupPolicyMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + message.admin = object.admin ?? ""; + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata { + const message = createBaseMsgUpdateGroupPolicyMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata { + return MsgUpdateGroupPolicyMetadata.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata { + return MsgUpdateGroupPolicyMetadata.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array { + return MsgUpdateGroupPolicyMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", + value: MsgUpdateGroupPolicyMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateGroupPolicyMetadataResponse(): MsgUpdateGroupPolicyMetadataResponse { + return {}; +} +export const MsgUpdateGroupPolicyMetadataResponse = { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + encode(_: MsgUpdateGroupPolicyMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse { + const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse { + return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", + value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse { + return MsgUpdateGroupPolicyMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array { + return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", + value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposal(): MsgSubmitProposal { + return { + groupPolicyAddress: "", + proposers: [], + metadata: "", + messages: [], + exec: 0 + }; +} +export const MsgSubmitProposal = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupPolicyAddress !== "") { + writer.uint32(10).string(message.groupPolicyAddress); + } + for (const v of message.proposers) { + writer.uint32(18).string(v!); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.messages) { + Any.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupPolicyAddress = reader.string(); + break; + case 2: + message.proposers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 5: + message.exec = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal { + const message = createBaseMsgSubmitProposal(); + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino { + const obj: any = {}; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } else { + obj.proposers = message.proposers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.messages = message.messages; + } + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { + return MsgSubmitProposal.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg { + return { + type: "cosmos-sdk/group/MsgSubmitProposal", + value: MsgSubmitProposal.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal { + return MsgSubmitProposal.decode(message.value); + }, + toProto(message: MsgSubmitProposal): Uint8Array { + return MsgSubmitProposal.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposal", + value: MsgSubmitProposal.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { + return { + proposalId: BigInt(0) + }; +} +export const MsgSubmitProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse { + const message = createBaseMsgSubmitProposalResponse(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + return message; + }, + toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse { + return MsgSubmitProposalResponse.decode(message.value); + }, + toProto(message: MsgSubmitProposalResponse): Uint8Array { + return MsgSubmitProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", + value: MsgSubmitProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposal(): MsgWithdrawProposal { + return { + proposalId: BigInt(0), + address: "" + }; +} +export const MsgWithdrawProposal = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + encode(message: MsgWithdrawProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.address !== "") { + writer.uint32(18).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgWithdrawProposal { + const message = createBaseMsgWithdrawProposal(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal { + const message = createBaseMsgWithdrawProposal(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal { + return MsgWithdrawProposal.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg { + return { + type: "cosmos-sdk/group/MsgWithdrawProposal", + value: MsgWithdrawProposal.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal { + return MsgWithdrawProposal.decode(message.value); + }, + toProto(message: MsgWithdrawProposal): Uint8Array { + return MsgWithdrawProposal.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", + value: MsgWithdrawProposal.encode(message).finish() + }; + } +}; +function createBaseMsgWithdrawProposalResponse(): MsgWithdrawProposalResponse { + return {}; +} +export const MsgWithdrawProposalResponse = { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + encode(_: MsgWithdrawProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgWithdrawProposalResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgWithdrawProposalResponse { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse { + const message = createBaseMsgWithdrawProposalResponse(); + return message; + }, + toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse { + return MsgWithdrawProposalResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg { + return { + type: "cosmos-sdk/MsgWithdrawProposalResponse", + value: MsgWithdrawProposalResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse { + return MsgWithdrawProposalResponse.decode(message.value); + }, + toProto(message: MsgWithdrawProposalResponse): Uint8Array { + return MsgWithdrawProposalResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", + value: MsgWithdrawProposalResponse.encode(message).finish() + }; + } +}; +function createBaseMsgVote(): MsgVote { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + exec: 0 + }; +} +export const MsgVote = { + typeUrl: "/cosmos.group.v1.MsgVote", + encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.exec !== 0) { + writer.uint32(40).int32(message.exec); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = (reader.int32() as any); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.exec = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgVote { + const message = createBaseMsgVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.exec = object.exec ?? 0; + return message; + }, + fromAmino(object: MsgVoteAmino): MsgVote { + const message = createBaseMsgVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.exec !== undefined && object.exec !== null) { + message.exec = object.exec; + } + return message; + }, + toAmino(message: MsgVote): MsgVoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.exec = message.exec === 0 ? undefined : message.exec; + return obj; + }, + fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { + return MsgVote.fromAmino(object.value); + }, + toAminoMsg(message: MsgVote): MsgVoteAminoMsg { + return { + type: "cosmos-sdk/group/MsgVote", + value: MsgVote.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteProtoMsg): MsgVote { + return MsgVote.decode(message.value); + }, + toProto(message: MsgVote): Uint8Array { + return MsgVote.encode(message).finish(); + }, + toProtoMsg(message: MsgVote): MsgVoteProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgVote", + value: MsgVote.encode(message).finish() + }; + } +}; +function createBaseMsgVoteResponse(): MsgVoteResponse { + return {}; +} +export const MsgVoteResponse = { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgVoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse { + const message = createBaseMsgVoteResponse(); + return message; + }, + toAmino(_: MsgVoteResponse): MsgVoteResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse { + return MsgVoteResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg { + return { + type: "cosmos-sdk/MsgVoteResponse", + value: MsgVoteResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse { + return MsgVoteResponse.decode(message.value); + }, + toProto(message: MsgVoteResponse): Uint8Array { + return MsgVoteResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgVoteResponse", + value: MsgVoteResponse.encode(message).finish() + }; + } +}; +function createBaseMsgExec(): MsgExec { + return { + proposalId: BigInt(0), + executor: "" + }; +} +export const MsgExec = { + typeUrl: "/cosmos.group.v1.MsgExec", + encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.executor !== "") { + writer.uint32(18).string(message.executor); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExec { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExec(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.executor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgExec { + const message = createBaseMsgExec(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.executor = object.executor ?? ""; + return message; + }, + fromAmino(object: MsgExecAmino): MsgExec { + const message = createBaseMsgExec(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.executor !== undefined && object.executor !== null) { + message.executor = object.executor; + } + return message; + }, + toAmino(message: MsgExec): MsgExecAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.executor = message.executor === "" ? undefined : message.executor; + return obj; + }, + fromAminoMsg(object: MsgExecAminoMsg): MsgExec { + return MsgExec.fromAmino(object.value); + }, + toAminoMsg(message: MsgExec): MsgExecAminoMsg { + return { + type: "cosmos-sdk/group/MsgExec", + value: MsgExec.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecProtoMsg): MsgExec { + return MsgExec.decode(message.value); + }, + toProto(message: MsgExec): Uint8Array { + return MsgExec.encode(message).finish(); + }, + toProtoMsg(message: MsgExec): MsgExecProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgExec", + value: MsgExec.encode(message).finish() + }; + } +}; +function createBaseMsgExecResponse(): MsgExecResponse { + return { + result: 0 + }; +} +export const MsgExecResponse = { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.result !== 0) { + writer.uint32(16).int32(message.result); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgExecResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.result = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgExecResponse { + const message = createBaseMsgExecResponse(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object: MsgExecResponseAmino): MsgExecResponse { + const message = createBaseMsgExecResponse(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message: MsgExecResponse): MsgExecResponseAmino { + const obj: any = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse { + return MsgExecResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg { + return { + type: "cosmos-sdk/MsgExecResponse", + value: MsgExecResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse { + return MsgExecResponse.decode(message.value); + }, + toProto(message: MsgExecResponse): Uint8Array { + return MsgExecResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgExecResponse", + value: MsgExecResponse.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroup(): MsgLeaveGroup { + return { + address: "", + groupId: BigInt(0) + }; +} +export const MsgLeaveGroup = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + encode(message: MsgLeaveGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroup(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgLeaveGroup { + const message = createBaseMsgLeaveGroup(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup { + const message = createBaseMsgLeaveGroup(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + return message; + }, + toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup { + return MsgLeaveGroup.fromAmino(object.value); + }, + toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg { + return { + type: "cosmos-sdk/group/MsgLeaveGroup", + value: MsgLeaveGroup.toAmino(message) + }; + }, + fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup { + return MsgLeaveGroup.decode(message.value); + }, + toProto(message: MsgLeaveGroup): Uint8Array { + return MsgLeaveGroup.encode(message).finish(); + }, + toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroup", + value: MsgLeaveGroup.encode(message).finish() + }; + } +}; +function createBaseMsgLeaveGroupResponse(): MsgLeaveGroupResponse { + return {}; +} +export const MsgLeaveGroupResponse = { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + encode(_: MsgLeaveGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgLeaveGroupResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgLeaveGroupResponse { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse { + const message = createBaseMsgLeaveGroupResponse(); + return message; + }, + toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse { + return MsgLeaveGroupResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg { + return { + type: "cosmos-sdk/MsgLeaveGroupResponse", + value: MsgLeaveGroupResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse { + return MsgLeaveGroupResponse.decode(message.value); + }, + toProto(message: MsgLeaveGroupResponse): Uint8Array { + return MsgLeaveGroupResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", + value: MsgLeaveGroupResponse.encode(message).finish() + }; + } +}; +export const DecisionPolicy_InterfaceDecoder = (input: BinaryReader | Uint8Array): ThresholdDecisionPolicy | PercentageDecisionPolicy | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +export const DecisionPolicy_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const DecisionPolicy_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/group/v1/types.ts b/packages/api/src/cosmos/group/v1/types.ts new file mode 100644 index 00000000..5e13bca9 --- /dev/null +++ b/packages/api/src/cosmos/group/v1/types.ts @@ -0,0 +1,2067 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** VoteOption enumerates the valid vote options for a given proposal. */ +export enum VoteOption { + /** + * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will + * return an error. + */ + VOTE_OPTION_UNSPECIFIED = 0, + /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ + VOTE_OPTION_YES = 1, + /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ + VOTE_OPTION_ABSTAIN = 2, + /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ + VOTE_OPTION_NO = 3, + /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ + VOTE_OPTION_NO_WITH_VETO = 4, + UNRECOGNIZED = -1, +} +export const VoteOptionSDKType = VoteOption; +export const VoteOptionAmino = VoteOption; +export function voteOptionFromJSON(object: any): VoteOption { + switch (object) { + case 0: + case "VOTE_OPTION_UNSPECIFIED": + return VoteOption.VOTE_OPTION_UNSPECIFIED; + case 1: + case "VOTE_OPTION_YES": + return VoteOption.VOTE_OPTION_YES; + case 2: + case "VOTE_OPTION_ABSTAIN": + return VoteOption.VOTE_OPTION_ABSTAIN; + case 3: + case "VOTE_OPTION_NO": + return VoteOption.VOTE_OPTION_NO; + case 4: + case "VOTE_OPTION_NO_WITH_VETO": + return VoteOption.VOTE_OPTION_NO_WITH_VETO; + case -1: + case "UNRECOGNIZED": + default: + return VoteOption.UNRECOGNIZED; + } +} +export function voteOptionToJSON(object: VoteOption): string { + switch (object) { + case VoteOption.VOTE_OPTION_UNSPECIFIED: + return "VOTE_OPTION_UNSPECIFIED"; + case VoteOption.VOTE_OPTION_YES: + return "VOTE_OPTION_YES"; + case VoteOption.VOTE_OPTION_ABSTAIN: + return "VOTE_OPTION_ABSTAIN"; + case VoteOption.VOTE_OPTION_NO: + return "VOTE_OPTION_NO"; + case VoteOption.VOTE_OPTION_NO_WITH_VETO: + return "VOTE_OPTION_NO_WITH_VETO"; + case VoteOption.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalStatus defines proposal statuses. */ +export enum ProposalStatus { + /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ + PROPOSAL_STATUS_UNSPECIFIED = 0, + /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ + PROPOSAL_STATUS_SUBMITTED = 1, + /** + * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome + * passes the group policy's decision policy. + */ + PROPOSAL_STATUS_ACCEPTED = 2, + /** + * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome + * is rejected by the group policy's decision policy. + */ + PROPOSAL_STATUS_REJECTED = 3, + /** + * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the + * final tally. + */ + PROPOSAL_STATUS_ABORTED = 4, + /** + * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. + * When this happens the final status is Withdrawn. + */ + PROPOSAL_STATUS_WITHDRAWN = 5, + UNRECOGNIZED = -1, +} +export const ProposalStatusSDKType = ProposalStatus; +export const ProposalStatusAmino = ProposalStatus; +export function proposalStatusFromJSON(object: any): ProposalStatus { + switch (object) { + case 0: + case "PROPOSAL_STATUS_UNSPECIFIED": + return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; + case 1: + case "PROPOSAL_STATUS_SUBMITTED": + return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; + case 2: + case "PROPOSAL_STATUS_ACCEPTED": + return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; + case 3: + case "PROPOSAL_STATUS_REJECTED": + return ProposalStatus.PROPOSAL_STATUS_REJECTED; + case 4: + case "PROPOSAL_STATUS_ABORTED": + return ProposalStatus.PROPOSAL_STATUS_ABORTED; + case 5: + case "PROPOSAL_STATUS_WITHDRAWN": + return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; + case -1: + case "UNRECOGNIZED": + default: + return ProposalStatus.UNRECOGNIZED; + } +} +export function proposalStatusToJSON(object: ProposalStatus): string { + switch (object) { + case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: + return "PROPOSAL_STATUS_UNSPECIFIED"; + case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: + return "PROPOSAL_STATUS_SUBMITTED"; + case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: + return "PROPOSAL_STATUS_ACCEPTED"; + case ProposalStatus.PROPOSAL_STATUS_REJECTED: + return "PROPOSAL_STATUS_REJECTED"; + case ProposalStatus.PROPOSAL_STATUS_ABORTED: + return "PROPOSAL_STATUS_ABORTED"; + case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: + return "PROPOSAL_STATUS_WITHDRAWN"; + case ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ProposalExecutorResult defines types of proposal executor results. */ +export enum ProposalExecutorResult { + /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ + PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, + /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ + PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, + /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ + PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, + /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ + PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, + UNRECOGNIZED = -1, +} +export const ProposalExecutorResultSDKType = ProposalExecutorResult; +export const ProposalExecutorResultAmino = ProposalExecutorResult; +export function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult { + switch (object) { + case 0: + case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; + case 1: + case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; + case 2: + case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; + case 3: + case "PROPOSAL_EXECUTOR_RESULT_FAILURE": + return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; + case -1: + case "UNRECOGNIZED": + default: + return ProposalExecutorResult.UNRECOGNIZED; + } +} +export function proposalExecutorResultToJSON(object: ProposalExecutorResult): string { + switch (object) { + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: + return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: + return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: + return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; + case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: + return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; + case ProposalExecutorResult.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface Member { + /** address is the member's account address. */ + address: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata: string; + /** added_at is a timestamp specifying when a member was added. */ + addedAt: Date; +} +export interface MemberProtoMsg { + typeUrl: "/cosmos.group.v1.Member"; + value: Uint8Array; +} +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface MemberAmino { + /** address is the member's account address. */ + address?: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight?: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata?: string; + /** added_at is a timestamp specifying when a member was added. */ + added_at?: string; +} +export interface MemberAminoMsg { + type: "cosmos-sdk/Member"; + value: MemberAmino; +} +/** + * Member represents a group member with an account address, + * non-zero weight, metadata and added_at timestamp. + */ +export interface MemberSDKType { + address: string; + weight: string; + metadata: string; + added_at: Date; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequest { + /** address is the member's account address. */ + address: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata: string; +} +export interface MemberRequestProtoMsg { + typeUrl: "/cosmos.group.v1.MemberRequest"; + value: Uint8Array; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequestAmino { + /** address is the member's account address. */ + address?: string; + /** weight is the member's voting weight that should be greater than 0. */ + weight?: string; + /** metadata is any arbitrary metadata attached to the member. */ + metadata?: string; +} +export interface MemberRequestAminoMsg { + type: "cosmos-sdk/MemberRequest"; + value: MemberRequestAmino; +} +/** + * MemberRequest represents a group member to be used in Msg server requests. + * Contrary to `Member`, it doesn't have any `added_at` field + * since this field cannot be set as part of requests. + */ +export interface MemberRequestSDKType { + address: string; + weight: string; + metadata: string; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicy { + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; + /** + * threshold is the minimum weighted sum of `YES` votes that must be met or + * exceeded for a proposal to succeed. + */ + threshold: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindows; +} +export interface ThresholdDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; + value: Uint8Array; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicyAmino { + /** + * threshold is the minimum weighted sum of `YES` votes that must be met or + * exceeded for a proposal to succeed. + */ + threshold?: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindowsAmino; +} +export interface ThresholdDecisionPolicyAminoMsg { + type: "cosmos-sdk/ThresholdDecisionPolicy"; + value: ThresholdDecisionPolicyAmino; +} +/** + * ThresholdDecisionPolicy is a decision policy where a proposal passes when it + * satisfies the two following conditions: + * 1. The sum of all `YES` voters' weights is greater or equal than the defined + * `threshold`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface ThresholdDecisionPolicySDKType { + $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; + threshold: string; + windows?: DecisionPolicyWindowsSDKType; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicy { + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; + /** + * percentage is the minimum percentage the weighted sum of `YES` votes must + * meet for a proposal to succeed. + */ + percentage: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindows; +} +export interface PercentageDecisionPolicyProtoMsg { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; + value: Uint8Array; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicyAmino { + /** + * percentage is the minimum percentage the weighted sum of `YES` votes must + * meet for a proposal to succeed. + */ + percentage?: string; + /** windows defines the different windows for voting and execution. */ + windows?: DecisionPolicyWindowsAmino; +} +export interface PercentageDecisionPolicyAminoMsg { + type: "cosmos-sdk/PercentageDecisionPolicy"; + value: PercentageDecisionPolicyAmino; +} +/** + * PercentageDecisionPolicy is a decision policy where a proposal passes when + * it satisfies the two following conditions: + * 1. The percentage of all `YES` voters' weights out of the total group weight + * is greater or equal than the given `percentage`. + * 2. The voting and execution periods of the proposal respect the parameters + * given by `windows`. + */ +export interface PercentageDecisionPolicySDKType { + $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; + percentage: string; + windows?: DecisionPolicyWindowsSDKType; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindows { + /** + * voting_period is the duration from submission of a proposal to the end of voting period + * Within this times votes can be submitted with MsgVote. + */ + votingPeriod: Duration; + /** + * min_execution_period is the minimum duration after the proposal submission + * where members can start sending MsgExec. This means that the window for + * sending a MsgExec transaction is: + * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + * where max_execution_period is a app-specific config, defined in the keeper. + * If not set, min_execution_period will default to 0. + * + * Please make sure to set a `min_execution_period` that is smaller than + * `voting_period + max_execution_period`, or else the above execution window + * is empty, meaning that all proposals created with this decision policy + * won't be able to be executed. + */ + minExecutionPeriod: Duration; +} +export interface DecisionPolicyWindowsProtoMsg { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; + value: Uint8Array; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindowsAmino { + /** + * voting_period is the duration from submission of a proposal to the end of voting period + * Within this times votes can be submitted with MsgVote. + */ + voting_period?: DurationAmino; + /** + * min_execution_period is the minimum duration after the proposal submission + * where members can start sending MsgExec. This means that the window for + * sending a MsgExec transaction is: + * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` + * where max_execution_period is a app-specific config, defined in the keeper. + * If not set, min_execution_period will default to 0. + * + * Please make sure to set a `min_execution_period` that is smaller than + * `voting_period + max_execution_period`, or else the above execution window + * is empty, meaning that all proposals created with this decision policy + * won't be able to be executed. + */ + min_execution_period?: DurationAmino; +} +export interface DecisionPolicyWindowsAminoMsg { + type: "cosmos-sdk/DecisionPolicyWindows"; + value: DecisionPolicyWindowsAmino; +} +/** DecisionPolicyWindows defines the different windows for voting and execution. */ +export interface DecisionPolicyWindowsSDKType { + voting_period: DurationSDKType; + min_execution_period: DurationSDKType; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfo { + /** id is the unique ID of the group. */ + id: bigint; + /** admin is the account address of the group's admin. */ + admin: string; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata: string; + /** + * version is used to track changes to a group's membership structure that + * would break existing proposals. Whenever any members weight is changed, + * or any member is added or removed this version is incremented and will + * cause proposals based on older versions of this group to fail + */ + version: bigint; + /** total_weight is the sum of the group members' weights. */ + totalWeight: string; + /** created_at is a timestamp specifying when a group was created. */ + createdAt: Date; +} +export interface GroupInfoProtoMsg { + typeUrl: "/cosmos.group.v1.GroupInfo"; + value: Uint8Array; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfoAmino { + /** id is the unique ID of the group. */ + id?: string; + /** admin is the account address of the group's admin. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the group. */ + metadata?: string; + /** + * version is used to track changes to a group's membership structure that + * would break existing proposals. Whenever any members weight is changed, + * or any member is added or removed this version is incremented and will + * cause proposals based on older versions of this group to fail + */ + version?: string; + /** total_weight is the sum of the group members' weights. */ + total_weight?: string; + /** created_at is a timestamp specifying when a group was created. */ + created_at?: string; +} +export interface GroupInfoAminoMsg { + type: "cosmos-sdk/GroupInfo"; + value: GroupInfoAmino; +} +/** GroupInfo represents the high-level on-chain information for a group. */ +export interface GroupInfoSDKType { + id: bigint; + admin: string; + metadata: string; + version: bigint; + total_weight: string; + created_at: Date; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMember { + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** member is the member data. */ + member?: Member; +} +export interface GroupMemberProtoMsg { + typeUrl: "/cosmos.group.v1.GroupMember"; + value: Uint8Array; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMemberAmino { + /** group_id is the unique ID of the group. */ + group_id?: string; + /** member is the member data. */ + member?: MemberAmino; +} +export interface GroupMemberAminoMsg { + type: "cosmos-sdk/GroupMember"; + value: GroupMemberAmino; +} +/** GroupMember represents the relationship between a group and a member. */ +export interface GroupMemberSDKType { + group_id: bigint; + member?: MemberSDKType; +} +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfo { + /** address is the account address of group policy. */ + address: string; + /** group_id is the unique ID of the group. */ + groupId: bigint; + /** admin is the account address of the group admin. */ + admin: string; + /** metadata is any arbitrary metadata to attached to the group policy. */ + metadata: string; + /** + * version is used to track changes to a group's GroupPolicyInfo structure that + * would create a different result on a running proposal. + */ + version: bigint; + /** decision_policy specifies the group policy's decision policy. */ + decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; + /** created_at is a timestamp specifying when a group policy was created. */ + createdAt: Date; +} +export interface GroupPolicyInfoProtoMsg { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; + value: Uint8Array; +} +export type GroupPolicyInfoEncoded = Omit & { + /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; +}; +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfoAmino { + /** address is the account address of group policy. */ + address?: string; + /** group_id is the unique ID of the group. */ + group_id?: string; + /** admin is the account address of the group admin. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the group policy. */ + metadata?: string; + /** + * version is used to track changes to a group's GroupPolicyInfo structure that + * would create a different result on a running proposal. + */ + version?: string; + /** decision_policy specifies the group policy's decision policy. */ + decision_policy?: AnyAmino; + /** created_at is a timestamp specifying when a group policy was created. */ + created_at?: string; +} +export interface GroupPolicyInfoAminoMsg { + type: "cosmos-sdk/GroupPolicyInfo"; + value: GroupPolicyInfoAmino; +} +/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ +export interface GroupPolicyInfoSDKType { + address: string; + group_id: bigint; + admin: string; + metadata: string; + version: bigint; + decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; + created_at: Date; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface Proposal { + /** id is the unique id of the proposal. */ + id: bigint; + /** group_policy_address is the account address of group policy. */ + groupPolicyAddress: string; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata: string; + /** proposers are the account addresses of the proposers. */ + proposers: string[]; + /** submit_time is a timestamp specifying when a proposal was submitted. */ + submitTime: Date; + /** + * group_version tracks the version of the group at proposal submission. + * This field is here for informational purposes only. + */ + groupVersion: bigint; + /** + * group_policy_version tracks the version of the group policy at proposal submission. + * When a decision policy is changed, existing proposals from previous policy + * versions will become invalid with the `ABORTED` status. + * This field is here for informational purposes only. + */ + groupPolicyVersion: bigint; + /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ + status: ProposalStatus; + /** + * final_tally_result contains the sums of all weighted votes for this + * proposal for each vote option. It is empty at submission, and only + * populated after tallying, at voting period end or at proposal execution, + * whichever happens first. + */ + finalTallyResult: TallyResult; + /** + * voting_period_end is the timestamp before which voting must be done. + * Unless a successfull MsgExec is called before (to execute a proposal whose + * tally is successful before the voting period ends), tallying will be done + * at this point, and the `final_tally_result`and `status` fields will be + * accordingly updated. + */ + votingPeriodEnd: Date; + /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ + executorResult: ProposalExecutorResult; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages: Any[]; +} +export interface ProposalProtoMsg { + typeUrl: "/cosmos.group.v1.Proposal"; + value: Uint8Array; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface ProposalAmino { + /** id is the unique id of the proposal. */ + id?: string; + /** group_policy_address is the account address of group policy. */ + group_policy_address?: string; + /** metadata is any arbitrary metadata to attached to the proposal. */ + metadata?: string; + /** proposers are the account addresses of the proposers. */ + proposers?: string[]; + /** submit_time is a timestamp specifying when a proposal was submitted. */ + submit_time?: string; + /** + * group_version tracks the version of the group at proposal submission. + * This field is here for informational purposes only. + */ + group_version?: string; + /** + * group_policy_version tracks the version of the group policy at proposal submission. + * When a decision policy is changed, existing proposals from previous policy + * versions will become invalid with the `ABORTED` status. + * This field is here for informational purposes only. + */ + group_policy_version?: string; + /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ + status?: ProposalStatus; + /** + * final_tally_result contains the sums of all weighted votes for this + * proposal for each vote option. It is empty at submission, and only + * populated after tallying, at voting period end or at proposal execution, + * whichever happens first. + */ + final_tally_result?: TallyResultAmino; + /** + * voting_period_end is the timestamp before which voting must be done. + * Unless a successfull MsgExec is called before (to execute a proposal whose + * tally is successful before the voting period ends), tallying will be done + * at this point, and the `final_tally_result`and `status` fields will be + * accordingly updated. + */ + voting_period_end?: string; + /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ + executor_result?: ProposalExecutorResult; + /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ + messages?: AnyAmino[]; +} +export interface ProposalAminoMsg { + type: "cosmos-sdk/Proposal"; + value: ProposalAmino; +} +/** + * Proposal defines a group proposal. Any member of a group can submit a proposal + * for a group policy to decide upon. + * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal + * passes as well as some optional metadata associated with the proposal. + */ +export interface ProposalSDKType { + id: bigint; + group_policy_address: string; + metadata: string; + proposers: string[]; + submit_time: Date; + group_version: bigint; + group_policy_version: bigint; + status: ProposalStatus; + final_tally_result: TallyResultSDKType; + voting_period_end: Date; + executor_result: ProposalExecutorResult; + messages: AnySDKType[]; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResult { + /** yes_count is the weighted sum of yes votes. */ + yesCount: string; + /** abstain_count is the weighted sum of abstainers. */ + abstainCount: string; + /** no_count is the weighted sum of no votes. */ + noCount: string; + /** no_with_veto_count is the weighted sum of veto. */ + noWithVetoCount: string; +} +export interface TallyResultProtoMsg { + typeUrl: "/cosmos.group.v1.TallyResult"; + value: Uint8Array; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResultAmino { + /** yes_count is the weighted sum of yes votes. */ + yes_count?: string; + /** abstain_count is the weighted sum of abstainers. */ + abstain_count?: string; + /** no_count is the weighted sum of no votes. */ + no_count?: string; + /** no_with_veto_count is the weighted sum of veto. */ + no_with_veto_count?: string; +} +export interface TallyResultAminoMsg { + type: "cosmos-sdk/TallyResult"; + value: TallyResultAmino; +} +/** TallyResult represents the sum of weighted votes for each vote option. */ +export interface TallyResultSDKType { + yes_count: string; + abstain_count: string; + no_count: string; + no_with_veto_count: string; +} +/** Vote represents a vote for a proposal. */ +export interface Vote { + /** proposal is the unique ID of the proposal. */ + proposalId: bigint; + /** voter is the account address of the voter. */ + voter: string; + /** option is the voter's choice on the proposal. */ + option: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata: string; + /** submit_time is the timestamp when the vote was submitted. */ + submitTime: Date; +} +export interface VoteProtoMsg { + typeUrl: "/cosmos.group.v1.Vote"; + value: Uint8Array; +} +/** Vote represents a vote for a proposal. */ +export interface VoteAmino { + /** proposal is the unique ID of the proposal. */ + proposal_id?: string; + /** voter is the account address of the voter. */ + voter?: string; + /** option is the voter's choice on the proposal. */ + option?: VoteOption; + /** metadata is any arbitrary metadata to attached to the vote. */ + metadata?: string; + /** submit_time is the timestamp when the vote was submitted. */ + submit_time?: string; +} +export interface VoteAminoMsg { + type: "cosmos-sdk/Vote"; + value: VoteAmino; +} +/** Vote represents a vote for a proposal. */ +export interface VoteSDKType { + proposal_id: bigint; + voter: string; + option: VoteOption; + metadata: string; + submit_time: Date; +} +function createBaseMember(): Member { + return { + address: "", + weight: "", + metadata: "", + addedAt: new Date() + }; +} +export const Member = { + typeUrl: "/cosmos.group.v1.Member", + encode(message: Member, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.addedAt !== undefined) { + Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Member { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Member { + const message = createBaseMember(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + message.addedAt = object.addedAt ?? undefined; + return message; + }, + fromAmino(object: MemberAmino): Member { + const message = createBaseMember(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.added_at !== undefined && object.added_at !== null) { + message.addedAt = fromTimestamp(Timestamp.fromAmino(object.added_at)); + } + return message; + }, + toAmino(message: Member): MemberAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.added_at = message.addedAt ? Timestamp.toAmino(toTimestamp(message.addedAt)) : undefined; + return obj; + }, + fromAminoMsg(object: MemberAminoMsg): Member { + return Member.fromAmino(object.value); + }, + toAminoMsg(message: Member): MemberAminoMsg { + return { + type: "cosmos-sdk/Member", + value: Member.toAmino(message) + }; + }, + fromProtoMsg(message: MemberProtoMsg): Member { + return Member.decode(message.value); + }, + toProto(message: Member): Uint8Array { + return Member.encode(message).finish(); + }, + toProtoMsg(message: Member): MemberProtoMsg { + return { + typeUrl: "/cosmos.group.v1.Member", + value: Member.encode(message).finish() + }; + } +}; +function createBaseMemberRequest(): MemberRequest { + return { + address: "", + weight: "", + metadata: "" + }; +} +export const MemberRequest = { + typeUrl: "/cosmos.group.v1.MemberRequest", + encode(message: MemberRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.weight !== "") { + writer.uint32(18).string(message.weight); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemberRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.weight = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MemberRequest { + const message = createBaseMemberRequest(); + message.address = object.address ?? ""; + message.weight = object.weight ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MemberRequestAmino): MemberRequest { + const message = createBaseMemberRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.weight !== undefined && object.weight !== null) { + message.weight = object.weight; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MemberRequest): MemberRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.weight = message.weight === "" ? undefined : message.weight; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest { + return MemberRequest.fromAmino(object.value); + }, + toAminoMsg(message: MemberRequest): MemberRequestAminoMsg { + return { + type: "cosmos-sdk/MemberRequest", + value: MemberRequest.toAmino(message) + }; + }, + fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest { + return MemberRequest.decode(message.value); + }, + toProto(message: MemberRequest): Uint8Array { + return MemberRequest.encode(message).finish(); + }, + toProtoMsg(message: MemberRequest): MemberRequestProtoMsg { + return { + typeUrl: "/cosmos.group.v1.MemberRequest", + value: MemberRequest.encode(message).finish() + }; + } +}; +function createBaseThresholdDecisionPolicy(): ThresholdDecisionPolicy { + return { + $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + threshold: "", + windows: undefined + }; +} +export const ThresholdDecisionPolicy = { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + encode(message: ThresholdDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.threshold !== "") { + writer.uint32(10).string(message.threshold); + } + if (message.windows !== undefined) { + DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseThresholdDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threshold = reader.string(); + break; + case 2: + message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ThresholdDecisionPolicy { + const message = createBaseThresholdDecisionPolicy(); + message.threshold = object.threshold ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy { + const message = createBaseThresholdDecisionPolicy(); + if (object.threshold !== undefined && object.threshold !== null) { + message.threshold = object.threshold; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino { + const obj: any = {}; + obj.threshold = message.threshold === "" ? undefined : message.threshold; + obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy { + return ThresholdDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg { + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy { + return ThresholdDecisionPolicy.decode(message.value); + }, + toProto(message: ThresholdDecisionPolicy): Uint8Array { + return ThresholdDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(message).finish() + }; + } +}; +function createBasePercentageDecisionPolicy(): PercentageDecisionPolicy { + return { + $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + percentage: "", + windows: undefined + }; +} +export const PercentageDecisionPolicy = { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + encode(message: PercentageDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.percentage !== "") { + writer.uint32(10).string(message.percentage); + } + if (message.windows !== undefined) { + DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePercentageDecisionPolicy(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.percentage = reader.string(); + break; + case 2: + message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PercentageDecisionPolicy { + const message = createBasePercentageDecisionPolicy(); + message.percentage = object.percentage ?? ""; + message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; + return message; + }, + fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy { + const message = createBasePercentageDecisionPolicy(); + if (object.percentage !== undefined && object.percentage !== null) { + message.percentage = object.percentage; + } + if (object.windows !== undefined && object.windows !== null) { + message.windows = DecisionPolicyWindows.fromAmino(object.windows); + } + return message; + }, + toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino { + const obj: any = {}; + obj.percentage = message.percentage === "" ? undefined : message.percentage; + obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; + return obj; + }, + fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy { + return PercentageDecisionPolicy.fromAmino(object.value); + }, + toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg { + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(message) + }; + }, + fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy { + return PercentageDecisionPolicy.decode(message.value); + }, + toProto(message: PercentageDecisionPolicy): Uint8Array { + return PercentageDecisionPolicy.encode(message).finish(); + }, + toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg { + return { + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(message).finish() + }; + } +}; +function createBaseDecisionPolicyWindows(): DecisionPolicyWindows { + return { + votingPeriod: Duration.fromPartial({}), + minExecutionPeriod: Duration.fromPartial({}) + }; +} +export const DecisionPolicyWindows = { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + encode(message: DecisionPolicyWindows, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.votingPeriod !== undefined) { + Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); + } + if (message.minExecutionPeriod !== undefined) { + Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecisionPolicyWindows(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.votingPeriod = Duration.decode(reader, reader.uint32()); + break; + case 2: + message.minExecutionPeriod = Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DecisionPolicyWindows { + const message = createBaseDecisionPolicyWindows(); + message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; + message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined; + return message; + }, + fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows { + const message = createBaseDecisionPolicyWindows(); + if (object.voting_period !== undefined && object.voting_period !== null) { + message.votingPeriod = Duration.fromAmino(object.voting_period); + } + if (object.min_execution_period !== undefined && object.min_execution_period !== null) { + message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period); + } + return message; + }, + toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino { + const obj: any = {}; + obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; + obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : undefined; + return obj; + }, + fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows { + return DecisionPolicyWindows.fromAmino(object.value); + }, + toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg { + return { + type: "cosmos-sdk/DecisionPolicyWindows", + value: DecisionPolicyWindows.toAmino(message) + }; + }, + fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows { + return DecisionPolicyWindows.decode(message.value); + }, + toProto(message: DecisionPolicyWindows): Uint8Array { + return DecisionPolicyWindows.encode(message).finish(); + }, + toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg { + return { + typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", + value: DecisionPolicyWindows.encode(message).finish() + }; + } +}; +function createBaseGroupInfo(): GroupInfo { + return { + id: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + totalWeight: "", + createdAt: new Date() + }; +} +export const GroupInfo = { + typeUrl: "/cosmos.group.v1.GroupInfo", + encode(message: GroupInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(32).uint64(message.version); + } + if (message.totalWeight !== "") { + writer.uint32(42).string(message.totalWeight); + } + if (message.createdAt !== undefined) { + Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.version = reader.uint64(); + break; + case 5: + message.totalWeight = reader.string(); + break; + case 6: + message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GroupInfo { + const message = createBaseGroupInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.totalWeight = object.totalWeight ?? ""; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object: GroupInfoAmino): GroupInfo { + const message = createBaseGroupInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.total_weight !== undefined && object.total_weight !== null) { + message.totalWeight = object.total_weight; + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message: GroupInfo): GroupInfoAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; + obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo { + return GroupInfo.fromAmino(object.value); + }, + toAminoMsg(message: GroupInfo): GroupInfoAminoMsg { + return { + type: "cosmos-sdk/GroupInfo", + value: GroupInfo.toAmino(message) + }; + }, + fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo { + return GroupInfo.decode(message.value); + }, + toProto(message: GroupInfo): Uint8Array { + return GroupInfo.encode(message).finish(); + }, + toProtoMsg(message: GroupInfo): GroupInfoProtoMsg { + return { + typeUrl: "/cosmos.group.v1.GroupInfo", + value: GroupInfo.encode(message).finish() + }; + } +}; +function createBaseGroupMember(): GroupMember { + return { + groupId: BigInt(0), + member: undefined + }; +} +export const GroupMember = { + typeUrl: "/cosmos.group.v1.GroupMember", + encode(message: GroupMember, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.groupId !== BigInt(0)) { + writer.uint32(8).uint64(message.groupId); + } + if (message.member !== undefined) { + Member.encode(message.member, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GroupMember { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupMember(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.groupId = reader.uint64(); + break; + case 2: + message.member = Member.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GroupMember { + const message = createBaseGroupMember(); + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined; + return message; + }, + fromAmino(object: GroupMemberAmino): GroupMember { + const message = createBaseGroupMember(); + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.member !== undefined && object.member !== null) { + message.member = Member.fromAmino(object.member); + } + return message; + }, + toAmino(message: GroupMember): GroupMemberAmino { + const obj: any = {}; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.member = message.member ? Member.toAmino(message.member) : undefined; + return obj; + }, + fromAminoMsg(object: GroupMemberAminoMsg): GroupMember { + return GroupMember.fromAmino(object.value); + }, + toAminoMsg(message: GroupMember): GroupMemberAminoMsg { + return { + type: "cosmos-sdk/GroupMember", + value: GroupMember.toAmino(message) + }; + }, + fromProtoMsg(message: GroupMemberProtoMsg): GroupMember { + return GroupMember.decode(message.value); + }, + toProto(message: GroupMember): Uint8Array { + return GroupMember.encode(message).finish(); + }, + toProtoMsg(message: GroupMember): GroupMemberProtoMsg { + return { + typeUrl: "/cosmos.group.v1.GroupMember", + value: GroupMember.encode(message).finish() + }; + } +}; +function createBaseGroupPolicyInfo(): GroupPolicyInfo { + return { + address: "", + groupId: BigInt(0), + admin: "", + metadata: "", + version: BigInt(0), + decisionPolicy: undefined, + createdAt: new Date() + }; +} +export const GroupPolicyInfo = { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + encode(message: GroupPolicyInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.groupId !== BigInt(0)) { + writer.uint32(16).uint64(message.groupId); + } + if (message.admin !== "") { + writer.uint32(26).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.version !== BigInt(0)) { + writer.uint32(40).uint64(message.version); + } + if (message.decisionPolicy !== undefined) { + Any.encode((message.decisionPolicy as Any), writer.uint32(50).fork()).ldelim(); + } + if (message.createdAt !== undefined) { + Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGroupPolicyInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.groupId = reader.uint64(); + break; + case 3: + message.admin = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.version = reader.uint64(); + break; + case 6: + message.decisionPolicy = (DecisionPolicy_InterfaceDecoder(reader) as Any); + break; + case 7: + message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GroupPolicyInfo { + const message = createBaseGroupPolicyInfo(); + message.address = object.address ?? ""; + message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; + message.createdAt = object.createdAt ?? undefined; + return message; + }, + fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo { + const message = createBaseGroupPolicyInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.group_id !== undefined && object.group_id !== null) { + message.groupId = BigInt(object.group_id); + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + if (object.decision_policy !== undefined && object.decision_policy !== null) { + message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); + } + if (object.created_at !== undefined && object.created_at !== null) { + message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); + } + return message; + }, + toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino((message.decisionPolicy as Any)) : undefined; + obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; + return obj; + }, + fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo { + return GroupPolicyInfo.fromAmino(object.value); + }, + toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg { + return { + type: "cosmos-sdk/GroupPolicyInfo", + value: GroupPolicyInfo.toAmino(message) + }; + }, + fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo { + return GroupPolicyInfo.decode(message.value); + }, + toProto(message: GroupPolicyInfo): Uint8Array { + return GroupPolicyInfo.encode(message).finish(); + }, + toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg { + return { + typeUrl: "/cosmos.group.v1.GroupPolicyInfo", + value: GroupPolicyInfo.encode(message).finish() + }; + } +}; +function createBaseProposal(): Proposal { + return { + id: BigInt(0), + groupPolicyAddress: "", + metadata: "", + proposers: [], + submitTime: new Date(), + groupVersion: BigInt(0), + groupPolicyVersion: BigInt(0), + status: 0, + finalTallyResult: TallyResult.fromPartial({}), + votingPeriodEnd: new Date(), + executorResult: 0, + messages: [] + }; +} +export const Proposal = { + typeUrl: "/cosmos.group.v1.Proposal", + encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.groupPolicyAddress !== "") { + writer.uint32(18).string(message.groupPolicyAddress); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + for (const v of message.proposers) { + writer.uint32(34).string(v!); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + if (message.groupVersion !== BigInt(0)) { + writer.uint32(48).uint64(message.groupVersion); + } + if (message.groupPolicyVersion !== BigInt(0)) { + writer.uint32(56).uint64(message.groupPolicyVersion); + } + if (message.status !== 0) { + writer.uint32(64).int32(message.status); + } + if (message.finalTallyResult !== undefined) { + TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); + } + if (message.votingPeriodEnd !== undefined) { + Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); + } + if (message.executorResult !== 0) { + writer.uint32(88).int32(message.executorResult); + } + for (const v of message.messages) { + Any.encode(v!, writer.uint32(98).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Proposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.groupPolicyAddress = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.proposers.push(reader.string()); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.groupVersion = reader.uint64(); + break; + case 7: + message.groupPolicyVersion = reader.uint64(); + break; + case 8: + message.status = (reader.int32() as any); + break; + case 9: + message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); + break; + case 10: + message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 11: + message.executorResult = (reader.int32() as any); + break; + case 12: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Proposal { + const message = createBaseProposal(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.groupPolicyAddress = object.groupPolicyAddress ?? ""; + message.metadata = object.metadata ?? ""; + message.proposers = object.proposers?.map(e => e) || []; + message.submitTime = object.submitTime ?? undefined; + message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); + message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); + message.status = object.status ?? 0; + message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; + message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; + message.executorResult = object.executorResult ?? 0; + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ProposalAmino): Proposal { + const message = createBaseProposal(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.group_policy_address !== undefined && object.group_policy_address !== null) { + message.groupPolicyAddress = object.group_policy_address; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + message.proposers = object.proposers?.map(e => e) || []; + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + if (object.group_version !== undefined && object.group_version !== null) { + message.groupVersion = BigInt(object.group_version); + } + if (object.group_policy_version !== undefined && object.group_policy_version !== null) { + message.groupPolicyVersion = BigInt(object.group_policy_version); + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.final_tally_result !== undefined && object.final_tally_result !== null) { + message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); + } + if (object.voting_period_end !== undefined && object.voting_period_end !== null) { + message.votingPeriodEnd = fromTimestamp(Timestamp.fromAmino(object.voting_period_end)); + } + if (object.executor_result !== undefined && object.executor_result !== null) { + message.executorResult = object.executor_result; + } + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: Proposal): ProposalAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + if (message.proposers) { + obj.proposers = message.proposers.map(e => e); + } else { + obj.proposers = message.proposers; + } + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; + obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; + obj.status = message.status === 0 ? undefined : message.status; + obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; + obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(toTimestamp(message.votingPeriodEnd)) : undefined; + obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.messages = message.messages; + } + return obj; + }, + fromAminoMsg(object: ProposalAminoMsg): Proposal { + return Proposal.fromAmino(object.value); + }, + toAminoMsg(message: Proposal): ProposalAminoMsg { + return { + type: "cosmos-sdk/Proposal", + value: Proposal.toAmino(message) + }; + }, + fromProtoMsg(message: ProposalProtoMsg): Proposal { + return Proposal.decode(message.value); + }, + toProto(message: Proposal): Uint8Array { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message: Proposal): ProposalProtoMsg { + return { + typeUrl: "/cosmos.group.v1.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseTallyResult(): TallyResult { + return { + yesCount: "", + abstainCount: "", + noCount: "", + noWithVetoCount: "" + }; +} +export const TallyResult = { + typeUrl: "/cosmos.group.v1.TallyResult", + encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.yesCount !== "") { + writer.uint32(10).string(message.yesCount); + } + if (message.abstainCount !== "") { + writer.uint32(18).string(message.abstainCount); + } + if (message.noCount !== "") { + writer.uint32(26).string(message.noCount); + } + if (message.noWithVetoCount !== "") { + writer.uint32(34).string(message.noWithVetoCount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TallyResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTallyResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.yesCount = reader.string(); + break; + case 2: + message.abstainCount = reader.string(); + break; + case 3: + message.noCount = reader.string(); + break; + case 4: + message.noWithVetoCount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TallyResult { + const message = createBaseTallyResult(); + message.yesCount = object.yesCount ?? ""; + message.abstainCount = object.abstainCount ?? ""; + message.noCount = object.noCount ?? ""; + message.noWithVetoCount = object.noWithVetoCount ?? ""; + return message; + }, + fromAmino(object: TallyResultAmino): TallyResult { + const message = createBaseTallyResult(); + if (object.yes_count !== undefined && object.yes_count !== null) { + message.yesCount = object.yes_count; + } + if (object.abstain_count !== undefined && object.abstain_count !== null) { + message.abstainCount = object.abstain_count; + } + if (object.no_count !== undefined && object.no_count !== null) { + message.noCount = object.no_count; + } + if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { + message.noWithVetoCount = object.no_with_veto_count; + } + return message; + }, + toAmino(message: TallyResult): TallyResultAmino { + const obj: any = {}; + obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; + obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; + obj.no_count = message.noCount === "" ? undefined : message.noCount; + obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; + return obj; + }, + fromAminoMsg(object: TallyResultAminoMsg): TallyResult { + return TallyResult.fromAmino(object.value); + }, + toAminoMsg(message: TallyResult): TallyResultAminoMsg { + return { + type: "cosmos-sdk/TallyResult", + value: TallyResult.toAmino(message) + }; + }, + fromProtoMsg(message: TallyResultProtoMsg): TallyResult { + return TallyResult.decode(message.value); + }, + toProto(message: TallyResult): Uint8Array { + return TallyResult.encode(message).finish(); + }, + toProtoMsg(message: TallyResult): TallyResultProtoMsg { + return { + typeUrl: "/cosmos.group.v1.TallyResult", + value: TallyResult.encode(message).finish() + }; + } +}; +function createBaseVote(): Vote { + return { + proposalId: BigInt(0), + voter: "", + option: 0, + metadata: "", + submitTime: new Date() + }; +} +export const Vote = { + typeUrl: "/cosmos.group.v1.Vote", + encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.proposalId !== BigInt(0)) { + writer.uint32(8).uint64(message.proposalId); + } + if (message.voter !== "") { + writer.uint32(18).string(message.voter); + } + if (message.option !== 0) { + writer.uint32(24).int32(message.option); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.submitTime !== undefined) { + Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Vote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposalId = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 3: + message.option = (reader.int32() as any); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Vote { + const message = createBaseVote(); + message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); + message.voter = object.voter ?? ""; + message.option = object.option ?? 0; + message.metadata = object.metadata ?? ""; + message.submitTime = object.submitTime ?? undefined; + return message; + }, + fromAmino(object: VoteAmino): Vote { + const message = createBaseVote(); + if (object.proposal_id !== undefined && object.proposal_id !== null) { + message.proposalId = BigInt(object.proposal_id); + } + if (object.voter !== undefined && object.voter !== null) { + message.voter = object.voter; + } + if (object.option !== undefined && object.option !== null) { + message.option = object.option; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.submit_time !== undefined && object.submit_time !== null) { + message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); + } + return message; + }, + toAmino(message: Vote): VoteAmino { + const obj: any = {}; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; + return obj; + }, + fromAminoMsg(object: VoteAminoMsg): Vote { + return Vote.fromAmino(object.value); + }, + toAminoMsg(message: Vote): VoteAminoMsg { + return { + type: "cosmos-sdk/Vote", + value: Vote.toAmino(message) + }; + }, + fromProtoMsg(message: VoteProtoMsg): Vote { + return Vote.decode(message.value); + }, + toProto(message: Vote): Uint8Array { + return Vote.encode(message).finish(); + }, + toProtoMsg(message: Vote): VoteProtoMsg { + return { + typeUrl: "/cosmos.group.v1.Vote", + value: Vote.encode(message).finish() + }; + } +}; +export const DecisionPolicy_InterfaceDecoder = (input: BinaryReader | Uint8Array): ThresholdDecisionPolicy | PercentageDecisionPolicy | Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return ThresholdDecisionPolicy.decode(data.value); + case "/cosmos.group.v1.PercentageDecisionPolicy": + return PercentageDecisionPolicy.decode(data.value); + default: + return data; + } +}; +export const DecisionPolicy_FromAmino = (content: AnyAmino): Any => { + switch (content.type) { + case "cosmos-sdk/ThresholdDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() + }); + case "cosmos-sdk/PercentageDecisionPolicy": + return Any.fromPartial({ + typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", + value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() + }); + default: + return Any.fromAmino(content); + } +}; +export const DecisionPolicy_ToAmino = (content: Any) => { + switch (content.typeUrl) { + case "/cosmos.group.v1.ThresholdDecisionPolicy": + return { + type: "cosmos-sdk/ThresholdDecisionPolicy", + value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) + }; + case "/cosmos.group.v1.PercentageDecisionPolicy": + return { + type: "cosmos-sdk/PercentageDecisionPolicy", + value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) + }; + default: + return Any.toAmino(content); + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/lcd.ts b/packages/api/src/cosmos/lcd.ts new file mode 100644 index 00000000..c39cd322 --- /dev/null +++ b/packages/api/src/cosmos/lcd.ts @@ -0,0 +1,85 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ + restEndpoint +}: { + restEndpoint: string; +}) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("./auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("./authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("./bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("./base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("./distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("./feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("./gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("./gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("./group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("./mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("./params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("./staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("./tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("./upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/mint/v1beta1/genesis.ts b/packages/api/src/cosmos/mint/v1beta1/genesis.ts new file mode 100644 index 00000000..1fae0bca --- /dev/null +++ b/packages/api/src/cosmos/mint/v1beta1/genesis.ts @@ -0,0 +1,111 @@ +//@ts-nocheck +import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisState { + /** minter is a space for holding current inflation information. */ + minter: Minter; + /** params defines all the paramaters of the module. */ + params: Params; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisStateAmino { + /** minter is a space for holding current inflation information. */ + minter?: MinterAmino; + /** params defines all the paramaters of the module. */ + params?: ParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the mint module's genesis state. */ +export interface GenesisStateSDKType { + minter: MinterSDKType; + params: ParamsSDKType; +} +function createBaseGenesisState(): GenesisState { + return { + minter: Minter.fromPartial({}), + params: Params.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.minter !== undefined) { + Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minter = Minter.decode(reader, reader.uint32()); + break; + case 2: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.minter !== undefined && object.minter !== null) { + message.minter = Minter.fromAmino(object.minter); + } + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.minter = message.minter ? Minter.toAmino(message.minter) : undefined; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/mint/v1beta1/mint.ts b/packages/api/src/cosmos/mint/v1beta1/mint.ts new file mode 100644 index 00000000..c2a83473 --- /dev/null +++ b/packages/api/src/cosmos/mint/v1beta1/mint.ts @@ -0,0 +1,287 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +/** Minter represents the minting state. */ +export interface Minter { + /** current annual inflation rate */ + inflation: string; + /** current annual expected provisions */ + annualProvisions: string; +} +export interface MinterProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.Minter"; + value: Uint8Array; +} +/** Minter represents the minting state. */ +export interface MinterAmino { + /** current annual inflation rate */ + inflation?: string; + /** current annual expected provisions */ + annual_provisions?: string; +} +export interface MinterAminoMsg { + type: "cosmos-sdk/Minter"; + value: MinterAmino; +} +/** Minter represents the minting state. */ +export interface MinterSDKType { + inflation: string; + annual_provisions: string; +} +/** Params holds parameters for the mint module. */ +export interface Params { + /** type of coin to mint */ + mintDenom: string; + /** maximum annual change in inflation rate */ + inflationRateChange: string; + /** maximum inflation rate */ + inflationMax: string; + /** minimum inflation rate */ + inflationMin: string; + /** goal of percent bonded atoms */ + goalBonded: string; + /** expected blocks per year */ + blocksPerYear: bigint; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.Params"; + value: Uint8Array; +} +/** Params holds parameters for the mint module. */ +export interface ParamsAmino { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** expected blocks per year */ + blocks_per_year?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params holds parameters for the mint module. */ +export interface ParamsSDKType { + mint_denom: string; + inflation_rate_change: string; + inflation_max: string; + inflation_min: string; + goal_bonded: string; + blocks_per_year: bigint; +} +function createBaseMinter(): Minter { + return { + inflation: "", + annualProvisions: "" + }; +} +export const Minter = { + typeUrl: "/cosmos.mint.v1beta1.Minter", + encode(message: Minter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.inflation !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.inflation, 18).atomics); + } + if (message.annualProvisions !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.annualProvisions, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Minter { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMinter(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.annualProvisions = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Minter { + const message = createBaseMinter(); + message.inflation = object.inflation ?? ""; + message.annualProvisions = object.annualProvisions ?? ""; + return message; + }, + fromAmino(object: MinterAmino): Minter { + const message = createBaseMinter(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = object.inflation; + } + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = object.annual_provisions; + } + return message; + }, + toAmino(message: Minter): MinterAmino { + const obj: any = {}; + obj.inflation = message.inflation === "" ? undefined : message.inflation; + obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; + return obj; + }, + fromAminoMsg(object: MinterAminoMsg): Minter { + return Minter.fromAmino(object.value); + }, + toAminoMsg(message: Minter): MinterAminoMsg { + return { + type: "cosmos-sdk/Minter", + value: Minter.toAmino(message) + }; + }, + fromProtoMsg(message: MinterProtoMsg): Minter { + return Minter.decode(message.value); + }, + toProto(message: Minter): Uint8Array { + return Minter.encode(message).finish(); + }, + toProtoMsg(message: Minter): MinterProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.Minter", + value: Minter.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + mintDenom: "", + inflationRateChange: "", + inflationMax: "", + inflationMin: "", + goalBonded: "", + blocksPerYear: BigInt(0) + }; +} +export const Params = { + typeUrl: "/cosmos.mint.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.mintDenom !== "") { + writer.uint32(10).string(message.mintDenom); + } + if (message.inflationRateChange !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.inflationRateChange, 18).atomics); + } + if (message.inflationMax !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.inflationMax, 18).atomics); + } + if (message.inflationMin !== "") { + writer.uint32(34).string(Decimal.fromUserInput(message.inflationMin, 18).atomics); + } + if (message.goalBonded !== "") { + writer.uint32(42).string(Decimal.fromUserInput(message.goalBonded, 18).atomics); + } + if (message.blocksPerYear !== BigInt(0)) { + writer.uint32(48).uint64(message.blocksPerYear); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mintDenom = reader.string(); + break; + case 2: + message.inflationRateChange = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.inflationMax = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.inflationMin = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 5: + message.goalBonded = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 6: + message.blocksPerYear = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.mintDenom = object.mintDenom ?? ""; + message.inflationRateChange = object.inflationRateChange ?? ""; + message.inflationMax = object.inflationMax ?? ""; + message.inflationMin = object.inflationMin ?? ""; + message.goalBonded = object.goalBonded ?? ""; + message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + if (object.mint_denom !== undefined && object.mint_denom !== null) { + message.mintDenom = object.mint_denom; + } + if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { + message.inflationRateChange = object.inflation_rate_change; + } + if (object.inflation_max !== undefined && object.inflation_max !== null) { + message.inflationMax = object.inflation_max; + } + if (object.inflation_min !== undefined && object.inflation_min !== null) { + message.inflationMin = object.inflation_min; + } + if (object.goal_bonded !== undefined && object.goal_bonded !== null) { + message.goalBonded = object.goal_bonded; + } + if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { + message.blocksPerYear = BigInt(object.blocks_per_year); + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; + obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; + obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; + obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; + obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; + obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/mint/v1beta1/query.lcd.ts b/packages/api/src/cosmos/mint/v1beta1/query.lcd.ts new file mode 100644 index 00000000..cdd100d5 --- /dev/null +++ b/packages/api/src/cosmos/mint/v1beta1/query.lcd.ts @@ -0,0 +1,31 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + /* Params returns the total set of minting parameters. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `cosmos/mint/v1beta1/params`; + return await this.req.get(endpoint); + } + /* Inflation returns the current minting inflation value. */ + async inflation(_params: QueryInflationRequest = {}): Promise { + const endpoint = `cosmos/mint/v1beta1/inflation`; + return await this.req.get(endpoint); + } + /* AnnualProvisions current minting annual provisions value. */ + async annualProvisions(_params: QueryAnnualProvisionsRequest = {}): Promise { + const endpoint = `cosmos/mint/v1beta1/annual_provisions`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/mint/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/mint/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..704b5206 --- /dev/null +++ b/packages/api/src/cosmos/mint/v1beta1/query.rpc.Query.ts @@ -0,0 +1,53 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** Params returns the total set of minting parameters. */ + params(request?: QueryParamsRequest): Promise; + /** Inflation returns the current minting inflation value. */ + inflation(request?: QueryInflationRequest): Promise; + /** AnnualProvisions current minting annual provisions value. */ + annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.inflation = this.inflation.bind(this); + this.annualProvisions = this.annualProvisions.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + inflation(request: QueryInflationRequest = {}): Promise { + const data = QueryInflationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); + return promise.then(data => QueryInflationResponse.decode(new BinaryReader(data))); + } + annualProvisions(request: QueryAnnualProvisionsRequest = {}): Promise { + const data = QueryAnnualProvisionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); + return promise.then(data => QueryAnnualProvisionsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + inflation(request?: QueryInflationRequest): Promise { + return queryService.inflation(request); + }, + annualProvisions(request?: QueryAnnualProvisionsRequest): Promise { + return queryService.annualProvisions(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/mint/v1beta1/query.ts b/packages/api/src/cosmos/mint/v1beta1/query.ts new file mode 100644 index 00000000..65abe54a --- /dev/null +++ b/packages/api/src/cosmos/mint/v1beta1/query.ts @@ -0,0 +1,514 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType } from "./mint"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequest {} +export interface QueryInflationRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; + value: Uint8Array; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequestAmino {} +export interface QueryInflationRequestAminoMsg { + type: "cosmos-sdk/QueryInflationRequest"; + value: QueryInflationRequestAmino; +} +/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ +export interface QueryInflationRequestSDKType {} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponse { + /** inflation is the current minting inflation value. */ + inflation: Uint8Array; +} +export interface QueryInflationResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; + value: Uint8Array; +} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponseAmino { + /** inflation is the current minting inflation value. */ + inflation?: string; +} +export interface QueryInflationResponseAminoMsg { + type: "cosmos-sdk/QueryInflationResponse"; + value: QueryInflationResponseAmino; +} +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface QueryInflationResponseSDKType { + inflation: Uint8Array; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequest {} +export interface QueryAnnualProvisionsRequestProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; + value: Uint8Array; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequestAmino {} +export interface QueryAnnualProvisionsRequestAminoMsg { + type: "cosmos-sdk/QueryAnnualProvisionsRequest"; + value: QueryAnnualProvisionsRequestAmino; +} +/** + * QueryAnnualProvisionsRequest is the request type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsRequestSDKType {} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponse { + /** annual_provisions is the current minting annual provisions value. */ + annualProvisions: Uint8Array; +} +export interface QueryAnnualProvisionsResponseProtoMsg { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; + value: Uint8Array; +} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponseAmino { + /** annual_provisions is the current minting annual provisions value. */ + annual_provisions?: string; +} +export interface QueryAnnualProvisionsResponseAminoMsg { + type: "cosmos-sdk/QueryAnnualProvisionsResponse"; + value: QueryAnnualProvisionsResponseAmino; +} +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface QueryAnnualProvisionsResponseSDKType { + annual_provisions: Uint8Array; +} +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryInflationRequest(): QueryInflationRequest { + return {}; +} +export const QueryInflationRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + encode(_: QueryInflationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryInflationRequest { + const message = createBaseQueryInflationRequest(); + return message; + }, + fromAmino(_: QueryInflationRequestAmino): QueryInflationRequest { + const message = createBaseQueryInflationRequest(); + return message; + }, + toAmino(_: QueryInflationRequest): QueryInflationRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryInflationRequestAminoMsg): QueryInflationRequest { + return QueryInflationRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryInflationRequest): QueryInflationRequestAminoMsg { + return { + type: "cosmos-sdk/QueryInflationRequest", + value: QueryInflationRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryInflationRequestProtoMsg): QueryInflationRequest { + return QueryInflationRequest.decode(message.value); + }, + toProto(message: QueryInflationRequest): Uint8Array { + return QueryInflationRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", + value: QueryInflationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInflationResponse(): QueryInflationResponse { + return { + inflation: new Uint8Array() + }; +} +export const QueryInflationResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + encode(message: QueryInflationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.inflation.length !== 0) { + writer.uint32(10).bytes(message.inflation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInflationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inflation = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryInflationResponse { + const message = createBaseQueryInflationResponse(); + message.inflation = object.inflation ?? new Uint8Array(); + return message; + }, + fromAmino(object: QueryInflationResponseAmino): QueryInflationResponse { + const message = createBaseQueryInflationResponse(); + if (object.inflation !== undefined && object.inflation !== null) { + message.inflation = bytesFromBase64(object.inflation); + } + return message; + }, + toAmino(message: QueryInflationResponse): QueryInflationResponseAmino { + const obj: any = {}; + obj.inflation = message.inflation ? base64FromBytes(message.inflation) : undefined; + return obj; + }, + fromAminoMsg(object: QueryInflationResponseAminoMsg): QueryInflationResponse { + return QueryInflationResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryInflationResponse): QueryInflationResponseAminoMsg { + return { + type: "cosmos-sdk/QueryInflationResponse", + value: QueryInflationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryInflationResponseProtoMsg): QueryInflationResponse { + return QueryInflationResponse.decode(message.value); + }, + toProto(message: QueryInflationResponse): Uint8Array { + return QueryInflationResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", + value: QueryInflationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsRequest(): QueryAnnualProvisionsRequest { + return {}; +} +export const QueryAnnualProvisionsRequest = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + encode(_: QueryAnnualProvisionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryAnnualProvisionsRequest { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + fromAmino(_: QueryAnnualProvisionsRequestAmino): QueryAnnualProvisionsRequest { + const message = createBaseQueryAnnualProvisionsRequest(); + return message; + }, + toAmino(_: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryAnnualProvisionsRequestAminoMsg): QueryAnnualProvisionsRequest { + return QueryAnnualProvisionsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAnnualProvisionsRequest", + value: QueryAnnualProvisionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAnnualProvisionsRequestProtoMsg): QueryAnnualProvisionsRequest { + return QueryAnnualProvisionsRequest.decode(message.value); + }, + toProto(message: QueryAnnualProvisionsRequest): Uint8Array { + return QueryAnnualProvisionsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", + value: QueryAnnualProvisionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnnualProvisionsResponse(): QueryAnnualProvisionsResponse { + return { + annualProvisions: new Uint8Array() + }; +} +export const QueryAnnualProvisionsResponse = { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + encode(message: QueryAnnualProvisionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.annualProvisions.length !== 0) { + writer.uint32(10).bytes(message.annualProvisions); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnnualProvisionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annualProvisions = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAnnualProvisionsResponse { + const message = createBaseQueryAnnualProvisionsResponse(); + message.annualProvisions = object.annualProvisions ?? new Uint8Array(); + return message; + }, + fromAmino(object: QueryAnnualProvisionsResponseAmino): QueryAnnualProvisionsResponse { + const message = createBaseQueryAnnualProvisionsResponse(); + if (object.annual_provisions !== undefined && object.annual_provisions !== null) { + message.annualProvisions = bytesFromBase64(object.annual_provisions); + } + return message; + }, + toAmino(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAmino { + const obj: any = {}; + obj.annual_provisions = message.annualProvisions ? base64FromBytes(message.annualProvisions) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAnnualProvisionsResponseAminoMsg): QueryAnnualProvisionsResponse { + return QueryAnnualProvisionsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAnnualProvisionsResponse", + value: QueryAnnualProvisionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAnnualProvisionsResponseProtoMsg): QueryAnnualProvisionsResponse { + return QueryAnnualProvisionsResponse.decode(message.value); + }, + toProto(message: QueryAnnualProvisionsResponse): Uint8Array { + return QueryAnnualProvisionsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseProtoMsg { + return { + typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", + value: QueryAnnualProvisionsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/msg/v1/msg.ts b/packages/api/src/cosmos/msg/v1/msg.ts new file mode 100644 index 00000000..693da49f --- /dev/null +++ b/packages/api/src/cosmos/msg/v1/msg.ts @@ -0,0 +1 @@ +export {} \ No newline at end of file diff --git a/packages/api/src/cosmos/orm/module/v1alpha1/module.ts b/packages/api/src/cosmos/orm/module/v1alpha1/module.ts new file mode 100644 index 00000000..53ab3170 --- /dev/null +++ b/packages/api/src/cosmos/orm/module/v1alpha1/module.ts @@ -0,0 +1,84 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.orm.module.v1alpha1.Module"; + value: Uint8Array; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/orm/v1/orm.ts b/packages/api/src/cosmos/orm/v1/orm.ts new file mode 100644 index 00000000..3a12a955 --- /dev/null +++ b/packages/api/src/cosmos/orm/v1/orm.ts @@ -0,0 +1,567 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptor { + /** primary_key defines the primary key for the table. */ + primaryKey?: PrimaryKeyDescriptor; + /** index defines one or more secondary indexes. */ + index: SecondaryIndexDescriptor[]; + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id: number; +} +export interface TableDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.TableDescriptor"; + value: Uint8Array; +} +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptorAmino { + /** primary_key defines the primary key for the table. */ + primary_key?: PrimaryKeyDescriptorAmino; + /** index defines one or more secondary indexes. */ + index?: SecondaryIndexDescriptorAmino[]; + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id?: number; +} +export interface TableDescriptorAminoMsg { + type: "cosmos-sdk/TableDescriptor"; + value: TableDescriptorAmino; +} +/** TableDescriptor describes an ORM table. */ +export interface TableDescriptorSDKType { + primary_key?: PrimaryKeyDescriptorSDKType; + index: SecondaryIndexDescriptorSDKType[]; + id: number; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptor { + /** + * fields is a comma-separated list of fields in the primary key. Spaces are + * not allowed. Supported field types, their encodings, and any applicable constraints + * are described below. + * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers. + * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers such as auto-incrementing sequences. + * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + * sorted iteration. These types are well-suited for encoding fixed with + * decimals as integers. + * - string's are encoded as raw bytes in terminal key segments and null-terminated + * in non-terminal segments. Null characters are thus forbidden in strings. + * string fields support sorted iteration. + * - bytes are encoded as raw bytes in terminal segments and length-prefixed + * with a 32-bit unsigned varint in non-terminal segments. + * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + * an encoding that enables sorted iteration. + * - google.protobuf.Timestamp and google.protobuf.Duration are encoded + * as 12 bytes using an encoding that enables sorted iteration. + * - enum fields are encoded using varint encoding and do not support sorted + * iteration. + * - bool fields are encoded as a single byte 0 or 1. + * + * All other fields types are unsupported in keys including repeated and + * oneof fields. + * + * Primary keys are prefixed by the varint encoded table id and the byte 0x0 + * plus any additional prefix specified by the schema. + */ + fields: string; + /** + * auto_increment specifies that the primary key is generated by an + * auto-incrementing integer. If this is set to true fields must only + * contain one field of that is of type uint64. + */ + autoIncrement: boolean; +} +export interface PrimaryKeyDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; + value: Uint8Array; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptorAmino { + /** + * fields is a comma-separated list of fields in the primary key. Spaces are + * not allowed. Supported field types, their encodings, and any applicable constraints + * are described below. + * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers. + * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that + * is suitable for sorted iteration (not varint encoding). This type is + * well-suited for small integers such as auto-incrementing sequences. + * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support + * sorted iteration. These types are well-suited for encoding fixed with + * decimals as integers. + * - string's are encoded as raw bytes in terminal key segments and null-terminated + * in non-terminal segments. Null characters are thus forbidden in strings. + * string fields support sorted iteration. + * - bytes are encoded as raw bytes in terminal segments and length-prefixed + * with a 32-bit unsigned varint in non-terminal segments. + * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with + * an encoding that enables sorted iteration. + * - google.protobuf.Timestamp and google.protobuf.Duration are encoded + * as 12 bytes using an encoding that enables sorted iteration. + * - enum fields are encoded using varint encoding and do not support sorted + * iteration. + * - bool fields are encoded as a single byte 0 or 1. + * + * All other fields types are unsupported in keys including repeated and + * oneof fields. + * + * Primary keys are prefixed by the varint encoded table id and the byte 0x0 + * plus any additional prefix specified by the schema. + */ + fields?: string; + /** + * auto_increment specifies that the primary key is generated by an + * auto-incrementing integer. If this is set to true fields must only + * contain one field of that is of type uint64. + */ + auto_increment?: boolean; +} +export interface PrimaryKeyDescriptorAminoMsg { + type: "cosmos-sdk/PrimaryKeyDescriptor"; + value: PrimaryKeyDescriptorAmino; +} +/** PrimaryKeyDescriptor describes a table primary key. */ +export interface PrimaryKeyDescriptorSDKType { + fields: string; + auto_increment: boolean; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptor { + /** + * fields is a comma-separated list of fields in the index. The supported + * field types are the same as those for PrimaryKeyDescriptor.fields. + * Index keys are prefixed by the varint encoded table id and the varint + * encoded index id plus any additional prefix specified by the schema. + * + * In addition the field segments, non-unique index keys are suffixed with + * any additional primary key fields not present in the index fields so that the + * primary key can be reconstructed. Unique indexes instead of being suffixed + * store the remaining primary key fields in the value.. + */ + fields: string; + /** + * id is a non-zero integer ID that must be unique within the indexes for this + * table and less than 32768. It may be deprecated in the future when this can + * be auto-generated. + */ + id: number; + /** unique specifies that this an unique index. */ + unique: boolean; +} +export interface SecondaryIndexDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; + value: Uint8Array; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptorAmino { + /** + * fields is a comma-separated list of fields in the index. The supported + * field types are the same as those for PrimaryKeyDescriptor.fields. + * Index keys are prefixed by the varint encoded table id and the varint + * encoded index id plus any additional prefix specified by the schema. + * + * In addition the field segments, non-unique index keys are suffixed with + * any additional primary key fields not present in the index fields so that the + * primary key can be reconstructed. Unique indexes instead of being suffixed + * store the remaining primary key fields in the value.. + */ + fields?: string; + /** + * id is a non-zero integer ID that must be unique within the indexes for this + * table and less than 32768. It may be deprecated in the future when this can + * be auto-generated. + */ + id?: number; + /** unique specifies that this an unique index. */ + unique?: boolean; +} +export interface SecondaryIndexDescriptorAminoMsg { + type: "cosmos-sdk/SecondaryIndexDescriptor"; + value: SecondaryIndexDescriptorAmino; +} +/** PrimaryKeyDescriptor describes a table secondary index. */ +export interface SecondaryIndexDescriptorSDKType { + fields: string; + id: number; + unique: boolean; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptor { + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id: number; +} +export interface SingletonDescriptorProtoMsg { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; + value: Uint8Array; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptorAmino { + /** + * id is a non-zero integer ID that must be unique within the + * tables and singletons in this file. It may be deprecated in the future when this + * can be auto-generated. + */ + id?: number; +} +export interface SingletonDescriptorAminoMsg { + type: "cosmos-sdk/SingletonDescriptor"; + value: SingletonDescriptorAmino; +} +/** TableDescriptor describes an ORM singleton table which has at most one instance. */ +export interface SingletonDescriptorSDKType { + id: number; +} +function createBaseTableDescriptor(): TableDescriptor { + return { + primaryKey: undefined, + index: [], + id: 0 + }; +} +export const TableDescriptor = { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + encode(message: TableDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.primaryKey !== undefined) { + PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.index) { + SecondaryIndexDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.id !== 0) { + writer.uint32(24).uint32(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTableDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32()); + break; + case 2: + message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32())); + break; + case 3: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TableDescriptor { + const message = createBaseTableDescriptor(); + message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; + message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || []; + message.id = object.id ?? 0; + return message; + }, + fromAmino(object: TableDescriptorAmino): TableDescriptor { + const message = createBaseTableDescriptor(); + if (object.primary_key !== undefined && object.primary_key !== null) { + message.primaryKey = PrimaryKeyDescriptor.fromAmino(object.primary_key); + } + message.index = object.index?.map(e => SecondaryIndexDescriptor.fromAmino(e)) || []; + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message: TableDescriptor): TableDescriptorAmino { + const obj: any = {}; + obj.primary_key = message.primaryKey ? PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; + if (message.index) { + obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toAmino(e) : undefined); + } else { + obj.index = message.index; + } + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor { + return TableDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg { + return { + type: "cosmos-sdk/TableDescriptor", + value: TableDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor { + return TableDescriptor.decode(message.value); + }, + toProto(message: TableDescriptor): Uint8Array { + return TableDescriptor.encode(message).finish(); + }, + toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg { + return { + typeUrl: "/cosmos.orm.v1.TableDescriptor", + value: TableDescriptor.encode(message).finish() + }; + } +}; +function createBasePrimaryKeyDescriptor(): PrimaryKeyDescriptor { + return { + fields: "", + autoIncrement: false + }; +} +export const PrimaryKeyDescriptor = { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + encode(message: PrimaryKeyDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.autoIncrement === true) { + writer.uint32(16).bool(message.autoIncrement); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePrimaryKeyDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.autoIncrement = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PrimaryKeyDescriptor { + const message = createBasePrimaryKeyDescriptor(); + message.fields = object.fields ?? ""; + message.autoIncrement = object.autoIncrement ?? false; + return message; + }, + fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor { + const message = createBasePrimaryKeyDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.auto_increment !== undefined && object.auto_increment !== null) { + message.autoIncrement = object.auto_increment; + } + return message; + }, + toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino { + const obj: any = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; + return obj; + }, + fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor { + return PrimaryKeyDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg { + return { + type: "cosmos-sdk/PrimaryKeyDescriptor", + value: PrimaryKeyDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor { + return PrimaryKeyDescriptor.decode(message.value); + }, + toProto(message: PrimaryKeyDescriptor): Uint8Array { + return PrimaryKeyDescriptor.encode(message).finish(); + }, + toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg { + return { + typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", + value: PrimaryKeyDescriptor.encode(message).finish() + }; + } +}; +function createBaseSecondaryIndexDescriptor(): SecondaryIndexDescriptor { + return { + fields: "", + id: 0, + unique: false + }; +} +export const SecondaryIndexDescriptor = { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + encode(message: SecondaryIndexDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fields !== "") { + writer.uint32(10).string(message.fields); + } + if (message.id !== 0) { + writer.uint32(16).uint32(message.id); + } + if (message.unique === true) { + writer.uint32(24).bool(message.unique); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSecondaryIndexDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fields = reader.string(); + break; + case 2: + message.id = reader.uint32(); + break; + case 3: + message.unique = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SecondaryIndexDescriptor { + const message = createBaseSecondaryIndexDescriptor(); + message.fields = object.fields ?? ""; + message.id = object.id ?? 0; + message.unique = object.unique ?? false; + return message; + }, + fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor { + const message = createBaseSecondaryIndexDescriptor(); + if (object.fields !== undefined && object.fields !== null) { + message.fields = object.fields; + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.unique !== undefined && object.unique !== null) { + message.unique = object.unique; + } + return message; + }, + toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino { + const obj: any = {}; + obj.fields = message.fields === "" ? undefined : message.fields; + obj.id = message.id === 0 ? undefined : message.id; + obj.unique = message.unique === false ? undefined : message.unique; + return obj; + }, + fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor { + return SecondaryIndexDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg { + return { + type: "cosmos-sdk/SecondaryIndexDescriptor", + value: SecondaryIndexDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor { + return SecondaryIndexDescriptor.decode(message.value); + }, + toProto(message: SecondaryIndexDescriptor): Uint8Array { + return SecondaryIndexDescriptor.encode(message).finish(); + }, + toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg { + return { + typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", + value: SecondaryIndexDescriptor.encode(message).finish() + }; + } +}; +function createBaseSingletonDescriptor(): SingletonDescriptor { + return { + id: 0 + }; +} +export const SingletonDescriptor = { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + encode(message: SingletonDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== 0) { + writer.uint32(8).uint32(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSingletonDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SingletonDescriptor { + const message = createBaseSingletonDescriptor(); + message.id = object.id ?? 0; + return message; + }, + fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor { + const message = createBaseSingletonDescriptor(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + return message; + }, + toAmino(message: SingletonDescriptor): SingletonDescriptorAmino { + const obj: any = {}; + obj.id = message.id === 0 ? undefined : message.id; + return obj; + }, + fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor { + return SingletonDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg { + return { + type: "cosmos-sdk/SingletonDescriptor", + value: SingletonDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor { + return SingletonDescriptor.decode(message.value); + }, + toProto(message: SingletonDescriptor): Uint8Array { + return SingletonDescriptor.encode(message).finish(); + }, + toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg { + return { + typeUrl: "/cosmos.orm.v1.SingletonDescriptor", + value: SingletonDescriptor.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/params/v1beta1/params.ts b/packages/api/src/cosmos/params/v1beta1/params.ts new file mode 100644 index 00000000..d34859fb --- /dev/null +++ b/packages/api/src/cosmos/params/v1beta1/params.ts @@ -0,0 +1,254 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposal { + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; + title: string; + description: string; + changes: ParamChange[]; +} +export interface ParameterChangeProposalProtoMsg { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; + value: Uint8Array; +} +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposalAmino { + title?: string; + description?: string; + changes?: ParamChangeAmino[]; +} +export interface ParameterChangeProposalAminoMsg { + type: "cosmos-sdk/ParameterChangeProposal"; + value: ParameterChangeProposalAmino; +} +/** ParameterChangeProposal defines a proposal to change one or more parameters. */ +export interface ParameterChangeProposalSDKType { + $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; + title: string; + description: string; + changes: ParamChangeSDKType[]; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChange { + subspace: string; + key: string; + value: string; +} +export interface ParamChangeProtoMsg { + typeUrl: "/cosmos.params.v1beta1.ParamChange"; + value: Uint8Array; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChangeAmino { + subspace?: string; + key?: string; + value?: string; +} +export interface ParamChangeAminoMsg { + type: "cosmos-sdk/ParamChange"; + value: ParamChangeAmino; +} +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface ParamChangeSDKType { + subspace: string; + key: string; + value: string; +} +function createBaseParameterChangeProposal(): ParameterChangeProposal { + return { + $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + title: "", + description: "", + changes: [] + }; +} +export const ParameterChangeProposal = { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + encode(message: ParameterChangeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + for (const v of message.changes) { + ParamChange.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParameterChangeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.changes.push(ParamChange.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ParameterChangeProposal { + const message = createBaseParameterChangeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.changes = object.changes?.map(e => ParamChange.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ParameterChangeProposalAmino): ParameterChangeProposal { + const message = createBaseParameterChangeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.changes = object.changes?.map(e => ParamChange.fromAmino(e)) || []; + return message; + }, + toAmino(message: ParameterChangeProposal): ParameterChangeProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + if (message.changes) { + obj.changes = message.changes.map(e => e ? ParamChange.toAmino(e) : undefined); + } else { + obj.changes = message.changes; + } + return obj; + }, + fromAminoMsg(object: ParameterChangeProposalAminoMsg): ParameterChangeProposal { + return ParameterChangeProposal.fromAmino(object.value); + }, + toAminoMsg(message: ParameterChangeProposal): ParameterChangeProposalAminoMsg { + return { + type: "cosmos-sdk/ParameterChangeProposal", + value: ParameterChangeProposal.toAmino(message) + }; + }, + fromProtoMsg(message: ParameterChangeProposalProtoMsg): ParameterChangeProposal { + return ParameterChangeProposal.decode(message.value); + }, + toProto(message: ParameterChangeProposal): Uint8Array { + return ParameterChangeProposal.encode(message).finish(); + }, + toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", + value: ParameterChangeProposal.encode(message).finish() + }; + } +}; +function createBaseParamChange(): ParamChange { + return { + subspace: "", + key: "", + value: "" + }; +} +export const ParamChange = { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + encode(message: ParamChange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + if (message.value !== "") { + writer.uint32(26).string(message.value); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ParamChange { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParamChange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + case 3: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ParamChange { + const message = createBaseParamChange(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, + fromAmino(object: ParamChangeAmino): ParamChange { + const message = createBaseParamChange(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + return message; + }, + toAmino(message: ParamChange): ParamChangeAmino { + const obj: any = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + return obj; + }, + fromAminoMsg(object: ParamChangeAminoMsg): ParamChange { + return ParamChange.fromAmino(object.value); + }, + toAminoMsg(message: ParamChange): ParamChangeAminoMsg { + return { + type: "cosmos-sdk/ParamChange", + value: ParamChange.toAmino(message) + }; + }, + fromProtoMsg(message: ParamChangeProtoMsg): ParamChange { + return ParamChange.decode(message.value); + }, + toProto(message: ParamChange): Uint8Array { + return ParamChange.encode(message).finish(); + }, + toProtoMsg(message: ParamChange): ParamChangeProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.ParamChange", + value: ParamChange.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/params/v1beta1/query.lcd.ts b/packages/api/src/cosmos/params/v1beta1/query.lcd.ts new file mode 100644 index 00000000..c5c430d9 --- /dev/null +++ b/packages/api/src/cosmos/params/v1beta1/query.lcd.ts @@ -0,0 +1,37 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + /* Params queries a specific parameter of a module, given its subspace and + key. */ + async params(params: QueryParamsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.subspace !== "undefined") { + options.params.subspace = params.subspace; + } + if (typeof params?.key !== "undefined") { + options.params.key = params.key; + } + const endpoint = `cosmos/params/v1beta1/params`; + return await this.req.get(endpoint, options); + } + /* Subspaces queries for all registered subspaces and all keys for a subspace. + + Since: cosmos-sdk 0.46 */ + async subspaces(_params: QuerySubspacesRequest = {}): Promise { + const endpoint = `cosmos/params/v1beta1/subspaces`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/params/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/params/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..4415b5fe --- /dev/null +++ b/packages/api/src/cosmos/params/v1beta1/query.rpc.Query.ts @@ -0,0 +1,49 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Params queries a specific parameter of a module, given its subspace and + * key. + */ + params(request: QueryParamsRequest): Promise; + /** + * Subspaces queries for all registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ + subspaces(request?: QuerySubspacesRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.subspaces = this.subspaces.bind(this); + } + params(request: QueryParamsRequest): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + subspaces(request: QuerySubspacesRequest = {}): Promise { + const data = QuerySubspacesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); + return promise.then(data => QuerySubspacesResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request: QueryParamsRequest): Promise { + return queryService.params(request); + }, + subspaces(request?: QuerySubspacesRequest): Promise { + return queryService.subspaces(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/params/v1beta1/query.ts b/packages/api/src/cosmos/params/v1beta1/query.ts new file mode 100644 index 00000000..38bf18dc --- /dev/null +++ b/packages/api/src/cosmos/params/v1beta1/query.ts @@ -0,0 +1,514 @@ +//@ts-nocheck +import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequest { + /** subspace defines the module to query the parameter for. */ + subspace: string; + /** key defines the key of the parameter in the subspace. */ + key: string; +} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino { + /** subspace defines the module to query the parameter for. */ + subspace?: string; + /** key defines the key of the parameter in the subspace. */ + key?: string; +} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType { + subspace: string; + key: string; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** param defines the queried parameter. */ + param: ParamChange; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** param defines the queried parameter. */ + param?: ParamChangeAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + param: ParamChangeSDKType; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequest {} +export interface QuerySubspacesRequestProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; + value: Uint8Array; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequestAmino {} +export interface QuerySubspacesRequestAminoMsg { + type: "cosmos-sdk/QuerySubspacesRequest"; + value: QuerySubspacesRequestAmino; +} +/** + * QuerySubspacesRequest defines a request type for querying for all registered + * subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesRequestSDKType {} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponse { + subspaces: Subspace[]; +} +export interface QuerySubspacesResponseProtoMsg { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; + value: Uint8Array; +} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponseAmino { + subspaces?: SubspaceAmino[]; +} +export interface QuerySubspacesResponseAminoMsg { + type: "cosmos-sdk/QuerySubspacesResponse"; + value: QuerySubspacesResponseAmino; +} +/** + * QuerySubspacesResponse defines the response types for querying for all + * registered subspaces and all keys for a subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface QuerySubspacesResponseSDKType { + subspaces: SubspaceSDKType[]; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface Subspace { + subspace: string; + keys: string[]; +} +export interface SubspaceProtoMsg { + typeUrl: "/cosmos.params.v1beta1.Subspace"; + value: Uint8Array; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface SubspaceAmino { + subspace?: string; + keys?: string[]; +} +export interface SubspaceAminoMsg { + type: "cosmos-sdk/Subspace"; + value: SubspaceAmino; +} +/** + * Subspace defines a parameter subspace name and all the keys that exist for + * the subspace. + * + * Since: cosmos-sdk 0.46 + */ +export interface SubspaceSDKType { + subspace: string; + keys: string[]; +} +function createBaseQueryParamsRequest(): QueryParamsRequest { + return { + subspace: "", + key: "" + }; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + encode(message: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + if (message.key !== "") { + writer.uint32(18).string(message.key); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.key = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + message.subspace = object.subspace ?? ""; + message.key = object.key ?? ""; + return message; + }, + fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + return message; + }, + toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + obj.key = message.key === "" ? undefined : message.key; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + param: ParamChange.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.param !== undefined) { + ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.param = ParamChange.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.param = object.param !== undefined && object.param !== null ? ParamChange.fromPartial(object.param) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.param !== undefined && object.param !== null) { + message.param = ParamChange.fromAmino(object.param); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.param = message.param ? ParamChange.toAmino(message.param) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesRequest(): QuerySubspacesRequest { + return {}; +} +export const QuerySubspacesRequest = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + encode(_: QuerySubspacesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QuerySubspacesRequest { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + fromAmino(_: QuerySubspacesRequestAmino): QuerySubspacesRequest { + const message = createBaseQuerySubspacesRequest(); + return message; + }, + toAmino(_: QuerySubspacesRequest): QuerySubspacesRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QuerySubspacesRequestAminoMsg): QuerySubspacesRequest { + return QuerySubspacesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestAminoMsg { + return { + type: "cosmos-sdk/QuerySubspacesRequest", + value: QuerySubspacesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySubspacesRequestProtoMsg): QuerySubspacesRequest { + return QuerySubspacesRequest.decode(message.value); + }, + toProto(message: QuerySubspacesRequest): Uint8Array { + return QuerySubspacesRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", + value: QuerySubspacesRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySubspacesResponse(): QuerySubspacesResponse { + return { + subspaces: [] + }; +} +export const QuerySubspacesResponse = { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + encode(message: QuerySubspacesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.subspaces) { + Subspace.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySubspacesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspaces.push(Subspace.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySubspacesResponse { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => Subspace.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QuerySubspacesResponseAmino): QuerySubspacesResponse { + const message = createBaseQuerySubspacesResponse(); + message.subspaces = object.subspaces?.map(e => Subspace.fromAmino(e)) || []; + return message; + }, + toAmino(message: QuerySubspacesResponse): QuerySubspacesResponseAmino { + const obj: any = {}; + if (message.subspaces) { + obj.subspaces = message.subspaces.map(e => e ? Subspace.toAmino(e) : undefined); + } else { + obj.subspaces = message.subspaces; + } + return obj; + }, + fromAminoMsg(object: QuerySubspacesResponseAminoMsg): QuerySubspacesResponse { + return QuerySubspacesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseAminoMsg { + return { + type: "cosmos-sdk/QuerySubspacesResponse", + value: QuerySubspacesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QuerySubspacesResponseProtoMsg): QuerySubspacesResponse { + return QuerySubspacesResponse.decode(message.value); + }, + toProto(message: QuerySubspacesResponse): Uint8Array { + return QuerySubspacesResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", + value: QuerySubspacesResponse.encode(message).finish() + }; + } +}; +function createBaseSubspace(): Subspace { + return { + subspace: "", + keys: [] + }; +} +export const Subspace = { + typeUrl: "/cosmos.params.v1beta1.Subspace", + encode(message: Subspace, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.subspace !== "") { + writer.uint32(10).string(message.subspace); + } + for (const v of message.keys) { + writer.uint32(18).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Subspace { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSubspace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subspace = reader.string(); + break; + case 2: + message.keys.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Subspace { + const message = createBaseSubspace(); + message.subspace = object.subspace ?? ""; + message.keys = object.keys?.map(e => e) || []; + return message; + }, + fromAmino(object: SubspaceAmino): Subspace { + const message = createBaseSubspace(); + if (object.subspace !== undefined && object.subspace !== null) { + message.subspace = object.subspace; + } + message.keys = object.keys?.map(e => e) || []; + return message; + }, + toAmino(message: Subspace): SubspaceAmino { + const obj: any = {}; + obj.subspace = message.subspace === "" ? undefined : message.subspace; + if (message.keys) { + obj.keys = message.keys.map(e => e); + } else { + obj.keys = message.keys; + } + return obj; + }, + fromAminoMsg(object: SubspaceAminoMsg): Subspace { + return Subspace.fromAmino(object.value); + }, + toAminoMsg(message: Subspace): SubspaceAminoMsg { + return { + type: "cosmos-sdk/Subspace", + value: Subspace.toAmino(message) + }; + }, + fromProtoMsg(message: SubspaceProtoMsg): Subspace { + return Subspace.decode(message.value); + }, + toProto(message: Subspace): Uint8Array { + return Subspace.encode(message).finish(); + }, + toProtoMsg(message: Subspace): SubspaceProtoMsg { + return { + typeUrl: "/cosmos.params.v1beta1.Subspace", + value: Subspace.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/rpc.query.ts b/packages/api/src/cosmos/rpc.query.ts new file mode 100644 index 00000000..db0b00a0 --- /dev/null +++ b/packages/api/src/cosmos/rpc.query.ts @@ -0,0 +1,57 @@ +//@ts-nocheck +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("./base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("./feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("./gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("./group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("./mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("./params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/rpc.tx.ts b/packages/api/src/cosmos/rpc.tx.ts new file mode 100644 index 00000000..c87eaf31 --- /dev/null +++ b/packages/api/src/cosmos/rpc.tx.ts @@ -0,0 +1,38 @@ +//@ts-nocheck +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("./feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("./gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("./group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("./vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/authz.ts b/packages/api/src/cosmos/staking/v1beta1/authz.ts new file mode 100644 index 00000000..7e405db6 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/authz.ts @@ -0,0 +1,316 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * AuthorizationType defines the type of staking module authorization type + * + * Since: cosmos-sdk 0.43 + */ +export enum AuthorizationType { + /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ + AUTHORIZATION_TYPE_UNSPECIFIED = 0, + /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ + AUTHORIZATION_TYPE_DELEGATE = 1, + /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ + AUTHORIZATION_TYPE_UNDELEGATE = 2, + /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ + AUTHORIZATION_TYPE_REDELEGATE = 3, + UNRECOGNIZED = -1, +} +export const AuthorizationTypeSDKType = AuthorizationType; +export const AuthorizationTypeAmino = AuthorizationType; +export function authorizationTypeFromJSON(object: any): AuthorizationType { + switch (object) { + case 0: + case "AUTHORIZATION_TYPE_UNSPECIFIED": + return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; + case 1: + case "AUTHORIZATION_TYPE_DELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; + case 2: + case "AUTHORIZATION_TYPE_UNDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; + case 3: + case "AUTHORIZATION_TYPE_REDELEGATE": + return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; + case -1: + case "UNRECOGNIZED": + default: + return AuthorizationType.UNRECOGNIZED; + } +} +export function authorizationTypeToJSON(object: AuthorizationType): string { + switch (object) { + case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: + return "AUTHORIZATION_TYPE_UNSPECIFIED"; + case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: + return "AUTHORIZATION_TYPE_DELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: + return "AUTHORIZATION_TYPE_UNDELEGATE"; + case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: + return "AUTHORIZATION_TYPE_REDELEGATE"; + case AuthorizationType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorization { + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; + /** + * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + * empty, there is no spend limit and any amount of coins can be delegated. + */ + maxTokens?: Coin; + /** + * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + * account. + */ + allowList?: StakeAuthorization_Validators; + /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ + denyList?: StakeAuthorization_Validators; + /** authorization_type defines one of AuthorizationType. */ + authorizationType: AuthorizationType; +} +export interface StakeAuthorizationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; + value: Uint8Array; +} +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorizationAmino { + /** + * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + * empty, there is no spend limit and any amount of coins can be delegated. + */ + max_tokens?: CoinAmino; + /** + * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + * account. + */ + allow_list?: StakeAuthorization_ValidatorsAmino; + /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ + deny_list?: StakeAuthorization_ValidatorsAmino; + /** authorization_type defines one of AuthorizationType. */ + authorization_type?: AuthorizationType; +} +export interface StakeAuthorizationAminoMsg { + type: "cosmos-sdk/StakeAuthorization"; + value: StakeAuthorizationAmino; +} +/** + * StakeAuthorization defines authorization for delegate/undelegate/redelegate. + * + * Since: cosmos-sdk 0.43 + */ +export interface StakeAuthorizationSDKType { + $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; + max_tokens?: CoinSDKType; + allow_list?: StakeAuthorization_ValidatorsSDKType; + deny_list?: StakeAuthorization_ValidatorsSDKType; + authorization_type: AuthorizationType; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_Validators { + address: string[]; +} +export interface StakeAuthorization_ValidatorsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Validators"; + value: Uint8Array; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_ValidatorsAmino { + address?: string[]; +} +export interface StakeAuthorization_ValidatorsAminoMsg { + type: "cosmos-sdk/Validators"; + value: StakeAuthorization_ValidatorsAmino; +} +/** Validators defines list of validator addresses. */ +export interface StakeAuthorization_ValidatorsSDKType { + address: string[]; +} +function createBaseStakeAuthorization(): StakeAuthorization { + return { + $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + maxTokens: undefined, + allowList: undefined, + denyList: undefined, + authorizationType: 0 + }; +} +export const StakeAuthorization = { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + encode(message: StakeAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxTokens !== undefined) { + Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); + } + if (message.allowList !== undefined) { + StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); + } + if (message.denyList !== undefined) { + StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); + } + if (message.authorizationType !== 0) { + writer.uint32(32).int32(message.authorizationType); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTokens = Coin.decode(reader, reader.uint32()); + break; + case 2: + message.allowList = StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 3: + message.denyList = StakeAuthorization_Validators.decode(reader, reader.uint32()); + break; + case 4: + message.authorizationType = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): StakeAuthorization { + const message = createBaseStakeAuthorization(); + message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? Coin.fromPartial(object.maxTokens) : undefined; + message.allowList = object.allowList !== undefined && object.allowList !== null ? StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; + message.denyList = object.denyList !== undefined && object.denyList !== null ? StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; + message.authorizationType = object.authorizationType ?? 0; + return message; + }, + fromAmino(object: StakeAuthorizationAmino): StakeAuthorization { + const message = createBaseStakeAuthorization(); + if (object.max_tokens !== undefined && object.max_tokens !== null) { + message.maxTokens = Coin.fromAmino(object.max_tokens); + } + if (object.allow_list !== undefined && object.allow_list !== null) { + message.allowList = StakeAuthorization_Validators.fromAmino(object.allow_list); + } + if (object.deny_list !== undefined && object.deny_list !== null) { + message.denyList = StakeAuthorization_Validators.fromAmino(object.deny_list); + } + if (object.authorization_type !== undefined && object.authorization_type !== null) { + message.authorizationType = object.authorization_type; + } + return message; + }, + toAmino(message: StakeAuthorization): StakeAuthorizationAmino { + const obj: any = {}; + obj.max_tokens = message.maxTokens ? Coin.toAmino(message.maxTokens) : undefined; + obj.allow_list = message.allowList ? StakeAuthorization_Validators.toAmino(message.allowList) : undefined; + obj.deny_list = message.denyList ? StakeAuthorization_Validators.toAmino(message.denyList) : undefined; + obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; + return obj; + }, + fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization { + return StakeAuthorization.fromAmino(object.value); + }, + toAminoMsg(message: StakeAuthorization): StakeAuthorizationAminoMsg { + return { + type: "cosmos-sdk/StakeAuthorization", + value: StakeAuthorization.toAmino(message) + }; + }, + fromProtoMsg(message: StakeAuthorizationProtoMsg): StakeAuthorization { + return StakeAuthorization.decode(message.value); + }, + toProto(message: StakeAuthorization): Uint8Array { + return StakeAuthorization.encode(message).finish(); + }, + toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", + value: StakeAuthorization.encode(message).finish() + }; + } +}; +function createBaseStakeAuthorization_Validators(): StakeAuthorization_Validators { + return { + address: [] + }; +} +export const StakeAuthorization_Validators = { + typeUrl: "/cosmos.staking.v1beta1.Validators", + encode(message: StakeAuthorization_Validators, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.address) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStakeAuthorization_Validators(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): StakeAuthorization_Validators { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + fromAmino(object: StakeAuthorization_ValidatorsAmino): StakeAuthorization_Validators { + const message = createBaseStakeAuthorization_Validators(); + message.address = object.address?.map(e => e) || []; + return message; + }, + toAmino(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAmino { + const obj: any = {}; + if (message.address) { + obj.address = message.address.map(e => e); + } else { + obj.address = message.address; + } + return obj; + }, + fromAminoMsg(object: StakeAuthorization_ValidatorsAminoMsg): StakeAuthorization_Validators { + return StakeAuthorization_Validators.fromAmino(object.value); + }, + toAminoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAminoMsg { + return { + type: "cosmos-sdk/Validators", + value: StakeAuthorization_Validators.toAmino(message) + }; + }, + fromProtoMsg(message: StakeAuthorization_ValidatorsProtoMsg): StakeAuthorization_Validators { + return StakeAuthorization_Validators.decode(message.value); + }, + toProto(message: StakeAuthorization_Validators): Uint8Array { + return StakeAuthorization_Validators.encode(message).finish(); + }, + toProtoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Validators", + value: StakeAuthorization_Validators.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/genesis.ts b/packages/api/src/cosmos/staking/v1beta1/genesis.ts new file mode 100644 index 00000000..ad73dcd8 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/genesis.ts @@ -0,0 +1,342 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisState { + /** params defines all the paramaters of related to deposit. */ + params: Params; + /** + * last_total_power tracks the total amounts of bonded tokens recorded during + * the previous end block. + */ + lastTotalPower: Uint8Array; + /** + * last_validator_powers is a special index that provides a historical list + * of the last-block's bonded validators. + */ + lastValidatorPowers: LastValidatorPower[]; + /** delegations defines the validator set at genesis. */ + validators: Validator[]; + /** delegations defines the delegations active at genesis. */ + delegations: Delegation[]; + /** unbonding_delegations defines the unbonding delegations active at genesis. */ + unbondingDelegations: UnbondingDelegation[]; + /** redelegations defines the redelegations active at genesis. */ + redelegations: Redelegation[]; + exported: boolean; +} +export interface GenesisStateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisStateAmino { + /** params defines all the paramaters of related to deposit. */ + params?: ParamsAmino; + /** + * last_total_power tracks the total amounts of bonded tokens recorded during + * the previous end block. + */ + last_total_power?: string; + /** + * last_validator_powers is a special index that provides a historical list + * of the last-block's bonded validators. + */ + last_validator_powers?: LastValidatorPowerAmino[]; + /** delegations defines the validator set at genesis. */ + validators?: ValidatorAmino[]; + /** delegations defines the delegations active at genesis. */ + delegations?: DelegationAmino[]; + /** unbonding_delegations defines the unbonding delegations active at genesis. */ + unbonding_delegations?: UnbondingDelegationAmino[]; + /** redelegations defines the redelegations active at genesis. */ + redelegations?: RedelegationAmino[]; + exported?: boolean; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the staking module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + last_total_power: Uint8Array; + last_validator_powers: LastValidatorPowerSDKType[]; + validators: ValidatorSDKType[]; + delegations: DelegationSDKType[]; + unbonding_delegations: UnbondingDelegationSDKType[]; + redelegations: RedelegationSDKType[]; + exported: boolean; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPower { + /** address is the address of the validator. */ + address: string; + /** power defines the power of the validator. */ + power: bigint; +} +export interface LastValidatorPowerProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; + value: Uint8Array; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPowerAmino { + /** address is the address of the validator. */ + address?: string; + /** power defines the power of the validator. */ + power?: string; +} +export interface LastValidatorPowerAminoMsg { + type: "cosmos-sdk/LastValidatorPower"; + value: LastValidatorPowerAmino; +} +/** LastValidatorPower required for validator set update logic. */ +export interface LastValidatorPowerSDKType { + address: string; + power: bigint; +} +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}), + lastTotalPower: new Uint8Array(), + lastValidatorPowers: [], + validators: [], + delegations: [], + unbondingDelegations: [], + redelegations: [], + exported: false + }; +} +export const GenesisState = { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + if (message.lastTotalPower.length !== 0) { + writer.uint32(18).bytes(message.lastTotalPower); + } + for (const v of message.lastValidatorPowers) { + LastValidatorPower.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + Validator.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.delegations) { + Delegation.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.unbondingDelegations) { + UnbondingDelegation.encode(v!, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.redelegations) { + Redelegation.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.exported === true) { + writer.uint32(64).bool(message.exported); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.lastTotalPower = reader.bytes(); + break; + case 3: + message.lastValidatorPowers.push(LastValidatorPower.decode(reader, reader.uint32())); + break; + case 4: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 5: + message.delegations.push(Delegation.decode(reader, reader.uint32())); + break; + case 6: + message.unbondingDelegations.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 7: + message.redelegations.push(Redelegation.decode(reader, reader.uint32())); + break; + case 8: + message.exported = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); + message.lastValidatorPowers = object.lastValidatorPowers?.map(e => LastValidatorPower.fromPartial(e)) || []; + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.delegations = object.delegations?.map(e => Delegation.fromPartial(e)) || []; + message.unbondingDelegations = object.unbondingDelegations?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.redelegations = object.redelegations?.map(e => Redelegation.fromPartial(e)) || []; + message.exported = object.exported ?? false; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.last_total_power !== undefined && object.last_total_power !== null) { + message.lastTotalPower = bytesFromBase64(object.last_total_power); + } + message.lastValidatorPowers = object.last_validator_powers?.map(e => LastValidatorPower.fromAmino(e)) || []; + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + message.delegations = object.delegations?.map(e => Delegation.fromAmino(e)) || []; + message.unbondingDelegations = object.unbonding_delegations?.map(e => UnbondingDelegation.fromAmino(e)) || []; + message.redelegations = object.redelegations?.map(e => Redelegation.fromAmino(e)) || []; + if (object.exported !== undefined && object.exported !== null) { + message.exported = object.exported; + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.last_total_power = message.lastTotalPower ? base64FromBytes(message.lastTotalPower) : undefined; + if (message.lastValidatorPowers) { + obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toAmino(e) : undefined); + } else { + obj.last_validator_powers = message.lastValidatorPowers; + } + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + if (message.delegations) { + obj.delegations = message.delegations.map(e => e ? Delegation.toAmino(e) : undefined); + } else { + obj.delegations = message.delegations; + } + if (message.unbondingDelegations) { + obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } else { + obj.unbonding_delegations = message.unbondingDelegations; + } + if (message.redelegations) { + obj.redelegations = message.redelegations.map(e => e ? Redelegation.toAmino(e) : undefined); + } else { + obj.redelegations = message.redelegations; + } + obj.exported = message.exported === false ? undefined : message.exported; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseLastValidatorPower(): LastValidatorPower { + return { + address: "", + power: BigInt(0) + }; +} +export const LastValidatorPower = { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + encode(message: LastValidatorPower, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLastValidatorPower(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): LastValidatorPower { + const message = createBaseLastValidatorPower(); + message.address = object.address ?? ""; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object: LastValidatorPowerAmino): LastValidatorPower { + const message = createBaseLastValidatorPower(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message: LastValidatorPower): LastValidatorPowerAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower { + return LastValidatorPower.fromAmino(object.value); + }, + toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg { + return { + type: "cosmos-sdk/LastValidatorPower", + value: LastValidatorPower.toAmino(message) + }; + }, + fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower { + return LastValidatorPower.decode(message.value); + }, + toProto(message: LastValidatorPower): Uint8Array { + return LastValidatorPower.encode(message).finish(); + }, + toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", + value: LastValidatorPower.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/query.lcd.ts b/packages/api/src/cosmos/staking/v1beta1/query.lcd.ts new file mode 100644 index 00000000..a2ef0fe8 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/query.lcd.ts @@ -0,0 +1,153 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + /* Validators queries all validators that match the given status. */ + async validators(params: QueryValidatorsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.status !== "undefined") { + options.params.status = params.status; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators`; + return await this.req.get(endpoint, options); + } + /* Validator queries validator info for given validator address. */ + async validator(params: QueryValidatorRequest): Promise { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* ValidatorDelegations queries delegate info for given validator. */ + async validatorDelegations(params: QueryValidatorDelegationsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; + return await this.req.get(endpoint, options); + } + /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + async validatorUnbondingDelegations(params: QueryValidatorUnbondingDelegationsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Delegation queries delegate info for given validator delegator pair. */ + async delegation(params: QueryDelegationRequest): Promise { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint); + } + /* UnbondingDelegation queries unbonding info for given validator delegator + pair. */ + async unbondingDelegation(params: QueryUnbondingDelegationRequest): Promise { + const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; + return await this.req.get(endpoint); + } + /* DelegatorDelegations queries all delegations of a given delegator address. */ + async delegatorDelegations(params: QueryDelegatorDelegationsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; + return await this.req.get(endpoint, options); + } + /* DelegatorUnbondingDelegations queries all unbonding delegations of a given + delegator address. */ + async delegatorUnbondingDelegations(params: QueryDelegatorUnbondingDelegationsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; + return await this.req.get(endpoint, options); + } + /* Redelegations queries redelegations of given address. */ + async redelegations(params: QueryRedelegationsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.srcValidatorAddr !== "undefined") { + options.params.src_validator_addr = params.srcValidatorAddr; + } + if (typeof params?.dstValidatorAddr !== "undefined") { + options.params.dst_validator_addr = params.dstValidatorAddr; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidators queries all validators info for given delegator + address. */ + async delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; + return await this.req.get(endpoint, options); + } + /* DelegatorValidator queries validator info for given delegator validator + pair. */ + async delegatorValidator(params: QueryDelegatorValidatorRequest): Promise { + const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; + return await this.req.get(endpoint); + } + /* HistoricalInfo queries the historical info for given height. */ + async historicalInfo(params: QueryHistoricalInfoRequest): Promise { + const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; + return await this.req.get(endpoint); + } + /* Pool queries the pool info. */ + async pool(_params: QueryPoolRequest = {}): Promise { + const endpoint = `cosmos/staking/v1beta1/pool`; + return await this.req.get(endpoint); + } + /* Parameters queries the staking parameters. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `cosmos/staking/v1beta1/params`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/staking/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..dcf1f2d4 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/query.rpc.Query.ts @@ -0,0 +1,186 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Validators queries all validators that match the given status. */ + validators(request: QueryValidatorsRequest): Promise; + /** Validator queries validator info for given validator address. */ + validator(request: QueryValidatorRequest): Promise; + /** ValidatorDelegations queries delegate info for given validator. */ + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + /** Delegation queries delegate info for given validator delegator pair. */ + delegation(request: QueryDelegationRequest): Promise; + /** + * UnbondingDelegation queries unbonding info for given validator delegator + * pair. + */ + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + /** DelegatorDelegations queries all delegations of a given delegator address. */ + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + /** + * DelegatorUnbondingDelegations queries all unbonding delegations of a given + * delegator address. + */ + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + /** Redelegations queries redelegations of given address. */ + redelegations(request: QueryRedelegationsRequest): Promise; + /** + * DelegatorValidators queries all validators info for given delegator + * address. + */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** + * DelegatorValidator queries validator info for given delegator validator + * pair. + */ + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + /** HistoricalInfo queries the historical info for given height. */ + historicalInfo(request: QueryHistoricalInfoRequest): Promise; + /** Pool queries the pool info. */ + pool(request?: QueryPoolRequest): Promise; + /** Parameters queries the staking parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + validators(request: QueryValidatorsRequest): Promise { + const data = QueryValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); + return promise.then(data => QueryValidatorsResponse.decode(new BinaryReader(data))); + } + validator(request: QueryValidatorRequest): Promise { + const data = QueryValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); + return promise.then(data => QueryValidatorResponse.decode(new BinaryReader(data))); + } + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { + const data = QueryValidatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); + return promise.then(data => QueryValidatorDelegationsResponse.decode(new BinaryReader(data))); + } + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { + const data = QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); + return promise.then(data => QueryValidatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); + } + delegation(request: QueryDelegationRequest): Promise { + const data = QueryDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); + return promise.then(data => QueryDelegationResponse.decode(new BinaryReader(data))); + } + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { + const data = QueryUnbondingDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); + return promise.then(data => QueryUnbondingDelegationResponse.decode(new BinaryReader(data))); + } + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { + const data = QueryDelegatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); + return promise.then(data => QueryDelegatorDelegationsResponse.decode(new BinaryReader(data))); + } + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { + const data = QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); + return promise.then(data => QueryDelegatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); + } + redelegations(request: QueryRedelegationsRequest): Promise { + const data = QueryRedelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); + return promise.then(data => QueryRedelegationsResponse.decode(new BinaryReader(data))); + } + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); + } + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { + const data = QueryDelegatorValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); + return promise.then(data => QueryDelegatorValidatorResponse.decode(new BinaryReader(data))); + } + historicalInfo(request: QueryHistoricalInfoRequest): Promise { + const data = QueryHistoricalInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); + return promise.then(data => QueryHistoricalInfoResponse.decode(new BinaryReader(data))); + } + pool(request: QueryPoolRequest = {}): Promise { + const data = QueryPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); + return promise.then(data => QueryPoolResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + validators(request: QueryValidatorsRequest): Promise { + return queryService.validators(request); + }, + validator(request: QueryValidatorRequest): Promise { + return queryService.validator(request); + }, + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { + return queryService.validatorDelegations(request); + }, + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { + return queryService.validatorUnbondingDelegations(request); + }, + delegation(request: QueryDelegationRequest): Promise { + return queryService.delegation(request); + }, + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { + return queryService.unbondingDelegation(request); + }, + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { + return queryService.delegatorDelegations(request); + }, + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { + return queryService.delegatorUnbondingDelegations(request); + }, + redelegations(request: QueryRedelegationsRequest): Promise { + return queryService.redelegations(request); + }, + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + return queryService.delegatorValidators(request); + }, + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { + return queryService.delegatorValidator(request); + }, + historicalInfo(request: QueryHistoricalInfoRequest): Promise { + return queryService.historicalInfo(request); + }, + pool(request?: QueryPoolRequest): Promise { + return queryService.pool(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/query.ts b/packages/api/src/cosmos/staking/v1beta1/query.ts new file mode 100644 index 00000000..bb0a7da5 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/query.ts @@ -0,0 +1,3001 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequest { + /** status enables to query for validators matching a given status. */ + status: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; + value: Uint8Array; +} +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequestAmino { + /** status enables to query for validators matching a given status. */ + status?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorsRequest"; + value: QueryValidatorsRequestAmino; +} +/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ +export interface QueryValidatorsRequestSDKType { + status: string; + pagination?: PageRequestSDKType; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponse { + /** validators contains all the queried validators. */ + validators: Validator[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; + value: Uint8Array; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponseAmino { + /** validators contains all the queried validators. */ + validators?: ValidatorAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorsResponse"; + value: QueryValidatorsResponseAmino; +} +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface QueryValidatorsResponseSDKType { + validators: ValidatorSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryValidatorRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; + value: Uint8Array; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryValidatorRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorRequest"; + value: QueryValidatorRequestAmino; +} +/** QueryValidatorRequest is response type for the Query/Validator RPC method */ +export interface QueryValidatorRequestSDKType { + validator_addr: string; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponse { + /** validator defines the validator info. */ + validator: Validator; +} +export interface QueryValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; + value: Uint8Array; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponseAmino { + /** validator defines the validator info. */ + validator?: ValidatorAmino; +} +export interface QueryValidatorResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorResponse"; + value: QueryValidatorResponseAmino; +} +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface QueryValidatorResponseSDKType { + validator: ValidatorSDKType; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorDelegationsRequest"; + value: QueryValidatorDelegationsRequestAmino; +} +/** + * QueryValidatorDelegationsRequest is request type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsRequestSDKType { + validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponse { + delegationResponses: DelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponseAmino { + delegation_responses?: DelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorDelegationsResponse"; + value: QueryValidatorDelegationsResponseAmino; +} +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface QueryValidatorDelegationsResponseSDKType { + delegation_responses: DelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequest { + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequestAmino { + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest"; + value: QueryValidatorUnbondingDelegationsRequestAmino; +} +/** + * QueryValidatorUnbondingDelegationsRequest is required type for the + * Query/ValidatorUnbondingDelegations RPC method + */ +export interface QueryValidatorUnbondingDelegationsRequestSDKType { + validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponse { + unbondingResponses: UnbondingDelegation[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponseAmino { + unbonding_responses?: UnbondingDelegationAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse"; + value: QueryValidatorUnbondingDelegationsResponseAmino; +} +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface QueryValidatorUnbondingDelegationsResponseSDKType { + unbonding_responses: UnbondingDelegationSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryDelegationRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; + value: Uint8Array; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryDelegationRequestAminoMsg { + type: "cosmos-sdk/QueryDelegationRequest"; + value: QueryDelegationRequestAmino; +} +/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ +export interface QueryDelegationRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponse { + /** delegation_responses defines the delegation info of a delegation. */ + delegationResponse?: DelegationResponse; +} +export interface QueryDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; + value: Uint8Array; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponseAmino { + /** delegation_responses defines the delegation info of a delegation. */ + delegation_response?: DelegationResponseAmino; +} +export interface QueryDelegationResponseAminoMsg { + type: "cosmos-sdk/QueryDelegationResponse"; + value: QueryDelegationResponseAmino; +} +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface QueryDelegationResponseSDKType { + delegation_response?: DelegationResponseSDKType; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryUnbondingDelegationRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; + value: Uint8Array; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryUnbondingDelegationRequestAminoMsg { + type: "cosmos-sdk/QueryUnbondingDelegationRequest"; + value: QueryUnbondingDelegationRequestAmino; +} +/** + * QueryUnbondingDelegationRequest is request type for the + * Query/UnbondingDelegation RPC method. + */ +export interface QueryUnbondingDelegationRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponse { + /** unbond defines the unbonding information of a delegation. */ + unbond: UnbondingDelegation; +} +export interface QueryUnbondingDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; + value: Uint8Array; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponseAmino { + /** unbond defines the unbonding information of a delegation. */ + unbond?: UnbondingDelegationAmino; +} +export interface QueryUnbondingDelegationResponseAminoMsg { + type: "cosmos-sdk/QueryUnbondingDelegationResponse"; + value: QueryUnbondingDelegationResponseAmino; +} +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface QueryUnbondingDelegationResponseSDKType { + unbond: UnbondingDelegationSDKType; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorDelegationsRequest"; + value: QueryDelegatorDelegationsRequestAmino; +} +/** + * QueryDelegatorDelegationsRequest is request type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponse { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegationResponses: DelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponseAmino { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: DelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorDelegationsResponse"; + value: QueryDelegatorDelegationsResponseAmino; +} +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface QueryDelegatorDelegationsResponseSDKType { + delegation_responses: DelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest"; + value: QueryDelegatorUnbondingDelegationsRequestAmino; +} +/** + * QueryDelegatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorUnbondingDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponse { + unbondingResponses: UnbondingDelegation[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; + value: Uint8Array; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponseAmino { + unbonding_responses?: UnbondingDelegationAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse"; + value: QueryDelegatorUnbondingDelegationsResponseAmino; +} +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface QueryDelegatorUnbondingDelegationsResponseSDKType { + unbonding_responses: UnbondingDelegationSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** src_validator_addr defines the validator address to redelegate from. */ + srcValidatorAddr: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dstValidatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryRedelegationsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; + value: Uint8Array; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** src_validator_addr defines the validator address to redelegate from. */ + src_validator_addr?: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dst_validator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryRedelegationsRequestAminoMsg { + type: "cosmos-sdk/QueryRedelegationsRequest"; + value: QueryRedelegationsRequestAmino; +} +/** + * QueryRedelegationsRequest is request type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsRequestSDKType { + delegator_addr: string; + src_validator_addr: string; + dst_validator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponse { + redelegationResponses: RedelegationResponse[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryRedelegationsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; + value: Uint8Array; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponseAmino { + redelegation_responses?: RedelegationResponseAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryRedelegationsResponseAminoMsg { + type: "cosmos-sdk/QueryRedelegationsResponse"; + value: QueryRedelegationsResponseAmino; +} +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface QueryRedelegationsResponseSDKType { + redelegation_responses: RedelegationResponseSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDelegatorValidatorsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDelegatorValidatorsRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; + value: QueryDelegatorValidatorsRequestAmino; +} +/** + * QueryDelegatorValidatorsRequest is request type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsRequestSDKType { + delegator_addr: string; + pagination?: PageRequestSDKType; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponse { + /** validators defines the validators' info of a delegator. */ + validators: Validator[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDelegatorValidatorsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseAmino { + /** validators defines the validators' info of a delegator. */ + validators?: ValidatorAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDelegatorValidatorsResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; + value: QueryDelegatorValidatorsResponseAmino; +} +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface QueryDelegatorValidatorsResponseSDKType { + validators: ValidatorSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequest { + /** delegator_addr defines the delegator address to query for. */ + delegatorAddr: string; + /** validator_addr defines the validator address to query for. */ + validatorAddr: string; +} +export interface QueryDelegatorValidatorRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequestAmino { + /** delegator_addr defines the delegator address to query for. */ + delegator_addr?: string; + /** validator_addr defines the validator address to query for. */ + validator_addr?: string; +} +export interface QueryDelegatorValidatorRequestAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorRequest"; + value: QueryDelegatorValidatorRequestAmino; +} +/** + * QueryDelegatorValidatorRequest is request type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorRequestSDKType { + delegator_addr: string; + validator_addr: string; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponse { + /** validator defines the validator info. */ + validator: Validator; +} +export interface QueryDelegatorValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; + value: Uint8Array; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponseAmino { + /** validator defines the validator info. */ + validator?: ValidatorAmino; +} +export interface QueryDelegatorValidatorResponseAminoMsg { + type: "cosmos-sdk/QueryDelegatorValidatorResponse"; + value: QueryDelegatorValidatorResponseAmino; +} +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface QueryDelegatorValidatorResponseSDKType { + validator: ValidatorSDKType; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequest { + /** height defines at which height to query the historical info. */ + height: bigint; +} +export interface QueryHistoricalInfoRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; + value: Uint8Array; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequestAmino { + /** height defines at which height to query the historical info. */ + height?: string; +} +export interface QueryHistoricalInfoRequestAminoMsg { + type: "cosmos-sdk/QueryHistoricalInfoRequest"; + value: QueryHistoricalInfoRequestAmino; +} +/** + * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoRequestSDKType { + height: bigint; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponse { + /** hist defines the historical info at the given height. */ + hist?: HistoricalInfo; +} +export interface QueryHistoricalInfoResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; + value: Uint8Array; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponseAmino { + /** hist defines the historical info at the given height. */ + hist?: HistoricalInfoAmino; +} +export interface QueryHistoricalInfoResponseAminoMsg { + type: "cosmos-sdk/QueryHistoricalInfoResponse"; + value: QueryHistoricalInfoResponseAmino; +} +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface QueryHistoricalInfoResponseSDKType { + hist?: HistoricalInfoSDKType; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequest {} +export interface QueryPoolRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; + value: Uint8Array; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequestAmino {} +export interface QueryPoolRequestAminoMsg { + type: "cosmos-sdk/QueryPoolRequest"; + value: QueryPoolRequestAmino; +} +/** QueryPoolRequest is request type for the Query/Pool RPC method. */ +export interface QueryPoolRequestSDKType {} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponse { + /** pool defines the pool info. */ + pool: Pool; +} +export interface QueryPoolResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; + value: Uint8Array; +} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponseAmino { + /** pool defines the pool info. */ + pool?: PoolAmino; +} +export interface QueryPoolResponseAminoMsg { + type: "cosmos-sdk/QueryPoolResponse"; + value: QueryPoolResponseAmino; +} +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface QueryPoolResponseSDKType { + pool: PoolSDKType; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params holds all the parameters of this module. */ + params: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params holds all the parameters of this module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params: ParamsSDKType; +} +function createBaseQueryValidatorsRequest(): QueryValidatorsRequest { + return { + status: "", + pagination: undefined + }; +} +export const QueryValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + encode(message: QueryValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorsRequest { + const message = createBaseQueryValidatorsRequest(); + message.status = object.status ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest { + const message = createBaseQueryValidatorsRequest(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino { + const obj: any = {}; + obj.status = message.status === "" ? undefined : message.status; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest { + return QueryValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorsRequest", + value: QueryValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest { + return QueryValidatorsRequest.decode(message.value); + }, + toProto(message: QueryValidatorsRequest): Uint8Array { + return QueryValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", + value: QueryValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorsResponse(): QueryValidatorsResponse { + return { + validators: [], + pagination: undefined + }; +} +export const QueryValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + encode(message: QueryValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validators) { + Validator.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorsResponse { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse { + const message = createBaseQueryValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino { + const obj: any = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse { + return QueryValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorsResponse", + value: QueryValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse { + return QueryValidatorsResponse.decode(message.value); + }, + toProto(message: QueryValidatorsResponse): Uint8Array { + return QueryValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", + value: QueryValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorRequest(): QueryValidatorRequest { + return { + validatorAddr: "" + }; +} +export const QueryValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + encode(message: QueryValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorRequest { + const message = createBaseQueryValidatorRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest { + const message = createBaseQueryValidatorRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino { + const obj: any = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest { + return QueryValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorRequest", + value: QueryValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest { + return QueryValidatorRequest.decode(message.value); + }, + toProto(message: QueryValidatorRequest): Uint8Array { + return QueryValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", + value: QueryValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorResponse(): QueryValidatorResponse { + return { + validator: Validator.fromPartial({}) + }; +} +export const QueryValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + encode(message: QueryValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorResponse { + const message = createBaseQueryValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse { + const message = createBaseQueryValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino { + const obj: any = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse { + return QueryValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorResponse", + value: QueryValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse { + return QueryValidatorResponse.decode(message.value); + }, + toProto(message: QueryValidatorResponse): Uint8Array { + return QueryValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", + value: QueryValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsRequest(): QueryValidatorDelegationsRequest { + return { + validatorAddr: "", + pagination: undefined + }; +} +export const QueryValidatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + encode(message: QueryValidatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorDelegationsRequest { + const message = createBaseQueryValidatorDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest { + const message = createBaseQueryValidatorDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino { + const obj: any = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest { + return QueryValidatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorDelegationsRequest", + value: QueryValidatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest { + return QueryValidatorDelegationsRequest.decode(message.value); + }, + toProto(message: QueryValidatorDelegationsRequest): Uint8Array { + return QueryValidatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", + value: QueryValidatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorDelegationsResponse(): QueryValidatorDelegationsResponse { + return { + delegationResponses: [], + pagination: undefined + }; +} +export const QueryValidatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + encode(message: QueryValidatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.delegationResponses) { + DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorDelegationsResponse { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse { + const message = createBaseQueryValidatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino { + const obj: any = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); + } else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse { + return QueryValidatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorDelegationsResponse", + value: QueryValidatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse { + return QueryValidatorDelegationsResponse.decode(message.value); + }, + toProto(message: QueryValidatorDelegationsResponse): Uint8Array { + return QueryValidatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", + value: QueryValidatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsRequest(): QueryValidatorUnbondingDelegationsRequest { + return { + validatorAddr: "", + pagination: undefined + }; +} +export const QueryValidatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + encode(message: QueryValidatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validatorAddr !== "") { + writer.uint32(10).string(message.validatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + message.validatorAddr = object.validatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest { + const message = createBaseQueryValidatorUnbondingDelegationsRequest(); + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino { + const obj: any = {}; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest { + return QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", + value: QueryValidatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest { + return QueryValidatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array { + return QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", + value: QueryValidatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryValidatorUnbondingDelegationsResponse(): QueryValidatorUnbondingDelegationsResponse { + return { + unbondingResponses: [], + pagination: undefined + }; +} +export const QueryValidatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + encode(message: QueryValidatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.unbondingResponses) { + UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse { + const message = createBaseQueryValidatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino { + const obj: any = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse { + return QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", + value: QueryValidatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse { + return QueryValidatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array { + return QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", + value: QueryValidatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationRequest(): QueryDelegationRequest { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + encode(message: QueryDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationRequest { + const message = createBaseQueryDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest { + const message = createBaseQueryDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest { + return QueryDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationRequest", + value: QueryDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest { + return QueryDelegationRequest.decode(message.value); + }, + toProto(message: QueryDelegationRequest): Uint8Array { + return QueryDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", + value: QueryDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegationResponse(): QueryDelegationResponse { + return { + delegationResponse: undefined + }; +} +export const QueryDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + encode(message: QueryDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegationResponse !== undefined) { + DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponse = DelegationResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegationResponse { + const message = createBaseQueryDelegationResponse(); + message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? DelegationResponse.fromPartial(object.delegationResponse) : undefined; + return message; + }, + fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse { + const message = createBaseQueryDelegationResponse(); + if (object.delegation_response !== undefined && object.delegation_response !== null) { + message.delegationResponse = DelegationResponse.fromAmino(object.delegation_response); + } + return message; + }, + toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino { + const obj: any = {}; + obj.delegation_response = message.delegationResponse ? DelegationResponse.toAmino(message.delegationResponse) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse { + return QueryDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegationResponse", + value: QueryDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse { + return QueryDelegationResponse.decode(message.value); + }, + toProto(message: QueryDelegationResponse): Uint8Array { + return QueryDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", + value: QueryDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationRequest(): QueryUnbondingDelegationRequest { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryUnbondingDelegationRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + encode(message: QueryUnbondingDelegationRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUnbondingDelegationRequest { + const message = createBaseQueryUnbondingDelegationRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest { + const message = createBaseQueryUnbondingDelegationRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest { + return QueryUnbondingDelegationRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg { + return { + type: "cosmos-sdk/QueryUnbondingDelegationRequest", + value: QueryUnbondingDelegationRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest { + return QueryUnbondingDelegationRequest.decode(message.value); + }, + toProto(message: QueryUnbondingDelegationRequest): Uint8Array { + return QueryUnbondingDelegationRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", + value: QueryUnbondingDelegationRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUnbondingDelegationResponse(): QueryUnbondingDelegationResponse { + return { + unbond: UnbondingDelegation.fromPartial({}) + }; +} +export const QueryUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + encode(message: QueryUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.unbond !== undefined) { + UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbond = UnbondingDelegation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUnbondingDelegationResponse { + const message = createBaseQueryUnbondingDelegationResponse(); + message.unbond = object.unbond !== undefined && object.unbond !== null ? UnbondingDelegation.fromPartial(object.unbond) : undefined; + return message; + }, + fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse { + const message = createBaseQueryUnbondingDelegationResponse(); + if (object.unbond !== undefined && object.unbond !== null) { + message.unbond = UnbondingDelegation.fromAmino(object.unbond); + } + return message; + }, + toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino { + const obj: any = {}; + obj.unbond = message.unbond ? UnbondingDelegation.toAmino(message.unbond) : undefined; + return obj; + }, + fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse { + return QueryUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg { + return { + type: "cosmos-sdk/QueryUnbondingDelegationResponse", + value: QueryUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse { + return QueryUnbondingDelegationResponse.decode(message.value); + }, + toProto(message: QueryUnbondingDelegationResponse): Uint8Array { + return QueryUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", + value: QueryUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsRequest(): QueryDelegatorDelegationsRequest { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + encode(message: QueryDelegatorDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorDelegationsRequest { + const message = createBaseQueryDelegatorDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest { + const message = createBaseQueryDelegatorDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest { + return QueryDelegatorDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsRequest", + value: QueryDelegatorDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest { + return QueryDelegatorDelegationsRequest.decode(message.value); + }, + toProto(message: QueryDelegatorDelegationsRequest): Uint8Array { + return QueryDelegatorDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", + value: QueryDelegatorDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorDelegationsResponse(): QueryDelegatorDelegationsResponse { + return { + delegationResponses: [], + pagination: undefined + }; +} +export const QueryDelegatorDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + encode(message: QueryDelegatorDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.delegationResponses) { + DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorDelegationsResponse { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse { + const message = createBaseQueryDelegatorDelegationsResponse(); + message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino { + const obj: any = {}; + if (message.delegationResponses) { + obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); + } else { + obj.delegation_responses = message.delegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse { + return QueryDelegatorDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorDelegationsResponse", + value: QueryDelegatorDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse { + return QueryDelegatorDelegationsResponse.decode(message.value); + }, + toProto(message: QueryDelegatorDelegationsResponse): Uint8Array { + return QueryDelegatorDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", + value: QueryDelegatorDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsRequest(): QueryDelegatorUnbondingDelegationsRequest { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorUnbondingDelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + encode(message: QueryDelegatorUnbondingDelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest { + const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest { + return QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", + value: QueryDelegatorUnbondingDelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest { + return QueryDelegatorUnbondingDelegationsRequest.decode(message.value); + }, + toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array { + return QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", + value: QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorUnbondingDelegationsResponse(): QueryDelegatorUnbondingDelegationsResponse { + return { + unbondingResponses: [], + pagination: undefined + }; +} +export const QueryDelegatorUnbondingDelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + encode(message: QueryDelegatorUnbondingDelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.unbondingResponses) { + UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse { + const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); + message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino { + const obj: any = {}; + if (message.unbondingResponses) { + obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); + } else { + obj.unbonding_responses = message.unbondingResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse { + return QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", + value: QueryDelegatorUnbondingDelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse { + return QueryDelegatorUnbondingDelegationsResponse.decode(message.value); + }, + toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array { + return QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", + value: QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsRequest(): QueryRedelegationsRequest { + return { + delegatorAddr: "", + srcValidatorAddr: "", + dstValidatorAddr: "", + pagination: undefined + }; +} +export const QueryRedelegationsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + encode(message: QueryRedelegationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.srcValidatorAddr !== "") { + writer.uint32(18).string(message.srcValidatorAddr); + } + if (message.dstValidatorAddr !== "") { + writer.uint32(26).string(message.dstValidatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.srcValidatorAddr = reader.string(); + break; + case 3: + message.dstValidatorAddr = reader.string(); + break; + case 4: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryRedelegationsRequest { + const message = createBaseQueryRedelegationsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.srcValidatorAddr = object.srcValidatorAddr ?? ""; + message.dstValidatorAddr = object.dstValidatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest { + const message = createBaseQueryRedelegationsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { + message.srcValidatorAddr = object.src_validator_addr; + } + if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { + message.dstValidatorAddr = object.dst_validator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; + obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest { + return QueryRedelegationsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryRedelegationsRequest", + value: QueryRedelegationsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest { + return QueryRedelegationsRequest.decode(message.value); + }, + toProto(message: QueryRedelegationsRequest): Uint8Array { + return QueryRedelegationsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", + value: QueryRedelegationsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryRedelegationsResponse(): QueryRedelegationsResponse { + return { + redelegationResponses: [], + pagination: undefined + }; +} +export const QueryRedelegationsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + encode(message: QueryRedelegationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.redelegationResponses) { + RedelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryRedelegationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryRedelegationsResponse { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegationResponses?.map(e => RedelegationResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse { + const message = createBaseQueryRedelegationsResponse(); + message.redelegationResponses = object.redelegation_responses?.map(e => RedelegationResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino { + const obj: any = {}; + if (message.redelegationResponses) { + obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined); + } else { + obj.redelegation_responses = message.redelegationResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse { + return QueryRedelegationsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryRedelegationsResponse", + value: QueryRedelegationsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse { + return QueryRedelegationsResponse.decode(message.value); + }, + toProto(message: QueryRedelegationsResponse): Uint8Array { + return QueryRedelegationsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", + value: QueryRedelegationsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest { + return { + delegatorAddr: "", + pagination: undefined + }; +} +export const QueryDelegatorValidatorsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorsRequest { + const message = createBaseQueryDelegatorValidatorsRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest { + const message = createBaseQueryDelegatorValidatorsRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest { + return QueryDelegatorValidatorsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest { + return QueryDelegatorValidatorsRequest.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorsRequest): Uint8Array { + return QueryDelegatorValidatorsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", + value: QueryDelegatorValidatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse { + return { + validators: [], + pagination: undefined + }; +} +export const QueryDelegatorValidatorsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validators) { + Validator.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorsResponse { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse { + const message = createBaseQueryDelegatorValidatorsResponse(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino { + const obj: any = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse { + return QueryDelegatorValidatorsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse { + return QueryDelegatorValidatorsResponse.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorsResponse): Uint8Array { + return QueryDelegatorValidatorsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", + value: QueryDelegatorValidatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorRequest(): QueryDelegatorValidatorRequest { + return { + delegatorAddr: "", + validatorAddr: "" + }; +} +export const QueryDelegatorValidatorRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + encode(message: QueryDelegatorValidatorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddr !== "") { + writer.uint32(10).string(message.delegatorAddr); + } + if (message.validatorAddr !== "") { + writer.uint32(18).string(message.validatorAddr); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddr = reader.string(); + break; + case 2: + message.validatorAddr = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorRequest { + const message = createBaseQueryDelegatorValidatorRequest(); + message.delegatorAddr = object.delegatorAddr ?? ""; + message.validatorAddr = object.validatorAddr ?? ""; + return message; + }, + fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest { + const message = createBaseQueryDelegatorValidatorRequest(); + if (object.delegator_addr !== undefined && object.delegator_addr !== null) { + message.delegatorAddr = object.delegator_addr; + } + if (object.validator_addr !== undefined && object.validator_addr !== null) { + message.validatorAddr = object.validator_addr; + } + return message; + }, + toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino { + const obj: any = {}; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest { + return QueryDelegatorValidatorRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorRequest", + value: QueryDelegatorValidatorRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest { + return QueryDelegatorValidatorRequest.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorRequest): Uint8Array { + return QueryDelegatorValidatorRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", + value: QueryDelegatorValidatorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDelegatorValidatorResponse(): QueryDelegatorValidatorResponse { + return { + validator: Validator.fromPartial({}) + }; +} +export const QueryDelegatorValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + encode(message: QueryDelegatorValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDelegatorValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDelegatorValidatorResponse { + const message = createBaseQueryDelegatorValidatorResponse(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + return message; + }, + fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse { + const message = createBaseQueryDelegatorValidatorResponse(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + return message; + }, + toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino { + const obj: any = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse { + return QueryDelegatorValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDelegatorValidatorResponse", + value: QueryDelegatorValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse { + return QueryDelegatorValidatorResponse.decode(message.value); + }, + toProto(message: QueryDelegatorValidatorResponse): Uint8Array { + return QueryDelegatorValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", + value: QueryDelegatorValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoRequest(): QueryHistoricalInfoRequest { + return { + height: BigInt(0) + }; +} +export const QueryHistoricalInfoRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + encode(message: QueryHistoricalInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryHistoricalInfoRequest { + const message = createBaseQueryHistoricalInfoRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest { + const message = createBaseQueryHistoricalInfoRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest { + return QueryHistoricalInfoRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg { + return { + type: "cosmos-sdk/QueryHistoricalInfoRequest", + value: QueryHistoricalInfoRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest { + return QueryHistoricalInfoRequest.decode(message.value); + }, + toProto(message: QueryHistoricalInfoRequest): Uint8Array { + return QueryHistoricalInfoRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", + value: QueryHistoricalInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryHistoricalInfoResponse(): QueryHistoricalInfoResponse { + return { + hist: undefined + }; +} +export const QueryHistoricalInfoResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + encode(message: QueryHistoricalInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hist !== undefined) { + HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryHistoricalInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hist = HistoricalInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryHistoricalInfoResponse { + const message = createBaseQueryHistoricalInfoResponse(); + message.hist = object.hist !== undefined && object.hist !== null ? HistoricalInfo.fromPartial(object.hist) : undefined; + return message; + }, + fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse { + const message = createBaseQueryHistoricalInfoResponse(); + if (object.hist !== undefined && object.hist !== null) { + message.hist = HistoricalInfo.fromAmino(object.hist); + } + return message; + }, + toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino { + const obj: any = {}; + obj.hist = message.hist ? HistoricalInfo.toAmino(message.hist) : undefined; + return obj; + }, + fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse { + return QueryHistoricalInfoResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg { + return { + type: "cosmos-sdk/QueryHistoricalInfoResponse", + value: QueryHistoricalInfoResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse { + return QueryHistoricalInfoResponse.decode(message.value); + }, + toProto(message: QueryHistoricalInfoResponse): Uint8Array { + return QueryHistoricalInfoResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", + value: QueryHistoricalInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryPoolRequest(): QueryPoolRequest { + return {}; +} +export const QueryPoolRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + encode(_: QueryPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryPoolRequest { + const message = createBaseQueryPoolRequest(); + return message; + }, + fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest { + const message = createBaseQueryPoolRequest(); + return message; + }, + toAmino(_: QueryPoolRequest): QueryPoolRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest { + return QueryPoolRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg { + return { + type: "cosmos-sdk/QueryPoolRequest", + value: QueryPoolRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest { + return QueryPoolRequest.decode(message.value); + }, + toProto(message: QueryPoolRequest): Uint8Array { + return QueryPoolRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", + value: QueryPoolRequest.encode(message).finish() + }; + } +}; +function createBaseQueryPoolResponse(): QueryPoolResponse { + return { + pool: Pool.fromPartial({}) + }; +} +export const QueryPoolResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + encode(message: QueryPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pool !== undefined) { + Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryPoolResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pool = Pool.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryPoolResponse { + const message = createBaseQueryPoolResponse(); + message.pool = object.pool !== undefined && object.pool !== null ? Pool.fromPartial(object.pool) : undefined; + return message; + }, + fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse { + const message = createBaseQueryPoolResponse(); + if (object.pool !== undefined && object.pool !== null) { + message.pool = Pool.fromAmino(object.pool); + } + return message; + }, + toAmino(message: QueryPoolResponse): QueryPoolResponseAmino { + const obj: any = {}; + obj.pool = message.pool ? Pool.toAmino(message.pool) : undefined; + return obj; + }, + fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse { + return QueryPoolResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg { + return { + type: "cosmos-sdk/QueryPoolResponse", + value: QueryPoolResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse { + return QueryPoolResponse.decode(message.value); + }, + toProto(message: QueryPoolResponse): Uint8Array { + return QueryPoolResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", + value: QueryPoolResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: Params.fromPartial({}) + }; +} +export const QueryParamsResponse = { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/staking.ts b/packages/api/src/cosmos/staking/v1beta1/staking.ts new file mode 100644 index 00000000..53b16fc9 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/staking.ts @@ -0,0 +1,2764 @@ +//@ts-nocheck +import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; +import { Pubkey } from "@cosmjs/amino"; +/** BondStatus is the status of a validator. */ +export enum BondStatus { + /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ + BOND_STATUS_UNSPECIFIED = 0, + /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ + BOND_STATUS_UNBONDED = 1, + /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ + BOND_STATUS_UNBONDING = 2, + /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ + BOND_STATUS_BONDED = 3, + UNRECOGNIZED = -1, +} +export const BondStatusSDKType = BondStatus; +export const BondStatusAmino = BondStatus; +export function bondStatusFromJSON(object: any): BondStatus { + switch (object) { + case 0: + case "BOND_STATUS_UNSPECIFIED": + return BondStatus.BOND_STATUS_UNSPECIFIED; + case 1: + case "BOND_STATUS_UNBONDED": + return BondStatus.BOND_STATUS_UNBONDED; + case 2: + case "BOND_STATUS_UNBONDING": + return BondStatus.BOND_STATUS_UNBONDING; + case 3: + case "BOND_STATUS_BONDED": + return BondStatus.BOND_STATUS_BONDED; + case -1: + case "UNRECOGNIZED": + default: + return BondStatus.UNRECOGNIZED; + } +} +export function bondStatusToJSON(object: BondStatus): string { + switch (object) { + case BondStatus.BOND_STATUS_UNSPECIFIED: + return "BOND_STATUS_UNSPECIFIED"; + case BondStatus.BOND_STATUS_UNBONDED: + return "BOND_STATUS_UNBONDED"; + case BondStatus.BOND_STATUS_UNBONDING: + return "BOND_STATUS_UNBONDING"; + case BondStatus.BOND_STATUS_BONDED: + return "BOND_STATUS_BONDED"; + case BondStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfo { + header: Header; + valset: Validator[]; +} +export interface HistoricalInfoProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; + value: Uint8Array; +} +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfoAmino { + header?: HeaderAmino; + valset?: ValidatorAmino[]; +} +export interface HistoricalInfoAminoMsg { + type: "cosmos-sdk/HistoricalInfo"; + value: HistoricalInfoAmino; +} +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface HistoricalInfoSDKType { + header: HeaderSDKType; + valset: ValidatorSDKType[]; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRates { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + maxRate: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + maxChangeRate: string; +} +export interface CommissionRatesProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; + value: Uint8Array; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRatesAmino { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; +} +export interface CommissionRatesAminoMsg { + type: "cosmos-sdk/CommissionRates"; + value: CommissionRatesAmino; +} +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CommissionRatesSDKType { + rate: string; + max_rate: string; + max_change_rate: string; +} +/** Commission defines commission parameters for a given validator. */ +export interface Commission { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commissionRates: CommissionRates; + /** update_time is the last time the commission rate was changed. */ + updateTime: Date; +} +export interface CommissionProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Commission"; + value: Uint8Array; +} +/** Commission defines commission parameters for a given validator. */ +export interface CommissionAmino { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: CommissionRatesAmino; + /** update_time is the last time the commission rate was changed. */ + update_time?: string; +} +export interface CommissionAminoMsg { + type: "cosmos-sdk/Commission"; + value: CommissionAmino; +} +/** Commission defines commission parameters for a given validator. */ +export interface CommissionSDKType { + commission_rates: CommissionRatesSDKType; + update_time: Date; +} +/** Description defines a validator description. */ +export interface Description { + /** moniker defines a human-readable name for the validator. */ + moniker: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity: string; + /** website defines an optional website link. */ + website: string; + /** security_contact defines an optional email for security contact. */ + securityContact: string; + /** details define other optional details. */ + details: string; +} +export interface DescriptionProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Description"; + value: Uint8Array; +} +/** Description defines a validator description. */ +export interface DescriptionAmino { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; +} +export interface DescriptionAminoMsg { + type: "cosmos-sdk/Description"; + value: DescriptionAmino; +} +/** Description defines a validator description. */ +export interface DescriptionSDKType { + moniker: string; + identity: string; + website: string; + security_contact: string; + details: string; +} +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface Validator { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operatorAddress: string; + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ + consensusPubkey?: Any | undefined; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed: boolean; + /** status is the validator status (bonded/unbonding/unbonded). */ + status: BondStatus; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegatorShares: string; + /** description defines the description terms for the validator. */ + description: Description; + /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ + unbondingHeight: bigint; + /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ + unbondingTime: Date; + /** commission defines the commission parameters. */ + commission: Commission; + /** + * min_self_delegation is the validator's self declared minimum self delegation. + * + * Since: cosmos-sdk 0.46 + */ + minSelfDelegation: string; +} +export interface ValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Validator"; + value: Uint8Array; +} +export type ValidatorEncoded = Omit & { + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */consensusPubkey?: AnyProtoMsg | undefined; +}; +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface ValidatorAmino { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ + consensus_pubkey?: AnyAmino; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** status is the validator status (bonded/unbonding/unbonded). */ + status?: BondStatus; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: DescriptionAmino; + /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ + unbonding_height?: string; + /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: CommissionAmino; + /** + * min_self_delegation is the validator's self declared minimum self delegation. + * + * Since: cosmos-sdk 0.46 + */ + min_self_delegation?: string; +} +export interface ValidatorAminoMsg { + type: "cosmos-sdk/Validator"; + value: ValidatorAmino; +} +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface ValidatorSDKType { + operator_address: string; + consensus_pubkey?: AnySDKType | undefined; + jailed: boolean; + status: BondStatus; + tokens: string; + delegator_shares: string; + description: DescriptionSDKType; + unbonding_height: bigint; + unbonding_time: Date; + commission: CommissionSDKType; + min_self_delegation: string; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddresses { + addresses: string[]; +} +export interface ValAddressesProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; + value: Uint8Array; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddressesAmino { + addresses?: string[]; +} +export interface ValAddressesAminoMsg { + type: "cosmos-sdk/ValAddresses"; + value: ValAddressesAmino; +} +/** ValAddresses defines a repeated set of validator addresses. */ +export interface ValAddressesSDKType { + addresses: string[]; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPair { + delegatorAddress: string; + validatorAddress: string; +} +export interface DVPairProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVPair"; + value: Uint8Array; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPairAmino { + delegator_address?: string; + validator_address?: string; +} +export interface DVPairAminoMsg { + type: "cosmos-sdk/DVPair"; + value: DVPairAmino; +} +/** + * DVPair is struct that just has a delegator-validator pair with no other data. + * It is intended to be used as a marshalable pointer. For example, a DVPair can + * be used to construct the key to getting an UnbondingDelegation from state. + */ +export interface DVPairSDKType { + delegator_address: string; + validator_address: string; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairs { + pairs: DVPair[]; +} +export interface DVPairsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVPairs"; + value: Uint8Array; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairsAmino { + pairs?: DVPairAmino[]; +} +export interface DVPairsAminoMsg { + type: "cosmos-sdk/DVPairs"; + value: DVPairsAmino; +} +/** DVPairs defines an array of DVPair objects. */ +export interface DVPairsSDKType { + pairs: DVPairSDKType[]; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTriplet { + delegatorAddress: string; + validatorSrcAddress: string; + validatorDstAddress: string; +} +export interface DVVTripletProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; + value: Uint8Array; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTripletAmino { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; +} +export interface DVVTripletAminoMsg { + type: "cosmos-sdk/DVVTriplet"; + value: DVVTripletAmino; +} +/** + * DVVTriplet is struct that just has a delegator-validator-validator triplet + * with no other data. It is intended to be used as a marshalable pointer. For + * example, a DVVTriplet can be used to construct the key to getting a + * Redelegation from state. + */ +export interface DVVTripletSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTriplets { + triplets: DVVTriplet[]; +} +export interface DVVTripletsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; + value: Uint8Array; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTripletsAmino { + triplets?: DVVTripletAmino[]; +} +export interface DVVTripletsAminoMsg { + type: "cosmos-sdk/DVVTriplets"; + value: DVVTripletsAmino; +} +/** DVVTriplets defines an array of DVVTriplet objects. */ +export interface DVVTripletsSDKType { + triplets: DVVTripletSDKType[]; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface Delegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_address is the bech32-encoded address of the validator. */ + validatorAddress: string; + /** shares define the delegation shares received. */ + shares: string; +} +export interface DelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Delegation"; + value: Uint8Array; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface DelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; +} +export interface DelegationAminoMsg { + type: "cosmos-sdk/Delegation"; + value: DelegationAmino; +} +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface DelegationSDKType { + delegator_address: string; + validator_address: string; + shares: string; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_address is the bech32-encoded address of the validator. */ + validatorAddress: string; + /** entries are the unbonding delegation entries. */ + entries: UnbondingDelegationEntry[]; +} +export interface UnbondingDelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; + value: Uint8Array; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: UnbondingDelegationEntryAmino[]; +} +export interface UnbondingDelegationAminoMsg { + type: "cosmos-sdk/UnbondingDelegation"; + value: UnbondingDelegationAmino; +} +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface UnbondingDelegationSDKType { + delegator_address: string; + validator_address: string; + entries: UnbondingDelegationEntrySDKType[]; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntry { + /** creation_height is the height which the unbonding took place. */ + creationHeight: bigint; + /** completion_time is the unix time for unbonding completion. */ + completionTime: Date; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initialBalance: string; + /** balance defines the tokens to receive at completion. */ + balance: string; +} +export interface UnbondingDelegationEntryProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; + value: Uint8Array; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntryAmino { + /** creation_height is the height which the unbonding took place. */ + creation_height?: string; + /** completion_time is the unix time for unbonding completion. */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; +} +export interface UnbondingDelegationEntryAminoMsg { + type: "cosmos-sdk/UnbondingDelegationEntry"; + value: UnbondingDelegationEntryAmino; +} +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface UnbondingDelegationEntrySDKType { + creation_height: bigint; + completion_time: Date; + initial_balance: string; + balance: string; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntry { + /** creation_height defines the height which the redelegation took place. */ + creationHeight: bigint; + /** completion_time defines the unix time for redelegation completion. */ + completionTime: Date; + /** initial_balance defines the initial balance when redelegation started. */ + initialBalance: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + sharesDst: string; +} +export interface RedelegationEntryProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; + value: Uint8Array; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntryAmino { + /** creation_height defines the height which the redelegation took place. */ + creation_height?: string; + /** completion_time defines the unix time for redelegation completion. */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; +} +export interface RedelegationEntryAminoMsg { + type: "cosmos-sdk/RedelegationEntry"; + value: RedelegationEntryAmino; +} +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface RedelegationEntrySDKType { + creation_height: bigint; + completion_time: Date; + initial_balance: string; + shares_dst: string; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface Redelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegatorAddress: string; + /** validator_src_address is the validator redelegation source operator address. */ + validatorSrcAddress: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validatorDstAddress: string; + /** entries are the redelegation entries. */ + entries: RedelegationEntry[]; +} +export interface RedelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Redelegation"; + value: Uint8Array; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface RedelegationAmino { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: RedelegationEntryAmino[]; +} +export interface RedelegationAminoMsg { + type: "cosmos-sdk/Redelegation"; + value: RedelegationAmino; +} +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface RedelegationSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; + entries: RedelegationEntrySDKType[]; +} +/** Params defines the parameters for the staking module. */ +export interface Params { + /** unbonding_time is the time duration of unbonding. */ + unbondingTime: Duration; + /** max_validators is the maximum number of validators. */ + maxValidators: number; + /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ + maxEntries: number; + /** historical_entries is the number of historical entries to persist. */ + historicalEntries: number; + /** bond_denom defines the bondable coin denomination. */ + bondDenom: string; + /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ + minCommissionRate: string; +} +export interface ParamsProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Params"; + value: Uint8Array; +} +/** Params defines the parameters for the staking module. */ +export interface ParamsAmino { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: DurationAmino; + /** max_validators is the maximum number of validators. */ + max_validators?: number; + /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ + max_entries?: number; + /** historical_entries is the number of historical entries to persist. */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ + min_commission_rate?: string; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the parameters for the staking module. */ +export interface ParamsSDKType { + unbonding_time: DurationSDKType; + max_validators: number; + max_entries: number; + historical_entries: number; + bond_denom: string; + min_commission_rate: string; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponse { + delegation: Delegation; + balance: Coin; +} +export interface DelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; + value: Uint8Array; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponseAmino { + delegation?: DelegationAmino; + balance?: CoinAmino; +} +export interface DelegationResponseAminoMsg { + type: "cosmos-sdk/DelegationResponse"; + value: DelegationResponseAmino; +} +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface DelegationResponseSDKType { + delegation: DelegationSDKType; + balance: CoinSDKType; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponse { + redelegationEntry: RedelegationEntry; + balance: string; +} +export interface RedelegationEntryResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; + value: Uint8Array; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponseAmino { + redelegation_entry?: RedelegationEntryAmino; + balance?: string; +} +export interface RedelegationEntryResponseAminoMsg { + type: "cosmos-sdk/RedelegationEntryResponse"; + value: RedelegationEntryResponseAmino; +} +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationEntryResponseSDKType { + redelegation_entry: RedelegationEntrySDKType; + balance: string; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponse { + redelegation: Redelegation; + entries: RedelegationEntryResponse[]; +} +export interface RedelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; + value: Uint8Array; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponseAmino { + redelegation?: RedelegationAmino; + entries?: RedelegationEntryResponseAmino[]; +} +export interface RedelegationResponseAminoMsg { + type: "cosmos-sdk/RedelegationResponse"; + value: RedelegationResponseAmino; +} +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface RedelegationResponseSDKType { + redelegation: RedelegationSDKType; + entries: RedelegationEntryResponseSDKType[]; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface Pool { + notBondedTokens: string; + bondedTokens: string; +} +export interface PoolProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.Pool"; + value: Uint8Array; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface PoolAmino { + not_bonded_tokens: string; + bonded_tokens: string; +} +export interface PoolAminoMsg { + type: "cosmos-sdk/Pool"; + value: PoolAmino; +} +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface PoolSDKType { + not_bonded_tokens: string; + bonded_tokens: string; +} +function createBaseHistoricalInfo(): HistoricalInfo { + return { + header: Header.fromPartial({}), + valset: [] + }; +} +export const HistoricalInfo = { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + encode(message: HistoricalInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.valset) { + Validator.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHistoricalInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.valset.push(Validator.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): HistoricalInfo { + const message = createBaseHistoricalInfo(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.valset = object.valset?.map(e => Validator.fromPartial(e)) || []; + return message; + }, + fromAmino(object: HistoricalInfoAmino): HistoricalInfo { + const message = createBaseHistoricalInfo(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + message.valset = object.valset?.map(e => Validator.fromAmino(e)) || []; + return message; + }, + toAmino(message: HistoricalInfo): HistoricalInfoAmino { + const obj: any = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + if (message.valset) { + obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.valset = message.valset; + } + return obj; + }, + fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo { + return HistoricalInfo.fromAmino(object.value); + }, + toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg { + return { + type: "cosmos-sdk/HistoricalInfo", + value: HistoricalInfo.toAmino(message) + }; + }, + fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo { + return HistoricalInfo.decode(message.value); + }, + toProto(message: HistoricalInfo): Uint8Array { + return HistoricalInfo.encode(message).finish(); + }, + toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", + value: HistoricalInfo.encode(message).finish() + }; + } +}; +function createBaseCommissionRates(): CommissionRates { + return { + rate: "", + maxRate: "", + maxChangeRate: "" + }; +} +export const CommissionRates = { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + encode(message: CommissionRates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.rate !== "") { + writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics); + } + if (message.maxRate !== "") { + writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics); + } + if (message.maxChangeRate !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommissionRates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 2: + message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 3: + message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CommissionRates { + const message = createBaseCommissionRates(); + message.rate = object.rate ?? ""; + message.maxRate = object.maxRate ?? ""; + message.maxChangeRate = object.maxChangeRate ?? ""; + return message; + }, + fromAmino(object: CommissionRatesAmino): CommissionRates { + const message = createBaseCommissionRates(); + if (object.rate !== undefined && object.rate !== null) { + message.rate = object.rate; + } + if (object.max_rate !== undefined && object.max_rate !== null) { + message.maxRate = object.max_rate; + } + if (object.max_change_rate !== undefined && object.max_change_rate !== null) { + message.maxChangeRate = object.max_change_rate; + } + return message; + }, + toAmino(message: CommissionRates): CommissionRatesAmino { + const obj: any = {}; + obj.rate = message.rate === "" ? undefined : message.rate; + obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; + obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; + return obj; + }, + fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates { + return CommissionRates.fromAmino(object.value); + }, + toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg { + return { + type: "cosmos-sdk/CommissionRates", + value: CommissionRates.toAmino(message) + }; + }, + fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates { + return CommissionRates.decode(message.value); + }, + toProto(message: CommissionRates): Uint8Array { + return CommissionRates.encode(message).finish(); + }, + toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.CommissionRates", + value: CommissionRates.encode(message).finish() + }; + } +}; +function createBaseCommission(): Commission { + return { + commissionRates: CommissionRates.fromPartial({}), + updateTime: new Date() + }; +} +export const Commission = { + typeUrl: "/cosmos.staking.v1beta1.Commission", + encode(message: Commission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.commissionRates !== undefined) { + CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); + } + if (message.updateTime !== undefined) { + Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Commission { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.commissionRates = CommissionRates.decode(reader, reader.uint32()); + break; + case 2: + message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Commission { + const message = createBaseCommission(); + message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined; + message.updateTime = object.updateTime ?? undefined; + return message; + }, + fromAmino(object: CommissionAmino): Commission { + const message = createBaseCommission(); + if (object.commission_rates !== undefined && object.commission_rates !== null) { + message.commissionRates = CommissionRates.fromAmino(object.commission_rates); + } + if (object.update_time !== undefined && object.update_time !== null) { + message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time)); + } + return message; + }, + toAmino(message: Commission): CommissionAmino { + const obj: any = {}; + obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined; + obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined; + return obj; + }, + fromAminoMsg(object: CommissionAminoMsg): Commission { + return Commission.fromAmino(object.value); + }, + toAminoMsg(message: Commission): CommissionAminoMsg { + return { + type: "cosmos-sdk/Commission", + value: Commission.toAmino(message) + }; + }, + fromProtoMsg(message: CommissionProtoMsg): Commission { + return Commission.decode(message.value); + }, + toProto(message: Commission): Uint8Array { + return Commission.encode(message).finish(); + }, + toProtoMsg(message: Commission): CommissionProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Commission", + value: Commission.encode(message).finish() + }; + } +}; +function createBaseDescription(): Description { + return { + moniker: "", + identity: "", + website: "", + securityContact: "", + details: "" + }; +} +export const Description = { + typeUrl: "/cosmos.staking.v1beta1.Description", + encode(message: Description, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.moniker !== "") { + writer.uint32(10).string(message.moniker); + } + if (message.identity !== "") { + writer.uint32(18).string(message.identity); + } + if (message.website !== "") { + writer.uint32(26).string(message.website); + } + if (message.securityContact !== "") { + writer.uint32(34).string(message.securityContact); + } + if (message.details !== "") { + writer.uint32(42).string(message.details); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Description { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescription(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moniker = reader.string(); + break; + case 2: + message.identity = reader.string(); + break; + case 3: + message.website = reader.string(); + break; + case 4: + message.securityContact = reader.string(); + break; + case 5: + message.details = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Description { + const message = createBaseDescription(); + message.moniker = object.moniker ?? ""; + message.identity = object.identity ?? ""; + message.website = object.website ?? ""; + message.securityContact = object.securityContact ?? ""; + message.details = object.details ?? ""; + return message; + }, + fromAmino(object: DescriptionAmino): Description { + const message = createBaseDescription(); + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.identity !== undefined && object.identity !== null) { + message.identity = object.identity; + } + if (object.website !== undefined && object.website !== null) { + message.website = object.website; + } + if (object.security_contact !== undefined && object.security_contact !== null) { + message.securityContact = object.security_contact; + } + if (object.details !== undefined && object.details !== null) { + message.details = object.details; + } + return message; + }, + toAmino(message: Description): DescriptionAmino { + const obj: any = {}; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.identity = message.identity === "" ? undefined : message.identity; + obj.website = message.website === "" ? undefined : message.website; + obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; + obj.details = message.details === "" ? undefined : message.details; + return obj; + }, + fromAminoMsg(object: DescriptionAminoMsg): Description { + return Description.fromAmino(object.value); + }, + toAminoMsg(message: Description): DescriptionAminoMsg { + return { + type: "cosmos-sdk/Description", + value: Description.toAmino(message) + }; + }, + fromProtoMsg(message: DescriptionProtoMsg): Description { + return Description.decode(message.value); + }, + toProto(message: Description): Uint8Array { + return Description.encode(message).finish(); + }, + toProtoMsg(message: Description): DescriptionProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Description", + value: Description.encode(message).finish() + }; + } +}; +function createBaseValidator(): Validator { + return { + operatorAddress: "", + consensusPubkey: undefined, + jailed: false, + status: 0, + tokens: "", + delegatorShares: "", + description: Description.fromPartial({}), + unbondingHeight: BigInt(0), + unbondingTime: new Date(), + commission: Commission.fromPartial({}), + minSelfDelegation: "" + }; +} +export const Validator = { + typeUrl: "/cosmos.staking.v1beta1.Validator", + encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.operatorAddress !== "") { + writer.uint32(10).string(message.operatorAddress); + } + if (message.consensusPubkey !== undefined) { + Any.encode((message.consensusPubkey as Any), writer.uint32(18).fork()).ldelim(); + } + if (message.jailed === true) { + writer.uint32(24).bool(message.jailed); + } + if (message.status !== 0) { + writer.uint32(32).int32(message.status); + } + if (message.tokens !== "") { + writer.uint32(42).string(message.tokens); + } + if (message.delegatorShares !== "") { + writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics); + } + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(58).fork()).ldelim(); + } + if (message.unbondingHeight !== BigInt(0)) { + writer.uint32(64).int64(message.unbondingHeight); + } + if (message.unbondingTime !== undefined) { + Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim(); + } + if (message.commission !== undefined) { + Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(90).string(message.minSelfDelegation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Validator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operatorAddress = reader.string(); + break; + case 2: + message.consensusPubkey = (Cosmos_cryptoPubKey_InterfaceDecoder(reader) as Any); + break; + case 3: + message.jailed = reader.bool(); + break; + case 4: + message.status = (reader.int32() as any); + break; + case 5: + message.tokens = reader.string(); + break; + case 6: + message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 7: + message.description = Description.decode(reader, reader.uint32()); + break; + case 8: + message.unbondingHeight = reader.int64(); + break; + case 9: + message.unbondingTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.commission = Commission.decode(reader, reader.uint32()); + break; + case 11: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Validator { + const message = createBaseValidator(); + message.operatorAddress = object.operatorAddress ?? ""; + message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? Any.fromPartial(object.consensusPubkey) : undefined; + message.jailed = object.jailed ?? false; + message.status = object.status ?? 0; + message.tokens = object.tokens ?? ""; + message.delegatorShares = object.delegatorShares ?? ""; + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); + message.unbondingTime = object.unbondingTime ?? undefined; + message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object: ValidatorAmino): Validator { + const message = createBaseValidator(); + if (object.operator_address !== undefined && object.operator_address !== null) { + message.operatorAddress = object.operator_address; + } + if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { + message.consensusPubkey = encodePubkey(object.consensus_pubkey); + } + if (object.jailed !== undefined && object.jailed !== null) { + message.jailed = object.jailed; + } + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + if (object.tokens !== undefined && object.tokens !== null) { + message.tokens = object.tokens; + } + if (object.delegator_shares !== undefined && object.delegator_shares !== null) { + message.delegatorShares = object.delegator_shares; + } + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.unbonding_height !== undefined && object.unbonding_height !== null) { + message.unbondingHeight = BigInt(object.unbonding_height); + } + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = fromTimestamp(Timestamp.fromAmino(object.unbonding_time)); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = Commission.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message: Validator): ValidatorAmino { + const obj: any = {}; + obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; + obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined; + obj.jailed = message.jailed === false ? undefined : message.jailed; + obj.status = message.status === 0 ? undefined : message.status; + obj.tokens = message.tokens === "" ? undefined : message.tokens; + obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; + obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : undefined; + obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object: ValidatorAminoMsg): Validator { + return Validator.fromAmino(object.value); + }, + toAminoMsg(message: Validator): ValidatorAminoMsg { + return { + type: "cosmos-sdk/Validator", + value: Validator.toAmino(message) + }; + }, + fromProtoMsg(message: ValidatorProtoMsg): Validator { + return Validator.decode(message.value); + }, + toProto(message: Validator): Uint8Array { + return Validator.encode(message).finish(); + }, + toProtoMsg(message: Validator): ValidatorProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseValAddresses(): ValAddresses { + return { + addresses: [] + }; +} +export const ValAddresses = { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + encode(message: ValAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.addresses) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValAddresses(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.addresses.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValAddresses { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + fromAmino(object: ValAddressesAmino): ValAddresses { + const message = createBaseValAddresses(); + message.addresses = object.addresses?.map(e => e) || []; + return message; + }, + toAmino(message: ValAddresses): ValAddressesAmino { + const obj: any = {}; + if (message.addresses) { + obj.addresses = message.addresses.map(e => e); + } else { + obj.addresses = message.addresses; + } + return obj; + }, + fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses { + return ValAddresses.fromAmino(object.value); + }, + toAminoMsg(message: ValAddresses): ValAddressesAminoMsg { + return { + type: "cosmos-sdk/ValAddresses", + value: ValAddresses.toAmino(message) + }; + }, + fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses { + return ValAddresses.decode(message.value); + }, + toProto(message: ValAddresses): Uint8Array { + return ValAddresses.encode(message).finish(); + }, + toProtoMsg(message: ValAddresses): ValAddressesProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.ValAddresses", + value: ValAddresses.encode(message).finish() + }; + } +}; +function createBaseDVPair(): DVPair { + return { + delegatorAddress: "", + validatorAddress: "" + }; +} +export const DVPair = { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + encode(message: DVPair, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DVPair { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPair(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DVPair { + const message = createBaseDVPair(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + return message; + }, + fromAmino(object: DVPairAmino): DVPair { + const message = createBaseDVPair(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + return message; + }, + toAmino(message: DVPair): DVPairAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + return obj; + }, + fromAminoMsg(object: DVPairAminoMsg): DVPair { + return DVPair.fromAmino(object.value); + }, + toAminoMsg(message: DVPair): DVPairAminoMsg { + return { + type: "cosmos-sdk/DVPair", + value: DVPair.toAmino(message) + }; + }, + fromProtoMsg(message: DVPairProtoMsg): DVPair { + return DVPair.decode(message.value); + }, + toProto(message: DVPair): Uint8Array { + return DVPair.encode(message).finish(); + }, + toProtoMsg(message: DVPair): DVPairProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPair", + value: DVPair.encode(message).finish() + }; + } +}; +function createBaseDVPairs(): DVPairs { + return { + pairs: [] + }; +} +export const DVPairs = { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + encode(message: DVPairs, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.pairs) { + DVPair.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DVPairs { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVPairs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pairs.push(DVPair.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DVPairs { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => DVPair.fromPartial(e)) || []; + return message; + }, + fromAmino(object: DVPairsAmino): DVPairs { + const message = createBaseDVPairs(); + message.pairs = object.pairs?.map(e => DVPair.fromAmino(e)) || []; + return message; + }, + toAmino(message: DVPairs): DVPairsAmino { + const obj: any = {}; + if (message.pairs) { + obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined); + } else { + obj.pairs = message.pairs; + } + return obj; + }, + fromAminoMsg(object: DVPairsAminoMsg): DVPairs { + return DVPairs.fromAmino(object.value); + }, + toAminoMsg(message: DVPairs): DVPairsAminoMsg { + return { + type: "cosmos-sdk/DVPairs", + value: DVPairs.toAmino(message) + }; + }, + fromProtoMsg(message: DVPairsProtoMsg): DVPairs { + return DVPairs.decode(message.value); + }, + toProto(message: DVPairs): Uint8Array { + return DVPairs.encode(message).finish(); + }, + toProtoMsg(message: DVPairs): DVPairsProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.DVPairs", + value: DVPairs.encode(message).finish() + }; + } +}; +function createBaseDVVTriplet(): DVVTriplet { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "" + }; +} +export const DVVTriplet = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + encode(message: DVVTriplet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DVVTriplet { + const message = createBaseDVVTriplet(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + return message; + }, + fromAmino(object: DVVTripletAmino): DVVTriplet { + const message = createBaseDVVTriplet(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + return message; + }, + toAmino(message: DVVTriplet): DVVTripletAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + return obj; + }, + fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet { + return DVVTriplet.fromAmino(object.value); + }, + toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg { + return { + type: "cosmos-sdk/DVVTriplet", + value: DVVTriplet.toAmino(message) + }; + }, + fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet { + return DVVTriplet.decode(message.value); + }, + toProto(message: DVVTriplet): Uint8Array { + return DVVTriplet.encode(message).finish(); + }, + toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", + value: DVVTriplet.encode(message).finish() + }; + } +}; +function createBaseDVVTriplets(): DVVTriplets { + return { + triplets: [] + }; +} +export const DVVTriplets = { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + encode(message: DVVTriplets, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.triplets) { + DVVTriplet.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDVVTriplets(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.triplets.push(DVVTriplet.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DVVTriplets { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => DVVTriplet.fromPartial(e)) || []; + return message; + }, + fromAmino(object: DVVTripletsAmino): DVVTriplets { + const message = createBaseDVVTriplets(); + message.triplets = object.triplets?.map(e => DVVTriplet.fromAmino(e)) || []; + return message; + }, + toAmino(message: DVVTriplets): DVVTripletsAmino { + const obj: any = {}; + if (message.triplets) { + obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined); + } else { + obj.triplets = message.triplets; + } + return obj; + }, + fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets { + return DVVTriplets.fromAmino(object.value); + }, + toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg { + return { + type: "cosmos-sdk/DVVTriplets", + value: DVVTriplets.toAmino(message) + }; + }, + fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets { + return DVVTriplets.decode(message.value); + }, + toProto(message: DVVTriplets): Uint8Array { + return DVVTriplets.encode(message).finish(); + }, + toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", + value: DVVTriplets.encode(message).finish() + }; + } +}; +function createBaseDelegation(): Delegation { + return { + delegatorAddress: "", + validatorAddress: "", + shares: "" + }; +} +export const Delegation = { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + encode(message: Delegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.shares !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Delegation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.shares = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Delegation { + const message = createBaseDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.shares = object.shares ?? ""; + return message; + }, + fromAmino(object: DelegationAmino): Delegation { + const message = createBaseDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.shares !== undefined && object.shares !== null) { + message.shares = object.shares; + } + return message; + }, + toAmino(message: Delegation): DelegationAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.shares = message.shares === "" ? undefined : message.shares; + return obj; + }, + fromAminoMsg(object: DelegationAminoMsg): Delegation { + return Delegation.fromAmino(object.value); + }, + toAminoMsg(message: Delegation): DelegationAminoMsg { + return { + type: "cosmos-sdk/Delegation", + value: Delegation.toAmino(message) + }; + }, + fromProtoMsg(message: DelegationProtoMsg): Delegation { + return Delegation.decode(message.value); + }, + toProto(message: Delegation): Uint8Array { + return Delegation.encode(message).finish(); + }, + toProtoMsg(message: Delegation): DelegationProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Delegation", + value: Delegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegation(): UnbondingDelegation { + return { + delegatorAddress: "", + validatorAddress: "", + entries: [] + }; +} +export const UnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + encode(message: UnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + for (const v of message.entries) { + UnbondingDelegationEntry.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): UnbondingDelegation { + const message = createBaseUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation { + const message = createBaseUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message: UnbondingDelegation): UnbondingDelegationAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined); + } else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation { + return UnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg { + return { + type: "cosmos-sdk/UnbondingDelegation", + value: UnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation { + return UnbondingDelegation.decode(message.value); + }, + toProto(message: UnbondingDelegation): Uint8Array { + return UnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", + value: UnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseUnbondingDelegationEntry(): UnbondingDelegationEntry { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + balance: "" + }; +} +export const UnbondingDelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + encode(message: UnbondingDelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnbondingDelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): UnbondingDelegationEntry { + const message = createBaseUnbondingDelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry { + const message = createBaseUnbondingDelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino { + const obj: any = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry { + return UnbondingDelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg { + return { + type: "cosmos-sdk/UnbondingDelegationEntry", + value: UnbondingDelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry { + return UnbondingDelegationEntry.decode(message.value); + }, + toProto(message: UnbondingDelegationEntry): Uint8Array { + return UnbondingDelegationEntry.encode(message).finish(); + }, + toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", + value: UnbondingDelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntry(): RedelegationEntry { + return { + creationHeight: BigInt(0), + completionTime: new Date(), + initialBalance: "", + sharesDst: "" + }; +} +export const RedelegationEntry = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + encode(message: RedelegationEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creationHeight !== BigInt(0)) { + writer.uint32(8).int64(message.creationHeight); + } + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); + } + if (message.initialBalance !== "") { + writer.uint32(26).string(message.initialBalance); + } + if (message.sharesDst !== "") { + writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creationHeight = reader.int64(); + break; + case 2: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.initialBalance = reader.string(); + break; + case 4: + message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RedelegationEntry { + const message = createBaseRedelegationEntry(); + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + message.completionTime = object.completionTime ?? undefined; + message.initialBalance = object.initialBalance ?? ""; + message.sharesDst = object.sharesDst ?? ""; + return message; + }, + fromAmino(object: RedelegationEntryAmino): RedelegationEntry { + const message = createBaseRedelegationEntry(); + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + if (object.initial_balance !== undefined && object.initial_balance !== null) { + message.initialBalance = object.initial_balance; + } + if (object.shares_dst !== undefined && object.shares_dst !== null) { + message.sharesDst = object.shares_dst; + } + return message; + }, + toAmino(message: RedelegationEntry): RedelegationEntryAmino { + const obj: any = {}; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; + return obj; + }, + fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry { + return RedelegationEntry.fromAmino(object.value); + }, + toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg { + return { + type: "cosmos-sdk/RedelegationEntry", + value: RedelegationEntry.toAmino(message) + }; + }, + fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry { + return RedelegationEntry.decode(message.value); + }, + toProto(message: RedelegationEntry): Uint8Array { + return RedelegationEntry.encode(message).finish(); + }, + toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", + value: RedelegationEntry.encode(message).finish() + }; + } +}; +function createBaseRedelegation(): Redelegation { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + entries: [] + }; +} +export const Redelegation = { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + encode(message: Redelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + for (const v of message.entries) { + RedelegationEntry.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Redelegation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.entries.push(RedelegationEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Redelegation { + const message = createBaseRedelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.entries = object.entries?.map(e => RedelegationEntry.fromPartial(e)) || []; + return message; + }, + fromAmino(object: RedelegationAmino): Redelegation { + const message = createBaseRedelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + message.entries = object.entries?.map(e => RedelegationEntry.fromAmino(e)) || []; + return message; + }, + toAmino(message: Redelegation): RedelegationAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + if (message.entries) { + obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined); + } else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object: RedelegationAminoMsg): Redelegation { + return Redelegation.fromAmino(object.value); + }, + toAminoMsg(message: Redelegation): RedelegationAminoMsg { + return { + type: "cosmos-sdk/Redelegation", + value: Redelegation.toAmino(message) + }; + }, + fromProtoMsg(message: RedelegationProtoMsg): Redelegation { + return Redelegation.decode(message.value); + }, + toProto(message: Redelegation): Uint8Array { + return Redelegation.encode(message).finish(); + }, + toProtoMsg(message: Redelegation): RedelegationProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Redelegation", + value: Redelegation.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + unbondingTime: Duration.fromPartial({}), + maxValidators: 0, + maxEntries: 0, + historicalEntries: 0, + bondDenom: "", + minCommissionRate: "" + }; +} +export const Params = { + typeUrl: "/cosmos.staking.v1beta1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.unbondingTime !== undefined) { + Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); + } + if (message.maxValidators !== 0) { + writer.uint32(16).uint32(message.maxValidators); + } + if (message.maxEntries !== 0) { + writer.uint32(24).uint32(message.maxEntries); + } + if (message.historicalEntries !== 0) { + writer.uint32(32).uint32(message.historicalEntries); + } + if (message.bondDenom !== "") { + writer.uint32(42).string(message.bondDenom); + } + if (message.minCommissionRate !== "") { + writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unbondingTime = Duration.decode(reader, reader.uint32()); + break; + case 2: + message.maxValidators = reader.uint32(); + break; + case 3: + message.maxEntries = reader.uint32(); + break; + case 4: + message.historicalEntries = reader.uint32(); + break; + case 5: + message.bondDenom = reader.string(); + break; + case 6: + message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Duration.fromPartial(object.unbondingTime) : undefined; + message.maxValidators = object.maxValidators ?? 0; + message.maxEntries = object.maxEntries ?? 0; + message.historicalEntries = object.historicalEntries ?? 0; + message.bondDenom = object.bondDenom ?? ""; + message.minCommissionRate = object.minCommissionRate ?? ""; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + if (object.unbonding_time !== undefined && object.unbonding_time !== null) { + message.unbondingTime = Duration.fromAmino(object.unbonding_time); + } + if (object.max_validators !== undefined && object.max_validators !== null) { + message.maxValidators = object.max_validators; + } + if (object.max_entries !== undefined && object.max_entries !== null) { + message.maxEntries = object.max_entries; + } + if (object.historical_entries !== undefined && object.historical_entries !== null) { + message.historicalEntries = object.historical_entries; + } + if (object.bond_denom !== undefined && object.bond_denom !== null) { + message.bondDenom = object.bond_denom; + } + if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { + message.minCommissionRate = object.min_commission_rate; + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined; + obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; + obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; + obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; + obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; + obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseDelegationResponse(): DelegationResponse { + return { + delegation: Delegation.fromPartial({}), + balance: Coin.fromPartial({}) + }; +} +export const DelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + encode(message: DelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegation !== undefined) { + Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== undefined) { + Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegation = Delegation.decode(reader, reader.uint32()); + break; + case 2: + message.balance = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelegationResponse { + const message = createBaseDelegationResponse(); + message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined; + message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object: DelegationResponseAmino): DelegationResponse { + const message = createBaseDelegationResponse(); + if (object.delegation !== undefined && object.delegation !== null) { + message.delegation = Delegation.fromAmino(object.delegation); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = Coin.fromAmino(object.balance); + } + return message; + }, + toAmino(message: DelegationResponse): DelegationResponseAmino { + const obj: any = {}; + obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined; + obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse { + return DelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg { + return { + type: "cosmos-sdk/DelegationResponse", + value: DelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse { + return DelegationResponse.decode(message.value); + }, + toProto(message: DelegationResponse): Uint8Array { + return DelegationResponse.encode(message).finish(); + }, + toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", + value: DelegationResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationEntryResponse(): RedelegationEntryResponse { + return { + redelegationEntry: RedelegationEntry.fromPartial({}), + balance: "" + }; +} +export const RedelegationEntryResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + encode(message: RedelegationEntryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.redelegationEntry !== undefined) { + RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); + } + if (message.balance !== "") { + writer.uint32(34).string(message.balance); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationEntryResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32()); + break; + case 4: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RedelegationEntryResponse { + const message = createBaseRedelegationEntryResponse(); + message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse { + const message = createBaseRedelegationEntryResponse(); + if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { + message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry); + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino { + const obj: any = {}; + obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse { + return RedelegationEntryResponse.fromAmino(object.value); + }, + toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg { + return { + type: "cosmos-sdk/RedelegationEntryResponse", + value: RedelegationEntryResponse.toAmino(message) + }; + }, + fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse { + return RedelegationEntryResponse.decode(message.value); + }, + toProto(message: RedelegationEntryResponse): Uint8Array { + return RedelegationEntryResponse.encode(message).finish(); + }, + toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", + value: RedelegationEntryResponse.encode(message).finish() + }; + } +}; +function createBaseRedelegationResponse(): RedelegationResponse { + return { + redelegation: Redelegation.fromPartial({}), + entries: [] + }; +} +export const RedelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + encode(message: RedelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.redelegation !== undefined) { + Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.entries) { + RedelegationEntryResponse.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRedelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.redelegation = Redelegation.decode(reader, reader.uint32()); + break; + case 2: + message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RedelegationResponse { + const message = createBaseRedelegationResponse(); + message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined; + message.entries = object.entries?.map(e => RedelegationEntryResponse.fromPartial(e)) || []; + return message; + }, + fromAmino(object: RedelegationResponseAmino): RedelegationResponse { + const message = createBaseRedelegationResponse(); + if (object.redelegation !== undefined && object.redelegation !== null) { + message.redelegation = Redelegation.fromAmino(object.redelegation); + } + message.entries = object.entries?.map(e => RedelegationEntryResponse.fromAmino(e)) || []; + return message; + }, + toAmino(message: RedelegationResponse): RedelegationResponseAmino { + const obj: any = {}; + obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined; + if (message.entries) { + obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined); + } else { + obj.entries = message.entries; + } + return obj; + }, + fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse { + return RedelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg { + return { + type: "cosmos-sdk/RedelegationResponse", + value: RedelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse { + return RedelegationResponse.decode(message.value); + }, + toProto(message: RedelegationResponse): Uint8Array { + return RedelegationResponse.encode(message).finish(); + }, + toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", + value: RedelegationResponse.encode(message).finish() + }; + } +}; +function createBasePool(): Pool { + return { + notBondedTokens: "", + bondedTokens: "" + }; +} +export const Pool = { + typeUrl: "/cosmos.staking.v1beta1.Pool", + encode(message: Pool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.notBondedTokens !== "") { + writer.uint32(10).string(message.notBondedTokens); + } + if (message.bondedTokens !== "") { + writer.uint32(18).string(message.bondedTokens); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Pool { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePool(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.notBondedTokens = reader.string(); + break; + case 2: + message.bondedTokens = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Pool { + const message = createBasePool(); + message.notBondedTokens = object.notBondedTokens ?? ""; + message.bondedTokens = object.bondedTokens ?? ""; + return message; + }, + fromAmino(object: PoolAmino): Pool { + const message = createBasePool(); + if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { + message.notBondedTokens = object.not_bonded_tokens; + } + if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { + message.bondedTokens = object.bonded_tokens; + } + return message; + }, + toAmino(message: Pool): PoolAmino { + const obj: any = {}; + obj.not_bonded_tokens = message.notBondedTokens ?? ""; + obj.bonded_tokens = message.bondedTokens ?? ""; + return obj; + }, + fromAminoMsg(object: PoolAminoMsg): Pool { + return Pool.fromAmino(object.value); + }, + toAminoMsg(message: Pool): PoolAminoMsg { + return { + type: "cosmos-sdk/Pool", + value: Pool.toAmino(message) + }; + }, + fromProtoMsg(message: PoolProtoMsg): Pool { + return Pool.decode(message.value); + }, + toProto(message: Pool): Uint8Array { + return Pool.encode(message).finish(); + }, + toProtoMsg(message: Pool): PoolProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.Pool", + value: Pool.encode(message).finish() + }; + } +}; +export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { + return encodePubkey(content); +}; +export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { + return decodePubkey(content); +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/tx.amino.ts b/packages/api/src/cosmos/staking/v1beta1/tx.amino.ts new file mode 100644 index 00000000..d1dcf5c2 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/tx.amino.ts @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export const AminoConverter = { + "/cosmos.staking.v1beta1.MsgCreateValidator": { + aminoType: "cosmos-sdk/MsgCreateValidator", + toAmino: MsgCreateValidator.toAmino, + fromAmino: MsgCreateValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgEditValidator": { + aminoType: "cosmos-sdk/MsgEditValidator", + toAmino: MsgEditValidator.toAmino, + fromAmino: MsgEditValidator.fromAmino + }, + "/cosmos.staking.v1beta1.MsgDelegate": { + aminoType: "cosmos-sdk/MsgDelegate", + toAmino: MsgDelegate.toAmino, + fromAmino: MsgDelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgBeginRedelegate": { + aminoType: "cosmos-sdk/MsgBeginRedelegate", + toAmino: MsgBeginRedelegate.toAmino, + fromAmino: MsgBeginRedelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgUndelegate": { + aminoType: "cosmos-sdk/MsgUndelegate", + toAmino: MsgUndelegate.toAmino, + fromAmino: MsgUndelegate.fromAmino + }, + "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { + aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", + toAmino: MsgCancelUnbondingDelegation.toAmino, + fromAmino: MsgCancelUnbondingDelegation.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/tx.registry.ts b/packages/api/src/cosmos/staking/v1beta1/tx.registry.ts new file mode 100644 index 00000000..5b679d0e --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/tx.registry.ts @@ -0,0 +1,125 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createValidator(value: MsgCreateValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.encode(value).finish() + }; + }, + editValidator(value: MsgEditValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.encode(value).finish() + }; + }, + delegate(value: MsgDelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.encode(value).finish() + }; + }, + beginRedelegate(value: MsgBeginRedelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.encode(value).finish() + }; + }, + undelegate(value: MsgUndelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.encode(value).finish() + }; + }, + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.encode(value).finish() + }; + } + }, + withTypeUrl: { + createValidator(value: MsgCreateValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value + }; + }, + editValidator(value: MsgEditValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value + }; + }, + delegate(value: MsgDelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value + }; + }, + beginRedelegate(value: MsgBeginRedelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value + }; + }, + undelegate(value: MsgUndelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value + }; + }, + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value + }; + } + }, + fromPartial: { + createValidator(value: MsgCreateValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.fromPartial(value) + }; + }, + editValidator(value: MsgEditValidator) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.fromPartial(value) + }; + }, + delegate(value: MsgDelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.fromPartial(value) + }; + }, + beginRedelegate(value: MsgBeginRedelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.fromPartial(value) + }; + }, + undelegate(value: MsgUndelegate) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.fromPartial(value) + }; + }, + cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/staking/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..62f494a6 --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,75 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; +/** Msg defines the staking Msg service. */ +export interface Msg { + /** CreateValidator defines a method for creating a new validator. */ + createValidator(request: MsgCreateValidator): Promise; + /** EditValidator defines a method for editing an existing validator. */ + editValidator(request: MsgEditValidator): Promise; + /** + * Delegate defines a method for performing a delegation of coins + * from a delegator to a validator. + */ + delegate(request: MsgDelegate): Promise; + /** + * BeginRedelegate defines a method for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ + beginRedelegate(request: MsgBeginRedelegate): Promise; + /** + * Undelegate defines a method for performing an undelegation from a + * delegate and a validator. + */ + undelegate(request: MsgUndelegate): Promise; + /** + * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation + * and delegate back to previous validator. + * + * Since: cosmos-sdk 0.46 + */ + cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createValidator = this.createValidator.bind(this); + this.editValidator = this.editValidator.bind(this); + this.delegate = this.delegate.bind(this); + this.beginRedelegate = this.beginRedelegate.bind(this); + this.undelegate = this.undelegate.bind(this); + this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); + } + createValidator(request: MsgCreateValidator): Promise { + const data = MsgCreateValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); + return promise.then(data => MsgCreateValidatorResponse.decode(new BinaryReader(data))); + } + editValidator(request: MsgEditValidator): Promise { + const data = MsgEditValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); + return promise.then(data => MsgEditValidatorResponse.decode(new BinaryReader(data))); + } + delegate(request: MsgDelegate): Promise { + const data = MsgDelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); + return promise.then(data => MsgDelegateResponse.decode(new BinaryReader(data))); + } + beginRedelegate(request: MsgBeginRedelegate): Promise { + const data = MsgBeginRedelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); + return promise.then(data => MsgBeginRedelegateResponse.decode(new BinaryReader(data))); + } + undelegate(request: MsgUndelegate): Promise { + const data = MsgUndelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); + return promise.then(data => MsgUndelegateResponse.decode(new BinaryReader(data))); + } + cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise { + const data = MsgCancelUnbondingDelegation.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); + return promise.then(data => MsgCancelUnbondingDelegationResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/staking/v1beta1/tx.ts b/packages/api/src/cosmos/staking/v1beta1/tx.ts new file mode 100644 index 00000000..2446f5ba --- /dev/null +++ b/packages/api/src/cosmos/staking/v1beta1/tx.ts @@ -0,0 +1,1371 @@ +//@ts-nocheck +import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; +import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; +import { Decimal } from "@cosmjs/math"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +import { Pubkey } from "@cosmjs/amino"; +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidator { + description: Description; + commission: CommissionRates; + minSelfDelegation: string; + delegatorAddress: string; + validatorAddress: string; + pubkey?: Any | undefined; + value: Coin; +} +export interface MsgCreateValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; + value: Uint8Array; +} +export type MsgCreateValidatorEncoded = Omit & { + pubkey?: AnyProtoMsg | undefined; +}; +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidatorAmino { + description?: DescriptionAmino; + commission?: CommissionRatesAmino; + min_self_delegation?: string; + delegator_address?: string; + validator_address?: string; + pubkey?: AnyAmino; + value?: CoinAmino; +} +export interface MsgCreateValidatorAminoMsg { + type: "cosmos-sdk/MsgCreateValidator"; + value: MsgCreateValidatorAmino; +} +/** MsgCreateValidator defines a SDK message for creating a new validator. */ +export interface MsgCreateValidatorSDKType { + description: DescriptionSDKType; + commission: CommissionRatesSDKType; + min_self_delegation: string; + delegator_address: string; + validator_address: string; + pubkey?: AnySDKType | undefined; + value: CoinSDKType; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponse {} +export interface MsgCreateValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; + value: Uint8Array; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponseAmino {} +export interface MsgCreateValidatorResponseAminoMsg { + type: "cosmos-sdk/MsgCreateValidatorResponse"; + value: MsgCreateValidatorResponseAmino; +} +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export interface MsgCreateValidatorResponseSDKType {} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidator { + description: Description; + validatorAddress: string; + /** + * We pass a reference to the new commission rate and min self delegation as + * it's not mandatory to update. If not updated, the deserialized rate will be + * zero with no way to distinguish if an update was intended. + * REF: #2373 + */ + commissionRate: string; + minSelfDelegation: string; +} +export interface MsgEditValidatorProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; + value: Uint8Array; +} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidatorAmino { + description?: DescriptionAmino; + validator_address?: string; + /** + * We pass a reference to the new commission rate and min self delegation as + * it's not mandatory to update. If not updated, the deserialized rate will be + * zero with no way to distinguish if an update was intended. + * REF: #2373 + */ + commission_rate?: string; + min_self_delegation?: string; +} +export interface MsgEditValidatorAminoMsg { + type: "cosmos-sdk/MsgEditValidator"; + value: MsgEditValidatorAmino; +} +/** MsgEditValidator defines a SDK message for editing an existing validator. */ +export interface MsgEditValidatorSDKType { + description: DescriptionSDKType; + validator_address: string; + commission_rate: string; + min_self_delegation: string; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponse {} +export interface MsgEditValidatorResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; + value: Uint8Array; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponseAmino {} +export interface MsgEditValidatorResponseAminoMsg { + type: "cosmos-sdk/MsgEditValidatorResponse"; + value: MsgEditValidatorResponseAmino; +} +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export interface MsgEditValidatorResponseSDKType {} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegate { + delegatorAddress: string; + validatorAddress: string; + amount: Coin; +} +export interface MsgDelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; + value: Uint8Array; +} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegateAmino { + delegator_address?: string; + validator_address?: string; + amount?: CoinAmino; +} +export interface MsgDelegateAminoMsg { + type: "cosmos-sdk/MsgDelegate"; + value: MsgDelegateAmino; +} +/** + * MsgDelegate defines a SDK message for performing a delegation of coins + * from a delegator to a validator. + */ +export interface MsgDelegateSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponse {} +export interface MsgDelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; + value: Uint8Array; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponseAmino {} +export interface MsgDelegateResponseAminoMsg { + type: "cosmos-sdk/MsgDelegateResponse"; + value: MsgDelegateResponseAmino; +} +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export interface MsgDelegateResponseSDKType {} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegate { + delegatorAddress: string; + validatorSrcAddress: string; + validatorDstAddress: string; + amount: Coin; +} +export interface MsgBeginRedelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; + value: Uint8Array; +} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegateAmino { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + amount?: CoinAmino; +} +export interface MsgBeginRedelegateAminoMsg { + type: "cosmos-sdk/MsgBeginRedelegate"; + value: MsgBeginRedelegateAmino; +} +/** + * MsgBeginRedelegate defines a SDK message for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ +export interface MsgBeginRedelegateSDKType { + delegator_address: string; + validator_src_address: string; + validator_dst_address: string; + amount: CoinSDKType; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponse { + completionTime: Date; +} +export interface MsgBeginRedelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; + value: Uint8Array; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponseAmino { + completion_time?: string; +} +export interface MsgBeginRedelegateResponseAminoMsg { + type: "cosmos-sdk/MsgBeginRedelegateResponse"; + value: MsgBeginRedelegateResponseAmino; +} +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface MsgBeginRedelegateResponseSDKType { + completion_time: Date; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegate { + delegatorAddress: string; + validatorAddress: string; + amount: Coin; +} +export interface MsgUndelegateProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; + value: Uint8Array; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegateAmino { + delegator_address?: string; + validator_address?: string; + amount?: CoinAmino; +} +export interface MsgUndelegateAminoMsg { + type: "cosmos-sdk/MsgUndelegate"; + value: MsgUndelegateAmino; +} +/** + * MsgUndelegate defines a SDK message for performing an undelegation from a + * delegate and a validator. + */ +export interface MsgUndelegateSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponse { + completionTime: Date; +} +export interface MsgUndelegateResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; + value: Uint8Array; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponseAmino { + completion_time?: string; +} +export interface MsgUndelegateResponseAminoMsg { + type: "cosmos-sdk/MsgUndelegateResponse"; + value: MsgUndelegateResponseAmino; +} +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface MsgUndelegateResponseSDKType { + completion_time: Date; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegation { + delegatorAddress: string; + validatorAddress: string; + /** amount is always less than or equal to unbonding delegation entry balance */ + amount: Coin; + /** creation_height is the height which the unbonding took place. */ + creationHeight: bigint; +} +export interface MsgCancelUnbondingDelegationProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; + value: Uint8Array; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationAmino { + delegator_address?: string; + validator_address?: string; + /** amount is always less than or equal to unbonding delegation entry balance */ + amount?: CoinAmino; + /** creation_height is the height which the unbonding took place. */ + creation_height?: string; +} +export interface MsgCancelUnbondingDelegationAminoMsg { + type: "cosmos-sdk/MsgCancelUnbondingDelegation"; + value: MsgCancelUnbondingDelegationAmino; +} +/** + * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationSDKType { + delegator_address: string; + validator_address: string; + amount: CoinSDKType; + creation_height: bigint; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponse {} +export interface MsgCancelUnbondingDelegationResponseProtoMsg { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; + value: Uint8Array; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponseAmino {} +export interface MsgCancelUnbondingDelegationResponseAminoMsg { + type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse"; + value: MsgCancelUnbondingDelegationResponseAmino; +} +/** + * MsgCancelUnbondingDelegationResponse + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUnbondingDelegationResponseSDKType {} +function createBaseMsgCreateValidator(): MsgCreateValidator { + return { + description: Description.fromPartial({}), + commission: CommissionRates.fromPartial({}), + minSelfDelegation: "", + delegatorAddress: "", + validatorAddress: "", + pubkey: undefined, + value: Coin.fromPartial({}) + }; +} +export const MsgCreateValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + encode(message: MsgCreateValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.commission !== undefined) { + CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); + } + if (message.minSelfDelegation !== "") { + writer.uint32(26).string(message.minSelfDelegation); + } + if (message.delegatorAddress !== "") { + writer.uint32(34).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(42).string(message.validatorAddress); + } + if (message.pubkey !== undefined) { + Any.encode((message.pubkey as Any), writer.uint32(50).fork()).ldelim(); + } + if (message.value !== undefined) { + Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = Description.decode(reader, reader.uint32()); + break; + case 2: + message.commission = CommissionRates.decode(reader, reader.uint32()); + break; + case 3: + message.minSelfDelegation = reader.string(); + break; + case 4: + message.delegatorAddress = reader.string(); + break; + case 5: + message.validatorAddress = reader.string(); + break; + case 6: + message.pubkey = (Cosmos_cryptoPubKey_InterfaceDecoder(reader) as Any); + break; + case 7: + message.value = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateValidator { + const message = createBaseMsgCreateValidator(); + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? Any.fromPartial(object.pubkey) : undefined; + message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined; + return message; + }, + fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator { + const message = createBaseMsgCreateValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.commission !== undefined && object.commission !== null) { + message.commission = CommissionRates.fromAmino(object.commission); + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.pubkey !== undefined && object.pubkey !== null) { + message.pubkey = encodePubkey(object.pubkey); + } + if (object.value !== undefined && object.value !== null) { + message.value = Coin.fromAmino(object.value); + } + return message; + }, + toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino { + const obj: any = {}; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : undefined; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined; + obj.value = message.value ? Coin.toAmino(message.value) : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator { + return MsgCreateValidator.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg { + return { + type: "cosmos-sdk/MsgCreateValidator", + value: MsgCreateValidator.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator { + return MsgCreateValidator.decode(message.value); + }, + toProto(message: MsgCreateValidator): Uint8Array { + return MsgCreateValidator.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", + value: MsgCreateValidator.encode(message).finish() + }; + } +}; +function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse { + return {}; +} +export const MsgCreateValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + encode(_: MsgCreateValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCreateValidatorResponse { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse { + const message = createBaseMsgCreateValidatorResponse(); + return message; + }, + toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse { + return MsgCreateValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateValidatorResponse", + value: MsgCreateValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse { + return MsgCreateValidatorResponse.decode(message.value); + }, + toProto(message: MsgCreateValidatorResponse): Uint8Array { + return MsgCreateValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", + value: MsgCreateValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidator(): MsgEditValidator { + return { + description: Description.fromPartial({}), + validatorAddress: "", + commissionRate: "", + minSelfDelegation: "" + }; +} +export const MsgEditValidator = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + encode(message: MsgEditValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.description !== undefined) { + Description.encode(message.description, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.commissionRate !== "") { + writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics); + } + if (message.minSelfDelegation !== "") { + writer.uint32(34).string(message.minSelfDelegation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = Description.decode(reader, reader.uint32()); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); + break; + case 4: + message.minSelfDelegation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgEditValidator { + const message = createBaseMsgEditValidator(); + message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; + message.validatorAddress = object.validatorAddress ?? ""; + message.commissionRate = object.commissionRate ?? ""; + message.minSelfDelegation = object.minSelfDelegation ?? ""; + return message; + }, + fromAmino(object: MsgEditValidatorAmino): MsgEditValidator { + const message = createBaseMsgEditValidator(); + if (object.description !== undefined && object.description !== null) { + message.description = Description.fromAmino(object.description); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.commission_rate !== undefined && object.commission_rate !== null) { + message.commissionRate = object.commission_rate; + } + if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { + message.minSelfDelegation = object.min_self_delegation; + } + return message; + }, + toAmino(message: MsgEditValidator): MsgEditValidatorAmino { + const obj: any = {}; + obj.description = message.description ? Description.toAmino(message.description) : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + return obj; + }, + fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator { + return MsgEditValidator.fromAmino(object.value); + }, + toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg { + return { + type: "cosmos-sdk/MsgEditValidator", + value: MsgEditValidator.toAmino(message) + }; + }, + fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator { + return MsgEditValidator.decode(message.value); + }, + toProto(message: MsgEditValidator): Uint8Array { + return MsgEditValidator.encode(message).finish(); + }, + toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", + value: MsgEditValidator.encode(message).finish() + }; + } +}; +function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse { + return {}; +} +export const MsgEditValidatorResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + encode(_: MsgEditValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgEditValidatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgEditValidatorResponse { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse { + const message = createBaseMsgEditValidatorResponse(); + return message; + }, + toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse { + return MsgEditValidatorResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg { + return { + type: "cosmos-sdk/MsgEditValidatorResponse", + value: MsgEditValidatorResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse { + return MsgEditValidatorResponse.decode(message.value); + }, + toProto(message: MsgEditValidatorResponse): Uint8Array { + return MsgEditValidatorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", + value: MsgEditValidatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDelegate(): MsgDelegate { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgDelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + encode(message: MsgDelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDelegate { + const message = createBaseMsgDelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object: MsgDelegateAmino): MsgDelegate { + const message = createBaseMsgDelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message: MsgDelegate): MsgDelegateAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate { + return MsgDelegate.fromAmino(object.value); + }, + toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg { + return { + type: "cosmos-sdk/MsgDelegate", + value: MsgDelegate.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate { + return MsgDelegate.decode(message.value); + }, + toProto(message: MsgDelegate): Uint8Array { + return MsgDelegate.encode(message).finish(); + }, + toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", + value: MsgDelegate.encode(message).finish() + }; + } +}; +function createBaseMsgDelegateResponse(): MsgDelegateResponse { + return {}; +} +export const MsgDelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + encode(_: MsgDelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgDelegateResponse { + const message = createBaseMsgDelegateResponse(); + return message; + }, + fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse { + const message = createBaseMsgDelegateResponse(); + return message; + }, + toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse { + return MsgDelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg { + return { + type: "cosmos-sdk/MsgDelegateResponse", + value: MsgDelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse { + return MsgDelegateResponse.decode(message.value); + }, + toProto(message: MsgDelegateResponse): Uint8Array { + return MsgDelegateResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", + value: MsgDelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegate(): MsgBeginRedelegate { + return { + delegatorAddress: "", + validatorSrcAddress: "", + validatorDstAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgBeginRedelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + encode(message: MsgBeginRedelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorSrcAddress !== "") { + writer.uint32(18).string(message.validatorSrcAddress); + } + if (message.validatorDstAddress !== "") { + writer.uint32(26).string(message.validatorDstAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorSrcAddress = reader.string(); + break; + case 3: + message.validatorDstAddress = reader.string(); + break; + case 4: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBeginRedelegate { + const message = createBaseMsgBeginRedelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorSrcAddress = object.validatorSrcAddress ?? ""; + message.validatorDstAddress = object.validatorDstAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate { + const message = createBaseMsgBeginRedelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_src_address !== undefined && object.validator_src_address !== null) { + message.validatorSrcAddress = object.validator_src_address; + } + if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { + message.validatorDstAddress = object.validator_dst_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate { + return MsgBeginRedelegate.fromAmino(object.value); + }, + toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg { + return { + type: "cosmos-sdk/MsgBeginRedelegate", + value: MsgBeginRedelegate.toAmino(message) + }; + }, + fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate { + return MsgBeginRedelegate.decode(message.value); + }, + toProto(message: MsgBeginRedelegate): Uint8Array { + return MsgBeginRedelegate.encode(message).finish(); + }, + toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", + value: MsgBeginRedelegate.encode(message).finish() + }; + } +}; +function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse { + return { + completionTime: new Date() + }; +} +export const MsgBeginRedelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + encode(message: MsgBeginRedelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBeginRedelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBeginRedelegateResponse { + const message = createBaseMsgBeginRedelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse { + const message = createBaseMsgBeginRedelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino { + const obj: any = {}; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse { + return MsgBeginRedelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg { + return { + type: "cosmos-sdk/MsgBeginRedelegateResponse", + value: MsgBeginRedelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse { + return MsgBeginRedelegateResponse.decode(message.value); + }, + toProto(message: MsgBeginRedelegateResponse): Uint8Array { + return MsgBeginRedelegateResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", + value: MsgBeginRedelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegate(): MsgUndelegate { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}) + }; +} +export const MsgUndelegate = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + encode(message: MsgUndelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUndelegate { + const message = createBaseMsgUndelegate(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + return message; + }, + fromAmino(object: MsgUndelegateAmino): MsgUndelegate { + const message = createBaseMsgUndelegate(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + return message; + }, + toAmino(message: MsgUndelegate): MsgUndelegateAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate { + return MsgUndelegate.fromAmino(object.value); + }, + toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg { + return { + type: "cosmos-sdk/MsgUndelegate", + value: MsgUndelegate.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate { + return MsgUndelegate.decode(message.value); + }, + toProto(message: MsgUndelegate): Uint8Array { + return MsgUndelegate.encode(message).finish(); + }, + toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", + value: MsgUndelegate.encode(message).finish() + }; + } +}; +function createBaseMsgUndelegateResponse(): MsgUndelegateResponse { + return { + completionTime: new Date() + }; +} +export const MsgUndelegateResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + encode(message: MsgUndelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.completionTime !== undefined) { + Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUndelegateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUndelegateResponse { + const message = createBaseMsgUndelegateResponse(); + message.completionTime = object.completionTime ?? undefined; + return message; + }, + fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse { + const message = createBaseMsgUndelegateResponse(); + if (object.completion_time !== undefined && object.completion_time !== null) { + message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); + } + return message; + }, + toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino { + const obj: any = {}; + obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse { + return MsgUndelegateResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUndelegateResponse", + value: MsgUndelegateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse { + return MsgUndelegateResponse.decode(message.value); + }, + toProto(message: MsgUndelegateResponse): Uint8Array { + return MsgUndelegateResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", + value: MsgUndelegateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation { + return { + delegatorAddress: "", + validatorAddress: "", + amount: Coin.fromPartial({}), + creationHeight: BigInt(0) + }; +} +export const MsgCancelUnbondingDelegation = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + encode(message: MsgCancelUnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.delegatorAddress !== "") { + writer.uint32(10).string(message.delegatorAddress); + } + if (message.validatorAddress !== "") { + writer.uint32(18).string(message.validatorAddress); + } + if (message.amount !== undefined) { + Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); + } + if (message.creationHeight !== BigInt(0)) { + writer.uint32(32).int64(message.creationHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.delegatorAddress = reader.string(); + break; + case 2: + message.validatorAddress = reader.string(); + break; + case 3: + message.amount = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.creationHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancelUnbondingDelegation { + const message = createBaseMsgCancelUnbondingDelegation(); + message.delegatorAddress = object.delegatorAddress ?? ""; + message.validatorAddress = object.validatorAddress ?? ""; + message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; + message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation { + const message = createBaseMsgCancelUnbondingDelegation(); + if (object.delegator_address !== undefined && object.delegator_address !== null) { + message.delegatorAddress = object.delegator_address; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = object.validator_address; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = Coin.fromAmino(object.amount); + } + if (object.creation_height !== undefined && object.creation_height !== null) { + message.creationHeight = BigInt(object.creation_height); + } + return message; + }, + toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino { + const obj: any = {}; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation { + return MsgCancelUnbondingDelegation.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation { + return MsgCancelUnbondingDelegation.decode(message.value); + }, + toProto(message: MsgCancelUnbondingDelegation): Uint8Array { + return MsgCancelUnbondingDelegation.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + value: MsgCancelUnbondingDelegation.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse { + return {}; +} +export const MsgCancelUnbondingDelegationResponse = { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + encode(_: MsgCancelUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUnbondingDelegationResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse { + const message = createBaseMsgCancelUnbondingDelegationResponse(); + return message; + }, + toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse { + return MsgCancelUnbondingDelegationResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", + value: MsgCancelUnbondingDelegationResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse { + return MsgCancelUnbondingDelegationResponse.decode(message.value); + }, + toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array { + return MsgCancelUnbondingDelegationResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg { + return { + typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", + value: MsgCancelUnbondingDelegationResponse.encode(message).finish() + }; + } +}; +export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const data = Any.decode(reader, reader.uint32()); + switch (data.typeUrl) { + default: + return data; + } +}; +export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { + return encodePubkey(content); +}; +export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { + return decodePubkey(content); +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/tx/signing/v1beta1/signing.ts b/packages/api/src/cosmos/tx/signing/v1beta1/signing.ts new file mode 100644 index 00000000..7929a5b9 --- /dev/null +++ b/packages/api/src/cosmos/tx/signing/v1beta1/signing.ts @@ -0,0 +1,673 @@ +//@ts-nocheck +import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * SignMode represents a signing mode with its own security guarantees. + * + * This enum should be considered a registry of all known sign modes + * in the Cosmos ecosystem. Apps are not expected to support all known + * sign modes. Apps that would like to support custom sign modes are + * encouraged to open a small PR against this file to add a new case + * to this SignMode enum describing their sign mode so that different + * apps have a consistent version of this enum. + */ +export enum SignMode { + /** + * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected. + */ + SIGN_MODE_UNSPECIFIED = 0, + /** + * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx. + */ + SIGN_MODE_DIRECT = 1, + /** + * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT. It is currently not supported. + */ + SIGN_MODE_TEXTUAL = 2, + /** + * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses + * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not + * require signers signing over other signers' `signer_info`. It also allows + * for adding Tips in transactions. + * + * Since: cosmos-sdk 0.46 + */ + SIGN_MODE_DIRECT_AUX = 3, + /** + * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future. + */ + SIGN_MODE_LEGACY_AMINO_JSON = 127, + /** + * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos + * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 + * + * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, + * but is not implemented on the SDK by default. To enable EIP-191, you need + * to pass a custom `TxConfig` that has an implementation of + * `SignModeHandler` for EIP-191. The SDK may decide to fully support + * EIP-191 in the future. + * + * Since: cosmos-sdk 0.45.2 + */ + SIGN_MODE_EIP_191 = 191, + UNRECOGNIZED = -1, +} +export const SignModeSDKType = SignMode; +export const SignModeAmino = SignMode; +export function signModeFromJSON(object: any): SignMode { + switch (object) { + case 0: + case "SIGN_MODE_UNSPECIFIED": + return SignMode.SIGN_MODE_UNSPECIFIED; + case 1: + case "SIGN_MODE_DIRECT": + return SignMode.SIGN_MODE_DIRECT; + case 2: + case "SIGN_MODE_TEXTUAL": + return SignMode.SIGN_MODE_TEXTUAL; + case 3: + case "SIGN_MODE_DIRECT_AUX": + return SignMode.SIGN_MODE_DIRECT_AUX; + case 127: + case "SIGN_MODE_LEGACY_AMINO_JSON": + return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; + case 191: + case "SIGN_MODE_EIP_191": + return SignMode.SIGN_MODE_EIP_191; + case -1: + case "UNRECOGNIZED": + default: + return SignMode.UNRECOGNIZED; + } +} +export function signModeToJSON(object: SignMode): string { + switch (object) { + case SignMode.SIGN_MODE_UNSPECIFIED: + return "SIGN_MODE_UNSPECIFIED"; + case SignMode.SIGN_MODE_DIRECT: + return "SIGN_MODE_DIRECT"; + case SignMode.SIGN_MODE_TEXTUAL: + return "SIGN_MODE_TEXTUAL"; + case SignMode.SIGN_MODE_DIRECT_AUX: + return "SIGN_MODE_DIRECT_AUX"; + case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: + return "SIGN_MODE_LEGACY_AMINO_JSON"; + case SignMode.SIGN_MODE_EIP_191: + return "SIGN_MODE_EIP_191"; + case SignMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptors { + /** signatures are the signature descriptors */ + signatures: SignatureDescriptor[]; +} +export interface SignatureDescriptorsProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; + value: Uint8Array; +} +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptorsAmino { + /** signatures are the signature descriptors */ + signatures?: SignatureDescriptorAmino[]; +} +export interface SignatureDescriptorsAminoMsg { + type: "cosmos-sdk/SignatureDescriptors"; + value: SignatureDescriptorsAmino; +} +/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ +export interface SignatureDescriptorsSDKType { + signatures: SignatureDescriptorSDKType[]; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptor { + /** public_key is the public key of the signer */ + publicKey?: Any; + data?: SignatureDescriptor_Data; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to prevent + * replay attacks. + */ + sequence: bigint; +} +export interface SignatureDescriptorProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; + value: Uint8Array; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptorAmino { + /** public_key is the public key of the signer */ + public_key?: AnyAmino; + data?: SignatureDescriptor_DataAmino; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to prevent + * replay attacks. + */ + sequence?: string; +} +export interface SignatureDescriptorAminoMsg { + type: "cosmos-sdk/SignatureDescriptor"; + value: SignatureDescriptorAmino; +} +/** + * SignatureDescriptor is a convenience type which represents the full data for + * a signature including the public key of the signer, signing modes and the + * signature itself. It is primarily used for coordinating signatures between + * clients. + */ +export interface SignatureDescriptorSDKType { + public_key?: AnySDKType; + data?: SignatureDescriptor_DataSDKType; + sequence: bigint; +} +/** Data represents signature data */ +export interface SignatureDescriptor_Data { + /** single represents a single signer */ + single?: SignatureDescriptor_Data_Single; + /** multi represents a multisig signer */ + multi?: SignatureDescriptor_Data_Multi; +} +export interface SignatureDescriptor_DataProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Data"; + value: Uint8Array; +} +/** Data represents signature data */ +export interface SignatureDescriptor_DataAmino { + /** single represents a single signer */ + single?: SignatureDescriptor_Data_SingleAmino; + /** multi represents a multisig signer */ + multi?: SignatureDescriptor_Data_MultiAmino; +} +export interface SignatureDescriptor_DataAminoMsg { + type: "cosmos-sdk/Data"; + value: SignatureDescriptor_DataAmino; +} +/** Data represents signature data */ +export interface SignatureDescriptor_DataSDKType { + single?: SignatureDescriptor_Data_SingleSDKType; + multi?: SignatureDescriptor_Data_MultiSDKType; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_Single { + /** mode is the signing mode of the single signer */ + mode: SignMode; + /** signature is the raw signature bytes */ + signature: Uint8Array; +} +export interface SignatureDescriptor_Data_SingleProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Single"; + value: Uint8Array; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_SingleAmino { + /** mode is the signing mode of the single signer */ + mode?: SignMode; + /** signature is the raw signature bytes */ + signature?: string; +} +export interface SignatureDescriptor_Data_SingleAminoMsg { + type: "cosmos-sdk/Single"; + value: SignatureDescriptor_Data_SingleAmino; +} +/** Single is the signature data for a single signer */ +export interface SignatureDescriptor_Data_SingleSDKType { + mode: SignMode; + signature: Uint8Array; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_Multi { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArray; + /** signatures is the signatures of the multi-signature */ + signatures: SignatureDescriptor_Data[]; +} +export interface SignatureDescriptor_Data_MultiProtoMsg { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; + value: Uint8Array; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_MultiAmino { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArrayAmino; + /** signatures is the signatures of the multi-signature */ + signatures?: SignatureDescriptor_DataAmino[]; +} +export interface SignatureDescriptor_Data_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: SignatureDescriptor_Data_MultiAmino; +} +/** Multi is the signature data for a multisig public key */ +export interface SignatureDescriptor_Data_MultiSDKType { + bitarray?: CompactBitArraySDKType; + signatures: SignatureDescriptor_DataSDKType[]; +} +function createBaseSignatureDescriptors(): SignatureDescriptors { + return { + signatures: [] + }; +} +export const SignatureDescriptors = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + encode(message: SignatureDescriptors, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.signatures) { + SignatureDescriptor.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptors(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signatures.push(SignatureDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignatureDescriptors { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => SignatureDescriptor.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SignatureDescriptorsAmino): SignatureDescriptors { + const message = createBaseSignatureDescriptors(); + message.signatures = object.signatures?.map(e => SignatureDescriptor.fromAmino(e)) || []; + return message; + }, + toAmino(message: SignatureDescriptors): SignatureDescriptorsAmino { + const obj: any = {}; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toAmino(e) : undefined); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: SignatureDescriptorsAminoMsg): SignatureDescriptors { + return SignatureDescriptors.fromAmino(object.value); + }, + toAminoMsg(message: SignatureDescriptors): SignatureDescriptorsAminoMsg { + return { + type: "cosmos-sdk/SignatureDescriptors", + value: SignatureDescriptors.toAmino(message) + }; + }, + fromProtoMsg(message: SignatureDescriptorsProtoMsg): SignatureDescriptors { + return SignatureDescriptors.decode(message.value); + }, + toProto(message: SignatureDescriptors): Uint8Array { + return SignatureDescriptors.encode(message).finish(); + }, + toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", + value: SignatureDescriptors.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor(): SignatureDescriptor { + return { + publicKey: undefined, + data: undefined, + sequence: BigInt(0) + }; +} +export const SignatureDescriptor = { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + encode(message: SignatureDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 2: + message.data = SignatureDescriptor_Data.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignatureDescriptor { + const message = createBaseSignatureDescriptor(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.data = object.data !== undefined && object.data !== null ? SignatureDescriptor_Data.fromPartial(object.data) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: SignatureDescriptorAmino): SignatureDescriptor { + const message = createBaseSignatureDescriptor(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.data !== undefined && object.data !== null) { + message.data = SignatureDescriptor_Data.fromAmino(object.data); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message: SignatureDescriptor): SignatureDescriptorAmino { + const obj: any = {}; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.data = message.data ? SignatureDescriptor_Data.toAmino(message.data) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor { + return SignatureDescriptor.fromAmino(object.value); + }, + toAminoMsg(message: SignatureDescriptor): SignatureDescriptorAminoMsg { + return { + type: "cosmos-sdk/SignatureDescriptor", + value: SignatureDescriptor.toAmino(message) + }; + }, + fromProtoMsg(message: SignatureDescriptorProtoMsg): SignatureDescriptor { + return SignatureDescriptor.decode(message.value); + }, + toProto(message: SignatureDescriptor): Uint8Array { + return SignatureDescriptor.encode(message).finish(); + }, + toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", + value: SignatureDescriptor.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data(): SignatureDescriptor_Data { + return { + single: undefined, + multi: undefined + }; +} +export const SignatureDescriptor_Data = { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + encode(message: SignatureDescriptor_Data, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.single !== undefined) { + SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignatureDescriptor_Data { + const message = createBaseSignatureDescriptor_Data(); + message.single = object.single !== undefined && object.single !== null ? SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object: SignatureDescriptor_DataAmino): SignatureDescriptor_Data { + const message = createBaseSignatureDescriptor_Data(); + if (object.single !== undefined && object.single !== null) { + message.single = SignatureDescriptor_Data_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = SignatureDescriptor_Data_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message: SignatureDescriptor_Data): SignatureDescriptor_DataAmino { + const obj: any = {}; + obj.single = message.single ? SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object: SignatureDescriptor_DataAminoMsg): SignatureDescriptor_Data { + return SignatureDescriptor_Data.fromAmino(object.value); + }, + toAminoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataAminoMsg { + return { + type: "cosmos-sdk/Data", + value: SignatureDescriptor_Data.toAmino(message) + }; + }, + fromProtoMsg(message: SignatureDescriptor_DataProtoMsg): SignatureDescriptor_Data { + return SignatureDescriptor_Data.decode(message.value); + }, + toProto(message: SignatureDescriptor_Data): Uint8Array { + return SignatureDescriptor_Data.encode(message).finish(); + }, + toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Data", + value: SignatureDescriptor_Data.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Single(): SignatureDescriptor_Data_Single { + return { + mode: 0, + signature: new Uint8Array() + }; +} +export const SignatureDescriptor_Data_Single = { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + encode(message: SignatureDescriptor_Data_Single, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + if (message.signature.length !== 0) { + writer.uint32(18).bytes(message.signature); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = (reader.int32() as any); + break; + case 2: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignatureDescriptor_Data_Single { + const message = createBaseSignatureDescriptor_Data_Single(); + message.mode = object.mode ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single { + const message = createBaseSignatureDescriptor_Data_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino { + const obj: any = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object: SignatureDescriptor_Data_SingleAminoMsg): SignatureDescriptor_Data_Single { + return SignatureDescriptor_Data_Single.fromAmino(object.value); + }, + toAminoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAminoMsg { + return { + type: "cosmos-sdk/Single", + value: SignatureDescriptor_Data_Single.toAmino(message) + }; + }, + fromProtoMsg(message: SignatureDescriptor_Data_SingleProtoMsg): SignatureDescriptor_Data_Single { + return SignatureDescriptor_Data_Single.decode(message.value); + }, + toProto(message: SignatureDescriptor_Data_Single): Uint8Array { + return SignatureDescriptor_Data_Single.encode(message).finish(); + }, + toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Single", + value: SignatureDescriptor_Data_Single.encode(message).finish() + }; + } +}; +function createBaseSignatureDescriptor_Data_Multi(): SignatureDescriptor_Data_Multi { + return { + bitarray: undefined, + signatures: [] + }; +} +export const SignatureDescriptor_Data_Multi = { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + encode(message: SignatureDescriptor_Data_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bitarray !== undefined) { + CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.signatures) { + SignatureDescriptor_Data.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignatureDescriptor_Data_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.signatures.push(SignatureDescriptor_Data.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignatureDescriptor_Data_Multi { + const message = createBaseSignatureDescriptor_Data_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; + message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SignatureDescriptor_Data_MultiAmino): SignatureDescriptor_Data_Multi { + const message = createBaseSignatureDescriptor_Data_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = CompactBitArray.fromAmino(object.bitarray); + } + message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromAmino(e)) || []; + return message; + }, + toAmino(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAmino { + const obj: any = {}; + obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toAmino(e) : undefined); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: SignatureDescriptor_Data_MultiAminoMsg): SignatureDescriptor_Data_Multi { + return SignatureDescriptor_Data_Multi.fromAmino(object.value); + }, + toAminoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAminoMsg { + return { + type: "cosmos-sdk/Multi", + value: SignatureDescriptor_Data_Multi.toAmino(message) + }; + }, + fromProtoMsg(message: SignatureDescriptor_Data_MultiProtoMsg): SignatureDescriptor_Data_Multi { + return SignatureDescriptor_Data_Multi.decode(message.value); + }, + toProto(message: SignatureDescriptor_Data_Multi): Uint8Array { + return SignatureDescriptor_Data_Multi.encode(message).finish(); + }, + toProtoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiProtoMsg { + return { + typeUrl: "/cosmos.tx.signing.v1beta1.Multi", + value: SignatureDescriptor_Data_Multi.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/tx/v1beta1/service.lcd.ts b/packages/api/src/cosmos/tx/v1beta1/service.lcd.ts new file mode 100644 index 00000000..aabc5abf --- /dev/null +++ b/packages/api/src/cosmos/tx/v1beta1/service.lcd.ts @@ -0,0 +1,58 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.getTx = this.getTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + /* GetTx fetches a tx by hash. */ + async getTx(params: GetTxRequest): Promise { + const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; + return await this.req.get(endpoint); + } + /* GetTxsEvent fetches txs by event. */ + async getTxsEvent(params: GetTxsEventRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.events !== "undefined") { + options.params.events = params.events; + } + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + if (typeof params?.orderBy !== "undefined") { + options.params.order_by = params.orderBy; + } + if (typeof params?.page !== "undefined") { + options.params.page = params.page; + } + if (typeof params?.limit !== "undefined") { + options.params.limit = params.limit; + } + const endpoint = `cosmos/tx/v1beta1/txs`; + return await this.req.get(endpoint, options); + } + /* GetBlockWithTxs fetches a block with decoded txs. + + Since: cosmos-sdk 0.45.2 */ + async getBlockWithTxs(params: GetBlockWithTxsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; + return await this.req.get(endpoint, options); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/tx/v1beta1/service.rpc.Service.ts b/packages/api/src/cosmos/tx/v1beta1/service.rpc.Service.ts new file mode 100644 index 00000000..f52a7913 --- /dev/null +++ b/packages/api/src/cosmos/tx/v1beta1/service.rpc.Service.ts @@ -0,0 +1,79 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; +/** Service defines a gRPC service for interacting with transactions. */ +export interface Service { + /** Simulate simulates executing a transaction for estimating gas usage. */ + simulate(request: SimulateRequest): Promise; + /** GetTx fetches a tx by hash. */ + getTx(request: GetTxRequest): Promise; + /** BroadcastTx broadcast transaction. */ + broadcastTx(request: BroadcastTxRequest): Promise; + /** GetTxsEvent fetches txs by event. */ + getTxsEvent(request: GetTxsEventRequest): Promise; + /** + * GetBlockWithTxs fetches a block with decoded txs. + * + * Since: cosmos-sdk 0.45.2 + */ + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; +} +export class ServiceClientImpl implements Service { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.simulate = this.simulate.bind(this); + this.getTx = this.getTx.bind(this); + this.broadcastTx = this.broadcastTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + simulate(request: SimulateRequest): Promise { + const data = SimulateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); + return promise.then(data => SimulateResponse.decode(new BinaryReader(data))); + } + getTx(request: GetTxRequest): Promise { + const data = GetTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); + return promise.then(data => GetTxResponse.decode(new BinaryReader(data))); + } + broadcastTx(request: BroadcastTxRequest): Promise { + const data = BroadcastTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); + return promise.then(data => BroadcastTxResponse.decode(new BinaryReader(data))); + } + getTxsEvent(request: GetTxsEventRequest): Promise { + const data = GetTxsEventRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); + return promise.then(data => GetTxsEventResponse.decode(new BinaryReader(data))); + } + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { + const data = GetBlockWithTxsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); + return promise.then(data => GetBlockWithTxsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new ServiceClientImpl(rpc); + return { + simulate(request: SimulateRequest): Promise { + return queryService.simulate(request); + }, + getTx(request: GetTxRequest): Promise { + return queryService.getTx(request); + }, + broadcastTx(request: BroadcastTxRequest): Promise { + return queryService.broadcastTx(request); + }, + getTxsEvent(request: GetTxsEventRequest): Promise { + return queryService.getTxsEvent(request); + }, + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { + return queryService.getBlockWithTxs(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/tx/v1beta1/service.ts b/packages/api/src/cosmos/tx/v1beta1/service.ts new file mode 100644 index 00000000..63971d12 --- /dev/null +++ b/packages/api/src/cosmos/tx/v1beta1/service.ts @@ -0,0 +1,1404 @@ +//@ts-nocheck +import { Tx, TxAmino, TxSDKType } from "./tx"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; +import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; +import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; +import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** OrderBy defines the sorting order */ +export enum OrderBy { + /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ + ORDER_BY_UNSPECIFIED = 0, + /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ + ORDER_BY_ASC = 1, + /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ + ORDER_BY_DESC = 2, + UNRECOGNIZED = -1, +} +export const OrderBySDKType = OrderBy; +export const OrderByAmino = OrderBy; +export function orderByFromJSON(object: any): OrderBy { + switch (object) { + case 0: + case "ORDER_BY_UNSPECIFIED": + return OrderBy.ORDER_BY_UNSPECIFIED; + case 1: + case "ORDER_BY_ASC": + return OrderBy.ORDER_BY_ASC; + case 2: + case "ORDER_BY_DESC": + return OrderBy.ORDER_BY_DESC; + case -1: + case "UNRECOGNIZED": + default: + return OrderBy.UNRECOGNIZED; + } +} +export function orderByToJSON(object: OrderBy): string { + switch (object) { + case OrderBy.ORDER_BY_UNSPECIFIED: + return "ORDER_BY_UNSPECIFIED"; + case OrderBy.ORDER_BY_ASC: + return "ORDER_BY_ASC"; + case OrderBy.ORDER_BY_DESC: + return "ORDER_BY_DESC"; + case OrderBy.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ +export enum BroadcastMode { + /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ + BROADCAST_MODE_UNSPECIFIED = 0, + /** + * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + */ + BROADCAST_MODE_BLOCK = 1, + /** + * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + */ + BROADCAST_MODE_SYNC = 2, + /** + * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + */ + BROADCAST_MODE_ASYNC = 3, + UNRECOGNIZED = -1, +} +export const BroadcastModeSDKType = BroadcastMode; +export const BroadcastModeAmino = BroadcastMode; +export function broadcastModeFromJSON(object: any): BroadcastMode { + switch (object) { + case 0: + case "BROADCAST_MODE_UNSPECIFIED": + return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; + case 1: + case "BROADCAST_MODE_BLOCK": + return BroadcastMode.BROADCAST_MODE_BLOCK; + case 2: + case "BROADCAST_MODE_SYNC": + return BroadcastMode.BROADCAST_MODE_SYNC; + case 3: + case "BROADCAST_MODE_ASYNC": + return BroadcastMode.BROADCAST_MODE_ASYNC; + case -1: + case "UNRECOGNIZED": + default: + return BroadcastMode.UNRECOGNIZED; + } +} +export function broadcastModeToJSON(object: BroadcastMode): string { + switch (object) { + case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: + return "BROADCAST_MODE_UNSPECIFIED"; + case BroadcastMode.BROADCAST_MODE_BLOCK: + return "BROADCAST_MODE_BLOCK"; + case BroadcastMode.BROADCAST_MODE_SYNC: + return "BROADCAST_MODE_SYNC"; + case BroadcastMode.BROADCAST_MODE_ASYNC: + return "BROADCAST_MODE_ASYNC"; + case BroadcastMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequest { + /** events is the list of transaction event type. */ + events: string[]; + /** + * pagination defines a pagination for the request. + * Deprecated post v0.46.x: use page and limit instead. + */ + /** @deprecated */ + pagination?: PageRequest; + orderBy: OrderBy; + /** page is the page number to query, starts at 1. If not provided, will default to first page. */ + page: bigint; + /** + * 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. + */ + limit: bigint; +} +export interface GetTxsEventRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; + value: Uint8Array; +} +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequestAmino { + /** events is the list of transaction event type. */ + events?: string[]; + /** + * pagination defines a pagination for the request. + * Deprecated post v0.46.x: use page and limit instead. + */ + /** @deprecated */ + pagination?: PageRequestAmino; + order_by?: OrderBy; + /** page is the page number to query, starts at 1. If not provided, will default to first page. */ + page?: string; + /** + * 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. + */ + limit?: string; +} +export interface GetTxsEventRequestAminoMsg { + type: "cosmos-sdk/GetTxsEventRequest"; + value: GetTxsEventRequestAmino; +} +/** + * GetTxsEventRequest is the request type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventRequestSDKType { + events: string[]; + /** @deprecated */ + pagination?: PageRequestSDKType; + order_by: OrderBy; + page: bigint; + limit: bigint; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponse { + /** txs is the list of queried transactions. */ + txs: Tx[]; + /** tx_responses is the list of queried TxResponses. */ + txResponses: TxResponse[]; + /** + * pagination defines a pagination for the response. + * Deprecated post v0.46.x: use total instead. + */ + /** @deprecated */ + pagination?: PageResponse; + /** total is total number of results available */ + total: bigint; +} +export interface GetTxsEventResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; + value: Uint8Array; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponseAmino { + /** txs is the list of queried transactions. */ + txs?: TxAmino[]; + /** tx_responses is the list of queried TxResponses. */ + tx_responses?: TxResponseAmino[]; + /** + * pagination defines a pagination for the response. + * Deprecated post v0.46.x: use total instead. + */ + /** @deprecated */ + pagination?: PageResponseAmino; + /** total is total number of results available */ + total?: string; +} +export interface GetTxsEventResponseAminoMsg { + type: "cosmos-sdk/GetTxsEventResponse"; + value: GetTxsEventResponseAmino; +} +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface GetTxsEventResponseSDKType { + txs: TxSDKType[]; + tx_responses: TxResponseSDKType[]; + /** @deprecated */ + pagination?: PageResponseSDKType; + total: bigint; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequest { + /** tx_bytes is the raw transaction. */ + txBytes: Uint8Array; + mode: BroadcastMode; +} +export interface BroadcastTxRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; + value: Uint8Array; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequestAmino { + /** tx_bytes is the raw transaction. */ + tx_bytes?: string; + mode?: BroadcastMode; +} +export interface BroadcastTxRequestAminoMsg { + type: "cosmos-sdk/BroadcastTxRequest"; + value: BroadcastTxRequestAmino; +} +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface BroadcastTxRequestSDKType { + tx_bytes: Uint8Array; + mode: BroadcastMode; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponse { + /** tx_response is the queried TxResponses. */ + txResponse?: TxResponse; +} +export interface BroadcastTxResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; + value: Uint8Array; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponseAmino { + /** tx_response is the queried TxResponses. */ + tx_response?: TxResponseAmino; +} +export interface BroadcastTxResponseAminoMsg { + type: "cosmos-sdk/BroadcastTxResponse"; + value: BroadcastTxResponseAmino; +} +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface BroadcastTxResponseSDKType { + tx_response?: TxResponseSDKType; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequest { + /** + * tx is the transaction to simulate. + * Deprecated. Send raw tx bytes instead. + */ + /** @deprecated */ + tx?: Tx; + /** + * tx_bytes is the raw transaction. + * + * Since: cosmos-sdk 0.43 + */ + txBytes: Uint8Array; +} +export interface SimulateRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; + value: Uint8Array; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequestAmino { + /** + * tx is the transaction to simulate. + * Deprecated. Send raw tx bytes instead. + */ + /** @deprecated */ + tx?: TxAmino; + /** + * tx_bytes is the raw transaction. + * + * Since: cosmos-sdk 0.43 + */ + tx_bytes?: string; +} +export interface SimulateRequestAminoMsg { + type: "cosmos-sdk/SimulateRequest"; + value: SimulateRequestAmino; +} +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface SimulateRequestSDKType { + /** @deprecated */ + tx?: TxSDKType; + tx_bytes: Uint8Array; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponse { + /** gas_info is the information about gas used in the simulation. */ + gasInfo?: GasInfo; + /** result is the result of the simulation. */ + result?: Result; +} +export interface SimulateResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; + value: Uint8Array; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponseAmino { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: GasInfoAmino; + /** result is the result of the simulation. */ + result?: ResultAmino; +} +export interface SimulateResponseAminoMsg { + type: "cosmos-sdk/SimulateResponse"; + value: SimulateResponseAmino; +} +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface SimulateResponseSDKType { + gas_info?: GasInfoSDKType; + result?: ResultSDKType; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequest { + /** hash is the tx hash to query, encoded as a hex string. */ + hash: string; +} +export interface GetTxRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; + value: Uint8Array; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequestAmino { + /** hash is the tx hash to query, encoded as a hex string. */ + hash?: string; +} +export interface GetTxRequestAminoMsg { + type: "cosmos-sdk/GetTxRequest"; + value: GetTxRequestAmino; +} +/** + * GetTxRequest is the request type for the Service.GetTx + * RPC method. + */ +export interface GetTxRequestSDKType { + hash: string; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponse { + /** tx is the queried transaction. */ + tx?: Tx; + /** tx_response is the queried TxResponses. */ + txResponse?: TxResponse; +} +export interface GetTxResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; + value: Uint8Array; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponseAmino { + /** tx is the queried transaction. */ + tx?: TxAmino; + /** tx_response is the queried TxResponses. */ + tx_response?: TxResponseAmino; +} +export interface GetTxResponseAminoMsg { + type: "cosmos-sdk/GetTxResponse"; + value: GetTxResponseAmino; +} +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface GetTxResponseSDKType { + tx?: TxSDKType; + tx_response?: TxResponseSDKType; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequest { + /** height is the height of the block to query. */ + height: bigint; + /** pagination defines a pagination for the request. */ + pagination?: PageRequest; +} +export interface GetBlockWithTxsRequestProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; + value: Uint8Array; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequestAmino { + /** height is the height of the block to query. */ + height?: string; + /** pagination defines a pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface GetBlockWithTxsRequestAminoMsg { + type: "cosmos-sdk/GetBlockWithTxsRequest"; + value: GetBlockWithTxsRequestAmino; +} +/** + * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs + * RPC method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsRequestSDKType { + height: bigint; + pagination?: PageRequestSDKType; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponse { + /** txs are the transactions in the block. */ + txs: Tx[]; + blockId?: BlockID; + block?: Block; + /** pagination defines a pagination for the response. */ + pagination?: PageResponse; +} +export interface GetBlockWithTxsResponseProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; + value: Uint8Array; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponseAmino { + /** txs are the transactions in the block. */ + txs?: TxAmino[]; + block_id?: BlockIDAmino; + block?: BlockAmino; + /** pagination defines a pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface GetBlockWithTxsResponseAminoMsg { + type: "cosmos-sdk/GetBlockWithTxsResponse"; + value: GetBlockWithTxsResponseAmino; +} +/** + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * + * Since: cosmos-sdk 0.45.2 + */ +export interface GetBlockWithTxsResponseSDKType { + txs: TxSDKType[]; + block_id?: BlockIDSDKType; + block?: BlockSDKType; + pagination?: PageResponseSDKType; +} +function createBaseGetTxsEventRequest(): GetTxsEventRequest { + return { + events: [], + pagination: undefined, + orderBy: 0, + page: BigInt(0), + limit: BigInt(0) + }; +} +export const GetTxsEventRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + encode(message: GetTxsEventRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.events) { + writer.uint32(10).string(v!); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + if (message.orderBy !== 0) { + writer.uint32(24).int32(message.orderBy); + } + if (message.page !== BigInt(0)) { + writer.uint32(32).uint64(message.page); + } + if (message.limit !== BigInt(0)) { + writer.uint32(40).uint64(message.limit); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(reader.string()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + case 3: + message.orderBy = (reader.int32() as any); + break; + case 4: + message.page = reader.uint64(); + break; + case 5: + message.limit = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetTxsEventRequest { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + message.orderBy = object.orderBy ?? 0; + message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); + message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); + return message; + }, + fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest { + const message = createBaseGetTxsEventRequest(); + message.events = object.events?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + if (object.order_by !== undefined && object.order_by !== null) { + message.orderBy = object.order_by; + } + if (object.page !== undefined && object.page !== null) { + message.page = BigInt(object.page); + } + if (object.limit !== undefined && object.limit !== null) { + message.limit = BigInt(object.limit); + } + return message; + }, + toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino { + const obj: any = {}; + if (message.events) { + obj.events = message.events.map(e => e); + } else { + obj.events = message.events; + } + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; + obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + return obj; + }, + fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest { + return GetTxsEventRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg { + return { + type: "cosmos-sdk/GetTxsEventRequest", + value: GetTxsEventRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest { + return GetTxsEventRequest.decode(message.value); + }, + toProto(message: GetTxsEventRequest): Uint8Array { + return GetTxsEventRequest.encode(message).finish(); + }, + toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", + value: GetTxsEventRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxsEventResponse(): GetTxsEventResponse { + return { + txs: [], + txResponses: [], + pagination: undefined, + total: BigInt(0) + }; +} +export const GetTxsEventResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + encode(message: GetTxsEventResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.txs) { + Tx.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.txResponses) { + TxResponse.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); + } + if (message.total !== BigInt(0)) { + writer.uint32(32).uint64(message.total); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxsEventResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(Tx.decode(reader, reader.uint32())); + break; + case 2: + message.txResponses.push(TxResponse.decode(reader, reader.uint32())); + break; + case 3: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 4: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetTxsEventResponse { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; + message.txResponses = object.txResponses?.map(e => TxResponse.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + return message; + }, + fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse { + const message = createBaseGetTxsEventResponse(); + message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; + message.txResponses = object.tx_responses?.map(e => TxResponse.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + return message; + }, + toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino { + const obj: any = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); + } else { + obj.txs = message.txs; + } + if (message.txResponses) { + obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined); + } else { + obj.tx_responses = message.txResponses; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + return obj; + }, + fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse { + return GetTxsEventResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg { + return { + type: "cosmos-sdk/GetTxsEventResponse", + value: GetTxsEventResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse { + return GetTxsEventResponse.decode(message.value); + }, + toProto(message: GetTxsEventResponse): Uint8Array { + return GetTxsEventResponse.encode(message).finish(); + }, + toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", + value: GetTxsEventResponse.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxRequest(): BroadcastTxRequest { + return { + txBytes: new Uint8Array(), + mode: 0 + }; +} +export const BroadcastTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + encode(message: BroadcastTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.txBytes.length !== 0) { + writer.uint32(10).bytes(message.txBytes); + } + if (message.mode !== 0) { + writer.uint32(16).int32(message.mode); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txBytes = reader.bytes(); + break; + case 2: + message.mode = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BroadcastTxRequest { + const message = createBaseBroadcastTxRequest(); + message.txBytes = object.txBytes ?? new Uint8Array(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest { + const message = createBaseBroadcastTxRequest(); + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = bytesFromBase64(object.tx_bytes); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino { + const obj: any = {}; + obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest { + return BroadcastTxRequest.fromAmino(object.value); + }, + toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg { + return { + type: "cosmos-sdk/BroadcastTxRequest", + value: BroadcastTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest { + return BroadcastTxRequest.decode(message.value); + }, + toProto(message: BroadcastTxRequest): Uint8Array { + return BroadcastTxRequest.encode(message).finish(); + }, + toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", + value: BroadcastTxRequest.encode(message).finish() + }; + } +}; +function createBaseBroadcastTxResponse(): BroadcastTxResponse { + return { + txResponse: undefined + }; +} +export const BroadcastTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + encode(message: BroadcastTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.txResponse !== undefined) { + TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBroadcastTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txResponse = TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BroadcastTxResponse { + const message = createBaseBroadcastTxResponse(); + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse { + const message = createBaseBroadcastTxResponse(); + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino { + const obj: any = {}; + obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse { + return BroadcastTxResponse.fromAmino(object.value); + }, + toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg { + return { + type: "cosmos-sdk/BroadcastTxResponse", + value: BroadcastTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse { + return BroadcastTxResponse.decode(message.value); + }, + toProto(message: BroadcastTxResponse): Uint8Array { + return BroadcastTxResponse.encode(message).finish(); + }, + toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", + value: BroadcastTxResponse.encode(message).finish() + }; + } +}; +function createBaseSimulateRequest(): SimulateRequest { + return { + tx: undefined, + txBytes: new Uint8Array() + }; +} +export const SimulateRequest = { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + encode(message: SimulateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tx !== undefined) { + Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txBytes.length !== 0) { + writer.uint32(18).bytes(message.txBytes); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SimulateRequest { + const message = createBaseSimulateRequest(); + message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; + message.txBytes = object.txBytes ?? new Uint8Array(); + return message; + }, + fromAmino(object: SimulateRequestAmino): SimulateRequest { + const message = createBaseSimulateRequest(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = Tx.fromAmino(object.tx); + } + if (object.tx_bytes !== undefined && object.tx_bytes !== null) { + message.txBytes = bytesFromBase64(object.tx_bytes); + } + return message; + }, + toAmino(message: SimulateRequest): SimulateRequestAmino { + const obj: any = {}; + obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; + obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; + return obj; + }, + fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest { + return SimulateRequest.fromAmino(object.value); + }, + toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg { + return { + type: "cosmos-sdk/SimulateRequest", + value: SimulateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest { + return SimulateRequest.decode(message.value); + }, + toProto(message: SimulateRequest): Uint8Array { + return SimulateRequest.encode(message).finish(); + }, + toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", + value: SimulateRequest.encode(message).finish() + }; + } +}; +function createBaseSimulateResponse(): SimulateResponse { + return { + gasInfo: undefined, + result: undefined + }; +} +export const SimulateResponse = { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + encode(message: SimulateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.gasInfo !== undefined) { + GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); + } + if (message.result !== undefined) { + Result.encode(message.result, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimulateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gasInfo = GasInfo.decode(reader, reader.uint32()); + break; + case 2: + message.result = Result.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SimulateResponse { + const message = createBaseSimulateResponse(); + message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; + message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object: SimulateResponseAmino): SimulateResponse { + const message = createBaseSimulateResponse(); + if (object.gas_info !== undefined && object.gas_info !== null) { + message.gasInfo = GasInfo.fromAmino(object.gas_info); + } + if (object.result !== undefined && object.result !== null) { + message.result = Result.fromAmino(object.result); + } + return message; + }, + toAmino(message: SimulateResponse): SimulateResponseAmino { + const obj: any = {}; + obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; + obj.result = message.result ? Result.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse { + return SimulateResponse.fromAmino(object.value); + }, + toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg { + return { + type: "cosmos-sdk/SimulateResponse", + value: SimulateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse { + return SimulateResponse.decode(message.value); + }, + toProto(message: SimulateResponse): Uint8Array { + return SimulateResponse.encode(message).finish(); + }, + toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", + value: SimulateResponse.encode(message).finish() + }; + } +}; +function createBaseGetTxRequest(): GetTxRequest { + return { + hash: "" + }; +} +export const GetTxRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + encode(message: GetTxRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetTxRequest { + const message = createBaseGetTxRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object: GetTxRequestAmino): GetTxRequest { + const message = createBaseGetTxRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message: GetTxRequest): GetTxRequestAmino { + const obj: any = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest { + return GetTxRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg { + return { + type: "cosmos-sdk/GetTxRequest", + value: GetTxRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest { + return GetTxRequest.decode(message.value); + }, + toProto(message: GetTxRequest): Uint8Array { + return GetTxRequest.encode(message).finish(); + }, + toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", + value: GetTxRequest.encode(message).finish() + }; + } +}; +function createBaseGetTxResponse(): GetTxResponse { + return { + tx: undefined, + txResponse: undefined + }; +} +export const GetTxResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + encode(message: GetTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tx !== undefined) { + Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); + } + if (message.txResponse !== undefined) { + TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = Tx.decode(reader, reader.uint32()); + break; + case 2: + message.txResponse = TxResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetTxResponse { + const message = createBaseGetTxResponse(); + message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; + message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; + return message; + }, + fromAmino(object: GetTxResponseAmino): GetTxResponse { + const message = createBaseGetTxResponse(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = Tx.fromAmino(object.tx); + } + if (object.tx_response !== undefined && object.tx_response !== null) { + message.txResponse = TxResponse.fromAmino(object.tx_response); + } + return message; + }, + toAmino(message: GetTxResponse): GetTxResponseAmino { + const obj: any = {}; + obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; + obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; + return obj; + }, + fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse { + return GetTxResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg { + return { + type: "cosmos-sdk/GetTxResponse", + value: GetTxResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse { + return GetTxResponse.decode(message.value); + }, + toProto(message: GetTxResponse): Uint8Array { + return GetTxResponse.encode(message).finish(); + }, + toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", + value: GetTxResponse.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsRequest(): GetBlockWithTxsRequest { + return { + height: BigInt(0), + pagination: undefined + }; +} +export const GetBlockWithTxsRequest = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + encode(message: GetBlockWithTxsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetBlockWithTxsRequest { + const message = createBaseGetBlockWithTxsRequest(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest { + const message = createBaseGetBlockWithTxsRequest(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest { + return GetBlockWithTxsRequest.fromAmino(object.value); + }, + toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg { + return { + type: "cosmos-sdk/GetBlockWithTxsRequest", + value: GetBlockWithTxsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest { + return GetBlockWithTxsRequest.decode(message.value); + }, + toProto(message: GetBlockWithTxsRequest): Uint8Array { + return GetBlockWithTxsRequest.encode(message).finish(); + }, + toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", + value: GetBlockWithTxsRequest.encode(message).finish() + }; + } +}; +function createBaseGetBlockWithTxsResponse(): GetBlockWithTxsResponse { + return { + txs: [], + blockId: undefined, + block: undefined, + pagination: undefined + }; +} +export const GetBlockWithTxsResponse = { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + encode(message: GetBlockWithTxsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.txs) { + Tx.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); + } + if (message.block !== undefined) { + Block.encode(message.block, writer.uint32(26).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetBlockWithTxsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(Tx.decode(reader, reader.uint32())); + break; + case 2: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 3: + message.block = Block.decode(reader, reader.uint32()); + break; + case 4: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GetBlockWithTxsResponse { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse { + const message = createBaseGetBlockWithTxsResponse(); + message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.block !== undefined && object.block !== null) { + message.block = Block.fromAmino(object.block); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino { + const obj: any = {}; + if (message.txs) { + obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); + } else { + obj.txs = message.txs; + } + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.block = message.block ? Block.toAmino(message.block) : undefined; + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse { + return GetBlockWithTxsResponse.fromAmino(object.value); + }, + toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg { + return { + type: "cosmos-sdk/GetBlockWithTxsResponse", + value: GetBlockWithTxsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse { + return GetBlockWithTxsResponse.decode(message.value); + }, + toProto(message: GetBlockWithTxsResponse): Uint8Array { + return GetBlockWithTxsResponse.encode(message).finish(); + }, + toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", + value: GetBlockWithTxsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/tx/v1beta1/tx.ts b/packages/api/src/cosmos/tx/v1beta1/tx.ts new file mode 100644 index 00000000..8011a956 --- /dev/null +++ b/packages/api/src/cosmos/tx/v1beta1/tx.ts @@ -0,0 +1,2037 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { SignMode } from "../signing/v1beta1/signing"; +import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** Tx is the standard type used for broadcasting transactions. */ +export interface Tx { + /** body is the processable content of the transaction */ + body?: TxBody; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + */ + authInfo?: AuthInfo; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures: Uint8Array[]; +} +export interface TxProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Tx"; + value: Uint8Array; +} +/** Tx is the standard type used for broadcasting transactions. */ +export interface TxAmino { + /** body is the processable content of the transaction */ + body?: TxBodyAmino; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + */ + auth_info?: AuthInfoAmino; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} +export interface TxAminoMsg { + type: "cosmos-sdk/Tx"; + value: TxAmino; +} +/** Tx is the standard type used for broadcasting transactions. */ +export interface TxSDKType { + body?: TxBodySDKType; + auth_info?: AuthInfoSDKType; + signatures: Uint8Array[]; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRaw { + /** + * body_bytes is a protobuf serialization of a TxBody that matches the + * representation in SignDoc. + */ + bodyBytes: Uint8Array; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in SignDoc. + */ + authInfoBytes: Uint8Array; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures: Uint8Array[]; +} +export interface TxRawProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.TxRaw"; + value: Uint8Array; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRawAmino { + /** + * body_bytes is a protobuf serialization of a TxBody that matches the + * representation in SignDoc. + */ + body_bytes?: string; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in SignDoc. + */ + auth_info_bytes?: string; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} +export interface TxRawAminoMsg { + type: "cosmos-sdk/TxRaw"; + value: TxRawAmino; +} +/** + * TxRaw is a variant of Tx that pins the signer's exact binary representation + * of body and auth_info. This is used for signing, broadcasting and + * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and + * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used + * as the transaction ID. + */ +export interface TxRawSDKType { + body_bytes: Uint8Array; + auth_info_bytes: Uint8Array; + signatures: Uint8Array[]; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDoc { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + bodyBytes: Uint8Array; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in TxRaw. + */ + authInfoBytes: Uint8Array; + /** + * chain_id is the unique identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker + */ + chainId: string; + /** account_number is the account number of the account in state */ + accountNumber: bigint; +} +export interface SignDocProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignDoc"; + value: Uint8Array; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDocAmino { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + body_bytes?: string; + /** + * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + * representation in TxRaw. + */ + auth_info_bytes?: string; + /** + * chain_id is the unique identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker + */ + chain_id?: string; + /** account_number is the account number of the account in state */ + account_number?: string; +} +export interface SignDocAminoMsg { + type: "cosmos-sdk/SignDoc"; + value: SignDocAmino; +} +/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ +export interface SignDocSDKType { + body_bytes: Uint8Array; + auth_info_bytes: Uint8Array; + chain_id: string; + account_number: bigint; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAux { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + bodyBytes: Uint8Array; + /** public_key is the public key of the signing account. */ + publicKey?: Any; + /** + * chain_id is the identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker. + */ + chainId: string; + /** account_number is the account number of the account in state. */ + accountNumber: bigint; + /** sequence is the sequence number of the signing account. */ + sequence: bigint; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * It should be left empty if the signer is not the tipper for this + * transaction. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + */ + tip?: Tip; +} +export interface SignDocDirectAuxProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; + value: Uint8Array; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAuxAmino { + /** + * body_bytes is protobuf serialization of a TxBody that matches the + * representation in TxRaw. + */ + body_bytes?: string; + /** public_key is the public key of the signing account. */ + public_key?: AnyAmino; + /** + * chain_id is the identifier of the chain this transaction targets. + * It prevents signed transactions from being used on another chain by an + * attacker. + */ + chain_id?: string; + /** account_number is the account number of the account in state. */ + account_number?: string; + /** sequence is the sequence number of the signing account. */ + sequence?: string; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * It should be left empty if the signer is not the tipper for this + * transaction. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + */ + tip?: TipAmino; +} +export interface SignDocDirectAuxAminoMsg { + type: "cosmos-sdk/SignDocDirectAux"; + value: SignDocDirectAuxAmino; +} +/** + * SignDocDirectAux is the type used for generating sign bytes for + * SIGN_MODE_DIRECT_AUX. + * + * Since: cosmos-sdk 0.46 + */ +export interface SignDocDirectAuxSDKType { + body_bytes: Uint8Array; + public_key?: AnySDKType; + chain_id: string; + account_number: bigint; + sequence: bigint; + tip?: TipSDKType; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBody { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages: Any[]; + /** + * memo is any arbitrary note/comment to be added to the transaction. + * WARNING: in clients, any publicly exposed text should not be called memo, + * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + */ + memo: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + */ + timeoutHeight: bigint; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extensionOptions: Any[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + nonCriticalExtensionOptions: Any[]; +} +export interface TxBodyProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.TxBody"; + value: Uint8Array; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBodyAmino { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: AnyAmino[]; + /** + * memo is any arbitrary note/comment to be added to the transaction. + * WARNING: in clients, any publicly exposed text should not be called memo, + * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: AnyAmino[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: AnyAmino[]; +} +export interface TxBodyAminoMsg { + type: "cosmos-sdk/TxBody"; + value: TxBodyAmino; +} +/** TxBody is the body of a transaction that all signers sign over. */ +export interface TxBodySDKType { + messages: AnySDKType[]; + memo: string; + timeout_height: bigint; + extension_options: AnySDKType[]; + non_critical_extension_options: AnySDKType[]; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfo { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signerInfos: SignerInfo[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: Fee; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + * + * Since: cosmos-sdk 0.46 + */ + tip?: Tip; +} +export interface AuthInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; + value: Uint8Array; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfoAmino { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signer_infos?: SignerInfoAmino[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: FeeAmino; + /** + * Tip is the optional tip used for transactions fees paid in another denom. + * + * This field is ignored if the chain didn't enable tips, i.e. didn't add the + * `TipDecorator` in its posthandler. + * + * Since: cosmos-sdk 0.46 + */ + tip?: TipAmino; +} +export interface AuthInfoAminoMsg { + type: "cosmos-sdk/AuthInfo"; + value: AuthInfoAmino; +} +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface AuthInfoSDKType { + signer_infos: SignerInfoSDKType[]; + fee?: FeeSDKType; + tip?: TipSDKType; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfo { + /** + * public_key is the public key of the signer. It is optional for accounts + * that already exist in state. If unset, the verifier can use the required \ + * signer address for this position and lookup the public key. + */ + publicKey?: Any; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + */ + modeInfo?: ModeInfo; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + */ + sequence: bigint; +} +export interface SignerInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; + value: Uint8Array; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfoAmino { + /** + * public_key is the public key of the signer. It is optional for accounts + * that already exist in state. If unset, the verifier can use the required \ + * signer address for this position and lookup the public key. + */ + public_key?: AnyAmino; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + */ + mode_info?: ModeInfoAmino; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + */ + sequence?: string; +} +export interface SignerInfoAminoMsg { + type: "cosmos-sdk/SignerInfo"; + value: SignerInfoAmino; +} +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface SignerInfoSDKType { + public_key?: AnySDKType; + mode_info?: ModeInfoSDKType; + sequence: bigint; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfo { + /** single represents a single signer */ + single?: ModeInfo_Single; + /** multi represents a nested multisig signer */ + multi?: ModeInfo_Multi; +} +export interface ModeInfoProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; + value: Uint8Array; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfoAmino { + /** single represents a single signer */ + single?: ModeInfo_SingleAmino; + /** multi represents a nested multisig signer */ + multi?: ModeInfo_MultiAmino; +} +export interface ModeInfoAminoMsg { + type: "cosmos-sdk/ModeInfo"; + value: ModeInfoAmino; +} +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface ModeInfoSDKType { + single?: ModeInfo_SingleSDKType; + multi?: ModeInfo_MultiSDKType; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_Single { + /** mode is the signing mode of the single signer */ + mode: SignMode; +} +export interface ModeInfo_SingleProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Single"; + value: Uint8Array; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_SingleAmino { + /** mode is the signing mode of the single signer */ + mode?: SignMode; +} +export interface ModeInfo_SingleAminoMsg { + type: "cosmos-sdk/Single"; + value: ModeInfo_SingleAmino; +} +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface ModeInfo_SingleSDKType { + mode: SignMode; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_Multi { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArray; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + modeInfos: ModeInfo[]; +} +export interface ModeInfo_MultiProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Multi"; + value: Uint8Array; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_MultiAmino { + /** bitarray specifies which keys within the multisig are signing */ + bitarray?: CompactBitArrayAmino; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + mode_infos?: ModeInfoAmino[]; +} +export interface ModeInfo_MultiAminoMsg { + type: "cosmos-sdk/Multi"; + value: ModeInfo_MultiAmino; +} +/** Multi is the mode info for a multisig public key */ +export interface ModeInfo_MultiSDKType { + bitarray?: CompactBitArraySDKType; + mode_infos: ModeInfoSDKType[]; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface Fee { + /** amount is the amount of coins to be paid as a fee */ + amount: Coin[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + */ + gasLimit: bigint; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter: string; +} +export interface FeeProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Fee"; + value: Uint8Array; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface FeeAmino { + /** amount is the amount of coins to be paid as a fee */ + amount?: CoinAmino[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; +} +export interface FeeAminoMsg { + type: "cosmos-sdk/Fee"; + value: FeeAmino; +} +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface FeeSDKType { + amount: CoinSDKType[]; + gas_limit: bigint; + payer: string; + granter: string; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface Tip { + /** amount is the amount of the tip */ + amount: Coin[]; + /** tipper is the address of the account paying for the tip */ + tipper: string; +} +export interface TipProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.Tip"; + value: Uint8Array; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface TipAmino { + /** amount is the amount of the tip */ + amount?: CoinAmino[]; + /** tipper is the address of the account paying for the tip */ + tipper?: string; +} +export interface TipAminoMsg { + type: "cosmos-sdk/Tip"; + value: TipAmino; +} +/** + * Tip is the tip used for meta-transactions. + * + * Since: cosmos-sdk 0.46 + */ +export interface TipSDKType { + amount: CoinSDKType[]; + tipper: string; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerData { + /** + * address is the bech32-encoded address of the auxiliary signer. If using + * AuxSignerData across different chains, the bech32 prefix of the target + * chain (where the final transaction is broadcasted) should be used. + */ + address: string; + /** + * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + * signs. Note: we use the same sign doc even if we're signing with + * LEGACY_AMINO_JSON. + */ + signDoc?: SignDocDirectAux; + /** mode is the signing mode of the single signer. */ + mode: SignMode; + /** sig is the signature of the sign doc. */ + sig: Uint8Array; +} +export interface AuxSignerDataProtoMsg { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; + value: Uint8Array; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerDataAmino { + /** + * address is the bech32-encoded address of the auxiliary signer. If using + * AuxSignerData across different chains, the bech32 prefix of the target + * chain (where the final transaction is broadcasted) should be used. + */ + address?: string; + /** + * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer + * signs. Note: we use the same sign doc even if we're signing with + * LEGACY_AMINO_JSON. + */ + sign_doc?: SignDocDirectAuxAmino; + /** mode is the signing mode of the single signer. */ + mode?: SignMode; + /** sig is the signature of the sign doc. */ + sig?: string; +} +export interface AuxSignerDataAminoMsg { + type: "cosmos-sdk/AuxSignerData"; + value: AuxSignerDataAmino; +} +/** + * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a + * tipper) builds and sends to the fee payer (who will build and broadcast the + * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected + * by the node if sent directly as-is. + * + * Since: cosmos-sdk 0.46 + */ +export interface AuxSignerDataSDKType { + address: string; + sign_doc?: SignDocDirectAuxSDKType; + mode: SignMode; + sig: Uint8Array; +} +function createBaseTx(): Tx { + return { + body: undefined, + authInfo: undefined, + signatures: [] + }; +} +export const Tx = { + typeUrl: "/cosmos.tx.v1beta1.Tx", + encode(message: Tx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.body !== undefined) { + TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); + } + if (message.authInfo !== undefined) { + AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Tx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.body = TxBody.decode(reader, reader.uint32()); + break; + case 2: + message.authInfo = AuthInfo.decode(reader, reader.uint32()); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Tx { + const message = createBaseTx(); + message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined; + message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined; + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object: TxAmino): Tx { + const message = createBaseTx(); + if (object.body !== undefined && object.body !== null) { + message.body = TxBody.fromAmino(object.body); + } + if (object.auth_info !== undefined && object.auth_info !== null) { + message.authInfo = AuthInfo.fromAmino(object.auth_info); + } + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: Tx): TxAmino { + const obj: any = {}; + obj.body = message.body ? TxBody.toAmino(message.body) : undefined; + obj.auth_info = message.authInfo ? AuthInfo.toAmino(message.authInfo) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: TxAminoMsg): Tx { + return Tx.fromAmino(object.value); + }, + toAminoMsg(message: Tx): TxAminoMsg { + return { + type: "cosmos-sdk/Tx", + value: Tx.toAmino(message) + }; + }, + fromProtoMsg(message: TxProtoMsg): Tx { + return Tx.decode(message.value); + }, + toProto(message: Tx): Uint8Array { + return Tx.encode(message).finish(); + }, + toProtoMsg(message: Tx): TxProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.Tx", + value: Tx.encode(message).finish() + }; + } +}; +function createBaseTxRaw(): TxRaw { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + signatures: [] + }; +} +export const TxRaw = { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + encode(message: TxRaw, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + for (const v of message.signatures) { + writer.uint32(26).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxRaw { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxRaw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.signatures.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxRaw { + const message = createBaseTxRaw(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.signatures = object.signatures?.map(e => e) || []; + return message; + }, + fromAmino(object: TxRawAmino): TxRaw { + const message = createBaseTxRaw(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); + } + message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: TxRaw): TxRawAmino { + const obj: any = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => base64FromBytes(e)); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: TxRawAminoMsg): TxRaw { + return TxRaw.fromAmino(object.value); + }, + toAminoMsg(message: TxRaw): TxRawAminoMsg { + return { + type: "cosmos-sdk/TxRaw", + value: TxRaw.toAmino(message) + }; + }, + fromProtoMsg(message: TxRawProtoMsg): TxRaw { + return TxRaw.decode(message.value); + }, + toProto(message: TxRaw): Uint8Array { + return TxRaw.encode(message).finish(); + }, + toProtoMsg(message: TxRaw): TxRawProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.TxRaw", + value: TxRaw.encode(message).finish() + }; + } +}; +function createBaseSignDoc(): SignDoc { + return { + bodyBytes: new Uint8Array(), + authInfoBytes: new Uint8Array(), + chainId: "", + accountNumber: BigInt(0) + }; +} +export const SignDoc = { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + encode(message: SignDoc, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.authInfoBytes.length !== 0) { + writer.uint32(18).bytes(message.authInfoBytes); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignDoc { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDoc(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.authInfoBytes = reader.bytes(); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignDoc { + const message = createBaseSignDoc(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object: SignDocAmino): SignDoc { + const message = createBaseSignDoc(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { + message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + return message; + }, + toAmino(message: SignDoc): SignDocAmino { + const obj: any = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object: SignDocAminoMsg): SignDoc { + return SignDoc.fromAmino(object.value); + }, + toAminoMsg(message: SignDoc): SignDocAminoMsg { + return { + type: "cosmos-sdk/SignDoc", + value: SignDoc.toAmino(message) + }; + }, + fromProtoMsg(message: SignDocProtoMsg): SignDoc { + return SignDoc.decode(message.value); + }, + toProto(message: SignDoc): Uint8Array { + return SignDoc.encode(message).finish(); + }, + toProtoMsg(message: SignDoc): SignDocProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDoc", + value: SignDoc.encode(message).finish() + }; + } +}; +function createBaseSignDocDirectAux(): SignDocDirectAux { + return { + bodyBytes: new Uint8Array(), + publicKey: undefined, + chainId: "", + accountNumber: BigInt(0), + sequence: BigInt(0), + tip: undefined + }; +} +export const SignDocDirectAux = { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + encode(message: SignDocDirectAux, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bodyBytes.length !== 0) { + writer.uint32(10).bytes(message.bodyBytes); + } + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(26).string(message.chainId); + } + if (message.accountNumber !== BigInt(0)) { + writer.uint32(32).uint64(message.accountNumber); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(40).uint64(message.sequence); + } + if (message.tip !== undefined) { + Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignDocDirectAux(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bodyBytes = reader.bytes(); + break; + case 2: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 3: + message.chainId = reader.string(); + break; + case 4: + message.accountNumber = reader.uint64(); + break; + case 5: + message.sequence = reader.uint64(); + break; + case 6: + message.tip = Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignDocDirectAux { + const message = createBaseSignDocDirectAux(); + message.bodyBytes = object.bodyBytes ?? new Uint8Array(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.chainId = object.chainId ?? ""; + message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux { + const message = createBaseSignDocDirectAux(); + if (object.body_bytes !== undefined && object.body_bytes !== null) { + message.bodyBytes = bytesFromBase64(object.body_bytes); + } + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.account_number !== undefined && object.account_number !== null) { + message.accountNumber = BigInt(object.account_number); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino { + const obj: any = {}; + obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux { + return SignDocDirectAux.fromAmino(object.value); + }, + toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg { + return { + type: "cosmos-sdk/SignDocDirectAux", + value: SignDocDirectAux.toAmino(message) + }; + }, + fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux { + return SignDocDirectAux.decode(message.value); + }, + toProto(message: SignDocDirectAux): Uint8Array { + return SignDocDirectAux.encode(message).finish(); + }, + toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", + value: SignDocDirectAux.encode(message).finish() + }; + } +}; +function createBaseTxBody(): TxBody { + return { + messages: [], + memo: "", + timeoutHeight: BigInt(0), + extensionOptions: [], + nonCriticalExtensionOptions: [] + }; +} +export const TxBody = { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + encode(message: TxBody, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.messages) { + Any.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.memo !== "") { + writer.uint32(18).string(message.memo); + } + if (message.timeoutHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.timeoutHeight); + } + for (const v of message.extensionOptions) { + Any.encode(v!, writer.uint32(8186).fork()).ldelim(); + } + for (const v of message.nonCriticalExtensionOptions) { + Any.encode(v!, writer.uint32(16378).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxBody { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxBody(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messages.push(Any.decode(reader, reader.uint32())); + break; + case 2: + message.memo = reader.string(); + break; + case 3: + message.timeoutHeight = reader.uint64(); + break; + case 1023: + message.extensionOptions.push(Any.decode(reader, reader.uint32())); + break; + case 2047: + message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxBody { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; + message.memo = object.memo ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); + message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || []; + message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || []; + return message; + }, + fromAmino(object: TxBodyAmino): TxBody { + const message = createBaseTxBody(); + message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; + if (object.memo !== undefined && object.memo !== null) { + message.memo = object.memo; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = BigInt(object.timeout_height); + } + message.extensionOptions = object.extension_options?.map(e => Any.fromAmino(e)) || []; + message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => Any.fromAmino(e)) || []; + return message; + }, + toAmino(message: TxBody): TxBodyAmino { + const obj: any = {}; + if (message.messages) { + obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.messages = message.messages; + } + obj.memo = message.memo === "" ? undefined : message.memo; + obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; + if (message.extensionOptions) { + obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.extension_options = message.extensionOptions; + } + if (message.nonCriticalExtensionOptions) { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined); + } else { + obj.non_critical_extension_options = message.nonCriticalExtensionOptions; + } + return obj; + }, + fromAminoMsg(object: TxBodyAminoMsg): TxBody { + return TxBody.fromAmino(object.value); + }, + toAminoMsg(message: TxBody): TxBodyAminoMsg { + return { + type: "cosmos-sdk/TxBody", + value: TxBody.toAmino(message) + }; + }, + fromProtoMsg(message: TxBodyProtoMsg): TxBody { + return TxBody.decode(message.value); + }, + toProto(message: TxBody): Uint8Array { + return TxBody.encode(message).finish(); + }, + toProtoMsg(message: TxBody): TxBodyProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.TxBody", + value: TxBody.encode(message).finish() + }; + } +}; +function createBaseAuthInfo(): AuthInfo { + return { + signerInfos: [], + fee: undefined, + tip: undefined + }; +} +export const AuthInfo = { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + encode(message: AuthInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.signerInfos) { + SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.fee !== undefined) { + Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + if (message.tip !== undefined) { + Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuthInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signerInfos.push(SignerInfo.decode(reader, reader.uint32())); + break; + case 2: + message.fee = Fee.decode(reader, reader.uint32()); + break; + case 3: + message.tip = Tip.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AuthInfo { + const message = createBaseAuthInfo(); + message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || []; + message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined; + message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; + return message; + }, + fromAmino(object: AuthInfoAmino): AuthInfo { + const message = createBaseAuthInfo(); + message.signerInfos = object.signer_infos?.map(e => SignerInfo.fromAmino(e)) || []; + if (object.fee !== undefined && object.fee !== null) { + message.fee = Fee.fromAmino(object.fee); + } + if (object.tip !== undefined && object.tip !== null) { + message.tip = Tip.fromAmino(object.tip); + } + return message; + }, + toAmino(message: AuthInfo): AuthInfoAmino { + const obj: any = {}; + if (message.signerInfos) { + obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined); + } else { + obj.signer_infos = message.signerInfos; + } + obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined; + obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; + return obj; + }, + fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo { + return AuthInfo.fromAmino(object.value); + }, + toAminoMsg(message: AuthInfo): AuthInfoAminoMsg { + return { + type: "cosmos-sdk/AuthInfo", + value: AuthInfo.toAmino(message) + }; + }, + fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo { + return AuthInfo.decode(message.value); + }, + toProto(message: AuthInfo): Uint8Array { + return AuthInfo.encode(message).finish(); + }, + toProtoMsg(message: AuthInfo): AuthInfoProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.AuthInfo", + value: AuthInfo.encode(message).finish() + }; + } +}; +function createBaseSignerInfo(): SignerInfo { + return { + publicKey: undefined, + modeInfo: undefined, + sequence: BigInt(0) + }; +} +export const SignerInfo = { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + encode(message: SignerInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.publicKey !== undefined) { + Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); + } + if (message.modeInfo !== undefined) { + ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); + } + if (message.sequence !== BigInt(0)) { + writer.uint32(24).uint64(message.sequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignerInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.publicKey = Any.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfo = ModeInfo.decode(reader, reader.uint32()); + break; + case 3: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignerInfo { + const message = createBaseSignerInfo(); + message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; + message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined; + message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: SignerInfoAmino): SignerInfo { + const message = createBaseSignerInfo(); + if (object.public_key !== undefined && object.public_key !== null) { + message.publicKey = Any.fromAmino(object.public_key); + } + if (object.mode_info !== undefined && object.mode_info !== null) { + message.modeInfo = ModeInfo.fromAmino(object.mode_info); + } + if (object.sequence !== undefined && object.sequence !== null) { + message.sequence = BigInt(object.sequence); + } + return message; + }, + toAmino(message: SignerInfo): SignerInfoAmino { + const obj: any = {}; + obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; + obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo { + return SignerInfo.fromAmino(object.value); + }, + toAminoMsg(message: SignerInfo): SignerInfoAminoMsg { + return { + type: "cosmos-sdk/SignerInfo", + value: SignerInfo.toAmino(message) + }; + }, + fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo { + return SignerInfo.decode(message.value); + }, + toProto(message: SignerInfo): Uint8Array { + return SignerInfo.encode(message).finish(); + }, + toProtoMsg(message: SignerInfo): SignerInfoProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.SignerInfo", + value: SignerInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo(): ModeInfo { + return { + single: undefined, + multi: undefined + }; +} +export const ModeInfo = { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + encode(message: ModeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.single !== undefined) { + ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); + } + if (message.multi !== undefined) { + ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.single = ModeInfo_Single.decode(reader, reader.uint32()); + break; + case 2: + message.multi = ModeInfo_Multi.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModeInfo { + const message = createBaseModeInfo(); + message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined; + message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined; + return message; + }, + fromAmino(object: ModeInfoAmino): ModeInfo { + const message = createBaseModeInfo(); + if (object.single !== undefined && object.single !== null) { + message.single = ModeInfo_Single.fromAmino(object.single); + } + if (object.multi !== undefined && object.multi !== null) { + message.multi = ModeInfo_Multi.fromAmino(object.multi); + } + return message; + }, + toAmino(message: ModeInfo): ModeInfoAmino { + const obj: any = {}; + obj.single = message.single ? ModeInfo_Single.toAmino(message.single) : undefined; + obj.multi = message.multi ? ModeInfo_Multi.toAmino(message.multi) : undefined; + return obj; + }, + fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo { + return ModeInfo.fromAmino(object.value); + }, + toAminoMsg(message: ModeInfo): ModeInfoAminoMsg { + return { + type: "cosmos-sdk/ModeInfo", + value: ModeInfo.toAmino(message) + }; + }, + fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo { + return ModeInfo.decode(message.value); + }, + toProto(message: ModeInfo): Uint8Array { + return ModeInfo.encode(message).finish(); + }, + toProtoMsg(message: ModeInfo): ModeInfoProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.ModeInfo", + value: ModeInfo.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Single(): ModeInfo_Single { + return { + mode: 0 + }; +} +export const ModeInfo_Single = { + typeUrl: "/cosmos.tx.v1beta1.Single", + encode(message: ModeInfo_Single, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.mode !== 0) { + writer.uint32(8).int32(message.mode); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Single(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModeInfo_Single { + const message = createBaseModeInfo_Single(); + message.mode = object.mode ?? 0; + return message; + }, + fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single { + const message = createBaseModeInfo_Single(); + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + return message; + }, + toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino { + const obj: any = {}; + obj.mode = message.mode === 0 ? undefined : message.mode; + return obj; + }, + fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single { + return ModeInfo_Single.fromAmino(object.value); + }, + toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg { + return { + type: "cosmos-sdk/Single", + value: ModeInfo_Single.toAmino(message) + }; + }, + fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single { + return ModeInfo_Single.decode(message.value); + }, + toProto(message: ModeInfo_Single): Uint8Array { + return ModeInfo_Single.encode(message).finish(); + }, + toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.Single", + value: ModeInfo_Single.encode(message).finish() + }; + } +}; +function createBaseModeInfo_Multi(): ModeInfo_Multi { + return { + bitarray: undefined, + modeInfos: [] + }; +} +export const ModeInfo_Multi = { + typeUrl: "/cosmos.tx.v1beta1.Multi", + encode(message: ModeInfo_Multi, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bitarray !== undefined) { + CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.modeInfos) { + ModeInfo.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModeInfo_Multi(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bitarray = CompactBitArray.decode(reader, reader.uint32()); + break; + case 2: + message.modeInfos.push(ModeInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModeInfo_Multi { + const message = createBaseModeInfo_Multi(); + message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; + message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi { + const message = createBaseModeInfo_Multi(); + if (object.bitarray !== undefined && object.bitarray !== null) { + message.bitarray = CompactBitArray.fromAmino(object.bitarray); + } + message.modeInfos = object.mode_infos?.map(e => ModeInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino { + const obj: any = {}; + obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; + if (message.modeInfos) { + obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined); + } else { + obj.mode_infos = message.modeInfos; + } + return obj; + }, + fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi { + return ModeInfo_Multi.fromAmino(object.value); + }, + toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg { + return { + type: "cosmos-sdk/Multi", + value: ModeInfo_Multi.toAmino(message) + }; + }, + fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi { + return ModeInfo_Multi.decode(message.value); + }, + toProto(message: ModeInfo_Multi): Uint8Array { + return ModeInfo_Multi.encode(message).finish(); + }, + toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.Multi", + value: ModeInfo_Multi.encode(message).finish() + }; + } +}; +function createBaseFee(): Fee { + return { + amount: [], + gasLimit: BigInt(0), + payer: "", + granter: "" + }; +} +export const Fee = { + typeUrl: "/cosmos.tx.v1beta1.Fee", + encode(message: Fee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.gasLimit !== BigInt(0)) { + writer.uint32(16).uint64(message.gasLimit); + } + if (message.payer !== "") { + writer.uint32(26).string(message.payer); + } + if (message.granter !== "") { + writer.uint32(34).string(message.granter); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Fee { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.gasLimit = reader.uint64(); + break; + case 3: + message.payer = reader.string(); + break; + case 4: + message.granter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Fee { + const message = createBaseFee(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); + message.payer = object.payer ?? ""; + message.granter = object.granter ?? ""; + return message; + }, + fromAmino(object: FeeAmino): Fee { + const message = createBaseFee(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.gas_limit !== undefined && object.gas_limit !== null) { + message.gasLimit = BigInt(object.gas_limit); + } + if (object.payer !== undefined && object.payer !== null) { + message.payer = object.payer; + } + if (object.granter !== undefined && object.granter !== null) { + message.granter = object.granter; + } + return message; + }, + toAmino(message: Fee): FeeAmino { + const obj: any = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; + obj.payer = message.payer === "" ? undefined : message.payer; + obj.granter = message.granter === "" ? undefined : message.granter; + return obj; + }, + fromAminoMsg(object: FeeAminoMsg): Fee { + return Fee.fromAmino(object.value); + }, + toAminoMsg(message: Fee): FeeAminoMsg { + return { + type: "cosmos-sdk/Fee", + value: Fee.toAmino(message) + }; + }, + fromProtoMsg(message: FeeProtoMsg): Fee { + return Fee.decode(message.value); + }, + toProto(message: Fee): Uint8Array { + return Fee.encode(message).finish(); + }, + toProtoMsg(message: Fee): FeeProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.Fee", + value: Fee.encode(message).finish() + }; + } +}; +function createBaseTip(): Tip { + return { + amount: [], + tipper: "" + }; +} +export const Tip = { + typeUrl: "/cosmos.tx.v1beta1.Tip", + encode(message: Tip, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.tipper !== "") { + writer.uint32(18).string(message.tipper); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Tip { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTip(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.tipper = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Tip { + const message = createBaseTip(); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.tipper = object.tipper ?? ""; + return message; + }, + fromAmino(object: TipAmino): Tip { + const message = createBaseTip(); + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.tipper !== undefined && object.tipper !== null) { + message.tipper = object.tipper; + } + return message; + }, + toAmino(message: Tip): TipAmino { + const obj: any = {}; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + obj.tipper = message.tipper === "" ? undefined : message.tipper; + return obj; + }, + fromAminoMsg(object: TipAminoMsg): Tip { + return Tip.fromAmino(object.value); + }, + toAminoMsg(message: Tip): TipAminoMsg { + return { + type: "cosmos-sdk/Tip", + value: Tip.toAmino(message) + }; + }, + fromProtoMsg(message: TipProtoMsg): Tip { + return Tip.decode(message.value); + }, + toProto(message: Tip): Uint8Array { + return Tip.encode(message).finish(); + }, + toProtoMsg(message: Tip): TipProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.Tip", + value: Tip.encode(message).finish() + }; + } +}; +function createBaseAuxSignerData(): AuxSignerData { + return { + address: "", + signDoc: undefined, + mode: 0, + sig: new Uint8Array() + }; +} +export const AuxSignerData = { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + encode(message: AuxSignerData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.signDoc !== undefined) { + SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); + } + if (message.mode !== 0) { + writer.uint32(24).int32(message.mode); + } + if (message.sig.length !== 0) { + writer.uint32(34).bytes(message.sig); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAuxSignerData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.signDoc = SignDocDirectAux.decode(reader, reader.uint32()); + break; + case 3: + message.mode = (reader.int32() as any); + break; + case 4: + message.sig = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AuxSignerData { + const message = createBaseAuxSignerData(); + message.address = object.address ?? ""; + message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined; + message.mode = object.mode ?? 0; + message.sig = object.sig ?? new Uint8Array(); + return message; + }, + fromAmino(object: AuxSignerDataAmino): AuxSignerData { + const message = createBaseAuxSignerData(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.sign_doc !== undefined && object.sign_doc !== null) { + message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc); + } + if (object.mode !== undefined && object.mode !== null) { + message.mode = object.mode; + } + if (object.sig !== undefined && object.sig !== null) { + message.sig = bytesFromBase64(object.sig); + } + return message; + }, + toAmino(message: AuxSignerData): AuxSignerDataAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined; + obj.mode = message.mode === 0 ? undefined : message.mode; + obj.sig = message.sig ? base64FromBytes(message.sig) : undefined; + return obj; + }, + fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData { + return AuxSignerData.fromAmino(object.value); + }, + toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg { + return { + type: "cosmos-sdk/AuxSignerData", + value: AuxSignerData.toAmino(message) + }; + }, + fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData { + return AuxSignerData.decode(message.value); + }, + toProto(message: AuxSignerData): Uint8Array { + return AuxSignerData.encode(message).finish(); + }, + toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg { + return { + typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", + value: AuxSignerData.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/query.lcd.ts b/packages/api/src/cosmos/upgrade/v1beta1/query.lcd.ts new file mode 100644 index 00000000..5332acf6 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/query.lcd.ts @@ -0,0 +1,58 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + /* CurrentPlan queries the current upgrade plan. */ + async currentPlan(_params: QueryCurrentPlanRequest = {}): Promise { + const endpoint = `cosmos/upgrade/v1beta1/current_plan`; + return await this.req.get(endpoint); + } + /* AppliedPlan queries a previously applied upgrade plan by its name. */ + async appliedPlan(params: QueryAppliedPlanRequest): Promise { + const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries the consensus state that will serve + as a trusted kernel for the next version of this chain. It will only be + stored at the last height of this chain. + UpgradedConsensusState RPC not supported with legacy querier + This rpc is deprecated now that IBC has its own replacement + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ + async upgradedConsensusState(params: QueryUpgradedConsensusStateRequest): Promise { + const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; + return await this.req.get(endpoint); + } + /* ModuleVersions queries the list of module versions from state. + + Since: cosmos-sdk 0.43 */ + async moduleVersions(params: QueryModuleVersionsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.moduleName !== "undefined") { + options.params.module_name = params.moduleName; + } + const endpoint = `cosmos/upgrade/v1beta1/module_versions`; + return await this.req.get(endpoint, options); + } + /* Returns the account with authority to conduct upgrades + + Since: cosmos-sdk 0.46 */ + async authority(_params: QueryAuthorityRequest = {}): Promise { + const endpoint = `cosmos/upgrade/v1beta1/authority`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts b/packages/api/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..e7ab8848 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts @@ -0,0 +1,90 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; +/** Query defines the gRPC upgrade querier service. */ +export interface Query { + /** CurrentPlan queries the current upgrade plan. */ + currentPlan(request?: QueryCurrentPlanRequest): Promise; + /** AppliedPlan queries a previously applied upgrade plan by its name. */ + appliedPlan(request: QueryAppliedPlanRequest): Promise; + /** + * UpgradedConsensusState queries the consensus state that will serve + * as a trusted kernel for the next version of this chain. It will only be + * stored at the last height of this chain. + * UpgradedConsensusState RPC not supported with legacy querier + * This rpc is deprecated now that IBC has its own replacement + * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + */ + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + /** + * ModuleVersions queries the list of module versions from state. + * + * Since: cosmos-sdk 0.43 + */ + moduleVersions(request: QueryModuleVersionsRequest): Promise; + /** + * Returns the account with authority to conduct upgrades + * + * Since: cosmos-sdk 0.46 + */ + authority(request?: QueryAuthorityRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + currentPlan(request: QueryCurrentPlanRequest = {}): Promise { + const data = QueryCurrentPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); + return promise.then(data => QueryCurrentPlanResponse.decode(new BinaryReader(data))); + } + appliedPlan(request: QueryAppliedPlanRequest): Promise { + const data = QueryAppliedPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); + return promise.then(data => QueryAppliedPlanResponse.decode(new BinaryReader(data))); + } + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); + } + moduleVersions(request: QueryModuleVersionsRequest): Promise { + const data = QueryModuleVersionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); + return promise.then(data => QueryModuleVersionsResponse.decode(new BinaryReader(data))); + } + authority(request: QueryAuthorityRequest = {}): Promise { + const data = QueryAuthorityRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); + return promise.then(data => QueryAuthorityResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + currentPlan(request?: QueryCurrentPlanRequest): Promise { + return queryService.currentPlan(request); + }, + appliedPlan(request: QueryAppliedPlanRequest): Promise { + return queryService.appliedPlan(request); + }, + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { + return queryService.upgradedConsensusState(request); + }, + moduleVersions(request: QueryModuleVersionsRequest): Promise { + return queryService.moduleVersions(request); + }, + authority(request?: QueryAuthorityRequest): Promise { + return queryService.authority(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/query.ts b/packages/api/src/cosmos/upgrade/v1beta1/query.ts new file mode 100644 index 00000000..66f4dac9 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/query.ts @@ -0,0 +1,1000 @@ +//@ts-nocheck +import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequest {} +export interface QueryCurrentPlanRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; + value: Uint8Array; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequestAmino {} +export interface QueryCurrentPlanRequestAminoMsg { + type: "cosmos-sdk/QueryCurrentPlanRequest"; + value: QueryCurrentPlanRequestAmino; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanRequestSDKType {} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponse { + /** plan is the current upgrade plan. */ + plan?: Plan; +} +export interface QueryCurrentPlanResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; + value: Uint8Array; +} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponseAmino { + /** plan is the current upgrade plan. */ + plan?: PlanAmino; +} +export interface QueryCurrentPlanResponseAminoMsg { + type: "cosmos-sdk/QueryCurrentPlanResponse"; + value: QueryCurrentPlanResponseAmino; +} +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface QueryCurrentPlanResponseSDKType { + plan?: PlanSDKType; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequest { + /** name is the name of the applied plan to query for. */ + name: string; +} +export interface QueryAppliedPlanRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; + value: Uint8Array; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequestAmino { + /** name is the name of the applied plan to query for. */ + name?: string; +} +export interface QueryAppliedPlanRequestAminoMsg { + type: "cosmos-sdk/QueryAppliedPlanRequest"; + value: QueryAppliedPlanRequestAmino; +} +/** + * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanRequestSDKType { + name: string; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponse { + /** height is the block height at which the plan was applied. */ + height: bigint; +} +export interface QueryAppliedPlanResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; + value: Uint8Array; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponseAmino { + /** height is the block height at which the plan was applied. */ + height?: string; +} +export interface QueryAppliedPlanResponseAminoMsg { + type: "cosmos-sdk/QueryAppliedPlanResponse"; + value: QueryAppliedPlanResponseAmino; +} +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface QueryAppliedPlanResponseSDKType { + height: bigint; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequest { + /** + * last height of the current chain must be sent in request + * as this is the height under which next consensus state is stored + */ + lastHeight: bigint; +} +export interface QueryUpgradedConsensusStateRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequestAmino { + /** + * last height of the current chain must be sent in request + * as this is the height under which next consensus state is stored + */ + last_height?: string; +} +export interface QueryUpgradedConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; + value: QueryUpgradedConsensusStateRequestAmino; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateRequestSDKType { + last_height: bigint; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponse { + /** Since: cosmos-sdk 0.43 */ + upgradedConsensusState: Uint8Array; +} +export interface QueryUpgradedConsensusStateResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponseAmino { + /** Since: cosmos-sdk 0.43 */ + upgraded_consensus_state?: string; +} +export interface QueryUpgradedConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; + value: QueryUpgradedConsensusStateResponseAmino; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +/** @deprecated */ +export interface QueryUpgradedConsensusStateResponseSDKType { + upgraded_consensus_state: Uint8Array; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequest { + /** + * module_name is a field to query a specific module + * consensus version from state. Leaving this empty will + * fetch the full list of module versions from state + */ + moduleName: string; +} +export interface QueryModuleVersionsRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; + value: Uint8Array; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequestAmino { + /** + * module_name is a field to query a specific module + * consensus version from state. Leaving this empty will + * fetch the full list of module versions from state + */ + module_name?: string; +} +export interface QueryModuleVersionsRequestAminoMsg { + type: "cosmos-sdk/QueryModuleVersionsRequest"; + value: QueryModuleVersionsRequestAmino; +} +/** + * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsRequestSDKType { + module_name: string; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponse { + /** module_versions is a list of module names with their consensus versions. */ + moduleVersions: ModuleVersion[]; +} +export interface QueryModuleVersionsResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; + value: Uint8Array; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponseAmino { + /** module_versions is a list of module names with their consensus versions. */ + module_versions?: ModuleVersionAmino[]; +} +export interface QueryModuleVersionsResponseAminoMsg { + type: "cosmos-sdk/QueryModuleVersionsResponse"; + value: QueryModuleVersionsResponseAmino; +} +/** + * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions + * RPC method. + * + * Since: cosmos-sdk 0.43 + */ +export interface QueryModuleVersionsResponseSDKType { + module_versions: ModuleVersionSDKType[]; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequest {} +export interface QueryAuthorityRequestProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; + value: Uint8Array; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequestAmino {} +export interface QueryAuthorityRequestAminoMsg { + type: "cosmos-sdk/QueryAuthorityRequest"; + value: QueryAuthorityRequestAmino; +} +/** + * QueryAuthorityRequest is the request type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityRequestSDKType {} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponse { + address: string; +} +export interface QueryAuthorityResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; + value: Uint8Array; +} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponseAmino { + address?: string; +} +export interface QueryAuthorityResponseAminoMsg { + type: "cosmos-sdk/QueryAuthorityResponse"; + value: QueryAuthorityResponseAmino; +} +/** + * QueryAuthorityResponse is the response type for Query/Authority + * + * Since: cosmos-sdk 0.46 + */ +export interface QueryAuthorityResponseSDKType { + address: string; +} +function createBaseQueryCurrentPlanRequest(): QueryCurrentPlanRequest { + return {}; +} +export const QueryCurrentPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + encode(_: QueryCurrentPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryCurrentPlanRequest { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest { + const message = createBaseQueryCurrentPlanRequest(); + return message; + }, + toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest { + return QueryCurrentPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg { + return { + type: "cosmos-sdk/QueryCurrentPlanRequest", + value: QueryCurrentPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest { + return QueryCurrentPlanRequest.decode(message.value); + }, + toProto(message: QueryCurrentPlanRequest): Uint8Array { + return QueryCurrentPlanRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", + value: QueryCurrentPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCurrentPlanResponse(): QueryCurrentPlanResponse { + return { + plan: undefined + }; +} +export const QueryCurrentPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + encode(message: QueryCurrentPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCurrentPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCurrentPlanResponse { + const message = createBaseQueryCurrentPlanResponse(); + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse { + const message = createBaseQueryCurrentPlanResponse(); + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino { + const obj: any = {}; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse { + return QueryCurrentPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg { + return { + type: "cosmos-sdk/QueryCurrentPlanResponse", + value: QueryCurrentPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse { + return QueryCurrentPlanResponse.decode(message.value); + }, + toProto(message: QueryCurrentPlanResponse): Uint8Array { + return QueryCurrentPlanResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", + value: QueryCurrentPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanRequest(): QueryAppliedPlanRequest { + return { + name: "" + }; +} +export const QueryAppliedPlanRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + encode(message: QueryAppliedPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAppliedPlanRequest { + const message = createBaseQueryAppliedPlanRequest(); + message.name = object.name ?? ""; + return message; + }, + fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest { + const message = createBaseQueryAppliedPlanRequest(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + return message; + }, + toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + return obj; + }, + fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest { + return QueryAppliedPlanRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAppliedPlanRequest", + value: QueryAppliedPlanRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest { + return QueryAppliedPlanRequest.decode(message.value); + }, + toProto(message: QueryAppliedPlanRequest): Uint8Array { + return QueryAppliedPlanRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", + value: QueryAppliedPlanRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAppliedPlanResponse(): QueryAppliedPlanResponse { + return { + height: BigInt(0) + }; +} +export const QueryAppliedPlanResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + encode(message: QueryAppliedPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAppliedPlanResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAppliedPlanResponse { + const message = createBaseQueryAppliedPlanResponse(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse { + const message = createBaseQueryAppliedPlanResponse(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse { + return QueryAppliedPlanResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAppliedPlanResponse", + value: QueryAppliedPlanResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse { + return QueryAppliedPlanResponse.decode(message.value); + }, + toProto(message: QueryAppliedPlanResponse): Uint8Array { + return QueryAppliedPlanResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", + value: QueryAppliedPlanResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest { + return { + lastHeight: BigInt(0) + }; +} +export const QueryUpgradedConsensusStateRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + encode(message: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.lastHeight !== BigInt(0)) { + writer.uint32(8).int64(message.lastHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUpgradedConsensusStateRequest { + const message = createBaseQueryUpgradedConsensusStateRequest(); + message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest { + const message = createBaseQueryUpgradedConsensusStateRequest(); + if (object.last_height !== undefined && object.last_height !== null) { + message.lastHeight = BigInt(object.last_height); + } + return message; + }, + toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino { + const obj: any = {}; + obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest { + return QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest { + return QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array { + return QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse { + return { + upgradedConsensusState: new Uint8Array() + }; +} +export const QueryUpgradedConsensusStateResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.upgradedConsensusState.length !== 0) { + writer.uint32(18).bytes(message.upgradedConsensusState); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.upgradedConsensusState = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUpgradedConsensusStateResponse { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); + return message; + }, + fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = bytesFromBase64(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino { + const obj: any = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? base64FromBytes(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse { + return QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse { + return QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array { + return QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsRequest(): QueryModuleVersionsRequest { + return { + moduleName: "" + }; +} +export const QueryModuleVersionsRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + encode(message: QueryModuleVersionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.moduleName !== "") { + writer.uint32(10).string(message.moduleName); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryModuleVersionsRequest { + const message = createBaseQueryModuleVersionsRequest(); + message.moduleName = object.moduleName ?? ""; + return message; + }, + fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest { + const message = createBaseQueryModuleVersionsRequest(); + if (object.module_name !== undefined && object.module_name !== null) { + message.moduleName = object.module_name; + } + return message; + }, + toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino { + const obj: any = {}; + obj.module_name = message.moduleName === "" ? undefined : message.moduleName; + return obj; + }, + fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest { + return QueryModuleVersionsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryModuleVersionsRequest", + value: QueryModuleVersionsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest { + return QueryModuleVersionsRequest.decode(message.value); + }, + toProto(message: QueryModuleVersionsRequest): Uint8Array { + return QueryModuleVersionsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", + value: QueryModuleVersionsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryModuleVersionsResponse(): QueryModuleVersionsResponse { + return { + moduleVersions: [] + }; +} +export const QueryModuleVersionsResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + encode(message: QueryModuleVersionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.moduleVersions) { + ModuleVersion.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryModuleVersionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryModuleVersionsResponse { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.moduleVersions?.map(e => ModuleVersion.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse { + const message = createBaseQueryModuleVersionsResponse(); + message.moduleVersions = object.module_versions?.map(e => ModuleVersion.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino { + const obj: any = {}; + if (message.moduleVersions) { + obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined); + } else { + obj.module_versions = message.moduleVersions; + } + return obj; + }, + fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse { + return QueryModuleVersionsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryModuleVersionsResponse", + value: QueryModuleVersionsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse { + return QueryModuleVersionsResponse.decode(message.value); + }, + toProto(message: QueryModuleVersionsResponse): Uint8Array { + return QueryModuleVersionsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", + value: QueryModuleVersionsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityRequest(): QueryAuthorityRequest { + return {}; +} +export const QueryAuthorityRequest = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + encode(_: QueryAuthorityRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryAuthorityRequest { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest { + const message = createBaseQueryAuthorityRequest(); + return message; + }, + toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest { + return QueryAuthorityRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg { + return { + type: "cosmos-sdk/QueryAuthorityRequest", + value: QueryAuthorityRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest { + return QueryAuthorityRequest.decode(message.value); + }, + toProto(message: QueryAuthorityRequest): Uint8Array { + return QueryAuthorityRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", + value: QueryAuthorityRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAuthorityResponse(): QueryAuthorityResponse { + return { + address: "" + }; +} +export const QueryAuthorityResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + encode(message: QueryAuthorityResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAuthorityResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAuthorityResponse { + const message = createBaseQueryAuthorityResponse(); + message.address = object.address ?? ""; + return message; + }, + fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse { + const message = createBaseQueryAuthorityResponse(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + return message; + }, + toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + return obj; + }, + fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse { + return QueryAuthorityResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg { + return { + type: "cosmos-sdk/QueryAuthorityResponse", + value: QueryAuthorityResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse { + return QueryAuthorityResponse.decode(message.value); + }, + toProto(message: QueryAuthorityResponse): Uint8Array { + return QueryAuthorityResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", + value: QueryAuthorityResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/tx.amino.ts b/packages/api/src/cosmos/upgrade/v1beta1/tx.amino.ts new file mode 100644 index 00000000..59e87c08 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/tx.amino.ts @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export const AminoConverter = { + "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { + aminoType: "cosmos-sdk/MsgSoftwareUpgrade", + toAmino: MsgSoftwareUpgrade.toAmino, + fromAmino: MsgSoftwareUpgrade.fromAmino + }, + "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { + aminoType: "cosmos-sdk/MsgCancelUpgrade", + toAmino: MsgCancelUpgrade.toAmino, + fromAmino: MsgCancelUpgrade.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/tx.registry.ts b/packages/api/src/cosmos/upgrade/v1beta1/tx.registry.ts new file mode 100644 index 00000000..019dde52 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/tx.registry.ts @@ -0,0 +1,53 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + softwareUpgrade(value: MsgSoftwareUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.encode(value).finish() + }; + }, + cancelUpgrade(value: MsgCancelUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.encode(value).finish() + }; + } + }, + withTypeUrl: { + softwareUpgrade(value: MsgSoftwareUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value + }; + }, + cancelUpgrade(value: MsgCancelUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value + }; + } + }, + fromPartial: { + softwareUpgrade(value: MsgSoftwareUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.fromPartial(value) + }; + }, + cancelUpgrade(value: MsgCancelUpgrade) { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..a4db6d5c --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,38 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; +/** Msg defines the upgrade Msg service. */ +export interface Msg { + /** + * SoftwareUpgrade is a governance operation for initiating a software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + softwareUpgrade(request: MsgSoftwareUpgrade): Promise; + /** + * CancelUpgrade is a governance operation for cancelling a previously + * approvid software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + cancelUpgrade(request: MsgCancelUpgrade): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.softwareUpgrade = this.softwareUpgrade.bind(this); + this.cancelUpgrade = this.cancelUpgrade.bind(this); + } + softwareUpgrade(request: MsgSoftwareUpgrade): Promise { + const data = MsgSoftwareUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); + return promise.then(data => MsgSoftwareUpgradeResponse.decode(new BinaryReader(data))); + } + cancelUpgrade(request: MsgCancelUpgrade): Promise { + const data = MsgCancelUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); + return promise.then(data => MsgCancelUpgradeResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/tx.ts b/packages/api/src/cosmos/upgrade/v1beta1/tx.ts new file mode 100644 index 00000000..c84bbdd3 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/tx.ts @@ -0,0 +1,390 @@ +//@ts-nocheck +import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgrade { + /** authority is the address of the governance account. */ + authority: string; + /** plan is the upgrade plan. */ + plan: Plan; +} +export interface MsgSoftwareUpgradeProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; + value: Uint8Array; +} +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** plan is the upgrade plan. */ + plan?: PlanAmino; +} +export interface MsgSoftwareUpgradeAminoMsg { + type: "cosmos-sdk/MsgSoftwareUpgrade"; + value: MsgSoftwareUpgradeAmino; +} +/** + * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeSDKType { + authority: string; + plan: PlanSDKType; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponse {} +export interface MsgSoftwareUpgradeResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; + value: Uint8Array; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponseAmino {} +export interface MsgSoftwareUpgradeResponseAminoMsg { + type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; + value: MsgSoftwareUpgradeResponseAmino; +} +/** + * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgSoftwareUpgradeResponseSDKType {} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgrade { + /** authority is the address of the governance account. */ + authority: string; +} +export interface MsgCancelUpgradeProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; + value: Uint8Array; +} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeAmino { + /** authority is the address of the governance account. */ + authority?: string; +} +export interface MsgCancelUpgradeAminoMsg { + type: "cosmos-sdk/MsgCancelUpgrade"; + value: MsgCancelUpgradeAmino; +} +/** + * MsgCancelUpgrade is the Msg/CancelUpgrade request type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeSDKType { + authority: string; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponse {} +export interface MsgCancelUpgradeResponseProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; + value: Uint8Array; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponseAmino {} +export interface MsgCancelUpgradeResponseAminoMsg { + type: "cosmos-sdk/MsgCancelUpgradeResponse"; + value: MsgCancelUpgradeResponseAmino; +} +/** + * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCancelUpgradeResponseSDKType {} +function createBaseMsgSoftwareUpgrade(): MsgSoftwareUpgrade { + return { + authority: "", + plan: Plan.fromPartial({}) + }; +} +export const MsgSoftwareUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + encode(message: MsgSoftwareUpgrade, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSoftwareUpgrade { + const message = createBaseMsgSoftwareUpgrade(); + message.authority = object.authority ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object: MsgSoftwareUpgradeAmino): MsgSoftwareUpgrade { + const message = createBaseMsgSoftwareUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object: MsgSoftwareUpgradeAminoMsg): MsgSoftwareUpgrade { + return MsgSoftwareUpgrade.fromAmino(object.value); + }, + toAminoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAminoMsg { + return { + type: "cosmos-sdk/MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSoftwareUpgradeProtoMsg): MsgSoftwareUpgrade { + return MsgSoftwareUpgrade.decode(message.value); + }, + toProto(message: MsgSoftwareUpgrade): Uint8Array { + return MsgSoftwareUpgrade.encode(message).finish(); + }, + toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", + value: MsgSoftwareUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgSoftwareUpgradeResponse(): MsgSoftwareUpgradeResponse { + return {}; +} +export const MsgSoftwareUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + encode(_: MsgSoftwareUpgradeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSoftwareUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSoftwareUpgradeResponse { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + fromAmino(_: MsgSoftwareUpgradeResponseAmino): MsgSoftwareUpgradeResponse { + const message = createBaseMsgSoftwareUpgradeResponse(); + return message; + }, + toAmino(_: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSoftwareUpgradeResponseAminoMsg): MsgSoftwareUpgradeResponse { + return MsgSoftwareUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSoftwareUpgradeResponse", + value: MsgSoftwareUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSoftwareUpgradeResponseProtoMsg): MsgSoftwareUpgradeResponse { + return MsgSoftwareUpgradeResponse.decode(message.value); + }, + toProto(message: MsgSoftwareUpgradeResponse): Uint8Array { + return MsgSoftwareUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", + value: MsgSoftwareUpgradeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgrade(): MsgCancelUpgrade { + return { + authority: "" + }; +} +export const MsgCancelUpgrade = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + encode(message: MsgCancelUpgrade, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgrade(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancelUpgrade { + const message = createBaseMsgCancelUpgrade(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: MsgCancelUpgradeAmino): MsgCancelUpgrade { + const message = createBaseMsgCancelUpgrade(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + return obj; + }, + fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade { + return MsgCancelUpgrade.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeAminoMsg { + return { + type: "cosmos-sdk/MsgCancelUpgrade", + value: MsgCancelUpgrade.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelUpgradeProtoMsg): MsgCancelUpgrade { + return MsgCancelUpgrade.decode(message.value); + }, + toProto(message: MsgCancelUpgrade): Uint8Array { + return MsgCancelUpgrade.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", + value: MsgCancelUpgrade.encode(message).finish() + }; + } +}; +function createBaseMsgCancelUpgradeResponse(): MsgCancelUpgradeResponse { + return {}; +} +export const MsgCancelUpgradeResponse = { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + encode(_: MsgCancelUpgradeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelUpgradeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCancelUpgradeResponse { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + fromAmino(_: MsgCancelUpgradeResponseAmino): MsgCancelUpgradeResponse { + const message = createBaseMsgCancelUpgradeResponse(); + return message; + }, + toAmino(_: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCancelUpgradeResponseAminoMsg): MsgCancelUpgradeResponse { + return MsgCancelUpgradeResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCancelUpgradeResponse", + value: MsgCancelUpgradeResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelUpgradeResponseProtoMsg): MsgCancelUpgradeResponse { + return MsgCancelUpgradeResponse.decode(message.value); + }, + toProto(message: MsgCancelUpgradeResponse): Uint8Array { + return MsgCancelUpgradeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", + value: MsgCancelUpgradeResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/upgrade/v1beta1/upgrade.ts b/packages/api/src/cosmos/upgrade/v1beta1/upgrade.ts new file mode 100644 index 00000000..c461c729 --- /dev/null +++ b/packages/api/src/cosmos/upgrade/v1beta1/upgrade.ts @@ -0,0 +1,599 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface Plan { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name: string; + /** + * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + * has been removed from the SDK. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + time: Date; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + */ + height: bigint; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info: string; + /** + * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + * moved to the IBC module in the sub module 02-client. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + upgradedClientState?: Any; +} +export interface PlanProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.Plan"; + value: Uint8Array; +} +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface PlanAmino { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + * has been removed from the SDK. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + * moved to the IBC module in the sub module 02-client. + * If this field is not empty, an error will be thrown. + */ + /** @deprecated */ + upgraded_client_state?: AnyAmino; +} +export interface PlanAminoMsg { + type: "cosmos-sdk/Plan"; + value: PlanAmino; +} +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface PlanSDKType { + name: string; + /** @deprecated */ + time: Date; + height: bigint; + info: string; + /** @deprecated */ + upgraded_client_state?: AnySDKType; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposal { + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + title: string; + description: string; + plan: Plan; +} +export interface SoftwareUpgradeProposalProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + value: Uint8Array; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposalAmino { + title?: string; + description?: string; + plan?: PlanAmino; +} +export interface SoftwareUpgradeProposalAminoMsg { + type: "cosmos-sdk/SoftwareUpgradeProposal"; + value: SoftwareUpgradeProposalAmino; +} +/** + * SoftwareUpgradeProposal is a gov Content type for initiating a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgSoftwareUpgrade. + */ +/** @deprecated */ +export interface SoftwareUpgradeProposalSDKType { + $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; + title: string; + description: string; + plan: PlanSDKType; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposal { + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + title: string; + description: string; +} +export interface CancelSoftwareUpgradeProposalProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + value: Uint8Array; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposalAmino { + title?: string; + description?: string; +} +export interface CancelSoftwareUpgradeProposalAminoMsg { + type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; + value: CancelSoftwareUpgradeProposalAmino; +} +/** + * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software + * upgrade. + * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov + * proposals, see MsgCancelUpgrade. + */ +/** @deprecated */ +export interface CancelSoftwareUpgradeProposalSDKType { + $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; + title: string; + description: string; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersion { + /** name of the app module */ + name: string; + /** consensus version of the app module */ + version: bigint; +} +export interface ModuleVersionProtoMsg { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; + value: Uint8Array; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersionAmino { + /** name of the app module */ + name?: string; + /** consensus version of the app module */ + version?: string; +} +export interface ModuleVersionAminoMsg { + type: "cosmos-sdk/ModuleVersion"; + value: ModuleVersionAmino; +} +/** + * ModuleVersion specifies a module and its consensus version. + * + * Since: cosmos-sdk 0.43 + */ +export interface ModuleVersionSDKType { + name: string; + version: bigint; +} +function createBasePlan(): Plan { + return { + name: "", + time: new Date(), + height: BigInt(0), + info: "", + upgradedClientState: undefined + }; +} +export const Plan = { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + encode(message: Plan, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Plan { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePlan(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Plan { + const message = createBasePlan(); + message.name = object.name ?? ""; + message.time = object.time ?? undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.info = object.info ?? ""; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object: PlanAmino): Plan { + const message = createBasePlan(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message: Plan): PlanAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.info = message.info === "" ? undefined : message.info; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object: PlanAminoMsg): Plan { + return Plan.fromAmino(object.value); + }, + toAminoMsg(message: Plan): PlanAminoMsg { + return { + type: "cosmos-sdk/Plan", + value: Plan.toAmino(message) + }; + }, + fromProtoMsg(message: PlanProtoMsg): Plan { + return Plan.decode(message.value); + }, + toProto(message: Plan): Uint8Array { + return Plan.encode(message).finish(); + }, + toProtoMsg(message: Plan): PlanProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.Plan", + value: Plan.encode(message).finish() + }; + } +}; +function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + title: "", + description: "", + plan: Plan.fromPartial({}) + }; +} +export const SoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + encode(message: SoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SoftwareUpgradeProposal { + const message = createBaseSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + return message; + }, + fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal { + const message = createBaseSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + return message; + }, + toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + return obj; + }, + fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal { + return SoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg { + return { + type: "cosmos-sdk/SoftwareUpgradeProposal", + value: SoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal { + return SoftwareUpgradeProposal.decode(message.value); + }, + toProto(message: SoftwareUpgradeProposal): Uint8Array { + return SoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", + value: SoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal { + return { + $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + title: "", + description: "" + }; +} +export const CancelSoftwareUpgradeProposal = { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + encode(message: CancelSoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCancelSoftwareUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CancelSoftwareUpgradeProposal { + const message = createBaseCancelSoftwareUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal { + const message = createBaseCancelSoftwareUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal { + return CancelSoftwareUpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg { + return { + type: "cosmos-sdk/CancelSoftwareUpgradeProposal", + value: CancelSoftwareUpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal { + return CancelSoftwareUpgradeProposal.decode(message.value); + }, + toProto(message: CancelSoftwareUpgradeProposal): Uint8Array { + return CancelSoftwareUpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", + value: CancelSoftwareUpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseModuleVersion(): ModuleVersion { + return { + name: "", + version: BigInt(0) + }; +} +export const ModuleVersion = { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + encode(message: ModuleVersion, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.version !== BigInt(0)) { + writer.uint32(16).uint64(message.version); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModuleVersion { + const message = createBaseModuleVersion(); + message.name = object.name ?? ""; + message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ModuleVersionAmino): ModuleVersion { + const message = createBaseModuleVersion(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.version !== undefined && object.version !== null) { + message.version = BigInt(object.version); + } + return message; + }, + toAmino(message: ModuleVersion): ModuleVersionAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion { + return ModuleVersion.fromAmino(object.value); + }, + toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg { + return { + type: "cosmos-sdk/ModuleVersion", + value: ModuleVersion.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion { + return ModuleVersion.decode(message.value); + }, + toProto(message: ModuleVersion): Uint8Array { + return ModuleVersion.encode(message).finish(); + }, + toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg { + return { + typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", + value: ModuleVersion.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/vesting/v1beta1/tx.amino.ts b/packages/api/src/cosmos/vesting/v1beta1/tx.amino.ts new file mode 100644 index 00000000..b918e6d3 --- /dev/null +++ b/packages/api/src/cosmos/vesting/v1beta1/tx.amino.ts @@ -0,0 +1,19 @@ +//@ts-nocheck +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export const AminoConverter = { + "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { + aminoType: "cosmos-sdk/MsgCreateVestingAccount", + toAmino: MsgCreateVestingAccount.toAmino, + fromAmino: MsgCreateVestingAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { + aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", + toAmino: MsgCreatePermanentLockedAccount.toAmino, + fromAmino: MsgCreatePermanentLockedAccount.fromAmino + }, + "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { + aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + toAmino: MsgCreatePeriodicVestingAccount.toAmino, + fromAmino: MsgCreatePeriodicVestingAccount.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/vesting/v1beta1/tx.registry.ts b/packages/api/src/cosmos/vesting/v1beta1/tx.registry.ts new file mode 100644 index 00000000..9942916a --- /dev/null +++ b/packages/api/src/cosmos/vesting/v1beta1/tx.registry.ts @@ -0,0 +1,71 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createVestingAccount(value: MsgCreateVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.encode(value).finish() + }; + }, + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.encode(value).finish() + }; + }, + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.encode(value).finish() + }; + } + }, + withTypeUrl: { + createVestingAccount(value: MsgCreateVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value + }; + }, + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value + }; + }, + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value + }; + } + }, + fromPartial: { + createVestingAccount(value: MsgCreateVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.fromPartial(value) + }; + }, + createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.fromPartial(value) + }; + }, + createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts b/packages/api/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..b4a6a543 --- /dev/null +++ b/packages/api/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,50 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** + * CreateVestingAccount defines a method that enables creating a vesting + * account. + */ + createVestingAccount(request: MsgCreateVestingAccount): Promise; + /** + * CreatePermanentLockedAccount defines a method that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ + createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; + /** + * CreatePeriodicVestingAccount defines a method that enables creating a + * periodic vesting account. + * + * Since: cosmos-sdk 0.46 + */ + createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createVestingAccount = this.createVestingAccount.bind(this); + this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); + this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); + } + createVestingAccount(request: MsgCreateVestingAccount): Promise { + const data = MsgCreateVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); + return promise.then(data => MsgCreateVestingAccountResponse.decode(new BinaryReader(data))); + } + createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise { + const data = MsgCreatePermanentLockedAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); + return promise.then(data => MsgCreatePermanentLockedAccountResponse.decode(new BinaryReader(data))); + } + createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise { + const data = MsgCreatePeriodicVestingAccount.encode(request).finish(); + const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); + return promise.then(data => MsgCreatePeriodicVestingAccountResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/cosmos/vesting/v1beta1/tx.ts b/packages/api/src/cosmos/vesting/v1beta1/tx.ts new file mode 100644 index 00000000..82d0346a --- /dev/null +++ b/packages/api/src/cosmos/vesting/v1beta1/tx.ts @@ -0,0 +1,688 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccount { + fromAddress: string; + toAddress: string; + amount: Coin[]; + endTime: bigint; + delayed: boolean; +} +export interface MsgCreateVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccountAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; + end_time?: string; + delayed?: boolean; +} +export interface MsgCreateVestingAccountAminoMsg { + type: "cosmos-sdk/MsgCreateVestingAccount"; + value: MsgCreateVestingAccountAmino; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + */ +export interface MsgCreateVestingAccountSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; + end_time: bigint; + delayed: boolean; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponse {} +export interface MsgCreateVestingAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; + value: Uint8Array; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponseAmino {} +export interface MsgCreateVestingAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreateVestingAccountResponse"; + value: MsgCreateVestingAccountResponseAmino; +} +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export interface MsgCreateVestingAccountResponseSDKType {} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccount { + fromAddress: string; + toAddress: string; + amount: Coin[]; +} +export interface MsgCreatePermanentLockedAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; + value: Uint8Array; +} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountAmino { + from_address?: string; + to_address?: string; + amount?: CoinAmino[]; +} +export interface MsgCreatePermanentLockedAccountAminoMsg { + type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; + value: MsgCreatePermanentLockedAccountAmino; +} +/** + * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent + * locked account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountSDKType { + from_address: string; + to_address: string; + amount: CoinSDKType[]; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponse {} +export interface MsgCreatePermanentLockedAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; + value: Uint8Array; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponseAmino {} +export interface MsgCreatePermanentLockedAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; + value: MsgCreatePermanentLockedAccountResponseAmino; +} +/** + * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePermanentLockedAccountResponseSDKType {} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccount { + fromAddress: string; + toAddress: string; + startTime: bigint; + vestingPeriods: Period[]; +} +export interface MsgCreatePeriodicVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountAmino { + from_address?: string; + to_address?: string; + start_time?: string; + vesting_periods?: PeriodAmino[]; +} +export interface MsgCreatePeriodicVestingAccountAminoMsg { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; + value: MsgCreatePeriodicVestingAccountAmino; +} +/** + * MsgCreateVestingAccount defines a message that enables creating a vesting + * account. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountSDKType { + from_address: string; + to_address: string; + start_time: bigint; + vesting_periods: PeriodSDKType[]; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponse {} +export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; + value: Uint8Array; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponseAmino {} +export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; + value: MsgCreatePeriodicVestingAccountResponseAmino; +} +/** + * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount + * response type. + * + * Since: cosmos-sdk 0.46 + */ +export interface MsgCreatePeriodicVestingAccountResponseSDKType {} +function createBaseMsgCreateVestingAccount(): MsgCreateVestingAccount { + return { + fromAddress: "", + toAddress: "", + amount: [], + endTime: BigInt(0), + delayed: false + }; +} +export const MsgCreateVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + encode(message: MsgCreateVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(32).int64(message.endTime); + } + if (message.delayed === true) { + writer.uint32(40).bool(message.delayed); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.endTime = reader.int64(); + break; + case 5: + message.delayed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateVestingAccount { + const message = createBaseMsgCreateVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + message.delayed = object.delayed ?? false; + return message; + }, + fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount { + const message = createBaseMsgCreateVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + if (object.delayed !== undefined && object.delayed !== null) { + message.delayed = object.delayed; + } + return message; + }, + toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino { + const obj: any = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + obj.delayed = message.delayed === false ? undefined : message.delayed; + return obj; + }, + fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount { + return MsgCreateVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg { + return { + type: "cosmos-sdk/MsgCreateVestingAccount", + value: MsgCreateVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount { + return MsgCreateVestingAccount.decode(message.value); + }, + toProto(message: MsgCreateVestingAccount): Uint8Array { + return MsgCreateVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: MsgCreateVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreateVestingAccountResponse(): MsgCreateVestingAccountResponse { + return {}; +} +export const MsgCreateVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + encode(_: MsgCreateVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCreateVestingAccountResponse { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse { + const message = createBaseMsgCreateVestingAccountResponse(); + return message; + }, + toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse { + return MsgCreateVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateVestingAccountResponse", + value: MsgCreateVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse { + return MsgCreateVestingAccountResponse.decode(message.value); + }, + toProto(message: MsgCreateVestingAccountResponse): Uint8Array { + return MsgCreateVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", + value: MsgCreateVestingAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccount(): MsgCreatePermanentLockedAccount { + return { + fromAddress: "", + toAddress: "", + amount: [] + }; +} +export const MsgCreatePermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + encode(message: MsgCreatePermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreatePermanentLockedAccount { + const message = createBaseMsgCreatePermanentLockedAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount { + const message = createBaseMsgCreatePermanentLockedAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino { + const obj: any = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount { + return MsgCreatePermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount { + return MsgCreatePermanentLockedAccount.decode(message.value); + }, + toProto(message: MsgCreatePermanentLockedAccount): Uint8Array { + return MsgCreatePermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", + value: MsgCreatePermanentLockedAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePermanentLockedAccountResponse(): MsgCreatePermanentLockedAccountResponse { + return {}; +} +export const MsgCreatePermanentLockedAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + encode(_: MsgCreatePermanentLockedAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse { + const message = createBaseMsgCreatePermanentLockedAccountResponse(); + return message; + }, + toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse { + return MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", + value: MsgCreatePermanentLockedAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse { + return MsgCreatePermanentLockedAccountResponse.decode(message.value); + }, + toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array { + return MsgCreatePermanentLockedAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", + value: MsgCreatePermanentLockedAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccount(): MsgCreatePeriodicVestingAccount { + return { + fromAddress: "", + toAddress: "", + startTime: BigInt(0), + vestingPeriods: [] + }; +} +export const MsgCreatePeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + encode(message: MsgCreatePeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fromAddress !== "") { + writer.uint32(10).string(message.fromAddress); + } + if (message.toAddress !== "") { + writer.uint32(18).string(message.toAddress); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(24).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + Period.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fromAddress = reader.string(); + break; + case 2: + message.toAddress = reader.string(); + break; + case 3: + message.startTime = reader.int64(); + break; + case 4: + message.vestingPeriods.push(Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreatePeriodicVestingAccount { + const message = createBaseMsgCreatePeriodicVestingAccount(); + message.fromAddress = object.fromAddress ?? ""; + message.toAddress = object.toAddress ?? ""; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount { + const message = createBaseMsgCreatePeriodicVestingAccount(); + if (object.from_address !== undefined && object.from_address !== null) { + message.fromAddress = object.from_address; + } + if (object.to_address !== undefined && object.to_address !== null) { + message.toAddress = object.to_address; + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino { + const obj: any = {}; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); + } else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount { + return MsgCreatePeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount { + return MsgCreatePeriodicVestingAccount.decode(message.value); + }, + toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array { + return MsgCreatePeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", + value: MsgCreatePeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBaseMsgCreatePeriodicVestingAccountResponse(): MsgCreatePeriodicVestingAccountResponse { + return {}; +} +export const MsgCreatePeriodicVestingAccountResponse = { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + encode(_: MsgCreatePeriodicVestingAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse { + const message = createBaseMsgCreatePeriodicVestingAccountResponse(); + return message; + }, + toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse { + return MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", + value: MsgCreatePeriodicVestingAccountResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse { + return MsgCreatePeriodicVestingAccountResponse.decode(message.value); + }, + toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array { + return MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", + value: MsgCreatePeriodicVestingAccountResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos/vesting/v1beta1/vesting.ts b/packages/api/src/cosmos/vesting/v1beta1/vesting.ts new file mode 100644 index 00000000..438ac8fd --- /dev/null +++ b/packages/api/src/cosmos/vesting/v1beta1/vesting.ts @@ -0,0 +1,725 @@ +//@ts-nocheck +import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; +import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccount { + baseAccount?: BaseAccount; + originalVesting: Coin[]; + delegatedFree: Coin[]; + delegatedVesting: Coin[]; + endTime: bigint; +} +export interface BaseVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; + value: Uint8Array; +} +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccountAmino { + base_account?: BaseAccountAmino; + original_vesting?: CoinAmino[]; + delegated_free?: CoinAmino[]; + delegated_vesting?: CoinAmino[]; + end_time?: string; +} +export interface BaseVestingAccountAminoMsg { + type: "cosmos-sdk/BaseVestingAccount"; + value: BaseVestingAccountAmino; +} +/** + * BaseVestingAccount implements the VestingAccount interface. It contains all + * the necessary fields needed for any vesting account implementation. + */ +export interface BaseVestingAccountSDKType { + base_account?: BaseAccountSDKType; + original_vesting: CoinSDKType[]; + delegated_free: CoinSDKType[]; + delegated_vesting: CoinSDKType[]; + end_time: bigint; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccount { + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; +} +export interface ContinuousVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; + value: Uint8Array; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; + start_time?: string; +} +export interface ContinuousVestingAccountAminoMsg { + type: "cosmos-sdk/ContinuousVestingAccount"; + value: ContinuousVestingAccountAmino; +} +/** + * ContinuousVestingAccount implements the VestingAccount interface. It + * continuously vests by unlocking coins linearly with respect to time. + */ +export interface ContinuousVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccount { + baseVestingAccount?: BaseVestingAccount; +} +export interface DelayedVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; + value: Uint8Array; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; +} +export interface DelayedVestingAccountAminoMsg { + type: "cosmos-sdk/DelayedVestingAccount"; + value: DelayedVestingAccountAmino; +} +/** + * DelayedVestingAccount implements the VestingAccount interface. It vests all + * coins after a specific time, but non prior. In other words, it keeps them + * locked until a specified time. + */ +export interface DelayedVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface Period { + length: bigint; + amount: Coin[]; +} +export interface PeriodProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.Period"; + value: Uint8Array; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface PeriodAmino { + length?: string; + amount?: CoinAmino[]; +} +export interface PeriodAminoMsg { + type: "cosmos-sdk/Period"; + value: PeriodAmino; +} +/** Period defines a length of time and amount of coins that will vest. */ +export interface PeriodSDKType { + length: bigint; + amount: CoinSDKType[]; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccount { + baseVestingAccount?: BaseVestingAccount; + startTime: bigint; + vestingPeriods: Period[]; +} +export interface PeriodicVestingAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; + value: Uint8Array; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; + start_time?: string; + vesting_periods?: PeriodAmino[]; +} +export interface PeriodicVestingAccountAminoMsg { + type: "cosmos-sdk/PeriodicVestingAccount"; + value: PeriodicVestingAccountAmino; +} +/** + * PeriodicVestingAccount implements the VestingAccount interface. It + * periodically vests by unlocking coins during each specified period. + */ +export interface PeriodicVestingAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; + start_time: bigint; + vesting_periods: PeriodSDKType[]; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccount { + baseVestingAccount?: BaseVestingAccount; +} +export interface PermanentLockedAccountProtoMsg { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; + value: Uint8Array; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccountAmino { + base_vesting_account?: BaseVestingAccountAmino; +} +export interface PermanentLockedAccountAminoMsg { + type: "cosmos-sdk/PermanentLockedAccount"; + value: PermanentLockedAccountAmino; +} +/** + * PermanentLockedAccount implements the VestingAccount interface. It does + * not ever release coins, locking them indefinitely. Coins in this account can + * still be used for delegating and for governance votes even while locked. + * + * Since: cosmos-sdk 0.43 + */ +export interface PermanentLockedAccountSDKType { + base_vesting_account?: BaseVestingAccountSDKType; +} +function createBaseBaseVestingAccount(): BaseVestingAccount { + return { + baseAccount: undefined, + originalVesting: [], + delegatedFree: [], + delegatedVesting: [], + endTime: BigInt(0) + }; +} +export const BaseVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + encode(message: BaseVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseAccount !== undefined) { + BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.originalVesting) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.delegatedFree) { + Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.delegatedVesting) { + Coin.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.endTime !== BigInt(0)) { + writer.uint32(40).int64(message.endTime); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBaseVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseAccount = BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.originalVesting.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.delegatedFree.push(Coin.decode(reader, reader.uint32())); + break; + case 4: + message.delegatedVesting.push(Coin.decode(reader, reader.uint32())); + break; + case 5: + message.endTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BaseVestingAccount { + const message = createBaseBaseVestingAccount(); + message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; + message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || []; + message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || []; + message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || []; + message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount { + const message = createBaseBaseVestingAccount(); + if (object.base_account !== undefined && object.base_account !== null) { + message.baseAccount = BaseAccount.fromAmino(object.base_account); + } + message.originalVesting = object.original_vesting?.map(e => Coin.fromAmino(e)) || []; + message.delegatedFree = object.delegated_free?.map(e => Coin.fromAmino(e)) || []; + message.delegatedVesting = object.delegated_vesting?.map(e => Coin.fromAmino(e)) || []; + if (object.end_time !== undefined && object.end_time !== null) { + message.endTime = BigInt(object.end_time); + } + return message; + }, + toAmino(message: BaseVestingAccount): BaseVestingAccountAmino { + const obj: any = {}; + obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; + if (message.originalVesting) { + obj.original_vesting = message.originalVesting.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.original_vesting = message.originalVesting; + } + if (message.delegatedFree) { + obj.delegated_free = message.delegatedFree.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.delegated_free = message.delegatedFree; + } + if (message.delegatedVesting) { + obj.delegated_vesting = message.delegatedVesting.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.delegated_vesting = message.delegatedVesting; + } + obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount { + return BaseVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg { + return { + type: "cosmos-sdk/BaseVestingAccount", + value: BaseVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount { + return BaseVestingAccount.decode(message.value); + }, + toProto(message: BaseVestingAccount): Uint8Array { + return BaseVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", + value: BaseVestingAccount.encode(message).finish() + }; + } +}; +function createBaseContinuousVestingAccount(): ContinuousVestingAccount { + return { + baseVestingAccount: undefined, + startTime: BigInt(0) + }; +} +export const ContinuousVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + encode(message: ContinuousVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContinuousVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ContinuousVestingAccount { + const message = createBaseContinuousVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount { + const message = createBaseContinuousVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + return message; + }, + toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino { + const obj: any = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount { + return ContinuousVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg { + return { + type: "cosmos-sdk/ContinuousVestingAccount", + value: ContinuousVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount { + return ContinuousVestingAccount.decode(message.value); + }, + toProto(message: ContinuousVestingAccount): Uint8Array { + return ContinuousVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", + value: ContinuousVestingAccount.encode(message).finish() + }; + } +}; +function createBaseDelayedVestingAccount(): DelayedVestingAccount { + return { + baseVestingAccount: undefined + }; +} +export const DelayedVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + encode(message: DelayedVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDelayedVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DelayedVestingAccount { + const message = createBaseDelayedVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount { + const message = createBaseDelayedVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino { + const obj: any = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount { + return DelayedVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg { + return { + type: "cosmos-sdk/DelayedVestingAccount", + value: DelayedVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount { + return DelayedVestingAccount.decode(message.value); + }, + toProto(message: DelayedVestingAccount): Uint8Array { + return DelayedVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", + value: DelayedVestingAccount.encode(message).finish() + }; + } +}; +function createBasePeriod(): Period { + return { + length: BigInt(0), + amount: [] + }; +} +export const Period = { + typeUrl: "/cosmos.vesting.v1beta1.Period", + encode(message: Period, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.length !== BigInt(0)) { + writer.uint32(8).int64(message.length); + } + for (const v of message.amount) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Period { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriod(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.length = reader.int64(); + break; + case 2: + message.amount.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Period { + const message = createBasePeriod(); + message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); + message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: PeriodAmino): Period { + const message = createBasePeriod(); + if (object.length !== undefined && object.length !== null) { + message.length = BigInt(object.length); + } + message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Period): PeriodAmino { + const obj: any = {}; + obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; + if (message.amount) { + obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.amount = message.amount; + } + return obj; + }, + fromAminoMsg(object: PeriodAminoMsg): Period { + return Period.fromAmino(object.value); + }, + toAminoMsg(message: Period): PeriodAminoMsg { + return { + type: "cosmos-sdk/Period", + value: Period.toAmino(message) + }; + }, + fromProtoMsg(message: PeriodProtoMsg): Period { + return Period.decode(message.value); + }, + toProto(message: Period): Uint8Array { + return Period.encode(message).finish(); + }, + toProtoMsg(message: Period): PeriodProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.Period", + value: Period.encode(message).finish() + }; + } +}; +function createBasePeriodicVestingAccount(): PeriodicVestingAccount { + return { + baseVestingAccount: undefined, + startTime: BigInt(0), + vestingPeriods: [] + }; +} +export const PeriodicVestingAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + encode(message: PeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + if (message.startTime !== BigInt(0)) { + writer.uint32(16).int64(message.startTime); + } + for (const v of message.vestingPeriods) { + Period.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePeriodicVestingAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = reader.int64(); + break; + case 3: + message.vestingPeriods.push(Period.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PeriodicVestingAccount { + const message = createBasePeriodicVestingAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); + message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; + return message; + }, + fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount { + const message = createBasePeriodicVestingAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + if (object.start_time !== undefined && object.start_time !== null) { + message.startTime = BigInt(object.start_time); + } + message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; + return message; + }, + toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino { + const obj: any = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; + if (message.vestingPeriods) { + obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); + } else { + obj.vesting_periods = message.vestingPeriods; + } + return obj; + }, + fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount { + return PeriodicVestingAccount.fromAmino(object.value); + }, + toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg { + return { + type: "cosmos-sdk/PeriodicVestingAccount", + value: PeriodicVestingAccount.toAmino(message) + }; + }, + fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount { + return PeriodicVestingAccount.decode(message.value); + }, + toProto(message: PeriodicVestingAccount): Uint8Array { + return PeriodicVestingAccount.encode(message).finish(); + }, + toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", + value: PeriodicVestingAccount.encode(message).finish() + }; + } +}; +function createBasePermanentLockedAccount(): PermanentLockedAccount { + return { + baseVestingAccount: undefined + }; +} +export const PermanentLockedAccount = { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + encode(message: PermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.baseVestingAccount !== undefined) { + BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePermanentLockedAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PermanentLockedAccount { + const message = createBasePermanentLockedAccount(); + message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; + return message; + }, + fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount { + const message = createBasePermanentLockedAccount(); + if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { + message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); + } + return message; + }, + toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino { + const obj: any = {}; + obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; + return obj; + }, + fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount { + return PermanentLockedAccount.fromAmino(object.value); + }, + toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg { + return { + type: "cosmos-sdk/PermanentLockedAccount", + value: PermanentLockedAccount.toAmino(message) + }; + }, + fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount { + return PermanentLockedAccount.decode(message.value); + }, + toProto(message: PermanentLockedAccount): Uint8Array { + return PermanentLockedAccount.encode(message).finish(); + }, + toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg { + return { + typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", + value: PermanentLockedAccount.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/cosmos_proto/bundle.ts b/packages/api/src/cosmos_proto/bundle.ts new file mode 100644 index 00000000..a5604a41 --- /dev/null +++ b/packages/api/src/cosmos_proto/bundle.ts @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _1 from "./cosmos"; +export const cosmos_proto = { + ..._1 +}; \ No newline at end of file diff --git a/packages/api/src/cosmos_proto/cosmos.ts b/packages/api/src/cosmos_proto/cosmos.ts new file mode 100644 index 00000000..54b13482 --- /dev/null +++ b/packages/api/src/cosmos_proto/cosmos.ts @@ -0,0 +1,349 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../binary"; +export enum ScalarType { + SCALAR_TYPE_UNSPECIFIED = 0, + SCALAR_TYPE_STRING = 1, + SCALAR_TYPE_BYTES = 2, + UNRECOGNIZED = -1, +} +export const ScalarTypeSDKType = ScalarType; +export const ScalarTypeAmino = ScalarType; +export function scalarTypeFromJSON(object: any): ScalarType { + switch (object) { + case 0: + case "SCALAR_TYPE_UNSPECIFIED": + return ScalarType.SCALAR_TYPE_UNSPECIFIED; + case 1: + case "SCALAR_TYPE_STRING": + return ScalarType.SCALAR_TYPE_STRING; + case 2: + case "SCALAR_TYPE_BYTES": + return ScalarType.SCALAR_TYPE_BYTES; + case -1: + case "UNRECOGNIZED": + default: + return ScalarType.UNRECOGNIZED; + } +} +export function scalarTypeToJSON(object: ScalarType): string { + switch (object) { + case ScalarType.SCALAR_TYPE_UNSPECIFIED: + return "SCALAR_TYPE_UNSPECIFIED"; + case ScalarType.SCALAR_TYPE_STRING: + return "SCALAR_TYPE_STRING"; + case ScalarType.SCALAR_TYPE_BYTES: + return "SCALAR_TYPE_BYTES"; + case ScalarType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptor { + /** + * name is the name of the interface. It should be a short-name (without + * a period) such that the fully qualified name of the interface will be + * package.name, ex. for the package a.b and interface named C, the + * fully-qualified name will be a.b.C. + */ + name: string; + /** + * description is a human-readable description of the interface and its + * purpose. + */ + description: string; +} +export interface InterfaceDescriptorProtoMsg { + typeUrl: "/cosmos_proto.InterfaceDescriptor"; + value: Uint8Array; +} +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptorAmino { + /** + * name is the name of the interface. It should be a short-name (without + * a period) such that the fully qualified name of the interface will be + * package.name, ex. for the package a.b and interface named C, the + * fully-qualified name will be a.b.C. + */ + name?: string; + /** + * description is a human-readable description of the interface and its + * purpose. + */ + description?: string; +} +export interface InterfaceDescriptorAminoMsg { + type: "/cosmos_proto.InterfaceDescriptor"; + value: InterfaceDescriptorAmino; +} +/** + * InterfaceDescriptor describes an interface type to be used with + * accepts_interface and implements_interface and declared by declare_interface. + */ +export interface InterfaceDescriptorSDKType { + name: string; + description: string; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptor { + /** + * name is the name of the scalar. It should be a short-name (without + * a period) such that the fully qualified name of the scalar will be + * package.name, ex. for the package a.b and scalar named C, the + * fully-qualified name will be a.b.C. + */ + name: string; + /** + * description is a human-readable description of the scalar and its + * encoding format. For instance a big integer or decimal scalar should + * specify precisely the expected encoding format. + */ + description: string; + /** + * field_type is the type of field with which this scalar can be used. + * Scalars can be used with one and only one type of field so that + * encoding standards and simple and clear. Currently only string and + * bytes fields are supported for scalars. + */ + fieldType: ScalarType[]; +} +export interface ScalarDescriptorProtoMsg { + typeUrl: "/cosmos_proto.ScalarDescriptor"; + value: Uint8Array; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptorAmino { + /** + * name is the name of the scalar. It should be a short-name (without + * a period) such that the fully qualified name of the scalar will be + * package.name, ex. for the package a.b and scalar named C, the + * fully-qualified name will be a.b.C. + */ + name?: string; + /** + * description is a human-readable description of the scalar and its + * encoding format. For instance a big integer or decimal scalar should + * specify precisely the expected encoding format. + */ + description?: string; + /** + * field_type is the type of field with which this scalar can be used. + * Scalars can be used with one and only one type of field so that + * encoding standards and simple and clear. Currently only string and + * bytes fields are supported for scalars. + */ + field_type?: ScalarType[]; +} +export interface ScalarDescriptorAminoMsg { + type: "/cosmos_proto.ScalarDescriptor"; + value: ScalarDescriptorAmino; +} +/** + * ScalarDescriptor describes an scalar type to be used with + * the scalar field option and declared by declare_scalar. + * Scalars extend simple protobuf built-in types with additional + * syntax and semantics, for instance to represent big integers. + * Scalars should ideally define an encoding such that there is only one + * valid syntactical representation for a given semantic meaning, + * i.e. the encoding should be deterministic. + */ +export interface ScalarDescriptorSDKType { + name: string; + description: string; + field_type: ScalarType[]; +} +function createBaseInterfaceDescriptor(): InterfaceDescriptor { + return { + name: "", + description: "" + }; +} +export const InterfaceDescriptor = { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + encode(message: InterfaceDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInterfaceDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): InterfaceDescriptor { + const message = createBaseInterfaceDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + return message; + }, + fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor { + const message = createBaseInterfaceDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + return message; + }, + toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + return obj; + }, + fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor { + return InterfaceDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor { + return InterfaceDescriptor.decode(message.value); + }, + toProto(message: InterfaceDescriptor): Uint8Array { + return InterfaceDescriptor.encode(message).finish(); + }, + toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg { + return { + typeUrl: "/cosmos_proto.InterfaceDescriptor", + value: InterfaceDescriptor.encode(message).finish() + }; + } +}; +function createBaseScalarDescriptor(): ScalarDescriptor { + return { + name: "", + description: "", + fieldType: [] + }; +} +export const ScalarDescriptor = { + typeUrl: "/cosmos_proto.ScalarDescriptor", + encode(message: ScalarDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + writer.uint32(26).fork(); + for (const v of message.fieldType) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseScalarDescriptor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.fieldType.push((reader.int32() as any)); + } + } else { + message.fieldType.push((reader.int32() as any)); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ScalarDescriptor { + const message = createBaseScalarDescriptor(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.fieldType = object.fieldType?.map(e => e) || []; + return message; + }, + fromAmino(object: ScalarDescriptorAmino): ScalarDescriptor { + const message = createBaseScalarDescriptor(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + message.fieldType = object.field_type?.map(e => e) || []; + return message; + }, + toAmino(message: ScalarDescriptor): ScalarDescriptorAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + if (message.fieldType) { + obj.field_type = message.fieldType.map(e => e); + } else { + obj.field_type = message.fieldType; + } + return obj; + }, + fromAminoMsg(object: ScalarDescriptorAminoMsg): ScalarDescriptor { + return ScalarDescriptor.fromAmino(object.value); + }, + fromProtoMsg(message: ScalarDescriptorProtoMsg): ScalarDescriptor { + return ScalarDescriptor.decode(message.value); + }, + toProto(message: ScalarDescriptor): Uint8Array { + return ScalarDescriptor.encode(message).finish(); + }, + toProtoMsg(message: ScalarDescriptor): ScalarDescriptorProtoMsg { + return { + typeUrl: "/cosmos_proto.ScalarDescriptor", + value: ScalarDescriptor.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/gogoproto/bundle.ts b/packages/api/src/gogoproto/bundle.ts new file mode 100644 index 00000000..2ad5c4f1 --- /dev/null +++ b/packages/api/src/gogoproto/bundle.ts @@ -0,0 +1,5 @@ +//@ts-nocheck +import * as _67 from "./gogo"; +export const gogoproto = { + ..._67 +}; \ No newline at end of file diff --git a/packages/api/src/gogoproto/gogo.ts b/packages/api/src/gogoproto/gogo.ts new file mode 100644 index 00000000..693da49f --- /dev/null +++ b/packages/api/src/gogoproto/gogo.ts @@ -0,0 +1 @@ +export {} \ No newline at end of file diff --git a/packages/api/src/google/api/annotations.ts b/packages/api/src/google/api/annotations.ts new file mode 100644 index 00000000..693da49f --- /dev/null +++ b/packages/api/src/google/api/annotations.ts @@ -0,0 +1 @@ +export {} \ No newline at end of file diff --git a/packages/api/src/google/api/http.ts b/packages/api/src/google/api/http.ts new file mode 100644 index 00000000..3b14b209 --- /dev/null +++ b/packages/api/src/google/api/http.ts @@ -0,0 +1,1363 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface Http { + /** + * A list of HTTP configuration rules that apply to individual API methods. + * + * **NOTE:** All service configuration rules follow "last one wins" order. + */ + rules: HttpRule[]; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + */ + fullyDecodeReservedExpansion: boolean; +} +export interface HttpProtoMsg { + typeUrl: "/google.api.Http"; + value: Uint8Array; +} +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface HttpAmino { + /** + * A list of HTTP configuration rules that apply to individual API methods. + * + * **NOTE:** All service configuration rules follow "last one wins" order. + */ + rules?: HttpRuleAmino[]; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + */ + fully_decode_reserved_expansion?: boolean; +} +export interface HttpAminoMsg { + type: "/google.api.Http"; + value: HttpAmino; +} +/** + * Defines the HTTP configuration for an API service. It contains a list of + * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method + * to one or more HTTP REST API methods. + */ +export interface HttpSDKType { + rules: HttpRuleSDKType[]; + fully_decode_reserved_expansion: boolean; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRule { + /** + * Selects a method to which this rule applies. + * + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + */ + selector: string; + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + */ + get?: string; + /** Maps to HTTP PUT. Used for replacing a resource. */ + put?: string; + /** Maps to HTTP POST. Used for creating a resource or performing an action. */ + post?: string; + /** Maps to HTTP DELETE. Used for deleting a resource. */ + delete?: string; + /** Maps to HTTP PATCH. Used for updating a resource. */ + patch?: string; + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ + custom?: CustomHttpPattern; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * + * NOTE: the referred field must be present at the top-level of the request + * message type. + */ + body: string; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * + * NOTE: The referred field must be present at the top-level of the response + * message type. + */ + responseBody: string; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + */ + additionalBindings: HttpRule[]; +} +export interface HttpRuleProtoMsg { + typeUrl: "/google.api.HttpRule"; + value: Uint8Array; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRuleAmino { + /** + * Selects a method to which this rule applies. + * + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + */ + selector?: string; + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + */ + get?: string; + /** Maps to HTTP PUT. Used for replacing a resource. */ + put?: string; + /** Maps to HTTP POST. Used for creating a resource or performing an action. */ + post?: string; + /** Maps to HTTP DELETE. Used for deleting a resource. */ + delete?: string; + /** Maps to HTTP PATCH. Used for updating a resource. */ + patch?: string; + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + */ + custom?: CustomHttpPatternAmino; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * + * NOTE: the referred field must be present at the top-level of the request + * message type. + */ + body?: string; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * + * NOTE: The referred field must be present at the top-level of the response + * message type. + */ + response_body?: string; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + */ + additional_bindings?: HttpRuleAmino[]; +} +export interface HttpRuleAminoMsg { + type: "/google.api.HttpRule"; + value: HttpRuleAmino; +} +/** + * # gRPC Transcoding + * + * gRPC Transcoding is a feature for mapping between a gRPC method and one or + * more HTTP REST endpoints. It allows developers to build a single API service + * that supports both gRPC APIs and REST APIs. Many systems, including [Google + * APIs](https://github.com/googleapis/googleapis), + * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC + * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), + * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature + * and use it for large scale production services. + * + * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies + * how different portions of the gRPC request message are mapped to the URL + * path, URL query parameters, and HTTP request body. It also controls how the + * gRPC response message is mapped to the HTTP response body. `HttpRule` is + * typically specified as an `google.api.http` annotation on the gRPC method. + * + * Each mapping specifies a URL path template and an HTTP method. The path + * template may refer to one or more fields in the gRPC request message, as long + * as each field is a non-repeated field with a primitive (non-message) type. + * The path template controls how fields of the request message are mapped to + * the URL path. + * + * Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/{name=messages/*}" + * }; + * } + * } + * message GetMessageRequest { + * string name = 1; // Mapped to URL path. + * } + * message Message { + * string text = 1; // The resource content. + * } + * + * This enables an HTTP REST to gRPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` + * + * Any fields in the request message which are not bound by the path template + * automatically become HTTP query parameters if there is no HTTP request body. + * For example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get:"/v1/messages/{message_id}" + * }; + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // Mapped to URL path. + * int64 revision = 2; // Mapped to URL query parameter `revision`. + * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. + * } + * + * This enables a HTTP JSON to RPC mapping as below: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: + * "foo"))` + * + * Note that fields which are mapped to URL query parameters must have a + * primitive type or a repeated primitive type or a non-repeated message type. + * In the case of a repeated type, the parameter can be repeated in the URL + * as `...?param=A¶m=B`. In the case of a message type, each field of the + * message is mapped to a separate parameter, such as + * `...?foo.a=A&foo.b=B&foo.c=C`. + * + * For HTTP methods that allow a request body, the `body` field + * specifies the mapping. Consider a REST update method on the + * message resource collection: + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * + * The following HTTP JSON to RPC mapping is enabled, where the + * representation of the JSON in the request body is determined by + * protos JSON encoding: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" message { text: "Hi!" })` + * + * The special name `*` can be used in the body mapping to define that + * every field not bound by the path template should be mapped to the + * request body. This enables the following alternative definition of + * the update method: + * + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * patch: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * + * + * The following HTTP JSON to RPC mapping is enabled: + * + * HTTP | gRPC + * -----|----- + * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: + * "123456" text: "Hi!")` + * + * Note that when using `*` in the body mapping, it is not possible to + * have HTTP parameters, as all fields not bound by the path end in + * the body. This makes this option more rarely used in practice when + * defining REST APIs. The common usage of `*` is in custom methods + * which don't use the URL at all for transferring data. + * + * It is possible to define multiple HTTP methods for one RPC by using + * the `additional_bindings` option. Example: + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; + * } + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * + * This enables the following two alternative HTTP JSON to RPC mappings: + * + * HTTP | gRPC + * -----|----- + * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` + * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: + * "123456")` + * + * ## Rules for HTTP mapping + * + * 1. Leaf request fields (recursive expansion nested messages in the request + * message) are classified into three categories: + * - Fields referred by the path template. They are passed via the URL path. + * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They + * are passed via the HTTP + * request body. + * - All other fields are passed via the URL query parameters, and the + * parameter name is the field path in the request message. A repeated + * field can be represented as multiple query parameters under the same + * name. + * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL + * query parameter, all fields + * are passed via URL path and HTTP request body. + * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP + * request body, all + * fields are passed via URL path and URL query parameters. + * + * ### Path template syntax + * + * Template = "/" Segments [ Verb ] ; + * Segments = Segment { "/" Segment } ; + * Segment = "*" | "**" | LITERAL | Variable ; + * Variable = "{" FieldPath [ "=" Segments ] "}" ; + * FieldPath = IDENT { "." IDENT } ; + * Verb = ":" LITERAL ; + * + * The syntax `*` matches a single URL path segment. The syntax `**` matches + * zero or more URL path segments, which must be the last part of the URL path + * except the `Verb`. + * + * The syntax `Variable` matches part of the URL path as specified by its + * template. A variable template must not contain other variables. If a variable + * matches a single path segment, its template may be omitted, e.g. `{var}` + * is equivalent to `{var=*}`. + * + * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` + * contains any reserved character, such characters should be percent-encoded + * before the matching. + * + * If a variable contains exactly one path segment, such as `"{var}"` or + * `"{var=*}"`, when such a variable is expanded into a URL path on the client + * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The + * server side does the reverse decoding. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{var}`. + * + * If a variable contains multiple path segments, such as `"{var=foo/*}"` + * or `"{var=**}"`, when such a variable is expanded into a URL path on the + * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. + * The server side does the reverse decoding, except "%2F" and "%2f" are left + * unchanged. Such variables show up in the + * [Discovery + * Document](https://developers.google.com/discovery/v1/reference/apis) as + * `{+var}`. + * + * ## Using gRPC API Service Configuration + * + * gRPC API Service Configuration (service config) is a configuration language + * for configuring a gRPC service to become a user-facing product. The + * service config is simply the YAML representation of the `google.api.Service` + * proto message. + * + * As an alternative to annotating your proto file, you can configure gRPC + * transcoding in your service config YAML files. You do this by specifying a + * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + * effect as the proto annotation. This can be particularly useful if you + * have a proto that is reused in multiple services. Note that any transcoding + * specified in the service config will override any matching transcoding + * configuration in the proto. + * + * Example: + * + * http: + * rules: + * # Selects a gRPC method and applies HttpRule to it. + * - selector: example.v1.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} + * + * ## Special notes + * + * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the + * proto to JSON conversion must follow the [proto3 + * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). + * + * While the single segment variable follows the semantics of + * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + * Expansion, the multi segment variable **does not** follow RFC 6570 Section + * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion + * does not expand special characters like `?` and `#`, which would lead + * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding + * for multi segment variables. + * + * The path variables **must not** refer to any repeated or mapped field, + * because client libraries are not capable of handling such variable expansion. + * + * The path variables **must not** capture the leading "/" character. The reason + * is that the most common use case "{var}" does not capture the leading "/" + * character. For consistency, all path variables must share the same behavior. + * + * Repeated message fields must not be mapped to URL query parameters, because + * no client library can support such complicated mapping. + * + * If an API needs to use a JSON array for request or response body, it can map + * the request or response body to a repeated field. However, some gRPC + * Transcoding implementations may not support this feature. + */ +export interface HttpRuleSDKType { + selector: string; + get?: string; + put?: string; + post?: string; + delete?: string; + patch?: string; + custom?: CustomHttpPatternSDKType; + body: string; + response_body: string; + additional_bindings: HttpRuleSDKType[]; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPattern { + /** The name of this custom HTTP verb. */ + kind: string; + /** The path matched by this custom verb. */ + path: string; +} +export interface CustomHttpPatternProtoMsg { + typeUrl: "/google.api.CustomHttpPattern"; + value: Uint8Array; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPatternAmino { + /** The name of this custom HTTP verb. */ + kind?: string; + /** The path matched by this custom verb. */ + path?: string; +} +export interface CustomHttpPatternAminoMsg { + type: "/google.api.CustomHttpPattern"; + value: CustomHttpPatternAmino; +} +/** A custom pattern is used for defining custom HTTP verb. */ +export interface CustomHttpPatternSDKType { + kind: string; + path: string; +} +function createBaseHttp(): Http { + return { + rules: [], + fullyDecodeReservedExpansion: false + }; +} +export const Http = { + typeUrl: "/google.api.Http", + encode(message: Http, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.rules) { + HttpRule.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.fullyDecodeReservedExpansion === true) { + writer.uint32(16).bool(message.fullyDecodeReservedExpansion); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Http { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rules.push(HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Http { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; + message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; + return message; + }, + fromAmino(object: HttpAmino): Http { + const message = createBaseHttp(); + message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || []; + if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { + message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; + } + return message; + }, + toAmino(message: Http): HttpAmino { + const obj: any = {}; + if (message.rules) { + obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined); + } else { + obj.rules = message.rules; + } + obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; + return obj; + }, + fromAminoMsg(object: HttpAminoMsg): Http { + return Http.fromAmino(object.value); + }, + fromProtoMsg(message: HttpProtoMsg): Http { + return Http.decode(message.value); + }, + toProto(message: Http): Uint8Array { + return Http.encode(message).finish(); + }, + toProtoMsg(message: Http): HttpProtoMsg { + return { + typeUrl: "/google.api.Http", + value: Http.encode(message).finish() + }; + } +}; +function createBaseHttpRule(): HttpRule { + return { + selector: "", + get: undefined, + put: undefined, + post: undefined, + delete: undefined, + patch: undefined, + custom: undefined, + body: "", + responseBody: "", + additionalBindings: [] + }; +} +export const HttpRule = { + typeUrl: "/google.api.HttpRule", + encode(message: HttpRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.selector !== "") { + writer.uint32(10).string(message.selector); + } + if (message.get !== undefined) { + writer.uint32(18).string(message.get); + } + if (message.put !== undefined) { + writer.uint32(26).string(message.put); + } + if (message.post !== undefined) { + writer.uint32(34).string(message.post); + } + if (message.delete !== undefined) { + writer.uint32(42).string(message.delete); + } + if (message.patch !== undefined) { + writer.uint32(50).string(message.patch); + } + if (message.custom !== undefined) { + CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); + } + if (message.body !== "") { + writer.uint32(58).string(message.body); + } + if (message.responseBody !== "") { + writer.uint32(98).string(message.responseBody); + } + for (const v of message.additionalBindings) { + HttpRule.encode(v!, writer.uint32(90).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): HttpRule { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHttpRule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message.delete = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): HttpRule { + const message = createBaseHttpRule(); + message.selector = object.selector ?? ""; + message.get = object.get ?? undefined; + message.put = object.put ?? undefined; + message.post = object.post ?? undefined; + message.delete = object.delete ?? undefined; + message.patch = object.patch ?? undefined; + message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined; + message.body = object.body ?? ""; + message.responseBody = object.responseBody ?? ""; + message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; + return message; + }, + fromAmino(object: HttpRuleAmino): HttpRule { + const message = createBaseHttpRule(); + if (object.selector !== undefined && object.selector !== null) { + message.selector = object.selector; + } + if (object.get !== undefined && object.get !== null) { + message.get = object.get; + } + if (object.put !== undefined && object.put !== null) { + message.put = object.put; + } + if (object.post !== undefined && object.post !== null) { + message.post = object.post; + } + if (object.delete !== undefined && object.delete !== null) { + message.delete = object.delete; + } + if (object.patch !== undefined && object.patch !== null) { + message.patch = object.patch; + } + if (object.custom !== undefined && object.custom !== null) { + message.custom = CustomHttpPattern.fromAmino(object.custom); + } + if (object.body !== undefined && object.body !== null) { + message.body = object.body; + } + if (object.response_body !== undefined && object.response_body !== null) { + message.responseBody = object.response_body; + } + message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || []; + return message; + }, + toAmino(message: HttpRule): HttpRuleAmino { + const obj: any = {}; + obj.selector = message.selector === "" ? undefined : message.selector; + obj.get = message.get === null ? undefined : message.get; + obj.put = message.put === null ? undefined : message.put; + obj.post = message.post === null ? undefined : message.post; + obj.delete = message.delete === null ? undefined : message.delete; + obj.patch = message.patch === null ? undefined : message.patch; + obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined; + obj.body = message.body === "" ? undefined : message.body; + obj.response_body = message.responseBody === "" ? undefined : message.responseBody; + if (message.additionalBindings) { + obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined); + } else { + obj.additional_bindings = message.additionalBindings; + } + return obj; + }, + fromAminoMsg(object: HttpRuleAminoMsg): HttpRule { + return HttpRule.fromAmino(object.value); + }, + fromProtoMsg(message: HttpRuleProtoMsg): HttpRule { + return HttpRule.decode(message.value); + }, + toProto(message: HttpRule): Uint8Array { + return HttpRule.encode(message).finish(); + }, + toProtoMsg(message: HttpRule): HttpRuleProtoMsg { + return { + typeUrl: "/google.api.HttpRule", + value: HttpRule.encode(message).finish() + }; + } +}; +function createBaseCustomHttpPattern(): CustomHttpPattern { + return { + kind: "", + path: "" + }; +} +export const CustomHttpPattern = { + typeUrl: "/google.api.CustomHttpPattern", + encode(message: CustomHttpPattern, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.kind !== "") { + writer.uint32(10).string(message.kind); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCustomHttpPattern(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CustomHttpPattern { + const message = createBaseCustomHttpPattern(); + message.kind = object.kind ?? ""; + message.path = object.path ?? ""; + return message; + }, + fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern { + const message = createBaseCustomHttpPattern(); + if (object.kind !== undefined && object.kind !== null) { + message.kind = object.kind; + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + return message; + }, + toAmino(message: CustomHttpPattern): CustomHttpPatternAmino { + const obj: any = {}; + obj.kind = message.kind === "" ? undefined : message.kind; + obj.path = message.path === "" ? undefined : message.path; + return obj; + }, + fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern { + return CustomHttpPattern.fromAmino(object.value); + }, + fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern { + return CustomHttpPattern.decode(message.value); + }, + toProto(message: CustomHttpPattern): Uint8Array { + return CustomHttpPattern.encode(message).finish(); + }, + toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg { + return { + typeUrl: "/google.api.CustomHttpPattern", + value: CustomHttpPattern.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/google/bundle.ts b/packages/api/src/google/bundle.ts new file mode 100644 index 00000000..4e1497bd --- /dev/null +++ b/packages/api/src/google/bundle.ts @@ -0,0 +1,13 @@ +//@ts-nocheck +import * as _115 from "./protobuf/descriptor"; +import * as _116 from "./protobuf/any"; +import * as _117 from "./protobuf/timestamp"; +import * as _118 from "./protobuf/duration"; +export namespace google { + export const protobuf = { + ..._115, + ..._116, + ..._117, + ..._118 + }; +} \ No newline at end of file diff --git a/packages/api/src/google/protobuf/any.ts b/packages/api/src/google/protobuf/any.ts new file mode 100644 index 00000000..0998bb2e --- /dev/null +++ b/packages/api/src/google/protobuf/any.ts @@ -0,0 +1,399 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface Any { + $typeUrl?: "/google.protobuf.Any" | string; + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + typeUrl: string; + /** Must be a valid serialized protocol buffer of the above specified type. */ + value: Uint8Array; +} +export interface AnyProtoMsg { + typeUrl: "/google.protobuf.Any"; + value: Uint8Array; +} +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface AnyAmino { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type: string; + /** Must be a valid serialized protocol buffer of the above specified type. */ + value: any; +} +export interface AnyAminoMsg { + type: string; + value: AnyAmino; +} +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface AnySDKType { + $typeUrl?: "/google.protobuf.Any" | string; + type_url: string; + value: Uint8Array; +} +function createBaseAny(): Any { + return { + $typeUrl: "/google.protobuf.Any", + typeUrl: "", + value: new Uint8Array() + }; +} +export const Any = { + typeUrl: "/google.protobuf.Any", + encode(message: Any, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.typeUrl !== "") { + writer.uint32(10).string(message.typeUrl); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Any { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAny(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.typeUrl = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Any { + const message = createBaseAny(); + message.typeUrl = object.typeUrl ?? ""; + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object: AnyAmino): Any { + return { + typeUrl: object.type, + value: object.value + }; + }, + toAmino(message: Any): AnyAmino { + const obj: any = {}; + obj.type = message.typeUrl; + obj.value = message.value; + return obj; + }, + fromAminoMsg(object: AnyAminoMsg): Any { + return Any.fromAmino(object.value); + }, + fromProtoMsg(message: AnyProtoMsg): Any { + return Any.decode(message.value); + }, + toProto(message: Any): Uint8Array { + return Any.encode(message).finish(); + }, + toProtoMsg(message: Any): AnyProtoMsg { + return { + typeUrl: "/google.protobuf.Any", + value: Any.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/google/protobuf/descriptor.ts b/packages/api/src/google/protobuf/descriptor.ts new file mode 100644 index 00000000..d469873f --- /dev/null +++ b/packages/api/src/google/protobuf/descriptor.ts @@ -0,0 +1,5181 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +export enum FieldDescriptorProto_Type { + /** + * TYPE_DOUBLE - 0 is reserved for errors. + * Order is weird for historical reasons. + */ + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + /** + * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + * negative values are likely. + */ + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + /** + * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + * negative values are likely. + */ + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + /** + * TYPE_GROUP - Tag-delimited aggregate. + * Group type is deprecated and not supported in proto3. However, Proto3 + * implementations should still be able to parse the group wire format and + * treat group fields as unknown fields. + */ + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + /** TYPE_BYTES - New in version 2. */ + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + /** TYPE_SINT32 - Uses ZigZag encoding. */ + TYPE_SINT32 = 17, + /** TYPE_SINT64 - Uses ZigZag encoding. */ + TYPE_SINT64 = 18, + UNRECOGNIZED = -1, +} +export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; +export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; +export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type { + switch (object) { + case 1: + case "TYPE_DOUBLE": + return FieldDescriptorProto_Type.TYPE_DOUBLE; + case 2: + case "TYPE_FLOAT": + return FieldDescriptorProto_Type.TYPE_FLOAT; + case 3: + case "TYPE_INT64": + return FieldDescriptorProto_Type.TYPE_INT64; + case 4: + case "TYPE_UINT64": + return FieldDescriptorProto_Type.TYPE_UINT64; + case 5: + case "TYPE_INT32": + return FieldDescriptorProto_Type.TYPE_INT32; + case 6: + case "TYPE_FIXED64": + return FieldDescriptorProto_Type.TYPE_FIXED64; + case 7: + case "TYPE_FIXED32": + return FieldDescriptorProto_Type.TYPE_FIXED32; + case 8: + case "TYPE_BOOL": + return FieldDescriptorProto_Type.TYPE_BOOL; + case 9: + case "TYPE_STRING": + return FieldDescriptorProto_Type.TYPE_STRING; + case 10: + case "TYPE_GROUP": + return FieldDescriptorProto_Type.TYPE_GROUP; + case 11: + case "TYPE_MESSAGE": + return FieldDescriptorProto_Type.TYPE_MESSAGE; + case 12: + case "TYPE_BYTES": + return FieldDescriptorProto_Type.TYPE_BYTES; + case 13: + case "TYPE_UINT32": + return FieldDescriptorProto_Type.TYPE_UINT32; + case 14: + case "TYPE_ENUM": + return FieldDescriptorProto_Type.TYPE_ENUM; + case 15: + case "TYPE_SFIXED32": + return FieldDescriptorProto_Type.TYPE_SFIXED32; + case 16: + case "TYPE_SFIXED64": + return FieldDescriptorProto_Type.TYPE_SFIXED64; + case 17: + case "TYPE_SINT32": + return FieldDescriptorProto_Type.TYPE_SINT32; + case 18: + case "TYPE_SINT64": + return FieldDescriptorProto_Type.TYPE_SINT64; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Type.UNRECOGNIZED; + } +} +export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string { + switch (object) { + case FieldDescriptorProto_Type.TYPE_DOUBLE: + return "TYPE_DOUBLE"; + case FieldDescriptorProto_Type.TYPE_FLOAT: + return "TYPE_FLOAT"; + case FieldDescriptorProto_Type.TYPE_INT64: + return "TYPE_INT64"; + case FieldDescriptorProto_Type.TYPE_UINT64: + return "TYPE_UINT64"; + case FieldDescriptorProto_Type.TYPE_INT32: + return "TYPE_INT32"; + case FieldDescriptorProto_Type.TYPE_FIXED64: + return "TYPE_FIXED64"; + case FieldDescriptorProto_Type.TYPE_FIXED32: + return "TYPE_FIXED32"; + case FieldDescriptorProto_Type.TYPE_BOOL: + return "TYPE_BOOL"; + case FieldDescriptorProto_Type.TYPE_STRING: + return "TYPE_STRING"; + case FieldDescriptorProto_Type.TYPE_GROUP: + return "TYPE_GROUP"; + case FieldDescriptorProto_Type.TYPE_MESSAGE: + return "TYPE_MESSAGE"; + case FieldDescriptorProto_Type.TYPE_BYTES: + return "TYPE_BYTES"; + case FieldDescriptorProto_Type.TYPE_UINT32: + return "TYPE_UINT32"; + case FieldDescriptorProto_Type.TYPE_ENUM: + return "TYPE_ENUM"; + case FieldDescriptorProto_Type.TYPE_SFIXED32: + return "TYPE_SFIXED32"; + case FieldDescriptorProto_Type.TYPE_SFIXED64: + return "TYPE_SFIXED64"; + case FieldDescriptorProto_Type.TYPE_SINT32: + return "TYPE_SINT32"; + case FieldDescriptorProto_Type.TYPE_SINT64: + return "TYPE_SINT64"; + case FieldDescriptorProto_Type.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum FieldDescriptorProto_Label { + /** LABEL_OPTIONAL - 0 is reserved for errors */ + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3, + UNRECOGNIZED = -1, +} +export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; +export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; +export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label { + switch (object) { + case 1: + case "LABEL_OPTIONAL": + return FieldDescriptorProto_Label.LABEL_OPTIONAL; + case 2: + case "LABEL_REQUIRED": + return FieldDescriptorProto_Label.LABEL_REQUIRED; + case 3: + case "LABEL_REPEATED": + return FieldDescriptorProto_Label.LABEL_REPEATED; + case -1: + case "UNRECOGNIZED": + default: + return FieldDescriptorProto_Label.UNRECOGNIZED; + } +} +export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string { + switch (object) { + case FieldDescriptorProto_Label.LABEL_OPTIONAL: + return "LABEL_OPTIONAL"; + case FieldDescriptorProto_Label.LABEL_REQUIRED: + return "LABEL_REQUIRED"; + case FieldDescriptorProto_Label.LABEL_REPEATED: + return "LABEL_REPEATED"; + case FieldDescriptorProto_Label.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** Generated classes can be optimized for speed or code size. */ +export enum FileOptions_OptimizeMode { + /** + * SPEED - Generate complete code for parsing, serialization, + * etc. + */ + SPEED = 1, + /** CODE_SIZE - Use ReflectionOps to implement these methods. */ + CODE_SIZE = 2, + /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ + LITE_RUNTIME = 3, + UNRECOGNIZED = -1, +} +export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; +export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; +export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode { + switch (object) { + case 1: + case "SPEED": + return FileOptions_OptimizeMode.SPEED; + case 2: + case "CODE_SIZE": + return FileOptions_OptimizeMode.CODE_SIZE; + case 3: + case "LITE_RUNTIME": + return FileOptions_OptimizeMode.LITE_RUNTIME; + case -1: + case "UNRECOGNIZED": + default: + return FileOptions_OptimizeMode.UNRECOGNIZED; + } +} +export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string { + switch (object) { + case FileOptions_OptimizeMode.SPEED: + return "SPEED"; + case FileOptions_OptimizeMode.CODE_SIZE: + return "CODE_SIZE"; + case FileOptions_OptimizeMode.LITE_RUNTIME: + return "LITE_RUNTIME"; + case FileOptions_OptimizeMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum FieldOptions_CType { + /** STRING - Default mode. */ + STRING = 0, + CORD = 1, + STRING_PIECE = 2, + UNRECOGNIZED = -1, +} +export const FieldOptions_CTypeSDKType = FieldOptions_CType; +export const FieldOptions_CTypeAmino = FieldOptions_CType; +export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType { + switch (object) { + case 0: + case "STRING": + return FieldOptions_CType.STRING; + case 1: + case "CORD": + return FieldOptions_CType.CORD; + case 2: + case "STRING_PIECE": + return FieldOptions_CType.STRING_PIECE; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_CType.UNRECOGNIZED; + } +} +export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string { + switch (object) { + case FieldOptions_CType.STRING: + return "STRING"; + case FieldOptions_CType.CORD: + return "CORD"; + case FieldOptions_CType.STRING_PIECE: + return "STRING_PIECE"; + case FieldOptions_CType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum FieldOptions_JSType { + /** JS_NORMAL - Use the default type. */ + JS_NORMAL = 0, + /** JS_STRING - Use JavaScript strings. */ + JS_STRING = 1, + /** JS_NUMBER - Use JavaScript numbers. */ + JS_NUMBER = 2, + UNRECOGNIZED = -1, +} +export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; +export const FieldOptions_JSTypeAmino = FieldOptions_JSType; +export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType { + switch (object) { + case 0: + case "JS_NORMAL": + return FieldOptions_JSType.JS_NORMAL; + case 1: + case "JS_STRING": + return FieldOptions_JSType.JS_STRING; + case 2: + case "JS_NUMBER": + return FieldOptions_JSType.JS_NUMBER; + case -1: + case "UNRECOGNIZED": + default: + return FieldOptions_JSType.UNRECOGNIZED; + } +} +export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { + switch (object) { + case FieldOptions_JSType.JS_NORMAL: + return "JS_NORMAL"; + case FieldOptions_JSType.JS_STRING: + return "JS_STRING"; + case FieldOptions_JSType.JS_NUMBER: + return "JS_NUMBER"; + case FieldOptions_JSType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + * or neither? HTTP based RPC implementation may choose GET verb for safe + * methods, and PUT verb for idempotent methods instead of the default POST. + */ +export enum MethodOptions_IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + /** NO_SIDE_EFFECTS - implies idempotent */ + NO_SIDE_EFFECTS = 1, + /** IDEMPOTENT - idempotent, but may have side effects */ + IDEMPOTENT = 2, + UNRECOGNIZED = -1, +} +export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; +export const MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; +export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel { + switch (object) { + case 0: + case "IDEMPOTENCY_UNKNOWN": + return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; + case 1: + case "NO_SIDE_EFFECTS": + return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; + case 2: + case "IDEMPOTENT": + return MethodOptions_IdempotencyLevel.IDEMPOTENT; + case -1: + case "UNRECOGNIZED": + default: + return MethodOptions_IdempotencyLevel.UNRECOGNIZED; + } +} +export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string { + switch (object) { + case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: + return "IDEMPOTENCY_UNKNOWN"; + case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: + return "NO_SIDE_EFFECTS"; + case MethodOptions_IdempotencyLevel.IDEMPOTENT: + return "IDEMPOTENT"; + case MethodOptions_IdempotencyLevel.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSet { + file: FileDescriptorProto[]; +} +export interface FileDescriptorSetProtoMsg { + typeUrl: "/google.protobuf.FileDescriptorSet"; + value: Uint8Array; +} +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSetAmino { + file?: FileDescriptorProtoAmino[]; +} +export interface FileDescriptorSetAminoMsg { + type: "/google.protobuf.FileDescriptorSet"; + value: FileDescriptorSetAmino; +} +/** + * The protocol compiler can output a FileDescriptorSet containing the .proto + * files it parses. + */ +export interface FileDescriptorSetSDKType { + file: FileDescriptorProtoSDKType[]; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProto { + /** file name, relative to root of source tree */ + name: string; + package: string; + /** Names of files imported by this file. */ + dependency: string[]; + /** Indexes of the public imported files in the dependency list above. */ + publicDependency: number[]; + /** + * Indexes of the weak imported files in the dependency list. + * For Google-internal migration only. Do not use. + */ + weakDependency: number[]; + /** All top-level definitions in this file. */ + messageType: DescriptorProto[]; + enumType: EnumDescriptorProto[]; + service: ServiceDescriptorProto[]; + extension: FieldDescriptorProto[]; + options?: FileOptions; + /** + * This field contains optional information about the original source code. + * You may safely remove this entire field without harming runtime + * functionality of the descriptors -- the information is needed only by + * development tools. + */ + sourceCodeInfo?: SourceCodeInfo; + /** + * The syntax of the proto file. + * The supported values are "proto2" and "proto3". + */ + syntax: string; +} +export interface FileDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.FileDescriptorProto"; + value: Uint8Array; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProtoAmino { + /** file name, relative to root of source tree */ + name?: string; + package?: string; + /** Names of files imported by this file. */ + dependency?: string[]; + /** Indexes of the public imported files in the dependency list above. */ + public_dependency?: number[]; + /** + * Indexes of the weak imported files in the dependency list. + * For Google-internal migration only. Do not use. + */ + weak_dependency?: number[]; + /** All top-level definitions in this file. */ + message_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + service?: ServiceDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; + options?: FileOptionsAmino; + /** + * This field contains optional information about the original source code. + * You may safely remove this entire field without harming runtime + * functionality of the descriptors -- the information is needed only by + * development tools. + */ + source_code_info?: SourceCodeInfoAmino; + /** + * The syntax of the proto file. + * The supported values are "proto2" and "proto3". + */ + syntax?: string; +} +export interface FileDescriptorProtoAminoMsg { + type: "/google.protobuf.FileDescriptorProto"; + value: FileDescriptorProtoAmino; +} +/** Describes a complete .proto file. */ +export interface FileDescriptorProtoSDKType { + name: string; + package: string; + dependency: string[]; + public_dependency: number[]; + weak_dependency: number[]; + message_type: DescriptorProtoSDKType[]; + enum_type: EnumDescriptorProtoSDKType[]; + service: ServiceDescriptorProtoSDKType[]; + extension: FieldDescriptorProtoSDKType[]; + options?: FileOptionsSDKType; + source_code_info?: SourceCodeInfoSDKType; + syntax: string; +} +/** Describes a message type. */ +export interface DescriptorProto { + name: string; + field: FieldDescriptorProto[]; + extension: FieldDescriptorProto[]; + nestedType: DescriptorProto[]; + enumType: EnumDescriptorProto[]; + extensionRange: DescriptorProto_ExtensionRange[]; + oneofDecl: OneofDescriptorProto[]; + options?: MessageOptions; + reservedRange: DescriptorProto_ReservedRange[]; + /** + * Reserved field names, which may not be used by fields in the same message. + * A given name may only be reserved once. + */ + reservedName: string[]; +} +export interface DescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.DescriptorProto"; + value: Uint8Array; +} +/** Describes a message type. */ +export interface DescriptorProtoAmino { + name?: string; + field?: FieldDescriptorProtoAmino[]; + extension?: FieldDescriptorProtoAmino[]; + nested_type?: DescriptorProtoAmino[]; + enum_type?: EnumDescriptorProtoAmino[]; + extension_range?: DescriptorProto_ExtensionRangeAmino[]; + oneof_decl?: OneofDescriptorProtoAmino[]; + options?: MessageOptionsAmino; + reserved_range?: DescriptorProto_ReservedRangeAmino[]; + /** + * Reserved field names, which may not be used by fields in the same message. + * A given name may only be reserved once. + */ + reserved_name?: string[]; +} +export interface DescriptorProtoAminoMsg { + type: "/google.protobuf.DescriptorProto"; + value: DescriptorProtoAmino; +} +/** Describes a message type. */ +export interface DescriptorProtoSDKType { + name: string; + field: FieldDescriptorProtoSDKType[]; + extension: FieldDescriptorProtoSDKType[]; + nested_type: DescriptorProtoSDKType[]; + enum_type: EnumDescriptorProtoSDKType[]; + extension_range: DescriptorProto_ExtensionRangeSDKType[]; + oneof_decl: OneofDescriptorProtoSDKType[]; + options?: MessageOptionsSDKType; + reserved_range: DescriptorProto_ReservedRangeSDKType[]; + reserved_name: string[]; +} +export interface DescriptorProto_ExtensionRange { + /** Inclusive. */ + start: number; + /** Exclusive. */ + end: number; + options?: ExtensionRangeOptions; +} +export interface DescriptorProto_ExtensionRangeProtoMsg { + typeUrl: "/google.protobuf.ExtensionRange"; + value: Uint8Array; +} +export interface DescriptorProto_ExtensionRangeAmino { + /** Inclusive. */ + start?: number; + /** Exclusive. */ + end?: number; + options?: ExtensionRangeOptionsAmino; +} +export interface DescriptorProto_ExtensionRangeAminoMsg { + type: "/google.protobuf.ExtensionRange"; + value: DescriptorProto_ExtensionRangeAmino; +} +export interface DescriptorProto_ExtensionRangeSDKType { + start: number; + end: number; + options?: ExtensionRangeOptionsSDKType; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRange { + /** Inclusive. */ + start: number; + /** Exclusive. */ + end: number; +} +export interface DescriptorProto_ReservedRangeProtoMsg { + typeUrl: "/google.protobuf.ReservedRange"; + value: Uint8Array; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRangeAmino { + /** Inclusive. */ + start?: number; + /** Exclusive. */ + end?: number; +} +export interface DescriptorProto_ReservedRangeAminoMsg { + type: "/google.protobuf.ReservedRange"; + value: DescriptorProto_ReservedRangeAmino; +} +/** + * Range of reserved tag numbers. Reserved tag numbers may not be used by + * fields or extension ranges in the same message. Reserved ranges may + * not overlap. + */ +export interface DescriptorProto_ReservedRangeSDKType { + start: number; + end: number; +} +export interface ExtensionRangeOptions { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface ExtensionRangeOptionsProtoMsg { + typeUrl: "/google.protobuf.ExtensionRangeOptions"; + value: Uint8Array; +} +export interface ExtensionRangeOptionsAmino { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface ExtensionRangeOptionsAminoMsg { + type: "/google.protobuf.ExtensionRangeOptions"; + value: ExtensionRangeOptionsAmino; +} +export interface ExtensionRangeOptionsSDKType { + uninterpreted_option: UninterpretedOptionSDKType[]; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProto { + name: string; + number: number; + label: FieldDescriptorProto_Label; + /** + * If type_name is set, this need not be set. If both this and type_name + * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + */ + type: FieldDescriptorProto_Type; + /** + * For message and enum types, this is the name of the type. If the name + * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + * rules are used to find the type (i.e. first the nested types within this + * message are searched, then within the parent, on up to the root + * namespace). + */ + typeName: string; + /** + * For extensions, this is the name of the type being extended. It is + * resolved in the same manner as type_name. + */ + extendee: string; + /** + * For numeric types, contains the original text representation of the value. + * For booleans, "true" or "false". + * For strings, contains the default text contents (not escaped in any way). + * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * TODO(kenton): Base-64 encode? + */ + defaultValue: string; + /** + * If set, gives the index of a oneof in the containing type's oneof_decl + * list. This field is a member of that oneof. + */ + oneofIndex: number; + /** + * JSON name of this field. The value is set by protocol compiler. If the + * user has set a "json_name" option on this field, that option's value + * will be used. Otherwise, it's deduced from the field's name by converting + * it to camelCase. + */ + jsonName: string; + options?: FieldOptions; +} +export interface FieldDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.FieldDescriptorProto"; + value: Uint8Array; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProtoAmino { + name?: string; + number?: number; + label?: FieldDescriptorProto_Label; + /** + * If type_name is set, this need not be set. If both this and type_name + * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + */ + type?: FieldDescriptorProto_Type; + /** + * For message and enum types, this is the name of the type. If the name + * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + * rules are used to find the type (i.e. first the nested types within this + * message are searched, then within the parent, on up to the root + * namespace). + */ + type_name?: string; + /** + * For extensions, this is the name of the type being extended. It is + * resolved in the same manner as type_name. + */ + extendee?: string; + /** + * For numeric types, contains the original text representation of the value. + * For booleans, "true" or "false". + * For strings, contains the default text contents (not escaped in any way). + * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * TODO(kenton): Base-64 encode? + */ + default_value?: string; + /** + * If set, gives the index of a oneof in the containing type's oneof_decl + * list. This field is a member of that oneof. + */ + oneof_index?: number; + /** + * JSON name of this field. The value is set by protocol compiler. If the + * user has set a "json_name" option on this field, that option's value + * will be used. Otherwise, it's deduced from the field's name by converting + * it to camelCase. + */ + json_name?: string; + options?: FieldOptionsAmino; +} +export interface FieldDescriptorProtoAminoMsg { + type: "/google.protobuf.FieldDescriptorProto"; + value: FieldDescriptorProtoAmino; +} +/** Describes a field within a message. */ +export interface FieldDescriptorProtoSDKType { + name: string; + number: number; + label: FieldDescriptorProto_Label; + type: FieldDescriptorProto_Type; + type_name: string; + extendee: string; + default_value: string; + oneof_index: number; + json_name: string; + options?: FieldOptionsSDKType; +} +/** Describes a oneof. */ +export interface OneofDescriptorProto { + name: string; + options?: OneofOptions; +} +export interface OneofDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.OneofDescriptorProto"; + value: Uint8Array; +} +/** Describes a oneof. */ +export interface OneofDescriptorProtoAmino { + name?: string; + options?: OneofOptionsAmino; +} +export interface OneofDescriptorProtoAminoMsg { + type: "/google.protobuf.OneofDescriptorProto"; + value: OneofDescriptorProtoAmino; +} +/** Describes a oneof. */ +export interface OneofDescriptorProtoSDKType { + name: string; + options?: OneofOptionsSDKType; +} +/** Describes an enum type. */ +export interface EnumDescriptorProto { + name: string; + value: EnumValueDescriptorProto[]; + options?: EnumOptions; + /** + * Range of reserved numeric values. Reserved numeric values may not be used + * by enum values in the same enum declaration. Reserved ranges may not + * overlap. + */ + reservedRange: EnumDescriptorProto_EnumReservedRange[]; + /** + * Reserved enum value names, which may not be reused. A given name may only + * be reserved once. + */ + reservedName: string[]; +} +export interface EnumDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.EnumDescriptorProto"; + value: Uint8Array; +} +/** Describes an enum type. */ +export interface EnumDescriptorProtoAmino { + name?: string; + value?: EnumValueDescriptorProtoAmino[]; + options?: EnumOptionsAmino; + /** + * Range of reserved numeric values. Reserved numeric values may not be used + * by enum values in the same enum declaration. Reserved ranges may not + * overlap. + */ + reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; + /** + * Reserved enum value names, which may not be reused. A given name may only + * be reserved once. + */ + reserved_name?: string[]; +} +export interface EnumDescriptorProtoAminoMsg { + type: "/google.protobuf.EnumDescriptorProto"; + value: EnumDescriptorProtoAmino; +} +/** Describes an enum type. */ +export interface EnumDescriptorProtoSDKType { + name: string; + value: EnumValueDescriptorProtoSDKType[]; + options?: EnumOptionsSDKType; + reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; + reserved_name: string[]; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRange { + /** Inclusive. */ + start: number; + /** Inclusive. */ + end: number; +} +export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { + typeUrl: "/google.protobuf.EnumReservedRange"; + value: Uint8Array; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRangeAmino { + /** Inclusive. */ + start?: number; + /** Inclusive. */ + end?: number; +} +export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { + type: "/google.protobuf.EnumReservedRange"; + value: EnumDescriptorProto_EnumReservedRangeAmino; +} +/** + * Range of reserved numeric values. Reserved values may not be used by + * entries in the same enum. Reserved ranges may not overlap. + * + * Note that this is distinct from DescriptorProto.ReservedRange in that it + * is inclusive such that it can appropriately represent the entire int32 + * domain. + */ +export interface EnumDescriptorProto_EnumReservedRangeSDKType { + start: number; + end: number; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProto { + name: string; + number: number; + options?: EnumValueOptions; +} +export interface EnumValueDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.EnumValueDescriptorProto"; + value: Uint8Array; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProtoAmino { + name?: string; + number?: number; + options?: EnumValueOptionsAmino; +} +export interface EnumValueDescriptorProtoAminoMsg { + type: "/google.protobuf.EnumValueDescriptorProto"; + value: EnumValueDescriptorProtoAmino; +} +/** Describes a value within an enum. */ +export interface EnumValueDescriptorProtoSDKType { + name: string; + number: number; + options?: EnumValueOptionsSDKType; +} +/** Describes a service. */ +export interface ServiceDescriptorProto { + name: string; + method: MethodDescriptorProto[]; + options?: ServiceOptions; +} +export interface ServiceDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.ServiceDescriptorProto"; + value: Uint8Array; +} +/** Describes a service. */ +export interface ServiceDescriptorProtoAmino { + name?: string; + method?: MethodDescriptorProtoAmino[]; + options?: ServiceOptionsAmino; +} +export interface ServiceDescriptorProtoAminoMsg { + type: "/google.protobuf.ServiceDescriptorProto"; + value: ServiceDescriptorProtoAmino; +} +/** Describes a service. */ +export interface ServiceDescriptorProtoSDKType { + name: string; + method: MethodDescriptorProtoSDKType[]; + options?: ServiceOptionsSDKType; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProto { + name: string; + /** + * Input and output type names. These are resolved in the same way as + * FieldDescriptorProto.type_name, but must refer to a message type. + */ + inputType: string; + outputType: string; + options?: MethodOptions; + /** Identifies if client streams multiple client messages */ + clientStreaming: boolean; + /** Identifies if server streams multiple server messages */ + serverStreaming: boolean; +} +export interface MethodDescriptorProtoProtoMsg { + typeUrl: "/google.protobuf.MethodDescriptorProto"; + value: Uint8Array; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProtoAmino { + name?: string; + /** + * Input and output type names. These are resolved in the same way as + * FieldDescriptorProto.type_name, but must refer to a message type. + */ + input_type?: string; + output_type?: string; + options?: MethodOptionsAmino; + /** Identifies if client streams multiple client messages */ + client_streaming?: boolean; + /** Identifies if server streams multiple server messages */ + server_streaming?: boolean; +} +export interface MethodDescriptorProtoAminoMsg { + type: "/google.protobuf.MethodDescriptorProto"; + value: MethodDescriptorProtoAmino; +} +/** Describes a method of a service. */ +export interface MethodDescriptorProtoSDKType { + name: string; + input_type: string; + output_type: string; + options?: MethodOptionsSDKType; + client_streaming: boolean; + server_streaming: boolean; +} +export interface FileOptions { + /** + * Sets the Java package where classes generated from this .proto will be + * placed. By default, the proto package is used, but this is often + * inappropriate because proto packages do not normally start with backwards + * domain names. + */ + javaPackage: string; + /** + * If set, all the classes from the .proto file are wrapped in a single + * outer class with the given name. This applies to both Proto1 + * (equivalent to the old "--one_java_file" option) and Proto2 (where + * a .proto always translates to a single class, but you may want to + * explicitly choose the class name). + */ + javaOuterClassname: string; + /** + * If set true, then the Java code generator will generate a separate .java + * file for each top-level message, enum, and service defined in the .proto + * file. Thus, these types will *not* be nested inside the outer class + * named by java_outer_classname. However, the outer class will still be + * generated to contain the file's getDescriptor() method as well as any + * top-level extensions defined in the file. + */ + javaMultipleFiles: boolean; + /** This option does nothing. */ + /** @deprecated */ + javaGenerateEqualsAndHash: boolean; + /** + * If set true, then the Java2 code generator will generate code that + * throws an exception whenever an attempt is made to assign a non-UTF-8 + * byte sequence to a string field. + * Message reflection will do the same. + * However, an extension field still accepts non-UTF-8 byte sequences. + * This option has no effect on when used with the lite runtime. + */ + javaStringCheckUtf8: boolean; + optimizeFor: FileOptions_OptimizeMode; + /** + * Sets the Go package where structs generated from this .proto will be + * placed. If omitted, the Go package will be derived from the following: + * - The basename of the package import path, if provided. + * - Otherwise, the package statement in the .proto file, if present. + * - Otherwise, the basename of the .proto file, without extension. + */ + goPackage: string; + /** + * Should generic services be generated in each language? "Generic" services + * are not specific to any particular RPC system. They are generated by the + * main code generators in each language (without additional plugins). + * Generic services were the only kind of service generation supported by + * early versions of google.protobuf. + * + * Generic services are now considered deprecated in favor of using plugins + * that generate code specific to your particular RPC system. Therefore, + * these default to false. Old code which depends on generic services should + * explicitly set them to true. + */ + ccGenericServices: boolean; + javaGenericServices: boolean; + pyGenericServices: boolean; + phpGenericServices: boolean; + /** + * Is this file deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for everything in the file, or it will be completely ignored; in the very + * least, this is a formalization for deprecating files. + */ + deprecated: boolean; + /** + * Enables the use of arenas for the proto messages in this file. This applies + * only to generated classes for C++. + */ + ccEnableArenas: boolean; + /** + * Sets the objective c class prefix which is prepended to all objective c + * generated classes from this .proto. There is no default. + */ + objcClassPrefix: string; + /** Namespace for generated classes; defaults to the package. */ + csharpNamespace: string; + /** + * By default Swift generators will take the proto package and CamelCase it + * replacing '.' with underscore and use that to prefix the types/symbols + * defined. When this options is provided, they will use this value instead + * to prefix the types/symbols defined. + */ + swiftPrefix: string; + /** + * Sets the php class prefix which is prepended to all php generated classes + * from this .proto. Default is empty. + */ + phpClassPrefix: string; + /** + * Use this option to change the namespace of php generated classes. Default + * is empty. When this option is empty, the package name will be used for + * determining the namespace. + */ + phpNamespace: string; + /** + * Use this option to change the namespace of php generated metadata classes. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. + */ + phpMetadataNamespace: string; + /** + * Use this option to change the package of ruby generated classes. Default + * is empty. When this option is not set, the package name will be used for + * determining the ruby package. + */ + rubyPackage: string; + /** + * The parser stores options it doesn't recognize here. + * See the documentation for the "Options" section above. + */ + uninterpretedOption: UninterpretedOption[]; +} +export interface FileOptionsProtoMsg { + typeUrl: "/google.protobuf.FileOptions"; + value: Uint8Array; +} +export interface FileOptionsAmino { + /** + * Sets the Java package where classes generated from this .proto will be + * placed. By default, the proto package is used, but this is often + * inappropriate because proto packages do not normally start with backwards + * domain names. + */ + java_package?: string; + /** + * If set, all the classes from the .proto file are wrapped in a single + * outer class with the given name. This applies to both Proto1 + * (equivalent to the old "--one_java_file" option) and Proto2 (where + * a .proto always translates to a single class, but you may want to + * explicitly choose the class name). + */ + java_outer_classname?: string; + /** + * If set true, then the Java code generator will generate a separate .java + * file for each top-level message, enum, and service defined in the .proto + * file. Thus, these types will *not* be nested inside the outer class + * named by java_outer_classname. However, the outer class will still be + * generated to contain the file's getDescriptor() method as well as any + * top-level extensions defined in the file. + */ + java_multiple_files?: boolean; + /** This option does nothing. */ + /** @deprecated */ + java_generate_equals_and_hash?: boolean; + /** + * If set true, then the Java2 code generator will generate code that + * throws an exception whenever an attempt is made to assign a non-UTF-8 + * byte sequence to a string field. + * Message reflection will do the same. + * However, an extension field still accepts non-UTF-8 byte sequences. + * This option has no effect on when used with the lite runtime. + */ + java_string_check_utf8?: boolean; + optimize_for?: FileOptions_OptimizeMode; + /** + * Sets the Go package where structs generated from this .proto will be + * placed. If omitted, the Go package will be derived from the following: + * - The basename of the package import path, if provided. + * - Otherwise, the package statement in the .proto file, if present. + * - Otherwise, the basename of the .proto file, without extension. + */ + go_package?: string; + /** + * Should generic services be generated in each language? "Generic" services + * are not specific to any particular RPC system. They are generated by the + * main code generators in each language (without additional plugins). + * Generic services were the only kind of service generation supported by + * early versions of google.protobuf. + * + * Generic services are now considered deprecated in favor of using plugins + * that generate code specific to your particular RPC system. Therefore, + * these default to false. Old code which depends on generic services should + * explicitly set them to true. + */ + cc_generic_services?: boolean; + java_generic_services?: boolean; + py_generic_services?: boolean; + php_generic_services?: boolean; + /** + * Is this file deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for everything in the file, or it will be completely ignored; in the very + * least, this is a formalization for deprecating files. + */ + deprecated?: boolean; + /** + * Enables the use of arenas for the proto messages in this file. This applies + * only to generated classes for C++. + */ + cc_enable_arenas?: boolean; + /** + * Sets the objective c class prefix which is prepended to all objective c + * generated classes from this .proto. There is no default. + */ + objc_class_prefix?: string; + /** Namespace for generated classes; defaults to the package. */ + csharp_namespace?: string; + /** + * By default Swift generators will take the proto package and CamelCase it + * replacing '.' with underscore and use that to prefix the types/symbols + * defined. When this options is provided, they will use this value instead + * to prefix the types/symbols defined. + */ + swift_prefix?: string; + /** + * Sets the php class prefix which is prepended to all php generated classes + * from this .proto. Default is empty. + */ + php_class_prefix?: string; + /** + * Use this option to change the namespace of php generated classes. Default + * is empty. When this option is empty, the package name will be used for + * determining the namespace. + */ + php_namespace?: string; + /** + * Use this option to change the namespace of php generated metadata classes. + * Default is empty. When this option is empty, the proto file name will be + * used for determining the namespace. + */ + php_metadata_namespace?: string; + /** + * Use this option to change the package of ruby generated classes. Default + * is empty. When this option is not set, the package name will be used for + * determining the ruby package. + */ + ruby_package?: string; + /** + * The parser stores options it doesn't recognize here. + * See the documentation for the "Options" section above. + */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface FileOptionsAminoMsg { + type: "/google.protobuf.FileOptions"; + value: FileOptionsAmino; +} +export interface FileOptionsSDKType { + java_package: string; + java_outer_classname: string; + java_multiple_files: boolean; + /** @deprecated */ + java_generate_equals_and_hash: boolean; + java_string_check_utf8: boolean; + optimize_for: FileOptions_OptimizeMode; + go_package: string; + cc_generic_services: boolean; + java_generic_services: boolean; + py_generic_services: boolean; + php_generic_services: boolean; + deprecated: boolean; + cc_enable_arenas: boolean; + objc_class_prefix: string; + csharp_namespace: string; + swift_prefix: string; + php_class_prefix: string; + php_namespace: string; + php_metadata_namespace: string; + ruby_package: string; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface MessageOptions { + /** + * Set true to use the old proto1 MessageSet wire format for extensions. + * This is provided for backwards-compatibility with the MessageSet wire + * format. You should not use this for any other reason: It's less + * efficient, has fewer features, and is more complicated. + * + * The message must be defined exactly as follows: + * message Foo { + * option message_set_wire_format = true; + * extensions 4 to max; + * } + * Note that the message cannot have any defined fields; MessageSets only + * have extensions. + * + * All extensions of your type must be singular messages; e.g. they cannot + * be int32s, enums, or repeated messages. + * + * Because this is an option, the above two restrictions are not enforced by + * the protocol compiler. + */ + messageSetWireFormat: boolean; + /** + * Disables the generation of the standard "descriptor()" accessor, which can + * conflict with a field of the same name. This is meant to make migration + * from proto1 easier; new code should avoid fields named "descriptor". + */ + noStandardDescriptorAccessor: boolean; + /** + * Is this message deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the message, or it will be completely ignored; in the very least, + * this is a formalization for deprecating messages. + */ + deprecated: boolean; + /** + * Whether the message is an automatically generated map entry type for the + * maps field. + * + * For maps fields: + * map map_field = 1; + * The parsed descriptor looks like: + * message MapFieldEntry { + * option map_entry = true; + * optional KeyType key = 1; + * optional ValueType value = 2; + * } + * repeated MapFieldEntry map_field = 1; + * + * Implementations may choose not to generate the map_entry=true message, but + * use a native map in the target language to hold the keys and values. + * The reflection APIs in such implementations still need to work as + * if the field is a repeated message field. + * + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. + */ + mapEntry: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface MessageOptionsProtoMsg { + typeUrl: "/google.protobuf.MessageOptions"; + value: Uint8Array; +} +export interface MessageOptionsAmino { + /** + * Set true to use the old proto1 MessageSet wire format for extensions. + * This is provided for backwards-compatibility with the MessageSet wire + * format. You should not use this for any other reason: It's less + * efficient, has fewer features, and is more complicated. + * + * The message must be defined exactly as follows: + * message Foo { + * option message_set_wire_format = true; + * extensions 4 to max; + * } + * Note that the message cannot have any defined fields; MessageSets only + * have extensions. + * + * All extensions of your type must be singular messages; e.g. they cannot + * be int32s, enums, or repeated messages. + * + * Because this is an option, the above two restrictions are not enforced by + * the protocol compiler. + */ + message_set_wire_format?: boolean; + /** + * Disables the generation of the standard "descriptor()" accessor, which can + * conflict with a field of the same name. This is meant to make migration + * from proto1 easier; new code should avoid fields named "descriptor". + */ + no_standard_descriptor_accessor?: boolean; + /** + * Is this message deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the message, or it will be completely ignored; in the very least, + * this is a formalization for deprecating messages. + */ + deprecated?: boolean; + /** + * Whether the message is an automatically generated map entry type for the + * maps field. + * + * For maps fields: + * map map_field = 1; + * The parsed descriptor looks like: + * message MapFieldEntry { + * option map_entry = true; + * optional KeyType key = 1; + * optional ValueType value = 2; + * } + * repeated MapFieldEntry map_field = 1; + * + * Implementations may choose not to generate the map_entry=true message, but + * use a native map in the target language to hold the keys and values. + * The reflection APIs in such implementations still need to work as + * if the field is a repeated message field. + * + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. + */ + map_entry?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface MessageOptionsAminoMsg { + type: "/google.protobuf.MessageOptions"; + value: MessageOptionsAmino; +} +export interface MessageOptionsSDKType { + message_set_wire_format: boolean; + no_standard_descriptor_accessor: boolean; + deprecated: boolean; + map_entry: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface FieldOptions { + /** + * The ctype option instructs the C++ code generator to use a different + * representation of the field than it normally would. See the specific + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! + */ + ctype: FieldOptions_CType; + /** + * The packed option can be enabled for repeated primitive fields to enable + * a more efficient representation on the wire. Rather than repeatedly + * writing the tag and type for each element, the entire array is encoded as + * a single length-delimited blob. In proto3, only explicit setting it to + * false will avoid using packed encoding. + */ + packed: boolean; + /** + * The jstype option determines the JavaScript type used for values of the + * field. The option is permitted only for 64 bit integral and fixed types + * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + * is represented as JavaScript string, which avoids loss of precision that + * can happen when a large value is converted to a floating point JavaScript. + * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + * use the JavaScript "number" type. The behavior of the default option + * JS_NORMAL is implementation dependent. + * + * This option is an enum to permit additional types to be added, e.g. + * goog.math.Integer. + */ + jstype: FieldOptions_JSType; + /** + * Should this field be parsed lazily? Lazy applies only to message-type + * fields. It means that when the outer message is initially parsed, the + * inner message's contents will not be parsed but instead stored in encoded + * form. The inner message will actually be parsed when it is first accessed. + * + * This is only a hint. Implementations are free to choose whether to use + * eager or lazy parsing regardless of the value of this option. However, + * setting this option true suggests that the protocol author believes that + * using lazy parsing on this field is worth the additional bookkeeping + * overhead typically needed to implement it. + * + * This option does not affect the public interface of any generated code; + * all method signatures remain the same. Furthermore, thread-safety of the + * interface is not affected by this option; const methods remain safe to + * call from multiple threads concurrently, while non-const methods continue + * to require exclusive access. + * + * + * Note that implementations may choose not to check required fields within + * a lazy sub-message. That is, calling IsInitialized() on the outer message + * may return true even if the inner message has missing required fields. + * This is necessary because otherwise the inner message would have to be + * parsed in order to perform the check, defeating the purpose of lazy + * parsing. An implementation which chooses not to check required fields + * must be consistent about it. That is, for any particular sub-message, the + * implementation must either *always* check its required fields, or *never* + * check its required fields, regardless of whether or not the message has + * been parsed. + */ + lazy: boolean; + /** + * Is this field deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for accessors, or it will be completely ignored; in the very least, this + * is a formalization for deprecating fields. + */ + deprecated: boolean; + /** For Google-internal migration only. Do not use. */ + weak: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface FieldOptionsProtoMsg { + typeUrl: "/google.protobuf.FieldOptions"; + value: Uint8Array; +} +export interface FieldOptionsAmino { + /** + * The ctype option instructs the C++ code generator to use a different + * representation of the field than it normally would. See the specific + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! + */ + ctype?: FieldOptions_CType; + /** + * The packed option can be enabled for repeated primitive fields to enable + * a more efficient representation on the wire. Rather than repeatedly + * writing the tag and type for each element, the entire array is encoded as + * a single length-delimited blob. In proto3, only explicit setting it to + * false will avoid using packed encoding. + */ + packed?: boolean; + /** + * The jstype option determines the JavaScript type used for values of the + * field. The option is permitted only for 64 bit integral and fixed types + * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + * is represented as JavaScript string, which avoids loss of precision that + * can happen when a large value is converted to a floating point JavaScript. + * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + * use the JavaScript "number" type. The behavior of the default option + * JS_NORMAL is implementation dependent. + * + * This option is an enum to permit additional types to be added, e.g. + * goog.math.Integer. + */ + jstype?: FieldOptions_JSType; + /** + * Should this field be parsed lazily? Lazy applies only to message-type + * fields. It means that when the outer message is initially parsed, the + * inner message's contents will not be parsed but instead stored in encoded + * form. The inner message will actually be parsed when it is first accessed. + * + * This is only a hint. Implementations are free to choose whether to use + * eager or lazy parsing regardless of the value of this option. However, + * setting this option true suggests that the protocol author believes that + * using lazy parsing on this field is worth the additional bookkeeping + * overhead typically needed to implement it. + * + * This option does not affect the public interface of any generated code; + * all method signatures remain the same. Furthermore, thread-safety of the + * interface is not affected by this option; const methods remain safe to + * call from multiple threads concurrently, while non-const methods continue + * to require exclusive access. + * + * + * Note that implementations may choose not to check required fields within + * a lazy sub-message. That is, calling IsInitialized() on the outer message + * may return true even if the inner message has missing required fields. + * This is necessary because otherwise the inner message would have to be + * parsed in order to perform the check, defeating the purpose of lazy + * parsing. An implementation which chooses not to check required fields + * must be consistent about it. That is, for any particular sub-message, the + * implementation must either *always* check its required fields, or *never* + * check its required fields, regardless of whether or not the message has + * been parsed. + */ + lazy?: boolean; + /** + * Is this field deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for accessors, or it will be completely ignored; in the very least, this + * is a formalization for deprecating fields. + */ + deprecated?: boolean; + /** For Google-internal migration only. Do not use. */ + weak?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface FieldOptionsAminoMsg { + type: "/google.protobuf.FieldOptions"; + value: FieldOptionsAmino; +} +export interface FieldOptionsSDKType { + ctype: FieldOptions_CType; + packed: boolean; + jstype: FieldOptions_JSType; + lazy: boolean; + deprecated: boolean; + weak: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface OneofOptions { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface OneofOptionsProtoMsg { + typeUrl: "/google.protobuf.OneofOptions"; + value: Uint8Array; +} +export interface OneofOptionsAmino { + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface OneofOptionsAminoMsg { + type: "/google.protobuf.OneofOptions"; + value: OneofOptionsAmino; +} +export interface OneofOptionsSDKType { + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface EnumOptions { + /** + * Set this option to true to allow mapping different tag names to the same + * value. + */ + allowAlias: boolean; + /** + * Is this enum deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum, or it will be completely ignored; in the very least, this + * is a formalization for deprecating enums. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface EnumOptionsProtoMsg { + typeUrl: "/google.protobuf.EnumOptions"; + value: Uint8Array; +} +export interface EnumOptionsAmino { + /** + * Set this option to true to allow mapping different tag names to the same + * value. + */ + allow_alias?: boolean; + /** + * Is this enum deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum, or it will be completely ignored; in the very least, this + * is a formalization for deprecating enums. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface EnumOptionsAminoMsg { + type: "/google.protobuf.EnumOptions"; + value: EnumOptionsAmino; +} +export interface EnumOptionsSDKType { + allow_alias: boolean; + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface EnumValueOptions { + /** + * Is this enum value deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum value, or it will be completely ignored; in the very least, + * this is a formalization for deprecating enum values. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface EnumValueOptionsProtoMsg { + typeUrl: "/google.protobuf.EnumValueOptions"; + value: Uint8Array; +} +export interface EnumValueOptionsAmino { + /** + * Is this enum value deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the enum value, or it will be completely ignored; in the very least, + * this is a formalization for deprecating enum values. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface EnumValueOptionsAminoMsg { + type: "/google.protobuf.EnumValueOptions"; + value: EnumValueOptionsAmino; +} +export interface EnumValueOptionsSDKType { + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface ServiceOptions { + /** + * Is this service deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the service, or it will be completely ignored; in the very least, + * this is a formalization for deprecating services. + */ + deprecated: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface ServiceOptionsProtoMsg { + typeUrl: "/google.protobuf.ServiceOptions"; + value: Uint8Array; +} +export interface ServiceOptionsAmino { + /** + * Is this service deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the service, or it will be completely ignored; in the very least, + * this is a formalization for deprecating services. + */ + deprecated?: boolean; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface ServiceOptionsAminoMsg { + type: "/google.protobuf.ServiceOptions"; + value: ServiceOptionsAmino; +} +export interface ServiceOptionsSDKType { + deprecated: boolean; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +export interface MethodOptions { + /** + * Is this method deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the method, or it will be completely ignored; in the very least, + * this is a formalization for deprecating methods. + */ + deprecated: boolean; + idempotencyLevel: MethodOptions_IdempotencyLevel; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpretedOption: UninterpretedOption[]; +} +export interface MethodOptionsProtoMsg { + typeUrl: "/google.protobuf.MethodOptions"; + value: Uint8Array; +} +export interface MethodOptionsAmino { + /** + * Is this method deprecated? + * Depending on the target platform, this can emit Deprecated annotations + * for the method, or it will be completely ignored; in the very least, + * this is a formalization for deprecating methods. + */ + deprecated?: boolean; + idempotency_level?: MethodOptions_IdempotencyLevel; + /** The parser stores options it doesn't recognize here. See above. */ + uninterpreted_option?: UninterpretedOptionAmino[]; +} +export interface MethodOptionsAminoMsg { + type: "/google.protobuf.MethodOptions"; + value: MethodOptionsAmino; +} +export interface MethodOptionsSDKType { + deprecated: boolean; + idempotency_level: MethodOptions_IdempotencyLevel; + uninterpreted_option: UninterpretedOptionSDKType[]; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOption { + name: UninterpretedOption_NamePart[]; + /** + * The value of the uninterpreted option, in whatever type the tokenizer + * identified it as during parsing. Exactly one of these should be set. + */ + identifierValue: string; + positiveIntValue: bigint; + negativeIntValue: bigint; + doubleValue: number; + stringValue: Uint8Array; + aggregateValue: string; +} +export interface UninterpretedOptionProtoMsg { + typeUrl: "/google.protobuf.UninterpretedOption"; + value: Uint8Array; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOptionAmino { + name?: UninterpretedOption_NamePartAmino[]; + /** + * The value of the uninterpreted option, in whatever type the tokenizer + * identified it as during parsing. Exactly one of these should be set. + */ + identifier_value?: string; + positive_int_value?: string; + negative_int_value?: string; + double_value?: number; + string_value?: string; + aggregate_value?: string; +} +export interface UninterpretedOptionAminoMsg { + type: "/google.protobuf.UninterpretedOption"; + value: UninterpretedOptionAmino; +} +/** + * A message representing a option the parser does not recognize. This only + * appears in options protos created by the compiler::Parser class. + * DescriptorPool resolves these when building Descriptor objects. Therefore, + * options protos in descriptor objects (e.g. returned by Descriptor::options(), + * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions + * in them. + */ +export interface UninterpretedOptionSDKType { + name: UninterpretedOption_NamePartSDKType[]; + identifier_value: string; + positive_int_value: bigint; + negative_int_value: bigint; + double_value: number; + string_value: Uint8Array; + aggregate_value: string; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePart { + namePart: string; + isExtension: boolean; +} +export interface UninterpretedOption_NamePartProtoMsg { + typeUrl: "/google.protobuf.NamePart"; + value: Uint8Array; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePartAmino { + name_part?: string; + is_extension?: boolean; +} +export interface UninterpretedOption_NamePartAminoMsg { + type: "/google.protobuf.NamePart"; + value: UninterpretedOption_NamePartAmino; +} +/** + * The name of the uninterpreted option. Each string represents a segment in + * a dot-separated name. is_extension is true iff a segment represents an + * extension (denoted with parentheses in options specs in .proto files). + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". + */ +export interface UninterpretedOption_NamePartSDKType { + name_part: string; + is_extension: boolean; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfo { + /** + * A Location identifies a piece of source code in a .proto file which + * corresponds to a particular definition. This information is intended + * to be useful to IDEs, code indexers, documentation generators, and similar + * tools. + * + * For example, say we have a file like: + * message Foo { + * optional string foo = 1; + * } + * Let's look at just the field definition: + * optional string foo = 1; + * ^ ^^ ^^ ^ ^^^ + * a bc de f ghi + * We have the following locations: + * span path represents + * [a,i) [ 4, 0, 2, 0 ] The whole field definition. + * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + * + * Notes: + * - A location may refer to a repeated field itself (i.e. not to any + * particular index within it). This is used whenever a set of elements are + * logically enclosed in a single code segment. For example, an entire + * extend block (possibly containing multiple extension definitions) will + * have an outer location whose path refers to the "extensions" repeated + * field without an index. + * - Multiple locations may have the same path. This happens when a single + * logical declaration is spread out across multiple places. The most + * obvious example is the "extend" block again -- there may be multiple + * extend blocks in the same scope, each of which will have the same path. + * - A location's span is not always a subset of its parent's span. For + * example, the "extendee" of an extension declaration appears at the + * beginning of the "extend" block and is shared by all extensions within + * the block. + * - Just because a location's span is a subset of some other location's span + * does not mean that it is a descendant. For example, a "group" defines + * both a type and a field in a single declaration. Thus, the locations + * corresponding to the type and field and their components will overlap. + * - Code which tries to interpret locations should probably be designed to + * ignore those that it doesn't understand, as more types of locations could + * be recorded in the future. + */ + location: SourceCodeInfo_Location[]; +} +export interface SourceCodeInfoProtoMsg { + typeUrl: "/google.protobuf.SourceCodeInfo"; + value: Uint8Array; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfoAmino { + /** + * A Location identifies a piece of source code in a .proto file which + * corresponds to a particular definition. This information is intended + * to be useful to IDEs, code indexers, documentation generators, and similar + * tools. + * + * For example, say we have a file like: + * message Foo { + * optional string foo = 1; + * } + * Let's look at just the field definition: + * optional string foo = 1; + * ^ ^^ ^^ ^ ^^^ + * a bc de f ghi + * We have the following locations: + * span path represents + * [a,i) [ 4, 0, 2, 0 ] The whole field definition. + * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + * + * Notes: + * - A location may refer to a repeated field itself (i.e. not to any + * particular index within it). This is used whenever a set of elements are + * logically enclosed in a single code segment. For example, an entire + * extend block (possibly containing multiple extension definitions) will + * have an outer location whose path refers to the "extensions" repeated + * field without an index. + * - Multiple locations may have the same path. This happens when a single + * logical declaration is spread out across multiple places. The most + * obvious example is the "extend" block again -- there may be multiple + * extend blocks in the same scope, each of which will have the same path. + * - A location's span is not always a subset of its parent's span. For + * example, the "extendee" of an extension declaration appears at the + * beginning of the "extend" block and is shared by all extensions within + * the block. + * - Just because a location's span is a subset of some other location's span + * does not mean that it is a descendant. For example, a "group" defines + * both a type and a field in a single declaration. Thus, the locations + * corresponding to the type and field and their components will overlap. + * - Code which tries to interpret locations should probably be designed to + * ignore those that it doesn't understand, as more types of locations could + * be recorded in the future. + */ + location?: SourceCodeInfo_LocationAmino[]; +} +export interface SourceCodeInfoAminoMsg { + type: "/google.protobuf.SourceCodeInfo"; + value: SourceCodeInfoAmino; +} +/** + * Encapsulates information about the original source file from which a + * FileDescriptorProto was generated. + */ +export interface SourceCodeInfoSDKType { + location: SourceCodeInfo_LocationSDKType[]; +} +export interface SourceCodeInfo_Location { + /** + * Identifies which part of the FileDescriptorProto was defined at this + * location. + * + * Each element is a field number or an index. They form a path from + * the root FileDescriptorProto to the place where the definition. For + * example, this path: + * [ 4, 3, 2, 7, 1 ] + * refers to: + * file.message_type(3) // 4, 3 + * .field(7) // 2, 7 + * .name() // 1 + * This is because FileDescriptorProto.message_type has field number 4: + * repeated DescriptorProto message_type = 4; + * and DescriptorProto.field has field number 2: + * repeated FieldDescriptorProto field = 2; + * and FieldDescriptorProto.name has field number 1: + * optional string name = 1; + * + * Thus, the above path gives the location of a field name. If we removed + * the last element: + * [ 4, 3, 2, 7 ] + * this path refers to the whole field declaration (from the beginning + * of the label to the terminating semicolon). + */ + path: number[]; + /** + * Always has exactly three or four elements: start line, start column, + * end line (optional, otherwise assumed same as start line), end column. + * These are packed into a single field for efficiency. Note that line + * and column numbers are zero-based -- typically you will want to add + * 1 to each before displaying to a user. + */ + span: number[]; + /** + * If this SourceCodeInfo represents a complete declaration, these are any + * comments appearing before and after the declaration which appear to be + * attached to the declaration. + * + * A series of line comments appearing on consecutive lines, with no other + * tokens appearing on those lines, will be treated as a single comment. + * + * leading_detached_comments will keep paragraphs of comments that appear + * before (but not connected to) the current element. Each paragraph, + * separated by empty lines, will be one comment element in the repeated + * field. + * + * Only the comment content is provided; comment markers (e.g. //) are + * stripped out. For block comments, leading whitespace and an asterisk + * will be stripped from the beginning of each line other than the first. + * Newlines are included in the output. + * + * Examples: + * + * optional int32 foo = 1; // Comment attached to foo. + * // Comment attached to bar. + * optional int32 bar = 2; + * + * optional string baz = 3; + * // Comment attached to baz. + * // Another line attached to baz. + * + * // Comment attached to qux. + * // + * // Another line attached to qux. + * optional double qux = 4; + * + * // Detached comment for corge. This is not leading or trailing comments + * // to qux or corge because there are blank lines separating it from + * // both. + * + * // Detached comment for corge paragraph 2. + * + * optional string corge = 5; + * /* Block comment attached + * * to corge. Leading asterisks + * * will be removed. *\/ + * /* Block comment attached to + * * grault. *\/ + * optional int32 grault = 6; + * + * // ignored detached comments. + */ + leadingComments: string; + trailingComments: string; + leadingDetachedComments: string[]; +} +export interface SourceCodeInfo_LocationProtoMsg { + typeUrl: "/google.protobuf.Location"; + value: Uint8Array; +} +export interface SourceCodeInfo_LocationAmino { + /** + * Identifies which part of the FileDescriptorProto was defined at this + * location. + * + * Each element is a field number or an index. They form a path from + * the root FileDescriptorProto to the place where the definition. For + * example, this path: + * [ 4, 3, 2, 7, 1 ] + * refers to: + * file.message_type(3) // 4, 3 + * .field(7) // 2, 7 + * .name() // 1 + * This is because FileDescriptorProto.message_type has field number 4: + * repeated DescriptorProto message_type = 4; + * and DescriptorProto.field has field number 2: + * repeated FieldDescriptorProto field = 2; + * and FieldDescriptorProto.name has field number 1: + * optional string name = 1; + * + * Thus, the above path gives the location of a field name. If we removed + * the last element: + * [ 4, 3, 2, 7 ] + * this path refers to the whole field declaration (from the beginning + * of the label to the terminating semicolon). + */ + path?: number[]; + /** + * Always has exactly three or four elements: start line, start column, + * end line (optional, otherwise assumed same as start line), end column. + * These are packed into a single field for efficiency. Note that line + * and column numbers are zero-based -- typically you will want to add + * 1 to each before displaying to a user. + */ + span?: number[]; + /** + * If this SourceCodeInfo represents a complete declaration, these are any + * comments appearing before and after the declaration which appear to be + * attached to the declaration. + * + * A series of line comments appearing on consecutive lines, with no other + * tokens appearing on those lines, will be treated as a single comment. + * + * leading_detached_comments will keep paragraphs of comments that appear + * before (but not connected to) the current element. Each paragraph, + * separated by empty lines, will be one comment element in the repeated + * field. + * + * Only the comment content is provided; comment markers (e.g. //) are + * stripped out. For block comments, leading whitespace and an asterisk + * will be stripped from the beginning of each line other than the first. + * Newlines are included in the output. + * + * Examples: + * + * optional int32 foo = 1; // Comment attached to foo. + * // Comment attached to bar. + * optional int32 bar = 2; + * + * optional string baz = 3; + * // Comment attached to baz. + * // Another line attached to baz. + * + * // Comment attached to qux. + * // + * // Another line attached to qux. + * optional double qux = 4; + * + * // Detached comment for corge. This is not leading or trailing comments + * // to qux or corge because there are blank lines separating it from + * // both. + * + * // Detached comment for corge paragraph 2. + * + * optional string corge = 5; + * /* Block comment attached + * * to corge. Leading asterisks + * * will be removed. *\/ + * /* Block comment attached to + * * grault. *\/ + * optional int32 grault = 6; + * + * // ignored detached comments. + */ + leading_comments?: string; + trailing_comments?: string; + leading_detached_comments?: string[]; +} +export interface SourceCodeInfo_LocationAminoMsg { + type: "/google.protobuf.Location"; + value: SourceCodeInfo_LocationAmino; +} +export interface SourceCodeInfo_LocationSDKType { + path: number[]; + span: number[]; + leading_comments: string; + trailing_comments: string; + leading_detached_comments: string[]; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfo { + /** + * An Annotation connects some span of text in generated code to an element + * of its generating .proto file. + */ + annotation: GeneratedCodeInfo_Annotation[]; +} +export interface GeneratedCodeInfoProtoMsg { + typeUrl: "/google.protobuf.GeneratedCodeInfo"; + value: Uint8Array; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfoAmino { + /** + * An Annotation connects some span of text in generated code to an element + * of its generating .proto file. + */ + annotation?: GeneratedCodeInfo_AnnotationAmino[]; +} +export interface GeneratedCodeInfoAminoMsg { + type: "/google.protobuf.GeneratedCodeInfo"; + value: GeneratedCodeInfoAmino; +} +/** + * Describes the relationship between generated code and its original source + * file. A GeneratedCodeInfo message is associated with only one generated + * source file, but may contain references to different source .proto files. + */ +export interface GeneratedCodeInfoSDKType { + annotation: GeneratedCodeInfo_AnnotationSDKType[]; +} +export interface GeneratedCodeInfo_Annotation { + /** + * Identifies the element in the original source .proto file. This field + * is formatted the same as SourceCodeInfo.Location.path. + */ + path: number[]; + /** Identifies the filesystem path to the original source .proto. */ + sourceFile: string; + /** + * Identifies the starting offset in bytes in the generated code + * that relates to the identified object. + */ + begin: number; + /** + * Identifies the ending offset in bytes in the generated code that + * relates to the identified offset. The end offset should be one past + * the last relevant byte (so the length of the text = end - begin). + */ + end: number; +} +export interface GeneratedCodeInfo_AnnotationProtoMsg { + typeUrl: "/google.protobuf.Annotation"; + value: Uint8Array; +} +export interface GeneratedCodeInfo_AnnotationAmino { + /** + * Identifies the element in the original source .proto file. This field + * is formatted the same as SourceCodeInfo.Location.path. + */ + path?: number[]; + /** Identifies the filesystem path to the original source .proto. */ + source_file?: string; + /** + * Identifies the starting offset in bytes in the generated code + * that relates to the identified object. + */ + begin?: number; + /** + * Identifies the ending offset in bytes in the generated code that + * relates to the identified offset. The end offset should be one past + * the last relevant byte (so the length of the text = end - begin). + */ + end?: number; +} +export interface GeneratedCodeInfo_AnnotationAminoMsg { + type: "/google.protobuf.Annotation"; + value: GeneratedCodeInfo_AnnotationAmino; +} +export interface GeneratedCodeInfo_AnnotationSDKType { + path: number[]; + source_file: string; + begin: number; + end: number; +} +function createBaseFileDescriptorSet(): FileDescriptorSet { + return { + file: [] + }; +} +export const FileDescriptorSet = { + typeUrl: "/google.protobuf.FileDescriptorSet", + encode(message: FileDescriptorSet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.file) { + FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.file.push(FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FileDescriptorSet { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || []; + return message; + }, + fromAmino(object: FileDescriptorSetAmino): FileDescriptorSet { + const message = createBaseFileDescriptorSet(); + message.file = object.file?.map(e => FileDescriptorProto.fromAmino(e)) || []; + return message; + }, + toAmino(message: FileDescriptorSet): FileDescriptorSetAmino { + const obj: any = {}; + if (message.file) { + obj.file = message.file.map(e => e ? FileDescriptorProto.toAmino(e) : undefined); + } else { + obj.file = message.file; + } + return obj; + }, + fromAminoMsg(object: FileDescriptorSetAminoMsg): FileDescriptorSet { + return FileDescriptorSet.fromAmino(object.value); + }, + fromProtoMsg(message: FileDescriptorSetProtoMsg): FileDescriptorSet { + return FileDescriptorSet.decode(message.value); + }, + toProto(message: FileDescriptorSet): Uint8Array { + return FileDescriptorSet.encode(message).finish(); + }, + toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg { + return { + typeUrl: "/google.protobuf.FileDescriptorSet", + value: FileDescriptorSet.encode(message).finish() + }; + } +}; +function createBaseFileDescriptorProto(): FileDescriptorProto { + return { + name: "", + package: "", + dependency: [], + publicDependency: [], + weakDependency: [], + messageType: [], + enumType: [], + service: [], + extension: [], + options: undefined, + sourceCodeInfo: undefined, + syntax: "" + }; +} +export const FileDescriptorProto = { + typeUrl: "/google.protobuf.FileDescriptorProto", + encode(message: FileDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.package !== "") { + writer.uint32(18).string(message.package); + } + for (const v of message.dependency) { + writer.uint32(26).string(v!); + } + writer.uint32(82).fork(); + for (const v of message.publicDependency) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(90).fork(); + for (const v of message.weakDependency) { + writer.int32(v); + } + writer.ldelim(); + for (const v of message.messageType) { + DescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.enumType) { + EnumDescriptorProto.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.service) { + ServiceDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.extension) { + FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.options !== undefined) { + FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + if (message.sourceCodeInfo !== undefined) { + SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); + } + if (message.syntax !== "") { + writer.uint32(98).string(message.syntax); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.package = reader.string(); + break; + case 3: + message.dependency.push(reader.string()); + break; + case 10: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.publicDependency.push(reader.int32()); + } + } else { + message.publicDependency.push(reader.int32()); + } + break; + case 11: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.weakDependency.push(reader.int32()); + } + } else { + message.weakDependency.push(reader.int32()); + } + break; + case 4: + message.messageType.push(DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FileDescriptorProto { + const message = createBaseFileDescriptorProto(); + message.name = object.name ?? ""; + message.package = object.package ?? ""; + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.publicDependency?.map(e => e) || []; + message.weakDependency = object.weakDependency?.map(e => e) || []; + message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; + message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined; + message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; + message.syntax = object.syntax ?? ""; + return message; + }, + fromAmino(object: FileDescriptorProtoAmino): FileDescriptorProto { + const message = createBaseFileDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.package !== undefined && object.package !== null) { + message.package = object.package; + } + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.public_dependency?.map(e => e) || []; + message.weakDependency = object.weak_dependency?.map(e => e) || []; + message.messageType = object.message_type?.map(e => DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; + message.service = object.service?.map(e => ServiceDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = FileOptions.fromAmino(object.options); + } + if (object.source_code_info !== undefined && object.source_code_info !== null) { + message.sourceCodeInfo = SourceCodeInfo.fromAmino(object.source_code_info); + } + if (object.syntax !== undefined && object.syntax !== null) { + message.syntax = object.syntax; + } + return message; + }, + toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.package = message.package === "" ? undefined : message.package; + if (message.dependency) { + obj.dependency = message.dependency.map(e => e); + } else { + obj.dependency = message.dependency; + } + if (message.publicDependency) { + obj.public_dependency = message.publicDependency.map(e => e); + } else { + obj.public_dependency = message.publicDependency; + } + if (message.weakDependency) { + obj.weak_dependency = message.weakDependency.map(e => e); + } else { + obj.weak_dependency = message.weakDependency; + } + if (message.messageType) { + obj.message_type = message.messageType.map(e => e ? DescriptorProto.toAmino(e) : undefined); + } else { + obj.message_type = message.messageType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); + } else { + obj.enum_type = message.enumType; + } + if (message.service) { + obj.service = message.service.map(e => e ? ServiceDescriptorProto.toAmino(e) : undefined); + } else { + obj.service = message.service; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } else { + obj.extension = message.extension; + } + obj.options = message.options ? FileOptions.toAmino(message.options) : undefined; + obj.source_code_info = message.sourceCodeInfo ? SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; + obj.syntax = message.syntax === "" ? undefined : message.syntax; + return obj; + }, + fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto { + return FileDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: FileDescriptorProtoProtoMsg): FileDescriptorProto { + return FileDescriptorProto.decode(message.value); + }, + toProto(message: FileDescriptorProto): Uint8Array { + return FileDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.FileDescriptorProto", + value: FileDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto(): DescriptorProto { + return { + name: "", + field: [], + extension: [], + nestedType: [], + enumType: [], + extensionRange: [], + oneofDecl: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +export const DescriptorProto = { + typeUrl: "/google.protobuf.DescriptorProto", + encode(message: DescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.field) { + FieldDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.extension) { + FieldDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim(); + } + for (const v of message.nestedType) { + DescriptorProto.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.enumType) { + EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.extensionRange) { + DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.oneofDecl) { + OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim(); + } + if (message.options !== undefined) { + MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); + } + for (const v of message.reservedRange) { + DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(82).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.field.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.nestedType.push(DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DescriptorProto { + const message = createBaseDescriptorProto(); + message.name = object.name ?? ""; + message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; + message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || []; + message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object: DescriptorProtoAmino): DescriptorProto { + const message = createBaseDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.field = object.field?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; + message.nestedType = object.nested_type?.map(e => DescriptorProto.fromAmino(e)) || []; + message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; + message.extensionRange = object.extension_range?.map(e => DescriptorProto_ExtensionRange.fromAmino(e)) || []; + message.oneofDecl = object.oneof_decl?.map(e => OneofDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = MessageOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => DescriptorProto_ReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message: DescriptorProto): DescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.field) { + obj.field = message.field.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } else { + obj.field = message.field; + } + if (message.extension) { + obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); + } else { + obj.extension = message.extension; + } + if (message.nestedType) { + obj.nested_type = message.nestedType.map(e => e ? DescriptorProto.toAmino(e) : undefined); + } else { + obj.nested_type = message.nestedType; + } + if (message.enumType) { + obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); + } else { + obj.enum_type = message.enumType; + } + if (message.extensionRange) { + obj.extension_range = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toAmino(e) : undefined); + } else { + obj.extension_range = message.extensionRange; + } + if (message.oneofDecl) { + obj.oneof_decl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toAmino(e) : undefined); + } else { + obj.oneof_decl = message.oneofDecl; + } + obj.options = message.options ? MessageOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toAmino(e) : undefined); + } else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object: DescriptorProtoAminoMsg): DescriptorProto { + return DescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: DescriptorProtoProtoMsg): DescriptorProto { + return DescriptorProto.decode(message.value); + }, + toProto(message: DescriptorProto): Uint8Array { + return DescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.DescriptorProto", + value: DescriptorProto.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange { + return { + start: 0, + end: 0, + options: undefined + }; +} +export const DescriptorProto_ExtensionRange = { + typeUrl: "/google.protobuf.ExtensionRange", + encode(message: DescriptorProto_ExtensionRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + if (message.options !== undefined) { + ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ExtensionRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DescriptorProto_ExtensionRange { + const message = createBaseDescriptorProto_ExtensionRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object: DescriptorProto_ExtensionRangeAmino): DescriptorProto_ExtensionRange { + const message = createBaseDescriptorProto_ExtensionRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + if (object.options !== undefined && object.options !== null) { + message.options = ExtensionRangeOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino { + const obj: any = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + obj.options = message.options ? ExtensionRangeOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object: DescriptorProto_ExtensionRangeAminoMsg): DescriptorProto_ExtensionRange { + return DescriptorProto_ExtensionRange.fromAmino(object.value); + }, + fromProtoMsg(message: DescriptorProto_ExtensionRangeProtoMsg): DescriptorProto_ExtensionRange { + return DescriptorProto_ExtensionRange.decode(message.value); + }, + toProto(message: DescriptorProto_ExtensionRange): Uint8Array { + return DescriptorProto_ExtensionRange.encode(message).finish(); + }, + toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg { + return { + typeUrl: "/google.protobuf.ExtensionRange", + value: DescriptorProto_ExtensionRange.encode(message).finish() + }; + } +}; +function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange { + return { + start: 0, + end: 0 + }; +} +export const DescriptorProto_ReservedRange = { + typeUrl: "/google.protobuf.ReservedRange", + encode(message: DescriptorProto_ReservedRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDescriptorProto_ReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DescriptorProto_ReservedRange { + const message = createBaseDescriptorProto_ReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object: DescriptorProto_ReservedRangeAmino): DescriptorProto_ReservedRange { + const message = createBaseDescriptorProto_ReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino { + const obj: any = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange { + return DescriptorProto_ReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message: DescriptorProto_ReservedRangeProtoMsg): DescriptorProto_ReservedRange { + return DescriptorProto_ReservedRange.decode(message.value); + }, + toProto(message: DescriptorProto_ReservedRange): Uint8Array { + return DescriptorProto_ReservedRange.encode(message).finish(); + }, + toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg { + return { + typeUrl: "/google.protobuf.ReservedRange", + value: DescriptorProto_ReservedRange.encode(message).finish() + }; + } +}; +function createBaseExtensionRangeOptions(): ExtensionRangeOptions { + return { + uninterpretedOption: [] + }; +} +export const ExtensionRangeOptions = { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + encode(message: ExtensionRangeOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtensionRangeOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ExtensionRangeOptions { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ExtensionRangeOptionsAmino): ExtensionRangeOptions { + const message = createBaseExtensionRangeOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: ExtensionRangeOptions): ExtensionRangeOptionsAmino { + const obj: any = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: ExtensionRangeOptionsAminoMsg): ExtensionRangeOptions { + return ExtensionRangeOptions.fromAmino(object.value); + }, + fromProtoMsg(message: ExtensionRangeOptionsProtoMsg): ExtensionRangeOptions { + return ExtensionRangeOptions.decode(message.value); + }, + toProto(message: ExtensionRangeOptions): Uint8Array { + return ExtensionRangeOptions.encode(message).finish(); + }, + toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.ExtensionRangeOptions", + value: ExtensionRangeOptions.encode(message).finish() + }; + } +}; +function createBaseFieldDescriptorProto(): FieldDescriptorProto { + return { + name: "", + number: 0, + label: 1, + type: 1, + typeName: "", + extendee: "", + defaultValue: "", + oneofIndex: 0, + jsonName: "", + options: undefined + }; +} +export const FieldDescriptorProto = { + typeUrl: "/google.protobuf.FieldDescriptorProto", + encode(message: FieldDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(24).int32(message.number); + } + if (message.label !== 1) { + writer.uint32(32).int32(message.label); + } + if (message.type !== 1) { + writer.uint32(40).int32(message.type); + } + if (message.typeName !== "") { + writer.uint32(50).string(message.typeName); + } + if (message.extendee !== "") { + writer.uint32(18).string(message.extendee); + } + if (message.defaultValue !== "") { + writer.uint32(58).string(message.defaultValue); + } + if (message.oneofIndex !== 0) { + writer.uint32(72).int32(message.oneofIndex); + } + if (message.jsonName !== "") { + writer.uint32(82).string(message.jsonName); + } + if (message.options !== undefined) { + FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = (reader.int32() as any); + break; + case 5: + message.type = (reader.int32() as any); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FieldDescriptorProto { + const message = createBaseFieldDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.label = object.label ?? 1; + message.type = object.type ?? 1; + message.typeName = object.typeName ?? ""; + message.extendee = object.extendee ?? ""; + message.defaultValue = object.defaultValue ?? ""; + message.oneofIndex = object.oneofIndex ?? 0; + message.jsonName = object.jsonName ?? ""; + message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object: FieldDescriptorProtoAmino): FieldDescriptorProto { + const message = createBaseFieldDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.label !== undefined && object.label !== null) { + message.label = object.label; + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.type_name !== undefined && object.type_name !== null) { + message.typeName = object.type_name; + } + if (object.extendee !== undefined && object.extendee !== null) { + message.extendee = object.extendee; + } + if (object.default_value !== undefined && object.default_value !== null) { + message.defaultValue = object.default_value; + } + if (object.oneof_index !== undefined && object.oneof_index !== null) { + message.oneofIndex = object.oneof_index; + } + if (object.json_name !== undefined && object.json_name !== null) { + message.jsonName = object.json_name; + } + if (object.options !== undefined && object.options !== null) { + message.options = FieldOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.label = message.label === 1 ? undefined : message.label; + obj.type = message.type === 1 ? undefined : message.type; + obj.type_name = message.typeName === "" ? undefined : message.typeName; + obj.extendee = message.extendee === "" ? undefined : message.extendee; + obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; + obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; + obj.json_name = message.jsonName === "" ? undefined : message.jsonName; + obj.options = message.options ? FieldOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object: FieldDescriptorProtoAminoMsg): FieldDescriptorProto { + return FieldDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: FieldDescriptorProtoProtoMsg): FieldDescriptorProto { + return FieldDescriptorProto.decode(message.value); + }, + toProto(message: FieldDescriptorProto): Uint8Array { + return FieldDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.FieldDescriptorProto", + value: FieldDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseOneofDescriptorProto(): OneofDescriptorProto { + return { + name: "", + options: undefined + }; +} +export const OneofDescriptorProto = { + typeUrl: "/google.protobuf.OneofDescriptorProto", + encode(message: OneofDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.options !== undefined) { + OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): OneofDescriptorProto { + const message = createBaseOneofDescriptorProto(); + message.name = object.name ?? ""; + message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object: OneofDescriptorProtoAmino): OneofDescriptorProto { + const message = createBaseOneofDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.options !== undefined && object.options !== null) { + message.options = OneofOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.options = message.options ? OneofOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object: OneofDescriptorProtoAminoMsg): OneofDescriptorProto { + return OneofDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: OneofDescriptorProtoProtoMsg): OneofDescriptorProto { + return OneofDescriptorProto.decode(message.value); + }, + toProto(message: OneofDescriptorProto): Uint8Array { + return OneofDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.OneofDescriptorProto", + value: OneofDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto(): EnumDescriptorProto { + return { + name: "", + value: [], + options: undefined, + reservedRange: [], + reservedName: [] + }; +} +export const EnumDescriptorProto = { + typeUrl: "/google.protobuf.EnumDescriptorProto", + encode(message: EnumDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.value) { + EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.reservedRange) { + EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.reservedName) { + writer.uint32(42).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = EnumOptions.decode(reader, reader.uint32()); + break; + case 4: + message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); + break; + case 5: + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EnumDescriptorProto { + const message = createBaseEnumDescriptorProto(); + message.name = object.name ?? ""; + message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined; + message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; + return message; + }, + fromAmino(object: EnumDescriptorProtoAmino): EnumDescriptorProto { + const message = createBaseEnumDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.value = object.value?.map(e => EnumValueDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = EnumOptions.fromAmino(object.options); + } + message.reservedRange = object.reserved_range?.map(e => EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; + message.reservedName = object.reserved_name?.map(e => e) || []; + return message; + }, + toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.value) { + obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toAmino(e) : undefined); + } else { + obj.value = message.value; + } + obj.options = message.options ? EnumOptions.toAmino(message.options) : undefined; + if (message.reservedRange) { + obj.reserved_range = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); + } else { + obj.reserved_range = message.reservedRange; + } + if (message.reservedName) { + obj.reserved_name = message.reservedName.map(e => e); + } else { + obj.reserved_name = message.reservedName; + } + return obj; + }, + fromAminoMsg(object: EnumDescriptorProtoAminoMsg): EnumDescriptorProto { + return EnumDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: EnumDescriptorProtoProtoMsg): EnumDescriptorProto { + return EnumDescriptorProto.decode(message.value); + }, + toProto(message: EnumDescriptorProto): Uint8Array { + return EnumDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.EnumDescriptorProto", + value: EnumDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange { + return { + start: 0, + end: 0 + }; +} +export const EnumDescriptorProto_EnumReservedRange = { + typeUrl: "/google.protobuf.EnumReservedRange", + encode(message: EnumDescriptorProto_EnumReservedRange, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.start !== 0) { + writer.uint32(8).int32(message.start); + } + if (message.end !== 0) { + writer.uint32(16).int32(message.end); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + message.start = object.start ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object: EnumDescriptorProto_EnumReservedRangeAmino): EnumDescriptorProto_EnumReservedRange { + const message = createBaseEnumDescriptorProto_EnumReservedRange(); + if (object.start !== undefined && object.start !== null) { + message.start = object.start; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino { + const obj: any = {}; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange { + return EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); + }, + fromProtoMsg(message: EnumDescriptorProto_EnumReservedRangeProtoMsg): EnumDescriptorProto_EnumReservedRange { + return EnumDescriptorProto_EnumReservedRange.decode(message.value); + }, + toProto(message: EnumDescriptorProto_EnumReservedRange): Uint8Array { + return EnumDescriptorProto_EnumReservedRange.encode(message).finish(); + }, + toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg { + return { + typeUrl: "/google.protobuf.EnumReservedRange", + value: EnumDescriptorProto_EnumReservedRange.encode(message).finish() + }; + } +}; +function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto { + return { + name: "", + number: 0, + options: undefined + }; +} +export const EnumValueDescriptorProto = { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + encode(message: EnumValueDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.number !== 0) { + writer.uint32(16).int32(message.number); + } + if (message.options !== undefined) { + EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EnumValueDescriptorProto { + const message = createBaseEnumValueDescriptorProto(); + message.name = object.name ?? ""; + message.number = object.number ?? 0; + message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object: EnumValueDescriptorProtoAmino): EnumValueDescriptorProto { + const message = createBaseEnumValueDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.number !== undefined && object.number !== null) { + message.number = object.number; + } + if (object.options !== undefined && object.options !== null) { + message.options = EnumValueOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.options = message.options ? EnumValueOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object: EnumValueDescriptorProtoAminoMsg): EnumValueDescriptorProto { + return EnumValueDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: EnumValueDescriptorProtoProtoMsg): EnumValueDescriptorProto { + return EnumValueDescriptorProto.decode(message.value); + }, + toProto(message: EnumValueDescriptorProto): Uint8Array { + return EnumValueDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.EnumValueDescriptorProto", + value: EnumValueDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseServiceDescriptorProto(): ServiceDescriptorProto { + return { + name: "", + method: [], + options: undefined + }; +} +export const ServiceDescriptorProto = { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + encode(message: ServiceDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + for (const v of message.method) { + MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.options !== undefined) { + ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.method.push(MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ServiceDescriptorProto { + const message = createBaseServiceDescriptorProto(); + message.name = object.name ?? ""; + message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || []; + message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined; + return message; + }, + fromAmino(object: ServiceDescriptorProtoAmino): ServiceDescriptorProto { + const message = createBaseServiceDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + message.method = object.method?.map(e => MethodDescriptorProto.fromAmino(e)) || []; + if (object.options !== undefined && object.options !== null) { + message.options = ServiceOptions.fromAmino(object.options); + } + return message; + }, + toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + if (message.method) { + obj.method = message.method.map(e => e ? MethodDescriptorProto.toAmino(e) : undefined); + } else { + obj.method = message.method; + } + obj.options = message.options ? ServiceOptions.toAmino(message.options) : undefined; + return obj; + }, + fromAminoMsg(object: ServiceDescriptorProtoAminoMsg): ServiceDescriptorProto { + return ServiceDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: ServiceDescriptorProtoProtoMsg): ServiceDescriptorProto { + return ServiceDescriptorProto.decode(message.value); + }, + toProto(message: ServiceDescriptorProto): Uint8Array { + return ServiceDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.ServiceDescriptorProto", + value: ServiceDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseMethodDescriptorProto(): MethodDescriptorProto { + return { + name: "", + inputType: "", + outputType: "", + options: undefined, + clientStreaming: false, + serverStreaming: false + }; +} +export const MethodDescriptorProto = { + typeUrl: "/google.protobuf.MethodDescriptorProto", + encode(message: MethodDescriptorProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.inputType !== "") { + writer.uint32(18).string(message.inputType); + } + if (message.outputType !== "") { + writer.uint32(26).string(message.outputType); + } + if (message.options !== undefined) { + MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); + } + if (message.clientStreaming === true) { + writer.uint32(40).bool(message.clientStreaming); + } + if (message.serverStreaming === true) { + writer.uint32(48).bool(message.serverStreaming); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodDescriptorProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MethodDescriptorProto { + const message = createBaseMethodDescriptorProto(); + message.name = object.name ?? ""; + message.inputType = object.inputType ?? ""; + message.outputType = object.outputType ?? ""; + message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined; + message.clientStreaming = object.clientStreaming ?? false; + message.serverStreaming = object.serverStreaming ?? false; + return message; + }, + fromAmino(object: MethodDescriptorProtoAmino): MethodDescriptorProto { + const message = createBaseMethodDescriptorProto(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.input_type !== undefined && object.input_type !== null) { + message.inputType = object.input_type; + } + if (object.output_type !== undefined && object.output_type !== null) { + message.outputType = object.output_type; + } + if (object.options !== undefined && object.options !== null) { + message.options = MethodOptions.fromAmino(object.options); + } + if (object.client_streaming !== undefined && object.client_streaming !== null) { + message.clientStreaming = object.client_streaming; + } + if (object.server_streaming !== undefined && object.server_streaming !== null) { + message.serverStreaming = object.server_streaming; + } + return message; + }, + toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.input_type = message.inputType === "" ? undefined : message.inputType; + obj.output_type = message.outputType === "" ? undefined : message.outputType; + obj.options = message.options ? MethodOptions.toAmino(message.options) : undefined; + obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; + obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; + return obj; + }, + fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto { + return MethodDescriptorProto.fromAmino(object.value); + }, + fromProtoMsg(message: MethodDescriptorProtoProtoMsg): MethodDescriptorProto { + return MethodDescriptorProto.decode(message.value); + }, + toProto(message: MethodDescriptorProto): Uint8Array { + return MethodDescriptorProto.encode(message).finish(); + }, + toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg { + return { + typeUrl: "/google.protobuf.MethodDescriptorProto", + value: MethodDescriptorProto.encode(message).finish() + }; + } +}; +function createBaseFileOptions(): FileOptions { + return { + javaPackage: "", + javaOuterClassname: "", + javaMultipleFiles: false, + javaGenerateEqualsAndHash: false, + javaStringCheckUtf8: false, + optimizeFor: 1, + goPackage: "", + ccGenericServices: false, + javaGenericServices: false, + pyGenericServices: false, + phpGenericServices: false, + deprecated: false, + ccEnableArenas: false, + objcClassPrefix: "", + csharpNamespace: "", + swiftPrefix: "", + phpClassPrefix: "", + phpNamespace: "", + phpMetadataNamespace: "", + rubyPackage: "", + uninterpretedOption: [] + }; +} +export const FileOptions = { + typeUrl: "/google.protobuf.FileOptions", + encode(message: FileOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.javaPackage !== "") { + writer.uint32(10).string(message.javaPackage); + } + if (message.javaOuterClassname !== "") { + writer.uint32(66).string(message.javaOuterClassname); + } + if (message.javaMultipleFiles === true) { + writer.uint32(80).bool(message.javaMultipleFiles); + } + if (message.javaGenerateEqualsAndHash === true) { + writer.uint32(160).bool(message.javaGenerateEqualsAndHash); + } + if (message.javaStringCheckUtf8 === true) { + writer.uint32(216).bool(message.javaStringCheckUtf8); + } + if (message.optimizeFor !== 1) { + writer.uint32(72).int32(message.optimizeFor); + } + if (message.goPackage !== "") { + writer.uint32(90).string(message.goPackage); + } + if (message.ccGenericServices === true) { + writer.uint32(128).bool(message.ccGenericServices); + } + if (message.javaGenericServices === true) { + writer.uint32(136).bool(message.javaGenericServices); + } + if (message.pyGenericServices === true) { + writer.uint32(144).bool(message.pyGenericServices); + } + if (message.phpGenericServices === true) { + writer.uint32(336).bool(message.phpGenericServices); + } + if (message.deprecated === true) { + writer.uint32(184).bool(message.deprecated); + } + if (message.ccEnableArenas === true) { + writer.uint32(248).bool(message.ccEnableArenas); + } + if (message.objcClassPrefix !== "") { + writer.uint32(290).string(message.objcClassPrefix); + } + if (message.csharpNamespace !== "") { + writer.uint32(298).string(message.csharpNamespace); + } + if (message.swiftPrefix !== "") { + writer.uint32(314).string(message.swiftPrefix); + } + if (message.phpClassPrefix !== "") { + writer.uint32(322).string(message.phpClassPrefix); + } + if (message.phpNamespace !== "") { + writer.uint32(330).string(message.phpNamespace); + } + if (message.phpMetadataNamespace !== "") { + writer.uint32(354).string(message.phpMetadataNamespace); + } + if (message.rubyPackage !== "") { + writer.uint32(362).string(message.rubyPackage); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FileOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = (reader.int32() as any); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FileOptions { + const message = createBaseFileOptions(); + message.javaPackage = object.javaPackage ?? ""; + message.javaOuterClassname = object.javaOuterClassname ?? ""; + message.javaMultipleFiles = object.javaMultipleFiles ?? false; + message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; + message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; + message.optimizeFor = object.optimizeFor ?? 1; + message.goPackage = object.goPackage ?? ""; + message.ccGenericServices = object.ccGenericServices ?? false; + message.javaGenericServices = object.javaGenericServices ?? false; + message.pyGenericServices = object.pyGenericServices ?? false; + message.phpGenericServices = object.phpGenericServices ?? false; + message.deprecated = object.deprecated ?? false; + message.ccEnableArenas = object.ccEnableArenas ?? false; + message.objcClassPrefix = object.objcClassPrefix ?? ""; + message.csharpNamespace = object.csharpNamespace ?? ""; + message.swiftPrefix = object.swiftPrefix ?? ""; + message.phpClassPrefix = object.phpClassPrefix ?? ""; + message.phpNamespace = object.phpNamespace ?? ""; + message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; + message.rubyPackage = object.rubyPackage ?? ""; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: FileOptionsAmino): FileOptions { + const message = createBaseFileOptions(); + if (object.java_package !== undefined && object.java_package !== null) { + message.javaPackage = object.java_package; + } + if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { + message.javaOuterClassname = object.java_outer_classname; + } + if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { + message.javaMultipleFiles = object.java_multiple_files; + } + if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { + message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; + } + if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { + message.javaStringCheckUtf8 = object.java_string_check_utf8; + } + if (object.optimize_for !== undefined && object.optimize_for !== null) { + message.optimizeFor = object.optimize_for; + } + if (object.go_package !== undefined && object.go_package !== null) { + message.goPackage = object.go_package; + } + if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { + message.ccGenericServices = object.cc_generic_services; + } + if (object.java_generic_services !== undefined && object.java_generic_services !== null) { + message.javaGenericServices = object.java_generic_services; + } + if (object.py_generic_services !== undefined && object.py_generic_services !== null) { + message.pyGenericServices = object.py_generic_services; + } + if (object.php_generic_services !== undefined && object.php_generic_services !== null) { + message.phpGenericServices = object.php_generic_services; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { + message.ccEnableArenas = object.cc_enable_arenas; + } + if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { + message.objcClassPrefix = object.objc_class_prefix; + } + if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { + message.csharpNamespace = object.csharp_namespace; + } + if (object.swift_prefix !== undefined && object.swift_prefix !== null) { + message.swiftPrefix = object.swift_prefix; + } + if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { + message.phpClassPrefix = object.php_class_prefix; + } + if (object.php_namespace !== undefined && object.php_namespace !== null) { + message.phpNamespace = object.php_namespace; + } + if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { + message.phpMetadataNamespace = object.php_metadata_namespace; + } + if (object.ruby_package !== undefined && object.ruby_package !== null) { + message.rubyPackage = object.ruby_package; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: FileOptions): FileOptionsAmino { + const obj: any = {}; + obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; + obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; + obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; + obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; + obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; + obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; + obj.go_package = message.goPackage === "" ? undefined : message.goPackage; + obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; + obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; + obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; + obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; + obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; + obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; + obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; + obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; + obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; + obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; + obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: FileOptionsAminoMsg): FileOptions { + return FileOptions.fromAmino(object.value); + }, + fromProtoMsg(message: FileOptionsProtoMsg): FileOptions { + return FileOptions.decode(message.value); + }, + toProto(message: FileOptions): Uint8Array { + return FileOptions.encode(message).finish(); + }, + toProtoMsg(message: FileOptions): FileOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.FileOptions", + value: FileOptions.encode(message).finish() + }; + } +}; +function createBaseMessageOptions(): MessageOptions { + return { + messageSetWireFormat: false, + noStandardDescriptorAccessor: false, + deprecated: false, + mapEntry: false, + uninterpretedOption: [] + }; +} +export const MessageOptions = { + typeUrl: "/google.protobuf.MessageOptions", + encode(message: MessageOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.messageSetWireFormat === true) { + writer.uint32(8).bool(message.messageSetWireFormat); + } + if (message.noStandardDescriptorAccessor === true) { + writer.uint32(16).bool(message.noStandardDescriptorAccessor); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.mapEntry === true) { + writer.uint32(56).bool(message.mapEntry); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMessageOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MessageOptions { + const message = createBaseMessageOptions(); + message.messageSetWireFormat = object.messageSetWireFormat ?? false; + message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; + message.deprecated = object.deprecated ?? false; + message.mapEntry = object.mapEntry ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MessageOptionsAmino): MessageOptions { + const message = createBaseMessageOptions(); + if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { + message.messageSetWireFormat = object.message_set_wire_format; + } + if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { + message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.map_entry !== undefined && object.map_entry !== null) { + message.mapEntry = object.map_entry; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: MessageOptions): MessageOptionsAmino { + const obj: any = {}; + obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; + obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: MessageOptionsAminoMsg): MessageOptions { + return MessageOptions.fromAmino(object.value); + }, + fromProtoMsg(message: MessageOptionsProtoMsg): MessageOptions { + return MessageOptions.decode(message.value); + }, + toProto(message: MessageOptions): Uint8Array { + return MessageOptions.encode(message).finish(); + }, + toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.MessageOptions", + value: MessageOptions.encode(message).finish() + }; + } +}; +function createBaseFieldOptions(): FieldOptions { + return { + ctype: 1, + packed: false, + jstype: 1, + lazy: false, + deprecated: false, + weak: false, + uninterpretedOption: [] + }; +} +export const FieldOptions = { + typeUrl: "/google.protobuf.FieldOptions", + encode(message: FieldOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.ctype !== 1) { + writer.uint32(8).int32(message.ctype); + } + if (message.packed === true) { + writer.uint32(16).bool(message.packed); + } + if (message.jstype !== 1) { + writer.uint32(48).int32(message.jstype); + } + if (message.lazy === true) { + writer.uint32(40).bool(message.lazy); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + if (message.weak === true) { + writer.uint32(80).bool(message.weak); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFieldOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = (reader.int32() as any); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = (reader.int32() as any); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): FieldOptions { + const message = createBaseFieldOptions(); + message.ctype = object.ctype ?? 1; + message.packed = object.packed ?? false; + message.jstype = object.jstype ?? 1; + message.lazy = object.lazy ?? false; + message.deprecated = object.deprecated ?? false; + message.weak = object.weak ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: FieldOptionsAmino): FieldOptions { + const message = createBaseFieldOptions(); + if (object.ctype !== undefined && object.ctype !== null) { + message.ctype = object.ctype; + } + if (object.packed !== undefined && object.packed !== null) { + message.packed = object.packed; + } + if (object.jstype !== undefined && object.jstype !== null) { + message.jstype = object.jstype; + } + if (object.lazy !== undefined && object.lazy !== null) { + message.lazy = object.lazy; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.weak !== undefined && object.weak !== null) { + message.weak = object.weak; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: FieldOptions): FieldOptionsAmino { + const obj: any = {}; + obj.ctype = message.ctype === 1 ? undefined : message.ctype; + obj.packed = message.packed === false ? undefined : message.packed; + obj.jstype = message.jstype === 1 ? undefined : message.jstype; + obj.lazy = message.lazy === false ? undefined : message.lazy; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.weak = message.weak === false ? undefined : message.weak; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: FieldOptionsAminoMsg): FieldOptions { + return FieldOptions.fromAmino(object.value); + }, + fromProtoMsg(message: FieldOptionsProtoMsg): FieldOptions { + return FieldOptions.decode(message.value); + }, + toProto(message: FieldOptions): Uint8Array { + return FieldOptions.encode(message).finish(); + }, + toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.FieldOptions", + value: FieldOptions.encode(message).finish() + }; + } +}; +function createBaseOneofOptions(): OneofOptions { + return { + uninterpretedOption: [] + }; +} +export const OneofOptions = { + typeUrl: "/google.protobuf.OneofOptions", + encode(message: OneofOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOneofOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): OneofOptions { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: OneofOptionsAmino): OneofOptions { + const message = createBaseOneofOptions(); + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: OneofOptions): OneofOptionsAmino { + const obj: any = {}; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: OneofOptionsAminoMsg): OneofOptions { + return OneofOptions.fromAmino(object.value); + }, + fromProtoMsg(message: OneofOptionsProtoMsg): OneofOptions { + return OneofOptions.decode(message.value); + }, + toProto(message: OneofOptions): Uint8Array { + return OneofOptions.encode(message).finish(); + }, + toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.OneofOptions", + value: OneofOptions.encode(message).finish() + }; + } +}; +function createBaseEnumOptions(): EnumOptions { + return { + allowAlias: false, + deprecated: false, + uninterpretedOption: [] + }; +} +export const EnumOptions = { + typeUrl: "/google.protobuf.EnumOptions", + encode(message: EnumOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.allowAlias === true) { + writer.uint32(16).bool(message.allowAlias); + } + if (message.deprecated === true) { + writer.uint32(24).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EnumOptions { + const message = createBaseEnumOptions(); + message.allowAlias = object.allowAlias ?? false; + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: EnumOptionsAmino): EnumOptions { + const message = createBaseEnumOptions(); + if (object.allow_alias !== undefined && object.allow_alias !== null) { + message.allowAlias = object.allow_alias; + } + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: EnumOptions): EnumOptionsAmino { + const obj: any = {}; + obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: EnumOptionsAminoMsg): EnumOptions { + return EnumOptions.fromAmino(object.value); + }, + fromProtoMsg(message: EnumOptionsProtoMsg): EnumOptions { + return EnumOptions.decode(message.value); + }, + toProto(message: EnumOptions): Uint8Array { + return EnumOptions.encode(message).finish(); + }, + toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.EnumOptions", + value: EnumOptions.encode(message).finish() + }; + } +}; +function createBaseEnumValueOptions(): EnumValueOptions { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +export const EnumValueOptions = { + typeUrl: "/google.protobuf.EnumValueOptions", + encode(message: EnumValueOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.deprecated === true) { + writer.uint32(8).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnumValueOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EnumValueOptions { + const message = createBaseEnumValueOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: EnumValueOptionsAmino): EnumValueOptions { + const message = createBaseEnumValueOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: EnumValueOptions): EnumValueOptionsAmino { + const obj: any = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: EnumValueOptionsAminoMsg): EnumValueOptions { + return EnumValueOptions.fromAmino(object.value); + }, + fromProtoMsg(message: EnumValueOptionsProtoMsg): EnumValueOptions { + return EnumValueOptions.decode(message.value); + }, + toProto(message: EnumValueOptions): Uint8Array { + return EnumValueOptions.encode(message).finish(); + }, + toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.EnumValueOptions", + value: EnumValueOptions.encode(message).finish() + }; + } +}; +function createBaseServiceOptions(): ServiceOptions { + return { + deprecated: false, + uninterpretedOption: [] + }; +} +export const ServiceOptions = { + typeUrl: "/google.protobuf.ServiceOptions", + encode(message: ServiceOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ServiceOptions { + const message = createBaseServiceOptions(); + message.deprecated = object.deprecated ?? false; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ServiceOptionsAmino): ServiceOptions { + const message = createBaseServiceOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: ServiceOptions): ServiceOptionsAmino { + const obj: any = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: ServiceOptionsAminoMsg): ServiceOptions { + return ServiceOptions.fromAmino(object.value); + }, + fromProtoMsg(message: ServiceOptionsProtoMsg): ServiceOptions { + return ServiceOptions.decode(message.value); + }, + toProto(message: ServiceOptions): Uint8Array { + return ServiceOptions.encode(message).finish(); + }, + toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.ServiceOptions", + value: ServiceOptions.encode(message).finish() + }; + } +}; +function createBaseMethodOptions(): MethodOptions { + return { + deprecated: false, + idempotencyLevel: 1, + uninterpretedOption: [] + }; +} +export const MethodOptions = { + typeUrl: "/google.protobuf.MethodOptions", + encode(message: MethodOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.deprecated === true) { + writer.uint32(264).bool(message.deprecated); + } + if (message.idempotencyLevel !== 1) { + writer.uint32(272).int32(message.idempotencyLevel); + } + for (const v of message.uninterpretedOption) { + UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMethodOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 34: + message.idempotencyLevel = (reader.int32() as any); + break; + case 999: + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MethodOptions { + const message = createBaseMethodOptions(); + message.deprecated = object.deprecated ?? false; + message.idempotencyLevel = object.idempotencyLevel ?? 1; + message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MethodOptionsAmino): MethodOptions { + const message = createBaseMethodOptions(); + if (object.deprecated !== undefined && object.deprecated !== null) { + message.deprecated = object.deprecated; + } + if (object.idempotency_level !== undefined && object.idempotency_level !== null) { + message.idempotencyLevel = object.idempotency_level; + } + message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; + return message; + }, + toAmino(message: MethodOptions): MethodOptionsAmino { + const obj: any = {}; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; + if (message.uninterpretedOption) { + obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); + } else { + obj.uninterpreted_option = message.uninterpretedOption; + } + return obj; + }, + fromAminoMsg(object: MethodOptionsAminoMsg): MethodOptions { + return MethodOptions.fromAmino(object.value); + }, + fromProtoMsg(message: MethodOptionsProtoMsg): MethodOptions { + return MethodOptions.decode(message.value); + }, + toProto(message: MethodOptions): Uint8Array { + return MethodOptions.encode(message).finish(); + }, + toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg { + return { + typeUrl: "/google.protobuf.MethodOptions", + value: MethodOptions.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption(): UninterpretedOption { + return { + name: [], + identifierValue: "", + positiveIntValue: BigInt(0), + negativeIntValue: BigInt(0), + doubleValue: 0, + stringValue: new Uint8Array(), + aggregateValue: "" + }; +} +export const UninterpretedOption = { + typeUrl: "/google.protobuf.UninterpretedOption", + encode(message: UninterpretedOption, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.name) { + UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.identifierValue !== "") { + writer.uint32(26).string(message.identifierValue); + } + if (message.positiveIntValue !== BigInt(0)) { + writer.uint32(32).uint64(message.positiveIntValue); + } + if (message.negativeIntValue !== BigInt(0)) { + writer.uint32(40).int64(message.negativeIntValue); + } + if (message.doubleValue !== 0) { + writer.uint32(49).double(message.doubleValue); + } + if (message.stringValue.length !== 0) { + writer.uint32(58).bytes(message.stringValue); + } + if (message.aggregateValue !== "") { + writer.uint32(66).string(message.aggregateValue); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): UninterpretedOption { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || []; + message.identifierValue = object.identifierValue ?? ""; + message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); + message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); + message.doubleValue = object.doubleValue ?? 0; + message.stringValue = object.stringValue ?? new Uint8Array(); + message.aggregateValue = object.aggregateValue ?? ""; + return message; + }, + fromAmino(object: UninterpretedOptionAmino): UninterpretedOption { + const message = createBaseUninterpretedOption(); + message.name = object.name?.map(e => UninterpretedOption_NamePart.fromAmino(e)) || []; + if (object.identifier_value !== undefined && object.identifier_value !== null) { + message.identifierValue = object.identifier_value; + } + if (object.positive_int_value !== undefined && object.positive_int_value !== null) { + message.positiveIntValue = BigInt(object.positive_int_value); + } + if (object.negative_int_value !== undefined && object.negative_int_value !== null) { + message.negativeIntValue = BigInt(object.negative_int_value); + } + if (object.double_value !== undefined && object.double_value !== null) { + message.doubleValue = object.double_value; + } + if (object.string_value !== undefined && object.string_value !== null) { + message.stringValue = bytesFromBase64(object.string_value); + } + if (object.aggregate_value !== undefined && object.aggregate_value !== null) { + message.aggregateValue = object.aggregate_value; + } + return message; + }, + toAmino(message: UninterpretedOption): UninterpretedOptionAmino { + const obj: any = {}; + if (message.name) { + obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toAmino(e) : undefined); + } else { + obj.name = message.name; + } + obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; + obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; + obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; + obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; + obj.string_value = message.stringValue ? base64FromBytes(message.stringValue) : undefined; + obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; + return obj; + }, + fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption { + return UninterpretedOption.fromAmino(object.value); + }, + fromProtoMsg(message: UninterpretedOptionProtoMsg): UninterpretedOption { + return UninterpretedOption.decode(message.value); + }, + toProto(message: UninterpretedOption): Uint8Array { + return UninterpretedOption.encode(message).finish(); + }, + toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg { + return { + typeUrl: "/google.protobuf.UninterpretedOption", + value: UninterpretedOption.encode(message).finish() + }; + } +}; +function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart { + return { + namePart: "", + isExtension: false + }; +} +export const UninterpretedOption_NamePart = { + typeUrl: "/google.protobuf.NamePart", + encode(message: UninterpretedOption_NamePart, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.namePart !== "") { + writer.uint32(10).string(message.namePart); + } + if (message.isExtension === true) { + writer.uint32(16).bool(message.isExtension); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUninterpretedOption_NamePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): UninterpretedOption_NamePart { + const message = createBaseUninterpretedOption_NamePart(); + message.namePart = object.namePart ?? ""; + message.isExtension = object.isExtension ?? false; + return message; + }, + fromAmino(object: UninterpretedOption_NamePartAmino): UninterpretedOption_NamePart { + const message = createBaseUninterpretedOption_NamePart(); + if (object.name_part !== undefined && object.name_part !== null) { + message.namePart = object.name_part; + } + if (object.is_extension !== undefined && object.is_extension !== null) { + message.isExtension = object.is_extension; + } + return message; + }, + toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino { + const obj: any = {}; + obj.name_part = message.namePart === "" ? undefined : message.namePart; + obj.is_extension = message.isExtension === false ? undefined : message.isExtension; + return obj; + }, + fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart { + return UninterpretedOption_NamePart.fromAmino(object.value); + }, + fromProtoMsg(message: UninterpretedOption_NamePartProtoMsg): UninterpretedOption_NamePart { + return UninterpretedOption_NamePart.decode(message.value); + }, + toProto(message: UninterpretedOption_NamePart): Uint8Array { + return UninterpretedOption_NamePart.encode(message).finish(); + }, + toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg { + return { + typeUrl: "/google.protobuf.NamePart", + value: UninterpretedOption_NamePart.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo(): SourceCodeInfo { + return { + location: [] + }; +} +export const SourceCodeInfo = { + typeUrl: "/google.protobuf.SourceCodeInfo", + encode(message: SourceCodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.location) { + SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SourceCodeInfo { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || []; + return message; + }, + fromAmino(object: SourceCodeInfoAmino): SourceCodeInfo { + const message = createBaseSourceCodeInfo(); + message.location = object.location?.map(e => SourceCodeInfo_Location.fromAmino(e)) || []; + return message; + }, + toAmino(message: SourceCodeInfo): SourceCodeInfoAmino { + const obj: any = {}; + if (message.location) { + obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toAmino(e) : undefined); + } else { + obj.location = message.location; + } + return obj; + }, + fromAminoMsg(object: SourceCodeInfoAminoMsg): SourceCodeInfo { + return SourceCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message: SourceCodeInfoProtoMsg): SourceCodeInfo { + return SourceCodeInfo.decode(message.value); + }, + toProto(message: SourceCodeInfo): Uint8Array { + return SourceCodeInfo.encode(message).finish(); + }, + toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg { + return { + typeUrl: "/google.protobuf.SourceCodeInfo", + value: SourceCodeInfo.encode(message).finish() + }; + } +}; +function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location { + return { + path: [], + span: [], + leadingComments: "", + trailingComments: "", + leadingDetachedComments: [] + }; +} +export const SourceCodeInfo_Location = { + typeUrl: "/google.protobuf.Location", + encode(message: SourceCodeInfo_Location, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + writer.uint32(18).fork(); + for (const v of message.span) { + writer.int32(v); + } + writer.ldelim(); + if (message.leadingComments !== "") { + writer.uint32(26).string(message.leadingComments); + } + if (message.trailingComments !== "") { + writer.uint32(34).string(message.trailingComments); + } + for (const v of message.leadingDetachedComments) { + writer.uint32(50).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSourceCodeInfo_Location(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } else { + message.path.push(reader.int32()); + } + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.span.push(reader.int32()); + } + } else { + message.span.push(reader.int32()); + } + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SourceCodeInfo_Location { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + message.leadingComments = object.leadingComments ?? ""; + message.trailingComments = object.trailingComments ?? ""; + message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; + return message; + }, + fromAmino(object: SourceCodeInfo_LocationAmino): SourceCodeInfo_Location { + const message = createBaseSourceCodeInfo_Location(); + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; + if (object.leading_comments !== undefined && object.leading_comments !== null) { + message.leadingComments = object.leading_comments; + } + if (object.trailing_comments !== undefined && object.trailing_comments !== null) { + message.trailingComments = object.trailing_comments; + } + message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; + return message; + }, + toAmino(message: SourceCodeInfo_Location): SourceCodeInfo_LocationAmino { + const obj: any = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } else { + obj.path = message.path; + } + if (message.span) { + obj.span = message.span.map(e => e); + } else { + obj.span = message.span; + } + obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; + obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; + if (message.leadingDetachedComments) { + obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); + } else { + obj.leading_detached_comments = message.leadingDetachedComments; + } + return obj; + }, + fromAminoMsg(object: SourceCodeInfo_LocationAminoMsg): SourceCodeInfo_Location { + return SourceCodeInfo_Location.fromAmino(object.value); + }, + fromProtoMsg(message: SourceCodeInfo_LocationProtoMsg): SourceCodeInfo_Location { + return SourceCodeInfo_Location.decode(message.value); + }, + toProto(message: SourceCodeInfo_Location): Uint8Array { + return SourceCodeInfo_Location.encode(message).finish(); + }, + toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg { + return { + typeUrl: "/google.protobuf.Location", + value: SourceCodeInfo_Location.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo(): GeneratedCodeInfo { + return { + annotation: [] + }; +} +export const GeneratedCodeInfo = { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + encode(message: GeneratedCodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.annotation) { + GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GeneratedCodeInfo { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GeneratedCodeInfoAmino): GeneratedCodeInfo { + const message = createBaseGeneratedCodeInfo(); + message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromAmino(e)) || []; + return message; + }, + toAmino(message: GeneratedCodeInfo): GeneratedCodeInfoAmino { + const obj: any = {}; + if (message.annotation) { + obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toAmino(e) : undefined); + } else { + obj.annotation = message.annotation; + } + return obj; + }, + fromAminoMsg(object: GeneratedCodeInfoAminoMsg): GeneratedCodeInfo { + return GeneratedCodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message: GeneratedCodeInfoProtoMsg): GeneratedCodeInfo { + return GeneratedCodeInfo.decode(message.value); + }, + toProto(message: GeneratedCodeInfo): Uint8Array { + return GeneratedCodeInfo.encode(message).finish(); + }, + toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg { + return { + typeUrl: "/google.protobuf.GeneratedCodeInfo", + value: GeneratedCodeInfo.encode(message).finish() + }; + } +}; +function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation { + return { + path: [], + sourceFile: "", + begin: 0, + end: 0 + }; +} +export const GeneratedCodeInfo_Annotation = { + typeUrl: "/google.protobuf.Annotation", + encode(message: GeneratedCodeInfo_Annotation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + writer.uint32(10).fork(); + for (const v of message.path) { + writer.int32(v); + } + writer.ldelim(); + if (message.sourceFile !== "") { + writer.uint32(18).string(message.sourceFile); + } + if (message.begin !== 0) { + writer.uint32(24).int32(message.begin); + } + if (message.end !== 0) { + writer.uint32(32).int32(message.end); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGeneratedCodeInfo_Annotation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.path.push(reader.int32()); + } + } else { + message.path.push(reader.int32()); + } + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GeneratedCodeInfo_Annotation { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + message.sourceFile = object.sourceFile ?? ""; + message.begin = object.begin ?? 0; + message.end = object.end ?? 0; + return message; + }, + fromAmino(object: GeneratedCodeInfo_AnnotationAmino): GeneratedCodeInfo_Annotation { + const message = createBaseGeneratedCodeInfo_Annotation(); + message.path = object.path?.map(e => e) || []; + if (object.source_file !== undefined && object.source_file !== null) { + message.sourceFile = object.source_file; + } + if (object.begin !== undefined && object.begin !== null) { + message.begin = object.begin; + } + if (object.end !== undefined && object.end !== null) { + message.end = object.end; + } + return message; + }, + toAmino(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationAmino { + const obj: any = {}; + if (message.path) { + obj.path = message.path.map(e => e); + } else { + obj.path = message.path; + } + obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; + obj.begin = message.begin === 0 ? undefined : message.begin; + obj.end = message.end === 0 ? undefined : message.end; + return obj; + }, + fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation { + return GeneratedCodeInfo_Annotation.fromAmino(object.value); + }, + fromProtoMsg(message: GeneratedCodeInfo_AnnotationProtoMsg): GeneratedCodeInfo_Annotation { + return GeneratedCodeInfo_Annotation.decode(message.value); + }, + toProto(message: GeneratedCodeInfo_Annotation): Uint8Array { + return GeneratedCodeInfo_Annotation.encode(message).finish(); + }, + toProtoMsg(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationProtoMsg { + return { + typeUrl: "/google.protobuf.Annotation", + value: GeneratedCodeInfo_Annotation.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/google/protobuf/duration.ts b/packages/api/src/google/protobuf/duration.ts new file mode 100644 index 00000000..b1f793dd --- /dev/null +++ b/packages/api/src/google/protobuf/duration.ts @@ -0,0 +1,281 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export interface Duration { + /** + * Signed seconds of the span of time. Must be from -315,576,000,000 + * to +315,576,000,000 inclusive. Note: these bounds are computed from: + * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + */ + seconds: bigint; + /** + * Signed fractions of a second at nanosecond resolution of the span + * of time. Durations less than one second are represented with a 0 + * `seconds` field and a positive or negative `nanos` field. For durations + * of one second or more, a non-zero value for the `nanos` field must be + * of the same sign as the `seconds` field. Must be from -999,999,999 + * to +999,999,999 inclusive. + */ + nanos: number; +} +export interface DurationProtoMsg { + typeUrl: "/google.protobuf.Duration"; + value: Uint8Array; +} +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export type DurationAmino = string; +export interface DurationAminoMsg { + type: "/google.protobuf.Duration"; + value: DurationAmino; +} +/** + * A Duration represents a signed, fixed-length span of time represented + * as a count of seconds and fractions of seconds at nanosecond + * resolution. It is independent of any calendar and concepts like "day" + * or "month". It is related to Timestamp in that the difference between + * two Timestamp values is a Duration and it can be added or subtracted + * from a Timestamp. Range is approximately +-10,000 years. + * + * # Examples + * + * Example 1: Compute Duration from two Timestamps in pseudo code. + * + * Timestamp start = ...; + * Timestamp end = ...; + * Duration duration = ...; + * + * duration.seconds = end.seconds - start.seconds; + * duration.nanos = end.nanos - start.nanos; + * + * if (duration.seconds < 0 && duration.nanos > 0) { + * duration.seconds += 1; + * duration.nanos -= 1000000000; + * } else if (durations.seconds > 0 && duration.nanos < 0) { + * duration.seconds -= 1; + * duration.nanos += 1000000000; + * } + * + * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + * + * Timestamp start = ...; + * Duration duration = ...; + * Timestamp end = ...; + * + * end.seconds = start.seconds + duration.seconds; + * end.nanos = start.nanos + duration.nanos; + * + * if (end.nanos < 0) { + * end.seconds -= 1; + * end.nanos += 1000000000; + * } else if (end.nanos >= 1000000000) { + * end.seconds += 1; + * end.nanos -= 1000000000; + * } + * + * Example 3: Compute Duration from datetime.timedelta in Python. + * + * td = datetime.timedelta(days=3, minutes=10) + * duration = Duration() + * duration.FromTimedelta(td) + * + * # JSON Mapping + * + * In JSON format, the Duration type is encoded as a string rather than an + * object, where the string ends in the suffix "s" (indicating seconds) and + * is preceded by the number of seconds, with nanoseconds expressed as + * fractional seconds. For example, 3 seconds with 0 nanoseconds should be + * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + * microsecond should be expressed in JSON format as "3.000001s". + */ +export interface DurationSDKType { + seconds: bigint; + nanos: number; +} +function createBaseDuration(): Duration { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +export const Duration = { + typeUrl: "/google.protobuf.Duration", + encode(message: Duration, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Duration { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuration(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Duration { + const message = createBaseDuration(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object: DurationAmino): Duration { + const value = BigInt(object); + return { + seconds: value / BigInt("1000000000"), + nanos: Number(value % BigInt("1000000000")) + }; + }, + toAmino(message: Duration): DurationAmino { + return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); + }, + fromAminoMsg(object: DurationAminoMsg): Duration { + return Duration.fromAmino(object.value); + }, + fromProtoMsg(message: DurationProtoMsg): Duration { + return Duration.decode(message.value); + }, + toProto(message: Duration): Uint8Array { + return Duration.encode(message).finish(); + }, + toProtoMsg(message: Duration): DurationProtoMsg { + return { + typeUrl: "/google.protobuf.Duration", + value: Duration.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/google/protobuf/timestamp.ts b/packages/api/src/google/protobuf/timestamp.ts new file mode 100644 index 00000000..5dc8630a --- /dev/null +++ b/packages/api/src/google/protobuf/timestamp.ts @@ -0,0 +1,348 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { fromJsonTimestamp, fromTimestamp } from "../../helpers"; +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export interface Timestamp { + /** + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + */ + seconds: bigint; + /** + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + */ + nanos: number; +} +export interface TimestampProtoMsg { + typeUrl: "/google.protobuf.Timestamp"; + value: Uint8Array; +} +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export type TimestampAmino = string; +export interface TimestampAminoMsg { + type: "/google.protobuf.Timestamp"; + value: TimestampAmino; +} +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + */ +export interface TimestampSDKType { + seconds: bigint; + nanos: number; +} +function createBaseTimestamp(): Timestamp { + return { + seconds: BigInt(0), + nanos: 0 + }; +} +export const Timestamp = { + typeUrl: "/google.protobuf.Timestamp", + encode(message: Timestamp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seconds !== BigInt(0)) { + writer.uint32(8).int64(message.seconds); + } + if (message.nanos !== 0) { + writer.uint32(16).int32(message.nanos); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Timestamp { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTimestamp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Timestamp { + const message = createBaseTimestamp(); + message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); + message.nanos = object.nanos ?? 0; + return message; + }, + fromAmino(object: TimestampAmino): Timestamp { + return fromJsonTimestamp(object); + }, + toAmino(message: Timestamp): TimestampAmino { + return fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z"); + }, + fromAminoMsg(object: TimestampAminoMsg): Timestamp { + return Timestamp.fromAmino(object.value); + }, + fromProtoMsg(message: TimestampProtoMsg): Timestamp { + return Timestamp.decode(message.value); + }, + toProto(message: Timestamp): Uint8Array { + return Timestamp.encode(message).finish(); + }, + toProtoMsg(message: Timestamp): TimestampProtoMsg { + return { + typeUrl: "/google.protobuf.Timestamp", + value: Timestamp.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/helpers.ts b/packages/api/src/helpers.ts new file mode 100644 index 00000000..2abb3287 --- /dev/null +++ b/packages/api/src/helpers.ts @@ -0,0 +1,256 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ + + +declare var self: any | undefined; +declare var window: any | undefined; +declare var global: any | undefined; +var globalThis: any = (() => { + if (typeof globalThis !== 'undefined') return globalThis; + if (typeof self !== 'undefined') return self; + if (typeof window !== 'undefined') return window; + if (typeof global !== 'undefined') return global; + throw 'Unable to locate global object'; +})(); + +const atob: (b64: string) => string = + globalThis.atob || + ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); + +export function bytesFromBase64(b64: string): Uint8Array { + const bin = atob(b64); + const arr = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; ++i) { + arr[i] = bin.charCodeAt(i); + } + return arr; +} + +const btoa: (bin: string) => string = + globalThis.btoa || + ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); + +export function base64FromBytes(arr: Uint8Array): string { + const bin: string[] = []; + arr.forEach((byte) => { + bin.push(String.fromCharCode(byte)); + }); + return btoa(bin.join('')); +} + +export interface AminoHeight { + readonly revision_number?: string; + readonly revision_height?: string; +} + +export function omitDefault( + input: T +): T | undefined { + if (typeof input === 'string') { + return input === '' ? undefined : input; + } + + if (typeof input === 'number') { + return input === 0 ? undefined : input; + } + + if (typeof input === "boolean"){ + return input === false ? undefined : input; + } + + if (typeof input === 'bigint') { + return input === BigInt(0) ? undefined : input; + } + + throw new Error(`Got unsupported type ${typeof input}`); +} + +interface Duration { + /** + * Signed seconds of the span of time. Must be from -315,576,000,000 + * to +315,576,000,000 inclusive. Note: these bounds are computed from: + * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + */ + seconds: bigint; + /** + * Signed fractions of a second at nanosecond resolution of the span + * of time. Durations less than one second are represented with a 0 + * `seconds` field and a positive or negative `nanos` field. For durations + * of one second or more, a non-zero value for the `nanos` field must be + * of the same sign as the `seconds` field. Must be from -999,999,999 + * to +999,999,999 inclusive. + */ + + nanos: number; +} + +export function toDuration(duration: string): Duration { + return { + seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), + nanos: parseInt(duration) % 1000000000 + }; +} + +export function fromDuration(duration: Duration): string { + return ( + parseInt(duration.seconds.toString()) * 1000000000 + + duration.nanos + ).toString(); +} + +export function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +export function isObject(value: any): boolean { + return typeof value === 'object' && value !== null; +} + +export interface PageRequest { + key: Uint8Array; + offset: bigint; + limit: bigint; + countTotal: boolean; + reverse: boolean; +} + +export interface PageRequestParams { + 'pagination.key'?: string; + 'pagination.offset'?: string; + 'pagination.limit'?: string; + 'pagination.count_total'?: boolean; + 'pagination.reverse'?: boolean; +} + +export interface Params { + params: PageRequestParams; +} + +export const setPaginationParams = ( + options: Params, + pagination?: PageRequest +) => { + if (!pagination) { + return options; + } + + if (typeof pagination?.countTotal !== 'undefined') { + options.params['pagination.count_total'] = pagination.countTotal; + } + if (typeof pagination?.key !== 'undefined') { + // String to Uint8Array + // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); + + // Uint8Array to String + options.params['pagination.key'] = Buffer.from(pagination.key).toString( + 'base64' + ); + } + if (typeof pagination?.limit !== 'undefined') { + options.params['pagination.limit'] = pagination.limit.toString(); + } + if (typeof pagination?.offset !== 'undefined') { + options.params['pagination.offset'] = pagination.offset.toString(); + } + if (typeof pagination?.reverse !== 'undefined') { + options.params['pagination.reverse'] = pagination.reverse; + } + + return options; +}; + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | bigint + | boolean + | undefined; + +export type DeepPartial = T extends Builtin + ? T + : T extends Array + ? Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in keyof T]?: DeepPartial } + : Partial; + +type KeysOfUnion = T extends T ? keyof T : never; +export type Exact = P extends Builtin + ? P + : P & { [K in keyof P]: Exact } & Record< + Exclude>, + never + >; + +export interface Rpc { + request( + service: string, + method: string, + data: Uint8Array + ): Promise; +} + +interface Timestamp { + /** + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + */ + seconds: bigint; + /** + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + */ + + nanos: number; +} + +export function toTimestamp(date: Date): Timestamp { + const seconds = numberToLong(date.getTime() / 1_000); + const nanos = (date.getTime() % 1000) * 1000000; + return { + seconds, + nanos + }; +} + +export function fromTimestamp(t: Timestamp): Date { + let millis = Number(t.seconds) * 1000; + millis += t.nanos / 1000000; + return new Date(millis); +} + +const timestampFromJSON = (object: any): Timestamp => { + return { + seconds: isSet(object.seconds) + ? BigInt(object.seconds.toString()) + : BigInt(0), + nanos: isSet(object.nanos) ? Number(object.nanos) : 0 + }; +}; + +export function fromJsonTimestamp(o: any): Timestamp { + if (o instanceof Date) { + return toTimestamp(o); + } else if (typeof o === 'string') { + return toTimestamp(new Date(o)); + } else { + return timestampFromJSON(o); + } +} + +function numberToLong(number: number) { + return BigInt(Math.trunc(number)); +} + diff --git a/packages/api/src/ibc/applications/transfer/v1/genesis.ts b/packages/api/src/ibc/applications/transfer/v1/genesis.ts new file mode 100644 index 00000000..5b97f25a --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/genesis.ts @@ -0,0 +1,124 @@ +//@ts-nocheck +import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisState { + portId: string; + denomTraces: DenomTrace[]; + params: Params; +} +export interface GenesisStateProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisStateAmino { + port_id?: string; + denom_traces?: DenomTraceAmino[]; + params?: ParamsAmino; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the ibc-transfer genesis state */ +export interface GenesisStateSDKType { + port_id: string; + denom_traces: DenomTraceSDKType[]; + params: ParamsSDKType; +} +function createBaseGenesisState(): GenesisState { + return { + portId: "", + denomTraces: [], + params: Params.fromPartial({}) + }; +} +export const GenesisState = { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + for (const v of message.denomTraces) { + DenomTrace.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); + break; + case 3: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.portId = object.portId ?? ""; + message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); + } else { + obj.denom_traces = message.denomTraces; + } + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/query.lcd.ts b/packages/api/src/ibc/applications/transfer/v1/query.lcd.ts new file mode 100644 index 00000000..bbe5f4f1 --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/query.lcd.ts @@ -0,0 +1,52 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + /* DenomTrace queries a denomination trace information. */ + async denomTrace(params: QueryDenomTraceRequest): Promise { + const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; + return await this.req.get(endpoint); + } + /* DenomTraces queries all denomination traces. */ + async denomTraces(params: QueryDenomTracesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/apps/transfer/v1/denom_traces`; + return await this.req.get(endpoint, options); + } + /* Params queries all parameters of the ibc-transfer module. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `ibc/apps/transfer/v1/params`; + return await this.req.get(endpoint); + } + /* DenomHash queries a denomination hash information. */ + async denomHash(params: QueryDenomHashRequest): Promise { + const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; + return await this.req.get(endpoint); + } + /* EscrowAddress returns the escrow address for a particular port and channel id. */ + async escrowAddress(params: QueryEscrowAddressRequest): Promise { + const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/query.rpc.Query.ts b/packages/api/src/ibc/applications/transfer/v1/query.rpc.Query.ts new file mode 100644 index 00000000..e7569d62 --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/query.rpc.Query.ts @@ -0,0 +1,77 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** DenomTrace queries a denomination trace information. */ + denomTrace(request: QueryDenomTraceRequest): Promise; + /** DenomTraces queries all denomination traces. */ + denomTraces(request?: QueryDenomTracesRequest): Promise; + /** Params queries all parameters of the ibc-transfer module. */ + params(request?: QueryParamsRequest): Promise; + /** DenomHash queries a denomination hash information. */ + denomHash(request: QueryDenomHashRequest): Promise; + /** EscrowAddress returns the escrow address for a particular port and channel id. */ + escrowAddress(request: QueryEscrowAddressRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + this.denomHash = this.denomHash.bind(this); + this.escrowAddress = this.escrowAddress.bind(this); + } + denomTrace(request: QueryDenomTraceRequest): Promise { + const data = QueryDenomTraceRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); + return promise.then(data => QueryDenomTraceResponse.decode(new BinaryReader(data))); + } + denomTraces(request: QueryDenomTracesRequest = { + pagination: undefined + }): Promise { + const data = QueryDenomTracesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); + return promise.then(data => QueryDenomTracesResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + denomHash(request: QueryDenomHashRequest): Promise { + const data = QueryDenomHashRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); + return promise.then(data => QueryDenomHashResponse.decode(new BinaryReader(data))); + } + escrowAddress(request: QueryEscrowAddressRequest): Promise { + const data = QueryEscrowAddressRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); + return promise.then(data => QueryEscrowAddressResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + denomTrace(request: QueryDenomTraceRequest): Promise { + return queryService.denomTrace(request); + }, + denomTraces(request?: QueryDenomTracesRequest): Promise { + return queryService.denomTraces(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + denomHash(request: QueryDenomHashRequest): Promise { + return queryService.denomHash(request); + }, + escrowAddress(request: QueryEscrowAddressRequest): Promise { + return queryService.escrowAddress(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/query.ts b/packages/api/src/ibc/applications/transfer/v1/query.ts new file mode 100644 index 00000000..24ed2f9a --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/query.ts @@ -0,0 +1,983 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequest { + /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ + hash: string; +} +export interface QueryDenomTraceRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; + value: Uint8Array; +} +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequestAmino { + /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ + hash?: string; +} +export interface QueryDenomTraceRequestAminoMsg { + type: "cosmos-sdk/QueryDenomTraceRequest"; + value: QueryDenomTraceRequestAmino; +} +/** + * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC + * method + */ +export interface QueryDenomTraceRequestSDKType { + hash: string; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponse { + /** denom_trace returns the requested denomination trace information. */ + denomTrace?: DenomTrace; +} +export interface QueryDenomTraceResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; + value: Uint8Array; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponseAmino { + /** denom_trace returns the requested denomination trace information. */ + denom_trace?: DenomTraceAmino; +} +export interface QueryDenomTraceResponseAminoMsg { + type: "cosmos-sdk/QueryDenomTraceResponse"; + value: QueryDenomTraceResponseAmino; +} +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface QueryDenomTraceResponseSDKType { + denom_trace?: DenomTraceSDKType; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryDenomTracesRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; + value: Uint8Array; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryDenomTracesRequestAminoMsg { + type: "cosmos-sdk/QueryDenomTracesRequest"; + value: QueryDenomTracesRequestAmino; +} +/** + * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC + * method + */ +export interface QueryDenomTracesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponse { + /** denom_traces returns all denominations trace information. */ + denomTraces: DenomTrace[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryDenomTracesResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; + value: Uint8Array; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponseAmino { + /** denom_traces returns all denominations trace information. */ + denom_traces?: DenomTraceAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryDenomTracesResponseAminoMsg { + type: "cosmos-sdk/QueryDenomTracesResponse"; + value: QueryDenomTracesResponseAmino; +} +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface QueryDenomTracesResponseSDKType { + denom_traces: DenomTraceSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "cosmos-sdk/QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the request type for the Query/Params RPC method. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "cosmos-sdk/QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequest { + /** The denomination trace ([port_id]/[channel_id])+/[denom] */ + trace: string; +} +export interface QueryDenomHashRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest"; + value: Uint8Array; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequestAmino { + /** The denomination trace ([port_id]/[channel_id])+/[denom] */ + trace?: string; +} +export interface QueryDenomHashRequestAminoMsg { + type: "cosmos-sdk/QueryDenomHashRequest"; + value: QueryDenomHashRequestAmino; +} +/** + * QueryDenomHashRequest is the request type for the Query/DenomHash RPC + * method + */ +export interface QueryDenomHashRequestSDKType { + trace: string; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponse { + /** hash (in hex format) of the denomination trace information. */ + hash: string; +} +export interface QueryDenomHashResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse"; + value: Uint8Array; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponseAmino { + /** hash (in hex format) of the denomination trace information. */ + hash?: string; +} +export interface QueryDenomHashResponseAminoMsg { + type: "cosmos-sdk/QueryDenomHashResponse"; + value: QueryDenomHashResponseAmino; +} +/** + * QueryDenomHashResponse is the response type for the Query/DenomHash RPC + * method. + */ +export interface QueryDenomHashResponseSDKType { + hash: string; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequest { + /** unique port identifier */ + portId: string; + /** unique channel identifier */ + channelId: string; +} +export interface QueryEscrowAddressRequestProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest"; + value: Uint8Array; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequestAmino { + /** unique port identifier */ + port_id?: string; + /** unique channel identifier */ + channel_id?: string; +} +export interface QueryEscrowAddressRequestAminoMsg { + type: "cosmos-sdk/QueryEscrowAddressRequest"; + value: QueryEscrowAddressRequestAmino; +} +/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ +export interface QueryEscrowAddressRequestSDKType { + port_id: string; + channel_id: string; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponse { + /** the escrow account address */ + escrowAddress: string; +} +export interface QueryEscrowAddressResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse"; + value: Uint8Array; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponseAmino { + /** the escrow account address */ + escrow_address?: string; +} +export interface QueryEscrowAddressResponseAminoMsg { + type: "cosmos-sdk/QueryEscrowAddressResponse"; + value: QueryEscrowAddressResponseAmino; +} +/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ +export interface QueryEscrowAddressResponseSDKType { + escrow_address: string; +} +function createBaseQueryDenomTraceRequest(): QueryDenomTraceRequest { + return { + hash: "" + }; +} +export const QueryDenomTraceRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + encode(message: QueryDenomTraceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomTraceRequest { + const message = createBaseQueryDenomTraceRequest(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object: QueryDenomTraceRequestAmino): QueryDenomTraceRequest { + const message = createBaseQueryDenomTraceRequest(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino { + const obj: any = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest { + return QueryDenomTraceRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomTraceRequest", + value: QueryDenomTraceRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomTraceRequestProtoMsg): QueryDenomTraceRequest { + return QueryDenomTraceRequest.decode(message.value); + }, + toProto(message: QueryDenomTraceRequest): Uint8Array { + return QueryDenomTraceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", + value: QueryDenomTraceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTraceResponse(): QueryDenomTraceResponse { + return { + denomTrace: undefined + }; +} +export const QueryDenomTraceResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + encode(message: QueryDenomTraceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denomTrace !== undefined) { + DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTraceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTrace = DenomTrace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomTraceResponse { + const message = createBaseQueryDenomTraceResponse(); + message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? DenomTrace.fromPartial(object.denomTrace) : undefined; + return message; + }, + fromAmino(object: QueryDenomTraceResponseAmino): QueryDenomTraceResponse { + const message = createBaseQueryDenomTraceResponse(); + if (object.denom_trace !== undefined && object.denom_trace !== null) { + message.denomTrace = DenomTrace.fromAmino(object.denom_trace); + } + return message; + }, + toAmino(message: QueryDenomTraceResponse): QueryDenomTraceResponseAmino { + const obj: any = {}; + obj.denom_trace = message.denomTrace ? DenomTrace.toAmino(message.denomTrace) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomTraceResponseAminoMsg): QueryDenomTraceResponse { + return QueryDenomTraceResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomTraceResponse", + value: QueryDenomTraceResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomTraceResponseProtoMsg): QueryDenomTraceResponse { + return QueryDenomTraceResponse.decode(message.value); + }, + toProto(message: QueryDenomTraceResponse): Uint8Array { + return QueryDenomTraceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", + value: QueryDenomTraceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesRequest(): QueryDenomTracesRequest { + return { + pagination: undefined + }; +} +export const QueryDenomTracesRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + encode(message: QueryDenomTracesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomTracesRequest { + const message = createBaseQueryDenomTracesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomTracesRequestAmino): QueryDenomTracesRequest { + const message = createBaseQueryDenomTracesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomTracesRequest): QueryDenomTracesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomTracesRequestAminoMsg): QueryDenomTracesRequest { + return QueryDenomTracesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomTracesRequest", + value: QueryDenomTracesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomTracesRequestProtoMsg): QueryDenomTracesRequest { + return QueryDenomTracesRequest.decode(message.value); + }, + toProto(message: QueryDenomTracesRequest): Uint8Array { + return QueryDenomTracesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", + value: QueryDenomTracesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomTracesResponse(): QueryDenomTracesResponse { + return { + denomTraces: [], + pagination: undefined + }; +} +export const QueryDenomTracesResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + encode(message: QueryDenomTracesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.denomTraces) { + DenomTrace.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomTracesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomTracesResponse { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryDenomTracesResponseAmino): QueryDenomTracesResponse { + const message = createBaseQueryDenomTracesResponse(); + message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryDenomTracesResponse): QueryDenomTracesResponseAmino { + const obj: any = {}; + if (message.denomTraces) { + obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); + } else { + obj.denom_traces = message.denomTraces; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryDenomTracesResponseAminoMsg): QueryDenomTracesResponse { + return QueryDenomTracesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomTracesResponse", + value: QueryDenomTracesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomTracesResponseProtoMsg): QueryDenomTracesResponse { + return QueryDenomTracesResponse.decode(message.value); + }, + toProto(message: QueryDenomTracesResponse): Uint8Array { + return QueryDenomTracesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", + value: QueryDenomTracesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryParamsRequest", + value: QueryParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryParamsResponse", + value: QueryParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashRequest(): QueryDenomHashRequest { + return { + trace: "" + }; +} +export const QueryDenomHashRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + encode(message: QueryDenomHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.trace !== "") { + writer.uint32(10).string(message.trace); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomHashRequest { + const message = createBaseQueryDenomHashRequest(); + message.trace = object.trace ?? ""; + return message; + }, + fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest { + const message = createBaseQueryDenomHashRequest(); + if (object.trace !== undefined && object.trace !== null) { + message.trace = object.trace; + } + return message; + }, + toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino { + const obj: any = {}; + obj.trace = message.trace === "" ? undefined : message.trace; + return obj; + }, + fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest { + return QueryDenomHashRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg { + return { + type: "cosmos-sdk/QueryDenomHashRequest", + value: QueryDenomHashRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest { + return QueryDenomHashRequest.decode(message.value); + }, + toProto(message: QueryDenomHashRequest): Uint8Array { + return QueryDenomHashRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", + value: QueryDenomHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryDenomHashResponse(): QueryDenomHashResponse { + return { + hash: "" + }; +} +export const QueryDenomHashResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + encode(message: QueryDenomHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash !== "") { + writer.uint32(10).string(message.hash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryDenomHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryDenomHashResponse { + const message = createBaseQueryDenomHashResponse(); + message.hash = object.hash ?? ""; + return message; + }, + fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse { + const message = createBaseQueryDenomHashResponse(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = object.hash; + } + return message; + }, + toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino { + const obj: any = {}; + obj.hash = message.hash === "" ? undefined : message.hash; + return obj; + }, + fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse { + return QueryDenomHashResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg { + return { + type: "cosmos-sdk/QueryDenomHashResponse", + value: QueryDenomHashResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse { + return QueryDenomHashResponse.decode(message.value); + }, + toProto(message: QueryDenomHashResponse): Uint8Array { + return QueryDenomHashResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", + value: QueryDenomHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressRequest(): QueryEscrowAddressRequest { + return { + portId: "", + channelId: "" + }; +} +export const QueryEscrowAddressRequest = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + encode(message: QueryEscrowAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.portId !== "") { + writer.uint32(10).string(message.portId); + } + if (message.channelId !== "") { + writer.uint32(18).string(message.channelId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.portId = reader.string(); + break; + case 2: + message.channelId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryEscrowAddressRequest { + const message = createBaseQueryEscrowAddressRequest(); + message.portId = object.portId ?? ""; + message.channelId = object.channelId ?? ""; + return message; + }, + fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest { + const message = createBaseQueryEscrowAddressRequest(); + if (object.port_id !== undefined && object.port_id !== null) { + message.portId = object.port_id; + } + if (object.channel_id !== undefined && object.channel_id !== null) { + message.channelId = object.channel_id; + } + return message; + }, + toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino { + const obj: any = {}; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + return obj; + }, + fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest { + return QueryEscrowAddressRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg { + return { + type: "cosmos-sdk/QueryEscrowAddressRequest", + value: QueryEscrowAddressRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest { + return QueryEscrowAddressRequest.decode(message.value); + }, + toProto(message: QueryEscrowAddressRequest): Uint8Array { + return QueryEscrowAddressRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", + value: QueryEscrowAddressRequest.encode(message).finish() + }; + } +}; +function createBaseQueryEscrowAddressResponse(): QueryEscrowAddressResponse { + return { + escrowAddress: "" + }; +} +export const QueryEscrowAddressResponse = { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + encode(message: QueryEscrowAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.escrowAddress !== "") { + writer.uint32(10).string(message.escrowAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryEscrowAddressResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.escrowAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryEscrowAddressResponse { + const message = createBaseQueryEscrowAddressResponse(); + message.escrowAddress = object.escrowAddress ?? ""; + return message; + }, + fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse { + const message = createBaseQueryEscrowAddressResponse(); + if (object.escrow_address !== undefined && object.escrow_address !== null) { + message.escrowAddress = object.escrow_address; + } + return message; + }, + toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino { + const obj: any = {}; + obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; + return obj; + }, + fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse { + return QueryEscrowAddressResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg { + return { + type: "cosmos-sdk/QueryEscrowAddressResponse", + value: QueryEscrowAddressResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse { + return QueryEscrowAddressResponse.decode(message.value); + }, + toProto(message: QueryEscrowAddressResponse): Uint8Array { + return QueryEscrowAddressResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", + value: QueryEscrowAddressResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/transfer.ts b/packages/api/src/ibc/applications/transfer/v1/transfer.ts new file mode 100644 index 00000000..17df6cef --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/transfer.ts @@ -0,0 +1,260 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTrace { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path: string; + /** base denomination of the relayed fungible token. */ + baseDenom: string; +} +export interface DenomTraceProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; + value: Uint8Array; +} +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTraceAmino { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; +} +export interface DenomTraceAminoMsg { + type: "cosmos-sdk/DenomTrace"; + value: DenomTraceAmino; +} +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface DenomTraceSDKType { + path: string; + base_denom: string; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface Params { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + sendEnabled: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receiveEnabled: boolean; +} +export interface ParamsProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.Params"; + value: Uint8Array; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface ParamsAmino { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface ParamsSDKType { + send_enabled: boolean; + receive_enabled: boolean; +} +function createBaseDenomTrace(): DenomTrace { + return { + path: "", + baseDenom: "" + }; +} +export const DenomTrace = { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + encode(message: DenomTrace, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.path !== "") { + writer.uint32(10).string(message.path); + } + if (message.baseDenom !== "") { + writer.uint32(18).string(message.baseDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDenomTrace(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = reader.string(); + break; + case 2: + message.baseDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DenomTrace { + const message = createBaseDenomTrace(); + message.path = object.path ?? ""; + message.baseDenom = object.baseDenom ?? ""; + return message; + }, + fromAmino(object: DenomTraceAmino): DenomTrace { + const message = createBaseDenomTrace(); + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.base_denom !== undefined && object.base_denom !== null) { + message.baseDenom = object.base_denom; + } + return message; + }, + toAmino(message: DenomTrace): DenomTraceAmino { + const obj: any = {}; + obj.path = message.path === "" ? undefined : message.path; + obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; + return obj; + }, + fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace { + return DenomTrace.fromAmino(object.value); + }, + toAminoMsg(message: DenomTrace): DenomTraceAminoMsg { + return { + type: "cosmos-sdk/DenomTrace", + value: DenomTrace.toAmino(message) + }; + }, + fromProtoMsg(message: DenomTraceProtoMsg): DenomTrace { + return DenomTrace.decode(message.value); + }, + toProto(message: DenomTrace): Uint8Array { + return DenomTrace.encode(message).finish(); + }, + toProtoMsg(message: DenomTrace): DenomTraceProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.DenomTrace", + value: DenomTrace.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + sendEnabled: false, + receiveEnabled: false + }; +} +export const Params = { + typeUrl: "/ibc.applications.transfer.v1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sendEnabled === true) { + writer.uint32(8).bool(message.sendEnabled); + } + if (message.receiveEnabled === true) { + writer.uint32(16).bool(message.receiveEnabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sendEnabled = reader.bool(); + break; + case 2: + message.receiveEnabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.sendEnabled = object.sendEnabled ?? false; + message.receiveEnabled = object.receiveEnabled ?? false; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + if (object.send_enabled !== undefined && object.send_enabled !== null) { + message.sendEnabled = object.send_enabled; + } + if (object.receive_enabled !== undefined && object.receive_enabled !== null) { + message.receiveEnabled = object.receive_enabled; + } + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; + obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.Params", + value: Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/tx.amino.ts b/packages/api/src/ibc/applications/transfer/v1/tx.amino.ts new file mode 100644 index 00000000..7295985b --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/tx.amino.ts @@ -0,0 +1,9 @@ +//@ts-nocheck +import { MsgTransfer } from "./tx"; +export const AminoConverter = { + "/ibc.applications.transfer.v1.MsgTransfer": { + aminoType: "cosmos-sdk/MsgTransfer", + toAmino: MsgTransfer.toAmino, + fromAmino: MsgTransfer.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/tx.registry.ts b/packages/api/src/ibc/applications/transfer/v1/tx.registry.ts new file mode 100644 index 00000000..dae96a3a --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/tx.registry.ts @@ -0,0 +1,35 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgTransfer } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + transfer(value: MsgTransfer) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.encode(value).finish() + }; + } + }, + withTypeUrl: { + transfer(value: MsgTransfer) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value + }; + } + }, + fromPartial: { + transfer(value: MsgTransfer) { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/tx.rpc.msg.ts b/packages/api/src/ibc/applications/transfer/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..3bc6a71d --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/tx.rpc.msg.ts @@ -0,0 +1,21 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { MsgTransfer, MsgTransferResponse } from "./tx"; +/** Msg defines the ibc/transfer Msg service. */ +export interface Msg { + /** Transfer defines a rpc handler method for MsgTransfer. */ + transfer(request: MsgTransfer): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.transfer = this.transfer.bind(this); + } + transfer(request: MsgTransfer): Promise { + const data = MsgTransfer.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); + return promise.then(data => MsgTransferResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/ibc/applications/transfer/v1/tx.ts b/packages/api/src/ibc/applications/transfer/v1/tx.ts new file mode 100644 index 00000000..194c0014 --- /dev/null +++ b/packages/api/src/ibc/applications/transfer/v1/tx.ts @@ -0,0 +1,291 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransfer { + /** the port on which the packet will be sent */ + sourcePort: string; + /** the channel by which the packet will be sent */ + sourceChannel: string; + /** the tokens to be transferred */ + token: Coin; + /** the sender address */ + sender: string; + /** the recipient address on the destination chain */ + receiver: string; + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + */ + timeoutHeight: Height; + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + */ + timeoutTimestamp: bigint; +} +export interface MsgTransferProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; + value: Uint8Array; +} +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransferAmino { + /** the port on which the packet will be sent */ + source_port?: string; + /** the channel by which the packet will be sent */ + source_channel?: string; + /** the tokens to be transferred */ + token?: CoinAmino; + /** the sender address */ + sender?: string; + /** the recipient address on the destination chain */ + receiver?: string; + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + */ + timeout_height?: HeightAmino; + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + */ + timeout_timestamp?: string; +} +export interface MsgTransferAminoMsg { + type: "cosmos-sdk/MsgTransfer"; + value: MsgTransferAmino; +} +/** + * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + * ICS20 enabled chains. See ICS Spec here: + * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + */ +export interface MsgTransferSDKType { + source_port: string; + source_channel: string; + token: CoinSDKType; + sender: string; + receiver: string; + timeout_height: HeightSDKType; + timeout_timestamp: bigint; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponse {} +export interface MsgTransferResponseProtoMsg { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; + value: Uint8Array; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponseAmino {} +export interface MsgTransferResponseAminoMsg { + type: "cosmos-sdk/MsgTransferResponse"; + value: MsgTransferResponseAmino; +} +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export interface MsgTransferResponseSDKType {} +function createBaseMsgTransfer(): MsgTransfer { + return { + sourcePort: "", + sourceChannel: "", + token: Coin.fromPartial({}), + sender: "", + receiver: "", + timeoutHeight: Height.fromPartial({}), + timeoutTimestamp: BigInt(0) + }; +} +export const MsgTransfer = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + encode(message: MsgTransfer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sourcePort !== "") { + writer.uint32(10).string(message.sourcePort); + } + if (message.sourceChannel !== "") { + writer.uint32(18).string(message.sourceChannel); + } + if (message.token !== undefined) { + Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); + } + if (message.sender !== "") { + writer.uint32(34).string(message.sender); + } + if (message.receiver !== "") { + writer.uint32(42).string(message.receiver); + } + if (message.timeoutHeight !== undefined) { + Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); + } + if (message.timeoutTimestamp !== BigInt(0)) { + writer.uint32(56).uint64(message.timeoutTimestamp); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sourcePort = reader.string(); + break; + case 2: + message.sourceChannel = reader.string(); + break; + case 3: + message.token = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.sender = reader.string(); + break; + case 5: + message.receiver = reader.string(); + break; + case 6: + message.timeoutHeight = Height.decode(reader, reader.uint32()); + break; + case 7: + message.timeoutTimestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgTransfer { + const message = createBaseMsgTransfer(); + message.sourcePort = object.sourcePort ?? ""; + message.sourceChannel = object.sourceChannel ?? ""; + message.token = object.token !== undefined && object.token !== null ? Coin.fromPartial(object.token) : undefined; + message.sender = object.sender ?? ""; + message.receiver = object.receiver ?? ""; + message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Height.fromPartial(object.timeoutHeight) : undefined; + message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgTransferAmino): MsgTransfer { + const message = createBaseMsgTransfer(); + if (object.source_port !== undefined && object.source_port !== null) { + message.sourcePort = object.source_port; + } + if (object.source_channel !== undefined && object.source_channel !== null) { + message.sourceChannel = object.source_channel; + } + if (object.token !== undefined && object.token !== null) { + message.token = Coin.fromAmino(object.token); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.receiver !== undefined && object.receiver !== null) { + message.receiver = object.receiver; + } + if (object.timeout_height !== undefined && object.timeout_height !== null) { + message.timeoutHeight = Height.fromAmino(object.timeout_height); + } + if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { + message.timeoutTimestamp = BigInt(object.timeout_timestamp); + } + return message; + }, + toAmino(message: MsgTransfer): MsgTransferAmino { + const obj: any = {}; + obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; + obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; + obj.token = message.token ? Coin.toAmino(message.token) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.receiver = message.receiver === "" ? undefined : message.receiver; + obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer { + return MsgTransfer.fromAmino(object.value); + }, + toAminoMsg(message: MsgTransfer): MsgTransferAminoMsg { + return { + type: "cosmos-sdk/MsgTransfer", + value: MsgTransfer.toAmino(message) + }; + }, + fromProtoMsg(message: MsgTransferProtoMsg): MsgTransfer { + return MsgTransfer.decode(message.value); + }, + toProto(message: MsgTransfer): Uint8Array { + return MsgTransfer.encode(message).finish(); + }, + toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", + value: MsgTransfer.encode(message).finish() + }; + } +}; +function createBaseMsgTransferResponse(): MsgTransferResponse { + return {}; +} +export const MsgTransferResponse = { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + encode(_: MsgTransferResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTransferResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgTransferResponse { + const message = createBaseMsgTransferResponse(); + return message; + }, + fromAmino(_: MsgTransferResponseAmino): MsgTransferResponse { + const message = createBaseMsgTransferResponse(); + return message; + }, + toAmino(_: MsgTransferResponse): MsgTransferResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgTransferResponseAminoMsg): MsgTransferResponse { + return MsgTransferResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgTransferResponse): MsgTransferResponseAminoMsg { + return { + type: "cosmos-sdk/MsgTransferResponse", + value: MsgTransferResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgTransferResponseProtoMsg): MsgTransferResponse { + return MsgTransferResponse.decode(message.value); + }, + toProto(message: MsgTransferResponse): Uint8Array { + return MsgTransferResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgTransferResponse): MsgTransferResponseProtoMsg { + return { + typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", + value: MsgTransferResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/bundle.ts b/packages/api/src/ibc/bundle.ts new file mode 100644 index 00000000..3c6b92fa --- /dev/null +++ b/packages/api/src/ibc/bundle.ts @@ -0,0 +1,59 @@ +//@ts-nocheck +import * as _68 from "./applications/transfer/v1/genesis"; +import * as _69 from "./applications/transfer/v1/query"; +import * as _70 from "./applications/transfer/v1/transfer"; +import * as _71 from "./applications/transfer/v1/tx"; +import * as _72 from "./core/client/v1/client"; +import * as _73 from "./core/client/v1/genesis"; +import * as _74 from "./core/client/v1/query"; +import * as _75 from "./core/client/v1/tx"; +import * as _177 from "./applications/transfer/v1/tx.amino"; +import * as _178 from "./core/client/v1/tx.amino"; +import * as _179 from "./applications/transfer/v1/tx.registry"; +import * as _180 from "./core/client/v1/tx.registry"; +import * as _181 from "./applications/transfer/v1/query.lcd"; +import * as _182 from "./core/client/v1/query.lcd"; +import * as _183 from "./applications/transfer/v1/query.rpc.Query"; +import * as _184 from "./core/client/v1/query.rpc.Query"; +import * as _185 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _186 from "./core/client/v1/tx.rpc.msg"; +import * as _220 from "./lcd"; +import * as _221 from "./rpc.query"; +import * as _222 from "./rpc.tx"; +export namespace ibc { + export namespace applications { + export namespace transfer { + export const v1 = { + ..._68, + ..._69, + ..._70, + ..._71, + ..._177, + ..._179, + ..._181, + ..._183, + ..._185 + }; + } + } + export namespace core { + export namespace client { + export const v1 = { + ..._72, + ..._73, + ..._74, + ..._75, + ..._178, + ..._180, + ..._182, + ..._184, + ..._186 + }; + } + } + export const ClientFactory = { + ..._220, + ..._221, + ..._222 + }; +} \ No newline at end of file diff --git a/packages/api/src/ibc/client.ts b/packages/api/src/ibc/client.ts new file mode 100644 index 00000000..e499f23c --- /dev/null +++ b/packages/api/src/ibc/client.ts @@ -0,0 +1,51 @@ +//@ts-nocheck +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry"; +import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry"; +import * as ibcApplicationsTransferV1TxAmino from "./applications/transfer/v1/tx.amino"; +import * as ibcCoreClientV1TxAmino from "./core/client/v1/tx.amino"; +export const ibcAminoConverters = { + ...ibcApplicationsTransferV1TxAmino.AminoConverter, + ...ibcCoreClientV1TxAmino.AminoConverter +}; +export const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; +export const getSigningIbcClientOptions = ({ + defaultTypes = defaultRegistryTypes +}: { + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +} = {}): { + registry: Registry; + aminoTypes: AminoTypes; +} => { + const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...ibcAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningIbcClient = async ({ + rpcEndpoint, + signer, + defaultTypes = defaultRegistryTypes +}: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => { + const { + registry, + aminoTypes + } = getSigningIbcClientOptions({ + defaultTypes + }); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: (registry as any), + aminoTypes + }); + return client; +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/client.ts b/packages/api/src/ibc/core/client/v1/client.ts new file mode 100644 index 00000000..c2949ed9 --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/client.ts @@ -0,0 +1,915 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientState { + /** client identifier */ + clientId: string; + /** client state */ + clientState?: Any; +} +export interface IdentifiedClientStateProtoMsg { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; + value: Uint8Array; +} +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientStateAmino { + /** client identifier */ + client_id?: string; + /** client state */ + client_state?: AnyAmino; +} +export interface IdentifiedClientStateAminoMsg { + type: "cosmos-sdk/IdentifiedClientState"; + value: IdentifiedClientStateAmino; +} +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IdentifiedClientStateSDKType { + client_id: string; + client_state?: AnySDKType; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeight { + /** consensus state height */ + height: Height; + /** consensus state */ + consensusState?: Any; +} +export interface ConsensusStateWithHeightProtoMsg { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; + value: Uint8Array; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeightAmino { + /** consensus state height */ + height?: HeightAmino; + /** consensus state */ + consensus_state?: AnyAmino; +} +export interface ConsensusStateWithHeightAminoMsg { + type: "cosmos-sdk/ConsensusStateWithHeight"; + value: ConsensusStateWithHeightAmino; +} +/** + * ConsensusStateWithHeight defines a consensus state with an additional height + * field. + */ +export interface ConsensusStateWithHeightSDKType { + height: HeightSDKType; + consensus_state?: AnySDKType; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStates { + /** client identifier */ + clientId: string; + /** consensus states and their heights associated with the client */ + consensusStates: ConsensusStateWithHeight[]; +} +export interface ClientConsensusStatesProtoMsg { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; + value: Uint8Array; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStatesAmino { + /** client identifier */ + client_id?: string; + /** consensus states and their heights associated with the client */ + consensus_states?: ConsensusStateWithHeightAmino[]; +} +export interface ClientConsensusStatesAminoMsg { + type: "cosmos-sdk/ClientConsensusStates"; + value: ClientConsensusStatesAmino; +} +/** + * ClientConsensusStates defines all the stored consensus states for a given + * client. + */ +export interface ClientConsensusStatesSDKType { + client_id: string; + consensus_states: ConsensusStateWithHeightSDKType[]; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposal { + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; + /** the title of the update proposal */ + title: string; + /** the description of the proposal */ + description: string; + /** the client identifier for the client to be updated if the proposal passes */ + subjectClientId: string; + /** + * the substitute client identifier for the client standing in for the subject + * client + */ + substituteClientId: string; +} +export interface ClientUpdateProposalProtoMsg { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; + value: Uint8Array; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposalAmino { + /** the title of the update proposal */ + title?: string; + /** the description of the proposal */ + description?: string; + /** the client identifier for the client to be updated if the proposal passes */ + subject_client_id?: string; + /** + * the substitute client identifier for the client standing in for the subject + * client + */ + substitute_client_id?: string; +} +export interface ClientUpdateProposalAminoMsg { + type: "cosmos-sdk/ClientUpdateProposal"; + value: ClientUpdateProposalAmino; +} +/** + * ClientUpdateProposal is a governance proposal. If it passes, the substitute + * client's latest consensus state is copied over to the subject client. The proposal + * handler may fail if the subject and the substitute do not match in client and + * chain parameters (with exception to latest height, frozen height, and chain-id). + */ +export interface ClientUpdateProposalSDKType { + $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; + title: string; + description: string; + subject_client_id: string; + substitute_client_id: string; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposal { + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; + title: string; + description: string; + plan: Plan; + /** + * An UpgradedClientState must be provided to perform an IBC breaking upgrade. + * This will make the chain commit to the correct upgraded (self) client state + * before the upgrade occurs, so that connecting chains can verify that the + * new upgraded client is valid by verifying a proof on the previous version + * of the chain. This will allow IBC connections to persist smoothly across + * planned chain upgrades + */ + upgradedClientState?: Any; +} +export interface UpgradeProposalProtoMsg { + typeUrl: "/ibc.core.client.v1.UpgradeProposal"; + value: Uint8Array; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposalAmino { + title?: string; + description?: string; + plan?: PlanAmino; + /** + * An UpgradedClientState must be provided to perform an IBC breaking upgrade. + * This will make the chain commit to the correct upgraded (self) client state + * before the upgrade occurs, so that connecting chains can verify that the + * new upgraded client is valid by verifying a proof on the previous version + * of the chain. This will allow IBC connections to persist smoothly across + * planned chain upgrades + */ + upgraded_client_state?: AnyAmino; +} +export interface UpgradeProposalAminoMsg { + type: "cosmos-sdk/UpgradeProposal"; + value: UpgradeProposalAmino; +} +/** + * UpgradeProposal is a gov Content type for initiating an IBC breaking + * upgrade. + */ +export interface UpgradeProposalSDKType { + $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; + title: string; + description: string; + plan: PlanSDKType; + upgraded_client_state?: AnySDKType; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface Height { + /** the revision that the client is currently on */ + revisionNumber: bigint; + /** the height within the given revision */ + revisionHeight: bigint; +} +export interface HeightProtoMsg { + typeUrl: "/ibc.core.client.v1.Height"; + value: Uint8Array; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface HeightAmino { + /** the revision that the client is currently on */ + revision_number?: string; + /** the height within the given revision */ + revision_height?: string; +} +export interface HeightAminoMsg { + type: "cosmos-sdk/Height"; + value: HeightAmino; +} +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * + * Normally the RevisionHeight is incremented at each height while keeping + * RevisionNumber the same. However some consensus algorithms may choose to + * reset the height in certain conditions e.g. hard forks, state-machine + * breaking changes In these cases, the RevisionNumber is incremented so that + * height continues to be monitonically increasing even as the RevisionHeight + * gets reset + */ +export interface HeightSDKType { + revision_number: bigint; + revision_height: bigint; +} +/** Params defines the set of IBC light client parameters. */ +export interface Params { + /** allowed_clients defines the list of allowed client state types. */ + allowedClients: string[]; +} +export interface ParamsProtoMsg { + typeUrl: "/ibc.core.client.v1.Params"; + value: Uint8Array; +} +/** Params defines the set of IBC light client parameters. */ +export interface ParamsAmino { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; +} +export interface ParamsAminoMsg { + type: "cosmos-sdk/Params"; + value: ParamsAmino; +} +/** Params defines the set of IBC light client parameters. */ +export interface ParamsSDKType { + allowed_clients: string[]; +} +function createBaseIdentifiedClientState(): IdentifiedClientState { + return { + clientId: "", + clientState: undefined + }; +} +export const IdentifiedClientState = { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + encode(message: IdentifiedClientState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedClientState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): IdentifiedClientState { + const message = createBaseIdentifiedClientState(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + return message; + }, + fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState { + const message = createBaseIdentifiedClientState(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + return message; + }, + toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + return obj; + }, + fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState { + return IdentifiedClientState.fromAmino(object.value); + }, + toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg { + return { + type: "cosmos-sdk/IdentifiedClientState", + value: IdentifiedClientState.toAmino(message) + }; + }, + fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState { + return IdentifiedClientState.decode(message.value); + }, + toProto(message: IdentifiedClientState): Uint8Array { + return IdentifiedClientState.encode(message).finish(); + }, + toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedClientState", + value: IdentifiedClientState.encode(message).finish() + }; + } +}; +function createBaseConsensusStateWithHeight(): ConsensusStateWithHeight { + return { + height: Height.fromPartial({}), + consensusState: undefined + }; +} +export const ConsensusStateWithHeight = { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + encode(message: ConsensusStateWithHeight, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== undefined) { + Height.encode(message.height, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusStateWithHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = Height.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConsensusStateWithHeight { + const message = createBaseConsensusStateWithHeight(); + message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + return message; + }, + fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight { + const message = createBaseConsensusStateWithHeight(); + if (object.height !== undefined && object.height !== null) { + message.height = Height.fromAmino(object.height); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + return message; + }, + toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino { + const obj: any = {}; + obj.height = message.height ? Height.toAmino(message.height) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + return obj; + }, + fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight { + return ConsensusStateWithHeight.fromAmino(object.value); + }, + toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg { + return { + type: "cosmos-sdk/ConsensusStateWithHeight", + value: ConsensusStateWithHeight.toAmino(message) + }; + }, + fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight { + return ConsensusStateWithHeight.decode(message.value); + }, + toProto(message: ConsensusStateWithHeight): Uint8Array { + return ConsensusStateWithHeight.encode(message).finish(); + }, + toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", + value: ConsensusStateWithHeight.encode(message).finish() + }; + } +}; +function createBaseClientConsensusStates(): ClientConsensusStates { + return { + clientId: "", + consensusStates: [] + }; +} +export const ClientConsensusStates = { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + encode(message: ClientConsensusStates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.consensusStates) { + ConsensusStateWithHeight.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientConsensusStates(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClientConsensusStates { + const message = createBaseClientConsensusStates(); + message.clientId = object.clientId ?? ""; + message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates { + const message = createBaseClientConsensusStates(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; + return message; + }, + toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); + } else { + obj.consensus_states = message.consensusStates; + } + return obj; + }, + fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates { + return ClientConsensusStates.fromAmino(object.value); + }, + toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg { + return { + type: "cosmos-sdk/ClientConsensusStates", + value: ClientConsensusStates.toAmino(message) + }; + }, + fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates { + return ClientConsensusStates.decode(message.value); + }, + toProto(message: ClientConsensusStates): Uint8Array { + return ClientConsensusStates.encode(message).finish(); + }, + toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.ClientConsensusStates", + value: ClientConsensusStates.encode(message).finish() + }; + } +}; +function createBaseClientUpdateProposal(): ClientUpdateProposal { + return { + $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + title: "", + description: "", + subjectClientId: "", + substituteClientId: "" + }; +} +export const ClientUpdateProposal = { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + encode(message: ClientUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.subjectClientId !== "") { + writer.uint32(26).string(message.subjectClientId); + } + if (message.substituteClientId !== "") { + writer.uint32(34).string(message.substituteClientId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientUpdateProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.subjectClientId = reader.string(); + break; + case 4: + message.substituteClientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClientUpdateProposal { + const message = createBaseClientUpdateProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.subjectClientId = object.subjectClientId ?? ""; + message.substituteClientId = object.substituteClientId ?? ""; + return message; + }, + fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal { + const message = createBaseClientUpdateProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.subject_client_id !== undefined && object.subject_client_id !== null) { + message.subjectClientId = object.subject_client_id; + } + if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { + message.substituteClientId = object.substitute_client_id; + } + return message; + }, + toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; + obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; + return obj; + }, + fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal { + return ClientUpdateProposal.fromAmino(object.value); + }, + toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg { + return { + type: "cosmos-sdk/ClientUpdateProposal", + value: ClientUpdateProposal.toAmino(message) + }; + }, + fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal { + return ClientUpdateProposal.decode(message.value); + }, + toProto(message: ClientUpdateProposal): Uint8Array { + return ClientUpdateProposal.encode(message).finish(); + }, + toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", + value: ClientUpdateProposal.encode(message).finish() + }; + } +}; +function createBaseUpgradeProposal(): UpgradeProposal { + return { + $typeUrl: "/ibc.core.client.v1.UpgradeProposal", + title: "", + description: "", + plan: Plan.fromPartial({}), + upgradedClientState: undefined + }; +} +export const UpgradeProposal = { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + encode(message: UpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.plan !== undefined) { + Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); + } + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpgradeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = Plan.decode(reader, reader.uint32()); + break; + case 4: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): UpgradeProposal { + const message = createBaseUpgradeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object: UpgradeProposalAmino): UpgradeProposal { + const message = createBaseUpgradeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.plan !== undefined && object.plan !== null) { + message.plan = Plan.fromAmino(object.plan); + } + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message: UpgradeProposal): UpgradeProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal { + return UpgradeProposal.fromAmino(object.value); + }, + toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg { + return { + type: "cosmos-sdk/UpgradeProposal", + value: UpgradeProposal.toAmino(message) + }; + }, + fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal { + return UpgradeProposal.decode(message.value); + }, + toProto(message: UpgradeProposal): Uint8Array { + return UpgradeProposal.encode(message).finish(); + }, + toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.UpgradeProposal", + value: UpgradeProposal.encode(message).finish() + }; + } +}; +function createBaseHeight(): Height { + return { + revisionNumber: BigInt(0), + revisionHeight: BigInt(0) + }; +} +export const Height = { + typeUrl: "/ibc.core.client.v1.Height", + encode(message: Height, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(8).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Height { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeight(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.revisionNumber = reader.uint64(); + break; + case 2: + message.revisionHeight = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Height { + const message = createBaseHeight(); + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object: HeightAmino): Height { + return { + revisionNumber: BigInt(object.revision_number || "0"), + revisionHeight: BigInt(object.revision_height || "0") + }; + }, + toAmino(message: Height): HeightAmino { + const obj: any = {}; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object: HeightAminoMsg): Height { + return Height.fromAmino(object.value); + }, + toAminoMsg(message: Height): HeightAminoMsg { + return { + type: "cosmos-sdk/Height", + value: Height.toAmino(message) + }; + }, + fromProtoMsg(message: HeightProtoMsg): Height { + return Height.decode(message.value); + }, + toProto(message: Height): Uint8Array { + return Height.encode(message).finish(); + }, + toProtoMsg(message: Height): HeightProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.Height", + value: Height.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + allowedClients: [] + }; +} +export const Params = { + typeUrl: "/ibc.core.client.v1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowedClients) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedClients.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.allowedClients = object.allowedClients?.map(e => e) || []; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + message.allowedClients = object.allowed_clients?.map(e => e) || []; + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + if (message.allowedClients) { + obj.allowed_clients = message.allowedClients.map(e => e); + } else { + obj.allowed_clients = message.allowedClients; + } + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + toAminoMsg(message: Params): ParamsAminoMsg { + return { + type: "cosmos-sdk/Params", + value: Params.toAmino(message) + }; + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.Params", + value: Params.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/genesis.ts b/packages/api/src/ibc/core/client/v1/genesis.ts new file mode 100644 index 00000000..11c02eed --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/genesis.ts @@ -0,0 +1,416 @@ +//@ts-nocheck +import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisState { + /** client states with their corresponding identifiers */ + clients: IdentifiedClientState[]; + /** consensus states from each client */ + clientsConsensus: ClientConsensusStates[]; + /** metadata from each client */ + clientsMetadata: IdentifiedGenesisMetadata[]; + params: Params; + /** create localhost on initialization */ + createLocalhost: boolean; + /** the sequence for the next generated client identifier */ + nextClientSequence: bigint; +} +export interface GenesisStateProtoMsg { + typeUrl: "/ibc.core.client.v1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisStateAmino { + /** client states with their corresponding identifiers */ + clients?: IdentifiedClientStateAmino[]; + /** consensus states from each client */ + clients_consensus?: ClientConsensusStatesAmino[]; + /** metadata from each client */ + clients_metadata?: IdentifiedGenesisMetadataAmino[]; + params?: ParamsAmino; + /** create localhost on initialization */ + create_localhost?: boolean; + /** the sequence for the next generated client identifier */ + next_client_sequence?: string; +} +export interface GenesisStateAminoMsg { + type: "cosmos-sdk/GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines the ibc client submodule's genesis state. */ +export interface GenesisStateSDKType { + clients: IdentifiedClientStateSDKType[]; + clients_consensus: ClientConsensusStatesSDKType[]; + clients_metadata: IdentifiedGenesisMetadataSDKType[]; + params: ParamsSDKType; + create_localhost: boolean; + next_client_sequence: bigint; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadata { + /** store key of metadata without clientID-prefix */ + key: Uint8Array; + /** metadata value */ + value: Uint8Array; +} +export interface GenesisMetadataProtoMsg { + typeUrl: "/ibc.core.client.v1.GenesisMetadata"; + value: Uint8Array; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadataAmino { + /** store key of metadata without clientID-prefix */ + key?: string; + /** metadata value */ + value?: string; +} +export interface GenesisMetadataAminoMsg { + type: "cosmos-sdk/GenesisMetadata"; + value: GenesisMetadataAmino; +} +/** + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata + */ +export interface GenesisMetadataSDKType { + key: Uint8Array; + value: Uint8Array; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadata { + clientId: string; + clientMetadata: GenesisMetadata[]; +} +export interface IdentifiedGenesisMetadataProtoMsg { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; + value: Uint8Array; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadataAmino { + client_id?: string; + client_metadata?: GenesisMetadataAmino[]; +} +export interface IdentifiedGenesisMetadataAminoMsg { + type: "cosmos-sdk/IdentifiedGenesisMetadata"; + value: IdentifiedGenesisMetadataAmino; +} +/** + * IdentifiedGenesisMetadata has the client metadata with the corresponding + * client id. + */ +export interface IdentifiedGenesisMetadataSDKType { + client_id: string; + client_metadata: GenesisMetadataSDKType[]; +} +function createBaseGenesisState(): GenesisState { + return { + clients: [], + clientsConsensus: [], + clientsMetadata: [], + params: Params.fromPartial({}), + createLocalhost: false, + nextClientSequence: BigInt(0) + }; +} +export const GenesisState = { + typeUrl: "/ibc.core.client.v1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.clients) { + IdentifiedClientState.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.clientsConsensus) { + ClientConsensusStates.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.clientsMetadata) { + IdentifiedGenesisMetadata.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(34).fork()).ldelim(); + } + if (message.createLocalhost === true) { + writer.uint32(40).bool(message.createLocalhost); + } + if (message.nextClientSequence !== BigInt(0)) { + writer.uint32(48).uint64(message.nextClientSequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clients.push(IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.clientsConsensus.push(ClientConsensusStates.decode(reader, reader.uint32())); + break; + case 3: + message.clientsMetadata.push(IdentifiedGenesisMetadata.decode(reader, reader.uint32())); + break; + case 4: + message.params = Params.decode(reader, reader.uint32()); + break; + case 5: + message.createLocalhost = reader.bool(); + break; + case 6: + message.nextClientSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => IdentifiedClientState.fromPartial(e)) || []; + message.clientsConsensus = object.clientsConsensus?.map(e => ClientConsensusStates.fromPartial(e)) || []; + message.clientsMetadata = object.clientsMetadata?.map(e => IdentifiedGenesisMetadata.fromPartial(e)) || []; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.createLocalhost = object.createLocalhost ?? false; + message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + message.clients = object.clients?.map(e => IdentifiedClientState.fromAmino(e)) || []; + message.clientsConsensus = object.clients_consensus?.map(e => ClientConsensusStates.fromAmino(e)) || []; + message.clientsMetadata = object.clients_metadata?.map(e => IdentifiedGenesisMetadata.fromAmino(e)) || []; + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + if (object.create_localhost !== undefined && object.create_localhost !== null) { + message.createLocalhost = object.create_localhost; + } + if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { + message.nextClientSequence = BigInt(object.next_client_sequence); + } + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + if (message.clients) { + obj.clients = message.clients.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); + } else { + obj.clients = message.clients; + } + if (message.clientsConsensus) { + obj.clients_consensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toAmino(e) : undefined); + } else { + obj.clients_consensus = message.clientsConsensus; + } + if (message.clientsMetadata) { + obj.clients_metadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toAmino(e) : undefined); + } else { + obj.clients_metadata = message.clientsMetadata; + } + obj.params = message.params ? Params.toAmino(message.params) : undefined; + obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; + obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + toAminoMsg(message: GenesisState): GenesisStateAminoMsg { + return { + type: "cosmos-sdk/GenesisState", + value: GenesisState.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseGenesisMetadata(): GenesisMetadata { + return { + key: new Uint8Array(), + value: new Uint8Array() + }; +} +export const GenesisMetadata = { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + encode(message: GenesisMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisMetadata { + const message = createBaseGenesisMetadata(); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + return message; + }, + fromAmino(object: GenesisMetadataAmino): GenesisMetadata { + const message = createBaseGenesisMetadata(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = bytesFromBase64(object.value); + } + return message; + }, + toAmino(message: GenesisMetadata): GenesisMetadataAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.value = message.value ? base64FromBytes(message.value) : undefined; + return obj; + }, + fromAminoMsg(object: GenesisMetadataAminoMsg): GenesisMetadata { + return GenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message: GenesisMetadata): GenesisMetadataAminoMsg { + return { + type: "cosmos-sdk/GenesisMetadata", + value: GenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: GenesisMetadataProtoMsg): GenesisMetadata { + return GenesisMetadata.decode(message.value); + }, + toProto(message: GenesisMetadata): Uint8Array { + return GenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.GenesisMetadata", + value: GenesisMetadata.encode(message).finish() + }; + } +}; +function createBaseIdentifiedGenesisMetadata(): IdentifiedGenesisMetadata { + return { + clientId: "", + clientMetadata: [] + }; +} +export const IdentifiedGenesisMetadata = { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + encode(message: IdentifiedGenesisMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + for (const v of message.clientMetadata) { + GenesisMetadata.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIdentifiedGenesisMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMetadata.push(GenesisMetadata.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): IdentifiedGenesisMetadata { + const message = createBaseIdentifiedGenesisMetadata(); + message.clientId = object.clientId ?? ""; + message.clientMetadata = object.clientMetadata?.map(e => GenesisMetadata.fromPartial(e)) || []; + return message; + }, + fromAmino(object: IdentifiedGenesisMetadataAmino): IdentifiedGenesisMetadata { + const message = createBaseIdentifiedGenesisMetadata(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + message.clientMetadata = object.client_metadata?.map(e => GenesisMetadata.fromAmino(e)) || []; + return message; + }, + toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + if (message.clientMetadata) { + obj.client_metadata = message.clientMetadata.map(e => e ? GenesisMetadata.toAmino(e) : undefined); + } else { + obj.client_metadata = message.clientMetadata; + } + return obj; + }, + fromAminoMsg(object: IdentifiedGenesisMetadataAminoMsg): IdentifiedGenesisMetadata { + return IdentifiedGenesisMetadata.fromAmino(object.value); + }, + toAminoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAminoMsg { + return { + type: "cosmos-sdk/IdentifiedGenesisMetadata", + value: IdentifiedGenesisMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: IdentifiedGenesisMetadataProtoMsg): IdentifiedGenesisMetadata { + return IdentifiedGenesisMetadata.decode(message.value); + }, + toProto(message: IdentifiedGenesisMetadata): Uint8Array { + return IdentifiedGenesisMetadata.encode(message).finish(); + }, + toProtoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", + value: IdentifiedGenesisMetadata.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/query.lcd.ts b/packages/api/src/ibc/core/client/v1/query.lcd.ts new file mode 100644 index 00000000..3fc23a1c --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/query.lcd.ts @@ -0,0 +1,96 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + /* ClientState queries an IBC light client. */ + async clientState(params: QueryClientStateRequest): Promise { + const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientStates queries all the IBC light clients of a chain. */ + async clientStates(params: QueryClientStatesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/client_states`; + return await this.req.get(endpoint, options); + } + /* ConsensusState queries a consensus state associated with a client state at + a given height. */ + async consensusState(params: QueryConsensusStateRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.latestHeight !== "undefined") { + options.params.latest_height = params.latestHeight; + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStates queries all the consensus state associated with a given + client. */ + async consensusStates(params: QueryConsensusStatesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; + return await this.req.get(endpoint, options); + } + /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ + async consensusStateHeights(params: QueryConsensusStateHeightsRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; + return await this.req.get(endpoint, options); + } + /* Status queries the status of an IBC client. */ + async clientStatus(params: QueryClientStatusRequest): Promise { + const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; + return await this.req.get(endpoint); + } + /* ClientParams queries all parameters of the ibc client. */ + async clientParams(_params: QueryClientParamsRequest = {}): Promise { + const endpoint = `ibc/client/v1/params`; + return await this.req.get(endpoint); + } + /* UpgradedClientState queries an Upgraded IBC light client. */ + async upgradedClientState(_params: QueryUpgradedClientStateRequest = {}): Promise { + const endpoint = `ibc/core/client/v1/upgraded_client_states`; + return await this.req.get(endpoint); + } + /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ + async upgradedConsensusState(_params: QueryUpgradedConsensusStateRequest = {}): Promise { + const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/query.rpc.Query.ts b/packages/api/src/ibc/core/client/v1/query.rpc.Query.ts new file mode 100644 index 00000000..34301774 --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/query.rpc.Query.ts @@ -0,0 +1,127 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** ClientState queries an IBC light client. */ + clientState(request: QueryClientStateRequest): Promise; + /** ClientStates queries all the IBC light clients of a chain. */ + clientStates(request?: QueryClientStatesRequest): Promise; + /** + * ConsensusState queries a consensus state associated with a client state at + * a given height. + */ + consensusState(request: QueryConsensusStateRequest): Promise; + /** + * ConsensusStates queries all the consensus state associated with a given + * client. + */ + consensusStates(request: QueryConsensusStatesRequest): Promise; + /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; + /** Status queries the status of an IBC client. */ + clientStatus(request: QueryClientStatusRequest): Promise; + /** ClientParams queries all parameters of the ibc client. */ + clientParams(request?: QueryClientParamsRequest): Promise; + /** UpgradedClientState queries an Upgraded IBC light client. */ + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.consensusStateHeights = this.consensusStateHeights.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + clientState(request: QueryClientStateRequest): Promise { + const data = QueryClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); + return promise.then(data => QueryClientStateResponse.decode(new BinaryReader(data))); + } + clientStates(request: QueryClientStatesRequest = { + pagination: undefined + }): Promise { + const data = QueryClientStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); + return promise.then(data => QueryClientStatesResponse.decode(new BinaryReader(data))); + } + consensusState(request: QueryConsensusStateRequest): Promise { + const data = QueryConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); + return promise.then(data => QueryConsensusStateResponse.decode(new BinaryReader(data))); + } + consensusStates(request: QueryConsensusStatesRequest): Promise { + const data = QueryConsensusStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); + return promise.then(data => QueryConsensusStatesResponse.decode(new BinaryReader(data))); + } + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise { + const data = QueryConsensusStateHeightsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); + return promise.then(data => QueryConsensusStateHeightsResponse.decode(new BinaryReader(data))); + } + clientStatus(request: QueryClientStatusRequest): Promise { + const data = QueryClientStatusRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); + return promise.then(data => QueryClientStatusResponse.decode(new BinaryReader(data))); + } + clientParams(request: QueryClientParamsRequest = {}): Promise { + const data = QueryClientParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); + return promise.then(data => QueryClientParamsResponse.decode(new BinaryReader(data))); + } + upgradedClientState(request: QueryUpgradedClientStateRequest = {}): Promise { + const data = QueryUpgradedClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); + return promise.then(data => QueryUpgradedClientStateResponse.decode(new BinaryReader(data))); + } + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest = {}): Promise { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + clientState(request: QueryClientStateRequest): Promise { + return queryService.clientState(request); + }, + clientStates(request?: QueryClientStatesRequest): Promise { + return queryService.clientStates(request); + }, + consensusState(request: QueryConsensusStateRequest): Promise { + return queryService.consensusState(request); + }, + consensusStates(request: QueryConsensusStatesRequest): Promise { + return queryService.consensusStates(request); + }, + consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise { + return queryService.consensusStateHeights(request); + }, + clientStatus(request: QueryClientStatusRequest): Promise { + return queryService.clientStatus(request); + }, + clientParams(request?: QueryClientParamsRequest): Promise { + return queryService.clientParams(request); + }, + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise { + return queryService.upgradedClientState(request); + }, + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise { + return queryService.upgradedConsensusState(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/query.ts b/packages/api/src/ibc/core/client/v1/query.ts new file mode 100644 index 00000000..fefb8050 --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/query.ts @@ -0,0 +1,1963 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequest { + /** client state unique identifier */ + clientId: string; +} +export interface QueryClientStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; + value: Uint8Array; +} +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequestAmino { + /** client state unique identifier */ + client_id?: string; +} +export interface QueryClientStateRequestAminoMsg { + type: "cosmos-sdk/QueryClientStateRequest"; + value: QueryClientStateRequestAmino; +} +/** + * QueryClientStateRequest is the request type for the Query/ClientState RPC + * method + */ +export interface QueryClientStateRequestSDKType { + client_id: string; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponse { + /** client state associated with the request identifier */ + clientState?: Any; + /** merkle proof of existence */ + proof: Uint8Array; + /** height at which the proof was retrieved */ + proofHeight: Height; +} +export interface QueryClientStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; + value: Uint8Array; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponseAmino { + /** client state associated with the request identifier */ + client_state?: AnyAmino; + /** merkle proof of existence */ + proof?: string; + /** height at which the proof was retrieved */ + proof_height?: HeightAmino; +} +export interface QueryClientStateResponseAminoMsg { + type: "cosmos-sdk/QueryClientStateResponse"; + value: QueryClientStateResponseAmino; +} +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface QueryClientStateResponseSDKType { + client_state?: AnySDKType; + proof: Uint8Array; + proof_height: HeightSDKType; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequest { + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryClientStatesRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; + value: Uint8Array; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequestAmino { + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryClientStatesRequestAminoMsg { + type: "cosmos-sdk/QueryClientStatesRequest"; + value: QueryClientStatesRequestAmino; +} +/** + * QueryClientStatesRequest is the request type for the Query/ClientStates RPC + * method + */ +export interface QueryClientStatesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponse { + /** list of stored ClientStates of the chain. */ + clientStates: IdentifiedClientState[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryClientStatesResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; + value: Uint8Array; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponseAmino { + /** list of stored ClientStates of the chain. */ + client_states?: IdentifiedClientStateAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryClientStatesResponseAminoMsg { + type: "cosmos-sdk/QueryClientStatesResponse"; + value: QueryClientStatesResponseAmino; +} +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface QueryClientStatesResponseSDKType { + client_states: IdentifiedClientStateSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequest { + /** client identifier */ + clientId: string; + /** consensus state revision number */ + revisionNumber: bigint; + /** consensus state revision height */ + revisionHeight: bigint; + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState + */ + latestHeight: boolean; +} +export interface QueryConsensusStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequestAmino { + /** client identifier */ + client_id?: string; + /** consensus state revision number */ + revision_number?: string; + /** consensus state revision height */ + revision_height?: string; + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState + */ + latest_height?: boolean; +} +export interface QueryConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStateRequest"; + value: QueryConsensusStateRequestAmino; +} +/** + * QueryConsensusStateRequest is the request type for the Query/ConsensusState + * RPC method. Besides the consensus state, it includes a proof and the height + * from which the proof was retrieved. + */ +export interface QueryConsensusStateRequestSDKType { + client_id: string; + revision_number: bigint; + revision_height: bigint; + latest_height: boolean; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponse { + /** consensus state associated with the client identifier at the given height */ + consensusState?: Any; + /** merkle proof of existence */ + proof: Uint8Array; + /** height at which the proof was retrieved */ + proofHeight: Height; +} +export interface QueryConsensusStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponseAmino { + /** consensus state associated with the client identifier at the given height */ + consensus_state?: AnyAmino; + /** merkle proof of existence */ + proof?: string; + /** height at which the proof was retrieved */ + proof_height?: HeightAmino; +} +export interface QueryConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStateResponse"; + value: QueryConsensusStateResponseAmino; +} +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface QueryConsensusStateResponseSDKType { + consensus_state?: AnySDKType; + proof: Uint8Array; + proof_height: HeightSDKType; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequest { + /** client identifier */ + clientId: string; + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryConsensusStatesRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequestAmino { + /** client identifier */ + client_id?: string; + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryConsensusStatesRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStatesRequest"; + value: QueryConsensusStatesRequestAmino; +} +/** + * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates + * RPC method. + */ +export interface QueryConsensusStatesRequestSDKType { + client_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponse { + /** consensus states associated with the identifier */ + consensusStates: ConsensusStateWithHeight[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryConsensusStatesResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponseAmino { + /** consensus states associated with the identifier */ + consensus_states?: ConsensusStateWithHeightAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryConsensusStatesResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStatesResponse"; + value: QueryConsensusStatesResponseAmino; +} +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface QueryConsensusStatesResponseSDKType { + consensus_states: ConsensusStateWithHeightSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequest { + /** client identifier */ + clientId: string; + /** pagination request */ + pagination?: PageRequest; +} +export interface QueryConsensusStateHeightsRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; + value: Uint8Array; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequestAmino { + /** client identifier */ + client_id?: string; + /** pagination request */ + pagination?: PageRequestAmino; +} +export interface QueryConsensusStateHeightsRequestAminoMsg { + type: "cosmos-sdk/QueryConsensusStateHeightsRequest"; + value: QueryConsensusStateHeightsRequestAmino; +} +/** + * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights + * RPC method. + */ +export interface QueryConsensusStateHeightsRequestSDKType { + client_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponse { + /** consensus state heights */ + consensusStateHeights: Height[]; + /** pagination response */ + pagination?: PageResponse; +} +export interface QueryConsensusStateHeightsResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; + value: Uint8Array; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponseAmino { + /** consensus state heights */ + consensus_state_heights?: HeightAmino[]; + /** pagination response */ + pagination?: PageResponseAmino; +} +export interface QueryConsensusStateHeightsResponseAminoMsg { + type: "cosmos-sdk/QueryConsensusStateHeightsResponse"; + value: QueryConsensusStateHeightsResponseAmino; +} +/** + * QueryConsensusStateHeightsResponse is the response type for the + * Query/ConsensusStateHeights RPC method + */ +export interface QueryConsensusStateHeightsResponseSDKType { + consensus_state_heights: HeightSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequest { + /** client unique identifier */ + clientId: string; +} +export interface QueryClientStatusRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; + value: Uint8Array; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequestAmino { + /** client unique identifier */ + client_id?: string; +} +export interface QueryClientStatusRequestAminoMsg { + type: "cosmos-sdk/QueryClientStatusRequest"; + value: QueryClientStatusRequestAmino; +} +/** + * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC + * method + */ +export interface QueryClientStatusRequestSDKType { + client_id: string; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponse { + status: string; +} +export interface QueryClientStatusResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; + value: Uint8Array; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponseAmino { + status?: string; +} +export interface QueryClientStatusResponseAminoMsg { + type: "cosmos-sdk/QueryClientStatusResponse"; + value: QueryClientStatusResponseAmino; +} +/** + * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC + * method. It returns the current status of the IBC client. + */ +export interface QueryClientStatusResponseSDKType { + status: string; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequest {} +export interface QueryClientParamsRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; + value: Uint8Array; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequestAmino {} +export interface QueryClientParamsRequestAminoMsg { + type: "cosmos-sdk/QueryClientParamsRequest"; + value: QueryClientParamsRequestAmino; +} +/** + * QueryClientParamsRequest is the request type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsRequestSDKType {} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponse { + /** params defines the parameters of the module. */ + params?: Params; +} +export interface QueryClientParamsResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; + value: Uint8Array; +} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponseAmino { + /** params defines the parameters of the module. */ + params?: ParamsAmino; +} +export interface QueryClientParamsResponseAminoMsg { + type: "cosmos-sdk/QueryClientParamsResponse"; + value: QueryClientParamsResponseAmino; +} +/** + * QueryClientParamsResponse is the response type for the Query/ClientParams RPC + * method. + */ +export interface QueryClientParamsResponseSDKType { + params?: ParamsSDKType; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequest {} +export interface QueryUpgradedClientStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequestAmino {} +export interface QueryUpgradedClientStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedClientStateRequest"; + value: QueryUpgradedClientStateRequestAmino; +} +/** + * QueryUpgradedClientStateRequest is the request type for the + * Query/UpgradedClientState RPC method + */ +export interface QueryUpgradedClientStateRequestSDKType {} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponse { + /** client state associated with the request identifier */ + upgradedClientState?: Any; +} +export interface QueryUpgradedClientStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponseAmino { + /** client state associated with the request identifier */ + upgraded_client_state?: AnyAmino; +} +export interface QueryUpgradedClientStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedClientStateResponse"; + value: QueryUpgradedClientStateResponseAmino; +} +/** + * QueryUpgradedClientStateResponse is the response type for the + * Query/UpgradedClientState RPC method. + */ +export interface QueryUpgradedClientStateResponseSDKType { + upgraded_client_state?: AnySDKType; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequest {} +export interface QueryUpgradedConsensusStateRequestProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequestAmino {} +export interface QueryUpgradedConsensusStateRequestAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; + value: QueryUpgradedConsensusStateRequestAmino; +} +/** + * QueryUpgradedConsensusStateRequest is the request type for the + * Query/UpgradedConsensusState RPC method + */ +export interface QueryUpgradedConsensusStateRequestSDKType {} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponse { + /** Consensus state associated with the request identifier */ + upgradedConsensusState?: Any; +} +export interface QueryUpgradedConsensusStateResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; + value: Uint8Array; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponseAmino { + /** Consensus state associated with the request identifier */ + upgraded_consensus_state?: AnyAmino; +} +export interface QueryUpgradedConsensusStateResponseAminoMsg { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; + value: QueryUpgradedConsensusStateResponseAmino; +} +/** + * QueryUpgradedConsensusStateResponse is the response type for the + * Query/UpgradedConsensusState RPC method. + */ +export interface QueryUpgradedConsensusStateResponseSDKType { + upgraded_consensus_state?: AnySDKType; +} +function createBaseQueryClientStateRequest(): QueryClientStateRequest { + return { + clientId: "" + }; +} +export const QueryClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + encode(message: QueryClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStateRequest { + const message = createBaseQueryClientStateRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest { + const message = createBaseQueryClientStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest { + return QueryClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg { + return { + type: "cosmos-sdk/QueryClientStateRequest", + value: QueryClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest { + return QueryClientStateRequest.decode(message.value); + }, + toProto(message: QueryClientStateRequest): Uint8Array { + return QueryClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", + value: QueryClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStateResponse(): QueryClientStateResponse { + return { + clientState: undefined, + proof: new Uint8Array(), + proofHeight: Height.fromPartial({}) + }; +} +export const QueryClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + encode(message: QueryClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStateResponse { + const message = createBaseQueryClientStateResponse(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse { + const message = createBaseQueryClientStateResponse(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = bytesFromBase64(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino { + const obj: any = {}; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; + obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse { + return QueryClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg { + return { + type: "cosmos-sdk/QueryClientStateResponse", + value: QueryClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse { + return QueryClientStateResponse.decode(message.value); + }, + toProto(message: QueryClientStateResponse): Uint8Array { + return QueryClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", + value: QueryClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesRequest(): QueryClientStatesRequest { + return { + pagination: undefined + }; +} +export const QueryClientStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + encode(message: QueryClientStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStatesRequest { + const message = createBaseQueryClientStatesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest { + const message = createBaseQueryClientStatesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest { + return QueryClientStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryClientStatesRequest", + value: QueryClientStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest { + return QueryClientStatesRequest.decode(message.value); + }, + toProto(message: QueryClientStatesRequest): Uint8Array { + return QueryClientStatesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", + value: QueryClientStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatesResponse(): QueryClientStatesResponse { + return { + clientStates: [], + pagination: undefined + }; +} +export const QueryClientStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + encode(message: QueryClientStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.clientStates) { + IdentifiedClientState.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStatesResponse { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.clientStates?.map(e => IdentifiedClientState.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse { + const message = createBaseQueryClientStatesResponse(); + message.clientStates = object.client_states?.map(e => IdentifiedClientState.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino { + const obj: any = {}; + if (message.clientStates) { + obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); + } else { + obj.client_states = message.clientStates; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse { + return QueryClientStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryClientStatesResponse", + value: QueryClientStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse { + return QueryClientStatesResponse.decode(message.value); + }, + toProto(message: QueryClientStatesResponse): Uint8Array { + return QueryClientStatesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", + value: QueryClientStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateRequest(): QueryConsensusStateRequest { + return { + clientId: "", + revisionNumber: BigInt(0), + revisionHeight: BigInt(0), + latestHeight: false + }; +} +export const QueryConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + encode(message: QueryConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.revisionNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.revisionNumber); + } + if (message.revisionHeight !== BigInt(0)) { + writer.uint32(24).uint64(message.revisionHeight); + } + if (message.latestHeight === true) { + writer.uint32(32).bool(message.latestHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.revisionNumber = reader.uint64(); + break; + case 3: + message.revisionHeight = reader.uint64(); + break; + case 4: + message.latestHeight = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStateRequest { + const message = createBaseQueryConsensusStateRequest(); + message.clientId = object.clientId ?? ""; + message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); + message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); + message.latestHeight = object.latestHeight ?? false; + return message; + }, + fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest { + const message = createBaseQueryConsensusStateRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.revision_number !== undefined && object.revision_number !== null) { + message.revisionNumber = BigInt(object.revision_number); + } + if (object.revision_height !== undefined && object.revision_height !== null) { + message.revisionHeight = BigInt(object.revision_height); + } + if (object.latest_height !== undefined && object.latest_height !== null) { + message.latestHeight = object.latest_height; + } + return message; + }, + toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; + return obj; + }, + fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest { + return QueryConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStateRequest", + value: QueryConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest { + return QueryConsensusStateRequest.decode(message.value); + }, + toProto(message: QueryConsensusStateRequest): Uint8Array { + return QueryConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", + value: QueryConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateResponse(): QueryConsensusStateResponse { + return { + consensusState: undefined, + proof: new Uint8Array(), + proofHeight: Height.fromPartial({}) + }; +} +export const QueryConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + encode(message: QueryConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); + } + if (message.proof.length !== 0) { + writer.uint32(18).bytes(message.proof); + } + if (message.proofHeight !== undefined) { + Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proofHeight = Height.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStateResponse { + const message = createBaseQueryConsensusStateResponse(); + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.proof = object.proof ?? new Uint8Array(); + message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; + return message; + }, + fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse { + const message = createBaseQueryConsensusStateResponse(); + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = bytesFromBase64(object.proof); + } + if (object.proof_height !== undefined && object.proof_height !== null) { + message.proofHeight = Height.fromAmino(object.proof_height); + } + return message; + }, + toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino { + const obj: any = {}; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; + obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; + return obj; + }, + fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse { + return QueryConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStateResponse", + value: QueryConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse { + return QueryConsensusStateResponse.decode(message.value); + }, + toProto(message: QueryConsensusStateResponse): Uint8Array { + return QueryConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", + value: QueryConsensusStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesRequest(): QueryConsensusStatesRequest { + return { + clientId: "", + pagination: undefined + }; +} +export const QueryConsensusStatesRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + encode(message: QueryConsensusStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStatesRequest { + const message = createBaseQueryConsensusStatesRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest { + const message = createBaseQueryConsensusStatesRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest { + return QueryConsensusStatesRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStatesRequest", + value: QueryConsensusStatesRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest { + return QueryConsensusStatesRequest.decode(message.value); + }, + toProto(message: QueryConsensusStatesRequest): Uint8Array { + return QueryConsensusStatesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", + value: QueryConsensusStatesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStatesResponse(): QueryConsensusStatesResponse { + return { + consensusStates: [], + pagination: undefined + }; +} +export const QueryConsensusStatesResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + encode(message: QueryConsensusStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.consensusStates) { + ConsensusStateWithHeight.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStatesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStatesResponse { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse { + const message = createBaseQueryConsensusStatesResponse(); + message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino { + const obj: any = {}; + if (message.consensusStates) { + obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); + } else { + obj.consensus_states = message.consensusStates; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse { + return QueryConsensusStatesResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStatesResponse", + value: QueryConsensusStatesResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse { + return QueryConsensusStatesResponse.decode(message.value); + }, + toProto(message: QueryConsensusStatesResponse): Uint8Array { + return QueryConsensusStatesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", + value: QueryConsensusStatesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsRequest(): QueryConsensusStateHeightsRequest { + return { + clientId: "", + pagination: undefined + }; +} +export const QueryConsensusStateHeightsRequest = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + encode(message: QueryConsensusStateHeightsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStateHeightsRequest { + const message = createBaseQueryConsensusStateHeightsRequest(); + message.clientId = object.clientId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest { + const message = createBaseQueryConsensusStateHeightsRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest { + return QueryConsensusStateHeightsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsRequest", + value: QueryConsensusStateHeightsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest { + return QueryConsensusStateHeightsRequest.decode(message.value); + }, + toProto(message: QueryConsensusStateHeightsRequest): Uint8Array { + return QueryConsensusStateHeightsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", + value: QueryConsensusStateHeightsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryConsensusStateHeightsResponse(): QueryConsensusStateHeightsResponse { + return { + consensusStateHeights: [], + pagination: undefined + }; +} +export const QueryConsensusStateHeightsResponse = { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + encode(message: QueryConsensusStateHeightsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.consensusStateHeights) { + Height.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryConsensusStateHeightsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusStateHeights.push(Height.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryConsensusStateHeightsResponse { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensusStateHeights?.map(e => Height.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse { + const message = createBaseQueryConsensusStateHeightsResponse(); + message.consensusStateHeights = object.consensus_state_heights?.map(e => Height.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino { + const obj: any = {}; + if (message.consensusStateHeights) { + obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? Height.toAmino(e) : undefined); + } else { + obj.consensus_state_heights = message.consensusStateHeights; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse { + return QueryConsensusStateHeightsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryConsensusStateHeightsResponse", + value: QueryConsensusStateHeightsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse { + return QueryConsensusStateHeightsResponse.decode(message.value); + }, + toProto(message: QueryConsensusStateHeightsResponse): Uint8Array { + return QueryConsensusStateHeightsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", + value: QueryConsensusStateHeightsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusRequest(): QueryClientStatusRequest { + return { + clientId: "" + }; +} +export const QueryClientStatusRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + encode(message: QueryClientStatusRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStatusRequest { + const message = createBaseQueryClientStatusRequest(); + message.clientId = object.clientId ?? ""; + return message; + }, + fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest { + const message = createBaseQueryClientStatusRequest(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + return message; + }, + toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + return obj; + }, + fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest { + return QueryClientStatusRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg { + return { + type: "cosmos-sdk/QueryClientStatusRequest", + value: QueryClientStatusRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest { + return QueryClientStatusRequest.decode(message.value); + }, + toProto(message: QueryClientStatusRequest): Uint8Array { + return QueryClientStatusRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", + value: QueryClientStatusRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientStatusResponse(): QueryClientStatusResponse { + return { + status: "" + }; +} +export const QueryClientStatusResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + encode(message: QueryClientStatusResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.status !== "") { + writer.uint32(10).string(message.status); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientStatusResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientStatusResponse { + const message = createBaseQueryClientStatusResponse(); + message.status = object.status ?? ""; + return message; + }, + fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse { + const message = createBaseQueryClientStatusResponse(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino { + const obj: any = {}; + obj.status = message.status === "" ? undefined : message.status; + return obj; + }, + fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse { + return QueryClientStatusResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg { + return { + type: "cosmos-sdk/QueryClientStatusResponse", + value: QueryClientStatusResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse { + return QueryClientStatusResponse.decode(message.value); + }, + toProto(message: QueryClientStatusResponse): Uint8Array { + return QueryClientStatusResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", + value: QueryClientStatusResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsRequest(): QueryClientParamsRequest { + return {}; +} +export const QueryClientParamsRequest = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + encode(_: QueryClientParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryClientParamsRequest { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest { + const message = createBaseQueryClientParamsRequest(); + return message; + }, + toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest { + return QueryClientParamsRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg { + return { + type: "cosmos-sdk/QueryClientParamsRequest", + value: QueryClientParamsRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest { + return QueryClientParamsRequest.decode(message.value); + }, + toProto(message: QueryClientParamsRequest): Uint8Array { + return QueryClientParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", + value: QueryClientParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClientParamsResponse(): QueryClientParamsResponse { + return { + params: undefined + }; +} +export const QueryClientParamsResponse = { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + encode(message: QueryClientParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClientParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClientParamsResponse { + const message = createBaseQueryClientParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse { + const message = createBaseQueryClientParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse { + return QueryClientParamsResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg { + return { + type: "cosmos-sdk/QueryClientParamsResponse", + value: QueryClientParamsResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse { + return QueryClientParamsResponse.decode(message.value); + }, + toProto(message: QueryClientParamsResponse): Uint8Array { + return QueryClientParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", + value: QueryClientParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateRequest(): QueryUpgradedClientStateRequest { + return {}; +} +export const QueryUpgradedClientStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + encode(_: QueryUpgradedClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryUpgradedClientStateRequest { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest { + const message = createBaseQueryUpgradedClientStateRequest(); + return message; + }, + toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest { + return QueryUpgradedClientStateRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedClientStateRequest", + value: QueryUpgradedClientStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest { + return QueryUpgradedClientStateRequest.decode(message.value); + }, + toProto(message: QueryUpgradedClientStateRequest): Uint8Array { + return QueryUpgradedClientStateRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", + value: QueryUpgradedClientStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedClientStateResponse(): QueryUpgradedClientStateResponse { + return { + upgradedClientState: undefined + }; +} +export const QueryUpgradedClientStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + encode(message: QueryUpgradedClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.upgradedClientState !== undefined) { + Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedClientStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedClientState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUpgradedClientStateResponse { + const message = createBaseQueryUpgradedClientStateResponse(); + message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; + return message; + }, + fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse { + const message = createBaseQueryUpgradedClientStateResponse(); + if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { + message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); + } + return message; + }, + toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino { + const obj: any = {}; + obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; + return obj; + }, + fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse { + return QueryUpgradedClientStateResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedClientStateResponse", + value: QueryUpgradedClientStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse { + return QueryUpgradedClientStateResponse.decode(message.value); + }, + toProto(message: QueryUpgradedClientStateResponse): Uint8Array { + return QueryUpgradedClientStateResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", + value: QueryUpgradedClientStateResponse.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest { + return {}; +} +export const QueryUpgradedConsensusStateRequest = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + encode(_: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryUpgradedConsensusStateRequest { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest { + const message = createBaseQueryUpgradedConsensusStateRequest(); + return message; + }, + toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest { + return QueryUpgradedConsensusStateRequest.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest { + return QueryUpgradedConsensusStateRequest.decode(message.value); + }, + toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array { + return QueryUpgradedConsensusStateRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", + value: QueryUpgradedConsensusStateRequest.encode(message).finish() + }; + } +}; +function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse { + return { + upgradedConsensusState: undefined + }; +} +export const QueryUpgradedConsensusStateResponse = { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.upgradedConsensusState !== undefined) { + Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryUpgradedConsensusStateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.upgradedConsensusState = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryUpgradedConsensusStateResponse { + const message = createBaseQueryUpgradedConsensusStateResponse(); + message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? Any.fromPartial(object.upgradedConsensusState) : undefined; + return message; + }, + fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse { + const message = createBaseQueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { + message.upgradedConsensusState = Any.fromAmino(object.upgraded_consensus_state); + } + return message; + }, + toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino { + const obj: any = {}; + obj.upgraded_consensus_state = message.upgradedConsensusState ? Any.toAmino(message.upgradedConsensusState) : undefined; + return obj; + }, + fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse { + return QueryUpgradedConsensusStateResponse.fromAmino(object.value); + }, + toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg { + return { + type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.toAmino(message) + }; + }, + fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse { + return QueryUpgradedConsensusStateResponse.decode(message.value); + }, + toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array { + return QueryUpgradedConsensusStateResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", + value: QueryUpgradedConsensusStateResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/tx.amino.ts b/packages/api/src/ibc/core/client/v1/tx.amino.ts new file mode 100644 index 00000000..1e8e1dca --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/tx.amino.ts @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export const AminoConverter = { + "/ibc.core.client.v1.MsgCreateClient": { + aminoType: "cosmos-sdk/MsgCreateClient", + toAmino: MsgCreateClient.toAmino, + fromAmino: MsgCreateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpdateClient": { + aminoType: "cosmos-sdk/MsgUpdateClient", + toAmino: MsgUpdateClient.toAmino, + fromAmino: MsgUpdateClient.fromAmino + }, + "/ibc.core.client.v1.MsgUpgradeClient": { + aminoType: "cosmos-sdk/MsgUpgradeClient", + toAmino: MsgUpgradeClient.toAmino, + fromAmino: MsgUpgradeClient.fromAmino + }, + "/ibc.core.client.v1.MsgSubmitMisbehaviour": { + aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", + toAmino: MsgSubmitMisbehaviour.toAmino, + fromAmino: MsgSubmitMisbehaviour.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/tx.registry.ts b/packages/api/src/ibc/core/client/v1/tx.registry.ts new file mode 100644 index 00000000..fe83153f --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/tx.registry.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClient(value: MsgCreateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.encode(value).finish() + }; + }, + updateClient(value: MsgUpdateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.encode(value).finish() + }; + }, + upgradeClient(value: MsgUpgradeClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.encode(value).finish() + }; + }, + submitMisbehaviour(value: MsgSubmitMisbehaviour) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClient(value: MsgCreateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value + }; + }, + updateClient(value: MsgUpdateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value + }; + }, + upgradeClient(value: MsgUpgradeClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value + }; + }, + submitMisbehaviour(value: MsgSubmitMisbehaviour) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value + }; + } + }, + fromPartial: { + createClient(value: MsgCreateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.fromPartial(value) + }; + }, + updateClient(value: MsgUpdateClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.fromPartial(value) + }; + }, + upgradeClient(value: MsgUpgradeClient) { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.fromPartial(value) + }; + }, + submitMisbehaviour(value: MsgSubmitMisbehaviour) { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/tx.rpc.msg.ts b/packages/api/src/ibc/core/client/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..894e0158 --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/tx.rpc.msg.ts @@ -0,0 +1,45 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; +/** Msg defines the ibc/client Msg service. */ +export interface Msg { + /** CreateClient defines a rpc handler method for MsgCreateClient. */ + createClient(request: MsgCreateClient): Promise; + /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ + updateClient(request: MsgUpdateClient): Promise; + /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ + upgradeClient(request: MsgUpgradeClient): Promise; + /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createClient = this.createClient.bind(this); + this.updateClient = this.updateClient.bind(this); + this.upgradeClient = this.upgradeClient.bind(this); + this.submitMisbehaviour = this.submitMisbehaviour.bind(this); + } + createClient(request: MsgCreateClient): Promise { + const data = MsgCreateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); + return promise.then(data => MsgCreateClientResponse.decode(new BinaryReader(data))); + } + updateClient(request: MsgUpdateClient): Promise { + const data = MsgUpdateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); + return promise.then(data => MsgUpdateClientResponse.decode(new BinaryReader(data))); + } + upgradeClient(request: MsgUpgradeClient): Promise { + const data = MsgUpgradeClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); + return promise.then(data => MsgUpgradeClientResponse.decode(new BinaryReader(data))); + } + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise { + const data = MsgSubmitMisbehaviour.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); + return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/ibc/core/client/v1/tx.ts b/packages/api/src/ibc/core/client/v1/tx.ts new file mode 100644 index 00000000..f3bea595 --- /dev/null +++ b/packages/api/src/ibc/core/client/v1/tx.ts @@ -0,0 +1,895 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClient { + /** light client state */ + clientState?: Any; + /** + * consensus state associated with the client that corresponds to a given + * height. + */ + consensusState?: Any; + /** signer address */ + signer: string; +} +export interface MsgCreateClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgCreateClient"; + value: Uint8Array; +} +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClientAmino { + /** light client state */ + client_state?: AnyAmino; + /** + * consensus state associated with the client that corresponds to a given + * height. + */ + consensus_state?: AnyAmino; + /** signer address */ + signer?: string; +} +export interface MsgCreateClientAminoMsg { + type: "cosmos-sdk/MsgCreateClient"; + value: MsgCreateClientAmino; +} +/** MsgCreateClient defines a message to create an IBC client */ +export interface MsgCreateClientSDKType { + client_state?: AnySDKType; + consensus_state?: AnySDKType; + signer: string; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponse {} +export interface MsgCreateClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; + value: Uint8Array; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponseAmino {} +export interface MsgCreateClientResponseAminoMsg { + type: "cosmos-sdk/MsgCreateClientResponse"; + value: MsgCreateClientResponseAmino; +} +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export interface MsgCreateClientResponseSDKType {} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClient { + /** client unique identifier */ + clientId: string; + /** client message to update the light client */ + clientMessage?: Any; + /** signer address */ + signer: string; +} +export interface MsgUpdateClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; + value: Uint8Array; +} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClientAmino { + /** client unique identifier */ + client_id?: string; + /** client message to update the light client */ + client_message?: AnyAmino; + /** signer address */ + signer?: string; +} +export interface MsgUpdateClientAminoMsg { + type: "cosmos-sdk/MsgUpdateClient"; + value: MsgUpdateClientAmino; +} +/** + * MsgUpdateClient defines an sdk.Msg to update a IBC client state using + * the given client message. + */ +export interface MsgUpdateClientSDKType { + client_id: string; + client_message?: AnySDKType; + signer: string; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponse {} +export interface MsgUpdateClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; + value: Uint8Array; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponseAmino {} +export interface MsgUpdateClientResponseAminoMsg { + type: "cosmos-sdk/MsgUpdateClientResponse"; + value: MsgUpdateClientResponseAmino; +} +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export interface MsgUpdateClientResponseSDKType {} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClient { + /** client unique identifier */ + clientId: string; + /** upgraded client state */ + clientState?: Any; + /** + * upgraded consensus state, only contains enough information to serve as a + * basis of trust in update logic + */ + consensusState?: Any; + /** proof that old chain committed to new client */ + proofUpgradeClient: Uint8Array; + /** proof that old chain committed to new consensus state */ + proofUpgradeConsensusState: Uint8Array; + /** signer address */ + signer: string; +} +export interface MsgUpgradeClientProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; + value: Uint8Array; +} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClientAmino { + /** client unique identifier */ + client_id?: string; + /** upgraded client state */ + client_state?: AnyAmino; + /** + * upgraded consensus state, only contains enough information to serve as a + * basis of trust in update logic + */ + consensus_state?: AnyAmino; + /** proof that old chain committed to new client */ + proof_upgrade_client?: string; + /** proof that old chain committed to new consensus state */ + proof_upgrade_consensus_state?: string; + /** signer address */ + signer?: string; +} +export interface MsgUpgradeClientAminoMsg { + type: "cosmos-sdk/MsgUpgradeClient"; + value: MsgUpgradeClientAmino; +} +/** + * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client + * state + */ +export interface MsgUpgradeClientSDKType { + client_id: string; + client_state?: AnySDKType; + consensus_state?: AnySDKType; + proof_upgrade_client: Uint8Array; + proof_upgrade_consensus_state: Uint8Array; + signer: string; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponse {} +export interface MsgUpgradeClientResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; + value: Uint8Array; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponseAmino {} +export interface MsgUpgradeClientResponseAminoMsg { + type: "cosmos-sdk/MsgUpgradeClientResponse"; + value: MsgUpgradeClientResponseAmino; +} +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export interface MsgUpgradeClientResponseSDKType {} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviour { + /** client unique identifier */ + /** @deprecated */ + clientId: string; + /** misbehaviour used for freezing the light client */ + /** @deprecated */ + misbehaviour?: Any; + /** signer address */ + /** @deprecated */ + signer: string; +} +export interface MsgSubmitMisbehaviourProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; + value: Uint8Array; +} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviourAmino { + /** client unique identifier */ + /** @deprecated */ + client_id?: string; + /** misbehaviour used for freezing the light client */ + /** @deprecated */ + misbehaviour?: AnyAmino; + /** signer address */ + /** @deprecated */ + signer?: string; +} +export interface MsgSubmitMisbehaviourAminoMsg { + type: "cosmos-sdk/MsgSubmitMisbehaviour"; + value: MsgSubmitMisbehaviourAmino; +} +/** + * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + * light client misbehaviour. + * Warning: DEPRECATED + */ +export interface MsgSubmitMisbehaviourSDKType { + /** @deprecated */ + client_id: string; + /** @deprecated */ + misbehaviour?: AnySDKType; + /** @deprecated */ + signer: string; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponse {} +export interface MsgSubmitMisbehaviourResponseProtoMsg { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; + value: Uint8Array; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponseAmino {} +export interface MsgSubmitMisbehaviourResponseAminoMsg { + type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; + value: MsgSubmitMisbehaviourResponseAmino; +} +/** + * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + * type. + */ +export interface MsgSubmitMisbehaviourResponseSDKType {} +function createBaseMsgCreateClient(): MsgCreateClient { + return { + clientState: undefined, + consensusState: undefined, + signer: "" + }; +} +export const MsgCreateClient = { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + encode(message: MsgCreateClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 2: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateClient { + const message = createBaseMsgCreateClient(); + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object: MsgCreateClientAmino): MsgCreateClient { + const message = createBaseMsgCreateClient(); + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message: MsgCreateClient): MsgCreateClientAmino { + const obj: any = {}; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient { + return MsgCreateClient.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateClient): MsgCreateClientAminoMsg { + return { + type: "cosmos-sdk/MsgCreateClient", + value: MsgCreateClient.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateClientProtoMsg): MsgCreateClient { + return MsgCreateClient.decode(message.value); + }, + toProto(message: MsgCreateClient): Uint8Array { + return MsgCreateClient.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClient", + value: MsgCreateClient.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClientResponse(): MsgCreateClientResponse { + return {}; +} +export const MsgCreateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + encode(_: MsgCreateClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCreateClientResponse { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + fromAmino(_: MsgCreateClientResponseAmino): MsgCreateClientResponse { + const message = createBaseMsgCreateClientResponse(); + return message; + }, + toAmino(_: MsgCreateClientResponse): MsgCreateClientResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCreateClientResponseAminoMsg): MsgCreateClientResponse { + return MsgCreateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseAminoMsg { + return { + type: "cosmos-sdk/MsgCreateClientResponse", + value: MsgCreateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateClientResponseProtoMsg): MsgCreateClientResponse { + return MsgCreateClientResponse.decode(message.value); + }, + toProto(message: MsgCreateClientResponse): Uint8Array { + return MsgCreateClientResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", + value: MsgCreateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClient(): MsgUpdateClient { + return { + clientId: "", + clientMessage: undefined, + signer: "" + }; +} +export const MsgUpdateClient = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + encode(message: MsgUpdateClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientMessage !== undefined) { + Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientMessage = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClient { + const message = createBaseMsgUpdateClient(); + message.clientId = object.clientId ?? ""; + message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? Any.fromPartial(object.clientMessage) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object: MsgUpdateClientAmino): MsgUpdateClient { + const message = createBaseMsgUpdateClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_message !== undefined && object.client_message !== null) { + message.clientMessage = Any.fromAmino(object.client_message); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message: MsgUpdateClient): MsgUpdateClientAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_message = message.clientMessage ? Any.toAmino(message.clientMessage) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient { + return MsgUpdateClient.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClient): MsgUpdateClientAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateClient", + value: MsgUpdateClient.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClientProtoMsg): MsgUpdateClient { + return MsgUpdateClient.decode(message.value); + }, + toProto(message: MsgUpdateClient): Uint8Array { + return MsgUpdateClient.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClient", + value: MsgUpdateClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClientResponse(): MsgUpdateClientResponse { + return {}; +} +export const MsgUpdateClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + encode(_: MsgUpdateClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClientResponse { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + fromAmino(_: MsgUpdateClientResponseAmino): MsgUpdateClientResponse { + const message = createBaseMsgUpdateClientResponse(); + return message; + }, + toAmino(_: MsgUpdateClientResponse): MsgUpdateClientResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClientResponseAminoMsg): MsgUpdateClientResponse { + return MsgUpdateClientResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpdateClientResponse", + value: MsgUpdateClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClientResponseProtoMsg): MsgUpdateClientResponse { + return MsgUpdateClientResponse.decode(message.value); + }, + toProto(message: MsgUpdateClientResponse): Uint8Array { + return MsgUpdateClientResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", + value: MsgUpdateClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClient(): MsgUpgradeClient { + return { + clientId: "", + clientState: undefined, + consensusState: undefined, + proofUpgradeClient: new Uint8Array(), + proofUpgradeConsensusState: new Uint8Array(), + signer: "" + }; +} +export const MsgUpgradeClient = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + encode(message: MsgUpgradeClient, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.clientState !== undefined) { + Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); + } + if (message.consensusState !== undefined) { + Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); + } + if (message.proofUpgradeClient.length !== 0) { + writer.uint32(34).bytes(message.proofUpgradeClient); + } + if (message.proofUpgradeConsensusState.length !== 0) { + writer.uint32(42).bytes(message.proofUpgradeConsensusState); + } + if (message.signer !== "") { + writer.uint32(50).string(message.signer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientState = Any.decode(reader, reader.uint32()); + break; + case 3: + message.consensusState = Any.decode(reader, reader.uint32()); + break; + case 4: + message.proofUpgradeClient = reader.bytes(); + break; + case 5: + message.proofUpgradeConsensusState = reader.bytes(); + break; + case 6: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpgradeClient { + const message = createBaseMsgUpgradeClient(); + message.clientId = object.clientId ?? ""; + message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; + message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; + message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); + message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object: MsgUpgradeClientAmino): MsgUpgradeClient { + const message = createBaseMsgUpgradeClient(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.client_state !== undefined && object.client_state !== null) { + message.clientState = Any.fromAmino(object.client_state); + } + if (object.consensus_state !== undefined && object.consensus_state !== null) { + message.consensusState = Any.fromAmino(object.consensus_state); + } + if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { + message.proofUpgradeClient = bytesFromBase64(object.proof_upgrade_client); + } + if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { + message.proofUpgradeConsensusState = bytesFromBase64(object.proof_upgrade_consensus_state); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; + obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; + obj.proof_upgrade_client = message.proofUpgradeClient ? base64FromBytes(message.proofUpgradeClient) : undefined; + obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? base64FromBytes(message.proofUpgradeConsensusState) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient { + return MsgUpgradeClient.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpgradeClient): MsgUpgradeClientAminoMsg { + return { + type: "cosmos-sdk/MsgUpgradeClient", + value: MsgUpgradeClient.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpgradeClientProtoMsg): MsgUpgradeClient { + return MsgUpgradeClient.decode(message.value); + }, + toProto(message: MsgUpgradeClient): Uint8Array { + return MsgUpgradeClient.encode(message).finish(); + }, + toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", + value: MsgUpgradeClient.encode(message).finish() + }; + } +}; +function createBaseMsgUpgradeClientResponse(): MsgUpgradeClientResponse { + return {}; +} +export const MsgUpgradeClientResponse = { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + encode(_: MsgUpgradeClientResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpgradeClientResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpgradeClientResponse { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + fromAmino(_: MsgUpgradeClientResponseAmino): MsgUpgradeClientResponse { + const message = createBaseMsgUpgradeClientResponse(); + return message; + }, + toAmino(_: MsgUpgradeClientResponse): MsgUpgradeClientResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpgradeClientResponseAminoMsg): MsgUpgradeClientResponse { + return MsgUpgradeClientResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseAminoMsg { + return { + type: "cosmos-sdk/MsgUpgradeClientResponse", + value: MsgUpgradeClientResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpgradeClientResponseProtoMsg): MsgUpgradeClientResponse { + return MsgUpgradeClientResponse.decode(message.value); + }, + toProto(message: MsgUpgradeClientResponse): Uint8Array { + return MsgUpgradeClientResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", + value: MsgUpgradeClientResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviour(): MsgSubmitMisbehaviour { + return { + clientId: "", + misbehaviour: undefined, + signer: "" + }; +} +export const MsgSubmitMisbehaviour = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + encode(message: MsgSubmitMisbehaviour, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.clientId !== "") { + writer.uint32(10).string(message.clientId); + } + if (message.misbehaviour !== undefined) { + Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); + } + if (message.signer !== "") { + writer.uint32(26).string(message.signer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviour(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.misbehaviour = Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitMisbehaviour { + const message = createBaseMsgSubmitMisbehaviour(); + message.clientId = object.clientId ?? ""; + message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? Any.fromPartial(object.misbehaviour) : undefined; + message.signer = object.signer ?? ""; + return message; + }, + fromAmino(object: MsgSubmitMisbehaviourAmino): MsgSubmitMisbehaviour { + const message = createBaseMsgSubmitMisbehaviour(); + if (object.client_id !== undefined && object.client_id !== null) { + message.clientId = object.client_id; + } + if (object.misbehaviour !== undefined && object.misbehaviour !== null) { + message.misbehaviour = Any.fromAmino(object.misbehaviour); + } + if (object.signer !== undefined && object.signer !== null) { + message.signer = object.signer; + } + return message; + }, + toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino { + const obj: any = {}; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.misbehaviour = message.misbehaviour ? Any.toAmino(message.misbehaviour) : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; + return obj; + }, + fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour { + return MsgSubmitMisbehaviour.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitMisbehaviourProtoMsg): MsgSubmitMisbehaviour { + return MsgSubmitMisbehaviour.decode(message.value); + }, + toProto(message: MsgSubmitMisbehaviour): Uint8Array { + return MsgSubmitMisbehaviour.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", + value: MsgSubmitMisbehaviour.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitMisbehaviourResponse(): MsgSubmitMisbehaviourResponse { + return {}; +} +export const MsgSubmitMisbehaviourResponse = { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + encode(_: MsgSubmitMisbehaviourResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitMisbehaviourResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSubmitMisbehaviourResponse { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + fromAmino(_: MsgSubmitMisbehaviourResponseAmino): MsgSubmitMisbehaviourResponse { + const message = createBaseMsgSubmitMisbehaviourResponse(); + return message; + }, + toAmino(_: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSubmitMisbehaviourResponseAminoMsg): MsgSubmitMisbehaviourResponse { + return MsgSubmitMisbehaviourResponse.fromAmino(object.value); + }, + toAminoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAminoMsg { + return { + type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", + value: MsgSubmitMisbehaviourResponse.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSubmitMisbehaviourResponseProtoMsg): MsgSubmitMisbehaviourResponse { + return MsgSubmitMisbehaviourResponse.decode(message.value); + }, + toProto(message: MsgSubmitMisbehaviourResponse): Uint8Array { + return MsgSubmitMisbehaviourResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseProtoMsg { + return { + typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", + value: MsgSubmitMisbehaviourResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/ibc/lcd.ts b/packages/api/src/ibc/lcd.ts new file mode 100644 index 00000000..1696e63a --- /dev/null +++ b/packages/api/src/ibc/lcd.ts @@ -0,0 +1,101 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ + restEndpoint +}: { + restEndpoint: string; +}) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await import("./applications/transfer/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + core: { + client: { + v1: new (await import("./core/client/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/ibc/rpc.query.ts b/packages/api/src/ibc/rpc.query.ts new file mode 100644 index 00000000..daad1f9a --- /dev/null +++ b/packages/api/src/ibc/rpc.query.ts @@ -0,0 +1,69 @@ +//@ts-nocheck +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + ibc: { + applications: { + transfer: { + v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + core: { + client: { + v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/ibc/rpc.tx.ts b/packages/api/src/ibc/rpc.tx.ts new file mode 100644 index 00000000..612e383b --- /dev/null +++ b/packages/api/src/ibc/rpc.tx.ts @@ -0,0 +1,50 @@ +//@ts-nocheck +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + core: { + client: { + v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } + } +}); \ No newline at end of file diff --git a/packages/api/src/regen/bundle.ts b/packages/api/src/regen/bundle.ts new file mode 100644 index 00000000..a204d4d5 --- /dev/null +++ b/packages/api/src/regen/bundle.ts @@ -0,0 +1,153 @@ +//@ts-nocheck +import * as _76 from "./data/v1/events"; +import * as _77 from "./data/v1/query"; +import * as _78 from "./data/v1/state"; +import * as _79 from "./data/v1/tx"; +import * as _80 from "./data/v1/types"; +import * as _81 from "./ecocredit/basket/v1/events"; +import * as _82 from "./ecocredit/basket/v1/query"; +import * as _83 from "./ecocredit/basket/v1/state"; +import * as _84 from "./ecocredit/basket/v1/tx"; +import * as _85 from "./ecocredit/basket/v1/types"; +import * as _86 from "./ecocredit/marketplace/v1/events"; +import * as _87 from "./ecocredit/marketplace/v1/query"; +import * as _88 from "./ecocredit/marketplace/v1/state"; +import * as _89 from "./ecocredit/marketplace/v1/tx"; +import * as _90 from "./ecocredit/marketplace/v1/types"; +import * as _91 from "./ecocredit/orderbook/v1alpha1/memory"; +import * as _92 from "./ecocredit/v1/events"; +import * as _93 from "./ecocredit/v1/query"; +import * as _94 from "./ecocredit/v1/state"; +import * as _95 from "./ecocredit/v1/tx"; +import * as _96 from "./ecocredit/v1/types"; +import * as _97 from "./ecocredit/v1alpha1/events"; +import * as _98 from "./ecocredit/v1alpha1/genesis"; +import * as _99 from "./ecocredit/v1alpha1/query"; +import * as _100 from "./ecocredit/v1alpha1/tx"; +import * as _101 from "./ecocredit/v1alpha1/types"; +import * as _102 from "./intertx/v1/query"; +import * as _103 from "./intertx/v1/tx"; +import * as _187 from "./data/v1/tx.amino"; +import * as _188 from "./ecocredit/basket/v1/tx.amino"; +import * as _189 from "./ecocredit/marketplace/v1/tx.amino"; +import * as _190 from "./ecocredit/v1/tx.amino"; +import * as _191 from "./ecocredit/v1alpha1/tx.amino"; +import * as _192 from "./intertx/v1/tx.amino"; +import * as _193 from "./data/v1/tx.registry"; +import * as _194 from "./ecocredit/basket/v1/tx.registry"; +import * as _195 from "./ecocredit/marketplace/v1/tx.registry"; +import * as _196 from "./ecocredit/v1/tx.registry"; +import * as _197 from "./ecocredit/v1alpha1/tx.registry"; +import * as _198 from "./intertx/v1/tx.registry"; +import * as _199 from "./data/v1/query.lcd"; +import * as _200 from "./ecocredit/basket/v1/query.lcd"; +import * as _201 from "./ecocredit/marketplace/v1/query.lcd"; +import * as _202 from "./ecocredit/v1/query.lcd"; +import * as _203 from "./ecocredit/v1alpha1/query.lcd"; +import * as _204 from "./intertx/v1/query.lcd"; +import * as _205 from "./data/v1/query.rpc.Query"; +import * as _206 from "./ecocredit/basket/v1/query.rpc.Query"; +import * as _207 from "./ecocredit/marketplace/v1/query.rpc.Query"; +import * as _208 from "./ecocredit/v1/query.rpc.Query"; +import * as _209 from "./ecocredit/v1alpha1/query.rpc.Query"; +import * as _210 from "./intertx/v1/query.rpc.Query"; +import * as _211 from "./data/v1/tx.rpc.msg"; +import * as _212 from "./ecocredit/basket/v1/tx.rpc.msg"; +import * as _213 from "./ecocredit/marketplace/v1/tx.rpc.msg"; +import * as _214 from "./ecocredit/v1/tx.rpc.msg"; +import * as _215 from "./ecocredit/v1alpha1/tx.rpc.msg"; +import * as _216 from "./intertx/v1/tx.rpc.msg"; +import * as _223 from "./lcd"; +import * as _224 from "./rpc.query"; +import * as _225 from "./rpc.tx"; +export namespace regen { + export namespace data { + export const v1 = { + ..._76, + ..._77, + ..._78, + ..._79, + ..._80, + ..._187, + ..._193, + ..._199, + ..._205, + ..._211 + }; + } + export namespace ecocredit { + export namespace basket { + export const v1 = { + ..._81, + ..._82, + ..._83, + ..._84, + ..._85, + ..._188, + ..._194, + ..._200, + ..._206, + ..._212 + }; + } + export namespace marketplace { + export const v1 = { + ..._86, + ..._87, + ..._88, + ..._89, + ..._90, + ..._189, + ..._195, + ..._201, + ..._207, + ..._213 + }; + } + export namespace orderbook { + export const v1alpha1 = { + ..._91 + }; + } + export const v1 = { + ..._92, + ..._93, + ..._94, + ..._95, + ..._96, + ..._190, + ..._196, + ..._202, + ..._208, + ..._214 + }; + export const v1alpha1 = { + ..._97, + ..._98, + ..._99, + ..._100, + ..._101, + ..._191, + ..._197, + ..._203, + ..._209, + ..._215 + }; + } + export namespace intertx { + export const v1 = { + ..._102, + ..._103, + ..._192, + ..._198, + ..._204, + ..._210, + ..._216 + }; + } + export const ClientFactory = { + ..._223, + ..._224, + ..._225 + }; +} \ No newline at end of file diff --git a/packages/api/src/regen/client.ts b/packages/api/src/regen/client.ts new file mode 100644 index 00000000..1cccb1dc --- /dev/null +++ b/packages/api/src/regen/client.ts @@ -0,0 +1,63 @@ +//@ts-nocheck +import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; +import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import * as regenDataV1TxRegistry from "./data/v1/tx.registry"; +import * as regenEcocreditBasketV1TxRegistry from "./ecocredit/basket/v1/tx.registry"; +import * as regenEcocreditMarketplaceV1TxRegistry from "./ecocredit/marketplace/v1/tx.registry"; +import * as regenEcocreditV1TxRegistry from "./ecocredit/v1/tx.registry"; +import * as regenEcocreditV1alpha1TxRegistry from "./ecocredit/v1alpha1/tx.registry"; +import * as regenIntertxV1TxRegistry from "./intertx/v1/tx.registry"; +import * as regenDataV1TxAmino from "./data/v1/tx.amino"; +import * as regenEcocreditBasketV1TxAmino from "./ecocredit/basket/v1/tx.amino"; +import * as regenEcocreditMarketplaceV1TxAmino from "./ecocredit/marketplace/v1/tx.amino"; +import * as regenEcocreditV1TxAmino from "./ecocredit/v1/tx.amino"; +import * as regenEcocreditV1alpha1TxAmino from "./ecocredit/v1alpha1/tx.amino"; +import * as regenIntertxV1TxAmino from "./intertx/v1/tx.amino"; +export const regenAminoConverters = { + ...regenDataV1TxAmino.AminoConverter, + ...regenEcocreditBasketV1TxAmino.AminoConverter, + ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, + ...regenEcocreditV1TxAmino.AminoConverter, + ...regenEcocreditV1alpha1TxAmino.AminoConverter, + ...regenIntertxV1TxAmino.AminoConverter +}; +export const regenProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; +export const getSigningRegenClientOptions = ({ + defaultTypes = defaultRegistryTypes +}: { + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +} = {}): { + registry: Registry; + aminoTypes: AminoTypes; +} => { + const registry = new Registry([...defaultTypes, ...regenProtoRegistry]); + const aminoTypes = new AminoTypes({ + ...regenAminoConverters + }); + return { + registry, + aminoTypes + }; +}; +export const getSigningRegenClient = async ({ + rpcEndpoint, + signer, + defaultTypes = defaultRegistryTypes +}: { + rpcEndpoint: string | HttpEndpoint; + signer: OfflineSigner; + defaultTypes?: ReadonlyArray<[string, GeneratedType]>; +}) => { + const { + registry, + aminoTypes + } = getSigningRegenClientOptions({ + defaultTypes + }); + const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry: (registry as any), + aminoTypes + }); + return client; +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/events.ts b/packages/api/src/regen/data/v1/events.ts new file mode 100644 index 00000000..62a25b9b --- /dev/null +++ b/packages/api/src/regen/data/v1/events.ts @@ -0,0 +1,391 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchor { + /** iri is the IRI of the data anchored on chain. */ + iri: string; +} +export interface EventAnchorProtoMsg { + typeUrl: "/regen.data.v1.EventAnchor"; + value: Uint8Array; +} +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchorAmino { + /** iri is the IRI of the data anchored on chain. */ + iri?: string; +} +export interface EventAnchorAminoMsg { + type: "/regen.data.v1.EventAnchor"; + value: EventAnchorAmino; +} +/** EventAnchor is an event emitted when data is anchored on chain. */ +export interface EventAnchorSDKType { + iri: string; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttest { + /** iri is the IRI of the data attested to. */ + iri: string; + /** + * attestor is the address of the account that has attested to the veracity of + * the data. + */ + attestor: string; +} +export interface EventAttestProtoMsg { + typeUrl: "/regen.data.v1.EventAttest"; + value: Uint8Array; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttestAmino { + /** iri is the IRI of the data attested to. */ + iri?: string; + /** + * attestor is the address of the account that has attested to the veracity of + * the data. + */ + attestor?: string; +} +export interface EventAttestAminoMsg { + type: "/regen.data.v1.EventAttest"; + value: EventAttestAmino; +} +/** EventAttest is an event emitted when data is attested to on chain. */ +export interface EventAttestSDKType { + iri: string; + attestor: string; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolver { + /** id is the ID of the defined resolver. */ + id: bigint; +} +export interface EventDefineResolverProtoMsg { + typeUrl: "/regen.data.v1.EventDefineResolver"; + value: Uint8Array; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolverAmino { + /** id is the ID of the defined resolver. */ + id?: string; +} +export interface EventDefineResolverAminoMsg { + type: "/regen.data.v1.EventDefineResolver"; + value: EventDefineResolverAmino; +} +/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ +export interface EventDefineResolverSDKType { + id: bigint; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolver { + /** id is the ID of the resolver that the data was registered to. */ + id: bigint; + /** iri is the IRI of the data that was registered. */ + iri: string; +} +export interface EventRegisterResolverProtoMsg { + typeUrl: "/regen.data.v1.EventRegisterResolver"; + value: Uint8Array; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolverAmino { + /** id is the ID of the resolver that the data was registered to. */ + id?: string; + /** iri is the IRI of the data that was registered. */ + iri?: string; +} +export interface EventRegisterResolverAminoMsg { + type: "/regen.data.v1.EventRegisterResolver"; + value: EventRegisterResolverAmino; +} +/** + * EventRegisterResolver is an event emitted when data is registered to a + * resolver on chain. + */ +export interface EventRegisterResolverSDKType { + id: bigint; + iri: string; +} +function createBaseEventAnchor(): EventAnchor { + return { + iri: "" + }; +} +export const EventAnchor = { + typeUrl: "/regen.data.v1.EventAnchor", + encode(message: EventAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventAnchor { + const message = createBaseEventAnchor(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: EventAnchorAmino): EventAnchor { + const message = createBaseEventAnchor(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: EventAnchor): EventAnchorAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: EventAnchorAminoMsg): EventAnchor { + return EventAnchor.fromAmino(object.value); + }, + fromProtoMsg(message: EventAnchorProtoMsg): EventAnchor { + return EventAnchor.decode(message.value); + }, + toProto(message: EventAnchor): Uint8Array { + return EventAnchor.encode(message).finish(); + }, + toProtoMsg(message: EventAnchor): EventAnchorProtoMsg { + return { + typeUrl: "/regen.data.v1.EventAnchor", + value: EventAnchor.encode(message).finish() + }; + } +}; +function createBaseEventAttest(): EventAttest { + return { + iri: "", + attestor: "" + }; +} +export const EventAttest = { + typeUrl: "/regen.data.v1.EventAttest", + encode(message: EventAttest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventAttest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventAttest { + const message = createBaseEventAttest(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + return message; + }, + fromAmino(object: EventAttestAmino): EventAttest { + const message = createBaseEventAttest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + return message; + }, + toAmino(message: EventAttest): EventAttestAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + return obj; + }, + fromAminoMsg(object: EventAttestAminoMsg): EventAttest { + return EventAttest.fromAmino(object.value); + }, + fromProtoMsg(message: EventAttestProtoMsg): EventAttest { + return EventAttest.decode(message.value); + }, + toProto(message: EventAttest): Uint8Array { + return EventAttest.encode(message).finish(); + }, + toProtoMsg(message: EventAttest): EventAttestProtoMsg { + return { + typeUrl: "/regen.data.v1.EventAttest", + value: EventAttest.encode(message).finish() + }; + } +}; +function createBaseEventDefineResolver(): EventDefineResolver { + return { + id: BigInt(0) + }; +} +export const EventDefineResolver = { + typeUrl: "/regen.data.v1.EventDefineResolver", + encode(message: EventDefineResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventDefineResolver { + const message = createBaseEventDefineResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventDefineResolverAmino): EventDefineResolver { + const message = createBaseEventDefineResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message: EventDefineResolver): EventDefineResolverAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventDefineResolverAminoMsg): EventDefineResolver { + return EventDefineResolver.fromAmino(object.value); + }, + fromProtoMsg(message: EventDefineResolverProtoMsg): EventDefineResolver { + return EventDefineResolver.decode(message.value); + }, + toProto(message: EventDefineResolver): Uint8Array { + return EventDefineResolver.encode(message).finish(); + }, + toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.EventDefineResolver", + value: EventDefineResolver.encode(message).finish() + }; + } +}; +function createBaseEventRegisterResolver(): EventRegisterResolver { + return { + id: BigInt(0), + iri: "" + }; +} +export const EventRegisterResolver = { + typeUrl: "/regen.data.v1.EventRegisterResolver", + encode(message: EventRegisterResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventRegisterResolver { + const message = createBaseEventRegisterResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: EventRegisterResolverAmino): EventRegisterResolver { + const message = createBaseEventRegisterResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: EventRegisterResolver): EventRegisterResolverAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: EventRegisterResolverAminoMsg): EventRegisterResolver { + return EventRegisterResolver.fromAmino(object.value); + }, + fromProtoMsg(message: EventRegisterResolverProtoMsg): EventRegisterResolver { + return EventRegisterResolver.decode(message.value); + }, + toProto(message: EventRegisterResolver): Uint8Array { + return EventRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message: EventRegisterResolver): EventRegisterResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.EventRegisterResolver", + value: EventRegisterResolver.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/query.lcd.ts b/packages/api/src/regen/data/v1/query.lcd.ts new file mode 100644 index 00000000..735b5497 --- /dev/null +++ b/packages/api/src/regen/data/v1/query.lcd.ts @@ -0,0 +1,69 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + } + /* AnchorByIRI queries a data anchor by the IRI of the data. */ + async anchorByIRI(params: QueryAnchorByIRIRequest): Promise { + const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; + return await this.req.get(endpoint); + } + /* AttestationsByAttestor queries data attestations by an attestor. */ + async attestationsByAttestor(params: QueryAttestationsByAttestorRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; + return await this.req.get(endpoint, options); + } + /* AttestationsByIRI queries data attestations by the IRI of the data. */ + async attestationsByIRI(params: QueryAttestationsByIRIRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* Resolver queries a resolver by its unique identifier. */ + async resolver(params: QueryResolverRequest): Promise { + const endpoint = `regen/data/v1/resolver/${params.id}`; + return await this.req.get(endpoint); + } + /* ResolversByIRI queries resolvers with registered data by the IRI of the + data. */ + async resolversByIRI(params: QueryResolversByIRIRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; + return await this.req.get(endpoint, options); + } + /* ConvertIRIToHash converts an IRI to a ContentHash. */ + async convertIRIToHash(params: ConvertIRIToHashRequest): Promise { + const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/query.rpc.Query.ts b/packages/api/src/regen/data/v1/query.rpc.Query.ts new file mode 100644 index 00000000..3d6161be --- /dev/null +++ b/packages/api/src/regen/data/v1/query.rpc.Query.ts @@ -0,0 +1,150 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; +/** Query is the regen.data.v1 Query service */ +export interface Query { + /** AnchorByIRI queries a data anchor by the IRI of the data. */ + anchorByIRI(request: QueryAnchorByIRIRequest): Promise; + /** AnchorByHash queries a data anchor by the ContentHash of the data. */ + anchorByHash(request: QueryAnchorByHashRequest): Promise; + /** AttestationsByAttestor queries data attestations by an attestor. */ + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; + /** AttestationsByIRI queries data attestations by the IRI of the data. */ + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; + /** + * AttestationsByHash queries data attestations by the ContentHash of the + * data. + */ + attestationsByHash(request: QueryAttestationsByHashRequest): Promise; + /** Resolver queries a resolver by its unique identifier. */ + resolver(request: QueryResolverRequest): Promise; + /** + * ResolversByIRI queries resolvers with registered data by the IRI of the + * data. + */ + resolversByIRI(request: QueryResolversByIRIRequest): Promise; + /** + * ResolversByHash queries resolvers with registered data by the ContentHash + * of the data. + */ + resolversByHash(request: QueryResolversByHashRequest): Promise; + /** ResolversByURL queries resolvers by URL. */ + resolversByURL(request: QueryResolversByURLRequest): Promise; + /** ConvertIRIToHash converts an IRI to a ContentHash. */ + convertIRIToHash(request: ConvertIRIToHashRequest): Promise; + /** ConvertHashToIRI converts a ContentHash to an IRI. */ + convertHashToIRI(request: ConvertHashToIRIRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.anchorByIRI = this.anchorByIRI.bind(this); + this.anchorByHash = this.anchorByHash.bind(this); + this.attestationsByAttestor = this.attestationsByAttestor.bind(this); + this.attestationsByIRI = this.attestationsByIRI.bind(this); + this.attestationsByHash = this.attestationsByHash.bind(this); + this.resolver = this.resolver.bind(this); + this.resolversByIRI = this.resolversByIRI.bind(this); + this.resolversByHash = this.resolversByHash.bind(this); + this.resolversByURL = this.resolversByURL.bind(this); + this.convertIRIToHash = this.convertIRIToHash.bind(this); + this.convertHashToIRI = this.convertHashToIRI.bind(this); + } + anchorByIRI(request: QueryAnchorByIRIRequest): Promise { + const data = QueryAnchorByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); + return promise.then(data => QueryAnchorByIRIResponse.decode(new BinaryReader(data))); + } + anchorByHash(request: QueryAnchorByHashRequest): Promise { + const data = QueryAnchorByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); + return promise.then(data => QueryAnchorByHashResponse.decode(new BinaryReader(data))); + } + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise { + const data = QueryAttestationsByAttestorRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); + return promise.then(data => QueryAttestationsByAttestorResponse.decode(new BinaryReader(data))); + } + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise { + const data = QueryAttestationsByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); + return promise.then(data => QueryAttestationsByIRIResponse.decode(new BinaryReader(data))); + } + attestationsByHash(request: QueryAttestationsByHashRequest): Promise { + const data = QueryAttestationsByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); + return promise.then(data => QueryAttestationsByHashResponse.decode(new BinaryReader(data))); + } + resolver(request: QueryResolverRequest): Promise { + const data = QueryResolverRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); + return promise.then(data => QueryResolverResponse.decode(new BinaryReader(data))); + } + resolversByIRI(request: QueryResolversByIRIRequest): Promise { + const data = QueryResolversByIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); + return promise.then(data => QueryResolversByIRIResponse.decode(new BinaryReader(data))); + } + resolversByHash(request: QueryResolversByHashRequest): Promise { + const data = QueryResolversByHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); + return promise.then(data => QueryResolversByHashResponse.decode(new BinaryReader(data))); + } + resolversByURL(request: QueryResolversByURLRequest): Promise { + const data = QueryResolversByURLRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); + return promise.then(data => QueryResolversByURLResponse.decode(new BinaryReader(data))); + } + convertIRIToHash(request: ConvertIRIToHashRequest): Promise { + const data = ConvertIRIToHashRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); + return promise.then(data => ConvertIRIToHashResponse.decode(new BinaryReader(data))); + } + convertHashToIRI(request: ConvertHashToIRIRequest): Promise { + const data = ConvertHashToIRIRequest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); + return promise.then(data => ConvertHashToIRIResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + anchorByIRI(request: QueryAnchorByIRIRequest): Promise { + return queryService.anchorByIRI(request); + }, + anchorByHash(request: QueryAnchorByHashRequest): Promise { + return queryService.anchorByHash(request); + }, + attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise { + return queryService.attestationsByAttestor(request); + }, + attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise { + return queryService.attestationsByIRI(request); + }, + attestationsByHash(request: QueryAttestationsByHashRequest): Promise { + return queryService.attestationsByHash(request); + }, + resolver(request: QueryResolverRequest): Promise { + return queryService.resolver(request); + }, + resolversByIRI(request: QueryResolversByIRIRequest): Promise { + return queryService.resolversByIRI(request); + }, + resolversByHash(request: QueryResolversByHashRequest): Promise { + return queryService.resolversByHash(request); + }, + resolversByURL(request: QueryResolversByURLRequest): Promise { + return queryService.resolversByURL(request); + }, + convertIRIToHash(request: ConvertIRIToHashRequest): Promise { + return queryService.convertIRIToHash(request); + }, + convertHashToIRI(request: ConvertHashToIRIRequest): Promise { + return queryService.convertHashToIRI(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/query.ts b/packages/api/src/regen/data/v1/query.ts new file mode 100644 index 00000000..023c8436 --- /dev/null +++ b/packages/api/src/regen/data/v1/query.ts @@ -0,0 +1,2476 @@ +//@ts-nocheck +import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; +} +export interface QueryAnchorByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest"; + value: Uint8Array; +} +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; +} +export interface QueryAnchorByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryAnchorByIRIRequest"; + value: QueryAnchorByIRIRequestAmino; +} +/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ +export interface QueryAnchorByIRIRequestSDKType { + iri: string; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponse { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfo; +} +export interface QueryAnchorByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; + value: Uint8Array; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponseAmino { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfoAmino; +} +export interface QueryAnchorByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryAnchorByIRIResponse"; + value: QueryAnchorByIRIResponseAmino; +} +/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ +export interface QueryAnchorByIRIResponseSDKType { + anchor?: AnchorInfoSDKType; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; +} +export interface QueryAnchorByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; + value: Uint8Array; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; +} +export interface QueryAnchorByHashRequestAminoMsg { + type: "/regen.data.v1.QueryAnchorByHashRequest"; + value: QueryAnchorByHashRequestAmino; +} +/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ +export interface QueryAnchorByHashRequestSDKType { + content_hash?: ContentHashSDKType; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponse { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfo; +} +export interface QueryAnchorByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; + value: Uint8Array; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponseAmino { + /** anchor is information about the data anchor. */ + anchor?: AnchorInfoAmino; +} +export interface QueryAnchorByHashResponseAminoMsg { + type: "/regen.data.v1.QueryAnchorByHashResponse"; + value: QueryAnchorByHashResponseAmino; +} +/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ +export interface QueryAnchorByHashResponseSDKType { + anchor?: AnchorInfoSDKType; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequest { + /** attestor is the address of the attestor. */ + attestor: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByAttestorRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; + value: Uint8Array; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequestAmino { + /** attestor is the address of the attestor. */ + attestor?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByAttestorRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByAttestorRequest"; + value: QueryAttestationsByAttestorRequestAmino; +} +/** + * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor + * request type. + */ +export interface QueryAttestationsByAttestorRequestSDKType { + attestor: string; + pagination?: PageRequestSDKType; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponse { + /** attestations are the attestations by the attestor. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByAttestorResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; + value: Uint8Array; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponseAmino { + /** attestations are the attestations by the attestor. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByAttestorResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByAttestorResponse"; + value: QueryAttestationsByAttestorResponseAmino; +} +/** + * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor + * response type. + */ +export interface QueryAttestationsByAttestorResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; + value: Uint8Array; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByIRIRequest"; + value: QueryAttestationsByIRIRequestAmino; +} +/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ +export interface QueryAttestationsByIRIRequestSDKType { + iri: string; + pagination?: PageRequestSDKType; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponse { + /** attestations are the attestations that have been made to the anchored data. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; + value: Uint8Array; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponseAmino { + /** attestations are the attestations that have been made to the anchored data. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByIRIResponse"; + value: QueryAttestationsByIRIResponseAmino; +} +/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ +export interface QueryAttestationsByIRIResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryAttestationsByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; + value: Uint8Array; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryAttestationsByHashRequestAminoMsg { + type: "/regen.data.v1.QueryAttestationsByHashRequest"; + value: QueryAttestationsByHashRequestAmino; +} +/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ +export interface QueryAttestationsByHashRequestSDKType { + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponse { + /** attestations are the attestations that have been made to the anchored data. */ + attestations: AttestationInfo[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponse; +} +export interface QueryAttestationsByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; + value: Uint8Array; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponseAmino { + /** attestations are the attestations that have been made to the anchored data. */ + attestations?: AttestationInfoAmino[]; + /** pagination is the pagination PageResponse. */ + pagination?: PageResponseAmino; +} +export interface QueryAttestationsByHashResponseAminoMsg { + type: "/regen.data.v1.QueryAttestationsByHashResponse"; + value: QueryAttestationsByHashResponseAmino; +} +/** + * QueryAttestationsByHashResponse is the Query/AttestationsByHash response + * type. + */ +export interface QueryAttestationsByHashResponseSDKType { + attestations: AttestationInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequest { + /** id is the ID of the resolver. */ + id: bigint; +} +export interface QueryResolverRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolverRequest"; + value: Uint8Array; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequestAmino { + /** id is the ID of the resolver. */ + id?: string; +} +export interface QueryResolverRequestAminoMsg { + type: "/regen.data.v1.QueryResolverRequest"; + value: QueryResolverRequestAmino; +} +/** QueryResolverRequest is the Query/Resolver request type. */ +export interface QueryResolverRequestSDKType { + id: bigint; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponse { + /** resolver is information about the resolver. */ + resolver?: ResolverInfo; +} +export interface QueryResolverResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolverResponse"; + value: Uint8Array; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponseAmino { + /** resolver is information about the resolver. */ + resolver?: ResolverInfoAmino; +} +export interface QueryResolverResponseAminoMsg { + type: "/regen.data.v1.QueryResolverResponse"; + value: QueryResolverResponseAmino; +} +/** QueryResolverResponse is the Query/Resolver response type. */ +export interface QueryResolverResponseSDKType { + resolver?: ResolverInfoSDKType; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequest { + /** iri is the IRI of the anchored data. */ + iri: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; + value: Uint8Array; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequestAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByIRIRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByIRIRequest"; + value: QueryResolversByIRIRequestAmino; +} +/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ +export interface QueryResolversByIRIRequestSDKType { + iri: string; + pagination?: PageRequestSDKType; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponse { + /** resolvers are the resolvers that have registered the anchored data. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; + value: Uint8Array; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponseAmino { + /** resolvers are the resolvers that have registered the anchored data. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByIRIResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByIRIResponse"; + value: QueryResolversByIRIResponseAmino; +} +/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ +export interface QueryResolversByIRIResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequest { + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByHashRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; + value: Uint8Array; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequestAmino { + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByHashRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByHashRequest"; + value: QueryResolversByHashRequestAmino; +} +/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ +export interface QueryResolversByHashRequestSDKType { + content_hash?: ContentHashSDKType; + pagination?: PageRequestSDKType; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponse { + /** resolvers are the resolvers that have registered the data. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByHashResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; + value: Uint8Array; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponseAmino { + /** resolvers are the resolvers that have registered the data. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByHashResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByHashResponse"; + value: QueryResolversByHashResponseAmino; +} +/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ +export interface QueryResolversByHashResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequest { + /** url is the URL of the resolver. */ + url: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequest; +} +export interface QueryResolversByURLRequestProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; + value: Uint8Array; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequestAmino { + /** url is the URL of the resolver. */ + url?: string; + /** pagination is the PageRequest to use for pagination. */ + pagination?: PageRequestAmino; +} +export interface QueryResolversByURLRequestAminoMsg { + type: "/regen.data.v1.QueryResolversByURLRequest"; + value: QueryResolversByURLRequestAmino; +} +/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ +export interface QueryResolversByURLRequestSDKType { + url: string; + pagination?: PageRequestSDKType; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponse { + /** resolvers are the resolvers that have a matching URL. */ + resolvers: ResolverInfo[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponse; +} +export interface QueryResolversByURLResponseProtoMsg { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; + value: Uint8Array; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponseAmino { + /** resolvers are the resolvers that have a matching URL. */ + resolvers?: ResolverInfoAmino[]; + /** pagination is the PageResponse to use for pagination. */ + pagination?: PageResponseAmino; +} +export interface QueryResolversByURLResponseAminoMsg { + type: "/regen.data.v1.QueryResolversByURLResponse"; + value: QueryResolversByURLResponseAmino; +} +/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ +export interface QueryResolversByURLResponseSDKType { + resolvers: ResolverInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequest { + /** iri is the IRI to convert to a ContentHash. */ + iri: string; +} +export interface ConvertIRIToHashRequestProtoMsg { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest"; + value: Uint8Array; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequestAmino { + /** iri is the IRI to convert to a ContentHash. */ + iri?: string; +} +export interface ConvertIRIToHashRequestAminoMsg { + type: "/regen.data.v1.ConvertIRIToHashRequest"; + value: ConvertIRIToHashRequestAmino; +} +/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ +export interface ConvertIRIToHashRequestSDKType { + iri: string; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponse { + /** content_hash is the ContentHash converted from the IRI. */ + contentHash?: ContentHash; +} +export interface ConvertIRIToHashResponseProtoMsg { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; + value: Uint8Array; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponseAmino { + /** content_hash is the ContentHash converted from the IRI. */ + content_hash?: ContentHashAmino; +} +export interface ConvertIRIToHashResponseAminoMsg { + type: "/regen.data.v1.ConvertIRIToHashResponse"; + value: ConvertIRIToHashResponseAmino; +} +/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ +export interface ConvertIRIToHashResponseSDKType { + content_hash?: ContentHashSDKType; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequest { + /** content_hash is the ContentHash to convert to an IRI. */ + contentHash?: ContentHash; +} +export interface ConvertHashToIRIRequestProtoMsg { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; + value: Uint8Array; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequestAmino { + /** content_hash is the ContentHash to convert to an IRI. */ + content_hash?: ContentHashAmino; +} +export interface ConvertHashToIRIRequestAminoMsg { + type: "/regen.data.v1.ConvertHashToIRIRequest"; + value: ConvertHashToIRIRequestAmino; +} +/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ +export interface ConvertHashToIRIRequestSDKType { + content_hash?: ContentHashSDKType; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponse { + /** iri is the IRI converted from the ContentHash. */ + iri: string; +} +export interface ConvertHashToIRIResponseProtoMsg { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse"; + value: Uint8Array; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponseAmino { + /** iri is the IRI converted from the ContentHash. */ + iri?: string; +} +export interface ConvertHashToIRIResponseAminoMsg { + type: "/regen.data.v1.ConvertHashToIRIResponse"; + value: ConvertHashToIRIResponseAmino; +} +/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ +export interface ConvertHashToIRIResponseSDKType { + iri: string; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfo { + /** iri is the IRI of the anchored data. */ + iri: string; + /** content_hash is the ContentHash of the anchored data. */ + contentHash?: ContentHash; + /** timestamp is the time at which the data was anchored. */ + timestamp?: Date; +} +export interface AnchorInfoProtoMsg { + typeUrl: "/regen.data.v1.AnchorInfo"; + value: Uint8Array; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfoAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** content_hash is the ContentHash of the anchored data. */ + content_hash?: ContentHashAmino; + /** timestamp is the time at which the data was anchored. */ + timestamp?: string; +} +export interface AnchorInfoAminoMsg { + type: "/regen.data.v1.AnchorInfo"; + value: AnchorInfoAmino; +} +/** AnchorInfo is the information for a data anchor. */ +export interface AnchorInfoSDKType { + iri: string; + content_hash?: ContentHashSDKType; + timestamp?: Date; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfo { + /** iri is the IRI of the anchored data. */ + iri: string; + /** attestor is the address of the account that attested to the anchored data. */ + attestor: string; + /** timestamp is the time at which the data was attested to. */ + timestamp?: Date; +} +export interface AttestationInfoProtoMsg { + typeUrl: "/regen.data.v1.AttestationInfo"; + value: Uint8Array; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfoAmino { + /** iri is the IRI of the anchored data. */ + iri?: string; + /** attestor is the address of the account that attested to the anchored data. */ + attestor?: string; + /** timestamp is the time at which the data was attested to. */ + timestamp?: string; +} +export interface AttestationInfoAminoMsg { + type: "/regen.data.v1.AttestationInfo"; + value: AttestationInfoAmino; +} +/** AttestationInfo is the information for an attestation. */ +export interface AttestationInfoSDKType { + iri: string; + attestor: string; + timestamp?: Date; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfo { + /** id is the ID of the resolver. */ + id: bigint; + /** url is the URL of the resolver. */ + url: string; + /** manager is the address of the account that manages the resolver. */ + manager: string; +} +export interface ResolverInfoProtoMsg { + typeUrl: "/regen.data.v1.ResolverInfo"; + value: Uint8Array; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfoAmino { + /** id is the ID of the resolver. */ + id?: string; + /** url is the URL of the resolver. */ + url?: string; + /** manager is the address of the account that manages the resolver. */ + manager?: string; +} +export interface ResolverInfoAminoMsg { + type: "/regen.data.v1.ResolverInfo"; + value: ResolverInfoAmino; +} +/** ResolverInfo is the information for a resolver. */ +export interface ResolverInfoSDKType { + id: bigint; + url: string; + manager: string; +} +function createBaseQueryAnchorByIRIRequest(): QueryAnchorByIRIRequest { + return { + iri: "" + }; +} +export const QueryAnchorByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + encode(message: QueryAnchorByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAnchorByIRIRequest { + const message = createBaseQueryAnchorByIRIRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: QueryAnchorByIRIRequestAmino): QueryAnchorByIRIRequest { + const message = createBaseQueryAnchorByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: QueryAnchorByIRIRequestAminoMsg): QueryAnchorByIRIRequest { + return QueryAnchorByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAnchorByIRIRequestProtoMsg): QueryAnchorByIRIRequest { + return QueryAnchorByIRIRequest.decode(message.value); + }, + toProto(message: QueryAnchorByIRIRequest): Uint8Array { + return QueryAnchorByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", + value: QueryAnchorByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByIRIResponse(): QueryAnchorByIRIResponse { + return { + anchor: undefined + }; +} +export const QueryAnchorByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + encode(message: QueryAnchorByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.anchor !== undefined) { + AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAnchorByIRIResponse { + const message = createBaseQueryAnchorByIRIResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object: QueryAnchorByIRIResponseAmino): QueryAnchorByIRIResponse { + const message = createBaseQueryAnchorByIRIResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseAmino { + const obj: any = {}; + obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAnchorByIRIResponseAminoMsg): QueryAnchorByIRIResponse { + return QueryAnchorByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAnchorByIRIResponseProtoMsg): QueryAnchorByIRIResponse { + return QueryAnchorByIRIResponse.decode(message.value); + }, + toProto(message: QueryAnchorByIRIResponse): Uint8Array { + return QueryAnchorByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", + value: QueryAnchorByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashRequest(): QueryAnchorByHashRequest { + return { + contentHash: undefined + }; +} +export const QueryAnchorByHashRequest = { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + encode(message: QueryAnchorByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAnchorByHashRequest { + const message = createBaseQueryAnchorByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object: QueryAnchorByHashRequestAmino): QueryAnchorByHashRequest { + const message = createBaseQueryAnchorByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestAmino { + const obj: any = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAnchorByHashRequestAminoMsg): QueryAnchorByHashRequest { + return QueryAnchorByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAnchorByHashRequestProtoMsg): QueryAnchorByHashRequest { + return QueryAnchorByHashRequest.decode(message.value); + }, + toProto(message: QueryAnchorByHashRequest): Uint8Array { + return QueryAnchorByHashRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", + value: QueryAnchorByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAnchorByHashResponse(): QueryAnchorByHashResponse { + return { + anchor: undefined + }; +} +export const QueryAnchorByHashResponse = { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + encode(message: QueryAnchorByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.anchor !== undefined) { + AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAnchorByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.anchor = AnchorInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAnchorByHashResponse { + const message = createBaseQueryAnchorByHashResponse(); + message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; + return message; + }, + fromAmino(object: QueryAnchorByHashResponseAmino): QueryAnchorByHashResponse { + const message = createBaseQueryAnchorByHashResponse(); + if (object.anchor !== undefined && object.anchor !== null) { + message.anchor = AnchorInfo.fromAmino(object.anchor); + } + return message; + }, + toAmino(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseAmino { + const obj: any = {}; + obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAnchorByHashResponseAminoMsg): QueryAnchorByHashResponse { + return QueryAnchorByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAnchorByHashResponseProtoMsg): QueryAnchorByHashResponse { + return QueryAnchorByHashResponse.decode(message.value); + }, + toProto(message: QueryAnchorByHashResponse): Uint8Array { + return QueryAnchorByHashResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", + value: QueryAnchorByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorRequest(): QueryAttestationsByAttestorRequest { + return { + attestor: "", + pagination: undefined + }; +} +export const QueryAttestationsByAttestorRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + encode(message: QueryAttestationsByAttestorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByAttestorRequest { + const message = createBaseQueryAttestationsByAttestorRequest(); + message.attestor = object.attestor ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByAttestorRequestAmino): QueryAttestationsByAttestorRequest { + const message = createBaseQueryAttestationsByAttestorRequest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestAmino { + const obj: any = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByAttestorRequestAminoMsg): QueryAttestationsByAttestorRequest { + return QueryAttestationsByAttestorRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByAttestorRequestProtoMsg): QueryAttestationsByAttestorRequest { + return QueryAttestationsByAttestorRequest.decode(message.value); + }, + toProto(message: QueryAttestationsByAttestorRequest): Uint8Array { + return QueryAttestationsByAttestorRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", + value: QueryAttestationsByAttestorRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByAttestorResponse(): QueryAttestationsByAttestorResponse { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByAttestorResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + encode(message: QueryAttestationsByAttestorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.attestations) { + AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByAttestorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByAttestorResponse { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByAttestorResponseAmino): QueryAttestationsByAttestorResponse { + const message = createBaseQueryAttestationsByAttestorResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseAmino { + const obj: any = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByAttestorResponseAminoMsg): QueryAttestationsByAttestorResponse { + return QueryAttestationsByAttestorResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByAttestorResponseProtoMsg): QueryAttestationsByAttestorResponse { + return QueryAttestationsByAttestorResponse.decode(message.value); + }, + toProto(message: QueryAttestationsByAttestorResponse): Uint8Array { + return QueryAttestationsByAttestorResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", + value: QueryAttestationsByAttestorResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIRequest(): QueryAttestationsByIRIRequest { + return { + iri: "", + pagination: undefined + }; +} +export const QueryAttestationsByIRIRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + encode(message: QueryAttestationsByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByIRIRequest { + const message = createBaseQueryAttestationsByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByIRIRequestAmino): QueryAttestationsByIRIRequest { + const message = createBaseQueryAttestationsByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByIRIRequestAminoMsg): QueryAttestationsByIRIRequest { + return QueryAttestationsByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByIRIRequestProtoMsg): QueryAttestationsByIRIRequest { + return QueryAttestationsByIRIRequest.decode(message.value); + }, + toProto(message: QueryAttestationsByIRIRequest): Uint8Array { + return QueryAttestationsByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", + value: QueryAttestationsByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByIRIResponse(): QueryAttestationsByIRIResponse { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByIRIResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + encode(message: QueryAttestationsByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.attestations) { + AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByIRIResponse { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByIRIResponseAmino): QueryAttestationsByIRIResponse { + const message = createBaseQueryAttestationsByIRIResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseAmino { + const obj: any = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByIRIResponseAminoMsg): QueryAttestationsByIRIResponse { + return QueryAttestationsByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByIRIResponseProtoMsg): QueryAttestationsByIRIResponse { + return QueryAttestationsByIRIResponse.decode(message.value); + }, + toProto(message: QueryAttestationsByIRIResponse): Uint8Array { + return QueryAttestationsByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", + value: QueryAttestationsByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashRequest(): QueryAttestationsByHashRequest { + return { + contentHash: undefined, + pagination: undefined + }; +} +export const QueryAttestationsByHashRequest = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + encode(message: QueryAttestationsByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByHashRequest { + const message = createBaseQueryAttestationsByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByHashRequestAmino): QueryAttestationsByHashRequest { + const message = createBaseQueryAttestationsByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestAmino { + const obj: any = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByHashRequestAminoMsg): QueryAttestationsByHashRequest { + return QueryAttestationsByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByHashRequestProtoMsg): QueryAttestationsByHashRequest { + return QueryAttestationsByHashRequest.decode(message.value); + }, + toProto(message: QueryAttestationsByHashRequest): Uint8Array { + return QueryAttestationsByHashRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", + value: QueryAttestationsByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAttestationsByHashResponse(): QueryAttestationsByHashResponse { + return { + attestations: [], + pagination: undefined + }; +} +export const QueryAttestationsByHashResponse = { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + encode(message: QueryAttestationsByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.attestations) { + AttestationInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAttestationsByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAttestationsByHashResponse { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAttestationsByHashResponseAmino): QueryAttestationsByHashResponse { + const message = createBaseQueryAttestationsByHashResponse(); + message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseAmino { + const obj: any = {}; + if (message.attestations) { + obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); + } else { + obj.attestations = message.attestations; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAttestationsByHashResponseAminoMsg): QueryAttestationsByHashResponse { + return QueryAttestationsByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAttestationsByHashResponseProtoMsg): QueryAttestationsByHashResponse { + return QueryAttestationsByHashResponse.decode(message.value); + }, + toProto(message: QueryAttestationsByHashResponse): Uint8Array { + return QueryAttestationsByHashResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", + value: QueryAttestationsByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolverRequest(): QueryResolverRequest { + return { + id: BigInt(0) + }; +} +export const QueryResolverRequest = { + typeUrl: "/regen.data.v1.QueryResolverRequest", + encode(message: QueryResolverRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolverRequest { + const message = createBaseQueryResolverRequest(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QueryResolverRequestAmino): QueryResolverRequest { + const message = createBaseQueryResolverRequest(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + return message; + }, + toAmino(message: QueryResolverRequest): QueryResolverRequestAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolverRequestAminoMsg): QueryResolverRequest { + return QueryResolverRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolverRequestProtoMsg): QueryResolverRequest { + return QueryResolverRequest.decode(message.value); + }, + toProto(message: QueryResolverRequest): Uint8Array { + return QueryResolverRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolverRequest", + value: QueryResolverRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolverResponse(): QueryResolverResponse { + return { + resolver: undefined + }; +} +export const QueryResolverResponse = { + typeUrl: "/regen.data.v1.QueryResolverResponse", + encode(message: QueryResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.resolver !== undefined) { + ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolver = ResolverInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolverResponse { + const message = createBaseQueryResolverResponse(); + message.resolver = object.resolver !== undefined && object.resolver !== null ? ResolverInfo.fromPartial(object.resolver) : undefined; + return message; + }, + fromAmino(object: QueryResolverResponseAmino): QueryResolverResponse { + const message = createBaseQueryResolverResponse(); + if (object.resolver !== undefined && object.resolver !== null) { + message.resolver = ResolverInfo.fromAmino(object.resolver); + } + return message; + }, + toAmino(message: QueryResolverResponse): QueryResolverResponseAmino { + const obj: any = {}; + obj.resolver = message.resolver ? ResolverInfo.toAmino(message.resolver) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolverResponseAminoMsg): QueryResolverResponse { + return QueryResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolverResponseProtoMsg): QueryResolverResponse { + return QueryResolverResponse.decode(message.value); + }, + toProto(message: QueryResolverResponse): Uint8Array { + return QueryResolverResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolverResponse", + value: QueryResolverResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIRequest(): QueryResolversByIRIRequest { + return { + iri: "", + pagination: undefined + }; +} +export const QueryResolversByIRIRequest = { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + encode(message: QueryResolversByIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByIRIRequest { + const message = createBaseQueryResolversByIRIRequest(); + message.iri = object.iri ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByIRIRequestAmino): QueryResolversByIRIRequest { + const message = createBaseQueryResolversByIRIRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByIRIRequestAminoMsg): QueryResolversByIRIRequest { + return QueryResolversByIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByIRIRequestProtoMsg): QueryResolversByIRIRequest { + return QueryResolversByIRIRequest.decode(message.value); + }, + toProto(message: QueryResolversByIRIRequest): Uint8Array { + return QueryResolversByIRIRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", + value: QueryResolversByIRIRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByIRIResponse(): QueryResolversByIRIResponse { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByIRIResponse = { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + encode(message: QueryResolversByIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.resolvers) { + ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByIRIResponse { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByIRIResponseAmino): QueryResolversByIRIResponse { + const message = createBaseQueryResolversByIRIResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseAmino { + const obj: any = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByIRIResponseAminoMsg): QueryResolversByIRIResponse { + return QueryResolversByIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByIRIResponseProtoMsg): QueryResolversByIRIResponse { + return QueryResolversByIRIResponse.decode(message.value); + }, + toProto(message: QueryResolversByIRIResponse): Uint8Array { + return QueryResolversByIRIResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", + value: QueryResolversByIRIResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashRequest(): QueryResolversByHashRequest { + return { + contentHash: undefined, + pagination: undefined + }; +} +export const QueryResolversByHashRequest = { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + encode(message: QueryResolversByHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByHashRequest { + const message = createBaseQueryResolversByHashRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByHashRequestAmino): QueryResolversByHashRequest { + const message = createBaseQueryResolversByHashRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByHashRequest): QueryResolversByHashRequestAmino { + const obj: any = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByHashRequestAminoMsg): QueryResolversByHashRequest { + return QueryResolversByHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByHashRequestProtoMsg): QueryResolversByHashRequest { + return QueryResolversByHashRequest.decode(message.value); + }, + toProto(message: QueryResolversByHashRequest): Uint8Array { + return QueryResolversByHashRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashRequest", + value: QueryResolversByHashRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByHashResponse(): QueryResolversByHashResponse { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByHashResponse = { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + encode(message: QueryResolversByHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.resolvers) { + ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByHashResponse { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByHashResponseAmino): QueryResolversByHashResponse { + const message = createBaseQueryResolversByHashResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByHashResponse): QueryResolversByHashResponseAmino { + const obj: any = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByHashResponseAminoMsg): QueryResolversByHashResponse { + return QueryResolversByHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByHashResponseProtoMsg): QueryResolversByHashResponse { + return QueryResolversByHashResponse.decode(message.value); + }, + toProto(message: QueryResolversByHashResponse): Uint8Array { + return QueryResolversByHashResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByHashResponse", + value: QueryResolversByHashResponse.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLRequest(): QueryResolversByURLRequest { + return { + url: "", + pagination: undefined + }; +} +export const QueryResolversByURLRequest = { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + encode(message: QueryResolversByURLRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.url !== "") { + writer.uint32(10).string(message.url); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByURLRequest { + const message = createBaseQueryResolversByURLRequest(); + message.url = object.url ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByURLRequestAmino): QueryResolversByURLRequest { + const message = createBaseQueryResolversByURLRequest(); + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByURLRequest): QueryResolversByURLRequestAmino { + const obj: any = {}; + obj.url = message.url === "" ? undefined : message.url; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByURLRequestAminoMsg): QueryResolversByURLRequest { + return QueryResolversByURLRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByURLRequestProtoMsg): QueryResolversByURLRequest { + return QueryResolversByURLRequest.decode(message.value); + }, + toProto(message: QueryResolversByURLRequest): Uint8Array { + return QueryResolversByURLRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLRequest", + value: QueryResolversByURLRequest.encode(message).finish() + }; + } +}; +function createBaseQueryResolversByURLResponse(): QueryResolversByURLResponse { + return { + resolvers: [], + pagination: undefined + }; +} +export const QueryResolversByURLResponse = { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + encode(message: QueryResolversByURLResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.resolvers) { + ResolverInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryResolversByURLResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryResolversByURLResponse { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryResolversByURLResponseAmino): QueryResolversByURLResponse { + const message = createBaseQueryResolversByURLResponse(); + message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryResolversByURLResponse): QueryResolversByURLResponseAmino { + const obj: any = {}; + if (message.resolvers) { + obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); + } else { + obj.resolvers = message.resolvers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryResolversByURLResponseAminoMsg): QueryResolversByURLResponse { + return QueryResolversByURLResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryResolversByURLResponseProtoMsg): QueryResolversByURLResponse { + return QueryResolversByURLResponse.decode(message.value); + }, + toProto(message: QueryResolversByURLResponse): Uint8Array { + return QueryResolversByURLResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.QueryResolversByURLResponse", + value: QueryResolversByURLResponse.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashRequest(): ConvertIRIToHashRequest { + return { + iri: "" + }; +} +export const ConvertIRIToHashRequest = { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + encode(message: ConvertIRIToHashRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConvertIRIToHashRequest { + const message = createBaseConvertIRIToHashRequest(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: ConvertIRIToHashRequestAmino): ConvertIRIToHashRequest { + const message = createBaseConvertIRIToHashRequest(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: ConvertIRIToHashRequestAminoMsg): ConvertIRIToHashRequest { + return ConvertIRIToHashRequest.fromAmino(object.value); + }, + fromProtoMsg(message: ConvertIRIToHashRequestProtoMsg): ConvertIRIToHashRequest { + return ConvertIRIToHashRequest.decode(message.value); + }, + toProto(message: ConvertIRIToHashRequest): Uint8Array { + return ConvertIRIToHashRequest.encode(message).finish(); + }, + toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", + value: ConvertIRIToHashRequest.encode(message).finish() + }; + } +}; +function createBaseConvertIRIToHashResponse(): ConvertIRIToHashResponse { + return { + contentHash: undefined + }; +} +export const ConvertIRIToHashResponse = { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + encode(message: ConvertIRIToHashResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertIRIToHashResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConvertIRIToHashResponse { + const message = createBaseConvertIRIToHashResponse(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object: ConvertIRIToHashResponseAmino): ConvertIRIToHashResponse { + const message = createBaseConvertIRIToHashResponse(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseAmino { + const obj: any = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object: ConvertIRIToHashResponseAminoMsg): ConvertIRIToHashResponse { + return ConvertIRIToHashResponse.fromAmino(object.value); + }, + fromProtoMsg(message: ConvertIRIToHashResponseProtoMsg): ConvertIRIToHashResponse { + return ConvertIRIToHashResponse.decode(message.value); + }, + toProto(message: ConvertIRIToHashResponse): Uint8Array { + return ConvertIRIToHashResponse.encode(message).finish(); + }, + toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", + value: ConvertIRIToHashResponse.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIRequest(): ConvertHashToIRIRequest { + return { + contentHash: undefined + }; +} +export const ConvertHashToIRIRequest = { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + encode(message: ConvertHashToIRIRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConvertHashToIRIRequest { + const message = createBaseConvertHashToIRIRequest(); + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object: ConvertHashToIRIRequestAmino): ConvertHashToIRIRequest { + const message = createBaseConvertHashToIRIRequest(); + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestAmino { + const obj: any = {}; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object: ConvertHashToIRIRequestAminoMsg): ConvertHashToIRIRequest { + return ConvertHashToIRIRequest.fromAmino(object.value); + }, + fromProtoMsg(message: ConvertHashToIRIRequestProtoMsg): ConvertHashToIRIRequest { + return ConvertHashToIRIRequest.decode(message.value); + }, + toProto(message: ConvertHashToIRIRequest): Uint8Array { + return ConvertHashToIRIRequest.encode(message).finish(); + }, + toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", + value: ConvertHashToIRIRequest.encode(message).finish() + }; + } +}; +function createBaseConvertHashToIRIResponse(): ConvertHashToIRIResponse { + return { + iri: "" + }; +} +export const ConvertHashToIRIResponse = { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + encode(message: ConvertHashToIRIResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConvertHashToIRIResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConvertHashToIRIResponse { + const message = createBaseConvertHashToIRIResponse(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: ConvertHashToIRIResponseAmino): ConvertHashToIRIResponse { + const message = createBaseConvertHashToIRIResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: ConvertHashToIRIResponseAminoMsg): ConvertHashToIRIResponse { + return ConvertHashToIRIResponse.fromAmino(object.value); + }, + fromProtoMsg(message: ConvertHashToIRIResponseProtoMsg): ConvertHashToIRIResponse { + return ConvertHashToIRIResponse.decode(message.value); + }, + toProto(message: ConvertHashToIRIResponse): Uint8Array { + return ConvertHashToIRIResponse.encode(message).finish(); + }, + toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", + value: ConvertHashToIRIResponse.encode(message).finish() + }; + } +}; +function createBaseAnchorInfo(): AnchorInfo { + return { + iri: "", + contentHash: undefined, + timestamp: undefined + }; +} +export const AnchorInfo = { + typeUrl: "/regen.data.v1.AnchorInfo", + encode(message: AnchorInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAnchorInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AnchorInfo { + const message = createBaseAnchorInfo(); + message.iri = object.iri ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: AnchorInfoAmino): AnchorInfo { + const message = createBaseAnchorInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: AnchorInfo): AnchorInfoAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: AnchorInfoAminoMsg): AnchorInfo { + return AnchorInfo.fromAmino(object.value); + }, + fromProtoMsg(message: AnchorInfoProtoMsg): AnchorInfo { + return AnchorInfo.decode(message.value); + }, + toProto(message: AnchorInfo): Uint8Array { + return AnchorInfo.encode(message).finish(); + }, + toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg { + return { + typeUrl: "/regen.data.v1.AnchorInfo", + value: AnchorInfo.encode(message).finish() + }; + } +}; +function createBaseAttestationInfo(): AttestationInfo { + return { + iri: "", + attestor: "", + timestamp: undefined + }; +} +export const AttestationInfo = { + typeUrl: "/regen.data.v1.AttestationInfo", + encode(message: AttestationInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.attestor !== "") { + writer.uint32(18).string(message.attestor); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAttestationInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.attestor = reader.string(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AttestationInfo { + const message = createBaseAttestationInfo(); + message.iri = object.iri ?? ""; + message.attestor = object.attestor ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: AttestationInfoAmino): AttestationInfo { + const message = createBaseAttestationInfo(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: AttestationInfo): AttestationInfoAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: AttestationInfoAminoMsg): AttestationInfo { + return AttestationInfo.fromAmino(object.value); + }, + fromProtoMsg(message: AttestationInfoProtoMsg): AttestationInfo { + return AttestationInfo.decode(message.value); + }, + toProto(message: AttestationInfo): Uint8Array { + return AttestationInfo.encode(message).finish(); + }, + toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg { + return { + typeUrl: "/regen.data.v1.AttestationInfo", + value: AttestationInfo.encode(message).finish() + }; + } +}; +function createBaseResolverInfo(): ResolverInfo { + return { + id: BigInt(0), + url: "", + manager: "" + }; +} +export const ResolverInfo = { + typeUrl: "/regen.data.v1.ResolverInfo", + encode(message: ResolverInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager !== "") { + writer.uint32(26).string(message.manager); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolverInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResolverInfo { + const message = createBaseResolverInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? ""; + return message; + }, + fromAmino(object: ResolverInfoAmino): ResolverInfo { + const message = createBaseResolverInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + return message; + }, + toAmino(message: ResolverInfo): ResolverInfoAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager === "" ? undefined : message.manager; + return obj; + }, + fromAminoMsg(object: ResolverInfoAminoMsg): ResolverInfo { + return ResolverInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ResolverInfoProtoMsg): ResolverInfo { + return ResolverInfo.decode(message.value); + }, + toProto(message: ResolverInfo): Uint8Array { + return ResolverInfo.encode(message).finish(); + }, + toProtoMsg(message: ResolverInfo): ResolverInfoProtoMsg { + return { + typeUrl: "/regen.data.v1.ResolverInfo", + value: ResolverInfo.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/state.ts b/packages/api/src/regen/data/v1/state.ts new file mode 100644 index 00000000..e3c43ca1 --- /dev/null +++ b/packages/api/src/regen/data/v1/state.ts @@ -0,0 +1,569 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +/** DataID stores a compact data ID and its full IRI. */ +export interface DataID { + /** id is the compact automatically-generated data ID. */ + id: Uint8Array; + /** iri is the IRI of the data which contains its full ContentHash. */ + iri: string; +} +export interface DataIDProtoMsg { + typeUrl: "/regen.data.v1.DataID"; + value: Uint8Array; +} +/** DataID stores a compact data ID and its full IRI. */ +export interface DataIDAmino { + /** id is the compact automatically-generated data ID. */ + id?: string; + /** iri is the IRI of the data which contains its full ContentHash. */ + iri?: string; +} +export interface DataIDAminoMsg { + type: "/regen.data.v1.DataID"; + value: DataIDAmino; +} +/** DataID stores a compact data ID and its full IRI. */ +export interface DataIDSDKType { + id: Uint8Array; + iri: string; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchor { + /** id is the compact data ID. */ + id: Uint8Array; + /** + * timestamp is the anchor timestamp for this object - the time at which + * it was first known to the blockchain. + */ + timestamp?: Date; +} +export interface DataAnchorProtoMsg { + typeUrl: "/regen.data.v1.DataAnchor"; + value: Uint8Array; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchorAmino { + /** id is the compact data ID. */ + id?: string; + /** + * timestamp is the anchor timestamp for this object - the time at which + * it was first known to the blockchain. + */ + timestamp?: string; +} +export interface DataAnchorAminoMsg { + type: "/regen.data.v1.DataAnchor"; + value: DataAnchorAmino; +} +/** DataAnchor stores the anchor timestamp for a data object. */ +export interface DataAnchorSDKType { + id: Uint8Array; + timestamp?: Date; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestor { + /** id is the compact data ID. */ + id: Uint8Array; + /** attestor is the account address of the attestor. */ + attestor: Uint8Array; + /** timestamp is the time at which the attestor signed this data object. */ + timestamp?: Date; +} +export interface DataAttestorProtoMsg { + typeUrl: "/regen.data.v1.DataAttestor"; + value: Uint8Array; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestorAmino { + /** id is the compact data ID. */ + id?: string; + /** attestor is the account address of the attestor. */ + attestor?: string; + /** timestamp is the time at which the attestor signed this data object. */ + timestamp?: string; +} +export interface DataAttestorAminoMsg { + type: "/regen.data.v1.DataAttestor"; + value: DataAttestorAmino; +} +/** DataAttestor is a join table for associating data IDs and attestors. */ +export interface DataAttestorSDKType { + id: Uint8Array; + attestor: Uint8Array; + timestamp?: Date; +} +/** Resolver describes a data resolver. */ +export interface Resolver { + /** id is the ID of the resolver. */ + id: bigint; + /** url is the URL of the resolver. */ + url: string; + /** + * manager is the bytes address of the resolver manager who is allowed + * to make calls to Msg/RegisterResolver for this resolver. + */ + manager: Uint8Array; +} +export interface ResolverProtoMsg { + typeUrl: "/regen.data.v1.Resolver"; + value: Uint8Array; +} +/** Resolver describes a data resolver. */ +export interface ResolverAmino { + /** id is the ID of the resolver. */ + id?: string; + /** url is the URL of the resolver. */ + url?: string; + /** + * manager is the bytes address of the resolver manager who is allowed + * to make calls to Msg/RegisterResolver for this resolver. + */ + manager?: string; +} +export interface ResolverAminoMsg { + type: "/regen.data.v1.Resolver"; + value: ResolverAmino; +} +/** Resolver describes a data resolver. */ +export interface ResolverSDKType { + id: bigint; + url: string; + manager: Uint8Array; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolver { + /** id is the compact data ID. */ + id: Uint8Array; + /** resolver_id is the ID of the resolver. */ + resolverId: bigint; +} +export interface DataResolverProtoMsg { + typeUrl: "/regen.data.v1.DataResolver"; + value: Uint8Array; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolverAmino { + /** id is the compact data ID. */ + id?: string; + /** resolver_id is the ID of the resolver. */ + resolver_id?: string; +} +export interface DataResolverAminoMsg { + type: "/regen.data.v1.DataResolver"; + value: DataResolverAmino; +} +/** + * DataResolver is a join table between data objects and resolvers and indicates + * that a resolver claims to be able to resolve this data object. + */ +export interface DataResolverSDKType { + id: Uint8Array; + resolver_id: bigint; +} +function createBaseDataID(): DataID { + return { + id: new Uint8Array(), + iri: "" + }; +} +export const DataID = { + typeUrl: "/regen.data.v1.DataID", + encode(message: DataID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.iri !== "") { + writer.uint32(18).string(message.iri); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DataID { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.iri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DataID { + const message = createBaseDataID(); + message.id = object.id ?? new Uint8Array(); + message.iri = object.iri ?? ""; + return message; + }, + fromAmino(object: DataIDAmino): DataID { + const message = createBaseDataID(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + return message; + }, + toAmino(message: DataID): DataIDAmino { + const obj: any = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.iri = message.iri === "" ? undefined : message.iri; + return obj; + }, + fromAminoMsg(object: DataIDAminoMsg): DataID { + return DataID.fromAmino(object.value); + }, + fromProtoMsg(message: DataIDProtoMsg): DataID { + return DataID.decode(message.value); + }, + toProto(message: DataID): Uint8Array { + return DataID.encode(message).finish(); + }, + toProtoMsg(message: DataID): DataIDProtoMsg { + return { + typeUrl: "/regen.data.v1.DataID", + value: DataID.encode(message).finish() + }; + } +}; +function createBaseDataAnchor(): DataAnchor { + return { + id: new Uint8Array(), + timestamp: undefined + }; +} +export const DataAnchor = { + typeUrl: "/regen.data.v1.DataAnchor", + encode(message: DataAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DataAnchor { + const message = createBaseDataAnchor(); + message.id = object.id ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: DataAnchorAmino): DataAnchor { + const message = createBaseDataAnchor(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: DataAnchor): DataAnchorAmino { + const obj: any = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: DataAnchorAminoMsg): DataAnchor { + return DataAnchor.fromAmino(object.value); + }, + fromProtoMsg(message: DataAnchorProtoMsg): DataAnchor { + return DataAnchor.decode(message.value); + }, + toProto(message: DataAnchor): Uint8Array { + return DataAnchor.encode(message).finish(); + }, + toProtoMsg(message: DataAnchor): DataAnchorProtoMsg { + return { + typeUrl: "/regen.data.v1.DataAnchor", + value: DataAnchor.encode(message).finish() + }; + } +}; +function createBaseDataAttestor(): DataAttestor { + return { + id: new Uint8Array(), + attestor: new Uint8Array(), + timestamp: undefined + }; +} +export const DataAttestor = { + typeUrl: "/regen.data.v1.DataAttestor", + encode(message: DataAttestor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.attestor.length !== 0) { + writer.uint32(18).bytes(message.attestor); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataAttestor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.attestor = reader.bytes(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DataAttestor { + const message = createBaseDataAttestor(); + message.id = object.id ?? new Uint8Array(); + message.attestor = object.attestor ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: DataAttestorAmino): DataAttestor { + const message = createBaseDataAttestor(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = bytesFromBase64(object.attestor); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: DataAttestor): DataAttestorAmino { + const obj: any = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.attestor = message.attestor ? base64FromBytes(message.attestor) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: DataAttestorAminoMsg): DataAttestor { + return DataAttestor.fromAmino(object.value); + }, + fromProtoMsg(message: DataAttestorProtoMsg): DataAttestor { + return DataAttestor.decode(message.value); + }, + toProto(message: DataAttestor): Uint8Array { + return DataAttestor.encode(message).finish(); + }, + toProtoMsg(message: DataAttestor): DataAttestorProtoMsg { + return { + typeUrl: "/regen.data.v1.DataAttestor", + value: DataAttestor.encode(message).finish() + }; + } +}; +function createBaseResolver(): Resolver { + return { + id: BigInt(0), + url: "", + manager: new Uint8Array() + }; +} +export const Resolver = { + typeUrl: "/regen.data.v1.Resolver", + encode(message: Resolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.url !== "") { + writer.uint32(18).string(message.url); + } + if (message.manager.length !== 0) { + writer.uint32(26).bytes(message.manager); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Resolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.url = reader.string(); + break; + case 3: + message.manager = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Resolver { + const message = createBaseResolver(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.url = object.url ?? ""; + message.manager = object.manager ?? new Uint8Array(); + return message; + }, + fromAmino(object: ResolverAmino): Resolver { + const message = createBaseResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.url !== undefined && object.url !== null) { + message.url = object.url; + } + if (object.manager !== undefined && object.manager !== null) { + message.manager = bytesFromBase64(object.manager); + } + return message; + }, + toAmino(message: Resolver): ResolverAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.url = message.url === "" ? undefined : message.url; + obj.manager = message.manager ? base64FromBytes(message.manager) : undefined; + return obj; + }, + fromAminoMsg(object: ResolverAminoMsg): Resolver { + return Resolver.fromAmino(object.value); + }, + fromProtoMsg(message: ResolverProtoMsg): Resolver { + return Resolver.decode(message.value); + }, + toProto(message: Resolver): Uint8Array { + return Resolver.encode(message).finish(); + }, + toProtoMsg(message: Resolver): ResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.Resolver", + value: Resolver.encode(message).finish() + }; + } +}; +function createBaseDataResolver(): DataResolver { + return { + id: new Uint8Array(), + resolverId: BigInt(0) + }; +} +export const DataResolver = { + typeUrl: "/regen.data.v1.DataResolver", + encode(message: DataResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id.length !== 0) { + writer.uint32(10).bytes(message.id); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DataResolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDataResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.bytes(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DataResolver { + const message = createBaseDataResolver(); + message.id = object.id ?? new Uint8Array(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: DataResolverAmino): DataResolver { + const message = createBaseDataResolver(); + if (object.id !== undefined && object.id !== null) { + message.id = bytesFromBase64(object.id); + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message: DataResolver): DataResolverAmino { + const obj: any = {}; + obj.id = message.id ? base64FromBytes(message.id) : undefined; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: DataResolverAminoMsg): DataResolver { + return DataResolver.fromAmino(object.value); + }, + fromProtoMsg(message: DataResolverProtoMsg): DataResolver { + return DataResolver.decode(message.value); + }, + toProto(message: DataResolver): Uint8Array { + return DataResolver.encode(message).finish(); + }, + toProtoMsg(message: DataResolver): DataResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.DataResolver", + value: DataResolver.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/tx.amino.ts b/packages/api/src/regen/data/v1/tx.amino.ts new file mode 100644 index 00000000..cfd91117 --- /dev/null +++ b/packages/api/src/regen/data/v1/tx.amino.ts @@ -0,0 +1,24 @@ +//@ts-nocheck +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export const AminoConverter = { + "/regen.data.v1.MsgAnchor": { + aminoType: "regen-ledger/MsgAnchor", + toAmino: MsgAnchor.toAmino, + fromAmino: MsgAnchor.fromAmino + }, + "/regen.data.v1.MsgAttest": { + aminoType: "regen-ledger/MsgAttest", + toAmino: MsgAttest.toAmino, + fromAmino: MsgAttest.fromAmino + }, + "/regen.data.v1.MsgDefineResolver": { + aminoType: "regen-ledger/MsgDefineResolver", + toAmino: MsgDefineResolver.toAmino, + fromAmino: MsgDefineResolver.fromAmino + }, + "/regen.data.v1.MsgRegisterResolver": { + aminoType: "regen-ledger/MsgRegisterResolver", + toAmino: MsgRegisterResolver.toAmino, + fromAmino: MsgRegisterResolver.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/tx.registry.ts b/packages/api/src/regen/data/v1/tx.registry.ts new file mode 100644 index 00000000..3704ff84 --- /dev/null +++ b/packages/api/src/regen/data/v1/tx.registry.ts @@ -0,0 +1,89 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.data.v1.MsgAnchor", MsgAnchor], ["/regen.data.v1.MsgAttest", MsgAttest], ["/regen.data.v1.MsgDefineResolver", MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", MsgRegisterResolver]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + anchor(value: MsgAnchor) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.encode(value).finish() + }; + }, + attest(value: MsgAttest) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.encode(value).finish() + }; + }, + defineResolver(value: MsgDefineResolver) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.encode(value).finish() + }; + }, + registerResolver(value: MsgRegisterResolver) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.encode(value).finish() + }; + } + }, + withTypeUrl: { + anchor(value: MsgAnchor) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value + }; + }, + attest(value: MsgAttest) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value + }; + }, + defineResolver(value: MsgDefineResolver) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value + }; + }, + registerResolver(value: MsgRegisterResolver) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value + }; + } + }, + fromPartial: { + anchor(value: MsgAnchor) { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.fromPartial(value) + }; + }, + attest(value: MsgAttest) { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.fromPartial(value) + }; + }, + defineResolver(value: MsgDefineResolver) { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.fromPartial(value) + }; + }, + registerResolver(value: MsgRegisterResolver) { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/tx.rpc.msg.ts b/packages/api/src/regen/data/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..75a3a923 --- /dev/null +++ b/packages/api/src/regen/data/v1/tx.rpc.msg.ts @@ -0,0 +1,79 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; +/** Msg is the regen.data.v1 Msg service */ +export interface Msg { + /** + * Anchor "anchors" a piece of data to the blockchain based on its secure + * hash, effectively providing a tamper resistant timestamp. + * + * The sender in Anchor is not attesting to the veracity of the underlying + * data. They can simply be an intermediary providing timestamp services. + * Attest should be used to create a digital signature attesting to the + * veracity of some piece of data. + */ + anchor(request: MsgAnchor): Promise; + /** + * Attest allows for digital signing of an arbitrary piece of data on the + * blockchain. By attesting to data, the attestor is making a statement about + * the veracity of the data itself. It is like signing a legal document, + * meaning that I agree to all conditions and to the best of my knowledge + * everything is true. When anchoring data, the sender is not attesting to the + * veracity of the data, they are simply communicating that it exists. + * + * On-chain signatures have the following benefits: + * - on-chain identities can be managed using different cryptographic keys + * that change over time through key rotation practices + * - an on-chain identity may represent an organization and through delegation + * individual members may sign on behalf of the group + * - the blockchain transaction envelope provides built-in replay protection + * and timestamping + * + * Attest implicitly calls Anchor if the data was not already anchored. + * + * Attest can be called multiple times for the same content hash with + * different attestors and those attestors will be appended to the list of + * attestors. If the same attestor attempts to attest to the same piece of + * data, the attestor will be ignored and a new attestation with a new + * timestamp will not be added. + */ + attest(request: MsgAttest): Promise; + /** + * DefineResolver defines a resolver URL and assigns it a new integer ID + * that can be used in calls to RegisterResolver. + */ + defineResolver(request: MsgDefineResolver): Promise; + /** RegisterResolver registers data content hashes */ + registerResolver(request: MsgRegisterResolver): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.anchor = this.anchor.bind(this); + this.attest = this.attest.bind(this); + this.defineResolver = this.defineResolver.bind(this); + this.registerResolver = this.registerResolver.bind(this); + } + anchor(request: MsgAnchor): Promise { + const data = MsgAnchor.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); + return promise.then(data => MsgAnchorResponse.decode(new BinaryReader(data))); + } + attest(request: MsgAttest): Promise { + const data = MsgAttest.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); + return promise.then(data => MsgAttestResponse.decode(new BinaryReader(data))); + } + defineResolver(request: MsgDefineResolver): Promise { + const data = MsgDefineResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); + return promise.then(data => MsgDefineResolverResponse.decode(new BinaryReader(data))); + } + registerResolver(request: MsgRegisterResolver): Promise { + const data = MsgRegisterResolver.encode(request).finish(); + const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); + return promise.then(data => MsgRegisterResolverResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/tx.ts b/packages/api/src/regen/data/v1/tx.ts new file mode 100644 index 00000000..d2a09118 --- /dev/null +++ b/packages/api/src/regen/data/v1/tx.ts @@ -0,0 +1,887 @@ +//@ts-nocheck +import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** MsgAnchor is the Msg/Anchor request type. */ +export interface MsgAnchor { + /** + * sender is the address of the sender of the transaction. The sender in + * Anchor is not attesting to the veracity of the underlying data. They + * can simply be an intermediary providing services. + */ + sender: string; + /** content_hash is the content hash for the data to anchor. */ + contentHash?: ContentHash; +} +export interface MsgAnchorProtoMsg { + typeUrl: "/regen.data.v1.MsgAnchor"; + value: Uint8Array; +} +/** MsgAnchor is the Msg/Anchor request type. */ +export interface MsgAnchorAmino { + /** + * sender is the address of the sender of the transaction. The sender in + * Anchor is not attesting to the veracity of the underlying data. They + * can simply be an intermediary providing services. + */ + sender?: string; + /** content_hash is the content hash for the data to anchor. */ + content_hash?: ContentHashAmino; +} +export interface MsgAnchorAminoMsg { + type: "regen-ledger/MsgAnchor"; + value: MsgAnchorAmino; +} +/** MsgAnchor is the Msg/Anchor request type. */ +export interface MsgAnchorSDKType { + sender: string; + content_hash?: ContentHashSDKType; +} +/** MsgAnchor is the Msg/Anchor response type. */ +export interface MsgAnchorResponse { + /** iri is the IRI of the data that was anchored. */ + iri: string; + /** timestamp is the time at which the data was anchored. */ + timestamp?: Date; +} +export interface MsgAnchorResponseProtoMsg { + typeUrl: "/regen.data.v1.MsgAnchorResponse"; + value: Uint8Array; +} +/** MsgAnchor is the Msg/Anchor response type. */ +export interface MsgAnchorResponseAmino { + /** iri is the IRI of the data that was anchored. */ + iri?: string; + /** timestamp is the time at which the data was anchored. */ + timestamp?: string; +} +export interface MsgAnchorResponseAminoMsg { + type: "/regen.data.v1.MsgAnchorResponse"; + value: MsgAnchorResponseAmino; +} +/** MsgAnchor is the Msg/Anchor response type. */ +export interface MsgAnchorResponseSDKType { + iri: string; + timestamp?: Date; +} +/** MsgAttest is the Msg/Attest request type. */ +export interface MsgAttest { + /** + * attestor is the addresses of the account attesting to the veracity of the + * data. By making an Attest request, the attestor is attesting to the + * veracity of the data referenced by the IRI. The precise meaning of this may + * vary depending on the underlying data. + */ + attestor: string; + /** + * content_hashes are the content hashes for anchored data. Only RDF graph + * data can be signed as its data model is intended to specifically convey + * semantic meaning. + */ + contentHashes: ContentHash_Graph[]; +} +export interface MsgAttestProtoMsg { + typeUrl: "/regen.data.v1.MsgAttest"; + value: Uint8Array; +} +/** MsgAttest is the Msg/Attest request type. */ +export interface MsgAttestAmino { + /** + * attestor is the addresses of the account attesting to the veracity of the + * data. By making an Attest request, the attestor is attesting to the + * veracity of the data referenced by the IRI. The precise meaning of this may + * vary depending on the underlying data. + */ + attestor?: string; + /** + * content_hashes are the content hashes for anchored data. Only RDF graph + * data can be signed as its data model is intended to specifically convey + * semantic meaning. + */ + content_hashes?: ContentHash_GraphAmino[]; +} +export interface MsgAttestAminoMsg { + type: "regen-ledger/MsgAttest"; + value: MsgAttestAmino; +} +/** MsgAttest is the Msg/Attest request type. */ +export interface MsgAttestSDKType { + attestor: string; + content_hashes: ContentHash_GraphSDKType[]; +} +/** MsgAttestResponse is the Msg/Attest response type. */ +export interface MsgAttestResponse { + /** + * iris are the IRIs of the data that was attested to. If the attestor attests + * to the same piece of data, the previous attestation will not be updated and + * the IRI will not be included in this list. + */ + iris: string[]; + /** timestamp is the time at which any new attestations were made. */ + timestamp?: Date; +} +export interface MsgAttestResponseProtoMsg { + typeUrl: "/regen.data.v1.MsgAttestResponse"; + value: Uint8Array; +} +/** MsgAttestResponse is the Msg/Attest response type. */ +export interface MsgAttestResponseAmino { + /** + * iris are the IRIs of the data that was attested to. If the attestor attests + * to the same piece of data, the previous attestation will not be updated and + * the IRI will not be included in this list. + */ + iris?: string[]; + /** timestamp is the time at which any new attestations were made. */ + timestamp?: string; +} +export interface MsgAttestResponseAminoMsg { + type: "/regen.data.v1.MsgAttestResponse"; + value: MsgAttestResponseAmino; +} +/** MsgAttestResponse is the Msg/Attest response type. */ +export interface MsgAttestResponseSDKType { + iris: string[]; + timestamp?: Date; +} +/** MsgDefineResolver is the Msg/DefineResolver request type. */ +export interface MsgDefineResolver { + /** + * manager is the address of the resolver manager. The manager is able + * to make future calls using the ID returned by this operation with + * Msg/RegisterResolver. To authorize other accounts to register resolvers, + * the manager should make use of cosmos.authz. + */ + manager: string; + /** + * resolver_url is a resolver URL which should refer to an HTTP service + * which will respond to a GET request with the IRI of a ContentHash + * and return the content if it exists or a 404. For graph data, resolvers + * should use the HTTP Accept header to negotiate the RDF serialization + * format. + */ + resolverUrl: string; +} +export interface MsgDefineResolverProtoMsg { + typeUrl: "/regen.data.v1.MsgDefineResolver"; + value: Uint8Array; +} +/** MsgDefineResolver is the Msg/DefineResolver request type. */ +export interface MsgDefineResolverAmino { + /** + * manager is the address of the resolver manager. The manager is able + * to make future calls using the ID returned by this operation with + * Msg/RegisterResolver. To authorize other accounts to register resolvers, + * the manager should make use of cosmos.authz. + */ + manager?: string; + /** + * resolver_url is a resolver URL which should refer to an HTTP service + * which will respond to a GET request with the IRI of a ContentHash + * and return the content if it exists or a 404. For graph data, resolvers + * should use the HTTP Accept header to negotiate the RDF serialization + * format. + */ + resolver_url?: string; +} +export interface MsgDefineResolverAminoMsg { + type: "regen-ledger/MsgDefineResolver"; + value: MsgDefineResolverAmino; +} +/** MsgDefineResolver is the Msg/DefineResolver request type. */ +export interface MsgDefineResolverSDKType { + manager: string; + resolver_url: string; +} +/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ +export interface MsgDefineResolverResponse { + /** + * resolver_id is the integer ID of the resolver to be used in + * MsgRegisterResolver. + */ + resolverId: bigint; +} +export interface MsgDefineResolverResponseProtoMsg { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse"; + value: Uint8Array; +} +/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ +export interface MsgDefineResolverResponseAmino { + /** + * resolver_id is the integer ID of the resolver to be used in + * MsgRegisterResolver. + */ + resolver_id?: string; +} +export interface MsgDefineResolverResponseAminoMsg { + type: "/regen.data.v1.MsgDefineResolverResponse"; + value: MsgDefineResolverResponseAmino; +} +/** MsgDefineResolverResponse is the Msg/DefineResolver response type. */ +export interface MsgDefineResolverResponseSDKType { + resolver_id: bigint; +} +/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ +export interface MsgRegisterResolver { + /** + * manager is the address of the resolver manager who registered this + * resolver with Msg/DefinedResolver. + */ + manager: string; + /** resolver_id is the ID of a resolver defined with Msg/DefineResolver. */ + resolverId: bigint; + /** + * content_hashes is a list of content hashes which the resolver claims to + * serve. + */ + contentHashes: ContentHash[]; +} +export interface MsgRegisterResolverProtoMsg { + typeUrl: "/regen.data.v1.MsgRegisterResolver"; + value: Uint8Array; +} +/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ +export interface MsgRegisterResolverAmino { + /** + * manager is the address of the resolver manager who registered this + * resolver with Msg/DefinedResolver. + */ + manager?: string; + /** resolver_id is the ID of a resolver defined with Msg/DefineResolver. */ + resolver_id?: string; + /** + * content_hashes is a list of content hashes which the resolver claims to + * serve. + */ + content_hashes?: ContentHashAmino[]; +} +export interface MsgRegisterResolverAminoMsg { + type: "regen-ledger/MsgRegisterResolver"; + value: MsgRegisterResolverAmino; +} +/** MsgRegisterResolver is the Msg/RegisterResolver request type. */ +export interface MsgRegisterResolverSDKType { + manager: string; + resolver_id: bigint; + content_hashes: ContentHashSDKType[]; +} +/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ +export interface MsgRegisterResolverResponse {} +export interface MsgRegisterResolverResponseProtoMsg { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse"; + value: Uint8Array; +} +/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ +export interface MsgRegisterResolverResponseAmino {} +export interface MsgRegisterResolverResponseAminoMsg { + type: "/regen.data.v1.MsgRegisterResolverResponse"; + value: MsgRegisterResolverResponseAmino; +} +/** MsgRegisterResolverResponse is the Msg/RegisterResolver response type. */ +export interface MsgRegisterResolverResponseSDKType {} +function createBaseMsgAnchor(): MsgAnchor { + return { + sender: "", + contentHash: undefined + }; +} +export const MsgAnchor = { + typeUrl: "/regen.data.v1.MsgAnchor", + encode(message: MsgAnchor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.contentHash !== undefined) { + ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAnchor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.contentHash = ContentHash.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAnchor { + const message = createBaseMsgAnchor(); + message.sender = object.sender ?? ""; + message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; + return message; + }, + fromAmino(object: MsgAnchorAmino): MsgAnchor { + const message = createBaseMsgAnchor(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.content_hash !== undefined && object.content_hash !== null) { + message.contentHash = ContentHash.fromAmino(object.content_hash); + } + return message; + }, + toAmino(message: MsgAnchor): MsgAnchorAmino { + const obj: any = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; + return obj; + }, + fromAminoMsg(object: MsgAnchorAminoMsg): MsgAnchor { + return MsgAnchor.fromAmino(object.value); + }, + toAminoMsg(message: MsgAnchor): MsgAnchorAminoMsg { + return { + type: "regen-ledger/MsgAnchor", + value: MsgAnchor.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAnchorProtoMsg): MsgAnchor { + return MsgAnchor.decode(message.value); + }, + toProto(message: MsgAnchor): Uint8Array { + return MsgAnchor.encode(message).finish(); + }, + toProtoMsg(message: MsgAnchor): MsgAnchorProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgAnchor", + value: MsgAnchor.encode(message).finish() + }; + } +}; +function createBaseMsgAnchorResponse(): MsgAnchorResponse { + return { + iri: "", + timestamp: undefined + }; +} +export const MsgAnchorResponse = { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + encode(message: MsgAnchorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.iri !== "") { + writer.uint32(10).string(message.iri); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAnchorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAnchorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iri = reader.string(); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAnchorResponse { + const message = createBaseMsgAnchorResponse(); + message.iri = object.iri ?? ""; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: MsgAnchorResponseAmino): MsgAnchorResponse { + const message = createBaseMsgAnchorResponse(); + if (object.iri !== undefined && object.iri !== null) { + message.iri = object.iri; + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: MsgAnchorResponse): MsgAnchorResponseAmino { + const obj: any = {}; + obj.iri = message.iri === "" ? undefined : message.iri; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgAnchorResponseAminoMsg): MsgAnchorResponse { + return MsgAnchorResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAnchorResponseProtoMsg): MsgAnchorResponse { + return MsgAnchorResponse.decode(message.value); + }, + toProto(message: MsgAnchorResponse): Uint8Array { + return MsgAnchorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAnchorResponse): MsgAnchorResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgAnchorResponse", + value: MsgAnchorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAttest(): MsgAttest { + return { + attestor: "", + contentHashes: [] + }; +} +export const MsgAttest = { + typeUrl: "/regen.data.v1.MsgAttest", + encode(message: MsgAttest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.attestor !== "") { + writer.uint32(10).string(message.attestor); + } + for (const v of message.contentHashes) { + ContentHash_Graph.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAttest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attestor = reader.string(); + break; + case 2: + message.contentHashes.push(ContentHash_Graph.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAttest { + const message = createBaseMsgAttest(); + message.attestor = object.attestor ?? ""; + message.contentHashes = object.contentHashes?.map(e => ContentHash_Graph.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgAttestAmino): MsgAttest { + const message = createBaseMsgAttest(); + if (object.attestor !== undefined && object.attestor !== null) { + message.attestor = object.attestor; + } + message.contentHashes = object.content_hashes?.map(e => ContentHash_Graph.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgAttest): MsgAttestAmino { + const obj: any = {}; + obj.attestor = message.attestor === "" ? undefined : message.attestor; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash_Graph.toAmino(e) : undefined); + } else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object: MsgAttestAminoMsg): MsgAttest { + return MsgAttest.fromAmino(object.value); + }, + toAminoMsg(message: MsgAttest): MsgAttestAminoMsg { + return { + type: "regen-ledger/MsgAttest", + value: MsgAttest.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAttestProtoMsg): MsgAttest { + return MsgAttest.decode(message.value); + }, + toProto(message: MsgAttest): Uint8Array { + return MsgAttest.encode(message).finish(); + }, + toProtoMsg(message: MsgAttest): MsgAttestProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgAttest", + value: MsgAttest.encode(message).finish() + }; + } +}; +function createBaseMsgAttestResponse(): MsgAttestResponse { + return { + iris: [], + timestamp: undefined + }; +} +export const MsgAttestResponse = { + typeUrl: "/regen.data.v1.MsgAttestResponse", + encode(message: MsgAttestResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.iris) { + writer.uint32(10).string(v!); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAttestResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAttestResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iris.push(reader.string()); + break; + case 2: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAttestResponse { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: MsgAttestResponseAmino): MsgAttestResponse { + const message = createBaseMsgAttestResponse(); + message.iris = object.iris?.map(e => e) || []; + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: MsgAttestResponse): MsgAttestResponseAmino { + const obj: any = {}; + if (message.iris) { + obj.iris = message.iris.map(e => e); + } else { + obj.iris = message.iris; + } + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgAttestResponseAminoMsg): MsgAttestResponse { + return MsgAttestResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAttestResponseProtoMsg): MsgAttestResponse { + return MsgAttestResponse.decode(message.value); + }, + toProto(message: MsgAttestResponse): Uint8Array { + return MsgAttestResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAttestResponse): MsgAttestResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgAttestResponse", + value: MsgAttestResponse.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolver(): MsgDefineResolver { + return { + manager: "", + resolverUrl: "" + }; +} +export const MsgDefineResolver = { + typeUrl: "/regen.data.v1.MsgDefineResolver", + encode(message: MsgDefineResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverUrl !== "") { + writer.uint32(18).string(message.resolverUrl); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDefineResolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDefineResolver { + const message = createBaseMsgDefineResolver(); + message.manager = object.manager ?? ""; + message.resolverUrl = object.resolverUrl ?? ""; + return message; + }, + fromAmino(object: MsgDefineResolverAmino): MsgDefineResolver { + const message = createBaseMsgDefineResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_url !== undefined && object.resolver_url !== null) { + message.resolverUrl = object.resolver_url; + } + return message; + }, + toAmino(message: MsgDefineResolver): MsgDefineResolverAmino { + const obj: any = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; + return obj; + }, + fromAminoMsg(object: MsgDefineResolverAminoMsg): MsgDefineResolver { + return MsgDefineResolver.fromAmino(object.value); + }, + toAminoMsg(message: MsgDefineResolver): MsgDefineResolverAminoMsg { + return { + type: "regen-ledger/MsgDefineResolver", + value: MsgDefineResolver.toAmino(message) + }; + }, + fromProtoMsg(message: MsgDefineResolverProtoMsg): MsgDefineResolver { + return MsgDefineResolver.decode(message.value); + }, + toProto(message: MsgDefineResolver): Uint8Array { + return MsgDefineResolver.encode(message).finish(); + }, + toProtoMsg(message: MsgDefineResolver): MsgDefineResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgDefineResolver", + value: MsgDefineResolver.encode(message).finish() + }; + } +}; +function createBaseMsgDefineResolverResponse(): MsgDefineResolverResponse { + return { + resolverId: BigInt(0) + }; +} +export const MsgDefineResolverResponse = { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + encode(message: MsgDefineResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.resolverId !== BigInt(0)) { + writer.uint32(8).uint64(message.resolverId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgDefineResolverResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgDefineResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resolverId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgDefineResolverResponse { + const message = createBaseMsgDefineResolverResponse(); + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgDefineResolverResponseAmino): MsgDefineResolverResponse { + const message = createBaseMsgDefineResolverResponse(); + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + return message; + }, + toAmino(message: MsgDefineResolverResponse): MsgDefineResolverResponseAmino { + const obj: any = {}; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgDefineResolverResponseAminoMsg): MsgDefineResolverResponse { + return MsgDefineResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgDefineResolverResponseProtoMsg): MsgDefineResolverResponse { + return MsgDefineResolverResponse.decode(message.value); + }, + toProto(message: MsgDefineResolverResponse): Uint8Array { + return MsgDefineResolverResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgDefineResolverResponse): MsgDefineResolverResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgDefineResolverResponse", + value: MsgDefineResolverResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolver(): MsgRegisterResolver { + return { + manager: "", + resolverId: BigInt(0), + contentHashes: [] + }; +} +export const MsgRegisterResolver = { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + encode(message: MsgRegisterResolver, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.manager !== "") { + writer.uint32(10).string(message.manager); + } + if (message.resolverId !== BigInt(0)) { + writer.uint32(16).uint64(message.resolverId); + } + for (const v of message.contentHashes) { + ContentHash.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterResolver { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolver(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.manager = reader.string(); + break; + case 2: + message.resolverId = reader.uint64(); + break; + case 3: + message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRegisterResolver { + const message = createBaseMsgRegisterResolver(); + message.manager = object.manager ?? ""; + message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); + message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgRegisterResolverAmino): MsgRegisterResolver { + const message = createBaseMsgRegisterResolver(); + if (object.manager !== undefined && object.manager !== null) { + message.manager = object.manager; + } + if (object.resolver_id !== undefined && object.resolver_id !== null) { + message.resolverId = BigInt(object.resolver_id); + } + message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgRegisterResolver): MsgRegisterResolverAmino { + const obj: any = {}; + obj.manager = message.manager === "" ? undefined : message.manager; + obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); + } else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object: MsgRegisterResolverAminoMsg): MsgRegisterResolver { + return MsgRegisterResolver.fromAmino(object.value); + }, + toAminoMsg(message: MsgRegisterResolver): MsgRegisterResolverAminoMsg { + return { + type: "regen-ledger/MsgRegisterResolver", + value: MsgRegisterResolver.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRegisterResolverProtoMsg): MsgRegisterResolver { + return MsgRegisterResolver.decode(message.value); + }, + toProto(message: MsgRegisterResolver): Uint8Array { + return MsgRegisterResolver.encode(message).finish(); + }, + toProtoMsg(message: MsgRegisterResolver): MsgRegisterResolverProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolver", + value: MsgRegisterResolver.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterResolverResponse(): MsgRegisterResolverResponse { + return {}; +} +export const MsgRegisterResolverResponse = { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + encode(_: MsgRegisterResolverResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterResolverResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterResolverResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRegisterResolverResponse { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + fromAmino(_: MsgRegisterResolverResponseAmino): MsgRegisterResolverResponse { + const message = createBaseMsgRegisterResolverResponse(); + return message; + }, + toAmino(_: MsgRegisterResolverResponse): MsgRegisterResolverResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRegisterResolverResponseAminoMsg): MsgRegisterResolverResponse { + return MsgRegisterResolverResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRegisterResolverResponseProtoMsg): MsgRegisterResolverResponse { + return MsgRegisterResolverResponse.decode(message.value); + }, + toProto(message: MsgRegisterResolverResponse): Uint8Array { + return MsgRegisterResolverResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRegisterResolverResponse): MsgRegisterResolverResponseProtoMsg { + return { + typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", + value: MsgRegisterResolverResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/data/v1/types.ts b/packages/api/src/regen/data/v1/types.ts new file mode 100644 index 00000000..0180ace0 --- /dev/null +++ b/packages/api/src/regen/data/v1/types.ts @@ -0,0 +1,734 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../../helpers"; +/** DigestAlgorithm is the hash digest algorithm */ +export enum DigestAlgorithm { + /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + DIGEST_ALGORITHM_UNSPECIFIED = 0, + /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ + DIGEST_ALGORITHM_BLAKE2B_256 = 1, + UNRECOGNIZED = -1, +} +export const DigestAlgorithmSDKType = DigestAlgorithm; +export const DigestAlgorithmAmino = DigestAlgorithm; +export function digestAlgorithmFromJSON(object: any): DigestAlgorithm { + switch (object) { + case 0: + case "DIGEST_ALGORITHM_UNSPECIFIED": + return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; + case 1: + case "DIGEST_ALGORITHM_BLAKE2B_256": + return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; + case -1: + case "UNRECOGNIZED": + default: + return DigestAlgorithm.UNRECOGNIZED; + } +} +export function digestAlgorithmToJSON(object: DigestAlgorithm): string { + switch (object) { + case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: + return "DIGEST_ALGORITHM_UNSPECIFIED"; + case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: + return "DIGEST_ALGORITHM_BLAKE2B_256"; + case DigestAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ +export enum RawMediaType { + /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ + RAW_MEDIA_TYPE_UNSPECIFIED = 0, + /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ + RAW_MEDIA_TYPE_TEXT_PLAIN = 1, + /** RAW_MEDIA_TYPE_JSON - JSON */ + RAW_MEDIA_TYPE_JSON = 2, + /** RAW_MEDIA_TYPE_CSV - CSV */ + RAW_MEDIA_TYPE_CSV = 3, + /** RAW_MEDIA_TYPE_XML - XML */ + RAW_MEDIA_TYPE_XML = 4, + /** RAW_MEDIA_TYPE_PDF - PDF */ + RAW_MEDIA_TYPE_PDF = 5, + /** RAW_MEDIA_TYPE_TIFF - TIIF */ + RAW_MEDIA_TYPE_TIFF = 16, + /** RAW_MEDIA_TYPE_JPG - JPG */ + RAW_MEDIA_TYPE_JPG = 17, + /** RAW_MEDIA_TYPE_PNG - PNG */ + RAW_MEDIA_TYPE_PNG = 18, + /** RAW_MEDIA_TYPE_SVG - SVG */ + RAW_MEDIA_TYPE_SVG = 19, + /** RAW_MEDIA_TYPE_WEBP - WEBP */ + RAW_MEDIA_TYPE_WEBP = 20, + /** RAW_MEDIA_TYPE_AVIF - AVIF */ + RAW_MEDIA_TYPE_AVIF = 21, + /** RAW_MEDIA_TYPE_GIF - GIF */ + RAW_MEDIA_TYPE_GIF = 22, + /** RAW_MEDIA_TYPE_APNG - APNG */ + RAW_MEDIA_TYPE_APNG = 23, + /** RAW_MEDIA_TYPE_MPEG - MPEG */ + RAW_MEDIA_TYPE_MPEG = 32, + /** RAW_MEDIA_TYPE_MP4 - MP4 */ + RAW_MEDIA_TYPE_MP4 = 33, + /** RAW_MEDIA_TYPE_WEBM - WEBM */ + RAW_MEDIA_TYPE_WEBM = 34, + /** RAW_MEDIA_TYPE_OGG - OGG */ + RAW_MEDIA_TYPE_OGG = 35, + UNRECOGNIZED = -1, +} +export const RawMediaTypeSDKType = RawMediaType; +export const RawMediaTypeAmino = RawMediaType; +export function rawMediaTypeFromJSON(object: any): RawMediaType { + switch (object) { + case 0: + case "RAW_MEDIA_TYPE_UNSPECIFIED": + return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; + case 1: + case "RAW_MEDIA_TYPE_TEXT_PLAIN": + return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; + case 2: + case "RAW_MEDIA_TYPE_JSON": + return RawMediaType.RAW_MEDIA_TYPE_JSON; + case 3: + case "RAW_MEDIA_TYPE_CSV": + return RawMediaType.RAW_MEDIA_TYPE_CSV; + case 4: + case "RAW_MEDIA_TYPE_XML": + return RawMediaType.RAW_MEDIA_TYPE_XML; + case 5: + case "RAW_MEDIA_TYPE_PDF": + return RawMediaType.RAW_MEDIA_TYPE_PDF; + case 16: + case "RAW_MEDIA_TYPE_TIFF": + return RawMediaType.RAW_MEDIA_TYPE_TIFF; + case 17: + case "RAW_MEDIA_TYPE_JPG": + return RawMediaType.RAW_MEDIA_TYPE_JPG; + case 18: + case "RAW_MEDIA_TYPE_PNG": + return RawMediaType.RAW_MEDIA_TYPE_PNG; + case 19: + case "RAW_MEDIA_TYPE_SVG": + return RawMediaType.RAW_MEDIA_TYPE_SVG; + case 20: + case "RAW_MEDIA_TYPE_WEBP": + return RawMediaType.RAW_MEDIA_TYPE_WEBP; + case 21: + case "RAW_MEDIA_TYPE_AVIF": + return RawMediaType.RAW_MEDIA_TYPE_AVIF; + case 22: + case "RAW_MEDIA_TYPE_GIF": + return RawMediaType.RAW_MEDIA_TYPE_GIF; + case 23: + case "RAW_MEDIA_TYPE_APNG": + return RawMediaType.RAW_MEDIA_TYPE_APNG; + case 32: + case "RAW_MEDIA_TYPE_MPEG": + return RawMediaType.RAW_MEDIA_TYPE_MPEG; + case 33: + case "RAW_MEDIA_TYPE_MP4": + return RawMediaType.RAW_MEDIA_TYPE_MP4; + case 34: + case "RAW_MEDIA_TYPE_WEBM": + return RawMediaType.RAW_MEDIA_TYPE_WEBM; + case 35: + case "RAW_MEDIA_TYPE_OGG": + return RawMediaType.RAW_MEDIA_TYPE_OGG; + case -1: + case "UNRECOGNIZED": + default: + return RawMediaType.UNRECOGNIZED; + } +} +export function rawMediaTypeToJSON(object: RawMediaType): string { + switch (object) { + case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: + return "RAW_MEDIA_TYPE_UNSPECIFIED"; + case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: + return "RAW_MEDIA_TYPE_TEXT_PLAIN"; + case RawMediaType.RAW_MEDIA_TYPE_JSON: + return "RAW_MEDIA_TYPE_JSON"; + case RawMediaType.RAW_MEDIA_TYPE_CSV: + return "RAW_MEDIA_TYPE_CSV"; + case RawMediaType.RAW_MEDIA_TYPE_XML: + return "RAW_MEDIA_TYPE_XML"; + case RawMediaType.RAW_MEDIA_TYPE_PDF: + return "RAW_MEDIA_TYPE_PDF"; + case RawMediaType.RAW_MEDIA_TYPE_TIFF: + return "RAW_MEDIA_TYPE_TIFF"; + case RawMediaType.RAW_MEDIA_TYPE_JPG: + return "RAW_MEDIA_TYPE_JPG"; + case RawMediaType.RAW_MEDIA_TYPE_PNG: + return "RAW_MEDIA_TYPE_PNG"; + case RawMediaType.RAW_MEDIA_TYPE_SVG: + return "RAW_MEDIA_TYPE_SVG"; + case RawMediaType.RAW_MEDIA_TYPE_WEBP: + return "RAW_MEDIA_TYPE_WEBP"; + case RawMediaType.RAW_MEDIA_TYPE_AVIF: + return "RAW_MEDIA_TYPE_AVIF"; + case RawMediaType.RAW_MEDIA_TYPE_GIF: + return "RAW_MEDIA_TYPE_GIF"; + case RawMediaType.RAW_MEDIA_TYPE_APNG: + return "RAW_MEDIA_TYPE_APNG"; + case RawMediaType.RAW_MEDIA_TYPE_MPEG: + return "RAW_MEDIA_TYPE_MPEG"; + case RawMediaType.RAW_MEDIA_TYPE_MP4: + return "RAW_MEDIA_TYPE_MP4"; + case RawMediaType.RAW_MEDIA_TYPE_WEBM: + return "RAW_MEDIA_TYPE_WEBM"; + case RawMediaType.RAW_MEDIA_TYPE_OGG: + return "RAW_MEDIA_TYPE_OGG"; + case RawMediaType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ +export enum GraphCanonicalizationAlgorithm { + /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ + GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0, + /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ + GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1, + UNRECOGNIZED = -1, +} +export const GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; +export const GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; +export function graphCanonicalizationAlgorithmFromJSON(object: any): GraphCanonicalizationAlgorithm { + switch (object) { + case 0: + case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; + case 1: + case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": + return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; + case -1: + case "UNRECOGNIZED": + default: + return GraphCanonicalizationAlgorithm.UNRECOGNIZED; + } +} +export function graphCanonicalizationAlgorithmToJSON(object: GraphCanonicalizationAlgorithm): string { + switch (object) { + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: + return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; + case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: + return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; + case GraphCanonicalizationAlgorithm.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ +export enum GraphMerkleTree { + /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ + GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0, + UNRECOGNIZED = -1, +} +export const GraphMerkleTreeSDKType = GraphMerkleTree; +export const GraphMerkleTreeAmino = GraphMerkleTree; +export function graphMerkleTreeFromJSON(object: any): GraphMerkleTree { + switch (object) { + case 0: + case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": + return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; + case -1: + case "UNRECOGNIZED": + default: + return GraphMerkleTree.UNRECOGNIZED; + } +} +export function graphMerkleTreeToJSON(object: GraphMerkleTree): string { + switch (object) { + case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: + return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; + case GraphMerkleTree.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHash { + /** + * Raw specifies "raw" data which does not specify a deterministic, canonical + * encoding. Users of these hashes MUST maintain a copy of the hashed data + * which is preserved bit by bit. All other content encodings specify a + * deterministic, canonical encoding allowing implementations to choose from a + * variety of alternative formats for transport and encoding while maintaining + * the guarantee that the canonical hash will not change. The media type for + * "raw" data is defined by the MediaType enum. + */ + raw?: ContentHash_Raw; + /** + * Graph specifies graph data that conforms to the RDF data model. + * The canonicalization algorithm used for an RDF graph is specified by + * GraphCanonicalizationAlgorithm. + */ + graph?: ContentHash_Graph; +} +export interface ContentHashProtoMsg { + typeUrl: "/regen.data.v1.ContentHash"; + value: Uint8Array; +} +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHashAmino { + /** + * Raw specifies "raw" data which does not specify a deterministic, canonical + * encoding. Users of these hashes MUST maintain a copy of the hashed data + * which is preserved bit by bit. All other content encodings specify a + * deterministic, canonical encoding allowing implementations to choose from a + * variety of alternative formats for transport and encoding while maintaining + * the guarantee that the canonical hash will not change. The media type for + * "raw" data is defined by the MediaType enum. + */ + raw?: ContentHash_RawAmino; + /** + * Graph specifies graph data that conforms to the RDF data model. + * The canonicalization algorithm used for an RDF graph is specified by + * GraphCanonicalizationAlgorithm. + */ + graph?: ContentHash_GraphAmino; +} +export interface ContentHashAminoMsg { + type: "/regen.data.v1.ContentHash"; + value: ContentHashAmino; +} +/** ContentHash specifies a hash-based content identifier for a piece of data. */ +export interface ContentHashSDKType { + raw?: ContentHash_RawSDKType; + graph?: ContentHash_GraphSDKType; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_Raw { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash: Uint8Array; + /** digest_algorithm represents the hash digest algorithm. */ + digestAlgorithm: DigestAlgorithm; + /** media_type represents the media type for raw data. */ + mediaType: RawMediaType; +} +export interface ContentHash_RawProtoMsg { + typeUrl: "/regen.data.v1.Raw"; + value: Uint8Array; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_RawAmino { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash?: string; + /** digest_algorithm represents the hash digest algorithm. */ + digest_algorithm?: DigestAlgorithm; + /** media_type represents the media type for raw data. */ + media_type?: RawMediaType; +} +export interface ContentHash_RawAminoMsg { + type: "/regen.data.v1.Raw"; + value: ContentHash_RawAmino; +} +/** Raw is the content hash type used for raw data. */ +export interface ContentHash_RawSDKType { + hash: Uint8Array; + digest_algorithm: DigestAlgorithm; + media_type: RawMediaType; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_Graph { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash: Uint8Array; + /** digest_algorithm represents the hash digest algorithm. */ + digestAlgorithm: DigestAlgorithm; + /** + * graph_canonicalization_algorithm represents the RDF graph + * canonicalization algorithm. + */ + canonicalizationAlgorithm: GraphCanonicalizationAlgorithm; + /** merkle_tree is the merkle tree type used for the graph hash, if any. */ + merkleTree: GraphMerkleTree; +} +export interface ContentHash_GraphProtoMsg { + typeUrl: "/regen.data.v1.Graph"; + value: Uint8Array; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_GraphAmino { + /** + * hash represents the hash of the data based on the specified + * digest_algorithm. + */ + hash?: string; + /** digest_algorithm represents the hash digest algorithm. */ + digest_algorithm?: DigestAlgorithm; + /** + * graph_canonicalization_algorithm represents the RDF graph + * canonicalization algorithm. + */ + canonicalization_algorithm?: GraphCanonicalizationAlgorithm; + /** merkle_tree is the merkle tree type used for the graph hash, if any. */ + merkle_tree?: GraphMerkleTree; +} +export interface ContentHash_GraphAminoMsg { + type: "/regen.data.v1.Graph"; + value: ContentHash_GraphAmino; +} +/** Graph is the content hash type used for RDF graph data. */ +export interface ContentHash_GraphSDKType { + hash: Uint8Array; + digest_algorithm: DigestAlgorithm; + canonicalization_algorithm: GraphCanonicalizationAlgorithm; + merkle_tree: GraphMerkleTree; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashes { + /** data is a list of content hashes which the resolver claims to serve. */ + contentHashes: ContentHash[]; +} +export interface ContentHashesProtoMsg { + typeUrl: "/regen.data.v1.ContentHashes"; + value: Uint8Array; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashesAmino { + /** data is a list of content hashes which the resolver claims to serve. */ + content_hashes?: ContentHashAmino[]; +} +export interface ContentHashesAminoMsg { + type: "/regen.data.v1.ContentHashes"; + value: ContentHashesAmino; +} +/** ContentHashes contains list of content ContentHash. */ +export interface ContentHashesSDKType { + content_hashes: ContentHashSDKType[]; +} +function createBaseContentHash(): ContentHash { + return { + raw: undefined, + graph: undefined + }; +} +export const ContentHash = { + typeUrl: "/regen.data.v1.ContentHash", + encode(message: ContentHash, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.raw !== undefined) { + ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); + } + if (message.graph !== undefined) { + ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.raw = ContentHash_Raw.decode(reader, reader.uint32()); + break; + case 2: + message.graph = ContentHash_Graph.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ContentHash { + const message = createBaseContentHash(); + message.raw = object.raw !== undefined && object.raw !== null ? ContentHash_Raw.fromPartial(object.raw) : undefined; + message.graph = object.graph !== undefined && object.graph !== null ? ContentHash_Graph.fromPartial(object.graph) : undefined; + return message; + }, + fromAmino(object: ContentHashAmino): ContentHash { + const message = createBaseContentHash(); + if (object.raw !== undefined && object.raw !== null) { + message.raw = ContentHash_Raw.fromAmino(object.raw); + } + if (object.graph !== undefined && object.graph !== null) { + message.graph = ContentHash_Graph.fromAmino(object.graph); + } + return message; + }, + toAmino(message: ContentHash): ContentHashAmino { + const obj: any = {}; + obj.raw = message.raw ? ContentHash_Raw.toAmino(message.raw) : undefined; + obj.graph = message.graph ? ContentHash_Graph.toAmino(message.graph) : undefined; + return obj; + }, + fromAminoMsg(object: ContentHashAminoMsg): ContentHash { + return ContentHash.fromAmino(object.value); + }, + fromProtoMsg(message: ContentHashProtoMsg): ContentHash { + return ContentHash.decode(message.value); + }, + toProto(message: ContentHash): Uint8Array { + return ContentHash.encode(message).finish(); + }, + toProtoMsg(message: ContentHash): ContentHashProtoMsg { + return { + typeUrl: "/regen.data.v1.ContentHash", + value: ContentHash.encode(message).finish() + }; + } +}; +function createBaseContentHash_Raw(): ContentHash_Raw { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + mediaType: 0 + }; +} +export const ContentHash_Raw = { + typeUrl: "/regen.data.v1.Raw", + encode(message: ContentHash_Raw, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.mediaType !== 0) { + writer.uint32(24).int32(message.mediaType); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Raw(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = (reader.int32() as any); + break; + case 3: + message.mediaType = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ContentHash_Raw { + const message = createBaseContentHash_Raw(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.mediaType = object.mediaType ?? 0; + return message; + }, + fromAmino(object: ContentHash_RawAmino): ContentHash_Raw { + const message = createBaseContentHash_Raw(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.media_type !== undefined && object.media_type !== null) { + message.mediaType = object.media_type; + } + return message; + }, + toAmino(message: ContentHash_Raw): ContentHash_RawAmino { + const obj: any = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; + return obj; + }, + fromAminoMsg(object: ContentHash_RawAminoMsg): ContentHash_Raw { + return ContentHash_Raw.fromAmino(object.value); + }, + fromProtoMsg(message: ContentHash_RawProtoMsg): ContentHash_Raw { + return ContentHash_Raw.decode(message.value); + }, + toProto(message: ContentHash_Raw): Uint8Array { + return ContentHash_Raw.encode(message).finish(); + }, + toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg { + return { + typeUrl: "/regen.data.v1.Raw", + value: ContentHash_Raw.encode(message).finish() + }; + } +}; +function createBaseContentHash_Graph(): ContentHash_Graph { + return { + hash: new Uint8Array(), + digestAlgorithm: 0, + canonicalizationAlgorithm: 0, + merkleTree: 0 + }; +} +export const ContentHash_Graph = { + typeUrl: "/regen.data.v1.Graph", + encode(message: ContentHash_Graph, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.digestAlgorithm !== 0) { + writer.uint32(16).int32(message.digestAlgorithm); + } + if (message.canonicalizationAlgorithm !== 0) { + writer.uint32(24).int32(message.canonicalizationAlgorithm); + } + if (message.merkleTree !== 0) { + writer.uint32(32).int32(message.merkleTree); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHash_Graph(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.digestAlgorithm = (reader.int32() as any); + break; + case 3: + message.canonicalizationAlgorithm = (reader.int32() as any); + break; + case 4: + message.merkleTree = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ContentHash_Graph { + const message = createBaseContentHash_Graph(); + message.hash = object.hash ?? new Uint8Array(); + message.digestAlgorithm = object.digestAlgorithm ?? 0; + message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; + message.merkleTree = object.merkleTree ?? 0; + return message; + }, + fromAmino(object: ContentHash_GraphAmino): ContentHash_Graph { + const message = createBaseContentHash_Graph(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { + message.digestAlgorithm = object.digest_algorithm; + } + if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { + message.canonicalizationAlgorithm = object.canonicalization_algorithm; + } + if (object.merkle_tree !== undefined && object.merkle_tree !== null) { + message.merkleTree = object.merkle_tree; + } + return message; + }, + toAmino(message: ContentHash_Graph): ContentHash_GraphAmino { + const obj: any = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; + obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; + obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; + return obj; + }, + fromAminoMsg(object: ContentHash_GraphAminoMsg): ContentHash_Graph { + return ContentHash_Graph.fromAmino(object.value); + }, + fromProtoMsg(message: ContentHash_GraphProtoMsg): ContentHash_Graph { + return ContentHash_Graph.decode(message.value); + }, + toProto(message: ContentHash_Graph): Uint8Array { + return ContentHash_Graph.encode(message).finish(); + }, + toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg { + return { + typeUrl: "/regen.data.v1.Graph", + value: ContentHash_Graph.encode(message).finish() + }; + } +}; +function createBaseContentHashes(): ContentHashes { + return { + contentHashes: [] + }; +} +export const ContentHashes = { + typeUrl: "/regen.data.v1.ContentHashes", + encode(message: ContentHashes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.contentHashes) { + ContentHash.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseContentHashes(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ContentHashes { + const message = createBaseContentHashes(); + message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ContentHashesAmino): ContentHashes { + const message = createBaseContentHashes(); + message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; + return message; + }, + toAmino(message: ContentHashes): ContentHashesAmino { + const obj: any = {}; + if (message.contentHashes) { + obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); + } else { + obj.content_hashes = message.contentHashes; + } + return obj; + }, + fromAminoMsg(object: ContentHashesAminoMsg): ContentHashes { + return ContentHashes.fromAmino(object.value); + }, + fromProtoMsg(message: ContentHashesProtoMsg): ContentHashes { + return ContentHashes.decode(message.value); + }, + toProto(message: ContentHashes): Uint8Array { + return ContentHashes.encode(message).finish(); + }, + toProtoMsg(message: ContentHashes): ContentHashesProtoMsg { + return { + typeUrl: "/regen.data.v1.ContentHashes", + value: ContentHashes.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/events.ts b/packages/api/src/regen/ecocredit/basket/v1/events.ts new file mode 100644 index 00000000..75131544 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/events.ts @@ -0,0 +1,663 @@ +//@ts-nocheck +import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreate { + /** basket_denom is the basket bank denom. */ + basketDenom: string; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + curator: string; +} +export interface EventCreateProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate"; + value: Uint8Array; +} +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreateAmino { + /** basket_denom is the basket bank denom. */ + basket_denom?: string; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + curator?: string; +} +export interface EventCreateAminoMsg { + type: "/regen.ecocredit.basket.v1.EventCreate"; + value: EventCreateAmino; +} +/** EventCreate is an event emitted when a basket is created. */ +export interface EventCreateSDKType { + basket_denom: string; + /** @deprecated */ + curator: string; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPut { + /** owner is the owner of the credits put into the basket. */ + owner: string; + /** basket_denom is the basket bank denom that the credits were added to. */ + basketDenom: string; + /** + * credits are the credits that were added to the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits: BasketCredit[]; + /** + * amount is the integer number of basket tokens converted from credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount: string; +} +export interface EventPutProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventPut"; + value: Uint8Array; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPutAmino { + /** owner is the owner of the credits put into the basket. */ + owner?: string; + /** basket_denom is the basket bank denom that the credits were added to. */ + basket_denom?: string; + /** + * credits are the credits that were added to the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits?: BasketCreditAmino[]; + /** + * amount is the integer number of basket tokens converted from credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount?: string; +} +export interface EventPutAminoMsg { + type: "/regen.ecocredit.basket.v1.EventPut"; + value: EventPutAmino; +} +/** + * EventPut is an event emitted when credits are put into a basket in return for + * basket tokens. + */ +export interface EventPutSDKType { + owner: string; + basket_denom: string; + /** @deprecated */ + credits: BasketCreditSDKType[]; + /** @deprecated */ + amount: string; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTake { + /** owner is the owner of the credits taken from the basket. */ + owner: string; + /** basket_denom is the basket bank denom that credits were taken from. */ + basketDenom: string; + /** + * credits are the credits that were taken from the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits: BasketCredit[]; + /** + * amount is the integer number of basket tokens converted to credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount: string; +} +export interface EventTakeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventTake"; + value: Uint8Array; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTakeAmino { + /** owner is the owner of the credits taken from the basket. */ + owner?: string; + /** basket_denom is the basket bank denom that credits were taken from. */ + basket_denom?: string; + /** + * credits are the credits that were taken from the basket. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + credits?: BasketCreditAmino[]; + /** + * amount is the integer number of basket tokens converted to credits. + * + * Deprecated (Since Revision 1): This field is still populated and will be + * removed in the next version. + */ + /** @deprecated */ + amount?: string; +} +export interface EventTakeAminoMsg { + type: "/regen.ecocredit.basket.v1.EventTake"; + value: EventTakeAmino; +} +/** + * EventTake is an event emitted when credits are taken from a basket starting + * from the oldest credits first. + */ +export interface EventTakeSDKType { + owner: string; + basket_denom: string; + /** @deprecated */ + credits: BasketCreditSDKType[]; + /** @deprecated */ + amount: string; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCurator { + /** denom is the basket denom. */ + denom: string; +} +export interface EventUpdateCuratorProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator"; + value: Uint8Array; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCuratorAmino { + /** denom is the basket denom. */ + denom?: string; +} +export interface EventUpdateCuratorAminoMsg { + type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; + value: EventUpdateCuratorAmino; +} +/** + * EventUpdateCurator is an event emitted when the basket curator is updated. + * + * Since Revision 2 + */ +export interface EventUpdateCuratorSDKType { + denom: string; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteria { + /** denom is the basket denom. */ + denom: string; +} +export interface EventUpdateDateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; + value: Uint8Array; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteriaAmino { + /** denom is the basket denom. */ + denom?: string; +} +export interface EventUpdateDateCriteriaAminoMsg { + type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; + value: EventUpdateDateCriteriaAmino; +} +/** + * EventUpdateDateCriteria is an event emitted when the basket date criteria is + * updated. + * + * Since Revision 3 + */ +export interface EventUpdateDateCriteriaSDKType { + denom: string; +} +function createBaseEventCreate(): EventCreate { + return { + basketDenom: "", + curator: "" + }; +} +export const EventCreate = { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + encode(message: EventCreate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.curator !== "") { + writer.uint32(18).string(message.curator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreate { + const message = createBaseEventCreate(); + message.basketDenom = object.basketDenom ?? ""; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object: EventCreateAmino): EventCreate { + const message = createBaseEventCreate(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message: EventCreate): EventCreateAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object: EventCreateAminoMsg): EventCreate { + return EventCreate.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateProtoMsg): EventCreate { + return EventCreate.decode(message.value); + }, + toProto(message: EventCreate): Uint8Array { + return EventCreate.encode(message).finish(); + }, + toProtoMsg(message: EventCreate): EventCreateProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventCreate", + value: EventCreate.encode(message).finish() + }; + } +}; +function createBaseEventPut(): EventPut { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +export const EventPut = { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + encode(message: EventPut, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventPut { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventPut { + const message = createBaseEventPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: EventPutAmino): EventPut { + const message = createBaseEventPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: EventPut): EventPutAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: EventPutAminoMsg): EventPut { + return EventPut.fromAmino(object.value); + }, + fromProtoMsg(message: EventPutProtoMsg): EventPut { + return EventPut.decode(message.value); + }, + toProto(message: EventPut): Uint8Array { + return EventPut.encode(message).finish(); + }, + toProtoMsg(message: EventPut): EventPutProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventPut", + value: EventPut.encode(message).finish() + }; + } +}; +function createBaseEventTake(): EventTake { + return { + owner: "", + basketDenom: "", + credits: [], + amount: "" + }; +} +export const EventTake = { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + encode(message: EventTake, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventTake { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + case 4: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventTake { + const message = createBaseEventTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: EventTakeAmino): EventTake { + const message = createBaseEventTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: EventTake): EventTakeAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: EventTakeAminoMsg): EventTake { + return EventTake.fromAmino(object.value); + }, + fromProtoMsg(message: EventTakeProtoMsg): EventTake { + return EventTake.decode(message.value); + }, + toProto(message: EventTake): Uint8Array { + return EventTake.encode(message).finish(); + }, + toProtoMsg(message: EventTake): EventTakeProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventTake", + value: EventTake.encode(message).finish() + }; + } +}; +function createBaseEventUpdateCurator(): EventUpdateCurator { + return { + denom: "" + }; +} +export const EventUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + encode(message: EventUpdateCurator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateCurator { + const message = createBaseEventUpdateCurator(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: EventUpdateCuratorAmino): EventUpdateCurator { + const message = createBaseEventUpdateCurator(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: EventUpdateCurator): EventUpdateCuratorAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: EventUpdateCuratorAminoMsg): EventUpdateCurator { + return EventUpdateCurator.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateCuratorProtoMsg): EventUpdateCurator { + return EventUpdateCurator.decode(message.value); + }, + toProto(message: EventUpdateCurator): Uint8Array { + return EventUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", + value: EventUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseEventUpdateDateCriteria(): EventUpdateDateCriteria { + return { + denom: "" + }; +} +export const EventUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + encode(message: EventUpdateDateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateDateCriteria { + const message = createBaseEventUpdateDateCriteria(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: EventUpdateDateCriteriaAmino): EventUpdateDateCriteria { + const message = createBaseEventUpdateDateCriteria(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: EventUpdateDateCriteria): EventUpdateDateCriteriaAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: EventUpdateDateCriteriaAminoMsg): EventUpdateDateCriteria { + return EventUpdateDateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateDateCriteriaProtoMsg): EventUpdateDateCriteria { + return EventUpdateDateCriteria.decode(message.value); + }, + toProto(message: EventUpdateDateCriteria): Uint8Array { + return EventUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateDateCriteria): EventUpdateDateCriteriaProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", + value: EventUpdateDateCriteria.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/query.lcd.ts b/packages/api/src/regen/ecocredit/basket/v1/query.lcd.ts new file mode 100644 index 00000000..fd938511 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/query.lcd.ts @@ -0,0 +1,61 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + /* Basket queries one basket by denom. */ + async basket(params: QueryBasketRequest): Promise { + const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; + return await this.req.get(endpoint); + } + /* Baskets lists all baskets in the ecocredit module. */ + async baskets(params: QueryBasketsRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/baskets`; + return await this.req.get(endpoint, options); + } + /* BasketBalances lists the balance of each credit batch in the basket. */ + async basketBalances(params: QueryBasketBalancesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; + return await this.req.get(endpoint, options); + } + /* BasketBalance queries the balance of a specific credit batch in the basket. */ + async basketBalance(params: QueryBasketBalanceRequest): Promise { + const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* BasketFee returns the basket creation fee. If not set, a basket creation + fee is not required. + + Since Revision 2 */ + async basketFee(_params: QueryBasketFeeRequest = {}): Promise { + const endpoint = `regen/ecocredit/basket/v1/basket-fee`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/query.rpc.Query.ts b/packages/api/src/regen/ecocredit/basket/v1/query.rpc.Query.ts new file mode 100644 index 00000000..8608efea --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/query.rpc.Query.ts @@ -0,0 +1,82 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; +/** Msg is the regen.ecocredit.basket.v1 Query service. */ +export interface Query { + /** Basket queries one basket by denom. */ + basket(request: QueryBasketRequest): Promise; + /** Baskets lists all baskets in the ecocredit module. */ + baskets(request?: QueryBasketsRequest): Promise; + /** BasketBalances lists the balance of each credit batch in the basket. */ + basketBalances(request: QueryBasketBalancesRequest): Promise; + /** BasketBalance queries the balance of a specific credit batch in the basket. */ + basketBalance(request: QueryBasketBalanceRequest): Promise; + /** + * BasketFee returns the basket creation fee. If not set, a basket creation + * fee is not required. + * + * Since Revision 2 + */ + basketFee(request?: QueryBasketFeeRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.basket = this.basket.bind(this); + this.baskets = this.baskets.bind(this); + this.basketBalances = this.basketBalances.bind(this); + this.basketBalance = this.basketBalance.bind(this); + this.basketFee = this.basketFee.bind(this); + } + basket(request: QueryBasketRequest): Promise { + const data = QueryBasketRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); + return promise.then(data => QueryBasketResponse.decode(new BinaryReader(data))); + } + baskets(request: QueryBasketsRequest = { + pagination: undefined + }): Promise { + const data = QueryBasketsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); + return promise.then(data => QueryBasketsResponse.decode(new BinaryReader(data))); + } + basketBalances(request: QueryBasketBalancesRequest): Promise { + const data = QueryBasketBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); + return promise.then(data => QueryBasketBalancesResponse.decode(new BinaryReader(data))); + } + basketBalance(request: QueryBasketBalanceRequest): Promise { + const data = QueryBasketBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); + return promise.then(data => QueryBasketBalanceResponse.decode(new BinaryReader(data))); + } + basketFee(request: QueryBasketFeeRequest = {}): Promise { + const data = QueryBasketFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); + return promise.then(data => QueryBasketFeeResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + basket(request: QueryBasketRequest): Promise { + return queryService.basket(request); + }, + baskets(request?: QueryBasketsRequest): Promise { + return queryService.baskets(request); + }, + basketBalances(request: QueryBasketBalancesRequest): Promise { + return queryService.basketBalances(request); + }, + basketBalance(request: QueryBasketBalanceRequest): Promise { + return queryService.basketBalance(request); + }, + basketFee(request?: QueryBasketFeeRequest): Promise { + return queryService.basketFee(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/query.ts b/packages/api/src/regen/ecocredit/basket/v1/query.ts new file mode 100644 index 00000000..4eb31426 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/query.ts @@ -0,0 +1,1395 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequest { + /** basket_denom represents the denom of the basket to query. */ + basketDenom: string; +} +export interface QueryBasketRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest"; + value: Uint8Array; +} +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequestAmino { + /** basket_denom represents the denom of the basket to query. */ + basket_denom?: string; +} +export interface QueryBasketRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; + value: QueryBasketRequestAmino; +} +/** QueryBasketRequest is the Query/Basket request type. */ +export interface QueryBasketRequestSDKType { + basket_denom: string; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponse { + /** + * basket is the queried basket. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * basket_info is available using BasketInfo. + */ + /** @deprecated */ + basket?: Basket; + /** classes are the credit classes that can be deposited in the basket. */ + classes: string[]; + /** + * basket_info is the queried basket. + * + * Since Revision 1 + */ + basketInfo?: BasketInfo; +} +export interface QueryBasketResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; + value: Uint8Array; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponseAmino { + /** + * basket is the queried basket. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * basket_info is available using BasketInfo. + */ + /** @deprecated */ + basket?: BasketAmino; + /** classes are the credit classes that can be deposited in the basket. */ + classes?: string[]; + /** + * basket_info is the queried basket. + * + * Since Revision 1 + */ + basket_info?: BasketInfoAmino; +} +export interface QueryBasketResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketResponse"; + value: QueryBasketResponseAmino; +} +/** QueryBasketResponse is the Query/Basket response type. */ +export interface QueryBasketResponseSDKType { + /** @deprecated */ + basket?: BasketSDKType; + classes: string[]; + basket_info?: BasketInfoSDKType; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBasketsRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; + value: Uint8Array; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBasketsRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; + value: QueryBasketsRequestAmino; +} +/** QueryBasketsRequest is the Query/Baskets request type. */ +export interface QueryBasketsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponse { + /** + * baskets are the fetched baskets. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * baskets_info is available using BasketInfo. + */ + /** @deprecated */ + baskets: Basket[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; + /** + * baskets_info are the fetched baskets. + * + * Since Revision 1 + */ + basketsInfo: BasketInfo[]; +} +export interface QueryBasketsResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; + value: Uint8Array; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponseAmino { + /** + * baskets are the fetched baskets. + * + * Deprecated (Since Revision 1): This field is still populated using Basket + * but will be updated to use BasketInfo in the next version. In the meantime + * baskets_info is available using BasketInfo. + */ + /** @deprecated */ + baskets?: BasketAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; + /** + * baskets_info are the fetched baskets. + * + * Since Revision 1 + */ + baskets_info?: BasketInfoAmino[]; +} +export interface QueryBasketsResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; + value: QueryBasketsResponseAmino; +} +/** QueryBasketsResponse is the Query/Baskets response type. */ +export interface QueryBasketsResponseSDKType { + /** @deprecated */ + baskets: BasketSDKType[]; + pagination?: PageResponseSDKType; + baskets_info: BasketInfoSDKType[]; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequest { + /** basket_denom is the denom of the basket. */ + basketDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBasketBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; + value: Uint8Array; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequestAmino { + /** basket_denom is the denom of the basket. */ + basket_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBasketBalancesRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; + value: QueryBasketBalancesRequestAmino; +} +/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ +export interface QueryBasketBalancesRequestSDKType { + basket_denom: string; + pagination?: PageRequestSDKType; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponse { + /** + * balances is a list of credit balances in the basket. + * + * Deprecated (Since Revision 1): This field is still populated using + * BasketBalance but will be updated to use BasketBalanceInfo in the next + * version. In the meantime baskets_info is available using BasketBalanceInfo. + */ + /** @deprecated */ + balances: BasketBalance[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; + /** + * balances_info is a list of credit balances in the basket. + * + * Since Revision 1 + */ + balancesInfo: BasketBalanceInfo[]; +} +export interface QueryBasketBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; + value: Uint8Array; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponseAmino { + /** + * balances is a list of credit balances in the basket. + * + * Deprecated (Since Revision 1): This field is still populated using + * BasketBalance but will be updated to use BasketBalanceInfo in the next + * version. In the meantime baskets_info is available using BasketBalanceInfo. + */ + /** @deprecated */ + balances?: BasketBalanceAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; + /** + * balances_info is a list of credit balances in the basket. + * + * Since Revision 1 + */ + balances_info?: BasketBalanceInfoAmino[]; +} +export interface QueryBasketBalancesResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; + value: QueryBasketBalancesResponseAmino; +} +/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ +export interface QueryBasketBalancesResponseSDKType { + /** @deprecated */ + balances: BasketBalanceSDKType[]; + pagination?: PageResponseSDKType; + balances_info: BasketBalanceInfoSDKType[]; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequest { + /** basket_denom is the denom of the basket. */ + basketDenom: string; + /** batch_denom is the denom of the credit batch. */ + batchDenom: string; +} +export interface QueryBasketBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; + value: Uint8Array; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequestAmino { + /** basket_denom is the denom of the basket. */ + basket_denom?: string; + /** batch_denom is the denom of the credit batch. */ + batch_denom?: string; +} +export interface QueryBasketBalanceRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; + value: QueryBasketBalanceRequestAmino; +} +/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ +export interface QueryBasketBalanceRequestSDKType { + basket_denom: string; + batch_denom: string; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponse { + /** balance is the amount of the queried credit batch in the basket. */ + balance: string; +} +export interface QueryBasketBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; + value: Uint8Array; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponseAmino { + /** balance is the amount of the queried credit batch in the basket. */ + balance?: string; +} +export interface QueryBasketBalanceResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; + value: QueryBasketBalanceResponseAmino; +} +/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ +export interface QueryBasketBalanceResponseSDKType { + balance: string; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfo { + /** basket_denom is the basket bank denom. */ + basketDenom: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + dateCriteria?: DateCriteria; + /** exponent is the exponent for converting credits to/from basket tokens. */ + exponent: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator: string; +} +export interface BasketInfoProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo"; + value: Uint8Array; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfoAmino { + /** basket_denom is the basket bank denom. */ + basket_denom?: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name?: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + date_criteria?: DateCriteriaAmino; + /** exponent is the exponent for converting credits to/from basket tokens. */ + exponent?: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator?: string; +} +export interface BasketInfoAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketInfo"; + value: BasketInfoAmino; +} +/** BasketInfo is the human-readable basket information. */ +export interface BasketInfoSDKType { + basket_denom: string; + name: string; + disable_auto_retire: boolean; + credit_type_abbrev: string; + date_criteria?: DateCriteriaSDKType; + exponent: number; + curator: string; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfo { + /** batch_denom is the denom of the credit batch */ + batchDenom: string; + /** balance is the amount of ecocredits held in the basket */ + balance: string; +} +export interface BasketBalanceInfoProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; + value: Uint8Array; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfoAmino { + /** batch_denom is the denom of the credit batch */ + batch_denom?: string; + /** balance is the amount of ecocredits held in the basket */ + balance?: string; +} +export interface BasketBalanceInfoAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; + value: BasketBalanceInfoAmino; +} +/** BasketBalanceInfo is the human-readable basket balance information. */ +export interface BasketBalanceInfoSDKType { + batch_denom: string; + balance: string; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequest {} +export interface QueryBasketFeeRequestProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; + value: Uint8Array; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequestAmino {} +export interface QueryBasketFeeRequestAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; + value: QueryBasketFeeRequestAmino; +} +/** + * QueryBasketFeeRequest is the Query/BasketFee request type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeRequestSDKType {} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponse { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: Coin; +} +export interface QueryBasketFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; + value: Uint8Array; +} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponseAmino { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: CoinAmino; +} +export interface QueryBasketFeeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; + value: QueryBasketFeeResponseAmino; +} +/** + * QueryBasketFeeResponse is the Query/BasketFee response type. + * + * Since Revision 2 + */ +export interface QueryBasketFeeResponseSDKType { + fee?: CoinSDKType; +} +function createBaseQueryBasketRequest(): QueryBasketRequest { + return { + basketDenom: "" + }; +} +export const QueryBasketRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + encode(message: QueryBasketRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketRequest { + const message = createBaseQueryBasketRequest(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object: QueryBasketRequestAmino): QueryBasketRequest { + const message = createBaseQueryBasketRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message: QueryBasketRequest): QueryBasketRequestAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object: QueryBasketRequestAminoMsg): QueryBasketRequest { + return QueryBasketRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketRequestProtoMsg): QueryBasketRequest { + return QueryBasketRequest.decode(message.value); + }, + toProto(message: QueryBasketRequest): Uint8Array { + return QueryBasketRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", + value: QueryBasketRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketResponse(): QueryBasketResponse { + return { + basket: undefined, + classes: [], + basketInfo: undefined + }; +} +export const QueryBasketResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + encode(message: QueryBasketResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basket !== undefined) { + Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classes) { + writer.uint32(18).string(v!); + } + if (message.basketInfo !== undefined) { + BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basket = Basket.decode(reader, reader.uint32()); + break; + case 2: + message.classes.push(reader.string()); + break; + case 3: + message.basketInfo = BasketInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketResponse { + const message = createBaseQueryBasketResponse(); + message.basket = object.basket !== undefined && object.basket !== null ? Basket.fromPartial(object.basket) : undefined; + message.classes = object.classes?.map(e => e) || []; + message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? BasketInfo.fromPartial(object.basketInfo) : undefined; + return message; + }, + fromAmino(object: QueryBasketResponseAmino): QueryBasketResponse { + const message = createBaseQueryBasketResponse(); + if (object.basket !== undefined && object.basket !== null) { + message.basket = Basket.fromAmino(object.basket); + } + message.classes = object.classes?.map(e => e) || []; + if (object.basket_info !== undefined && object.basket_info !== null) { + message.basketInfo = BasketInfo.fromAmino(object.basket_info); + } + return message; + }, + toAmino(message: QueryBasketResponse): QueryBasketResponseAmino { + const obj: any = {}; + obj.basket = message.basket ? Basket.toAmino(message.basket) : undefined; + if (message.classes) { + obj.classes = message.classes.map(e => e); + } else { + obj.classes = message.classes; + } + obj.basket_info = message.basketInfo ? BasketInfo.toAmino(message.basketInfo) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBasketResponseAminoMsg): QueryBasketResponse { + return QueryBasketResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketResponseProtoMsg): QueryBasketResponse { + return QueryBasketResponse.decode(message.value); + }, + toProto(message: QueryBasketResponse): Uint8Array { + return QueryBasketResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", + value: QueryBasketResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsRequest(): QueryBasketsRequest { + return { + pagination: undefined + }; +} +export const QueryBasketsRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + encode(message: QueryBasketsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketsRequest { + const message = createBaseQueryBasketsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBasketsRequestAmino): QueryBasketsRequest { + const message = createBaseQueryBasketsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBasketsRequest): QueryBasketsRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBasketsRequestAminoMsg): QueryBasketsRequest { + return QueryBasketsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketsRequestProtoMsg): QueryBasketsRequest { + return QueryBasketsRequest.decode(message.value); + }, + toProto(message: QueryBasketsRequest): Uint8Array { + return QueryBasketsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", + value: QueryBasketsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketsResponse(): QueryBasketsResponse { + return { + baskets: [], + pagination: undefined, + basketsInfo: [] + }; +} +export const QueryBasketsResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + encode(message: QueryBasketsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.baskets) { + Basket.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.basketsInfo) { + BasketInfo.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.baskets.push(Basket.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.basketsInfo.push(BasketInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketsResponse { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => Basket.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.basketsInfo = object.basketsInfo?.map(e => BasketInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryBasketsResponseAmino): QueryBasketsResponse { + const message = createBaseQueryBasketsResponse(); + message.baskets = object.baskets?.map(e => Basket.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + message.basketsInfo = object.baskets_info?.map(e => BasketInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryBasketsResponse): QueryBasketsResponseAmino { + const obj: any = {}; + if (message.baskets) { + obj.baskets = message.baskets.map(e => e ? Basket.toAmino(e) : undefined); + } else { + obj.baskets = message.baskets; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + if (message.basketsInfo) { + obj.baskets_info = message.basketsInfo.map(e => e ? BasketInfo.toAmino(e) : undefined); + } else { + obj.baskets_info = message.basketsInfo; + } + return obj; + }, + fromAminoMsg(object: QueryBasketsResponseAminoMsg): QueryBasketsResponse { + return QueryBasketsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketsResponseProtoMsg): QueryBasketsResponse { + return QueryBasketsResponse.decode(message.value); + }, + toProto(message: QueryBasketsResponse): Uint8Array { + return QueryBasketsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", + value: QueryBasketsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesRequest(): QueryBasketBalancesRequest { + return { + basketDenom: "", + pagination: undefined + }; +} +export const QueryBasketBalancesRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + encode(message: QueryBasketBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketBalancesRequest { + const message = createBaseQueryBasketBalancesRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBasketBalancesRequestAmino): QueryBasketBalancesRequest { + const message = createBaseQueryBasketBalancesRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBasketBalancesRequestAminoMsg): QueryBasketBalancesRequest { + return QueryBasketBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketBalancesRequestProtoMsg): QueryBasketBalancesRequest { + return QueryBasketBalancesRequest.decode(message.value); + }, + toProto(message: QueryBasketBalancesRequest): Uint8Array { + return QueryBasketBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", + value: QueryBasketBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalancesResponse(): QueryBasketBalancesResponse { + return { + balances: [], + pagination: undefined, + balancesInfo: [] + }; +} +export const QueryBasketBalancesResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + encode(message: QueryBasketBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + BasketBalance.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.balancesInfo) { + BasketBalanceInfo.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BasketBalance.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.balancesInfo.push(BasketBalanceInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketBalancesResponse { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => BasketBalance.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + message.balancesInfo = object.balancesInfo?.map(e => BasketBalanceInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryBasketBalancesResponseAmino): QueryBasketBalancesResponse { + const message = createBaseQueryBasketBalancesResponse(); + message.balances = object.balances?.map(e => BasketBalance.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + message.balancesInfo = object.balances_info?.map(e => BasketBalanceInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BasketBalance.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + if (message.balancesInfo) { + obj.balances_info = message.balancesInfo.map(e => e ? BasketBalanceInfo.toAmino(e) : undefined); + } else { + obj.balances_info = message.balancesInfo; + } + return obj; + }, + fromAminoMsg(object: QueryBasketBalancesResponseAminoMsg): QueryBasketBalancesResponse { + return QueryBasketBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketBalancesResponseProtoMsg): QueryBasketBalancesResponse { + return QueryBasketBalancesResponse.decode(message.value); + }, + toProto(message: QueryBasketBalancesResponse): Uint8Array { + return QueryBasketBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", + value: QueryBasketBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceRequest(): QueryBasketBalanceRequest { + return { + basketDenom: "", + batchDenom: "" + }; +} +export const QueryBasketBalanceRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + encode(message: QueryBasketBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketBalanceRequest { + const message = createBaseQueryBasketBalanceRequest(); + message.basketDenom = object.basketDenom ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QueryBasketBalanceRequestAmino): QueryBasketBalanceRequest { + const message = createBaseQueryBasketBalanceRequest(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QueryBasketBalanceRequestAminoMsg): QueryBasketBalanceRequest { + return QueryBasketBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketBalanceRequestProtoMsg): QueryBasketBalanceRequest { + return QueryBasketBalanceRequest.decode(message.value); + }, + toProto(message: QueryBasketBalanceRequest): Uint8Array { + return QueryBasketBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", + value: QueryBasketBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketBalanceResponse(): QueryBasketBalanceResponse { + return { + balance: "" + }; +} +export const QueryBasketBalanceResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + encode(message: QueryBasketBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.balance !== "") { + writer.uint32(10).string(message.balance); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketBalanceResponse { + const message = createBaseQueryBasketBalanceResponse(); + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object: QueryBasketBalanceResponseAmino): QueryBasketBalanceResponse { + const message = createBaseQueryBasketBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseAmino { + const obj: any = {}; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object: QueryBasketBalanceResponseAminoMsg): QueryBasketBalanceResponse { + return QueryBasketBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketBalanceResponseProtoMsg): QueryBasketBalanceResponse { + return QueryBasketBalanceResponse.decode(message.value); + }, + toProto(message: QueryBasketBalanceResponse): Uint8Array { + return QueryBasketBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", + value: QueryBasketBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseBasketInfo(): BasketInfo { + return { + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: "" + }; +} +export const BasketInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + encode(message: BasketInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(24).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(48).uint32(message.exponent); + } + if (message.curator !== "") { + writer.uint32(58).string(message.curator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.disableAutoRetire = reader.bool(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 6: + message.exponent = reader.uint32(); + break; + case 7: + message.curator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketInfo { + const message = createBaseBasketInfo(); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? ""; + return message; + }, + fromAmino(object: BasketInfoAmino): BasketInfo { + const message = createBaseBasketInfo(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + return message; + }, + toAmino(message: BasketInfo): BasketInfoAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator === "" ? undefined : message.curator; + return obj; + }, + fromAminoMsg(object: BasketInfoAminoMsg): BasketInfo { + return BasketInfo.fromAmino(object.value); + }, + fromProtoMsg(message: BasketInfoProtoMsg): BasketInfo { + return BasketInfo.decode(message.value); + }, + toProto(message: BasketInfo): Uint8Array { + return BasketInfo.encode(message).finish(); + }, + toProtoMsg(message: BasketInfo): BasketInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", + value: BasketInfo.encode(message).finish() + }; + } +}; +function createBaseBasketBalanceInfo(): BasketBalanceInfo { + return { + batchDenom: "", + balance: "" + }; +} +export const BasketBalanceInfo = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + encode(message: BasketBalanceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(18).string(message.balance); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.balance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketBalanceInfo { + const message = createBaseBasketBalanceInfo(); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + return message; + }, + fromAmino(object: BasketBalanceInfoAmino): BasketBalanceInfo { + const message = createBaseBasketBalanceInfo(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + return message; + }, + toAmino(message: BasketBalanceInfo): BasketBalanceInfoAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + return obj; + }, + fromAminoMsg(object: BasketBalanceInfoAminoMsg): BasketBalanceInfo { + return BasketBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message: BasketBalanceInfoProtoMsg): BasketBalanceInfo { + return BasketBalanceInfo.decode(message.value); + }, + toProto(message: BasketBalanceInfo): Uint8Array { + return BasketBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", + value: BasketBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeRequest(): QueryBasketFeeRequest { + return {}; +} +export const QueryBasketFeeRequest = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + encode(_: QueryBasketFeeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryBasketFeeRequest { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + fromAmino(_: QueryBasketFeeRequestAmino): QueryBasketFeeRequest { + const message = createBaseQueryBasketFeeRequest(); + return message; + }, + toAmino(_: QueryBasketFeeRequest): QueryBasketFeeRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryBasketFeeRequestAminoMsg): QueryBasketFeeRequest { + return QueryBasketFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketFeeRequestProtoMsg): QueryBasketFeeRequest { + return QueryBasketFeeRequest.decode(message.value); + }, + toProto(message: QueryBasketFeeRequest): Uint8Array { + return QueryBasketFeeRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", + value: QueryBasketFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBasketFeeResponse(): QueryBasketFeeResponse { + return { + fee: undefined + }; +} +export const QueryBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + encode(message: QueryBasketFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBasketFeeResponse { + const message = createBaseQueryBasketFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: QueryBasketFeeResponseAmino): QueryBasketFeeResponse { + const message = createBaseQueryBasketFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: QueryBasketFeeResponse): QueryBasketFeeResponseAmino { + const obj: any = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBasketFeeResponseAminoMsg): QueryBasketFeeResponse { + return QueryBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBasketFeeResponseProtoMsg): QueryBasketFeeResponse { + return QueryBasketFeeResponse.decode(message.value); + }, + toProto(message: QueryBasketFeeResponse): Uint8Array { + return QueryBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBasketFeeResponse): QueryBasketFeeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", + value: QueryBasketFeeResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/state.ts b/packages/api/src/regen/ecocredit/basket/v1/state.ts new file mode 100644 index 00000000..02b40d6c --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/state.ts @@ -0,0 +1,647 @@ +//@ts-nocheck +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../../helpers"; +/** Basket represents a basket in state. */ +export interface Basket { + /** + * id is the uint64 ID of the basket. It is used internally for reducing + * storage space. + */ + id: bigint; + /** + * basket_denom is the basket bank denom formed from name and credit type with + * the format `eco..` where prefix is the + * prefix of the bank denom exponent, a standard SI unit derived from credit + * type precision, and mapped as follows: + * 0 - no prefix + * 1 - d (deci) + * 2 - c (centi) + * 3 - m (milli) + * 6 - u (micro) + * 9 - n (nano) + * 12 - p (pico) + * 15 - f (femto) + * 18 - a (atto) + * 21 - z (zepto) + * 24 - y (yocto) + */ + basketDenom: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + dateCriteria?: DateCriteria; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when converting credits to/from basket tokens. This + * field will be set to the value of credit type precision until removed. + */ + /** @deprecated */ + exponent: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Since Revision 1 + */ + curator: Uint8Array; +} +export interface BasketProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.Basket"; + value: Uint8Array; +} +/** Basket represents a basket in state. */ +export interface BasketAmino { + /** + * id is the uint64 ID of the basket. It is used internally for reducing + * storage space. + */ + id?: string; + /** + * basket_denom is the basket bank denom formed from name and credit type with + * the format `eco..` where prefix is the + * prefix of the bank denom exponent, a standard SI unit derived from credit + * type precision, and mapped as follows: + * 0 - no prefix + * 1 - d (deci) + * 2 - c (centi) + * 3 - m (milli) + * 6 - u (micro) + * 9 - n (nano) + * 12 - p (pico) + * 15 - f (femto) + * 18 - a (atto) + * 21 - z (zepto) + * 24 - y (yocto) + */ + basket_denom?: string; + /** + * name is the unique name of the basket specified in MsgCreate. Basket + * names must be unique across all credit types and choices of exponent + * above and beyond the uniqueness constraint on basket_denom. + */ + name?: string; + /** + * disable_auto_retire indicates whether or not the credits will be retired + * upon withdraw from the basket. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** date_criteria is the date criteria for batches admitted to the basket. */ + date_criteria?: DateCriteriaAmino; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when converting credits to/from basket tokens. This + * field will be set to the value of credit type precision until removed. + */ + /** @deprecated */ + exponent?: number; + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + * + * Since Revision 1 + */ + curator?: string; +} +export interface BasketAminoMsg { + type: "/regen.ecocredit.basket.v1.Basket"; + value: BasketAmino; +} +/** Basket represents a basket in state. */ +export interface BasketSDKType { + id: bigint; + basket_denom: string; + name: string; + disable_auto_retire: boolean; + credit_type_abbrev: string; + date_criteria?: DateCriteriaSDKType; + /** @deprecated */ + exponent: number; + curator: Uint8Array; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClass { + /** basket_id is the ID of the basket */ + basketId: bigint; + /** + * class_id is the id of the credit class that is allowed to be deposited in + * the basket + */ + classId: string; +} +export interface BasketClassProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass"; + value: Uint8Array; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClassAmino { + /** basket_id is the ID of the basket */ + basket_id?: string; + /** + * class_id is the id of the credit class that is allowed to be deposited in + * the basket + */ + class_id?: string; +} +export interface BasketClassAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketClass"; + value: BasketClassAmino; +} +/** BasketClass describes a credit class that can be deposited in a basket. */ +export interface BasketClassSDKType { + basket_id: bigint; + class_id: string; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalance { + /** basket_id is the ID of the basket */ + basketId: bigint; + /** batch_denom is the denom of the credit batch */ + batchDenom: string; + /** balance is the amount of ecocredits held in the basket */ + balance: string; + /** + * batch_start_date is the start date of the batch. This field is used + * to create an index which is used to remove the oldest credits first. + */ + batchStartDate?: Date; +} +export interface BasketBalanceProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; + value: Uint8Array; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalanceAmino { + /** basket_id is the ID of the basket */ + basket_id?: string; + /** batch_denom is the denom of the credit batch */ + batch_denom?: string; + /** balance is the amount of ecocredits held in the basket */ + balance?: string; + /** + * batch_start_date is the start date of the batch. This field is used + * to create an index which is used to remove the oldest credits first. + */ + batch_start_date?: string; +} +export interface BasketBalanceAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketBalance"; + value: BasketBalanceAmino; +} +/** BasketBalance stores the amount of credits from a batch in a basket */ +export interface BasketBalanceSDKType { + basket_id: bigint; + batch_denom: string; + balance: string; + batch_start_date?: Date; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFee { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: Coin; +} +export interface BasketFeeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; + value: Uint8Array; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFeeAmino { + /** + * fee is the basket creation fee. If not set, a basket creation fee is not + * required. + */ + fee?: CoinAmino; +} +export interface BasketFeeAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketFee"; + value: BasketFeeAmino; +} +/** + * BasketFee is the basket creation fee. If not set, a basket creation fee is + * not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface BasketFeeSDKType { + fee?: CoinSDKType; +} +function createBaseBasket(): Basket { + return { + id: BigInt(0), + basketDenom: "", + name: "", + disableAutoRetire: false, + creditTypeAbbrev: "", + dateCriteria: undefined, + exponent: 0, + curator: new Uint8Array() + }; +} +export const Basket = { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + encode(message: Basket, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.name !== "") { + writer.uint32(26).string(message.name); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); + } + if (message.exponent !== 0) { + writer.uint32(56).uint32(message.exponent); + } + if (message.curator.length !== 0) { + writer.uint32(66).bytes(message.curator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Basket { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + case 6: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 7: + message.exponent = reader.uint32(); + break; + case 8: + message.curator = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Basket { + const message = createBaseBasket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.basketDenom = object.basketDenom ?? ""; + message.name = object.name ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.exponent = object.exponent ?? 0; + message.curator = object.curator ?? new Uint8Array(); + return message; + }, + fromAmino(object: BasketAmino): Basket { + const message = createBaseBasket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.curator !== undefined && object.curator !== null) { + message.curator = bytesFromBase64(object.curator); + } + return message; + }, + toAmino(message: Basket): BasketAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.name = message.name === "" ? undefined : message.name; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.curator = message.curator ? base64FromBytes(message.curator) : undefined; + return obj; + }, + fromAminoMsg(object: BasketAminoMsg): Basket { + return Basket.fromAmino(object.value); + }, + fromProtoMsg(message: BasketProtoMsg): Basket { + return Basket.decode(message.value); + }, + toProto(message: Basket): Uint8Array { + return Basket.encode(message).finish(); + }, + toProtoMsg(message: Basket): BasketProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.Basket", + value: Basket.encode(message).finish() + }; + } +}; +function createBaseBasketClass(): BasketClass { + return { + basketId: BigInt(0), + classId: "" + }; +} +export const BasketClass = { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + encode(message: BasketClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketClass { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketClass { + const message = createBaseBasketClass(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: BasketClassAmino): BasketClass { + const message = createBaseBasketClass(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: BasketClass): BasketClassAmino { + const obj: any = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: BasketClassAminoMsg): BasketClass { + return BasketClass.fromAmino(object.value); + }, + fromProtoMsg(message: BasketClassProtoMsg): BasketClass { + return BasketClass.decode(message.value); + }, + toProto(message: BasketClass): Uint8Array { + return BasketClass.encode(message).finish(); + }, + toProtoMsg(message: BasketClass): BasketClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketClass", + value: BasketClass.encode(message).finish() + }; + } +}; +function createBaseBasketBalance(): BasketBalance { + return { + basketId: BigInt(0), + batchDenom: "", + balance: "", + batchStartDate: undefined + }; +} +export const BasketBalance = { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + encode(message: BasketBalance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketId !== BigInt(0)) { + writer.uint32(8).uint64(message.basketId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.balance !== "") { + writer.uint32(26).string(message.balance); + } + if (message.batchStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.batchStartDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketId = reader.uint64(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.balance = reader.string(); + break; + case 4: + message.batchStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketBalance { + const message = createBaseBasketBalance(); + message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); + message.batchDenom = object.batchDenom ?? ""; + message.balance = object.balance ?? ""; + message.batchStartDate = object.batchStartDate ?? undefined; + return message; + }, + fromAmino(object: BasketBalanceAmino): BasketBalance { + const message = createBaseBasketBalance(); + if (object.basket_id !== undefined && object.basket_id !== null) { + message.basketId = BigInt(object.basket_id); + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.balance !== undefined && object.balance !== null) { + message.balance = object.balance; + } + if (object.batch_start_date !== undefined && object.batch_start_date !== null) { + message.batchStartDate = fromTimestamp(Timestamp.fromAmino(object.batch_start_date)); + } + return message; + }, + toAmino(message: BasketBalance): BasketBalanceAmino { + const obj: any = {}; + obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.balance = message.balance === "" ? undefined : message.balance; + obj.batch_start_date = message.batchStartDate ? Timestamp.toAmino(toTimestamp(message.batchStartDate)) : undefined; + return obj; + }, + fromAminoMsg(object: BasketBalanceAminoMsg): BasketBalance { + return BasketBalance.fromAmino(object.value); + }, + fromProtoMsg(message: BasketBalanceProtoMsg): BasketBalance { + return BasketBalance.decode(message.value); + }, + toProto(message: BasketBalance): Uint8Array { + return BasketBalance.encode(message).finish(); + }, + toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", + value: BasketBalance.encode(message).finish() + }; + } +}; +function createBaseBasketFee(): BasketFee { + return { + fee: undefined + }; +} +export const BasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + encode(message: BasketFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketFee { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketFee { + const message = createBaseBasketFee(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: BasketFeeAmino): BasketFee { + const message = createBaseBasketFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: BasketFee): BasketFeeAmino { + const obj: any = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: BasketFeeAminoMsg): BasketFee { + return BasketFee.fromAmino(object.value); + }, + fromProtoMsg(message: BasketFeeProtoMsg): BasketFee { + return BasketFee.decode(message.value); + }, + toProto(message: BasketFee): Uint8Array { + return BasketFee.encode(message).finish(); + }, + toProtoMsg(message: BasketFee): BasketFeeProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketFee", + value: BasketFee.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/tx.amino.ts b/packages/api/src/regen/ecocredit/basket/v1/tx.amino.ts new file mode 100644 index 00000000..04554ce7 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/tx.amino.ts @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.basket.v1.MsgCreate": { + aminoType: "regen.basket/MsgCreate", + toAmino: MsgCreate.toAmino, + fromAmino: MsgCreate.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgPut": { + aminoType: "regen.basket/MsgPut", + toAmino: MsgPut.toAmino, + fromAmino: MsgPut.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgTake": { + aminoType: "regen.basket/MsgTake", + toAmino: MsgTake.toAmino, + fromAmino: MsgTake.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { + aminoType: "regen.basket/MsgUpdateBasketFee", + toAmino: MsgUpdateBasketFee.toAmino, + fromAmino: MsgUpdateBasketFee.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateCurator": { + aminoType: "regen.basket/MsgUpdateCurator", + toAmino: MsgUpdateCurator.toAmino, + fromAmino: MsgUpdateCurator.fromAmino + }, + "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { + aminoType: "regen.basket/MsgUpdateDateCriteria", + toAmino: MsgUpdateDateCriteria.toAmino, + fromAmino: MsgUpdateDateCriteria.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/tx.registry.ts b/packages/api/src/regen/ecocredit/basket/v1/tx.registry.ts new file mode 100644 index 00000000..de1a77d6 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/tx.registry.ts @@ -0,0 +1,125 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.basket.v1.MsgCreate", MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", MsgUpdateDateCriteria]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + create(value: MsgCreate) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.encode(value).finish() + }; + }, + put(value: MsgPut) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.encode(value).finish() + }; + }, + take(value: MsgTake) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.encode(value).finish() + }; + }, + updateBasketFee(value: MsgUpdateBasketFee) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.encode(value).finish() + }; + }, + updateCurator(value: MsgUpdateCurator) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.encode(value).finish() + }; + }, + updateDateCriteria(value: MsgUpdateDateCriteria) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.encode(value).finish() + }; + } + }, + withTypeUrl: { + create(value: MsgCreate) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value + }; + }, + put(value: MsgPut) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value + }; + }, + take(value: MsgTake) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value + }; + }, + updateBasketFee(value: MsgUpdateBasketFee) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value + }; + }, + updateCurator(value: MsgUpdateCurator) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value + }; + }, + updateDateCriteria(value: MsgUpdateDateCriteria) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value + }; + } + }, + fromPartial: { + create(value: MsgCreate) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.fromPartial(value) + }; + }, + put(value: MsgPut) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.fromPartial(value) + }; + }, + take(value: MsgTake) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.fromPartial(value) + }; + }, + updateBasketFee(value: MsgUpdateBasketFee) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.fromPartial(value) + }; + }, + updateCurator(value: MsgUpdateCurator) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.fromPartial(value) + }; + }, + updateDateCriteria(value: MsgUpdateDateCriteria) { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/tx.rpc.msg.ts b/packages/api/src/regen/ecocredit/basket/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..52bc3cf7 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/tx.rpc.msg.ts @@ -0,0 +1,108 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; +/** Msg is the regen.ecocredit.basket.v1 Msg service. */ +export interface Msg { + /** + * Create creates a basket that can hold different types of ecocredits that + * meet the basket's criteria. Upon depositing ecocredits into the basket, + * basket tokens are minted and sent to depositor using the Cosmos SDK Bank + * module. This allows basket tokens to be utilized within IBC. Basket tokens + * are fully fungible with other basket tokens from the same basket. The + * basket token denom is derived from the basket name, credit type + * abbreviation, and credit type precision (i.e. basket name "foo", credit + * type exponent 6, and credit type abbreviation "C" generates the denom + * eco.uC.foo). Baskets can limit credit acceptance criteria based on a + * combination of credit type, credit classes, and credit batch start date. + * Credits can be taken from the basket in exchange for basket tokens. Taken + * credits will be immediately retired, unless disable_auto_retire is set to + * true. When set to true, credits may be received in either a tradable or + * retired state, depending on the taker's request. If the basket fee + * governance parameter is set, a fee of equal or greater value must be + * provided in the request. Only the amount specified in the fee parameter + * will be charged, even if a greater value fee is provided. Fees from + * creating a basket are burned. + */ + create(request: MsgCreate): Promise; + /** + * Put deposits credits into the basket from the holder's tradable balance in + * exchange for basket tokens. The amount of tokens received is calculated by + * the following formula: sum(credits_deposited) * 10^credit_type_exponent. + * The credits being deposited MUST adhere to the criteria of the basket. + */ + put(request: MsgPut): Promise; + /** + * Take exchanges basket tokens for credits from the specified basket. Credits + * are taken deterministically, ordered by oldest batch start date to the most + * recent batch start date. If the basket has disable_auto_retire set to + * false, both retirement_jurisdiction and retire_on_take must be set, and the + * taken credits will be retired immediately upon receipt. Otherwise, credits + * may be received as tradable or retired, based on the request. + */ + take(request: MsgTake): Promise; + /** + * UpdateBasketFee is a governance method that allows for updating the basket + * creation fee. If not set, the basket creation fee will be removed and no + * fee will be required to create a basket. + * + * Since Revision 2 + */ + updateBasketFee(request: MsgUpdateBasketFee): Promise; + /** + * UpdateCurator updates basket curator. + * + * Since Revision 2 + */ + updateCurator(request: MsgUpdateCurator): Promise; + /** + * UpdateDateCriteria is a governance method that allows for updating the date + * criteria of a basket. Updating basket date criteria could affect the value + * of basket tokens and therefore requires a network-wide governance process. + * + * Since Revision 3 + */ + updateDateCriteria(request: MsgUpdateDateCriteria): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.create = this.create.bind(this); + this.put = this.put.bind(this); + this.take = this.take.bind(this); + this.updateBasketFee = this.updateBasketFee.bind(this); + this.updateCurator = this.updateCurator.bind(this); + this.updateDateCriteria = this.updateDateCriteria.bind(this); + } + create(request: MsgCreate): Promise { + const data = MsgCreate.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); + return promise.then(data => MsgCreateResponse.decode(new BinaryReader(data))); + } + put(request: MsgPut): Promise { + const data = MsgPut.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); + return promise.then(data => MsgPutResponse.decode(new BinaryReader(data))); + } + take(request: MsgTake): Promise { + const data = MsgTake.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); + return promise.then(data => MsgTakeResponse.decode(new BinaryReader(data))); + } + updateBasketFee(request: MsgUpdateBasketFee): Promise { + const data = MsgUpdateBasketFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); + return promise.then(data => MsgUpdateBasketFeeResponse.decode(new BinaryReader(data))); + } + updateCurator(request: MsgUpdateCurator): Promise { + const data = MsgUpdateCurator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); + return promise.then(data => MsgUpdateCuratorResponse.decode(new BinaryReader(data))); + } + updateDateCriteria(request: MsgUpdateDateCriteria): Promise { + const data = MsgUpdateDateCriteria.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); + return promise.then(data => MsgUpdateDateCriteriaResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/tx.ts b/packages/api/src/regen/ecocredit/basket/v1/tx.ts new file mode 100644 index 00000000..d23c751d --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/tx.ts @@ -0,0 +1,1596 @@ +//@ts-nocheck +import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreate { + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator: string; + /** + * name will be used to together with prefix to create a bank denom for this + * basket token. It can be between 3-8 alphanumeric characters, with the + * first character being alphabetic. + * + * The bank denom will be formed from name and credit type with the format + * `eco..` where prefix is the prefix of + * a standard SI unit derived from credit type precision. + */ + name: string; + /** + * description is a human-readable description of the basket denom that should + * be at most 256 characters. + */ + description: string; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when determining the prefix for basket denom, defining + * bank denom metadata, and converting credits to/from basket tokens. + */ + /** @deprecated */ + exponent: number; + /** + * disable_auto_retire allows auto-retirement to be disabled. + * The credits will be auto-retired if disable_auto_retire is + * false unless the credits were previously put into the basket by the + * address picking them from the basket, in which case they will remain + * tradable. + */ + disableAutoRetire: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + creditTypeAbbrev: string; + /** allowed_classes are the credit classes allowed to be put in the basket */ + allowedClasses: string[]; + /** + * date_criteria is the date criteria for batches admitted to the basket. + * At most, only one of the date criteria fields can be set. + */ + dateCriteria?: DateCriteria; + /** + * fee is the basket creation fee. A fee is not required if no fee exists + * in the basket fee parameter. The fee must be greater than or equal to the + * fee param. The curator will be charged the amount specified in the fee + * parameter, even if a greater amount is provided. + * + * Note (Since Revision 1): Although this field supports a list of fees, the + * basket creator must provide no more than one fee (i.e. one Coin in a list + * of Coins). Providing more than one fee will fail basic message validation. + * This field will be updated to a single fee rather than a list of fees in + * the next version to reflect these requirements. + */ + fee: Coin[]; +} +export interface MsgCreateProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate"; + value: Uint8Array; +} +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreateAmino { + /** + * curator is the address of the basket curator who is able to change certain + * basket settings. + */ + curator?: string; + /** + * name will be used to together with prefix to create a bank denom for this + * basket token. It can be between 3-8 alphanumeric characters, with the + * first character being alphabetic. + * + * The bank denom will be formed from name and credit type with the format + * `eco..` where prefix is the prefix of + * a standard SI unit derived from credit type precision. + */ + name?: string; + /** + * description is a human-readable description of the basket denom that should + * be at most 256 characters. + */ + description?: string; + /** + * Deprecated (Since Revision 1): This field is no longer used and will be + * removed in the next version. The value of credit type precision is always + * used as the exponent when determining the prefix for basket denom, defining + * bank denom metadata, and converting credits to/from basket tokens. + */ + /** @deprecated */ + exponent?: number; + /** + * disable_auto_retire allows auto-retirement to be disabled. + * The credits will be auto-retired if disable_auto_retire is + * false unless the credits were previously put into the basket by the + * address picking them from the basket, in which case they will remain + * tradable. + */ + disable_auto_retire?: boolean; + /** + * credit_type_abbrev is the abbreviation of the credit type this basket is + * able to hold. + */ + credit_type_abbrev?: string; + /** allowed_classes are the credit classes allowed to be put in the basket */ + allowed_classes?: string[]; + /** + * date_criteria is the date criteria for batches admitted to the basket. + * At most, only one of the date criteria fields can be set. + */ + date_criteria?: DateCriteriaAmino; + /** + * fee is the basket creation fee. A fee is not required if no fee exists + * in the basket fee parameter. The fee must be greater than or equal to the + * fee param. The curator will be charged the amount specified in the fee + * parameter, even if a greater amount is provided. + * + * Note (Since Revision 1): Although this field supports a list of fees, the + * basket creator must provide no more than one fee (i.e. one Coin in a list + * of Coins). Providing more than one fee will fail basic message validation. + * This field will be updated to a single fee rather than a list of fees in + * the next version to reflect these requirements. + */ + fee?: CoinAmino[]; +} +export interface MsgCreateAminoMsg { + type: "regen.basket/MsgCreate"; + value: MsgCreateAmino; +} +/** MsgCreateBasket is the Msg/CreateBasket request type. */ +export interface MsgCreateSDKType { + curator: string; + name: string; + description: string; + /** @deprecated */ + exponent: number; + disable_auto_retire: boolean; + credit_type_abbrev: string; + allowed_classes: string[]; + date_criteria?: DateCriteriaSDKType; + fee: CoinSDKType[]; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponse { + /** basket_denom is the unique denomination ID of the newly created basket. */ + basketDenom: string; +} +export interface MsgCreateResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse"; + value: Uint8Array; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponseAmino { + /** basket_denom is the unique denomination ID of the newly created basket. */ + basket_denom?: string; +} +export interface MsgCreateResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; + value: MsgCreateResponseAmino; +} +/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ +export interface MsgCreateResponseSDKType { + basket_denom: string; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPut { + /** owner is the owner of credits being put into the basket. */ + owner: string; + /** basket_denom is the basket denom to add credits to. */ + basketDenom: string; + /** + * credits are credits to add to the basket. If they do not match the basket's + * admission criteria, the operation will fail. + */ + credits: BasketCredit[]; +} +export interface MsgPutProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut"; + value: Uint8Array; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPutAmino { + /** owner is the owner of credits being put into the basket. */ + owner?: string; + /** basket_denom is the basket denom to add credits to. */ + basket_denom?: string; + /** + * credits are credits to add to the basket. If they do not match the basket's + * admission criteria, the operation will fail. + */ + credits?: BasketCreditAmino[]; +} +export interface MsgPutAminoMsg { + type: "regen.basket/MsgPut"; + value: MsgPutAmino; +} +/** MsgAddToBasket is the Msg/AddToBasket request type. */ +export interface MsgPutSDKType { + owner: string; + basket_denom: string; + credits: BasketCreditSDKType[]; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponse { + /** amount_received is the integer amount of basket tokens received. */ + amountReceived: string; +} +export interface MsgPutResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse"; + value: Uint8Array; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponseAmino { + /** amount_received is the integer amount of basket tokens received. */ + amount_received?: string; +} +export interface MsgPutResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgPutResponse"; + value: MsgPutResponseAmino; +} +/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ +export interface MsgPutResponseSDKType { + amount_received: string; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTake { + /** owner is the owner of the basket tokens. */ + owner: string; + /** basket_denom is the basket bank denom to take credits from. */ + basketDenom: string; + /** amount is the integer number of basket tokens to convert into credits. */ + amount: string; + /** + * retirement_location is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Deprecated (Since Revision 1): This field will be removed in the next + * version in favor of retirement_jurisdiction. Only one of these need to be + * set and retirement_jurisdiction will be used if both are set. + */ + /** @deprecated */ + retirementLocation: string; + /** + * retire_on_take is a boolean that dictates whether the ecocredits + * received in exchange for the basket tokens will be received as + * retired or tradable credits. If the basket has disable_auto_retire set to + * false, retire_on_take MUST be set to true, and a retirement jurisdiction + * must be provided. + */ + retireOnTake: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Since Revision 1 + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface MsgTakeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake"; + value: Uint8Array; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTakeAmino { + /** owner is the owner of the basket tokens. */ + owner?: string; + /** basket_denom is the basket bank denom to take credits from. */ + basket_denom?: string; + /** amount is the integer number of basket tokens to convert into credits. */ + amount?: string; + /** + * retirement_location is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Deprecated (Since Revision 1): This field will be removed in the next + * version in favor of retirement_jurisdiction. Only one of these need to be + * set and retirement_jurisdiction will be used if both are set. + */ + /** @deprecated */ + retirement_location?: string; + /** + * retire_on_take is a boolean that dictates whether the ecocredits + * received in exchange for the basket tokens will be received as + * retired or tradable credits. If the basket has disable_auto_retire set to + * false, retire_on_take MUST be set to true, and a retirement jurisdiction + * must be provided. + */ + retire_on_take?: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if retire_on_take is true. + * + * Since Revision 1 + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface MsgTakeAminoMsg { + type: "regen.basket/MsgTake"; + value: MsgTakeAmino; +} +/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ +export interface MsgTakeSDKType { + owner: string; + basket_denom: string; + amount: string; + /** @deprecated */ + retirement_location: string; + retire_on_take: boolean; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponse { + /** credits are the credits taken out of the basket. */ + credits: BasketCredit[]; +} +export interface MsgTakeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse"; + value: Uint8Array; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponseAmino { + /** credits are the credits taken out of the basket. */ + credits?: BasketCreditAmino[]; +} +export interface MsgTakeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; + value: MsgTakeResponseAmino; +} +/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ +export interface MsgTakeResponseSDKType { + credits: BasketCreditSDKType[]; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFee { + /** authority is the address of the governance account. */ + authority: string; + /** + * fee is the basket creation fee. If not set, the basket creation fee will be + * removed and no fee will be required to create a basket. + */ + fee?: Coin; +} +export interface MsgUpdateBasketFeeProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; + value: Uint8Array; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * fee is the basket creation fee. If not set, the basket creation fee will be + * removed and no fee will be required to create a basket. + */ + fee?: CoinAmino; +} +export interface MsgUpdateBasketFeeAminoMsg { + type: "regen.basket/MsgUpdateBasketFee"; + value: MsgUpdateBasketFeeAmino; +} +/** + * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeSDKType { + authority: string; + fee?: CoinSDKType; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponse {} +export interface MsgUpdateBasketFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; + value: Uint8Array; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponseAmino {} +export interface MsgUpdateBasketFeeResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; + value: MsgUpdateBasketFeeResponseAmino; +} +/** + * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBasketFeeResponseSDKType {} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCurator { + /** curator is the address of the basket curator. */ + curator: string; + /** denom is the unique identifier of the basket. */ + denom: string; + /** + * new_curator is the address of the account that will become the + * new curator of the basket. + */ + newCurator: string; +} +export interface MsgUpdateCuratorProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator"; + value: Uint8Array; +} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorAmino { + /** curator is the address of the basket curator. */ + curator?: string; + /** denom is the unique identifier of the basket. */ + denom?: string; + /** + * new_curator is the address of the account that will become the + * new curator of the basket. + */ + new_curator?: string; +} +export interface MsgUpdateCuratorAminoMsg { + type: "regen.basket/MsgUpdateCurator"; + value: MsgUpdateCuratorAmino; +} +/** + * MsgUpdateCurator is the Msg/UpdateCurator request type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorSDKType { + curator: string; + denom: string; + new_curator: string; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponse {} +export interface MsgUpdateCuratorResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; + value: Uint8Array; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponseAmino {} +export interface MsgUpdateCuratorResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; + value: MsgUpdateCuratorResponseAmino; +} +/** + * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. + * + * Since Revision 2 + */ +export interface MsgUpdateCuratorResponseSDKType {} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteria { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the unique identifier of the basket. */ + denom: string; + /** + * new_date_criteria is the new date criteria for batches admitted to the + * basket. At most, only one of the date criteria fields can be set. + */ + newDateCriteria?: DateCriteria; +} +export interface MsgUpdateDateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; + value: Uint8Array; +} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the unique identifier of the basket. */ + denom?: string; + /** + * new_date_criteria is the new date criteria for batches admitted to the + * basket. At most, only one of the date criteria fields can be set. + */ + new_date_criteria?: DateCriteriaAmino; +} +export interface MsgUpdateDateCriteriaAminoMsg { + type: "regen.basket/MsgUpdateDateCriteria"; + value: MsgUpdateDateCriteriaAmino; +} +/** + * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaSDKType { + authority: string; + denom: string; + new_date_criteria?: DateCriteriaSDKType; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponse {} +export interface MsgUpdateDateCriteriaResponseProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; + value: Uint8Array; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponseAmino {} +export interface MsgUpdateDateCriteriaResponseAminoMsg { + type: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; + value: MsgUpdateDateCriteriaResponseAmino; +} +/** + * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. + * + * Since Revision 3 + */ +export interface MsgUpdateDateCriteriaResponseSDKType {} +function createBaseMsgCreate(): MsgCreate { + return { + curator: "", + name: "", + description: "", + exponent: 0, + disableAutoRetire: false, + creditTypeAbbrev: "", + allowedClasses: [], + dateCriteria: undefined, + fee: [] + }; +} +export const MsgCreate = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + encode(message: MsgCreate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.description !== "") { + writer.uint32(26).string(message.description); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(50).string(message.creditTypeAbbrev); + } + for (const v of message.allowedClasses) { + writer.uint32(58).string(v!); + } + if (message.dateCriteria !== undefined) { + DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); + } + for (const v of message.fee) { + Coin.encode(v!, writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.creditTypeAbbrev = reader.string(); + break; + case 7: + message.allowedClasses.push(reader.string()); + break; + case 8: + message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + case 9: + message.fee.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreate { + const message = createBaseMsgCreate(); + message.curator = object.curator ?? ""; + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.exponent = object.exponent ?? 0; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.allowedClasses = object.allowedClasses?.map(e => e) || []; + message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; + message.fee = object.fee?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgCreateAmino): MsgCreate { + const message = createBaseMsgCreate(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + message.allowedClasses = object.allowed_classes?.map(e => e) || []; + if (object.date_criteria !== undefined && object.date_criteria !== null) { + message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); + } + message.fee = object.fee?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgCreate): MsgCreateAmino { + const obj: any = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.name = message.name === "" ? undefined : message.name; + obj.description = message.description === "" ? undefined : message.description; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + if (message.allowedClasses) { + obj.allowed_classes = message.allowedClasses.map(e => e); + } else { + obj.allowed_classes = message.allowedClasses; + } + obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; + if (message.fee) { + obj.fee = message.fee.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.fee = message.fee; + } + return obj; + }, + fromAminoMsg(object: MsgCreateAminoMsg): MsgCreate { + return MsgCreate.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreate): MsgCreateAminoMsg { + return { + type: "regen.basket/MsgCreate", + value: MsgCreate.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateProtoMsg): MsgCreate { + return MsgCreate.decode(message.value); + }, + toProto(message: MsgCreate): Uint8Array { + return MsgCreate.encode(message).finish(); + }, + toProtoMsg(message: MsgCreate): MsgCreateProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", + value: MsgCreate.encode(message).finish() + }; + } +}; +function createBaseMsgCreateResponse(): MsgCreateResponse { + return { + basketDenom: "" + }; +} +export const MsgCreateResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + encode(message: MsgCreateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.basketDenom !== "") { + writer.uint32(10).string(message.basketDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateResponse { + const message = createBaseMsgCreateResponse(); + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object: MsgCreateResponseAmino): MsgCreateResponse { + const message = createBaseMsgCreateResponse(); + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message: MsgCreateResponse): MsgCreateResponseAmino { + const obj: any = {}; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object: MsgCreateResponseAminoMsg): MsgCreateResponse { + return MsgCreateResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateResponseProtoMsg): MsgCreateResponse { + return MsgCreateResponse.decode(message.value); + }, + toProto(message: MsgCreateResponse): Uint8Array { + return MsgCreateResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", + value: MsgCreateResponse.encode(message).finish() + }; + } +}; +function createBaseMsgPut(): MsgPut { + return { + owner: "", + basketDenom: "", + credits: [] + }; +} +export const MsgPut = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + encode(message: MsgPut, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + for (const v of message.credits) { + BasketCredit.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgPut { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPut(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgPut { + const message = createBaseMsgPut(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgPutAmino): MsgPut { + const message = createBaseMsgPut(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgPut): MsgPutAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgPutAminoMsg): MsgPut { + return MsgPut.fromAmino(object.value); + }, + toAminoMsg(message: MsgPut): MsgPutAminoMsg { + return { + type: "regen.basket/MsgPut", + value: MsgPut.toAmino(message) + }; + }, + fromProtoMsg(message: MsgPutProtoMsg): MsgPut { + return MsgPut.decode(message.value); + }, + toProto(message: MsgPut): Uint8Array { + return MsgPut.encode(message).finish(); + }, + toProtoMsg(message: MsgPut): MsgPutProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPut", + value: MsgPut.encode(message).finish() + }; + } +}; +function createBaseMsgPutResponse(): MsgPutResponse { + return { + amountReceived: "" + }; +} +export const MsgPutResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + encode(message: MsgPutResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.amountReceived !== "") { + writer.uint32(10).string(message.amountReceived); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgPutResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.amountReceived = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgPutResponse { + const message = createBaseMsgPutResponse(); + message.amountReceived = object.amountReceived ?? ""; + return message; + }, + fromAmino(object: MsgPutResponseAmino): MsgPutResponse { + const message = createBaseMsgPutResponse(); + if (object.amount_received !== undefined && object.amount_received !== null) { + message.amountReceived = object.amount_received; + } + return message; + }, + toAmino(message: MsgPutResponse): MsgPutResponseAmino { + const obj: any = {}; + obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; + return obj; + }, + fromAminoMsg(object: MsgPutResponseAminoMsg): MsgPutResponse { + return MsgPutResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgPutResponseProtoMsg): MsgPutResponse { + return MsgPutResponse.decode(message.value); + }, + toProto(message: MsgPutResponse): Uint8Array { + return MsgPutResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", + value: MsgPutResponse.encode(message).finish() + }; + } +}; +function createBaseMsgTake(): MsgTake { + return { + owner: "", + basketDenom: "", + amount: "", + retirementLocation: "", + retireOnTake: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgTake = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + encode(message: MsgTake, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.basketDenom !== "") { + writer.uint32(18).string(message.basketDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + if (message.retireOnTake === true) { + writer.uint32(40).bool(message.retireOnTake); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgTake { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTake(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.basketDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + case 5: + message.retireOnTake = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgTake { + const message = createBaseMsgTake(); + message.owner = object.owner ?? ""; + message.basketDenom = object.basketDenom ?? ""; + message.amount = object.amount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + message.retireOnTake = object.retireOnTake ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object: MsgTakeAmino): MsgTake { + const message = createBaseMsgTake(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + if (object.retire_on_take !== undefined && object.retire_on_take !== null) { + message.retireOnTake = object.retire_on_take; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message: MsgTake): MsgTakeAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object: MsgTakeAminoMsg): MsgTake { + return MsgTake.fromAmino(object.value); + }, + toAminoMsg(message: MsgTake): MsgTakeAminoMsg { + return { + type: "regen.basket/MsgTake", + value: MsgTake.toAmino(message) + }; + }, + fromProtoMsg(message: MsgTakeProtoMsg): MsgTake { + return MsgTake.decode(message.value); + }, + toProto(message: MsgTake): Uint8Array { + return MsgTake.encode(message).finish(); + }, + toProtoMsg(message: MsgTake): MsgTakeProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTake", + value: MsgTake.encode(message).finish() + }; + } +}; +function createBaseMsgTakeResponse(): MsgTakeResponse { + return { + credits: [] + }; +} +export const MsgTakeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + encode(message: MsgTakeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.credits) { + BasketCredit.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgTakeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.credits.push(BasketCredit.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgTakeResponse { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgTakeResponseAmino): MsgTakeResponse { + const message = createBaseMsgTakeResponse(); + message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgTakeResponse): MsgTakeResponseAmino { + const obj: any = {}; + if (message.credits) { + obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgTakeResponseAminoMsg): MsgTakeResponse { + return MsgTakeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgTakeResponseProtoMsg): MsgTakeResponse { + return MsgTakeResponse.decode(message.value); + }, + toProto(message: MsgTakeResponse): Uint8Array { + return MsgTakeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", + value: MsgTakeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFee(): MsgUpdateBasketFee { + return { + authority: "", + fee: undefined + }; +} +export const MsgUpdateBasketFee = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + encode(message: MsgUpdateBasketFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateBasketFee { + const message = createBaseMsgUpdateBasketFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: MsgUpdateBasketFeeAmino): MsgUpdateBasketFee { + const message = createBaseMsgUpdateBasketFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateBasketFeeAminoMsg): MsgUpdateBasketFee { + return MsgUpdateBasketFee.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAminoMsg { + return { + type: "regen.basket/MsgUpdateBasketFee", + value: MsgUpdateBasketFee.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateBasketFeeProtoMsg): MsgUpdateBasketFee { + return MsgUpdateBasketFee.decode(message.value); + }, + toProto(message: MsgUpdateBasketFee): Uint8Array { + return MsgUpdateBasketFee.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", + value: MsgUpdateBasketFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBasketFeeResponse(): MsgUpdateBasketFeeResponse { + return {}; +} +export const MsgUpdateBasketFeeResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + encode(_: MsgUpdateBasketFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBasketFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateBasketFeeResponse { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + fromAmino(_: MsgUpdateBasketFeeResponseAmino): MsgUpdateBasketFeeResponse { + const message = createBaseMsgUpdateBasketFeeResponse(); + return message; + }, + toAmino(_: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateBasketFeeResponseAminoMsg): MsgUpdateBasketFeeResponse { + return MsgUpdateBasketFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateBasketFeeResponseProtoMsg): MsgUpdateBasketFeeResponse { + return MsgUpdateBasketFeeResponse.decode(message.value); + }, + toProto(message: MsgUpdateBasketFeeResponse): Uint8Array { + return MsgUpdateBasketFeeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", + value: MsgUpdateBasketFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCurator(): MsgUpdateCurator { + return { + curator: "", + denom: "", + newCurator: "" + }; +} +export const MsgUpdateCurator = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + encode(message: MsgUpdateCurator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.curator !== "") { + writer.uint32(10).string(message.curator); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newCurator !== "") { + writer.uint32(26).string(message.newCurator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCurator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.curator = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 3: + message.newCurator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateCurator { + const message = createBaseMsgUpdateCurator(); + message.curator = object.curator ?? ""; + message.denom = object.denom ?? ""; + message.newCurator = object.newCurator ?? ""; + return message; + }, + fromAmino(object: MsgUpdateCuratorAmino): MsgUpdateCurator { + const message = createBaseMsgUpdateCurator(); + if (object.curator !== undefined && object.curator !== null) { + message.curator = object.curator; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_curator !== undefined && object.new_curator !== null) { + message.newCurator = object.new_curator; + } + return message; + }, + toAmino(message: MsgUpdateCurator): MsgUpdateCuratorAmino { + const obj: any = {}; + obj.curator = message.curator === "" ? undefined : message.curator; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; + return obj; + }, + fromAminoMsg(object: MsgUpdateCuratorAminoMsg): MsgUpdateCurator { + return MsgUpdateCurator.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateCurator): MsgUpdateCuratorAminoMsg { + return { + type: "regen.basket/MsgUpdateCurator", + value: MsgUpdateCurator.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateCuratorProtoMsg): MsgUpdateCurator { + return MsgUpdateCurator.decode(message.value); + }, + toProto(message: MsgUpdateCurator): Uint8Array { + return MsgUpdateCurator.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", + value: MsgUpdateCurator.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateCuratorResponse(): MsgUpdateCuratorResponse { + return {}; +} +export const MsgUpdateCuratorResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + encode(_: MsgUpdateCuratorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateCuratorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateCuratorResponse { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + fromAmino(_: MsgUpdateCuratorResponseAmino): MsgUpdateCuratorResponse { + const message = createBaseMsgUpdateCuratorResponse(); + return message; + }, + toAmino(_: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateCuratorResponseAminoMsg): MsgUpdateCuratorResponse { + return MsgUpdateCuratorResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateCuratorResponseProtoMsg): MsgUpdateCuratorResponse { + return MsgUpdateCuratorResponse.decode(message.value); + }, + toProto(message: MsgUpdateCuratorResponse): Uint8Array { + return MsgUpdateCuratorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", + value: MsgUpdateCuratorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteria(): MsgUpdateDateCriteria { + return { + authority: "", + denom: "", + newDateCriteria: undefined + }; +} +export const MsgUpdateDateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + encode(message: MsgUpdateDateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + if (message.newDateCriteria !== undefined) { + DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 8: + message.newDateCriteria = DateCriteria.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateDateCriteria { + const message = createBaseMsgUpdateDateCriteria(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? DateCriteria.fromPartial(object.newDateCriteria) : undefined; + return message; + }, + fromAmino(object: MsgUpdateDateCriteriaAmino): MsgUpdateDateCriteria { + const message = createBaseMsgUpdateDateCriteria(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { + message.newDateCriteria = DateCriteria.fromAmino(object.new_date_criteria); + } + return message; + }, + toAmino(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.new_date_criteria = message.newDateCriteria ? DateCriteria.toAmino(message.newDateCriteria) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateDateCriteriaAminoMsg): MsgUpdateDateCriteria { + return MsgUpdateDateCriteria.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAminoMsg { + return { + type: "regen.basket/MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateDateCriteriaProtoMsg): MsgUpdateDateCriteria { + return MsgUpdateDateCriteria.decode(message.value); + }, + toProto(message: MsgUpdateDateCriteria): Uint8Array { + return MsgUpdateDateCriteria.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", + value: MsgUpdateDateCriteria.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateDateCriteriaResponse(): MsgUpdateDateCriteriaResponse { + return {}; +} +export const MsgUpdateDateCriteriaResponse = { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + encode(_: MsgUpdateDateCriteriaResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateDateCriteriaResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateDateCriteriaResponse { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + fromAmino(_: MsgUpdateDateCriteriaResponseAmino): MsgUpdateDateCriteriaResponse { + const message = createBaseMsgUpdateDateCriteriaResponse(); + return message; + }, + toAmino(_: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateDateCriteriaResponseAminoMsg): MsgUpdateDateCriteriaResponse { + return MsgUpdateDateCriteriaResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateDateCriteriaResponseProtoMsg): MsgUpdateDateCriteriaResponse { + return MsgUpdateDateCriteriaResponse.decode(message.value); + }, + toProto(message: MsgUpdateDateCriteriaResponse): Uint8Array { + return MsgUpdateDateCriteriaResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", + value: MsgUpdateDateCriteriaResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/basket/v1/types.ts b/packages/api/src/regen/ecocredit/basket/v1/types.ts new file mode 100644 index 00000000..19404f95 --- /dev/null +++ b/packages/api/src/regen/ecocredit/basket/v1/types.ts @@ -0,0 +1,283 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCredit { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being put into or taken out of the basket. + * Decimal values are acceptable within the precision of the corresponding + * credit type for this batch. + */ + amount: string; +} +export interface BasketCreditProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit"; + value: Uint8Array; +} +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCreditAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being put into or taken out of the basket. + * Decimal values are acceptable within the precision of the corresponding + * credit type for this batch. + */ + amount?: string; +} +export interface BasketCreditAminoMsg { + type: "/regen.ecocredit.basket.v1.BasketCredit"; + value: BasketCreditAmino; +} +/** BasketCredit represents the information for a credit batch inside a basket. */ +export interface BasketCreditSDKType { + batch_denom: string; + amount: string; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteria { + /** + * min_start_date (optional) is the earliest start date for batches of credits + * allowed into the basket. At most only one of `start_date_window`, + * `min_start_date`, and `years_in_the_past` can be set for a basket. + */ + minStartDate?: Date; + /** + * start_date_window (optional) is a duration of time measured into the past + * which sets a cutoff for batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date is + * before `block_timestamp - start_date_window` will not be allowed into the + * basket. At most only one of `start_date_window`, `min_start_date`, and + * `years_in_the_past` can be set for a basket. + */ + startDateWindow?: Duration; + /** + * years_in_the_past (optional) is the number of years into the past which + * sets a cutoff for the batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date year + * is less than `block_timestamp_year - years_in_the_past` will not be allowed + * into the basket. At most only one of `start_date_window`, `min_start_date`, + * and `years_in_the_past` can be set for a basket. + * + * Since Revision 1 + */ + yearsInThePast: number; +} +export interface DateCriteriaProtoMsg { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria"; + value: Uint8Array; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteriaAmino { + /** + * min_start_date (optional) is the earliest start date for batches of credits + * allowed into the basket. At most only one of `start_date_window`, + * `min_start_date`, and `years_in_the_past` can be set for a basket. + */ + min_start_date?: string; + /** + * start_date_window (optional) is a duration of time measured into the past + * which sets a cutoff for batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date is + * before `block_timestamp - start_date_window` will not be allowed into the + * basket. At most only one of `start_date_window`, `min_start_date`, and + * `years_in_the_past` can be set for a basket. + */ + start_date_window?: DurationAmino; + /** + * years_in_the_past (optional) is the number of years into the past which + * sets a cutoff for the batch start dates when adding new credits to the + * basket. Based on the current block timestamp, credits whose start date year + * is less than `block_timestamp_year - years_in_the_past` will not be allowed + * into the basket. At most only one of `start_date_window`, `min_start_date`, + * and `years_in_the_past` can be set for a basket. + * + * Since Revision 1 + */ + years_in_the_past?: number; +} +export interface DateCriteriaAminoMsg { + type: "/regen.ecocredit.basket.v1.DateCriteria"; + value: DateCriteriaAmino; +} +/** + * DateCriteria represents the information for credit acceptance in a basket. + * At most, only one of the values should be set. + */ +export interface DateCriteriaSDKType { + min_start_date?: Date; + start_date_window?: DurationSDKType; + years_in_the_past: number; +} +function createBaseBasketCredit(): BasketCredit { + return { + batchDenom: "", + amount: "" + }; +} +export const BasketCredit = { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + encode(message: BasketCredit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBasketCredit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BasketCredit { + const message = createBaseBasketCredit(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: BasketCreditAmino): BasketCredit { + const message = createBaseBasketCredit(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: BasketCredit): BasketCreditAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: BasketCreditAminoMsg): BasketCredit { + return BasketCredit.fromAmino(object.value); + }, + fromProtoMsg(message: BasketCreditProtoMsg): BasketCredit { + return BasketCredit.decode(message.value); + }, + toProto(message: BasketCredit): Uint8Array { + return BasketCredit.encode(message).finish(); + }, + toProtoMsg(message: BasketCredit): BasketCreditProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", + value: BasketCredit.encode(message).finish() + }; + } +}; +function createBaseDateCriteria(): DateCriteria { + return { + minStartDate: undefined, + startDateWindow: undefined, + yearsInThePast: 0 + }; +} +export const DateCriteria = { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + encode(message: DateCriteria, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(10).fork()).ldelim(); + } + if (message.startDateWindow !== undefined) { + Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); + } + if (message.yearsInThePast !== 0) { + writer.uint32(24).uint32(message.yearsInThePast); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDateCriteria(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.startDateWindow = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.yearsInThePast = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DateCriteria { + const message = createBaseDateCriteria(); + message.minStartDate = object.minStartDate ?? undefined; + message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? Duration.fromPartial(object.startDateWindow) : undefined; + message.yearsInThePast = object.yearsInThePast ?? 0; + return message; + }, + fromAmino(object: DateCriteriaAmino): DateCriteria { + const message = createBaseDateCriteria(); + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.start_date_window !== undefined && object.start_date_window !== null) { + message.startDateWindow = Duration.fromAmino(object.start_date_window); + } + if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { + message.yearsInThePast = object.years_in_the_past; + } + return message; + }, + toAmino(message: DateCriteria): DateCriteriaAmino { + const obj: any = {}; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.start_date_window = message.startDateWindow ? Duration.toAmino(message.startDateWindow) : undefined; + obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; + return obj; + }, + fromAminoMsg(object: DateCriteriaAminoMsg): DateCriteria { + return DateCriteria.fromAmino(object.value); + }, + fromProtoMsg(message: DateCriteriaProtoMsg): DateCriteria { + return DateCriteria.decode(message.value); + }, + toProto(message: DateCriteria): Uint8Array { + return DateCriteria.encode(message).finish(); + }, + toProtoMsg(message: DateCriteria): DateCriteriaProtoMsg { + return { + typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", + value: DateCriteria.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/events.ts b/packages/api/src/regen/ecocredit/marketplace/v1/events.ts new file mode 100644 index 00000000..59a0eac2 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/events.ts @@ -0,0 +1,560 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSell { + /** sell_order_id is the unique identifier of the sell order that was created. */ + sellOrderId: bigint; +} +export interface EventSellProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; + value: Uint8Array; +} +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSellAmino { + /** sell_order_id is the unique identifier of the sell order that was created. */ + sell_order_id?: string; +} +export interface EventSellAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventSell"; + value: EventSellAmino; +} +/** EventSell is an event emitted when a sell order is created. */ +export interface EventSellSDKType { + sell_order_id: bigint; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirect { + /** + * sell_order_id is the unique identifier of the sell order that credits were + * purchased from. + */ + sellOrderId: bigint; +} +export interface EventBuyDirectProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; + value: Uint8Array; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirectAmino { + /** + * sell_order_id is the unique identifier of the sell order that credits were + * purchased from. + */ + sell_order_id?: string; +} +export interface EventBuyDirectAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; + value: EventBuyDirectAmino; +} +/** EventBuyDirect is an event emitted when a direct buy order is processed. */ +export interface EventBuyDirectSDKType { + sell_order_id: bigint; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrder { + /** sell_order_id is the unique identifier of the sell order that was updated. */ + sellOrderId: bigint; +} +export interface EventUpdateSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; + value: Uint8Array; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrderAmino { + /** sell_order_id is the unique identifier of the sell order that was updated. */ + sell_order_id?: string; +} +export interface EventUpdateSellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; + value: EventUpdateSellOrderAmino; +} +/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ +export interface EventUpdateSellOrderSDKType { + sell_order_id: bigint; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrder { + /** + * sell_order_id is the unique identifier of the sell order that was + * cancelled. + */ + sellOrderId: bigint; +} +export interface EventCancelSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; + value: Uint8Array; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrderAmino { + /** + * sell_order_id is the unique identifier of the sell order that was + * cancelled. + */ + sell_order_id?: string; +} +export interface EventCancelSellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; + value: EventCancelSellOrderAmino; +} +/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ +export interface EventCancelSellOrderSDKType { + sell_order_id: bigint; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenom { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of + * allowed denoms for use in the marketplace. + */ + denom: string; +} +export interface EventAllowDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; + value: Uint8Array; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenomAmino { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of + * allowed denoms for use in the marketplace. + */ + denom?: string; +} +export interface EventAllowDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; + value: EventAllowDenomAmino; +} +/** + * EventAllowDenom is an event emitted when a new denom is added for use in the + * marketplace. + */ +export interface EventAllowDenomSDKType { + denom: string; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenom { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of + * allowed denoms for use in the marketplace. + */ + denom: string; +} +export interface EventRemoveAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; + value: Uint8Array; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenomAmino { + /** + * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of + * allowed denoms for use in the marketplace. + */ + denom?: string; +} +export interface EventRemoveAllowedDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; + value: EventRemoveAllowedDenomAmino; +} +/** + * EventRemoveAllowedDenom is an event emitted when a denom is removed from use + * in the marketplace. + * + * Since Revision 1 + */ +export interface EventRemoveAllowedDenomSDKType { + denom: string; +} +function createBaseEventSell(): EventSell { + return { + sellOrderId: BigInt(0) + }; +} +export const EventSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + encode(message: EventSell, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventSell { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventSell { + const message = createBaseEventSell(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventSellAmino): EventSell { + const message = createBaseEventSell(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: EventSell): EventSellAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventSellAminoMsg): EventSell { + return EventSell.fromAmino(object.value); + }, + fromProtoMsg(message: EventSellProtoMsg): EventSell { + return EventSell.decode(message.value); + }, + toProto(message: EventSell): Uint8Array { + return EventSell.encode(message).finish(); + }, + toProtoMsg(message: EventSell): EventSellProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", + value: EventSell.encode(message).finish() + }; + } +}; +function createBaseEventBuyDirect(): EventBuyDirect { + return { + sellOrderId: BigInt(0) + }; +} +export const EventBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + encode(message: EventBuyDirect, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventBuyDirect { + const message = createBaseEventBuyDirect(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventBuyDirectAmino): EventBuyDirect { + const message = createBaseEventBuyDirect(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: EventBuyDirect): EventBuyDirectAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventBuyDirectAminoMsg): EventBuyDirect { + return EventBuyDirect.fromAmino(object.value); + }, + fromProtoMsg(message: EventBuyDirectProtoMsg): EventBuyDirect { + return EventBuyDirect.decode(message.value); + }, + toProto(message: EventBuyDirect): Uint8Array { + return EventBuyDirect.encode(message).finish(); + }, + toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", + value: EventBuyDirect.encode(message).finish() + }; + } +}; +function createBaseEventUpdateSellOrder(): EventUpdateSellOrder { + return { + sellOrderId: BigInt(0) + }; +} +export const EventUpdateSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + encode(message: EventUpdateSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateSellOrder { + const message = createBaseEventUpdateSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventUpdateSellOrderAmino): EventUpdateSellOrder { + const message = createBaseEventUpdateSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: EventUpdateSellOrder): EventUpdateSellOrderAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventUpdateSellOrderAminoMsg): EventUpdateSellOrder { + return EventUpdateSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateSellOrderProtoMsg): EventUpdateSellOrder { + return EventUpdateSellOrder.decode(message.value); + }, + toProto(message: EventUpdateSellOrder): Uint8Array { + return EventUpdateSellOrder.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", + value: EventUpdateSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventCancelSellOrder(): EventCancelSellOrder { + return { + sellOrderId: BigInt(0) + }; +} +export const EventCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + encode(message: EventCancelSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCancelSellOrder { + const message = createBaseEventCancelSellOrder(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EventCancelSellOrderAmino): EventCancelSellOrder { + const message = createBaseEventCancelSellOrder(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: EventCancelSellOrder): EventCancelSellOrderAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EventCancelSellOrderAminoMsg): EventCancelSellOrder { + return EventCancelSellOrder.fromAmino(object.value); + }, + fromProtoMsg(message: EventCancelSellOrderProtoMsg): EventCancelSellOrder { + return EventCancelSellOrder.decode(message.value); + }, + toProto(message: EventCancelSellOrder): Uint8Array { + return EventCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", + value: EventCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseEventAllowDenom(): EventAllowDenom { + return { + denom: "" + }; +} +export const EventAllowDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + encode(message: EventAllowDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAllowDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventAllowDenom { + const message = createBaseEventAllowDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: EventAllowDenomAmino): EventAllowDenom { + const message = createBaseEventAllowDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: EventAllowDenom): EventAllowDenomAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: EventAllowDenomAminoMsg): EventAllowDenom { + return EventAllowDenom.fromAmino(object.value); + }, + fromProtoMsg(message: EventAllowDenomProtoMsg): EventAllowDenom { + return EventAllowDenom.decode(message.value); + }, + toProto(message: EventAllowDenom): Uint8Array { + return EventAllowDenom.encode(message).finish(); + }, + toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", + value: EventAllowDenom.encode(message).finish() + }; + } +}; +function createBaseEventRemoveAllowedDenom(): EventRemoveAllowedDenom { + return { + denom: "" + }; +} +export const EventRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + encode(message: EventRemoveAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventRemoveAllowedDenom { + const message = createBaseEventRemoveAllowedDenom(); + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: EventRemoveAllowedDenomAmino): EventRemoveAllowedDenom { + const message = createBaseEventRemoveAllowedDenom(); + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomAmino { + const obj: any = {}; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: EventRemoveAllowedDenomAminoMsg): EventRemoveAllowedDenom { + return EventRemoveAllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message: EventRemoveAllowedDenomProtoMsg): EventRemoveAllowedDenom { + return EventRemoveAllowedDenom.decode(message.value); + }, + toProto(message: EventRemoveAllowedDenom): Uint8Array { + return EventRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", + value: EventRemoveAllowedDenom.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/query.lcd.ts b/packages/api/src/regen/ecocredit/marketplace/v1/query.lcd.ts new file mode 100644 index 00000000..614e2999 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/query.lcd.ts @@ -0,0 +1,75 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + /* SellOrder queries a sell order by its unique identifier. */ + async sellOrder(params: QuerySellOrderRequest): Promise { + const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; + return await this.req.get(endpoint); + } + /* SellOrders queries a paginated list of all sell orders. */ + async sellOrders(params: QuerySellOrdersRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; + return await this.req.get(endpoint, options); + } + /* SellOrdersByBatch queries a paginated list of all sell orders based on + the batch denom of the credits being sold. */ + async sellOrdersByBatch(params: QuerySellOrdersByBatchRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* SellOrdersBySeller queries a paginated list of all sell orders based on the + account address of the seller. */ + async sellOrdersBySeller(params: QuerySellOrdersBySellerRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; + return await this.req.get(endpoint, options); + } + /* AllowedDenoms queries a paginated list of all bank denoms allowed to be + used in the marketplace. */ + async allowedDenoms(params: QueryAllowedDenomsRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; + return await this.req.get(endpoint, options); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/query.rpc.Query.ts b/packages/api/src/regen/ecocredit/marketplace/v1/query.rpc.Query.ts new file mode 100644 index 00000000..7daedd54 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/query.rpc.Query.ts @@ -0,0 +1,88 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; +/** Msg is the regen.ecocredit.marketplace.v1 Query service. */ +export interface Query { + /** SellOrder queries a sell order by its unique identifier. */ + sellOrder(request: QuerySellOrderRequest): Promise; + /** SellOrders queries a paginated list of all sell orders. */ + sellOrders(request?: QuerySellOrdersRequest): Promise; + /** + * SellOrdersByBatch queries a paginated list of all sell orders based on + * the batch denom of the credits being sold. + */ + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; + /** + * SellOrdersBySeller queries a paginated list of all sell orders based on the + * account address of the seller. + */ + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; + /** + * AllowedDenoms queries a paginated list of all bank denoms allowed to be + * used in the marketplace. + */ + allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.sellOrder = this.sellOrder.bind(this); + this.sellOrders = this.sellOrders.bind(this); + this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); + this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); + this.allowedDenoms = this.allowedDenoms.bind(this); + } + sellOrder(request: QuerySellOrderRequest): Promise { + const data = QuerySellOrderRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); + return promise.then(data => QuerySellOrderResponse.decode(new BinaryReader(data))); + } + sellOrders(request: QuerySellOrdersRequest = { + pagination: undefined + }): Promise { + const data = QuerySellOrdersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); + return promise.then(data => QuerySellOrdersResponse.decode(new BinaryReader(data))); + } + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise { + const data = QuerySellOrdersByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); + return promise.then(data => QuerySellOrdersByBatchResponse.decode(new BinaryReader(data))); + } + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise { + const data = QuerySellOrdersBySellerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); + return promise.then(data => QuerySellOrdersBySellerResponse.decode(new BinaryReader(data))); + } + allowedDenoms(request: QueryAllowedDenomsRequest = { + pagination: undefined + }): Promise { + const data = QueryAllowedDenomsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); + return promise.then(data => QueryAllowedDenomsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + sellOrder(request: QuerySellOrderRequest): Promise { + return queryService.sellOrder(request); + }, + sellOrders(request?: QuerySellOrdersRequest): Promise { + return queryService.sellOrders(request); + }, + sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise { + return queryService.sellOrdersByBatch(request); + }, + sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise { + return queryService.sellOrdersBySeller(request); + }, + allowedDenoms(request?: QueryAllowedDenomsRequest): Promise { + return queryService.allowedDenoms(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/query.ts b/packages/api/src/regen/ecocredit/marketplace/v1/query.ts new file mode 100644 index 00000000..4e9427d7 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/query.ts @@ -0,0 +1,1234 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; +import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequest { + /** sell_order_id is the id of the requested sell order. */ + sellOrderId: bigint; +} +export interface QuerySellOrderRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; + value: Uint8Array; +} +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequestAmino { + /** sell_order_id is the id of the requested sell order. */ + sell_order_id?: string; +} +export interface QuerySellOrderRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; + value: QuerySellOrderRequestAmino; +} +/** QuerySellOrderRequest is the Query/SellOrder request type. */ +export interface QuerySellOrderRequestSDKType { + sell_order_id: bigint; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponse { + /** sell_order contains all information related to a sell order. */ + sellOrder?: SellOrderInfo; +} +export interface QuerySellOrderResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; + value: Uint8Array; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponseAmino { + /** sell_order contains all information related to a sell order. */ + sell_order?: SellOrderInfoAmino; +} +export interface QuerySellOrderResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; + value: QuerySellOrderResponseAmino; +} +/** QuerySellOrderResponse is the Query/SellOrder response type. */ +export interface QuerySellOrderResponseSDKType { + sell_order?: SellOrderInfoSDKType; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; + value: Uint8Array; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; + value: QuerySellOrdersRequestAmino; +} +/** QuerySellOrdersRequest is the Query/SellOrders request type. */ +export interface QuerySellOrdersRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; + value: Uint8Array; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; + value: QuerySellOrdersResponseAmino; +} +/** QuerySellOrdersResponse is the Query/SellOrders response type. */ +export interface QuerySellOrdersResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequest { + /** batch_denom is an ecocredit denom */ + batchDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersByBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; + value: Uint8Array; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequestAmino { + /** batch_denom is an ecocredit denom */ + batch_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersByBatchRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; + value: QuerySellOrdersByBatchRequestAmino; +} +/** + * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch + * request type. + */ +export interface QuerySellOrdersByBatchRequestSDKType { + batch_denom: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersByBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; + value: Uint8Array; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersByBatchResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; + value: QuerySellOrdersByBatchResponseAmino; +} +/** + * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch + * response type. + */ +export interface QuerySellOrdersByBatchResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequest { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QuerySellOrdersBySellerRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; + value: Uint8Array; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequestAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QuerySellOrdersBySellerRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; + value: QuerySellOrdersBySellerRequestAmino; +} +/** + * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request + * type. + */ +export interface QuerySellOrdersBySellerRequestSDKType { + seller: string; + pagination?: PageRequestSDKType; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponse { + /** sell_orders is a list of sell orders. */ + sellOrders: SellOrderInfo[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QuerySellOrdersBySellerResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; + value: Uint8Array; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponseAmino { + /** sell_orders is a list of sell orders. */ + sell_orders?: SellOrderInfoAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QuerySellOrdersBySellerResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; + value: QuerySellOrdersBySellerResponseAmino; +} +/** + * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse + * response type. + */ +export interface QuerySellOrdersBySellerResponseSDKType { + sell_orders: SellOrderInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowedDenomsRequestProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; + value: Uint8Array; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowedDenomsRequestAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; + value: QueryAllowedDenomsRequestAmino; +} +/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ +export interface QueryAllowedDenomsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponse { + /** + * allowed_denoms is a list of coin denoms allowed to use in the ask price of + * sell orders. + */ + allowedDenoms: AllowedDenom[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponse; +} +export interface QueryAllowedDenomsResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; + value: Uint8Array; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponseAmino { + /** + * allowed_denoms is a list of coin denoms allowed to use in the ask price of + * sell orders. + */ + allowed_denoms?: AllowedDenomAmino[]; + /** pagination defines an optional pagination for the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowedDenomsResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; + value: QueryAllowedDenomsResponseAmino; +} +/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ +export interface QueryAllowedDenomsResponseSDKType { + allowed_denoms: AllowedDenomSDKType[]; + pagination?: PageResponseSDKType; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfo { + /** id is the unique ID of sell order. */ + id: bigint; + /** seller is the address of the account that is selling credits. */ + seller: string; + /** batch_denom is denom of the credit batch being sold. */ + batchDenom: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity: string; + /** ask_denom is the denom used in the ask price of the sell order. */ + askDenom: string; + /** + * ask_amount is the amount that the seller is asking for each credit unit of + * the batch. Each credit unit of the batch will be sold for at least the + * ask_amount. + */ + askAmount: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; +} +export interface SellOrderInfoProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; + value: Uint8Array; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfoAmino { + /** id is the unique ID of sell order. */ + id?: string; + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** batch_denom is denom of the credit batch being sold. */ + batch_denom?: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity?: string; + /** ask_denom is the denom used in the ask price of the sell order. */ + ask_denom?: string; + /** + * ask_amount is the amount that the seller is asking for each credit unit of + * the batch. Each credit unit of the batch will be sold for at least the + * ask_amount. + */ + ask_amount?: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; +} +export interface SellOrderInfoAminoMsg { + type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; + value: SellOrderInfoAmino; +} +/** SellOrderInfo is the human-readable sell order information. */ +export interface SellOrderInfoSDKType { + id: bigint; + seller: string; + batch_denom: string; + quantity: string; + ask_denom: string; + ask_amount: string; + disable_auto_retire: boolean; + expiration?: Date; +} +function createBaseQuerySellOrderRequest(): QuerySellOrderRequest { + return { + sellOrderId: BigInt(0) + }; +} +export const QuerySellOrderRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + encode(message: QuerySellOrderRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrderRequest { + const message = createBaseQuerySellOrderRequest(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: QuerySellOrderRequestAmino): QuerySellOrderRequest { + const message = createBaseQuerySellOrderRequest(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: QuerySellOrderRequest): QuerySellOrderRequestAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrderRequestAminoMsg): QuerySellOrderRequest { + return QuerySellOrderRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrderRequestProtoMsg): QuerySellOrderRequest { + return QuerySellOrderRequest.decode(message.value); + }, + toProto(message: QuerySellOrderRequest): Uint8Array { + return QuerySellOrderRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", + value: QuerySellOrderRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrderResponse(): QuerySellOrderResponse { + return { + sellOrder: undefined + }; +} +export const QuerySellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + encode(message: QuerySellOrderResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrder !== undefined) { + SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrder = SellOrderInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrderResponse { + const message = createBaseQuerySellOrderResponse(); + message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? SellOrderInfo.fromPartial(object.sellOrder) : undefined; + return message; + }, + fromAmino(object: QuerySellOrderResponseAmino): QuerySellOrderResponse { + const message = createBaseQuerySellOrderResponse(); + if (object.sell_order !== undefined && object.sell_order !== null) { + message.sellOrder = SellOrderInfo.fromAmino(object.sell_order); + } + return message; + }, + toAmino(message: QuerySellOrderResponse): QuerySellOrderResponseAmino { + const obj: any = {}; + obj.sell_order = message.sellOrder ? SellOrderInfo.toAmino(message.sellOrder) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrderResponseAminoMsg): QuerySellOrderResponse { + return QuerySellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrderResponseProtoMsg): QuerySellOrderResponse { + return QuerySellOrderResponse.decode(message.value); + }, + toProto(message: QuerySellOrderResponse): Uint8Array { + return QuerySellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", + value: QuerySellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersRequest(): QuerySellOrdersRequest { + return { + pagination: undefined + }; +} +export const QuerySellOrdersRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + encode(message: QuerySellOrdersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersRequest { + const message = createBaseQuerySellOrdersRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersRequestAmino): QuerySellOrdersRequest { + const message = createBaseQuerySellOrdersRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersRequest): QuerySellOrdersRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersRequestAminoMsg): QuerySellOrdersRequest { + return QuerySellOrdersRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersRequestProtoMsg): QuerySellOrdersRequest { + return QuerySellOrdersRequest.decode(message.value); + }, + toProto(message: QuerySellOrdersRequest): Uint8Array { + return QuerySellOrdersRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", + value: QuerySellOrdersRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersResponse(): QuerySellOrdersResponse { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + encode(message: QuerySellOrdersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersResponse { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersResponseAmino): QuerySellOrdersResponse { + const message = createBaseQuerySellOrdersResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersResponse): QuerySellOrdersResponseAmino { + const obj: any = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersResponseAminoMsg): QuerySellOrdersResponse { + return QuerySellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersResponseProtoMsg): QuerySellOrdersResponse { + return QuerySellOrdersResponse.decode(message.value); + }, + toProto(message: QuerySellOrdersResponse): Uint8Array { + return QuerySellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", + value: QuerySellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchRequest(): QuerySellOrdersByBatchRequest { + return { + batchDenom: "", + pagination: undefined + }; +} +export const QuerySellOrdersByBatchRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + encode(message: QuerySellOrdersByBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersByBatchRequest { + const message = createBaseQuerySellOrdersByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersByBatchRequestAmino): QuerySellOrdersByBatchRequest { + const message = createBaseQuerySellOrdersByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersByBatchRequestAminoMsg): QuerySellOrdersByBatchRequest { + return QuerySellOrdersByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersByBatchRequestProtoMsg): QuerySellOrdersByBatchRequest { + return QuerySellOrdersByBatchRequest.decode(message.value); + }, + toProto(message: QuerySellOrdersByBatchRequest): Uint8Array { + return QuerySellOrdersByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", + value: QuerySellOrdersByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersByBatchResponse(): QuerySellOrdersByBatchResponse { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersByBatchResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + encode(message: QuerySellOrdersByBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersByBatchResponse { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersByBatchResponseAmino): QuerySellOrdersByBatchResponse { + const message = createBaseQuerySellOrdersByBatchResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseAmino { + const obj: any = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersByBatchResponseAminoMsg): QuerySellOrdersByBatchResponse { + return QuerySellOrdersByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersByBatchResponseProtoMsg): QuerySellOrdersByBatchResponse { + return QuerySellOrdersByBatchResponse.decode(message.value); + }, + toProto(message: QuerySellOrdersByBatchResponse): Uint8Array { + return QuerySellOrdersByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", + value: QuerySellOrdersByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerRequest(): QuerySellOrdersBySellerRequest { + return { + seller: "", + pagination: undefined + }; +} +export const QuerySellOrdersBySellerRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + encode(message: QuerySellOrdersBySellerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersBySellerRequest { + const message = createBaseQuerySellOrdersBySellerRequest(); + message.seller = object.seller ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersBySellerRequestAmino): QuerySellOrdersBySellerRequest { + const message = createBaseQuerySellOrdersBySellerRequest(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestAmino { + const obj: any = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersBySellerRequestAminoMsg): QuerySellOrdersBySellerRequest { + return QuerySellOrdersBySellerRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersBySellerRequestProtoMsg): QuerySellOrdersBySellerRequest { + return QuerySellOrdersBySellerRequest.decode(message.value); + }, + toProto(message: QuerySellOrdersBySellerRequest): Uint8Array { + return QuerySellOrdersBySellerRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", + value: QuerySellOrdersBySellerRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySellOrdersBySellerResponse(): QuerySellOrdersBySellerResponse { + return { + sellOrders: [], + pagination: undefined + }; +} +export const QuerySellOrdersBySellerResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + encode(message: QuerySellOrdersBySellerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.sellOrders) { + SellOrderInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySellOrdersBySellerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySellOrdersBySellerResponse { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QuerySellOrdersBySellerResponseAmino): QuerySellOrdersBySellerResponse { + const message = createBaseQuerySellOrdersBySellerResponse(); + message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseAmino { + const obj: any = {}; + if (message.sellOrders) { + obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); + } else { + obj.sell_orders = message.sellOrders; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QuerySellOrdersBySellerResponseAminoMsg): QuerySellOrdersBySellerResponse { + return QuerySellOrdersBySellerResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySellOrdersBySellerResponseProtoMsg): QuerySellOrdersBySellerResponse { + return QuerySellOrdersBySellerResponse.decode(message.value); + }, + toProto(message: QuerySellOrdersBySellerResponse): Uint8Array { + return QuerySellOrdersBySellerResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", + value: QuerySellOrdersBySellerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsRequest(): QueryAllowedDenomsRequest { + return { + pagination: undefined + }; +} +export const QueryAllowedDenomsRequest = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + encode(message: QueryAllowedDenomsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowedDenomsRequest { + const message = createBaseQueryAllowedDenomsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowedDenomsRequestAmino): QueryAllowedDenomsRequest { + const message = createBaseQueryAllowedDenomsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowedDenomsRequestAminoMsg): QueryAllowedDenomsRequest { + return QueryAllowedDenomsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedDenomsRequestProtoMsg): QueryAllowedDenomsRequest { + return QueryAllowedDenomsRequest.decode(message.value); + }, + toProto(message: QueryAllowedDenomsRequest): Uint8Array { + return QueryAllowedDenomsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", + value: QueryAllowedDenomsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedDenomsResponse(): QueryAllowedDenomsResponse { + return { + allowedDenoms: [], + pagination: undefined + }; +} +export const QueryAllowedDenomsResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + encode(message: QueryAllowedDenomsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowedDenoms) { + AllowedDenom.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedDenomsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowedDenomsResponse { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowedDenomsResponseAmino): QueryAllowedDenomsResponse { + const message = createBaseQueryAllowedDenomsResponse(); + message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseAmino { + const obj: any = {}; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); + } else { + obj.allowed_denoms = message.allowedDenoms; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowedDenomsResponseAminoMsg): QueryAllowedDenomsResponse { + return QueryAllowedDenomsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedDenomsResponseProtoMsg): QueryAllowedDenomsResponse { + return QueryAllowedDenomsResponse.decode(message.value); + }, + toProto(message: QueryAllowedDenomsResponse): Uint8Array { + return QueryAllowedDenomsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", + value: QueryAllowedDenomsResponse.encode(message).finish() + }; + } +}; +function createBaseSellOrderInfo(): SellOrderInfo { + return { + id: BigInt(0), + seller: "", + batchDenom: "", + quantity: "", + askDenom: "", + askAmount: "", + disableAutoRetire: false, + expiration: undefined + }; +} +export const SellOrderInfo = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + encode(message: SellOrderInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller !== "") { + writer.uint32(18).string(message.seller); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.askDenom !== "") { + writer.uint32(42).string(message.askDenom); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrderInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.askDenom = reader.string(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SellOrderInfo { + const message = createBaseSellOrderInfo(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askDenom = object.askDenom ?? ""; + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object: SellOrderInfoAmino): SellOrderInfo { + const message = createBaseSellOrderInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_denom !== undefined && object.ask_denom !== null) { + message.askDenom = object.ask_denom; + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message: SellOrderInfo): SellOrderInfoAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object: SellOrderInfoAminoMsg): SellOrderInfo { + return SellOrderInfo.fromAmino(object.value); + }, + fromProtoMsg(message: SellOrderInfoProtoMsg): SellOrderInfo { + return SellOrderInfo.decode(message.value); + }, + toProto(message: SellOrderInfo): Uint8Array { + return SellOrderInfo.encode(message).finish(); + }, + toProtoMsg(message: SellOrderInfo): SellOrderInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", + value: SellOrderInfo.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/state.ts b/packages/api/src/regen/ecocredit/marketplace/v1/state.ts new file mode 100644 index 00000000..c29975e8 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/state.ts @@ -0,0 +1,618 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers"; +/** SellOrder represents the information for a sell order. */ +export interface SellOrder { + /** id is the unique ID of sell order. */ + id: bigint; + /** seller is the address of the account that is selling credits. */ + seller: Uint8Array; + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a sell order to a credit batch. + */ + batchKey: bigint; + /** quantity is the decimal quantity of credits being sold. */ + quantity: string; + /** + * market_id is the market in which this sell order exists and specifies + * the bank_denom that ask_amount corresponds to forming the ask_price. + */ + marketId: bigint; + /** + * ask_amount is the integer amount (encoded as a string) that the seller is + * asking for each credit unit of the batch. Each credit unit of the batch + * will be sold for at least the ask_amount. The ask_amount corresponds to the + * Market.denom to form the ask price. + */ + askAmount: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; + /** + * maker indicates that this is a maker order, meaning that when it hit + * the order book, there were no matching buy orders. + */ + maker: boolean; +} +export interface SellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder"; + value: Uint8Array; +} +/** SellOrder represents the information for a sell order. */ +export interface SellOrderAmino { + /** id is the unique ID of sell order. */ + id?: string; + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a sell order to a credit batch. + */ + batch_key?: string; + /** quantity is the decimal quantity of credits being sold. */ + quantity?: string; + /** + * market_id is the market in which this sell order exists and specifies + * the bank_denom that ask_amount corresponds to forming the ask_price. + */ + market_id?: string; + /** + * ask_amount is the integer amount (encoded as a string) that the seller is + * asking for each credit unit of the batch. Each credit unit of the batch + * will be sold for at least the ask_amount. The ask_amount corresponds to the + * Market.denom to form the ask price. + */ + ask_amount?: string; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; + /** + * maker indicates that this is a maker order, meaning that when it hit + * the order book, there were no matching buy orders. + */ + maker?: boolean; +} +export interface SellOrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.SellOrder"; + value: SellOrderAmino; +} +/** SellOrder represents the information for a sell order. */ +export interface SellOrderSDKType { + id: bigint; + seller: Uint8Array; + batch_key: bigint; + quantity: string; + market_id: bigint; + ask_amount: string; + disable_auto_retire: boolean; + expiration?: Date; + maker: boolean; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenom { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface AllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom"; + value: Uint8Array; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenomAmino { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface AllowedDenomAminoMsg { + type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; + value: AllowedDenomAmino; +} +/** AllowedDenom represents the information for an allowed ask/bid denom. */ +export interface AllowedDenomSDKType { + bank_denom: string; + display_denom: string; + exponent: number; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface Market { + /** id is the unique ID of the market. */ + id: bigint; + /** credit_type_abbrev is the abbreviation of the credit type. */ + creditTypeAbbrev: string; + /** bank_denom is an allowed bank denom. */ + bankDenom: string; + /** + * precision_modifier is an optional modifier used to convert arbitrary + * precision integer bank amounts to uint32 values used for sorting in the + * order book. Given an arbitrary precision integer x, its uint32 conversion + * will be x / 10^precision_modifier using round half away from zero + * rounding. + * + * uint32 values range from 0 to 4,294,967,295. + * This allows for a full 9 digits of precision. In most real world markets + * this amount of precision is sufficient and most common downside - + * that some orders with very miniscule price differences may be ordered + * equivalently (because of rounding) - is acceptable. + * Note that this rounding will not affect settlement price which will + * always be done exactly. + * + * Given a USD stable coin with 6 decimal digits, a precision_modifier + * of 0 is probably acceptable as long as credits are always less than + * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 + * in this case), prices can rise up to $4,294,000/unit. Either scenario + * is probably quite acceptable given that carbon prices are unlikely to + * rise above $1000/ton any time in the near future. + * + * If credit prices, exceed the maximum range of uint32 with this + * precision_modifier, orders with high prices will fail and governance + * will need to adjust precision_modifier to allow for higher prices in + * exchange for less precision at the lower end. + */ + precisionModifier: number; +} +export interface MarketProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Market"; + value: Uint8Array; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface MarketAmino { + /** id is the unique ID of the market. */ + id?: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + credit_type_abbrev?: string; + /** bank_denom is an allowed bank denom. */ + bank_denom?: string; + /** + * precision_modifier is an optional modifier used to convert arbitrary + * precision integer bank amounts to uint32 values used for sorting in the + * order book. Given an arbitrary precision integer x, its uint32 conversion + * will be x / 10^precision_modifier using round half away from zero + * rounding. + * + * uint32 values range from 0 to 4,294,967,295. + * This allows for a full 9 digits of precision. In most real world markets + * this amount of precision is sufficient and most common downside - + * that some orders with very miniscule price differences may be ordered + * equivalently (because of rounding) - is acceptable. + * Note that this rounding will not affect settlement price which will + * always be done exactly. + * + * Given a USD stable coin with 6 decimal digits, a precision_modifier + * of 0 is probably acceptable as long as credits are always less than + * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 + * in this case), prices can rise up to $4,294,000/unit. Either scenario + * is probably quite acceptable given that carbon prices are unlikely to + * rise above $1000/ton any time in the near future. + * + * If credit prices, exceed the maximum range of uint32 with this + * precision_modifier, orders with high prices will fail and governance + * will need to adjust precision_modifier to allow for higher prices in + * exchange for less precision at the lower end. + */ + precision_modifier?: number; +} +export interface MarketAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Market"; + value: MarketAmino; +} +/** + * Market describes a distinctly processed market between a credit type and + * allowed bank denom. Each market has its own precision in the order book + * and is processed independently of other markets. Governance must enable + * markets one by one. Every additional enabled market potentially adds more + * processing overhead to the blockchain and potentially weakens liquidity in + * competing markets. For instance, enabling side by side USD/Carbon and + * EUR/Carbon markets may have the end result that each market individually has + * less liquidity and longer settlement times. Such decisions should be taken + * with care. + */ +export interface MarketSDKType { + id: bigint; + credit_type_abbrev: string; + bank_denom: string; + precision_modifier: number; +} +function createBaseSellOrder(): SellOrder { + return { + id: BigInt(0), + seller: new Uint8Array(), + batchKey: BigInt(0), + quantity: "", + marketId: BigInt(0), + askAmount: "", + disableAutoRetire: false, + expiration: undefined, + maker: false + }; +} +export const SellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + encode(message: SellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.seller.length !== 0) { + writer.uint32(18).bytes(message.seller); + } + if (message.batchKey !== BigInt(0)) { + writer.uint32(24).uint64(message.batchKey); + } + if (message.quantity !== "") { + writer.uint32(34).string(message.quantity); + } + if (message.marketId !== BigInt(0)) { + writer.uint32(40).uint64(message.marketId); + } + if (message.askAmount !== "") { + writer.uint32(50).string(message.askAmount); + } + if (message.disableAutoRetire === true) { + writer.uint32(56).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); + } + if (message.maker === true) { + writer.uint32(80).bool(message.maker); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SellOrder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.seller = reader.bytes(); + break; + case 3: + message.batchKey = reader.uint64(); + break; + case 4: + message.quantity = reader.string(); + break; + case 5: + message.marketId = reader.uint64(); + break; + case 6: + message.askAmount = reader.string(); + break; + case 7: + message.disableAutoRetire = reader.bool(); + break; + case 9: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 10: + message.maker = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SellOrder { + const message = createBaseSellOrder(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.seller = object.seller ?? new Uint8Array(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.askAmount = object.askAmount ?? ""; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + message.maker = object.maker ?? false; + return message; + }, + fromAmino(object: SellOrderAmino): SellOrder { + const message = createBaseSellOrder(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.seller !== undefined && object.seller !== null) { + message.seller = bytesFromBase64(object.seller); + } + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.ask_amount !== undefined && object.ask_amount !== null) { + message.askAmount = object.ask_amount; + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + if (object.maker !== undefined && object.maker !== null) { + message.maker = object.maker; + } + return message; + }, + toAmino(message: SellOrder): SellOrderAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.seller = message.seller ? base64FromBytes(message.seller) : undefined; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + obj.maker = message.maker === false ? undefined : message.maker; + return obj; + }, + fromAminoMsg(object: SellOrderAminoMsg): SellOrder { + return SellOrder.fromAmino(object.value); + }, + fromProtoMsg(message: SellOrderProtoMsg): SellOrder { + return SellOrder.decode(message.value); + }, + toProto(message: SellOrder): Uint8Array { + return SellOrder.encode(message).finish(); + }, + toProtoMsg(message: SellOrder): SellOrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", + value: SellOrder.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom(): AllowedDenom { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const AllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + encode(message: AllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowedDenom { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object: AllowedDenomAmino): AllowedDenom { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message: AllowedDenom): AllowedDenomAmino { + const obj: any = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom { + return AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom { + return AllowedDenom.decode(message.value); + }, + toProto(message: AllowedDenom): Uint8Array { + return AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", + value: AllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMarket(): Market { + return { + id: BigInt(0), + creditTypeAbbrev: "", + bankDenom: "", + precisionModifier: 0 + }; +} +export const Market = { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + encode(message: Market, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== BigInt(0)) { + writer.uint32(8).uint64(message.id); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(18).string(message.creditTypeAbbrev); + } + if (message.bankDenom !== "") { + writer.uint32(26).string(message.bankDenom); + } + if (message.precisionModifier !== 0) { + writer.uint32(32).uint32(message.precisionModifier); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Market { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMarket(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.creditTypeAbbrev = reader.string(); + break; + case 3: + message.bankDenom = reader.string(); + break; + case 4: + message.precisionModifier = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Market { + const message = createBaseMarket(); + message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.precisionModifier = object.precisionModifier ?? 0; + return message; + }, + fromAmino(object: MarketAmino): Market { + const message = createBaseMarket(); + if (object.id !== undefined && object.id !== null) { + message.id = BigInt(object.id); + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.precision_modifier !== undefined && object.precision_modifier !== null) { + message.precisionModifier = object.precision_modifier; + } + return message; + }, + toAmino(message: Market): MarketAmino { + const obj: any = {}; + obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; + return obj; + }, + fromAminoMsg(object: MarketAminoMsg): Market { + return Market.fromAmino(object.value); + }, + fromProtoMsg(message: MarketProtoMsg): Market { + return Market.decode(message.value); + }, + toProto(message: Market): Uint8Array { + return Market.encode(message).finish(); + }, + toProtoMsg(message: Market): MarketProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Market", + value: Market.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/tx.amino.ts b/packages/api/src/regen/ecocredit/marketplace/v1/tx.amino.ts new file mode 100644 index 00000000..1bfbb8c3 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/tx.amino.ts @@ -0,0 +1,34 @@ +//@ts-nocheck +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.marketplace.v1.MsgSell": { + aminoType: "regen.marketplace/MsgSell", + toAmino: MsgSell.toAmino, + fromAmino: MsgSell.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { + aminoType: "regen.marketplace/MsgUpdateSellOrders", + toAmino: MsgUpdateSellOrders.toAmino, + fromAmino: MsgUpdateSellOrders.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { + aminoType: "regen.marketplace/MsgCancelSellOrder", + toAmino: MsgCancelSellOrder.toAmino, + fromAmino: MsgCancelSellOrder.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { + aminoType: "regen.marketplace/MsgBuyDirect", + toAmino: MsgBuyDirect.toAmino, + fromAmino: MsgBuyDirect.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { + aminoType: "regen.marketplace/MsgAddAllowedDenom", + toAmino: MsgAddAllowedDenom.toAmino, + fromAmino: MsgAddAllowedDenom.fromAmino + }, + "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { + aminoType: "regen.marketplace/MsgRemoveAllowedDenom", + toAmino: MsgRemoveAllowedDenom.toAmino, + fromAmino: MsgRemoveAllowedDenom.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/tx.registry.ts b/packages/api/src/regen/ecocredit/marketplace/v1/tx.registry.ts new file mode 100644 index 00000000..fdecb9fd --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/tx.registry.ts @@ -0,0 +1,125 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.marketplace.v1.MsgSell", MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", MsgRemoveAllowedDenom]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + sell(value: MsgSell) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.encode(value).finish() + }; + }, + updateSellOrders(value: MsgUpdateSellOrders) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.encode(value).finish() + }; + }, + cancelSellOrder(value: MsgCancelSellOrder) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.encode(value).finish() + }; + }, + buyDirect(value: MsgBuyDirect) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.encode(value).finish() + }; + }, + addAllowedDenom(value: MsgAddAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.encode(value).finish() + }; + }, + removeAllowedDenom(value: MsgRemoveAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.encode(value).finish() + }; + } + }, + withTypeUrl: { + sell(value: MsgSell) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value + }; + }, + updateSellOrders(value: MsgUpdateSellOrders) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value + }; + }, + cancelSellOrder(value: MsgCancelSellOrder) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value + }; + }, + buyDirect(value: MsgBuyDirect) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value + }; + }, + addAllowedDenom(value: MsgAddAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value + }; + }, + removeAllowedDenom(value: MsgRemoveAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value + }; + } + }, + fromPartial: { + sell(value: MsgSell) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.fromPartial(value) + }; + }, + updateSellOrders(value: MsgUpdateSellOrders) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.fromPartial(value) + }; + }, + cancelSellOrder(value: MsgCancelSellOrder) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.fromPartial(value) + }; + }, + buyDirect(value: MsgBuyDirect) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.fromPartial(value) + }; + }, + addAllowedDenom(value: MsgAddAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.fromPartial(value) + }; + }, + removeAllowedDenom(value: MsgRemoveAllowedDenom) { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts b/packages/api/src/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..c0b34d39 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/tx.rpc.msg.ts @@ -0,0 +1,70 @@ +//@ts-nocheck +import { Rpc } from "../../../../helpers"; +import { BinaryReader } from "../../../../binary"; +import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; +/** Msg is the regen.ecocredit.marketplace.v1 Msg service. */ +export interface Msg { + /** Sell creates new sell orders. */ + sell(request: MsgSell): Promise; + /** UpdateSellOrders updates existing sell orders. */ + updateSellOrders(request: MsgUpdateSellOrders): Promise; + /** CancelSellOrder cancels a sell order and returns the credits from escrow. */ + cancelSellOrder(request: MsgCancelSellOrder): Promise; + /** BuyDirect purchases credits directly from the specified sell order. */ + buyDirect(request: MsgBuyDirect): Promise; + /** + * AddAllowedDenom is a governance method that allows the addition of + * new allowed denom. + * + * Since Revision 1 + */ + addAllowedDenom(request: MsgAddAllowedDenom): Promise; + /** + * RemoveAllowedDenom is a governance method that removes allowed denom. + * + * Since Revision 1 + */ + removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.sell = this.sell.bind(this); + this.updateSellOrders = this.updateSellOrders.bind(this); + this.cancelSellOrder = this.cancelSellOrder.bind(this); + this.buyDirect = this.buyDirect.bind(this); + this.addAllowedDenom = this.addAllowedDenom.bind(this); + this.removeAllowedDenom = this.removeAllowedDenom.bind(this); + } + sell(request: MsgSell): Promise { + const data = MsgSell.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); + return promise.then(data => MsgSellResponse.decode(new BinaryReader(data))); + } + updateSellOrders(request: MsgUpdateSellOrders): Promise { + const data = MsgUpdateSellOrders.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); + return promise.then(data => MsgUpdateSellOrdersResponse.decode(new BinaryReader(data))); + } + cancelSellOrder(request: MsgCancelSellOrder): Promise { + const data = MsgCancelSellOrder.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); + return promise.then(data => MsgCancelSellOrderResponse.decode(new BinaryReader(data))); + } + buyDirect(request: MsgBuyDirect): Promise { + const data = MsgBuyDirect.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); + return promise.then(data => MsgBuyDirectResponse.decode(new BinaryReader(data))); + } + addAllowedDenom(request: MsgAddAllowedDenom): Promise { + const data = MsgAddAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); + return promise.then(data => MsgAddAllowedDenomResponse.decode(new BinaryReader(data))); + } + removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise { + const data = MsgRemoveAllowedDenom.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); + return promise.then(data => MsgRemoveAllowedDenomResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/tx.ts b/packages/api/src/regen/ecocredit/marketplace/v1/tx.ts new file mode 100644 index 00000000..0b937275 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/tx.ts @@ -0,0 +1,1735 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSell { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** orders are the sell orders being created. */ + orders: MsgSell_Order[]; +} +export interface MsgSellProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell"; + value: Uint8Array; +} +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSellAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** orders are the sell orders being created. */ + orders?: MsgSell_OrderAmino[]; +} +export interface MsgSellAminoMsg { + type: "regen.marketplace/MsgSell"; + value: MsgSellAmino; +} +/** MsgSell is the Msg/Sell request type. */ +export interface MsgSellSDKType { + seller: string; + orders: MsgSell_OrderSDKType[]; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_Order { + /** batch_denom is the credit batch being sold. */ + batchDenom: string; + /** + * quantity is the quantity of credits being sold from this batch. If it is + * less then the balance of credits the owner has available at the time this + * sell order is matched, the quantity will be adjusted downwards to the + * owner's balance. However, if the balance of credits is less than this + * quantity at the time the sell order is created, the operation will fail. + */ + quantity: string; + /** + * ask_price is the price the seller is asking for each unit of the + * batch_denom. Each credit unit of the batch will be sold for at least the + * ask_price or more. + */ + askPrice?: Coin; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disableAutoRetire: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: Date; +} +export interface MsgSell_OrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Order"; + value: Uint8Array; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_OrderAmino { + /** batch_denom is the credit batch being sold. */ + batch_denom?: string; + /** + * quantity is the quantity of credits being sold from this batch. If it is + * less then the balance of credits the owner has available at the time this + * sell order is matched, the quantity will be adjusted downwards to the + * owner's balance. However, if the balance of credits is less than this + * quantity at the time the sell order is created, the operation will fail. + */ + quantity?: string; + /** + * ask_price is the price the seller is asking for each unit of the + * batch_denom. Each credit unit of the batch will be sold for at least the + * ask_price or more. + */ + ask_price?: CoinAmino; + /** + * disable_auto_retire disables auto-retirement of credits which allows a + * buyer to disable auto-retirement in their buy order enabling them to + * resell the credits to another buyer. + */ + disable_auto_retire?: boolean; + /** + * expiration is an optional timestamp when the sell order expires. When the + * expiration time is reached, the sell order is removed from state. + */ + expiration?: string; +} +export interface MsgSell_OrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Order"; + value: MsgSell_OrderAmino; +} +/** Order is the content of a new sell order. */ +export interface MsgSell_OrderSDKType { + batch_denom: string; + quantity: string; + ask_price?: CoinSDKType; + disable_auto_retire: boolean; + expiration?: Date; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponse { + /** sell_order_ids are the sell order IDs of the newly created sell orders. */ + sellOrderIds: bigint[]; +} +export interface MsgSellResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; + value: Uint8Array; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponseAmino { + /** sell_order_ids are the sell order IDs of the newly created sell orders. */ + sell_order_ids?: string[]; +} +export interface MsgSellResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; + value: MsgSellResponseAmino; +} +/** MsgSellResponse is the Msg/Sell response type. */ +export interface MsgSellResponseSDKType { + sell_order_ids: bigint[]; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrders { + /** seller is the address of the account that is selling credits. */ + seller: string; + /** updates are updates to existing sell orders. */ + updates: MsgUpdateSellOrders_Update[]; +} +export interface MsgUpdateSellOrdersProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders"; + value: Uint8Array; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrdersAmino { + /** seller is the address of the account that is selling credits. */ + seller?: string; + /** updates are updates to existing sell orders. */ + updates?: MsgUpdateSellOrders_UpdateAmino[]; +} +export interface MsgUpdateSellOrdersAminoMsg { + type: "regen.marketplace/MsgUpdateSellOrders"; + value: MsgUpdateSellOrdersAmino; +} +/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ +export interface MsgUpdateSellOrdersSDKType { + seller: string; + updates: MsgUpdateSellOrders_UpdateSDKType[]; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_Update { + /** sell_order_id is the ID of an existing sell order. */ + sellOrderId: bigint; + /** new_quantity is the updated quantity of credits available to sell. */ + newQuantity: string; + /** new_ask_price is the new ask price for this sell order */ + newAskPrice?: Coin; + /** + * disable_auto_retire updates the disable_auto_retire field in the sell + * order. + */ + disableAutoRetire: boolean; + /** + * new_expiration is an optional timestamp when the sell order expires. When + * the expiration time is reached, the sell order is removed from state. + */ + newExpiration?: Date; +} +export interface MsgUpdateSellOrders_UpdateProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Update"; + value: Uint8Array; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_UpdateAmino { + /** sell_order_id is the ID of an existing sell order. */ + sell_order_id?: string; + /** new_quantity is the updated quantity of credits available to sell. */ + new_quantity?: string; + /** new_ask_price is the new ask price for this sell order */ + new_ask_price?: CoinAmino; + /** + * disable_auto_retire updates the disable_auto_retire field in the sell + * order. + */ + disable_auto_retire?: boolean; + /** + * new_expiration is an optional timestamp when the sell order expires. When + * the expiration time is reached, the sell order is removed from state. + */ + new_expiration?: string; +} +export interface MsgUpdateSellOrders_UpdateAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Update"; + value: MsgUpdateSellOrders_UpdateAmino; +} +/** Update is an update to an existing sell order. */ +export interface MsgUpdateSellOrders_UpdateSDKType { + sell_order_id: bigint; + new_quantity: string; + new_ask_price?: CoinSDKType; + disable_auto_retire: boolean; + new_expiration?: Date; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponse {} +export interface MsgUpdateSellOrdersResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; + value: Uint8Array; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponseAmino {} +export interface MsgUpdateSellOrdersResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; + value: MsgUpdateSellOrdersResponseAmino; +} +/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ +export interface MsgUpdateSellOrdersResponseSDKType {} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrder { + /** + * seller is the address of the account that created the sell order and is + * therefore authorized to cancel the sell order. + */ + seller: string; + /** sell_order_id is the id of the seller order to cancel. */ + sellOrderId: bigint; +} +export interface MsgCancelSellOrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; + value: Uint8Array; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrderAmino { + /** + * seller is the address of the account that created the sell order and is + * therefore authorized to cancel the sell order. + */ + seller?: string; + /** sell_order_id is the id of the seller order to cancel. */ + sell_order_id?: string; +} +export interface MsgCancelSellOrderAminoMsg { + type: "regen.marketplace/MsgCancelSellOrder"; + value: MsgCancelSellOrderAmino; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ +export interface MsgCancelSellOrderSDKType { + seller: string; + sell_order_id: bigint; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponse {} +export interface MsgCancelSellOrderResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; + value: Uint8Array; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponseAmino {} +export interface MsgCancelSellOrderResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; + value: MsgCancelSellOrderResponseAmino; +} +/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ +export interface MsgCancelSellOrderResponseSDKType {} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirect { + /** buyer is the address of the account that is buying credits. */ + buyer: string; + /** orders is a list of orders for ecocredits. */ + orders: MsgBuyDirect_Order[]; +} +export interface MsgBuyDirectProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect"; + value: Uint8Array; +} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirectAmino { + /** buyer is the address of the account that is buying credits. */ + buyer?: string; + /** orders is a list of orders for ecocredits. */ + orders?: MsgBuyDirect_OrderAmino[]; +} +export interface MsgBuyDirectAminoMsg { + type: "regen.marketplace/MsgBuyDirect"; + value: MsgBuyDirectAmino; +} +/** MsgBuyDirect is the Msg/BuyDirect request type. */ +export interface MsgBuyDirectSDKType { + buyer: string; + orders: MsgBuyDirect_OrderSDKType[]; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_Order { + /** + * sell_order_id is the sell order ID against which the buyer is trying + * to buy. + */ + sellOrderId: bigint; + /** quantity is the quantity of credits to buy. */ + quantity: string; + /** bid_price is the price the buyer is willing to pay per credit. */ + bidPrice?: Coin; + /** + * disable_auto_retire allows auto-retirement to be disabled. If it is set + * to true the credits will not auto-retire and can be resold assuming that + * the corresponding sell order has auto-retirement disabled. If the sell + * order hasn't disabled auto-retirement and the buy order tries to disable + * it, that buy order will fail. + */ + disableAutoRetire: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if disable_auto_retire is false. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 1 + */ + retirementReason: string; +} +export interface MsgBuyDirect_OrderProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.Order"; + value: Uint8Array; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_OrderAmino { + /** + * sell_order_id is the sell order ID against which the buyer is trying + * to buy. + */ + sell_order_id?: string; + /** quantity is the quantity of credits to buy. */ + quantity?: string; + /** bid_price is the price the buyer is willing to pay per credit. */ + bid_price?: CoinAmino; + /** + * disable_auto_retire allows auto-retirement to be disabled. If it is set + * to true the credits will not auto-retire and can be resold assuming that + * the corresponding sell order has auto-retirement disabled. If the sell + * order hasn't disabled auto-retirement and the buy order tries to disable + * it, that buy order will fail. + */ + disable_auto_retire?: boolean; + /** + * retirement_jurisdiction is the optional retirement jurisdiction for the + * credits which will be used only if disable_auto_retire is false. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 1 + */ + retirement_reason?: string; +} +export interface MsgBuyDirect_OrderAminoMsg { + type: "/regen.ecocredit.marketplace.v1.Order"; + value: MsgBuyDirect_OrderAmino; +} +/** Order contains the information needed to purchase an ecocredit. */ +export interface MsgBuyDirect_OrderSDKType { + sell_order_id: bigint; + quantity: string; + bid_price?: CoinSDKType; + disable_auto_retire: boolean; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponse {} +export interface MsgBuyDirectResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; + value: Uint8Array; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponseAmino {} +export interface MsgBuyDirectResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; + value: MsgBuyDirectResponseAmino; +} +/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ +export interface MsgBuyDirectResponseSDKType {} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenom { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface MsgAddAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom"; + value: Uint8Array; +} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface MsgAddAllowedDenomAminoMsg { + type: "regen.marketplace/MsgAddAllowedDenom"; + value: MsgAddAllowedDenomAmino; +} +/** + * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomSDKType { + authority: string; + bank_denom: string; + display_denom: string; + exponent: number; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponse {} +export interface MsgAddAllowedDenomResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; + value: Uint8Array; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponseAmino {} +export interface MsgAddAllowedDenomResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; + value: MsgAddAllowedDenomResponseAmino; +} +/** + * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgAddAllowedDenomResponseSDKType {} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenom { + /** authority is the address of the governance account. */ + authority: string; + /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ + denom: string; +} +export interface MsgRemoveAllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ + denom?: string; +} +export interface MsgRemoveAllowedDenomAminoMsg { + type: "regen.marketplace/MsgRemoveAllowedDenom"; + value: MsgRemoveAllowedDenomAmino; +} +/** + * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomSDKType { + authority: string; + denom: string; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponse {} +export interface MsgRemoveAllowedDenomResponseProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponseAmino {} +export interface MsgRemoveAllowedDenomResponseAminoMsg { + type: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; + value: MsgRemoveAllowedDenomResponseAmino; +} +/** + * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. + * + * Since Revision 1 + */ +export interface MsgRemoveAllowedDenomResponseSDKType {} +function createBaseMsgSell(): MsgSell { + return { + seller: "", + orders: [] + }; +} +export const MsgSell = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + encode(message: MsgSell, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.orders) { + MsgSell_Order.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.orders.push(MsgSell_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSell { + const message = createBaseMsgSell(); + message.seller = object.seller ?? ""; + message.orders = object.orders?.map(e => MsgSell_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgSellAmino): MsgSell { + const message = createBaseMsgSell(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.orders = object.orders?.map(e => MsgSell_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgSell): MsgSellAmino { + const obj: any = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.orders) { + obj.orders = message.orders.map(e => e ? MsgSell_Order.toAmino(e) : undefined); + } else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object: MsgSellAminoMsg): MsgSell { + return MsgSell.fromAmino(object.value); + }, + toAminoMsg(message: MsgSell): MsgSellAminoMsg { + return { + type: "regen.marketplace/MsgSell", + value: MsgSell.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSellProtoMsg): MsgSell { + return MsgSell.decode(message.value); + }, + toProto(message: MsgSell): Uint8Array { + return MsgSell.encode(message).finish(); + }, + toProtoMsg(message: MsgSell): MsgSellProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", + value: MsgSell.encode(message).finish() + }; + } +}; +function createBaseMsgSell_Order(): MsgSell_Order { + return { + batchDenom: "", + quantity: "", + askPrice: undefined, + disableAutoRetire: false, + expiration: undefined + }; +} +export const MsgSell_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message: MsgSell_Order, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.quantity !== "") { + writer.uint32(18).string(message.quantity); + } + if (message.askPrice !== undefined) { + Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.expiration !== undefined) { + Timestamp.encode(toTimestamp(message.expiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSell_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.quantity = reader.string(); + break; + case 3: + message.askPrice = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSell_Order { + const message = createBaseMsgSell_Order(); + message.batchDenom = object.batchDenom ?? ""; + message.quantity = object.quantity ?? ""; + message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? Coin.fromPartial(object.askPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.expiration = object.expiration ?? undefined; + return message; + }, + fromAmino(object: MsgSell_OrderAmino): MsgSell_Order { + const message = createBaseMsgSell_Order(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = Coin.fromAmino(object.ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.expiration !== undefined && object.expiration !== null) { + message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); + } + return message; + }, + toAmino(message: MsgSell_Order): MsgSell_OrderAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.ask_price = message.askPrice ? Coin.toAmino(message.askPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgSell_OrderAminoMsg): MsgSell_Order { + return MsgSell_Order.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSell_OrderProtoMsg): MsgSell_Order { + return MsgSell_Order.decode(message.value); + }, + toProto(message: MsgSell_Order): Uint8Array { + return MsgSell_Order.encode(message).finish(); + }, + toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: MsgSell_Order.encode(message).finish() + }; + } +}; +function createBaseMsgSellResponse(): MsgSellResponse { + return { + sellOrderIds: [] + }; +} +export const MsgSellResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + encode(message: MsgSellResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + writer.uint32(10).fork(); + for (const v of message.sellOrderIds) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSellResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.sellOrderIds.push(reader.uint64()); + } + } else { + message.sellOrderIds.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSellResponse { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object: MsgSellResponseAmino): MsgSellResponse { + const message = createBaseMsgSellResponse(); + message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message: MsgSellResponse): MsgSellResponseAmino { + const obj: any = {}; + if (message.sellOrderIds) { + obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); + } else { + obj.sell_order_ids = message.sellOrderIds; + } + return obj; + }, + fromAminoMsg(object: MsgSellResponseAminoMsg): MsgSellResponse { + return MsgSellResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSellResponseProtoMsg): MsgSellResponse { + return MsgSellResponse.decode(message.value); + }, + toProto(message: MsgSellResponse): Uint8Array { + return MsgSellResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", + value: MsgSellResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders(): MsgUpdateSellOrders { + return { + seller: "", + updates: [] + }; +} +export const MsgUpdateSellOrders = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + encode(message: MsgUpdateSellOrders, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + for (const v of message.updates) { + MsgUpdateSellOrders_Update.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.updates.push(MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateSellOrders { + const message = createBaseMsgUpdateSellOrders(); + message.seller = object.seller ?? ""; + message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgUpdateSellOrdersAmino): MsgUpdateSellOrders { + const message = createBaseMsgUpdateSellOrders(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAmino { + const obj: any = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + if (message.updates) { + obj.updates = message.updates.map(e => e ? MsgUpdateSellOrders_Update.toAmino(e) : undefined); + } else { + obj.updates = message.updates; + } + return obj; + }, + fromAminoMsg(object: MsgUpdateSellOrdersAminoMsg): MsgUpdateSellOrders { + return MsgUpdateSellOrders.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAminoMsg { + return { + type: "regen.marketplace/MsgUpdateSellOrders", + value: MsgUpdateSellOrders.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateSellOrdersProtoMsg): MsgUpdateSellOrders { + return MsgUpdateSellOrders.decode(message.value); + }, + toProto(message: MsgUpdateSellOrders): Uint8Array { + return MsgUpdateSellOrders.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", + value: MsgUpdateSellOrders.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrders_Update(): MsgUpdateSellOrders_Update { + return { + sellOrderId: BigInt(0), + newQuantity: "", + newAskPrice: undefined, + disableAutoRetire: false, + newExpiration: undefined + }; +} +export const MsgUpdateSellOrders_Update = { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + encode(message: MsgUpdateSellOrders_Update, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.sellOrderId); + } + if (message.newQuantity !== "") { + writer.uint32(18).string(message.newQuantity); + } + if (message.newAskPrice !== undefined) { + Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(32).bool(message.disableAutoRetire); + } + if (message.newExpiration !== undefined) { + Timestamp.encode(toTimestamp(message.newExpiration), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrders_Update(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sellOrderId = reader.uint64(); + break; + case 2: + message.newQuantity = reader.string(); + break; + case 3: + message.newAskPrice = Coin.decode(reader, reader.uint32()); + break; + case 4: + message.disableAutoRetire = reader.bool(); + break; + case 5: + message.newExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateSellOrders_Update { + const message = createBaseMsgUpdateSellOrders_Update(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.newQuantity = object.newQuantity ?? ""; + message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? Coin.fromPartial(object.newAskPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.newExpiration = object.newExpiration ?? undefined; + return message; + }, + fromAmino(object: MsgUpdateSellOrders_UpdateAmino): MsgUpdateSellOrders_Update { + const message = createBaseMsgUpdateSellOrders_Update(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.new_quantity !== undefined && object.new_quantity !== null) { + message.newQuantity = object.new_quantity; + } + if (object.new_ask_price !== undefined && object.new_ask_price !== null) { + message.newAskPrice = Coin.fromAmino(object.new_ask_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.new_expiration !== undefined && object.new_expiration !== null) { + message.newExpiration = fromTimestamp(Timestamp.fromAmino(object.new_expiration)); + } + return message; + }, + toAmino(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; + obj.new_ask_price = message.newAskPrice ? Coin.toAmino(message.newAskPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.new_expiration = message.newExpiration ? Timestamp.toAmino(toTimestamp(message.newExpiration)) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateSellOrders_UpdateAminoMsg): MsgUpdateSellOrders_Update { + return MsgUpdateSellOrders_Update.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateSellOrders_UpdateProtoMsg): MsgUpdateSellOrders_Update { + return MsgUpdateSellOrders_Update.decode(message.value); + }, + toProto(message: MsgUpdateSellOrders_Update): Uint8Array { + return MsgUpdateSellOrders_Update.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Update", + value: MsgUpdateSellOrders_Update.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateSellOrdersResponse(): MsgUpdateSellOrdersResponse { + return {}; +} +export const MsgUpdateSellOrdersResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + encode(_: MsgUpdateSellOrdersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateSellOrdersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateSellOrdersResponse { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + fromAmino(_: MsgUpdateSellOrdersResponseAmino): MsgUpdateSellOrdersResponse { + const message = createBaseMsgUpdateSellOrdersResponse(); + return message; + }, + toAmino(_: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateSellOrdersResponseAminoMsg): MsgUpdateSellOrdersResponse { + return MsgUpdateSellOrdersResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateSellOrdersResponseProtoMsg): MsgUpdateSellOrdersResponse { + return MsgUpdateSellOrdersResponse.decode(message.value); + }, + toProto(message: MsgUpdateSellOrdersResponse): Uint8Array { + return MsgUpdateSellOrdersResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", + value: MsgUpdateSellOrdersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrder(): MsgCancelSellOrder { + return { + seller: "", + sellOrderId: BigInt(0) + }; +} +export const MsgCancelSellOrder = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + encode(message: MsgCancelSellOrder, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.seller !== "") { + writer.uint32(10).string(message.seller); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seller = reader.string(); + break; + case 2: + message.sellOrderId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancelSellOrder { + const message = createBaseMsgCancelSellOrder(); + message.seller = object.seller ?? ""; + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MsgCancelSellOrderAmino): MsgCancelSellOrder { + const message = createBaseMsgCancelSellOrder(); + if (object.seller !== undefined && object.seller !== null) { + message.seller = object.seller; + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + return message; + }, + toAmino(message: MsgCancelSellOrder): MsgCancelSellOrderAmino { + const obj: any = {}; + obj.seller = message.seller === "" ? undefined : message.seller; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MsgCancelSellOrderAminoMsg): MsgCancelSellOrder { + return MsgCancelSellOrder.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderAminoMsg { + return { + type: "regen.marketplace/MsgCancelSellOrder", + value: MsgCancelSellOrder.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelSellOrderProtoMsg): MsgCancelSellOrder { + return MsgCancelSellOrder.decode(message.value); + }, + toProto(message: MsgCancelSellOrder): Uint8Array { + return MsgCancelSellOrder.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", + value: MsgCancelSellOrder.encode(message).finish() + }; + } +}; +function createBaseMsgCancelSellOrderResponse(): MsgCancelSellOrderResponse { + return {}; +} +export const MsgCancelSellOrderResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + encode(_: MsgCancelSellOrderResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelSellOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCancelSellOrderResponse { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + fromAmino(_: MsgCancelSellOrderResponseAmino): MsgCancelSellOrderResponse { + const message = createBaseMsgCancelSellOrderResponse(); + return message; + }, + toAmino(_: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCancelSellOrderResponseAminoMsg): MsgCancelSellOrderResponse { + return MsgCancelSellOrderResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCancelSellOrderResponseProtoMsg): MsgCancelSellOrderResponse { + return MsgCancelSellOrderResponse.decode(message.value); + }, + toProto(message: MsgCancelSellOrderResponse): Uint8Array { + return MsgCancelSellOrderResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", + value: MsgCancelSellOrderResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect(): MsgBuyDirect { + return { + buyer: "", + orders: [] + }; +} +export const MsgBuyDirect = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + encode(message: MsgBuyDirect, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.buyer !== "") { + writer.uint32(10).string(message.buyer); + } + for (const v of message.orders) { + MsgBuyDirect_Order.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyer = reader.string(); + break; + case 2: + message.orders.push(MsgBuyDirect_Order.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBuyDirect { + const message = createBaseMsgBuyDirect(); + message.buyer = object.buyer ?? ""; + message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgBuyDirectAmino): MsgBuyDirect { + const message = createBaseMsgBuyDirect(); + if (object.buyer !== undefined && object.buyer !== null) { + message.buyer = object.buyer; + } + message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgBuyDirect): MsgBuyDirectAmino { + const obj: any = {}; + obj.buyer = message.buyer === "" ? undefined : message.buyer; + if (message.orders) { + obj.orders = message.orders.map(e => e ? MsgBuyDirect_Order.toAmino(e) : undefined); + } else { + obj.orders = message.orders; + } + return obj; + }, + fromAminoMsg(object: MsgBuyDirectAminoMsg): MsgBuyDirect { + return MsgBuyDirect.fromAmino(object.value); + }, + toAminoMsg(message: MsgBuyDirect): MsgBuyDirectAminoMsg { + return { + type: "regen.marketplace/MsgBuyDirect", + value: MsgBuyDirect.toAmino(message) + }; + }, + fromProtoMsg(message: MsgBuyDirectProtoMsg): MsgBuyDirect { + return MsgBuyDirect.decode(message.value); + }, + toProto(message: MsgBuyDirect): Uint8Array { + return MsgBuyDirect.encode(message).finish(); + }, + toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", + value: MsgBuyDirect.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirect_Order(): MsgBuyDirect_Order { + return { + sellOrderId: BigInt(0), + quantity: "", + bidPrice: undefined, + disableAutoRetire: false, + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgBuyDirect_Order = { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + encode(message: MsgBuyDirect_Order, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.sellOrderId); + } + if (message.quantity !== "") { + writer.uint32(26).string(message.quantity); + } + if (message.bidPrice !== undefined) { + Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); + } + if (message.disableAutoRetire === true) { + writer.uint32(40).bool(message.disableAutoRetire); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(50).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(58).string(message.retirementReason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirect_Order(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.sellOrderId = reader.uint64(); + break; + case 3: + message.quantity = reader.string(); + break; + case 4: + message.bidPrice = Coin.decode(reader, reader.uint32()); + break; + case 5: + message.disableAutoRetire = reader.bool(); + break; + case 6: + message.retirementJurisdiction = reader.string(); + break; + case 7: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBuyDirect_Order { + const message = createBaseMsgBuyDirect_Order(); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.quantity = object.quantity ?? ""; + message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? Coin.fromPartial(object.bidPrice) : undefined; + message.disableAutoRetire = object.disableAutoRetire ?? false; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object: MsgBuyDirect_OrderAmino): MsgBuyDirect_Order { + const message = createBaseMsgBuyDirect_Order(); + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.quantity !== undefined && object.quantity !== null) { + message.quantity = object.quantity; + } + if (object.bid_price !== undefined && object.bid_price !== null) { + message.bidPrice = Coin.fromAmino(object.bid_price); + } + if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { + message.disableAutoRetire = object.disable_auto_retire; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message: MsgBuyDirect_Order): MsgBuyDirect_OrderAmino { + const obj: any = {}; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.quantity = message.quantity === "" ? undefined : message.quantity; + obj.bid_price = message.bidPrice ? Coin.toAmino(message.bidPrice) : undefined; + obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object: MsgBuyDirect_OrderAminoMsg): MsgBuyDirect_Order { + return MsgBuyDirect_Order.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBuyDirect_OrderProtoMsg): MsgBuyDirect_Order { + return MsgBuyDirect_Order.decode(message.value); + }, + toProto(message: MsgBuyDirect_Order): Uint8Array { + return MsgBuyDirect_Order.encode(message).finish(); + }, + toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.Order", + value: MsgBuyDirect_Order.encode(message).finish() + }; + } +}; +function createBaseMsgBuyDirectResponse(): MsgBuyDirectResponse { + return {}; +} +export const MsgBuyDirectResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + encode(_: MsgBuyDirectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBuyDirectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgBuyDirectResponse { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + fromAmino(_: MsgBuyDirectResponseAmino): MsgBuyDirectResponse { + const message = createBaseMsgBuyDirectResponse(); + return message; + }, + toAmino(_: MsgBuyDirectResponse): MsgBuyDirectResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgBuyDirectResponseAminoMsg): MsgBuyDirectResponse { + return MsgBuyDirectResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBuyDirectResponseProtoMsg): MsgBuyDirectResponse { + return MsgBuyDirectResponse.decode(message.value); + }, + toProto(message: MsgBuyDirectResponse): Uint8Array { + return MsgBuyDirectResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", + value: MsgBuyDirectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenom(): MsgAddAllowedDenom { + return { + authority: "", + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const MsgAddAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + encode(message: MsgAddAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.bankDenom !== "") { + writer.uint32(18).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(26).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(32).uint32(message.exponent); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.bankDenom = reader.string(); + break; + case 3: + message.displayDenom = reader.string(); + break; + case 4: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAddAllowedDenom { + const message = createBaseMsgAddAllowedDenom(); + message.authority = object.authority ?? ""; + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object: MsgAddAllowedDenomAmino): MsgAddAllowedDenom { + const message = createBaseMsgAddAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message: MsgAddAllowedDenom): MsgAddAllowedDenomAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object: MsgAddAllowedDenomAminoMsg): MsgAddAllowedDenom { + return MsgAddAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomAminoMsg { + return { + type: "regen.marketplace/MsgAddAllowedDenom", + value: MsgAddAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAddAllowedDenomProtoMsg): MsgAddAllowedDenom { + return MsgAddAllowedDenom.decode(message.value); + }, + toProto(message: MsgAddAllowedDenom): Uint8Array { + return MsgAddAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", + value: MsgAddAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedDenomResponse(): MsgAddAllowedDenomResponse { + return {}; +} +export const MsgAddAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + encode(_: MsgAddAllowedDenomResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgAddAllowedDenomResponse { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + fromAmino(_: MsgAddAllowedDenomResponseAmino): MsgAddAllowedDenomResponse { + const message = createBaseMsgAddAllowedDenomResponse(); + return message; + }, + toAmino(_: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgAddAllowedDenomResponseAminoMsg): MsgAddAllowedDenomResponse { + return MsgAddAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAddAllowedDenomResponseProtoMsg): MsgAddAllowedDenomResponse { + return MsgAddAllowedDenomResponse.decode(message.value); + }, + toProto(message: MsgAddAllowedDenomResponse): Uint8Array { + return MsgAddAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", + value: MsgAddAllowedDenomResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenom(): MsgRemoveAllowedDenom { + return { + authority: "", + denom: "" + }; +} +export const MsgRemoveAllowedDenom = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + encode(message: MsgRemoveAllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.denom !== "") { + writer.uint32(18).string(message.denom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRemoveAllowedDenom { + const message = createBaseMsgRemoveAllowedDenom(); + message.authority = object.authority ?? ""; + message.denom = object.denom ?? ""; + return message; + }, + fromAmino(object: MsgRemoveAllowedDenomAmino): MsgRemoveAllowedDenom { + const message = createBaseMsgRemoveAllowedDenom(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + return message; + }, + toAmino(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.denom = message.denom === "" ? undefined : message.denom; + return obj; + }, + fromAminoMsg(object: MsgRemoveAllowedDenomAminoMsg): MsgRemoveAllowedDenom { + return MsgRemoveAllowedDenom.fromAmino(object.value); + }, + toAminoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAminoMsg { + return { + type: "regen.marketplace/MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRemoveAllowedDenomProtoMsg): MsgRemoveAllowedDenom { + return MsgRemoveAllowedDenom.decode(message.value); + }, + toProto(message: MsgRemoveAllowedDenom): Uint8Array { + return MsgRemoveAllowedDenom.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", + value: MsgRemoveAllowedDenom.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedDenomResponse(): MsgRemoveAllowedDenomResponse { + return {}; +} +export const MsgRemoveAllowedDenomResponse = { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + encode(_: MsgRemoveAllowedDenomResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedDenomResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRemoveAllowedDenomResponse { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + fromAmino(_: MsgRemoveAllowedDenomResponseAmino): MsgRemoveAllowedDenomResponse { + const message = createBaseMsgRemoveAllowedDenomResponse(); + return message; + }, + toAmino(_: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRemoveAllowedDenomResponseAminoMsg): MsgRemoveAllowedDenomResponse { + return MsgRemoveAllowedDenomResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRemoveAllowedDenomResponseProtoMsg): MsgRemoveAllowedDenomResponse { + return MsgRemoveAllowedDenomResponse.decode(message.value); + }, + toProto(message: MsgRemoveAllowedDenomResponse): Uint8Array { + return MsgRemoveAllowedDenomResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", + value: MsgRemoveAllowedDenomResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/marketplace/v1/types.ts b/packages/api/src/regen/ecocredit/marketplace/v1/types.ts new file mode 100644 index 00000000..ff17d728 --- /dev/null +++ b/packages/api/src/regen/ecocredit/marketplace/v1/types.ts @@ -0,0 +1,146 @@ +//@ts-nocheck +import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposal { + /** title is the title of the proposal. */ + title: string; + /** description is the description of the proposal. */ + description: string; + /** + * denom contains coin denom information that will be added to the + * list of allowed denoms for use in the marketplace. + */ + denom?: AllowedDenom; +} +export interface AllowDenomProposalProtoMsg { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; + value: Uint8Array; +} +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposalAmino { + /** title is the title of the proposal. */ + title?: string; + /** description is the description of the proposal. */ + description?: string; + /** + * denom contains coin denom information that will be added to the + * list of allowed denoms for use in the marketplace. + */ + denom?: AllowedDenomAmino; +} +export interface AllowDenomProposalAminoMsg { + type: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; + value: AllowDenomProposalAmino; +} +/** + * AllowDenomProposal is a gov Content type for approving a denom for use in the + * marketplace. + * + * Deprecated (Since Revision 1): This message is no longer used and will be + * removed in the next version. See MsgAddAllowedDenom. + */ +export interface AllowDenomProposalSDKType { + title: string; + description: string; + denom?: AllowedDenomSDKType; +} +function createBaseAllowDenomProposal(): AllowDenomProposal { + return { + title: "", + description: "", + denom: undefined + }; +} +export const AllowDenomProposal = { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + encode(message: AllowDenomProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.denom !== undefined) { + AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowDenomProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.denom = AllowedDenom.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowDenomProposal { + const message = createBaseAllowDenomProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.denom = object.denom !== undefined && object.denom !== null ? AllowedDenom.fromPartial(object.denom) : undefined; + return message; + }, + fromAmino(object: AllowDenomProposalAmino): AllowDenomProposal { + const message = createBaseAllowDenomProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = AllowedDenom.fromAmino(object.denom); + } + return message; + }, + toAmino(message: AllowDenomProposal): AllowDenomProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.denom = message.denom ? AllowedDenom.toAmino(message.denom) : undefined; + return obj; + }, + fromAminoMsg(object: AllowDenomProposalAminoMsg): AllowDenomProposal { + return AllowDenomProposal.fromAmino(object.value); + }, + fromProtoMsg(message: AllowDenomProposalProtoMsg): AllowDenomProposal { + return AllowDenomProposal.decode(message.value); + }, + toProto(message: AllowDenomProposal): Uint8Array { + return AllowDenomProposal.encode(message).finish(); + }, + toProtoMsg(message: AllowDenomProposal): AllowDenomProposalProtoMsg { + return { + typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", + value: AllowDenomProposal.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/orderbook/v1alpha1/memory.ts b/packages/api/src/regen/ecocredit/orderbook/v1alpha1/memory.ts new file mode 100644 index 00000000..92e42347 --- /dev/null +++ b/packages/api/src/regen/ecocredit/orderbook/v1alpha1/memory.ts @@ -0,0 +1,573 @@ +//@ts-nocheck +import { Timestamp } from "../../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../../helpers"; +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatch { + /** market_id defines the market within which this match exists. */ + marketId: bigint; + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** sell_order_id is the sell order ID. */ + sellOrderId: bigint; + /** + * bid_price_complement is the the complement (^ operator) of the bid price + * encoded as a uint32 (which should have sufficient precision) - effectively + * ~price * 10^exponent (usually 10^6). The complement is used so that bids + * can be sorted high to low. + */ + bidPriceComplement: number; + /** + * ask_price is the ask price encoded to a uint32. Ask prices are sorted low + * to high. + */ + askPrice: number; +} +export interface BuyOrderSellOrderMatchProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; + value: Uint8Array; +} +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatchAmino { + /** market_id defines the market within which this match exists. */ + market_id?: string; + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** sell_order_id is the sell order ID. */ + sell_order_id?: string; + /** + * bid_price_complement is the the complement (^ operator) of the bid price + * encoded as a uint32 (which should have sufficient precision) - effectively + * ~price * 10^exponent (usually 10^6). The complement is used so that bids + * can be sorted high to low. + */ + bid_price_complement?: number; + /** + * ask_price is the ask price encoded to a uint32. Ask prices are sorted low + * to high. + */ + ask_price?: number; +} +export interface BuyOrderSellOrderMatchAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; + value: BuyOrderSellOrderMatchAmino; +} +/** + * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching + * algorithm used to actually match buy and sell orders. + */ +export interface BuyOrderSellOrderMatchSDKType { + market_id: bigint; + buy_order_id: bigint; + sell_order_id: bigint; + bid_price_complement: number; + ask_price: number; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** class_id is the class ID. */ + classId: bigint; + /** project_location is the project location in the selector's criteria. */ + projectLocation: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + minStartDate?: Date; + /** max_end_date is the maximum end date in the selector's criteria. */ + maxEndDate?: Date; +} +export interface BuyOrderClassSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; + value: Uint8Array; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** class_id is the class ID. */ + class_id?: string; + /** project_location is the project location in the selector's criteria. */ + project_location?: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + min_start_date?: string; + /** max_end_date is the maximum end date in the selector's criteria. */ + max_end_date?: string; +} +export interface BuyOrderClassSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; + value: BuyOrderClassSelectorAmino; +} +/** BuyOrderClassSelector indexes a buy order with class selector. */ +export interface BuyOrderClassSelectorSDKType { + buy_order_id: bigint; + class_id: bigint; + project_location: string; + min_start_date?: Date; + max_end_date?: Date; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** project_id is the project ID. */ + projectId: bigint; + /** min_start_date is the minimum start date in the selector's criteria. */ + minStartDate?: Date; + /** max_end_date is the maximum end date in the selector's criteria. */ + maxEndDate?: Date; +} +export interface BuyOrderProjectSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; + value: Uint8Array; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** project_id is the project ID. */ + project_id?: string; + /** min_start_date is the minimum start date in the selector's criteria. */ + min_start_date?: string; + /** max_end_date is the maximum end date in the selector's criteria. */ + max_end_date?: string; +} +export interface BuyOrderProjectSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; + value: BuyOrderProjectSelectorAmino; +} +/** BuyOrderProjectSelector indexes a buy order with project selector. */ +export interface BuyOrderProjectSelectorSDKType { + buy_order_id: bigint; + project_id: bigint; + min_start_date?: Date; + max_end_date?: Date; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelector { + /** buy_order_id is the buy order ID. */ + buyOrderId: bigint; + /** batch_id is the batch ID. */ + batchId: bigint; +} +export interface BuyOrderBatchSelectorProtoMsg { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; + value: Uint8Array; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelectorAmino { + /** buy_order_id is the buy order ID. */ + buy_order_id?: string; + /** batch_id is the batch ID. */ + batch_id?: string; +} +export interface BuyOrderBatchSelectorAminoMsg { + type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; + value: BuyOrderBatchSelectorAmino; +} +/** BuyOrderBatchSelector indexes a buy order with batch selector. */ +export interface BuyOrderBatchSelectorSDKType { + buy_order_id: bigint; + batch_id: bigint; +} +function createBaseBuyOrderSellOrderMatch(): BuyOrderSellOrderMatch { + return { + marketId: BigInt(0), + buyOrderId: BigInt(0), + sellOrderId: BigInt(0), + bidPriceComplement: 0, + askPrice: 0 + }; +} +export const BuyOrderSellOrderMatch = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + encode(message: BuyOrderSellOrderMatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.marketId !== BigInt(0)) { + writer.uint32(8).uint64(message.marketId); + } + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(16).uint64(message.buyOrderId); + } + if (message.sellOrderId !== BigInt(0)) { + writer.uint32(24).uint64(message.sellOrderId); + } + if (message.bidPriceComplement !== 0) { + writer.uint32(37).fixed32(message.bidPriceComplement); + } + if (message.askPrice !== 0) { + writer.uint32(45).fixed32(message.askPrice); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderSellOrderMatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.marketId = reader.uint64(); + break; + case 2: + message.buyOrderId = reader.uint64(); + break; + case 3: + message.sellOrderId = reader.uint64(); + break; + case 4: + message.bidPriceComplement = reader.fixed32(); + break; + case 5: + message.askPrice = reader.fixed32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BuyOrderSellOrderMatch { + const message = createBaseBuyOrderSellOrderMatch(); + message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); + message.bidPriceComplement = object.bidPriceComplement ?? 0; + message.askPrice = object.askPrice ?? 0; + return message; + }, + fromAmino(object: BuyOrderSellOrderMatchAmino): BuyOrderSellOrderMatch { + const message = createBaseBuyOrderSellOrderMatch(); + if (object.market_id !== undefined && object.market_id !== null) { + message.marketId = BigInt(object.market_id); + } + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.sell_order_id !== undefined && object.sell_order_id !== null) { + message.sellOrderId = BigInt(object.sell_order_id); + } + if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { + message.bidPriceComplement = object.bid_price_complement; + } + if (object.ask_price !== undefined && object.ask_price !== null) { + message.askPrice = object.ask_price; + } + return message; + }, + toAmino(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchAmino { + const obj: any = {}; + obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; + obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; + obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; + return obj; + }, + fromAminoMsg(object: BuyOrderSellOrderMatchAminoMsg): BuyOrderSellOrderMatch { + return BuyOrderSellOrderMatch.fromAmino(object.value); + }, + fromProtoMsg(message: BuyOrderSellOrderMatchProtoMsg): BuyOrderSellOrderMatch { + return BuyOrderSellOrderMatch.decode(message.value); + }, + toProto(message: BuyOrderSellOrderMatch): Uint8Array { + return BuyOrderSellOrderMatch.encode(message).finish(); + }, + toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", + value: BuyOrderSellOrderMatch.encode(message).finish() + }; + } +}; +function createBaseBuyOrderClassSelector(): BuyOrderClassSelector { + return { + buyOrderId: BigInt(0), + classId: BigInt(0), + projectLocation: "", + minStartDate: undefined, + maxEndDate: undefined + }; +} +export const BuyOrderClassSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + encode(message: BuyOrderClassSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.classId !== BigInt(0)) { + writer.uint32(16).uint64(message.classId); + } + if (message.projectLocation !== "") { + writer.uint32(26).string(message.projectLocation); + } + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(34).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderClassSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.classId = reader.uint64(); + break; + case 3: + message.projectLocation = reader.string(); + break; + case 4: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BuyOrderClassSelector { + const message = createBaseBuyOrderClassSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); + message.projectLocation = object.projectLocation ?? ""; + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object: BuyOrderClassSelectorAmino): BuyOrderClassSelector { + const message = createBaseBuyOrderClassSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = BigInt(object.class_id); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message: BuyOrderClassSelector): BuyOrderClassSelectorAmino { + const obj: any = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object: BuyOrderClassSelectorAminoMsg): BuyOrderClassSelector { + return BuyOrderClassSelector.fromAmino(object.value); + }, + fromProtoMsg(message: BuyOrderClassSelectorProtoMsg): BuyOrderClassSelector { + return BuyOrderClassSelector.decode(message.value); + }, + toProto(message: BuyOrderClassSelector): Uint8Array { + return BuyOrderClassSelector.encode(message).finish(); + }, + toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", + value: BuyOrderClassSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderProjectSelector(): BuyOrderProjectSelector { + return { + buyOrderId: BigInt(0), + projectId: BigInt(0), + minStartDate: undefined, + maxEndDate: undefined + }; +} +export const BuyOrderProjectSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + encode(message: BuyOrderProjectSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.projectId !== BigInt(0)) { + writer.uint32(16).uint64(message.projectId); + } + if (message.minStartDate !== undefined) { + Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(26).fork()).ldelim(); + } + if (message.maxEndDate !== undefined) { + Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderProjectSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.projectId = reader.uint64(); + break; + case 3: + message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BuyOrderProjectSelector { + const message = createBaseBuyOrderProjectSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); + message.minStartDate = object.minStartDate ?? undefined; + message.maxEndDate = object.maxEndDate ?? undefined; + return message; + }, + fromAmino(object: BuyOrderProjectSelectorAmino): BuyOrderProjectSelector { + const message = createBaseBuyOrderProjectSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = BigInt(object.project_id); + } + if (object.min_start_date !== undefined && object.min_start_date !== null) { + message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); + } + if (object.max_end_date !== undefined && object.max_end_date !== null) { + message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); + } + return message; + }, + toAmino(message: BuyOrderProjectSelector): BuyOrderProjectSelectorAmino { + const obj: any = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; + obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; + obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; + return obj; + }, + fromAminoMsg(object: BuyOrderProjectSelectorAminoMsg): BuyOrderProjectSelector { + return BuyOrderProjectSelector.fromAmino(object.value); + }, + fromProtoMsg(message: BuyOrderProjectSelectorProtoMsg): BuyOrderProjectSelector { + return BuyOrderProjectSelector.decode(message.value); + }, + toProto(message: BuyOrderProjectSelector): Uint8Array { + return BuyOrderProjectSelector.encode(message).finish(); + }, + toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", + value: BuyOrderProjectSelector.encode(message).finish() + }; + } +}; +function createBaseBuyOrderBatchSelector(): BuyOrderBatchSelector { + return { + buyOrderId: BigInt(0), + batchId: BigInt(0) + }; +} +export const BuyOrderBatchSelector = { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + encode(message: BuyOrderBatchSelector, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.buyOrderId !== BigInt(0)) { + writer.uint32(8).uint64(message.buyOrderId); + } + if (message.batchId !== BigInt(0)) { + writer.uint32(16).uint64(message.batchId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuyOrderBatchSelector(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.buyOrderId = reader.uint64(); + break; + case 2: + message.batchId = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BuyOrderBatchSelector { + const message = createBaseBuyOrderBatchSelector(); + message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); + message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BuyOrderBatchSelectorAmino): BuyOrderBatchSelector { + const message = createBaseBuyOrderBatchSelector(); + if (object.buy_order_id !== undefined && object.buy_order_id !== null) { + message.buyOrderId = BigInt(object.buy_order_id); + } + if (object.batch_id !== undefined && object.batch_id !== null) { + message.batchId = BigInt(object.batch_id); + } + return message; + }, + toAmino(message: BuyOrderBatchSelector): BuyOrderBatchSelectorAmino { + const obj: any = {}; + obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; + obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BuyOrderBatchSelectorAminoMsg): BuyOrderBatchSelector { + return BuyOrderBatchSelector.fromAmino(object.value); + }, + fromProtoMsg(message: BuyOrderBatchSelectorProtoMsg): BuyOrderBatchSelector { + return BuyOrderBatchSelector.decode(message.value); + }, + toProto(message: BuyOrderBatchSelector): Uint8Array { + return BuyOrderBatchSelector.encode(message).finish(); + }, + toProtoMsg(message: BuyOrderBatchSelector): BuyOrderBatchSelectorProtoMsg { + return { + typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", + value: BuyOrderBatchSelector.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/events.ts b/packages/api/src/regen/ecocredit/v1/events.ts new file mode 100644 index 00000000..5cc890c0 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/events.ts @@ -0,0 +1,2153 @@ +//@ts-nocheck +import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClass { + /** class_id is the unique identifier of the credit class. */ + classId: string; +} +export interface EventCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateClass"; + value: Uint8Array; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassAmino { + /** class_id is the unique identifier of the credit class. */ + class_id?: string; +} +export interface EventCreateClassAminoMsg { + type: "/regen.ecocredit.v1.EventCreateClass"; + value: EventCreateClassAmino; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassSDKType { + class_id: string; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProject { + /** project_id is the unique identifier of the project. */ + projectId: string; +} +export interface EventCreateProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateProject"; + value: Uint8Array; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProjectAmino { + /** project_id is the unique identifier of the project. */ + project_id?: string; +} +export interface EventCreateProjectAminoMsg { + type: "/regen.ecocredit.v1.EventCreateProject"; + value: EventCreateProjectAmino; +} +/** EventCreateProject is an event emitted when a project is created. */ +export interface EventCreateProjectSDKType { + project_id: string; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatch { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. + */ + originTx?: OriginTx; +} +export interface EventCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; + value: Uint8Array; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. + */ + origin_tx?: OriginTxAmino; +} +export interface EventCreateBatchAminoMsg { + type: "/regen.ecocredit.v1.EventCreateBatch"; + value: EventCreateBatchAmino; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchSDKType { + batch_denom: string; + origin_tx?: OriginTxSDKType; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMint { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batchDenom: string; + /** tradable_amount is the amount of tradable credits minted. */ + tradableAmount: string; + /** retired_amount is the amount of retired credits minted. */ + retiredAmount: string; +} +export interface EventMintProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventMint"; + value: Uint8Array; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMintAmino { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batch_denom?: string; + /** tradable_amount is the amount of tradable credits minted. */ + tradable_amount?: string; + /** retired_amount is the amount of retired credits minted. */ + retired_amount?: string; +} +export interface EventMintAminoMsg { + type: "/regen.ecocredit.v1.EventMint"; + value: EventMintAmino; +} +/** + * EventMint is an event emitted when credits are minted either when creating a + * credit batch or when bridging assets from another chain or registry. + */ +export interface EventMintSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCredits { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batchDenom: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + */ + originTx?: OriginTx; +} +export interface EventMintBatchCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; + value: Uint8Array; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCreditsAmino { + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were minted. + */ + batch_denom?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + */ + origin_tx?: OriginTxAmino; +} +export interface EventMintBatchCreditsAminoMsg { + type: "/regen.ecocredit.v1.EventMintBatchCredits"; + value: EventMintBatchCreditsAmino; +} +/** + * EventMintBatchCredits is an event emitted when credits are minted to an + * existing open credit batch. + */ +export interface EventMintBatchCreditsSDKType { + batch_denom: string; + origin_tx?: OriginTxSDKType; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransfer { + /** + * sender is the sender of the credits. In the case that the credits were + * transferred from a base account, this will be the account address. In the + * case that the credits were transferred from a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + sender: string; + /** + * recipient is the recipient of the credits. In the case that the credits + * were transferred to a base account, this will be the account address. In + * the case that the credits were transferred to a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + recipient: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits received. */ + retiredAmount: string; +} +export interface EventTransferProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventTransfer"; + value: Uint8Array; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransferAmino { + /** + * sender is the sender of the credits. In the case that the credits were + * transferred from a base account, this will be the account address. In the + * case that the credits were transferred from a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + sender?: string; + /** + * recipient is the recipient of the credits. In the case that the credits + * were transferred to a base account, this will be the account address. In + * the case that the credits were transferred to a module, this will be the + * module address (i.e. either the ecocredit module or basket submodule). + */ + recipient?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits received. */ + retired_amount?: string; +} +export interface EventTransferAminoMsg { + type: "/regen.ecocredit.v1.EventTransfer"; + value: EventTransferAmino; +} +/** + * EventTransfer is an event emitted when credits are transferred from one + * account to another including transfers to or from a module account. + */ +export interface EventTransferSDKType { + sender: string; + recipient: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetire { + /** + * owner is the address of the account that owns the retired credits. This + * will be the account receiving credits in the case that credits were retired + * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, + * retired upon taking from a basket using basket.Msg/Take, or retired upon + * purchase using marketplace.Msg/BuyDirect. + */ + owner: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were retired. + */ + batchDenom: string; + /** amount is the decimal number of credits that have been retired. */ + amount: string; + /** + * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + jurisdiction: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason: string; +} +export interface EventRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventRetire"; + value: Uint8Array; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireAmino { + /** + * owner is the address of the account that owns the retired credits. This + * will be the account receiving credits in the case that credits were retired + * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, + * retired upon taking from a basket using basket.Msg/Take, or retired upon + * purchase using marketplace.Msg/BuyDirect. + */ + owner?: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were retired. + */ + batch_denom?: string; + /** amount is the decimal number of credits that have been retired. */ + amount?: string; + /** + * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + jurisdiction?: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason?: string; +} +export interface EventRetireAminoMsg { + type: "/regen.ecocredit.v1.EventRetire"; + value: EventRetireAmino; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireSDKType { + owner: string; + batch_denom: string; + amount: string; + jurisdiction: string; + reason: string; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancel { + /** owner is the address of the account that cancelled the credits. */ + owner: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were cancelled. + */ + batchDenom: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount: string; + /** reason is the reason the credits were cancelled. */ + reason: string; +} +export interface EventCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventCancel"; + value: Uint8Array; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelAmino { + /** owner is the address of the account that cancelled the credits. */ + owner?: string; + /** + * batch_denom is the unique identifier of the credit batch within which the + * credits were cancelled. + */ + batch_denom?: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount?: string; + /** reason is the reason the credits were cancelled. */ + reason?: string; +} +export interface EventCancelAminoMsg { + type: "/regen.ecocredit.v1.EventCancel"; + value: EventCancelAmino; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelSDKType { + owner: string; + batch_denom: string; + amount: string; + reason: string; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdmin { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin"; + value: Uint8Array; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdminAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassAdminAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; + value: EventUpdateClassAdminAmino; +} +/** + * EventUpdateClassAdmin is emitted when the admin address of a credit class is + * changed. + */ +export interface EventUpdateClassAdminSDKType { + class_id: string; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuers { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers"; + value: Uint8Array; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuersAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassIssuersAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; + value: EventUpdateClassIssuersAmino; +} +/** + * EventUpdateClassIssuers is emitted when the issuer list for a credit class + * is updated. + */ +export interface EventUpdateClassIssuersSDKType { + class_id: string; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadata { + /** class_id is the unique identifier of the class that was updated. */ + classId: string; +} +export interface EventUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata"; + value: Uint8Array; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadataAmino { + /** class_id is the unique identifier of the class that was updated. */ + class_id?: string; +} +export interface EventUpdateClassMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; + value: EventUpdateClassMetadataAmino; +} +/** + * EventUpdateClassMetadata is emitted when the credit class metadata is + * changed. + */ +export interface EventUpdateClassMetadataSDKType { + class_id: string; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdmin { + /** project_id is the unique identifier of the project that was updated. */ + projectId: string; +} +export interface EventUpdateProjectAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; + value: Uint8Array; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdminAmino { + /** project_id is the unique identifier of the project that was updated. */ + project_id?: string; +} +export interface EventUpdateProjectAdminAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; + value: EventUpdateProjectAdminAmino; +} +/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ +export interface EventUpdateProjectAdminSDKType { + project_id: string; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadata { + /** project_id is the unique identifier of the project that was updated. */ + projectId: string; +} +export interface EventUpdateProjectMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; + value: Uint8Array; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadataAmino { + /** project_id is the unique identifier of the project that was updated. */ + project_id?: string; +} +export interface EventUpdateProjectMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; + value: EventUpdateProjectMetadataAmino; +} +/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ +export interface EventUpdateProjectMetadataSDKType { + project_id: string; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadata { + /** batch_denom is the unique identifier of the batch that was updated. */ + batchDenom: string; +} +export interface EventUpdateBatchMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; + value: Uint8Array; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadataAmino { + /** batch_denom is the unique identifier of the batch that was updated. */ + batch_denom?: string; +} +export interface EventUpdateBatchMetadataAminoMsg { + type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; + value: EventUpdateBatchMetadataAmino; +} +/** + * EventUpdateBatchMetadata is emitted when the credit batch metadata is + * changed. + * + * Since Revision 2 + */ +export interface EventUpdateBatchMetadataSDKType { + batch_denom: string; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatch { + /** batch_denom is the denom of the batch that was sealed. */ + batchDenom: string; +} +export interface EventSealBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventSealBatch"; + value: Uint8Array; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatchAmino { + /** batch_denom is the denom of the batch that was sealed. */ + batch_denom?: string; +} +export interface EventSealBatchAminoMsg { + type: "/regen.ecocredit.v1.EventSealBatch"; + value: EventSealBatchAmino; +} +/** EventSealBatch is emitted when a batch is sealed. */ +export interface EventSealBatchSDKType { + batch_denom: string; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditType { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation: string; +} +export interface EventAddCreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType"; + value: Uint8Array; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditTypeAmino { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation?: string; +} +export interface EventAddCreditTypeAminoMsg { + type: "/regen.ecocredit.v1.EventAddCreditType"; + value: EventAddCreditTypeAmino; +} +/** EventAddCreditType is emitted when governance approves a new credit type. */ +export interface EventAddCreditTypeSDKType { + abbreviation: string; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridge { + /** target is the target chain. */ + target: string; + /** recipient is the recipient address. */ + recipient: string; + /** contract is the contract address. */ + contract: string; + /** amount is the amount of credits. */ + amount: string; + /** + * owner is the owner address. + * + * Since Revision 1 + */ + owner: string; + /** + * batch_denom is the credit batch denom. + * + * Since Revision 3 + */ + batchDenom: string; +} +export interface EventBridgeProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventBridge"; + value: Uint8Array; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridgeAmino { + /** target is the target chain. */ + target?: string; + /** recipient is the recipient address. */ + recipient?: string; + /** contract is the contract address. */ + contract?: string; + /** amount is the amount of credits. */ + amount?: string; + /** + * owner is the owner address. + * + * Since Revision 1 + */ + owner?: string; + /** + * batch_denom is the credit batch denom. + * + * Since Revision 3 + */ + batch_denom?: string; +} +export interface EventBridgeAminoMsg { + type: "/regen.ecocredit.v1.EventBridge"; + value: EventBridgeAmino; +} +/** EventBridge is emitted when credits are bridged to another chain. */ +export interface EventBridgeSDKType { + target: string; + recipient: string; + contract: string; + amount: string; + owner: string; + batch_denom: string; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceive { + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + projectId: string; + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batchDenom: string; + /** + * amount is the amount of credits. + * + * Since Revision 3 + */ + amount: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + * + * Since Revision 3 + */ + originTx?: OriginTx; +} +export interface EventBridgeReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; + value: Uint8Array; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceiveAmino { + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + project_id?: string; + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batch_denom?: string; + /** + * amount is the amount of credits. + * + * Since Revision 3 + */ + amount?: string; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits within the credit batch. + * + * Since Revision 3 + */ + origin_tx?: OriginTxAmino; +} +export interface EventBridgeReceiveAminoMsg { + type: "/regen.ecocredit.v1.EventBridgeReceive"; + value: EventBridgeReceiveAmino; +} +/** EventBridgeReceive is emitted when credits are bridged from another chain. */ +export interface EventBridgeReceiveSDKType { + project_id: string; + batch_denom: string; + amount: string; + origin_tx?: OriginTxSDKType; +} +function createBaseEventCreateClass(): EventCreateClass { + return { + classId: "" + }; +} +export const EventCreateClass = { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + encode(message: EventCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateClass { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: EventCreateClassAmino): EventCreateClass { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: EventCreateClass): EventCreateClassAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass { + return EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass { + return EventCreateClass.decode(message.value); + }, + toProto(message: EventCreateClass): Uint8Array { + return EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateClass", + value: EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateProject(): EventCreateProject { + return { + projectId: "" + }; +} +export const EventCreateProject = { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + encode(message: EventCreateProject, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateProject { + const message = createBaseEventCreateProject(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: EventCreateProjectAmino): EventCreateProject { + const message = createBaseEventCreateProject(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: EventCreateProject): EventCreateProjectAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: EventCreateProjectAminoMsg): EventCreateProject { + return EventCreateProject.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateProjectProtoMsg): EventCreateProject { + return EventCreateProject.decode(message.value); + }, + toProto(message: EventCreateProject): Uint8Array { + return EventCreateProject.encode(message).finish(); + }, + toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateProject", + value: EventCreateProject.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch(): EventCreateBatch { + return { + batchDenom: "", + originTx: undefined + }; +} +export const EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + encode(message: EventCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateBatch { + const message = createBaseEventCreateBatch(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: EventCreateBatchAmino): EventCreateBatch { + const message = createBaseEventCreateBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: EventCreateBatch): EventCreateBatchAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch { + return EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch { + return EventCreateBatch.decode(message.value); + }, + toProto(message: EventCreateBatch): Uint8Array { + return EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventCreateBatch", + value: EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventMint(): EventMint { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +export const EventMint = { + typeUrl: "/regen.ecocredit.v1.EventMint", + encode(message: EventMint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventMint { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMint(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventMint { + const message = createBaseEventMint(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object: EventMintAmino): EventMint { + const message = createBaseEventMint(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message: EventMint): EventMintAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object: EventMintAminoMsg): EventMint { + return EventMint.fromAmino(object.value); + }, + fromProtoMsg(message: EventMintProtoMsg): EventMint { + return EventMint.decode(message.value); + }, + toProto(message: EventMint): Uint8Array { + return EventMint.encode(message).finish(); + }, + toProtoMsg(message: EventMint): EventMintProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventMint", + value: EventMint.encode(message).finish() + }; + } +}; +function createBaseEventMintBatchCredits(): EventMintBatchCredits { + return { + batchDenom: "", + originTx: undefined + }; +} +export const EventMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + encode(message: EventMintBatchCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventMintBatchCredits { + const message = createBaseEventMintBatchCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: EventMintBatchCreditsAmino): EventMintBatchCredits { + const message = createBaseEventMintBatchCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: EventMintBatchCredits): EventMintBatchCreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: EventMintBatchCreditsAminoMsg): EventMintBatchCredits { + return EventMintBatchCredits.fromAmino(object.value); + }, + fromProtoMsg(message: EventMintBatchCreditsProtoMsg): EventMintBatchCredits { + return EventMintBatchCredits.decode(message.value); + }, + toProto(message: EventMintBatchCredits): Uint8Array { + return EventMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", + value: EventMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseEventTransfer(): EventTransfer { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "" + }; +} +export const EventTransfer = { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + encode(message: EventTransfer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventTransfer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventTransfer { + const message = createBaseEventTransfer(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object: EventTransferAmino): EventTransfer { + const message = createBaseEventTransfer(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message: EventTransfer): EventTransferAmino { + const obj: any = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object: EventTransferAminoMsg): EventTransfer { + return EventTransfer.fromAmino(object.value); + }, + fromProtoMsg(message: EventTransferProtoMsg): EventTransfer { + return EventTransfer.decode(message.value); + }, + toProto(message: EventTransfer): Uint8Array { + return EventTransfer.encode(message).finish(); + }, + toProtoMsg(message: EventTransfer): EventTransferProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventTransfer", + value: EventTransfer.encode(message).finish() + }; + } +}; +function createBaseEventRetire(): EventRetire { + return { + owner: "", + batchDenom: "", + amount: "", + jurisdiction: "", + reason: "" + }; +} +export const EventRetire = { + typeUrl: "/regen.ecocredit.v1.EventRetire", + encode(message: EventRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(42).string(message.reason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventRetire { + const message = createBaseEventRetire(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object: EventRetireAmino): EventRetire { + const message = createBaseEventRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message: EventRetire): EventRetireAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object: EventRetireAminoMsg): EventRetire { + return EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message: EventRetireProtoMsg): EventRetire { + return EventRetire.decode(message.value); + }, + toProto(message: EventRetire): Uint8Array { + return EventRetire.encode(message).finish(); + }, + toProtoMsg(message: EventRetire): EventRetireProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventRetire", + value: EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel(): EventCancel { + return { + owner: "", + batchDenom: "", + amount: "", + reason: "" + }; +} +export const EventCancel = { + typeUrl: "/regen.ecocredit.v1.EventCancel", + encode(message: EventCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCancel { + const message = createBaseEventCancel(); + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object: EventCancelAmino): EventCancel { + const message = createBaseEventCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message: EventCancel): EventCancelAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object: EventCancelAminoMsg): EventCancel { + return EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message: EventCancelProtoMsg): EventCancel { + return EventCancel.decode(message.value); + }, + toProto(message: EventCancel): Uint8Array { + return EventCancel.encode(message).finish(); + }, + toProtoMsg(message: EventCancel): EventCancelProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventCancel", + value: EventCancel.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassAdmin(): EventUpdateClassAdmin { + return { + classId: "" + }; +} +export const EventUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + encode(message: EventUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateClassAdmin { + const message = createBaseEventUpdateClassAdmin(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: EventUpdateClassAdminAmino): EventUpdateClassAdmin { + const message = createBaseEventUpdateClassAdmin(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: EventUpdateClassAdmin): EventUpdateClassAdminAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: EventUpdateClassAdminAminoMsg): EventUpdateClassAdmin { + return EventUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateClassAdminProtoMsg): EventUpdateClassAdmin { + return EventUpdateClassAdmin.decode(message.value); + }, + toProto(message: EventUpdateClassAdmin): Uint8Array { + return EventUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", + value: EventUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassIssuers(): EventUpdateClassIssuers { + return { + classId: "" + }; +} +export const EventUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + encode(message: EventUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateClassIssuers { + const message = createBaseEventUpdateClassIssuers(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: EventUpdateClassIssuersAmino): EventUpdateClassIssuers { + const message = createBaseEventUpdateClassIssuers(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: EventUpdateClassIssuers): EventUpdateClassIssuersAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: EventUpdateClassIssuersAminoMsg): EventUpdateClassIssuers { + return EventUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateClassIssuersProtoMsg): EventUpdateClassIssuers { + return EventUpdateClassIssuers.decode(message.value); + }, + toProto(message: EventUpdateClassIssuers): Uint8Array { + return EventUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", + value: EventUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseEventUpdateClassMetadata(): EventUpdateClassMetadata { + return { + classId: "" + }; +} +export const EventUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + encode(message: EventUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateClassMetadata { + const message = createBaseEventUpdateClassMetadata(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: EventUpdateClassMetadataAmino): EventUpdateClassMetadata { + const message = createBaseEventUpdateClassMetadata(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: EventUpdateClassMetadata): EventUpdateClassMetadataAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: EventUpdateClassMetadataAminoMsg): EventUpdateClassMetadata { + return EventUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateClassMetadataProtoMsg): EventUpdateClassMetadata { + return EventUpdateClassMetadata.decode(message.value); + }, + toProto(message: EventUpdateClassMetadata): Uint8Array { + return EventUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", + value: EventUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectAdmin(): EventUpdateProjectAdmin { + return { + projectId: "" + }; +} +export const EventUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + encode(message: EventUpdateProjectAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateProjectAdmin { + const message = createBaseEventUpdateProjectAdmin(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: EventUpdateProjectAdminAmino): EventUpdateProjectAdmin { + const message = createBaseEventUpdateProjectAdmin(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: EventUpdateProjectAdmin): EventUpdateProjectAdminAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: EventUpdateProjectAdminAminoMsg): EventUpdateProjectAdmin { + return EventUpdateProjectAdmin.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateProjectAdminProtoMsg): EventUpdateProjectAdmin { + return EventUpdateProjectAdmin.decode(message.value); + }, + toProto(message: EventUpdateProjectAdmin): Uint8Array { + return EventUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", + value: EventUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseEventUpdateProjectMetadata(): EventUpdateProjectMetadata { + return { + projectId: "" + }; +} +export const EventUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + encode(message: EventUpdateProjectMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateProjectMetadata { + const message = createBaseEventUpdateProjectMetadata(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: EventUpdateProjectMetadataAmino): EventUpdateProjectMetadata { + const message = createBaseEventUpdateProjectMetadata(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: EventUpdateProjectMetadataAminoMsg): EventUpdateProjectMetadata { + return EventUpdateProjectMetadata.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateProjectMetadataProtoMsg): EventUpdateProjectMetadata { + return EventUpdateProjectMetadata.decode(message.value); + }, + toProto(message: EventUpdateProjectMetadata): Uint8Array { + return EventUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", + value: EventUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseEventUpdateBatchMetadata(): EventUpdateBatchMetadata { + return { + batchDenom: "" + }; +} +export const EventUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + encode(message: EventUpdateBatchMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventUpdateBatchMetadata { + const message = createBaseEventUpdateBatchMetadata(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: EventUpdateBatchMetadataAmino): EventUpdateBatchMetadata { + const message = createBaseEventUpdateBatchMetadata(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: EventUpdateBatchMetadataAminoMsg): EventUpdateBatchMetadata { + return EventUpdateBatchMetadata.fromAmino(object.value); + }, + fromProtoMsg(message: EventUpdateBatchMetadataProtoMsg): EventUpdateBatchMetadata { + return EventUpdateBatchMetadata.decode(message.value); + }, + toProto(message: EventUpdateBatchMetadata): Uint8Array { + return EventUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", + value: EventUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseEventSealBatch(): EventSealBatch { + return { + batchDenom: "" + }; +} +export const EventSealBatch = { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + encode(message: EventSealBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventSealBatch { + const message = createBaseEventSealBatch(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: EventSealBatchAmino): EventSealBatch { + const message = createBaseEventSealBatch(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: EventSealBatch): EventSealBatchAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: EventSealBatchAminoMsg): EventSealBatch { + return EventSealBatch.fromAmino(object.value); + }, + fromProtoMsg(message: EventSealBatchProtoMsg): EventSealBatch { + return EventSealBatch.decode(message.value); + }, + toProto(message: EventSealBatch): Uint8Array { + return EventSealBatch.encode(message).finish(); + }, + toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventSealBatch", + value: EventSealBatch.encode(message).finish() + }; + } +}; +function createBaseEventAddCreditType(): EventAddCreditType { + return { + abbreviation: "" + }; +} +export const EventAddCreditType = { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + encode(message: EventAddCreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventAddCreditType { + const message = createBaseEventAddCreditType(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object: EventAddCreditTypeAmino): EventAddCreditType { + const message = createBaseEventAddCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message: EventAddCreditType): EventAddCreditTypeAmino { + const obj: any = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object: EventAddCreditTypeAminoMsg): EventAddCreditType { + return EventAddCreditType.fromAmino(object.value); + }, + fromProtoMsg(message: EventAddCreditTypeProtoMsg): EventAddCreditType { + return EventAddCreditType.decode(message.value); + }, + toProto(message: EventAddCreditType): Uint8Array { + return EventAddCreditType.encode(message).finish(); + }, + toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventAddCreditType", + value: EventAddCreditType.encode(message).finish() + }; + } +}; +function createBaseEventBridge(): EventBridge { + return { + target: "", + recipient: "", + contract: "", + amount: "", + owner: "", + batchDenom: "" + }; +} +export const EventBridge = { + typeUrl: "/regen.ecocredit.v1.EventBridge", + encode(message: EventBridge, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.target !== "") { + writer.uint32(10).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.amount !== "") { + writer.uint32(34).string(message.amount); + } + if (message.owner !== "") { + writer.uint32(42).string(message.owner); + } + if (message.batchDenom !== "") { + writer.uint32(50).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventBridge { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.target = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.amount = reader.string(); + break; + case 5: + message.owner = reader.string(); + break; + case 6: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventBridge { + const message = createBaseEventBridge(); + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.contract = object.contract ?? ""; + message.amount = object.amount ?? ""; + message.owner = object.owner ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: EventBridgeAmino): EventBridge { + const message = createBaseEventBridge(); + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: EventBridge): EventBridgeAmino { + const obj: any = {}; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: EventBridgeAminoMsg): EventBridge { + return EventBridge.fromAmino(object.value); + }, + fromProtoMsg(message: EventBridgeProtoMsg): EventBridge { + return EventBridge.decode(message.value); + }, + toProto(message: EventBridge): Uint8Array { + return EventBridge.encode(message).finish(); + }, + toProtoMsg(message: EventBridge): EventBridgeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventBridge", + value: EventBridge.encode(message).finish() + }; + } +}; +function createBaseEventBridgeReceive(): EventBridgeReceive { + return { + projectId: "", + batchDenom: "", + amount: "", + originTx: undefined + }; +} +export const EventBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + encode(message: EventBridgeReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventBridgeReceive { + const message = createBaseEventBridgeReceive(); + message.projectId = object.projectId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: EventBridgeReceiveAmino): EventBridgeReceive { + const message = createBaseEventBridgeReceive(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: EventBridgeReceive): EventBridgeReceiveAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: EventBridgeReceiveAminoMsg): EventBridgeReceive { + return EventBridgeReceive.fromAmino(object.value); + }, + fromProtoMsg(message: EventBridgeReceiveProtoMsg): EventBridgeReceive { + return EventBridgeReceive.decode(message.value); + }, + toProto(message: EventBridgeReceive): Uint8Array { + return EventBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message: EventBridgeReceive): EventBridgeReceiveProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", + value: EventBridgeReceive.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/query.lcd.ts b/packages/api/src/regen/ecocredit/v1/query.lcd.ts new file mode 100644 index 00000000..a5c45c8d --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/query.lcd.ts @@ -0,0 +1,294 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params: QueryClassesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassesByAdmin queries for all credit classes with a specific admin + address. */ + async classesByAdmin(params: QueryClassesByAdminRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Class queries for information on a credit class. */ + async class(params: QueryClassRequest): Promise { + const endpoint = `regen/ecocredit/v1/class/${params.classId}`; + return await this.req.get(endpoint); + } + /* ClassIssuers queries for the addresses of the issuers for a credit class. */ + async classIssuers(params: QueryClassIssuersRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* Projects queries for all projects with pagination. */ + async projects(params: QueryProjectsRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects`; + return await this.req.get(endpoint, options); + } + /* ProjectsByClass queries for all projects within a class with pagination. */ + async projectsByClass(params: QueryProjectsByClassRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByReferenceId queries for all projects by reference-id with + pagination. */ + async projectsByReferenceId(params: QueryProjectsByReferenceIdRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; + return await this.req.get(endpoint, options); + } + /* ProjectsByAdmin queries for all projects by admin with + pagination. */ + async projectsByAdmin(params: QueryProjectsByAdminRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; + return await this.req.get(endpoint, options); + } + /* Project queries for information on a project. */ + async project(params: QueryProjectRequest): Promise { + const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches with pagination. */ + async batches(params: QueryBatchesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches`; + return await this.req.get(endpoint, options); + } + /* BatchesByIssuer queries all batches issued from a given issuer address. */ + async batchesByIssuer(params: QueryBatchesByIssuerRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; + return await this.req.get(endpoint, options); + } + /* BatchesByClass queries all batches issued from a given class. */ + async batchesByClass(params: QueryBatchesByClassRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; + return await this.req.get(endpoint, options); + } + /* BatchesByProject queries for all batches from a given project with + pagination. */ + async batchesByProject(params: QueryBatchesByProjectRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; + return await this.req.get(endpoint, options); + } + /* Batch queries for information on a credit batch. */ + async batch(params: QueryBatchRequest): Promise { + const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account address. */ + async balance(params: QueryBalanceRequest): Promise { + const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; + return await this.req.get(endpoint); + } + /* Balances queries all credit balances the given account holds. */ + async balances(params: QueryBalancesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances/${params.address}`; + return await this.req.get(endpoint, options); + } + /* BalancesByBatch queries all credit balances from a given batch. + + Since Revision 2 */ + async balancesByBatch(params: QueryBalancesByBatchRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; + return await this.req.get(endpoint, options); + } + /* AllBalances queries all credit balances. + + Since Revision 2 */ + async allBalances(params: QueryAllBalancesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/all-balances`; + return await this.req.get(endpoint, options); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params: QuerySupplyRequest): Promise { + const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params: QueryCreditTypesRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. + + Deprecated (Since Revision 2): This rpc will be removed in the next + version. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1/params`; + return await this.req.get(endpoint); + } + /* CreditType queries credit type information by abbreviation. */ + async creditType(params: QueryCreditTypeRequest): Promise { + const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; + return await this.req.get(endpoint); + } + /* ClassCreatorAllowlist queries the credit class creator allowlist + enabled setting. + + Since Revision 2 */ + async classCreatorAllowlist(_params: QueryClassCreatorAllowlistRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; + return await this.req.get(endpoint); + } + /* AllowedClassCreators queries allowed credit class creators list. + + Since Revision 2 */ + async allowedClassCreators(params: QueryAllowedClassCreatorsRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1/allowed-class-creators`; + return await this.req.get(endpoint, options); + } + /* ClassFee returns the credit class creation fee. If not set, a credit class + creation fee is not required. + + Since Revision 2 */ + async classFee(_params: QueryClassFeeRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1/class-fee`; + return await this.req.get(endpoint); + } + /* AllowedBridgeChains queries the list of chains allowed to be used in bridge + operations. + + Since Revision 2 */ + async allowedBridgeChains(_params: QueryAllowedBridgeChainsRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/query.rpc.Query.ts b/packages/api/src/regen/ecocredit/v1/query.rpc.Query.ts new file mode 100644 index 00000000..823b751d --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/query.rpc.Query.ts @@ -0,0 +1,366 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; +/** Msg is the regen.ecocredit.v1 Query service. */ +export interface Query { + /** Classes queries for all credit classes with pagination. */ + classes(request?: QueryClassesRequest): Promise; + /** + * ClassesByAdmin queries for all credit classes with a specific admin + * address. + */ + classesByAdmin(request: QueryClassesByAdminRequest): Promise; + /** Class queries for information on a credit class. */ + class(request: QueryClassRequest): Promise; + /** ClassIssuers queries for the addresses of the issuers for a credit class. */ + classIssuers(request: QueryClassIssuersRequest): Promise; + /** Projects queries for all projects with pagination. */ + projects(request?: QueryProjectsRequest): Promise; + /** ProjectsByClass queries for all projects within a class with pagination. */ + projectsByClass(request: QueryProjectsByClassRequest): Promise; + /** + * ProjectsByReferenceId queries for all projects by reference-id with + * pagination. + */ + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; + /** + * ProjectsByAdmin queries for all projects by admin with + * pagination. + */ + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; + /** Project queries for information on a project. */ + project(request: QueryProjectRequest): Promise; + /** Batches queries for all batches with pagination. */ + batches(request?: QueryBatchesRequest): Promise; + /** BatchesByIssuer queries all batches issued from a given issuer address. */ + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; + /** BatchesByClass queries all batches issued from a given class. */ + batchesByClass(request: QueryBatchesByClassRequest): Promise; + /** + * BatchesByProject queries for all batches from a given project with + * pagination. + */ + batchesByProject(request: QueryBatchesByProjectRequest): Promise; + /** Batch queries for information on a credit batch. */ + batch(request: QueryBatchRequest): Promise; + /** + * Balance queries the balance (both tradable and retired) of a given credit + * batch for a given account address. + */ + balance(request: QueryBalanceRequest): Promise; + /** Balances queries all credit balances the given account holds. */ + balances(request: QueryBalancesRequest): Promise; + /** + * BalancesByBatch queries all credit balances from a given batch. + * + * Since Revision 2 + */ + balancesByBatch(request: QueryBalancesByBatchRequest): Promise; + /** + * AllBalances queries all credit balances. + * + * Since Revision 2 + */ + allBalances(request?: QueryAllBalancesRequest): Promise; + /** Supply queries the tradable and retired supply of a credit batch. */ + supply(request: QuerySupplyRequest): Promise; + /** + * CreditTypes returns the list of allowed types that credit classes can have. + * See Types/CreditType for more details. + */ + creditTypes(request?: QueryCreditTypesRequest): Promise; + /** + * Params queries the ecocredit module parameters. + * + * Deprecated (Since Revision 2): This rpc will be removed in the next + * version. + */ + params(request?: QueryParamsRequest): Promise; + /** CreditType queries credit type information by abbreviation. */ + creditType(request: QueryCreditTypeRequest): Promise; + /** + * ClassCreatorAllowlist queries the credit class creator allowlist + * enabled setting. + * + * Since Revision 2 + */ + classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; + /** + * AllowedClassCreators queries allowed credit class creators list. + * + * Since Revision 2 + */ + allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; + /** + * ClassFee returns the credit class creation fee. If not set, a credit class + * creation fee is not required. + * + * Since Revision 2 + */ + classFee(request?: QueryClassFeeRequest): Promise; + /** + * AllowedBridgeChains queries the list of chains allowed to be used in bridge + * operations. + * + * Since Revision 2 + */ + allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classesByAdmin = this.classesByAdmin.bind(this); + this.class = this.class.bind(this); + this.classIssuers = this.classIssuers.bind(this); + this.projects = this.projects.bind(this); + this.projectsByClass = this.projectsByClass.bind(this); + this.projectsByReferenceId = this.projectsByReferenceId.bind(this); + this.projectsByAdmin = this.projectsByAdmin.bind(this); + this.project = this.project.bind(this); + this.batches = this.batches.bind(this); + this.batchesByIssuer = this.batchesByIssuer.bind(this); + this.batchesByClass = this.batchesByClass.bind(this); + this.batchesByProject = this.batchesByProject.bind(this); + this.batch = this.batch.bind(this); + this.balance = this.balance.bind(this); + this.balances = this.balances.bind(this); + this.balancesByBatch = this.balancesByBatch.bind(this); + this.allBalances = this.allBalances.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + this.creditType = this.creditType.bind(this); + this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); + this.allowedClassCreators = this.allowedClassCreators.bind(this); + this.classFee = this.classFee.bind(this); + this.allowedBridgeChains = this.allowedBridgeChains.bind(this); + } + classes(request: QueryClassesRequest = { + pagination: undefined + }): Promise { + const data = QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); + return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); + } + classesByAdmin(request: QueryClassesByAdminRequest): Promise { + const data = QueryClassesByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); + return promise.then(data => QueryClassesByAdminResponse.decode(new BinaryReader(data))); + } + class(request: QueryClassRequest): Promise { + const data = QueryClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); + return promise.then(data => QueryClassResponse.decode(new BinaryReader(data))); + } + classIssuers(request: QueryClassIssuersRequest): Promise { + const data = QueryClassIssuersRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); + return promise.then(data => QueryClassIssuersResponse.decode(new BinaryReader(data))); + } + projects(request: QueryProjectsRequest = { + pagination: undefined + }): Promise { + const data = QueryProjectsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); + return promise.then(data => QueryProjectsResponse.decode(new BinaryReader(data))); + } + projectsByClass(request: QueryProjectsByClassRequest): Promise { + const data = QueryProjectsByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); + return promise.then(data => QueryProjectsByClassResponse.decode(new BinaryReader(data))); + } + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise { + const data = QueryProjectsByReferenceIdRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); + return promise.then(data => QueryProjectsByReferenceIdResponse.decode(new BinaryReader(data))); + } + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise { + const data = QueryProjectsByAdminRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); + return promise.then(data => QueryProjectsByAdminResponse.decode(new BinaryReader(data))); + } + project(request: QueryProjectRequest): Promise { + const data = QueryProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); + return promise.then(data => QueryProjectResponse.decode(new BinaryReader(data))); + } + batches(request: QueryBatchesRequest = { + pagination: undefined + }): Promise { + const data = QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); + return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); + } + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise { + const data = QueryBatchesByIssuerRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); + return promise.then(data => QueryBatchesByIssuerResponse.decode(new BinaryReader(data))); + } + batchesByClass(request: QueryBatchesByClassRequest): Promise { + const data = QueryBatchesByClassRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); + return promise.then(data => QueryBatchesByClassResponse.decode(new BinaryReader(data))); + } + batchesByProject(request: QueryBatchesByProjectRequest): Promise { + const data = QueryBatchesByProjectRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); + return promise.then(data => QueryBatchesByProjectResponse.decode(new BinaryReader(data))); + } + batch(request: QueryBatchRequest): Promise { + const data = QueryBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); + return promise.then(data => QueryBatchResponse.decode(new BinaryReader(data))); + } + balance(request: QueryBalanceRequest): Promise { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + balances(request: QueryBalancesRequest): Promise { + const data = QueryBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); + return promise.then(data => QueryBalancesResponse.decode(new BinaryReader(data))); + } + balancesByBatch(request: QueryBalancesByBatchRequest): Promise { + const data = QueryBalancesByBatchRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); + return promise.then(data => QueryBalancesByBatchResponse.decode(new BinaryReader(data))); + } + allBalances(request: QueryAllBalancesRequest = { + pagination: undefined + }): Promise { + const data = QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); + return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); + } + supply(request: QuerySupplyRequest): Promise { + const data = QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); + return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); + } + creditTypes(request: QueryCreditTypesRequest = {}): Promise { + const data = QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); + return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } + creditType(request: QueryCreditTypeRequest): Promise { + const data = QueryCreditTypeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); + return promise.then(data => QueryCreditTypeResponse.decode(new BinaryReader(data))); + } + classCreatorAllowlist(request: QueryClassCreatorAllowlistRequest = {}): Promise { + const data = QueryClassCreatorAllowlistRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); + return promise.then(data => QueryClassCreatorAllowlistResponse.decode(new BinaryReader(data))); + } + allowedClassCreators(request: QueryAllowedClassCreatorsRequest = { + pagination: undefined + }): Promise { + const data = QueryAllowedClassCreatorsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); + return promise.then(data => QueryAllowedClassCreatorsResponse.decode(new BinaryReader(data))); + } + classFee(request: QueryClassFeeRequest = {}): Promise { + const data = QueryClassFeeRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); + return promise.then(data => QueryClassFeeResponse.decode(new BinaryReader(data))); + } + allowedBridgeChains(request: QueryAllowedBridgeChainsRequest = {}): Promise { + const data = QueryAllowedBridgeChainsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); + return promise.then(data => QueryAllowedBridgeChainsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request?: QueryClassesRequest): Promise { + return queryService.classes(request); + }, + classesByAdmin(request: QueryClassesByAdminRequest): Promise { + return queryService.classesByAdmin(request); + }, + class(request: QueryClassRequest): Promise { + return queryService.class(request); + }, + classIssuers(request: QueryClassIssuersRequest): Promise { + return queryService.classIssuers(request); + }, + projects(request?: QueryProjectsRequest): Promise { + return queryService.projects(request); + }, + projectsByClass(request: QueryProjectsByClassRequest): Promise { + return queryService.projectsByClass(request); + }, + projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise { + return queryService.projectsByReferenceId(request); + }, + projectsByAdmin(request: QueryProjectsByAdminRequest): Promise { + return queryService.projectsByAdmin(request); + }, + project(request: QueryProjectRequest): Promise { + return queryService.project(request); + }, + batches(request?: QueryBatchesRequest): Promise { + return queryService.batches(request); + }, + batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise { + return queryService.batchesByIssuer(request); + }, + batchesByClass(request: QueryBatchesByClassRequest): Promise { + return queryService.batchesByClass(request); + }, + batchesByProject(request: QueryBatchesByProjectRequest): Promise { + return queryService.batchesByProject(request); + }, + batch(request: QueryBatchRequest): Promise { + return queryService.batch(request); + }, + balance(request: QueryBalanceRequest): Promise { + return queryService.balance(request); + }, + balances(request: QueryBalancesRequest): Promise { + return queryService.balances(request); + }, + balancesByBatch(request: QueryBalancesByBatchRequest): Promise { + return queryService.balancesByBatch(request); + }, + allBalances(request?: QueryAllBalancesRequest): Promise { + return queryService.allBalances(request); + }, + supply(request: QuerySupplyRequest): Promise { + return queryService.supply(request); + }, + creditTypes(request?: QueryCreditTypesRequest): Promise { + return queryService.creditTypes(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + creditType(request: QueryCreditTypeRequest): Promise { + return queryService.creditType(request); + }, + classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise { + return queryService.classCreatorAllowlist(request); + }, + allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise { + return queryService.allowedClassCreators(request); + }, + classFee(request?: QueryClassFeeRequest): Promise { + return queryService.classFee(request); + }, + allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise { + return queryService.allowedBridgeChains(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/query.ts b/packages/api/src/regen/ecocredit/v1/query.ts new file mode 100644 index 00000000..50495322 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/query.ts @@ -0,0 +1,5794 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { Params, ParamsAmino, ParamsSDKType } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; + value: Uint8Array; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesRequest"; + value: QueryClassesRequestAmino; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; + value: Uint8Array; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesResponse"; + value: QueryClassesResponseAmino; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequest { + /** admin is the address of the admin of the class. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesByAdminRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; + value: Uint8Array; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequestAmino { + /** admin is the address of the admin of the class. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesByAdminRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; + value: QueryClassesByAdminRequestAmino; +} +/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ +export interface QueryClassesByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesByAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; + value: Uint8Array; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesByAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; + value: QueryClassesByAdminResponseAmino; +} +/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ +export interface QueryClassesByAdminResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; +} +export interface QueryClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest"; + value: Uint8Array; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; +} +export interface QueryClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassRequest"; + value: QueryClassRequestAmino; +} +/** QueryClassRequest is the Query/Class request type. */ +export interface QueryClassRequestSDKType { + class_id: string; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponse { + /** class is the fetched credit class. */ + class?: ClassInfo; +} +export interface QueryClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; + value: Uint8Array; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponseAmino { + /** class is the fetched credit class. */ + class?: ClassInfoAmino; +} +export interface QueryClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassResponse"; + value: QueryClassResponseAmino; +} +/** QueryClassResponse is the Query/Class request type. */ +export interface QueryClassResponseSDKType { + class?: ClassInfoSDKType; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassIssuersRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; + value: Uint8Array; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassIssuersRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassIssuersRequest"; + value: QueryClassIssuersRequestAmino; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ +export interface QueryClassIssuersRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponse { + /** issuers is a list of issuers for the credit class */ + issuers: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; + value: Uint8Array; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponseAmino { + /** issuers is a list of issuers for the credit class */ + issuers?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassIssuersResponse"; + value: QueryClassIssuersResponseAmino; +} +/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ +export interface QueryClassIssuersResponseSDKType { + issuers: string[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; + value: Uint8Array; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsRequest"; + value: QueryProjectsRequestAmino; +} +/** QueryProjectsRequest is the Query/Projects request type. */ +export interface QueryProjectsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; + value: Uint8Array; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsResponse"; + value: QueryProjectsResponseAmino; +} +/** QueryProjectsResponse is the Query/Projects response type. */ +export interface QueryProjectsResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; + value: Uint8Array; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; + value: QueryProjectsByClassRequestAmino; +} +/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ +export interface QueryProjectsByClassRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; + value: Uint8Array; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; + value: QueryProjectsByClassResponseAmino; +} +/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ +export interface QueryProjectsByClassResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequest { + /** reference_id is the project reference id. */ + referenceId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByReferenceIdRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; + value: Uint8Array; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequestAmino { + /** reference_id is the project reference id. */ + reference_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByReferenceIdRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; + value: QueryProjectsByReferenceIdRequestAmino; +} +/** + * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request + * type. + */ +export interface QueryProjectsByReferenceIdRequestSDKType { + reference_id: string; + pagination?: PageRequestSDKType; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByReferenceIdResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; + value: Uint8Array; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByReferenceIdResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; + value: QueryProjectsByReferenceIdResponseAmino; +} +/** + * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId + * response type. + */ +export interface QueryProjectsByReferenceIdResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequest { + /** admin is the account address of project admin. */ + admin: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryProjectsByAdminRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; + value: Uint8Array; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequestAmino { + /** admin is the account address of project admin. */ + admin?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryProjectsByAdminRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; + value: QueryProjectsByAdminRequestAmino; +} +/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ +export interface QueryProjectsByAdminRequestSDKType { + admin: string; + pagination?: PageRequestSDKType; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponse { + /** projects are the fetched projects. */ + projects: ProjectInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryProjectsByAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; + value: Uint8Array; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponseAmino { + /** projects are the fetched projects. */ + projects?: ProjectInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryProjectsByAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; + value: QueryProjectsByAdminResponseAmino; +} +/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ +export interface QueryProjectsByAdminResponseSDKType { + projects: ProjectInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequest { + /** project_id is the unique identifier of the project to query. */ + projectId: string; +} +export interface QueryProjectRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest"; + value: Uint8Array; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequestAmino { + /** project_id is the unique identifier of the project to query. */ + project_id?: string; +} +export interface QueryProjectRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectRequest"; + value: QueryProjectRequestAmino; +} +/** QueryProjectRequest is the Query/Project request type. */ +export interface QueryProjectRequestSDKType { + project_id: string; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponse { + /** project is the fetched project. */ + project?: ProjectInfo; +} +export interface QueryProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; + value: Uint8Array; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponseAmino { + /** project is the fetched project. */ + project?: ProjectInfoAmino; +} +export interface QueryProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryProjectResponse"; + value: QueryProjectResponseAmino; +} +/** QueryProjectResponse is the Query/Project response type. */ +export interface QueryProjectResponseSDKType { + project?: ProjectInfoSDKType; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; + value: Uint8Array; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesRequest"; + value: QueryBatchesRequestAmino; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; + value: Uint8Array; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesResponse"; + value: QueryBatchesResponseAmino; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequest { + /** issuer is the address that issued the batch */ + issuer: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByIssuerRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; + value: Uint8Array; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequestAmino { + /** issuer is the address that issued the batch */ + issuer?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByIssuerRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; + value: QueryBatchesByIssuerRequestAmino; +} +/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ +export interface QueryBatchesByIssuerRequestSDKType { + issuer: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByIssuerResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; + value: Uint8Array; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByIssuerResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; + value: QueryBatchesByIssuerResponseAmino; +} +/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ +export interface QueryBatchesByIssuerResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequest { + /** class_id is the unique identifier of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByClassRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; + value: Uint8Array; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequestAmino { + /** class_id is the unique identifier of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByClassRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; + value: QueryBatchesByClassRequestAmino; +} +/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ +export interface QueryBatchesByClassRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequest { + /** project_id is the unique identifier of the project to query. */ + projectId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesByProjectRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; + value: Uint8Array; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequestAmino { + /** project_id is the unique identifier of the project to query. */ + project_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesByProjectRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; + value: QueryBatchesByProjectRequestAmino; +} +/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ +export interface QueryBatchesByProjectRequestSDKType { + project_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; + value: Uint8Array; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; + value: QueryBatchesByProjectResponseAmino; +} +/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ +export interface QueryBatchesByProjectResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponse { + /** batches are the fetched credit batches. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesByClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; + value: Uint8Array; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponseAmino { + /** batches are the fetched credit batches. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesByClassResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; + value: QueryBatchesByClassResponseAmino; +} +/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ +export interface QueryBatchesByClassResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequest { + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QueryBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest"; + value: Uint8Array; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequestAmino { + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QueryBatchRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchRequest"; + value: QueryBatchRequestAmino; +} +/** QueryBatchRequest is the Query/Batch request type. */ +export interface QueryBatchRequestSDKType { + batch_denom: string; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponse { + /** batch is the fetched credit batch. */ + batch?: BatchInfo; +} +export interface QueryBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; + value: Uint8Array; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponseAmino { + /** batch is the fetched credit batch. */ + batch?: BatchInfoAmino; +} +export interface QueryBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBatchResponse"; + value: QueryBatchResponseAmino; +} +/** QueryBatchResponse is the Query/Batch response type. */ +export interface QueryBatchResponseSDKType { + batch?: BatchInfoSDKType; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequest { + /** address is the address of the account whose balance is being queried. */ + address: string; + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestAmino { + /** address is the address of the account whose balance is being queried. */ + address?: string; + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestSDKType { + address: string; + batch_denom: string; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponse { + /** balance is the balance of the given account. */ + balance?: BatchBalanceInfo; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseAmino { + /** balance is the balance of the given account. */ + balance?: BatchBalanceInfoAmino; +} +export interface QueryBalanceResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseSDKType { + balance?: BatchBalanceInfoSDKType; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequest { + /** address is the address of the account whose balance is being queried. */ + address: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; + value: Uint8Array; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequestAmino { + /** address is the address of the account whose balance is being queried. */ + address?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBalancesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesRequest"; + value: QueryBalancesRequestAmino; +} +/** QueryBalancesRequest is the Query/Balances request type. */ +export interface QueryBalancesRequestSDKType { + address: string; + pagination?: PageRequestSDKType; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; + value: Uint8Array; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBalancesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesResponse"; + value: QueryBalancesResponseAmino; +} +/** QueryBalancesResponse is the Query/Balances response type. */ +export interface QueryBalancesResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequest { + /** batch_denom is the denom of the batch to query by. */ + batchDenom: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBalancesByBatchRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; + value: Uint8Array; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequestAmino { + /** batch_denom is the denom of the batch to query by. */ + batch_denom?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBalancesByBatchRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; + value: QueryBalancesByBatchRequestAmino; +} +/** + * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchRequestSDKType { + batch_denom: string; + pagination?: PageRequestSDKType; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBalancesByBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; + value: Uint8Array; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBalancesByBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; + value: QueryBalancesByBatchResponseAmino; +} +/** + * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. + * + * Since Revision 2 + */ +export interface QueryBalancesByBatchResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllBalancesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; + value: Uint8Array; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllBalancesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllBalancesRequest"; + value: QueryAllBalancesRequestAmino; +} +/** + * QueryAllBalancesRequest is the Query/AllBalances request type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponse { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances: BatchBalanceInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllBalancesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; + value: Uint8Array; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponseAmino { + /** + * balances are a list of balances from different credit batches that the + * account holds. + */ + balances?: BatchBalanceInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllBalancesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllBalancesResponse"; + value: QueryAllBalancesResponseAmino; +} +/** + * QueryAllBalancesResponse is the Query/AllBalances response type. + * + * Since Revision 2 + */ +export interface QueryAllBalancesResponseSDKType { + balances: BatchBalanceInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequest { + /** batch_denom is the unique identifier of the credit batch to query. */ + batchDenom: string; +} +export interface QuerySupplyRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest"; + value: Uint8Array; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestAmino { + /** batch_denom is the unique identifier of the credit batch to query. */ + batch_denom?: string; +} +export interface QuerySupplyRequestAminoMsg { + type: "/regen.ecocredit.v1.QuerySupplyRequest"; + value: QuerySupplyRequestAmino; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestSDKType { + batch_denom: string; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponse { + /** + * tradable_amount is the decimal number of tradable credits in the batch + * supply. + */ + tradableAmount: string; + /** + * retired_amount is the decimal number of retired credits in the batch + * supply. + */ + retiredAmount: string; + /** + * cancelled_amount is the decimal number of cancelled credits in the batch + * supply. + */ + cancelledAmount: string; +} +export interface QuerySupplyResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse"; + value: Uint8Array; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseAmino { + /** + * tradable_amount is the decimal number of tradable credits in the batch + * supply. + */ + tradable_amount?: string; + /** + * retired_amount is the decimal number of retired credits in the batch + * supply. + */ + retired_amount?: string; + /** + * cancelled_amount is the decimal number of cancelled credits in the batch + * supply. + */ + cancelled_amount?: string; +} +export interface QuerySupplyResponseAminoMsg { + type: "/regen.ecocredit.v1.QuerySupplyResponse"; + value: QuerySupplyResponseAmino; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseSDKType { + tradable_amount: string; + retired_amount: string; + cancelled_amount: string; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequest {} +export interface QueryCreditTypesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestAmino {} +export interface QueryCreditTypesRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypesRequest"; + value: QueryCreditTypesRequestAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestSDKType {} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponse { + /** credit_types are the fetched credit types. */ + creditTypes: CreditType[]; +} +export interface QueryCreditTypesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseAmino { + /** credit_types are the fetched credit types. */ + credit_types?: CreditTypeAmino[]; +} +export interface QueryCreditTypesResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; + value: QueryCreditTypesResponseAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseSDKType { + credit_types: CreditTypeSDKType[]; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponse { + /** params defines the parameters of the ecocredit module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the ecocredit module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequest { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation: string; +} +export interface QueryCreditTypeRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest"; + value: Uint8Array; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequestAmino { + /** abbreviation is the abbreviation of the credit type. */ + abbreviation?: string; +} +export interface QueryCreditTypeRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; + value: QueryCreditTypeRequestAmino; +} +/** QueryCreditTypeRequest is the Query/CreditType request type */ +export interface QueryCreditTypeRequestSDKType { + abbreviation: string; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponse { + /** credit_type is the fetched credit type. */ + creditType?: CreditType; +} +export interface QueryCreditTypeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; + value: Uint8Array; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponseAmino { + /** credit_type is the fetched credit type. */ + credit_type?: CreditTypeAmino; +} +export interface QueryCreditTypeResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryCreditTypeResponse"; + value: QueryCreditTypeResponseAmino; +} +/** QueryCreditTypeResponse is the Query/CreditType response type */ +export interface QueryCreditTypeResponseSDKType { + credit_type?: CreditTypeSDKType; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfo { + /** id is the unique identifier of the credit class. */ + id: string; + /** admin is the admin of the credit class. */ + admin: string; + /** metadata is the arbitrary metadata attached to the credit class. */ + metadata: string; + /** + * credit_type_abbrev is the abbreviation of the credit type within which this + * credit class was created. + */ + creditTypeAbbrev: string; +} +export interface ClassInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassInfo"; + value: Uint8Array; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfoAmino { + /** id is the unique identifier of the credit class. */ + id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** metadata is the arbitrary metadata attached to the credit class. */ + metadata?: string; + /** + * credit_type_abbrev is the abbreviation of the credit type within which this + * credit class was created. + */ + credit_type_abbrev?: string; +} +export interface ClassInfoAminoMsg { + type: "/regen.ecocredit.v1.ClassInfo"; + value: ClassInfoAmino; +} +/** ClassInfo is the human-readable credit class information. */ +export interface ClassInfoSDKType { + id: string; + admin: string; + metadata: string; + credit_type_abbrev: string; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfo { + /** id is the unique identifier of the project. */ + id: string; + /** admin is the admin of the project. */ + admin: string; + /** + * class_id is the unique identifier of the credit class within which the + * project was created. + */ + classId: string; + /** + * jurisdiction is the jurisdiction of the project. Full documentation can be + * found in MsgCreateProject.jurisdiction. + */ + jurisdiction: string; + /** metadata is the arbitrary metadata attached to the project. */ + metadata: string; + /** reference_id is any arbitrary string that can be use to reference project. */ + referenceId: string; +} +export interface ProjectInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.ProjectInfo"; + value: Uint8Array; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfoAmino { + /** id is the unique identifier of the project. */ + id?: string; + /** admin is the admin of the project. */ + admin?: string; + /** + * class_id is the unique identifier of the credit class within which the + * project was created. + */ + class_id?: string; + /** + * jurisdiction is the jurisdiction of the project. Full documentation can be + * found in MsgCreateProject.jurisdiction. + */ + jurisdiction?: string; + /** metadata is the arbitrary metadata attached to the project. */ + metadata?: string; + /** reference_id is any arbitrary string that can be use to reference project. */ + reference_id?: string; +} +export interface ProjectInfoAminoMsg { + type: "/regen.ecocredit.v1.ProjectInfo"; + value: ProjectInfoAmino; +} +/** ProjectInfo is the human-readable project information. */ +export interface ProjectInfoSDKType { + id: string; + admin: string; + class_id: string; + jurisdiction: string; + metadata: string; + reference_id: string; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfo { + /** + * issuer is the address that created the batch and the address authorized to + * mint new credits to the credit batch if the credit batch is open. + */ + issuer: string; + /** + * project_id is the unique identifier of the project within which this credit + * batch was created. + */ + projectId: string; + /** + * denom is the unique identifier of the credit batch formed from the project + * name, batch sequence number and dates. + */ + denom: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuanceDate?: Date; + /** + * open determines whether or not the credit batch is open, i.e. whether or + * not new credits can be minted to the credit batch. + */ + open: boolean; +} +export interface BatchInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchInfo"; + value: Uint8Array; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfoAmino { + /** + * issuer is the address that created the batch and the address authorized to + * mint new credits to the credit batch if the credit batch is open. + */ + issuer?: string; + /** + * project_id is the unique identifier of the project within which this credit + * batch was created. + */ + project_id?: string; + /** + * denom is the unique identifier of the credit batch formed from the project + * name, batch sequence number and dates. + */ + denom?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuance_date?: string; + /** + * open determines whether or not the credit batch is open, i.e. whether or + * not new credits can be minted to the credit batch. + */ + open?: boolean; +} +export interface BatchInfoAminoMsg { + type: "/regen.ecocredit.v1.BatchInfo"; + value: BatchInfoAmino; +} +/** BatchInfo is the human-readable credit batch information. */ +export interface BatchInfoSDKType { + issuer: string; + project_id: string; + denom: string; + metadata: string; + start_date?: Date; + end_date?: Date; + issuance_date?: Date; + open: boolean; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfo { + /** address is the address of the account that owns the credits. */ + address: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradableAmount: string; + /** retired_amount is the total number of retired credits owned by address. */ + retiredAmount: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowedAmount: string; +} +export interface BatchBalanceInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo"; + value: Uint8Array; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfoAmino { + /** address is the address of the account that owns the credits. */ + address?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradable_amount?: string; + /** retired_amount is the total number of retired credits owned by address. */ + retired_amount?: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowed_amount?: string; +} +export interface BatchBalanceInfoAminoMsg { + type: "/regen.ecocredit.v1.BatchBalanceInfo"; + value: BatchBalanceInfoAmino; +} +/** BatchBalanceInfo is the human-readable batch balance information. */ +export interface BatchBalanceInfoSDKType { + address: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; + escrowed_amount: string; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequest {} +export interface QueryClassCreatorAllowlistRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; + value: Uint8Array; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequestAmino {} +export interface QueryClassCreatorAllowlistRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; + value: QueryClassCreatorAllowlistRequestAmino; +} +/** + * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistRequestSDKType {} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponse { + /** + * enabled determines whether or not the allowlist for creating credit classes + * is enabled. + */ + enabled: boolean; +} +export interface QueryClassCreatorAllowlistResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; + value: Uint8Array; +} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponseAmino { + /** + * enabled determines whether or not the allowlist for creating credit classes + * is enabled. + */ + enabled?: boolean; +} +export interface QueryClassCreatorAllowlistResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; + value: QueryClassCreatorAllowlistResponseAmino; +} +/** + * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface QueryClassCreatorAllowlistResponseSDKType { + enabled: boolean; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryAllowedClassCreatorsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; + value: Uint8Array; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryAllowedClassCreatorsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; + value: QueryAllowedClassCreatorsRequestAmino; +} +/** + * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsRequestSDKType { + pagination?: PageRequestSDKType; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponse { + /** class_creators is the list of allowed credit class creators. */ + classCreators: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryAllowedClassCreatorsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; + value: Uint8Array; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponseAmino { + /** class_creators is the list of allowed credit class creators. */ + class_creators?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryAllowedClassCreatorsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; + value: QueryAllowedClassCreatorsResponseAmino; +} +/** + * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedClassCreatorsResponseSDKType { + class_creators: string[]; + pagination?: PageResponseSDKType; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequest {} +export interface QueryClassFeeRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest"; + value: Uint8Array; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequestAmino {} +export interface QueryClassFeeRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryClassFeeRequest"; + value: QueryClassFeeRequestAmino; +} +/** + * QueryClassFeeRequest is the Query/ClassFee request type. + * + * Since Revision 2 + */ +export interface QueryClassFeeRequestSDKType {} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponse { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: Coin; +} +export interface QueryClassFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; + value: Uint8Array; +} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponseAmino { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: CoinAmino; +} +export interface QueryClassFeeResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryClassFeeResponse"; + value: QueryClassFeeResponseAmino; +} +/** + * QueryClassFeeResponse is the Query/ClassFee response type. + * + * Since Revision 2 + */ +export interface QueryClassFeeResponseSDKType { + fee?: CoinSDKType; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequest {} +export interface QueryAllowedBridgeChainsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; + value: Uint8Array; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequestAmino {} +export interface QueryAllowedBridgeChainsRequestAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; + value: QueryAllowedBridgeChainsRequestAmino; +} +/** + * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsRequestSDKType {} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponse { + /** + * allowed_bridge_chains is a list of chains that are allowed to be used in + * bridge operations. + */ + allowedBridgeChains: string[]; +} +export interface QueryAllowedBridgeChainsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; + value: Uint8Array; +} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponseAmino { + /** + * allowed_bridge_chains is a list of chains that are allowed to be used in + * bridge operations. + */ + allowed_bridge_chains?: string[]; +} +export interface QueryAllowedBridgeChainsResponseAminoMsg { + type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; + value: QueryAllowedBridgeChainsResponseAmino; +} +/** + * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response + * type. + * + * Since Revision 2 + */ +export interface QueryAllowedBridgeChainsResponseSDKType { + allowed_bridge_chains: string[]; +} +function createBaseQueryClassesRequest(): QueryClassesRequest { + return { + pagination: undefined + }; +} +export const QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesRequest { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesRequest): QueryClassesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest { + return QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest { + return QueryClassesRequest.decode(message.value); + }, + toProto(message: QueryClassesRequest): Uint8Array { + return QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", + value: QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse(): QueryClassesResponse { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.classes) { + ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesResponse { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesResponse): QueryClassesResponseAmino { + const obj: any = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse { + return QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse { + return QueryClassesResponse.decode(message.value); + }, + toProto(message: QueryClassesResponse): Uint8Array { + return QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", + value: QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminRequest(): QueryClassesByAdminRequest { + return { + admin: "", + pagination: undefined + }; +} +export const QueryClassesByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + encode(message: QueryClassesByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesByAdminRequest { + const message = createBaseQueryClassesByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesByAdminRequestAmino): QueryClassesByAdminRequest { + const message = createBaseQueryClassesByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesByAdminRequestAminoMsg): QueryClassesByAdminRequest { + return QueryClassesByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesByAdminRequestProtoMsg): QueryClassesByAdminRequest { + return QueryClassesByAdminRequest.decode(message.value); + }, + toProto(message: QueryClassesByAdminRequest): Uint8Array { + return QueryClassesByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", + value: QueryClassesByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesByAdminResponse(): QueryClassesByAdminResponse { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + encode(message: QueryClassesByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.classes) { + ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesByAdminResponse { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesByAdminResponseAmino): QueryClassesByAdminResponse { + const message = createBaseQueryClassesByAdminResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseAmino { + const obj: any = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesByAdminResponseAminoMsg): QueryClassesByAdminResponse { + return QueryClassesByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesByAdminResponseProtoMsg): QueryClassesByAdminResponse { + return QueryClassesByAdminResponse.decode(message.value); + }, + toProto(message: QueryClassesByAdminResponse): Uint8Array { + return QueryClassesByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", + value: QueryClassesByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassRequest(): QueryClassRequest { + return { + classId: "" + }; +} +export const QueryClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + encode(message: QueryClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassRequest { + const message = createBaseQueryClassRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: QueryClassRequestAmino): QueryClassRequest { + const message = createBaseQueryClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: QueryClassRequest): QueryClassRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest { + return QueryClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest { + return QueryClassRequest.decode(message.value); + }, + toProto(message: QueryClassRequest): Uint8Array { + return QueryClassRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassRequest", + value: QueryClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassResponse(): QueryClassResponse { + return { + class: undefined + }; +} +export const QueryClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + encode(message: QueryClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.class !== undefined) { + ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.class = ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassResponse { + const message = createBaseQueryClassResponse(); + message.class = object.class !== undefined && object.class !== null ? ClassInfo.fromPartial(object.class) : undefined; + return message; + }, + fromAmino(object: QueryClassResponseAmino): QueryClassResponse { + const message = createBaseQueryClassResponse(); + if (object.class !== undefined && object.class !== null) { + message.class = ClassInfo.fromAmino(object.class); + } + return message; + }, + toAmino(message: QueryClassResponse): QueryClassResponseAmino { + const obj: any = {}; + obj.class = message.class ? ClassInfo.toAmino(message.class) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse { + return QueryClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse { + return QueryClassResponse.decode(message.value); + }, + toProto(message: QueryClassResponse): Uint8Array { + return QueryClassResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassResponse", + value: QueryClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersRequest(): QueryClassIssuersRequest { + return { + classId: "", + pagination: undefined + }; +} +export const QueryClassIssuersRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + encode(message: QueryClassIssuersRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassIssuersRequest { + const message = createBaseQueryClassIssuersRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassIssuersRequestAmino): QueryClassIssuersRequest { + const message = createBaseQueryClassIssuersRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassIssuersRequest): QueryClassIssuersRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassIssuersRequestAminoMsg): QueryClassIssuersRequest { + return QueryClassIssuersRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassIssuersRequestProtoMsg): QueryClassIssuersRequest { + return QueryClassIssuersRequest.decode(message.value); + }, + toProto(message: QueryClassIssuersRequest): Uint8Array { + return QueryClassIssuersRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", + value: QueryClassIssuersRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassIssuersResponse(): QueryClassIssuersResponse { + return { + issuers: [], + pagination: undefined + }; +} +export const QueryClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + encode(message: QueryClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.issuers) { + writer.uint32(10).string(v!); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuers.push(reader.string()); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassIssuersResponse { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassIssuersResponseAmino): QueryClassIssuersResponse { + const message = createBaseQueryClassIssuersResponse(); + message.issuers = object.issuers?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassIssuersResponse): QueryClassIssuersResponseAmino { + const obj: any = {}; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } else { + obj.issuers = message.issuers; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassIssuersResponseAminoMsg): QueryClassIssuersResponse { + return QueryClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassIssuersResponseProtoMsg): QueryClassIssuersResponse { + return QueryClassIssuersResponse.decode(message.value); + }, + toProto(message: QueryClassIssuersResponse): Uint8Array { + return QueryClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", + value: QueryClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsRequest(): QueryProjectsRequest { + return { + pagination: undefined + }; +} +export const QueryProjectsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + encode(message: QueryProjectsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsRequest { + const message = createBaseQueryProjectsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsRequestAmino): QueryProjectsRequest { + const message = createBaseQueryProjectsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsRequest): QueryProjectsRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsRequestAminoMsg): QueryProjectsRequest { + return QueryProjectsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsRequestProtoMsg): QueryProjectsRequest { + return QueryProjectsRequest.decode(message.value); + }, + toProto(message: QueryProjectsRequest): Uint8Array { + return QueryProjectsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", + value: QueryProjectsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsResponse(): QueryProjectsResponse { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + encode(message: QueryProjectsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.projects) { + ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsResponse { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsResponseAmino): QueryProjectsResponse { + const message = createBaseQueryProjectsResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsResponse): QueryProjectsResponseAmino { + const obj: any = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsResponseAminoMsg): QueryProjectsResponse { + return QueryProjectsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsResponseProtoMsg): QueryProjectsResponse { + return QueryProjectsResponse.decode(message.value); + }, + toProto(message: QueryProjectsResponse): Uint8Array { + return QueryProjectsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", + value: QueryProjectsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassRequest(): QueryProjectsByClassRequest { + return { + classId: "", + pagination: undefined + }; +} +export const QueryProjectsByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + encode(message: QueryProjectsByClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByClassRequest { + const message = createBaseQueryProjectsByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByClassRequestAmino): QueryProjectsByClassRequest { + const message = createBaseQueryProjectsByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByClassRequestAminoMsg): QueryProjectsByClassRequest { + return QueryProjectsByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByClassRequestProtoMsg): QueryProjectsByClassRequest { + return QueryProjectsByClassRequest.decode(message.value); + }, + toProto(message: QueryProjectsByClassRequest): Uint8Array { + return QueryProjectsByClassRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", + value: QueryProjectsByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByClassResponse(): QueryProjectsByClassResponse { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + encode(message: QueryProjectsByClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.projects) { + ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByClassResponse { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByClassResponseAmino): QueryProjectsByClassResponse { + const message = createBaseQueryProjectsByClassResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseAmino { + const obj: any = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByClassResponseAminoMsg): QueryProjectsByClassResponse { + return QueryProjectsByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByClassResponseProtoMsg): QueryProjectsByClassResponse { + return QueryProjectsByClassResponse.decode(message.value); + }, + toProto(message: QueryProjectsByClassResponse): Uint8Array { + return QueryProjectsByClassResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", + value: QueryProjectsByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdRequest(): QueryProjectsByReferenceIdRequest { + return { + referenceId: "", + pagination: undefined + }; +} +export const QueryProjectsByReferenceIdRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + encode(message: QueryProjectsByReferenceIdRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByReferenceIdRequest { + const message = createBaseQueryProjectsByReferenceIdRequest(); + message.referenceId = object.referenceId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByReferenceIdRequestAmino): QueryProjectsByReferenceIdRequest { + const message = createBaseQueryProjectsByReferenceIdRequest(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestAmino { + const obj: any = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByReferenceIdRequestAminoMsg): QueryProjectsByReferenceIdRequest { + return QueryProjectsByReferenceIdRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByReferenceIdRequestProtoMsg): QueryProjectsByReferenceIdRequest { + return QueryProjectsByReferenceIdRequest.decode(message.value); + }, + toProto(message: QueryProjectsByReferenceIdRequest): Uint8Array { + return QueryProjectsByReferenceIdRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", + value: QueryProjectsByReferenceIdRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByReferenceIdResponse(): QueryProjectsByReferenceIdResponse { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByReferenceIdResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + encode(message: QueryProjectsByReferenceIdResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.projects) { + ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByReferenceIdResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByReferenceIdResponse { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByReferenceIdResponseAmino): QueryProjectsByReferenceIdResponse { + const message = createBaseQueryProjectsByReferenceIdResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseAmino { + const obj: any = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByReferenceIdResponseAminoMsg): QueryProjectsByReferenceIdResponse { + return QueryProjectsByReferenceIdResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByReferenceIdResponseProtoMsg): QueryProjectsByReferenceIdResponse { + return QueryProjectsByReferenceIdResponse.decode(message.value); + }, + toProto(message: QueryProjectsByReferenceIdResponse): Uint8Array { + return QueryProjectsByReferenceIdResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", + value: QueryProjectsByReferenceIdResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminRequest(): QueryProjectsByAdminRequest { + return { + admin: "", + pagination: undefined + }; +} +export const QueryProjectsByAdminRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + encode(message: QueryProjectsByAdminRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByAdminRequest { + const message = createBaseQueryProjectsByAdminRequest(); + message.admin = object.admin ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByAdminRequestAmino): QueryProjectsByAdminRequest { + const message = createBaseQueryProjectsByAdminRequest(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByAdminRequestAminoMsg): QueryProjectsByAdminRequest { + return QueryProjectsByAdminRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByAdminRequestProtoMsg): QueryProjectsByAdminRequest { + return QueryProjectsByAdminRequest.decode(message.value); + }, + toProto(message: QueryProjectsByAdminRequest): Uint8Array { + return QueryProjectsByAdminRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", + value: QueryProjectsByAdminRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectsByAdminResponse(): QueryProjectsByAdminResponse { + return { + projects: [], + pagination: undefined + }; +} +export const QueryProjectsByAdminResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + encode(message: QueryProjectsByAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.projects) { + ProjectInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectsByAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projects.push(ProjectInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectsByAdminResponse { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryProjectsByAdminResponseAmino): QueryProjectsByAdminResponse { + const message = createBaseQueryProjectsByAdminResponse(); + message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseAmino { + const obj: any = {}; + if (message.projects) { + obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); + } else { + obj.projects = message.projects; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectsByAdminResponseAminoMsg): QueryProjectsByAdminResponse { + return QueryProjectsByAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectsByAdminResponseProtoMsg): QueryProjectsByAdminResponse { + return QueryProjectsByAdminResponse.decode(message.value); + }, + toProto(message: QueryProjectsByAdminResponse): Uint8Array { + return QueryProjectsByAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", + value: QueryProjectsByAdminResponse.encode(message).finish() + }; + } +}; +function createBaseQueryProjectRequest(): QueryProjectRequest { + return { + projectId: "" + }; +} +export const QueryProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + encode(message: QueryProjectRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectRequest { + const message = createBaseQueryProjectRequest(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: QueryProjectRequestAmino): QueryProjectRequest { + const message = createBaseQueryProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: QueryProjectRequest): QueryProjectRequestAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: QueryProjectRequestAminoMsg): QueryProjectRequest { + return QueryProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectRequestProtoMsg): QueryProjectRequest { + return QueryProjectRequest.decode(message.value); + }, + toProto(message: QueryProjectRequest): Uint8Array { + return QueryProjectRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", + value: QueryProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryProjectResponse(): QueryProjectResponse { + return { + project: undefined + }; +} +export const QueryProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + encode(message: QueryProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.project !== undefined) { + ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = ProjectInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryProjectResponse { + const message = createBaseQueryProjectResponse(); + message.project = object.project !== undefined && object.project !== null ? ProjectInfo.fromPartial(object.project) : undefined; + return message; + }, + fromAmino(object: QueryProjectResponseAmino): QueryProjectResponse { + const message = createBaseQueryProjectResponse(); + if (object.project !== undefined && object.project !== null) { + message.project = ProjectInfo.fromAmino(object.project); + } + return message; + }, + toAmino(message: QueryProjectResponse): QueryProjectResponseAmino { + const obj: any = {}; + obj.project = message.project ? ProjectInfo.toAmino(message.project) : undefined; + return obj; + }, + fromAminoMsg(object: QueryProjectResponseAminoMsg): QueryProjectResponse { + return QueryProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryProjectResponseProtoMsg): QueryProjectResponse { + return QueryProjectResponse.decode(message.value); + }, + toProto(message: QueryProjectResponse): Uint8Array { + return QueryProjectResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", + value: QueryProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest(): QueryBatchesRequest { + return { + pagination: undefined + }; +} +export const QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + encode(message: QueryBatchesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesRequest { + const message = createBaseQueryBatchesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest { + const message = createBaseQueryBatchesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest { + return QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest { + return QueryBatchesRequest.decode(message.value); + }, + toProto(message: QueryBatchesRequest): Uint8Array { + return QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", + value: QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse(): QueryBatchesResponse { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + encode(message: QueryBatchesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.batches) { + BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesResponse { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino { + const obj: any = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse { + return QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse { + return QueryBatchesResponse.decode(message.value); + }, + toProto(message: QueryBatchesResponse): Uint8Array { + return QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", + value: QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerRequest(): QueryBatchesByIssuerRequest { + return { + issuer: "", + pagination: undefined + }; +} +export const QueryBatchesByIssuerRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + encode(message: QueryBatchesByIssuerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByIssuerRequest { + const message = createBaseQueryBatchesByIssuerRequest(); + message.issuer = object.issuer ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByIssuerRequestAmino): QueryBatchesByIssuerRequest { + const message = createBaseQueryBatchesByIssuerRequest(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByIssuerRequestAminoMsg): QueryBatchesByIssuerRequest { + return QueryBatchesByIssuerRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByIssuerRequestProtoMsg): QueryBatchesByIssuerRequest { + return QueryBatchesByIssuerRequest.decode(message.value); + }, + toProto(message: QueryBatchesByIssuerRequest): Uint8Array { + return QueryBatchesByIssuerRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", + value: QueryBatchesByIssuerRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByIssuerResponse(): QueryBatchesByIssuerResponse { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByIssuerResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + encode(message: QueryBatchesByIssuerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.batches) { + BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByIssuerResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByIssuerResponse { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByIssuerResponseAmino): QueryBatchesByIssuerResponse { + const message = createBaseQueryBatchesByIssuerResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseAmino { + const obj: any = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByIssuerResponseAminoMsg): QueryBatchesByIssuerResponse { + return QueryBatchesByIssuerResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByIssuerResponseProtoMsg): QueryBatchesByIssuerResponse { + return QueryBatchesByIssuerResponse.decode(message.value); + }, + toProto(message: QueryBatchesByIssuerResponse): Uint8Array { + return QueryBatchesByIssuerResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", + value: QueryBatchesByIssuerResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassRequest(): QueryBatchesByClassRequest { + return { + classId: "", + pagination: undefined + }; +} +export const QueryBatchesByClassRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + encode(message: QueryBatchesByClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByClassRequest { + const message = createBaseQueryBatchesByClassRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByClassRequestAmino): QueryBatchesByClassRequest { + const message = createBaseQueryBatchesByClassRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByClassRequestAminoMsg): QueryBatchesByClassRequest { + return QueryBatchesByClassRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByClassRequestProtoMsg): QueryBatchesByClassRequest { + return QueryBatchesByClassRequest.decode(message.value); + }, + toProto(message: QueryBatchesByClassRequest): Uint8Array { + return QueryBatchesByClassRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", + value: QueryBatchesByClassRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectRequest(): QueryBatchesByProjectRequest { + return { + projectId: "", + pagination: undefined + }; +} +export const QueryBatchesByProjectRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + encode(message: QueryBatchesByProjectRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByProjectRequest { + const message = createBaseQueryBatchesByProjectRequest(); + message.projectId = object.projectId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByProjectRequestAmino): QueryBatchesByProjectRequest { + const message = createBaseQueryBatchesByProjectRequest(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByProjectRequestAminoMsg): QueryBatchesByProjectRequest { + return QueryBatchesByProjectRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByProjectRequestProtoMsg): QueryBatchesByProjectRequest { + return QueryBatchesByProjectRequest.decode(message.value); + }, + toProto(message: QueryBatchesByProjectRequest): Uint8Array { + return QueryBatchesByProjectRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", + value: QueryBatchesByProjectRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByProjectResponse(): QueryBatchesByProjectResponse { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByProjectResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + encode(message: QueryBatchesByProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.batches) { + BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByProjectResponse { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByProjectResponseAmino): QueryBatchesByProjectResponse { + const message = createBaseQueryBatchesByProjectResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseAmino { + const obj: any = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByProjectResponseAminoMsg): QueryBatchesByProjectResponse { + return QueryBatchesByProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByProjectResponseProtoMsg): QueryBatchesByProjectResponse { + return QueryBatchesByProjectResponse.decode(message.value); + }, + toProto(message: QueryBatchesByProjectResponse): Uint8Array { + return QueryBatchesByProjectResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", + value: QueryBatchesByProjectResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesByClassResponse(): QueryBatchesByClassResponse { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesByClassResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + encode(message: QueryBatchesByClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.batches) { + BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesByClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesByClassResponse { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesByClassResponseAmino): QueryBatchesByClassResponse { + const message = createBaseQueryBatchesByClassResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseAmino { + const obj: any = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesByClassResponseAminoMsg): QueryBatchesByClassResponse { + return QueryBatchesByClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesByClassResponseProtoMsg): QueryBatchesByClassResponse { + return QueryBatchesByClassResponse.decode(message.value); + }, + toProto(message: QueryBatchesByClassResponse): Uint8Array { + return QueryBatchesByClassResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", + value: QueryBatchesByClassResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchRequest(): QueryBatchRequest { + return { + batchDenom: "" + }; +} +export const QueryBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + encode(message: QueryBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchRequest { + const message = createBaseQueryBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QueryBatchRequestAmino): QueryBatchRequest { + const message = createBaseQueryBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QueryBatchRequest): QueryBatchRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QueryBatchRequestAminoMsg): QueryBatchRequest { + return QueryBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchRequestProtoMsg): QueryBatchRequest { + return QueryBatchRequest.decode(message.value); + }, + toProto(message: QueryBatchRequest): Uint8Array { + return QueryBatchRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", + value: QueryBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchResponse(): QueryBatchResponse { + return { + batch: undefined + }; +} +export const QueryBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + encode(message: QueryBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batch !== undefined) { + BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batch = BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchResponse { + const message = createBaseQueryBatchResponse(); + message.batch = object.batch !== undefined && object.batch !== null ? BatchInfo.fromPartial(object.batch) : undefined; + return message; + }, + fromAmino(object: QueryBatchResponseAmino): QueryBatchResponse { + const message = createBaseQueryBatchResponse(); + if (object.batch !== undefined && object.batch !== null) { + message.batch = BatchInfo.fromAmino(object.batch); + } + return message; + }, + toAmino(message: QueryBatchResponse): QueryBatchResponseAmino { + const obj: any = {}; + obj.batch = message.batch ? BatchInfo.toAmino(message.batch) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchResponseAminoMsg): QueryBatchResponse { + return QueryBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchResponseProtoMsg): QueryBatchResponse { + return QueryBatchResponse.decode(message.value); + }, + toProto(message: QueryBatchResponse): Uint8Array { + return QueryBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", + value: QueryBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest(): QueryBalanceRequest { + return { + address: "", + batchDenom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { + return QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message: QueryBalanceRequest): Uint8Array { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse(): QueryBalanceResponse { + return { + balance: undefined + }; +} +export const QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.balance !== undefined) { + BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balance = BatchBalanceInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + message.balance = object.balance !== undefined && object.balance !== null ? BatchBalanceInfo.fromPartial(object.balance) : undefined; + return message; + }, + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + if (object.balance !== undefined && object.balance !== null) { + message.balance = BatchBalanceInfo.fromAmino(object.balance); + } + return message; + }, + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { + const obj: any = {}; + obj.balance = message.balance ? BatchBalanceInfo.toAmino(message.balance) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { + return QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message: QueryBalanceResponse): Uint8Array { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesRequest(): QueryBalancesRequest { + return { + address: "", + pagination: undefined + }; +} +export const QueryBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + encode(message: QueryBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalancesRequest { + const message = createBaseQueryBalancesRequest(); + message.address = object.address ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBalancesRequestAmino): QueryBalancesRequest { + const message = createBaseQueryBalancesRequest(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBalancesRequest): QueryBalancesRequestAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalancesRequestAminoMsg): QueryBalancesRequest { + return QueryBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalancesRequestProtoMsg): QueryBalancesRequest { + return QueryBalancesRequest.decode(message.value); + }, + toProto(message: QueryBalancesRequest): Uint8Array { + return QueryBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", + value: QueryBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesResponse(): QueryBalancesResponse { + return { + balances: [], + pagination: undefined + }; +} +export const QueryBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + encode(message: QueryBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalancesResponse { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBalancesResponseAmino): QueryBalancesResponse { + const message = createBaseQueryBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBalancesResponse): QueryBalancesResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalancesResponseAminoMsg): QueryBalancesResponse { + return QueryBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalancesResponseProtoMsg): QueryBalancesResponse { + return QueryBalancesResponse.decode(message.value); + }, + toProto(message: QueryBalancesResponse): Uint8Array { + return QueryBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", + value: QueryBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchRequest(): QueryBalancesByBatchRequest { + return { + batchDenom: "", + pagination: undefined + }; +} +export const QueryBalancesByBatchRequest = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + encode(message: QueryBalancesByBatchRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalancesByBatchRequest { + const message = createBaseQueryBalancesByBatchRequest(); + message.batchDenom = object.batchDenom ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBalancesByBatchRequestAmino): QueryBalancesByBatchRequest { + const message = createBaseQueryBalancesByBatchRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalancesByBatchRequestAminoMsg): QueryBalancesByBatchRequest { + return QueryBalancesByBatchRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalancesByBatchRequestProtoMsg): QueryBalancesByBatchRequest { + return QueryBalancesByBatchRequest.decode(message.value); + }, + toProto(message: QueryBalancesByBatchRequest): Uint8Array { + return QueryBalancesByBatchRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", + value: QueryBalancesByBatchRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalancesByBatchResponse(): QueryBalancesByBatchResponse { + return { + balances: [], + pagination: undefined + }; +} +export const QueryBalancesByBatchResponse = { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + encode(message: QueryBalancesByBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalancesByBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalancesByBatchResponse { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBalancesByBatchResponseAmino): QueryBalancesByBatchResponse { + const message = createBaseQueryBalancesByBatchResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBalancesByBatchResponseAminoMsg): QueryBalancesByBatchResponse { + return QueryBalancesByBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalancesByBatchResponseProtoMsg): QueryBalancesByBatchResponse { + return QueryBalancesByBatchResponse.decode(message.value); + }, + toProto(message: QueryBalancesByBatchResponse): Uint8Array { + return QueryBalancesByBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", + value: QueryBalancesByBatchResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesRequest(): QueryAllBalancesRequest { + return { + pagination: undefined + }; +} +export const QueryAllBalancesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + encode(message: QueryAllBalancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllBalancesRequest { + const message = createBaseQueryAllBalancesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest { + const message = createBaseQueryAllBalancesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest { + return QueryAllBalancesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest { + return QueryAllBalancesRequest.decode(message.value); + }, + toProto(message: QueryAllBalancesRequest): Uint8Array { + return QueryAllBalancesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", + value: QueryAllBalancesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllBalancesResponse(): QueryAllBalancesResponse { + return { + balances: [], + pagination: undefined + }; +} +export const QueryAllBalancesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + encode(message: QueryAllBalancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.balances) { + BatchBalanceInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllBalancesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllBalancesResponse { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse { + const message = createBaseQueryAllBalancesResponse(); + message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino { + const obj: any = {}; + if (message.balances) { + obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse { + return QueryAllBalancesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse { + return QueryAllBalancesResponse.decode(message.value); + }, + toProto(message: QueryAllBalancesResponse): Uint8Array { + return QueryAllBalancesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", + value: QueryAllBalancesResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest(): QuerySupplyRequest { + return { + batchDenom: "" + }; +} +export const QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyRequest { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest { + return QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest { + return QuerySupplyRequest.decode(message.value); + }, + toProto(message: QuerySupplyRequest): Uint8Array { + return QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", + value: QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse(): QuerySupplyResponse { + return { + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +export const QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(26).string(message.cancelledAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + case 3: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyResponse { + const message = createBaseQuerySupplyResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino { + const obj: any = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse { + return QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse { + return QuerySupplyResponse.decode(message.value); + }, + toProto(message: QuerySupplyResponse): Uint8Array { + return QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", + value: QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest(): QueryCreditTypesRequest { + return {}; +} +export const QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + encode(_: QueryCreditTypesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryCreditTypesRequest { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest { + return QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest { + return QueryCreditTypesRequest.decode(message.value); + }, + toProto(message: QueryCreditTypesRequest): Uint8Array { + return QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", + value: QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse(): QueryCreditTypesResponse { + return { + creditTypes: [] + }; +} +export const QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + encode(message: QueryCreditTypesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.creditTypes) { + CreditType.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCreditTypesResponse { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino { + const obj: any = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse { + return QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse { + return QueryCreditTypesResponse.decode(message.value); + }, + toProto(message: QueryCreditTypesResponse): Uint8Array { + return QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", + value: QueryCreditTypesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeRequest(): QueryCreditTypeRequest { + return { + abbreviation: "" + }; +} +export const QueryCreditTypeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + encode(message: QueryCreditTypeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCreditTypeRequest { + const message = createBaseQueryCreditTypeRequest(); + message.abbreviation = object.abbreviation ?? ""; + return message; + }, + fromAmino(object: QueryCreditTypeRequestAmino): QueryCreditTypeRequest { + const message = createBaseQueryCreditTypeRequest(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + return message; + }, + toAmino(message: QueryCreditTypeRequest): QueryCreditTypeRequestAmino { + const obj: any = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + return obj; + }, + fromAminoMsg(object: QueryCreditTypeRequestAminoMsg): QueryCreditTypeRequest { + return QueryCreditTypeRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypeRequestProtoMsg): QueryCreditTypeRequest { + return QueryCreditTypeRequest.decode(message.value); + }, + toProto(message: QueryCreditTypeRequest): Uint8Array { + return QueryCreditTypeRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", + value: QueryCreditTypeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypeResponse(): QueryCreditTypeResponse { + return { + creditType: undefined + }; +} +export const QueryCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + encode(message: QueryCreditTypeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCreditTypeResponse { + const message = createBaseQueryCreditTypeResponse(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object: QueryCreditTypeResponseAmino): QueryCreditTypeResponse { + const message = createBaseQueryCreditTypeResponse(); + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message: QueryCreditTypeResponse): QueryCreditTypeResponseAmino { + const obj: any = {}; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object: QueryCreditTypeResponseAminoMsg): QueryCreditTypeResponse { + return QueryCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypeResponseProtoMsg): QueryCreditTypeResponse { + return QueryCreditTypeResponse.decode(message.value); + }, + toProto(message: QueryCreditTypeResponse): Uint8Array { + return QueryCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", + value: QueryCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseClassInfo(): ClassInfo { + return { + id: "", + admin: "", + metadata: "", + creditTypeAbbrev: "" + }; +} +export const ClassInfo = { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + encode(message: ClassInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassInfo { + const message = createBaseClassInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object: ClassInfoAmino): ClassInfo { + const message = createBaseClassInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message: ClassInfo): ClassInfoAmino { + const obj: any = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo { + return ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo { + return ClassInfo.decode(message.value); + }, + toProto(message: ClassInfo): Uint8Array { + return ClassInfo.encode(message).finish(); + }, + toProtoMsg(message: ClassInfo): ClassInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ClassInfo", + value: ClassInfo.encode(message).finish() + }; + } +}; +function createBaseProjectInfo(): ProjectInfo { + return { + id: "", + admin: "", + classId: "", + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +export const ProjectInfo = { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + encode(message: ProjectInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(26).string(message.classId); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(50).string(message.referenceId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.classId = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ProjectInfo { + const message = createBaseProjectInfo(); + message.id = object.id ?? ""; + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object: ProjectInfoAmino): ProjectInfo { + const message = createBaseProjectInfo(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message: ProjectInfo): ProjectInfoAmino { + const obj: any = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object: ProjectInfoAminoMsg): ProjectInfo { + return ProjectInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ProjectInfoProtoMsg): ProjectInfo { + return ProjectInfo.decode(message.value); + }, + toProto(message: ProjectInfo): Uint8Array { + return ProjectInfo.encode(message).finish(); + }, + toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ProjectInfo", + value: ProjectInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo(): BatchInfo { + return { + issuer: "", + projectId: "", + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +export const BatchInfo = { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + encode(message: BatchInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.denom !== "") { + writer.uint32(26).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(58).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(64).bool(message.open); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.denom = reader.string(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchInfo { + const message = createBaseBatchInfo(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object: BatchInfoAmino): BatchInfo { + const message = createBaseBatchInfo(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message: BatchInfo): BatchInfoAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo { + return BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo { + return BatchInfo.decode(message.value); + }, + toProto(message: BatchInfo): Uint8Array { + return BatchInfo.encode(message).finish(); + }, + toProtoMsg(message: BatchInfo): BatchInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchInfo", + value: BatchInfo.encode(message).finish() + }; + } +}; +function createBaseBatchBalanceInfo(): BatchBalanceInfo { + return { + address: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +export const BatchBalanceInfo = { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + encode(message: BatchBalanceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalanceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchBalanceInfo { + const message = createBaseBatchBalanceInfo(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object: BatchBalanceInfoAmino): BatchBalanceInfo { + const message = createBaseBatchBalanceInfo(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message: BatchBalanceInfo): BatchBalanceInfoAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object: BatchBalanceInfoAminoMsg): BatchBalanceInfo { + return BatchBalanceInfo.fromAmino(object.value); + }, + fromProtoMsg(message: BatchBalanceInfoProtoMsg): BatchBalanceInfo { + return BatchBalanceInfo.decode(message.value); + }, + toProto(message: BatchBalanceInfo): Uint8Array { + return BatchBalanceInfo.encode(message).finish(); + }, + toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", + value: BatchBalanceInfo.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistRequest(): QueryClassCreatorAllowlistRequest { + return {}; +} +export const QueryClassCreatorAllowlistRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + encode(_: QueryClassCreatorAllowlistRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryClassCreatorAllowlistRequest { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + fromAmino(_: QueryClassCreatorAllowlistRequestAmino): QueryClassCreatorAllowlistRequest { + const message = createBaseQueryClassCreatorAllowlistRequest(); + return message; + }, + toAmino(_: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryClassCreatorAllowlistRequestAminoMsg): QueryClassCreatorAllowlistRequest { + return QueryClassCreatorAllowlistRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassCreatorAllowlistRequestProtoMsg): QueryClassCreatorAllowlistRequest { + return QueryClassCreatorAllowlistRequest.decode(message.value); + }, + toProto(message: QueryClassCreatorAllowlistRequest): Uint8Array { + return QueryClassCreatorAllowlistRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", + value: QueryClassCreatorAllowlistRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassCreatorAllowlistResponse(): QueryClassCreatorAllowlistResponse { + return { + enabled: false + }; +} +export const QueryClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + encode(message: QueryClassCreatorAllowlistResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassCreatorAllowlistResponse { + const message = createBaseQueryClassCreatorAllowlistResponse(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object: QueryClassCreatorAllowlistResponseAmino): QueryClassCreatorAllowlistResponse { + const message = createBaseQueryClassCreatorAllowlistResponse(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseAmino { + const obj: any = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object: QueryClassCreatorAllowlistResponseAminoMsg): QueryClassCreatorAllowlistResponse { + return QueryClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassCreatorAllowlistResponseProtoMsg): QueryClassCreatorAllowlistResponse { + return QueryClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message: QueryClassCreatorAllowlistResponse): Uint8Array { + return QueryClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", + value: QueryClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsRequest(): QueryAllowedClassCreatorsRequest { + return { + pagination: undefined + }; +} +export const QueryAllowedClassCreatorsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + encode(message: QueryAllowedClassCreatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowedClassCreatorsRequest { + const message = createBaseQueryAllowedClassCreatorsRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowedClassCreatorsRequestAmino): QueryAllowedClassCreatorsRequest { + const message = createBaseQueryAllowedClassCreatorsRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowedClassCreatorsRequestAminoMsg): QueryAllowedClassCreatorsRequest { + return QueryAllowedClassCreatorsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedClassCreatorsRequestProtoMsg): QueryAllowedClassCreatorsRequest { + return QueryAllowedClassCreatorsRequest.decode(message.value); + }, + toProto(message: QueryAllowedClassCreatorsRequest): Uint8Array { + return QueryAllowedClassCreatorsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", + value: QueryAllowedClassCreatorsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedClassCreatorsResponse(): QueryAllowedClassCreatorsResponse { + return { + classCreators: [], + pagination: undefined + }; +} +export const QueryAllowedClassCreatorsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + encode(message: QueryAllowedClassCreatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.classCreators) { + writer.uint32(10).string(v!); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedClassCreatorsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classCreators.push(reader.string()); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowedClassCreatorsResponse { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.classCreators?.map(e => e) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryAllowedClassCreatorsResponseAmino): QueryAllowedClassCreatorsResponse { + const message = createBaseQueryAllowedClassCreatorsResponse(); + message.classCreators = object.class_creators?.map(e => e) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseAmino { + const obj: any = {}; + if (message.classCreators) { + obj.class_creators = message.classCreators.map(e => e); + } else { + obj.class_creators = message.classCreators; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryAllowedClassCreatorsResponseAminoMsg): QueryAllowedClassCreatorsResponse { + return QueryAllowedClassCreatorsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedClassCreatorsResponseProtoMsg): QueryAllowedClassCreatorsResponse { + return QueryAllowedClassCreatorsResponse.decode(message.value); + }, + toProto(message: QueryAllowedClassCreatorsResponse): Uint8Array { + return QueryAllowedClassCreatorsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", + value: QueryAllowedClassCreatorsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeRequest(): QueryClassFeeRequest { + return {}; +} +export const QueryClassFeeRequest = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + encode(_: QueryClassFeeRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryClassFeeRequest { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + fromAmino(_: QueryClassFeeRequestAmino): QueryClassFeeRequest { + const message = createBaseQueryClassFeeRequest(); + return message; + }, + toAmino(_: QueryClassFeeRequest): QueryClassFeeRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryClassFeeRequestAminoMsg): QueryClassFeeRequest { + return QueryClassFeeRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassFeeRequestProtoMsg): QueryClassFeeRequest { + return QueryClassFeeRequest.decode(message.value); + }, + toProto(message: QueryClassFeeRequest): Uint8Array { + return QueryClassFeeRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", + value: QueryClassFeeRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassFeeResponse(): QueryClassFeeResponse { + return { + fee: undefined + }; +} +export const QueryClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + encode(message: QueryClassFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassFeeResponse { + const message = createBaseQueryClassFeeResponse(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: QueryClassFeeResponseAmino): QueryClassFeeResponse { + const message = createBaseQueryClassFeeResponse(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: QueryClassFeeResponse): QueryClassFeeResponseAmino { + const obj: any = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassFeeResponseAminoMsg): QueryClassFeeResponse { + return QueryClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassFeeResponseProtoMsg): QueryClassFeeResponse { + return QueryClassFeeResponse.decode(message.value); + }, + toProto(message: QueryClassFeeResponse): Uint8Array { + return QueryClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", + value: QueryClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsRequest(): QueryAllowedBridgeChainsRequest { + return {}; +} +export const QueryAllowedBridgeChainsRequest = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + encode(_: QueryAllowedBridgeChainsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryAllowedBridgeChainsRequest { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + fromAmino(_: QueryAllowedBridgeChainsRequestAmino): QueryAllowedBridgeChainsRequest { + const message = createBaseQueryAllowedBridgeChainsRequest(); + return message; + }, + toAmino(_: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryAllowedBridgeChainsRequestAminoMsg): QueryAllowedBridgeChainsRequest { + return QueryAllowedBridgeChainsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedBridgeChainsRequestProtoMsg): QueryAllowedBridgeChainsRequest { + return QueryAllowedBridgeChainsRequest.decode(message.value); + }, + toProto(message: QueryAllowedBridgeChainsRequest): Uint8Array { + return QueryAllowedBridgeChainsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", + value: QueryAllowedBridgeChainsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryAllowedBridgeChainsResponse(): QueryAllowedBridgeChainsResponse { + return { + allowedBridgeChains: [] + }; +} +export const QueryAllowedBridgeChainsResponse = { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + encode(message: QueryAllowedBridgeChainsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.allowedBridgeChains) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryAllowedBridgeChainsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryAllowedBridgeChainsResponse { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object: QueryAllowedBridgeChainsResponseAmino): QueryAllowedBridgeChainsResponse { + const message = createBaseQueryAllowedBridgeChainsResponse(); + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseAmino { + const obj: any = {}; + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object: QueryAllowedBridgeChainsResponseAminoMsg): QueryAllowedBridgeChainsResponse { + return QueryAllowedBridgeChainsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryAllowedBridgeChainsResponseProtoMsg): QueryAllowedBridgeChainsResponse { + return QueryAllowedBridgeChainsResponse.decode(message.value); + }, + toProto(message: QueryAllowedBridgeChainsResponse): Uint8Array { + return QueryAllowedBridgeChainsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", + value: QueryAllowedBridgeChainsResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/state.ts b/packages/api/src/regen/ecocredit/v1/state.ts new file mode 100644 index 00000000..59a33914 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/state.ts @@ -0,0 +1,2361 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditType { + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation: string; + /** name is the name of the credit type (e.g. carbon, biodiversity). */ + name: string; + /** unit is the measurement unit of the credit type (e.g. kg, ton). */ + unit: string; + /** precision is the decimal precision of the credit type. */ + precision: number; +} +export interface CreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.CreditType"; + value: Uint8Array; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeAmino { + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation?: string; + /** name is the name of the credit type (e.g. carbon, biodiversity). */ + name?: string; + /** unit is the measurement unit of the credit type (e.g. kg, ton). */ + unit?: string; + /** precision is the decimal precision of the credit type. */ + precision?: number; +} +export interface CreditTypeAminoMsg { + type: "/regen.ecocredit.v1.CreditType"; + value: CreditTypeAmino; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeSDKType { + abbreviation: string; + name: string; + unit: string; + precision: number; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface Class { + /** + * key is the table row identifier of the credit class used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * id is the unique identifier of the credit class auto-generated from the + * credit type abbreviation and the credit class sequence number. + */ + id: string; + /** admin is the admin of the credit class. */ + admin: Uint8Array; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + creditTypeAbbrev: string; +} +export interface ClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.Class"; + value: Uint8Array; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface ClassAmino { + /** + * key is the table row identifier of the credit class used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * id is the unique identifier of the credit class auto-generated from the + * credit type abbreviation and the credit class sequence number. + */ + id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** credit_type_abbrev is the abbreviation of the credit type. */ + credit_type_abbrev?: string; +} +export interface ClassAminoMsg { + type: "/regen.ecocredit.v1.Class"; + value: ClassAmino; +} +/** Class represents the high-level on-chain information for a credit class. */ +export interface ClassSDKType { + key: bigint; + id: string; + admin: Uint8Array; + metadata: string; + credit_type_abbrev: string; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuer { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a class issuer to a credit class. + */ + classKey: bigint; + /** issuer is the approved issuer of the credit class. */ + issuer: Uint8Array; +} +export interface ClassIssuerProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassIssuer"; + value: Uint8Array; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuerAmino { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a class issuer to a credit class. + */ + class_key?: string; + /** issuer is the approved issuer of the credit class. */ + issuer?: string; +} +export interface ClassIssuerAminoMsg { + type: "/regen.ecocredit.v1.ClassIssuer"; + value: ClassIssuerAmino; +} +/** + * ClassIssuers is a JOIN table for Class Info that stores the credit class + * issuers + */ +export interface ClassIssuerSDKType { + class_key: bigint; + issuer: Uint8Array; +} +/** Project represents the high-level on-chain information for a project. */ +export interface Project { + /** + * key is the table row identifier of the project used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * id is the unique identifier of the project either auto-generated from the + * credit class id and project sequence number or provided upon creation. + */ + id: string; + /** admin is the admin of the project. */ + admin: Uint8Array; + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project to a credit class. + */ + classKey: bigint; + /** + * jurisdiction is the jurisdiction of the project. + * Full documentation can be found in MsgCreateProject.jurisdiction. + */ + jurisdiction: string; + /** metadata is any arbitrary metadata attached to the project. */ + metadata: string; + /** reference_id is any arbitrary string used to reference the project. */ + referenceId: string; +} +export interface ProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.Project"; + value: Uint8Array; +} +/** Project represents the high-level on-chain information for a project. */ +export interface ProjectAmino { + /** + * key is the table row identifier of the project used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * id is the unique identifier of the project either auto-generated from the + * credit class id and project sequence number or provided upon creation. + */ + id?: string; + /** admin is the admin of the project. */ + admin?: string; + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project to a credit class. + */ + class_key?: string; + /** + * jurisdiction is the jurisdiction of the project. + * Full documentation can be found in MsgCreateProject.jurisdiction. + */ + jurisdiction?: string; + /** metadata is any arbitrary metadata attached to the project. */ + metadata?: string; + /** reference_id is any arbitrary string used to reference the project. */ + reference_id?: string; +} +export interface ProjectAminoMsg { + type: "/regen.ecocredit.v1.Project"; + value: ProjectAmino; +} +/** Project represents the high-level on-chain information for a project. */ +export interface ProjectSDKType { + key: bigint; + id: string; + admin: Uint8Array; + class_key: bigint; + jurisdiction: string; + metadata: string; + reference_id: string; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface Batch { + /** + * key is the table row identifier of the credit batch used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key: bigint; + /** + * issuer is the address that created the batch and which is + * authorized to mint more credits if open=true. + */ + issuer: Uint8Array; + /** + * project_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a credit batch to a project. + */ + projectKey: bigint; + /** + * denom is the unique identifier of the credit batch formed from the + * project id, the batch sequence number, and the start and end date of the + * credit batch. + */ + denom: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuanceDate?: Date; + /** + * open tells if it's possible to mint new credits in the future. + * Once `open` is set to false, it can't be toggled any more. + */ + open: boolean; +} +export interface BatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.Batch"; + value: Uint8Array; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface BatchAmino { + /** + * key is the table row identifier of the credit batch used internally for + * efficient lookups. This identifier is auto-incrementing. + */ + key?: string; + /** + * issuer is the address that created the batch and which is + * authorized to mint more credits if open=true. + */ + issuer?: string; + /** + * project_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a credit batch to a project. + */ + project_key?: string; + /** + * denom is the unique identifier of the credit batch formed from the + * project id, the batch sequence number, and the start and end date of the + * credit batch. + */ + denom?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** issuance_date is the timestamp when the credit batch was issued. */ + issuance_date?: string; + /** + * open tells if it's possible to mint new credits in the future. + * Once `open` is set to false, it can't be toggled any more. + */ + open?: boolean; +} +export interface BatchAminoMsg { + type: "/regen.ecocredit.v1.Batch"; + value: BatchAmino; +} +/** Batch represents the high-level on-chain information for a credit batch. */ +export interface BatchSDKType { + key: bigint; + issuer: Uint8Array; + project_key: bigint; + denom: string; + metadata: string; + start_date?: Date; + end_date?: Date; + issuance_date?: Date; + open: boolean; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequence { + /** + * credit_type_abbrev is the credit type abbreviation. This links a class + * sequence to a credit type. + */ + creditTypeAbbrev: string; + /** + * next_sequence is the next sequence number for a credit class within the + * credit type. The sequence number is used to generate a class id. + */ + nextSequence: bigint; +} +export interface ClassSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassSequence"; + value: Uint8Array; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequenceAmino { + /** + * credit_type_abbrev is the credit type abbreviation. This links a class + * sequence to a credit type. + */ + credit_type_abbrev?: string; + /** + * next_sequence is the next sequence number for a credit class within the + * credit type. The sequence number is used to generate a class id. + */ + next_sequence?: string; +} +export interface ClassSequenceAminoMsg { + type: "/regen.ecocredit.v1.ClassSequence"; + value: ClassSequenceAmino; +} +/** + * ClassSequence stores and increments the sequence number for credit classes + * within a credit type. + */ +export interface ClassSequenceSDKType { + credit_type_abbrev: string; + next_sequence: bigint; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequence { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project sequence to a credit class. + */ + classKey: bigint; + /** + * next_sequence is the next sequence number for a project within the credit + * class. The sequence number is used to generate a project id. + */ + nextSequence: bigint; +} +export interface ProjectSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.ProjectSequence"; + value: Uint8Array; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequenceAmino { + /** + * class_key is the table row identifier of the credit class used internally + * for efficient lookups. This links a project sequence to a credit class. + */ + class_key?: string; + /** + * next_sequence is the next sequence number for a project within the credit + * class. The sequence number is used to generate a project id. + */ + next_sequence?: string; +} +export interface ProjectSequenceAminoMsg { + type: "/regen.ecocredit.v1.ProjectSequence"; + value: ProjectSequenceAmino; +} +/** + * ProjectSequence stores and increments the sequence number for projects within + * a credit class. + */ +export interface ProjectSequenceSDKType { + class_key: bigint; + next_sequence: bigint; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequence { + /** + * project_key is the table row identifier of the project used internally for + * efficient lookups. This links a batch sequence to a project. + */ + projectKey: bigint; + /** + * next_sequence is the next sequence number for a credit batch within the + * project. The sequence number is used to generate a batch denom. + */ + nextSequence: bigint; +} +export interface BatchSequenceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchSequence"; + value: Uint8Array; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequenceAmino { + /** + * project_key is the table row identifier of the project used internally for + * efficient lookups. This links a batch sequence to a project. + */ + project_key?: string; + /** + * next_sequence is the next sequence number for a credit batch within the + * project. The sequence number is used to generate a batch denom. + */ + next_sequence?: string; +} +export interface BatchSequenceAminoMsg { + type: "/regen.ecocredit.v1.BatchSequence"; + value: BatchSequenceAmino; +} +/** + * BatchSequence stores and increments the sequence number for credit batches + * within a project. + */ +export interface BatchSequenceSDKType { + project_key: bigint; + next_sequence: bigint; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalance { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch balance to a credit batch. + */ + batchKey: bigint; + /** address is the address of the account that owns the credits. */ + address: Uint8Array; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradableAmount: string; + /** retired_amount is the total number of retired credits owned by address. */ + retiredAmount: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowedAmount: string; +} +export interface BatchBalanceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchBalance"; + value: Uint8Array; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalanceAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch balance to a credit batch. + */ + batch_key?: string; + /** address is the address of the account that owns the credits. */ + address?: string; + /** tradable_amount is the total number of tradable credits owned by address. */ + tradable_amount?: string; + /** retired_amount is the total number of retired credits owned by address. */ + retired_amount?: string; + /** + * escrowed_amount is the total number of escrowed credits owned by address + * and held in escrow by the marketplace. Credits are held in escrow when a + * sell order is created and taken out of escrow when the sell order is either + * cancelled, updated with a reduced quantity, or processed. + */ + escrowed_amount?: string; +} +export interface BatchBalanceAminoMsg { + type: "/regen.ecocredit.v1.BatchBalance"; + value: BatchBalanceAmino; +} +/** BatchBalance stores each accounts credit balance. */ +export interface BatchBalanceSDKType { + batch_key: bigint; + address: Uint8Array; + tradable_amount: string; + retired_amount: string; + escrowed_amount: string; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupply { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch supply to a credit batch. + */ + batchKey: bigint; + /** + * tradable_amount is the total number of tradable credits in the credit + * batch. Tradable credits may be retired in which case they will be removed + * from tradable_amount and tracked in retired_amount. Tradable credits may + * also be cancelled in which case they will be removed from tradable_amount + * and tracked in cancelled_amount. The sum of the tradable, retired, and + * cancelled amounts will always equal the original credit issuance amount. + */ + tradableAmount: string; + /** + * retired_amount is the total amount of credits that have been retired in the + * credit batch. The sum of the tradable, retired, and cancelled amounts will + * always equal the original credit issuance amount. + */ + retiredAmount: string; + /** + * cancelled_amount is the number of credits in the batch that have been + * cancelled, effectively undoing the issuance. The sum of the tradable, + * retired, and cancelled amounts will always equal the original credit + * issuance amount. + */ + cancelledAmount: string; +} +export interface BatchSupplyProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchSupply"; + value: Uint8Array; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupplyAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links a batch supply to a credit batch. + */ + batch_key?: string; + /** + * tradable_amount is the total number of tradable credits in the credit + * batch. Tradable credits may be retired in which case they will be removed + * from tradable_amount and tracked in retired_amount. Tradable credits may + * also be cancelled in which case they will be removed from tradable_amount + * and tracked in cancelled_amount. The sum of the tradable, retired, and + * cancelled amounts will always equal the original credit issuance amount. + */ + tradable_amount?: string; + /** + * retired_amount is the total amount of credits that have been retired in the + * credit batch. The sum of the tradable, retired, and cancelled amounts will + * always equal the original credit issuance amount. + */ + retired_amount?: string; + /** + * cancelled_amount is the number of credits in the batch that have been + * cancelled, effectively undoing the issuance. The sum of the tradable, + * retired, and cancelled amounts will always equal the original credit + * issuance amount. + */ + cancelled_amount?: string; +} +export interface BatchSupplyAminoMsg { + type: "/regen.ecocredit.v1.BatchSupply"; + value: BatchSupplyAmino; +} +/** BatchSupply stores the supply of credits for a credit batch. */ +export interface BatchSupplySDKType { + batch_key: bigint; + tradable_amount: string; + retired_amount: string; + cancelled_amount: string; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndex { + /** + * class_key is the table row identifier of the credit class within which the + * credits were issued or minted. The class_key is included within the index + * to prevent malicious credit class issuers from blocking bridge operations + * taking place within another credit class. + */ + classKey: bigint; + /** + * id is the transaction ID of an originating transaction or operation + * based on a type (i.e. transaction ID, serial number). + */ + id: string; + /** + * source is the source chain or registry of the transaction originating + * the mint process (e.g. polygon, ethereum, verra). + */ + source: string; +} +export interface OriginTxIndexProtoMsg { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex"; + value: Uint8Array; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndexAmino { + /** + * class_key is the table row identifier of the credit class within which the + * credits were issued or minted. The class_key is included within the index + * to prevent malicious credit class issuers from blocking bridge operations + * taking place within another credit class. + */ + class_key?: string; + /** + * id is the transaction ID of an originating transaction or operation + * based on a type (i.e. transaction ID, serial number). + */ + id?: string; + /** + * source is the source chain or registry of the transaction originating + * the mint process (e.g. polygon, ethereum, verra). + */ + source?: string; +} +export interface OriginTxIndexAminoMsg { + type: "/regen.ecocredit.v1.OriginTxIndex"; + value: OriginTxIndexAmino; +} +/** + * OriginTxIndex indexes the transaction ID and source from the OriginTx + * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double + * minting errors. The index is scoped to a credit class (it includes the + * class_key) to prevent malicious credit class issuers from blocking any + * bridge operations taking place within another credit class. + */ +export interface OriginTxIndexSDKType { + class_key: bigint; + id: string; + source: string; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContract { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links an external contract to a credit batch. + */ + batchKey: bigint; + /** + * class_key is the table row identifier of the credit class within which the + * credit batch exists. A contract is unique within the scope of a credit + * class to prevent malicious credit class issuers from blocking bridge + * operations taking place within another credit class. + */ + classKey: bigint; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be used when + * sending credits back to the source chain. + */ + contract: string; +} +export interface BatchContractProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchContract"; + value: Uint8Array; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContractAmino { + /** + * batch_key is the table row identifier of the credit batch used internally + * for efficient lookups. This links an external contract to a credit batch. + */ + batch_key?: string; + /** + * class_key is the table row identifier of the credit class within which the + * credit batch exists. A contract is unique within the scope of a credit + * class to prevent malicious credit class issuers from blocking bridge + * operations taking place within another credit class. + */ + class_key?: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be used when + * sending credits back to the source chain. + */ + contract?: string; +} +export interface BatchContractAminoMsg { + type: "/regen.ecocredit.v1.BatchContract"; + value: BatchContractAmino; +} +/** + * BatchContract stores the contract address from which credits were bridged + * when credits are bridged from a contract-based chain, therefore ensuring + * that each credit batch corresponds to a single contract and credits that + * have been bridged will always be bridged back to the original contract. + */ +export interface BatchContractSDKType { + batch_key: bigint; + class_key: bigint; + contract: string; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlist { + /** enabled is whether or not the allow list is enabled. */ + enabled: boolean; +} +export interface ClassCreatorAllowlistProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist"; + value: Uint8Array; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlistAmino { + /** enabled is whether or not the allow list is enabled. */ + enabled?: boolean; +} +export interface ClassCreatorAllowlistAminoMsg { + type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; + value: ClassCreatorAllowlistAmino; +} +/** + * ClassCreatorAllowlist determines if the credit class creator allowlist is + * enabled. When set to true, only the addresses in the AllowedClassCreator + * table may create credit classes. When set to false, any address may create + * credit classes. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassCreatorAllowlistSDKType { + enabled: boolean; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreator { + /** address is the address that is allowed to create credit classes */ + address: Uint8Array; +} +export interface AllowedClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator"; + value: Uint8Array; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreatorAmino { + /** address is the address that is allowed to create credit classes */ + address?: string; +} +export interface AllowedClassCreatorAminoMsg { + type: "/regen.ecocredit.v1.AllowedClassCreator"; + value: AllowedClassCreatorAmino; +} +/** + * AllowedClassCreator is an allowed credit class creator. This table is + * controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedClassCreatorSDKType { + address: Uint8Array; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFee { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: Coin; +} +export interface ClassFeeProtoMsg { + typeUrl: "/regen.ecocredit.v1.ClassFee"; + value: Uint8Array; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFeeAmino { + /** + * fee is the credit class creation fee. If not set, a credit class creation + * fee is not required. + */ + fee?: CoinAmino; +} +export interface ClassFeeAminoMsg { + type: "/regen.ecocredit.v1.ClassFee"; + value: ClassFeeAmino; +} +/** + * ClassFee is the credit class creation fee. If not set, a credit class + * creation fee is not required. This table is controlled via governance. + * + * Since Revision 2 + */ +export interface ClassFeeSDKType { + fee?: CoinSDKType; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChain { + /** chain_name is the name of the chain allowed to bridge ecocredits to. */ + chainName: string; +} +export interface AllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain"; + value: Uint8Array; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChainAmino { + /** chain_name is the name of the chain allowed to bridge ecocredits to. */ + chain_name?: string; +} +export interface AllowedBridgeChainAminoMsg { + type: "/regen.ecocredit.v1.AllowedBridgeChain"; + value: AllowedBridgeChainAmino; +} +/** + * AllowedBridgeChain is a list of chains that are allowed to be used in + * bridging operations. NOTE: chain_names MUST be converted to lowercase before + * writing to and reading from this table in order to keep entries consistent. + * This table is controlled via governance. + * + * Since Revision 2 + */ +export interface AllowedBridgeChainSDKType { + chain_name: string; +} +function createBaseCreditType(): CreditType { + return { + abbreviation: "", + name: "", + unit: "", + precision: 0 + }; +} +export const CreditType = { + typeUrl: "/regen.ecocredit.v1.CreditType", + encode(message: CreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CreditType { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CreditType { + const message = createBaseCreditType(); + message.abbreviation = object.abbreviation ?? ""; + message.name = object.name ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object: CreditTypeAmino): CreditType { + const message = createBaseCreditType(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message: CreditType): CreditTypeAmino { + const obj: any = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.name = message.name === "" ? undefined : message.name; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object: CreditTypeAminoMsg): CreditType { + return CreditType.fromAmino(object.value); + }, + fromProtoMsg(message: CreditTypeProtoMsg): CreditType { + return CreditType.decode(message.value); + }, + toProto(message: CreditType): Uint8Array { + return CreditType.encode(message).finish(); + }, + toProtoMsg(message: CreditType): CreditTypeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.CreditType", + value: CreditType.encode(message).finish() + }; + } +}; +function createBaseClass(): Class { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + metadata: "", + creditTypeAbbrev: "" + }; +} +export const Class = { + typeUrl: "/regen.ecocredit.v1.Class", + encode(message: Class, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(42).string(message.creditTypeAbbrev); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Class { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.creditTypeAbbrev = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Class { + const message = createBaseClass(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + return message; + }, + fromAmino(object: ClassAmino): Class { + const message = createBaseClass(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = bytesFromBase64(object.admin); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + return message; + }, + toAmino(message: Class): ClassAmino { + const obj: any = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + return obj; + }, + fromAminoMsg(object: ClassAminoMsg): Class { + return Class.fromAmino(object.value); + }, + fromProtoMsg(message: ClassProtoMsg): Class { + return Class.decode(message.value); + }, + toProto(message: Class): Uint8Array { + return Class.encode(message).finish(); + }, + toProtoMsg(message: Class): ClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Class", + value: Class.encode(message).finish() + }; + } +}; +function createBaseClassIssuer(): ClassIssuer { + return { + classKey: BigInt(0), + issuer: new Uint8Array() + }; +} +export const ClassIssuer = { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + encode(message: ClassIssuer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassIssuer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassIssuer { + const message = createBaseClassIssuer(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + return message; + }, + fromAmino(object: ClassIssuerAmino): ClassIssuer { + const message = createBaseClassIssuer(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = bytesFromBase64(object.issuer); + } + return message; + }, + toAmino(message: ClassIssuer): ClassIssuerAmino { + const obj: any = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; + return obj; + }, + fromAminoMsg(object: ClassIssuerAminoMsg): ClassIssuer { + return ClassIssuer.fromAmino(object.value); + }, + fromProtoMsg(message: ClassIssuerProtoMsg): ClassIssuer { + return ClassIssuer.decode(message.value); + }, + toProto(message: ClassIssuer): Uint8Array { + return ClassIssuer.encode(message).finish(); + }, + toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ClassIssuer", + value: ClassIssuer.encode(message).finish() + }; + } +}; +function createBaseProject(): Project { + return { + key: BigInt(0), + id: "", + admin: new Uint8Array(), + classKey: BigInt(0), + jurisdiction: "", + metadata: "", + referenceId: "" + }; +} +export const Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message: Project, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.admin.length !== 0) { + writer.uint32(26).bytes(message.admin); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(32).uint64(message.classKey); + } + if (message.jurisdiction !== "") { + writer.uint32(42).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(50).string(message.metadata); + } + if (message.referenceId !== "") { + writer.uint32(58).string(message.referenceId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Project { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.admin = reader.bytes(); + break; + case 4: + message.classKey = reader.uint64(); + break; + case 5: + message.jurisdiction = reader.string(); + break; + case 6: + message.metadata = reader.string(); + break; + case 7: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Project { + const message = createBaseProject(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.admin = object.admin ?? new Uint8Array(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object: ProjectAmino): Project { + const message = createBaseProject(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = bytesFromBase64(object.admin); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message: Project): ProjectAmino { + const obj: any = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object: ProjectAminoMsg): Project { + return Project.fromAmino(object.value); + }, + fromProtoMsg(message: ProjectProtoMsg): Project { + return Project.decode(message.value); + }, + toProto(message: Project): Uint8Array { + return Project.encode(message).finish(); + }, + toProtoMsg(message: Project): ProjectProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: Project.encode(message).finish() + }; + } +}; +function createBaseBatch(): Batch { + return { + key: BigInt(0), + issuer: new Uint8Array(), + projectKey: BigInt(0), + denom: "", + metadata: "", + startDate: undefined, + endDate: undefined, + issuanceDate: undefined, + open: false + }; +} +export const Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message: Batch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== BigInt(0)) { + writer.uint32(8).uint64(message.key); + } + if (message.issuer.length !== 0) { + writer.uint32(18).bytes(message.issuer); + } + if (message.projectKey !== BigInt(0)) { + writer.uint32(24).uint64(message.projectKey); + } + if (message.denom !== "") { + writer.uint32(34).string(message.denom); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(50).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(58).fork()).ldelim(); + } + if (message.issuanceDate !== undefined) { + Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(66).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(72).bool(message.open); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Batch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.uint64(); + break; + case 2: + message.issuer = reader.bytes(); + break; + case 3: + message.projectKey = reader.uint64(); + break; + case 4: + message.denom = reader.string(); + break; + case 5: + message.metadata = reader.string(); + break; + case 6: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.open = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Batch { + const message = createBaseBatch(); + message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); + message.issuer = object.issuer ?? new Uint8Array(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.denom = object.denom ?? ""; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.issuanceDate = object.issuanceDate ?? undefined; + message.open = object.open ?? false; + return message; + }, + fromAmino(object: BatchAmino): Batch { + const message = createBaseBatch(); + if (object.key !== undefined && object.key !== null) { + message.key = BigInt(object.key); + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = bytesFromBase64(object.issuer); + } + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.denom !== undefined && object.denom !== null) { + message.denom = object.denom; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.issuance_date !== undefined && object.issuance_date !== null) { + message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + return message; + }, + toAmino(message: Batch): BatchAmino { + const obj: any = {}; + obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; + obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + return obj; + }, + fromAminoMsg(object: BatchAminoMsg): Batch { + return Batch.fromAmino(object.value); + }, + fromProtoMsg(message: BatchProtoMsg): Batch { + return Batch.decode(message.value); + }, + toProto(message: Batch): Uint8Array { + return Batch.encode(message).finish(); + }, + toProtoMsg(message: Batch): BatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: Batch.encode(message).finish() + }; + } +}; +function createBaseClassSequence(): ClassSequence { + return { + creditTypeAbbrev: "", + nextSequence: BigInt(0) + }; +} +export const ClassSequence = { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + encode(message: ClassSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.creditTypeAbbrev !== "") { + writer.uint32(10).string(message.creditTypeAbbrev); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypeAbbrev = reader.string(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassSequence { + const message = createBaseClassSequence(); + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ClassSequenceAmino): ClassSequence { + const message = createBaseClassSequence(); + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message: ClassSequence): ClassSequenceAmino { + const obj: any = {}; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ClassSequenceAminoMsg): ClassSequence { + return ClassSequence.fromAmino(object.value); + }, + fromProtoMsg(message: ClassSequenceProtoMsg): ClassSequence { + return ClassSequence.decode(message.value); + }, + toProto(message: ClassSequence): Uint8Array { + return ClassSequence.encode(message).finish(); + }, + toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ClassSequence", + value: ClassSequence.encode(message).finish() + }; + } +}; +function createBaseProjectSequence(): ProjectSequence { + return { + classKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +export const ProjectSequence = { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + encode(message: ProjectSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProjectSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ProjectSequence { + const message = createBaseProjectSequence(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ProjectSequenceAmino): ProjectSequence { + const message = createBaseProjectSequence(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message: ProjectSequence): ProjectSequenceAmino { + const obj: any = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ProjectSequenceAminoMsg): ProjectSequence { + return ProjectSequence.fromAmino(object.value); + }, + fromProtoMsg(message: ProjectSequenceProtoMsg): ProjectSequence { + return ProjectSequence.decode(message.value); + }, + toProto(message: ProjectSequence): Uint8Array { + return ProjectSequence.encode(message).finish(); + }, + toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ProjectSequence", + value: ProjectSequence.encode(message).finish() + }; + } +}; +function createBaseBatchSequence(): BatchSequence { + return { + projectKey: BigInt(0), + nextSequence: BigInt(0) + }; +} +export const BatchSequence = { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + encode(message: BatchSequence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectKey !== BigInt(0)) { + writer.uint32(8).uint64(message.projectKey); + } + if (message.nextSequence !== BigInt(0)) { + writer.uint32(16).uint64(message.nextSequence); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSequence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectKey = reader.uint64(); + break; + case 2: + message.nextSequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchSequence { + const message = createBaseBatchSequence(); + message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); + message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BatchSequenceAmino): BatchSequence { + const message = createBaseBatchSequence(); + if (object.project_key !== undefined && object.project_key !== null) { + message.projectKey = BigInt(object.project_key); + } + if (object.next_sequence !== undefined && object.next_sequence !== null) { + message.nextSequence = BigInt(object.next_sequence); + } + return message; + }, + toAmino(message: BatchSequence): BatchSequenceAmino { + const obj: any = {}; + obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; + obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BatchSequenceAminoMsg): BatchSequence { + return BatchSequence.fromAmino(object.value); + }, + fromProtoMsg(message: BatchSequenceProtoMsg): BatchSequence { + return BatchSequence.decode(message.value); + }, + toProto(message: BatchSequence): Uint8Array { + return BatchSequence.encode(message).finish(); + }, + toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchSequence", + value: BatchSequence.encode(message).finish() + }; + } +}; +function createBaseBatchBalance(): BatchBalance { + return { + batchKey: BigInt(0), + address: new Uint8Array(), + tradableAmount: "", + retiredAmount: "", + escrowedAmount: "" + }; +} +export const BatchBalance = { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + encode(message: BatchBalance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.address.length !== 0) { + writer.uint32(18).bytes(message.address); + } + if (message.tradableAmount !== "") { + writer.uint32(26).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(34).string(message.retiredAmount); + } + if (message.escrowedAmount !== "") { + writer.uint32(42).string(message.escrowedAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.address = reader.bytes(); + break; + case 3: + message.tradableAmount = reader.string(); + break; + case 4: + message.retiredAmount = reader.string(); + break; + case 5: + message.escrowedAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchBalance { + const message = createBaseBatchBalance(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.address = object.address ?? new Uint8Array(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.escrowedAmount = object.escrowedAmount ?? ""; + return message; + }, + fromAmino(object: BatchBalanceAmino): BatchBalance { + const message = createBaseBatchBalance(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { + message.escrowedAmount = object.escrowed_amount; + } + return message; + }, + toAmino(message: BatchBalance): BatchBalanceAmino { + const obj: any = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; + return obj; + }, + fromAminoMsg(object: BatchBalanceAminoMsg): BatchBalance { + return BatchBalance.fromAmino(object.value); + }, + fromProtoMsg(message: BatchBalanceProtoMsg): BatchBalance { + return BatchBalance.decode(message.value); + }, + toProto(message: BatchBalance): Uint8Array { + return BatchBalance.encode(message).finish(); + }, + toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchBalance", + value: BatchBalance.encode(message).finish() + }; + } +}; +function createBaseBatchSupply(): BatchSupply { + return { + batchKey: BigInt(0), + tradableAmount: "", + retiredAmount: "", + cancelledAmount: "" + }; +} +export const BatchSupply = { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + encode(message: BatchSupply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.cancelledAmount !== "") { + writer.uint32(34).string(message.cancelledAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.cancelledAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchSupply { + const message = createBaseBatchSupply(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.cancelledAmount = object.cancelledAmount ?? ""; + return message; + }, + fromAmino(object: BatchSupplyAmino): BatchSupply { + const message = createBaseBatchSupply(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { + message.cancelledAmount = object.cancelled_amount; + } + return message; + }, + toAmino(message: BatchSupply): BatchSupplyAmino { + const obj: any = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; + return obj; + }, + fromAminoMsg(object: BatchSupplyAminoMsg): BatchSupply { + return BatchSupply.fromAmino(object.value); + }, + fromProtoMsg(message: BatchSupplyProtoMsg): BatchSupply { + return BatchSupply.decode(message.value); + }, + toProto(message: BatchSupply): Uint8Array { + return BatchSupply.encode(message).finish(); + }, + toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchSupply", + value: BatchSupply.encode(message).finish() + }; + } +}; +function createBaseOriginTxIndex(): OriginTxIndex { + return { + classKey: BigInt(0), + id: "", + source: "" + }; +} +export const OriginTxIndex = { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + encode(message: OriginTxIndex, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classKey !== BigInt(0)) { + writer.uint32(8).uint64(message.classKey); + } + if (message.id !== "") { + writer.uint32(18).string(message.id); + } + if (message.source !== "") { + writer.uint32(26).string(message.source); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTxIndex(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classKey = reader.uint64(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.source = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): OriginTxIndex { + const message = createBaseOriginTxIndex(); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + return message; + }, + fromAmino(object: OriginTxIndexAmino): OriginTxIndex { + const message = createBaseOriginTxIndex(); + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + return message; + }, + toAmino(message: OriginTxIndex): OriginTxIndexAmino { + const obj: any = {}; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + return obj; + }, + fromAminoMsg(object: OriginTxIndexAminoMsg): OriginTxIndex { + return OriginTxIndex.fromAmino(object.value); + }, + fromProtoMsg(message: OriginTxIndexProtoMsg): OriginTxIndex { + return OriginTxIndex.decode(message.value); + }, + toProto(message: OriginTxIndex): Uint8Array { + return OriginTxIndex.encode(message).finish(); + }, + toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.OriginTxIndex", + value: OriginTxIndex.encode(message).finish() + }; + } +}; +function createBaseBatchContract(): BatchContract { + return { + batchKey: BigInt(0), + classKey: BigInt(0), + contract: "" + }; +} +export const BatchContract = { + typeUrl: "/regen.ecocredit.v1.BatchContract", + encode(message: BatchContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchKey !== BigInt(0)) { + writer.uint32(8).uint64(message.batchKey); + } + if (message.classKey !== BigInt(0)) { + writer.uint32(16).uint64(message.classKey); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchContract { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchContract(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchKey = reader.uint64(); + break; + case 2: + message.classKey = reader.uint64(); + break; + case 3: + message.contract = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchContract { + const message = createBaseBatchContract(); + message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); + message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); + message.contract = object.contract ?? ""; + return message; + }, + fromAmino(object: BatchContractAmino): BatchContract { + const message = createBaseBatchContract(); + if (object.batch_key !== undefined && object.batch_key !== null) { + message.batchKey = BigInt(object.batch_key); + } + if (object.class_key !== undefined && object.class_key !== null) { + message.classKey = BigInt(object.class_key); + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + return message; + }, + toAmino(message: BatchContract): BatchContractAmino { + const obj: any = {}; + obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; + obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; + obj.contract = message.contract === "" ? undefined : message.contract; + return obj; + }, + fromAminoMsg(object: BatchContractAminoMsg): BatchContract { + return BatchContract.fromAmino(object.value); + }, + fromProtoMsg(message: BatchContractProtoMsg): BatchContract { + return BatchContract.decode(message.value); + }, + toProto(message: BatchContract): Uint8Array { + return BatchContract.encode(message).finish(); + }, + toProtoMsg(message: BatchContract): BatchContractProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchContract", + value: BatchContract.encode(message).finish() + }; + } +}; +function createBaseClassCreatorAllowlist(): ClassCreatorAllowlist { + return { + enabled: false + }; +} +export const ClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + encode(message: ClassCreatorAllowlist, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.enabled === true) { + writer.uint32(8).bool(message.enabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassCreatorAllowlist { + const message = createBaseClassCreatorAllowlist(); + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object: ClassCreatorAllowlistAmino): ClassCreatorAllowlist { + const message = createBaseClassCreatorAllowlist(); + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message: ClassCreatorAllowlist): ClassCreatorAllowlistAmino { + const obj: any = {}; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object: ClassCreatorAllowlistAminoMsg): ClassCreatorAllowlist { + return ClassCreatorAllowlist.fromAmino(object.value); + }, + fromProtoMsg(message: ClassCreatorAllowlistProtoMsg): ClassCreatorAllowlist { + return ClassCreatorAllowlist.decode(message.value); + }, + toProto(message: ClassCreatorAllowlist): Uint8Array { + return ClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", + value: ClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseAllowedClassCreator(): AllowedClassCreator { + return { + address: new Uint8Array() + }; +} +export const AllowedClassCreator = { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + encode(message: AllowedClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowedClassCreator { + const message = createBaseAllowedClassCreator(); + message.address = object.address ?? new Uint8Array(); + return message; + }, + fromAmino(object: AllowedClassCreatorAmino): AllowedClassCreator { + const message = createBaseAllowedClassCreator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + return message; + }, + toAmino(message: AllowedClassCreator): AllowedClassCreatorAmino { + const obj: any = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + return obj; + }, + fromAminoMsg(object: AllowedClassCreatorAminoMsg): AllowedClassCreator { + return AllowedClassCreator.fromAmino(object.value); + }, + fromProtoMsg(message: AllowedClassCreatorProtoMsg): AllowedClassCreator { + return AllowedClassCreator.decode(message.value); + }, + toProto(message: AllowedClassCreator): Uint8Array { + return AllowedClassCreator.encode(message).finish(); + }, + toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", + value: AllowedClassCreator.encode(message).finish() + }; + } +}; +function createBaseClassFee(): ClassFee { + return { + fee: undefined + }; +} +export const ClassFee = { + typeUrl: "/regen.ecocredit.v1.ClassFee", + encode(message: ClassFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassFee { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassFee { + const message = createBaseClassFee(); + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: ClassFeeAmino): ClassFee { + const message = createBaseClassFee(); + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: ClassFee): ClassFeeAmino { + const obj: any = {}; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: ClassFeeAminoMsg): ClassFee { + return ClassFee.fromAmino(object.value); + }, + fromProtoMsg(message: ClassFeeProtoMsg): ClassFee { + return ClassFee.decode(message.value); + }, + toProto(message: ClassFee): Uint8Array { + return ClassFee.encode(message).finish(); + }, + toProtoMsg(message: ClassFee): ClassFeeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.ClassFee", + value: ClassFee.encode(message).finish() + }; + } +}; +function createBaseAllowedBridgeChain(): AllowedBridgeChain { + return { + chainName: "" + }; +} +export const AllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + encode(message: AllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.chainName !== "") { + writer.uint32(10).string(message.chainName); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowedBridgeChain { + const message = createBaseAllowedBridgeChain(); + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object: AllowedBridgeChainAmino): AllowedBridgeChain { + const message = createBaseAllowedBridgeChain(); + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message: AllowedBridgeChain): AllowedBridgeChainAmino { + const obj: any = {}; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object: AllowedBridgeChainAminoMsg): AllowedBridgeChain { + return AllowedBridgeChain.fromAmino(object.value); + }, + fromProtoMsg(message: AllowedBridgeChainProtoMsg): AllowedBridgeChain { + return AllowedBridgeChain.decode(message.value); + }, + toProto(message: AllowedBridgeChain): Uint8Array { + return AllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message: AllowedBridgeChain): AllowedBridgeChainProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", + value: AllowedBridgeChain.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/tx.amino.ts b/packages/api/src/regen/ecocredit/v1/tx.amino.ts new file mode 100644 index 00000000..ff839152 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/tx.amino.ts @@ -0,0 +1,119 @@ +//@ts-nocheck +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.v1.MsgCreateClass": { + aminoType: "regen/MsgCreateClass", + toAmino: MsgCreateClass.toAmino, + fromAmino: MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateProject": { + aminoType: "regen/MsgCreateProject", + toAmino: MsgCreateProject.toAmino, + fromAmino: MsgCreateProject.fromAmino + }, + "/regen.ecocredit.v1.MsgCreateBatch": { + aminoType: "regen/MsgCreateBatch", + toAmino: MsgCreateBatch.toAmino, + fromAmino: MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgMintBatchCredits": { + aminoType: "regen/MsgMintBatchCredits", + toAmino: MsgMintBatchCredits.toAmino, + fromAmino: MsgMintBatchCredits.fromAmino + }, + "/regen.ecocredit.v1.MsgSealBatch": { + aminoType: "regen/MsgSealBatch", + toAmino: MsgSealBatch.toAmino, + fromAmino: MsgSealBatch.fromAmino + }, + "/regen.ecocredit.v1.MsgSend": { + aminoType: "regen/MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/regen.ecocredit.v1.MsgRetire": { + aminoType: "regen/MsgRetire", + toAmino: MsgRetire.toAmino, + fromAmino: MsgRetire.fromAmino + }, + "/regen.ecocredit.v1.MsgCancel": { + aminoType: "regen/MsgCancel", + toAmino: MsgCancel.toAmino, + fromAmino: MsgCancel.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassAdmin": { + aminoType: "regen/MsgUpdateClassAdmin", + toAmino: MsgUpdateClassAdmin.toAmino, + fromAmino: MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassIssuers": { + aminoType: "regen/MsgUpdateClassIssuers", + toAmino: MsgUpdateClassIssuers.toAmino, + fromAmino: MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassMetadata": { + aminoType: "regen/MsgUpdateClassMetadata", + toAmino: MsgUpdateClassMetadata.toAmino, + fromAmino: MsgUpdateClassMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { + aminoType: "regen/MsgUpdateProjectAdmin", + toAmino: MsgUpdateProjectAdmin.toAmino, + fromAmino: MsgUpdateProjectAdmin.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { + aminoType: "regen/MsgUpdateProjectMetadata", + toAmino: MsgUpdateProjectMetadata.toAmino, + fromAmino: MsgUpdateProjectMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { + aminoType: "regen/MsgUpdateBatchMetadata", + toAmino: MsgUpdateBatchMetadata.toAmino, + fromAmino: MsgUpdateBatchMetadata.fromAmino + }, + "/regen.ecocredit.v1.MsgBridge": { + aminoType: "regen/MsgBridge", + toAmino: MsgBridge.toAmino, + fromAmino: MsgBridge.fromAmino + }, + "/regen.ecocredit.v1.MsgBridgeReceive": { + aminoType: "regen/MsgBridgeReceive", + toAmino: MsgBridgeReceive.toAmino, + fromAmino: MsgBridgeReceive.fromAmino + }, + "/regen.ecocredit.v1.MsgAddCreditType": { + aminoType: "regen/MsgAddCreditType", + toAmino: MsgAddCreditType.toAmino, + fromAmino: MsgAddCreditType.fromAmino + }, + "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { + aminoType: "regen/MsgSetClassCreatorAllowlist", + toAmino: MsgSetClassCreatorAllowlist.toAmino, + fromAmino: MsgSetClassCreatorAllowlist.fromAmino + }, + "/regen.ecocredit.v1.MsgAddClassCreator": { + aminoType: "regen/MsgAddClassCreator", + toAmino: MsgAddClassCreator.toAmino, + fromAmino: MsgAddClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveClassCreator": { + aminoType: "regen/MsgRemoveClassCreator", + toAmino: MsgRemoveClassCreator.toAmino, + fromAmino: MsgRemoveClassCreator.fromAmino + }, + "/regen.ecocredit.v1.MsgUpdateClassFee": { + aminoType: "regen/MsgUpdateClassFee", + toAmino: MsgUpdateClassFee.toAmino, + fromAmino: MsgUpdateClassFee.fromAmino + }, + "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { + aminoType: "regen/MsgAddAllowedBridgeChain", + toAmino: MsgAddAllowedBridgeChain.toAmino, + fromAmino: MsgAddAllowedBridgeChain.fromAmino + }, + "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { + aminoType: "regen/MsgRemoveAllowedBridgeChain", + toAmino: MsgRemoveAllowedBridgeChain.toAmino, + fromAmino: MsgRemoveAllowedBridgeChain.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/tx.registry.ts b/packages/api/src/regen/ecocredit/v1/tx.registry.ts new file mode 100644 index 00000000..9bf346b1 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/tx.registry.ts @@ -0,0 +1,431 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.v1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", MsgSend], ["/regen.ecocredit.v1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", MsgRemoveAllowedBridgeChain]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.encode(value).finish() + }; + }, + createProject(value: MsgCreateProject) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.encode(value).finish() + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.encode(value).finish() + }; + }, + mintBatchCredits(value: MsgMintBatchCredits) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.encode(value).finish() + }; + }, + sealBatch(value: MsgSealBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.encode(value).finish() + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.encode(value).finish() + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(value).finish() + }; + }, + updateProjectAdmin(value: MsgUpdateProjectAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.encode(value).finish() + }; + }, + updateProjectMetadata(value: MsgUpdateProjectMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.encode(value).finish() + }; + }, + updateBatchMetadata(value: MsgUpdateBatchMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.encode(value).finish() + }; + }, + bridge(value: MsgBridge) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.encode(value).finish() + }; + }, + bridgeReceive(value: MsgBridgeReceive) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.encode(value).finish() + }; + }, + addCreditType(value: MsgAddCreditType) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.encode(value).finish() + }; + }, + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.encode(value).finish() + }; + }, + addClassCreator(value: MsgAddClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.encode(value).finish() + }; + }, + removeClassCreator(value: MsgRemoveClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.encode(value).finish() + }; + }, + updateClassFee(value: MsgUpdateClassFee) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.encode(value).finish() + }; + }, + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.encode(value).finish() + }; + }, + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value + }; + }, + createProject(value: MsgCreateProject) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value + }; + }, + mintBatchCredits(value: MsgMintBatchCredits) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value + }; + }, + sealBatch(value: MsgSealBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value + }; + }, + updateProjectAdmin(value: MsgUpdateProjectAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value + }; + }, + updateProjectMetadata(value: MsgUpdateProjectMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value + }; + }, + updateBatchMetadata(value: MsgUpdateBatchMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value + }; + }, + bridge(value: MsgBridge) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value + }; + }, + bridgeReceive(value: MsgBridgeReceive) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value + }; + }, + addCreditType(value: MsgAddCreditType) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value + }; + }, + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value + }; + }, + addClassCreator(value: MsgAddClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value + }; + }, + removeClassCreator(value: MsgRemoveClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value + }; + }, + updateClassFee(value: MsgUpdateClassFee) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value + }; + }, + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value + }; + }, + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value + }; + } + }, + fromPartial: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.fromPartial(value) + }; + }, + createProject(value: MsgCreateProject) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.fromPartial(value) + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.fromPartial(value) + }; + }, + mintBatchCredits(value: MsgMintBatchCredits) { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.fromPartial(value) + }; + }, + sealBatch(value: MsgSealBatch) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.fromPartial(value) + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.fromPartial(value) + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.fromPartial(value) + }; + }, + updateProjectAdmin(value: MsgUpdateProjectAdmin) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.fromPartial(value) + }; + }, + updateProjectMetadata(value: MsgUpdateProjectMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.fromPartial(value) + }; + }, + updateBatchMetadata(value: MsgUpdateBatchMetadata) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.fromPartial(value) + }; + }, + bridge(value: MsgBridge) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.fromPartial(value) + }; + }, + bridgeReceive(value: MsgBridgeReceive) { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.fromPartial(value) + }; + }, + addCreditType(value: MsgAddCreditType) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.fromPartial(value) + }; + }, + setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist) { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.fromPartial(value) + }; + }, + addClassCreator(value: MsgAddClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.fromPartial(value) + }; + }, + removeClassCreator(value: MsgRemoveClassCreator) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.fromPartial(value) + }; + }, + updateClassFee(value: MsgUpdateClassFee) { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.fromPartial(value) + }; + }, + addAllowedBridgeChain(value: MsgAddAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.fromPartial(value) + }; + }, + removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain) { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/tx.rpc.msg.ts b/packages/api/src/regen/ecocredit/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..d78fbe2c --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/tx.rpc.msg.ts @@ -0,0 +1,321 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; +/** Msg is the regen.ecocredit.v1 Msg service. */ +export interface Msg { + /** + * CreateClass creates a new credit class under the given credit type with an + * approved list of issuers and optional metadata. If the class fee parameter + * is set, the fee field must be populated with equal value. A greater fee can + * be provided, however, the creator will only be charged the amount specified + * in the fee parameter. The creator of the credit class becomes the admin of + * the credit class upon creation. + */ + createClass(request: MsgCreateClass): Promise; + /** + * CreateProject creates a new project under the given credit class with a + * jurisdiction, optional metadata, and an optional reference ID. The creator + * of the project must be an approved credit class issuer for the given credit + * class. The creator becomes the admin of the project upon creation. + */ + createProject(request: MsgCreateProject): Promise; + /** + * CreateBatch creates a new batch of credits under the given project with a + * start and end date representing the monitoring period, a list of credits to + * be issued with each issuance specifying a recipient, the amount of tradable + * and retired credits, and the retirement jurisdiction (if credits are to be + * retired upon receipt), and optional metadata. The credit batch creator must + * be listed as an approved issuer within the credit class of the project that + * the credits are being issued under. + * + * The default behavior is for a new credit batch to be "sealed" as opposed to + * being "open". When a credit batch is "open", new credits can be dynamically + * minted to the credit batch following the creation of the credit batch. This + * "open" option should only be set to true when bridging credits from another + * chain or registry as a result of a bridge operation and is not intended for + * native credit issuance. + */ + createBatch(request: MsgCreateBatch): Promise; + /** + * MintBatchCredits dynamically mints credits to an "open" credit batch. This + * feature is only meant to be used when bridging credits from another chain + * or registry and is not intended for native credit issuance. When bridging + * credits from the same vintage (or monitoring period) as an existing credit + * batch, the credits can be dynamically minted to the existing credit batch + * if the credit batch is "open". + */ + mintBatchCredits(request: MsgMintBatchCredits): Promise; + /** + * MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed + * (i.e. once "open" is set to false), credits can no longer be dynamically + * minted to the credit batch. A sealed credit batch cannot be unsealed and + * only the credit batch issuer can seal a credit batch. + */ + sealBatch(request: MsgSealBatch): Promise; + /** + * Send sends a specified amount of tradable credits from the credit owner's + * account to another account. Sent credits can either remain tradable or be + * retired upon receipt. + */ + send(request: MsgSend): Promise; + /** + * Retire retires a specified amount of tradable credits, removing the amount + * from the credit owner's tradable balance and adding it to their retired + * balance. Retiring credits is permanent and implies the credits are being + * consumed as a offset. + */ + retire(request: MsgRetire): Promise; + /** + * Cancel cancels a specified amount of tradable credits, removing the amount + * from the credit owner's tradable balance and removing the amount from the + * credit batch's tradable supply. Cancelling credits is permanent and implies + * the credits have been moved to another chain or registry. + */ + cancel(request: MsgCancel): Promise; + /** + * UpdateClassAdmin updates the credit class admin. Only the admin of the + * credit class can update the credit class. + */ + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + /** + * UpdateClassIssuers updates the credit class issuer list. Only the admin of + * the credit class can update the credit class. + */ + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + /** + * UpdateClassMetadata updates the credit class metadata. Only the admin of + * the credit class can update the credit class. + */ + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; + /** + * UpdateProjectAdmin updates the project admin address. Only the admin of the + * project can update the project. + */ + updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; + /** + * UpdateProjectMetadata updates the project metadata. Only the admin of the + * project can update the project. + */ + updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; + /** + * UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be + * updated and only the issuer of the batch can update the batch. + * + * Since Revision 2 + */ + updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; + /** + * Bridge processes credits being sent back to the source chain. When credits + * are sent back to the source chain, the credits are cancelled and an event + * is emitted to be handled by an external bridge service. + */ + bridge(request: MsgBridge): Promise; + /** + * BridgeReceive processes credits being sent from another chain. When the + * credits are sent from the same vintage as an existing credit batch within + * the scope of the provided credit class, the credits will be minted to the + * existing credit batch, otherwise the credits will be issued in a new credit + * batch. The new credit batch will be created under an existing project if a + * project with a matching reference id already exists within the scope of the + * credit class, otherwise a new project will be created. + */ + bridgeReceive(request: MsgBridgeReceive): Promise; + /** + * AddCreditType is a governance method that allows the addition of new + * credit types to the network. + * + * Since Revision 2 + */ + addCreditType(request: MsgAddCreditType): Promise; + /** + * SetClassCreatorAllowlist is a governance method that updates the class + * creator allowlist enabled setting. When enabled, only addresses listed in + * the allowlist can create credit classes. When disabled, any address can + * create credit classes. + * + * Since Revision 2 + */ + setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; + /** + * AddClassCreator is a governance method that allows the addition of a new + * address to the class creation allowlist. + * + * Since Revision 2 + */ + addClassCreator(request: MsgAddClassCreator): Promise; + /** + * RemoveClassCreator is a governance method that removes an + * address from the class creation allowlist. + * + * Since Revision 2 + */ + removeClassCreator(request: MsgRemoveClassCreator): Promise; + /** + * UpdateClassFee is a governance method that allows for updating the credit + * class creation fee. If no fee is specified in the request, the credit + * class creation fee will be removed and no fee will be required to create + * a credit class. + * + * Since Revision 2 + */ + updateClassFee(request: MsgUpdateClassFee): Promise; + /** + * AddAllowedBridgeChain is a governance method that allows for the + * addition of a chain to bridge ecocredits to. + * + * Since Revision 2 + */ + addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; + /** + * RemoveAllowedBridgeChain is a governance method that allows for the + * removal of a chain to bridge ecocredits to. + * + * Since Revision 2 + */ + removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createProject = this.createProject.bind(this); + this.createBatch = this.createBatch.bind(this); + this.mintBatchCredits = this.mintBatchCredits.bind(this); + this.sealBatch = this.sealBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + this.updateProjectAdmin = this.updateProjectAdmin.bind(this); + this.updateProjectMetadata = this.updateProjectMetadata.bind(this); + this.updateBatchMetadata = this.updateBatchMetadata.bind(this); + this.bridge = this.bridge.bind(this); + this.bridgeReceive = this.bridgeReceive.bind(this); + this.addCreditType = this.addCreditType.bind(this); + this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); + this.addClassCreator = this.addClassCreator.bind(this); + this.removeClassCreator = this.removeClassCreator.bind(this); + this.updateClassFee = this.updateClassFee.bind(this); + this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); + this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); + } + createClass(request: MsgCreateClass): Promise { + const data = MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); + return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); + } + createProject(request: MsgCreateProject): Promise { + const data = MsgCreateProject.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); + return promise.then(data => MsgCreateProjectResponse.decode(new BinaryReader(data))); + } + createBatch(request: MsgCreateBatch): Promise { + const data = MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); + return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); + } + mintBatchCredits(request: MsgMintBatchCredits): Promise { + const data = MsgMintBatchCredits.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); + return promise.then(data => MsgMintBatchCreditsResponse.decode(new BinaryReader(data))); + } + sealBatch(request: MsgSealBatch): Promise { + const data = MsgSealBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); + return promise.then(data => MsgSealBatchResponse.decode(new BinaryReader(data))); + } + send(request: MsgSend): Promise { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + retire(request: MsgRetire): Promise { + const data = MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); + return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); + } + cancel(request: MsgCancel): Promise { + const data = MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); + return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); + } + updateClassAdmin(request: MsgUpdateClassAdmin): Promise { + const data = MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); + return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); + } + updateClassIssuers(request: MsgUpdateClassIssuers): Promise { + const data = MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); + return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); + } + updateClassMetadata(request: MsgUpdateClassMetadata): Promise { + const data = MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); + return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); + } + updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise { + const data = MsgUpdateProjectAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); + return promise.then(data => MsgUpdateProjectAdminResponse.decode(new BinaryReader(data))); + } + updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise { + const data = MsgUpdateProjectMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); + return promise.then(data => MsgUpdateProjectMetadataResponse.decode(new BinaryReader(data))); + } + updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise { + const data = MsgUpdateBatchMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); + return promise.then(data => MsgUpdateBatchMetadataResponse.decode(new BinaryReader(data))); + } + bridge(request: MsgBridge): Promise { + const data = MsgBridge.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); + return promise.then(data => MsgBridgeResponse.decode(new BinaryReader(data))); + } + bridgeReceive(request: MsgBridgeReceive): Promise { + const data = MsgBridgeReceive.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); + return promise.then(data => MsgBridgeReceiveResponse.decode(new BinaryReader(data))); + } + addCreditType(request: MsgAddCreditType): Promise { + const data = MsgAddCreditType.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); + return promise.then(data => MsgAddCreditTypeResponse.decode(new BinaryReader(data))); + } + setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise { + const data = MsgSetClassCreatorAllowlist.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); + return promise.then(data => MsgSetClassCreatorAllowlistResponse.decode(new BinaryReader(data))); + } + addClassCreator(request: MsgAddClassCreator): Promise { + const data = MsgAddClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); + return promise.then(data => MsgAddClassCreatorResponse.decode(new BinaryReader(data))); + } + removeClassCreator(request: MsgRemoveClassCreator): Promise { + const data = MsgRemoveClassCreator.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); + return promise.then(data => MsgRemoveClassCreatorResponse.decode(new BinaryReader(data))); + } + updateClassFee(request: MsgUpdateClassFee): Promise { + const data = MsgUpdateClassFee.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); + return promise.then(data => MsgUpdateClassFeeResponse.decode(new BinaryReader(data))); + } + addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise { + const data = MsgAddAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); + return promise.then(data => MsgAddAllowedBridgeChainResponse.decode(new BinaryReader(data))); + } + removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise { + const data = MsgRemoveAllowedBridgeChain.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); + return promise.then(data => MsgRemoveAllowedBridgeChainResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/tx.ts b/packages/api/src/regen/ecocredit/v1/tx.ts new file mode 100644 index 00000000..d12e629d --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/tx.ts @@ -0,0 +1,5627 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { toTimestamp, fromTimestamp } from "../../../helpers"; +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditType { + /** authority is the address of the governance account. */ + authority: string; + /** credit_type defines a credit type to add to the credit types parameter. */ + creditType?: CreditType; +} +export interface MsgAddCreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; + value: Uint8Array; +} +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** credit_type defines a credit type to add to the credit types parameter. */ + credit_type?: CreditTypeAmino; +} +export interface MsgAddCreditTypeAminoMsg { + type: "regen/MsgAddCreditType"; + value: MsgAddCreditTypeAmino; +} +/** + * MsgAddCreditType is the Msg/AddCreditType request type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeSDKType { + authority: string; + credit_type?: CreditTypeSDKType; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponse {} +export interface MsgAddCreditTypeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; + value: Uint8Array; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponseAmino {} +export interface MsgAddCreditTypeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; + value: MsgAddCreditTypeResponseAmino; +} +/** + * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. + * + * Since Revision 2 + */ +export interface MsgAddCreditTypeResponseSDKType {} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClass { + /** + * admin is the address of the account creating the credit class that will + * become the admin of the credit class upon creation. The admin will have + * permissions within the credit class to update the credit class including + * the list of approved issuers. If Params.allowlist_enabled is set to true, + * this address must be included in Params.allowed_class_creators. + */ + admin: string; + /** + * issuers are the addresses of the accounts that will have permissions within + * the credit class to create projects and issue credits. + */ + issuers: string[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit class. + */ + metadata: string; + /** + * credit_type_abbrev is the abbreviation of the credit type under which the + * credit class will be created (e.g. "C", "BIO"). + */ + creditTypeAbbrev: string; + /** + * fee is the credit class creation fee. An equal fee is required if the class + * creation fee parameter is set. The provided fee can be greater than the + * parameter, but only the amount in the parameter will be charged. + */ + fee?: Coin; +} +export interface MsgCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; + value: Uint8Array; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassAmino { + /** + * admin is the address of the account creating the credit class that will + * become the admin of the credit class upon creation. The admin will have + * permissions within the credit class to update the credit class including + * the list of approved issuers. If Params.allowlist_enabled is set to true, + * this address must be included in Params.allowed_class_creators. + */ + admin?: string; + /** + * issuers are the addresses of the accounts that will have permissions within + * the credit class to create projects and issue credits. + */ + issuers?: string[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit class. + */ + metadata?: string; + /** + * credit_type_abbrev is the abbreviation of the credit type under which the + * credit class will be created (e.g. "C", "BIO"). + */ + credit_type_abbrev?: string; + /** + * fee is the credit class creation fee. An equal fee is required if the class + * creation fee parameter is set. The provided fee can be greater than the + * parameter, but only the amount in the parameter will be charged. + */ + fee?: CoinAmino; +} +export interface MsgCreateClassAminoMsg { + type: "regen/MsgCreateClass"; + value: MsgCreateClassAmino; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassSDKType { + admin: string; + issuers: string[]; + metadata: string; + credit_type_abbrev: string; + fee?: CoinSDKType; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponse { + /** class_id is the unique identifier of the credit class. */ + classId: string; +} +export interface MsgCreateClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse"; + value: Uint8Array; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseAmino { + /** class_id is the unique identifier of the credit class. */ + class_id?: string; +} +export interface MsgCreateClassResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateClassResponse"; + value: MsgCreateClassResponseAmino; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseSDKType { + class_id: string; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProject { + /** + * admin is the address of the account creating the project that will become + * the admin of the project upon creation. The creator of the project must be + * an approved issuer within the credit class under which the project is being + * created. The admin will have permissions to update the project including + * the ability to reassign the admin role to another account. + */ + admin: string; + /** + * class_id is the unique identifier of the credit class under which the + * project will be created. + */ + classId: string; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the project. + */ + metadata: string; + /** + * jurisdiction is the jurisdiction of the project. A jurisdiction has with + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction: string; + /** + * reference_id is any arbitrary string used to reference the project with a + * maximum length of 32 characters. + */ + referenceId: string; +} +export interface MsgCreateProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject"; + value: Uint8Array; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProjectAmino { + /** + * admin is the address of the account creating the project that will become + * the admin of the project upon creation. The creator of the project must be + * an approved issuer within the credit class under which the project is being + * created. The admin will have permissions to update the project including + * the ability to reassign the admin role to another account. + */ + admin?: string; + /** + * class_id is the unique identifier of the credit class under which the + * project will be created. + */ + class_id?: string; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the project. + */ + metadata?: string; + /** + * jurisdiction is the jurisdiction of the project. A jurisdiction has with + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction?: string; + /** + * reference_id is any arbitrary string used to reference the project with a + * maximum length of 32 characters. + */ + reference_id?: string; +} +export interface MsgCreateProjectAminoMsg { + type: "regen/MsgCreateProject"; + value: MsgCreateProjectAmino; +} +/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ +export interface MsgCreateProjectSDKType { + admin: string; + class_id: string; + metadata: string; + jurisdiction: string; + reference_id: string; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponse { + /** project_id is the unique identifier of the project. */ + projectId: string; +} +export interface MsgCreateProjectResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse"; + value: Uint8Array; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponseAmino { + /** project_id is the unique identifier of the project. */ + project_id?: string; +} +export interface MsgCreateProjectResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; + value: MsgCreateProjectResponseAmino; +} +/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ +export interface MsgCreateProjectResponseSDKType { + project_id: string; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatch { + /** + * issuer is the address of the account issuing the credits and must be an + * approved issuer within the credit class of the project. + */ + issuer: string; + /** + * project_id is the unique identifier of the project under which the credit + * batch will be created. + */ + projectId: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance: BatchIssuance[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit batch. + */ + metadata: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * open determines whether or not the credits can be dynamically minted to the + * credit batch following the creation of the credit batch. This field should + * only be set to true when bridging credits from another chain or registry as + * a result of a bridge operation and is not intended for native issuance. + */ + open: boolean; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. This field can be ignored when natively + * issuing credits and should only be set when bridging assets from another + * chain or registry as a result of a bridge operation. + */ + originTx?: OriginTx; +} +export interface MsgCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; + value: Uint8Array; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchAmino { + /** + * issuer is the address of the account issuing the credits and must be an + * approved issuer within the credit class of the project. + */ + issuer?: string; + /** + * project_id is the unique identifier of the project under which the credit + * batch will be created. + */ + project_id?: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance?: BatchIssuanceAmino[]; + /** + * metadata is any arbitrary string with a maximum length of 256 characters + * that includes or references metadata to attach to the credit batch. + */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * open determines whether or not the credits can be dynamically minted to the + * credit batch following the creation of the credit batch. This field should + * only be set to true when bridging credits from another chain or registry as + * a result of a bridge operation and is not intended for native issuance. + */ + open?: boolean; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the creation of the credit batch. This field can be ignored when natively + * issuing credits and should only be set when bridging assets from another + * chain or registry as a result of a bridge operation. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgCreateBatchAminoMsg { + type: "regen/MsgCreateBatch"; + value: MsgCreateBatchAmino; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchSDKType { + issuer: string; + project_id: string; + issuance: BatchIssuanceSDKType[]; + metadata: string; + start_date?: Date; + end_date?: Date; + open: boolean; + origin_tx?: OriginTxSDKType; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponse { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; +} +export interface MsgCreateBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse"; + value: Uint8Array; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; +} +export interface MsgCreateBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; + value: MsgCreateBatchResponseAmino; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseSDKType { + batch_denom: string; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCredits { + /** + * issuer is the address of the account minting the credits and must be the + * same issuer who created the credit batch. + */ + issuer: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance: BatchIssuance[]; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits. + */ + originTx?: OriginTx; +} +export interface MsgMintBatchCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; + value: Uint8Array; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCreditsAmino { + /** + * issuer is the address of the account minting the credits and must be the + * same issuer who created the credit batch. + */ + issuer?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * issuance specifies the amount of tradable and retired credits that will be + * issued to each recipient and the jurisdiction in which the credits will be + * retired if credits are to be retired upon receipt. + */ + issuance?: BatchIssuanceAmino[]; + /** + * origin_tx is the transaction from another chain or registry that triggered + * the minting of credits. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgMintBatchCreditsAminoMsg { + type: "regen/MsgMintBatchCredits"; + value: MsgMintBatchCreditsAmino; +} +/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ +export interface MsgMintBatchCreditsSDKType { + issuer: string; + batch_denom: string; + issuance: BatchIssuanceSDKType[]; + origin_tx?: OriginTxSDKType; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponse {} +export interface MsgMintBatchCreditsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; + value: Uint8Array; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponseAmino {} +export interface MsgMintBatchCreditsResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; + value: MsgMintBatchCreditsResponseAmino; +} +/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ +export interface MsgMintBatchCreditsResponseSDKType {} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatch { + /** + * issuer is the address of the account that created the credit batch and the + * only account with permissions to seal the credit batch. + */ + issuer: string; + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; +} +export interface MsgSealBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch"; + value: Uint8Array; +} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatchAmino { + /** + * issuer is the address of the account that created the credit batch and the + * only account with permissions to seal the credit batch. + */ + issuer?: string; + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; +} +export interface MsgSealBatchAminoMsg { + type: "regen/MsgSealBatch"; + value: MsgSealBatchAmino; +} +/** MsgSealBatch is the Msg/MintBatchCredits request type. */ +export interface MsgSealBatchSDKType { + issuer: string; + batch_denom: string; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponse {} +export interface MsgSealBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse"; + value: Uint8Array; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponseAmino {} +export interface MsgSealBatchResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSealBatchResponse"; + value: MsgSealBatchResponseAmino; +} +/** MsgSealBatchResponse is the Msg/SealBatch response type. */ +export interface MsgSealBatchResponseSDKType {} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSend { + /** sender is the address of the account sending credits. */ + sender: string; + /** recipient is the address of the account receiving credits. */ + recipient: string; + /** credits are the credits being sent to the recipient. */ + credits: MsgSend_SendCredits[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSend"; + value: Uint8Array; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendAmino { + /** sender is the address of the account sending credits. */ + sender?: string; + /** recipient is the address of the account receiving credits. */ + recipient?: string; + /** credits are the credits being sent to the recipient. */ + credits?: MsgSend_SendCreditsAmino[]; +} +export interface MsgSendAminoMsg { + type: "regen/MsgSend"; + value: MsgSendAmino; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendSDKType { + sender: string; + recipient: string; + credits: MsgSend_SendCreditsSDKType[]; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCredits { + /** batch_denom is the unique identifier of the credit batch. */ + batchDenom: string; + /** + * tradable_amount is the amount of credits in this transfer that can be + * traded by the recipient. The number of decimal places must be less than + * or equal to the credit type precision. + */ + tradableAmount: string; + /** + * retired_amount is the amount of credits in this transfer that are retired + * upon receipt. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retiredAmount: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the format: + * [-[ ]] + * The country-code and sub-national-code must conform to ISO 3166-2 and the + * postal-code can be up to 64 alphanumeric characters. Only the + * country-code is required, while the sub-national-code and postal-code are + * optional and can be added for increased precision. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. This field is only required if retired_amount is + * positive. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface MsgSend_SendCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.SendCredits"; + value: Uint8Array; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCreditsAmino { + /** batch_denom is the unique identifier of the credit batch. */ + batch_denom?: string; + /** + * tradable_amount is the amount of credits in this transfer that can be + * traded by the recipient. The number of decimal places must be less than + * or equal to the credit type precision. + */ + tradable_amount?: string; + /** + * retired_amount is the amount of credits in this transfer that are retired + * upon receipt. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retired_amount?: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the format: + * [-[ ]] + * The country-code and sub-national-code must conform to ISO 3166-2 and the + * postal-code can be up to 64 alphanumeric characters. Only the + * country-code is required, while the sub-national-code and postal-code are + * optional and can be added for increased precision. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. This field is only required if retired_amount is + * positive. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface MsgSend_SendCreditsAminoMsg { + type: "/regen.ecocredit.v1.SendCredits"; + value: MsgSend_SendCreditsAmino; +} +/** + * SendCredits specifies the amount of tradable and retired credits of a + * credit batch that will be sent to the recipient and the jurisdiction in + * which the credits will be retired upon receipt. + */ +export interface MsgSend_SendCreditsSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponse {} +export interface MsgSendResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseAmino {} +export interface MsgSendResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseSDKType {} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetire { + /** owner is the address of the account that owns the credits being retired. */ + owner: string; + /** credits specifies a credit batch and the number of credits being retired. */ + credits: Credits[]; + /** + * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason: string; +} +export interface MsgRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRetire"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireAmino { + /** owner is the address of the account that owns the credits being retired. */ + owner?: string; + /** credits specifies a credit batch and the number of credits being retired. */ + credits?: CreditsAmino[]; + /** + * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has + * the format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + jurisdiction?: string; + /** + * reason is any arbitrary string that specifies the reason for retiring + * credits. + * + * Since Revision 2 + */ + reason?: string; +} +export interface MsgRetireAminoMsg { + type: "regen/MsgRetire"; + value: MsgRetireAmino; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireSDKType { + owner: string; + credits: CreditsSDKType[]; + jurisdiction: string; + reason: string; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponse {} +export interface MsgRetireResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseAmino {} +export interface MsgRetireResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRetireResponse"; + value: MsgRetireResponseAmino; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseSDKType {} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancel { + /** owner is the address of the account that owns the credits being cancelled. */ + owner: string; + /** credits specifies a credit batch and the number of credits being cancelled. */ + credits: Credits[]; + /** + * reason is any arbitrary string that specifies the reason for cancelling + * credits. + */ + reason: string; +} +export interface MsgCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCancel"; + value: Uint8Array; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelAmino { + /** owner is the address of the account that owns the credits being cancelled. */ + owner?: string; + /** credits specifies a credit batch and the number of credits being cancelled. */ + credits?: CreditsAmino[]; + /** + * reason is any arbitrary string that specifies the reason for cancelling + * credits. + */ + reason?: string; +} +export interface MsgCancelAminoMsg { + type: "regen/MsgCancel"; + value: MsgCancelAmino; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelSDKType { + owner: string; + credits: CreditsSDKType[]; + reason: string; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponse {} +export interface MsgCancelResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse"; + value: Uint8Array; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseAmino {} +export interface MsgCancelResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgCancelResponse"; + value: MsgCancelResponseAmino; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseSDKType {} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdmin { + /** + * admin is the address of the account that is currently the admin of the + * credit class. + */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * new_admin is the address of the account that will become the new admin of + * the credit class. + */ + newAdmin: string; +} +export interface MsgUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin"; + value: Uint8Array; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminAmino { + /** + * admin is the address of the account that is currently the admin of the + * credit class. + */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * new_admin is the address of the account that will become the new admin of + * the credit class. + */ + new_admin?: string; +} +export interface MsgUpdateClassAdminAminoMsg { + type: "regen/MsgUpdateClassAdmin"; + value: MsgUpdateClassAdminAmino; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminSDKType { + admin: string; + class_id: string; + new_admin: string; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponse {} +export interface MsgUpdateClassAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseAmino {} +export interface MsgUpdateClassAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; + value: MsgUpdateClassAdminResponseAmino; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseSDKType {} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuers { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * add_issuers are the addresses of the accounts that will be added to the + * list of approved credit class issuers. + */ + addIssuers: string[]; + /** + * remove_issuers are the addresses of the accounts that will be removed from + * the list of approved credit class issuers. + */ + removeIssuers: string[]; +} +export interface MsgUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers"; + value: Uint8Array; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * add_issuers are the addresses of the accounts that will be added to the + * list of approved credit class issuers. + */ + add_issuers?: string[]; + /** + * remove_issuers are the addresses of the accounts that will be removed from + * the list of approved credit class issuers. + */ + remove_issuers?: string[]; +} +export interface MsgUpdateClassIssuersAminoMsg { + type: "regen/MsgUpdateClassIssuers"; + value: MsgUpdateClassIssuersAmino; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersSDKType { + admin: string; + class_id: string; + add_issuers: string[]; + remove_issuers: string[]; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponse {} +export interface MsgUpdateClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; + value: Uint8Array; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseAmino {} +export interface MsgUpdateClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; + value: MsgUpdateClassIssuersResponseAmino; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseSDKType {} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadata { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique identifier of the credit class. */ + classId: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the credit class. + */ + newMetadata: string; +} +export interface MsgUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata"; + value: Uint8Array; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique identifier of the credit class. */ + class_id?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the credit class. + */ + new_metadata?: string; +} +export interface MsgUpdateClassMetadataAminoMsg { + type: "regen/MsgUpdateClassMetadata"; + value: MsgUpdateClassMetadataAmino; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataSDKType { + admin: string; + class_id: string; + new_metadata: string; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponse {} +export interface MsgUpdateClassMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseAmino {} +export interface MsgUpdateClassMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; + value: MsgUpdateClassMetadataResponseAmino; +} +/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseSDKType {} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdmin { + /** + * admin is the address of the account that is the currently the admin of the + * project. + */ + admin: string; + /** project_id is the unique identifier of the project. */ + projectId: string; + /** + * new_admin is the address of the account that will become the new admin of + * the project. + */ + newAdmin: string; +} +export interface MsgUpdateProjectAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin"; + value: Uint8Array; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdminAmino { + /** + * admin is the address of the account that is the currently the admin of the + * project. + */ + admin?: string; + /** project_id is the unique identifier of the project. */ + project_id?: string; + /** + * new_admin is the address of the account that will become the new admin of + * the project. + */ + new_admin?: string; +} +export interface MsgUpdateProjectAdminAminoMsg { + type: "regen/MsgUpdateProjectAdmin"; + value: MsgUpdateProjectAdminAmino; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ +export interface MsgUpdateProjectAdminSDKType { + admin: string; + project_id: string; + new_admin: string; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponse {} +export interface MsgUpdateProjectAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponseAmino {} +export interface MsgUpdateProjectAdminResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; + value: MsgUpdateProjectAdminResponseAmino; +} +/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ +export interface MsgUpdateProjectAdminResponseSDKType {} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadata { + /** admin is the address of the account that is the admin of the project. */ + admin: string; + /** project_id is the unique identifier of the project. */ + projectId: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the project. + */ + newMetadata: string; +} +export interface MsgUpdateProjectMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata"; + value: Uint8Array; +} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadataAmino { + /** admin is the address of the account that is the admin of the project. */ + admin?: string; + /** project_id is the unique identifier of the project. */ + project_id?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the project. + */ + new_metadata?: string; +} +export interface MsgUpdateProjectMetadataAminoMsg { + type: "regen/MsgUpdateProjectMetadata"; + value: MsgUpdateProjectMetadataAmino; +} +/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ +export interface MsgUpdateProjectMetadataSDKType { + admin: string; + project_id: string; + new_metadata: string; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponse {} +export interface MsgUpdateProjectMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; + value: Uint8Array; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponseAmino {} +export interface MsgUpdateProjectMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; + value: MsgUpdateProjectMetadataResponseAmino; +} +/** + * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse + * response type. + */ +export interface MsgUpdateProjectMetadataResponseSDKType {} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridge { + /** owner is the address of the account that owns the credits being bridged. */ + owner: string; + /** target is the name of the target chain or registry. */ + target: string; + /** recipient is the address of the account receiving the bridged credits. */ + recipient: string; + /** credits specifies a credit batch and the number of credits being bridged. */ + credits: Credits[]; +} +export interface MsgBridgeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridge"; + value: Uint8Array; +} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridgeAmino { + /** owner is the address of the account that owns the credits being bridged. */ + owner?: string; + /** target is the name of the target chain or registry. */ + target?: string; + /** recipient is the address of the account receiving the bridged credits. */ + recipient?: string; + /** credits specifies a credit batch and the number of credits being bridged. */ + credits?: CreditsAmino[]; +} +export interface MsgBridgeAminoMsg { + type: "regen/MsgBridge"; + value: MsgBridgeAmino; +} +/** MsgBridge is the Msg/Bridge request type. */ +export interface MsgBridgeSDKType { + owner: string; + target: string; + recipient: string; + credits: CreditsSDKType[]; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadata { + /** issuer is the address of the account that is the issuer of the batch. */ + issuer: string; + /** batch_denom is the unique identifier of the batch. */ + batchDenom: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the batch. + */ + newMetadata: string; +} +export interface MsgUpdateBatchMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata"; + value: Uint8Array; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataAmino { + /** issuer is the address of the account that is the issuer of the batch. */ + issuer?: string; + /** batch_denom is the unique identifier of the batch. */ + batch_denom?: string; + /** + * new_metadata is new metadata that will replace the existing metadata. It + * can be any arbitrary string with a maximum length of 256 characters that + * includes or references the metadata to attach to the batch. + */ + new_metadata?: string; +} +export interface MsgUpdateBatchMetadataAminoMsg { + type: "regen/MsgUpdateBatchMetadata"; + value: MsgUpdateBatchMetadataAmino; +} +/** + * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataSDKType { + issuer: string; + batch_denom: string; + new_metadata: string; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponse {} +export interface MsgUpdateBatchMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; + value: Uint8Array; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponseAmino {} +export interface MsgUpdateBatchMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; + value: MsgUpdateBatchMetadataResponseAmino; +} +/** + * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse + * response type. + * + * Since Revision 2 + */ +export interface MsgUpdateBatchMetadataResponseSDKType {} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponse {} +export interface MsgBridgeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse"; + value: Uint8Array; +} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponseAmino {} +export interface MsgBridgeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgBridgeResponse"; + value: MsgBridgeResponseAmino; +} +/** MsgBridgeResponse is the Msg/Bridge response type. */ +export interface MsgBridgeResponseSDKType {} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceive { + /** issuer is the account address of the service bridging the credits. */ + issuer: string; + /** + * class_id is the unique identifier of the credit class within which the + * project and credit batch already exist or will be created. + */ + classId: string; + /** project defines the project information for the bridged credits. */ + project?: MsgBridgeReceive_Project; + /** batch defines the credit batch information for the bridged credits. */ + batch?: MsgBridgeReceive_Batch; + /** + * origin_tx is a reference to a transaction which caused the transfer from + * another chain or registry. + */ + originTx?: OriginTx; +} +export interface MsgBridgeReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; + value: Uint8Array; +} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceiveAmino { + /** issuer is the account address of the service bridging the credits. */ + issuer?: string; + /** + * class_id is the unique identifier of the credit class within which the + * project and credit batch already exist or will be created. + */ + class_id?: string; + /** project defines the project information for the bridged credits. */ + project?: MsgBridgeReceive_ProjectAmino; + /** batch defines the credit batch information for the bridged credits. */ + batch?: MsgBridgeReceive_BatchAmino; + /** + * origin_tx is a reference to a transaction which caused the transfer from + * another chain or registry. + */ + origin_tx?: OriginTxAmino; +} +export interface MsgBridgeReceiveAminoMsg { + type: "regen/MsgBridgeReceive"; + value: MsgBridgeReceiveAmino; +} +/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ +export interface MsgBridgeReceiveSDKType { + issuer: string; + class_id: string; + project?: MsgBridgeReceive_ProjectSDKType; + batch?: MsgBridgeReceive_BatchSDKType; + origin_tx?: OriginTxSDKType; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_Batch { + /** recipient is the recipient of the bridged credits. */ + recipient: string; + /** amount is the amount of credits being bridged. */ + amount: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** metadata is the metadata for the credit batch. */ + metadata: string; +} +export interface MsgBridgeReceive_BatchProtoMsg { + typeUrl: "/regen.ecocredit.v1.Batch"; + value: Uint8Array; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_BatchAmino { + /** recipient is the recipient of the bridged credits. */ + recipient?: string; + /** amount is the amount of credits being bridged. */ + amount?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** metadata is the metadata for the credit batch. */ + metadata?: string; +} +export interface MsgBridgeReceive_BatchAminoMsg { + type: "/regen.ecocredit.v1.Batch"; + value: MsgBridgeReceive_BatchAmino; +} +/** + * Batch defines the credit batch information for the bridged credits. This + * information will be used to create a credit batch or to dynamically mint + * credits to an existing credit batch. + */ +export interface MsgBridgeReceive_BatchSDKType { + recipient: string; + amount: string; + start_date?: Date; + end_date?: Date; + metadata: string; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_Project { + /** reference_id is the reference id of the project. */ + referenceId: string; + /** jurisdiction is the project jurisdiction. */ + jurisdiction: string; + /** metadata is the metadata for the project. */ + metadata: string; +} +export interface MsgBridgeReceive_ProjectProtoMsg { + typeUrl: "/regen.ecocredit.v1.Project"; + value: Uint8Array; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_ProjectAmino { + /** reference_id is the reference id of the project. */ + reference_id?: string; + /** jurisdiction is the project jurisdiction. */ + jurisdiction?: string; + /** metadata is the metadata for the project. */ + metadata?: string; +} +export interface MsgBridgeReceive_ProjectAminoMsg { + type: "/regen.ecocredit.v1.Project"; + value: MsgBridgeReceive_ProjectAmino; +} +/** + * Project defines the project information for the bridged credits. This + * information will be used to find an existing project or to create a new + * project if a project with the same reference id does not already exist. + */ +export interface MsgBridgeReceive_ProjectSDKType { + reference_id: string; + jurisdiction: string; + metadata: string; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponse { + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batchDenom: string; + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + projectId: string; +} +export interface MsgBridgeReceiveResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; + value: Uint8Array; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponseAmino { + /** + * batch_denom is the unique identifier of the credit batch either created + * or within which the credits were dynamically minted. + */ + batch_denom?: string; + /** + * project_id is the unique identifier of the project that was either created + * or the existing project within which the credit batch exists. + */ + project_id?: string; +} +export interface MsgBridgeReceiveResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; + value: MsgBridgeReceiveResponseAmino; +} +/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ +export interface MsgBridgeReceiveResponseSDKType { + batch_denom: string; + project_id: string; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreator { + /** authority is the address of the governance account. */ + authority: string; + /** creator is the address to add to the class creator list. */ + creator: string; +} +export interface MsgAddClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator"; + value: Uint8Array; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** creator is the address to add to the class creator list. */ + creator?: string; +} +export interface MsgAddClassCreatorAminoMsg { + type: "regen/MsgAddClassCreator"; + value: MsgAddClassCreatorAmino; +} +/** + * MsgAddClassCreator is the Msg/AddClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorSDKType { + authority: string; + creator: string; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponse {} +export interface MsgAddClassCreatorResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; + value: Uint8Array; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponseAmino {} +export interface MsgAddClassCreatorResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; + value: MsgAddClassCreatorResponseAmino; +} +/** + * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. + * + * Since Revision 2 + */ +export interface MsgAddClassCreatorResponseSDKType {} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlist { + /** authority is the address of the governance account. */ + authority: string; + /** enabled defines the boolean value to set the allowlist on or off. */ + enabled: boolean; +} +export interface MsgSetClassCreatorAllowlistProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist"; + value: Uint8Array; +} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** enabled defines the boolean value to set the allowlist on or off. */ + enabled?: boolean; +} +export interface MsgSetClassCreatorAllowlistAminoMsg { + type: "regen/MsgSetClassCreatorAllowlist"; + value: MsgSetClassCreatorAllowlistAmino; +} +/** + * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request + * type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistSDKType { + authority: string; + enabled: boolean; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponse {} +export interface MsgSetClassCreatorAllowlistResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; + value: Uint8Array; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponseAmino {} +export interface MsgSetClassCreatorAllowlistResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; + value: MsgSetClassCreatorAllowlistResponseAmino; +} +/** + * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist + * response type. + * + * Since Revision 2 + */ +export interface MsgSetClassCreatorAllowlistResponseSDKType {} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreator { + /** authority is the address of the governance account. */ + authority: string; + /** creator is the address to remove from the class creator list. */ + creator: string; +} +export interface MsgRemoveClassCreatorProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator"; + value: Uint8Array; +} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** creator is the address to remove from the class creator list. */ + creator?: string; +} +export interface MsgRemoveClassCreatorAminoMsg { + type: "regen/MsgRemoveClassCreator"; + value: MsgRemoveClassCreatorAmino; +} +/** + * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorSDKType { + authority: string; + creator: string; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponse {} +export interface MsgRemoveClassCreatorResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; + value: Uint8Array; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponseAmino {} +export interface MsgRemoveClassCreatorResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; + value: MsgRemoveClassCreatorResponseAmino; +} +/** + * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. + * + * Since Revision 2 + */ +export interface MsgRemoveClassCreatorResponseSDKType {} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFee { + /** authority is the address of the governance account. */ + authority: string; + /** + * fee is the credit class creation fee. If not set, the credit class creation + * fee will be removed and no fee will be required to create a credit class. + */ + fee?: Coin; +} +export interface MsgUpdateClassFeeProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; + value: Uint8Array; +} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * fee is the credit class creation fee. If not set, the credit class creation + * fee will be removed and no fee will be required to create a credit class. + */ + fee?: CoinAmino; +} +export interface MsgUpdateClassFeeAminoMsg { + type: "regen/MsgUpdateClassFee"; + value: MsgUpdateClassFeeAmino; +} +/** + * MsgUpdateClassFee is the Msg/UpdateClassFee request type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeSDKType { + authority: string; + fee?: CoinSDKType; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponse {} +export interface MsgUpdateClassFeeResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; + value: Uint8Array; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponseAmino {} +export interface MsgUpdateClassFeeResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; + value: MsgUpdateClassFeeResponseAmino; +} +/** + * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. + * + * Since Revision 2 + */ +export interface MsgUpdateClassFeeResponseSDKType {} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChain { + /** authority is the address of the governance account. */ + authority: string; + /** + * chain_name is the name of the chain to allow bridging of ecocredits to + * (i.e. polygon, ethereum, celo). + */ + chainName: string; +} +export interface MsgAddAllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain"; + value: Uint8Array; +} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * chain_name is the name of the chain to allow bridging of ecocredits to + * (i.e. polygon, ethereum, celo). + */ + chain_name?: string; +} +export interface MsgAddAllowedBridgeChainAminoMsg { + type: "regen/MsgAddAllowedBridgeChain"; + value: MsgAddAllowedBridgeChainAmino; +} +/** + * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainSDKType { + authority: string; + chain_name: string; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponse {} +export interface MsgAddAllowedBridgeChainResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; + value: Uint8Array; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponseAmino {} +export interface MsgAddAllowedBridgeChainResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; + value: MsgAddAllowedBridgeChainResponseAmino; +} +/** + * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response + * type. + * + * Since Revision 2 + */ +export interface MsgAddAllowedBridgeChainResponseSDKType {} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChain { + /** authority is the address of the governance account. */ + authority: string; + /** + * chain_name is the name of the chain to remove from the list of allowed + * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). + */ + chainName: string; +} +export interface MsgRemoveAllowedBridgeChainProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainAmino { + /** authority is the address of the governance account. */ + authority?: string; + /** + * chain_name is the name of the chain to remove from the list of allowed + * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). + */ + chain_name?: string; +} +export interface MsgRemoveAllowedBridgeChainAminoMsg { + type: "regen/MsgRemoveAllowedBridgeChain"; + value: MsgRemoveAllowedBridgeChainAmino; +} +/** + * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainSDKType { + authority: string; + chain_name: string; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponse {} +export interface MsgRemoveAllowedBridgeChainResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; + value: Uint8Array; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponseAmino {} +export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { + type: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; + value: MsgRemoveAllowedBridgeChainResponseAmino; +} +/** + * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain + * response type. + * + * Since Revision 2 + */ +export interface MsgRemoveAllowedBridgeChainResponseSDKType {} +function createBaseMsgAddCreditType(): MsgAddCreditType { + return { + authority: "", + creditType: undefined + }; +} +export const MsgAddCreditType = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + encode(message: MsgAddCreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAddCreditType { + const message = createBaseMsgAddCreditType(); + message.authority = object.authority ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object: MsgAddCreditTypeAmino): MsgAddCreditType { + const message = createBaseMsgAddCreditType(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message: MsgAddCreditType): MsgAddCreditTypeAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object: MsgAddCreditTypeAminoMsg): MsgAddCreditType { + return MsgAddCreditType.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddCreditType): MsgAddCreditTypeAminoMsg { + return { + type: "regen/MsgAddCreditType", + value: MsgAddCreditType.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAddCreditTypeProtoMsg): MsgAddCreditType { + return MsgAddCreditType.decode(message.value); + }, + toProto(message: MsgAddCreditType): Uint8Array { + return MsgAddCreditType.encode(message).finish(); + }, + toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", + value: MsgAddCreditType.encode(message).finish() + }; + } +}; +function createBaseMsgAddCreditTypeResponse(): MsgAddCreditTypeResponse { + return {}; +} +export const MsgAddCreditTypeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + encode(_: MsgAddCreditTypeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddCreditTypeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgAddCreditTypeResponse { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + fromAmino(_: MsgAddCreditTypeResponseAmino): MsgAddCreditTypeResponse { + const message = createBaseMsgAddCreditTypeResponse(); + return message; + }, + toAmino(_: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgAddCreditTypeResponseAminoMsg): MsgAddCreditTypeResponse { + return MsgAddCreditTypeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAddCreditTypeResponseProtoMsg): MsgAddCreditTypeResponse { + return MsgAddCreditTypeResponse.decode(message.value); + }, + toProto(message: MsgAddCreditTypeResponse): Uint8Array { + return MsgAddCreditTypeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", + value: MsgAddCreditTypeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClass(): MsgCreateClass { + return { + admin: "", + issuers: [], + metadata: "", + creditTypeAbbrev: "", + fee: undefined + }; +} +export const MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + encode(message: MsgCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v!); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.creditTypeAbbrev !== "") { + writer.uint32(34).string(message.creditTypeAbbrev); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.creditTypeAbbrev = reader.string(); + break; + case 5: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateClass { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? ""; + message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: MsgCreateClassAmino): MsgCreateClass { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { + message.creditTypeAbbrev = object.credit_type_abbrev; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: MsgCreateClass): MsgCreateClassAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass { + return MsgCreateClass.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateClass): MsgCreateClassAminoMsg { + return { + type: "regen/MsgCreateClass", + value: MsgCreateClass.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass { + return MsgCreateClass.decode(message.value); + }, + toProto(message: MsgCreateClass): Uint8Array { + return MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClass", + value: MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse(): MsgCreateClassResponse { + return { + classId: "" + }; +} +export const MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + encode(message: MsgCreateClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateClassResponse { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse { + return MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse { + return MsgCreateClassResponse.decode(message.value); + }, + toProto(message: MsgCreateClassResponse): Uint8Array { + return MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", + value: MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProject(): MsgCreateProject { + return { + admin: "", + classId: "", + metadata: "", + jurisdiction: "", + referenceId: "" + }; +} +export const MsgCreateProject = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + encode(message: MsgCreateProject, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + if (message.jurisdiction !== "") { + writer.uint32(34).string(message.jurisdiction); + } + if (message.referenceId !== "") { + writer.uint32(42).string(message.referenceId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProject(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + case 4: + message.jurisdiction = reader.string(); + break; + case 5: + message.referenceId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateProject { + const message = createBaseMsgCreateProject(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.referenceId = object.referenceId ?? ""; + return message; + }, + fromAmino(object: MsgCreateProjectAmino): MsgCreateProject { + const message = createBaseMsgCreateProject(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + return message; + }, + toAmino(message: MsgCreateProject): MsgCreateProjectAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + return obj; + }, + fromAminoMsg(object: MsgCreateProjectAminoMsg): MsgCreateProject { + return MsgCreateProject.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateProject): MsgCreateProjectAminoMsg { + return { + type: "regen/MsgCreateProject", + value: MsgCreateProject.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateProjectProtoMsg): MsgCreateProject { + return MsgCreateProject.decode(message.value); + }, + toProto(message: MsgCreateProject): Uint8Array { + return MsgCreateProject.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProject", + value: MsgCreateProject.encode(message).finish() + }; + } +}; +function createBaseMsgCreateProjectResponse(): MsgCreateProjectResponse { + return { + projectId: "" + }; +} +export const MsgCreateProjectResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + encode(message: MsgCreateProjectResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.projectId !== "") { + writer.uint32(10).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateProjectResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateProjectResponse { + const message = createBaseMsgCreateProjectResponse(); + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: MsgCreateProjectResponseAmino): MsgCreateProjectResponse { + const message = createBaseMsgCreateProjectResponse(); + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: MsgCreateProjectResponse): MsgCreateProjectResponseAmino { + const obj: any = {}; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: MsgCreateProjectResponseAminoMsg): MsgCreateProjectResponse { + return MsgCreateProjectResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateProjectResponseProtoMsg): MsgCreateProjectResponse { + return MsgCreateProjectResponse.decode(message.value); + }, + toProto(message: MsgCreateProjectResponse): Uint8Array { + return MsgCreateProjectResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", + value: MsgCreateProjectResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch(): MsgCreateBatch { + return { + issuer: "", + projectId: "", + issuance: [], + metadata: "", + startDate: undefined, + endDate: undefined, + open: false, + originTx: undefined + }; +} +export const MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + encode(message: MsgCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + for (const v of message.issuance) { + BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(34).string(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.open === true) { + writer.uint32(56).bool(message.open); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.string(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.open = reader.bool(); + break; + case 8: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateBatch { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.projectId = object.projectId ?? ""; + message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.open = object.open ?? false; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.open !== undefined && object.open !== null) { + message.open = object.open; + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: MsgCreateBatch): MsgCreateBatchAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); + } else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata === "" ? undefined : message.metadata; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.open = message.open === false ? undefined : message.open; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch { + return MsgCreateBatch.fromAmino(object.value); + }, + toAminoMsg(message: MsgCreateBatch): MsgCreateBatchAminoMsg { + return { + type: "regen/MsgCreateBatch", + value: MsgCreateBatch.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch { + return MsgCreateBatch.decode(message.value); + }, + toProto(message: MsgCreateBatch): Uint8Array { + return MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", + value: MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse(): MsgCreateBatchResponse { + return { + batchDenom: "" + }; +} +export const MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + encode(message: MsgCreateBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateBatchResponse { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse { + return MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse { + return MsgCreateBatchResponse.decode(message.value); + }, + toProto(message: MsgCreateBatchResponse): Uint8Array { + return MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", + value: MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCredits(): MsgMintBatchCredits { + return { + issuer: "", + batchDenom: "", + issuance: [], + originTx: undefined + }; +} +export const MsgMintBatchCredits = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + encode(message: MsgMintBatchCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + for (const v of message.issuance) { + BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgMintBatchCredits { + const message = createBaseMsgMintBatchCredits(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: MsgMintBatchCreditsAmino): MsgMintBatchCredits { + const message = createBaseMsgMintBatchCredits(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: MsgMintBatchCredits): MsgMintBatchCreditsAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); + } else { + obj.issuance = message.issuance; + } + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: MsgMintBatchCreditsAminoMsg): MsgMintBatchCredits { + return MsgMintBatchCredits.fromAmino(object.value); + }, + toAminoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsAminoMsg { + return { + type: "regen/MsgMintBatchCredits", + value: MsgMintBatchCredits.toAmino(message) + }; + }, + fromProtoMsg(message: MsgMintBatchCreditsProtoMsg): MsgMintBatchCredits { + return MsgMintBatchCredits.decode(message.value); + }, + toProto(message: MsgMintBatchCredits): Uint8Array { + return MsgMintBatchCredits.encode(message).finish(); + }, + toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", + value: MsgMintBatchCredits.encode(message).finish() + }; + } +}; +function createBaseMsgMintBatchCreditsResponse(): MsgMintBatchCreditsResponse { + return {}; +} +export const MsgMintBatchCreditsResponse = { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + encode(_: MsgMintBatchCreditsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgMintBatchCreditsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgMintBatchCreditsResponse { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + fromAmino(_: MsgMintBatchCreditsResponseAmino): MsgMintBatchCreditsResponse { + const message = createBaseMsgMintBatchCreditsResponse(); + return message; + }, + toAmino(_: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgMintBatchCreditsResponseAminoMsg): MsgMintBatchCreditsResponse { + return MsgMintBatchCreditsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgMintBatchCreditsResponseProtoMsg): MsgMintBatchCreditsResponse { + return MsgMintBatchCreditsResponse.decode(message.value); + }, + toProto(message: MsgMintBatchCreditsResponse): Uint8Array { + return MsgMintBatchCreditsResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", + value: MsgMintBatchCreditsResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatch(): MsgSealBatch { + return { + issuer: "", + batchDenom: "" + }; +} +export const MsgSealBatch = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + encode(message: MsgSealBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSealBatch { + const message = createBaseMsgSealBatch(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: MsgSealBatchAmino): MsgSealBatch { + const message = createBaseMsgSealBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: MsgSealBatch): MsgSealBatchAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: MsgSealBatchAminoMsg): MsgSealBatch { + return MsgSealBatch.fromAmino(object.value); + }, + toAminoMsg(message: MsgSealBatch): MsgSealBatchAminoMsg { + return { + type: "regen/MsgSealBatch", + value: MsgSealBatch.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSealBatchProtoMsg): MsgSealBatch { + return MsgSealBatch.decode(message.value); + }, + toProto(message: MsgSealBatch): Uint8Array { + return MsgSealBatch.encode(message).finish(); + }, + toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatch", + value: MsgSealBatch.encode(message).finish() + }; + } +}; +function createBaseMsgSealBatchResponse(): MsgSealBatchResponse { + return {}; +} +export const MsgSealBatchResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + encode(_: MsgSealBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSealBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSealBatchResponse { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + fromAmino(_: MsgSealBatchResponseAmino): MsgSealBatchResponse { + const message = createBaseMsgSealBatchResponse(); + return message; + }, + toAmino(_: MsgSealBatchResponse): MsgSealBatchResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSealBatchResponseAminoMsg): MsgSealBatchResponse { + return MsgSealBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSealBatchResponseProtoMsg): MsgSealBatchResponse { + return MsgSealBatchResponse.decode(message.value); + }, + toProto(message: MsgSealBatchResponse): Uint8Array { + return MsgSealBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", + value: MsgSealBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend(): MsgSend { + return { + sender: "", + recipient: "", + credits: [] + }; +} +export const MsgSend = { + typeUrl: "/regen.ecocredit.v1.MsgSend", + encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + MsgSend_SendCredits.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSend { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgSendAmino): MsgSend { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgSend): MsgSendAmino { + const obj: any = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgSendAminoMsg): MsgSend { + return MsgSend.fromAmino(object.value); + }, + toAminoMsg(message: MsgSend): MsgSendAminoMsg { + return { + type: "regen/MsgSend", + value: MsgSend.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSendProtoMsg): MsgSend { + return MsgSend.decode(message.value); + }, + toProto(message: MsgSend): Uint8Array { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message: MsgSend): MsgSendProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits(): MsgSend_SendCredits { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1.SendCredits", + encode(message: MsgSend_SendCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSend_SendCredits { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits { + return MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits { + return MsgSend_SendCredits.decode(message.value); + }, + toProto(message: MsgSend_SendCredits): Uint8Array { + return MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.SendCredits", + value: MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse(): MsgSendResponse { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_: MsgSendResponseAmino): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_: MsgSendResponse): MsgSendResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { + return MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { + return MsgSendResponse.decode(message.value); + }, + toProto(message: MsgSendResponse): Uint8Array { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire(): MsgRetire { + return { + owner: "", + credits: [], + jurisdiction: "", + reason: "" + }; +} +export const MsgRetire = { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + encode(message: MsgRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + Credits.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.jurisdiction !== "") { + writer.uint32(26).string(message.jurisdiction); + } + if (message.reason !== "") { + writer.uint32(34).string(message.reason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + case 3: + message.jurisdiction = reader.string(); + break; + case 4: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRetire { + const message = createBaseMsgRetire(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + message.jurisdiction = object.jurisdiction ?? ""; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object: MsgRetireAmino): MsgRetire { + const message = createBaseMsgRetire(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message: MsgRetire): MsgRetireAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire { + return MsgRetire.fromAmino(object.value); + }, + toAminoMsg(message: MsgRetire): MsgRetireAminoMsg { + return { + type: "regen/MsgRetire", + value: MsgRetire.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire { + return MsgRetire.decode(message.value); + }, + toProto(message: MsgRetire): Uint8Array { + return MsgRetire.encode(message).finish(); + }, + toProtoMsg(message: MsgRetire): MsgRetireProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetire", + value: MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse(): MsgRetireResponse { + return {}; +} +export const MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + encode(_: MsgRetireResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRetireResponse { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_: MsgRetireResponse): MsgRetireResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse { + return MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse { + return MsgRetireResponse.decode(message.value); + }, + toProto(message: MsgRetireResponse): Uint8Array { + return MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", + value: MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel(): MsgCancel { + return { + owner: "", + credits: [], + reason: "" + }; +} +export const MsgCancel = { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + encode(message: MsgCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + for (const v of message.credits) { + Credits.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.reason !== "") { + writer.uint32(26).string(message.reason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + case 3: + message.reason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancel { + const message = createBaseMsgCancel(); + message.owner = object.owner ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + message.reason = object.reason ?? ""; + return message; + }, + fromAmino(object: MsgCancelAmino): MsgCancel { + const message = createBaseMsgCancel(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + if (object.reason !== undefined && object.reason !== null) { + message.reason = object.reason; + } + return message; + }, + toAmino(message: MsgCancel): MsgCancelAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + obj.reason = message.reason === "" ? undefined : message.reason; + return obj; + }, + fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel { + return MsgCancel.fromAmino(object.value); + }, + toAminoMsg(message: MsgCancel): MsgCancelAminoMsg { + return { + type: "regen/MsgCancel", + value: MsgCancel.toAmino(message) + }; + }, + fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel { + return MsgCancel.decode(message.value); + }, + toProto(message: MsgCancel): Uint8Array { + return MsgCancel.encode(message).finish(); + }, + toProtoMsg(message: MsgCancel): MsgCancelProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancel", + value: MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse(): MsgCancelResponse { + return {}; +} +export const MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + encode(_: MsgCancelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCancelResponse { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_: MsgCancelResponse): MsgCancelResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse { + return MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse { + return MsgCancelResponse.decode(message.value); + }, + toProto(message: MsgCancelResponse): Uint8Array { + return MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", + value: MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin(): MsgUpdateClassAdmin { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +export const MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + encode(message: MsgUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassAdmin { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin { + return MsgUpdateClassAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAminoMsg { + return { + type: "regen/MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin { + return MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message: MsgUpdateClassAdmin): Uint8Array { + return MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse(): MsgUpdateClassAdminResponse { + return {}; +} +export const MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + encode(_: MsgUpdateClassAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassAdminResponse { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse { + return MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse { + return MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassAdminResponse): Uint8Array { + return MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", + value: MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers(): MsgUpdateClassIssuers { + return { + admin: "", + classId: "", + addIssuers: [], + removeIssuers: [] + }; +} +export const MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + encode(message: MsgUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.addIssuers) { + writer.uint32(26).string(v!); + } + for (const v of message.removeIssuers) { + writer.uint32(34).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.addIssuers.push(reader.string()); + break; + case 4: + message.removeIssuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassIssuers { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.addIssuers = object.addIssuers?.map(e => e) || []; + message.removeIssuers = object.removeIssuers?.map(e => e) || []; + return message; + }, + fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.addIssuers = object.add_issuers?.map(e => e) || []; + message.removeIssuers = object.remove_issuers?.map(e => e) || []; + return message; + }, + toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.addIssuers) { + obj.add_issuers = message.addIssuers.map(e => e); + } else { + obj.add_issuers = message.addIssuers; + } + if (message.removeIssuers) { + obj.remove_issuers = message.removeIssuers.map(e => e); + } else { + obj.remove_issuers = message.removeIssuers; + } + return obj; + }, + fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers { + return MsgUpdateClassIssuers.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAminoMsg { + return { + type: "regen/MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers { + return MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message: MsgUpdateClassIssuers): Uint8Array { + return MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse(): MsgUpdateClassIssuersResponse { + return {}; +} +export const MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + encode(_: MsgUpdateClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassIssuersResponse { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse { + return MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse { + return MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassIssuersResponse): Uint8Array { + return MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", + value: MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata(): MsgUpdateClassMetadata { + return { + admin: "", + classId: "", + newMetadata: "" + }; +} +export const MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + encode(message: MsgUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassMetadata { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata { + return MsgUpdateClassMetadata.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAminoMsg { + return { + type: "regen/MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata { + return MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message: MsgUpdateClassMetadata): Uint8Array { + return MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse(): MsgUpdateClassMetadataResponse { + return {}; +} +export const MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + encode(_: MsgUpdateClassMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassMetadataResponse { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse { + return MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse { + return MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassMetadataResponse): Uint8Array { + return MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", + value: MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdmin(): MsgUpdateProjectAdmin { + return { + admin: "", + projectId: "", + newAdmin: "" + }; +} +export const MsgUpdateProjectAdmin = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + encode(message: MsgUpdateProjectAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateProjectAdmin { + const message = createBaseMsgUpdateProjectAdmin(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object: MsgUpdateProjectAdminAmino): MsgUpdateProjectAdmin { + const message = createBaseMsgUpdateProjectAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object: MsgUpdateProjectAdminAminoMsg): MsgUpdateProjectAdmin { + return MsgUpdateProjectAdmin.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAminoMsg { + return { + type: "regen/MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateProjectAdminProtoMsg): MsgUpdateProjectAdmin { + return MsgUpdateProjectAdmin.decode(message.value); + }, + toProto(message: MsgUpdateProjectAdmin): Uint8Array { + return MsgUpdateProjectAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", + value: MsgUpdateProjectAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectAdminResponse(): MsgUpdateProjectAdminResponse { + return {}; +} +export const MsgUpdateProjectAdminResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + encode(_: MsgUpdateProjectAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateProjectAdminResponse { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + fromAmino(_: MsgUpdateProjectAdminResponseAmino): MsgUpdateProjectAdminResponse { + const message = createBaseMsgUpdateProjectAdminResponse(); + return message; + }, + toAmino(_: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateProjectAdminResponseAminoMsg): MsgUpdateProjectAdminResponse { + return MsgUpdateProjectAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateProjectAdminResponseProtoMsg): MsgUpdateProjectAdminResponse { + return MsgUpdateProjectAdminResponse.decode(message.value); + }, + toProto(message: MsgUpdateProjectAdminResponse): Uint8Array { + return MsgUpdateProjectAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", + value: MsgUpdateProjectAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadata(): MsgUpdateProjectMetadata { + return { + admin: "", + projectId: "", + newMetadata: "" + }; +} +export const MsgUpdateProjectMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + encode(message: MsgUpdateProjectMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateProjectMetadata { + const message = createBaseMsgUpdateProjectMetadata(); + message.admin = object.admin ?? ""; + message.projectId = object.projectId ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object: MsgUpdateProjectMetadataAmino): MsgUpdateProjectMetadata { + const message = createBaseMsgUpdateProjectMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object: MsgUpdateProjectMetadataAminoMsg): MsgUpdateProjectMetadata { + return MsgUpdateProjectMetadata.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAminoMsg { + return { + type: "regen/MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateProjectMetadataProtoMsg): MsgUpdateProjectMetadata { + return MsgUpdateProjectMetadata.decode(message.value); + }, + toProto(message: MsgUpdateProjectMetadata): Uint8Array { + return MsgUpdateProjectMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", + value: MsgUpdateProjectMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateProjectMetadataResponse(): MsgUpdateProjectMetadataResponse { + return {}; +} +export const MsgUpdateProjectMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + encode(_: MsgUpdateProjectMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateProjectMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateProjectMetadataResponse { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateProjectMetadataResponseAmino): MsgUpdateProjectMetadataResponse { + const message = createBaseMsgUpdateProjectMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateProjectMetadataResponseAminoMsg): MsgUpdateProjectMetadataResponse { + return MsgUpdateProjectMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateProjectMetadataResponseProtoMsg): MsgUpdateProjectMetadataResponse { + return MsgUpdateProjectMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateProjectMetadataResponse): Uint8Array { + return MsgUpdateProjectMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", + value: MsgUpdateProjectMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridge(): MsgBridge { + return { + owner: "", + target: "", + recipient: "", + credits: [] + }; +} +export const MsgBridge = { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + encode(message: MsgBridge, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.target !== "") { + writer.uint32(18).string(message.target); + } + if (message.recipient !== "") { + writer.uint32(26).string(message.recipient); + } + for (const v of message.credits) { + Credits.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridge(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.target = reader.string(); + break; + case 3: + message.recipient = reader.string(); + break; + case 4: + message.credits.push(Credits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBridge { + const message = createBaseMsgBridge(); + message.owner = object.owner ?? ""; + message.target = object.target ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgBridgeAmino): MsgBridge { + const message = createBaseMsgBridge(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.target !== undefined && object.target !== null) { + message.target = object.target; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgBridge): MsgBridgeAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.target = message.target === "" ? undefined : message.target; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgBridgeAminoMsg): MsgBridge { + return MsgBridge.fromAmino(object.value); + }, + toAminoMsg(message: MsgBridge): MsgBridgeAminoMsg { + return { + type: "regen/MsgBridge", + value: MsgBridge.toAmino(message) + }; + }, + fromProtoMsg(message: MsgBridgeProtoMsg): MsgBridge { + return MsgBridge.decode(message.value); + }, + toProto(message: MsgBridge): Uint8Array { + return MsgBridge.encode(message).finish(); + }, + toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridge", + value: MsgBridge.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadata(): MsgUpdateBatchMetadata { + return { + issuer: "", + batchDenom: "", + newMetadata: "" + }; +} +export const MsgUpdateBatchMetadata = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + encode(message: MsgUpdateBatchMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.newMetadata !== "") { + writer.uint32(26).string(message.newMetadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.newMetadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateBatchMetadata { + const message = createBaseMsgUpdateBatchMetadata(); + message.issuer = object.issuer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.newMetadata = object.newMetadata ?? ""; + return message; + }, + fromAmino(object: MsgUpdateBatchMetadataAmino): MsgUpdateBatchMetadata { + const message = createBaseMsgUpdateBatchMetadata(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.new_metadata !== undefined && object.new_metadata !== null) { + message.newMetadata = object.new_metadata; + } + return message; + }, + toAmino(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; + return obj; + }, + fromAminoMsg(object: MsgUpdateBatchMetadataAminoMsg): MsgUpdateBatchMetadata { + return MsgUpdateBatchMetadata.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAminoMsg { + return { + type: "regen/MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateBatchMetadataProtoMsg): MsgUpdateBatchMetadata { + return MsgUpdateBatchMetadata.decode(message.value); + }, + toProto(message: MsgUpdateBatchMetadata): Uint8Array { + return MsgUpdateBatchMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", + value: MsgUpdateBatchMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateBatchMetadataResponse(): MsgUpdateBatchMetadataResponse { + return {}; +} +export const MsgUpdateBatchMetadataResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + encode(_: MsgUpdateBatchMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateBatchMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateBatchMetadataResponse { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateBatchMetadataResponseAmino): MsgUpdateBatchMetadataResponse { + const message = createBaseMsgUpdateBatchMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateBatchMetadataResponseAminoMsg): MsgUpdateBatchMetadataResponse { + return MsgUpdateBatchMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateBatchMetadataResponseProtoMsg): MsgUpdateBatchMetadataResponse { + return MsgUpdateBatchMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateBatchMetadataResponse): Uint8Array { + return MsgUpdateBatchMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", + value: MsgUpdateBatchMetadataResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeResponse(): MsgBridgeResponse { + return {}; +} +export const MsgBridgeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + encode(_: MsgBridgeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgBridgeResponse { + const message = createBaseMsgBridgeResponse(); + return message; + }, + fromAmino(_: MsgBridgeResponseAmino): MsgBridgeResponse { + const message = createBaseMsgBridgeResponse(); + return message; + }, + toAmino(_: MsgBridgeResponse): MsgBridgeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgBridgeResponseAminoMsg): MsgBridgeResponse { + return MsgBridgeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBridgeResponseProtoMsg): MsgBridgeResponse { + return MsgBridgeResponse.decode(message.value); + }, + toProto(message: MsgBridgeResponse): Uint8Array { + return MsgBridgeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", + value: MsgBridgeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive(): MsgBridgeReceive { + return { + issuer: "", + classId: "", + project: undefined, + batch: undefined, + originTx: undefined + }; +} +export const MsgBridgeReceive = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + encode(message: MsgBridgeReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.project !== undefined) { + MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); + } + if (message.batch !== undefined) { + MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); + } + if (message.originTx !== undefined) { + OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.project = MsgBridgeReceive_Project.decode(reader, reader.uint32()); + break; + case 4: + message.batch = MsgBridgeReceive_Batch.decode(reader, reader.uint32()); + break; + case 5: + message.originTx = OriginTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBridgeReceive { + const message = createBaseMsgBridgeReceive(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.project = object.project !== undefined && object.project !== null ? MsgBridgeReceive_Project.fromPartial(object.project) : undefined; + message.batch = object.batch !== undefined && object.batch !== null ? MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; + message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; + return message; + }, + fromAmino(object: MsgBridgeReceiveAmino): MsgBridgeReceive { + const message = createBaseMsgBridgeReceive(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.project !== undefined && object.project !== null) { + message.project = MsgBridgeReceive_Project.fromAmino(object.project); + } + if (object.batch !== undefined && object.batch !== null) { + message.batch = MsgBridgeReceive_Batch.fromAmino(object.batch); + } + if (object.origin_tx !== undefined && object.origin_tx !== null) { + message.originTx = OriginTx.fromAmino(object.origin_tx); + } + return message; + }, + toAmino(message: MsgBridgeReceive): MsgBridgeReceiveAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.project = message.project ? MsgBridgeReceive_Project.toAmino(message.project) : undefined; + obj.batch = message.batch ? MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; + obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; + return obj; + }, + fromAminoMsg(object: MsgBridgeReceiveAminoMsg): MsgBridgeReceive { + return MsgBridgeReceive.fromAmino(object.value); + }, + toAminoMsg(message: MsgBridgeReceive): MsgBridgeReceiveAminoMsg { + return { + type: "regen/MsgBridgeReceive", + value: MsgBridgeReceive.toAmino(message) + }; + }, + fromProtoMsg(message: MsgBridgeReceiveProtoMsg): MsgBridgeReceive { + return MsgBridgeReceive.decode(message.value); + }, + toProto(message: MsgBridgeReceive): Uint8Array { + return MsgBridgeReceive.encode(message).finish(); + }, + toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", + value: MsgBridgeReceive.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Batch(): MsgBridgeReceive_Batch { + return { + recipient: "", + amount: "", + startDate: undefined, + endDate: undefined, + metadata: "" + }; +} +export const MsgBridgeReceive_Batch = { + typeUrl: "/regen.ecocredit.v1.Batch", + encode(message: MsgBridgeReceive_Batch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(26).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(34).fork()).ldelim(); + } + if (message.metadata !== "") { + writer.uint32(42).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Batch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + case 3: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBridgeReceive_Batch { + const message = createBaseMsgBridgeReceive_Batch(); + message.recipient = object.recipient ?? ""; + message.amount = object.amount ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgBridgeReceive_BatchAmino): MsgBridgeReceive_Batch { + const message = createBaseMsgBridgeReceive_Batch(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchAmino { + const obj: any = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgBridgeReceive_BatchAminoMsg): MsgBridgeReceive_Batch { + return MsgBridgeReceive_Batch.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBridgeReceive_BatchProtoMsg): MsgBridgeReceive_Batch { + return MsgBridgeReceive_Batch.decode(message.value); + }, + toProto(message: MsgBridgeReceive_Batch): Uint8Array { + return MsgBridgeReceive_Batch.encode(message).finish(); + }, + toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Batch", + value: MsgBridgeReceive_Batch.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceive_Project(): MsgBridgeReceive_Project { + return { + referenceId: "", + jurisdiction: "", + metadata: "" + }; +} +export const MsgBridgeReceive_Project = { + typeUrl: "/regen.ecocredit.v1.Project", + encode(message: MsgBridgeReceive_Project, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.referenceId !== "") { + writer.uint32(10).string(message.referenceId); + } + if (message.jurisdiction !== "") { + writer.uint32(18).string(message.jurisdiction); + } + if (message.metadata !== "") { + writer.uint32(26).string(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceive_Project(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = reader.string(); + break; + case 2: + message.jurisdiction = reader.string(); + break; + case 3: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBridgeReceive_Project { + const message = createBaseMsgBridgeReceive_Project(); + message.referenceId = object.referenceId ?? ""; + message.jurisdiction = object.jurisdiction ?? ""; + message.metadata = object.metadata ?? ""; + return message; + }, + fromAmino(object: MsgBridgeReceive_ProjectAmino): MsgBridgeReceive_Project { + const message = createBaseMsgBridgeReceive_Project(); + if (object.reference_id !== undefined && object.reference_id !== null) { + message.referenceId = object.reference_id; + } + if (object.jurisdiction !== undefined && object.jurisdiction !== null) { + message.jurisdiction = object.jurisdiction; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = object.metadata; + } + return message; + }, + toAmino(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectAmino { + const obj: any = {}; + obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; + obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; + obj.metadata = message.metadata === "" ? undefined : message.metadata; + return obj; + }, + fromAminoMsg(object: MsgBridgeReceive_ProjectAminoMsg): MsgBridgeReceive_Project { + return MsgBridgeReceive_Project.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBridgeReceive_ProjectProtoMsg): MsgBridgeReceive_Project { + return MsgBridgeReceive_Project.decode(message.value); + }, + toProto(message: MsgBridgeReceive_Project): Uint8Array { + return MsgBridgeReceive_Project.encode(message).finish(); + }, + toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Project", + value: MsgBridgeReceive_Project.encode(message).finish() + }; + } +}; +function createBaseMsgBridgeReceiveResponse(): MsgBridgeReceiveResponse { + return { + batchDenom: "", + projectId: "" + }; +} +export const MsgBridgeReceiveResponse = { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + encode(message: MsgBridgeReceiveResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.projectId !== "") { + writer.uint32(18).string(message.projectId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgBridgeReceiveResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgBridgeReceiveResponse { + const message = createBaseMsgBridgeReceiveResponse(); + message.batchDenom = object.batchDenom ?? ""; + message.projectId = object.projectId ?? ""; + return message; + }, + fromAmino(object: MsgBridgeReceiveResponseAmino): MsgBridgeReceiveResponse { + const message = createBaseMsgBridgeReceiveResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.project_id !== undefined && object.project_id !== null) { + message.projectId = object.project_id; + } + return message; + }, + toAmino(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.project_id = message.projectId === "" ? undefined : message.projectId; + return obj; + }, + fromAminoMsg(object: MsgBridgeReceiveResponseAminoMsg): MsgBridgeReceiveResponse { + return MsgBridgeReceiveResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgBridgeReceiveResponseProtoMsg): MsgBridgeReceiveResponse { + return MsgBridgeReceiveResponse.decode(message.value); + }, + toProto(message: MsgBridgeReceiveResponse): Uint8Array { + return MsgBridgeReceiveResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", + value: MsgBridgeReceiveResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreator(): MsgAddClassCreator { + return { + authority: "", + creator: "" + }; +} +export const MsgAddClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + encode(message: MsgAddClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAddClassCreator { + const message = createBaseMsgAddClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object: MsgAddClassCreatorAmino): MsgAddClassCreator { + const message = createBaseMsgAddClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message: MsgAddClassCreator): MsgAddClassCreatorAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object: MsgAddClassCreatorAminoMsg): MsgAddClassCreator { + return MsgAddClassCreator.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddClassCreator): MsgAddClassCreatorAminoMsg { + return { + type: "regen/MsgAddClassCreator", + value: MsgAddClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAddClassCreatorProtoMsg): MsgAddClassCreator { + return MsgAddClassCreator.decode(message.value); + }, + toProto(message: MsgAddClassCreator): Uint8Array { + return MsgAddClassCreator.encode(message).finish(); + }, + toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", + value: MsgAddClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgAddClassCreatorResponse(): MsgAddClassCreatorResponse { + return {}; +} +export const MsgAddClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + encode(_: MsgAddClassCreatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgAddClassCreatorResponse { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + fromAmino(_: MsgAddClassCreatorResponseAmino): MsgAddClassCreatorResponse { + const message = createBaseMsgAddClassCreatorResponse(); + return message; + }, + toAmino(_: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgAddClassCreatorResponseAminoMsg): MsgAddClassCreatorResponse { + return MsgAddClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAddClassCreatorResponseProtoMsg): MsgAddClassCreatorResponse { + return MsgAddClassCreatorResponse.decode(message.value); + }, + toProto(message: MsgAddClassCreatorResponse): Uint8Array { + return MsgAddClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", + value: MsgAddClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlist(): MsgSetClassCreatorAllowlist { + return { + authority: "", + enabled: false + }; +} +export const MsgSetClassCreatorAllowlist = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + encode(message: MsgSetClassCreatorAllowlist, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.enabled === true) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlist(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSetClassCreatorAllowlist { + const message = createBaseMsgSetClassCreatorAllowlist(); + message.authority = object.authority ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, + fromAmino(object: MsgSetClassCreatorAllowlistAmino): MsgSetClassCreatorAllowlist { + const message = createBaseMsgSetClassCreatorAllowlist(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.enabled !== undefined && object.enabled !== null) { + message.enabled = object.enabled; + } + return message; + }, + toAmino(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.enabled = message.enabled === false ? undefined : message.enabled; + return obj; + }, + fromAminoMsg(object: MsgSetClassCreatorAllowlistAminoMsg): MsgSetClassCreatorAllowlist { + return MsgSetClassCreatorAllowlist.fromAmino(object.value); + }, + toAminoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAminoMsg { + return { + type: "regen/MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.toAmino(message) + }; + }, + fromProtoMsg(message: MsgSetClassCreatorAllowlistProtoMsg): MsgSetClassCreatorAllowlist { + return MsgSetClassCreatorAllowlist.decode(message.value); + }, + toProto(message: MsgSetClassCreatorAllowlist): Uint8Array { + return MsgSetClassCreatorAllowlist.encode(message).finish(); + }, + toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", + value: MsgSetClassCreatorAllowlist.encode(message).finish() + }; + } +}; +function createBaseMsgSetClassCreatorAllowlistResponse(): MsgSetClassCreatorAllowlistResponse { + return {}; +} +export const MsgSetClassCreatorAllowlistResponse = { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + encode(_: MsgSetClassCreatorAllowlistResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + fromAmino(_: MsgSetClassCreatorAllowlistResponseAmino): MsgSetClassCreatorAllowlistResponse { + const message = createBaseMsgSetClassCreatorAllowlistResponse(); + return message; + }, + toAmino(_: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSetClassCreatorAllowlistResponseAminoMsg): MsgSetClassCreatorAllowlistResponse { + return MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSetClassCreatorAllowlistResponseProtoMsg): MsgSetClassCreatorAllowlistResponse { + return MsgSetClassCreatorAllowlistResponse.decode(message.value); + }, + toProto(message: MsgSetClassCreatorAllowlistResponse): Uint8Array { + return MsgSetClassCreatorAllowlistResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", + value: MsgSetClassCreatorAllowlistResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreator(): MsgRemoveClassCreator { + return { + authority: "", + creator: "" + }; +} +export const MsgRemoveClassCreator = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + encode(message: MsgRemoveClassCreator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.creator = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRemoveClassCreator { + const message = createBaseMsgRemoveClassCreator(); + message.authority = object.authority ?? ""; + message.creator = object.creator ?? ""; + return message; + }, + fromAmino(object: MsgRemoveClassCreatorAmino): MsgRemoveClassCreator { + const message = createBaseMsgRemoveClassCreator(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.creator !== undefined && object.creator !== null) { + message.creator = object.creator; + } + return message; + }, + toAmino(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.creator = message.creator === "" ? undefined : message.creator; + return obj; + }, + fromAminoMsg(object: MsgRemoveClassCreatorAminoMsg): MsgRemoveClassCreator { + return MsgRemoveClassCreator.fromAmino(object.value); + }, + toAminoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAminoMsg { + return { + type: "regen/MsgRemoveClassCreator", + value: MsgRemoveClassCreator.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRemoveClassCreatorProtoMsg): MsgRemoveClassCreator { + return MsgRemoveClassCreator.decode(message.value); + }, + toProto(message: MsgRemoveClassCreator): Uint8Array { + return MsgRemoveClassCreator.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", + value: MsgRemoveClassCreator.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveClassCreatorResponse(): MsgRemoveClassCreatorResponse { + return {}; +} +export const MsgRemoveClassCreatorResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + encode(_: MsgRemoveClassCreatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveClassCreatorResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRemoveClassCreatorResponse { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + fromAmino(_: MsgRemoveClassCreatorResponseAmino): MsgRemoveClassCreatorResponse { + const message = createBaseMsgRemoveClassCreatorResponse(); + return message; + }, + toAmino(_: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRemoveClassCreatorResponseAminoMsg): MsgRemoveClassCreatorResponse { + return MsgRemoveClassCreatorResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRemoveClassCreatorResponseProtoMsg): MsgRemoveClassCreatorResponse { + return MsgRemoveClassCreatorResponse.decode(message.value); + }, + toProto(message: MsgRemoveClassCreatorResponse): Uint8Array { + return MsgRemoveClassCreatorResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", + value: MsgRemoveClassCreatorResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFee(): MsgUpdateClassFee { + return { + authority: "", + fee: undefined + }; +} +export const MsgUpdateClassFee = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + encode(message: MsgUpdateClassFee, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.fee !== undefined) { + Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFee(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.fee = Coin.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassFee { + const message = createBaseMsgUpdateClassFee(); + message.authority = object.authority ?? ""; + message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; + return message; + }, + fromAmino(object: MsgUpdateClassFeeAmino): MsgUpdateClassFee { + const message = createBaseMsgUpdateClassFee(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.fee !== undefined && object.fee !== null) { + message.fee = Coin.fromAmino(object.fee); + } + return message; + }, + toAmino(message: MsgUpdateClassFee): MsgUpdateClassFeeAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassFeeAminoMsg): MsgUpdateClassFee { + return MsgUpdateClassFee.fromAmino(object.value); + }, + toAminoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeAminoMsg { + return { + type: "regen/MsgUpdateClassFee", + value: MsgUpdateClassFee.toAmino(message) + }; + }, + fromProtoMsg(message: MsgUpdateClassFeeProtoMsg): MsgUpdateClassFee { + return MsgUpdateClassFee.decode(message.value); + }, + toProto(message: MsgUpdateClassFee): Uint8Array { + return MsgUpdateClassFee.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", + value: MsgUpdateClassFee.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassFeeResponse(): MsgUpdateClassFeeResponse { + return {}; +} +export const MsgUpdateClassFeeResponse = { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + encode(_: MsgUpdateClassFeeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassFeeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassFeeResponse { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassFeeResponseAmino): MsgUpdateClassFeeResponse { + const message = createBaseMsgUpdateClassFeeResponse(); + return message; + }, + toAmino(_: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassFeeResponseAminoMsg): MsgUpdateClassFeeResponse { + return MsgUpdateClassFeeResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassFeeResponseProtoMsg): MsgUpdateClassFeeResponse { + return MsgUpdateClassFeeResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassFeeResponse): Uint8Array { + return MsgUpdateClassFeeResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", + value: MsgUpdateClassFeeResponse.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChain(): MsgAddAllowedBridgeChain { + return { + authority: "", + chainName: "" + }; +} +export const MsgAddAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + encode(message: MsgAddAllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgAddAllowedBridgeChain { + const message = createBaseMsgAddAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object: MsgAddAllowedBridgeChainAmino): MsgAddAllowedBridgeChain { + const message = createBaseMsgAddAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object: MsgAddAllowedBridgeChainAminoMsg): MsgAddAllowedBridgeChain { + return MsgAddAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAminoMsg { + return { + type: "regen/MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message: MsgAddAllowedBridgeChainProtoMsg): MsgAddAllowedBridgeChain { + return MsgAddAllowedBridgeChain.decode(message.value); + }, + toProto(message: MsgAddAllowedBridgeChain): Uint8Array { + return MsgAddAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", + value: MsgAddAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgAddAllowedBridgeChainResponse(): MsgAddAllowedBridgeChainResponse { + return {}; +} +export const MsgAddAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + encode(_: MsgAddAllowedBridgeChainResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgAddAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_: MsgAddAllowedBridgeChainResponseAmino): MsgAddAllowedBridgeChainResponse { + const message = createBaseMsgAddAllowedBridgeChainResponse(); + return message; + }, + toAmino(_: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgAddAllowedBridgeChainResponseAminoMsg): MsgAddAllowedBridgeChainResponse { + return MsgAddAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgAddAllowedBridgeChainResponseProtoMsg): MsgAddAllowedBridgeChainResponse { + return MsgAddAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message: MsgAddAllowedBridgeChainResponse): Uint8Array { + return MsgAddAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", + value: MsgAddAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChain(): MsgRemoveAllowedBridgeChain { + return { + authority: "", + chainName: "" + }; +} +export const MsgRemoveAllowedBridgeChain = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + encode(message: MsgRemoveAllowedBridgeChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + if (message.chainName !== "") { + writer.uint32(18).string(message.chainName); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.chainName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRemoveAllowedBridgeChain { + const message = createBaseMsgRemoveAllowedBridgeChain(); + message.authority = object.authority ?? ""; + message.chainName = object.chainName ?? ""; + return message; + }, + fromAmino(object: MsgRemoveAllowedBridgeChainAmino): MsgRemoveAllowedBridgeChain { + const message = createBaseMsgRemoveAllowedBridgeChain(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + if (object.chain_name !== undefined && object.chain_name !== null) { + message.chainName = object.chain_name; + } + return message; + }, + toAmino(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAmino { + const obj: any = {}; + obj.authority = message.authority === "" ? undefined : message.authority; + obj.chain_name = message.chainName === "" ? undefined : message.chainName; + return obj; + }, + fromAminoMsg(object: MsgRemoveAllowedBridgeChainAminoMsg): MsgRemoveAllowedBridgeChain { + return MsgRemoveAllowedBridgeChain.fromAmino(object.value); + }, + toAminoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAminoMsg { + return { + type: "regen/MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.toAmino(message) + }; + }, + fromProtoMsg(message: MsgRemoveAllowedBridgeChainProtoMsg): MsgRemoveAllowedBridgeChain { + return MsgRemoveAllowedBridgeChain.decode(message.value); + }, + toProto(message: MsgRemoveAllowedBridgeChain): Uint8Array { + return MsgRemoveAllowedBridgeChain.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", + value: MsgRemoveAllowedBridgeChain.encode(message).finish() + }; + } +}; +function createBaseMsgRemoveAllowedBridgeChainResponse(): MsgRemoveAllowedBridgeChainResponse { + return {}; +} +export const MsgRemoveAllowedBridgeChainResponse = { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + encode(_: MsgRemoveAllowedBridgeChainResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + fromAmino(_: MsgRemoveAllowedBridgeChainResponseAmino): MsgRemoveAllowedBridgeChainResponse { + const message = createBaseMsgRemoveAllowedBridgeChainResponse(); + return message; + }, + toAmino(_: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRemoveAllowedBridgeChainResponseAminoMsg): MsgRemoveAllowedBridgeChainResponse { + return MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRemoveAllowedBridgeChainResponseProtoMsg): MsgRemoveAllowedBridgeChainResponse { + return MsgRemoveAllowedBridgeChainResponse.decode(message.value); + }, + toProto(message: MsgRemoveAllowedBridgeChainResponse): Uint8Array { + return MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", + value: MsgRemoveAllowedBridgeChainResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1/types.ts b/packages/api/src/regen/ecocredit/v1/types.ts new file mode 100644 index 00000000..dec2dcc7 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1/types.ts @@ -0,0 +1,1014 @@ +//@ts-nocheck +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface Params { + /** + * credit_class_fee is a list of credit class creation fees accepted when + * creating a credit class. Any fee listed is accepted and charged to the + * credit class creator when creating a credit class. + */ + creditClassFee: Coin[]; + /** + * basket_fee is a list of basket creation fees accepted when creating a + * basket. Any fee listed is accepted and charged to the basket creator when + * creating a basket. + */ + basketFee: Coin[]; + /** + * allowed_class_creators is an allowlist defining the addresses with the + * required permissions to create credit classes when allowlist_enabled is set + * to true. If allowlist_enabled is set to false, this list has no effect. + */ + allowedClassCreators: string[]; + /** + * allowlist_enabled determines whether or not the allowlist for creating + * credit classes is enabled. When set to true, only the addresses listed in + * allowed_class_creators can create credit classes. When set to false, any + * address can create credit classes. + */ + allowlistEnabled: boolean; + /** + * allowed_denoms is a list of bank denoms allowed to be used in the ask price + * of sell orders. + * + * Since Revision 2 + */ + allowedDenoms: AllowedDenom[]; + /** + * AllowedBridgeChains is a list of chain names that are allowed to be used in + * bridge operations. + * + * Since Revision 2 + */ + allowedBridgeChains: string[]; +} +export interface ParamsProtoMsg { + typeUrl: "/regen.ecocredit.v1.Params"; + value: Uint8Array; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsAmino { + /** + * credit_class_fee is a list of credit class creation fees accepted when + * creating a credit class. Any fee listed is accepted and charged to the + * credit class creator when creating a credit class. + */ + credit_class_fee?: CoinAmino[]; + /** + * basket_fee is a list of basket creation fees accepted when creating a + * basket. Any fee listed is accepted and charged to the basket creator when + * creating a basket. + */ + basket_fee?: CoinAmino[]; + /** + * allowed_class_creators is an allowlist defining the addresses with the + * required permissions to create credit classes when allowlist_enabled is set + * to true. If allowlist_enabled is set to false, this list has no effect. + */ + allowed_class_creators?: string[]; + /** + * allowlist_enabled determines whether or not the allowlist for creating + * credit classes is enabled. When set to true, only the addresses listed in + * allowed_class_creators can create credit classes. When set to false, any + * address can create credit classes. + */ + allowlist_enabled?: boolean; + /** + * allowed_denoms is a list of bank denoms allowed to be used in the ask price + * of sell orders. + * + * Since Revision 2 + */ + allowed_denoms?: AllowedDenomAmino[]; + /** + * AllowedBridgeChains is a list of chain names that are allowed to be used in + * bridge operations. + * + * Since Revision 2 + */ + allowed_bridge_chains?: string[]; +} +export interface ParamsAminoMsg { + type: "/regen.ecocredit.v1.Params"; + value: ParamsAmino; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsSDKType { + credit_class_fee: CoinSDKType[]; + basket_fee: CoinSDKType[]; + allowed_class_creators: string[]; + allowlist_enabled: boolean; + allowed_denoms: AllowedDenomSDKType[]; + allowed_bridge_chains: string[]; +} +/** Credits represents a simple structure for credits. */ +export interface Credits { + /** batch_denom is the denom of the credit batch. */ + batchDenom: string; + /** amount is the amount of credits. */ + amount: string; +} +export interface CreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1.Credits"; + value: Uint8Array; +} +/** Credits represents a simple structure for credits. */ +export interface CreditsAmino { + /** batch_denom is the denom of the credit batch. */ + batch_denom?: string; + /** amount is the amount of credits. */ + amount?: string; +} +export interface CreditsAminoMsg { + type: "/regen.ecocredit.v1.Credits"; + value: CreditsAmino; +} +/** Credits represents a simple structure for credits. */ +export interface CreditsSDKType { + batch_denom: string; + amount: string; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuance { + /** recipient is the address of the account receiving the issued credits. */ + recipient: string; + /** + * tradable_amount is the amount of credits that the recipient will receive in + * a tradable state. The number of decimal places must be less than or equal + * to the credit type precision. + */ + tradableAmount: string; + /** + * retired_amount is the amount of credits that the recipient will receive in + * a retired state. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retiredAmount: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the following + * format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + retirementJurisdiction: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirementReason: string; +} +export interface BatchIssuanceProtoMsg { + typeUrl: "/regen.ecocredit.v1.BatchIssuance"; + value: Uint8Array; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuanceAmino { + /** recipient is the address of the account receiving the issued credits. */ + recipient?: string; + /** + * tradable_amount is the amount of credits that the recipient will receive in + * a tradable state. The number of decimal places must be less than or equal + * to the credit type precision. + */ + tradable_amount?: string; + /** + * retired_amount is the amount of credits that the recipient will receive in + * a retired state. The number of decimal places must be less than or equal to + * the credit type precision. + */ + retired_amount?: string; + /** + * retirement_jurisdiction is the jurisdiction of the recipient and is only + * required if retired_amount is positive. A jurisdiction has the following + * format: [-[ ]] + * The country-code must be 2 alphabetic characters, the sub-national-code + * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 + * alphanumeric characters. Only the country-code is required, while the + * sub-national-code and postal-code are optional and can be added for + * increased precision. + */ + retirement_jurisdiction?: string; + /** + * retirement_reason is any arbitrary string that specifies the reason for + * retiring credits. The reason will be included in EventRetire and is not + * stored in state. + * + * Since Revision 2 + */ + retirement_reason?: string; +} +export interface BatchIssuanceAminoMsg { + type: "/regen.ecocredit.v1.BatchIssuance"; + value: BatchIssuanceAmino; +} +/** BatchIssuance represents a simple structure for a credit batch issuance. */ +export interface BatchIssuanceSDKType { + recipient: string; + tradable_amount: string; + retired_amount: string; + retirement_jurisdiction: string; + retirement_reason: string; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTx { + /** + * id is the transaction ID of an originating transaction or operation based + * on a type (i.e. transaction ID, serial number). + */ + id: string; + /** + * source is the source chain or registry of the transaction originating the + * mint process (e.g. polygon, ethereum, verra). + */ + source: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be stored in + * state separately from the origin tx and on a per credit batch basis to be + * used when sending credits back to the source chain. This field can be left + * blank if credits are bridged from a non-contract-based source. + */ + contract: string; + /** + * note is a reference note for accounting that will be included in an event + * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. + */ + note: string; +} +export interface OriginTxProtoMsg { + typeUrl: "/regen.ecocredit.v1.OriginTx"; + value: Uint8Array; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTxAmino { + /** + * id is the transaction ID of an originating transaction or operation based + * on a type (i.e. transaction ID, serial number). + */ + id?: string; + /** + * source is the source chain or registry of the transaction originating the + * mint process (e.g. polygon, ethereum, verra). + */ + source?: string; + /** + * contract is the address of the contract on the source chain that was + * executed when creating the transaction. This address will be stored in + * state separately from the origin tx and on a per credit batch basis to be + * used when sending credits back to the source chain. This field can be left + * blank if credits are bridged from a non-contract-based source. + */ + contract?: string; + /** + * note is a reference note for accounting that will be included in an event + * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. + */ + note?: string; +} +export interface OriginTxAminoMsg { + type: "/regen.ecocredit.v1.OriginTx"; + value: OriginTxAmino; +} +/** + * OriginTx is the transaction from another chain or registry that triggered + * the minting of credits. + */ +export interface OriginTxSDKType { + id: string; + source: string; + contract: string; + note: string; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposal { + /** title is the title of the proposal. */ + title: string; + /** description is the description of the proposal. */ + description: string; + /** + * credit_type is the credit type to be added to the network if the proposal + * passes. + */ + creditType?: CreditType; +} +export interface CreditTypeProposalProtoMsg { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; + value: Uint8Array; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposalAmino { + /** title is the title of the proposal. */ + title?: string; + /** description is the description of the proposal. */ + description?: string; + /** + * credit_type is the credit type to be added to the network if the proposal + * passes. + */ + credit_type?: CreditTypeAmino; +} +export interface CreditTypeProposalAminoMsg { + type: "/regen.ecocredit.v1.CreditTypeProposal"; + value: CreditTypeProposalAmino; +} +/** + * CreditTypeProposal is a gov Content type for adding a credit type. + * Deprecated (Since Revision 2): This message is no longer used and will be + * removed in the next version. See MsgAddCreditType. + */ +export interface CreditTypeProposalSDKType { + title: string; + description: string; + credit_type?: CreditTypeSDKType; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenom { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bankDenom: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + displayDenom: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent: number; +} +export interface AllowedDenomProtoMsg { + typeUrl: "/regen.ecocredit.v1.AllowedDenom"; + value: Uint8Array; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenomAmino { + /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ + bank_denom?: string; + /** + * display_denom is the denom to display to the user and is informational. + * Because the denom is likely an IBC denom, this should be chosen by + * governance to represent the consensus trusted name of the denom. + */ + display_denom?: string; + /** + * exponent is the exponent that relates the denom to the display_denom and is + * informational + */ + exponent?: number; +} +export interface AllowedDenomAminoMsg { + type: "/regen.ecocredit.v1.AllowedDenom"; + value: AllowedDenomAmino; +} +/** + * AllowedDenom represents the information for an allowed ask denom. + * + * Since Revision 2 + * + * Deprecated(Since Revision 2): This type was added to support historical + * queries for params but will also be removed in the next version. + */ +export interface AllowedDenomSDKType { + bank_denom: string; + display_denom: string; + exponent: number; +} +function createBaseParams(): Params { + return { + creditClassFee: [], + basketFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + allowedDenoms: [], + allowedBridgeChains: [] + }; +} +export const Params = { + typeUrl: "/regen.ecocredit.v1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.creditClassFee) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.basketFee) { + Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(26).string(v!); + } + if (message.allowlistEnabled === true) { + writer.uint32(32).bool(message.allowlistEnabled); + } + for (const v of message.allowedDenoms) { + AllowedDenom.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.allowedBridgeChains) { + writer.uint32(50).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.basketFee.push(Coin.decode(reader, reader.uint32())); + break; + case 3: + message.allowedClassCreators.push(reader.string()); + break; + case 4: + message.allowlistEnabled = reader.bool(); + break; + case 5: + message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); + break; + case 6: + message.allowedBridgeChains.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; + message.basketFee = object.basketFee?.map(e => Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; + message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; + message.basketFee = object.basket_fee?.map(e => Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; + message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.basketFee) { + obj.basket_fee = message.basketFee.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.basket_fee = message.basketFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.allowedDenoms) { + obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); + } else { + obj.allowed_denoms = message.allowedDenoms; + } + if (message.allowedBridgeChains) { + obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); + } else { + obj.allowed_bridge_chains = message.allowedBridgeChains; + } + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseCredits(): Credits { + return { + batchDenom: "", + amount: "" + }; +} +export const Credits = { + typeUrl: "/regen.ecocredit.v1.Credits", + encode(message: Credits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Credits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Credits { + const message = createBaseCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: CreditsAmino): Credits { + const message = createBaseCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: Credits): CreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: CreditsAminoMsg): Credits { + return Credits.fromAmino(object.value); + }, + fromProtoMsg(message: CreditsProtoMsg): Credits { + return Credits.decode(message.value); + }, + toProto(message: Credits): Uint8Array { + return Credits.encode(message).finish(); + }, + toProtoMsg(message: Credits): CreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.Credits", + value: Credits.encode(message).finish() + }; + } +}; +function createBaseBatchIssuance(): BatchIssuance { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementJurisdiction: "", + retirementReason: "" + }; +} +export const BatchIssuance = { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + encode(message: BatchIssuance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementJurisdiction !== "") { + writer.uint32(34).string(message.retirementJurisdiction); + } + if (message.retirementReason !== "") { + writer.uint32(42).string(message.retirementReason); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementJurisdiction = reader.string(); + break; + case 5: + message.retirementReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchIssuance { + const message = createBaseBatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementJurisdiction = object.retirementJurisdiction ?? ""; + message.retirementReason = object.retirementReason ?? ""; + return message; + }, + fromAmino(object: BatchIssuanceAmino): BatchIssuance { + const message = createBaseBatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { + message.retirementJurisdiction = object.retirement_jurisdiction; + } + if (object.retirement_reason !== undefined && object.retirement_reason !== null) { + message.retirementReason = object.retirement_reason; + } + return message; + }, + toAmino(message: BatchIssuance): BatchIssuanceAmino { + const obj: any = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; + obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; + return obj; + }, + fromAminoMsg(object: BatchIssuanceAminoMsg): BatchIssuance { + return BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message: BatchIssuanceProtoMsg): BatchIssuance { + return BatchIssuance.decode(message.value); + }, + toProto(message: BatchIssuance): Uint8Array { + return BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.BatchIssuance", + value: BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseOriginTx(): OriginTx { + return { + id: "", + source: "", + contract: "", + note: "" + }; +} +export const OriginTx = { + typeUrl: "/regen.ecocredit.v1.OriginTx", + encode(message: OriginTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.source !== "") { + writer.uint32(18).string(message.source); + } + if (message.contract !== "") { + writer.uint32(26).string(message.contract); + } + if (message.note !== "") { + writer.uint32(34).string(message.note); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): OriginTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOriginTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.source = reader.string(); + break; + case 3: + message.contract = reader.string(); + break; + case 4: + message.note = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): OriginTx { + const message = createBaseOriginTx(); + message.id = object.id ?? ""; + message.source = object.source ?? ""; + message.contract = object.contract ?? ""; + message.note = object.note ?? ""; + return message; + }, + fromAmino(object: OriginTxAmino): OriginTx { + const message = createBaseOriginTx(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.source !== undefined && object.source !== null) { + message.source = object.source; + } + if (object.contract !== undefined && object.contract !== null) { + message.contract = object.contract; + } + if (object.note !== undefined && object.note !== null) { + message.note = object.note; + } + return message; + }, + toAmino(message: OriginTx): OriginTxAmino { + const obj: any = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.source = message.source === "" ? undefined : message.source; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.note = message.note === "" ? undefined : message.note; + return obj; + }, + fromAminoMsg(object: OriginTxAminoMsg): OriginTx { + return OriginTx.fromAmino(object.value); + }, + fromProtoMsg(message: OriginTxProtoMsg): OriginTx { + return OriginTx.decode(message.value); + }, + toProto(message: OriginTx): Uint8Array { + return OriginTx.encode(message).finish(); + }, + toProtoMsg(message: OriginTx): OriginTxProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.OriginTx", + value: OriginTx.encode(message).finish() + }; + } +}; +function createBaseCreditTypeProposal(): CreditTypeProposal { + return { + title: "", + description: "", + creditType: undefined + }; +} +export const CreditTypeProposal = { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + encode(message: CreditTypeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.title !== "") { + writer.uint32(10).string(message.title); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CreditTypeProposal { + const message = createBaseCreditTypeProposal(); + message.title = object.title ?? ""; + message.description = object.description ?? ""; + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + return message; + }, + fromAmino(object: CreditTypeProposalAmino): CreditTypeProposal { + const message = createBaseCreditTypeProposal(); + if (object.title !== undefined && object.title !== null) { + message.title = object.title; + } + if (object.description !== undefined && object.description !== null) { + message.description = object.description; + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + return message; + }, + toAmino(message: CreditTypeProposal): CreditTypeProposalAmino { + const obj: any = {}; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + return obj; + }, + fromAminoMsg(object: CreditTypeProposalAminoMsg): CreditTypeProposal { + return CreditTypeProposal.fromAmino(object.value); + }, + fromProtoMsg(message: CreditTypeProposalProtoMsg): CreditTypeProposal { + return CreditTypeProposal.decode(message.value); + }, + toProto(message: CreditTypeProposal): Uint8Array { + return CreditTypeProposal.encode(message).finish(); + }, + toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", + value: CreditTypeProposal.encode(message).finish() + }; + } +}; +function createBaseAllowedDenom(): AllowedDenom { + return { + bankDenom: "", + displayDenom: "", + exponent: 0 + }; +} +export const AllowedDenom = { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + encode(message: AllowedDenom, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bankDenom !== "") { + writer.uint32(10).string(message.bankDenom); + } + if (message.displayDenom !== "") { + writer.uint32(18).string(message.displayDenom); + } + if (message.exponent !== 0) { + writer.uint32(24).uint32(message.exponent); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllowedDenom(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bankDenom = reader.string(); + break; + case 2: + message.displayDenom = reader.string(); + break; + case 3: + message.exponent = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): AllowedDenom { + const message = createBaseAllowedDenom(); + message.bankDenom = object.bankDenom ?? ""; + message.displayDenom = object.displayDenom ?? ""; + message.exponent = object.exponent ?? 0; + return message; + }, + fromAmino(object: AllowedDenomAmino): AllowedDenom { + const message = createBaseAllowedDenom(); + if (object.bank_denom !== undefined && object.bank_denom !== null) { + message.bankDenom = object.bank_denom; + } + if (object.display_denom !== undefined && object.display_denom !== null) { + message.displayDenom = object.display_denom; + } + if (object.exponent !== undefined && object.exponent !== null) { + message.exponent = object.exponent; + } + return message; + }, + toAmino(message: AllowedDenom): AllowedDenomAmino { + const obj: any = {}; + obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; + obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; + return obj; + }, + fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom { + return AllowedDenom.fromAmino(object.value); + }, + fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom { + return AllowedDenom.decode(message.value); + }, + toProto(message: AllowedDenom): Uint8Array { + return AllowedDenom.encode(message).finish(); + }, + toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1.AllowedDenom", + value: AllowedDenom.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/events.ts b/packages/api/src/regen/ecocredit/v1alpha1/events.ts new file mode 100644 index 00000000..382c0296 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/events.ts @@ -0,0 +1,817 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClass { + /** class_id is the unique ID of credit class. */ + classId: string; + /** admin is the admin of the credit class. */ + admin: string; +} +export interface EventCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass"; + value: Uint8Array; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** admin is the admin of the credit class. */ + admin?: string; +} +export interface EventCreateClassAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCreateClass"; + value: EventCreateClassAmino; +} +/** EventCreateClass is an event emitted when a credit class is created. */ +export interface EventCreateClassSDKType { + class_id: string; + admin: string; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatch { + /** class_id is the unique ID of credit class. */ + classId: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** issuer is the account address of the issuer of the credit batch. */ + issuer: string; + /** total_amount is the total number of credits in the credit batch. */ + totalAmount: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + projectLocation: string; +} +export interface EventCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch"; + value: Uint8Array; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** issuer is the account address of the issuer of the credit batch. */ + issuer?: string; + /** total_amount is the total number of credits in the credit batch. */ + total_amount?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + project_location?: string; +} +export interface EventCreateBatchAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; + value: EventCreateBatchAmino; +} +/** EventCreateBatch is an event emitted when a credit batch is created. */ +export interface EventCreateBatchSDKType { + class_id: string; + batch_denom: string; + issuer: string; + total_amount: string; + start_date: string; + end_date: string; + project_location: string; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceive { + /** + * sender is the sender of the credits in the case that this event is the + * result of a transfer. It will not be set when credits are received at + * initial issuance or taken from a basket. + */ + sender: string; + /** recipient is the recipient of the credits. */ + recipient: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits received. */ + retiredAmount: string; + /** + * basket_denom is the denom of the basket. when the basket_denom field is + * set, it indicates that this event was triggered by the transfer of credits + * from a basket. It will not be set if the credits were sent by a user, or by + * initial issuance. + */ + basketDenom: string; +} +export interface EventReceiveProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive"; + value: Uint8Array; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceiveAmino { + /** + * sender is the sender of the credits in the case that this event is the + * result of a transfer. It will not be set when credits are received at + * initial issuance or taken from a basket. + */ + sender?: string; + /** recipient is the recipient of the credits. */ + recipient?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** tradable_amount is the decimal number of tradable credits received. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits received. */ + retired_amount?: string; + /** + * basket_denom is the denom of the basket. when the basket_denom field is + * set, it indicates that this event was triggered by the transfer of credits + * from a basket. It will not be set if the credits were sent by a user, or by + * initial issuance. + */ + basket_denom?: string; +} +export interface EventReceiveAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventReceive"; + value: EventReceiveAmino; +} +/** + * EventReceive is an event emitted when credits are received either via + * creation of a new batch, transfer of credits, or taking credits from a + * basket. Each batch_denom created, transferred or taken from a baset will + * result in a separate EventReceive for easy indexing. + */ +export interface EventReceiveSDKType { + sender: string; + recipient: string; + batch_denom: string; + tradable_amount: string; + retired_amount: string; + basket_denom: string; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetire { + /** + * retirer is the account which has done the "retiring". This will be the + * account receiving credits in the case that credits were retired upon + * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. + */ + retirer: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** amount is the decimal number of credits that have been retired. */ + amount: string; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location: string; +} +export interface EventRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire"; + value: Uint8Array; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireAmino { + /** + * retirer is the account which has done the "retiring". This will be the + * account receiving credits in the case that credits were retired upon + * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. + */ + retirer?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** amount is the decimal number of credits that have been retired. */ + amount?: string; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location?: string; +} +export interface EventRetireAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventRetire"; + value: EventRetireAmino; +} +/** + * EventRetire is an event emitted when credits are retired. When credits are + * retired from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventRetireSDKType { + retirer: string; + batch_denom: string; + amount: string; + location: string; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancel { + /** + * canceller is the account which has cancelled the credits, which should be + * the holder of the credits. + */ + canceller: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount: string; +} +export interface EventCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel"; + value: Uint8Array; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelAmino { + /** + * canceller is the account which has cancelled the credits, which should be + * the holder of the credits. + */ + canceller?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** amount is the decimal number of credits that have been cancelled. */ + amount?: string; +} +export interface EventCancelAminoMsg { + type: "/regen.ecocredit.v1alpha1.EventCancel"; + value: EventCancelAmino; +} +/** + * EventCancel is an event emitted when credits are cancelled. When credits are + * cancelled from multiple batches in the same transaction, a separate event is + * emitted for each batch_denom. This allows for easier indexing. + */ +export interface EventCancelSDKType { + canceller: string; + batch_denom: string; + amount: string; +} +function createBaseEventCreateClass(): EventCreateClass { + return { + classId: "", + admin: "" + }; +} +export const EventCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + encode(message: EventCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateClass { + const message = createBaseEventCreateClass(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + return message; + }, + fromAmino(object: EventCreateClassAmino): EventCreateClass { + const message = createBaseEventCreateClass(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + return message; + }, + toAmino(message: EventCreateClass): EventCreateClassAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + return obj; + }, + fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass { + return EventCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass { + return EventCreateClass.decode(message.value); + }, + toProto(message: EventCreateClass): Uint8Array { + return EventCreateClass.encode(message).finish(); + }, + toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", + value: EventCreateClass.encode(message).finish() + }; + } +}; +function createBaseEventCreateBatch(): EventCreateBatch { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + startDate: "", + endDate: "", + projectLocation: "" + }; +} +export const EventCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + encode(message: EventCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.startDate !== "") { + writer.uint32(42).string(message.startDate); + } + if (message.endDate !== "") { + writer.uint32(50).string(message.endDate); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.startDate = reader.string(); + break; + case 6: + message.endDate = reader.string(); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCreateBatch { + const message = createBaseEventCreateBatch(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.startDate = object.startDate ?? ""; + message.endDate = object.endDate ?? ""; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object: EventCreateBatchAmino): EventCreateBatch { + const message = createBaseEventCreateBatch(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = object.start_date; + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = object.end_date; + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message: EventCreateBatch): EventCreateBatchAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch { + return EventCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch { + return EventCreateBatch.decode(message.value); + }, + toProto(message: EventCreateBatch): Uint8Array { + return EventCreateBatch.encode(message).finish(); + }, + toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", + value: EventCreateBatch.encode(message).finish() + }; + } +}; +function createBaseEventReceive(): EventReceive { + return { + sender: "", + recipient: "", + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + basketDenom: "" + }; +} +export const EventReceive = { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + encode(message: EventReceive, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + if (message.batchDenom !== "") { + writer.uint32(26).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(34).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(42).string(message.retiredAmount); + } + if (message.basketDenom !== "") { + writer.uint32(50).string(message.basketDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventReceive { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventReceive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.batchDenom = reader.string(); + break; + case 4: + message.tradableAmount = reader.string(); + break; + case 5: + message.retiredAmount = reader.string(); + break; + case 6: + message.basketDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventReceive { + const message = createBaseEventReceive(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.basketDenom = object.basketDenom ?? ""; + return message; + }, + fromAmino(object: EventReceiveAmino): EventReceive { + const message = createBaseEventReceive(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.basket_denom !== undefined && object.basket_denom !== null) { + message.basketDenom = object.basket_denom; + } + return message; + }, + toAmino(message: EventReceive): EventReceiveAmino { + const obj: any = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; + return obj; + }, + fromAminoMsg(object: EventReceiveAminoMsg): EventReceive { + return EventReceive.fromAmino(object.value); + }, + fromProtoMsg(message: EventReceiveProtoMsg): EventReceive { + return EventReceive.decode(message.value); + }, + toProto(message: EventReceive): Uint8Array { + return EventReceive.encode(message).finish(); + }, + toProtoMsg(message: EventReceive): EventReceiveProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", + value: EventReceive.encode(message).finish() + }; + } +}; +function createBaseEventRetire(): EventRetire { + return { + retirer: "", + batchDenom: "", + amount: "", + location: "" + }; +} +export const EventRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + encode(message: EventRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.retirer !== "") { + writer.uint32(10).string(message.retirer); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + if (message.location !== "") { + writer.uint32(34).string(message.location); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventRetire { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.retirer = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + case 4: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventRetire { + const message = createBaseEventRetire(); + message.retirer = object.retirer ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object: EventRetireAmino): EventRetire { + const message = createBaseEventRetire(); + if (object.retirer !== undefined && object.retirer !== null) { + message.retirer = object.retirer; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message: EventRetire): EventRetireAmino { + const obj: any = {}; + obj.retirer = message.retirer === "" ? undefined : message.retirer; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object: EventRetireAminoMsg): EventRetire { + return EventRetire.fromAmino(object.value); + }, + fromProtoMsg(message: EventRetireProtoMsg): EventRetire { + return EventRetire.decode(message.value); + }, + toProto(message: EventRetire): Uint8Array { + return EventRetire.encode(message).finish(); + }, + toProtoMsg(message: EventRetire): EventRetireProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", + value: EventRetire.encode(message).finish() + }; + } +}; +function createBaseEventCancel(): EventCancel { + return { + canceller: "", + batchDenom: "", + amount: "" + }; +} +export const EventCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + encode(message: EventCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.canceller !== "") { + writer.uint32(10).string(message.canceller); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(26).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventCancel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.canceller = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventCancel { + const message = createBaseEventCancel(); + message.canceller = object.canceller ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: EventCancelAmino): EventCancel { + const message = createBaseEventCancel(); + if (object.canceller !== undefined && object.canceller !== null) { + message.canceller = object.canceller; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: EventCancel): EventCancelAmino { + const obj: any = {}; + obj.canceller = message.canceller === "" ? undefined : message.canceller; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: EventCancelAminoMsg): EventCancel { + return EventCancel.fromAmino(object.value); + }, + fromProtoMsg(message: EventCancelProtoMsg): EventCancel { + return EventCancel.decode(message.value); + }, + toProto(message: EventCancel): Uint8Array { + return EventCancel.encode(message).finish(); + }, + toProtoMsg(message: EventCancel): EventCancelProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", + value: EventCancel.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/genesis.ts b/packages/api/src/regen/ecocredit/v1alpha1/genesis.ts new file mode 100644 index 00000000..91abe262 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/genesis.ts @@ -0,0 +1,453 @@ +//@ts-nocheck +import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisState { + /** + * Params contains the updateable global parameters for use with the x/params + * module + */ + params: Params; + /** class_info is the list of credit class info. */ + classInfo: ClassInfo[]; + /** batch_info is the list of credit batch info. */ + batchInfo: BatchInfo[]; + /** sequences is the list of credit type sequence. */ + sequences: CreditTypeSeq[]; + /** balances is the list of credit batch tradable/retired units. */ + balances: Balance[]; + /** supplies is the list of credit batch tradable/retired supply. */ + supplies: Supply[]; +} +export interface GenesisStateProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState"; + value: Uint8Array; +} +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisStateAmino { + /** + * Params contains the updateable global parameters for use with the x/params + * module + */ + params?: ParamsAmino; + /** class_info is the list of credit class info. */ + class_info?: ClassInfoAmino[]; + /** batch_info is the list of credit batch info. */ + batch_info?: BatchInfoAmino[]; + /** sequences is the list of credit type sequence. */ + sequences?: CreditTypeSeqAmino[]; + /** balances is the list of credit batch tradable/retired units. */ + balances?: BalanceAmino[]; + /** supplies is the list of credit batch tradable/retired supply. */ + supplies?: SupplyAmino[]; +} +export interface GenesisStateAminoMsg { + type: "/regen.ecocredit.v1alpha1.GenesisState"; + value: GenesisStateAmino; +} +/** GenesisState defines ecocredit module's genesis state. */ +export interface GenesisStateSDKType { + params: ParamsSDKType; + class_info: ClassInfoSDKType[]; + batch_info: BatchInfoSDKType[]; + sequences: CreditTypeSeqSDKType[]; + balances: BalanceSDKType[]; + supplies: SupplySDKType[]; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface Balance { + /** address is the account address of the account holding credits. */ + address: string; + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** tradable_balance is the tradable balance of the credit batch. */ + tradableBalance: string; + /** retired_balance is the retired balance of the credit batch. */ + retiredBalance: string; +} +export interface BalanceProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Balance"; + value: Uint8Array; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface BalanceAmino { + /** address is the account address of the account holding credits. */ + address?: string; + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** tradable_balance is the tradable balance of the credit batch. */ + tradable_balance?: string; + /** retired_balance is the retired balance of the credit batch. */ + retired_balance?: string; +} +export interface BalanceAminoMsg { + type: "/regen.ecocredit.v1alpha1.Balance"; + value: BalanceAmino; +} +/** + * Balance represents tradable or retired units of a credit batch with an + * account address, batch_denom, and balance. + */ +export interface BalanceSDKType { + address: string; + batch_denom: string; + tradable_balance: string; + retired_balance: string; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface Supply { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** tradable_supply is the tradable supply of the credit batch. */ + tradableSupply: string; + /** retired_supply is the retired supply of the credit batch. */ + retiredSupply: string; +} +export interface SupplyProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Supply"; + value: Uint8Array; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface SupplyAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** tradable_supply is the tradable supply of the credit batch. */ + tradable_supply?: string; + /** retired_supply is the retired supply of the credit batch. */ + retired_supply?: string; +} +export interface SupplyAminoMsg { + type: "/regen.ecocredit.v1alpha1.Supply"; + value: SupplyAmino; +} +/** Supply represents a tradable or retired supply of a credit batch. */ +export interface SupplySDKType { + batch_denom: string; + tradable_supply: string; + retired_supply: string; +} +function createBaseGenesisState(): GenesisState { + return { + params: Params.fromPartial({}), + classInfo: [], + batchInfo: [], + sequences: [], + balances: [], + supplies: [] + }; +} +export const GenesisState = { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.classInfo) { + ClassInfo.encode(v!, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.batchInfo) { + BatchInfo.encode(v!, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.sequences) { + CreditTypeSeq.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.balances) { + Balance.encode(v!, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.supplies) { + Supply.encode(v!, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): GenesisState { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenesisState(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + case 2: + message.classInfo.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 3: + message.batchInfo.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 4: + message.sequences.push(CreditTypeSeq.decode(reader, reader.uint32())); + break; + case 5: + message.balances.push(Balance.decode(reader, reader.uint32())); + break; + case 6: + message.supplies.push(Supply.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): GenesisState { + const message = createBaseGenesisState(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + message.classInfo = object.classInfo?.map(e => ClassInfo.fromPartial(e)) || []; + message.batchInfo = object.batchInfo?.map(e => BatchInfo.fromPartial(e)) || []; + message.sequences = object.sequences?.map(e => CreditTypeSeq.fromPartial(e)) || []; + message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; + message.supplies = object.supplies?.map(e => Supply.fromPartial(e)) || []; + return message; + }, + fromAmino(object: GenesisStateAmino): GenesisState { + const message = createBaseGenesisState(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + message.classInfo = object.class_info?.map(e => ClassInfo.fromAmino(e)) || []; + message.batchInfo = object.batch_info?.map(e => BatchInfo.fromAmino(e)) || []; + message.sequences = object.sequences?.map(e => CreditTypeSeq.fromAmino(e)) || []; + message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; + message.supplies = object.supplies?.map(e => Supply.fromAmino(e)) || []; + return message; + }, + toAmino(message: GenesisState): GenesisStateAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + if (message.classInfo) { + obj.class_info = message.classInfo.map(e => e ? ClassInfo.toAmino(e) : undefined); + } else { + obj.class_info = message.classInfo; + } + if (message.batchInfo) { + obj.batch_info = message.batchInfo.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batch_info = message.batchInfo; + } + if (message.sequences) { + obj.sequences = message.sequences.map(e => e ? CreditTypeSeq.toAmino(e) : undefined); + } else { + obj.sequences = message.sequences; + } + if (message.balances) { + obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); + } else { + obj.balances = message.balances; + } + if (message.supplies) { + obj.supplies = message.supplies.map(e => e ? Supply.toAmino(e) : undefined); + } else { + obj.supplies = message.supplies; + } + return obj; + }, + fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { + return GenesisState.fromAmino(object.value); + }, + fromProtoMsg(message: GenesisStateProtoMsg): GenesisState { + return GenesisState.decode(message.value); + }, + toProto(message: GenesisState): Uint8Array { + return GenesisState.encode(message).finish(); + }, + toProtoMsg(message: GenesisState): GenesisStateProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", + value: GenesisState.encode(message).finish() + }; + } +}; +function createBaseBalance(): Balance { + return { + address: "", + batchDenom: "", + tradableBalance: "", + retiredBalance: "" + }; +} +export const Balance = { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + encode(message: Balance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address !== "") { + writer.uint32(10).string(message.address); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.tradableBalance !== "") { + writer.uint32(26).string(message.tradableBalance); + } + if (message.retiredBalance !== "") { + writer.uint32(34).string(message.retiredBalance); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Balance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBalance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.tradableBalance = reader.string(); + break; + case 4: + message.retiredBalance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Balance { + const message = createBaseBalance(); + message.address = object.address ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.tradableBalance = object.tradableBalance ?? ""; + message.retiredBalance = object.retiredBalance ?? ""; + return message; + }, + fromAmino(object: BalanceAmino): Balance { + const message = createBaseBalance(); + if (object.address !== undefined && object.address !== null) { + message.address = object.address; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_balance !== undefined && object.tradable_balance !== null) { + message.tradableBalance = object.tradable_balance; + } + if (object.retired_balance !== undefined && object.retired_balance !== null) { + message.retiredBalance = object.retired_balance; + } + return message; + }, + toAmino(message: Balance): BalanceAmino { + const obj: any = {}; + obj.address = message.address === "" ? undefined : message.address; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; + obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; + return obj; + }, + fromAminoMsg(object: BalanceAminoMsg): Balance { + return Balance.fromAmino(object.value); + }, + fromProtoMsg(message: BalanceProtoMsg): Balance { + return Balance.decode(message.value); + }, + toProto(message: Balance): Uint8Array { + return Balance.encode(message).finish(); + }, + toProtoMsg(message: Balance): BalanceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Balance", + value: Balance.encode(message).finish() + }; + } +}; +function createBaseSupply(): Supply { + return { + batchDenom: "", + tradableSupply: "", + retiredSupply: "" + }; +} +export const Supply = { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + encode(message: Supply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableSupply !== "") { + writer.uint32(18).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(26).string(message.retiredSupply); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Supply { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSupply(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableSupply = reader.string(); + break; + case 3: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Supply { + const message = createBaseSupply(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object: SupplyAmino): Supply { + const message = createBaseSupply(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message: Supply): SupplyAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object: SupplyAminoMsg): Supply { + return Supply.fromAmino(object.value); + }, + fromProtoMsg(message: SupplyProtoMsg): Supply { + return Supply.decode(message.value); + }, + toProto(message: Supply): Uint8Array { + return Supply.encode(message).finish(); + }, + toProtoMsg(message: Supply): SupplyProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Supply", + value: Supply.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/query.lcd.ts b/packages/api/src/regen/ecocredit/v1alpha1/query.lcd.ts new file mode 100644 index 00000000..12ef41f4 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/query.lcd.ts @@ -0,0 +1,78 @@ +//@ts-nocheck +import { setPaginationParams } from "../../../helpers"; +import { LCDClient } from "@cosmology/lcd"; +import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + /* Classes queries for all credit classes with pagination. */ + async classes(params: QueryClassesRequest = { + pagination: undefined + }): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes`; + return await this.req.get(endpoint, options); + } + /* ClassInfo queries for information on a credit class. */ + async classInfo(params: QueryClassInfoRequest): Promise { + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; + return await this.req.get(endpoint); + } + /* Batches queries for all batches in the given credit class with pagination. */ + async batches(params: QueryBatchesRequest): Promise { + const options: any = { + params: {} + }; + if (typeof params?.pagination !== "undefined") { + setPaginationParams(options, params.pagination); + } + const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; + return await this.req.get(endpoint, options); + } + /* BatchInfo queries for information on a credit batch. */ + async batchInfo(params: QueryBatchInfoRequest): Promise { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; + return await this.req.get(endpoint); + } + /* Balance queries the balance (both tradable and retired) of a given credit + batch for a given account. */ + async balance(params: QueryBalanceRequest): Promise { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; + return await this.req.get(endpoint); + } + /* Supply queries the tradable and retired supply of a credit batch. */ + async supply(params: QuerySupplyRequest): Promise { + const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; + return await this.req.get(endpoint); + } + /* CreditTypes returns the list of allowed types that credit classes can have. + See Types/CreditType for more details. */ + async creditTypes(_params: QueryCreditTypesRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1alpha1/credit-types`; + return await this.req.get(endpoint); + } + /* Params queries the ecocredit module parameters. */ + async params(_params: QueryParamsRequest = {}): Promise { + const endpoint = `regen/ecocredit/v1alpha1/params`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/query.rpc.Query.ts b/packages/api/src/regen/ecocredit/v1alpha1/query.rpc.Query.ts new file mode 100644 index 00000000..e95e24d8 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/query.rpc.Query.ts @@ -0,0 +1,116 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Msg is the regen.ecocredit.v1alpha1 Query service. */ +export interface Query { + /** Classes queries for all credit classes with pagination. */ + classes(request?: QueryClassesRequest): Promise; + /** ClassInfo queries for information on a credit class. */ + classInfo(request: QueryClassInfoRequest): Promise; + /** Batches queries for all batches in the given credit class with pagination. */ + batches(request: QueryBatchesRequest): Promise; + /** BatchInfo queries for information on a credit batch. */ + batchInfo(request: QueryBatchInfoRequest): Promise; + /** + * Balance queries the balance (both tradable and retired) of a given credit + * batch for a given account. + */ + balance(request: QueryBalanceRequest): Promise; + /** Supply queries the tradable and retired supply of a credit batch. */ + supply(request: QuerySupplyRequest): Promise; + /** + * CreditTypes returns the list of allowed types that credit classes can have. + * See Types/CreditType for more details. + */ + creditTypes(request?: QueryCreditTypesRequest): Promise; + /** Params queries the ecocredit module parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.classes = this.classes.bind(this); + this.classInfo = this.classInfo.bind(this); + this.batches = this.batches.bind(this); + this.batchInfo = this.batchInfo.bind(this); + this.balance = this.balance.bind(this); + this.supply = this.supply.bind(this); + this.creditTypes = this.creditTypes.bind(this); + this.params = this.params.bind(this); + } + classes(request: QueryClassesRequest = { + pagination: undefined + }): Promise { + const data = QueryClassesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); + return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); + } + classInfo(request: QueryClassInfoRequest): Promise { + const data = QueryClassInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); + return promise.then(data => QueryClassInfoResponse.decode(new BinaryReader(data))); + } + batches(request: QueryBatchesRequest): Promise { + const data = QueryBatchesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); + return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); + } + batchInfo(request: QueryBatchInfoRequest): Promise { + const data = QueryBatchInfoRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); + return promise.then(data => QueryBatchInfoResponse.decode(new BinaryReader(data))); + } + balance(request: QueryBalanceRequest): Promise { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); + } + supply(request: QuerySupplyRequest): Promise { + const data = QuerySupplyRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); + return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); + } + creditTypes(request: QueryCreditTypesRequest = {}): Promise { + const data = QueryCreditTypesRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); + return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + classes(request?: QueryClassesRequest): Promise { + return queryService.classes(request); + }, + classInfo(request: QueryClassInfoRequest): Promise { + return queryService.classInfo(request); + }, + batches(request: QueryBatchesRequest): Promise { + return queryService.batches(request); + }, + batchInfo(request: QueryBatchInfoRequest): Promise { + return queryService.batchInfo(request); + }, + balance(request: QueryBalanceRequest): Promise { + return queryService.balance(request); + }, + supply(request: QuerySupplyRequest): Promise { + return queryService.supply(request); + }, + creditTypes(request?: QueryCreditTypesRequest): Promise { + return queryService.creditTypes(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/query.ts b/packages/api/src/regen/ecocredit/v1alpha1/query.ts new file mode 100644 index 00000000..89596a3c --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/query.ts @@ -0,0 +1,1442 @@ +//@ts-nocheck +import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; +import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequest {} +export interface QueryParamsRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; + value: Uint8Array; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestAmino {} +export interface QueryParamsRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; + value: QueryParamsRequestAmino; +} +/** QueryParamsRequest is the Query/Params request type. */ +export interface QueryParamsRequestSDKType {} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponse { + /** params defines the parameters of the ecocredit module. */ + params?: Params; +} +export interface QueryParamsResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; + value: Uint8Array; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseAmino { + /** params defines the parameters of the ecocredit module. */ + params?: ParamsAmino; +} +export interface QueryParamsResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; + value: QueryParamsResponseAmino; +} +/** QueryParamsResponse is the Query/Params response type. */ +export interface QueryParamsResponseSDKType { + params?: ParamsSDKType; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequest { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryClassesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; + value: Uint8Array; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestAmino { + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryClassesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; + value: QueryClassesRequestAmino; +} +/** QueryClassesRequest is the Query/Classes request type. */ +export interface QueryClassesRequestSDKType { + pagination?: PageRequestSDKType; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponse { + /** classes are the fetched credit classes. */ + classes: ClassInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryClassesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; + value: Uint8Array; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseAmino { + /** classes are the fetched credit classes. */ + classes?: ClassInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryClassesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; + value: QueryClassesResponseAmino; +} +/** QueryClassesResponse is the Query/Classes response type. */ +export interface QueryClassesResponseSDKType { + classes: ClassInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequest { + /** class_id is the unique ID of credit class to query. */ + classId: string; +} +export interface QueryClassInfoRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; + value: Uint8Array; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequestAmino { + /** class_id is the unique ID of credit class to query. */ + class_id?: string; +} +export interface QueryClassInfoRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; + value: QueryClassInfoRequestAmino; +} +/** QueryClassInfoRequest is the Query/ClassInfo request type. */ +export interface QueryClassInfoRequestSDKType { + class_id: string; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponse { + /** info is the ClassInfo for the credit class. */ + info?: ClassInfo; +} +export interface QueryClassInfoResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; + value: Uint8Array; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponseAmino { + /** info is the ClassInfo for the credit class. */ + info?: ClassInfoAmino; +} +export interface QueryClassInfoResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; + value: QueryClassInfoResponseAmino; +} +/** QueryClassInfoResponse is the Query/ClassInfo request type. */ +export interface QueryClassInfoResponseSDKType { + info?: ClassInfoSDKType; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequest { + /** class_id is the unique ID of the credit class to query. */ + classId: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequest; +} +export interface QueryBatchesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; + value: Uint8Array; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestAmino { + /** class_id is the unique ID of the credit class to query. */ + class_id?: string; + /** pagination defines an optional pagination for the request. */ + pagination?: PageRequestAmino; +} +export interface QueryBatchesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; + value: QueryBatchesRequestAmino; +} +/** QueryBatchesRequest is the Query/Batches request type. */ +export interface QueryBatchesRequestSDKType { + class_id: string; + pagination?: PageRequestSDKType; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponse { + /** batches are the fetched credit batches within the class. */ + batches: BatchInfo[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponse; +} +export interface QueryBatchesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; + value: Uint8Array; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseAmino { + /** batches are the fetched credit batches within the class. */ + batches?: BatchInfoAmino[]; + /** pagination defines the pagination in the response. */ + pagination?: PageResponseAmino; +} +export interface QueryBatchesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; + value: QueryBatchesResponseAmino; +} +/** QueryBatchesResponse is the Query/Batches response type. */ +export interface QueryBatchesResponseSDKType { + batches: BatchInfoSDKType[]; + pagination?: PageResponseSDKType; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequest { + /** batch_denom is the unique ID of credit batch to query. */ + batchDenom: string; +} +export interface QueryBatchInfoRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; + value: Uint8Array; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequestAmino { + /** batch_denom is the unique ID of credit batch to query. */ + batch_denom?: string; +} +export interface QueryBatchInfoRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; + value: QueryBatchInfoRequestAmino; +} +/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ +export interface QueryBatchInfoRequestSDKType { + batch_denom: string; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponse { + /** info is the BatchInfo for the credit batch. */ + info?: BatchInfo; +} +export interface QueryBatchInfoResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; + value: Uint8Array; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponseAmino { + /** info is the BatchInfo for the credit batch. */ + info?: BatchInfoAmino; +} +export interface QueryBatchInfoResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; + value: QueryBatchInfoResponseAmino; +} +/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ +export interface QueryBatchInfoResponseSDKType { + info?: BatchInfoSDKType; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequest { + /** account is the address of the account whose balance is being queried. */ + account: string; + /** batch_denom is the unique ID of credit batch balance to query. */ + batchDenom: string; +} +export interface QueryBalanceRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; + value: Uint8Array; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestAmino { + /** account is the address of the account whose balance is being queried. */ + account?: string; + /** batch_denom is the unique ID of credit batch balance to query. */ + batch_denom?: string; +} +export interface QueryBalanceRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; + value: QueryBalanceRequestAmino; +} +/** QueryBalanceRequest is the Query/Balance request type. */ +export interface QueryBalanceRequestSDKType { + account: string; + batch_denom: string; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponse { + /** tradable_amount is the decimal number of tradable credits. */ + tradableAmount: string; + /** retired_amount is the decimal number of retired credits. */ + retiredAmount: string; +} +export interface QueryBalanceResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; + value: Uint8Array; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseAmino { + /** tradable_amount is the decimal number of tradable credits. */ + tradable_amount?: string; + /** retired_amount is the decimal number of retired credits. */ + retired_amount?: string; +} +export interface QueryBalanceResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; + value: QueryBalanceResponseAmino; +} +/** QueryBalanceResponse is the Query/Balance response type. */ +export interface QueryBalanceResponseSDKType { + tradable_amount: string; + retired_amount: string; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequest { + /** batch_denom is the unique ID of credit batch to query. */ + batchDenom: string; +} +export interface QuerySupplyRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; + value: Uint8Array; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestAmino { + /** batch_denom is the unique ID of credit batch to query. */ + batch_denom?: string; +} +export interface QuerySupplyRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; + value: QuerySupplyRequestAmino; +} +/** QuerySupplyRequest is the Query/Supply request type. */ +export interface QuerySupplyRequestSDKType { + batch_denom: string; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponse { + /** + * tradable_supply is the decimal number of tradable credits in the batch + * supply. + */ + tradableSupply: string; + /** + * retired_supply is the decimal number of retired credits in the batch + * supply. + */ + retiredSupply: string; +} +export interface QuerySupplyResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; + value: Uint8Array; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseAmino { + /** + * tradable_supply is the decimal number of tradable credits in the batch + * supply. + */ + tradable_supply?: string; + /** + * retired_supply is the decimal number of retired credits in the batch + * supply. + */ + retired_supply?: string; +} +export interface QuerySupplyResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; + value: QuerySupplyResponseAmino; +} +/** QuerySupplyResponse is the Query/Supply response type. */ +export interface QuerySupplyResponseSDKType { + tradable_supply: string; + retired_supply: string; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequest {} +export interface QueryCreditTypesRequestProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestAmino {} +export interface QueryCreditTypesRequestAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; + value: QueryCreditTypesRequestAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types request type */ +export interface QueryCreditTypesRequestSDKType {} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponse { + /** list of credit types */ + creditTypes: CreditType[]; +} +export interface QueryCreditTypesResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; + value: Uint8Array; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseAmino { + /** list of credit types */ + credit_types?: CreditTypeAmino[]; +} +export interface QueryCreditTypesResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; + value: QueryCreditTypesResponseAmino; +} +/** QueryCreditTypesRequest is the Query/Credit_Types response type */ +export interface QueryCreditTypesResponseSDKType { + credit_types: CreditTypeSDKType[]; +} +function createBaseQueryParamsRequest(): QueryParamsRequest { + return {}; +} +export const QueryParamsRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest { + const message = createBaseQueryParamsRequest(); + return message; + }, + toAmino(_: QueryParamsRequest): QueryParamsRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { + return QueryParamsRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest { + return QueryParamsRequest.decode(message.value); + }, + toProto(message: QueryParamsRequest): Uint8Array { + return QueryParamsRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", + value: QueryParamsRequest.encode(message).finish() + }; + } +}; +function createBaseQueryParamsResponse(): QueryParamsResponse { + return { + params: undefined + }; +} +export const QueryParamsResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryParamsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + }, + fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse { + const message = createBaseQueryParamsResponse(); + if (object.params !== undefined && object.params !== null) { + message.params = Params.fromAmino(object.params); + } + return message; + }, + toAmino(message: QueryParamsResponse): QueryParamsResponseAmino { + const obj: any = {}; + obj.params = message.params ? Params.toAmino(message.params) : undefined; + return obj; + }, + fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse { + return QueryParamsResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse { + return QueryParamsResponse.decode(message.value); + }, + toProto(message: QueryParamsResponse): Uint8Array { + return QueryParamsResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", + value: QueryParamsResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassesRequest(): QueryClassesRequest { + return { + pagination: undefined + }; +} +export const QueryClassesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesRequest { + const message = createBaseQueryClassesRequest(); + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest { + const message = createBaseQueryClassesRequest(); + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesRequest): QueryClassesRequestAmino { + const obj: any = {}; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest { + return QueryClassesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest { + return QueryClassesRequest.decode(message.value); + }, + toProto(message: QueryClassesRequest): Uint8Array { + return QueryClassesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", + value: QueryClassesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassesResponse(): QueryClassesResponse { + return { + classes: [], + pagination: undefined + }; +} +export const QueryClassesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.classes) { + ClassInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classes.push(ClassInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassesResponse { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse { + const message = createBaseQueryClassesResponse(); + message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryClassesResponse): QueryClassesResponseAmino { + const obj: any = {}; + if (message.classes) { + obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); + } else { + obj.classes = message.classes; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse { + return QueryClassesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse { + return QueryClassesResponse.decode(message.value); + }, + toProto(message: QueryClassesResponse): Uint8Array { + return QueryClassesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", + value: QueryClassesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoRequest(): QueryClassInfoRequest { + return { + classId: "" + }; +} +export const QueryClassInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + encode(message: QueryClassInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassInfoRequest { + const message = createBaseQueryClassInfoRequest(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: QueryClassInfoRequestAmino): QueryClassInfoRequest { + const message = createBaseQueryClassInfoRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: QueryClassInfoRequest): QueryClassInfoRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: QueryClassInfoRequestAminoMsg): QueryClassInfoRequest { + return QueryClassInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassInfoRequestProtoMsg): QueryClassInfoRequest { + return QueryClassInfoRequest.decode(message.value); + }, + toProto(message: QueryClassInfoRequest): Uint8Array { + return QueryClassInfoRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", + value: QueryClassInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryClassInfoResponse(): QueryClassInfoResponse { + return { + info: undefined + }; +} +export const QueryClassInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + encode(message: QueryClassInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.info !== undefined) { + ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryClassInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = ClassInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryClassInfoResponse { + const message = createBaseQueryClassInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? ClassInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object: QueryClassInfoResponseAmino): QueryClassInfoResponse { + const message = createBaseQueryClassInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = ClassInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message: QueryClassInfoResponse): QueryClassInfoResponseAmino { + const obj: any = {}; + obj.info = message.info ? ClassInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object: QueryClassInfoResponseAminoMsg): QueryClassInfoResponse { + return QueryClassInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryClassInfoResponseProtoMsg): QueryClassInfoResponse { + return QueryClassInfoResponse.decode(message.value); + }, + toProto(message: QueryClassInfoResponse): Uint8Array { + return QueryClassInfoResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", + value: QueryClassInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesRequest(): QueryBatchesRequest { + return { + classId: "", + pagination: undefined + }; +} +export const QueryBatchesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + encode(message: QueryBatchesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.pagination = PageRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesRequest { + const message = createBaseQueryBatchesRequest(); + message.classId = object.classId ?? ""; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest { + const message = createBaseQueryBatchesRequest(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageRequest.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest { + return QueryBatchesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest { + return QueryBatchesRequest.decode(message.value); + }, + toProto(message: QueryBatchesRequest): Uint8Array { + return QueryBatchesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", + value: QueryBatchesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchesResponse(): QueryBatchesResponse { + return { + batches: [], + pagination: undefined + }; +} +export const QueryBatchesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + encode(message: QueryBatchesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.batches) { + BatchInfo.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.pagination !== undefined) { + PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batches.push(BatchInfo.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = PageResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchesResponse { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; + message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; + return message; + }, + fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse { + const message = createBaseQueryBatchesResponse(); + message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; + if (object.pagination !== undefined && object.pagination !== null) { + message.pagination = PageResponse.fromAmino(object.pagination); + } + return message; + }, + toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino { + const obj: any = {}; + if (message.batches) { + obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); + } else { + obj.batches = message.batches; + } + obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse { + return QueryBatchesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse { + return QueryBatchesResponse.decode(message.value); + }, + toProto(message: QueryBatchesResponse): Uint8Array { + return QueryBatchesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", + value: QueryBatchesResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoRequest(): QueryBatchInfoRequest { + return { + batchDenom: "" + }; +} +export const QueryBatchInfoRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + encode(message: QueryBatchInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchInfoRequest { + const message = createBaseQueryBatchInfoRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QueryBatchInfoRequestAmino): QueryBatchInfoRequest { + const message = createBaseQueryBatchInfoRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QueryBatchInfoRequest): QueryBatchInfoRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QueryBatchInfoRequestAminoMsg): QueryBatchInfoRequest { + return QueryBatchInfoRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchInfoRequestProtoMsg): QueryBatchInfoRequest { + return QueryBatchInfoRequest.decode(message.value); + }, + toProto(message: QueryBatchInfoRequest): Uint8Array { + return QueryBatchInfoRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", + value: QueryBatchInfoRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBatchInfoResponse(): QueryBatchInfoResponse { + return { + info: undefined + }; +} +export const QueryBatchInfoResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + encode(message: QueryBatchInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.info !== undefined) { + BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBatchInfoResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.info = BatchInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBatchInfoResponse { + const message = createBaseQueryBatchInfoResponse(); + message.info = object.info !== undefined && object.info !== null ? BatchInfo.fromPartial(object.info) : undefined; + return message; + }, + fromAmino(object: QueryBatchInfoResponseAmino): QueryBatchInfoResponse { + const message = createBaseQueryBatchInfoResponse(); + if (object.info !== undefined && object.info !== null) { + message.info = BatchInfo.fromAmino(object.info); + } + return message; + }, + toAmino(message: QueryBatchInfoResponse): QueryBatchInfoResponseAmino { + const obj: any = {}; + obj.info = message.info ? BatchInfo.toAmino(message.info) : undefined; + return obj; + }, + fromAminoMsg(object: QueryBatchInfoResponseAminoMsg): QueryBatchInfoResponse { + return QueryBatchInfoResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBatchInfoResponseProtoMsg): QueryBatchInfoResponse { + return QueryBatchInfoResponse.decode(message.value); + }, + toProto(message: QueryBatchInfoResponse): Uint8Array { + return QueryBatchInfoResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", + value: QueryBatchInfoResponse.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceRequest(): QueryBalanceRequest { + return { + account: "", + batchDenom: "" + }; +} +export const QueryBalanceRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.account !== "") { + writer.uint32(10).string(message.account); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + message.account = object.account ?? ""; + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest { + const message = createBaseQueryBalanceRequest(); + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { + const obj: any = {}; + obj.account = message.account === "" ? undefined : message.account; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { + return QueryBalanceRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest { + return QueryBalanceRequest.decode(message.value); + }, + toProto(message: QueryBalanceRequest): Uint8Array { + return QueryBalanceRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", + value: QueryBalanceRequest.encode(message).finish() + }; + } +}; +function createBaseQueryBalanceResponse(): QueryBalanceResponse { + return { + tradableAmount: "", + retiredAmount: "" + }; +} +export const QueryBalanceResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tradableAmount !== "") { + writer.uint32(10).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(18).string(message.retiredAmount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryBalanceResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableAmount = reader.string(); + break; + case 2: + message.retiredAmount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + return message; + }, + fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse { + const message = createBaseQueryBalanceResponse(); + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + return message; + }, + toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino { + const obj: any = {}; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + return obj; + }, + fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse { + return QueryBalanceResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse { + return QueryBalanceResponse.decode(message.value); + }, + toProto(message: QueryBalanceResponse): Uint8Array { + return QueryBalanceResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", + value: QueryBalanceResponse.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyRequest(): QuerySupplyRequest { + return { + batchDenom: "" + }; +} +export const QuerySupplyRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyRequest { + const message = createBaseQuerySupplyRequest(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest { + const message = createBaseQuerySupplyRequest(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest { + return QuerySupplyRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest { + return QuerySupplyRequest.decode(message.value); + }, + toProto(message: QuerySupplyRequest): Uint8Array { + return QuerySupplyRequest.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", + value: QuerySupplyRequest.encode(message).finish() + }; + } +}; +function createBaseQuerySupplyResponse(): QuerySupplyResponse { + return { + tradableSupply: "", + retiredSupply: "" + }; +} +export const QuerySupplyResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tradableSupply !== "") { + writer.uint32(10).string(message.tradableSupply); + } + if (message.retiredSupply !== "") { + writer.uint32(18).string(message.retiredSupply); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQuerySupplyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tradableSupply = reader.string(); + break; + case 2: + message.retiredSupply = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QuerySupplyResponse { + const message = createBaseQuerySupplyResponse(); + message.tradableSupply = object.tradableSupply ?? ""; + message.retiredSupply = object.retiredSupply ?? ""; + return message; + }, + fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse { + const message = createBaseQuerySupplyResponse(); + if (object.tradable_supply !== undefined && object.tradable_supply !== null) { + message.tradableSupply = object.tradable_supply; + } + if (object.retired_supply !== undefined && object.retired_supply !== null) { + message.retiredSupply = object.retired_supply; + } + return message; + }, + toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino { + const obj: any = {}; + obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; + obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; + return obj; + }, + fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse { + return QuerySupplyResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse { + return QuerySupplyResponse.decode(message.value); + }, + toProto(message: QuerySupplyResponse): Uint8Array { + return QuerySupplyResponse.encode(message).finish(); + }, + toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", + value: QuerySupplyResponse.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesRequest(): QueryCreditTypesRequest { + return {}; +} +export const QueryCreditTypesRequest = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + encode(_: QueryCreditTypesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): QueryCreditTypesRequest { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest { + const message = createBaseQueryCreditTypesRequest(); + return message; + }, + toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest { + return QueryCreditTypesRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest { + return QueryCreditTypesRequest.decode(message.value); + }, + toProto(message: QueryCreditTypesRequest): Uint8Array { + return QueryCreditTypesRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", + value: QueryCreditTypesRequest.encode(message).finish() + }; + } +}; +function createBaseQueryCreditTypesResponse(): QueryCreditTypesResponse { + return { + creditTypes: [] + }; +} +export const QueryCreditTypesResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + encode(message: QueryCreditTypesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.creditTypes) { + CreditType.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryCreditTypesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryCreditTypesResponse { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + return message; + }, + fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse { + const message = createBaseQueryCreditTypesResponse(); + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + return message; + }, + toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino { + const obj: any = {}; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } else { + obj.credit_types = message.creditTypes; + } + return obj; + }, + fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse { + return QueryCreditTypesResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse { + return QueryCreditTypesResponse.decode(message.value); + }, + toProto(message: QueryCreditTypesResponse): Uint8Array { + return QueryCreditTypesResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", + value: QueryCreditTypesResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/tx.amino.ts b/packages/api/src/regen/ecocredit/v1alpha1/tx.amino.ts new file mode 100644 index 00000000..21513bdc --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/tx.amino.ts @@ -0,0 +1,44 @@ +//@ts-nocheck +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export const AminoConverter = { + "/regen.ecocredit.v1alpha1.MsgCreateClass": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", + toAmino: MsgCreateClass.toAmino, + fromAmino: MsgCreateClass.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCreateBatch": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + toAmino: MsgCreateBatch.toAmino, + fromAmino: MsgCreateBatch.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgSend": { + aminoType: "/regen.ecocredit.v1alpha1.MsgSend", + toAmino: MsgSend.toAmino, + fromAmino: MsgSend.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgRetire": { + aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", + toAmino: MsgRetire.toAmino, + fromAmino: MsgRetire.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgCancel": { + aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", + toAmino: MsgCancel.toAmino, + fromAmino: MsgCancel.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + toAmino: MsgUpdateClassAdmin.toAmino, + fromAmino: MsgUpdateClassAdmin.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + toAmino: MsgUpdateClassIssuers.toAmino, + fromAmino: MsgUpdateClassIssuers.fromAmino + }, + "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { + aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + toAmino: MsgUpdateClassMetadata.toAmino, + fromAmino: MsgUpdateClassMetadata.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/tx.registry.ts b/packages/api/src/regen/ecocredit/v1alpha1/tx.registry.ts new file mode 100644 index 00000000..76d97b34 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/tx.registry.ts @@ -0,0 +1,161 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.ecocredit.v1alpha1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", MsgUpdateClassMetadata]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.encode(value).finish() + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.encode(value).finish() + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.encode(value).finish() + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.encode(value).finish() + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.encode(value).finish() + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(value).finish() + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(value).finish() + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(value).finish() + }; + } + }, + withTypeUrl: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value + }; + } + }, + fromPartial: { + createClass(value: MsgCreateClass) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.fromPartial(value) + }; + }, + createBatch(value: MsgCreateBatch) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.fromPartial(value) + }; + }, + send(value: MsgSend) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.fromPartial(value) + }; + }, + retire(value: MsgRetire) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.fromPartial(value) + }; + }, + cancel(value: MsgCancel) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.fromPartial(value) + }; + }, + updateClassAdmin(value: MsgUpdateClassAdmin) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.fromPartial(value) + }; + }, + updateClassIssuers(value: MsgUpdateClassIssuers) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.fromPartial(value) + }; + }, + updateClassMetadata(value: MsgUpdateClassMetadata) { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/tx.rpc.msg.ts b/packages/api/src/regen/ecocredit/v1alpha1/tx.rpc.msg.ts new file mode 100644 index 00000000..550c167b --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/tx.rpc.msg.ts @@ -0,0 +1,91 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; +/** Msg is the regen.ecocredit.v1alpha1 Msg service. */ +export interface Msg { + /** + * CreateClass creates a new credit class with an approved list of issuers and + * optional metadata. + */ + createClass(request: MsgCreateClass): Promise; + /** + * CreateBatch creates a new batch of credits for an existing credit class. + * This will create a new batch denom with a fixed supply. Issued credits can + * be distributed to recipients in either tradable or retired form. + */ + createBatch(request: MsgCreateBatch): Promise; + /** + * Send sends tradable credits from one account to another account. Sent + * credits can either be tradable or retired on receipt. + */ + send(request: MsgSend): Promise; + /** Retire retires a specified number of credits in the holder's account. */ + retire(request: MsgRetire): Promise; + /** + * Cancel removes a number of credits from the holder's account and also + * deducts them from the tradable supply, effectively cancelling their + * issuance on Regen Ledger + */ + cancel(request: MsgCancel): Promise; + /** UpdateClassAdmin updates the credit class admin */ + updateClassAdmin(request: MsgUpdateClassAdmin): Promise; + /** UpdateClassIssuers updates the credit class issuer list */ + updateClassIssuers(request: MsgUpdateClassIssuers): Promise; + /** UpdateClassMetadata updates the credit class metadata */ + updateClassMetadata(request: MsgUpdateClassMetadata): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createClass = this.createClass.bind(this); + this.createBatch = this.createBatch.bind(this); + this.send = this.send.bind(this); + this.retire = this.retire.bind(this); + this.cancel = this.cancel.bind(this); + this.updateClassAdmin = this.updateClassAdmin.bind(this); + this.updateClassIssuers = this.updateClassIssuers.bind(this); + this.updateClassMetadata = this.updateClassMetadata.bind(this); + } + createClass(request: MsgCreateClass): Promise { + const data = MsgCreateClass.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); + return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); + } + createBatch(request: MsgCreateBatch): Promise { + const data = MsgCreateBatch.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); + return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); + } + send(request: MsgSend): Promise { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); + } + retire(request: MsgRetire): Promise { + const data = MsgRetire.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); + return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); + } + cancel(request: MsgCancel): Promise { + const data = MsgCancel.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); + return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); + } + updateClassAdmin(request: MsgUpdateClassAdmin): Promise { + const data = MsgUpdateClassAdmin.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); + return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); + } + updateClassIssuers(request: MsgUpdateClassIssuers): Promise { + const data = MsgUpdateClassIssuers.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); + return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); + } + updateClassMetadata(request: MsgUpdateClassMetadata): Promise { + const data = MsgUpdateClassMetadata.encode(request).finish(); + const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); + return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/tx.ts b/packages/api/src/regen/ecocredit/v1alpha1/tx.ts new file mode 100644 index 00000000..313207f3 --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/tx.ts @@ -0,0 +1,2211 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClass { + /** admin is the address of the account that created the credit class. */ + admin: string; + /** issuers are the account addresses of the approved issuers. */ + issuers: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: Uint8Array; + /** + * credit_type_name describes the type of credit (e.g. "carbon", + * "biodiversity"). + */ + creditTypeName: string; +} +export interface MsgCreateClassProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass"; + value: Uint8Array; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassAmino { + /** admin is the address of the account that created the credit class. */ + admin?: string; + /** issuers are the account addresses of the approved issuers. */ + issuers?: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** + * credit_type_name describes the type of credit (e.g. "carbon", + * "biodiversity"). + */ + credit_type_name?: string; +} +export interface MsgCreateClassAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; + value: MsgCreateClassAmino; +} +/** MsgCreateClass is the Msg/CreateClass request type. */ +export interface MsgCreateClassSDKType { + admin: string; + issuers: string[]; + metadata: Uint8Array; + credit_type_name: string; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponse { + /** class_id is the unique ID of the newly created credit class. */ + classId: string; +} +export interface MsgCreateClassResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; + value: Uint8Array; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseAmino { + /** class_id is the unique ID of the newly created credit class. */ + class_id?: string; +} +export interface MsgCreateClassResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; + value: MsgCreateClassResponseAmino; +} +/** MsgCreateClassResponse is the Msg/CreateClass response type. */ +export interface MsgCreateClassResponseSDKType { + class_id: string; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatch { + /** issuer is the address of the batch issuer. */ + issuer: string; + /** class_id is the unique ID of the class. */ + classId: string; + /** issuance are the credits issued in the batch. */ + issuance: MsgCreateBatch_BatchIssuance[]; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: Uint8Array; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * project_location is the location of the project backing the credits in this + * batch. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. country-code is required, while sub-national-code + * and postal-code can be added for increasing precision. + */ + projectLocation: string; +} +export interface MsgCreateBatchProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; + value: Uint8Array; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchAmino { + /** issuer is the address of the batch issuer. */ + issuer?: string; + /** class_id is the unique ID of the class. */ + class_id?: string; + /** issuance are the credits issued in the batch. */ + issuance?: MsgCreateBatch_BatchIssuanceAmino[]; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. country-code is required, while sub-national-code + * and postal-code can be added for increasing precision. + */ + project_location?: string; +} +export interface MsgCreateBatchAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; + value: MsgCreateBatchAmino; +} +/** MsgCreateBatch is the Msg/CreateBatch request type. */ +export interface MsgCreateBatchSDKType { + issuer: string; + class_id: string; + issuance: MsgCreateBatch_BatchIssuanceSDKType[]; + metadata: Uint8Array; + start_date?: Date; + end_date?: Date; + project_location: string; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuance { + /** recipient is the account of the recipient. */ + recipient: string; + /** + * tradable_amount is the number of credits in this issuance that can be + * traded by this recipient. Decimal values are acceptable. + */ + tradableAmount: string; + /** + * retired_amount is the number of credits in this issuance that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable. + */ + retiredAmount: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirementLocation: string; +} +export interface MsgCreateBatch_BatchIssuanceProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance"; + value: Uint8Array; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuanceAmino { + /** recipient is the account of the recipient. */ + recipient?: string; + /** + * tradable_amount is the number of credits in this issuance that can be + * traded by this recipient. Decimal values are acceptable. + */ + tradable_amount?: string; + /** + * retired_amount is the number of credits in this issuance that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable. + */ + retired_amount?: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirement_location?: string; +} +export interface MsgCreateBatch_BatchIssuanceAminoMsg { + type: "/regen.ecocredit.v1alpha1.BatchIssuance"; + value: MsgCreateBatch_BatchIssuanceAmino; +} +/** + * BatchIssuance represents the issuance of some credits in a batch to a + * single recipient. + */ +export interface MsgCreateBatch_BatchIssuanceSDKType { + recipient: string; + tradable_amount: string; + retired_amount: string; + retirement_location: string; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponse { + /** batch_denom is the unique denomination ID of the newly created batch. */ + batchDenom: string; +} +export interface MsgCreateBatchResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; + value: Uint8Array; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseAmino { + /** batch_denom is the unique denomination ID of the newly created batch. */ + batch_denom?: string; +} +export interface MsgCreateBatchResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; + value: MsgCreateBatchResponseAmino; +} +/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ +export interface MsgCreateBatchResponseSDKType { + batch_denom: string; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSend { + /** sender is the address of the account sending credits. */ + sender: string; + /** sender is the address of the account receiving credits. */ + recipient: string; + /** credits are the credits being sent. */ + credits: MsgSend_SendCredits[]; +} +export interface MsgSendProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend"; + value: Uint8Array; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendAmino { + /** sender is the address of the account sending credits. */ + sender?: string; + /** sender is the address of the account receiving credits. */ + recipient?: string; + /** credits are the credits being sent. */ + credits?: MsgSend_SendCreditsAmino[]; +} +export interface MsgSendAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgSend"; + value: MsgSendAmino; +} +/** MsgSend is the Msg/Send request type. */ +export interface MsgSendSDKType { + sender: string; + recipient: string; + credits: MsgSend_SendCreditsSDKType[]; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * tradable_amount is the number of credits in this transfer that can be + * traded by the recipient. Decimal values are acceptable within the + * precision returned by Query/Precision. + */ + tradableAmount: string; + /** + * retired_amount is the number of credits in this transfer that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable within the precision returned by Query/Precision. + */ + retiredAmount: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirementLocation: string; +} +export interface MsgSend_SendCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits"; + value: Uint8Array; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * tradable_amount is the number of credits in this transfer that can be + * traded by the recipient. Decimal values are acceptable within the + * precision returned by Query/Precision. + */ + tradable_amount?: string; + /** + * retired_amount is the number of credits in this transfer that are + * effectively retired by the issuer on receipt. Decimal values are + * acceptable within the precision returned by Query/Precision. + */ + retired_amount?: string; + /** + * retirement_location is the location of the beneficiary or buyer of the + * retired credits. This must be provided if retired_amount is positive. It + * is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + retirement_location?: string; +} +export interface MsgSend_SendCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.SendCredits"; + value: MsgSend_SendCreditsAmino; +} +/** + * SendCredits specifies a batch and the number of credits being transferred. + * This is split into tradable credits, which will remain tradable on receipt, + * and retired credits, which will be retired on receipt. + */ +export interface MsgSend_SendCreditsSDKType { + batch_denom: string; + tradable_amount: string; + retired_amount: string; + retirement_location: string; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponse {} +export interface MsgSendResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse"; + value: Uint8Array; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseAmino {} +export interface MsgSendResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgSendResponse"; + value: MsgSendResponseAmino; +} +/** MsgSendResponse is the Msg/Send response type. */ +export interface MsgSendResponseSDKType {} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetire { + /** holder is the credit holder address. */ + holder: string; + /** credits are the credits being retired. */ + credits: MsgRetire_RetireCredits[]; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location: string; +} +export interface MsgRetireProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireAmino { + /** holder is the credit holder address. */ + holder?: string; + /** credits are the credits being retired. */ + credits?: MsgRetire_RetireCreditsAmino[]; + /** + * location is the location of the beneficiary or buyer of the retired + * credits. It is a string of the form + * [-[ ]], with the first two + * fields conforming to ISO 3166-2, and postal-code being up to 64 + * alphanumeric characters. + */ + location?: string; +} +export interface MsgRetireAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgRetire"; + value: MsgRetireAmino; +} +/** MsgRetire is the Msg/Retire request type. */ +export interface MsgRetireSDKType { + holder: string; + credits: MsgRetire_RetireCreditsSDKType[]; + location: string; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being retired. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount: string; +} +export interface MsgRetire_RetireCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits"; + value: Uint8Array; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being retired. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount?: string; +} +export interface MsgRetire_RetireCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.RetireCredits"; + value: MsgRetire_RetireCreditsAmino; +} +/** RetireCredits specifies a batch and the number of credits being retired. */ +export interface MsgRetire_RetireCreditsSDKType { + batch_denom: string; + amount: string; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponse {} +export interface MsgRetireResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; + value: Uint8Array; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseAmino {} +export interface MsgRetireResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; + value: MsgRetireResponseAmino; +} +/** MsgRetire is the Msg/Retire response type. */ +export interface MsgRetireResponseSDKType {} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancel { + /** holder is the credit holder address. */ + holder: string; + /** credits are the credits being cancelled. */ + credits: MsgCancel_CancelCredits[]; +} +export interface MsgCancelProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel"; + value: Uint8Array; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelAmino { + /** holder is the credit holder address. */ + holder?: string; + /** credits are the credits being cancelled. */ + credits?: MsgCancel_CancelCreditsAmino[]; +} +export interface MsgCancelAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCancel"; + value: MsgCancelAmino; +} +/** MsgCancel is the Msg/Cancel request type. */ +export interface MsgCancelSDKType { + holder: string; + credits: MsgCancel_CancelCreditsSDKType[]; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCredits { + /** batch_denom is the unique ID of the credit batch. */ + batchDenom: string; + /** + * amount is the number of credits being cancelled. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount: string; +} +export interface MsgCancel_CancelCreditsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits"; + value: Uint8Array; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCreditsAmino { + /** batch_denom is the unique ID of the credit batch. */ + batch_denom?: string; + /** + * amount is the number of credits being cancelled. + * Decimal values are acceptable within the precision returned by + * Query/Precision. + */ + amount?: string; +} +export interface MsgCancel_CancelCreditsAminoMsg { + type: "/regen.ecocredit.v1alpha1.CancelCredits"; + value: MsgCancel_CancelCreditsAmino; +} +/** CancelCredits specifies a batch and the number of credits being cancelled. */ +export interface MsgCancel_CancelCreditsSDKType { + batch_denom: string; + amount: string; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponse {} +export interface MsgCancelResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; + value: Uint8Array; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseAmino {} +export interface MsgCancelResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; + value: MsgCancelResponseAmino; +} +/** MsgCancelResponse is the Msg/Cancel response type. */ +export interface MsgCancelResponseSDKType {} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdmin { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** new_admin is the address of the new admin of the credit class. */ + newAdmin: string; +} +export interface MsgUpdateClassAdminProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; + value: Uint8Array; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** new_admin is the address of the new admin of the credit class. */ + new_admin?: string; +} +export interface MsgUpdateClassAdminAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; + value: MsgUpdateClassAdminAmino; +} +/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ +export interface MsgUpdateClassAdminSDKType { + admin: string; + class_id: string; + new_admin: string; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponse {} +export interface MsgUpdateClassAdminResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; + value: Uint8Array; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseAmino {} +export interface MsgUpdateClassAdminResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; + value: MsgUpdateClassAdminResponseAmino; +} +/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ +export interface MsgUpdateClassAdminResponseSDKType {} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuers { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** issuers are the updated account addresses of the approved issuers. */ + issuers: string[]; +} +export interface MsgUpdateClassIssuersProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; + value: Uint8Array; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** issuers are the updated account addresses of the approved issuers. */ + issuers?: string[]; +} +export interface MsgUpdateClassIssuersAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; + value: MsgUpdateClassIssuersAmino; +} +/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ +export interface MsgUpdateClassIssuersSDKType { + admin: string; + class_id: string; + issuers: string[]; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponse {} +export interface MsgUpdateClassIssuersResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; + value: Uint8Array; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseAmino {} +export interface MsgUpdateClassIssuersResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; + value: MsgUpdateClassIssuersResponseAmino; +} +/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ +export interface MsgUpdateClassIssuersResponseSDKType {} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadata { + /** admin is the address of the account that is the admin of the credit class. */ + admin: string; + /** class_id is the unique ID of the credit class. */ + classId: string; + /** + * metadata is the updated arbitrary metadata to be attached to the credit + * class. + */ + metadata: Uint8Array; +} +export interface MsgUpdateClassMetadataProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; + value: Uint8Array; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataAmino { + /** admin is the address of the account that is the admin of the credit class. */ + admin?: string; + /** class_id is the unique ID of the credit class. */ + class_id?: string; + /** + * metadata is the updated arbitrary metadata to be attached to the credit + * class. + */ + metadata?: string; +} +export interface MsgUpdateClassMetadataAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; + value: MsgUpdateClassMetadataAmino; +} +/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ +export interface MsgUpdateClassMetadataSDKType { + admin: string; + class_id: string; + metadata: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponse {} +export interface MsgUpdateClassMetadataResponseProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; + value: Uint8Array; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseAmino {} +export interface MsgUpdateClassMetadataResponseAminoMsg { + type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; + value: MsgUpdateClassMetadataResponseAmino; +} +/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ +export interface MsgUpdateClassMetadataResponseSDKType {} +function createBaseMsgCreateClass(): MsgCreateClass { + return { + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditTypeName: "" + }; +} +export const MsgCreateClass = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + encode(message: MsgCreateClass, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(18).string(v!); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + if (message.creditTypeName !== "") { + writer.uint32(34).string(message.creditTypeName); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClass(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.issuers.push(reader.string()); + break; + case 3: + message.metadata = reader.bytes(); + break; + case 4: + message.creditTypeName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateClass { + const message = createBaseMsgCreateClass(); + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditTypeName = object.creditTypeName ?? ""; + return message; + }, + fromAmino(object: MsgCreateClassAmino): MsgCreateClass { + const message = createBaseMsgCreateClass(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.credit_type_name !== undefined && object.credit_type_name !== null) { + message.creditTypeName = object.credit_type_name; + } + return message; + }, + toAmino(message: MsgCreateClass): MsgCreateClassAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; + return obj; + }, + fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass { + return MsgCreateClass.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass { + return MsgCreateClass.decode(message.value); + }, + toProto(message: MsgCreateClass): Uint8Array { + return MsgCreateClass.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", + value: MsgCreateClass.encode(message).finish() + }; + } +}; +function createBaseMsgCreateClassResponse(): MsgCreateClassResponse { + return { + classId: "" + }; +} +export const MsgCreateClassResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + encode(message: MsgCreateClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateClassResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateClassResponse { + const message = createBaseMsgCreateClassResponse(); + message.classId = object.classId ?? ""; + return message; + }, + fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse { + const message = createBaseMsgCreateClassResponse(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + return message; + }, + toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + return obj; + }, + fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse { + return MsgCreateClassResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse { + return MsgCreateClassResponse.decode(message.value); + }, + toProto(message: MsgCreateClassResponse): Uint8Array { + return MsgCreateClassResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", + value: MsgCreateClassResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch(): MsgCreateBatch { + return { + issuer: "", + classId: "", + issuance: [], + metadata: new Uint8Array(), + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +export const MsgCreateBatch = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + encode(message: MsgCreateBatch, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.issuer !== "") { + writer.uint32(10).string(message.issuer); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuance) { + MsgCreateBatch_BatchIssuance.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(58).string(message.projectLocation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuance.push(MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateBatch { + const message = createBaseMsgCreateBatch(); + message.issuer = object.issuer ?? ""; + message.classId = object.classId ?? ""; + message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch { + const message = createBaseMsgCreateBatch(); + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message: MsgCreateBatch): MsgCreateBatchAmino { + const obj: any = {}; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuance) { + obj.issuance = message.issuance.map(e => e ? MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); + } else { + obj.issuance = message.issuance; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch { + return MsgCreateBatch.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch { + return MsgCreateBatch.decode(message.value); + }, + toProto(message: MsgCreateBatch): Uint8Array { + return MsgCreateBatch.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", + value: MsgCreateBatch.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatch_BatchIssuance(): MsgCreateBatch_BatchIssuance { + return { + recipient: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +export const MsgCreateBatch_BatchIssuance = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + encode(message: MsgCreateBatch_BatchIssuance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.recipient !== "") { + writer.uint32(10).string(message.recipient); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatch_BatchIssuance(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.recipient = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateBatch_BatchIssuance { + const message = createBaseMsgCreateBatch_BatchIssuance(); + message.recipient = object.recipient ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object: MsgCreateBatch_BatchIssuanceAmino): MsgCreateBatch_BatchIssuance { + const message = createBaseMsgCreateBatch_BatchIssuance(); + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceAmino { + const obj: any = {}; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object: MsgCreateBatch_BatchIssuanceAminoMsg): MsgCreateBatch_BatchIssuance { + return MsgCreateBatch_BatchIssuance.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateBatch_BatchIssuanceProtoMsg): MsgCreateBatch_BatchIssuance { + return MsgCreateBatch_BatchIssuance.decode(message.value); + }, + toProto(message: MsgCreateBatch_BatchIssuance): Uint8Array { + return MsgCreateBatch_BatchIssuance.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", + value: MsgCreateBatch_BatchIssuance.encode(message).finish() + }; + } +}; +function createBaseMsgCreateBatchResponse(): MsgCreateBatchResponse { + return { + batchDenom: "" + }; +} +export const MsgCreateBatchResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + encode(message: MsgCreateBatchResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCreateBatchResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCreateBatchResponse { + const message = createBaseMsgCreateBatchResponse(); + message.batchDenom = object.batchDenom ?? ""; + return message; + }, + fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse { + const message = createBaseMsgCreateBatchResponse(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + return message; + }, + toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + return obj; + }, + fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse { + return MsgCreateBatchResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse { + return MsgCreateBatchResponse.decode(message.value); + }, + toProto(message: MsgCreateBatchResponse): Uint8Array { + return MsgCreateBatchResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", + value: MsgCreateBatchResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSend(): MsgSend { + return { + sender: "", + recipient: "", + credits: [] + }; +} +export const MsgSend = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sender !== "") { + writer.uint32(10).string(message.sender); + } + if (message.recipient !== "") { + writer.uint32(18).string(message.recipient); + } + for (const v of message.credits) { + MsgSend_SendCredits.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.recipient = reader.string(); + break; + case 3: + message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSend { + const message = createBaseMsgSend(); + message.sender = object.sender ?? ""; + message.recipient = object.recipient ?? ""; + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgSendAmino): MsgSend { + const message = createBaseMsgSend(); + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.recipient !== undefined && object.recipient !== null) { + message.recipient = object.recipient; + } + message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgSend): MsgSendAmino { + const obj: any = {}; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgSendAminoMsg): MsgSend { + return MsgSend.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSendProtoMsg): MsgSend { + return MsgSend.decode(message.value); + }, + toProto(message: MsgSend): Uint8Array { + return MsgSend.encode(message).finish(); + }, + toProtoMsg(message: MsgSend): MsgSendProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", + value: MsgSend.encode(message).finish() + }; + } +}; +function createBaseMsgSend_SendCredits(): MsgSend_SendCredits { + return { + batchDenom: "", + tradableAmount: "", + retiredAmount: "", + retirementLocation: "" + }; +} +export const MsgSend_SendCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + encode(message: MsgSend_SendCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.tradableAmount !== "") { + writer.uint32(18).string(message.tradableAmount); + } + if (message.retiredAmount !== "") { + writer.uint32(26).string(message.retiredAmount); + } + if (message.retirementLocation !== "") { + writer.uint32(34).string(message.retirementLocation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSend_SendCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.tradableAmount = reader.string(); + break; + case 3: + message.retiredAmount = reader.string(); + break; + case 4: + message.retirementLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSend_SendCredits { + const message = createBaseMsgSend_SendCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.tradableAmount = object.tradableAmount ?? ""; + message.retiredAmount = object.retiredAmount ?? ""; + message.retirementLocation = object.retirementLocation ?? ""; + return message; + }, + fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits { + const message = createBaseMsgSend_SendCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.tradable_amount !== undefined && object.tradable_amount !== null) { + message.tradableAmount = object.tradable_amount; + } + if (object.retired_amount !== undefined && object.retired_amount !== null) { + message.retiredAmount = object.retired_amount; + } + if (object.retirement_location !== undefined && object.retirement_location !== null) { + message.retirementLocation = object.retirement_location; + } + return message; + }, + toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; + obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; + obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; + return obj; + }, + fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits { + return MsgSend_SendCredits.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits { + return MsgSend_SendCredits.decode(message.value); + }, + toProto(message: MsgSend_SendCredits): Uint8Array { + return MsgSend_SendCredits.encode(message).finish(); + }, + toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", + value: MsgSend_SendCredits.encode(message).finish() + }; + } +}; +function createBaseMsgSendResponse(): MsgSendResponse { + return {}; +} +export const MsgSendResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSendResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + fromAmino(_: MsgSendResponseAmino): MsgSendResponse { + const message = createBaseMsgSendResponse(); + return message; + }, + toAmino(_: MsgSendResponse): MsgSendResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse { + return MsgSendResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse { + return MsgSendResponse.decode(message.value); + }, + toProto(message: MsgSendResponse): Uint8Array { + return MsgSendResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", + value: MsgSendResponse.encode(message).finish() + }; + } +}; +function createBaseMsgRetire(): MsgRetire { + return { + holder: "", + credits: [], + location: "" + }; +} +export const MsgRetire = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + encode(message: MsgRetire, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + MsgRetire_RetireCredits.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.location !== "") { + writer.uint32(26).string(message.location); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(MsgRetire_RetireCredits.decode(reader, reader.uint32())); + break; + case 3: + message.location = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRetire { + const message = createBaseMsgRetire(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromPartial(e)) || []; + message.location = object.location ?? ""; + return message; + }, + fromAmino(object: MsgRetireAmino): MsgRetire { + const message = createBaseMsgRetire(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromAmino(e)) || []; + if (object.location !== undefined && object.location !== null) { + message.location = object.location; + } + return message; + }, + toAmino(message: MsgRetire): MsgRetireAmino { + const obj: any = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgRetire_RetireCredits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + obj.location = message.location === "" ? undefined : message.location; + return obj; + }, + fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire { + return MsgRetire.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire { + return MsgRetire.decode(message.value); + }, + toProto(message: MsgRetire): Uint8Array { + return MsgRetire.encode(message).finish(); + }, + toProtoMsg(message: MsgRetire): MsgRetireProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", + value: MsgRetire.encode(message).finish() + }; + } +}; +function createBaseMsgRetire_RetireCredits(): MsgRetire_RetireCredits { + return { + batchDenom: "", + amount: "" + }; +} +export const MsgRetire_RetireCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + encode(message: MsgRetire_RetireCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetire_RetireCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRetire_RetireCredits { + const message = createBaseMsgRetire_RetireCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: MsgRetire_RetireCreditsAmino): MsgRetire_RetireCredits { + const message = createBaseMsgRetire_RetireCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: MsgRetire_RetireCreditsAminoMsg): MsgRetire_RetireCredits { + return MsgRetire_RetireCredits.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRetire_RetireCreditsProtoMsg): MsgRetire_RetireCredits { + return MsgRetire_RetireCredits.decode(message.value); + }, + toProto(message: MsgRetire_RetireCredits): Uint8Array { + return MsgRetire_RetireCredits.encode(message).finish(); + }, + toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", + value: MsgRetire_RetireCredits.encode(message).finish() + }; + } +}; +function createBaseMsgRetireResponse(): MsgRetireResponse { + return {}; +} +export const MsgRetireResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + encode(_: MsgRetireResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRetireResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRetireResponse { + const message = createBaseMsgRetireResponse(); + return message; + }, + fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse { + const message = createBaseMsgRetireResponse(); + return message; + }, + toAmino(_: MsgRetireResponse): MsgRetireResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse { + return MsgRetireResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse { + return MsgRetireResponse.decode(message.value); + }, + toProto(message: MsgRetireResponse): Uint8Array { + return MsgRetireResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", + value: MsgRetireResponse.encode(message).finish() + }; + } +}; +function createBaseMsgCancel(): MsgCancel { + return { + holder: "", + credits: [] + }; +} +export const MsgCancel = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + encode(message: MsgCancel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.holder !== "") { + writer.uint32(10).string(message.holder); + } + for (const v of message.credits) { + MsgCancel_CancelCredits.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.holder = reader.string(); + break; + case 2: + message.credits.push(MsgCancel_CancelCredits.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancel { + const message = createBaseMsgCancel(); + message.holder = object.holder ?? ""; + message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromPartial(e)) || []; + return message; + }, + fromAmino(object: MsgCancelAmino): MsgCancel { + const message = createBaseMsgCancel(); + if (object.holder !== undefined && object.holder !== null) { + message.holder = object.holder; + } + message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromAmino(e)) || []; + return message; + }, + toAmino(message: MsgCancel): MsgCancelAmino { + const obj: any = {}; + obj.holder = message.holder === "" ? undefined : message.holder; + if (message.credits) { + obj.credits = message.credits.map(e => e ? MsgCancel_CancelCredits.toAmino(e) : undefined); + } else { + obj.credits = message.credits; + } + return obj; + }, + fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel { + return MsgCancel.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel { + return MsgCancel.decode(message.value); + }, + toProto(message: MsgCancel): Uint8Array { + return MsgCancel.encode(message).finish(); + }, + toProtoMsg(message: MsgCancel): MsgCancelProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", + value: MsgCancel.encode(message).finish() + }; + } +}; +function createBaseMsgCancel_CancelCredits(): MsgCancel_CancelCredits { + return { + batchDenom: "", + amount: "" + }; +} +export const MsgCancel_CancelCredits = { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + encode(message: MsgCancel_CancelCredits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.batchDenom !== "") { + writer.uint32(10).string(message.batchDenom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancel_CancelCredits(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchDenom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgCancel_CancelCredits { + const message = createBaseMsgCancel_CancelCredits(); + message.batchDenom = object.batchDenom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, + fromAmino(object: MsgCancel_CancelCreditsAmino): MsgCancel_CancelCredits { + const message = createBaseMsgCancel_CancelCredits(); + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.amount !== undefined && object.amount !== null) { + message.amount = object.amount; + } + return message; + }, + toAmino(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsAmino { + const obj: any = {}; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.amount = message.amount === "" ? undefined : message.amount; + return obj; + }, + fromAminoMsg(object: MsgCancel_CancelCreditsAminoMsg): MsgCancel_CancelCredits { + return MsgCancel_CancelCredits.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCancel_CancelCreditsProtoMsg): MsgCancel_CancelCredits { + return MsgCancel_CancelCredits.decode(message.value); + }, + toProto(message: MsgCancel_CancelCredits): Uint8Array { + return MsgCancel_CancelCredits.encode(message).finish(); + }, + toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", + value: MsgCancel_CancelCredits.encode(message).finish() + }; + } +}; +function createBaseMsgCancelResponse(): MsgCancelResponse { + return {}; +} +export const MsgCancelResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + encode(_: MsgCancelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgCancelResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgCancelResponse { + const message = createBaseMsgCancelResponse(); + return message; + }, + fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse { + const message = createBaseMsgCancelResponse(); + return message; + }, + toAmino(_: MsgCancelResponse): MsgCancelResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse { + return MsgCancelResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse { + return MsgCancelResponse.decode(message.value); + }, + toProto(message: MsgCancelResponse): Uint8Array { + return MsgCancelResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", + value: MsgCancelResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdmin(): MsgUpdateClassAdmin { + return { + admin: "", + classId: "", + newAdmin: "" + }; +} +export const MsgUpdateClassAdmin = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + encode(message: MsgUpdateClassAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.newAdmin !== "") { + writer.uint32(26).string(message.newAdmin); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdmin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.newAdmin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassAdmin { + const message = createBaseMsgUpdateClassAdmin(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.newAdmin = object.newAdmin ?? ""; + return message; + }, + fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin { + const message = createBaseMsgUpdateClassAdmin(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.new_admin !== undefined && object.new_admin !== null) { + message.newAdmin = object.new_admin; + } + return message; + }, + toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin { + return MsgUpdateClassAdmin.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin { + return MsgUpdateClassAdmin.decode(message.value); + }, + toProto(message: MsgUpdateClassAdmin): Uint8Array { + return MsgUpdateClassAdmin.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", + value: MsgUpdateClassAdmin.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassAdminResponse(): MsgUpdateClassAdminResponse { + return {}; +} +export const MsgUpdateClassAdminResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + encode(_: MsgUpdateClassAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassAdminResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassAdminResponse { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse { + const message = createBaseMsgUpdateClassAdminResponse(); + return message; + }, + toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse { + return MsgUpdateClassAdminResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse { + return MsgUpdateClassAdminResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassAdminResponse): Uint8Array { + return MsgUpdateClassAdminResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", + value: MsgUpdateClassAdminResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuers(): MsgUpdateClassIssuers { + return { + admin: "", + classId: "", + issuers: [] + }; +} +export const MsgUpdateClassIssuers = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + encode(message: MsgUpdateClassIssuers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + for (const v of message.issuers) { + writer.uint32(26).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassIssuers { + const message = createBaseMsgUpdateClassIssuers(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers { + const message = createBaseMsgUpdateClassIssuers(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + message.issuers = object.issuers?.map(e => e) || []; + return message; + }, + toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } else { + obj.issuers = message.issuers; + } + return obj; + }, + fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers { + return MsgUpdateClassIssuers.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers { + return MsgUpdateClassIssuers.decode(message.value); + }, + toProto(message: MsgUpdateClassIssuers): Uint8Array { + return MsgUpdateClassIssuers.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", + value: MsgUpdateClassIssuers.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassIssuersResponse(): MsgUpdateClassIssuersResponse { + return {}; +} +export const MsgUpdateClassIssuersResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + encode(_: MsgUpdateClassIssuersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassIssuersResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassIssuersResponse { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse { + const message = createBaseMsgUpdateClassIssuersResponse(); + return message; + }, + toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse { + return MsgUpdateClassIssuersResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse { + return MsgUpdateClassIssuersResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassIssuersResponse): Uint8Array { + return MsgUpdateClassIssuersResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", + value: MsgUpdateClassIssuersResponse.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadata(): MsgUpdateClassMetadata { + return { + admin: "", + classId: "", + metadata: new Uint8Array() + }; +} +export const MsgUpdateClassMetadata = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + encode(message: MsgUpdateClassMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.admin !== "") { + writer.uint32(10).string(message.admin); + } + if (message.classId !== "") { + writer.uint32(18).string(message.classId); + } + if (message.metadata.length !== 0) { + writer.uint32(26).bytes(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadata(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.admin = reader.string(); + break; + case 2: + message.classId = reader.string(); + break; + case 3: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgUpdateClassMetadata { + const message = createBaseMsgUpdateClassMetadata(); + message.admin = object.admin ?? ""; + message.classId = object.classId ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata { + const message = createBaseMsgUpdateClassMetadata(); + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + return message; + }, + toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino { + const obj: any = {}; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata { + return MsgUpdateClassMetadata.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata { + return MsgUpdateClassMetadata.decode(message.value); + }, + toProto(message: MsgUpdateClassMetadata): Uint8Array { + return MsgUpdateClassMetadata.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", + value: MsgUpdateClassMetadata.encode(message).finish() + }; + } +}; +function createBaseMsgUpdateClassMetadataResponse(): MsgUpdateClassMetadataResponse { + return {}; +} +export const MsgUpdateClassMetadataResponse = { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + encode(_: MsgUpdateClassMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateClassMetadataResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgUpdateClassMetadataResponse { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse { + const message = createBaseMsgUpdateClassMetadataResponse(); + return message; + }, + toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse { + return MsgUpdateClassMetadataResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse { + return MsgUpdateClassMetadataResponse.decode(message.value); + }, + toProto(message: MsgUpdateClassMetadataResponse): Uint8Array { + return MsgUpdateClassMetadataResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", + value: MsgUpdateClassMetadataResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/ecocredit/v1alpha1/types.ts b/packages/api/src/regen/ecocredit/v1alpha1/types.ts new file mode 100644 index 00000000..ba8b90ec --- /dev/null +++ b/packages/api/src/regen/ecocredit/v1alpha1/types.ts @@ -0,0 +1,888 @@ +//@ts-nocheck +import { Timestamp } from "../../../google/protobuf/timestamp"; +import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfo { + /** class_id is the unique ID of credit class. */ + classId: string; + /** admin is the admin of the credit class. */ + admin: string; + /** issuers are the approved issuers of the credit class. */ + issuers: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata: Uint8Array; + /** + * credit_type describes the type of credit (e.g. carbon, biodiversity), as + * well as unit and precision. + */ + creditType?: CreditType; + /** The number of batches issued in this credit class. */ + numBatches: bigint; +} +export interface ClassInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; + value: Uint8Array; +} +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfoAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** admin is the admin of the credit class. */ + admin?: string; + /** issuers are the approved issuers of the credit class. */ + issuers?: string[]; + /** metadata is any arbitrary metadata to attached to the credit class. */ + metadata?: string; + /** + * credit_type describes the type of credit (e.g. carbon, biodiversity), as + * well as unit and precision. + */ + credit_type?: CreditTypeAmino; + /** The number of batches issued in this credit class. */ + num_batches?: string; +} +export interface ClassInfoAminoMsg { + type: "/regen.ecocredit.v1alpha1.ClassInfo"; + value: ClassInfoAmino; +} +/** ClassInfo represents the high-level on-chain information for a credit class. */ +export interface ClassInfoSDKType { + class_id: string; + admin: string; + issuers: string[]; + metadata: Uint8Array; + credit_type?: CreditTypeSDKType; + num_batches: bigint; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfo { + /** class_id is the unique ID of credit class. */ + classId: string; + /** batch_denom is the unique ID of credit batch. */ + batchDenom: string; + /** issuer is the issuer of the credit batch. */ + issuer: string; + /** + * total_amount is the total number of active credits in the credit batch. + * Some of the issued credits may be cancelled and will be removed from + * total_amount and tracked in amount_cancelled. total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + totalAmount: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata: Uint8Array; + /** + * amount_cancelled is the number of credits in the batch that have been + * cancelled, effectively undoing there issuance. The sum of total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + amountCancelled: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + startDate?: Date; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + endDate?: Date; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + projectLocation: string; +} +export interface BatchInfoProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo"; + value: Uint8Array; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfoAmino { + /** class_id is the unique ID of credit class. */ + class_id?: string; + /** batch_denom is the unique ID of credit batch. */ + batch_denom?: string; + /** issuer is the issuer of the credit batch. */ + issuer?: string; + /** + * total_amount is the total number of active credits in the credit batch. + * Some of the issued credits may be cancelled and will be removed from + * total_amount and tracked in amount_cancelled. total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + total_amount?: string; + /** metadata is any arbitrary metadata attached to the credit batch. */ + metadata?: string; + /** + * amount_cancelled is the number of credits in the batch that have been + * cancelled, effectively undoing there issuance. The sum of total_amount and + * amount_cancelled will always sum to the original amount of credits that + * were issued. + */ + amount_cancelled?: string; + /** + * start_date is the beginning of the period during which this credit batch + * was quantified and verified. + */ + start_date?: string; + /** + * end_date is the end of the period during which this credit batch was + * quantified and verified. + */ + end_date?: string; + /** + * project_location is the location of the project backing the credits in this + * batch. Full documentation can be found in MsgCreateBatch.project_location. + */ + project_location?: string; +} +export interface BatchInfoAminoMsg { + type: "/regen.ecocredit.v1alpha1.BatchInfo"; + value: BatchInfoAmino; +} +/** BatchInfo represents the high-level on-chain information for a credit batch. */ +export interface BatchInfoSDKType { + class_id: string; + batch_denom: string; + issuer: string; + total_amount: string; + metadata: Uint8Array; + amount_cancelled: string; + start_date?: Date; + end_date?: Date; + project_location: string; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface Params { + /** credit_class_fee is the fixed fee charged on creation of a new credit class */ + creditClassFee: Coin[]; + /** + * allowed_class_creators is an allowlist defining the addresses with + * the required permissions to create credit classes + */ + allowedClassCreators: string[]; + /** + * allowlist_enabled is a param that enables/disables the allowlist for credit + * creation + */ + allowlistEnabled: boolean; + /** credit_types is a list of definitions for credit types */ + creditTypes: CreditType[]; + /** basket_creation_fee is the fee to create a new basket denom. */ + basketCreationFee: Coin[]; +} +export interface ParamsProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.Params"; + value: Uint8Array; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsAmino { + /** credit_class_fee is the fixed fee charged on creation of a new credit class */ + credit_class_fee?: CoinAmino[]; + /** + * allowed_class_creators is an allowlist defining the addresses with + * the required permissions to create credit classes + */ + allowed_class_creators?: string[]; + /** + * allowlist_enabled is a param that enables/disables the allowlist for credit + * creation + */ + allowlist_enabled?: boolean; + /** credit_types is a list of definitions for credit types */ + credit_types?: CreditTypeAmino[]; + /** basket_creation_fee is the fee to create a new basket denom. */ + basket_creation_fee?: CoinAmino[]; +} +export interface ParamsAminoMsg { + type: "/regen.ecocredit.v1alpha1.Params"; + value: ParamsAmino; +} +/** + * Params defines the updatable global parameters of the ecocredit module for + * use with the x/params module. + */ +export interface ParamsSDKType { + credit_class_fee: CoinSDKType[]; + allowed_class_creators: string[]; + allowlist_enabled: boolean; + credit_types: CreditTypeSDKType[]; + basket_creation_fee: CoinSDKType[]; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditType { + /** the type of credit (e.g. carbon, biodiversity, etc) */ + name: string; + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation: string; + /** the measurement unit (e.g. kg, ton, etc) */ + unit: string; + /** the decimal precision */ + precision: number; +} +export interface CreditTypeProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType"; + value: Uint8Array; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeAmino { + /** the type of credit (e.g. carbon, biodiversity, etc) */ + name?: string; + /** + * abbreviation is a 1-3 character uppercase abbreviation of the CreditType + * name, used in batch denominations within the CreditType. It must be unique. + */ + abbreviation?: string; + /** the measurement unit (e.g. kg, ton, etc) */ + unit?: string; + /** the decimal precision */ + precision?: number; +} +export interface CreditTypeAminoMsg { + type: "/regen.ecocredit.v1alpha1.CreditType"; + value: CreditTypeAmino; +} +/** + * CreditType defines the measurement unit/precision of a certain credit type + * (e.g. carbon, biodiversity...) + */ +export interface CreditTypeSDKType { + name: string; + abbreviation: string; + unit: string; + precision: number; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeq { + /** The credit type abbreviation */ + abbreviation: string; + /** The sequence number of classes of the credit type */ + seqNumber: bigint; +} +export interface CreditTypeSeqProtoMsg { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; + value: Uint8Array; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeqAmino { + /** The credit type abbreviation */ + abbreviation?: string; + /** The sequence number of classes of the credit type */ + seq_number?: string; +} +export interface CreditTypeSeqAminoMsg { + type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; + value: CreditTypeSeqAmino; +} +/** + * CreditTypeSeq associates a sequence number with a credit type abbreviation. + * This represents the number of credit classes created with that credit type. + */ +export interface CreditTypeSeqSDKType { + abbreviation: string; + seq_number: bigint; +} +function createBaseClassInfo(): ClassInfo { + return { + classId: "", + admin: "", + issuers: [], + metadata: new Uint8Array(), + creditType: undefined, + numBatches: BigInt(0) + }; +} +export const ClassInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + encode(message: ClassInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.admin !== "") { + writer.uint32(18).string(message.admin); + } + for (const v of message.issuers) { + writer.uint32(26).string(v!); + } + if (message.metadata.length !== 0) { + writer.uint32(34).bytes(message.metadata); + } + if (message.creditType !== undefined) { + CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); + } + if (message.numBatches !== BigInt(0)) { + writer.uint32(48).uint64(message.numBatches); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClassInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.admin = reader.string(); + break; + case 3: + message.issuers.push(reader.string()); + break; + case 4: + message.metadata = reader.bytes(); + break; + case 5: + message.creditType = CreditType.decode(reader, reader.uint32()); + break; + case 6: + message.numBatches = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ClassInfo { + const message = createBaseClassInfo(); + message.classId = object.classId ?? ""; + message.admin = object.admin ?? ""; + message.issuers = object.issuers?.map(e => e) || []; + message.metadata = object.metadata ?? new Uint8Array(); + message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; + message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ClassInfoAmino): ClassInfo { + const message = createBaseClassInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.admin !== undefined && object.admin !== null) { + message.admin = object.admin; + } + message.issuers = object.issuers?.map(e => e) || []; + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.credit_type !== undefined && object.credit_type !== null) { + message.creditType = CreditType.fromAmino(object.credit_type); + } + if (object.num_batches !== undefined && object.num_batches !== null) { + message.numBatches = BigInt(object.num_batches); + } + return message; + }, + toAmino(message: ClassInfo): ClassInfoAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.admin = message.admin === "" ? undefined : message.admin; + if (message.issuers) { + obj.issuers = message.issuers.map(e => e); + } else { + obj.issuers = message.issuers; + } + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; + obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo { + return ClassInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo { + return ClassInfo.decode(message.value); + }, + toProto(message: ClassInfo): Uint8Array { + return ClassInfo.encode(message).finish(); + }, + toProtoMsg(message: ClassInfo): ClassInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", + value: ClassInfo.encode(message).finish() + }; + } +}; +function createBaseBatchInfo(): BatchInfo { + return { + classId: "", + batchDenom: "", + issuer: "", + totalAmount: "", + metadata: new Uint8Array(), + amountCancelled: "", + startDate: undefined, + endDate: undefined, + projectLocation: "" + }; +} +export const BatchInfo = { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + encode(message: BatchInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.classId !== "") { + writer.uint32(10).string(message.classId); + } + if (message.batchDenom !== "") { + writer.uint32(18).string(message.batchDenom); + } + if (message.issuer !== "") { + writer.uint32(26).string(message.issuer); + } + if (message.totalAmount !== "") { + writer.uint32(34).string(message.totalAmount); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + if (message.amountCancelled !== "") { + writer.uint32(50).string(message.amountCancelled); + } + if (message.startDate !== undefined) { + Timestamp.encode(toTimestamp(message.startDate), writer.uint32(58).fork()).ldelim(); + } + if (message.endDate !== undefined) { + Timestamp.encode(toTimestamp(message.endDate), writer.uint32(66).fork()).ldelim(); + } + if (message.projectLocation !== "") { + writer.uint32(74).string(message.projectLocation); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBatchInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.classId = reader.string(); + break; + case 2: + message.batchDenom = reader.string(); + break; + case 3: + message.issuer = reader.string(); + break; + case 4: + message.totalAmount = reader.string(); + break; + case 5: + message.metadata = reader.bytes(); + break; + case 6: + message.amountCancelled = reader.string(); + break; + case 7: + message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 8: + message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 9: + message.projectLocation = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BatchInfo { + const message = createBaseBatchInfo(); + message.classId = object.classId ?? ""; + message.batchDenom = object.batchDenom ?? ""; + message.issuer = object.issuer ?? ""; + message.totalAmount = object.totalAmount ?? ""; + message.metadata = object.metadata ?? new Uint8Array(); + message.amountCancelled = object.amountCancelled ?? ""; + message.startDate = object.startDate ?? undefined; + message.endDate = object.endDate ?? undefined; + message.projectLocation = object.projectLocation ?? ""; + return message; + }, + fromAmino(object: BatchInfoAmino): BatchInfo { + const message = createBaseBatchInfo(); + if (object.class_id !== undefined && object.class_id !== null) { + message.classId = object.class_id; + } + if (object.batch_denom !== undefined && object.batch_denom !== null) { + message.batchDenom = object.batch_denom; + } + if (object.issuer !== undefined && object.issuer !== null) { + message.issuer = object.issuer; + } + if (object.total_amount !== undefined && object.total_amount !== null) { + message.totalAmount = object.total_amount; + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { + message.amountCancelled = object.amount_cancelled; + } + if (object.start_date !== undefined && object.start_date !== null) { + message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); + } + if (object.end_date !== undefined && object.end_date !== null) { + message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); + } + if (object.project_location !== undefined && object.project_location !== null) { + message.projectLocation = object.project_location; + } + return message; + }, + toAmino(message: BatchInfo): BatchInfoAmino { + const obj: any = {}; + obj.class_id = message.classId === "" ? undefined : message.classId; + obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; + obj.issuer = message.issuer === "" ? undefined : message.issuer; + obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; + obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; + obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; + obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; + return obj; + }, + fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo { + return BatchInfo.fromAmino(object.value); + }, + fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo { + return BatchInfo.decode(message.value); + }, + toProto(message: BatchInfo): Uint8Array { + return BatchInfo.encode(message).finish(); + }, + toProtoMsg(message: BatchInfo): BatchInfoProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", + value: BatchInfo.encode(message).finish() + }; + } +}; +function createBaseParams(): Params { + return { + creditClassFee: [], + allowedClassCreators: [], + allowlistEnabled: false, + creditTypes: [], + basketCreationFee: [] + }; +} +export const Params = { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.creditClassFee) { + Coin.encode(v!, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.allowedClassCreators) { + writer.uint32(18).string(v!); + } + if (message.allowlistEnabled === true) { + writer.uint32(24).bool(message.allowlistEnabled); + } + for (const v of message.creditTypes) { + CreditType.encode(v!, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.basketCreationFee) { + Coin.encode(v!, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Params { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.creditClassFee.push(Coin.decode(reader, reader.uint32())); + break; + case 2: + message.allowedClassCreators.push(reader.string()); + break; + case 3: + message.allowlistEnabled = reader.bool(); + break; + case 4: + message.creditTypes.push(CreditType.decode(reader, reader.uint32())); + break; + case 5: + message.basketCreationFee.push(Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Params { + const message = createBaseParams(); + message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; + message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; + message.allowlistEnabled = object.allowlistEnabled ?? false; + message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; + message.basketCreationFee = object.basketCreationFee?.map(e => Coin.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ParamsAmino): Params { + const message = createBaseParams(); + message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; + message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; + if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { + message.allowlistEnabled = object.allowlist_enabled; + } + message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; + message.basketCreationFee = object.basket_creation_fee?.map(e => Coin.fromAmino(e)) || []; + return message; + }, + toAmino(message: Params): ParamsAmino { + const obj: any = {}; + if (message.creditClassFee) { + obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.credit_class_fee = message.creditClassFee; + } + if (message.allowedClassCreators) { + obj.allowed_class_creators = message.allowedClassCreators.map(e => e); + } else { + obj.allowed_class_creators = message.allowedClassCreators; + } + obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; + if (message.creditTypes) { + obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); + } else { + obj.credit_types = message.creditTypes; + } + if (message.basketCreationFee) { + obj.basket_creation_fee = message.basketCreationFee.map(e => e ? Coin.toAmino(e) : undefined); + } else { + obj.basket_creation_fee = message.basketCreationFee; + } + return obj; + }, + fromAminoMsg(object: ParamsAminoMsg): Params { + return Params.fromAmino(object.value); + }, + fromProtoMsg(message: ParamsProtoMsg): Params { + return Params.decode(message.value); + }, + toProto(message: Params): Uint8Array { + return Params.encode(message).finish(); + }, + toProtoMsg(message: Params): ParamsProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.Params", + value: Params.encode(message).finish() + }; + } +}; +function createBaseCreditType(): CreditType { + return { + name: "", + abbreviation: "", + unit: "", + precision: 0 + }; +} +export const CreditType = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + encode(message: CreditType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.abbreviation !== "") { + writer.uint32(18).string(message.abbreviation); + } + if (message.unit !== "") { + writer.uint32(26).string(message.unit); + } + if (message.precision !== 0) { + writer.uint32(32).uint32(message.precision); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CreditType { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditType(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.abbreviation = reader.string(); + break; + case 3: + message.unit = reader.string(); + break; + case 4: + message.precision = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CreditType { + const message = createBaseCreditType(); + message.name = object.name ?? ""; + message.abbreviation = object.abbreviation ?? ""; + message.unit = object.unit ?? ""; + message.precision = object.precision ?? 0; + return message; + }, + fromAmino(object: CreditTypeAmino): CreditType { + const message = createBaseCreditType(); + if (object.name !== undefined && object.name !== null) { + message.name = object.name; + } + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.unit !== undefined && object.unit !== null) { + message.unit = object.unit; + } + if (object.precision !== undefined && object.precision !== null) { + message.precision = object.precision; + } + return message; + }, + toAmino(message: CreditType): CreditTypeAmino { + const obj: any = {}; + obj.name = message.name === "" ? undefined : message.name; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.unit = message.unit === "" ? undefined : message.unit; + obj.precision = message.precision === 0 ? undefined : message.precision; + return obj; + }, + fromAminoMsg(object: CreditTypeAminoMsg): CreditType { + return CreditType.fromAmino(object.value); + }, + fromProtoMsg(message: CreditTypeProtoMsg): CreditType { + return CreditType.decode(message.value); + }, + toProto(message: CreditType): Uint8Array { + return CreditType.encode(message).finish(); + }, + toProtoMsg(message: CreditType): CreditTypeProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditType", + value: CreditType.encode(message).finish() + }; + } +}; +function createBaseCreditTypeSeq(): CreditTypeSeq { + return { + abbreviation: "", + seqNumber: BigInt(0) + }; +} +export const CreditTypeSeq = { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + encode(message: CreditTypeSeq, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.abbreviation !== "") { + writer.uint32(10).string(message.abbreviation); + } + if (message.seqNumber !== BigInt(0)) { + writer.uint32(16).uint64(message.seqNumber); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditTypeSeq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.abbreviation = reader.string(); + break; + case 2: + message.seqNumber = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CreditTypeSeq { + const message = createBaseCreditTypeSeq(); + message.abbreviation = object.abbreviation ?? ""; + message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); + return message; + }, + fromAmino(object: CreditTypeSeqAmino): CreditTypeSeq { + const message = createBaseCreditTypeSeq(); + if (object.abbreviation !== undefined && object.abbreviation !== null) { + message.abbreviation = object.abbreviation; + } + if (object.seq_number !== undefined && object.seq_number !== null) { + message.seqNumber = BigInt(object.seq_number); + } + return message; + }, + toAmino(message: CreditTypeSeq): CreditTypeSeqAmino { + const obj: any = {}; + obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; + obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; + return obj; + }, + fromAminoMsg(object: CreditTypeSeqAminoMsg): CreditTypeSeq { + return CreditTypeSeq.fromAmino(object.value); + }, + fromProtoMsg(message: CreditTypeSeqProtoMsg): CreditTypeSeq { + return CreditTypeSeq.decode(message.value); + }, + toProto(message: CreditTypeSeq): Uint8Array { + return CreditTypeSeq.encode(message).finish(); + }, + toProtoMsg(message: CreditTypeSeq): CreditTypeSeqProtoMsg { + return { + typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", + value: CreditTypeSeq.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/query.lcd.ts b/packages/api/src/regen/intertx/v1/query.lcd.ts new file mode 100644 index 00000000..a559e305 --- /dev/null +++ b/packages/api/src/regen/intertx/v1/query.lcd.ts @@ -0,0 +1,20 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; +export class LCDQueryClient { + req: LCDClient; + constructor({ + requestClient + }: { + requestClient: LCDClient; + }) { + this.req = requestClient; + this.interchainAccount = this.interchainAccount.bind(this); + } + /* QueryInterchainAccount returns the interchain account for given owner + address on a given connection pair */ + async interchainAccount(params: QueryInterchainAccountRequest): Promise { + const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; + return await this.req.get(endpoint); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/query.rpc.Query.ts b/packages/api/src/regen/intertx/v1/query.rpc.Query.ts new file mode 100644 index 00000000..064bdd22 --- /dev/null +++ b/packages/api/src/regen/intertx/v1/query.rpc.Query.ts @@ -0,0 +1,34 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * QueryInterchainAccount returns the interchain account for given owner + * address on a given connection pair + */ + interchainAccount(request: QueryInterchainAccountRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.interchainAccount = this.interchainAccount.bind(this); + } + interchainAccount(request: QueryInterchainAccountRequest): Promise { + const data = QueryInterchainAccountRequest.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); + return promise.then(data => QueryInterchainAccountResponse.decode(new BinaryReader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + interchainAccount(request: QueryInterchainAccountRequest): Promise { + return queryService.interchainAccount(request); + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/query.ts b/packages/api/src/regen/intertx/v1/query.ts new file mode 100644 index 00000000..9e57096b --- /dev/null +++ b/packages/api/src/regen/intertx/v1/query.ts @@ -0,0 +1,207 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequest { + /** owner is the address of the account that owns the ICA. */ + owner: string; + /** connection_id is the connection the ICA claimed. */ + connectionId: string; +} +export interface QueryInterchainAccountRequestProtoMsg { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest"; + value: Uint8Array; +} +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequestAmino { + /** owner is the address of the account that owns the ICA. */ + owner?: string; + /** connection_id is the connection the ICA claimed. */ + connection_id?: string; +} +export interface QueryInterchainAccountRequestAminoMsg { + type: "/regen.intertx.v1.QueryInterchainAccountRequest"; + value: QueryInterchainAccountRequestAmino; +} +/** + * QueryInterchainAccountRequest is the request type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountRequestSDKType { + owner: string; + connection_id: string; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponse { + /** interchain_account_address is the address of the ICA. */ + interchainAccountAddress: string; +} +export interface QueryInterchainAccountResponseProtoMsg { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse"; + value: Uint8Array; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponseAmino { + /** interchain_account_address is the address of the ICA. */ + interchain_account_address?: string; +} +export interface QueryInterchainAccountResponseAminoMsg { + type: "/regen.intertx.v1.QueryInterchainAccountResponse"; + value: QueryInterchainAccountResponseAmino; +} +/** + * QueryInterchainAccountResponse the response type for the + * Query/InterchainAccountAddress RPC + */ +export interface QueryInterchainAccountResponseSDKType { + interchain_account_address: string; +} +function createBaseQueryInterchainAccountRequest(): QueryInterchainAccountRequest { + return { + owner: "", + connectionId: "" + }; +} +export const QueryInterchainAccountRequest = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + encode(message: QueryInterchainAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryInterchainAccountRequest { + const message = createBaseQueryInterchainAccountRequest(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + return message; + }, + fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest { + const message = createBaseQueryInterchainAccountRequest(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + return message; + }, + toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + return obj; + }, + fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest { + return QueryInterchainAccountRequest.fromAmino(object.value); + }, + fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest { + return QueryInterchainAccountRequest.decode(message.value); + }, + toProto(message: QueryInterchainAccountRequest): Uint8Array { + return QueryInterchainAccountRequest.encode(message).finish(); + }, + toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", + value: QueryInterchainAccountRequest.encode(message).finish() + }; + } +}; +function createBaseQueryInterchainAccountResponse(): QueryInterchainAccountResponse { + return { + interchainAccountAddress: "" + }; +} +export const QueryInterchainAccountResponse = { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + encode(message: QueryInterchainAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.interchainAccountAddress !== "") { + writer.uint32(10).string(message.interchainAccountAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryInterchainAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interchainAccountAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): QueryInterchainAccountResponse { + const message = createBaseQueryInterchainAccountResponse(); + message.interchainAccountAddress = object.interchainAccountAddress ?? ""; + return message; + }, + fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse { + const message = createBaseQueryInterchainAccountResponse(); + if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { + message.interchainAccountAddress = object.interchain_account_address; + } + return message; + }, + toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino { + const obj: any = {}; + obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; + return obj; + }, + fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse { + return QueryInterchainAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse { + return QueryInterchainAccountResponse.decode(message.value); + }, + toProto(message: QueryInterchainAccountResponse): Uint8Array { + return QueryInterchainAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg { + return { + typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", + value: QueryInterchainAccountResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/tx.amino.ts b/packages/api/src/regen/intertx/v1/tx.amino.ts new file mode 100644 index 00000000..2cf4a590 --- /dev/null +++ b/packages/api/src/regen/intertx/v1/tx.amino.ts @@ -0,0 +1,14 @@ +//@ts-nocheck +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export const AminoConverter = { + "/regen.intertx.v1.MsgRegisterAccount": { + aminoType: "/regen.intertx.v1.MsgRegisterAccount", + toAmino: MsgRegisterAccount.toAmino, + fromAmino: MsgRegisterAccount.fromAmino + }, + "/regen.intertx.v1.MsgSubmitTx": { + aminoType: "/regen.intertx.v1.MsgSubmitTx", + toAmino: MsgSubmitTx.toAmino, + fromAmino: MsgSubmitTx.fromAmino + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/tx.registry.ts b/packages/api/src/regen/intertx/v1/tx.registry.ts new file mode 100644 index 00000000..54d191e3 --- /dev/null +++ b/packages/api/src/regen/intertx/v1/tx.registry.ts @@ -0,0 +1,53 @@ +//@ts-nocheck +import { GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; +export const registry: ReadonlyArray<[string, GeneratedType]> = [["/regen.intertx.v1.MsgRegisterAccount", MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", MsgSubmitTx]]; +export const load = (protoRegistry: Registry) => { + registry.forEach(([typeUrl, mod]) => { + protoRegistry.register(typeUrl, mod); + }); +}; +export const MessageComposer = { + encoded: { + registerAccount(value: MsgRegisterAccount) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.encode(value).finish() + }; + }, + submitTx(value: MsgSubmitTx) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.encode(value).finish() + }; + } + }, + withTypeUrl: { + registerAccount(value: MsgRegisterAccount) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value + }; + }, + submitTx(value: MsgSubmitTx) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value + }; + } + }, + fromPartial: { + registerAccount(value: MsgRegisterAccount) { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.fromPartial(value) + }; + }, + submitTx(value: MsgSubmitTx) { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.fromPartial(value) + }; + } + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/tx.rpc.msg.ts b/packages/api/src/regen/intertx/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..91263098 --- /dev/null +++ b/packages/api/src/regen/intertx/v1/tx.rpc.msg.ts @@ -0,0 +1,29 @@ +//@ts-nocheck +import { Rpc } from "../../../helpers"; +import { BinaryReader } from "../../../binary"; +import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; +/** Msg defines the intertx Msg service. */ +export interface Msg { + /** Register defines a rpc handler for MsgRegisterAccount */ + registerAccount(request: MsgRegisterAccount): Promise; + /** SubmitTx defines a rpc handler for MsgSubmitTx */ + submitTx(request: MsgSubmitTx): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.registerAccount = this.registerAccount.bind(this); + this.submitTx = this.submitTx.bind(this); + } + registerAccount(request: MsgRegisterAccount): Promise { + const data = MsgRegisterAccount.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); + return promise.then(data => MsgRegisterAccountResponse.decode(new BinaryReader(data))); + } + submitTx(request: MsgSubmitTx): Promise { + const data = MsgSubmitTx.encode(request).finish(); + const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); + return promise.then(data => MsgSubmitTxResponse.decode(new BinaryReader(data))); + } +} \ No newline at end of file diff --git a/packages/api/src/regen/intertx/v1/tx.ts b/packages/api/src/regen/intertx/v1/tx.ts new file mode 100644 index 00000000..0e7e1fdd --- /dev/null +++ b/packages/api/src/regen/intertx/v1/tx.ts @@ -0,0 +1,377 @@ +//@ts-nocheck +import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; +import { BinaryReader, BinaryWriter } from "../../../binary"; +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccount { + /** owner is the address of the interchain account owner. */ + owner: string; + /** connection_id is the connection id string (i.e. channel-5). */ + connectionId: string; + /** + * version is the application version string. For example, this could be an + * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested + * application version. + */ + version: string; +} +export interface MsgRegisterAccountProtoMsg { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount"; + value: Uint8Array; +} +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccountAmino { + /** owner is the address of the interchain account owner. */ + owner?: string; + /** connection_id is the connection id string (i.e. channel-5). */ + connection_id?: string; + /** + * version is the application version string. For example, this could be an + * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested + * application version. + */ + version?: string; +} +export interface MsgRegisterAccountAminoMsg { + type: "/regen.intertx.v1.MsgRegisterAccount"; + value: MsgRegisterAccountAmino; +} +/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ +export interface MsgRegisterAccountSDKType { + owner: string; + connection_id: string; + version: string; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponse {} +export interface MsgRegisterAccountResponseProtoMsg { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse"; + value: Uint8Array; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponseAmino {} +export interface MsgRegisterAccountResponseAminoMsg { + type: "/regen.intertx.v1.MsgRegisterAccountResponse"; + value: MsgRegisterAccountResponseAmino; +} +/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ +export interface MsgRegisterAccountResponseSDKType {} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTx { + /** owner is the owner address of the interchain account. */ + owner: string; + /** connection_id is the id of the connection. */ + connectionId: string; + /** msg is the bytes of the transaction msg to send. */ + msg?: Any; +} +export interface MsgSubmitTxProtoMsg { + typeUrl: "/regen.intertx.v1.MsgSubmitTx"; + value: Uint8Array; +} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTxAmino { + /** owner is the owner address of the interchain account. */ + owner?: string; + /** connection_id is the id of the connection. */ + connection_id?: string; + /** msg is the bytes of the transaction msg to send. */ + msg?: AnyAmino; +} +export interface MsgSubmitTxAminoMsg { + type: "/regen.intertx.v1.MsgSubmitTx"; + value: MsgSubmitTxAmino; +} +/** MsgSubmitTx defines the payload for Msg/SubmitTx */ +export interface MsgSubmitTxSDKType { + owner: string; + connection_id: string; + msg?: AnySDKType; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponse {} +export interface MsgSubmitTxResponseProtoMsg { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse"; + value: Uint8Array; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponseAmino {} +export interface MsgSubmitTxResponseAminoMsg { + type: "/regen.intertx.v1.MsgSubmitTxResponse"; + value: MsgSubmitTxResponseAmino; +} +/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ +export interface MsgSubmitTxResponseSDKType {} +function createBaseMsgRegisterAccount(): MsgRegisterAccount { + return { + owner: "", + connectionId: "", + version: "" + }; +} +export const MsgRegisterAccount = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + encode(message: MsgRegisterAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.version !== "") { + writer.uint32(26).string(message.version); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgRegisterAccount { + const message = createBaseMsgRegisterAccount(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.version = object.version ?? ""; + return message; + }, + fromAmino(object: MsgRegisterAccountAmino): MsgRegisterAccount { + const message = createBaseMsgRegisterAccount(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + return message; + }, + toAmino(message: MsgRegisterAccount): MsgRegisterAccountAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.version = message.version === "" ? undefined : message.version; + return obj; + }, + fromAminoMsg(object: MsgRegisterAccountAminoMsg): MsgRegisterAccount { + return MsgRegisterAccount.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRegisterAccountProtoMsg): MsgRegisterAccount { + return MsgRegisterAccount.decode(message.value); + }, + toProto(message: MsgRegisterAccount): Uint8Array { + return MsgRegisterAccount.encode(message).finish(); + }, + toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccount", + value: MsgRegisterAccount.encode(message).finish() + }; + } +}; +function createBaseMsgRegisterAccountResponse(): MsgRegisterAccountResponse { + return {}; +} +export const MsgRegisterAccountResponse = { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + encode(_: MsgRegisterAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgRegisterAccountResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgRegisterAccountResponse { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + fromAmino(_: MsgRegisterAccountResponseAmino): MsgRegisterAccountResponse { + const message = createBaseMsgRegisterAccountResponse(); + return message; + }, + toAmino(_: MsgRegisterAccountResponse): MsgRegisterAccountResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgRegisterAccountResponseAminoMsg): MsgRegisterAccountResponse { + return MsgRegisterAccountResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgRegisterAccountResponseProtoMsg): MsgRegisterAccountResponse { + return MsgRegisterAccountResponse.decode(message.value); + }, + toProto(message: MsgRegisterAccountResponse): Uint8Array { + return MsgRegisterAccountResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg { + return { + typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", + value: MsgRegisterAccountResponse.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTx(): MsgSubmitTx { + return { + owner: "", + connectionId: "", + msg: undefined + }; +} +export const MsgSubmitTx = { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + encode(message: MsgSubmitTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.owner !== "") { + writer.uint32(10).string(message.owner); + } + if (message.connectionId !== "") { + writer.uint32(18).string(message.connectionId); + } + if (message.msg !== undefined) { + Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connectionId = reader.string(); + break; + case 3: + message.msg = Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): MsgSubmitTx { + const message = createBaseMsgSubmitTx(); + message.owner = object.owner ?? ""; + message.connectionId = object.connectionId ?? ""; + message.msg = object.msg !== undefined && object.msg !== null ? Any.fromPartial(object.msg) : undefined; + return message; + }, + fromAmino(object: MsgSubmitTxAmino): MsgSubmitTx { + const message = createBaseMsgSubmitTx(); + if (object.owner !== undefined && object.owner !== null) { + message.owner = object.owner; + } + if (object.connection_id !== undefined && object.connection_id !== null) { + message.connectionId = object.connection_id; + } + if (object.msg !== undefined && object.msg !== null) { + message.msg = Any.fromAmino(object.msg); + } + return message; + }, + toAmino(message: MsgSubmitTx): MsgSubmitTxAmino { + const obj: any = {}; + obj.owner = message.owner === "" ? undefined : message.owner; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.msg = message.msg ? Any.toAmino(message.msg) : undefined; + return obj; + }, + fromAminoMsg(object: MsgSubmitTxAminoMsg): MsgSubmitTx { + return MsgSubmitTx.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSubmitTxProtoMsg): MsgSubmitTx { + return MsgSubmitTx.decode(message.value); + }, + toProto(message: MsgSubmitTx): Uint8Array { + return MsgSubmitTx.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTx", + value: MsgSubmitTx.encode(message).finish() + }; + } +}; +function createBaseMsgSubmitTxResponse(): MsgSubmitTxResponse { + return {}; +} +export const MsgSubmitTxResponse = { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + encode(_: MsgSubmitTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSubmitTxResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): MsgSubmitTxResponse { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + fromAmino(_: MsgSubmitTxResponseAmino): MsgSubmitTxResponse { + const message = createBaseMsgSubmitTxResponse(); + return message; + }, + toAmino(_: MsgSubmitTxResponse): MsgSubmitTxResponseAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: MsgSubmitTxResponseAminoMsg): MsgSubmitTxResponse { + return MsgSubmitTxResponse.fromAmino(object.value); + }, + fromProtoMsg(message: MsgSubmitTxResponseProtoMsg): MsgSubmitTxResponse { + return MsgSubmitTxResponse.decode(message.value); + }, + toProto(message: MsgSubmitTxResponse): Uint8Array { + return MsgSubmitTxResponse.encode(message).finish(); + }, + toProtoMsg(message: MsgSubmitTxResponse): MsgSubmitTxResponseProtoMsg { + return { + typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", + value: MsgSubmitTxResponse.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/regen/lcd.ts b/packages/api/src/regen/lcd.ts new file mode 100644 index 00000000..08077669 --- /dev/null +++ b/packages/api/src/regen/lcd.ts @@ -0,0 +1,115 @@ +//@ts-nocheck +import { LCDClient } from "@cosmology/lcd"; +export const createLCDClient = async ({ + restEndpoint +}: { + restEndpoint: string; +}) => { + const requestClient = new LCDClient({ + restEndpoint + }); + return { + cosmos: { + auth: { + v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + base: { + node: { + v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + group: { + v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + mint: { + v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + params: { + v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + tx: { + v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ + requestClient + }) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + }, + regen: { + data: { + v1: new (await import("./data/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + ecocredit: { + basket: { + v1: new (await import("./ecocredit/basket/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + marketplace: { + v1: new (await import("./ecocredit/marketplace/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + v1: new (await import("./ecocredit/v1/query.lcd")).LCDQueryClient({ + requestClient + }), + v1alpha1: new (await import("./ecocredit/v1alpha1/query.lcd")).LCDQueryClient({ + requestClient + }) + }, + intertx: { + v1: new (await import("./intertx/v1/query.lcd")).LCDQueryClient({ + requestClient + }) + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/rpc.query.ts b/packages/api/src/regen/rpc.query.ts new file mode 100644 index 00000000..4c6a8bae --- /dev/null +++ b/packages/api/src/regen/rpc.query.ts @@ -0,0 +1,75 @@ +//@ts-nocheck +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + base: { + node: { + v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) + } + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + feegrant: { + v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + group: { + v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + mint: { + v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + params: { + v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + regen: { + data: { + v1: (await import("./data/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + ecocredit: { + basket: { + v1: (await import("./ecocredit/basket/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + marketplace: { + v1: (await import("./ecocredit/marketplace/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + v1: (await import("./ecocredit/v1/query.rpc.Query")).createRpcQueryExtension(client), + v1alpha1: (await import("./ecocredit/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) + }, + intertx: { + v1: (await import("./intertx/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/api/src/regen/rpc.tx.ts b/packages/api/src/regen/rpc.tx.ts new file mode 100644 index 00000000..5154869a --- /dev/null +++ b/packages/api/src/regen/rpc.tx.ts @@ -0,0 +1,56 @@ +//@ts-nocheck +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + feegrant: { + v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + group: { + v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + vesting: { + v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + regen: { + data: { + v1: new (await import("./data/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + ecocredit: { + basket: { + v1: new (await import("./ecocredit/basket/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + marketplace: { + v1: new (await import("./ecocredit/marketplace/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + v1: new (await import("./ecocredit/v1/tx.rpc.msg")).MsgClientImpl(rpc), + v1alpha1: new (await import("./ecocredit/v1alpha1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + intertx: { + v1: new (await import("./intertx/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/api/src/tendermint/abci/types.ts b/packages/api/src/tendermint/abci/types.ts new file mode 100644 index 00000000..c424e6c9 --- /dev/null +++ b/packages/api/src/tendermint/abci/types.ts @@ -0,0 +1,5874 @@ +//@ts-nocheck +import { Timestamp } from "../../google/protobuf/timestamp"; +import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; +import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; +import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; +import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../helpers"; +export enum CheckTxType { + NEW = 0, + RECHECK = 1, + UNRECOGNIZED = -1, +} +export const CheckTxTypeSDKType = CheckTxType; +export const CheckTxTypeAmino = CheckTxType; +export function checkTxTypeFromJSON(object: any): CheckTxType { + switch (object) { + case 0: + case "NEW": + return CheckTxType.NEW; + case 1: + case "RECHECK": + return CheckTxType.RECHECK; + case -1: + case "UNRECOGNIZED": + default: + return CheckTxType.UNRECOGNIZED; + } +} +export function checkTxTypeToJSON(object: CheckTxType): string { + switch (object) { + case CheckTxType.NEW: + return "NEW"; + case CheckTxType.RECHECK: + return "RECHECK"; + case CheckTxType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum ResponseOfferSnapshot_Result { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + UNKNOWN = 0, + /** ACCEPT - Snapshot accepted, apply chunks */ + ACCEPT = 1, + /** ABORT - Abort all snapshot restoration */ + ABORT = 2, + /** REJECT - Reject this specific snapshot, try others */ + REJECT = 3, + /** REJECT_FORMAT - Reject all snapshots of this format, try others */ + REJECT_FORMAT = 4, + /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ + REJECT_SENDER = 5, + UNRECOGNIZED = -1, +} +export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; +export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; +export function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseOfferSnapshot_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseOfferSnapshot_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseOfferSnapshot_Result.ABORT; + case 3: + case "REJECT": + return ResponseOfferSnapshot_Result.REJECT; + case 4: + case "REJECT_FORMAT": + return ResponseOfferSnapshot_Result.REJECT_FORMAT; + case 5: + case "REJECT_SENDER": + return ResponseOfferSnapshot_Result.REJECT_SENDER; + case -1: + case "UNRECOGNIZED": + default: + return ResponseOfferSnapshot_Result.UNRECOGNIZED; + } +} +export function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string { + switch (object) { + case ResponseOfferSnapshot_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseOfferSnapshot_Result.ACCEPT: + return "ACCEPT"; + case ResponseOfferSnapshot_Result.ABORT: + return "ABORT"; + case ResponseOfferSnapshot_Result.REJECT: + return "REJECT"; + case ResponseOfferSnapshot_Result.REJECT_FORMAT: + return "REJECT_FORMAT"; + case ResponseOfferSnapshot_Result.REJECT_SENDER: + return "REJECT_SENDER"; + case ResponseOfferSnapshot_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum ResponseApplySnapshotChunk_Result { + /** UNKNOWN - Unknown result, abort all snapshot restoration */ + UNKNOWN = 0, + /** ACCEPT - Chunk successfully accepted */ + ACCEPT = 1, + /** ABORT - Abort all snapshot restoration */ + ABORT = 2, + /** RETRY - Retry chunk (combine with refetch and reject) */ + RETRY = 3, + /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ + RETRY_SNAPSHOT = 4, + /** REJECT_SNAPSHOT - Reject this snapshot, try others */ + REJECT_SNAPSHOT = 5, + UNRECOGNIZED = -1, +} +export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; +export const ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; +export function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseApplySnapshotChunk_Result.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseApplySnapshotChunk_Result.ACCEPT; + case 2: + case "ABORT": + return ResponseApplySnapshotChunk_Result.ABORT; + case 3: + case "RETRY": + return ResponseApplySnapshotChunk_Result.RETRY; + case 4: + case "RETRY_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; + case 5: + case "REJECT_SNAPSHOT": + return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; + } +} +export function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string { + switch (object) { + case ResponseApplySnapshotChunk_Result.UNKNOWN: + return "UNKNOWN"; + case ResponseApplySnapshotChunk_Result.ACCEPT: + return "ACCEPT"; + case ResponseApplySnapshotChunk_Result.ABORT: + return "ABORT"; + case ResponseApplySnapshotChunk_Result.RETRY: + return "RETRY"; + case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: + return "RETRY_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: + return "REJECT_SNAPSHOT"; + case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum ResponseProcessProposal_ProposalStatus { + UNKNOWN = 0, + ACCEPT = 1, + REJECT = 2, + UNRECOGNIZED = -1, +} +export const ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; +export const ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; +export function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus { + switch (object) { + case 0: + case "UNKNOWN": + return ResponseProcessProposal_ProposalStatus.UNKNOWN; + case 1: + case "ACCEPT": + return ResponseProcessProposal_ProposalStatus.ACCEPT; + case 2: + case "REJECT": + return ResponseProcessProposal_ProposalStatus.REJECT; + case -1: + case "UNRECOGNIZED": + default: + return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; + } +} +export function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string { + switch (object) { + case ResponseProcessProposal_ProposalStatus.UNKNOWN: + return "UNKNOWN"; + case ResponseProcessProposal_ProposalStatus.ACCEPT: + return "ACCEPT"; + case ResponseProcessProposal_ProposalStatus.REJECT: + return "REJECT"; + case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export enum MisbehaviorType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2, + UNRECOGNIZED = -1, +} +export const MisbehaviorTypeSDKType = MisbehaviorType; +export const MisbehaviorTypeAmino = MisbehaviorType; +export function misbehaviorTypeFromJSON(object: any): MisbehaviorType { + switch (object) { + case 0: + case "UNKNOWN": + return MisbehaviorType.UNKNOWN; + case 1: + case "DUPLICATE_VOTE": + return MisbehaviorType.DUPLICATE_VOTE; + case 2: + case "LIGHT_CLIENT_ATTACK": + return MisbehaviorType.LIGHT_CLIENT_ATTACK; + case -1: + case "UNRECOGNIZED": + default: + return MisbehaviorType.UNRECOGNIZED; + } +} +export function misbehaviorTypeToJSON(object: MisbehaviorType): string { + switch (object) { + case MisbehaviorType.UNKNOWN: + return "UNKNOWN"; + case MisbehaviorType.DUPLICATE_VOTE: + return "DUPLICATE_VOTE"; + case MisbehaviorType.LIGHT_CLIENT_ATTACK: + return "LIGHT_CLIENT_ATTACK"; + case MisbehaviorType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +export interface Request { + echo?: RequestEcho; + flush?: RequestFlush; + info?: RequestInfo; + initChain?: RequestInitChain; + query?: RequestQuery; + beginBlock?: RequestBeginBlock; + checkTx?: RequestCheckTx; + deliverTx?: RequestDeliverTx; + endBlock?: RequestEndBlock; + commit?: RequestCommit; + listSnapshots?: RequestListSnapshots; + offerSnapshot?: RequestOfferSnapshot; + loadSnapshotChunk?: RequestLoadSnapshotChunk; + applySnapshotChunk?: RequestApplySnapshotChunk; + prepareProposal?: RequestPrepareProposal; + processProposal?: RequestProcessProposal; +} +export interface RequestProtoMsg { + typeUrl: "/tendermint.abci.Request"; + value: Uint8Array; +} +export interface RequestAmino { + echo?: RequestEchoAmino; + flush?: RequestFlushAmino; + info?: RequestInfoAmino; + init_chain?: RequestInitChainAmino; + query?: RequestQueryAmino; + begin_block?: RequestBeginBlockAmino; + check_tx?: RequestCheckTxAmino; + deliver_tx?: RequestDeliverTxAmino; + end_block?: RequestEndBlockAmino; + commit?: RequestCommitAmino; + list_snapshots?: RequestListSnapshotsAmino; + offer_snapshot?: RequestOfferSnapshotAmino; + load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; + apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; + prepare_proposal?: RequestPrepareProposalAmino; + process_proposal?: RequestProcessProposalAmino; +} +export interface RequestAminoMsg { + type: "/tendermint.abci.Request"; + value: RequestAmino; +} +export interface RequestSDKType { + echo?: RequestEchoSDKType; + flush?: RequestFlushSDKType; + info?: RequestInfoSDKType; + init_chain?: RequestInitChainSDKType; + query?: RequestQuerySDKType; + begin_block?: RequestBeginBlockSDKType; + check_tx?: RequestCheckTxSDKType; + deliver_tx?: RequestDeliverTxSDKType; + end_block?: RequestEndBlockSDKType; + commit?: RequestCommitSDKType; + list_snapshots?: RequestListSnapshotsSDKType; + offer_snapshot?: RequestOfferSnapshotSDKType; + load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; + apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; + prepare_proposal?: RequestPrepareProposalSDKType; + process_proposal?: RequestProcessProposalSDKType; +} +export interface RequestEcho { + message: string; +} +export interface RequestEchoProtoMsg { + typeUrl: "/tendermint.abci.RequestEcho"; + value: Uint8Array; +} +export interface RequestEchoAmino { + message?: string; +} +export interface RequestEchoAminoMsg { + type: "/tendermint.abci.RequestEcho"; + value: RequestEchoAmino; +} +export interface RequestEchoSDKType { + message: string; +} +export interface RequestFlush {} +export interface RequestFlushProtoMsg { + typeUrl: "/tendermint.abci.RequestFlush"; + value: Uint8Array; +} +export interface RequestFlushAmino {} +export interface RequestFlushAminoMsg { + type: "/tendermint.abci.RequestFlush"; + value: RequestFlushAmino; +} +export interface RequestFlushSDKType {} +export interface RequestInfo { + version: string; + blockVersion: bigint; + p2pVersion: bigint; + abciVersion: string; +} +export interface RequestInfoProtoMsg { + typeUrl: "/tendermint.abci.RequestInfo"; + value: Uint8Array; +} +export interface RequestInfoAmino { + version?: string; + block_version?: string; + p2p_version?: string; + abci_version?: string; +} +export interface RequestInfoAminoMsg { + type: "/tendermint.abci.RequestInfo"; + value: RequestInfoAmino; +} +export interface RequestInfoSDKType { + version: string; + block_version: bigint; + p2p_version: bigint; + abci_version: string; +} +export interface RequestInitChain { + time: Date; + chainId: string; + consensusParams?: ConsensusParams; + validators: ValidatorUpdate[]; + appStateBytes: Uint8Array; + initialHeight: bigint; +} +export interface RequestInitChainProtoMsg { + typeUrl: "/tendermint.abci.RequestInitChain"; + value: Uint8Array; +} +export interface RequestInitChainAmino { + time?: string; + chain_id?: string; + consensus_params?: ConsensusParamsAmino; + validators?: ValidatorUpdateAmino[]; + app_state_bytes?: string; + initial_height?: string; +} +export interface RequestInitChainAminoMsg { + type: "/tendermint.abci.RequestInitChain"; + value: RequestInitChainAmino; +} +export interface RequestInitChainSDKType { + time: Date; + chain_id: string; + consensus_params?: ConsensusParamsSDKType; + validators: ValidatorUpdateSDKType[]; + app_state_bytes: Uint8Array; + initial_height: bigint; +} +export interface RequestQuery { + data: Uint8Array; + path: string; + height: bigint; + prove: boolean; +} +export interface RequestQueryProtoMsg { + typeUrl: "/tendermint.abci.RequestQuery"; + value: Uint8Array; +} +export interface RequestQueryAmino { + data?: string; + path?: string; + height?: string; + prove?: boolean; +} +export interface RequestQueryAminoMsg { + type: "/tendermint.abci.RequestQuery"; + value: RequestQueryAmino; +} +export interface RequestQuerySDKType { + data: Uint8Array; + path: string; + height: bigint; + prove: boolean; +} +export interface RequestBeginBlock { + hash: Uint8Array; + header: Header; + lastCommitInfo: CommitInfo; + byzantineValidators: Misbehavior[]; +} +export interface RequestBeginBlockProtoMsg { + typeUrl: "/tendermint.abci.RequestBeginBlock"; + value: Uint8Array; +} +export interface RequestBeginBlockAmino { + hash?: string; + header?: HeaderAmino; + last_commit_info?: CommitInfoAmino; + byzantine_validators?: MisbehaviorAmino[]; +} +export interface RequestBeginBlockAminoMsg { + type: "/tendermint.abci.RequestBeginBlock"; + value: RequestBeginBlockAmino; +} +export interface RequestBeginBlockSDKType { + hash: Uint8Array; + header: HeaderSDKType; + last_commit_info: CommitInfoSDKType; + byzantine_validators: MisbehaviorSDKType[]; +} +export interface RequestCheckTx { + tx: Uint8Array; + type: CheckTxType; +} +export interface RequestCheckTxProtoMsg { + typeUrl: "/tendermint.abci.RequestCheckTx"; + value: Uint8Array; +} +export interface RequestCheckTxAmino { + tx?: string; + type?: CheckTxType; +} +export interface RequestCheckTxAminoMsg { + type: "/tendermint.abci.RequestCheckTx"; + value: RequestCheckTxAmino; +} +export interface RequestCheckTxSDKType { + tx: Uint8Array; + type: CheckTxType; +} +export interface RequestDeliverTx { + tx: Uint8Array; +} +export interface RequestDeliverTxProtoMsg { + typeUrl: "/tendermint.abci.RequestDeliverTx"; + value: Uint8Array; +} +export interface RequestDeliverTxAmino { + tx?: string; +} +export interface RequestDeliverTxAminoMsg { + type: "/tendermint.abci.RequestDeliverTx"; + value: RequestDeliverTxAmino; +} +export interface RequestDeliverTxSDKType { + tx: Uint8Array; +} +export interface RequestEndBlock { + height: bigint; +} +export interface RequestEndBlockProtoMsg { + typeUrl: "/tendermint.abci.RequestEndBlock"; + value: Uint8Array; +} +export interface RequestEndBlockAmino { + height?: string; +} +export interface RequestEndBlockAminoMsg { + type: "/tendermint.abci.RequestEndBlock"; + value: RequestEndBlockAmino; +} +export interface RequestEndBlockSDKType { + height: bigint; +} +export interface RequestCommit {} +export interface RequestCommitProtoMsg { + typeUrl: "/tendermint.abci.RequestCommit"; + value: Uint8Array; +} +export interface RequestCommitAmino {} +export interface RequestCommitAminoMsg { + type: "/tendermint.abci.RequestCommit"; + value: RequestCommitAmino; +} +export interface RequestCommitSDKType {} +/** lists available snapshots */ +export interface RequestListSnapshots {} +export interface RequestListSnapshotsProtoMsg { + typeUrl: "/tendermint.abci.RequestListSnapshots"; + value: Uint8Array; +} +/** lists available snapshots */ +export interface RequestListSnapshotsAmino {} +export interface RequestListSnapshotsAminoMsg { + type: "/tendermint.abci.RequestListSnapshots"; + value: RequestListSnapshotsAmino; +} +/** lists available snapshots */ +export interface RequestListSnapshotsSDKType {} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshot { + /** snapshot offered by peers */ + snapshot?: Snapshot; + /** light client-verified app hash for snapshot height */ + appHash: Uint8Array; +} +export interface RequestOfferSnapshotProtoMsg { + typeUrl: "/tendermint.abci.RequestOfferSnapshot"; + value: Uint8Array; +} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshotAmino { + /** snapshot offered by peers */ + snapshot?: SnapshotAmino; + /** light client-verified app hash for snapshot height */ + app_hash?: string; +} +export interface RequestOfferSnapshotAminoMsg { + type: "/tendermint.abci.RequestOfferSnapshot"; + value: RequestOfferSnapshotAmino; +} +/** offers a snapshot to the application */ +export interface RequestOfferSnapshotSDKType { + snapshot?: SnapshotSDKType; + app_hash: Uint8Array; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunk { + height: bigint; + format: number; + chunk: number; +} +export interface RequestLoadSnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; + value: Uint8Array; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunkAmino { + height?: string; + format?: number; + chunk?: number; +} +export interface RequestLoadSnapshotChunkAminoMsg { + type: "/tendermint.abci.RequestLoadSnapshotChunk"; + value: RequestLoadSnapshotChunkAmino; +} +/** loads a snapshot chunk */ +export interface RequestLoadSnapshotChunkSDKType { + height: bigint; + format: number; + chunk: number; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunk { + index: number; + chunk: Uint8Array; + sender: string; +} +export interface RequestApplySnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; + value: Uint8Array; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunkAmino { + index?: number; + chunk?: string; + sender?: string; +} +export interface RequestApplySnapshotChunkAminoMsg { + type: "/tendermint.abci.RequestApplySnapshotChunk"; + value: RequestApplySnapshotChunkAmino; +} +/** Applies a snapshot chunk */ +export interface RequestApplySnapshotChunkSDKType { + index: number; + chunk: Uint8Array; + sender: string; +} +export interface RequestPrepareProposal { + /** the modified transactions cannot exceed this size. */ + maxTxBytes: bigint; + /** + * txs is an array of transactions that will be included in a block, + * sent to the app for possible modifications. + */ + txs: Uint8Array[]; + localLastCommit: ExtendedCommitInfo; + misbehavior: Misbehavior[]; + height: bigint; + time: Date; + nextValidatorsHash: Uint8Array; + /** address of the public key of the validator proposing the block. */ + proposerAddress: Uint8Array; +} +export interface RequestPrepareProposalProtoMsg { + typeUrl: "/tendermint.abci.RequestPrepareProposal"; + value: Uint8Array; +} +export interface RequestPrepareProposalAmino { + /** the modified transactions cannot exceed this size. */ + max_tx_bytes?: string; + /** + * txs is an array of transactions that will be included in a block, + * sent to the app for possible modifications. + */ + txs?: string[]; + local_last_commit?: ExtendedCommitInfoAmino; + misbehavior?: MisbehaviorAmino[]; + height?: string; + time?: string; + next_validators_hash?: string; + /** address of the public key of the validator proposing the block. */ + proposer_address?: string; +} +export interface RequestPrepareProposalAminoMsg { + type: "/tendermint.abci.RequestPrepareProposal"; + value: RequestPrepareProposalAmino; +} +export interface RequestPrepareProposalSDKType { + max_tx_bytes: bigint; + txs: Uint8Array[]; + local_last_commit: ExtendedCommitInfoSDKType; + misbehavior: MisbehaviorSDKType[]; + height: bigint; + time: Date; + next_validators_hash: Uint8Array; + proposer_address: Uint8Array; +} +export interface RequestProcessProposal { + txs: Uint8Array[]; + proposedLastCommit: CommitInfo; + misbehavior: Misbehavior[]; + /** hash is the merkle root hash of the fields of the proposed block. */ + hash: Uint8Array; + height: bigint; + time: Date; + nextValidatorsHash: Uint8Array; + /** address of the public key of the original proposer of the block. */ + proposerAddress: Uint8Array; +} +export interface RequestProcessProposalProtoMsg { + typeUrl: "/tendermint.abci.RequestProcessProposal"; + value: Uint8Array; +} +export interface RequestProcessProposalAmino { + txs?: string[]; + proposed_last_commit?: CommitInfoAmino; + misbehavior?: MisbehaviorAmino[]; + /** hash is the merkle root hash of the fields of the proposed block. */ + hash?: string; + height?: string; + time?: string; + next_validators_hash?: string; + /** address of the public key of the original proposer of the block. */ + proposer_address?: string; +} +export interface RequestProcessProposalAminoMsg { + type: "/tendermint.abci.RequestProcessProposal"; + value: RequestProcessProposalAmino; +} +export interface RequestProcessProposalSDKType { + txs: Uint8Array[]; + proposed_last_commit: CommitInfoSDKType; + misbehavior: MisbehaviorSDKType[]; + hash: Uint8Array; + height: bigint; + time: Date; + next_validators_hash: Uint8Array; + proposer_address: Uint8Array; +} +export interface Response { + exception?: ResponseException; + echo?: ResponseEcho; + flush?: ResponseFlush; + info?: ResponseInfo; + initChain?: ResponseInitChain; + query?: ResponseQuery; + beginBlock?: ResponseBeginBlock; + checkTx?: ResponseCheckTx; + deliverTx?: ResponseDeliverTx; + endBlock?: ResponseEndBlock; + commit?: ResponseCommit; + listSnapshots?: ResponseListSnapshots; + offerSnapshot?: ResponseOfferSnapshot; + loadSnapshotChunk?: ResponseLoadSnapshotChunk; + applySnapshotChunk?: ResponseApplySnapshotChunk; + prepareProposal?: ResponsePrepareProposal; + processProposal?: ResponseProcessProposal; +} +export interface ResponseProtoMsg { + typeUrl: "/tendermint.abci.Response"; + value: Uint8Array; +} +export interface ResponseAmino { + exception?: ResponseExceptionAmino; + echo?: ResponseEchoAmino; + flush?: ResponseFlushAmino; + info?: ResponseInfoAmino; + init_chain?: ResponseInitChainAmino; + query?: ResponseQueryAmino; + begin_block?: ResponseBeginBlockAmino; + check_tx?: ResponseCheckTxAmino; + deliver_tx?: ResponseDeliverTxAmino; + end_block?: ResponseEndBlockAmino; + commit?: ResponseCommitAmino; + list_snapshots?: ResponseListSnapshotsAmino; + offer_snapshot?: ResponseOfferSnapshotAmino; + load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; + apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; + prepare_proposal?: ResponsePrepareProposalAmino; + process_proposal?: ResponseProcessProposalAmino; +} +export interface ResponseAminoMsg { + type: "/tendermint.abci.Response"; + value: ResponseAmino; +} +export interface ResponseSDKType { + exception?: ResponseExceptionSDKType; + echo?: ResponseEchoSDKType; + flush?: ResponseFlushSDKType; + info?: ResponseInfoSDKType; + init_chain?: ResponseInitChainSDKType; + query?: ResponseQuerySDKType; + begin_block?: ResponseBeginBlockSDKType; + check_tx?: ResponseCheckTxSDKType; + deliver_tx?: ResponseDeliverTxSDKType; + end_block?: ResponseEndBlockSDKType; + commit?: ResponseCommitSDKType; + list_snapshots?: ResponseListSnapshotsSDKType; + offer_snapshot?: ResponseOfferSnapshotSDKType; + load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; + apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; + prepare_proposal?: ResponsePrepareProposalSDKType; + process_proposal?: ResponseProcessProposalSDKType; +} +/** nondeterministic */ +export interface ResponseException { + error: string; +} +export interface ResponseExceptionProtoMsg { + typeUrl: "/tendermint.abci.ResponseException"; + value: Uint8Array; +} +/** nondeterministic */ +export interface ResponseExceptionAmino { + error?: string; +} +export interface ResponseExceptionAminoMsg { + type: "/tendermint.abci.ResponseException"; + value: ResponseExceptionAmino; +} +/** nondeterministic */ +export interface ResponseExceptionSDKType { + error: string; +} +export interface ResponseEcho { + message: string; +} +export interface ResponseEchoProtoMsg { + typeUrl: "/tendermint.abci.ResponseEcho"; + value: Uint8Array; +} +export interface ResponseEchoAmino { + message?: string; +} +export interface ResponseEchoAminoMsg { + type: "/tendermint.abci.ResponseEcho"; + value: ResponseEchoAmino; +} +export interface ResponseEchoSDKType { + message: string; +} +export interface ResponseFlush {} +export interface ResponseFlushProtoMsg { + typeUrl: "/tendermint.abci.ResponseFlush"; + value: Uint8Array; +} +export interface ResponseFlushAmino {} +export interface ResponseFlushAminoMsg { + type: "/tendermint.abci.ResponseFlush"; + value: ResponseFlushAmino; +} +export interface ResponseFlushSDKType {} +export interface ResponseInfo { + data: string; + version: string; + appVersion: bigint; + lastBlockHeight: bigint; + lastBlockAppHash: Uint8Array; +} +export interface ResponseInfoProtoMsg { + typeUrl: "/tendermint.abci.ResponseInfo"; + value: Uint8Array; +} +export interface ResponseInfoAmino { + data?: string; + version?: string; + app_version?: string; + last_block_height?: string; + last_block_app_hash?: string; +} +export interface ResponseInfoAminoMsg { + type: "/tendermint.abci.ResponseInfo"; + value: ResponseInfoAmino; +} +export interface ResponseInfoSDKType { + data: string; + version: string; + app_version: bigint; + last_block_height: bigint; + last_block_app_hash: Uint8Array; +} +export interface ResponseInitChain { + consensusParams?: ConsensusParams; + validators: ValidatorUpdate[]; + appHash: Uint8Array; +} +export interface ResponseInitChainProtoMsg { + typeUrl: "/tendermint.abci.ResponseInitChain"; + value: Uint8Array; +} +export interface ResponseInitChainAmino { + consensus_params?: ConsensusParamsAmino; + validators?: ValidatorUpdateAmino[]; + app_hash?: string; +} +export interface ResponseInitChainAminoMsg { + type: "/tendermint.abci.ResponseInitChain"; + value: ResponseInitChainAmino; +} +export interface ResponseInitChainSDKType { + consensus_params?: ConsensusParamsSDKType; + validators: ValidatorUpdateSDKType[]; + app_hash: Uint8Array; +} +export interface ResponseQuery { + code: number; + /** bytes data = 2; // use "value" instead. */ + log: string; + /** nondeterministic */ + info: string; + index: bigint; + key: Uint8Array; + value: Uint8Array; + proofOps?: ProofOps; + height: bigint; + codespace: string; +} +export interface ResponseQueryProtoMsg { + typeUrl: "/tendermint.abci.ResponseQuery"; + value: Uint8Array; +} +export interface ResponseQueryAmino { + code?: number; + /** bytes data = 2; // use "value" instead. */ + log?: string; + /** nondeterministic */ + info?: string; + index?: string; + key?: string; + value?: string; + proof_ops?: ProofOpsAmino; + height?: string; + codespace?: string; +} +export interface ResponseQueryAminoMsg { + type: "/tendermint.abci.ResponseQuery"; + value: ResponseQueryAmino; +} +export interface ResponseQuerySDKType { + code: number; + log: string; + info: string; + index: bigint; + key: Uint8Array; + value: Uint8Array; + proof_ops?: ProofOpsSDKType; + height: bigint; + codespace: string; +} +export interface ResponseBeginBlock { + events: Event[]; +} +export interface ResponseBeginBlockProtoMsg { + typeUrl: "/tendermint.abci.ResponseBeginBlock"; + value: Uint8Array; +} +export interface ResponseBeginBlockAmino { + events?: EventAmino[]; +} +export interface ResponseBeginBlockAminoMsg { + type: "/tendermint.abci.ResponseBeginBlock"; + value: ResponseBeginBlockAmino; +} +export interface ResponseBeginBlockSDKType { + events: EventSDKType[]; +} +export interface ResponseCheckTx { + code: number; + data: Uint8Array; + /** nondeterministic */ + log: string; + /** nondeterministic */ + info: string; + gasWanted: bigint; + gasUsed: bigint; + events: Event[]; + codespace: string; + sender: string; + priority: bigint; + /** + * mempool_error is set by CometBFT. + * ABCI applictions creating a ResponseCheckTX should not set mempool_error. + */ + mempoolError: string; +} +export interface ResponseCheckTxProtoMsg { + typeUrl: "/tendermint.abci.ResponseCheckTx"; + value: Uint8Array; +} +export interface ResponseCheckTxAmino { + code?: number; + data?: string; + /** nondeterministic */ + log?: string; + /** nondeterministic */ + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; + sender?: string; + priority?: string; + /** + * mempool_error is set by CometBFT. + * ABCI applictions creating a ResponseCheckTX should not set mempool_error. + */ + mempool_error?: string; +} +export interface ResponseCheckTxAminoMsg { + type: "/tendermint.abci.ResponseCheckTx"; + value: ResponseCheckTxAmino; +} +export interface ResponseCheckTxSDKType { + code: number; + data: Uint8Array; + log: string; + info: string; + gas_wanted: bigint; + gas_used: bigint; + events: EventSDKType[]; + codespace: string; + sender: string; + priority: bigint; + mempool_error: string; +} +export interface ResponseDeliverTx { + code: number; + data: Uint8Array; + /** nondeterministic */ + log: string; + /** nondeterministic */ + info: string; + gasWanted: bigint; + gasUsed: bigint; + events: Event[]; + codespace: string; +} +export interface ResponseDeliverTxProtoMsg { + typeUrl: "/tendermint.abci.ResponseDeliverTx"; + value: Uint8Array; +} +export interface ResponseDeliverTxAmino { + code?: number; + data?: string; + /** nondeterministic */ + log?: string; + /** nondeterministic */ + info?: string; + gas_wanted?: string; + gas_used?: string; + events?: EventAmino[]; + codespace?: string; +} +export interface ResponseDeliverTxAminoMsg { + type: "/tendermint.abci.ResponseDeliverTx"; + value: ResponseDeliverTxAmino; +} +export interface ResponseDeliverTxSDKType { + code: number; + data: Uint8Array; + log: string; + info: string; + gas_wanted: bigint; + gas_used: bigint; + events: EventSDKType[]; + codespace: string; +} +export interface ResponseEndBlock { + validatorUpdates: ValidatorUpdate[]; + consensusParamUpdates?: ConsensusParams; + events: Event[]; +} +export interface ResponseEndBlockProtoMsg { + typeUrl: "/tendermint.abci.ResponseEndBlock"; + value: Uint8Array; +} +export interface ResponseEndBlockAmino { + validator_updates?: ValidatorUpdateAmino[]; + consensus_param_updates?: ConsensusParamsAmino; + events?: EventAmino[]; +} +export interface ResponseEndBlockAminoMsg { + type: "/tendermint.abci.ResponseEndBlock"; + value: ResponseEndBlockAmino; +} +export interface ResponseEndBlockSDKType { + validator_updates: ValidatorUpdateSDKType[]; + consensus_param_updates?: ConsensusParamsSDKType; + events: EventSDKType[]; +} +export interface ResponseCommit { + /** reserve 1 */ + data: Uint8Array; + retainHeight: bigint; +} +export interface ResponseCommitProtoMsg { + typeUrl: "/tendermint.abci.ResponseCommit"; + value: Uint8Array; +} +export interface ResponseCommitAmino { + /** reserve 1 */ + data?: string; + retain_height?: string; +} +export interface ResponseCommitAminoMsg { + type: "/tendermint.abci.ResponseCommit"; + value: ResponseCommitAmino; +} +export interface ResponseCommitSDKType { + data: Uint8Array; + retain_height: bigint; +} +export interface ResponseListSnapshots { + snapshots: Snapshot[]; +} +export interface ResponseListSnapshotsProtoMsg { + typeUrl: "/tendermint.abci.ResponseListSnapshots"; + value: Uint8Array; +} +export interface ResponseListSnapshotsAmino { + snapshots?: SnapshotAmino[]; +} +export interface ResponseListSnapshotsAminoMsg { + type: "/tendermint.abci.ResponseListSnapshots"; + value: ResponseListSnapshotsAmino; +} +export interface ResponseListSnapshotsSDKType { + snapshots: SnapshotSDKType[]; +} +export interface ResponseOfferSnapshot { + result: ResponseOfferSnapshot_Result; +} +export interface ResponseOfferSnapshotProtoMsg { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; + value: Uint8Array; +} +export interface ResponseOfferSnapshotAmino { + result?: ResponseOfferSnapshot_Result; +} +export interface ResponseOfferSnapshotAminoMsg { + type: "/tendermint.abci.ResponseOfferSnapshot"; + value: ResponseOfferSnapshotAmino; +} +export interface ResponseOfferSnapshotSDKType { + result: ResponseOfferSnapshot_Result; +} +export interface ResponseLoadSnapshotChunk { + chunk: Uint8Array; +} +export interface ResponseLoadSnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; + value: Uint8Array; +} +export interface ResponseLoadSnapshotChunkAmino { + chunk?: string; +} +export interface ResponseLoadSnapshotChunkAminoMsg { + type: "/tendermint.abci.ResponseLoadSnapshotChunk"; + value: ResponseLoadSnapshotChunkAmino; +} +export interface ResponseLoadSnapshotChunkSDKType { + chunk: Uint8Array; +} +export interface ResponseApplySnapshotChunk { + result: ResponseApplySnapshotChunk_Result; + /** Chunks to refetch and reapply */ + refetchChunks: number[]; + /** Chunk senders to reject and ban */ + rejectSenders: string[]; +} +export interface ResponseApplySnapshotChunkProtoMsg { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; + value: Uint8Array; +} +export interface ResponseApplySnapshotChunkAmino { + result?: ResponseApplySnapshotChunk_Result; + /** Chunks to refetch and reapply */ + refetch_chunks?: number[]; + /** Chunk senders to reject and ban */ + reject_senders?: string[]; +} +export interface ResponseApplySnapshotChunkAminoMsg { + type: "/tendermint.abci.ResponseApplySnapshotChunk"; + value: ResponseApplySnapshotChunkAmino; +} +export interface ResponseApplySnapshotChunkSDKType { + result: ResponseApplySnapshotChunk_Result; + refetch_chunks: number[]; + reject_senders: string[]; +} +export interface ResponsePrepareProposal { + txs: Uint8Array[]; +} +export interface ResponsePrepareProposalProtoMsg { + typeUrl: "/tendermint.abci.ResponsePrepareProposal"; + value: Uint8Array; +} +export interface ResponsePrepareProposalAmino { + txs?: string[]; +} +export interface ResponsePrepareProposalAminoMsg { + type: "/tendermint.abci.ResponsePrepareProposal"; + value: ResponsePrepareProposalAmino; +} +export interface ResponsePrepareProposalSDKType { + txs: Uint8Array[]; +} +export interface ResponseProcessProposal { + status: ResponseProcessProposal_ProposalStatus; +} +export interface ResponseProcessProposalProtoMsg { + typeUrl: "/tendermint.abci.ResponseProcessProposal"; + value: Uint8Array; +} +export interface ResponseProcessProposalAmino { + status?: ResponseProcessProposal_ProposalStatus; +} +export interface ResponseProcessProposalAminoMsg { + type: "/tendermint.abci.ResponseProcessProposal"; + value: ResponseProcessProposalAmino; +} +export interface ResponseProcessProposalSDKType { + status: ResponseProcessProposal_ProposalStatus; +} +export interface CommitInfo { + round: number; + votes: VoteInfo[]; +} +export interface CommitInfoProtoMsg { + typeUrl: "/tendermint.abci.CommitInfo"; + value: Uint8Array; +} +export interface CommitInfoAmino { + round?: number; + votes?: VoteInfoAmino[]; +} +export interface CommitInfoAminoMsg { + type: "/tendermint.abci.CommitInfo"; + value: CommitInfoAmino; +} +export interface CommitInfoSDKType { + round: number; + votes: VoteInfoSDKType[]; +} +export interface ExtendedCommitInfo { + /** The round at which the block proposer decided in the previous height. */ + round: number; + /** + * List of validators' addresses in the last validator set with their voting + * information, including vote extensions. + */ + votes: ExtendedVoteInfo[]; +} +export interface ExtendedCommitInfoProtoMsg { + typeUrl: "/tendermint.abci.ExtendedCommitInfo"; + value: Uint8Array; +} +export interface ExtendedCommitInfoAmino { + /** The round at which the block proposer decided in the previous height. */ + round?: number; + /** + * List of validators' addresses in the last validator set with their voting + * information, including vote extensions. + */ + votes?: ExtendedVoteInfoAmino[]; +} +export interface ExtendedCommitInfoAminoMsg { + type: "/tendermint.abci.ExtendedCommitInfo"; + value: ExtendedCommitInfoAmino; +} +export interface ExtendedCommitInfoSDKType { + round: number; + votes: ExtendedVoteInfoSDKType[]; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface Event { + type: string; + attributes: EventAttribute[]; +} +export interface EventProtoMsg { + typeUrl: "/tendermint.abci.Event"; + value: Uint8Array; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface EventAmino { + type?: string; + attributes?: EventAttributeAmino[]; +} +export interface EventAminoMsg { + type: "/tendermint.abci.Event"; + value: EventAmino; +} +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface EventSDKType { + type: string; + attributes: EventAttributeSDKType[]; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttribute { + key: string; + value: string; + /** nondeterministic */ + index: boolean; +} +export interface EventAttributeProtoMsg { + typeUrl: "/tendermint.abci.EventAttribute"; + value: Uint8Array; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttributeAmino { + key?: string; + value?: string; + /** nondeterministic */ + index?: boolean; +} +export interface EventAttributeAminoMsg { + type: "/tendermint.abci.EventAttribute"; + value: EventAttributeAmino; +} +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface EventAttributeSDKType { + key: string; + value: string; + index: boolean; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResult { + height: bigint; + index: number; + tx: Uint8Array; + result: ResponseDeliverTx; +} +export interface TxResultProtoMsg { + typeUrl: "/tendermint.abci.TxResult"; + value: Uint8Array; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResultAmino { + height?: string; + index?: number; + tx?: string; + result?: ResponseDeliverTxAmino; +} +export interface TxResultAminoMsg { + type: "/tendermint.abci.TxResult"; + value: TxResultAmino; +} +/** + * TxResult contains results of executing the transaction. + * + * One usage is indexing transaction results. + */ +export interface TxResultSDKType { + height: bigint; + index: number; + tx: Uint8Array; + result: ResponseDeliverTxSDKType; +} +/** Validator */ +export interface Validator { + /** + * The first 20 bytes of SHA256(public key) + * PubKey pub_key = 2 [(gogoproto.nullable)=false]; + */ + address: Uint8Array; + /** The voting power */ + power: bigint; +} +export interface ValidatorProtoMsg { + typeUrl: "/tendermint.abci.Validator"; + value: Uint8Array; +} +/** Validator */ +export interface ValidatorAmino { + /** + * The first 20 bytes of SHA256(public key) + * PubKey pub_key = 2 [(gogoproto.nullable)=false]; + */ + address?: string; + /** The voting power */ + power?: string; +} +export interface ValidatorAminoMsg { + type: "/tendermint.abci.Validator"; + value: ValidatorAmino; +} +/** Validator */ +export interface ValidatorSDKType { + address: Uint8Array; + power: bigint; +} +/** ValidatorUpdate */ +export interface ValidatorUpdate { + pubKey: PublicKey; + power: bigint; +} +export interface ValidatorUpdateProtoMsg { + typeUrl: "/tendermint.abci.ValidatorUpdate"; + value: Uint8Array; +} +/** ValidatorUpdate */ +export interface ValidatorUpdateAmino { + pub_key?: PublicKeyAmino; + power?: string; +} +export interface ValidatorUpdateAminoMsg { + type: "/tendermint.abci.ValidatorUpdate"; + value: ValidatorUpdateAmino; +} +/** ValidatorUpdate */ +export interface ValidatorUpdateSDKType { + pub_key: PublicKeySDKType; + power: bigint; +} +/** VoteInfo */ +export interface VoteInfo { + validator: Validator; + signedLastBlock: boolean; +} +export interface VoteInfoProtoMsg { + typeUrl: "/tendermint.abci.VoteInfo"; + value: Uint8Array; +} +/** VoteInfo */ +export interface VoteInfoAmino { + validator?: ValidatorAmino; + signed_last_block?: boolean; +} +export interface VoteInfoAminoMsg { + type: "/tendermint.abci.VoteInfo"; + value: VoteInfoAmino; +} +/** VoteInfo */ +export interface VoteInfoSDKType { + validator: ValidatorSDKType; + signed_last_block: boolean; +} +export interface ExtendedVoteInfo { + validator: Validator; + signedLastBlock: boolean; + /** Reserved for future use */ + voteExtension: Uint8Array; +} +export interface ExtendedVoteInfoProtoMsg { + typeUrl: "/tendermint.abci.ExtendedVoteInfo"; + value: Uint8Array; +} +export interface ExtendedVoteInfoAmino { + validator?: ValidatorAmino; + signed_last_block?: boolean; + /** Reserved for future use */ + vote_extension?: string; +} +export interface ExtendedVoteInfoAminoMsg { + type: "/tendermint.abci.ExtendedVoteInfo"; + value: ExtendedVoteInfoAmino; +} +export interface ExtendedVoteInfoSDKType { + validator: ValidatorSDKType; + signed_last_block: boolean; + vote_extension: Uint8Array; +} +export interface Misbehavior { + type: MisbehaviorType; + /** The offending validator */ + validator: Validator; + /** The height when the offense occurred */ + height: bigint; + /** The corresponding time where the offense occurred */ + time: Date; + /** + * Total voting power of the validator set in case the ABCI application does + * not store historical validators. + * https://github.com/tendermint/tendermint/issues/4581 + */ + totalVotingPower: bigint; +} +export interface MisbehaviorProtoMsg { + typeUrl: "/tendermint.abci.Misbehavior"; + value: Uint8Array; +} +export interface MisbehaviorAmino { + type?: MisbehaviorType; + /** The offending validator */ + validator?: ValidatorAmino; + /** The height when the offense occurred */ + height?: string; + /** The corresponding time where the offense occurred */ + time?: string; + /** + * Total voting power of the validator set in case the ABCI application does + * not store historical validators. + * https://github.com/tendermint/tendermint/issues/4581 + */ + total_voting_power?: string; +} +export interface MisbehaviorAminoMsg { + type: "/tendermint.abci.Misbehavior"; + value: MisbehaviorAmino; +} +export interface MisbehaviorSDKType { + type: MisbehaviorType; + validator: ValidatorSDKType; + height: bigint; + time: Date; + total_voting_power: bigint; +} +export interface Snapshot { + /** The height at which the snapshot was taken */ + height: bigint; + /** The application-specific snapshot format */ + format: number; + /** Number of chunks in the snapshot */ + chunks: number; + /** Arbitrary snapshot hash, equal only if identical */ + hash: Uint8Array; + /** Arbitrary application metadata */ + metadata: Uint8Array; +} +export interface SnapshotProtoMsg { + typeUrl: "/tendermint.abci.Snapshot"; + value: Uint8Array; +} +export interface SnapshotAmino { + /** The height at which the snapshot was taken */ + height?: string; + /** The application-specific snapshot format */ + format?: number; + /** Number of chunks in the snapshot */ + chunks?: number; + /** Arbitrary snapshot hash, equal only if identical */ + hash?: string; + /** Arbitrary application metadata */ + metadata?: string; +} +export interface SnapshotAminoMsg { + type: "/tendermint.abci.Snapshot"; + value: SnapshotAmino; +} +export interface SnapshotSDKType { + height: bigint; + format: number; + chunks: number; + hash: Uint8Array; + metadata: Uint8Array; +} +function createBaseRequest(): Request { + return { + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +export const Request = { + typeUrl: "/tendermint.abci.Request", + encode(message: Request, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.echo !== undefined) { + RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); + } + if (message.flush !== undefined) { + RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); + } + if (message.info !== undefined) { + RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); + } + if (message.initChain !== undefined) { + RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); + } + if (message.query !== undefined) { + RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); + } + if (message.commit !== undefined) { + RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Request { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.echo = RequestEcho.decode(reader, reader.uint32()); + break; + case 2: + message.flush = RequestFlush.decode(reader, reader.uint32()); + break; + case 3: + message.info = RequestInfo.decode(reader, reader.uint32()); + break; + case 5: + message.initChain = RequestInitChain.decode(reader, reader.uint32()); + break; + case 6: + message.query = RequestQuery.decode(reader, reader.uint32()); + break; + case 7: + message.beginBlock = RequestBeginBlock.decode(reader, reader.uint32()); + break; + case 8: + message.checkTx = RequestCheckTx.decode(reader, reader.uint32()); + break; + case 9: + message.deliverTx = RequestDeliverTx.decode(reader, reader.uint32()); + break; + case 10: + message.endBlock = RequestEndBlock.decode(reader, reader.uint32()); + break; + case 11: + message.commit = RequestCommit.decode(reader, reader.uint32()); + break; + case 12: + message.listSnapshots = RequestListSnapshots.decode(reader, reader.uint32()); + break; + case 13: + message.offerSnapshot = RequestOfferSnapshot.decode(reader, reader.uint32()); + break; + case 14: + message.loadSnapshotChunk = RequestLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 15: + message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32()); + break; + case 17: + message.processProposal = RequestProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Request { + const message = createBaseRequest(); + message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? RequestInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? RequestInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? RequestQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? RequestBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? RequestCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? RequestDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? RequestEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? RequestCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? RequestProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object: RequestAmino): Request { + const message = createBaseRequest(); + if (object.echo !== undefined && object.echo !== null) { + message.echo = RequestEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = RequestFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = RequestInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = RequestInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = RequestQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = RequestBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = RequestCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = RequestDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = RequestEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = RequestCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = RequestListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = RequestOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = RequestPrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = RequestProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message: Request): RequestAmino { + const obj: any = {}; + obj.echo = message.echo ? RequestEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? RequestFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? RequestInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? RequestInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? RequestQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? RequestBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? RequestCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? RequestDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? RequestEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? RequestCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? RequestListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? RequestProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object: RequestAminoMsg): Request { + return Request.fromAmino(object.value); + }, + fromProtoMsg(message: RequestProtoMsg): Request { + return Request.decode(message.value); + }, + toProto(message: Request): Uint8Array { + return Request.encode(message).finish(); + }, + toProtoMsg(message: Request): RequestProtoMsg { + return { + typeUrl: "/tendermint.abci.Request", + value: Request.encode(message).finish() + }; + } +}; +function createBaseRequestEcho(): RequestEcho { + return { + message: "" + }; +} +export const RequestEcho = { + typeUrl: "/tendermint.abci.RequestEcho", + encode(message: RequestEcho, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestEcho { + const message = createBaseRequestEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object: RequestEchoAmino): RequestEcho { + const message = createBaseRequestEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message: RequestEcho): RequestEchoAmino { + const obj: any = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho { + return RequestEcho.fromAmino(object.value); + }, + fromProtoMsg(message: RequestEchoProtoMsg): RequestEcho { + return RequestEcho.decode(message.value); + }, + toProto(message: RequestEcho): Uint8Array { + return RequestEcho.encode(message).finish(); + }, + toProtoMsg(message: RequestEcho): RequestEchoProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestEcho", + value: RequestEcho.encode(message).finish() + }; + } +}; +function createBaseRequestFlush(): RequestFlush { + return {}; +} +export const RequestFlush = { + typeUrl: "/tendermint.abci.RequestFlush", + encode(_: RequestFlush, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): RequestFlush { + const message = createBaseRequestFlush(); + return message; + }, + fromAmino(_: RequestFlushAmino): RequestFlush { + const message = createBaseRequestFlush(); + return message; + }, + toAmino(_: RequestFlush): RequestFlushAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: RequestFlushAminoMsg): RequestFlush { + return RequestFlush.fromAmino(object.value); + }, + fromProtoMsg(message: RequestFlushProtoMsg): RequestFlush { + return RequestFlush.decode(message.value); + }, + toProto(message: RequestFlush): Uint8Array { + return RequestFlush.encode(message).finish(); + }, + toProtoMsg(message: RequestFlush): RequestFlushProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestFlush", + value: RequestFlush.encode(message).finish() + }; + } +}; +function createBaseRequestInfo(): RequestInfo { + return { + version: "", + blockVersion: BigInt(0), + p2pVersion: BigInt(0), + abciVersion: "" + }; +} +export const RequestInfo = { + typeUrl: "/tendermint.abci.RequestInfo", + encode(message: RequestInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.version !== "") { + writer.uint32(10).string(message.version); + } + if (message.blockVersion !== BigInt(0)) { + writer.uint32(16).uint64(message.blockVersion); + } + if (message.p2pVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.p2pVersion); + } + if (message.abciVersion !== "") { + writer.uint32(34).string(message.abciVersion); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.blockVersion = reader.uint64(); + break; + case 3: + message.p2pVersion = reader.uint64(); + break; + case 4: + message.abciVersion = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestInfo { + const message = createBaseRequestInfo(); + message.version = object.version ?? ""; + message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); + message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); + message.abciVersion = object.abciVersion ?? ""; + return message; + }, + fromAmino(object: RequestInfoAmino): RequestInfo { + const message = createBaseRequestInfo(); + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.block_version !== undefined && object.block_version !== null) { + message.blockVersion = BigInt(object.block_version); + } + if (object.p2p_version !== undefined && object.p2p_version !== null) { + message.p2pVersion = BigInt(object.p2p_version); + } + if (object.abci_version !== undefined && object.abci_version !== null) { + message.abciVersion = object.abci_version; + } + return message; + }, + toAmino(message: RequestInfo): RequestInfoAmino { + const obj: any = {}; + obj.version = message.version === "" ? undefined : message.version; + obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; + obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; + obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; + return obj; + }, + fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo { + return RequestInfo.fromAmino(object.value); + }, + fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo { + return RequestInfo.decode(message.value); + }, + toProto(message: RequestInfo): Uint8Array { + return RequestInfo.encode(message).finish(); + }, + toProtoMsg(message: RequestInfo): RequestInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestInfo", + value: RequestInfo.encode(message).finish() + }; + } +}; +function createBaseRequestInitChain(): RequestInitChain { + return { + time: new Date(), + chainId: "", + consensusParams: undefined, + validators: [], + appStateBytes: new Uint8Array(), + initialHeight: BigInt(0) + }; +} +export const RequestInitChain = { + typeUrl: "/tendermint.abci.RequestInitChain", + encode(message: RequestInitChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.consensusParams !== undefined) { + ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.validators) { + ValidatorUpdate.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.appStateBytes.length !== 0) { + writer.uint32(42).bytes(message.appStateBytes); + } + if (message.initialHeight !== BigInt(0)) { + writer.uint32(48).int64(message.initialHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); + break; + case 4: + message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 5: + message.appStateBytes = reader.bytes(); + break; + case 6: + message.initialHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestInitChain { + const message = createBaseRequestInitChain(); + message.time = object.time ?? undefined; + message.chainId = object.chainId ?? ""; + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.appStateBytes = object.appStateBytes ?? new Uint8Array(); + message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object: RequestInitChainAmino): RequestInitChain { + const message = createBaseRequestInitChain(); + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { + message.appStateBytes = bytesFromBase64(object.app_state_bytes); + } + if (object.initial_height !== undefined && object.initial_height !== null) { + message.initialHeight = BigInt(object.initial_height); + } + return message; + }, + toAmino(message: RequestInitChain): RequestInitChainAmino { + const obj: any = {}; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + obj.app_state_bytes = message.appStateBytes ? base64FromBytes(message.appStateBytes) : undefined; + obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain { + return RequestInitChain.fromAmino(object.value); + }, + fromProtoMsg(message: RequestInitChainProtoMsg): RequestInitChain { + return RequestInitChain.decode(message.value); + }, + toProto(message: RequestInitChain): Uint8Array { + return RequestInitChain.encode(message).finish(); + }, + toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestInitChain", + value: RequestInitChain.encode(message).finish() + }; + } +}; +function createBaseRequestQuery(): RequestQuery { + return { + data: new Uint8Array(), + path: "", + height: BigInt(0), + prove: false + }; +} +export const RequestQuery = { + typeUrl: "/tendermint.abci.RequestQuery", + encode(message: RequestQuery, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.data.length !== 0) { + writer.uint32(10).bytes(message.data); + } + if (message.path !== "") { + writer.uint32(18).string(message.path); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.prove === true) { + writer.uint32(32).bool(message.prove); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.bytes(); + break; + case 2: + message.path = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.prove = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestQuery { + const message = createBaseRequestQuery(); + message.data = object.data ?? new Uint8Array(); + message.path = object.path ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.prove = object.prove ?? false; + return message; + }, + fromAmino(object: RequestQueryAmino): RequestQuery { + const message = createBaseRequestQuery(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.path !== undefined && object.path !== null) { + message.path = object.path; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.prove !== undefined && object.prove !== null) { + message.prove = object.prove; + } + return message; + }, + toAmino(message: RequestQuery): RequestQueryAmino { + const obj: any = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.path = message.path === "" ? undefined : message.path; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.prove = message.prove === false ? undefined : message.prove; + return obj; + }, + fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery { + return RequestQuery.fromAmino(object.value); + }, + fromProtoMsg(message: RequestQueryProtoMsg): RequestQuery { + return RequestQuery.decode(message.value); + }, + toProto(message: RequestQuery): Uint8Array { + return RequestQuery.encode(message).finish(); + }, + toProtoMsg(message: RequestQuery): RequestQueryProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestQuery", + value: RequestQuery.encode(message).finish() + }; + } +}; +function createBaseRequestBeginBlock(): RequestBeginBlock { + return { + hash: new Uint8Array(), + header: Header.fromPartial({}), + lastCommitInfo: CommitInfo.fromPartial({}), + byzantineValidators: [] + }; +} +export const RequestBeginBlock = { + typeUrl: "/tendermint.abci.RequestBeginBlock", + encode(message: RequestBeginBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(18).fork()).ldelim(); + } + if (message.lastCommitInfo !== undefined) { + CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.byzantineValidators) { + Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.header = Header.decode(reader, reader.uint32()); + break; + case 3: + message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestBeginBlock { + const message = createBaseRequestBeginBlock(); + message.hash = object.hash ?? new Uint8Array(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? CommitInfo.fromPartial(object.lastCommitInfo) : undefined; + message.byzantineValidators = object.byzantineValidators?.map(e => Misbehavior.fromPartial(e)) || []; + return message; + }, + fromAmino(object: RequestBeginBlockAmino): RequestBeginBlock { + const message = createBaseRequestBeginBlock(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.last_commit_info !== undefined && object.last_commit_info !== null) { + message.lastCommitInfo = CommitInfo.fromAmino(object.last_commit_info); + } + message.byzantineValidators = object.byzantine_validators?.map(e => Misbehavior.fromAmino(e)) || []; + return message; + }, + toAmino(message: RequestBeginBlock): RequestBeginBlockAmino { + const obj: any = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.last_commit_info = message.lastCommitInfo ? CommitInfo.toAmino(message.lastCommitInfo) : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? Misbehavior.toAmino(e) : undefined); + } else { + obj.byzantine_validators = message.byzantineValidators; + } + return obj; + }, + fromAminoMsg(object: RequestBeginBlockAminoMsg): RequestBeginBlock { + return RequestBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message: RequestBeginBlockProtoMsg): RequestBeginBlock { + return RequestBeginBlock.decode(message.value); + }, + toProto(message: RequestBeginBlock): Uint8Array { + return RequestBeginBlock.encode(message).finish(); + }, + toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestBeginBlock", + value: RequestBeginBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCheckTx(): RequestCheckTx { + return { + tx: new Uint8Array(), + type: 0 + }; +} +export const RequestCheckTx = { + typeUrl: "/tendermint.abci.RequestCheckTx", + encode(message: RequestCheckTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + if (message.type !== 0) { + writer.uint32(16).int32(message.type); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + case 2: + message.type = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestCheckTx { + const message = createBaseRequestCheckTx(); + message.tx = object.tx ?? new Uint8Array(); + message.type = object.type ?? 0; + return message; + }, + fromAmino(object: RequestCheckTxAmino): RequestCheckTx { + const message = createBaseRequestCheckTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + return message; + }, + toAmino(message: RequestCheckTx): RequestCheckTxAmino { + const obj: any = {}; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + obj.type = message.type === 0 ? undefined : message.type; + return obj; + }, + fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx { + return RequestCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message: RequestCheckTxProtoMsg): RequestCheckTx { + return RequestCheckTx.decode(message.value); + }, + toProto(message: RequestCheckTx): Uint8Array { + return RequestCheckTx.encode(message).finish(); + }, + toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestCheckTx", + value: RequestCheckTx.encode(message).finish() + }; + } +}; +function createBaseRequestDeliverTx(): RequestDeliverTx { + return { + tx: new Uint8Array() + }; +} +export const RequestDeliverTx = { + typeUrl: "/tendermint.abci.RequestDeliverTx", + encode(message: RequestDeliverTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.tx.length !== 0) { + writer.uint32(10).bytes(message.tx); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestDeliverTx { + const message = createBaseRequestDeliverTx(); + message.tx = object.tx ?? new Uint8Array(); + return message; + }, + fromAmino(object: RequestDeliverTxAmino): RequestDeliverTx { + const message = createBaseRequestDeliverTx(); + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + return message; + }, + toAmino(message: RequestDeliverTx): RequestDeliverTxAmino { + const obj: any = {}; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + return obj; + }, + fromAminoMsg(object: RequestDeliverTxAminoMsg): RequestDeliverTx { + return RequestDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message: RequestDeliverTxProtoMsg): RequestDeliverTx { + return RequestDeliverTx.decode(message.value); + }, + toProto(message: RequestDeliverTx): Uint8Array { + return RequestDeliverTx.encode(message).finish(); + }, + toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestDeliverTx", + value: RequestDeliverTx.encode(message).finish() + }; + } +}; +function createBaseRequestEndBlock(): RequestEndBlock { + return { + height: BigInt(0) + }; +} +export const RequestEndBlock = { + typeUrl: "/tendermint.abci.RequestEndBlock", + encode(message: RequestEndBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestEndBlock { + const message = createBaseRequestEndBlock(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + return message; + }, + fromAmino(object: RequestEndBlockAmino): RequestEndBlock { + const message = createBaseRequestEndBlock(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + return message; + }, + toAmino(message: RequestEndBlock): RequestEndBlockAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + return obj; + }, + fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock { + return RequestEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message: RequestEndBlockProtoMsg): RequestEndBlock { + return RequestEndBlock.decode(message.value); + }, + toProto(message: RequestEndBlock): Uint8Array { + return RequestEndBlock.encode(message).finish(); + }, + toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestEndBlock", + value: RequestEndBlock.encode(message).finish() + }; + } +}; +function createBaseRequestCommit(): RequestCommit { + return {}; +} +export const RequestCommit = { + typeUrl: "/tendermint.abci.RequestCommit", + encode(_: RequestCommit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): RequestCommit { + const message = createBaseRequestCommit(); + return message; + }, + fromAmino(_: RequestCommitAmino): RequestCommit { + const message = createBaseRequestCommit(); + return message; + }, + toAmino(_: RequestCommit): RequestCommitAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: RequestCommitAminoMsg): RequestCommit { + return RequestCommit.fromAmino(object.value); + }, + fromProtoMsg(message: RequestCommitProtoMsg): RequestCommit { + return RequestCommit.decode(message.value); + }, + toProto(message: RequestCommit): Uint8Array { + return RequestCommit.encode(message).finish(); + }, + toProtoMsg(message: RequestCommit): RequestCommitProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestCommit", + value: RequestCommit.encode(message).finish() + }; + } +}; +function createBaseRequestListSnapshots(): RequestListSnapshots { + return {}; +} +export const RequestListSnapshots = { + typeUrl: "/tendermint.abci.RequestListSnapshots", + encode(_: RequestListSnapshots, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): RequestListSnapshots { + const message = createBaseRequestListSnapshots(); + return message; + }, + fromAmino(_: RequestListSnapshotsAmino): RequestListSnapshots { + const message = createBaseRequestListSnapshots(); + return message; + }, + toAmino(_: RequestListSnapshots): RequestListSnapshotsAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: RequestListSnapshotsAminoMsg): RequestListSnapshots { + return RequestListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message: RequestListSnapshotsProtoMsg): RequestListSnapshots { + return RequestListSnapshots.decode(message.value); + }, + toProto(message: RequestListSnapshots): Uint8Array { + return RequestListSnapshots.encode(message).finish(); + }, + toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestListSnapshots", + value: RequestListSnapshots.encode(message).finish() + }; + } +}; +function createBaseRequestOfferSnapshot(): RequestOfferSnapshot { + return { + snapshot: undefined, + appHash: new Uint8Array() + }; +} +export const RequestOfferSnapshot = { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + encode(message: RequestOfferSnapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.snapshot !== undefined) { + Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(18).bytes(message.appHash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshot = Snapshot.decode(reader, reader.uint32()); + break; + case 2: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestOfferSnapshot { + const message = createBaseRequestOfferSnapshot(); + message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object: RequestOfferSnapshotAmino): RequestOfferSnapshot { + const message = createBaseRequestOfferSnapshot(); + if (object.snapshot !== undefined && object.snapshot !== null) { + message.snapshot = Snapshot.fromAmino(object.snapshot); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + return message; + }, + toAmino(message: RequestOfferSnapshot): RequestOfferSnapshotAmino { + const obj: any = {}; + obj.snapshot = message.snapshot ? Snapshot.toAmino(message.snapshot) : undefined; + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object: RequestOfferSnapshotAminoMsg): RequestOfferSnapshot { + return RequestOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message: RequestOfferSnapshotProtoMsg): RequestOfferSnapshot { + return RequestOfferSnapshot.decode(message.value); + }, + toProto(message: RequestOfferSnapshot): Uint8Array { + return RequestOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestOfferSnapshot", + value: RequestOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseRequestLoadSnapshotChunk(): RequestLoadSnapshotChunk { + return { + height: BigInt(0), + format: 0, + chunk: 0 + }; +} +export const RequestLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + encode(message: RequestLoadSnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunk !== 0) { + writer.uint32(24).uint32(message.chunk); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunk = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestLoadSnapshotChunk { + const message = createBaseRequestLoadSnapshotChunk(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunk = object.chunk ?? 0; + return message; + }, + fromAmino(object: RequestLoadSnapshotChunkAmino): RequestLoadSnapshotChunk { + const message = createBaseRequestLoadSnapshotChunk(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = object.chunk; + } + return message; + }, + toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunk = message.chunk === 0 ? undefined : message.chunk; + return obj; + }, + fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk { + return RequestLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message: RequestLoadSnapshotChunkProtoMsg): RequestLoadSnapshotChunk { + return RequestLoadSnapshotChunk.decode(message.value); + }, + toProto(message: RequestLoadSnapshotChunk): Uint8Array { + return RequestLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", + value: RequestLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestApplySnapshotChunk(): RequestApplySnapshotChunk { + return { + index: 0, + chunk: new Uint8Array(), + sender: "" + }; +} +export const RequestApplySnapshotChunk = { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + encode(message: RequestApplySnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.chunk.length !== 0) { + writer.uint32(18).bytes(message.chunk); + } + if (message.sender !== "") { + writer.uint32(26).string(message.sender); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.chunk = reader.bytes(); + break; + case 3: + message.sender = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestApplySnapshotChunk { + const message = createBaseRequestApplySnapshotChunk(); + message.index = object.index ?? 0; + message.chunk = object.chunk ?? new Uint8Array(); + message.sender = object.sender ?? ""; + return message; + }, + fromAmino(object: RequestApplySnapshotChunkAmino): RequestApplySnapshotChunk { + const message = createBaseRequestApplySnapshotChunk(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = bytesFromBase64(object.chunk); + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + return message; + }, + toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino { + const obj: any = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + return obj; + }, + fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk { + return RequestApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message: RequestApplySnapshotChunkProtoMsg): RequestApplySnapshotChunk { + return RequestApplySnapshotChunk.decode(message.value); + }, + toProto(message: RequestApplySnapshotChunk): Uint8Array { + return RequestApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", + value: RequestApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseRequestPrepareProposal(): RequestPrepareProposal { + return { + maxTxBytes: BigInt(0), + txs: [], + localLastCommit: ExtendedCommitInfo.fromPartial({}), + misbehavior: [], + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const RequestPrepareProposal = { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + encode(message: RequestPrepareProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxTxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxTxBytes); + } + for (const v of message.txs) { + writer.uint32(18).bytes(v!); + } + if (message.localLastCommit !== undefined) { + ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.misbehavior) { + Misbehavior.encode(v!, writer.uint32(34).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestPrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxTxBytes = reader.int64(); + break; + case 2: + message.txs.push(reader.bytes()); + break; + case 3: + message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32()); + break; + case 4: + message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestPrepareProposal { + const message = createBaseRequestPrepareProposal(); + message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); + message.txs = object.txs?.map(e => e) || []; + message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object: RequestPrepareProposalAmino): RequestPrepareProposal { + const message = createBaseRequestPrepareProposal(); + if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { + message.maxTxBytes = BigInt(object.max_tx_bytes); + } + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + if (object.local_last_commit !== undefined && object.local_last_commit !== null) { + message.localLastCommit = ExtendedCommitInfo.fromAmino(object.local_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message: RequestPrepareProposal): RequestPrepareProposalAmino { + const obj: any = {}; + obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } else { + obj.txs = message.txs; + } + obj.local_last_commit = message.localLastCommit ? ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); + } else { + obj.misbehavior = message.misbehavior; + } + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object: RequestPrepareProposalAminoMsg): RequestPrepareProposal { + return RequestPrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message: RequestPrepareProposalProtoMsg): RequestPrepareProposal { + return RequestPrepareProposal.decode(message.value); + }, + toProto(message: RequestPrepareProposal): Uint8Array { + return RequestPrepareProposal.encode(message).finish(); + }, + toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestPrepareProposal", + value: RequestPrepareProposal.encode(message).finish() + }; + } +}; +function createBaseRequestProcessProposal(): RequestProcessProposal { + return { + txs: [], + proposedLastCommit: CommitInfo.fromPartial({}), + misbehavior: [], + hash: new Uint8Array(), + height: BigInt(0), + time: new Date(), + nextValidatorsHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const RequestProcessProposal = { + typeUrl: "/tendermint.abci.RequestProcessProposal", + encode(message: RequestProcessProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.txs) { + writer.uint32(10).bytes(v!); + } + if (message.proposedLastCommit !== undefined) { + CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.misbehavior) { + Misbehavior.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.height !== BigInt(0)) { + writer.uint32(40).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(58).bytes(message.nextValidatorsHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(66).bytes(message.proposerAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequestProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + case 2: + message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32()); + break; + case 3: + message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.height = reader.int64(); + break; + case 6: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.nextValidatorsHash = reader.bytes(); + break; + case 8: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): RequestProcessProposal { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => e) || []; + message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? CommitInfo.fromPartial(object.proposedLastCommit) : undefined; + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; + message.hash = object.hash ?? new Uint8Array(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object: RequestProcessProposalAmino): RequestProcessProposal { + const message = createBaseRequestProcessProposal(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { + message.proposedLastCommit = CommitInfo.fromAmino(object.proposed_last_commit); + } + message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message: RequestProcessProposal): RequestProcessProposalAmino { + const obj: any = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } else { + obj.txs = message.txs; + } + obj.proposed_last_commit = message.proposedLastCommit ? CommitInfo.toAmino(message.proposedLastCommit) : undefined; + if (message.misbehavior) { + obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); + } else { + obj.misbehavior = message.misbehavior; + } + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object: RequestProcessProposalAminoMsg): RequestProcessProposal { + return RequestProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message: RequestProcessProposalProtoMsg): RequestProcessProposal { + return RequestProcessProposal.decode(message.value); + }, + toProto(message: RequestProcessProposal): Uint8Array { + return RequestProcessProposal.encode(message).finish(); + }, + toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg { + return { + typeUrl: "/tendermint.abci.RequestProcessProposal", + value: RequestProcessProposal.encode(message).finish() + }; + } +}; +function createBaseResponse(): Response { + return { + exception: undefined, + echo: undefined, + flush: undefined, + info: undefined, + initChain: undefined, + query: undefined, + beginBlock: undefined, + checkTx: undefined, + deliverTx: undefined, + endBlock: undefined, + commit: undefined, + listSnapshots: undefined, + offerSnapshot: undefined, + loadSnapshotChunk: undefined, + applySnapshotChunk: undefined, + prepareProposal: undefined, + processProposal: undefined + }; +} +export const Response = { + typeUrl: "/tendermint.abci.Response", + encode(message: Response, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.exception !== undefined) { + ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); + } + if (message.echo !== undefined) { + ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); + } + if (message.flush !== undefined) { + ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); + } + if (message.info !== undefined) { + ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); + } + if (message.initChain !== undefined) { + ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); + } + if (message.query !== undefined) { + ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); + } + if (message.beginBlock !== undefined) { + ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); + } + if (message.checkTx !== undefined) { + ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); + } + if (message.deliverTx !== undefined) { + ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); + } + if (message.endBlock !== undefined) { + ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); + } + if (message.commit !== undefined) { + ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); + } + if (message.listSnapshots !== undefined) { + ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); + } + if (message.offerSnapshot !== undefined) { + ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); + } + if (message.loadSnapshotChunk !== undefined) { + ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); + } + if (message.applySnapshotChunk !== undefined) { + ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); + } + if (message.prepareProposal !== undefined) { + ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); + } + if (message.processProposal !== undefined) { + ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Response { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exception = ResponseException.decode(reader, reader.uint32()); + break; + case 2: + message.echo = ResponseEcho.decode(reader, reader.uint32()); + break; + case 3: + message.flush = ResponseFlush.decode(reader, reader.uint32()); + break; + case 4: + message.info = ResponseInfo.decode(reader, reader.uint32()); + break; + case 6: + message.initChain = ResponseInitChain.decode(reader, reader.uint32()); + break; + case 7: + message.query = ResponseQuery.decode(reader, reader.uint32()); + break; + case 8: + message.beginBlock = ResponseBeginBlock.decode(reader, reader.uint32()); + break; + case 9: + message.checkTx = ResponseCheckTx.decode(reader, reader.uint32()); + break; + case 10: + message.deliverTx = ResponseDeliverTx.decode(reader, reader.uint32()); + break; + case 11: + message.endBlock = ResponseEndBlock.decode(reader, reader.uint32()); + break; + case 12: + message.commit = ResponseCommit.decode(reader, reader.uint32()); + break; + case 13: + message.listSnapshots = ResponseListSnapshots.decode(reader, reader.uint32()); + break; + case 14: + message.offerSnapshot = ResponseOfferSnapshot.decode(reader, reader.uint32()); + break; + case 15: + message.loadSnapshotChunk = ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32()); + break; + case 17: + message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32()); + break; + case 18: + message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Response { + const message = createBaseResponse(); + message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined; + message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined; + message.flush = object.flush !== undefined && object.flush !== null ? ResponseFlush.fromPartial(object.flush) : undefined; + message.info = object.info !== undefined && object.info !== null ? ResponseInfo.fromPartial(object.info) : undefined; + message.initChain = object.initChain !== undefined && object.initChain !== null ? ResponseInitChain.fromPartial(object.initChain) : undefined; + message.query = object.query !== undefined && object.query !== null ? ResponseQuery.fromPartial(object.query) : undefined; + message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; + message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? ResponseCheckTx.fromPartial(object.checkTx) : undefined; + message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; + message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? ResponseEndBlock.fromPartial(object.endBlock) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? ResponseCommit.fromPartial(object.commit) : undefined; + message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; + message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; + message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; + message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; + message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; + message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? ResponseProcessProposal.fromPartial(object.processProposal) : undefined; + return message; + }, + fromAmino(object: ResponseAmino): Response { + const message = createBaseResponse(); + if (object.exception !== undefined && object.exception !== null) { + message.exception = ResponseException.fromAmino(object.exception); + } + if (object.echo !== undefined && object.echo !== null) { + message.echo = ResponseEcho.fromAmino(object.echo); + } + if (object.flush !== undefined && object.flush !== null) { + message.flush = ResponseFlush.fromAmino(object.flush); + } + if (object.info !== undefined && object.info !== null) { + message.info = ResponseInfo.fromAmino(object.info); + } + if (object.init_chain !== undefined && object.init_chain !== null) { + message.initChain = ResponseInitChain.fromAmino(object.init_chain); + } + if (object.query !== undefined && object.query !== null) { + message.query = ResponseQuery.fromAmino(object.query); + } + if (object.begin_block !== undefined && object.begin_block !== null) { + message.beginBlock = ResponseBeginBlock.fromAmino(object.begin_block); + } + if (object.check_tx !== undefined && object.check_tx !== null) { + message.checkTx = ResponseCheckTx.fromAmino(object.check_tx); + } + if (object.deliver_tx !== undefined && object.deliver_tx !== null) { + message.deliverTx = ResponseDeliverTx.fromAmino(object.deliver_tx); + } + if (object.end_block !== undefined && object.end_block !== null) { + message.endBlock = ResponseEndBlock.fromAmino(object.end_block); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = ResponseCommit.fromAmino(object.commit); + } + if (object.list_snapshots !== undefined && object.list_snapshots !== null) { + message.listSnapshots = ResponseListSnapshots.fromAmino(object.list_snapshots); + } + if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { + message.offerSnapshot = ResponseOfferSnapshot.fromAmino(object.offer_snapshot); + } + if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { + message.loadSnapshotChunk = ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { + message.applySnapshotChunk = ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); + } + if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { + message.prepareProposal = ResponsePrepareProposal.fromAmino(object.prepare_proposal); + } + if (object.process_proposal !== undefined && object.process_proposal !== null) { + message.processProposal = ResponseProcessProposal.fromAmino(object.process_proposal); + } + return message; + }, + toAmino(message: Response): ResponseAmino { + const obj: any = {}; + obj.exception = message.exception ? ResponseException.toAmino(message.exception) : undefined; + obj.echo = message.echo ? ResponseEcho.toAmino(message.echo) : undefined; + obj.flush = message.flush ? ResponseFlush.toAmino(message.flush) : undefined; + obj.info = message.info ? ResponseInfo.toAmino(message.info) : undefined; + obj.init_chain = message.initChain ? ResponseInitChain.toAmino(message.initChain) : undefined; + obj.query = message.query ? ResponseQuery.toAmino(message.query) : undefined; + obj.begin_block = message.beginBlock ? ResponseBeginBlock.toAmino(message.beginBlock) : undefined; + obj.check_tx = message.checkTx ? ResponseCheckTx.toAmino(message.checkTx) : undefined; + obj.deliver_tx = message.deliverTx ? ResponseDeliverTx.toAmino(message.deliverTx) : undefined; + obj.end_block = message.endBlock ? ResponseEndBlock.toAmino(message.endBlock) : undefined; + obj.commit = message.commit ? ResponseCommit.toAmino(message.commit) : undefined; + obj.list_snapshots = message.listSnapshots ? ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; + obj.offer_snapshot = message.offerSnapshot ? ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; + obj.load_snapshot_chunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; + obj.apply_snapshot_chunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; + obj.prepare_proposal = message.prepareProposal ? ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; + obj.process_proposal = message.processProposal ? ResponseProcessProposal.toAmino(message.processProposal) : undefined; + return obj; + }, + fromAminoMsg(object: ResponseAminoMsg): Response { + return Response.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseProtoMsg): Response { + return Response.decode(message.value); + }, + toProto(message: Response): Uint8Array { + return Response.encode(message).finish(); + }, + toProtoMsg(message: Response): ResponseProtoMsg { + return { + typeUrl: "/tendermint.abci.Response", + value: Response.encode(message).finish() + }; + } +}; +function createBaseResponseException(): ResponseException { + return { + error: "" + }; +} +export const ResponseException = { + typeUrl: "/tendermint.abci.ResponseException", + encode(message: ResponseException, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.error !== "") { + writer.uint32(10).string(message.error); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseException { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseException(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseException { + const message = createBaseResponseException(); + message.error = object.error ?? ""; + return message; + }, + fromAmino(object: ResponseExceptionAmino): ResponseException { + const message = createBaseResponseException(); + if (object.error !== undefined && object.error !== null) { + message.error = object.error; + } + return message; + }, + toAmino(message: ResponseException): ResponseExceptionAmino { + const obj: any = {}; + obj.error = message.error === "" ? undefined : message.error; + return obj; + }, + fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException { + return ResponseException.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseExceptionProtoMsg): ResponseException { + return ResponseException.decode(message.value); + }, + toProto(message: ResponseException): Uint8Array { + return ResponseException.encode(message).finish(); + }, + toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseException", + value: ResponseException.encode(message).finish() + }; + } +}; +function createBaseResponseEcho(): ResponseEcho { + return { + message: "" + }; +} +export const ResponseEcho = { + typeUrl: "/tendermint.abci.ResponseEcho", + encode(message: ResponseEcho, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.message !== "") { + writer.uint32(10).string(message.message); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEcho(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseEcho { + const message = createBaseResponseEcho(); + message.message = object.message ?? ""; + return message; + }, + fromAmino(object: ResponseEchoAmino): ResponseEcho { + const message = createBaseResponseEcho(); + if (object.message !== undefined && object.message !== null) { + message.message = object.message; + } + return message; + }, + toAmino(message: ResponseEcho): ResponseEchoAmino { + const obj: any = {}; + obj.message = message.message === "" ? undefined : message.message; + return obj; + }, + fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho { + return ResponseEcho.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseEchoProtoMsg): ResponseEcho { + return ResponseEcho.decode(message.value); + }, + toProto(message: ResponseEcho): Uint8Array { + return ResponseEcho.encode(message).finish(); + }, + toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseEcho", + value: ResponseEcho.encode(message).finish() + }; + } +}; +function createBaseResponseFlush(): ResponseFlush { + return {}; +} +export const ResponseFlush = { + typeUrl: "/tendermint.abci.ResponseFlush", + encode(_: ResponseFlush, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseFlush(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): ResponseFlush { + const message = createBaseResponseFlush(); + return message; + }, + fromAmino(_: ResponseFlushAmino): ResponseFlush { + const message = createBaseResponseFlush(); + return message; + }, + toAmino(_: ResponseFlush): ResponseFlushAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ResponseFlushAminoMsg): ResponseFlush { + return ResponseFlush.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseFlushProtoMsg): ResponseFlush { + return ResponseFlush.decode(message.value); + }, + toProto(message: ResponseFlush): Uint8Array { + return ResponseFlush.encode(message).finish(); + }, + toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseFlush", + value: ResponseFlush.encode(message).finish() + }; + } +}; +function createBaseResponseInfo(): ResponseInfo { + return { + data: "", + version: "", + appVersion: BigInt(0), + lastBlockHeight: BigInt(0), + lastBlockAppHash: new Uint8Array() + }; +} +export const ResponseInfo = { + typeUrl: "/tendermint.abci.ResponseInfo", + encode(message: ResponseInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.data !== "") { + writer.uint32(10).string(message.data); + } + if (message.version !== "") { + writer.uint32(18).string(message.version); + } + if (message.appVersion !== BigInt(0)) { + writer.uint32(24).uint64(message.appVersion); + } + if (message.lastBlockHeight !== BigInt(0)) { + writer.uint32(32).int64(message.lastBlockHeight); + } + if (message.lastBlockAppHash.length !== 0) { + writer.uint32(42).bytes(message.lastBlockAppHash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.data = reader.string(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.appVersion = reader.uint64(); + break; + case 4: + message.lastBlockHeight = reader.int64(); + break; + case 5: + message.lastBlockAppHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseInfo { + const message = createBaseResponseInfo(); + message.data = object.data ?? ""; + message.version = object.version ?? ""; + message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); + message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); + message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); + return message; + }, + fromAmino(object: ResponseInfoAmino): ResponseInfo { + const message = createBaseResponseInfo(); + if (object.data !== undefined && object.data !== null) { + message.data = object.data; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.app_version !== undefined && object.app_version !== null) { + message.appVersion = BigInt(object.app_version); + } + if (object.last_block_height !== undefined && object.last_block_height !== null) { + message.lastBlockHeight = BigInt(object.last_block_height); + } + if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { + message.lastBlockAppHash = bytesFromBase64(object.last_block_app_hash); + } + return message; + }, + toAmino(message: ResponseInfo): ResponseInfoAmino { + const obj: any = {}; + obj.data = message.data === "" ? undefined : message.data; + obj.version = message.version === "" ? undefined : message.version; + obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; + obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; + obj.last_block_app_hash = message.lastBlockAppHash ? base64FromBytes(message.lastBlockAppHash) : undefined; + return obj; + }, + fromAminoMsg(object: ResponseInfoAminoMsg): ResponseInfo { + return ResponseInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseInfoProtoMsg): ResponseInfo { + return ResponseInfo.decode(message.value); + }, + toProto(message: ResponseInfo): Uint8Array { + return ResponseInfo.encode(message).finish(); + }, + toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseInfo", + value: ResponseInfo.encode(message).finish() + }; + } +}; +function createBaseResponseInitChain(): ResponseInitChain { + return { + consensusParams: undefined, + validators: [], + appHash: new Uint8Array() + }; +} +export const ResponseInitChain = { + typeUrl: "/tendermint.abci.ResponseInitChain", + encode(message: ResponseInitChain, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.consensusParams !== undefined) { + ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.validators) { + ValidatorUpdate.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.appHash.length !== 0) { + writer.uint32(26).bytes(message.appHash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseInitChain(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); + break; + case 2: + message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 3: + message.appHash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseInitChain { + const message = createBaseResponseInitChain(); + message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; + message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.appHash = object.appHash ?? new Uint8Array(); + return message; + }, + fromAmino(object: ResponseInitChainAmino): ResponseInitChain { + const message = createBaseResponseInitChain(); + if (object.consensus_params !== undefined && object.consensus_params !== null) { + message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); + } + message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + return message; + }, + toAmino(message: ResponseInitChain): ResponseInitChainAmino { + const obj: any = {}; + obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; + if (message.validators) { + obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + return obj; + }, + fromAminoMsg(object: ResponseInitChainAminoMsg): ResponseInitChain { + return ResponseInitChain.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseInitChainProtoMsg): ResponseInitChain { + return ResponseInitChain.decode(message.value); + }, + toProto(message: ResponseInitChain): Uint8Array { + return ResponseInitChain.encode(message).finish(); + }, + toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseInitChain", + value: ResponseInitChain.encode(message).finish() + }; + } +}; +function createBaseResponseQuery(): ResponseQuery { + return { + code: 0, + log: "", + info: "", + index: BigInt(0), + key: new Uint8Array(), + value: new Uint8Array(), + proofOps: undefined, + height: BigInt(0), + codespace: "" + }; +} +export const ResponseQuery = { + typeUrl: "/tendermint.abci.ResponseQuery", + encode(message: ResponseQuery, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.index !== BigInt(0)) { + writer.uint32(40).int64(message.index); + } + if (message.key.length !== 0) { + writer.uint32(50).bytes(message.key); + } + if (message.value.length !== 0) { + writer.uint32(58).bytes(message.value); + } + if (message.proofOps !== undefined) { + ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(72).int64(message.height); + } + if (message.codespace !== "") { + writer.uint32(82).string(message.codespace); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseQuery(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.index = reader.int64(); + break; + case 6: + message.key = reader.bytes(); + break; + case 7: + message.value = reader.bytes(); + break; + case 8: + message.proofOps = ProofOps.decode(reader, reader.uint32()); + break; + case 9: + message.height = reader.int64(); + break; + case 10: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseQuery { + const message = createBaseResponseQuery(); + message.code = object.code ?? 0; + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.key = object.key ?? new Uint8Array(); + message.value = object.value ?? new Uint8Array(); + message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object: ResponseQueryAmino): ResponseQuery { + const message = createBaseResponseQuery(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.value !== undefined && object.value !== null) { + message.value = bytesFromBase64(object.value); + } + if (object.proof_ops !== undefined && object.proof_ops !== null) { + message.proofOps = ProofOps.fromAmino(object.proof_ops); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message: ResponseQuery): ResponseQueryAmino { + const obj: any = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.value = message.value ? base64FromBytes(message.value) : undefined; + obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery { + return ResponseQuery.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseQueryProtoMsg): ResponseQuery { + return ResponseQuery.decode(message.value); + }, + toProto(message: ResponseQuery): Uint8Array { + return ResponseQuery.encode(message).finish(); + }, + toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseQuery", + value: ResponseQuery.encode(message).finish() + }; + } +}; +function createBaseResponseBeginBlock(): ResponseBeginBlock { + return { + events: [] + }; +} +export const ResponseBeginBlock = { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + encode(message: ResponseBeginBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.events) { + Event.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseBeginBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseBeginBlock { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ResponseBeginBlockAmino): ResponseBeginBlock { + const message = createBaseResponseBeginBlock(); + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message: ResponseBeginBlock): ResponseBeginBlockAmino { + const obj: any = {}; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object: ResponseBeginBlockAminoMsg): ResponseBeginBlock { + return ResponseBeginBlock.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseBeginBlockProtoMsg): ResponseBeginBlock { + return ResponseBeginBlock.decode(message.value); + }, + toProto(message: ResponseBeginBlock): Uint8Array { + return ResponseBeginBlock.encode(message).finish(); + }, + toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseBeginBlock", + value: ResponseBeginBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCheckTx(): ResponseCheckTx { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "", + sender: "", + priority: BigInt(0), + mempoolError: "" + }; +} +export const ResponseCheckTx = { + typeUrl: "/tendermint.abci.ResponseCheckTx", + encode(message: ResponseCheckTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + Event.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + if (message.sender !== "") { + writer.uint32(74).string(message.sender); + } + if (message.priority !== BigInt(0)) { + writer.uint32(80).int64(message.priority); + } + if (message.mempoolError !== "") { + writer.uint32(90).string(message.mempoolError); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCheckTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + case 9: + message.sender = reader.string(); + break; + case 10: + message.priority = reader.int64(); + break; + case 11: + message.mempoolError = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseCheckTx { + const message = createBaseResponseCheckTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + message.sender = object.sender ?? ""; + message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); + message.mempoolError = object.mempoolError ?? ""; + return message; + }, + fromAmino(object: ResponseCheckTxAmino): ResponseCheckTx { + const message = createBaseResponseCheckTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + if (object.sender !== undefined && object.sender !== null) { + message.sender = object.sender; + } + if (object.priority !== undefined && object.priority !== null) { + message.priority = BigInt(object.priority); + } + if (object.mempool_error !== undefined && object.mempool_error !== null) { + message.mempoolError = object.mempool_error; + } + return message; + }, + toAmino(message: ResponseCheckTx): ResponseCheckTxAmino { + const obj: any = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; + obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; + return obj; + }, + fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx { + return ResponseCheckTx.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseCheckTxProtoMsg): ResponseCheckTx { + return ResponseCheckTx.decode(message.value); + }, + toProto(message: ResponseCheckTx): Uint8Array { + return ResponseCheckTx.encode(message).finish(); + }, + toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseCheckTx", + value: ResponseCheckTx.encode(message).finish() + }; + } +}; +function createBaseResponseDeliverTx(): ResponseDeliverTx { + return { + code: 0, + data: new Uint8Array(), + log: "", + info: "", + gasWanted: BigInt(0), + gasUsed: BigInt(0), + events: [], + codespace: "" + }; +} +export const ResponseDeliverTx = { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + encode(message: ResponseDeliverTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.code !== 0) { + writer.uint32(8).uint32(message.code); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.log !== "") { + writer.uint32(26).string(message.log); + } + if (message.info !== "") { + writer.uint32(34).string(message.info); + } + if (message.gasWanted !== BigInt(0)) { + writer.uint32(40).int64(message.gasWanted); + } + if (message.gasUsed !== BigInt(0)) { + writer.uint32(48).int64(message.gasUsed); + } + for (const v of message.events) { + Event.encode(v!, writer.uint32(58).fork()).ldelim(); + } + if (message.codespace !== "") { + writer.uint32(66).string(message.codespace); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseDeliverTx(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.uint32(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gasWanted = reader.int64(); + break; + case 6: + message.gasUsed = reader.int64(); + break; + case 7: + message.events.push(Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseDeliverTx { + const message = createBaseResponseDeliverTx(); + message.code = object.code ?? 0; + message.data = object.data ?? new Uint8Array(); + message.log = object.log ?? ""; + message.info = object.info ?? ""; + message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); + message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + message.codespace = object.codespace ?? ""; + return message; + }, + fromAmino(object: ResponseDeliverTxAmino): ResponseDeliverTx { + const message = createBaseResponseDeliverTx(); + if (object.code !== undefined && object.code !== null) { + message.code = object.code; + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.log !== undefined && object.log !== null) { + message.log = object.log; + } + if (object.info !== undefined && object.info !== null) { + message.info = object.info; + } + if (object.gas_wanted !== undefined && object.gas_wanted !== null) { + message.gasWanted = BigInt(object.gas_wanted); + } + if (object.gas_used !== undefined && object.gas_used !== null) { + message.gasUsed = BigInt(object.gas_used); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + if (object.codespace !== undefined && object.codespace !== null) { + message.codespace = object.codespace; + } + return message; + }, + toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino { + const obj: any = {}; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + obj.codespace = message.codespace === "" ? undefined : message.codespace; + return obj; + }, + fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx { + return ResponseDeliverTx.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseDeliverTxProtoMsg): ResponseDeliverTx { + return ResponseDeliverTx.decode(message.value); + }, + toProto(message: ResponseDeliverTx): Uint8Array { + return ResponseDeliverTx.encode(message).finish(); + }, + toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseDeliverTx", + value: ResponseDeliverTx.encode(message).finish() + }; + } +}; +function createBaseResponseEndBlock(): ResponseEndBlock { + return { + validatorUpdates: [], + consensusParamUpdates: undefined, + events: [] + }; +} +export const ResponseEndBlock = { + typeUrl: "/tendermint.abci.ResponseEndBlock", + encode(message: ResponseEndBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validatorUpdates) { + ValidatorUpdate.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.consensusParamUpdates !== undefined) { + ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); + } + for (const v of message.events) { + Event.encode(v!, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseEndBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validatorUpdates.push(ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 2: + message.consensusParamUpdates = ConsensusParams.decode(reader, reader.uint32()); + break; + case 3: + message.events.push(Event.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseEndBlock { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || []; + message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; + message.events = object.events?.map(e => Event.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ResponseEndBlockAmino): ResponseEndBlock { + const message = createBaseResponseEndBlock(); + message.validatorUpdates = object.validator_updates?.map(e => ValidatorUpdate.fromAmino(e)) || []; + if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { + message.consensusParamUpdates = ConsensusParams.fromAmino(object.consensus_param_updates); + } + message.events = object.events?.map(e => Event.fromAmino(e)) || []; + return message; + }, + toAmino(message: ResponseEndBlock): ResponseEndBlockAmino { + const obj: any = {}; + if (message.validatorUpdates) { + obj.validator_updates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); + } else { + obj.validator_updates = message.validatorUpdates; + } + obj.consensus_param_updates = message.consensusParamUpdates ? ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; + if (message.events) { + obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); + } else { + obj.events = message.events; + } + return obj; + }, + fromAminoMsg(object: ResponseEndBlockAminoMsg): ResponseEndBlock { + return ResponseEndBlock.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseEndBlockProtoMsg): ResponseEndBlock { + return ResponseEndBlock.decode(message.value); + }, + toProto(message: ResponseEndBlock): Uint8Array { + return ResponseEndBlock.encode(message).finish(); + }, + toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseEndBlock", + value: ResponseEndBlock.encode(message).finish() + }; + } +}; +function createBaseResponseCommit(): ResponseCommit { + return { + data: new Uint8Array(), + retainHeight: BigInt(0) + }; +} +export const ResponseCommit = { + typeUrl: "/tendermint.abci.ResponseCommit", + encode(message: ResponseCommit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.retainHeight !== BigInt(0)) { + writer.uint32(24).int64(message.retainHeight); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.data = reader.bytes(); + break; + case 3: + message.retainHeight = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseCommit { + const message = createBaseResponseCommit(); + message.data = object.data ?? new Uint8Array(); + message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ResponseCommitAmino): ResponseCommit { + const message = createBaseResponseCommit(); + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.retain_height !== undefined && object.retain_height !== null) { + message.retainHeight = BigInt(object.retain_height); + } + return message; + }, + toAmino(message: ResponseCommit): ResponseCommitAmino { + const obj: any = {}; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit { + return ResponseCommit.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseCommitProtoMsg): ResponseCommit { + return ResponseCommit.decode(message.value); + }, + toProto(message: ResponseCommit): Uint8Array { + return ResponseCommit.encode(message).finish(); + }, + toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseCommit", + value: ResponseCommit.encode(message).finish() + }; + } +}; +function createBaseResponseListSnapshots(): ResponseListSnapshots { + return { + snapshots: [] + }; +} +export const ResponseListSnapshots = { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + encode(message: ResponseListSnapshots, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.snapshots) { + Snapshot.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseListSnapshots(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshots.push(Snapshot.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseListSnapshots { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ResponseListSnapshotsAmino): ResponseListSnapshots { + const message = createBaseResponseListSnapshots(); + message.snapshots = object.snapshots?.map(e => Snapshot.fromAmino(e)) || []; + return message; + }, + toAmino(message: ResponseListSnapshots): ResponseListSnapshotsAmino { + const obj: any = {}; + if (message.snapshots) { + obj.snapshots = message.snapshots.map(e => e ? Snapshot.toAmino(e) : undefined); + } else { + obj.snapshots = message.snapshots; + } + return obj; + }, + fromAminoMsg(object: ResponseListSnapshotsAminoMsg): ResponseListSnapshots { + return ResponseListSnapshots.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseListSnapshotsProtoMsg): ResponseListSnapshots { + return ResponseListSnapshots.decode(message.value); + }, + toProto(message: ResponseListSnapshots): Uint8Array { + return ResponseListSnapshots.encode(message).finish(); + }, + toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseListSnapshots", + value: ResponseListSnapshots.encode(message).finish() + }; + } +}; +function createBaseResponseOfferSnapshot(): ResponseOfferSnapshot { + return { + result: 0 + }; +} +export const ResponseOfferSnapshot = { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + encode(message: ResponseOfferSnapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseOfferSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseOfferSnapshot { + const message = createBaseResponseOfferSnapshot(); + message.result = object.result ?? 0; + return message; + }, + fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot { + const message = createBaseResponseOfferSnapshot(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + return message; + }, + toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino { + const obj: any = {}; + obj.result = message.result === 0 ? undefined : message.result; + return obj; + }, + fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot { + return ResponseOfferSnapshot.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseOfferSnapshotProtoMsg): ResponseOfferSnapshot { + return ResponseOfferSnapshot.decode(message.value); + }, + toProto(message: ResponseOfferSnapshot): Uint8Array { + return ResponseOfferSnapshot.encode(message).finish(); + }, + toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseOfferSnapshot", + value: ResponseOfferSnapshot.encode(message).finish() + }; + } +}; +function createBaseResponseLoadSnapshotChunk(): ResponseLoadSnapshotChunk { + return { + chunk: new Uint8Array() + }; +} +export const ResponseLoadSnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + encode(message: ResponseLoadSnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.chunk.length !== 0) { + writer.uint32(10).bytes(message.chunk); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseLoadSnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chunk = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseLoadSnapshotChunk { + const message = createBaseResponseLoadSnapshotChunk(); + message.chunk = object.chunk ?? new Uint8Array(); + return message; + }, + fromAmino(object: ResponseLoadSnapshotChunkAmino): ResponseLoadSnapshotChunk { + const message = createBaseResponseLoadSnapshotChunk(); + if (object.chunk !== undefined && object.chunk !== null) { + message.chunk = bytesFromBase64(object.chunk); + } + return message; + }, + toAmino(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkAmino { + const obj: any = {}; + obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; + return obj; + }, + fromAminoMsg(object: ResponseLoadSnapshotChunkAminoMsg): ResponseLoadSnapshotChunk { + return ResponseLoadSnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseLoadSnapshotChunkProtoMsg): ResponseLoadSnapshotChunk { + return ResponseLoadSnapshotChunk.decode(message.value); + }, + toProto(message: ResponseLoadSnapshotChunk): Uint8Array { + return ResponseLoadSnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", + value: ResponseLoadSnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponseApplySnapshotChunk(): ResponseApplySnapshotChunk { + return { + result: 0, + refetchChunks: [], + rejectSenders: [] + }; +} +export const ResponseApplySnapshotChunk = { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + encode(message: ResponseApplySnapshotChunk, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.result !== 0) { + writer.uint32(8).int32(message.result); + } + writer.uint32(18).fork(); + for (const v of message.refetchChunks) { + writer.uint32(v); + } + writer.ldelim(); + for (const v of message.rejectSenders) { + writer.uint32(26).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseApplySnapshotChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = (reader.int32() as any); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.refetchChunks.push(reader.uint32()); + } + } else { + message.refetchChunks.push(reader.uint32()); + } + break; + case 3: + message.rejectSenders.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseApplySnapshotChunk { + const message = createBaseResponseApplySnapshotChunk(); + message.result = object.result ?? 0; + message.refetchChunks = object.refetchChunks?.map(e => e) || []; + message.rejectSenders = object.rejectSenders?.map(e => e) || []; + return message; + }, + fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk { + const message = createBaseResponseApplySnapshotChunk(); + if (object.result !== undefined && object.result !== null) { + message.result = object.result; + } + message.refetchChunks = object.refetch_chunks?.map(e => e) || []; + message.rejectSenders = object.reject_senders?.map(e => e) || []; + return message; + }, + toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino { + const obj: any = {}; + obj.result = message.result === 0 ? undefined : message.result; + if (message.refetchChunks) { + obj.refetch_chunks = message.refetchChunks.map(e => e); + } else { + obj.refetch_chunks = message.refetchChunks; + } + if (message.rejectSenders) { + obj.reject_senders = message.rejectSenders.map(e => e); + } else { + obj.reject_senders = message.rejectSenders; + } + return obj; + }, + fromAminoMsg(object: ResponseApplySnapshotChunkAminoMsg): ResponseApplySnapshotChunk { + return ResponseApplySnapshotChunk.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseApplySnapshotChunkProtoMsg): ResponseApplySnapshotChunk { + return ResponseApplySnapshotChunk.decode(message.value); + }, + toProto(message: ResponseApplySnapshotChunk): Uint8Array { + return ResponseApplySnapshotChunk.encode(message).finish(); + }, + toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", + value: ResponseApplySnapshotChunk.encode(message).finish() + }; + } +}; +function createBaseResponsePrepareProposal(): ResponsePrepareProposal { + return { + txs: [] + }; +} +export const ResponsePrepareProposal = { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + encode(message: ResponsePrepareProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.txs) { + writer.uint32(10).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponsePrepareProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponsePrepareProposal { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object: ResponsePrepareProposalAmino): ResponsePrepareProposal { + const message = createBaseResponsePrepareProposal(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: ResponsePrepareProposal): ResponsePrepareProposalAmino { + const obj: any = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object: ResponsePrepareProposalAminoMsg): ResponsePrepareProposal { + return ResponsePrepareProposal.fromAmino(object.value); + }, + fromProtoMsg(message: ResponsePrepareProposalProtoMsg): ResponsePrepareProposal { + return ResponsePrepareProposal.decode(message.value); + }, + toProto(message: ResponsePrepareProposal): Uint8Array { + return ResponsePrepareProposal.encode(message).finish(); + }, + toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponsePrepareProposal", + value: ResponsePrepareProposal.encode(message).finish() + }; + } +}; +function createBaseResponseProcessProposal(): ResponseProcessProposal { + return { + status: 0 + }; +} +export const ResponseProcessProposal = { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + encode(message: ResponseProcessProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.status !== 0) { + writer.uint32(8).int32(message.status); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponseProcessProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.status = (reader.int32() as any); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ResponseProcessProposal { + const message = createBaseResponseProcessProposal(); + message.status = object.status ?? 0; + return message; + }, + fromAmino(object: ResponseProcessProposalAmino): ResponseProcessProposal { + const message = createBaseResponseProcessProposal(); + if (object.status !== undefined && object.status !== null) { + message.status = object.status; + } + return message; + }, + toAmino(message: ResponseProcessProposal): ResponseProcessProposalAmino { + const obj: any = {}; + obj.status = message.status === 0 ? undefined : message.status; + return obj; + }, + fromAminoMsg(object: ResponseProcessProposalAminoMsg): ResponseProcessProposal { + return ResponseProcessProposal.fromAmino(object.value); + }, + fromProtoMsg(message: ResponseProcessProposalProtoMsg): ResponseProcessProposal { + return ResponseProcessProposal.decode(message.value); + }, + toProto(message: ResponseProcessProposal): Uint8Array { + return ResponseProcessProposal.encode(message).finish(); + }, + toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg { + return { + typeUrl: "/tendermint.abci.ResponseProcessProposal", + value: ResponseProcessProposal.encode(message).finish() + }; + } +}; +function createBaseCommitInfo(): CommitInfo { + return { + round: 0, + votes: [] + }; +} +export const CommitInfo = { + typeUrl: "/tendermint.abci.CommitInfo", + encode(message: CommitInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + VoteInfo.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(VoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CommitInfo { + const message = createBaseCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: CommitInfoAmino): CommitInfo { + const message = createBaseCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => VoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: CommitInfo): CommitInfoAmino { + const obj: any = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? VoteInfo.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo { + return CommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo { + return CommitInfo.decode(message.value); + }, + toProto(message: CommitInfo): Uint8Array { + return CommitInfo.encode(message).finish(); + }, + toProtoMsg(message: CommitInfo): CommitInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.CommitInfo", + value: CommitInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedCommitInfo(): ExtendedCommitInfo { + return { + round: 0, + votes: [] + }; +} +export const ExtendedCommitInfo = { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + encode(message: ExtendedCommitInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.round !== 0) { + writer.uint32(8).int32(message.round); + } + for (const v of message.votes) { + ExtendedVoteInfo.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedCommitInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ExtendedCommitInfo { + const message = createBaseExtendedCommitInfo(); + message.round = object.round ?? 0; + message.votes = object.votes?.map(e => ExtendedVoteInfo.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ExtendedCommitInfoAmino): ExtendedCommitInfo { + const message = createBaseExtendedCommitInfo(); + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + message.votes = object.votes?.map(e => ExtendedVoteInfo.fromAmino(e)) || []; + return message; + }, + toAmino(message: ExtendedCommitInfo): ExtendedCommitInfoAmino { + const obj: any = {}; + obj.round = message.round === 0 ? undefined : message.round; + if (message.votes) { + obj.votes = message.votes.map(e => e ? ExtendedVoteInfo.toAmino(e) : undefined); + } else { + obj.votes = message.votes; + } + return obj; + }, + fromAminoMsg(object: ExtendedCommitInfoAminoMsg): ExtendedCommitInfo { + return ExtendedCommitInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ExtendedCommitInfoProtoMsg): ExtendedCommitInfo { + return ExtendedCommitInfo.decode(message.value); + }, + toProto(message: ExtendedCommitInfo): Uint8Array { + return ExtendedCommitInfo.encode(message).finish(); + }, + toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.ExtendedCommitInfo", + value: ExtendedCommitInfo.encode(message).finish() + }; + } +}; +function createBaseEvent(): Event { + return { + type: "", + attributes: [] + }; +} +export const Event = { + typeUrl: "/tendermint.abci.Event", + encode(message: Event, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + for (const v of message.attributes) { + EventAttribute.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Event { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.attributes.push(EventAttribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Event { + const message = createBaseEvent(); + message.type = object.type ?? ""; + message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || []; + return message; + }, + fromAmino(object: EventAmino): Event { + const message = createBaseEvent(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + message.attributes = object.attributes?.map(e => EventAttribute.fromAmino(e)) || []; + return message; + }, + toAmino(message: Event): EventAmino { + const obj: any = {}; + obj.type = message.type === "" ? undefined : message.type; + if (message.attributes) { + obj.attributes = message.attributes.map(e => e ? EventAttribute.toAmino(e) : undefined); + } else { + obj.attributes = message.attributes; + } + return obj; + }, + fromAminoMsg(object: EventAminoMsg): Event { + return Event.fromAmino(object.value); + }, + fromProtoMsg(message: EventProtoMsg): Event { + return Event.decode(message.value); + }, + toProto(message: Event): Uint8Array { + return Event.encode(message).finish(); + }, + toProtoMsg(message: Event): EventProtoMsg { + return { + typeUrl: "/tendermint.abci.Event", + value: Event.encode(message).finish() + }; + } +}; +function createBaseEventAttribute(): EventAttribute { + return { + key: "", + value: "", + index: false + }; +} +export const EventAttribute = { + typeUrl: "/tendermint.abci.EventAttribute", + encode(message: EventAttribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + if (message.index === true) { + writer.uint32(24).bool(message.index); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEventAttribute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.index = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EventAttribute { + const message = createBaseEventAttribute(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + message.index = object.index ?? false; + return message; + }, + fromAmino(object: EventAttributeAmino): EventAttribute { + const message = createBaseEventAttribute(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.value !== undefined && object.value !== null) { + message.value = object.value; + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + return message; + }, + toAmino(message: EventAttribute): EventAttributeAmino { + const obj: any = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; + obj.index = message.index === false ? undefined : message.index; + return obj; + }, + fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute { + return EventAttribute.fromAmino(object.value); + }, + fromProtoMsg(message: EventAttributeProtoMsg): EventAttribute { + return EventAttribute.decode(message.value); + }, + toProto(message: EventAttribute): Uint8Array { + return EventAttribute.encode(message).finish(); + }, + toProtoMsg(message: EventAttribute): EventAttributeProtoMsg { + return { + typeUrl: "/tendermint.abci.EventAttribute", + value: EventAttribute.encode(message).finish() + }; + } +}; +function createBaseTxResult(): TxResult { + return { + height: BigInt(0), + index: 0, + tx: new Uint8Array(), + result: ResponseDeliverTx.fromPartial({}) + }; +} +export const TxResult = { + typeUrl: "/tendermint.abci.TxResult", + encode(message: TxResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.index !== 0) { + writer.uint32(16).uint32(message.index); + } + if (message.tx.length !== 0) { + writer.uint32(26).bytes(message.tx); + } + if (message.result !== undefined) { + ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.index = reader.uint32(); + break; + case 3: + message.tx = reader.bytes(); + break; + case 4: + message.result = ResponseDeliverTx.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxResult { + const message = createBaseTxResult(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.index = object.index ?? 0; + message.tx = object.tx ?? new Uint8Array(); + message.result = object.result !== undefined && object.result !== null ? ResponseDeliverTx.fromPartial(object.result) : undefined; + return message; + }, + fromAmino(object: TxResultAmino): TxResult { + const message = createBaseTxResult(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.tx !== undefined && object.tx !== null) { + message.tx = bytesFromBase64(object.tx); + } + if (object.result !== undefined && object.result !== null) { + message.result = ResponseDeliverTx.fromAmino(object.result); + } + return message; + }, + toAmino(message: TxResult): TxResultAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.index = message.index === 0 ? undefined : message.index; + obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; + obj.result = message.result ? ResponseDeliverTx.toAmino(message.result) : undefined; + return obj; + }, + fromAminoMsg(object: TxResultAminoMsg): TxResult { + return TxResult.fromAmino(object.value); + }, + fromProtoMsg(message: TxResultProtoMsg): TxResult { + return TxResult.decode(message.value); + }, + toProto(message: TxResult): Uint8Array { + return TxResult.encode(message).finish(); + }, + toProtoMsg(message: TxResult): TxResultProtoMsg { + return { + typeUrl: "/tendermint.abci.TxResult", + value: TxResult.encode(message).finish() + }; + } +}; +function createBaseValidator(): Validator { + return { + address: new Uint8Array(), + power: BigInt(0) + }; +} +export const Validator = { + typeUrl: "/tendermint.abci.Validator", + encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.power !== BigInt(0)) { + writer.uint32(24).int64(message.power); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Validator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 3: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Validator { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ValidatorAmino): Validator { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message: Validator): ValidatorAmino { + const obj: any = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorAminoMsg): Validator { + return Validator.fromAmino(object.value); + }, + fromProtoMsg(message: ValidatorProtoMsg): Validator { + return Validator.decode(message.value); + }, + toProto(message: Validator): Uint8Array { + return Validator.encode(message).finish(); + }, + toProtoMsg(message: Validator): ValidatorProtoMsg { + return { + typeUrl: "/tendermint.abci.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseValidatorUpdate(): ValidatorUpdate { + return { + pubKey: PublicKey.fromPartial({}), + power: BigInt(0) + }; +} +export const ValidatorUpdate = { + typeUrl: "/tendermint.abci.ValidatorUpdate", + encode(message: ValidatorUpdate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.power !== BigInt(0)) { + writer.uint32(16).int64(message.power); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorUpdate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.power = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorUpdate { + const message = createBaseValidatorUpdate(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ValidatorUpdateAmino): ValidatorUpdate { + const message = createBaseValidatorUpdate(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.power !== undefined && object.power !== null) { + message.power = BigInt(object.power); + } + return message; + }, + toAmino(message: ValidatorUpdate): ValidatorUpdateAmino { + const obj: any = {}; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate { + return ValidatorUpdate.fromAmino(object.value); + }, + fromProtoMsg(message: ValidatorUpdateProtoMsg): ValidatorUpdate { + return ValidatorUpdate.decode(message.value); + }, + toProto(message: ValidatorUpdate): Uint8Array { + return ValidatorUpdate.encode(message).finish(); + }, + toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg { + return { + typeUrl: "/tendermint.abci.ValidatorUpdate", + value: ValidatorUpdate.encode(message).finish() + }; + } +}; +function createBaseVoteInfo(): VoteInfo { + return { + validator: Validator.fromPartial({}), + signedLastBlock: false + }; +} +export const VoteInfo = { + typeUrl: "/tendermint.abci.VoteInfo", + encode(message: VoteInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): VoteInfo { + const message = createBaseVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + return message; + }, + fromAmino(object: VoteInfoAmino): VoteInfo { + const message = createBaseVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + return message; + }, + toAmino(message: VoteInfo): VoteInfoAmino { + const obj: any = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + return obj; + }, + fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo { + return VoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message: VoteInfoProtoMsg): VoteInfo { + return VoteInfo.decode(message.value); + }, + toProto(message: VoteInfo): Uint8Array { + return VoteInfo.encode(message).finish(); + }, + toProtoMsg(message: VoteInfo): VoteInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.VoteInfo", + value: VoteInfo.encode(message).finish() + }; + } +}; +function createBaseExtendedVoteInfo(): ExtendedVoteInfo { + return { + validator: Validator.fromPartial({}), + signedLastBlock: false, + voteExtension: new Uint8Array() + }; +} +export const ExtendedVoteInfo = { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + encode(message: ExtendedVoteInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); + } + if (message.signedLastBlock === true) { + writer.uint32(16).bool(message.signedLastBlock); + } + if (message.voteExtension.length !== 0) { + writer.uint32(26).bytes(message.voteExtension); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtendedVoteInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signedLastBlock = reader.bool(); + break; + case 3: + message.voteExtension = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ExtendedVoteInfo { + const message = createBaseExtendedVoteInfo(); + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.signedLastBlock = object.signedLastBlock ?? false; + message.voteExtension = object.voteExtension ?? new Uint8Array(); + return message; + }, + fromAmino(object: ExtendedVoteInfoAmino): ExtendedVoteInfo { + const message = createBaseExtendedVoteInfo(); + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.signed_last_block !== undefined && object.signed_last_block !== null) { + message.signedLastBlock = object.signed_last_block; + } + if (object.vote_extension !== undefined && object.vote_extension !== null) { + message.voteExtension = bytesFromBase64(object.vote_extension); + } + return message; + }, + toAmino(message: ExtendedVoteInfo): ExtendedVoteInfoAmino { + const obj: any = {}; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; + obj.vote_extension = message.voteExtension ? base64FromBytes(message.voteExtension) : undefined; + return obj; + }, + fromAminoMsg(object: ExtendedVoteInfoAminoMsg): ExtendedVoteInfo { + return ExtendedVoteInfo.fromAmino(object.value); + }, + fromProtoMsg(message: ExtendedVoteInfoProtoMsg): ExtendedVoteInfo { + return ExtendedVoteInfo.decode(message.value); + }, + toProto(message: ExtendedVoteInfo): Uint8Array { + return ExtendedVoteInfo.encode(message).finish(); + }, + toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg { + return { + typeUrl: "/tendermint.abci.ExtendedVoteInfo", + value: ExtendedVoteInfo.encode(message).finish() + }; + } +}; +function createBaseMisbehavior(): Misbehavior { + return { + type: 0, + validator: Validator.fromPartial({}), + height: BigInt(0), + time: new Date(), + totalVotingPower: BigInt(0) + }; +} +export const Misbehavior = { + typeUrl: "/tendermint.abci.Misbehavior", + encode(message: Misbehavior, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.validator !== undefined) { + Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(40).int64(message.totalVotingPower); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMisbehavior(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = (reader.int32() as any); + break; + case 2: + message.validator = Validator.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Misbehavior { + const message = createBaseMisbehavior(); + message.type = object.type ?? 0; + message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object: MisbehaviorAmino): Misbehavior { + const message = createBaseMisbehavior(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = Validator.fromAmino(object.validator); + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message: Misbehavior): MisbehaviorAmino { + const obj: any = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object: MisbehaviorAminoMsg): Misbehavior { + return Misbehavior.fromAmino(object.value); + }, + fromProtoMsg(message: MisbehaviorProtoMsg): Misbehavior { + return Misbehavior.decode(message.value); + }, + toProto(message: Misbehavior): Uint8Array { + return Misbehavior.encode(message).finish(); + }, + toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg { + return { + typeUrl: "/tendermint.abci.Misbehavior", + value: Misbehavior.encode(message).finish() + }; + } +}; +function createBaseSnapshot(): Snapshot { + return { + height: BigInt(0), + format: 0, + chunks: 0, + hash: new Uint8Array(), + metadata: new Uint8Array() + }; +} +export const Snapshot = { + typeUrl: "/tendermint.abci.Snapshot", + encode(message: Snapshot, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).uint64(message.height); + } + if (message.format !== 0) { + writer.uint32(16).uint32(message.format); + } + if (message.chunks !== 0) { + writer.uint32(24).uint32(message.chunks); + } + if (message.hash.length !== 0) { + writer.uint32(34).bytes(message.hash); + } + if (message.metadata.length !== 0) { + writer.uint32(42).bytes(message.metadata); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Snapshot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSnapshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunks = reader.uint32(); + break; + case 4: + message.hash = reader.bytes(); + break; + case 5: + message.metadata = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Snapshot { + const message = createBaseSnapshot(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.format = object.format ?? 0; + message.chunks = object.chunks ?? 0; + message.hash = object.hash ?? new Uint8Array(); + message.metadata = object.metadata ?? new Uint8Array(); + return message; + }, + fromAmino(object: SnapshotAmino): Snapshot { + const message = createBaseSnapshot(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.format !== undefined && object.format !== null) { + message.format = object.format; + } + if (object.chunks !== undefined && object.chunks !== null) { + message.chunks = object.chunks; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.metadata !== undefined && object.metadata !== null) { + message.metadata = bytesFromBase64(object.metadata); + } + return message; + }, + toAmino(message: Snapshot): SnapshotAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunks = message.chunks === 0 ? undefined : message.chunks; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; + return obj; + }, + fromAminoMsg(object: SnapshotAminoMsg): Snapshot { + return Snapshot.fromAmino(object.value); + }, + fromProtoMsg(message: SnapshotProtoMsg): Snapshot { + return Snapshot.decode(message.value); + }, + toProto(message: Snapshot): Uint8Array { + return Snapshot.encode(message).finish(); + }, + toProtoMsg(message: Snapshot): SnapshotProtoMsg { + return { + typeUrl: "/tendermint.abci.Snapshot", + value: Snapshot.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/bundle.ts b/packages/api/src/tendermint/bundle.ts new file mode 100644 index 00000000..c64ea980 --- /dev/null +++ b/packages/api/src/tendermint/bundle.ts @@ -0,0 +1,39 @@ +//@ts-nocheck +import * as _104 from "./abci/types"; +import * as _105 from "./crypto/keys"; +import * as _106 from "./crypto/proof"; +import * as _107 from "./libs/bits/types"; +import * as _108 from "./p2p/types"; +import * as _109 from "./types/block"; +import * as _110 from "./types/evidence"; +import * as _111 from "./types/params"; +import * as _112 from "./types/types"; +import * as _113 from "./types/validator"; +import * as _114 from "./version/types"; +export namespace tendermint { + export const abci = { + ..._104 + }; + export const crypto = { + ..._105, + ..._106 + }; + export namespace libs { + export const bits = { + ..._107 + }; + } + export const p2p = { + ..._108 + }; + export const types = { + ..._109, + ..._110, + ..._111, + ..._112, + ..._113 + }; + export const version = { + ..._114 + }; +} \ No newline at end of file diff --git a/packages/api/src/tendermint/crypto/keys.ts b/packages/api/src/tendermint/crypto/keys.ts new file mode 100644 index 00000000..df46a060 --- /dev/null +++ b/packages/api/src/tendermint/crypto/keys.ts @@ -0,0 +1,101 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKey { + ed25519?: Uint8Array; + secp256k1?: Uint8Array; +} +export interface PublicKeyProtoMsg { + typeUrl: "/tendermint.crypto.PublicKey"; + value: Uint8Array; +} +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKeyAmino { + ed25519?: string; + secp256k1?: string; +} +export interface PublicKeyAminoMsg { + type: "/tendermint.crypto.PublicKey"; + value: PublicKeyAmino; +} +/** PublicKey defines the keys available for use with Validators */ +export interface PublicKeySDKType { + ed25519?: Uint8Array; + secp256k1?: Uint8Array; +} +function createBasePublicKey(): PublicKey { + return { + ed25519: undefined, + secp256k1: undefined + }; +} +export const PublicKey = { + typeUrl: "/tendermint.crypto.PublicKey", + encode(message: PublicKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.ed25519 !== undefined) { + writer.uint32(10).bytes(message.ed25519); + } + if (message.secp256k1 !== undefined) { + writer.uint32(18).bytes(message.secp256k1); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PublicKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePublicKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ed25519 = reader.bytes(); + break; + case 2: + message.secp256k1 = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PublicKey { + const message = createBasePublicKey(); + message.ed25519 = object.ed25519 ?? undefined; + message.secp256k1 = object.secp256k1 ?? undefined; + return message; + }, + fromAmino(object: PublicKeyAmino): PublicKey { + const message = createBasePublicKey(); + if (object.ed25519 !== undefined && object.ed25519 !== null) { + message.ed25519 = bytesFromBase64(object.ed25519); + } + if (object.secp256k1 !== undefined && object.secp256k1 !== null) { + message.secp256k1 = bytesFromBase64(object.secp256k1); + } + return message; + }, + toAmino(message: PublicKey): PublicKeyAmino { + const obj: any = {}; + obj.ed25519 = message.ed25519 ? base64FromBytes(message.ed25519) : undefined; + obj.secp256k1 = message.secp256k1 ? base64FromBytes(message.secp256k1) : undefined; + return obj; + }, + fromAminoMsg(object: PublicKeyAminoMsg): PublicKey { + return PublicKey.fromAmino(object.value); + }, + fromProtoMsg(message: PublicKeyProtoMsg): PublicKey { + return PublicKey.decode(message.value); + }, + toProto(message: PublicKey): Uint8Array { + return PublicKey.encode(message).finish(); + }, + toProtoMsg(message: PublicKey): PublicKeyProtoMsg { + return { + typeUrl: "/tendermint.crypto.PublicKey", + value: PublicKey.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/crypto/proof.ts b/packages/api/src/tendermint/crypto/proof.ts new file mode 100644 index 00000000..c619c83c --- /dev/null +++ b/packages/api/src/tendermint/crypto/proof.ts @@ -0,0 +1,549 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +export interface Proof { + total: bigint; + index: bigint; + leafHash: Uint8Array; + aunts: Uint8Array[]; +} +export interface ProofProtoMsg { + typeUrl: "/tendermint.crypto.Proof"; + value: Uint8Array; +} +export interface ProofAmino { + total?: string; + index?: string; + leaf_hash?: string; + aunts?: string[]; +} +export interface ProofAminoMsg { + type: "/tendermint.crypto.Proof"; + value: ProofAmino; +} +export interface ProofSDKType { + total: bigint; + index: bigint; + leaf_hash: Uint8Array; + aunts: Uint8Array[]; +} +export interface ValueOp { + /** Encoded in ProofOp.Key. */ + key: Uint8Array; + /** To encode in ProofOp.Data */ + proof?: Proof; +} +export interface ValueOpProtoMsg { + typeUrl: "/tendermint.crypto.ValueOp"; + value: Uint8Array; +} +export interface ValueOpAmino { + /** Encoded in ProofOp.Key. */ + key?: string; + /** To encode in ProofOp.Data */ + proof?: ProofAmino; +} +export interface ValueOpAminoMsg { + type: "/tendermint.crypto.ValueOp"; + value: ValueOpAmino; +} +export interface ValueOpSDKType { + key: Uint8Array; + proof?: ProofSDKType; +} +export interface DominoOp { + key: string; + input: string; + output: string; +} +export interface DominoOpProtoMsg { + typeUrl: "/tendermint.crypto.DominoOp"; + value: Uint8Array; +} +export interface DominoOpAmino { + key?: string; + input?: string; + output?: string; +} +export interface DominoOpAminoMsg { + type: "/tendermint.crypto.DominoOp"; + value: DominoOpAmino; +} +export interface DominoOpSDKType { + key: string; + input: string; + output: string; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOp { + type: string; + key: Uint8Array; + data: Uint8Array; +} +export interface ProofOpProtoMsg { + typeUrl: "/tendermint.crypto.ProofOp"; + value: Uint8Array; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOpAmino { + type?: string; + key?: string; + data?: string; +} +export interface ProofOpAminoMsg { + type: "/tendermint.crypto.ProofOp"; + value: ProofOpAmino; +} +/** + * ProofOp defines an operation used for calculating Merkle root + * The data could be arbitrary format, providing nessecary data + * for example neighbouring node hash + */ +export interface ProofOpSDKType { + type: string; + key: Uint8Array; + data: Uint8Array; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOps { + ops: ProofOp[]; +} +export interface ProofOpsProtoMsg { + typeUrl: "/tendermint.crypto.ProofOps"; + value: Uint8Array; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOpsAmino { + ops?: ProofOpAmino[]; +} +export interface ProofOpsAminoMsg { + type: "/tendermint.crypto.ProofOps"; + value: ProofOpsAmino; +} +/** ProofOps is Merkle proof defined by the list of ProofOps */ +export interface ProofOpsSDKType { + ops: ProofOpSDKType[]; +} +function createBaseProof(): Proof { + return { + total: BigInt(0), + index: BigInt(0), + leafHash: new Uint8Array(), + aunts: [] + }; +} +export const Proof = { + typeUrl: "/tendermint.crypto.Proof", + encode(message: Proof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.total !== BigInt(0)) { + writer.uint32(8).int64(message.total); + } + if (message.index !== BigInt(0)) { + writer.uint32(16).int64(message.index); + } + if (message.leafHash.length !== 0) { + writer.uint32(26).bytes(message.leafHash); + } + for (const v of message.aunts) { + writer.uint32(34).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Proof { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.int64(); + break; + case 2: + message.index = reader.int64(); + break; + case 3: + message.leafHash = reader.bytes(); + break; + case 4: + message.aunts.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Proof { + const message = createBaseProof(); + message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); + message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); + message.leafHash = object.leafHash ?? new Uint8Array(); + message.aunts = object.aunts?.map(e => e) || []; + return message; + }, + fromAmino(object: ProofAmino): Proof { + const message = createBaseProof(); + if (object.total !== undefined && object.total !== null) { + message.total = BigInt(object.total); + } + if (object.index !== undefined && object.index !== null) { + message.index = BigInt(object.index); + } + if (object.leaf_hash !== undefined && object.leaf_hash !== null) { + message.leafHash = bytesFromBase64(object.leaf_hash); + } + message.aunts = object.aunts?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: Proof): ProofAmino { + const obj: any = {}; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; + obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined; + if (message.aunts) { + obj.aunts = message.aunts.map(e => base64FromBytes(e)); + } else { + obj.aunts = message.aunts; + } + return obj; + }, + fromAminoMsg(object: ProofAminoMsg): Proof { + return Proof.fromAmino(object.value); + }, + fromProtoMsg(message: ProofProtoMsg): Proof { + return Proof.decode(message.value); + }, + toProto(message: Proof): Uint8Array { + return Proof.encode(message).finish(); + }, + toProtoMsg(message: Proof): ProofProtoMsg { + return { + typeUrl: "/tendermint.crypto.Proof", + value: Proof.encode(message).finish() + }; + } +}; +function createBaseValueOp(): ValueOp { + return { + key: new Uint8Array(), + proof: undefined + }; +} +export const ValueOp = { + typeUrl: "/tendermint.crypto.ValueOp", + encode(message: ValueOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key.length !== 0) { + writer.uint32(10).bytes(message.key); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValueOp { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValueOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValueOp { + const message = createBaseValueOp(); + message.key = object.key ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object: ValueOpAmino): ValueOp { + const message = createBaseValueOp(); + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message: ValueOp): ValueOpAmino { + const obj: any = {}; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object: ValueOpAminoMsg): ValueOp { + return ValueOp.fromAmino(object.value); + }, + fromProtoMsg(message: ValueOpProtoMsg): ValueOp { + return ValueOp.decode(message.value); + }, + toProto(message: ValueOp): Uint8Array { + return ValueOp.encode(message).finish(); + }, + toProtoMsg(message: ValueOp): ValueOpProtoMsg { + return { + typeUrl: "/tendermint.crypto.ValueOp", + value: ValueOp.encode(message).finish() + }; + } +}; +function createBaseDominoOp(): DominoOp { + return { + key: "", + input: "", + output: "" + }; +} +export const DominoOp = { + typeUrl: "/tendermint.crypto.DominoOp", + encode(message: DominoOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.input !== "") { + writer.uint32(18).string(message.input); + } + if (message.output !== "") { + writer.uint32(26).string(message.output); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DominoOp { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDominoOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.input = reader.string(); + break; + case 3: + message.output = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DominoOp { + const message = createBaseDominoOp(); + message.key = object.key ?? ""; + message.input = object.input ?? ""; + message.output = object.output ?? ""; + return message; + }, + fromAmino(object: DominoOpAmino): DominoOp { + const message = createBaseDominoOp(); + if (object.key !== undefined && object.key !== null) { + message.key = object.key; + } + if (object.input !== undefined && object.input !== null) { + message.input = object.input; + } + if (object.output !== undefined && object.output !== null) { + message.output = object.output; + } + return message; + }, + toAmino(message: DominoOp): DominoOpAmino { + const obj: any = {}; + obj.key = message.key === "" ? undefined : message.key; + obj.input = message.input === "" ? undefined : message.input; + obj.output = message.output === "" ? undefined : message.output; + return obj; + }, + fromAminoMsg(object: DominoOpAminoMsg): DominoOp { + return DominoOp.fromAmino(object.value); + }, + fromProtoMsg(message: DominoOpProtoMsg): DominoOp { + return DominoOp.decode(message.value); + }, + toProto(message: DominoOp): Uint8Array { + return DominoOp.encode(message).finish(); + }, + toProtoMsg(message: DominoOp): DominoOpProtoMsg { + return { + typeUrl: "/tendermint.crypto.DominoOp", + value: DominoOp.encode(message).finish() + }; + } +}; +function createBaseProofOp(): ProofOp { + return { + type: "", + key: new Uint8Array(), + data: new Uint8Array() + }; +} +export const ProofOp = { + typeUrl: "/tendermint.crypto.ProofOp", + encode(message: ProofOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== "") { + writer.uint32(10).string(message.type); + } + if (message.key.length !== 0) { + writer.uint32(18).bytes(message.key); + } + if (message.data.length !== 0) { + writer.uint32(26).bytes(message.data); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ProofOp { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.key = reader.bytes(); + break; + case 3: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ProofOp { + const message = createBaseProofOp(); + message.type = object.type ?? ""; + message.key = object.key ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + return message; + }, + fromAmino(object: ProofOpAmino): ProofOp { + const message = createBaseProofOp(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.key !== undefined && object.key !== null) { + message.key = bytesFromBase64(object.key); + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + return message; + }, + toAmino(message: ProofOp): ProofOpAmino { + const obj: any = {}; + obj.type = message.type === "" ? undefined : message.type; + obj.key = message.key ? base64FromBytes(message.key) : undefined; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + return obj; + }, + fromAminoMsg(object: ProofOpAminoMsg): ProofOp { + return ProofOp.fromAmino(object.value); + }, + fromProtoMsg(message: ProofOpProtoMsg): ProofOp { + return ProofOp.decode(message.value); + }, + toProto(message: ProofOp): Uint8Array { + return ProofOp.encode(message).finish(); + }, + toProtoMsg(message: ProofOp): ProofOpProtoMsg { + return { + typeUrl: "/tendermint.crypto.ProofOp", + value: ProofOp.encode(message).finish() + }; + } +}; +function createBaseProofOps(): ProofOps { + return { + ops: [] + }; +} +export const ProofOps = { + typeUrl: "/tendermint.crypto.ProofOps", + encode(message: ProofOps, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.ops) { + ProofOp.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ProofOps { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProofOps(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ops.push(ProofOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ProofOps { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || []; + return message; + }, + fromAmino(object: ProofOpsAmino): ProofOps { + const message = createBaseProofOps(); + message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || []; + return message; + }, + toAmino(message: ProofOps): ProofOpsAmino { + const obj: any = {}; + if (message.ops) { + obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); + } else { + obj.ops = message.ops; + } + return obj; + }, + fromAminoMsg(object: ProofOpsAminoMsg): ProofOps { + return ProofOps.fromAmino(object.value); + }, + fromProtoMsg(message: ProofOpsProtoMsg): ProofOps { + return ProofOps.decode(message.value); + }, + toProto(message: ProofOps): Uint8Array { + return ProofOps.encode(message).finish(); + }, + toProtoMsg(message: ProofOps): ProofOpsProtoMsg { + return { + typeUrl: "/tendermint.crypto.ProofOps", + value: ProofOps.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/libs/bits/types.ts b/packages/api/src/tendermint/libs/bits/types.ts new file mode 100644 index 00000000..0ced0802 --- /dev/null +++ b/packages/api/src/tendermint/libs/bits/types.ts @@ -0,0 +1,108 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../../binary"; +export interface BitArray { + bits: bigint; + elems: bigint[]; +} +export interface BitArrayProtoMsg { + typeUrl: "/tendermint.libs.bits.BitArray"; + value: Uint8Array; +} +export interface BitArrayAmino { + bits?: string; + elems?: string[]; +} +export interface BitArrayAminoMsg { + type: "/tendermint.libs.bits.BitArray"; + value: BitArrayAmino; +} +export interface BitArraySDKType { + bits: bigint; + elems: bigint[]; +} +function createBaseBitArray(): BitArray { + return { + bits: BigInt(0), + elems: [] + }; +} +export const BitArray = { + typeUrl: "/tendermint.libs.bits.BitArray", + encode(message: BitArray, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bits !== BigInt(0)) { + writer.uint32(8).int64(message.bits); + } + writer.uint32(18).fork(); + for (const v of message.elems) { + writer.uint64(v); + } + writer.ldelim(); + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BitArray { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBitArray(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bits = reader.int64(); + break; + case 2: + if ((tag & 7) === 2) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.elems.push(reader.uint64()); + } + } else { + message.elems.push(reader.uint64()); + } + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BitArray { + const message = createBaseBitArray(); + message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); + message.elems = object.elems?.map(e => BigInt(e.toString())) || []; + return message; + }, + fromAmino(object: BitArrayAmino): BitArray { + const message = createBaseBitArray(); + if (object.bits !== undefined && object.bits !== null) { + message.bits = BigInt(object.bits); + } + message.elems = object.elems?.map(e => BigInt(e)) || []; + return message; + }, + toAmino(message: BitArray): BitArrayAmino { + const obj: any = {}; + obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; + if (message.elems) { + obj.elems = message.elems.map(e => e.toString()); + } else { + obj.elems = message.elems; + } + return obj; + }, + fromAminoMsg(object: BitArrayAminoMsg): BitArray { + return BitArray.fromAmino(object.value); + }, + fromProtoMsg(message: BitArrayProtoMsg): BitArray { + return BitArray.decode(message.value); + }, + toProto(message: BitArray): Uint8Array { + return BitArray.encode(message).finish(); + }, + toProtoMsg(message: BitArray): BitArrayProtoMsg { + return { + typeUrl: "/tendermint.libs.bits.BitArray", + value: BitArray.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/p2p/types.ts b/packages/api/src/tendermint/p2p/types.ts new file mode 100644 index 00000000..6c22649b --- /dev/null +++ b/packages/api/src/tendermint/p2p/types.ts @@ -0,0 +1,503 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +export interface NetAddress { + id: string; + ip: string; + port: number; +} +export interface NetAddressProtoMsg { + typeUrl: "/tendermint.p2p.NetAddress"; + value: Uint8Array; +} +export interface NetAddressAmino { + id?: string; + ip?: string; + port?: number; +} +export interface NetAddressAminoMsg { + type: "/tendermint.p2p.NetAddress"; + value: NetAddressAmino; +} +export interface NetAddressSDKType { + id: string; + ip: string; + port: number; +} +export interface ProtocolVersion { + p2p: bigint; + block: bigint; + app: bigint; +} +export interface ProtocolVersionProtoMsg { + typeUrl: "/tendermint.p2p.ProtocolVersion"; + value: Uint8Array; +} +export interface ProtocolVersionAmino { + p2p?: string; + block?: string; + app?: string; +} +export interface ProtocolVersionAminoMsg { + type: "/tendermint.p2p.ProtocolVersion"; + value: ProtocolVersionAmino; +} +export interface ProtocolVersionSDKType { + p2p: bigint; + block: bigint; + app: bigint; +} +export interface DefaultNodeInfo { + protocolVersion: ProtocolVersion; + defaultNodeId: string; + listenAddr: string; + network: string; + version: string; + channels: Uint8Array; + moniker: string; + other: DefaultNodeInfoOther; +} +export interface DefaultNodeInfoProtoMsg { + typeUrl: "/tendermint.p2p.DefaultNodeInfo"; + value: Uint8Array; +} +export interface DefaultNodeInfoAmino { + protocol_version?: ProtocolVersionAmino; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + channels?: string; + moniker?: string; + other?: DefaultNodeInfoOtherAmino; +} +export interface DefaultNodeInfoAminoMsg { + type: "/tendermint.p2p.DefaultNodeInfo"; + value: DefaultNodeInfoAmino; +} +export interface DefaultNodeInfoSDKType { + protocol_version: ProtocolVersionSDKType; + default_node_id: string; + listen_addr: string; + network: string; + version: string; + channels: Uint8Array; + moniker: string; + other: DefaultNodeInfoOtherSDKType; +} +export interface DefaultNodeInfoOther { + txIndex: string; + rpcAddress: string; +} +export interface DefaultNodeInfoOtherProtoMsg { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther"; + value: Uint8Array; +} +export interface DefaultNodeInfoOtherAmino { + tx_index?: string; + rpc_address?: string; +} +export interface DefaultNodeInfoOtherAminoMsg { + type: "/tendermint.p2p.DefaultNodeInfoOther"; + value: DefaultNodeInfoOtherAmino; +} +export interface DefaultNodeInfoOtherSDKType { + tx_index: string; + rpc_address: string; +} +function createBaseNetAddress(): NetAddress { + return { + id: "", + ip: "", + port: 0 + }; +} +export const NetAddress = { + typeUrl: "/tendermint.p2p.NetAddress", + encode(message: NetAddress, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.ip !== "") { + writer.uint32(18).string(message.ip); + } + if (message.port !== 0) { + writer.uint32(24).uint32(message.port); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): NetAddress { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.ip = reader.string(); + break; + case 3: + message.port = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): NetAddress { + const message = createBaseNetAddress(); + message.id = object.id ?? ""; + message.ip = object.ip ?? ""; + message.port = object.port ?? 0; + return message; + }, + fromAmino(object: NetAddressAmino): NetAddress { + const message = createBaseNetAddress(); + if (object.id !== undefined && object.id !== null) { + message.id = object.id; + } + if (object.ip !== undefined && object.ip !== null) { + message.ip = object.ip; + } + if (object.port !== undefined && object.port !== null) { + message.port = object.port; + } + return message; + }, + toAmino(message: NetAddress): NetAddressAmino { + const obj: any = {}; + obj.id = message.id === "" ? undefined : message.id; + obj.ip = message.ip === "" ? undefined : message.ip; + obj.port = message.port === 0 ? undefined : message.port; + return obj; + }, + fromAminoMsg(object: NetAddressAminoMsg): NetAddress { + return NetAddress.fromAmino(object.value); + }, + fromProtoMsg(message: NetAddressProtoMsg): NetAddress { + return NetAddress.decode(message.value); + }, + toProto(message: NetAddress): Uint8Array { + return NetAddress.encode(message).finish(); + }, + toProtoMsg(message: NetAddress): NetAddressProtoMsg { + return { + typeUrl: "/tendermint.p2p.NetAddress", + value: NetAddress.encode(message).finish() + }; + } +}; +function createBaseProtocolVersion(): ProtocolVersion { + return { + p2p: BigInt(0), + block: BigInt(0), + app: BigInt(0) + }; +} +export const ProtocolVersion = { + typeUrl: "/tendermint.p2p.ProtocolVersion", + encode(message: ProtocolVersion, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.p2p !== BigInt(0)) { + writer.uint32(8).uint64(message.p2p); + } + if (message.block !== BigInt(0)) { + writer.uint32(16).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(24).uint64(message.app); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProtocolVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.p2p = reader.uint64(); + break; + case 2: + message.block = reader.uint64(); + break; + case 3: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ProtocolVersion { + const message = createBaseProtocolVersion(); + message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ProtocolVersionAmino): ProtocolVersion { + const message = createBaseProtocolVersion(); + if (object.p2p !== undefined && object.p2p !== null) { + message.p2p = BigInt(object.p2p); + } + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message: ProtocolVersion): ProtocolVersionAmino { + const obj: any = {}; + obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion { + return ProtocolVersion.fromAmino(object.value); + }, + fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion { + return ProtocolVersion.decode(message.value); + }, + toProto(message: ProtocolVersion): Uint8Array { + return ProtocolVersion.encode(message).finish(); + }, + toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg { + return { + typeUrl: "/tendermint.p2p.ProtocolVersion", + value: ProtocolVersion.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfo(): DefaultNodeInfo { + return { + protocolVersion: ProtocolVersion.fromPartial({}), + defaultNodeId: "", + listenAddr: "", + network: "", + version: "", + channels: new Uint8Array(), + moniker: "", + other: DefaultNodeInfoOther.fromPartial({}) + }; +} +export const DefaultNodeInfo = { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + encode(message: DefaultNodeInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.protocolVersion !== undefined) { + ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); + } + if (message.defaultNodeId !== "") { + writer.uint32(18).string(message.defaultNodeId); + } + if (message.listenAddr !== "") { + writer.uint32(26).string(message.listenAddr); + } + if (message.network !== "") { + writer.uint32(34).string(message.network); + } + if (message.version !== "") { + writer.uint32(42).string(message.version); + } + if (message.channels.length !== 0) { + writer.uint32(50).bytes(message.channels); + } + if (message.moniker !== "") { + writer.uint32(58).string(message.moniker); + } + if (message.other !== undefined) { + DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocolVersion = ProtocolVersion.decode(reader, reader.uint32()); + break; + case 2: + message.defaultNodeId = reader.string(); + break; + case 3: + message.listenAddr = reader.string(); + break; + case 4: + message.network = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.channels = reader.bytes(); + break; + case 7: + message.moniker = reader.string(); + break; + case 8: + message.other = DefaultNodeInfoOther.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DefaultNodeInfo { + const message = createBaseDefaultNodeInfo(); + message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? ProtocolVersion.fromPartial(object.protocolVersion) : undefined; + message.defaultNodeId = object.defaultNodeId ?? ""; + message.listenAddr = object.listenAddr ?? ""; + message.network = object.network ?? ""; + message.version = object.version ?? ""; + message.channels = object.channels ?? new Uint8Array(); + message.moniker = object.moniker ?? ""; + message.other = object.other !== undefined && object.other !== null ? DefaultNodeInfoOther.fromPartial(object.other) : undefined; + return message; + }, + fromAmino(object: DefaultNodeInfoAmino): DefaultNodeInfo { + const message = createBaseDefaultNodeInfo(); + if (object.protocol_version !== undefined && object.protocol_version !== null) { + message.protocolVersion = ProtocolVersion.fromAmino(object.protocol_version); + } + if (object.default_node_id !== undefined && object.default_node_id !== null) { + message.defaultNodeId = object.default_node_id; + } + if (object.listen_addr !== undefined && object.listen_addr !== null) { + message.listenAddr = object.listen_addr; + } + if (object.network !== undefined && object.network !== null) { + message.network = object.network; + } + if (object.version !== undefined && object.version !== null) { + message.version = object.version; + } + if (object.channels !== undefined && object.channels !== null) { + message.channels = bytesFromBase64(object.channels); + } + if (object.moniker !== undefined && object.moniker !== null) { + message.moniker = object.moniker; + } + if (object.other !== undefined && object.other !== null) { + message.other = DefaultNodeInfoOther.fromAmino(object.other); + } + return message; + }, + toAmino(message: DefaultNodeInfo): DefaultNodeInfoAmino { + const obj: any = {}; + obj.protocol_version = message.protocolVersion ? ProtocolVersion.toAmino(message.protocolVersion) : undefined; + obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; + obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; + obj.network = message.network === "" ? undefined : message.network; + obj.version = message.version === "" ? undefined : message.version; + obj.channels = message.channels ? base64FromBytes(message.channels) : undefined; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.other = message.other ? DefaultNodeInfoOther.toAmino(message.other) : undefined; + return obj; + }, + fromAminoMsg(object: DefaultNodeInfoAminoMsg): DefaultNodeInfo { + return DefaultNodeInfo.fromAmino(object.value); + }, + fromProtoMsg(message: DefaultNodeInfoProtoMsg): DefaultNodeInfo { + return DefaultNodeInfo.decode(message.value); + }, + toProto(message: DefaultNodeInfo): Uint8Array { + return DefaultNodeInfo.encode(message).finish(); + }, + toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfo", + value: DefaultNodeInfo.encode(message).finish() + }; + } +}; +function createBaseDefaultNodeInfoOther(): DefaultNodeInfoOther { + return { + txIndex: "", + rpcAddress: "" + }; +} +export const DefaultNodeInfoOther = { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + encode(message: DefaultNodeInfoOther, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.txIndex !== "") { + writer.uint32(10).string(message.txIndex); + } + if (message.rpcAddress !== "") { + writer.uint32(18).string(message.rpcAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDefaultNodeInfoOther(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txIndex = reader.string(); + break; + case 2: + message.rpcAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DefaultNodeInfoOther { + const message = createBaseDefaultNodeInfoOther(); + message.txIndex = object.txIndex ?? ""; + message.rpcAddress = object.rpcAddress ?? ""; + return message; + }, + fromAmino(object: DefaultNodeInfoOtherAmino): DefaultNodeInfoOther { + const message = createBaseDefaultNodeInfoOther(); + if (object.tx_index !== undefined && object.tx_index !== null) { + message.txIndex = object.tx_index; + } + if (object.rpc_address !== undefined && object.rpc_address !== null) { + message.rpcAddress = object.rpc_address; + } + return message; + }, + toAmino(message: DefaultNodeInfoOther): DefaultNodeInfoOtherAmino { + const obj: any = {}; + obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; + obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; + return obj; + }, + fromAminoMsg(object: DefaultNodeInfoOtherAminoMsg): DefaultNodeInfoOther { + return DefaultNodeInfoOther.fromAmino(object.value); + }, + fromProtoMsg(message: DefaultNodeInfoOtherProtoMsg): DefaultNodeInfoOther { + return DefaultNodeInfoOther.decode(message.value); + }, + toProto(message: DefaultNodeInfoOther): Uint8Array { + return DefaultNodeInfoOther.encode(message).finish(); + }, + toProtoMsg(message: DefaultNodeInfoOther): DefaultNodeInfoOtherProtoMsg { + return { + typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", + value: DefaultNodeInfoOther.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/types/block.ts b/packages/api/src/tendermint/types/block.ts new file mode 100644 index 00000000..f7082757 --- /dev/null +++ b/packages/api/src/tendermint/types/block.ts @@ -0,0 +1,129 @@ +//@ts-nocheck +import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; +import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; +import { BinaryReader, BinaryWriter } from "../../binary"; +export interface Block { + header: Header; + data: Data; + evidence: EvidenceList; + lastCommit?: Commit; +} +export interface BlockProtoMsg { + typeUrl: "/tendermint.types.Block"; + value: Uint8Array; +} +export interface BlockAmino { + header?: HeaderAmino; + data?: DataAmino; + evidence?: EvidenceListAmino; + last_commit?: CommitAmino; +} +export interface BlockAminoMsg { + type: "/tendermint.types.Block"; + value: BlockAmino; +} +export interface BlockSDKType { + header: HeaderSDKType; + data: DataSDKType; + evidence: EvidenceListSDKType; + last_commit?: CommitSDKType; +} +function createBaseBlock(): Block { + return { + header: Header.fromPartial({}), + data: Data.fromPartial({}), + evidence: EvidenceList.fromPartial({}), + lastCommit: undefined + }; +} +export const Block = { + typeUrl: "/tendermint.types.Block", + encode(message: Block, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.data !== undefined) { + Data.encode(message.data, writer.uint32(18).fork()).ldelim(); + } + if (message.evidence !== undefined) { + EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); + } + if (message.lastCommit !== undefined) { + Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Block { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.data = Data.decode(reader, reader.uint32()); + break; + case 3: + message.evidence = EvidenceList.decode(reader, reader.uint32()); + break; + case 4: + message.lastCommit = Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Block { + const message = createBaseBlock(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.data = object.data !== undefined && object.data !== null ? Data.fromPartial(object.data) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceList.fromPartial(object.evidence) : undefined; + message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? Commit.fromPartial(object.lastCommit) : undefined; + return message; + }, + fromAmino(object: BlockAmino): Block { + const message = createBaseBlock(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.data !== undefined && object.data !== null) { + message.data = Data.fromAmino(object.data); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = EvidenceList.fromAmino(object.evidence); + } + if (object.last_commit !== undefined && object.last_commit !== null) { + message.lastCommit = Commit.fromAmino(object.last_commit); + } + return message; + }, + toAmino(message: Block): BlockAmino { + const obj: any = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.data = message.data ? Data.toAmino(message.data) : undefined; + obj.evidence = message.evidence ? EvidenceList.toAmino(message.evidence) : undefined; + obj.last_commit = message.lastCommit ? Commit.toAmino(message.lastCommit) : undefined; + return obj; + }, + fromAminoMsg(object: BlockAminoMsg): Block { + return Block.fromAmino(object.value); + }, + fromProtoMsg(message: BlockProtoMsg): Block { + return Block.decode(message.value); + }, + toProto(message: Block): Uint8Array { + return Block.encode(message).finish(); + }, + toProtoMsg(message: Block): BlockProtoMsg { + return { + typeUrl: "/tendermint.types.Block", + value: Block.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/types/evidence.ts b/packages/api/src/tendermint/types/evidence.ts new file mode 100644 index 00000000..a0057e31 --- /dev/null +++ b/packages/api/src/tendermint/types/evidence.ts @@ -0,0 +1,471 @@ +//@ts-nocheck +import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; +import { Timestamp } from "../../google/protobuf/timestamp"; +import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { toTimestamp, fromTimestamp } from "../../helpers"; +export interface Evidence { + duplicateVoteEvidence?: DuplicateVoteEvidence; + lightClientAttackEvidence?: LightClientAttackEvidence; +} +export interface EvidenceProtoMsg { + typeUrl: "/tendermint.types.Evidence"; + value: Uint8Array; +} +export interface EvidenceAmino { + duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; + light_client_attack_evidence?: LightClientAttackEvidenceAmino; +} +export interface EvidenceAminoMsg { + type: "/tendermint.types.Evidence"; + value: EvidenceAmino; +} +export interface EvidenceSDKType { + duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; + light_client_attack_evidence?: LightClientAttackEvidenceSDKType; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidence { + voteA?: Vote; + voteB?: Vote; + totalVotingPower: bigint; + validatorPower: bigint; + timestamp: Date; +} +export interface DuplicateVoteEvidenceProtoMsg { + typeUrl: "/tendermint.types.DuplicateVoteEvidence"; + value: Uint8Array; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidenceAmino { + vote_a?: VoteAmino; + vote_b?: VoteAmino; + total_voting_power?: string; + validator_power?: string; + timestamp?: string; +} +export interface DuplicateVoteEvidenceAminoMsg { + type: "/tendermint.types.DuplicateVoteEvidence"; + value: DuplicateVoteEvidenceAmino; +} +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface DuplicateVoteEvidenceSDKType { + vote_a?: VoteSDKType; + vote_b?: VoteSDKType; + total_voting_power: bigint; + validator_power: bigint; + timestamp: Date; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidence { + conflictingBlock?: LightBlock; + commonHeight: bigint; + byzantineValidators: Validator[]; + totalVotingPower: bigint; + timestamp: Date; +} +export interface LightClientAttackEvidenceProtoMsg { + typeUrl: "/tendermint.types.LightClientAttackEvidence"; + value: Uint8Array; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidenceAmino { + conflicting_block?: LightBlockAmino; + common_height?: string; + byzantine_validators?: ValidatorAmino[]; + total_voting_power?: string; + timestamp?: string; +} +export interface LightClientAttackEvidenceAminoMsg { + type: "/tendermint.types.LightClientAttackEvidence"; + value: LightClientAttackEvidenceAmino; +} +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface LightClientAttackEvidenceSDKType { + conflicting_block?: LightBlockSDKType; + common_height: bigint; + byzantine_validators: ValidatorSDKType[]; + total_voting_power: bigint; + timestamp: Date; +} +export interface EvidenceList { + evidence: Evidence[]; +} +export interface EvidenceListProtoMsg { + typeUrl: "/tendermint.types.EvidenceList"; + value: Uint8Array; +} +export interface EvidenceListAmino { + evidence?: EvidenceAmino[]; +} +export interface EvidenceListAminoMsg { + type: "/tendermint.types.EvidenceList"; + value: EvidenceListAmino; +} +export interface EvidenceListSDKType { + evidence: EvidenceSDKType[]; +} +function createBaseEvidence(): Evidence { + return { + duplicateVoteEvidence: undefined, + lightClientAttackEvidence: undefined + }; +} +export const Evidence = { + typeUrl: "/tendermint.types.Evidence", + encode(message: Evidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.duplicateVoteEvidence !== undefined) { + DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); + } + if (message.lightClientAttackEvidence !== undefined) { + LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Evidence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.duplicateVoteEvidence = DuplicateVoteEvidence.decode(reader, reader.uint32()); + break; + case 2: + message.lightClientAttackEvidence = LightClientAttackEvidence.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Evidence { + const message = createBaseEvidence(); + message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; + message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; + return message; + }, + fromAmino(object: EvidenceAmino): Evidence { + const message = createBaseEvidence(); + if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { + message.duplicateVoteEvidence = DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); + } + if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { + message.lightClientAttackEvidence = LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); + } + return message; + }, + toAmino(message: Evidence): EvidenceAmino { + const obj: any = {}; + obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; + obj.light_client_attack_evidence = message.lightClientAttackEvidence ? LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; + return obj; + }, + fromAminoMsg(object: EvidenceAminoMsg): Evidence { + return Evidence.fromAmino(object.value); + }, + fromProtoMsg(message: EvidenceProtoMsg): Evidence { + return Evidence.decode(message.value); + }, + toProto(message: Evidence): Uint8Array { + return Evidence.encode(message).finish(); + }, + toProtoMsg(message: Evidence): EvidenceProtoMsg { + return { + typeUrl: "/tendermint.types.Evidence", + value: Evidence.encode(message).finish() + }; + } +}; +function createBaseDuplicateVoteEvidence(): DuplicateVoteEvidence { + return { + voteA: undefined, + voteB: undefined, + totalVotingPower: BigInt(0), + validatorPower: BigInt(0), + timestamp: new Date() + }; +} +export const DuplicateVoteEvidence = { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + encode(message: DuplicateVoteEvidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.voteA !== undefined) { + Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); + } + if (message.voteB !== undefined) { + Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + if (message.validatorPower !== BigInt(0)) { + writer.uint32(32).int64(message.validatorPower); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDuplicateVoteEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.voteA = Vote.decode(reader, reader.uint32()); + break; + case 2: + message.voteB = Vote.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + case 4: + message.validatorPower = reader.int64(); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): DuplicateVoteEvidence { + const message = createBaseDuplicateVoteEvidence(); + message.voteA = object.voteA !== undefined && object.voteA !== null ? Vote.fromPartial(object.voteA) : undefined; + message.voteB = object.voteB !== undefined && object.voteB !== null ? Vote.fromPartial(object.voteB) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: DuplicateVoteEvidenceAmino): DuplicateVoteEvidence { + const message = createBaseDuplicateVoteEvidence(); + if (object.vote_a !== undefined && object.vote_a !== null) { + message.voteA = Vote.fromAmino(object.vote_a); + } + if (object.vote_b !== undefined && object.vote_b !== null) { + message.voteB = Vote.fromAmino(object.vote_b); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.validator_power !== undefined && object.validator_power !== null) { + message.validatorPower = BigInt(object.validator_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: DuplicateVoteEvidence): DuplicateVoteEvidenceAmino { + const obj: any = {}; + obj.vote_a = message.voteA ? Vote.toAmino(message.voteA) : undefined; + obj.vote_b = message.voteB ? Vote.toAmino(message.voteB) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: DuplicateVoteEvidenceAminoMsg): DuplicateVoteEvidence { + return DuplicateVoteEvidence.fromAmino(object.value); + }, + fromProtoMsg(message: DuplicateVoteEvidenceProtoMsg): DuplicateVoteEvidence { + return DuplicateVoteEvidence.decode(message.value); + }, + toProto(message: DuplicateVoteEvidence): Uint8Array { + return DuplicateVoteEvidence.encode(message).finish(); + }, + toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg { + return { + typeUrl: "/tendermint.types.DuplicateVoteEvidence", + value: DuplicateVoteEvidence.encode(message).finish() + }; + } +}; +function createBaseLightClientAttackEvidence(): LightClientAttackEvidence { + return { + conflictingBlock: undefined, + commonHeight: BigInt(0), + byzantineValidators: [], + totalVotingPower: BigInt(0), + timestamp: new Date() + }; +} +export const LightClientAttackEvidence = { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + encode(message: LightClientAttackEvidence, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.conflictingBlock !== undefined) { + LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); + } + if (message.commonHeight !== BigInt(0)) { + writer.uint32(16).int64(message.commonHeight); + } + for (const v of message.byzantineValidators) { + Validator.encode(v!, writer.uint32(26).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(32).int64(message.totalVotingPower); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightClientAttackEvidence(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conflictingBlock = LightBlock.decode(reader, reader.uint32()); + break; + case 2: + message.commonHeight = reader.int64(); + break; + case 3: + message.byzantineValidators.push(Validator.decode(reader, reader.uint32())); + break; + case 4: + message.totalVotingPower = reader.int64(); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): LightClientAttackEvidence { + const message = createBaseLightClientAttackEvidence(); + message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? LightBlock.fromPartial(object.conflictingBlock) : undefined; + message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); + message.byzantineValidators = object.byzantineValidators?.map(e => Validator.fromPartial(e)) || []; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + message.timestamp = object.timestamp ?? undefined; + return message; + }, + fromAmino(object: LightClientAttackEvidenceAmino): LightClientAttackEvidence { + const message = createBaseLightClientAttackEvidence(); + if (object.conflicting_block !== undefined && object.conflicting_block !== null) { + message.conflictingBlock = LightBlock.fromAmino(object.conflicting_block); + } + if (object.common_height !== undefined && object.common_height !== null) { + message.commonHeight = BigInt(object.common_height); + } + message.byzantineValidators = object.byzantine_validators?.map(e => Validator.fromAmino(e)) || []; + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + return message; + }, + toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino { + const obj: any = {}; + obj.conflicting_block = message.conflictingBlock ? LightBlock.toAmino(message.conflictingBlock) : undefined; + obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; + if (message.byzantineValidators) { + obj.byzantine_validators = message.byzantineValidators.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.byzantine_validators = message.byzantineValidators; + } + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + return obj; + }, + fromAminoMsg(object: LightClientAttackEvidenceAminoMsg): LightClientAttackEvidence { + return LightClientAttackEvidence.fromAmino(object.value); + }, + fromProtoMsg(message: LightClientAttackEvidenceProtoMsg): LightClientAttackEvidence { + return LightClientAttackEvidence.decode(message.value); + }, + toProto(message: LightClientAttackEvidence): Uint8Array { + return LightClientAttackEvidence.encode(message).finish(); + }, + toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg { + return { + typeUrl: "/tendermint.types.LightClientAttackEvidence", + value: LightClientAttackEvidence.encode(message).finish() + }; + } +}; +function createBaseEvidenceList(): EvidenceList { + return { + evidence: [] + }; +} +export const EvidenceList = { + typeUrl: "/tendermint.types.EvidenceList", + encode(message: EvidenceList, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.evidence) { + Evidence.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.evidence.push(Evidence.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EvidenceList { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => Evidence.fromPartial(e)) || []; + return message; + }, + fromAmino(object: EvidenceListAmino): EvidenceList { + const message = createBaseEvidenceList(); + message.evidence = object.evidence?.map(e => Evidence.fromAmino(e)) || []; + return message; + }, + toAmino(message: EvidenceList): EvidenceListAmino { + const obj: any = {}; + if (message.evidence) { + obj.evidence = message.evidence.map(e => e ? Evidence.toAmino(e) : undefined); + } else { + obj.evidence = message.evidence; + } + return obj; + }, + fromAminoMsg(object: EvidenceListAminoMsg): EvidenceList { + return EvidenceList.fromAmino(object.value); + }, + fromProtoMsg(message: EvidenceListProtoMsg): EvidenceList { + return EvidenceList.decode(message.value); + }, + toProto(message: EvidenceList): Uint8Array { + return EvidenceList.encode(message).finish(); + }, + toProtoMsg(message: EvidenceList): EvidenceListProtoMsg { + return { + typeUrl: "/tendermint.types.EvidenceList", + value: EvidenceList.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/types/params.ts b/packages/api/src/tendermint/types/params.ts new file mode 100644 index 00000000..c58d7bd6 --- /dev/null +++ b/packages/api/src/tendermint/types/params.ts @@ -0,0 +1,690 @@ +//@ts-nocheck +import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParams { + block?: BlockParams; + evidence?: EvidenceParams; + validator?: ValidatorParams; + version?: VersionParams; +} +export interface ConsensusParamsProtoMsg { + typeUrl: "/tendermint.types.ConsensusParams"; + value: Uint8Array; +} +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParamsAmino { + block?: BlockParamsAmino; + evidence?: EvidenceParamsAmino; + validator?: ValidatorParamsAmino; + version?: VersionParamsAmino; +} +export interface ConsensusParamsAminoMsg { + type: "/tendermint.types.ConsensusParams"; + value: ConsensusParamsAmino; +} +/** + * ConsensusParams contains consensus critical parameters that determine the + * validity of blocks. + */ +export interface ConsensusParamsSDKType { + block?: BlockParamsSDKType; + evidence?: EvidenceParamsSDKType; + validator?: ValidatorParamsSDKType; + version?: VersionParamsSDKType; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParams { + /** + * Max block size, in bytes. + * Note: must be greater than 0 + */ + maxBytes: bigint; + /** + * Max gas per block. + * Note: must be greater or equal to -1 + */ + maxGas: bigint; +} +export interface BlockParamsProtoMsg { + typeUrl: "/tendermint.types.BlockParams"; + value: Uint8Array; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParamsAmino { + /** + * Max block size, in bytes. + * Note: must be greater than 0 + */ + max_bytes?: string; + /** + * Max gas per block. + * Note: must be greater or equal to -1 + */ + max_gas?: string; +} +export interface BlockParamsAminoMsg { + type: "/tendermint.types.BlockParams"; + value: BlockParamsAmino; +} +/** BlockParams contains limits on the block size. */ +export interface BlockParamsSDKType { + max_bytes: bigint; + max_gas: bigint; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParams { + /** + * Max age of evidence, in blocks. + * + * The basic formula for calculating this is: MaxAgeDuration / {average block + * time}. + */ + maxAgeNumBlocks: bigint; + /** + * Max age of evidence, in time. + * + * It should correspond with an app's "unbonding period" or other similar + * mechanism for handling [Nothing-At-Stake + * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + */ + maxAgeDuration: Duration; + /** + * This sets the maximum size of total evidence in bytes that can be committed in a single block. + * and should fall comfortably under the max block bytes. + * Default is 1048576 or 1MB + */ + maxBytes: bigint; +} +export interface EvidenceParamsProtoMsg { + typeUrl: "/tendermint.types.EvidenceParams"; + value: Uint8Array; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParamsAmino { + /** + * Max age of evidence, in blocks. + * + * The basic formula for calculating this is: MaxAgeDuration / {average block + * time}. + */ + max_age_num_blocks?: string; + /** + * Max age of evidence, in time. + * + * It should correspond with an app's "unbonding period" or other similar + * mechanism for handling [Nothing-At-Stake + * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + */ + max_age_duration?: DurationAmino; + /** + * This sets the maximum size of total evidence in bytes that can be committed in a single block. + * and should fall comfortably under the max block bytes. + * Default is 1048576 or 1MB + */ + max_bytes?: string; +} +export interface EvidenceParamsAminoMsg { + type: "/tendermint.types.EvidenceParams"; + value: EvidenceParamsAmino; +} +/** EvidenceParams determine how we handle evidence of malfeasance. */ +export interface EvidenceParamsSDKType { + max_age_num_blocks: bigint; + max_age_duration: DurationSDKType; + max_bytes: bigint; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParams { + pubKeyTypes: string[]; +} +export interface ValidatorParamsProtoMsg { + typeUrl: "/tendermint.types.ValidatorParams"; + value: Uint8Array; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParamsAmino { + pub_key_types?: string[]; +} +export interface ValidatorParamsAminoMsg { + type: "/tendermint.types.ValidatorParams"; + value: ValidatorParamsAmino; +} +/** + * ValidatorParams restrict the public key types validators can use. + * NOTE: uses ABCI pubkey naming, not Amino names. + */ +export interface ValidatorParamsSDKType { + pub_key_types: string[]; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParams { + app: bigint; +} +export interface VersionParamsProtoMsg { + typeUrl: "/tendermint.types.VersionParams"; + value: Uint8Array; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParamsAmino { + app?: string; +} +export interface VersionParamsAminoMsg { + type: "/tendermint.types.VersionParams"; + value: VersionParamsAmino; +} +/** VersionParams contains the ABCI application version. */ +export interface VersionParamsSDKType { + app: bigint; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParams { + blockMaxBytes: bigint; + blockMaxGas: bigint; +} +export interface HashedParamsProtoMsg { + typeUrl: "/tendermint.types.HashedParams"; + value: Uint8Array; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParamsAmino { + block_max_bytes?: string; + block_max_gas?: string; +} +export interface HashedParamsAminoMsg { + type: "/tendermint.types.HashedParams"; + value: HashedParamsAmino; +} +/** + * HashedParams is a subset of ConsensusParams. + * + * It is hashed into the Header.ConsensusHash. + */ +export interface HashedParamsSDKType { + block_max_bytes: bigint; + block_max_gas: bigint; +} +function createBaseConsensusParams(): ConsensusParams { + return { + block: undefined, + evidence: undefined, + validator: undefined, + version: undefined + }; +} +export const ConsensusParams = { + typeUrl: "/tendermint.types.ConsensusParams", + encode(message: ConsensusParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.block !== undefined) { + BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); + } + if (message.evidence !== undefined) { + EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); + } + if (message.validator !== undefined) { + ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); + } + if (message.version !== undefined) { + VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensusParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = BlockParams.decode(reader, reader.uint32()); + break; + case 2: + message.evidence = EvidenceParams.decode(reader, reader.uint32()); + break; + case 3: + message.validator = ValidatorParams.decode(reader, reader.uint32()); + break; + case 4: + message.version = VersionParams.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ConsensusParams { + const message = createBaseConsensusParams(); + message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined; + message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined; + message.validator = object.validator !== undefined && object.validator !== null ? ValidatorParams.fromPartial(object.validator) : undefined; + message.version = object.version !== undefined && object.version !== null ? VersionParams.fromPartial(object.version) : undefined; + return message; + }, + fromAmino(object: ConsensusParamsAmino): ConsensusParams { + const message = createBaseConsensusParams(); + if (object.block !== undefined && object.block !== null) { + message.block = BlockParams.fromAmino(object.block); + } + if (object.evidence !== undefined && object.evidence !== null) { + message.evidence = EvidenceParams.fromAmino(object.evidence); + } + if (object.validator !== undefined && object.validator !== null) { + message.validator = ValidatorParams.fromAmino(object.validator); + } + if (object.version !== undefined && object.version !== null) { + message.version = VersionParams.fromAmino(object.version); + } + return message; + }, + toAmino(message: ConsensusParams): ConsensusParamsAmino { + const obj: any = {}; + obj.block = message.block ? BlockParams.toAmino(message.block) : undefined; + obj.evidence = message.evidence ? EvidenceParams.toAmino(message.evidence) : undefined; + obj.validator = message.validator ? ValidatorParams.toAmino(message.validator) : undefined; + obj.version = message.version ? VersionParams.toAmino(message.version) : undefined; + return obj; + }, + fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams { + return ConsensusParams.fromAmino(object.value); + }, + fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams { + return ConsensusParams.decode(message.value); + }, + toProto(message: ConsensusParams): Uint8Array { + return ConsensusParams.encode(message).finish(); + }, + toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg { + return { + typeUrl: "/tendermint.types.ConsensusParams", + value: ConsensusParams.encode(message).finish() + }; + } +}; +function createBaseBlockParams(): BlockParams { + return { + maxBytes: BigInt(0), + maxGas: BigInt(0) + }; +} +export const BlockParams = { + typeUrl: "/tendermint.types.BlockParams", + encode(message: BlockParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.maxBytes); + } + if (message.maxGas !== BigInt(0)) { + writer.uint32(16).int64(message.maxGas); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BlockParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxBytes = reader.int64(); + break; + case 2: + message.maxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BlockParams { + const message = createBaseBlockParams(); + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BlockParamsAmino): BlockParams { + const message = createBaseBlockParams(); + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + if (object.max_gas !== undefined && object.max_gas !== null) { + message.maxGas = BigInt(object.max_gas); + } + return message; + }, + toAmino(message: BlockParams): BlockParamsAmino { + const obj: any = {}; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BlockParamsAminoMsg): BlockParams { + return BlockParams.fromAmino(object.value); + }, + fromProtoMsg(message: BlockParamsProtoMsg): BlockParams { + return BlockParams.decode(message.value); + }, + toProto(message: BlockParams): Uint8Array { + return BlockParams.encode(message).finish(); + }, + toProtoMsg(message: BlockParams): BlockParamsProtoMsg { + return { + typeUrl: "/tendermint.types.BlockParams", + value: BlockParams.encode(message).finish() + }; + } +}; +function createBaseEvidenceParams(): EvidenceParams { + return { + maxAgeNumBlocks: BigInt(0), + maxAgeDuration: Duration.fromPartial({}), + maxBytes: BigInt(0) + }; +} +export const EvidenceParams = { + typeUrl: "/tendermint.types.EvidenceParams", + encode(message: EvidenceParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxAgeNumBlocks !== BigInt(0)) { + writer.uint32(8).int64(message.maxAgeNumBlocks); + } + if (message.maxAgeDuration !== undefined) { + Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); + } + if (message.maxBytes !== BigInt(0)) { + writer.uint32(24).int64(message.maxBytes); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvidenceParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxAgeNumBlocks = reader.int64(); + break; + case 2: + message.maxAgeDuration = Duration.decode(reader, reader.uint32()); + break; + case 3: + message.maxBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): EvidenceParams { + const message = createBaseEvidenceParams(); + message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); + message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? Duration.fromPartial(object.maxAgeDuration) : undefined; + message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); + return message; + }, + fromAmino(object: EvidenceParamsAmino): EvidenceParams { + const message = createBaseEvidenceParams(); + if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { + message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); + } + if (object.max_age_duration !== undefined && object.max_age_duration !== null) { + message.maxAgeDuration = Duration.fromAmino(object.max_age_duration); + } + if (object.max_bytes !== undefined && object.max_bytes !== null) { + message.maxBytes = BigInt(object.max_bytes); + } + return message; + }, + toAmino(message: EvidenceParams): EvidenceParamsAmino { + const obj: any = {}; + obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; + obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + return obj; + }, + fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams { + return EvidenceParams.fromAmino(object.value); + }, + fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams { + return EvidenceParams.decode(message.value); + }, + toProto(message: EvidenceParams): Uint8Array { + return EvidenceParams.encode(message).finish(); + }, + toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg { + return { + typeUrl: "/tendermint.types.EvidenceParams", + value: EvidenceParams.encode(message).finish() + }; + } +}; +function createBaseValidatorParams(): ValidatorParams { + return { + pubKeyTypes: [] + }; +} +export const ValidatorParams = { + typeUrl: "/tendermint.types.ValidatorParams", + encode(message: ValidatorParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.pubKeyTypes) { + writer.uint32(10).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKeyTypes.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorParams { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; + return message; + }, + fromAmino(object: ValidatorParamsAmino): ValidatorParams { + const message = createBaseValidatorParams(); + message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; + return message; + }, + toAmino(message: ValidatorParams): ValidatorParamsAmino { + const obj: any = {}; + if (message.pubKeyTypes) { + obj.pub_key_types = message.pubKeyTypes.map(e => e); + } else { + obj.pub_key_types = message.pubKeyTypes; + } + return obj; + }, + fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams { + return ValidatorParams.fromAmino(object.value); + }, + fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams { + return ValidatorParams.decode(message.value); + }, + toProto(message: ValidatorParams): Uint8Array { + return ValidatorParams.encode(message).finish(); + }, + toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg { + return { + typeUrl: "/tendermint.types.ValidatorParams", + value: ValidatorParams.encode(message).finish() + }; + } +}; +function createBaseVersionParams(): VersionParams { + return { + app: BigInt(0) + }; +} +export const VersionParams = { + typeUrl: "/tendermint.types.VersionParams", + encode(message: VersionParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.app !== BigInt(0)) { + writer.uint32(8).uint64(message.app); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): VersionParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVersionParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): VersionParams { + const message = createBaseVersionParams(); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object: VersionParamsAmino): VersionParams { + const message = createBaseVersionParams(); + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message: VersionParams): VersionParamsAmino { + const obj: any = {}; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object: VersionParamsAminoMsg): VersionParams { + return VersionParams.fromAmino(object.value); + }, + fromProtoMsg(message: VersionParamsProtoMsg): VersionParams { + return VersionParams.decode(message.value); + }, + toProto(message: VersionParams): Uint8Array { + return VersionParams.encode(message).finish(); + }, + toProtoMsg(message: VersionParams): VersionParamsProtoMsg { + return { + typeUrl: "/tendermint.types.VersionParams", + value: VersionParams.encode(message).finish() + }; + } +}; +function createBaseHashedParams(): HashedParams { + return { + blockMaxBytes: BigInt(0), + blockMaxGas: BigInt(0) + }; +} +export const HashedParams = { + typeUrl: "/tendermint.types.HashedParams", + encode(message: HashedParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.blockMaxBytes !== BigInt(0)) { + writer.uint32(8).int64(message.blockMaxBytes); + } + if (message.blockMaxGas !== BigInt(0)) { + writer.uint32(16).int64(message.blockMaxGas); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): HashedParams { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHashedParams(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockMaxBytes = reader.int64(); + break; + case 2: + message.blockMaxGas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): HashedParams { + const message = createBaseHashedParams(); + message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); + message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); + return message; + }, + fromAmino(object: HashedParamsAmino): HashedParams { + const message = createBaseHashedParams(); + if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { + message.blockMaxBytes = BigInt(object.block_max_bytes); + } + if (object.block_max_gas !== undefined && object.block_max_gas !== null) { + message.blockMaxGas = BigInt(object.block_max_gas); + } + return message; + }, + toAmino(message: HashedParams): HashedParamsAmino { + const obj: any = {}; + obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; + obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; + return obj; + }, + fromAminoMsg(object: HashedParamsAminoMsg): HashedParams { + return HashedParams.fromAmino(object.value); + }, + fromProtoMsg(message: HashedParamsProtoMsg): HashedParams { + return HashedParams.decode(message.value); + }, + toProto(message: HashedParams): Uint8Array { + return HashedParams.encode(message).finish(); + }, + toProtoMsg(message: HashedParams): HashedParamsProtoMsg { + return { + typeUrl: "/tendermint.types.HashedParams", + value: HashedParams.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/types/types.ts b/packages/api/src/tendermint/types/types.ts new file mode 100644 index 00000000..8660f854 --- /dev/null +++ b/packages/api/src/tendermint/types/types.ts @@ -0,0 +1,1849 @@ +//@ts-nocheck +import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; +import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; +import { Timestamp } from "../../google/protobuf/timestamp"; +import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../helpers"; +/** BlockIdFlag indicates which BlcokID the signature is for */ +export enum BlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = 0, + BLOCK_ID_FLAG_ABSENT = 1, + BLOCK_ID_FLAG_COMMIT = 2, + BLOCK_ID_FLAG_NIL = 3, + UNRECOGNIZED = -1, +} +export const BlockIDFlagSDKType = BlockIDFlag; +export const BlockIDFlagAmino = BlockIDFlag; +export function blockIDFlagFromJSON(object: any): BlockIDFlag { + switch (object) { + case 0: + case "BLOCK_ID_FLAG_UNKNOWN": + return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; + case 1: + case "BLOCK_ID_FLAG_ABSENT": + return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; + case 2: + case "BLOCK_ID_FLAG_COMMIT": + return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; + case 3: + case "BLOCK_ID_FLAG_NIL": + return BlockIDFlag.BLOCK_ID_FLAG_NIL; + case -1: + case "UNRECOGNIZED": + default: + return BlockIDFlag.UNRECOGNIZED; + } +} +export function blockIDFlagToJSON(object: BlockIDFlag): string { + switch (object) { + case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: + return "BLOCK_ID_FLAG_UNKNOWN"; + case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: + return "BLOCK_ID_FLAG_ABSENT"; + case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: + return "BLOCK_ID_FLAG_COMMIT"; + case BlockIDFlag.BLOCK_ID_FLAG_NIL: + return "BLOCK_ID_FLAG_NIL"; + case BlockIDFlag.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** SignedMsgType is a type of signed message in the consensus. */ +export enum SignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = 0, + /** SIGNED_MSG_TYPE_PREVOTE - Votes */ + SIGNED_MSG_TYPE_PREVOTE = 1, + SIGNED_MSG_TYPE_PRECOMMIT = 2, + /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ + SIGNED_MSG_TYPE_PROPOSAL = 32, + UNRECOGNIZED = -1, +} +export const SignedMsgTypeSDKType = SignedMsgType; +export const SignedMsgTypeAmino = SignedMsgType; +export function signedMsgTypeFromJSON(object: any): SignedMsgType { + switch (object) { + case 0: + case "SIGNED_MSG_TYPE_UNKNOWN": + return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; + case 1: + case "SIGNED_MSG_TYPE_PREVOTE": + return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; + case 2: + case "SIGNED_MSG_TYPE_PRECOMMIT": + return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; + case 32: + case "SIGNED_MSG_TYPE_PROPOSAL": + return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; + case -1: + case "UNRECOGNIZED": + default: + return SignedMsgType.UNRECOGNIZED; + } +} +export function signedMsgTypeToJSON(object: SignedMsgType): string { + switch (object) { + case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: + return "SIGNED_MSG_TYPE_UNKNOWN"; + case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: + return "SIGNED_MSG_TYPE_PREVOTE"; + case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: + return "SIGNED_MSG_TYPE_PRECOMMIT"; + case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: + return "SIGNED_MSG_TYPE_PROPOSAL"; + case SignedMsgType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} +/** PartsetHeader */ +export interface PartSetHeader { + total: number; + hash: Uint8Array; +} +export interface PartSetHeaderProtoMsg { + typeUrl: "/tendermint.types.PartSetHeader"; + value: Uint8Array; +} +/** PartsetHeader */ +export interface PartSetHeaderAmino { + total?: number; + hash?: string; +} +export interface PartSetHeaderAminoMsg { + type: "/tendermint.types.PartSetHeader"; + value: PartSetHeaderAmino; +} +/** PartsetHeader */ +export interface PartSetHeaderSDKType { + total: number; + hash: Uint8Array; +} +export interface Part { + index: number; + bytes: Uint8Array; + proof: Proof; +} +export interface PartProtoMsg { + typeUrl: "/tendermint.types.Part"; + value: Uint8Array; +} +export interface PartAmino { + index?: number; + bytes?: string; + proof?: ProofAmino; +} +export interface PartAminoMsg { + type: "/tendermint.types.Part"; + value: PartAmino; +} +export interface PartSDKType { + index: number; + bytes: Uint8Array; + proof: ProofSDKType; +} +/** BlockID */ +export interface BlockID { + hash: Uint8Array; + partSetHeader: PartSetHeader; +} +export interface BlockIDProtoMsg { + typeUrl: "/tendermint.types.BlockID"; + value: Uint8Array; +} +/** BlockID */ +export interface BlockIDAmino { + hash?: string; + part_set_header?: PartSetHeaderAmino; +} +export interface BlockIDAminoMsg { + type: "/tendermint.types.BlockID"; + value: BlockIDAmino; +} +/** BlockID */ +export interface BlockIDSDKType { + hash: Uint8Array; + part_set_header: PartSetHeaderSDKType; +} +/** Header defines the structure of a block header. */ +export interface Header { + /** basic block info */ + version: Consensus; + chainId: string; + height: bigint; + time: Date; + /** prev block info */ + lastBlockId: BlockID; + /** hashes of block data */ + lastCommitHash: Uint8Array; + dataHash: Uint8Array; + /** hashes from the app output from the prev block */ + validatorsHash: Uint8Array; + /** validators for the next block */ + nextValidatorsHash: Uint8Array; + /** consensus params for current block */ + consensusHash: Uint8Array; + /** state after txs from the previous block */ + appHash: Uint8Array; + lastResultsHash: Uint8Array; + /** consensus info */ + evidenceHash: Uint8Array; + /** original proposer of the block */ + proposerAddress: Uint8Array; +} +export interface HeaderProtoMsg { + typeUrl: "/tendermint.types.Header"; + value: Uint8Array; +} +/** Header defines the structure of a block header. */ +export interface HeaderAmino { + /** basic block info */ + version?: ConsensusAmino; + chain_id?: string; + height?: string; + time?: string; + /** prev block info */ + last_block_id?: BlockIDAmino; + /** hashes of block data */ + last_commit_hash?: string; + data_hash?: string; + /** hashes from the app output from the prev block */ + validators_hash?: string; + /** validators for the next block */ + next_validators_hash?: string; + /** consensus params for current block */ + consensus_hash?: string; + /** state after txs from the previous block */ + app_hash?: string; + last_results_hash?: string; + /** consensus info */ + evidence_hash?: string; + /** original proposer of the block */ + proposer_address?: string; +} +export interface HeaderAminoMsg { + type: "/tendermint.types.Header"; + value: HeaderAmino; +} +/** Header defines the structure of a block header. */ +export interface HeaderSDKType { + version: ConsensusSDKType; + chain_id: string; + height: bigint; + time: Date; + last_block_id: BlockIDSDKType; + last_commit_hash: Uint8Array; + data_hash: Uint8Array; + validators_hash: Uint8Array; + next_validators_hash: Uint8Array; + consensus_hash: Uint8Array; + app_hash: Uint8Array; + last_results_hash: Uint8Array; + evidence_hash: Uint8Array; + proposer_address: Uint8Array; +} +/** Data contains the set of transactions included in the block */ +export interface Data { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs: Uint8Array[]; +} +export interface DataProtoMsg { + typeUrl: "/tendermint.types.Data"; + value: Uint8Array; +} +/** Data contains the set of transactions included in the block */ +export interface DataAmino { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; +} +export interface DataAminoMsg { + type: "/tendermint.types.Data"; + value: DataAmino; +} +/** Data contains the set of transactions included in the block */ +export interface DataSDKType { + txs: Uint8Array[]; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface Vote { + type: SignedMsgType; + height: bigint; + round: number; + blockId: BlockID; + timestamp: Date; + validatorAddress: Uint8Array; + validatorIndex: number; + signature: Uint8Array; +} +export interface VoteProtoMsg { + typeUrl: "/tendermint.types.Vote"; + value: Uint8Array; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface VoteAmino { + type?: SignedMsgType; + height?: string; + round?: number; + block_id?: BlockIDAmino; + timestamp?: string; + validator_address?: string; + validator_index?: number; + signature?: string; +} +export interface VoteAminoMsg { + type: "/tendermint.types.Vote"; + value: VoteAmino; +} +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface VoteSDKType { + type: SignedMsgType; + height: bigint; + round: number; + block_id: BlockIDSDKType; + timestamp: Date; + validator_address: Uint8Array; + validator_index: number; + signature: Uint8Array; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface Commit { + height: bigint; + round: number; + blockId: BlockID; + signatures: CommitSig[]; +} +export interface CommitProtoMsg { + typeUrl: "/tendermint.types.Commit"; + value: Uint8Array; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface CommitAmino { + height?: string; + round?: number; + block_id?: BlockIDAmino; + signatures?: CommitSigAmino[]; +} +export interface CommitAminoMsg { + type: "/tendermint.types.Commit"; + value: CommitAmino; +} +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface CommitSDKType { + height: bigint; + round: number; + block_id: BlockIDSDKType; + signatures: CommitSigSDKType[]; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSig { + blockIdFlag: BlockIDFlag; + validatorAddress: Uint8Array; + timestamp: Date; + signature: Uint8Array; +} +export interface CommitSigProtoMsg { + typeUrl: "/tendermint.types.CommitSig"; + value: Uint8Array; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSigAmino { + block_id_flag?: BlockIDFlag; + validator_address?: string; + timestamp?: string; + signature?: string; +} +export interface CommitSigAminoMsg { + type: "/tendermint.types.CommitSig"; + value: CommitSigAmino; +} +/** CommitSig is a part of the Vote included in a Commit. */ +export interface CommitSigSDKType { + block_id_flag: BlockIDFlag; + validator_address: Uint8Array; + timestamp: Date; + signature: Uint8Array; +} +export interface Proposal { + type: SignedMsgType; + height: bigint; + round: number; + polRound: number; + blockId: BlockID; + timestamp: Date; + signature: Uint8Array; +} +export interface ProposalProtoMsg { + typeUrl: "/tendermint.types.Proposal"; + value: Uint8Array; +} +export interface ProposalAmino { + type?: SignedMsgType; + height?: string; + round?: number; + pol_round?: number; + block_id?: BlockIDAmino; + timestamp?: string; + signature?: string; +} +export interface ProposalAminoMsg { + type: "/tendermint.types.Proposal"; + value: ProposalAmino; +} +export interface ProposalSDKType { + type: SignedMsgType; + height: bigint; + round: number; + pol_round: number; + block_id: BlockIDSDKType; + timestamp: Date; + signature: Uint8Array; +} +export interface SignedHeader { + header?: Header; + commit?: Commit; +} +export interface SignedHeaderProtoMsg { + typeUrl: "/tendermint.types.SignedHeader"; + value: Uint8Array; +} +export interface SignedHeaderAmino { + header?: HeaderAmino; + commit?: CommitAmino; +} +export interface SignedHeaderAminoMsg { + type: "/tendermint.types.SignedHeader"; + value: SignedHeaderAmino; +} +export interface SignedHeaderSDKType { + header?: HeaderSDKType; + commit?: CommitSDKType; +} +export interface LightBlock { + signedHeader?: SignedHeader; + validatorSet?: ValidatorSet; +} +export interface LightBlockProtoMsg { + typeUrl: "/tendermint.types.LightBlock"; + value: Uint8Array; +} +export interface LightBlockAmino { + signed_header?: SignedHeaderAmino; + validator_set?: ValidatorSetAmino; +} +export interface LightBlockAminoMsg { + type: "/tendermint.types.LightBlock"; + value: LightBlockAmino; +} +export interface LightBlockSDKType { + signed_header?: SignedHeaderSDKType; + validator_set?: ValidatorSetSDKType; +} +export interface BlockMeta { + blockId: BlockID; + blockSize: bigint; + header: Header; + numTxs: bigint; +} +export interface BlockMetaProtoMsg { + typeUrl: "/tendermint.types.BlockMeta"; + value: Uint8Array; +} +export interface BlockMetaAmino { + block_id?: BlockIDAmino; + block_size?: string; + header?: HeaderAmino; + num_txs?: string; +} +export interface BlockMetaAminoMsg { + type: "/tendermint.types.BlockMeta"; + value: BlockMetaAmino; +} +export interface BlockMetaSDKType { + block_id: BlockIDSDKType; + block_size: bigint; + header: HeaderSDKType; + num_txs: bigint; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProof { + rootHash: Uint8Array; + data: Uint8Array; + proof?: Proof; +} +export interface TxProofProtoMsg { + typeUrl: "/tendermint.types.TxProof"; + value: Uint8Array; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProofAmino { + root_hash?: string; + data?: string; + proof?: ProofAmino; +} +export interface TxProofAminoMsg { + type: "/tendermint.types.TxProof"; + value: TxProofAmino; +} +/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ +export interface TxProofSDKType { + root_hash: Uint8Array; + data: Uint8Array; + proof?: ProofSDKType; +} +function createBasePartSetHeader(): PartSetHeader { + return { + total: 0, + hash: new Uint8Array() + }; +} +export const PartSetHeader = { + typeUrl: "/tendermint.types.PartSetHeader", + encode(message: PartSetHeader, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.total !== 0) { + writer.uint32(8).uint32(message.total); + } + if (message.hash.length !== 0) { + writer.uint32(18).bytes(message.hash); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePartSetHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.total = reader.uint32(); + break; + case 2: + message.hash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): PartSetHeader { + const message = createBasePartSetHeader(); + message.total = object.total ?? 0; + message.hash = object.hash ?? new Uint8Array(); + return message; + }, + fromAmino(object: PartSetHeaderAmino): PartSetHeader { + const message = createBasePartSetHeader(); + if (object.total !== undefined && object.total !== null) { + message.total = object.total; + } + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + return message; + }, + toAmino(message: PartSetHeader): PartSetHeaderAmino { + const obj: any = {}; + obj.total = message.total === 0 ? undefined : message.total; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + return obj; + }, + fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader { + return PartSetHeader.fromAmino(object.value); + }, + fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader { + return PartSetHeader.decode(message.value); + }, + toProto(message: PartSetHeader): Uint8Array { + return PartSetHeader.encode(message).finish(); + }, + toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg { + return { + typeUrl: "/tendermint.types.PartSetHeader", + value: PartSetHeader.encode(message).finish() + }; + } +}; +function createBasePart(): Part { + return { + index: 0, + bytes: new Uint8Array(), + proof: Proof.fromPartial({}) + }; +} +export const Part = { + typeUrl: "/tendermint.types.Part", + encode(message: Part, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.index !== 0) { + writer.uint32(8).uint32(message.index); + } + if (message.bytes.length !== 0) { + writer.uint32(18).bytes(message.bytes); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Part { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.bytes = reader.bytes(); + break; + case 3: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Part { + const message = createBasePart(); + message.index = object.index ?? 0; + message.bytes = object.bytes ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object: PartAmino): Part { + const message = createBasePart(); + if (object.index !== undefined && object.index !== null) { + message.index = object.index; + } + if (object.bytes !== undefined && object.bytes !== null) { + message.bytes = bytesFromBase64(object.bytes); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message: Part): PartAmino { + const obj: any = {}; + obj.index = message.index === 0 ? undefined : message.index; + obj.bytes = message.bytes ? base64FromBytes(message.bytes) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object: PartAminoMsg): Part { + return Part.fromAmino(object.value); + }, + fromProtoMsg(message: PartProtoMsg): Part { + return Part.decode(message.value); + }, + toProto(message: Part): Uint8Array { + return Part.encode(message).finish(); + }, + toProtoMsg(message: Part): PartProtoMsg { + return { + typeUrl: "/tendermint.types.Part", + value: Part.encode(message).finish() + }; + } +}; +function createBaseBlockID(): BlockID { + return { + hash: new Uint8Array(), + partSetHeader: PartSetHeader.fromPartial({}) + }; +} +export const BlockID = { + typeUrl: "/tendermint.types.BlockID", + encode(message: BlockID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.hash.length !== 0) { + writer.uint32(10).bytes(message.hash); + } + if (message.partSetHeader !== undefined) { + PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BlockID { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.bytes(); + break; + case 2: + message.partSetHeader = PartSetHeader.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BlockID { + const message = createBaseBlockID(); + message.hash = object.hash ?? new Uint8Array(); + message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? PartSetHeader.fromPartial(object.partSetHeader) : undefined; + return message; + }, + fromAmino(object: BlockIDAmino): BlockID { + const message = createBaseBlockID(); + if (object.hash !== undefined && object.hash !== null) { + message.hash = bytesFromBase64(object.hash); + } + if (object.part_set_header !== undefined && object.part_set_header !== null) { + message.partSetHeader = PartSetHeader.fromAmino(object.part_set_header); + } + return message; + }, + toAmino(message: BlockID): BlockIDAmino { + const obj: any = {}; + obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; + obj.part_set_header = message.partSetHeader ? PartSetHeader.toAmino(message.partSetHeader) : undefined; + return obj; + }, + fromAminoMsg(object: BlockIDAminoMsg): BlockID { + return BlockID.fromAmino(object.value); + }, + fromProtoMsg(message: BlockIDProtoMsg): BlockID { + return BlockID.decode(message.value); + }, + toProto(message: BlockID): Uint8Array { + return BlockID.encode(message).finish(); + }, + toProtoMsg(message: BlockID): BlockIDProtoMsg { + return { + typeUrl: "/tendermint.types.BlockID", + value: BlockID.encode(message).finish() + }; + } +}; +function createBaseHeader(): Header { + return { + version: Consensus.fromPartial({}), + chainId: "", + height: BigInt(0), + time: new Date(), + lastBlockId: BlockID.fromPartial({}), + lastCommitHash: new Uint8Array(), + dataHash: new Uint8Array(), + validatorsHash: new Uint8Array(), + nextValidatorsHash: new Uint8Array(), + consensusHash: new Uint8Array(), + appHash: new Uint8Array(), + lastResultsHash: new Uint8Array(), + evidenceHash: new Uint8Array(), + proposerAddress: new Uint8Array() + }; +} +export const Header = { + typeUrl: "/tendermint.types.Header", + encode(message: Header, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.version !== undefined) { + Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); + } + if (message.chainId !== "") { + writer.uint32(18).string(message.chainId); + } + if (message.height !== BigInt(0)) { + writer.uint32(24).int64(message.height); + } + if (message.time !== undefined) { + Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); + } + if (message.lastBlockId !== undefined) { + BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); + } + if (message.lastCommitHash.length !== 0) { + writer.uint32(50).bytes(message.lastCommitHash); + } + if (message.dataHash.length !== 0) { + writer.uint32(58).bytes(message.dataHash); + } + if (message.validatorsHash.length !== 0) { + writer.uint32(66).bytes(message.validatorsHash); + } + if (message.nextValidatorsHash.length !== 0) { + writer.uint32(74).bytes(message.nextValidatorsHash); + } + if (message.consensusHash.length !== 0) { + writer.uint32(82).bytes(message.consensusHash); + } + if (message.appHash.length !== 0) { + writer.uint32(90).bytes(message.appHash); + } + if (message.lastResultsHash.length !== 0) { + writer.uint32(98).bytes(message.lastResultsHash); + } + if (message.evidenceHash.length !== 0) { + writer.uint32(106).bytes(message.evidenceHash); + } + if (message.proposerAddress.length !== 0) { + writer.uint32(114).bytes(message.proposerAddress); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Header { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = Consensus.decode(reader, reader.uint32()); + break; + case 2: + message.chainId = reader.string(); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 5: + message.lastBlockId = BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.lastCommitHash = reader.bytes(); + break; + case 7: + message.dataHash = reader.bytes(); + break; + case 8: + message.validatorsHash = reader.bytes(); + break; + case 9: + message.nextValidatorsHash = reader.bytes(); + break; + case 10: + message.consensusHash = reader.bytes(); + break; + case 11: + message.appHash = reader.bytes(); + break; + case 12: + message.lastResultsHash = reader.bytes(); + break; + case 13: + message.evidenceHash = reader.bytes(); + break; + case 14: + message.proposerAddress = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial
): Header { + const message = createBaseHeader(); + message.version = object.version !== undefined && object.version !== null ? Consensus.fromPartial(object.version) : undefined; + message.chainId = object.chainId ?? ""; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.time = object.time ?? undefined; + message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? BlockID.fromPartial(object.lastBlockId) : undefined; + message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); + message.dataHash = object.dataHash ?? new Uint8Array(); + message.validatorsHash = object.validatorsHash ?? new Uint8Array(); + message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); + message.consensusHash = object.consensusHash ?? new Uint8Array(); + message.appHash = object.appHash ?? new Uint8Array(); + message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); + message.evidenceHash = object.evidenceHash ?? new Uint8Array(); + message.proposerAddress = object.proposerAddress ?? new Uint8Array(); + return message; + }, + fromAmino(object: HeaderAmino): Header { + const message = createBaseHeader(); + if (object.version !== undefined && object.version !== null) { + message.version = Consensus.fromAmino(object.version); + } + if (object.chain_id !== undefined && object.chain_id !== null) { + message.chainId = object.chain_id; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.time !== undefined && object.time !== null) { + message.time = fromTimestamp(Timestamp.fromAmino(object.time)); + } + if (object.last_block_id !== undefined && object.last_block_id !== null) { + message.lastBlockId = BlockID.fromAmino(object.last_block_id); + } + if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { + message.lastCommitHash = bytesFromBase64(object.last_commit_hash); + } + if (object.data_hash !== undefined && object.data_hash !== null) { + message.dataHash = bytesFromBase64(object.data_hash); + } + if (object.validators_hash !== undefined && object.validators_hash !== null) { + message.validatorsHash = bytesFromBase64(object.validators_hash); + } + if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { + message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); + } + if (object.consensus_hash !== undefined && object.consensus_hash !== null) { + message.consensusHash = bytesFromBase64(object.consensus_hash); + } + if (object.app_hash !== undefined && object.app_hash !== null) { + message.appHash = bytesFromBase64(object.app_hash); + } + if (object.last_results_hash !== undefined && object.last_results_hash !== null) { + message.lastResultsHash = bytesFromBase64(object.last_results_hash); + } + if (object.evidence_hash !== undefined && object.evidence_hash !== null) { + message.evidenceHash = bytesFromBase64(object.evidence_hash); + } + if (object.proposer_address !== undefined && object.proposer_address !== null) { + message.proposerAddress = bytesFromBase64(object.proposer_address); + } + return message; + }, + toAmino(message: Header): HeaderAmino { + const obj: any = {}; + obj.version = message.version ? Consensus.toAmino(message.version) : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; + obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; + obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; + obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; + obj.validators_hash = message.validatorsHash ? base64FromBytes(message.validatorsHash) : undefined; + obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; + obj.consensus_hash = message.consensusHash ? base64FromBytes(message.consensusHash) : undefined; + obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; + obj.last_results_hash = message.lastResultsHash ? base64FromBytes(message.lastResultsHash) : undefined; + obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; + obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; + return obj; + }, + fromAminoMsg(object: HeaderAminoMsg): Header { + return Header.fromAmino(object.value); + }, + fromProtoMsg(message: HeaderProtoMsg): Header { + return Header.decode(message.value); + }, + toProto(message: Header): Uint8Array { + return Header.encode(message).finish(); + }, + toProtoMsg(message: Header): HeaderProtoMsg { + return { + typeUrl: "/tendermint.types.Header", + value: Header.encode(message).finish() + }; + } +}; +function createBaseData(): Data { + return { + txs: [] + }; +} +export const Data = { + typeUrl: "/tendermint.types.Data", + encode(message: Data, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.txs) { + writer.uint32(10).bytes(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Data { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.txs.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Data { + const message = createBaseData(); + message.txs = object.txs?.map(e => e) || []; + return message; + }, + fromAmino(object: DataAmino): Data { + const message = createBaseData(); + message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; + return message; + }, + toAmino(message: Data): DataAmino { + const obj: any = {}; + if (message.txs) { + obj.txs = message.txs.map(e => base64FromBytes(e)); + } else { + obj.txs = message.txs; + } + return obj; + }, + fromAminoMsg(object: DataAminoMsg): Data { + return Data.fromAmino(object.value); + }, + fromProtoMsg(message: DataProtoMsg): Data { + return Data.decode(message.value); + }, + toProto(message: Data): Uint8Array { + return Data.encode(message).finish(); + }, + toProtoMsg(message: Data): DataProtoMsg { + return { + typeUrl: "/tendermint.types.Data", + value: Data.encode(message).finish() + }; + } +}; +function createBaseVote(): Vote { + return { + type: 0, + height: BigInt(0), + round: 0, + blockId: BlockID.fromPartial({}), + timestamp: new Date(), + validatorAddress: new Uint8Array(), + validatorIndex: 0, + signature: new Uint8Array() + }; +} +export const Vote = { + typeUrl: "/tendermint.types.Vote", + encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(50).bytes(message.validatorAddress); + } + if (message.validatorIndex !== 0) { + writer.uint32(56).int32(message.validatorIndex); + } + if (message.signature.length !== 0) { + writer.uint32(66).bytes(message.signature); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Vote { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVote(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = (reader.int32() as any); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 5: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 6: + message.validatorAddress = reader.bytes(); + break; + case 7: + message.validatorIndex = reader.int32(); + break; + case 8: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Vote { + const message = createBaseVote(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.validatorIndex = object.validatorIndex ?? 0; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object: VoteAmino): Vote { + const message = createBaseVote(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = bytesFromBase64(object.validator_address); + } + if (object.validator_index !== undefined && object.validator_index !== null) { + message.validatorIndex = object.validator_index; + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message: Vote): VoteAmino { + const obj: any = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; + obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object: VoteAminoMsg): Vote { + return Vote.fromAmino(object.value); + }, + fromProtoMsg(message: VoteProtoMsg): Vote { + return Vote.decode(message.value); + }, + toProto(message: Vote): Uint8Array { + return Vote.encode(message).finish(); + }, + toProtoMsg(message: Vote): VoteProtoMsg { + return { + typeUrl: "/tendermint.types.Vote", + value: Vote.encode(message).finish() + }; + } +}; +function createBaseCommit(): Commit { + return { + height: BigInt(0), + round: 0, + blockId: BlockID.fromPartial({}), + signatures: [] + }; +} +export const Commit = { + typeUrl: "/tendermint.types.Commit", + encode(message: Commit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.height !== BigInt(0)) { + writer.uint32(8).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(16).int32(message.round); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); + } + for (const v of message.signatures) { + CommitSig.encode(v!, writer.uint32(34).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Commit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.height = reader.int64(); + break; + case 2: + message.round = reader.int32(); + break; + case 3: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 4: + message.signatures.push(CommitSig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Commit { + const message = createBaseCommit(); + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.signatures = object.signatures?.map(e => CommitSig.fromPartial(e)) || []; + return message; + }, + fromAmino(object: CommitAmino): Commit { + const message = createBaseCommit(); + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + message.signatures = object.signatures?.map(e => CommitSig.fromAmino(e)) || []; + return message; + }, + toAmino(message: Commit): CommitAmino { + const obj: any = {}; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + if (message.signatures) { + obj.signatures = message.signatures.map(e => e ? CommitSig.toAmino(e) : undefined); + } else { + obj.signatures = message.signatures; + } + return obj; + }, + fromAminoMsg(object: CommitAminoMsg): Commit { + return Commit.fromAmino(object.value); + }, + fromProtoMsg(message: CommitProtoMsg): Commit { + return Commit.decode(message.value); + }, + toProto(message: Commit): Uint8Array { + return Commit.encode(message).finish(); + }, + toProtoMsg(message: Commit): CommitProtoMsg { + return { + typeUrl: "/tendermint.types.Commit", + value: Commit.encode(message).finish() + }; + } +}; +function createBaseCommitSig(): CommitSig { + return { + blockIdFlag: 0, + validatorAddress: new Uint8Array(), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +export const CommitSig = { + typeUrl: "/tendermint.types.CommitSig", + encode(message: CommitSig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.blockIdFlag !== 0) { + writer.uint32(8).int32(message.blockIdFlag); + } + if (message.validatorAddress.length !== 0) { + writer.uint32(18).bytes(message.validatorAddress); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(34).bytes(message.signature); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): CommitSig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCommitSig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockIdFlag = (reader.int32() as any); + break; + case 2: + message.validatorAddress = reader.bytes(); + break; + case 3: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 4: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): CommitSig { + const message = createBaseCommitSig(); + message.blockIdFlag = object.blockIdFlag ?? 0; + message.validatorAddress = object.validatorAddress ?? new Uint8Array(); + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object: CommitSigAmino): CommitSig { + const message = createBaseCommitSig(); + if (object.block_id_flag !== undefined && object.block_id_flag !== null) { + message.blockIdFlag = object.block_id_flag; + } + if (object.validator_address !== undefined && object.validator_address !== null) { + message.validatorAddress = bytesFromBase64(object.validator_address); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message: CommitSig): CommitSigAmino { + const obj: any = {}; + obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; + obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object: CommitSigAminoMsg): CommitSig { + return CommitSig.fromAmino(object.value); + }, + fromProtoMsg(message: CommitSigProtoMsg): CommitSig { + return CommitSig.decode(message.value); + }, + toProto(message: CommitSig): Uint8Array { + return CommitSig.encode(message).finish(); + }, + toProtoMsg(message: CommitSig): CommitSigProtoMsg { + return { + typeUrl: "/tendermint.types.CommitSig", + value: CommitSig.encode(message).finish() + }; + } +}; +function createBaseProposal(): Proposal { + return { + type: 0, + height: BigInt(0), + round: 0, + polRound: 0, + blockId: BlockID.fromPartial({}), + timestamp: new Date(), + signature: new Uint8Array() + }; +} +export const Proposal = { + typeUrl: "/tendermint.types.Proposal", + encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.type !== 0) { + writer.uint32(8).int32(message.type); + } + if (message.height !== BigInt(0)) { + writer.uint32(16).int64(message.height); + } + if (message.round !== 0) { + writer.uint32(24).int32(message.round); + } + if (message.polRound !== 0) { + writer.uint32(32).int32(message.polRound); + } + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); + } + if (message.timestamp !== undefined) { + Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).ldelim(); + } + if (message.signature.length !== 0) { + writer.uint32(58).bytes(message.signature); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Proposal { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProposal(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = (reader.int32() as any); + break; + case 2: + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.polRound = reader.int32(); + break; + case 5: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); + break; + case 7: + message.signature = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Proposal { + const message = createBaseProposal(); + message.type = object.type ?? 0; + message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); + message.round = object.round ?? 0; + message.polRound = object.polRound ?? 0; + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.timestamp = object.timestamp ?? undefined; + message.signature = object.signature ?? new Uint8Array(); + return message; + }, + fromAmino(object: ProposalAmino): Proposal { + const message = createBaseProposal(); + if (object.type !== undefined && object.type !== null) { + message.type = object.type; + } + if (object.height !== undefined && object.height !== null) { + message.height = BigInt(object.height); + } + if (object.round !== undefined && object.round !== null) { + message.round = object.round; + } + if (object.pol_round !== undefined && object.pol_round !== null) { + message.polRound = object.pol_round; + } + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.timestamp !== undefined && object.timestamp !== null) { + message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); + } + if (object.signature !== undefined && object.signature !== null) { + message.signature = bytesFromBase64(object.signature); + } + return message; + }, + toAmino(message: Proposal): ProposalAmino { + const obj: any = {}; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.pol_round = message.polRound === 0 ? undefined : message.polRound; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; + obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; + return obj; + }, + fromAminoMsg(object: ProposalAminoMsg): Proposal { + return Proposal.fromAmino(object.value); + }, + fromProtoMsg(message: ProposalProtoMsg): Proposal { + return Proposal.decode(message.value); + }, + toProto(message: Proposal): Uint8Array { + return Proposal.encode(message).finish(); + }, + toProtoMsg(message: Proposal): ProposalProtoMsg { + return { + typeUrl: "/tendermint.types.Proposal", + value: Proposal.encode(message).finish() + }; + } +}; +function createBaseSignedHeader(): SignedHeader { + return { + header: undefined, + commit: undefined + }; +} +export const SignedHeader = { + typeUrl: "/tendermint.types.SignedHeader", + encode(message: SignedHeader, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(10).fork()).ldelim(); + } + if (message.commit !== undefined) { + Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSignedHeader(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = Header.decode(reader, reader.uint32()); + break; + case 2: + message.commit = Commit.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SignedHeader { + const message = createBaseSignedHeader(); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.commit = object.commit !== undefined && object.commit !== null ? Commit.fromPartial(object.commit) : undefined; + return message; + }, + fromAmino(object: SignedHeaderAmino): SignedHeader { + const message = createBaseSignedHeader(); + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.commit !== undefined && object.commit !== null) { + message.commit = Commit.fromAmino(object.commit); + } + return message; + }, + toAmino(message: SignedHeader): SignedHeaderAmino { + const obj: any = {}; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.commit = message.commit ? Commit.toAmino(message.commit) : undefined; + return obj; + }, + fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader { + return SignedHeader.fromAmino(object.value); + }, + fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader { + return SignedHeader.decode(message.value); + }, + toProto(message: SignedHeader): Uint8Array { + return SignedHeader.encode(message).finish(); + }, + toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg { + return { + typeUrl: "/tendermint.types.SignedHeader", + value: SignedHeader.encode(message).finish() + }; + } +}; +function createBaseLightBlock(): LightBlock { + return { + signedHeader: undefined, + validatorSet: undefined + }; +} +export const LightBlock = { + typeUrl: "/tendermint.types.LightBlock", + encode(message: LightBlock, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.signedHeader !== undefined) { + SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); + } + if (message.validatorSet !== undefined) { + ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): LightBlock { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLightBlock(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedHeader = SignedHeader.decode(reader, reader.uint32()); + break; + case 2: + message.validatorSet = ValidatorSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): LightBlock { + const message = createBaseLightBlock(); + message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? SignedHeader.fromPartial(object.signedHeader) : undefined; + message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? ValidatorSet.fromPartial(object.validatorSet) : undefined; + return message; + }, + fromAmino(object: LightBlockAmino): LightBlock { + const message = createBaseLightBlock(); + if (object.signed_header !== undefined && object.signed_header !== null) { + message.signedHeader = SignedHeader.fromAmino(object.signed_header); + } + if (object.validator_set !== undefined && object.validator_set !== null) { + message.validatorSet = ValidatorSet.fromAmino(object.validator_set); + } + return message; + }, + toAmino(message: LightBlock): LightBlockAmino { + const obj: any = {}; + obj.signed_header = message.signedHeader ? SignedHeader.toAmino(message.signedHeader) : undefined; + obj.validator_set = message.validatorSet ? ValidatorSet.toAmino(message.validatorSet) : undefined; + return obj; + }, + fromAminoMsg(object: LightBlockAminoMsg): LightBlock { + return LightBlock.fromAmino(object.value); + }, + fromProtoMsg(message: LightBlockProtoMsg): LightBlock { + return LightBlock.decode(message.value); + }, + toProto(message: LightBlock): Uint8Array { + return LightBlock.encode(message).finish(); + }, + toProtoMsg(message: LightBlock): LightBlockProtoMsg { + return { + typeUrl: "/tendermint.types.LightBlock", + value: LightBlock.encode(message).finish() + }; + } +}; +function createBaseBlockMeta(): BlockMeta { + return { + blockId: BlockID.fromPartial({}), + blockSize: BigInt(0), + header: Header.fromPartial({}), + numTxs: BigInt(0) + }; +} +export const BlockMeta = { + typeUrl: "/tendermint.types.BlockMeta", + encode(message: BlockMeta, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.blockId !== undefined) { + BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); + } + if (message.blockSize !== BigInt(0)) { + writer.uint32(16).int64(message.blockSize); + } + if (message.header !== undefined) { + Header.encode(message.header, writer.uint32(26).fork()).ldelim(); + } + if (message.numTxs !== BigInt(0)) { + writer.uint32(32).int64(message.numTxs); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBlockMeta(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockId = BlockID.decode(reader, reader.uint32()); + break; + case 2: + message.blockSize = reader.int64(); + break; + case 3: + message.header = Header.decode(reader, reader.uint32()); + break; + case 4: + message.numTxs = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): BlockMeta { + const message = createBaseBlockMeta(); + message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; + message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); + message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; + message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); + return message; + }, + fromAmino(object: BlockMetaAmino): BlockMeta { + const message = createBaseBlockMeta(); + if (object.block_id !== undefined && object.block_id !== null) { + message.blockId = BlockID.fromAmino(object.block_id); + } + if (object.block_size !== undefined && object.block_size !== null) { + message.blockSize = BigInt(object.block_size); + } + if (object.header !== undefined && object.header !== null) { + message.header = Header.fromAmino(object.header); + } + if (object.num_txs !== undefined && object.num_txs !== null) { + message.numTxs = BigInt(object.num_txs); + } + return message; + }, + toAmino(message: BlockMeta): BlockMetaAmino { + const obj: any = {}; + obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; + obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; + obj.header = message.header ? Header.toAmino(message.header) : undefined; + obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; + return obj; + }, + fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta { + return BlockMeta.fromAmino(object.value); + }, + fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta { + return BlockMeta.decode(message.value); + }, + toProto(message: BlockMeta): Uint8Array { + return BlockMeta.encode(message).finish(); + }, + toProtoMsg(message: BlockMeta): BlockMetaProtoMsg { + return { + typeUrl: "/tendermint.types.BlockMeta", + value: BlockMeta.encode(message).finish() + }; + } +}; +function createBaseTxProof(): TxProof { + return { + rootHash: new Uint8Array(), + data: new Uint8Array(), + proof: undefined + }; +} +export const TxProof = { + typeUrl: "/tendermint.types.TxProof", + encode(message: TxProof, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.rootHash.length !== 0) { + writer.uint32(10).bytes(message.rootHash); + } + if (message.data.length !== 0) { + writer.uint32(18).bytes(message.data); + } + if (message.proof !== undefined) { + Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): TxProof { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTxProof(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rootHash = reader.bytes(); + break; + case 2: + message.data = reader.bytes(); + break; + case 3: + message.proof = Proof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): TxProof { + const message = createBaseTxProof(); + message.rootHash = object.rootHash ?? new Uint8Array(); + message.data = object.data ?? new Uint8Array(); + message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; + return message; + }, + fromAmino(object: TxProofAmino): TxProof { + const message = createBaseTxProof(); + if (object.root_hash !== undefined && object.root_hash !== null) { + message.rootHash = bytesFromBase64(object.root_hash); + } + if (object.data !== undefined && object.data !== null) { + message.data = bytesFromBase64(object.data); + } + if (object.proof !== undefined && object.proof !== null) { + message.proof = Proof.fromAmino(object.proof); + } + return message; + }, + toAmino(message: TxProof): TxProofAmino { + const obj: any = {}; + obj.root_hash = message.rootHash ? base64FromBytes(message.rootHash) : undefined; + obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; + return obj; + }, + fromAminoMsg(object: TxProofAminoMsg): TxProof { + return TxProof.fromAmino(object.value); + }, + fromProtoMsg(message: TxProofProtoMsg): TxProof { + return TxProof.decode(message.value); + }, + toProto(message: TxProof): Uint8Array { + return TxProof.encode(message).finish(); + }, + toProtoMsg(message: TxProof): TxProofProtoMsg { + return { + typeUrl: "/tendermint.types.TxProof", + value: TxProof.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/types/validator.ts b/packages/api/src/tendermint/types/validator.ts new file mode 100644 index 00000000..0907fd74 --- /dev/null +++ b/packages/api/src/tendermint/types/validator.ts @@ -0,0 +1,336 @@ +//@ts-nocheck +import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; +import { BinaryReader, BinaryWriter } from "../../binary"; +import { bytesFromBase64, base64FromBytes } from "../../helpers"; +export interface ValidatorSet { + validators: Validator[]; + proposer?: Validator; + totalVotingPower: bigint; +} +export interface ValidatorSetProtoMsg { + typeUrl: "/tendermint.types.ValidatorSet"; + value: Uint8Array; +} +export interface ValidatorSetAmino { + validators?: ValidatorAmino[]; + proposer?: ValidatorAmino; + total_voting_power?: string; +} +export interface ValidatorSetAminoMsg { + type: "/tendermint.types.ValidatorSet"; + value: ValidatorSetAmino; +} +export interface ValidatorSetSDKType { + validators: ValidatorSDKType[]; + proposer?: ValidatorSDKType; + total_voting_power: bigint; +} +export interface Validator { + address: Uint8Array; + pubKey: PublicKey; + votingPower: bigint; + proposerPriority: bigint; +} +export interface ValidatorProtoMsg { + typeUrl: "/tendermint.types.Validator"; + value: Uint8Array; +} +export interface ValidatorAmino { + address?: string; + pub_key?: PublicKeyAmino; + voting_power?: string; + proposer_priority?: string; +} +export interface ValidatorAminoMsg { + type: "/tendermint.types.Validator"; + value: ValidatorAmino; +} +export interface ValidatorSDKType { + address: Uint8Array; + pub_key: PublicKeySDKType; + voting_power: bigint; + proposer_priority: bigint; +} +export interface SimpleValidator { + pubKey?: PublicKey; + votingPower: bigint; +} +export interface SimpleValidatorProtoMsg { + typeUrl: "/tendermint.types.SimpleValidator"; + value: Uint8Array; +} +export interface SimpleValidatorAmino { + pub_key?: PublicKeyAmino; + voting_power?: string; +} +export interface SimpleValidatorAminoMsg { + type: "/tendermint.types.SimpleValidator"; + value: SimpleValidatorAmino; +} +export interface SimpleValidatorSDKType { + pub_key?: PublicKeySDKType; + voting_power: bigint; +} +function createBaseValidatorSet(): ValidatorSet { + return { + validators: [], + proposer: undefined, + totalVotingPower: BigInt(0) + }; +} +export const ValidatorSet = { + typeUrl: "/tendermint.types.ValidatorSet", + encode(message: ValidatorSet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.validators) { + Validator.encode(v!, writer.uint32(10).fork()).ldelim(); + } + if (message.proposer !== undefined) { + Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); + } + if (message.totalVotingPower !== BigInt(0)) { + writer.uint32(24).int64(message.totalVotingPower); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidatorSet(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.validators.push(Validator.decode(reader, reader.uint32())); + break; + case 2: + message.proposer = Validator.decode(reader, reader.uint32()); + break; + case 3: + message.totalVotingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ValidatorSet { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; + message.proposer = object.proposer !== undefined && object.proposer !== null ? Validator.fromPartial(object.proposer) : undefined; + message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ValidatorSetAmino): ValidatorSet { + const message = createBaseValidatorSet(); + message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; + if (object.proposer !== undefined && object.proposer !== null) { + message.proposer = Validator.fromAmino(object.proposer); + } + if (object.total_voting_power !== undefined && object.total_voting_power !== null) { + message.totalVotingPower = BigInt(object.total_voting_power); + } + return message; + }, + toAmino(message: ValidatorSet): ValidatorSetAmino { + const obj: any = {}; + if (message.validators) { + obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); + } else { + obj.validators = message.validators; + } + obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet { + return ValidatorSet.fromAmino(object.value); + }, + fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet { + return ValidatorSet.decode(message.value); + }, + toProto(message: ValidatorSet): Uint8Array { + return ValidatorSet.encode(message).finish(); + }, + toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg { + return { + typeUrl: "/tendermint.types.ValidatorSet", + value: ValidatorSet.encode(message).finish() + }; + } +}; +function createBaseValidator(): Validator { + return { + address: new Uint8Array(), + pubKey: PublicKey.fromPartial({}), + votingPower: BigInt(0), + proposerPriority: BigInt(0) + }; +} +export const Validator = { + typeUrl: "/tendermint.types.Validator", + encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.address.length !== 0) { + writer.uint32(10).bytes(message.address); + } + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(24).int64(message.votingPower); + } + if (message.proposerPriority !== BigInt(0)) { + writer.uint32(32).int64(message.proposerPriority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Validator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.bytes(); + break; + case 2: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 3: + message.votingPower = reader.int64(); + break; + case 4: + message.proposerPriority = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Validator { + const message = createBaseValidator(); + message.address = object.address ?? new Uint8Array(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ValidatorAmino): Validator { + const message = createBaseValidator(); + if (object.address !== undefined && object.address !== null) { + message.address = bytesFromBase64(object.address); + } + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + if (object.proposer_priority !== undefined && object.proposer_priority !== null) { + message.proposerPriority = BigInt(object.proposer_priority); + } + return message; + }, + toAmino(message: Validator): ValidatorAmino { + const obj: any = {}; + obj.address = message.address ? base64FromBytes(message.address) : undefined; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ValidatorAminoMsg): Validator { + return Validator.fromAmino(object.value); + }, + fromProtoMsg(message: ValidatorProtoMsg): Validator { + return Validator.decode(message.value); + }, + toProto(message: Validator): Uint8Array { + return Validator.encode(message).finish(); + }, + toProtoMsg(message: Validator): ValidatorProtoMsg { + return { + typeUrl: "/tendermint.types.Validator", + value: Validator.encode(message).finish() + }; + } +}; +function createBaseSimpleValidator(): SimpleValidator { + return { + pubKey: undefined, + votingPower: BigInt(0) + }; +} +export const SimpleValidator = { + typeUrl: "/tendermint.types.SimpleValidator", + encode(message: SimpleValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.pubKey !== undefined) { + PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); + } + if (message.votingPower !== BigInt(0)) { + writer.uint32(16).int64(message.votingPower); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSimpleValidator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubKey = PublicKey.decode(reader, reader.uint32()); + break; + case 2: + message.votingPower = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): SimpleValidator { + const message = createBaseSimpleValidator(); + message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; + message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); + return message; + }, + fromAmino(object: SimpleValidatorAmino): SimpleValidator { + const message = createBaseSimpleValidator(); + if (object.pub_key !== undefined && object.pub_key !== null) { + message.pubKey = PublicKey.fromAmino(object.pub_key); + } + if (object.voting_power !== undefined && object.voting_power !== null) { + message.votingPower = BigInt(object.voting_power); + } + return message; + }, + toAmino(message: SimpleValidator): SimpleValidatorAmino { + const obj: any = {}; + obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + return obj; + }, + fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator { + return SimpleValidator.fromAmino(object.value); + }, + fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator { + return SimpleValidator.decode(message.value); + }, + toProto(message: SimpleValidator): Uint8Array { + return SimpleValidator.encode(message).finish(); + }, + toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg { + return { + typeUrl: "/tendermint.types.SimpleValidator", + value: SimpleValidator.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/tendermint/version/types.ts b/packages/api/src/tendermint/version/types.ts new file mode 100644 index 00000000..f862a449 --- /dev/null +++ b/packages/api/src/tendermint/version/types.ts @@ -0,0 +1,222 @@ +//@ts-nocheck +import { BinaryReader, BinaryWriter } from "../../binary"; +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface App { + protocol: bigint; + software: string; +} +export interface AppProtoMsg { + typeUrl: "/tendermint.version.App"; + value: Uint8Array; +} +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface AppAmino { + protocol?: string; + software?: string; +} +export interface AppAminoMsg { + type: "/tendermint.version.App"; + value: AppAmino; +} +/** + * App includes the protocol and software version for the application. + * This information is included in ResponseInfo. The App.Protocol can be + * updated in ResponseEndBlock. + */ +export interface AppSDKType { + protocol: bigint; + software: string; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface Consensus { + block: bigint; + app: bigint; +} +export interface ConsensusProtoMsg { + typeUrl: "/tendermint.version.Consensus"; + value: Uint8Array; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface ConsensusAmino { + block?: string; + app?: string; +} +export interface ConsensusAminoMsg { + type: "/tendermint.version.Consensus"; + value: ConsensusAmino; +} +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface ConsensusSDKType { + block: bigint; + app: bigint; +} +function createBaseApp(): App { + return { + protocol: BigInt(0), + software: "" + }; +} +export const App = { + typeUrl: "/tendermint.version.App", + encode(message: App, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.protocol !== BigInt(0)) { + writer.uint32(8).uint64(message.protocol); + } + if (message.software !== "") { + writer.uint32(18).string(message.software); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): App { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseApp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.protocol = reader.uint64(); + break; + case 2: + message.software = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): App { + const message = createBaseApp(); + message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); + message.software = object.software ?? ""; + return message; + }, + fromAmino(object: AppAmino): App { + const message = createBaseApp(); + if (object.protocol !== undefined && object.protocol !== null) { + message.protocol = BigInt(object.protocol); + } + if (object.software !== undefined && object.software !== null) { + message.software = object.software; + } + return message; + }, + toAmino(message: App): AppAmino { + const obj: any = {}; + obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; + obj.software = message.software === "" ? undefined : message.software; + return obj; + }, + fromAminoMsg(object: AppAminoMsg): App { + return App.fromAmino(object.value); + }, + fromProtoMsg(message: AppProtoMsg): App { + return App.decode(message.value); + }, + toProto(message: App): Uint8Array { + return App.encode(message).finish(); + }, + toProtoMsg(message: App): AppProtoMsg { + return { + typeUrl: "/tendermint.version.App", + value: App.encode(message).finish() + }; + } +}; +function createBaseConsensus(): Consensus { + return { + block: BigInt(0), + app: BigInt(0) + }; +} +export const Consensus = { + typeUrl: "/tendermint.version.Consensus", + encode(message: Consensus, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.block !== BigInt(0)) { + writer.uint32(8).uint64(message.block); + } + if (message.app !== BigInt(0)) { + writer.uint32(16).uint64(message.app); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Consensus { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseConsensus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.block = reader.uint64(); + break; + case 2: + message.app = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Consensus { + const message = createBaseConsensus(); + message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); + message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ConsensusAmino): Consensus { + const message = createBaseConsensus(); + if (object.block !== undefined && object.block !== null) { + message.block = BigInt(object.block); + } + if (object.app !== undefined && object.app !== null) { + message.app = BigInt(object.app); + } + return message; + }, + toAmino(message: Consensus): ConsensusAmino { + const obj: any = {}; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ConsensusAminoMsg): Consensus { + return Consensus.fromAmino(object.value); + }, + fromProtoMsg(message: ConsensusProtoMsg): Consensus { + return Consensus.decode(message.value); + }, + toProto(message: Consensus): Uint8Array { + return Consensus.encode(message).finish(); + }, + toProtoMsg(message: Consensus): ConsensusProtoMsg { + return { + typeUrl: "/tendermint.version.Consensus", + value: Consensus.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/api/src/utf8.ts b/packages/api/src/utf8.ts new file mode 100644 index 00000000..b53cee41 --- /dev/null +++ b/packages/api/src/utf8.ts @@ -0,0 +1,149 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ + + +// Copyright (c) 2016, Daniel Wirtz All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: + +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// * Neither the name of its author, nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +"use strict"; + +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +export function utf8Length(str: string) { + let len = 0, + c = 0; + for (let i = 0; i < str.length; ++i) { + c = str.charCodeAt(i); + if (c < 128) len += 1; + else if (c < 2048) len += 2; + else if ( + (c & 0xfc00) === 0xd800 && + (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00 + ) { + ++i; + len += 4; + } else len += 3; + } + return len; +} + +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +export function utf8Read( + buffer: ArrayLike, + start: number, + end: number +) { + const len = end - start; + if (len < 1) return ""; + const chunk = []; + let parts: string[] = [], + i = 0, // char offset + t; // temporary + while (start < end) { + t = buffer[start++]; + if (t < 128) chunk[i++] = t; + else if (t > 191 && t < 224) + chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); + else if (t > 239 && t < 365) { + t = + (((t & 7) << 18) | + ((buffer[start++] & 63) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63)) - + 0x10000; + chunk[i++] = 0xd800 + (t >> 10); + chunk[i++] = 0xdc00 + (t & 1023); + } else + chunk[i++] = + ((t & 15) << 12) | + ((buffer[start++] & 63) << 6) | + (buffer[start++] & 63); + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode(...chunk)); + i = 0; + } + } + if (parts) { + if (i) parts.push(String.fromCharCode(...chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode(...chunk.slice(0, i)); +} + +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +export function utf8Write( + str: string, + buffer: Uint8Array | Array, + offset: number +) { + const start = offset; + let c1, // character 1 + c2; // character 2 + for (let i = 0; i < str.length; ++i) { + c1 = str.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } else if (c1 < 2048) { + buffer[offset++] = (c1 >> 6) | 192; + buffer[offset++] = (c1 & 63) | 128; + } else if ( + (c1 & 0xfc00) === 0xd800 && + ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00 + ) { + c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); + ++i; + buffer[offset++] = (c1 >> 18) | 240; + buffer[offset++] = ((c1 >> 12) & 63) | 128; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } else { + buffer[offset++] = (c1 >> 12) | 224; + buffer[offset++] = ((c1 >> 6) & 63) | 128; + buffer[offset++] = (c1 & 63) | 128; + } + } + return offset - start; +} diff --git a/packages/api/src/varint.ts b/packages/api/src/varint.ts new file mode 100644 index 00000000..6c813e30 --- /dev/null +++ b/packages/api/src/varint.ts @@ -0,0 +1,489 @@ +//@ts-nocheck +/** +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 +* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain +* and run the transpile command or yarn proto command to regenerate this bundle. +*/ + + +// Copyright 2008 Google Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Code generated by the Protocol Buffer compiler is owned by the owner +// of the input file used when generating it. This code is not +// standalone and requires a support library to be linked with it. This +// support library is itself covered by the above license. + +/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ + +/** + * Read a 64 bit varint as two JS numbers. + * + * Returns tuple: + * [0]: low bits + * [1]: high bits + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 + */ +export function varint64read(this: ReaderLike): [number, number] { + let lowBits = 0; + let highBits = 0; + + for (let shift = 0; shift < 28; shift += 7) { + let b = this.buf[this.pos++]; + lowBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + + let middleByte = this.buf[this.pos++]; + + // last four bits of the first 32 bit number + lowBits |= (middleByte & 0x0f) << 28; + + // 3 upper bits are part of the next 32 bit number + highBits = (middleByte & 0x70) >> 4; + + if ((middleByte & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + + for (let shift = 3; shift <= 31; shift += 7) { + let b = this.buf[this.pos++]; + highBits |= (b & 0x7f) << shift; + if ((b & 0x80) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + } + + throw new Error("invalid varint"); +} + +/** + * Write a 64 bit varint, given as two JS numbers, to the given bytes array. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 + */ +export function varint64write(lo: number, hi: number, bytes: number[]): void { + for (let i = 0; i < 28; i = i + 7) { + const shift = lo >>> i; + const hasNext = !(shift >>> 7 == 0 && hi == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + + const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); + const hasMoreBits = !(hi >> 3 == 0); + bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); + + if (!hasMoreBits) { + return; + } + + for (let i = 3; i < 31; i = i + 7) { + const shift = hi >>> i; + const hasNext = !(shift >>> 7 == 0); + const byte = (hasNext ? shift | 0x80 : shift) & 0xff; + bytes.push(byte); + if (!hasNext) { + return; + } + } + + bytes.push((hi >>> 31) & 0x01); +} + +// constants for binary math +const TWO_PWR_32_DBL = 0x100000000; + +/** + * Parse decimal string of 64 bit integer value as two JS numbers. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function int64FromString(dec: string): { lo: number; hi: number } { + // Check for minus sign. + const minus = dec[0] === "-"; + if (minus) { + dec = dec.slice(1); + } + + // Work 6 decimal digits at a time, acting like we're converting base 1e6 + // digits to binary. This is safe to do with floating point math because + // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. + const base = 1e6; + let lowBits = 0; + let highBits = 0; + + function add1e6digit(begin: number, end?: number) { + // Note: Number('') is 0. + const digit1e6 = Number(dec.slice(begin, end)); + highBits *= base; + lowBits = lowBits * base + digit1e6; + // Carry bits from lowBits to + if (lowBits >= TWO_PWR_32_DBL) { + highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); + lowBits = lowBits % TWO_PWR_32_DBL; + } + } + + add1e6digit(-24, -18); + add1e6digit(-18, -12); + add1e6digit(-12, -6); + add1e6digit(-6); + return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); +} + +/** + * Losslessly converts a 64-bit signed integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function int64ToString(lo: number, hi: number): string { + let bits = newBits(lo, hi); + // If we're treating the input as a signed value and the high bit is set, do + // a manual two's complement conversion before the decimal conversion. + const negative = bits.hi & 0x80000000; + if (negative) { + bits = negate(bits.lo, bits.hi); + } + const result = uInt64ToString(bits.lo, bits.hi); + return negative ? "-" + result : result; +} + +/** + * Losslessly converts a 64-bit unsigned integer in 32:32 split representation + * into a decimal string. + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 + */ +export function uInt64ToString(lo: number, hi: number): string { + ({ lo, hi } = toUnsigned(lo, hi)); + // Skip the expensive conversion if the number is small enough to use the + // built-in conversions. + // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with + // highBits <= 0x1FFFFF can be safely expressed with a double and retain + // integer precision. + // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. + if (hi <= 0x1fffff) { + return String(TWO_PWR_32_DBL * hi + lo); + } + + // What this code is doing is essentially converting the input number from + // base-2 to base-1e7, which allows us to represent the 64-bit range with + // only 3 (very large) digits. Those digits are then trivial to convert to + // a base-10 string. + + // The magic numbers used here are - + // 2^24 = 16777216 = (1,6777216) in base-1e7. + // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. + + // Split 32:32 representation into 16:24:24 representation so our + // intermediate digits don't overflow. + const low = lo & 0xffffff; + const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; + const high = (hi >> 16) & 0xffff; + + // Assemble our three base-1e7 digits, ignoring carries. The maximum + // value in a digit at this step is representable as a 48-bit integer, which + // can be stored in a 64-bit floating point number. + let digitA = low + mid * 6777216 + high * 6710656; + let digitB = mid + high * 8147497; + let digitC = high * 2; + + // Apply carries from A to B and from B to C. + const base = 10000000; + if (digitA >= base) { + digitB += Math.floor(digitA / base); + digitA %= base; + } + + if (digitB >= base) { + digitC += Math.floor(digitB / base); + digitB %= base; + } + + // If digitC is 0, then we should have returned in the trivial code path + // at the top for non-safe integers. Given this, we can assume both digitB + // and digitA need leading zeros. + return ( + digitC.toString() + + decimalFrom1e7WithLeadingZeros(digitB) + + decimalFrom1e7WithLeadingZeros(digitA) + ); +} + +function toUnsigned(lo: number, hi: number): { lo: number; hi: number } { + return { lo: lo >>> 0, hi: hi >>> 0 }; +} + +function newBits(lo: number, hi: number): { lo: number; hi: number } { + return { lo: lo | 0, hi: hi | 0 }; +} + +/** + * Returns two's compliment negation of input. + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers + */ +function negate(lowBits: number, highBits: number) { + highBits = ~highBits; + if (lowBits) { + lowBits = ~lowBits + 1; + } else { + // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, + // adding 1 to that, results in 0x100000000, which leaves + // the low bits 0x0 and simply adds one to the high bits. + highBits += 1; + } + return newBits(lowBits, highBits); +} + +/** + * Returns decimal representation of digit1e7 with leading zeros. + */ +const decimalFrom1e7WithLeadingZeros = (digit1e7: number) => { + const partial = String(digit1e7); + return "0000000".slice(partial.length) + partial; +}; + +/** + * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` + * + * Copyright 2008 Google Inc. All rights reserved. + * + * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 + */ +export function varint32write(value: number, bytes: number[]): void { + if (value >= 0) { + // write value as varint 32 + while (value > 0x7f) { + bytes.push((value & 0x7f) | 0x80); + value = value >>> 7; + } + bytes.push(value); + } else { + for (let i = 0; i < 9; i++) { + bytes.push((value & 127) | 128); + value = value >> 7; + } + bytes.push(1); + } +} + +/** + * Read an unsigned 32 bit varint. + * + * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 + */ +export function varint32read(this: ReaderLike): number { + let b = this.buf[this.pos++]; + let result = b & 0x7f; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 7; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 14; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + + b = this.buf[this.pos++]; + result |= (b & 0x7f) << 21; + if ((b & 0x80) == 0) { + this.assertBounds(); + return result; + } + + // Extract only last 4 bits + b = this.buf[this.pos++]; + result |= (b & 0x0f) << 28; + + for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) + b = this.buf[this.pos++]; + + if ((b & 0x80) != 0) throw new Error("invalid varint"); + + this.assertBounds(); + + // Result can have 32 bits, convert it to unsigned + return result >>> 0; +} + +type ReaderLike = { + buf: Uint8Array; + pos: number; + len: number; + assertBounds(): void; +}; + +/** + * encode zig zag + */ +export function zzEncode(lo: number, hi: number) { + let mask = hi >> 31; + hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; + lo = ((lo << 1) ^ mask) >>> 0; + return [lo, hi]; +} + +/** + * decode zig zag + */ +export function zzDecode(lo: number, hi: number) { + let mask = -(lo & 1); + lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; + hi = ((hi >>> 1) ^ mask) >>> 0; + return [lo, hi]; +} + +/** + * unsigned int32 without moving pos. + */ +export function readUInt32(buf: Uint8Array, pos: number) { + return ( + (buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + buf[pos + 3] * 0x1000000 + ); +} + +/** + * signed int32 without moving pos. + */ +export function readInt32(buf: Uint8Array, pos: number) { + return ( + (buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + + (buf[pos + 3] << 24) + ); +} + +/** + * writing varint32 to pos + */ +export function writeVarint32( + val: number, + buf: Uint8Array | number[], + pos: number +) { + while (val > 127) { + buf[pos++] = (val & 127) | 128; + val >>>= 7; + } + buf[pos] = val; +} + +/** + * writing varint64 to pos + */ +export function writeVarint64( + val: { lo: number; hi: number }, + buf: Uint8Array | number[], + pos: number +) { + while (val.hi) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; + val.hi >>>= 7; + } + while (val.lo > 127) { + buf[pos++] = (val.lo & 127) | 128; + val.lo = val.lo >>> 7; + } + buf[pos++] = val.lo; +} + +export function int64Length(lo: number, hi: number) { + let part0 = lo, + part1 = ((lo >>> 28) | (hi << 4)) >>> 0, + part2 = hi >>> 24; + return part2 === 0 + ? part1 === 0 + ? part0 < 16384 + ? part0 < 128 + ? 1 + : 2 + : part0 < 2097152 + ? 3 + : 4 + : part1 < 16384 + ? part1 < 128 + ? 5 + : 6 + : part1 < 2097152 + ? 7 + : 8 + : part2 < 128 + ? 9 + : 10; +} + +export function writeFixed32( + val: number, + buf: Uint8Array | number[], + pos: number +) { + buf[pos] = val & 255; + buf[pos + 1] = (val >>> 8) & 255; + buf[pos + 2] = (val >>> 16) & 255; + buf[pos + 3] = val >>> 24; +} + +export function writeByte( + val: number, + buf: Uint8Array | number[], + pos: number +) { + buf[pos] = val & 255; +} diff --git a/packages/api/tsconfig.esm.json b/packages/api/tsconfig.esm.json new file mode 100644 index 00000000..800d7506 --- /dev/null +++ b/packages/api/tsconfig.esm.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "dist/esm", + "module": "es2022", + "rootDir": "src/", + "declaration": false + } +} From 37368122f5fcd45d0d28ebc6de2de4b27ada3ecf Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 12:53:16 +0200 Subject: [PATCH 4/9] chore: untrack dist --- .gitignore | 3 + packages/api/dist/LICENSE | 201 - packages/api/dist/amino/amino.d.ts | 1 - packages/api/dist/amino/amino.js | 2 - packages/api/dist/amino/bundle.d.ts | 1 - packages/api/dist/amino/bundle.js | 31 - packages/api/dist/binary.d.ts | 130 - packages/api/dist/binary.js | 371 - .../cosmos/app/module/v1alpha1/module.d.ts | 31 - .../dist/cosmos/app/module/v1alpha1/module.js | 61 - .../api/dist/cosmos/app/v1alpha1/module.d.ts | 242 - .../api/dist/cosmos/app/v1alpha1/module.js | 254 - .../api/dist/cosmos/auth/v1beta1/auth.d.ts | 144 - packages/api/dist/cosmos/auth/v1beta1/auth.js | 326 - .../api/dist/cosmos/auth/v1beta1/genesis.d.ts | 43 - .../api/dist/cosmos/auth/v1beta1/genesis.js | 91 - .../api/dist/cosmos/auth/v1beta1/query.d.ts | 776 -- .../api/dist/cosmos/auth/v1beta1/query.js | 1300 --- .../dist/cosmos/auth/v1beta1/query.lcd.d.ts | 17 - .../api/dist/cosmos/auth/v1beta1/query.lcd.js | 86 - .../cosmos/auth/v1beta1/query.rpc.Query.d.ts | 72 - .../cosmos/auth/v1beta1/query.rpc.Query.js | 103 - .../api/dist/cosmos/authz/v1beta1/authz.d.ts | 200 - .../api/dist/cosmos/authz/v1beta1/authz.js | 397 - .../api/dist/cosmos/authz/v1beta1/event.d.ts | 91 - .../api/dist/cosmos/authz/v1beta1/event.js | 191 - .../dist/cosmos/authz/v1beta1/genesis.d.ts | 35 - .../api/dist/cosmos/authz/v1beta1/genesis.js | 78 - .../api/dist/cosmos/authz/v1beta1/query.d.ts | 245 - .../api/dist/cosmos/authz/v1beta1/query.js | 526 -- .../dist/cosmos/authz/v1beta1/query.lcd.d.ts | 11 - .../dist/cosmos/authz/v1beta1/query.lcd.js | 61 - .../cosmos/authz/v1beta1/query.rpc.Query.d.ts | 32 - .../cosmos/authz/v1beta1/query.rpc.Query.js | 47 - .../dist/cosmos/authz/v1beta1/tx.amino.d.ts | 18 - .../api/dist/cosmos/authz/v1beta1/tx.amino.js | 22 - .../api/dist/cosmos/authz/v1beta1/tx.d.ts | 264 - packages/api/dist/cosmos/authz/v1beta1/tx.js | 496 -- .../cosmos/authz/v1beta1/tx.registry.d.ts | 48 - .../dist/cosmos/authz/v1beta1/tx.registry.js | 73 - .../dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts | 30 - .../dist/cosmos/authz/v1beta1/tx.rpc.msg.js | 30 - .../api/dist/cosmos/bank/v1beta1/authz.d.ts | 52 - .../api/dist/cosmos/bank/v1beta1/authz.js | 79 - .../api/dist/cosmos/bank/v1beta1/bank.d.ts | 390 - packages/api/dist/cosmos/bank/v1beta1/bank.js | 664 -- .../api/dist/cosmos/bank/v1beta1/genesis.d.ts | 108 - .../api/dist/cosmos/bank/v1beta1/genesis.js | 205 - .../api/dist/cosmos/bank/v1beta1/query.d.ts | 843 -- .../api/dist/cosmos/bank/v1beta1/query.js | 1441 --- .../dist/cosmos/bank/v1beta1/query.lcd.d.ts | 17 - .../api/dist/cosmos/bank/v1beta1/query.lcd.js | 119 - .../cosmos/bank/v1beta1/query.rpc.Query.d.ts | 61 - .../cosmos/bank/v1beta1/query.rpc.Query.js | 105 - .../dist/cosmos/bank/v1beta1/tx.amino.d.ts | 13 - .../api/dist/cosmos/bank/v1beta1/tx.amino.js | 17 - packages/api/dist/cosmos/bank/v1beta1/tx.d.ts | 138 - packages/api/dist/cosmos/bank/v1beta1/tx.js | 302 - .../dist/cosmos/bank/v1beta1/tx.registry.d.ts | 36 - .../dist/cosmos/bank/v1beta1/tx.registry.js | 55 - .../dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts | 15 - .../dist/cosmos/bank/v1beta1/tx.rpc.msg.js | 24 - .../dist/cosmos/base/abci/v1beta1/abci.d.ts | 602 -- .../api/dist/cosmos/base/abci/v1beta1/abci.js | 1061 --- .../dist/cosmos/base/node/v1beta1/query.d.ts | 64 - .../dist/cosmos/base/node/v1beta1/query.js | 130 - .../cosmos/base/node/v1beta1/query.lcd.d.ts | 9 - .../cosmos/base/node/v1beta1/query.lcd.js | 16 - .../base/node/v1beta1/query.rpc.Service.d.ts | 16 - .../base/node/v1beta1/query.rpc.Service.js | 29 - .../cosmos/base/query/v1beta1/pagination.d.ts | 198 - .../cosmos/base/query/v1beta1/pagination.js | 204 - .../base/reflection/v2alpha1/reflection.d.ts | 1057 --- .../base/reflection/v2alpha1/reflection.js | 1925 ---- .../api/dist/cosmos/base/v1beta1/coin.d.ts | 169 - packages/api/dist/cosmos/base/v1beta1/coin.js | 305 - packages/api/dist/cosmos/bundle.d.ts | 7777 ----------------- packages/api/dist/cosmos/bundle.js | 418 - packages/api/dist/cosmos/client.d.ts | 239 - packages/api/dist/cosmos/client.js | 82 - .../api/dist/cosmos/crypto/ed25519/keys.d.ts | 94 - .../api/dist/cosmos/crypto/ed25519/keys.js | 144 - packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts | 62 - packages/api/dist/cosmos/crypto/hd/v1/hd.js | 122 - .../dist/cosmos/crypto/keyring/v1/record.d.ts | 198 - .../dist/cosmos/crypto/keyring/v1/record.js | 386 - .../api/dist/cosmos/crypto/multisig/keys.d.ts | 50 - .../api/dist/cosmos/crypto/multisig/keys.js | 90 - .../crypto/multisig/v1beta1/multisig.d.ts | 97 - .../crypto/multisig/v1beta1/multisig.js | 159 - .../dist/cosmos/crypto/secp256k1/keys.d.ts | 85 - .../api/dist/cosmos/crypto/secp256k1/keys.js | 144 - .../dist/cosmos/crypto/secp256r1/keys.d.ts | 77 - .../api/dist/cosmos/crypto/secp256r1/keys.js | 144 - .../distribution/v1beta1/distribution.d.ts | 585 -- .../distribution/v1beta1/distribution.js | 1053 --- .../cosmos/distribution/v1beta1/genesis.d.ts | 413 - .../cosmos/distribution/v1beta1/genesis.js | 823 -- .../cosmos/distribution/v1beta1/query.d.ts | 796 -- .../dist/cosmos/distribution/v1beta1/query.js | 1314 --- .../distribution/v1beta1/query.lcd.d.ts | 17 - .../cosmos/distribution/v1beta1/query.lcd.js | 79 - .../distribution/v1beta1/query.rpc.Query.d.ts | 51 - .../distribution/v1beta1/query.rpc.Query.js | 101 - .../cosmos/distribution/v1beta1/tx.amino.d.ts | 23 - .../cosmos/distribution/v1beta1/tx.amino.js | 27 - .../dist/cosmos/distribution/v1beta1/tx.d.ts | 309 - .../dist/cosmos/distribution/v1beta1/tx.js | 577 -- .../distribution/v1beta1/tx.registry.d.ts | 60 - .../distribution/v1beta1/tx.registry.js | 91 - .../distribution/v1beta1/tx.rpc.msg.d.ts | 33 - .../cosmos/distribution/v1beta1/tx.rpc.msg.js | 36 - .../cosmos/feegrant/v1beta1/feegrant.d.ts | 245 - .../dist/cosmos/feegrant/v1beta1/feegrant.js | 456 - .../dist/cosmos/feegrant/v1beta1/genesis.d.ts | 35 - .../dist/cosmos/feegrant/v1beta1/genesis.js | 78 - .../dist/cosmos/feegrant/v1beta1/query.d.ts | 258 - .../api/dist/cosmos/feegrant/v1beta1/query.js | 487 -- .../cosmos/feegrant/v1beta1/query.lcd.d.ts | 11 - .../dist/cosmos/feegrant/v1beta1/query.lcd.js | 44 - .../feegrant/v1beta1/query.rpc.Query.d.ts | 28 - .../feegrant/v1beta1/query.rpc.Query.js | 47 - .../cosmos/feegrant/v1beta1/tx.amino.d.ts | 13 - .../dist/cosmos/feegrant/v1beta1/tx.amino.js | 17 - .../api/dist/cosmos/feegrant/v1beta1/tx.d.ts | 163 - .../api/dist/cosmos/feegrant/v1beta1/tx.js | 352 - .../cosmos/feegrant/v1beta1/tx.registry.d.ts | 36 - .../cosmos/feegrant/v1beta1/tx.registry.js | 55 - .../cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts | 21 - .../cosmos/feegrant/v1beta1/tx.rpc.msg.js | 24 - packages/api/dist/cosmos/gov/v1/genesis.d.ts | 67 - packages/api/dist/cosmos/gov/v1/genesis.js | 156 - packages/api/dist/cosmos/gov/v1/gov.d.ts | 446 - packages/api/dist/cosmos/gov/v1/gov.js | 969 -- packages/api/dist/cosmos/gov/v1/query.d.ts | 632 -- packages/api/dist/cosmos/gov/v1/query.js | 1264 --- .../api/dist/cosmos/gov/v1/query.lcd.d.ts | 16 - packages/api/dist/cosmos/gov/v1/query.lcd.js | 87 - .../dist/cosmos/gov/v1/query.rpc.Query.d.ts | 44 - .../api/dist/cosmos/gov/v1/query.rpc.Query.js | 92 - packages/api/dist/cosmos/gov/v1/tx.amino.d.ts | 28 - packages/api/dist/cosmos/gov/v1/tx.amino.js | 32 - packages/api/dist/cosmos/gov/v1/tx.d.ts | 389 - packages/api/dist/cosmos/gov/v1/tx.js | 838 -- .../api/dist/cosmos/gov/v1/tx.registry.d.ts | 72 - .../api/dist/cosmos/gov/v1/tx.registry.js | 109 - .../api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts | 27 - packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js | 42 - .../api/dist/cosmos/gov/v1beta1/genesis.d.ts | 67 - .../api/dist/cosmos/gov/v1beta1/genesis.js | 156 - packages/api/dist/cosmos/gov/v1beta1/gov.d.ts | 519 -- packages/api/dist/cosmos/gov/v1beta1/gov.js | 1072 --- .../api/dist/cosmos/gov/v1beta1/query.d.ts | 632 -- packages/api/dist/cosmos/gov/v1beta1/query.js | 1264 --- .../dist/cosmos/gov/v1beta1/query.lcd.d.ts | 16 - .../api/dist/cosmos/gov/v1beta1/query.lcd.js | 87 - .../cosmos/gov/v1beta1/query.rpc.Query.d.ts | 44 - .../cosmos/gov/v1beta1/query.rpc.Query.js | 92 - .../api/dist/cosmos/gov/v1beta1/tx.amino.d.ts | 23 - .../api/dist/cosmos/gov/v1beta1/tx.amino.js | 27 - packages/api/dist/cosmos/gov/v1beta1/tx.d.ts | 322 - packages/api/dist/cosmos/gov/v1beta1/tx.js | 661 -- .../dist/cosmos/gov/v1beta1/tx.registry.d.ts | 60 - .../dist/cosmos/gov/v1beta1/tx.registry.js | 91 - .../dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts | 25 - .../api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js | 36 - packages/api/dist/cosmos/group/v1/events.d.ts | 332 - packages/api/dist/cosmos/group/v1/events.js | 661 -- .../api/dist/cosmos/group/v1/genesis.d.ts | 90 - packages/api/dist/cosmos/group/v1/genesis.js | 174 - packages/api/dist/cosmos/group/v1/query.d.ts | 998 --- packages/api/dist/cosmos/group/v1/query.js | 2029 ----- .../api/dist/cosmos/group/v1/query.lcd.d.ts | 21 - .../api/dist/cosmos/group/v1/query.lcd.js | 142 - .../dist/cosmos/group/v1/query.rpc.Query.d.ts | 70 - .../dist/cosmos/group/v1/query.rpc.Query.js | 137 - .../api/dist/cosmos/group/v1/tx.amino.d.ts | 73 - packages/api/dist/cosmos/group/v1/tx.amino.js | 77 - packages/api/dist/cosmos/group/v1/tx.d.ts | 1172 --- packages/api/dist/cosmos/group/v1/tx.js | 2338 ----- .../api/dist/cosmos/group/v1/tx.registry.d.ts | 180 - .../api/dist/cosmos/group/v1/tx.registry.js | 271 - .../api/dist/cosmos/group/v1/tx.rpc.msg.d.ts | 51 - .../api/dist/cosmos/group/v1/tx.rpc.msg.js | 96 - packages/api/dist/cosmos/group/v1/types.d.ts | 831 -- packages/api/dist/cosmos/group/v1/types.js | 1471 ---- packages/api/dist/cosmos/lcd.d.ts | 48 - packages/api/dist/cosmos/lcd.js | 108 - .../api/dist/cosmos/mint/v1beta1/genesis.d.ts | 42 - .../api/dist/cosmos/mint/v1beta1/genesis.js | 87 - .../api/dist/cosmos/mint/v1beta1/mint.d.ts | 101 - packages/api/dist/cosmos/mint/v1beta1/mint.js | 216 - .../api/dist/cosmos/mint/v1beta1/query.d.ts | 224 - .../api/dist/cosmos/mint/v1beta1/query.js | 382 - .../dist/cosmos/mint/v1beta1/query.lcd.d.ts | 11 - .../api/dist/cosmos/mint/v1beta1/query.lcd.js | 28 - .../cosmos/mint/v1beta1/query.rpc.Query.d.ts | 24 - .../cosmos/mint/v1beta1/query.rpc.Query.js | 47 - packages/api/dist/cosmos/msg/v1/msg.d.ts | 1 - packages/api/dist/cosmos/msg/v1/msg.js | 2 - .../cosmos/orm/module/v1alpha1/module.d.ts | 43 - .../dist/cosmos/orm/module/v1alpha1/module.js | 61 - packages/api/dist/cosmos/orm/v1/orm.d.ts | 280 - packages/api/dist/cosmos/orm/v1/orm.js | 344 - .../dist/cosmos/params/v1beta1/params.d.ts | 90 - .../api/dist/cosmos/params/v1beta1/params.js | 195 - .../api/dist/cosmos/params/v1beta1/query.d.ts | 221 - .../api/dist/cosmos/params/v1beta1/query.js | 368 - .../dist/cosmos/params/v1beta1/query.lcd.d.ts | 10 - .../dist/cosmos/params/v1beta1/query.lcd.js | 34 - .../params/v1beta1/query.rpc.Query.d.ts | 27 - .../cosmos/params/v1beta1/query.rpc.Query.js | 38 - packages/api/dist/cosmos/rpc.query.d.ts | 155 - packages/api/dist/cosmos/rpc.query.js | 80 - packages/api/dist/cosmos/rpc.tx.d.ts | 35 - packages/api/dist/cosmos/rpc.tx.js | 59 - .../dist/cosmos/staking/v1beta1/authz.d.ts | 131 - .../api/dist/cosmos/staking/v1beta1/authz.js | 240 - .../dist/cosmos/staking/v1beta1/genesis.d.ts | 122 - .../dist/cosmos/staking/v1beta1/genesis.js | 256 - .../dist/cosmos/staking/v1beta1/query.d.ts | 1222 --- .../api/dist/cosmos/staking/v1beta1/query.js | 2162 ----- .../cosmos/staking/v1beta1/query.lcd.d.ts | 22 - .../dist/cosmos/staking/v1beta1/query.lcd.js | 151 - .../staking/v1beta1/query.rpc.Query.d.ts | 80 - .../cosmos/staking/v1beta1/query.rpc.Query.js | 146 - .../dist/cosmos/staking/v1beta1/staking.d.ts | 1065 --- .../dist/cosmos/staking/v1beta1/staking.js | 1999 ----- .../dist/cosmos/staking/v1beta1/tx.amino.d.ts | 33 - .../dist/cosmos/staking/v1beta1/tx.amino.js | 37 - .../api/dist/cosmos/staking/v1beta1/tx.d.ts | 519 -- .../api/dist/cosmos/staking/v1beta1/tx.js | 1033 --- .../cosmos/staking/v1beta1/tx.registry.d.ts | 84 - .../cosmos/staking/v1beta1/tx.registry.js | 127 - .../cosmos/staking/v1beta1/tx.rpc.msg.d.ts | 41 - .../dist/cosmos/staking/v1beta1/tx.rpc.msg.js | 48 - .../cosmos/tx/signing/v1beta1/signing.d.ts | 284 - .../dist/cosmos/tx/signing/v1beta1/signing.js | 525 -- .../api/dist/cosmos/tx/v1beta1/service.d.ts | 593 -- .../api/dist/cosmos/tx/v1beta1/service.js | 999 --- .../dist/cosmos/tx/v1beta1/service.lcd.d.ts | 11 - .../api/dist/cosmos/tx/v1beta1/service.lcd.js | 56 - .../tx/v1beta1/service.rpc.Service.d.ts | 36 - .../cosmos/tx/v1beta1/service.rpc.Service.js | 65 - packages/api/dist/cosmos/tx/v1beta1/tx.d.ts | 941 -- packages/api/dist/cosmos/tx/v1beta1/tx.js | 1281 --- .../dist/cosmos/upgrade/v1beta1/query.d.ts | 468 - .../api/dist/cosmos/upgrade/v1beta1/query.js | 674 -- .../cosmos/upgrade/v1beta1/query.lcd.d.ts | 13 - .../dist/cosmos/upgrade/v1beta1/query.lcd.js | 55 - .../upgrade/v1beta1/query.rpc.Query.d.ts | 47 - .../cosmos/upgrade/v1beta1/query.rpc.Query.js | 65 - .../dist/cosmos/upgrade/v1beta1/tx.amino.d.ts | 13 - .../dist/cosmos/upgrade/v1beta1/tx.amino.js | 17 - .../api/dist/cosmos/upgrade/v1beta1/tx.d.ts | 185 - .../api/dist/cosmos/upgrade/v1beta1/tx.js | 268 - .../cosmos/upgrade/v1beta1/tx.registry.d.ts | 36 - .../cosmos/upgrade/v1beta1/tx.registry.js | 55 - .../cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts | 24 - .../dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js | 24 - .../dist/cosmos/upgrade/v1beta1/upgrade.d.ts | 274 - .../dist/cosmos/upgrade/v1beta1/upgrade.js | 382 - .../dist/cosmos/vesting/v1beta1/tx.amino.d.ts | 18 - .../dist/cosmos/vesting/v1beta1/tx.amino.js | 22 - .../api/dist/cosmos/vesting/v1beta1/tx.d.ts | 285 - .../api/dist/cosmos/vesting/v1beta1/tx.js | 499 -- .../cosmos/vesting/v1beta1/tx.registry.d.ts | 48 - .../cosmos/vesting/v1beta1/tx.registry.js | 73 - .../cosmos/vesting/v1beta1/tx.rpc.msg.d.ts | 31 - .../dist/cosmos/vesting/v1beta1/tx.rpc.msg.js | 30 - .../dist/cosmos/vesting/v1beta1/vesting.d.ts | 282 - .../dist/cosmos/vesting/v1beta1/vesting.js | 532 -- packages/api/dist/cosmos_proto/bundle.d.ts | 32 - packages/api/dist/cosmos_proto/bundle.js | 31 - packages/api/dist/cosmos_proto/cosmos.d.ts | 171 - packages/api/dist/cosmos_proto/cosmos.js | 221 - packages/api/dist/esm/amino/amino.js | 1 - packages/api/dist/esm/amino/bundle.js | 5 - packages/api/dist/esm/binary.js | 366 - .../esm/cosmos/app/module/v1alpha1/module.js | 58 - .../dist/esm/cosmos/app/v1alpha1/module.js | 251 - .../api/dist/esm/cosmos/auth/v1beta1/auth.js | 323 - .../dist/esm/cosmos/auth/v1beta1/genesis.js | 88 - .../api/dist/esm/cosmos/auth/v1beta1/query.js | 1291 --- .../dist/esm/cosmos/auth/v1beta1/query.lcd.js | 82 - .../cosmos/auth/v1beta1/query.rpc.Query.js | 98 - .../dist/esm/cosmos/authz/v1beta1/authz.js | 391 - .../dist/esm/cosmos/authz/v1beta1/event.js | 188 - .../dist/esm/cosmos/authz/v1beta1/genesis.js | 75 - .../dist/esm/cosmos/authz/v1beta1/query.js | 523 -- .../esm/cosmos/authz/v1beta1/query.lcd.js | 57 - .../cosmos/authz/v1beta1/query.rpc.Query.js | 42 - .../dist/esm/cosmos/authz/v1beta1/tx.amino.js | 19 - .../api/dist/esm/cosmos/authz/v1beta1/tx.js | 487 -- .../esm/cosmos/authz/v1beta1/tx.registry.js | 69 - .../esm/cosmos/authz/v1beta1/tx.rpc.msg.js | 26 - .../api/dist/esm/cosmos/bank/v1beta1/authz.js | 76 - .../api/dist/esm/cosmos/bank/v1beta1/bank.js | 661 -- .../dist/esm/cosmos/bank/v1beta1/genesis.js | 202 - .../api/dist/esm/cosmos/bank/v1beta1/query.js | 1438 --- .../dist/esm/cosmos/bank/v1beta1/query.lcd.js | 115 - .../cosmos/bank/v1beta1/query.rpc.Query.js | 100 - .../dist/esm/cosmos/bank/v1beta1/tx.amino.js | 14 - .../api/dist/esm/cosmos/bank/v1beta1/tx.js | 299 - .../esm/cosmos/bank/v1beta1/tx.registry.js | 51 - .../esm/cosmos/bank/v1beta1/tx.rpc.msg.js | 20 - .../dist/esm/cosmos/base/abci/v1beta1/abci.js | 1058 --- .../esm/cosmos/base/node/v1beta1/query.js | 127 - .../esm/cosmos/base/node/v1beta1/query.lcd.js | 12 - .../base/node/v1beta1/query.rpc.Service.js | 24 - .../cosmos/base/query/v1beta1/pagination.js | 201 - .../base/reflection/v2alpha1/reflection.js | 1922 ---- .../api/dist/esm/cosmos/base/v1beta1/coin.js | 302 - packages/api/dist/esm/cosmos/bundle.js | 392 - packages/api/dist/esm/cosmos/client.js | 54 - .../dist/esm/cosmos/crypto/ed25519/keys.js | 141 - .../api/dist/esm/cosmos/crypto/hd/v1/hd.js | 119 - .../esm/cosmos/crypto/keyring/v1/record.js | 383 - .../dist/esm/cosmos/crypto/multisig/keys.js | 87 - .../crypto/multisig/v1beta1/multisig.js | 156 - .../dist/esm/cosmos/crypto/secp256k1/keys.js | 141 - .../dist/esm/cosmos/crypto/secp256r1/keys.js | 141 - .../distribution/v1beta1/distribution.js | 1050 --- .../cosmos/distribution/v1beta1/genesis.js | 820 -- .../esm/cosmos/distribution/v1beta1/query.js | 1311 --- .../cosmos/distribution/v1beta1/query.lcd.js | 75 - .../distribution/v1beta1/query.rpc.Query.js | 96 - .../cosmos/distribution/v1beta1/tx.amino.js | 24 - .../esm/cosmos/distribution/v1beta1/tx.js | 574 -- .../distribution/v1beta1/tx.registry.js | 87 - .../cosmos/distribution/v1beta1/tx.rpc.msg.js | 32 - .../esm/cosmos/feegrant/v1beta1/feegrant.js | 450 - .../esm/cosmos/feegrant/v1beta1/genesis.js | 75 - .../dist/esm/cosmos/feegrant/v1beta1/query.js | 484 - .../esm/cosmos/feegrant/v1beta1/query.lcd.js | 40 - .../feegrant/v1beta1/query.rpc.Query.js | 42 - .../esm/cosmos/feegrant/v1beta1/tx.amino.js | 14 - .../dist/esm/cosmos/feegrant/v1beta1/tx.js | 346 - .../cosmos/feegrant/v1beta1/tx.registry.js | 51 - .../esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js | 20 - .../api/dist/esm/cosmos/gov/v1/genesis.js | 153 - packages/api/dist/esm/cosmos/gov/v1/gov.js | 962 -- packages/api/dist/esm/cosmos/gov/v1/query.js | 1261 --- .../api/dist/esm/cosmos/gov/v1/query.lcd.js | 83 - .../dist/esm/cosmos/gov/v1/query.rpc.Query.js | 87 - .../api/dist/esm/cosmos/gov/v1/tx.amino.js | 29 - packages/api/dist/esm/cosmos/gov/v1/tx.js | 832 -- .../api/dist/esm/cosmos/gov/v1/tx.registry.js | 105 - .../api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js | 38 - .../dist/esm/cosmos/gov/v1beta1/genesis.js | 153 - .../api/dist/esm/cosmos/gov/v1beta1/gov.js | 1062 --- .../api/dist/esm/cosmos/gov/v1beta1/query.js | 1261 --- .../dist/esm/cosmos/gov/v1beta1/query.lcd.js | 83 - .../esm/cosmos/gov/v1beta1/query.rpc.Query.js | 87 - .../dist/esm/cosmos/gov/v1beta1/tx.amino.js | 24 - .../api/dist/esm/cosmos/gov/v1beta1/tx.js | 655 -- .../esm/cosmos/gov/v1beta1/tx.registry.js | 87 - .../dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js | 32 - .../api/dist/esm/cosmos/group/v1/events.js | 658 -- .../api/dist/esm/cosmos/group/v1/genesis.js | 171 - .../api/dist/esm/cosmos/group/v1/query.js | 2026 ----- .../api/dist/esm/cosmos/group/v1/query.lcd.js | 138 - .../esm/cosmos/group/v1/query.rpc.Query.js | 132 - .../api/dist/esm/cosmos/group/v1/tx.amino.js | 74 - packages/api/dist/esm/cosmos/group/v1/tx.js | 2330 ----- .../dist/esm/cosmos/group/v1/tx.registry.js | 267 - .../dist/esm/cosmos/group/v1/tx.rpc.msg.js | 92 - .../api/dist/esm/cosmos/group/v1/types.js | 1459 ---- packages/api/dist/esm/cosmos/lcd.js | 81 - .../dist/esm/cosmos/mint/v1beta1/genesis.js | 84 - .../api/dist/esm/cosmos/mint/v1beta1/mint.js | 213 - .../api/dist/esm/cosmos/mint/v1beta1/query.js | 379 - .../dist/esm/cosmos/mint/v1beta1/query.lcd.js | 24 - .../cosmos/mint/v1beta1/query.rpc.Query.js | 42 - packages/api/dist/esm/cosmos/msg/v1/msg.js | 1 - .../esm/cosmos/orm/module/v1alpha1/module.js | 58 - packages/api/dist/esm/cosmos/orm/v1/orm.js | 341 - .../dist/esm/cosmos/params/v1beta1/params.js | 192 - .../dist/esm/cosmos/params/v1beta1/query.js | 365 - .../esm/cosmos/params/v1beta1/query.lcd.js | 30 - .../cosmos/params/v1beta1/query.rpc.Query.js | 33 - packages/api/dist/esm/cosmos/rpc.query.js | 53 - packages/api/dist/esm/cosmos/rpc.tx.js | 32 - .../dist/esm/cosmos/staking/v1beta1/authz.js | 235 - .../esm/cosmos/staking/v1beta1/genesis.js | 253 - .../dist/esm/cosmos/staking/v1beta1/query.js | 2159 ----- .../esm/cosmos/staking/v1beta1/query.lcd.js | 147 - .../cosmos/staking/v1beta1/query.rpc.Query.js | 141 - .../esm/cosmos/staking/v1beta1/staking.js | 1991 ----- .../esm/cosmos/staking/v1beta1/tx.amino.js | 34 - .../api/dist/esm/cosmos/staking/v1beta1/tx.js | 1027 --- .../esm/cosmos/staking/v1beta1/tx.registry.js | 123 - .../esm/cosmos/staking/v1beta1/tx.rpc.msg.js | 44 - .../esm/cosmos/tx/signing/v1beta1/signing.js | 520 -- .../api/dist/esm/cosmos/tx/v1beta1/service.js | 992 --- .../dist/esm/cosmos/tx/v1beta1/service.lcd.js | 52 - .../cosmos/tx/v1beta1/service.rpc.Service.js | 60 - packages/api/dist/esm/cosmos/tx/v1beta1/tx.js | 1278 --- .../dist/esm/cosmos/upgrade/v1beta1/query.js | 671 -- .../esm/cosmos/upgrade/v1beta1/query.lcd.js | 51 - .../cosmos/upgrade/v1beta1/query.rpc.Query.js | 60 - .../esm/cosmos/upgrade/v1beta1/tx.amino.js | 14 - .../api/dist/esm/cosmos/upgrade/v1beta1/tx.js | 265 - .../esm/cosmos/upgrade/v1beta1/tx.registry.js | 51 - .../esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js | 20 - .../esm/cosmos/upgrade/v1beta1/upgrade.js | 379 - .../esm/cosmos/vesting/v1beta1/tx.amino.js | 19 - .../api/dist/esm/cosmos/vesting/v1beta1/tx.js | 496 -- .../esm/cosmos/vesting/v1beta1/tx.registry.js | 69 - .../esm/cosmos/vesting/v1beta1/tx.rpc.msg.js | 26 - .../esm/cosmos/vesting/v1beta1/vesting.js | 529 -- packages/api/dist/esm/cosmos_proto/bundle.js | 5 - packages/api/dist/esm/cosmos_proto/cosmos.js | 216 - packages/api/dist/esm/gogoproto/bundle.js | 5 - packages/api/dist/esm/gogoproto/gogo.js | 1 - .../api/dist/esm/google/api/annotations.js | 1 - packages/api/dist/esm/google/api/http.js | 329 - packages/api/dist/esm/google/bundle.js | 14 - packages/api/dist/esm/google/protobuf/any.js | 74 - .../dist/esm/google/protobuf/descriptor.js | 3390 ------- .../api/dist/esm/google/protobuf/duration.js | 71 - .../api/dist/esm/google/protobuf/timestamp.js | 68 - packages/api/dist/esm/helpers.js | 126 - .../ibc/applications/transfer/v1/genesis.js | 99 - .../esm/ibc/applications/transfer/v1/query.js | 708 -- .../ibc/applications/transfer/v1/query.lcd.js | 46 - .../transfer/v1/query.rpc.Query.js | 62 - .../ibc/applications/transfer/v1/transfer.js | 164 - .../ibc/applications/transfer/v1/tx.amino.js | 9 - .../esm/ibc/applications/transfer/v1/tx.js | 201 - .../applications/transfer/v1/tx.registry.js | 33 - .../applications/transfer/v1/tx.rpc.msg.js | 14 - packages/api/dist/esm/ibc/bundle.js | 64 - packages/api/dist/esm/ibc/client.js | 32 - .../api/dist/esm/ibc/core/client/v1/client.js | 611 -- .../dist/esm/ibc/core/client/v1/genesis.js | 307 - .../api/dist/esm/ibc/core/client/v1/query.js | 1362 --- .../dist/esm/ibc/core/client/v1/query.lcd.js | 90 - .../esm/ibc/core/client/v1/query.rpc.Query.js | 98 - .../dist/esm/ibc/core/client/v1/tx.amino.js | 24 - .../api/dist/esm/ibc/core/client/v1/tx.js | 636 -- .../esm/ibc/core/client/v1/tx.registry.js | 87 - .../dist/esm/ibc/core/client/v1/tx.rpc.msg.js | 32 - packages/api/dist/esm/ibc/lcd.js | 97 - packages/api/dist/esm/ibc/rpc.query.js | 65 - packages/api/dist/esm/ibc/rpc.tx.js | 44 - packages/api/dist/esm/index.js | 20 - packages/api/dist/esm/regen/bundle.js | 160 - packages/api/dist/esm/regen/client.js | 44 - packages/api/dist/esm/regen/data/v1/events.js | 278 - packages/api/dist/esm/regen/data/v1/query.js | 1815 ---- .../api/dist/esm/regen/data/v1/query.lcd.js | 63 - .../dist/esm/regen/data/v1/query.rpc.Query.js | 114 - packages/api/dist/esm/regen/data/v1/state.js | 403 - .../api/dist/esm/regen/data/v1/tx.amino.js | 24 - packages/api/dist/esm/regen/data/v1/tx.js | 613 -- .../api/dist/esm/regen/data/v1/tx.registry.js | 87 - .../api/dist/esm/regen/data/v1/tx.rpc.msg.js | 32 - packages/api/dist/esm/regen/data/v1/types.js | 579 -- .../esm/regen/ecocredit/basket/v1/events.js | 408 - .../esm/regen/ecocredit/basket/v1/query.js | 944 -- .../regen/ecocredit/basket/v1/query.lcd.js | 55 - .../ecocredit/basket/v1/query.rpc.Query.js | 62 - .../esm/regen/ecocredit/basket/v1/state.js | 390 - .../esm/regen/ecocredit/basket/v1/tx.amino.js | 34 - .../dist/esm/regen/ecocredit/basket/v1/tx.js | 1021 --- .../regen/ecocredit/basket/v1/tx.registry.js | 123 - .../regen/ecocredit/basket/v1/tx.rpc.msg.js | 44 - .../esm/regen/ecocredit/basket/v1/types.js | 167 - .../regen/ecocredit/marketplace/v1/events.js | 380 - .../regen/ecocredit/marketplace/v1/query.js | 867 -- .../ecocredit/marketplace/v1/query.lcd.js | 69 - .../marketplace/v1/query.rpc.Query.js | 64 - .../regen/ecocredit/marketplace/v1/state.js | 349 - .../ecocredit/marketplace/v1/tx.amino.js | 34 - .../esm/regen/ecocredit/marketplace/v1/tx.js | 1195 --- .../ecocredit/marketplace/v1/tx.registry.js | 123 - .../ecocredit/marketplace/v1/tx.rpc.msg.js | 44 - .../regen/ecocredit/marketplace/v1/types.js | 90 - .../ecocredit/orderbook/v1alpha1/memory.js | 400 - .../api/dist/esm/regen/ecocredit/v1/events.js | 1413 --- .../api/dist/esm/regen/ecocredit/v1/query.js | 4086 --------- .../dist/esm/regen/ecocredit/v1/query.lcd.js | 288 - .../esm/regen/ecocredit/v1/query.rpc.Query.js | 259 - .../api/dist/esm/regen/ecocredit/v1/state.js | 1445 --- .../dist/esm/regen/ecocredit/v1/tx.amino.js | 119 - .../api/dist/esm/regen/ecocredit/v1/tx.js | 3780 -------- .../esm/regen/ecocredit/v1/tx.registry.js | 429 - .../dist/esm/regen/ecocredit/v1/tx.rpc.msg.js | 146 - .../api/dist/esm/regen/ecocredit/v1/types.js | 601 -- .../esm/regen/ecocredit/v1alpha1/events.js | 521 -- .../esm/regen/ecocredit/v1alpha1/genesis.js | 327 - .../esm/regen/ecocredit/v1alpha1/query.js | 1067 --- .../esm/regen/ecocredit/v1alpha1/query.lcd.js | 72 - .../ecocredit/v1alpha1/query.rpc.Query.js | 89 - .../esm/regen/ecocredit/v1alpha1/tx.amino.js | 44 - .../dist/esm/regen/ecocredit/v1alpha1/tx.js | 1540 ---- .../regen/ecocredit/v1alpha1/tx.registry.js | 159 - .../regen/ecocredit/v1alpha1/tx.rpc.msg.js | 56 - .../esm/regen/ecocredit/v1alpha1/types.js | 587 -- .../api/dist/esm/regen/intertx/v1/query.js | 140 - .../dist/esm/regen/intertx/v1/query.lcd.js | 13 - .../esm/regen/intertx/v1/query.rpc.Query.js | 24 - .../api/dist/esm/regen/intertx/v1/tx.amino.js | 14 - packages/api/dist/esm/regen/intertx/v1/tx.js | 277 - .../dist/esm/regen/intertx/v1/tx.registry.js | 51 - .../dist/esm/regen/intertx/v1/tx.rpc.msg.js | 20 - packages/api/dist/esm/regen/lcd.js | 111 - packages/api/dist/esm/regen/rpc.query.js | 71 - packages/api/dist/esm/regen/rpc.tx.js | 50 - .../api/dist/esm/tendermint/abci/types.js | 4622 ---------- packages/api/dist/esm/tendermint/bundle.js | 41 - .../api/dist/esm/tendermint/crypto/keys.js | 78 - .../api/dist/esm/tendermint/crypto/proof.js | 420 - .../dist/esm/tendermint/libs/bits/types.js | 90 - packages/api/dist/esm/tendermint/p2p/types.js | 399 - .../api/dist/esm/tendermint/types/block.js | 103 - .../api/dist/esm/tendermint/types/evidence.js | 372 - .../api/dist/esm/tendermint/types/params.js | 468 - .../api/dist/esm/tendermint/types/types.js | 1442 --- .../dist/esm/tendermint/types/validator.js | 268 - .../api/dist/esm/tendermint/version/types.js | 152 - packages/api/dist/esm/utf8.js | 137 - packages/api/dist/esm/varint.js | 408 - packages/api/dist/gogoproto/bundle.d.ts | 1 - packages/api/dist/gogoproto/bundle.js | 31 - packages/api/dist/gogoproto/gogo.d.ts | 1 - packages/api/dist/gogoproto/gogo.js | 2 - packages/api/dist/google/api/annotations.d.ts | 1 - packages/api/dist/google/api/annotations.js | 2 - packages/api/dist/google/api/http.d.ts | 1073 --- packages/api/dist/google/api/http.js | 332 - packages/api/dist/google/bundle.d.ts | 398 - packages/api/dist/google/bundle.js | 40 - packages/api/dist/google/protobuf/any.d.ts | 338 - packages/api/dist/google/protobuf/any.js | 77 - .../api/dist/google/protobuf/descriptor.d.ts | 2278 ----- .../api/dist/google/protobuf/descriptor.js | 3406 -------- .../api/dist/google/protobuf/duration.d.ts | 223 - packages/api/dist/google/protobuf/duration.js | 74 - .../api/dist/google/protobuf/timestamp.d.ts | 293 - .../api/dist/google/protobuf/timestamp.js | 71 - packages/api/dist/helpers.d.ts | 81 - packages/api/dist/helpers.js | 140 - .../ibc/applications/transfer/v1/genesis.d.ts | 41 - .../ibc/applications/transfer/v1/genesis.js | 102 - .../ibc/applications/transfer/v1/query.d.ts | 412 - .../ibc/applications/transfer/v1/query.js | 711 -- .../applications/transfer/v1/query.lcd.d.ts | 13 - .../ibc/applications/transfer/v1/query.lcd.js | 50 - .../transfer/v1/query.rpc.Query.d.ts | 32 - .../transfer/v1/query.rpc.Query.js | 67 - .../applications/transfer/v1/transfer.d.ts | 123 - .../ibc/applications/transfer/v1/transfer.js | 167 - .../applications/transfer/v1/tx.amino.d.ts | 8 - .../ibc/applications/transfer/v1/tx.amino.js | 12 - .../dist/ibc/applications/transfer/v1/tx.d.ts | 122 - .../dist/ibc/applications/transfer/v1/tx.js | 204 - .../applications/transfer/v1/tx.registry.d.ts | 24 - .../applications/transfer/v1/tx.registry.js | 37 - .../applications/transfer/v1/tx.rpc.msg.d.ts | 12 - .../applications/transfer/v1/tx.rpc.msg.js | 18 - packages/api/dist/ibc/bundle.d.ts | 1114 --- packages/api/dist/ibc/bundle.js | 90 - packages/api/dist/ibc/client.d.ts | 42 - packages/api/dist/ibc/client.js | 60 - .../api/dist/ibc/core/client/v1/client.d.ts | 400 - .../api/dist/ibc/core/client/v1/client.js | 614 -- .../api/dist/ibc/core/client/v1/genesis.d.ts | 154 - .../api/dist/ibc/core/client/v1/genesis.js | 310 - .../api/dist/ibc/core/client/v1/query.d.ts | 851 -- packages/api/dist/ibc/core/client/v1/query.js | 1365 --- .../dist/ibc/core/client/v1/query.lcd.d.ts | 17 - .../api/dist/ibc/core/client/v1/query.lcd.js | 94 - .../ibc/core/client/v1/query.rpc.Query.d.ts | 54 - .../ibc/core/client/v1/query.rpc.Query.js | 103 - .../api/dist/ibc/core/client/v1/tx.amino.d.ts | 23 - .../api/dist/ibc/core/client/v1/tx.amino.js | 27 - packages/api/dist/ibc/core/client/v1/tx.d.ts | 377 - packages/api/dist/ibc/core/client/v1/tx.js | 639 -- .../dist/ibc/core/client/v1/tx.registry.d.ts | 60 - .../dist/ibc/core/client/v1/tx.registry.js | 91 - .../dist/ibc/core/client/v1/tx.rpc.msg.d.ts | 21 - .../api/dist/ibc/core/client/v1/tx.rpc.msg.js | 36 - packages/api/dist/ibc/lcd.d.ts | 60 - packages/api/dist/ibc/lcd.js | 124 - packages/api/dist/ibc/rpc.query.d.ts | 183 - packages/api/dist/ibc/rpc.query.js | 92 - packages/api/dist/ibc/rpc.tx.d.ts | 47 - packages/api/dist/ibc/rpc.tx.js | 71 - packages/api/dist/index.d.ts | 19 - packages/api/dist/index.js | 36 - packages/api/dist/package.json | 43 - packages/api/dist/regen/bundle.d.ts | 5330 ----------- packages/api/dist/regen/bundle.js | 186 - packages/api/dist/regen/client.d.ts | 262 - packages/api/dist/regen/client.js | 72 - packages/api/dist/regen/data/v1/events.d.ts | 162 - packages/api/dist/regen/data/v1/events.js | 281 - packages/api/dist/regen/data/v1/query.d.ts | 970 -- packages/api/dist/regen/data/v1/query.js | 1818 ---- .../api/dist/regen/data/v1/query.lcd.d.ts | 14 - packages/api/dist/regen/data/v1/query.lcd.js | 67 - .../dist/regen/data/v1/query.rpc.Query.d.ts | 65 - .../api/dist/regen/data/v1/query.rpc.Query.js | 119 - packages/api/dist/regen/data/v1/state.d.ts | 227 - packages/api/dist/regen/data/v1/state.js | 406 - packages/api/dist/regen/data/v1/tx.amino.d.ts | 23 - packages/api/dist/regen/data/v1/tx.amino.js | 27 - packages/api/dist/regen/data/v1/tx.js | 616 -- .../api/dist/regen/data/v1/tx.registry.d.ts | 60 - .../api/dist/regen/data/v1/tx.registry.js | 91 - .../api/dist/regen/data/v1/tx.rpc.msg.d.ts | 55 - packages/api/dist/regen/data/v1/tx.rpc.msg.js | 36 - packages/api/dist/regen/data/v1/types.d.ts | 287 - packages/api/dist/regen/data/v1/types.js | 590 -- .../regen/ecocredit/basket/v1/events.d.ts | 319 - .../dist/regen/ecocredit/basket/v1/events.js | 411 - .../dist/regen/ecocredit/basket/v1/query.d.ts | 608 -- .../dist/regen/ecocredit/basket/v1/query.js | 947 -- .../regen/ecocredit/basket/v1/query.lcd.d.ts | 13 - .../regen/ecocredit/basket/v1/query.lcd.js | 59 - .../ecocredit/basket/v1/query.rpc.Query.d.ts | 37 - .../ecocredit/basket/v1/query.rpc.Query.js | 67 - .../dist/regen/ecocredit/basket/v1/state.d.ts | 308 - .../dist/regen/ecocredit/basket/v1/state.js | 393 - .../regen/ecocredit/basket/v1/tx.amino.d.ts | 33 - .../regen/ecocredit/basket/v1/tx.amino.js | 37 - .../dist/regen/ecocredit/basket/v1/tx.d.ts | 741 -- .../api/dist/regen/ecocredit/basket/v1/tx.js | 1024 --- .../ecocredit/basket/v1/tx.registry.d.ts | 84 - .../regen/ecocredit/basket/v1/tx.registry.js | 127 - .../regen/ecocredit/basket/v1/tx.rpc.msg.d.ts | 74 - .../regen/ecocredit/basket/v1/tx.rpc.msg.js | 48 - .../dist/regen/ecocredit/basket/v1/types.d.ts | 142 - .../dist/regen/ecocredit/basket/v1/types.js | 170 - .../ecocredit/marketplace/v1/events.d.ts | 253 - .../regen/ecocredit/marketplace/v1/events.js | 383 - .../regen/ecocredit/marketplace/v1/query.d.ts | 506 -- .../regen/ecocredit/marketplace/v1/query.js | 870 -- .../ecocredit/marketplace/v1/query.lcd.d.ts | 13 - .../ecocredit/marketplace/v1/query.lcd.js | 73 - .../marketplace/v1/query.rpc.Query.d.ts | 41 - .../marketplace/v1/query.rpc.Query.js | 69 - .../regen/ecocredit/marketplace/v1/state.d.ts | 306 - .../regen/ecocredit/marketplace/v1/state.js | 352 - .../ecocredit/marketplace/v1/tx.amino.d.ts | 33 - .../ecocredit/marketplace/v1/tx.amino.js | 37 - .../regen/ecocredit/marketplace/v1/tx.d.ts | 748 -- .../dist/regen/ecocredit/marketplace/v1/tx.js | 1198 --- .../ecocredit/marketplace/v1/tx.registry.d.ts | 84 - .../ecocredit/marketplace/v1/tx.registry.js | 127 - .../ecocredit/marketplace/v1/tx.rpc.msg.d.ts | 36 - .../ecocredit/marketplace/v1/tx.rpc.msg.js | 48 - .../regen/ecocredit/marketplace/v1/types.d.ts | 70 - .../regen/ecocredit/marketplace/v1/types.js | 93 - .../ecocredit/orderbook/v1alpha1/memory.d.ts | 222 - .../ecocredit/orderbook/v1alpha1/memory.js | 403 - .../api/dist/regen/ecocredit/v1/events.d.ts | 958 -- .../api/dist/regen/ecocredit/v1/events.js | 1416 --- .../api/dist/regen/ecocredit/v1/query.d.ts | 2417 ----- packages/api/dist/regen/ecocredit/v1/query.js | 4090 --------- .../dist/regen/ecocredit/v1/query.lcd.d.ts | 34 - .../api/dist/regen/ecocredit/v1/query.lcd.js | 292 - .../regen/ecocredit/v1/query.rpc.Query.d.ts | 166 - .../regen/ecocredit/v1/query.rpc.Query.js | 264 - .../api/dist/regen/ecocredit/v1/state.d.ts | 1110 --- packages/api/dist/regen/ecocredit/v1/state.js | 1448 --- .../api/dist/regen/ecocredit/v1/tx.amino.d.ts | 118 - .../api/dist/regen/ecocredit/v1/tx.amino.js | 122 - packages/api/dist/regen/ecocredit/v1/tx.d.ts | 2528 ------ packages/api/dist/regen/ecocredit/v1/tx.js | 3783 -------- .../dist/regen/ecocredit/v1/tx.registry.d.ts | 288 - .../dist/regen/ecocredit/v1/tx.registry.js | 433 - .../dist/regen/ecocredit/v1/tx.rpc.msg.d.ts | 202 - .../api/dist/regen/ecocredit/v1/tx.rpc.msg.js | 150 - .../api/dist/regen/ecocredit/v1/types.d.ts | 493 -- packages/api/dist/regen/ecocredit/v1/types.js | 604 -- .../dist/regen/ecocredit/v1alpha1/events.d.ts | 357 - .../dist/regen/ecocredit/v1alpha1/events.js | 524 -- .../regen/ecocredit/v1alpha1/genesis.d.ts | 169 - .../dist/regen/ecocredit/v1alpha1/genesis.js | 330 - .../dist/regen/ecocredit/v1alpha1/query.d.ts | 579 -- .../dist/regen/ecocredit/v1alpha1/query.js | 1070 --- .../regen/ecocredit/v1alpha1/query.lcd.d.ts | 16 - .../regen/ecocredit/v1alpha1/query.lcd.js | 76 - .../ecocredit/v1alpha1/query.rpc.Query.d.ts | 50 - .../ecocredit/v1alpha1/query.rpc.Query.js | 94 - .../regen/ecocredit/v1alpha1/tx.amino.d.ts | 43 - .../dist/regen/ecocredit/v1alpha1/tx.amino.js | 47 - .../api/dist/regen/ecocredit/v1alpha1/tx.d.ts | 936 -- .../api/dist/regen/ecocredit/v1alpha1/tx.js | 1543 ---- .../regen/ecocredit/v1alpha1/tx.registry.d.ts | 108 - .../regen/ecocredit/v1alpha1/tx.registry.js | 163 - .../regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts | 47 - .../regen/ecocredit/v1alpha1/tx.rpc.msg.js | 60 - .../dist/regen/ecocredit/v1alpha1/types.d.ts | 368 - .../dist/regen/ecocredit/v1alpha1/types.js | 590 -- packages/api/dist/regen/intertx/v1/query.d.ts | 92 - packages/api/dist/regen/intertx/v1/query.js | 143 - .../api/dist/regen/intertx/v1/query.lcd.d.ts | 9 - .../api/dist/regen/intertx/v1/query.lcd.js | 17 - .../regen/intertx/v1/query.rpc.Query.d.ts | 19 - .../dist/regen/intertx/v1/query.rpc.Query.js | 29 - .../api/dist/regen/intertx/v1/tx.amino.d.ts | 13 - .../api/dist/regen/intertx/v1/tx.amino.js | 17 - packages/api/dist/regen/intertx/v1/tx.d.ts | 156 - packages/api/dist/regen/intertx/v1/tx.js | 280 - .../dist/regen/intertx/v1/tx.registry.d.ts | 36 - .../api/dist/regen/intertx/v1/tx.registry.js | 55 - .../api/dist/regen/intertx/v1/tx.rpc.msg.d.ts | 15 - .../api/dist/regen/intertx/v1/tx.rpc.msg.js | 24 - packages/api/dist/regen/lcd.d.ts | 66 - packages/api/dist/regen/lcd.js | 138 - packages/api/dist/regen/rpc.query.d.ts | 235 - packages/api/dist/regen/rpc.query.js | 98 - packages/api/dist/regen/rpc.tx.d.ts | 53 - packages/api/dist/regen/rpc.tx.js | 77 - packages/api/dist/tendermint/abci/types.d.ts | 1913 ---- packages/api/dist/tendermint/abci/types.js | 4636 ---------- packages/api/dist/tendermint/bundle.d.ts | 1094 --- packages/api/dist/tendermint/bundle.js | 67 - packages/api/dist/tendermint/crypto/keys.d.ts | 36 - packages/api/dist/tendermint/crypto/keys.js | 81 - .../api/dist/tendermint/crypto/proof.d.ts | 192 - packages/api/dist/tendermint/crypto/proof.js | 423 - .../api/dist/tendermint/libs/bits/types.d.ts | 33 - .../api/dist/tendermint/libs/bits/types.js | 93 - packages/api/dist/tendermint/p2p/types.d.ts | 153 - packages/api/dist/tendermint/p2p/types.js | 402 - packages/api/dist/tendermint/types/block.d.ts | 41 - packages/api/dist/tendermint/types/block.js | 106 - .../api/dist/tendermint/types/evidence.d.ts | 152 - .../api/dist/tendermint/types/evidence.js | 375 - .../api/dist/tendermint/types/params.d.ts | 297 - packages/api/dist/tendermint/types/params.js | 471 - packages/api/dist/tendermint/types/types.d.ts | 597 -- packages/api/dist/tendermint/types/types.js | 1449 --- .../api/dist/tendermint/types/validator.d.ts | 107 - .../api/dist/tendermint/types/validator.js | 271 - .../api/dist/tendermint/version/types.d.ts | 95 - packages/api/dist/tendermint/version/types.js | 155 - packages/api/dist/utf8.d.ts | 27 - packages/api/dist/utf8.js | 142 - packages/api/dist/varint.d.ts | 105 - packages/api/dist/varint.js | 427 - 746 files changed, 3 insertions(+), 259560 deletions(-) delete mode 100644 packages/api/dist/LICENSE delete mode 100644 packages/api/dist/amino/amino.d.ts delete mode 100644 packages/api/dist/amino/amino.js delete mode 100644 packages/api/dist/amino/bundle.d.ts delete mode 100644 packages/api/dist/amino/bundle.js delete mode 100644 packages/api/dist/binary.d.ts delete mode 100644 packages/api/dist/binary.js delete mode 100644 packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts delete mode 100644 packages/api/dist/cosmos/app/module/v1alpha1/module.js delete mode 100644 packages/api/dist/cosmos/app/v1alpha1/module.d.ts delete mode 100644 packages/api/dist/cosmos/app/v1alpha1/module.js delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/auth.d.ts delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/auth.js delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/authz.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/authz.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/event.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/event.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/authz.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/authz.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/bank.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/bank.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts delete mode 100644 packages/api/dist/cosmos/base/abci/v1beta1/abci.js delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts delete mode 100644 packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js delete mode 100644 packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts delete mode 100644 packages/api/dist/cosmos/base/query/v1beta1/pagination.js delete mode 100644 packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts delete mode 100644 packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js delete mode 100644 packages/api/dist/cosmos/base/v1beta1/coin.d.ts delete mode 100644 packages/api/dist/cosmos/base/v1beta1/coin.js delete mode 100644 packages/api/dist/cosmos/bundle.d.ts delete mode 100644 packages/api/dist/cosmos/bundle.js delete mode 100644 packages/api/dist/cosmos/client.d.ts delete mode 100644 packages/api/dist/cosmos/client.js delete mode 100644 packages/api/dist/cosmos/crypto/ed25519/keys.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/ed25519/keys.js delete mode 100644 packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/hd/v1/hd.js delete mode 100644 packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/keyring/v1/record.js delete mode 100644 packages/api/dist/cosmos/crypto/multisig/keys.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/multisig/keys.js delete mode 100644 packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js delete mode 100644 packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/secp256k1/keys.js delete mode 100644 packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts delete mode 100644 packages/api/dist/cosmos/crypto/secp256r1/keys.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/distribution.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/gov/v1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/genesis.js delete mode 100644 packages/api/dist/cosmos/gov/v1/gov.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/gov.js delete mode 100644 packages/api/dist/cosmos/gov/v1/query.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/query.js delete mode 100644 packages/api/dist/cosmos/gov/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.js delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/gov.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/gov.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/group/v1/events.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/events.js delete mode 100644 packages/api/dist/cosmos/group/v1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/genesis.js delete mode 100644 packages/api/dist/cosmos/group/v1/query.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/query.js delete mode 100644 packages/api/dist/cosmos/group/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/group/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/group/v1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/tx.js delete mode 100644 packages/api/dist/cosmos/group/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/group/v1/types.d.ts delete mode 100644 packages/api/dist/cosmos/group/v1/types.js delete mode 100644 packages/api/dist/cosmos/lcd.d.ts delete mode 100644 packages/api/dist/cosmos/lcd.js delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/mint.d.ts delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/mint.js delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/msg/v1/msg.d.ts delete mode 100644 packages/api/dist/cosmos/msg/v1/msg.js delete mode 100644 packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts delete mode 100644 packages/api/dist/cosmos/orm/module/v1alpha1/module.js delete mode 100644 packages/api/dist/cosmos/orm/v1/orm.d.ts delete mode 100644 packages/api/dist/cosmos/orm/v1/orm.js delete mode 100644 packages/api/dist/cosmos/params/v1beta1/params.d.ts delete mode 100644 packages/api/dist/cosmos/params/v1beta1/params.js delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/rpc.query.d.ts delete mode 100644 packages/api/dist/cosmos/rpc.query.js delete mode 100644 packages/api/dist/cosmos/rpc.tx.d.ts delete mode 100644 packages/api/dist/cosmos/rpc.tx.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/authz.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/authz.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/genesis.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/staking.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/staking.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts delete mode 100644 packages/api/dist/cosmos/tx/signing/v1beta1/signing.js delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.d.ts delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.js delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.lcd.js delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/tx/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts delete mode 100644 packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.js delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts delete mode 100644 packages/api/dist/cosmos/vesting/v1beta1/vesting.js delete mode 100644 packages/api/dist/cosmos_proto/bundle.d.ts delete mode 100644 packages/api/dist/cosmos_proto/bundle.js delete mode 100644 packages/api/dist/cosmos_proto/cosmos.d.ts delete mode 100644 packages/api/dist/cosmos_proto/cosmos.js delete mode 100644 packages/api/dist/esm/amino/amino.js delete mode 100644 packages/api/dist/esm/amino/bundle.js delete mode 100644 packages/api/dist/esm/binary.js delete mode 100644 packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js delete mode 100644 packages/api/dist/esm/cosmos/app/v1alpha1/module.js delete mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/auth.js delete mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/authz.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/event.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/authz.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/bank.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js delete mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js delete mode 100644 packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js delete mode 100644 packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js delete mode 100644 packages/api/dist/esm/cosmos/base/v1beta1/coin.js delete mode 100644 packages/api/dist/esm/cosmos/bundle.js delete mode 100644 packages/api/dist/esm/cosmos/client.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/ed25519/keys.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/multisig/keys.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js delete mode 100644 packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/gov.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/gov.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/events.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/query.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/group/v1/types.js delete mode 100644 packages/api/dist/esm/cosmos/lcd.js delete mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/mint.js delete mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/msg/v1/msg.js delete mode 100644 packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js delete mode 100644 packages/api/dist/esm/cosmos/orm/v1/orm.js delete mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/params.js delete mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/rpc.query.js delete mode 100644 packages/api/dist/esm/cosmos/rpc.tx.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/authz.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/staking.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js delete mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.js delete mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js delete mode 100644 packages/api/dist/esm/cosmos/tx/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js delete mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js delete mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js delete mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js delete mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js delete mode 100644 packages/api/dist/esm/cosmos_proto/bundle.js delete mode 100644 packages/api/dist/esm/cosmos_proto/cosmos.js delete mode 100644 packages/api/dist/esm/gogoproto/bundle.js delete mode 100644 packages/api/dist/esm/gogoproto/gogo.js delete mode 100644 packages/api/dist/esm/google/api/annotations.js delete mode 100644 packages/api/dist/esm/google/api/http.js delete mode 100644 packages/api/dist/esm/google/bundle.js delete mode 100644 packages/api/dist/esm/google/protobuf/any.js delete mode 100644 packages/api/dist/esm/google/protobuf/descriptor.js delete mode 100644 packages/api/dist/esm/google/protobuf/duration.js delete mode 100644 packages/api/dist/esm/google/protobuf/timestamp.js delete mode 100644 packages/api/dist/esm/helpers.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/ibc/bundle.js delete mode 100644 packages/api/dist/esm/ibc/client.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/client.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/genesis.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/ibc/lcd.js delete mode 100644 packages/api/dist/esm/ibc/rpc.query.js delete mode 100644 packages/api/dist/esm/ibc/rpc.tx.js delete mode 100644 packages/api/dist/esm/index.js delete mode 100644 packages/api/dist/esm/regen/bundle.js delete mode 100644 packages/api/dist/esm/regen/client.js delete mode 100644 packages/api/dist/esm/regen/data/v1/events.js delete mode 100644 packages/api/dist/esm/regen/data/v1/query.js delete mode 100644 packages/api/dist/esm/regen/data/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/data/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/data/v1/state.js delete mode 100644 packages/api/dist/esm/regen/data/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/data/v1/tx.js delete mode 100644 packages/api/dist/esm/regen/data/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/data/v1/types.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/events.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/state.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/basket/v1/types.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/events.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/state.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1/types.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/query.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/query.lcd.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.amino.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.registry.js delete mode 100644 packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/esm/regen/lcd.js delete mode 100644 packages/api/dist/esm/regen/rpc.query.js delete mode 100644 packages/api/dist/esm/regen/rpc.tx.js delete mode 100644 packages/api/dist/esm/tendermint/abci/types.js delete mode 100644 packages/api/dist/esm/tendermint/bundle.js delete mode 100644 packages/api/dist/esm/tendermint/crypto/keys.js delete mode 100644 packages/api/dist/esm/tendermint/crypto/proof.js delete mode 100644 packages/api/dist/esm/tendermint/libs/bits/types.js delete mode 100644 packages/api/dist/esm/tendermint/p2p/types.js delete mode 100644 packages/api/dist/esm/tendermint/types/block.js delete mode 100644 packages/api/dist/esm/tendermint/types/evidence.js delete mode 100644 packages/api/dist/esm/tendermint/types/params.js delete mode 100644 packages/api/dist/esm/tendermint/types/types.js delete mode 100644 packages/api/dist/esm/tendermint/types/validator.js delete mode 100644 packages/api/dist/esm/tendermint/version/types.js delete mode 100644 packages/api/dist/esm/utf8.js delete mode 100644 packages/api/dist/esm/varint.js delete mode 100644 packages/api/dist/gogoproto/bundle.d.ts delete mode 100644 packages/api/dist/gogoproto/bundle.js delete mode 100644 packages/api/dist/gogoproto/gogo.d.ts delete mode 100644 packages/api/dist/gogoproto/gogo.js delete mode 100644 packages/api/dist/google/api/annotations.d.ts delete mode 100644 packages/api/dist/google/api/annotations.js delete mode 100644 packages/api/dist/google/api/http.d.ts delete mode 100644 packages/api/dist/google/api/http.js delete mode 100644 packages/api/dist/google/bundle.d.ts delete mode 100644 packages/api/dist/google/bundle.js delete mode 100644 packages/api/dist/google/protobuf/any.d.ts delete mode 100644 packages/api/dist/google/protobuf/any.js delete mode 100644 packages/api/dist/google/protobuf/descriptor.d.ts delete mode 100644 packages/api/dist/google/protobuf/descriptor.js delete mode 100644 packages/api/dist/google/protobuf/duration.d.ts delete mode 100644 packages/api/dist/google/protobuf/duration.js delete mode 100644 packages/api/dist/google/protobuf/timestamp.d.ts delete mode 100644 packages/api/dist/google/protobuf/timestamp.js delete mode 100644 packages/api/dist/helpers.d.ts delete mode 100644 packages/api/dist/helpers.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/genesis.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.lcd.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/transfer.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.amino.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.registry.js delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/ibc/bundle.d.ts delete mode 100644 packages/api/dist/ibc/bundle.js delete mode 100644 packages/api/dist/ibc/client.d.ts delete mode 100644 packages/api/dist/ibc/client.js delete mode 100644 packages/api/dist/ibc/core/client/v1/client.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/client.js delete mode 100644 packages/api/dist/ibc/core/client/v1/genesis.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/genesis.js delete mode 100644 packages/api/dist/ibc/core/client/v1/query.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/query.js delete mode 100644 packages/api/dist/ibc/core/client/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/query.lcd.js delete mode 100644 packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.amino.js delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.js delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.registry.js delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/ibc/lcd.d.ts delete mode 100644 packages/api/dist/ibc/lcd.js delete mode 100644 packages/api/dist/ibc/rpc.query.d.ts delete mode 100644 packages/api/dist/ibc/rpc.query.js delete mode 100644 packages/api/dist/ibc/rpc.tx.d.ts delete mode 100644 packages/api/dist/ibc/rpc.tx.js delete mode 100644 packages/api/dist/index.d.ts delete mode 100644 packages/api/dist/index.js delete mode 100644 packages/api/dist/package.json delete mode 100644 packages/api/dist/regen/bundle.d.ts delete mode 100644 packages/api/dist/regen/bundle.js delete mode 100644 packages/api/dist/regen/client.d.ts delete mode 100644 packages/api/dist/regen/client.js delete mode 100644 packages/api/dist/regen/data/v1/events.d.ts delete mode 100644 packages/api/dist/regen/data/v1/events.js delete mode 100644 packages/api/dist/regen/data/v1/query.d.ts delete mode 100644 packages/api/dist/regen/data/v1/query.js delete mode 100644 packages/api/dist/regen/data/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/data/v1/query.lcd.js delete mode 100644 packages/api/dist/regen/data/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/data/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/data/v1/state.d.ts delete mode 100644 packages/api/dist/regen/data/v1/state.js delete mode 100644 packages/api/dist/regen/data/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/data/v1/tx.amino.js delete mode 100644 packages/api/dist/regen/data/v1/tx.js delete mode 100644 packages/api/dist/regen/data/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/data/v1/tx.registry.js delete mode 100644 packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/data/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/data/v1/types.d.ts delete mode 100644 packages/api/dist/regen/data/v1/types.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/events.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/events.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/state.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/state.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/types.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/basket/v1/types.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/events.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/state.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/marketplace/v1/types.js delete mode 100644 packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/events.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/events.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.lcd.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/state.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/state.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.amino.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.registry.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/ecocredit/v1/types.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1/types.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/events.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/genesis.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts delete mode 100644 packages/api/dist/regen/ecocredit/v1alpha1/types.js delete mode 100644 packages/api/dist/regen/intertx/v1/query.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/query.js delete mode 100644 packages/api/dist/regen/intertx/v1/query.lcd.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/query.lcd.js delete mode 100644 packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/query.rpc.Query.js delete mode 100644 packages/api/dist/regen/intertx/v1/tx.amino.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/tx.amino.js delete mode 100644 packages/api/dist/regen/intertx/v1/tx.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/tx.js delete mode 100644 packages/api/dist/regen/intertx/v1/tx.registry.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/tx.registry.js delete mode 100644 packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts delete mode 100644 packages/api/dist/regen/intertx/v1/tx.rpc.msg.js delete mode 100644 packages/api/dist/regen/lcd.d.ts delete mode 100644 packages/api/dist/regen/lcd.js delete mode 100644 packages/api/dist/regen/rpc.query.d.ts delete mode 100644 packages/api/dist/regen/rpc.query.js delete mode 100644 packages/api/dist/regen/rpc.tx.d.ts delete mode 100644 packages/api/dist/regen/rpc.tx.js delete mode 100644 packages/api/dist/tendermint/abci/types.d.ts delete mode 100644 packages/api/dist/tendermint/abci/types.js delete mode 100644 packages/api/dist/tendermint/bundle.d.ts delete mode 100644 packages/api/dist/tendermint/bundle.js delete mode 100644 packages/api/dist/tendermint/crypto/keys.d.ts delete mode 100644 packages/api/dist/tendermint/crypto/keys.js delete mode 100644 packages/api/dist/tendermint/crypto/proof.d.ts delete mode 100644 packages/api/dist/tendermint/crypto/proof.js delete mode 100644 packages/api/dist/tendermint/libs/bits/types.d.ts delete mode 100644 packages/api/dist/tendermint/libs/bits/types.js delete mode 100644 packages/api/dist/tendermint/p2p/types.d.ts delete mode 100644 packages/api/dist/tendermint/p2p/types.js delete mode 100644 packages/api/dist/tendermint/types/block.d.ts delete mode 100644 packages/api/dist/tendermint/types/block.js delete mode 100644 packages/api/dist/tendermint/types/evidence.d.ts delete mode 100644 packages/api/dist/tendermint/types/evidence.js delete mode 100644 packages/api/dist/tendermint/types/params.d.ts delete mode 100644 packages/api/dist/tendermint/types/params.js delete mode 100644 packages/api/dist/tendermint/types/types.d.ts delete mode 100644 packages/api/dist/tendermint/types/types.js delete mode 100644 packages/api/dist/tendermint/types/validator.d.ts delete mode 100644 packages/api/dist/tendermint/types/validator.js delete mode 100644 packages/api/dist/tendermint/version/types.d.ts delete mode 100644 packages/api/dist/tendermint/version/types.js delete mode 100644 packages/api/dist/utf8.d.ts delete mode 100644 packages/api/dist/utf8.js delete mode 100644 packages/api/dist/varint.d.ts delete mode 100644 packages/api/dist/varint.js diff --git a/.gitignore b/.gitignore index fe006a6b..5d2356a6 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,6 @@ node_modules/ .env.development.local .env.test.local .env.production.local + +# Build +**/dist \ No newline at end of file diff --git a/packages/api/dist/LICENSE b/packages/api/dist/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/packages/api/dist/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/api/dist/amino/amino.d.ts b/packages/api/dist/amino/amino.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/amino/amino.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/amino/amino.js b/packages/api/dist/amino/amino.js deleted file mode 100644 index c8ad2e54..00000000 --- a/packages/api/dist/amino/amino.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/amino/bundle.d.ts b/packages/api/dist/amino/bundle.d.ts deleted file mode 100644 index 67f7ba53..00000000 --- a/packages/api/dist/amino/bundle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const amino: {}; diff --git a/packages/api/dist/amino/bundle.js b/packages/api/dist/amino/bundle.js deleted file mode 100644 index 4955d599..00000000 --- a/packages/api/dist/amino/bundle.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.amino = void 0; -//@ts-nocheck -const _0 = __importStar(require("./amino")); -exports.amino = { - ..._0 -}; diff --git a/packages/api/dist/binary.d.ts b/packages/api/dist/binary.d.ts deleted file mode 100644 index 2bc75687..00000000 --- a/packages/api/dist/binary.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -export declare enum WireType { - Varint = 0, - Fixed64 = 1, - Bytes = 2, - Fixed32 = 5 -} -export interface IBinaryReader { - buf: Uint8Array; - pos: number; - type: number; - len: number; - tag(): [number, WireType, number]; - skip(length?: number): this; - skipType(wireType: number): this; - uint32(): number; - int32(): number; - sint32(): number; - fixed32(): number; - sfixed32(): number; - int64(): bigint; - uint64(): bigint; - sint64(): bigint; - fixed64(): bigint; - sfixed64(): bigint; - float(): number; - double(): number; - bool(): boolean; - bytes(): Uint8Array; - string(): string; -} -export declare class BinaryReader implements IBinaryReader { - buf: Uint8Array; - pos: number; - type: number; - len: number; - assertBounds(): void; - constructor(buf?: ArrayLike); - tag(): [number, WireType, number]; - skip(length?: number): this; - skipType(wireType: number): this; - uint32(): number; - int32(): number; - sint32(): number; - fixed32(): number; - sfixed32(): number; - int64(): bigint; - uint64(): bigint; - sint64(): bigint; - fixed64(): bigint; - sfixed64(): bigint; - float(): number; - double(): number; - bool(): boolean; - bytes(): Uint8Array; - string(): string; -} -export interface IBinaryWriter { - len: number; - head: IOp; - tail: IOp; - states: State | null; - finish(): Uint8Array; - fork(): IBinaryWriter; - reset(): IBinaryWriter; - ldelim(): IBinaryWriter; - tag(fieldNo: number, type: WireType): IBinaryWriter; - uint32(value: number): IBinaryWriter; - int32(value: number): IBinaryWriter; - sint32(value: number): IBinaryWriter; - int64(value: string | number | bigint): IBinaryWriter; - uint64: (value: string | number | bigint) => IBinaryWriter; - sint64(value: string | number | bigint): IBinaryWriter; - fixed64(value: string | number | bigint): IBinaryWriter; - sfixed64: (value: string | number | bigint) => IBinaryWriter; - bool(value: boolean): IBinaryWriter; - fixed32(value: number): IBinaryWriter; - sfixed32: (value: number) => IBinaryWriter; - float(value: number): IBinaryWriter; - double(value: number): IBinaryWriter; - bytes(value: Uint8Array): IBinaryWriter; - string(value: string): IBinaryWriter; -} -interface IOp { - len: number; - next?: IOp; - proceed(buf: Uint8Array | number[], pos: number): void; -} -declare class State { - head: IOp; - tail: IOp; - len: number; - next: State | null; - constructor(writer: BinaryWriter); -} -export declare class BinaryWriter implements IBinaryWriter { - len: number; - head: IOp; - tail: IOp; - states: State | null; - constructor(); - static create(): BinaryWriter; - static alloc(size: number): Uint8Array | number[]; - private _push; - finish(): Uint8Array; - fork(): BinaryWriter; - reset(): BinaryWriter; - ldelim(): BinaryWriter; - tag(fieldNo: number, type: WireType): BinaryWriter; - uint32(value: number): BinaryWriter; - int32(value: number): BinaryWriter; - sint32(value: number): BinaryWriter; - int64(value: string | number | bigint): BinaryWriter; - uint64: (value: string | number | bigint) => BinaryWriter; - sint64(value: string | number | bigint): BinaryWriter; - fixed64(value: string | number | bigint): BinaryWriter; - sfixed64: (value: string | number | bigint) => BinaryWriter; - bool(value: boolean): BinaryWriter; - fixed32(value: number): BinaryWriter; - sfixed32: (value: number) => BinaryWriter; - float(value: number): BinaryWriter; - double(value: number): BinaryWriter; - bytes(value: Uint8Array): BinaryWriter; - string(value: string): BinaryWriter; -} -export {}; diff --git a/packages/api/dist/binary.js b/packages/api/dist/binary.js deleted file mode 100644 index 2c669c91..00000000 --- a/packages/api/dist/binary.js +++ /dev/null @@ -1,371 +0,0 @@ -"use strict"; -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinaryWriter = exports.BinaryReader = exports.WireType = void 0; -// Copyright (c) 2016, Daniel Wirtz All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// --- -// Code generated by the command line utilities is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -const utf8_1 = require("./utf8"); -const varint_1 = require("./varint"); -var WireType; -(function (WireType) { - WireType[WireType["Varint"] = 0] = "Varint"; - WireType[WireType["Fixed64"] = 1] = "Fixed64"; - WireType[WireType["Bytes"] = 2] = "Bytes"; - WireType[WireType["Fixed32"] = 5] = "Fixed32"; -})(WireType || (exports.WireType = WireType = {})); -class BinaryReader { - buf; - pos; - type; - len; - assertBounds() { - if (this.pos > this.len) - throw new RangeError("premature EOF"); - } - constructor(buf) { - this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); - this.pos = 0; - this.type = 0; - this.len = this.buf.length; - } - tag() { - const tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; - if (fieldNo <= 0 || wireType < 0 || wireType > 5) - throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); - return [fieldNo, wireType, tag]; - } - skip(length) { - if (typeof length === "number") { - if (this.pos + length > this.len) - throw indexOutOfRange(this, length); - this.pos += length; - } - else { - do { - if (this.pos >= this.len) - throw indexOutOfRange(this); - } while (this.buf[this.pos++] & 128); - } - return this; - } - skipType(wireType) { - switch (wireType) { - case WireType.Varint: - this.skip(); - break; - case WireType.Fixed64: - this.skip(8); - break; - case WireType.Bytes: - this.skip(this.uint32()); - break; - case 3: - while ((wireType = this.uint32() & 7) !== 4) { - this.skipType(wireType); - } - break; - case WireType.Fixed32: - this.skip(4); - break; - /* istanbul ignore next */ - default: - throw Error("invalid wire type " + wireType + " at offset " + this.pos); - } - return this; - } - uint32() { - return varint_1.varint32read.bind(this)(); - } - int32() { - return this.uint32() | 0; - } - sint32() { - const num = this.uint32(); - return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding - } - fixed32() { - const val = (0, varint_1.readUInt32)(this.buf, this.pos); - this.pos += 4; - return val; - } - sfixed32() { - const val = (0, varint_1.readInt32)(this.buf, this.pos); - this.pos += 4; - return val; - } - int64() { - const [lo, hi] = varint_1.varint64read.bind(this)(); - return BigInt((0, varint_1.int64ToString)(lo, hi)); - } - uint64() { - const [lo, hi] = varint_1.varint64read.bind(this)(); - return BigInt((0, varint_1.uInt64ToString)(lo, hi)); - } - sint64() { - let [lo, hi] = varint_1.varint64read.bind(this)(); - // zig zag - [lo, hi] = (0, varint_1.zzDecode)(lo, hi); - return BigInt((0, varint_1.int64ToString)(lo, hi)); - } - fixed64() { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt((0, varint_1.uInt64ToString)(lo, hi)); - } - sfixed64() { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt((0, varint_1.int64ToString)(lo, hi)); - } - float() { - throw new Error("float not supported"); - } - double() { - throw new Error("double not supported"); - } - bool() { - const [lo, hi] = varint_1.varint64read.bind(this)(); - return lo !== 0 || hi !== 0; - } - bytes() { - const len = this.uint32(), start = this.pos; - this.pos += len; - this.assertBounds(); - return this.buf.subarray(start, start + len); - } - string() { - const bytes = this.bytes(); - return (0, utf8_1.utf8Read)(bytes, 0, bytes.length); - } -} -exports.BinaryReader = BinaryReader; -class Op { - fn; - len; - val; - next; - constructor(fn, len, val) { - this.fn = fn; - this.len = len; - this.val = val; - } - proceed(buf, pos) { - if (this.fn) { - this.fn(this.val, buf, pos); - } - } -} -class State { - head; - tail; - len; - next; - constructor(writer) { - this.head = writer.head; - this.tail = writer.tail; - this.len = writer.len; - this.next = writer.states; - } -} -class BinaryWriter { - len = 0; - head; - tail; - states; - constructor() { - this.head = new Op(null, 0, 0); - this.tail = this.head; - this.states = null; - } - static create() { - return new BinaryWriter(); - } - static alloc(size) { - if (typeof Uint8Array !== "undefined") { - return pool((size) => new Uint8Array(size), Uint8Array.prototype.subarray)(size); - } - else { - return new Array(size); - } - } - _push(fn, len, val) { - this.tail = this.tail.next = new Op(fn, len, val); - this.len += len; - return this; - } - finish() { - let head = this.head.next, pos = 0; - const buf = BinaryWriter.alloc(this.len); - while (head) { - head.proceed(buf, pos); - pos += head.len; - head = head.next; - } - return buf; - } - fork() { - this.states = new State(this); - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - return this; - } - reset() { - if (this.states) { - this.head = this.states.head; - this.tail = this.states.tail; - this.len = this.states.len; - this.states = this.states.next; - } - else { - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - } - return this; - } - ldelim() { - const head = this.head, tail = this.tail, len = this.len; - this.reset().uint32(len); - if (len) { - this.tail.next = head.next; // skip noop - this.tail = tail; - this.len += len; - } - return this; - } - tag(fieldNo, type) { - return this.uint32(((fieldNo << 3) | type) >>> 0); - } - uint32(value) { - this.len += (this.tail = this.tail.next = - new Op(varint_1.writeVarint32, (value = value >>> 0) < 128 - ? 1 - : value < 16384 - ? 2 - : value < 2097152 - ? 3 - : value < 268435456 - ? 4 - : 5, value)).len; - return this; - } - int32(value) { - return value < 0 - ? this._push(varint_1.writeVarint64, 10, (0, varint_1.int64FromString)(value.toString())) // 10 bytes per spec - : this.uint32(value); - } - sint32(value) { - return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); - } - int64(value) { - const { lo, hi } = (0, varint_1.int64FromString)(value.toString()); - return this._push(varint_1.writeVarint64, (0, varint_1.int64Length)(lo, hi), { lo, hi }); - } - // uint64 is the same with int64 - uint64 = BinaryWriter.prototype.int64; - sint64(value) { - let { lo, hi } = (0, varint_1.int64FromString)(value.toString()); - // zig zag - [lo, hi] = (0, varint_1.zzEncode)(lo, hi); - return this._push(varint_1.writeVarint64, (0, varint_1.int64Length)(lo, hi), { lo, hi }); - } - fixed64(value) { - const { lo, hi } = (0, varint_1.int64FromString)(value.toString()); - return this._push(varint_1.writeFixed32, 4, lo)._push(varint_1.writeFixed32, 4, hi); - } - // sfixed64 is the same with fixed64 - sfixed64 = BinaryWriter.prototype.fixed64; - bool(value) { - return this._push(varint_1.writeByte, 1, value ? 1 : 0); - } - fixed32(value) { - return this._push(varint_1.writeFixed32, 4, value >>> 0); - } - // sfixed32 is the same with fixed32 - sfixed32 = BinaryWriter.prototype.fixed32; - float(value) { - throw new Error("float not supported" + value); - } - double(value) { - throw new Error("double not supported" + value); - } - bytes(value) { - const len = value.length >>> 0; - if (!len) - return this._push(varint_1.writeByte, 1, 0); - return this.uint32(len)._push(writeBytes, len, value); - } - string(value) { - const len = (0, utf8_1.utf8Length)(value); - return len - ? this.uint32(len)._push(utf8_1.utf8Write, len, value) - : this._push(varint_1.writeByte, 1, 0); - } -} -exports.BinaryWriter = BinaryWriter; -function writeBytes(val, buf, pos) { - if (typeof Uint8Array !== "undefined") { - buf.set(val, pos); - } - else { - for (let i = 0; i < val.length; ++i) - buf[pos + i] = val[i]; - } -} -function pool(alloc, slice, size) { - const SIZE = size || 8192; - const MAX = SIZE >>> 1; - let slab = null; - let offset = SIZE; - return function pool_alloc(size) { - if (size < 1 || size > MAX) - return alloc(size); - if (offset + size > SIZE) { - slab = alloc(SIZE); - offset = 0; - } - const buf = slice.call(slab, offset, (offset += size)); - if (offset & 7) - // align to 32 bit - offset = (offset | 7) + 1; - return buf; - }; -} -function indexOutOfRange(reader, writeLength) { - return RangeError("index out of range: " + - reader.pos + - " + " + - (writeLength || 1) + - " > " + - reader.len); -} diff --git a/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts b/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts deleted file mode 100644 index 1be132b8..00000000 --- a/packages/api/dist/cosmos/app/module/v1alpha1/module.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface Module { -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.app.module.v1alpha1.Module"; - value: Uint8Array; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleAmino { -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** Module is the module config object for the cosmos.app v1 app module. */ -export interface ModuleSDKType { -} -export declare const Module: { - typeUrl: string; - encode(_: Module, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Module; - fromPartial(_: Partial): Module; - fromAmino(_: ModuleAmino): Module; - toAmino(_: Module): ModuleAmino; - fromAminoMsg(object: ModuleAminoMsg): Module; - toAminoMsg(message: Module): ModuleAminoMsg; - fromProtoMsg(message: ModuleProtoMsg): Module; - toProto(message: Module): Uint8Array; - toProtoMsg(message: Module): ModuleProtoMsg; -}; diff --git a/packages/api/dist/cosmos/app/module/v1alpha1/module.js b/packages/api/dist/cosmos/app/module/v1alpha1/module.js deleted file mode 100644 index c34da8d1..00000000 --- a/packages/api/dist/cosmos/app/module/v1alpha1/module.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Module = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseModule() { - return {}; -} -exports.Module = { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseModule(); - return message; - }, - fromAmino(_) { - const message = createBaseModule(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.Module.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Module", - value: exports.Module.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Module.decode(message.value); - }, - toProto(message) { - return exports.Module.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - value: exports.Module.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/app/v1alpha1/module.d.ts b/packages/api/dist/cosmos/app/v1alpha1/module.d.ts deleted file mode 100644 index 3bd603f9..00000000 --- a/packages/api/dist/cosmos/app/v1alpha1/module.d.ts +++ /dev/null @@ -1,242 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -export interface ModuleDescriptorProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; - value: Uint8Array; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorAmino { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - */ - go_import?: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - use_package?: PackageReferenceAmino[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - can_migrate_from?: MigrateFromInfoAmino[]; -} -export interface ModuleDescriptorAminoMsg { - type: "cosmos-sdk/ModuleDescriptor"; - value: ModuleDescriptorAmino; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -export interface PackageReferenceProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.PackageReference"; - value: Uint8Array; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceAmino { - /** name is the fully-qualified name of the package. */ - name?: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision?: number; -} -export interface PackageReferenceAminoMsg { - type: "cosmos-sdk/PackageReference"; - value: PackageReferenceAmino; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -export interface MigrateFromInfoProtoMsg { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; - value: Uint8Array; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoAmino { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module?: string; -} -export interface MigrateFromInfoAminoMsg { - type: "cosmos-sdk/MigrateFromInfo"; - value: MigrateFromInfoAmino; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} -export declare const ModuleDescriptor: { - typeUrl: string; - encode(message: ModuleDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleDescriptor; - fromPartial(object: Partial): ModuleDescriptor; - fromAmino(object: ModuleDescriptorAmino): ModuleDescriptor; - toAmino(message: ModuleDescriptor): ModuleDescriptorAmino; - fromAminoMsg(object: ModuleDescriptorAminoMsg): ModuleDescriptor; - toAminoMsg(message: ModuleDescriptor): ModuleDescriptorAminoMsg; - fromProtoMsg(message: ModuleDescriptorProtoMsg): ModuleDescriptor; - toProto(message: ModuleDescriptor): Uint8Array; - toProtoMsg(message: ModuleDescriptor): ModuleDescriptorProtoMsg; -}; -export declare const PackageReference: { - typeUrl: string; - encode(message: PackageReference, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PackageReference; - fromPartial(object: Partial): PackageReference; - fromAmino(object: PackageReferenceAmino): PackageReference; - toAmino(message: PackageReference): PackageReferenceAmino; - fromAminoMsg(object: PackageReferenceAminoMsg): PackageReference; - toAminoMsg(message: PackageReference): PackageReferenceAminoMsg; - fromProtoMsg(message: PackageReferenceProtoMsg): PackageReference; - toProto(message: PackageReference): Uint8Array; - toProtoMsg(message: PackageReference): PackageReferenceProtoMsg; -}; -export declare const MigrateFromInfo: { - typeUrl: string; - encode(message: MigrateFromInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MigrateFromInfo; - fromPartial(object: Partial): MigrateFromInfo; - fromAmino(object: MigrateFromInfoAmino): MigrateFromInfo; - toAmino(message: MigrateFromInfo): MigrateFromInfoAmino; - fromAminoMsg(object: MigrateFromInfoAminoMsg): MigrateFromInfo; - toAminoMsg(message: MigrateFromInfo): MigrateFromInfoAminoMsg; - fromProtoMsg(message: MigrateFromInfoProtoMsg): MigrateFromInfo; - toProto(message: MigrateFromInfo): Uint8Array; - toProtoMsg(message: MigrateFromInfo): MigrateFromInfoProtoMsg; -}; diff --git a/packages/api/dist/cosmos/app/v1alpha1/module.js b/packages/api/dist/cosmos/app/v1alpha1/module.js deleted file mode 100644 index 5d905326..00000000 --- a/packages/api/dist/cosmos/app/v1alpha1/module.js +++ /dev/null @@ -1,254 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MigrateFromInfo = exports.PackageReference = exports.ModuleDescriptor = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseModuleDescriptor() { - return { - goImport: "", - usePackage: [], - canMigrateFrom: [] - }; -} -exports.ModuleDescriptor = { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.goImport !== "") { - writer.uint32(10).string(message.goImport); - } - for (const v of message.usePackage) { - exports.PackageReference.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.canMigrateFrom) { - exports.MigrateFromInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.goImport = reader.string(); - break; - case 2: - message.usePackage.push(exports.PackageReference.decode(reader, reader.uint32())); - break; - case 3: - message.canMigrateFrom.push(exports.MigrateFromInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleDescriptor(); - message.goImport = object.goImport ?? ""; - message.usePackage = object.usePackage?.map(e => exports.PackageReference.fromPartial(e)) || []; - message.canMigrateFrom = object.canMigrateFrom?.map(e => exports.MigrateFromInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModuleDescriptor(); - if (object.go_import !== undefined && object.go_import !== null) { - message.goImport = object.go_import; - } - message.usePackage = object.use_package?.map(e => exports.PackageReference.fromAmino(e)) || []; - message.canMigrateFrom = object.can_migrate_from?.map(e => exports.MigrateFromInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.go_import = message.goImport === "" ? undefined : message.goImport; - if (message.usePackage) { - obj.use_package = message.usePackage.map(e => e ? exports.PackageReference.toAmino(e) : undefined); - } - else { - obj.use_package = message.usePackage; - } - if (message.canMigrateFrom) { - obj.can_migrate_from = message.canMigrateFrom.map(e => e ? exports.MigrateFromInfo.toAmino(e) : undefined); - } - else { - obj.can_migrate_from = message.canMigrateFrom; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ModuleDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleDescriptor", - value: exports.ModuleDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModuleDescriptor.decode(message.value); - }, - toProto(message) { - return exports.ModuleDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - value: exports.ModuleDescriptor.encode(message).finish() - }; - } -}; -function createBasePackageReference() { - return { - name: "", - revision: 0 - }; -} -exports.PackageReference = { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.revision !== 0) { - writer.uint32(16).uint32(message.revision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePackageReference(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.revision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePackageReference(); - message.name = object.name ?? ""; - message.revision = object.revision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBasePackageReference(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.revision !== undefined && object.revision !== null) { - message.revision = object.revision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.revision = message.revision === 0 ? undefined : message.revision; - return obj; - }, - fromAminoMsg(object) { - return exports.PackageReference.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PackageReference", - value: exports.PackageReference.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PackageReference.decode(message.value); - }, - toProto(message) { - return exports.PackageReference.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - value: exports.PackageReference.encode(message).finish() - }; - } -}; -function createBaseMigrateFromInfo() { - return { - module: "" - }; -} -exports.MigrateFromInfo = { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMigrateFromInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMigrateFromInfo(); - message.module = object.module ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMigrateFromInfo(); - if (object.module !== undefined && object.module !== null) { - message.module = object.module; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.module = message.module === "" ? undefined : message.module; - return obj; - }, - fromAminoMsg(object) { - return exports.MigrateFromInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MigrateFromInfo", - value: exports.MigrateFromInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MigrateFromInfo.decode(message.value); - }, - toProto(message) { - return exports.MigrateFromInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - value: exports.MigrateFromInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts b/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts deleted file mode 100644 index 4f0fc8d4..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/auth.d.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccount { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pubKey?: Any; - accountNumber: bigint; - sequence: bigint; -} -export interface BaseAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; - value: Uint8Array; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountAmino { - address?: string; - pub_key?: AnyAmino; - account_number?: string; - sequence?: string; -} -export interface BaseAccountAminoMsg { - type: "cosmos-sdk/BaseAccount"; - value: BaseAccountAmino; -} -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - */ -export interface BaseAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.BaseAccount"; - address: string; - pub_key?: AnySDKType; - account_number: bigint; - sequence: bigint; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccount { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - baseAccount?: BaseAccount; - name: string; - permissions: string[]; -} -export interface ModuleAccountProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; - value: Uint8Array; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountAmino { - base_account?: BaseAccountAmino; - name?: string; - permissions?: string[]; -} -export interface ModuleAccountAminoMsg { - type: "cosmos-sdk/ModuleAccount"; - value: ModuleAccountAmino; -} -/** ModuleAccount defines an account for modules that holds coins on a pool. */ -export interface ModuleAccountSDKType { - $typeUrl?: "/cosmos.auth.v1beta1.ModuleAccount"; - base_account?: BaseAccountSDKType; - name: string; - permissions: string[]; -} -/** Params defines the parameters for the auth module. */ -export interface Params { - maxMemoCharacters: bigint; - txSigLimit: bigint; - txSizeCostPerByte: bigint; - sigVerifyCostEd25519: bigint; - sigVerifyCostSecp256k1: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsAmino { - max_memo_characters?: string; - tx_sig_limit?: string; - tx_size_cost_per_byte?: string; - sig_verify_cost_ed25519?: string; - sig_verify_cost_secp256k1?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the auth module. */ -export interface ParamsSDKType { - max_memo_characters: bigint; - tx_sig_limit: bigint; - tx_size_cost_per_byte: bigint; - sig_verify_cost_ed25519: bigint; - sig_verify_cost_secp256k1: bigint; -} -export declare const BaseAccount: { - typeUrl: string; - encode(message: BaseAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BaseAccount; - fromPartial(object: Partial): BaseAccount; - fromAmino(object: BaseAccountAmino): BaseAccount; - toAmino(message: BaseAccount): BaseAccountAmino; - fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount; - toAminoMsg(message: BaseAccount): BaseAccountAminoMsg; - fromProtoMsg(message: BaseAccountProtoMsg): BaseAccount; - toProto(message: BaseAccount): Uint8Array; - toProtoMsg(message: BaseAccount): BaseAccountProtoMsg; -}; -export declare const ModuleAccount: { - typeUrl: string; - encode(message: ModuleAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccount; - fromPartial(object: Partial): ModuleAccount; - fromAmino(object: ModuleAccountAmino): ModuleAccount; - toAmino(message: ModuleAccount): ModuleAccountAmino; - fromAminoMsg(object: ModuleAccountAminoMsg): ModuleAccount; - toAminoMsg(message: ModuleAccount): ModuleAccountAminoMsg; - fromProtoMsg(message: ModuleAccountProtoMsg): ModuleAccount; - toProto(message: ModuleAccount): Uint8Array; - toProtoMsg(message: ModuleAccount): ModuleAccountProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/auth.js b/packages/api/dist/cosmos/auth/v1beta1/auth.js deleted file mode 100644 index 02d3393a..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/auth.js +++ /dev/null @@ -1,326 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Params = exports.ModuleAccount = exports.BaseAccount = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -function createBaseBaseAccount() { - return { - $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - address: "", - pubKey: undefined, - accountNumber: BigInt(0), - sequence: BigInt(0) - }; -} -exports.BaseAccount = { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pubKey !== undefined) { - any_1.Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(32).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pubKey = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.accountNumber = reader.uint64(); - break; - case 4: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBaseAccount(); - message.address = object.address ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? any_1.Any.fromPartial(object.pubKey) : undefined; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBaseAccount(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = any_1.Any.fromAmino(object.pub_key); - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pub_key = message.pubKey ? any_1.Any.toAmino(message.pubKey) : undefined; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BaseAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BaseAccount", - value: exports.BaseAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BaseAccount.decode(message.value); - }, - toProto(message) { - return exports.BaseAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: exports.BaseAccount.encode(message).finish() - }; - } -}; -function createBaseModuleAccount() { - return { - $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - baseAccount: undefined, - name: "", - permissions: [] - }; -} -exports.ModuleAccount = { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseAccount !== undefined) { - exports.BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - for (const v of message.permissions) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = exports.BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.permissions.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? exports.BaseAccount.fromPartial(object.baseAccount) : undefined; - message.name = object.name ?? ""; - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModuleAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = exports.BaseAccount.fromAmino(object.base_account); - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_account = message.baseAccount ? exports.BaseAccount.toAmino(message.baseAccount) : undefined; - obj.name = message.name === "" ? undefined : message.name; - if (message.permissions) { - obj.permissions = message.permissions.map(e => e); - } - else { - obj.permissions = message.permissions; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ModuleAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleAccount", - value: exports.ModuleAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModuleAccount.decode(message.value); - }, - toProto(message) { - return exports.ModuleAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: exports.ModuleAccount.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - maxMemoCharacters: BigInt(0), - txSigLimit: BigInt(0), - txSizeCostPerByte: BigInt(0), - sigVerifyCostEd25519: BigInt(0), - sigVerifyCostSecp256k1: BigInt(0) - }; -} -exports.Params = { - typeUrl: "/cosmos.auth.v1beta1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.maxMemoCharacters !== BigInt(0)) { - writer.uint32(8).uint64(message.maxMemoCharacters); - } - if (message.txSigLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.txSigLimit); - } - if (message.txSizeCostPerByte !== BigInt(0)) { - writer.uint32(24).uint64(message.txSizeCostPerByte); - } - if (message.sigVerifyCostEd25519 !== BigInt(0)) { - writer.uint32(32).uint64(message.sigVerifyCostEd25519); - } - if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { - writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxMemoCharacters = reader.uint64(); - break; - case 2: - message.txSigLimit = reader.uint64(); - break; - case 3: - message.txSizeCostPerByte = reader.uint64(); - break; - case 4: - message.sigVerifyCostEd25519 = reader.uint64(); - break; - case 5: - message.sigVerifyCostSecp256k1 = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); - message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); - message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); - message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); - message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { - message.maxMemoCharacters = BigInt(object.max_memo_characters); - } - if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { - message.txSigLimit = BigInt(object.tx_sig_limit); - } - if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { - message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); - } - if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { - message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); - } - if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { - message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; - obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; - obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; - obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; - obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts deleted file mode 100644 index 43ac6d8a..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/genesis.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./auth"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** accounts are the accounts present at genesis. */ - accounts: Any[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** accounts are the accounts present at genesis. */ - accounts?: AnyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the auth module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - accounts: AnySDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/genesis.js b/packages/api/dist/cosmos/auth/v1beta1/genesis.js deleted file mode 100644 index f99a8efb..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/genesis.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const auth_1 = require("./auth"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - params: auth_1.Params.fromPartial({}), - accounts: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - auth_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.accounts) { - any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = auth_1.Params.decode(reader, reader.uint32()); - break; - case 2: - message.accounts.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? auth_1.Params.fromPartial(object.params) : undefined; - message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = auth_1.Params.fromAmino(object.params); - } - message.accounts = object.accounts?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? auth_1.Params.toAmino(message.params) : undefined; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.d.ts deleted file mode 100644 index d86b7f96..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.d.ts +++ /dev/null @@ -1,776 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Params, ParamsAmino, ParamsSDKType, BaseAccount, BaseAccountProtoMsg, BaseAccountSDKType, ModuleAccount, ModuleAccountProtoMsg, ModuleAccountSDKType } from "./auth"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; - value: Uint8Array; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryAccountsRequest"; - value: QueryAccountsRequestAmino; -} -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponse { - /** accounts are the existing accounts */ - accounts: (BaseAccount | Any)[] | Any[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; - value: Uint8Array; -} -export type QueryAccountsResponseEncoded = Omit & { - /** accounts are the existing accounts */ accounts: (BaseAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseAmino { - /** accounts are the existing accounts */ - accounts?: AnyAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryAccountsResponse"; - value: QueryAccountsResponseAmino; -} -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryAccountsResponseSDKType { - accounts: (BaseAccountSDKType | AnySDKType)[]; - pagination?: PageResponseSDKType; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequest { - /** address defines the address to query for. */ - address: string; -} -export interface QueryAccountRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; - value: Uint8Array; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestAmino { - /** address defines the address to query for. */ - address?: string; -} -export interface QueryAccountRequestAminoMsg { - type: "cosmos-sdk/QueryAccountRequest"; - value: QueryAccountRequestAmino; -} -/** QueryAccountRequest is the request type for the Query/Account RPC method. */ -export interface QueryAccountRequestSDKType { - address: string; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponse { - /** account defines the account of the corresponding address. */ - account?: BaseAccount | Any | undefined; -} -export interface QueryAccountResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; - value: Uint8Array; -} -export type QueryAccountResponseEncoded = Omit & { - /** account defines the account of the corresponding address. */ account?: BaseAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseAmino { - /** account defines the account of the corresponding address. */ - account?: AnyAmino; -} -export interface QueryAccountResponseAminoMsg { - type: "cosmos-sdk/QueryAccountResponse"; - value: QueryAccountResponseAmino; -} -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface QueryAccountResponseSDKType { - account?: BaseAccountSDKType | AnySDKType | undefined; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequest { -} -export interface QueryModuleAccountsRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; - value: Uint8Array; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestAmino { -} -export interface QueryModuleAccountsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsRequest"; - value: QueryModuleAccountsRequestAmino; -} -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsRequestSDKType { -} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponse { - accounts: (ModuleAccount | Any)[] | Any[]; -} -export interface QueryModuleAccountsResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; - value: Uint8Array; -} -export type QueryModuleAccountsResponseEncoded = Omit & { - accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[]; -}; -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseAmino { - accounts?: AnyAmino[]; -} -export interface QueryModuleAccountsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountsResponse"; - value: QueryModuleAccountsResponseAmino; -} -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryModuleAccountsResponseSDKType { - accounts: (ModuleAccountSDKType | AnySDKType)[]; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequest { - name: string; -} -export interface QueryModuleAccountByNameRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; - value: Uint8Array; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestAmino { - name?: string; -} -export interface QueryModuleAccountByNameRequestAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameRequest"; - value: QueryModuleAccountByNameRequestAmino; -} -/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameRequestSDKType { - name: string; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponse { - account?: ModuleAccount | Any | undefined; -} -export interface QueryModuleAccountByNameResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; - value: Uint8Array; -} -export type QueryModuleAccountByNameResponseEncoded = Omit & { - account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined; -}; -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseAmino { - account?: AnyAmino; -} -export interface QueryModuleAccountByNameResponseAminoMsg { - type: "cosmos-sdk/QueryModuleAccountByNameResponse"; - value: QueryModuleAccountByNameResponseAmino; -} -/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ -export interface QueryModuleAccountByNameResponseSDKType { - account?: ModuleAccountSDKType | AnySDKType | undefined; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequest { -} -export interface Bech32PrefixRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; - value: Uint8Array; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestAmino { -} -export interface Bech32PrefixRequestAminoMsg { - type: "cosmos-sdk/Bech32PrefixRequest"; - value: Bech32PrefixRequestAmino; -} -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixRequestSDKType { -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponse { - bech32Prefix: string; -} -export interface Bech32PrefixResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; - value: Uint8Array; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseAmino { - bech32_prefix?: string; -} -export interface Bech32PrefixResponseAminoMsg { - type: "cosmos-sdk/Bech32PrefixResponse"; - value: Bech32PrefixResponseAmino; -} -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface Bech32PrefixResponseSDKType { - bech32_prefix: string; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequest { - addressBytes: Uint8Array; -} -export interface AddressBytesToStringRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; - value: Uint8Array; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestAmino { - address_bytes?: string; -} -export interface AddressBytesToStringRequestAminoMsg { - type: "cosmos-sdk/AddressBytesToStringRequest"; - value: AddressBytesToStringRequestAmino; -} -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringRequestSDKType { - address_bytes: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponse { - addressString: string; -} -export interface AddressBytesToStringResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; - value: Uint8Array; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseAmino { - address_string?: string; -} -export interface AddressBytesToStringResponseAminoMsg { - type: "cosmos-sdk/AddressBytesToStringResponse"; - value: AddressBytesToStringResponseAmino; -} -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressBytesToStringResponseSDKType { - address_string: string; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequest { - addressString: string; -} -export interface AddressStringToBytesRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; - value: Uint8Array; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestAmino { - address_string?: string; -} -export interface AddressStringToBytesRequestAminoMsg { - type: "cosmos-sdk/AddressStringToBytesRequest"; - value: AddressStringToBytesRequestAmino; -} -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesRequestSDKType { - address_string: string; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponse { - addressBytes: Uint8Array; -} -export interface AddressStringToBytesResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; - value: Uint8Array; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseAmino { - address_bytes?: string; -} -export interface AddressStringToBytesResponseAminoMsg { - type: "cosmos-sdk/AddressStringToBytesResponse"; - value: AddressStringToBytesResponseAmino; -} -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - */ -export interface AddressStringToBytesResponseSDKType { - address_bytes: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequest { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id: bigint; -} -export interface QueryAccountAddressByIDRequestProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestAmino { - /** - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - */ - id?: string; -} -export interface QueryAccountAddressByIDRequestAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDRequest"; - value: QueryAccountAddressByIDRequestAmino; -} -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDRequestSDKType { - id: bigint; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponse { - accountAddress: string; -} -export interface QueryAccountAddressByIDResponseProtoMsg { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; - value: Uint8Array; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseAmino { - account_address?: string; -} -export interface QueryAccountAddressByIDResponseAminoMsg { - type: "cosmos-sdk/QueryAccountAddressByIDResponse"; - value: QueryAccountAddressByIDResponseAmino; -} -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - */ -export interface QueryAccountAddressByIDResponseSDKType { - account_address: string; -} -export declare const QueryAccountsRequest: { - typeUrl: string; - encode(message: QueryAccountsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest; - fromPartial(object: Partial): QueryAccountsRequest; - fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest; - toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino; - fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest; - toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg; - fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest; - toProto(message: QueryAccountsRequest): Uint8Array; - toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg; -}; -export declare const QueryAccountsResponse: { - typeUrl: string; - encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; - fromPartial(object: Partial): QueryAccountsResponse; - fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse; - toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino; - fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse; - toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg; - fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse; - toProto(message: QueryAccountsResponse): Uint8Array; - toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg; -}; -export declare const QueryAccountRequest: { - typeUrl: string; - encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; - fromPartial(object: Partial): QueryAccountRequest; - fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest; - toAmino(message: QueryAccountRequest): QueryAccountRequestAmino; - fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest; - toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg; - fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest; - toProto(message: QueryAccountRequest): Uint8Array; - toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg; -}; -export declare const QueryAccountResponse: { - typeUrl: string; - encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; - fromPartial(object: Partial): QueryAccountResponse; - fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse; - toAmino(message: QueryAccountResponse): QueryAccountResponseAmino; - fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse; - toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg; - fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse; - toProto(message: QueryAccountResponse): Uint8Array; - toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryModuleAccountsRequest: { - typeUrl: string; - encode(_: QueryModuleAccountsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest; - fromPartial(_: Partial): QueryModuleAccountsRequest; - fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest; - toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino; - fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest; - toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg; - fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest; - toProto(message: QueryModuleAccountsRequest): Uint8Array; - toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg; -}; -export declare const QueryModuleAccountsResponse: { - typeUrl: string; - encode(message: QueryModuleAccountsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse; - fromPartial(object: Partial): QueryModuleAccountsResponse; - fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse; - toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino; - fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse; - toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg; - fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse; - toProto(message: QueryModuleAccountsResponse): Uint8Array; - toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg; -}; -export declare const QueryModuleAccountByNameRequest: { - typeUrl: string; - encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; - fromPartial(object: Partial): QueryModuleAccountByNameRequest; - fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest; - toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino; - fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest; - toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg; - fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest; - toProto(message: QueryModuleAccountByNameRequest): Uint8Array; - toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg; -}; -export declare const QueryModuleAccountByNameResponse: { - typeUrl: string; - encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; - fromPartial(object: Partial): QueryModuleAccountByNameResponse; - fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse; - toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino; - fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse; - toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg; - fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse; - toProto(message: QueryModuleAccountByNameResponse): Uint8Array; - toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg; -}; -export declare const Bech32PrefixRequest: { - typeUrl: string; - encode(_: Bech32PrefixRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest; - fromPartial(_: Partial): Bech32PrefixRequest; - fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest; - toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino; - fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest; - toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg; - fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest; - toProto(message: Bech32PrefixRequest): Uint8Array; - toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg; -}; -export declare const Bech32PrefixResponse: { - typeUrl: string; - encode(message: Bech32PrefixResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse; - fromPartial(object: Partial): Bech32PrefixResponse; - fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse; - toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino; - fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse; - toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg; - fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse; - toProto(message: Bech32PrefixResponse): Uint8Array; - toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg; -}; -export declare const AddressBytesToStringRequest: { - typeUrl: string; - encode(message: AddressBytesToStringRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest; - fromPartial(object: Partial): AddressBytesToStringRequest; - fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest; - toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino; - fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest; - toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg; - fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest; - toProto(message: AddressBytesToStringRequest): Uint8Array; - toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg; -}; -export declare const AddressBytesToStringResponse: { - typeUrl: string; - encode(message: AddressBytesToStringResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse; - fromPartial(object: Partial): AddressBytesToStringResponse; - fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse; - toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino; - fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse; - toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg; - fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse; - toProto(message: AddressBytesToStringResponse): Uint8Array; - toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg; -}; -export declare const AddressStringToBytesRequest: { - typeUrl: string; - encode(message: AddressStringToBytesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest; - fromPartial(object: Partial): AddressStringToBytesRequest; - fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest; - toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino; - fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest; - toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg; - fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest; - toProto(message: AddressStringToBytesRequest): Uint8Array; - toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg; -}; -export declare const AddressStringToBytesResponse: { - typeUrl: string; - encode(message: AddressStringToBytesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse; - fromPartial(object: Partial): AddressStringToBytesResponse; - fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse; - toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino; - fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse; - toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg; - fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse; - toProto(message: AddressStringToBytesResponse): Uint8Array; - toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg; -}; -export declare const QueryAccountAddressByIDRequest: { - typeUrl: string; - encode(message: QueryAccountAddressByIDRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; - fromPartial(object: Partial): QueryAccountAddressByIDRequest; - fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest; - toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino; - fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest; - toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg; - fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest; - toProto(message: QueryAccountAddressByIDRequest): Uint8Array; - toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg; -}; -export declare const QueryAccountAddressByIDResponse: { - typeUrl: string; - encode(message: QueryAccountAddressByIDResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; - fromPartial(object: Partial): QueryAccountAddressByIDResponse; - fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse; - toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino; - fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse; - toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg; - fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse; - toProto(message: QueryAccountAddressByIDResponse): Uint8Array; - toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg; -}; -export declare const AccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BaseAccount | Any; -export declare const AccountI_FromAmino: (content: AnyAmino) => Any; -export declare const AccountI_ToAmino: (content: Any) => AnyAmino; -export declare const ModuleAccountI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ModuleAccount | Any; -export declare const ModuleAccountI_FromAmino: (content: AnyAmino) => Any; -export declare const ModuleAccountI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.js b/packages/api/dist/cosmos/auth/v1beta1/query.js deleted file mode 100644 index f65a4081..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.js +++ /dev/null @@ -1,1300 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModuleAccountI_ToAmino = exports.ModuleAccountI_FromAmino = exports.ModuleAccountI_InterfaceDecoder = exports.AccountI_ToAmino = exports.AccountI_FromAmino = exports.AccountI_InterfaceDecoder = exports.QueryAccountAddressByIDResponse = exports.QueryAccountAddressByIDRequest = exports.AddressStringToBytesResponse = exports.AddressStringToBytesRequest = exports.AddressBytesToStringResponse = exports.AddressBytesToStringRequest = exports.Bech32PrefixResponse = exports.Bech32PrefixRequest = exports.QueryModuleAccountByNameResponse = exports.QueryModuleAccountByNameRequest = exports.QueryModuleAccountsResponse = exports.QueryModuleAccountsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAccountResponse = exports.QueryAccountRequest = exports.QueryAccountsResponse = exports.QueryAccountsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const any_1 = require("../../../google/protobuf/any"); -const auth_1 = require("./auth"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseQueryAccountsRequest() { - return { - pagination: undefined - }; -} -exports.QueryAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountsRequest", - value: exports.QueryAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - value: exports.QueryAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountsResponse() { - return { - accounts: [], - pagination: undefined - }; -} -exports.QueryAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.accounts) { - any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => (0, exports.AccountI_FromAmino)(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? (0, exports.AccountI_ToAmino)(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountsResponse", - value: exports.QueryAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - value: exports.QueryAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountRequest() { - return { - address: "" - }; -} -exports.QueryAccountRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountRequest", - value: exports.QueryAccountRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - value: exports.QueryAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountResponse() { - return { - account: undefined - }; -} -exports.QueryAccountResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.account !== undefined) { - any_1.Any.encode(message.account, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = (0, exports.AccountI_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountResponse(); - message.account = object.account !== undefined && object.account !== null ? any_1.Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = (0, exports.AccountI_FromAmino)(object.account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account ? (0, exports.AccountI_ToAmino)(message.account) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountResponse", - value: exports.QueryAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - value: exports.QueryAccountResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: auth_1.Params.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - auth_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = auth_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? auth_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = auth_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? auth_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsRequest() { - return {}; -} -exports.QueryModuleAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountsRequest", - value: exports.QueryModuleAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleAccountsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - value: exports.QueryModuleAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsResponse() { - return { - accounts: [] - }; -} -exports.QueryModuleAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.accounts) { - any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => (0, exports.ModuleAccountI_FromAmino)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? (0, exports.ModuleAccountI_ToAmino)(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountsResponse", - value: exports.QueryModuleAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleAccountsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - value: exports.QueryModuleAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameRequest() { - return { - name: "" - }; -} -exports.QueryModuleAccountByNameRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountByNameRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountByNameRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleAccountByNameRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountByNameRequest", - value: exports.QueryModuleAccountByNameRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleAccountByNameRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleAccountByNameRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - value: exports.QueryModuleAccountByNameRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameResponse() { - return { - account: undefined - }; -} -exports.QueryModuleAccountByNameResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.account !== undefined) { - any_1.Any.encode(message.account, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = (0, exports.ModuleAccountI_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountByNameResponse(); - message.account = object.account !== undefined && object.account !== null ? any_1.Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountByNameResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = (0, exports.ModuleAccountI_FromAmino)(object.account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account ? (0, exports.ModuleAccountI_ToAmino)(message.account) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleAccountByNameResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountByNameResponse", - value: exports.QueryModuleAccountByNameResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleAccountByNameResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleAccountByNameResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - value: exports.QueryModuleAccountByNameResponse.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixRequest() { - return {}; -} -exports.Bech32PrefixRequest = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseBech32PrefixRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseBech32PrefixRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.Bech32PrefixRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Bech32PrefixRequest", - value: exports.Bech32PrefixRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Bech32PrefixRequest.decode(message.value); - }, - toProto(message) { - return exports.Bech32PrefixRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - value: exports.Bech32PrefixRequest.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixResponse() { - return { - bech32Prefix: "" - }; -} -exports.Bech32PrefixResponse = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bech32Prefix !== "") { - writer.uint32(10).string(message.bech32Prefix); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32Prefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBech32PrefixResponse(); - message.bech32Prefix = object.bech32Prefix ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBech32PrefixResponse(); - if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { - message.bech32Prefix = object.bech32_prefix; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; - return obj; - }, - fromAminoMsg(object) { - return exports.Bech32PrefixResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Bech32PrefixResponse", - value: exports.Bech32PrefixResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Bech32PrefixResponse.decode(message.value); - }, - toProto(message) { - return exports.Bech32PrefixResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - value: exports.Bech32PrefixResponse.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringRequest() { - return { - addressBytes: new Uint8Array() - }; -} -exports.AddressBytesToStringRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressBytesToStringRequest(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAddressBytesToStringRequest(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = (0, helpers_1.bytesFromBase64)(object.address_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_bytes = message.addressBytes ? (0, helpers_1.base64FromBytes)(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AddressBytesToStringRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressBytesToStringRequest", - value: exports.AddressBytesToStringRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AddressBytesToStringRequest.decode(message.value); - }, - toProto(message) { - return exports.AddressBytesToStringRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - value: exports.AddressBytesToStringRequest.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringResponse() { - return { - addressString: "" - }; -} -exports.AddressBytesToStringResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressBytesToStringResponse(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAddressBytesToStringResponse(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object) { - return exports.AddressBytesToStringResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressBytesToStringResponse", - value: exports.AddressBytesToStringResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AddressBytesToStringResponse.decode(message.value); - }, - toProto(message) { - return exports.AddressBytesToStringResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - value: exports.AddressBytesToStringResponse.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesRequest() { - return { - addressString: "" - }; -} -exports.AddressStringToBytesRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressStringToBytesRequest(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAddressStringToBytesRequest(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object) { - return exports.AddressStringToBytesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressStringToBytesRequest", - value: exports.AddressStringToBytesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AddressStringToBytesRequest.decode(message.value); - }, - toProto(message) { - return exports.AddressStringToBytesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - value: exports.AddressStringToBytesRequest.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesResponse() { - return { - addressBytes: new Uint8Array() - }; -} -exports.AddressStringToBytesResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressStringToBytesResponse(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAddressStringToBytesResponse(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = (0, helpers_1.bytesFromBase64)(object.address_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_bytes = message.addressBytes ? (0, helpers_1.base64FromBytes)(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AddressStringToBytesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressStringToBytesResponse", - value: exports.AddressStringToBytesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AddressStringToBytesResponse.decode(message.value); - }, - toProto(message) { - return exports.AddressStringToBytesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - value: exports.AddressStringToBytesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDRequest() { - return { - id: BigInt(0) - }; -} -exports.QueryAccountAddressByIDRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).int64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountAddressByIDRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountAddressByIDRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountAddressByIDRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountAddressByIDRequest", - value: exports.QueryAccountAddressByIDRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountAddressByIDRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountAddressByIDRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - value: exports.QueryAccountAddressByIDRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDResponse() { - return { - accountAddress: "" - }; -} -exports.QueryAccountAddressByIDResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.accountAddress !== "") { - writer.uint32(10).string(message.accountAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountAddressByIDResponse(); - message.accountAddress = object.accountAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountAddressByIDResponse(); - if (object.account_address !== undefined && object.account_address !== null) { - message.accountAddress = object.account_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAccountAddressByIDResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountAddressByIDResponse", - value: exports.QueryAccountAddressByIDResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAccountAddressByIDResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAccountAddressByIDResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - value: exports.QueryAccountAddressByIDResponse.encode(message).finish() - }; - } -}; -const AccountI_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return auth_1.BaseAccount.decode(data.value); - default: - return data; - } -}; -exports.AccountI_InterfaceDecoder = AccountI_InterfaceDecoder; -const AccountI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BaseAccount": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: auth_1.BaseAccount.encode(auth_1.BaseAccount.fromPartial(auth_1.BaseAccount.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.AccountI_FromAmino = AccountI_FromAmino; -const AccountI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return { - type: "cosmos-sdk/BaseAccount", - value: auth_1.BaseAccount.toAmino(auth_1.BaseAccount.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.AccountI_ToAmino = AccountI_ToAmino; -const ModuleAccountI_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return auth_1.ModuleAccount.decode(data.value); - default: - return data; - } -}; -exports.ModuleAccountI_InterfaceDecoder = ModuleAccountI_InterfaceDecoder; -const ModuleAccountI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ModuleAccount": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: auth_1.ModuleAccount.encode(auth_1.ModuleAccount.fromPartial(auth_1.ModuleAccount.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.ModuleAccountI_FromAmino = ModuleAccountI_FromAmino; -const ModuleAccountI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return { - type: "cosmos-sdk/ModuleAccount", - value: auth_1.ModuleAccount.toAmino(auth_1.ModuleAccount.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.ModuleAccountI_ToAmino = ModuleAccountI_ToAmino; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts deleted file mode 100644 index edc1c862..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - accounts(params?: QueryAccountsRequest): Promise; - account(params: QueryAccountRequest): Promise; - accountAddressByID(params: QueryAccountAddressByIDRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - moduleAccounts(_params?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(params: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(_params?: Bech32PrefixRequest): Promise; - addressBytesToString(params: AddressBytesToStringRequest): Promise; - addressStringToBytes(params: AddressStringToBytesRequest): Promise; -} diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js b/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js deleted file mode 100644 index c4d52b7c..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.lcd.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - /* Accounts returns all the existing accounts - - Since: cosmos-sdk 0.43 */ - async accounts(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/auth/v1beta1/accounts`; - return await this.req.get(endpoint, options); - } - /* Account returns account details based on address. */ - async account(params) { - const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; - return await this.req.get(endpoint); - } - /* AccountAddressByID returns account address based on account number. - - Since: cosmos-sdk 0.46.2 */ - async accountAddressByID(params) { - const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; - return await this.req.get(endpoint); - } - /* Params queries all parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ModuleAccounts returns all the existing module accounts. - - Since: cosmos-sdk 0.46 */ - async moduleAccounts(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/module_accounts`; - return await this.req.get(endpoint); - } - /* ModuleAccountByName returns the module account info by module name */ - async moduleAccountByName(params) { - const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; - return await this.req.get(endpoint); - } - /* Bech32Prefix queries bech32Prefix - - Since: cosmos-sdk 0.46 */ - async bech32Prefix(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/bech32`; - return await this.req.get(endpoint); - } - /* AddressBytesToString converts Account Address bytes to string - - Since: cosmos-sdk 0.46 */ - async addressBytesToString(params) { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; - return await this.req.get(endpoint); - } - /* AddressStringToBytes converts Address string to bytes - - Since: cosmos-sdk 0.46 */ - async addressStringToBytes(params) { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index b74fda81..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Accounts returns all the existing accounts - * - * Since: cosmos-sdk 0.43 - */ - accounts(request?: QueryAccountsRequest): Promise; - /** Account returns account details based on address. */ - account(request: QueryAccountRequest): Promise; - /** - * AccountAddressByID returns account address based on account number. - * - * Since: cosmos-sdk 0.46.2 - */ - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - /** Params queries all parameters. */ - params(request?: QueryParamsRequest): Promise; - /** - * ModuleAccounts returns all the existing module accounts. - * - * Since: cosmos-sdk 0.46 - */ - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - /** ModuleAccountByName returns the module account info by module name */ - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - /** - * Bech32Prefix queries bech32Prefix - * - * Since: cosmos-sdk 0.46 - */ - bech32Prefix(request?: Bech32PrefixRequest): Promise; - /** - * AddressBytesToString converts Account Address bytes to string - * - * Since: cosmos-sdk 0.46 - */ - addressBytesToString(request: AddressBytesToStringRequest): Promise; - /** - * AddressStringToBytes converts Address string to bytes - * - * Since: cosmos-sdk 0.46 - */ - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - accounts(request?: QueryAccountsRequest): Promise; - account(request: QueryAccountRequest): Promise; - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - params(request?: QueryParamsRequest): Promise; - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: Bech32PrefixRequest): Promise; - addressBytesToString(request: AddressBytesToStringRequest): Promise; - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - accounts(request?: QueryAccountsRequest): Promise; - account(request: QueryAccountRequest): Promise; - accountAddressByID(request: QueryAccountAddressByIDRequest): Promise; - params(request?: QueryParamsRequest): Promise; - moduleAccounts(request?: QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: Bech32PrefixRequest): Promise; - addressBytesToString(request: AddressBytesToStringRequest): Promise; - addressStringToBytes(request: AddressStringToBytesRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js deleted file mode 100644 index 092e8d3b..00000000 --- a/packages/api/dist/cosmos/auth/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - accounts(request = { - pagination: undefined - }) { - const data = query_1.QueryAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); - return promise.then(data => query_1.QueryAccountsResponse.decode(new binary_1.BinaryReader(data))); - } - account(request) { - const data = query_1.QueryAccountRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); - return promise.then(data => query_1.QueryAccountResponse.decode(new binary_1.BinaryReader(data))); - } - accountAddressByID(request) { - const data = query_1.QueryAccountAddressByIDRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); - return promise.then(data => query_1.QueryAccountAddressByIDResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - moduleAccounts(request = {}) { - const data = query_1.QueryModuleAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); - return promise.then(data => query_1.QueryModuleAccountsResponse.decode(new binary_1.BinaryReader(data))); - } - moduleAccountByName(request) { - const data = query_1.QueryModuleAccountByNameRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); - return promise.then(data => query_1.QueryModuleAccountByNameResponse.decode(new binary_1.BinaryReader(data))); - } - bech32Prefix(request = {}) { - const data = query_1.Bech32PrefixRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); - return promise.then(data => query_1.Bech32PrefixResponse.decode(new binary_1.BinaryReader(data))); - } - addressBytesToString(request) { - const data = query_1.AddressBytesToStringRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); - return promise.then(data => query_1.AddressBytesToStringResponse.decode(new binary_1.BinaryReader(data))); - } - addressStringToBytes(request) { - const data = query_1.AddressStringToBytesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); - return promise.then(data => query_1.AddressStringToBytesResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - accounts(request) { - return queryService.accounts(request); - }, - account(request) { - return queryService.account(request); - }, - accountAddressByID(request) { - return queryService.accountAddressByID(request); - }, - params(request) { - return queryService.params(request); - }, - moduleAccounts(request) { - return queryService.moduleAccounts(request); - }, - moduleAccountByName(request) { - return queryService.moduleAccountByName(request); - }, - bech32Prefix(request) { - return queryService.bech32Prefix(request); - }, - addressBytesToString(request) { - return queryService.addressBytesToString(request); - }, - addressStringToBytes(request) { - return queryService.addressStringToBytes(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts b/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts deleted file mode 100644 index 74b62dd1..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/authz.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SendAuthorization, SendAuthorizationProtoMsg, SendAuthorizationSDKType } from "../../bank/v1beta1/authz"; -import { StakeAuthorization, StakeAuthorizationProtoMsg, StakeAuthorizationSDKType } from "../../staking/v1beta1/authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorization { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg: string; -} -export interface GenericAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; - value: Uint8Array; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationAmino { - /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ - msg?: string; -} -export interface GenericAuthorizationAminoMsg { - type: "cosmos-sdk/GenericAuthorization"; - value: GenericAuthorizationAmino; -} -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - */ -export interface GenericAuthorizationSDKType { - $typeUrl?: "/cosmos.authz.v1beta1.GenericAuthorization"; - msg: string; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface Grant { - authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: Date; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantAmino { - authorization?: AnyAmino; - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - */ - expiration?: string; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** - * Grant gives permissions to execute - * the provide method with expiration time. - */ -export interface GrantSDKType { - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: Date; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorization { - granter: string; - grantee: string; - authorization?: GenericAuthorization | SendAuthorization | StakeAuthorization | Any | undefined; - expiration?: Date; -} -export interface GrantAuthorizationProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; - value: Uint8Array; -} -export type GrantAuthorizationEncoded = Omit & { - authorization?: GenericAuthorizationProtoMsg | SendAuthorizationProtoMsg | StakeAuthorizationProtoMsg | AnyProtoMsg | undefined; -}; -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationAmino { - granter?: string; - grantee?: string; - authorization?: AnyAmino; - expiration?: string; -} -export interface GrantAuthorizationAminoMsg { - type: "cosmos-sdk/GrantAuthorization"; - value: GrantAuthorizationAmino; -} -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - */ -export interface GrantAuthorizationSDKType { - granter: string; - grantee: string; - authorization?: GenericAuthorizationSDKType | SendAuthorizationSDKType | StakeAuthorizationSDKType | AnySDKType | undefined; - expiration?: Date; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItem { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msgTypeUrls: string[]; -} -export interface GrantQueueItemProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; - value: Uint8Array; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemAmino { - /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ - msg_type_urls?: string[]; -} -export interface GrantQueueItemAminoMsg { - type: "cosmos-sdk/GrantQueueItem"; - value: GrantQueueItemAmino; -} -/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ -export interface GrantQueueItemSDKType { - msg_type_urls: string[]; -} -export declare const GenericAuthorization: { - typeUrl: string; - encode(message: GenericAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenericAuthorization; - fromPartial(object: Partial): GenericAuthorization; - fromAmino(object: GenericAuthorizationAmino): GenericAuthorization; - toAmino(message: GenericAuthorization): GenericAuthorizationAmino; - fromAminoMsg(object: GenericAuthorizationAminoMsg): GenericAuthorization; - toAminoMsg(message: GenericAuthorization): GenericAuthorizationAminoMsg; - fromProtoMsg(message: GenericAuthorizationProtoMsg): GenericAuthorization; - toProto(message: GenericAuthorization): Uint8Array; - toProtoMsg(message: GenericAuthorization): GenericAuthorizationProtoMsg; -}; -export declare const Grant: { - typeUrl: string; - encode(message: Grant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Grant; - fromPartial(object: Partial): Grant; - fromAmino(object: GrantAmino): Grant; - toAmino(message: Grant): GrantAmino; - fromAminoMsg(object: GrantAminoMsg): Grant; - toAminoMsg(message: Grant): GrantAminoMsg; - fromProtoMsg(message: GrantProtoMsg): Grant; - toProto(message: Grant): Uint8Array; - toProtoMsg(message: Grant): GrantProtoMsg; -}; -export declare const GrantAuthorization: { - typeUrl: string; - encode(message: GrantAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GrantAuthorization; - fromPartial(object: Partial): GrantAuthorization; - fromAmino(object: GrantAuthorizationAmino): GrantAuthorization; - toAmino(message: GrantAuthorization): GrantAuthorizationAmino; - fromAminoMsg(object: GrantAuthorizationAminoMsg): GrantAuthorization; - toAminoMsg(message: GrantAuthorization): GrantAuthorizationAminoMsg; - fromProtoMsg(message: GrantAuthorizationProtoMsg): GrantAuthorization; - toProto(message: GrantAuthorization): Uint8Array; - toProtoMsg(message: GrantAuthorization): GrantAuthorizationProtoMsg; -}; -export declare const GrantQueueItem: { - typeUrl: string; - encode(message: GrantQueueItem, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GrantQueueItem; - fromPartial(object: Partial): GrantQueueItem; - fromAmino(object: GrantQueueItemAmino): GrantQueueItem; - toAmino(message: GrantQueueItem): GrantQueueItemAmino; - fromAminoMsg(object: GrantQueueItemAminoMsg): GrantQueueItem; - toAminoMsg(message: GrantQueueItem): GrantQueueItemAminoMsg; - fromProtoMsg(message: GrantQueueItemProtoMsg): GrantQueueItem; - toProto(message: GrantQueueItem): Uint8Array; - toProtoMsg(message: GrantQueueItem): GrantQueueItemProtoMsg; -}; -export declare const Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => GenericAuthorization | SendAuthorization | StakeAuthorization | Any; -export declare const Authorization_FromAmino: (content: AnyAmino) => Any; -export declare const Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/authz.js b/packages/api/dist/cosmos/authz/v1beta1/authz.js deleted file mode 100644 index e0f49a6d..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/authz.js +++ /dev/null @@ -1,397 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Authorization_ToAmino = exports.Authorization_FromAmino = exports.Authorization_InterfaceDecoder = exports.GrantQueueItem = exports.GrantAuthorization = exports.Grant = exports.GenericAuthorization = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const authz_1 = require("../../bank/v1beta1/authz"); -const authz_2 = require("../../staking/v1beta1/authz"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseGenericAuthorization() { - return { - $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - msg: "" - }; -} -exports.GenericAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msg !== "") { - writer.uint32(10).string(message.msg); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenericAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msg = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenericAuthorization(); - message.msg = object.msg ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseGenericAuthorization(); - if (object.msg !== undefined && object.msg !== null) { - message.msg = object.msg; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg = message.msg === "" ? undefined : message.msg; - return obj; - }, - fromAminoMsg(object) { - return exports.GenericAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenericAuthorization", - value: exports.GenericAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenericAuthorization.decode(message.value); - }, - toProto(message) { - return exports.GenericAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: exports.GenericAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrant() { - return { - authorization: undefined, - expiration: undefined - }; -} -exports.Grant = { - typeUrl: "/cosmos.authz.v1beta1.Grant", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authorization !== undefined) { - any_1.Any.encode(message.authorization, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization = (0, exports.Authorization_InterfaceDecoder)(reader); - break; - case 2: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrant(); - message.authorization = object.authorization !== undefined && object.authorization !== null ? any_1.Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrant(); - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = (0, exports.Authorization_FromAmino)(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authorization = message.authorization ? (0, exports.Authorization_ToAmino)(message.authorization) : undefined; - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Grant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Grant", - value: exports.Grant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Grant.decode(message.value); - }, - toProto(message) { - return exports.Grant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.Grant", - value: exports.Grant.encode(message).finish() - }; - } -}; -function createBaseGrantAuthorization() { - return { - granter: "", - grantee: "", - authorization: undefined, - expiration: undefined - }; -} -exports.GrantAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.authorization !== undefined) { - any_1.Any.encode(message.authorization, writer.uint32(26).fork()).ldelim(); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.authorization = (0, exports.Authorization_InterfaceDecoder)(reader); - break; - case 4: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrantAuthorization(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.authorization = object.authorization !== undefined && object.authorization !== null ? any_1.Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrantAuthorization(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = (0, exports.Authorization_FromAmino)(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.authorization = message.authorization ? (0, exports.Authorization_ToAmino)(message.authorization) : undefined; - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GrantAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GrantAuthorization", - value: exports.GrantAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GrantAuthorization.decode(message.value); - }, - toProto(message) { - return exports.GrantAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - value: exports.GrantAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrantQueueItem() { - return { - msgTypeUrls: [] - }; -} -exports.GrantQueueItem = { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.msgTypeUrls) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantQueueItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrls.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.msgTypeUrls) { - obj.msg_type_urls = message.msgTypeUrls.map(e => e); - } - else { - obj.msg_type_urls = message.msgTypeUrls; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GrantQueueItem.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GrantQueueItem", - value: exports.GrantQueueItem.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GrantQueueItem.decode(message.value); - }, - toProto(message) { - return exports.GrantQueueItem.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - value: exports.GrantQueueItem.encode(message).finish() - }; - } -}; -const Authorization_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return exports.GenericAuthorization.decode(data.value); - case "/cosmos.bank.v1beta1.SendAuthorization": - return authz_1.SendAuthorization.decode(data.value); - case "/cosmos.staking.v1beta1.StakeAuthorization": - return authz_2.StakeAuthorization.decode(data.value); - default: - return data; - } -}; -exports.Authorization_InterfaceDecoder = Authorization_InterfaceDecoder; -const Authorization_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/GenericAuthorization": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: exports.GenericAuthorization.encode(exports.GenericAuthorization.fromPartial(exports.GenericAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/SendAuthorization": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: authz_1.SendAuthorization.encode(authz_1.SendAuthorization.fromPartial(authz_1.SendAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/StakeAuthorization": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: authz_2.StakeAuthorization.encode(authz_2.StakeAuthorization.fromPartial(authz_2.StakeAuthorization.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.Authorization_FromAmino = Authorization_FromAmino; -const Authorization_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return { - type: "cosmos-sdk/GenericAuthorization", - value: exports.GenericAuthorization.toAmino(exports.GenericAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.bank.v1beta1.SendAuthorization": - return { - type: "cosmos-sdk/SendAuthorization", - value: authz_1.SendAuthorization.toAmino(authz_1.SendAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.staking.v1beta1.StakeAuthorization": - return { - type: "cosmos-sdk/StakeAuthorization", - value: authz_2.StakeAuthorization.toAmino(authz_2.StakeAuthorization.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.Authorization_ToAmino = Authorization_ToAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/event.d.ts b/packages/api/dist/cosmos/authz/v1beta1/event.d.ts deleted file mode 100644 index 7e725edf..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/event.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrant { - /** Msg type URL for which an autorization is granted */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventGrant"; - value: Uint8Array; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantAmino { - /** Msg type URL for which an autorization is granted */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventGrantAminoMsg { - type: "cosmos-sdk/EventGrant"; - value: EventGrantAmino; -} -/** EventGrant is emitted on Msg/Grant */ -export interface EventGrantSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevoke { - /** Msg type URL for which an autorization is revoked */ - msgTypeUrl: string; - /** Granter account address */ - granter: string; - /** Grantee account address */ - grantee: string; -} -export interface EventRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke"; - value: Uint8Array; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeAmino { - /** Msg type URL for which an autorization is revoked */ - msg_type_url?: string; - /** Granter account address */ - granter?: string; - /** Grantee account address */ - grantee?: string; -} -export interface EventRevokeAminoMsg { - type: "cosmos-sdk/EventRevoke"; - value: EventRevokeAmino; -} -/** EventRevoke is emitted on Msg/Revoke */ -export interface EventRevokeSDKType { - msg_type_url: string; - granter: string; - grantee: string; -} -export declare const EventGrant: { - typeUrl: string; - encode(message: EventGrant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventGrant; - fromPartial(object: Partial): EventGrant; - fromAmino(object: EventGrantAmino): EventGrant; - toAmino(message: EventGrant): EventGrantAmino; - fromAminoMsg(object: EventGrantAminoMsg): EventGrant; - toAminoMsg(message: EventGrant): EventGrantAminoMsg; - fromProtoMsg(message: EventGrantProtoMsg): EventGrant; - toProto(message: EventGrant): Uint8Array; - toProtoMsg(message: EventGrant): EventGrantProtoMsg; -}; -export declare const EventRevoke: { - typeUrl: string; - encode(message: EventRevoke, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke; - fromPartial(object: Partial): EventRevoke; - fromAmino(object: EventRevokeAmino): EventRevoke; - toAmino(message: EventRevoke): EventRevokeAmino; - fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke; - toAminoMsg(message: EventRevoke): EventRevokeAminoMsg; - fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke; - toProto(message: EventRevoke): Uint8Array; - toProtoMsg(message: EventRevoke): EventRevokeProtoMsg; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/event.js b/packages/api/dist/cosmos/authz/v1beta1/event.js deleted file mode 100644 index 6968b220..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/event.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventRevoke = exports.EventGrant = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseEventGrant() { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -exports.EventGrant = { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventGrant(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventGrant(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return exports.EventGrant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventGrant", - value: exports.EventGrant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventGrant.decode(message.value); - }, - toProto(message) { - return exports.EventGrant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - value: exports.EventGrant.encode(message).finish() - }; - } -}; -function createBaseEventRevoke() { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -exports.EventRevoke = { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRevoke(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRevoke(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return exports.EventRevoke.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventRevoke", - value: exports.EventRevoke.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventRevoke.decode(message.value); - }, - toProto(message) { - return exports.EventRevoke.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - value: exports.EventRevoke.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts deleted file mode 100644 index 151a1f5e..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/genesis.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisState { - authorization: GrantAuthorization[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateAmino { - authorization?: GrantAuthorizationAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the authz module's genesis state. */ -export interface GenesisStateSDKType { - authorization: GrantAuthorizationSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/genesis.js b/packages/api/dist/cosmos/authz/v1beta1/genesis.js deleted file mode 100644 index 4f1bdd50..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/genesis.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const authz_1 = require("./authz"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - authorization: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.authorization) { - authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.authorization) { - obj.authorization = message.authorization.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.authorization = message.authorization; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.d.ts deleted file mode 100644 index 9cb3a425..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.d.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType, GrantAuthorization, GrantAuthorizationAmino, GrantAuthorizationSDKType } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequest { - granter: string; - grantee: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msgTypeUrl: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; - value: Uint8Array; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestAmino { - granter?: string; - grantee?: string; - /** Optional, msg_type_url, when set, will query only grants matching given msg type. */ - msg_type_url?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGrantsRequest"; - value: QueryGrantsRequestAmino; -} -/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ -export interface QueryGrantsRequestSDKType { - granter: string; - grantee: string; - msg_type_url: string; - pagination?: PageRequestSDKType; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponse { - /** authorizations is a list of grants granted for grantee by granter. */ - grants: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; - value: Uint8Array; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseAmino { - /** authorizations is a list of grants granted for grantee by granter. */ - grants?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGrantsResponse"; - value: QueryGrantsResponseAmino; -} -/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */ -export interface QueryGrantsResponseSDKType { - grants: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranterGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; - value: Uint8Array; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranterGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsRequest"; - value: QueryGranterGrantsRequestAmino; -} -/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponse { - /** grants is a list of grants granted by the granter. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranterGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; - value: Uint8Array; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseAmino { - /** grants is a list of grants granted by the granter. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranterGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranterGrantsResponse"; - value: QueryGranterGrantsResponseAmino; -} -/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */ -export interface QueryGranterGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGranteeGrantsRequestProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; - value: Uint8Array; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGranteeGrantsRequestAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsRequest"; - value: QueryGranteeGrantsRequestAmino; -} -/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */ -export interface QueryGranteeGrantsRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponse { - /** grants is a list of grants granted to the grantee. */ - grants: GrantAuthorization[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryGranteeGrantsResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; - value: Uint8Array; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseAmino { - /** grants is a list of grants granted to the grantee. */ - grants?: GrantAuthorizationAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGranteeGrantsResponseAminoMsg { - type: "cosmos-sdk/QueryGranteeGrantsResponse"; - value: QueryGranteeGrantsResponseAmino; -} -/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */ -export interface QueryGranteeGrantsResponseSDKType { - grants: GrantAuthorizationSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryGrantsRequest: { - typeUrl: string; - encode(message: QueryGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest; - fromPartial(object: Partial): QueryGrantsRequest; - fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest; - toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino; - fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest; - toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest; - toProto(message: QueryGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg; -}; -export declare const QueryGrantsResponse: { - typeUrl: string; - encode(message: QueryGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse; - fromPartial(object: Partial): QueryGrantsResponse; - fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse; - toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino; - fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse; - toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse; - toProto(message: QueryGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg; -}; -export declare const QueryGranterGrantsRequest: { - typeUrl: string; - encode(message: QueryGranterGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest; - fromPartial(object: Partial): QueryGranterGrantsRequest; - fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest; - toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino; - fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest; - toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest; - toProto(message: QueryGranterGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg; -}; -export declare const QueryGranterGrantsResponse: { - typeUrl: string; - encode(message: QueryGranterGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse; - fromPartial(object: Partial): QueryGranterGrantsResponse; - fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse; - toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino; - fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse; - toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse; - toProto(message: QueryGranterGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg; -}; -export declare const QueryGranteeGrantsRequest: { - typeUrl: string; - encode(message: QueryGranteeGrantsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest; - fromPartial(object: Partial): QueryGranteeGrantsRequest; - fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest; - toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino; - fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest; - toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg; - fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest; - toProto(message: QueryGranteeGrantsRequest): Uint8Array; - toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg; -}; -export declare const QueryGranteeGrantsResponse: { - typeUrl: string; - encode(message: QueryGranteeGrantsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse; - fromPartial(object: Partial): QueryGranteeGrantsResponse; - fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse; - toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino; - fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse; - toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg; - fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse; - toProto(message: QueryGranteeGrantsResponse): Uint8Array; - toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.js b/packages/api/dist/cosmos/authz/v1beta1/query.js deleted file mode 100644 index e13462f6..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.js +++ /dev/null @@ -1,526 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryGranteeGrantsResponse = exports.QueryGranteeGrantsRequest = exports.QueryGranterGrantsResponse = exports.QueryGranterGrantsRequest = exports.QueryGrantsResponse = exports.QueryGrantsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const authz_1 = require("./authz"); -const binary_1 = require("../../../binary"); -function createBaseQueryGrantsRequest() { - return { - granter: "", - grantee: "", - msgTypeUrl: "", - pagination: undefined - }; -} -exports.QueryGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - case 4: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGrantsRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGrantsRequest", - value: exports.QueryGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGrantsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - value: exports.QueryGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -exports.QueryGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.grants) { - authz_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(authz_1.Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? authz_1.Grant.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGrantsResponse", - value: exports.QueryGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGrantsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - value: exports.QueryGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsRequest() { - return { - granter: "", - pagination: undefined - }; -} -exports.QueryGranterGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranterGrantsRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranterGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGranterGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranterGrantsRequest", - value: exports.QueryGranterGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGranterGrantsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGranterGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - value: exports.QueryGranterGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -exports.QueryGranterGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.grants) { - authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGranterGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranterGrantsResponse", - value: exports.QueryGranterGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGranterGrantsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGranterGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - value: exports.QueryGranterGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsRequest() { - return { - grantee: "", - pagination: undefined - }; -} -exports.QueryGranteeGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranteeGrantsRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranteeGrantsRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGranteeGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranteeGrantsRequest", - value: exports.QueryGranteeGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGranteeGrantsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGranteeGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - value: exports.QueryGranteeGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -exports.QueryGranteeGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.grants) { - authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => authz_1.GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? authz_1.GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGranteeGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranteeGrantsResponse", - value: exports.QueryGranteeGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGranteeGrantsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGranteeGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - value: exports.QueryGranteeGrantsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts deleted file mode 100644 index 9bcb87c9..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - grants(params: QueryGrantsRequest): Promise; - granterGrants(params: QueryGranterGrantsRequest): Promise; - granteeGrants(params: QueryGranteeGrantsRequest): Promise; -} diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js b/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js deleted file mode 100644 index cc5e0664..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.lcd.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - /* Returns list of `Authorization`, granted to the grantee by the granter. */ - async grants(params) { - const options = { - params: {} - }; - if (typeof params?.granter !== "undefined") { - options.params.granter = params.granter; - } - if (typeof params?.grantee !== "undefined") { - options.params.grantee = params.grantee; - } - if (typeof params?.msgTypeUrl !== "undefined") { - options.params.msg_type_url = params.msgTypeUrl; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants`; - return await this.req.get(endpoint, options); - } - /* GranterGrants returns list of `GrantAuthorization`, granted by granter. - - Since: cosmos-sdk 0.46 */ - async granterGrants(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; - return await this.req.get(endpoint, options); - } - /* GranteeGrants returns a list of `GrantAuthorization` by grantee. - - Since: cosmos-sdk 0.46 */ - async granteeGrants(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; - return await this.req.get(endpoint, options); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index d7f1381d..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Returns list of `Authorization`, granted to the grantee by the granter. */ - grants(request: QueryGrantsRequest): Promise; - /** - * GranterGrants returns list of `GrantAuthorization`, granted by granter. - * - * Since: cosmos-sdk 0.46 - */ - granterGrants(request: QueryGranterGrantsRequest): Promise; - /** - * GranteeGrants returns a list of `GrantAuthorization` by grantee. - * - * Since: cosmos-sdk 0.46 - */ - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - grants(request: QueryGrantsRequest): Promise; - granterGrants(request: QueryGranterGrantsRequest): Promise; - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - grants(request: QueryGrantsRequest): Promise; - granterGrants(request: QueryGranterGrantsRequest): Promise; - granteeGrants(request: QueryGranteeGrantsRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js deleted file mode 100644 index 67a81636..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - grants(request) { - const data = query_1.QueryGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); - return promise.then(data => query_1.QueryGrantsResponse.decode(new binary_1.BinaryReader(data))); - } - granterGrants(request) { - const data = query_1.QueryGranterGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); - return promise.then(data => query_1.QueryGranterGrantsResponse.decode(new binary_1.BinaryReader(data))); - } - granteeGrants(request) { - const data = query_1.QueryGranteeGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); - return promise.then(data => query_1.QueryGranteeGrantsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - grants(request) { - return queryService.grants(request); - }, - granterGrants(request) { - return queryService.granterGrants(request); - }, - granteeGrants(request) { - return queryService.granteeGrants(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts deleted file mode 100644 index 6f44ab84..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export declare const AminoConverter: { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: MsgGrant) => import("./tx").MsgGrantAmino; - fromAmino: (object: import("./tx").MsgGrantAmino) => MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; - fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: MsgRevoke) => import("./tx").MsgRevokeAmino; - fromAmino: (object: import("./tx").MsgRevokeAmino) => MsgRevoke; - }; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js b/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js deleted file mode 100644 index 989cb26a..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.amino.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: "cosmos-sdk/MsgGrant", - toAmino: tx_1.MsgGrant.toAmino, - fromAmino: tx_1.MsgGrant.fromAmino - }, - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: "cosmos-sdk/MsgExec", - toAmino: tx_1.MsgExec.toAmino, - fromAmino: tx_1.MsgExec.fromAmino - }, - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: "cosmos-sdk/MsgRevoke", - toAmino: tx_1.MsgRevoke.toAmino, - fromAmino: tx_1.MsgRevoke.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts deleted file mode 100644 index 780be4c1..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.d.ts +++ /dev/null @@ -1,264 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./authz"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrant { - granter: string; - grantee: string; - grant: Grant; -} -export interface MsgGrantProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; - value: Uint8Array; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantAmino { - granter?: string; - grantee?: string; - grant?: GrantAmino; -} -export interface MsgGrantAminoMsg { - type: "cosmos-sdk/MsgGrant"; - value: MsgGrantAmino; -} -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - */ -export interface MsgGrantSDKType { - granter: string; - grantee: string; - grant: GrantSDKType; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponse { - results: Uint8Array[]; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseAmino { - results?: string[]; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ -export interface MsgExecResponseSDKType { - results: Uint8Array[]; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExec { - grantee: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (Any)[] | Any[]; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgExec"; - value: Uint8Array; -} -export type MsgExecEncoded = Omit & { - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs: (AnyProtoMsg)[]; -}; -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecAmino { - grantee?: string; - /** - * Authorization Msg requests to execute. Each msg must implement Authorization interface - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - */ - msgs?: AnyAmino[]; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/MsgExec"; - value: MsgExecAmino; -} -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ -export interface MsgExecSDKType { - grantee: string; - msgs: (AnySDKType)[]; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponse { -} -export interface MsgGrantResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; - value: Uint8Array; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseAmino { -} -export interface MsgGrantResponseAminoMsg { - type: "cosmos-sdk/MsgGrantResponse"; - value: MsgGrantResponseAmino; -} -/** MsgGrantResponse defines the Msg/MsgGrant response type. */ -export interface MsgGrantResponseSDKType { -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevoke { - granter: string; - grantee: string; - msgTypeUrl: string; -} -export interface MsgRevokeProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; - value: Uint8Array; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeAmino { - granter?: string; - grantee?: string; - msg_type_url?: string; -} -export interface MsgRevokeAminoMsg { - type: "cosmos-sdk/MsgRevoke"; - value: MsgRevokeAmino; -} -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - */ -export interface MsgRevokeSDKType { - granter: string; - grantee: string; - msg_type_url: string; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponse { -} -export interface MsgRevokeResponseProtoMsg { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; - value: Uint8Array; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseAmino { -} -export interface MsgRevokeResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeResponse"; - value: MsgRevokeResponseAmino; -} -/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ -export interface MsgRevokeResponseSDKType { -} -export declare const MsgGrant: { - typeUrl: string; - encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; - fromPartial(object: Partial): MsgGrant; - fromAmino(object: MsgGrantAmino): MsgGrant; - toAmino(message: MsgGrant): MsgGrantAmino; - fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant; - toAminoMsg(message: MsgGrant): MsgGrantAminoMsg; - fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant; - toProto(message: MsgGrant): Uint8Array; - toProtoMsg(message: MsgGrant): MsgGrantProtoMsg; -}; -export declare const MsgExecResponse: { - typeUrl: string; - encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; - fromPartial(object: Partial): MsgExecResponse; - fromAmino(object: MsgExecResponseAmino): MsgExecResponse; - toAmino(message: MsgExecResponse): MsgExecResponseAmino; - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; - toProto(message: MsgExecResponse): Uint8Array; - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; -}; -export declare const MsgExec: { - typeUrl: string; - encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; - fromPartial(object: Partial): MsgExec; - fromAmino(object: MsgExecAmino): MsgExec; - toAmino(message: MsgExec): MsgExecAmino; - fromAminoMsg(object: MsgExecAminoMsg): MsgExec; - toAminoMsg(message: MsgExec): MsgExecAminoMsg; - fromProtoMsg(message: MsgExecProtoMsg): MsgExec; - toProto(message: MsgExec): Uint8Array; - toProtoMsg(message: MsgExec): MsgExecProtoMsg; -}; -export declare const MsgGrantResponse: { - typeUrl: string; - encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; - fromPartial(_: Partial): MsgGrantResponse; - fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse; - toAmino(_: MsgGrantResponse): MsgGrantResponseAmino; - fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse; - toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg; - fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse; - toProto(message: MsgGrantResponse): Uint8Array; - toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg; -}; -export declare const MsgRevoke: { - typeUrl: string; - encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; - fromPartial(object: Partial): MsgRevoke; - fromAmino(object: MsgRevokeAmino): MsgRevoke; - toAmino(message: MsgRevoke): MsgRevokeAmino; - fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke; - toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg; - fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke; - toProto(message: MsgRevoke): Uint8Array; - toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg; -}; -export declare const MsgRevokeResponse: { - typeUrl: string; - encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; - fromPartial(_: Partial): MsgRevokeResponse; - fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse; - toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino; - fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse; - toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg; - fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse; - toProto(message: MsgRevokeResponse): Uint8Array; - toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg; -}; -export declare const Sdk_Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Sdk_Msg_FromAmino: (content: AnyAmino) => Any; -export declare const Sdk_Msg_ToAmino: (content: Any) => AnyAmino; -export declare const Authz_Authorization_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Authz_Authorization_FromAmino: (content: AnyAmino) => Any; -export declare const Authz_Authorization_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.js b/packages/api/dist/cosmos/authz/v1beta1/tx.js deleted file mode 100644 index 659b0ddb..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.js +++ /dev/null @@ -1,496 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Authz_Authorization_ToAmino = exports.Authz_Authorization_FromAmino = exports.Authz_Authorization_InterfaceDecoder = exports.Sdk_Msg_ToAmino = exports.Sdk_Msg_FromAmino = exports.Sdk_Msg_InterfaceDecoder = exports.MsgRevokeResponse = exports.MsgRevoke = exports.MsgGrantResponse = exports.MsgExec = exports.MsgExecResponse = exports.MsgGrant = void 0; -//@ts-nocheck -const authz_1 = require("./authz"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseMsgGrant() { - return { - granter: "", - grantee: "", - grant: authz_1.Grant.fromPartial({}) - }; -} -exports.MsgGrant = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.grant !== undefined) { - authz_1.Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.grant = authz_1.Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.grant = object.grant !== undefined && object.grant !== null ? authz_1.Grant.fromPartial(object.grant) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.grant !== undefined && object.grant !== null) { - message.grant = authz_1.Grant.fromAmino(object.grant); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.grant = message.grant ? authz_1.Grant.toAmino(message.grant) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgGrant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrant", - value: exports.MsgGrant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgGrant.decode(message.value); - }, - toProto(message) { - return exports.MsgGrant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: exports.MsgGrant.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse() { - return { - results: [] - }; -} -exports.MsgExecResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.results) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.results.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.results) { - obj.results = message.results.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.results = message.results; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExecResponse", - value: exports.MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExecResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - value: exports.MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec() { - return { - grantee: "", - msgs: [] - }; -} -exports.MsgExec = { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - for (const v of message.msgs) { - any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.msgs.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExec(); - message.grantee = object.grantee ?? ""; - message.msgs = object.msgs?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExec(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino(e) : undefined); - } - else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExec", - value: exports.MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExec.decode(message.value); - }, - toProto(message) { - return exports.MsgExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: exports.MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgGrantResponse() { - return {}; -} -exports.MsgGrantResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgGrantResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgGrantResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgGrantResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantResponse", - value: exports.MsgGrantResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgGrantResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgGrantResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - value: exports.MsgGrantResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevoke() { - return { - granter: "", - grantee: "", - msgTypeUrl: "" - }; -} -exports.MsgRevoke = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRevoke(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRevoke(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRevoke.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevoke", - value: exports.MsgRevoke.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRevoke.decode(message.value); - }, - toProto(message) { - return exports.MsgRevoke.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: exports.MsgRevoke.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeResponse() { - return {}; -} -exports.MsgRevokeResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRevokeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRevokeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRevokeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeResponse", - value: exports.MsgRevokeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRevokeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRevokeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - value: exports.MsgRevokeResponse.encode(message).finish() - }; - } -}; -const Sdk_Msg_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -exports.Sdk_Msg_InterfaceDecoder = Sdk_Msg_InterfaceDecoder; -const Sdk_Msg_FromAmino = (content) => { - return any_1.Any.fromAmino(content); -}; -exports.Sdk_Msg_FromAmino = Sdk_Msg_FromAmino; -const Sdk_Msg_ToAmino = (content) => { - return any_1.Any.toAmino(content); -}; -exports.Sdk_Msg_ToAmino = Sdk_Msg_ToAmino; -const Authz_Authorization_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -exports.Authz_Authorization_InterfaceDecoder = Authz_Authorization_InterfaceDecoder; -const Authz_Authorization_FromAmino = (content) => { - return any_1.Any.fromAmino(content); -}; -exports.Authz_Authorization_FromAmino = Authz_Authorization_FromAmino; -const Authz_Authorization_ToAmino = (content) => { - return any_1.Any.toAmino(content); -}; -exports.Authz_Authorization_ToAmino = Authz_Authorization_ToAmino; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts deleted file mode 100644 index 89f1ec22..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - grant(value: MsgGrant): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grant(value: MsgGrant): { - typeUrl: string; - value: MsgGrant; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: MsgRevoke; - }; - }; - fromPartial: { - grant(value: MsgGrant): { - typeUrl: string; - value: MsgGrant; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - revoke(value: MsgRevoke): { - typeUrl: string; - value: MsgRevoke; - }; - }; -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js b/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js deleted file mode 100644 index 14757f7f..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.registry.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.authz.v1beta1.MsgGrant", tx_1.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", tx_1.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", tx_1.MsgRevoke]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: tx_1.MsgGrant.encode(value).finish() - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: tx_1.MsgExec.encode(value).finish() - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: tx_1.MsgRevoke.encode(value).finish() - }; - } - }, - withTypeUrl: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value - }; - } - }, - fromPartial: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: tx_1.MsgGrant.fromPartial(value) - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: tx_1.MsgExec.fromPartial(value) - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: tx_1.MsgRevoke.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 3bcce35a..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; -/** Msg defines the authz Msg service. */ -export interface Msg { - /** - * Grant grants the provided authorization to the grantee on the granter's - * account with the provided expiration time. If there is already a grant - * for the given (granter, grantee, Authorization) triple, then the grant - * will be overwritten. - */ - grant(request: MsgGrant): Promise; - /** - * Exec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - */ - exec(request: MsgExec): Promise; - /** - * Revoke revokes any authorization corresponding to the provided method name on the - * granter's account that has been granted to the grantee. - */ - revoke(request: MsgRevoke): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - grant(request: MsgGrant): Promise; - exec(request: MsgExec): Promise; - revoke(request: MsgRevoke): Promise; -} diff --git a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 6201b242..00000000 --- a/packages/api/dist/cosmos/authz/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grant = this.grant.bind(this); - this.exec = this.exec.bind(this); - this.revoke = this.revoke.bind(this); - } - grant(request) { - const data = tx_1.MsgGrant.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); - return promise.then(data => tx_1.MsgGrantResponse.decode(new binary_1.BinaryReader(data))); - } - exec(request) { - const data = tx_1.MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); - return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data))); - } - revoke(request) { - const data = tx_1.MsgRevoke.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); - return promise.then(data => tx_1.MsgRevokeResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts b/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts deleted file mode 100644 index 57c74f21..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/authz.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorization { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spendLimit: Coin[]; -} -export interface SendAuthorizationProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; - value: Uint8Array; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationAmino { - spend_limit?: CoinAmino[]; -} -export interface SendAuthorizationAminoMsg { - type: "cosmos-sdk/SendAuthorization"; - value: SendAuthorizationAmino; -} -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - */ -export interface SendAuthorizationSDKType { - $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization"; - spend_limit: CoinSDKType[]; -} -export declare const SendAuthorization: { - typeUrl: string; - encode(message: SendAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization; - fromPartial(object: Partial): SendAuthorization; - fromAmino(object: SendAuthorizationAmino): SendAuthorization; - toAmino(message: SendAuthorization): SendAuthorizationAmino; - fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization; - toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg; - fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization; - toProto(message: SendAuthorization): Uint8Array; - toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/authz.js b/packages/api/dist/cosmos/bank/v1beta1/authz.js deleted file mode 100644 index afcb844d..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/authz.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SendAuthorization = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseSendAuthorization() { - return { - $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - spendLimit: [] - }; -} -exports.SendAuthorization = { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.spendLimit) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.spend_limit = message.spendLimit; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SendAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SendAuthorization", - value: exports.SendAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SendAuthorization.decode(message.value); - }, - toProto(message) { - return exports.SendAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: exports.SendAuthorization.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts b/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts deleted file mode 100644 index 486263e6..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/bank.d.ts +++ /dev/null @@ -1,390 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Params defines the parameters for the bank module. */ -export interface Params { - sendEnabled: SendEnabled[]; - defaultSendEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsAmino { - send_enabled?: SendEnabledAmino[]; - default_send_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the bank module. */ -export interface ParamsSDKType { - send_enabled: SendEnabledSDKType[]; - default_send_enabled: boolean; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabled { - denom: string; - enabled: boolean; -} -export interface SendEnabledProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; - value: Uint8Array; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledAmino { - denom?: string; - enabled?: boolean; -} -export interface SendEnabledAminoMsg { - type: "cosmos-sdk/SendEnabled"; - value: SendEnabledAmino; -} -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface SendEnabledSDKType { - denom: string; - enabled: boolean; -} -/** Input models transaction input. */ -export interface Input { - address: string; - coins: Coin[]; -} -export interface InputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Input"; - value: Uint8Array; -} -/** Input models transaction input. */ -export interface InputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface InputAminoMsg { - type: "cosmos-sdk/Input"; - value: InputAmino; -} -/** Input models transaction input. */ -export interface InputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** Output models transaction outputs. */ -export interface Output { - address: string; - coins: Coin[]; -} -export interface OutputProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Output"; - value: Uint8Array; -} -/** Output models transaction outputs. */ -export interface OutputAmino { - address?: string; - coins?: CoinAmino[]; -} -export interface OutputAminoMsg { - type: "cosmos-sdk/Output"; - value: OutputAmino; -} -/** Output models transaction outputs. */ -export interface OutputSDKType { - address: string; - coins: CoinSDKType[]; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface Supply { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: Coin[]; -} -export interface SupplyProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Supply"; - value: Uint8Array; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplyAmino { - total?: CoinAmino[]; -} -export interface SupplyAminoMsg { - type: "cosmos-sdk/Supply"; - value: SupplyAmino; -} -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - */ -/** @deprecated */ -export interface SupplySDKType { - $typeUrl?: "/cosmos.bank.v1beta1.Supply"; - total: CoinSDKType[]; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent: number; - /** aliases is a list of string aliases for the given denom */ - aliases: string[]; -} -export interface DenomUnitProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; - value: Uint8Array; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitAmino { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; -} -export interface DenomUnitAminoMsg { - type: "cosmos-sdk/DenomUnit"; - value: DenomUnitAmino; -} -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface DenomUnitSDKType { - denom: string; - exponent: number; - aliases: string[]; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface Metadata { - description: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denomUnits: DenomUnit[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uriHash: string; -} -export interface MetadataProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Metadata"; - value: Uint8Array; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataAmino { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: DenomUnitAmino[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - */ - name?: string; - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - */ - symbol?: string; - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri?: string; - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - */ - uri_hash?: string; -} -export interface MetadataAminoMsg { - type: "cosmos-sdk/Metadata"; - value: MetadataAmino; -} -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface MetadataSDKType { - description: string; - denom_units: DenomUnitSDKType[]; - base: string; - display: string; - name: string; - symbol: string; - uri: string; - uri_hash: string; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const SendEnabled: { - typeUrl: string; - encode(message: SendEnabled, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled; - fromPartial(object: Partial): SendEnabled; - fromAmino(object: SendEnabledAmino): SendEnabled; - toAmino(message: SendEnabled): SendEnabledAmino; - fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled; - toAminoMsg(message: SendEnabled): SendEnabledAminoMsg; - fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled; - toProto(message: SendEnabled): Uint8Array; - toProtoMsg(message: SendEnabled): SendEnabledProtoMsg; -}; -export declare const Input: { - typeUrl: string; - encode(message: Input, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Input; - fromPartial(object: Partial): Input; - fromAmino(object: InputAmino): Input; - toAmino(message: Input): InputAmino; - fromAminoMsg(object: InputAminoMsg): Input; - toAminoMsg(message: Input): InputAminoMsg; - fromProtoMsg(message: InputProtoMsg): Input; - toProto(message: Input): Uint8Array; - toProtoMsg(message: Input): InputProtoMsg; -}; -export declare const Output: { - typeUrl: string; - encode(message: Output, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Output; - fromPartial(object: Partial): Output; - fromAmino(object: OutputAmino): Output; - toAmino(message: Output): OutputAmino; - fromAminoMsg(object: OutputAminoMsg): Output; - toAminoMsg(message: Output): OutputAminoMsg; - fromProtoMsg(message: OutputProtoMsg): Output; - toProto(message: Output): Uint8Array; - toProtoMsg(message: Output): OutputProtoMsg; -}; -export declare const Supply: { - typeUrl: string; - encode(message: Supply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Supply; - fromPartial(object: Partial): Supply; - fromAmino(object: SupplyAmino): Supply; - toAmino(message: Supply): SupplyAmino; - fromAminoMsg(object: SupplyAminoMsg): Supply; - toAminoMsg(message: Supply): SupplyAminoMsg; - fromProtoMsg(message: SupplyProtoMsg): Supply; - toProto(message: Supply): Uint8Array; - toProtoMsg(message: Supply): SupplyProtoMsg; -}; -export declare const DenomUnit: { - typeUrl: string; - encode(message: DenomUnit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit; - fromPartial(object: Partial): DenomUnit; - fromAmino(object: DenomUnitAmino): DenomUnit; - toAmino(message: DenomUnit): DenomUnitAmino; - fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit; - toAminoMsg(message: DenomUnit): DenomUnitAminoMsg; - fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit; - toProto(message: DenomUnit): Uint8Array; - toProtoMsg(message: DenomUnit): DenomUnitProtoMsg; -}; -export declare const Metadata: { - typeUrl: string; - encode(message: Metadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Metadata; - fromPartial(object: Partial): Metadata; - fromAmino(object: MetadataAmino): Metadata; - toAmino(message: Metadata): MetadataAmino; - fromAminoMsg(object: MetadataAminoMsg): Metadata; - toAminoMsg(message: Metadata): MetadataAminoMsg; - fromProtoMsg(message: MetadataProtoMsg): Metadata; - toProto(message: Metadata): Uint8Array; - toProtoMsg(message: Metadata): MetadataProtoMsg; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/bank.js b/packages/api/dist/cosmos/bank/v1beta1/bank.js deleted file mode 100644 index 02a17206..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/bank.js +++ /dev/null @@ -1,664 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Metadata = exports.DenomUnit = exports.Supply = exports.Output = exports.Input = exports.SendEnabled = exports.Params = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseParams() { - return { - sendEnabled: [], - defaultSendEnabled: false - }; -} -exports.Params = { - typeUrl: "/cosmos.bank.v1beta1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.sendEnabled) { - exports.SendEnabled.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultSendEnabled === true) { - writer.uint32(16).bool(message.defaultSendEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled.push(exports.SendEnabled.decode(reader, reader.uint32())); - break; - case 2: - message.defaultSendEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled?.map(e => exports.SendEnabled.fromPartial(e)) || []; - message.defaultSendEnabled = object.defaultSendEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.sendEnabled = object.send_enabled?.map(e => exports.SendEnabled.fromAmino(e)) || []; - if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { - message.defaultSendEnabled = object.default_send_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sendEnabled) { - obj.send_enabled = message.sendEnabled.map(e => e ? exports.SendEnabled.toAmino(e) : undefined); - } - else { - obj.send_enabled = message.sendEnabled; - } - obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; -function createBaseSendEnabled() { - return { - denom: "", - enabled: false - }; -} -exports.SendEnabled = { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendEnabled(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSendEnabled(); - message.denom = object.denom ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSendEnabled(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return exports.SendEnabled.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SendEnabled", - value: exports.SendEnabled.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SendEnabled.decode(message.value); - }, - toProto(message) { - return exports.SendEnabled.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - value: exports.SendEnabled.encode(message).finish() - }; - } -}; -function createBaseInput() { - return { - address: "", - coins: [] - }; -} -exports.Input = { - typeUrl: "/cosmos.bank.v1beta1.Input", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Input.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Input", - value: exports.Input.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Input.decode(message.value); - }, - toProto(message) { - return exports.Input.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Input", - value: exports.Input.encode(message).finish() - }; - } -}; -function createBaseOutput() { - return { - address: "", - coins: [] - }; -} -exports.Output = { - typeUrl: "/cosmos.bank.v1beta1.Output", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOutput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOutput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseOutput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Output.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Output", - value: exports.Output.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Output.decode(message.value); - }, - toProto(message) { - return exports.Output.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Output", - value: exports.Output.encode(message).finish() - }; - } -}; -function createBaseSupply() { - return { - $typeUrl: "/cosmos.bank.v1beta1.Supply", - total: [] - }; -} -exports.Supply = { - typeUrl: "/cosmos.bank.v1beta1.Supply", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.total) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSupply(); - message.total = object.total?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSupply(); - message.total = object.total?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.total) { - obj.total = message.total.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Supply.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Supply", - value: exports.Supply.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Supply.decode(message.value); - }, - toProto(message) { - return exports.Supply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Supply", - value: exports.Supply.encode(message).finish() - }; - } -}; -function createBaseDenomUnit() { - return { - denom: "", - exponent: 0, - aliases: [] - }; -} -exports.DenomUnit = { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.exponent !== 0) { - writer.uint32(16).uint32(message.exponent); - } - for (const v of message.aliases) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomUnit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.exponent = reader.uint32(); - break; - case 3: - message.aliases.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomUnit(); - message.denom = object.denom ?? ""; - message.exponent = object.exponent ?? 0; - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDenomUnit(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - if (message.aliases) { - obj.aliases = message.aliases.map(e => e); - } - else { - obj.aliases = message.aliases; - } - return obj; - }, - fromAminoMsg(object) { - return exports.DenomUnit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomUnit", - value: exports.DenomUnit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DenomUnit.decode(message.value); - }, - toProto(message) { - return exports.DenomUnit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - value: exports.DenomUnit.encode(message).finish() - }; - } -}; -function createBaseMetadata() { - return { - description: "", - denomUnits: [], - base: "", - display: "", - name: "", - symbol: "", - uri: "", - uriHash: "" - }; -} -exports.Metadata = { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.description !== "") { - writer.uint32(10).string(message.description); - } - for (const v of message.denomUnits) { - exports.DenomUnit.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.base !== "") { - writer.uint32(26).string(message.base); - } - if (message.display !== "") { - writer.uint32(34).string(message.display); - } - if (message.name !== "") { - writer.uint32(42).string(message.name); - } - if (message.symbol !== "") { - writer.uint32(50).string(message.symbol); - } - if (message.uri !== "") { - writer.uint32(58).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(66).string(message.uriHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = reader.string(); - break; - case 2: - message.denomUnits.push(exports.DenomUnit.decode(reader, reader.uint32())); - break; - case 3: - message.base = reader.string(); - break; - case 4: - message.display = reader.string(); - break; - case 5: - message.name = reader.string(); - break; - case 6: - message.symbol = reader.string(); - break; - case 7: - message.uri = reader.string(); - break; - case 8: - message.uriHash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMetadata(); - message.description = object.description ?? ""; - message.denomUnits = object.denomUnits?.map(e => exports.DenomUnit.fromPartial(e)) || []; - message.base = object.base ?? ""; - message.display = object.display ?? ""; - message.name = object.name ?? ""; - message.symbol = object.symbol ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMetadata(); - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.denomUnits = object.denom_units?.map(e => exports.DenomUnit.fromAmino(e)) || []; - if (object.base !== undefined && object.base !== null) { - message.base = object.base; - } - if (object.display !== undefined && object.display !== null) { - message.display = object.display; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.symbol !== undefined && object.symbol !== null) { - message.symbol = object.symbol; - } - if (object.uri !== undefined && object.uri !== null) { - message.uri = object.uri; - } - if (object.uri_hash !== undefined && object.uri_hash !== null) { - message.uriHash = object.uri_hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description === "" ? undefined : message.description; - if (message.denomUnits) { - obj.denom_units = message.denomUnits.map(e => e ? exports.DenomUnit.toAmino(e) : undefined); - } - else { - obj.denom_units = message.denomUnits; - } - obj.base = message.base === "" ? undefined : message.base; - obj.display = message.display === "" ? undefined : message.display; - obj.name = message.name === "" ? undefined : message.name; - obj.symbol = message.symbol === "" ? undefined : message.symbol; - obj.uri = message.uri === "" ? undefined : message.uri; - obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; - return obj; - }, - fromAminoMsg(object) { - return exports.Metadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Metadata", - value: exports.Metadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Metadata.decode(message.value); - }, - toProto(message) { - return exports.Metadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - value: exports.Metadata.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts deleted file mode 100644 index 4e37ee81..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/genesis.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** balances is an array containing the balances of all the accounts. */ - balances: Balance[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply: Coin[]; - /** denom_metadata defines the metadata of the differents coins. */ - denomMetadata: Metadata[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** balances is an array containing the balances of all the accounts. */ - balances?: BalanceAmino[]; - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - */ - supply?: CoinAmino[]; - /** denom_metadata defines the metadata of the differents coins. */ - denom_metadata?: MetadataAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the bank module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - balances: BalanceSDKType[]; - supply: CoinSDKType[]; - denom_metadata: MetadataSDKType[]; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface Balance { - /** address is the address of the balance holder. */ - address: string; - /** coins defines the different coins this balance holds. */ - coins: Coin[]; -} -export interface BalanceProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.Balance"; - value: Uint8Array; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceAmino { - /** address is the address of the balance holder. */ - address?: string; - /** coins defines the different coins this balance holds. */ - coins?: CoinAmino[]; -} -export interface BalanceAminoMsg { - type: "cosmos-sdk/Balance"; - value: BalanceAmino; -} -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - */ -export interface BalanceSDKType { - address: string; - coins: CoinSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const Balance: { - typeUrl: string; - encode(message: Balance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Balance; - fromPartial(object: Partial): Balance; - fromAmino(object: BalanceAmino): Balance; - toAmino(message: Balance): BalanceAmino; - fromAminoMsg(object: BalanceAminoMsg): Balance; - toAminoMsg(message: Balance): BalanceAminoMsg; - fromProtoMsg(message: BalanceProtoMsg): Balance; - toProto(message: Balance): Uint8Array; - toProtoMsg(message: Balance): BalanceProtoMsg; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/genesis.js b/packages/api/dist/cosmos/bank/v1beta1/genesis.js deleted file mode 100644 index d5ca9ae9..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/genesis.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Balance = exports.GenesisState = void 0; -//@ts-nocheck -const bank_1 = require("./bank"); -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - params: bank_1.Params.fromPartial({}), - balances: [], - supply: [], - denomMetadata: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - bank_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.balances) { - exports.Balance.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.supply) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.denomMetadata) { - bank_1.Metadata.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = bank_1.Params.decode(reader, reader.uint32()); - break; - case 2: - message.balances.push(exports.Balance.decode(reader, reader.uint32())); - break; - case 3: - message.supply.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 4: - message.denomMetadata.push(bank_1.Metadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? bank_1.Params.fromPartial(object.params) : undefined; - message.balances = object.balances?.map(e => exports.Balance.fromPartial(e)) || []; - message.supply = object.supply?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.denomMetadata = object.denomMetadata?.map(e => bank_1.Metadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = bank_1.Params.fromAmino(object.params); - } - message.balances = object.balances?.map(e => exports.Balance.fromAmino(e)) || []; - message.supply = object.supply?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.denomMetadata = object.denom_metadata?.map(e => bank_1.Metadata.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? bank_1.Params.toAmino(message.params) : undefined; - if (message.balances) { - obj.balances = message.balances.map(e => e ? exports.Balance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - if (message.supply) { - obj.supply = message.supply.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.supply = message.supply; - } - if (message.denomMetadata) { - obj.denom_metadata = message.denomMetadata.map(e => e ? bank_1.Metadata.toAmino(e) : undefined); - } - else { - obj.denom_metadata = message.denomMetadata; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance() { - return { - address: "", - coins: [] - }; -} -exports.Balance = { - typeUrl: "/cosmos.bank.v1beta1.Balance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Balance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Balance", - value: exports.Balance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Balance.decode(message.value); - }, - toProto(message) { - return exports.Balance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Balance", - value: exports.Balance.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.d.ts deleted file mode 100644 index f85c6c21..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.d.ts +++ /dev/null @@ -1,843 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Params, ParamsAmino, ParamsSDKType, Metadata, MetadataAmino, MetadataSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequest { - /** address is the address to query balances for. */ - address: string; - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "cosmos-sdk/QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ -export interface QueryBalanceRequestSDKType { - address: string; - denom: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponse { - /** balance is the balance of the coin. */ - balance?: Coin; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the coin. */ - balance?: CoinAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "cosmos-sdk/QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface QueryBalanceResponseSDKType { - balance?: CoinSDKType; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequest { - /** address is the address to query balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestAmino { - /** address is the address to query balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ -export interface QueryAllBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponse { - /** balances is the balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseAmino { - /** balances is the balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface QueryAllBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequest { - /** address is the address to query spendable balances for. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySpendableBalancesRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestAmino { - /** address is the address to query spendable balances for. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySpendableBalancesRequestAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesRequest"; - value: QuerySpendableBalancesRequestAmino; -} -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponse { - /** balances is the spendable balances of all the coins. */ - balances: Coin[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySpendableBalancesResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; - value: Uint8Array; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseAmino { - /** balances is the spendable balances of all the coins. */ - balances?: CoinAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySpendableBalancesResponseAminoMsg { - type: "cosmos-sdk/QuerySpendableBalancesResponse"; - value: QuerySpendableBalancesResponseAmino; -} -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySpendableBalancesResponseSDKType { - balances: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequest { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequest; -} -export interface QueryTotalSupplyRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; - value: Uint8Array; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestAmino { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageRequestAmino; -} -export interface QueryTotalSupplyRequestAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyRequest"; - value: QueryTotalSupplyRequestAmino; -} -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - */ -export interface QueryTotalSupplyRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponse { - /** supply is the supply of the coins */ - supply: Coin[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponse; -} -export interface QueryTotalSupplyResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; - value: Uint8Array; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseAmino { - /** supply is the supply of the coins */ - supply?: CoinAmino[]; - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - */ - pagination?: PageResponseAmino; -} -export interface QueryTotalSupplyResponseAminoMsg { - type: "cosmos-sdk/QueryTotalSupplyResponse"; - value: QueryTotalSupplyResponseAmino; -} -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface QueryTotalSupplyResponseSDKType { - supply: CoinSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequest { - /** denom is the coin denom to query balances for. */ - denom: string; -} -export interface QuerySupplyOfRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; - value: Uint8Array; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestAmino { - /** denom is the coin denom to query balances for. */ - denom?: string; -} -export interface QuerySupplyOfRequestAminoMsg { - type: "cosmos-sdk/QuerySupplyOfRequest"; - value: QuerySupplyOfRequestAmino; -} -/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfRequestSDKType { - denom: string; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponse { - /** amount is the supply of the coin. */ - amount: Coin; -} -export interface QuerySupplyOfResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; - value: Uint8Array; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseAmino { - /** amount is the supply of the coin. */ - amount?: CoinAmino; -} -export interface QuerySupplyOfResponseAminoMsg { - type: "cosmos-sdk/QuerySupplyOfResponse"; - value: QuerySupplyOfResponseAmino; -} -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface QuerySupplyOfResponseSDKType { - amount: CoinSDKType; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest defines the request type for querying x/bank parameters. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseAmino { - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomsMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomsMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataRequest"; - value: QueryDenomsMetadataRequestAmino; -} -/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ -export interface QueryDenomsMetadataRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponse { - /** metadata provides the client information for all the registered tokens. */ - metadatas: Metadata[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomsMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseAmino { - /** metadata provides the client information for all the registered tokens. */ - metadatas?: MetadataAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomsMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomsMetadataResponse"; - value: QueryDenomsMetadataResponseAmino; -} -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface QueryDenomsMetadataResponseSDKType { - metadatas: MetadataSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequest { - /** denom is the coin denom to query the metadata for. */ - denom: string; -} -export interface QueryDenomMetadataRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; - value: Uint8Array; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestAmino { - /** denom is the coin denom to query the metadata for. */ - denom?: string; -} -export interface QueryDenomMetadataRequestAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataRequest"; - value: QueryDenomMetadataRequestAmino; -} -/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ -export interface QueryDenomMetadataRequestSDKType { - denom: string; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponse { - /** metadata describes and provides all the client information for the requested token. */ - metadata: Metadata; -} -export interface QueryDenomMetadataResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; - value: Uint8Array; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseAmino { - /** metadata describes and provides all the client information for the requested token. */ - metadata?: MetadataAmino; -} -export interface QueryDenomMetadataResponseAminoMsg { - type: "cosmos-sdk/QueryDenomMetadataResponse"; - value: QueryDenomMetadataResponseAmino; -} -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface QueryDenomMetadataResponseSDKType { - metadata: MetadataSDKType; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequest { - /** denom defines the coin denomination to query all account holders for. */ - denom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomOwnersRequestProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; - value: Uint8Array; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestAmino { - /** denom defines the coin denomination to query all account holders for. */ - denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomOwnersRequestAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersRequest"; - value: QueryDenomOwnersRequestAmino; -} -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - */ -export interface QueryDenomOwnersRequestSDKType { - denom: string; - pagination?: PageRequestSDKType; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwner { - /** address defines the address that owns a particular denomination. */ - address: string; - /** balance is the balance of the denominated coin for an account. */ - balance: Coin; -} -export interface DenomOwnerProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; - value: Uint8Array; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerAmino { - /** address defines the address that owns a particular denomination. */ - address?: string; - /** balance is the balance of the denominated coin for an account. */ - balance?: CoinAmino; -} -export interface DenomOwnerAminoMsg { - type: "cosmos-sdk/DenomOwner"; - value: DenomOwnerAmino; -} -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - */ -export interface DenomOwnerSDKType { - address: string; - balance: CoinSDKType; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponse { - denomOwners: DenomOwner[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomOwnersResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; - value: Uint8Array; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseAmino { - denom_owners?: DenomOwnerAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomOwnersResponseAminoMsg { - type: "cosmos-sdk/QueryDenomOwnersResponse"; - value: QueryDenomOwnersResponseAmino; -} -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryDenomOwnersResponseSDKType { - denom_owners: DenomOwnerSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QueryAllBalancesRequest: { - typeUrl: string; - encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; - fromPartial(object: Partial): QueryAllBalancesRequest; - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; - toAminoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestAminoMsg; - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; - toProto(message: QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; -}; -export declare const QueryAllBalancesResponse: { - typeUrl: string; - encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; - fromPartial(object: Partial): QueryAllBalancesResponse; - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; - toAminoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseAminoMsg; - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; - toProto(message: QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; -}; -export declare const QuerySpendableBalancesRequest: { - typeUrl: string; - encode(message: QuerySpendableBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest; - fromPartial(object: Partial): QuerySpendableBalancesRequest; - fromAmino(object: QuerySpendableBalancesRequestAmino): QuerySpendableBalancesRequest; - toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino; - fromAminoMsg(object: QuerySpendableBalancesRequestAminoMsg): QuerySpendableBalancesRequest; - toAminoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAminoMsg; - fromProtoMsg(message: QuerySpendableBalancesRequestProtoMsg): QuerySpendableBalancesRequest; - toProto(message: QuerySpendableBalancesRequest): Uint8Array; - toProtoMsg(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestProtoMsg; -}; -export declare const QuerySpendableBalancesResponse: { - typeUrl: string; - encode(message: QuerySpendableBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse; - fromPartial(object: Partial): QuerySpendableBalancesResponse; - fromAmino(object: QuerySpendableBalancesResponseAmino): QuerySpendableBalancesResponse; - toAmino(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAmino; - fromAminoMsg(object: QuerySpendableBalancesResponseAminoMsg): QuerySpendableBalancesResponse; - toAminoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseAminoMsg; - fromProtoMsg(message: QuerySpendableBalancesResponseProtoMsg): QuerySpendableBalancesResponse; - toProto(message: QuerySpendableBalancesResponse): Uint8Array; - toProtoMsg(message: QuerySpendableBalancesResponse): QuerySpendableBalancesResponseProtoMsg; -}; -export declare const QueryTotalSupplyRequest: { - typeUrl: string; - encode(message: QueryTotalSupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest; - fromPartial(object: Partial): QueryTotalSupplyRequest; - fromAmino(object: QueryTotalSupplyRequestAmino): QueryTotalSupplyRequest; - toAmino(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAmino; - fromAminoMsg(object: QueryTotalSupplyRequestAminoMsg): QueryTotalSupplyRequest; - toAminoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestAminoMsg; - fromProtoMsg(message: QueryTotalSupplyRequestProtoMsg): QueryTotalSupplyRequest; - toProto(message: QueryTotalSupplyRequest): Uint8Array; - toProtoMsg(message: QueryTotalSupplyRequest): QueryTotalSupplyRequestProtoMsg; -}; -export declare const QueryTotalSupplyResponse: { - typeUrl: string; - encode(message: QueryTotalSupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse; - fromPartial(object: Partial): QueryTotalSupplyResponse; - fromAmino(object: QueryTotalSupplyResponseAmino): QueryTotalSupplyResponse; - toAmino(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAmino; - fromAminoMsg(object: QueryTotalSupplyResponseAminoMsg): QueryTotalSupplyResponse; - toAminoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseAminoMsg; - fromProtoMsg(message: QueryTotalSupplyResponseProtoMsg): QueryTotalSupplyResponse; - toProto(message: QueryTotalSupplyResponse): Uint8Array; - toProtoMsg(message: QueryTotalSupplyResponse): QueryTotalSupplyResponseProtoMsg; -}; -export declare const QuerySupplyOfRequest: { - typeUrl: string; - encode(message: QuerySupplyOfRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest; - fromPartial(object: Partial): QuerySupplyOfRequest; - fromAmino(object: QuerySupplyOfRequestAmino): QuerySupplyOfRequest; - toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino; - fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest; - toAminoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestAminoMsg; - fromProtoMsg(message: QuerySupplyOfRequestProtoMsg): QuerySupplyOfRequest; - toProto(message: QuerySupplyOfRequest): Uint8Array; - toProtoMsg(message: QuerySupplyOfRequest): QuerySupplyOfRequestProtoMsg; -}; -export declare const QuerySupplyOfResponse: { - typeUrl: string; - encode(message: QuerySupplyOfResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse; - fromPartial(object: Partial): QuerySupplyOfResponse; - fromAmino(object: QuerySupplyOfResponseAmino): QuerySupplyOfResponse; - toAmino(message: QuerySupplyOfResponse): QuerySupplyOfResponseAmino; - fromAminoMsg(object: QuerySupplyOfResponseAminoMsg): QuerySupplyOfResponse; - toAminoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseAminoMsg; - fromProtoMsg(message: QuerySupplyOfResponseProtoMsg): QuerySupplyOfResponse; - toProto(message: QuerySupplyOfResponse): Uint8Array; - toProtoMsg(message: QuerySupplyOfResponse): QuerySupplyOfResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDenomsMetadataRequest: { - typeUrl: string; - encode(message: QueryDenomsMetadataRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest; - fromPartial(object: Partial): QueryDenomsMetadataRequest; - fromAmino(object: QueryDenomsMetadataRequestAmino): QueryDenomsMetadataRequest; - toAmino(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAmino; - fromAminoMsg(object: QueryDenomsMetadataRequestAminoMsg): QueryDenomsMetadataRequest; - toAminoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestAminoMsg; - fromProtoMsg(message: QueryDenomsMetadataRequestProtoMsg): QueryDenomsMetadataRequest; - toProto(message: QueryDenomsMetadataRequest): Uint8Array; - toProtoMsg(message: QueryDenomsMetadataRequest): QueryDenomsMetadataRequestProtoMsg; -}; -export declare const QueryDenomsMetadataResponse: { - typeUrl: string; - encode(message: QueryDenomsMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse; - fromPartial(object: Partial): QueryDenomsMetadataResponse; - fromAmino(object: QueryDenomsMetadataResponseAmino): QueryDenomsMetadataResponse; - toAmino(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAmino; - fromAminoMsg(object: QueryDenomsMetadataResponseAminoMsg): QueryDenomsMetadataResponse; - toAminoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseAminoMsg; - fromProtoMsg(message: QueryDenomsMetadataResponseProtoMsg): QueryDenomsMetadataResponse; - toProto(message: QueryDenomsMetadataResponse): Uint8Array; - toProtoMsg(message: QueryDenomsMetadataResponse): QueryDenomsMetadataResponseProtoMsg; -}; -export declare const QueryDenomMetadataRequest: { - typeUrl: string; - encode(message: QueryDenomMetadataRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest; - fromPartial(object: Partial): QueryDenomMetadataRequest; - fromAmino(object: QueryDenomMetadataRequestAmino): QueryDenomMetadataRequest; - toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino; - fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest; - toAminoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAminoMsg; - fromProtoMsg(message: QueryDenomMetadataRequestProtoMsg): QueryDenomMetadataRequest; - toProto(message: QueryDenomMetadataRequest): Uint8Array; - toProtoMsg(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestProtoMsg; -}; -export declare const QueryDenomMetadataResponse: { - typeUrl: string; - encode(message: QueryDenomMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse; - fromPartial(object: Partial): QueryDenomMetadataResponse; - fromAmino(object: QueryDenomMetadataResponseAmino): QueryDenomMetadataResponse; - toAmino(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAmino; - fromAminoMsg(object: QueryDenomMetadataResponseAminoMsg): QueryDenomMetadataResponse; - toAminoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseAminoMsg; - fromProtoMsg(message: QueryDenomMetadataResponseProtoMsg): QueryDenomMetadataResponse; - toProto(message: QueryDenomMetadataResponse): Uint8Array; - toProtoMsg(message: QueryDenomMetadataResponse): QueryDenomMetadataResponseProtoMsg; -}; -export declare const QueryDenomOwnersRequest: { - typeUrl: string; - encode(message: QueryDenomOwnersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest; - fromPartial(object: Partial): QueryDenomOwnersRequest; - fromAmino(object: QueryDenomOwnersRequestAmino): QueryDenomOwnersRequest; - toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino; - fromAminoMsg(object: QueryDenomOwnersRequestAminoMsg): QueryDenomOwnersRequest; - toAminoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAminoMsg; - fromProtoMsg(message: QueryDenomOwnersRequestProtoMsg): QueryDenomOwnersRequest; - toProto(message: QueryDenomOwnersRequest): Uint8Array; - toProtoMsg(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestProtoMsg; -}; -export declare const DenomOwner: { - typeUrl: string; - encode(message: DenomOwner, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner; - fromPartial(object: Partial): DenomOwner; - fromAmino(object: DenomOwnerAmino): DenomOwner; - toAmino(message: DenomOwner): DenomOwnerAmino; - fromAminoMsg(object: DenomOwnerAminoMsg): DenomOwner; - toAminoMsg(message: DenomOwner): DenomOwnerAminoMsg; - fromProtoMsg(message: DenomOwnerProtoMsg): DenomOwner; - toProto(message: DenomOwner): Uint8Array; - toProtoMsg(message: DenomOwner): DenomOwnerProtoMsg; -}; -export declare const QueryDenomOwnersResponse: { - typeUrl: string; - encode(message: QueryDenomOwnersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse; - fromPartial(object: Partial): QueryDenomOwnersResponse; - fromAmino(object: QueryDenomOwnersResponseAmino): QueryDenomOwnersResponse; - toAmino(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAmino; - fromAminoMsg(object: QueryDenomOwnersResponseAminoMsg): QueryDenomOwnersResponse; - toAminoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseAminoMsg; - fromProtoMsg(message: QueryDenomOwnersResponseProtoMsg): QueryDenomOwnersResponse; - toProto(message: QueryDenomOwnersResponse): Uint8Array; - toProtoMsg(message: QueryDenomOwnersResponse): QueryDenomOwnersResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.js b/packages/api/dist/cosmos/bank/v1beta1/query.js deleted file mode 100644 index cc1ebc0d..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.js +++ /dev/null @@ -1,1441 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryDenomOwnersResponse = exports.DenomOwner = exports.QueryDenomOwnersRequest = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QuerySpendableBalancesResponse = exports.QuerySpendableBalancesRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const coin_1 = require("../../base/v1beta1/coin"); -const bank_1 = require("./bank"); -const binary_1 = require("../../../binary"); -function createBaseQueryBalanceRequest() { - return { - address: "", - denom: "" - }; -} -exports.QueryBalanceRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryBalanceRequest", - value: exports.QueryBalanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - value: exports.QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - balance: undefined - }; -} -exports.QueryBalanceResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.balance !== undefined) { - coin_1.Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = coin_1.Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryBalanceResponse", - value: exports.QueryBalanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - value: exports.QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -exports.QueryAllBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllBalancesRequest", - value: exports.QueryAllBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllBalancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - value: exports.QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -exports.QueryAllBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllBalancesResponse", - value: exports.QueryAllBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllBalancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - value: exports.QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -exports.QuerySpendableBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySpendableBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySpendableBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySpendableBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySpendableBalancesRequest", - value: exports.QuerySpendableBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySpendableBalancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySpendableBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - value: exports.QuerySpendableBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -exports.QuerySpendableBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySpendableBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySpendableBalancesResponse", - value: exports.QuerySpendableBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySpendableBalancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySpendableBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - value: exports.QuerySpendableBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyRequest() { - return { - pagination: undefined - }; -} -exports.QueryTotalSupplyRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTotalSupplyRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTotalSupplyRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTotalSupplyRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTotalSupplyRequest", - value: exports.QueryTotalSupplyRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTotalSupplyRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryTotalSupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - value: exports.QueryTotalSupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyResponse() { - return { - supply: [], - pagination: undefined - }; -} -exports.QueryTotalSupplyResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.supply) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.supply.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.supply) { - obj.supply = message.supply.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.supply = message.supply; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTotalSupplyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTotalSupplyResponse", - value: exports.QueryTotalSupplyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTotalSupplyResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryTotalSupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - value: exports.QueryTotalSupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfRequest() { - return { - denom: "" - }; -} -exports.QuerySupplyOfRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyOfRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyOfRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyOfRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySupplyOfRequest", - value: exports.QuerySupplyOfRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySupplyOfRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyOfRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - value: exports.QuerySupplyOfRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfResponse() { - return { - amount: coin_1.Coin.fromPartial({}) - }; -} -exports.QuerySupplyOfResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.amount !== undefined) { - coin_1.Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyOfResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyOfResponse(); - if (object.amount !== undefined && object.amount !== null) { - message.amount = coin_1.Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyOfResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySupplyOfResponse", - value: exports.QuerySupplyOfResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySupplyOfResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyOfResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - value: exports.QuerySupplyOfResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: bank_1.Params.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - bank_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = bank_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? bank_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = bank_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? bank_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataRequest() { - return { - pagination: undefined - }; -} -exports.QueryDenomsMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomsMetadataRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomsMetadataRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomsMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomsMetadataRequest", - value: exports.QueryDenomsMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomsMetadataRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomsMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - value: exports.QueryDenomsMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataResponse() { - return { - metadatas: [], - pagination: undefined - }; -} -exports.QueryDenomsMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.metadatas) { - bank_1.Metadata.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadatas.push(bank_1.Metadata.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => bank_1.Metadata.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => bank_1.Metadata.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.metadatas) { - obj.metadatas = message.metadatas.map(e => e ? bank_1.Metadata.toAmino(e) : undefined); - } - else { - obj.metadatas = message.metadatas; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomsMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomsMetadataResponse", - value: exports.QueryDenomsMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomsMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomsMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - value: exports.QueryDenomsMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataRequest() { - return { - denom: "" - }; -} -exports.QueryDenomMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomMetadataRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomMetadataRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomMetadataRequest", - value: exports.QueryDenomMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomMetadataRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - value: exports.QueryDenomMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataResponse() { - return { - metadata: bank_1.Metadata.fromPartial({}) - }; -} -exports.QueryDenomMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.metadata !== undefined) { - bank_1.Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = bank_1.Metadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomMetadataResponse(); - message.metadata = object.metadata !== undefined && object.metadata !== null ? bank_1.Metadata.fromPartial(object.metadata) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomMetadataResponse(); - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bank_1.Metadata.fromAmino(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.metadata = message.metadata ? bank_1.Metadata.toAmino(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomMetadataResponse", - value: exports.QueryDenomMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - value: exports.QueryDenomMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersRequest() { - return { - denom: "", - pagination: undefined - }; -} -exports.QueryDenomOwnersRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomOwnersRequest(); - message.denom = object.denom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomOwnersRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomOwnersRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomOwnersRequest", - value: exports.QueryDenomOwnersRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomOwnersRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomOwnersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - value: exports.QueryDenomOwnersRequest.encode(message).finish() - }; - } -}; -function createBaseDenomOwner() { - return { - address: "", - balance: coin_1.Coin.fromPartial({}) - }; -} -exports.DenomOwner = { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.balance !== undefined) { - coin_1.Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomOwner(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.balance = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomOwner(); - message.address = object.address ?? ""; - message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDenomOwner(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = coin_1.Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DenomOwner.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomOwner", - value: exports.DenomOwner.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DenomOwner.decode(message.value); - }, - toProto(message) { - return exports.DenomOwner.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - value: exports.DenomOwner.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersResponse() { - return { - denomOwners: [], - pagination: undefined - }; -} -exports.QueryDenomOwnersResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.denomOwners) { - exports.DenomOwner.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomOwners.push(exports.DenomOwner.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denomOwners?.map(e => exports.DenomOwner.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denom_owners?.map(e => exports.DenomOwner.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.denomOwners) { - obj.denom_owners = message.denomOwners.map(e => e ? exports.DenomOwner.toAmino(e) : undefined); - } - else { - obj.denom_owners = message.denomOwners; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomOwnersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomOwnersResponse", - value: exports.QueryDenomOwnersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomOwnersResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomOwnersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - value: exports.QueryDenomOwnersResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts deleted file mode 100644 index 3ae16b28..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - balance(params: QueryBalanceRequest): Promise; - allBalances(params: QueryAllBalancesRequest): Promise; - spendableBalances(params: QuerySpendableBalancesRequest): Promise; - totalSupply(params?: QueryTotalSupplyRequest): Promise; - supplyOf(params: QuerySupplyOfRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - denomMetadata(params: QueryDenomMetadataRequest): Promise; - denomsMetadata(params?: QueryDenomsMetadataRequest): Promise; - denomOwners(params: QueryDenomOwnersRequest): Promise; -} diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js b/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js deleted file mode 100644 index 208b0a39..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.lcd.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - /* Balance queries the balance of a single coin for a single account. */ - async balance(params) { - const options = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries the balance of all coins for a single account. */ - async allBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* SpendableBalances queries the spenable balance of all coins for a single - account. - - Since: cosmos-sdk 0.46 */ - async spendableBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TotalSupply queries the total supply of all coins. */ - async totalSupply(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/supply`; - return await this.req.get(endpoint, options); - } - /* SupplyOf queries the supply of a single coin. */ - async supplyOf(params) { - const options = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; - return await this.req.get(endpoint, options); - } - /* Params queries the parameters of x/bank module. */ - async params(_params = {}) { - const endpoint = `cosmos/bank/v1beta1/params`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata of a given coin denomination. */ - async denomMetadata(params) { - const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata for all registered coin - denominations. */ - async denomsMetadata(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; - return await this.req.get(endpoint, options); - } - /* DenomOwners queries for all account addresses that own a particular token - denomination. - - Since: cosmos-sdk 0.46 */ - async denomOwners(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; - return await this.req.get(endpoint, options); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index e4a79cca..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Balance queries the balance of a single coin for a single account. */ - balance(request: QueryBalanceRequest): Promise; - /** AllBalances queries the balance of all coins for a single account. */ - allBalances(request: QueryAllBalancesRequest): Promise; - /** - * SpendableBalances queries the spenable balance of all coins for a single - * account. - * - * Since: cosmos-sdk 0.46 - */ - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - /** TotalSupply queries the total supply of all coins. */ - totalSupply(request?: QueryTotalSupplyRequest): Promise; - /** SupplyOf queries the supply of a single coin. */ - supplyOf(request: QuerySupplyOfRequest): Promise; - /** Params queries the parameters of x/bank module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomsMetadata queries the client metadata of a given coin denomination. */ - denomMetadata(request: QueryDenomMetadataRequest): Promise; - /** - * DenomsMetadata queries the client metadata for all registered coin - * denominations. - */ - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - /** - * DenomOwners queries for all account addresses that own a particular token - * denomination. - * - * Since: cosmos-sdk 0.46 - */ - denomOwners(request: QueryDenomOwnersRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - balance(request: QueryBalanceRequest): Promise; - allBalances(request: QueryAllBalancesRequest): Promise; - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - totalSupply(request?: QueryTotalSupplyRequest): Promise; - supplyOf(request: QuerySupplyOfRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomMetadata(request: QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - denomOwners(request: QueryDenomOwnersRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - balance(request: QueryBalanceRequest): Promise; - allBalances(request: QueryAllBalancesRequest): Promise; - spendableBalances(request: QuerySpendableBalancesRequest): Promise; - totalSupply(request?: QueryTotalSupplyRequest): Promise; - supplyOf(request: QuerySupplyOfRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomMetadata(request: QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; - denomOwners(request: QueryDenomOwnersRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js deleted file mode 100644 index 1803ac1f..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - balance(request) { - const data = query_1.QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); - return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); - } - allBalances(request) { - const data = query_1.QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); - return promise.then(data => query_1.QueryAllBalancesResponse.decode(new binary_1.BinaryReader(data))); - } - spendableBalances(request) { - const data = query_1.QuerySpendableBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); - return promise.then(data => query_1.QuerySpendableBalancesResponse.decode(new binary_1.BinaryReader(data))); - } - totalSupply(request = { - pagination: undefined - }) { - const data = query_1.QueryTotalSupplyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); - return promise.then(data => query_1.QueryTotalSupplyResponse.decode(new binary_1.BinaryReader(data))); - } - supplyOf(request) { - const data = query_1.QuerySupplyOfRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); - return promise.then(data => query_1.QuerySupplyOfResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - denomMetadata(request) { - const data = query_1.QueryDenomMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); - return promise.then(data => query_1.QueryDenomMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - denomsMetadata(request = { - pagination: undefined - }) { - const data = query_1.QueryDenomsMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); - return promise.then(data => query_1.QueryDenomsMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - denomOwners(request) { - const data = query_1.QueryDenomOwnersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); - return promise.then(data => query_1.QueryDenomOwnersResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - balance(request) { - return queryService.balance(request); - }, - allBalances(request) { - return queryService.allBalances(request); - }, - spendableBalances(request) { - return queryService.spendableBalances(request); - }, - totalSupply(request) { - return queryService.totalSupply(request); - }, - supplyOf(request) { - return queryService.supplyOf(request); - }, - params(request) { - return queryService.params(request); - }, - denomMetadata(request) { - return queryService.denomMetadata(request); - }, - denomsMetadata(request) { - return queryService.denomsMetadata(request); - }, - denomOwners(request) { - return queryService.denomOwners(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts deleted file mode 100644 index ad7ed74a..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSend, MsgMultiSend } from "./tx"; -export declare const AminoConverter: { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: MsgMultiSend) => import("./tx").MsgMultiSendAmino; - fromAmino: (object: import("./tx").MsgMultiSendAmino) => MsgMultiSend; - }; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js b/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js deleted file mode 100644 index 46874cde..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.amino.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: "cosmos-sdk/MsgSend", - toAmino: tx_1.MsgSend.toAmino, - fromAmino: tx_1.MsgSend.fromAmino - }, - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: "cosmos-sdk/MsgMultiSend", - toAmino: tx_1.MsgMultiSend.toAmino, - fromAmino: tx_1.MsgMultiSend.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts deleted file mode 100644 index e070dfe8..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Input, InputAmino, InputSDKType, Output, OutputAmino, OutputSDKType } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSend { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSend"; - value: Uint8Array; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgSendAminoMsg { - type: "cosmos-sdk/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend represents a message to send coins from one account to another. */ -export interface MsgSendSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "cosmos-sdk/MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSend { - inputs: Input[]; - outputs: Output[]; -} -export interface MsgMultiSendProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; - value: Uint8Array; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendAmino { - inputs?: InputAmino[]; - outputs?: OutputAmino[]; -} -export interface MsgMultiSendAminoMsg { - type: "cosmos-sdk/MsgMultiSend"; - value: MsgMultiSendAmino; -} -/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ -export interface MsgMultiSendSDKType { - inputs: InputSDKType[]; - outputs: OutputSDKType[]; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponse { -} -export interface MsgMultiSendResponseProtoMsg { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; - value: Uint8Array; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseAmino { -} -export interface MsgMultiSendResponseAminoMsg { - type: "cosmos-sdk/MsgMultiSendResponse"; - value: MsgMultiSendResponseAmino; -} -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export interface MsgMultiSendResponseSDKType { -} -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - toAminoMsg(message: MsgSend): MsgSendAminoMsg; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgMultiSend: { - typeUrl: string; - encode(message: MsgMultiSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend; - fromPartial(object: Partial): MsgMultiSend; - fromAmino(object: MsgMultiSendAmino): MsgMultiSend; - toAmino(message: MsgMultiSend): MsgMultiSendAmino; - fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend; - toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg; - fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend; - toProto(message: MsgMultiSend): Uint8Array; - toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg; -}; -export declare const MsgMultiSendResponse: { - typeUrl: string; - encode(_: MsgMultiSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse; - fromPartial(_: Partial): MsgMultiSendResponse; - fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse; - toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino; - fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse; - toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg; - fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse; - toProto(message: MsgMultiSendResponse): Uint8Array; - toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.js b/packages/api/dist/cosmos/bank/v1beta1/tx.js deleted file mode 100644 index 71a5f0d4..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.js +++ /dev/null @@ -1,302 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const bank_1 = require("./bank"); -const binary_1 = require("../../../binary"); -function createBaseMsgSend() { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -exports.MsgSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSend", - value: exports.MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSend.decode(message.value); - }, - toProto(message) { - return exports.MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: exports.MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -exports.MsgSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSendResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSendResponse", - value: exports.MsgSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSendResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - value: exports.MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSend() { - return { - inputs: [], - outputs: [] - }; -} -exports.MsgMultiSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.inputs) { - bank_1.Input.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.outputs) { - bank_1.Output.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs.push(bank_1.Input.decode(reader, reader.uint32())); - break; - case 2: - message.outputs.push(bank_1.Output.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => bank_1.Input.fromPartial(e)) || []; - message.outputs = object.outputs?.map(e => bank_1.Output.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => bank_1.Input.fromAmino(e)) || []; - message.outputs = object.outputs?.map(e => bank_1.Output.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.inputs) { - obj.inputs = message.inputs.map(e => e ? bank_1.Input.toAmino(e) : undefined); - } - else { - obj.inputs = message.inputs; - } - if (message.outputs) { - obj.outputs = message.outputs.map(e => e ? bank_1.Output.toAmino(e) : undefined); - } - else { - obj.outputs = message.outputs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgMultiSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgMultiSend", - value: exports.MsgMultiSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgMultiSend.decode(message.value); - }, - toProto(message) { - return exports.MsgMultiSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: exports.MsgMultiSend.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSendResponse() { - return {}; -} -exports.MsgMultiSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgMultiSendResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgMultiSendResponse", - value: exports.MsgMultiSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgMultiSendResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgMultiSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - value: exports.MsgMultiSendResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts deleted file mode 100644 index fd2ff12d..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend, MsgMultiSend } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: MsgMultiSend; - }; - }; - fromPartial: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - multiSend(value: MsgMultiSend): { - typeUrl: string; - value: MsgMultiSend; - }; - }; -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js b/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js deleted file mode 100644 index f89899d8..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.registry.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.bank.v1beta1.MsgSend", tx_1.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", tx_1.MsgMultiSend]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: tx_1.MsgSend.encode(value).finish() - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: tx_1.MsgMultiSend.encode(value).finish() - }; - } - }, - withTypeUrl: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value - }; - } - }, - fromPartial: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: tx_1.MsgSend.fromPartial(value) - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: tx_1.MsgMultiSend.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index ac12e6ab..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** Send defines a method for sending coins from one account to another account. */ - send(request: MsgSend): Promise; - /** MultiSend defines a method for sending coins from some accounts to other accounts. */ - multiSend(request: MsgMultiSend): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - send(request: MsgSend): Promise; - multiSend(request: MsgMultiSend): Promise; -} diff --git a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js deleted file mode 100644 index a77883e1..00000000 --- a/packages/api/dist/cosmos/bank/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.send = this.send.bind(this); - this.multiSend = this.multiSend.bind(this); - } - send(request) { - const data = tx_1.MsgSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); - return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); - } - multiSend(request) { - const data = tx_1.MsgMultiSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); - return promise.then(data => tx_1.MsgMultiSendResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts b/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts deleted file mode 100644 index 30a71db2..00000000 --- a/packages/api/dist/cosmos/base/abci/v1beta1/abci.d.ts +++ /dev/null @@ -1,602 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponse { - /** The block height */ - height: bigint; - /** The transaction hash. */ - txhash: string; - /** Namespace for the Code */ - codespace: string; - /** Response code. */ - code: number; - /** Result bytes, if any. */ - data: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - rawLog: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs: ABCIMessageLog[]; - /** Additional information. May be non-deterministic. */ - info: string; - /** Amount of gas requested for transaction. */ - gasWanted: bigint; - /** Amount of gas consumed by transaction. */ - gasUsed: bigint; - /** The request transaction bytes. */ - tx?: Any; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events: Event[]; -} -export interface TxResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; - value: Uint8Array; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseAmino { - /** The block height */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** Response code. */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: ABCIMessageLogAmino[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** Amount of gas requested for transaction. */ - gas_wanted?: string; - /** Amount of gas consumed by transaction. */ - gas_used?: string; - /** The request transaction bytes. */ - tx?: AnyAmino; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - */ - events?: EventAmino[]; -} -export interface TxResponseAminoMsg { - type: "cosmos-sdk/TxResponse"; - value: TxResponseAmino; -} -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface TxResponseSDKType { - height: bigint; - txhash: string; - codespace: string; - code: number; - data: string; - raw_log: string; - logs: ABCIMessageLogSDKType[]; - info: string; - gas_wanted: bigint; - gas_used: bigint; - tx?: AnySDKType; - timestamp: string; - events: EventSDKType[]; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLog { - msgIndex: number; - log: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events: StringEvent[]; -} -export interface ABCIMessageLogProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; - value: Uint8Array; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogAmino { - msg_index: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: StringEventAmino[]; -} -export interface ABCIMessageLogAminoMsg { - type: "cosmos-sdk/ABCIMessageLog"; - value: ABCIMessageLogAmino; -} -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface ABCIMessageLogSDKType { - msg_index: number; - log: string; - events: StringEventSDKType[]; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEvent { - type: string; - attributes: Attribute[]; -} -export interface StringEventProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; - value: Uint8Array; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventAmino { - type?: string; - attributes?: AttributeAmino[]; -} -export interface StringEventAminoMsg { - type: "cosmos-sdk/StringEvent"; - value: StringEventAmino; -} -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface StringEventSDKType { - type: string; - attributes: AttributeSDKType[]; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface Attribute { - key: string; - value: string; -} -export interface AttributeProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; - value: Uint8Array; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeAmino { - key?: string; - value?: string; -} -export interface AttributeAminoMsg { - type: "cosmos-sdk/Attribute"; - value: AttributeAmino; -} -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface AttributeSDKType { - key: string; - value: string; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfo { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gasWanted: bigint; - /** GasUsed is the amount of gas actually consumed. */ - gasUsed: bigint; -} -export interface GasInfoProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; - value: Uint8Array; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoAmino { - /** GasWanted is the maximum units of work we allow this tx to perform. */ - gas_wanted?: string; - /** GasUsed is the amount of gas actually consumed. */ - gas_used?: string; -} -export interface GasInfoAminoMsg { - type: "cosmos-sdk/GasInfo"; - value: GasInfoAmino; -} -/** GasInfo defines tx execution gas context. */ -export interface GasInfoSDKType { - gas_wanted: bigint; - gas_used: bigint; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data: Uint8Array; - /** Log contains the log information from message or handler execution. */ - log: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events: Event[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface ResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.Result"; - value: Uint8Array; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultAmino { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - */ - /** @deprecated */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: EventAmino[]; - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface ResultAminoMsg { - type: "cosmos-sdk/Result"; - value: ResultAmino; -} -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface ResultSDKType { - /** @deprecated */ - data: Uint8Array; - log: string; - events: EventSDKType[]; - msg_responses: AnySDKType[]; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponse { - gasInfo: GasInfo; - result?: Result; -} -export interface SimulationResponseProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; - value: Uint8Array; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseAmino { - gas_info?: GasInfoAmino; - result?: ResultAmino; -} -export interface SimulationResponseAminoMsg { - type: "cosmos-sdk/SimulationResponse"; - value: SimulationResponseAmino; -} -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - */ -export interface SimulationResponseSDKType { - gas_info: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgData { - msgType: string; - data: Uint8Array; -} -export interface MsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; - value: Uint8Array; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataAmino { - msg_type?: string; - data?: string; -} -export interface MsgDataAminoMsg { - type: "cosmos-sdk/MsgData"; - value: MsgDataAmino; -} -/** - * MsgData defines the data returned in a Result object during message - * execution. - */ -/** @deprecated */ -export interface MsgDataSDKType { - msg_type: string; - data: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgData { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data: MsgData[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msgResponses: Any[]; -} -export interface TxMsgDataProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; - value: Uint8Array; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataAmino { - /** data field is deprecated and not populated. */ - /** @deprecated */ - data?: MsgDataAmino[]; - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - */ - msg_responses?: AnyAmino[]; -} -export interface TxMsgDataAminoMsg { - type: "cosmos-sdk/TxMsgData"; - value: TxMsgDataAmino; -} -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - */ -export interface TxMsgDataSDKType { - /** @deprecated */ - data: MsgDataSDKType[]; - msg_responses: AnySDKType[]; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResult { - /** Count of all txs */ - totalCount: bigint; - /** Count of txs in current page */ - count: bigint; - /** Index of current page, start from 1 */ - pageNumber: bigint; - /** Count of total pages */ - pageTotal: bigint; - /** Max count txs per page */ - limit: bigint; - /** List of txs in current page */ - txs: TxResponse[]; -} -export interface SearchTxsResultProtoMsg { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; - value: Uint8Array; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultAmino { - /** Count of all txs */ - total_count?: string; - /** Count of txs in current page */ - count?: string; - /** Index of current page, start from 1 */ - page_number?: string; - /** Count of total pages */ - page_total?: string; - /** Max count txs per page */ - limit?: string; - /** List of txs in current page */ - txs?: TxResponseAmino[]; -} -export interface SearchTxsResultAminoMsg { - type: "cosmos-sdk/SearchTxsResult"; - value: SearchTxsResultAmino; -} -/** SearchTxsResult defines a structure for querying txs pageable */ -export interface SearchTxsResultSDKType { - total_count: bigint; - count: bigint; - page_number: bigint; - page_total: bigint; - limit: bigint; - txs: TxResponseSDKType[]; -} -export declare const TxResponse: { - typeUrl: string; - encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; - fromPartial(object: Partial): TxResponse; - fromAmino(object: TxResponseAmino): TxResponse; - toAmino(message: TxResponse): TxResponseAmino; - fromAminoMsg(object: TxResponseAminoMsg): TxResponse; - toAminoMsg(message: TxResponse): TxResponseAminoMsg; - fromProtoMsg(message: TxResponseProtoMsg): TxResponse; - toProto(message: TxResponse): Uint8Array; - toProtoMsg(message: TxResponse): TxResponseProtoMsg; -}; -export declare const ABCIMessageLog: { - typeUrl: string; - encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; - fromPartial(object: Partial): ABCIMessageLog; - fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog; - toAmino(message: ABCIMessageLog): ABCIMessageLogAmino; - fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog; - toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg; - fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog; - toProto(message: ABCIMessageLog): Uint8Array; - toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg; -}; -export declare const StringEvent: { - typeUrl: string; - encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; - fromPartial(object: Partial): StringEvent; - fromAmino(object: StringEventAmino): StringEvent; - toAmino(message: StringEvent): StringEventAmino; - fromAminoMsg(object: StringEventAminoMsg): StringEvent; - toAminoMsg(message: StringEvent): StringEventAminoMsg; - fromProtoMsg(message: StringEventProtoMsg): StringEvent; - toProto(message: StringEvent): Uint8Array; - toProtoMsg(message: StringEvent): StringEventProtoMsg; -}; -export declare const Attribute: { - typeUrl: string; - encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Attribute; - fromPartial(object: Partial): Attribute; - fromAmino(object: AttributeAmino): Attribute; - toAmino(message: Attribute): AttributeAmino; - fromAminoMsg(object: AttributeAminoMsg): Attribute; - toAminoMsg(message: Attribute): AttributeAminoMsg; - fromProtoMsg(message: AttributeProtoMsg): Attribute; - toProto(message: Attribute): Uint8Array; - toProtoMsg(message: Attribute): AttributeProtoMsg; -}; -export declare const GasInfo: { - typeUrl: string; - encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; - fromPartial(object: Partial): GasInfo; - fromAmino(object: GasInfoAmino): GasInfo; - toAmino(message: GasInfo): GasInfoAmino; - fromAminoMsg(object: GasInfoAminoMsg): GasInfo; - toAminoMsg(message: GasInfo): GasInfoAminoMsg; - fromProtoMsg(message: GasInfoProtoMsg): GasInfo; - toProto(message: GasInfo): Uint8Array; - toProtoMsg(message: GasInfo): GasInfoProtoMsg; -}; -export declare const Result: { - typeUrl: string; - encode(message: Result, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Result; - fromPartial(object: Partial): Result; - fromAmino(object: ResultAmino): Result; - toAmino(message: Result): ResultAmino; - fromAminoMsg(object: ResultAminoMsg): Result; - toAminoMsg(message: Result): ResultAminoMsg; - fromProtoMsg(message: ResultProtoMsg): Result; - toProto(message: Result): Uint8Array; - toProtoMsg(message: Result): ResultProtoMsg; -}; -export declare const SimulationResponse: { - typeUrl: string; - encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; - fromPartial(object: Partial): SimulationResponse; - fromAmino(object: SimulationResponseAmino): SimulationResponse; - toAmino(message: SimulationResponse): SimulationResponseAmino; - fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse; - toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg; - fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse; - toProto(message: SimulationResponse): Uint8Array; - toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg; -}; -export declare const MsgData: { - typeUrl: string; - encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgData; - fromPartial(object: Partial): MsgData; - fromAmino(object: MsgDataAmino): MsgData; - toAmino(message: MsgData): MsgDataAmino; - fromAminoMsg(object: MsgDataAminoMsg): MsgData; - toAminoMsg(message: MsgData): MsgDataAminoMsg; - fromProtoMsg(message: MsgDataProtoMsg): MsgData; - toProto(message: MsgData): Uint8Array; - toProtoMsg(message: MsgData): MsgDataProtoMsg; -}; -export declare const TxMsgData: { - typeUrl: string; - encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; - fromPartial(object: Partial): TxMsgData; - fromAmino(object: TxMsgDataAmino): TxMsgData; - toAmino(message: TxMsgData): TxMsgDataAmino; - fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData; - toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg; - fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData; - toProto(message: TxMsgData): Uint8Array; - toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg; -}; -export declare const SearchTxsResult: { - typeUrl: string; - encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; - fromPartial(object: Partial): SearchTxsResult; - fromAmino(object: SearchTxsResultAmino): SearchTxsResult; - toAmino(message: SearchTxsResult): SearchTxsResultAmino; - fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult; - toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg; - fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult; - toProto(message: SearchTxsResult): Uint8Array; - toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg; -}; diff --git a/packages/api/dist/cosmos/base/abci/v1beta1/abci.js b/packages/api/dist/cosmos/base/abci/v1beta1/abci.js deleted file mode 100644 index d35ec620..00000000 --- a/packages/api/dist/cosmos/base/abci/v1beta1/abci.js +++ /dev/null @@ -1,1061 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SearchTxsResult = exports.TxMsgData = exports.MsgData = exports.SimulationResponse = exports.Result = exports.GasInfo = exports.Attribute = exports.StringEvent = exports.ABCIMessageLog = exports.TxResponse = void 0; -//@ts-nocheck -const any_1 = require("../../../../google/protobuf/any"); -const types_1 = require("../../../../tendermint/abci/types"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseTxResponse() { - return { - height: BigInt(0), - txhash: "", - codespace: "", - code: 0, - data: "", - rawLog: "", - logs: [], - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - tx: undefined, - timestamp: "", - events: [] - }; -} -exports.TxResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.txhash !== "") { - writer.uint32(18).string(message.txhash); - } - if (message.codespace !== "") { - writer.uint32(26).string(message.codespace); - } - if (message.code !== 0) { - writer.uint32(32).uint32(message.code); - } - if (message.data !== "") { - writer.uint32(42).string(message.data); - } - if (message.rawLog !== "") { - writer.uint32(50).string(message.rawLog); - } - for (const v of message.logs) { - exports.ABCIMessageLog.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.info !== "") { - writer.uint32(66).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(72).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(80).int64(message.gasUsed); - } - if (message.tx !== undefined) { - any_1.Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); - } - if (message.timestamp !== "") { - writer.uint32(98).string(message.timestamp); - } - for (const v of message.events) { - types_1.Event.encode(v, writer.uint32(106).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.txhash = reader.string(); - break; - case 3: - message.codespace = reader.string(); - break; - case 4: - message.code = reader.uint32(); - break; - case 5: - message.data = reader.string(); - break; - case 6: - message.rawLog = reader.string(); - break; - case 7: - message.logs.push(exports.ABCIMessageLog.decode(reader, reader.uint32())); - break; - case 8: - message.info = reader.string(); - break; - case 9: - message.gasWanted = reader.int64(); - break; - case 10: - message.gasUsed = reader.int64(); - break; - case 11: - message.tx = any_1.Any.decode(reader, reader.uint32()); - break; - case 12: - message.timestamp = reader.string(); - break; - case 13: - message.events.push(types_1.Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.txhash = object.txhash ?? ""; - message.codespace = object.codespace ?? ""; - message.code = object.code ?? 0; - message.data = object.data ?? ""; - message.rawLog = object.rawLog ?? ""; - message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromPartial(e)) || []; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.tx = object.tx !== undefined && object.tx !== null ? any_1.Any.fromPartial(object.tx) : undefined; - message.timestamp = object.timestamp ?? ""; - message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.txhash !== undefined && object.txhash !== null) { - message.txhash = object.txhash; - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.raw_log !== undefined && object.raw_log !== null) { - message.rawLog = object.raw_log; - } - message.logs = object.logs?.map(e => exports.ABCIMessageLog.fromAmino(e)) || []; - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = any_1.Any.fromAmino(object.tx); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = object.timestamp; - } - message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.txhash = message.txhash === "" ? undefined : message.txhash; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data === "" ? undefined : message.data; - obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; - if (message.logs) { - obj.logs = message.logs.map(e => e ? exports.ABCIMessageLog.toAmino(e) : undefined); - } - else { - obj.logs = message.logs; - } - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - obj.tx = message.tx ? any_1.Any.toAmino(message.tx) : undefined; - obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; - if (message.events) { - obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return exports.TxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxResponse", - value: exports.TxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TxResponse.decode(message.value); - }, - toProto(message) { - return exports.TxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - value: exports.TxResponse.encode(message).finish() - }; - } -}; -function createBaseABCIMessageLog() { - return { - msgIndex: 0, - log: "", - events: [] - }; -} -exports.ABCIMessageLog = { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msgIndex !== 0) { - writer.uint32(8).uint32(message.msgIndex); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - exports.StringEvent.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseABCIMessageLog(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgIndex = reader.uint32(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(exports.StringEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseABCIMessageLog(); - message.msgIndex = object.msgIndex ?? 0; - message.log = object.log ?? ""; - message.events = object.events?.map(e => exports.StringEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseABCIMessageLog(); - if (object.msg_index !== undefined && object.msg_index !== null) { - message.msgIndex = object.msg_index; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => exports.StringEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_index = message.msgIndex ?? 0; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? exports.StringEvent.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ABCIMessageLog.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ABCIMessageLog", - value: exports.ABCIMessageLog.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ABCIMessageLog.decode(message.value); - }, - toProto(message) { - return exports.ABCIMessageLog.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - value: exports.ABCIMessageLog.encode(message).finish() - }; - } -}; -function createBaseStringEvent() { - return { - type: "", - attributes: [] - }; -} -exports.StringEvent = { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - exports.Attribute.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStringEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(exports.Attribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStringEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => exports.Attribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseStringEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => exports.Attribute.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? exports.Attribute.toAmino(e) : undefined); - } - else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.StringEvent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/StringEvent", - value: exports.StringEvent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.StringEvent.decode(message.value); - }, - toProto(message) { - return exports.StringEvent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - value: exports.StringEvent.encode(message).finish() - }; - } -}; -function createBaseAttribute() { - return { - key: "", - value: "" - }; -} -exports.Attribute = { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object) { - return exports.Attribute.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Attribute", - value: exports.Attribute.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Attribute.decode(message.value); - }, - toProto(message) { - return exports.Attribute.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - value: exports.Attribute.encode(message).finish() - }; - } -}; -function createBaseGasInfo() { - return { - gasWanted: BigInt(0), - gasUsed: BigInt(0) - }; -} -exports.GasInfo = { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.gasWanted !== BigInt(0)) { - writer.uint32(8).uint64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(16).uint64(message.gasUsed); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGasInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasWanted = reader.uint64(); - break; - case 2: - message.gasUsed = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGasInfo(); - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGasInfo(); - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GasInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GasInfo", - value: exports.GasInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GasInfo.decode(message.value); - }, - toProto(message) { - return exports.GasInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - value: exports.GasInfo.encode(message).finish() - }; - } -}; -function createBaseResult() { - return { - data: new Uint8Array(), - log: "", - events: [], - msgResponses: [] - }; -} -exports.Result = { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - types_1.Event.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.msgResponses) { - any_1.Any.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(types_1.Event.decode(reader, reader.uint32())); - break; - case 4: - message.msgResponses.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResult(); - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.events = object.events?.map(e => types_1.Event.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResult(); - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => types_1.Event.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? types_1.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Result.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Result", - value: exports.Result.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Result.decode(message.value); - }, - toProto(message) { - return exports.Result.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - value: exports.Result.encode(message).finish() - }; - } -}; -function createBaseSimulationResponse() { - return { - gasInfo: exports.GasInfo.fromPartial({}), - result: undefined - }; -} -exports.SimulationResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.gasInfo !== undefined) { - exports.GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - exports.Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = exports.GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = exports.Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulationResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? exports.GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? exports.Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSimulationResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = exports.GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = exports.Result.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_info = message.gasInfo ? exports.GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? exports.Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SimulationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulationResponse", - value: exports.SimulationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SimulationResponse.decode(message.value); - }, - toProto(message) { - return exports.SimulationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - value: exports.SimulationResponse.encode(message).finish() - }; - } -}; -function createBaseMsgData() { - return { - msgType: "", - data: new Uint8Array() - }; -} -exports.MsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msgType !== "") { - writer.uint32(10).string(message.msgType); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgType = reader.string(); - break; - case 2: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgData(); - message.msgType = object.msgType ?? ""; - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseMsgData(); - if (object.msg_type !== undefined && object.msg_type !== null) { - message.msgType = object.msg_type; - } - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type = message.msgType === "" ? undefined : message.msgType; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgData", - value: exports.MsgData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgData.decode(message.value); - }, - toProto(message) { - return exports.MsgData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - value: exports.MsgData.encode(message).finish() - }; - } -}; -function createBaseTxMsgData() { - return { - data: [], - msgResponses: [] - }; -} -exports.TxMsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.data) { - exports.MsgData.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.msgResponses) { - any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data.push(exports.MsgData.decode(reader, reader.uint32())); - break; - case 2: - message.msgResponses.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => exports.MsgData.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => exports.MsgData.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.data) { - obj.data = message.data.map(e => e ? exports.MsgData.toAmino(e) : undefined); - } - else { - obj.data = message.data; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object) { - return exports.TxMsgData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxMsgData", - value: exports.TxMsgData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TxMsgData.decode(message.value); - }, - toProto(message) { - return exports.TxMsgData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - value: exports.TxMsgData.encode(message).finish() - }; - } -}; -function createBaseSearchTxsResult() { - return { - totalCount: BigInt(0), - count: BigInt(0), - pageNumber: BigInt(0), - pageTotal: BigInt(0), - limit: BigInt(0), - txs: [] - }; -} -exports.SearchTxsResult = { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.totalCount !== BigInt(0)) { - writer.uint32(8).uint64(message.totalCount); - } - if (message.count !== BigInt(0)) { - writer.uint32(16).uint64(message.count); - } - if (message.pageNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.pageNumber); - } - if (message.pageTotal !== BigInt(0)) { - writer.uint32(32).uint64(message.pageTotal); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - for (const v of message.txs) { - exports.TxResponse.encode(v, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSearchTxsResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.totalCount = reader.uint64(); - break; - case 2: - message.count = reader.uint64(); - break; - case 3: - message.pageNumber = reader.uint64(); - break; - case 4: - message.pageTotal = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - case 6: - message.txs.push(exports.TxResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSearchTxsResult(); - message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); - message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); - message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); - message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.txs = object.txs?.map(e => exports.TxResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSearchTxsResult(); - if (object.total_count !== undefined && object.total_count !== null) { - message.totalCount = BigInt(object.total_count); - } - if (object.count !== undefined && object.count !== null) { - message.count = BigInt(object.count); - } - if (object.page_number !== undefined && object.page_number !== null) { - message.pageNumber = BigInt(object.page_number); - } - if (object.page_total !== undefined && object.page_total !== null) { - message.pageTotal = BigInt(object.page_total); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - message.txs = object.txs?.map(e => exports.TxResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; - obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; - obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; - obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => e ? exports.TxResponse.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SearchTxsResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SearchTxsResult", - value: exports.SearchTxsResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SearchTxsResult.decode(message.value); - }, - toProto(message) { - return exports.SearchTxsResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - value: exports.SearchTxsResult.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts deleted file mode 100644 index da5ff1f5..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequest { -} -export interface ConfigRequestProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest"; - value: Uint8Array; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestAmino { -} -export interface ConfigRequestAminoMsg { - type: "cosmos-sdk/ConfigRequest"; - value: ConfigRequestAmino; -} -/** ConfigRequest defines the request structure for the Config gRPC query. */ -export interface ConfigRequestSDKType { -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponse { - minimumGasPrice: string; -} -export interface ConfigResponseProtoMsg { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse"; - value: Uint8Array; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseAmino { - minimum_gas_price?: string; -} -export interface ConfigResponseAminoMsg { - type: "cosmos-sdk/ConfigResponse"; - value: ConfigResponseAmino; -} -/** ConfigResponse defines the response structure for the Config gRPC query. */ -export interface ConfigResponseSDKType { - minimum_gas_price: string; -} -export declare const ConfigRequest: { - typeUrl: string; - encode(_: ConfigRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigRequest; - fromPartial(_: Partial): ConfigRequest; - fromAmino(_: ConfigRequestAmino): ConfigRequest; - toAmino(_: ConfigRequest): ConfigRequestAmino; - fromAminoMsg(object: ConfigRequestAminoMsg): ConfigRequest; - toAminoMsg(message: ConfigRequest): ConfigRequestAminoMsg; - fromProtoMsg(message: ConfigRequestProtoMsg): ConfigRequest; - toProto(message: ConfigRequest): Uint8Array; - toProtoMsg(message: ConfigRequest): ConfigRequestProtoMsg; -}; -export declare const ConfigResponse: { - typeUrl: string; - encode(message: ConfigResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigResponse; - fromPartial(object: Partial): ConfigResponse; - fromAmino(object: ConfigResponseAmino): ConfigResponse; - toAmino(message: ConfigResponse): ConfigResponseAmino; - fromAminoMsg(object: ConfigResponseAminoMsg): ConfigResponse; - toAminoMsg(message: ConfigResponse): ConfigResponseAminoMsg; - fromProtoMsg(message: ConfigResponseProtoMsg): ConfigResponse; - toProto(message: ConfigResponse): Uint8Array; - toProtoMsg(message: ConfigResponse): ConfigResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.js b/packages/api/dist/cosmos/base/node/v1beta1/query.js deleted file mode 100644 index 574fc3a5..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConfigResponse = exports.ConfigRequest = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseConfigRequest() { - return {}; -} -exports.ConfigRequest = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseConfigRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseConfigRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.ConfigRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigRequest", - value: exports.ConfigRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ConfigRequest.decode(message.value); - }, - toProto(message) { - return exports.ConfigRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - value: exports.ConfigRequest.encode(message).finish() - }; - } -}; -function createBaseConfigResponse() { - return { - minimumGasPrice: "" - }; -} -exports.ConfigResponse = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.minimumGasPrice !== "") { - writer.uint32(10).string(message.minimumGasPrice); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minimumGasPrice = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConfigResponse(); - message.minimumGasPrice = object.minimumGasPrice ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConfigResponse(); - if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { - message.minimumGasPrice = object.minimum_gas_price; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; - return obj; - }, - fromAminoMsg(object) { - return exports.ConfigResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigResponse", - value: exports.ConfigResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ConfigResponse.decode(message.value); - }, - toProto(message) { - return exports.ConfigResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - value: exports.ConfigResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts deleted file mode 100644 index 0855fb5b..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { ConfigRequest, ConfigResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - config(_params?: ConfigRequest): Promise; -} diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js b/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js deleted file mode 100644 index 8f902e77..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.lcd.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.config = this.config.bind(this); - } - /* Config queries for the operator configuration. */ - async config(_params = {}) { - const endpoint = `cosmos/base/node/v1beta1/config`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts deleted file mode 100644 index f1f8deab..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { ConfigRequest, ConfigResponse } from "./query"; -/** Service defines the gRPC querier service for node related queries. */ -export interface Service { - /** Config queries for the operator configuration. */ - config(request?: ConfigRequest): Promise; -} -export declare class ServiceClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - config(request?: ConfigRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - config(request?: ConfigRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js b/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js deleted file mode 100644 index 34b4d741..00000000 --- a/packages/api/dist/cosmos/base/node/v1beta1/query.rpc.Service.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.ServiceClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class ServiceClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.config = this.config.bind(this); - } - config(request = {}) { - const data = query_1.ConfigRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); - return promise.then(data => query_1.ConfigResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.ServiceClientImpl = ServiceClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new ServiceClientImpl(rpc); - return { - config(request) { - return queryService.config(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts b/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts deleted file mode 100644 index 3f291154..00000000 --- a/packages/api/dist/cosmos/base/query/v1beta1/pagination.d.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequest { - /** - * 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. - */ - key: Uint8Array; - /** - * 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. - */ - offset: bigint; - /** - * 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. - */ - limit: bigint; - /** - * 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. - */ - countTotal: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse: boolean; -} -export interface PageRequestProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; - value: Uint8Array; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestAmino { - /** - * 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. - */ - key?: string; - /** - * 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. - */ - offset?: string; - /** - * 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. - */ - limit?: string; - /** - * 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. - */ - count_total?: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - */ - reverse?: boolean; -} -export interface PageRequestAminoMsg { - type: "cosmos-sdk/PageRequest"; - value: PageRequestAmino; -} -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface PageRequestSDKType { - key: Uint8Array; - offset: bigint; - limit: bigint; - count_total: boolean; - reverse: boolean; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - nextKey: Uint8Array; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total: bigint; -} -export interface PageResponseProtoMsg { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; - value: Uint8Array; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseAmino { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - */ - total?: string; -} -export interface PageResponseAminoMsg { - type: "cosmos-sdk/PageResponse"; - value: PageResponseAmino; -} -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface PageResponseSDKType { - next_key: Uint8Array; - total: bigint; -} -export declare const PageRequest: { - typeUrl: string; - encode(message: PageRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PageRequest; - fromPartial(object: Partial): PageRequest; - fromAmino(object: PageRequestAmino): PageRequest; - toAmino(message: PageRequest): PageRequestAmino; - fromAminoMsg(object: PageRequestAminoMsg): PageRequest; - toAminoMsg(message: PageRequest): PageRequestAminoMsg; - fromProtoMsg(message: PageRequestProtoMsg): PageRequest; - toProto(message: PageRequest): Uint8Array; - toProtoMsg(message: PageRequest): PageRequestProtoMsg; -}; -export declare const PageResponse: { - typeUrl: string; - encode(message: PageResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PageResponse; - fromPartial(object: Partial): PageResponse; - fromAmino(object: PageResponseAmino): PageResponse; - toAmino(message: PageResponse): PageResponseAmino; - fromAminoMsg(object: PageResponseAminoMsg): PageResponse; - toAminoMsg(message: PageResponse): PageResponseAminoMsg; - fromProtoMsg(message: PageResponseProtoMsg): PageResponse; - toProto(message: PageResponse): Uint8Array; - toProtoMsg(message: PageResponse): PageResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/base/query/v1beta1/pagination.js b/packages/api/dist/cosmos/base/query/v1beta1/pagination.js deleted file mode 100644 index 0988cae7..00000000 --- a/packages/api/dist/cosmos/base/query/v1beta1/pagination.js +++ /dev/null @@ -1,204 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PageResponse = exports.PageRequest = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBasePageRequest() { - return { - key: new Uint8Array(), - offset: BigInt(0), - limit: BigInt(0), - countTotal: false, - reverse: false - }; -} -exports.PageRequest = { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.offset !== BigInt(0)) { - writer.uint32(16).uint64(message.offset); - } - if (message.limit !== BigInt(0)) { - writer.uint32(24).uint64(message.limit); - } - if (message.countTotal === true) { - writer.uint32(32).bool(message.countTotal); - } - if (message.reverse === true) { - writer.uint32(40).bool(message.reverse); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.offset = reader.uint64(); - break; - case 3: - message.limit = reader.uint64(); - break; - case 4: - message.countTotal = reader.bool(); - break; - case 5: - message.reverse = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePageRequest(); - message.key = object.key ?? new Uint8Array(); - message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.countTotal = object.countTotal ?? false; - message.reverse = object.reverse ?? false; - return message; - }, - fromAmino(object) { - const message = createBasePageRequest(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - if (object.offset !== undefined && object.offset !== null) { - message.offset = BigInt(object.offset); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - if (object.count_total !== undefined && object.count_total !== null) { - message.countTotal = object.count_total; - } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = object.reverse; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - obj.count_total = message.countTotal === false ? undefined : message.countTotal; - obj.reverse = message.reverse === false ? undefined : message.reverse; - return obj; - }, - fromAminoMsg(object) { - return exports.PageRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PageRequest", - value: exports.PageRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PageRequest.decode(message.value); - }, - toProto(message) { - return exports.PageRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - value: exports.PageRequest.encode(message).finish() - }; - } -}; -function createBasePageResponse() { - return { - nextKey: new Uint8Array(), - total: BigInt(0) - }; -} -exports.PageResponse = { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.nextKey.length !== 0) { - writer.uint32(10).bytes(message.nextKey); - } - if (message.total !== BigInt(0)) { - writer.uint32(16).uint64(message.total); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nextKey = reader.bytes(); - break; - case 2: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePageResponse(); - message.nextKey = object.nextKey ?? new Uint8Array(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBasePageResponse(); - if (object.next_key !== undefined && object.next_key !== null) { - message.nextKey = (0, helpers_1.bytesFromBase64)(object.next_key); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.next_key = message.nextKey ? (0, helpers_1.base64FromBytes)(message.nextKey) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PageResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PageResponse", - value: exports.PageResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PageResponse.decode(message.value); - }, - toProto(message) { - return exports.PageResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - value: exports.PageResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts deleted file mode 100644 index 4574dab2..00000000 --- a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts +++ /dev/null @@ -1,1057 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptor { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptor; - /** chain provides the chain descriptor */ - chain?: ChainDescriptor; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptor; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptor; - /** query_services provides metadata information regarding the available queriable endpoints */ - queryServices?: QueryServicesDescriptor; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptor; -} -export interface AppDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; - value: Uint8Array; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorAmino { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - */ - authn?: AuthnDescriptorAmino; - /** chain provides the chain descriptor */ - chain?: ChainDescriptorAmino; - /** codec provides metadata information regarding codec related types */ - codec?: CodecDescriptorAmino; - /** configuration provides metadata information regarding the sdk.Config type */ - configuration?: ConfigurationDescriptorAmino; - /** query_services provides metadata information regarding the available queriable endpoints */ - query_services?: QueryServicesDescriptorAmino; - /** tx provides metadata information regarding how to send transactions to the given application */ - tx?: TxDescriptorAmino; -} -export interface AppDescriptorAminoMsg { - type: "cosmos-sdk/AppDescriptor"; - value: AppDescriptorAmino; -} -/** AppDescriptor describes a cosmos-sdk based application */ -export interface AppDescriptorSDKType { - authn?: AuthnDescriptorSDKType; - chain?: ChainDescriptorSDKType; - codec?: CodecDescriptorSDKType; - configuration?: ConfigurationDescriptorSDKType; - query_services?: QueryServicesDescriptorSDKType; - tx?: TxDescriptorSDKType; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptor { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs: MsgDescriptor[]; -} -export interface TxDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; - value: Uint8Array; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorAmino { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - */ - fullname?: string; - /** msgs lists the accepted application messages (sdk.Msg) */ - msgs?: MsgDescriptorAmino[]; -} -export interface TxDescriptorAminoMsg { - type: "cosmos-sdk/TxDescriptor"; - value: TxDescriptorAmino; -} -/** TxDescriptor describes the accepted transaction type */ -export interface TxDescriptorSDKType { - fullname: string; - msgs: MsgDescriptorSDKType[]; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptor { - /** sign_modes defines the supported signature algorithm */ - signModes: SigningModeDescriptor[]; -} -export interface AuthnDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - value: Uint8Array; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorAmino { - /** sign_modes defines the supported signature algorithm */ - sign_modes?: SigningModeDescriptorAmino[]; -} -export interface AuthnDescriptorAminoMsg { - type: "cosmos-sdk/AuthnDescriptor"; - value: AuthnDescriptorAmino; -} -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - */ -export interface AuthnDescriptorSDKType { - sign_modes: SigningModeDescriptorSDKType[]; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptor { - /** name defines the unique name of the signing mode */ - name: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authnInfoProviderMethodFullname: string; -} -export interface SigningModeDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - value: Uint8Array; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorAmino { - /** name defines the unique name of the signing mode */ - name?: string; - /** number is the unique int32 identifier for the sign_mode enum */ - number?: number; - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - */ - authn_info_provider_method_fullname?: string; -} -export interface SigningModeDescriptorAminoMsg { - type: "cosmos-sdk/SigningModeDescriptor"; - value: SigningModeDescriptorAmino; -} -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - */ -export interface SigningModeDescriptorSDKType { - name: string; - number: number; - authn_info_provider_method_fullname: string; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptor { - /** id is the chain id */ - id: string; -} -export interface ChainDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; - value: Uint8Array; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorAmino { - /** id is the chain id */ - id?: string; -} -export interface ChainDescriptorAminoMsg { - type: "cosmos-sdk/ChainDescriptor"; - value: ChainDescriptorAmino; -} -/** ChainDescriptor describes chain information of the application */ -export interface ChainDescriptorSDKType { - id: string; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptor { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces: InterfaceDescriptor[]; -} -export interface CodecDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; - value: Uint8Array; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorAmino { - /** interfaces is a list of the registerted interfaces descriptors */ - interfaces?: InterfaceDescriptorAmino[]; -} -export interface CodecDescriptorAminoMsg { - type: "cosmos-sdk/CodecDescriptor"; - value: CodecDescriptorAmino; -} -/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ -export interface CodecDescriptorSDKType { - interfaces: InterfaceDescriptorSDKType[]; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptor { - /** fullname is the name of the interface */ - fullname: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interfaceImplementers: InterfaceImplementerDescriptor[]; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - value: Uint8Array; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorAmino { - /** fullname is the name of the interface */ - fullname?: string; - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - */ - interface_accepting_messages?: InterfaceAcceptingMessageDescriptorAmino[]; - /** interface_implementers is a list of the descriptors of the interface implementers */ - interface_implementers?: InterfaceImplementerDescriptorAmino[]; -} -export interface InterfaceDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** InterfaceDescriptor describes the implementation of an interface */ -export interface InterfaceDescriptorSDKType { - fullname: string; - interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[]; - interface_implementers: InterfaceImplementerDescriptorSDKType[]; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptor { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - typeUrl: string; -} -export interface InterfaceImplementerDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - value: Uint8Array; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorAmino { - /** fullname is the protobuf queryable name of the interface implementer */ - fullname?: string; - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - */ - type_url?: string; -} -export interface InterfaceImplementerDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceImplementerDescriptor"; - value: InterfaceImplementerDescriptorAmino; -} -/** InterfaceImplementerDescriptor describes an interface implementer */ -export interface InterfaceImplementerDescriptorSDKType { - fullname: string; - type_url: string; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptor { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - fieldDescriptorNames: string[]; -} -export interface InterfaceAcceptingMessageDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - value: Uint8Array; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorAmino { - /** fullname is the protobuf fullname of the type containing the interface */ - fullname?: string; - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - */ - field_descriptor_names?: string[]; -} -export interface InterfaceAcceptingMessageDescriptorAminoMsg { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor"; - value: InterfaceAcceptingMessageDescriptorAmino; -} -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - */ -export interface InterfaceAcceptingMessageDescriptorSDKType { - fullname: string; - field_descriptor_names: string[]; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptor { - /** bech32_account_address_prefix is the account address prefix */ - bech32AccountAddressPrefix: string; -} -export interface ConfigurationDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - value: Uint8Array; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorAmino { - /** bech32_account_address_prefix is the account address prefix */ - bech32_account_address_prefix?: string; -} -export interface ConfigurationDescriptorAminoMsg { - type: "cosmos-sdk/ConfigurationDescriptor"; - value: ConfigurationDescriptorAmino; -} -/** ConfigurationDescriptor contains metadata information on the sdk.Config */ -export interface ConfigurationDescriptorSDKType { - bech32_account_address_prefix: string; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptor { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msgTypeUrl: string; -} -export interface MsgDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; - value: Uint8Array; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorAmino { - /** msg_type_url contains the TypeURL of a sdk.Msg. */ - msg_type_url?: string; -} -export interface MsgDescriptorAminoMsg { - type: "cosmos-sdk/MsgDescriptor"; - value: MsgDescriptorAmino; -} -/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ -export interface MsgDescriptorSDKType { - msg_type_url: string; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequest { -} -export interface GetAuthnDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - value: Uint8Array; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestAmino { -} -export interface GetAuthnDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorRequest"; - value: GetAuthnDescriptorRequestAmino; -} -/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorRequestSDKType { -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponse { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptor; -} -export interface GetAuthnDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - value: Uint8Array; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseAmino { - /** authn describes how to authenticate to the application when sending transactions */ - authn?: AuthnDescriptorAmino; -} -export interface GetAuthnDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetAuthnDescriptorResponse"; - value: GetAuthnDescriptorResponseAmino; -} -/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ -export interface GetAuthnDescriptorResponseSDKType { - authn?: AuthnDescriptorSDKType; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequest { -} -export interface GetChainDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - value: Uint8Array; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestAmino { -} -export interface GetChainDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetChainDescriptorRequest"; - value: GetChainDescriptorRequestAmino; -} -/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ -export interface GetChainDescriptorRequestSDKType { -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponse { - /** chain describes application chain information */ - chain?: ChainDescriptor; -} -export interface GetChainDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - value: Uint8Array; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseAmino { - /** chain describes application chain information */ - chain?: ChainDescriptorAmino; -} -export interface GetChainDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetChainDescriptorResponse"; - value: GetChainDescriptorResponseAmino; -} -/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ -export interface GetChainDescriptorResponseSDKType { - chain?: ChainDescriptorSDKType; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequest { -} -export interface GetCodecDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - value: Uint8Array; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestAmino { -} -export interface GetCodecDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorRequest"; - value: GetCodecDescriptorRequestAmino; -} -/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorRequestSDKType { -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponse { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptor; -} -export interface GetCodecDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - value: Uint8Array; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseAmino { - /** codec describes the application codec such as registered interfaces and implementations */ - codec?: CodecDescriptorAmino; -} -export interface GetCodecDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetCodecDescriptorResponse"; - value: GetCodecDescriptorResponseAmino; -} -/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ -export interface GetCodecDescriptorResponseSDKType { - codec?: CodecDescriptorSDKType; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequest { -} -export interface GetConfigurationDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - value: Uint8Array; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestAmino { -} -export interface GetConfigurationDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorRequest"; - value: GetConfigurationDescriptorRequestAmino; -} -/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorRequestSDKType { -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponse { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptor; -} -export interface GetConfigurationDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - value: Uint8Array; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseAmino { - /** config describes the application's sdk.Config */ - config?: ConfigurationDescriptorAmino; -} -export interface GetConfigurationDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetConfigurationDescriptorResponse"; - value: GetConfigurationDescriptorResponseAmino; -} -/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ -export interface GetConfigurationDescriptorResponseSDKType { - config?: ConfigurationDescriptorSDKType; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequest { -} -export interface GetQueryServicesDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestAmino { -} -export interface GetQueryServicesDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest"; - value: GetQueryServicesDescriptorRequestAmino; -} -/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorRequestSDKType { -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponse { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptor; -} -export interface GetQueryServicesDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - value: Uint8Array; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseAmino { - /** queries provides information on the available queryable services */ - queries?: QueryServicesDescriptorAmino; -} -export interface GetQueryServicesDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse"; - value: GetQueryServicesDescriptorResponseAmino; -} -/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ -export interface GetQueryServicesDescriptorResponseSDKType { - queries?: QueryServicesDescriptorSDKType; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequest { -} -export interface GetTxDescriptorRequestProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - value: Uint8Array; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestAmino { -} -export interface GetTxDescriptorRequestAminoMsg { - type: "cosmos-sdk/GetTxDescriptorRequest"; - value: GetTxDescriptorRequestAmino; -} -/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ -export interface GetTxDescriptorRequestSDKType { -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponse { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptor; -} -export interface GetTxDescriptorResponseProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - value: Uint8Array; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseAmino { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - */ - tx?: TxDescriptorAmino; -} -export interface GetTxDescriptorResponseAminoMsg { - type: "cosmos-sdk/GetTxDescriptorResponse"; - value: GetTxDescriptorResponseAmino; -} -/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ -export interface GetTxDescriptorResponseSDKType { - tx?: TxDescriptorSDKType; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptor { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - queryServices: QueryServiceDescriptor[]; -} -export interface QueryServicesDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - value: Uint8Array; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorAmino { - /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ - query_services?: QueryServiceDescriptorAmino[]; -} -export interface QueryServicesDescriptorAminoMsg { - type: "cosmos-sdk/QueryServicesDescriptor"; - value: QueryServicesDescriptorAmino; -} -/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ -export interface QueryServicesDescriptorSDKType { - query_services: QueryServiceDescriptorSDKType[]; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptor { - /** fullname is the protobuf fullname of the service descriptor */ - fullname: string; - /** is_module describes if this service is actually exposed by an application's module */ - isModule: boolean; - /** methods provides a list of query service methods */ - methods: QueryMethodDescriptor[]; -} -export interface QueryServiceDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - value: Uint8Array; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorAmino { - /** fullname is the protobuf fullname of the service descriptor */ - fullname?: string; - /** is_module describes if this service is actually exposed by an application's module */ - is_module?: boolean; - /** methods provides a list of query service methods */ - methods?: QueryMethodDescriptorAmino[]; -} -export interface QueryServiceDescriptorAminoMsg { - type: "cosmos-sdk/QueryServiceDescriptor"; - value: QueryServiceDescriptorAmino; -} -/** QueryServiceDescriptor describes a cosmos-sdk queryable service */ -export interface QueryServiceDescriptorSDKType { - fullname: string; - is_module: boolean; - methods: QueryMethodDescriptorSDKType[]; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptor { - /** name is the protobuf name (not fullname) of the method */ - name: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - fullQueryPath: string; -} -export interface QueryMethodDescriptorProtoMsg { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - value: Uint8Array; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorAmino { - /** name is the protobuf name (not fullname) of the method */ - name?: string; - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - */ - full_query_path?: string; -} -export interface QueryMethodDescriptorAminoMsg { - type: "cosmos-sdk/QueryMethodDescriptor"; - value: QueryMethodDescriptorAmino; -} -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - */ -export interface QueryMethodDescriptorSDKType { - name: string; - full_query_path: string; -} -export declare const AppDescriptor: { - typeUrl: string; - encode(message: AppDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AppDescriptor; - fromPartial(object: Partial): AppDescriptor; - fromAmino(object: AppDescriptorAmino): AppDescriptor; - toAmino(message: AppDescriptor): AppDescriptorAmino; - fromAminoMsg(object: AppDescriptorAminoMsg): AppDescriptor; - toAminoMsg(message: AppDescriptor): AppDescriptorAminoMsg; - fromProtoMsg(message: AppDescriptorProtoMsg): AppDescriptor; - toProto(message: AppDescriptor): Uint8Array; - toProtoMsg(message: AppDescriptor): AppDescriptorProtoMsg; -}; -export declare const TxDescriptor: { - typeUrl: string; - encode(message: TxDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxDescriptor; - fromPartial(object: Partial): TxDescriptor; - fromAmino(object: TxDescriptorAmino): TxDescriptor; - toAmino(message: TxDescriptor): TxDescriptorAmino; - fromAminoMsg(object: TxDescriptorAminoMsg): TxDescriptor; - toAminoMsg(message: TxDescriptor): TxDescriptorAminoMsg; - fromProtoMsg(message: TxDescriptorProtoMsg): TxDescriptor; - toProto(message: TxDescriptor): Uint8Array; - toProtoMsg(message: TxDescriptor): TxDescriptorProtoMsg; -}; -export declare const AuthnDescriptor: { - typeUrl: string; - encode(message: AuthnDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuthnDescriptor; - fromPartial(object: Partial): AuthnDescriptor; - fromAmino(object: AuthnDescriptorAmino): AuthnDescriptor; - toAmino(message: AuthnDescriptor): AuthnDescriptorAmino; - fromAminoMsg(object: AuthnDescriptorAminoMsg): AuthnDescriptor; - toAminoMsg(message: AuthnDescriptor): AuthnDescriptorAminoMsg; - fromProtoMsg(message: AuthnDescriptorProtoMsg): AuthnDescriptor; - toProto(message: AuthnDescriptor): Uint8Array; - toProtoMsg(message: AuthnDescriptor): AuthnDescriptorProtoMsg; -}; -export declare const SigningModeDescriptor: { - typeUrl: string; - encode(message: SigningModeDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SigningModeDescriptor; - fromPartial(object: Partial): SigningModeDescriptor; - fromAmino(object: SigningModeDescriptorAmino): SigningModeDescriptor; - toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino; - fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor; - toAminoMsg(message: SigningModeDescriptor): SigningModeDescriptorAminoMsg; - fromProtoMsg(message: SigningModeDescriptorProtoMsg): SigningModeDescriptor; - toProto(message: SigningModeDescriptor): Uint8Array; - toProtoMsg(message: SigningModeDescriptor): SigningModeDescriptorProtoMsg; -}; -export declare const ChainDescriptor: { - typeUrl: string; - encode(message: ChainDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ChainDescriptor; - fromPartial(object: Partial): ChainDescriptor; - fromAmino(object: ChainDescriptorAmino): ChainDescriptor; - toAmino(message: ChainDescriptor): ChainDescriptorAmino; - fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor; - toAminoMsg(message: ChainDescriptor): ChainDescriptorAminoMsg; - fromProtoMsg(message: ChainDescriptorProtoMsg): ChainDescriptor; - toProto(message: ChainDescriptor): Uint8Array; - toProtoMsg(message: ChainDescriptor): ChainDescriptorProtoMsg; -}; -export declare const CodecDescriptor: { - typeUrl: string; - encode(message: CodecDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CodecDescriptor; - fromPartial(object: Partial): CodecDescriptor; - fromAmino(object: CodecDescriptorAmino): CodecDescriptor; - toAmino(message: CodecDescriptor): CodecDescriptorAmino; - fromAminoMsg(object: CodecDescriptorAminoMsg): CodecDescriptor; - toAminoMsg(message: CodecDescriptor): CodecDescriptorAminoMsg; - fromProtoMsg(message: CodecDescriptorProtoMsg): CodecDescriptor; - toProto(message: CodecDescriptor): Uint8Array; - toProtoMsg(message: CodecDescriptor): CodecDescriptorProtoMsg; -}; -export declare const InterfaceDescriptor: { - typeUrl: string; - encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; - fromPartial(object: Partial): InterfaceDescriptor; - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; - toAminoMsg(message: InterfaceDescriptor): InterfaceDescriptorAminoMsg; - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; - toProto(message: InterfaceDescriptor): Uint8Array; - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; -}; -export declare const InterfaceImplementerDescriptor: { - typeUrl: string; - encode(message: InterfaceImplementerDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceImplementerDescriptor; - fromPartial(object: Partial): InterfaceImplementerDescriptor; - fromAmino(object: InterfaceImplementerDescriptorAmino): InterfaceImplementerDescriptor; - toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino; - fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor; - toAminoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAminoMsg; - fromProtoMsg(message: InterfaceImplementerDescriptorProtoMsg): InterfaceImplementerDescriptor; - toProto(message: InterfaceImplementerDescriptor): Uint8Array; - toProtoMsg(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorProtoMsg; -}; -export declare const InterfaceAcceptingMessageDescriptor: { - typeUrl: string; - encode(message: InterfaceAcceptingMessageDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; - fromPartial(object: Partial): InterfaceAcceptingMessageDescriptor; - fromAmino(object: InterfaceAcceptingMessageDescriptorAmino): InterfaceAcceptingMessageDescriptor; - toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino; - fromAminoMsg(object: InterfaceAcceptingMessageDescriptorAminoMsg): InterfaceAcceptingMessageDescriptor; - toAminoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAminoMsg; - fromProtoMsg(message: InterfaceAcceptingMessageDescriptorProtoMsg): InterfaceAcceptingMessageDescriptor; - toProto(message: InterfaceAcceptingMessageDescriptor): Uint8Array; - toProtoMsg(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorProtoMsg; -}; -export declare const ConfigurationDescriptor: { - typeUrl: string; - encode(message: ConfigurationDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConfigurationDescriptor; - fromPartial(object: Partial): ConfigurationDescriptor; - fromAmino(object: ConfigurationDescriptorAmino): ConfigurationDescriptor; - toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino; - fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor; - toAminoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorAminoMsg; - fromProtoMsg(message: ConfigurationDescriptorProtoMsg): ConfigurationDescriptor; - toProto(message: ConfigurationDescriptor): Uint8Array; - toProtoMsg(message: ConfigurationDescriptor): ConfigurationDescriptorProtoMsg; -}; -export declare const MsgDescriptor: { - typeUrl: string; - encode(message: MsgDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDescriptor; - fromPartial(object: Partial): MsgDescriptor; - fromAmino(object: MsgDescriptorAmino): MsgDescriptor; - toAmino(message: MsgDescriptor): MsgDescriptorAmino; - fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor; - toAminoMsg(message: MsgDescriptor): MsgDescriptorAminoMsg; - fromProtoMsg(message: MsgDescriptorProtoMsg): MsgDescriptor; - toProto(message: MsgDescriptor): Uint8Array; - toProtoMsg(message: MsgDescriptor): MsgDescriptorProtoMsg; -}; -export declare const GetAuthnDescriptorRequest: { - typeUrl: string; - encode(_: GetAuthnDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorRequest; - fromPartial(_: Partial): GetAuthnDescriptorRequest; - fromAmino(_: GetAuthnDescriptorRequestAmino): GetAuthnDescriptorRequest; - toAmino(_: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAmino; - fromAminoMsg(object: GetAuthnDescriptorRequestAminoMsg): GetAuthnDescriptorRequest; - toAminoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestAminoMsg; - fromProtoMsg(message: GetAuthnDescriptorRequestProtoMsg): GetAuthnDescriptorRequest; - toProto(message: GetAuthnDescriptorRequest): Uint8Array; - toProtoMsg(message: GetAuthnDescriptorRequest): GetAuthnDescriptorRequestProtoMsg; -}; -export declare const GetAuthnDescriptorResponse: { - typeUrl: string; - encode(message: GetAuthnDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetAuthnDescriptorResponse; - fromPartial(object: Partial): GetAuthnDescriptorResponse; - fromAmino(object: GetAuthnDescriptorResponseAmino): GetAuthnDescriptorResponse; - toAmino(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAmino; - fromAminoMsg(object: GetAuthnDescriptorResponseAminoMsg): GetAuthnDescriptorResponse; - toAminoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseAminoMsg; - fromProtoMsg(message: GetAuthnDescriptorResponseProtoMsg): GetAuthnDescriptorResponse; - toProto(message: GetAuthnDescriptorResponse): Uint8Array; - toProtoMsg(message: GetAuthnDescriptorResponse): GetAuthnDescriptorResponseProtoMsg; -}; -export declare const GetChainDescriptorRequest: { - typeUrl: string; - encode(_: GetChainDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorRequest; - fromPartial(_: Partial): GetChainDescriptorRequest; - fromAmino(_: GetChainDescriptorRequestAmino): GetChainDescriptorRequest; - toAmino(_: GetChainDescriptorRequest): GetChainDescriptorRequestAmino; - fromAminoMsg(object: GetChainDescriptorRequestAminoMsg): GetChainDescriptorRequest; - toAminoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestAminoMsg; - fromProtoMsg(message: GetChainDescriptorRequestProtoMsg): GetChainDescriptorRequest; - toProto(message: GetChainDescriptorRequest): Uint8Array; - toProtoMsg(message: GetChainDescriptorRequest): GetChainDescriptorRequestProtoMsg; -}; -export declare const GetChainDescriptorResponse: { - typeUrl: string; - encode(message: GetChainDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetChainDescriptorResponse; - fromPartial(object: Partial): GetChainDescriptorResponse; - fromAmino(object: GetChainDescriptorResponseAmino): GetChainDescriptorResponse; - toAmino(message: GetChainDescriptorResponse): GetChainDescriptorResponseAmino; - fromAminoMsg(object: GetChainDescriptorResponseAminoMsg): GetChainDescriptorResponse; - toAminoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseAminoMsg; - fromProtoMsg(message: GetChainDescriptorResponseProtoMsg): GetChainDescriptorResponse; - toProto(message: GetChainDescriptorResponse): Uint8Array; - toProtoMsg(message: GetChainDescriptorResponse): GetChainDescriptorResponseProtoMsg; -}; -export declare const GetCodecDescriptorRequest: { - typeUrl: string; - encode(_: GetCodecDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorRequest; - fromPartial(_: Partial): GetCodecDescriptorRequest; - fromAmino(_: GetCodecDescriptorRequestAmino): GetCodecDescriptorRequest; - toAmino(_: GetCodecDescriptorRequest): GetCodecDescriptorRequestAmino; - fromAminoMsg(object: GetCodecDescriptorRequestAminoMsg): GetCodecDescriptorRequest; - toAminoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestAminoMsg; - fromProtoMsg(message: GetCodecDescriptorRequestProtoMsg): GetCodecDescriptorRequest; - toProto(message: GetCodecDescriptorRequest): Uint8Array; - toProtoMsg(message: GetCodecDescriptorRequest): GetCodecDescriptorRequestProtoMsg; -}; -export declare const GetCodecDescriptorResponse: { - typeUrl: string; - encode(message: GetCodecDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetCodecDescriptorResponse; - fromPartial(object: Partial): GetCodecDescriptorResponse; - fromAmino(object: GetCodecDescriptorResponseAmino): GetCodecDescriptorResponse; - toAmino(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAmino; - fromAminoMsg(object: GetCodecDescriptorResponseAminoMsg): GetCodecDescriptorResponse; - toAminoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseAminoMsg; - fromProtoMsg(message: GetCodecDescriptorResponseProtoMsg): GetCodecDescriptorResponse; - toProto(message: GetCodecDescriptorResponse): Uint8Array; - toProtoMsg(message: GetCodecDescriptorResponse): GetCodecDescriptorResponseProtoMsg; -}; -export declare const GetConfigurationDescriptorRequest: { - typeUrl: string; - encode(_: GetConfigurationDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; - fromPartial(_: Partial): GetConfigurationDescriptorRequest; - fromAmino(_: GetConfigurationDescriptorRequestAmino): GetConfigurationDescriptorRequest; - toAmino(_: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAmino; - fromAminoMsg(object: GetConfigurationDescriptorRequestAminoMsg): GetConfigurationDescriptorRequest; - toAminoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestAminoMsg; - fromProtoMsg(message: GetConfigurationDescriptorRequestProtoMsg): GetConfigurationDescriptorRequest; - toProto(message: GetConfigurationDescriptorRequest): Uint8Array; - toProtoMsg(message: GetConfigurationDescriptorRequest): GetConfigurationDescriptorRequestProtoMsg; -}; -export declare const GetConfigurationDescriptorResponse: { - typeUrl: string; - encode(message: GetConfigurationDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; - fromPartial(object: Partial): GetConfigurationDescriptorResponse; - fromAmino(object: GetConfigurationDescriptorResponseAmino): GetConfigurationDescriptorResponse; - toAmino(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAmino; - fromAminoMsg(object: GetConfigurationDescriptorResponseAminoMsg): GetConfigurationDescriptorResponse; - toAminoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseAminoMsg; - fromProtoMsg(message: GetConfigurationDescriptorResponseProtoMsg): GetConfigurationDescriptorResponse; - toProto(message: GetConfigurationDescriptorResponse): Uint8Array; - toProtoMsg(message: GetConfigurationDescriptorResponse): GetConfigurationDescriptorResponseProtoMsg; -}; -export declare const GetQueryServicesDescriptorRequest: { - typeUrl: string; - encode(_: GetQueryServicesDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; - fromPartial(_: Partial): GetQueryServicesDescriptorRequest; - fromAmino(_: GetQueryServicesDescriptorRequestAmino): GetQueryServicesDescriptorRequest; - toAmino(_: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAmino; - fromAminoMsg(object: GetQueryServicesDescriptorRequestAminoMsg): GetQueryServicesDescriptorRequest; - toAminoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestAminoMsg; - fromProtoMsg(message: GetQueryServicesDescriptorRequestProtoMsg): GetQueryServicesDescriptorRequest; - toProto(message: GetQueryServicesDescriptorRequest): Uint8Array; - toProtoMsg(message: GetQueryServicesDescriptorRequest): GetQueryServicesDescriptorRequestProtoMsg; -}; -export declare const GetQueryServicesDescriptorResponse: { - typeUrl: string; - encode(message: GetQueryServicesDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; - fromPartial(object: Partial): GetQueryServicesDescriptorResponse; - fromAmino(object: GetQueryServicesDescriptorResponseAmino): GetQueryServicesDescriptorResponse; - toAmino(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAmino; - fromAminoMsg(object: GetQueryServicesDescriptorResponseAminoMsg): GetQueryServicesDescriptorResponse; - toAminoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseAminoMsg; - fromProtoMsg(message: GetQueryServicesDescriptorResponseProtoMsg): GetQueryServicesDescriptorResponse; - toProto(message: GetQueryServicesDescriptorResponse): Uint8Array; - toProtoMsg(message: GetQueryServicesDescriptorResponse): GetQueryServicesDescriptorResponseProtoMsg; -}; -export declare const GetTxDescriptorRequest: { - typeUrl: string; - encode(_: GetTxDescriptorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorRequest; - fromPartial(_: Partial): GetTxDescriptorRequest; - fromAmino(_: GetTxDescriptorRequestAmino): GetTxDescriptorRequest; - toAmino(_: GetTxDescriptorRequest): GetTxDescriptorRequestAmino; - fromAminoMsg(object: GetTxDescriptorRequestAminoMsg): GetTxDescriptorRequest; - toAminoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestAminoMsg; - fromProtoMsg(message: GetTxDescriptorRequestProtoMsg): GetTxDescriptorRequest; - toProto(message: GetTxDescriptorRequest): Uint8Array; - toProtoMsg(message: GetTxDescriptorRequest): GetTxDescriptorRequestProtoMsg; -}; -export declare const GetTxDescriptorResponse: { - typeUrl: string; - encode(message: GetTxDescriptorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxDescriptorResponse; - fromPartial(object: Partial): GetTxDescriptorResponse; - fromAmino(object: GetTxDescriptorResponseAmino): GetTxDescriptorResponse; - toAmino(message: GetTxDescriptorResponse): GetTxDescriptorResponseAmino; - fromAminoMsg(object: GetTxDescriptorResponseAminoMsg): GetTxDescriptorResponse; - toAminoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseAminoMsg; - fromProtoMsg(message: GetTxDescriptorResponseProtoMsg): GetTxDescriptorResponse; - toProto(message: GetTxDescriptorResponse): Uint8Array; - toProtoMsg(message: GetTxDescriptorResponse): GetTxDescriptorResponseProtoMsg; -}; -export declare const QueryServicesDescriptor: { - typeUrl: string; - encode(message: QueryServicesDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryServicesDescriptor; - fromPartial(object: Partial): QueryServicesDescriptor; - fromAmino(object: QueryServicesDescriptorAmino): QueryServicesDescriptor; - toAmino(message: QueryServicesDescriptor): QueryServicesDescriptorAmino; - fromAminoMsg(object: QueryServicesDescriptorAminoMsg): QueryServicesDescriptor; - toAminoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorAminoMsg; - fromProtoMsg(message: QueryServicesDescriptorProtoMsg): QueryServicesDescriptor; - toProto(message: QueryServicesDescriptor): Uint8Array; - toProtoMsg(message: QueryServicesDescriptor): QueryServicesDescriptorProtoMsg; -}; -export declare const QueryServiceDescriptor: { - typeUrl: string; - encode(message: QueryServiceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryServiceDescriptor; - fromPartial(object: Partial): QueryServiceDescriptor; - fromAmino(object: QueryServiceDescriptorAmino): QueryServiceDescriptor; - toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino; - fromAminoMsg(object: QueryServiceDescriptorAminoMsg): QueryServiceDescriptor; - toAminoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorAminoMsg; - fromProtoMsg(message: QueryServiceDescriptorProtoMsg): QueryServiceDescriptor; - toProto(message: QueryServiceDescriptor): Uint8Array; - toProtoMsg(message: QueryServiceDescriptor): QueryServiceDescriptorProtoMsg; -}; -export declare const QueryMethodDescriptor: { - typeUrl: string; - encode(message: QueryMethodDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryMethodDescriptor; - fromPartial(object: Partial): QueryMethodDescriptor; - fromAmino(object: QueryMethodDescriptorAmino): QueryMethodDescriptor; - toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino; - fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor; - toAminoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorAminoMsg; - fromProtoMsg(message: QueryMethodDescriptorProtoMsg): QueryMethodDescriptor; - toProto(message: QueryMethodDescriptor): Uint8Array; - toProtoMsg(message: QueryMethodDescriptor): QueryMethodDescriptorProtoMsg; -}; diff --git a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js b/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js deleted file mode 100644 index 36490b51..00000000 --- a/packages/api/dist/cosmos/base/reflection/v2alpha1/reflection.js +++ /dev/null @@ -1,1925 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryMethodDescriptor = exports.QueryServiceDescriptor = exports.QueryServicesDescriptor = exports.GetTxDescriptorResponse = exports.GetTxDescriptorRequest = exports.GetQueryServicesDescriptorResponse = exports.GetQueryServicesDescriptorRequest = exports.GetConfigurationDescriptorResponse = exports.GetConfigurationDescriptorRequest = exports.GetCodecDescriptorResponse = exports.GetCodecDescriptorRequest = exports.GetChainDescriptorResponse = exports.GetChainDescriptorRequest = exports.GetAuthnDescriptorResponse = exports.GetAuthnDescriptorRequest = exports.MsgDescriptor = exports.ConfigurationDescriptor = exports.InterfaceAcceptingMessageDescriptor = exports.InterfaceImplementerDescriptor = exports.InterfaceDescriptor = exports.CodecDescriptor = exports.ChainDescriptor = exports.SigningModeDescriptor = exports.AuthnDescriptor = exports.TxDescriptor = exports.AppDescriptor = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseAppDescriptor() { - return { - authn: undefined, - chain: undefined, - codec: undefined, - configuration: undefined, - queryServices: undefined, - tx: undefined - }; -} -exports.AppDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authn !== undefined) { - exports.AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - if (message.chain !== undefined) { - exports.ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); - } - if (message.codec !== undefined) { - exports.CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); - } - if (message.configuration !== undefined) { - exports.ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); - } - if (message.queryServices !== undefined) { - exports.QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); - } - if (message.tx !== undefined) { - exports.TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAppDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = exports.AuthnDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.chain = exports.ChainDescriptor.decode(reader, reader.uint32()); - break; - case 3: - message.codec = exports.CodecDescriptor.decode(reader, reader.uint32()); - break; - case 4: - message.configuration = exports.ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - case 5: - message.queryServices = exports.QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - case 6: - message.tx = exports.TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAppDescriptor(); - message.authn = object.authn !== undefined && object.authn !== null ? exports.AuthnDescriptor.fromPartial(object.authn) : undefined; - message.chain = object.chain !== undefined && object.chain !== null ? exports.ChainDescriptor.fromPartial(object.chain) : undefined; - message.codec = object.codec !== undefined && object.codec !== null ? exports.CodecDescriptor.fromPartial(object.codec) : undefined; - message.configuration = object.configuration !== undefined && object.configuration !== null ? exports.ConfigurationDescriptor.fromPartial(object.configuration) : undefined; - message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? exports.QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; - message.tx = object.tx !== undefined && object.tx !== null ? exports.TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAppDescriptor(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = exports.AuthnDescriptor.fromAmino(object.authn); - } - if (object.chain !== undefined && object.chain !== null) { - message.chain = exports.ChainDescriptor.fromAmino(object.chain); - } - if (object.codec !== undefined && object.codec !== null) { - message.codec = exports.CodecDescriptor.fromAmino(object.codec); - } - if (object.configuration !== undefined && object.configuration !== null) { - message.configuration = exports.ConfigurationDescriptor.fromAmino(object.configuration); - } - if (object.query_services !== undefined && object.query_services !== null) { - message.queryServices = exports.QueryServicesDescriptor.fromAmino(object.query_services); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = exports.TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authn = message.authn ? exports.AuthnDescriptor.toAmino(message.authn) : undefined; - obj.chain = message.chain ? exports.ChainDescriptor.toAmino(message.chain) : undefined; - obj.codec = message.codec ? exports.CodecDescriptor.toAmino(message.codec) : undefined; - obj.configuration = message.configuration ? exports.ConfigurationDescriptor.toAmino(message.configuration) : undefined; - obj.query_services = message.queryServices ? exports.QueryServicesDescriptor.toAmino(message.queryServices) : undefined; - obj.tx = message.tx ? exports.TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AppDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AppDescriptor", - value: exports.AppDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AppDescriptor.decode(message.value); - }, - toProto(message) { - return exports.AppDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - value: exports.AppDescriptor.encode(message).finish() - }; - } -}; -function createBaseTxDescriptor() { - return { - fullname: "", - msgs: [] - }; -} -exports.TxDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.msgs) { - exports.MsgDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.msgs.push(exports.MsgDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxDescriptor(); - message.fullname = object.fullname ?? ""; - message.msgs = object.msgs?.map(e => exports.MsgDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.msgs = object.msgs?.map(e => exports.MsgDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? exports.MsgDescriptor.toAmino(e) : undefined); - } - else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.TxDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxDescriptor", - value: exports.TxDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TxDescriptor.decode(message.value); - }, - toProto(message) { - return exports.TxDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - value: exports.TxDescriptor.encode(message).finish() - }; - } -}; -function createBaseAuthnDescriptor() { - return { - signModes: [] - }; -} -exports.AuthnDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.signModes) { - exports.SigningModeDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthnDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signModes.push(exports.SigningModeDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuthnDescriptor(); - message.signModes = object.signModes?.map(e => exports.SigningModeDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseAuthnDescriptor(); - message.signModes = object.sign_modes?.map(e => exports.SigningModeDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signModes) { - obj.sign_modes = message.signModes.map(e => e ? exports.SigningModeDescriptor.toAmino(e) : undefined); - } - else { - obj.sign_modes = message.signModes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.AuthnDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuthnDescriptor", - value: exports.AuthnDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AuthnDescriptor.decode(message.value); - }, - toProto(message) { - return exports.AuthnDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - value: exports.AuthnDescriptor.encode(message).finish() - }; - } -}; -function createBaseSigningModeDescriptor() { - return { - name: "", - number: 0, - authnInfoProviderMethodFullname: "" - }; -} -exports.SigningModeDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.authnInfoProviderMethodFullname !== "") { - writer.uint32(26).string(message.authnInfoProviderMethodFullname); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSigningModeDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.authnInfoProviderMethodFullname = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSigningModeDescriptor(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseSigningModeDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { - message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; - return obj; - }, - fromAminoMsg(object) { - return exports.SigningModeDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SigningModeDescriptor", - value: exports.SigningModeDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SigningModeDescriptor.decode(message.value); - }, - toProto(message) { - return exports.SigningModeDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - value: exports.SigningModeDescriptor.encode(message).finish() - }; - } -}; -function createBaseChainDescriptor() { - return { - id: "" - }; -} -exports.ChainDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseChainDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseChainDescriptor(); - message.id = object.id ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseChainDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return exports.ChainDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ChainDescriptor", - value: exports.ChainDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ChainDescriptor.decode(message.value); - }, - toProto(message) { - return exports.ChainDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - value: exports.ChainDescriptor.encode(message).finish() - }; - } -}; -function createBaseCodecDescriptor() { - return { - interfaces: [] - }; -} -exports.CodecDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.interfaces) { - exports.InterfaceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCodecDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaces.push(exports.InterfaceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => exports.InterfaceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => exports.InterfaceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.interfaces) { - obj.interfaces = message.interfaces.map(e => e ? exports.InterfaceDescriptor.toAmino(e) : undefined); - } - else { - obj.interfaces = message.interfaces; - } - return obj; - }, - fromAminoMsg(object) { - return exports.CodecDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CodecDescriptor", - value: exports.CodecDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CodecDescriptor.decode(message.value); - }, - toProto(message) { - return exports.CodecDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - value: exports.CodecDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceDescriptor() { - return { - fullname: "", - interfaceAcceptingMessages: [], - interfaceImplementers: [] - }; -} -exports.InterfaceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.interfaceAcceptingMessages) { - exports.InterfaceAcceptingMessageDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.interfaceImplementers) { - exports.InterfaceImplementerDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.interfaceAcceptingMessages.push(exports.InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.interfaceImplementers.push(exports.InterfaceImplementerDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceDescriptor(); - message.fullname = object.fullname ?? ""; - message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => exports.InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; - message.interfaceImplementers = object.interfaceImplementers?.map(e => exports.InterfaceImplementerDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => exports.InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; - message.interfaceImplementers = object.interface_implementers?.map(e => exports.InterfaceImplementerDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.interfaceAcceptingMessages) { - obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? exports.InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); - } - else { - obj.interface_accepting_messages = message.interfaceAcceptingMessages; - } - if (message.interfaceImplementers) { - obj.interface_implementers = message.interfaceImplementers.map(e => e ? exports.InterfaceImplementerDescriptor.toAmino(e) : undefined); - } - else { - obj.interface_implementers = message.interfaceImplementers; - } - return obj; - }, - fromAminoMsg(object) { - return exports.InterfaceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceDescriptor", - value: exports.InterfaceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.InterfaceDescriptor.decode(message.value); - }, - toProto(message) { - return exports.InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - value: exports.InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceImplementerDescriptor() { - return { - fullname: "", - typeUrl: "" - }; -} -exports.InterfaceImplementerDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.typeUrl !== "") { - writer.uint32(18).string(message.typeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceImplementerDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.typeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceImplementerDescriptor(); - message.fullname = object.fullname ?? ""; - message.typeUrl = object.typeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceImplementerDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.type_url !== undefined && object.type_url !== null) { - message.typeUrl = object.type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; - return obj; - }, - fromAminoMsg(object) { - return exports.InterfaceImplementerDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceImplementerDescriptor", - value: exports.InterfaceImplementerDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.InterfaceImplementerDescriptor.decode(message.value); - }, - toProto(message) { - return exports.InterfaceImplementerDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - value: exports.InterfaceImplementerDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceAcceptingMessageDescriptor() { - return { - fullname: "", - fieldDescriptorNames: [] - }; -} -exports.InterfaceAcceptingMessageDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.fieldDescriptorNames) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceAcceptingMessageDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.fieldDescriptorNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - message.fullname = object.fullname ?? ""; - message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.fieldDescriptorNames) { - obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); - } - else { - obj.field_descriptor_names = message.fieldDescriptorNames; - } - return obj; - }, - fromAminoMsg(object) { - return exports.InterfaceAcceptingMessageDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", - value: exports.InterfaceAcceptingMessageDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.InterfaceAcceptingMessageDescriptor.decode(message.value); - }, - toProto(message) { - return exports.InterfaceAcceptingMessageDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - value: exports.InterfaceAcceptingMessageDescriptor.encode(message).finish() - }; - } -}; -function createBaseConfigurationDescriptor() { - return { - bech32AccountAddressPrefix: "" - }; -} -exports.ConfigurationDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bech32AccountAddressPrefix !== "") { - writer.uint32(10).string(message.bech32AccountAddressPrefix); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigurationDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32AccountAddressPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConfigurationDescriptor(); - message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConfigurationDescriptor(); - if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { - message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; - return obj; - }, - fromAminoMsg(object) { - return exports.ConfigurationDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigurationDescriptor", - value: exports.ConfigurationDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ConfigurationDescriptor.decode(message.value); - }, - toProto(message) { - return exports.ConfigurationDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - value: exports.ConfigurationDescriptor.encode(message).finish() - }; - } -}; -function createBaseMsgDescriptor() { - return { - msgTypeUrl: "" - }; -} -exports.MsgDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(10).string(message.msgTypeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDescriptor(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDescriptor(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDescriptor", - value: exports.MsgDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDescriptor.decode(message.value); - }, - toProto(message) { - return exports.MsgDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - value: exports.MsgDescriptor.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorRequest() { - return {}; -} -exports.GetAuthnDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetAuthnDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetAuthnDescriptorRequest", - value: exports.GetAuthnDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetAuthnDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetAuthnDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - value: exports.GetAuthnDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorResponse() { - return { - authn: undefined - }; -} -exports.GetAuthnDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authn !== undefined) { - exports.AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = exports.AuthnDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetAuthnDescriptorResponse(); - message.authn = object.authn !== undefined && object.authn !== null ? exports.AuthnDescriptor.fromPartial(object.authn) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetAuthnDescriptorResponse(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = exports.AuthnDescriptor.fromAmino(object.authn); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authn = message.authn ? exports.AuthnDescriptor.toAmino(message.authn) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetAuthnDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetAuthnDescriptorResponse", - value: exports.GetAuthnDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetAuthnDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetAuthnDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - value: exports.GetAuthnDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorRequest() { - return {}; -} -exports.GetChainDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetChainDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetChainDescriptorRequest", - value: exports.GetChainDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetChainDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetChainDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - value: exports.GetChainDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorResponse() { - return { - chain: undefined - }; -} -exports.GetChainDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.chain !== undefined) { - exports.ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chain = exports.ChainDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetChainDescriptorResponse(); - message.chain = object.chain !== undefined && object.chain !== null ? exports.ChainDescriptor.fromPartial(object.chain) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetChainDescriptorResponse(); - if (object.chain !== undefined && object.chain !== null) { - message.chain = exports.ChainDescriptor.fromAmino(object.chain); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chain = message.chain ? exports.ChainDescriptor.toAmino(message.chain) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetChainDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetChainDescriptorResponse", - value: exports.GetChainDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetChainDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetChainDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - value: exports.GetChainDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorRequest() { - return {}; -} -exports.GetCodecDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetCodecDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetCodecDescriptorRequest", - value: exports.GetCodecDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetCodecDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetCodecDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - value: exports.GetCodecDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorResponse() { - return { - codec: undefined - }; -} -exports.GetCodecDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.codec !== undefined) { - exports.CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.codec = exports.CodecDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetCodecDescriptorResponse(); - message.codec = object.codec !== undefined && object.codec !== null ? exports.CodecDescriptor.fromPartial(object.codec) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetCodecDescriptorResponse(); - if (object.codec !== undefined && object.codec !== null) { - message.codec = exports.CodecDescriptor.fromAmino(object.codec); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.codec = message.codec ? exports.CodecDescriptor.toAmino(message.codec) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetCodecDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetCodecDescriptorResponse", - value: exports.GetCodecDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetCodecDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetCodecDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - value: exports.GetCodecDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorRequest() { - return {}; -} -exports.GetConfigurationDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetConfigurationDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetConfigurationDescriptorRequest", - value: exports.GetConfigurationDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetConfigurationDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetConfigurationDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - value: exports.GetConfigurationDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorResponse() { - return { - config: undefined - }; -} -exports.GetConfigurationDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.config !== undefined) { - exports.ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = exports.ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetConfigurationDescriptorResponse(); - message.config = object.config !== undefined && object.config !== null ? exports.ConfigurationDescriptor.fromPartial(object.config) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetConfigurationDescriptorResponse(); - if (object.config !== undefined && object.config !== null) { - message.config = exports.ConfigurationDescriptor.fromAmino(object.config); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.config = message.config ? exports.ConfigurationDescriptor.toAmino(message.config) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetConfigurationDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetConfigurationDescriptorResponse", - value: exports.GetConfigurationDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetConfigurationDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetConfigurationDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - value: exports.GetConfigurationDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorRequest() { - return {}; -} -exports.GetQueryServicesDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetQueryServicesDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest", - value: exports.GetQueryServicesDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetQueryServicesDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetQueryServicesDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - value: exports.GetQueryServicesDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorResponse() { - return { - queries: undefined - }; -} -exports.GetQueryServicesDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.queries !== undefined) { - exports.QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queries = exports.QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetQueryServicesDescriptorResponse(); - message.queries = object.queries !== undefined && object.queries !== null ? exports.QueryServicesDescriptor.fromPartial(object.queries) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetQueryServicesDescriptorResponse(); - if (object.queries !== undefined && object.queries !== null) { - message.queries = exports.QueryServicesDescriptor.fromAmino(object.queries); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.queries = message.queries ? exports.QueryServicesDescriptor.toAmino(message.queries) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetQueryServicesDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse", - value: exports.GetQueryServicesDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetQueryServicesDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetQueryServicesDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - value: exports.GetQueryServicesDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorRequest() { - return {}; -} -exports.GetTxDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxDescriptorRequest", - value: exports.GetTxDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxDescriptorRequest.decode(message.value); - }, - toProto(message) { - return exports.GetTxDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - value: exports.GetTxDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorResponse() { - return { - tx: undefined - }; -} -exports.GetTxDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tx !== undefined) { - exports.TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = exports.TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxDescriptorResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? exports.TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxDescriptorResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = exports.TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? exports.TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxDescriptorResponse", - value: exports.GetTxDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxDescriptorResponse.decode(message.value); - }, - toProto(message) { - return exports.GetTxDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - value: exports.GetTxDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryServicesDescriptor() { - return { - queryServices: [] - }; -} -exports.QueryServicesDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.queryServices) { - exports.QueryServiceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServicesDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queryServices.push(exports.QueryServiceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.queryServices?.map(e => exports.QueryServiceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.query_services?.map(e => exports.QueryServiceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.queryServices) { - obj.query_services = message.queryServices.map(e => e ? exports.QueryServiceDescriptor.toAmino(e) : undefined); - } - else { - obj.query_services = message.queryServices; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryServicesDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryServicesDescriptor", - value: exports.QueryServicesDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryServicesDescriptor.decode(message.value); - }, - toProto(message) { - return exports.QueryServicesDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - value: exports.QueryServicesDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryServiceDescriptor() { - return { - fullname: "", - isModule: false, - methods: [] - }; -} -exports.QueryServiceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.isModule === true) { - writer.uint32(16).bool(message.isModule); - } - for (const v of message.methods) { - exports.QueryMethodDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServiceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.isModule = reader.bool(); - break; - case 3: - message.methods.push(exports.QueryMethodDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryServiceDescriptor(); - message.fullname = object.fullname ?? ""; - message.isModule = object.isModule ?? false; - message.methods = object.methods?.map(e => exports.QueryMethodDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryServiceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.is_module !== undefined && object.is_module !== null) { - message.isModule = object.is_module; - } - message.methods = object.methods?.map(e => exports.QueryMethodDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.is_module = message.isModule === false ? undefined : message.isModule; - if (message.methods) { - obj.methods = message.methods.map(e => e ? exports.QueryMethodDescriptor.toAmino(e) : undefined); - } - else { - obj.methods = message.methods; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryServiceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryServiceDescriptor", - value: exports.QueryServiceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryServiceDescriptor.decode(message.value); - }, - toProto(message) { - return exports.QueryServiceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - value: exports.QueryServiceDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryMethodDescriptor() { - return { - name: "", - fullQueryPath: "" - }; -} -exports.QueryMethodDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.fullQueryPath !== "") { - writer.uint32(18).string(message.fullQueryPath); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryMethodDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.fullQueryPath = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryMethodDescriptor(); - message.name = object.name ?? ""; - message.fullQueryPath = object.fullQueryPath ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryMethodDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.full_query_path !== undefined && object.full_query_path !== null) { - message.fullQueryPath = object.full_query_path; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryMethodDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryMethodDescriptor", - value: exports.QueryMethodDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryMethodDescriptor.decode(message.value); - }, - toProto(message) { - return exports.QueryMethodDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - value: exports.QueryMethodDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/base/v1beta1/coin.d.ts b/packages/api/dist/cosmos/base/v1beta1/coin.d.ts deleted file mode 100644 index 98c4f140..00000000 --- a/packages/api/dist/cosmos/base/v1beta1/coin.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface Coin { - denom: string; - amount: string; -} -export interface CoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.Coin"; - value: Uint8Array; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinAmino { - denom?: string; - amount?: string; -} -export interface CoinAminoMsg { - type: "cosmos-sdk/Coin"; - value: CoinAmino; -} -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CoinSDKType { - denom: string; - amount: string; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoin { - denom: string; - amount: string; -} -export interface DecCoinProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecCoin"; - value: Uint8Array; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinAmino { - denom?: string; - amount?: string; -} -export interface DecCoinAminoMsg { - type: "cosmos-sdk/DecCoin"; - value: DecCoinAmino; -} -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface DecCoinSDKType { - denom: string; - amount: string; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - int: string; -} -export interface IntProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.IntProto"; - value: Uint8Array; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoAmino { - int?: string; -} -export interface IntProtoAminoMsg { - type: "cosmos-sdk/IntProto"; - value: IntProtoAmino; -} -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProtoSDKType { - int: string; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - dec: string; -} -export interface DecProtoProtoMsg { - typeUrl: "/cosmos.base.v1beta1.DecProto"; - value: Uint8Array; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoAmino { - dec?: string; -} -export interface DecProtoAminoMsg { - type: "cosmos-sdk/DecProto"; - value: DecProtoAmino; -} -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProtoSDKType { - dec: string; -} -export declare const Coin: { - typeUrl: string; - encode(message: Coin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Coin; - fromPartial(object: Partial): Coin; - fromAmino(object: CoinAmino): Coin; - toAmino(message: Coin): CoinAmino; - fromAminoMsg(object: CoinAminoMsg): Coin; - toAminoMsg(message: Coin): CoinAminoMsg; - fromProtoMsg(message: CoinProtoMsg): Coin; - toProto(message: Coin): Uint8Array; - toProtoMsg(message: Coin): CoinProtoMsg; -}; -export declare const DecCoin: { - typeUrl: string; - encode(message: DecCoin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecCoin; - fromPartial(object: Partial): DecCoin; - fromAmino(object: DecCoinAmino): DecCoin; - toAmino(message: DecCoin): DecCoinAmino; - fromAminoMsg(object: DecCoinAminoMsg): DecCoin; - toAminoMsg(message: DecCoin): DecCoinAminoMsg; - fromProtoMsg(message: DecCoinProtoMsg): DecCoin; - toProto(message: DecCoin): Uint8Array; - toProtoMsg(message: DecCoin): DecCoinProtoMsg; -}; -export declare const IntProto: { - typeUrl: string; - encode(message: IntProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IntProto; - fromPartial(object: Partial): IntProto; - fromAmino(object: IntProtoAmino): IntProto; - toAmino(message: IntProto): IntProtoAmino; - fromAminoMsg(object: IntProtoAminoMsg): IntProto; - toAminoMsg(message: IntProto): IntProtoAminoMsg; - fromProtoMsg(message: IntProtoProtoMsg): IntProto; - toProto(message: IntProto): Uint8Array; - toProtoMsg(message: IntProto): IntProtoProtoMsg; -}; -export declare const DecProto: { - typeUrl: string; - encode(message: DecProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecProto; - fromPartial(object: Partial): DecProto; - fromAmino(object: DecProtoAmino): DecProto; - toAmino(message: DecProto): DecProtoAmino; - fromAminoMsg(object: DecProtoAminoMsg): DecProto; - toAminoMsg(message: DecProto): DecProtoAminoMsg; - fromProtoMsg(message: DecProtoProtoMsg): DecProto; - toProto(message: DecProto): Uint8Array; - toProtoMsg(message: DecProto): DecProtoProtoMsg; -}; diff --git a/packages/api/dist/cosmos/base/v1beta1/coin.js b/packages/api/dist/cosmos/base/v1beta1/coin.js deleted file mode 100644 index 3d2431bf..00000000 --- a/packages/api/dist/cosmos/base/v1beta1/coin.js +++ /dev/null @@ -1,305 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DecProto = exports.IntProto = exports.DecCoin = exports.Coin = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseCoin() { - return { - denom: "", - amount: "" - }; -} -exports.Coin = { - typeUrl: "/cosmos.base.v1beta1.Coin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.Coin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Coin", - value: exports.Coin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Coin.decode(message.value); - }, - toProto(message) { - return exports.Coin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.Coin", - value: exports.Coin.encode(message).finish() - }; - } -}; -function createBaseDecCoin() { - return { - denom: "", - amount: "" - }; -} -exports.DecCoin = { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDecCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.DecCoin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecCoin", - value: exports.DecCoin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DecCoin.decode(message.value); - }, - toProto(message) { - return exports.DecCoin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - value: exports.DecCoin.encode(message).finish() - }; - } -}; -function createBaseIntProto() { - return { - int: "" - }; -} -exports.IntProto = { - typeUrl: "/cosmos.base.v1beta1.IntProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.int !== "") { - writer.uint32(10).string(message.int); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIntProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.int = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIntProto(); - message.int = object.int ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseIntProto(); - if (object.int !== undefined && object.int !== null) { - message.int = object.int; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.int = message.int === "" ? undefined : message.int; - return obj; - }, - fromAminoMsg(object) { - return exports.IntProto.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IntProto", - value: exports.IntProto.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.IntProto.decode(message.value); - }, - toProto(message) { - return exports.IntProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.IntProto", - value: exports.IntProto.encode(message).finish() - }; - } -}; -function createBaseDecProto() { - return { - dec: "" - }; -} -exports.DecProto = { - typeUrl: "/cosmos.base.v1beta1.DecProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.dec !== "") { - writer.uint32(10).string(message.dec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dec = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecProto(); - message.dec = object.dec ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDecProto(); - if (object.dec !== undefined && object.dec !== null) { - message.dec = object.dec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.dec = message.dec === "" ? undefined : message.dec; - return obj; - }, - fromAminoMsg(object) { - return exports.DecProto.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecProto", - value: exports.DecProto.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DecProto.decode(message.value); - }, - toProto(message) { - return exports.DecProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.DecProto", - value: exports.DecProto.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/bundle.d.ts b/packages/api/dist/cosmos/bundle.d.ts deleted file mode 100644 index d0894196..00000000 --- a/packages/api/dist/cosmos/bundle.d.ts +++ /dev/null @@ -1,7777 +0,0 @@ -import * as _2 from "./app/module/v1alpha1/module"; -import * as _3 from "./auth/v1beta1/auth"; -import * as _4 from "./auth/v1beta1/genesis"; -import * as _5 from "./auth/v1beta1/query"; -import * as _6 from "./authz/v1beta1/authz"; -import * as _7 from "./authz/v1beta1/event"; -import * as _8 from "./authz/v1beta1/genesis"; -import * as _9 from "./authz/v1beta1/query"; -import * as _10 from "./authz/v1beta1/tx"; -import * as _11 from "./bank/v1beta1/authz"; -import * as _12 from "./bank/v1beta1/bank"; -import * as _13 from "./bank/v1beta1/genesis"; -import * as _14 from "./bank/v1beta1/query"; -import * as _15 from "./bank/v1beta1/tx"; -import * as _16 from "./base/abci/v1beta1/abci"; -import * as _17 from "./base/node/v1beta1/query"; -import * as _18 from "./base/query/v1beta1/pagination"; -import * as _19 from "./base/reflection/v2alpha1/reflection"; -import * as _20 from "./base/v1beta1/coin"; -import * as _21 from "./crypto/ed25519/keys"; -import * as _22 from "./crypto/hd/v1/hd"; -import * as _23 from "./crypto/keyring/v1/record"; -import * as _24 from "./crypto/multisig/keys"; -import * as _25 from "./crypto/secp256k1/keys"; -import * as _26 from "./crypto/secp256r1/keys"; -import * as _27 from "./distribution/v1beta1/distribution"; -import * as _28 from "./distribution/v1beta1/genesis"; -import * as _29 from "./distribution/v1beta1/query"; -import * as _30 from "./distribution/v1beta1/tx"; -import * as _31 from "./feegrant/v1beta1/feegrant"; -import * as _32 from "./feegrant/v1beta1/genesis"; -import * as _33 from "./feegrant/v1beta1/query"; -import * as _34 from "./feegrant/v1beta1/tx"; -import * as _35 from "./gov/v1/genesis"; -import * as _36 from "./gov/v1/gov"; -import * as _37 from "./gov/v1/query"; -import * as _38 from "./gov/v1/tx"; -import * as _39 from "./gov/v1beta1/genesis"; -import * as _40 from "./gov/v1beta1/gov"; -import * as _41 from "./gov/v1beta1/query"; -import * as _42 from "./gov/v1beta1/tx"; -import * as _43 from "./group/v1/events"; -import * as _44 from "./group/v1/genesis"; -import * as _45 from "./group/v1/query"; -import * as _46 from "./group/v1/tx"; -import * as _47 from "./group/v1/types"; -import * as _48 from "./mint/v1beta1/genesis"; -import * as _49 from "./mint/v1beta1/mint"; -import * as _50 from "./mint/v1beta1/query"; -import * as _51 from "./orm/module/v1alpha1/module"; -import * as _52 from "./params/v1beta1/params"; -import * as _53 from "./params/v1beta1/query"; -import * as _54 from "./staking/v1beta1/authz"; -import * as _55 from "./staking/v1beta1/genesis"; -import * as _56 from "./staking/v1beta1/query"; -import * as _57 from "./staking/v1beta1/staking"; -import * as _58 from "./staking/v1beta1/tx"; -import * as _59 from "./tx/signing/v1beta1/signing"; -import * as _60 from "./tx/v1beta1/service"; -import * as _61 from "./tx/v1beta1/tx"; -import * as _62 from "./upgrade/v1beta1/query"; -import * as _63 from "./upgrade/v1beta1/tx"; -import * as _64 from "./upgrade/v1beta1/upgrade"; -import * as _65 from "./vesting/v1beta1/tx"; -import * as _66 from "./vesting/v1beta1/vesting"; -import * as _139 from "./auth/v1beta1/query.lcd"; -import * as _140 from "./authz/v1beta1/query.lcd"; -import * as _141 from "./bank/v1beta1/query.lcd"; -import * as _142 from "./base/node/v1beta1/query.lcd"; -import * as _143 from "./distribution/v1beta1/query.lcd"; -import * as _144 from "./feegrant/v1beta1/query.lcd"; -import * as _145 from "./gov/v1/query.lcd"; -import * as _146 from "./gov/v1beta1/query.lcd"; -import * as _147 from "./group/v1/query.lcd"; -import * as _148 from "./mint/v1beta1/query.lcd"; -import * as _149 from "./params/v1beta1/query.lcd"; -import * as _150 from "./staking/v1beta1/query.lcd"; -import * as _151 from "./tx/v1beta1/service.lcd"; -import * as _152 from "./upgrade/v1beta1/query.lcd"; -import * as _153 from "./auth/v1beta1/query.rpc.Query"; -import * as _154 from "./authz/v1beta1/query.rpc.Query"; -import * as _155 from "./bank/v1beta1/query.rpc.Query"; -import * as _156 from "./base/node/v1beta1/query.rpc.Service"; -import * as _157 from "./distribution/v1beta1/query.rpc.Query"; -import * as _158 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _159 from "./gov/v1/query.rpc.Query"; -import * as _160 from "./gov/v1beta1/query.rpc.Query"; -import * as _161 from "./group/v1/query.rpc.Query"; -import * as _162 from "./mint/v1beta1/query.rpc.Query"; -import * as _163 from "./params/v1beta1/query.rpc.Query"; -import * as _164 from "./staking/v1beta1/query.rpc.Query"; -import * as _165 from "./tx/v1beta1/service.rpc.Service"; -import * as _166 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _167 from "./authz/v1beta1/tx.rpc.msg"; -import * as _168 from "./bank/v1beta1/tx.rpc.msg"; -import * as _169 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _170 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _171 from "./gov/v1/tx.rpc.msg"; -import * as _172 from "./gov/v1beta1/tx.rpc.msg"; -import * as _173 from "./group/v1/tx.rpc.msg"; -import * as _174 from "./staking/v1beta1/tx.rpc.msg"; -import * as _175 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _176 from "./vesting/v1beta1/tx.rpc.msg"; -export declare namespace cosmos { - namespace app { - namespace module { - const v1alpha1: { - Module: { - typeUrl: string; - encode(_: _2.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _2.Module; - fromPartial(_: Partial<_2.Module>): _2.Module; - fromAmino(_: _2.ModuleAmino): _2.Module; - toAmino(_: _2.Module): _2.ModuleAmino; - fromAminoMsg(object: _2.ModuleAminoMsg): _2.Module; - toAminoMsg(message: _2.Module): _2.ModuleAminoMsg; - fromProtoMsg(message: _2.ModuleProtoMsg): _2.Module; - toProto(message: _2.Module): Uint8Array; - toProtoMsg(message: _2.Module): _2.ModuleProtoMsg; - }; - }; - } - } - namespace auth { - const v1beta1: { - QueryClientImpl: typeof _153.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - accounts(request?: _5.QueryAccountsRequest): Promise<_5.QueryAccountsResponse>; - account(request: _5.QueryAccountRequest): Promise<_5.QueryAccountResponse>; - accountAddressByID(request: _5.QueryAccountAddressByIDRequest): Promise<_5.QueryAccountAddressByIDResponse>; - params(request?: _5.QueryParamsRequest): Promise<_5.QueryParamsResponse>; - moduleAccounts(request?: _5.QueryModuleAccountsRequest): Promise<_5.QueryModuleAccountsResponse>; - moduleAccountByName(request: _5.QueryModuleAccountByNameRequest): Promise<_5.QueryModuleAccountByNameResponse>; - bech32Prefix(request?: _5.Bech32PrefixRequest): Promise<_5.Bech32PrefixResponse>; - addressBytesToString(request: _5.AddressBytesToStringRequest): Promise<_5.AddressBytesToStringResponse>; - addressStringToBytes(request: _5.AddressStringToBytesRequest): Promise<_5.AddressStringToBytesResponse>; - }; - LCDQueryClient: typeof _139.LCDQueryClient; - QueryAccountsRequest: { - typeUrl: string; - encode(message: _5.QueryAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountsRequest; - fromPartial(object: Partial<_5.QueryAccountsRequest>): _5.QueryAccountsRequest; - fromAmino(object: _5.QueryAccountsRequestAmino): _5.QueryAccountsRequest; - toAmino(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestAmino; - fromAminoMsg(object: _5.QueryAccountsRequestAminoMsg): _5.QueryAccountsRequest; - toAminoMsg(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestAminoMsg; - fromProtoMsg(message: _5.QueryAccountsRequestProtoMsg): _5.QueryAccountsRequest; - toProto(message: _5.QueryAccountsRequest): Uint8Array; - toProtoMsg(message: _5.QueryAccountsRequest): _5.QueryAccountsRequestProtoMsg; - }; - QueryAccountsResponse: { - typeUrl: string; - encode(message: _5.QueryAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountsResponse; - fromPartial(object: Partial<_5.QueryAccountsResponse>): _5.QueryAccountsResponse; - fromAmino(object: _5.QueryAccountsResponseAmino): _5.QueryAccountsResponse; - toAmino(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseAmino; - fromAminoMsg(object: _5.QueryAccountsResponseAminoMsg): _5.QueryAccountsResponse; - toAminoMsg(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseAminoMsg; - fromProtoMsg(message: _5.QueryAccountsResponseProtoMsg): _5.QueryAccountsResponse; - toProto(message: _5.QueryAccountsResponse): Uint8Array; - toProtoMsg(message: _5.QueryAccountsResponse): _5.QueryAccountsResponseProtoMsg; - }; - QueryAccountRequest: { - typeUrl: string; - encode(message: _5.QueryAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountRequest; - fromPartial(object: Partial<_5.QueryAccountRequest>): _5.QueryAccountRequest; - fromAmino(object: _5.QueryAccountRequestAmino): _5.QueryAccountRequest; - toAmino(message: _5.QueryAccountRequest): _5.QueryAccountRequestAmino; - fromAminoMsg(object: _5.QueryAccountRequestAminoMsg): _5.QueryAccountRequest; - toAminoMsg(message: _5.QueryAccountRequest): _5.QueryAccountRequestAminoMsg; - fromProtoMsg(message: _5.QueryAccountRequestProtoMsg): _5.QueryAccountRequest; - toProto(message: _5.QueryAccountRequest): Uint8Array; - toProtoMsg(message: _5.QueryAccountRequest): _5.QueryAccountRequestProtoMsg; - }; - QueryAccountResponse: { - typeUrl: string; - encode(message: _5.QueryAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountResponse; - fromPartial(object: Partial<_5.QueryAccountResponse>): _5.QueryAccountResponse; - fromAmino(object: _5.QueryAccountResponseAmino): _5.QueryAccountResponse; - toAmino(message: _5.QueryAccountResponse): _5.QueryAccountResponseAmino; - fromAminoMsg(object: _5.QueryAccountResponseAminoMsg): _5.QueryAccountResponse; - toAminoMsg(message: _5.QueryAccountResponse): _5.QueryAccountResponseAminoMsg; - fromProtoMsg(message: _5.QueryAccountResponseProtoMsg): _5.QueryAccountResponse; - toProto(message: _5.QueryAccountResponse): Uint8Array; - toProtoMsg(message: _5.QueryAccountResponse): _5.QueryAccountResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _5.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryParamsRequest; - fromPartial(_: Partial<_5.QueryParamsRequest>): _5.QueryParamsRequest; - fromAmino(_: _5.QueryParamsRequestAmino): _5.QueryParamsRequest; - toAmino(_: _5.QueryParamsRequest): _5.QueryParamsRequestAmino; - fromAminoMsg(object: _5.QueryParamsRequestAminoMsg): _5.QueryParamsRequest; - toAminoMsg(message: _5.QueryParamsRequest): _5.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _5.QueryParamsRequestProtoMsg): _5.QueryParamsRequest; - toProto(message: _5.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _5.QueryParamsRequest): _5.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _5.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryParamsResponse; - fromPartial(object: Partial<_5.QueryParamsResponse>): _5.QueryParamsResponse; - fromAmino(object: _5.QueryParamsResponseAmino): _5.QueryParamsResponse; - toAmino(message: _5.QueryParamsResponse): _5.QueryParamsResponseAmino; - fromAminoMsg(object: _5.QueryParamsResponseAminoMsg): _5.QueryParamsResponse; - toAminoMsg(message: _5.QueryParamsResponse): _5.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _5.QueryParamsResponseProtoMsg): _5.QueryParamsResponse; - toProto(message: _5.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _5.QueryParamsResponse): _5.QueryParamsResponseProtoMsg; - }; - QueryModuleAccountsRequest: { - typeUrl: string; - encode(_: _5.QueryModuleAccountsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountsRequest; - fromPartial(_: Partial<_5.QueryModuleAccountsRequest>): _5.QueryModuleAccountsRequest; - fromAmino(_: _5.QueryModuleAccountsRequestAmino): _5.QueryModuleAccountsRequest; - toAmino(_: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestAmino; - fromAminoMsg(object: _5.QueryModuleAccountsRequestAminoMsg): _5.QueryModuleAccountsRequest; - toAminoMsg(message: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestAminoMsg; - fromProtoMsg(message: _5.QueryModuleAccountsRequestProtoMsg): _5.QueryModuleAccountsRequest; - toProto(message: _5.QueryModuleAccountsRequest): Uint8Array; - toProtoMsg(message: _5.QueryModuleAccountsRequest): _5.QueryModuleAccountsRequestProtoMsg; - }; - QueryModuleAccountsResponse: { - typeUrl: string; - encode(message: _5.QueryModuleAccountsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountsResponse; - fromPartial(object: Partial<_5.QueryModuleAccountsResponse>): _5.QueryModuleAccountsResponse; - fromAmino(object: _5.QueryModuleAccountsResponseAmino): _5.QueryModuleAccountsResponse; - toAmino(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseAmino; - fromAminoMsg(object: _5.QueryModuleAccountsResponseAminoMsg): _5.QueryModuleAccountsResponse; - toAminoMsg(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseAminoMsg; - fromProtoMsg(message: _5.QueryModuleAccountsResponseProtoMsg): _5.QueryModuleAccountsResponse; - toProto(message: _5.QueryModuleAccountsResponse): Uint8Array; - toProtoMsg(message: _5.QueryModuleAccountsResponse): _5.QueryModuleAccountsResponseProtoMsg; - }; - QueryModuleAccountByNameRequest: { - typeUrl: string; - encode(message: _5.QueryModuleAccountByNameRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountByNameRequest; - fromPartial(object: Partial<_5.QueryModuleAccountByNameRequest>): _5.QueryModuleAccountByNameRequest; - fromAmino(object: _5.QueryModuleAccountByNameRequestAmino): _5.QueryModuleAccountByNameRequest; - toAmino(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestAmino; - fromAminoMsg(object: _5.QueryModuleAccountByNameRequestAminoMsg): _5.QueryModuleAccountByNameRequest; - toAminoMsg(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestAminoMsg; - fromProtoMsg(message: _5.QueryModuleAccountByNameRequestProtoMsg): _5.QueryModuleAccountByNameRequest; - toProto(message: _5.QueryModuleAccountByNameRequest): Uint8Array; - toProtoMsg(message: _5.QueryModuleAccountByNameRequest): _5.QueryModuleAccountByNameRequestProtoMsg; - }; - QueryModuleAccountByNameResponse: { - typeUrl: string; - encode(message: _5.QueryModuleAccountByNameResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryModuleAccountByNameResponse; - fromPartial(object: Partial<_5.QueryModuleAccountByNameResponse>): _5.QueryModuleAccountByNameResponse; - fromAmino(object: _5.QueryModuleAccountByNameResponseAmino): _5.QueryModuleAccountByNameResponse; - toAmino(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseAmino; - fromAminoMsg(object: _5.QueryModuleAccountByNameResponseAminoMsg): _5.QueryModuleAccountByNameResponse; - toAminoMsg(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseAminoMsg; - fromProtoMsg(message: _5.QueryModuleAccountByNameResponseProtoMsg): _5.QueryModuleAccountByNameResponse; - toProto(message: _5.QueryModuleAccountByNameResponse): Uint8Array; - toProtoMsg(message: _5.QueryModuleAccountByNameResponse): _5.QueryModuleAccountByNameResponseProtoMsg; - }; - Bech32PrefixRequest: { - typeUrl: string; - encode(_: _5.Bech32PrefixRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.Bech32PrefixRequest; - fromPartial(_: Partial<_5.Bech32PrefixRequest>): _5.Bech32PrefixRequest; - fromAmino(_: _5.Bech32PrefixRequestAmino): _5.Bech32PrefixRequest; - toAmino(_: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestAmino; - fromAminoMsg(object: _5.Bech32PrefixRequestAminoMsg): _5.Bech32PrefixRequest; - toAminoMsg(message: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestAminoMsg; - fromProtoMsg(message: _5.Bech32PrefixRequestProtoMsg): _5.Bech32PrefixRequest; - toProto(message: _5.Bech32PrefixRequest): Uint8Array; - toProtoMsg(message: _5.Bech32PrefixRequest): _5.Bech32PrefixRequestProtoMsg; - }; - Bech32PrefixResponse: { - typeUrl: string; - encode(message: _5.Bech32PrefixResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.Bech32PrefixResponse; - fromPartial(object: Partial<_5.Bech32PrefixResponse>): _5.Bech32PrefixResponse; - fromAmino(object: _5.Bech32PrefixResponseAmino): _5.Bech32PrefixResponse; - toAmino(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseAmino; - fromAminoMsg(object: _5.Bech32PrefixResponseAminoMsg): _5.Bech32PrefixResponse; - toAminoMsg(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseAminoMsg; - fromProtoMsg(message: _5.Bech32PrefixResponseProtoMsg): _5.Bech32PrefixResponse; - toProto(message: _5.Bech32PrefixResponse): Uint8Array; - toProtoMsg(message: _5.Bech32PrefixResponse): _5.Bech32PrefixResponseProtoMsg; - }; - AddressBytesToStringRequest: { - typeUrl: string; - encode(message: _5.AddressBytesToStringRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressBytesToStringRequest; - fromPartial(object: Partial<_5.AddressBytesToStringRequest>): _5.AddressBytesToStringRequest; - fromAmino(object: _5.AddressBytesToStringRequestAmino): _5.AddressBytesToStringRequest; - toAmino(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestAmino; - fromAminoMsg(object: _5.AddressBytesToStringRequestAminoMsg): _5.AddressBytesToStringRequest; - toAminoMsg(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestAminoMsg; - fromProtoMsg(message: _5.AddressBytesToStringRequestProtoMsg): _5.AddressBytesToStringRequest; - toProto(message: _5.AddressBytesToStringRequest): Uint8Array; - toProtoMsg(message: _5.AddressBytesToStringRequest): _5.AddressBytesToStringRequestProtoMsg; - }; - AddressBytesToStringResponse: { - typeUrl: string; - encode(message: _5.AddressBytesToStringResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressBytesToStringResponse; - fromPartial(object: Partial<_5.AddressBytesToStringResponse>): _5.AddressBytesToStringResponse; - fromAmino(object: _5.AddressBytesToStringResponseAmino): _5.AddressBytesToStringResponse; - toAmino(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseAmino; - fromAminoMsg(object: _5.AddressBytesToStringResponseAminoMsg): _5.AddressBytesToStringResponse; - toAminoMsg(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseAminoMsg; - fromProtoMsg(message: _5.AddressBytesToStringResponseProtoMsg): _5.AddressBytesToStringResponse; - toProto(message: _5.AddressBytesToStringResponse): Uint8Array; - toProtoMsg(message: _5.AddressBytesToStringResponse): _5.AddressBytesToStringResponseProtoMsg; - }; - AddressStringToBytesRequest: { - typeUrl: string; - encode(message: _5.AddressStringToBytesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressStringToBytesRequest; - fromPartial(object: Partial<_5.AddressStringToBytesRequest>): _5.AddressStringToBytesRequest; - fromAmino(object: _5.AddressStringToBytesRequestAmino): _5.AddressStringToBytesRequest; - toAmino(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestAmino; - fromAminoMsg(object: _5.AddressStringToBytesRequestAminoMsg): _5.AddressStringToBytesRequest; - toAminoMsg(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestAminoMsg; - fromProtoMsg(message: _5.AddressStringToBytesRequestProtoMsg): _5.AddressStringToBytesRequest; - toProto(message: _5.AddressStringToBytesRequest): Uint8Array; - toProtoMsg(message: _5.AddressStringToBytesRequest): _5.AddressStringToBytesRequestProtoMsg; - }; - AddressStringToBytesResponse: { - typeUrl: string; - encode(message: _5.AddressStringToBytesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.AddressStringToBytesResponse; - fromPartial(object: Partial<_5.AddressStringToBytesResponse>): _5.AddressStringToBytesResponse; - fromAmino(object: _5.AddressStringToBytesResponseAmino): _5.AddressStringToBytesResponse; - toAmino(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseAmino; - fromAminoMsg(object: _5.AddressStringToBytesResponseAminoMsg): _5.AddressStringToBytesResponse; - toAminoMsg(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseAminoMsg; - fromProtoMsg(message: _5.AddressStringToBytesResponseProtoMsg): _5.AddressStringToBytesResponse; - toProto(message: _5.AddressStringToBytesResponse): Uint8Array; - toProtoMsg(message: _5.AddressStringToBytesResponse): _5.AddressStringToBytesResponseProtoMsg; - }; - QueryAccountAddressByIDRequest: { - typeUrl: string; - encode(message: _5.QueryAccountAddressByIDRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountAddressByIDRequest; - fromPartial(object: Partial<_5.QueryAccountAddressByIDRequest>): _5.QueryAccountAddressByIDRequest; - fromAmino(object: _5.QueryAccountAddressByIDRequestAmino): _5.QueryAccountAddressByIDRequest; - toAmino(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestAmino; - fromAminoMsg(object: _5.QueryAccountAddressByIDRequestAminoMsg): _5.QueryAccountAddressByIDRequest; - toAminoMsg(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestAminoMsg; - fromProtoMsg(message: _5.QueryAccountAddressByIDRequestProtoMsg): _5.QueryAccountAddressByIDRequest; - toProto(message: _5.QueryAccountAddressByIDRequest): Uint8Array; - toProtoMsg(message: _5.QueryAccountAddressByIDRequest): _5.QueryAccountAddressByIDRequestProtoMsg; - }; - QueryAccountAddressByIDResponse: { - typeUrl: string; - encode(message: _5.QueryAccountAddressByIDResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _5.QueryAccountAddressByIDResponse; - fromPartial(object: Partial<_5.QueryAccountAddressByIDResponse>): _5.QueryAccountAddressByIDResponse; - fromAmino(object: _5.QueryAccountAddressByIDResponseAmino): _5.QueryAccountAddressByIDResponse; - toAmino(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseAmino; - fromAminoMsg(object: _5.QueryAccountAddressByIDResponseAminoMsg): _5.QueryAccountAddressByIDResponse; - toAminoMsg(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseAminoMsg; - fromProtoMsg(message: _5.QueryAccountAddressByIDResponseProtoMsg): _5.QueryAccountAddressByIDResponse; - toProto(message: _5.QueryAccountAddressByIDResponse): Uint8Array; - toProtoMsg(message: _5.QueryAccountAddressByIDResponse): _5.QueryAccountAddressByIDResponseProtoMsg; - }; - AccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _3.BaseAccount; - AccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - AccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - ModuleAccountI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _3.ModuleAccount; - ModuleAccountI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - ModuleAccountI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - GenesisState: { - typeUrl: string; - encode(message: _4.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _4.GenesisState; - fromPartial(object: Partial<_4.GenesisState>): _4.GenesisState; - fromAmino(object: _4.GenesisStateAmino): _4.GenesisState; - toAmino(message: _4.GenesisState): _4.GenesisStateAmino; - fromAminoMsg(object: _4.GenesisStateAminoMsg): _4.GenesisState; - toAminoMsg(message: _4.GenesisState): _4.GenesisStateAminoMsg; - fromProtoMsg(message: _4.GenesisStateProtoMsg): _4.GenesisState; - toProto(message: _4.GenesisState): Uint8Array; - toProtoMsg(message: _4.GenesisState): _4.GenesisStateProtoMsg; - }; - BaseAccount: { - typeUrl: string; - encode(message: _3.BaseAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.BaseAccount; - fromPartial(object: Partial<_3.BaseAccount>): _3.BaseAccount; - fromAmino(object: _3.BaseAccountAmino): _3.BaseAccount; - toAmino(message: _3.BaseAccount): _3.BaseAccountAmino; - fromAminoMsg(object: _3.BaseAccountAminoMsg): _3.BaseAccount; - toAminoMsg(message: _3.BaseAccount): _3.BaseAccountAminoMsg; - fromProtoMsg(message: _3.BaseAccountProtoMsg): _3.BaseAccount; - toProto(message: _3.BaseAccount): Uint8Array; - toProtoMsg(message: _3.BaseAccount): _3.BaseAccountProtoMsg; - }; - ModuleAccount: { - typeUrl: string; - encode(message: _3.ModuleAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.ModuleAccount; - fromPartial(object: Partial<_3.ModuleAccount>): _3.ModuleAccount; - fromAmino(object: _3.ModuleAccountAmino): _3.ModuleAccount; - toAmino(message: _3.ModuleAccount): _3.ModuleAccountAmino; - fromAminoMsg(object: _3.ModuleAccountAminoMsg): _3.ModuleAccount; - toAminoMsg(message: _3.ModuleAccount): _3.ModuleAccountAminoMsg; - fromProtoMsg(message: _3.ModuleAccountProtoMsg): _3.ModuleAccount; - toProto(message: _3.ModuleAccount): Uint8Array; - toProtoMsg(message: _3.ModuleAccount): _3.ModuleAccountProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _3.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _3.Params; - fromPartial(object: Partial<_3.Params>): _3.Params; - fromAmino(object: _3.ParamsAmino): _3.Params; - toAmino(message: _3.Params): _3.ParamsAmino; - fromAminoMsg(object: _3.ParamsAminoMsg): _3.Params; - toAminoMsg(message: _3.Params): _3.ParamsAminoMsg; - fromProtoMsg(message: _3.ParamsProtoMsg): _3.Params; - toProto(message: _3.Params): Uint8Array; - toProtoMsg(message: _3.Params): _3.ParamsProtoMsg; - }; - }; - } - namespace authz { - const v1beta1: { - MsgClientImpl: typeof _167.MsgClientImpl; - QueryClientImpl: typeof _154.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - grants(request: _9.QueryGrantsRequest): Promise<_9.QueryGrantsResponse>; - granterGrants(request: _9.QueryGranterGrantsRequest): Promise<_9.QueryGranterGrantsResponse>; - granteeGrants(request: _9.QueryGranteeGrantsRequest): Promise<_9.QueryGranteeGrantsResponse>; - }; - LCDQueryClient: typeof _140.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - grant(value: _10.MsgGrant): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: _10.MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - revoke(value: _10.MsgRevoke): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grant(value: _10.MsgGrant): { - typeUrl: string; - value: _10.MsgGrant; - }; - exec(value: _10.MsgExec): { - typeUrl: string; - value: _10.MsgExec; - }; - revoke(value: _10.MsgRevoke): { - typeUrl: string; - value: _10.MsgRevoke; - }; - }; - fromPartial: { - grant(value: _10.MsgGrant): { - typeUrl: string; - value: _10.MsgGrant; - }; - exec(value: _10.MsgExec): { - typeUrl: string; - value: _10.MsgExec; - }; - revoke(value: _10.MsgRevoke): { - typeUrl: string; - value: _10.MsgRevoke; - }; - }; - }; - AminoConverter: { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: _10.MsgGrant) => _10.MsgGrantAmino; - fromAmino: (object: _10.MsgGrantAmino) => _10.MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: _10.MsgExec) => _10.MsgExecAmino; - fromAmino: (object: _10.MsgExecAmino) => _10.MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: _10.MsgRevoke) => _10.MsgRevokeAmino; - fromAmino: (object: _10.MsgRevokeAmino) => _10.MsgRevoke; - }; - }; - MsgGrant: { - typeUrl: string; - encode(message: _10.MsgGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgGrant; - fromPartial(object: Partial<_10.MsgGrant>): _10.MsgGrant; - fromAmino(object: _10.MsgGrantAmino): _10.MsgGrant; - toAmino(message: _10.MsgGrant): _10.MsgGrantAmino; - fromAminoMsg(object: _10.MsgGrantAminoMsg): _10.MsgGrant; - toAminoMsg(message: _10.MsgGrant): _10.MsgGrantAminoMsg; - fromProtoMsg(message: _10.MsgGrantProtoMsg): _10.MsgGrant; - toProto(message: _10.MsgGrant): Uint8Array; - toProtoMsg(message: _10.MsgGrant): _10.MsgGrantProtoMsg; - }; - MsgExecResponse: { - typeUrl: string; - encode(message: _10.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgExecResponse; - fromPartial(object: Partial<_10.MsgExecResponse>): _10.MsgExecResponse; - fromAmino(object: _10.MsgExecResponseAmino): _10.MsgExecResponse; - toAmino(message: _10.MsgExecResponse): _10.MsgExecResponseAmino; - fromAminoMsg(object: _10.MsgExecResponseAminoMsg): _10.MsgExecResponse; - toAminoMsg(message: _10.MsgExecResponse): _10.MsgExecResponseAminoMsg; - fromProtoMsg(message: _10.MsgExecResponseProtoMsg): _10.MsgExecResponse; - toProto(message: _10.MsgExecResponse): Uint8Array; - toProtoMsg(message: _10.MsgExecResponse): _10.MsgExecResponseProtoMsg; - }; - MsgExec: { - typeUrl: string; - encode(message: _10.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgExec; - fromPartial(object: Partial<_10.MsgExec>): _10.MsgExec; - fromAmino(object: _10.MsgExecAmino): _10.MsgExec; - toAmino(message: _10.MsgExec): _10.MsgExecAmino; - fromAminoMsg(object: _10.MsgExecAminoMsg): _10.MsgExec; - toAminoMsg(message: _10.MsgExec): _10.MsgExecAminoMsg; - fromProtoMsg(message: _10.MsgExecProtoMsg): _10.MsgExec; - toProto(message: _10.MsgExec): Uint8Array; - toProtoMsg(message: _10.MsgExec): _10.MsgExecProtoMsg; - }; - MsgGrantResponse: { - typeUrl: string; - encode(_: _10.MsgGrantResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgGrantResponse; - fromPartial(_: Partial<_10.MsgGrantResponse>): _10.MsgGrantResponse; - fromAmino(_: _10.MsgGrantResponseAmino): _10.MsgGrantResponse; - toAmino(_: _10.MsgGrantResponse): _10.MsgGrantResponseAmino; - fromAminoMsg(object: _10.MsgGrantResponseAminoMsg): _10.MsgGrantResponse; - toAminoMsg(message: _10.MsgGrantResponse): _10.MsgGrantResponseAminoMsg; - fromProtoMsg(message: _10.MsgGrantResponseProtoMsg): _10.MsgGrantResponse; - toProto(message: _10.MsgGrantResponse): Uint8Array; - toProtoMsg(message: _10.MsgGrantResponse): _10.MsgGrantResponseProtoMsg; - }; - MsgRevoke: { - typeUrl: string; - encode(message: _10.MsgRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgRevoke; - fromPartial(object: Partial<_10.MsgRevoke>): _10.MsgRevoke; - fromAmino(object: _10.MsgRevokeAmino): _10.MsgRevoke; - toAmino(message: _10.MsgRevoke): _10.MsgRevokeAmino; - fromAminoMsg(object: _10.MsgRevokeAminoMsg): _10.MsgRevoke; - toAminoMsg(message: _10.MsgRevoke): _10.MsgRevokeAminoMsg; - fromProtoMsg(message: _10.MsgRevokeProtoMsg): _10.MsgRevoke; - toProto(message: _10.MsgRevoke): Uint8Array; - toProtoMsg(message: _10.MsgRevoke): _10.MsgRevokeProtoMsg; - }; - MsgRevokeResponse: { - typeUrl: string; - encode(_: _10.MsgRevokeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _10.MsgRevokeResponse; - fromPartial(_: Partial<_10.MsgRevokeResponse>): _10.MsgRevokeResponse; - fromAmino(_: _10.MsgRevokeResponseAmino): _10.MsgRevokeResponse; - toAmino(_: _10.MsgRevokeResponse): _10.MsgRevokeResponseAmino; - fromAminoMsg(object: _10.MsgRevokeResponseAminoMsg): _10.MsgRevokeResponse; - toAminoMsg(message: _10.MsgRevokeResponse): _10.MsgRevokeResponseAminoMsg; - fromProtoMsg(message: _10.MsgRevokeResponseProtoMsg): _10.MsgRevokeResponse; - toProto(message: _10.MsgRevokeResponse): Uint8Array; - toProtoMsg(message: _10.MsgRevokeResponse): _10.MsgRevokeResponseProtoMsg; - }; - Sdk_Msg_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Sdk_Msg_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Sdk_Msg_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - Authz_Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Authz_Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Authz_Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryGrantsRequest: { - typeUrl: string; - encode(message: _9.QueryGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGrantsRequest; - fromPartial(object: Partial<_9.QueryGrantsRequest>): _9.QueryGrantsRequest; - fromAmino(object: _9.QueryGrantsRequestAmino): _9.QueryGrantsRequest; - toAmino(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestAmino; - fromAminoMsg(object: _9.QueryGrantsRequestAminoMsg): _9.QueryGrantsRequest; - toAminoMsg(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestAminoMsg; - fromProtoMsg(message: _9.QueryGrantsRequestProtoMsg): _9.QueryGrantsRequest; - toProto(message: _9.QueryGrantsRequest): Uint8Array; - toProtoMsg(message: _9.QueryGrantsRequest): _9.QueryGrantsRequestProtoMsg; - }; - QueryGrantsResponse: { - typeUrl: string; - encode(message: _9.QueryGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGrantsResponse; - fromPartial(object: Partial<_9.QueryGrantsResponse>): _9.QueryGrantsResponse; - fromAmino(object: _9.QueryGrantsResponseAmino): _9.QueryGrantsResponse; - toAmino(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseAmino; - fromAminoMsg(object: _9.QueryGrantsResponseAminoMsg): _9.QueryGrantsResponse; - toAminoMsg(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseAminoMsg; - fromProtoMsg(message: _9.QueryGrantsResponseProtoMsg): _9.QueryGrantsResponse; - toProto(message: _9.QueryGrantsResponse): Uint8Array; - toProtoMsg(message: _9.QueryGrantsResponse): _9.QueryGrantsResponseProtoMsg; - }; - QueryGranterGrantsRequest: { - typeUrl: string; - encode(message: _9.QueryGranterGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranterGrantsRequest; - fromPartial(object: Partial<_9.QueryGranterGrantsRequest>): _9.QueryGranterGrantsRequest; - fromAmino(object: _9.QueryGranterGrantsRequestAmino): _9.QueryGranterGrantsRequest; - toAmino(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestAmino; - fromAminoMsg(object: _9.QueryGranterGrantsRequestAminoMsg): _9.QueryGranterGrantsRequest; - toAminoMsg(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestAminoMsg; - fromProtoMsg(message: _9.QueryGranterGrantsRequestProtoMsg): _9.QueryGranterGrantsRequest; - toProto(message: _9.QueryGranterGrantsRequest): Uint8Array; - toProtoMsg(message: _9.QueryGranterGrantsRequest): _9.QueryGranterGrantsRequestProtoMsg; - }; - QueryGranterGrantsResponse: { - typeUrl: string; - encode(message: _9.QueryGranterGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranterGrantsResponse; - fromPartial(object: Partial<_9.QueryGranterGrantsResponse>): _9.QueryGranterGrantsResponse; - fromAmino(object: _9.QueryGranterGrantsResponseAmino): _9.QueryGranterGrantsResponse; - toAmino(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseAmino; - fromAminoMsg(object: _9.QueryGranterGrantsResponseAminoMsg): _9.QueryGranterGrantsResponse; - toAminoMsg(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseAminoMsg; - fromProtoMsg(message: _9.QueryGranterGrantsResponseProtoMsg): _9.QueryGranterGrantsResponse; - toProto(message: _9.QueryGranterGrantsResponse): Uint8Array; - toProtoMsg(message: _9.QueryGranterGrantsResponse): _9.QueryGranterGrantsResponseProtoMsg; - }; - QueryGranteeGrantsRequest: { - typeUrl: string; - encode(message: _9.QueryGranteeGrantsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranteeGrantsRequest; - fromPartial(object: Partial<_9.QueryGranteeGrantsRequest>): _9.QueryGranteeGrantsRequest; - fromAmino(object: _9.QueryGranteeGrantsRequestAmino): _9.QueryGranteeGrantsRequest; - toAmino(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestAmino; - fromAminoMsg(object: _9.QueryGranteeGrantsRequestAminoMsg): _9.QueryGranteeGrantsRequest; - toAminoMsg(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestAminoMsg; - fromProtoMsg(message: _9.QueryGranteeGrantsRequestProtoMsg): _9.QueryGranteeGrantsRequest; - toProto(message: _9.QueryGranteeGrantsRequest): Uint8Array; - toProtoMsg(message: _9.QueryGranteeGrantsRequest): _9.QueryGranteeGrantsRequestProtoMsg; - }; - QueryGranteeGrantsResponse: { - typeUrl: string; - encode(message: _9.QueryGranteeGrantsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _9.QueryGranteeGrantsResponse; - fromPartial(object: Partial<_9.QueryGranteeGrantsResponse>): _9.QueryGranteeGrantsResponse; - fromAmino(object: _9.QueryGranteeGrantsResponseAmino): _9.QueryGranteeGrantsResponse; - toAmino(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseAmino; - fromAminoMsg(object: _9.QueryGranteeGrantsResponseAminoMsg): _9.QueryGranteeGrantsResponse; - toAminoMsg(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseAminoMsg; - fromProtoMsg(message: _9.QueryGranteeGrantsResponseProtoMsg): _9.QueryGranteeGrantsResponse; - toProto(message: _9.QueryGranteeGrantsResponse): Uint8Array; - toProtoMsg(message: _9.QueryGranteeGrantsResponse): _9.QueryGranteeGrantsResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _8.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _8.GenesisState; - fromPartial(object: Partial<_8.GenesisState>): _8.GenesisState; - fromAmino(object: _8.GenesisStateAmino): _8.GenesisState; - toAmino(message: _8.GenesisState): _8.GenesisStateAmino; - fromAminoMsg(object: _8.GenesisStateAminoMsg): _8.GenesisState; - toAminoMsg(message: _8.GenesisState): _8.GenesisStateAminoMsg; - fromProtoMsg(message: _8.GenesisStateProtoMsg): _8.GenesisState; - toProto(message: _8.GenesisState): Uint8Array; - toProtoMsg(message: _8.GenesisState): _8.GenesisStateProtoMsg; - }; - EventGrant: { - typeUrl: string; - encode(message: _7.EventGrant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _7.EventGrant; - fromPartial(object: Partial<_7.EventGrant>): _7.EventGrant; - fromAmino(object: _7.EventGrantAmino): _7.EventGrant; - toAmino(message: _7.EventGrant): _7.EventGrantAmino; - fromAminoMsg(object: _7.EventGrantAminoMsg): _7.EventGrant; - toAminoMsg(message: _7.EventGrant): _7.EventGrantAminoMsg; - fromProtoMsg(message: _7.EventGrantProtoMsg): _7.EventGrant; - toProto(message: _7.EventGrant): Uint8Array; - toProtoMsg(message: _7.EventGrant): _7.EventGrantProtoMsg; - }; - EventRevoke: { - typeUrl: string; - encode(message: _7.EventRevoke, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _7.EventRevoke; - fromPartial(object: Partial<_7.EventRevoke>): _7.EventRevoke; - fromAmino(object: _7.EventRevokeAmino): _7.EventRevoke; - toAmino(message: _7.EventRevoke): _7.EventRevokeAmino; - fromAminoMsg(object: _7.EventRevokeAminoMsg): _7.EventRevoke; - toAminoMsg(message: _7.EventRevoke): _7.EventRevokeAminoMsg; - fromProtoMsg(message: _7.EventRevokeProtoMsg): _7.EventRevoke; - toProto(message: _7.EventRevoke): Uint8Array; - toProtoMsg(message: _7.EventRevoke): _7.EventRevokeProtoMsg; - }; - GenericAuthorization: { - typeUrl: string; - encode(message: _6.GenericAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GenericAuthorization; - fromPartial(object: Partial<_6.GenericAuthorization>): _6.GenericAuthorization; - fromAmino(object: _6.GenericAuthorizationAmino): _6.GenericAuthorization; - toAmino(message: _6.GenericAuthorization): _6.GenericAuthorizationAmino; - fromAminoMsg(object: _6.GenericAuthorizationAminoMsg): _6.GenericAuthorization; - toAminoMsg(message: _6.GenericAuthorization): _6.GenericAuthorizationAminoMsg; - fromProtoMsg(message: _6.GenericAuthorizationProtoMsg): _6.GenericAuthorization; - toProto(message: _6.GenericAuthorization): Uint8Array; - toProtoMsg(message: _6.GenericAuthorization): _6.GenericAuthorizationProtoMsg; - }; - Grant: { - typeUrl: string; - encode(message: _6.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.Grant; - fromPartial(object: Partial<_6.Grant>): _6.Grant; - fromAmino(object: _6.GrantAmino): _6.Grant; - toAmino(message: _6.Grant): _6.GrantAmino; - fromAminoMsg(object: _6.GrantAminoMsg): _6.Grant; - toAminoMsg(message: _6.Grant): _6.GrantAminoMsg; - fromProtoMsg(message: _6.GrantProtoMsg): _6.Grant; - toProto(message: _6.Grant): Uint8Array; - toProtoMsg(message: _6.Grant): _6.GrantProtoMsg; - }; - GrantAuthorization: { - typeUrl: string; - encode(message: _6.GrantAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GrantAuthorization; - fromPartial(object: Partial<_6.GrantAuthorization>): _6.GrantAuthorization; - fromAmino(object: _6.GrantAuthorizationAmino): _6.GrantAuthorization; - toAmino(message: _6.GrantAuthorization): _6.GrantAuthorizationAmino; - fromAminoMsg(object: _6.GrantAuthorizationAminoMsg): _6.GrantAuthorization; - toAminoMsg(message: _6.GrantAuthorization): _6.GrantAuthorizationAminoMsg; - fromProtoMsg(message: _6.GrantAuthorizationProtoMsg): _6.GrantAuthorization; - toProto(message: _6.GrantAuthorization): Uint8Array; - toProtoMsg(message: _6.GrantAuthorization): _6.GrantAuthorizationProtoMsg; - }; - GrantQueueItem: { - typeUrl: string; - encode(message: _6.GrantQueueItem, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _6.GrantQueueItem; - fromPartial(object: Partial<_6.GrantQueueItem>): _6.GrantQueueItem; - fromAmino(object: _6.GrantQueueItemAmino): _6.GrantQueueItem; - toAmino(message: _6.GrantQueueItem): _6.GrantQueueItemAmino; - fromAminoMsg(object: _6.GrantQueueItemAminoMsg): _6.GrantQueueItem; - toAminoMsg(message: _6.GrantQueueItem): _6.GrantQueueItemAminoMsg; - fromProtoMsg(message: _6.GrantQueueItemProtoMsg): _6.GrantQueueItem; - toProto(message: _6.GrantQueueItem): Uint8Array; - toProtoMsg(message: _6.GrantQueueItem): _6.GrantQueueItemProtoMsg; - }; - Authorization_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _11.SendAuthorization | _54.StakeAuthorization | _6.GenericAuthorization; - Authorization_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Authorization_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - }; - } - namespace bank { - const v1beta1: { - MsgClientImpl: typeof _168.MsgClientImpl; - QueryClientImpl: typeof _155.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - balance(request: _14.QueryBalanceRequest): Promise<_14.QueryBalanceResponse>; - allBalances(request: _14.QueryAllBalancesRequest): Promise<_14.QueryAllBalancesResponse>; - spendableBalances(request: _14.QuerySpendableBalancesRequest): Promise<_14.QuerySpendableBalancesResponse>; - totalSupply(request?: _14.QueryTotalSupplyRequest): Promise<_14.QueryTotalSupplyResponse>; - supplyOf(request: _14.QuerySupplyOfRequest): Promise<_14.QuerySupplyOfResponse>; - params(request?: _14.QueryParamsRequest): Promise<_14.QueryParamsResponse>; - denomMetadata(request: _14.QueryDenomMetadataRequest): Promise<_14.QueryDenomMetadataResponse>; - denomsMetadata(request?: _14.QueryDenomsMetadataRequest): Promise<_14.QueryDenomsMetadataResponse>; - denomOwners(request: _14.QueryDenomOwnersRequest): Promise<_14.QueryDenomOwnersResponse>; - }; - LCDQueryClient: typeof _141.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - send(value: _15.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - multiSend(value: _15.MsgMultiSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: _15.MsgSend): { - typeUrl: string; - value: _15.MsgSend; - }; - multiSend(value: _15.MsgMultiSend): { - typeUrl: string; - value: _15.MsgMultiSend; - }; - }; - fromPartial: { - send(value: _15.MsgSend): { - typeUrl: string; - value: _15.MsgSend; - }; - multiSend(value: _15.MsgMultiSend): { - typeUrl: string; - value: _15.MsgMultiSend; - }; - }; - }; - AminoConverter: { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: _15.MsgSend) => _15.MsgSendAmino; - fromAmino: (object: _15.MsgSendAmino) => _15.MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: _15.MsgMultiSend) => _15.MsgMultiSendAmino; - fromAmino: (object: _15.MsgMultiSendAmino) => _15.MsgMultiSend; - }; - }; - MsgSend: { - typeUrl: string; - encode(message: _15.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgSend; - fromPartial(object: Partial<_15.MsgSend>): _15.MsgSend; - fromAmino(object: _15.MsgSendAmino): _15.MsgSend; - toAmino(message: _15.MsgSend): _15.MsgSendAmino; - fromAminoMsg(object: _15.MsgSendAminoMsg): _15.MsgSend; - toAminoMsg(message: _15.MsgSend): _15.MsgSendAminoMsg; - fromProtoMsg(message: _15.MsgSendProtoMsg): _15.MsgSend; - toProto(message: _15.MsgSend): Uint8Array; - toProtoMsg(message: _15.MsgSend): _15.MsgSendProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _15.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgSendResponse; - fromPartial(_: Partial<_15.MsgSendResponse>): _15.MsgSendResponse; - fromAmino(_: _15.MsgSendResponseAmino): _15.MsgSendResponse; - toAmino(_: _15.MsgSendResponse): _15.MsgSendResponseAmino; - fromAminoMsg(object: _15.MsgSendResponseAminoMsg): _15.MsgSendResponse; - toAminoMsg(message: _15.MsgSendResponse): _15.MsgSendResponseAminoMsg; - fromProtoMsg(message: _15.MsgSendResponseProtoMsg): _15.MsgSendResponse; - toProto(message: _15.MsgSendResponse): Uint8Array; - toProtoMsg(message: _15.MsgSendResponse): _15.MsgSendResponseProtoMsg; - }; - MsgMultiSend: { - typeUrl: string; - encode(message: _15.MsgMultiSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgMultiSend; - fromPartial(object: Partial<_15.MsgMultiSend>): _15.MsgMultiSend; - fromAmino(object: _15.MsgMultiSendAmino): _15.MsgMultiSend; - toAmino(message: _15.MsgMultiSend): _15.MsgMultiSendAmino; - fromAminoMsg(object: _15.MsgMultiSendAminoMsg): _15.MsgMultiSend; - toAminoMsg(message: _15.MsgMultiSend): _15.MsgMultiSendAminoMsg; - fromProtoMsg(message: _15.MsgMultiSendProtoMsg): _15.MsgMultiSend; - toProto(message: _15.MsgMultiSend): Uint8Array; - toProtoMsg(message: _15.MsgMultiSend): _15.MsgMultiSendProtoMsg; - }; - MsgMultiSendResponse: { - typeUrl: string; - encode(_: _15.MsgMultiSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _15.MsgMultiSendResponse; - fromPartial(_: Partial<_15.MsgMultiSendResponse>): _15.MsgMultiSendResponse; - fromAmino(_: _15.MsgMultiSendResponseAmino): _15.MsgMultiSendResponse; - toAmino(_: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseAmino; - fromAminoMsg(object: _15.MsgMultiSendResponseAminoMsg): _15.MsgMultiSendResponse; - toAminoMsg(message: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseAminoMsg; - fromProtoMsg(message: _15.MsgMultiSendResponseProtoMsg): _15.MsgMultiSendResponse; - toProto(message: _15.MsgMultiSendResponse): Uint8Array; - toProtoMsg(message: _15.MsgMultiSendResponse): _15.MsgMultiSendResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _14.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryBalanceRequest; - fromPartial(object: Partial<_14.QueryBalanceRequest>): _14.QueryBalanceRequest; - fromAmino(object: _14.QueryBalanceRequestAmino): _14.QueryBalanceRequest; - toAmino(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestAmino; - fromAminoMsg(object: _14.QueryBalanceRequestAminoMsg): _14.QueryBalanceRequest; - toAminoMsg(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestAminoMsg; - fromProtoMsg(message: _14.QueryBalanceRequestProtoMsg): _14.QueryBalanceRequest; - toProto(message: _14.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _14.QueryBalanceRequest): _14.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _14.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryBalanceResponse; - fromPartial(object: Partial<_14.QueryBalanceResponse>): _14.QueryBalanceResponse; - fromAmino(object: _14.QueryBalanceResponseAmino): _14.QueryBalanceResponse; - toAmino(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseAmino; - fromAminoMsg(object: _14.QueryBalanceResponseAminoMsg): _14.QueryBalanceResponse; - toAminoMsg(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseAminoMsg; - fromProtoMsg(message: _14.QueryBalanceResponseProtoMsg): _14.QueryBalanceResponse; - toProto(message: _14.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _14.QueryBalanceResponse): _14.QueryBalanceResponseProtoMsg; - }; - QueryAllBalancesRequest: { - typeUrl: string; - encode(message: _14.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryAllBalancesRequest; - fromPartial(object: Partial<_14.QueryAllBalancesRequest>): _14.QueryAllBalancesRequest; - fromAmino(object: _14.QueryAllBalancesRequestAmino): _14.QueryAllBalancesRequest; - toAmino(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestAmino; - fromAminoMsg(object: _14.QueryAllBalancesRequestAminoMsg): _14.QueryAllBalancesRequest; - toAminoMsg(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestAminoMsg; - fromProtoMsg(message: _14.QueryAllBalancesRequestProtoMsg): _14.QueryAllBalancesRequest; - toProto(message: _14.QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: _14.QueryAllBalancesRequest): _14.QueryAllBalancesRequestProtoMsg; - }; - QueryAllBalancesResponse: { - typeUrl: string; - encode(message: _14.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryAllBalancesResponse; - fromPartial(object: Partial<_14.QueryAllBalancesResponse>): _14.QueryAllBalancesResponse; - fromAmino(object: _14.QueryAllBalancesResponseAmino): _14.QueryAllBalancesResponse; - toAmino(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseAmino; - fromAminoMsg(object: _14.QueryAllBalancesResponseAminoMsg): _14.QueryAllBalancesResponse; - toAminoMsg(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseAminoMsg; - fromProtoMsg(message: _14.QueryAllBalancesResponseProtoMsg): _14.QueryAllBalancesResponse; - toProto(message: _14.QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: _14.QueryAllBalancesResponse): _14.QueryAllBalancesResponseProtoMsg; - }; - QuerySpendableBalancesRequest: { - typeUrl: string; - encode(message: _14.QuerySpendableBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySpendableBalancesRequest; - fromPartial(object: Partial<_14.QuerySpendableBalancesRequest>): _14.QuerySpendableBalancesRequest; - fromAmino(object: _14.QuerySpendableBalancesRequestAmino): _14.QuerySpendableBalancesRequest; - toAmino(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestAmino; - fromAminoMsg(object: _14.QuerySpendableBalancesRequestAminoMsg): _14.QuerySpendableBalancesRequest; - toAminoMsg(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestAminoMsg; - fromProtoMsg(message: _14.QuerySpendableBalancesRequestProtoMsg): _14.QuerySpendableBalancesRequest; - toProto(message: _14.QuerySpendableBalancesRequest): Uint8Array; - toProtoMsg(message: _14.QuerySpendableBalancesRequest): _14.QuerySpendableBalancesRequestProtoMsg; - }; - QuerySpendableBalancesResponse: { - typeUrl: string; - encode(message: _14.QuerySpendableBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySpendableBalancesResponse; - fromPartial(object: Partial<_14.QuerySpendableBalancesResponse>): _14.QuerySpendableBalancesResponse; - fromAmino(object: _14.QuerySpendableBalancesResponseAmino): _14.QuerySpendableBalancesResponse; - toAmino(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseAmino; - fromAminoMsg(object: _14.QuerySpendableBalancesResponseAminoMsg): _14.QuerySpendableBalancesResponse; - toAminoMsg(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseAminoMsg; - fromProtoMsg(message: _14.QuerySpendableBalancesResponseProtoMsg): _14.QuerySpendableBalancesResponse; - toProto(message: _14.QuerySpendableBalancesResponse): Uint8Array; - toProtoMsg(message: _14.QuerySpendableBalancesResponse): _14.QuerySpendableBalancesResponseProtoMsg; - }; - QueryTotalSupplyRequest: { - typeUrl: string; - encode(message: _14.QueryTotalSupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryTotalSupplyRequest; - fromPartial(object: Partial<_14.QueryTotalSupplyRequest>): _14.QueryTotalSupplyRequest; - fromAmino(object: _14.QueryTotalSupplyRequestAmino): _14.QueryTotalSupplyRequest; - toAmino(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestAmino; - fromAminoMsg(object: _14.QueryTotalSupplyRequestAminoMsg): _14.QueryTotalSupplyRequest; - toAminoMsg(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestAminoMsg; - fromProtoMsg(message: _14.QueryTotalSupplyRequestProtoMsg): _14.QueryTotalSupplyRequest; - toProto(message: _14.QueryTotalSupplyRequest): Uint8Array; - toProtoMsg(message: _14.QueryTotalSupplyRequest): _14.QueryTotalSupplyRequestProtoMsg; - }; - QueryTotalSupplyResponse: { - typeUrl: string; - encode(message: _14.QueryTotalSupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryTotalSupplyResponse; - fromPartial(object: Partial<_14.QueryTotalSupplyResponse>): _14.QueryTotalSupplyResponse; - fromAmino(object: _14.QueryTotalSupplyResponseAmino): _14.QueryTotalSupplyResponse; - toAmino(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseAmino; - fromAminoMsg(object: _14.QueryTotalSupplyResponseAminoMsg): _14.QueryTotalSupplyResponse; - toAminoMsg(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseAminoMsg; - fromProtoMsg(message: _14.QueryTotalSupplyResponseProtoMsg): _14.QueryTotalSupplyResponse; - toProto(message: _14.QueryTotalSupplyResponse): Uint8Array; - toProtoMsg(message: _14.QueryTotalSupplyResponse): _14.QueryTotalSupplyResponseProtoMsg; - }; - QuerySupplyOfRequest: { - typeUrl: string; - encode(message: _14.QuerySupplyOfRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySupplyOfRequest; - fromPartial(object: Partial<_14.QuerySupplyOfRequest>): _14.QuerySupplyOfRequest; - fromAmino(object: _14.QuerySupplyOfRequestAmino): _14.QuerySupplyOfRequest; - toAmino(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestAmino; - fromAminoMsg(object: _14.QuerySupplyOfRequestAminoMsg): _14.QuerySupplyOfRequest; - toAminoMsg(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestAminoMsg; - fromProtoMsg(message: _14.QuerySupplyOfRequestProtoMsg): _14.QuerySupplyOfRequest; - toProto(message: _14.QuerySupplyOfRequest): Uint8Array; - toProtoMsg(message: _14.QuerySupplyOfRequest): _14.QuerySupplyOfRequestProtoMsg; - }; - QuerySupplyOfResponse: { - typeUrl: string; - encode(message: _14.QuerySupplyOfResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QuerySupplyOfResponse; - fromPartial(object: Partial<_14.QuerySupplyOfResponse>): _14.QuerySupplyOfResponse; - fromAmino(object: _14.QuerySupplyOfResponseAmino): _14.QuerySupplyOfResponse; - toAmino(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseAmino; - fromAminoMsg(object: _14.QuerySupplyOfResponseAminoMsg): _14.QuerySupplyOfResponse; - toAminoMsg(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseAminoMsg; - fromProtoMsg(message: _14.QuerySupplyOfResponseProtoMsg): _14.QuerySupplyOfResponse; - toProto(message: _14.QuerySupplyOfResponse): Uint8Array; - toProtoMsg(message: _14.QuerySupplyOfResponse): _14.QuerySupplyOfResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _14.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryParamsRequest; - fromPartial(_: Partial<_14.QueryParamsRequest>): _14.QueryParamsRequest; - fromAmino(_: _14.QueryParamsRequestAmino): _14.QueryParamsRequest; - toAmino(_: _14.QueryParamsRequest): _14.QueryParamsRequestAmino; - fromAminoMsg(object: _14.QueryParamsRequestAminoMsg): _14.QueryParamsRequest; - toAminoMsg(message: _14.QueryParamsRequest): _14.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _14.QueryParamsRequestProtoMsg): _14.QueryParamsRequest; - toProto(message: _14.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _14.QueryParamsRequest): _14.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _14.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryParamsResponse; - fromPartial(object: Partial<_14.QueryParamsResponse>): _14.QueryParamsResponse; - fromAmino(object: _14.QueryParamsResponseAmino): _14.QueryParamsResponse; - toAmino(message: _14.QueryParamsResponse): _14.QueryParamsResponseAmino; - fromAminoMsg(object: _14.QueryParamsResponseAminoMsg): _14.QueryParamsResponse; - toAminoMsg(message: _14.QueryParamsResponse): _14.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _14.QueryParamsResponseProtoMsg): _14.QueryParamsResponse; - toProto(message: _14.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _14.QueryParamsResponse): _14.QueryParamsResponseProtoMsg; - }; - QueryDenomsMetadataRequest: { - typeUrl: string; - encode(message: _14.QueryDenomsMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomsMetadataRequest; - fromPartial(object: Partial<_14.QueryDenomsMetadataRequest>): _14.QueryDenomsMetadataRequest; - fromAmino(object: _14.QueryDenomsMetadataRequestAmino): _14.QueryDenomsMetadataRequest; - toAmino(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestAmino; - fromAminoMsg(object: _14.QueryDenomsMetadataRequestAminoMsg): _14.QueryDenomsMetadataRequest; - toAminoMsg(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestAminoMsg; - fromProtoMsg(message: _14.QueryDenomsMetadataRequestProtoMsg): _14.QueryDenomsMetadataRequest; - toProto(message: _14.QueryDenomsMetadataRequest): Uint8Array; - toProtoMsg(message: _14.QueryDenomsMetadataRequest): _14.QueryDenomsMetadataRequestProtoMsg; - }; - QueryDenomsMetadataResponse: { - typeUrl: string; - encode(message: _14.QueryDenomsMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomsMetadataResponse; - fromPartial(object: Partial<_14.QueryDenomsMetadataResponse>): _14.QueryDenomsMetadataResponse; - fromAmino(object: _14.QueryDenomsMetadataResponseAmino): _14.QueryDenomsMetadataResponse; - toAmino(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseAmino; - fromAminoMsg(object: _14.QueryDenomsMetadataResponseAminoMsg): _14.QueryDenomsMetadataResponse; - toAminoMsg(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseAminoMsg; - fromProtoMsg(message: _14.QueryDenomsMetadataResponseProtoMsg): _14.QueryDenomsMetadataResponse; - toProto(message: _14.QueryDenomsMetadataResponse): Uint8Array; - toProtoMsg(message: _14.QueryDenomsMetadataResponse): _14.QueryDenomsMetadataResponseProtoMsg; - }; - QueryDenomMetadataRequest: { - typeUrl: string; - encode(message: _14.QueryDenomMetadataRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomMetadataRequest; - fromPartial(object: Partial<_14.QueryDenomMetadataRequest>): _14.QueryDenomMetadataRequest; - fromAmino(object: _14.QueryDenomMetadataRequestAmino): _14.QueryDenomMetadataRequest; - toAmino(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestAmino; - fromAminoMsg(object: _14.QueryDenomMetadataRequestAminoMsg): _14.QueryDenomMetadataRequest; - toAminoMsg(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestAminoMsg; - fromProtoMsg(message: _14.QueryDenomMetadataRequestProtoMsg): _14.QueryDenomMetadataRequest; - toProto(message: _14.QueryDenomMetadataRequest): Uint8Array; - toProtoMsg(message: _14.QueryDenomMetadataRequest): _14.QueryDenomMetadataRequestProtoMsg; - }; - QueryDenomMetadataResponse: { - typeUrl: string; - encode(message: _14.QueryDenomMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomMetadataResponse; - fromPartial(object: Partial<_14.QueryDenomMetadataResponse>): _14.QueryDenomMetadataResponse; - fromAmino(object: _14.QueryDenomMetadataResponseAmino): _14.QueryDenomMetadataResponse; - toAmino(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseAmino; - fromAminoMsg(object: _14.QueryDenomMetadataResponseAminoMsg): _14.QueryDenomMetadataResponse; - toAminoMsg(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseAminoMsg; - fromProtoMsg(message: _14.QueryDenomMetadataResponseProtoMsg): _14.QueryDenomMetadataResponse; - toProto(message: _14.QueryDenomMetadataResponse): Uint8Array; - toProtoMsg(message: _14.QueryDenomMetadataResponse): _14.QueryDenomMetadataResponseProtoMsg; - }; - QueryDenomOwnersRequest: { - typeUrl: string; - encode(message: _14.QueryDenomOwnersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomOwnersRequest; - fromPartial(object: Partial<_14.QueryDenomOwnersRequest>): _14.QueryDenomOwnersRequest; - fromAmino(object: _14.QueryDenomOwnersRequestAmino): _14.QueryDenomOwnersRequest; - toAmino(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestAmino; - fromAminoMsg(object: _14.QueryDenomOwnersRequestAminoMsg): _14.QueryDenomOwnersRequest; - toAminoMsg(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestAminoMsg; - fromProtoMsg(message: _14.QueryDenomOwnersRequestProtoMsg): _14.QueryDenomOwnersRequest; - toProto(message: _14.QueryDenomOwnersRequest): Uint8Array; - toProtoMsg(message: _14.QueryDenomOwnersRequest): _14.QueryDenomOwnersRequestProtoMsg; - }; - DenomOwner: { - typeUrl: string; - encode(message: _14.DenomOwner, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.DenomOwner; - fromPartial(object: Partial<_14.DenomOwner>): _14.DenomOwner; - fromAmino(object: _14.DenomOwnerAmino): _14.DenomOwner; - toAmino(message: _14.DenomOwner): _14.DenomOwnerAmino; - fromAminoMsg(object: _14.DenomOwnerAminoMsg): _14.DenomOwner; - toAminoMsg(message: _14.DenomOwner): _14.DenomOwnerAminoMsg; - fromProtoMsg(message: _14.DenomOwnerProtoMsg): _14.DenomOwner; - toProto(message: _14.DenomOwner): Uint8Array; - toProtoMsg(message: _14.DenomOwner): _14.DenomOwnerProtoMsg; - }; - QueryDenomOwnersResponse: { - typeUrl: string; - encode(message: _14.QueryDenomOwnersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _14.QueryDenomOwnersResponse; - fromPartial(object: Partial<_14.QueryDenomOwnersResponse>): _14.QueryDenomOwnersResponse; - fromAmino(object: _14.QueryDenomOwnersResponseAmino): _14.QueryDenomOwnersResponse; - toAmino(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseAmino; - fromAminoMsg(object: _14.QueryDenomOwnersResponseAminoMsg): _14.QueryDenomOwnersResponse; - toAminoMsg(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseAminoMsg; - fromProtoMsg(message: _14.QueryDenomOwnersResponseProtoMsg): _14.QueryDenomOwnersResponse; - toProto(message: _14.QueryDenomOwnersResponse): Uint8Array; - toProtoMsg(message: _14.QueryDenomOwnersResponse): _14.QueryDenomOwnersResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _13.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _13.GenesisState; - fromPartial(object: Partial<_13.GenesisState>): _13.GenesisState; - fromAmino(object: _13.GenesisStateAmino): _13.GenesisState; - toAmino(message: _13.GenesisState): _13.GenesisStateAmino; - fromAminoMsg(object: _13.GenesisStateAminoMsg): _13.GenesisState; - toAminoMsg(message: _13.GenesisState): _13.GenesisStateAminoMsg; - fromProtoMsg(message: _13.GenesisStateProtoMsg): _13.GenesisState; - toProto(message: _13.GenesisState): Uint8Array; - toProtoMsg(message: _13.GenesisState): _13.GenesisStateProtoMsg; - }; - Balance: { - typeUrl: string; - encode(message: _13.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _13.Balance; - fromPartial(object: Partial<_13.Balance>): _13.Balance; - fromAmino(object: _13.BalanceAmino): _13.Balance; - toAmino(message: _13.Balance): _13.BalanceAmino; - fromAminoMsg(object: _13.BalanceAminoMsg): _13.Balance; - toAminoMsg(message: _13.Balance): _13.BalanceAminoMsg; - fromProtoMsg(message: _13.BalanceProtoMsg): _13.Balance; - toProto(message: _13.Balance): Uint8Array; - toProtoMsg(message: _13.Balance): _13.BalanceProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _12.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Params; - fromPartial(object: Partial<_12.Params>): _12.Params; - fromAmino(object: _12.ParamsAmino): _12.Params; - toAmino(message: _12.Params): _12.ParamsAmino; - fromAminoMsg(object: _12.ParamsAminoMsg): _12.Params; - toAminoMsg(message: _12.Params): _12.ParamsAminoMsg; - fromProtoMsg(message: _12.ParamsProtoMsg): _12.Params; - toProto(message: _12.Params): Uint8Array; - toProtoMsg(message: _12.Params): _12.ParamsProtoMsg; - }; - SendEnabled: { - typeUrl: string; - encode(message: _12.SendEnabled, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.SendEnabled; - fromPartial(object: Partial<_12.SendEnabled>): _12.SendEnabled; - fromAmino(object: _12.SendEnabledAmino): _12.SendEnabled; - toAmino(message: _12.SendEnabled): _12.SendEnabledAmino; - fromAminoMsg(object: _12.SendEnabledAminoMsg): _12.SendEnabled; - toAminoMsg(message: _12.SendEnabled): _12.SendEnabledAminoMsg; - fromProtoMsg(message: _12.SendEnabledProtoMsg): _12.SendEnabled; - toProto(message: _12.SendEnabled): Uint8Array; - toProtoMsg(message: _12.SendEnabled): _12.SendEnabledProtoMsg; - }; - Input: { - typeUrl: string; - encode(message: _12.Input, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Input; - fromPartial(object: Partial<_12.Input>): _12.Input; - fromAmino(object: _12.InputAmino): _12.Input; - toAmino(message: _12.Input): _12.InputAmino; - fromAminoMsg(object: _12.InputAminoMsg): _12.Input; - toAminoMsg(message: _12.Input): _12.InputAminoMsg; - fromProtoMsg(message: _12.InputProtoMsg): _12.Input; - toProto(message: _12.Input): Uint8Array; - toProtoMsg(message: _12.Input): _12.InputProtoMsg; - }; - Output: { - typeUrl: string; - encode(message: _12.Output, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Output; - fromPartial(object: Partial<_12.Output>): _12.Output; - fromAmino(object: _12.OutputAmino): _12.Output; - toAmino(message: _12.Output): _12.OutputAmino; - fromAminoMsg(object: _12.OutputAminoMsg): _12.Output; - toAminoMsg(message: _12.Output): _12.OutputAminoMsg; - fromProtoMsg(message: _12.OutputProtoMsg): _12.Output; - toProto(message: _12.Output): Uint8Array; - toProtoMsg(message: _12.Output): _12.OutputProtoMsg; - }; - Supply: { - typeUrl: string; - encode(message: _12.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Supply; - fromPartial(object: Partial<_12.Supply>): _12.Supply; - fromAmino(object: _12.SupplyAmino): _12.Supply; - toAmino(message: _12.Supply): _12.SupplyAmino; - fromAminoMsg(object: _12.SupplyAminoMsg): _12.Supply; - toAminoMsg(message: _12.Supply): _12.SupplyAminoMsg; - fromProtoMsg(message: _12.SupplyProtoMsg): _12.Supply; - toProto(message: _12.Supply): Uint8Array; - toProtoMsg(message: _12.Supply): _12.SupplyProtoMsg; - }; - DenomUnit: { - typeUrl: string; - encode(message: _12.DenomUnit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.DenomUnit; - fromPartial(object: Partial<_12.DenomUnit>): _12.DenomUnit; - fromAmino(object: _12.DenomUnitAmino): _12.DenomUnit; - toAmino(message: _12.DenomUnit): _12.DenomUnitAmino; - fromAminoMsg(object: _12.DenomUnitAminoMsg): _12.DenomUnit; - toAminoMsg(message: _12.DenomUnit): _12.DenomUnitAminoMsg; - fromProtoMsg(message: _12.DenomUnitProtoMsg): _12.DenomUnit; - toProto(message: _12.DenomUnit): Uint8Array; - toProtoMsg(message: _12.DenomUnit): _12.DenomUnitProtoMsg; - }; - Metadata: { - typeUrl: string; - encode(message: _12.Metadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _12.Metadata; - fromPartial(object: Partial<_12.Metadata>): _12.Metadata; - fromAmino(object: _12.MetadataAmino): _12.Metadata; - toAmino(message: _12.Metadata): _12.MetadataAmino; - fromAminoMsg(object: _12.MetadataAminoMsg): _12.Metadata; - toAminoMsg(message: _12.Metadata): _12.MetadataAminoMsg; - fromProtoMsg(message: _12.MetadataProtoMsg): _12.Metadata; - toProto(message: _12.Metadata): Uint8Array; - toProtoMsg(message: _12.Metadata): _12.MetadataProtoMsg; - }; - SendAuthorization: { - typeUrl: string; - encode(message: _11.SendAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _11.SendAuthorization; - fromPartial(object: Partial<_11.SendAuthorization>): _11.SendAuthorization; - fromAmino(object: _11.SendAuthorizationAmino): _11.SendAuthorization; - toAmino(message: _11.SendAuthorization): _11.SendAuthorizationAmino; - fromAminoMsg(object: _11.SendAuthorizationAminoMsg): _11.SendAuthorization; - toAminoMsg(message: _11.SendAuthorization): _11.SendAuthorizationAminoMsg; - fromProtoMsg(message: _11.SendAuthorizationProtoMsg): _11.SendAuthorization; - toProto(message: _11.SendAuthorization): Uint8Array; - toProtoMsg(message: _11.SendAuthorization): _11.SendAuthorizationProtoMsg; - }; - }; - } - namespace base { - namespace abci { - const v1beta1: { - TxResponse: { - typeUrl: string; - encode(message: _16.TxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.TxResponse; - fromPartial(object: Partial<_16.TxResponse>): _16.TxResponse; - fromAmino(object: _16.TxResponseAmino): _16.TxResponse; - toAmino(message: _16.TxResponse): _16.TxResponseAmino; - fromAminoMsg(object: _16.TxResponseAminoMsg): _16.TxResponse; - toAminoMsg(message: _16.TxResponse): _16.TxResponseAminoMsg; - fromProtoMsg(message: _16.TxResponseProtoMsg): _16.TxResponse; - toProto(message: _16.TxResponse): Uint8Array; - toProtoMsg(message: _16.TxResponse): _16.TxResponseProtoMsg; - }; - ABCIMessageLog: { - typeUrl: string; - encode(message: _16.ABCIMessageLog, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.ABCIMessageLog; - fromPartial(object: Partial<_16.ABCIMessageLog>): _16.ABCIMessageLog; - fromAmino(object: _16.ABCIMessageLogAmino): _16.ABCIMessageLog; - toAmino(message: _16.ABCIMessageLog): _16.ABCIMessageLogAmino; - fromAminoMsg(object: _16.ABCIMessageLogAminoMsg): _16.ABCIMessageLog; - toAminoMsg(message: _16.ABCIMessageLog): _16.ABCIMessageLogAminoMsg; - fromProtoMsg(message: _16.ABCIMessageLogProtoMsg): _16.ABCIMessageLog; - toProto(message: _16.ABCIMessageLog): Uint8Array; - toProtoMsg(message: _16.ABCIMessageLog): _16.ABCIMessageLogProtoMsg; - }; - StringEvent: { - typeUrl: string; - encode(message: _16.StringEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.StringEvent; - fromPartial(object: Partial<_16.StringEvent>): _16.StringEvent; - fromAmino(object: _16.StringEventAmino): _16.StringEvent; - toAmino(message: _16.StringEvent): _16.StringEventAmino; - fromAminoMsg(object: _16.StringEventAminoMsg): _16.StringEvent; - toAminoMsg(message: _16.StringEvent): _16.StringEventAminoMsg; - fromProtoMsg(message: _16.StringEventProtoMsg): _16.StringEvent; - toProto(message: _16.StringEvent): Uint8Array; - toProtoMsg(message: _16.StringEvent): _16.StringEventProtoMsg; - }; - Attribute: { - typeUrl: string; - encode(message: _16.Attribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.Attribute; - fromPartial(object: Partial<_16.Attribute>): _16.Attribute; - fromAmino(object: _16.AttributeAmino): _16.Attribute; - toAmino(message: _16.Attribute): _16.AttributeAmino; - fromAminoMsg(object: _16.AttributeAminoMsg): _16.Attribute; - toAminoMsg(message: _16.Attribute): _16.AttributeAminoMsg; - fromProtoMsg(message: _16.AttributeProtoMsg): _16.Attribute; - toProto(message: _16.Attribute): Uint8Array; - toProtoMsg(message: _16.Attribute): _16.AttributeProtoMsg; - }; - GasInfo: { - typeUrl: string; - encode(message: _16.GasInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.GasInfo; - fromPartial(object: Partial<_16.GasInfo>): _16.GasInfo; - fromAmino(object: _16.GasInfoAmino): _16.GasInfo; - toAmino(message: _16.GasInfo): _16.GasInfoAmino; - fromAminoMsg(object: _16.GasInfoAminoMsg): _16.GasInfo; - toAminoMsg(message: _16.GasInfo): _16.GasInfoAminoMsg; - fromProtoMsg(message: _16.GasInfoProtoMsg): _16.GasInfo; - toProto(message: _16.GasInfo): Uint8Array; - toProtoMsg(message: _16.GasInfo): _16.GasInfoProtoMsg; - }; - Result: { - typeUrl: string; - encode(message: _16.Result, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.Result; - fromPartial(object: Partial<_16.Result>): _16.Result; - fromAmino(object: _16.ResultAmino): _16.Result; - toAmino(message: _16.Result): _16.ResultAmino; - fromAminoMsg(object: _16.ResultAminoMsg): _16.Result; - toAminoMsg(message: _16.Result): _16.ResultAminoMsg; - fromProtoMsg(message: _16.ResultProtoMsg): _16.Result; - toProto(message: _16.Result): Uint8Array; - toProtoMsg(message: _16.Result): _16.ResultProtoMsg; - }; - SimulationResponse: { - typeUrl: string; - encode(message: _16.SimulationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.SimulationResponse; - fromPartial(object: Partial<_16.SimulationResponse>): _16.SimulationResponse; - fromAmino(object: _16.SimulationResponseAmino): _16.SimulationResponse; - toAmino(message: _16.SimulationResponse): _16.SimulationResponseAmino; - fromAminoMsg(object: _16.SimulationResponseAminoMsg): _16.SimulationResponse; - toAminoMsg(message: _16.SimulationResponse): _16.SimulationResponseAminoMsg; - fromProtoMsg(message: _16.SimulationResponseProtoMsg): _16.SimulationResponse; - toProto(message: _16.SimulationResponse): Uint8Array; - toProtoMsg(message: _16.SimulationResponse): _16.SimulationResponseProtoMsg; - }; - MsgData: { - typeUrl: string; - encode(message: _16.MsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.MsgData; - fromPartial(object: Partial<_16.MsgData>): _16.MsgData; - fromAmino(object: _16.MsgDataAmino): _16.MsgData; - toAmino(message: _16.MsgData): _16.MsgDataAmino; - fromAminoMsg(object: _16.MsgDataAminoMsg): _16.MsgData; - toAminoMsg(message: _16.MsgData): _16.MsgDataAminoMsg; - fromProtoMsg(message: _16.MsgDataProtoMsg): _16.MsgData; - toProto(message: _16.MsgData): Uint8Array; - toProtoMsg(message: _16.MsgData): _16.MsgDataProtoMsg; - }; - TxMsgData: { - typeUrl: string; - encode(message: _16.TxMsgData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.TxMsgData; - fromPartial(object: Partial<_16.TxMsgData>): _16.TxMsgData; - fromAmino(object: _16.TxMsgDataAmino): _16.TxMsgData; - toAmino(message: _16.TxMsgData): _16.TxMsgDataAmino; - fromAminoMsg(object: _16.TxMsgDataAminoMsg): _16.TxMsgData; - toAminoMsg(message: _16.TxMsgData): _16.TxMsgDataAminoMsg; - fromProtoMsg(message: _16.TxMsgDataProtoMsg): _16.TxMsgData; - toProto(message: _16.TxMsgData): Uint8Array; - toProtoMsg(message: _16.TxMsgData): _16.TxMsgDataProtoMsg; - }; - SearchTxsResult: { - typeUrl: string; - encode(message: _16.SearchTxsResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _16.SearchTxsResult; - fromPartial(object: Partial<_16.SearchTxsResult>): _16.SearchTxsResult; - fromAmino(object: _16.SearchTxsResultAmino): _16.SearchTxsResult; - toAmino(message: _16.SearchTxsResult): _16.SearchTxsResultAmino; - fromAminoMsg(object: _16.SearchTxsResultAminoMsg): _16.SearchTxsResult; - toAminoMsg(message: _16.SearchTxsResult): _16.SearchTxsResultAminoMsg; - fromProtoMsg(message: _16.SearchTxsResultProtoMsg): _16.SearchTxsResult; - toProto(message: _16.SearchTxsResult): Uint8Array; - toProtoMsg(message: _16.SearchTxsResult): _16.SearchTxsResultProtoMsg; - }; - }; - } - namespace node { - const v1beta1: { - ServiceClientImpl: typeof _156.ServiceClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - config(request?: _17.ConfigRequest): Promise<_17.ConfigResponse>; - }; - LCDQueryClient: typeof _142.LCDQueryClient; - ConfigRequest: { - typeUrl: string; - encode(_: _17.ConfigRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _17.ConfigRequest; - fromPartial(_: Partial<_17.ConfigRequest>): _17.ConfigRequest; - fromAmino(_: _17.ConfigRequestAmino): _17.ConfigRequest; - toAmino(_: _17.ConfigRequest): _17.ConfigRequestAmino; - fromAminoMsg(object: _17.ConfigRequestAminoMsg): _17.ConfigRequest; - toAminoMsg(message: _17.ConfigRequest): _17.ConfigRequestAminoMsg; - fromProtoMsg(message: _17.ConfigRequestProtoMsg): _17.ConfigRequest; - toProto(message: _17.ConfigRequest): Uint8Array; - toProtoMsg(message: _17.ConfigRequest): _17.ConfigRequestProtoMsg; - }; - ConfigResponse: { - typeUrl: string; - encode(message: _17.ConfigResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _17.ConfigResponse; - fromPartial(object: Partial<_17.ConfigResponse>): _17.ConfigResponse; - fromAmino(object: _17.ConfigResponseAmino): _17.ConfigResponse; - toAmino(message: _17.ConfigResponse): _17.ConfigResponseAmino; - fromAminoMsg(object: _17.ConfigResponseAminoMsg): _17.ConfigResponse; - toAminoMsg(message: _17.ConfigResponse): _17.ConfigResponseAminoMsg; - fromProtoMsg(message: _17.ConfigResponseProtoMsg): _17.ConfigResponse; - toProto(message: _17.ConfigResponse): Uint8Array; - toProtoMsg(message: _17.ConfigResponse): _17.ConfigResponseProtoMsg; - }; - }; - } - namespace query { - const v1beta1: { - PageRequest: { - typeUrl: string; - encode(message: _18.PageRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _18.PageRequest; - fromPartial(object: Partial<_18.PageRequest>): _18.PageRequest; - fromAmino(object: _18.PageRequestAmino): _18.PageRequest; - toAmino(message: _18.PageRequest): _18.PageRequestAmino; - fromAminoMsg(object: _18.PageRequestAminoMsg): _18.PageRequest; - toAminoMsg(message: _18.PageRequest): _18.PageRequestAminoMsg; - fromProtoMsg(message: _18.PageRequestProtoMsg): _18.PageRequest; - toProto(message: _18.PageRequest): Uint8Array; - toProtoMsg(message: _18.PageRequest): _18.PageRequestProtoMsg; - }; - PageResponse: { - typeUrl: string; - encode(message: _18.PageResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _18.PageResponse; - fromPartial(object: Partial<_18.PageResponse>): _18.PageResponse; - fromAmino(object: _18.PageResponseAmino): _18.PageResponse; - toAmino(message: _18.PageResponse): _18.PageResponseAmino; - fromAminoMsg(object: _18.PageResponseAminoMsg): _18.PageResponse; - toAminoMsg(message: _18.PageResponse): _18.PageResponseAminoMsg; - fromProtoMsg(message: _18.PageResponseProtoMsg): _18.PageResponse; - toProto(message: _18.PageResponse): Uint8Array; - toProtoMsg(message: _18.PageResponse): _18.PageResponseProtoMsg; - }; - }; - } - namespace reflection { - const v2alpha1: { - AppDescriptor: { - typeUrl: string; - encode(message: _19.AppDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.AppDescriptor; - fromPartial(object: Partial<_19.AppDescriptor>): _19.AppDescriptor; - fromAmino(object: _19.AppDescriptorAmino): _19.AppDescriptor; - toAmino(message: _19.AppDescriptor): _19.AppDescriptorAmino; - fromAminoMsg(object: _19.AppDescriptorAminoMsg): _19.AppDescriptor; - toAminoMsg(message: _19.AppDescriptor): _19.AppDescriptorAminoMsg; - fromProtoMsg(message: _19.AppDescriptorProtoMsg): _19.AppDescriptor; - toProto(message: _19.AppDescriptor): Uint8Array; - toProtoMsg(message: _19.AppDescriptor): _19.AppDescriptorProtoMsg; - }; - TxDescriptor: { - typeUrl: string; - encode(message: _19.TxDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.TxDescriptor; - fromPartial(object: Partial<_19.TxDescriptor>): _19.TxDescriptor; - fromAmino(object: _19.TxDescriptorAmino): _19.TxDescriptor; - toAmino(message: _19.TxDescriptor): _19.TxDescriptorAmino; - fromAminoMsg(object: _19.TxDescriptorAminoMsg): _19.TxDescriptor; - toAminoMsg(message: _19.TxDescriptor): _19.TxDescriptorAminoMsg; - fromProtoMsg(message: _19.TxDescriptorProtoMsg): _19.TxDescriptor; - toProto(message: _19.TxDescriptor): Uint8Array; - toProtoMsg(message: _19.TxDescriptor): _19.TxDescriptorProtoMsg; - }; - AuthnDescriptor: { - typeUrl: string; - encode(message: _19.AuthnDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.AuthnDescriptor; - fromPartial(object: Partial<_19.AuthnDescriptor>): _19.AuthnDescriptor; - fromAmino(object: _19.AuthnDescriptorAmino): _19.AuthnDescriptor; - toAmino(message: _19.AuthnDescriptor): _19.AuthnDescriptorAmino; - fromAminoMsg(object: _19.AuthnDescriptorAminoMsg): _19.AuthnDescriptor; - toAminoMsg(message: _19.AuthnDescriptor): _19.AuthnDescriptorAminoMsg; - fromProtoMsg(message: _19.AuthnDescriptorProtoMsg): _19.AuthnDescriptor; - toProto(message: _19.AuthnDescriptor): Uint8Array; - toProtoMsg(message: _19.AuthnDescriptor): _19.AuthnDescriptorProtoMsg; - }; - SigningModeDescriptor: { - typeUrl: string; - encode(message: _19.SigningModeDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.SigningModeDescriptor; - fromPartial(object: Partial<_19.SigningModeDescriptor>): _19.SigningModeDescriptor; - fromAmino(object: _19.SigningModeDescriptorAmino): _19.SigningModeDescriptor; - toAmino(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorAmino; - fromAminoMsg(object: _19.SigningModeDescriptorAminoMsg): _19.SigningModeDescriptor; - toAminoMsg(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorAminoMsg; - fromProtoMsg(message: _19.SigningModeDescriptorProtoMsg): _19.SigningModeDescriptor; - toProto(message: _19.SigningModeDescriptor): Uint8Array; - toProtoMsg(message: _19.SigningModeDescriptor): _19.SigningModeDescriptorProtoMsg; - }; - ChainDescriptor: { - typeUrl: string; - encode(message: _19.ChainDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.ChainDescriptor; - fromPartial(object: Partial<_19.ChainDescriptor>): _19.ChainDescriptor; - fromAmino(object: _19.ChainDescriptorAmino): _19.ChainDescriptor; - toAmino(message: _19.ChainDescriptor): _19.ChainDescriptorAmino; - fromAminoMsg(object: _19.ChainDescriptorAminoMsg): _19.ChainDescriptor; - toAminoMsg(message: _19.ChainDescriptor): _19.ChainDescriptorAminoMsg; - fromProtoMsg(message: _19.ChainDescriptorProtoMsg): _19.ChainDescriptor; - toProto(message: _19.ChainDescriptor): Uint8Array; - toProtoMsg(message: _19.ChainDescriptor): _19.ChainDescriptorProtoMsg; - }; - CodecDescriptor: { - typeUrl: string; - encode(message: _19.CodecDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.CodecDescriptor; - fromPartial(object: Partial<_19.CodecDescriptor>): _19.CodecDescriptor; - fromAmino(object: _19.CodecDescriptorAmino): _19.CodecDescriptor; - toAmino(message: _19.CodecDescriptor): _19.CodecDescriptorAmino; - fromAminoMsg(object: _19.CodecDescriptorAminoMsg): _19.CodecDescriptor; - toAminoMsg(message: _19.CodecDescriptor): _19.CodecDescriptorAminoMsg; - fromProtoMsg(message: _19.CodecDescriptorProtoMsg): _19.CodecDescriptor; - toProto(message: _19.CodecDescriptor): Uint8Array; - toProtoMsg(message: _19.CodecDescriptor): _19.CodecDescriptorProtoMsg; - }; - InterfaceDescriptor: { - typeUrl: string; - encode(message: _19.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceDescriptor; - fromPartial(object: Partial<_19.InterfaceDescriptor>): _19.InterfaceDescriptor; - fromAmino(object: _19.InterfaceDescriptorAmino): _19.InterfaceDescriptor; - toAmino(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorAmino; - fromAminoMsg(object: _19.InterfaceDescriptorAminoMsg): _19.InterfaceDescriptor; - toAminoMsg(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorAminoMsg; - fromProtoMsg(message: _19.InterfaceDescriptorProtoMsg): _19.InterfaceDescriptor; - toProto(message: _19.InterfaceDescriptor): Uint8Array; - toProtoMsg(message: _19.InterfaceDescriptor): _19.InterfaceDescriptorProtoMsg; - }; - InterfaceImplementerDescriptor: { - typeUrl: string; - encode(message: _19.InterfaceImplementerDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceImplementerDescriptor; - fromPartial(object: Partial<_19.InterfaceImplementerDescriptor>): _19.InterfaceImplementerDescriptor; - fromAmino(object: _19.InterfaceImplementerDescriptorAmino): _19.InterfaceImplementerDescriptor; - toAmino(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorAmino; - fromAminoMsg(object: _19.InterfaceImplementerDescriptorAminoMsg): _19.InterfaceImplementerDescriptor; - toAminoMsg(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorAminoMsg; - fromProtoMsg(message: _19.InterfaceImplementerDescriptorProtoMsg): _19.InterfaceImplementerDescriptor; - toProto(message: _19.InterfaceImplementerDescriptor): Uint8Array; - toProtoMsg(message: _19.InterfaceImplementerDescriptor): _19.InterfaceImplementerDescriptorProtoMsg; - }; - InterfaceAcceptingMessageDescriptor: { - typeUrl: string; - encode(message: _19.InterfaceAcceptingMessageDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.InterfaceAcceptingMessageDescriptor; - fromPartial(object: Partial<_19.InterfaceAcceptingMessageDescriptor>): _19.InterfaceAcceptingMessageDescriptor; - fromAmino(object: _19.InterfaceAcceptingMessageDescriptorAmino): _19.InterfaceAcceptingMessageDescriptor; - toAmino(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorAmino; - fromAminoMsg(object: _19.InterfaceAcceptingMessageDescriptorAminoMsg): _19.InterfaceAcceptingMessageDescriptor; - toAminoMsg(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorAminoMsg; - fromProtoMsg(message: _19.InterfaceAcceptingMessageDescriptorProtoMsg): _19.InterfaceAcceptingMessageDescriptor; - toProto(message: _19.InterfaceAcceptingMessageDescriptor): Uint8Array; - toProtoMsg(message: _19.InterfaceAcceptingMessageDescriptor): _19.InterfaceAcceptingMessageDescriptorProtoMsg; - }; - ConfigurationDescriptor: { - typeUrl: string; - encode(message: _19.ConfigurationDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.ConfigurationDescriptor; - fromPartial(object: Partial<_19.ConfigurationDescriptor>): _19.ConfigurationDescriptor; - fromAmino(object: _19.ConfigurationDescriptorAmino): _19.ConfigurationDescriptor; - toAmino(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorAmino; - fromAminoMsg(object: _19.ConfigurationDescriptorAminoMsg): _19.ConfigurationDescriptor; - toAminoMsg(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorAminoMsg; - fromProtoMsg(message: _19.ConfigurationDescriptorProtoMsg): _19.ConfigurationDescriptor; - toProto(message: _19.ConfigurationDescriptor): Uint8Array; - toProtoMsg(message: _19.ConfigurationDescriptor): _19.ConfigurationDescriptorProtoMsg; - }; - MsgDescriptor: { - typeUrl: string; - encode(message: _19.MsgDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.MsgDescriptor; - fromPartial(object: Partial<_19.MsgDescriptor>): _19.MsgDescriptor; - fromAmino(object: _19.MsgDescriptorAmino): _19.MsgDescriptor; - toAmino(message: _19.MsgDescriptor): _19.MsgDescriptorAmino; - fromAminoMsg(object: _19.MsgDescriptorAminoMsg): _19.MsgDescriptor; - toAminoMsg(message: _19.MsgDescriptor): _19.MsgDescriptorAminoMsg; - fromProtoMsg(message: _19.MsgDescriptorProtoMsg): _19.MsgDescriptor; - toProto(message: _19.MsgDescriptor): Uint8Array; - toProtoMsg(message: _19.MsgDescriptor): _19.MsgDescriptorProtoMsg; - }; - GetAuthnDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetAuthnDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetAuthnDescriptorRequest; - fromPartial(_: Partial<_19.GetAuthnDescriptorRequest>): _19.GetAuthnDescriptorRequest; - fromAmino(_: _19.GetAuthnDescriptorRequestAmino): _19.GetAuthnDescriptorRequest; - toAmino(_: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestAmino; - fromAminoMsg(object: _19.GetAuthnDescriptorRequestAminoMsg): _19.GetAuthnDescriptorRequest; - toAminoMsg(message: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetAuthnDescriptorRequestProtoMsg): _19.GetAuthnDescriptorRequest; - toProto(message: _19.GetAuthnDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetAuthnDescriptorRequest): _19.GetAuthnDescriptorRequestProtoMsg; - }; - GetAuthnDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetAuthnDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetAuthnDescriptorResponse; - fromPartial(object: Partial<_19.GetAuthnDescriptorResponse>): _19.GetAuthnDescriptorResponse; - fromAmino(object: _19.GetAuthnDescriptorResponseAmino): _19.GetAuthnDescriptorResponse; - toAmino(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseAmino; - fromAminoMsg(object: _19.GetAuthnDescriptorResponseAminoMsg): _19.GetAuthnDescriptorResponse; - toAminoMsg(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetAuthnDescriptorResponseProtoMsg): _19.GetAuthnDescriptorResponse; - toProto(message: _19.GetAuthnDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetAuthnDescriptorResponse): _19.GetAuthnDescriptorResponseProtoMsg; - }; - GetChainDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetChainDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetChainDescriptorRequest; - fromPartial(_: Partial<_19.GetChainDescriptorRequest>): _19.GetChainDescriptorRequest; - fromAmino(_: _19.GetChainDescriptorRequestAmino): _19.GetChainDescriptorRequest; - toAmino(_: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestAmino; - fromAminoMsg(object: _19.GetChainDescriptorRequestAminoMsg): _19.GetChainDescriptorRequest; - toAminoMsg(message: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetChainDescriptorRequestProtoMsg): _19.GetChainDescriptorRequest; - toProto(message: _19.GetChainDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetChainDescriptorRequest): _19.GetChainDescriptorRequestProtoMsg; - }; - GetChainDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetChainDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetChainDescriptorResponse; - fromPartial(object: Partial<_19.GetChainDescriptorResponse>): _19.GetChainDescriptorResponse; - fromAmino(object: _19.GetChainDescriptorResponseAmino): _19.GetChainDescriptorResponse; - toAmino(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseAmino; - fromAminoMsg(object: _19.GetChainDescriptorResponseAminoMsg): _19.GetChainDescriptorResponse; - toAminoMsg(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetChainDescriptorResponseProtoMsg): _19.GetChainDescriptorResponse; - toProto(message: _19.GetChainDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetChainDescriptorResponse): _19.GetChainDescriptorResponseProtoMsg; - }; - GetCodecDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetCodecDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetCodecDescriptorRequest; - fromPartial(_: Partial<_19.GetCodecDescriptorRequest>): _19.GetCodecDescriptorRequest; - fromAmino(_: _19.GetCodecDescriptorRequestAmino): _19.GetCodecDescriptorRequest; - toAmino(_: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestAmino; - fromAminoMsg(object: _19.GetCodecDescriptorRequestAminoMsg): _19.GetCodecDescriptorRequest; - toAminoMsg(message: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetCodecDescriptorRequestProtoMsg): _19.GetCodecDescriptorRequest; - toProto(message: _19.GetCodecDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetCodecDescriptorRequest): _19.GetCodecDescriptorRequestProtoMsg; - }; - GetCodecDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetCodecDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetCodecDescriptorResponse; - fromPartial(object: Partial<_19.GetCodecDescriptorResponse>): _19.GetCodecDescriptorResponse; - fromAmino(object: _19.GetCodecDescriptorResponseAmino): _19.GetCodecDescriptorResponse; - toAmino(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseAmino; - fromAminoMsg(object: _19.GetCodecDescriptorResponseAminoMsg): _19.GetCodecDescriptorResponse; - toAminoMsg(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetCodecDescriptorResponseProtoMsg): _19.GetCodecDescriptorResponse; - toProto(message: _19.GetCodecDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetCodecDescriptorResponse): _19.GetCodecDescriptorResponseProtoMsg; - }; - GetConfigurationDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetConfigurationDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetConfigurationDescriptorRequest; - fromPartial(_: Partial<_19.GetConfigurationDescriptorRequest>): _19.GetConfigurationDescriptorRequest; - fromAmino(_: _19.GetConfigurationDescriptorRequestAmino): _19.GetConfigurationDescriptorRequest; - toAmino(_: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestAmino; - fromAminoMsg(object: _19.GetConfigurationDescriptorRequestAminoMsg): _19.GetConfigurationDescriptorRequest; - toAminoMsg(message: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetConfigurationDescriptorRequestProtoMsg): _19.GetConfigurationDescriptorRequest; - toProto(message: _19.GetConfigurationDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetConfigurationDescriptorRequest): _19.GetConfigurationDescriptorRequestProtoMsg; - }; - GetConfigurationDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetConfigurationDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetConfigurationDescriptorResponse; - fromPartial(object: Partial<_19.GetConfigurationDescriptorResponse>): _19.GetConfigurationDescriptorResponse; - fromAmino(object: _19.GetConfigurationDescriptorResponseAmino): _19.GetConfigurationDescriptorResponse; - toAmino(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseAmino; - fromAminoMsg(object: _19.GetConfigurationDescriptorResponseAminoMsg): _19.GetConfigurationDescriptorResponse; - toAminoMsg(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetConfigurationDescriptorResponseProtoMsg): _19.GetConfigurationDescriptorResponse; - toProto(message: _19.GetConfigurationDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetConfigurationDescriptorResponse): _19.GetConfigurationDescriptorResponseProtoMsg; - }; - GetQueryServicesDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetQueryServicesDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetQueryServicesDescriptorRequest; - fromPartial(_: Partial<_19.GetQueryServicesDescriptorRequest>): _19.GetQueryServicesDescriptorRequest; - fromAmino(_: _19.GetQueryServicesDescriptorRequestAmino): _19.GetQueryServicesDescriptorRequest; - toAmino(_: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestAmino; - fromAminoMsg(object: _19.GetQueryServicesDescriptorRequestAminoMsg): _19.GetQueryServicesDescriptorRequest; - toAminoMsg(message: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetQueryServicesDescriptorRequestProtoMsg): _19.GetQueryServicesDescriptorRequest; - toProto(message: _19.GetQueryServicesDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetQueryServicesDescriptorRequest): _19.GetQueryServicesDescriptorRequestProtoMsg; - }; - GetQueryServicesDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetQueryServicesDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetQueryServicesDescriptorResponse; - fromPartial(object: Partial<_19.GetQueryServicesDescriptorResponse>): _19.GetQueryServicesDescriptorResponse; - fromAmino(object: _19.GetQueryServicesDescriptorResponseAmino): _19.GetQueryServicesDescriptorResponse; - toAmino(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseAmino; - fromAminoMsg(object: _19.GetQueryServicesDescriptorResponseAminoMsg): _19.GetQueryServicesDescriptorResponse; - toAminoMsg(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetQueryServicesDescriptorResponseProtoMsg): _19.GetQueryServicesDescriptorResponse; - toProto(message: _19.GetQueryServicesDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetQueryServicesDescriptorResponse): _19.GetQueryServicesDescriptorResponseProtoMsg; - }; - GetTxDescriptorRequest: { - typeUrl: string; - encode(_: _19.GetTxDescriptorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetTxDescriptorRequest; - fromPartial(_: Partial<_19.GetTxDescriptorRequest>): _19.GetTxDescriptorRequest; - fromAmino(_: _19.GetTxDescriptorRequestAmino): _19.GetTxDescriptorRequest; - toAmino(_: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestAmino; - fromAminoMsg(object: _19.GetTxDescriptorRequestAminoMsg): _19.GetTxDescriptorRequest; - toAminoMsg(message: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestAminoMsg; - fromProtoMsg(message: _19.GetTxDescriptorRequestProtoMsg): _19.GetTxDescriptorRequest; - toProto(message: _19.GetTxDescriptorRequest): Uint8Array; - toProtoMsg(message: _19.GetTxDescriptorRequest): _19.GetTxDescriptorRequestProtoMsg; - }; - GetTxDescriptorResponse: { - typeUrl: string; - encode(message: _19.GetTxDescriptorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.GetTxDescriptorResponse; - fromPartial(object: Partial<_19.GetTxDescriptorResponse>): _19.GetTxDescriptorResponse; - fromAmino(object: _19.GetTxDescriptorResponseAmino): _19.GetTxDescriptorResponse; - toAmino(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseAmino; - fromAminoMsg(object: _19.GetTxDescriptorResponseAminoMsg): _19.GetTxDescriptorResponse; - toAminoMsg(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseAminoMsg; - fromProtoMsg(message: _19.GetTxDescriptorResponseProtoMsg): _19.GetTxDescriptorResponse; - toProto(message: _19.GetTxDescriptorResponse): Uint8Array; - toProtoMsg(message: _19.GetTxDescriptorResponse): _19.GetTxDescriptorResponseProtoMsg; - }; - QueryServicesDescriptor: { - typeUrl: string; - encode(message: _19.QueryServicesDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryServicesDescriptor; - fromPartial(object: Partial<_19.QueryServicesDescriptor>): _19.QueryServicesDescriptor; - fromAmino(object: _19.QueryServicesDescriptorAmino): _19.QueryServicesDescriptor; - toAmino(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorAmino; - fromAminoMsg(object: _19.QueryServicesDescriptorAminoMsg): _19.QueryServicesDescriptor; - toAminoMsg(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorAminoMsg; - fromProtoMsg(message: _19.QueryServicesDescriptorProtoMsg): _19.QueryServicesDescriptor; - toProto(message: _19.QueryServicesDescriptor): Uint8Array; - toProtoMsg(message: _19.QueryServicesDescriptor): _19.QueryServicesDescriptorProtoMsg; - }; - QueryServiceDescriptor: { - typeUrl: string; - encode(message: _19.QueryServiceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryServiceDescriptor; - fromPartial(object: Partial<_19.QueryServiceDescriptor>): _19.QueryServiceDescriptor; - fromAmino(object: _19.QueryServiceDescriptorAmino): _19.QueryServiceDescriptor; - toAmino(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorAmino; - fromAminoMsg(object: _19.QueryServiceDescriptorAminoMsg): _19.QueryServiceDescriptor; - toAminoMsg(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorAminoMsg; - fromProtoMsg(message: _19.QueryServiceDescriptorProtoMsg): _19.QueryServiceDescriptor; - toProto(message: _19.QueryServiceDescriptor): Uint8Array; - toProtoMsg(message: _19.QueryServiceDescriptor): _19.QueryServiceDescriptorProtoMsg; - }; - QueryMethodDescriptor: { - typeUrl: string; - encode(message: _19.QueryMethodDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _19.QueryMethodDescriptor; - fromPartial(object: Partial<_19.QueryMethodDescriptor>): _19.QueryMethodDescriptor; - fromAmino(object: _19.QueryMethodDescriptorAmino): _19.QueryMethodDescriptor; - toAmino(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorAmino; - fromAminoMsg(object: _19.QueryMethodDescriptorAminoMsg): _19.QueryMethodDescriptor; - toAminoMsg(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorAminoMsg; - fromProtoMsg(message: _19.QueryMethodDescriptorProtoMsg): _19.QueryMethodDescriptor; - toProto(message: _19.QueryMethodDescriptor): Uint8Array; - toProtoMsg(message: _19.QueryMethodDescriptor): _19.QueryMethodDescriptorProtoMsg; - }; - }; - } - const v1beta1: { - Coin: { - typeUrl: string; - encode(message: _20.Coin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.Coin; - fromPartial(object: Partial<_20.Coin>): _20.Coin; - fromAmino(object: _20.CoinAmino): _20.Coin; - toAmino(message: _20.Coin): _20.CoinAmino; - fromAminoMsg(object: _20.CoinAminoMsg): _20.Coin; - toAminoMsg(message: _20.Coin): _20.CoinAminoMsg; - fromProtoMsg(message: _20.CoinProtoMsg): _20.Coin; - toProto(message: _20.Coin): Uint8Array; - toProtoMsg(message: _20.Coin): _20.CoinProtoMsg; - }; - DecCoin: { - typeUrl: string; - encode(message: _20.DecCoin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.DecCoin; - fromPartial(object: Partial<_20.DecCoin>): _20.DecCoin; - fromAmino(object: _20.DecCoinAmino): _20.DecCoin; - toAmino(message: _20.DecCoin): _20.DecCoinAmino; - fromAminoMsg(object: _20.DecCoinAminoMsg): _20.DecCoin; - toAminoMsg(message: _20.DecCoin): _20.DecCoinAminoMsg; - fromProtoMsg(message: _20.DecCoinProtoMsg): _20.DecCoin; - toProto(message: _20.DecCoin): Uint8Array; - toProtoMsg(message: _20.DecCoin): _20.DecCoinProtoMsg; - }; - IntProto: { - typeUrl: string; - encode(message: _20.IntProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.IntProto; - fromPartial(object: Partial<_20.IntProto>): _20.IntProto; - fromAmino(object: _20.IntProtoAmino): _20.IntProto; - toAmino(message: _20.IntProto): _20.IntProtoAmino; - fromAminoMsg(object: _20.IntProtoAminoMsg): _20.IntProto; - toAminoMsg(message: _20.IntProto): _20.IntProtoAminoMsg; - fromProtoMsg(message: _20.IntProtoProtoMsg): _20.IntProto; - toProto(message: _20.IntProto): Uint8Array; - toProtoMsg(message: _20.IntProto): _20.IntProtoProtoMsg; - }; - DecProto: { - typeUrl: string; - encode(message: _20.DecProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _20.DecProto; - fromPartial(object: Partial<_20.DecProto>): _20.DecProto; - fromAmino(object: _20.DecProtoAmino): _20.DecProto; - toAmino(message: _20.DecProto): _20.DecProtoAmino; - fromAminoMsg(object: _20.DecProtoAminoMsg): _20.DecProto; - toAminoMsg(message: _20.DecProto): _20.DecProtoAminoMsg; - fromProtoMsg(message: _20.DecProtoProtoMsg): _20.DecProto; - toProto(message: _20.DecProto): Uint8Array; - toProtoMsg(message: _20.DecProto): _20.DecProtoProtoMsg; - }; - }; - } - namespace crypto { - const ed25519: { - PubKey: { - typeUrl: string; - encode(message: _21.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _21.PubKey; - fromPartial(object: Partial<_21.PubKey>): _21.PubKey; - fromAmino(object: _21.PubKeyAmino): _21.PubKey; - toAmino(message: _21.PubKey): _21.PubKeyAmino; - fromAminoMsg(object: _21.PubKeyAminoMsg): _21.PubKey; - toAminoMsg(message: _21.PubKey): _21.PubKeyAminoMsg; - fromProtoMsg(message: _21.PubKeyProtoMsg): _21.PubKey; - toProto(message: _21.PubKey): Uint8Array; - toProtoMsg(message: _21.PubKey): _21.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _21.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _21.PrivKey; - fromPartial(object: Partial<_21.PrivKey>): _21.PrivKey; - fromAmino(object: _21.PrivKeyAmino): _21.PrivKey; - toAmino(message: _21.PrivKey): _21.PrivKeyAmino; - fromAminoMsg(object: _21.PrivKeyAminoMsg): _21.PrivKey; - toAminoMsg(message: _21.PrivKey): _21.PrivKeyAminoMsg; - fromProtoMsg(message: _21.PrivKeyProtoMsg): _21.PrivKey; - toProto(message: _21.PrivKey): Uint8Array; - toProtoMsg(message: _21.PrivKey): _21.PrivKeyProtoMsg; - }; - }; - namespace hd { - const v1: { - BIP44Params: { - typeUrl: string; - encode(message: _22.BIP44Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _22.BIP44Params; - fromPartial(object: Partial<_22.BIP44Params>): _22.BIP44Params; - fromAmino(object: _22.BIP44ParamsAmino): _22.BIP44Params; - toAmino(message: _22.BIP44Params): _22.BIP44ParamsAmino; - fromAminoMsg(object: _22.BIP44ParamsAminoMsg): _22.BIP44Params; - toAminoMsg(message: _22.BIP44Params): _22.BIP44ParamsAminoMsg; - fromProtoMsg(message: _22.BIP44ParamsProtoMsg): _22.BIP44Params; - toProto(message: _22.BIP44Params): Uint8Array; - toProtoMsg(message: _22.BIP44Params): _22.BIP44ParamsProtoMsg; - }; - }; - } - namespace keyring { - const v1: { - Record: { - typeUrl: string; - encode(message: _23.Record, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record; - fromPartial(object: Partial<_23.Record>): _23.Record; - fromAmino(object: _23.RecordAmino): _23.Record; - toAmino(message: _23.Record): _23.RecordAmino; - fromAminoMsg(object: _23.RecordAminoMsg): _23.Record; - toAminoMsg(message: _23.Record): _23.RecordAminoMsg; - fromProtoMsg(message: _23.RecordProtoMsg): _23.Record; - toProto(message: _23.Record): Uint8Array; - toProtoMsg(message: _23.Record): _23.RecordProtoMsg; - }; - Record_Local: { - typeUrl: string; - encode(message: _23.Record_Local, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Local; - fromPartial(object: Partial<_23.Record_Local>): _23.Record_Local; - fromAmino(object: _23.Record_LocalAmino): _23.Record_Local; - toAmino(message: _23.Record_Local): _23.Record_LocalAmino; - fromAminoMsg(object: _23.Record_LocalAminoMsg): _23.Record_Local; - toAminoMsg(message: _23.Record_Local): _23.Record_LocalAminoMsg; - fromProtoMsg(message: _23.Record_LocalProtoMsg): _23.Record_Local; - toProto(message: _23.Record_Local): Uint8Array; - toProtoMsg(message: _23.Record_Local): _23.Record_LocalProtoMsg; - }; - Record_Ledger: { - typeUrl: string; - encode(message: _23.Record_Ledger, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Ledger; - fromPartial(object: Partial<_23.Record_Ledger>): _23.Record_Ledger; - fromAmino(object: _23.Record_LedgerAmino): _23.Record_Ledger; - toAmino(message: _23.Record_Ledger): _23.Record_LedgerAmino; - fromAminoMsg(object: _23.Record_LedgerAminoMsg): _23.Record_Ledger; - toAminoMsg(message: _23.Record_Ledger): _23.Record_LedgerAminoMsg; - fromProtoMsg(message: _23.Record_LedgerProtoMsg): _23.Record_Ledger; - toProto(message: _23.Record_Ledger): Uint8Array; - toProtoMsg(message: _23.Record_Ledger): _23.Record_LedgerProtoMsg; - }; - Record_Multi: { - typeUrl: string; - encode(_: _23.Record_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Multi; - fromPartial(_: Partial<_23.Record_Multi>): _23.Record_Multi; - fromAmino(_: _23.Record_MultiAmino): _23.Record_Multi; - toAmino(_: _23.Record_Multi): _23.Record_MultiAmino; - fromAminoMsg(object: _23.Record_MultiAminoMsg): _23.Record_Multi; - toAminoMsg(message: _23.Record_Multi): _23.Record_MultiAminoMsg; - fromProtoMsg(message: _23.Record_MultiProtoMsg): _23.Record_Multi; - toProto(message: _23.Record_Multi): Uint8Array; - toProtoMsg(message: _23.Record_Multi): _23.Record_MultiProtoMsg; - }; - Record_Offline: { - typeUrl: string; - encode(_: _23.Record_Offline, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _23.Record_Offline; - fromPartial(_: Partial<_23.Record_Offline>): _23.Record_Offline; - fromAmino(_: _23.Record_OfflineAmino): _23.Record_Offline; - toAmino(_: _23.Record_Offline): _23.Record_OfflineAmino; - fromAminoMsg(object: _23.Record_OfflineAminoMsg): _23.Record_Offline; - toAminoMsg(message: _23.Record_Offline): _23.Record_OfflineAminoMsg; - fromProtoMsg(message: _23.Record_OfflineProtoMsg): _23.Record_Offline; - toProto(message: _23.Record_Offline): Uint8Array; - toProtoMsg(message: _23.Record_Offline): _23.Record_OfflineProtoMsg; - }; - }; - } - const multisig: { - LegacyAminoPubKey: { - typeUrl: string; - encode(message: _24.LegacyAminoPubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _24.LegacyAminoPubKey; - fromPartial(object: Partial<_24.LegacyAminoPubKey>): _24.LegacyAminoPubKey; - fromAmino(object: _24.LegacyAminoPubKeyAmino): _24.LegacyAminoPubKey; - toAmino(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyAmino; - fromAminoMsg(object: _24.LegacyAminoPubKeyAminoMsg): _24.LegacyAminoPubKey; - toAminoMsg(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyAminoMsg; - fromProtoMsg(message: _24.LegacyAminoPubKeyProtoMsg): _24.LegacyAminoPubKey; - toProto(message: _24.LegacyAminoPubKey): Uint8Array; - toProtoMsg(message: _24.LegacyAminoPubKey): _24.LegacyAminoPubKeyProtoMsg; - }; - }; - const secp256k1: { - PubKey: { - typeUrl: string; - encode(message: _25.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _25.PubKey; - fromPartial(object: Partial<_25.PubKey>): _25.PubKey; - fromAmino(object: _25.PubKeyAmino): _25.PubKey; - toAmino(message: _25.PubKey): _25.PubKeyAmino; - fromAminoMsg(object: _25.PubKeyAminoMsg): _25.PubKey; - toAminoMsg(message: _25.PubKey): _25.PubKeyAminoMsg; - fromProtoMsg(message: _25.PubKeyProtoMsg): _25.PubKey; - toProto(message: _25.PubKey): Uint8Array; - toProtoMsg(message: _25.PubKey): _25.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _25.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _25.PrivKey; - fromPartial(object: Partial<_25.PrivKey>): _25.PrivKey; - fromAmino(object: _25.PrivKeyAmino): _25.PrivKey; - toAmino(message: _25.PrivKey): _25.PrivKeyAmino; - fromAminoMsg(object: _25.PrivKeyAminoMsg): _25.PrivKey; - toAminoMsg(message: _25.PrivKey): _25.PrivKeyAminoMsg; - fromProtoMsg(message: _25.PrivKeyProtoMsg): _25.PrivKey; - toProto(message: _25.PrivKey): Uint8Array; - toProtoMsg(message: _25.PrivKey): _25.PrivKeyProtoMsg; - }; - }; - const secp256r1: { - PubKey: { - typeUrl: string; - encode(message: _26.PubKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _26.PubKey; - fromPartial(object: Partial<_26.PubKey>): _26.PubKey; - fromAmino(object: _26.PubKeyAmino): _26.PubKey; - toAmino(message: _26.PubKey): _26.PubKeyAmino; - fromAminoMsg(object: _26.PubKeyAminoMsg): _26.PubKey; - toAminoMsg(message: _26.PubKey): _26.PubKeyAminoMsg; - fromProtoMsg(message: _26.PubKeyProtoMsg): _26.PubKey; - toProto(message: _26.PubKey): Uint8Array; - toProtoMsg(message: _26.PubKey): _26.PubKeyProtoMsg; - }; - PrivKey: { - typeUrl: string; - encode(message: _26.PrivKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _26.PrivKey; - fromPartial(object: Partial<_26.PrivKey>): _26.PrivKey; - fromAmino(object: _26.PrivKeyAmino): _26.PrivKey; - toAmino(message: _26.PrivKey): _26.PrivKeyAmino; - fromAminoMsg(object: _26.PrivKeyAminoMsg): _26.PrivKey; - toAminoMsg(message: _26.PrivKey): _26.PrivKeyAminoMsg; - fromProtoMsg(message: _26.PrivKeyProtoMsg): _26.PrivKey; - toProto(message: _26.PrivKey): Uint8Array; - toProtoMsg(message: _26.PrivKey): _26.PrivKeyProtoMsg; - }; - }; - } - namespace distribution { - const v1beta1: { - MsgClientImpl: typeof _169.MsgClientImpl; - QueryClientImpl: typeof _157.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request?: _29.QueryParamsRequest): Promise<_29.QueryParamsResponse>; - validatorOutstandingRewards(request: _29.QueryValidatorOutstandingRewardsRequest): Promise<_29.QueryValidatorOutstandingRewardsResponse>; - validatorCommission(request: _29.QueryValidatorCommissionRequest): Promise<_29.QueryValidatorCommissionResponse>; - validatorSlashes(request: _29.QueryValidatorSlashesRequest): Promise<_29.QueryValidatorSlashesResponse>; - delegationRewards(request: _29.QueryDelegationRewardsRequest): Promise<_29.QueryDelegationRewardsResponse>; - delegationTotalRewards(request: _29.QueryDelegationTotalRewardsRequest): Promise<_29.QueryDelegationTotalRewardsResponse>; - delegatorValidators(request: _29.QueryDelegatorValidatorsRequest): Promise<_29.QueryDelegatorValidatorsResponse>; - delegatorWithdrawAddress(request: _29.QueryDelegatorWithdrawAddressRequest): Promise<_29.QueryDelegatorWithdrawAddressResponse>; - communityPool(request?: _29.QueryCommunityPoolRequest): Promise<_29.QueryCommunityPoolResponse>; - }; - LCDQueryClient: typeof _143.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { - typeUrl: string; - value: Uint8Array; - }; - withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: Uint8Array; - }; - withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: Uint8Array; - }; - fundCommunityPool(value: _30.MsgFundCommunityPool): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { - typeUrl: string; - value: _30.MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: _30.MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: _30.MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: _30.MsgFundCommunityPool): { - typeUrl: string; - value: _30.MsgFundCommunityPool; - }; - }; - fromPartial: { - setWithdrawAddress(value: _30.MsgSetWithdrawAddress): { - typeUrl: string; - value: _30.MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: _30.MsgWithdrawDelegatorReward): { - typeUrl: string; - value: _30.MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: _30.MsgWithdrawValidatorCommission): { - typeUrl: string; - value: _30.MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: _30.MsgFundCommunityPool): { - typeUrl: string; - value: _30.MsgFundCommunityPool; - }; - }; - }; - AminoConverter: { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: _30.MsgSetWithdrawAddress) => _30.MsgSetWithdrawAddressAmino; - fromAmino: (object: _30.MsgSetWithdrawAddressAmino) => _30.MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: _30.MsgWithdrawDelegatorReward) => _30.MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: _30.MsgWithdrawDelegatorRewardAmino) => _30.MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: _30.MsgWithdrawValidatorCommission) => _30.MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: _30.MsgWithdrawValidatorCommissionAmino) => _30.MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: _30.MsgFundCommunityPool) => _30.MsgFundCommunityPoolAmino; - fromAmino: (object: _30.MsgFundCommunityPoolAmino) => _30.MsgFundCommunityPool; - }; - }; - MsgSetWithdrawAddress: { - typeUrl: string; - encode(message: _30.MsgSetWithdrawAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgSetWithdrawAddress; - fromPartial(object: Partial<_30.MsgSetWithdrawAddress>): _30.MsgSetWithdrawAddress; - fromAmino(object: _30.MsgSetWithdrawAddressAmino): _30.MsgSetWithdrawAddress; - toAmino(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressAmino; - fromAminoMsg(object: _30.MsgSetWithdrawAddressAminoMsg): _30.MsgSetWithdrawAddress; - toAminoMsg(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressAminoMsg; - fromProtoMsg(message: _30.MsgSetWithdrawAddressProtoMsg): _30.MsgSetWithdrawAddress; - toProto(message: _30.MsgSetWithdrawAddress): Uint8Array; - toProtoMsg(message: _30.MsgSetWithdrawAddress): _30.MsgSetWithdrawAddressProtoMsg; - }; - MsgSetWithdrawAddressResponse: { - typeUrl: string; - encode(_: _30.MsgSetWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgSetWithdrawAddressResponse; - fromPartial(_: Partial<_30.MsgSetWithdrawAddressResponse>): _30.MsgSetWithdrawAddressResponse; - fromAmino(_: _30.MsgSetWithdrawAddressResponseAmino): _30.MsgSetWithdrawAddressResponse; - toAmino(_: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseAmino; - fromAminoMsg(object: _30.MsgSetWithdrawAddressResponseAminoMsg): _30.MsgSetWithdrawAddressResponse; - toAminoMsg(message: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: _30.MsgSetWithdrawAddressResponseProtoMsg): _30.MsgSetWithdrawAddressResponse; - toProto(message: _30.MsgSetWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: _30.MsgSetWithdrawAddressResponse): _30.MsgSetWithdrawAddressResponseProtoMsg; - }; - MsgWithdrawDelegatorReward: { - typeUrl: string; - encode(message: _30.MsgWithdrawDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawDelegatorReward; - fromPartial(object: Partial<_30.MsgWithdrawDelegatorReward>): _30.MsgWithdrawDelegatorReward; - fromAmino(object: _30.MsgWithdrawDelegatorRewardAmino): _30.MsgWithdrawDelegatorReward; - toAmino(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardAmino; - fromAminoMsg(object: _30.MsgWithdrawDelegatorRewardAminoMsg): _30.MsgWithdrawDelegatorReward; - toAminoMsg(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardAminoMsg; - fromProtoMsg(message: _30.MsgWithdrawDelegatorRewardProtoMsg): _30.MsgWithdrawDelegatorReward; - toProto(message: _30.MsgWithdrawDelegatorReward): Uint8Array; - toProtoMsg(message: _30.MsgWithdrawDelegatorReward): _30.MsgWithdrawDelegatorRewardProtoMsg; - }; - MsgWithdrawDelegatorRewardResponse: { - typeUrl: string; - encode(message: _30.MsgWithdrawDelegatorRewardResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawDelegatorRewardResponse; - fromPartial(object: Partial<_30.MsgWithdrawDelegatorRewardResponse>): _30.MsgWithdrawDelegatorRewardResponse; - fromAmino(object: _30.MsgWithdrawDelegatorRewardResponseAmino): _30.MsgWithdrawDelegatorRewardResponse; - toAmino(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseAmino; - fromAminoMsg(object: _30.MsgWithdrawDelegatorRewardResponseAminoMsg): _30.MsgWithdrawDelegatorRewardResponse; - toAminoMsg(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseAminoMsg; - fromProtoMsg(message: _30.MsgWithdrawDelegatorRewardResponseProtoMsg): _30.MsgWithdrawDelegatorRewardResponse; - toProto(message: _30.MsgWithdrawDelegatorRewardResponse): Uint8Array; - toProtoMsg(message: _30.MsgWithdrawDelegatorRewardResponse): _30.MsgWithdrawDelegatorRewardResponseProtoMsg; - }; - MsgWithdrawValidatorCommission: { - typeUrl: string; - encode(message: _30.MsgWithdrawValidatorCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawValidatorCommission; - fromPartial(object: Partial<_30.MsgWithdrawValidatorCommission>): _30.MsgWithdrawValidatorCommission; - fromAmino(object: _30.MsgWithdrawValidatorCommissionAmino): _30.MsgWithdrawValidatorCommission; - toAmino(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionAmino; - fromAminoMsg(object: _30.MsgWithdrawValidatorCommissionAminoMsg): _30.MsgWithdrawValidatorCommission; - toAminoMsg(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionAminoMsg; - fromProtoMsg(message: _30.MsgWithdrawValidatorCommissionProtoMsg): _30.MsgWithdrawValidatorCommission; - toProto(message: _30.MsgWithdrawValidatorCommission): Uint8Array; - toProtoMsg(message: _30.MsgWithdrawValidatorCommission): _30.MsgWithdrawValidatorCommissionProtoMsg; - }; - MsgWithdrawValidatorCommissionResponse: { - typeUrl: string; - encode(message: _30.MsgWithdrawValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgWithdrawValidatorCommissionResponse; - fromPartial(object: Partial<_30.MsgWithdrawValidatorCommissionResponse>): _30.MsgWithdrawValidatorCommissionResponse; - fromAmino(object: _30.MsgWithdrawValidatorCommissionResponseAmino): _30.MsgWithdrawValidatorCommissionResponse; - toAmino(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseAmino; - fromAminoMsg(object: _30.MsgWithdrawValidatorCommissionResponseAminoMsg): _30.MsgWithdrawValidatorCommissionResponse; - toAminoMsg(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: _30.MsgWithdrawValidatorCommissionResponseProtoMsg): _30.MsgWithdrawValidatorCommissionResponse; - toProto(message: _30.MsgWithdrawValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: _30.MsgWithdrawValidatorCommissionResponse): _30.MsgWithdrawValidatorCommissionResponseProtoMsg; - }; - MsgFundCommunityPool: { - typeUrl: string; - encode(message: _30.MsgFundCommunityPool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgFundCommunityPool; - fromPartial(object: Partial<_30.MsgFundCommunityPool>): _30.MsgFundCommunityPool; - fromAmino(object: _30.MsgFundCommunityPoolAmino): _30.MsgFundCommunityPool; - toAmino(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolAmino; - fromAminoMsg(object: _30.MsgFundCommunityPoolAminoMsg): _30.MsgFundCommunityPool; - toAminoMsg(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolAminoMsg; - fromProtoMsg(message: _30.MsgFundCommunityPoolProtoMsg): _30.MsgFundCommunityPool; - toProto(message: _30.MsgFundCommunityPool): Uint8Array; - toProtoMsg(message: _30.MsgFundCommunityPool): _30.MsgFundCommunityPoolProtoMsg; - }; - MsgFundCommunityPoolResponse: { - typeUrl: string; - encode(_: _30.MsgFundCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _30.MsgFundCommunityPoolResponse; - fromPartial(_: Partial<_30.MsgFundCommunityPoolResponse>): _30.MsgFundCommunityPoolResponse; - fromAmino(_: _30.MsgFundCommunityPoolResponseAmino): _30.MsgFundCommunityPoolResponse; - toAmino(_: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseAmino; - fromAminoMsg(object: _30.MsgFundCommunityPoolResponseAminoMsg): _30.MsgFundCommunityPoolResponse; - toAminoMsg(message: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseAminoMsg; - fromProtoMsg(message: _30.MsgFundCommunityPoolResponseProtoMsg): _30.MsgFundCommunityPoolResponse; - toProto(message: _30.MsgFundCommunityPoolResponse): Uint8Array; - toProtoMsg(message: _30.MsgFundCommunityPoolResponse): _30.MsgFundCommunityPoolResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _29.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryParamsRequest; - fromPartial(_: Partial<_29.QueryParamsRequest>): _29.QueryParamsRequest; - fromAmino(_: _29.QueryParamsRequestAmino): _29.QueryParamsRequest; - toAmino(_: _29.QueryParamsRequest): _29.QueryParamsRequestAmino; - fromAminoMsg(object: _29.QueryParamsRequestAminoMsg): _29.QueryParamsRequest; - toAminoMsg(message: _29.QueryParamsRequest): _29.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _29.QueryParamsRequestProtoMsg): _29.QueryParamsRequest; - toProto(message: _29.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _29.QueryParamsRequest): _29.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _29.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryParamsResponse; - fromPartial(object: Partial<_29.QueryParamsResponse>): _29.QueryParamsResponse; - fromAmino(object: _29.QueryParamsResponseAmino): _29.QueryParamsResponse; - toAmino(message: _29.QueryParamsResponse): _29.QueryParamsResponseAmino; - fromAminoMsg(object: _29.QueryParamsResponseAminoMsg): _29.QueryParamsResponse; - toAminoMsg(message: _29.QueryParamsResponse): _29.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _29.QueryParamsResponseProtoMsg): _29.QueryParamsResponse; - toProto(message: _29.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _29.QueryParamsResponse): _29.QueryParamsResponseProtoMsg; - }; - QueryValidatorOutstandingRewardsRequest: { - typeUrl: string; - encode(message: _29.QueryValidatorOutstandingRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorOutstandingRewardsRequest; - fromPartial(object: Partial<_29.QueryValidatorOutstandingRewardsRequest>): _29.QueryValidatorOutstandingRewardsRequest; - fromAmino(object: _29.QueryValidatorOutstandingRewardsRequestAmino): _29.QueryValidatorOutstandingRewardsRequest; - toAmino(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestAmino; - fromAminoMsg(object: _29.QueryValidatorOutstandingRewardsRequestAminoMsg): _29.QueryValidatorOutstandingRewardsRequest; - toAminoMsg(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestAminoMsg; - fromProtoMsg(message: _29.QueryValidatorOutstandingRewardsRequestProtoMsg): _29.QueryValidatorOutstandingRewardsRequest; - toProto(message: _29.QueryValidatorOutstandingRewardsRequest): Uint8Array; - toProtoMsg(message: _29.QueryValidatorOutstandingRewardsRequest): _29.QueryValidatorOutstandingRewardsRequestProtoMsg; - }; - QueryValidatorOutstandingRewardsResponse: { - typeUrl: string; - encode(message: _29.QueryValidatorOutstandingRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorOutstandingRewardsResponse; - fromPartial(object: Partial<_29.QueryValidatorOutstandingRewardsResponse>): _29.QueryValidatorOutstandingRewardsResponse; - fromAmino(object: _29.QueryValidatorOutstandingRewardsResponseAmino): _29.QueryValidatorOutstandingRewardsResponse; - toAmino(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseAmino; - fromAminoMsg(object: _29.QueryValidatorOutstandingRewardsResponseAminoMsg): _29.QueryValidatorOutstandingRewardsResponse; - toAminoMsg(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseAminoMsg; - fromProtoMsg(message: _29.QueryValidatorOutstandingRewardsResponseProtoMsg): _29.QueryValidatorOutstandingRewardsResponse; - toProto(message: _29.QueryValidatorOutstandingRewardsResponse): Uint8Array; - toProtoMsg(message: _29.QueryValidatorOutstandingRewardsResponse): _29.QueryValidatorOutstandingRewardsResponseProtoMsg; - }; - QueryValidatorCommissionRequest: { - typeUrl: string; - encode(message: _29.QueryValidatorCommissionRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorCommissionRequest; - fromPartial(object: Partial<_29.QueryValidatorCommissionRequest>): _29.QueryValidatorCommissionRequest; - fromAmino(object: _29.QueryValidatorCommissionRequestAmino): _29.QueryValidatorCommissionRequest; - toAmino(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestAmino; - fromAminoMsg(object: _29.QueryValidatorCommissionRequestAminoMsg): _29.QueryValidatorCommissionRequest; - toAminoMsg(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestAminoMsg; - fromProtoMsg(message: _29.QueryValidatorCommissionRequestProtoMsg): _29.QueryValidatorCommissionRequest; - toProto(message: _29.QueryValidatorCommissionRequest): Uint8Array; - toProtoMsg(message: _29.QueryValidatorCommissionRequest): _29.QueryValidatorCommissionRequestProtoMsg; - }; - QueryValidatorCommissionResponse: { - typeUrl: string; - encode(message: _29.QueryValidatorCommissionResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorCommissionResponse; - fromPartial(object: Partial<_29.QueryValidatorCommissionResponse>): _29.QueryValidatorCommissionResponse; - fromAmino(object: _29.QueryValidatorCommissionResponseAmino): _29.QueryValidatorCommissionResponse; - toAmino(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseAmino; - fromAminoMsg(object: _29.QueryValidatorCommissionResponseAminoMsg): _29.QueryValidatorCommissionResponse; - toAminoMsg(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: _29.QueryValidatorCommissionResponseProtoMsg): _29.QueryValidatorCommissionResponse; - toProto(message: _29.QueryValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: _29.QueryValidatorCommissionResponse): _29.QueryValidatorCommissionResponseProtoMsg; - }; - QueryValidatorSlashesRequest: { - typeUrl: string; - encode(message: _29.QueryValidatorSlashesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorSlashesRequest; - fromPartial(object: Partial<_29.QueryValidatorSlashesRequest>): _29.QueryValidatorSlashesRequest; - fromAmino(object: _29.QueryValidatorSlashesRequestAmino): _29.QueryValidatorSlashesRequest; - toAmino(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestAmino; - fromAminoMsg(object: _29.QueryValidatorSlashesRequestAminoMsg): _29.QueryValidatorSlashesRequest; - toAminoMsg(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestAminoMsg; - fromProtoMsg(message: _29.QueryValidatorSlashesRequestProtoMsg): _29.QueryValidatorSlashesRequest; - toProto(message: _29.QueryValidatorSlashesRequest): Uint8Array; - toProtoMsg(message: _29.QueryValidatorSlashesRequest): _29.QueryValidatorSlashesRequestProtoMsg; - }; - QueryValidatorSlashesResponse: { - typeUrl: string; - encode(message: _29.QueryValidatorSlashesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryValidatorSlashesResponse; - fromPartial(object: Partial<_29.QueryValidatorSlashesResponse>): _29.QueryValidatorSlashesResponse; - fromAmino(object: _29.QueryValidatorSlashesResponseAmino): _29.QueryValidatorSlashesResponse; - toAmino(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseAmino; - fromAminoMsg(object: _29.QueryValidatorSlashesResponseAminoMsg): _29.QueryValidatorSlashesResponse; - toAminoMsg(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseAminoMsg; - fromProtoMsg(message: _29.QueryValidatorSlashesResponseProtoMsg): _29.QueryValidatorSlashesResponse; - toProto(message: _29.QueryValidatorSlashesResponse): Uint8Array; - toProtoMsg(message: _29.QueryValidatorSlashesResponse): _29.QueryValidatorSlashesResponseProtoMsg; - }; - QueryDelegationRewardsRequest: { - typeUrl: string; - encode(message: _29.QueryDelegationRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationRewardsRequest; - fromPartial(object: Partial<_29.QueryDelegationRewardsRequest>): _29.QueryDelegationRewardsRequest; - fromAmino(object: _29.QueryDelegationRewardsRequestAmino): _29.QueryDelegationRewardsRequest; - toAmino(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestAmino; - fromAminoMsg(object: _29.QueryDelegationRewardsRequestAminoMsg): _29.QueryDelegationRewardsRequest; - toAminoMsg(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestAminoMsg; - fromProtoMsg(message: _29.QueryDelegationRewardsRequestProtoMsg): _29.QueryDelegationRewardsRequest; - toProto(message: _29.QueryDelegationRewardsRequest): Uint8Array; - toProtoMsg(message: _29.QueryDelegationRewardsRequest): _29.QueryDelegationRewardsRequestProtoMsg; - }; - QueryDelegationRewardsResponse: { - typeUrl: string; - encode(message: _29.QueryDelegationRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationRewardsResponse; - fromPartial(object: Partial<_29.QueryDelegationRewardsResponse>): _29.QueryDelegationRewardsResponse; - fromAmino(object: _29.QueryDelegationRewardsResponseAmino): _29.QueryDelegationRewardsResponse; - toAmino(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseAmino; - fromAminoMsg(object: _29.QueryDelegationRewardsResponseAminoMsg): _29.QueryDelegationRewardsResponse; - toAminoMsg(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseAminoMsg; - fromProtoMsg(message: _29.QueryDelegationRewardsResponseProtoMsg): _29.QueryDelegationRewardsResponse; - toProto(message: _29.QueryDelegationRewardsResponse): Uint8Array; - toProtoMsg(message: _29.QueryDelegationRewardsResponse): _29.QueryDelegationRewardsResponseProtoMsg; - }; - QueryDelegationTotalRewardsRequest: { - typeUrl: string; - encode(message: _29.QueryDelegationTotalRewardsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationTotalRewardsRequest; - fromPartial(object: Partial<_29.QueryDelegationTotalRewardsRequest>): _29.QueryDelegationTotalRewardsRequest; - fromAmino(object: _29.QueryDelegationTotalRewardsRequestAmino): _29.QueryDelegationTotalRewardsRequest; - toAmino(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestAmino; - fromAminoMsg(object: _29.QueryDelegationTotalRewardsRequestAminoMsg): _29.QueryDelegationTotalRewardsRequest; - toAminoMsg(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestAminoMsg; - fromProtoMsg(message: _29.QueryDelegationTotalRewardsRequestProtoMsg): _29.QueryDelegationTotalRewardsRequest; - toProto(message: _29.QueryDelegationTotalRewardsRequest): Uint8Array; - toProtoMsg(message: _29.QueryDelegationTotalRewardsRequest): _29.QueryDelegationTotalRewardsRequestProtoMsg; - }; - QueryDelegationTotalRewardsResponse: { - typeUrl: string; - encode(message: _29.QueryDelegationTotalRewardsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegationTotalRewardsResponse; - fromPartial(object: Partial<_29.QueryDelegationTotalRewardsResponse>): _29.QueryDelegationTotalRewardsResponse; - fromAmino(object: _29.QueryDelegationTotalRewardsResponseAmino): _29.QueryDelegationTotalRewardsResponse; - toAmino(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseAmino; - fromAminoMsg(object: _29.QueryDelegationTotalRewardsResponseAminoMsg): _29.QueryDelegationTotalRewardsResponse; - toAminoMsg(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseAminoMsg; - fromProtoMsg(message: _29.QueryDelegationTotalRewardsResponseProtoMsg): _29.QueryDelegationTotalRewardsResponse; - toProto(message: _29.QueryDelegationTotalRewardsResponse): Uint8Array; - toProtoMsg(message: _29.QueryDelegationTotalRewardsResponse): _29.QueryDelegationTotalRewardsResponseProtoMsg; - }; - QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: _29.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorValidatorsRequest; - fromPartial(object: Partial<_29.QueryDelegatorValidatorsRequest>): _29.QueryDelegatorValidatorsRequest; - fromAmino(object: _29.QueryDelegatorValidatorsRequestAmino): _29.QueryDelegatorValidatorsRequest; - toAmino(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: _29.QueryDelegatorValidatorsRequestAminoMsg): _29.QueryDelegatorValidatorsRequest; - toAminoMsg(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: _29.QueryDelegatorValidatorsRequestProtoMsg): _29.QueryDelegatorValidatorsRequest; - toProto(message: _29.QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: _29.QueryDelegatorValidatorsRequest): _29.QueryDelegatorValidatorsRequestProtoMsg; - }; - QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: _29.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorValidatorsResponse; - fromPartial(object: Partial<_29.QueryDelegatorValidatorsResponse>): _29.QueryDelegatorValidatorsResponse; - fromAmino(object: _29.QueryDelegatorValidatorsResponseAmino): _29.QueryDelegatorValidatorsResponse; - toAmino(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: _29.QueryDelegatorValidatorsResponseAminoMsg): _29.QueryDelegatorValidatorsResponse; - toAminoMsg(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: _29.QueryDelegatorValidatorsResponseProtoMsg): _29.QueryDelegatorValidatorsResponse; - toProto(message: _29.QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: _29.QueryDelegatorValidatorsResponse): _29.QueryDelegatorValidatorsResponseProtoMsg; - }; - QueryDelegatorWithdrawAddressRequest: { - typeUrl: string; - encode(message: _29.QueryDelegatorWithdrawAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorWithdrawAddressRequest; - fromPartial(object: Partial<_29.QueryDelegatorWithdrawAddressRequest>): _29.QueryDelegatorWithdrawAddressRequest; - fromAmino(object: _29.QueryDelegatorWithdrawAddressRequestAmino): _29.QueryDelegatorWithdrawAddressRequest; - toAmino(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestAmino; - fromAminoMsg(object: _29.QueryDelegatorWithdrawAddressRequestAminoMsg): _29.QueryDelegatorWithdrawAddressRequest; - toAminoMsg(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestAminoMsg; - fromProtoMsg(message: _29.QueryDelegatorWithdrawAddressRequestProtoMsg): _29.QueryDelegatorWithdrawAddressRequest; - toProto(message: _29.QueryDelegatorWithdrawAddressRequest): Uint8Array; - toProtoMsg(message: _29.QueryDelegatorWithdrawAddressRequest): _29.QueryDelegatorWithdrawAddressRequestProtoMsg; - }; - QueryDelegatorWithdrawAddressResponse: { - typeUrl: string; - encode(message: _29.QueryDelegatorWithdrawAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryDelegatorWithdrawAddressResponse; - fromPartial(object: Partial<_29.QueryDelegatorWithdrawAddressResponse>): _29.QueryDelegatorWithdrawAddressResponse; - fromAmino(object: _29.QueryDelegatorWithdrawAddressResponseAmino): _29.QueryDelegatorWithdrawAddressResponse; - toAmino(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseAmino; - fromAminoMsg(object: _29.QueryDelegatorWithdrawAddressResponseAminoMsg): _29.QueryDelegatorWithdrawAddressResponse; - toAminoMsg(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: _29.QueryDelegatorWithdrawAddressResponseProtoMsg): _29.QueryDelegatorWithdrawAddressResponse; - toProto(message: _29.QueryDelegatorWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: _29.QueryDelegatorWithdrawAddressResponse): _29.QueryDelegatorWithdrawAddressResponseProtoMsg; - }; - QueryCommunityPoolRequest: { - typeUrl: string; - encode(_: _29.QueryCommunityPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryCommunityPoolRequest; - fromPartial(_: Partial<_29.QueryCommunityPoolRequest>): _29.QueryCommunityPoolRequest; - fromAmino(_: _29.QueryCommunityPoolRequestAmino): _29.QueryCommunityPoolRequest; - toAmino(_: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestAmino; - fromAminoMsg(object: _29.QueryCommunityPoolRequestAminoMsg): _29.QueryCommunityPoolRequest; - toAminoMsg(message: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestAminoMsg; - fromProtoMsg(message: _29.QueryCommunityPoolRequestProtoMsg): _29.QueryCommunityPoolRequest; - toProto(message: _29.QueryCommunityPoolRequest): Uint8Array; - toProtoMsg(message: _29.QueryCommunityPoolRequest): _29.QueryCommunityPoolRequestProtoMsg; - }; - QueryCommunityPoolResponse: { - typeUrl: string; - encode(message: _29.QueryCommunityPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _29.QueryCommunityPoolResponse; - fromPartial(object: Partial<_29.QueryCommunityPoolResponse>): _29.QueryCommunityPoolResponse; - fromAmino(object: _29.QueryCommunityPoolResponseAmino): _29.QueryCommunityPoolResponse; - toAmino(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseAmino; - fromAminoMsg(object: _29.QueryCommunityPoolResponseAminoMsg): _29.QueryCommunityPoolResponse; - toAminoMsg(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseAminoMsg; - fromProtoMsg(message: _29.QueryCommunityPoolResponseProtoMsg): _29.QueryCommunityPoolResponse; - toProto(message: _29.QueryCommunityPoolResponse): Uint8Array; - toProtoMsg(message: _29.QueryCommunityPoolResponse): _29.QueryCommunityPoolResponseProtoMsg; - }; - DelegatorWithdrawInfo: { - typeUrl: string; - encode(message: _28.DelegatorWithdrawInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.DelegatorWithdrawInfo; - fromPartial(object: Partial<_28.DelegatorWithdrawInfo>): _28.DelegatorWithdrawInfo; - fromAmino(object: _28.DelegatorWithdrawInfoAmino): _28.DelegatorWithdrawInfo; - toAmino(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoAmino; - fromAminoMsg(object: _28.DelegatorWithdrawInfoAminoMsg): _28.DelegatorWithdrawInfo; - toAminoMsg(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoAminoMsg; - fromProtoMsg(message: _28.DelegatorWithdrawInfoProtoMsg): _28.DelegatorWithdrawInfo; - toProto(message: _28.DelegatorWithdrawInfo): Uint8Array; - toProtoMsg(message: _28.DelegatorWithdrawInfo): _28.DelegatorWithdrawInfoProtoMsg; - }; - ValidatorOutstandingRewardsRecord: { - typeUrl: string; - encode(message: _28.ValidatorOutstandingRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorOutstandingRewardsRecord; - fromPartial(object: Partial<_28.ValidatorOutstandingRewardsRecord>): _28.ValidatorOutstandingRewardsRecord; - fromAmino(object: _28.ValidatorOutstandingRewardsRecordAmino): _28.ValidatorOutstandingRewardsRecord; - toAmino(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordAmino; - fromAminoMsg(object: _28.ValidatorOutstandingRewardsRecordAminoMsg): _28.ValidatorOutstandingRewardsRecord; - toAminoMsg(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordAminoMsg; - fromProtoMsg(message: _28.ValidatorOutstandingRewardsRecordProtoMsg): _28.ValidatorOutstandingRewardsRecord; - toProto(message: _28.ValidatorOutstandingRewardsRecord): Uint8Array; - toProtoMsg(message: _28.ValidatorOutstandingRewardsRecord): _28.ValidatorOutstandingRewardsRecordProtoMsg; - }; - ValidatorAccumulatedCommissionRecord: { - typeUrl: string; - encode(message: _28.ValidatorAccumulatedCommissionRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorAccumulatedCommissionRecord; - fromPartial(object: Partial<_28.ValidatorAccumulatedCommissionRecord>): _28.ValidatorAccumulatedCommissionRecord; - fromAmino(object: _28.ValidatorAccumulatedCommissionRecordAmino): _28.ValidatorAccumulatedCommissionRecord; - toAmino(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordAmino; - fromAminoMsg(object: _28.ValidatorAccumulatedCommissionRecordAminoMsg): _28.ValidatorAccumulatedCommissionRecord; - toAminoMsg(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordAminoMsg; - fromProtoMsg(message: _28.ValidatorAccumulatedCommissionRecordProtoMsg): _28.ValidatorAccumulatedCommissionRecord; - toProto(message: _28.ValidatorAccumulatedCommissionRecord): Uint8Array; - toProtoMsg(message: _28.ValidatorAccumulatedCommissionRecord): _28.ValidatorAccumulatedCommissionRecordProtoMsg; - }; - ValidatorHistoricalRewardsRecord: { - typeUrl: string; - encode(message: _28.ValidatorHistoricalRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorHistoricalRewardsRecord; - fromPartial(object: Partial<_28.ValidatorHistoricalRewardsRecord>): _28.ValidatorHistoricalRewardsRecord; - fromAmino(object: _28.ValidatorHistoricalRewardsRecordAmino): _28.ValidatorHistoricalRewardsRecord; - toAmino(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordAmino; - fromAminoMsg(object: _28.ValidatorHistoricalRewardsRecordAminoMsg): _28.ValidatorHistoricalRewardsRecord; - toAminoMsg(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordAminoMsg; - fromProtoMsg(message: _28.ValidatorHistoricalRewardsRecordProtoMsg): _28.ValidatorHistoricalRewardsRecord; - toProto(message: _28.ValidatorHistoricalRewardsRecord): Uint8Array; - toProtoMsg(message: _28.ValidatorHistoricalRewardsRecord): _28.ValidatorHistoricalRewardsRecordProtoMsg; - }; - ValidatorCurrentRewardsRecord: { - typeUrl: string; - encode(message: _28.ValidatorCurrentRewardsRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorCurrentRewardsRecord; - fromPartial(object: Partial<_28.ValidatorCurrentRewardsRecord>): _28.ValidatorCurrentRewardsRecord; - fromAmino(object: _28.ValidatorCurrentRewardsRecordAmino): _28.ValidatorCurrentRewardsRecord; - toAmino(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordAmino; - fromAminoMsg(object: _28.ValidatorCurrentRewardsRecordAminoMsg): _28.ValidatorCurrentRewardsRecord; - toAminoMsg(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordAminoMsg; - fromProtoMsg(message: _28.ValidatorCurrentRewardsRecordProtoMsg): _28.ValidatorCurrentRewardsRecord; - toProto(message: _28.ValidatorCurrentRewardsRecord): Uint8Array; - toProtoMsg(message: _28.ValidatorCurrentRewardsRecord): _28.ValidatorCurrentRewardsRecordProtoMsg; - }; - DelegatorStartingInfoRecord: { - typeUrl: string; - encode(message: _28.DelegatorStartingInfoRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.DelegatorStartingInfoRecord; - fromPartial(object: Partial<_28.DelegatorStartingInfoRecord>): _28.DelegatorStartingInfoRecord; - fromAmino(object: _28.DelegatorStartingInfoRecordAmino): _28.DelegatorStartingInfoRecord; - toAmino(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordAmino; - fromAminoMsg(object: _28.DelegatorStartingInfoRecordAminoMsg): _28.DelegatorStartingInfoRecord; - toAminoMsg(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordAminoMsg; - fromProtoMsg(message: _28.DelegatorStartingInfoRecordProtoMsg): _28.DelegatorStartingInfoRecord; - toProto(message: _28.DelegatorStartingInfoRecord): Uint8Array; - toProtoMsg(message: _28.DelegatorStartingInfoRecord): _28.DelegatorStartingInfoRecordProtoMsg; - }; - ValidatorSlashEventRecord: { - typeUrl: string; - encode(message: _28.ValidatorSlashEventRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.ValidatorSlashEventRecord; - fromPartial(object: Partial<_28.ValidatorSlashEventRecord>): _28.ValidatorSlashEventRecord; - fromAmino(object: _28.ValidatorSlashEventRecordAmino): _28.ValidatorSlashEventRecord; - toAmino(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordAmino; - fromAminoMsg(object: _28.ValidatorSlashEventRecordAminoMsg): _28.ValidatorSlashEventRecord; - toAminoMsg(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordAminoMsg; - fromProtoMsg(message: _28.ValidatorSlashEventRecordProtoMsg): _28.ValidatorSlashEventRecord; - toProto(message: _28.ValidatorSlashEventRecord): Uint8Array; - toProtoMsg(message: _28.ValidatorSlashEventRecord): _28.ValidatorSlashEventRecordProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _28.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _28.GenesisState; - fromPartial(object: Partial<_28.GenesisState>): _28.GenesisState; - fromAmino(object: _28.GenesisStateAmino): _28.GenesisState; - toAmino(message: _28.GenesisState): _28.GenesisStateAmino; - fromAminoMsg(object: _28.GenesisStateAminoMsg): _28.GenesisState; - toAminoMsg(message: _28.GenesisState): _28.GenesisStateAminoMsg; - fromProtoMsg(message: _28.GenesisStateProtoMsg): _28.GenesisState; - toProto(message: _28.GenesisState): Uint8Array; - toProtoMsg(message: _28.GenesisState): _28.GenesisStateProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _27.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.Params; - fromPartial(object: Partial<_27.Params>): _27.Params; - fromAmino(object: _27.ParamsAmino): _27.Params; - toAmino(message: _27.Params): _27.ParamsAmino; - fromAminoMsg(object: _27.ParamsAminoMsg): _27.Params; - toAminoMsg(message: _27.Params): _27.ParamsAminoMsg; - fromProtoMsg(message: _27.ParamsProtoMsg): _27.Params; - toProto(message: _27.Params): Uint8Array; - toProtoMsg(message: _27.Params): _27.ParamsProtoMsg; - }; - ValidatorHistoricalRewards: { - typeUrl: string; - encode(message: _27.ValidatorHistoricalRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorHistoricalRewards; - fromPartial(object: Partial<_27.ValidatorHistoricalRewards>): _27.ValidatorHistoricalRewards; - fromAmino(object: _27.ValidatorHistoricalRewardsAmino): _27.ValidatorHistoricalRewards; - toAmino(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsAmino; - fromAminoMsg(object: _27.ValidatorHistoricalRewardsAminoMsg): _27.ValidatorHistoricalRewards; - toAminoMsg(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsAminoMsg; - fromProtoMsg(message: _27.ValidatorHistoricalRewardsProtoMsg): _27.ValidatorHistoricalRewards; - toProto(message: _27.ValidatorHistoricalRewards): Uint8Array; - toProtoMsg(message: _27.ValidatorHistoricalRewards): _27.ValidatorHistoricalRewardsProtoMsg; - }; - ValidatorCurrentRewards: { - typeUrl: string; - encode(message: _27.ValidatorCurrentRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorCurrentRewards; - fromPartial(object: Partial<_27.ValidatorCurrentRewards>): _27.ValidatorCurrentRewards; - fromAmino(object: _27.ValidatorCurrentRewardsAmino): _27.ValidatorCurrentRewards; - toAmino(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsAmino; - fromAminoMsg(object: _27.ValidatorCurrentRewardsAminoMsg): _27.ValidatorCurrentRewards; - toAminoMsg(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsAminoMsg; - fromProtoMsg(message: _27.ValidatorCurrentRewardsProtoMsg): _27.ValidatorCurrentRewards; - toProto(message: _27.ValidatorCurrentRewards): Uint8Array; - toProtoMsg(message: _27.ValidatorCurrentRewards): _27.ValidatorCurrentRewardsProtoMsg; - }; - ValidatorAccumulatedCommission: { - typeUrl: string; - encode(message: _27.ValidatorAccumulatedCommission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorAccumulatedCommission; - fromPartial(object: Partial<_27.ValidatorAccumulatedCommission>): _27.ValidatorAccumulatedCommission; - fromAmino(object: _27.ValidatorAccumulatedCommissionAmino): _27.ValidatorAccumulatedCommission; - toAmino(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionAmino; - fromAminoMsg(object: _27.ValidatorAccumulatedCommissionAminoMsg): _27.ValidatorAccumulatedCommission; - toAminoMsg(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionAminoMsg; - fromProtoMsg(message: _27.ValidatorAccumulatedCommissionProtoMsg): _27.ValidatorAccumulatedCommission; - toProto(message: _27.ValidatorAccumulatedCommission): Uint8Array; - toProtoMsg(message: _27.ValidatorAccumulatedCommission): _27.ValidatorAccumulatedCommissionProtoMsg; - }; - ValidatorOutstandingRewards: { - typeUrl: string; - encode(message: _27.ValidatorOutstandingRewards, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorOutstandingRewards; - fromPartial(object: Partial<_27.ValidatorOutstandingRewards>): _27.ValidatorOutstandingRewards; - fromAmino(object: _27.ValidatorOutstandingRewardsAmino): _27.ValidatorOutstandingRewards; - toAmino(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsAmino; - fromAminoMsg(object: _27.ValidatorOutstandingRewardsAminoMsg): _27.ValidatorOutstandingRewards; - toAminoMsg(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsAminoMsg; - fromProtoMsg(message: _27.ValidatorOutstandingRewardsProtoMsg): _27.ValidatorOutstandingRewards; - toProto(message: _27.ValidatorOutstandingRewards): Uint8Array; - toProtoMsg(message: _27.ValidatorOutstandingRewards): _27.ValidatorOutstandingRewardsProtoMsg; - }; - ValidatorSlashEvent: { - typeUrl: string; - encode(message: _27.ValidatorSlashEvent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorSlashEvent; - fromPartial(object: Partial<_27.ValidatorSlashEvent>): _27.ValidatorSlashEvent; - fromAmino(object: _27.ValidatorSlashEventAmino): _27.ValidatorSlashEvent; - toAmino(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventAmino; - fromAminoMsg(object: _27.ValidatorSlashEventAminoMsg): _27.ValidatorSlashEvent; - toAminoMsg(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventAminoMsg; - fromProtoMsg(message: _27.ValidatorSlashEventProtoMsg): _27.ValidatorSlashEvent; - toProto(message: _27.ValidatorSlashEvent): Uint8Array; - toProtoMsg(message: _27.ValidatorSlashEvent): _27.ValidatorSlashEventProtoMsg; - }; - ValidatorSlashEvents: { - typeUrl: string; - encode(message: _27.ValidatorSlashEvents, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.ValidatorSlashEvents; - fromPartial(object: Partial<_27.ValidatorSlashEvents>): _27.ValidatorSlashEvents; - fromAmino(object: _27.ValidatorSlashEventsAmino): _27.ValidatorSlashEvents; - toAmino(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsAmino; - fromAminoMsg(object: _27.ValidatorSlashEventsAminoMsg): _27.ValidatorSlashEvents; - toAminoMsg(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsAminoMsg; - fromProtoMsg(message: _27.ValidatorSlashEventsProtoMsg): _27.ValidatorSlashEvents; - toProto(message: _27.ValidatorSlashEvents): Uint8Array; - toProtoMsg(message: _27.ValidatorSlashEvents): _27.ValidatorSlashEventsProtoMsg; - }; - FeePool: { - typeUrl: string; - encode(message: _27.FeePool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.FeePool; - fromPartial(object: Partial<_27.FeePool>): _27.FeePool; - fromAmino(object: _27.FeePoolAmino): _27.FeePool; - toAmino(message: _27.FeePool): _27.FeePoolAmino; - fromAminoMsg(object: _27.FeePoolAminoMsg): _27.FeePool; - toAminoMsg(message: _27.FeePool): _27.FeePoolAminoMsg; - fromProtoMsg(message: _27.FeePoolProtoMsg): _27.FeePool; - toProto(message: _27.FeePool): Uint8Array; - toProtoMsg(message: _27.FeePool): _27.FeePoolProtoMsg; - }; - CommunityPoolSpendProposal: { - typeUrl: string; - encode(message: _27.CommunityPoolSpendProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.CommunityPoolSpendProposal; - fromPartial(object: Partial<_27.CommunityPoolSpendProposal>): _27.CommunityPoolSpendProposal; - fromAmino(object: _27.CommunityPoolSpendProposalAmino): _27.CommunityPoolSpendProposal; - toAmino(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalAmino; - fromAminoMsg(object: _27.CommunityPoolSpendProposalAminoMsg): _27.CommunityPoolSpendProposal; - toAminoMsg(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalAminoMsg; - fromProtoMsg(message: _27.CommunityPoolSpendProposalProtoMsg): _27.CommunityPoolSpendProposal; - toProto(message: _27.CommunityPoolSpendProposal): Uint8Array; - toProtoMsg(message: _27.CommunityPoolSpendProposal): _27.CommunityPoolSpendProposalProtoMsg; - }; - DelegatorStartingInfo: { - typeUrl: string; - encode(message: _27.DelegatorStartingInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.DelegatorStartingInfo; - fromPartial(object: Partial<_27.DelegatorStartingInfo>): _27.DelegatorStartingInfo; - fromAmino(object: _27.DelegatorStartingInfoAmino): _27.DelegatorStartingInfo; - toAmino(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoAmino; - fromAminoMsg(object: _27.DelegatorStartingInfoAminoMsg): _27.DelegatorStartingInfo; - toAminoMsg(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoAminoMsg; - fromProtoMsg(message: _27.DelegatorStartingInfoProtoMsg): _27.DelegatorStartingInfo; - toProto(message: _27.DelegatorStartingInfo): Uint8Array; - toProtoMsg(message: _27.DelegatorStartingInfo): _27.DelegatorStartingInfoProtoMsg; - }; - DelegationDelegatorReward: { - typeUrl: string; - encode(message: _27.DelegationDelegatorReward, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.DelegationDelegatorReward; - fromPartial(object: Partial<_27.DelegationDelegatorReward>): _27.DelegationDelegatorReward; - fromAmino(object: _27.DelegationDelegatorRewardAmino): _27.DelegationDelegatorReward; - toAmino(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardAmino; - fromAminoMsg(object: _27.DelegationDelegatorRewardAminoMsg): _27.DelegationDelegatorReward; - toAminoMsg(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardAminoMsg; - fromProtoMsg(message: _27.DelegationDelegatorRewardProtoMsg): _27.DelegationDelegatorReward; - toProto(message: _27.DelegationDelegatorReward): Uint8Array; - toProtoMsg(message: _27.DelegationDelegatorReward): _27.DelegationDelegatorRewardProtoMsg; - }; - CommunityPoolSpendProposalWithDeposit: { - typeUrl: string; - encode(message: _27.CommunityPoolSpendProposalWithDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _27.CommunityPoolSpendProposalWithDeposit; - fromPartial(object: Partial<_27.CommunityPoolSpendProposalWithDeposit>): _27.CommunityPoolSpendProposalWithDeposit; - fromAmino(object: _27.CommunityPoolSpendProposalWithDepositAmino): _27.CommunityPoolSpendProposalWithDeposit; - toAmino(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositAmino; - fromAminoMsg(object: _27.CommunityPoolSpendProposalWithDepositAminoMsg): _27.CommunityPoolSpendProposalWithDeposit; - toAminoMsg(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositAminoMsg; - fromProtoMsg(message: _27.CommunityPoolSpendProposalWithDepositProtoMsg): _27.CommunityPoolSpendProposalWithDeposit; - toProto(message: _27.CommunityPoolSpendProposalWithDeposit): Uint8Array; - toProtoMsg(message: _27.CommunityPoolSpendProposalWithDeposit): _27.CommunityPoolSpendProposalWithDepositProtoMsg; - }; - }; - } - namespace feegrant { - const v1beta1: { - MsgClientImpl: typeof _170.MsgClientImpl; - QueryClientImpl: typeof _158.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - allowance(request: _33.QueryAllowanceRequest): Promise<_33.QueryAllowanceResponse>; - allowances(request: _33.QueryAllowancesRequest): Promise<_33.QueryAllowancesResponse>; - allowancesByGranter(request: _33.QueryAllowancesByGranterRequest): Promise<_33.QueryAllowancesByGranterResponse>; - }; - LCDQueryClient: typeof _144.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - grantAllowance(value: _34.MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: _34.MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: _34.MsgGrantAllowance): { - typeUrl: string; - value: _34.MsgGrantAllowance; - }; - revokeAllowance(value: _34.MsgRevokeAllowance): { - typeUrl: string; - value: _34.MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: _34.MsgGrantAllowance): { - typeUrl: string; - value: _34.MsgGrantAllowance; - }; - revokeAllowance(value: _34.MsgRevokeAllowance): { - typeUrl: string; - value: _34.MsgRevokeAllowance; - }; - }; - }; - AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: _34.MsgGrantAllowance) => _34.MsgGrantAllowanceAmino; - fromAmino: (object: _34.MsgGrantAllowanceAmino) => _34.MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: _34.MsgRevokeAllowance) => _34.MsgRevokeAllowanceAmino; - fromAmino: (object: _34.MsgRevokeAllowanceAmino) => _34.MsgRevokeAllowance; - }; - }; - MsgGrantAllowance: { - typeUrl: string; - encode(message: _34.MsgGrantAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgGrantAllowance; - fromPartial(object: Partial<_34.MsgGrantAllowance>): _34.MsgGrantAllowance; - fromAmino(object: _34.MsgGrantAllowanceAmino): _34.MsgGrantAllowance; - toAmino(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceAmino; - fromAminoMsg(object: _34.MsgGrantAllowanceAminoMsg): _34.MsgGrantAllowance; - toAminoMsg(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceAminoMsg; - fromProtoMsg(message: _34.MsgGrantAllowanceProtoMsg): _34.MsgGrantAllowance; - toProto(message: _34.MsgGrantAllowance): Uint8Array; - toProtoMsg(message: _34.MsgGrantAllowance): _34.MsgGrantAllowanceProtoMsg; - }; - MsgGrantAllowanceResponse: { - typeUrl: string; - encode(_: _34.MsgGrantAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgGrantAllowanceResponse; - fromPartial(_: Partial<_34.MsgGrantAllowanceResponse>): _34.MsgGrantAllowanceResponse; - fromAmino(_: _34.MsgGrantAllowanceResponseAmino): _34.MsgGrantAllowanceResponse; - toAmino(_: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseAmino; - fromAminoMsg(object: _34.MsgGrantAllowanceResponseAminoMsg): _34.MsgGrantAllowanceResponse; - toAminoMsg(message: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseAminoMsg; - fromProtoMsg(message: _34.MsgGrantAllowanceResponseProtoMsg): _34.MsgGrantAllowanceResponse; - toProto(message: _34.MsgGrantAllowanceResponse): Uint8Array; - toProtoMsg(message: _34.MsgGrantAllowanceResponse): _34.MsgGrantAllowanceResponseProtoMsg; - }; - MsgRevokeAllowance: { - typeUrl: string; - encode(message: _34.MsgRevokeAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgRevokeAllowance; - fromPartial(object: Partial<_34.MsgRevokeAllowance>): _34.MsgRevokeAllowance; - fromAmino(object: _34.MsgRevokeAllowanceAmino): _34.MsgRevokeAllowance; - toAmino(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceAmino; - fromAminoMsg(object: _34.MsgRevokeAllowanceAminoMsg): _34.MsgRevokeAllowance; - toAminoMsg(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceAminoMsg; - fromProtoMsg(message: _34.MsgRevokeAllowanceProtoMsg): _34.MsgRevokeAllowance; - toProto(message: _34.MsgRevokeAllowance): Uint8Array; - toProtoMsg(message: _34.MsgRevokeAllowance): _34.MsgRevokeAllowanceProtoMsg; - }; - MsgRevokeAllowanceResponse: { - typeUrl: string; - encode(_: _34.MsgRevokeAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _34.MsgRevokeAllowanceResponse; - fromPartial(_: Partial<_34.MsgRevokeAllowanceResponse>): _34.MsgRevokeAllowanceResponse; - fromAmino(_: _34.MsgRevokeAllowanceResponseAmino): _34.MsgRevokeAllowanceResponse; - toAmino(_: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseAmino; - fromAminoMsg(object: _34.MsgRevokeAllowanceResponseAminoMsg): _34.MsgRevokeAllowanceResponse; - toAminoMsg(message: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseAminoMsg; - fromProtoMsg(message: _34.MsgRevokeAllowanceResponseProtoMsg): _34.MsgRevokeAllowanceResponse; - toProto(message: _34.MsgRevokeAllowanceResponse): Uint8Array; - toProtoMsg(message: _34.MsgRevokeAllowanceResponse): _34.MsgRevokeAllowanceResponseProtoMsg; - }; - FeeAllowanceI_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _31.BasicAllowance | _31.PeriodicAllowance | _31.AllowedMsgAllowance; - FeeAllowanceI_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - FeeAllowanceI_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryAllowanceRequest: { - typeUrl: string; - encode(message: _33.QueryAllowanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowanceRequest; - fromPartial(object: Partial<_33.QueryAllowanceRequest>): _33.QueryAllowanceRequest; - fromAmino(object: _33.QueryAllowanceRequestAmino): _33.QueryAllowanceRequest; - toAmino(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestAmino; - fromAminoMsg(object: _33.QueryAllowanceRequestAminoMsg): _33.QueryAllowanceRequest; - toAminoMsg(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestAminoMsg; - fromProtoMsg(message: _33.QueryAllowanceRequestProtoMsg): _33.QueryAllowanceRequest; - toProto(message: _33.QueryAllowanceRequest): Uint8Array; - toProtoMsg(message: _33.QueryAllowanceRequest): _33.QueryAllowanceRequestProtoMsg; - }; - QueryAllowanceResponse: { - typeUrl: string; - encode(message: _33.QueryAllowanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowanceResponse; - fromPartial(object: Partial<_33.QueryAllowanceResponse>): _33.QueryAllowanceResponse; - fromAmino(object: _33.QueryAllowanceResponseAmino): _33.QueryAllowanceResponse; - toAmino(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseAmino; - fromAminoMsg(object: _33.QueryAllowanceResponseAminoMsg): _33.QueryAllowanceResponse; - toAminoMsg(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseAminoMsg; - fromProtoMsg(message: _33.QueryAllowanceResponseProtoMsg): _33.QueryAllowanceResponse; - toProto(message: _33.QueryAllowanceResponse): Uint8Array; - toProtoMsg(message: _33.QueryAllowanceResponse): _33.QueryAllowanceResponseProtoMsg; - }; - QueryAllowancesRequest: { - typeUrl: string; - encode(message: _33.QueryAllowancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesRequest; - fromPartial(object: Partial<_33.QueryAllowancesRequest>): _33.QueryAllowancesRequest; - fromAmino(object: _33.QueryAllowancesRequestAmino): _33.QueryAllowancesRequest; - toAmino(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestAmino; - fromAminoMsg(object: _33.QueryAllowancesRequestAminoMsg): _33.QueryAllowancesRequest; - toAminoMsg(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestAminoMsg; - fromProtoMsg(message: _33.QueryAllowancesRequestProtoMsg): _33.QueryAllowancesRequest; - toProto(message: _33.QueryAllowancesRequest): Uint8Array; - toProtoMsg(message: _33.QueryAllowancesRequest): _33.QueryAllowancesRequestProtoMsg; - }; - QueryAllowancesResponse: { - typeUrl: string; - encode(message: _33.QueryAllowancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesResponse; - fromPartial(object: Partial<_33.QueryAllowancesResponse>): _33.QueryAllowancesResponse; - fromAmino(object: _33.QueryAllowancesResponseAmino): _33.QueryAllowancesResponse; - toAmino(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseAmino; - fromAminoMsg(object: _33.QueryAllowancesResponseAminoMsg): _33.QueryAllowancesResponse; - toAminoMsg(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseAminoMsg; - fromProtoMsg(message: _33.QueryAllowancesResponseProtoMsg): _33.QueryAllowancesResponse; - toProto(message: _33.QueryAllowancesResponse): Uint8Array; - toProtoMsg(message: _33.QueryAllowancesResponse): _33.QueryAllowancesResponseProtoMsg; - }; - QueryAllowancesByGranterRequest: { - typeUrl: string; - encode(message: _33.QueryAllowancesByGranterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesByGranterRequest; - fromPartial(object: Partial<_33.QueryAllowancesByGranterRequest>): _33.QueryAllowancesByGranterRequest; - fromAmino(object: _33.QueryAllowancesByGranterRequestAmino): _33.QueryAllowancesByGranterRequest; - toAmino(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestAmino; - fromAminoMsg(object: _33.QueryAllowancesByGranterRequestAminoMsg): _33.QueryAllowancesByGranterRequest; - toAminoMsg(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestAminoMsg; - fromProtoMsg(message: _33.QueryAllowancesByGranterRequestProtoMsg): _33.QueryAllowancesByGranterRequest; - toProto(message: _33.QueryAllowancesByGranterRequest): Uint8Array; - toProtoMsg(message: _33.QueryAllowancesByGranterRequest): _33.QueryAllowancesByGranterRequestProtoMsg; - }; - QueryAllowancesByGranterResponse: { - typeUrl: string; - encode(message: _33.QueryAllowancesByGranterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _33.QueryAllowancesByGranterResponse; - fromPartial(object: Partial<_33.QueryAllowancesByGranterResponse>): _33.QueryAllowancesByGranterResponse; - fromAmino(object: _33.QueryAllowancesByGranterResponseAmino): _33.QueryAllowancesByGranterResponse; - toAmino(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseAmino; - fromAminoMsg(object: _33.QueryAllowancesByGranterResponseAminoMsg): _33.QueryAllowancesByGranterResponse; - toAminoMsg(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseAminoMsg; - fromProtoMsg(message: _33.QueryAllowancesByGranterResponseProtoMsg): _33.QueryAllowancesByGranterResponse; - toProto(message: _33.QueryAllowancesByGranterResponse): Uint8Array; - toProtoMsg(message: _33.QueryAllowancesByGranterResponse): _33.QueryAllowancesByGranterResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _32.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _32.GenesisState; - fromPartial(object: Partial<_32.GenesisState>): _32.GenesisState; - fromAmino(object: _32.GenesisStateAmino): _32.GenesisState; - toAmino(message: _32.GenesisState): _32.GenesisStateAmino; - fromAminoMsg(object: _32.GenesisStateAminoMsg): _32.GenesisState; - toAminoMsg(message: _32.GenesisState): _32.GenesisStateAminoMsg; - fromProtoMsg(message: _32.GenesisStateProtoMsg): _32.GenesisState; - toProto(message: _32.GenesisState): Uint8Array; - toProtoMsg(message: _32.GenesisState): _32.GenesisStateProtoMsg; - }; - BasicAllowance: { - typeUrl: string; - encode(message: _31.BasicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.BasicAllowance; - fromPartial(object: Partial<_31.BasicAllowance>): _31.BasicAllowance; - fromAmino(object: _31.BasicAllowanceAmino): _31.BasicAllowance; - toAmino(message: _31.BasicAllowance): _31.BasicAllowanceAmino; - fromAminoMsg(object: _31.BasicAllowanceAminoMsg): _31.BasicAllowance; - toAminoMsg(message: _31.BasicAllowance): _31.BasicAllowanceAminoMsg; - fromProtoMsg(message: _31.BasicAllowanceProtoMsg): _31.BasicAllowance; - toProto(message: _31.BasicAllowance): Uint8Array; - toProtoMsg(message: _31.BasicAllowance): _31.BasicAllowanceProtoMsg; - }; - PeriodicAllowance: { - typeUrl: string; - encode(message: _31.PeriodicAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.PeriodicAllowance; - fromPartial(object: Partial<_31.PeriodicAllowance>): _31.PeriodicAllowance; - fromAmino(object: _31.PeriodicAllowanceAmino): _31.PeriodicAllowance; - toAmino(message: _31.PeriodicAllowance): _31.PeriodicAllowanceAmino; - fromAminoMsg(object: _31.PeriodicAllowanceAminoMsg): _31.PeriodicAllowance; - toAminoMsg(message: _31.PeriodicAllowance): _31.PeriodicAllowanceAminoMsg; - fromProtoMsg(message: _31.PeriodicAllowanceProtoMsg): _31.PeriodicAllowance; - toProto(message: _31.PeriodicAllowance): Uint8Array; - toProtoMsg(message: _31.PeriodicAllowance): _31.PeriodicAllowanceProtoMsg; - }; - AllowedMsgAllowance: { - typeUrl: string; - encode(message: _31.AllowedMsgAllowance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.AllowedMsgAllowance; - fromPartial(object: Partial<_31.AllowedMsgAllowance>): _31.AllowedMsgAllowance; - fromAmino(object: _31.AllowedMsgAllowanceAmino): _31.AllowedMsgAllowance; - toAmino(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceAmino; - fromAminoMsg(object: _31.AllowedMsgAllowanceAminoMsg): _31.AllowedMsgAllowance; - toAminoMsg(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceAminoMsg; - fromProtoMsg(message: _31.AllowedMsgAllowanceProtoMsg): _31.AllowedMsgAllowance; - toProto(message: _31.AllowedMsgAllowance): Uint8Array; - toProtoMsg(message: _31.AllowedMsgAllowance): _31.AllowedMsgAllowanceProtoMsg; - }; - Grant: { - typeUrl: string; - encode(message: _31.Grant, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _31.Grant; - fromPartial(object: Partial<_31.Grant>): _31.Grant; - fromAmino(object: _31.GrantAmino): _31.Grant; - toAmino(message: _31.Grant): _31.GrantAmino; - fromAminoMsg(object: _31.GrantAminoMsg): _31.Grant; - toAminoMsg(message: _31.Grant): _31.GrantAminoMsg; - fromProtoMsg(message: _31.GrantProtoMsg): _31.Grant; - toProto(message: _31.Grant): Uint8Array; - toProtoMsg(message: _31.Grant): _31.GrantProtoMsg; - }; - }; - } - namespace gov { - const v1: { - MsgClientImpl: typeof _171.MsgClientImpl; - QueryClientImpl: typeof _159.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - proposal(request: _37.QueryProposalRequest): Promise<_37.QueryProposalResponse>; - proposals(request: _37.QueryProposalsRequest): Promise<_37.QueryProposalsResponse>; - vote(request: _37.QueryVoteRequest): Promise<_37.QueryVoteResponse>; - votes(request: _37.QueryVotesRequest): Promise<_37.QueryVotesResponse>; - params(request: _37.QueryParamsRequest): Promise<_37.QueryParamsResponse>; - deposit(request: _37.QueryDepositRequest): Promise<_37.QueryDepositResponse>; - deposits(request: _37.QueryDepositsRequest): Promise<_37.QueryDepositsResponse>; - tallyResult(request: _37.QueryTallyResultRequest): Promise<_37.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _145.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitProposal(value: _38.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: _38.MsgExecLegacyContent): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _38.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: _38.MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: _38.MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: _38.MsgSubmitProposal): { - typeUrl: string; - value: _38.MsgSubmitProposal; - }; - execLegacyContent(value: _38.MsgExecLegacyContent): { - typeUrl: string; - value: _38.MsgExecLegacyContent; - }; - vote(value: _38.MsgVote): { - typeUrl: string; - value: _38.MsgVote; - }; - voteWeighted(value: _38.MsgVoteWeighted): { - typeUrl: string; - value: _38.MsgVoteWeighted; - }; - deposit(value: _38.MsgDeposit): { - typeUrl: string; - value: _38.MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: _38.MsgSubmitProposal): { - typeUrl: string; - value: _38.MsgSubmitProposal; - }; - execLegacyContent(value: _38.MsgExecLegacyContent): { - typeUrl: string; - value: _38.MsgExecLegacyContent; - }; - vote(value: _38.MsgVote): { - typeUrl: string; - value: _38.MsgVote; - }; - voteWeighted(value: _38.MsgVoteWeighted): { - typeUrl: string; - value: _38.MsgVoteWeighted; - }; - deposit(value: _38.MsgDeposit): { - typeUrl: string; - value: _38.MsgDeposit; - }; - }; - }; - AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _38.MsgSubmitProposal) => _38.MsgSubmitProposalAmino; - fromAmino: (object: _38.MsgSubmitProposalAmino) => _38.MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: _38.MsgExecLegacyContent) => _38.MsgExecLegacyContentAmino; - fromAmino: (object: _38.MsgExecLegacyContentAmino) => _38.MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: _38.MsgVote) => _38.MsgVoteAmino; - fromAmino: (object: _38.MsgVoteAmino) => _38.MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: _38.MsgVoteWeighted) => _38.MsgVoteWeightedAmino; - fromAmino: (object: _38.MsgVoteWeightedAmino) => _38.MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: _38.MsgDeposit) => _38.MsgDepositAmino; - fromAmino: (object: _38.MsgDepositAmino) => _38.MsgDeposit; - }; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _38.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgSubmitProposal; - fromPartial(object: Partial<_38.MsgSubmitProposal>): _38.MsgSubmitProposal; - fromAmino(object: _38.MsgSubmitProposalAmino): _38.MsgSubmitProposal; - toAmino(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalAmino; - fromAminoMsg(object: _38.MsgSubmitProposalAminoMsg): _38.MsgSubmitProposal; - toAminoMsg(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _38.MsgSubmitProposalProtoMsg): _38.MsgSubmitProposal; - toProto(message: _38.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _38.MsgSubmitProposal): _38.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _38.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgSubmitProposalResponse; - fromPartial(object: Partial<_38.MsgSubmitProposalResponse>): _38.MsgSubmitProposalResponse; - fromAmino(object: _38.MsgSubmitProposalResponseAmino): _38.MsgSubmitProposalResponse; - toAmino(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _38.MsgSubmitProposalResponseAminoMsg): _38.MsgSubmitProposalResponse; - toAminoMsg(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _38.MsgSubmitProposalResponseProtoMsg): _38.MsgSubmitProposalResponse; - toProto(message: _38.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _38.MsgSubmitProposalResponse): _38.MsgSubmitProposalResponseProtoMsg; - }; - MsgExecLegacyContent: { - typeUrl: string; - encode(message: _38.MsgExecLegacyContent, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgExecLegacyContent; - fromPartial(object: Partial<_38.MsgExecLegacyContent>): _38.MsgExecLegacyContent; - fromAmino(object: _38.MsgExecLegacyContentAmino): _38.MsgExecLegacyContent; - toAmino(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentAmino; - fromAminoMsg(object: _38.MsgExecLegacyContentAminoMsg): _38.MsgExecLegacyContent; - toAminoMsg(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentAminoMsg; - fromProtoMsg(message: _38.MsgExecLegacyContentProtoMsg): _38.MsgExecLegacyContent; - toProto(message: _38.MsgExecLegacyContent): Uint8Array; - toProtoMsg(message: _38.MsgExecLegacyContent): _38.MsgExecLegacyContentProtoMsg; - }; - MsgExecLegacyContentResponse: { - typeUrl: string; - encode(_: _38.MsgExecLegacyContentResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgExecLegacyContentResponse; - fromPartial(_: Partial<_38.MsgExecLegacyContentResponse>): _38.MsgExecLegacyContentResponse; - fromAmino(_: _38.MsgExecLegacyContentResponseAmino): _38.MsgExecLegacyContentResponse; - toAmino(_: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseAmino; - fromAminoMsg(object: _38.MsgExecLegacyContentResponseAminoMsg): _38.MsgExecLegacyContentResponse; - toAminoMsg(message: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseAminoMsg; - fromProtoMsg(message: _38.MsgExecLegacyContentResponseProtoMsg): _38.MsgExecLegacyContentResponse; - toProto(message: _38.MsgExecLegacyContentResponse): Uint8Array; - toProtoMsg(message: _38.MsgExecLegacyContentResponse): _38.MsgExecLegacyContentResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _38.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVote; - fromPartial(object: Partial<_38.MsgVote>): _38.MsgVote; - fromAmino(object: _38.MsgVoteAmino): _38.MsgVote; - toAmino(message: _38.MsgVote): _38.MsgVoteAmino; - fromAminoMsg(object: _38.MsgVoteAminoMsg): _38.MsgVote; - toAminoMsg(message: _38.MsgVote): _38.MsgVoteAminoMsg; - fromProtoMsg(message: _38.MsgVoteProtoMsg): _38.MsgVote; - toProto(message: _38.MsgVote): Uint8Array; - toProtoMsg(message: _38.MsgVote): _38.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _38.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteResponse; - fromPartial(_: Partial<_38.MsgVoteResponse>): _38.MsgVoteResponse; - fromAmino(_: _38.MsgVoteResponseAmino): _38.MsgVoteResponse; - toAmino(_: _38.MsgVoteResponse): _38.MsgVoteResponseAmino; - fromAminoMsg(object: _38.MsgVoteResponseAminoMsg): _38.MsgVoteResponse; - toAminoMsg(message: _38.MsgVoteResponse): _38.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _38.MsgVoteResponseProtoMsg): _38.MsgVoteResponse; - toProto(message: _38.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _38.MsgVoteResponse): _38.MsgVoteResponseProtoMsg; - }; - MsgVoteWeighted: { - typeUrl: string; - encode(message: _38.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteWeighted; - fromPartial(object: Partial<_38.MsgVoteWeighted>): _38.MsgVoteWeighted; - fromAmino(object: _38.MsgVoteWeightedAmino): _38.MsgVoteWeighted; - toAmino(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedAmino; - fromAminoMsg(object: _38.MsgVoteWeightedAminoMsg): _38.MsgVoteWeighted; - toAminoMsg(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedAminoMsg; - fromProtoMsg(message: _38.MsgVoteWeightedProtoMsg): _38.MsgVoteWeighted; - toProto(message: _38.MsgVoteWeighted): Uint8Array; - toProtoMsg(message: _38.MsgVoteWeighted): _38.MsgVoteWeightedProtoMsg; - }; - MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: _38.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgVoteWeightedResponse; - fromPartial(_: Partial<_38.MsgVoteWeightedResponse>): _38.MsgVoteWeightedResponse; - fromAmino(_: _38.MsgVoteWeightedResponseAmino): _38.MsgVoteWeightedResponse; - toAmino(_: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseAmino; - fromAminoMsg(object: _38.MsgVoteWeightedResponseAminoMsg): _38.MsgVoteWeightedResponse; - toAminoMsg(message: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: _38.MsgVoteWeightedResponseProtoMsg): _38.MsgVoteWeightedResponse; - toProto(message: _38.MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: _38.MsgVoteWeightedResponse): _38.MsgVoteWeightedResponseProtoMsg; - }; - MsgDeposit: { - typeUrl: string; - encode(message: _38.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgDeposit; - fromPartial(object: Partial<_38.MsgDeposit>): _38.MsgDeposit; - fromAmino(object: _38.MsgDepositAmino): _38.MsgDeposit; - toAmino(message: _38.MsgDeposit): _38.MsgDepositAmino; - fromAminoMsg(object: _38.MsgDepositAminoMsg): _38.MsgDeposit; - toAminoMsg(message: _38.MsgDeposit): _38.MsgDepositAminoMsg; - fromProtoMsg(message: _38.MsgDepositProtoMsg): _38.MsgDeposit; - toProto(message: _38.MsgDeposit): Uint8Array; - toProtoMsg(message: _38.MsgDeposit): _38.MsgDepositProtoMsg; - }; - MsgDepositResponse: { - typeUrl: string; - encode(_: _38.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _38.MsgDepositResponse; - fromPartial(_: Partial<_38.MsgDepositResponse>): _38.MsgDepositResponse; - fromAmino(_: _38.MsgDepositResponseAmino): _38.MsgDepositResponse; - toAmino(_: _38.MsgDepositResponse): _38.MsgDepositResponseAmino; - fromAminoMsg(object: _38.MsgDepositResponseAminoMsg): _38.MsgDepositResponse; - toAminoMsg(message: _38.MsgDepositResponse): _38.MsgDepositResponseAminoMsg; - fromProtoMsg(message: _38.MsgDepositResponseProtoMsg): _38.MsgDepositResponse; - toProto(message: _38.MsgDepositResponse): Uint8Array; - toProtoMsg(message: _38.MsgDepositResponse): _38.MsgDepositResponseProtoMsg; - }; - Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _40.TextProposal; - Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryProposalRequest: { - typeUrl: string; - encode(message: _37.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalRequest; - fromPartial(object: Partial<_37.QueryProposalRequest>): _37.QueryProposalRequest; - fromAmino(object: _37.QueryProposalRequestAmino): _37.QueryProposalRequest; - toAmino(message: _37.QueryProposalRequest): _37.QueryProposalRequestAmino; - fromAminoMsg(object: _37.QueryProposalRequestAminoMsg): _37.QueryProposalRequest; - toAminoMsg(message: _37.QueryProposalRequest): _37.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _37.QueryProposalRequestProtoMsg): _37.QueryProposalRequest; - toProto(message: _37.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _37.QueryProposalRequest): _37.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _37.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalResponse; - fromPartial(object: Partial<_37.QueryProposalResponse>): _37.QueryProposalResponse; - fromAmino(object: _37.QueryProposalResponseAmino): _37.QueryProposalResponse; - toAmino(message: _37.QueryProposalResponse): _37.QueryProposalResponseAmino; - fromAminoMsg(object: _37.QueryProposalResponseAminoMsg): _37.QueryProposalResponse; - toAminoMsg(message: _37.QueryProposalResponse): _37.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _37.QueryProposalResponseProtoMsg): _37.QueryProposalResponse; - toProto(message: _37.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _37.QueryProposalResponse): _37.QueryProposalResponseProtoMsg; - }; - QueryProposalsRequest: { - typeUrl: string; - encode(message: _37.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalsRequest; - fromPartial(object: Partial<_37.QueryProposalsRequest>): _37.QueryProposalsRequest; - fromAmino(object: _37.QueryProposalsRequestAmino): _37.QueryProposalsRequest; - toAmino(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestAmino; - fromAminoMsg(object: _37.QueryProposalsRequestAminoMsg): _37.QueryProposalsRequest; - toAminoMsg(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestAminoMsg; - fromProtoMsg(message: _37.QueryProposalsRequestProtoMsg): _37.QueryProposalsRequest; - toProto(message: _37.QueryProposalsRequest): Uint8Array; - toProtoMsg(message: _37.QueryProposalsRequest): _37.QueryProposalsRequestProtoMsg; - }; - QueryProposalsResponse: { - typeUrl: string; - encode(message: _37.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryProposalsResponse; - fromPartial(object: Partial<_37.QueryProposalsResponse>): _37.QueryProposalsResponse; - fromAmino(object: _37.QueryProposalsResponseAmino): _37.QueryProposalsResponse; - toAmino(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseAmino; - fromAminoMsg(object: _37.QueryProposalsResponseAminoMsg): _37.QueryProposalsResponse; - toAminoMsg(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseAminoMsg; - fromProtoMsg(message: _37.QueryProposalsResponseProtoMsg): _37.QueryProposalsResponse; - toProto(message: _37.QueryProposalsResponse): Uint8Array; - toProtoMsg(message: _37.QueryProposalsResponse): _37.QueryProposalsResponseProtoMsg; - }; - QueryVoteRequest: { - typeUrl: string; - encode(message: _37.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVoteRequest; - fromPartial(object: Partial<_37.QueryVoteRequest>): _37.QueryVoteRequest; - fromAmino(object: _37.QueryVoteRequestAmino): _37.QueryVoteRequest; - toAmino(message: _37.QueryVoteRequest): _37.QueryVoteRequestAmino; - fromAminoMsg(object: _37.QueryVoteRequestAminoMsg): _37.QueryVoteRequest; - toAminoMsg(message: _37.QueryVoteRequest): _37.QueryVoteRequestAminoMsg; - fromProtoMsg(message: _37.QueryVoteRequestProtoMsg): _37.QueryVoteRequest; - toProto(message: _37.QueryVoteRequest): Uint8Array; - toProtoMsg(message: _37.QueryVoteRequest): _37.QueryVoteRequestProtoMsg; - }; - QueryVoteResponse: { - typeUrl: string; - encode(message: _37.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVoteResponse; - fromPartial(object: Partial<_37.QueryVoteResponse>): _37.QueryVoteResponse; - fromAmino(object: _37.QueryVoteResponseAmino): _37.QueryVoteResponse; - toAmino(message: _37.QueryVoteResponse): _37.QueryVoteResponseAmino; - fromAminoMsg(object: _37.QueryVoteResponseAminoMsg): _37.QueryVoteResponse; - toAminoMsg(message: _37.QueryVoteResponse): _37.QueryVoteResponseAminoMsg; - fromProtoMsg(message: _37.QueryVoteResponseProtoMsg): _37.QueryVoteResponse; - toProto(message: _37.QueryVoteResponse): Uint8Array; - toProtoMsg(message: _37.QueryVoteResponse): _37.QueryVoteResponseProtoMsg; - }; - QueryVotesRequest: { - typeUrl: string; - encode(message: _37.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVotesRequest; - fromPartial(object: Partial<_37.QueryVotesRequest>): _37.QueryVotesRequest; - fromAmino(object: _37.QueryVotesRequestAmino): _37.QueryVotesRequest; - toAmino(message: _37.QueryVotesRequest): _37.QueryVotesRequestAmino; - fromAminoMsg(object: _37.QueryVotesRequestAminoMsg): _37.QueryVotesRequest; - toAminoMsg(message: _37.QueryVotesRequest): _37.QueryVotesRequestAminoMsg; - fromProtoMsg(message: _37.QueryVotesRequestProtoMsg): _37.QueryVotesRequest; - toProto(message: _37.QueryVotesRequest): Uint8Array; - toProtoMsg(message: _37.QueryVotesRequest): _37.QueryVotesRequestProtoMsg; - }; - QueryVotesResponse: { - typeUrl: string; - encode(message: _37.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryVotesResponse; - fromPartial(object: Partial<_37.QueryVotesResponse>): _37.QueryVotesResponse; - fromAmino(object: _37.QueryVotesResponseAmino): _37.QueryVotesResponse; - toAmino(message: _37.QueryVotesResponse): _37.QueryVotesResponseAmino; - fromAminoMsg(object: _37.QueryVotesResponseAminoMsg): _37.QueryVotesResponse; - toAminoMsg(message: _37.QueryVotesResponse): _37.QueryVotesResponseAminoMsg; - fromProtoMsg(message: _37.QueryVotesResponseProtoMsg): _37.QueryVotesResponse; - toProto(message: _37.QueryVotesResponse): Uint8Array; - toProtoMsg(message: _37.QueryVotesResponse): _37.QueryVotesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(message: _37.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryParamsRequest; - fromPartial(object: Partial<_37.QueryParamsRequest>): _37.QueryParamsRequest; - fromAmino(object: _37.QueryParamsRequestAmino): _37.QueryParamsRequest; - toAmino(message: _37.QueryParamsRequest): _37.QueryParamsRequestAmino; - fromAminoMsg(object: _37.QueryParamsRequestAminoMsg): _37.QueryParamsRequest; - toAminoMsg(message: _37.QueryParamsRequest): _37.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _37.QueryParamsRequestProtoMsg): _37.QueryParamsRequest; - toProto(message: _37.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _37.QueryParamsRequest): _37.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _37.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryParamsResponse; - fromPartial(object: Partial<_37.QueryParamsResponse>): _37.QueryParamsResponse; - fromAmino(object: _37.QueryParamsResponseAmino): _37.QueryParamsResponse; - toAmino(message: _37.QueryParamsResponse): _37.QueryParamsResponseAmino; - fromAminoMsg(object: _37.QueryParamsResponseAminoMsg): _37.QueryParamsResponse; - toAminoMsg(message: _37.QueryParamsResponse): _37.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _37.QueryParamsResponseProtoMsg): _37.QueryParamsResponse; - toProto(message: _37.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _37.QueryParamsResponse): _37.QueryParamsResponseProtoMsg; - }; - QueryDepositRequest: { - typeUrl: string; - encode(message: _37.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositRequest; - fromPartial(object: Partial<_37.QueryDepositRequest>): _37.QueryDepositRequest; - fromAmino(object: _37.QueryDepositRequestAmino): _37.QueryDepositRequest; - toAmino(message: _37.QueryDepositRequest): _37.QueryDepositRequestAmino; - fromAminoMsg(object: _37.QueryDepositRequestAminoMsg): _37.QueryDepositRequest; - toAminoMsg(message: _37.QueryDepositRequest): _37.QueryDepositRequestAminoMsg; - fromProtoMsg(message: _37.QueryDepositRequestProtoMsg): _37.QueryDepositRequest; - toProto(message: _37.QueryDepositRequest): Uint8Array; - toProtoMsg(message: _37.QueryDepositRequest): _37.QueryDepositRequestProtoMsg; - }; - QueryDepositResponse: { - typeUrl: string; - encode(message: _37.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositResponse; - fromPartial(object: Partial<_37.QueryDepositResponse>): _37.QueryDepositResponse; - fromAmino(object: _37.QueryDepositResponseAmino): _37.QueryDepositResponse; - toAmino(message: _37.QueryDepositResponse): _37.QueryDepositResponseAmino; - fromAminoMsg(object: _37.QueryDepositResponseAminoMsg): _37.QueryDepositResponse; - toAminoMsg(message: _37.QueryDepositResponse): _37.QueryDepositResponseAminoMsg; - fromProtoMsg(message: _37.QueryDepositResponseProtoMsg): _37.QueryDepositResponse; - toProto(message: _37.QueryDepositResponse): Uint8Array; - toProtoMsg(message: _37.QueryDepositResponse): _37.QueryDepositResponseProtoMsg; - }; - QueryDepositsRequest: { - typeUrl: string; - encode(message: _37.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositsRequest; - fromPartial(object: Partial<_37.QueryDepositsRequest>): _37.QueryDepositsRequest; - fromAmino(object: _37.QueryDepositsRequestAmino): _37.QueryDepositsRequest; - toAmino(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestAmino; - fromAminoMsg(object: _37.QueryDepositsRequestAminoMsg): _37.QueryDepositsRequest; - toAminoMsg(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestAminoMsg; - fromProtoMsg(message: _37.QueryDepositsRequestProtoMsg): _37.QueryDepositsRequest; - toProto(message: _37.QueryDepositsRequest): Uint8Array; - toProtoMsg(message: _37.QueryDepositsRequest): _37.QueryDepositsRequestProtoMsg; - }; - QueryDepositsResponse: { - typeUrl: string; - encode(message: _37.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryDepositsResponse; - fromPartial(object: Partial<_37.QueryDepositsResponse>): _37.QueryDepositsResponse; - fromAmino(object: _37.QueryDepositsResponseAmino): _37.QueryDepositsResponse; - toAmino(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseAmino; - fromAminoMsg(object: _37.QueryDepositsResponseAminoMsg): _37.QueryDepositsResponse; - toAminoMsg(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseAminoMsg; - fromProtoMsg(message: _37.QueryDepositsResponseProtoMsg): _37.QueryDepositsResponse; - toProto(message: _37.QueryDepositsResponse): Uint8Array; - toProtoMsg(message: _37.QueryDepositsResponse): _37.QueryDepositsResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _37.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryTallyResultRequest; - fromPartial(object: Partial<_37.QueryTallyResultRequest>): _37.QueryTallyResultRequest; - fromAmino(object: _37.QueryTallyResultRequestAmino): _37.QueryTallyResultRequest; - toAmino(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestAmino; - fromAminoMsg(object: _37.QueryTallyResultRequestAminoMsg): _37.QueryTallyResultRequest; - toAminoMsg(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _37.QueryTallyResultRequestProtoMsg): _37.QueryTallyResultRequest; - toProto(message: _37.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _37.QueryTallyResultRequest): _37.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _37.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _37.QueryTallyResultResponse; - fromPartial(object: Partial<_37.QueryTallyResultResponse>): _37.QueryTallyResultResponse; - fromAmino(object: _37.QueryTallyResultResponseAmino): _37.QueryTallyResultResponse; - toAmino(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseAmino; - fromAminoMsg(object: _37.QueryTallyResultResponseAminoMsg): _37.QueryTallyResultResponse; - toAminoMsg(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _37.QueryTallyResultResponseProtoMsg): _37.QueryTallyResultResponse; - toProto(message: _37.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _37.QueryTallyResultResponse): _37.QueryTallyResultResponseProtoMsg; - }; - voteOptionFromJSON(object: any): _36.VoteOption; - voteOptionToJSON(object: _36.VoteOption): string; - proposalStatusFromJSON(object: any): _36.ProposalStatus; - proposalStatusToJSON(object: _36.ProposalStatus): string; - VoteOption: typeof _36.VoteOption; - VoteOptionSDKType: typeof _36.VoteOption; - VoteOptionAmino: typeof _36.VoteOption; - ProposalStatus: typeof _36.ProposalStatus; - ProposalStatusSDKType: typeof _36.ProposalStatus; - ProposalStatusAmino: typeof _36.ProposalStatus; - WeightedVoteOption: { - typeUrl: string; - encode(message: _36.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.WeightedVoteOption; - fromPartial(object: Partial<_36.WeightedVoteOption>): _36.WeightedVoteOption; - fromAmino(object: _36.WeightedVoteOptionAmino): _36.WeightedVoteOption; - toAmino(message: _36.WeightedVoteOption): _36.WeightedVoteOptionAmino; - fromAminoMsg(object: _36.WeightedVoteOptionAminoMsg): _36.WeightedVoteOption; - toAminoMsg(message: _36.WeightedVoteOption): _36.WeightedVoteOptionAminoMsg; - fromProtoMsg(message: _36.WeightedVoteOptionProtoMsg): _36.WeightedVoteOption; - toProto(message: _36.WeightedVoteOption): Uint8Array; - toProtoMsg(message: _36.WeightedVoteOption): _36.WeightedVoteOptionProtoMsg; - }; - Deposit: { - typeUrl: string; - encode(message: _36.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Deposit; - fromPartial(object: Partial<_36.Deposit>): _36.Deposit; - fromAmino(object: _36.DepositAmino): _36.Deposit; - toAmino(message: _36.Deposit): _36.DepositAmino; - fromAminoMsg(object: _36.DepositAminoMsg): _36.Deposit; - toAminoMsg(message: _36.Deposit): _36.DepositAminoMsg; - fromProtoMsg(message: _36.DepositProtoMsg): _36.Deposit; - toProto(message: _36.Deposit): Uint8Array; - toProtoMsg(message: _36.Deposit): _36.DepositProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _36.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Proposal; - fromPartial(object: Partial<_36.Proposal>): _36.Proposal; - fromAmino(object: _36.ProposalAmino): _36.Proposal; - toAmino(message: _36.Proposal): _36.ProposalAmino; - fromAminoMsg(object: _36.ProposalAminoMsg): _36.Proposal; - toAminoMsg(message: _36.Proposal): _36.ProposalAminoMsg; - fromProtoMsg(message: _36.ProposalProtoMsg): _36.Proposal; - toProto(message: _36.Proposal): Uint8Array; - toProtoMsg(message: _36.Proposal): _36.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _36.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.TallyResult; - fromPartial(object: Partial<_36.TallyResult>): _36.TallyResult; - fromAmino(object: _36.TallyResultAmino): _36.TallyResult; - toAmino(message: _36.TallyResult): _36.TallyResultAmino; - fromAminoMsg(object: _36.TallyResultAminoMsg): _36.TallyResult; - toAminoMsg(message: _36.TallyResult): _36.TallyResultAminoMsg; - fromProtoMsg(message: _36.TallyResultProtoMsg): _36.TallyResult; - toProto(message: _36.TallyResult): Uint8Array; - toProtoMsg(message: _36.TallyResult): _36.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _36.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.Vote; - fromPartial(object: Partial<_36.Vote>): _36.Vote; - fromAmino(object: _36.VoteAmino): _36.Vote; - toAmino(message: _36.Vote): _36.VoteAmino; - fromAminoMsg(object: _36.VoteAminoMsg): _36.Vote; - toAminoMsg(message: _36.Vote): _36.VoteAminoMsg; - fromProtoMsg(message: _36.VoteProtoMsg): _36.Vote; - toProto(message: _36.Vote): Uint8Array; - toProtoMsg(message: _36.Vote): _36.VoteProtoMsg; - }; - DepositParams: { - typeUrl: string; - encode(message: _36.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.DepositParams; - fromPartial(object: Partial<_36.DepositParams>): _36.DepositParams; - fromAmino(object: _36.DepositParamsAmino): _36.DepositParams; - toAmino(message: _36.DepositParams): _36.DepositParamsAmino; - fromAminoMsg(object: _36.DepositParamsAminoMsg): _36.DepositParams; - toAminoMsg(message: _36.DepositParams): _36.DepositParamsAminoMsg; - fromProtoMsg(message: _36.DepositParamsProtoMsg): _36.DepositParams; - toProto(message: _36.DepositParams): Uint8Array; - toProtoMsg(message: _36.DepositParams): _36.DepositParamsProtoMsg; - }; - VotingParams: { - typeUrl: string; - encode(message: _36.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.VotingParams; - fromPartial(object: Partial<_36.VotingParams>): _36.VotingParams; - fromAmino(object: _36.VotingParamsAmino): _36.VotingParams; - toAmino(message: _36.VotingParams): _36.VotingParamsAmino; - fromAminoMsg(object: _36.VotingParamsAminoMsg): _36.VotingParams; - toAminoMsg(message: _36.VotingParams): _36.VotingParamsAminoMsg; - fromProtoMsg(message: _36.VotingParamsProtoMsg): _36.VotingParams; - toProto(message: _36.VotingParams): Uint8Array; - toProtoMsg(message: _36.VotingParams): _36.VotingParamsProtoMsg; - }; - TallyParams: { - typeUrl: string; - encode(message: _36.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _36.TallyParams; - fromPartial(object: Partial<_36.TallyParams>): _36.TallyParams; - fromAmino(object: _36.TallyParamsAmino): _36.TallyParams; - toAmino(message: _36.TallyParams): _36.TallyParamsAmino; - fromAminoMsg(object: _36.TallyParamsAminoMsg): _36.TallyParams; - toAminoMsg(message: _36.TallyParams): _36.TallyParamsAminoMsg; - fromProtoMsg(message: _36.TallyParamsProtoMsg): _36.TallyParams; - toProto(message: _36.TallyParams): Uint8Array; - toProtoMsg(message: _36.TallyParams): _36.TallyParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _35.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _35.GenesisState; - fromPartial(object: Partial<_35.GenesisState>): _35.GenesisState; - fromAmino(object: _35.GenesisStateAmino): _35.GenesisState; - toAmino(message: _35.GenesisState): _35.GenesisStateAmino; - fromAminoMsg(object: _35.GenesisStateAminoMsg): _35.GenesisState; - toAminoMsg(message: _35.GenesisState): _35.GenesisStateAminoMsg; - fromProtoMsg(message: _35.GenesisStateProtoMsg): _35.GenesisState; - toProto(message: _35.GenesisState): Uint8Array; - toProtoMsg(message: _35.GenesisState): _35.GenesisStateProtoMsg; - }; - }; - const v1beta1: { - MsgClientImpl: typeof _172.MsgClientImpl; - QueryClientImpl: typeof _160.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - proposal(request: _41.QueryProposalRequest): Promise<_41.QueryProposalResponse>; - proposals(request: _41.QueryProposalsRequest): Promise<_41.QueryProposalsResponse>; - vote(request: _41.QueryVoteRequest): Promise<_41.QueryVoteResponse>; - votes(request: _41.QueryVotesRequest): Promise<_41.QueryVotesResponse>; - params(request: _41.QueryParamsRequest): Promise<_41.QueryParamsResponse>; - deposit(request: _41.QueryDepositRequest): Promise<_41.QueryDepositResponse>; - deposits(request: _41.QueryDepositsRequest): Promise<_41.QueryDepositsResponse>; - tallyResult(request: _41.QueryTallyResultRequest): Promise<_41.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _146.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitProposal(value: _42.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _42.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: _42.MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: _42.MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: _42.MsgSubmitProposal): { - typeUrl: string; - value: _42.MsgSubmitProposal; - }; - vote(value: _42.MsgVote): { - typeUrl: string; - value: _42.MsgVote; - }; - voteWeighted(value: _42.MsgVoteWeighted): { - typeUrl: string; - value: _42.MsgVoteWeighted; - }; - deposit(value: _42.MsgDeposit): { - typeUrl: string; - value: _42.MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: _42.MsgSubmitProposal): { - typeUrl: string; - value: _42.MsgSubmitProposal; - }; - vote(value: _42.MsgVote): { - typeUrl: string; - value: _42.MsgVote; - }; - voteWeighted(value: _42.MsgVoteWeighted): { - typeUrl: string; - value: _42.MsgVoteWeighted; - }; - deposit(value: _42.MsgDeposit): { - typeUrl: string; - value: _42.MsgDeposit; - }; - }; - }; - AminoConverter: { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _42.MsgSubmitProposal) => _42.MsgSubmitProposalAmino; - fromAmino: (object: _42.MsgSubmitProposalAmino) => _42.MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: _42.MsgVote) => _42.MsgVoteAmino; - fromAmino: (object: _42.MsgVoteAmino) => _42.MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: _42.MsgVoteWeighted) => _42.MsgVoteWeightedAmino; - fromAmino: (object: _42.MsgVoteWeightedAmino) => _42.MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: _42.MsgDeposit) => _42.MsgDepositAmino; - fromAmino: (object: _42.MsgDepositAmino) => _42.MsgDeposit; - }; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _42.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgSubmitProposal; - fromPartial(object: Partial<_42.MsgSubmitProposal>): _42.MsgSubmitProposal; - fromAmino(object: _42.MsgSubmitProposalAmino): _42.MsgSubmitProposal; - toAmino(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalAmino; - fromAminoMsg(object: _42.MsgSubmitProposalAminoMsg): _42.MsgSubmitProposal; - toAminoMsg(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _42.MsgSubmitProposalProtoMsg): _42.MsgSubmitProposal; - toProto(message: _42.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _42.MsgSubmitProposal): _42.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _42.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgSubmitProposalResponse; - fromPartial(object: Partial<_42.MsgSubmitProposalResponse>): _42.MsgSubmitProposalResponse; - fromAmino(object: _42.MsgSubmitProposalResponseAmino): _42.MsgSubmitProposalResponse; - toAmino(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _42.MsgSubmitProposalResponseAminoMsg): _42.MsgSubmitProposalResponse; - toAminoMsg(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _42.MsgSubmitProposalResponseProtoMsg): _42.MsgSubmitProposalResponse; - toProto(message: _42.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _42.MsgSubmitProposalResponse): _42.MsgSubmitProposalResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _42.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVote; - fromPartial(object: Partial<_42.MsgVote>): _42.MsgVote; - fromAmino(object: _42.MsgVoteAmino): _42.MsgVote; - toAmino(message: _42.MsgVote): _42.MsgVoteAmino; - fromAminoMsg(object: _42.MsgVoteAminoMsg): _42.MsgVote; - toAminoMsg(message: _42.MsgVote): _42.MsgVoteAminoMsg; - fromProtoMsg(message: _42.MsgVoteProtoMsg): _42.MsgVote; - toProto(message: _42.MsgVote): Uint8Array; - toProtoMsg(message: _42.MsgVote): _42.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _42.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteResponse; - fromPartial(_: Partial<_42.MsgVoteResponse>): _42.MsgVoteResponse; - fromAmino(_: _42.MsgVoteResponseAmino): _42.MsgVoteResponse; - toAmino(_: _42.MsgVoteResponse): _42.MsgVoteResponseAmino; - fromAminoMsg(object: _42.MsgVoteResponseAminoMsg): _42.MsgVoteResponse; - toAminoMsg(message: _42.MsgVoteResponse): _42.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _42.MsgVoteResponseProtoMsg): _42.MsgVoteResponse; - toProto(message: _42.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _42.MsgVoteResponse): _42.MsgVoteResponseProtoMsg; - }; - MsgVoteWeighted: { - typeUrl: string; - encode(message: _42.MsgVoteWeighted, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteWeighted; - fromPartial(object: Partial<_42.MsgVoteWeighted>): _42.MsgVoteWeighted; - fromAmino(object: _42.MsgVoteWeightedAmino): _42.MsgVoteWeighted; - toAmino(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedAmino; - fromAminoMsg(object: _42.MsgVoteWeightedAminoMsg): _42.MsgVoteWeighted; - toAminoMsg(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedAminoMsg; - fromProtoMsg(message: _42.MsgVoteWeightedProtoMsg): _42.MsgVoteWeighted; - toProto(message: _42.MsgVoteWeighted): Uint8Array; - toProtoMsg(message: _42.MsgVoteWeighted): _42.MsgVoteWeightedProtoMsg; - }; - MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: _42.MsgVoteWeightedResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgVoteWeightedResponse; - fromPartial(_: Partial<_42.MsgVoteWeightedResponse>): _42.MsgVoteWeightedResponse; - fromAmino(_: _42.MsgVoteWeightedResponseAmino): _42.MsgVoteWeightedResponse; - toAmino(_: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseAmino; - fromAminoMsg(object: _42.MsgVoteWeightedResponseAminoMsg): _42.MsgVoteWeightedResponse; - toAminoMsg(message: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: _42.MsgVoteWeightedResponseProtoMsg): _42.MsgVoteWeightedResponse; - toProto(message: _42.MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: _42.MsgVoteWeightedResponse): _42.MsgVoteWeightedResponseProtoMsg; - }; - MsgDeposit: { - typeUrl: string; - encode(message: _42.MsgDeposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgDeposit; - fromPartial(object: Partial<_42.MsgDeposit>): _42.MsgDeposit; - fromAmino(object: _42.MsgDepositAmino): _42.MsgDeposit; - toAmino(message: _42.MsgDeposit): _42.MsgDepositAmino; - fromAminoMsg(object: _42.MsgDepositAminoMsg): _42.MsgDeposit; - toAminoMsg(message: _42.MsgDeposit): _42.MsgDepositAminoMsg; - fromProtoMsg(message: _42.MsgDepositProtoMsg): _42.MsgDeposit; - toProto(message: _42.MsgDeposit): Uint8Array; - toProtoMsg(message: _42.MsgDeposit): _42.MsgDepositProtoMsg; - }; - MsgDepositResponse: { - typeUrl: string; - encode(_: _42.MsgDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _42.MsgDepositResponse; - fromPartial(_: Partial<_42.MsgDepositResponse>): _42.MsgDepositResponse; - fromAmino(_: _42.MsgDepositResponseAmino): _42.MsgDepositResponse; - toAmino(_: _42.MsgDepositResponse): _42.MsgDepositResponseAmino; - fromAminoMsg(object: _42.MsgDepositResponseAminoMsg): _42.MsgDepositResponse; - toAminoMsg(message: _42.MsgDepositResponse): _42.MsgDepositResponseAminoMsg; - fromProtoMsg(message: _42.MsgDepositResponseProtoMsg): _42.MsgDepositResponse; - toProto(message: _42.MsgDepositResponse): Uint8Array; - toProtoMsg(message: _42.MsgDepositResponse): _42.MsgDepositResponseProtoMsg; - }; - Content_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _40.TextProposal; - Content_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Content_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - QueryProposalRequest: { - typeUrl: string; - encode(message: _41.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalRequest; - fromPartial(object: Partial<_41.QueryProposalRequest>): _41.QueryProposalRequest; - fromAmino(object: _41.QueryProposalRequestAmino): _41.QueryProposalRequest; - toAmino(message: _41.QueryProposalRequest): _41.QueryProposalRequestAmino; - fromAminoMsg(object: _41.QueryProposalRequestAminoMsg): _41.QueryProposalRequest; - toAminoMsg(message: _41.QueryProposalRequest): _41.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _41.QueryProposalRequestProtoMsg): _41.QueryProposalRequest; - toProto(message: _41.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _41.QueryProposalRequest): _41.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _41.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalResponse; - fromPartial(object: Partial<_41.QueryProposalResponse>): _41.QueryProposalResponse; - fromAmino(object: _41.QueryProposalResponseAmino): _41.QueryProposalResponse; - toAmino(message: _41.QueryProposalResponse): _41.QueryProposalResponseAmino; - fromAminoMsg(object: _41.QueryProposalResponseAminoMsg): _41.QueryProposalResponse; - toAminoMsg(message: _41.QueryProposalResponse): _41.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _41.QueryProposalResponseProtoMsg): _41.QueryProposalResponse; - toProto(message: _41.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _41.QueryProposalResponse): _41.QueryProposalResponseProtoMsg; - }; - QueryProposalsRequest: { - typeUrl: string; - encode(message: _41.QueryProposalsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalsRequest; - fromPartial(object: Partial<_41.QueryProposalsRequest>): _41.QueryProposalsRequest; - fromAmino(object: _41.QueryProposalsRequestAmino): _41.QueryProposalsRequest; - toAmino(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestAmino; - fromAminoMsg(object: _41.QueryProposalsRequestAminoMsg): _41.QueryProposalsRequest; - toAminoMsg(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestAminoMsg; - fromProtoMsg(message: _41.QueryProposalsRequestProtoMsg): _41.QueryProposalsRequest; - toProto(message: _41.QueryProposalsRequest): Uint8Array; - toProtoMsg(message: _41.QueryProposalsRequest): _41.QueryProposalsRequestProtoMsg; - }; - QueryProposalsResponse: { - typeUrl: string; - encode(message: _41.QueryProposalsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryProposalsResponse; - fromPartial(object: Partial<_41.QueryProposalsResponse>): _41.QueryProposalsResponse; - fromAmino(object: _41.QueryProposalsResponseAmino): _41.QueryProposalsResponse; - toAmino(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseAmino; - fromAminoMsg(object: _41.QueryProposalsResponseAminoMsg): _41.QueryProposalsResponse; - toAminoMsg(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseAminoMsg; - fromProtoMsg(message: _41.QueryProposalsResponseProtoMsg): _41.QueryProposalsResponse; - toProto(message: _41.QueryProposalsResponse): Uint8Array; - toProtoMsg(message: _41.QueryProposalsResponse): _41.QueryProposalsResponseProtoMsg; - }; - QueryVoteRequest: { - typeUrl: string; - encode(message: _41.QueryVoteRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVoteRequest; - fromPartial(object: Partial<_41.QueryVoteRequest>): _41.QueryVoteRequest; - fromAmino(object: _41.QueryVoteRequestAmino): _41.QueryVoteRequest; - toAmino(message: _41.QueryVoteRequest): _41.QueryVoteRequestAmino; - fromAminoMsg(object: _41.QueryVoteRequestAminoMsg): _41.QueryVoteRequest; - toAminoMsg(message: _41.QueryVoteRequest): _41.QueryVoteRequestAminoMsg; - fromProtoMsg(message: _41.QueryVoteRequestProtoMsg): _41.QueryVoteRequest; - toProto(message: _41.QueryVoteRequest): Uint8Array; - toProtoMsg(message: _41.QueryVoteRequest): _41.QueryVoteRequestProtoMsg; - }; - QueryVoteResponse: { - typeUrl: string; - encode(message: _41.QueryVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVoteResponse; - fromPartial(object: Partial<_41.QueryVoteResponse>): _41.QueryVoteResponse; - fromAmino(object: _41.QueryVoteResponseAmino): _41.QueryVoteResponse; - toAmino(message: _41.QueryVoteResponse): _41.QueryVoteResponseAmino; - fromAminoMsg(object: _41.QueryVoteResponseAminoMsg): _41.QueryVoteResponse; - toAminoMsg(message: _41.QueryVoteResponse): _41.QueryVoteResponseAminoMsg; - fromProtoMsg(message: _41.QueryVoteResponseProtoMsg): _41.QueryVoteResponse; - toProto(message: _41.QueryVoteResponse): Uint8Array; - toProtoMsg(message: _41.QueryVoteResponse): _41.QueryVoteResponseProtoMsg; - }; - QueryVotesRequest: { - typeUrl: string; - encode(message: _41.QueryVotesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVotesRequest; - fromPartial(object: Partial<_41.QueryVotesRequest>): _41.QueryVotesRequest; - fromAmino(object: _41.QueryVotesRequestAmino): _41.QueryVotesRequest; - toAmino(message: _41.QueryVotesRequest): _41.QueryVotesRequestAmino; - fromAminoMsg(object: _41.QueryVotesRequestAminoMsg): _41.QueryVotesRequest; - toAminoMsg(message: _41.QueryVotesRequest): _41.QueryVotesRequestAminoMsg; - fromProtoMsg(message: _41.QueryVotesRequestProtoMsg): _41.QueryVotesRequest; - toProto(message: _41.QueryVotesRequest): Uint8Array; - toProtoMsg(message: _41.QueryVotesRequest): _41.QueryVotesRequestProtoMsg; - }; - QueryVotesResponse: { - typeUrl: string; - encode(message: _41.QueryVotesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryVotesResponse; - fromPartial(object: Partial<_41.QueryVotesResponse>): _41.QueryVotesResponse; - fromAmino(object: _41.QueryVotesResponseAmino): _41.QueryVotesResponse; - toAmino(message: _41.QueryVotesResponse): _41.QueryVotesResponseAmino; - fromAminoMsg(object: _41.QueryVotesResponseAminoMsg): _41.QueryVotesResponse; - toAminoMsg(message: _41.QueryVotesResponse): _41.QueryVotesResponseAminoMsg; - fromProtoMsg(message: _41.QueryVotesResponseProtoMsg): _41.QueryVotesResponse; - toProto(message: _41.QueryVotesResponse): Uint8Array; - toProtoMsg(message: _41.QueryVotesResponse): _41.QueryVotesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(message: _41.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryParamsRequest; - fromPartial(object: Partial<_41.QueryParamsRequest>): _41.QueryParamsRequest; - fromAmino(object: _41.QueryParamsRequestAmino): _41.QueryParamsRequest; - toAmino(message: _41.QueryParamsRequest): _41.QueryParamsRequestAmino; - fromAminoMsg(object: _41.QueryParamsRequestAminoMsg): _41.QueryParamsRequest; - toAminoMsg(message: _41.QueryParamsRequest): _41.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _41.QueryParamsRequestProtoMsg): _41.QueryParamsRequest; - toProto(message: _41.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _41.QueryParamsRequest): _41.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _41.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryParamsResponse; - fromPartial(object: Partial<_41.QueryParamsResponse>): _41.QueryParamsResponse; - fromAmino(object: _41.QueryParamsResponseAmino): _41.QueryParamsResponse; - toAmino(message: _41.QueryParamsResponse): _41.QueryParamsResponseAmino; - fromAminoMsg(object: _41.QueryParamsResponseAminoMsg): _41.QueryParamsResponse; - toAminoMsg(message: _41.QueryParamsResponse): _41.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _41.QueryParamsResponseProtoMsg): _41.QueryParamsResponse; - toProto(message: _41.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _41.QueryParamsResponse): _41.QueryParamsResponseProtoMsg; - }; - QueryDepositRequest: { - typeUrl: string; - encode(message: _41.QueryDepositRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositRequest; - fromPartial(object: Partial<_41.QueryDepositRequest>): _41.QueryDepositRequest; - fromAmino(object: _41.QueryDepositRequestAmino): _41.QueryDepositRequest; - toAmino(message: _41.QueryDepositRequest): _41.QueryDepositRequestAmino; - fromAminoMsg(object: _41.QueryDepositRequestAminoMsg): _41.QueryDepositRequest; - toAminoMsg(message: _41.QueryDepositRequest): _41.QueryDepositRequestAminoMsg; - fromProtoMsg(message: _41.QueryDepositRequestProtoMsg): _41.QueryDepositRequest; - toProto(message: _41.QueryDepositRequest): Uint8Array; - toProtoMsg(message: _41.QueryDepositRequest): _41.QueryDepositRequestProtoMsg; - }; - QueryDepositResponse: { - typeUrl: string; - encode(message: _41.QueryDepositResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositResponse; - fromPartial(object: Partial<_41.QueryDepositResponse>): _41.QueryDepositResponse; - fromAmino(object: _41.QueryDepositResponseAmino): _41.QueryDepositResponse; - toAmino(message: _41.QueryDepositResponse): _41.QueryDepositResponseAmino; - fromAminoMsg(object: _41.QueryDepositResponseAminoMsg): _41.QueryDepositResponse; - toAminoMsg(message: _41.QueryDepositResponse): _41.QueryDepositResponseAminoMsg; - fromProtoMsg(message: _41.QueryDepositResponseProtoMsg): _41.QueryDepositResponse; - toProto(message: _41.QueryDepositResponse): Uint8Array; - toProtoMsg(message: _41.QueryDepositResponse): _41.QueryDepositResponseProtoMsg; - }; - QueryDepositsRequest: { - typeUrl: string; - encode(message: _41.QueryDepositsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositsRequest; - fromPartial(object: Partial<_41.QueryDepositsRequest>): _41.QueryDepositsRequest; - fromAmino(object: _41.QueryDepositsRequestAmino): _41.QueryDepositsRequest; - toAmino(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestAmino; - fromAminoMsg(object: _41.QueryDepositsRequestAminoMsg): _41.QueryDepositsRequest; - toAminoMsg(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestAminoMsg; - fromProtoMsg(message: _41.QueryDepositsRequestProtoMsg): _41.QueryDepositsRequest; - toProto(message: _41.QueryDepositsRequest): Uint8Array; - toProtoMsg(message: _41.QueryDepositsRequest): _41.QueryDepositsRequestProtoMsg; - }; - QueryDepositsResponse: { - typeUrl: string; - encode(message: _41.QueryDepositsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryDepositsResponse; - fromPartial(object: Partial<_41.QueryDepositsResponse>): _41.QueryDepositsResponse; - fromAmino(object: _41.QueryDepositsResponseAmino): _41.QueryDepositsResponse; - toAmino(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseAmino; - fromAminoMsg(object: _41.QueryDepositsResponseAminoMsg): _41.QueryDepositsResponse; - toAminoMsg(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseAminoMsg; - fromProtoMsg(message: _41.QueryDepositsResponseProtoMsg): _41.QueryDepositsResponse; - toProto(message: _41.QueryDepositsResponse): Uint8Array; - toProtoMsg(message: _41.QueryDepositsResponse): _41.QueryDepositsResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _41.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryTallyResultRequest; - fromPartial(object: Partial<_41.QueryTallyResultRequest>): _41.QueryTallyResultRequest; - fromAmino(object: _41.QueryTallyResultRequestAmino): _41.QueryTallyResultRequest; - toAmino(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestAmino; - fromAminoMsg(object: _41.QueryTallyResultRequestAminoMsg): _41.QueryTallyResultRequest; - toAminoMsg(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _41.QueryTallyResultRequestProtoMsg): _41.QueryTallyResultRequest; - toProto(message: _41.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _41.QueryTallyResultRequest): _41.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _41.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _41.QueryTallyResultResponse; - fromPartial(object: Partial<_41.QueryTallyResultResponse>): _41.QueryTallyResultResponse; - fromAmino(object: _41.QueryTallyResultResponseAmino): _41.QueryTallyResultResponse; - toAmino(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseAmino; - fromAminoMsg(object: _41.QueryTallyResultResponseAminoMsg): _41.QueryTallyResultResponse; - toAminoMsg(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _41.QueryTallyResultResponseProtoMsg): _41.QueryTallyResultResponse; - toProto(message: _41.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _41.QueryTallyResultResponse): _41.QueryTallyResultResponseProtoMsg; - }; - voteOptionFromJSON(object: any): _40.VoteOption; - voteOptionToJSON(object: _40.VoteOption): string; - proposalStatusFromJSON(object: any): _40.ProposalStatus; - proposalStatusToJSON(object: _40.ProposalStatus): string; - VoteOption: typeof _40.VoteOption; - VoteOptionSDKType: typeof _40.VoteOption; - VoteOptionAmino: typeof _40.VoteOption; - ProposalStatus: typeof _40.ProposalStatus; - ProposalStatusSDKType: typeof _40.ProposalStatus; - ProposalStatusAmino: typeof _40.ProposalStatus; - WeightedVoteOption: { - typeUrl: string; - encode(message: _40.WeightedVoteOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.WeightedVoteOption; - fromPartial(object: Partial<_40.WeightedVoteOption>): _40.WeightedVoteOption; - fromAmino(object: _40.WeightedVoteOptionAmino): _40.WeightedVoteOption; - toAmino(message: _40.WeightedVoteOption): _40.WeightedVoteOptionAmino; - fromAminoMsg(object: _40.WeightedVoteOptionAminoMsg): _40.WeightedVoteOption; - toAminoMsg(message: _40.WeightedVoteOption): _40.WeightedVoteOptionAminoMsg; - fromProtoMsg(message: _40.WeightedVoteOptionProtoMsg): _40.WeightedVoteOption; - toProto(message: _40.WeightedVoteOption): Uint8Array; - toProtoMsg(message: _40.WeightedVoteOption): _40.WeightedVoteOptionProtoMsg; - }; - TextProposal: { - typeUrl: string; - encode(message: _40.TextProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TextProposal; - fromPartial(object: Partial<_40.TextProposal>): _40.TextProposal; - fromAmino(object: _40.TextProposalAmino): _40.TextProposal; - toAmino(message: _40.TextProposal): _40.TextProposalAmino; - fromAminoMsg(object: _40.TextProposalAminoMsg): _40.TextProposal; - toAminoMsg(message: _40.TextProposal): _40.TextProposalAminoMsg; - fromProtoMsg(message: _40.TextProposalProtoMsg): _40.TextProposal; - toProto(message: _40.TextProposal): Uint8Array; - toProtoMsg(message: _40.TextProposal): _40.TextProposalProtoMsg; - }; - Deposit: { - typeUrl: string; - encode(message: _40.Deposit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Deposit; - fromPartial(object: Partial<_40.Deposit>): _40.Deposit; - fromAmino(object: _40.DepositAmino): _40.Deposit; - toAmino(message: _40.Deposit): _40.DepositAmino; - fromAminoMsg(object: _40.DepositAminoMsg): _40.Deposit; - toAminoMsg(message: _40.Deposit): _40.DepositAminoMsg; - fromProtoMsg(message: _40.DepositProtoMsg): _40.Deposit; - toProto(message: _40.Deposit): Uint8Array; - toProtoMsg(message: _40.Deposit): _40.DepositProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _40.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Proposal; - fromPartial(object: Partial<_40.Proposal>): _40.Proposal; - fromAmino(object: _40.ProposalAmino): _40.Proposal; - toAmino(message: _40.Proposal): _40.ProposalAmino; - fromAminoMsg(object: _40.ProposalAminoMsg): _40.Proposal; - toAminoMsg(message: _40.Proposal): _40.ProposalAminoMsg; - fromProtoMsg(message: _40.ProposalProtoMsg): _40.Proposal; - toProto(message: _40.Proposal): Uint8Array; - toProtoMsg(message: _40.Proposal): _40.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _40.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TallyResult; - fromPartial(object: Partial<_40.TallyResult>): _40.TallyResult; - fromAmino(object: _40.TallyResultAmino): _40.TallyResult; - toAmino(message: _40.TallyResult): _40.TallyResultAmino; - fromAminoMsg(object: _40.TallyResultAminoMsg): _40.TallyResult; - toAminoMsg(message: _40.TallyResult): _40.TallyResultAminoMsg; - fromProtoMsg(message: _40.TallyResultProtoMsg): _40.TallyResult; - toProto(message: _40.TallyResult): Uint8Array; - toProtoMsg(message: _40.TallyResult): _40.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _40.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.Vote; - fromPartial(object: Partial<_40.Vote>): _40.Vote; - fromAmino(object: _40.VoteAmino): _40.Vote; - toAmino(message: _40.Vote): _40.VoteAmino; - fromAminoMsg(object: _40.VoteAminoMsg): _40.Vote; - toAminoMsg(message: _40.Vote): _40.VoteAminoMsg; - fromProtoMsg(message: _40.VoteProtoMsg): _40.Vote; - toProto(message: _40.Vote): Uint8Array; - toProtoMsg(message: _40.Vote): _40.VoteProtoMsg; - }; - DepositParams: { - typeUrl: string; - encode(message: _40.DepositParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.DepositParams; - fromPartial(object: Partial<_40.DepositParams>): _40.DepositParams; - fromAmino(object: _40.DepositParamsAmino): _40.DepositParams; - toAmino(message: _40.DepositParams): _40.DepositParamsAmino; - fromAminoMsg(object: _40.DepositParamsAminoMsg): _40.DepositParams; - toAminoMsg(message: _40.DepositParams): _40.DepositParamsAminoMsg; - fromProtoMsg(message: _40.DepositParamsProtoMsg): _40.DepositParams; - toProto(message: _40.DepositParams): Uint8Array; - toProtoMsg(message: _40.DepositParams): _40.DepositParamsProtoMsg; - }; - VotingParams: { - typeUrl: string; - encode(message: _40.VotingParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.VotingParams; - fromPartial(object: Partial<_40.VotingParams>): _40.VotingParams; - fromAmino(object: _40.VotingParamsAmino): _40.VotingParams; - toAmino(message: _40.VotingParams): _40.VotingParamsAmino; - fromAminoMsg(object: _40.VotingParamsAminoMsg): _40.VotingParams; - toAminoMsg(message: _40.VotingParams): _40.VotingParamsAminoMsg; - fromProtoMsg(message: _40.VotingParamsProtoMsg): _40.VotingParams; - toProto(message: _40.VotingParams): Uint8Array; - toProtoMsg(message: _40.VotingParams): _40.VotingParamsProtoMsg; - }; - TallyParams: { - typeUrl: string; - encode(message: _40.TallyParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _40.TallyParams; - fromPartial(object: Partial<_40.TallyParams>): _40.TallyParams; - fromAmino(object: _40.TallyParamsAmino): _40.TallyParams; - toAmino(message: _40.TallyParams): _40.TallyParamsAmino; - fromAminoMsg(object: _40.TallyParamsAminoMsg): _40.TallyParams; - toAminoMsg(message: _40.TallyParams): _40.TallyParamsAminoMsg; - fromProtoMsg(message: _40.TallyParamsProtoMsg): _40.TallyParams; - toProto(message: _40.TallyParams): Uint8Array; - toProtoMsg(message: _40.TallyParams): _40.TallyParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _39.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _39.GenesisState; - fromPartial(object: Partial<_39.GenesisState>): _39.GenesisState; - fromAmino(object: _39.GenesisStateAmino): _39.GenesisState; - toAmino(message: _39.GenesisState): _39.GenesisStateAmino; - fromAminoMsg(object: _39.GenesisStateAminoMsg): _39.GenesisState; - toAminoMsg(message: _39.GenesisState): _39.GenesisStateAminoMsg; - fromProtoMsg(message: _39.GenesisStateProtoMsg): _39.GenesisState; - toProto(message: _39.GenesisState): Uint8Array; - toProtoMsg(message: _39.GenesisState): _39.GenesisStateProtoMsg; - }; - }; - } - namespace group { - const v1: { - MsgClientImpl: typeof _173.MsgClientImpl; - QueryClientImpl: typeof _161.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - groupInfo(request: _45.QueryGroupInfoRequest): Promise<_45.QueryGroupInfoResponse>; - groupPolicyInfo(request: _45.QueryGroupPolicyInfoRequest): Promise<_45.QueryGroupPolicyInfoResponse>; - groupMembers(request: _45.QueryGroupMembersRequest): Promise<_45.QueryGroupMembersResponse>; - groupsByAdmin(request: _45.QueryGroupsByAdminRequest): Promise<_45.QueryGroupsByAdminResponse>; - groupPoliciesByGroup(request: _45.QueryGroupPoliciesByGroupRequest): Promise<_45.QueryGroupPoliciesByGroupResponse>; - groupPoliciesByAdmin(request: _45.QueryGroupPoliciesByAdminRequest): Promise<_45.QueryGroupPoliciesByAdminResponse>; - proposal(request: _45.QueryProposalRequest): Promise<_45.QueryProposalResponse>; - proposalsByGroupPolicy(request: _45.QueryProposalsByGroupPolicyRequest): Promise<_45.QueryProposalsByGroupPolicyResponse>; - voteByProposalVoter(request: _45.QueryVoteByProposalVoterRequest): Promise<_45.QueryVoteByProposalVoterResponse>; - votesByProposal(request: _45.QueryVotesByProposalRequest): Promise<_45.QueryVotesByProposalResponse>; - votesByVoter(request: _45.QueryVotesByVoterRequest): Promise<_45.QueryVotesByVoterResponse>; - groupsByMember(request: _45.QueryGroupsByMemberRequest): Promise<_45.QueryGroupsByMemberResponse>; - tallyResult(request: _45.QueryTallyResultRequest): Promise<_45.QueryTallyResultResponse>; - }; - LCDQueryClient: typeof _147.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createGroup(value: _46.MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: _46.MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: _46.MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: _46.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: _46.MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _46.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: _46.MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: _46.MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: _46.MsgCreateGroup): { - typeUrl: string; - value: _46.MsgCreateGroup; - }; - updateGroupMembers(value: _46.MsgUpdateGroupMembers): { - typeUrl: string; - value: _46.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _46.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _46.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _46.MsgCreateGroupPolicy): { - typeUrl: string; - value: _46.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _46.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _46.MsgSubmitProposal): { - typeUrl: string; - value: _46.MsgSubmitProposal; - }; - withdrawProposal(value: _46.MsgWithdrawProposal): { - typeUrl: string; - value: _46.MsgWithdrawProposal; - }; - vote(value: _46.MsgVote): { - typeUrl: string; - value: _46.MsgVote; - }; - exec(value: _46.MsgExec): { - typeUrl: string; - value: _46.MsgExec; - }; - leaveGroup(value: _46.MsgLeaveGroup): { - typeUrl: string; - value: _46.MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: _46.MsgCreateGroup): { - typeUrl: string; - value: _46.MsgCreateGroup; - }; - updateGroupMembers(value: _46.MsgUpdateGroupMembers): { - typeUrl: string; - value: _46.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _46.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _46.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _46.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _46.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _46.MsgCreateGroupPolicy): { - typeUrl: string; - value: _46.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _46.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _46.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _46.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _46.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _46.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _46.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _46.MsgSubmitProposal): { - typeUrl: string; - value: _46.MsgSubmitProposal; - }; - withdrawProposal(value: _46.MsgWithdrawProposal): { - typeUrl: string; - value: _46.MsgWithdrawProposal; - }; - vote(value: _46.MsgVote): { - typeUrl: string; - value: _46.MsgVote; - }; - exec(value: _46.MsgExec): { - typeUrl: string; - value: _46.MsgExec; - }; - leaveGroup(value: _46.MsgLeaveGroup): { - typeUrl: string; - value: _46.MsgLeaveGroup; - }; - }; - }; - AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: _46.MsgCreateGroup) => _46.MsgCreateGroupAmino; - fromAmino: (object: _46.MsgCreateGroupAmino) => _46.MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupMembers) => _46.MsgUpdateGroupMembersAmino; - fromAmino: (object: _46.MsgUpdateGroupMembersAmino) => _46.MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupAdmin) => _46.MsgUpdateGroupAdminAmino; - fromAmino: (object: _46.MsgUpdateGroupAdminAmino) => _46.MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupMetadata) => _46.MsgUpdateGroupMetadataAmino; - fromAmino: (object: _46.MsgUpdateGroupMetadataAmino) => _46.MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: _46.MsgCreateGroupPolicy) => _46.MsgCreateGroupPolicyAmino; - fromAmino: (object: _46.MsgCreateGroupPolicyAmino) => _46.MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: _46.MsgCreateGroupWithPolicy) => _46.MsgCreateGroupWithPolicyAmino; - fromAmino: (object: _46.MsgCreateGroupWithPolicyAmino) => _46.MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupPolicyAdmin) => _46.MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: _46.MsgUpdateGroupPolicyAdminAmino) => _46.MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupPolicyDecisionPolicy) => _46.MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: _46.MsgUpdateGroupPolicyDecisionPolicyAmino) => _46.MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: _46.MsgUpdateGroupPolicyMetadata) => _46.MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: _46.MsgUpdateGroupPolicyMetadataAmino) => _46.MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: _46.MsgSubmitProposal) => _46.MsgSubmitProposalAmino; - fromAmino: (object: _46.MsgSubmitProposalAmino) => _46.MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: _46.MsgWithdrawProposal) => _46.MsgWithdrawProposalAmino; - fromAmino: (object: _46.MsgWithdrawProposalAmino) => _46.MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: _46.MsgVote) => _46.MsgVoteAmino; - fromAmino: (object: _46.MsgVoteAmino) => _46.MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: _46.MsgExec) => _46.MsgExecAmino; - fromAmino: (object: _46.MsgExecAmino) => _46.MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: _46.MsgLeaveGroup) => _46.MsgLeaveGroupAmino; - fromAmino: (object: _46.MsgLeaveGroupAmino) => _46.MsgLeaveGroup; - }; - }; - voteOptionFromJSON(object: any): _47.VoteOption; - voteOptionToJSON(object: _47.VoteOption): string; - proposalStatusFromJSON(object: any): _47.ProposalStatus; - proposalStatusToJSON(object: _47.ProposalStatus): string; - proposalExecutorResultFromJSON(object: any): _47.ProposalExecutorResult; - proposalExecutorResultToJSON(object: _47.ProposalExecutorResult): string; - VoteOption: typeof _47.VoteOption; - VoteOptionSDKType: typeof _47.VoteOption; - VoteOptionAmino: typeof _47.VoteOption; - ProposalStatus: typeof _47.ProposalStatus; - ProposalStatusSDKType: typeof _47.ProposalStatus; - ProposalStatusAmino: typeof _47.ProposalStatus; - ProposalExecutorResult: typeof _47.ProposalExecutorResult; - ProposalExecutorResultSDKType: typeof _47.ProposalExecutorResult; - ProposalExecutorResultAmino: typeof _47.ProposalExecutorResult; - Member: { - typeUrl: string; - encode(message: _47.Member, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Member; - fromPartial(object: Partial<_47.Member>): _47.Member; - fromAmino(object: _47.MemberAmino): _47.Member; - toAmino(message: _47.Member): _47.MemberAmino; - fromAminoMsg(object: _47.MemberAminoMsg): _47.Member; - toAminoMsg(message: _47.Member): _47.MemberAminoMsg; - fromProtoMsg(message: _47.MemberProtoMsg): _47.Member; - toProto(message: _47.Member): Uint8Array; - toProtoMsg(message: _47.Member): _47.MemberProtoMsg; - }; - MemberRequest: { - typeUrl: string; - encode(message: _47.MemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.MemberRequest; - fromPartial(object: Partial<_47.MemberRequest>): _47.MemberRequest; - fromAmino(object: _47.MemberRequestAmino): _47.MemberRequest; - toAmino(message: _47.MemberRequest): _47.MemberRequestAmino; - fromAminoMsg(object: _47.MemberRequestAminoMsg): _47.MemberRequest; - toAminoMsg(message: _47.MemberRequest): _47.MemberRequestAminoMsg; - fromProtoMsg(message: _47.MemberRequestProtoMsg): _47.MemberRequest; - toProto(message: _47.MemberRequest): Uint8Array; - toProtoMsg(message: _47.MemberRequest): _47.MemberRequestProtoMsg; - }; - ThresholdDecisionPolicy: { - typeUrl: string; - encode(message: _47.ThresholdDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.ThresholdDecisionPolicy; - fromPartial(object: Partial<_47.ThresholdDecisionPolicy>): _47.ThresholdDecisionPolicy; - fromAmino(object: _47.ThresholdDecisionPolicyAmino): _47.ThresholdDecisionPolicy; - toAmino(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyAmino; - fromAminoMsg(object: _47.ThresholdDecisionPolicyAminoMsg): _47.ThresholdDecisionPolicy; - toAminoMsg(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyAminoMsg; - fromProtoMsg(message: _47.ThresholdDecisionPolicyProtoMsg): _47.ThresholdDecisionPolicy; - toProto(message: _47.ThresholdDecisionPolicy): Uint8Array; - toProtoMsg(message: _47.ThresholdDecisionPolicy): _47.ThresholdDecisionPolicyProtoMsg; - }; - PercentageDecisionPolicy: { - typeUrl: string; - encode(message: _47.PercentageDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.PercentageDecisionPolicy; - fromPartial(object: Partial<_47.PercentageDecisionPolicy>): _47.PercentageDecisionPolicy; - fromAmino(object: _47.PercentageDecisionPolicyAmino): _47.PercentageDecisionPolicy; - toAmino(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyAmino; - fromAminoMsg(object: _47.PercentageDecisionPolicyAminoMsg): _47.PercentageDecisionPolicy; - toAminoMsg(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyAminoMsg; - fromProtoMsg(message: _47.PercentageDecisionPolicyProtoMsg): _47.PercentageDecisionPolicy; - toProto(message: _47.PercentageDecisionPolicy): Uint8Array; - toProtoMsg(message: _47.PercentageDecisionPolicy): _47.PercentageDecisionPolicyProtoMsg; - }; - DecisionPolicyWindows: { - typeUrl: string; - encode(message: _47.DecisionPolicyWindows, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.DecisionPolicyWindows; - fromPartial(object: Partial<_47.DecisionPolicyWindows>): _47.DecisionPolicyWindows; - fromAmino(object: _47.DecisionPolicyWindowsAmino): _47.DecisionPolicyWindows; - toAmino(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsAmino; - fromAminoMsg(object: _47.DecisionPolicyWindowsAminoMsg): _47.DecisionPolicyWindows; - toAminoMsg(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsAminoMsg; - fromProtoMsg(message: _47.DecisionPolicyWindowsProtoMsg): _47.DecisionPolicyWindows; - toProto(message: _47.DecisionPolicyWindows): Uint8Array; - toProtoMsg(message: _47.DecisionPolicyWindows): _47.DecisionPolicyWindowsProtoMsg; - }; - GroupInfo: { - typeUrl: string; - encode(message: _47.GroupInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupInfo; - fromPartial(object: Partial<_47.GroupInfo>): _47.GroupInfo; - fromAmino(object: _47.GroupInfoAmino): _47.GroupInfo; - toAmino(message: _47.GroupInfo): _47.GroupInfoAmino; - fromAminoMsg(object: _47.GroupInfoAminoMsg): _47.GroupInfo; - toAminoMsg(message: _47.GroupInfo): _47.GroupInfoAminoMsg; - fromProtoMsg(message: _47.GroupInfoProtoMsg): _47.GroupInfo; - toProto(message: _47.GroupInfo): Uint8Array; - toProtoMsg(message: _47.GroupInfo): _47.GroupInfoProtoMsg; - }; - GroupMember: { - typeUrl: string; - encode(message: _47.GroupMember, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupMember; - fromPartial(object: Partial<_47.GroupMember>): _47.GroupMember; - fromAmino(object: _47.GroupMemberAmino): _47.GroupMember; - toAmino(message: _47.GroupMember): _47.GroupMemberAmino; - fromAminoMsg(object: _47.GroupMemberAminoMsg): _47.GroupMember; - toAminoMsg(message: _47.GroupMember): _47.GroupMemberAminoMsg; - fromProtoMsg(message: _47.GroupMemberProtoMsg): _47.GroupMember; - toProto(message: _47.GroupMember): Uint8Array; - toProtoMsg(message: _47.GroupMember): _47.GroupMemberProtoMsg; - }; - GroupPolicyInfo: { - typeUrl: string; - encode(message: _47.GroupPolicyInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.GroupPolicyInfo; - fromPartial(object: Partial<_47.GroupPolicyInfo>): _47.GroupPolicyInfo; - fromAmino(object: _47.GroupPolicyInfoAmino): _47.GroupPolicyInfo; - toAmino(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoAmino; - fromAminoMsg(object: _47.GroupPolicyInfoAminoMsg): _47.GroupPolicyInfo; - toAminoMsg(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoAminoMsg; - fromProtoMsg(message: _47.GroupPolicyInfoProtoMsg): _47.GroupPolicyInfo; - toProto(message: _47.GroupPolicyInfo): Uint8Array; - toProtoMsg(message: _47.GroupPolicyInfo): _47.GroupPolicyInfoProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _47.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Proposal; - fromPartial(object: Partial<_47.Proposal>): _47.Proposal; - fromAmino(object: _47.ProposalAmino): _47.Proposal; - toAmino(message: _47.Proposal): _47.ProposalAmino; - fromAminoMsg(object: _47.ProposalAminoMsg): _47.Proposal; - toAminoMsg(message: _47.Proposal): _47.ProposalAminoMsg; - fromProtoMsg(message: _47.ProposalProtoMsg): _47.Proposal; - toProto(message: _47.Proposal): Uint8Array; - toProtoMsg(message: _47.Proposal): _47.ProposalProtoMsg; - }; - TallyResult: { - typeUrl: string; - encode(message: _47.TallyResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.TallyResult; - fromPartial(object: Partial<_47.TallyResult>): _47.TallyResult; - fromAmino(object: _47.TallyResultAmino): _47.TallyResult; - toAmino(message: _47.TallyResult): _47.TallyResultAmino; - fromAminoMsg(object: _47.TallyResultAminoMsg): _47.TallyResult; - toAminoMsg(message: _47.TallyResult): _47.TallyResultAminoMsg; - fromProtoMsg(message: _47.TallyResultProtoMsg): _47.TallyResult; - toProto(message: _47.TallyResult): Uint8Array; - toProtoMsg(message: _47.TallyResult): _47.TallyResultProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _47.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _47.Vote; - fromPartial(object: Partial<_47.Vote>): _47.Vote; - fromAmino(object: _47.VoteAmino): _47.Vote; - toAmino(message: _47.Vote): _47.VoteAmino; - fromAminoMsg(object: _47.VoteAminoMsg): _47.Vote; - toAminoMsg(message: _47.Vote): _47.VoteAminoMsg; - fromProtoMsg(message: _47.VoteProtoMsg): _47.Vote; - toProto(message: _47.Vote): Uint8Array; - toProtoMsg(message: _47.Vote): _47.VoteProtoMsg; - }; - DecisionPolicy_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any | _47.ThresholdDecisionPolicy | _47.PercentageDecisionPolicy; - DecisionPolicy_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - DecisionPolicy_ToAmino: (content: import("../google/protobuf/any").Any) => import("../google/protobuf/any").AnyAmino; - execFromJSON(object: any): _46.Exec; - execToJSON(object: _46.Exec): string; - Exec: typeof _46.Exec; - ExecSDKType: typeof _46.Exec; - ExecAmino: typeof _46.Exec; - MsgCreateGroup: { - typeUrl: string; - encode(message: _46.MsgCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroup; - fromPartial(object: Partial<_46.MsgCreateGroup>): _46.MsgCreateGroup; - fromAmino(object: _46.MsgCreateGroupAmino): _46.MsgCreateGroup; - toAmino(message: _46.MsgCreateGroup): _46.MsgCreateGroupAmino; - fromAminoMsg(object: _46.MsgCreateGroupAminoMsg): _46.MsgCreateGroup; - toAminoMsg(message: _46.MsgCreateGroup): _46.MsgCreateGroupAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupProtoMsg): _46.MsgCreateGroup; - toProto(message: _46.MsgCreateGroup): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroup): _46.MsgCreateGroupProtoMsg; - }; - MsgCreateGroupResponse: { - typeUrl: string; - encode(message: _46.MsgCreateGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupResponse; - fromPartial(object: Partial<_46.MsgCreateGroupResponse>): _46.MsgCreateGroupResponse; - fromAmino(object: _46.MsgCreateGroupResponseAmino): _46.MsgCreateGroupResponse; - toAmino(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseAmino; - fromAminoMsg(object: _46.MsgCreateGroupResponseAminoMsg): _46.MsgCreateGroupResponse; - toAminoMsg(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupResponseProtoMsg): _46.MsgCreateGroupResponse; - toProto(message: _46.MsgCreateGroupResponse): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroupResponse): _46.MsgCreateGroupResponseProtoMsg; - }; - MsgUpdateGroupMembers: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupMembers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMembers; - fromPartial(object: Partial<_46.MsgUpdateGroupMembers>): _46.MsgUpdateGroupMembers; - fromAmino(object: _46.MsgUpdateGroupMembersAmino): _46.MsgUpdateGroupMembers; - toAmino(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersAmino; - fromAminoMsg(object: _46.MsgUpdateGroupMembersAminoMsg): _46.MsgUpdateGroupMembers; - toAminoMsg(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupMembersProtoMsg): _46.MsgUpdateGroupMembers; - toProto(message: _46.MsgUpdateGroupMembers): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupMembers): _46.MsgUpdateGroupMembersProtoMsg; - }; - MsgUpdateGroupMembersResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMembersResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupMembersResponse>): _46.MsgUpdateGroupMembersResponse; - fromAmino(_: _46.MsgUpdateGroupMembersResponseAmino): _46.MsgUpdateGroupMembersResponse; - toAmino(_: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupMembersResponseAminoMsg): _46.MsgUpdateGroupMembersResponse; - toAminoMsg(message: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupMembersResponseProtoMsg): _46.MsgUpdateGroupMembersResponse; - toProto(message: _46.MsgUpdateGroupMembersResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupMembersResponse): _46.MsgUpdateGroupMembersResponseProtoMsg; - }; - MsgUpdateGroupAdmin: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupAdmin; - fromPartial(object: Partial<_46.MsgUpdateGroupAdmin>): _46.MsgUpdateGroupAdmin; - fromAmino(object: _46.MsgUpdateGroupAdminAmino): _46.MsgUpdateGroupAdmin; - toAmino(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminAmino; - fromAminoMsg(object: _46.MsgUpdateGroupAdminAminoMsg): _46.MsgUpdateGroupAdmin; - toAminoMsg(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupAdminProtoMsg): _46.MsgUpdateGroupAdmin; - toProto(message: _46.MsgUpdateGroupAdmin): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupAdmin): _46.MsgUpdateGroupAdminProtoMsg; - }; - MsgUpdateGroupAdminResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupAdminResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupAdminResponse>): _46.MsgUpdateGroupAdminResponse; - fromAmino(_: _46.MsgUpdateGroupAdminResponseAmino): _46.MsgUpdateGroupAdminResponse; - toAmino(_: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupAdminResponseAminoMsg): _46.MsgUpdateGroupAdminResponse; - toAminoMsg(message: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupAdminResponseProtoMsg): _46.MsgUpdateGroupAdminResponse; - toProto(message: _46.MsgUpdateGroupAdminResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupAdminResponse): _46.MsgUpdateGroupAdminResponseProtoMsg; - }; - MsgUpdateGroupMetadata: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMetadata; - fromPartial(object: Partial<_46.MsgUpdateGroupMetadata>): _46.MsgUpdateGroupMetadata; - fromAmino(object: _46.MsgUpdateGroupMetadataAmino): _46.MsgUpdateGroupMetadata; - toAmino(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataAmino; - fromAminoMsg(object: _46.MsgUpdateGroupMetadataAminoMsg): _46.MsgUpdateGroupMetadata; - toAminoMsg(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupMetadataProtoMsg): _46.MsgUpdateGroupMetadata; - toProto(message: _46.MsgUpdateGroupMetadata): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupMetadata): _46.MsgUpdateGroupMetadataProtoMsg; - }; - MsgUpdateGroupMetadataResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupMetadataResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupMetadataResponse>): _46.MsgUpdateGroupMetadataResponse; - fromAmino(_: _46.MsgUpdateGroupMetadataResponseAmino): _46.MsgUpdateGroupMetadataResponse; - toAmino(_: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupMetadataResponseAminoMsg): _46.MsgUpdateGroupMetadataResponse; - toAminoMsg(message: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupMetadataResponseProtoMsg): _46.MsgUpdateGroupMetadataResponse; - toProto(message: _46.MsgUpdateGroupMetadataResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupMetadataResponse): _46.MsgUpdateGroupMetadataResponseProtoMsg; - }; - MsgCreateGroupPolicy: { - typeUrl: string; - encode(message: _46.MsgCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupPolicy; - fromPartial(object: Partial<_46.MsgCreateGroupPolicy>): _46.MsgCreateGroupPolicy; - fromAmino(object: _46.MsgCreateGroupPolicyAmino): _46.MsgCreateGroupPolicy; - toAmino(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyAmino; - fromAminoMsg(object: _46.MsgCreateGroupPolicyAminoMsg): _46.MsgCreateGroupPolicy; - toAminoMsg(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupPolicyProtoMsg): _46.MsgCreateGroupPolicy; - toProto(message: _46.MsgCreateGroupPolicy): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroupPolicy): _46.MsgCreateGroupPolicyProtoMsg; - }; - MsgCreateGroupPolicyResponse: { - typeUrl: string; - encode(message: _46.MsgCreateGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupPolicyResponse; - fromPartial(object: Partial<_46.MsgCreateGroupPolicyResponse>): _46.MsgCreateGroupPolicyResponse; - fromAmino(object: _46.MsgCreateGroupPolicyResponseAmino): _46.MsgCreateGroupPolicyResponse; - toAmino(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseAmino; - fromAminoMsg(object: _46.MsgCreateGroupPolicyResponseAminoMsg): _46.MsgCreateGroupPolicyResponse; - toAminoMsg(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupPolicyResponseProtoMsg): _46.MsgCreateGroupPolicyResponse; - toProto(message: _46.MsgCreateGroupPolicyResponse): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroupPolicyResponse): _46.MsgCreateGroupPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyAdmin: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupPolicyAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyAdmin; - fromPartial(object: Partial<_46.MsgUpdateGroupPolicyAdmin>): _46.MsgUpdateGroupPolicyAdmin; - fromAmino(object: _46.MsgUpdateGroupPolicyAdminAmino): _46.MsgUpdateGroupPolicyAdmin; - toAmino(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyAdminAminoMsg): _46.MsgUpdateGroupPolicyAdmin; - toAminoMsg(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyAdminProtoMsg): _46.MsgUpdateGroupPolicyAdmin; - toProto(message: _46.MsgUpdateGroupPolicyAdmin): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyAdmin): _46.MsgUpdateGroupPolicyAdminProtoMsg; - }; - MsgUpdateGroupPolicyAdminResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupPolicyAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyAdminResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupPolicyAdminResponse>): _46.MsgUpdateGroupPolicyAdminResponse; - fromAmino(_: _46.MsgUpdateGroupPolicyAdminResponseAmino): _46.MsgUpdateGroupPolicyAdminResponse; - toAmino(_: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyAdminResponseAminoMsg): _46.MsgUpdateGroupPolicyAdminResponse; - toAminoMsg(message: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyAdminResponseProtoMsg): _46.MsgUpdateGroupPolicyAdminResponse; - toProto(message: _46.MsgUpdateGroupPolicyAdminResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyAdminResponse): _46.MsgUpdateGroupPolicyAdminResponseProtoMsg; - }; - MsgCreateGroupWithPolicy: { - typeUrl: string; - encode(message: _46.MsgCreateGroupWithPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupWithPolicy; - fromPartial(object: Partial<_46.MsgCreateGroupWithPolicy>): _46.MsgCreateGroupWithPolicy; - fromAmino(object: _46.MsgCreateGroupWithPolicyAmino): _46.MsgCreateGroupWithPolicy; - toAmino(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyAmino; - fromAminoMsg(object: _46.MsgCreateGroupWithPolicyAminoMsg): _46.MsgCreateGroupWithPolicy; - toAminoMsg(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupWithPolicyProtoMsg): _46.MsgCreateGroupWithPolicy; - toProto(message: _46.MsgCreateGroupWithPolicy): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroupWithPolicy): _46.MsgCreateGroupWithPolicyProtoMsg; - }; - MsgCreateGroupWithPolicyResponse: { - typeUrl: string; - encode(message: _46.MsgCreateGroupWithPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgCreateGroupWithPolicyResponse; - fromPartial(object: Partial<_46.MsgCreateGroupWithPolicyResponse>): _46.MsgCreateGroupWithPolicyResponse; - fromAmino(object: _46.MsgCreateGroupWithPolicyResponseAmino): _46.MsgCreateGroupWithPolicyResponse; - toAmino(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseAmino; - fromAminoMsg(object: _46.MsgCreateGroupWithPolicyResponseAminoMsg): _46.MsgCreateGroupWithPolicyResponse; - toAminoMsg(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseAminoMsg; - fromProtoMsg(message: _46.MsgCreateGroupWithPolicyResponseProtoMsg): _46.MsgCreateGroupWithPolicyResponse; - toProto(message: _46.MsgCreateGroupWithPolicyResponse): Uint8Array; - toProtoMsg(message: _46.MsgCreateGroupWithPolicyResponse): _46.MsgCreateGroupWithPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyDecisionPolicy: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyDecisionPolicy; - fromPartial(object: Partial<_46.MsgUpdateGroupPolicyDecisionPolicy>): _46.MsgUpdateGroupPolicyDecisionPolicy; - fromAmino(object: _46.MsgUpdateGroupPolicyDecisionPolicyAmino): _46.MsgUpdateGroupPolicyDecisionPolicy; - toAmino(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyDecisionPolicyAminoMsg): _46.MsgUpdateGroupPolicyDecisionPolicy; - toAminoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyProtoMsg): _46.MsgUpdateGroupPolicyDecisionPolicy; - toProto(message: _46.MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicy): _46.MsgUpdateGroupPolicyDecisionPolicyProtoMsg; - }; - MsgUpdateGroupPolicyDecisionPolicyResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupPolicyDecisionPolicyResponse>): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; - fromAmino(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponseAmino): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; - toAmino(_: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; - toAminoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): _46.MsgUpdateGroupPolicyDecisionPolicyResponse; - toProto(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyDecisionPolicyResponse): _46.MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; - }; - MsgUpdateGroupPolicyMetadata: { - typeUrl: string; - encode(message: _46.MsgUpdateGroupPolicyMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyMetadata; - fromPartial(object: Partial<_46.MsgUpdateGroupPolicyMetadata>): _46.MsgUpdateGroupPolicyMetadata; - fromAmino(object: _46.MsgUpdateGroupPolicyMetadataAmino): _46.MsgUpdateGroupPolicyMetadata; - toAmino(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyMetadataAminoMsg): _46.MsgUpdateGroupPolicyMetadata; - toAminoMsg(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataProtoMsg): _46.MsgUpdateGroupPolicyMetadata; - toProto(message: _46.MsgUpdateGroupPolicyMetadata): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyMetadata): _46.MsgUpdateGroupPolicyMetadataProtoMsg; - }; - MsgUpdateGroupPolicyMetadataResponse: { - typeUrl: string; - encode(_: _46.MsgUpdateGroupPolicyMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgUpdateGroupPolicyMetadataResponse; - fromPartial(_: Partial<_46.MsgUpdateGroupPolicyMetadataResponse>): _46.MsgUpdateGroupPolicyMetadataResponse; - fromAmino(_: _46.MsgUpdateGroupPolicyMetadataResponseAmino): _46.MsgUpdateGroupPolicyMetadataResponse; - toAmino(_: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseAmino; - fromAminoMsg(object: _46.MsgUpdateGroupPolicyMetadataResponseAminoMsg): _46.MsgUpdateGroupPolicyMetadataResponse; - toAminoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseAminoMsg; - fromProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponseProtoMsg): _46.MsgUpdateGroupPolicyMetadataResponse; - toProto(message: _46.MsgUpdateGroupPolicyMetadataResponse): Uint8Array; - toProtoMsg(message: _46.MsgUpdateGroupPolicyMetadataResponse): _46.MsgUpdateGroupPolicyMetadataResponseProtoMsg; - }; - MsgSubmitProposal: { - typeUrl: string; - encode(message: _46.MsgSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgSubmitProposal; - fromPartial(object: Partial<_46.MsgSubmitProposal>): _46.MsgSubmitProposal; - fromAmino(object: _46.MsgSubmitProposalAmino): _46.MsgSubmitProposal; - toAmino(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalAmino; - fromAminoMsg(object: _46.MsgSubmitProposalAminoMsg): _46.MsgSubmitProposal; - toAminoMsg(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalAminoMsg; - fromProtoMsg(message: _46.MsgSubmitProposalProtoMsg): _46.MsgSubmitProposal; - toProto(message: _46.MsgSubmitProposal): Uint8Array; - toProtoMsg(message: _46.MsgSubmitProposal): _46.MsgSubmitProposalProtoMsg; - }; - MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: _46.MsgSubmitProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgSubmitProposalResponse; - fromPartial(object: Partial<_46.MsgSubmitProposalResponse>): _46.MsgSubmitProposalResponse; - fromAmino(object: _46.MsgSubmitProposalResponseAmino): _46.MsgSubmitProposalResponse; - toAmino(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseAmino; - fromAminoMsg(object: _46.MsgSubmitProposalResponseAminoMsg): _46.MsgSubmitProposalResponse; - toAminoMsg(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: _46.MsgSubmitProposalResponseProtoMsg): _46.MsgSubmitProposalResponse; - toProto(message: _46.MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: _46.MsgSubmitProposalResponse): _46.MsgSubmitProposalResponseProtoMsg; - }; - MsgWithdrawProposal: { - typeUrl: string; - encode(message: _46.MsgWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgWithdrawProposal; - fromPartial(object: Partial<_46.MsgWithdrawProposal>): _46.MsgWithdrawProposal; - fromAmino(object: _46.MsgWithdrawProposalAmino): _46.MsgWithdrawProposal; - toAmino(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalAmino; - fromAminoMsg(object: _46.MsgWithdrawProposalAminoMsg): _46.MsgWithdrawProposal; - toAminoMsg(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalAminoMsg; - fromProtoMsg(message: _46.MsgWithdrawProposalProtoMsg): _46.MsgWithdrawProposal; - toProto(message: _46.MsgWithdrawProposal): Uint8Array; - toProtoMsg(message: _46.MsgWithdrawProposal): _46.MsgWithdrawProposalProtoMsg; - }; - MsgWithdrawProposalResponse: { - typeUrl: string; - encode(_: _46.MsgWithdrawProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgWithdrawProposalResponse; - fromPartial(_: Partial<_46.MsgWithdrawProposalResponse>): _46.MsgWithdrawProposalResponse; - fromAmino(_: _46.MsgWithdrawProposalResponseAmino): _46.MsgWithdrawProposalResponse; - toAmino(_: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseAmino; - fromAminoMsg(object: _46.MsgWithdrawProposalResponseAminoMsg): _46.MsgWithdrawProposalResponse; - toAminoMsg(message: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseAminoMsg; - fromProtoMsg(message: _46.MsgWithdrawProposalResponseProtoMsg): _46.MsgWithdrawProposalResponse; - toProto(message: _46.MsgWithdrawProposalResponse): Uint8Array; - toProtoMsg(message: _46.MsgWithdrawProposalResponse): _46.MsgWithdrawProposalResponseProtoMsg; - }; - MsgVote: { - typeUrl: string; - encode(message: _46.MsgVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgVote; - fromPartial(object: Partial<_46.MsgVote>): _46.MsgVote; - fromAmino(object: _46.MsgVoteAmino): _46.MsgVote; - toAmino(message: _46.MsgVote): _46.MsgVoteAmino; - fromAminoMsg(object: _46.MsgVoteAminoMsg): _46.MsgVote; - toAminoMsg(message: _46.MsgVote): _46.MsgVoteAminoMsg; - fromProtoMsg(message: _46.MsgVoteProtoMsg): _46.MsgVote; - toProto(message: _46.MsgVote): Uint8Array; - toProtoMsg(message: _46.MsgVote): _46.MsgVoteProtoMsg; - }; - MsgVoteResponse: { - typeUrl: string; - encode(_: _46.MsgVoteResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgVoteResponse; - fromPartial(_: Partial<_46.MsgVoteResponse>): _46.MsgVoteResponse; - fromAmino(_: _46.MsgVoteResponseAmino): _46.MsgVoteResponse; - toAmino(_: _46.MsgVoteResponse): _46.MsgVoteResponseAmino; - fromAminoMsg(object: _46.MsgVoteResponseAminoMsg): _46.MsgVoteResponse; - toAminoMsg(message: _46.MsgVoteResponse): _46.MsgVoteResponseAminoMsg; - fromProtoMsg(message: _46.MsgVoteResponseProtoMsg): _46.MsgVoteResponse; - toProto(message: _46.MsgVoteResponse): Uint8Array; - toProtoMsg(message: _46.MsgVoteResponse): _46.MsgVoteResponseProtoMsg; - }; - MsgExec: { - typeUrl: string; - encode(message: _46.MsgExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgExec; - fromPartial(object: Partial<_46.MsgExec>): _46.MsgExec; - fromAmino(object: _46.MsgExecAmino): _46.MsgExec; - toAmino(message: _46.MsgExec): _46.MsgExecAmino; - fromAminoMsg(object: _46.MsgExecAminoMsg): _46.MsgExec; - toAminoMsg(message: _46.MsgExec): _46.MsgExecAminoMsg; - fromProtoMsg(message: _46.MsgExecProtoMsg): _46.MsgExec; - toProto(message: _46.MsgExec): Uint8Array; - toProtoMsg(message: _46.MsgExec): _46.MsgExecProtoMsg; - }; - MsgExecResponse: { - typeUrl: string; - encode(message: _46.MsgExecResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgExecResponse; - fromPartial(object: Partial<_46.MsgExecResponse>): _46.MsgExecResponse; - fromAmino(object: _46.MsgExecResponseAmino): _46.MsgExecResponse; - toAmino(message: _46.MsgExecResponse): _46.MsgExecResponseAmino; - fromAminoMsg(object: _46.MsgExecResponseAminoMsg): _46.MsgExecResponse; - toAminoMsg(message: _46.MsgExecResponse): _46.MsgExecResponseAminoMsg; - fromProtoMsg(message: _46.MsgExecResponseProtoMsg): _46.MsgExecResponse; - toProto(message: _46.MsgExecResponse): Uint8Array; - toProtoMsg(message: _46.MsgExecResponse): _46.MsgExecResponseProtoMsg; - }; - MsgLeaveGroup: { - typeUrl: string; - encode(message: _46.MsgLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgLeaveGroup; - fromPartial(object: Partial<_46.MsgLeaveGroup>): _46.MsgLeaveGroup; - fromAmino(object: _46.MsgLeaveGroupAmino): _46.MsgLeaveGroup; - toAmino(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupAmino; - fromAminoMsg(object: _46.MsgLeaveGroupAminoMsg): _46.MsgLeaveGroup; - toAminoMsg(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupAminoMsg; - fromProtoMsg(message: _46.MsgLeaveGroupProtoMsg): _46.MsgLeaveGroup; - toProto(message: _46.MsgLeaveGroup): Uint8Array; - toProtoMsg(message: _46.MsgLeaveGroup): _46.MsgLeaveGroupProtoMsg; - }; - MsgLeaveGroupResponse: { - typeUrl: string; - encode(_: _46.MsgLeaveGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _46.MsgLeaveGroupResponse; - fromPartial(_: Partial<_46.MsgLeaveGroupResponse>): _46.MsgLeaveGroupResponse; - fromAmino(_: _46.MsgLeaveGroupResponseAmino): _46.MsgLeaveGroupResponse; - toAmino(_: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseAmino; - fromAminoMsg(object: _46.MsgLeaveGroupResponseAminoMsg): _46.MsgLeaveGroupResponse; - toAminoMsg(message: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseAminoMsg; - fromProtoMsg(message: _46.MsgLeaveGroupResponseProtoMsg): _46.MsgLeaveGroupResponse; - toProto(message: _46.MsgLeaveGroupResponse): Uint8Array; - toProtoMsg(message: _46.MsgLeaveGroupResponse): _46.MsgLeaveGroupResponseProtoMsg; - }; - QueryGroupInfoRequest: { - typeUrl: string; - encode(message: _45.QueryGroupInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupInfoRequest; - fromPartial(object: Partial<_45.QueryGroupInfoRequest>): _45.QueryGroupInfoRequest; - fromAmino(object: _45.QueryGroupInfoRequestAmino): _45.QueryGroupInfoRequest; - toAmino(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestAmino; - fromAminoMsg(object: _45.QueryGroupInfoRequestAminoMsg): _45.QueryGroupInfoRequest; - toAminoMsg(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupInfoRequestProtoMsg): _45.QueryGroupInfoRequest; - toProto(message: _45.QueryGroupInfoRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupInfoRequest): _45.QueryGroupInfoRequestProtoMsg; - }; - QueryGroupInfoResponse: { - typeUrl: string; - encode(message: _45.QueryGroupInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupInfoResponse; - fromPartial(object: Partial<_45.QueryGroupInfoResponse>): _45.QueryGroupInfoResponse; - fromAmino(object: _45.QueryGroupInfoResponseAmino): _45.QueryGroupInfoResponse; - toAmino(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseAmino; - fromAminoMsg(object: _45.QueryGroupInfoResponseAminoMsg): _45.QueryGroupInfoResponse; - toAminoMsg(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupInfoResponseProtoMsg): _45.QueryGroupInfoResponse; - toProto(message: _45.QueryGroupInfoResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupInfoResponse): _45.QueryGroupInfoResponseProtoMsg; - }; - QueryGroupPolicyInfoRequest: { - typeUrl: string; - encode(message: _45.QueryGroupPolicyInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPolicyInfoRequest; - fromPartial(object: Partial<_45.QueryGroupPolicyInfoRequest>): _45.QueryGroupPolicyInfoRequest; - fromAmino(object: _45.QueryGroupPolicyInfoRequestAmino): _45.QueryGroupPolicyInfoRequest; - toAmino(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestAmino; - fromAminoMsg(object: _45.QueryGroupPolicyInfoRequestAminoMsg): _45.QueryGroupPolicyInfoRequest; - toAminoMsg(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupPolicyInfoRequestProtoMsg): _45.QueryGroupPolicyInfoRequest; - toProto(message: _45.QueryGroupPolicyInfoRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupPolicyInfoRequest): _45.QueryGroupPolicyInfoRequestProtoMsg; - }; - QueryGroupPolicyInfoResponse: { - typeUrl: string; - encode(message: _45.QueryGroupPolicyInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPolicyInfoResponse; - fromPartial(object: Partial<_45.QueryGroupPolicyInfoResponse>): _45.QueryGroupPolicyInfoResponse; - fromAmino(object: _45.QueryGroupPolicyInfoResponseAmino): _45.QueryGroupPolicyInfoResponse; - toAmino(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseAmino; - fromAminoMsg(object: _45.QueryGroupPolicyInfoResponseAminoMsg): _45.QueryGroupPolicyInfoResponse; - toAminoMsg(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupPolicyInfoResponseProtoMsg): _45.QueryGroupPolicyInfoResponse; - toProto(message: _45.QueryGroupPolicyInfoResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupPolicyInfoResponse): _45.QueryGroupPolicyInfoResponseProtoMsg; - }; - QueryGroupMembersRequest: { - typeUrl: string; - encode(message: _45.QueryGroupMembersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupMembersRequest; - fromPartial(object: Partial<_45.QueryGroupMembersRequest>): _45.QueryGroupMembersRequest; - fromAmino(object: _45.QueryGroupMembersRequestAmino): _45.QueryGroupMembersRequest; - toAmino(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestAmino; - fromAminoMsg(object: _45.QueryGroupMembersRequestAminoMsg): _45.QueryGroupMembersRequest; - toAminoMsg(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupMembersRequestProtoMsg): _45.QueryGroupMembersRequest; - toProto(message: _45.QueryGroupMembersRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupMembersRequest): _45.QueryGroupMembersRequestProtoMsg; - }; - QueryGroupMembersResponse: { - typeUrl: string; - encode(message: _45.QueryGroupMembersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupMembersResponse; - fromPartial(object: Partial<_45.QueryGroupMembersResponse>): _45.QueryGroupMembersResponse; - fromAmino(object: _45.QueryGroupMembersResponseAmino): _45.QueryGroupMembersResponse; - toAmino(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseAmino; - fromAminoMsg(object: _45.QueryGroupMembersResponseAminoMsg): _45.QueryGroupMembersResponse; - toAminoMsg(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupMembersResponseProtoMsg): _45.QueryGroupMembersResponse; - toProto(message: _45.QueryGroupMembersResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupMembersResponse): _45.QueryGroupMembersResponseProtoMsg; - }; - QueryGroupsByAdminRequest: { - typeUrl: string; - encode(message: _45.QueryGroupsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByAdminRequest; - fromPartial(object: Partial<_45.QueryGroupsByAdminRequest>): _45.QueryGroupsByAdminRequest; - fromAmino(object: _45.QueryGroupsByAdminRequestAmino): _45.QueryGroupsByAdminRequest; - toAmino(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestAmino; - fromAminoMsg(object: _45.QueryGroupsByAdminRequestAminoMsg): _45.QueryGroupsByAdminRequest; - toAminoMsg(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupsByAdminRequestProtoMsg): _45.QueryGroupsByAdminRequest; - toProto(message: _45.QueryGroupsByAdminRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupsByAdminRequest): _45.QueryGroupsByAdminRequestProtoMsg; - }; - QueryGroupsByAdminResponse: { - typeUrl: string; - encode(message: _45.QueryGroupsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByAdminResponse; - fromPartial(object: Partial<_45.QueryGroupsByAdminResponse>): _45.QueryGroupsByAdminResponse; - fromAmino(object: _45.QueryGroupsByAdminResponseAmino): _45.QueryGroupsByAdminResponse; - toAmino(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseAmino; - fromAminoMsg(object: _45.QueryGroupsByAdminResponseAminoMsg): _45.QueryGroupsByAdminResponse; - toAminoMsg(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupsByAdminResponseProtoMsg): _45.QueryGroupsByAdminResponse; - toProto(message: _45.QueryGroupsByAdminResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupsByAdminResponse): _45.QueryGroupsByAdminResponseProtoMsg; - }; - QueryGroupPoliciesByGroupRequest: { - typeUrl: string; - encode(message: _45.QueryGroupPoliciesByGroupRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByGroupRequest; - fromPartial(object: Partial<_45.QueryGroupPoliciesByGroupRequest>): _45.QueryGroupPoliciesByGroupRequest; - fromAmino(object: _45.QueryGroupPoliciesByGroupRequestAmino): _45.QueryGroupPoliciesByGroupRequest; - toAmino(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestAmino; - fromAminoMsg(object: _45.QueryGroupPoliciesByGroupRequestAminoMsg): _45.QueryGroupPoliciesByGroupRequest; - toAminoMsg(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupPoliciesByGroupRequestProtoMsg): _45.QueryGroupPoliciesByGroupRequest; - toProto(message: _45.QueryGroupPoliciesByGroupRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupPoliciesByGroupRequest): _45.QueryGroupPoliciesByGroupRequestProtoMsg; - }; - QueryGroupPoliciesByGroupResponse: { - typeUrl: string; - encode(message: _45.QueryGroupPoliciesByGroupResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByGroupResponse; - fromPartial(object: Partial<_45.QueryGroupPoliciesByGroupResponse>): _45.QueryGroupPoliciesByGroupResponse; - fromAmino(object: _45.QueryGroupPoliciesByGroupResponseAmino): _45.QueryGroupPoliciesByGroupResponse; - toAmino(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseAmino; - fromAminoMsg(object: _45.QueryGroupPoliciesByGroupResponseAminoMsg): _45.QueryGroupPoliciesByGroupResponse; - toAminoMsg(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupPoliciesByGroupResponseProtoMsg): _45.QueryGroupPoliciesByGroupResponse; - toProto(message: _45.QueryGroupPoliciesByGroupResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupPoliciesByGroupResponse): _45.QueryGroupPoliciesByGroupResponseProtoMsg; - }; - QueryGroupPoliciesByAdminRequest: { - typeUrl: string; - encode(message: _45.QueryGroupPoliciesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByAdminRequest; - fromPartial(object: Partial<_45.QueryGroupPoliciesByAdminRequest>): _45.QueryGroupPoliciesByAdminRequest; - fromAmino(object: _45.QueryGroupPoliciesByAdminRequestAmino): _45.QueryGroupPoliciesByAdminRequest; - toAmino(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestAmino; - fromAminoMsg(object: _45.QueryGroupPoliciesByAdminRequestAminoMsg): _45.QueryGroupPoliciesByAdminRequest; - toAminoMsg(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupPoliciesByAdminRequestProtoMsg): _45.QueryGroupPoliciesByAdminRequest; - toProto(message: _45.QueryGroupPoliciesByAdminRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupPoliciesByAdminRequest): _45.QueryGroupPoliciesByAdminRequestProtoMsg; - }; - QueryGroupPoliciesByAdminResponse: { - typeUrl: string; - encode(message: _45.QueryGroupPoliciesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupPoliciesByAdminResponse; - fromPartial(object: Partial<_45.QueryGroupPoliciesByAdminResponse>): _45.QueryGroupPoliciesByAdminResponse; - fromAmino(object: _45.QueryGroupPoliciesByAdminResponseAmino): _45.QueryGroupPoliciesByAdminResponse; - toAmino(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseAmino; - fromAminoMsg(object: _45.QueryGroupPoliciesByAdminResponseAminoMsg): _45.QueryGroupPoliciesByAdminResponse; - toAminoMsg(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupPoliciesByAdminResponseProtoMsg): _45.QueryGroupPoliciesByAdminResponse; - toProto(message: _45.QueryGroupPoliciesByAdminResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupPoliciesByAdminResponse): _45.QueryGroupPoliciesByAdminResponseProtoMsg; - }; - QueryProposalRequest: { - typeUrl: string; - encode(message: _45.QueryProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalRequest; - fromPartial(object: Partial<_45.QueryProposalRequest>): _45.QueryProposalRequest; - fromAmino(object: _45.QueryProposalRequestAmino): _45.QueryProposalRequest; - toAmino(message: _45.QueryProposalRequest): _45.QueryProposalRequestAmino; - fromAminoMsg(object: _45.QueryProposalRequestAminoMsg): _45.QueryProposalRequest; - toAminoMsg(message: _45.QueryProposalRequest): _45.QueryProposalRequestAminoMsg; - fromProtoMsg(message: _45.QueryProposalRequestProtoMsg): _45.QueryProposalRequest; - toProto(message: _45.QueryProposalRequest): Uint8Array; - toProtoMsg(message: _45.QueryProposalRequest): _45.QueryProposalRequestProtoMsg; - }; - QueryProposalResponse: { - typeUrl: string; - encode(message: _45.QueryProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalResponse; - fromPartial(object: Partial<_45.QueryProposalResponse>): _45.QueryProposalResponse; - fromAmino(object: _45.QueryProposalResponseAmino): _45.QueryProposalResponse; - toAmino(message: _45.QueryProposalResponse): _45.QueryProposalResponseAmino; - fromAminoMsg(object: _45.QueryProposalResponseAminoMsg): _45.QueryProposalResponse; - toAminoMsg(message: _45.QueryProposalResponse): _45.QueryProposalResponseAminoMsg; - fromProtoMsg(message: _45.QueryProposalResponseProtoMsg): _45.QueryProposalResponse; - toProto(message: _45.QueryProposalResponse): Uint8Array; - toProtoMsg(message: _45.QueryProposalResponse): _45.QueryProposalResponseProtoMsg; - }; - QueryProposalsByGroupPolicyRequest: { - typeUrl: string; - encode(message: _45.QueryProposalsByGroupPolicyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalsByGroupPolicyRequest; - fromPartial(object: Partial<_45.QueryProposalsByGroupPolicyRequest>): _45.QueryProposalsByGroupPolicyRequest; - fromAmino(object: _45.QueryProposalsByGroupPolicyRequestAmino): _45.QueryProposalsByGroupPolicyRequest; - toAmino(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestAmino; - fromAminoMsg(object: _45.QueryProposalsByGroupPolicyRequestAminoMsg): _45.QueryProposalsByGroupPolicyRequest; - toAminoMsg(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestAminoMsg; - fromProtoMsg(message: _45.QueryProposalsByGroupPolicyRequestProtoMsg): _45.QueryProposalsByGroupPolicyRequest; - toProto(message: _45.QueryProposalsByGroupPolicyRequest): Uint8Array; - toProtoMsg(message: _45.QueryProposalsByGroupPolicyRequest): _45.QueryProposalsByGroupPolicyRequestProtoMsg; - }; - QueryProposalsByGroupPolicyResponse: { - typeUrl: string; - encode(message: _45.QueryProposalsByGroupPolicyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryProposalsByGroupPolicyResponse; - fromPartial(object: Partial<_45.QueryProposalsByGroupPolicyResponse>): _45.QueryProposalsByGroupPolicyResponse; - fromAmino(object: _45.QueryProposalsByGroupPolicyResponseAmino): _45.QueryProposalsByGroupPolicyResponse; - toAmino(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseAmino; - fromAminoMsg(object: _45.QueryProposalsByGroupPolicyResponseAminoMsg): _45.QueryProposalsByGroupPolicyResponse; - toAminoMsg(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseAminoMsg; - fromProtoMsg(message: _45.QueryProposalsByGroupPolicyResponseProtoMsg): _45.QueryProposalsByGroupPolicyResponse; - toProto(message: _45.QueryProposalsByGroupPolicyResponse): Uint8Array; - toProtoMsg(message: _45.QueryProposalsByGroupPolicyResponse): _45.QueryProposalsByGroupPolicyResponseProtoMsg; - }; - QueryVoteByProposalVoterRequest: { - typeUrl: string; - encode(message: _45.QueryVoteByProposalVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVoteByProposalVoterRequest; - fromPartial(object: Partial<_45.QueryVoteByProposalVoterRequest>): _45.QueryVoteByProposalVoterRequest; - fromAmino(object: _45.QueryVoteByProposalVoterRequestAmino): _45.QueryVoteByProposalVoterRequest; - toAmino(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestAmino; - fromAminoMsg(object: _45.QueryVoteByProposalVoterRequestAminoMsg): _45.QueryVoteByProposalVoterRequest; - toAminoMsg(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestAminoMsg; - fromProtoMsg(message: _45.QueryVoteByProposalVoterRequestProtoMsg): _45.QueryVoteByProposalVoterRequest; - toProto(message: _45.QueryVoteByProposalVoterRequest): Uint8Array; - toProtoMsg(message: _45.QueryVoteByProposalVoterRequest): _45.QueryVoteByProposalVoterRequestProtoMsg; - }; - QueryVoteByProposalVoterResponse: { - typeUrl: string; - encode(message: _45.QueryVoteByProposalVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVoteByProposalVoterResponse; - fromPartial(object: Partial<_45.QueryVoteByProposalVoterResponse>): _45.QueryVoteByProposalVoterResponse; - fromAmino(object: _45.QueryVoteByProposalVoterResponseAmino): _45.QueryVoteByProposalVoterResponse; - toAmino(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseAmino; - fromAminoMsg(object: _45.QueryVoteByProposalVoterResponseAminoMsg): _45.QueryVoteByProposalVoterResponse; - toAminoMsg(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseAminoMsg; - fromProtoMsg(message: _45.QueryVoteByProposalVoterResponseProtoMsg): _45.QueryVoteByProposalVoterResponse; - toProto(message: _45.QueryVoteByProposalVoterResponse): Uint8Array; - toProtoMsg(message: _45.QueryVoteByProposalVoterResponse): _45.QueryVoteByProposalVoterResponseProtoMsg; - }; - QueryVotesByProposalRequest: { - typeUrl: string; - encode(message: _45.QueryVotesByProposalRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByProposalRequest; - fromPartial(object: Partial<_45.QueryVotesByProposalRequest>): _45.QueryVotesByProposalRequest; - fromAmino(object: _45.QueryVotesByProposalRequestAmino): _45.QueryVotesByProposalRequest; - toAmino(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestAmino; - fromAminoMsg(object: _45.QueryVotesByProposalRequestAminoMsg): _45.QueryVotesByProposalRequest; - toAminoMsg(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestAminoMsg; - fromProtoMsg(message: _45.QueryVotesByProposalRequestProtoMsg): _45.QueryVotesByProposalRequest; - toProto(message: _45.QueryVotesByProposalRequest): Uint8Array; - toProtoMsg(message: _45.QueryVotesByProposalRequest): _45.QueryVotesByProposalRequestProtoMsg; - }; - QueryVotesByProposalResponse: { - typeUrl: string; - encode(message: _45.QueryVotesByProposalResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByProposalResponse; - fromPartial(object: Partial<_45.QueryVotesByProposalResponse>): _45.QueryVotesByProposalResponse; - fromAmino(object: _45.QueryVotesByProposalResponseAmino): _45.QueryVotesByProposalResponse; - toAmino(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseAmino; - fromAminoMsg(object: _45.QueryVotesByProposalResponseAminoMsg): _45.QueryVotesByProposalResponse; - toAminoMsg(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseAminoMsg; - fromProtoMsg(message: _45.QueryVotesByProposalResponseProtoMsg): _45.QueryVotesByProposalResponse; - toProto(message: _45.QueryVotesByProposalResponse): Uint8Array; - toProtoMsg(message: _45.QueryVotesByProposalResponse): _45.QueryVotesByProposalResponseProtoMsg; - }; - QueryVotesByVoterRequest: { - typeUrl: string; - encode(message: _45.QueryVotesByVoterRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByVoterRequest; - fromPartial(object: Partial<_45.QueryVotesByVoterRequest>): _45.QueryVotesByVoterRequest; - fromAmino(object: _45.QueryVotesByVoterRequestAmino): _45.QueryVotesByVoterRequest; - toAmino(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestAmino; - fromAminoMsg(object: _45.QueryVotesByVoterRequestAminoMsg): _45.QueryVotesByVoterRequest; - toAminoMsg(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestAminoMsg; - fromProtoMsg(message: _45.QueryVotesByVoterRequestProtoMsg): _45.QueryVotesByVoterRequest; - toProto(message: _45.QueryVotesByVoterRequest): Uint8Array; - toProtoMsg(message: _45.QueryVotesByVoterRequest): _45.QueryVotesByVoterRequestProtoMsg; - }; - QueryVotesByVoterResponse: { - typeUrl: string; - encode(message: _45.QueryVotesByVoterResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryVotesByVoterResponse; - fromPartial(object: Partial<_45.QueryVotesByVoterResponse>): _45.QueryVotesByVoterResponse; - fromAmino(object: _45.QueryVotesByVoterResponseAmino): _45.QueryVotesByVoterResponse; - toAmino(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseAmino; - fromAminoMsg(object: _45.QueryVotesByVoterResponseAminoMsg): _45.QueryVotesByVoterResponse; - toAminoMsg(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseAminoMsg; - fromProtoMsg(message: _45.QueryVotesByVoterResponseProtoMsg): _45.QueryVotesByVoterResponse; - toProto(message: _45.QueryVotesByVoterResponse): Uint8Array; - toProtoMsg(message: _45.QueryVotesByVoterResponse): _45.QueryVotesByVoterResponseProtoMsg; - }; - QueryGroupsByMemberRequest: { - typeUrl: string; - encode(message: _45.QueryGroupsByMemberRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByMemberRequest; - fromPartial(object: Partial<_45.QueryGroupsByMemberRequest>): _45.QueryGroupsByMemberRequest; - fromAmino(object: _45.QueryGroupsByMemberRequestAmino): _45.QueryGroupsByMemberRequest; - toAmino(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestAmino; - fromAminoMsg(object: _45.QueryGroupsByMemberRequestAminoMsg): _45.QueryGroupsByMemberRequest; - toAminoMsg(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestAminoMsg; - fromProtoMsg(message: _45.QueryGroupsByMemberRequestProtoMsg): _45.QueryGroupsByMemberRequest; - toProto(message: _45.QueryGroupsByMemberRequest): Uint8Array; - toProtoMsg(message: _45.QueryGroupsByMemberRequest): _45.QueryGroupsByMemberRequestProtoMsg; - }; - QueryGroupsByMemberResponse: { - typeUrl: string; - encode(message: _45.QueryGroupsByMemberResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryGroupsByMemberResponse; - fromPartial(object: Partial<_45.QueryGroupsByMemberResponse>): _45.QueryGroupsByMemberResponse; - fromAmino(object: _45.QueryGroupsByMemberResponseAmino): _45.QueryGroupsByMemberResponse; - toAmino(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseAmino; - fromAminoMsg(object: _45.QueryGroupsByMemberResponseAminoMsg): _45.QueryGroupsByMemberResponse; - toAminoMsg(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseAminoMsg; - fromProtoMsg(message: _45.QueryGroupsByMemberResponseProtoMsg): _45.QueryGroupsByMemberResponse; - toProto(message: _45.QueryGroupsByMemberResponse): Uint8Array; - toProtoMsg(message: _45.QueryGroupsByMemberResponse): _45.QueryGroupsByMemberResponseProtoMsg; - }; - QueryTallyResultRequest: { - typeUrl: string; - encode(message: _45.QueryTallyResultRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryTallyResultRequest; - fromPartial(object: Partial<_45.QueryTallyResultRequest>): _45.QueryTallyResultRequest; - fromAmino(object: _45.QueryTallyResultRequestAmino): _45.QueryTallyResultRequest; - toAmino(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestAmino; - fromAminoMsg(object: _45.QueryTallyResultRequestAminoMsg): _45.QueryTallyResultRequest; - toAminoMsg(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: _45.QueryTallyResultRequestProtoMsg): _45.QueryTallyResultRequest; - toProto(message: _45.QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: _45.QueryTallyResultRequest): _45.QueryTallyResultRequestProtoMsg; - }; - QueryTallyResultResponse: { - typeUrl: string; - encode(message: _45.QueryTallyResultResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _45.QueryTallyResultResponse; - fromPartial(object: Partial<_45.QueryTallyResultResponse>): _45.QueryTallyResultResponse; - fromAmino(object: _45.QueryTallyResultResponseAmino): _45.QueryTallyResultResponse; - toAmino(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseAmino; - fromAminoMsg(object: _45.QueryTallyResultResponseAminoMsg): _45.QueryTallyResultResponse; - toAminoMsg(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: _45.QueryTallyResultResponseProtoMsg): _45.QueryTallyResultResponse; - toProto(message: _45.QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: _45.QueryTallyResultResponse): _45.QueryTallyResultResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _44.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _44.GenesisState; - fromPartial(object: Partial<_44.GenesisState>): _44.GenesisState; - fromAmino(object: _44.GenesisStateAmino): _44.GenesisState; - toAmino(message: _44.GenesisState): _44.GenesisStateAmino; - fromAminoMsg(object: _44.GenesisStateAminoMsg): _44.GenesisState; - toAminoMsg(message: _44.GenesisState): _44.GenesisStateAminoMsg; - fromProtoMsg(message: _44.GenesisStateProtoMsg): _44.GenesisState; - toProto(message: _44.GenesisState): Uint8Array; - toProtoMsg(message: _44.GenesisState): _44.GenesisStateProtoMsg; - }; - EventCreateGroup: { - typeUrl: string; - encode(message: _43.EventCreateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventCreateGroup; - fromPartial(object: Partial<_43.EventCreateGroup>): _43.EventCreateGroup; - fromAmino(object: _43.EventCreateGroupAmino): _43.EventCreateGroup; - toAmino(message: _43.EventCreateGroup): _43.EventCreateGroupAmino; - fromAminoMsg(object: _43.EventCreateGroupAminoMsg): _43.EventCreateGroup; - toAminoMsg(message: _43.EventCreateGroup): _43.EventCreateGroupAminoMsg; - fromProtoMsg(message: _43.EventCreateGroupProtoMsg): _43.EventCreateGroup; - toProto(message: _43.EventCreateGroup): Uint8Array; - toProtoMsg(message: _43.EventCreateGroup): _43.EventCreateGroupProtoMsg; - }; - EventUpdateGroup: { - typeUrl: string; - encode(message: _43.EventUpdateGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventUpdateGroup; - fromPartial(object: Partial<_43.EventUpdateGroup>): _43.EventUpdateGroup; - fromAmino(object: _43.EventUpdateGroupAmino): _43.EventUpdateGroup; - toAmino(message: _43.EventUpdateGroup): _43.EventUpdateGroupAmino; - fromAminoMsg(object: _43.EventUpdateGroupAminoMsg): _43.EventUpdateGroup; - toAminoMsg(message: _43.EventUpdateGroup): _43.EventUpdateGroupAminoMsg; - fromProtoMsg(message: _43.EventUpdateGroupProtoMsg): _43.EventUpdateGroup; - toProto(message: _43.EventUpdateGroup): Uint8Array; - toProtoMsg(message: _43.EventUpdateGroup): _43.EventUpdateGroupProtoMsg; - }; - EventCreateGroupPolicy: { - typeUrl: string; - encode(message: _43.EventCreateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventCreateGroupPolicy; - fromPartial(object: Partial<_43.EventCreateGroupPolicy>): _43.EventCreateGroupPolicy; - fromAmino(object: _43.EventCreateGroupPolicyAmino): _43.EventCreateGroupPolicy; - toAmino(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyAmino; - fromAminoMsg(object: _43.EventCreateGroupPolicyAminoMsg): _43.EventCreateGroupPolicy; - toAminoMsg(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyAminoMsg; - fromProtoMsg(message: _43.EventCreateGroupPolicyProtoMsg): _43.EventCreateGroupPolicy; - toProto(message: _43.EventCreateGroupPolicy): Uint8Array; - toProtoMsg(message: _43.EventCreateGroupPolicy): _43.EventCreateGroupPolicyProtoMsg; - }; - EventUpdateGroupPolicy: { - typeUrl: string; - encode(message: _43.EventUpdateGroupPolicy, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventUpdateGroupPolicy; - fromPartial(object: Partial<_43.EventUpdateGroupPolicy>): _43.EventUpdateGroupPolicy; - fromAmino(object: _43.EventUpdateGroupPolicyAmino): _43.EventUpdateGroupPolicy; - toAmino(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyAmino; - fromAminoMsg(object: _43.EventUpdateGroupPolicyAminoMsg): _43.EventUpdateGroupPolicy; - toAminoMsg(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyAminoMsg; - fromProtoMsg(message: _43.EventUpdateGroupPolicyProtoMsg): _43.EventUpdateGroupPolicy; - toProto(message: _43.EventUpdateGroupPolicy): Uint8Array; - toProtoMsg(message: _43.EventUpdateGroupPolicy): _43.EventUpdateGroupPolicyProtoMsg; - }; - EventSubmitProposal: { - typeUrl: string; - encode(message: _43.EventSubmitProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventSubmitProposal; - fromPartial(object: Partial<_43.EventSubmitProposal>): _43.EventSubmitProposal; - fromAmino(object: _43.EventSubmitProposalAmino): _43.EventSubmitProposal; - toAmino(message: _43.EventSubmitProposal): _43.EventSubmitProposalAmino; - fromAminoMsg(object: _43.EventSubmitProposalAminoMsg): _43.EventSubmitProposal; - toAminoMsg(message: _43.EventSubmitProposal): _43.EventSubmitProposalAminoMsg; - fromProtoMsg(message: _43.EventSubmitProposalProtoMsg): _43.EventSubmitProposal; - toProto(message: _43.EventSubmitProposal): Uint8Array; - toProtoMsg(message: _43.EventSubmitProposal): _43.EventSubmitProposalProtoMsg; - }; - EventWithdrawProposal: { - typeUrl: string; - encode(message: _43.EventWithdrawProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventWithdrawProposal; - fromPartial(object: Partial<_43.EventWithdrawProposal>): _43.EventWithdrawProposal; - fromAmino(object: _43.EventWithdrawProposalAmino): _43.EventWithdrawProposal; - toAmino(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalAmino; - fromAminoMsg(object: _43.EventWithdrawProposalAminoMsg): _43.EventWithdrawProposal; - toAminoMsg(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalAminoMsg; - fromProtoMsg(message: _43.EventWithdrawProposalProtoMsg): _43.EventWithdrawProposal; - toProto(message: _43.EventWithdrawProposal): Uint8Array; - toProtoMsg(message: _43.EventWithdrawProposal): _43.EventWithdrawProposalProtoMsg; - }; - EventVote: { - typeUrl: string; - encode(message: _43.EventVote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventVote; - fromPartial(object: Partial<_43.EventVote>): _43.EventVote; - fromAmino(object: _43.EventVoteAmino): _43.EventVote; - toAmino(message: _43.EventVote): _43.EventVoteAmino; - fromAminoMsg(object: _43.EventVoteAminoMsg): _43.EventVote; - toAminoMsg(message: _43.EventVote): _43.EventVoteAminoMsg; - fromProtoMsg(message: _43.EventVoteProtoMsg): _43.EventVote; - toProto(message: _43.EventVote): Uint8Array; - toProtoMsg(message: _43.EventVote): _43.EventVoteProtoMsg; - }; - EventExec: { - typeUrl: string; - encode(message: _43.EventExec, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventExec; - fromPartial(object: Partial<_43.EventExec>): _43.EventExec; - fromAmino(object: _43.EventExecAmino): _43.EventExec; - toAmino(message: _43.EventExec): _43.EventExecAmino; - fromAminoMsg(object: _43.EventExecAminoMsg): _43.EventExec; - toAminoMsg(message: _43.EventExec): _43.EventExecAminoMsg; - fromProtoMsg(message: _43.EventExecProtoMsg): _43.EventExec; - toProto(message: _43.EventExec): Uint8Array; - toProtoMsg(message: _43.EventExec): _43.EventExecProtoMsg; - }; - EventLeaveGroup: { - typeUrl: string; - encode(message: _43.EventLeaveGroup, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _43.EventLeaveGroup; - fromPartial(object: Partial<_43.EventLeaveGroup>): _43.EventLeaveGroup; - fromAmino(object: _43.EventLeaveGroupAmino): _43.EventLeaveGroup; - toAmino(message: _43.EventLeaveGroup): _43.EventLeaveGroupAmino; - fromAminoMsg(object: _43.EventLeaveGroupAminoMsg): _43.EventLeaveGroup; - toAminoMsg(message: _43.EventLeaveGroup): _43.EventLeaveGroupAminoMsg; - fromProtoMsg(message: _43.EventLeaveGroupProtoMsg): _43.EventLeaveGroup; - toProto(message: _43.EventLeaveGroup): Uint8Array; - toProtoMsg(message: _43.EventLeaveGroup): _43.EventLeaveGroupProtoMsg; - }; - }; - } - namespace mint { - const v1beta1: { - QueryClientImpl: typeof _162.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request?: _50.QueryParamsRequest): Promise<_50.QueryParamsResponse>; - inflation(request?: _50.QueryInflationRequest): Promise<_50.QueryInflationResponse>; - annualProvisions(request?: _50.QueryAnnualProvisionsRequest): Promise<_50.QueryAnnualProvisionsResponse>; - }; - LCDQueryClient: typeof _148.LCDQueryClient; - QueryParamsRequest: { - typeUrl: string; - encode(_: _50.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryParamsRequest; - fromPartial(_: Partial<_50.QueryParamsRequest>): _50.QueryParamsRequest; - fromAmino(_: _50.QueryParamsRequestAmino): _50.QueryParamsRequest; - toAmino(_: _50.QueryParamsRequest): _50.QueryParamsRequestAmino; - fromAminoMsg(object: _50.QueryParamsRequestAminoMsg): _50.QueryParamsRequest; - toAminoMsg(message: _50.QueryParamsRequest): _50.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _50.QueryParamsRequestProtoMsg): _50.QueryParamsRequest; - toProto(message: _50.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _50.QueryParamsRequest): _50.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _50.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryParamsResponse; - fromPartial(object: Partial<_50.QueryParamsResponse>): _50.QueryParamsResponse; - fromAmino(object: _50.QueryParamsResponseAmino): _50.QueryParamsResponse; - toAmino(message: _50.QueryParamsResponse): _50.QueryParamsResponseAmino; - fromAminoMsg(object: _50.QueryParamsResponseAminoMsg): _50.QueryParamsResponse; - toAminoMsg(message: _50.QueryParamsResponse): _50.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _50.QueryParamsResponseProtoMsg): _50.QueryParamsResponse; - toProto(message: _50.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _50.QueryParamsResponse): _50.QueryParamsResponseProtoMsg; - }; - QueryInflationRequest: { - typeUrl: string; - encode(_: _50.QueryInflationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryInflationRequest; - fromPartial(_: Partial<_50.QueryInflationRequest>): _50.QueryInflationRequest; - fromAmino(_: _50.QueryInflationRequestAmino): _50.QueryInflationRequest; - toAmino(_: _50.QueryInflationRequest): _50.QueryInflationRequestAmino; - fromAminoMsg(object: _50.QueryInflationRequestAminoMsg): _50.QueryInflationRequest; - toAminoMsg(message: _50.QueryInflationRequest): _50.QueryInflationRequestAminoMsg; - fromProtoMsg(message: _50.QueryInflationRequestProtoMsg): _50.QueryInflationRequest; - toProto(message: _50.QueryInflationRequest): Uint8Array; - toProtoMsg(message: _50.QueryInflationRequest): _50.QueryInflationRequestProtoMsg; - }; - QueryInflationResponse: { - typeUrl: string; - encode(message: _50.QueryInflationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryInflationResponse; - fromPartial(object: Partial<_50.QueryInflationResponse>): _50.QueryInflationResponse; - fromAmino(object: _50.QueryInflationResponseAmino): _50.QueryInflationResponse; - toAmino(message: _50.QueryInflationResponse): _50.QueryInflationResponseAmino; - fromAminoMsg(object: _50.QueryInflationResponseAminoMsg): _50.QueryInflationResponse; - toAminoMsg(message: _50.QueryInflationResponse): _50.QueryInflationResponseAminoMsg; - fromProtoMsg(message: _50.QueryInflationResponseProtoMsg): _50.QueryInflationResponse; - toProto(message: _50.QueryInflationResponse): Uint8Array; - toProtoMsg(message: _50.QueryInflationResponse): _50.QueryInflationResponseProtoMsg; - }; - QueryAnnualProvisionsRequest: { - typeUrl: string; - encode(_: _50.QueryAnnualProvisionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryAnnualProvisionsRequest; - fromPartial(_: Partial<_50.QueryAnnualProvisionsRequest>): _50.QueryAnnualProvisionsRequest; - fromAmino(_: _50.QueryAnnualProvisionsRequestAmino): _50.QueryAnnualProvisionsRequest; - toAmino(_: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestAmino; - fromAminoMsg(object: _50.QueryAnnualProvisionsRequestAminoMsg): _50.QueryAnnualProvisionsRequest; - toAminoMsg(message: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestAminoMsg; - fromProtoMsg(message: _50.QueryAnnualProvisionsRequestProtoMsg): _50.QueryAnnualProvisionsRequest; - toProto(message: _50.QueryAnnualProvisionsRequest): Uint8Array; - toProtoMsg(message: _50.QueryAnnualProvisionsRequest): _50.QueryAnnualProvisionsRequestProtoMsg; - }; - QueryAnnualProvisionsResponse: { - typeUrl: string; - encode(message: _50.QueryAnnualProvisionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _50.QueryAnnualProvisionsResponse; - fromPartial(object: Partial<_50.QueryAnnualProvisionsResponse>): _50.QueryAnnualProvisionsResponse; - fromAmino(object: _50.QueryAnnualProvisionsResponseAmino): _50.QueryAnnualProvisionsResponse; - toAmino(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseAmino; - fromAminoMsg(object: _50.QueryAnnualProvisionsResponseAminoMsg): _50.QueryAnnualProvisionsResponse; - toAminoMsg(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseAminoMsg; - fromProtoMsg(message: _50.QueryAnnualProvisionsResponseProtoMsg): _50.QueryAnnualProvisionsResponse; - toProto(message: _50.QueryAnnualProvisionsResponse): Uint8Array; - toProtoMsg(message: _50.QueryAnnualProvisionsResponse): _50.QueryAnnualProvisionsResponseProtoMsg; - }; - Minter: { - typeUrl: string; - encode(message: _49.Minter, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _49.Minter; - fromPartial(object: Partial<_49.Minter>): _49.Minter; - fromAmino(object: _49.MinterAmino): _49.Minter; - toAmino(message: _49.Minter): _49.MinterAmino; - fromAminoMsg(object: _49.MinterAminoMsg): _49.Minter; - toAminoMsg(message: _49.Minter): _49.MinterAminoMsg; - fromProtoMsg(message: _49.MinterProtoMsg): _49.Minter; - toProto(message: _49.Minter): Uint8Array; - toProtoMsg(message: _49.Minter): _49.MinterProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _49.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _49.Params; - fromPartial(object: Partial<_49.Params>): _49.Params; - fromAmino(object: _49.ParamsAmino): _49.Params; - toAmino(message: _49.Params): _49.ParamsAmino; - fromAminoMsg(object: _49.ParamsAminoMsg): _49.Params; - toAminoMsg(message: _49.Params): _49.ParamsAminoMsg; - fromProtoMsg(message: _49.ParamsProtoMsg): _49.Params; - toProto(message: _49.Params): Uint8Array; - toProtoMsg(message: _49.Params): _49.ParamsProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _48.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _48.GenesisState; - fromPartial(object: Partial<_48.GenesisState>): _48.GenesisState; - fromAmino(object: _48.GenesisStateAmino): _48.GenesisState; - toAmino(message: _48.GenesisState): _48.GenesisStateAmino; - fromAminoMsg(object: _48.GenesisStateAminoMsg): _48.GenesisState; - toAminoMsg(message: _48.GenesisState): _48.GenesisStateAminoMsg; - fromProtoMsg(message: _48.GenesisStateProtoMsg): _48.GenesisState; - toProto(message: _48.GenesisState): Uint8Array; - toProtoMsg(message: _48.GenesisState): _48.GenesisStateProtoMsg; - }; - }; - } - namespace orm { - namespace module { - const v1alpha1: { - Module: { - typeUrl: string; - encode(_: _51.Module, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _51.Module; - fromPartial(_: Partial<_51.Module>): _51.Module; - fromAmino(_: _51.ModuleAmino): _51.Module; - toAmino(_: _51.Module): _51.ModuleAmino; - fromAminoMsg(object: _51.ModuleAminoMsg): _51.Module; - toAminoMsg(message: _51.Module): _51.ModuleAminoMsg; - fromProtoMsg(message: _51.ModuleProtoMsg): _51.Module; - toProto(message: _51.Module): Uint8Array; - toProtoMsg(message: _51.Module): _51.ModuleProtoMsg; - }; - }; - } - } - namespace params { - const v1beta1: { - QueryClientImpl: typeof _163.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - params(request: _53.QueryParamsRequest): Promise<_53.QueryParamsResponse>; - subspaces(request?: _53.QuerySubspacesRequest): Promise<_53.QuerySubspacesResponse>; - }; - LCDQueryClient: typeof _149.LCDQueryClient; - QueryParamsRequest: { - typeUrl: string; - encode(message: _53.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QueryParamsRequest; - fromPartial(object: Partial<_53.QueryParamsRequest>): _53.QueryParamsRequest; - fromAmino(object: _53.QueryParamsRequestAmino): _53.QueryParamsRequest; - toAmino(message: _53.QueryParamsRequest): _53.QueryParamsRequestAmino; - fromAminoMsg(object: _53.QueryParamsRequestAminoMsg): _53.QueryParamsRequest; - toAminoMsg(message: _53.QueryParamsRequest): _53.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _53.QueryParamsRequestProtoMsg): _53.QueryParamsRequest; - toProto(message: _53.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _53.QueryParamsRequest): _53.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _53.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QueryParamsResponse; - fromPartial(object: Partial<_53.QueryParamsResponse>): _53.QueryParamsResponse; - fromAmino(object: _53.QueryParamsResponseAmino): _53.QueryParamsResponse; - toAmino(message: _53.QueryParamsResponse): _53.QueryParamsResponseAmino; - fromAminoMsg(object: _53.QueryParamsResponseAminoMsg): _53.QueryParamsResponse; - toAminoMsg(message: _53.QueryParamsResponse): _53.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _53.QueryParamsResponseProtoMsg): _53.QueryParamsResponse; - toProto(message: _53.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _53.QueryParamsResponse): _53.QueryParamsResponseProtoMsg; - }; - QuerySubspacesRequest: { - typeUrl: string; - encode(_: _53.QuerySubspacesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QuerySubspacesRequest; - fromPartial(_: Partial<_53.QuerySubspacesRequest>): _53.QuerySubspacesRequest; - fromAmino(_: _53.QuerySubspacesRequestAmino): _53.QuerySubspacesRequest; - toAmino(_: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestAmino; - fromAminoMsg(object: _53.QuerySubspacesRequestAminoMsg): _53.QuerySubspacesRequest; - toAminoMsg(message: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestAminoMsg; - fromProtoMsg(message: _53.QuerySubspacesRequestProtoMsg): _53.QuerySubspacesRequest; - toProto(message: _53.QuerySubspacesRequest): Uint8Array; - toProtoMsg(message: _53.QuerySubspacesRequest): _53.QuerySubspacesRequestProtoMsg; - }; - QuerySubspacesResponse: { - typeUrl: string; - encode(message: _53.QuerySubspacesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.QuerySubspacesResponse; - fromPartial(object: Partial<_53.QuerySubspacesResponse>): _53.QuerySubspacesResponse; - fromAmino(object: _53.QuerySubspacesResponseAmino): _53.QuerySubspacesResponse; - toAmino(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseAmino; - fromAminoMsg(object: _53.QuerySubspacesResponseAminoMsg): _53.QuerySubspacesResponse; - toAminoMsg(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseAminoMsg; - fromProtoMsg(message: _53.QuerySubspacesResponseProtoMsg): _53.QuerySubspacesResponse; - toProto(message: _53.QuerySubspacesResponse): Uint8Array; - toProtoMsg(message: _53.QuerySubspacesResponse): _53.QuerySubspacesResponseProtoMsg; - }; - Subspace: { - typeUrl: string; - encode(message: _53.Subspace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _53.Subspace; - fromPartial(object: Partial<_53.Subspace>): _53.Subspace; - fromAmino(object: _53.SubspaceAmino): _53.Subspace; - toAmino(message: _53.Subspace): _53.SubspaceAmino; - fromAminoMsg(object: _53.SubspaceAminoMsg): _53.Subspace; - toAminoMsg(message: _53.Subspace): _53.SubspaceAminoMsg; - fromProtoMsg(message: _53.SubspaceProtoMsg): _53.Subspace; - toProto(message: _53.Subspace): Uint8Array; - toProtoMsg(message: _53.Subspace): _53.SubspaceProtoMsg; - }; - ParameterChangeProposal: { - typeUrl: string; - encode(message: _52.ParameterChangeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _52.ParameterChangeProposal; - fromPartial(object: Partial<_52.ParameterChangeProposal>): _52.ParameterChangeProposal; - fromAmino(object: _52.ParameterChangeProposalAmino): _52.ParameterChangeProposal; - toAmino(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalAmino; - fromAminoMsg(object: _52.ParameterChangeProposalAminoMsg): _52.ParameterChangeProposal; - toAminoMsg(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalAminoMsg; - fromProtoMsg(message: _52.ParameterChangeProposalProtoMsg): _52.ParameterChangeProposal; - toProto(message: _52.ParameterChangeProposal): Uint8Array; - toProtoMsg(message: _52.ParameterChangeProposal): _52.ParameterChangeProposalProtoMsg; - }; - ParamChange: { - typeUrl: string; - encode(message: _52.ParamChange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _52.ParamChange; - fromPartial(object: Partial<_52.ParamChange>): _52.ParamChange; - fromAmino(object: _52.ParamChangeAmino): _52.ParamChange; - toAmino(message: _52.ParamChange): _52.ParamChangeAmino; - fromAminoMsg(object: _52.ParamChangeAminoMsg): _52.ParamChange; - toAminoMsg(message: _52.ParamChange): _52.ParamChangeAminoMsg; - fromProtoMsg(message: _52.ParamChangeProtoMsg): _52.ParamChange; - toProto(message: _52.ParamChange): Uint8Array; - toProtoMsg(message: _52.ParamChange): _52.ParamChangeProtoMsg; - }; - }; - } - namespace staking { - const v1beta1: { - MsgClientImpl: typeof _174.MsgClientImpl; - QueryClientImpl: typeof _164.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - validators(request: _56.QueryValidatorsRequest): Promise<_56.QueryValidatorsResponse>; - validator(request: _56.QueryValidatorRequest): Promise<_56.QueryValidatorResponse>; - validatorDelegations(request: _56.QueryValidatorDelegationsRequest): Promise<_56.QueryValidatorDelegationsResponse>; - validatorUnbondingDelegations(request: _56.QueryValidatorUnbondingDelegationsRequest): Promise<_56.QueryValidatorUnbondingDelegationsResponse>; - delegation(request: _56.QueryDelegationRequest): Promise<_56.QueryDelegationResponse>; - unbondingDelegation(request: _56.QueryUnbondingDelegationRequest): Promise<_56.QueryUnbondingDelegationResponse>; - delegatorDelegations(request: _56.QueryDelegatorDelegationsRequest): Promise<_56.QueryDelegatorDelegationsResponse>; - delegatorUnbondingDelegations(request: _56.QueryDelegatorUnbondingDelegationsRequest): Promise<_56.QueryDelegatorUnbondingDelegationsResponse>; - redelegations(request: _56.QueryRedelegationsRequest): Promise<_56.QueryRedelegationsResponse>; - delegatorValidators(request: _56.QueryDelegatorValidatorsRequest): Promise<_56.QueryDelegatorValidatorsResponse>; - delegatorValidator(request: _56.QueryDelegatorValidatorRequest): Promise<_56.QueryDelegatorValidatorResponse>; - historicalInfo(request: _56.QueryHistoricalInfoRequest): Promise<_56.QueryHistoricalInfoResponse>; - pool(request?: _56.QueryPoolRequest): Promise<_56.QueryPoolResponse>; - params(request?: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; - }; - LCDQueryClient: typeof _150.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createValidator(value: _58.MsgCreateValidator): { - typeUrl: string; - value: Uint8Array; - }; - editValidator(value: _58.MsgEditValidator): { - typeUrl: string; - value: Uint8Array; - }; - delegate(value: _58.MsgDelegate): { - typeUrl: string; - value: Uint8Array; - }; - beginRedelegate(value: _58.MsgBeginRedelegate): { - typeUrl: string; - value: Uint8Array; - }; - undelegate(value: _58.MsgUndelegate): { - typeUrl: string; - value: Uint8Array; - }; - cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createValidator(value: _58.MsgCreateValidator): { - typeUrl: string; - value: _58.MsgCreateValidator; - }; - editValidator(value: _58.MsgEditValidator): { - typeUrl: string; - value: _58.MsgEditValidator; - }; - delegate(value: _58.MsgDelegate): { - typeUrl: string; - value: _58.MsgDelegate; - }; - beginRedelegate(value: _58.MsgBeginRedelegate): { - typeUrl: string; - value: _58.MsgBeginRedelegate; - }; - undelegate(value: _58.MsgUndelegate): { - typeUrl: string; - value: _58.MsgUndelegate; - }; - cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: _58.MsgCancelUnbondingDelegation; - }; - }; - fromPartial: { - createValidator(value: _58.MsgCreateValidator): { - typeUrl: string; - value: _58.MsgCreateValidator; - }; - editValidator(value: _58.MsgEditValidator): { - typeUrl: string; - value: _58.MsgEditValidator; - }; - delegate(value: _58.MsgDelegate): { - typeUrl: string; - value: _58.MsgDelegate; - }; - beginRedelegate(value: _58.MsgBeginRedelegate): { - typeUrl: string; - value: _58.MsgBeginRedelegate; - }; - undelegate(value: _58.MsgUndelegate): { - typeUrl: string; - value: _58.MsgUndelegate; - }; - cancelUnbondingDelegation(value: _58.MsgCancelUnbondingDelegation): { - typeUrl: string; - value: _58.MsgCancelUnbondingDelegation; - }; - }; - }; - AminoConverter: { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: _58.MsgCreateValidator) => _58.MsgCreateValidatorAmino; - fromAmino: (object: _58.MsgCreateValidatorAmino) => _58.MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: _58.MsgEditValidator) => _58.MsgEditValidatorAmino; - fromAmino: (object: _58.MsgEditValidatorAmino) => _58.MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: _58.MsgDelegate) => _58.MsgDelegateAmino; - fromAmino: (object: _58.MsgDelegateAmino) => _58.MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: _58.MsgBeginRedelegate) => _58.MsgBeginRedelegateAmino; - fromAmino: (object: _58.MsgBeginRedelegateAmino) => _58.MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: _58.MsgUndelegate) => _58.MsgUndelegateAmino; - fromAmino: (object: _58.MsgUndelegateAmino) => _58.MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: _58.MsgCancelUnbondingDelegation) => _58.MsgCancelUnbondingDelegationAmino; - fromAmino: (object: _58.MsgCancelUnbondingDelegationAmino) => _58.MsgCancelUnbondingDelegation; - }; - }; - MsgCreateValidator: { - typeUrl: string; - encode(message: _58.MsgCreateValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCreateValidator; - fromPartial(object: Partial<_58.MsgCreateValidator>): _58.MsgCreateValidator; - fromAmino(object: _58.MsgCreateValidatorAmino): _58.MsgCreateValidator; - toAmino(message: _58.MsgCreateValidator): _58.MsgCreateValidatorAmino; - fromAminoMsg(object: _58.MsgCreateValidatorAminoMsg): _58.MsgCreateValidator; - toAminoMsg(message: _58.MsgCreateValidator): _58.MsgCreateValidatorAminoMsg; - fromProtoMsg(message: _58.MsgCreateValidatorProtoMsg): _58.MsgCreateValidator; - toProto(message: _58.MsgCreateValidator): Uint8Array; - toProtoMsg(message: _58.MsgCreateValidator): _58.MsgCreateValidatorProtoMsg; - }; - MsgCreateValidatorResponse: { - typeUrl: string; - encode(_: _58.MsgCreateValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCreateValidatorResponse; - fromPartial(_: Partial<_58.MsgCreateValidatorResponse>): _58.MsgCreateValidatorResponse; - fromAmino(_: _58.MsgCreateValidatorResponseAmino): _58.MsgCreateValidatorResponse; - toAmino(_: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseAmino; - fromAminoMsg(object: _58.MsgCreateValidatorResponseAminoMsg): _58.MsgCreateValidatorResponse; - toAminoMsg(message: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseAminoMsg; - fromProtoMsg(message: _58.MsgCreateValidatorResponseProtoMsg): _58.MsgCreateValidatorResponse; - toProto(message: _58.MsgCreateValidatorResponse): Uint8Array; - toProtoMsg(message: _58.MsgCreateValidatorResponse): _58.MsgCreateValidatorResponseProtoMsg; - }; - MsgEditValidator: { - typeUrl: string; - encode(message: _58.MsgEditValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgEditValidator; - fromPartial(object: Partial<_58.MsgEditValidator>): _58.MsgEditValidator; - fromAmino(object: _58.MsgEditValidatorAmino): _58.MsgEditValidator; - toAmino(message: _58.MsgEditValidator): _58.MsgEditValidatorAmino; - fromAminoMsg(object: _58.MsgEditValidatorAminoMsg): _58.MsgEditValidator; - toAminoMsg(message: _58.MsgEditValidator): _58.MsgEditValidatorAminoMsg; - fromProtoMsg(message: _58.MsgEditValidatorProtoMsg): _58.MsgEditValidator; - toProto(message: _58.MsgEditValidator): Uint8Array; - toProtoMsg(message: _58.MsgEditValidator): _58.MsgEditValidatorProtoMsg; - }; - MsgEditValidatorResponse: { - typeUrl: string; - encode(_: _58.MsgEditValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgEditValidatorResponse; - fromPartial(_: Partial<_58.MsgEditValidatorResponse>): _58.MsgEditValidatorResponse; - fromAmino(_: _58.MsgEditValidatorResponseAmino): _58.MsgEditValidatorResponse; - toAmino(_: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseAmino; - fromAminoMsg(object: _58.MsgEditValidatorResponseAminoMsg): _58.MsgEditValidatorResponse; - toAminoMsg(message: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseAminoMsg; - fromProtoMsg(message: _58.MsgEditValidatorResponseProtoMsg): _58.MsgEditValidatorResponse; - toProto(message: _58.MsgEditValidatorResponse): Uint8Array; - toProtoMsg(message: _58.MsgEditValidatorResponse): _58.MsgEditValidatorResponseProtoMsg; - }; - MsgDelegate: { - typeUrl: string; - encode(message: _58.MsgDelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgDelegate; - fromPartial(object: Partial<_58.MsgDelegate>): _58.MsgDelegate; - fromAmino(object: _58.MsgDelegateAmino): _58.MsgDelegate; - toAmino(message: _58.MsgDelegate): _58.MsgDelegateAmino; - fromAminoMsg(object: _58.MsgDelegateAminoMsg): _58.MsgDelegate; - toAminoMsg(message: _58.MsgDelegate): _58.MsgDelegateAminoMsg; - fromProtoMsg(message: _58.MsgDelegateProtoMsg): _58.MsgDelegate; - toProto(message: _58.MsgDelegate): Uint8Array; - toProtoMsg(message: _58.MsgDelegate): _58.MsgDelegateProtoMsg; - }; - MsgDelegateResponse: { - typeUrl: string; - encode(_: _58.MsgDelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgDelegateResponse; - fromPartial(_: Partial<_58.MsgDelegateResponse>): _58.MsgDelegateResponse; - fromAmino(_: _58.MsgDelegateResponseAmino): _58.MsgDelegateResponse; - toAmino(_: _58.MsgDelegateResponse): _58.MsgDelegateResponseAmino; - fromAminoMsg(object: _58.MsgDelegateResponseAminoMsg): _58.MsgDelegateResponse; - toAminoMsg(message: _58.MsgDelegateResponse): _58.MsgDelegateResponseAminoMsg; - fromProtoMsg(message: _58.MsgDelegateResponseProtoMsg): _58.MsgDelegateResponse; - toProto(message: _58.MsgDelegateResponse): Uint8Array; - toProtoMsg(message: _58.MsgDelegateResponse): _58.MsgDelegateResponseProtoMsg; - }; - MsgBeginRedelegate: { - typeUrl: string; - encode(message: _58.MsgBeginRedelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgBeginRedelegate; - fromPartial(object: Partial<_58.MsgBeginRedelegate>): _58.MsgBeginRedelegate; - fromAmino(object: _58.MsgBeginRedelegateAmino): _58.MsgBeginRedelegate; - toAmino(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateAmino; - fromAminoMsg(object: _58.MsgBeginRedelegateAminoMsg): _58.MsgBeginRedelegate; - toAminoMsg(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateAminoMsg; - fromProtoMsg(message: _58.MsgBeginRedelegateProtoMsg): _58.MsgBeginRedelegate; - toProto(message: _58.MsgBeginRedelegate): Uint8Array; - toProtoMsg(message: _58.MsgBeginRedelegate): _58.MsgBeginRedelegateProtoMsg; - }; - MsgBeginRedelegateResponse: { - typeUrl: string; - encode(message: _58.MsgBeginRedelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgBeginRedelegateResponse; - fromPartial(object: Partial<_58.MsgBeginRedelegateResponse>): _58.MsgBeginRedelegateResponse; - fromAmino(object: _58.MsgBeginRedelegateResponseAmino): _58.MsgBeginRedelegateResponse; - toAmino(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseAmino; - fromAminoMsg(object: _58.MsgBeginRedelegateResponseAminoMsg): _58.MsgBeginRedelegateResponse; - toAminoMsg(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseAminoMsg; - fromProtoMsg(message: _58.MsgBeginRedelegateResponseProtoMsg): _58.MsgBeginRedelegateResponse; - toProto(message: _58.MsgBeginRedelegateResponse): Uint8Array; - toProtoMsg(message: _58.MsgBeginRedelegateResponse): _58.MsgBeginRedelegateResponseProtoMsg; - }; - MsgUndelegate: { - typeUrl: string; - encode(message: _58.MsgUndelegate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgUndelegate; - fromPartial(object: Partial<_58.MsgUndelegate>): _58.MsgUndelegate; - fromAmino(object: _58.MsgUndelegateAmino): _58.MsgUndelegate; - toAmino(message: _58.MsgUndelegate): _58.MsgUndelegateAmino; - fromAminoMsg(object: _58.MsgUndelegateAminoMsg): _58.MsgUndelegate; - toAminoMsg(message: _58.MsgUndelegate): _58.MsgUndelegateAminoMsg; - fromProtoMsg(message: _58.MsgUndelegateProtoMsg): _58.MsgUndelegate; - toProto(message: _58.MsgUndelegate): Uint8Array; - toProtoMsg(message: _58.MsgUndelegate): _58.MsgUndelegateProtoMsg; - }; - MsgUndelegateResponse: { - typeUrl: string; - encode(message: _58.MsgUndelegateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgUndelegateResponse; - fromPartial(object: Partial<_58.MsgUndelegateResponse>): _58.MsgUndelegateResponse; - fromAmino(object: _58.MsgUndelegateResponseAmino): _58.MsgUndelegateResponse; - toAmino(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseAmino; - fromAminoMsg(object: _58.MsgUndelegateResponseAminoMsg): _58.MsgUndelegateResponse; - toAminoMsg(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseAminoMsg; - fromProtoMsg(message: _58.MsgUndelegateResponseProtoMsg): _58.MsgUndelegateResponse; - toProto(message: _58.MsgUndelegateResponse): Uint8Array; - toProtoMsg(message: _58.MsgUndelegateResponse): _58.MsgUndelegateResponseProtoMsg; - }; - MsgCancelUnbondingDelegation: { - typeUrl: string; - encode(message: _58.MsgCancelUnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCancelUnbondingDelegation; - fromPartial(object: Partial<_58.MsgCancelUnbondingDelegation>): _58.MsgCancelUnbondingDelegation; - fromAmino(object: _58.MsgCancelUnbondingDelegationAmino): _58.MsgCancelUnbondingDelegation; - toAmino(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationAmino; - fromAminoMsg(object: _58.MsgCancelUnbondingDelegationAminoMsg): _58.MsgCancelUnbondingDelegation; - toAminoMsg(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationAminoMsg; - fromProtoMsg(message: _58.MsgCancelUnbondingDelegationProtoMsg): _58.MsgCancelUnbondingDelegation; - toProto(message: _58.MsgCancelUnbondingDelegation): Uint8Array; - toProtoMsg(message: _58.MsgCancelUnbondingDelegation): _58.MsgCancelUnbondingDelegationProtoMsg; - }; - MsgCancelUnbondingDelegationResponse: { - typeUrl: string; - encode(_: _58.MsgCancelUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _58.MsgCancelUnbondingDelegationResponse; - fromPartial(_: Partial<_58.MsgCancelUnbondingDelegationResponse>): _58.MsgCancelUnbondingDelegationResponse; - fromAmino(_: _58.MsgCancelUnbondingDelegationResponseAmino): _58.MsgCancelUnbondingDelegationResponse; - toAmino(_: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseAmino; - fromAminoMsg(object: _58.MsgCancelUnbondingDelegationResponseAminoMsg): _58.MsgCancelUnbondingDelegationResponse; - toAminoMsg(message: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: _58.MsgCancelUnbondingDelegationResponseProtoMsg): _58.MsgCancelUnbondingDelegationResponse; - toProto(message: _58.MsgCancelUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: _58.MsgCancelUnbondingDelegationResponse): _58.MsgCancelUnbondingDelegationResponseProtoMsg; - }; - Cosmos_cryptoPubKey_InterfaceDecoder: (input: Uint8Array | import("..").BinaryReader) => import("../google/protobuf/any").Any; - Cosmos_cryptoPubKey_FromAmino: (content: import("../google/protobuf/any").AnyAmino) => import("../google/protobuf/any").Any; - Cosmos_cryptoPubKey_ToAmino: (content: import("../google/protobuf/any").Any) => import("@cosmjs/amino").Pubkey; - bondStatusFromJSON(object: any): _57.BondStatus; - bondStatusToJSON(object: _57.BondStatus): string; - BondStatus: typeof _57.BondStatus; - BondStatusSDKType: typeof _57.BondStatus; - BondStatusAmino: typeof _57.BondStatus; - HistoricalInfo: { - typeUrl: string; - encode(message: _57.HistoricalInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.HistoricalInfo; - fromPartial(object: Partial<_57.HistoricalInfo>): _57.HistoricalInfo; - fromAmino(object: _57.HistoricalInfoAmino): _57.HistoricalInfo; - toAmino(message: _57.HistoricalInfo): _57.HistoricalInfoAmino; - fromAminoMsg(object: _57.HistoricalInfoAminoMsg): _57.HistoricalInfo; - toAminoMsg(message: _57.HistoricalInfo): _57.HistoricalInfoAminoMsg; - fromProtoMsg(message: _57.HistoricalInfoProtoMsg): _57.HistoricalInfo; - toProto(message: _57.HistoricalInfo): Uint8Array; - toProtoMsg(message: _57.HistoricalInfo): _57.HistoricalInfoProtoMsg; - }; - CommissionRates: { - typeUrl: string; - encode(message: _57.CommissionRates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.CommissionRates; - fromPartial(object: Partial<_57.CommissionRates>): _57.CommissionRates; - fromAmino(object: _57.CommissionRatesAmino): _57.CommissionRates; - toAmino(message: _57.CommissionRates): _57.CommissionRatesAmino; - fromAminoMsg(object: _57.CommissionRatesAminoMsg): _57.CommissionRates; - toAminoMsg(message: _57.CommissionRates): _57.CommissionRatesAminoMsg; - fromProtoMsg(message: _57.CommissionRatesProtoMsg): _57.CommissionRates; - toProto(message: _57.CommissionRates): Uint8Array; - toProtoMsg(message: _57.CommissionRates): _57.CommissionRatesProtoMsg; - }; - Commission: { - typeUrl: string; - encode(message: _57.Commission, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Commission; - fromPartial(object: Partial<_57.Commission>): _57.Commission; - fromAmino(object: _57.CommissionAmino): _57.Commission; - toAmino(message: _57.Commission): _57.CommissionAmino; - fromAminoMsg(object: _57.CommissionAminoMsg): _57.Commission; - toAminoMsg(message: _57.Commission): _57.CommissionAminoMsg; - fromProtoMsg(message: _57.CommissionProtoMsg): _57.Commission; - toProto(message: _57.Commission): Uint8Array; - toProtoMsg(message: _57.Commission): _57.CommissionProtoMsg; - }; - Description: { - typeUrl: string; - encode(message: _57.Description, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Description; - fromPartial(object: Partial<_57.Description>): _57.Description; - fromAmino(object: _57.DescriptionAmino): _57.Description; - toAmino(message: _57.Description): _57.DescriptionAmino; - fromAminoMsg(object: _57.DescriptionAminoMsg): _57.Description; - toAminoMsg(message: _57.Description): _57.DescriptionAminoMsg; - fromProtoMsg(message: _57.DescriptionProtoMsg): _57.Description; - toProto(message: _57.Description): Uint8Array; - toProtoMsg(message: _57.Description): _57.DescriptionProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _57.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Validator; - fromPartial(object: Partial<_57.Validator>): _57.Validator; - fromAmino(object: _57.ValidatorAmino): _57.Validator; - toAmino(message: _57.Validator): _57.ValidatorAmino; - fromAminoMsg(object: _57.ValidatorAminoMsg): _57.Validator; - toAminoMsg(message: _57.Validator): _57.ValidatorAminoMsg; - fromProtoMsg(message: _57.ValidatorProtoMsg): _57.Validator; - toProto(message: _57.Validator): Uint8Array; - toProtoMsg(message: _57.Validator): _57.ValidatorProtoMsg; - }; - ValAddresses: { - typeUrl: string; - encode(message: _57.ValAddresses, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.ValAddresses; - fromPartial(object: Partial<_57.ValAddresses>): _57.ValAddresses; - fromAmino(object: _57.ValAddressesAmino): _57.ValAddresses; - toAmino(message: _57.ValAddresses): _57.ValAddressesAmino; - fromAminoMsg(object: _57.ValAddressesAminoMsg): _57.ValAddresses; - toAminoMsg(message: _57.ValAddresses): _57.ValAddressesAminoMsg; - fromProtoMsg(message: _57.ValAddressesProtoMsg): _57.ValAddresses; - toProto(message: _57.ValAddresses): Uint8Array; - toProtoMsg(message: _57.ValAddresses): _57.ValAddressesProtoMsg; - }; - DVPair: { - typeUrl: string; - encode(message: _57.DVPair, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVPair; - fromPartial(object: Partial<_57.DVPair>): _57.DVPair; - fromAmino(object: _57.DVPairAmino): _57.DVPair; - toAmino(message: _57.DVPair): _57.DVPairAmino; - fromAminoMsg(object: _57.DVPairAminoMsg): _57.DVPair; - toAminoMsg(message: _57.DVPair): _57.DVPairAminoMsg; - fromProtoMsg(message: _57.DVPairProtoMsg): _57.DVPair; - toProto(message: _57.DVPair): Uint8Array; - toProtoMsg(message: _57.DVPair): _57.DVPairProtoMsg; - }; - DVPairs: { - typeUrl: string; - encode(message: _57.DVPairs, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVPairs; - fromPartial(object: Partial<_57.DVPairs>): _57.DVPairs; - fromAmino(object: _57.DVPairsAmino): _57.DVPairs; - toAmino(message: _57.DVPairs): _57.DVPairsAmino; - fromAminoMsg(object: _57.DVPairsAminoMsg): _57.DVPairs; - toAminoMsg(message: _57.DVPairs): _57.DVPairsAminoMsg; - fromProtoMsg(message: _57.DVPairsProtoMsg): _57.DVPairs; - toProto(message: _57.DVPairs): Uint8Array; - toProtoMsg(message: _57.DVPairs): _57.DVPairsProtoMsg; - }; - DVVTriplet: { - typeUrl: string; - encode(message: _57.DVVTriplet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVVTriplet; - fromPartial(object: Partial<_57.DVVTriplet>): _57.DVVTriplet; - fromAmino(object: _57.DVVTripletAmino): _57.DVVTriplet; - toAmino(message: _57.DVVTriplet): _57.DVVTripletAmino; - fromAminoMsg(object: _57.DVVTripletAminoMsg): _57.DVVTriplet; - toAminoMsg(message: _57.DVVTriplet): _57.DVVTripletAminoMsg; - fromProtoMsg(message: _57.DVVTripletProtoMsg): _57.DVVTriplet; - toProto(message: _57.DVVTriplet): Uint8Array; - toProtoMsg(message: _57.DVVTriplet): _57.DVVTripletProtoMsg; - }; - DVVTriplets: { - typeUrl: string; - encode(message: _57.DVVTriplets, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DVVTriplets; - fromPartial(object: Partial<_57.DVVTriplets>): _57.DVVTriplets; - fromAmino(object: _57.DVVTripletsAmino): _57.DVVTriplets; - toAmino(message: _57.DVVTriplets): _57.DVVTripletsAmino; - fromAminoMsg(object: _57.DVVTripletsAminoMsg): _57.DVVTriplets; - toAminoMsg(message: _57.DVVTriplets): _57.DVVTripletsAminoMsg; - fromProtoMsg(message: _57.DVVTripletsProtoMsg): _57.DVVTriplets; - toProto(message: _57.DVVTriplets): Uint8Array; - toProtoMsg(message: _57.DVVTriplets): _57.DVVTripletsProtoMsg; - }; - Delegation: { - typeUrl: string; - encode(message: _57.Delegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Delegation; - fromPartial(object: Partial<_57.Delegation>): _57.Delegation; - fromAmino(object: _57.DelegationAmino): _57.Delegation; - toAmino(message: _57.Delegation): _57.DelegationAmino; - fromAminoMsg(object: _57.DelegationAminoMsg): _57.Delegation; - toAminoMsg(message: _57.Delegation): _57.DelegationAminoMsg; - fromProtoMsg(message: _57.DelegationProtoMsg): _57.Delegation; - toProto(message: _57.Delegation): Uint8Array; - toProtoMsg(message: _57.Delegation): _57.DelegationProtoMsg; - }; - UnbondingDelegation: { - typeUrl: string; - encode(message: _57.UnbondingDelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.UnbondingDelegation; - fromPartial(object: Partial<_57.UnbondingDelegation>): _57.UnbondingDelegation; - fromAmino(object: _57.UnbondingDelegationAmino): _57.UnbondingDelegation; - toAmino(message: _57.UnbondingDelegation): _57.UnbondingDelegationAmino; - fromAminoMsg(object: _57.UnbondingDelegationAminoMsg): _57.UnbondingDelegation; - toAminoMsg(message: _57.UnbondingDelegation): _57.UnbondingDelegationAminoMsg; - fromProtoMsg(message: _57.UnbondingDelegationProtoMsg): _57.UnbondingDelegation; - toProto(message: _57.UnbondingDelegation): Uint8Array; - toProtoMsg(message: _57.UnbondingDelegation): _57.UnbondingDelegationProtoMsg; - }; - UnbondingDelegationEntry: { - typeUrl: string; - encode(message: _57.UnbondingDelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.UnbondingDelegationEntry; - fromPartial(object: Partial<_57.UnbondingDelegationEntry>): _57.UnbondingDelegationEntry; - fromAmino(object: _57.UnbondingDelegationEntryAmino): _57.UnbondingDelegationEntry; - toAmino(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryAmino; - fromAminoMsg(object: _57.UnbondingDelegationEntryAminoMsg): _57.UnbondingDelegationEntry; - toAminoMsg(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryAminoMsg; - fromProtoMsg(message: _57.UnbondingDelegationEntryProtoMsg): _57.UnbondingDelegationEntry; - toProto(message: _57.UnbondingDelegationEntry): Uint8Array; - toProtoMsg(message: _57.UnbondingDelegationEntry): _57.UnbondingDelegationEntryProtoMsg; - }; - RedelegationEntry: { - typeUrl: string; - encode(message: _57.RedelegationEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationEntry; - fromPartial(object: Partial<_57.RedelegationEntry>): _57.RedelegationEntry; - fromAmino(object: _57.RedelegationEntryAmino): _57.RedelegationEntry; - toAmino(message: _57.RedelegationEntry): _57.RedelegationEntryAmino; - fromAminoMsg(object: _57.RedelegationEntryAminoMsg): _57.RedelegationEntry; - toAminoMsg(message: _57.RedelegationEntry): _57.RedelegationEntryAminoMsg; - fromProtoMsg(message: _57.RedelegationEntryProtoMsg): _57.RedelegationEntry; - toProto(message: _57.RedelegationEntry): Uint8Array; - toProtoMsg(message: _57.RedelegationEntry): _57.RedelegationEntryProtoMsg; - }; - Redelegation: { - typeUrl: string; - encode(message: _57.Redelegation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Redelegation; - fromPartial(object: Partial<_57.Redelegation>): _57.Redelegation; - fromAmino(object: _57.RedelegationAmino): _57.Redelegation; - toAmino(message: _57.Redelegation): _57.RedelegationAmino; - fromAminoMsg(object: _57.RedelegationAminoMsg): _57.Redelegation; - toAminoMsg(message: _57.Redelegation): _57.RedelegationAminoMsg; - fromProtoMsg(message: _57.RedelegationProtoMsg): _57.Redelegation; - toProto(message: _57.Redelegation): Uint8Array; - toProtoMsg(message: _57.Redelegation): _57.RedelegationProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _57.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Params; - fromPartial(object: Partial<_57.Params>): _57.Params; - fromAmino(object: _57.ParamsAmino): _57.Params; - toAmino(message: _57.Params): _57.ParamsAmino; - fromAminoMsg(object: _57.ParamsAminoMsg): _57.Params; - toAminoMsg(message: _57.Params): _57.ParamsAminoMsg; - fromProtoMsg(message: _57.ParamsProtoMsg): _57.Params; - toProto(message: _57.Params): Uint8Array; - toProtoMsg(message: _57.Params): _57.ParamsProtoMsg; - }; - DelegationResponse: { - typeUrl: string; - encode(message: _57.DelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.DelegationResponse; - fromPartial(object: Partial<_57.DelegationResponse>): _57.DelegationResponse; - fromAmino(object: _57.DelegationResponseAmino): _57.DelegationResponse; - toAmino(message: _57.DelegationResponse): _57.DelegationResponseAmino; - fromAminoMsg(object: _57.DelegationResponseAminoMsg): _57.DelegationResponse; - toAminoMsg(message: _57.DelegationResponse): _57.DelegationResponseAminoMsg; - fromProtoMsg(message: _57.DelegationResponseProtoMsg): _57.DelegationResponse; - toProto(message: _57.DelegationResponse): Uint8Array; - toProtoMsg(message: _57.DelegationResponse): _57.DelegationResponseProtoMsg; - }; - RedelegationEntryResponse: { - typeUrl: string; - encode(message: _57.RedelegationEntryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationEntryResponse; - fromPartial(object: Partial<_57.RedelegationEntryResponse>): _57.RedelegationEntryResponse; - fromAmino(object: _57.RedelegationEntryResponseAmino): _57.RedelegationEntryResponse; - toAmino(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseAmino; - fromAminoMsg(object: _57.RedelegationEntryResponseAminoMsg): _57.RedelegationEntryResponse; - toAminoMsg(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseAminoMsg; - fromProtoMsg(message: _57.RedelegationEntryResponseProtoMsg): _57.RedelegationEntryResponse; - toProto(message: _57.RedelegationEntryResponse): Uint8Array; - toProtoMsg(message: _57.RedelegationEntryResponse): _57.RedelegationEntryResponseProtoMsg; - }; - RedelegationResponse: { - typeUrl: string; - encode(message: _57.RedelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.RedelegationResponse; - fromPartial(object: Partial<_57.RedelegationResponse>): _57.RedelegationResponse; - fromAmino(object: _57.RedelegationResponseAmino): _57.RedelegationResponse; - toAmino(message: _57.RedelegationResponse): _57.RedelegationResponseAmino; - fromAminoMsg(object: _57.RedelegationResponseAminoMsg): _57.RedelegationResponse; - toAminoMsg(message: _57.RedelegationResponse): _57.RedelegationResponseAminoMsg; - fromProtoMsg(message: _57.RedelegationResponseProtoMsg): _57.RedelegationResponse; - toProto(message: _57.RedelegationResponse): Uint8Array; - toProtoMsg(message: _57.RedelegationResponse): _57.RedelegationResponseProtoMsg; - }; - Pool: { - typeUrl: string; - encode(message: _57.Pool, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _57.Pool; - fromPartial(object: Partial<_57.Pool>): _57.Pool; - fromAmino(object: _57.PoolAmino): _57.Pool; - toAmino(message: _57.Pool): _57.PoolAmino; - fromAminoMsg(object: _57.PoolAminoMsg): _57.Pool; - toAminoMsg(message: _57.Pool): _57.PoolAminoMsg; - fromProtoMsg(message: _57.PoolProtoMsg): _57.Pool; - toProto(message: _57.Pool): Uint8Array; - toProtoMsg(message: _57.Pool): _57.PoolProtoMsg; - }; - QueryValidatorsRequest: { - typeUrl: string; - encode(message: _56.QueryValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorsRequest; - fromPartial(object: Partial<_56.QueryValidatorsRequest>): _56.QueryValidatorsRequest; - fromAmino(object: _56.QueryValidatorsRequestAmino): _56.QueryValidatorsRequest; - toAmino(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestAmino; - fromAminoMsg(object: _56.QueryValidatorsRequestAminoMsg): _56.QueryValidatorsRequest; - toAminoMsg(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestAminoMsg; - fromProtoMsg(message: _56.QueryValidatorsRequestProtoMsg): _56.QueryValidatorsRequest; - toProto(message: _56.QueryValidatorsRequest): Uint8Array; - toProtoMsg(message: _56.QueryValidatorsRequest): _56.QueryValidatorsRequestProtoMsg; - }; - QueryValidatorsResponse: { - typeUrl: string; - encode(message: _56.QueryValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorsResponse; - fromPartial(object: Partial<_56.QueryValidatorsResponse>): _56.QueryValidatorsResponse; - fromAmino(object: _56.QueryValidatorsResponseAmino): _56.QueryValidatorsResponse; - toAmino(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseAmino; - fromAminoMsg(object: _56.QueryValidatorsResponseAminoMsg): _56.QueryValidatorsResponse; - toAminoMsg(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseAminoMsg; - fromProtoMsg(message: _56.QueryValidatorsResponseProtoMsg): _56.QueryValidatorsResponse; - toProto(message: _56.QueryValidatorsResponse): Uint8Array; - toProtoMsg(message: _56.QueryValidatorsResponse): _56.QueryValidatorsResponseProtoMsg; - }; - QueryValidatorRequest: { - typeUrl: string; - encode(message: _56.QueryValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorRequest; - fromPartial(object: Partial<_56.QueryValidatorRequest>): _56.QueryValidatorRequest; - fromAmino(object: _56.QueryValidatorRequestAmino): _56.QueryValidatorRequest; - toAmino(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestAmino; - fromAminoMsg(object: _56.QueryValidatorRequestAminoMsg): _56.QueryValidatorRequest; - toAminoMsg(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestAminoMsg; - fromProtoMsg(message: _56.QueryValidatorRequestProtoMsg): _56.QueryValidatorRequest; - toProto(message: _56.QueryValidatorRequest): Uint8Array; - toProtoMsg(message: _56.QueryValidatorRequest): _56.QueryValidatorRequestProtoMsg; - }; - QueryValidatorResponse: { - typeUrl: string; - encode(message: _56.QueryValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorResponse; - fromPartial(object: Partial<_56.QueryValidatorResponse>): _56.QueryValidatorResponse; - fromAmino(object: _56.QueryValidatorResponseAmino): _56.QueryValidatorResponse; - toAmino(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseAmino; - fromAminoMsg(object: _56.QueryValidatorResponseAminoMsg): _56.QueryValidatorResponse; - toAminoMsg(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseAminoMsg; - fromProtoMsg(message: _56.QueryValidatorResponseProtoMsg): _56.QueryValidatorResponse; - toProto(message: _56.QueryValidatorResponse): Uint8Array; - toProtoMsg(message: _56.QueryValidatorResponse): _56.QueryValidatorResponseProtoMsg; - }; - QueryValidatorDelegationsRequest: { - typeUrl: string; - encode(message: _56.QueryValidatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorDelegationsRequest; - fromPartial(object: Partial<_56.QueryValidatorDelegationsRequest>): _56.QueryValidatorDelegationsRequest; - fromAmino(object: _56.QueryValidatorDelegationsRequestAmino): _56.QueryValidatorDelegationsRequest; - toAmino(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestAmino; - fromAminoMsg(object: _56.QueryValidatorDelegationsRequestAminoMsg): _56.QueryValidatorDelegationsRequest; - toAminoMsg(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestAminoMsg; - fromProtoMsg(message: _56.QueryValidatorDelegationsRequestProtoMsg): _56.QueryValidatorDelegationsRequest; - toProto(message: _56.QueryValidatorDelegationsRequest): Uint8Array; - toProtoMsg(message: _56.QueryValidatorDelegationsRequest): _56.QueryValidatorDelegationsRequestProtoMsg; - }; - QueryValidatorDelegationsResponse: { - typeUrl: string; - encode(message: _56.QueryValidatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorDelegationsResponse; - fromPartial(object: Partial<_56.QueryValidatorDelegationsResponse>): _56.QueryValidatorDelegationsResponse; - fromAmino(object: _56.QueryValidatorDelegationsResponseAmino): _56.QueryValidatorDelegationsResponse; - toAmino(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseAmino; - fromAminoMsg(object: _56.QueryValidatorDelegationsResponseAminoMsg): _56.QueryValidatorDelegationsResponse; - toAminoMsg(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseAminoMsg; - fromProtoMsg(message: _56.QueryValidatorDelegationsResponseProtoMsg): _56.QueryValidatorDelegationsResponse; - toProto(message: _56.QueryValidatorDelegationsResponse): Uint8Array; - toProtoMsg(message: _56.QueryValidatorDelegationsResponse): _56.QueryValidatorDelegationsResponseProtoMsg; - }; - QueryValidatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: _56.QueryValidatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorUnbondingDelegationsRequest; - fromPartial(object: Partial<_56.QueryValidatorUnbondingDelegationsRequest>): _56.QueryValidatorUnbondingDelegationsRequest; - fromAmino(object: _56.QueryValidatorUnbondingDelegationsRequestAmino): _56.QueryValidatorUnbondingDelegationsRequest; - toAmino(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: _56.QueryValidatorUnbondingDelegationsRequestAminoMsg): _56.QueryValidatorUnbondingDelegationsRequest; - toAminoMsg(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: _56.QueryValidatorUnbondingDelegationsRequestProtoMsg): _56.QueryValidatorUnbondingDelegationsRequest; - toProto(message: _56.QueryValidatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: _56.QueryValidatorUnbondingDelegationsRequest): _56.QueryValidatorUnbondingDelegationsRequestProtoMsg; - }; - QueryValidatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: _56.QueryValidatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryValidatorUnbondingDelegationsResponse; - fromPartial(object: Partial<_56.QueryValidatorUnbondingDelegationsResponse>): _56.QueryValidatorUnbondingDelegationsResponse; - fromAmino(object: _56.QueryValidatorUnbondingDelegationsResponseAmino): _56.QueryValidatorUnbondingDelegationsResponse; - toAmino(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: _56.QueryValidatorUnbondingDelegationsResponseAminoMsg): _56.QueryValidatorUnbondingDelegationsResponse; - toAminoMsg(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: _56.QueryValidatorUnbondingDelegationsResponseProtoMsg): _56.QueryValidatorUnbondingDelegationsResponse; - toProto(message: _56.QueryValidatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: _56.QueryValidatorUnbondingDelegationsResponse): _56.QueryValidatorUnbondingDelegationsResponseProtoMsg; - }; - QueryDelegationRequest: { - typeUrl: string; - encode(message: _56.QueryDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegationRequest; - fromPartial(object: Partial<_56.QueryDelegationRequest>): _56.QueryDelegationRequest; - fromAmino(object: _56.QueryDelegationRequestAmino): _56.QueryDelegationRequest; - toAmino(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestAmino; - fromAminoMsg(object: _56.QueryDelegationRequestAminoMsg): _56.QueryDelegationRequest; - toAminoMsg(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestAminoMsg; - fromProtoMsg(message: _56.QueryDelegationRequestProtoMsg): _56.QueryDelegationRequest; - toProto(message: _56.QueryDelegationRequest): Uint8Array; - toProtoMsg(message: _56.QueryDelegationRequest): _56.QueryDelegationRequestProtoMsg; - }; - QueryDelegationResponse: { - typeUrl: string; - encode(message: _56.QueryDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegationResponse; - fromPartial(object: Partial<_56.QueryDelegationResponse>): _56.QueryDelegationResponse; - fromAmino(object: _56.QueryDelegationResponseAmino): _56.QueryDelegationResponse; - toAmino(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseAmino; - fromAminoMsg(object: _56.QueryDelegationResponseAminoMsg): _56.QueryDelegationResponse; - toAminoMsg(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseAminoMsg; - fromProtoMsg(message: _56.QueryDelegationResponseProtoMsg): _56.QueryDelegationResponse; - toProto(message: _56.QueryDelegationResponse): Uint8Array; - toProtoMsg(message: _56.QueryDelegationResponse): _56.QueryDelegationResponseProtoMsg; - }; - QueryUnbondingDelegationRequest: { - typeUrl: string; - encode(message: _56.QueryUnbondingDelegationRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryUnbondingDelegationRequest; - fromPartial(object: Partial<_56.QueryUnbondingDelegationRequest>): _56.QueryUnbondingDelegationRequest; - fromAmino(object: _56.QueryUnbondingDelegationRequestAmino): _56.QueryUnbondingDelegationRequest; - toAmino(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestAmino; - fromAminoMsg(object: _56.QueryUnbondingDelegationRequestAminoMsg): _56.QueryUnbondingDelegationRequest; - toAminoMsg(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestAminoMsg; - fromProtoMsg(message: _56.QueryUnbondingDelegationRequestProtoMsg): _56.QueryUnbondingDelegationRequest; - toProto(message: _56.QueryUnbondingDelegationRequest): Uint8Array; - toProtoMsg(message: _56.QueryUnbondingDelegationRequest): _56.QueryUnbondingDelegationRequestProtoMsg; - }; - QueryUnbondingDelegationResponse: { - typeUrl: string; - encode(message: _56.QueryUnbondingDelegationResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryUnbondingDelegationResponse; - fromPartial(object: Partial<_56.QueryUnbondingDelegationResponse>): _56.QueryUnbondingDelegationResponse; - fromAmino(object: _56.QueryUnbondingDelegationResponseAmino): _56.QueryUnbondingDelegationResponse; - toAmino(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseAmino; - fromAminoMsg(object: _56.QueryUnbondingDelegationResponseAminoMsg): _56.QueryUnbondingDelegationResponse; - toAminoMsg(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: _56.QueryUnbondingDelegationResponseProtoMsg): _56.QueryUnbondingDelegationResponse; - toProto(message: _56.QueryUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: _56.QueryUnbondingDelegationResponse): _56.QueryUnbondingDelegationResponseProtoMsg; - }; - QueryDelegatorDelegationsRequest: { - typeUrl: string; - encode(message: _56.QueryDelegatorDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorDelegationsRequest; - fromPartial(object: Partial<_56.QueryDelegatorDelegationsRequest>): _56.QueryDelegatorDelegationsRequest; - fromAmino(object: _56.QueryDelegatorDelegationsRequestAmino): _56.QueryDelegatorDelegationsRequest; - toAmino(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestAmino; - fromAminoMsg(object: _56.QueryDelegatorDelegationsRequestAminoMsg): _56.QueryDelegatorDelegationsRequest; - toAminoMsg(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorDelegationsRequestProtoMsg): _56.QueryDelegatorDelegationsRequest; - toProto(message: _56.QueryDelegatorDelegationsRequest): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorDelegationsRequest): _56.QueryDelegatorDelegationsRequestProtoMsg; - }; - QueryDelegatorDelegationsResponse: { - typeUrl: string; - encode(message: _56.QueryDelegatorDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorDelegationsResponse; - fromPartial(object: Partial<_56.QueryDelegatorDelegationsResponse>): _56.QueryDelegatorDelegationsResponse; - fromAmino(object: _56.QueryDelegatorDelegationsResponseAmino): _56.QueryDelegatorDelegationsResponse; - toAmino(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseAmino; - fromAminoMsg(object: _56.QueryDelegatorDelegationsResponseAminoMsg): _56.QueryDelegatorDelegationsResponse; - toAminoMsg(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorDelegationsResponseProtoMsg): _56.QueryDelegatorDelegationsResponse; - toProto(message: _56.QueryDelegatorDelegationsResponse): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorDelegationsResponse): _56.QueryDelegatorDelegationsResponseProtoMsg; - }; - QueryDelegatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: _56.QueryDelegatorUnbondingDelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorUnbondingDelegationsRequest; - fromPartial(object: Partial<_56.QueryDelegatorUnbondingDelegationsRequest>): _56.QueryDelegatorUnbondingDelegationsRequest; - fromAmino(object: _56.QueryDelegatorUnbondingDelegationsRequestAmino): _56.QueryDelegatorUnbondingDelegationsRequest; - toAmino(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: _56.QueryDelegatorUnbondingDelegationsRequestAminoMsg): _56.QueryDelegatorUnbondingDelegationsRequest; - toAminoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequestProtoMsg): _56.QueryDelegatorUnbondingDelegationsRequest; - toProto(message: _56.QueryDelegatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsRequest): _56.QueryDelegatorUnbondingDelegationsRequestProtoMsg; - }; - QueryDelegatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: _56.QueryDelegatorUnbondingDelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorUnbondingDelegationsResponse; - fromPartial(object: Partial<_56.QueryDelegatorUnbondingDelegationsResponse>): _56.QueryDelegatorUnbondingDelegationsResponse; - fromAmino(object: _56.QueryDelegatorUnbondingDelegationsResponseAmino): _56.QueryDelegatorUnbondingDelegationsResponse; - toAmino(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: _56.QueryDelegatorUnbondingDelegationsResponseAminoMsg): _56.QueryDelegatorUnbondingDelegationsResponse; - toAminoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponseProtoMsg): _56.QueryDelegatorUnbondingDelegationsResponse; - toProto(message: _56.QueryDelegatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorUnbondingDelegationsResponse): _56.QueryDelegatorUnbondingDelegationsResponseProtoMsg; - }; - QueryRedelegationsRequest: { - typeUrl: string; - encode(message: _56.QueryRedelegationsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryRedelegationsRequest; - fromPartial(object: Partial<_56.QueryRedelegationsRequest>): _56.QueryRedelegationsRequest; - fromAmino(object: _56.QueryRedelegationsRequestAmino): _56.QueryRedelegationsRequest; - toAmino(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestAmino; - fromAminoMsg(object: _56.QueryRedelegationsRequestAminoMsg): _56.QueryRedelegationsRequest; - toAminoMsg(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestAminoMsg; - fromProtoMsg(message: _56.QueryRedelegationsRequestProtoMsg): _56.QueryRedelegationsRequest; - toProto(message: _56.QueryRedelegationsRequest): Uint8Array; - toProtoMsg(message: _56.QueryRedelegationsRequest): _56.QueryRedelegationsRequestProtoMsg; - }; - QueryRedelegationsResponse: { - typeUrl: string; - encode(message: _56.QueryRedelegationsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryRedelegationsResponse; - fromPartial(object: Partial<_56.QueryRedelegationsResponse>): _56.QueryRedelegationsResponse; - fromAmino(object: _56.QueryRedelegationsResponseAmino): _56.QueryRedelegationsResponse; - toAmino(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseAmino; - fromAminoMsg(object: _56.QueryRedelegationsResponseAminoMsg): _56.QueryRedelegationsResponse; - toAminoMsg(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseAminoMsg; - fromProtoMsg(message: _56.QueryRedelegationsResponseProtoMsg): _56.QueryRedelegationsResponse; - toProto(message: _56.QueryRedelegationsResponse): Uint8Array; - toProtoMsg(message: _56.QueryRedelegationsResponse): _56.QueryRedelegationsResponseProtoMsg; - }; - QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: _56.QueryDelegatorValidatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorsRequest; - fromPartial(object: Partial<_56.QueryDelegatorValidatorsRequest>): _56.QueryDelegatorValidatorsRequest; - fromAmino(object: _56.QueryDelegatorValidatorsRequestAmino): _56.QueryDelegatorValidatorsRequest; - toAmino(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: _56.QueryDelegatorValidatorsRequestAminoMsg): _56.QueryDelegatorValidatorsRequest; - toAminoMsg(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorValidatorsRequestProtoMsg): _56.QueryDelegatorValidatorsRequest; - toProto(message: _56.QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorValidatorsRequest): _56.QueryDelegatorValidatorsRequestProtoMsg; - }; - QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: _56.QueryDelegatorValidatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorsResponse; - fromPartial(object: Partial<_56.QueryDelegatorValidatorsResponse>): _56.QueryDelegatorValidatorsResponse; - fromAmino(object: _56.QueryDelegatorValidatorsResponseAmino): _56.QueryDelegatorValidatorsResponse; - toAmino(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: _56.QueryDelegatorValidatorsResponseAminoMsg): _56.QueryDelegatorValidatorsResponse; - toAminoMsg(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorValidatorsResponseProtoMsg): _56.QueryDelegatorValidatorsResponse; - toProto(message: _56.QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorValidatorsResponse): _56.QueryDelegatorValidatorsResponseProtoMsg; - }; - QueryDelegatorValidatorRequest: { - typeUrl: string; - encode(message: _56.QueryDelegatorValidatorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorRequest; - fromPartial(object: Partial<_56.QueryDelegatorValidatorRequest>): _56.QueryDelegatorValidatorRequest; - fromAmino(object: _56.QueryDelegatorValidatorRequestAmino): _56.QueryDelegatorValidatorRequest; - toAmino(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestAmino; - fromAminoMsg(object: _56.QueryDelegatorValidatorRequestAminoMsg): _56.QueryDelegatorValidatorRequest; - toAminoMsg(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorValidatorRequestProtoMsg): _56.QueryDelegatorValidatorRequest; - toProto(message: _56.QueryDelegatorValidatorRequest): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorValidatorRequest): _56.QueryDelegatorValidatorRequestProtoMsg; - }; - QueryDelegatorValidatorResponse: { - typeUrl: string; - encode(message: _56.QueryDelegatorValidatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryDelegatorValidatorResponse; - fromPartial(object: Partial<_56.QueryDelegatorValidatorResponse>): _56.QueryDelegatorValidatorResponse; - fromAmino(object: _56.QueryDelegatorValidatorResponseAmino): _56.QueryDelegatorValidatorResponse; - toAmino(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseAmino; - fromAminoMsg(object: _56.QueryDelegatorValidatorResponseAminoMsg): _56.QueryDelegatorValidatorResponse; - toAminoMsg(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseAminoMsg; - fromProtoMsg(message: _56.QueryDelegatorValidatorResponseProtoMsg): _56.QueryDelegatorValidatorResponse; - toProto(message: _56.QueryDelegatorValidatorResponse): Uint8Array; - toProtoMsg(message: _56.QueryDelegatorValidatorResponse): _56.QueryDelegatorValidatorResponseProtoMsg; - }; - QueryHistoricalInfoRequest: { - typeUrl: string; - encode(message: _56.QueryHistoricalInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryHistoricalInfoRequest; - fromPartial(object: Partial<_56.QueryHistoricalInfoRequest>): _56.QueryHistoricalInfoRequest; - fromAmino(object: _56.QueryHistoricalInfoRequestAmino): _56.QueryHistoricalInfoRequest; - toAmino(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestAmino; - fromAminoMsg(object: _56.QueryHistoricalInfoRequestAminoMsg): _56.QueryHistoricalInfoRequest; - toAminoMsg(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestAminoMsg; - fromProtoMsg(message: _56.QueryHistoricalInfoRequestProtoMsg): _56.QueryHistoricalInfoRequest; - toProto(message: _56.QueryHistoricalInfoRequest): Uint8Array; - toProtoMsg(message: _56.QueryHistoricalInfoRequest): _56.QueryHistoricalInfoRequestProtoMsg; - }; - QueryHistoricalInfoResponse: { - typeUrl: string; - encode(message: _56.QueryHistoricalInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryHistoricalInfoResponse; - fromPartial(object: Partial<_56.QueryHistoricalInfoResponse>): _56.QueryHistoricalInfoResponse; - fromAmino(object: _56.QueryHistoricalInfoResponseAmino): _56.QueryHistoricalInfoResponse; - toAmino(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseAmino; - fromAminoMsg(object: _56.QueryHistoricalInfoResponseAminoMsg): _56.QueryHistoricalInfoResponse; - toAminoMsg(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseAminoMsg; - fromProtoMsg(message: _56.QueryHistoricalInfoResponseProtoMsg): _56.QueryHistoricalInfoResponse; - toProto(message: _56.QueryHistoricalInfoResponse): Uint8Array; - toProtoMsg(message: _56.QueryHistoricalInfoResponse): _56.QueryHistoricalInfoResponseProtoMsg; - }; - QueryPoolRequest: { - typeUrl: string; - encode(_: _56.QueryPoolRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryPoolRequest; - fromPartial(_: Partial<_56.QueryPoolRequest>): _56.QueryPoolRequest; - fromAmino(_: _56.QueryPoolRequestAmino): _56.QueryPoolRequest; - toAmino(_: _56.QueryPoolRequest): _56.QueryPoolRequestAmino; - fromAminoMsg(object: _56.QueryPoolRequestAminoMsg): _56.QueryPoolRequest; - toAminoMsg(message: _56.QueryPoolRequest): _56.QueryPoolRequestAminoMsg; - fromProtoMsg(message: _56.QueryPoolRequestProtoMsg): _56.QueryPoolRequest; - toProto(message: _56.QueryPoolRequest): Uint8Array; - toProtoMsg(message: _56.QueryPoolRequest): _56.QueryPoolRequestProtoMsg; - }; - QueryPoolResponse: { - typeUrl: string; - encode(message: _56.QueryPoolResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryPoolResponse; - fromPartial(object: Partial<_56.QueryPoolResponse>): _56.QueryPoolResponse; - fromAmino(object: _56.QueryPoolResponseAmino): _56.QueryPoolResponse; - toAmino(message: _56.QueryPoolResponse): _56.QueryPoolResponseAmino; - fromAminoMsg(object: _56.QueryPoolResponseAminoMsg): _56.QueryPoolResponse; - toAminoMsg(message: _56.QueryPoolResponse): _56.QueryPoolResponseAminoMsg; - fromProtoMsg(message: _56.QueryPoolResponseProtoMsg): _56.QueryPoolResponse; - toProto(message: _56.QueryPoolResponse): Uint8Array; - toProtoMsg(message: _56.QueryPoolResponse): _56.QueryPoolResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _56.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryParamsRequest; - fromPartial(_: Partial<_56.QueryParamsRequest>): _56.QueryParamsRequest; - fromAmino(_: _56.QueryParamsRequestAmino): _56.QueryParamsRequest; - toAmino(_: _56.QueryParamsRequest): _56.QueryParamsRequestAmino; - fromAminoMsg(object: _56.QueryParamsRequestAminoMsg): _56.QueryParamsRequest; - toAminoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _56.QueryParamsRequestProtoMsg): _56.QueryParamsRequest; - toProto(message: _56.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _56.QueryParamsRequest): _56.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _56.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _56.QueryParamsResponse; - fromPartial(object: Partial<_56.QueryParamsResponse>): _56.QueryParamsResponse; - fromAmino(object: _56.QueryParamsResponseAmino): _56.QueryParamsResponse; - toAmino(message: _56.QueryParamsResponse): _56.QueryParamsResponseAmino; - fromAminoMsg(object: _56.QueryParamsResponseAminoMsg): _56.QueryParamsResponse; - toAminoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _56.QueryParamsResponseProtoMsg): _56.QueryParamsResponse; - toProto(message: _56.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _56.QueryParamsResponse): _56.QueryParamsResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _55.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _55.GenesisState; - fromPartial(object: Partial<_55.GenesisState>): _55.GenesisState; - fromAmino(object: _55.GenesisStateAmino): _55.GenesisState; - toAmino(message: _55.GenesisState): _55.GenesisStateAmino; - fromAminoMsg(object: _55.GenesisStateAminoMsg): _55.GenesisState; - toAminoMsg(message: _55.GenesisState): _55.GenesisStateAminoMsg; - fromProtoMsg(message: _55.GenesisStateProtoMsg): _55.GenesisState; - toProto(message: _55.GenesisState): Uint8Array; - toProtoMsg(message: _55.GenesisState): _55.GenesisStateProtoMsg; - }; - LastValidatorPower: { - typeUrl: string; - encode(message: _55.LastValidatorPower, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _55.LastValidatorPower; - fromPartial(object: Partial<_55.LastValidatorPower>): _55.LastValidatorPower; - fromAmino(object: _55.LastValidatorPowerAmino): _55.LastValidatorPower; - toAmino(message: _55.LastValidatorPower): _55.LastValidatorPowerAmino; - fromAminoMsg(object: _55.LastValidatorPowerAminoMsg): _55.LastValidatorPower; - toAminoMsg(message: _55.LastValidatorPower): _55.LastValidatorPowerAminoMsg; - fromProtoMsg(message: _55.LastValidatorPowerProtoMsg): _55.LastValidatorPower; - toProto(message: _55.LastValidatorPower): Uint8Array; - toProtoMsg(message: _55.LastValidatorPower): _55.LastValidatorPowerProtoMsg; - }; - authorizationTypeFromJSON(object: any): _54.AuthorizationType; - authorizationTypeToJSON(object: _54.AuthorizationType): string; - AuthorizationType: typeof _54.AuthorizationType; - AuthorizationTypeSDKType: typeof _54.AuthorizationType; - AuthorizationTypeAmino: typeof _54.AuthorizationType; - StakeAuthorization: { - typeUrl: string; - encode(message: _54.StakeAuthorization, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _54.StakeAuthorization; - fromPartial(object: Partial<_54.StakeAuthorization>): _54.StakeAuthorization; - fromAmino(object: _54.StakeAuthorizationAmino): _54.StakeAuthorization; - toAmino(message: _54.StakeAuthorization): _54.StakeAuthorizationAmino; - fromAminoMsg(object: _54.StakeAuthorizationAminoMsg): _54.StakeAuthorization; - toAminoMsg(message: _54.StakeAuthorization): _54.StakeAuthorizationAminoMsg; - fromProtoMsg(message: _54.StakeAuthorizationProtoMsg): _54.StakeAuthorization; - toProto(message: _54.StakeAuthorization): Uint8Array; - toProtoMsg(message: _54.StakeAuthorization): _54.StakeAuthorizationProtoMsg; - }; - StakeAuthorization_Validators: { - typeUrl: string; - encode(message: _54.StakeAuthorization_Validators, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _54.StakeAuthorization_Validators; - fromPartial(object: Partial<_54.StakeAuthorization_Validators>): _54.StakeAuthorization_Validators; - fromAmino(object: _54.StakeAuthorization_ValidatorsAmino): _54.StakeAuthorization_Validators; - toAmino(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsAmino; - fromAminoMsg(object: _54.StakeAuthorization_ValidatorsAminoMsg): _54.StakeAuthorization_Validators; - toAminoMsg(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsAminoMsg; - fromProtoMsg(message: _54.StakeAuthorization_ValidatorsProtoMsg): _54.StakeAuthorization_Validators; - toProto(message: _54.StakeAuthorization_Validators): Uint8Array; - toProtoMsg(message: _54.StakeAuthorization_Validators): _54.StakeAuthorization_ValidatorsProtoMsg; - }; - }; - } - namespace tx { - namespace signing { - const v1beta1: { - signModeFromJSON(object: any): _59.SignMode; - signModeToJSON(object: _59.SignMode): string; - SignMode: typeof _59.SignMode; - SignModeSDKType: typeof _59.SignMode; - SignModeAmino: typeof _59.SignMode; - SignatureDescriptors: { - typeUrl: string; - encode(message: _59.SignatureDescriptors, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptors; - fromPartial(object: Partial<_59.SignatureDescriptors>): _59.SignatureDescriptors; - fromAmino(object: _59.SignatureDescriptorsAmino): _59.SignatureDescriptors; - toAmino(message: _59.SignatureDescriptors): _59.SignatureDescriptorsAmino; - fromAminoMsg(object: _59.SignatureDescriptorsAminoMsg): _59.SignatureDescriptors; - toAminoMsg(message: _59.SignatureDescriptors): _59.SignatureDescriptorsAminoMsg; - fromProtoMsg(message: _59.SignatureDescriptorsProtoMsg): _59.SignatureDescriptors; - toProto(message: _59.SignatureDescriptors): Uint8Array; - toProtoMsg(message: _59.SignatureDescriptors): _59.SignatureDescriptorsProtoMsg; - }; - SignatureDescriptor: { - typeUrl: string; - encode(message: _59.SignatureDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor; - fromPartial(object: Partial<_59.SignatureDescriptor>): _59.SignatureDescriptor; - fromAmino(object: _59.SignatureDescriptorAmino): _59.SignatureDescriptor; - toAmino(message: _59.SignatureDescriptor): _59.SignatureDescriptorAmino; - fromAminoMsg(object: _59.SignatureDescriptorAminoMsg): _59.SignatureDescriptor; - toAminoMsg(message: _59.SignatureDescriptor): _59.SignatureDescriptorAminoMsg; - fromProtoMsg(message: _59.SignatureDescriptorProtoMsg): _59.SignatureDescriptor; - toProto(message: _59.SignatureDescriptor): Uint8Array; - toProtoMsg(message: _59.SignatureDescriptor): _59.SignatureDescriptorProtoMsg; - }; - SignatureDescriptor_Data: { - typeUrl: string; - encode(message: _59.SignatureDescriptor_Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data; - fromPartial(object: Partial<_59.SignatureDescriptor_Data>): _59.SignatureDescriptor_Data; - fromAmino(object: _59.SignatureDescriptor_DataAmino): _59.SignatureDescriptor_Data; - toAmino(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataAmino; - fromAminoMsg(object: _59.SignatureDescriptor_DataAminoMsg): _59.SignatureDescriptor_Data; - toAminoMsg(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataAminoMsg; - fromProtoMsg(message: _59.SignatureDescriptor_DataProtoMsg): _59.SignatureDescriptor_Data; - toProto(message: _59.SignatureDescriptor_Data): Uint8Array; - toProtoMsg(message: _59.SignatureDescriptor_Data): _59.SignatureDescriptor_DataProtoMsg; - }; - SignatureDescriptor_Data_Single: { - typeUrl: string; - encode(message: _59.SignatureDescriptor_Data_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data_Single; - fromPartial(object: Partial<_59.SignatureDescriptor_Data_Single>): _59.SignatureDescriptor_Data_Single; - fromAmino(object: _59.SignatureDescriptor_Data_SingleAmino): _59.SignatureDescriptor_Data_Single; - toAmino(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleAmino; - fromAminoMsg(object: _59.SignatureDescriptor_Data_SingleAminoMsg): _59.SignatureDescriptor_Data_Single; - toAminoMsg(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleAminoMsg; - fromProtoMsg(message: _59.SignatureDescriptor_Data_SingleProtoMsg): _59.SignatureDescriptor_Data_Single; - toProto(message: _59.SignatureDescriptor_Data_Single): Uint8Array; - toProtoMsg(message: _59.SignatureDescriptor_Data_Single): _59.SignatureDescriptor_Data_SingleProtoMsg; - }; - SignatureDescriptor_Data_Multi: { - typeUrl: string; - encode(message: _59.SignatureDescriptor_Data_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _59.SignatureDescriptor_Data_Multi; - fromPartial(object: Partial<_59.SignatureDescriptor_Data_Multi>): _59.SignatureDescriptor_Data_Multi; - fromAmino(object: _59.SignatureDescriptor_Data_MultiAmino): _59.SignatureDescriptor_Data_Multi; - toAmino(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiAmino; - fromAminoMsg(object: _59.SignatureDescriptor_Data_MultiAminoMsg): _59.SignatureDescriptor_Data_Multi; - toAminoMsg(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiAminoMsg; - fromProtoMsg(message: _59.SignatureDescriptor_Data_MultiProtoMsg): _59.SignatureDescriptor_Data_Multi; - toProto(message: _59.SignatureDescriptor_Data_Multi): Uint8Array; - toProtoMsg(message: _59.SignatureDescriptor_Data_Multi): _59.SignatureDescriptor_Data_MultiProtoMsg; - }; - }; - } - const v1beta1: { - ServiceClientImpl: typeof _165.ServiceClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - simulate(request: _60.SimulateRequest): Promise<_60.SimulateResponse>; - getTx(request: _60.GetTxRequest): Promise<_60.GetTxResponse>; - broadcastTx(request: _60.BroadcastTxRequest): Promise<_60.BroadcastTxResponse>; - getTxsEvent(request: _60.GetTxsEventRequest): Promise<_60.GetTxsEventResponse>; - getBlockWithTxs(request: _60.GetBlockWithTxsRequest): Promise<_60.GetBlockWithTxsResponse>; - }; - LCDQueryClient: typeof _151.LCDQueryClient; - Tx: { - typeUrl: string; - encode(message: _61.Tx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Tx; - fromPartial(object: Partial<_61.Tx>): _61.Tx; - fromAmino(object: _61.TxAmino): _61.Tx; - toAmino(message: _61.Tx): _61.TxAmino; - fromAminoMsg(object: _61.TxAminoMsg): _61.Tx; - toAminoMsg(message: _61.Tx): _61.TxAminoMsg; - fromProtoMsg(message: _61.TxProtoMsg): _61.Tx; - toProto(message: _61.Tx): Uint8Array; - toProtoMsg(message: _61.Tx): _61.TxProtoMsg; - }; - TxRaw: { - typeUrl: string; - encode(message: _61.TxRaw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.TxRaw; - fromPartial(object: Partial<_61.TxRaw>): _61.TxRaw; - fromAmino(object: _61.TxRawAmino): _61.TxRaw; - toAmino(message: _61.TxRaw): _61.TxRawAmino; - fromAminoMsg(object: _61.TxRawAminoMsg): _61.TxRaw; - toAminoMsg(message: _61.TxRaw): _61.TxRawAminoMsg; - fromProtoMsg(message: _61.TxRawProtoMsg): _61.TxRaw; - toProto(message: _61.TxRaw): Uint8Array; - toProtoMsg(message: _61.TxRaw): _61.TxRawProtoMsg; - }; - SignDoc: { - typeUrl: string; - encode(message: _61.SignDoc, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignDoc; - fromPartial(object: Partial<_61.SignDoc>): _61.SignDoc; - fromAmino(object: _61.SignDocAmino): _61.SignDoc; - toAmino(message: _61.SignDoc): _61.SignDocAmino; - fromAminoMsg(object: _61.SignDocAminoMsg): _61.SignDoc; - toAminoMsg(message: _61.SignDoc): _61.SignDocAminoMsg; - fromProtoMsg(message: _61.SignDocProtoMsg): _61.SignDoc; - toProto(message: _61.SignDoc): Uint8Array; - toProtoMsg(message: _61.SignDoc): _61.SignDocProtoMsg; - }; - SignDocDirectAux: { - typeUrl: string; - encode(message: _61.SignDocDirectAux, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignDocDirectAux; - fromPartial(object: Partial<_61.SignDocDirectAux>): _61.SignDocDirectAux; - fromAmino(object: _61.SignDocDirectAuxAmino): _61.SignDocDirectAux; - toAmino(message: _61.SignDocDirectAux): _61.SignDocDirectAuxAmino; - fromAminoMsg(object: _61.SignDocDirectAuxAminoMsg): _61.SignDocDirectAux; - toAminoMsg(message: _61.SignDocDirectAux): _61.SignDocDirectAuxAminoMsg; - fromProtoMsg(message: _61.SignDocDirectAuxProtoMsg): _61.SignDocDirectAux; - toProto(message: _61.SignDocDirectAux): Uint8Array; - toProtoMsg(message: _61.SignDocDirectAux): _61.SignDocDirectAuxProtoMsg; - }; - TxBody: { - typeUrl: string; - encode(message: _61.TxBody, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.TxBody; - fromPartial(object: Partial<_61.TxBody>): _61.TxBody; - fromAmino(object: _61.TxBodyAmino): _61.TxBody; - toAmino(message: _61.TxBody): _61.TxBodyAmino; - fromAminoMsg(object: _61.TxBodyAminoMsg): _61.TxBody; - toAminoMsg(message: _61.TxBody): _61.TxBodyAminoMsg; - fromProtoMsg(message: _61.TxBodyProtoMsg): _61.TxBody; - toProto(message: _61.TxBody): Uint8Array; - toProtoMsg(message: _61.TxBody): _61.TxBodyProtoMsg; - }; - AuthInfo: { - typeUrl: string; - encode(message: _61.AuthInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.AuthInfo; - fromPartial(object: Partial<_61.AuthInfo>): _61.AuthInfo; - fromAmino(object: _61.AuthInfoAmino): _61.AuthInfo; - toAmino(message: _61.AuthInfo): _61.AuthInfoAmino; - fromAminoMsg(object: _61.AuthInfoAminoMsg): _61.AuthInfo; - toAminoMsg(message: _61.AuthInfo): _61.AuthInfoAminoMsg; - fromProtoMsg(message: _61.AuthInfoProtoMsg): _61.AuthInfo; - toProto(message: _61.AuthInfo): Uint8Array; - toProtoMsg(message: _61.AuthInfo): _61.AuthInfoProtoMsg; - }; - SignerInfo: { - typeUrl: string; - encode(message: _61.SignerInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.SignerInfo; - fromPartial(object: Partial<_61.SignerInfo>): _61.SignerInfo; - fromAmino(object: _61.SignerInfoAmino): _61.SignerInfo; - toAmino(message: _61.SignerInfo): _61.SignerInfoAmino; - fromAminoMsg(object: _61.SignerInfoAminoMsg): _61.SignerInfo; - toAminoMsg(message: _61.SignerInfo): _61.SignerInfoAminoMsg; - fromProtoMsg(message: _61.SignerInfoProtoMsg): _61.SignerInfo; - toProto(message: _61.SignerInfo): Uint8Array; - toProtoMsg(message: _61.SignerInfo): _61.SignerInfoProtoMsg; - }; - ModeInfo: { - typeUrl: string; - encode(message: _61.ModeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo; - fromPartial(object: Partial<_61.ModeInfo>): _61.ModeInfo; - fromAmino(object: _61.ModeInfoAmino): _61.ModeInfo; - toAmino(message: _61.ModeInfo): _61.ModeInfoAmino; - fromAminoMsg(object: _61.ModeInfoAminoMsg): _61.ModeInfo; - toAminoMsg(message: _61.ModeInfo): _61.ModeInfoAminoMsg; - fromProtoMsg(message: _61.ModeInfoProtoMsg): _61.ModeInfo; - toProto(message: _61.ModeInfo): Uint8Array; - toProtoMsg(message: _61.ModeInfo): _61.ModeInfoProtoMsg; - }; - ModeInfo_Single: { - typeUrl: string; - encode(message: _61.ModeInfo_Single, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo_Single; - fromPartial(object: Partial<_61.ModeInfo_Single>): _61.ModeInfo_Single; - fromAmino(object: _61.ModeInfo_SingleAmino): _61.ModeInfo_Single; - toAmino(message: _61.ModeInfo_Single): _61.ModeInfo_SingleAmino; - fromAminoMsg(object: _61.ModeInfo_SingleAminoMsg): _61.ModeInfo_Single; - toAminoMsg(message: _61.ModeInfo_Single): _61.ModeInfo_SingleAminoMsg; - fromProtoMsg(message: _61.ModeInfo_SingleProtoMsg): _61.ModeInfo_Single; - toProto(message: _61.ModeInfo_Single): Uint8Array; - toProtoMsg(message: _61.ModeInfo_Single): _61.ModeInfo_SingleProtoMsg; - }; - ModeInfo_Multi: { - typeUrl: string; - encode(message: _61.ModeInfo_Multi, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.ModeInfo_Multi; - fromPartial(object: Partial<_61.ModeInfo_Multi>): _61.ModeInfo_Multi; - fromAmino(object: _61.ModeInfo_MultiAmino): _61.ModeInfo_Multi; - toAmino(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiAmino; - fromAminoMsg(object: _61.ModeInfo_MultiAminoMsg): _61.ModeInfo_Multi; - toAminoMsg(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiAminoMsg; - fromProtoMsg(message: _61.ModeInfo_MultiProtoMsg): _61.ModeInfo_Multi; - toProto(message: _61.ModeInfo_Multi): Uint8Array; - toProtoMsg(message: _61.ModeInfo_Multi): _61.ModeInfo_MultiProtoMsg; - }; - Fee: { - typeUrl: string; - encode(message: _61.Fee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Fee; - fromPartial(object: Partial<_61.Fee>): _61.Fee; - fromAmino(object: _61.FeeAmino): _61.Fee; - toAmino(message: _61.Fee): _61.FeeAmino; - fromAminoMsg(object: _61.FeeAminoMsg): _61.Fee; - toAminoMsg(message: _61.Fee): _61.FeeAminoMsg; - fromProtoMsg(message: _61.FeeProtoMsg): _61.Fee; - toProto(message: _61.Fee): Uint8Array; - toProtoMsg(message: _61.Fee): _61.FeeProtoMsg; - }; - Tip: { - typeUrl: string; - encode(message: _61.Tip, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.Tip; - fromPartial(object: Partial<_61.Tip>): _61.Tip; - fromAmino(object: _61.TipAmino): _61.Tip; - toAmino(message: _61.Tip): _61.TipAmino; - fromAminoMsg(object: _61.TipAminoMsg): _61.Tip; - toAminoMsg(message: _61.Tip): _61.TipAminoMsg; - fromProtoMsg(message: _61.TipProtoMsg): _61.Tip; - toProto(message: _61.Tip): Uint8Array; - toProtoMsg(message: _61.Tip): _61.TipProtoMsg; - }; - AuxSignerData: { - typeUrl: string; - encode(message: _61.AuxSignerData, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _61.AuxSignerData; - fromPartial(object: Partial<_61.AuxSignerData>): _61.AuxSignerData; - fromAmino(object: _61.AuxSignerDataAmino): _61.AuxSignerData; - toAmino(message: _61.AuxSignerData): _61.AuxSignerDataAmino; - fromAminoMsg(object: _61.AuxSignerDataAminoMsg): _61.AuxSignerData; - toAminoMsg(message: _61.AuxSignerData): _61.AuxSignerDataAminoMsg; - fromProtoMsg(message: _61.AuxSignerDataProtoMsg): _61.AuxSignerData; - toProto(message: _61.AuxSignerData): Uint8Array; - toProtoMsg(message: _61.AuxSignerData): _61.AuxSignerDataProtoMsg; - }; - orderByFromJSON(object: any): _60.OrderBy; - orderByToJSON(object: _60.OrderBy): string; - broadcastModeFromJSON(object: any): _60.BroadcastMode; - broadcastModeToJSON(object: _60.BroadcastMode): string; - OrderBy: typeof _60.OrderBy; - OrderBySDKType: typeof _60.OrderBy; - OrderByAmino: typeof _60.OrderBy; - BroadcastMode: typeof _60.BroadcastMode; - BroadcastModeSDKType: typeof _60.BroadcastMode; - BroadcastModeAmino: typeof _60.BroadcastMode; - GetTxsEventRequest: { - typeUrl: string; - encode(message: _60.GetTxsEventRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxsEventRequest; - fromPartial(object: Partial<_60.GetTxsEventRequest>): _60.GetTxsEventRequest; - fromAmino(object: _60.GetTxsEventRequestAmino): _60.GetTxsEventRequest; - toAmino(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestAmino; - fromAminoMsg(object: _60.GetTxsEventRequestAminoMsg): _60.GetTxsEventRequest; - toAminoMsg(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestAminoMsg; - fromProtoMsg(message: _60.GetTxsEventRequestProtoMsg): _60.GetTxsEventRequest; - toProto(message: _60.GetTxsEventRequest): Uint8Array; - toProtoMsg(message: _60.GetTxsEventRequest): _60.GetTxsEventRequestProtoMsg; - }; - GetTxsEventResponse: { - typeUrl: string; - encode(message: _60.GetTxsEventResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxsEventResponse; - fromPartial(object: Partial<_60.GetTxsEventResponse>): _60.GetTxsEventResponse; - fromAmino(object: _60.GetTxsEventResponseAmino): _60.GetTxsEventResponse; - toAmino(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseAmino; - fromAminoMsg(object: _60.GetTxsEventResponseAminoMsg): _60.GetTxsEventResponse; - toAminoMsg(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseAminoMsg; - fromProtoMsg(message: _60.GetTxsEventResponseProtoMsg): _60.GetTxsEventResponse; - toProto(message: _60.GetTxsEventResponse): Uint8Array; - toProtoMsg(message: _60.GetTxsEventResponse): _60.GetTxsEventResponseProtoMsg; - }; - BroadcastTxRequest: { - typeUrl: string; - encode(message: _60.BroadcastTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.BroadcastTxRequest; - fromPartial(object: Partial<_60.BroadcastTxRequest>): _60.BroadcastTxRequest; - fromAmino(object: _60.BroadcastTxRequestAmino): _60.BroadcastTxRequest; - toAmino(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestAmino; - fromAminoMsg(object: _60.BroadcastTxRequestAminoMsg): _60.BroadcastTxRequest; - toAminoMsg(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestAminoMsg; - fromProtoMsg(message: _60.BroadcastTxRequestProtoMsg): _60.BroadcastTxRequest; - toProto(message: _60.BroadcastTxRequest): Uint8Array; - toProtoMsg(message: _60.BroadcastTxRequest): _60.BroadcastTxRequestProtoMsg; - }; - BroadcastTxResponse: { - typeUrl: string; - encode(message: _60.BroadcastTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.BroadcastTxResponse; - fromPartial(object: Partial<_60.BroadcastTxResponse>): _60.BroadcastTxResponse; - fromAmino(object: _60.BroadcastTxResponseAmino): _60.BroadcastTxResponse; - toAmino(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseAmino; - fromAminoMsg(object: _60.BroadcastTxResponseAminoMsg): _60.BroadcastTxResponse; - toAminoMsg(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseAminoMsg; - fromProtoMsg(message: _60.BroadcastTxResponseProtoMsg): _60.BroadcastTxResponse; - toProto(message: _60.BroadcastTxResponse): Uint8Array; - toProtoMsg(message: _60.BroadcastTxResponse): _60.BroadcastTxResponseProtoMsg; - }; - SimulateRequest: { - typeUrl: string; - encode(message: _60.SimulateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.SimulateRequest; - fromPartial(object: Partial<_60.SimulateRequest>): _60.SimulateRequest; - fromAmino(object: _60.SimulateRequestAmino): _60.SimulateRequest; - toAmino(message: _60.SimulateRequest): _60.SimulateRequestAmino; - fromAminoMsg(object: _60.SimulateRequestAminoMsg): _60.SimulateRequest; - toAminoMsg(message: _60.SimulateRequest): _60.SimulateRequestAminoMsg; - fromProtoMsg(message: _60.SimulateRequestProtoMsg): _60.SimulateRequest; - toProto(message: _60.SimulateRequest): Uint8Array; - toProtoMsg(message: _60.SimulateRequest): _60.SimulateRequestProtoMsg; - }; - SimulateResponse: { - typeUrl: string; - encode(message: _60.SimulateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.SimulateResponse; - fromPartial(object: Partial<_60.SimulateResponse>): _60.SimulateResponse; - fromAmino(object: _60.SimulateResponseAmino): _60.SimulateResponse; - toAmino(message: _60.SimulateResponse): _60.SimulateResponseAmino; - fromAminoMsg(object: _60.SimulateResponseAminoMsg): _60.SimulateResponse; - toAminoMsg(message: _60.SimulateResponse): _60.SimulateResponseAminoMsg; - fromProtoMsg(message: _60.SimulateResponseProtoMsg): _60.SimulateResponse; - toProto(message: _60.SimulateResponse): Uint8Array; - toProtoMsg(message: _60.SimulateResponse): _60.SimulateResponseProtoMsg; - }; - GetTxRequest: { - typeUrl: string; - encode(message: _60.GetTxRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxRequest; - fromPartial(object: Partial<_60.GetTxRequest>): _60.GetTxRequest; - fromAmino(object: _60.GetTxRequestAmino): _60.GetTxRequest; - toAmino(message: _60.GetTxRequest): _60.GetTxRequestAmino; - fromAminoMsg(object: _60.GetTxRequestAminoMsg): _60.GetTxRequest; - toAminoMsg(message: _60.GetTxRequest): _60.GetTxRequestAminoMsg; - fromProtoMsg(message: _60.GetTxRequestProtoMsg): _60.GetTxRequest; - toProto(message: _60.GetTxRequest): Uint8Array; - toProtoMsg(message: _60.GetTxRequest): _60.GetTxRequestProtoMsg; - }; - GetTxResponse: { - typeUrl: string; - encode(message: _60.GetTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetTxResponse; - fromPartial(object: Partial<_60.GetTxResponse>): _60.GetTxResponse; - fromAmino(object: _60.GetTxResponseAmino): _60.GetTxResponse; - toAmino(message: _60.GetTxResponse): _60.GetTxResponseAmino; - fromAminoMsg(object: _60.GetTxResponseAminoMsg): _60.GetTxResponse; - toAminoMsg(message: _60.GetTxResponse): _60.GetTxResponseAminoMsg; - fromProtoMsg(message: _60.GetTxResponseProtoMsg): _60.GetTxResponse; - toProto(message: _60.GetTxResponse): Uint8Array; - toProtoMsg(message: _60.GetTxResponse): _60.GetTxResponseProtoMsg; - }; - GetBlockWithTxsRequest: { - typeUrl: string; - encode(message: _60.GetBlockWithTxsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetBlockWithTxsRequest; - fromPartial(object: Partial<_60.GetBlockWithTxsRequest>): _60.GetBlockWithTxsRequest; - fromAmino(object: _60.GetBlockWithTxsRequestAmino): _60.GetBlockWithTxsRequest; - toAmino(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestAmino; - fromAminoMsg(object: _60.GetBlockWithTxsRequestAminoMsg): _60.GetBlockWithTxsRequest; - toAminoMsg(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestAminoMsg; - fromProtoMsg(message: _60.GetBlockWithTxsRequestProtoMsg): _60.GetBlockWithTxsRequest; - toProto(message: _60.GetBlockWithTxsRequest): Uint8Array; - toProtoMsg(message: _60.GetBlockWithTxsRequest): _60.GetBlockWithTxsRequestProtoMsg; - }; - GetBlockWithTxsResponse: { - typeUrl: string; - encode(message: _60.GetBlockWithTxsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _60.GetBlockWithTxsResponse; - fromPartial(object: Partial<_60.GetBlockWithTxsResponse>): _60.GetBlockWithTxsResponse; - fromAmino(object: _60.GetBlockWithTxsResponseAmino): _60.GetBlockWithTxsResponse; - toAmino(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseAmino; - fromAminoMsg(object: _60.GetBlockWithTxsResponseAminoMsg): _60.GetBlockWithTxsResponse; - toAminoMsg(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseAminoMsg; - fromProtoMsg(message: _60.GetBlockWithTxsResponseProtoMsg): _60.GetBlockWithTxsResponse; - toProto(message: _60.GetBlockWithTxsResponse): Uint8Array; - toProtoMsg(message: _60.GetBlockWithTxsResponse): _60.GetBlockWithTxsResponseProtoMsg; - }; - }; - } - namespace upgrade { - const v1beta1: { - MsgClientImpl: typeof _175.MsgClientImpl; - QueryClientImpl: typeof _166.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - currentPlan(request?: _62.QueryCurrentPlanRequest): Promise<_62.QueryCurrentPlanResponse>; - appliedPlan(request: _62.QueryAppliedPlanRequest): Promise<_62.QueryAppliedPlanResponse>; - upgradedConsensusState(request: _62.QueryUpgradedConsensusStateRequest): Promise<_62.QueryUpgradedConsensusStateResponse>; - moduleVersions(request: _62.QueryModuleVersionsRequest): Promise<_62.QueryModuleVersionsResponse>; - authority(request?: _62.QueryAuthorityRequest): Promise<_62.QueryAuthorityResponse>; - }; - LCDQueryClient: typeof _152.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - softwareUpgrade(value: _63.MsgSoftwareUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - cancelUpgrade(value: _63.MsgCancelUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - softwareUpgrade(value: _63.MsgSoftwareUpgrade): { - typeUrl: string; - value: _63.MsgSoftwareUpgrade; - }; - cancelUpgrade(value: _63.MsgCancelUpgrade): { - typeUrl: string; - value: _63.MsgCancelUpgrade; - }; - }; - fromPartial: { - softwareUpgrade(value: _63.MsgSoftwareUpgrade): { - typeUrl: string; - value: _63.MsgSoftwareUpgrade; - }; - cancelUpgrade(value: _63.MsgCancelUpgrade): { - typeUrl: string; - value: _63.MsgCancelUpgrade; - }; - }; - }; - AminoConverter: { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: _63.MsgSoftwareUpgrade) => _63.MsgSoftwareUpgradeAmino; - fromAmino: (object: _63.MsgSoftwareUpgradeAmino) => _63.MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: _63.MsgCancelUpgrade) => _63.MsgCancelUpgradeAmino; - fromAmino: (object: _63.MsgCancelUpgradeAmino) => _63.MsgCancelUpgrade; - }; - }; - Plan: { - typeUrl: string; - encode(message: _64.Plan, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.Plan; - fromPartial(object: Partial<_64.Plan>): _64.Plan; - fromAmino(object: _64.PlanAmino): _64.Plan; - toAmino(message: _64.Plan): _64.PlanAmino; - fromAminoMsg(object: _64.PlanAminoMsg): _64.Plan; - toAminoMsg(message: _64.Plan): _64.PlanAminoMsg; - fromProtoMsg(message: _64.PlanProtoMsg): _64.Plan; - toProto(message: _64.Plan): Uint8Array; - toProtoMsg(message: _64.Plan): _64.PlanProtoMsg; - }; - SoftwareUpgradeProposal: { - typeUrl: string; - encode(message: _64.SoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.SoftwareUpgradeProposal; - fromPartial(object: Partial<_64.SoftwareUpgradeProposal>): _64.SoftwareUpgradeProposal; - fromAmino(object: _64.SoftwareUpgradeProposalAmino): _64.SoftwareUpgradeProposal; - toAmino(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalAmino; - fromAminoMsg(object: _64.SoftwareUpgradeProposalAminoMsg): _64.SoftwareUpgradeProposal; - toAminoMsg(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: _64.SoftwareUpgradeProposalProtoMsg): _64.SoftwareUpgradeProposal; - toProto(message: _64.SoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: _64.SoftwareUpgradeProposal): _64.SoftwareUpgradeProposalProtoMsg; - }; - CancelSoftwareUpgradeProposal: { - typeUrl: string; - encode(message: _64.CancelSoftwareUpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.CancelSoftwareUpgradeProposal; - fromPartial(object: Partial<_64.CancelSoftwareUpgradeProposal>): _64.CancelSoftwareUpgradeProposal; - fromAmino(object: _64.CancelSoftwareUpgradeProposalAmino): _64.CancelSoftwareUpgradeProposal; - toAmino(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalAmino; - fromAminoMsg(object: _64.CancelSoftwareUpgradeProposalAminoMsg): _64.CancelSoftwareUpgradeProposal; - toAminoMsg(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: _64.CancelSoftwareUpgradeProposalProtoMsg): _64.CancelSoftwareUpgradeProposal; - toProto(message: _64.CancelSoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: _64.CancelSoftwareUpgradeProposal): _64.CancelSoftwareUpgradeProposalProtoMsg; - }; - ModuleVersion: { - typeUrl: string; - encode(message: _64.ModuleVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _64.ModuleVersion; - fromPartial(object: Partial<_64.ModuleVersion>): _64.ModuleVersion; - fromAmino(object: _64.ModuleVersionAmino): _64.ModuleVersion; - toAmino(message: _64.ModuleVersion): _64.ModuleVersionAmino; - fromAminoMsg(object: _64.ModuleVersionAminoMsg): _64.ModuleVersion; - toAminoMsg(message: _64.ModuleVersion): _64.ModuleVersionAminoMsg; - fromProtoMsg(message: _64.ModuleVersionProtoMsg): _64.ModuleVersion; - toProto(message: _64.ModuleVersion): Uint8Array; - toProtoMsg(message: _64.ModuleVersion): _64.ModuleVersionProtoMsg; - }; - MsgSoftwareUpgrade: { - typeUrl: string; - encode(message: _63.MsgSoftwareUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgSoftwareUpgrade; - fromPartial(object: Partial<_63.MsgSoftwareUpgrade>): _63.MsgSoftwareUpgrade; - fromAmino(object: _63.MsgSoftwareUpgradeAmino): _63.MsgSoftwareUpgrade; - toAmino(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeAmino; - fromAminoMsg(object: _63.MsgSoftwareUpgradeAminoMsg): _63.MsgSoftwareUpgrade; - toAminoMsg(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeAminoMsg; - fromProtoMsg(message: _63.MsgSoftwareUpgradeProtoMsg): _63.MsgSoftwareUpgrade; - toProto(message: _63.MsgSoftwareUpgrade): Uint8Array; - toProtoMsg(message: _63.MsgSoftwareUpgrade): _63.MsgSoftwareUpgradeProtoMsg; - }; - MsgSoftwareUpgradeResponse: { - typeUrl: string; - encode(_: _63.MsgSoftwareUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgSoftwareUpgradeResponse; - fromPartial(_: Partial<_63.MsgSoftwareUpgradeResponse>): _63.MsgSoftwareUpgradeResponse; - fromAmino(_: _63.MsgSoftwareUpgradeResponseAmino): _63.MsgSoftwareUpgradeResponse; - toAmino(_: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseAmino; - fromAminoMsg(object: _63.MsgSoftwareUpgradeResponseAminoMsg): _63.MsgSoftwareUpgradeResponse; - toAminoMsg(message: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseAminoMsg; - fromProtoMsg(message: _63.MsgSoftwareUpgradeResponseProtoMsg): _63.MsgSoftwareUpgradeResponse; - toProto(message: _63.MsgSoftwareUpgradeResponse): Uint8Array; - toProtoMsg(message: _63.MsgSoftwareUpgradeResponse): _63.MsgSoftwareUpgradeResponseProtoMsg; - }; - MsgCancelUpgrade: { - typeUrl: string; - encode(message: _63.MsgCancelUpgrade, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgCancelUpgrade; - fromPartial(object: Partial<_63.MsgCancelUpgrade>): _63.MsgCancelUpgrade; - fromAmino(object: _63.MsgCancelUpgradeAmino): _63.MsgCancelUpgrade; - toAmino(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeAmino; - fromAminoMsg(object: _63.MsgCancelUpgradeAminoMsg): _63.MsgCancelUpgrade; - toAminoMsg(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeAminoMsg; - fromProtoMsg(message: _63.MsgCancelUpgradeProtoMsg): _63.MsgCancelUpgrade; - toProto(message: _63.MsgCancelUpgrade): Uint8Array; - toProtoMsg(message: _63.MsgCancelUpgrade): _63.MsgCancelUpgradeProtoMsg; - }; - MsgCancelUpgradeResponse: { - typeUrl: string; - encode(_: _63.MsgCancelUpgradeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _63.MsgCancelUpgradeResponse; - fromPartial(_: Partial<_63.MsgCancelUpgradeResponse>): _63.MsgCancelUpgradeResponse; - fromAmino(_: _63.MsgCancelUpgradeResponseAmino): _63.MsgCancelUpgradeResponse; - toAmino(_: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseAmino; - fromAminoMsg(object: _63.MsgCancelUpgradeResponseAminoMsg): _63.MsgCancelUpgradeResponse; - toAminoMsg(message: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseAminoMsg; - fromProtoMsg(message: _63.MsgCancelUpgradeResponseProtoMsg): _63.MsgCancelUpgradeResponse; - toProto(message: _63.MsgCancelUpgradeResponse): Uint8Array; - toProtoMsg(message: _63.MsgCancelUpgradeResponse): _63.MsgCancelUpgradeResponseProtoMsg; - }; - QueryCurrentPlanRequest: { - typeUrl: string; - encode(_: _62.QueryCurrentPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryCurrentPlanRequest; - fromPartial(_: Partial<_62.QueryCurrentPlanRequest>): _62.QueryCurrentPlanRequest; - fromAmino(_: _62.QueryCurrentPlanRequestAmino): _62.QueryCurrentPlanRequest; - toAmino(_: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestAmino; - fromAminoMsg(object: _62.QueryCurrentPlanRequestAminoMsg): _62.QueryCurrentPlanRequest; - toAminoMsg(message: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestAminoMsg; - fromProtoMsg(message: _62.QueryCurrentPlanRequestProtoMsg): _62.QueryCurrentPlanRequest; - toProto(message: _62.QueryCurrentPlanRequest): Uint8Array; - toProtoMsg(message: _62.QueryCurrentPlanRequest): _62.QueryCurrentPlanRequestProtoMsg; - }; - QueryCurrentPlanResponse: { - typeUrl: string; - encode(message: _62.QueryCurrentPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryCurrentPlanResponse; - fromPartial(object: Partial<_62.QueryCurrentPlanResponse>): _62.QueryCurrentPlanResponse; - fromAmino(object: _62.QueryCurrentPlanResponseAmino): _62.QueryCurrentPlanResponse; - toAmino(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseAmino; - fromAminoMsg(object: _62.QueryCurrentPlanResponseAminoMsg): _62.QueryCurrentPlanResponse; - toAminoMsg(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseAminoMsg; - fromProtoMsg(message: _62.QueryCurrentPlanResponseProtoMsg): _62.QueryCurrentPlanResponse; - toProto(message: _62.QueryCurrentPlanResponse): Uint8Array; - toProtoMsg(message: _62.QueryCurrentPlanResponse): _62.QueryCurrentPlanResponseProtoMsg; - }; - QueryAppliedPlanRequest: { - typeUrl: string; - encode(message: _62.QueryAppliedPlanRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAppliedPlanRequest; - fromPartial(object: Partial<_62.QueryAppliedPlanRequest>): _62.QueryAppliedPlanRequest; - fromAmino(object: _62.QueryAppliedPlanRequestAmino): _62.QueryAppliedPlanRequest; - toAmino(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestAmino; - fromAminoMsg(object: _62.QueryAppliedPlanRequestAminoMsg): _62.QueryAppliedPlanRequest; - toAminoMsg(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestAminoMsg; - fromProtoMsg(message: _62.QueryAppliedPlanRequestProtoMsg): _62.QueryAppliedPlanRequest; - toProto(message: _62.QueryAppliedPlanRequest): Uint8Array; - toProtoMsg(message: _62.QueryAppliedPlanRequest): _62.QueryAppliedPlanRequestProtoMsg; - }; - QueryAppliedPlanResponse: { - typeUrl: string; - encode(message: _62.QueryAppliedPlanResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAppliedPlanResponse; - fromPartial(object: Partial<_62.QueryAppliedPlanResponse>): _62.QueryAppliedPlanResponse; - fromAmino(object: _62.QueryAppliedPlanResponseAmino): _62.QueryAppliedPlanResponse; - toAmino(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseAmino; - fromAminoMsg(object: _62.QueryAppliedPlanResponseAminoMsg): _62.QueryAppliedPlanResponse; - toAminoMsg(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseAminoMsg; - fromProtoMsg(message: _62.QueryAppliedPlanResponseProtoMsg): _62.QueryAppliedPlanResponse; - toProto(message: _62.QueryAppliedPlanResponse): Uint8Array; - toProtoMsg(message: _62.QueryAppliedPlanResponse): _62.QueryAppliedPlanResponseProtoMsg; - }; - QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(message: _62.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryUpgradedConsensusStateRequest; - fromPartial(object: Partial<_62.QueryUpgradedConsensusStateRequest>): _62.QueryUpgradedConsensusStateRequest; - fromAmino(object: _62.QueryUpgradedConsensusStateRequestAmino): _62.QueryUpgradedConsensusStateRequest; - toAmino(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: _62.QueryUpgradedConsensusStateRequestAminoMsg): _62.QueryUpgradedConsensusStateRequest; - toAminoMsg(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: _62.QueryUpgradedConsensusStateRequestProtoMsg): _62.QueryUpgradedConsensusStateRequest; - toProto(message: _62.QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: _62.QueryUpgradedConsensusStateRequest): _62.QueryUpgradedConsensusStateRequestProtoMsg; - }; - QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: _62.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryUpgradedConsensusStateResponse; - fromPartial(object: Partial<_62.QueryUpgradedConsensusStateResponse>): _62.QueryUpgradedConsensusStateResponse; - fromAmino(object: _62.QueryUpgradedConsensusStateResponseAmino): _62.QueryUpgradedConsensusStateResponse; - toAmino(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: _62.QueryUpgradedConsensusStateResponseAminoMsg): _62.QueryUpgradedConsensusStateResponse; - toAminoMsg(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: _62.QueryUpgradedConsensusStateResponseProtoMsg): _62.QueryUpgradedConsensusStateResponse; - toProto(message: _62.QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: _62.QueryUpgradedConsensusStateResponse): _62.QueryUpgradedConsensusStateResponseProtoMsg; - }; - QueryModuleVersionsRequest: { - typeUrl: string; - encode(message: _62.QueryModuleVersionsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryModuleVersionsRequest; - fromPartial(object: Partial<_62.QueryModuleVersionsRequest>): _62.QueryModuleVersionsRequest; - fromAmino(object: _62.QueryModuleVersionsRequestAmino): _62.QueryModuleVersionsRequest; - toAmino(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestAmino; - fromAminoMsg(object: _62.QueryModuleVersionsRequestAminoMsg): _62.QueryModuleVersionsRequest; - toAminoMsg(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestAminoMsg; - fromProtoMsg(message: _62.QueryModuleVersionsRequestProtoMsg): _62.QueryModuleVersionsRequest; - toProto(message: _62.QueryModuleVersionsRequest): Uint8Array; - toProtoMsg(message: _62.QueryModuleVersionsRequest): _62.QueryModuleVersionsRequestProtoMsg; - }; - QueryModuleVersionsResponse: { - typeUrl: string; - encode(message: _62.QueryModuleVersionsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryModuleVersionsResponse; - fromPartial(object: Partial<_62.QueryModuleVersionsResponse>): _62.QueryModuleVersionsResponse; - fromAmino(object: _62.QueryModuleVersionsResponseAmino): _62.QueryModuleVersionsResponse; - toAmino(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseAmino; - fromAminoMsg(object: _62.QueryModuleVersionsResponseAminoMsg): _62.QueryModuleVersionsResponse; - toAminoMsg(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseAminoMsg; - fromProtoMsg(message: _62.QueryModuleVersionsResponseProtoMsg): _62.QueryModuleVersionsResponse; - toProto(message: _62.QueryModuleVersionsResponse): Uint8Array; - toProtoMsg(message: _62.QueryModuleVersionsResponse): _62.QueryModuleVersionsResponseProtoMsg; - }; - QueryAuthorityRequest: { - typeUrl: string; - encode(_: _62.QueryAuthorityRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAuthorityRequest; - fromPartial(_: Partial<_62.QueryAuthorityRequest>): _62.QueryAuthorityRequest; - fromAmino(_: _62.QueryAuthorityRequestAmino): _62.QueryAuthorityRequest; - toAmino(_: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestAmino; - fromAminoMsg(object: _62.QueryAuthorityRequestAminoMsg): _62.QueryAuthorityRequest; - toAminoMsg(message: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestAminoMsg; - fromProtoMsg(message: _62.QueryAuthorityRequestProtoMsg): _62.QueryAuthorityRequest; - toProto(message: _62.QueryAuthorityRequest): Uint8Array; - toProtoMsg(message: _62.QueryAuthorityRequest): _62.QueryAuthorityRequestProtoMsg; - }; - QueryAuthorityResponse: { - typeUrl: string; - encode(message: _62.QueryAuthorityResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _62.QueryAuthorityResponse; - fromPartial(object: Partial<_62.QueryAuthorityResponse>): _62.QueryAuthorityResponse; - fromAmino(object: _62.QueryAuthorityResponseAmino): _62.QueryAuthorityResponse; - toAmino(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseAmino; - fromAminoMsg(object: _62.QueryAuthorityResponseAminoMsg): _62.QueryAuthorityResponse; - toAminoMsg(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseAminoMsg; - fromProtoMsg(message: _62.QueryAuthorityResponseProtoMsg): _62.QueryAuthorityResponse; - toProto(message: _62.QueryAuthorityResponse): Uint8Array; - toProtoMsg(message: _62.QueryAuthorityResponse): _62.QueryAuthorityResponseProtoMsg; - }; - }; - } - namespace vesting { - const v1beta1: { - MsgClientImpl: typeof _176.MsgClientImpl; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createVestingAccount(value: _65.MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createVestingAccount(value: _65.MsgCreateVestingAccount): { - typeUrl: string; - value: _65.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _65.MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _65.MsgCreatePeriodicVestingAccount; - }; - }; - fromPartial: { - createVestingAccount(value: _65.MsgCreateVestingAccount): { - typeUrl: string; - value: _65.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: _65.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _65.MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: _65.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _65.MsgCreatePeriodicVestingAccount; - }; - }; - }; - AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: _65.MsgCreateVestingAccount) => _65.MsgCreateVestingAccountAmino; - fromAmino: (object: _65.MsgCreateVestingAccountAmino) => _65.MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: _65.MsgCreatePermanentLockedAccount) => _65.MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: _65.MsgCreatePermanentLockedAccountAmino) => _65.MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: _65.MsgCreatePeriodicVestingAccount) => _65.MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: _65.MsgCreatePeriodicVestingAccountAmino) => _65.MsgCreatePeriodicVestingAccount; - }; - }; - BaseVestingAccount: { - typeUrl: string; - encode(message: _66.BaseVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.BaseVestingAccount; - fromPartial(object: Partial<_66.BaseVestingAccount>): _66.BaseVestingAccount; - fromAmino(object: _66.BaseVestingAccountAmino): _66.BaseVestingAccount; - toAmino(message: _66.BaseVestingAccount): _66.BaseVestingAccountAmino; - fromAminoMsg(object: _66.BaseVestingAccountAminoMsg): _66.BaseVestingAccount; - toAminoMsg(message: _66.BaseVestingAccount): _66.BaseVestingAccountAminoMsg; - fromProtoMsg(message: _66.BaseVestingAccountProtoMsg): _66.BaseVestingAccount; - toProto(message: _66.BaseVestingAccount): Uint8Array; - toProtoMsg(message: _66.BaseVestingAccount): _66.BaseVestingAccountProtoMsg; - }; - ContinuousVestingAccount: { - typeUrl: string; - encode(message: _66.ContinuousVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.ContinuousVestingAccount; - fromPartial(object: Partial<_66.ContinuousVestingAccount>): _66.ContinuousVestingAccount; - fromAmino(object: _66.ContinuousVestingAccountAmino): _66.ContinuousVestingAccount; - toAmino(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountAmino; - fromAminoMsg(object: _66.ContinuousVestingAccountAminoMsg): _66.ContinuousVestingAccount; - toAminoMsg(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountAminoMsg; - fromProtoMsg(message: _66.ContinuousVestingAccountProtoMsg): _66.ContinuousVestingAccount; - toProto(message: _66.ContinuousVestingAccount): Uint8Array; - toProtoMsg(message: _66.ContinuousVestingAccount): _66.ContinuousVestingAccountProtoMsg; - }; - DelayedVestingAccount: { - typeUrl: string; - encode(message: _66.DelayedVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.DelayedVestingAccount; - fromPartial(object: Partial<_66.DelayedVestingAccount>): _66.DelayedVestingAccount; - fromAmino(object: _66.DelayedVestingAccountAmino): _66.DelayedVestingAccount; - toAmino(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountAmino; - fromAminoMsg(object: _66.DelayedVestingAccountAminoMsg): _66.DelayedVestingAccount; - toAminoMsg(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountAminoMsg; - fromProtoMsg(message: _66.DelayedVestingAccountProtoMsg): _66.DelayedVestingAccount; - toProto(message: _66.DelayedVestingAccount): Uint8Array; - toProtoMsg(message: _66.DelayedVestingAccount): _66.DelayedVestingAccountProtoMsg; - }; - Period: { - typeUrl: string; - encode(message: _66.Period, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.Period; - fromPartial(object: Partial<_66.Period>): _66.Period; - fromAmino(object: _66.PeriodAmino): _66.Period; - toAmino(message: _66.Period): _66.PeriodAmino; - fromAminoMsg(object: _66.PeriodAminoMsg): _66.Period; - toAminoMsg(message: _66.Period): _66.PeriodAminoMsg; - fromProtoMsg(message: _66.PeriodProtoMsg): _66.Period; - toProto(message: _66.Period): Uint8Array; - toProtoMsg(message: _66.Period): _66.PeriodProtoMsg; - }; - PeriodicVestingAccount: { - typeUrl: string; - encode(message: _66.PeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.PeriodicVestingAccount; - fromPartial(object: Partial<_66.PeriodicVestingAccount>): _66.PeriodicVestingAccount; - fromAmino(object: _66.PeriodicVestingAccountAmino): _66.PeriodicVestingAccount; - toAmino(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountAmino; - fromAminoMsg(object: _66.PeriodicVestingAccountAminoMsg): _66.PeriodicVestingAccount; - toAminoMsg(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountAminoMsg; - fromProtoMsg(message: _66.PeriodicVestingAccountProtoMsg): _66.PeriodicVestingAccount; - toProto(message: _66.PeriodicVestingAccount): Uint8Array; - toProtoMsg(message: _66.PeriodicVestingAccount): _66.PeriodicVestingAccountProtoMsg; - }; - PermanentLockedAccount: { - typeUrl: string; - encode(message: _66.PermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _66.PermanentLockedAccount; - fromPartial(object: Partial<_66.PermanentLockedAccount>): _66.PermanentLockedAccount; - fromAmino(object: _66.PermanentLockedAccountAmino): _66.PermanentLockedAccount; - toAmino(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountAmino; - fromAminoMsg(object: _66.PermanentLockedAccountAminoMsg): _66.PermanentLockedAccount; - toAminoMsg(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountAminoMsg; - fromProtoMsg(message: _66.PermanentLockedAccountProtoMsg): _66.PermanentLockedAccount; - toProto(message: _66.PermanentLockedAccount): Uint8Array; - toProtoMsg(message: _66.PermanentLockedAccount): _66.PermanentLockedAccountProtoMsg; - }; - MsgCreateVestingAccount: { - typeUrl: string; - encode(message: _65.MsgCreateVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreateVestingAccount; - fromPartial(object: Partial<_65.MsgCreateVestingAccount>): _65.MsgCreateVestingAccount; - fromAmino(object: _65.MsgCreateVestingAccountAmino): _65.MsgCreateVestingAccount; - toAmino(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountAmino; - fromAminoMsg(object: _65.MsgCreateVestingAccountAminoMsg): _65.MsgCreateVestingAccount; - toAminoMsg(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountAminoMsg; - fromProtoMsg(message: _65.MsgCreateVestingAccountProtoMsg): _65.MsgCreateVestingAccount; - toProto(message: _65.MsgCreateVestingAccount): Uint8Array; - toProtoMsg(message: _65.MsgCreateVestingAccount): _65.MsgCreateVestingAccountProtoMsg; - }; - MsgCreateVestingAccountResponse: { - typeUrl: string; - encode(_: _65.MsgCreateVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreateVestingAccountResponse; - fromPartial(_: Partial<_65.MsgCreateVestingAccountResponse>): _65.MsgCreateVestingAccountResponse; - fromAmino(_: _65.MsgCreateVestingAccountResponseAmino): _65.MsgCreateVestingAccountResponse; - toAmino(_: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseAmino; - fromAminoMsg(object: _65.MsgCreateVestingAccountResponseAminoMsg): _65.MsgCreateVestingAccountResponse; - toAminoMsg(message: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreateVestingAccountResponseProtoMsg): _65.MsgCreateVestingAccountResponse; - toProto(message: _65.MsgCreateVestingAccountResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreateVestingAccountResponse): _65.MsgCreateVestingAccountResponseProtoMsg; - }; - MsgCreatePermanentLockedAccount: { - typeUrl: string; - encode(message: _65.MsgCreatePermanentLockedAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePermanentLockedAccount; - fromPartial(object: Partial<_65.MsgCreatePermanentLockedAccount>): _65.MsgCreatePermanentLockedAccount; - fromAmino(object: _65.MsgCreatePermanentLockedAccountAmino): _65.MsgCreatePermanentLockedAccount; - toAmino(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountAmino; - fromAminoMsg(object: _65.MsgCreatePermanentLockedAccountAminoMsg): _65.MsgCreatePermanentLockedAccount; - toAminoMsg(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountAminoMsg; - fromProtoMsg(message: _65.MsgCreatePermanentLockedAccountProtoMsg): _65.MsgCreatePermanentLockedAccount; - toProto(message: _65.MsgCreatePermanentLockedAccount): Uint8Array; - toProtoMsg(message: _65.MsgCreatePermanentLockedAccount): _65.MsgCreatePermanentLockedAccountProtoMsg; - }; - MsgCreatePermanentLockedAccountResponse: { - typeUrl: string; - encode(_: _65.MsgCreatePermanentLockedAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePermanentLockedAccountResponse; - fromPartial(_: Partial<_65.MsgCreatePermanentLockedAccountResponse>): _65.MsgCreatePermanentLockedAccountResponse; - fromAmino(_: _65.MsgCreatePermanentLockedAccountResponseAmino): _65.MsgCreatePermanentLockedAccountResponse; - toAmino(_: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseAmino; - fromAminoMsg(object: _65.MsgCreatePermanentLockedAccountResponseAminoMsg): _65.MsgCreatePermanentLockedAccountResponse; - toAminoMsg(message: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreatePermanentLockedAccountResponseProtoMsg): _65.MsgCreatePermanentLockedAccountResponse; - toProto(message: _65.MsgCreatePermanentLockedAccountResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreatePermanentLockedAccountResponse): _65.MsgCreatePermanentLockedAccountResponseProtoMsg; - }; - MsgCreatePeriodicVestingAccount: { - typeUrl: string; - encode(message: _65.MsgCreatePeriodicVestingAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePeriodicVestingAccount; - fromPartial(object: Partial<_65.MsgCreatePeriodicVestingAccount>): _65.MsgCreatePeriodicVestingAccount; - fromAmino(object: _65.MsgCreatePeriodicVestingAccountAmino): _65.MsgCreatePeriodicVestingAccount; - toAmino(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountAmino; - fromAminoMsg(object: _65.MsgCreatePeriodicVestingAccountAminoMsg): _65.MsgCreatePeriodicVestingAccount; - toAminoMsg(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountAminoMsg; - fromProtoMsg(message: _65.MsgCreatePeriodicVestingAccountProtoMsg): _65.MsgCreatePeriodicVestingAccount; - toProto(message: _65.MsgCreatePeriodicVestingAccount): Uint8Array; - toProtoMsg(message: _65.MsgCreatePeriodicVestingAccount): _65.MsgCreatePeriodicVestingAccountProtoMsg; - }; - MsgCreatePeriodicVestingAccountResponse: { - typeUrl: string; - encode(_: _65.MsgCreatePeriodicVestingAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _65.MsgCreatePeriodicVestingAccountResponse; - fromPartial(_: Partial<_65.MsgCreatePeriodicVestingAccountResponse>): _65.MsgCreatePeriodicVestingAccountResponse; - fromAmino(_: _65.MsgCreatePeriodicVestingAccountResponseAmino): _65.MsgCreatePeriodicVestingAccountResponse; - toAmino(_: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseAmino; - fromAminoMsg(object: _65.MsgCreatePeriodicVestingAccountResponseAminoMsg): _65.MsgCreatePeriodicVestingAccountResponse; - toAminoMsg(message: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseAminoMsg; - fromProtoMsg(message: _65.MsgCreatePeriodicVestingAccountResponseProtoMsg): _65.MsgCreatePeriodicVestingAccountResponse; - toProto(message: _65.MsgCreatePeriodicVestingAccountResponse): Uint8Array; - toProtoMsg(message: _65.MsgCreatePeriodicVestingAccountResponse): _65.MsgCreatePeriodicVestingAccountResponseProtoMsg; - }; - }; - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: _167.MsgClientImpl; - }; - bank: { - v1beta1: _168.MsgClientImpl; - }; - distribution: { - v1beta1: _169.MsgClientImpl; - }; - feegrant: { - v1beta1: _170.MsgClientImpl; - }; - gov: { - v1: _171.MsgClientImpl; - v1beta1: _172.MsgClientImpl; - }; - group: { - v1: _173.MsgClientImpl; - }; - staking: { - v1beta1: _174.MsgClientImpl; - }; - upgrade: { - v1beta1: _175.MsgClientImpl; - }; - vesting: { - v1beta1: _176.MsgClientImpl; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: _5.QueryAccountsRequest): Promise<_5.QueryAccountsResponse>; - account(request: _5.QueryAccountRequest): Promise<_5.QueryAccountResponse>; - accountAddressByID(request: _5.QueryAccountAddressByIDRequest): Promise<_5.QueryAccountAddressByIDResponse>; - params(request?: _5.QueryParamsRequest): Promise<_5.QueryParamsResponse>; - moduleAccounts(request?: _5.QueryModuleAccountsRequest): Promise<_5.QueryModuleAccountsResponse>; - moduleAccountByName(request: _5.QueryModuleAccountByNameRequest): Promise<_5.QueryModuleAccountByNameResponse>; - bech32Prefix(request?: _5.Bech32PrefixRequest): Promise<_5.Bech32PrefixResponse>; - addressBytesToString(request: _5.AddressBytesToStringRequest): Promise<_5.AddressBytesToStringResponse>; - addressStringToBytes(request: _5.AddressStringToBytesRequest): Promise<_5.AddressStringToBytesResponse>; - }; - }; - authz: { - v1beta1: { - grants(request: _9.QueryGrantsRequest): Promise<_9.QueryGrantsResponse>; - granterGrants(request: _9.QueryGranterGrantsRequest): Promise<_9.QueryGranterGrantsResponse>; - granteeGrants(request: _9.QueryGranteeGrantsRequest): Promise<_9.QueryGranteeGrantsResponse>; - }; - }; - bank: { - v1beta1: { - balance(request: _14.QueryBalanceRequest): Promise<_14.QueryBalanceResponse>; - allBalances(request: _14.QueryAllBalancesRequest): Promise<_14.QueryAllBalancesResponse>; - spendableBalances(request: _14.QuerySpendableBalancesRequest): Promise<_14.QuerySpendableBalancesResponse>; - totalSupply(request?: _14.QueryTotalSupplyRequest): Promise<_14.QueryTotalSupplyResponse>; - supplyOf(request: _14.QuerySupplyOfRequest): Promise<_14.QuerySupplyOfResponse>; - params(request?: _14.QueryParamsRequest): Promise<_14.QueryParamsResponse>; - denomMetadata(request: _14.QueryDenomMetadataRequest): Promise<_14.QueryDenomMetadataResponse>; - denomsMetadata(request?: _14.QueryDenomsMetadataRequest): Promise<_14.QueryDenomsMetadataResponse>; - denomOwners(request: _14.QueryDenomOwnersRequest): Promise<_14.QueryDenomOwnersResponse>; - }; - }; - base: { - node: { - v1beta1: { - config(request?: _17.ConfigRequest): Promise<_17.ConfigResponse>; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: _29.QueryParamsRequest): Promise<_29.QueryParamsResponse>; - validatorOutstandingRewards(request: _29.QueryValidatorOutstandingRewardsRequest): Promise<_29.QueryValidatorOutstandingRewardsResponse>; - validatorCommission(request: _29.QueryValidatorCommissionRequest): Promise<_29.QueryValidatorCommissionResponse>; - validatorSlashes(request: _29.QueryValidatorSlashesRequest): Promise<_29.QueryValidatorSlashesResponse>; - delegationRewards(request: _29.QueryDelegationRewardsRequest): Promise<_29.QueryDelegationRewardsResponse>; - delegationTotalRewards(request: _29.QueryDelegationTotalRewardsRequest): Promise<_29.QueryDelegationTotalRewardsResponse>; - delegatorValidators(request: _29.QueryDelegatorValidatorsRequest): Promise<_29.QueryDelegatorValidatorsResponse>; - delegatorWithdrawAddress(request: _29.QueryDelegatorWithdrawAddressRequest): Promise<_29.QueryDelegatorWithdrawAddressResponse>; - communityPool(request?: _29.QueryCommunityPoolRequest): Promise<_29.QueryCommunityPoolResponse>; - }; - }; - feegrant: { - v1beta1: { - allowance(request: _33.QueryAllowanceRequest): Promise<_33.QueryAllowanceResponse>; - allowances(request: _33.QueryAllowancesRequest): Promise<_33.QueryAllowancesResponse>; - allowancesByGranter(request: _33.QueryAllowancesByGranterRequest): Promise<_33.QueryAllowancesByGranterResponse>; - }; - }; - gov: { - v1: { - proposal(request: _37.QueryProposalRequest): Promise<_37.QueryProposalResponse>; - proposals(request: _37.QueryProposalsRequest): Promise<_37.QueryProposalsResponse>; - vote(request: _37.QueryVoteRequest): Promise<_37.QueryVoteResponse>; - votes(request: _37.QueryVotesRequest): Promise<_37.QueryVotesResponse>; - params(request: _37.QueryParamsRequest): Promise<_37.QueryParamsResponse>; - deposit(request: _37.QueryDepositRequest): Promise<_37.QueryDepositResponse>; - deposits(request: _37.QueryDepositsRequest): Promise<_37.QueryDepositsResponse>; - tallyResult(request: _37.QueryTallyResultRequest): Promise<_37.QueryTallyResultResponse>; - }; - v1beta1: { - proposal(request: _41.QueryProposalRequest): Promise<_41.QueryProposalResponse>; - proposals(request: _41.QueryProposalsRequest): Promise<_41.QueryProposalsResponse>; - vote(request: _41.QueryVoteRequest): Promise<_41.QueryVoteResponse>; - votes(request: _41.QueryVotesRequest): Promise<_41.QueryVotesResponse>; - params(request: _41.QueryParamsRequest): Promise<_41.QueryParamsResponse>; - deposit(request: _41.QueryDepositRequest): Promise<_41.QueryDepositResponse>; - deposits(request: _41.QueryDepositsRequest): Promise<_41.QueryDepositsResponse>; - tallyResult(request: _41.QueryTallyResultRequest): Promise<_41.QueryTallyResultResponse>; - }; - }; - group: { - v1: { - groupInfo(request: _45.QueryGroupInfoRequest): Promise<_45.QueryGroupInfoResponse>; - groupPolicyInfo(request: _45.QueryGroupPolicyInfoRequest): Promise<_45.QueryGroupPolicyInfoResponse>; - groupMembers(request: _45.QueryGroupMembersRequest): Promise<_45.QueryGroupMembersResponse>; - groupsByAdmin(request: _45.QueryGroupsByAdminRequest): Promise<_45.QueryGroupsByAdminResponse>; - groupPoliciesByGroup(request: _45.QueryGroupPoliciesByGroupRequest): Promise<_45.QueryGroupPoliciesByGroupResponse>; - groupPoliciesByAdmin(request: _45.QueryGroupPoliciesByAdminRequest): Promise<_45.QueryGroupPoliciesByAdminResponse>; - proposal(request: _45.QueryProposalRequest): Promise<_45.QueryProposalResponse>; - proposalsByGroupPolicy(request: _45.QueryProposalsByGroupPolicyRequest): Promise<_45.QueryProposalsByGroupPolicyResponse>; - voteByProposalVoter(request: _45.QueryVoteByProposalVoterRequest): Promise<_45.QueryVoteByProposalVoterResponse>; - votesByProposal(request: _45.QueryVotesByProposalRequest): Promise<_45.QueryVotesByProposalResponse>; - votesByVoter(request: _45.QueryVotesByVoterRequest): Promise<_45.QueryVotesByVoterResponse>; - groupsByMember(request: _45.QueryGroupsByMemberRequest): Promise<_45.QueryGroupsByMemberResponse>; - tallyResult(request: _45.QueryTallyResultRequest): Promise<_45.QueryTallyResultResponse>; - }; - }; - mint: { - v1beta1: { - params(request?: _50.QueryParamsRequest): Promise<_50.QueryParamsResponse>; - inflation(request?: _50.QueryInflationRequest): Promise<_50.QueryInflationResponse>; - annualProvisions(request?: _50.QueryAnnualProvisionsRequest): Promise<_50.QueryAnnualProvisionsResponse>; - }; - }; - params: { - v1beta1: { - params(request: _53.QueryParamsRequest): Promise<_53.QueryParamsResponse>; - subspaces(request?: _53.QuerySubspacesRequest): Promise<_53.QuerySubspacesResponse>; - }; - }; - staking: { - v1beta1: { - validators(request: _56.QueryValidatorsRequest): Promise<_56.QueryValidatorsResponse>; - validator(request: _56.QueryValidatorRequest): Promise<_56.QueryValidatorResponse>; - validatorDelegations(request: _56.QueryValidatorDelegationsRequest): Promise<_56.QueryValidatorDelegationsResponse>; - validatorUnbondingDelegations(request: _56.QueryValidatorUnbondingDelegationsRequest): Promise<_56.QueryValidatorUnbondingDelegationsResponse>; - delegation(request: _56.QueryDelegationRequest): Promise<_56.QueryDelegationResponse>; - unbondingDelegation(request: _56.QueryUnbondingDelegationRequest): Promise<_56.QueryUnbondingDelegationResponse>; - delegatorDelegations(request: _56.QueryDelegatorDelegationsRequest): Promise<_56.QueryDelegatorDelegationsResponse>; - delegatorUnbondingDelegations(request: _56.QueryDelegatorUnbondingDelegationsRequest): Promise<_56.QueryDelegatorUnbondingDelegationsResponse>; - redelegations(request: _56.QueryRedelegationsRequest): Promise<_56.QueryRedelegationsResponse>; - delegatorValidators(request: _56.QueryDelegatorValidatorsRequest): Promise<_56.QueryDelegatorValidatorsResponse>; - delegatorValidator(request: _56.QueryDelegatorValidatorRequest): Promise<_56.QueryDelegatorValidatorResponse>; - historicalInfo(request: _56.QueryHistoricalInfoRequest): Promise<_56.QueryHistoricalInfoResponse>; - pool(request?: _56.QueryPoolRequest): Promise<_56.QueryPoolResponse>; - params(request?: _56.QueryParamsRequest): Promise<_56.QueryParamsResponse>; - }; - }; - tx: { - v1beta1: { - simulate(request: _60.SimulateRequest): Promise<_60.SimulateResponse>; - getTx(request: _60.GetTxRequest): Promise<_60.GetTxResponse>; - broadcastTx(request: _60.BroadcastTxRequest): Promise<_60.BroadcastTxResponse>; - getTxsEvent(request: _60.GetTxsEventRequest): Promise<_60.GetTxsEventResponse>; - getBlockWithTxs(request: _60.GetBlockWithTxsRequest): Promise<_60.GetBlockWithTxsResponse>; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: _62.QueryCurrentPlanRequest): Promise<_62.QueryCurrentPlanResponse>; - appliedPlan(request: _62.QueryAppliedPlanRequest): Promise<_62.QueryAppliedPlanResponse>; - upgradedConsensusState(request: _62.QueryUpgradedConsensusStateRequest): Promise<_62.QueryUpgradedConsensusStateResponse>; - moduleVersions(request: _62.QueryModuleVersionsRequest): Promise<_62.QueryModuleVersionsResponse>; - authority(request?: _62.QueryAuthorityRequest): Promise<_62.QueryAuthorityResponse>; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: _139.LCDQueryClient; - }; - authz: { - v1beta1: _140.LCDQueryClient; - }; - bank: { - v1beta1: _141.LCDQueryClient; - }; - base: { - node: { - v1beta1: _142.LCDQueryClient; - }; - }; - distribution: { - v1beta1: _143.LCDQueryClient; - }; - feegrant: { - v1beta1: _144.LCDQueryClient; - }; - gov: { - v1: _145.LCDQueryClient; - v1beta1: _146.LCDQueryClient; - }; - group: { - v1: _147.LCDQueryClient; - }; - mint: { - v1beta1: _148.LCDQueryClient; - }; - params: { - v1beta1: _149.LCDQueryClient; - }; - staking: { - v1beta1: _150.LCDQueryClient; - }; - tx: { - v1beta1: _151.LCDQueryClient; - }; - upgrade: { - v1beta1: _152.LCDQueryClient; - }; - }; - }>; - }; -} diff --git a/packages/api/dist/cosmos/bundle.js b/packages/api/dist/cosmos/bundle.js deleted file mode 100644 index 253c3aac..00000000 --- a/packages/api/dist/cosmos/bundle.js +++ /dev/null @@ -1,418 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cosmos = void 0; -//@ts-nocheck -const _2 = __importStar(require("./app/module/v1alpha1/module")); -const _3 = __importStar(require("./auth/v1beta1/auth")); -const _4 = __importStar(require("./auth/v1beta1/genesis")); -const _5 = __importStar(require("./auth/v1beta1/query")); -const _6 = __importStar(require("./authz/v1beta1/authz")); -const _7 = __importStar(require("./authz/v1beta1/event")); -const _8 = __importStar(require("./authz/v1beta1/genesis")); -const _9 = __importStar(require("./authz/v1beta1/query")); -const _10 = __importStar(require("./authz/v1beta1/tx")); -const _11 = __importStar(require("./bank/v1beta1/authz")); -const _12 = __importStar(require("./bank/v1beta1/bank")); -const _13 = __importStar(require("./bank/v1beta1/genesis")); -const _14 = __importStar(require("./bank/v1beta1/query")); -const _15 = __importStar(require("./bank/v1beta1/tx")); -const _16 = __importStar(require("./base/abci/v1beta1/abci")); -const _17 = __importStar(require("./base/node/v1beta1/query")); -const _18 = __importStar(require("./base/query/v1beta1/pagination")); -const _19 = __importStar(require("./base/reflection/v2alpha1/reflection")); -const _20 = __importStar(require("./base/v1beta1/coin")); -const _21 = __importStar(require("./crypto/ed25519/keys")); -const _22 = __importStar(require("./crypto/hd/v1/hd")); -const _23 = __importStar(require("./crypto/keyring/v1/record")); -const _24 = __importStar(require("./crypto/multisig/keys")); -const _25 = __importStar(require("./crypto/secp256k1/keys")); -const _26 = __importStar(require("./crypto/secp256r1/keys")); -const _27 = __importStar(require("./distribution/v1beta1/distribution")); -const _28 = __importStar(require("./distribution/v1beta1/genesis")); -const _29 = __importStar(require("./distribution/v1beta1/query")); -const _30 = __importStar(require("./distribution/v1beta1/tx")); -const _31 = __importStar(require("./feegrant/v1beta1/feegrant")); -const _32 = __importStar(require("./feegrant/v1beta1/genesis")); -const _33 = __importStar(require("./feegrant/v1beta1/query")); -const _34 = __importStar(require("./feegrant/v1beta1/tx")); -const _35 = __importStar(require("./gov/v1/genesis")); -const _36 = __importStar(require("./gov/v1/gov")); -const _37 = __importStar(require("./gov/v1/query")); -const _38 = __importStar(require("./gov/v1/tx")); -const _39 = __importStar(require("./gov/v1beta1/genesis")); -const _40 = __importStar(require("./gov/v1beta1/gov")); -const _41 = __importStar(require("./gov/v1beta1/query")); -const _42 = __importStar(require("./gov/v1beta1/tx")); -const _43 = __importStar(require("./group/v1/events")); -const _44 = __importStar(require("./group/v1/genesis")); -const _45 = __importStar(require("./group/v1/query")); -const _46 = __importStar(require("./group/v1/tx")); -const _47 = __importStar(require("./group/v1/types")); -const _48 = __importStar(require("./mint/v1beta1/genesis")); -const _49 = __importStar(require("./mint/v1beta1/mint")); -const _50 = __importStar(require("./mint/v1beta1/query")); -const _51 = __importStar(require("./orm/module/v1alpha1/module")); -const _52 = __importStar(require("./params/v1beta1/params")); -const _53 = __importStar(require("./params/v1beta1/query")); -const _54 = __importStar(require("./staking/v1beta1/authz")); -const _55 = __importStar(require("./staking/v1beta1/genesis")); -const _56 = __importStar(require("./staking/v1beta1/query")); -const _57 = __importStar(require("./staking/v1beta1/staking")); -const _58 = __importStar(require("./staking/v1beta1/tx")); -const _59 = __importStar(require("./tx/signing/v1beta1/signing")); -const _60 = __importStar(require("./tx/v1beta1/service")); -const _61 = __importStar(require("./tx/v1beta1/tx")); -const _62 = __importStar(require("./upgrade/v1beta1/query")); -const _63 = __importStar(require("./upgrade/v1beta1/tx")); -const _64 = __importStar(require("./upgrade/v1beta1/upgrade")); -const _65 = __importStar(require("./vesting/v1beta1/tx")); -const _66 = __importStar(require("./vesting/v1beta1/vesting")); -const _119 = __importStar(require("./authz/v1beta1/tx.amino")); -const _120 = __importStar(require("./bank/v1beta1/tx.amino")); -const _121 = __importStar(require("./distribution/v1beta1/tx.amino")); -const _122 = __importStar(require("./feegrant/v1beta1/tx.amino")); -const _123 = __importStar(require("./gov/v1/tx.amino")); -const _124 = __importStar(require("./gov/v1beta1/tx.amino")); -const _125 = __importStar(require("./group/v1/tx.amino")); -const _126 = __importStar(require("./staking/v1beta1/tx.amino")); -const _127 = __importStar(require("./upgrade/v1beta1/tx.amino")); -const _128 = __importStar(require("./vesting/v1beta1/tx.amino")); -const _129 = __importStar(require("./authz/v1beta1/tx.registry")); -const _130 = __importStar(require("./bank/v1beta1/tx.registry")); -const _131 = __importStar(require("./distribution/v1beta1/tx.registry")); -const _132 = __importStar(require("./feegrant/v1beta1/tx.registry")); -const _133 = __importStar(require("./gov/v1/tx.registry")); -const _134 = __importStar(require("./gov/v1beta1/tx.registry")); -const _135 = __importStar(require("./group/v1/tx.registry")); -const _136 = __importStar(require("./staking/v1beta1/tx.registry")); -const _137 = __importStar(require("./upgrade/v1beta1/tx.registry")); -const _138 = __importStar(require("./vesting/v1beta1/tx.registry")); -const _139 = __importStar(require("./auth/v1beta1/query.lcd")); -const _140 = __importStar(require("./authz/v1beta1/query.lcd")); -const _141 = __importStar(require("./bank/v1beta1/query.lcd")); -const _142 = __importStar(require("./base/node/v1beta1/query.lcd")); -const _143 = __importStar(require("./distribution/v1beta1/query.lcd")); -const _144 = __importStar(require("./feegrant/v1beta1/query.lcd")); -const _145 = __importStar(require("./gov/v1/query.lcd")); -const _146 = __importStar(require("./gov/v1beta1/query.lcd")); -const _147 = __importStar(require("./group/v1/query.lcd")); -const _148 = __importStar(require("./mint/v1beta1/query.lcd")); -const _149 = __importStar(require("./params/v1beta1/query.lcd")); -const _150 = __importStar(require("./staking/v1beta1/query.lcd")); -const _151 = __importStar(require("./tx/v1beta1/service.lcd")); -const _152 = __importStar(require("./upgrade/v1beta1/query.lcd")); -const _153 = __importStar(require("./auth/v1beta1/query.rpc.Query")); -const _154 = __importStar(require("./authz/v1beta1/query.rpc.Query")); -const _155 = __importStar(require("./bank/v1beta1/query.rpc.Query")); -const _156 = __importStar(require("./base/node/v1beta1/query.rpc.Service")); -const _157 = __importStar(require("./distribution/v1beta1/query.rpc.Query")); -const _158 = __importStar(require("./feegrant/v1beta1/query.rpc.Query")); -const _159 = __importStar(require("./gov/v1/query.rpc.Query")); -const _160 = __importStar(require("./gov/v1beta1/query.rpc.Query")); -const _161 = __importStar(require("./group/v1/query.rpc.Query")); -const _162 = __importStar(require("./mint/v1beta1/query.rpc.Query")); -const _163 = __importStar(require("./params/v1beta1/query.rpc.Query")); -const _164 = __importStar(require("./staking/v1beta1/query.rpc.Query")); -const _165 = __importStar(require("./tx/v1beta1/service.rpc.Service")); -const _166 = __importStar(require("./upgrade/v1beta1/query.rpc.Query")); -const _167 = __importStar(require("./authz/v1beta1/tx.rpc.msg")); -const _168 = __importStar(require("./bank/v1beta1/tx.rpc.msg")); -const _169 = __importStar(require("./distribution/v1beta1/tx.rpc.msg")); -const _170 = __importStar(require("./feegrant/v1beta1/tx.rpc.msg")); -const _171 = __importStar(require("./gov/v1/tx.rpc.msg")); -const _172 = __importStar(require("./gov/v1beta1/tx.rpc.msg")); -const _173 = __importStar(require("./group/v1/tx.rpc.msg")); -const _174 = __importStar(require("./staking/v1beta1/tx.rpc.msg")); -const _175 = __importStar(require("./upgrade/v1beta1/tx.rpc.msg")); -const _176 = __importStar(require("./vesting/v1beta1/tx.rpc.msg")); -const _217 = __importStar(require("./lcd")); -const _218 = __importStar(require("./rpc.query")); -const _219 = __importStar(require("./rpc.tx")); -var cosmos; -(function (cosmos) { - let app; - (function (app) { - let module; - (function (module) { - module.v1alpha1 = { - ..._2 - }; - })(module = app.module || (app.module = {})); - })(app = cosmos.app || (cosmos.app = {})); - let auth; - (function (auth) { - auth.v1beta1 = { - ..._3, - ..._4, - ..._5, - ..._139, - ..._153 - }; - })(auth = cosmos.auth || (cosmos.auth = {})); - let authz; - (function (authz) { - authz.v1beta1 = { - ..._6, - ..._7, - ..._8, - ..._9, - ..._10, - ..._119, - ..._129, - ..._140, - ..._154, - ..._167 - }; - })(authz = cosmos.authz || (cosmos.authz = {})); - let bank; - (function (bank) { - bank.v1beta1 = { - ..._11, - ..._12, - ..._13, - ..._14, - ..._15, - ..._120, - ..._130, - ..._141, - ..._155, - ..._168 - }; - })(bank = cosmos.bank || (cosmos.bank = {})); - let base; - (function (base) { - let abci; - (function (abci) { - abci.v1beta1 = { - ..._16 - }; - })(abci = base.abci || (base.abci = {})); - let node; - (function (node) { - node.v1beta1 = { - ..._17, - ..._142, - ..._156 - }; - })(node = base.node || (base.node = {})); - let query; - (function (query) { - query.v1beta1 = { - ..._18 - }; - })(query = base.query || (base.query = {})); - let reflection; - (function (reflection) { - reflection.v2alpha1 = { - ..._19 - }; - })(reflection = base.reflection || (base.reflection = {})); - base.v1beta1 = { - ..._20 - }; - })(base = cosmos.base || (cosmos.base = {})); - let crypto; - (function (crypto) { - crypto.ed25519 = { - ..._21 - }; - let hd; - (function (hd) { - hd.v1 = { - ..._22 - }; - })(hd = crypto.hd || (crypto.hd = {})); - let keyring; - (function (keyring) { - keyring.v1 = { - ..._23 - }; - })(keyring = crypto.keyring || (crypto.keyring = {})); - crypto.multisig = { - ..._24 - }; - crypto.secp256k1 = { - ..._25 - }; - crypto.secp256r1 = { - ..._26 - }; - })(crypto = cosmos.crypto || (cosmos.crypto = {})); - let distribution; - (function (distribution) { - distribution.v1beta1 = { - ..._27, - ..._28, - ..._29, - ..._30, - ..._121, - ..._131, - ..._143, - ..._157, - ..._169 - }; - })(distribution = cosmos.distribution || (cosmos.distribution = {})); - let feegrant; - (function (feegrant) { - feegrant.v1beta1 = { - ..._31, - ..._32, - ..._33, - ..._34, - ..._122, - ..._132, - ..._144, - ..._158, - ..._170 - }; - })(feegrant = cosmos.feegrant || (cosmos.feegrant = {})); - let gov; - (function (gov) { - gov.v1 = { - ..._35, - ..._36, - ..._37, - ..._38, - ..._123, - ..._133, - ..._145, - ..._159, - ..._171 - }; - gov.v1beta1 = { - ..._39, - ..._40, - ..._41, - ..._42, - ..._124, - ..._134, - ..._146, - ..._160, - ..._172 - }; - })(gov = cosmos.gov || (cosmos.gov = {})); - let group; - (function (group) { - group.v1 = { - ..._43, - ..._44, - ..._45, - ..._46, - ..._47, - ..._125, - ..._135, - ..._147, - ..._161, - ..._173 - }; - })(group = cosmos.group || (cosmos.group = {})); - let mint; - (function (mint) { - mint.v1beta1 = { - ..._48, - ..._49, - ..._50, - ..._148, - ..._162 - }; - })(mint = cosmos.mint || (cosmos.mint = {})); - let orm; - (function (orm) { - let module; - (function (module) { - module.v1alpha1 = { - ..._51 - }; - })(module = orm.module || (orm.module = {})); - })(orm = cosmos.orm || (cosmos.orm = {})); - let params; - (function (params) { - params.v1beta1 = { - ..._52, - ..._53, - ..._149, - ..._163 - }; - })(params = cosmos.params || (cosmos.params = {})); - let staking; - (function (staking) { - staking.v1beta1 = { - ..._54, - ..._55, - ..._56, - ..._57, - ..._58, - ..._126, - ..._136, - ..._150, - ..._164, - ..._174 - }; - })(staking = cosmos.staking || (cosmos.staking = {})); - let tx; - (function (tx) { - let signing; - (function (signing) { - signing.v1beta1 = { - ..._59 - }; - })(signing = tx.signing || (tx.signing = {})); - tx.v1beta1 = { - ..._60, - ..._61, - ..._151, - ..._165 - }; - })(tx = cosmos.tx || (cosmos.tx = {})); - let upgrade; - (function (upgrade) { - upgrade.v1beta1 = { - ..._62, - ..._63, - ..._64, - ..._127, - ..._137, - ..._152, - ..._166, - ..._175 - }; - })(upgrade = cosmos.upgrade || (cosmos.upgrade = {})); - let vesting; - (function (vesting) { - vesting.v1beta1 = { - ..._65, - ..._66, - ..._128, - ..._138, - ..._176 - }; - })(vesting = cosmos.vesting || (cosmos.vesting = {})); - cosmos.ClientFactory = { - ..._217, - ..._218, - ..._219 - }; -})(cosmos || (exports.cosmos = cosmos = {})); diff --git a/packages/api/dist/cosmos/client.d.ts b/packages/api/dist/cosmos/client.d.ts deleted file mode 100644 index 35016d90..00000000 --- a/packages/api/dist/cosmos/client.d.ts +++ /dev/null @@ -1,239 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const cosmosAminoConverters: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreateVestingAccount) => import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreateVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccountAmino) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount; - }; - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino; - fromAmino: (object: import("./upgrade/v1beta1/tx").MsgSoftwareUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: import("./upgrade/v1beta1/tx").MsgCancelUpgrade) => import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino; - fromAmino: (object: import("./upgrade/v1beta1/tx").MsgCancelUpgradeAmino) => import("./upgrade/v1beta1/tx").MsgCancelUpgrade; - }; - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgCreateValidator) => import("./staking/v1beta1/tx").MsgCreateValidatorAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgCreateValidatorAmino) => import("./staking/v1beta1/tx").MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgEditValidator) => import("./staking/v1beta1/tx").MsgEditValidatorAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgEditValidatorAmino) => import("./staking/v1beta1/tx").MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgDelegate) => import("./staking/v1beta1/tx").MsgDelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgDelegateAmino) => import("./staking/v1beta1/tx").MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgBeginRedelegate) => import("./staking/v1beta1/tx").MsgBeginRedelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgBeginRedelegateAmino) => import("./staking/v1beta1/tx").MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgUndelegate) => import("./staking/v1beta1/tx").MsgUndelegateAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgUndelegateAmino) => import("./staking/v1beta1/tx").MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino; - fromAmino: (object: import("./staking/v1beta1/tx").MsgCancelUnbondingDelegationAmino) => import("./staking/v1beta1/tx").MsgCancelUnbondingDelegation; - }; - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroup) => import("./group/v1/tx").MsgCreateGroupAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupAmino) => import("./group/v1/tx").MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMembers) => import("./group/v1/tx").MsgUpdateGroupMembersAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMembersAmino) => import("./group/v1/tx").MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupAdmin) => import("./group/v1/tx").MsgUpdateGroupAdminAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupAdminAmino) => import("./group/v1/tx").MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupMetadata) => import("./group/v1/tx").MsgUpdateGroupMetadataAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroupPolicy) => import("./group/v1/tx").MsgCreateGroupPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupPolicyAmino) => import("./group/v1/tx").MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgCreateGroupWithPolicy) => import("./group/v1/tx").MsgCreateGroupWithPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgCreateGroupWithPolicyAmino) => import("./group/v1/tx").MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyAdmin) => import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyAdminAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgUpdateGroupPolicyMetadata) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: import("./group/v1/tx").MsgUpdateGroupPolicyMetadataAmino) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgSubmitProposal) => import("./group/v1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./group/v1/tx").MsgSubmitProposalAmino) => import("./group/v1/tx").MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgWithdrawProposal) => import("./group/v1/tx").MsgWithdrawProposalAmino; - fromAmino: (object: import("./group/v1/tx").MsgWithdrawProposalAmino) => import("./group/v1/tx").MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgVote) => import("./group/v1/tx").MsgVoteAmino; - fromAmino: (object: import("./group/v1/tx").MsgVoteAmino) => import("./group/v1/tx").MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgExec) => import("./group/v1/tx").MsgExecAmino; - fromAmino: (object: import("./group/v1/tx").MsgExecAmino) => import("./group/v1/tx").MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: import("./group/v1/tx").MsgLeaveGroup) => import("./group/v1/tx").MsgLeaveGroupAmino; - fromAmino: (object: import("./group/v1/tx").MsgLeaveGroupAmino) => import("./group/v1/tx").MsgLeaveGroup; - }; - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgSubmitProposal) => import("./gov/v1beta1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgSubmitProposalAmino) => import("./gov/v1beta1/tx").MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgVote) => import("./gov/v1beta1/tx").MsgVoteAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteAmino) => import("./gov/v1beta1/tx").MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgVoteWeighted) => import("./gov/v1beta1/tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgVoteWeightedAmino) => import("./gov/v1beta1/tx").MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: import("./gov/v1beta1/tx").MsgDeposit) => import("./gov/v1beta1/tx").MsgDepositAmino; - fromAmino: (object: import("./gov/v1beta1/tx").MsgDepositAmino) => import("./gov/v1beta1/tx").MsgDeposit; - }; - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgSubmitProposal) => import("./gov/v1/tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./gov/v1/tx").MsgSubmitProposalAmino) => import("./gov/v1/tx").MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgExecLegacyContent) => import("./gov/v1/tx").MsgExecLegacyContentAmino; - fromAmino: (object: import("./gov/v1/tx").MsgExecLegacyContentAmino) => import("./gov/v1/tx").MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgVote) => import("./gov/v1/tx").MsgVoteAmino; - fromAmino: (object: import("./gov/v1/tx").MsgVoteAmino) => import("./gov/v1/tx").MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgVoteWeighted) => import("./gov/v1/tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./gov/v1/tx").MsgVoteWeightedAmino) => import("./gov/v1/tx").MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: import("./gov/v1/tx").MsgDeposit) => import("./gov/v1/tx").MsgDepositAmino; - fromAmino: (object: import("./gov/v1/tx").MsgDepositAmino) => import("./gov/v1/tx").MsgDeposit; - }; - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: import("./feegrant/v1beta1/tx").MsgGrantAllowance) => import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino; - fromAmino: (object: import("./feegrant/v1beta1/tx").MsgGrantAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: import("./feegrant/v1beta1/tx").MsgRevokeAllowance) => import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino; - fromAmino: (object: import("./feegrant/v1beta1/tx").MsgRevokeAllowanceAmino) => import("./feegrant/v1beta1/tx").MsgRevokeAllowance; - }; - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgSetWithdrawAddress) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgSetWithdrawAddressAmino) => import("./distribution/v1beta1/tx").MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawDelegatorRewardAmino) => import("./distribution/v1beta1/tx").MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommissionAmino) => import("./distribution/v1beta1/tx").MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: import("./distribution/v1beta1/tx").MsgFundCommunityPool) => import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino; - fromAmino: (object: import("./distribution/v1beta1/tx").MsgFundCommunityPoolAmino) => import("./distribution/v1beta1/tx").MsgFundCommunityPool; - }; - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: string; - toAmino: (message: import("./bank/v1beta1/tx").MsgSend) => import("./bank/v1beta1/tx").MsgSendAmino; - fromAmino: (object: import("./bank/v1beta1/tx").MsgSendAmino) => import("./bank/v1beta1/tx").MsgSend; - }; - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: string; - toAmino: (message: import("./bank/v1beta1/tx").MsgMultiSend) => import("./bank/v1beta1/tx").MsgMultiSendAmino; - fromAmino: (object: import("./bank/v1beta1/tx").MsgMultiSendAmino) => import("./bank/v1beta1/tx").MsgMultiSend; - }; - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgGrant) => import("./authz/v1beta1/tx").MsgGrantAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgGrantAmino) => import("./authz/v1beta1/tx").MsgGrant; - }; - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgExec) => import("./authz/v1beta1/tx").MsgExecAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgExecAmino) => import("./authz/v1beta1/tx").MsgExec; - }; - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: string; - toAmino: (message: import("./authz/v1beta1/tx").MsgRevoke) => import("./authz/v1beta1/tx").MsgRevokeAmino; - fromAmino: (object: import("./authz/v1beta1/tx").MsgRevokeAmino) => import("./authz/v1beta1/tx").MsgRevoke; - }; -}; -export declare const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningCosmosClientOptions: () => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningCosmosClient: ({ rpcEndpoint, signer }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; -}) => Promise; diff --git a/packages/api/dist/cosmos/client.js b/packages/api/dist/cosmos/client.js deleted file mode 100644 index b650667d..00000000 --- a/packages/api/dist/cosmos/client.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSigningCosmosClient = exports.getSigningCosmosClientOptions = exports.cosmosProtoRegistry = exports.cosmosAminoConverters = void 0; -//@ts-nocheck -const proto_signing_1 = require("@cosmjs/proto-signing"); -const stargate_1 = require("@cosmjs/stargate"); -const cosmosAuthzV1beta1TxRegistry = __importStar(require("./authz/v1beta1/tx.registry")); -const cosmosBankV1beta1TxRegistry = __importStar(require("./bank/v1beta1/tx.registry")); -const cosmosDistributionV1beta1TxRegistry = __importStar(require("./distribution/v1beta1/tx.registry")); -const cosmosFeegrantV1beta1TxRegistry = __importStar(require("./feegrant/v1beta1/tx.registry")); -const cosmosGovV1TxRegistry = __importStar(require("./gov/v1/tx.registry")); -const cosmosGovV1beta1TxRegistry = __importStar(require("./gov/v1beta1/tx.registry")); -const cosmosGroupV1TxRegistry = __importStar(require("./group/v1/tx.registry")); -const cosmosStakingV1beta1TxRegistry = __importStar(require("./staking/v1beta1/tx.registry")); -const cosmosUpgradeV1beta1TxRegistry = __importStar(require("./upgrade/v1beta1/tx.registry")); -const cosmosVestingV1beta1TxRegistry = __importStar(require("./vesting/v1beta1/tx.registry")); -const cosmosAuthzV1beta1TxAmino = __importStar(require("./authz/v1beta1/tx.amino")); -const cosmosBankV1beta1TxAmino = __importStar(require("./bank/v1beta1/tx.amino")); -const cosmosDistributionV1beta1TxAmino = __importStar(require("./distribution/v1beta1/tx.amino")); -const cosmosFeegrantV1beta1TxAmino = __importStar(require("./feegrant/v1beta1/tx.amino")); -const cosmosGovV1TxAmino = __importStar(require("./gov/v1/tx.amino")); -const cosmosGovV1beta1TxAmino = __importStar(require("./gov/v1beta1/tx.amino")); -const cosmosGroupV1TxAmino = __importStar(require("./group/v1/tx.amino")); -const cosmosStakingV1beta1TxAmino = __importStar(require("./staking/v1beta1/tx.amino")); -const cosmosUpgradeV1beta1TxAmino = __importStar(require("./upgrade/v1beta1/tx.amino")); -const cosmosVestingV1beta1TxAmino = __importStar(require("./vesting/v1beta1/tx.amino")); -exports.cosmosAminoConverters = { - ...cosmosAuthzV1beta1TxAmino.AminoConverter, - ...cosmosBankV1beta1TxAmino.AminoConverter, - ...cosmosDistributionV1beta1TxAmino.AminoConverter, - ...cosmosFeegrantV1beta1TxAmino.AminoConverter, - ...cosmosGovV1TxAmino.AminoConverter, - ...cosmosGovV1beta1TxAmino.AminoConverter, - ...cosmosGroupV1TxAmino.AminoConverter, - ...cosmosStakingV1beta1TxAmino.AminoConverter, - ...cosmosUpgradeV1beta1TxAmino.AminoConverter, - ...cosmosVestingV1beta1TxAmino.AminoConverter -}; -exports.cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; -const getSigningCosmosClientOptions = () => { - const registry = new proto_signing_1.Registry([...exports.cosmosProtoRegistry]); - const aminoTypes = new stargate_1.AminoTypes({ - ...exports.cosmosAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -exports.getSigningCosmosClientOptions = getSigningCosmosClientOptions; -const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => { - const { registry, aminoTypes } = (0, exports.getSigningCosmosClientOptions)(); - const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; -exports.getSigningCosmosClient = getSigningCosmosClient; diff --git a/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts b/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts deleted file mode 100644 index 77b73d46..00000000 --- a/packages/api/dist/cosmos/crypto/ed25519/keys.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PubKey"; - value: Uint8Array; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.ed25519.PrivKey"; - value: Uint8Array; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** - * Deprecated: PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - */ -export interface PrivKeySDKType { - key: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/ed25519/keys.js b/packages/api/dist/cosmos/crypto/ed25519/keys.js deleted file mode 100644 index 4bf98482..00000000 --- a/packages/api/dist/cosmos/crypto/ed25519/keys.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PrivKey = exports.PubKey = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -exports.PubKey = { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: exports.PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PubKey.decode(message.value); - }, - toProto(message) { - return exports.PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - value: exports.PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - key: new Uint8Array() - }; -} -exports.PrivKey = { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: exports.PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PrivKey.decode(message.value); - }, - toProto(message) { - return exports.PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - value: exports.PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts b/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts deleted file mode 100644 index 195ef08d..00000000 --- a/packages/api/dist/cosmos/crypto/hd/v1/hd.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44Params { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose: number; - /** coin_type is a constant that improves privacy */ - coinType: number; - /** account splits the key space into independent user identities */ - account: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change: boolean; - /** address_index is used as child index in BIP32 derivation */ - addressIndex: number; -} -export interface BIP44ParamsProtoMsg { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; - value: Uint8Array; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsAmino { - /** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */ - purpose?: number; - /** coin_type is a constant that improves privacy */ - coin_type?: number; - /** account splits the key space into independent user identities */ - account?: number; - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - */ - change?: boolean; - /** address_index is used as child index in BIP32 derivation */ - address_index?: number; -} -export interface BIP44ParamsAminoMsg { - type: "cosmos-sdk/BIP44Params"; - value: BIP44ParamsAmino; -} -/** BIP44Params is used as path field in ledger item in Record. */ -export interface BIP44ParamsSDKType { - purpose: number; - coin_type: number; - account: number; - change: boolean; - address_index: number; -} -export declare const BIP44Params: { - typeUrl: string; - encode(message: BIP44Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params; - fromPartial(object: Partial): BIP44Params; - fromAmino(object: BIP44ParamsAmino): BIP44Params; - toAmino(message: BIP44Params): BIP44ParamsAmino; - fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params; - toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg; - fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params; - toProto(message: BIP44Params): Uint8Array; - toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/hd/v1/hd.js b/packages/api/dist/cosmos/crypto/hd/v1/hd.js deleted file mode 100644 index 770acaf4..00000000 --- a/packages/api/dist/cosmos/crypto/hd/v1/hd.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BIP44Params = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseBIP44Params() { - return { - purpose: 0, - coinType: 0, - account: 0, - change: false, - addressIndex: 0 - }; -} -exports.BIP44Params = { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.purpose !== 0) { - writer.uint32(8).uint32(message.purpose); - } - if (message.coinType !== 0) { - writer.uint32(16).uint32(message.coinType); - } - if (message.account !== 0) { - writer.uint32(24).uint32(message.account); - } - if (message.change === true) { - writer.uint32(32).bool(message.change); - } - if (message.addressIndex !== 0) { - writer.uint32(40).uint32(message.addressIndex); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBIP44Params(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.purpose = reader.uint32(); - break; - case 2: - message.coinType = reader.uint32(); - break; - case 3: - message.account = reader.uint32(); - break; - case 4: - message.change = reader.bool(); - break; - case 5: - message.addressIndex = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBIP44Params(); - message.purpose = object.purpose ?? 0; - message.coinType = object.coinType ?? 0; - message.account = object.account ?? 0; - message.change = object.change ?? false; - message.addressIndex = object.addressIndex ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBIP44Params(); - if (object.purpose !== undefined && object.purpose !== null) { - message.purpose = object.purpose; - } - if (object.coin_type !== undefined && object.coin_type !== null) { - message.coinType = object.coin_type; - } - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.change !== undefined && object.change !== null) { - message.change = object.change; - } - if (object.address_index !== undefined && object.address_index !== null) { - message.addressIndex = object.address_index; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.purpose = message.purpose === 0 ? undefined : message.purpose; - obj.coin_type = message.coinType === 0 ? undefined : message.coinType; - obj.account = message.account === 0 ? undefined : message.account; - obj.change = message.change === false ? undefined : message.change; - obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; - return obj; - }, - fromAminoMsg(object) { - return exports.BIP44Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BIP44Params", - value: exports.BIP44Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BIP44Params.decode(message.value); - }, - toProto(message) { - return exports.BIP44Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - value: exports.BIP44Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts b/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts deleted file mode 100644 index 4c403e15..00000000 --- a/packages/api/dist/cosmos/crypto/keyring/v1/record.d.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BIP44Params, BIP44ParamsAmino, BIP44ParamsSDKType } from "../../hd/v1/hd"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Record is used for representing a key in the keyring. */ -export interface Record { - /** name represents a name of Record */ - name: string; - /** pub_key represents a public key in any format */ - pubKey?: Any; - /** local stores the private key locally. */ - local?: Record_Local; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_Ledger; - /** Multi does not store any other information. */ - multi?: Record_Multi; - /** Offline does not store any other information. */ - offline?: Record_Offline; -} -export interface RecordProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Record"; - value: Uint8Array; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordAmino { - /** name represents a name of Record */ - name?: string; - /** pub_key represents a public key in any format */ - pub_key?: AnyAmino; - /** local stores the private key locally. */ - local?: Record_LocalAmino; - /** ledger stores the information about a Ledger key. */ - ledger?: Record_LedgerAmino; - /** Multi does not store any other information. */ - multi?: Record_MultiAmino; - /** Offline does not store any other information. */ - offline?: Record_OfflineAmino; -} -export interface RecordAminoMsg { - type: "cosmos-sdk/Record"; - value: RecordAmino; -} -/** Record is used for representing a key in the keyring. */ -export interface RecordSDKType { - name: string; - pub_key?: AnySDKType; - local?: Record_LocalSDKType; - ledger?: Record_LedgerSDKType; - multi?: Record_MultiSDKType; - offline?: Record_OfflineSDKType; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_Local { - privKey?: Any; -} -export interface Record_LocalProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Local"; - value: Uint8Array; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalAmino { - priv_key?: AnyAmino; -} -export interface Record_LocalAminoMsg { - type: "cosmos-sdk/Local"; - value: Record_LocalAmino; -} -/** - * Item is a keyring item stored in a keyring backend. - * Local item - */ -export interface Record_LocalSDKType { - priv_key?: AnySDKType; -} -/** Ledger item */ -export interface Record_Ledger { - path?: BIP44Params; -} -export interface Record_LedgerProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; - value: Uint8Array; -} -/** Ledger item */ -export interface Record_LedgerAmino { - path?: BIP44ParamsAmino; -} -export interface Record_LedgerAminoMsg { - type: "cosmos-sdk/Ledger"; - value: Record_LedgerAmino; -} -/** Ledger item */ -export interface Record_LedgerSDKType { - path?: BIP44ParamsSDKType; -} -/** Multi item */ -export interface Record_Multi { -} -export interface Record_MultiProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Multi"; - value: Uint8Array; -} -/** Multi item */ -export interface Record_MultiAmino { -} -export interface Record_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: Record_MultiAmino; -} -/** Multi item */ -export interface Record_MultiSDKType { -} -/** Offline item */ -export interface Record_Offline { -} -export interface Record_OfflineProtoMsg { - typeUrl: "/cosmos.crypto.keyring.v1.Offline"; - value: Uint8Array; -} -/** Offline item */ -export interface Record_OfflineAmino { -} -export interface Record_OfflineAminoMsg { - type: "cosmos-sdk/Offline"; - value: Record_OfflineAmino; -} -/** Offline item */ -export interface Record_OfflineSDKType { -} -export declare const Record: { - typeUrl: string; - encode(message: Record, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record; - fromPartial(object: Partial): Record; - fromAmino(object: RecordAmino): Record; - toAmino(message: Record): RecordAmino; - fromAminoMsg(object: RecordAminoMsg): Record; - toAminoMsg(message: Record): RecordAminoMsg; - fromProtoMsg(message: RecordProtoMsg): Record; - toProto(message: Record): Uint8Array; - toProtoMsg(message: Record): RecordProtoMsg; -}; -export declare const Record_Local: { - typeUrl: string; - encode(message: Record_Local, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Local; - fromPartial(object: Partial): Record_Local; - fromAmino(object: Record_LocalAmino): Record_Local; - toAmino(message: Record_Local): Record_LocalAmino; - fromAminoMsg(object: Record_LocalAminoMsg): Record_Local; - toAminoMsg(message: Record_Local): Record_LocalAminoMsg; - fromProtoMsg(message: Record_LocalProtoMsg): Record_Local; - toProto(message: Record_Local): Uint8Array; - toProtoMsg(message: Record_Local): Record_LocalProtoMsg; -}; -export declare const Record_Ledger: { - typeUrl: string; - encode(message: Record_Ledger, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Ledger; - fromPartial(object: Partial): Record_Ledger; - fromAmino(object: Record_LedgerAmino): Record_Ledger; - toAmino(message: Record_Ledger): Record_LedgerAmino; - fromAminoMsg(object: Record_LedgerAminoMsg): Record_Ledger; - toAminoMsg(message: Record_Ledger): Record_LedgerAminoMsg; - fromProtoMsg(message: Record_LedgerProtoMsg): Record_Ledger; - toProto(message: Record_Ledger): Uint8Array; - toProtoMsg(message: Record_Ledger): Record_LedgerProtoMsg; -}; -export declare const Record_Multi: { - typeUrl: string; - encode(_: Record_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Multi; - fromPartial(_: Partial): Record_Multi; - fromAmino(_: Record_MultiAmino): Record_Multi; - toAmino(_: Record_Multi): Record_MultiAmino; - fromAminoMsg(object: Record_MultiAminoMsg): Record_Multi; - toAminoMsg(message: Record_Multi): Record_MultiAminoMsg; - fromProtoMsg(message: Record_MultiProtoMsg): Record_Multi; - toProto(message: Record_Multi): Uint8Array; - toProtoMsg(message: Record_Multi): Record_MultiProtoMsg; -}; -export declare const Record_Offline: { - typeUrl: string; - encode(_: Record_Offline, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Record_Offline; - fromPartial(_: Partial): Record_Offline; - fromAmino(_: Record_OfflineAmino): Record_Offline; - toAmino(_: Record_Offline): Record_OfflineAmino; - fromAminoMsg(object: Record_OfflineAminoMsg): Record_Offline; - toAminoMsg(message: Record_Offline): Record_OfflineAminoMsg; - fromProtoMsg(message: Record_OfflineProtoMsg): Record_Offline; - toProto(message: Record_Offline): Uint8Array; - toProtoMsg(message: Record_Offline): Record_OfflineProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/keyring/v1/record.js b/packages/api/dist/cosmos/crypto/keyring/v1/record.js deleted file mode 100644 index 0198e3c9..00000000 --- a/packages/api/dist/cosmos/crypto/keyring/v1/record.js +++ /dev/null @@ -1,386 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Record_Offline = exports.Record_Multi = exports.Record_Ledger = exports.Record_Local = exports.Record = void 0; -//@ts-nocheck -const any_1 = require("../../../../google/protobuf/any"); -const hd_1 = require("../../hd/v1/hd"); -const binary_1 = require("../../../../binary"); -function createBaseRecord() { - return { - name: "", - pubKey: undefined, - local: undefined, - ledger: undefined, - multi: undefined, - offline: undefined - }; -} -exports.Record = { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.pubKey !== undefined) { - any_1.Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.local !== undefined) { - exports.Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); - } - if (message.ledger !== undefined) { - exports.Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); - } - if (message.multi !== undefined) { - exports.Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); - } - if (message.offline !== undefined) { - exports.Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.pubKey = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.local = exports.Record_Local.decode(reader, reader.uint32()); - break; - case 4: - message.ledger = exports.Record_Ledger.decode(reader, reader.uint32()); - break; - case 5: - message.multi = exports.Record_Multi.decode(reader, reader.uint32()); - break; - case 6: - message.offline = exports.Record_Offline.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord(); - message.name = object.name ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? any_1.Any.fromPartial(object.pubKey) : undefined; - message.local = object.local !== undefined && object.local !== null ? exports.Record_Local.fromPartial(object.local) : undefined; - message.ledger = object.ledger !== undefined && object.ledger !== null ? exports.Record_Ledger.fromPartial(object.ledger) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? exports.Record_Multi.fromPartial(object.multi) : undefined; - message.offline = object.offline !== undefined && object.offline !== null ? exports.Record_Offline.fromPartial(object.offline) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = any_1.Any.fromAmino(object.pub_key); - } - if (object.local !== undefined && object.local !== null) { - message.local = exports.Record_Local.fromAmino(object.local); - } - if (object.ledger !== undefined && object.ledger !== null) { - message.ledger = exports.Record_Ledger.fromAmino(object.ledger); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = exports.Record_Multi.fromAmino(object.multi); - } - if (object.offline !== undefined && object.offline !== null) { - message.offline = exports.Record_Offline.fromAmino(object.offline); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.pub_key = message.pubKey ? any_1.Any.toAmino(message.pubKey) : undefined; - obj.local = message.local ? exports.Record_Local.toAmino(message.local) : undefined; - obj.ledger = message.ledger ? exports.Record_Ledger.toAmino(message.ledger) : undefined; - obj.multi = message.multi ? exports.Record_Multi.toAmino(message.multi) : undefined; - obj.offline = message.offline ? exports.Record_Offline.toAmino(message.offline) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Record.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Record", - value: exports.Record.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Record.decode(message.value); - }, - toProto(message) { - return exports.Record.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - value: exports.Record.encode(message).finish() - }; - } -}; -function createBaseRecord_Local() { - return { - privKey: undefined - }; -} -exports.Record_Local = { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.privKey !== undefined) { - any_1.Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Local(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.privKey = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord_Local(); - message.privKey = object.privKey !== undefined && object.privKey !== null ? any_1.Any.fromPartial(object.privKey) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord_Local(); - if (object.priv_key !== undefined && object.priv_key !== null) { - message.privKey = any_1.Any.fromAmino(object.priv_key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.priv_key = message.privKey ? any_1.Any.toAmino(message.privKey) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Record_Local.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Local", - value: exports.Record_Local.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Record_Local.decode(message.value); - }, - toProto(message) { - return exports.Record_Local.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - value: exports.Record_Local.encode(message).finish() - }; - } -}; -function createBaseRecord_Ledger() { - return { - path: undefined - }; -} -exports.Record_Ledger = { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.path !== undefined) { - hd_1.BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Ledger(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = hd_1.BIP44Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord_Ledger(); - message.path = object.path !== undefined && object.path !== null ? hd_1.BIP44Params.fromPartial(object.path) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord_Ledger(); - if (object.path !== undefined && object.path !== null) { - message.path = hd_1.BIP44Params.fromAmino(object.path); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.path = message.path ? hd_1.BIP44Params.toAmino(message.path) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Record_Ledger.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Ledger", - value: exports.Record_Ledger.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Record_Ledger.decode(message.value); - }, - toProto(message) { - return exports.Record_Ledger.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - value: exports.Record_Ledger.encode(message).finish() - }; - } -}; -function createBaseRecord_Multi() { - return {}; -} -exports.Record_Multi = { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRecord_Multi(); - return message; - }, - fromAmino(_) { - const message = createBaseRecord_Multi(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.Record_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: exports.Record_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Record_Multi.decode(message.value); - }, - toProto(message) { - return exports.Record_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - value: exports.Record_Multi.encode(message).finish() - }; - } -}; -function createBaseRecord_Offline() { - return {}; -} -exports.Record_Offline = { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Offline(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRecord_Offline(); - return message; - }, - fromAmino(_) { - const message = createBaseRecord_Offline(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.Record_Offline.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Offline", - value: exports.Record_Offline.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Record_Offline.decode(message.value); - }, - toProto(message) { - return exports.Record_Offline.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - value: exports.Record_Offline.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/multisig/keys.d.ts b/packages/api/dist/cosmos/crypto/multisig/keys.d.ts deleted file mode 100644 index 105776aa..00000000 --- a/packages/api/dist/cosmos/crypto/multisig/keys.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKey { - threshold: number; - publicKeys: Any[]; -} -export interface LegacyAminoPubKeyProtoMsg { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; - value: Uint8Array; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeyAmino { - threshold?: number; - public_keys?: AnyAmino[]; -} -export interface LegacyAminoPubKeyAminoMsg { - type: "cosmos-sdk/LegacyAminoPubKey"; - value: LegacyAminoPubKeyAmino; -} -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - */ -export interface LegacyAminoPubKeySDKType { - threshold: number; - public_keys: AnySDKType[]; -} -export declare const LegacyAminoPubKey: { - typeUrl: string; - encode(message: LegacyAminoPubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LegacyAminoPubKey; - fromPartial(object: Partial): LegacyAminoPubKey; - fromAmino(object: LegacyAminoPubKeyAmino): LegacyAminoPubKey; - toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino; - fromAminoMsg(object: LegacyAminoPubKeyAminoMsg): LegacyAminoPubKey; - toAminoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyAminoMsg; - fromProtoMsg(message: LegacyAminoPubKeyProtoMsg): LegacyAminoPubKey; - toProto(message: LegacyAminoPubKey): Uint8Array; - toProtoMsg(message: LegacyAminoPubKey): LegacyAminoPubKeyProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/multisig/keys.js b/packages/api/dist/cosmos/crypto/multisig/keys.js deleted file mode 100644 index 98f7bad6..00000000 --- a/packages/api/dist/cosmos/crypto/multisig/keys.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LegacyAminoPubKey = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -function createBaseLegacyAminoPubKey() { - return { - threshold: 0, - publicKeys: [] - }; -} -exports.LegacyAminoPubKey = { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.threshold !== 0) { - writer.uint32(8).uint32(message.threshold); - } - for (const v of message.publicKeys) { - any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLegacyAminoPubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.uint32(); - break; - case 2: - message.publicKeys.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLegacyAminoPubKey(); - message.threshold = object.threshold ?? 0; - message.publicKeys = object.publicKeys?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseLegacyAminoPubKey(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - message.publicKeys = object.public_keys?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.threshold = message.threshold === 0 ? undefined : message.threshold; - if (message.publicKeys) { - obj.public_keys = message.publicKeys.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.public_keys = message.publicKeys; - } - return obj; - }, - fromAminoMsg(object) { - return exports.LegacyAminoPubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/LegacyAminoPubKey", - value: exports.LegacyAminoPubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.LegacyAminoPubKey.decode(message.value); - }, - toProto(message) { - return exports.LegacyAminoPubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - value: exports.LegacyAminoPubKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts deleted file mode 100644 index afa9733e..00000000 --- a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignature { - signatures: Uint8Array[]; -} -export interface MultiSignatureProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; - value: Uint8Array; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureAmino { - signatures?: string[]; -} -export interface MultiSignatureAminoMsg { - type: "cosmos-sdk/MultiSignature"; - value: MultiSignatureAmino; -} -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - */ -export interface MultiSignatureSDKType { - signatures: Uint8Array[]; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArray { - extraBitsStored: number; - elems: Uint8Array; -} -export interface CompactBitArrayProtoMsg { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; - value: Uint8Array; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArrayAmino { - extra_bits_stored?: number; - elems?: string; -} -export interface CompactBitArrayAminoMsg { - type: "cosmos-sdk/CompactBitArray"; - value: CompactBitArrayAmino; -} -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CompactBitArraySDKType { - extra_bits_stored: number; - elems: Uint8Array; -} -export declare const MultiSignature: { - typeUrl: string; - encode(message: MultiSignature, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature; - fromPartial(object: Partial): MultiSignature; - fromAmino(object: MultiSignatureAmino): MultiSignature; - toAmino(message: MultiSignature): MultiSignatureAmino; - fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature; - toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg; - fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature; - toProto(message: MultiSignature): Uint8Array; - toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg; -}; -export declare const CompactBitArray: { - typeUrl: string; - encode(message: CompactBitArray, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray; - fromPartial(object: Partial): CompactBitArray; - fromAmino(object: CompactBitArrayAmino): CompactBitArray; - toAmino(message: CompactBitArray): CompactBitArrayAmino; - fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray; - toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg; - fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray; - toProto(message: CompactBitArray): Uint8Array; - toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js b/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js deleted file mode 100644 index b272004e..00000000 --- a/packages/api/dist/cosmos/crypto/multisig/v1beta1/multisig.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompactBitArray = exports.MultiSignature = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseMultiSignature() { - return { - signatures: [] - }; -} -exports.MultiSignature = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.signatures) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMultiSignature(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MultiSignature.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MultiSignature", - value: exports.MultiSignature.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MultiSignature.decode(message.value); - }, - toProto(message) { - return exports.MultiSignature.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - value: exports.MultiSignature.encode(message).finish() - }; - } -}; -function createBaseCompactBitArray() { - return { - extraBitsStored: 0, - elems: new Uint8Array() - }; -} -exports.CompactBitArray = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.extraBitsStored !== 0) { - writer.uint32(8).uint32(message.extraBitsStored); - } - if (message.elems.length !== 0) { - writer.uint32(18).bytes(message.elems); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCompactBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.extraBitsStored = reader.uint32(); - break; - case 2: - message.elems = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCompactBitArray(); - message.extraBitsStored = object.extraBitsStored ?? 0; - message.elems = object.elems ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseCompactBitArray(); - if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { - message.extraBitsStored = object.extra_bits_stored; - } - if (object.elems !== undefined && object.elems !== null) { - message.elems = (0, helpers_1.bytesFromBase64)(object.elems); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; - obj.elems = message.elems ? (0, helpers_1.base64FromBytes)(message.elems) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.CompactBitArray.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CompactBitArray", - value: exports.CompactBitArray.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CompactBitArray.decode(message.value); - }, - toProto(message) { - return exports.CompactBitArray.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - value: exports.CompactBitArray.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts b/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts deleted file mode 100644 index 67ee7582..00000000 --- a/packages/api/dist/cosmos/crypto/secp256k1/keys.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKey { - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PubKey"; - value: Uint8Array; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeyAmino { - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKey { - key: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeyAmino { - key?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256k1 private key. */ -export interface PrivKeySDKType { - key: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/secp256k1/keys.js b/packages/api/dist/cosmos/crypto/secp256k1/keys.js deleted file mode 100644 index f2c8b42f..00000000 --- a/packages/api/dist/cosmos/crypto/secp256k1/keys.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PrivKey = exports.PubKey = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -exports.PubKey = { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: exports.PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PubKey.decode(message.value); - }, - toProto(message) { - return exports.PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - value: exports.PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - key: new Uint8Array() - }; -} -exports.PrivKey = { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: exports.PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PrivKey.decode(message.value); - }, - toProto(message) { - return exports.PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - value: exports.PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts b/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts deleted file mode 100644 index 3ced987e..00000000 --- a/packages/api/dist/cosmos/crypto/secp256r1/keys.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKey { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key: Uint8Array; -} -export interface PubKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PubKey"; - value: Uint8Array; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeyAmino { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - */ - key?: string; -} -export interface PubKeyAminoMsg { - type: "cosmos-sdk/PubKey"; - value: PubKeyAmino; -} -/** PubKey defines a secp256r1 ECDSA public key. */ -export interface PubKeySDKType { - key: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKey { - /** secret number serialized using big-endian encoding */ - secret: Uint8Array; -} -export interface PrivKeyProtoMsg { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; - value: Uint8Array; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeyAmino { - /** secret number serialized using big-endian encoding */ - secret?: string; -} -export interface PrivKeyAminoMsg { - type: "cosmos-sdk/PrivKey"; - value: PrivKeyAmino; -} -/** PrivKey defines a secp256r1 ECDSA private key. */ -export interface PrivKeySDKType { - secret: Uint8Array; -} -export declare const PubKey: { - typeUrl: string; - encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PubKey; - fromPartial(object: Partial): PubKey; - fromAmino(object: PubKeyAmino): PubKey; - toAmino(message: PubKey): PubKeyAmino; - fromAminoMsg(object: PubKeyAminoMsg): PubKey; - toAminoMsg(message: PubKey): PubKeyAminoMsg; - fromProtoMsg(message: PubKeyProtoMsg): PubKey; - toProto(message: PubKey): Uint8Array; - toProtoMsg(message: PubKey): PubKeyProtoMsg; -}; -export declare const PrivKey: { - typeUrl: string; - encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; - fromPartial(object: Partial): PrivKey; - fromAmino(object: PrivKeyAmino): PrivKey; - toAmino(message: PrivKey): PrivKeyAmino; - fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; - toAminoMsg(message: PrivKey): PrivKeyAminoMsg; - fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; - toProto(message: PrivKey): Uint8Array; - toProtoMsg(message: PrivKey): PrivKeyProtoMsg; -}; diff --git a/packages/api/dist/cosmos/crypto/secp256r1/keys.js b/packages/api/dist/cosmos/crypto/secp256r1/keys.js deleted file mode 100644 index 653ff7d8..00000000 --- a/packages/api/dist/cosmos/crypto/secp256r1/keys.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PrivKey = exports.PubKey = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -exports.PubKey = { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: exports.PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PubKey.decode(message.value); - }, - toProto(message) { - return exports.PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - value: exports.PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - secret: new Uint8Array() - }; -} -exports.PrivKey = { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.secret.length !== 0) { - writer.uint32(10).bytes(message.secret); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.secret = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.secret = object.secret ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.secret !== undefined && object.secret !== null) { - message.secret = (0, helpers_1.bytesFromBase64)(object.secret); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.secret = message.secret ? (0, helpers_1.base64FromBytes)(message.secret) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: exports.PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PrivKey.decode(message.value); - }, - toProto(message) { - return exports.PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - value: exports.PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts deleted file mode 100644 index 80f2ce87..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/distribution.d.ts +++ /dev/null @@ -1,585 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Params defines the set of params for the distribution module. */ -export interface Params { - communityTax: string; - baseProposerReward: string; - bonusProposerReward: string; - withdrawAddrEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsAmino { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of params for the distribution module. */ -export interface ParamsSDKType { - community_tax: string; - base_proposer_reward: string; - bonus_proposer_reward: string; - withdraw_addr_enabled: boolean; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewards { - cumulativeRewardRatio: DecCoin[]; - referenceCount: number; -} -export interface ValidatorHistoricalRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsAmino { - cumulative_reward_ratio?: DecCoinAmino[]; - reference_count?: number; -} -export interface ValidatorHistoricalRewardsAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewards"; - value: ValidatorHistoricalRewardsAmino; -} -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - */ -export interface ValidatorHistoricalRewardsSDKType { - cumulative_reward_ratio: DecCoinSDKType[]; - reference_count: number; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewards { - rewards: DecCoin[]; - period: bigint; -} -export interface ValidatorCurrentRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - value: Uint8Array; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsAmino { - rewards?: DecCoinAmino[]; - period?: string; -} -export interface ValidatorCurrentRewardsAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewards"; - value: ValidatorCurrentRewardsAmino; -} -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - */ -export interface ValidatorCurrentRewardsSDKType { - rewards: DecCoinSDKType[]; - period: bigint; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommission { - commission: DecCoin[]; -} -export interface ValidatorAccumulatedCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionAmino { - commission?: DecCoinAmino[]; -} -export interface ValidatorAccumulatedCommissionAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommission"; - value: ValidatorAccumulatedCommissionAmino; -} -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface ValidatorAccumulatedCommissionSDKType { - commission: DecCoinSDKType[]; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewards { - rewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - value: Uint8Array; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsAmino { - rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewards"; - value: ValidatorOutstandingRewardsAmino; -} -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface ValidatorOutstandingRewardsSDKType { - rewards: DecCoinSDKType[]; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEvent { - validatorPeriod: bigint; - fraction: string; -} -export interface ValidatorSlashEventProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; - value: Uint8Array; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventAmino { - validator_period?: string; - fraction?: string; -} -export interface ValidatorSlashEventAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvent"; - value: ValidatorSlashEventAmino; -} -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface ValidatorSlashEventSDKType { - validator_period: bigint; - fraction: string; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEvents { - validatorSlashEvents: ValidatorSlashEvent[]; -} -export interface ValidatorSlashEventsProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; - value: Uint8Array; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsAmino { - validator_slash_events?: ValidatorSlashEventAmino[]; -} -export interface ValidatorSlashEventsAminoMsg { - type: "cosmos-sdk/ValidatorSlashEvents"; - value: ValidatorSlashEventsAmino; -} -/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ -export interface ValidatorSlashEventsSDKType { - validator_slash_events: ValidatorSlashEventSDKType[]; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePool { - communityPool: DecCoin[]; -} -export interface FeePoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.FeePool"; - value: Uint8Array; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolAmino { - community_pool?: DecCoinAmino[]; -} -export interface FeePoolAminoMsg { - type: "cosmos-sdk/FeePool"; - value: FeePoolAmino; -} -/** FeePool is the global fee pool for distribution. */ -export interface FeePoolSDKType { - community_pool: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposal { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: Coin[]; -} -export interface CommunityPoolSpendProposalProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalAmino { - title?: string; - description?: string; - recipient?: string; - amount?: CoinAmino[]; -} -export interface CommunityPoolSpendProposalAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposal"; - value: CommunityPoolSpendProposalAmino; -} -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - */ -export interface CommunityPoolSpendProposalSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - title: string; - description: string; - recipient: string; - amount: CoinSDKType[]; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfo { - previousPeriod: bigint; - stake: string; - height: bigint; -} -export interface DelegatorStartingInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; - value: Uint8Array; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoAmino { - previous_period?: string; - stake?: string; - height: string; -} -export interface DelegatorStartingInfoAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfo"; - value: DelegatorStartingInfoAmino; -} -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - */ -export interface DelegatorStartingInfoSDKType { - previous_period: bigint; - stake: string; - height: bigint; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorReward { - validatorAddress: string; - reward: DecCoin[]; -} -export interface DelegationDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; - value: Uint8Array; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardAmino { - validator_address?: string; - reward?: DecCoinAmino[]; -} -export interface DelegationDelegatorRewardAminoMsg { - type: "cosmos-sdk/DelegationDelegatorReward"; - value: DelegationDelegatorRewardAmino; -} -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface DelegationDelegatorRewardSDKType { - validator_address: string; - reward: DecCoinSDKType[]; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDeposit { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export interface CommunityPoolSpendProposalWithDepositProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - value: Uint8Array; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositAmino { - title?: string; - description?: string; - recipient?: string; - amount?: string; - deposit?: string; -} -export interface CommunityPoolSpendProposalWithDepositAminoMsg { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit"; - value: CommunityPoolSpendProposalWithDepositAmino; -} -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - */ -export interface CommunityPoolSpendProposalWithDepositSDKType { - $typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - title: string; - description: string; - recipient: string; - amount: string; - deposit: string; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const ValidatorHistoricalRewards: { - typeUrl: string; - encode(message: ValidatorHistoricalRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards; - fromPartial(object: Partial): ValidatorHistoricalRewards; - fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards; - toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino; - fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards; - toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg; - fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards; - toProto(message: ValidatorHistoricalRewards): Uint8Array; - toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg; -}; -export declare const ValidatorCurrentRewards: { - typeUrl: string; - encode(message: ValidatorCurrentRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards; - fromPartial(object: Partial): ValidatorCurrentRewards; - fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards; - toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino; - fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards; - toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg; - fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards; - toProto(message: ValidatorCurrentRewards): Uint8Array; - toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg; -}; -export declare const ValidatorAccumulatedCommission: { - typeUrl: string; - encode(message: ValidatorAccumulatedCommission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission; - fromPartial(object: Partial): ValidatorAccumulatedCommission; - fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission; - toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino; - fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission; - toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg; - fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission; - toProto(message: ValidatorAccumulatedCommission): Uint8Array; - toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg; -}; -export declare const ValidatorOutstandingRewards: { - typeUrl: string; - encode(message: ValidatorOutstandingRewards, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards; - fromPartial(object: Partial): ValidatorOutstandingRewards; - fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards; - toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino; - fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards; - toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg; - fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards; - toProto(message: ValidatorOutstandingRewards): Uint8Array; - toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg; -}; -export declare const ValidatorSlashEvent: { - typeUrl: string; - encode(message: ValidatorSlashEvent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent; - fromPartial(object: Partial): ValidatorSlashEvent; - fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent; - toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino; - fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent; - toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg; - fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent; - toProto(message: ValidatorSlashEvent): Uint8Array; - toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg; -}; -export declare const ValidatorSlashEvents: { - typeUrl: string; - encode(message: ValidatorSlashEvents, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents; - fromPartial(object: Partial): ValidatorSlashEvents; - fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents; - toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino; - fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents; - toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg; - fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents; - toProto(message: ValidatorSlashEvents): Uint8Array; - toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg; -}; -export declare const FeePool: { - typeUrl: string; - encode(message: FeePool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FeePool; - fromPartial(object: Partial): FeePool; - fromAmino(object: FeePoolAmino): FeePool; - toAmino(message: FeePool): FeePoolAmino; - fromAminoMsg(object: FeePoolAminoMsg): FeePool; - toAminoMsg(message: FeePool): FeePoolAminoMsg; - fromProtoMsg(message: FeePoolProtoMsg): FeePool; - toProto(message: FeePool): Uint8Array; - toProtoMsg(message: FeePool): FeePoolProtoMsg; -}; -export declare const CommunityPoolSpendProposal: { - typeUrl: string; - encode(message: CommunityPoolSpendProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal; - fromPartial(object: Partial): CommunityPoolSpendProposal; - fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal; - toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino; - fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal; - toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg; - fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal; - toProto(message: CommunityPoolSpendProposal): Uint8Array; - toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg; -}; -export declare const DelegatorStartingInfo: { - typeUrl: string; - encode(message: DelegatorStartingInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo; - fromPartial(object: Partial): DelegatorStartingInfo; - fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo; - toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino; - fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo; - toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg; - fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo; - toProto(message: DelegatorStartingInfo): Uint8Array; - toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg; -}; -export declare const DelegationDelegatorReward: { - typeUrl: string; - encode(message: DelegationDelegatorReward, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward; - fromPartial(object: Partial): DelegationDelegatorReward; - fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward; - toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino; - fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward; - toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg; - fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward; - toProto(message: DelegationDelegatorReward): Uint8Array; - toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg; -}; -export declare const CommunityPoolSpendProposalWithDeposit: { - typeUrl: string; - encode(message: CommunityPoolSpendProposalWithDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; - fromPartial(object: Partial): CommunityPoolSpendProposalWithDeposit; - fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit; - toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino; - fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit; - toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg; - fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit; - toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array; - toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/distribution.js b/packages/api/dist/cosmos/distribution/v1beta1/distribution.js deleted file mode 100644 index 205b10a3..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/distribution.js +++ /dev/null @@ -1,1053 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorReward = exports.DelegatorStartingInfo = exports.CommunityPoolSpendProposal = exports.FeePool = exports.ValidatorSlashEvents = exports.ValidatorSlashEvent = exports.ValidatorOutstandingRewards = exports.ValidatorAccumulatedCommission = exports.ValidatorCurrentRewards = exports.ValidatorHistoricalRewards = exports.Params = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const math_1 = require("@cosmjs/math"); -function createBaseParams() { - return { - communityTax: "", - baseProposerReward: "", - bonusProposerReward: "", - withdrawAddrEnabled: false - }; -} -exports.Params = { - typeUrl: "/cosmos.distribution.v1beta1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.communityTax !== "") { - writer.uint32(10).string(math_1.Decimal.fromUserInput(message.communityTax, 18).atomics); - } - if (message.baseProposerReward !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.baseProposerReward, 18).atomics); - } - if (message.bonusProposerReward !== "") { - writer.uint32(26).string(math_1.Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); - } - if (message.withdrawAddrEnabled === true) { - writer.uint32(32).bool(message.withdrawAddrEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityTax = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.baseProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.bonusProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.withdrawAddrEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.communityTax = object.communityTax ?? ""; - message.baseProposerReward = object.baseProposerReward ?? ""; - message.bonusProposerReward = object.bonusProposerReward ?? ""; - message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.community_tax !== undefined && object.community_tax !== null) { - message.communityTax = object.community_tax; - } - if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { - message.baseProposerReward = object.base_proposer_reward; - } - if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { - message.bonusProposerReward = object.bonus_proposer_reward; - } - if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { - message.withdrawAddrEnabled = object.withdraw_addr_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; - obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; - obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; - obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewards() { - return { - cumulativeRewardRatio: [], - referenceCount: 0 - }; -} -exports.ValidatorHistoricalRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.cumulativeRewardRatio) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.referenceCount !== 0) { - writer.uint32(16).uint32(message.referenceCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cumulativeRewardRatio.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.referenceCount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - message.referenceCount = object.referenceCount ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - if (object.reference_count !== undefined && object.reference_count !== null) { - message.referenceCount = object.reference_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.cumulativeRewardRatio) { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio; - } - obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorHistoricalRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorHistoricalRewards", - value: exports.ValidatorHistoricalRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorHistoricalRewards.decode(message.value); - }, - toProto(message) { - return exports.ValidatorHistoricalRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - value: exports.ValidatorHistoricalRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewards() { - return { - rewards: [], - period: BigInt(0) - }; -} -exports.ValidatorCurrentRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.rewards) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.period = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorCurrentRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorCurrentRewards", - value: exports.ValidatorCurrentRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorCurrentRewards.decode(message.value); - }, - toProto(message) { - return exports.ValidatorCurrentRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - value: exports.ValidatorCurrentRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommission() { - return { - commission: [] - }; -} -exports.ValidatorAccumulatedCommission = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.commission) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.commission) { - obj.commission = message.commission.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.commission = message.commission; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorAccumulatedCommission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommission", - value: exports.ValidatorAccumulatedCommission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorAccumulatedCommission.decode(message.value); - }, - toProto(message) { - return exports.ValidatorAccumulatedCommission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - value: exports.ValidatorAccumulatedCommission.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewards() { - return { - rewards: [] - }; -} -exports.ValidatorOutstandingRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.rewards) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorOutstandingRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorOutstandingRewards", - value: exports.ValidatorOutstandingRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorOutstandingRewards.decode(message.value); - }, - toProto(message) { - return exports.ValidatorOutstandingRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - value: exports.ValidatorOutstandingRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvent() { - return { - validatorPeriod: BigInt(0), - fraction: "" - }; -} -exports.ValidatorSlashEvent = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.validatorPeriod); - } - if (message.fraction !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.fraction, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorPeriod = reader.uint64(); - break; - case 2: - message.fraction = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEvent(); - message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); - message.fraction = object.fraction ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEvent(); - if (object.validator_period !== undefined && object.validator_period !== null) { - message.validatorPeriod = BigInt(object.validator_period); - } - if (object.fraction !== undefined && object.fraction !== null) { - message.fraction = object.fraction; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; - obj.fraction = message.fraction === "" ? undefined : message.fraction; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorSlashEvent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEvent", - value: exports.ValidatorSlashEvent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorSlashEvent.decode(message.value); - }, - toProto(message) { - return exports.ValidatorSlashEvent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - value: exports.ValidatorSlashEvent.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvents() { - return { - validatorSlashEvents: [] - }; -} -exports.ValidatorSlashEvents = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validatorSlashEvents) { - exports.ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvents(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorSlashEvents.push(exports.ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => exports.ValidatorSlashEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validator_slash_events?.map(e => exports.ValidatorSlashEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? exports.ValidatorSlashEvent.toAmino(e) : undefined); - } - else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorSlashEvents.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEvents", - value: exports.ValidatorSlashEvents.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorSlashEvents.decode(message.value); - }, - toProto(message) { - return exports.ValidatorSlashEvents.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - value: exports.ValidatorSlashEvents.encode(message).finish() - }; - } -}; -function createBaseFeePool() { - return { - communityPool: [] - }; -} -exports.FeePool = { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.communityPool) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFeePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityPool.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFeePool(); - message.communityPool = object.communityPool?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFeePool(); - message.communityPool = object.community_pool?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.communityPool) { - obj.community_pool = message.communityPool.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.community_pool = message.communityPool; - } - return obj; - }, - fromAminoMsg(object) { - return exports.FeePool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/FeePool", - value: exports.FeePool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.FeePool.decode(message.value); - }, - toProto(message) { - return exports.FeePool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - value: exports.FeePool.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposal() { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - title: "", - description: "", - recipient: "", - amount: [] - }; -} -exports.CommunityPoolSpendProposal = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommunityPoolSpendProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommunityPoolSpendProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.CommunityPoolSpendProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommunityPoolSpendProposal", - value: exports.CommunityPoolSpendProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CommunityPoolSpendProposal.decode(message.value); - }, - toProto(message) { - return exports.CommunityPoolSpendProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - value: exports.CommunityPoolSpendProposal.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfo() { - return { - previousPeriod: BigInt(0), - stake: "", - height: BigInt(0) - }; -} -exports.DelegatorStartingInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.previousPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.previousPeriod); - } - if (message.stake !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.stake, 18).atomics); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).uint64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.previousPeriod = reader.uint64(); - break; - case 2: - message.stake = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.height = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorStartingInfo(); - message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); - message.stake = object.stake ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorStartingInfo(); - if (object.previous_period !== undefined && object.previous_period !== null) { - message.previousPeriod = BigInt(object.previous_period); - } - if (object.stake !== undefined && object.stake !== null) { - message.stake = object.stake; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; - obj.stake = message.stake === "" ? undefined : message.stake; - obj.height = message.height ? message.height.toString() : "0"; - return obj; - }, - fromAminoMsg(object) { - return exports.DelegatorStartingInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorStartingInfo", - value: exports.DelegatorStartingInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelegatorStartingInfo.decode(message.value); - }, - toProto(message) { - return exports.DelegatorStartingInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - value: exports.DelegatorStartingInfo.encode(message).finish() - }; - } -}; -function createBaseDelegationDelegatorReward() { - return { - validatorAddress: "", - reward: [] - }; -} -exports.DelegationDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.reward) { - coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.reward.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegationDelegatorReward(); - message.validatorAddress = object.validatorAddress ?? ""; - message.reward = object.reward?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDelegationDelegatorReward(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.reward = object.reward?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.reward) { - obj.reward = message.reward.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.reward = message.reward; - } - return obj; - }, - fromAminoMsg(object) { - return exports.DelegationDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegationDelegatorReward", - value: exports.DelegationDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelegationDelegatorReward.decode(message.value); - }, - toProto(message) { - return exports.DelegationDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - value: exports.DelegationDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposalWithDeposit() { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - title: "", - description: "", - recipient: "", - amount: "", - deposit: "" - }; -} -exports.CommunityPoolSpendProposalWithDeposit = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.deposit !== "") { - writer.uint32(42).string(message.deposit); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.deposit = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.deposit = object.deposit ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = object.deposit; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.deposit = message.deposit === "" ? undefined : message.deposit; - return obj; - }, - fromAminoMsg(object) { - return exports.CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", - value: exports.CommunityPoolSpendProposalWithDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CommunityPoolSpendProposalWithDeposit.decode(message.value); - }, - toProto(message) { - return exports.CommunityPoolSpendProposalWithDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - value: exports.CommunityPoolSpendProposalWithDeposit.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts deleted file mode 100644 index 43c4c196..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/genesis.d.ts +++ /dev/null @@ -1,413 +0,0 @@ -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfo { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdrawAddress: string; -} -export interface DelegatorWithdrawInfoProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - value: Uint8Array; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** withdraw_address is the address to withdraw the delegation rewards to. */ - withdraw_address?: string; -} -export interface DelegatorWithdrawInfoAminoMsg { - type: "cosmos-sdk/DelegatorWithdrawInfo"; - value: DelegatorWithdrawInfoAmino; -} -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - */ -export interface DelegatorWithdrawInfoSDKType { - delegator_address: string; - withdraw_address: string; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstandingRewards: DecCoin[]; -} -export interface ValidatorOutstandingRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - value: Uint8Array; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** outstanding_rewards represents the oustanding rewards of a validator. */ - outstanding_rewards?: DecCoinAmino[]; -} -export interface ValidatorOutstandingRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord"; - value: ValidatorOutstandingRewardsRecordAmino; -} -/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ -export interface ValidatorOutstandingRewardsRecordSDKType { - validator_address: string; - outstanding_rewards: DecCoinSDKType[]; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated: ValidatorAccumulatedCommission; -} -export interface ValidatorAccumulatedCommissionRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - value: Uint8Array; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** accumulated is the accumulated commission of a validator. */ - accumulated?: ValidatorAccumulatedCommissionAmino; -} -export interface ValidatorAccumulatedCommissionRecordAminoMsg { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord"; - value: ValidatorAccumulatedCommissionRecordAmino; -} -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - */ -export interface ValidatorAccumulatedCommissionRecordSDKType { - validator_address: string; - accumulated: ValidatorAccumulatedCommissionSDKType; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** period defines the period the historical rewards apply to. */ - period: bigint; - /** rewards defines the historical rewards of a validator. */ - rewards: ValidatorHistoricalRewards; -} -export interface ValidatorHistoricalRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - value: Uint8Array; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** period defines the period the historical rewards apply to. */ - period?: string; - /** rewards defines the historical rewards of a validator. */ - rewards?: ValidatorHistoricalRewardsAmino; -} -export interface ValidatorHistoricalRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord"; - value: ValidatorHistoricalRewardsRecordAmino; -} -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - */ -export interface ValidatorHistoricalRewardsRecordSDKType { - validator_address: string; - period: bigint; - rewards: ValidatorHistoricalRewardsSDKType; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** rewards defines the current rewards of a validator. */ - rewards: ValidatorCurrentRewards; -} -export interface ValidatorCurrentRewardsRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - value: Uint8Array; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** rewards defines the current rewards of a validator. */ - rewards?: ValidatorCurrentRewardsAmino; -} -export interface ValidatorCurrentRewardsRecordAminoMsg { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord"; - value: ValidatorCurrentRewardsRecordAmino; -} -/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ -export interface ValidatorCurrentRewardsRecordSDKType { - validator_address: string; - rewards: ValidatorCurrentRewardsSDKType; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecord { - /** delegator_address is the address of the delegator. */ - delegatorAddress: string; - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** starting_info defines the starting info of a delegator. */ - startingInfo: DelegatorStartingInfo; -} -export interface DelegatorStartingInfoRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - value: Uint8Array; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordAmino { - /** delegator_address is the address of the delegator. */ - delegator_address?: string; - /** validator_address is the address of the validator. */ - validator_address?: string; - /** starting_info defines the starting info of a delegator. */ - starting_info?: DelegatorStartingInfoAmino; -} -export interface DelegatorStartingInfoRecordAminoMsg { - type: "cosmos-sdk/DelegatorStartingInfoRecord"; - value: DelegatorStartingInfoRecordAmino; -} -/** DelegatorStartingInfoRecord used for import / export via genesis json. */ -export interface DelegatorStartingInfoRecordSDKType { - delegator_address: string; - validator_address: string; - starting_info: DelegatorStartingInfoSDKType; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecord { - /** validator_address is the address of the validator. */ - validatorAddress: string; - /** height defines the block height at which the slash event occured. */ - height: bigint; - /** period is the period of the slash event. */ - period: bigint; - /** validator_slash_event describes the slash event. */ - validatorSlashEvent: ValidatorSlashEvent; -} -export interface ValidatorSlashEventRecordProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - value: Uint8Array; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordAmino { - /** validator_address is the address of the validator. */ - validator_address?: string; - /** height defines the block height at which the slash event occured. */ - height?: string; - /** period is the period of the slash event. */ - period?: string; - /** validator_slash_event describes the slash event. */ - validator_slash_event?: ValidatorSlashEventAmino; -} -export interface ValidatorSlashEventRecordAminoMsg { - type: "cosmos-sdk/ValidatorSlashEventRecord"; - value: ValidatorSlashEventRecordAmino; -} -/** ValidatorSlashEventRecord is used for import / export via genesis json. */ -export interface ValidatorSlashEventRecordSDKType { - validator_address: string; - height: bigint; - period: bigint; - validator_slash_event: ValidatorSlashEventSDKType; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of the module. */ - params: Params; - /** fee_pool defines the fee pool at genesis. */ - feePool: FeePool; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[]; - /** fee_pool defines the previous proposer at genesis. */ - previousProposer: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstandingRewards: ValidatorOutstandingRewardsRecord[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegatorStartingInfos: DelegatorStartingInfoRecord[]; - /** fee_pool defines the validator slash events at genesis. */ - validatorSlashEvents: ValidatorSlashEventRecord[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; - /** fee_pool defines the fee pool at genesis. */ - fee_pool?: FeePoolAmino; - /** fee_pool defines the delegator withdraw infos at genesis. */ - delegator_withdraw_infos?: DelegatorWithdrawInfoAmino[]; - /** fee_pool defines the previous proposer at genesis. */ - previous_proposer?: string; - /** fee_pool defines the outstanding rewards of all validators at genesis. */ - outstanding_rewards?: ValidatorOutstandingRewardsRecordAmino[]; - /** fee_pool defines the accumulated commisions of all validators at genesis. */ - validator_accumulated_commissions?: ValidatorAccumulatedCommissionRecordAmino[]; - /** fee_pool defines the historical rewards of all validators at genesis. */ - validator_historical_rewards?: ValidatorHistoricalRewardsRecordAmino[]; - /** fee_pool defines the current rewards of all validators at genesis. */ - validator_current_rewards?: ValidatorCurrentRewardsRecordAmino[]; - /** fee_pool defines the delegator starting infos at genesis. */ - delegator_starting_infos?: DelegatorStartingInfoRecordAmino[]; - /** fee_pool defines the validator slash events at genesis. */ - validator_slash_events?: ValidatorSlashEventRecordAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the distribution module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - fee_pool: FeePoolSDKType; - delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[]; - previous_proposer: string; - outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[]; - validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[]; - validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[]; - validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[]; - delegator_starting_infos: DelegatorStartingInfoRecordSDKType[]; - validator_slash_events: ValidatorSlashEventRecordSDKType[]; -} -export declare const DelegatorWithdrawInfo: { - typeUrl: string; - encode(message: DelegatorWithdrawInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo; - fromPartial(object: Partial): DelegatorWithdrawInfo; - fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo; - toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino; - fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo; - toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg; - fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo; - toProto(message: DelegatorWithdrawInfo): Uint8Array; - toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg; -}; -export declare const ValidatorOutstandingRewardsRecord: { - typeUrl: string; - encode(message: ValidatorOutstandingRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord; - fromPartial(object: Partial): ValidatorOutstandingRewardsRecord; - fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord; - toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino; - fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord; - toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord; - toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg; -}; -export declare const ValidatorAccumulatedCommissionRecord: { - typeUrl: string; - encode(message: ValidatorAccumulatedCommissionRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord; - fromPartial(object: Partial): ValidatorAccumulatedCommissionRecord; - fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord; - toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino; - fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord; - toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg; - fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord; - toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array; - toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg; -}; -export declare const ValidatorHistoricalRewardsRecord: { - typeUrl: string; - encode(message: ValidatorHistoricalRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord; - fromPartial(object: Partial): ValidatorHistoricalRewardsRecord; - fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord; - toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino; - fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord; - toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord; - toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg; -}; -export declare const ValidatorCurrentRewardsRecord: { - typeUrl: string; - encode(message: ValidatorCurrentRewardsRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord; - fromPartial(object: Partial): ValidatorCurrentRewardsRecord; - fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord; - toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino; - fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord; - toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg; - fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord; - toProto(message: ValidatorCurrentRewardsRecord): Uint8Array; - toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg; -}; -export declare const DelegatorStartingInfoRecord: { - typeUrl: string; - encode(message: DelegatorStartingInfoRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord; - fromPartial(object: Partial): DelegatorStartingInfoRecord; - fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord; - toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino; - fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord; - toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg; - fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord; - toProto(message: DelegatorStartingInfoRecord): Uint8Array; - toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg; -}; -export declare const ValidatorSlashEventRecord: { - typeUrl: string; - encode(message: ValidatorSlashEventRecord, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord; - fromPartial(object: Partial): ValidatorSlashEventRecord; - fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord; - toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino; - fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord; - toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg; - fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord; - toProto(message: ValidatorSlashEventRecord): Uint8Array; - toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg; -}; -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/genesis.js b/packages/api/dist/cosmos/distribution/v1beta1/genesis.js deleted file mode 100644 index 039802b2..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/genesis.js +++ /dev/null @@ -1,823 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = exports.ValidatorSlashEventRecord = exports.DelegatorStartingInfoRecord = exports.ValidatorCurrentRewardsRecord = exports.ValidatorHistoricalRewardsRecord = exports.ValidatorAccumulatedCommissionRecord = exports.ValidatorOutstandingRewardsRecord = exports.DelegatorWithdrawInfo = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const distribution_1 = require("./distribution"); -const binary_1 = require("../../../binary"); -function createBaseDelegatorWithdrawInfo() { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -exports.DelegatorWithdrawInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorWithdrawInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorWithdrawInfo(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorWithdrawInfo(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.DelegatorWithdrawInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorWithdrawInfo", - value: exports.DelegatorWithdrawInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelegatorWithdrawInfo.decode(message.value); - }, - toProto(message) { - return exports.DelegatorWithdrawInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - value: exports.DelegatorWithdrawInfo.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewardsRecord() { - return { - validatorAddress: "", - outstandingRewards: [] - }; -} -exports.ValidatorOutstandingRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.outstandingRewards) { - coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.outstandingRewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorOutstandingRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorOutstandingRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.outstanding_rewards = message.outstandingRewards; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorOutstandingRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", - value: exports.ValidatorOutstandingRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorOutstandingRewardsRecord.decode(message.value); - }, - toProto(message) { - return exports.ValidatorOutstandingRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - value: exports.ValidatorOutstandingRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommissionRecord() { - return { - validatorAddress: "", - accumulated: distribution_1.ValidatorAccumulatedCommission.fromPartial({}) - }; -} -exports.ValidatorAccumulatedCommissionRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.accumulated !== undefined) { - distribution_1.ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommissionRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.accumulated = distribution_1.ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorAccumulatedCommissionRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? distribution_1.ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorAccumulatedCommissionRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.accumulated !== undefined && object.accumulated !== null) { - message.accumulated = distribution_1.ValidatorAccumulatedCommission.fromAmino(object.accumulated); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.accumulated = message.accumulated ? distribution_1.ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorAccumulatedCommissionRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", - value: exports.ValidatorAccumulatedCommissionRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorAccumulatedCommissionRecord.decode(message.value); - }, - toProto(message) { - return exports.ValidatorAccumulatedCommissionRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - value: exports.ValidatorAccumulatedCommissionRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewardsRecord() { - return { - validatorAddress: "", - period: BigInt(0), - rewards: distribution_1.ValidatorHistoricalRewards.fromPartial({}) - }; -} -exports.ValidatorHistoricalRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - if (message.rewards !== undefined) { - distribution_1.ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.period = reader.uint64(); - break; - case 3: - message.rewards = distribution_1.ValidatorHistoricalRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorHistoricalRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorHistoricalRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = distribution_1.ValidatorHistoricalRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.rewards = message.rewards ? distribution_1.ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorHistoricalRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", - value: exports.ValidatorHistoricalRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorHistoricalRewardsRecord.decode(message.value); - }, - toProto(message) { - return exports.ValidatorHistoricalRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - value: exports.ValidatorHistoricalRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewardsRecord() { - return { - validatorAddress: "", - rewards: distribution_1.ValidatorCurrentRewards.fromPartial({}) - }; -} -exports.ValidatorCurrentRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.rewards !== undefined) { - distribution_1.ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.rewards = distribution_1.ValidatorCurrentRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorCurrentRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorCurrentRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = distribution_1.ValidatorCurrentRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.rewards = message.rewards ? distribution_1.ValidatorCurrentRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorCurrentRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord", - value: exports.ValidatorCurrentRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorCurrentRewardsRecord.decode(message.value); - }, - toProto(message) { - return exports.ValidatorCurrentRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - value: exports.ValidatorCurrentRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfoRecord() { - return { - delegatorAddress: "", - validatorAddress: "", - startingInfo: distribution_1.DelegatorStartingInfo.fromPartial({}) - }; -} -exports.DelegatorStartingInfoRecord = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.startingInfo !== undefined) { - distribution_1.DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfoRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.startingInfo = distribution_1.DelegatorStartingInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorStartingInfoRecord(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? distribution_1.DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorStartingInfoRecord(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_info !== undefined && object.starting_info !== null) { - message.startingInfo = distribution_1.DelegatorStartingInfo.fromAmino(object.starting_info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_info = message.startingInfo ? distribution_1.DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DelegatorStartingInfoRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorStartingInfoRecord", - value: exports.DelegatorStartingInfoRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelegatorStartingInfoRecord.decode(message.value); - }, - toProto(message) { - return exports.DelegatorStartingInfoRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - value: exports.DelegatorStartingInfoRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEventRecord() { - return { - validatorAddress: "", - height: BigInt(0), - period: BigInt(0), - validatorSlashEvent: distribution_1.ValidatorSlashEvent.fromPartial({}) - }; -} -exports.ValidatorSlashEventRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).uint64(message.height); - } - if (message.period !== BigInt(0)) { - writer.uint32(24).uint64(message.period); - } - if (message.validatorSlashEvent !== undefined) { - distribution_1.ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEventRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.height = reader.uint64(); - break; - case 3: - message.period = reader.uint64(); - break; - case 4: - message.validatorSlashEvent = distribution_1.ValidatorSlashEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEventRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? distribution_1.ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEventRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { - message.validatorSlashEvent = distribution_1.ValidatorSlashEvent.fromAmino(object.validator_slash_event); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.validator_slash_event = message.validatorSlashEvent ? distribution_1.ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorSlashEventRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEventRecord", - value: exports.ValidatorSlashEventRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValidatorSlashEventRecord.decode(message.value); - }, - toProto(message) { - return exports.ValidatorSlashEventRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - value: exports.ValidatorSlashEventRecord.encode(message).finish() - }; - } -}; -function createBaseGenesisState() { - return { - params: distribution_1.Params.fromPartial({}), - feePool: distribution_1.FeePool.fromPartial({}), - delegatorWithdrawInfos: [], - previousProposer: "", - outstandingRewards: [], - validatorAccumulatedCommissions: [], - validatorHistoricalRewards: [], - validatorCurrentRewards: [], - delegatorStartingInfos: [], - validatorSlashEvents: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - distribution_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.feePool !== undefined) { - distribution_1.FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatorWithdrawInfos) { - exports.DelegatorWithdrawInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.previousProposer !== "") { - writer.uint32(34).string(message.previousProposer); - } - for (const v of message.outstandingRewards) { - exports.ValidatorOutstandingRewardsRecord.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.validatorAccumulatedCommissions) { - exports.ValidatorAccumulatedCommissionRecord.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.validatorHistoricalRewards) { - exports.ValidatorHistoricalRewardsRecord.encode(v, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.validatorCurrentRewards) { - exports.ValidatorCurrentRewardsRecord.encode(v, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.delegatorStartingInfos) { - exports.DelegatorStartingInfoRecord.encode(v, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.validatorSlashEvents) { - exports.ValidatorSlashEventRecord.encode(v, writer.uint32(82).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = distribution_1.Params.decode(reader, reader.uint32()); - break; - case 2: - message.feePool = distribution_1.FeePool.decode(reader, reader.uint32()); - break; - case 3: - message.delegatorWithdrawInfos.push(exports.DelegatorWithdrawInfo.decode(reader, reader.uint32())); - break; - case 4: - message.previousProposer = reader.string(); - break; - case 5: - message.outstandingRewards.push(exports.ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); - break; - case 6: - message.validatorAccumulatedCommissions.push(exports.ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); - break; - case 7: - message.validatorHistoricalRewards.push(exports.ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); - break; - case 8: - message.validatorCurrentRewards.push(exports.ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); - break; - case 9: - message.delegatorStartingInfos.push(exports.DelegatorStartingInfoRecord.decode(reader, reader.uint32())); - break; - case 10: - message.validatorSlashEvents.push(exports.ValidatorSlashEventRecord.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? distribution_1.Params.fromPartial(object.params) : undefined; - message.feePool = object.feePool !== undefined && object.feePool !== null ? distribution_1.FeePool.fromPartial(object.feePool) : undefined; - message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => exports.DelegatorWithdrawInfo.fromPartial(e)) || []; - message.previousProposer = object.previousProposer ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => exports.ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; - message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => exports.ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; - message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => exports.ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; - message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => exports.ValidatorCurrentRewardsRecord.fromPartial(e)) || []; - message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => exports.DelegatorStartingInfoRecord.fromPartial(e)) || []; - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => exports.ValidatorSlashEventRecord.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = distribution_1.Params.fromAmino(object.params); - } - if (object.fee_pool !== undefined && object.fee_pool !== null) { - message.feePool = distribution_1.FeePool.fromAmino(object.fee_pool); - } - message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => exports.DelegatorWithdrawInfo.fromAmino(e)) || []; - if (object.previous_proposer !== undefined && object.previous_proposer !== null) { - message.previousProposer = object.previous_proposer; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => exports.ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; - message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => exports.ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; - message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => exports.ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; - message.validatorCurrentRewards = object.validator_current_rewards?.map(e => exports.ValidatorCurrentRewardsRecord.fromAmino(e)) || []; - message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => exports.DelegatorStartingInfoRecord.fromAmino(e)) || []; - message.validatorSlashEvents = object.validator_slash_events?.map(e => exports.ValidatorSlashEventRecord.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? distribution_1.Params.toAmino(message.params) : undefined; - obj.fee_pool = message.feePool ? distribution_1.FeePool.toAmino(message.feePool) : undefined; - if (message.delegatorWithdrawInfos) { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? exports.DelegatorWithdrawInfo.toAmino(e) : undefined); - } - else { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; - } - obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? exports.ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); - } - else { - obj.outstanding_rewards = message.outstandingRewards; - } - if (message.validatorAccumulatedCommissions) { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? exports.ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); - } - else { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; - } - if (message.validatorHistoricalRewards) { - obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? exports.ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); - } - else { - obj.validator_historical_rewards = message.validatorHistoricalRewards; - } - if (message.validatorCurrentRewards) { - obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? exports.ValidatorCurrentRewardsRecord.toAmino(e) : undefined); - } - else { - obj.validator_current_rewards = message.validatorCurrentRewards; - } - if (message.delegatorStartingInfos) { - obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? exports.DelegatorStartingInfoRecord.toAmino(e) : undefined); - } - else { - obj.delegator_starting_infos = message.delegatorStartingInfos; - } - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? exports.ValidatorSlashEventRecord.toAmino(e) : undefined); - } - else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts deleted file mode 100644 index 8e38dc88..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.d.ts +++ /dev/null @@ -1,796 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardAmino, DelegationDelegatorRewardSDKType } from "./distribution"; -import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorOutstandingRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorOutstandingRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest"; - value: QueryValidatorOutstandingRewardsRequestAmino; -} -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponse { - rewards: ValidatorOutstandingRewards; -} -export interface QueryValidatorOutstandingRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseAmino { - rewards?: ValidatorOutstandingRewardsAmino; -} -export interface QueryValidatorOutstandingRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse"; - value: QueryValidatorOutstandingRewardsResponseAmino; -} -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface QueryValidatorOutstandingRewardsResponseSDKType { - rewards: ValidatorOutstandingRewardsSDKType; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryValidatorCommissionRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryValidatorCommissionRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionRequest"; - value: QueryValidatorCommissionRequestAmino; -} -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionRequestSDKType { - validator_address: string; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponse { - /** commission defines the commision the validator received. */ - commission: ValidatorAccumulatedCommission; -} -export interface QueryValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; - value: Uint8Array; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseAmino { - /** commission defines the commision the validator received. */ - commission?: ValidatorAccumulatedCommissionAmino; -} -export interface QueryValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorCommissionResponse"; - value: QueryValidatorCommissionResponseAmino; -} -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface QueryValidatorCommissionResponseSDKType { - commission: ValidatorAccumulatedCommissionSDKType; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequest { - /** validator_address defines the validator address to query for. */ - validatorAddress: string; - /** starting_height defines the optional starting height to query the slashes. */ - startingHeight: bigint; - /** starting_height defines the optional ending height to query the slashes. */ - endingHeight: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorSlashesRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestAmino { - /** validator_address defines the validator address to query for. */ - validator_address?: string; - /** starting_height defines the optional starting height to query the slashes. */ - starting_height?: string; - /** starting_height defines the optional ending height to query the slashes. */ - ending_height?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorSlashesRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesRequest"; - value: QueryValidatorSlashesRequestAmino; -} -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - */ -export interface QueryValidatorSlashesRequestSDKType { - validator_address: string; - starting_height: bigint; - ending_height: bigint; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponse { - /** slashes defines the slashes the validator received. */ - slashes: ValidatorSlashEvent[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorSlashesResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; - value: Uint8Array; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseAmino { - /** slashes defines the slashes the validator received. */ - slashes?: ValidatorSlashEventAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorSlashesResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorSlashesResponse"; - value: QueryValidatorSlashesResponseAmino; -} -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface QueryValidatorSlashesResponseSDKType { - slashes: ValidatorSlashEventSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; - /** validator_address defines the validator address to query for. */ - validatorAddress: string; -} -export interface QueryDelegationRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; - /** validator_address defines the validator address to query for. */ - validator_address?: string; -} -export interface QueryDelegationRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsRequest"; - value: QueryDelegationRewardsRequestAmino; -} -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsRequestSDKType { - delegator_address: string; - validator_address: string; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponse { - /** rewards defines the rewards accrued by a delegation. */ - rewards: DecCoin[]; -} -export interface QueryDelegationRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseAmino { - /** rewards defines the rewards accrued by a delegation. */ - rewards?: DecCoinAmino[]; -} -export interface QueryDelegationRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationRewardsResponse"; - value: QueryDelegationRewardsResponseAmino; -} -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface QueryDelegationRewardsResponseSDKType { - rewards: DecCoinSDKType[]; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegationTotalRewardsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegationTotalRewardsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest"; - value: QueryDelegationTotalRewardsRequestAmino; -} -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponse { - /** rewards defines all the rewards accrued by a delegator. */ - rewards: DelegationDelegatorReward[]; - /** total defines the sum of all the rewards. */ - total: DecCoin[]; -} -export interface QueryDelegationTotalRewardsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; - value: Uint8Array; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseAmino { - /** rewards defines all the rewards accrued by a delegator. */ - rewards?: DelegationDelegatorRewardAmino[]; - /** total defines the sum of all the rewards. */ - total?: DecCoinAmino[]; -} -export interface QueryDelegationTotalRewardsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse"; - value: QueryDelegationTotalRewardsResponseAmino; -} -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface QueryDelegationTotalRewardsResponseSDKType { - rewards: DelegationDelegatorRewardSDKType[]; - total: DecCoinSDKType[]; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators a delegator is delegating for. */ - validators: string[]; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators a delegator is delegating for. */ - validators?: string[]; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: string[]; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequest { - /** delegator_address defines the delegator address to query for. */ - delegatorAddress: string; -} -export interface QueryDelegatorWithdrawAddressRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestAmino { - /** delegator_address defines the delegator address to query for. */ - delegator_address?: string; -} -export interface QueryDelegatorWithdrawAddressRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest"; - value: QueryDelegatorWithdrawAddressRequestAmino; -} -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressRequestSDKType { - delegator_address: string; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponse { - /** withdraw_address defines the delegator address to query for. */ - withdrawAddress: string; -} -export interface QueryDelegatorWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseAmino { - /** withdraw_address defines the delegator address to query for. */ - withdraw_address?: string; -} -export interface QueryDelegatorWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse"; - value: QueryDelegatorWithdrawAddressResponseAmino; -} -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface QueryDelegatorWithdrawAddressResponseSDKType { - withdraw_address: string; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequest { -} -export interface QueryCommunityPoolRequestProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; - value: Uint8Array; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestAmino { -} -export interface QueryCommunityPoolRequestAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolRequest"; - value: QueryCommunityPoolRequestAmino; -} -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - */ -export interface QueryCommunityPoolRequestSDKType { -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponse { - /** pool defines community pool's coins. */ - pool: DecCoin[]; -} -export interface QueryCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; - value: Uint8Array; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseAmino { - /** pool defines community pool's coins. */ - pool?: DecCoinAmino[]; -} -export interface QueryCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/QueryCommunityPoolResponse"; - value: QueryCommunityPoolResponseAmino; -} -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface QueryCommunityPoolResponseSDKType { - pool: DecCoinSDKType[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryValidatorOutstandingRewardsRequest: { - typeUrl: string; - encode(message: QueryValidatorOutstandingRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; - fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest; - fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest; - toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino; - fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest; - toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest; - toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg; -}; -export declare const QueryValidatorOutstandingRewardsResponse: { - typeUrl: string; - encode(message: QueryValidatorOutstandingRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; - fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse; - fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse; - toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino; - fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse; - toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse; - toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg; -}; -export declare const QueryValidatorCommissionRequest: { - typeUrl: string; - encode(message: QueryValidatorCommissionRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest; - fromPartial(object: Partial): QueryValidatorCommissionRequest; - fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest; - toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino; - fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest; - toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg; - fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest; - toProto(message: QueryValidatorCommissionRequest): Uint8Array; - toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg; -}; -export declare const QueryValidatorCommissionResponse: { - typeUrl: string; - encode(message: QueryValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse; - fromPartial(object: Partial): QueryValidatorCommissionResponse; - fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse; - toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino; - fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse; - toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse; - toProto(message: QueryValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg; -}; -export declare const QueryValidatorSlashesRequest: { - typeUrl: string; - encode(message: QueryValidatorSlashesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest; - fromPartial(object: Partial): QueryValidatorSlashesRequest; - fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest; - toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino; - fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest; - toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg; - fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest; - toProto(message: QueryValidatorSlashesRequest): Uint8Array; - toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg; -}; -export declare const QueryValidatorSlashesResponse: { - typeUrl: string; - encode(message: QueryValidatorSlashesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse; - fromPartial(object: Partial): QueryValidatorSlashesResponse; - fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse; - toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino; - fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse; - toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg; - fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse; - toProto(message: QueryValidatorSlashesResponse): Uint8Array; - toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg; -}; -export declare const QueryDelegationRewardsRequest: { - typeUrl: string; - encode(message: QueryDelegationRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest; - fromPartial(object: Partial): QueryDelegationRewardsRequest; - fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest; - toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino; - fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest; - toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg; - fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest; - toProto(message: QueryDelegationRewardsRequest): Uint8Array; - toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg; -}; -export declare const QueryDelegationRewardsResponse: { - typeUrl: string; - encode(message: QueryDelegationRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse; - fromPartial(object: Partial): QueryDelegationRewardsResponse; - fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse; - toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino; - fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse; - toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg; - fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse; - toProto(message: QueryDelegationRewardsResponse): Uint8Array; - toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg; -}; -export declare const QueryDelegationTotalRewardsRequest: { - typeUrl: string; - encode(message: QueryDelegationTotalRewardsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; - fromPartial(object: Partial): QueryDelegationTotalRewardsRequest; - fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest; - toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino; - fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest; - toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg; - fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest; - toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array; - toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg; -}; -export declare const QueryDelegationTotalRewardsResponse: { - typeUrl: string; - encode(message: QueryDelegationTotalRewardsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; - fromPartial(object: Partial): QueryDelegationTotalRewardsResponse; - fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse; - toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino; - fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse; - toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg; - fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse; - toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array; - toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; - fromPartial(object: Partial): QueryDelegatorValidatorsRequest; - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; - fromPartial(object: Partial): QueryDelegatorValidatorsResponse; - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; -}; -export declare const QueryDelegatorWithdrawAddressRequest: { - typeUrl: string; - encode(message: QueryDelegatorWithdrawAddressRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; - fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest; - fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest; - toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino; - fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest; - toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest; - toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg; -}; -export declare const QueryDelegatorWithdrawAddressResponse: { - typeUrl: string; - encode(message: QueryDelegatorWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; - fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse; - fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse; - toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino; - fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse; - toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse; - toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg; -}; -export declare const QueryCommunityPoolRequest: { - typeUrl: string; - encode(_: QueryCommunityPoolRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest; - fromPartial(_: Partial): QueryCommunityPoolRequest; - fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest; - toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino; - fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest; - toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg; - fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest; - toProto(message: QueryCommunityPoolRequest): Uint8Array; - toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg; -}; -export declare const QueryCommunityPoolResponse: { - typeUrl: string; - encode(message: QueryCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse; - fromPartial(object: Partial): QueryCommunityPoolResponse; - fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse; - toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino; - fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse; - toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg; - fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse; - toProto(message: QueryCommunityPoolResponse): Uint8Array; - toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.js b/packages/api/dist/cosmos/distribution/v1beta1/query.js deleted file mode 100644 index a46744f5..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.js +++ /dev/null @@ -1,1314 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const distribution_1 = require("./distribution"); -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: distribution_1.Params.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - distribution_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = distribution_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? distribution_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = distribution_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? distribution_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsRequest() { - return { - validatorAddress: "" - }; -} -exports.QueryValidatorOutstandingRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", - value: exports.QueryValidatorOutstandingRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorOutstandingRewardsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorOutstandingRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - value: exports.QueryValidatorOutstandingRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsResponse() { - return { - rewards: distribution_1.ValidatorOutstandingRewards.fromPartial({}) - }; -} -exports.QueryValidatorOutstandingRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.rewards !== undefined) { - distribution_1.ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards = distribution_1.ValidatorOutstandingRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - message.rewards = object.rewards !== undefined && object.rewards !== null ? distribution_1.ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = distribution_1.ValidatorOutstandingRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.rewards = message.rewards ? distribution_1.ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", - value: exports.QueryValidatorOutstandingRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorOutstandingRewardsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorOutstandingRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - value: exports.QueryValidatorOutstandingRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionRequest() { - return { - validatorAddress: "" - }; -} -exports.QueryValidatorCommissionRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorCommissionRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorCommissionRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorCommissionRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorCommissionRequest", - value: exports.QueryValidatorCommissionRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorCommissionRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorCommissionRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - value: exports.QueryValidatorCommissionRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionResponse() { - return { - commission: distribution_1.ValidatorAccumulatedCommission.fromPartial({}) - }; -} -exports.QueryValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.commission !== undefined) { - distribution_1.ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission = distribution_1.ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorCommissionResponse(); - message.commission = object.commission !== undefined && object.commission !== null ? distribution_1.ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorCommissionResponse(); - if (object.commission !== undefined && object.commission !== null) { - message.commission = distribution_1.ValidatorAccumulatedCommission.fromAmino(object.commission); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.commission = message.commission ? distribution_1.ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorCommissionResponse", - value: exports.QueryValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorCommissionResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - value: exports.QueryValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesRequest() { - return { - validatorAddress: "", - startingHeight: BigInt(0), - endingHeight: BigInt(0), - pagination: undefined - }; -} -exports.QueryValidatorSlashesRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.startingHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.startingHeight); - } - if (message.endingHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.endingHeight); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.startingHeight = reader.uint64(); - break; - case 3: - message.endingHeight = reader.uint64(); - break; - case 4: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorSlashesRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); - message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorSlashesRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_height !== undefined && object.starting_height !== null) { - message.startingHeight = BigInt(object.starting_height); - } - if (object.ending_height !== undefined && object.ending_height !== null) { - message.endingHeight = BigInt(object.ending_height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; - obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorSlashesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorSlashesRequest", - value: exports.QueryValidatorSlashesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorSlashesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorSlashesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - value: exports.QueryValidatorSlashesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesResponse() { - return { - slashes: [], - pagination: undefined - }; -} -exports.QueryValidatorSlashesResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.slashes) { - distribution_1.ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.slashes.push(distribution_1.ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => distribution_1.ValidatorSlashEvent.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => distribution_1.ValidatorSlashEvent.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.slashes) { - obj.slashes = message.slashes.map(e => e ? distribution_1.ValidatorSlashEvent.toAmino(e) : undefined); - } - else { - obj.slashes = message.slashes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorSlashesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorSlashesResponse", - value: exports.QueryValidatorSlashesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorSlashesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorSlashesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - value: exports.QueryValidatorSlashesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsRequest() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -exports.QueryDelegationRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRewardsRequest", - value: exports.QueryDelegationRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationRewardsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - value: exports.QueryDelegationRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsResponse() { - return { - rewards: [] - }; -} -exports.QueryDelegationRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.rewards) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRewardsResponse", - value: exports.QueryDelegationRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationRewardsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - value: exports.QueryDelegationRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsRequest() { - return { - delegatorAddress: "" - }; -} -exports.QueryDelegationTotalRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationTotalRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationTotalRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationTotalRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", - value: exports.QueryDelegationTotalRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationTotalRewardsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationTotalRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - value: exports.QueryDelegationTotalRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsResponse() { - return { - rewards: [], - total: [] - }; -} -exports.QueryDelegationTotalRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.rewards) { - distribution_1.DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.total) { - coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(distribution_1.DelegationDelegatorReward.decode(reader, reader.uint32())); - break; - case 2: - message.total.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => distribution_1.DelegationDelegatorReward.fromPartial(e)) || []; - message.total = object.total?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => distribution_1.DelegationDelegatorReward.fromAmino(e)) || []; - message.total = object.total?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? distribution_1.DelegationDelegatorReward.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - if (message.total) { - obj.total = message.total.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationTotalRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", - value: exports.QueryDelegationTotalRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationTotalRewardsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationTotalRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - value: exports.QueryDelegationTotalRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest() { - return { - delegatorAddress: "" - }; -} -exports.QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: exports.QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - value: exports.QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse() { - return { - validators: [] - }; -} -exports.QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validators) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e); - } - else { - obj.validators = message.validators; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: exports.QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - value: exports.QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressRequest() { - return { - delegatorAddress: "" - }; -} -exports.QueryDelegatorWithdrawAddressRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", - value: exports.QueryDelegatorWithdrawAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorWithdrawAddressRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorWithdrawAddressRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - value: exports.QueryDelegatorWithdrawAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressResponse() { - return { - withdrawAddress: "" - }; -} -exports.QueryDelegatorWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.withdrawAddress !== "") { - writer.uint32(10).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", - value: exports.QueryDelegatorWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorWithdrawAddressResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - value: exports.QueryDelegatorWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolRequest() { - return {}; -} -exports.QueryCommunityPoolRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCommunityPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCommunityPoolRequest", - value: exports.QueryCommunityPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryCommunityPoolRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryCommunityPoolRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - value: exports.QueryCommunityPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolResponse() { - return { - pool: [] - }; -} -exports.QueryCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.pool) { - coin_1.DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool.push(coin_1.DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => coin_1.DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => coin_1.DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pool) { - obj.pool = message.pool.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined); - } - else { - obj.pool = message.pool; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCommunityPoolResponse", - value: exports.QueryCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryCommunityPoolResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - value: exports.QueryCommunityPoolResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts deleted file mode 100644 index 753bd2d6..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(params: QueryValidatorCommissionRequest): Promise; - validatorSlashes(params: QueryValidatorSlashesRequest): Promise; - delegationRewards(params: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(_params?: QueryCommunityPoolRequest): Promise; -} diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js b/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js deleted file mode 100644 index 86787fd2..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.lcd.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - /* Params queries params of the distribution module. */ - async params(_params = {}) { - const endpoint = `cosmos/distribution/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ValidatorOutstandingRewards queries rewards of a validator address. */ - async validatorOutstandingRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; - return await this.req.get(endpoint); - } - /* ValidatorCommission queries accumulated commission for a validator. */ - async validatorCommission(params) { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; - return await this.req.get(endpoint); - } - /* ValidatorSlashes queries slash events of a validator. */ - async validatorSlashes(params) { - const options = { - params: {} - }; - if (typeof params?.startingHeight !== "undefined") { - options.params.starting_height = params.startingHeight; - } - if (typeof params?.endingHeight !== "undefined") { - options.params.ending_height = params.endingHeight; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; - return await this.req.get(endpoint, options); - } - /* DelegationRewards queries the total rewards accrued by a delegation. */ - async delegationRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; - return await this.req.get(endpoint); - } - /* DelegationTotalRewards queries the total rewards accrued by a each - validator. */ - async delegationTotalRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; - return await this.req.get(endpoint); - } - /* DelegatorValidators queries the validators of a delegator. */ - async delegatorValidators(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; - return await this.req.get(endpoint); - } - /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ - async delegatorWithdrawAddress(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; - return await this.req.get(endpoint); - } - /* CommunityPool queries the community pool coins. */ - async communityPool(_params = {}) { - const endpoint = `cosmos/distribution/v1beta1/community_pool`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index be0d7a15..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; -/** Query defines the gRPC querier service for distribution module. */ -export interface Query { - /** Params queries params of the distribution module. */ - params(request?: QueryParamsRequest): Promise; - /** ValidatorOutstandingRewards queries rewards of a validator address. */ - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - /** ValidatorCommission queries accumulated commission for a validator. */ - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - /** ValidatorSlashes queries slash events of a validator. */ - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - /** DelegationRewards queries the total rewards accrued by a delegation. */ - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - /** - * DelegationTotalRewards queries the total rewards accrued by a each - * validator. - */ - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - /** DelegatorValidators queries the validators of a delegator. */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - /** CommunityPool queries the community pool coins. */ - communityPool(request?: QueryCommunityPoolRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: QueryCommunityPoolRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: QueryValidatorSlashesRequest): Promise; - delegationRewards(request: QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: QueryCommunityPoolRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js deleted file mode 100644 index 56a9cb38..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - validatorOutstandingRewards(request) { - const data = query_1.QueryValidatorOutstandingRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); - return promise.then(data => query_1.QueryValidatorOutstandingRewardsResponse.decode(new binary_1.BinaryReader(data))); - } - validatorCommission(request) { - const data = query_1.QueryValidatorCommissionRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); - return promise.then(data => query_1.QueryValidatorCommissionResponse.decode(new binary_1.BinaryReader(data))); - } - validatorSlashes(request) { - const data = query_1.QueryValidatorSlashesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); - return promise.then(data => query_1.QueryValidatorSlashesResponse.decode(new binary_1.BinaryReader(data))); - } - delegationRewards(request) { - const data = query_1.QueryDelegationRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); - return promise.then(data => query_1.QueryDelegationRewardsResponse.decode(new binary_1.BinaryReader(data))); - } - delegationTotalRewards(request) { - const data = query_1.QueryDelegationTotalRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); - return promise.then(data => query_1.QueryDelegationTotalRewardsResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorValidators(request) { - const data = query_1.QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => query_1.QueryDelegatorValidatorsResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorWithdrawAddress(request) { - const data = query_1.QueryDelegatorWithdrawAddressRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); - return promise.then(data => query_1.QueryDelegatorWithdrawAddressResponse.decode(new binary_1.BinaryReader(data))); - } - communityPool(request = {}) { - const data = query_1.QueryCommunityPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); - return promise.then(data => query_1.QueryCommunityPoolResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - validatorOutstandingRewards(request) { - return queryService.validatorOutstandingRewards(request); - }, - validatorCommission(request) { - return queryService.validatorCommission(request); - }, - validatorSlashes(request) { - return queryService.validatorSlashes(request); - }, - delegationRewards(request) { - return queryService.delegationRewards(request); - }, - delegationTotalRewards(request) { - return queryService.delegationTotalRewards(request); - }, - delegatorValidators(request) { - return queryService.delegatorValidators(request); - }, - delegatorWithdrawAddress(request) { - return queryService.delegatorWithdrawAddress(request); - }, - communityPool(request) { - return queryService.communityPool(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts deleted file mode 100644 index aa7ec544..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export declare const AminoConverter: { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: string; - toAmino: (message: MsgSetWithdrawAddress) => import("./tx").MsgSetWithdrawAddressAmino; - fromAmino: (object: import("./tx").MsgSetWithdrawAddressAmino) => MsgSetWithdrawAddress; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: string; - toAmino: (message: MsgWithdrawDelegatorReward) => import("./tx").MsgWithdrawDelegatorRewardAmino; - fromAmino: (object: import("./tx").MsgWithdrawDelegatorRewardAmino) => MsgWithdrawDelegatorReward; - }; - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: string; - toAmino: (message: MsgWithdrawValidatorCommission) => import("./tx").MsgWithdrawValidatorCommissionAmino; - fromAmino: (object: import("./tx").MsgWithdrawValidatorCommissionAmino) => MsgWithdrawValidatorCommission; - }; - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: string; - toAmino: (message: MsgFundCommunityPool) => import("./tx").MsgFundCommunityPoolAmino; - fromAmino: (object: import("./tx").MsgFundCommunityPoolAmino) => MsgFundCommunityPool; - }; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js deleted file mode 100644 index 253fe779..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.amino.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", - toAmino: tx_1.MsgSetWithdrawAddress.toAmino, - fromAmino: tx_1.MsgSetWithdrawAddress.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", - toAmino: tx_1.MsgWithdrawDelegatorReward.toAmino, - fromAmino: tx_1.MsgWithdrawDelegatorReward.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", - toAmino: tx_1.MsgWithdrawValidatorCommission.toAmino, - fromAmino: tx_1.MsgWithdrawValidatorCommission.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: "cosmos-sdk/MsgFundCommunityPool", - toAmino: tx_1.MsgFundCommunityPool.toAmino, - fromAmino: tx_1.MsgFundCommunityPool.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts deleted file mode 100644 index 774b9189..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.d.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddress { - delegatorAddress: string; - withdrawAddress: string; -} -export interface MsgSetWithdrawAddressProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - value: Uint8Array; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressAmino { - delegator_address?: string; - withdraw_address?: string; -} -export interface MsgSetWithdrawAddressAminoMsg { - type: "cosmos-sdk/MsgModifyWithdrawAddress"; - value: MsgSetWithdrawAddressAmino; -} -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - */ -export interface MsgSetWithdrawAddressSDKType { - delegator_address: string; - withdraw_address: string; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponse { -} -export interface MsgSetWithdrawAddressResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - value: Uint8Array; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseAmino { -} -export interface MsgSetWithdrawAddressResponseAminoMsg { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse"; - value: MsgSetWithdrawAddressResponseAmino; -} -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export interface MsgSetWithdrawAddressResponseSDKType { -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorReward { - delegatorAddress: string; - validatorAddress: string; -} -export interface MsgWithdrawDelegatorRewardProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - value: Uint8Array; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardAmino { - delegator_address?: string; - validator_address?: string; -} -export interface MsgWithdrawDelegatorRewardAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegationReward"; - value: MsgWithdrawDelegatorRewardAmino; -} -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - */ -export interface MsgWithdrawDelegatorRewardSDKType { - delegator_address: string; - validator_address: string; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawDelegatorRewardResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - value: Uint8Array; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawDelegatorRewardResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse"; - value: MsgWithdrawDelegatorRewardResponseAmino; -} -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export interface MsgWithdrawDelegatorRewardResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommission { - validatorAddress: string; -} -export interface MsgWithdrawValidatorCommissionProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - value: Uint8Array; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionAmino { - validator_address?: string; -} -export interface MsgWithdrawValidatorCommissionAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommission"; - value: MsgWithdrawValidatorCommissionAmino; -} -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - */ -export interface MsgWithdrawValidatorCommissionSDKType { - validator_address: string; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponse { - /** Since: cosmos-sdk 0.46 */ - amount: Coin[]; -} -export interface MsgWithdrawValidatorCommissionResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - value: Uint8Array; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseAmino { - /** Since: cosmos-sdk 0.46 */ - amount?: CoinAmino[]; -} -export interface MsgWithdrawValidatorCommissionResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse"; - value: MsgWithdrawValidatorCommissionResponseAmino; -} -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export interface MsgWithdrawValidatorCommissionResponseSDKType { - amount: CoinSDKType[]; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPool { - amount: Coin[]; - depositor: string; -} -export interface MsgFundCommunityPoolProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; - value: Uint8Array; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolAmino { - amount?: CoinAmino[]; - depositor?: string; -} -export interface MsgFundCommunityPoolAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPool"; - value: MsgFundCommunityPoolAmino; -} -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - */ -export interface MsgFundCommunityPoolSDKType { - amount: CoinSDKType[]; - depositor: string; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponse { -} -export interface MsgFundCommunityPoolResponseProtoMsg { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - value: Uint8Array; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseAmino { -} -export interface MsgFundCommunityPoolResponseAminoMsg { - type: "cosmos-sdk/MsgFundCommunityPoolResponse"; - value: MsgFundCommunityPoolResponseAmino; -} -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export interface MsgFundCommunityPoolResponseSDKType { -} -export declare const MsgSetWithdrawAddress: { - typeUrl: string; - encode(message: MsgSetWithdrawAddress, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress; - fromPartial(object: Partial): MsgSetWithdrawAddress; - fromAmino(object: MsgSetWithdrawAddressAmino): MsgSetWithdrawAddress; - toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino; - fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress; - toAminoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAminoMsg; - fromProtoMsg(message: MsgSetWithdrawAddressProtoMsg): MsgSetWithdrawAddress; - toProto(message: MsgSetWithdrawAddress): Uint8Array; - toProtoMsg(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressProtoMsg; -}; -export declare const MsgSetWithdrawAddressResponse: { - typeUrl: string; - encode(_: MsgSetWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; - fromPartial(_: Partial): MsgSetWithdrawAddressResponse; - fromAmino(_: MsgSetWithdrawAddressResponseAmino): MsgSetWithdrawAddressResponse; - toAmino(_: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAmino; - fromAminoMsg(object: MsgSetWithdrawAddressResponseAminoMsg): MsgSetWithdrawAddressResponse; - toAminoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseAminoMsg; - fromProtoMsg(message: MsgSetWithdrawAddressResponseProtoMsg): MsgSetWithdrawAddressResponse; - toProto(message: MsgSetWithdrawAddressResponse): Uint8Array; - toProtoMsg(message: MsgSetWithdrawAddressResponse): MsgSetWithdrawAddressResponseProtoMsg; -}; -export declare const MsgWithdrawDelegatorReward: { - typeUrl: string; - encode(message: MsgWithdrawDelegatorReward, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; - fromPartial(object: Partial): MsgWithdrawDelegatorReward; - fromAmino(object: MsgWithdrawDelegatorRewardAmino): MsgWithdrawDelegatorReward; - toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino; - fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward; - toAminoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAminoMsg; - fromProtoMsg(message: MsgWithdrawDelegatorRewardProtoMsg): MsgWithdrawDelegatorReward; - toProto(message: MsgWithdrawDelegatorReward): Uint8Array; - toProtoMsg(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardProtoMsg; -}; -export declare const MsgWithdrawDelegatorRewardResponse: { - typeUrl: string; - encode(message: MsgWithdrawDelegatorRewardResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; - fromPartial(object: Partial): MsgWithdrawDelegatorRewardResponse; - fromAmino(object: MsgWithdrawDelegatorRewardResponseAmino): MsgWithdrawDelegatorRewardResponse; - toAmino(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAmino; - fromAminoMsg(object: MsgWithdrawDelegatorRewardResponseAminoMsg): MsgWithdrawDelegatorRewardResponse; - toAminoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawDelegatorRewardResponseProtoMsg): MsgWithdrawDelegatorRewardResponse; - toProto(message: MsgWithdrawDelegatorRewardResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawDelegatorRewardResponse): MsgWithdrawDelegatorRewardResponseProtoMsg; -}; -export declare const MsgWithdrawValidatorCommission: { - typeUrl: string; - encode(message: MsgWithdrawValidatorCommission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; - fromPartial(object: Partial): MsgWithdrawValidatorCommission; - fromAmino(object: MsgWithdrawValidatorCommissionAmino): MsgWithdrawValidatorCommission; - toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino; - fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission; - toAminoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAminoMsg; - fromProtoMsg(message: MsgWithdrawValidatorCommissionProtoMsg): MsgWithdrawValidatorCommission; - toProto(message: MsgWithdrawValidatorCommission): Uint8Array; - toProtoMsg(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionProtoMsg; -}; -export declare const MsgWithdrawValidatorCommissionResponse: { - typeUrl: string; - encode(message: MsgWithdrawValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; - fromPartial(object: Partial): MsgWithdrawValidatorCommissionResponse; - fromAmino(object: MsgWithdrawValidatorCommissionResponseAmino): MsgWithdrawValidatorCommissionResponse; - toAmino(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAmino; - fromAminoMsg(object: MsgWithdrawValidatorCommissionResponseAminoMsg): MsgWithdrawValidatorCommissionResponse; - toAminoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawValidatorCommissionResponseProtoMsg): MsgWithdrawValidatorCommissionResponse; - toProto(message: MsgWithdrawValidatorCommissionResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawValidatorCommissionResponse): MsgWithdrawValidatorCommissionResponseProtoMsg; -}; -export declare const MsgFundCommunityPool: { - typeUrl: string; - encode(message: MsgFundCommunityPool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool; - fromPartial(object: Partial): MsgFundCommunityPool; - fromAmino(object: MsgFundCommunityPoolAmino): MsgFundCommunityPool; - toAmino(message: MsgFundCommunityPool): MsgFundCommunityPoolAmino; - fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool; - toAminoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolAminoMsg; - fromProtoMsg(message: MsgFundCommunityPoolProtoMsg): MsgFundCommunityPool; - toProto(message: MsgFundCommunityPool): Uint8Array; - toProtoMsg(message: MsgFundCommunityPool): MsgFundCommunityPoolProtoMsg; -}; -export declare const MsgFundCommunityPoolResponse: { - typeUrl: string; - encode(_: MsgFundCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; - fromPartial(_: Partial): MsgFundCommunityPoolResponse; - fromAmino(_: MsgFundCommunityPoolResponseAmino): MsgFundCommunityPoolResponse; - toAmino(_: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAmino; - fromAminoMsg(object: MsgFundCommunityPoolResponseAminoMsg): MsgFundCommunityPoolResponse; - toAminoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseAminoMsg; - fromProtoMsg(message: MsgFundCommunityPoolResponseProtoMsg): MsgFundCommunityPoolResponse; - toProto(message: MsgFundCommunityPoolResponse): Uint8Array; - toProtoMsg(message: MsgFundCommunityPoolResponse): MsgFundCommunityPoolResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.js deleted file mode 100644 index 2a72e76a..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.js +++ /dev/null @@ -1,577 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseMsgSetWithdrawAddress() { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -exports.MsgSetWithdrawAddress = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSetWithdrawAddress(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSetWithdrawAddress(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSetWithdrawAddress.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgModifyWithdrawAddress", - value: exports.MsgSetWithdrawAddress.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSetWithdrawAddress.decode(message.value); - }, - toProto(message) { - return exports.MsgSetWithdrawAddress.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: exports.MsgSetWithdrawAddress.encode(message).finish() - }; - } -}; -function createBaseMsgSetWithdrawAddressResponse() { - return {}; -} -exports.MsgSetWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSetWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse", - value: exports.MsgSetWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSetWithdrawAddressResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSetWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - value: exports.MsgSetWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorReward() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -exports.MsgWithdrawDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawDelegatorReward(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawDelegatorReward(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawDelegationReward", - value: exports.MsgWithdrawDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawDelegatorReward.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: exports.MsgWithdrawDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorRewardResponse() { - return { - amount: [] - }; -} -exports.MsgWithdrawDelegatorRewardResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", - value: exports.MsgWithdrawDelegatorRewardResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawDelegatorRewardResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawDelegatorRewardResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - value: exports.MsgWithdrawDelegatorRewardResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommission() { - return { - validatorAddress: "" - }; -} -exports.MsgWithdrawValidatorCommission = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawValidatorCommission(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawValidatorCommission(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawValidatorCommission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommission", - value: exports.MsgWithdrawValidatorCommission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawValidatorCommission.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawValidatorCommission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: exports.MsgWithdrawValidatorCommission.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommissionResponse() { - return { - amount: [] - }; -} -exports.MsgWithdrawValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", - value: exports.MsgWithdrawValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawValidatorCommissionResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - value: exports.MsgWithdrawValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPool() { - return { - amount: [], - depositor: "" - }; -} -exports.MsgFundCommunityPool = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgFundCommunityPool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgFundCommunityPool", - value: exports.MsgFundCommunityPool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgFundCommunityPool.decode(message.value); - }, - toProto(message) { - return exports.MsgFundCommunityPool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: exports.MsgFundCommunityPool.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPoolResponse() { - return {}; -} -exports.MsgFundCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgFundCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgFundCommunityPoolResponse", - value: exports.MsgFundCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgFundCommunityPoolResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgFundCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - value: exports.MsgFundCommunityPoolResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts deleted file mode 100644 index a9f17ac7..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: Uint8Array; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: Uint8Array; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: Uint8Array; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: MsgFundCommunityPool; - }; - }; - fromPartial: { - setWithdrawAddress(value: MsgSetWithdrawAddress): { - typeUrl: string; - value: MsgSetWithdrawAddress; - }; - withdrawDelegatorReward(value: MsgWithdrawDelegatorReward): { - typeUrl: string; - value: MsgWithdrawDelegatorReward; - }; - withdrawValidatorCommission(value: MsgWithdrawValidatorCommission): { - typeUrl: string; - value: MsgWithdrawValidatorCommission; - }; - fundCommunityPool(value: MsgFundCommunityPool): { - typeUrl: string; - value: MsgFundCommunityPool; - }; - }; -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js deleted file mode 100644 index 1b7cf3cc..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.registry.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", tx_1.MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", tx_1.MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", tx_1.MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", tx_1.MsgFundCommunityPool]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: tx_1.MsgSetWithdrawAddress.encode(value).finish() - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: tx_1.MsgWithdrawDelegatorReward.encode(value).finish() - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: tx_1.MsgWithdrawValidatorCommission.encode(value).finish() - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: tx_1.MsgFundCommunityPool.encode(value).finish() - }; - } - }, - withTypeUrl: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value - }; - } - }, - fromPartial: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: tx_1.MsgSetWithdrawAddress.fromPartial(value) - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: tx_1.MsgWithdrawDelegatorReward.fromPartial(value) - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: tx_1.MsgWithdrawValidatorCommission.fromPartial(value) - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: tx_1.MsgFundCommunityPool.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 38723e88..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; -/** Msg defines the distribution Msg service. */ -export interface Msg { - /** - * SetWithdrawAddress defines a method to change the withdraw address - * for a delegator (or validator self-delegation). - */ - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; - /** - * WithdrawDelegatorReward defines a method to withdraw rewards of delegator - * from a single validator. - */ - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; - /** - * WithdrawValidatorCommission defines a method to withdraw the - * full commission to the validator address. - */ - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; - /** - * FundCommunityPool defines a method to allow an account to directly - * fund the community pool. - */ - fundCommunityPool(request: MsgFundCommunityPool): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; - withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; - withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; - fundCommunityPool(request: MsgFundCommunityPool): Promise; -} diff --git a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js deleted file mode 100644 index d9e728dc..00000000 --- a/packages/api/dist/cosmos/distribution/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.setWithdrawAddress = this.setWithdrawAddress.bind(this); - this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); - this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); - this.fundCommunityPool = this.fundCommunityPool.bind(this); - } - setWithdrawAddress(request) { - const data = tx_1.MsgSetWithdrawAddress.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); - return promise.then(data => tx_1.MsgSetWithdrawAddressResponse.decode(new binary_1.BinaryReader(data))); - } - withdrawDelegatorReward(request) { - const data = tx_1.MsgWithdrawDelegatorReward.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); - return promise.then(data => tx_1.MsgWithdrawDelegatorRewardResponse.decode(new binary_1.BinaryReader(data))); - } - withdrawValidatorCommission(request) { - const data = tx_1.MsgWithdrawValidatorCommission.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); - return promise.then(data => tx_1.MsgWithdrawValidatorCommissionResponse.decode(new binary_1.BinaryReader(data))); - } - fundCommunityPool(request) { - const data = tx_1.MsgFundCommunityPool.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); - return promise.then(data => tx_1.MsgFundCommunityPoolResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts deleted file mode 100644 index 221add2f..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: Date; -} -export interface BasicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; - value: Uint8Array; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceAmino { - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spend_limit?: CoinAmino[]; - /** expiration specifies an optional time when this allowance expires */ - expiration?: string; -} -export interface BasicAllowanceAminoMsg { - type: "cosmos-sdk/BasicAllowance"; - value: BasicAllowanceAmino; -} -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.BasicAllowance"; - spend_limit: CoinSDKType[]; - expiration?: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Date; -} -export interface PeriodicAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - value: Uint8Array; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceAmino { - /** basic specifies a struct of `BasicAllowance` */ - basic?: BasicAllowanceAmino; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period?: DurationAmino; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - period_spend_limit?: CoinAmino[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - period_can_spend?: CoinAmino[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - period_reset?: string; -} -export interface PeriodicAllowanceAminoMsg { - type: "cosmos-sdk/PeriodicAllowance"; - value: PeriodicAllowanceAmino; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: Date; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -export interface AllowedMsgAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - value: Uint8Array; -} -export type AllowedMsgAllowanceEncoded = Omit & { - /** allowance can be any of basic and periodic fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceAmino { - /** allowance can be any of basic and periodic fee allowance. */ - allowance?: AnyAmino; - /** allowed_messages are the messages for which the grantee has the access. */ - allowed_messages?: string[]; -} -export interface AllowedMsgAllowanceAminoMsg { - type: "cosmos-sdk/AllowedMsgAllowance"; - value: AllowedMsgAllowanceAmino; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - $typeUrl?: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; -} -export interface GrantProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.Grant"; - value: Uint8Array; -} -export type GrantEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface GrantAminoMsg { - type: "cosmos-sdk/Grant"; - value: GrantAmino; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -export declare const BasicAllowance: { - typeUrl: string; - encode(message: BasicAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance; - fromPartial(object: Partial): BasicAllowance; - fromAmino(object: BasicAllowanceAmino): BasicAllowance; - toAmino(message: BasicAllowance): BasicAllowanceAmino; - fromAminoMsg(object: BasicAllowanceAminoMsg): BasicAllowance; - toAminoMsg(message: BasicAllowance): BasicAllowanceAminoMsg; - fromProtoMsg(message: BasicAllowanceProtoMsg): BasicAllowance; - toProto(message: BasicAllowance): Uint8Array; - toProtoMsg(message: BasicAllowance): BasicAllowanceProtoMsg; -}; -export declare const PeriodicAllowance: { - typeUrl: string; - encode(message: PeriodicAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance; - fromPartial(object: Partial): PeriodicAllowance; - fromAmino(object: PeriodicAllowanceAmino): PeriodicAllowance; - toAmino(message: PeriodicAllowance): PeriodicAllowanceAmino; - fromAminoMsg(object: PeriodicAllowanceAminoMsg): PeriodicAllowance; - toAminoMsg(message: PeriodicAllowance): PeriodicAllowanceAminoMsg; - fromProtoMsg(message: PeriodicAllowanceProtoMsg): PeriodicAllowance; - toProto(message: PeriodicAllowance): Uint8Array; - toProtoMsg(message: PeriodicAllowance): PeriodicAllowanceProtoMsg; -}; -export declare const AllowedMsgAllowance: { - typeUrl: string; - encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance; - fromPartial(object: Partial): AllowedMsgAllowance; - fromAmino(object: AllowedMsgAllowanceAmino): AllowedMsgAllowance; - toAmino(message: AllowedMsgAllowance): AllowedMsgAllowanceAmino; - fromAminoMsg(object: AllowedMsgAllowanceAminoMsg): AllowedMsgAllowance; - toAminoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceAminoMsg; - fromProtoMsg(message: AllowedMsgAllowanceProtoMsg): AllowedMsgAllowance; - toProto(message: AllowedMsgAllowance): Uint8Array; - toProtoMsg(message: AllowedMsgAllowance): AllowedMsgAllowanceProtoMsg; -}; -export declare const Grant: { - typeUrl: string; - encode(message: Grant, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Grant; - fromPartial(object: Partial): Grant; - fromAmino(object: GrantAmino): Grant; - toAmino(message: Grant): GrantAmino; - fromAminoMsg(object: GrantAminoMsg): Grant; - toAminoMsg(message: Grant): GrantAminoMsg; - fromProtoMsg(message: GrantProtoMsg): Grant; - toProto(message: Grant): Uint8Array; - toProtoMsg(message: Grant): GrantProtoMsg; -}; -export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; -export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; -export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js b/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js deleted file mode 100644 index 742d5048..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/feegrant.js +++ /dev/null @@ -1,456 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FeeAllowanceI_ToAmino = exports.FeeAllowanceI_FromAmino = exports.FeeAllowanceI_InterfaceDecoder = exports.Grant = exports.AllowedMsgAllowance = exports.PeriodicAllowance = exports.BasicAllowance = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const duration_1 = require("../../../google/protobuf/duration"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseBasicAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - spendLimit: [], - expiration: undefined - }; -} -exports.BasicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.spendLimit) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.spend_limit = message.spendLimit; - } - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BasicAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BasicAllowance", - value: exports.BasicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BasicAllowance.decode(message.value); - }, - toProto(message) { - return exports.BasicAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: exports.BasicAllowance.encode(message).finish() - }; - } -}; -function createBasePeriodicAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - basic: exports.BasicAllowance.fromPartial({}), - period: duration_1.Duration.fromPartial({}), - periodSpendLimit: [], - periodCanSpend: [], - periodReset: new Date() - }; -} -exports.PeriodicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basic !== undefined) { - exports.BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== undefined) { - duration_1.Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.periodSpendLimit) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.periodCanSpend) { - coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.periodReset !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.periodReset), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basic = exports.BasicAllowance.decode(reader, reader.uint32()); - break; - case 2: - message.period = duration_1.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.periodSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 4: - message.periodCanSpend.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 5: - message.periodReset = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriodicAllowance(); - message.basic = object.basic !== undefined && object.basic !== null ? exports.BasicAllowance.fromPartial(object.basic) : undefined; - message.period = object.period !== undefined && object.period !== null ? duration_1.Duration.fromPartial(object.period) : undefined; - message.periodSpendLimit = object.periodSpendLimit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.periodCanSpend = object.periodCanSpend?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.periodReset = object.periodReset ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBasePeriodicAllowance(); - if (object.basic !== undefined && object.basic !== null) { - message.basic = exports.BasicAllowance.fromAmino(object.basic); - } - if (object.period !== undefined && object.period !== null) { - message.period = duration_1.Duration.fromAmino(object.period); - } - message.periodSpendLimit = object.period_spend_limit?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.periodCanSpend = object.period_can_spend?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.period_reset !== undefined && object.period_reset !== null) { - message.periodReset = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.period_reset)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basic = message.basic ? exports.BasicAllowance.toAmino(message.basic) : undefined; - obj.period = message.period ? duration_1.Duration.toAmino(message.period) : undefined; - if (message.periodSpendLimit) { - obj.period_spend_limit = message.periodSpendLimit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.period_spend_limit = message.periodSpendLimit; - } - if (message.periodCanSpend) { - obj.period_can_spend = message.periodCanSpend.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.period_can_spend = message.periodCanSpend; - } - obj.period_reset = message.periodReset ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.periodReset)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PeriodicAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PeriodicAllowance", - value: exports.PeriodicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PeriodicAllowance.decode(message.value); - }, - toProto(message) { - return exports.PeriodicAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: exports.PeriodicAllowance.encode(message).finish() - }; - } -}; -function createBaseAllowedMsgAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - allowance: undefined, - allowedMessages: [] - }; -} -exports.AllowedMsgAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.allowance !== undefined) { - any_1.Any.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedMessages) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedMsgAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); - break; - case 2: - message.allowedMessages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedMsgAllowance(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; - message.allowedMessages = object.allowedMessages?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedMsgAllowance(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); - } - message.allowedMessages = object.allowed_messages?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; - if (message.allowedMessages) { - obj.allowed_messages = message.allowedMessages.map(e => e); - } - else { - obj.allowed_messages = message.allowedMessages; - } - return obj; - }, - fromAminoMsg(object) { - return exports.AllowedMsgAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: exports.AllowedMsgAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AllowedMsgAllowance.decode(message.value); - }, - toProto(message) { - return exports.AllowedMsgAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: exports.AllowedMsgAllowance.encode(message).finish() - }; - } -}; -function createBaseGrant() { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -exports.Grant = { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - any_1.Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Grant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Grant", - value: exports.Grant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Grant.decode(message.value); - }, - toProto(message) { - return exports.Grant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - value: exports.Grant.encode(message).finish() - }; - } -}; -const FeeAllowanceI_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return exports.BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return exports.PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return exports.AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -exports.FeeAllowanceI_InterfaceDecoder = FeeAllowanceI_InterfaceDecoder; -const FeeAllowanceI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: exports.BasicAllowance.encode(exports.BasicAllowance.fromPartial(exports.BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: exports.PeriodicAllowance.encode(exports.PeriodicAllowance.fromPartial(exports.PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: exports.AllowedMsgAllowance.encode(exports.AllowedMsgAllowance.fromPartial(exports.AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.FeeAllowanceI_FromAmino = FeeAllowanceI_FromAmino; -const FeeAllowanceI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: exports.BasicAllowance.toAmino(exports.BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: exports.PeriodicAllowance.toAmino(exports.PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: exports.AllowedMsgAllowance.toAmino(exports.AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.FeeAllowanceI_ToAmino = FeeAllowanceI_ToAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts deleted file mode 100644 index 0c5d1a32..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateAmino { - allowances?: GrantAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js b/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js deleted file mode 100644 index 59159504..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/genesis.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const feegrant_1 = require("./feegrant"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - allowances: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowances) { - feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts deleted file mode 100644 index a6206fb6..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.d.ts +++ /dev/null @@ -1,258 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAmino, GrantSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequest { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface QueryAllowanceRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; - value: Uint8Array; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface QueryAllowanceRequestAminoMsg { - type: "cosmos-sdk/QueryAllowanceRequest"; - value: QueryAllowanceRequestAmino; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestSDKType { - granter: string; - grantee: string; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponse { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: Grant; -} -export interface QueryAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; - value: Uint8Array; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseAmino { - /** allowance is a allowance granted for grantee by granter. */ - allowance?: GrantAmino; -} -export interface QueryAllowanceResponseAminoMsg { - type: "cosmos-sdk/QueryAllowanceResponse"; - value: QueryAllowanceResponseAmino; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseSDKType { - allowance?: GrantSDKType; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; - value: Uint8Array; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestAmino { - grantee?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesRequest"; - value: QueryAllowancesRequestAmino; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestSDKType { - grantee: string; - pagination?: PageRequestSDKType; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponse { - /** allowances are allowance's granted for grantee by granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; - value: Uint8Array; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseAmino { - /** allowances are allowance's granted for grantee by granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesResponse"; - value: QueryAllowancesResponseAmino; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowancesByGranterRequestProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestAmino { - granter?: string; - /** pagination defines an pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowancesByGranterRequestAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterRequest"; - value: QueryAllowancesByGranterRequestAmino; -} -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterRequestSDKType { - granter: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponse { - /** allowances that have been issued by the granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowancesByGranterResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; - value: Uint8Array; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseAmino { - /** allowances that have been issued by the granter. */ - allowances?: GrantAmino[]; - /** pagination defines an pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowancesByGranterResponseAminoMsg { - type: "cosmos-sdk/QueryAllowancesByGranterResponse"; - value: QueryAllowancesByGranterResponseAmino; -} -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAllowancesByGranterResponseSDKType { - allowances: GrantSDKType[]; - pagination?: PageResponseSDKType; -} -export declare const QueryAllowanceRequest: { - typeUrl: string; - encode(message: QueryAllowanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest; - fromPartial(object: Partial): QueryAllowanceRequest; - fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest; - toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino; - fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest; - toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg; - fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest; - toProto(message: QueryAllowanceRequest): Uint8Array; - toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg; -}; -export declare const QueryAllowanceResponse: { - typeUrl: string; - encode(message: QueryAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse; - fromPartial(object: Partial): QueryAllowanceResponse; - fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse; - toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino; - fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse; - toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg; - fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse; - toProto(message: QueryAllowanceResponse): Uint8Array; - toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg; -}; -export declare const QueryAllowancesRequest: { - typeUrl: string; - encode(message: QueryAllowancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest; - fromPartial(object: Partial): QueryAllowancesRequest; - fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest; - toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino; - fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest; - toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg; - fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest; - toProto(message: QueryAllowancesRequest): Uint8Array; - toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg; -}; -export declare const QueryAllowancesResponse: { - typeUrl: string; - encode(message: QueryAllowancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse; - fromPartial(object: Partial): QueryAllowancesResponse; - fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse; - toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino; - fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse; - toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg; - fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse; - toProto(message: QueryAllowancesResponse): Uint8Array; - toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg; -}; -export declare const QueryAllowancesByGranterRequest: { - typeUrl: string; - encode(message: QueryAllowancesByGranterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; - fromPartial(object: Partial): QueryAllowancesByGranterRequest; - fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest; - toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino; - fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest; - toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg; - fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest; - toProto(message: QueryAllowancesByGranterRequest): Uint8Array; - toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg; -}; -export declare const QueryAllowancesByGranterResponse: { - typeUrl: string; - encode(message: QueryAllowancesByGranterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; - fromPartial(object: Partial): QueryAllowancesByGranterResponse; - fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse; - toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino; - fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse; - toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg; - fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse; - toProto(message: QueryAllowancesByGranterResponse): Uint8Array; - toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.js deleted file mode 100644 index 99531acb..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.js +++ /dev/null @@ -1,487 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryAllowancesByGranterResponse = exports.QueryAllowancesByGranterRequest = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const feegrant_1 = require("./feegrant"); -const binary_1 = require("../../../binary"); -function createBaseQueryAllowanceRequest() { - return { - granter: "", - grantee: "" - }; -} -exports.QueryAllowanceRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowanceRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowanceRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowanceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowanceRequest", - value: exports.QueryAllowanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowanceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - value: exports.QueryAllowanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowanceResponse() { - return { - allowance: undefined - }; -} -exports.QueryAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.allowance !== undefined) { - feegrant_1.Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = feegrant_1.Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowanceResponse(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? feegrant_1.Grant.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowanceResponse(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = feegrant_1.Grant.fromAmino(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.allowance = message.allowance ? feegrant_1.Grant.toAmino(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowanceResponse", - value: exports.QueryAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowanceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - value: exports.QueryAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesRequest() { - return { - grantee: "", - pagination: undefined - }; -} -exports.QueryAllowancesRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesRequest", - value: exports.QueryAllowancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - value: exports.QueryAllowancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesResponse() { - return { - allowances: [], - pagination: undefined - }; -} -exports.QueryAllowancesResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowances) { - feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesResponse", - value: exports.QueryAllowancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - value: exports.QueryAllowancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterRequest() { - return { - granter: "", - pagination: undefined - }; -} -exports.QueryAllowancesByGranterRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesByGranterRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesByGranterRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowancesByGranterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesByGranterRequest", - value: exports.QueryAllowancesByGranterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowancesByGranterRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowancesByGranterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - value: exports.QueryAllowancesByGranterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterResponse() { - return { - allowances: [], - pagination: undefined - }; -} -exports.QueryAllowancesByGranterResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowances) { - feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowancesByGranterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesByGranterResponse", - value: exports.QueryAllowancesByGranterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAllowancesByGranterResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowancesByGranterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - value: exports.QueryAllowancesByGranterResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts deleted file mode 100644 index 39e515e0..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - allowance(params: QueryAllowanceRequest): Promise; - allowances(params: QueryAllowancesRequest): Promise; - allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise; -} diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js deleted file mode 100644 index f782d1e1..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.lcd.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - /* Allowance returns fee granted to the grantee by the granter. */ - async allowance(params) { - const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; - return await this.req.get(endpoint); - } - /* Allowances returns all the grants for address. */ - async allowances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; - return await this.req.get(endpoint, options); - } - /* AllowancesByGranter returns all the grants given by an address - - Since: cosmos-sdk 0.46 */ - async allowancesByGranter(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; - return await this.req.get(endpoint, options); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index d42c5966..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Allowance returns fee granted to the grantee by the granter. */ - allowance(request: QueryAllowanceRequest): Promise; - /** Allowances returns all the grants for address. */ - allowances(request: QueryAllowancesRequest): Promise; - /** - * AllowancesByGranter returns all the grants given by an address - * - * Since: cosmos-sdk 0.46 - */ - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js deleted file mode 100644 index 66911ae2..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - allowance(request) { - const data = query_1.QueryAllowanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); - return promise.then(data => query_1.QueryAllowanceResponse.decode(new binary_1.BinaryReader(data))); - } - allowances(request) { - const data = query_1.QueryAllowancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); - return promise.then(data => query_1.QueryAllowancesResponse.decode(new binary_1.BinaryReader(data))); - } - allowancesByGranter(request) { - const data = query_1.QueryAllowancesByGranterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); - return promise.then(data => query_1.QueryAllowancesByGranterResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - allowance(request) { - return queryService.allowance(request); - }, - allowances(request) { - return queryService.allowances(request); - }, - allowancesByGranter(request) { - return queryService.allowancesByGranter(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts deleted file mode 100644 index 8767b85a..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export declare const AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: (message: MsgGrantAllowance) => import("./tx").MsgGrantAllowanceAmino; - fromAmino: (object: import("./tx").MsgGrantAllowanceAmino) => MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: (message: MsgRevokeAllowance) => import("./tx").MsgRevokeAllowanceAmino; - fromAmino: (object: import("./tx").MsgRevokeAllowanceAmino) => MsgRevokeAllowance; - }; -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js deleted file mode 100644 index 90ad97ea..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.amino.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: "cosmos-sdk/MsgGrantAllowance", - toAmino: tx_1.MsgGrantAllowance.toAmino, - fromAmino: tx_1.MsgGrantAllowance.fromAmino - }, - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: "cosmos-sdk/MsgRevokeAllowance", - toAmino: tx_1.MsgRevokeAllowance.toAmino, - fromAmino: tx_1.MsgRevokeAllowance.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts deleted file mode 100644 index 4f454289..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BasicAllowance, BasicAllowanceProtoMsg, BasicAllowanceSDKType, PeriodicAllowance, PeriodicAllowanceProtoMsg, PeriodicAllowanceSDKType, AllowedMsgAllowance, AllowedMsgAllowanceProtoMsg, AllowedMsgAllowanceSDKType } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any | undefined; -} -export interface MsgGrantAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; - value: Uint8Array; -} -export type MsgGrantAllowanceEncoded = Omit & { - /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: BasicAllowanceProtoMsg | PeriodicAllowanceProtoMsg | AllowedMsgAllowanceProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance?: AnyAmino; -} -export interface MsgGrantAllowanceAminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: MsgGrantAllowanceAmino; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance?: BasicAllowanceSDKType | PeriodicAllowanceSDKType | AllowedMsgAllowanceSDKType | AnySDKType | undefined; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse { -} -export interface MsgGrantAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - value: Uint8Array; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseAmino { -} -export interface MsgGrantAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgGrantAllowanceResponse"; - value: MsgGrantAllowanceResponseAmino; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType { -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -export interface MsgRevokeAllowanceProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - value: Uint8Array; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceAmino { - /** granter is the address of the user granting an allowance of their funds. */ - granter?: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee?: string; -} -export interface MsgRevokeAllowanceAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: MsgRevokeAllowanceAmino; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse { -} -export interface MsgRevokeAllowanceResponseProtoMsg { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - value: Uint8Array; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseAmino { -} -export interface MsgRevokeAllowanceResponseAminoMsg { - type: "cosmos-sdk/MsgRevokeAllowanceResponse"; - value: MsgRevokeAllowanceResponseAmino; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType { -} -export declare const MsgGrantAllowance: { - typeUrl: string; - encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; - fromPartial(object: Partial): MsgGrantAllowance; - fromAmino(object: MsgGrantAllowanceAmino): MsgGrantAllowance; - toAmino(message: MsgGrantAllowance): MsgGrantAllowanceAmino; - fromAminoMsg(object: MsgGrantAllowanceAminoMsg): MsgGrantAllowance; - toAminoMsg(message: MsgGrantAllowance): MsgGrantAllowanceAminoMsg; - fromProtoMsg(message: MsgGrantAllowanceProtoMsg): MsgGrantAllowance; - toProto(message: MsgGrantAllowance): Uint8Array; - toProtoMsg(message: MsgGrantAllowance): MsgGrantAllowanceProtoMsg; -}; -export declare const MsgGrantAllowanceResponse: { - typeUrl: string; - encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; - fromPartial(_: Partial): MsgGrantAllowanceResponse; - fromAmino(_: MsgGrantAllowanceResponseAmino): MsgGrantAllowanceResponse; - toAmino(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAmino; - fromAminoMsg(object: MsgGrantAllowanceResponseAminoMsg): MsgGrantAllowanceResponse; - toAminoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseAminoMsg; - fromProtoMsg(message: MsgGrantAllowanceResponseProtoMsg): MsgGrantAllowanceResponse; - toProto(message: MsgGrantAllowanceResponse): Uint8Array; - toProtoMsg(message: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseProtoMsg; -}; -export declare const MsgRevokeAllowance: { - typeUrl: string; - encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; - fromPartial(object: Partial): MsgRevokeAllowance; - fromAmino(object: MsgRevokeAllowanceAmino): MsgRevokeAllowance; - toAmino(message: MsgRevokeAllowance): MsgRevokeAllowanceAmino; - fromAminoMsg(object: MsgRevokeAllowanceAminoMsg): MsgRevokeAllowance; - toAminoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceAminoMsg; - fromProtoMsg(message: MsgRevokeAllowanceProtoMsg): MsgRevokeAllowance; - toProto(message: MsgRevokeAllowance): Uint8Array; - toProtoMsg(message: MsgRevokeAllowance): MsgRevokeAllowanceProtoMsg; -}; -export declare const MsgRevokeAllowanceResponse: { - typeUrl: string; - encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; - fromPartial(_: Partial): MsgRevokeAllowanceResponse; - fromAmino(_: MsgRevokeAllowanceResponseAmino): MsgRevokeAllowanceResponse; - toAmino(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAmino; - fromAminoMsg(object: MsgRevokeAllowanceResponseAminoMsg): MsgRevokeAllowanceResponse; - toAminoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseAminoMsg; - fromProtoMsg(message: MsgRevokeAllowanceResponseProtoMsg): MsgRevokeAllowanceResponse; - toProto(message: MsgRevokeAllowanceResponse): Uint8Array; - toProtoMsg(message: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseProtoMsg; -}; -export declare const FeeAllowanceI_InterfaceDecoder: (input: BinaryReader | Uint8Array) => BasicAllowance | PeriodicAllowance | AllowedMsgAllowance | Any; -export declare const FeeAllowanceI_FromAmino: (content: AnyAmino) => Any; -export declare const FeeAllowanceI_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.js deleted file mode 100644 index cc14d92f..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.js +++ /dev/null @@ -1,352 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FeeAllowanceI_ToAmino = exports.FeeAllowanceI_FromAmino = exports.FeeAllowanceI_InterfaceDecoder = exports.MsgRevokeAllowanceResponse = exports.MsgRevokeAllowance = exports.MsgGrantAllowanceResponse = exports.MsgGrantAllowance = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const feegrant_1 = require("./feegrant"); -const binary_1 = require("../../../binary"); -function createBaseMsgGrantAllowance() { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -exports.MsgGrantAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - any_1.Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = (0, exports.FeeAllowanceI_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgGrantAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? any_1.Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgGrantAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = (0, exports.FeeAllowanceI_FromAmino)(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? (0, exports.FeeAllowanceI_ToAmino)(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgGrantAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantAllowance", - value: exports.MsgGrantAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgGrantAllowance.decode(message.value); - }, - toProto(message) { - return exports.MsgGrantAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: exports.MsgGrantAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgGrantAllowanceResponse() { - return {}; -} -exports.MsgGrantAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgGrantAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantAllowanceResponse", - value: exports.MsgGrantAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgGrantAllowanceResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgGrantAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - value: exports.MsgGrantAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowance() { - return { - granter: "", - grantee: "" - }; -} -exports.MsgRevokeAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRevokeAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRevokeAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRevokeAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeAllowance", - value: exports.MsgRevokeAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRevokeAllowance.decode(message.value); - }, - toProto(message) { - return exports.MsgRevokeAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: exports.MsgRevokeAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowanceResponse() { - return {}; -} -exports.MsgRevokeAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRevokeAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeAllowanceResponse", - value: exports.MsgRevokeAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRevokeAllowanceResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRevokeAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - value: exports.MsgRevokeAllowanceResponse.encode(message).finish() - }; - } -}; -const FeeAllowanceI_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return feegrant_1.BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return feegrant_1.PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return feegrant_1.AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -exports.FeeAllowanceI_InterfaceDecoder = FeeAllowanceI_InterfaceDecoder; -const FeeAllowanceI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: feegrant_1.BasicAllowance.encode(feegrant_1.BasicAllowance.fromPartial(feegrant_1.BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: feegrant_1.PeriodicAllowance.encode(feegrant_1.PeriodicAllowance.fromPartial(feegrant_1.PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: feegrant_1.AllowedMsgAllowance.encode(feegrant_1.AllowedMsgAllowance.fromPartial(feegrant_1.AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.FeeAllowanceI_FromAmino = FeeAllowanceI_FromAmino; -const FeeAllowanceI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: feegrant_1.BasicAllowance.toAmino(feegrant_1.BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: feegrant_1.PeriodicAllowance.toAmino(feegrant_1.PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: feegrant_1.AllowedMsgAllowance.toAmino(feegrant_1.AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.FeeAllowanceI_ToAmino = FeeAllowanceI_ToAmino; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts deleted file mode 100644 index 9e55d38d..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js deleted file mode 100644 index 6b7eb6b0..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.registry.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", tx_1.MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", tx_1.MsgRevokeAllowance]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: tx_1.MsgGrantAllowance.encode(value).finish() - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: tx_1.MsgRevokeAllowance.encode(value).finish() - }; - } - }, - withTypeUrl: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value - }; - } - }, - fromPartial: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: tx_1.MsgGrantAllowance.fromPartial(value) - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: tx_1.MsgRevokeAllowance.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 9ec43a55..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; -/** Msg defines the feegrant msg service. */ -export interface Msg { - /** - * GrantAllowance grants fee allowance to the grantee on the granter's - * account with the provided expiration time. - */ - grantAllowance(request: MsgGrantAllowance): Promise; - /** - * RevokeAllowance revokes any fee allowance of granter's account that - * has been granted to the grantee. - */ - revokeAllowance(request: MsgRevokeAllowance): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - grantAllowance(request: MsgGrantAllowance): Promise; - revokeAllowance(request: MsgRevokeAllowance): Promise; -} diff --git a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js deleted file mode 100644 index de7cf296..00000000 --- a/packages/api/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grantAllowance = this.grantAllowance.bind(this); - this.revokeAllowance = this.revokeAllowance.bind(this); - } - grantAllowance(request) { - const data = tx_1.MsgGrantAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); - return promise.then(data => tx_1.MsgGrantAllowanceResponse.decode(new binary_1.BinaryReader(data))); - } - revokeAllowance(request) { - const data = tx_1.MsgRevokeAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); - return promise.then(data => tx_1.MsgRevokeAllowanceResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/gov/v1/genesis.d.ts b/packages/api/dist/cosmos/gov/v1/genesis.d.ts deleted file mode 100644 index e6cba7c3..00000000 --- a/packages/api/dist/cosmos/gov/v1/genesis.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams?: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams?: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams?: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/v1/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params?: DepositParamsSDKType; - voting_params?: VotingParamsSDKType; - tally_params?: TallyParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/gov/v1/genesis.js b/packages/api/dist/cosmos/gov/v1/genesis.js deleted file mode 100644 index 36f59a16..00000000 --- a/packages/api/dist/cosmos/gov/v1/genesis.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const gov_1 = require("./gov"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: undefined, - votingParams: undefined, - tallyParams: undefined - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.gov.v1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - gov_1.Deposit.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - gov_1.Vote.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - gov_1.Proposal.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - gov_1.DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - gov_1.VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/gov/v1/gov.d.ts b/packages/api/dist/cosmos/gov/v1/gov.d.ts deleted file mode 100644 index 35e30032..00000000 --- a/packages/api/dist/cosmos/gov/v1/gov.d.ts +++ /dev/null @@ -1,446 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; - value: Uint8Array; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/v1/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/v1/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: bigint; - messages: Any[]; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult?: TallyResult; - submitTime?: Date; - depositEndTime?: Date; - totalDeposit: Coin[]; - votingStartTime?: Date; - votingEndTime?: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.Proposal"; - value: Uint8Array; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - id?: string; - messages?: AnyAmino[]; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/v1/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: bigint; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result?: TallyResultSDKType; - submit_time?: Date; - deposit_end_time?: Date; - total_deposit: CoinSDKType[]; - voting_start_time?: Date; - voting_end_time?: Date; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes_count?: string; - abstain_count?: string; - no_count?: string; - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/v1/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id?: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/v1/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod?: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/v1/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period?: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod?: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/v1/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period?: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/v1/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} -export declare const WeightedVoteOption: { - typeUrl: string; - encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; - fromPartial(object: Partial): WeightedVoteOption; - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; - toProto(message: WeightedVoteOption): Uint8Array; - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; -}; -export declare const Deposit: { - typeUrl: string; - encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Deposit; - fromPartial(object: Partial): Deposit; - fromAmino(object: DepositAmino): Deposit; - toAmino(message: Deposit): DepositAmino; - fromAminoMsg(object: DepositAminoMsg): Deposit; - toAminoMsg(message: Deposit): DepositAminoMsg; - fromProtoMsg(message: DepositProtoMsg): Deposit; - toProto(message: Deposit): Uint8Array; - toProtoMsg(message: Deposit): DepositProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DepositParams: { - typeUrl: string; - encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; - fromPartial(object: Partial): DepositParams; - fromAmino(object: DepositParamsAmino): DepositParams; - toAmino(message: DepositParams): DepositParamsAmino; - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; - toAminoMsg(message: DepositParams): DepositParamsAminoMsg; - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; - toProto(message: DepositParams): Uint8Array; - toProtoMsg(message: DepositParams): DepositParamsProtoMsg; -}; -export declare const VotingParams: { - typeUrl: string; - encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; - fromPartial(object: Partial): VotingParams; - fromAmino(object: VotingParamsAmino): VotingParams; - toAmino(message: VotingParams): VotingParamsAmino; - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; - toAminoMsg(message: VotingParams): VotingParamsAminoMsg; - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; - toProto(message: VotingParams): Uint8Array; - toProtoMsg(message: VotingParams): VotingParamsProtoMsg; -}; -export declare const TallyParams: { - typeUrl: string; - encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; - fromPartial(object: Partial): TallyParams; - fromAmino(object: TallyParamsAmino): TallyParams; - toAmino(message: TallyParams): TallyParamsAmino; - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; - toAminoMsg(message: TallyParams): TallyParamsAminoMsg; - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; - toProto(message: TallyParams): Uint8Array; - toProtoMsg(message: TallyParams): TallyParamsProtoMsg; -}; diff --git a/packages/api/dist/cosmos/gov/v1/gov.js b/packages/api/dist/cosmos/gov/v1/gov.js deleted file mode 100644 index 2ae746fd..00000000 --- a/packages/api/dist/cosmos/gov/v1/gov.js +++ /dev/null @@ -1,969 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const any_1 = require("../../../google/protobuf/any"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const duration_1 = require("../../../google/protobuf/duration"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -var VoteOption; -(function (VoteOption) { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (exports.VoteOption = VoteOption = {})); -exports.VoteOptionSDKType = VoteOption; -exports.VoteOptionAmino = VoteOption; -function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -exports.voteOptionFromJSON = voteOptionFromJSON; -function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.voteOptionToJSON = voteOptionToJSON; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); -exports.ProposalStatusSDKType = ProposalStatus; -exports.ProposalStatusAmino = ProposalStatus; -function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -exports.proposalStatusFromJSON = proposalStatusFromJSON; -function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.proposalStatusToJSON = proposalStatusToJSON; -function createBaseWeightedVoteOption() { - return { - option: 0, - weight: "" - }; -} -exports.WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = reader.int32(); - break; - case 2: - message.weight = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object) { - return exports.WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/WeightedVoteOption", - value: exports.WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.WeightedVoteOption.decode(message.value); - }, - toProto(message) { - return exports.WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - value: exports.WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -exports.Deposit = { - typeUrl: "/cosmos.gov.v1.Deposit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Deposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Deposit", - value: exports.Deposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Deposit.decode(message.value); - }, - toProto(message) { - return exports.Deposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Deposit", - value: exports.Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - id: BigInt(0), - messages: [], - status: 0, - finalTallyResult: undefined, - submitTime: undefined, - depositEndTime: undefined, - totalDeposit: [], - votingStartTime: undefined, - votingEndTime: undefined, - metadata: "" - }; -} -exports.Proposal = { - typeUrl: "/cosmos.gov.v1.Proposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - for (const v of message.messages) { - any_1.Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - exports.TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.depositEndTime), writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - coin_1.Coin.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingStartTime), writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingEndTime), writer.uint32(74).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(82).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.messages.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 3: - message.status = reader.int32(); - break; - case 4: - message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.totalDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime ?? undefined; - message.depositEndTime = object.depositEndTime ?? undefined; - message.totalDeposit = object.totalDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime ?? undefined; - message.votingEndTime = object.votingEndTime ?? undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.deposit_end_time)); - } - message.totalDeposit = object.total_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_start_time)); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_end_time)); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - if (message.messages) { - obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; - obj.deposit_end_time = message.depositEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.depositEndTime)) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingStartTime)) : undefined; - obj.voting_end_time = message.votingEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingEndTime)) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Proposal", - value: exports.Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Proposal.decode(message.value); - }, - toProto(message) { - return exports.Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Proposal", - value: exports.Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -exports.TallyResult = { - typeUrl: "/cosmos.gov.v1.TallyResult", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object) { - return exports.TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/TallyResult", - value: exports.TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TallyResult.decode(message.value); - }, - toProto(message) { - return exports.TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.TallyResult", - value: exports.TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -exports.Vote = { - typeUrl: "/cosmos.gov.v1.Vote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - exports.WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 4: - message.options.push(exports.WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => exports.WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => exports.WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? exports.WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Vote", - value: exports.Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Vote.decode(message.value); - }, - toProto(message) { - return exports.Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Vote", - value: exports.Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams() { - return { - minDeposit: [], - maxDepositPeriod: undefined - }; -} -exports.DepositParams = { - typeUrl: "/cosmos.gov.v1.DepositParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.minDeposit) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - duration_1.Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? duration_1.Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = duration_1.Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? duration_1.Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DepositParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/DepositParams", - value: exports.DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DepositParams.decode(message.value); - }, - toProto(message) { - return exports.DepositParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.DepositParams", - value: exports.DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams() { - return { - votingPeriod: undefined - }; -} -exports.VotingParams = { - typeUrl: "/cosmos.gov.v1.VotingParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.VotingParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/VotingParams", - value: exports.VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.VotingParams.decode(message.value); - }, - toProto(message) { - return exports.VotingParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.VotingParams", - value: exports.VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams() { - return { - quorum: "", - threshold: "", - vetoThreshold: "" - }; -} -exports.TallyParams = { - typeUrl: "/cosmos.gov.v1.TallyParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.quorum !== "") { - writer.uint32(10).string(message.quorum); - } - if (message.threshold !== "") { - writer.uint32(18).string(message.threshold); - } - if (message.vetoThreshold !== "") { - writer.uint32(26).string(message.vetoThreshold); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.string(); - break; - case 2: - message.threshold = reader.string(); - break; - case 3: - message.vetoThreshold = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? ""; - message.threshold = object.threshold ?? ""; - message.vetoThreshold = object.vetoThreshold ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = object.quorum; - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = object.veto_threshold; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.quorum = message.quorum === "" ? undefined : message.quorum; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; - return obj; - }, - fromAminoMsg(object) { - return exports.TallyParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/TallyParams", - value: exports.TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TallyParams.decode(message.value); - }, - toProto(message) { - return exports.TallyParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.TallyParams", - value: exports.TallyParams.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/gov/v1/query.d.ts b/packages/api/dist/cosmos/gov/v1/query.d.ts deleted file mode 100644 index 80109174..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.d.ts +++ /dev/null @@ -1,632 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote?: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/v1/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/v1/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams?: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams?: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams?: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params?: VotingParamsSDKType; - deposit_params?: DepositParamsSDKType; - tally_params?: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit?: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit?: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/v1/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally?: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/v1/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally?: TallyResultSDKType; -} -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsRequest: { - typeUrl: string; - encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; - fromPartial(object: Partial): QueryProposalsRequest; - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; - toProto(message: QueryProposalsRequest): Uint8Array; - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; -}; -export declare const QueryProposalsResponse: { - typeUrl: string; - encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; - fromPartial(object: Partial): QueryProposalsResponse; - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; - toProto(message: QueryProposalsResponse): Uint8Array; - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; -}; -export declare const QueryVoteRequest: { - typeUrl: string; - encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; - fromPartial(object: Partial): QueryVoteRequest; - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; - toProto(message: QueryVoteRequest): Uint8Array; - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; -}; -export declare const QueryVoteResponse: { - typeUrl: string; - encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; - fromPartial(object: Partial): QueryVoteResponse; - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; - toProto(message: QueryVoteResponse): Uint8Array; - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; -}; -export declare const QueryVotesRequest: { - typeUrl: string; - encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; - fromPartial(object: Partial): QueryVotesRequest; - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; - toProto(message: QueryVotesRequest): Uint8Array; - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; -}; -export declare const QueryVotesResponse: { - typeUrl: string; - encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; - fromPartial(object: Partial): QueryVotesResponse; - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; - toProto(message: QueryVotesResponse): Uint8Array; - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDepositRequest: { - typeUrl: string; - encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; - fromPartial(object: Partial): QueryDepositRequest; - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; - toProto(message: QueryDepositRequest): Uint8Array; - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; -}; -export declare const QueryDepositResponse: { - typeUrl: string; - encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; - fromPartial(object: Partial): QueryDepositResponse; - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; - toProto(message: QueryDepositResponse): Uint8Array; - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; -}; -export declare const QueryDepositsRequest: { - typeUrl: string; - encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; - fromPartial(object: Partial): QueryDepositsRequest; - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; - toProto(message: QueryDepositsRequest): Uint8Array; - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; -}; -export declare const QueryDepositsResponse: { - typeUrl: string; - encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; - fromPartial(object: Partial): QueryDepositsResponse; - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; - toProto(message: QueryDepositsResponse): Uint8Array; - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/gov/v1/query.js b/packages/api/dist/cosmos/gov/v1/query.js deleted file mode 100644 index 79307d01..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.js +++ /dev/null @@ -1,1264 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = void 0; -//@ts-nocheck -const gov_1 = require("./gov"); -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const binary_1 = require("../../../binary"); -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalRequest", - value: exports.QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - value: exports.QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: undefined - }; -} -exports.QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposal !== undefined) { - gov_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = gov_1.Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? gov_1.Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = gov_1.Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? gov_1.Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalResponse", - value: exports.QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - value: exports.QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest() { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -exports.QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = reader.int32(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalsRequest", - value: exports.QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - value: exports.QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse() { - return { - proposals: [], - pagination: undefined - }; -} -exports.QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.proposals) { - gov_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalsResponse", - value: exports.QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - value: exports.QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -exports.QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVoteRequest", - value: exports.QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - value: exports.QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse() { - return { - vote: undefined - }; -} -exports.QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.vote !== undefined) { - gov_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = gov_1.Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? gov_1.Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = gov_1.Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? gov_1.Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVoteResponse", - value: exports.QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - value: exports.QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -exports.QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVotesRequest", - value: exports.QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - value: exports.QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse() { - return { - votes: [], - pagination: undefined - }; -} -exports.QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.votes) { - gov_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVotesResponse", - value: exports.QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - value: exports.QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return { - paramsType: "" - }; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - votingParams: undefined, - depositParams: undefined, - tallyParams: undefined - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.votingParams !== undefined) { - gov_1.VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - gov_1.DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - gov_1.TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest() { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -exports.QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositRequest", - value: exports.QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - value: exports.QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse() { - return { - deposit: undefined - }; -} -exports.QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.deposit !== undefined) { - gov_1.Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = gov_1.Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? gov_1.Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = gov_1.Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.deposit = message.deposit ? gov_1.Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositResponse", - value: exports.QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - value: exports.QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -exports.QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositsRequest", - value: exports.QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - value: exports.QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse() { - return { - deposits: [], - pagination: undefined - }; -} -exports.QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.deposits) { - gov_1.Deposit.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositsResponse", - value: exports.QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - value: exports.QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: undefined - }; -} -exports.QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tally !== undefined) { - gov_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = gov_1.TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? gov_1.TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = gov_1.TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? gov_1.TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts b/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts deleted file mode 100644 index e7e28345..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - proposal(params: QueryProposalRequest): Promise; - proposals(params: QueryProposalsRequest): Promise; - vote(params: QueryVoteRequest): Promise; - votes(params: QueryVotesRequest): Promise; - params(params: QueryParamsRequest): Promise; - deposit(params: QueryDepositRequest): Promise; - deposits(params: QueryDepositsRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/dist/cosmos/gov/v1/query.lcd.js b/packages/api/dist/cosmos/gov/v1/query.lcd.js deleted file mode 100644 index 148b0682..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.lcd.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params) { - const options = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params) { - const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts deleted file mode 100644 index 8152da58..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js b/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js deleted file mode 100644 index a0d5b26f..00000000 --- a/packages/api/dist/cosmos/gov/v1/query.rpc.Query.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request) { - const data = query_1.QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); - return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); - } - proposals(request) { - const data = query_1.QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); - return promise.then(data => query_1.QueryProposalsResponse.decode(new binary_1.BinaryReader(data))); - } - vote(request) { - const data = query_1.QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); - return promise.then(data => query_1.QueryVoteResponse.decode(new binary_1.BinaryReader(data))); - } - votes(request) { - const data = query_1.QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); - return promise.then(data => query_1.QueryVotesResponse.decode(new binary_1.BinaryReader(data))); - } - params(request) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - deposit(request) { - const data = query_1.QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); - return promise.then(data => query_1.QueryDepositResponse.decode(new binary_1.BinaryReader(data))); - } - deposits(request) { - const data = query_1.QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); - return promise.then(data => query_1.QueryDepositsResponse.decode(new binary_1.BinaryReader(data))); - } - tallyResult(request) { - const data = query_1.QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); - return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request) { - return queryService.proposal(request); - }, - proposals(request) { - return queryService.proposals(request); - }, - vote(request) { - return queryService.vote(request); - }, - votes(request) { - return queryService.votes(request); - }, - params(request) { - return queryService.params(request); - }, - deposit(request) { - return queryService.deposit(request); - }, - deposits(request) { - return queryService.deposits(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts b/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts deleted file mode 100644 index 0e354dc4..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.amino.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: (message: MsgExecLegacyContent) => import("./tx").MsgExecLegacyContentAmino; - fromAmino: (object: import("./tx").MsgExecLegacyContentAmino) => MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; - fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; - }; -}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.amino.js b/packages/api/dist/cosmos/gov/v1/tx.amino.js deleted file mode 100644 index 8f75fa16..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.amino.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/v1/MsgSubmitProposal", - toAmino: tx_1.MsgSubmitProposal.toAmino, - fromAmino: tx_1.MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", - toAmino: tx_1.MsgExecLegacyContent.toAmino, - fromAmino: tx_1.MsgExecLegacyContent.fromAmino - }, - "/cosmos.gov.v1.MsgVote": { - aminoType: "cosmos-sdk/v1/MsgVote", - toAmino: tx_1.MsgVote.toAmino, - fromAmino: tx_1.MsgVote.fromAmino - }, - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/v1/MsgVoteWeighted", - toAmino: tx_1.MsgVoteWeighted.toAmino, - fromAmino: tx_1.MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1.MsgDeposit": { - aminoType: "cosmos-sdk/v1/MsgDeposit", - toAmino: tx_1.MsgDeposit.toAmino, - fromAmino: tx_1.MsgDeposit.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.d.ts b/packages/api/dist/cosmos/gov/v1/tx.d.ts deleted file mode 100644 index 3c97f440..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.d.ts +++ /dev/null @@ -1,389 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType } from "./gov"; -import { TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "../v1beta1/gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - messages?: AnyAmino[]; - initial_deposit?: CoinAmino[]; - proposer?: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content?: TextProposal | Any | undefined; - /** authority must be the gov module address. */ - authority: string; -} -export interface MsgExecLegacyContentProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; - value: Uint8Array; -} -export type MsgExecLegacyContentEncoded = Omit & { - /** content is the proposal's content. */ content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentAmino { - /** content is the proposal's content. */ - content?: AnyAmino; - /** authority must be the gov module address. */ - authority?: string; -} -export interface MsgExecLegacyContentAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: MsgExecLegacyContentAmino; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse { -} -export interface MsgExecLegacyContentResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; - value: Uint8Array; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseAmino { -} -export interface MsgExecLegacyContentResponseAminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse"; - value: MsgExecLegacyContentResponseAmino; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType { -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id: string; - voter?: string; - option?: VoteOption; - metadata?: string; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; - value: Uint8Array; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; - metadata?: string; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse { -} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseAmino { -} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType { -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse { -} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino { -} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/v1/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType { -} -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgExecLegacyContent: { - typeUrl: string; - encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent; - fromPartial(object: Partial): MsgExecLegacyContent; - fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent; - toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino; - fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent; - toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg; - fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent; - toProto(message: MsgExecLegacyContent): Uint8Array; - toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg; -}; -export declare const MsgExecLegacyContentResponse: { - typeUrl: string; - encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse; - fromPartial(_: Partial): MsgExecLegacyContentResponse; - fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse; - toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino; - fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse; - toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg; - fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse; - toProto(message: MsgExecLegacyContentResponse): Uint8Array; - toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgVoteWeighted: { - typeUrl: string; - encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; - fromPartial(object: Partial): MsgVoteWeighted; - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; - toProto(message: MsgVoteWeighted): Uint8Array; - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; -}; -export declare const MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; - fromPartial(_: Partial): MsgVoteWeightedResponse; - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; - toProto(message: MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; -}; -export declare const MsgDeposit: { - typeUrl: string; - encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; - fromPartial(object: Partial): MsgDeposit; - fromAmino(object: MsgDepositAmino): MsgDeposit; - toAmino(message: MsgDeposit): MsgDepositAmino; - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; - toProto(message: MsgDeposit): Uint8Array; - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; -}; -export declare const MsgDepositResponse: { - typeUrl: string; - encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; - fromPartial(_: Partial): MsgDepositResponse; - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; - toProto(message: MsgDepositResponse): Uint8Array; - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1/tx.js b/packages/api/dist/cosmos/gov/v1/tx.js deleted file mode 100644 index e32f8c52..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.js +++ /dev/null @@ -1,838 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgExecLegacyContentResponse = exports.MsgExecLegacyContent = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const coin_1 = require("../../base/v1beta1/coin"); -const gov_1 = require("./gov"); -const gov_2 = require("../v1beta1/gov"); -const binary_1 = require("../../../binary"); -function createBaseMsgSubmitProposal() { - return { - messages: [], - initialDeposit: [], - proposer: "", - metadata: "" - }; -} -exports.MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.messages) { - any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 2: - message.initialDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; - message.initialDeposit = object.initialDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; - message.initialDeposit = object.initial_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgSubmitProposal", - value: exports.MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: exports.MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -exports.MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContent() { - return { - content: undefined, - authority: "" - }; -} -exports.MsgExecLegacyContent = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.content !== undefined) { - any_1.Any.encode(message.content, writer.uint32(10).fork()).ldelim(); - } - if (message.authority !== "") { - writer.uint32(18).string(message.authority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = (0, exports.Content_InterfaceDecoder)(reader); - break; - case 2: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecLegacyContent(); - message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecLegacyContent(); - if (object.content !== undefined && object.content !== null) { - message.content = (0, exports.Content_FromAmino)(object.content); - } - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExecLegacyContent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContent", - value: exports.MsgExecLegacyContent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExecLegacyContent.decode(message.value); - }, - toProto(message) { - return exports.MsgExecLegacyContent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: exports.MsgExecLegacyContent.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContentResponse() { - return {}; -} -exports.MsgExecLegacyContentResponse = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContentResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExecLegacyContentResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", - value: exports.MsgExecLegacyContentResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExecLegacyContentResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgExecLegacyContentResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - value: exports.MsgExecLegacyContentResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "" - }; -} -exports.MsgVote = { - typeUrl: "/cosmos.gov.v1.MsgVote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVote", - value: exports.MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVote.decode(message.value); - }, - toProto(message) { - return exports.MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: exports.MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -exports.MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteResponse", - value: exports.MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - value: exports.MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted() { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -exports.MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - gov_1.WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(gov_1.WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? gov_1.WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteWeighted", - value: exports.MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteWeighted.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: exports.MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse() { - return {}; -} -exports.MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse", - value: exports.MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - value: exports.MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -exports.MsgDeposit = { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgDeposit", - value: exports.MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDeposit.decode(message.value); - }, - toProto(message) { - return exports.MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: exports.MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse() { - return {}; -} -exports.MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgDepositResponse", - value: exports.MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDepositResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - value: exports.MsgDepositResponse.encode(message).finish() - }; - } -}; -const Content_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return gov_2.TextProposal.decode(data.value); - default: - return data; - } -}; -exports.Content_InterfaceDecoder = Content_InterfaceDecoder; -const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/v1/TextProposal": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: gov_2.TextProposal.encode(gov_2.TextProposal.fromPartial(gov_2.TextProposal.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.Content_FromAmino = Content_FromAmino; -const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/v1/TextProposal", - value: gov_2.TextProposal.toAmino(gov_2.TextProposal.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts b/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts deleted file mode 100644 index 2dd13cbd..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.registry.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; -}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.registry.js b/packages/api/dist/cosmos/gov/v1/tx.registry.js deleted file mode 100644 index 32abb26d..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.registry.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.gov.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", tx_1.MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", tx_1.MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", tx_1.MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", tx_1.MsgDeposit]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.encode(value).finish() - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: tx_1.MsgExecLegacyContent.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: tx_1.MsgVote.encode(value).finish() - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: tx_1.MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: tx_1.MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value - }; - } - }, - fromPartial: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.fromPartial(value) - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: tx_1.MsgExecLegacyContent.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: tx_1.MsgVote.fromPartial(value) - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: tx_1.MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: tx_1.MsgDeposit.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 4624c3f7..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the gov Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** - * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal - * to execute a legacy content-based proposal. - */ - execLegacyContent(request: MsgExecLegacyContent): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitProposal(request: MsgSubmitProposal): Promise; - execLegacyContent(request: MsgExecLegacyContent): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} diff --git a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js b/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js deleted file mode 100644 index 7313246f..00000000 --- a/packages/api/dist/cosmos/gov/v1/tx.rpc.msg.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.execLegacyContent = this.execLegacyContent.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request) { - const data = tx_1.MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); - return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); - } - execLegacyContent(request) { - const data = tx_1.MsgExecLegacyContent.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); - return promise.then(data => tx_1.MsgExecLegacyContentResponse.decode(new binary_1.BinaryReader(data))); - } - vote(request) { - const data = tx_1.MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); - return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); - } - voteWeighted(request) { - const data = tx_1.MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); - return promise.then(data => tx_1.MsgVoteWeightedResponse.decode(new binary_1.BinaryReader(data))); - } - deposit(request) { - const data = tx_1.MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); - return promise.then(data => tx_1.MsgDepositResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts deleted file mode 100644 index 2a6f8134..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/genesis.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Deposit, DepositAmino, DepositSDKType, Vote, VoteAmino, VoteSDKType, Proposal, ProposalAmino, ProposalSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: bigint; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateAmino { - /** starting_proposal_id is the ID of the starting proposal. */ - starting_proposal_id?: string; - /** deposits defines all the deposits present at genesis. */ - deposits?: DepositAmino[]; - /** votes defines all the votes present at genesis. */ - votes?: VoteAmino[]; - /** proposals defines all the proposals present at genesis. */ - proposals?: ProposalAmino[]; - /** params defines all the paramaters of related to deposit. */ - deposit_params?: DepositParamsAmino; - /** params defines all the paramaters of related to voting. */ - voting_params?: VotingParamsAmino; - /** params defines all the paramaters of related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: bigint; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/genesis.js b/packages/api/dist/cosmos/gov/v1beta1/genesis.js deleted file mode 100644 index 243a328d..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/genesis.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const gov_1 = require("./gov"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: gov_1.DepositParams.fromPartial({}), - votingParams: gov_1.VotingParams.fromPartial({}), - tallyParams: gov_1.TallyParams.fromPartial({}) - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - gov_1.Deposit.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - gov_1.Vote.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - gov_1.Proposal.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - gov_1.DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - gov_1.VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts b/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts deleted file mode 100644 index bc3bcc8f..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/gov.d.ts +++ /dev/null @@ -1,519 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -export interface WeightedVoteOptionProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; - value: Uint8Array; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionAmino { - option?: VoteOption; - weight?: string; -} -export interface WeightedVoteOptionAminoMsg { - type: "cosmos-sdk/WeightedVoteOption"; - value: WeightedVoteOptionAmino; -} -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposal { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -export interface TextProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TextProposal"; - value: Uint8Array; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalAmino { - title?: string; - description?: string; -} -export interface TextProposalAminoMsg { - type: "cosmos-sdk/TextProposal"; - value: TextProposalAmino; -} -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - */ -export interface TextProposalSDKType { - $typeUrl?: "/cosmos.gov.v1beta1.TextProposal"; - title: string; - description: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface DepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Deposit"; - value: Uint8Array; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositAmino { - proposal_id?: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface DepositAminoMsg { - type: "cosmos-sdk/Deposit"; - value: DepositAmino; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - proposalId: bigint; - content?: TextProposal | Any | undefined; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Proposal"; - value: Uint8Array; -} -export type ProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalAmino { - proposal_id?: string; - content?: AnyAmino; - status?: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - final_tally_result?: TallyResultAmino; - submit_time?: string; - deposit_end_time?: string; - total_deposit?: CoinAmino[]; - voting_start_time?: string; - voting_end_time?: string; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - proposal_id: bigint; - content?: TextProposalSDKType | AnySDKType | undefined; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yes: string; - abstain: string; - no: string; - noWithVeto: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyResult"; - value: Uint8Array; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultAmino { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes: string; - abstain: string; - no: string; - no_with_veto: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: bigint; - voter: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options: WeightedVoteOption[]; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.Vote"; - value: Uint8Array; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteAmino { - proposal_id: string; - voter?: string; - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - */ - /** @deprecated */ - option?: VoteOption; - /** Since: cosmos-sdk 0.43 */ - options?: WeightedVoteOptionAmino[]; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - /** @deprecated */ - option: VoteOption; - options: WeightedVoteOptionSDKType[]; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -export interface DepositParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.DepositParams"; - value: Uint8Array; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsAmino { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: CoinAmino[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: DurationAmino; -} -export interface DepositParamsAminoMsg { - type: "cosmos-sdk/DepositParams"; - value: DepositParamsAmino; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -export interface VotingParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.VotingParams"; - value: Uint8Array; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsAmino { - /** Length of the voting period. */ - voting_period?: DurationAmino; -} -export interface VotingParamsAminoMsg { - type: "cosmos-sdk/VotingParams"; - value: VotingParamsAmino; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: Uint8Array; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: Uint8Array; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: Uint8Array; -} -export interface TallyParamsProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.TallyParams"; - value: Uint8Array; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsAmino { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum?: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - veto_threshold?: string; -} -export interface TallyParamsAminoMsg { - type: "cosmos-sdk/TallyParams"; - value: TallyParamsAmino; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: Uint8Array; - threshold: Uint8Array; - veto_threshold: Uint8Array; -} -export declare const WeightedVoteOption: { - typeUrl: string; - encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; - fromPartial(object: Partial): WeightedVoteOption; - fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption; - toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino; - fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption; - toAminoMsg(message: WeightedVoteOption): WeightedVoteOptionAminoMsg; - fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; - toProto(message: WeightedVoteOption): Uint8Array; - toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; -}; -export declare const TextProposal: { - typeUrl: string; - encode(message: TextProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TextProposal; - fromPartial(object: Partial): TextProposal; - fromAmino(object: TextProposalAmino): TextProposal; - toAmino(message: TextProposal): TextProposalAmino; - fromAminoMsg(object: TextProposalAminoMsg): TextProposal; - toAminoMsg(message: TextProposal): TextProposalAminoMsg; - fromProtoMsg(message: TextProposalProtoMsg): TextProposal; - toProto(message: TextProposal): Uint8Array; - toProtoMsg(message: TextProposal): TextProposalProtoMsg; -}; -export declare const Deposit: { - typeUrl: string; - encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Deposit; - fromPartial(object: Partial): Deposit; - fromAmino(object: DepositAmino): Deposit; - toAmino(message: Deposit): DepositAmino; - fromAminoMsg(object: DepositAminoMsg): Deposit; - toAminoMsg(message: Deposit): DepositAminoMsg; - fromProtoMsg(message: DepositProtoMsg): Deposit; - toProto(message: Deposit): Uint8Array; - toProtoMsg(message: Deposit): DepositProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DepositParams: { - typeUrl: string; - encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; - fromPartial(object: Partial): DepositParams; - fromAmino(object: DepositParamsAmino): DepositParams; - toAmino(message: DepositParams): DepositParamsAmino; - fromAminoMsg(object: DepositParamsAminoMsg): DepositParams; - toAminoMsg(message: DepositParams): DepositParamsAminoMsg; - fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; - toProto(message: DepositParams): Uint8Array; - toProtoMsg(message: DepositParams): DepositParamsProtoMsg; -}; -export declare const VotingParams: { - typeUrl: string; - encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; - fromPartial(object: Partial): VotingParams; - fromAmino(object: VotingParamsAmino): VotingParams; - toAmino(message: VotingParams): VotingParamsAmino; - fromAminoMsg(object: VotingParamsAminoMsg): VotingParams; - toAminoMsg(message: VotingParams): VotingParamsAminoMsg; - fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; - toProto(message: VotingParams): Uint8Array; - toProtoMsg(message: VotingParams): VotingParamsProtoMsg; -}; -export declare const TallyParams: { - typeUrl: string; - encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; - fromPartial(object: Partial): TallyParams; - fromAmino(object: TallyParamsAmino): TallyParams; - toAmino(message: TallyParams): TallyParamsAmino; - fromAminoMsg(object: TallyParamsAminoMsg): TallyParams; - toAminoMsg(message: TallyParams): TallyParamsAminoMsg; - fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; - toProto(message: TallyParams): Uint8Array; - toProtoMsg(message: TallyParams): TallyParamsProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/gov.js b/packages/api/dist/cosmos/gov/v1beta1/gov.js deleted file mode 100644 index d942bf82..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/gov.js +++ /dev/null @@ -1,1072 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.TextProposal = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const any_1 = require("../../../google/protobuf/any"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const duration_1 = require("../../../google/protobuf/duration"); -const binary_1 = require("../../../binary"); -const math_1 = require("@cosmjs/math"); -const helpers_1 = require("../../../helpers"); -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -var VoteOption; -(function (VoteOption) { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (exports.VoteOption = VoteOption = {})); -exports.VoteOptionSDKType = VoteOption; -exports.VoteOptionAmino = VoteOption; -function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -exports.voteOptionFromJSON = voteOptionFromJSON; -function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.voteOptionToJSON = voteOptionToJSON; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); -exports.ProposalStatusSDKType = ProposalStatus; -exports.ProposalStatusAmino = ProposalStatus; -function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -exports.proposalStatusFromJSON = proposalStatusFromJSON; -function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.proposalStatusToJSON = proposalStatusToJSON; -function createBaseWeightedVoteOption() { - return { - option: 0, - weight: "" - }; -} -exports.WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.weight, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = reader.int32(); - break; - case 2: - message.weight = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object) { - return exports.WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/WeightedVoteOption", - value: exports.WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.WeightedVoteOption.decode(message.value); - }, - toProto(message) { - return exports.WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - value: exports.WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseTextProposal() { - return { - $typeUrl: "/cosmos.gov.v1beta1.TextProposal", - title: "", - description: "" - }; -} -exports.TextProposal = { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTextProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTextProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTextProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return exports.TextProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TextProposal", - value: exports.TextProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TextProposal.decode(message.value); - }, - toProto(message) { - return exports.TextProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: exports.TextProposal.encode(message).finish() - }; - } -}; -function createBaseDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -exports.Deposit = { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Deposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Deposit", - value: exports.Deposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Deposit.decode(message.value); - }, - toProto(message) { - return exports.Deposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - value: exports.Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - proposalId: BigInt(0), - content: undefined, - status: 0, - finalTallyResult: exports.TallyResult.fromPartial({}), - submitTime: new Date(), - depositEndTime: new Date(), - totalDeposit: [], - votingStartTime: new Date(), - votingEndTime: new Date() - }; -} -exports.Proposal = { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.content !== undefined) { - any_1.Any.encode(message.content, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - exports.TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.depositEndTime), writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - coin_1.Coin.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingStartTime), writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingEndTime), writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.content = (0, exports.Content_InterfaceDecoder)(reader); - break; - case 3: - message.status = reader.int32(); - break; - case 4: - message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.totalDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime ?? undefined; - message.depositEndTime = object.depositEndTime ?? undefined; - message.totalDeposit = object.totalDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime ?? undefined; - message.votingEndTime = object.votingEndTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.content !== undefined && object.content !== null) { - message.content = (0, exports.Content_FromAmino)(object.content); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.deposit_end_time)); - } - message.totalDeposit = object.total_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_start_time)); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_end_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; - obj.deposit_end_time = message.depositEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.depositEndTime)) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingStartTime)) : undefined; - obj.voting_end_time = message.votingEndTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingEndTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Proposal", - value: exports.Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Proposal.decode(message.value); - }, - toProto(message) { - return exports.Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - value: exports.Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yes: "", - abstain: "", - no: "", - noWithVeto: "" - }; -} -exports.TallyResult = { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.yes !== "") { - writer.uint32(10).string(message.yes); - } - if (message.abstain !== "") { - writer.uint32(18).string(message.abstain); - } - if (message.no !== "") { - writer.uint32(26).string(message.no); - } - if (message.noWithVeto !== "") { - writer.uint32(34).string(message.noWithVeto); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yes = reader.string(); - break; - case 2: - message.abstain = reader.string(); - break; - case 3: - message.no = reader.string(); - break; - case 4: - message.noWithVeto = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yes = object.yes ?? ""; - message.abstain = object.abstain ?? ""; - message.no = object.no ?? ""; - message.noWithVeto = object.noWithVeto ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes !== undefined && object.yes !== null) { - message.yes = object.yes; - } - if (object.abstain !== undefined && object.abstain !== null) { - message.abstain = object.abstain; - } - if (object.no !== undefined && object.no !== null) { - message.no = object.no; - } - if (object.no_with_veto !== undefined && object.no_with_veto !== null) { - message.noWithVeto = object.no_with_veto; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes = message.yes === "" ? undefined : message.yes; - obj.abstain = message.abstain === "" ? undefined : message.abstain; - obj.no = message.no === "" ? undefined : message.no; - obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; - return obj; - }, - fromAminoMsg(object) { - return exports.TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyResult", - value: exports.TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TallyResult.decode(message.value); - }, - toProto(message) { - return exports.TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - value: exports.TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - options: [] - }; -} -exports.Vote = { - typeUrl: "/cosmos.gov.v1beta1.Vote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - for (const v of message.options) { - exports.WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.options.push(exports.WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.options = object.options?.map(e => exports.WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - message.options = object.options?.map(e => exports.WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - if (message.options) { - obj.options = message.options.map(e => e ? exports.WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Vote", - value: exports.Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Vote.decode(message.value); - }, - toProto(message) { - return exports.Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Vote", - value: exports.Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams() { - return { - minDeposit: [], - maxDepositPeriod: duration_1.Duration.fromPartial({}) - }; -} -exports.DepositParams = { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.minDeposit) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - duration_1.Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? duration_1.Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = duration_1.Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? duration_1.Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DepositParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DepositParams", - value: exports.DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DepositParams.decode(message.value); - }, - toProto(message) { - return exports.DepositParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - value: exports.DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams() { - return { - votingPeriod: duration_1.Duration.fromPartial({}) - }; -} -exports.VotingParams = { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.VotingParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/VotingParams", - value: exports.VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.VotingParams.decode(message.value); - }, - toProto(message) { - return exports.VotingParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - value: exports.VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams() { - return { - quorum: new Uint8Array(), - threshold: new Uint8Array(), - vetoThreshold: new Uint8Array() - }; -} -exports.TallyParams = { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.quorum.length !== 0) { - writer.uint32(10).bytes(message.quorum); - } - if (message.threshold.length !== 0) { - writer.uint32(18).bytes(message.threshold); - } - if (message.vetoThreshold.length !== 0) { - writer.uint32(26).bytes(message.vetoThreshold); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.bytes(); - break; - case 2: - message.threshold = reader.bytes(); - break; - case 3: - message.vetoThreshold = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? new Uint8Array(); - message.threshold = object.threshold ?? new Uint8Array(); - message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = (0, helpers_1.bytesFromBase64)(object.quorum); - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = (0, helpers_1.bytesFromBase64)(object.threshold); - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = (0, helpers_1.bytesFromBase64)(object.veto_threshold); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.quorum = message.quorum ? (0, helpers_1.base64FromBytes)(message.quorum) : undefined; - obj.threshold = message.threshold ? (0, helpers_1.base64FromBytes)(message.threshold) : undefined; - obj.veto_threshold = message.vetoThreshold ? (0, helpers_1.base64FromBytes)(message.vetoThreshold) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.TallyParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyParams", - value: exports.TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TallyParams.decode(message.value); - }, - toProto(message) { - return exports.TallyParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - value: exports.TallyParams.encode(message).finish() - }; - } -}; -const Content_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return exports.TextProposal.decode(data.value); - default: - return data; - } -}; -exports.Content_InterfaceDecoder = Content_InterfaceDecoder; -const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: exports.TextProposal.encode(exports.TextProposal.fromPartial(exports.TextProposal.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.Content_FromAmino = Content_FromAmino; -const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: exports.TextProposal.toAmino(exports.TextProposal.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.d.ts deleted file mode 100644 index 5c454bbe..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.d.ts +++ /dev/null @@ -1,632 +0,0 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseAmino { - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; - value: Uint8Array; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestAmino { - /** proposal_status defines the status of the proposals. */ - proposal_status?: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsRequest"; - value: QueryProposalsRequestAmino; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; - value: Uint8Array; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseAmino { - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsResponse"; - value: QueryProposalsResponseAmino; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** voter defines the voter address for the proposals. */ - voter: string; -} -export interface QueryVoteRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; - value: Uint8Array; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** voter defines the voter address for the proposals. */ - voter?: string; -} -export interface QueryVoteRequestAminoMsg { - type: "cosmos-sdk/QueryVoteRequest"; - value: QueryVoteRequestAmino; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote: Vote; -} -export interface QueryVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; - value: Uint8Array; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseAmino { - /** vote defined the queried vote. */ - vote?: VoteAmino; -} -export interface QueryVoteResponseAminoMsg { - type: "cosmos-sdk/QueryVoteResponse"; - value: QueryVoteResponseAmino; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; - value: Uint8Array; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesRequestAminoMsg { - type: "cosmos-sdk/QueryVotesRequest"; - value: QueryVotesRequestAmino; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; - value: Uint8Array; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseAmino { - /** votes defined the queried votes. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesResponseAminoMsg { - type: "cosmos-sdk/QueryVotesResponse"; - value: QueryVotesResponseAmino; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - params_type?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** voting_params defines the parameters related to voting. */ - voting_params?: VotingParamsAmino; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: DepositParamsAmino; - /** tally_params defines the parameters related to tally. */ - tally_params?: TallyParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -export interface QueryDepositRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; - value: Uint8Array; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; -} -export interface QueryDepositRequestAminoMsg { - type: "cosmos-sdk/QueryDepositRequest"; - value: QueryDepositRequestAmino; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: bigint; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit: Deposit; -} -export interface QueryDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; - value: Uint8Array; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseAmino { - /** deposit defines the requested deposit. */ - deposit?: DepositAmino; -} -export interface QueryDepositResponseAminoMsg { - type: "cosmos-sdk/QueryDepositResponse"; - value: QueryDepositResponseAmino; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDepositsRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; - value: Uint8Array; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDepositsRequestAminoMsg { - type: "cosmos-sdk/QueryDepositsRequest"; - value: QueryDepositsRequestAmino; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDepositsResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; - value: Uint8Array; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseAmino { - deposits?: DepositAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDepositsResponseAminoMsg { - type: "cosmos-sdk/QueryDepositsResponse"; - value: QueryDepositsResponseAmino; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id defines the unique id of the proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsRequest: { - typeUrl: string; - encode(message: QueryProposalsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsRequest; - fromPartial(object: Partial): QueryProposalsRequest; - fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest; - toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino; - fromAminoMsg(object: QueryProposalsRequestAminoMsg): QueryProposalsRequest; - toAminoMsg(message: QueryProposalsRequest): QueryProposalsRequestAminoMsg; - fromProtoMsg(message: QueryProposalsRequestProtoMsg): QueryProposalsRequest; - toProto(message: QueryProposalsRequest): Uint8Array; - toProtoMsg(message: QueryProposalsRequest): QueryProposalsRequestProtoMsg; -}; -export declare const QueryProposalsResponse: { - typeUrl: string; - encode(message: QueryProposalsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsResponse; - fromPartial(object: Partial): QueryProposalsResponse; - fromAmino(object: QueryProposalsResponseAmino): QueryProposalsResponse; - toAmino(message: QueryProposalsResponse): QueryProposalsResponseAmino; - fromAminoMsg(object: QueryProposalsResponseAminoMsg): QueryProposalsResponse; - toAminoMsg(message: QueryProposalsResponse): QueryProposalsResponseAminoMsg; - fromProtoMsg(message: QueryProposalsResponseProtoMsg): QueryProposalsResponse; - toProto(message: QueryProposalsResponse): Uint8Array; - toProtoMsg(message: QueryProposalsResponse): QueryProposalsResponseProtoMsg; -}; -export declare const QueryVoteRequest: { - typeUrl: string; - encode(message: QueryVoteRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteRequest; - fromPartial(object: Partial): QueryVoteRequest; - fromAmino(object: QueryVoteRequestAmino): QueryVoteRequest; - toAmino(message: QueryVoteRequest): QueryVoteRequestAmino; - fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest; - toAminoMsg(message: QueryVoteRequest): QueryVoteRequestAminoMsg; - fromProtoMsg(message: QueryVoteRequestProtoMsg): QueryVoteRequest; - toProto(message: QueryVoteRequest): Uint8Array; - toProtoMsg(message: QueryVoteRequest): QueryVoteRequestProtoMsg; -}; -export declare const QueryVoteResponse: { - typeUrl: string; - encode(message: QueryVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteResponse; - fromPartial(object: Partial): QueryVoteResponse; - fromAmino(object: QueryVoteResponseAmino): QueryVoteResponse; - toAmino(message: QueryVoteResponse): QueryVoteResponseAmino; - fromAminoMsg(object: QueryVoteResponseAminoMsg): QueryVoteResponse; - toAminoMsg(message: QueryVoteResponse): QueryVoteResponseAminoMsg; - fromProtoMsg(message: QueryVoteResponseProtoMsg): QueryVoteResponse; - toProto(message: QueryVoteResponse): Uint8Array; - toProtoMsg(message: QueryVoteResponse): QueryVoteResponseProtoMsg; -}; -export declare const QueryVotesRequest: { - typeUrl: string; - encode(message: QueryVotesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesRequest; - fromPartial(object: Partial): QueryVotesRequest; - fromAmino(object: QueryVotesRequestAmino): QueryVotesRequest; - toAmino(message: QueryVotesRequest): QueryVotesRequestAmino; - fromAminoMsg(object: QueryVotesRequestAminoMsg): QueryVotesRequest; - toAminoMsg(message: QueryVotesRequest): QueryVotesRequestAminoMsg; - fromProtoMsg(message: QueryVotesRequestProtoMsg): QueryVotesRequest; - toProto(message: QueryVotesRequest): Uint8Array; - toProtoMsg(message: QueryVotesRequest): QueryVotesRequestProtoMsg; -}; -export declare const QueryVotesResponse: { - typeUrl: string; - encode(message: QueryVotesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesResponse; - fromPartial(object: Partial): QueryVotesResponse; - fromAmino(object: QueryVotesResponseAmino): QueryVotesResponse; - toAmino(message: QueryVotesResponse): QueryVotesResponseAmino; - fromAminoMsg(object: QueryVotesResponseAminoMsg): QueryVotesResponse; - toAminoMsg(message: QueryVotesResponse): QueryVotesResponseAminoMsg; - fromProtoMsg(message: QueryVotesResponseProtoMsg): QueryVotesResponse; - toProto(message: QueryVotesResponse): Uint8Array; - toProtoMsg(message: QueryVotesResponse): QueryVotesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDepositRequest: { - typeUrl: string; - encode(message: QueryDepositRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositRequest; - fromPartial(object: Partial): QueryDepositRequest; - fromAmino(object: QueryDepositRequestAmino): QueryDepositRequest; - toAmino(message: QueryDepositRequest): QueryDepositRequestAmino; - fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest; - toAminoMsg(message: QueryDepositRequest): QueryDepositRequestAminoMsg; - fromProtoMsg(message: QueryDepositRequestProtoMsg): QueryDepositRequest; - toProto(message: QueryDepositRequest): Uint8Array; - toProtoMsg(message: QueryDepositRequest): QueryDepositRequestProtoMsg; -}; -export declare const QueryDepositResponse: { - typeUrl: string; - encode(message: QueryDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositResponse; - fromPartial(object: Partial): QueryDepositResponse; - fromAmino(object: QueryDepositResponseAmino): QueryDepositResponse; - toAmino(message: QueryDepositResponse): QueryDepositResponseAmino; - fromAminoMsg(object: QueryDepositResponseAminoMsg): QueryDepositResponse; - toAminoMsg(message: QueryDepositResponse): QueryDepositResponseAminoMsg; - fromProtoMsg(message: QueryDepositResponseProtoMsg): QueryDepositResponse; - toProto(message: QueryDepositResponse): Uint8Array; - toProtoMsg(message: QueryDepositResponse): QueryDepositResponseProtoMsg; -}; -export declare const QueryDepositsRequest: { - typeUrl: string; - encode(message: QueryDepositsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsRequest; - fromPartial(object: Partial): QueryDepositsRequest; - fromAmino(object: QueryDepositsRequestAmino): QueryDepositsRequest; - toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino; - fromAminoMsg(object: QueryDepositsRequestAminoMsg): QueryDepositsRequest; - toAminoMsg(message: QueryDepositsRequest): QueryDepositsRequestAminoMsg; - fromProtoMsg(message: QueryDepositsRequestProtoMsg): QueryDepositsRequest; - toProto(message: QueryDepositsRequest): Uint8Array; - toProtoMsg(message: QueryDepositsRequest): QueryDepositsRequestProtoMsg; -}; -export declare const QueryDepositsResponse: { - typeUrl: string; - encode(message: QueryDepositsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDepositsResponse; - fromPartial(object: Partial): QueryDepositsResponse; - fromAmino(object: QueryDepositsResponseAmino): QueryDepositsResponse; - toAmino(message: QueryDepositsResponse): QueryDepositsResponseAmino; - fromAminoMsg(object: QueryDepositsResponseAminoMsg): QueryDepositsResponse; - toAminoMsg(message: QueryDepositsResponse): QueryDepositsResponseAminoMsg; - fromProtoMsg(message: QueryDepositsResponseProtoMsg): QueryDepositsResponse; - toProto(message: QueryDepositsResponse): Uint8Array; - toProtoMsg(message: QueryDepositsResponse): QueryDepositsResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.js b/packages/api/dist/cosmos/gov/v1beta1/query.js deleted file mode 100644 index 1ade0dbe..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.js +++ /dev/null @@ -1,1264 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = void 0; -//@ts-nocheck -const gov_1 = require("./gov"); -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const binary_1 = require("../../../binary"); -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: exports.QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - value: exports.QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: gov_1.Proposal.fromPartial({}) - }; -} -exports.QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposal !== undefined) { - gov_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = gov_1.Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? gov_1.Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = gov_1.Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? gov_1.Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: exports.QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - value: exports.QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest() { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -exports.QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = reader.int32(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsRequest", - value: exports.QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - value: exports.QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse() { - return { - proposals: [], - pagination: undefined - }; -} -exports.QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.proposals) { - gov_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(gov_1.Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => gov_1.Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? gov_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsResponse", - value: exports.QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - value: exports.QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -exports.QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteRequest", - value: exports.QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - value: exports.QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse() { - return { - vote: gov_1.Vote.fromPartial({}) - }; -} -exports.QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.vote !== undefined) { - gov_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = gov_1.Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? gov_1.Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = gov_1.Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? gov_1.Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteResponse", - value: exports.QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - value: exports.QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -exports.QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesRequest", - value: exports.QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - value: exports.QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse() { - return { - votes: [], - pagination: undefined - }; -} -exports.QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.votes) { - gov_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(gov_1.Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => gov_1.Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => gov_1.Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? gov_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesResponse", - value: exports.QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - value: exports.QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return { - paramsType: "" - }; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - votingParams: gov_1.VotingParams.fromPartial({}), - depositParams: gov_1.DepositParams.fromPartial({}), - tallyParams: gov_1.TallyParams.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.votingParams !== undefined) { - gov_1.VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - gov_1.DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - gov_1.TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = gov_1.VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = gov_1.DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? gov_1.VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? gov_1.DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? gov_1.TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = gov_1.VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = gov_1.DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = gov_1.TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_params = message.votingParams ? gov_1.VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? gov_1.DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? gov_1.TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest() { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -exports.QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositRequest", - value: exports.QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - value: exports.QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse() { - return { - deposit: gov_1.Deposit.fromPartial({}) - }; -} -exports.QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.deposit !== undefined) { - gov_1.Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = gov_1.Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? gov_1.Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = gov_1.Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.deposit = message.deposit ? gov_1.Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositResponse", - value: exports.QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - value: exports.QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -exports.QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositsRequest", - value: exports.QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - value: exports.QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse() { - return { - deposits: [], - pagination: undefined - }; -} -exports.QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.deposits) { - gov_1.Deposit.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(gov_1.Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => gov_1.Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? gov_1.Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositsResponse", - value: exports.QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDepositsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - value: exports.QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: gov_1.TallyResult.fromPartial({}) - }; -} -exports.QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tally !== undefined) { - gov_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = gov_1.TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? gov_1.TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = gov_1.TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? gov_1.TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts deleted file mode 100644 index e7e28345..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - proposal(params: QueryProposalRequest): Promise; - proposals(params: QueryProposalsRequest): Promise; - vote(params: QueryVoteRequest): Promise; - votes(params: QueryVotesRequest): Promise; - params(params: QueryParamsRequest): Promise; - deposit(params: QueryDepositRequest): Promise; - deposits(params: QueryDepositsRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js b/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js deleted file mode 100644 index 2fa4bb2a..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.lcd.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params) { - const options = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params) { - const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 8152da58..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the gRPC querier service for gov module */ -export interface Query { - /** Proposal queries proposal details based on ProposalID. */ - proposal(request: QueryProposalRequest): Promise; - /** Proposals queries all proposals based on given status. */ - proposals(request: QueryProposalsRequest): Promise; - /** Vote queries voted information based on proposalID, voterAddr. */ - vote(request: QueryVoteRequest): Promise; - /** Votes queries votes of a given proposal. */ - votes(request: QueryVotesRequest): Promise; - /** Params queries all parameters of the gov module. */ - params(request: QueryParamsRequest): Promise; - /** Deposit queries single deposit information based proposalID, depositAddr. */ - deposit(request: QueryDepositRequest): Promise; - /** Deposits queries all deposits of a single proposal. */ - deposits(request: QueryDepositsRequest): Promise; - /** TallyResult queries the tally of a proposal vote. */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js deleted file mode 100644 index ddecae75..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request) { - const data = query_1.QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); - return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); - } - proposals(request) { - const data = query_1.QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); - return promise.then(data => query_1.QueryProposalsResponse.decode(new binary_1.BinaryReader(data))); - } - vote(request) { - const data = query_1.QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); - return promise.then(data => query_1.QueryVoteResponse.decode(new binary_1.BinaryReader(data))); - } - votes(request) { - const data = query_1.QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); - return promise.then(data => query_1.QueryVotesResponse.decode(new binary_1.BinaryReader(data))); - } - params(request) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - deposit(request) { - const data = query_1.QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); - return promise.then(data => query_1.QueryDepositResponse.decode(new binary_1.BinaryReader(data))); - } - deposits(request) { - const data = query_1.QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); - return promise.then(data => query_1.QueryDepositsResponse.decode(new binary_1.BinaryReader(data))); - } - tallyResult(request) { - const data = query_1.QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); - return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request) { - return queryService.proposal(request); - }, - proposals(request) { - return queryService.proposals(request); - }, - vote(request) { - return queryService.vote(request); - }, - votes(request) { - return queryService.votes(request); - }, - params(request) { - return queryService.params(request); - }, - deposit(request) { - return queryService.deposit(request); - }, - deposits(request) { - return queryService.deposits(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts deleted file mode 100644 index c27154bf..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const AminoConverter: { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: (message: MsgVoteWeighted) => import("./tx").MsgVoteWeightedAmino; - fromAmino: (object: import("./tx").MsgVoteWeightedAmino) => MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: (message: MsgDeposit) => import("./tx").MsgDepositAmino; - fromAmino: (object: import("./tx").MsgDepositAmino) => MsgDeposit; - }; -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js b/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js deleted file mode 100644 index 70562627..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.amino.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/MsgSubmitProposal", - toAmino: tx_1.MsgSubmitProposal.toAmino, - fromAmino: tx_1.MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: "cosmos-sdk/MsgVote", - toAmino: tx_1.MsgVote.toAmino, - fromAmino: tx_1.MsgVote.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/MsgVoteWeighted", - toAmino: tx_1.MsgVoteWeighted.toAmino, - fromAmino: tx_1.MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: "cosmos-sdk/MsgDeposit", - toAmino: tx_1.MsgDeposit.toAmino, - fromAmino: tx_1.MsgDeposit.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts deleted file mode 100644 index d05b9763..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.d.ts +++ /dev/null @@ -1,322 +0,0 @@ -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - content?: TextProposal | Any | undefined; - initialDeposit: Coin[]; - proposer: string; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; - value: Uint8Array; -} -export type MsgSubmitProposalEncoded = Omit & { - content?: TextProposalProtoMsg | AnyProtoMsg | undefined; -}; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalAmino { - content?: AnyAmino; - initial_deposit?: CoinAmino[]; - proposer?: string; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - content?: TextProposalSDKType | AnySDKType | undefined; - initial_deposit: CoinSDKType[]; - proposer: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - proposal_id: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: bigint; - voter: string; - option: VoteOption; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVote"; - value: Uint8Array; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteAmino { - proposal_id?: string; - voter?: string; - option?: VoteOption; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeighted { - proposalId: bigint; - voter: string; - options: WeightedVoteOption[]; -} -export interface MsgVoteWeightedProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; - value: Uint8Array; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedAmino { - proposal_id: string; - voter?: string; - options?: WeightedVoteOptionAmino[]; -} -export interface MsgVoteWeightedAminoMsg { - type: "cosmos-sdk/MsgVoteWeighted"; - value: MsgVoteWeightedAmino; -} -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedSDKType { - proposal_id: bigint; - voter: string; - options: WeightedVoteOptionSDKType[]; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponse { -} -export interface MsgVoteWeightedResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - value: Uint8Array; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseAmino { -} -export interface MsgVoteWeightedResponseAminoMsg { - type: "cosmos-sdk/MsgVoteWeightedResponse"; - value: MsgVoteWeightedResponseAmino; -} -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - */ -export interface MsgVoteWeightedResponseSDKType { -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: bigint; - depositor: string; - amount: Coin[]; -} -export interface MsgDepositProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; - value: Uint8Array; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositAmino { - proposal_id: string; - depositor?: string; - amount?: CoinAmino[]; -} -export interface MsgDepositAminoMsg { - type: "cosmos-sdk/MsgDeposit"; - value: MsgDepositAmino; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: bigint; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse { -} -export interface MsgDepositResponseProtoMsg { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; - value: Uint8Array; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseAmino { -} -export interface MsgDepositResponseAminoMsg { - type: "cosmos-sdk/MsgDepositResponse"; - value: MsgDepositResponseAmino; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType { -} -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgVoteWeighted: { - typeUrl: string; - encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; - fromPartial(object: Partial): MsgVoteWeighted; - fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted; - toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino; - fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted; - toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg; - fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted; - toProto(message: MsgVoteWeighted): Uint8Array; - toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg; -}; -export declare const MsgVoteWeightedResponse: { - typeUrl: string; - encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; - fromPartial(_: Partial): MsgVoteWeightedResponse; - fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; - toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; - fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; - toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg; - fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; - toProto(message: MsgVoteWeightedResponse): Uint8Array; - toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; -}; -export declare const MsgDeposit: { - typeUrl: string; - encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; - fromPartial(object: Partial): MsgDeposit; - fromAmino(object: MsgDepositAmino): MsgDeposit; - toAmino(message: MsgDeposit): MsgDepositAmino; - fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit; - toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg; - fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit; - toProto(message: MsgDeposit): Uint8Array; - toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg; -}; -export declare const MsgDepositResponse: { - typeUrl: string; - encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; - fromPartial(_: Partial): MsgDepositResponse; - fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; - toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; - fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; - toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg; - fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; - toProto(message: MsgDepositResponse): Uint8Array; - toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; -}; -export declare const Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => TextProposal | Any; -export declare const Content_FromAmino: (content: AnyAmino) => Any; -export declare const Content_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.js b/packages/api/dist/cosmos/gov/v1beta1/tx.js deleted file mode 100644 index b808544d..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.js +++ /dev/null @@ -1,661 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Content_ToAmino = exports.Content_FromAmino = exports.Content_InterfaceDecoder = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const coin_1 = require("../../base/v1beta1/coin"); -const gov_1 = require("./gov"); -const binary_1 = require("../../../binary"); -function createBaseMsgSubmitProposal() { - return { - content: undefined, - initialDeposit: [], - proposer: "" - }; -} -exports.MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.content !== undefined) { - any_1.Any.encode(message.content, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = (0, exports.Content_InterfaceDecoder)(reader); - break; - case 2: - message.initialDeposit.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.content = object.content !== undefined && object.content !== null ? any_1.Any.fromPartial(object.content) : undefined; - message.initialDeposit = object.initialDeposit?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - if (object.content !== undefined && object.content !== null) { - message.content = (0, exports.Content_FromAmino)(object.content); - } - message.initialDeposit = object.initial_deposit?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content = message.content ? (0, exports.Content_ToAmino)(message.content) : undefined; - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposal", - value: exports.MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: exports.MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -exports.MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0 - }; -} -exports.MsgVote = { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVote", - value: exports.MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVote.decode(message.value); - }, - toProto(message) { - return exports.MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: exports.MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -exports.MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: exports.MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - value: exports.MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted() { - return { - proposalId: BigInt(0), - voter: "", - options: [] - }; -} -exports.MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - gov_1.WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(gov_1.WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => gov_1.WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? gov_1.WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteWeighted", - value: exports.MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteWeighted.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: exports.MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse() { - return {}; -} -exports.MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteWeightedResponse", - value: exports.MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - value: exports.MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -exports.MsgDeposit = { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDeposit", - value: exports.MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDeposit.decode(message.value); - }, - toProto(message) { - return exports.MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: exports.MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse() { - return {}; -} -exports.MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDepositResponse", - value: exports.MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDepositResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - value: exports.MsgDepositResponse.encode(message).finish() - }; - } -}; -const Content_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return gov_1.TextProposal.decode(data.value); - default: - return data; - } -}; -exports.Content_InterfaceDecoder = Content_InterfaceDecoder; -const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: gov_1.TextProposal.encode(gov_1.TextProposal.fromPartial(gov_1.TextProposal.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.Content_FromAmino = Content_FromAmino; -const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: gov_1.TextProposal.toAmino(gov_1.TextProposal.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.Content_ToAmino = Content_ToAmino; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts deleted file mode 100644 index 9f199486..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js b/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js deleted file mode 100644 index c71ce516..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.registry.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.gov.v1beta1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", tx_1.MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", tx_1.MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", tx_1.MsgDeposit]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: tx_1.MsgVote.encode(value).finish() - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: tx_1.MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: tx_1.MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value - }; - } - }, - fromPartial: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: tx_1.MsgVote.fromPartial(value) - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: tx_1.MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: tx_1.MsgDeposit.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 0fc403bc..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** SubmitProposal defines a method to create new proposal given a content. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** Vote defines a method to add a vote on a specific proposal. */ - vote(request: MsgVote): Promise; - /** - * VoteWeighted defines a method to add a weighted vote on a specific proposal. - * - * Since: cosmos-sdk 0.43 - */ - voteWeighted(request: MsgVoteWeighted): Promise; - /** Deposit defines a method to add deposit on a specific proposal. */ - deposit(request: MsgDeposit): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitProposal(request: MsgSubmitProposal): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} diff --git a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 53f7930b..00000000 --- a/packages/api/dist/cosmos/gov/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request) { - const data = tx_1.MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); - return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); - } - vote(request) { - const data = tx_1.MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); - return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); - } - voteWeighted(request) { - const data = tx_1.MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); - return promise.then(data => tx_1.MsgVoteWeightedResponse.decode(new binary_1.BinaryReader(data))); - } - deposit(request) { - const data = tx_1.MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); - return promise.then(data => tx_1.MsgDepositResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/group/v1/events.d.ts b/packages/api/dist/cosmos/group/v1/events.d.ts deleted file mode 100644 index a9478ba7..00000000 --- a/packages/api/dist/cosmos/group/v1/events.d.ts +++ /dev/null @@ -1,332 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroup"; - value: Uint8Array; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventCreateGroupAminoMsg { - type: "cosmos-sdk/EventCreateGroup"; - value: EventCreateGroupAmino; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: bigint; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface EventUpdateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroup"; - value: Uint8Array; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface EventUpdateGroupAminoMsg { - type: "cosmos-sdk/EventUpdateGroup"; - value: EventUpdateGroupAmino; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: bigint; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; - value: Uint8Array; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventCreateGroupPolicy"; - value: EventCreateGroupPolicyAmino; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -export interface EventUpdateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; - value: Uint8Array; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicyAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface EventUpdateGroupPolicyAminoMsg { - type: "cosmos-sdk/EventUpdateGroupPolicy"; - value: EventUpdateGroupPolicyAmino; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventSubmitProposal"; - value: Uint8Array; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventSubmitProposalAminoMsg { - type: "cosmos-sdk/EventSubmitProposal"; - value: EventSubmitProposalAmino; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: bigint; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; - value: Uint8Array; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventWithdrawProposalAminoMsg { - type: "cosmos-sdk/EventWithdrawProposal"; - value: EventWithdrawProposalAmino; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: bigint; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface EventVoteProtoMsg { - typeUrl: "/cosmos.group.v1.EventVote"; - value: Uint8Array; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface EventVoteAminoMsg { - type: "cosmos-sdk/EventVote"; - value: EventVoteAmino; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: bigint; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: bigint; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs: string; -} -export interface EventExecProtoMsg { - typeUrl: "/cosmos.group.v1.EventExec"; - value: Uint8Array; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecAmino { - /** proposal_id is the unique ID of the proposal. */ - proposal_id?: string; - /** result is the proposal execution result. */ - result?: ProposalExecutorResult; - /** logs contains error logs in case the execution result is FAILURE. */ - logs?: string; -} -export interface EventExecAminoMsg { - type: "cosmos-sdk/EventExec"; - value: EventExecAmino; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: bigint; - result: ProposalExecutorResult; - logs: string; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** address is the account address of the group member. */ - address: string; -} -export interface EventLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.EventLeaveGroup"; - value: Uint8Array; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** address is the account address of the group member. */ - address?: string; -} -export interface EventLeaveGroupAminoMsg { - type: "cosmos-sdk/EventLeaveGroup"; - value: EventLeaveGroupAmino; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: bigint; - address: string; -} -export declare const EventCreateGroup: { - typeUrl: string; - encode(message: EventCreateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup; - fromPartial(object: Partial): EventCreateGroup; - fromAmino(object: EventCreateGroupAmino): EventCreateGroup; - toAmino(message: EventCreateGroup): EventCreateGroupAmino; - fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup; - toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg; - fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup; - toProto(message: EventCreateGroup): Uint8Array; - toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg; -}; -export declare const EventUpdateGroup: { - typeUrl: string; - encode(message: EventUpdateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup; - fromPartial(object: Partial): EventUpdateGroup; - fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup; - toAmino(message: EventUpdateGroup): EventUpdateGroupAmino; - fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup; - toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg; - fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup; - toProto(message: EventUpdateGroup): Uint8Array; - toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg; -}; -export declare const EventCreateGroupPolicy: { - typeUrl: string; - encode(message: EventCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy; - fromPartial(object: Partial): EventCreateGroupPolicy; - fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy; - toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino; - fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy; - toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg; - fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy; - toProto(message: EventCreateGroupPolicy): Uint8Array; - toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg; -}; -export declare const EventUpdateGroupPolicy: { - typeUrl: string; - encode(message: EventUpdateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy; - fromPartial(object: Partial): EventUpdateGroupPolicy; - fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy; - toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino; - fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy; - toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg; - fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy; - toProto(message: EventUpdateGroupPolicy): Uint8Array; - toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg; -}; -export declare const EventSubmitProposal: { - typeUrl: string; - encode(message: EventSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal; - fromPartial(object: Partial): EventSubmitProposal; - fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal; - toAmino(message: EventSubmitProposal): EventSubmitProposalAmino; - fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal; - toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg; - fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal; - toProto(message: EventSubmitProposal): Uint8Array; - toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg; -}; -export declare const EventWithdrawProposal: { - typeUrl: string; - encode(message: EventWithdrawProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal; - fromPartial(object: Partial): EventWithdrawProposal; - fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal; - toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino; - fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal; - toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg; - fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal; - toProto(message: EventWithdrawProposal): Uint8Array; - toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg; -}; -export declare const EventVote: { - typeUrl: string; - encode(message: EventVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventVote; - fromPartial(object: Partial): EventVote; - fromAmino(object: EventVoteAmino): EventVote; - toAmino(message: EventVote): EventVoteAmino; - fromAminoMsg(object: EventVoteAminoMsg): EventVote; - toAminoMsg(message: EventVote): EventVoteAminoMsg; - fromProtoMsg(message: EventVoteProtoMsg): EventVote; - toProto(message: EventVote): Uint8Array; - toProtoMsg(message: EventVote): EventVoteProtoMsg; -}; -export declare const EventExec: { - typeUrl: string; - encode(message: EventExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventExec; - fromPartial(object: Partial): EventExec; - fromAmino(object: EventExecAmino): EventExec; - toAmino(message: EventExec): EventExecAmino; - fromAminoMsg(object: EventExecAminoMsg): EventExec; - toAminoMsg(message: EventExec): EventExecAminoMsg; - fromProtoMsg(message: EventExecProtoMsg): EventExec; - toProto(message: EventExec): Uint8Array; - toProtoMsg(message: EventExec): EventExecProtoMsg; -}; -export declare const EventLeaveGroup: { - typeUrl: string; - encode(message: EventLeaveGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup; - fromPartial(object: Partial): EventLeaveGroup; - fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup; - toAmino(message: EventLeaveGroup): EventLeaveGroupAmino; - fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup; - toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg; - fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup; - toProto(message: EventLeaveGroup): Uint8Array; - toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg; -}; diff --git a/packages/api/dist/cosmos/group/v1/events.js b/packages/api/dist/cosmos/group/v1/events.js deleted file mode 100644 index fe6bdf8f..00000000 --- a/packages/api/dist/cosmos/group/v1/events.js +++ /dev/null @@ -1,661 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = void 0; -const binary_1 = require("../../../binary"); -function createBaseEventCreateGroup() { - return { - groupId: BigInt(0) - }; -} -exports.EventCreateGroup = { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventCreateGroup", - value: exports.EventCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventCreateGroup.decode(message.value); - }, - toProto(message) { - return exports.EventCreateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - value: exports.EventCreateGroup.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroup() { - return { - groupId: BigInt(0) - }; -} -exports.EventUpdateGroup = { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventUpdateGroup", - value: exports.EventUpdateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventUpdateGroup.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - value: exports.EventUpdateGroup.encode(message).finish() - }; - } -}; -function createBaseEventCreateGroupPolicy() { - return { - address: "" - }; -} -exports.EventCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventCreateGroupPolicy", - value: exports.EventCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventCreateGroupPolicy.decode(message.value); - }, - toProto(message) { - return exports.EventCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - value: exports.EventCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroupPolicy() { - return { - address: "" - }; -} -exports.EventUpdateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventUpdateGroupPolicy", - value: exports.EventUpdateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventUpdateGroupPolicy.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - value: exports.EventUpdateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventSubmitProposal() { - return { - proposalId: BigInt(0) - }; -} -exports.EventSubmitProposal = { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSubmitProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventSubmitProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventSubmitProposal", - value: exports.EventSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventSubmitProposal.decode(message.value); - }, - toProto(message) { - return exports.EventSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - value: exports.EventSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseEventWithdrawProposal() { - return { - proposalId: BigInt(0) - }; -} -exports.EventWithdrawProposal = { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventWithdrawProposal", - value: exports.EventWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventWithdrawProposal.decode(message.value); - }, - toProto(message) { - return exports.EventWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - value: exports.EventWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseEventVote() { - return { - proposalId: BigInt(0) - }; -} -exports.EventVote = { - typeUrl: "/cosmos.group.v1.EventVote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventVote", - value: exports.EventVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventVote.decode(message.value); - }, - toProto(message) { - return exports.EventVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventVote", - value: exports.EventVote.encode(message).finish() - }; - } -}; -function createBaseEventExec() { - return { - proposalId: BigInt(0), - result: 0, - logs: "" - }; -} -exports.EventExec = { - typeUrl: "/cosmos.group.v1.EventExec", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - if (message.logs !== "") { - writer.uint32(26).string(message.logs); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.logs = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.result = object.result ?? 0; - message.logs = object.logs ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - if (object.logs !== undefined && object.logs !== null) { - message.logs = object.logs; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.result = message.result === 0 ? undefined : message.result; - obj.logs = message.logs === "" ? undefined : message.logs; - return obj; - }, - fromAminoMsg(object) { - return exports.EventExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventExec", - value: exports.EventExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventExec.decode(message.value); - }, - toProto(message) { - return exports.EventExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventExec", - value: exports.EventExec.encode(message).finish() - }; - } -}; -function createBaseEventLeaveGroup() { - return { - groupId: BigInt(0), - address: "" - }; -} -exports.EventLeaveGroup = { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventLeaveGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventLeaveGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.EventLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventLeaveGroup", - value: exports.EventLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.EventLeaveGroup.decode(message.value); - }, - toProto(message) { - return exports.EventLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - value: exports.EventLeaveGroup.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/group/v1/genesis.d.ts b/packages/api/dist/cosmos/group/v1/genesis.d.ts deleted file mode 100644 index 3e1b9124..00000000 --- a/packages/api/dist/cosmos/group/v1/genesis.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: bigint; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: bigint; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: bigint; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.group.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateAmino { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - group_seq?: string; - /** groups is the list of groups info. */ - groups?: GroupInfoAmino[]; - /** group_members is the list of groups members. */ - group_members?: GroupMemberAmino[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - group_policy_seq?: string; - /** group_policies is the list of group policies info. */ - group_policies?: GroupPolicyInfoAmino[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposal_seq?: string; - /** proposals is the list of proposals. */ - proposals?: ProposalAmino[]; - /** votes is the list of votes. */ - votes?: VoteAmino[]; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: bigint; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: bigint; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: bigint; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/group/v1/genesis.js b/packages/api/dist/cosmos/group/v1/genesis.js deleted file mode 100644 index be408751..00000000 --- a/packages/api/dist/cosmos/group/v1/genesis.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - groupSeq: BigInt(0), - groups: [], - groupMembers: [], - groupPolicySeq: BigInt(0), - groupPolicies: [], - proposalSeq: BigInt(0), - proposals: [], - votes: [] - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.group.v1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupSeq !== BigInt(0)) { - writer.uint32(8).uint64(message.groupSeq); - } - for (const v of message.groups) { - types_1.GroupInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.groupMembers) { - types_1.GroupMember.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.groupPolicySeq !== BigInt(0)) { - writer.uint32(32).uint64(message.groupPolicySeq); - } - for (const v of message.groupPolicies) { - types_1.GroupPolicyInfo.encode(v, writer.uint32(42).fork()).ldelim(); - } - if (message.proposalSeq !== BigInt(0)) { - writer.uint32(48).uint64(message.proposalSeq); - } - for (const v of message.proposals) { - types_1.Proposal.encode(v, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.votes) { - types_1.Vote.encode(v, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupSeq = reader.uint64(); - break; - case 2: - message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); - break; - case 3: - message.groupMembers.push(types_1.GroupMember.decode(reader, reader.uint32())); - break; - case 4: - message.groupPolicySeq = reader.uint64(); - break; - case 5: - message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 6: - message.proposalSeq = reader.uint64(); - break; - case 7: - message.proposals.push(types_1.Proposal.decode(reader, reader.uint32())); - break; - case 8: - message.votes.push(types_1.Vote.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); - message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; - message.groupMembers = object.groupMembers?.map(e => types_1.GroupMember.fromPartial(e)) || []; - message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); - message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; - message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); - message.proposals = object.proposals?.map(e => types_1.Proposal.fromPartial(e)) || []; - message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.group_seq !== undefined && object.group_seq !== null) { - message.groupSeq = BigInt(object.group_seq); - } - message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; - message.groupMembers = object.group_members?.map(e => types_1.GroupMember.fromAmino(e)) || []; - if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { - message.groupPolicySeq = BigInt(object.group_policy_seq); - } - message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; - if (object.proposal_seq !== undefined && object.proposal_seq !== null) { - message.proposalSeq = BigInt(object.proposal_seq); - } - message.proposals = object.proposals?.map(e => types_1.Proposal.fromAmino(e)) || []; - message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; - if (message.groups) { - obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - if (message.groupMembers) { - obj.group_members = message.groupMembers.map(e => e ? types_1.GroupMember.toAmino(e) : undefined); - } - else { - obj.group_members = message.groupMembers; - } - obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? types_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/group/v1/query.d.ts b/packages/api/dist/cosmos/group/v1/query.d.ts deleted file mode 100644 index 3caeade1..00000000 --- a/packages/api/dist/cosmos/group/v1/query.d.ts +++ /dev/null @@ -1,998 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupInfoAmino, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoAmino, GroupPolicyInfoSDKType, GroupMember, GroupMemberAmino, GroupMemberSDKType, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface QueryGroupInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; - value: Uint8Array; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface QueryGroupInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupInfoRequest"; - value: QueryGroupInfoRequestAmino; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestSDKType { - group_id: bigint; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponse { - /** info is the GroupInfo for the group. */ - info?: GroupInfo; -} -export interface QueryGroupInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; - value: Uint8Array; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseAmino { - /** info is the GroupInfo for the group. */ - info?: GroupInfoAmino; -} -export interface QueryGroupInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupInfoResponse"; - value: QueryGroupInfoResponseAmino; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseSDKType { - info?: GroupInfoSDKType; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequest { - /** address is the account address of the group policy. */ - address: string; -} -export interface QueryGroupPolicyInfoRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestAmino { - /** address is the account address of the group policy. */ - address?: string; -} -export interface QueryGroupPolicyInfoRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest"; - value: QueryGroupPolicyInfoRequestAmino; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestSDKType { - address: string; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponse { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfo; -} -export interface QueryGroupPolicyInfoResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; - value: Uint8Array; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseAmino { - /** info is the GroupPolicyInfo for the group policy. */ - info?: GroupPolicyInfoAmino; -} -export interface QueryGroupPolicyInfoResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse"; - value: QueryGroupPolicyInfoResponseAmino; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseSDKType { - info?: GroupPolicyInfoSDKType; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequest { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupMembersRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; - value: Uint8Array; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupMembersRequestAminoMsg { - type: "cosmos-sdk/QueryGroupMembersRequest"; - value: QueryGroupMembersRequestAmino; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponse { - /** members are the members of the group with given group_id. */ - members: GroupMember[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; - value: Uint8Array; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseAmino { - /** members are the members of the group with given group_id. */ - members?: GroupMemberAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupMembersResponseAminoMsg { - type: "cosmos-sdk/QueryGroupMembersResponse"; - value: QueryGroupMembersResponseAmino; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseSDKType { - members: GroupMemberSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequest { - /** admin is the account address of a group's admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestAmino { - /** admin is the account address of a group's admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminRequest"; - value: QueryGroupsByAdminRequestAmino; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponse { - /** groups are the groups info with the provided admin. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseAmino { - /** groups are the groups info with the provided admin. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByAdminResponse"; - value: QueryGroupsByAdminResponseAmino; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequest { - /** group_id is the unique ID of the group policy's group. */ - groupId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByGroupRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestAmino { - /** group_id is the unique ID of the group policy's group. */ - group_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByGroupRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest"; - value: QueryGroupPoliciesByGroupRequestAmino; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponse { - /** group_policies are the group policies info associated with the provided group. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseAmino { - /** group_policies are the group policies info associated with the provided group. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByGroupResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse"; - value: QueryGroupPoliciesByGroupResponseAmino; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequest { - /** admin is the admin address of the group policy. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupPoliciesByAdminRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestAmino { - /** admin is the admin address of the group policy. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupPoliciesByAdminRequestAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest"; - value: QueryGroupPoliciesByAdminRequestAmino; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponse { - /** group_policies are the group policies info with provided admin. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupPoliciesByAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; - value: Uint8Array; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseAmino { - /** group_policies are the group policies info with provided admin. */ - group_policies?: GroupPolicyInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupPoliciesByAdminResponseAminoMsg { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse"; - value: QueryGroupPoliciesByAdminResponseAmino; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; -} -export interface QueryProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalRequest"; - value: Uint8Array; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; -} -export interface QueryProposalRequestAminoMsg { - type: "cosmos-sdk/QueryProposalRequest"; - value: QueryProposalRequestAmino; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestSDKType { - proposal_id: bigint; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponse { - /** proposal is the proposal info. */ - proposal?: Proposal; -} -export interface QueryProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalResponse"; - value: Uint8Array; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseAmino { - /** proposal is the proposal info. */ - proposal?: ProposalAmino; -} -export interface QueryProposalResponseAminoMsg { - type: "cosmos-sdk/QueryProposalResponse"; - value: QueryProposalResponseAmino; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseSDKType { - proposal?: ProposalSDKType; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequest { - /** address is the account address of the group policy related to proposals. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProposalsByGroupPolicyRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestAmino { - /** address is the account address of the group policy related to proposals. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProposalsByGroupPolicyRequestAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest"; - value: QueryProposalsByGroupPolicyRequestAmino; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponse { - /** proposals are the proposals with given group policy. */ - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProposalsByGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; - value: Uint8Array; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseAmino { - /** proposals are the proposals with given group policy. */ - proposals?: ProposalAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProposalsByGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse"; - value: QueryProposalsByGroupPolicyResponseAmino; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseSDKType { - proposals: ProposalSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** voter is a proposal voter account address. */ - voter: string; -} -export interface QueryVoteByProposalVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** voter is a proposal voter account address. */ - voter?: string; -} -export interface QueryVoteByProposalVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest"; - value: QueryVoteByProposalVoterRequestAmino; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: bigint; - voter: string; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponse { - /** vote is the vote with given proposal_id and voter. */ - vote?: Vote; -} -export interface QueryVoteByProposalVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; - value: Uint8Array; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseAmino { - /** vote is the vote with given proposal_id and voter. */ - vote?: VoteAmino; -} -export interface QueryVoteByProposalVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse"; - value: QueryVoteByProposalVoterResponseAmino; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseSDKType { - vote?: VoteSDKType; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: bigint; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByProposalRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; - value: Uint8Array; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestAmino { - /** proposal_id is the unique ID of a proposal. */ - proposal_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByProposalRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalRequest"; - value: QueryVotesByProposalRequestAmino; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestSDKType { - proposal_id: bigint; - pagination?: PageRequestSDKType; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponse { - /** votes are the list of votes for given proposal_id. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; - value: Uint8Array; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseAmino { - /** votes are the list of votes for given proposal_id. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByProposalResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByProposalResponse"; - value: QueryVotesByProposalResponseAmino; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequest { - /** voter is a proposal voter account address. */ - voter: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryVotesByVoterRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; - value: Uint8Array; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestAmino { - /** voter is a proposal voter account address. */ - voter?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryVotesByVoterRequestAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterRequest"; - value: QueryVotesByVoterRequestAmino; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestSDKType { - voter: string; - pagination?: PageRequestSDKType; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponse { - /** votes are the list of votes by given voter. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryVotesByVoterResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; - value: Uint8Array; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseAmino { - /** votes are the list of votes by given voter. */ - votes?: VoteAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryVotesByVoterResponseAminoMsg { - type: "cosmos-sdk/QueryVotesByVoterResponse"; - value: QueryVotesByVoterResponseAmino; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseSDKType { - votes: VoteSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequest { - /** address is the group member address. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryGroupsByMemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; - value: Uint8Array; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestAmino { - /** address is the group member address. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryGroupsByMemberRequestAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberRequest"; - value: QueryGroupsByMemberRequestAmino; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponse { - /** groups are the groups info with the provided group member. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryGroupsByMemberResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; - value: Uint8Array; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseAmino { - /** groups are the groups info with the provided group member. */ - groups?: GroupInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryGroupsByMemberResponseAminoMsg { - type: "cosmos-sdk/QueryGroupsByMemberResponse"; - value: QueryGroupsByMemberResponseAmino; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseSDKType { - groups: GroupInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequest { - /** proposal_id is the unique id of a proposal. */ - proposalId: bigint; -} -export interface QueryTallyResultRequestProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; - value: Uint8Array; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestAmino { - /** proposal_id is the unique id of a proposal. */ - proposal_id?: string; -} -export interface QueryTallyResultRequestAminoMsg { - type: "cosmos-sdk/QueryTallyResultRequest"; - value: QueryTallyResultRequestAmino; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: bigint; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -export interface QueryTallyResultResponseProtoMsg { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; - value: Uint8Array; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseAmino { - /** tally defines the requested tally. */ - tally?: TallyResultAmino; -} -export interface QueryTallyResultResponseAminoMsg { - type: "cosmos-sdk/QueryTallyResultResponse"; - value: QueryTallyResultResponseAmino; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryGroupInfoRequest: { - typeUrl: string; - encode(message: QueryGroupInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest; - fromPartial(object: Partial): QueryGroupInfoRequest; - fromAmino(object: QueryGroupInfoRequestAmino): QueryGroupInfoRequest; - toAmino(message: QueryGroupInfoRequest): QueryGroupInfoRequestAmino; - fromAminoMsg(object: QueryGroupInfoRequestAminoMsg): QueryGroupInfoRequest; - toAminoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestAminoMsg; - fromProtoMsg(message: QueryGroupInfoRequestProtoMsg): QueryGroupInfoRequest; - toProto(message: QueryGroupInfoRequest): Uint8Array; - toProtoMsg(message: QueryGroupInfoRequest): QueryGroupInfoRequestProtoMsg; -}; -export declare const QueryGroupInfoResponse: { - typeUrl: string; - encode(message: QueryGroupInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse; - fromPartial(object: Partial): QueryGroupInfoResponse; - fromAmino(object: QueryGroupInfoResponseAmino): QueryGroupInfoResponse; - toAmino(message: QueryGroupInfoResponse): QueryGroupInfoResponseAmino; - fromAminoMsg(object: QueryGroupInfoResponseAminoMsg): QueryGroupInfoResponse; - toAminoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseAminoMsg; - fromProtoMsg(message: QueryGroupInfoResponseProtoMsg): QueryGroupInfoResponse; - toProto(message: QueryGroupInfoResponse): Uint8Array; - toProtoMsg(message: QueryGroupInfoResponse): QueryGroupInfoResponseProtoMsg; -}; -export declare const QueryGroupPolicyInfoRequest: { - typeUrl: string; - encode(message: QueryGroupPolicyInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; - fromPartial(object: Partial): QueryGroupPolicyInfoRequest; - fromAmino(object: QueryGroupPolicyInfoRequestAmino): QueryGroupPolicyInfoRequest; - toAmino(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAmino; - fromAminoMsg(object: QueryGroupPolicyInfoRequestAminoMsg): QueryGroupPolicyInfoRequest; - toAminoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestAminoMsg; - fromProtoMsg(message: QueryGroupPolicyInfoRequestProtoMsg): QueryGroupPolicyInfoRequest; - toProto(message: QueryGroupPolicyInfoRequest): Uint8Array; - toProtoMsg(message: QueryGroupPolicyInfoRequest): QueryGroupPolicyInfoRequestProtoMsg; -}; -export declare const QueryGroupPolicyInfoResponse: { - typeUrl: string; - encode(message: QueryGroupPolicyInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; - fromPartial(object: Partial): QueryGroupPolicyInfoResponse; - fromAmino(object: QueryGroupPolicyInfoResponseAmino): QueryGroupPolicyInfoResponse; - toAmino(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAmino; - fromAminoMsg(object: QueryGroupPolicyInfoResponseAminoMsg): QueryGroupPolicyInfoResponse; - toAminoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseAminoMsg; - fromProtoMsg(message: QueryGroupPolicyInfoResponseProtoMsg): QueryGroupPolicyInfoResponse; - toProto(message: QueryGroupPolicyInfoResponse): Uint8Array; - toProtoMsg(message: QueryGroupPolicyInfoResponse): QueryGroupPolicyInfoResponseProtoMsg; -}; -export declare const QueryGroupMembersRequest: { - typeUrl: string; - encode(message: QueryGroupMembersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest; - fromPartial(object: Partial): QueryGroupMembersRequest; - fromAmino(object: QueryGroupMembersRequestAmino): QueryGroupMembersRequest; - toAmino(message: QueryGroupMembersRequest): QueryGroupMembersRequestAmino; - fromAminoMsg(object: QueryGroupMembersRequestAminoMsg): QueryGroupMembersRequest; - toAminoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestAminoMsg; - fromProtoMsg(message: QueryGroupMembersRequestProtoMsg): QueryGroupMembersRequest; - toProto(message: QueryGroupMembersRequest): Uint8Array; - toProtoMsg(message: QueryGroupMembersRequest): QueryGroupMembersRequestProtoMsg; -}; -export declare const QueryGroupMembersResponse: { - typeUrl: string; - encode(message: QueryGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse; - fromPartial(object: Partial): QueryGroupMembersResponse; - fromAmino(object: QueryGroupMembersResponseAmino): QueryGroupMembersResponse; - toAmino(message: QueryGroupMembersResponse): QueryGroupMembersResponseAmino; - fromAminoMsg(object: QueryGroupMembersResponseAminoMsg): QueryGroupMembersResponse; - toAminoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseAminoMsg; - fromProtoMsg(message: QueryGroupMembersResponseProtoMsg): QueryGroupMembersResponse; - toProto(message: QueryGroupMembersResponse): Uint8Array; - toProtoMsg(message: QueryGroupMembersResponse): QueryGroupMembersResponseProtoMsg; -}; -export declare const QueryGroupsByAdminRequest: { - typeUrl: string; - encode(message: QueryGroupsByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest; - fromPartial(object: Partial): QueryGroupsByAdminRequest; - fromAmino(object: QueryGroupsByAdminRequestAmino): QueryGroupsByAdminRequest; - toAmino(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAmino; - fromAminoMsg(object: QueryGroupsByAdminRequestAminoMsg): QueryGroupsByAdminRequest; - toAminoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestAminoMsg; - fromProtoMsg(message: QueryGroupsByAdminRequestProtoMsg): QueryGroupsByAdminRequest; - toProto(message: QueryGroupsByAdminRequest): Uint8Array; - toProtoMsg(message: QueryGroupsByAdminRequest): QueryGroupsByAdminRequestProtoMsg; -}; -export declare const QueryGroupsByAdminResponse: { - typeUrl: string; - encode(message: QueryGroupsByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse; - fromPartial(object: Partial): QueryGroupsByAdminResponse; - fromAmino(object: QueryGroupsByAdminResponseAmino): QueryGroupsByAdminResponse; - toAmino(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAmino; - fromAminoMsg(object: QueryGroupsByAdminResponseAminoMsg): QueryGroupsByAdminResponse; - toAminoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseAminoMsg; - fromProtoMsg(message: QueryGroupsByAdminResponseProtoMsg): QueryGroupsByAdminResponse; - toProto(message: QueryGroupsByAdminResponse): Uint8Array; - toProtoMsg(message: QueryGroupsByAdminResponse): QueryGroupsByAdminResponseProtoMsg; -}; -export declare const QueryGroupPoliciesByGroupRequest: { - typeUrl: string; - encode(message: QueryGroupPoliciesByGroupRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; - fromPartial(object: Partial): QueryGroupPoliciesByGroupRequest; - fromAmino(object: QueryGroupPoliciesByGroupRequestAmino): QueryGroupPoliciesByGroupRequest; - toAmino(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAmino; - fromAminoMsg(object: QueryGroupPoliciesByGroupRequestAminoMsg): QueryGroupPoliciesByGroupRequest; - toAminoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByGroupRequestProtoMsg): QueryGroupPoliciesByGroupRequest; - toProto(message: QueryGroupPoliciesByGroupRequest): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByGroupRequest): QueryGroupPoliciesByGroupRequestProtoMsg; -}; -export declare const QueryGroupPoliciesByGroupResponse: { - typeUrl: string; - encode(message: QueryGroupPoliciesByGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; - fromPartial(object: Partial): QueryGroupPoliciesByGroupResponse; - fromAmino(object: QueryGroupPoliciesByGroupResponseAmino): QueryGroupPoliciesByGroupResponse; - toAmino(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAmino; - fromAminoMsg(object: QueryGroupPoliciesByGroupResponseAminoMsg): QueryGroupPoliciesByGroupResponse; - toAminoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByGroupResponseProtoMsg): QueryGroupPoliciesByGroupResponse; - toProto(message: QueryGroupPoliciesByGroupResponse): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByGroupResponse): QueryGroupPoliciesByGroupResponseProtoMsg; -}; -export declare const QueryGroupPoliciesByAdminRequest: { - typeUrl: string; - encode(message: QueryGroupPoliciesByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; - fromPartial(object: Partial): QueryGroupPoliciesByAdminRequest; - fromAmino(object: QueryGroupPoliciesByAdminRequestAmino): QueryGroupPoliciesByAdminRequest; - toAmino(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAmino; - fromAminoMsg(object: QueryGroupPoliciesByAdminRequestAminoMsg): QueryGroupPoliciesByAdminRequest; - toAminoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByAdminRequestProtoMsg): QueryGroupPoliciesByAdminRequest; - toProto(message: QueryGroupPoliciesByAdminRequest): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByAdminRequest): QueryGroupPoliciesByAdminRequestProtoMsg; -}; -export declare const QueryGroupPoliciesByAdminResponse: { - typeUrl: string; - encode(message: QueryGroupPoliciesByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; - fromPartial(object: Partial): QueryGroupPoliciesByAdminResponse; - fromAmino(object: QueryGroupPoliciesByAdminResponseAmino): QueryGroupPoliciesByAdminResponse; - toAmino(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAmino; - fromAminoMsg(object: QueryGroupPoliciesByAdminResponseAminoMsg): QueryGroupPoliciesByAdminResponse; - toAminoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseAminoMsg; - fromProtoMsg(message: QueryGroupPoliciesByAdminResponseProtoMsg): QueryGroupPoliciesByAdminResponse; - toProto(message: QueryGroupPoliciesByAdminResponse): Uint8Array; - toProtoMsg(message: QueryGroupPoliciesByAdminResponse): QueryGroupPoliciesByAdminResponseProtoMsg; -}; -export declare const QueryProposalRequest: { - typeUrl: string; - encode(message: QueryProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest; - fromPartial(object: Partial): QueryProposalRequest; - fromAmino(object: QueryProposalRequestAmino): QueryProposalRequest; - toAmino(message: QueryProposalRequest): QueryProposalRequestAmino; - fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest; - toAminoMsg(message: QueryProposalRequest): QueryProposalRequestAminoMsg; - fromProtoMsg(message: QueryProposalRequestProtoMsg): QueryProposalRequest; - toProto(message: QueryProposalRequest): Uint8Array; - toProtoMsg(message: QueryProposalRequest): QueryProposalRequestProtoMsg; -}; -export declare const QueryProposalResponse: { - typeUrl: string; - encode(message: QueryProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse; - fromPartial(object: Partial): QueryProposalResponse; - fromAmino(object: QueryProposalResponseAmino): QueryProposalResponse; - toAmino(message: QueryProposalResponse): QueryProposalResponseAmino; - fromAminoMsg(object: QueryProposalResponseAminoMsg): QueryProposalResponse; - toAminoMsg(message: QueryProposalResponse): QueryProposalResponseAminoMsg; - fromProtoMsg(message: QueryProposalResponseProtoMsg): QueryProposalResponse; - toProto(message: QueryProposalResponse): Uint8Array; - toProtoMsg(message: QueryProposalResponse): QueryProposalResponseProtoMsg; -}; -export declare const QueryProposalsByGroupPolicyRequest: { - typeUrl: string; - encode(message: QueryProposalsByGroupPolicyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; - fromPartial(object: Partial): QueryProposalsByGroupPolicyRequest; - fromAmino(object: QueryProposalsByGroupPolicyRequestAmino): QueryProposalsByGroupPolicyRequest; - toAmino(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAmino; - fromAminoMsg(object: QueryProposalsByGroupPolicyRequestAminoMsg): QueryProposalsByGroupPolicyRequest; - toAminoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestAminoMsg; - fromProtoMsg(message: QueryProposalsByGroupPolicyRequestProtoMsg): QueryProposalsByGroupPolicyRequest; - toProto(message: QueryProposalsByGroupPolicyRequest): Uint8Array; - toProtoMsg(message: QueryProposalsByGroupPolicyRequest): QueryProposalsByGroupPolicyRequestProtoMsg; -}; -export declare const QueryProposalsByGroupPolicyResponse: { - typeUrl: string; - encode(message: QueryProposalsByGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; - fromPartial(object: Partial): QueryProposalsByGroupPolicyResponse; - fromAmino(object: QueryProposalsByGroupPolicyResponseAmino): QueryProposalsByGroupPolicyResponse; - toAmino(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAmino; - fromAminoMsg(object: QueryProposalsByGroupPolicyResponseAminoMsg): QueryProposalsByGroupPolicyResponse; - toAminoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseAminoMsg; - fromProtoMsg(message: QueryProposalsByGroupPolicyResponseProtoMsg): QueryProposalsByGroupPolicyResponse; - toProto(message: QueryProposalsByGroupPolicyResponse): Uint8Array; - toProtoMsg(message: QueryProposalsByGroupPolicyResponse): QueryProposalsByGroupPolicyResponseProtoMsg; -}; -export declare const QueryVoteByProposalVoterRequest: { - typeUrl: string; - encode(message: QueryVoteByProposalVoterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; - fromPartial(object: Partial): QueryVoteByProposalVoterRequest; - fromAmino(object: QueryVoteByProposalVoterRequestAmino): QueryVoteByProposalVoterRequest; - toAmino(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAmino; - fromAminoMsg(object: QueryVoteByProposalVoterRequestAminoMsg): QueryVoteByProposalVoterRequest; - toAminoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestAminoMsg; - fromProtoMsg(message: QueryVoteByProposalVoterRequestProtoMsg): QueryVoteByProposalVoterRequest; - toProto(message: QueryVoteByProposalVoterRequest): Uint8Array; - toProtoMsg(message: QueryVoteByProposalVoterRequest): QueryVoteByProposalVoterRequestProtoMsg; -}; -export declare const QueryVoteByProposalVoterResponse: { - typeUrl: string; - encode(message: QueryVoteByProposalVoterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; - fromPartial(object: Partial): QueryVoteByProposalVoterResponse; - fromAmino(object: QueryVoteByProposalVoterResponseAmino): QueryVoteByProposalVoterResponse; - toAmino(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAmino; - fromAminoMsg(object: QueryVoteByProposalVoterResponseAminoMsg): QueryVoteByProposalVoterResponse; - toAminoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseAminoMsg; - fromProtoMsg(message: QueryVoteByProposalVoterResponseProtoMsg): QueryVoteByProposalVoterResponse; - toProto(message: QueryVoteByProposalVoterResponse): Uint8Array; - toProtoMsg(message: QueryVoteByProposalVoterResponse): QueryVoteByProposalVoterResponseProtoMsg; -}; -export declare const QueryVotesByProposalRequest: { - typeUrl: string; - encode(message: QueryVotesByProposalRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest; - fromPartial(object: Partial): QueryVotesByProposalRequest; - fromAmino(object: QueryVotesByProposalRequestAmino): QueryVotesByProposalRequest; - toAmino(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAmino; - fromAminoMsg(object: QueryVotesByProposalRequestAminoMsg): QueryVotesByProposalRequest; - toAminoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestAminoMsg; - fromProtoMsg(message: QueryVotesByProposalRequestProtoMsg): QueryVotesByProposalRequest; - toProto(message: QueryVotesByProposalRequest): Uint8Array; - toProtoMsg(message: QueryVotesByProposalRequest): QueryVotesByProposalRequestProtoMsg; -}; -export declare const QueryVotesByProposalResponse: { - typeUrl: string; - encode(message: QueryVotesByProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse; - fromPartial(object: Partial): QueryVotesByProposalResponse; - fromAmino(object: QueryVotesByProposalResponseAmino): QueryVotesByProposalResponse; - toAmino(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAmino; - fromAminoMsg(object: QueryVotesByProposalResponseAminoMsg): QueryVotesByProposalResponse; - toAminoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseAminoMsg; - fromProtoMsg(message: QueryVotesByProposalResponseProtoMsg): QueryVotesByProposalResponse; - toProto(message: QueryVotesByProposalResponse): Uint8Array; - toProtoMsg(message: QueryVotesByProposalResponse): QueryVotesByProposalResponseProtoMsg; -}; -export declare const QueryVotesByVoterRequest: { - typeUrl: string; - encode(message: QueryVotesByVoterRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest; - fromPartial(object: Partial): QueryVotesByVoterRequest; - fromAmino(object: QueryVotesByVoterRequestAmino): QueryVotesByVoterRequest; - toAmino(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAmino; - fromAminoMsg(object: QueryVotesByVoterRequestAminoMsg): QueryVotesByVoterRequest; - toAminoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestAminoMsg; - fromProtoMsg(message: QueryVotesByVoterRequestProtoMsg): QueryVotesByVoterRequest; - toProto(message: QueryVotesByVoterRequest): Uint8Array; - toProtoMsg(message: QueryVotesByVoterRequest): QueryVotesByVoterRequestProtoMsg; -}; -export declare const QueryVotesByVoterResponse: { - typeUrl: string; - encode(message: QueryVotesByVoterResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse; - fromPartial(object: Partial): QueryVotesByVoterResponse; - fromAmino(object: QueryVotesByVoterResponseAmino): QueryVotesByVoterResponse; - toAmino(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAmino; - fromAminoMsg(object: QueryVotesByVoterResponseAminoMsg): QueryVotesByVoterResponse; - toAminoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseAminoMsg; - fromProtoMsg(message: QueryVotesByVoterResponseProtoMsg): QueryVotesByVoterResponse; - toProto(message: QueryVotesByVoterResponse): Uint8Array; - toProtoMsg(message: QueryVotesByVoterResponse): QueryVotesByVoterResponseProtoMsg; -}; -export declare const QueryGroupsByMemberRequest: { - typeUrl: string; - encode(message: QueryGroupsByMemberRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest; - fromPartial(object: Partial): QueryGroupsByMemberRequest; - fromAmino(object: QueryGroupsByMemberRequestAmino): QueryGroupsByMemberRequest; - toAmino(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAmino; - fromAminoMsg(object: QueryGroupsByMemberRequestAminoMsg): QueryGroupsByMemberRequest; - toAminoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestAminoMsg; - fromProtoMsg(message: QueryGroupsByMemberRequestProtoMsg): QueryGroupsByMemberRequest; - toProto(message: QueryGroupsByMemberRequest): Uint8Array; - toProtoMsg(message: QueryGroupsByMemberRequest): QueryGroupsByMemberRequestProtoMsg; -}; -export declare const QueryGroupsByMemberResponse: { - typeUrl: string; - encode(message: QueryGroupsByMemberResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse; - fromPartial(object: Partial): QueryGroupsByMemberResponse; - fromAmino(object: QueryGroupsByMemberResponseAmino): QueryGroupsByMemberResponse; - toAmino(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAmino; - fromAminoMsg(object: QueryGroupsByMemberResponseAminoMsg): QueryGroupsByMemberResponse; - toAminoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseAminoMsg; - fromProtoMsg(message: QueryGroupsByMemberResponseProtoMsg): QueryGroupsByMemberResponse; - toProto(message: QueryGroupsByMemberResponse): Uint8Array; - toProtoMsg(message: QueryGroupsByMemberResponse): QueryGroupsByMemberResponseProtoMsg; -}; -export declare const QueryTallyResultRequest: { - typeUrl: string; - encode(message: QueryTallyResultRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest; - fromPartial(object: Partial): QueryTallyResultRequest; - fromAmino(object: QueryTallyResultRequestAmino): QueryTallyResultRequest; - toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino; - fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest; - toAminoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestAminoMsg; - fromProtoMsg(message: QueryTallyResultRequestProtoMsg): QueryTallyResultRequest; - toProto(message: QueryTallyResultRequest): Uint8Array; - toProtoMsg(message: QueryTallyResultRequest): QueryTallyResultRequestProtoMsg; -}; -export declare const QueryTallyResultResponse: { - typeUrl: string; - encode(message: QueryTallyResultResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse; - fromPartial(object: Partial): QueryTallyResultResponse; - fromAmino(object: QueryTallyResultResponseAmino): QueryTallyResultResponse; - toAmino(message: QueryTallyResultResponse): QueryTallyResultResponseAmino; - fromAminoMsg(object: QueryTallyResultResponseAminoMsg): QueryTallyResultResponse; - toAminoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseAminoMsg; - fromProtoMsg(message: QueryTallyResultResponseProtoMsg): QueryTallyResultResponse; - toProto(message: QueryTallyResultResponse): Uint8Array; - toProtoMsg(message: QueryTallyResultResponse): QueryTallyResultResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/group/v1/query.js b/packages/api/dist/cosmos/group/v1/query.js deleted file mode 100644 index 5e8777ca..00000000 --- a/packages/api/dist/cosmos/group/v1/query.js +++ /dev/null @@ -1,2029 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryGroupsByMemberResponse = exports.QueryGroupsByMemberRequest = exports.QueryVotesByVoterResponse = exports.QueryVotesByVoterRequest = exports.QueryVotesByProposalResponse = exports.QueryVotesByProposalRequest = exports.QueryVoteByProposalVoterResponse = exports.QueryVoteByProposalVoterRequest = exports.QueryProposalsByGroupPolicyResponse = exports.QueryProposalsByGroupPolicyRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = exports.QueryGroupPoliciesByAdminResponse = exports.QueryGroupPoliciesByAdminRequest = exports.QueryGroupPoliciesByGroupResponse = exports.QueryGroupPoliciesByGroupRequest = exports.QueryGroupsByAdminResponse = exports.QueryGroupsByAdminRequest = exports.QueryGroupMembersResponse = exports.QueryGroupMembersRequest = exports.QueryGroupPolicyInfoResponse = exports.QueryGroupPolicyInfoRequest = exports.QueryGroupInfoResponse = exports.QueryGroupInfoRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const types_1 = require("./types"); -const binary_1 = require("../../../binary"); -function createBaseQueryGroupInfoRequest() { - return { - groupId: BigInt(0) - }; -} -exports.QueryGroupInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupInfoRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupInfoRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupInfoRequest", - value: exports.QueryGroupInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupInfoRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - value: exports.QueryGroupInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupInfoResponse() { - return { - info: undefined - }; -} -exports.QueryGroupInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.info !== undefined) { - types_1.GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = types_1.GroupInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? types_1.GroupInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = types_1.GroupInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? types_1.GroupInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupInfoResponse", - value: exports.QueryGroupInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupInfoResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - value: exports.QueryGroupInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoRequest() { - return { - address: "" - }; -} -exports.QueryGroupPolicyInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPolicyInfoRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPolicyInfoRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPolicyInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest", - value: exports.QueryGroupPolicyInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPolicyInfoRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPolicyInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - value: exports.QueryGroupPolicyInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoResponse() { - return { - info: undefined - }; -} -exports.QueryGroupPolicyInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.info !== undefined) { - types_1.GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = types_1.GroupPolicyInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPolicyInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? types_1.GroupPolicyInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPolicyInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = types_1.GroupPolicyInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? types_1.GroupPolicyInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPolicyInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse", - value: exports.QueryGroupPolicyInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPolicyInfoResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPolicyInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - value: exports.QueryGroupPolicyInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersRequest() { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -exports.QueryGroupMembersRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupMembersRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupMembersRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupMembersRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupMembersRequest", - value: exports.QueryGroupMembersRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupMembersRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupMembersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - value: exports.QueryGroupMembersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersResponse() { - return { - members: [], - pagination: undefined - }; -} -exports.QueryGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.members) { - types_1.GroupMember.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.members.push(types_1.GroupMember.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => types_1.GroupMember.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => types_1.GroupMember.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.members) { - obj.members = message.members.map(e => e ? types_1.GroupMember.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupMembersResponse", - value: exports.QueryGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupMembersResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - value: exports.QueryGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -exports.QueryGroupsByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupsByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByAdminRequest", - value: exports.QueryGroupsByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupsByAdminRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - value: exports.QueryGroupsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminResponse() { - return { - groups: [], - pagination: undefined - }; -} -exports.QueryGroupsByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.groups) { - types_1.GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupsByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByAdminResponse", - value: exports.QueryGroupsByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupsByAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - value: exports.QueryGroupsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupRequest() { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -exports.QueryGroupPoliciesByGroupRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPoliciesByGroupRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", - value: exports.QueryGroupPoliciesByGroupRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPoliciesByGroupRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPoliciesByGroupRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - value: exports.QueryGroupPoliciesByGroupRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupResponse() { - return { - groupPolicies: [], - pagination: undefined - }; -} -exports.QueryGroupPoliciesByGroupResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.groupPolicies) { - types_1.GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPoliciesByGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", - value: exports.QueryGroupPoliciesByGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPoliciesByGroupResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPoliciesByGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - value: exports.QueryGroupPoliciesByGroupResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -exports.QueryGroupPoliciesByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPoliciesByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", - value: exports.QueryGroupPoliciesByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPoliciesByAdminRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPoliciesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - value: exports.QueryGroupPoliciesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminResponse() { - return { - groupPolicies: [], - pagination: undefined - }; -} -exports.QueryGroupPoliciesByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.groupPolicies) { - types_1.GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.groupPolicies?.map(e => types_1.GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.group_policies?.map(e => types_1.GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? types_1.GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupPoliciesByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", - value: exports.QueryGroupPoliciesByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupPoliciesByAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupPoliciesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - value: exports.QueryGroupPoliciesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: exports.QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - value: exports.QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: undefined - }; -} -exports.QueryProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposal !== undefined) { - types_1.Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = types_1.Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? types_1.Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = types_1.Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? types_1.Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: exports.QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - value: exports.QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyRequest() { - return { - address: "", - pagination: undefined - }; -} -exports.QueryProposalsByGroupPolicyRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsByGroupPolicyRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", - value: exports.QueryProposalsByGroupPolicyRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsByGroupPolicyRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsByGroupPolicyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - value: exports.QueryProposalsByGroupPolicyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyResponse() { - return { - proposals: [], - pagination: undefined - }; -} -exports.QueryProposalsByGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.proposals) { - types_1.Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(types_1.Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => types_1.Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => types_1.Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? types_1.Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProposalsByGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", - value: exports.QueryProposalsByGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryProposalsByGroupPolicyResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProposalsByGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - value: exports.QueryProposalsByGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -exports.QueryVoteByProposalVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteByProposalVoterRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteByProposalVoterRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteByProposalVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest", - value: exports.QueryVoteByProposalVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteByProposalVoterRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteByProposalVoterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - value: exports.QueryVoteByProposalVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterResponse() { - return { - vote: undefined - }; -} -exports.QueryVoteByProposalVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.vote !== undefined) { - types_1.Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = types_1.Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteByProposalVoterResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? types_1.Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteByProposalVoterResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = types_1.Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? types_1.Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVoteByProposalVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse", - value: exports.QueryVoteByProposalVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVoteByProposalVoterResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVoteByProposalVoterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - value: exports.QueryVoteByProposalVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -exports.QueryVotesByProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesByProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByProposalRequest", - value: exports.QueryVotesByProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesByProposalRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesByProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - value: exports.QueryVotesByProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalResponse() { - return { - votes: [], - pagination: undefined - }; -} -exports.QueryVotesByProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.votes) { - types_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(types_1.Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesByProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByProposalResponse", - value: exports.QueryVotesByProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesByProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesByProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - value: exports.QueryVotesByProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterRequest() { - return { - voter: "", - pagination: undefined - }; -} -exports.QueryVotesByVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.voter !== "") { - writer.uint32(10).string(message.voter); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voter = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByVoterRequest(); - message.voter = object.voter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByVoterRequest(); - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesByVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByVoterRequest", - value: exports.QueryVotesByVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesByVoterRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesByVoterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - value: exports.QueryVotesByVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterResponse() { - return { - votes: [], - pagination: undefined - }; -} -exports.QueryVotesByVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.votes) { - types_1.Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(types_1.Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => types_1.Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => types_1.Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? types_1.Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryVotesByVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByVoterResponse", - value: exports.QueryVotesByVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryVotesByVoterResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryVotesByVoterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - value: exports.QueryVotesByVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberRequest() { - return { - address: "", - pagination: undefined - }; -} -exports.QueryGroupsByMemberRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByMemberRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupsByMemberRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByMemberRequest", - value: exports.QueryGroupsByMemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupsByMemberRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupsByMemberRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - value: exports.QueryGroupsByMemberRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberResponse() { - return { - groups: [], - pagination: undefined - }; -} -exports.QueryGroupsByMemberResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.groups) { - types_1.GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => types_1.GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => types_1.GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? types_1.GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryGroupsByMemberResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByMemberResponse", - value: exports.QueryGroupsByMemberResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryGroupsByMemberResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryGroupsByMemberResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - value: exports.QueryGroupsByMemberResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -exports.QueryTallyResultRequest = { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - value: exports.QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: types_1.TallyResult.fromPartial({}) - }; -} -exports.QueryTallyResultResponse = { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tally !== undefined) { - types_1.TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = types_1.TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? types_1.TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = types_1.TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? types_1.TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - value: exports.QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/group/v1/query.lcd.d.ts b/packages/api/dist/cosmos/group/v1/query.lcd.d.ts deleted file mode 100644 index f2695451..00000000 --- a/packages/api/dist/cosmos/group/v1/query.lcd.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - groupInfo(params: QueryGroupInfoRequest): Promise; - groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise; - groupMembers(params: QueryGroupMembersRequest): Promise; - groupsByAdmin(params: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise; - proposal(params: QueryProposalRequest): Promise; - proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(params: QueryVotesByProposalRequest): Promise; - votesByVoter(params: QueryVotesByVoterRequest): Promise; - groupsByMember(params: QueryGroupsByMemberRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/api/dist/cosmos/group/v1/query.lcd.js b/packages/api/dist/cosmos/group/v1/query.lcd.js deleted file mode 100644 index 78a2890f..00000000 --- a/packages/api/dist/cosmos/group/v1/query.lcd.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* GroupInfo queries group info based on group id. */ - async groupInfo(params) { - const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; - return await this.req.get(endpoint); - } - /* GroupPolicyInfo queries group policy info based on account address of group policy. */ - async groupPolicyInfo(params) { - const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; - return await this.req.get(endpoint); - } - /* GroupMembers queries members of a group */ - async groupMembers(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries groups by admin address. */ - async groupsByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* GroupPoliciesByGroup queries group policies by group id. */ - async groupPoliciesByGroup(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries group policies by admin address. */ - async groupPoliciesByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Proposal queries a proposal based on proposal id. */ - async proposal(params) { - const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - async proposalsByGroupPolicy(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; - return await this.req.get(endpoint, options); - } - /* VoteByProposalVoter queries a vote by proposal id and voter. */ - async voteByProposalVoter(params) { - const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; - return await this.req.get(endpoint); - } - /* VotesByProposal queries a vote by proposal. */ - async votesByProposal(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; - return await this.req.get(endpoint, options); - } - /* VotesByVoter queries a vote by voter. */ - async votesByVoter(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; - return await this.req.get(endpoint, options); - } - /* GroupsByMember queries groups by member address. */ - async groupsByMember(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TallyResult returns the tally result of a proposal. If the proposal is - still in voting period, then this query computes the current tally state, - which might not be final. On the other hand, if the proposal is final, - then it simply returns the `final_tally_result` state stored in the - proposal itself. */ - async tallyResult(params) { - const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts deleted file mode 100644 index 6ccde5b1..00000000 --- a/packages/api/dist/cosmos/group/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query is the cosmos.group.v1 Query service. */ -export interface Query { - /** GroupInfo queries group info based on group id. */ - groupInfo(request: QueryGroupInfoRequest): Promise; - /** GroupPolicyInfo queries group policy info based on account address of group policy. */ - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - /** GroupMembers queries members of a group */ - groupMembers(request: QueryGroupMembersRequest): Promise; - /** GroupsByAdmin queries groups by admin address. */ - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - /** GroupPoliciesByGroup queries group policies by group id. */ - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - /** GroupsByAdmin queries group policies by admin address. */ - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - /** Proposal queries a proposal based on proposal id. */ - proposal(request: QueryProposalRequest): Promise; - /** ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - /** VoteByProposalVoter queries a vote by proposal id and voter. */ - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - /** VotesByProposal queries a vote by proposal. */ - votesByProposal(request: QueryVotesByProposalRequest): Promise; - /** VotesByVoter queries a vote by voter. */ - votesByVoter(request: QueryVotesByVoterRequest): Promise; - /** GroupsByMember queries groups by member address. */ - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - /** - * TallyResult returns the tally result of a proposal. If the proposal is - * still in voting period, then this query computes the current tally state, - * which might not be final. On the other hand, if the proposal is final, - * then it simply returns the `final_tally_result` state stored in the - * proposal itself. - */ - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/group/v1/query.rpc.Query.js b/packages/api/dist/cosmos/group/v1/query.rpc.Query.js deleted file mode 100644 index 68a81dfc..00000000 --- a/packages/api/dist/cosmos/group/v1/query.rpc.Query.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - groupInfo(request) { - const data = query_1.QueryGroupInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); - return promise.then(data => query_1.QueryGroupInfoResponse.decode(new binary_1.BinaryReader(data))); - } - groupPolicyInfo(request) { - const data = query_1.QueryGroupPolicyInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); - return promise.then(data => query_1.QueryGroupPolicyInfoResponse.decode(new binary_1.BinaryReader(data))); - } - groupMembers(request) { - const data = query_1.QueryGroupMembersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); - return promise.then(data => query_1.QueryGroupMembersResponse.decode(new binary_1.BinaryReader(data))); - } - groupsByAdmin(request) { - const data = query_1.QueryGroupsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); - return promise.then(data => query_1.QueryGroupsByAdminResponse.decode(new binary_1.BinaryReader(data))); - } - groupPoliciesByGroup(request) { - const data = query_1.QueryGroupPoliciesByGroupRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); - return promise.then(data => query_1.QueryGroupPoliciesByGroupResponse.decode(new binary_1.BinaryReader(data))); - } - groupPoliciesByAdmin(request) { - const data = query_1.QueryGroupPoliciesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); - return promise.then(data => query_1.QueryGroupPoliciesByAdminResponse.decode(new binary_1.BinaryReader(data))); - } - proposal(request) { - const data = query_1.QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); - return promise.then(data => query_1.QueryProposalResponse.decode(new binary_1.BinaryReader(data))); - } - proposalsByGroupPolicy(request) { - const data = query_1.QueryProposalsByGroupPolicyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); - return promise.then(data => query_1.QueryProposalsByGroupPolicyResponse.decode(new binary_1.BinaryReader(data))); - } - voteByProposalVoter(request) { - const data = query_1.QueryVoteByProposalVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); - return promise.then(data => query_1.QueryVoteByProposalVoterResponse.decode(new binary_1.BinaryReader(data))); - } - votesByProposal(request) { - const data = query_1.QueryVotesByProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); - return promise.then(data => query_1.QueryVotesByProposalResponse.decode(new binary_1.BinaryReader(data))); - } - votesByVoter(request) { - const data = query_1.QueryVotesByVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); - return promise.then(data => query_1.QueryVotesByVoterResponse.decode(new binary_1.BinaryReader(data))); - } - groupsByMember(request) { - const data = query_1.QueryGroupsByMemberRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); - return promise.then(data => query_1.QueryGroupsByMemberResponse.decode(new binary_1.BinaryReader(data))); - } - tallyResult(request) { - const data = query_1.QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); - return promise.then(data => query_1.QueryTallyResultResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - groupInfo(request) { - return queryService.groupInfo(request); - }, - groupPolicyInfo(request) { - return queryService.groupPolicyInfo(request); - }, - groupMembers(request) { - return queryService.groupMembers(request); - }, - groupsByAdmin(request) { - return queryService.groupsByAdmin(request); - }, - groupPoliciesByGroup(request) { - return queryService.groupPoliciesByGroup(request); - }, - groupPoliciesByAdmin(request) { - return queryService.groupPoliciesByAdmin(request); - }, - proposal(request) { - return queryService.proposal(request); - }, - proposalsByGroupPolicy(request) { - return queryService.proposalsByGroupPolicy(request); - }, - voteByProposalVoter(request) { - return queryService.voteByProposalVoter(request); - }, - votesByProposal(request) { - return queryService.votesByProposal(request); - }, - votesByVoter(request) { - return queryService.votesByVoter(request); - }, - groupsByMember(request) { - return queryService.groupsByMember(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/group/v1/tx.amino.d.ts b/packages/api/dist/cosmos/group/v1/tx.amino.d.ts deleted file mode 100644 index 49116292..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.amino.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export declare const AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: (message: MsgCreateGroup) => import("./tx").MsgCreateGroupAmino; - fromAmino: (object: import("./tx").MsgCreateGroupAmino) => MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: (message: MsgUpdateGroupMembers) => import("./tx").MsgUpdateGroupMembersAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupMembersAmino) => MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateGroupAdmin) => import("./tx").MsgUpdateGroupAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupAdminAmino) => MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateGroupMetadata) => import("./tx").MsgUpdateGroupMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupMetadataAmino) => MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: (message: MsgCreateGroupPolicy) => import("./tx").MsgCreateGroupPolicyAmino; - fromAmino: (object: import("./tx").MsgCreateGroupPolicyAmino) => MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: (message: MsgCreateGroupWithPolicy) => import("./tx").MsgCreateGroupWithPolicyAmino; - fromAmino: (object: import("./tx").MsgCreateGroupWithPolicyAmino) => MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyAdmin) => import("./tx").MsgUpdateGroupPolicyAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyAdminAmino) => MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyDecisionPolicy) => import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyDecisionPolicyAmino) => MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateGroupPolicyMetadata) => import("./tx").MsgUpdateGroupPolicyMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateGroupPolicyMetadataAmino) => MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: (message: MsgSubmitProposal) => import("./tx").MsgSubmitProposalAmino; - fromAmino: (object: import("./tx").MsgSubmitProposalAmino) => MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: (message: MsgWithdrawProposal) => import("./tx").MsgWithdrawProposalAmino; - fromAmino: (object: import("./tx").MsgWithdrawProposalAmino) => MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: (message: MsgVote) => import("./tx").MsgVoteAmino; - fromAmino: (object: import("./tx").MsgVoteAmino) => MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: (message: MsgExec) => import("./tx").MsgExecAmino; - fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: (message: MsgLeaveGroup) => import("./tx").MsgLeaveGroupAmino; - fromAmino: (object: import("./tx").MsgLeaveGroupAmino) => MsgLeaveGroup; - }; -}; diff --git a/packages/api/dist/cosmos/group/v1/tx.amino.js b/packages/api/dist/cosmos/group/v1/tx.amino.js deleted file mode 100644 index e2475ea0..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.amino.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: "cosmos-sdk/MsgCreateGroup", - toAmino: tx_1.MsgCreateGroup.toAmino, - fromAmino: tx_1.MsgCreateGroup.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: "cosmos-sdk/MsgUpdateGroupMembers", - toAmino: tx_1.MsgUpdateGroupMembers.toAmino, - fromAmino: tx_1.MsgUpdateGroupMembers.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", - toAmino: tx_1.MsgUpdateGroupAdmin.toAmino, - fromAmino: tx_1.MsgUpdateGroupAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", - toAmino: tx_1.MsgUpdateGroupMetadata.toAmino, - fromAmino: tx_1.MsgUpdateGroupMetadata.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupPolicy", - toAmino: tx_1.MsgCreateGroupPolicy.toAmino, - fromAmino: tx_1.MsgCreateGroupPolicy.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", - toAmino: tx_1.MsgCreateGroupWithPolicy.toAmino, - fromAmino: tx_1.MsgCreateGroupWithPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - toAmino: tx_1.MsgUpdateGroupPolicyAdmin.toAmino, - fromAmino: tx_1.MsgUpdateGroupPolicyAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - toAmino: tx_1.MsgUpdateGroupPolicyDecisionPolicy.toAmino, - fromAmino: tx_1.MsgUpdateGroupPolicyDecisionPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - toAmino: tx_1.MsgUpdateGroupPolicyMetadata.toAmino, - fromAmino: tx_1.MsgUpdateGroupPolicyMetadata.fromAmino - }, - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/group/MsgSubmitProposal", - toAmino: tx_1.MsgSubmitProposal.toAmino, - fromAmino: tx_1.MsgSubmitProposal.fromAmino - }, - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: "cosmos-sdk/group/MsgWithdrawProposal", - toAmino: tx_1.MsgWithdrawProposal.toAmino, - fromAmino: tx_1.MsgWithdrawProposal.fromAmino - }, - "/cosmos.group.v1.MsgVote": { - aminoType: "cosmos-sdk/group/MsgVote", - toAmino: tx_1.MsgVote.toAmino, - fromAmino: tx_1.MsgVote.fromAmino - }, - "/cosmos.group.v1.MsgExec": { - aminoType: "cosmos-sdk/group/MsgExec", - toAmino: tx_1.MsgExec.toAmino, - fromAmino: tx_1.MsgExec.fromAmino - }, - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: "cosmos-sdk/group/MsgLeaveGroup", - toAmino: tx_1.MsgLeaveGroup.toAmino, - fromAmino: tx_1.MsgLeaveGroup.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/group/v1/tx.d.ts b/packages/api/dist/cosmos/group/v1/tx.d.ts deleted file mode 100644 index 4dc7df10..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.d.ts +++ /dev/null @@ -1,1172 +0,0 @@ -import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export declare enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1 -} -export declare const ExecSDKType: typeof Exec; -export declare const ExecAmino: typeof Exec; -export declare function execFromJSON(object: any): Exec; -export declare function execToJSON(object: Exec): string; -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -export interface MsgCreateGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroup"; - value: Uint8Array; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; -} -export interface MsgCreateGroupAminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: MsgCreateGroupAmino; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberRequestSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: bigint; -} -export interface MsgCreateGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; - value: Uint8Array; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseAmino { - /** group_id is the unique ID of the newly created group. */ - group_id?: string; -} -export interface MsgCreateGroupResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupResponse"; - value: MsgCreateGroupResponseAmino; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: bigint; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: MemberRequest[]; -} -export interface MsgUpdateGroupMembersProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; - value: Uint8Array; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - member_updates: MemberRequestAmino[]; -} -export interface MsgUpdateGroupMembersAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: MsgUpdateGroupMembersAmino; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: bigint; - member_updates: MemberRequestSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse { -} -export interface MsgUpdateGroupMembersResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseAmino { -} -export interface MsgUpdateGroupMembersResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse"; - value: MsgUpdateGroupMembersResponseAmino; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType { -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -export interface MsgUpdateGroupAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminAmino { - /** admin is the current account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** new_admin is the group new admin account address. */ - new_admin?: string; -} -export interface MsgUpdateGroupAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: MsgUpdateGroupAdminAmino; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: bigint; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse { -} -export interface MsgUpdateGroupAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseAmino { -} -export interface MsgUpdateGroupAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse"; - value: MsgUpdateGroupAdminResponseAmino; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType { -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is the updated group's metadata. */ - metadata: string; -} -export interface MsgUpdateGroupMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is the updated group's metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: MsgUpdateGroupMetadataAmino; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: bigint; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse { -} -export interface MsgUpdateGroupMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseAmino { -} -export interface MsgUpdateGroupMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse"; - value: MsgUpdateGroupMetadataResponseAmino; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType { -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgCreateGroupPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: MsgCreateGroupPolicyAmino; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: bigint; - metadata: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -export interface MsgCreateGroupPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseAmino { - /** address is the account address of the newly created group policy. */ - address?: string; -} -export interface MsgCreateGroupPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse"; - value: MsgCreateGroupPolicyResponseAmino; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of the group policy. */ - groupPolicyAddress: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -export interface MsgUpdateGroupPolicyAdminProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of the group policy. */ - group_policy_address?: string; - /** new_admin is the new group policy admin. */ - new_admin?: string; -} -export interface MsgUpdateGroupPolicyAdminAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: MsgUpdateGroupPolicyAdminAmino; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - group_policy_address: string; - new_admin: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse { -} -export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseAmino { -} -export interface MsgUpdateGroupPolicyAdminResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse"; - value: MsgUpdateGroupPolicyAdminResponseAmino; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType { -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: MemberRequest[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgCreateGroupWithPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; - value: Uint8Array; -} -export type MsgCreateGroupWithPolicyEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicyAmino { - /** admin is the account address of the group and group policy admin. */ - admin?: string; - /** members defines the group members. */ - members: MemberRequestAmino[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - group_metadata?: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - group_policy_metadata?: string; - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - */ - group_policy_as_admin?: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgCreateGroupWithPolicyAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: MsgCreateGroupWithPolicyAmino; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberRequestSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: bigint; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -export interface MsgCreateGroupWithPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - value: Uint8Array; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseAmino { - /** group_id is the unique ID of the newly created group with policy. */ - group_id?: string; - /** group_policy_address is the account address of the newly created group policy. */ - group_policy_address?: string; -} -export interface MsgCreateGroupWithPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse"; - value: MsgCreateGroupWithPolicyResponseAmino; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: bigint; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; -} -export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - value: Uint8Array; -} -export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit & { - /** decision_policy is the updated group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** decision_policy is the updated group policy's decision policy. */ - decision_policy?: AnyAmino; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy"; - value: MsgUpdateGroupPolicyDecisionPolicyAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - group_policy_address: string; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse { -} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino { -} -export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse"; - value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType { -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -export interface MsgUpdateGroupPolicyMetadataProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataAmino { - /** admin is the account address of the group admin. */ - admin?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is the updated group policy metadata. */ - metadata?: string; -} -export interface MsgUpdateGroupPolicyMetadataAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: MsgUpdateGroupPolicyMetadataAmino; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - group_policy_address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse { -} -export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseAmino { -} -export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse"; - value: MsgUpdateGroupPolicyMetadataResponseAmino; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType { -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -export interface MsgSubmitProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; - value: Uint8Array; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalAmino { - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers?: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec?: Exec; -} -export interface MsgSubmitProposalAminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: MsgSubmitProposalAmino; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - group_policy_address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; -} -export interface MsgSubmitProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; - value: Uint8Array; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; -} -export interface MsgSubmitProposalResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitProposalResponse"; - value: MsgSubmitProposalResponseAmino; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: bigint; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -export interface MsgWithdrawProposalProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; - value: Uint8Array; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address?: string; -} -export interface MsgWithdrawProposalAminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: MsgWithdrawProposalAmino; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: bigint; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse { -} -export interface MsgWithdrawProposalResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; - value: Uint8Array; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseAmino { -} -export interface MsgWithdrawProposalResponseAminoMsg { - type: "cosmos-sdk/MsgWithdrawProposalResponse"; - value: MsgWithdrawProposalResponseAmino; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType { -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -export interface MsgVoteProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVote"; - value: Uint8Array; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the voter account address. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec?: Exec; -} -export interface MsgVoteAminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: MsgVoteAmino; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -export interface MsgVoteResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgVoteResponse"; - value: Uint8Array; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseAmino { -} -export interface MsgVoteResponseAminoMsg { - type: "cosmos-sdk/MsgVoteResponse"; - value: MsgVoteResponseAmino; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** executor is the account address used to execute the proposal. */ - executor: string; -} -export interface MsgExecProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExec"; - value: Uint8Array; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** executor is the account address used to execute the proposal. */ - executor?: string; -} -export interface MsgExecAminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: MsgExecAmino; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: bigint; - executor: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse { - /** result is the final result of the proposal execution. */ - result: ProposalExecutorResult; -} -export interface MsgExecResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgExecResponse"; - value: Uint8Array; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseAmino { - /** result is the final result of the proposal execution. */ - result?: ProposalExecutorResult; -} -export interface MsgExecResponseAminoMsg { - type: "cosmos-sdk/MsgExecResponse"; - value: MsgExecResponseAmino; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType { - result: ProposalExecutorResult; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; -} -export interface MsgLeaveGroupProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; - value: Uint8Array; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupAmino { - /** address is the account address of the group member. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; -} -export interface MsgLeaveGroupAminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: MsgLeaveGroupAmino; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: bigint; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse { -} -export interface MsgLeaveGroupResponseProtoMsg { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; - value: Uint8Array; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseAmino { -} -export interface MsgLeaveGroupResponseAminoMsg { - type: "cosmos-sdk/MsgLeaveGroupResponse"; - value: MsgLeaveGroupResponseAmino; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType { -} -export declare const MsgCreateGroup: { - typeUrl: string; - encode(message: MsgCreateGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup; - fromPartial(object: Partial): MsgCreateGroup; - fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup; - toAmino(message: MsgCreateGroup): MsgCreateGroupAmino; - fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup; - toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg; - fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup; - toProto(message: MsgCreateGroup): Uint8Array; - toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg; -}; -export declare const MsgCreateGroupResponse: { - typeUrl: string; - encode(message: MsgCreateGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse; - fromPartial(object: Partial): MsgCreateGroupResponse; - fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse; - toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino; - fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse; - toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse; - toProto(message: MsgCreateGroupResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg; -}; -export declare const MsgUpdateGroupMembers: { - typeUrl: string; - encode(message: MsgUpdateGroupMembers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers; - fromPartial(object: Partial): MsgUpdateGroupMembers; - fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers; - toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino; - fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers; - toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers; - toProto(message: MsgUpdateGroupMembers): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg; -}; -export declare const MsgUpdateGroupMembersResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupMembersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; - fromPartial(_: Partial): MsgUpdateGroupMembersResponse; - fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse; - toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino; - fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse; - toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse; - toProto(message: MsgUpdateGroupMembersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg; -}; -export declare const MsgUpdateGroupAdmin: { - typeUrl: string; - encode(message: MsgUpdateGroupAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin; - fromPartial(object: Partial): MsgUpdateGroupAdmin; - fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin; - toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino; - fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin; - toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg; - fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin; - toProto(message: MsgUpdateGroupAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg; -}; -export declare const MsgUpdateGroupAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; - fromPartial(_: Partial): MsgUpdateGroupAdminResponse; - fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse; - toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino; - fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse; - toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse; - toProto(message: MsgUpdateGroupAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg; -}; -export declare const MsgUpdateGroupMetadata: { - typeUrl: string; - encode(message: MsgUpdateGroupMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata; - fromPartial(object: Partial): MsgUpdateGroupMetadata; - fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata; - toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino; - fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata; - toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata; - toProto(message: MsgUpdateGroupMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg; -}; -export declare const MsgUpdateGroupMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; - fromPartial(_: Partial): MsgUpdateGroupMetadataResponse; - fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse; - toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse; - toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse; - toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg; -}; -export declare const MsgCreateGroupPolicy: { - typeUrl: string; - encode(message: MsgCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy; - fromPartial(object: Partial): MsgCreateGroupPolicy; - fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy; - toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino; - fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy; - toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg; - fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy; - toProto(message: MsgCreateGroupPolicy): Uint8Array; - toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg; -}; -export declare const MsgCreateGroupPolicyResponse: { - typeUrl: string; - encode(message: MsgCreateGroupPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; - fromPartial(object: Partial): MsgCreateGroupPolicyResponse; - fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse; - toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino; - fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse; - toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse; - toProto(message: MsgCreateGroupPolicyResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyAdmin: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; - fromPartial(object: Partial): MsgUpdateGroupPolicyAdmin; - fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin; - toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin; - toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin; - toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg; -}; -export declare const MsgUpdateGroupPolicyAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; - fromPartial(_: Partial): MsgUpdateGroupPolicyAdminResponse; - fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse; - toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse; - toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse; - toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg; -}; -export declare const MsgCreateGroupWithPolicy: { - typeUrl: string; - encode(message: MsgCreateGroupWithPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; - fromPartial(object: Partial): MsgCreateGroupWithPolicy; - fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy; - toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino; - fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy; - toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg; - fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy; - toProto(message: MsgCreateGroupWithPolicy): Uint8Array; - toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg; -}; -export declare const MsgCreateGroupWithPolicyResponse: { - typeUrl: string; - encode(message: MsgCreateGroupWithPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; - fromPartial(object: Partial): MsgCreateGroupWithPolicyResponse; - fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse; - toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino; - fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse; - toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg; - fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse; - toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array; - toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicy: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; - fromPartial(object: Partial): MsgUpdateGroupPolicyDecisionPolicy; - fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy; - toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy; - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy; - toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; - fromPartial(_: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse; - fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse; - toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; - toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse; - toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg; -}; -export declare const MsgUpdateGroupPolicyMetadata: { - typeUrl: string; - encode(message: MsgUpdateGroupPolicyMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; - fromPartial(object: Partial): MsgUpdateGroupPolicyMetadata; - fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata; - toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata; - toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata; - toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg; -}; -export declare const MsgUpdateGroupPolicyMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; - fromPartial(_: Partial): MsgUpdateGroupPolicyMetadataResponse; - fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse; - toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse; - toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg; - fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse; - toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg; -}; -export declare const MsgSubmitProposal: { - typeUrl: string; - encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; - fromPartial(object: Partial): MsgSubmitProposal; - fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal; - toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino; - fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal; - toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg; - fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal; - toProto(message: MsgSubmitProposal): Uint8Array; - toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg; -}; -export declare const MsgSubmitProposalResponse: { - typeUrl: string; - encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromPartial(object: Partial): MsgSubmitProposalResponse; - fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; - toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; - fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; - toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg; - fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; - toProto(message: MsgSubmitProposalResponse): Uint8Array; - toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; -}; -export declare const MsgWithdrawProposal: { - typeUrl: string; - encode(message: MsgWithdrawProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal; - fromPartial(object: Partial): MsgWithdrawProposal; - fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal; - toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino; - fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal; - toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg; - fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal; - toProto(message: MsgWithdrawProposal): Uint8Array; - toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg; -}; -export declare const MsgWithdrawProposalResponse: { - typeUrl: string; - encode(_: MsgWithdrawProposalResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse; - fromPartial(_: Partial): MsgWithdrawProposalResponse; - fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse; - toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino; - fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse; - toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg; - fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse; - toProto(message: MsgWithdrawProposalResponse): Uint8Array; - toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg; -}; -export declare const MsgVote: { - typeUrl: string; - encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; - fromPartial(object: Partial): MsgVote; - fromAmino(object: MsgVoteAmino): MsgVote; - toAmino(message: MsgVote): MsgVoteAmino; - fromAminoMsg(object: MsgVoteAminoMsg): MsgVote; - toAminoMsg(message: MsgVote): MsgVoteAminoMsg; - fromProtoMsg(message: MsgVoteProtoMsg): MsgVote; - toProto(message: MsgVote): Uint8Array; - toProtoMsg(message: MsgVote): MsgVoteProtoMsg; -}; -export declare const MsgVoteResponse: { - typeUrl: string; - encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; - fromPartial(_: Partial): MsgVoteResponse; - fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; - toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; - fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; - toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg; - fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; - toProto(message: MsgVoteResponse): Uint8Array; - toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; -}; -export declare const MsgExec: { - typeUrl: string; - encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; - fromPartial(object: Partial): MsgExec; - fromAmino(object: MsgExecAmino): MsgExec; - toAmino(message: MsgExec): MsgExecAmino; - fromAminoMsg(object: MsgExecAminoMsg): MsgExec; - toAminoMsg(message: MsgExec): MsgExecAminoMsg; - fromProtoMsg(message: MsgExecProtoMsg): MsgExec; - toProto(message: MsgExec): Uint8Array; - toProtoMsg(message: MsgExec): MsgExecProtoMsg; -}; -export declare const MsgExecResponse: { - typeUrl: string; - encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; - fromPartial(object: Partial): MsgExecResponse; - fromAmino(object: MsgExecResponseAmino): MsgExecResponse; - toAmino(message: MsgExecResponse): MsgExecResponseAmino; - fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse; - toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg; - fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse; - toProto(message: MsgExecResponse): Uint8Array; - toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg; -}; -export declare const MsgLeaveGroup: { - typeUrl: string; - encode(message: MsgLeaveGroup, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup; - fromPartial(object: Partial): MsgLeaveGroup; - fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup; - toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino; - fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup; - toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg; - fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup; - toProto(message: MsgLeaveGroup): Uint8Array; - toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg; -}; -export declare const MsgLeaveGroupResponse: { - typeUrl: string; - encode(_: MsgLeaveGroupResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse; - fromPartial(_: Partial): MsgLeaveGroupResponse; - fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse; - toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino; - fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse; - toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg; - fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse; - toProto(message: MsgLeaveGroupResponse): Uint8Array; - toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg; -}; -export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; -export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; -export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/group/v1/tx.js b/packages/api/dist/cosmos/group/v1/tx.js deleted file mode 100644 index eac4b28f..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.js +++ /dev/null @@ -1,2338 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DecisionPolicy_ToAmino = exports.DecisionPolicy_FromAmino = exports.DecisionPolicy_InterfaceDecoder = exports.MsgLeaveGroupResponse = exports.MsgLeaveGroup = exports.MsgExecResponse = exports.MsgExec = exports.MsgVoteResponse = exports.MsgVote = exports.MsgWithdrawProposalResponse = exports.MsgWithdrawProposal = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.MsgUpdateGroupPolicyMetadataResponse = exports.MsgUpdateGroupPolicyMetadata = exports.MsgUpdateGroupPolicyDecisionPolicyResponse = exports.MsgUpdateGroupPolicyDecisionPolicy = exports.MsgCreateGroupWithPolicyResponse = exports.MsgCreateGroupWithPolicy = exports.MsgUpdateGroupPolicyAdminResponse = exports.MsgUpdateGroupPolicyAdmin = exports.MsgCreateGroupPolicyResponse = exports.MsgCreateGroupPolicy = exports.MsgUpdateGroupMetadataResponse = exports.MsgUpdateGroupMetadata = exports.MsgUpdateGroupAdminResponse = exports.MsgUpdateGroupAdmin = exports.MsgUpdateGroupMembersResponse = exports.MsgUpdateGroupMembers = exports.MsgCreateGroupResponse = exports.MsgCreateGroup = exports.execToJSON = exports.execFromJSON = exports.ExecAmino = exports.ExecSDKType = exports.Exec = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -var Exec; -(function (Exec) { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED"; - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY"; - Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(Exec || (exports.Exec = Exec = {})); -exports.ExecSDKType = Exec; -exports.ExecAmino = Exec; -function execFromJSON(object) { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -exports.execFromJSON = execFromJSON; -function execToJSON(object) { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.execToJSON = execToJSON; -function createBaseMsgCreateGroup() { - return { - admin: "", - members: [], - metadata: "" - }; -} -exports.MsgCreateGroup = { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - types_1.MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(types_1.MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroup(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => types_1.MemberRequest.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroup(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => types_1.MemberRequest.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroup", - value: exports.MsgCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroup.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: exports.MsgCreateGroup.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupResponse() { - return { - groupId: BigInt(0) - }; -} -exports.MsgCreateGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupResponse", - value: exports.MsgCreateGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroupResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - value: exports.MsgCreateGroupResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembers() { - return { - admin: "", - groupId: BigInt(0), - memberUpdates: [] - }; -} -exports.MsgUpdateGroupMembers = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - for (const v of message.memberUpdates) { - types_1.MemberRequest.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.memberUpdates.push(types_1.MemberRequest.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupMembers(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.memberUpdates = object.memberUpdates?.map(e => types_1.MemberRequest.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupMembers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - message.memberUpdates = object.member_updates?.map(e => types_1.MemberRequest.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - if (message.memberUpdates) { - obj.member_updates = message.memberUpdates.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); - } - else { - obj.member_updates = message.memberUpdates; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupMembers.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMembers", - value: exports.MsgUpdateGroupMembers.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupMembers.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupMembers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: exports.MsgUpdateGroupMembers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembersResponse() { - return {}; -} -exports.MsgUpdateGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse", - value: exports.MsgUpdateGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupMembersResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - value: exports.MsgUpdateGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdmin() { - return { - admin: "", - groupId: BigInt(0), - newAdmin: "" - }; -} -exports.MsgUpdateGroupAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupAdmin(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupAdmin", - value: exports.MsgUpdateGroupAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupAdmin.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: exports.MsgUpdateGroupAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdminResponse() { - return {}; -} -exports.MsgUpdateGroupAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse", - value: exports.MsgUpdateGroupAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - value: exports.MsgUpdateGroupAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadata() { - return { - admin: "", - groupId: BigInt(0), - metadata: "" - }; -} -exports.MsgUpdateGroupMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupMetadata(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadata", - value: exports.MsgUpdateGroupMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: exports.MsgUpdateGroupMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadataResponse() { - return {}; -} -exports.MsgUpdateGroupMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", - value: exports.MsgUpdateGroupMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - value: exports.MsgUpdateGroupMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicy() { - return { - admin: "", - groupId: BigInt(0), - metadata: "", - decisionPolicy: undefined - }; -} -exports.MsgCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.decisionPolicy !== undefined) { - any_1.Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupPolicy(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupPolicy", - value: exports.MsgCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroupPolicy.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: exports.MsgCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicyResponse() { - return { - address: "" - }; -} -exports.MsgCreateGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupPolicyResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupPolicyResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse", - value: exports.MsgCreateGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroupPolicyResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - value: exports.MsgCreateGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdmin() { - return { - admin: "", - groupPolicyAddress: "", - newAdmin: "" - }; -} -exports.MsgUpdateGroupPolicyAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - value: exports.MsgUpdateGroupPolicyAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyAdmin.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: exports.MsgUpdateGroupPolicyAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdminResponse() { - return {}; -} -exports.MsgUpdateGroupPolicyAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", - value: exports.MsgUpdateGroupPolicyAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - value: exports.MsgUpdateGroupPolicyAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicy() { - return { - admin: "", - members: [], - groupMetadata: "", - groupPolicyMetadata: "", - groupPolicyAsAdmin: false, - decisionPolicy: undefined - }; -} -exports.MsgCreateGroupWithPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - types_1.MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.groupMetadata !== "") { - writer.uint32(26).string(message.groupMetadata); - } - if (message.groupPolicyMetadata !== "") { - writer.uint32(34).string(message.groupPolicyMetadata); - } - if (message.groupPolicyAsAdmin === true) { - writer.uint32(40).bool(message.groupPolicyAsAdmin); - } - if (message.decisionPolicy !== undefined) { - any_1.Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(types_1.MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.groupMetadata = reader.string(); - break; - case 4: - message.groupPolicyMetadata = reader.string(); - break; - case 5: - message.groupPolicyAsAdmin = reader.bool(); - break; - case 6: - message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupWithPolicy(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => types_1.MemberRequest.fromPartial(e)) || []; - message.groupMetadata = object.groupMetadata ?? ""; - message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; - message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupWithPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => types_1.MemberRequest.fromAmino(e)) || []; - if (object.group_metadata !== undefined && object.group_metadata !== null) { - message.groupMetadata = object.group_metadata; - } - if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { - message.groupPolicyMetadata = object.group_policy_metadata; - } - if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { - message.groupPolicyAsAdmin = object.group_policy_as_admin; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? types_1.MemberRequest.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; - obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; - obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; - obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroupWithPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicy", - value: exports.MsgCreateGroupWithPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroupWithPolicy.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroupWithPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: exports.MsgCreateGroupWithPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicyResponse() { - return { - groupId: BigInt(0), - groupPolicyAddress: "" - }; -} -exports.MsgCreateGroupWithPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateGroupWithPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", - value: exports.MsgCreateGroupWithPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateGroupWithPolicyResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateGroupWithPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - value: exports.MsgCreateGroupWithPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicy() { - return { - admin: "", - groupPolicyAddress: "", - decisionPolicy: undefined - }; -} -exports.MsgUpdateGroupPolicyDecisionPolicy = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.decisionPolicy !== undefined) { - any_1.Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - value: exports.MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: exports.MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() { - return {}; -} -exports.MsgUpdateGroupPolicyDecisionPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", - value: exports.MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - value: exports.MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadata() { - return { - admin: "", - groupPolicyAddress: "", - metadata: "" - }; -} -exports.MsgUpdateGroupPolicyMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - value: exports.MsgUpdateGroupPolicyMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: exports.MsgUpdateGroupPolicyMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadataResponse() { - return {}; -} -exports.MsgUpdateGroupPolicyMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", - value: exports.MsgUpdateGroupPolicyMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateGroupPolicyMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - value: exports.MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposal() { - return { - groupPolicyAddress: "", - proposers: [], - metadata: "", - messages: [], - exec: 0 - }; -} -exports.MsgSubmitProposal = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupPolicyAddress !== "") { - writer.uint32(10).string(message.groupPolicyAddress); - } - for (const v of message.proposers) { - writer.uint32(18).string(v); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.messages) { - any_1.Any.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicyAddress = reader.string(); - break; - case 2: - message.proposers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.messages.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 5: - message.exec = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } - else { - obj.proposers = message.proposers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.messages) { - obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgSubmitProposal", - value: exports.MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: exports.MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -exports.MsgSubmitProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - value: exports.MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposal() { - return { - proposalId: BigInt(0), - address: "" - }; -} -exports.MsgWithdrawProposal = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgWithdrawProposal", - value: exports.MsgWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawProposal.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: exports.MsgWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposalResponse() { - return {}; -} -exports.MsgWithdrawProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgWithdrawProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawProposalResponse", - value: exports.MsgWithdrawProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgWithdrawProposalResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgWithdrawProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - value: exports.MsgWithdrawProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - exec: 0 - }; -} -exports.MsgVote = { - typeUrl: "/cosmos.group.v1.MsgVote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.exec = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgVote", - value: exports.MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVote.decode(message.value); - }, - toProto(message) { - return exports.MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: exports.MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -exports.MsgVoteResponse = { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: exports.MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - value: exports.MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec() { - return { - proposalId: BigInt(0), - executor: "" - }; -} -exports.MsgExec = { - typeUrl: "/cosmos.group.v1.MsgExec", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.executor !== "") { - writer.uint32(18).string(message.executor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.executor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.executor = object.executor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.executor !== undefined && object.executor !== null) { - message.executor = object.executor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.executor = message.executor === "" ? undefined : message.executor; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgExec", - value: exports.MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExec.decode(message.value); - }, - toProto(message) { - return exports.MsgExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: exports.MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse() { - return { - result: 0 - }; -} -exports.MsgExecResponse = { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecResponse(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecResponse(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExecResponse", - value: exports.MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgExecResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - value: exports.MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroup() { - return { - address: "", - groupId: BigInt(0) - }; -} -exports.MsgLeaveGroup = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgLeaveGroup(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgLeaveGroup(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgLeaveGroup", - value: exports.MsgLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgLeaveGroup.decode(message.value); - }, - toProto(message) { - return exports.MsgLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: exports.MsgLeaveGroup.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroupResponse() { - return {}; -} -exports.MsgLeaveGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgLeaveGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgLeaveGroupResponse", - value: exports.MsgLeaveGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgLeaveGroupResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgLeaveGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - value: exports.MsgLeaveGroupResponse.encode(message).finish() - }; - } -}; -const DecisionPolicy_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return types_1.ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return types_1.PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -exports.DecisionPolicy_InterfaceDecoder = DecisionPolicy_InterfaceDecoder; -const DecisionPolicy_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: types_1.ThresholdDecisionPolicy.encode(types_1.ThresholdDecisionPolicy.fromPartial(types_1.ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: types_1.PercentageDecisionPolicy.encode(types_1.PercentageDecisionPolicy.fromPartial(types_1.PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.DecisionPolicy_FromAmino = DecisionPolicy_FromAmino; -const DecisionPolicy_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: types_1.ThresholdDecisionPolicy.toAmino(types_1.ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: types_1.PercentageDecisionPolicy.toAmino(types_1.PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.DecisionPolicy_ToAmino = DecisionPolicy_ToAmino; diff --git a/packages/api/dist/cosmos/group/v1/tx.registry.d.ts b/packages/api/dist/cosmos/group/v1/tx.registry.d.ts deleted file mode 100644 index bf76cec6..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.registry.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; -}; diff --git a/packages/api/dist/cosmos/group/v1/tx.registry.js b/packages/api/dist/cosmos/group/v1/tx.registry.js deleted file mode 100644 index 8f9530c5..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.registry.js +++ /dev/null @@ -1,271 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.group.v1.MsgCreateGroup", tx_1.MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", tx_1.MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", tx_1.MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", tx_1.MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", tx_1.MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", tx_1.MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", tx_1.MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", tx_1.MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", tx_1.MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", tx_1.MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", tx_1.MsgVote], ["/cosmos.group.v1.MsgExec", tx_1.MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", tx_1.MsgLeaveGroup]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: tx_1.MsgCreateGroup.encode(value).finish() - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: tx_1.MsgUpdateGroupMembers.encode(value).finish() - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: tx_1.MsgUpdateGroupAdmin.encode(value).finish() - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: tx_1.MsgUpdateGroupMetadata.encode(value).finish() - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: tx_1.MsgCreateGroupPolicy.encode(value).finish() - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: tx_1.MsgCreateGroupWithPolicy.encode(value).finish() - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: tx_1.MsgUpdateGroupPolicyAdmin.encode(value).finish() - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: tx_1.MsgUpdateGroupPolicyMetadata.encode(value).finish() - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.encode(value).finish() - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: tx_1.MsgWithdrawProposal.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: tx_1.MsgVote.encode(value).finish() - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: tx_1.MsgExec.encode(value).finish() - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: tx_1.MsgLeaveGroup.encode(value).finish() - }; - } - }, - withTypeUrl: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value - }; - } - }, - fromPartial: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: tx_1.MsgCreateGroup.fromPartial(value) - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: tx_1.MsgUpdateGroupMembers.fromPartial(value) - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: tx_1.MsgUpdateGroupAdmin.fromPartial(value) - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: tx_1.MsgUpdateGroupMetadata.fromPartial(value) - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: tx_1.MsgCreateGroupPolicy.fromPartial(value) - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: tx_1.MsgCreateGroupWithPolicy.fromPartial(value) - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: tx_1.MsgUpdateGroupPolicyAdmin.fromPartial(value) - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: tx_1.MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: tx_1.MsgUpdateGroupPolicyMetadata.fromPartial(value) - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: tx_1.MsgSubmitProposal.fromPartial(value) - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: tx_1.MsgWithdrawProposal.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: tx_1.MsgVote.fromPartial(value) - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: tx_1.MsgExec.fromPartial(value) - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: tx_1.MsgLeaveGroup.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 28620343..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; -/** Msg is the cosmos.group.v1 Msg service. */ -export interface Msg { - /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ - createGroup(request: MsgCreateGroup): Promise; - /** UpdateGroupMembers updates the group members with given group id and admin address. */ - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - /** CreateGroupWithPolicy creates a new group with policy. */ - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - /** UpdateGroupPolicyAdmin updates a group policy admin. */ - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - /** UpdateGroupPolicyMetadata updates a group policy metadata. */ - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - /** SubmitProposal submits a new proposal. */ - submitProposal(request: MsgSubmitProposal): Promise; - /** WithdrawProposal withdraws a proposal. */ - withdrawProposal(request: MsgWithdrawProposal): Promise; - /** Vote allows a voter to vote on a proposal. */ - vote(request: MsgVote): Promise; - /** Exec executes a proposal. */ - exec(request: MsgExec): Promise; - /** LeaveGroup allows a group member to leave the group. */ - leaveGroup(request: MsgLeaveGroup): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createGroup(request: MsgCreateGroup): Promise; - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - submitProposal(request: MsgSubmitProposal): Promise; - withdrawProposal(request: MsgWithdrawProposal): Promise; - vote(request: MsgVote): Promise; - exec(request: MsgExec): Promise; - leaveGroup(request: MsgLeaveGroup): Promise; -} diff --git a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js b/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js deleted file mode 100644 index 1d338d6e..00000000 --- a/packages/api/dist/cosmos/group/v1/tx.rpc.msg.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createGroup = this.createGroup.bind(this); - this.updateGroupMembers = this.updateGroupMembers.bind(this); - this.updateGroupAdmin = this.updateGroupAdmin.bind(this); - this.updateGroupMetadata = this.updateGroupMetadata.bind(this); - this.createGroupPolicy = this.createGroupPolicy.bind(this); - this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); - this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); - this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); - this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); - this.submitProposal = this.submitProposal.bind(this); - this.withdrawProposal = this.withdrawProposal.bind(this); - this.vote = this.vote.bind(this); - this.exec = this.exec.bind(this); - this.leaveGroup = this.leaveGroup.bind(this); - } - createGroup(request) { - const data = tx_1.MsgCreateGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); - return promise.then(data => tx_1.MsgCreateGroupResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupMembers(request) { - const data = tx_1.MsgUpdateGroupMembers.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); - return promise.then(data => tx_1.MsgUpdateGroupMembersResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupAdmin(request) { - const data = tx_1.MsgUpdateGroupAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); - return promise.then(data => tx_1.MsgUpdateGroupAdminResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupMetadata(request) { - const data = tx_1.MsgUpdateGroupMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); - return promise.then(data => tx_1.MsgUpdateGroupMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - createGroupPolicy(request) { - const data = tx_1.MsgCreateGroupPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); - return promise.then(data => tx_1.MsgCreateGroupPolicyResponse.decode(new binary_1.BinaryReader(data))); - } - createGroupWithPolicy(request) { - const data = tx_1.MsgCreateGroupWithPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); - return promise.then(data => tx_1.MsgCreateGroupWithPolicyResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupPolicyAdmin(request) { - const data = tx_1.MsgUpdateGroupPolicyAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); - return promise.then(data => tx_1.MsgUpdateGroupPolicyAdminResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupPolicyDecisionPolicy(request) { - const data = tx_1.MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); - return promise.then(data => tx_1.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new binary_1.BinaryReader(data))); - } - updateGroupPolicyMetadata(request) { - const data = tx_1.MsgUpdateGroupPolicyMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); - return promise.then(data => tx_1.MsgUpdateGroupPolicyMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - submitProposal(request) { - const data = tx_1.MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); - return promise.then(data => tx_1.MsgSubmitProposalResponse.decode(new binary_1.BinaryReader(data))); - } - withdrawProposal(request) { - const data = tx_1.MsgWithdrawProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); - return promise.then(data => tx_1.MsgWithdrawProposalResponse.decode(new binary_1.BinaryReader(data))); - } - vote(request) { - const data = tx_1.MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); - return promise.then(data => tx_1.MsgVoteResponse.decode(new binary_1.BinaryReader(data))); - } - exec(request) { - const data = tx_1.MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); - return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data))); - } - leaveGroup(request) { - const data = tx_1.MsgLeaveGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); - return promise.then(data => tx_1.MsgLeaveGroupResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/group/v1/types.d.ts b/packages/api/dist/cosmos/group/v1/types.d.ts deleted file mode 100644 index b5649764..00000000 --- a/packages/api/dist/cosmos/group/v1/types.d.ts +++ /dev/null @@ -1,831 +0,0 @@ -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export declare enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare const VoteOptionAmino: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus defines proposal statuses. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** - * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - */ - PROPOSAL_STATUS_ACCEPTED = 2, - /** - * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - */ - PROPOSAL_STATUS_REJECTED = 3, - /** - * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the - * final tally. - */ - PROPOSAL_STATUS_ABORTED = 4, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare const ProposalStatusAmino: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** ProposalExecutorResult defines types of proposal executor results. */ -export declare enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1 -} -export declare const ProposalExecutorResultSDKType: typeof ProposalExecutorResult; -export declare const ProposalExecutorResultAmino: typeof ProposalExecutorResult; -export declare function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult; -export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string; -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Date; -} -export interface MemberProtoMsg { - typeUrl: "/cosmos.group.v1.Member"; - value: Uint8Array; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; - /** added_at is a timestamp specifying when a member was added. */ - added_at?: string; -} -export interface MemberAminoMsg { - type: "cosmos-sdk/Member"; - value: MemberAmino; -} -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: Date; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequest { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata: string; -} -export interface MemberRequestProtoMsg { - typeUrl: "/cosmos.group.v1.MemberRequest"; - value: Uint8Array; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestAmino { - /** address is the member's account address. */ - address?: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight?: string; - /** metadata is any arbitrary metadata attached to the member. */ - metadata?: string; -} -export interface MemberRequestAminoMsg { - type: "cosmos-sdk/MemberRequest"; - value: MemberRequestAmino; -} -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - */ -export interface MemberRequestSDKType { - address: string; - weight: string; - metadata: string; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface ThresholdDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; - value: Uint8Array; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicyAmino { - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - */ - threshold?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface ThresholdDecisionPolicyAminoMsg { - type: "cosmos-sdk/ThresholdDecisionPolicy"; - value: ThresholdDecisionPolicyAmino; -} -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voters' weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface ThresholdDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.ThresholdDecisionPolicy"; - threshold: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicy { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindows; -} -export interface PercentageDecisionPolicyProtoMsg { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; - value: Uint8Array; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicyAmino { - /** - * percentage is the minimum percentage the weighted sum of `YES` votes must - * meet for a proposal to succeed. - */ - percentage?: string; - /** windows defines the different windows for voting and execution. */ - windows?: DecisionPolicyWindowsAmino; -} -export interface PercentageDecisionPolicyAminoMsg { - type: "cosmos-sdk/PercentageDecisionPolicy"; - value: PercentageDecisionPolicyAmino; -} -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - */ -export interface PercentageDecisionPolicySDKType { - $typeUrl?: "/cosmos.group.v1.PercentageDecisionPolicy"; - percentage: string; - windows?: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -export interface DecisionPolicyWindowsProtoMsg { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; - value: Uint8Array; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsAmino { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - voting_period?: DurationAmino; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - min_execution_period?: DurationAmino; -} -export interface DecisionPolicyWindowsAminoMsg { - type: "cosmos-sdk/DecisionPolicyWindows"; - value: DecisionPolicyWindowsAmino; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: bigint; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: bigint; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Date; -} -export interface GroupInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupInfo"; - value: Uint8Array; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoAmino { - /** id is the unique ID of the group. */ - id?: string; - /** admin is the account address of the group's admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata?: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version?: string; - /** total_weight is the sum of the group members' weights. */ - total_weight?: string; - /** created_at is a timestamp specifying when a group was created. */ - created_at?: string; -} -export interface GroupInfoAminoMsg { - type: "cosmos-sdk/GroupInfo"; - value: GroupInfoAmino; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: bigint; - admin: string; - metadata: string; - version: bigint; - total_weight: string; - created_at: Date; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** member is the member data. */ - member?: Member; -} -export interface GroupMemberProtoMsg { - typeUrl: "/cosmos.group.v1.GroupMember"; - value: Uint8Array; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberAmino { - /** group_id is the unique ID of the group. */ - group_id?: string; - /** member is the member data. */ - member?: MemberAmino; -} -export interface GroupMemberAminoMsg { - type: "cosmos-sdk/GroupMember"; - value: GroupMemberAmino; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: bigint; - member?: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: bigint; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: bigint; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Date; -} -export interface GroupPolicyInfoProtoMsg { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; - value: Uint8Array; -} -export type GroupPolicyInfoEncoded = Omit & { - /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined; -}; -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoAmino { - /** address is the account address of group policy. */ - address?: string; - /** group_id is the unique ID of the group. */ - group_id?: string; - /** admin is the account address of the group admin. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata?: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version?: string; - /** decision_policy specifies the group policy's decision policy. */ - decision_policy?: AnyAmino; - /** created_at is a timestamp specifying when a group policy was created. */ - created_at?: string; -} -export interface GroupPolicyInfoAminoMsg { - type: "cosmos-sdk/GroupPolicyInfo"; - value: GroupPolicyInfoAmino; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: bigint; - admin: string; - metadata: string; - version: bigint; - decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined; - created_at: Date; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: bigint; - /** group_policy_address is the account address of group policy. */ - groupPolicyAddress: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Date; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - groupVersion: bigint; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - groupPolicyVersion: bigint; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - votingPeriodEnd: Date; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; -} -export interface ProposalProtoMsg { - typeUrl: "/cosmos.group.v1.Proposal"; - value: Uint8Array; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalAmino { - /** id is the unique id of the proposal. */ - id?: string; - /** group_policy_address is the account address of group policy. */ - group_policy_address?: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata?: string; - /** proposers are the account addresses of the proposers. */ - proposers?: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submit_time?: string; - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - */ - group_version?: string; - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - */ - group_policy_version?: string; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status?: ProposalStatus; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - */ - final_tally_result?: TallyResultAmino; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - */ - voting_period_end?: string; - /** executor_result is the final result of the proposal execution. Initial value is NotRun. */ - executor_result?: ProposalExecutorResult; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages?: AnyAmino[]; -} -export interface ProposalAminoMsg { - type: "cosmos-sdk/Proposal"; - value: ProposalAmino; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: bigint; - group_policy_address: string; - metadata: string; - proposers: string[]; - submit_time: Date; - group_version: bigint; - group_policy_version: bigint; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - voting_period_end: Date; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no_count is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -export interface TallyResultProtoMsg { - typeUrl: "/cosmos.group.v1.TallyResult"; - value: Uint8Array; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultAmino { - /** yes_count is the weighted sum of yes votes. */ - yes_count?: string; - /** abstain_count is the weighted sum of abstainers. */ - abstain_count?: string; - /** no_count is the weighted sum of no votes. */ - no_count?: string; - /** no_with_veto_count is the weighted sum of veto. */ - no_with_veto_count?: string; -} -export interface TallyResultAminoMsg { - type: "cosmos-sdk/TallyResult"; - value: TallyResultAmino; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: bigint; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Date; -} -export interface VoteProtoMsg { - typeUrl: "/cosmos.group.v1.Vote"; - value: Uint8Array; -} -/** Vote represents a vote for a proposal. */ -export interface VoteAmino { - /** proposal is the unique ID of the proposal. */ - proposal_id?: string; - /** voter is the account address of the voter. */ - voter?: string; - /** option is the voter's choice on the proposal. */ - option?: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata?: string; - /** submit_time is the timestamp when the vote was submitted. */ - submit_time?: string; -} -export interface VoteAminoMsg { - type: "cosmos-sdk/Vote"; - value: VoteAmino; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: bigint; - voter: string; - option: VoteOption; - metadata: string; - submit_time: Date; -} -export declare const Member: { - typeUrl: string; - encode(message: Member, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Member; - fromPartial(object: Partial): Member; - fromAmino(object: MemberAmino): Member; - toAmino(message: Member): MemberAmino; - fromAminoMsg(object: MemberAminoMsg): Member; - toAminoMsg(message: Member): MemberAminoMsg; - fromProtoMsg(message: MemberProtoMsg): Member; - toProto(message: Member): Uint8Array; - toProtoMsg(message: Member): MemberProtoMsg; -}; -export declare const MemberRequest: { - typeUrl: string; - encode(message: MemberRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest; - fromPartial(object: Partial): MemberRequest; - fromAmino(object: MemberRequestAmino): MemberRequest; - toAmino(message: MemberRequest): MemberRequestAmino; - fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest; - toAminoMsg(message: MemberRequest): MemberRequestAminoMsg; - fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest; - toProto(message: MemberRequest): Uint8Array; - toProtoMsg(message: MemberRequest): MemberRequestProtoMsg; -}; -export declare const ThresholdDecisionPolicy: { - typeUrl: string; - encode(message: ThresholdDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy; - fromPartial(object: Partial): ThresholdDecisionPolicy; - fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy; - toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino; - fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy; - toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg; - fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy; - toProto(message: ThresholdDecisionPolicy): Uint8Array; - toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg; -}; -export declare const PercentageDecisionPolicy: { - typeUrl: string; - encode(message: PercentageDecisionPolicy, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy; - fromPartial(object: Partial): PercentageDecisionPolicy; - fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy; - toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino; - fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy; - toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg; - fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy; - toProto(message: PercentageDecisionPolicy): Uint8Array; - toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg; -}; -export declare const DecisionPolicyWindows: { - typeUrl: string; - encode(message: DecisionPolicyWindows, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows; - fromPartial(object: Partial): DecisionPolicyWindows; - fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows; - toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino; - fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows; - toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg; - fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows; - toProto(message: DecisionPolicyWindows): Uint8Array; - toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg; -}; -export declare const GroupInfo: { - typeUrl: string; - encode(message: GroupInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo; - fromPartial(object: Partial): GroupInfo; - fromAmino(object: GroupInfoAmino): GroupInfo; - toAmino(message: GroupInfo): GroupInfoAmino; - fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo; - toAminoMsg(message: GroupInfo): GroupInfoAminoMsg; - fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo; - toProto(message: GroupInfo): Uint8Array; - toProtoMsg(message: GroupInfo): GroupInfoProtoMsg; -}; -export declare const GroupMember: { - typeUrl: string; - encode(message: GroupMember, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupMember; - fromPartial(object: Partial): GroupMember; - fromAmino(object: GroupMemberAmino): GroupMember; - toAmino(message: GroupMember): GroupMemberAmino; - fromAminoMsg(object: GroupMemberAminoMsg): GroupMember; - toAminoMsg(message: GroupMember): GroupMemberAminoMsg; - fromProtoMsg(message: GroupMemberProtoMsg): GroupMember; - toProto(message: GroupMember): Uint8Array; - toProtoMsg(message: GroupMember): GroupMemberProtoMsg; -}; -export declare const GroupPolicyInfo: { - typeUrl: string; - encode(message: GroupPolicyInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo; - fromPartial(object: Partial): GroupPolicyInfo; - fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo; - toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino; - fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo; - toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg; - fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo; - toProto(message: GroupPolicyInfo): Uint8Array; - toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - toAminoMsg(message: Proposal): ProposalAminoMsg; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const TallyResult: { - typeUrl: string; - encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; - fromPartial(object: Partial): TallyResult; - fromAmino(object: TallyResultAmino): TallyResult; - toAmino(message: TallyResult): TallyResultAmino; - fromAminoMsg(object: TallyResultAminoMsg): TallyResult; - toAminoMsg(message: TallyResult): TallyResultAminoMsg; - fromProtoMsg(message: TallyResultProtoMsg): TallyResult; - toProto(message: TallyResult): Uint8Array; - toProtoMsg(message: TallyResult): TallyResultProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - toAminoMsg(message: Vote): VoteAminoMsg; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => ThresholdDecisionPolicy | PercentageDecisionPolicy | Any; -export declare const DecisionPolicy_FromAmino: (content: AnyAmino) => Any; -export declare const DecisionPolicy_ToAmino: (content: Any) => AnyAmino; diff --git a/packages/api/dist/cosmos/group/v1/types.js b/packages/api/dist/cosmos/group/v1/types.js deleted file mode 100644 index 0daaf445..00000000 --- a/packages/api/dist/cosmos/group/v1/types.js +++ /dev/null @@ -1,1471 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DecisionPolicy_ToAmino = exports.DecisionPolicy_FromAmino = exports.DecisionPolicy_InterfaceDecoder = exports.Vote = exports.TallyResult = exports.Proposal = exports.GroupPolicyInfo = exports.GroupMember = exports.GroupInfo = exports.DecisionPolicyWindows = exports.PercentageDecisionPolicy = exports.ThresholdDecisionPolicy = exports.MemberRequest = exports.Member = exports.proposalExecutorResultToJSON = exports.proposalExecutorResultFromJSON = exports.ProposalExecutorResultAmino = exports.ProposalExecutorResultSDKType = exports.ProposalExecutorResult = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const duration_1 = require("../../../google/protobuf/duration"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -/** VoteOption enumerates the valid vote options for a given proposal. */ -var VoteOption; -(function (VoteOption) { - /** - * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (exports.VoteOption = VoteOption = {})); -exports.VoteOptionSDKType = VoteOption; -exports.VoteOptionAmino = VoteOption; -function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -exports.voteOptionFromJSON = voteOptionFromJSON; -function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.voteOptionToJSON = voteOptionToJSON; -/** ProposalStatus defines proposal statuses. */ -var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED"; - /** - * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED"; - /** - * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the - * final tally. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED"; - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); -exports.ProposalStatusSDKType = ProposalStatus; -exports.ProposalStatusAmino = ProposalStatus; -function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_ACCEPTED": - return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; - case 3: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 4: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 5: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -exports.proposalStatusFromJSON = proposalStatusFromJSON; -function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: - return "PROPOSAL_STATUS_ACCEPTED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.proposalStatusToJSON = proposalStatusToJSON; -/** ProposalExecutorResult defines types of proposal executor results. */ -var ProposalExecutorResult; -(function (ProposalExecutorResult) { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalExecutorResult || (exports.ProposalExecutorResult = ProposalExecutorResult = {})); -exports.ProposalExecutorResultSDKType = ProposalExecutorResult; -exports.ProposalExecutorResultAmino = ProposalExecutorResult; -function proposalExecutorResultFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -exports.proposalExecutorResultFromJSON = proposalExecutorResultFromJSON; -function proposalExecutorResultToJSON(object) { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.proposalExecutorResultToJSON = proposalExecutorResultToJSON; -function createBaseMember() { - return { - address: "", - weight: "", - metadata: "", - addedAt: new Date() - }; -} -exports.Member = { - typeUrl: "/cosmos.group.v1.Member", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.addedAt !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.addedAt), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMember(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - message.addedAt = object.addedAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMember(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.added_at !== undefined && object.added_at !== null) { - message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.added_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.added_at = message.addedAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.addedAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Member.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Member", - value: exports.Member.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Member.decode(message.value); - }, - toProto(message) { - return exports.Member.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Member", - value: exports.Member.encode(message).finish() - }; - } -}; -function createBaseMemberRequest() { - return { - address: "", - weight: "", - metadata: "" - }; -} -exports.MemberRequest = { - typeUrl: "/cosmos.group.v1.MemberRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMemberRequest(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MemberRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MemberRequest", - value: exports.MemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MemberRequest.decode(message.value); - }, - toProto(message) { - return exports.MemberRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MemberRequest", - value: exports.MemberRequest.encode(message).finish() - }; - } -}; -function createBaseThresholdDecisionPolicy() { - return { - $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - threshold: "", - windows: undefined - }; -} -exports.ThresholdDecisionPolicy = { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.threshold !== "") { - writer.uint32(10).string(message.threshold); - } - if (message.windows !== undefined) { - exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseThresholdDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.string(); - break; - case 2: - message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseThresholdDecisionPolicy(); - message.threshold = object.threshold ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseThresholdDecisionPolicy(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ThresholdDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: exports.ThresholdDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ThresholdDecisionPolicy.decode(message.value); - }, - toProto(message) { - return exports.ThresholdDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: exports.ThresholdDecisionPolicy.encode(message).finish() - }; - } -}; -function createBasePercentageDecisionPolicy() { - return { - $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - percentage: "", - windows: undefined - }; -} -exports.PercentageDecisionPolicy = { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.percentage !== "") { - writer.uint32(10).string(message.percentage); - } - if (message.windows !== undefined) { - exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePercentageDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.percentage = reader.string(); - break; - case 2: - message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePercentageDecisionPolicy(); - message.percentage = object.percentage ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePercentageDecisionPolicy(); - if (object.percentage !== undefined && object.percentage !== null) { - message.percentage = object.percentage; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.percentage = message.percentage === "" ? undefined : message.percentage; - obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PercentageDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: exports.PercentageDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PercentageDecisionPolicy.decode(message.value); - }, - toProto(message) { - return exports.PercentageDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: exports.PercentageDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseDecisionPolicyWindows() { - return { - votingPeriod: duration_1.Duration.fromPartial({}), - minExecutionPeriod: duration_1.Duration.fromPartial({}) - }; -} -exports.DecisionPolicyWindows = { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - if (message.minExecutionPeriod !== undefined) { - duration_1.Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecisionPolicyWindows(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - case 2: - message.minExecutionPeriod = duration_1.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecisionPolicyWindows(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined; - message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? duration_1.Duration.fromPartial(object.minExecutionPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDecisionPolicyWindows(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period); - } - if (object.min_execution_period !== undefined && object.min_execution_period !== null) { - message.minExecutionPeriod = duration_1.Duration.fromAmino(object.min_execution_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : undefined; - obj.min_execution_period = message.minExecutionPeriod ? duration_1.Duration.toAmino(message.minExecutionPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DecisionPolicyWindows.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecisionPolicyWindows", - value: exports.DecisionPolicyWindows.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DecisionPolicyWindows.decode(message.value); - }, - toProto(message) { - return exports.DecisionPolicyWindows.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - value: exports.DecisionPolicyWindows.encode(message).finish() - }; - } -}; -function createBaseGroupInfo() { - return { - id: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - totalWeight: "", - createdAt: new Date() - }; -} -exports.GroupInfo = { - typeUrl: "/cosmos.group.v1.GroupInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(32).uint64(message.version); - } - if (message.totalWeight !== "") { - writer.uint32(42).string(message.totalWeight); - } - if (message.createdAt !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.version = reader.uint64(); - break; - case 5: - message.totalWeight = reader.string(); - break; - case 6: - message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.totalWeight = object.totalWeight ?? ""; - message.createdAt = object.createdAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.total_weight !== undefined && object.total_weight !== null) { - message.totalWeight = object.total_weight; - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; - obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GroupInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupInfo", - value: exports.GroupInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GroupInfo.decode(message.value); - }, - toProto(message) { - return exports.GroupInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupInfo", - value: exports.GroupInfo.encode(message).finish() - }; - } -}; -function createBaseGroupMember() { - return { - groupId: BigInt(0), - member: undefined - }; -} -exports.GroupMember = { - typeUrl: "/cosmos.group.v1.GroupMember", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.member !== undefined) { - exports.Member.encode(message.member, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.member = exports.Member.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupMember(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.member = object.member !== undefined && object.member !== null ? exports.Member.fromPartial(object.member) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupMember(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.member !== undefined && object.member !== null) { - message.member = exports.Member.fromAmino(object.member); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.member = message.member ? exports.Member.toAmino(message.member) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GroupMember.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupMember", - value: exports.GroupMember.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GroupMember.decode(message.value); - }, - toProto(message) { - return exports.GroupMember.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupMember", - value: exports.GroupMember.encode(message).finish() - }; - } -}; -function createBaseGroupPolicyInfo() { - return { - address: "", - groupId: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - decisionPolicy: undefined, - createdAt: new Date() - }; -} -exports.GroupPolicyInfo = { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.admin !== "") { - writer.uint32(26).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(40).uint64(message.version); - } - if (message.decisionPolicy !== undefined) { - any_1.Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - if (message.createdAt !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupPolicyInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.admin = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.version = reader.uint64(); - break; - case 6: - message.decisionPolicy = (0, exports.DecisionPolicy_InterfaceDecoder)(reader); - break; - case 7: - message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupPolicyInfo(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? any_1.Any.fromPartial(object.decisionPolicy) : undefined; - message.createdAt = object.createdAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupPolicyInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = (0, exports.DecisionPolicy_FromAmino)(object.decision_policy); - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.decision_policy = message.decisionPolicy ? (0, exports.DecisionPolicy_ToAmino)(message.decisionPolicy) : undefined; - obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GroupPolicyInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupPolicyInfo", - value: exports.GroupPolicyInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GroupPolicyInfo.decode(message.value); - }, - toProto(message) { - return exports.GroupPolicyInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - value: exports.GroupPolicyInfo.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - id: BigInt(0), - groupPolicyAddress: "", - metadata: "", - proposers: [], - submitTime: new Date(), - groupVersion: BigInt(0), - groupPolicyVersion: BigInt(0), - status: 0, - finalTallyResult: exports.TallyResult.fromPartial({}), - votingPeriodEnd: new Date(), - executorResult: 0, - messages: [] - }; -} -exports.Proposal = { - typeUrl: "/cosmos.group.v1.Proposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.proposers) { - writer.uint32(34).string(v); - } - if (message.submitTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.groupVersion !== BigInt(0)) { - writer.uint32(48).uint64(message.groupVersion); - } - if (message.groupPolicyVersion !== BigInt(0)) { - writer.uint32(56).uint64(message.groupPolicyVersion); - } - if (message.status !== 0) { - writer.uint32(64).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - exports.TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); - } - if (message.votingPeriodEnd !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); - } - if (message.executorResult !== 0) { - writer.uint32(88).int32(message.executorResult); - } - for (const v of message.messages) { - any_1.Any.encode(v, writer.uint32(98).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.proposers.push(reader.string()); - break; - case 5: - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.groupVersion = reader.uint64(); - break; - case 7: - message.groupPolicyVersion = reader.uint64(); - break; - case 8: - message.status = reader.int32(); - break; - case 9: - message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32()); - break; - case 10: - message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 11: - message.executorResult = reader.int32(); - break; - case 12: - message.messages.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.submitTime = object.submitTime ?? undefined; - message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); - message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; - message.executorResult = object.executorResult ?? 0; - message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); - } - if (object.group_version !== undefined && object.group_version !== null) { - message.groupVersion = BigInt(object.group_version); - } - if (object.group_policy_version !== undefined && object.group_policy_version !== null) { - message.groupPolicyVersion = BigInt(object.group_policy_version); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result); - } - if (object.voting_period_end !== undefined && object.voting_period_end !== null) { - message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_period_end)); - } - if (object.executor_result !== undefined && object.executor_result !== null) { - message.executorResult = object.executor_result; - } - message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } - else { - obj.proposers = message.proposers; - } - obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; - obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; - obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.voting_period_end = message.votingPeriodEnd ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingPeriodEnd)) : undefined; - obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; - if (message.messages) { - obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Proposal", - value: exports.Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Proposal.decode(message.value); - }, - toProto(message) { - return exports.Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Proposal", - value: exports.Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -exports.TallyResult = { - typeUrl: "/cosmos.group.v1.TallyResult", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object) { - return exports.TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyResult", - value: exports.TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TallyResult.decode(message.value); - }, - toProto(message) { - return exports.TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.TallyResult", - value: exports.TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - submitTime: new Date() - }; -} -exports.Vote = { - typeUrl: "/cosmos.group.v1.Vote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.submitTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.submitTime = object.submitTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Vote", - value: exports.Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Vote.decode(message.value); - }, - toProto(message) { - return exports.Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Vote", - value: exports.Vote.encode(message).finish() - }; - } -}; -const DecisionPolicy_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return exports.ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return exports.PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -exports.DecisionPolicy_InterfaceDecoder = DecisionPolicy_InterfaceDecoder; -const DecisionPolicy_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: exports.ThresholdDecisionPolicy.encode(exports.ThresholdDecisionPolicy.fromPartial(exports.ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return any_1.Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: exports.PercentageDecisionPolicy.encode(exports.PercentageDecisionPolicy.fromPartial(exports.PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return any_1.Any.fromAmino(content); - } -}; -exports.DecisionPolicy_FromAmino = DecisionPolicy_FromAmino; -const DecisionPolicy_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: exports.ThresholdDecisionPolicy.toAmino(exports.ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: exports.PercentageDecisionPolicy.toAmino(exports.PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return any_1.Any.toAmino(content); - } -}; -exports.DecisionPolicy_ToAmino = DecisionPolicy_ToAmino; diff --git a/packages/api/dist/cosmos/lcd.d.ts b/packages/api/dist/cosmos/lcd.d.ts deleted file mode 100644 index b03f8e7f..00000000 --- a/packages/api/dist/cosmos/lcd.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("./auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("./authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("./bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("./base/node/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("./distribution/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("./gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("./gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("./group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("./mint/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("./params/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("./staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("./tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("./upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; -}>; diff --git a/packages/api/dist/cosmos/lcd.js b/packages/api/dist/cosmos/lcd.js deleted file mode 100644 index c9371773..00000000 --- a/packages/api/dist/cosmos/lcd.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createLCDClient = void 0; -//@ts-nocheck -const lcd_1 = require("@cosmology/lcd"); -const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new lcd_1.LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./auth/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./base/node/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1/query.lcd")))).LCDQueryClient({ - requestClient - }), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("./group/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./mint/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./params/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./tx/v1beta1/service.lcd")))).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - } - }; -}; -exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts deleted file mode 100644 index 45889924..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/genesis.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Minter, MinterAmino, MinterSDKType, Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateAmino { - /** minter is a space for holding current inflation information. */ - minter?: MinterAmino; - /** params defines all the paramaters of the module. */ - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/genesis.js b/packages/api/dist/cosmos/mint/v1beta1/genesis.js deleted file mode 100644 index 3a147aff..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/genesis.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const mint_1 = require("./mint"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - minter: mint_1.Minter.fromPartial({}), - params: mint_1.Params.fromPartial({}) - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.minter !== undefined) { - mint_1.Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); - } - if (message.params !== undefined) { - mint_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minter = mint_1.Minter.decode(reader, reader.uint32()); - break; - case 2: - message.params = mint_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.minter = object.minter !== undefined && object.minter !== null ? mint_1.Minter.fromPartial(object.minter) : undefined; - message.params = object.params !== undefined && object.params !== null ? mint_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.minter !== undefined && object.minter !== null) { - message.minter = mint_1.Minter.fromAmino(object.minter); - } - if (object.params !== undefined && object.params !== null) { - message.params = mint_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.minter = message.minter ? mint_1.Minter.toAmino(message.minter) : undefined; - obj.params = message.params ? mint_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts b/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts deleted file mode 100644 index 8b858c4d..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/mint.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -export interface MinterProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Minter"; - value: Uint8Array; -} -/** Minter represents the minting state. */ -export interface MinterAmino { - /** current annual inflation rate */ - inflation?: string; - /** current annual expected provisions */ - annual_provisions?: string; -} -export interface MinterAminoMsg { - type: "cosmos-sdk/Minter"; - value: MinterAmino; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: bigint; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.Params"; - value: Uint8Array; -} -/** Params holds parameters for the mint module. */ -export interface ParamsAmino { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** expected blocks per year */ - blocks_per_year?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: bigint; -} -export declare const Minter: { - typeUrl: string; - encode(message: Minter, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Minter; - fromPartial(object: Partial): Minter; - fromAmino(object: MinterAmino): Minter; - toAmino(message: Minter): MinterAmino; - fromAminoMsg(object: MinterAminoMsg): Minter; - toAminoMsg(message: Minter): MinterAminoMsg; - fromProtoMsg(message: MinterProtoMsg): Minter; - toProto(message: Minter): Uint8Array; - toProtoMsg(message: Minter): MinterProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/mint.js b/packages/api/dist/cosmos/mint/v1beta1/mint.js deleted file mode 100644 index e52ef6c1..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/mint.js +++ /dev/null @@ -1,216 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Params = exports.Minter = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -const math_1 = require("@cosmjs/math"); -function createBaseMinter() { - return { - inflation: "", - annualProvisions: "" - }; -} -exports.Minter = { - typeUrl: "/cosmos.mint.v1beta1.Minter", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.inflation !== "") { - writer.uint32(10).string(math_1.Decimal.fromUserInput(message.inflation, 18).atomics); - } - if (message.annualProvisions !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.annualProvisions, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMinter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.annualProvisions = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMinter(); - message.inflation = object.inflation ?? ""; - message.annualProvisions = object.annualProvisions ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMinter(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = object.inflation; - } - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = object.annual_provisions; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.inflation = message.inflation === "" ? undefined : message.inflation; - obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; - return obj; - }, - fromAminoMsg(object) { - return exports.Minter.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Minter", - value: exports.Minter.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Minter.decode(message.value); - }, - toProto(message) { - return exports.Minter.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.Minter", - value: exports.Minter.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - mintDenom: "", - inflationRateChange: "", - inflationMax: "", - inflationMin: "", - goalBonded: "", - blocksPerYear: BigInt(0) - }; -} -exports.Params = { - typeUrl: "/cosmos.mint.v1beta1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.mintDenom !== "") { - writer.uint32(10).string(message.mintDenom); - } - if (message.inflationRateChange !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.inflationRateChange, 18).atomics); - } - if (message.inflationMax !== "") { - writer.uint32(26).string(math_1.Decimal.fromUserInput(message.inflationMax, 18).atomics); - } - if (message.inflationMin !== "") { - writer.uint32(34).string(math_1.Decimal.fromUserInput(message.inflationMin, 18).atomics); - } - if (message.goalBonded !== "") { - writer.uint32(42).string(math_1.Decimal.fromUserInput(message.goalBonded, 18).atomics); - } - if (message.blocksPerYear !== BigInt(0)) { - writer.uint32(48).uint64(message.blocksPerYear); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mintDenom = reader.string(); - break; - case 2: - message.inflationRateChange = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.inflationMax = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.inflationMin = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 5: - message.goalBonded = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 6: - message.blocksPerYear = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.mintDenom = object.mintDenom ?? ""; - message.inflationRateChange = object.inflationRateChange ?? ""; - message.inflationMax = object.inflationMax ?? ""; - message.inflationMin = object.inflationMin ?? ""; - message.goalBonded = object.goalBonded ?? ""; - message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.mint_denom !== undefined && object.mint_denom !== null) { - message.mintDenom = object.mint_denom; - } - if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { - message.inflationRateChange = object.inflation_rate_change; - } - if (object.inflation_max !== undefined && object.inflation_max !== null) { - message.inflationMax = object.inflation_max; - } - if (object.inflation_min !== undefined && object.inflation_min !== null) { - message.inflationMin = object.inflation_min; - } - if (object.goal_bonded !== undefined && object.goal_bonded !== null) { - message.goalBonded = object.goal_bonded; - } - if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { - message.blocksPerYear = BigInt(object.blocks_per_year); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; - obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; - obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; - obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; - obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; - obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.d.ts deleted file mode 100644 index 34ffa9b1..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.d.ts +++ /dev/null @@ -1,224 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequest { -} -export interface QueryInflationRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; - value: Uint8Array; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestAmino { -} -export interface QueryInflationRequestAminoMsg { - type: "cosmos-sdk/QueryInflationRequest"; - value: QueryInflationRequestAmino; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestSDKType { -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponse { - /** inflation is the current minting inflation value. */ - inflation: Uint8Array; -} -export interface QueryInflationResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; - value: Uint8Array; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseAmino { - /** inflation is the current minting inflation value. */ - inflation?: string; -} -export interface QueryInflationResponseAminoMsg { - type: "cosmos-sdk/QueryInflationResponse"; - value: QueryInflationResponseAmino; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseSDKType { - inflation: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequest { -} -export interface QueryAnnualProvisionsRequestProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestAmino { -} -export interface QueryAnnualProvisionsRequestAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsRequest"; - value: QueryAnnualProvisionsRequestAmino; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestSDKType { -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponse { - /** annual_provisions is the current minting annual provisions value. */ - annualProvisions: Uint8Array; -} -export interface QueryAnnualProvisionsResponseProtoMsg { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; - value: Uint8Array; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseAmino { - /** annual_provisions is the current minting annual provisions value. */ - annual_provisions?: string; -} -export interface QueryAnnualProvisionsResponseAminoMsg { - type: "cosmos-sdk/QueryAnnualProvisionsResponse"; - value: QueryAnnualProvisionsResponseAmino; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseSDKType { - annual_provisions: Uint8Array; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryInflationRequest: { - typeUrl: string; - encode(_: QueryInflationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationRequest; - fromPartial(_: Partial): QueryInflationRequest; - fromAmino(_: QueryInflationRequestAmino): QueryInflationRequest; - toAmino(_: QueryInflationRequest): QueryInflationRequestAmino; - fromAminoMsg(object: QueryInflationRequestAminoMsg): QueryInflationRequest; - toAminoMsg(message: QueryInflationRequest): QueryInflationRequestAminoMsg; - fromProtoMsg(message: QueryInflationRequestProtoMsg): QueryInflationRequest; - toProto(message: QueryInflationRequest): Uint8Array; - toProtoMsg(message: QueryInflationRequest): QueryInflationRequestProtoMsg; -}; -export declare const QueryInflationResponse: { - typeUrl: string; - encode(message: QueryInflationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInflationResponse; - fromPartial(object: Partial): QueryInflationResponse; - fromAmino(object: QueryInflationResponseAmino): QueryInflationResponse; - toAmino(message: QueryInflationResponse): QueryInflationResponseAmino; - fromAminoMsg(object: QueryInflationResponseAminoMsg): QueryInflationResponse; - toAminoMsg(message: QueryInflationResponse): QueryInflationResponseAminoMsg; - fromProtoMsg(message: QueryInflationResponseProtoMsg): QueryInflationResponse; - toProto(message: QueryInflationResponse): Uint8Array; - toProtoMsg(message: QueryInflationResponse): QueryInflationResponseProtoMsg; -}; -export declare const QueryAnnualProvisionsRequest: { - typeUrl: string; - encode(_: QueryAnnualProvisionsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; - fromPartial(_: Partial): QueryAnnualProvisionsRequest; - fromAmino(_: QueryAnnualProvisionsRequestAmino): QueryAnnualProvisionsRequest; - toAmino(_: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAmino; - fromAminoMsg(object: QueryAnnualProvisionsRequestAminoMsg): QueryAnnualProvisionsRequest; - toAminoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestAminoMsg; - fromProtoMsg(message: QueryAnnualProvisionsRequestProtoMsg): QueryAnnualProvisionsRequest; - toProto(message: QueryAnnualProvisionsRequest): Uint8Array; - toProtoMsg(message: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequestProtoMsg; -}; -export declare const QueryAnnualProvisionsResponse: { - typeUrl: string; - encode(message: QueryAnnualProvisionsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; - fromPartial(object: Partial): QueryAnnualProvisionsResponse; - fromAmino(object: QueryAnnualProvisionsResponseAmino): QueryAnnualProvisionsResponse; - toAmino(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAmino; - fromAminoMsg(object: QueryAnnualProvisionsResponseAminoMsg): QueryAnnualProvisionsResponse; - toAminoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseAminoMsg; - fromProtoMsg(message: QueryAnnualProvisionsResponseProtoMsg): QueryAnnualProvisionsResponse; - toProto(message: QueryAnnualProvisionsResponse): Uint8Array; - toProtoMsg(message: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.js b/packages/api/dist/cosmos/mint/v1beta1/query.js deleted file mode 100644 index 83d865e9..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.js +++ /dev/null @@ -1,382 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryAnnualProvisionsResponse = exports.QueryAnnualProvisionsRequest = exports.QueryInflationResponse = exports.QueryInflationRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; -//@ts-nocheck -const mint_1 = require("./mint"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: mint_1.Params.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - mint_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = mint_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? mint_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = mint_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? mint_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryInflationRequest() { - return {}; -} -exports.QueryInflationRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryInflationRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryInflationRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryInflationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryInflationRequest", - value: exports.QueryInflationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryInflationRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryInflationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - value: exports.QueryInflationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInflationResponse() { - return { - inflation: new Uint8Array() - }; -} -exports.QueryInflationResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.inflation.length !== 0) { - writer.uint32(10).bytes(message.inflation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInflationResponse(); - message.inflation = object.inflation ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryInflationResponse(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = (0, helpers_1.bytesFromBase64)(object.inflation); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.inflation = message.inflation ? (0, helpers_1.base64FromBytes)(message.inflation) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryInflationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryInflationResponse", - value: exports.QueryInflationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryInflationResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryInflationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - value: exports.QueryInflationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsRequest() { - return {}; -} -exports.QueryAnnualProvisionsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnnualProvisionsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAnnualProvisionsRequest", - value: exports.QueryAnnualProvisionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAnnualProvisionsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAnnualProvisionsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - value: exports.QueryAnnualProvisionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsResponse() { - return { - annualProvisions: new Uint8Array() - }; -} -exports.QueryAnnualProvisionsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.annualProvisions.length !== 0) { - writer.uint32(10).bytes(message.annualProvisions); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annualProvisions = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnnualProvisionsResponse(); - message.annualProvisions = object.annualProvisions ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnnualProvisionsResponse(); - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = (0, helpers_1.bytesFromBase64)(object.annual_provisions); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.annual_provisions = message.annualProvisions ? (0, helpers_1.base64FromBytes)(message.annualProvisions) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnnualProvisionsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAnnualProvisionsResponse", - value: exports.QueryAnnualProvisionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAnnualProvisionsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAnnualProvisionsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - value: exports.QueryAnnualProvisionsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts deleted file mode 100644 index ba5133f7..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - inflation(_params?: QueryInflationRequest): Promise; - annualProvisions(_params?: QueryAnnualProvisionsRequest): Promise; -} diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js b/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js deleted file mode 100644 index 496c82e1..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.lcd.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - /* Params returns the total set of minting parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/params`; - return await this.req.get(endpoint); - } - /* Inflation returns the current minting inflation value. */ - async inflation(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/inflation`; - return await this.req.get(endpoint); - } - /* AnnualProvisions current minting annual provisions value. */ - async annualProvisions(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/annual_provisions`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 83fc7060..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** Params returns the total set of minting parameters. */ - params(request?: QueryParamsRequest): Promise; - /** Inflation returns the current minting inflation value. */ - inflation(request?: QueryInflationRequest): Promise; - /** AnnualProvisions current minting annual provisions value. */ - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js deleted file mode 100644 index 51b0ac0b..00000000 --- a/packages/api/dist/cosmos/mint/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - inflation(request = {}) { - const data = query_1.QueryInflationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); - return promise.then(data => query_1.QueryInflationResponse.decode(new binary_1.BinaryReader(data))); - } - annualProvisions(request = {}) { - const data = query_1.QueryAnnualProvisionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); - return promise.then(data => query_1.QueryAnnualProvisionsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - inflation(request) { - return queryService.inflation(request); - }, - annualProvisions(request) { - return queryService.annualProvisions(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/msg/v1/msg.d.ts b/packages/api/dist/cosmos/msg/v1/msg.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/cosmos/msg/v1/msg.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/cosmos/msg/v1/msg.js b/packages/api/dist/cosmos/msg/v1/msg.js deleted file mode 100644 index c8ad2e54..00000000 --- a/packages/api/dist/cosmos/msg/v1/msg.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts b/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts deleted file mode 100644 index 1a977cfb..00000000 --- a/packages/api/dist/cosmos/orm/module/v1alpha1/module.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface Module { -} -export interface ModuleProtoMsg { - typeUrl: "/cosmos.orm.module.v1alpha1.Module"; - value: Uint8Array; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleAmino { -} -export interface ModuleAminoMsg { - type: "cosmos-sdk/Module"; - value: ModuleAmino; -} -/** - * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. - */ -export interface ModuleSDKType { -} -export declare const Module: { - typeUrl: string; - encode(_: Module, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Module; - fromPartial(_: Partial): Module; - fromAmino(_: ModuleAmino): Module; - toAmino(_: Module): ModuleAmino; - fromAminoMsg(object: ModuleAminoMsg): Module; - toAminoMsg(message: Module): ModuleAminoMsg; - fromProtoMsg(message: ModuleProtoMsg): Module; - toProto(message: Module): Uint8Array; - toProtoMsg(message: Module): ModuleProtoMsg; -}; diff --git a/packages/api/dist/cosmos/orm/module/v1alpha1/module.js b/packages/api/dist/cosmos/orm/module/v1alpha1/module.js deleted file mode 100644 index 398503e0..00000000 --- a/packages/api/dist/cosmos/orm/module/v1alpha1/module.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Module = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseModule() { - return {}; -} -exports.Module = { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseModule(); - return message; - }, - fromAmino(_) { - const message = createBaseModule(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.Module.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Module", - value: exports.Module.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Module.decode(message.value); - }, - toProto(message) { - return exports.Module.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - value: exports.Module.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/orm/v1/orm.d.ts b/packages/api/dist/cosmos/orm/v1/orm.d.ts deleted file mode 100644 index 766c58ab..00000000 --- a/packages/api/dist/cosmos/orm/v1/orm.d.ts +++ /dev/null @@ -1,280 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey?: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface TableDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.TableDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorAmino { - /** primary_key defines the primary key for the table. */ - primary_key?: PrimaryKeyDescriptorAmino; - /** index defines one or more secondary indexes. */ - index?: SecondaryIndexDescriptorAmino[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface TableDescriptorAminoMsg { - type: "cosmos-sdk/TableDescriptor"; - value: TableDescriptorAmino; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key?: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -export interface PrimaryKeyDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorAmino { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields?: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - auto_increment?: boolean; -} -export interface PrimaryKeyDescriptorAminoMsg { - type: "cosmos-sdk/PrimaryKeyDescriptor"; - value: PrimaryKeyDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -export interface SecondaryIndexDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; - value: Uint8Array; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorAmino { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields?: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id?: number; - /** unique specifies that this an unique index. */ - unique?: boolean; -} -export interface SecondaryIndexDescriptorAminoMsg { - type: "cosmos-sdk/SecondaryIndexDescriptor"; - value: SecondaryIndexDescriptorAmino; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -export interface SingletonDescriptorProtoMsg { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; - value: Uint8Array; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorAmino { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id?: number; -} -export interface SingletonDescriptorAminoMsg { - type: "cosmos-sdk/SingletonDescriptor"; - value: SingletonDescriptorAmino; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} -export declare const TableDescriptor: { - typeUrl: string; - encode(message: TableDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor; - fromPartial(object: Partial): TableDescriptor; - fromAmino(object: TableDescriptorAmino): TableDescriptor; - toAmino(message: TableDescriptor): TableDescriptorAmino; - fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor; - toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg; - fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor; - toProto(message: TableDescriptor): Uint8Array; - toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg; -}; -export declare const PrimaryKeyDescriptor: { - typeUrl: string; - encode(message: PrimaryKeyDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor; - fromPartial(object: Partial): PrimaryKeyDescriptor; - fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor; - toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino; - fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor; - toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg; - fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor; - toProto(message: PrimaryKeyDescriptor): Uint8Array; - toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg; -}; -export declare const SecondaryIndexDescriptor: { - typeUrl: string; - encode(message: SecondaryIndexDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor; - fromPartial(object: Partial): SecondaryIndexDescriptor; - fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor; - toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino; - fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor; - toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg; - fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor; - toProto(message: SecondaryIndexDescriptor): Uint8Array; - toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg; -}; -export declare const SingletonDescriptor: { - typeUrl: string; - encode(message: SingletonDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor; - fromPartial(object: Partial): SingletonDescriptor; - fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor; - toAmino(message: SingletonDescriptor): SingletonDescriptorAmino; - fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor; - toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg; - fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor; - toProto(message: SingletonDescriptor): Uint8Array; - toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg; -}; diff --git a/packages/api/dist/cosmos/orm/v1/orm.js b/packages/api/dist/cosmos/orm/v1/orm.js deleted file mode 100644 index 91e61afc..00000000 --- a/packages/api/dist/cosmos/orm/v1/orm.js +++ /dev/null @@ -1,344 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SingletonDescriptor = exports.SecondaryIndexDescriptor = exports.PrimaryKeyDescriptor = exports.TableDescriptor = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseTableDescriptor() { - return { - primaryKey: undefined, - index: [], - id: 0 - }; -} -exports.TableDescriptor = { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.primaryKey !== undefined) { - exports.PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.index) { - exports.SecondaryIndexDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.id !== 0) { - writer.uint32(24).uint32(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTableDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primaryKey = exports.PrimaryKeyDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.index.push(exports.SecondaryIndexDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTableDescriptor(); - message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? exports.PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; - message.index = object.index?.map(e => exports.SecondaryIndexDescriptor.fromPartial(e)) || []; - message.id = object.id ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseTableDescriptor(); - if (object.primary_key !== undefined && object.primary_key !== null) { - message.primaryKey = exports.PrimaryKeyDescriptor.fromAmino(object.primary_key); - } - message.index = object.index?.map(e => exports.SecondaryIndexDescriptor.fromAmino(e)) || []; - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.primary_key = message.primaryKey ? exports.PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; - if (message.index) { - obj.index = message.index.map(e => e ? exports.SecondaryIndexDescriptor.toAmino(e) : undefined); - } - else { - obj.index = message.index; - } - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return exports.TableDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TableDescriptor", - value: exports.TableDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TableDescriptor.decode(message.value); - }, - toProto(message) { - return exports.TableDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - value: exports.TableDescriptor.encode(message).finish() - }; - } -}; -function createBasePrimaryKeyDescriptor() { - return { - fields: "", - autoIncrement: false - }; -} -exports.PrimaryKeyDescriptor = { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.autoIncrement === true) { - writer.uint32(16).bool(message.autoIncrement); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrimaryKeyDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.autoIncrement = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrimaryKeyDescriptor(); - message.fields = object.fields ?? ""; - message.autoIncrement = object.autoIncrement ?? false; - return message; - }, - fromAmino(object) { - const message = createBasePrimaryKeyDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.auto_increment !== undefined && object.auto_increment !== null) { - message.autoIncrement = object.auto_increment; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; - return obj; - }, - fromAminoMsg(object) { - return exports.PrimaryKeyDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrimaryKeyDescriptor", - value: exports.PrimaryKeyDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PrimaryKeyDescriptor.decode(message.value); - }, - toProto(message) { - return exports.PrimaryKeyDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - value: exports.PrimaryKeyDescriptor.encode(message).finish() - }; - } -}; -function createBaseSecondaryIndexDescriptor() { - return { - fields: "", - id: 0, - unique: false - }; -} -exports.SecondaryIndexDescriptor = { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.id !== 0) { - writer.uint32(16).uint32(message.id); - } - if (message.unique === true) { - writer.uint32(24).bool(message.unique); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSecondaryIndexDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.id = reader.uint32(); - break; - case 3: - message.unique = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSecondaryIndexDescriptor(); - message.fields = object.fields ?? ""; - message.id = object.id ?? 0; - message.unique = object.unique ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSecondaryIndexDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.unique !== undefined && object.unique !== null) { - message.unique = object.unique; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.id = message.id === 0 ? undefined : message.id; - obj.unique = message.unique === false ? undefined : message.unique; - return obj; - }, - fromAminoMsg(object) { - return exports.SecondaryIndexDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SecondaryIndexDescriptor", - value: exports.SecondaryIndexDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SecondaryIndexDescriptor.decode(message.value); - }, - toProto(message) { - return exports.SecondaryIndexDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - value: exports.SecondaryIndexDescriptor.encode(message).finish() - }; - } -}; -function createBaseSingletonDescriptor() { - return { - id: 0 - }; -} -exports.SingletonDescriptor = { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSingletonDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSingletonDescriptor(); - message.id = object.id ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseSingletonDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return exports.SingletonDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SingletonDescriptor", - value: exports.SingletonDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SingletonDescriptor.decode(message.value); - }, - toProto(message) { - return exports.SingletonDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - value: exports.SingletonDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/params.d.ts b/packages/api/dist/cosmos/params/v1beta1/params.d.ts deleted file mode 100644 index 3573d703..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/params.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChange[]; -} -export interface ParameterChangeProposalProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; - value: Uint8Array; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalAmino { - title?: string; - description?: string; - changes?: ParamChangeAmino[]; -} -export interface ParameterChangeProposalAminoMsg { - type: "cosmos-sdk/ParameterChangeProposal"; - value: ParameterChangeProposalAmino; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - $typeUrl?: "/cosmos.params.v1beta1.ParameterChangeProposal"; - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -export interface ParamChangeProtoMsg { - typeUrl: "/cosmos.params.v1beta1.ParamChange"; - value: Uint8Array; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeAmino { - subspace?: string; - key?: string; - value?: string; -} -export interface ParamChangeAminoMsg { - type: "cosmos-sdk/ParamChange"; - value: ParamChangeAmino; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} -export declare const ParameterChangeProposal: { - typeUrl: string; - encode(message: ParameterChangeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ParameterChangeProposal; - fromPartial(object: Partial): ParameterChangeProposal; - fromAmino(object: ParameterChangeProposalAmino): ParameterChangeProposal; - toAmino(message: ParameterChangeProposal): ParameterChangeProposalAmino; - fromAminoMsg(object: ParameterChangeProposalAminoMsg): ParameterChangeProposal; - toAminoMsg(message: ParameterChangeProposal): ParameterChangeProposalAminoMsg; - fromProtoMsg(message: ParameterChangeProposalProtoMsg): ParameterChangeProposal; - toProto(message: ParameterChangeProposal): Uint8Array; - toProtoMsg(message: ParameterChangeProposal): ParameterChangeProposalProtoMsg; -}; -export declare const ParamChange: { - typeUrl: string; - encode(message: ParamChange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ParamChange; - fromPartial(object: Partial): ParamChange; - fromAmino(object: ParamChangeAmino): ParamChange; - toAmino(message: ParamChange): ParamChangeAmino; - fromAminoMsg(object: ParamChangeAminoMsg): ParamChange; - toAminoMsg(message: ParamChange): ParamChangeAminoMsg; - fromProtoMsg(message: ParamChangeProtoMsg): ParamChange; - toProto(message: ParamChange): Uint8Array; - toProtoMsg(message: ParamChange): ParamChangeProtoMsg; -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/params.js b/packages/api/dist/cosmos/params/v1beta1/params.js deleted file mode 100644 index d67e5990..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/params.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ParamChange = exports.ParameterChangeProposal = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseParameterChangeProposal() { - return { - $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - title: "", - description: "", - changes: [] - }; -} -exports.ParameterChangeProposal = { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - for (const v of message.changes) { - exports.ParamChange.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParameterChangeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.changes.push(exports.ParamChange.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParameterChangeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.changes = object.changes?.map(e => exports.ParamChange.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParameterChangeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.changes = object.changes?.map(e => exports.ParamChange.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - if (message.changes) { - obj.changes = message.changes.map(e => e ? exports.ParamChange.toAmino(e) : undefined); - } - else { - obj.changes = message.changes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ParameterChangeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ParameterChangeProposal", - value: exports.ParameterChangeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ParameterChangeProposal.decode(message.value); - }, - toProto(message) { - return exports.ParameterChangeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - value: exports.ParameterChangeProposal.encode(message).finish() - }; - } -}; -function createBaseParamChange() { - return { - subspace: "", - key: "", - value: "" - }; -} -exports.ParamChange = { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - if (message.value !== "") { - writer.uint32(26).string(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParamChange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - case 3: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParamChange(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseParamChange(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object) { - return exports.ParamChange.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ParamChange", - value: exports.ParamChange.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ParamChange.decode(message.value); - }, - toProto(message) { - return exports.ParamChange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - value: exports.ParamChange.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.d.ts deleted file mode 100644 index 400fcc3c..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.d.ts +++ /dev/null @@ -1,221 +0,0 @@ -import { ParamChange, ParamChangeAmino, ParamChangeSDKType } from "./params"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** subspace defines the module to query the parameter for. */ - subspace: string; - /** key defines the key of the parameter in the subspace. */ - key: string; -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { - /** subspace defines the module to query the parameter for. */ - subspace?: string; - /** key defines the key of the parameter in the subspace. */ - key?: string; -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - subspace: string; - key: string; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** param defines the queried parameter. */ - param: ParamChange; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** param defines the queried parameter. */ - param?: ParamChangeAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - param: ParamChangeSDKType; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequest { -} -export interface QuerySubspacesRequestProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; - value: Uint8Array; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestAmino { -} -export interface QuerySubspacesRequestAminoMsg { - type: "cosmos-sdk/QuerySubspacesRequest"; - value: QuerySubspacesRequestAmino; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesRequestSDKType { -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponse { - subspaces: Subspace[]; -} -export interface QuerySubspacesResponseProtoMsg { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; - value: Uint8Array; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseAmino { - subspaces?: SubspaceAmino[]; -} -export interface QuerySubspacesResponseAminoMsg { - type: "cosmos-sdk/QuerySubspacesResponse"; - value: QuerySubspacesResponseAmino; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface QuerySubspacesResponseSDKType { - subspaces: SubspaceSDKType[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface Subspace { - subspace: string; - keys: string[]; -} -export interface SubspaceProtoMsg { - typeUrl: "/cosmos.params.v1beta1.Subspace"; - value: Uint8Array; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceAmino { - subspace?: string; - keys?: string[]; -} -export interface SubspaceAminoMsg { - type: "cosmos-sdk/Subspace"; - value: SubspaceAmino; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - */ -export interface SubspaceSDKType { - subspace: string; - keys: string[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(message: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(object: Partial): QueryParamsRequest; - fromAmino(object: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(message: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QuerySubspacesRequest: { - typeUrl: string; - encode(_: QuerySubspacesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesRequest; - fromPartial(_: Partial): QuerySubspacesRequest; - fromAmino(_: QuerySubspacesRequestAmino): QuerySubspacesRequest; - toAmino(_: QuerySubspacesRequest): QuerySubspacesRequestAmino; - fromAminoMsg(object: QuerySubspacesRequestAminoMsg): QuerySubspacesRequest; - toAminoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestAminoMsg; - fromProtoMsg(message: QuerySubspacesRequestProtoMsg): QuerySubspacesRequest; - toProto(message: QuerySubspacesRequest): Uint8Array; - toProtoMsg(message: QuerySubspacesRequest): QuerySubspacesRequestProtoMsg; -}; -export declare const QuerySubspacesResponse: { - typeUrl: string; - encode(message: QuerySubspacesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySubspacesResponse; - fromPartial(object: Partial): QuerySubspacesResponse; - fromAmino(object: QuerySubspacesResponseAmino): QuerySubspacesResponse; - toAmino(message: QuerySubspacesResponse): QuerySubspacesResponseAmino; - fromAminoMsg(object: QuerySubspacesResponseAminoMsg): QuerySubspacesResponse; - toAminoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseAminoMsg; - fromProtoMsg(message: QuerySubspacesResponseProtoMsg): QuerySubspacesResponse; - toProto(message: QuerySubspacesResponse): Uint8Array; - toProtoMsg(message: QuerySubspacesResponse): QuerySubspacesResponseProtoMsg; -}; -export declare const Subspace: { - typeUrl: string; - encode(message: Subspace, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Subspace; - fromPartial(object: Partial): Subspace; - fromAmino(object: SubspaceAmino): Subspace; - toAmino(message: Subspace): SubspaceAmino; - fromAminoMsg(object: SubspaceAminoMsg): Subspace; - toAminoMsg(message: Subspace): SubspaceAminoMsg; - fromProtoMsg(message: SubspaceProtoMsg): Subspace; - toProto(message: Subspace): Uint8Array; - toProtoMsg(message: Subspace): SubspaceProtoMsg; -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.js b/packages/api/dist/cosmos/params/v1beta1/query.js deleted file mode 100644 index 70f181aa..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.js +++ /dev/null @@ -1,368 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Subspace = exports.QuerySubspacesResponse = exports.QuerySubspacesRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; -//@ts-nocheck -const params_1 = require("./params"); -const binary_1 = require("../../../binary"); -function createBaseQueryParamsRequest() { - return { - subspace: "", - key: "" - }; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - param: params_1.ParamChange.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.param !== undefined) { - params_1.ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.param = params_1.ParamChange.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.param = object.param !== undefined && object.param !== null ? params_1.ParamChange.fromPartial(object.param) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.param !== undefined && object.param !== null) { - message.param = params_1.ParamChange.fromAmino(object.param); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.param = message.param ? params_1.ParamChange.toAmino(message.param) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesRequest() { - return {}; -} -exports.QuerySubspacesRequest = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySubspacesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySubspacesRequest", - value: exports.QuerySubspacesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySubspacesRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySubspacesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - value: exports.QuerySubspacesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesResponse() { - return { - subspaces: [] - }; -} -exports.QuerySubspacesResponse = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.subspaces) { - exports.Subspace.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspaces.push(exports.Subspace.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => exports.Subspace.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => exports.Subspace.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.subspaces) { - obj.subspaces = message.subspaces.map(e => e ? exports.Subspace.toAmino(e) : undefined); - } - else { - obj.subspaces = message.subspaces; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySubspacesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySubspacesResponse", - value: exports.QuerySubspacesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QuerySubspacesResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySubspacesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - value: exports.QuerySubspacesResponse.encode(message).finish() - }; - } -}; -function createBaseSubspace() { - return { - subspace: "", - keys: [] - }; -} -exports.Subspace = { - typeUrl: "/cosmos.params.v1beta1.Subspace", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - for (const v of message.keys) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSubspace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.keys.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSubspace(); - message.subspace = object.subspace ?? ""; - message.keys = object.keys?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSubspace(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - message.keys = object.keys?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - if (message.keys) { - obj.keys = message.keys.map(e => e); - } - else { - obj.keys = message.keys; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Subspace.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Subspace", - value: exports.Subspace.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Subspace.decode(message.value); - }, - toProto(message) { - return exports.Subspace.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.Subspace", - value: exports.Subspace.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts deleted file mode 100644 index aaa5da47..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(params: QueryParamsRequest): Promise; - subspaces(_params?: QuerySubspacesRequest): Promise; -} diff --git a/packages/api/dist/cosmos/params/v1beta1/query.lcd.js b/packages/api/dist/cosmos/params/v1beta1/query.lcd.js deleted file mode 100644 index 1eb8b478..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.lcd.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - /* Params queries a specific parameter of a module, given its subspace and - key. */ - async params(params) { - const options = { - params: {} - }; - if (typeof params?.subspace !== "undefined") { - options.params.subspace = params.subspace; - } - if (typeof params?.key !== "undefined") { - options.params.key = params.key; - } - const endpoint = `cosmos/params/v1beta1/params`; - return await this.req.get(endpoint, options); - } - /* Subspaces queries for all registered subspaces and all keys for a subspace. - - Since: cosmos-sdk 0.46 */ - async subspaces(_params = {}) { - const endpoint = `cosmos/params/v1beta1/subspaces`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 2fd53465..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * Params queries a specific parameter of a module, given its subspace and - * key. - */ - params(request: QueryParamsRequest): Promise; - /** - * Subspaces queries for all registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - */ - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js deleted file mode 100644 index 8172a151..00000000 --- a/packages/api/dist/cosmos/params/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - params(request) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - subspaces(request = {}) { - const data = query_1.QuerySubspacesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); - return promise.then(data => query_1.QuerySubspacesResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - subspaces(request) { - return queryService.subspaces(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/rpc.query.d.ts b/packages/api/dist/cosmos/rpc.query.d.ts deleted file mode 100644 index b1243438..00000000 --- a/packages/api/dist/cosmos/rpc.query.d.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: import("./auth/v1beta1/query").QueryAccountsRequest): Promise; - account(request: import("./auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("./auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("./auth/v1beta1/query").QueryParamsRequest): Promise; - moduleAccounts(request?: import("./auth/v1beta1/query").QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: import("./auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("./auth/v1beta1/query").Bech32PrefixRequest): Promise; - addressBytesToString(request: import("./auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("./auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("./authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("./authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("./authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("./bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("./bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("./bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("./bank/v1beta1/query").QueryTotalSupplyRequest): Promise; - supplyOf(request: import("./bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("./bank/v1beta1/query").QueryParamsRequest): Promise; - denomMetadata(request: import("./bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("./bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; - denomOwners(request: import("./bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("./base/node/v1beta1/query").ConfigRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("./distribution/v1beta1/query").QueryParamsRequest): Promise; - validatorOutstandingRewards(request: import("./distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("./distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("./distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("./distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("./distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("./distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("./distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("./distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("./feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("./feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("./feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("./gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("./gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("./gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("./gov/v1/query").QueryVotesRequest): Promise; - params(request: import("./gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("./gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("./gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("./gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("./gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("./gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("./gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("./gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("./gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("./gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("./gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("./gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("./group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("./group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("./group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("./group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("./group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("./group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("./group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("./group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("./group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("./group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("./group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("./group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("./group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("./mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("./mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("./mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("./params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("./params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("./staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("./staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("./staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("./staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("./staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("./staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("./staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("./staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("./staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("./staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("./staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("./staking/v1beta1/query").QueryPoolRequest): Promise; - params(request?: import("./staking/v1beta1/query").QueryParamsRequest): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("./tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("./tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("./tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("./tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("./tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("./upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; - appliedPlan(request: import("./upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("./upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("./upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("./upgrade/v1beta1/query").QueryAuthorityRequest): Promise; - }; - }; - }; -}>; diff --git a/packages/api/dist/cosmos/rpc.query.js b/packages/api/dist/cosmos/rpc.query.js deleted file mode 100644 index ab3b8356..00000000 --- a/packages/api/dist/cosmos/rpc.query.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCQueryClient = void 0; -//@ts-nocheck -const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); -const stargate_1 = require("@cosmjs/stargate"); -const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); - const client = new stargate_1.QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - gov: { - v1: (await Promise.resolve().then(() => __importStar(require("./gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), - v1beta1: (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - group: { - v1: (await Promise.resolve().then(() => __importStar(require("./group/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - } - } - }; -}; -exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/cosmos/rpc.tx.d.ts b/packages/api/dist/cosmos/rpc.tx.d.ts deleted file mode 100644 index aef58b4a..00000000 --- a/packages/api/dist/cosmos/rpc.tx.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("./authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("./bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("./distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("./gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("./gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("./group/v1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("./staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("./upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("./vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; -}>; diff --git a/packages/api/dist/cosmos/rpc.tx.js b/packages/api/dist/cosmos/rpc.tx.js deleted file mode 100644 index 6d5f2c86..00000000 --- a/packages/api/dist/cosmos/rpc.tx.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCMsgClient = void 0; -const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("./group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("./vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - } -}); -exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts b/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts deleted file mode 100644 index 73db1983..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/authz.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export declare enum AuthorizationType { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AUTHORIZATION_TYPE_UNSPECIFIED = 0, - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AUTHORIZATION_TYPE_DELEGATE = 1, - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AUTHORIZATION_TYPE_UNDELEGATE = 2, - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AUTHORIZATION_TYPE_REDELEGATE = 3, - UNRECOGNIZED = -1 -} -export declare const AuthorizationTypeSDKType: typeof AuthorizationType; -export declare const AuthorizationTypeAmino: typeof AuthorizationType; -export declare function authorizationTypeFromJSON(object: any): AuthorizationType; -export declare function authorizationTypeToJSON(object: AuthorizationType): string; -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorization { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - maxTokens?: Coin; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allowList?: StakeAuthorization_Validators; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - denyList?: StakeAuthorization_Validators; - /** authorization_type defines one of AuthorizationType. */ - authorizationType: AuthorizationType; -} -export interface StakeAuthorizationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; - value: Uint8Array; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationAmino { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - */ - max_tokens?: CoinAmino; - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - */ - allow_list?: StakeAuthorization_ValidatorsAmino; - /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ - deny_list?: StakeAuthorization_ValidatorsAmino; - /** authorization_type defines one of AuthorizationType. */ - authorization_type?: AuthorizationType; -} -export interface StakeAuthorizationAminoMsg { - type: "cosmos-sdk/StakeAuthorization"; - value: StakeAuthorizationAmino; -} -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - */ -export interface StakeAuthorizationSDKType { - $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"; - max_tokens?: CoinSDKType; - allow_list?: StakeAuthorization_ValidatorsSDKType; - deny_list?: StakeAuthorization_ValidatorsSDKType; - authorization_type: AuthorizationType; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_Validators { - address: string[]; -} -export interface StakeAuthorization_ValidatorsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validators"; - value: Uint8Array; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsAmino { - address?: string[]; -} -export interface StakeAuthorization_ValidatorsAminoMsg { - type: "cosmos-sdk/Validators"; - value: StakeAuthorization_ValidatorsAmino; -} -/** Validators defines list of validator addresses. */ -export interface StakeAuthorization_ValidatorsSDKType { - address: string[]; -} -export declare const StakeAuthorization: { - typeUrl: string; - encode(message: StakeAuthorization, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization; - fromPartial(object: Partial): StakeAuthorization; - fromAmino(object: StakeAuthorizationAmino): StakeAuthorization; - toAmino(message: StakeAuthorization): StakeAuthorizationAmino; - fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization; - toAminoMsg(message: StakeAuthorization): StakeAuthorizationAminoMsg; - fromProtoMsg(message: StakeAuthorizationProtoMsg): StakeAuthorization; - toProto(message: StakeAuthorization): Uint8Array; - toProtoMsg(message: StakeAuthorization): StakeAuthorizationProtoMsg; -}; -export declare const StakeAuthorization_Validators: { - typeUrl: string; - encode(message: StakeAuthorization_Validators, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): StakeAuthorization_Validators; - fromPartial(object: Partial): StakeAuthorization_Validators; - fromAmino(object: StakeAuthorization_ValidatorsAmino): StakeAuthorization_Validators; - toAmino(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAmino; - fromAminoMsg(object: StakeAuthorization_ValidatorsAminoMsg): StakeAuthorization_Validators; - toAminoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsAminoMsg; - fromProtoMsg(message: StakeAuthorization_ValidatorsProtoMsg): StakeAuthorization_Validators; - toProto(message: StakeAuthorization_Validators): Uint8Array; - toProtoMsg(message: StakeAuthorization_Validators): StakeAuthorization_ValidatorsProtoMsg; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/authz.js b/packages/api/dist/cosmos/staking/v1beta1/authz.js deleted file mode 100644 index 3642665f..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/authz.js +++ /dev/null @@ -1,240 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StakeAuthorization_Validators = exports.StakeAuthorization = exports.authorizationTypeToJSON = exports.authorizationTypeFromJSON = exports.AuthorizationTypeAmino = exports.AuthorizationTypeSDKType = exports.AuthorizationType = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -var AuthorizationType; -(function (AuthorizationType) { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNSPECIFIED"] = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED"; - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_DELEGATE"] = 1] = "AUTHORIZATION_TYPE_DELEGATE"; - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNDELEGATE"] = 2] = "AUTHORIZATION_TYPE_UNDELEGATE"; - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_REDELEGATE"] = 3] = "AUTHORIZATION_TYPE_REDELEGATE"; - AuthorizationType[AuthorizationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(AuthorizationType || (exports.AuthorizationType = AuthorizationType = {})); -exports.AuthorizationTypeSDKType = AuthorizationType; -exports.AuthorizationTypeAmino = AuthorizationType; -function authorizationTypeFromJSON(object) { - switch (object) { - case 0: - case "AUTHORIZATION_TYPE_UNSPECIFIED": - return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - case "AUTHORIZATION_TYPE_DELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; - case 2: - case "AUTHORIZATION_TYPE_UNDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; - case 3: - case "AUTHORIZATION_TYPE_REDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; - case -1: - case "UNRECOGNIZED": - default: - return AuthorizationType.UNRECOGNIZED; - } -} -exports.authorizationTypeFromJSON = authorizationTypeFromJSON; -function authorizationTypeToJSON(object) { - switch (object) { - case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: - return "AUTHORIZATION_TYPE_UNSPECIFIED"; - case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: - return "AUTHORIZATION_TYPE_DELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: - return "AUTHORIZATION_TYPE_UNDELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: - return "AUTHORIZATION_TYPE_REDELEGATE"; - case AuthorizationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.authorizationTypeToJSON = authorizationTypeToJSON; -function createBaseStakeAuthorization() { - return { - $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - maxTokens: undefined, - allowList: undefined, - denyList: undefined, - authorizationType: 0 - }; -} -exports.StakeAuthorization = { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.maxTokens !== undefined) { - coin_1.Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); - } - if (message.allowList !== undefined) { - exports.StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); - } - if (message.denyList !== undefined) { - exports.StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); - } - if (message.authorizationType !== 0) { - writer.uint32(32).int32(message.authorizationType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTokens = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 2: - message.allowList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 3: - message.denyList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 4: - message.authorizationType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStakeAuthorization(); - message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? coin_1.Coin.fromPartial(object.maxTokens) : undefined; - message.allowList = object.allowList !== undefined && object.allowList !== null ? exports.StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; - message.denyList = object.denyList !== undefined && object.denyList !== null ? exports.StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; - message.authorizationType = object.authorizationType ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseStakeAuthorization(); - if (object.max_tokens !== undefined && object.max_tokens !== null) { - message.maxTokens = coin_1.Coin.fromAmino(object.max_tokens); - } - if (object.allow_list !== undefined && object.allow_list !== null) { - message.allowList = exports.StakeAuthorization_Validators.fromAmino(object.allow_list); - } - if (object.deny_list !== undefined && object.deny_list !== null) { - message.denyList = exports.StakeAuthorization_Validators.fromAmino(object.deny_list); - } - if (object.authorization_type !== undefined && object.authorization_type !== null) { - message.authorizationType = object.authorization_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_tokens = message.maxTokens ? coin_1.Coin.toAmino(message.maxTokens) : undefined; - obj.allow_list = message.allowList ? exports.StakeAuthorization_Validators.toAmino(message.allowList) : undefined; - obj.deny_list = message.denyList ? exports.StakeAuthorization_Validators.toAmino(message.denyList) : undefined; - obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; - return obj; - }, - fromAminoMsg(object) { - return exports.StakeAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/StakeAuthorization", - value: exports.StakeAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.StakeAuthorization.decode(message.value); - }, - toProto(message) { - return exports.StakeAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: exports.StakeAuthorization.encode(message).finish() - }; - } -}; -function createBaseStakeAuthorization_Validators() { - return { - address: [] - }; -} -exports.StakeAuthorization_Validators = { - typeUrl: "/cosmos.staking.v1beta1.Validators", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.address) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization_Validators(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.address) { - obj.address = message.address.map(e => e); - } - else { - obj.address = message.address; - } - return obj; - }, - fromAminoMsg(object) { - return exports.StakeAuthorization_Validators.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Validators", - value: exports.StakeAuthorization_Validators.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.StakeAuthorization_Validators.decode(message.value); - }, - toProto(message) { - return exports.StakeAuthorization_Validators.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Validators", - value: exports.StakeAuthorization_Validators.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts b/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts deleted file mode 100644 index c91bdc1d..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/genesis.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, Validator, ValidatorAmino, ValidatorSDKType, Delegation, DelegationAmino, DelegationSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, Redelegation, RedelegationAmino, RedelegationSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - lastTotalPower: Uint8Array; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - lastValidatorPowers: LastValidatorPower[]; - /** delegations defines the validator set at genesis. */ - validators: Validator[]; - /** delegations defines the delegations active at genesis. */ - delegations: Delegation[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbondingDelegations: UnbondingDelegation[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations: Redelegation[]; - exported: boolean; -} -export interface GenesisStateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateAmino { - /** params defines all the paramaters of related to deposit. */ - params?: ParamsAmino; - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - */ - last_total_power?: string; - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - */ - last_validator_powers?: LastValidatorPowerAmino[]; - /** delegations defines the validator set at genesis. */ - validators?: ValidatorAmino[]; - /** delegations defines the delegations active at genesis. */ - delegations?: DelegationAmino[]; - /** unbonding_delegations defines the unbonding delegations active at genesis. */ - unbonding_delegations?: UnbondingDelegationAmino[]; - /** redelegations defines the redelegations active at genesis. */ - redelegations?: RedelegationAmino[]; - exported?: boolean; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the staking module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - last_total_power: Uint8Array; - last_validator_powers: LastValidatorPowerSDKType[]; - validators: ValidatorSDKType[]; - delegations: DelegationSDKType[]; - unbonding_delegations: UnbondingDelegationSDKType[]; - redelegations: RedelegationSDKType[]; - exported: boolean; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPower { - /** address is the address of the validator. */ - address: string; - /** power defines the power of the validator. */ - power: bigint; -} -export interface LastValidatorPowerProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; - value: Uint8Array; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerAmino { - /** address is the address of the validator. */ - address?: string; - /** power defines the power of the validator. */ - power?: string; -} -export interface LastValidatorPowerAminoMsg { - type: "cosmos-sdk/LastValidatorPower"; - value: LastValidatorPowerAmino; -} -/** LastValidatorPower required for validator set update logic. */ -export interface LastValidatorPowerSDKType { - address: string; - power: bigint; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const LastValidatorPower: { - typeUrl: string; - encode(message: LastValidatorPower, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower; - fromPartial(object: Partial): LastValidatorPower; - fromAmino(object: LastValidatorPowerAmino): LastValidatorPower; - toAmino(message: LastValidatorPower): LastValidatorPowerAmino; - fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower; - toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg; - fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower; - toProto(message: LastValidatorPower): Uint8Array; - toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/genesis.js b/packages/api/dist/cosmos/staking/v1beta1/genesis.js deleted file mode 100644 index f8fc75bf..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/genesis.js +++ /dev/null @@ -1,256 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LastValidatorPower = exports.GenesisState = void 0; -//@ts-nocheck -const staking_1 = require("./staking"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseGenesisState() { - return { - params: staking_1.Params.fromPartial({}), - lastTotalPower: new Uint8Array(), - lastValidatorPowers: [], - validators: [], - delegations: [], - unbondingDelegations: [], - redelegations: [], - exported: false - }; -} -exports.GenesisState = { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - staking_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.lastTotalPower.length !== 0) { - writer.uint32(18).bytes(message.lastTotalPower); - } - for (const v of message.lastValidatorPowers) { - exports.LastValidatorPower.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - staking_1.Validator.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.delegations) { - staking_1.Delegation.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.unbondingDelegations) { - staking_1.UnbondingDelegation.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.redelegations) { - staking_1.Redelegation.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.exported === true) { - writer.uint32(64).bool(message.exported); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = staking_1.Params.decode(reader, reader.uint32()); - break; - case 2: - message.lastTotalPower = reader.bytes(); - break; - case 3: - message.lastValidatorPowers.push(exports.LastValidatorPower.decode(reader, reader.uint32())); - break; - case 4: - message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); - break; - case 5: - message.delegations.push(staking_1.Delegation.decode(reader, reader.uint32())); - break; - case 6: - message.unbondingDelegations.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 7: - message.redelegations.push(staking_1.Redelegation.decode(reader, reader.uint32())); - break; - case 8: - message.exported = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? staking_1.Params.fromPartial(object.params) : undefined; - message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); - message.lastValidatorPowers = object.lastValidatorPowers?.map(e => exports.LastValidatorPower.fromPartial(e)) || []; - message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; - message.delegations = object.delegations?.map(e => staking_1.Delegation.fromPartial(e)) || []; - message.unbondingDelegations = object.unbondingDelegations?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; - message.redelegations = object.redelegations?.map(e => staking_1.Redelegation.fromPartial(e)) || []; - message.exported = object.exported ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = staking_1.Params.fromAmino(object.params); - } - if (object.last_total_power !== undefined && object.last_total_power !== null) { - message.lastTotalPower = (0, helpers_1.bytesFromBase64)(object.last_total_power); - } - message.lastValidatorPowers = object.last_validator_powers?.map(e => exports.LastValidatorPower.fromAmino(e)) || []; - message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; - message.delegations = object.delegations?.map(e => staking_1.Delegation.fromAmino(e)) || []; - message.unbondingDelegations = object.unbonding_delegations?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; - message.redelegations = object.redelegations?.map(e => staking_1.Redelegation.fromAmino(e)) || []; - if (object.exported !== undefined && object.exported !== null) { - message.exported = object.exported; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? staking_1.Params.toAmino(message.params) : undefined; - obj.last_total_power = message.lastTotalPower ? (0, helpers_1.base64FromBytes)(message.lastTotalPower) : undefined; - if (message.lastValidatorPowers) { - obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? exports.LastValidatorPower.toAmino(e) : undefined); - } - else { - obj.last_validator_powers = message.lastValidatorPowers; - } - if (message.validators) { - obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - if (message.delegations) { - obj.delegations = message.delegations.map(e => e ? staking_1.Delegation.toAmino(e) : undefined); - } - else { - obj.delegations = message.delegations; - } - if (message.unbondingDelegations) { - obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_delegations = message.unbondingDelegations; - } - if (message.redelegations) { - obj.redelegations = message.redelegations.map(e => e ? staking_1.Redelegation.toAmino(e) : undefined); - } - else { - obj.redelegations = message.redelegations; - } - obj.exported = message.exported === false ? undefined : message.exported; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; -function createBaseLastValidatorPower() { - return { - address: "", - power: BigInt(0) - }; -} -exports.LastValidatorPower = { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLastValidatorPower(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLastValidatorPower(); - message.address = object.address ?? ""; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseLastValidatorPower(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.LastValidatorPower.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/LastValidatorPower", - value: exports.LastValidatorPower.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.LastValidatorPower.decode(message.value); - }, - toProto(message) { - return exports.LastValidatorPower.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - value: exports.LastValidatorPower.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.d.ts deleted file mode 100644 index 5d8b30c4..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.d.ts +++ /dev/null @@ -1,1222 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Validator, ValidatorAmino, ValidatorSDKType, DelegationResponse, DelegationResponseAmino, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationAmino, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseAmino, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoAmino, HistoricalInfoSDKType, Pool, PoolAmino, PoolSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequest { - /** status enables to query for validators matching a given status. */ - status: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; - value: Uint8Array; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestAmino { - /** status enables to query for validators matching a given status. */ - status?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorsRequest"; - value: QueryValidatorsRequestAmino; -} -/** QueryValidatorsRequest is request type for Query/Validators RPC method. */ -export interface QueryValidatorsRequestSDKType { - status: string; - pagination?: PageRequestSDKType; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponse { - /** validators contains all the queried validators. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; - value: Uint8Array; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseAmino { - /** validators contains all the queried validators. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorsResponse"; - value: QueryValidatorsResponseAmino; -} -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface QueryValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; - value: Uint8Array; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorRequest"; - value: QueryValidatorRequestAmino; -} -/** QueryValidatorRequest is response type for the Query/Validator RPC method */ -export interface QueryValidatorRequestSDKType { - validator_addr: string; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; - value: Uint8Array; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorResponse"; - value: QueryValidatorResponseAmino; -} -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface QueryValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsRequest"; - value: QueryValidatorDelegationsRequestAmino; -} -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponse { - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseAmino { - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorDelegationsResponse"; - value: QueryValidatorDelegationsResponseAmino; -} -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface QueryValidatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequest { - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestAmino { - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryValidatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest"; - value: QueryValidatorUnbondingDelegationsRequestAmino; -} -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - */ -export interface QueryValidatorUnbondingDelegationsRequestSDKType { - validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryValidatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse"; - value: QueryValidatorUnbondingDelegationsResponseAmino; -} -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface QueryValidatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; - value: Uint8Array; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryDelegationRequest"; - value: QueryDelegationRequestAmino; -} -/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ -export interface QueryDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponse { - /** delegation_responses defines the delegation info of a delegation. */ - delegationResponse?: DelegationResponse; -} -export interface QueryDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; - value: Uint8Array; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseAmino { - /** delegation_responses defines the delegation info of a delegation. */ - delegation_response?: DelegationResponseAmino; -} -export interface QueryDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryDelegationResponse"; - value: QueryDelegationResponseAmino; -} -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface QueryDelegationResponseSDKType { - delegation_response?: DelegationResponseSDKType; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryUnbondingDelegationRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryUnbondingDelegationRequestAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationRequest"; - value: QueryUnbondingDelegationRequestAmino; -} -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - */ -export interface QueryUnbondingDelegationRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponse { - /** unbond defines the unbonding information of a delegation. */ - unbond: UnbondingDelegation; -} -export interface QueryUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseAmino { - /** unbond defines the unbonding information of a delegation. */ - unbond?: UnbondingDelegationAmino; -} -export interface QueryUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/QueryUnbondingDelegationResponse"; - value: QueryUnbondingDelegationResponseAmino; -} -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface QueryUnbondingDelegationResponseSDKType { - unbond: UnbondingDelegationSDKType; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest"; - value: QueryDelegatorDelegationsRequestAmino; -} -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponse { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegationResponses: DelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseAmino { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses?: DelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse"; - value: QueryDelegatorDelegationsResponseAmino; -} -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface QueryDelegatorDelegationsResponseSDKType { - delegation_responses: DelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorUnbondingDelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest"; - value: QueryDelegatorUnbondingDelegationsRequestAmino; -} -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponse { - unbondingResponses: UnbondingDelegation[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; - value: Uint8Array; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseAmino { - unbonding_responses?: UnbondingDelegationAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorUnbondingDelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse"; - value: QueryDelegatorUnbondingDelegationsResponseAmino; -} -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface QueryDelegatorUnbondingDelegationsResponseSDKType { - unbonding_responses: UnbondingDelegationSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** src_validator_addr defines the validator address to redelegate from. */ - srcValidatorAddr: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dstValidatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryRedelegationsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; - value: Uint8Array; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** src_validator_addr defines the validator address to redelegate from. */ - src_validator_addr?: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dst_validator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryRedelegationsRequestAminoMsg { - type: "cosmos-sdk/QueryRedelegationsRequest"; - value: QueryRedelegationsRequestAmino; -} -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsRequestSDKType { - delegator_addr: string; - src_validator_addr: string; - dst_validator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponse { - redelegationResponses: RedelegationResponse[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryRedelegationsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; - value: Uint8Array; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseAmino { - redelegation_responses?: RedelegationResponseAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryRedelegationsResponseAminoMsg { - type: "cosmos-sdk/QueryRedelegationsResponse"; - value: QueryRedelegationsResponseAmino; -} -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface QueryRedelegationsResponseSDKType { - redelegation_responses: RedelegationResponseSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDelegatorValidatorsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDelegatorValidatorsRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest"; - value: QueryDelegatorValidatorsRequestAmino; -} -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsRequestSDKType { - delegator_addr: string; - pagination?: PageRequestSDKType; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponse { - /** validators defines the validators' info of a delegator. */ - validators: Validator[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDelegatorValidatorsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseAmino { - /** validators defines the validators' info of a delegator. */ - validators?: ValidatorAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDelegatorValidatorsResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse"; - value: QueryDelegatorValidatorsResponseAmino; -} -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface QueryDelegatorValidatorsResponseSDKType { - validators: ValidatorSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequest { - /** delegator_addr defines the delegator address to query for. */ - delegatorAddr: string; - /** validator_addr defines the validator address to query for. */ - validatorAddr: string; -} -export interface QueryDelegatorValidatorRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestAmino { - /** delegator_addr defines the delegator address to query for. */ - delegator_addr?: string; - /** validator_addr defines the validator address to query for. */ - validator_addr?: string; -} -export interface QueryDelegatorValidatorRequestAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorRequest"; - value: QueryDelegatorValidatorRequestAmino; -} -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorRequestSDKType { - delegator_addr: string; - validator_addr: string; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponse { - /** validator defines the validator info. */ - validator: Validator; -} -export interface QueryDelegatorValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; - value: Uint8Array; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseAmino { - /** validator defines the validator info. */ - validator?: ValidatorAmino; -} -export interface QueryDelegatorValidatorResponseAminoMsg { - type: "cosmos-sdk/QueryDelegatorValidatorResponse"; - value: QueryDelegatorValidatorResponseAmino; -} -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface QueryDelegatorValidatorResponseSDKType { - validator: ValidatorSDKType; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequest { - /** height defines at which height to query the historical info. */ - height: bigint; -} -export interface QueryHistoricalInfoRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestAmino { - /** height defines at which height to query the historical info. */ - height?: string; -} -export interface QueryHistoricalInfoRequestAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoRequest"; - value: QueryHistoricalInfoRequestAmino; -} -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoRequestSDKType { - height: bigint; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponse { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfo; -} -export interface QueryHistoricalInfoResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; - value: Uint8Array; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseAmino { - /** hist defines the historical info at the given height. */ - hist?: HistoricalInfoAmino; -} -export interface QueryHistoricalInfoResponseAminoMsg { - type: "cosmos-sdk/QueryHistoricalInfoResponse"; - value: QueryHistoricalInfoResponseAmino; -} -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface QueryHistoricalInfoResponseSDKType { - hist?: HistoricalInfoSDKType; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequest { -} -export interface QueryPoolRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; - value: Uint8Array; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestAmino { -} -export interface QueryPoolRequestAminoMsg { - type: "cosmos-sdk/QueryPoolRequest"; - value: QueryPoolRequestAmino; -} -/** QueryPoolRequest is request type for the Query/Pool RPC method. */ -export interface QueryPoolRequestSDKType { -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponse { - /** pool defines the pool info. */ - pool: Pool; -} -export interface QueryPoolResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; - value: Uint8Array; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseAmino { - /** pool defines the pool info. */ - pool?: PoolAmino; -} -export interface QueryPoolResponseAminoMsg { - type: "cosmos-sdk/QueryPoolResponse"; - value: QueryPoolResponseAmino; -} -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface QueryPoolResponseSDKType { - pool: PoolSDKType; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params holds all the parameters of this module. */ - params: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params holds all the parameters of this module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -export declare const QueryValidatorsRequest: { - typeUrl: string; - encode(message: QueryValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsRequest; - fromPartial(object: Partial): QueryValidatorsRequest; - fromAmino(object: QueryValidatorsRequestAmino): QueryValidatorsRequest; - toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino; - fromAminoMsg(object: QueryValidatorsRequestAminoMsg): QueryValidatorsRequest; - toAminoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorsRequestProtoMsg): QueryValidatorsRequest; - toProto(message: QueryValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorsRequest): QueryValidatorsRequestProtoMsg; -}; -export declare const QueryValidatorsResponse: { - typeUrl: string; - encode(message: QueryValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorsResponse; - fromPartial(object: Partial): QueryValidatorsResponse; - fromAmino(object: QueryValidatorsResponseAmino): QueryValidatorsResponse; - toAmino(message: QueryValidatorsResponse): QueryValidatorsResponseAmino; - fromAminoMsg(object: QueryValidatorsResponseAminoMsg): QueryValidatorsResponse; - toAminoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorsResponseProtoMsg): QueryValidatorsResponse; - toProto(message: QueryValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorsResponse): QueryValidatorsResponseProtoMsg; -}; -export declare const QueryValidatorRequest: { - typeUrl: string; - encode(message: QueryValidatorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorRequest; - fromPartial(object: Partial): QueryValidatorRequest; - fromAmino(object: QueryValidatorRequestAmino): QueryValidatorRequest; - toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino; - fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest; - toAminoMsg(message: QueryValidatorRequest): QueryValidatorRequestAminoMsg; - fromProtoMsg(message: QueryValidatorRequestProtoMsg): QueryValidatorRequest; - toProto(message: QueryValidatorRequest): Uint8Array; - toProtoMsg(message: QueryValidatorRequest): QueryValidatorRequestProtoMsg; -}; -export declare const QueryValidatorResponse: { - typeUrl: string; - encode(message: QueryValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorResponse; - fromPartial(object: Partial): QueryValidatorResponse; - fromAmino(object: QueryValidatorResponseAmino): QueryValidatorResponse; - toAmino(message: QueryValidatorResponse): QueryValidatorResponseAmino; - fromAminoMsg(object: QueryValidatorResponseAminoMsg): QueryValidatorResponse; - toAminoMsg(message: QueryValidatorResponse): QueryValidatorResponseAminoMsg; - fromProtoMsg(message: QueryValidatorResponseProtoMsg): QueryValidatorResponse; - toProto(message: QueryValidatorResponse): Uint8Array; - toProtoMsg(message: QueryValidatorResponse): QueryValidatorResponseProtoMsg; -}; -export declare const QueryValidatorDelegationsRequest: { - typeUrl: string; - encode(message: QueryValidatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; - fromPartial(object: Partial): QueryValidatorDelegationsRequest; - fromAmino(object: QueryValidatorDelegationsRequestAmino): QueryValidatorDelegationsRequest; - toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino; - fromAminoMsg(object: QueryValidatorDelegationsRequestAminoMsg): QueryValidatorDelegationsRequest; - toAminoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorDelegationsRequestProtoMsg): QueryValidatorDelegationsRequest; - toProto(message: QueryValidatorDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestProtoMsg; -}; -export declare const QueryValidatorDelegationsResponse: { - typeUrl: string; - encode(message: QueryValidatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; - fromPartial(object: Partial): QueryValidatorDelegationsResponse; - fromAmino(object: QueryValidatorDelegationsResponseAmino): QueryValidatorDelegationsResponse; - toAmino(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAmino; - fromAminoMsg(object: QueryValidatorDelegationsResponseAminoMsg): QueryValidatorDelegationsResponse; - toAminoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorDelegationsResponseProtoMsg): QueryValidatorDelegationsResponse; - toProto(message: QueryValidatorDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorDelegationsResponse): QueryValidatorDelegationsResponseProtoMsg; -}; -export declare const QueryValidatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest; - fromAmino(object: QueryValidatorUnbondingDelegationsRequestAmino): QueryValidatorUnbondingDelegationsRequest; - toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: QueryValidatorUnbondingDelegationsRequestAminoMsg): QueryValidatorUnbondingDelegationsRequest; - toAminoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryValidatorUnbondingDelegationsRequestProtoMsg): QueryValidatorUnbondingDelegationsRequest; - toProto(message: QueryValidatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestProtoMsg; -}; -export declare const QueryValidatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; - fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse; - fromAmino(object: QueryValidatorUnbondingDelegationsResponseAmino): QueryValidatorUnbondingDelegationsResponse; - toAmino(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: QueryValidatorUnbondingDelegationsResponseAminoMsg): QueryValidatorUnbondingDelegationsResponse; - toAminoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryValidatorUnbondingDelegationsResponseProtoMsg): QueryValidatorUnbondingDelegationsResponse; - toProto(message: QueryValidatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryValidatorUnbondingDelegationsResponse): QueryValidatorUnbondingDelegationsResponseProtoMsg; -}; -export declare const QueryDelegationRequest: { - typeUrl: string; - encode(message: QueryDelegationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRequest; - fromPartial(object: Partial): QueryDelegationRequest; - fromAmino(object: QueryDelegationRequestAmino): QueryDelegationRequest; - toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino; - fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest; - toAminoMsg(message: QueryDelegationRequest): QueryDelegationRequestAminoMsg; - fromProtoMsg(message: QueryDelegationRequestProtoMsg): QueryDelegationRequest; - toProto(message: QueryDelegationRequest): Uint8Array; - toProtoMsg(message: QueryDelegationRequest): QueryDelegationRequestProtoMsg; -}; -export declare const QueryDelegationResponse: { - typeUrl: string; - encode(message: QueryDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationResponse; - fromPartial(object: Partial): QueryDelegationResponse; - fromAmino(object: QueryDelegationResponseAmino): QueryDelegationResponse; - toAmino(message: QueryDelegationResponse): QueryDelegationResponseAmino; - fromAminoMsg(object: QueryDelegationResponseAminoMsg): QueryDelegationResponse; - toAminoMsg(message: QueryDelegationResponse): QueryDelegationResponseAminoMsg; - fromProtoMsg(message: QueryDelegationResponseProtoMsg): QueryDelegationResponse; - toProto(message: QueryDelegationResponse): Uint8Array; - toProtoMsg(message: QueryDelegationResponse): QueryDelegationResponseProtoMsg; -}; -export declare const QueryUnbondingDelegationRequest: { - typeUrl: string; - encode(message: QueryUnbondingDelegationRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; - fromPartial(object: Partial): QueryUnbondingDelegationRequest; - fromAmino(object: QueryUnbondingDelegationRequestAmino): QueryUnbondingDelegationRequest; - toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino; - fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest; - toAminoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAminoMsg; - fromProtoMsg(message: QueryUnbondingDelegationRequestProtoMsg): QueryUnbondingDelegationRequest; - toProto(message: QueryUnbondingDelegationRequest): Uint8Array; - toProtoMsg(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestProtoMsg; -}; -export declare const QueryUnbondingDelegationResponse: { - typeUrl: string; - encode(message: QueryUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; - fromPartial(object: Partial): QueryUnbondingDelegationResponse; - fromAmino(object: QueryUnbondingDelegationResponseAmino): QueryUnbondingDelegationResponse; - toAmino(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAmino; - fromAminoMsg(object: QueryUnbondingDelegationResponseAminoMsg): QueryUnbondingDelegationResponse; - toAminoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: QueryUnbondingDelegationResponseProtoMsg): QueryUnbondingDelegationResponse; - toProto(message: QueryUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: QueryUnbondingDelegationResponse): QueryUnbondingDelegationResponseProtoMsg; -}; -export declare const QueryDelegatorDelegationsRequest: { - typeUrl: string; - encode(message: QueryDelegatorDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; - fromPartial(object: Partial): QueryDelegatorDelegationsRequest; - fromAmino(object: QueryDelegatorDelegationsRequestAmino): QueryDelegatorDelegationsRequest; - toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino; - fromAminoMsg(object: QueryDelegatorDelegationsRequestAminoMsg): QueryDelegatorDelegationsRequest; - toAminoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorDelegationsRequestProtoMsg): QueryDelegatorDelegationsRequest; - toProto(message: QueryDelegatorDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestProtoMsg; -}; -export declare const QueryDelegatorDelegationsResponse: { - typeUrl: string; - encode(message: QueryDelegatorDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; - fromPartial(object: Partial): QueryDelegatorDelegationsResponse; - fromAmino(object: QueryDelegatorDelegationsResponseAmino): QueryDelegatorDelegationsResponse; - toAmino(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAmino; - fromAminoMsg(object: QueryDelegatorDelegationsResponseAminoMsg): QueryDelegatorDelegationsResponse; - toAminoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorDelegationsResponseProtoMsg): QueryDelegatorDelegationsResponse; - toProto(message: QueryDelegatorDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorDelegationsResponse): QueryDelegatorDelegationsResponseProtoMsg; -}; -export declare const QueryDelegatorUnbondingDelegationsRequest: { - typeUrl: string; - encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest; - fromAmino(object: QueryDelegatorUnbondingDelegationsRequestAmino): QueryDelegatorUnbondingDelegationsRequest; - toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino; - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsRequestAminoMsg): QueryDelegatorUnbondingDelegationsRequest; - toAminoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsRequestProtoMsg): QueryDelegatorUnbondingDelegationsRequest; - toProto(message: QueryDelegatorUnbondingDelegationsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestProtoMsg; -}; -export declare const QueryDelegatorUnbondingDelegationsResponse: { - typeUrl: string; - encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; - fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse; - fromAmino(object: QueryDelegatorUnbondingDelegationsResponseAmino): QueryDelegatorUnbondingDelegationsResponse; - toAmino(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAmino; - fromAminoMsg(object: QueryDelegatorUnbondingDelegationsResponseAminoMsg): QueryDelegatorUnbondingDelegationsResponse; - toAminoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorUnbondingDelegationsResponseProtoMsg): QueryDelegatorUnbondingDelegationsResponse; - toProto(message: QueryDelegatorUnbondingDelegationsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorUnbondingDelegationsResponse): QueryDelegatorUnbondingDelegationsResponseProtoMsg; -}; -export declare const QueryRedelegationsRequest: { - typeUrl: string; - encode(message: QueryRedelegationsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsRequest; - fromPartial(object: Partial): QueryRedelegationsRequest; - fromAmino(object: QueryRedelegationsRequestAmino): QueryRedelegationsRequest; - toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino; - fromAminoMsg(object: QueryRedelegationsRequestAminoMsg): QueryRedelegationsRequest; - toAminoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestAminoMsg; - fromProtoMsg(message: QueryRedelegationsRequestProtoMsg): QueryRedelegationsRequest; - toProto(message: QueryRedelegationsRequest): Uint8Array; - toProtoMsg(message: QueryRedelegationsRequest): QueryRedelegationsRequestProtoMsg; -}; -export declare const QueryRedelegationsResponse: { - typeUrl: string; - encode(message: QueryRedelegationsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryRedelegationsResponse; - fromPartial(object: Partial): QueryRedelegationsResponse; - fromAmino(object: QueryRedelegationsResponseAmino): QueryRedelegationsResponse; - toAmino(message: QueryRedelegationsResponse): QueryRedelegationsResponseAmino; - fromAminoMsg(object: QueryRedelegationsResponseAminoMsg): QueryRedelegationsResponse; - toAminoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseAminoMsg; - fromProtoMsg(message: QueryRedelegationsResponseProtoMsg): QueryRedelegationsResponse; - toProto(message: QueryRedelegationsResponse): Uint8Array; - toProtoMsg(message: QueryRedelegationsResponse): QueryRedelegationsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorsRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; - fromPartial(object: Partial): QueryDelegatorValidatorsRequest; - fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest; - toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest; - toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest; - toProto(message: QueryDelegatorValidatorsRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorsResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; - fromPartial(object: Partial): QueryDelegatorValidatorsResponse; - fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse; - toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse; - toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse; - toProto(message: QueryDelegatorValidatorsResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg; -}; -export declare const QueryDelegatorValidatorRequest: { - typeUrl: string; - encode(message: QueryDelegatorValidatorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; - fromPartial(object: Partial): QueryDelegatorValidatorRequest; - fromAmino(object: QueryDelegatorValidatorRequestAmino): QueryDelegatorValidatorRequest; - toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino; - fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest; - toAminoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorRequestProtoMsg): QueryDelegatorValidatorRequest; - toProto(message: QueryDelegatorValidatorRequest): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestProtoMsg; -}; -export declare const QueryDelegatorValidatorResponse: { - typeUrl: string; - encode(message: QueryDelegatorValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; - fromPartial(object: Partial): QueryDelegatorValidatorResponse; - fromAmino(object: QueryDelegatorValidatorResponseAmino): QueryDelegatorValidatorResponse; - toAmino(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAmino; - fromAminoMsg(object: QueryDelegatorValidatorResponseAminoMsg): QueryDelegatorValidatorResponse; - toAminoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseAminoMsg; - fromProtoMsg(message: QueryDelegatorValidatorResponseProtoMsg): QueryDelegatorValidatorResponse; - toProto(message: QueryDelegatorValidatorResponse): Uint8Array; - toProtoMsg(message: QueryDelegatorValidatorResponse): QueryDelegatorValidatorResponseProtoMsg; -}; -export declare const QueryHistoricalInfoRequest: { - typeUrl: string; - encode(message: QueryHistoricalInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoRequest; - fromPartial(object: Partial): QueryHistoricalInfoRequest; - fromAmino(object: QueryHistoricalInfoRequestAmino): QueryHistoricalInfoRequest; - toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino; - fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest; - toAminoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAminoMsg; - fromProtoMsg(message: QueryHistoricalInfoRequestProtoMsg): QueryHistoricalInfoRequest; - toProto(message: QueryHistoricalInfoRequest): Uint8Array; - toProtoMsg(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestProtoMsg; -}; -export declare const QueryHistoricalInfoResponse: { - typeUrl: string; - encode(message: QueryHistoricalInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryHistoricalInfoResponse; - fromPartial(object: Partial): QueryHistoricalInfoResponse; - fromAmino(object: QueryHistoricalInfoResponseAmino): QueryHistoricalInfoResponse; - toAmino(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAmino; - fromAminoMsg(object: QueryHistoricalInfoResponseAminoMsg): QueryHistoricalInfoResponse; - toAminoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseAminoMsg; - fromProtoMsg(message: QueryHistoricalInfoResponseProtoMsg): QueryHistoricalInfoResponse; - toProto(message: QueryHistoricalInfoResponse): Uint8Array; - toProtoMsg(message: QueryHistoricalInfoResponse): QueryHistoricalInfoResponseProtoMsg; -}; -export declare const QueryPoolRequest: { - typeUrl: string; - encode(_: QueryPoolRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolRequest; - fromPartial(_: Partial): QueryPoolRequest; - fromAmino(_: QueryPoolRequestAmino): QueryPoolRequest; - toAmino(_: QueryPoolRequest): QueryPoolRequestAmino; - fromAminoMsg(object: QueryPoolRequestAminoMsg): QueryPoolRequest; - toAminoMsg(message: QueryPoolRequest): QueryPoolRequestAminoMsg; - fromProtoMsg(message: QueryPoolRequestProtoMsg): QueryPoolRequest; - toProto(message: QueryPoolRequest): Uint8Array; - toProtoMsg(message: QueryPoolRequest): QueryPoolRequestProtoMsg; -}; -export declare const QueryPoolResponse: { - typeUrl: string; - encode(message: QueryPoolResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryPoolResponse; - fromPartial(object: Partial): QueryPoolResponse; - fromAmino(object: QueryPoolResponseAmino): QueryPoolResponse; - toAmino(message: QueryPoolResponse): QueryPoolResponseAmino; - fromAminoMsg(object: QueryPoolResponseAminoMsg): QueryPoolResponse; - toAminoMsg(message: QueryPoolResponse): QueryPoolResponseAminoMsg; - fromProtoMsg(message: QueryPoolResponseProtoMsg): QueryPoolResponse; - toProto(message: QueryPoolResponse): Uint8Array; - toProtoMsg(message: QueryPoolResponse): QueryPoolResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.js b/packages/api/dist/cosmos/staking/v1beta1/query.js deleted file mode 100644 index 3abb848b..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.js +++ /dev/null @@ -1,2162 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryPoolResponse = exports.QueryPoolRequest = exports.QueryHistoricalInfoResponse = exports.QueryHistoricalInfoRequest = exports.QueryDelegatorValidatorResponse = exports.QueryDelegatorValidatorRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryRedelegationsResponse = exports.QueryRedelegationsRequest = exports.QueryDelegatorUnbondingDelegationsResponse = exports.QueryDelegatorUnbondingDelegationsRequest = exports.QueryDelegatorDelegationsResponse = exports.QueryDelegatorDelegationsRequest = exports.QueryUnbondingDelegationResponse = exports.QueryUnbondingDelegationRequest = exports.QueryDelegationResponse = exports.QueryDelegationRequest = exports.QueryValidatorUnbondingDelegationsResponse = exports.QueryValidatorUnbondingDelegationsRequest = exports.QueryValidatorDelegationsResponse = exports.QueryValidatorDelegationsRequest = exports.QueryValidatorResponse = exports.QueryValidatorRequest = exports.QueryValidatorsResponse = exports.QueryValidatorsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const staking_1 = require("./staking"); -const binary_1 = require("../../../binary"); -function createBaseQueryValidatorsRequest() { - return { - status: "", - pagination: undefined - }; -} -exports.QueryValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorsRequest(); - message.status = object.status ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorsRequest(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === "" ? undefined : message.status; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorsRequest", - value: exports.QueryValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - value: exports.QueryValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorsResponse() { - return { - validators: [], - pagination: undefined - }; -} -exports.QueryValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validators) { - staking_1.Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorsResponse", - value: exports.QueryValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - value: exports.QueryValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorRequest() { - return { - validatorAddr: "" - }; -} -exports.QueryValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorRequest", - value: exports.QueryValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - value: exports.QueryValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorResponse() { - return { - validator: staking_1.Validator.fromPartial({}) - }; -} -exports.QueryValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validator !== undefined) { - staking_1.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = staking_1.Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? staking_1.Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = staking_1.Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? staking_1.Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorResponse", - value: exports.QueryValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - value: exports.QueryValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsRequest() { - return { - validatorAddr: "", - pagination: undefined - }; -} -exports.QueryValidatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorDelegationsRequest", - value: exports.QueryValidatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorDelegationsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - value: exports.QueryValidatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsResponse() { - return { - delegationResponses: [], - pagination: undefined - }; -} -exports.QueryValidatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.delegationResponses) { - staking_1.DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(staking_1.DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => staking_1.DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => staking_1.DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? staking_1.DelegationResponse.toAmino(e) : undefined); - } - else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorDelegationsResponse", - value: exports.QueryValidatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorDelegationsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - value: exports.QueryValidatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsRequest() { - return { - validatorAddr: "", - pagination: undefined - }; -} -exports.QueryValidatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", - value: exports.QueryValidatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - value: exports.QueryValidatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsResponse() { - return { - unbondingResponses: [], - pagination: undefined - }; -} -exports.QueryValidatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.unbondingResponses) { - staking_1.UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", - value: exports.QueryValidatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryValidatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - value: exports.QueryValidatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -exports.QueryDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRequest", - value: exports.QueryDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - value: exports.QueryDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationResponse() { - return { - delegationResponse: undefined - }; -} -exports.QueryDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegationResponse !== undefined) { - staking_1.DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponse = staking_1.DelegationResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationResponse(); - message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? staking_1.DelegationResponse.fromPartial(object.delegationResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationResponse(); - if (object.delegation_response !== undefined && object.delegation_response !== null) { - message.delegationResponse = staking_1.DelegationResponse.fromAmino(object.delegation_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegation_response = message.delegationResponse ? staking_1.DelegationResponse.toAmino(message.delegationResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationResponse", - value: exports.QueryDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegationResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - value: exports.QueryDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -exports.QueryUnbondingDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUnbondingDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUnbondingDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUnbondingDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUnbondingDelegationRequest", - value: exports.QueryUnbondingDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUnbondingDelegationRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryUnbondingDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - value: exports.QueryUnbondingDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationResponse() { - return { - unbond: staking_1.UnbondingDelegation.fromPartial({}) - }; -} -exports.QueryUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.unbond !== undefined) { - staking_1.UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbond = staking_1.UnbondingDelegation.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUnbondingDelegationResponse(); - message.unbond = object.unbond !== undefined && object.unbond !== null ? staking_1.UnbondingDelegation.fromPartial(object.unbond) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUnbondingDelegationResponse(); - if (object.unbond !== undefined && object.unbond !== null) { - message.unbond = staking_1.UnbondingDelegation.fromAmino(object.unbond); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.unbond = message.unbond ? staking_1.UnbondingDelegation.toAmino(message.unbond) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUnbondingDelegationResponse", - value: exports.QueryUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUnbondingDelegationResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - value: exports.QueryUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -exports.QueryDelegatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest", - value: exports.QueryDelegatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorDelegationsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - value: exports.QueryDelegatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsResponse() { - return { - delegationResponses: [], - pagination: undefined - }; -} -exports.QueryDelegatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.delegationResponses) { - staking_1.DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(staking_1.DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => staking_1.DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => staking_1.DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? staking_1.DelegationResponse.toAmino(e) : undefined); - } - else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse", - value: exports.QueryDelegatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorDelegationsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - value: exports.QueryDelegatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -exports.QueryDelegatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", - value: exports.QueryDelegatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - value: exports.QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsResponse() { - return { - unbondingResponses: [], - pagination: undefined - }; -} -exports.QueryDelegatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.unbondingResponses) { - staking_1.UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(staking_1.UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => staking_1.UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => staking_1.UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? staking_1.UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", - value: exports.QueryDelegatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - value: exports.QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsRequest() { - return { - delegatorAddr: "", - srcValidatorAddr: "", - dstValidatorAddr: "", - pagination: undefined - }; -} -exports.QueryRedelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.srcValidatorAddr !== "") { - writer.uint32(18).string(message.srcValidatorAddr); - } - if (message.dstValidatorAddr !== "") { - writer.uint32(26).string(message.dstValidatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.srcValidatorAddr = reader.string(); - break; - case 3: - message.dstValidatorAddr = reader.string(); - break; - case 4: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryRedelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.srcValidatorAddr = object.srcValidatorAddr ?? ""; - message.dstValidatorAddr = object.dstValidatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryRedelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { - message.srcValidatorAddr = object.src_validator_addr; - } - if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { - message.dstValidatorAddr = object.dst_validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; - obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryRedelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryRedelegationsRequest", - value: exports.QueryRedelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryRedelegationsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryRedelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - value: exports.QueryRedelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsResponse() { - return { - redelegationResponses: [], - pagination: undefined - }; -} -exports.QueryRedelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.redelegationResponses) { - staking_1.RedelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationResponses.push(staking_1.RedelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegationResponses?.map(e => staking_1.RedelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegation_responses?.map(e => staking_1.RedelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.redelegationResponses) { - obj.redelegation_responses = message.redelegationResponses.map(e => e ? staking_1.RedelegationResponse.toAmino(e) : undefined); - } - else { - obj.redelegation_responses = message.redelegationResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryRedelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryRedelegationsResponse", - value: exports.QueryRedelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryRedelegationsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryRedelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - value: exports.QueryRedelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -exports.QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: exports.QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - value: exports.QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse() { - return { - validators: [], - pagination: undefined - }; -} -exports.QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validators) { - staking_1.Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(staking_1.Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => staking_1.Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => staking_1.Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? staking_1.Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: exports.QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - value: exports.QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -exports.QueryDelegatorValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorRequest", - value: exports.QueryDelegatorValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - value: exports.QueryDelegatorValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorResponse() { - return { - validator: staking_1.Validator.fromPartial({}) - }; -} -exports.QueryDelegatorValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validator !== undefined) { - staking_1.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = staking_1.Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? staking_1.Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = staking_1.Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? staking_1.Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDelegatorValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorResponse", - value: exports.QueryDelegatorValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDelegatorValidatorResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDelegatorValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - value: exports.QueryDelegatorValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoRequest() { - return { - height: BigInt(0) - }; -} -exports.QueryHistoricalInfoRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryHistoricalInfoRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryHistoricalInfoRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryHistoricalInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryHistoricalInfoRequest", - value: exports.QueryHistoricalInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryHistoricalInfoRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryHistoricalInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - value: exports.QueryHistoricalInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoResponse() { - return { - hist: undefined - }; -} -exports.QueryHistoricalInfoResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hist !== undefined) { - staking_1.HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hist = staking_1.HistoricalInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryHistoricalInfoResponse(); - message.hist = object.hist !== undefined && object.hist !== null ? staking_1.HistoricalInfo.fromPartial(object.hist) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryHistoricalInfoResponse(); - if (object.hist !== undefined && object.hist !== null) { - message.hist = staking_1.HistoricalInfo.fromAmino(object.hist); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hist = message.hist ? staking_1.HistoricalInfo.toAmino(message.hist) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryHistoricalInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryHistoricalInfoResponse", - value: exports.QueryHistoricalInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryHistoricalInfoResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryHistoricalInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - value: exports.QueryHistoricalInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryPoolRequest() { - return {}; -} -exports.QueryPoolRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryPoolRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryPoolRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryPoolRequest", - value: exports.QueryPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryPoolRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryPoolRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - value: exports.QueryPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryPoolResponse() { - return { - pool: staking_1.Pool.fromPartial({}) - }; -} -exports.QueryPoolResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pool !== undefined) { - staking_1.Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool = staking_1.Pool.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryPoolResponse(); - message.pool = object.pool !== undefined && object.pool !== null ? staking_1.Pool.fromPartial(object.pool) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryPoolResponse(); - if (object.pool !== undefined && object.pool !== null) { - message.pool = staking_1.Pool.fromAmino(object.pool); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pool = message.pool ? staking_1.Pool.toAmino(message.pool) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryPoolResponse", - value: exports.QueryPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryPoolResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - value: exports.QueryPoolResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: staking_1.Params.fromPartial({}) - }; -} -exports.QueryParamsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - staking_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = staking_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? staking_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = staking_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? staking_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts deleted file mode 100644 index 0f29585b..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryValidatorsRequest, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - validators(params: QueryValidatorsRequest): Promise; - validator(params: QueryValidatorRequest): Promise; - validatorDelegations(params: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(params: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(params: QueryDelegationRequest): Promise; - unbondingDelegation(params: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(params: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(params: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(params: QueryRedelegationsRequest): Promise; - delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(params: QueryDelegatorValidatorRequest): Promise; - historicalInfo(params: QueryHistoricalInfoRequest): Promise; - pool(_params?: QueryPoolRequest): Promise; - params(_params?: QueryParamsRequest): Promise; -} diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js b/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js deleted file mode 100644 index ebbef5fc..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.lcd.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - /* Validators queries all validators that match the given status. */ - async validators(params) { - const options = { - params: {} - }; - if (typeof params?.status !== "undefined") { - options.params.status = params.status; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators`; - return await this.req.get(endpoint, options); - } - /* Validator queries validator info for given validator address. */ - async validator(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* ValidatorDelegations queries delegate info for given validator. */ - async validatorDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; - return await this.req.get(endpoint, options); - } - /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - async validatorUnbondingDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Delegation queries delegate info for given validator delegator pair. */ - async delegation(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint); - } - /* UnbondingDelegation queries unbonding info for given validator delegator - pair. */ - async unbondingDelegation(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; - return await this.req.get(endpoint); - } - /* DelegatorDelegations queries all delegations of a given delegator address. */ - async delegatorDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint, options); - } - /* DelegatorUnbondingDelegations queries all unbonding delegations of a given - delegator address. */ - async delegatorUnbondingDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Redelegations queries redelegations of given address. */ - async redelegations(params) { - const options = { - params: {} - }; - if (typeof params?.srcValidatorAddr !== "undefined") { - options.params.src_validator_addr = params.srcValidatorAddr; - } - if (typeof params?.dstValidatorAddr !== "undefined") { - options.params.dst_validator_addr = params.dstValidatorAddr; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidators queries all validators info for given delegator - address. */ - async delegatorValidators(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidator queries validator info for given delegator validator - pair. */ - async delegatorValidator(params) { - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* HistoricalInfo queries the historical info for given height. */ - async historicalInfo(params) { - const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; - return await this.req.get(endpoint); - } - /* Pool queries the pool info. */ - async pool(_params = {}) { - const endpoint = `cosmos/staking/v1beta1/pool`; - return await this.req.get(endpoint); - } - /* Parameters queries the staking parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/staking/v1beta1/params`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index 6f710e5d..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** Validators queries all validators that match the given status. */ - validators(request: QueryValidatorsRequest): Promise; - /** Validator queries validator info for given validator address. */ - validator(request: QueryValidatorRequest): Promise; - /** ValidatorDelegations queries delegate info for given validator. */ - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - /** Delegation queries delegate info for given validator delegator pair. */ - delegation(request: QueryDelegationRequest): Promise; - /** - * UnbondingDelegation queries unbonding info for given validator delegator - * pair. - */ - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - /** DelegatorDelegations queries all delegations of a given delegator address. */ - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - /** - * DelegatorUnbondingDelegations queries all unbonding delegations of a given - * delegator address. - */ - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - /** Redelegations queries redelegations of given address. */ - redelegations(request: QueryRedelegationsRequest): Promise; - /** - * DelegatorValidators queries all validators info for given delegator - * address. - */ - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - /** - * DelegatorValidator queries validator info for given delegator validator - * pair. - */ - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - /** HistoricalInfo queries the historical info for given height. */ - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - /** Pool queries the pool info. */ - pool(request?: QueryPoolRequest): Promise; - /** Parameters queries the staking parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - validators(request: QueryValidatorsRequest): Promise; - validator(request: QueryValidatorRequest): Promise; - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: QueryDelegationRequest): Promise; - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: QueryRedelegationsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - pool(request?: QueryPoolRequest): Promise; - params(request?: QueryParamsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - validators(request: QueryValidatorsRequest): Promise; - validator(request: QueryValidatorRequest): Promise; - validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: QueryDelegationRequest): Promise; - unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: QueryRedelegationsRequest): Promise; - delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: QueryHistoricalInfoRequest): Promise; - pool(request?: QueryPoolRequest): Promise; - params(request?: QueryParamsRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js deleted file mode 100644 index 67d0eba2..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - validators(request) { - const data = query_1.QueryValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); - return promise.then(data => query_1.QueryValidatorsResponse.decode(new binary_1.BinaryReader(data))); - } - validator(request) { - const data = query_1.QueryValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); - return promise.then(data => query_1.QueryValidatorResponse.decode(new binary_1.BinaryReader(data))); - } - validatorDelegations(request) { - const data = query_1.QueryValidatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); - return promise.then(data => query_1.QueryValidatorDelegationsResponse.decode(new binary_1.BinaryReader(data))); - } - validatorUnbondingDelegations(request) { - const data = query_1.QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); - return promise.then(data => query_1.QueryValidatorUnbondingDelegationsResponse.decode(new binary_1.BinaryReader(data))); - } - delegation(request) { - const data = query_1.QueryDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); - return promise.then(data => query_1.QueryDelegationResponse.decode(new binary_1.BinaryReader(data))); - } - unbondingDelegation(request) { - const data = query_1.QueryUnbondingDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); - return promise.then(data => query_1.QueryUnbondingDelegationResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorDelegations(request) { - const data = query_1.QueryDelegatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); - return promise.then(data => query_1.QueryDelegatorDelegationsResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorUnbondingDelegations(request) { - const data = query_1.QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); - return promise.then(data => query_1.QueryDelegatorUnbondingDelegationsResponse.decode(new binary_1.BinaryReader(data))); - } - redelegations(request) { - const data = query_1.QueryRedelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); - return promise.then(data => query_1.QueryRedelegationsResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorValidators(request) { - const data = query_1.QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => query_1.QueryDelegatorValidatorsResponse.decode(new binary_1.BinaryReader(data))); - } - delegatorValidator(request) { - const data = query_1.QueryDelegatorValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); - return promise.then(data => query_1.QueryDelegatorValidatorResponse.decode(new binary_1.BinaryReader(data))); - } - historicalInfo(request) { - const data = query_1.QueryHistoricalInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); - return promise.then(data => query_1.QueryHistoricalInfoResponse.decode(new binary_1.BinaryReader(data))); - } - pool(request = {}) { - const data = query_1.QueryPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); - return promise.then(data => query_1.QueryPoolResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - validators(request) { - return queryService.validators(request); - }, - validator(request) { - return queryService.validator(request); - }, - validatorDelegations(request) { - return queryService.validatorDelegations(request); - }, - validatorUnbondingDelegations(request) { - return queryService.validatorUnbondingDelegations(request); - }, - delegation(request) { - return queryService.delegation(request); - }, - unbondingDelegation(request) { - return queryService.unbondingDelegation(request); - }, - delegatorDelegations(request) { - return queryService.delegatorDelegations(request); - }, - delegatorUnbondingDelegations(request) { - return queryService.delegatorUnbondingDelegations(request); - }, - redelegations(request) { - return queryService.redelegations(request); - }, - delegatorValidators(request) { - return queryService.delegatorValidators(request); - }, - delegatorValidator(request) { - return queryService.delegatorValidator(request); - }, - historicalInfo(request) { - return queryService.historicalInfo(request); - }, - pool(request) { - return queryService.pool(request); - }, - params(request) { - return queryService.params(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts b/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts deleted file mode 100644 index 91834f30..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/staking.d.ts +++ /dev/null @@ -1,1065 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType } from "../../../tendermint/types/types"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Pubkey } from "@cosmjs/amino"; -/** BondStatus is the status of a validator. */ -export declare enum BondStatus { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BOND_STATUS_UNSPECIFIED = 0, - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BOND_STATUS_UNBONDED = 1, - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BOND_STATUS_UNBONDING = 2, - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BOND_STATUS_BONDED = 3, - UNRECOGNIZED = -1 -} -export declare const BondStatusSDKType: typeof BondStatus; -export declare const BondStatusAmino: typeof BondStatus; -export declare function bondStatusFromJSON(object: any): BondStatus; -export declare function bondStatusToJSON(object: BondStatus): string; -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfo { - header: Header; - valset: Validator[]; -} -export interface HistoricalInfoProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; - value: Uint8Array; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoAmino { - header?: HeaderAmino; - valset?: ValidatorAmino[]; -} -export interface HistoricalInfoAminoMsg { - type: "cosmos-sdk/HistoricalInfo"; - value: HistoricalInfoAmino; -} -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface HistoricalInfoSDKType { - header: HeaderSDKType; - valset: ValidatorSDKType[]; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - maxRate: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - maxChangeRate: string; -} -export interface CommissionRatesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; - value: Uint8Array; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesAmino { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; -} -export interface CommissionRatesAminoMsg { - type: "cosmos-sdk/CommissionRates"; - value: CommissionRatesAmino; -} -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CommissionRatesSDKType { - rate: string; - max_rate: string; - max_change_rate: string; -} -/** Commission defines commission parameters for a given validator. */ -export interface Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commissionRates: CommissionRates; - /** update_time is the last time the commission rate was changed. */ - updateTime: Date; -} -export interface CommissionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Commission"; - value: Uint8Array; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionAmino { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: CommissionRatesAmino; - /** update_time is the last time the commission rate was changed. */ - update_time?: string; -} -export interface CommissionAminoMsg { - type: "cosmos-sdk/Commission"; - value: CommissionAmino; -} -/** Commission defines commission parameters for a given validator. */ -export interface CommissionSDKType { - commission_rates: CommissionRatesSDKType; - update_time: Date; -} -/** Description defines a validator description. */ -export interface Description { - /** moniker defines a human-readable name for the validator. */ - moniker: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity: string; - /** website defines an optional website link. */ - website: string; - /** security_contact defines an optional email for security contact. */ - securityContact: string; - /** details define other optional details. */ - details: string; -} -export interface DescriptionProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Description"; - value: Uint8Array; -} -/** Description defines a validator description. */ -export interface DescriptionAmino { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; -} -export interface DescriptionAminoMsg { - type: "cosmos-sdk/Description"; - value: DescriptionAmino; -} -/** Description defines a validator description. */ -export interface DescriptionSDKType { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operatorAddress: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensusPubkey?: Any | undefined; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegatorShares: string; - /** description defines the description terms for the validator. */ - description: Description; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbondingHeight: bigint; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbondingTime: Date; - /** commission defines the commission parameters. */ - commission: Commission; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - minSelfDelegation: string; -} -export interface ValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Validator"; - value: Uint8Array; -} -export type ValidatorEncoded = Omit & { - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ consensusPubkey?: AnyProtoMsg | undefined; -}; -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorAmino { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. */ - consensus_pubkey?: AnyAmino; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** status is the validator status (bonded/unbonding/unbonded). */ - status?: BondStatus; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: DescriptionAmino; - /** unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. */ - unbonding_height?: string; - /** unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: CommissionAmino; - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - */ - min_self_delegation?: string; -} -export interface ValidatorAminoMsg { - type: "cosmos-sdk/Validator"; - value: ValidatorAmino; -} -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface ValidatorSDKType { - operator_address: string; - consensus_pubkey?: AnySDKType | undefined; - jailed: boolean; - status: BondStatus; - tokens: string; - delegator_shares: string; - description: DescriptionSDKType; - unbonding_height: bigint; - unbonding_time: Date; - commission: CommissionSDKType; - min_self_delegation: string; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddresses { - addresses: string[]; -} -export interface ValAddressesProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; - value: Uint8Array; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesAmino { - addresses?: string[]; -} -export interface ValAddressesAminoMsg { - type: "cosmos-sdk/ValAddresses"; - value: ValAddressesAmino; -} -/** ValAddresses defines a repeated set of validator addresses. */ -export interface ValAddressesSDKType { - addresses: string[]; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPair { - delegatorAddress: string; - validatorAddress: string; -} -export interface DVPairProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPair"; - value: Uint8Array; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairAmino { - delegator_address?: string; - validator_address?: string; -} -export interface DVPairAminoMsg { - type: "cosmos-sdk/DVPair"; - value: DVPairAmino; -} -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - */ -export interface DVPairSDKType { - delegator_address: string; - validator_address: string; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairs { - pairs: DVPair[]; -} -export interface DVPairsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVPairs"; - value: Uint8Array; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsAmino { - pairs?: DVPairAmino[]; -} -export interface DVPairsAminoMsg { - type: "cosmos-sdk/DVPairs"; - value: DVPairsAmino; -} -/** DVPairs defines an array of DVPair objects. */ -export interface DVPairsSDKType { - pairs: DVPairSDKType[]; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTriplet { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; -} -export interface DVVTripletProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; - value: Uint8Array; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; -} -export interface DVVTripletAminoMsg { - type: "cosmos-sdk/DVVTriplet"; - value: DVVTripletAmino; -} -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - */ -export interface DVVTripletSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTriplets { - triplets: DVVTriplet[]; -} -export interface DVVTripletsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; - value: Uint8Array; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsAmino { - triplets?: DVVTripletAmino[]; -} -export interface DVVTripletsAminoMsg { - type: "cosmos-sdk/DVVTriplets"; - value: DVVTripletsAmino; -} -/** DVVTriplets defines an array of DVVTriplet objects. */ -export interface DVVTripletsSDKType { - triplets: DVVTripletSDKType[]; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** shares define the delegation shares received. */ - shares: string; -} -export interface DelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Delegation"; - value: Uint8Array; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; -} -export interface DelegationAminoMsg { - type: "cosmos-sdk/Delegation"; - value: DelegationAmino; -} -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface DelegationSDKType { - delegator_address: string; - validator_address: string; - shares: string; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_address is the bech32-encoded address of the validator. */ - validatorAddress: string; - /** entries are the unbonding delegation entries. */ - entries: UnbondingDelegationEntry[]; -} -export interface UnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; - value: Uint8Array; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: UnbondingDelegationEntryAmino[]; -} -export interface UnbondingDelegationAminoMsg { - type: "cosmos-sdk/UnbondingDelegation"; - value: UnbondingDelegationAmino; -} -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface UnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - entries: UnbondingDelegationEntrySDKType[]; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntry { - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; - /** completion_time is the unix time for unbonding completion. */ - completionTime: Date; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initialBalance: string; - /** balance defines the tokens to receive at completion. */ - balance: string; -} -export interface UnbondingDelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; - value: Uint8Array; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntryAmino { - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; - /** completion_time is the unix time for unbonding completion. */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; -} -export interface UnbondingDelegationEntryAminoMsg { - type: "cosmos-sdk/UnbondingDelegationEntry"; - value: UnbondingDelegationEntryAmino; -} -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface UnbondingDelegationEntrySDKType { - creation_height: bigint; - completion_time: Date; - initial_balance: string; - balance: string; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntry { - /** creation_height defines the height which the redelegation took place. */ - creationHeight: bigint; - /** completion_time defines the unix time for redelegation completion. */ - completionTime: Date; - /** initial_balance defines the initial balance when redelegation started. */ - initialBalance: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - sharesDst: string; -} -export interface RedelegationEntryProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; - value: Uint8Array; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntryAmino { - /** creation_height defines the height which the redelegation took place. */ - creation_height?: string; - /** completion_time defines the unix time for redelegation completion. */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; -} -export interface RedelegationEntryAminoMsg { - type: "cosmos-sdk/RedelegationEntry"; - value: RedelegationEntryAmino; -} -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface RedelegationEntrySDKType { - creation_height: bigint; - completion_time: Date; - initial_balance: string; - shares_dst: string; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegatorAddress: string; - /** validator_src_address is the validator redelegation source operator address. */ - validatorSrcAddress: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validatorDstAddress: string; - /** entries are the redelegation entries. */ - entries: RedelegationEntry[]; -} -export interface RedelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Redelegation"; - value: Uint8Array; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationAmino { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: RedelegationEntryAmino[]; -} -export interface RedelegationAminoMsg { - type: "cosmos-sdk/Redelegation"; - value: RedelegationAmino; -} -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface RedelegationSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - entries: RedelegationEntrySDKType[]; -} -/** Params defines the parameters for the staking module. */ -export interface Params { - /** unbonding_time is the time duration of unbonding. */ - unbondingTime: Duration; - /** max_validators is the maximum number of validators. */ - maxValidators: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - maxEntries: number; - /** historical_entries is the number of historical entries to persist. */ - historicalEntries: number; - /** bond_denom defines the bondable coin denomination. */ - bondDenom: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - minCommissionRate: string; -} -export interface ParamsProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Params"; - value: Uint8Array; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsAmino { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: DurationAmino; - /** max_validators is the maximum number of validators. */ - max_validators?: number; - /** max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). */ - max_entries?: number; - /** historical_entries is the number of historical entries to persist. */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; - /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ - min_commission_rate?: string; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the parameters for the staking module. */ -export interface ParamsSDKType { - unbonding_time: DurationSDKType; - max_validators: number; - max_entries: number; - historical_entries: number; - bond_denom: string; - min_commission_rate: string; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponse { - delegation: Delegation; - balance: Coin; -} -export interface DelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; - value: Uint8Array; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseAmino { - delegation?: DelegationAmino; - balance?: CoinAmino; -} -export interface DelegationResponseAminoMsg { - type: "cosmos-sdk/DelegationResponse"; - value: DelegationResponseAmino; -} -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface DelegationResponseSDKType { - delegation: DelegationSDKType; - balance: CoinSDKType; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponse { - redelegationEntry: RedelegationEntry; - balance: string; -} -export interface RedelegationEntryResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; - value: Uint8Array; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseAmino { - redelegation_entry?: RedelegationEntryAmino; - balance?: string; -} -export interface RedelegationEntryResponseAminoMsg { - type: "cosmos-sdk/RedelegationEntryResponse"; - value: RedelegationEntryResponseAmino; -} -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationEntryResponseSDKType { - redelegation_entry: RedelegationEntrySDKType; - balance: string; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponse { - redelegation: Redelegation; - entries: RedelegationEntryResponse[]; -} -export interface RedelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; - value: Uint8Array; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseAmino { - redelegation?: RedelegationAmino; - entries?: RedelegationEntryResponseAmino[]; -} -export interface RedelegationResponseAminoMsg { - type: "cosmos-sdk/RedelegationResponse"; - value: RedelegationResponseAmino; -} -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface RedelegationResponseSDKType { - redelegation: RedelegationSDKType; - entries: RedelegationEntryResponseSDKType[]; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface Pool { - notBondedTokens: string; - bondedTokens: string; -} -export interface PoolProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.Pool"; - value: Uint8Array; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolAmino { - not_bonded_tokens: string; - bonded_tokens: string; -} -export interface PoolAminoMsg { - type: "cosmos-sdk/Pool"; - value: PoolAmino; -} -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface PoolSDKType { - not_bonded_tokens: string; - bonded_tokens: string; -} -export declare const HistoricalInfo: { - typeUrl: string; - encode(message: HistoricalInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): HistoricalInfo; - fromPartial(object: Partial): HistoricalInfo; - fromAmino(object: HistoricalInfoAmino): HistoricalInfo; - toAmino(message: HistoricalInfo): HistoricalInfoAmino; - fromAminoMsg(object: HistoricalInfoAminoMsg): HistoricalInfo; - toAminoMsg(message: HistoricalInfo): HistoricalInfoAminoMsg; - fromProtoMsg(message: HistoricalInfoProtoMsg): HistoricalInfo; - toProto(message: HistoricalInfo): Uint8Array; - toProtoMsg(message: HistoricalInfo): HistoricalInfoProtoMsg; -}; -export declare const CommissionRates: { - typeUrl: string; - encode(message: CommissionRates, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommissionRates; - fromPartial(object: Partial): CommissionRates; - fromAmino(object: CommissionRatesAmino): CommissionRates; - toAmino(message: CommissionRates): CommissionRatesAmino; - fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates; - toAminoMsg(message: CommissionRates): CommissionRatesAminoMsg; - fromProtoMsg(message: CommissionRatesProtoMsg): CommissionRates; - toProto(message: CommissionRates): Uint8Array; - toProtoMsg(message: CommissionRates): CommissionRatesProtoMsg; -}; -export declare const Commission: { - typeUrl: string; - encode(message: Commission, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Commission; - fromPartial(object: Partial): Commission; - fromAmino(object: CommissionAmino): Commission; - toAmino(message: Commission): CommissionAmino; - fromAminoMsg(object: CommissionAminoMsg): Commission; - toAminoMsg(message: Commission): CommissionAminoMsg; - fromProtoMsg(message: CommissionProtoMsg): Commission; - toProto(message: Commission): Uint8Array; - toProtoMsg(message: Commission): CommissionProtoMsg; -}; -export declare const Description: { - typeUrl: string; - encode(message: Description, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Description; - fromPartial(object: Partial): Description; - fromAmino(object: DescriptionAmino): Description; - toAmino(message: Description): DescriptionAmino; - fromAminoMsg(object: DescriptionAminoMsg): Description; - toAminoMsg(message: Description): DescriptionAminoMsg; - fromProtoMsg(message: DescriptionProtoMsg): Description; - toProto(message: Description): Uint8Array; - toProtoMsg(message: Description): DescriptionProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - toAminoMsg(message: Validator): ValidatorAminoMsg; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const ValAddresses: { - typeUrl: string; - encode(message: ValAddresses, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValAddresses; - fromPartial(object: Partial): ValAddresses; - fromAmino(object: ValAddressesAmino): ValAddresses; - toAmino(message: ValAddresses): ValAddressesAmino; - fromAminoMsg(object: ValAddressesAminoMsg): ValAddresses; - toAminoMsg(message: ValAddresses): ValAddressesAminoMsg; - fromProtoMsg(message: ValAddressesProtoMsg): ValAddresses; - toProto(message: ValAddresses): Uint8Array; - toProtoMsg(message: ValAddresses): ValAddressesProtoMsg; -}; -export declare const DVPair: { - typeUrl: string; - encode(message: DVPair, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVPair; - fromPartial(object: Partial): DVPair; - fromAmino(object: DVPairAmino): DVPair; - toAmino(message: DVPair): DVPairAmino; - fromAminoMsg(object: DVPairAminoMsg): DVPair; - toAminoMsg(message: DVPair): DVPairAminoMsg; - fromProtoMsg(message: DVPairProtoMsg): DVPair; - toProto(message: DVPair): Uint8Array; - toProtoMsg(message: DVPair): DVPairProtoMsg; -}; -export declare const DVPairs: { - typeUrl: string; - encode(message: DVPairs, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVPairs; - fromPartial(object: Partial): DVPairs; - fromAmino(object: DVPairsAmino): DVPairs; - toAmino(message: DVPairs): DVPairsAmino; - fromAminoMsg(object: DVPairsAminoMsg): DVPairs; - toAminoMsg(message: DVPairs): DVPairsAminoMsg; - fromProtoMsg(message: DVPairsProtoMsg): DVPairs; - toProto(message: DVPairs): Uint8Array; - toProtoMsg(message: DVPairs): DVPairsProtoMsg; -}; -export declare const DVVTriplet: { - typeUrl: string; - encode(message: DVVTriplet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplet; - fromPartial(object: Partial): DVVTriplet; - fromAmino(object: DVVTripletAmino): DVVTriplet; - toAmino(message: DVVTriplet): DVVTripletAmino; - fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet; - toAminoMsg(message: DVVTriplet): DVVTripletAminoMsg; - fromProtoMsg(message: DVVTripletProtoMsg): DVVTriplet; - toProto(message: DVVTriplet): Uint8Array; - toProtoMsg(message: DVVTriplet): DVVTripletProtoMsg; -}; -export declare const DVVTriplets: { - typeUrl: string; - encode(message: DVVTriplets, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DVVTriplets; - fromPartial(object: Partial): DVVTriplets; - fromAmino(object: DVVTripletsAmino): DVVTriplets; - toAmino(message: DVVTriplets): DVVTripletsAmino; - fromAminoMsg(object: DVVTripletsAminoMsg): DVVTriplets; - toAminoMsg(message: DVVTriplets): DVVTripletsAminoMsg; - fromProtoMsg(message: DVVTripletsProtoMsg): DVVTriplets; - toProto(message: DVVTriplets): Uint8Array; - toProtoMsg(message: DVVTriplets): DVVTripletsProtoMsg; -}; -export declare const Delegation: { - typeUrl: string; - encode(message: Delegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Delegation; - fromPartial(object: Partial): Delegation; - fromAmino(object: DelegationAmino): Delegation; - toAmino(message: Delegation): DelegationAmino; - fromAminoMsg(object: DelegationAminoMsg): Delegation; - toAminoMsg(message: Delegation): DelegationAminoMsg; - fromProtoMsg(message: DelegationProtoMsg): Delegation; - toProto(message: Delegation): Uint8Array; - toProtoMsg(message: Delegation): DelegationProtoMsg; -}; -export declare const UnbondingDelegation: { - typeUrl: string; - encode(message: UnbondingDelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegation; - fromPartial(object: Partial): UnbondingDelegation; - fromAmino(object: UnbondingDelegationAmino): UnbondingDelegation; - toAmino(message: UnbondingDelegation): UnbondingDelegationAmino; - fromAminoMsg(object: UnbondingDelegationAminoMsg): UnbondingDelegation; - toAminoMsg(message: UnbondingDelegation): UnbondingDelegationAminoMsg; - fromProtoMsg(message: UnbondingDelegationProtoMsg): UnbondingDelegation; - toProto(message: UnbondingDelegation): Uint8Array; - toProtoMsg(message: UnbondingDelegation): UnbondingDelegationProtoMsg; -}; -export declare const UnbondingDelegationEntry: { - typeUrl: string; - encode(message: UnbondingDelegationEntry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UnbondingDelegationEntry; - fromPartial(object: Partial): UnbondingDelegationEntry; - fromAmino(object: UnbondingDelegationEntryAmino): UnbondingDelegationEntry; - toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino; - fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry; - toAminoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryAminoMsg; - fromProtoMsg(message: UnbondingDelegationEntryProtoMsg): UnbondingDelegationEntry; - toProto(message: UnbondingDelegationEntry): Uint8Array; - toProtoMsg(message: UnbondingDelegationEntry): UnbondingDelegationEntryProtoMsg; -}; -export declare const RedelegationEntry: { - typeUrl: string; - encode(message: RedelegationEntry, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntry; - fromPartial(object: Partial): RedelegationEntry; - fromAmino(object: RedelegationEntryAmino): RedelegationEntry; - toAmino(message: RedelegationEntry): RedelegationEntryAmino; - fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry; - toAminoMsg(message: RedelegationEntry): RedelegationEntryAminoMsg; - fromProtoMsg(message: RedelegationEntryProtoMsg): RedelegationEntry; - toProto(message: RedelegationEntry): Uint8Array; - toProtoMsg(message: RedelegationEntry): RedelegationEntryProtoMsg; -}; -export declare const Redelegation: { - typeUrl: string; - encode(message: Redelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Redelegation; - fromPartial(object: Partial): Redelegation; - fromAmino(object: RedelegationAmino): Redelegation; - toAmino(message: Redelegation): RedelegationAmino; - fromAminoMsg(object: RedelegationAminoMsg): Redelegation; - toAminoMsg(message: Redelegation): RedelegationAminoMsg; - fromProtoMsg(message: RedelegationProtoMsg): Redelegation; - toProto(message: Redelegation): Uint8Array; - toProtoMsg(message: Redelegation): RedelegationProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const DelegationResponse: { - typeUrl: string; - encode(message: DelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelegationResponse; - fromPartial(object: Partial): DelegationResponse; - fromAmino(object: DelegationResponseAmino): DelegationResponse; - toAmino(message: DelegationResponse): DelegationResponseAmino; - fromAminoMsg(object: DelegationResponseAminoMsg): DelegationResponse; - toAminoMsg(message: DelegationResponse): DelegationResponseAminoMsg; - fromProtoMsg(message: DelegationResponseProtoMsg): DelegationResponse; - toProto(message: DelegationResponse): Uint8Array; - toProtoMsg(message: DelegationResponse): DelegationResponseProtoMsg; -}; -export declare const RedelegationEntryResponse: { - typeUrl: string; - encode(message: RedelegationEntryResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationEntryResponse; - fromPartial(object: Partial): RedelegationEntryResponse; - fromAmino(object: RedelegationEntryResponseAmino): RedelegationEntryResponse; - toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino; - fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse; - toAminoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseAminoMsg; - fromProtoMsg(message: RedelegationEntryResponseProtoMsg): RedelegationEntryResponse; - toProto(message: RedelegationEntryResponse): Uint8Array; - toProtoMsg(message: RedelegationEntryResponse): RedelegationEntryResponseProtoMsg; -}; -export declare const RedelegationResponse: { - typeUrl: string; - encode(message: RedelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RedelegationResponse; - fromPartial(object: Partial): RedelegationResponse; - fromAmino(object: RedelegationResponseAmino): RedelegationResponse; - toAmino(message: RedelegationResponse): RedelegationResponseAmino; - fromAminoMsg(object: RedelegationResponseAminoMsg): RedelegationResponse; - toAminoMsg(message: RedelegationResponse): RedelegationResponseAminoMsg; - fromProtoMsg(message: RedelegationResponseProtoMsg): RedelegationResponse; - toProto(message: RedelegationResponse): Uint8Array; - toProtoMsg(message: RedelegationResponse): RedelegationResponseProtoMsg; -}; -export declare const Pool: { - typeUrl: string; - encode(message: Pool, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Pool; - fromPartial(object: Partial): Pool; - fromAmino(object: PoolAmino): Pool; - toAmino(message: Pool): PoolAmino; - fromAminoMsg(object: PoolAminoMsg): Pool; - toAminoMsg(message: Pool): PoolAminoMsg; - fromProtoMsg(message: PoolProtoMsg): Pool; - toProto(message: Pool): Uint8Array; - toProtoMsg(message: Pool): PoolProtoMsg; -}; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/dist/cosmos/staking/v1beta1/staking.js b/packages/api/dist/cosmos/staking/v1beta1/staking.js deleted file mode 100644 index 245dae4a..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/staking.js +++ /dev/null @@ -1,1999 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Cosmos_cryptoPubKey_ToAmino = exports.Cosmos_cryptoPubKey_FromAmino = exports.Cosmos_cryptoPubKey_InterfaceDecoder = exports.Pool = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.DelegationResponse = exports.Params = exports.Redelegation = exports.RedelegationEntry = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.ValAddresses = exports.Validator = exports.Description = exports.Commission = exports.CommissionRates = exports.HistoricalInfo = exports.bondStatusToJSON = exports.bondStatusFromJSON = exports.BondStatusAmino = exports.BondStatusSDKType = exports.BondStatus = void 0; -//@ts-nocheck -const types_1 = require("../../../tendermint/types/types"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const any_1 = require("../../../google/protobuf/any"); -const duration_1 = require("../../../google/protobuf/duration"); -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const math_1 = require("@cosmjs/math"); -const helpers_1 = require("../../../helpers"); -const proto_signing_1 = require("@cosmjs/proto-signing"); -/** BondStatus is the status of a validator. */ -var BondStatus; -(function (BondStatus) { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED"; - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED"; - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING"; - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED"; - BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BondStatus || (exports.BondStatus = BondStatus = {})); -exports.BondStatusSDKType = BondStatus; -exports.BondStatusAmino = BondStatus; -function bondStatusFromJSON(object) { - switch (object) { - case 0: - case "BOND_STATUS_UNSPECIFIED": - return BondStatus.BOND_STATUS_UNSPECIFIED; - case 1: - case "BOND_STATUS_UNBONDED": - return BondStatus.BOND_STATUS_UNBONDED; - case 2: - case "BOND_STATUS_UNBONDING": - return BondStatus.BOND_STATUS_UNBONDING; - case 3: - case "BOND_STATUS_BONDED": - return BondStatus.BOND_STATUS_BONDED; - case -1: - case "UNRECOGNIZED": - default: - return BondStatus.UNRECOGNIZED; - } -} -exports.bondStatusFromJSON = bondStatusFromJSON; -function bondStatusToJSON(object) { - switch (object) { - case BondStatus.BOND_STATUS_UNSPECIFIED: - return "BOND_STATUS_UNSPECIFIED"; - case BondStatus.BOND_STATUS_UNBONDED: - return "BOND_STATUS_UNBONDED"; - case BondStatus.BOND_STATUS_UNBONDING: - return "BOND_STATUS_UNBONDING"; - case BondStatus.BOND_STATUS_BONDED: - return "BOND_STATUS_BONDED"; - case BondStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.bondStatusToJSON = bondStatusToJSON; -function createBaseHistoricalInfo() { - return { - header: types_1.Header.fromPartial({}), - valset: [] - }; -} -exports.HistoricalInfo = { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.header !== undefined) { - types_1.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.valset) { - exports.Validator.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHistoricalInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = types_1.Header.decode(reader, reader.uint32()); - break; - case 2: - message.valset.push(exports.Validator.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHistoricalInfo(); - message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; - message.valset = object.valset?.map(e => exports.Validator.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseHistoricalInfo(); - if (object.header !== undefined && object.header !== null) { - message.header = types_1.Header.fromAmino(object.header); - } - message.valset = object.valset?.map(e => exports.Validator.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; - if (message.valset) { - obj.valset = message.valset.map(e => e ? exports.Validator.toAmino(e) : undefined); - } - else { - obj.valset = message.valset; - } - return obj; - }, - fromAminoMsg(object) { - return exports.HistoricalInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/HistoricalInfo", - value: exports.HistoricalInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.HistoricalInfo.decode(message.value); - }, - toProto(message) { - return exports.HistoricalInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - value: exports.HistoricalInfo.encode(message).finish() - }; - } -}; -function createBaseCommissionRates() { - return { - rate: "", - maxRate: "", - maxChangeRate: "" - }; -} -exports.CommissionRates = { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.rate !== "") { - writer.uint32(10).string(math_1.Decimal.fromUserInput(message.rate, 18).atomics); - } - if (message.maxRate !== "") { - writer.uint32(18).string(math_1.Decimal.fromUserInput(message.maxRate, 18).atomics); - } - if (message.maxChangeRate !== "") { - writer.uint32(26).string(math_1.Decimal.fromUserInput(message.maxChangeRate, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommissionRates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.maxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.maxChangeRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommissionRates(); - message.rate = object.rate ?? ""; - message.maxRate = object.maxRate ?? ""; - message.maxChangeRate = object.maxChangeRate ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCommissionRates(); - if (object.rate !== undefined && object.rate !== null) { - message.rate = object.rate; - } - if (object.max_rate !== undefined && object.max_rate !== null) { - message.maxRate = object.max_rate; - } - if (object.max_change_rate !== undefined && object.max_change_rate !== null) { - message.maxChangeRate = object.max_change_rate; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.rate = message.rate === "" ? undefined : message.rate; - obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; - obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; - return obj; - }, - fromAminoMsg(object) { - return exports.CommissionRates.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommissionRates", - value: exports.CommissionRates.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CommissionRates.decode(message.value); - }, - toProto(message) { - return exports.CommissionRates.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - value: exports.CommissionRates.encode(message).finish() - }; - } -}; -function createBaseCommission() { - return { - commissionRates: exports.CommissionRates.fromPartial({}), - updateTime: new Date() - }; -} -exports.Commission = { - typeUrl: "/cosmos.staking.v1beta1.Commission", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.commissionRates !== undefined) { - exports.CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); - } - if (message.updateTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.updateTime), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commissionRates = exports.CommissionRates.decode(reader, reader.uint32()); - break; - case 2: - message.updateTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommission(); - message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? exports.CommissionRates.fromPartial(object.commissionRates) : undefined; - message.updateTime = object.updateTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseCommission(); - if (object.commission_rates !== undefined && object.commission_rates !== null) { - message.commissionRates = exports.CommissionRates.fromAmino(object.commission_rates); - } - if (object.update_time !== undefined && object.update_time !== null) { - message.updateTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.update_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.commission_rates = message.commissionRates ? exports.CommissionRates.toAmino(message.commissionRates) : undefined; - obj.update_time = message.updateTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.updateTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Commission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Commission", - value: exports.Commission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Commission.decode(message.value); - }, - toProto(message) { - return exports.Commission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Commission", - value: exports.Commission.encode(message).finish() - }; - } -}; -function createBaseDescription() { - return { - moniker: "", - identity: "", - website: "", - securityContact: "", - details: "" - }; -} -exports.Description = { - typeUrl: "/cosmos.staking.v1beta1.Description", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.moniker !== "") { - writer.uint32(10).string(message.moniker); - } - if (message.identity !== "") { - writer.uint32(18).string(message.identity); - } - if (message.website !== "") { - writer.uint32(26).string(message.website); - } - if (message.securityContact !== "") { - writer.uint32(34).string(message.securityContact); - } - if (message.details !== "") { - writer.uint32(42).string(message.details); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescription(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moniker = reader.string(); - break; - case 2: - message.identity = reader.string(); - break; - case 3: - message.website = reader.string(); - break; - case 4: - message.securityContact = reader.string(); - break; - case 5: - message.details = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescription(); - message.moniker = object.moniker ?? ""; - message.identity = object.identity ?? ""; - message.website = object.website ?? ""; - message.securityContact = object.securityContact ?? ""; - message.details = object.details ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDescription(); - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.identity !== undefined && object.identity !== null) { - message.identity = object.identity; - } - if (object.website !== undefined && object.website !== null) { - message.website = object.website; - } - if (object.security_contact !== undefined && object.security_contact !== null) { - message.securityContact = object.security_contact; - } - if (object.details !== undefined && object.details !== null) { - message.details = object.details; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.identity = message.identity === "" ? undefined : message.identity; - obj.website = message.website === "" ? undefined : message.website; - obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; - obj.details = message.details === "" ? undefined : message.details; - return obj; - }, - fromAminoMsg(object) { - return exports.Description.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Description", - value: exports.Description.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Description.decode(message.value); - }, - toProto(message) { - return exports.Description.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Description", - value: exports.Description.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - operatorAddress: "", - consensusPubkey: undefined, - jailed: false, - status: 0, - tokens: "", - delegatorShares: "", - description: exports.Description.fromPartial({}), - unbondingHeight: BigInt(0), - unbondingTime: new Date(), - commission: exports.Commission.fromPartial({}), - minSelfDelegation: "" - }; -} -exports.Validator = { - typeUrl: "/cosmos.staking.v1beta1.Validator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.operatorAddress !== "") { - writer.uint32(10).string(message.operatorAddress); - } - if (message.consensusPubkey !== undefined) { - any_1.Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim(); - } - if (message.jailed === true) { - writer.uint32(24).bool(message.jailed); - } - if (message.status !== 0) { - writer.uint32(32).int32(message.status); - } - if (message.tokens !== "") { - writer.uint32(42).string(message.tokens); - } - if (message.delegatorShares !== "") { - writer.uint32(50).string(math_1.Decimal.fromUserInput(message.delegatorShares, 18).atomics); - } - if (message.description !== undefined) { - exports.Description.encode(message.description, writer.uint32(58).fork()).ldelim(); - } - if (message.unbondingHeight !== BigInt(0)) { - writer.uint32(64).int64(message.unbondingHeight); - } - if (message.unbondingTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.unbondingTime), writer.uint32(74).fork()).ldelim(); - } - if (message.commission !== undefined) { - exports.Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(90).string(message.minSelfDelegation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operatorAddress = reader.string(); - break; - case 2: - message.consensusPubkey = (0, exports.Cosmos_cryptoPubKey_InterfaceDecoder)(reader); - break; - case 3: - message.jailed = reader.bool(); - break; - case 4: - message.status = reader.int32(); - break; - case 5: - message.tokens = reader.string(); - break; - case 6: - message.delegatorShares = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 7: - message.description = exports.Description.decode(reader, reader.uint32()); - break; - case 8: - message.unbondingHeight = reader.int64(); - break; - case 9: - message.unbondingTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.commission = exports.Commission.decode(reader, reader.uint32()); - break; - case 11: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.operatorAddress = object.operatorAddress ?? ""; - message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? any_1.Any.fromPartial(object.consensusPubkey) : undefined; - message.jailed = object.jailed ?? false; - message.status = object.status ?? 0; - message.tokens = object.tokens ?? ""; - message.delegatorShares = object.delegatorShares ?? ""; - message.description = object.description !== undefined && object.description !== null ? exports.Description.fromPartial(object.description) : undefined; - message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); - message.unbondingTime = object.unbondingTime ?? undefined; - message.commission = object.commission !== undefined && object.commission !== null ? exports.Commission.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.operator_address !== undefined && object.operator_address !== null) { - message.operatorAddress = object.operator_address; - } - if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { - message.consensusPubkey = (0, proto_signing_1.encodePubkey)(object.consensus_pubkey); - } - if (object.jailed !== undefined && object.jailed !== null) { - message.jailed = object.jailed; - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.tokens !== undefined && object.tokens !== null) { - message.tokens = object.tokens; - } - if (object.delegator_shares !== undefined && object.delegator_shares !== null) { - message.delegatorShares = object.delegator_shares; - } - if (object.description !== undefined && object.description !== null) { - message.description = exports.Description.fromAmino(object.description); - } - if (object.unbonding_height !== undefined && object.unbonding_height !== null) { - message.unbondingHeight = BigInt(object.unbonding_height); - } - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.unbonding_time)); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = exports.Commission.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; - obj.consensus_pubkey = message.consensusPubkey ? (0, proto_signing_1.decodePubkey)(message.consensusPubkey) : undefined; - obj.jailed = message.jailed === false ? undefined : message.jailed; - obj.status = message.status === 0 ? undefined : message.status; - obj.tokens = message.tokens === "" ? undefined : message.tokens; - obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; - obj.description = message.description ? exports.Description.toAmino(message.description) : undefined; - obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; - obj.unbonding_time = message.unbondingTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.unbondingTime)) : undefined; - obj.commission = message.commission ? exports.Commission.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object) { - return exports.Validator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Validator", - value: exports.Validator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Validator.decode(message.value); - }, - toProto(message) { - return exports.Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Validator", - value: exports.Validator.encode(message).finish() - }; - } -}; -function createBaseValAddresses() { - return { - addresses: [] - }; -} -exports.ValAddresses = { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.addresses) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValAddresses(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addresses.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.addresses) { - obj.addresses = message.addresses.map(e => e); - } - else { - obj.addresses = message.addresses; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValAddresses.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValAddresses", - value: exports.ValAddresses.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ValAddresses.decode(message.value); - }, - toProto(message) { - return exports.ValAddresses.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - value: exports.ValAddresses.encode(message).finish() - }; - } -}; -function createBaseDVPair() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -exports.DVPair = { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVPair(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDVPair(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.DVPair.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVPair", - value: exports.DVPair.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DVPair.decode(message.value); - }, - toProto(message) { - return exports.DVPair.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - value: exports.DVPair.encode(message).finish() - }; - } -}; -function createBaseDVPairs() { - return { - pairs: [] - }; -} -exports.DVPairs = { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.pairs) { - exports.DVPair.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPairs(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pairs.push(exports.DVPair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => exports.DVPair.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => exports.DVPair.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? exports.DVPair.toAmino(e) : undefined); - } - else { - obj.pairs = message.pairs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.DVPairs.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVPairs", - value: exports.DVPairs.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DVPairs.decode(message.value); - }, - toProto(message) { - return exports.DVPairs.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - value: exports.DVPairs.encode(message).finish() - }; - } -}; -function createBaseDVVTriplet() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "" - }; -} -exports.DVVTriplet = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVVTriplet(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDVVTriplet(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.DVVTriplet.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVVTriplet", - value: exports.DVVTriplet.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DVVTriplet.decode(message.value); - }, - toProto(message) { - return exports.DVVTriplet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - value: exports.DVVTriplet.encode(message).finish() - }; - } -}; -function createBaseDVVTriplets() { - return { - triplets: [] - }; -} -exports.DVVTriplets = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.triplets) { - exports.DVVTriplet.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplets(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.triplets.push(exports.DVVTriplet.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => exports.DVVTriplet.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => exports.DVVTriplet.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.triplets) { - obj.triplets = message.triplets.map(e => e ? exports.DVVTriplet.toAmino(e) : undefined); - } - else { - obj.triplets = message.triplets; - } - return obj; - }, - fromAminoMsg(object) { - return exports.DVVTriplets.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVVTriplets", - value: exports.DVVTriplets.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DVVTriplets.decode(message.value); - }, - toProto(message) { - return exports.DVVTriplets.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - value: exports.DVVTriplets.encode(message).finish() - }; - } -}; -function createBaseDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - shares: "" - }; -} -exports.Delegation = { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.shares !== "") { - writer.uint32(26).string(math_1.Decimal.fromUserInput(message.shares, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.shares = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.shares = object.shares ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.shares !== undefined && object.shares !== null) { - message.shares = object.shares; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.shares = message.shares === "" ? undefined : message.shares; - return obj; - }, - fromAminoMsg(object) { - return exports.Delegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Delegation", - value: exports.Delegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Delegation.decode(message.value); - }, - toProto(message) { - return exports.Delegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - value: exports.Delegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - entries: [] - }; -} -exports.UnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - for (const v of message.entries) { - exports.UnbondingDelegationEntry.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.entries.push(exports.UnbondingDelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.entries = object.entries?.map(e => exports.UnbondingDelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.entries = object.entries?.map(e => exports.UnbondingDelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? exports.UnbondingDelegationEntry.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return exports.UnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UnbondingDelegation", - value: exports.UnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.UnbondingDelegation.decode(message.value); - }, - toProto(message) { - return exports.UnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - value: exports.UnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegationEntry() { - return { - creationHeight: BigInt(0), - completionTime: new Date(), - initialBalance: "", - balance: "" - }; -} -exports.UnbondingDelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUnbondingDelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime ?? undefined; - message.initialBalance = object.initialBalance ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseUnbondingDelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return exports.UnbondingDelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UnbondingDelegationEntry", - value: exports.UnbondingDelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.UnbondingDelegationEntry.decode(message.value); - }, - toProto(message) { - return exports.UnbondingDelegationEntry.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - value: exports.UnbondingDelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntry() { - return { - creationHeight: BigInt(0), - completionTime: new Date(), - initialBalance: "", - sharesDst: "" - }; -} -exports.RedelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.sharesDst !== "") { - writer.uint32(34).string(math_1.Decimal.fromUserInput(message.sharesDst, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.sharesDst = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime ?? undefined; - message.initialBalance = object.initialBalance ?? ""; - message.sharesDst = object.sharesDst ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.shares_dst !== undefined && object.shares_dst !== null) { - message.sharesDst = object.shares_dst; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; - return obj; - }, - fromAminoMsg(object) { - return exports.RedelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationEntry", - value: exports.RedelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.RedelegationEntry.decode(message.value); - }, - toProto(message) { - return exports.RedelegationEntry.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - value: exports.RedelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegation() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - entries: [] - }; -} -exports.Redelegation = { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - for (const v of message.entries) { - exports.RedelegationEntry.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.entries.push(exports.RedelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.entries = object.entries?.map(e => exports.RedelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - message.entries = object.entries?.map(e => exports.RedelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? exports.RedelegationEntry.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Redelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Redelegation", - value: exports.Redelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Redelegation.decode(message.value); - }, - toProto(message) { - return exports.Redelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - value: exports.Redelegation.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - unbondingTime: duration_1.Duration.fromPartial({}), - maxValidators: 0, - maxEntries: 0, - historicalEntries: 0, - bondDenom: "", - minCommissionRate: "" - }; -} -exports.Params = { - typeUrl: "/cosmos.staking.v1beta1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.unbondingTime !== undefined) { - duration_1.Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); - } - if (message.maxValidators !== 0) { - writer.uint32(16).uint32(message.maxValidators); - } - if (message.maxEntries !== 0) { - writer.uint32(24).uint32(message.maxEntries); - } - if (message.historicalEntries !== 0) { - writer.uint32(32).uint32(message.historicalEntries); - } - if (message.bondDenom !== "") { - writer.uint32(42).string(message.bondDenom); - } - if (message.minCommissionRate !== "") { - writer.uint32(50).string(math_1.Decimal.fromUserInput(message.minCommissionRate, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingTime = duration_1.Duration.decode(reader, reader.uint32()); - break; - case 2: - message.maxValidators = reader.uint32(); - break; - case 3: - message.maxEntries = reader.uint32(); - break; - case 4: - message.historicalEntries = reader.uint32(); - break; - case 5: - message.bondDenom = reader.string(); - break; - case 6: - message.minCommissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? duration_1.Duration.fromPartial(object.unbondingTime) : undefined; - message.maxValidators = object.maxValidators ?? 0; - message.maxEntries = object.maxEntries ?? 0; - message.historicalEntries = object.historicalEntries ?? 0; - message.bondDenom = object.bondDenom ?? ""; - message.minCommissionRate = object.minCommissionRate ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = duration_1.Duration.fromAmino(object.unbonding_time); - } - if (object.max_validators !== undefined && object.max_validators !== null) { - message.maxValidators = object.max_validators; - } - if (object.max_entries !== undefined && object.max_entries !== null) { - message.maxEntries = object.max_entries; - } - if (object.historical_entries !== undefined && object.historical_entries !== null) { - message.historicalEntries = object.historical_entries; - } - if (object.bond_denom !== undefined && object.bond_denom !== null) { - message.bondDenom = object.bond_denom; - } - if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { - message.minCommissionRate = object.min_commission_rate; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.unbonding_time = message.unbondingTime ? duration_1.Duration.toAmino(message.unbondingTime) : undefined; - obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; - obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; - obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; - obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; - obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; -function createBaseDelegationResponse() { - return { - delegation: exports.Delegation.fromPartial({}), - balance: coin_1.Coin.fromPartial({}) - }; -} -exports.DelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegation !== undefined) { - exports.Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== undefined) { - coin_1.Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegation = exports.Delegation.decode(reader, reader.uint32()); - break; - case 2: - message.balance = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegationResponse(); - message.delegation = object.delegation !== undefined && object.delegation !== null ? exports.Delegation.fromPartial(object.delegation) : undefined; - message.balance = object.balance !== undefined && object.balance !== null ? coin_1.Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelegationResponse(); - if (object.delegation !== undefined && object.delegation !== null) { - message.delegation = exports.Delegation.fromAmino(object.delegation); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = coin_1.Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegation = message.delegation ? exports.Delegation.toAmino(message.delegation) : undefined; - obj.balance = message.balance ? coin_1.Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegationResponse", - value: exports.DelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelegationResponse.decode(message.value); - }, - toProto(message) { - return exports.DelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - value: exports.DelegationResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntryResponse() { - return { - redelegationEntry: exports.RedelegationEntry.fromPartial({}), - balance: "" - }; -} -exports.RedelegationEntryResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.redelegationEntry !== undefined) { - exports.RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntryResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationEntry = exports.RedelegationEntry.decode(reader, reader.uint32()); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationEntryResponse(); - message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? exports.RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationEntryResponse(); - if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { - message.redelegationEntry = exports.RedelegationEntry.fromAmino(object.redelegation_entry); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.redelegation_entry = message.redelegationEntry ? exports.RedelegationEntry.toAmino(message.redelegationEntry) : undefined; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return exports.RedelegationEntryResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationEntryResponse", - value: exports.RedelegationEntryResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.RedelegationEntryResponse.decode(message.value); - }, - toProto(message) { - return exports.RedelegationEntryResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - value: exports.RedelegationEntryResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationResponse() { - return { - redelegation: exports.Redelegation.fromPartial({}), - entries: [] - }; -} -exports.RedelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.redelegation !== undefined) { - exports.Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.entries) { - exports.RedelegationEntryResponse.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegation = exports.Redelegation.decode(reader, reader.uint32()); - break; - case 2: - message.entries.push(exports.RedelegationEntryResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationResponse(); - message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? exports.Redelegation.fromPartial(object.redelegation) : undefined; - message.entries = object.entries?.map(e => exports.RedelegationEntryResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationResponse(); - if (object.redelegation !== undefined && object.redelegation !== null) { - message.redelegation = exports.Redelegation.fromAmino(object.redelegation); - } - message.entries = object.entries?.map(e => exports.RedelegationEntryResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.redelegation = message.redelegation ? exports.Redelegation.toAmino(message.redelegation) : undefined; - if (message.entries) { - obj.entries = message.entries.map(e => e ? exports.RedelegationEntryResponse.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return exports.RedelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationResponse", - value: exports.RedelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.RedelegationResponse.decode(message.value); - }, - toProto(message) { - return exports.RedelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - value: exports.RedelegationResponse.encode(message).finish() - }; - } -}; -function createBasePool() { - return { - notBondedTokens: "", - bondedTokens: "" - }; -} -exports.Pool = { - typeUrl: "/cosmos.staking.v1beta1.Pool", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.notBondedTokens !== "") { - writer.uint32(10).string(message.notBondedTokens); - } - if (message.bondedTokens !== "") { - writer.uint32(18).string(message.bondedTokens); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.notBondedTokens = reader.string(); - break; - case 2: - message.bondedTokens = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePool(); - message.notBondedTokens = object.notBondedTokens ?? ""; - message.bondedTokens = object.bondedTokens ?? ""; - return message; - }, - fromAmino(object) { - const message = createBasePool(); - if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { - message.notBondedTokens = object.not_bonded_tokens; - } - if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { - message.bondedTokens = object.bonded_tokens; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.not_bonded_tokens = message.notBondedTokens ?? ""; - obj.bonded_tokens = message.bondedTokens ?? ""; - return obj; - }, - fromAminoMsg(object) { - return exports.Pool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Pool", - value: exports.Pool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Pool.decode(message.value); - }, - toProto(message) { - return exports.Pool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Pool", - value: exports.Pool.encode(message).finish() - }; - } -}; -const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -exports.Cosmos_cryptoPubKey_InterfaceDecoder = Cosmos_cryptoPubKey_InterfaceDecoder; -const Cosmos_cryptoPubKey_FromAmino = (content) => { - return (0, proto_signing_1.encodePubkey)(content); -}; -exports.Cosmos_cryptoPubKey_FromAmino = Cosmos_cryptoPubKey_FromAmino; -const Cosmos_cryptoPubKey_ToAmino = (content) => { - return (0, proto_signing_1.decodePubkey)(content); -}; -exports.Cosmos_cryptoPubKey_ToAmino = Cosmos_cryptoPubKey_ToAmino; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts deleted file mode 100644 index 91d9e145..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export declare const AminoConverter: { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: (message: MsgCreateValidator) => import("./tx").MsgCreateValidatorAmino; - fromAmino: (object: import("./tx").MsgCreateValidatorAmino) => MsgCreateValidator; - }; - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: string; - toAmino: (message: MsgEditValidator) => import("./tx").MsgEditValidatorAmino; - fromAmino: (object: import("./tx").MsgEditValidatorAmino) => MsgEditValidator; - }; - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: string; - toAmino: (message: MsgDelegate) => import("./tx").MsgDelegateAmino; - fromAmino: (object: import("./tx").MsgDelegateAmino) => MsgDelegate; - }; - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: string; - toAmino: (message: MsgBeginRedelegate) => import("./tx").MsgBeginRedelegateAmino; - fromAmino: (object: import("./tx").MsgBeginRedelegateAmino) => MsgBeginRedelegate; - }; - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: string; - toAmino: (message: MsgUndelegate) => import("./tx").MsgUndelegateAmino; - fromAmino: (object: import("./tx").MsgUndelegateAmino) => MsgUndelegate; - }; - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: string; - toAmino: (message: MsgCancelUnbondingDelegation) => import("./tx").MsgCancelUnbondingDelegationAmino; - fromAmino: (object: import("./tx").MsgCancelUnbondingDelegationAmino) => MsgCancelUnbondingDelegation; - }; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js b/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js deleted file mode 100644 index 2e6b057f..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.amino.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: "cosmos-sdk/MsgCreateValidator", - toAmino: tx_1.MsgCreateValidator.toAmino, - fromAmino: tx_1.MsgCreateValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: "cosmos-sdk/MsgEditValidator", - toAmino: tx_1.MsgEditValidator.toAmino, - fromAmino: tx_1.MsgEditValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: "cosmos-sdk/MsgDelegate", - toAmino: tx_1.MsgDelegate.toAmino, - fromAmino: tx_1.MsgDelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: "cosmos-sdk/MsgBeginRedelegate", - toAmino: tx_1.MsgBeginRedelegate.toAmino, - fromAmino: tx_1.MsgBeginRedelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: "cosmos-sdk/MsgUndelegate", - toAmino: tx_1.MsgUndelegate.toAmino, - fromAmino: tx_1.MsgUndelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", - toAmino: tx_1.MsgCancelUnbondingDelegation.toAmino, - fromAmino: tx_1.MsgCancelUnbondingDelegation.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts deleted file mode 100644 index 1944e6a5..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.d.ts +++ /dev/null @@ -1,519 +0,0 @@ -import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType } from "./staking"; -import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Pubkey } from "@cosmjs/amino"; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidator { - description: Description; - commission: CommissionRates; - minSelfDelegation: string; - delegatorAddress: string; - validatorAddress: string; - pubkey?: Any | undefined; - value: Coin; -} -export interface MsgCreateValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; - value: Uint8Array; -} -export type MsgCreateValidatorEncoded = Omit & { - pubkey?: AnyProtoMsg | undefined; -}; -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorAmino { - description?: DescriptionAmino; - commission?: CommissionRatesAmino; - min_self_delegation?: string; - delegator_address?: string; - validator_address?: string; - pubkey?: AnyAmino; - value?: CoinAmino; -} -export interface MsgCreateValidatorAminoMsg { - type: "cosmos-sdk/MsgCreateValidator"; - value: MsgCreateValidatorAmino; -} -/** MsgCreateValidator defines a SDK message for creating a new validator. */ -export interface MsgCreateValidatorSDKType { - description: DescriptionSDKType; - commission: CommissionRatesSDKType; - min_self_delegation: string; - delegator_address: string; - validator_address: string; - pubkey?: AnySDKType | undefined; - value: CoinSDKType; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponse { -} -export interface MsgCreateValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - value: Uint8Array; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseAmino { -} -export interface MsgCreateValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgCreateValidatorResponse"; - value: MsgCreateValidatorResponseAmino; -} -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export interface MsgCreateValidatorResponseSDKType { -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidator { - description: Description; - validatorAddress: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commissionRate: string; - minSelfDelegation: string; -} -export interface MsgEditValidatorProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; - value: Uint8Array; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorAmino { - description?: DescriptionAmino; - validator_address?: string; - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - */ - commission_rate?: string; - min_self_delegation?: string; -} -export interface MsgEditValidatorAminoMsg { - type: "cosmos-sdk/MsgEditValidator"; - value: MsgEditValidatorAmino; -} -/** MsgEditValidator defines a SDK message for editing an existing validator. */ -export interface MsgEditValidatorSDKType { - description: DescriptionSDKType; - validator_address: string; - commission_rate: string; - min_self_delegation: string; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponse { -} -export interface MsgEditValidatorResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; - value: Uint8Array; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseAmino { -} -export interface MsgEditValidatorResponseAminoMsg { - type: "cosmos-sdk/MsgEditValidatorResponse"; - value: MsgEditValidatorResponseAmino; -} -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export interface MsgEditValidatorResponseSDKType { -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgDelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; - value: Uint8Array; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgDelegateAminoMsg { - type: "cosmos-sdk/MsgDelegate"; - value: MsgDelegateAmino; -} -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - */ -export interface MsgDelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponse { -} -export interface MsgDelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; - value: Uint8Array; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseAmino { -} -export interface MsgDelegateResponseAminoMsg { - type: "cosmos-sdk/MsgDelegateResponse"; - value: MsgDelegateResponseAmino; -} -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export interface MsgDelegateResponseSDKType { -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegate { - delegatorAddress: string; - validatorSrcAddress: string; - validatorDstAddress: string; - amount: Coin; -} -export interface MsgBeginRedelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; - value: Uint8Array; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateAmino { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; - amount?: CoinAmino; -} -export interface MsgBeginRedelegateAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegate"; - value: MsgBeginRedelegateAmino; -} -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ -export interface MsgBeginRedelegateSDKType { - delegator_address: string; - validator_src_address: string; - validator_dst_address: string; - amount: CoinSDKType; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponse { - completionTime: Date; -} -export interface MsgBeginRedelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - value: Uint8Array; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseAmino { - completion_time?: string; -} -export interface MsgBeginRedelegateResponseAminoMsg { - type: "cosmos-sdk/MsgBeginRedelegateResponse"; - value: MsgBeginRedelegateResponseAmino; -} -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface MsgBeginRedelegateResponseSDKType { - completion_time: Date; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegate { - delegatorAddress: string; - validatorAddress: string; - amount: Coin; -} -export interface MsgUndelegateProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; - value: Uint8Array; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateAmino { - delegator_address?: string; - validator_address?: string; - amount?: CoinAmino; -} -export interface MsgUndelegateAminoMsg { - type: "cosmos-sdk/MsgUndelegate"; - value: MsgUndelegateAmino; -} -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - */ -export interface MsgUndelegateSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponse { - completionTime: Date; -} -export interface MsgUndelegateResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; - value: Uint8Array; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseAmino { - completion_time?: string; -} -export interface MsgUndelegateResponseAminoMsg { - type: "cosmos-sdk/MsgUndelegateResponse"; - value: MsgUndelegateResponseAmino; -} -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface MsgUndelegateResponseSDKType { - completion_time: Date; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegation { - delegatorAddress: string; - validatorAddress: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount: Coin; - /** creation_height is the height which the unbonding took place. */ - creationHeight: bigint; -} -export interface MsgCancelUnbondingDelegationProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationAmino { - delegator_address?: string; - validator_address?: string; - /** amount is always less than or equal to unbonding delegation entry balance */ - amount?: CoinAmino; - /** creation_height is the height which the unbonding took place. */ - creation_height?: string; -} -export interface MsgCancelUnbondingDelegationAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegation"; - value: MsgCancelUnbondingDelegationAmino; -} -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationSDKType { - delegator_address: string; - validator_address: string; - amount: CoinSDKType; - creation_height: bigint; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponse { -} -export interface MsgCancelUnbondingDelegationResponseProtoMsg { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; - value: Uint8Array; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseAmino { -} -export interface MsgCancelUnbondingDelegationResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse"; - value: MsgCancelUnbondingDelegationResponseAmino; -} -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUnbondingDelegationResponseSDKType { -} -export declare const MsgCreateValidator: { - typeUrl: string; - encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; - fromPartial(object: Partial): MsgCreateValidator; - fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator; - toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino; - fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator; - toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg; - fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator; - toProto(message: MsgCreateValidator): Uint8Array; - toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg; -}; -export declare const MsgCreateValidatorResponse: { - typeUrl: string; - encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; - fromPartial(_: Partial): MsgCreateValidatorResponse; - fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse; - toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino; - fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse; - toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg; - fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse; - toProto(message: MsgCreateValidatorResponse): Uint8Array; - toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg; -}; -export declare const MsgEditValidator: { - typeUrl: string; - encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; - fromPartial(object: Partial): MsgEditValidator; - fromAmino(object: MsgEditValidatorAmino): MsgEditValidator; - toAmino(message: MsgEditValidator): MsgEditValidatorAmino; - fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator; - toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg; - fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator; - toProto(message: MsgEditValidator): Uint8Array; - toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg; -}; -export declare const MsgEditValidatorResponse: { - typeUrl: string; - encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; - fromPartial(_: Partial): MsgEditValidatorResponse; - fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse; - toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino; - fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse; - toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg; - fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse; - toProto(message: MsgEditValidatorResponse): Uint8Array; - toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg; -}; -export declare const MsgDelegate: { - typeUrl: string; - encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; - fromPartial(object: Partial): MsgDelegate; - fromAmino(object: MsgDelegateAmino): MsgDelegate; - toAmino(message: MsgDelegate): MsgDelegateAmino; - fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate; - toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg; - fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate; - toProto(message: MsgDelegate): Uint8Array; - toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg; -}; -export declare const MsgDelegateResponse: { - typeUrl: string; - encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; - fromPartial(_: Partial): MsgDelegateResponse; - fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse; - toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino; - fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse; - toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg; - fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse; - toProto(message: MsgDelegateResponse): Uint8Array; - toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg; -}; -export declare const MsgBeginRedelegate: { - typeUrl: string; - encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; - fromPartial(object: Partial): MsgBeginRedelegate; - fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate; - toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino; - fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate; - toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg; - fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate; - toProto(message: MsgBeginRedelegate): Uint8Array; - toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg; -}; -export declare const MsgBeginRedelegateResponse: { - typeUrl: string; - encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; - fromPartial(object: Partial): MsgBeginRedelegateResponse; - fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse; - toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino; - fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse; - toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg; - fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse; - toProto(message: MsgBeginRedelegateResponse): Uint8Array; - toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg; -}; -export declare const MsgUndelegate: { - typeUrl: string; - encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; - fromPartial(object: Partial): MsgUndelegate; - fromAmino(object: MsgUndelegateAmino): MsgUndelegate; - toAmino(message: MsgUndelegate): MsgUndelegateAmino; - fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate; - toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg; - fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate; - toProto(message: MsgUndelegate): Uint8Array; - toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg; -}; -export declare const MsgUndelegateResponse: { - typeUrl: string; - encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; - fromPartial(object: Partial): MsgUndelegateResponse; - fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse; - toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino; - fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse; - toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg; - fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse; - toProto(message: MsgUndelegateResponse): Uint8Array; - toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg; -}; -export declare const MsgCancelUnbondingDelegation: { - typeUrl: string; - encode(message: MsgCancelUnbondingDelegation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; - fromPartial(object: Partial): MsgCancelUnbondingDelegation; - fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation; - toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino; - fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation; - toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg; - fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation; - toProto(message: MsgCancelUnbondingDelegation): Uint8Array; - toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg; -}; -export declare const MsgCancelUnbondingDelegationResponse: { - typeUrl: string; - encode(_: MsgCancelUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; - fromPartial(_: Partial): MsgCancelUnbondingDelegationResponse; - fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse; - toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino; - fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse; - toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg; - fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse; - toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array; - toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg; -}; -export declare const Cosmos_cryptoPubKey_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any; -export declare const Cosmos_cryptoPubKey_FromAmino: (content: AnyAmino) => Any; -export declare const Cosmos_cryptoPubKey_ToAmino: (content: Any) => Pubkey | null; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.js b/packages/api/dist/cosmos/staking/v1beta1/tx.js deleted file mode 100644 index 71daeceb..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.js +++ /dev/null @@ -1,1033 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Cosmos_cryptoPubKey_ToAmino = exports.Cosmos_cryptoPubKey_FromAmino = exports.Cosmos_cryptoPubKey_InterfaceDecoder = exports.MsgCancelUnbondingDelegationResponse = exports.MsgCancelUnbondingDelegation = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = void 0; -//@ts-nocheck -const staking_1 = require("./staking"); -const any_1 = require("../../../google/protobuf/any"); -const coin_1 = require("../../base/v1beta1/coin"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const binary_1 = require("../../../binary"); -const proto_signing_1 = require("@cosmjs/proto-signing"); -const math_1 = require("@cosmjs/math"); -const helpers_1 = require("../../../helpers"); -function createBaseMsgCreateValidator() { - return { - description: staking_1.Description.fromPartial({}), - commission: staking_1.CommissionRates.fromPartial({}), - minSelfDelegation: "", - delegatorAddress: "", - validatorAddress: "", - pubkey: undefined, - value: coin_1.Coin.fromPartial({}) - }; -} -exports.MsgCreateValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.description !== undefined) { - staking_1.Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.commission !== undefined) { - staking_1.CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(26).string(message.minSelfDelegation); - } - if (message.delegatorAddress !== "") { - writer.uint32(34).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(42).string(message.validatorAddress); - } - if (message.pubkey !== undefined) { - any_1.Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim(); - } - if (message.value !== undefined) { - coin_1.Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = staking_1.Description.decode(reader, reader.uint32()); - break; - case 2: - message.commission = staking_1.CommissionRates.decode(reader, reader.uint32()); - break; - case 3: - message.minSelfDelegation = reader.string(); - break; - case 4: - message.delegatorAddress = reader.string(); - break; - case 5: - message.validatorAddress = reader.string(); - break; - case 6: - message.pubkey = (0, exports.Cosmos_cryptoPubKey_InterfaceDecoder)(reader); - break; - case 7: - message.value = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateValidator(); - message.description = object.description !== undefined && object.description !== null ? staking_1.Description.fromPartial(object.description) : undefined; - message.commission = object.commission !== undefined && object.commission !== null ? staking_1.CommissionRates.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? any_1.Any.fromPartial(object.pubkey) : undefined; - message.value = object.value !== undefined && object.value !== null ? coin_1.Coin.fromPartial(object.value) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = staking_1.Description.fromAmino(object.description); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = staking_1.CommissionRates.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.pubkey !== undefined && object.pubkey !== null) { - message.pubkey = (0, proto_signing_1.encodePubkey)(object.pubkey); - } - if (object.value !== undefined && object.value !== null) { - message.value = coin_1.Coin.fromAmino(object.value); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description ? staking_1.Description.toAmino(message.description) : undefined; - obj.commission = message.commission ? staking_1.CommissionRates.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.pubkey = message.pubkey ? (0, proto_signing_1.decodePubkey)(message.pubkey) : undefined; - obj.value = message.value ? coin_1.Coin.toAmino(message.value) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateValidator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateValidator", - value: exports.MsgCreateValidator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateValidator.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: exports.MsgCreateValidator.encode(message).finish() - }; - } -}; -function createBaseMsgCreateValidatorResponse() { - return {}; -} -exports.MsgCreateValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateValidatorResponse", - value: exports.MsgCreateValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateValidatorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - value: exports.MsgCreateValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidator() { - return { - description: staking_1.Description.fromPartial({}), - validatorAddress: "", - commissionRate: "", - minSelfDelegation: "" - }; -} -exports.MsgEditValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.description !== undefined) { - staking_1.Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.commissionRate !== "") { - writer.uint32(26).string(math_1.Decimal.fromUserInput(message.commissionRate, 18).atomics); - } - if (message.minSelfDelegation !== "") { - writer.uint32(34).string(message.minSelfDelegation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = staking_1.Description.decode(reader, reader.uint32()); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.commissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgEditValidator(); - message.description = object.description !== undefined && object.description !== null ? staking_1.Description.fromPartial(object.description) : undefined; - message.validatorAddress = object.validatorAddress ?? ""; - message.commissionRate = object.commissionRate ?? ""; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgEditValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = staking_1.Description.fromAmino(object.description); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.commission_rate !== undefined && object.commission_rate !== null) { - message.commissionRate = object.commission_rate; - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description ? staking_1.Description.toAmino(message.description) : undefined; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgEditValidator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgEditValidator", - value: exports.MsgEditValidator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgEditValidator.decode(message.value); - }, - toProto(message) { - return exports.MsgEditValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: exports.MsgEditValidator.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidatorResponse() { - return {}; -} -exports.MsgEditValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgEditValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgEditValidatorResponse", - value: exports.MsgEditValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgEditValidatorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgEditValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - value: exports.MsgEditValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDelegate() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: coin_1.Coin.fromPartial({}) - }; -} -exports.MsgDelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = coin_1.Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDelegate", - value: exports.MsgDelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDelegate.decode(message.value); - }, - toProto(message) { - return exports.MsgDelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: exports.MsgDelegate.encode(message).finish() - }; - } -}; -function createBaseMsgDelegateResponse() { - return {}; -} -exports.MsgDelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDelegateResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDelegateResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDelegateResponse", - value: exports.MsgDelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDelegateResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgDelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - value: exports.MsgDelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegate() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - amount: coin_1.Coin.fromPartial({}) - }; -} -exports.MsgBeginRedelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - if (message.amount !== undefined) { - coin_1.Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.amount = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBeginRedelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBeginRedelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = coin_1.Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBeginRedelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgBeginRedelegate", - value: exports.MsgBeginRedelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgBeginRedelegate.decode(message.value); - }, - toProto(message) { - return exports.MsgBeginRedelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: exports.MsgBeginRedelegate.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegateResponse() { - return { - completionTime: new Date() - }; -} -exports.MsgBeginRedelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.completionTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBeginRedelegateResponse(); - message.completionTime = object.completionTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBeginRedelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBeginRedelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgBeginRedelegateResponse", - value: exports.MsgBeginRedelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgBeginRedelegateResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgBeginRedelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - value: exports.MsgBeginRedelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegate() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: coin_1.Coin.fromPartial({}) - }; -} -exports.MsgUndelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUndelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUndelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = coin_1.Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUndelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUndelegate", - value: exports.MsgUndelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUndelegate.decode(message.value); - }, - toProto(message) { - return exports.MsgUndelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: exports.MsgUndelegate.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegateResponse() { - return { - completionTime: new Date() - }; -} -exports.MsgUndelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.completionTime !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.completionTime), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUndelegateResponse(); - message.completionTime = object.completionTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUndelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.completion_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUndelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUndelegateResponse", - value: exports.MsgUndelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUndelegateResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUndelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - value: exports.MsgUndelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: coin_1.Coin.fromPartial({}), - creationHeight: BigInt(0) - }; -} -exports.MsgCancelUnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - coin_1.Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - if (message.creationHeight !== BigInt(0)) { - writer.uint32(32).int64(message.creationHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.creationHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined; - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = coin_1.Coin.fromAmino(object.amount); - } - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelUnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegation", - value: exports.MsgCancelUnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancelUnbondingDelegation.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelUnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: exports.MsgCancelUnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegationResponse() { - return {}; -} -exports.MsgCancelUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", - value: exports.MsgCancelUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancelUnbondingDelegationResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - value: exports.MsgCancelUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - const data = any_1.Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -exports.Cosmos_cryptoPubKey_InterfaceDecoder = Cosmos_cryptoPubKey_InterfaceDecoder; -const Cosmos_cryptoPubKey_FromAmino = (content) => { - return (0, proto_signing_1.encodePubkey)(content); -}; -exports.Cosmos_cryptoPubKey_FromAmino = Cosmos_cryptoPubKey_FromAmino; -const Cosmos_cryptoPubKey_ToAmino = (content) => { - return (0, proto_signing_1.decodePubkey)(content); -}; -exports.Cosmos_cryptoPubKey_ToAmino = Cosmos_cryptoPubKey_ToAmino; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts deleted file mode 100644 index befd0649..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: Uint8Array; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: Uint8Array; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: Uint8Array; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: Uint8Array; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: Uint8Array; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: MsgCreateValidator; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: MsgEditValidator; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: MsgDelegate; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: MsgBeginRedelegate; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: MsgUndelegate; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: MsgCancelUnbondingDelegation; - }; - }; - fromPartial: { - createValidator(value: MsgCreateValidator): { - typeUrl: string; - value: MsgCreateValidator; - }; - editValidator(value: MsgEditValidator): { - typeUrl: string; - value: MsgEditValidator; - }; - delegate(value: MsgDelegate): { - typeUrl: string; - value: MsgDelegate; - }; - beginRedelegate(value: MsgBeginRedelegate): { - typeUrl: string; - value: MsgBeginRedelegate; - }; - undelegate(value: MsgUndelegate): { - typeUrl: string; - value: MsgUndelegate; - }; - cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation): { - typeUrl: string; - value: MsgCancelUnbondingDelegation; - }; - }; -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js b/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js deleted file mode 100644 index bc997fa2..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.registry.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", tx_1.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", tx_1.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", tx_1.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", tx_1.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", tx_1.MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", tx_1.MsgCancelUnbondingDelegation]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: tx_1.MsgCreateValidator.encode(value).finish() - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: tx_1.MsgEditValidator.encode(value).finish() - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: tx_1.MsgDelegate.encode(value).finish() - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: tx_1.MsgBeginRedelegate.encode(value).finish() - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: tx_1.MsgUndelegate.encode(value).finish() - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: tx_1.MsgCancelUnbondingDelegation.encode(value).finish() - }; - } - }, - withTypeUrl: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value - }; - } - }, - fromPartial: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: tx_1.MsgCreateValidator.fromPartial(value) - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: tx_1.MsgEditValidator.fromPartial(value) - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: tx_1.MsgDelegate.fromPartial(value) - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: tx_1.MsgBeginRedelegate.fromPartial(value) - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: tx_1.MsgUndelegate.fromPartial(value) - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: tx_1.MsgCancelUnbondingDelegation.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index c57e500e..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; -/** Msg defines the staking Msg service. */ -export interface Msg { - /** CreateValidator defines a method for creating a new validator. */ - createValidator(request: MsgCreateValidator): Promise; - /** EditValidator defines a method for editing an existing validator. */ - editValidator(request: MsgEditValidator): Promise; - /** - * Delegate defines a method for performing a delegation of coins - * from a delegator to a validator. - */ - delegate(request: MsgDelegate): Promise; - /** - * BeginRedelegate defines a method for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - */ - beginRedelegate(request: MsgBeginRedelegate): Promise; - /** - * Undelegate defines a method for performing an undelegation from a - * delegate and a validator. - */ - undelegate(request: MsgUndelegate): Promise; - /** - * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - * and delegate back to previous validator. - * - * Since: cosmos-sdk 0.46 - */ - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createValidator(request: MsgCreateValidator): Promise; - editValidator(request: MsgEditValidator): Promise; - delegate(request: MsgDelegate): Promise; - beginRedelegate(request: MsgBeginRedelegate): Promise; - undelegate(request: MsgUndelegate): Promise; - cancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; -} diff --git a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js deleted file mode 100644 index b8f00e26..00000000 --- a/packages/api/dist/cosmos/staking/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createValidator = this.createValidator.bind(this); - this.editValidator = this.editValidator.bind(this); - this.delegate = this.delegate.bind(this); - this.beginRedelegate = this.beginRedelegate.bind(this); - this.undelegate = this.undelegate.bind(this); - this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); - } - createValidator(request) { - const data = tx_1.MsgCreateValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); - return promise.then(data => tx_1.MsgCreateValidatorResponse.decode(new binary_1.BinaryReader(data))); - } - editValidator(request) { - const data = tx_1.MsgEditValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); - return promise.then(data => tx_1.MsgEditValidatorResponse.decode(new binary_1.BinaryReader(data))); - } - delegate(request) { - const data = tx_1.MsgDelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); - return promise.then(data => tx_1.MsgDelegateResponse.decode(new binary_1.BinaryReader(data))); - } - beginRedelegate(request) { - const data = tx_1.MsgBeginRedelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); - return promise.then(data => tx_1.MsgBeginRedelegateResponse.decode(new binary_1.BinaryReader(data))); - } - undelegate(request) { - const data = tx_1.MsgUndelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); - return promise.then(data => tx_1.MsgUndelegateResponse.decode(new binary_1.BinaryReader(data))); - } - cancelUnbondingDelegation(request) { - const data = tx_1.MsgCancelUnbondingDelegation.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); - return promise.then(data => tx_1.MsgCancelUnbondingDelegationResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts deleted file mode 100644 index 4f7ade3d..00000000 --- a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.d.ts +++ /dev/null @@ -1,284 +0,0 @@ -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export declare enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SIGN_MODE_UNSPECIFIED = 0, - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SIGN_MODE_DIRECT = 1, - /** - * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. - */ - SIGN_MODE_TEXTUAL = 2, - /** - * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. - * - * Since: cosmos-sdk 0.46 - */ - SIGN_MODE_DIRECT_AUX = 3, - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SIGN_MODE_LEGACY_AMINO_JSON = 127, - /** - * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - */ - SIGN_MODE_EIP_191 = 191, - UNRECOGNIZED = -1 -} -export declare const SignModeSDKType: typeof SignMode; -export declare const SignModeAmino: typeof SignMode; -export declare function signModeFromJSON(object: any): SignMode; -export declare function signModeToJSON(object: SignMode): string; -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptors { - /** signatures are the signature descriptors */ - signatures: SignatureDescriptor[]; -} -export interface SignatureDescriptorsProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; - value: Uint8Array; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsAmino { - /** signatures are the signature descriptors */ - signatures?: SignatureDescriptorAmino[]; -} -export interface SignatureDescriptorsAminoMsg { - type: "cosmos-sdk/SignatureDescriptors"; - value: SignatureDescriptorsAmino; -} -/** SignatureDescriptors wraps multiple SignatureDescriptor's. */ -export interface SignatureDescriptorsSDKType { - signatures: SignatureDescriptorSDKType[]; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptor { - /** public_key is the public key of the signer */ - publicKey?: Any; - data?: SignatureDescriptor_Data; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence: bigint; -} -export interface SignatureDescriptorProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; - value: Uint8Array; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorAmino { - /** public_key is the public key of the signer */ - public_key?: AnyAmino; - data?: SignatureDescriptor_DataAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - */ - sequence?: string; -} -export interface SignatureDescriptorAminoMsg { - type: "cosmos-sdk/SignatureDescriptor"; - value: SignatureDescriptorAmino; -} -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - */ -export interface SignatureDescriptorSDKType { - public_key?: AnySDKType; - data?: SignatureDescriptor_DataSDKType; - sequence: bigint; -} -/** Data represents signature data */ -export interface SignatureDescriptor_Data { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_Single; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_Multi; -} -export interface SignatureDescriptor_DataProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Data"; - value: Uint8Array; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataAmino { - /** single represents a single signer */ - single?: SignatureDescriptor_Data_SingleAmino; - /** multi represents a multisig signer */ - multi?: SignatureDescriptor_Data_MultiAmino; -} -export interface SignatureDescriptor_DataAminoMsg { - type: "cosmos-sdk/Data"; - value: SignatureDescriptor_DataAmino; -} -/** Data represents signature data */ -export interface SignatureDescriptor_DataSDKType { - single?: SignatureDescriptor_Data_SingleSDKType; - multi?: SignatureDescriptor_Data_MultiSDKType; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; - /** signature is the raw signature bytes */ - signature: Uint8Array; -} -export interface SignatureDescriptor_Data_SingleProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Single"; - value: Uint8Array; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; - /** signature is the raw signature bytes */ - signature?: string; -} -export interface SignatureDescriptor_Data_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: SignatureDescriptor_Data_SingleAmino; -} -/** Single is the signature data for a single signer */ -export interface SignatureDescriptor_Data_SingleSDKType { - mode: SignMode; - signature: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** signatures is the signatures of the multi-signature */ - signatures: SignatureDescriptor_Data[]; -} -export interface SignatureDescriptor_Data_MultiProtoMsg { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** signatures is the signatures of the multi-signature */ - signatures?: SignatureDescriptor_DataAmino[]; -} -export interface SignatureDescriptor_Data_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: SignatureDescriptor_Data_MultiAmino; -} -/** Multi is the signature data for a multisig public key */ -export interface SignatureDescriptor_Data_MultiSDKType { - bitarray?: CompactBitArraySDKType; - signatures: SignatureDescriptor_DataSDKType[]; -} -export declare const SignatureDescriptors: { - typeUrl: string; - encode(message: SignatureDescriptors, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptors; - fromPartial(object: Partial): SignatureDescriptors; - fromAmino(object: SignatureDescriptorsAmino): SignatureDescriptors; - toAmino(message: SignatureDescriptors): SignatureDescriptorsAmino; - fromAminoMsg(object: SignatureDescriptorsAminoMsg): SignatureDescriptors; - toAminoMsg(message: SignatureDescriptors): SignatureDescriptorsAminoMsg; - fromProtoMsg(message: SignatureDescriptorsProtoMsg): SignatureDescriptors; - toProto(message: SignatureDescriptors): Uint8Array; - toProtoMsg(message: SignatureDescriptors): SignatureDescriptorsProtoMsg; -}; -export declare const SignatureDescriptor: { - typeUrl: string; - encode(message: SignatureDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor; - fromPartial(object: Partial): SignatureDescriptor; - fromAmino(object: SignatureDescriptorAmino): SignatureDescriptor; - toAmino(message: SignatureDescriptor): SignatureDescriptorAmino; - fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor; - toAminoMsg(message: SignatureDescriptor): SignatureDescriptorAminoMsg; - fromProtoMsg(message: SignatureDescriptorProtoMsg): SignatureDescriptor; - toProto(message: SignatureDescriptor): Uint8Array; - toProtoMsg(message: SignatureDescriptor): SignatureDescriptorProtoMsg; -}; -export declare const SignatureDescriptor_Data: { - typeUrl: string; - encode(message: SignatureDescriptor_Data, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data; - fromPartial(object: Partial): SignatureDescriptor_Data; - fromAmino(object: SignatureDescriptor_DataAmino): SignatureDescriptor_Data; - toAmino(message: SignatureDescriptor_Data): SignatureDescriptor_DataAmino; - fromAminoMsg(object: SignatureDescriptor_DataAminoMsg): SignatureDescriptor_Data; - toAminoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataAminoMsg; - fromProtoMsg(message: SignatureDescriptor_DataProtoMsg): SignatureDescriptor_Data; - toProto(message: SignatureDescriptor_Data): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data): SignatureDescriptor_DataProtoMsg; -}; -export declare const SignatureDescriptor_Data_Single: { - typeUrl: string; - encode(message: SignatureDescriptor_Data_Single, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Single; - fromPartial(object: Partial): SignatureDescriptor_Data_Single; - fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single; - toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino; - fromAminoMsg(object: SignatureDescriptor_Data_SingleAminoMsg): SignatureDescriptor_Data_Single; - toAminoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAminoMsg; - fromProtoMsg(message: SignatureDescriptor_Data_SingleProtoMsg): SignatureDescriptor_Data_Single; - toProto(message: SignatureDescriptor_Data_Single): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleProtoMsg; -}; -export declare const SignatureDescriptor_Data_Multi: { - typeUrl: string; - encode(message: SignatureDescriptor_Data_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi; - fromPartial(object: Partial): SignatureDescriptor_Data_Multi; - fromAmino(object: SignatureDescriptor_Data_MultiAmino): SignatureDescriptor_Data_Multi; - toAmino(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAmino; - fromAminoMsg(object: SignatureDescriptor_Data_MultiAminoMsg): SignatureDescriptor_Data_Multi; - toAminoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiAminoMsg; - fromProtoMsg(message: SignatureDescriptor_Data_MultiProtoMsg): SignatureDescriptor_Data_Multi; - toProto(message: SignatureDescriptor_Data_Multi): Uint8Array; - toProtoMsg(message: SignatureDescriptor_Data_Multi): SignatureDescriptor_Data_MultiProtoMsg; -}; diff --git a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js b/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js deleted file mode 100644 index cb041a9c..00000000 --- a/packages/api/dist/cosmos/tx/signing/v1beta1/signing.js +++ /dev/null @@ -1,525 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SignatureDescriptor_Data_Multi = exports.SignatureDescriptor_Data_Single = exports.SignatureDescriptor_Data = exports.SignatureDescriptor = exports.SignatureDescriptors = exports.signModeToJSON = exports.signModeFromJSON = exports.SignModeAmino = exports.SignModeSDKType = exports.SignMode = void 0; -//@ts-nocheck -const multisig_1 = require("../../../crypto/multisig/v1beta1/multisig"); -const any_1 = require("../../../../google/protobuf/any"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -var SignMode; -(function (SignMode) { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SignMode[SignMode["SIGN_MODE_UNSPECIFIED"] = 0] = "SIGN_MODE_UNSPECIFIED"; - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SignMode[SignMode["SIGN_MODE_DIRECT"] = 1] = "SIGN_MODE_DIRECT"; - /** - * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. - */ - SignMode[SignMode["SIGN_MODE_TEXTUAL"] = 2] = "SIGN_MODE_TEXTUAL"; - /** - * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. - * - * Since: cosmos-sdk 0.46 - */ - SignMode[SignMode["SIGN_MODE_DIRECT_AUX"] = 3] = "SIGN_MODE_DIRECT_AUX"; - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON"; - /** - * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - */ - SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191"; - SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(SignMode || (exports.SignMode = SignMode = {})); -exports.SignModeSDKType = SignMode; -exports.SignModeAmino = SignMode; -function signModeFromJSON(object) { - switch (object) { - case 0: - case "SIGN_MODE_UNSPECIFIED": - return SignMode.SIGN_MODE_UNSPECIFIED; - case 1: - case "SIGN_MODE_DIRECT": - return SignMode.SIGN_MODE_DIRECT; - case 2: - case "SIGN_MODE_TEXTUAL": - return SignMode.SIGN_MODE_TEXTUAL; - case 3: - case "SIGN_MODE_DIRECT_AUX": - return SignMode.SIGN_MODE_DIRECT_AUX; - case 127: - case "SIGN_MODE_LEGACY_AMINO_JSON": - return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; - case 191: - case "SIGN_MODE_EIP_191": - return SignMode.SIGN_MODE_EIP_191; - case -1: - case "UNRECOGNIZED": - default: - return SignMode.UNRECOGNIZED; - } -} -exports.signModeFromJSON = signModeFromJSON; -function signModeToJSON(object) { - switch (object) { - case SignMode.SIGN_MODE_UNSPECIFIED: - return "SIGN_MODE_UNSPECIFIED"; - case SignMode.SIGN_MODE_DIRECT: - return "SIGN_MODE_DIRECT"; - case SignMode.SIGN_MODE_TEXTUAL: - return "SIGN_MODE_TEXTUAL"; - case SignMode.SIGN_MODE_DIRECT_AUX: - return "SIGN_MODE_DIRECT_AUX"; - case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: - return "SIGN_MODE_LEGACY_AMINO_JSON"; - case SignMode.SIGN_MODE_EIP_191: - return "SIGN_MODE_EIP_191"; - case SignMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.signModeToJSON = signModeToJSON; -function createBaseSignatureDescriptors() { - return { - signatures: [] - }; -} -exports.SignatureDescriptors = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.signatures) { - exports.SignatureDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptors(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(exports.SignatureDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => exports.SignatureDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => exports.SignatureDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? exports.SignatureDescriptor.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SignatureDescriptors.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignatureDescriptors", - value: exports.SignatureDescriptors.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignatureDescriptors.decode(message.value); - }, - toProto(message) { - return exports.SignatureDescriptors.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - value: exports.SignatureDescriptors.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor() { - return { - publicKey: undefined, - data: undefined, - sequence: BigInt(0) - }; -} -exports.SignatureDescriptor = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.publicKey !== undefined) { - any_1.Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - exports.SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = any_1.Any.decode(reader, reader.uint32()); - break; - case 2: - message.data = exports.SignatureDescriptor_Data.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; - message.data = object.data !== undefined && object.data !== null ? exports.SignatureDescriptor_Data.fromPartial(object.data) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = any_1.Any.fromAmino(object.public_key); - } - if (object.data !== undefined && object.data !== null) { - message.data = exports.SignatureDescriptor_Data.fromAmino(object.data); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; - obj.data = message.data ? exports.SignatureDescriptor_Data.toAmino(message.data) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignatureDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignatureDescriptor", - value: exports.SignatureDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignatureDescriptor.decode(message.value); - }, - toProto(message) { - return exports.SignatureDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - value: exports.SignatureDescriptor.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data() { - return { - single: undefined, - multi: undefined - }; -} -exports.SignatureDescriptor_Data = { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.single !== undefined) { - exports.SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - exports.SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = exports.SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = exports.SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data(); - message.single = object.single !== undefined && object.single !== null ? exports.SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? exports.SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data(); - if (object.single !== undefined && object.single !== null) { - message.single = exports.SignatureDescriptor_Data_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = exports.SignatureDescriptor_Data_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.single = message.single ? exports.SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? exports.SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignatureDescriptor_Data.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Data", - value: exports.SignatureDescriptor_Data.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignatureDescriptor_Data.decode(message.value); - }, - toProto(message) { - return exports.SignatureDescriptor_Data.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - value: exports.SignatureDescriptor_Data.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Single() { - return { - mode: 0, - signature: new Uint8Array() - }; -} -exports.SignatureDescriptor_Data_Single = { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - if (message.signature.length !== 0) { - writer.uint32(18).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - case 2: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data_Single(); - message.mode = object.mode ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = (0, helpers_1.bytesFromBase64)(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignatureDescriptor_Data_Single.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Single", - value: exports.SignatureDescriptor_Data_Single.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignatureDescriptor_Data_Single.decode(message.value); - }, - toProto(message) { - return exports.SignatureDescriptor_Data_Single.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - value: exports.SignatureDescriptor_Data_Single.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Multi() { - return { - bitarray: undefined, - signatures: [] - }; -} -exports.SignatureDescriptor_Data_Multi = { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bitarray !== undefined) { - multisig_1.CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.signatures) { - exports.SignatureDescriptor_Data.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = multisig_1.CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.signatures.push(exports.SignatureDescriptor_Data.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? multisig_1.CompactBitArray.fromPartial(object.bitarray) : undefined; - message.signatures = object.signatures?.map(e => exports.SignatureDescriptor_Data.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = multisig_1.CompactBitArray.fromAmino(object.bitarray); - } - message.signatures = object.signatures?.map(e => exports.SignatureDescriptor_Data.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bitarray = message.bitarray ? multisig_1.CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? exports.SignatureDescriptor_Data.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SignatureDescriptor_Data_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: exports.SignatureDescriptor_Data_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignatureDescriptor_Data_Multi.decode(message.value); - }, - toProto(message) { - return exports.SignatureDescriptor_Data_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - value: exports.SignatureDescriptor_Data_Multi.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.d.ts deleted file mode 100644 index eea3abe1..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.d.ts +++ /dev/null @@ -1,593 +0,0 @@ -import { Tx, TxAmino, TxSDKType } from "./tx"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { TxResponse, TxResponseAmino, TxResponseSDKType, GasInfo, GasInfoAmino, GasInfoSDKType, Result, ResultAmino, ResultSDKType } from "../../base/abci/v1beta1/abci"; -import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../tendermint/types/types"; -import { Block, BlockAmino, BlockSDKType } from "../../../tendermint/types/block"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** OrderBy defines the sorting order */ -export declare enum OrderBy { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - ORDER_BY_UNSPECIFIED = 0, - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - ORDER_BY_ASC = 1, - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - ORDER_BY_DESC = 2, - UNRECOGNIZED = -1 -} -export declare const OrderBySDKType: typeof OrderBy; -export declare const OrderByAmino: typeof OrderBy; -export declare function orderByFromJSON(object: any): OrderBy; -export declare function orderByToJSON(object: OrderBy): string; -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export declare enum BroadcastMode { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BROADCAST_MODE_UNSPECIFIED = 0, - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BROADCAST_MODE_BLOCK = 1, - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BROADCAST_MODE_SYNC = 2, - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BROADCAST_MODE_ASYNC = 3, - UNRECOGNIZED = -1 -} -export declare const BroadcastModeSDKType: typeof BroadcastMode; -export declare const BroadcastModeAmino: typeof BroadcastMode; -export declare function broadcastModeFromJSON(object: any): BroadcastMode; -export declare function broadcastModeToJSON(object: BroadcastMode): string; -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequest { - /** events is the list of transaction event type. */ - events: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequest; - orderBy: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page: bigint; - /** - * 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. - */ - limit: bigint; -} -export interface GetTxsEventRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; - value: Uint8Array; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestAmino { - /** events is the list of transaction event type. */ - events?: string[]; - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - */ - /** @deprecated */ - pagination?: PageRequestAmino; - order_by?: OrderBy; - /** page is the page number to query, starts at 1. If not provided, will default to first page. */ - page?: string; - /** - * 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. - */ - limit?: string; -} -export interface GetTxsEventRequestAminoMsg { - type: "cosmos-sdk/GetTxsEventRequest"; - value: GetTxsEventRequestAmino; -} -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventRequestSDKType { - events: string[]; - /** @deprecated */ - pagination?: PageRequestSDKType; - order_by: OrderBy; - page: bigint; - limit: bigint; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs: Tx[]; - /** tx_responses is the list of queried TxResponses. */ - txResponses: TxResponse[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponse; - /** total is total number of results available */ - total: bigint; -} -export interface GetTxsEventResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; - value: Uint8Array; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseAmino { - /** txs is the list of queried transactions. */ - txs?: TxAmino[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses?: TxResponseAmino[]; - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - */ - /** @deprecated */ - pagination?: PageResponseAmino; - /** total is total number of results available */ - total?: string; -} -export interface GetTxsEventResponseAminoMsg { - type: "cosmos-sdk/GetTxsEventResponse"; - value: GetTxsEventResponseAmino; -} -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface GetTxsEventResponseSDKType { - txs: TxSDKType[]; - tx_responses: TxResponseSDKType[]; - /** @deprecated */ - pagination?: PageResponseSDKType; - total: bigint; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequest { - /** tx_bytes is the raw transaction. */ - txBytes: Uint8Array; - mode: BroadcastMode; -} -export interface BroadcastTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; - value: Uint8Array; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestAmino { - /** tx_bytes is the raw transaction. */ - tx_bytes?: string; - mode?: BroadcastMode; -} -export interface BroadcastTxRequestAminoMsg { - type: "cosmos-sdk/BroadcastTxRequest"; - value: BroadcastTxRequestAmino; -} -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface BroadcastTxRequestSDKType { - tx_bytes: Uint8Array; - mode: BroadcastMode; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponse { - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface BroadcastTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; - value: Uint8Array; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseAmino { - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface BroadcastTxResponseAminoMsg { - type: "cosmos-sdk/BroadcastTxResponse"; - value: BroadcastTxResponseAmino; -} -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface BroadcastTxResponseSDKType { - tx_response?: TxResponseSDKType; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequest { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: Tx; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - txBytes: Uint8Array; -} -export interface SimulateRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; - value: Uint8Array; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestAmino { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - */ - /** @deprecated */ - tx?: TxAmino; - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - */ - tx_bytes?: string; -} -export interface SimulateRequestAminoMsg { - type: "cosmos-sdk/SimulateRequest"; - value: SimulateRequestAmino; -} -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface SimulateRequestSDKType { - /** @deprecated */ - tx?: TxSDKType; - tx_bytes: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gasInfo?: GasInfo; - /** result is the result of the simulation. */ - result?: Result; -} -export interface SimulateResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; - value: Uint8Array; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseAmino { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: GasInfoAmino; - /** result is the result of the simulation. */ - result?: ResultAmino; -} -export interface SimulateResponseAminoMsg { - type: "cosmos-sdk/SimulateResponse"; - value: SimulateResponseAmino; -} -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface SimulateResponseSDKType { - gas_info?: GasInfoSDKType; - result?: ResultSDKType; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequest { - /** hash is the tx hash to query, encoded as a hex string. */ - hash: string; -} -export interface GetTxRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; - value: Uint8Array; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestAmino { - /** hash is the tx hash to query, encoded as a hex string. */ - hash?: string; -} -export interface GetTxRequestAminoMsg { - type: "cosmos-sdk/GetTxRequest"; - value: GetTxRequestAmino; -} -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - */ -export interface GetTxRequestSDKType { - hash: string; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponse { - /** tx is the queried transaction. */ - tx?: Tx; - /** tx_response is the queried TxResponses. */ - txResponse?: TxResponse; -} -export interface GetTxResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; - value: Uint8Array; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseAmino { - /** tx is the queried transaction. */ - tx?: TxAmino; - /** tx_response is the queried TxResponses. */ - tx_response?: TxResponseAmino; -} -export interface GetTxResponseAminoMsg { - type: "cosmos-sdk/GetTxResponse"; - value: GetTxResponseAmino; -} -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface GetTxResponseSDKType { - tx?: TxSDKType; - tx_response?: TxResponseSDKType; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequest { - /** height is the height of the block to query. */ - height: bigint; - /** pagination defines a pagination for the request. */ - pagination?: PageRequest; -} -export interface GetBlockWithTxsRequestProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - value: Uint8Array; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestAmino { - /** height is the height of the block to query. */ - height?: string; - /** pagination defines a pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface GetBlockWithTxsRequestAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsRequest"; - value: GetBlockWithTxsRequestAmino; -} -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsRequestSDKType { - height: bigint; - pagination?: PageRequestSDKType; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponse { - /** txs are the transactions in the block. */ - txs: Tx[]; - blockId?: BlockID; - block?: Block; - /** pagination defines a pagination for the response. */ - pagination?: PageResponse; -} -export interface GetBlockWithTxsResponseProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - value: Uint8Array; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseAmino { - /** txs are the transactions in the block. */ - txs?: TxAmino[]; - block_id?: BlockIDAmino; - block?: BlockAmino; - /** pagination defines a pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface GetBlockWithTxsResponseAminoMsg { - type: "cosmos-sdk/GetBlockWithTxsResponse"; - value: GetBlockWithTxsResponseAmino; -} -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. - * - * Since: cosmos-sdk 0.45.2 - */ -export interface GetBlockWithTxsResponseSDKType { - txs: TxSDKType[]; - block_id?: BlockIDSDKType; - block?: BlockSDKType; - pagination?: PageResponseSDKType; -} -export declare const GetTxsEventRequest: { - typeUrl: string; - encode(message: GetTxsEventRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventRequest; - fromPartial(object: Partial): GetTxsEventRequest; - fromAmino(object: GetTxsEventRequestAmino): GetTxsEventRequest; - toAmino(message: GetTxsEventRequest): GetTxsEventRequestAmino; - fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest; - toAminoMsg(message: GetTxsEventRequest): GetTxsEventRequestAminoMsg; - fromProtoMsg(message: GetTxsEventRequestProtoMsg): GetTxsEventRequest; - toProto(message: GetTxsEventRequest): Uint8Array; - toProtoMsg(message: GetTxsEventRequest): GetTxsEventRequestProtoMsg; -}; -export declare const GetTxsEventResponse: { - typeUrl: string; - encode(message: GetTxsEventResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxsEventResponse; - fromPartial(object: Partial): GetTxsEventResponse; - fromAmino(object: GetTxsEventResponseAmino): GetTxsEventResponse; - toAmino(message: GetTxsEventResponse): GetTxsEventResponseAmino; - fromAminoMsg(object: GetTxsEventResponseAminoMsg): GetTxsEventResponse; - toAminoMsg(message: GetTxsEventResponse): GetTxsEventResponseAminoMsg; - fromProtoMsg(message: GetTxsEventResponseProtoMsg): GetTxsEventResponse; - toProto(message: GetTxsEventResponse): Uint8Array; - toProtoMsg(message: GetTxsEventResponse): GetTxsEventResponseProtoMsg; -}; -export declare const BroadcastTxRequest: { - typeUrl: string; - encode(message: BroadcastTxRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxRequest; - fromPartial(object: Partial): BroadcastTxRequest; - fromAmino(object: BroadcastTxRequestAmino): BroadcastTxRequest; - toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino; - fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest; - toAminoMsg(message: BroadcastTxRequest): BroadcastTxRequestAminoMsg; - fromProtoMsg(message: BroadcastTxRequestProtoMsg): BroadcastTxRequest; - toProto(message: BroadcastTxRequest): Uint8Array; - toProtoMsg(message: BroadcastTxRequest): BroadcastTxRequestProtoMsg; -}; -export declare const BroadcastTxResponse: { - typeUrl: string; - encode(message: BroadcastTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BroadcastTxResponse; - fromPartial(object: Partial): BroadcastTxResponse; - fromAmino(object: BroadcastTxResponseAmino): BroadcastTxResponse; - toAmino(message: BroadcastTxResponse): BroadcastTxResponseAmino; - fromAminoMsg(object: BroadcastTxResponseAminoMsg): BroadcastTxResponse; - toAminoMsg(message: BroadcastTxResponse): BroadcastTxResponseAminoMsg; - fromProtoMsg(message: BroadcastTxResponseProtoMsg): BroadcastTxResponse; - toProto(message: BroadcastTxResponse): Uint8Array; - toProtoMsg(message: BroadcastTxResponse): BroadcastTxResponseProtoMsg; -}; -export declare const SimulateRequest: { - typeUrl: string; - encode(message: SimulateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulateRequest; - fromPartial(object: Partial): SimulateRequest; - fromAmino(object: SimulateRequestAmino): SimulateRequest; - toAmino(message: SimulateRequest): SimulateRequestAmino; - fromAminoMsg(object: SimulateRequestAminoMsg): SimulateRequest; - toAminoMsg(message: SimulateRequest): SimulateRequestAminoMsg; - fromProtoMsg(message: SimulateRequestProtoMsg): SimulateRequest; - toProto(message: SimulateRequest): Uint8Array; - toProtoMsg(message: SimulateRequest): SimulateRequestProtoMsg; -}; -export declare const SimulateResponse: { - typeUrl: string; - encode(message: SimulateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimulateResponse; - fromPartial(object: Partial): SimulateResponse; - fromAmino(object: SimulateResponseAmino): SimulateResponse; - toAmino(message: SimulateResponse): SimulateResponseAmino; - fromAminoMsg(object: SimulateResponseAminoMsg): SimulateResponse; - toAminoMsg(message: SimulateResponse): SimulateResponseAminoMsg; - fromProtoMsg(message: SimulateResponseProtoMsg): SimulateResponse; - toProto(message: SimulateResponse): Uint8Array; - toProtoMsg(message: SimulateResponse): SimulateResponseProtoMsg; -}; -export declare const GetTxRequest: { - typeUrl: string; - encode(message: GetTxRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxRequest; - fromPartial(object: Partial): GetTxRequest; - fromAmino(object: GetTxRequestAmino): GetTxRequest; - toAmino(message: GetTxRequest): GetTxRequestAmino; - fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest; - toAminoMsg(message: GetTxRequest): GetTxRequestAminoMsg; - fromProtoMsg(message: GetTxRequestProtoMsg): GetTxRequest; - toProto(message: GetTxRequest): Uint8Array; - toProtoMsg(message: GetTxRequest): GetTxRequestProtoMsg; -}; -export declare const GetTxResponse: { - typeUrl: string; - encode(message: GetTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetTxResponse; - fromPartial(object: Partial): GetTxResponse; - fromAmino(object: GetTxResponseAmino): GetTxResponse; - toAmino(message: GetTxResponse): GetTxResponseAmino; - fromAminoMsg(object: GetTxResponseAminoMsg): GetTxResponse; - toAminoMsg(message: GetTxResponse): GetTxResponseAminoMsg; - fromProtoMsg(message: GetTxResponseProtoMsg): GetTxResponse; - toProto(message: GetTxResponse): Uint8Array; - toProtoMsg(message: GetTxResponse): GetTxResponseProtoMsg; -}; -export declare const GetBlockWithTxsRequest: { - typeUrl: string; - encode(message: GetBlockWithTxsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsRequest; - fromPartial(object: Partial): GetBlockWithTxsRequest; - fromAmino(object: GetBlockWithTxsRequestAmino): GetBlockWithTxsRequest; - toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino; - fromAminoMsg(object: GetBlockWithTxsRequestAminoMsg): GetBlockWithTxsRequest; - toAminoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAminoMsg; - fromProtoMsg(message: GetBlockWithTxsRequestProtoMsg): GetBlockWithTxsRequest; - toProto(message: GetBlockWithTxsRequest): Uint8Array; - toProtoMsg(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestProtoMsg; -}; -export declare const GetBlockWithTxsResponse: { - typeUrl: string; - encode(message: GetBlockWithTxsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GetBlockWithTxsResponse; - fromPartial(object: Partial): GetBlockWithTxsResponse; - fromAmino(object: GetBlockWithTxsResponseAmino): GetBlockWithTxsResponse; - toAmino(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAmino; - fromAminoMsg(object: GetBlockWithTxsResponseAminoMsg): GetBlockWithTxsResponse; - toAminoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseAminoMsg; - fromProtoMsg(message: GetBlockWithTxsResponseProtoMsg): GetBlockWithTxsResponse; - toProto(message: GetBlockWithTxsResponse): Uint8Array; - toProtoMsg(message: GetBlockWithTxsResponse): GetBlockWithTxsResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.js b/packages/api/dist/cosmos/tx/v1beta1/service.js deleted file mode 100644 index 11c86eea..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.js +++ /dev/null @@ -1,999 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastModeAmino = exports.BroadcastModeSDKType = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderByAmino = exports.OrderBySDKType = exports.OrderBy = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -const pagination_1 = require("../../base/query/v1beta1/pagination"); -const abci_1 = require("../../base/abci/v1beta1/abci"); -const types_1 = require("../../../tendermint/types/types"); -const block_1 = require("../../../tendermint/types/block"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -/** OrderBy defines the sorting order */ -var OrderBy; -(function (OrderBy) { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - OrderBy[OrderBy["ORDER_BY_UNSPECIFIED"] = 0] = "ORDER_BY_UNSPECIFIED"; - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - OrderBy[OrderBy["ORDER_BY_ASC"] = 1] = "ORDER_BY_ASC"; - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - OrderBy[OrderBy["ORDER_BY_DESC"] = 2] = "ORDER_BY_DESC"; - OrderBy[OrderBy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(OrderBy || (exports.OrderBy = OrderBy = {})); -exports.OrderBySDKType = OrderBy; -exports.OrderByAmino = OrderBy; -function orderByFromJSON(object) { - switch (object) { - case 0: - case "ORDER_BY_UNSPECIFIED": - return OrderBy.ORDER_BY_UNSPECIFIED; - case 1: - case "ORDER_BY_ASC": - return OrderBy.ORDER_BY_ASC; - case 2: - case "ORDER_BY_DESC": - return OrderBy.ORDER_BY_DESC; - case -1: - case "UNRECOGNIZED": - default: - return OrderBy.UNRECOGNIZED; - } -} -exports.orderByFromJSON = orderByFromJSON; -function orderByToJSON(object) { - switch (object) { - case OrderBy.ORDER_BY_UNSPECIFIED: - return "ORDER_BY_UNSPECIFIED"; - case OrderBy.ORDER_BY_ASC: - return "ORDER_BY_ASC"; - case OrderBy.ORDER_BY_DESC: - return "ORDER_BY_DESC"; - case OrderBy.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.orderByToJSON = orderByToJSON; -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -var BroadcastMode; -(function (BroadcastMode) { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_UNSPECIFIED"] = 0] = "BROADCAST_MODE_UNSPECIFIED"; - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_BLOCK"] = 1] = "BROADCAST_MODE_BLOCK"; - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_SYNC"] = 2] = "BROADCAST_MODE_SYNC"; - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_ASYNC"] = 3] = "BROADCAST_MODE_ASYNC"; - BroadcastMode[BroadcastMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BroadcastMode || (exports.BroadcastMode = BroadcastMode = {})); -exports.BroadcastModeSDKType = BroadcastMode; -exports.BroadcastModeAmino = BroadcastMode; -function broadcastModeFromJSON(object) { - switch (object) { - case 0: - case "BROADCAST_MODE_UNSPECIFIED": - return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; - case 1: - case "BROADCAST_MODE_BLOCK": - return BroadcastMode.BROADCAST_MODE_BLOCK; - case 2: - case "BROADCAST_MODE_SYNC": - return BroadcastMode.BROADCAST_MODE_SYNC; - case 3: - case "BROADCAST_MODE_ASYNC": - return BroadcastMode.BROADCAST_MODE_ASYNC; - case -1: - case "UNRECOGNIZED": - default: - return BroadcastMode.UNRECOGNIZED; - } -} -exports.broadcastModeFromJSON = broadcastModeFromJSON; -function broadcastModeToJSON(object) { - switch (object) { - case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: - return "BROADCAST_MODE_UNSPECIFIED"; - case BroadcastMode.BROADCAST_MODE_BLOCK: - return "BROADCAST_MODE_BLOCK"; - case BroadcastMode.BROADCAST_MODE_SYNC: - return "BROADCAST_MODE_SYNC"; - case BroadcastMode.BROADCAST_MODE_ASYNC: - return "BROADCAST_MODE_ASYNC"; - case BroadcastMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.broadcastModeToJSON = broadcastModeToJSON; -function createBaseGetTxsEventRequest() { - return { - events: [], - pagination: undefined, - orderBy: 0, - page: BigInt(0), - limit: BigInt(0) - }; -} -exports.GetTxsEventRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.events) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - if (message.orderBy !== 0) { - writer.uint32(24).int32(message.orderBy); - } - if (message.page !== BigInt(0)) { - writer.uint32(32).uint64(message.page); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(reader.string()); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - case 3: - message.orderBy = reader.int32(); - break; - case 4: - message.page = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - message.orderBy = object.orderBy ?? 0; - message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - if (object.order_by !== undefined && object.order_by !== null) { - message.orderBy = object.order_by; - } - if (object.page !== undefined && object.page !== null) { - message.page = BigInt(object.page); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map(e => e); - } - else { - obj.events = message.events; - } - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; - obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxsEventRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxsEventRequest", - value: exports.GetTxsEventRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxsEventRequest.decode(message.value); - }, - toProto(message) { - return exports.GetTxsEventRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - value: exports.GetTxsEventRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxsEventResponse() { - return { - txs: [], - txResponses: [], - pagination: undefined, - total: BigInt(0) - }; -} -exports.GetTxsEventResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.txs) { - tx_1.Tx.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.txResponses) { - abci_1.TxResponse.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - if (message.total !== BigInt(0)) { - writer.uint32(32).uint64(message.total); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(tx_1.Tx.decode(reader, reader.uint32())); - break; - case 2: - message.txResponses.push(abci_1.TxResponse.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - case 4: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => tx_1.Tx.fromPartial(e)) || []; - message.txResponses = object.txResponses?.map(e => abci_1.TxResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => tx_1.Tx.fromAmino(e)) || []; - message.txResponses = object.tx_responses?.map(e => abci_1.TxResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? tx_1.Tx.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - if (message.txResponses) { - obj.tx_responses = message.txResponses.map(e => e ? abci_1.TxResponse.toAmino(e) : undefined); - } - else { - obj.tx_responses = message.txResponses; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxsEventResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxsEventResponse", - value: exports.GetTxsEventResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxsEventResponse.decode(message.value); - }, - toProto(message) { - return exports.GetTxsEventResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - value: exports.GetTxsEventResponse.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxRequest() { - return { - txBytes: new Uint8Array(), - mode: 0 - }; -} -exports.BroadcastTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.txBytes.length !== 0) { - writer.uint32(10).bytes(message.txBytes); - } - if (message.mode !== 0) { - writer.uint32(16).int32(message.mode); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txBytes = reader.bytes(); - break; - case 2: - message.mode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBroadcastTxRequest(); - message.txBytes = object.txBytes ?? new Uint8Array(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBroadcastTxRequest(); - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = (0, helpers_1.bytesFromBase64)(object.tx_bytes); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_bytes = message.txBytes ? (0, helpers_1.base64FromBytes)(message.txBytes) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object) { - return exports.BroadcastTxRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BroadcastTxRequest", - value: exports.BroadcastTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BroadcastTxRequest.decode(message.value); - }, - toProto(message) { - return exports.BroadcastTxRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - value: exports.BroadcastTxRequest.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxResponse() { - return { - txResponse: undefined - }; -} -exports.BroadcastTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.txResponse !== undefined) { - abci_1.TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txResponse = abci_1.TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBroadcastTxResponse(); - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? abci_1.TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBroadcastTxResponse(); - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = abci_1.TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_response = message.txResponse ? abci_1.TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BroadcastTxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BroadcastTxResponse", - value: exports.BroadcastTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BroadcastTxResponse.decode(message.value); - }, - toProto(message) { - return exports.BroadcastTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - value: exports.BroadcastTxResponse.encode(message).finish() - }; - } -}; -function createBaseSimulateRequest() { - return { - tx: undefined, - txBytes: new Uint8Array() - }; -} -exports.SimulateRequest = { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tx !== undefined) { - tx_1.Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txBytes.length !== 0) { - writer.uint32(18).bytes(message.txBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = tx_1.Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulateRequest(); - message.tx = object.tx !== undefined && object.tx !== null ? tx_1.Tx.fromPartial(object.tx) : undefined; - message.txBytes = object.txBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSimulateRequest(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = tx_1.Tx.fromAmino(object.tx); - } - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = (0, helpers_1.bytesFromBase64)(object.tx_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? tx_1.Tx.toAmino(message.tx) : undefined; - obj.tx_bytes = message.txBytes ? (0, helpers_1.base64FromBytes)(message.txBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SimulateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulateRequest", - value: exports.SimulateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SimulateRequest.decode(message.value); - }, - toProto(message) { - return exports.SimulateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - value: exports.SimulateRequest.encode(message).finish() - }; - } -}; -function createBaseSimulateResponse() { - return { - gasInfo: undefined, - result: undefined - }; -} -exports.SimulateResponse = { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.gasInfo !== undefined) { - abci_1.GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - abci_1.Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = abci_1.GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = abci_1.Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulateResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? abci_1.GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? abci_1.Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSimulateResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = abci_1.GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = abci_1.Result.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_info = message.gasInfo ? abci_1.GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? abci_1.Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SimulateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulateResponse", - value: exports.SimulateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SimulateResponse.decode(message.value); - }, - toProto(message) { - return exports.SimulateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - value: exports.SimulateResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxRequest() { - return { - hash: "" - }; -} -exports.GetTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxRequest", - value: exports.GetTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxRequest.decode(message.value); - }, - toProto(message) { - return exports.GetTxRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - value: exports.GetTxRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxResponse() { - return { - tx: undefined, - txResponse: undefined - }; -} -exports.GetTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tx !== undefined) { - tx_1.Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txResponse !== undefined) { - abci_1.TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = tx_1.Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txResponse = abci_1.TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? tx_1.Tx.fromPartial(object.tx) : undefined; - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? abci_1.TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = tx_1.Tx.fromAmino(object.tx); - } - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = abci_1.TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? tx_1.Tx.toAmino(message.tx) : undefined; - obj.tx_response = message.txResponse ? abci_1.TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetTxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxResponse", - value: exports.GetTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetTxResponse.decode(message.value); - }, - toProto(message) { - return exports.GetTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - value: exports.GetTxResponse.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsRequest() { - return { - height: BigInt(0), - pagination: undefined - }; -} -exports.GetBlockWithTxsRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetBlockWithTxsRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetBlockWithTxsRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetBlockWithTxsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetBlockWithTxsRequest", - value: exports.GetBlockWithTxsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetBlockWithTxsRequest.decode(message.value); - }, - toProto(message) { - return exports.GetBlockWithTxsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - value: exports.GetBlockWithTxsRequest.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsResponse() { - return { - txs: [], - blockId: undefined, - block: undefined, - pagination: undefined - }; -} -exports.GetBlockWithTxsResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.txs) { - tx_1.Tx.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.blockId !== undefined) { - types_1.BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); - } - if (message.block !== undefined) { - block_1.Block.encode(message.block, writer.uint32(26).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(tx_1.Tx.decode(reader, reader.uint32())); - break; - case 2: - message.blockId = types_1.BlockID.decode(reader, reader.uint32()); - break; - case 3: - message.block = block_1.Block.decode(reader, reader.uint32()); - break; - case 4: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => tx_1.Tx.fromPartial(e)) || []; - message.blockId = object.blockId !== undefined && object.blockId !== null ? types_1.BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? block_1.Block.fromPartial(object.block) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => tx_1.Tx.fromAmino(e)) || []; - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = types_1.BlockID.fromAmino(object.block_id); - } - if (object.block !== undefined && object.block !== null) { - message.block = block_1.Block.fromAmino(object.block); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? tx_1.Tx.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - obj.block_id = message.blockId ? types_1.BlockID.toAmino(message.blockId) : undefined; - obj.block = message.block ? block_1.Block.toAmino(message.block) : undefined; - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GetBlockWithTxsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetBlockWithTxsResponse", - value: exports.GetBlockWithTxsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GetBlockWithTxsResponse.decode(message.value); - }, - toProto(message) { - return exports.GetBlockWithTxsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - value: exports.GetBlockWithTxsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts deleted file mode 100644 index e4a8e7b3..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { GetTxRequest, GetTxResponseSDKType, GetTxsEventRequest, GetTxsEventResponseSDKType, GetBlockWithTxsRequest, GetBlockWithTxsResponseSDKType } from "./service"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - getTx(params: GetTxRequest): Promise; - getTxsEvent(params: GetTxsEventRequest): Promise; - getBlockWithTxs(params: GetBlockWithTxsRequest): Promise; -} diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js b/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js deleted file mode 100644 index 15eecce7..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.lcd.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.getTx = this.getTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - /* GetTx fetches a tx by hash. */ - async getTx(params) { - const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; - return await this.req.get(endpoint); - } - /* GetTxsEvent fetches txs by event. */ - async getTxsEvent(params) { - const options = { - params: {} - }; - if (typeof params?.events !== "undefined") { - options.params.events = params.events; - } - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - if (typeof params?.orderBy !== "undefined") { - options.params.order_by = params.orderBy; - } - if (typeof params?.page !== "undefined") { - options.params.page = params.page; - } - if (typeof params?.limit !== "undefined") { - options.params.limit = params.limit; - } - const endpoint = `cosmos/tx/v1beta1/txs`; - return await this.req.get(endpoint, options); - } - /* GetBlockWithTxs fetches a block with decoded txs. - - Since: cosmos-sdk 0.45.2 */ - async getBlockWithTxs(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; - return await this.req.get(endpoint, options); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts deleted file mode 100644 index 8ce5bc4f..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; -/** Service defines a gRPC service for interacting with transactions. */ -export interface Service { - /** Simulate simulates executing a transaction for estimating gas usage. */ - simulate(request: SimulateRequest): Promise; - /** GetTx fetches a tx by hash. */ - getTx(request: GetTxRequest): Promise; - /** BroadcastTx broadcast transaction. */ - broadcastTx(request: BroadcastTxRequest): Promise; - /** GetTxsEvent fetches txs by event. */ - getTxsEvent(request: GetTxsEventRequest): Promise; - /** - * GetBlockWithTxs fetches a block with decoded txs. - * - * Since: cosmos-sdk 0.45.2 - */ - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -} -export declare class ServiceClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - simulate(request: SimulateRequest): Promise; - getTx(request: GetTxRequest): Promise; - broadcastTx(request: BroadcastTxRequest): Promise; - getTxsEvent(request: GetTxsEventRequest): Promise; - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - simulate(request: SimulateRequest): Promise; - getTx(request: GetTxRequest): Promise; - broadcastTx(request: BroadcastTxRequest): Promise; - getTxsEvent(request: GetTxsEventRequest): Promise; - getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js b/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js deleted file mode 100644 index 6415ffb8..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/service.rpc.Service.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.ServiceClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const service_1 = require("./service"); -class ServiceClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.simulate = this.simulate.bind(this); - this.getTx = this.getTx.bind(this); - this.broadcastTx = this.broadcastTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - simulate(request) { - const data = service_1.SimulateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); - return promise.then(data => service_1.SimulateResponse.decode(new binary_1.BinaryReader(data))); - } - getTx(request) { - const data = service_1.GetTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); - return promise.then(data => service_1.GetTxResponse.decode(new binary_1.BinaryReader(data))); - } - broadcastTx(request) { - const data = service_1.BroadcastTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); - return promise.then(data => service_1.BroadcastTxResponse.decode(new binary_1.BinaryReader(data))); - } - getTxsEvent(request) { - const data = service_1.GetTxsEventRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); - return promise.then(data => service_1.GetTxsEventResponse.decode(new binary_1.BinaryReader(data))); - } - getBlockWithTxs(request) { - const data = service_1.GetBlockWithTxsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); - return promise.then(data => service_1.GetBlockWithTxsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.ServiceClientImpl = ServiceClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new ServiceClientImpl(rpc); - return { - simulate(request) { - return queryService.simulate(request); - }, - getTx(request) { - return queryService.getTx(request); - }, - broadcastTx(request) { - return queryService.broadcastTx(request); - }, - getTxsEvent(request) { - return queryService.getTxsEvent(request); - }, - getBlockWithTxs(request) { - return queryService.getBlockWithTxs(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts b/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts deleted file mode 100644 index ba2634cc..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/tx.d.ts +++ /dev/null @@ -1,941 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode } from "../signing/v1beta1/signing"; -import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Tx is the standard type used for broadcasting transactions. */ -export interface Tx { - /** body is the processable content of the transaction */ - body?: TxBody; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - authInfo?: AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tx"; - value: Uint8Array; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxAmino { - /** body is the processable content of the transaction */ - body?: TxBodyAmino; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - */ - auth_info?: AuthInfoAmino; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxAminoMsg { - type: "cosmos-sdk/Tx"; - value: TxAmino; -} -/** Tx is the standard type used for broadcasting transactions. */ -export interface TxSDKType { - body?: TxBodySDKType; - auth_info?: AuthInfoSDKType; - signatures: Uint8Array[]; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRaw { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - authInfoBytes: Uint8Array; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures: Uint8Array[]; -} -export interface TxRawProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxRaw"; - value: Uint8Array; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawAmino { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - */ - auth_info_bytes?: string; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} -export interface TxRawAminoMsg { - type: "cosmos-sdk/TxRaw"; - value: TxRawAmino; -} -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - */ -export interface TxRawSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - signatures: Uint8Array[]; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDoc { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - authInfoBytes: Uint8Array; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chainId: string; - /** account_number is the account number of the account in state */ - accountNumber: bigint; -} -export interface SignDocProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDoc"; - value: Uint8Array; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - */ - auth_info_bytes?: string; - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - */ - chain_id?: string; - /** account_number is the account number of the account in state */ - account_number?: string; -} -export interface SignDocAminoMsg { - type: "cosmos-sdk/SignDoc"; - value: SignDocAmino; -} -/** SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. */ -export interface SignDocSDKType { - body_bytes: Uint8Array; - auth_info_bytes: Uint8Array; - chain_id: string; - account_number: bigint; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAux { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - bodyBytes: Uint8Array; - /** public_key is the public key of the signing account. */ - publicKey?: Any; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chainId: string; - /** account_number is the account number of the account in state. */ - accountNumber: bigint; - /** sequence is the sequence number of the signing account. */ - sequence: bigint; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: Tip; -} -export interface SignDocDirectAuxProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; - value: Uint8Array; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxAmino { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - */ - body_bytes?: string; - /** public_key is the public key of the signing account. */ - public_key?: AnyAmino; - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - */ - chain_id?: string; - /** account_number is the account number of the account in state. */ - account_number?: string; - /** sequence is the sequence number of the signing account. */ - sequence?: string; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - */ - tip?: TipAmino; -} -export interface SignDocDirectAuxAminoMsg { - type: "cosmos-sdk/SignDocDirectAux"; - value: SignDocDirectAuxAmino; -} -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - */ -export interface SignDocDirectAuxSDKType { - body_bytes: Uint8Array; - public_key?: AnySDKType; - chain_id: string; - account_number: bigint; - sequence: bigint; - tip?: TipSDKType; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages: Any[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeoutHeight: bigint; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extensionOptions: Any[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - nonCriticalExtensionOptions: Any[]; -} -export interface TxBodyProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.TxBody"; - value: Uint8Array; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodyAmino { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages?: AnyAmino[]; - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - */ - memo?: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - */ - timeout_height?: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options?: AnyAmino[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options?: AnyAmino[]; -} -export interface TxBodyAminoMsg { - type: "cosmos-sdk/TxBody"; - value: TxBodyAmino; -} -/** TxBody is the body of a transaction that all signers sign over. */ -export interface TxBodySDKType { - messages: AnySDKType[]; - memo: string; - timeout_height: bigint; - extension_options: AnySDKType[]; - non_critical_extension_options: AnySDKType[]; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signerInfos: SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: Fee; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: Tip; -} -export interface AuthInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; - value: Uint8Array; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoAmino { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos?: SignerInfoAmino[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: FeeAmino; - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - */ - tip?: TipAmino; -} -export interface AuthInfoAminoMsg { - type: "cosmos-sdk/AuthInfo"; - value: AuthInfoAmino; -} -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface AuthInfoSDKType { - signer_infos: SignerInfoSDKType[]; - fee?: FeeSDKType; - tip?: TipSDKType; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfo { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - publicKey?: Any; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - modeInfo?: ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence: bigint; -} -export interface SignerInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; - value: Uint8Array; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoAmino { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - */ - public_key?: AnyAmino; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - */ - mode_info?: ModeInfoAmino; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - */ - sequence?: string; -} -export interface SignerInfoAminoMsg { - type: "cosmos-sdk/SignerInfo"; - value: SignerInfoAmino; -} -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface SignerInfoSDKType { - public_key?: AnySDKType; - mode_info?: ModeInfoSDKType; - sequence: bigint; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfo { - /** single represents a single signer */ - single?: ModeInfo_Single; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_Multi; -} -export interface ModeInfoProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; - value: Uint8Array; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoAmino { - /** single represents a single signer */ - single?: ModeInfo_SingleAmino; - /** multi represents a nested multisig signer */ - multi?: ModeInfo_MultiAmino; -} -export interface ModeInfoAminoMsg { - type: "cosmos-sdk/ModeInfo"; - value: ModeInfoAmino; -} -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface ModeInfoSDKType { - single?: ModeInfo_SingleSDKType; - multi?: ModeInfo_MultiSDKType; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_Single { - /** mode is the signing mode of the single signer */ - mode: SignMode; -} -export interface ModeInfo_SingleProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Single"; - value: Uint8Array; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleAmino { - /** mode is the signing mode of the single signer */ - mode?: SignMode; -} -export interface ModeInfo_SingleAminoMsg { - type: "cosmos-sdk/Single"; - value: ModeInfo_SingleAmino; -} -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface ModeInfo_SingleSDKType { - mode: SignMode; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_Multi { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArray; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - modeInfos: ModeInfo[]; -} -export interface ModeInfo_MultiProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Multi"; - value: Uint8Array; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiAmino { - /** bitarray specifies which keys within the multisig are signing */ - bitarray?: CompactBitArrayAmino; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos?: ModeInfoAmino[]; -} -export interface ModeInfo_MultiAminoMsg { - type: "cosmos-sdk/Multi"; - value: ModeInfo_MultiAmino; -} -/** Multi is the mode info for a multisig public key */ -export interface ModeInfo_MultiSDKType { - bitarray?: CompactBitArraySDKType; - mode_infos: ModeInfoSDKType[]; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface Fee { - /** amount is the amount of coins to be paid as a fee */ - amount: Coin[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gasLimit: bigint; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter: string; -} -export interface FeeProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Fee"; - value: Uint8Array; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeAmino { - /** amount is the amount of coins to be paid as a fee */ - amount?: CoinAmino[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - */ - gas_limit?: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer?: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter?: string; -} -export interface FeeAminoMsg { - type: "cosmos-sdk/Fee"; - value: FeeAmino; -} -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface FeeSDKType { - amount: CoinSDKType[]; - gas_limit: bigint; - payer: string; - granter: string; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface Tip { - /** amount is the amount of the tip */ - amount: Coin[]; - /** tipper is the address of the account paying for the tip */ - tipper: string; -} -export interface TipProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.Tip"; - value: Uint8Array; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipAmino { - /** amount is the amount of the tip */ - amount?: CoinAmino[]; - /** tipper is the address of the account paying for the tip */ - tipper?: string; -} -export interface TipAminoMsg { - type: "cosmos-sdk/Tip"; - value: TipAmino; -} -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - */ -export interface TipSDKType { - amount: CoinSDKType[]; - tipper: string; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerData { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - signDoc?: SignDocDirectAux; - /** mode is the signing mode of the single signer. */ - mode: SignMode; - /** sig is the signature of the sign doc. */ - sig: Uint8Array; -} -export interface AuxSignerDataProtoMsg { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; - value: Uint8Array; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataAmino { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - */ - address?: string; - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - */ - sign_doc?: SignDocDirectAuxAmino; - /** mode is the signing mode of the single signer. */ - mode?: SignMode; - /** sig is the signature of the sign doc. */ - sig?: string; -} -export interface AuxSignerDataAminoMsg { - type: "cosmos-sdk/AuxSignerData"; - value: AuxSignerDataAmino; -} -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - */ -export interface AuxSignerDataSDKType { - address: string; - sign_doc?: SignDocDirectAuxSDKType; - mode: SignMode; - sig: Uint8Array; -} -export declare const Tx: { - typeUrl: string; - encode(message: Tx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Tx; - fromPartial(object: Partial): Tx; - fromAmino(object: TxAmino): Tx; - toAmino(message: Tx): TxAmino; - fromAminoMsg(object: TxAminoMsg): Tx; - toAminoMsg(message: Tx): TxAminoMsg; - fromProtoMsg(message: TxProtoMsg): Tx; - toProto(message: Tx): Uint8Array; - toProtoMsg(message: Tx): TxProtoMsg; -}; -export declare const TxRaw: { - typeUrl: string; - encode(message: TxRaw, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxRaw; - fromPartial(object: Partial): TxRaw; - fromAmino(object: TxRawAmino): TxRaw; - toAmino(message: TxRaw): TxRawAmino; - fromAminoMsg(object: TxRawAminoMsg): TxRaw; - toAminoMsg(message: TxRaw): TxRawAminoMsg; - fromProtoMsg(message: TxRawProtoMsg): TxRaw; - toProto(message: TxRaw): Uint8Array; - toProtoMsg(message: TxRaw): TxRawProtoMsg; -}; -export declare const SignDoc: { - typeUrl: string; - encode(message: SignDoc, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignDoc; - fromPartial(object: Partial): SignDoc; - fromAmino(object: SignDocAmino): SignDoc; - toAmino(message: SignDoc): SignDocAmino; - fromAminoMsg(object: SignDocAminoMsg): SignDoc; - toAminoMsg(message: SignDoc): SignDocAminoMsg; - fromProtoMsg(message: SignDocProtoMsg): SignDoc; - toProto(message: SignDoc): Uint8Array; - toProtoMsg(message: SignDoc): SignDocProtoMsg; -}; -export declare const SignDocDirectAux: { - typeUrl: string; - encode(message: SignDocDirectAux, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignDocDirectAux; - fromPartial(object: Partial): SignDocDirectAux; - fromAmino(object: SignDocDirectAuxAmino): SignDocDirectAux; - toAmino(message: SignDocDirectAux): SignDocDirectAuxAmino; - fromAminoMsg(object: SignDocDirectAuxAminoMsg): SignDocDirectAux; - toAminoMsg(message: SignDocDirectAux): SignDocDirectAuxAminoMsg; - fromProtoMsg(message: SignDocDirectAuxProtoMsg): SignDocDirectAux; - toProto(message: SignDocDirectAux): Uint8Array; - toProtoMsg(message: SignDocDirectAux): SignDocDirectAuxProtoMsg; -}; -export declare const TxBody: { - typeUrl: string; - encode(message: TxBody, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxBody; - fromPartial(object: Partial): TxBody; - fromAmino(object: TxBodyAmino): TxBody; - toAmino(message: TxBody): TxBodyAmino; - fromAminoMsg(object: TxBodyAminoMsg): TxBody; - toAminoMsg(message: TxBody): TxBodyAminoMsg; - fromProtoMsg(message: TxBodyProtoMsg): TxBody; - toProto(message: TxBody): Uint8Array; - toProtoMsg(message: TxBody): TxBodyProtoMsg; -}; -export declare const AuthInfo: { - typeUrl: string; - encode(message: AuthInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuthInfo; - fromPartial(object: Partial): AuthInfo; - fromAmino(object: AuthInfoAmino): AuthInfo; - toAmino(message: AuthInfo): AuthInfoAmino; - fromAminoMsg(object: AuthInfoAminoMsg): AuthInfo; - toAminoMsg(message: AuthInfo): AuthInfoAminoMsg; - fromProtoMsg(message: AuthInfoProtoMsg): AuthInfo; - toProto(message: AuthInfo): Uint8Array; - toProtoMsg(message: AuthInfo): AuthInfoProtoMsg; -}; -export declare const SignerInfo: { - typeUrl: string; - encode(message: SignerInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignerInfo; - fromPartial(object: Partial): SignerInfo; - fromAmino(object: SignerInfoAmino): SignerInfo; - toAmino(message: SignerInfo): SignerInfoAmino; - fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo; - toAminoMsg(message: SignerInfo): SignerInfoAminoMsg; - fromProtoMsg(message: SignerInfoProtoMsg): SignerInfo; - toProto(message: SignerInfo): Uint8Array; - toProtoMsg(message: SignerInfo): SignerInfoProtoMsg; -}; -export declare const ModeInfo: { - typeUrl: string; - encode(message: ModeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo; - fromPartial(object: Partial): ModeInfo; - fromAmino(object: ModeInfoAmino): ModeInfo; - toAmino(message: ModeInfo): ModeInfoAmino; - fromAminoMsg(object: ModeInfoAminoMsg): ModeInfo; - toAminoMsg(message: ModeInfo): ModeInfoAminoMsg; - fromProtoMsg(message: ModeInfoProtoMsg): ModeInfo; - toProto(message: ModeInfo): Uint8Array; - toProtoMsg(message: ModeInfo): ModeInfoProtoMsg; -}; -export declare const ModeInfo_Single: { - typeUrl: string; - encode(message: ModeInfo_Single, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Single; - fromPartial(object: Partial): ModeInfo_Single; - fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single; - toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino; - fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single; - toAminoMsg(message: ModeInfo_Single): ModeInfo_SingleAminoMsg; - fromProtoMsg(message: ModeInfo_SingleProtoMsg): ModeInfo_Single; - toProto(message: ModeInfo_Single): Uint8Array; - toProtoMsg(message: ModeInfo_Single): ModeInfo_SingleProtoMsg; -}; -export declare const ModeInfo_Multi: { - typeUrl: string; - encode(message: ModeInfo_Multi, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModeInfo_Multi; - fromPartial(object: Partial): ModeInfo_Multi; - fromAmino(object: ModeInfo_MultiAmino): ModeInfo_Multi; - toAmino(message: ModeInfo_Multi): ModeInfo_MultiAmino; - fromAminoMsg(object: ModeInfo_MultiAminoMsg): ModeInfo_Multi; - toAminoMsg(message: ModeInfo_Multi): ModeInfo_MultiAminoMsg; - fromProtoMsg(message: ModeInfo_MultiProtoMsg): ModeInfo_Multi; - toProto(message: ModeInfo_Multi): Uint8Array; - toProtoMsg(message: ModeInfo_Multi): ModeInfo_MultiProtoMsg; -}; -export declare const Fee: { - typeUrl: string; - encode(message: Fee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Fee; - fromPartial(object: Partial): Fee; - fromAmino(object: FeeAmino): Fee; - toAmino(message: Fee): FeeAmino; - fromAminoMsg(object: FeeAminoMsg): Fee; - toAminoMsg(message: Fee): FeeAminoMsg; - fromProtoMsg(message: FeeProtoMsg): Fee; - toProto(message: Fee): Uint8Array; - toProtoMsg(message: Fee): FeeProtoMsg; -}; -export declare const Tip: { - typeUrl: string; - encode(message: Tip, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Tip; - fromPartial(object: Partial): Tip; - fromAmino(object: TipAmino): Tip; - toAmino(message: Tip): TipAmino; - fromAminoMsg(object: TipAminoMsg): Tip; - toAminoMsg(message: Tip): TipAminoMsg; - fromProtoMsg(message: TipProtoMsg): Tip; - toProto(message: Tip): Uint8Array; - toProtoMsg(message: Tip): TipProtoMsg; -}; -export declare const AuxSignerData: { - typeUrl: string; - encode(message: AuxSignerData, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AuxSignerData; - fromPartial(object: Partial): AuxSignerData; - fromAmino(object: AuxSignerDataAmino): AuxSignerData; - toAmino(message: AuxSignerData): AuxSignerDataAmino; - fromAminoMsg(object: AuxSignerDataAminoMsg): AuxSignerData; - toAminoMsg(message: AuxSignerData): AuxSignerDataAminoMsg; - fromProtoMsg(message: AuxSignerDataProtoMsg): AuxSignerData; - toProto(message: AuxSignerData): Uint8Array; - toProtoMsg(message: AuxSignerData): AuxSignerDataProtoMsg; -}; diff --git a/packages/api/dist/cosmos/tx/v1beta1/tx.js b/packages/api/dist/cosmos/tx/v1beta1/tx.js deleted file mode 100644 index 500ef9d4..00000000 --- a/packages/api/dist/cosmos/tx/v1beta1/tx.js +++ /dev/null @@ -1,1281 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AuxSignerData = exports.Tip = exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDocDirectAux = exports.SignDoc = exports.TxRaw = exports.Tx = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const multisig_1 = require("../../crypto/multisig/v1beta1/multisig"); -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseTx() { - return { - body: undefined, - authInfo: undefined, - signatures: [] - }; -} -exports.Tx = { - typeUrl: "/cosmos.tx.v1beta1.Tx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.body !== undefined) { - exports.TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); - } - if (message.authInfo !== undefined) { - exports.AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.body = exports.TxBody.decode(reader, reader.uint32()); - break; - case 2: - message.authInfo = exports.AuthInfo.decode(reader, reader.uint32()); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTx(); - message.body = object.body !== undefined && object.body !== null ? exports.TxBody.fromPartial(object.body) : undefined; - message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? exports.AuthInfo.fromPartial(object.authInfo) : undefined; - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTx(); - if (object.body !== undefined && object.body !== null) { - message.body = exports.TxBody.fromAmino(object.body); - } - if (object.auth_info !== undefined && object.auth_info !== null) { - message.authInfo = exports.AuthInfo.fromAmino(object.auth_info); - } - message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.body = message.body ? exports.TxBody.toAmino(message.body) : undefined; - obj.auth_info = message.authInfo ? exports.AuthInfo.toAmino(message.authInfo) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Tx.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Tx", - value: exports.Tx.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Tx.decode(message.value); - }, - toProto(message) { - return exports.Tx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Tx", - value: exports.Tx.encode(message).finish() - }; - } -}; -function createBaseTxRaw() { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - signatures: [] - }; -} -exports.TxRaw = { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxRaw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxRaw(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxRaw(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = (0, helpers_1.bytesFromBase64)(object.auth_info_bytes); - } - message.signatures = object.signatures?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? (0, helpers_1.base64FromBytes)(message.authInfoBytes) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.TxRaw.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxRaw", - value: exports.TxRaw.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TxRaw.decode(message.value); - }, - toProto(message) { - return exports.TxRaw.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - value: exports.TxRaw.encode(message).finish() - }; - } -}; -function createBaseSignDoc() { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - chainId: "", - accountNumber: BigInt(0) - }; -} -exports.SignDoc = { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDoc(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignDoc(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignDoc(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = (0, helpers_1.bytesFromBase64)(object.auth_info_bytes); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? (0, helpers_1.base64FromBytes)(message.authInfoBytes) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignDoc.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignDoc", - value: exports.SignDoc.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignDoc.decode(message.value); - }, - toProto(message) { - return exports.SignDoc.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - value: exports.SignDoc.encode(message).finish() - }; - } -}; -function createBaseSignDocDirectAux() { - return { - bodyBytes: new Uint8Array(), - publicKey: undefined, - chainId: "", - accountNumber: BigInt(0), - sequence: BigInt(0), - tip: undefined - }; -} -exports.SignDocDirectAux = { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.publicKey !== undefined) { - any_1.Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(40).uint64(message.sequence); - } - if (message.tip !== undefined) { - exports.Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDocDirectAux(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.publicKey = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - case 5: - message.sequence = reader.uint64(); - break; - case 6: - message.tip = exports.Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignDocDirectAux(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - message.tip = object.tip !== undefined && object.tip !== null ? exports.Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignDocDirectAux(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = (0, helpers_1.bytesFromBase64)(object.body_bytes); - } - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = any_1.Any.fromAmino(object.public_key); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = exports.Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? (0, helpers_1.base64FromBytes)(message.bodyBytes) : undefined; - obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - obj.tip = message.tip ? exports.Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignDocDirectAux.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignDocDirectAux", - value: exports.SignDocDirectAux.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignDocDirectAux.decode(message.value); - }, - toProto(message) { - return exports.SignDocDirectAux.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - value: exports.SignDocDirectAux.encode(message).finish() - }; - } -}; -function createBaseTxBody() { - return { - messages: [], - memo: "", - timeoutHeight: BigInt(0), - extensionOptions: [], - nonCriticalExtensionOptions: [] - }; -} -exports.TxBody = { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.messages) { - any_1.Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.memo !== "") { - writer.uint32(18).string(message.memo); - } - if (message.timeoutHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.timeoutHeight); - } - for (const v of message.extensionOptions) { - any_1.Any.encode(v, writer.uint32(8186).fork()).ldelim(); - } - for (const v of message.nonCriticalExtensionOptions) { - any_1.Any.encode(v, writer.uint32(16378).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxBody(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 2: - message.memo = reader.string(); - break; - case 3: - message.timeoutHeight = reader.uint64(); - break; - case 1023: - message.extensionOptions.push(any_1.Any.decode(reader, reader.uint32())); - break; - case 2047: - message.nonCriticalExtensionOptions.push(any_1.Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || []; - message.memo = object.memo ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); - message.extensionOptions = object.extensionOptions?.map(e => any_1.Any.fromPartial(e)) || []; - message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => any_1.Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || []; - if (object.memo !== undefined && object.memo !== null) { - message.memo = object.memo; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = BigInt(object.timeout_height); - } - message.extensionOptions = object.extension_options?.map(e => any_1.Any.fromAmino(e)) || []; - message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => any_1.Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.memo = message.memo === "" ? undefined : message.memo; - obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; - if (message.extensionOptions) { - obj.extension_options = message.extensionOptions.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.extension_options = message.extensionOptions; - } - if (message.nonCriticalExtensionOptions) { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? any_1.Any.toAmino(e) : undefined); - } - else { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions; - } - return obj; - }, - fromAminoMsg(object) { - return exports.TxBody.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxBody", - value: exports.TxBody.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.TxBody.decode(message.value); - }, - toProto(message) { - return exports.TxBody.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - value: exports.TxBody.encode(message).finish() - }; - } -}; -function createBaseAuthInfo() { - return { - signerInfos: [], - fee: undefined, - tip: undefined - }; -} -exports.AuthInfo = { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.signerInfos) { - exports.SignerInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.fee !== undefined) { - exports.Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - if (message.tip !== undefined) { - exports.Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signerInfos.push(exports.SignerInfo.decode(reader, reader.uint32())); - break; - case 2: - message.fee = exports.Fee.decode(reader, reader.uint32()); - break; - case 3: - message.tip = exports.Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuthInfo(); - message.signerInfos = object.signerInfos?.map(e => exports.SignerInfo.fromPartial(e)) || []; - message.fee = object.fee !== undefined && object.fee !== null ? exports.Fee.fromPartial(object.fee) : undefined; - message.tip = object.tip !== undefined && object.tip !== null ? exports.Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAuthInfo(); - message.signerInfos = object.signer_infos?.map(e => exports.SignerInfo.fromAmino(e)) || []; - if (object.fee !== undefined && object.fee !== null) { - message.fee = exports.Fee.fromAmino(object.fee); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = exports.Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signerInfos) { - obj.signer_infos = message.signerInfos.map(e => e ? exports.SignerInfo.toAmino(e) : undefined); - } - else { - obj.signer_infos = message.signerInfos; - } - obj.fee = message.fee ? exports.Fee.toAmino(message.fee) : undefined; - obj.tip = message.tip ? exports.Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AuthInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuthInfo", - value: exports.AuthInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AuthInfo.decode(message.value); - }, - toProto(message) { - return exports.AuthInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - value: exports.AuthInfo.encode(message).finish() - }; - } -}; -function createBaseSignerInfo() { - return { - publicKey: undefined, - modeInfo: undefined, - sequence: BigInt(0) - }; -} -exports.SignerInfo = { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.publicKey !== undefined) { - any_1.Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.modeInfo !== undefined) { - exports.ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignerInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = any_1.Any.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfo = exports.ModeInfo.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignerInfo(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? any_1.Any.fromPartial(object.publicKey) : undefined; - message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? exports.ModeInfo.fromPartial(object.modeInfo) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignerInfo(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = any_1.Any.fromAmino(object.public_key); - } - if (object.mode_info !== undefined && object.mode_info !== null) { - message.modeInfo = exports.ModeInfo.fromAmino(object.mode_info); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.public_key = message.publicKey ? any_1.Any.toAmino(message.publicKey) : undefined; - obj.mode_info = message.modeInfo ? exports.ModeInfo.toAmino(message.modeInfo) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignerInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignerInfo", - value: exports.SignerInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SignerInfo.decode(message.value); - }, - toProto(message) { - return exports.SignerInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - value: exports.SignerInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo() { - return { - single: undefined, - multi: undefined - }; -} -exports.ModeInfo = { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.single !== undefined) { - exports.ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - exports.ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = exports.ModeInfo_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = exports.ModeInfo_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo(); - message.single = object.single !== undefined && object.single !== null ? exports.ModeInfo_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? exports.ModeInfo_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo(); - if (object.single !== undefined && object.single !== null) { - message.single = exports.ModeInfo_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = exports.ModeInfo_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.single = message.single ? exports.ModeInfo_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? exports.ModeInfo_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ModeInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModeInfo", - value: exports.ModeInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModeInfo.decode(message.value); - }, - toProto(message) { - return exports.ModeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - value: exports.ModeInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Single() { - return { - mode: 0 - }; -} -exports.ModeInfo_Single = { - typeUrl: "/cosmos.tx.v1beta1.Single", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo_Single(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object) { - return exports.ModeInfo_Single.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Single", - value: exports.ModeInfo_Single.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModeInfo_Single.decode(message.value); - }, - toProto(message) { - return exports.ModeInfo_Single.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Single", - value: exports.ModeInfo_Single.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Multi() { - return { - bitarray: undefined, - modeInfos: [] - }; -} -exports.ModeInfo_Multi = { - typeUrl: "/cosmos.tx.v1beta1.Multi", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bitarray !== undefined) { - multisig_1.CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.modeInfos) { - exports.ModeInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = multisig_1.CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfos.push(exports.ModeInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? multisig_1.CompactBitArray.fromPartial(object.bitarray) : undefined; - message.modeInfos = object.modeInfos?.map(e => exports.ModeInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = multisig_1.CompactBitArray.fromAmino(object.bitarray); - } - message.modeInfos = object.mode_infos?.map(e => exports.ModeInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bitarray = message.bitarray ? multisig_1.CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.modeInfos) { - obj.mode_infos = message.modeInfos.map(e => e ? exports.ModeInfo.toAmino(e) : undefined); - } - else { - obj.mode_infos = message.modeInfos; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ModeInfo_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: exports.ModeInfo_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModeInfo_Multi.decode(message.value); - }, - toProto(message) { - return exports.ModeInfo_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Multi", - value: exports.ModeInfo_Multi.encode(message).finish() - }; - } -}; -function createBaseFee() { - return { - amount: [], - gasLimit: BigInt(0), - payer: "", - granter: "" - }; -} -exports.Fee = { - typeUrl: "/cosmos.tx.v1beta1.Fee", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.gasLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.gasLimit); - } - if (message.payer !== "") { - writer.uint32(26).string(message.payer); - } - if (message.granter !== "") { - writer.uint32(34).string(message.granter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.gasLimit = reader.uint64(); - break; - case 3: - message.payer = reader.string(); - break; - case 4: - message.granter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFee(); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); - message.payer = object.payer ?? ""; - message.granter = object.granter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseFee(); - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.gas_limit !== undefined && object.gas_limit !== null) { - message.gasLimit = BigInt(object.gas_limit); - } - if (object.payer !== undefined && object.payer !== null) { - message.payer = object.payer; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; - obj.payer = message.payer === "" ? undefined : message.payer; - obj.granter = message.granter === "" ? undefined : message.granter; - return obj; - }, - fromAminoMsg(object) { - return exports.Fee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Fee", - value: exports.Fee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Fee.decode(message.value); - }, - toProto(message) { - return exports.Fee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Fee", - value: exports.Fee.encode(message).finish() - }; - } -}; -function createBaseTip() { - return { - amount: [], - tipper: "" - }; -} -exports.Tip = { - typeUrl: "/cosmos.tx.v1beta1.Tip", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.tipper !== "") { - writer.uint32(18).string(message.tipper); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTip(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.tipper = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTip(); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.tipper = object.tipper ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTip(); - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.tipper !== undefined && object.tipper !== null) { - message.tipper = object.tipper; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.tipper = message.tipper === "" ? undefined : message.tipper; - return obj; - }, - fromAminoMsg(object) { - return exports.Tip.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Tip", - value: exports.Tip.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Tip.decode(message.value); - }, - toProto(message) { - return exports.Tip.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Tip", - value: exports.Tip.encode(message).finish() - }; - } -}; -function createBaseAuxSignerData() { - return { - address: "", - signDoc: undefined, - mode: 0, - sig: new Uint8Array() - }; -} -exports.AuxSignerData = { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.signDoc !== undefined) { - exports.SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); - } - if (message.mode !== 0) { - writer.uint32(24).int32(message.mode); - } - if (message.sig.length !== 0) { - writer.uint32(34).bytes(message.sig); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuxSignerData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.signDoc = exports.SignDocDirectAux.decode(reader, reader.uint32()); - break; - case 3: - message.mode = reader.int32(); - break; - case 4: - message.sig = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuxSignerData(); - message.address = object.address ?? ""; - message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? exports.SignDocDirectAux.fromPartial(object.signDoc) : undefined; - message.mode = object.mode ?? 0; - message.sig = object.sig ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAuxSignerData(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.sign_doc !== undefined && object.sign_doc !== null) { - message.signDoc = exports.SignDocDirectAux.fromAmino(object.sign_doc); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.sig !== undefined && object.sig !== null) { - message.sig = (0, helpers_1.bytesFromBase64)(object.sig); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.sign_doc = message.signDoc ? exports.SignDocDirectAux.toAmino(message.signDoc) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.sig = message.sig ? (0, helpers_1.base64FromBytes)(message.sig) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AuxSignerData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuxSignerData", - value: exports.AuxSignerData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.AuxSignerData.decode(message.value); - }, - toProto(message) { - return exports.AuxSignerData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - value: exports.AuxSignerData.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts deleted file mode 100644 index a332abd2..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.d.ts +++ /dev/null @@ -1,468 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType, ModuleVersion, ModuleVersionAmino, ModuleVersionSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequest { -} -export interface QueryCurrentPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestAmino { -} -export interface QueryCurrentPlanRequestAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanRequest"; - value: QueryCurrentPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanRequestSDKType { -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponse { - /** plan is the current upgrade plan. */ - plan?: Plan; -} -export interface QueryCurrentPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; - value: Uint8Array; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseAmino { - /** plan is the current upgrade plan. */ - plan?: PlanAmino; -} -export interface QueryCurrentPlanResponseAminoMsg { - type: "cosmos-sdk/QueryCurrentPlanResponse"; - value: QueryCurrentPlanResponseAmino; -} -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface QueryCurrentPlanResponseSDKType { - plan?: PlanSDKType; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequest { - /** name is the name of the applied plan to query for. */ - name: string; -} -export interface QueryAppliedPlanRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; - value: Uint8Array; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestAmino { - /** name is the name of the applied plan to query for. */ - name?: string; -} -export interface QueryAppliedPlanRequestAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanRequest"; - value: QueryAppliedPlanRequestAmino; -} -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanRequestSDKType { - name: string; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponse { - /** height is the block height at which the plan was applied. */ - height: bigint; -} -export interface QueryAppliedPlanResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; - value: Uint8Array; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseAmino { - /** height is the block height at which the plan was applied. */ - height?: string; -} -export interface QueryAppliedPlanResponseAminoMsg { - type: "cosmos-sdk/QueryAppliedPlanResponse"; - value: QueryAppliedPlanResponseAmino; -} -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface QueryAppliedPlanResponseSDKType { - height: bigint; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequest { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - lastHeight: bigint; -} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestAmino { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - */ - last_height?: string; -} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateRequestSDKType { - last_height: bigint; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponse { - /** Since: cosmos-sdk 0.43 */ - upgradedConsensusState: Uint8Array; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Since: cosmos-sdk 0.43 */ - upgraded_consensus_state?: string; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -/** @deprecated */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequest { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - moduleName: string; -} -export interface QueryModuleVersionsRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; - value: Uint8Array; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestAmino { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - */ - module_name?: string; -} -export interface QueryModuleVersionsRequestAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsRequest"; - value: QueryModuleVersionsRequestAmino; -} -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsRequestSDKType { - module_name: string; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponse { - /** module_versions is a list of module names with their consensus versions. */ - moduleVersions: ModuleVersion[]; -} -export interface QueryModuleVersionsResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; - value: Uint8Array; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseAmino { - /** module_versions is a list of module names with their consensus versions. */ - module_versions?: ModuleVersionAmino[]; -} -export interface QueryModuleVersionsResponseAminoMsg { - type: "cosmos-sdk/QueryModuleVersionsResponse"; - value: QueryModuleVersionsResponseAmino; -} -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - */ -export interface QueryModuleVersionsResponseSDKType { - module_versions: ModuleVersionSDKType[]; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequest { -} -export interface QueryAuthorityRequestProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; - value: Uint8Array; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestAmino { -} -export interface QueryAuthorityRequestAminoMsg { - type: "cosmos-sdk/QueryAuthorityRequest"; - value: QueryAuthorityRequestAmino; -} -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityRequestSDKType { -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponse { - address: string; -} -export interface QueryAuthorityResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; - value: Uint8Array; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseAmino { - address?: string; -} -export interface QueryAuthorityResponseAminoMsg { - type: "cosmos-sdk/QueryAuthorityResponse"; - value: QueryAuthorityResponseAmino; -} -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - */ -export interface QueryAuthorityResponseSDKType { - address: string; -} -export declare const QueryCurrentPlanRequest: { - typeUrl: string; - encode(_: QueryCurrentPlanRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest; - fromPartial(_: Partial): QueryCurrentPlanRequest; - fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest; - toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino; - fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest; - toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg; - fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest; - toProto(message: QueryCurrentPlanRequest): Uint8Array; - toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg; -}; -export declare const QueryCurrentPlanResponse: { - typeUrl: string; - encode(message: QueryCurrentPlanResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse; - fromPartial(object: Partial): QueryCurrentPlanResponse; - fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse; - toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino; - fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse; - toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg; - fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse; - toProto(message: QueryCurrentPlanResponse): Uint8Array; - toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg; -}; -export declare const QueryAppliedPlanRequest: { - typeUrl: string; - encode(message: QueryAppliedPlanRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest; - fromPartial(object: Partial): QueryAppliedPlanRequest; - fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest; - toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino; - fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest; - toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg; - fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest; - toProto(message: QueryAppliedPlanRequest): Uint8Array; - toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg; -}; -export declare const QueryAppliedPlanResponse: { - typeUrl: string; - encode(message: QueryAppliedPlanResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse; - fromPartial(object: Partial): QueryAppliedPlanResponse; - fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse; - toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino; - fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse; - toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg; - fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse; - toProto(message: QueryAppliedPlanResponse): Uint8Array; - toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg; -}; -export declare const QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; - fromPartial(object: Partial): QueryUpgradedConsensusStateRequest; - fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; - toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; -}; -export declare const QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; -}; -export declare const QueryModuleVersionsRequest: { - typeUrl: string; - encode(message: QueryModuleVersionsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest; - fromPartial(object: Partial): QueryModuleVersionsRequest; - fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest; - toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino; - fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest; - toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg; - fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest; - toProto(message: QueryModuleVersionsRequest): Uint8Array; - toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg; -}; -export declare const QueryModuleVersionsResponse: { - typeUrl: string; - encode(message: QueryModuleVersionsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse; - fromPartial(object: Partial): QueryModuleVersionsResponse; - fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse; - toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino; - fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse; - toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg; - fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse; - toProto(message: QueryModuleVersionsResponse): Uint8Array; - toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg; -}; -export declare const QueryAuthorityRequest: { - typeUrl: string; - encode(_: QueryAuthorityRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest; - fromPartial(_: Partial): QueryAuthorityRequest; - fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest; - toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino; - fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest; - toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg; - fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest; - toProto(message: QueryAuthorityRequest): Uint8Array; - toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg; -}; -export declare const QueryAuthorityResponse: { - typeUrl: string; - encode(message: QueryAuthorityResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse; - fromPartial(object: Partial): QueryAuthorityResponse; - fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse; - toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino; - fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse; - toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg; - fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse; - toProto(message: QueryAuthorityResponse): Uint8Array; - toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.js deleted file mode 100644 index b77f92b9..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.js +++ /dev/null @@ -1,674 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryAuthorityResponse = exports.QueryAuthorityRequest = exports.QueryModuleVersionsResponse = exports.QueryModuleVersionsRequest = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryAppliedPlanResponse = exports.QueryAppliedPlanRequest = exports.QueryCurrentPlanResponse = exports.QueryCurrentPlanRequest = void 0; -//@ts-nocheck -const upgrade_1 = require("./upgrade"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseQueryCurrentPlanRequest() { - return {}; -} -exports.QueryCurrentPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCurrentPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCurrentPlanRequest", - value: exports.QueryCurrentPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryCurrentPlanRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryCurrentPlanRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - value: exports.QueryCurrentPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCurrentPlanResponse() { - return { - plan: undefined - }; -} -exports.QueryCurrentPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.plan !== undefined) { - upgrade_1.Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCurrentPlanResponse(); - message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCurrentPlanResponse(); - if (object.plan !== undefined && object.plan !== null) { - message.plan = upgrade_1.Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCurrentPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCurrentPlanResponse", - value: exports.QueryCurrentPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryCurrentPlanResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryCurrentPlanResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - value: exports.QueryCurrentPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanRequest() { - return { - name: "" - }; -} -exports.QueryAppliedPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAppliedPlanRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAppliedPlanRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAppliedPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAppliedPlanRequest", - value: exports.QueryAppliedPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAppliedPlanRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAppliedPlanRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - value: exports.QueryAppliedPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanResponse() { - return { - height: BigInt(0) - }; -} -exports.QueryAppliedPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAppliedPlanResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAppliedPlanResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAppliedPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAppliedPlanResponse", - value: exports.QueryAppliedPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAppliedPlanResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAppliedPlanResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - value: exports.QueryAppliedPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest() { - return { - lastHeight: BigInt(0) - }; -} -exports.QueryUpgradedConsensusStateRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.lastHeight !== BigInt(0)) { - writer.uint32(8).int64(message.lastHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - if (object.last_height !== undefined && object.last_height !== null) { - message.lastHeight = BigInt(object.last_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: exports.QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - value: exports.QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse() { - return { - upgradedConsensusState: new Uint8Array() - }; -} -exports.QueryUpgradedConsensusStateResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.upgradedConsensusState.length !== 0) { - writer.uint32(18).bytes(message.upgradedConsensusState); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.upgradedConsensusState = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = (0, helpers_1.bytesFromBase64)(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? (0, helpers_1.base64FromBytes)(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: exports.QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - value: exports.QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsRequest() { - return { - moduleName: "" - }; -} -exports.QueryModuleVersionsRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.moduleName !== "") { - writer.uint32(10).string(message.moduleName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleVersionsRequest(); - message.moduleName = object.moduleName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleVersionsRequest(); - if (object.module_name !== undefined && object.module_name !== null) { - message.moduleName = object.module_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.module_name = message.moduleName === "" ? undefined : message.moduleName; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleVersionsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleVersionsRequest", - value: exports.QueryModuleVersionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleVersionsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleVersionsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - value: exports.QueryModuleVersionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsResponse() { - return { - moduleVersions: [] - }; -} -exports.QueryModuleVersionsResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.moduleVersions) { - upgrade_1.ModuleVersion.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleVersions.push(upgrade_1.ModuleVersion.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.moduleVersions?.map(e => upgrade_1.ModuleVersion.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.module_versions?.map(e => upgrade_1.ModuleVersion.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.moduleVersions) { - obj.module_versions = message.moduleVersions.map(e => e ? upgrade_1.ModuleVersion.toAmino(e) : undefined); - } - else { - obj.module_versions = message.moduleVersions; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryModuleVersionsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleVersionsResponse", - value: exports.QueryModuleVersionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryModuleVersionsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryModuleVersionsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - value: exports.QueryModuleVersionsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityRequest() { - return {}; -} -exports.QueryAuthorityRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAuthorityRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAuthorityRequest", - value: exports.QueryAuthorityRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAuthorityRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAuthorityRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - value: exports.QueryAuthorityRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityResponse() { - return { - address: "" - }; -} -exports.QueryAuthorityResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAuthorityResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAuthorityResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAuthorityResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAuthorityResponse", - value: exports.QueryAuthorityResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryAuthorityResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAuthorityResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - value: exports.QueryAuthorityResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts deleted file mode 100644 index c76598bb..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - currentPlan(_params?: QueryCurrentPlanRequest): Promise; - appliedPlan(params: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(params: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(params: QueryModuleVersionsRequest): Promise; - authority(_params?: QueryAuthorityRequest): Promise; -} diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js deleted file mode 100644 index 053f35ce..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.lcd.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - /* CurrentPlan queries the current upgrade plan. */ - async currentPlan(_params = {}) { - const endpoint = `cosmos/upgrade/v1beta1/current_plan`; - return await this.req.get(endpoint); - } - /* AppliedPlan queries a previously applied upgrade plan by its name. */ - async appliedPlan(params) { - const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries the consensus state that will serve - as a trusted kernel for the next version of this chain. It will only be - stored at the last height of this chain. - UpgradedConsensusState RPC not supported with legacy querier - This rpc is deprecated now that IBC has its own replacement - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ - async upgradedConsensusState(params) { - const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; - return await this.req.get(endpoint); - } - /* ModuleVersions queries the list of module versions from state. - - Since: cosmos-sdk 0.43 */ - async moduleVersions(params) { - const options = { - params: {} - }; - if (typeof params?.moduleName !== "undefined") { - options.params.module_name = params.moduleName; - } - const endpoint = `cosmos/upgrade/v1beta1/module_versions`; - return await this.req.get(endpoint, options); - } - /* Returns the account with authority to conduct upgrades - - Since: cosmos-sdk 0.46 */ - async authority(_params = {}) { - const endpoint = `cosmos/upgrade/v1beta1/authority`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts deleted file mode 100644 index aaf18b79..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; -/** Query defines the gRPC upgrade querier service. */ -export interface Query { - /** CurrentPlan queries the current upgrade plan. */ - currentPlan(request?: QueryCurrentPlanRequest): Promise; - /** AppliedPlan queries a previously applied upgrade plan by its name. */ - appliedPlan(request: QueryAppliedPlanRequest): Promise; - /** - * UpgradedConsensusState queries the consensus state that will serve - * as a trusted kernel for the next version of this chain. It will only be - * stored at the last height of this chain. - * UpgradedConsensusState RPC not supported with legacy querier - * This rpc is deprecated now that IBC has its own replacement - * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - */ - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - /** - * ModuleVersions queries the list of module versions from state. - * - * Since: cosmos-sdk 0.43 - */ - moduleVersions(request: QueryModuleVersionsRequest): Promise; - /** - * Returns the account with authority to conduct upgrades - * - * Since: cosmos-sdk 0.46 - */ - authority(request?: QueryAuthorityRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - currentPlan(request?: QueryCurrentPlanRequest): Promise; - appliedPlan(request: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: QueryModuleVersionsRequest): Promise; - authority(request?: QueryAuthorityRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - currentPlan(request?: QueryCurrentPlanRequest): Promise; - appliedPlan(request: QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: QueryModuleVersionsRequest): Promise; - authority(request?: QueryAuthorityRequest): Promise; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js b/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js deleted file mode 100644 index 3e99083f..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - currentPlan(request = {}) { - const data = query_1.QueryCurrentPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); - return promise.then(data => query_1.QueryCurrentPlanResponse.decode(new binary_1.BinaryReader(data))); - } - appliedPlan(request) { - const data = query_1.QueryAppliedPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); - return promise.then(data => query_1.QueryAppliedPlanResponse.decode(new binary_1.BinaryReader(data))); - } - upgradedConsensusState(request) { - const data = query_1.QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); - return promise.then(data => query_1.QueryUpgradedConsensusStateResponse.decode(new binary_1.BinaryReader(data))); - } - moduleVersions(request) { - const data = query_1.QueryModuleVersionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); - return promise.then(data => query_1.QueryModuleVersionsResponse.decode(new binary_1.BinaryReader(data))); - } - authority(request = {}) { - const data = query_1.QueryAuthorityRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); - return promise.then(data => query_1.QueryAuthorityResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - currentPlan(request) { - return queryService.currentPlan(request); - }, - appliedPlan(request) { - return queryService.appliedPlan(request); - }, - upgradedConsensusState(request) { - return queryService.upgradedConsensusState(request); - }, - moduleVersions(request) { - return queryService.moduleVersions(request); - }, - authority(request) { - return queryService.authority(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts deleted file mode 100644 index a4777694..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export declare const AminoConverter: { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: string; - toAmino: (message: MsgSoftwareUpgrade) => import("./tx").MsgSoftwareUpgradeAmino; - fromAmino: (object: import("./tx").MsgSoftwareUpgradeAmino) => MsgSoftwareUpgrade; - }; - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: string; - toAmino: (message: MsgCancelUpgrade) => import("./tx").MsgCancelUpgradeAmino; - fromAmino: (object: import("./tx").MsgCancelUpgradeAmino) => MsgCancelUpgrade; - }; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js deleted file mode 100644 index 941fec83..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.amino.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: "cosmos-sdk/MsgSoftwareUpgrade", - toAmino: tx_1.MsgSoftwareUpgrade.toAmino, - fromAmino: tx_1.MsgSoftwareUpgrade.fromAmino - }, - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: "cosmos-sdk/MsgCancelUpgrade", - toAmino: tx_1.MsgCancelUpgrade.toAmino, - fromAmino: tx_1.MsgCancelUpgrade.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts deleted file mode 100644 index 2aa019df..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.d.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { Plan, PlanAmino, PlanSDKType } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgrade { - /** authority is the address of the governance account. */ - authority: string; - /** plan is the upgrade plan. */ - plan: Plan; -} -export interface MsgSoftwareUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** plan is the upgrade plan. */ - plan?: PlanAmino; -} -export interface MsgSoftwareUpgradeAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgrade"; - value: MsgSoftwareUpgradeAmino; -} -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeSDKType { - authority: string; - plan: PlanSDKType; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponse { -} -export interface MsgSoftwareUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseAmino { -} -export interface MsgSoftwareUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse"; - value: MsgSoftwareUpgradeResponseAmino; -} -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgSoftwareUpgradeResponseSDKType { -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgrade { - /** authority is the address of the governance account. */ - authority: string; -} -export interface MsgCancelUpgradeProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - value: Uint8Array; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeAmino { - /** authority is the address of the governance account. */ - authority?: string; -} -export interface MsgCancelUpgradeAminoMsg { - type: "cosmos-sdk/MsgCancelUpgrade"; - value: MsgCancelUpgradeAmino; -} -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeSDKType { - authority: string; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponse { -} -export interface MsgCancelUpgradeResponseProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - value: Uint8Array; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseAmino { -} -export interface MsgCancelUpgradeResponseAminoMsg { - type: "cosmos-sdk/MsgCancelUpgradeResponse"; - value: MsgCancelUpgradeResponseAmino; -} -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCancelUpgradeResponseSDKType { -} -export declare const MsgSoftwareUpgrade: { - typeUrl: string; - encode(message: MsgSoftwareUpgrade, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgrade; - fromPartial(object: Partial): MsgSoftwareUpgrade; - fromAmino(object: MsgSoftwareUpgradeAmino): MsgSoftwareUpgrade; - toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino; - fromAminoMsg(object: MsgSoftwareUpgradeAminoMsg): MsgSoftwareUpgrade; - toAminoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAminoMsg; - fromProtoMsg(message: MsgSoftwareUpgradeProtoMsg): MsgSoftwareUpgrade; - toProto(message: MsgSoftwareUpgrade): Uint8Array; - toProtoMsg(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeProtoMsg; -}; -export declare const MsgSoftwareUpgradeResponse: { - typeUrl: string; - encode(_: MsgSoftwareUpgradeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSoftwareUpgradeResponse; - fromPartial(_: Partial): MsgSoftwareUpgradeResponse; - fromAmino(_: MsgSoftwareUpgradeResponseAmino): MsgSoftwareUpgradeResponse; - toAmino(_: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAmino; - fromAminoMsg(object: MsgSoftwareUpgradeResponseAminoMsg): MsgSoftwareUpgradeResponse; - toAminoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseAminoMsg; - fromProtoMsg(message: MsgSoftwareUpgradeResponseProtoMsg): MsgSoftwareUpgradeResponse; - toProto(message: MsgSoftwareUpgradeResponse): Uint8Array; - toProtoMsg(message: MsgSoftwareUpgradeResponse): MsgSoftwareUpgradeResponseProtoMsg; -}; -export declare const MsgCancelUpgrade: { - typeUrl: string; - encode(message: MsgCancelUpgrade, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgrade; - fromPartial(object: Partial): MsgCancelUpgrade; - fromAmino(object: MsgCancelUpgradeAmino): MsgCancelUpgrade; - toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino; - fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade; - toAminoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeAminoMsg; - fromProtoMsg(message: MsgCancelUpgradeProtoMsg): MsgCancelUpgrade; - toProto(message: MsgCancelUpgrade): Uint8Array; - toProtoMsg(message: MsgCancelUpgrade): MsgCancelUpgradeProtoMsg; -}; -export declare const MsgCancelUpgradeResponse: { - typeUrl: string; - encode(_: MsgCancelUpgradeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUpgradeResponse; - fromPartial(_: Partial): MsgCancelUpgradeResponse; - fromAmino(_: MsgCancelUpgradeResponseAmino): MsgCancelUpgradeResponse; - toAmino(_: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAmino; - fromAminoMsg(object: MsgCancelUpgradeResponseAminoMsg): MsgCancelUpgradeResponse; - toAminoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseAminoMsg; - fromProtoMsg(message: MsgCancelUpgradeResponseProtoMsg): MsgCancelUpgradeResponse; - toProto(message: MsgCancelUpgradeResponse): Uint8Array; - toProtoMsg(message: MsgCancelUpgradeResponse): MsgCancelUpgradeResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.js deleted file mode 100644 index 410ebc48..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.js +++ /dev/null @@ -1,268 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgCancelUpgradeResponse = exports.MsgCancelUpgrade = exports.MsgSoftwareUpgradeResponse = exports.MsgSoftwareUpgrade = void 0; -//@ts-nocheck -const upgrade_1 = require("./upgrade"); -const binary_1 = require("../../../binary"); -function createBaseMsgSoftwareUpgrade() { - return { - authority: "", - plan: upgrade_1.Plan.fromPartial({}) - }; -} -exports.MsgSoftwareUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.plan !== undefined) { - upgrade_1.Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSoftwareUpgrade(); - message.authority = object.authority ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSoftwareUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = upgrade_1.Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSoftwareUpgrade.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSoftwareUpgrade", - value: exports.MsgSoftwareUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSoftwareUpgrade.decode(message.value); - }, - toProto(message) { - return exports.MsgSoftwareUpgrade.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: exports.MsgSoftwareUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgSoftwareUpgradeResponse() { - return {}; -} -exports.MsgSoftwareUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSoftwareUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse", - value: exports.MsgSoftwareUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSoftwareUpgradeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSoftwareUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - value: exports.MsgSoftwareUpgradeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgrade() { - return { - authority: "" - }; -} -exports.MsgCancelUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelUpgrade(); - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelUpgrade.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUpgrade", - value: exports.MsgCancelUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancelUpgrade.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelUpgrade.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: exports.MsgCancelUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgradeResponse() { - return {}; -} -exports.MsgCancelUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUpgradeResponse", - value: exports.MsgCancelUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancelUpgradeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - value: exports.MsgCancelUpgradeResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts deleted file mode 100644 index 3ad0f716..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: MsgSoftwareUpgrade; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: MsgCancelUpgrade; - }; - }; - fromPartial: { - softwareUpgrade(value: MsgSoftwareUpgrade): { - typeUrl: string; - value: MsgSoftwareUpgrade; - }; - cancelUpgrade(value: MsgCancelUpgrade): { - typeUrl: string; - value: MsgCancelUpgrade; - }; - }; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js deleted file mode 100644 index 84c2782e..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.registry.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", tx_1.MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", tx_1.MsgCancelUpgrade]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: tx_1.MsgSoftwareUpgrade.encode(value).finish() - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: tx_1.MsgCancelUpgrade.encode(value).finish() - }; - } - }, - withTypeUrl: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value - }; - } - }, - fromPartial: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: tx_1.MsgSoftwareUpgrade.fromPartial(value) - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: tx_1.MsgCancelUpgrade.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 66d0b9a7..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; -/** Msg defines the upgrade Msg service. */ -export interface Msg { - /** - * SoftwareUpgrade is a governance operation for initiating a software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - softwareUpgrade(request: MsgSoftwareUpgrade): Promise; - /** - * CancelUpgrade is a governance operation for cancelling a previously - * approvid software upgrade. - * - * Since: cosmos-sdk 0.46 - */ - cancelUpgrade(request: MsgCancelUpgrade): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - softwareUpgrade(request: MsgSoftwareUpgrade): Promise; - cancelUpgrade(request: MsgCancelUpgrade): Promise; -} diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 7700c5dc..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.softwareUpgrade = this.softwareUpgrade.bind(this); - this.cancelUpgrade = this.cancelUpgrade.bind(this); - } - softwareUpgrade(request) { - const data = tx_1.MsgSoftwareUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); - return promise.then(data => tx_1.MsgSoftwareUpgradeResponse.decode(new binary_1.BinaryReader(data))); - } - cancelUpgrade(request) { - const data = tx_1.MsgCancelUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); - return promise.then(data => tx_1.MsgCancelUpgradeResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts deleted file mode 100644 index 0355d405..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +++ /dev/null @@ -1,274 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time: Date; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height: bigint; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgradedClientState?: Any; -} -export interface PlanProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.Plan"; - value: Uint8Array; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanAmino { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - */ - /** @deprecated */ - upgraded_client_state?: AnyAmino; -} -export interface PlanAminoMsg { - type: "cosmos-sdk/Plan"; - value: PlanAmino; -} -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface PlanSDKType { - name: string; - /** @deprecated */ - time: Date; - height: bigint; - info: string; - /** @deprecated */ - upgraded_client_state?: AnySDKType; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: Plan; -} -export interface SoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; -} -export interface SoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/SoftwareUpgradeProposal"; - value: SoftwareUpgradeProposalAmino; -} -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - */ -/** @deprecated */ -export interface SoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposal { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -export interface CancelSoftwareUpgradeProposalProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - value: Uint8Array; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalAmino { - title?: string; - description?: string; -} -export interface CancelSoftwareUpgradeProposalAminoMsg { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal"; - value: CancelSoftwareUpgradeProposalAmino; -} -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - */ -/** @deprecated */ -export interface CancelSoftwareUpgradeProposalSDKType { - $typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - title: string; - description: string; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersion { - /** name of the app module */ - name: string; - /** consensus version of the app module */ - version: bigint; -} -export interface ModuleVersionProtoMsg { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; - value: Uint8Array; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionAmino { - /** name of the app module */ - name?: string; - /** consensus version of the app module */ - version?: string; -} -export interface ModuleVersionAminoMsg { - type: "cosmos-sdk/ModuleVersion"; - value: ModuleVersionAmino; -} -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - */ -export interface ModuleVersionSDKType { - name: string; - version: bigint; -} -export declare const Plan: { - typeUrl: string; - encode(message: Plan, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Plan; - fromPartial(object: Partial): Plan; - fromAmino(object: PlanAmino): Plan; - toAmino(message: Plan): PlanAmino; - fromAminoMsg(object: PlanAminoMsg): Plan; - toAminoMsg(message: Plan): PlanAminoMsg; - fromProtoMsg(message: PlanProtoMsg): Plan; - toProto(message: Plan): Uint8Array; - toProtoMsg(message: Plan): PlanProtoMsg; -}; -export declare const SoftwareUpgradeProposal: { - typeUrl: string; - encode(message: SoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal; - fromPartial(object: Partial): SoftwareUpgradeProposal; - fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal; - toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino; - fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal; - toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal; - toProto(message: SoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg; -}; -export declare const CancelSoftwareUpgradeProposal: { - typeUrl: string; - encode(message: CancelSoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal; - fromPartial(object: Partial): CancelSoftwareUpgradeProposal; - fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal; - toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino; - fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal; - toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg; - fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal; - toProto(message: CancelSoftwareUpgradeProposal): Uint8Array; - toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg; -}; -export declare const ModuleVersion: { - typeUrl: string; - encode(message: ModuleVersion, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion; - fromPartial(object: Partial): ModuleVersion; - fromAmino(object: ModuleVersionAmino): ModuleVersion; - toAmino(message: ModuleVersion): ModuleVersionAmino; - fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion; - toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg; - fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion; - toProto(message: ModuleVersion): Uint8Array; - toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg; -}; diff --git a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js b/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js deleted file mode 100644 index 5f3bf083..00000000 --- a/packages/api/dist/cosmos/upgrade/v1beta1/upgrade.js +++ /dev/null @@ -1,382 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModuleVersion = exports.CancelSoftwareUpgradeProposal = exports.SoftwareUpgradeProposal = exports.Plan = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBasePlan() { - return { - name: "", - time: new Date(), - height: BigInt(0), - info: "", - upgradedClientState: undefined - }; -} -exports.Plan = { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.upgradedClientState !== undefined) { - any_1.Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePlan(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePlan(); - message.name = object.name ?? ""; - message.time = object.time ?? undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.info = object.info ?? ""; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePlan(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.info = message.info === "" ? undefined : message.info; - obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Plan.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Plan", - value: exports.Plan.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Plan.decode(message.value); - }, - toProto(message) { - return exports.Plan.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - value: exports.Plan.encode(message).finish() - }; - } -}; -function createBaseSoftwareUpgradeProposal() { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - title: "", - description: "", - plan: exports.Plan.fromPartial({}) - }; -} -exports.SoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - exports.Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = exports.Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? exports.Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = exports.Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? exports.Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SoftwareUpgradeProposal", - value: exports.SoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.SoftwareUpgradeProposal.decode(message.value); - }, - toProto(message) { - return exports.SoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - value: exports.SoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseCancelSoftwareUpgradeProposal() { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - title: "", - description: "" - }; -} -exports.CancelSoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCancelSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCancelSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCancelSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return exports.CancelSoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal", - value: exports.CancelSoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.CancelSoftwareUpgradeProposal.decode(message.value); - }, - toProto(message) { - return exports.CancelSoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - value: exports.CancelSoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseModuleVersion() { - return { - name: "", - version: BigInt(0) - }; -} -exports.ModuleVersion = { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.version !== BigInt(0)) { - writer.uint32(16).uint64(message.version); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.version = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleVersion(); - message.name = object.name ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseModuleVersion(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ModuleVersion.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleVersion", - value: exports.ModuleVersion.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ModuleVersion.decode(message.value); - }, - toProto(message) { - return exports.ModuleVersion.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - value: exports.ModuleVersion.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts deleted file mode 100644 index 136d9688..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export declare const AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: (message: MsgCreateVestingAccount) => import("./tx").MsgCreateVestingAccountAmino; - fromAmino: (object: import("./tx").MsgCreateVestingAccountAmino) => MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: (message: MsgCreatePermanentLockedAccount) => import("./tx").MsgCreatePermanentLockedAccountAmino; - fromAmino: (object: import("./tx").MsgCreatePermanentLockedAccountAmino) => MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: (message: MsgCreatePeriodicVestingAccount) => import("./tx").MsgCreatePeriodicVestingAccountAmino; - fromAmino: (object: import("./tx").MsgCreatePeriodicVestingAccountAmino) => MsgCreatePeriodicVestingAccount; - }; -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js deleted file mode 100644 index c7fc542a..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.amino.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: "cosmos-sdk/MsgCreateVestingAccount", - toAmino: tx_1.MsgCreateVestingAccount.toAmino, - fromAmino: tx_1.MsgCreateVestingAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", - toAmino: tx_1.MsgCreatePermanentLockedAccount.toAmino, - fromAmino: tx_1.MsgCreatePermanentLockedAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - toAmino: tx_1.MsgCreatePeriodicVestingAccount.toAmino, - fromAmino: tx_1.MsgCreatePeriodicVestingAccount.fromAmino - } -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts deleted file mode 100644 index 603f71b2..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.d.ts +++ /dev/null @@ -1,285 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodAmino, PeriodSDKType } from "./vesting"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: bigint; - delayed: boolean; -} -export interface MsgCreateVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; - end_time?: string; - delayed?: boolean; -} -export interface MsgCreateVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: MsgCreateVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: bigint; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse { -} -export interface MsgCreateVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - value: Uint8Array; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseAmino { -} -export interface MsgCreateVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccountResponse"; - value: MsgCreateVestingAccountResponseAmino; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType { -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -export interface MsgCreatePermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountAmino { - from_address?: string; - to_address?: string; - amount?: CoinAmino[]; -} -export interface MsgCreatePermanentLockedAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: MsgCreatePermanentLockedAccountAmino; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponse { -} -export interface MsgCreatePermanentLockedAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseAmino { -} -export interface MsgCreatePermanentLockedAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse"; - value: MsgCreatePermanentLockedAccountResponseAmino; -} -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePermanentLockedAccountResponseSDKType { -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface MsgCreatePeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountAmino { - from_address?: string; - to_address?: string; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface MsgCreatePeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: MsgCreatePeriodicVestingAccountAmino; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponse { -} -export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - value: Uint8Array; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseAmino { -} -export interface MsgCreatePeriodicVestingAccountResponseAminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse"; - value: MsgCreatePeriodicVestingAccountResponseAmino; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType { -} -export declare const MsgCreateVestingAccount: { - typeUrl: string; - encode(message: MsgCreateVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccount; - fromPartial(object: Partial): MsgCreateVestingAccount; - fromAmino(object: MsgCreateVestingAccountAmino): MsgCreateVestingAccount; - toAmino(message: MsgCreateVestingAccount): MsgCreateVestingAccountAmino; - fromAminoMsg(object: MsgCreateVestingAccountAminoMsg): MsgCreateVestingAccount; - toAminoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountAminoMsg; - fromProtoMsg(message: MsgCreateVestingAccountProtoMsg): MsgCreateVestingAccount; - toProto(message: MsgCreateVestingAccount): Uint8Array; - toProtoMsg(message: MsgCreateVestingAccount): MsgCreateVestingAccountProtoMsg; -}; -export declare const MsgCreateVestingAccountResponse: { - typeUrl: string; - encode(_: MsgCreateVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; - fromPartial(_: Partial): MsgCreateVestingAccountResponse; - fromAmino(_: MsgCreateVestingAccountResponseAmino): MsgCreateVestingAccountResponse; - toAmino(_: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAmino; - fromAminoMsg(object: MsgCreateVestingAccountResponseAminoMsg): MsgCreateVestingAccountResponse; - toAminoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreateVestingAccountResponseProtoMsg): MsgCreateVestingAccountResponse; - toProto(message: MsgCreateVestingAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreateVestingAccountResponse): MsgCreateVestingAccountResponseProtoMsg; -}; -export declare const MsgCreatePermanentLockedAccount: { - typeUrl: string; - encode(message: MsgCreatePermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; - fromPartial(object: Partial): MsgCreatePermanentLockedAccount; - fromAmino(object: MsgCreatePermanentLockedAccountAmino): MsgCreatePermanentLockedAccount; - toAmino(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAmino; - fromAminoMsg(object: MsgCreatePermanentLockedAccountAminoMsg): MsgCreatePermanentLockedAccount; - toAminoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoMsg; - fromProtoMsg(message: MsgCreatePermanentLockedAccountProtoMsg): MsgCreatePermanentLockedAccount; - toProto(message: MsgCreatePermanentLockedAccount): Uint8Array; - toProtoMsg(message: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountProtoMsg; -}; -export declare const MsgCreatePermanentLockedAccountResponse: { - typeUrl: string; - encode(_: MsgCreatePermanentLockedAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; - fromPartial(_: Partial): MsgCreatePermanentLockedAccountResponse; - fromAmino(_: MsgCreatePermanentLockedAccountResponseAmino): MsgCreatePermanentLockedAccountResponse; - toAmino(_: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAmino; - fromAminoMsg(object: MsgCreatePermanentLockedAccountResponseAminoMsg): MsgCreatePermanentLockedAccountResponse; - toAminoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreatePermanentLockedAccountResponseProtoMsg): MsgCreatePermanentLockedAccountResponse; - toProto(message: MsgCreatePermanentLockedAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreatePermanentLockedAccountResponse): MsgCreatePermanentLockedAccountResponseProtoMsg; -}; -export declare const MsgCreatePeriodicVestingAccount: { - typeUrl: string; - encode(message: MsgCreatePeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; - fromPartial(object: Partial): MsgCreatePeriodicVestingAccount; - fromAmino(object: MsgCreatePeriodicVestingAccountAmino): MsgCreatePeriodicVestingAccount; - toAmino(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAmino; - fromAminoMsg(object: MsgCreatePeriodicVestingAccountAminoMsg): MsgCreatePeriodicVestingAccount; - toAminoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoMsg; - fromProtoMsg(message: MsgCreatePeriodicVestingAccountProtoMsg): MsgCreatePeriodicVestingAccount; - toProto(message: MsgCreatePeriodicVestingAccount): Uint8Array; - toProtoMsg(message: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountProtoMsg; -}; -export declare const MsgCreatePeriodicVestingAccountResponse: { - typeUrl: string; - encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; - fromPartial(_: Partial): MsgCreatePeriodicVestingAccountResponse; - fromAmino(_: MsgCreatePeriodicVestingAccountResponseAmino): MsgCreatePeriodicVestingAccountResponse; - toAmino(_: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAmino; - fromAminoMsg(object: MsgCreatePeriodicVestingAccountResponseAminoMsg): MsgCreatePeriodicVestingAccountResponse; - toAminoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseAminoMsg; - fromProtoMsg(message: MsgCreatePeriodicVestingAccountResponseProtoMsg): MsgCreatePeriodicVestingAccountResponse; - toProto(message: MsgCreatePeriodicVestingAccountResponse): Uint8Array; - toProtoMsg(message: MsgCreatePeriodicVestingAccountResponse): MsgCreatePeriodicVestingAccountResponseProtoMsg; -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.js deleted file mode 100644 index cfa5dbad..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.js +++ /dev/null @@ -1,499 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgCreatePeriodicVestingAccountResponse = exports.MsgCreatePeriodicVestingAccount = exports.MsgCreatePermanentLockedAccountResponse = exports.MsgCreatePermanentLockedAccount = exports.MsgCreateVestingAccountResponse = exports.MsgCreateVestingAccount = void 0; -//@ts-nocheck -const coin_1 = require("../../base/v1beta1/coin"); -const vesting_1 = require("./vesting"); -const binary_1 = require("../../../binary"); -function createBaseMsgCreateVestingAccount() { - return { - fromAddress: "", - toAddress: "", - amount: [], - endTime: BigInt(0), - delayed: false - }; -} -exports.MsgCreateVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(32).int64(message.endTime); - } - if (message.delayed === true) { - writer.uint32(40).bool(message.delayed); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 4: - message.endTime = reader.int64(); - break; - case 5: - message.delayed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - message.delayed = object.delayed ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - if (object.delayed !== undefined && object.delayed !== null) { - message.delayed = object.delayed; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - obj.delayed = message.delayed === false ? undefined : message.delayed; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateVestingAccount", - value: exports.MsgCreateVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: exports.MsgCreateVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreateVestingAccountResponse() { - return {}; -} -exports.MsgCreateVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateVestingAccountResponse", - value: exports.MsgCreateVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateVestingAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - value: exports.MsgCreateVestingAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccount() { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -exports.MsgCreatePermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreatePermanentLockedAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreatePermanentLockedAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreatePermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount", - value: exports.MsgCreatePermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreatePermanentLockedAccount.decode(message.value); - }, - toProto(message) { - return exports.MsgCreatePermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: exports.MsgCreatePermanentLockedAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccountResponse() { - return {}; -} -exports.MsgCreatePermanentLockedAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", - value: exports.MsgCreatePermanentLockedAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreatePermanentLockedAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreatePermanentLockedAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - value: exports.MsgCreatePermanentLockedAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccount() { - return { - fromAddress: "", - toAddress: "", - startTime: BigInt(0), - vestingPeriods: [] - }; -} -exports.MsgCreatePeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(24).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - vesting_1.Period.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.startTime = reader.int64(); - break; - case 4: - message.vestingPeriods.push(vesting_1.Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreatePeriodicVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => vesting_1.Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreatePeriodicVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => vesting_1.Period.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? vesting_1.Period.toAmino(e) : undefined); - } - else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreatePeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - value: exports.MsgCreatePeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreatePeriodicVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.MsgCreatePeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: exports.MsgCreatePeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccountResponse() { - return {}; -} -exports.MsgCreatePeriodicVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", - value: exports.MsgCreatePeriodicVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreatePeriodicVestingAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - value: exports.MsgCreatePeriodicVestingAccountResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts deleted file mode 100644 index 982a5c6a..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; - fromPartial: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js deleted file mode 100644 index c51acfd7..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.registry.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", tx_1.MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", tx_1.MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", tx_1.MsgCreatePeriodicVestingAccount]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: tx_1.MsgCreateVestingAccount.encode(value).finish() - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: tx_1.MsgCreatePermanentLockedAccount.encode(value).finish() - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: tx_1.MsgCreatePeriodicVestingAccount.encode(value).finish() - }; - } - }, - withTypeUrl: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value - }; - } - }, - fromPartial: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: tx_1.MsgCreateVestingAccount.fromPartial(value) - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: tx_1.MsgCreatePermanentLockedAccount.fromPartial(value) - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: tx_1.MsgCreatePeriodicVestingAccount.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 53bd60d0..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; -/** Msg defines the bank Msg service. */ -export interface Msg { - /** - * CreateVestingAccount defines a method that enables creating a vesting - * account. - */ - createVestingAccount(request: MsgCreateVestingAccount): Promise; - /** - * CreatePermanentLockedAccount defines a method that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - */ - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - /** - * CreatePeriodicVestingAccount defines a method that enables creating a - * periodic vesting account. - * - * Since: cosmos-sdk 0.46 - */ - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createVestingAccount(request: MsgCreateVestingAccount): Promise; - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} diff --git a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js b/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js deleted file mode 100644 index e3928f47..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createVestingAccount = this.createVestingAccount.bind(this); - this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); - this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); - } - createVestingAccount(request) { - const data = tx_1.MsgCreateVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); - return promise.then(data => tx_1.MsgCreateVestingAccountResponse.decode(new binary_1.BinaryReader(data))); - } - createPermanentLockedAccount(request) { - const data = tx_1.MsgCreatePermanentLockedAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); - return promise.then(data => tx_1.MsgCreatePermanentLockedAccountResponse.decode(new binary_1.BinaryReader(data))); - } - createPeriodicVestingAccount(request) { - const data = tx_1.MsgCreatePeriodicVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); - return promise.then(data => tx_1.MsgCreatePeriodicVestingAccountResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts b/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts deleted file mode 100644 index f3add67f..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/vesting.d.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { BaseAccount, BaseAccountAmino, BaseAccountSDKType } from "../../auth/v1beta1/auth"; -import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount?: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: bigint; -} -export interface BaseVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; - value: Uint8Array; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountAmino { - base_account?: BaseAccountAmino; - original_vesting?: CoinAmino[]; - delegated_free?: CoinAmino[]; - delegated_vesting?: CoinAmino[]; - end_time?: string; -} -export interface BaseVestingAccountAminoMsg { - type: "cosmos-sdk/BaseVestingAccount"; - value: BaseVestingAccountAmino; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account?: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: bigint; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; -} -export interface ContinuousVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; - value: Uint8Array; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; -} -export interface ContinuousVestingAccountAminoMsg { - type: "cosmos-sdk/ContinuousVestingAccount"; - value: ContinuousVestingAccountAmino; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface DelayedVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; - value: Uint8Array; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface DelayedVestingAccountAminoMsg { - type: "cosmos-sdk/DelayedVestingAccount"; - value: DelayedVestingAccountAmino; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: bigint; - amount: Coin[]; -} -export interface PeriodProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.Period"; - value: Uint8Array; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodAmino { - length?: string; - amount?: CoinAmino[]; -} -export interface PeriodAminoMsg { - type: "cosmos-sdk/Period"; - value: PeriodAmino; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: bigint; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount?: BaseVestingAccount; - startTime: bigint; - vestingPeriods: Period[]; -} -export interface PeriodicVestingAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; - value: Uint8Array; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; - start_time?: string; - vesting_periods?: PeriodAmino[]; -} -export interface PeriodicVestingAccountAminoMsg { - type: "cosmos-sdk/PeriodicVestingAccount"; - value: PeriodicVestingAccountAmino; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; - start_time: bigint; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount?: BaseVestingAccount; -} -export interface PermanentLockedAccountProtoMsg { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; - value: Uint8Array; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountAmino { - base_vesting_account?: BaseVestingAccountAmino; -} -export interface PermanentLockedAccountAminoMsg { - type: "cosmos-sdk/PermanentLockedAccount"; - value: PermanentLockedAccountAmino; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account?: BaseVestingAccountSDKType; -} -export declare const BaseVestingAccount: { - typeUrl: string; - encode(message: BaseVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount; - fromPartial(object: Partial): BaseVestingAccount; - fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount; - toAmino(message: BaseVestingAccount): BaseVestingAccountAmino; - fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount; - toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg; - fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount; - toProto(message: BaseVestingAccount): Uint8Array; - toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg; -}; -export declare const ContinuousVestingAccount: { - typeUrl: string; - encode(message: ContinuousVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount; - fromPartial(object: Partial): ContinuousVestingAccount; - fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount; - toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino; - fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount; - toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg; - fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount; - toProto(message: ContinuousVestingAccount): Uint8Array; - toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg; -}; -export declare const DelayedVestingAccount: { - typeUrl: string; - encode(message: DelayedVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount; - fromPartial(object: Partial): DelayedVestingAccount; - fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount; - toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino; - fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount; - toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg; - fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount; - toProto(message: DelayedVestingAccount): Uint8Array; - toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg; -}; -export declare const Period: { - typeUrl: string; - encode(message: Period, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Period; - fromPartial(object: Partial): Period; - fromAmino(object: PeriodAmino): Period; - toAmino(message: Period): PeriodAmino; - fromAminoMsg(object: PeriodAminoMsg): Period; - toAminoMsg(message: Period): PeriodAminoMsg; - fromProtoMsg(message: PeriodProtoMsg): Period; - toProto(message: Period): Uint8Array; - toProtoMsg(message: Period): PeriodProtoMsg; -}; -export declare const PeriodicVestingAccount: { - typeUrl: string; - encode(message: PeriodicVestingAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount; - fromPartial(object: Partial): PeriodicVestingAccount; - fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount; - toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino; - fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount; - toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg; - fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount; - toProto(message: PeriodicVestingAccount): Uint8Array; - toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg; -}; -export declare const PermanentLockedAccount: { - typeUrl: string; - encode(message: PermanentLockedAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount; - fromPartial(object: Partial): PermanentLockedAccount; - fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount; - toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino; - fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount; - toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg; - fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount; - toProto(message: PermanentLockedAccount): Uint8Array; - toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg; -}; diff --git a/packages/api/dist/cosmos/vesting/v1beta1/vesting.js b/packages/api/dist/cosmos/vesting/v1beta1/vesting.js deleted file mode 100644 index 67f82e71..00000000 --- a/packages/api/dist/cosmos/vesting/v1beta1/vesting.js +++ /dev/null @@ -1,532 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PermanentLockedAccount = exports.PeriodicVestingAccount = exports.Period = exports.DelayedVestingAccount = exports.ContinuousVestingAccount = exports.BaseVestingAccount = void 0; -//@ts-nocheck -const auth_1 = require("../../auth/v1beta1/auth"); -const coin_1 = require("../../base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -function createBaseBaseVestingAccount() { - return { - baseAccount: undefined, - originalVesting: [], - delegatedFree: [], - delegatedVesting: [], - endTime: BigInt(0) - }; -} -exports.BaseVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseAccount !== undefined) { - auth_1.BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.originalVesting) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatedFree) { - coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.delegatedVesting) { - coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(40).int64(message.endTime); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = auth_1.BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.originalVesting.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 3: - message.delegatedFree.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 4: - message.delegatedVesting.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 5: - message.endTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBaseVestingAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? auth_1.BaseAccount.fromPartial(object.baseAccount) : undefined; - message.originalVesting = object.originalVesting?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.delegatedFree = object.delegatedFree?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.delegatedVesting = object.delegatedVesting?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBaseVestingAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = auth_1.BaseAccount.fromAmino(object.base_account); - } - message.originalVesting = object.original_vesting?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.delegatedFree = object.delegated_free?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.delegatedVesting = object.delegated_vesting?.map(e => coin_1.Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_account = message.baseAccount ? auth_1.BaseAccount.toAmino(message.baseAccount) : undefined; - if (message.originalVesting) { - obj.original_vesting = message.originalVesting.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.original_vesting = message.originalVesting; - } - if (message.delegatedFree) { - obj.delegated_free = message.delegatedFree.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.delegated_free = message.delegatedFree; - } - if (message.delegatedVesting) { - obj.delegated_vesting = message.delegatedVesting.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.delegated_vesting = message.delegatedVesting; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BaseVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BaseVestingAccount", - value: exports.BaseVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.BaseVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.BaseVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - value: exports.BaseVestingAccount.encode(message).finish() - }; - } -}; -function createBaseContinuousVestingAccount() { - return { - baseVestingAccount: undefined, - startTime: BigInt(0) - }; -} -exports.ContinuousVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContinuousVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContinuousVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseContinuousVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ContinuousVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ContinuousVestingAccount", - value: exports.ContinuousVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ContinuousVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.ContinuousVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - value: exports.ContinuousVestingAccount.encode(message).finish() - }; - } -}; -function createBaseDelayedVestingAccount() { - return { - baseVestingAccount: undefined - }; -} -exports.DelayedVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelayedVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelayedVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelayedVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DelayedVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelayedVestingAccount", - value: exports.DelayedVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DelayedVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.DelayedVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - value: exports.DelayedVestingAccount.encode(message).finish() - }; - } -}; -function createBasePeriod() { - return { - length: BigInt(0), - amount: [] - }; -} -exports.Period = { - typeUrl: "/cosmos.vesting.v1beta1.Period", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.length !== BigInt(0)) { - writer.uint32(8).int64(message.length); - } - for (const v of message.amount) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriod(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.length = reader.int64(); - break; - case 2: - message.amount.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriod(); - message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); - message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBasePeriod(); - if (object.length !== undefined && object.length !== null) { - message.length = BigInt(object.length); - } - message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; - if (message.amount) { - obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Period.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Period", - value: exports.Period.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Period.decode(message.value); - }, - toProto(message) { - return exports.Period.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.Period", - value: exports.Period.encode(message).finish() - }; - } -}; -function createBasePeriodicVestingAccount() { - return { - baseVestingAccount: undefined, - startTime: BigInt(0), - vestingPeriods: [] - }; -} -exports.PeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - exports.Period.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - case 3: - message.vestingPeriods.push(exports.Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriodicVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => exports.Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBasePeriodicVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => exports.Period.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? exports.Period.toAmino(e) : undefined); - } - else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object) { - return exports.PeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PeriodicVestingAccount", - value: exports.PeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PeriodicVestingAccount.decode(message.value); - }, - toProto(message) { - return exports.PeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - value: exports.PeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBasePermanentLockedAccount() { - return { - baseVestingAccount: undefined - }; -} -exports.PermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - exports.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = exports.BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePermanentLockedAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? exports.BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePermanentLockedAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = exports.BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? exports.BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PermanentLockedAccount", - value: exports.PermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.PermanentLockedAccount.decode(message.value); - }, - toProto(message) { - return exports.PermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - value: exports.PermanentLockedAccount.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/cosmos_proto/bundle.d.ts b/packages/api/dist/cosmos_proto/bundle.d.ts deleted file mode 100644 index 4b6ccc71..00000000 --- a/packages/api/dist/cosmos_proto/bundle.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import * as _1 from "./cosmos"; -export declare const cosmos_proto: { - scalarTypeFromJSON(object: any): _1.ScalarType; - scalarTypeToJSON(object: _1.ScalarType): string; - ScalarType: typeof _1.ScalarType; - ScalarTypeSDKType: typeof _1.ScalarType; - ScalarTypeAmino: typeof _1.ScalarType; - InterfaceDescriptor: { - typeUrl: string; - encode(message: _1.InterfaceDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _1.InterfaceDescriptor; - fromPartial(object: Partial<_1.InterfaceDescriptor>): _1.InterfaceDescriptor; - fromAmino(object: _1.InterfaceDescriptorAmino): _1.InterfaceDescriptor; - toAmino(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorAmino; - fromAminoMsg(object: _1.InterfaceDescriptorAminoMsg): _1.InterfaceDescriptor; - fromProtoMsg(message: _1.InterfaceDescriptorProtoMsg): _1.InterfaceDescriptor; - toProto(message: _1.InterfaceDescriptor): Uint8Array; - toProtoMsg(message: _1.InterfaceDescriptor): _1.InterfaceDescriptorProtoMsg; - }; - ScalarDescriptor: { - typeUrl: string; - encode(message: _1.ScalarDescriptor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _1.ScalarDescriptor; - fromPartial(object: Partial<_1.ScalarDescriptor>): _1.ScalarDescriptor; - fromAmino(object: _1.ScalarDescriptorAmino): _1.ScalarDescriptor; - toAmino(message: _1.ScalarDescriptor): _1.ScalarDescriptorAmino; - fromAminoMsg(object: _1.ScalarDescriptorAminoMsg): _1.ScalarDescriptor; - fromProtoMsg(message: _1.ScalarDescriptorProtoMsg): _1.ScalarDescriptor; - toProto(message: _1.ScalarDescriptor): Uint8Array; - toProtoMsg(message: _1.ScalarDescriptor): _1.ScalarDescriptorProtoMsg; - }; -}; diff --git a/packages/api/dist/cosmos_proto/bundle.js b/packages/api/dist/cosmos_proto/bundle.js deleted file mode 100644 index 501580e7..00000000 --- a/packages/api/dist/cosmos_proto/bundle.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cosmos_proto = void 0; -//@ts-nocheck -const _1 = __importStar(require("./cosmos")); -exports.cosmos_proto = { - ..._1 -}; diff --git a/packages/api/dist/cosmos_proto/cosmos.d.ts b/packages/api/dist/cosmos_proto/cosmos.d.ts deleted file mode 100644 index 8142502d..00000000 --- a/packages/api/dist/cosmos_proto/cosmos.d.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../binary"; -export declare enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2, - UNRECOGNIZED = -1 -} -export declare const ScalarTypeSDKType: typeof ScalarType; -export declare const ScalarTypeAmino: typeof ScalarType; -export declare function scalarTypeFromJSON(object: any): ScalarType; -export declare function scalarTypeToJSON(object: ScalarType): string; -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptor { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description: string; -} -export interface InterfaceDescriptorProtoMsg { - typeUrl: "/cosmos_proto.InterfaceDescriptor"; - value: Uint8Array; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorAmino { - /** - * name is the name of the interface. It should be a short-name (without - * a period) such that the fully qualified name of the interface will be - * package.name, ex. for the package a.b and interface named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the interface and its - * purpose. - */ - description?: string; -} -export interface InterfaceDescriptorAminoMsg { - type: "/cosmos_proto.InterfaceDescriptor"; - value: InterfaceDescriptorAmino; -} -/** - * InterfaceDescriptor describes an interface type to be used with - * accepts_interface and implements_interface and declared by declare_interface. - */ -export interface InterfaceDescriptorSDKType { - name: string; - description: string; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptor { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - fieldType: ScalarType[]; -} -export interface ScalarDescriptorProtoMsg { - typeUrl: "/cosmos_proto.ScalarDescriptor"; - value: Uint8Array; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorAmino { - /** - * name is the name of the scalar. It should be a short-name (without - * a period) such that the fully qualified name of the scalar will be - * package.name, ex. for the package a.b and scalar named C, the - * fully-qualified name will be a.b.C. - */ - name?: string; - /** - * description is a human-readable description of the scalar and its - * encoding format. For instance a big integer or decimal scalar should - * specify precisely the expected encoding format. - */ - description?: string; - /** - * field_type is the type of field with which this scalar can be used. - * Scalars can be used with one and only one type of field so that - * encoding standards and simple and clear. Currently only string and - * bytes fields are supported for scalars. - */ - field_type?: ScalarType[]; -} -export interface ScalarDescriptorAminoMsg { - type: "/cosmos_proto.ScalarDescriptor"; - value: ScalarDescriptorAmino; -} -/** - * ScalarDescriptor describes an scalar type to be used with - * the scalar field option and declared by declare_scalar. - * Scalars extend simple protobuf built-in types with additional - * syntax and semantics, for instance to represent big integers. - * Scalars should ideally define an encoding such that there is only one - * valid syntactical representation for a given semantic meaning, - * i.e. the encoding should be deterministic. - */ -export interface ScalarDescriptorSDKType { - name: string; - description: string; - field_type: ScalarType[]; -} -export declare const InterfaceDescriptor: { - typeUrl: string; - encode(message: InterfaceDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): InterfaceDescriptor; - fromPartial(object: Partial): InterfaceDescriptor; - fromAmino(object: InterfaceDescriptorAmino): InterfaceDescriptor; - toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino; - fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor; - fromProtoMsg(message: InterfaceDescriptorProtoMsg): InterfaceDescriptor; - toProto(message: InterfaceDescriptor): Uint8Array; - toProtoMsg(message: InterfaceDescriptor): InterfaceDescriptorProtoMsg; -}; -export declare const ScalarDescriptor: { - typeUrl: string; - encode(message: ScalarDescriptor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ScalarDescriptor; - fromPartial(object: Partial): ScalarDescriptor; - fromAmino(object: ScalarDescriptorAmino): ScalarDescriptor; - toAmino(message: ScalarDescriptor): ScalarDescriptorAmino; - fromAminoMsg(object: ScalarDescriptorAminoMsg): ScalarDescriptor; - fromProtoMsg(message: ScalarDescriptorProtoMsg): ScalarDescriptor; - toProto(message: ScalarDescriptor): Uint8Array; - toProtoMsg(message: ScalarDescriptor): ScalarDescriptorProtoMsg; -}; diff --git a/packages/api/dist/cosmos_proto/cosmos.js b/packages/api/dist/cosmos_proto/cosmos.js deleted file mode 100644 index 0347c7ae..00000000 --- a/packages/api/dist/cosmos_proto/cosmos.js +++ /dev/null @@ -1,221 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScalarDescriptor = exports.InterfaceDescriptor = exports.scalarTypeToJSON = exports.scalarTypeFromJSON = exports.ScalarTypeAmino = exports.ScalarTypeSDKType = exports.ScalarType = void 0; -//@ts-nocheck -const binary_1 = require("../binary"); -var ScalarType; -(function (ScalarType) { - ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED"; - ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING"; - ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES"; - ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ScalarType || (exports.ScalarType = ScalarType = {})); -exports.ScalarTypeSDKType = ScalarType; -exports.ScalarTypeAmino = ScalarType; -function scalarTypeFromJSON(object) { - switch (object) { - case 0: - case "SCALAR_TYPE_UNSPECIFIED": - return ScalarType.SCALAR_TYPE_UNSPECIFIED; - case 1: - case "SCALAR_TYPE_STRING": - return ScalarType.SCALAR_TYPE_STRING; - case 2: - case "SCALAR_TYPE_BYTES": - return ScalarType.SCALAR_TYPE_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return ScalarType.UNRECOGNIZED; - } -} -exports.scalarTypeFromJSON = scalarTypeFromJSON; -function scalarTypeToJSON(object) { - switch (object) { - case ScalarType.SCALAR_TYPE_UNSPECIFIED: - return "SCALAR_TYPE_UNSPECIFIED"; - case ScalarType.SCALAR_TYPE_STRING: - return "SCALAR_TYPE_STRING"; - case ScalarType.SCALAR_TYPE_BYTES: - return "SCALAR_TYPE_BYTES"; - case ScalarType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.scalarTypeToJSON = scalarTypeToJSON; -function createBaseInterfaceDescriptor() { - return { - name: "", - description: "" - }; -} -exports.InterfaceDescriptor = { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return exports.InterfaceDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.InterfaceDescriptor.decode(message.value); - }, - toProto(message) { - return exports.InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - value: exports.InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseScalarDescriptor() { - return { - name: "", - description: "", - fieldType: [] - }; -} -exports.ScalarDescriptor = { - typeUrl: "/cosmos_proto.ScalarDescriptor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - writer.uint32(26).fork(); - for (const v of message.fieldType) { - writer.int32(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseScalarDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.fieldType.push(reader.int32()); - } - } - else { - message.fieldType.push(reader.int32()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseScalarDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.fieldType = object.fieldType?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseScalarDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.fieldType = object.field_type?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - if (message.fieldType) { - obj.field_type = message.fieldType.map(e => e); - } - else { - obj.field_type = message.fieldType; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ScalarDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ScalarDescriptor.decode(message.value); - }, - toProto(message) { - return exports.ScalarDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos_proto.ScalarDescriptor", - value: exports.ScalarDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/amino/amino.js b/packages/api/dist/esm/amino/amino.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/esm/amino/amino.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/esm/amino/bundle.js b/packages/api/dist/esm/amino/bundle.js deleted file mode 100644 index 903af984..00000000 --- a/packages/api/dist/esm/amino/bundle.js +++ /dev/null @@ -1,5 +0,0 @@ -//@ts-nocheck -import * as _0 from "./amino"; -export const amino = { - ..._0 -}; diff --git a/packages/api/dist/esm/binary.js b/packages/api/dist/esm/binary.js deleted file mode 100644 index c6cb1ff0..00000000 --- a/packages/api/dist/esm/binary.js +++ /dev/null @@ -1,366 +0,0 @@ -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -// Copyright (c) 2016, Daniel Wirtz All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// --- -// Code generated by the command line utilities is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -import { utf8Length, utf8Read, utf8Write } from "./utf8"; -import { int64ToString, readInt32, readUInt32, uInt64ToString, varint32read, varint64read, writeVarint32, writeVarint64, int64FromString, int64Length, writeFixed32, writeByte, zzDecode, zzEncode, } from "./varint"; -export var WireType; -(function (WireType) { - WireType[WireType["Varint"] = 0] = "Varint"; - WireType[WireType["Fixed64"] = 1] = "Fixed64"; - WireType[WireType["Bytes"] = 2] = "Bytes"; - WireType[WireType["Fixed32"] = 5] = "Fixed32"; -})(WireType || (WireType = {})); -export class BinaryReader { - buf; - pos; - type; - len; - assertBounds() { - if (this.pos > this.len) - throw new RangeError("premature EOF"); - } - constructor(buf) { - this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0); - this.pos = 0; - this.type = 0; - this.len = this.buf.length; - } - tag() { - const tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7; - if (fieldNo <= 0 || wireType < 0 || wireType > 5) - throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType); - return [fieldNo, wireType, tag]; - } - skip(length) { - if (typeof length === "number") { - if (this.pos + length > this.len) - throw indexOutOfRange(this, length); - this.pos += length; - } - else { - do { - if (this.pos >= this.len) - throw indexOutOfRange(this); - } while (this.buf[this.pos++] & 128); - } - return this; - } - skipType(wireType) { - switch (wireType) { - case WireType.Varint: - this.skip(); - break; - case WireType.Fixed64: - this.skip(8); - break; - case WireType.Bytes: - this.skip(this.uint32()); - break; - case 3: - while ((wireType = this.uint32() & 7) !== 4) { - this.skipType(wireType); - } - break; - case WireType.Fixed32: - this.skip(4); - break; - /* istanbul ignore next */ - default: - throw Error("invalid wire type " + wireType + " at offset " + this.pos); - } - return this; - } - uint32() { - return varint32read.bind(this)(); - } - int32() { - return this.uint32() | 0; - } - sint32() { - const num = this.uint32(); - return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding - } - fixed32() { - const val = readUInt32(this.buf, this.pos); - this.pos += 4; - return val; - } - sfixed32() { - const val = readInt32(this.buf, this.pos); - this.pos += 4; - return val; - } - int64() { - const [lo, hi] = varint64read.bind(this)(); - return BigInt(int64ToString(lo, hi)); - } - uint64() { - const [lo, hi] = varint64read.bind(this)(); - return BigInt(uInt64ToString(lo, hi)); - } - sint64() { - let [lo, hi] = varint64read.bind(this)(); - // zig zag - [lo, hi] = zzDecode(lo, hi); - return BigInt(int64ToString(lo, hi)); - } - fixed64() { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt(uInt64ToString(lo, hi)); - } - sfixed64() { - const lo = this.sfixed32(); - const hi = this.sfixed32(); - return BigInt(int64ToString(lo, hi)); - } - float() { - throw new Error("float not supported"); - } - double() { - throw new Error("double not supported"); - } - bool() { - const [lo, hi] = varint64read.bind(this)(); - return lo !== 0 || hi !== 0; - } - bytes() { - const len = this.uint32(), start = this.pos; - this.pos += len; - this.assertBounds(); - return this.buf.subarray(start, start + len); - } - string() { - const bytes = this.bytes(); - return utf8Read(bytes, 0, bytes.length); - } -} -class Op { - fn; - len; - val; - next; - constructor(fn, len, val) { - this.fn = fn; - this.len = len; - this.val = val; - } - proceed(buf, pos) { - if (this.fn) { - this.fn(this.val, buf, pos); - } - } -} -class State { - head; - tail; - len; - next; - constructor(writer) { - this.head = writer.head; - this.tail = writer.tail; - this.len = writer.len; - this.next = writer.states; - } -} -export class BinaryWriter { - len = 0; - head; - tail; - states; - constructor() { - this.head = new Op(null, 0, 0); - this.tail = this.head; - this.states = null; - } - static create() { - return new BinaryWriter(); - } - static alloc(size) { - if (typeof Uint8Array !== "undefined") { - return pool((size) => new Uint8Array(size), Uint8Array.prototype.subarray)(size); - } - else { - return new Array(size); - } - } - _push(fn, len, val) { - this.tail = this.tail.next = new Op(fn, len, val); - this.len += len; - return this; - } - finish() { - let head = this.head.next, pos = 0; - const buf = BinaryWriter.alloc(this.len); - while (head) { - head.proceed(buf, pos); - pos += head.len; - head = head.next; - } - return buf; - } - fork() { - this.states = new State(this); - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - return this; - } - reset() { - if (this.states) { - this.head = this.states.head; - this.tail = this.states.tail; - this.len = this.states.len; - this.states = this.states.next; - } - else { - this.head = this.tail = new Op(null, 0, 0); - this.len = 0; - } - return this; - } - ldelim() { - const head = this.head, tail = this.tail, len = this.len; - this.reset().uint32(len); - if (len) { - this.tail.next = head.next; // skip noop - this.tail = tail; - this.len += len; - } - return this; - } - tag(fieldNo, type) { - return this.uint32(((fieldNo << 3) | type) >>> 0); - } - uint32(value) { - this.len += (this.tail = this.tail.next = - new Op(writeVarint32, (value = value >>> 0) < 128 - ? 1 - : value < 16384 - ? 2 - : value < 2097152 - ? 3 - : value < 268435456 - ? 4 - : 5, value)).len; - return this; - } - int32(value) { - return value < 0 - ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec - : this.uint32(value); - } - sint32(value) { - return this.uint32(((value << 1) ^ (value >> 31)) >>> 0); - } - int64(value) { - const { lo, hi } = int64FromString(value.toString()); - return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); - } - // uint64 is the same with int64 - uint64 = BinaryWriter.prototype.int64; - sint64(value) { - let { lo, hi } = int64FromString(value.toString()); - // zig zag - [lo, hi] = zzEncode(lo, hi); - return this._push(writeVarint64, int64Length(lo, hi), { lo, hi }); - } - fixed64(value) { - const { lo, hi } = int64FromString(value.toString()); - return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi); - } - // sfixed64 is the same with fixed64 - sfixed64 = BinaryWriter.prototype.fixed64; - bool(value) { - return this._push(writeByte, 1, value ? 1 : 0); - } - fixed32(value) { - return this._push(writeFixed32, 4, value >>> 0); - } - // sfixed32 is the same with fixed32 - sfixed32 = BinaryWriter.prototype.fixed32; - float(value) { - throw new Error("float not supported" + value); - } - double(value) { - throw new Error("double not supported" + value); - } - bytes(value) { - const len = value.length >>> 0; - if (!len) - return this._push(writeByte, 1, 0); - return this.uint32(len)._push(writeBytes, len, value); - } - string(value) { - const len = utf8Length(value); - return len - ? this.uint32(len)._push(utf8Write, len, value) - : this._push(writeByte, 1, 0); - } -} -function writeBytes(val, buf, pos) { - if (typeof Uint8Array !== "undefined") { - buf.set(val, pos); - } - else { - for (let i = 0; i < val.length; ++i) - buf[pos + i] = val[i]; - } -} -function pool(alloc, slice, size) { - const SIZE = size || 8192; - const MAX = SIZE >>> 1; - let slab = null; - let offset = SIZE; - return function pool_alloc(size) { - if (size < 1 || size > MAX) - return alloc(size); - if (offset + size > SIZE) { - slab = alloc(SIZE); - offset = 0; - } - const buf = slice.call(slab, offset, (offset += size)); - if (offset & 7) - // align to 32 bit - offset = (offset | 7) + 1; - return buf; - }; -} -function indexOutOfRange(reader, writeLength) { - return RangeError("index out of range: " + - reader.pos + - " + " + - (writeLength || 1) + - " > " + - reader.len); -} diff --git a/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js b/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js deleted file mode 100644 index ef3c8601..00000000 --- a/packages/api/dist/esm/cosmos/app/module/v1alpha1/module.js +++ /dev/null @@ -1,58 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseModule() { - return {}; -} -export const Module = { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseModule(); - return message; - }, - fromAmino(_) { - const message = createBaseModule(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return Module.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Module", - value: Module.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Module.decode(message.value); - }, - toProto(message) { - return Module.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.module.v1alpha1.Module", - value: Module.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/app/v1alpha1/module.js b/packages/api/dist/esm/cosmos/app/v1alpha1/module.js deleted file mode 100644 index 0364c3db..00000000 --- a/packages/api/dist/esm/cosmos/app/v1alpha1/module.js +++ /dev/null @@ -1,251 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseModuleDescriptor() { - return { - goImport: "", - usePackage: [], - canMigrateFrom: [] - }; -} -export const ModuleDescriptor = { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.goImport !== "") { - writer.uint32(10).string(message.goImport); - } - for (const v of message.usePackage) { - PackageReference.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.canMigrateFrom) { - MigrateFromInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.goImport = reader.string(); - break; - case 2: - message.usePackage.push(PackageReference.decode(reader, reader.uint32())); - break; - case 3: - message.canMigrateFrom.push(MigrateFromInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleDescriptor(); - message.goImport = object.goImport ?? ""; - message.usePackage = object.usePackage?.map(e => PackageReference.fromPartial(e)) || []; - message.canMigrateFrom = object.canMigrateFrom?.map(e => MigrateFromInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModuleDescriptor(); - if (object.go_import !== undefined && object.go_import !== null) { - message.goImport = object.go_import; - } - message.usePackage = object.use_package?.map(e => PackageReference.fromAmino(e)) || []; - message.canMigrateFrom = object.can_migrate_from?.map(e => MigrateFromInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.go_import = message.goImport === "" ? undefined : message.goImport; - if (message.usePackage) { - obj.use_package = message.usePackage.map(e => e ? PackageReference.toAmino(e) : undefined); - } - else { - obj.use_package = message.usePackage; - } - if (message.canMigrateFrom) { - obj.can_migrate_from = message.canMigrateFrom.map(e => e ? MigrateFromInfo.toAmino(e) : undefined); - } - else { - obj.can_migrate_from = message.canMigrateFrom; - } - return obj; - }, - fromAminoMsg(object) { - return ModuleDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleDescriptor", - value: ModuleDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModuleDescriptor.decode(message.value); - }, - toProto(message) { - return ModuleDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor", - value: ModuleDescriptor.encode(message).finish() - }; - } -}; -function createBasePackageReference() { - return { - name: "", - revision: 0 - }; -} -export const PackageReference = { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.revision !== 0) { - writer.uint32(16).uint32(message.revision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePackageReference(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.revision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePackageReference(); - message.name = object.name ?? ""; - message.revision = object.revision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBasePackageReference(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.revision !== undefined && object.revision !== null) { - message.revision = object.revision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.revision = message.revision === 0 ? undefined : message.revision; - return obj; - }, - fromAminoMsg(object) { - return PackageReference.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PackageReference", - value: PackageReference.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PackageReference.decode(message.value); - }, - toProto(message) { - return PackageReference.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.PackageReference", - value: PackageReference.encode(message).finish() - }; - } -}; -function createBaseMigrateFromInfo() { - return { - module: "" - }; -} -export const MigrateFromInfo = { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMigrateFromInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMigrateFromInfo(); - message.module = object.module ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMigrateFromInfo(); - if (object.module !== undefined && object.module !== null) { - message.module = object.module; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.module = message.module === "" ? undefined : message.module; - return obj; - }, - fromAminoMsg(object) { - return MigrateFromInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MigrateFromInfo", - value: MigrateFromInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MigrateFromInfo.decode(message.value); - }, - toProto(message) { - return MigrateFromInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo", - value: MigrateFromInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js b/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js deleted file mode 100644 index 32b2b1d5..00000000 --- a/packages/api/dist/esm/cosmos/auth/v1beta1/auth.js +++ /dev/null @@ -1,323 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseBaseAccount() { - return { - $typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - address: "", - pubKey: undefined, - accountNumber: BigInt(0), - sequence: BigInt(0) - }; -} -export const BaseAccount = { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(32).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.accountNumber = reader.uint64(); - break; - case 4: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBaseAccount(); - message.address = object.address ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBaseAccount(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = Any.fromAmino(object.pub_key); - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BaseAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BaseAccount", - value: BaseAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BaseAccount.decode(message.value); - }, - toProto(message) { - return BaseAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: BaseAccount.encode(message).finish() - }; - } -}; -function createBaseModuleAccount() { - return { - $typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - baseAccount: undefined, - name: "", - permissions: [] - }; -} -export const ModuleAccount = { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseAccount !== undefined) { - BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - for (const v of message.permissions) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.permissions.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; - message.name = object.name ?? ""; - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModuleAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = BaseAccount.fromAmino(object.base_account); - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.permissions = object.permissions?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; - obj.name = message.name === "" ? undefined : message.name; - if (message.permissions) { - obj.permissions = message.permissions.map(e => e); - } - else { - obj.permissions = message.permissions; - } - return obj; - }, - fromAminoMsg(object) { - return ModuleAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleAccount", - value: ModuleAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModuleAccount.decode(message.value); - }, - toProto(message) { - return ModuleAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: ModuleAccount.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - maxMemoCharacters: BigInt(0), - txSigLimit: BigInt(0), - txSizeCostPerByte: BigInt(0), - sigVerifyCostEd25519: BigInt(0), - sigVerifyCostSecp256k1: BigInt(0) - }; -} -export const Params = { - typeUrl: "/cosmos.auth.v1beta1.Params", - encode(message, writer = BinaryWriter.create()) { - if (message.maxMemoCharacters !== BigInt(0)) { - writer.uint32(8).uint64(message.maxMemoCharacters); - } - if (message.txSigLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.txSigLimit); - } - if (message.txSizeCostPerByte !== BigInt(0)) { - writer.uint32(24).uint64(message.txSizeCostPerByte); - } - if (message.sigVerifyCostEd25519 !== BigInt(0)) { - writer.uint32(32).uint64(message.sigVerifyCostEd25519); - } - if (message.sigVerifyCostSecp256k1 !== BigInt(0)) { - writer.uint32(40).uint64(message.sigVerifyCostSecp256k1); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxMemoCharacters = reader.uint64(); - break; - case 2: - message.txSigLimit = reader.uint64(); - break; - case 3: - message.txSizeCostPerByte = reader.uint64(); - break; - case 4: - message.sigVerifyCostEd25519 = reader.uint64(); - break; - case 5: - message.sigVerifyCostSecp256k1 = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.maxMemoCharacters = object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null ? BigInt(object.maxMemoCharacters.toString()) : BigInt(0); - message.txSigLimit = object.txSigLimit !== undefined && object.txSigLimit !== null ? BigInt(object.txSigLimit.toString()) : BigInt(0); - message.txSizeCostPerByte = object.txSizeCostPerByte !== undefined && object.txSizeCostPerByte !== null ? BigInt(object.txSizeCostPerByte.toString()) : BigInt(0); - message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 !== undefined && object.sigVerifyCostEd25519 !== null ? BigInt(object.sigVerifyCostEd25519.toString()) : BigInt(0); - message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 !== undefined && object.sigVerifyCostSecp256k1 !== null ? BigInt(object.sigVerifyCostSecp256k1.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.max_memo_characters !== undefined && object.max_memo_characters !== null) { - message.maxMemoCharacters = BigInt(object.max_memo_characters); - } - if (object.tx_sig_limit !== undefined && object.tx_sig_limit !== null) { - message.txSigLimit = BigInt(object.tx_sig_limit); - } - if (object.tx_size_cost_per_byte !== undefined && object.tx_size_cost_per_byte !== null) { - message.txSizeCostPerByte = BigInt(object.tx_size_cost_per_byte); - } - if (object.sig_verify_cost_ed25519 !== undefined && object.sig_verify_cost_ed25519 !== null) { - message.sigVerifyCostEd25519 = BigInt(object.sig_verify_cost_ed25519); - } - if (object.sig_verify_cost_secp256k1 !== undefined && object.sig_verify_cost_secp256k1 !== null) { - message.sigVerifyCostSecp256k1 = BigInt(object.sig_verify_cost_secp256k1); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; - obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; - obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; - obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; - obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js deleted file mode 100644 index 59cec461..00000000 --- a/packages/api/dist/esm/cosmos/auth/v1beta1/genesis.js +++ /dev/null @@ -1,88 +0,0 @@ -//@ts-nocheck -import { Params } from "./auth"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - params: Params.fromPartial({}), - accounts: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.accounts) { - Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.accounts.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.accounts = object.accounts?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.js deleted file mode 100644 index fc2d3b77..00000000 --- a/packages/api/dist/esm/cosmos/auth/v1beta1/query.js +++ /dev/null @@ -1,1291 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Any } from "../../../google/protobuf/any"; -import { Params, BaseAccount, ModuleAccount } from "./auth"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseQueryAccountsRequest() { - return { - pagination: undefined - }; -} -export const QueryAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountsRequest", - value: QueryAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountsRequest.decode(message.value); - }, - toProto(message) { - return QueryAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", - value: QueryAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountsResponse() { - return { - accounts: [], - pagination: undefined - }; -} -export const QueryAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.accounts) { - Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountsResponse(); - message.accounts = object.accounts?.map(e => AccountI_FromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? AccountI_ToAmino(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountsResponse", - value: QueryAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountsResponse.decode(message.value); - }, - toProto(message) { - return QueryAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", - value: QueryAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountRequest() { - return { - address: "" - }; -} -export const QueryAccountRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountRequest", - value: QueryAccountRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountRequest.decode(message.value); - }, - toProto(message) { - return QueryAccountRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", - value: QueryAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountResponse() { - return { - account: undefined - }; -} -export const QueryAccountResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.account !== undefined) { - Any.encode(message.account, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = AccountI_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountResponse(); - message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = AccountI_FromAmino(object.account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account ? AccountI_ToAmino(message.account) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountResponse", - value: QueryAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountResponse.decode(message.value); - }, - toProto(message) { - return QueryAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", - value: QueryAccountResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsRequest() { - return {}; -} -export const QueryModuleAccountsRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryModuleAccountsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryModuleAccountsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountsRequest", - value: QueryModuleAccountsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleAccountsRequest.decode(message.value); - }, - toProto(message) { - return QueryModuleAccountsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", - value: QueryModuleAccountsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountsResponse() { - return { - accounts: [] - }; -} -export const QueryModuleAccountsResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.accounts) { - Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accounts.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountsResponse(); - message.accounts = object.accounts?.map(e => ModuleAccountI_FromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.accounts) { - obj.accounts = message.accounts.map(e => e ? ModuleAccountI_ToAmino(e) : undefined); - } - else { - obj.accounts = message.accounts; - } - return obj; - }, - fromAminoMsg(object) { - return QueryModuleAccountsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountsResponse", - value: QueryModuleAccountsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleAccountsResponse.decode(message.value); - }, - toProto(message) { - return QueryModuleAccountsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", - value: QueryModuleAccountsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameRequest() { - return { - name: "" - }; -} -export const QueryModuleAccountByNameRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountByNameRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountByNameRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object) { - return QueryModuleAccountByNameRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountByNameRequest", - value: QueryModuleAccountByNameRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleAccountByNameRequest.decode(message.value); - }, - toProto(message) { - return QueryModuleAccountByNameRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", - value: QueryModuleAccountByNameRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleAccountByNameResponse() { - return { - account: undefined - }; -} -export const QueryModuleAccountByNameResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.account !== undefined) { - Any.encode(message.account, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleAccountByNameResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = ModuleAccountI_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleAccountByNameResponse(); - message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleAccountByNameResponse(); - if (object.account !== undefined && object.account !== null) { - message.account = ModuleAccountI_FromAmino(object.account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account ? ModuleAccountI_ToAmino(message.account) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryModuleAccountByNameResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleAccountByNameResponse", - value: QueryModuleAccountByNameResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleAccountByNameResponse.decode(message.value); - }, - toProto(message) { - return QueryModuleAccountByNameResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", - value: QueryModuleAccountByNameResponse.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixRequest() { - return {}; -} -export const Bech32PrefixRequest = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseBech32PrefixRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseBech32PrefixRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return Bech32PrefixRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Bech32PrefixRequest", - value: Bech32PrefixRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Bech32PrefixRequest.decode(message.value); - }, - toProto(message) { - return Bech32PrefixRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", - value: Bech32PrefixRequest.encode(message).finish() - }; - } -}; -function createBaseBech32PrefixResponse() { - return { - bech32Prefix: "" - }; -} -export const Bech32PrefixResponse = { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.bech32Prefix !== "") { - writer.uint32(10).string(message.bech32Prefix); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBech32PrefixResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32Prefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBech32PrefixResponse(); - message.bech32Prefix = object.bech32Prefix ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBech32PrefixResponse(); - if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { - message.bech32Prefix = object.bech32_prefix; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; - return obj; - }, - fromAminoMsg(object) { - return Bech32PrefixResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Bech32PrefixResponse", - value: Bech32PrefixResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Bech32PrefixResponse.decode(message.value); - }, - toProto(message) { - return Bech32PrefixResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", - value: Bech32PrefixResponse.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringRequest() { - return { - addressBytes: new Uint8Array() - }; -} -export const AddressBytesToStringRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressBytesToStringRequest(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAddressBytesToStringRequest(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = bytesFromBase64(object.address_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AddressBytesToStringRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressBytesToStringRequest", - value: AddressBytesToStringRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AddressBytesToStringRequest.decode(message.value); - }, - toProto(message) { - return AddressBytesToStringRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", - value: AddressBytesToStringRequest.encode(message).finish() - }; - } -}; -function createBaseAddressBytesToStringResponse() { - return { - addressString: "" - }; -} -export const AddressBytesToStringResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressBytesToStringResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressBytesToStringResponse(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAddressBytesToStringResponse(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object) { - return AddressBytesToStringResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressBytesToStringResponse", - value: AddressBytesToStringResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AddressBytesToStringResponse.decode(message.value); - }, - toProto(message) { - return AddressBytesToStringResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", - value: AddressBytesToStringResponse.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesRequest() { - return { - addressString: "" - }; -} -export const AddressStringToBytesRequest = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.addressString !== "") { - writer.uint32(10).string(message.addressString); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressStringToBytesRequest(); - message.addressString = object.addressString ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAddressStringToBytesRequest(); - if (object.address_string !== undefined && object.address_string !== null) { - message.addressString = object.address_string; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_string = message.addressString === "" ? undefined : message.addressString; - return obj; - }, - fromAminoMsg(object) { - return AddressStringToBytesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressStringToBytesRequest", - value: AddressStringToBytesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AddressStringToBytesRequest.decode(message.value); - }, - toProto(message) { - return AddressStringToBytesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", - value: AddressStringToBytesRequest.encode(message).finish() - }; - } -}; -function createBaseAddressStringToBytesResponse() { - return { - addressBytes: new Uint8Array() - }; -} -export const AddressStringToBytesResponse = { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.addressBytes.length !== 0) { - writer.uint32(10).bytes(message.addressBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAddressStringToBytesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addressBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAddressStringToBytesResponse(); - message.addressBytes = object.addressBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAddressStringToBytesResponse(); - if (object.address_bytes !== undefined && object.address_bytes !== null) { - message.addressBytes = bytesFromBase64(object.address_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AddressStringToBytesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AddressStringToBytesResponse", - value: AddressStringToBytesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AddressStringToBytesResponse.decode(message.value); - }, - toProto(message) { - return AddressStringToBytesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", - value: AddressStringToBytesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDRequest() { - return { - id: BigInt(0) - }; -} -export const QueryAccountAddressByIDRequest = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).int64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountAddressByIDRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountAddressByIDRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountAddressByIDRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountAddressByIDRequest", - value: QueryAccountAddressByIDRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountAddressByIDRequest.decode(message.value); - }, - toProto(message) { - return QueryAccountAddressByIDRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", - value: QueryAccountAddressByIDRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAccountAddressByIDResponse() { - return { - accountAddress: "" - }; -} -export const QueryAccountAddressByIDResponse = { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.accountAddress !== "") { - writer.uint32(10).string(message.accountAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAccountAddressByIDResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.accountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAccountAddressByIDResponse(); - message.accountAddress = object.accountAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAccountAddressByIDResponse(); - if (object.account_address !== undefined && object.account_address !== null) { - message.accountAddress = object.account_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryAccountAddressByIDResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAccountAddressByIDResponse", - value: QueryAccountAddressByIDResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAccountAddressByIDResponse.decode(message.value); - }, - toProto(message) { - return QueryAccountAddressByIDResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", - value: QueryAccountAddressByIDResponse.encode(message).finish() - }; - } -}; -export const AccountI_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return BaseAccount.decode(data.value); - default: - return data; - } -}; -export const AccountI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BaseAccount": - return Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.BaseAccount", - value: BaseAccount.encode(BaseAccount.fromPartial(BaseAccount.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const AccountI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.BaseAccount": - return { - type: "cosmos-sdk/BaseAccount", - value: BaseAccount.toAmino(BaseAccount.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; -export const ModuleAccountI_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return ModuleAccount.decode(data.value); - default: - return data; - } -}; -export const ModuleAccountI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ModuleAccount": - return Any.fromPartial({ - typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", - value: ModuleAccount.encode(ModuleAccount.fromPartial(ModuleAccount.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const ModuleAccountI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.auth.v1beta1.ModuleAccount": - return { - type: "cosmos-sdk/ModuleAccount", - value: ModuleAccount.toAmino(ModuleAccount.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js deleted file mode 100644 index 05492486..00000000 --- a/packages/api/dist/esm/cosmos/auth/v1beta1/query.lcd.js +++ /dev/null @@ -1,82 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - /* Accounts returns all the existing accounts - - Since: cosmos-sdk 0.43 */ - async accounts(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/auth/v1beta1/accounts`; - return await this.req.get(endpoint, options); - } - /* Account returns account details based on address. */ - async account(params) { - const endpoint = `cosmos/auth/v1beta1/accounts/${params.address}`; - return await this.req.get(endpoint); - } - /* AccountAddressByID returns account address based on account number. - - Since: cosmos-sdk 0.46.2 */ - async accountAddressByID(params) { - const endpoint = `cosmos/auth/v1beta1/address_by_id/${params.id}`; - return await this.req.get(endpoint); - } - /* Params queries all parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ModuleAccounts returns all the existing module accounts. - - Since: cosmos-sdk 0.46 */ - async moduleAccounts(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/module_accounts`; - return await this.req.get(endpoint); - } - /* ModuleAccountByName returns the module account info by module name */ - async moduleAccountByName(params) { - const endpoint = `cosmos/auth/v1beta1/module_accounts/${params.name}`; - return await this.req.get(endpoint); - } - /* Bech32Prefix queries bech32Prefix - - Since: cosmos-sdk 0.46 */ - async bech32Prefix(_params = {}) { - const endpoint = `cosmos/auth/v1beta1/bech32`; - return await this.req.get(endpoint); - } - /* AddressBytesToString converts Account Address bytes to string - - Since: cosmos-sdk 0.46 */ - async addressBytesToString(params) { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressBytes}`; - return await this.req.get(endpoint); - } - /* AddressStringToBytes converts Address string to bytes - - Since: cosmos-sdk 0.46 */ - async addressStringToBytes(params) { - const endpoint = `cosmos/auth/v1beta1/bech32/${params.addressString}`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js deleted file mode 100644 index 74d204ef..00000000 --- a/packages/api/dist/esm/cosmos/auth/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,98 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryAccountAddressByIDRequest, QueryAccountAddressByIDResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, QueryModuleAccountByNameRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.accounts = this.accounts.bind(this); - this.account = this.account.bind(this); - this.accountAddressByID = this.accountAddressByID.bind(this); - this.params = this.params.bind(this); - this.moduleAccounts = this.moduleAccounts.bind(this); - this.moduleAccountByName = this.moduleAccountByName.bind(this); - this.bech32Prefix = this.bech32Prefix.bind(this); - this.addressBytesToString = this.addressBytesToString.bind(this); - this.addressStringToBytes = this.addressStringToBytes.bind(this); - } - accounts(request = { - pagination: undefined - }) { - const data = QueryAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); - return promise.then(data => QueryAccountsResponse.decode(new BinaryReader(data))); - } - account(request) { - const data = QueryAccountRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); - return promise.then(data => QueryAccountResponse.decode(new BinaryReader(data))); - } - accountAddressByID(request) { - const data = QueryAccountAddressByIDRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AccountAddressByID", data); - return promise.then(data => QueryAccountAddressByIDResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - moduleAccounts(request = {}) { - const data = QueryModuleAccountsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); - return promise.then(data => QueryModuleAccountsResponse.decode(new BinaryReader(data))); - } - moduleAccountByName(request) { - const data = QueryModuleAccountByNameRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccountByName", data); - return promise.then(data => QueryModuleAccountByNameResponse.decode(new BinaryReader(data))); - } - bech32Prefix(request = {}) { - const data = Bech32PrefixRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); - return promise.then(data => Bech32PrefixResponse.decode(new BinaryReader(data))); - } - addressBytesToString(request) { - const data = AddressBytesToStringRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); - return promise.then(data => AddressBytesToStringResponse.decode(new BinaryReader(data))); - } - addressStringToBytes(request) { - const data = AddressStringToBytesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); - return promise.then(data => AddressStringToBytesResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - accounts(request) { - return queryService.accounts(request); - }, - account(request) { - return queryService.account(request); - }, - accountAddressByID(request) { - return queryService.accountAddressByID(request); - }, - params(request) { - return queryService.params(request); - }, - moduleAccounts(request) { - return queryService.moduleAccounts(request); - }, - moduleAccountByName(request) { - return queryService.moduleAccountByName(request); - }, - bech32Prefix(request) { - return queryService.bech32Prefix(request); - }, - addressBytesToString(request) { - return queryService.addressBytesToString(request); - }, - addressStringToBytes(request) { - return queryService.addressStringToBytes(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js b/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js deleted file mode 100644 index 5f0e3477..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/authz.js +++ /dev/null @@ -1,391 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { SendAuthorization } from "../../bank/v1beta1/authz"; -import { StakeAuthorization } from "../../staking/v1beta1/authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseGenericAuthorization() { - return { - $typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - msg: "" - }; -} -export const GenericAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - encode(message, writer = BinaryWriter.create()) { - if (message.msg !== "") { - writer.uint32(10).string(message.msg); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenericAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msg = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenericAuthorization(); - message.msg = object.msg ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseGenericAuthorization(); - if (object.msg !== undefined && object.msg !== null) { - message.msg = object.msg; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg = message.msg === "" ? undefined : message.msg; - return obj; - }, - fromAminoMsg(object) { - return GenericAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenericAuthorization", - value: GenericAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenericAuthorization.decode(message.value); - }, - toProto(message) { - return GenericAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: GenericAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrant() { - return { - authorization: undefined, - expiration: undefined - }; -} -export const Grant = { - typeUrl: "/cosmos.authz.v1beta1.Grant", - encode(message, writer = BinaryWriter.create()) { - if (message.authorization !== undefined) { - Any.encode(message.authorization, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization = Authorization_InterfaceDecoder(reader); - break; - case 2: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrant(); - message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrant(); - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = Authorization_FromAmino(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authorization = message.authorization ? Authorization_ToAmino(message.authorization) : undefined; - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Grant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Grant", - value: Grant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Grant.decode(message.value); - }, - toProto(message) { - return Grant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.Grant", - value: Grant.encode(message).finish() - }; - } -}; -function createBaseGrantAuthorization() { - return { - granter: "", - grantee: "", - authorization: undefined, - expiration: undefined - }; -} -export const GrantAuthorization = { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.authorization !== undefined) { - Any.encode(message.authorization, writer.uint32(26).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.authorization = Authorization_InterfaceDecoder(reader); - break; - case 4: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrantAuthorization(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrantAuthorization(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.authorization !== undefined && object.authorization !== null) { - message.authorization = Authorization_FromAmino(object.authorization); - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.authorization = message.authorization ? Authorization_ToAmino(message.authorization) : undefined; - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GrantAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GrantAuthorization", - value: GrantAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GrantAuthorization.decode(message.value); - }, - toProto(message) { - return GrantAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", - value: GrantAuthorization.encode(message).finish() - }; - } -}; -function createBaseGrantQueueItem() { - return { - msgTypeUrls: [] - }; -} -export const GrantQueueItem = { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.msgTypeUrls) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrantQueueItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrls.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGrantQueueItem(); - message.msgTypeUrls = object.msg_type_urls?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.msgTypeUrls) { - obj.msg_type_urls = message.msgTypeUrls.map(e => e); - } - else { - obj.msg_type_urls = message.msgTypeUrls; - } - return obj; - }, - fromAminoMsg(object) { - return GrantQueueItem.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GrantQueueItem", - value: GrantQueueItem.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GrantQueueItem.decode(message.value); - }, - toProto(message) { - return GrantQueueItem.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", - value: GrantQueueItem.encode(message).finish() - }; - } -}; -export const Authorization_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return GenericAuthorization.decode(data.value); - case "/cosmos.bank.v1beta1.SendAuthorization": - return SendAuthorization.decode(data.value); - case "/cosmos.staking.v1beta1.StakeAuthorization": - return StakeAuthorization.decode(data.value); - default: - return data; - } -}; -export const Authorization_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/GenericAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", - value: GenericAuthorization.encode(GenericAuthorization.fromPartial(GenericAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/SendAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: SendAuthorization.encode(SendAuthorization.fromPartial(SendAuthorization.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/StakeAuthorization": - return Any.fromPartial({ - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: StakeAuthorization.encode(StakeAuthorization.fromPartial(StakeAuthorization.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Authorization_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.authz.v1beta1.GenericAuthorization": - return { - type: "cosmos-sdk/GenericAuthorization", - value: GenericAuthorization.toAmino(GenericAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.bank.v1beta1.SendAuthorization": - return { - type: "cosmos-sdk/SendAuthorization", - value: SendAuthorization.toAmino(SendAuthorization.decode(content.value, undefined)) - }; - case "/cosmos.staking.v1beta1.StakeAuthorization": - return { - type: "cosmos-sdk/StakeAuthorization", - value: StakeAuthorization.toAmino(StakeAuthorization.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/event.js b/packages/api/dist/esm/cosmos/authz/v1beta1/event.js deleted file mode 100644 index 7b8f9994..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/event.js +++ /dev/null @@ -1,188 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseEventGrant() { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -export const EventGrant = { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - encode(message, writer = BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventGrant(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventGrant(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return EventGrant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventGrant", - value: EventGrant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventGrant.decode(message.value); - }, - toProto(message) { - return EventGrant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.EventGrant", - value: EventGrant.encode(message).finish() - }; - } -}; -function createBaseEventRevoke() { - return { - msgTypeUrl: "", - granter: "", - grantee: "" - }; -} -export const EventRevoke = { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - encode(message, writer = BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(18).string(message.msgTypeUrl); - } - if (message.granter !== "") { - writer.uint32(26).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(34).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.msgTypeUrl = reader.string(); - break; - case 3: - message.granter = reader.string(); - break; - case 4: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRevoke(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRevoke(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return EventRevoke.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventRevoke", - value: EventRevoke.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventRevoke.decode(message.value); - }, - toProto(message) { - return EventRevoke.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.EventRevoke", - value: EventRevoke.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js deleted file mode 100644 index 5a25a3be..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/genesis.js +++ /dev/null @@ -1,75 +0,0 @@ -//@ts-nocheck -import { GrantAuthorization } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - authorization: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.authorization) { - GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authorization.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => GrantAuthorization.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.authorization = object.authorization?.map(e => GrantAuthorization.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.authorization) { - obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.authorization = message.authorization; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.js deleted file mode 100644 index 312b03a9..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/query.js +++ /dev/null @@ -1,523 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantAuthorization } from "./authz"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryGrantsRequest() { - return { - granter: "", - grantee: "", - msgTypeUrl: "", - pagination: undefined - }; -} -export const QueryGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGrantsRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGrantsRequest", - value: QueryGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGrantsRequest.decode(message.value); - }, - toProto(message) { - return QueryGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", - value: QueryGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.grants) { - Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGrantsResponse(); - message.grants = object.grants?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? Grant.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGrantsResponse", - value: QueryGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGrantsResponse.decode(message.value); - }, - toProto(message) { - return QueryGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", - value: QueryGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsRequest() { - return { - granter: "", - pagination: undefined - }; -} -export const QueryGranterGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranterGrantsRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranterGrantsRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGranterGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranterGrantsRequest", - value: QueryGranterGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGranterGrantsRequest.decode(message.value); - }, - toProto(message) { - return QueryGranterGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", - value: QueryGranterGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranterGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGranterGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.grants) { - GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranterGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranterGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGranterGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranterGrantsResponse", - value: QueryGranterGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGranterGrantsResponse.decode(message.value); - }, - toProto(message) { - return QueryGranterGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", - value: QueryGranterGrantsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsRequest() { - return { - grantee: "", - pagination: undefined - }; -} -export const QueryGranteeGrantsRequest = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranteeGrantsRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranteeGrantsRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGranteeGrantsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranteeGrantsRequest", - value: QueryGranteeGrantsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGranteeGrantsRequest.decode(message.value); - }, - toProto(message) { - return QueryGranteeGrantsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", - value: QueryGranteeGrantsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGranteeGrantsResponse() { - return { - grants: [], - pagination: undefined - }; -} -export const QueryGranteeGrantsResponse = { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.grants) { - GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGranteeGrantsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grants.push(GrantAuthorization.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGranteeGrantsResponse(); - message.grants = object.grants?.map(e => GrantAuthorization.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.grants) { - obj.grants = message.grants.map(e => e ? GrantAuthorization.toAmino(e) : undefined); - } - else { - obj.grants = message.grants; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGranteeGrantsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGranteeGrantsResponse", - value: QueryGranteeGrantsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGranteeGrantsResponse.decode(message.value); - }, - toProto(message) { - return QueryGranteeGrantsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", - value: QueryGranteeGrantsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js deleted file mode 100644 index 650ec7af..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/query.lcd.js +++ /dev/null @@ -1,57 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - /* Returns list of `Authorization`, granted to the grantee by the granter. */ - async grants(params) { - const options = { - params: {} - }; - if (typeof params?.granter !== "undefined") { - options.params.granter = params.granter; - } - if (typeof params?.grantee !== "undefined") { - options.params.grantee = params.grantee; - } - if (typeof params?.msgTypeUrl !== "undefined") { - options.params.msg_type_url = params.msgTypeUrl; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants`; - return await this.req.get(endpoint, options); - } - /* GranterGrants returns list of `GrantAuthorization`, granted by granter. - - Since: cosmos-sdk 0.46 */ - async granterGrants(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/granter/${params.granter}`; - return await this.req.get(endpoint, options); - } - /* GranteeGrants returns a list of `GrantAuthorization` by grantee. - - Since: cosmos-sdk 0.46 */ - async granteeGrants(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/authz/v1beta1/grants/grantee/${params.grantee}`; - return await this.req.get(endpoint, options); - } -} diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js deleted file mode 100644 index 4dfb451d..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,42 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grants = this.grants.bind(this); - this.granterGrants = this.granterGrants.bind(this); - this.granteeGrants = this.granteeGrants.bind(this); - } - grants(request) { - const data = QueryGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); - return promise.then(data => QueryGrantsResponse.decode(new BinaryReader(data))); - } - granterGrants(request) { - const data = QueryGranterGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); - return promise.then(data => QueryGranterGrantsResponse.decode(new BinaryReader(data))); - } - granteeGrants(request) { - const data = QueryGranteeGrantsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); - return promise.then(data => QueryGranteeGrantsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - grants(request) { - return queryService.grants(request); - }, - granterGrants(request) { - return queryService.granterGrants(request); - }, - granteeGrants(request) { - return queryService.granteeGrants(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js deleted file mode 100644 index 4518741e..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.amino.js +++ /dev/null @@ -1,19 +0,0 @@ -//@ts-nocheck -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export const AminoConverter = { - "/cosmos.authz.v1beta1.MsgGrant": { - aminoType: "cosmos-sdk/MsgGrant", - toAmino: MsgGrant.toAmino, - fromAmino: MsgGrant.fromAmino - }, - "/cosmos.authz.v1beta1.MsgExec": { - aminoType: "cosmos-sdk/MsgExec", - toAmino: MsgExec.toAmino, - fromAmino: MsgExec.fromAmino - }, - "/cosmos.authz.v1beta1.MsgRevoke": { - aminoType: "cosmos-sdk/MsgRevoke", - toAmino: MsgRevoke.toAmino, - fromAmino: MsgRevoke.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js deleted file mode 100644 index 326af534..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.js +++ /dev/null @@ -1,487 +0,0 @@ -//@ts-nocheck -import { Grant } from "./authz"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseMsgGrant() { - return { - granter: "", - grantee: "", - grant: Grant.fromPartial({}) - }; -} -export const MsgGrant = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.grant !== undefined) { - Grant.encode(message.grant, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.grant = Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.grant = object.grant !== undefined && object.grant !== null ? Grant.fromPartial(object.grant) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.grant !== undefined && object.grant !== null) { - message.grant = Grant.fromAmino(object.grant); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.grant = message.grant ? Grant.toAmino(message.grant) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgGrant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrant", - value: MsgGrant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgGrant.decode(message.value); - }, - toProto(message) { - return MsgGrant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse() { - return { - results: [] - }; -} -export const MsgExecResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.results) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.results.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecResponse(); - message.results = object.results?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.results) { - obj.results = message.results.map(e => base64FromBytes(e)); - } - else { - obj.results = message.results; - } - return obj; - }, - fromAminoMsg(object) { - return MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExecResponse", - value: MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExecResponse.decode(message.value); - }, - toProto(message) { - return MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", - value: MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec() { - return { - grantee: "", - msgs: [] - }; -} -export const MsgExec = { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - encode(message, writer = BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - for (const v of message.msgs) { - Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.msgs.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExec(); - message.grantee = object.grantee ?? ""; - message.msgs = object.msgs?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExec(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - message.msgs = object.msgs?.map(e => Sdk_MsgauthzAuthorization_FromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? Sdk_MsgauthzAuthorization_ToAmino(e) : undefined); - } - else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object) { - return MsgExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExec", - value: MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExec.decode(message.value); - }, - toProto(message) { - return MsgExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgGrantResponse() { - return {}; -} -export const MsgGrantResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgGrantResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgGrantResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgGrantResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantResponse", - value: MsgGrantResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgGrantResponse.decode(message.value); - }, - toProto(message) { - return MsgGrantResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", - value: MsgGrantResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevoke() { - return { - granter: "", - grantee: "", - msgTypeUrl: "" - }; -} -export const MsgRevoke = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.msgTypeUrl !== "") { - writer.uint32(26).string(message.msgTypeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevoke(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRevoke(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRevoke(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object) { - return MsgRevoke.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevoke", - value: MsgRevoke.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRevoke.decode(message.value); - }, - toProto(message) { - return MsgRevoke.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeResponse() { - return {}; -} -export const MsgRevokeResponse = { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRevokeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRevokeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRevokeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeResponse", - value: MsgRevokeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRevokeResponse.decode(message.value); - }, - toProto(message) { - return MsgRevokeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", - value: MsgRevokeResponse.encode(message).finish() - }; - } -}; -export const Sdk_Msg_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Sdk_Msg_FromAmino = (content) => { - return Any.fromAmino(content); -}; -export const Sdk_Msg_ToAmino = (content) => { - return Any.toAmino(content); -}; -export const Authz_Authorization_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Authz_Authorization_FromAmino = (content) => { - return Any.fromAmino(content); -}; -export const Authz_Authorization_ToAmino = (content) => { - return Any.toAmino(content); -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js deleted file mode 100644 index acf4a634..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.registry.js +++ /dev/null @@ -1,69 +0,0 @@ -import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; -export const registry = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.encode(value).finish() - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.encode(value).finish() - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.encode(value).finish() - }; - } - }, - withTypeUrl: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value - }; - } - }, - fromPartial: { - grant(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgGrant", - value: MsgGrant.fromPartial(value) - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgExec", - value: MsgExec.fromPartial(value) - }; - }, - revoke(value) { - return { - typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", - value: MsgRevoke.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 8fd1c326..00000000 --- a/packages/api/dist/esm/cosmos/authz/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,26 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grant = this.grant.bind(this); - this.exec = this.exec.bind(this); - this.revoke = this.revoke.bind(this); - } - grant(request) { - const data = MsgGrant.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); - return promise.then(data => MsgGrantResponse.decode(new BinaryReader(data))); - } - exec(request) { - const data = MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); - return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); - } - revoke(request) { - const data = MsgRevoke.encode(request).finish(); - const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); - return promise.then(data => MsgRevokeResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js b/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js deleted file mode 100644 index 3f323ad6..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/authz.js +++ /dev/null @@ -1,76 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseSendAuthorization() { - return { - $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - spendLimit: [] - }; -} -export const SendAuthorization = { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.spendLimit) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSendAuthorization(); - message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.spend_limit = message.spendLimit; - } - return obj; - }, - fromAminoMsg(object) { - return SendAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SendAuthorization", - value: SendAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SendAuthorization.decode(message.value); - }, - toProto(message) { - return SendAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", - value: SendAuthorization.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js b/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js deleted file mode 100644 index dd04a706..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/bank.js +++ /dev/null @@ -1,661 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseParams() { - return { - sendEnabled: [], - defaultSendEnabled: false - }; -} -export const Params = { - typeUrl: "/cosmos.bank.v1beta1.Params", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.sendEnabled) { - SendEnabled.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultSendEnabled === true) { - writer.uint32(16).bool(message.defaultSendEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32())); - break; - case 2: - message.defaultSendEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || []; - message.defaultSendEnabled = object.defaultSendEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || []; - if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) { - message.defaultSendEnabled = object.default_send_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sendEnabled) { - obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined); - } - else { - obj.send_enabled = message.sendEnabled; - } - obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseSendEnabled() { - return { - denom: "", - enabled: false - }; -} -export const SendEnabled = { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSendEnabled(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSendEnabled(); - message.denom = object.denom ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSendEnabled(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return SendEnabled.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SendEnabled", - value: SendEnabled.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SendEnabled.decode(message.value); - }, - toProto(message) { - return SendEnabled.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.SendEnabled", - value: SendEnabled.encode(message).finish() - }; - } -}; -function createBaseInput() { - return { - address: "", - coins: [] - }; -} -export const Input = { - typeUrl: "/cosmos.bank.v1beta1.Input", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return Input.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Input", - value: Input.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Input.decode(message.value); - }, - toProto(message) { - return Input.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Input", - value: Input.encode(message).finish() - }; - } -}; -function createBaseOutput() { - return { - address: "", - coins: [] - }; -} -export const Output = { - typeUrl: "/cosmos.bank.v1beta1.Output", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOutput(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOutput(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseOutput(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return Output.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Output", - value: Output.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Output.decode(message.value); - }, - toProto(message) { - return Output.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Output", - value: Output.encode(message).finish() - }; - } -}; -function createBaseSupply() { - return { - $typeUrl: "/cosmos.bank.v1beta1.Supply", - total: [] - }; -} -export const Supply = { - typeUrl: "/cosmos.bank.v1beta1.Supply", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.total) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSupply(); - message.total = object.total?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSupply(); - message.total = object.total?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.total) { - obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object) { - return Supply.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Supply", - value: Supply.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Supply.decode(message.value); - }, - toProto(message) { - return Supply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Supply", - value: Supply.encode(message).finish() - }; - } -}; -function createBaseDenomUnit() { - return { - denom: "", - exponent: 0, - aliases: [] - }; -} -export const DenomUnit = { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.exponent !== 0) { - writer.uint32(16).uint32(message.exponent); - } - for (const v of message.aliases) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomUnit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.exponent = reader.uint32(); - break; - case 3: - message.aliases.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomUnit(); - message.denom = object.denom ?? ""; - message.exponent = object.exponent ?? 0; - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDenomUnit(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - message.aliases = object.aliases?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - if (message.aliases) { - obj.aliases = message.aliases.map(e => e); - } - else { - obj.aliases = message.aliases; - } - return obj; - }, - fromAminoMsg(object) { - return DenomUnit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomUnit", - value: DenomUnit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DenomUnit.decode(message.value); - }, - toProto(message) { - return DenomUnit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomUnit", - value: DenomUnit.encode(message).finish() - }; - } -}; -function createBaseMetadata() { - return { - description: "", - denomUnits: [], - base: "", - display: "", - name: "", - symbol: "", - uri: "", - uriHash: "" - }; -} -export const Metadata = { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - encode(message, writer = BinaryWriter.create()) { - if (message.description !== "") { - writer.uint32(10).string(message.description); - } - for (const v of message.denomUnits) { - DenomUnit.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.base !== "") { - writer.uint32(26).string(message.base); - } - if (message.display !== "") { - writer.uint32(34).string(message.display); - } - if (message.name !== "") { - writer.uint32(42).string(message.name); - } - if (message.symbol !== "") { - writer.uint32(50).string(message.symbol); - } - if (message.uri !== "") { - writer.uint32(58).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(66).string(message.uriHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = reader.string(); - break; - case 2: - message.denomUnits.push(DenomUnit.decode(reader, reader.uint32())); - break; - case 3: - message.base = reader.string(); - break; - case 4: - message.display = reader.string(); - break; - case 5: - message.name = reader.string(); - break; - case 6: - message.symbol = reader.string(); - break; - case 7: - message.uri = reader.string(); - break; - case 8: - message.uriHash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMetadata(); - message.description = object.description ?? ""; - message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || []; - message.base = object.base ?? ""; - message.display = object.display ?? ""; - message.name = object.name ?? ""; - message.symbol = object.symbol ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMetadata(); - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.denomUnits = object.denom_units?.map(e => DenomUnit.fromAmino(e)) || []; - if (object.base !== undefined && object.base !== null) { - message.base = object.base; - } - if (object.display !== undefined && object.display !== null) { - message.display = object.display; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.symbol !== undefined && object.symbol !== null) { - message.symbol = object.symbol; - } - if (object.uri !== undefined && object.uri !== null) { - message.uri = object.uri; - } - if (object.uri_hash !== undefined && object.uri_hash !== null) { - message.uriHash = object.uri_hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description === "" ? undefined : message.description; - if (message.denomUnits) { - obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined); - } - else { - obj.denom_units = message.denomUnits; - } - obj.base = message.base === "" ? undefined : message.base; - obj.display = message.display === "" ? undefined : message.display; - obj.name = message.name === "" ? undefined : message.name; - obj.symbol = message.symbol === "" ? undefined : message.symbol; - obj.uri = message.uri === "" ? undefined : message.uri; - obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; - return obj; - }, - fromAminoMsg(object) { - return Metadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Metadata", - value: Metadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Metadata.decode(message.value); - }, - toProto(message) { - return Metadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Metadata", - value: Metadata.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js deleted file mode 100644 index e78dacb8..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/genesis.js +++ /dev/null @@ -1,202 +0,0 @@ -//@ts-nocheck -import { Params, Metadata } from "./bank"; -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - params: Params.fromPartial({}), - balances: [], - supply: [], - denomMetadata: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.balances) { - Balance.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.supply) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.denomMetadata) { - Metadata.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.balances.push(Balance.decode(reader, reader.uint32())); - break; - case 3: - message.supply.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.denomMetadata.push(Metadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; - message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; - message.denomMetadata = object.denomMetadata?.map(e => Metadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; - message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; - message.denomMetadata = object.denom_metadata?.map(e => Metadata.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.supply = message.supply; - } - if (message.denomMetadata) { - obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined); - } - else { - obj.denom_metadata = message.denomMetadata; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance() { - return { - address: "", - coins: [] - }; -} -export const Balance = { - typeUrl: "/cosmos.bank.v1beta1.Balance", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.coins) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.coins.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.coins = object.coins?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - message.coins = object.coins?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - if (message.coins) { - obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.coins = message.coins; - } - return obj; - }, - fromAminoMsg(object) { - return Balance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Balance", - value: Balance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Balance.decode(message.value); - }, - toProto(message) { - return Balance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.Balance", - value: Balance.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.js deleted file mode 100644 index d9f5b60d..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/query.js +++ /dev/null @@ -1,1438 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Coin } from "../../base/v1beta1/coin"; -import { Params, Metadata } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryBalanceRequest() { - return { - address: "", - denom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryBalanceRequest", - value: QueryBalanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - balance: undefined - }; -} -export const QueryBalanceResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryBalanceResponse", - value: QueryBalanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -export const QueryAllBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllBalancesRequest", - value: QueryAllBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllBalancesRequest.decode(message.value); - }, - toProto(message) { - return QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", - value: QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -export const QueryAllBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllBalancesResponse", - value: QueryAllBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllBalancesResponse.decode(message.value); - }, - toProto(message) { - return QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", - value: QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -export const QuerySpendableBalancesRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySpendableBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySpendableBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySpendableBalancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySpendableBalancesRequest", - value: QuerySpendableBalancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySpendableBalancesRequest.decode(message.value); - }, - toProto(message) { - return QuerySpendableBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", - value: QuerySpendableBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySpendableBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -export const QuerySpendableBalancesResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySpendableBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySpendableBalancesResponse(); - message.balances = object.balances?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySpendableBalancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySpendableBalancesResponse", - value: QuerySpendableBalancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySpendableBalancesResponse.decode(message.value); - }, - toProto(message) { - return QuerySpendableBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", - value: QuerySpendableBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyRequest() { - return { - pagination: undefined - }; -} -export const QueryTotalSupplyRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTotalSupplyRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTotalSupplyRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTotalSupplyRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTotalSupplyRequest", - value: QueryTotalSupplyRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTotalSupplyRequest.decode(message.value); - }, - toProto(message) { - return QueryTotalSupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", - value: QueryTotalSupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTotalSupplyResponse() { - return { - supply: [], - pagination: undefined - }; -} -export const QueryTotalSupplyResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.supply) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTotalSupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.supply.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => Coin.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTotalSupplyResponse(); - message.supply = object.supply?.map(e => Coin.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.supply) { - obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.supply = message.supply; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTotalSupplyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTotalSupplyResponse", - value: QueryTotalSupplyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTotalSupplyResponse.decode(message.value); - }, - toProto(message) { - return QueryTotalSupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", - value: QueryTotalSupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfRequest() { - return { - denom: "" - }; -} -export const QuerySupplyOfRequest = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyOfRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyOfRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyOfRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySupplyOfRequest", - value: QuerySupplyOfRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySupplyOfRequest.decode(message.value); - }, - toProto(message) { - return QuerySupplyOfRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", - value: QuerySupplyOfRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyOfResponse() { - return { - amount: Coin.fromPartial({}) - }; -} -export const QuerySupplyOfResponse = { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyOfResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyOfResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyOfResponse(); - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyOfResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySupplyOfResponse", - value: QuerySupplyOfResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySupplyOfResponse.decode(message.value); - }, - toProto(message) { - return QuerySupplyOfResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", - value: QuerySupplyOfResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataRequest() { - return { - pagination: undefined - }; -} -export const QueryDenomsMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomsMetadataRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomsMetadataRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomsMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomsMetadataRequest", - value: QueryDenomsMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomsMetadataRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomsMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", - value: QueryDenomsMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomsMetadataResponse() { - return { - metadatas: [], - pagination: undefined - }; -} -export const QueryDenomsMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.metadatas) { - Metadata.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomsMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadatas.push(Metadata.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => Metadata.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomsMetadataResponse(); - message.metadatas = object.metadatas?.map(e => Metadata.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.metadatas) { - obj.metadatas = message.metadatas.map(e => e ? Metadata.toAmino(e) : undefined); - } - else { - obj.metadatas = message.metadatas; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomsMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomsMetadataResponse", - value: QueryDenomsMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomsMetadataResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomsMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", - value: QueryDenomsMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataRequest() { - return { - denom: "" - }; -} -export const QueryDenomMetadataRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomMetadataRequest(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomMetadataRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomMetadataRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomMetadataRequest", - value: QueryDenomMetadataRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomMetadataRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomMetadataRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", - value: QueryDenomMetadataRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomMetadataResponse() { - return { - metadata: Metadata.fromPartial({}) - }; -} -export const QueryDenomMetadataResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.metadata !== undefined) { - Metadata.encode(message.metadata, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = Metadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomMetadataResponse(); - message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomMetadataResponse(); - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = Metadata.fromAmino(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomMetadataResponse", - value: QueryDenomMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomMetadataResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", - value: QueryDenomMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersRequest() { - return { - denom: "", - pagination: undefined - }; -} -export const QueryDenomOwnersRequest = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomOwnersRequest(); - message.denom = object.denom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomOwnersRequest(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomOwnersRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomOwnersRequest", - value: QueryDenomOwnersRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomOwnersRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomOwnersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", - value: QueryDenomOwnersRequest.encode(message).finish() - }; - } -}; -function createBaseDenomOwner() { - return { - address: "", - balance: Coin.fromPartial({}) - }; -} -export const DenomOwner = { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomOwner(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomOwner(); - message.address = object.address ?? ""; - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDenomOwner(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DenomOwner.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomOwner", - value: DenomOwner.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DenomOwner.decode(message.value); - }, - toProto(message) { - return DenomOwner.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.DenomOwner", - value: DenomOwner.encode(message).finish() - }; - } -}; -function createBaseQueryDenomOwnersResponse() { - return { - denomOwners: [], - pagination: undefined - }; -} -export const QueryDenomOwnersResponse = { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.denomOwners) { - DenomOwner.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomOwnersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomOwners.push(DenomOwner.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denomOwners?.map(e => DenomOwner.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomOwnersResponse(); - message.denomOwners = object.denom_owners?.map(e => DenomOwner.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.denomOwners) { - obj.denom_owners = message.denomOwners.map(e => e ? DenomOwner.toAmino(e) : undefined); - } - else { - obj.denom_owners = message.denomOwners; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomOwnersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomOwnersResponse", - value: QueryDenomOwnersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomOwnersResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomOwnersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", - value: QueryDenomOwnersResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js deleted file mode 100644 index 0d6befa5..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/query.lcd.js +++ /dev/null @@ -1,115 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - /* Balance queries the balance of a single coin for a single account. */ - async balance(params) { - const options = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries the balance of all coins for a single account. */ - async allBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* SpendableBalances queries the spenable balance of all coins for a single - account. - - Since: cosmos-sdk 0.46 */ - async spendableBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TotalSupply queries the total supply of all coins. */ - async totalSupply(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/supply`; - return await this.req.get(endpoint, options); - } - /* SupplyOf queries the supply of a single coin. */ - async supplyOf(params) { - const options = { - params: {} - }; - if (typeof params?.denom !== "undefined") { - options.params.denom = params.denom; - } - const endpoint = `cosmos/bank/v1beta1/supply/by_denom`; - return await this.req.get(endpoint, options); - } - /* Params queries the parameters of x/bank module. */ - async params(_params = {}) { - const endpoint = `cosmos/bank/v1beta1/params`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata of a given coin denomination. */ - async denomMetadata(params) { - const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`; - return await this.req.get(endpoint); - } - /* DenomsMetadata queries the client metadata for all registered coin - denominations. */ - async denomsMetadata(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denoms_metadata`; - return await this.req.get(endpoint, options); - } - /* DenomOwners queries for all account addresses that own a particular token - denomination. - - Since: cosmos-sdk 0.46 */ - async denomOwners(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`; - return await this.req.get(endpoint, options); - } -} diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js deleted file mode 100644 index 85bf0a91..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,100 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.balance = this.balance.bind(this); - this.allBalances = this.allBalances.bind(this); - this.spendableBalances = this.spendableBalances.bind(this); - this.totalSupply = this.totalSupply.bind(this); - this.supplyOf = this.supplyOf.bind(this); - this.params = this.params.bind(this); - this.denomMetadata = this.denomMetadata.bind(this); - this.denomsMetadata = this.denomsMetadata.bind(this); - this.denomOwners = this.denomOwners.bind(this); - } - balance(request) { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - allBalances(request) { - const data = QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); - return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); - } - spendableBalances(request) { - const data = QuerySpendableBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); - return promise.then(data => QuerySpendableBalancesResponse.decode(new BinaryReader(data))); - } - totalSupply(request = { - pagination: undefined - }) { - const data = QueryTotalSupplyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); - return promise.then(data => QueryTotalSupplyResponse.decode(new BinaryReader(data))); - } - supplyOf(request) { - const data = QuerySupplyOfRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); - return promise.then(data => QuerySupplyOfResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - denomMetadata(request) { - const data = QueryDenomMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); - return promise.then(data => QueryDenomMetadataResponse.decode(new BinaryReader(data))); - } - denomsMetadata(request = { - pagination: undefined - }) { - const data = QueryDenomsMetadataRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); - return promise.then(data => QueryDenomsMetadataResponse.decode(new BinaryReader(data))); - } - denomOwners(request) { - const data = QueryDenomOwnersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); - return promise.then(data => QueryDenomOwnersResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - balance(request) { - return queryService.balance(request); - }, - allBalances(request) { - return queryService.allBalances(request); - }, - spendableBalances(request) { - return queryService.spendableBalances(request); - }, - totalSupply(request) { - return queryService.totalSupply(request); - }, - supplyOf(request) { - return queryService.supplyOf(request); - }, - params(request) { - return queryService.params(request); - }, - denomMetadata(request) { - return queryService.denomMetadata(request); - }, - denomsMetadata(request) { - return queryService.denomsMetadata(request); - }, - denomOwners(request) { - return queryService.denomOwners(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js deleted file mode 100644 index 38fd8ad2..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.amino.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ts-nocheck -import { MsgSend, MsgMultiSend } from "./tx"; -export const AminoConverter = { - "/cosmos.bank.v1beta1.MsgSend": { - aminoType: "cosmos-sdk/MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/cosmos.bank.v1beta1.MsgMultiSend": { - aminoType: "cosmos-sdk/MsgMultiSend", - toAmino: MsgMultiSend.toAmino, - fromAmino: MsgMultiSend.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js deleted file mode 100644 index c148754a..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.js +++ /dev/null @@ -1,299 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { Input, Output } from "./bank"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgSend() { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -export const MsgSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - encode(message, writer = BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSend", - value: MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSend.decode(message.value); - }, - toProto(message) { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSendResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSendResponse", - value: MsgSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSendResponse.decode(message.value); - }, - toProto(message) { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSend() { - return { - inputs: [], - outputs: [] - }; -} -export const MsgMultiSend = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.inputs) { - Input.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.outputs) { - Output.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs.push(Input.decode(reader, reader.uint32())); - break; - case 2: - message.outputs.push(Output.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => Input.fromPartial(e)) || []; - message.outputs = object.outputs?.map(e => Output.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgMultiSend(); - message.inputs = object.inputs?.map(e => Input.fromAmino(e)) || []; - message.outputs = object.outputs?.map(e => Output.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.inputs) { - obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined); - } - else { - obj.inputs = message.inputs; - } - if (message.outputs) { - obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined); - } - else { - obj.outputs = message.outputs; - } - return obj; - }, - fromAminoMsg(object) { - return MsgMultiSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgMultiSend", - value: MsgMultiSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgMultiSend.decode(message.value); - }, - toProto(message) { - return MsgMultiSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.encode(message).finish() - }; - } -}; -function createBaseMsgMultiSendResponse() { - return {}; -} -export const MsgMultiSendResponse = { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMultiSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgMultiSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgMultiSendResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgMultiSendResponse", - value: MsgMultiSendResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgMultiSendResponse.decode(message.value); - }, - toProto(message) { - return MsgMultiSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", - value: MsgMultiSendResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js deleted file mode 100644 index 5bdf1132..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.registry.js +++ /dev/null @@ -1,51 +0,0 @@ -import { MsgSend, MsgMultiSend } from "./tx"; -export const registry = [["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.encode(value).finish() - }; - } - }, - withTypeUrl: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value - }; - } - }, - fromPartial: { - send(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - multiSend(value) { - return { - typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", - value: MsgMultiSend.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 6670fa19..00000000 --- a/packages/api/dist/esm/cosmos/bank/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,20 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.send = this.send.bind(this); - this.multiSend = this.multiSend.bind(this); - } - send(request) { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - multiSend(request) { - const data = MsgMultiSend.encode(request).finish(); - const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); - return promise.then(data => MsgMultiSendResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js b/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js deleted file mode 100644 index 11f361af..00000000 --- a/packages/api/dist/esm/cosmos/base/abci/v1beta1/abci.js +++ /dev/null @@ -1,1058 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../../google/protobuf/any"; -import { Event } from "../../../../tendermint/abci/types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseTxResponse() { - return { - height: BigInt(0), - txhash: "", - codespace: "", - code: 0, - data: "", - rawLog: "", - logs: [], - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - tx: undefined, - timestamp: "", - events: [] - }; -} -export const TxResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.txhash !== "") { - writer.uint32(18).string(message.txhash); - } - if (message.codespace !== "") { - writer.uint32(26).string(message.codespace); - } - if (message.code !== 0) { - writer.uint32(32).uint32(message.code); - } - if (message.data !== "") { - writer.uint32(42).string(message.data); - } - if (message.rawLog !== "") { - writer.uint32(50).string(message.rawLog); - } - for (const v of message.logs) { - ABCIMessageLog.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.info !== "") { - writer.uint32(66).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(72).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(80).int64(message.gasUsed); - } - if (message.tx !== undefined) { - Any.encode(message.tx, writer.uint32(90).fork()).ldelim(); - } - if (message.timestamp !== "") { - writer.uint32(98).string(message.timestamp); - } - for (const v of message.events) { - Event.encode(v, writer.uint32(106).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.txhash = reader.string(); - break; - case 3: - message.codespace = reader.string(); - break; - case 4: - message.code = reader.uint32(); - break; - case 5: - message.data = reader.string(); - break; - case 6: - message.rawLog = reader.string(); - break; - case 7: - message.logs.push(ABCIMessageLog.decode(reader, reader.uint32())); - break; - case 8: - message.info = reader.string(); - break; - case 9: - message.gasWanted = reader.int64(); - break; - case 10: - message.gasUsed = reader.int64(); - break; - case 11: - message.tx = Any.decode(reader, reader.uint32()); - break; - case 12: - message.timestamp = reader.string(); - break; - case 13: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.txhash = object.txhash ?? ""; - message.codespace = object.codespace ?? ""; - message.code = object.code ?? 0; - message.data = object.data ?? ""; - message.rawLog = object.rawLog ?? ""; - message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || []; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined; - message.timestamp = object.timestamp ?? ""; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.txhash !== undefined && object.txhash !== null) { - message.txhash = object.txhash; - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.raw_log !== undefined && object.raw_log !== null) { - message.rawLog = object.raw_log; - } - message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || []; - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = Any.fromAmino(object.tx); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = object.timestamp; - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.txhash = message.txhash === "" ? undefined : message.txhash; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data === "" ? undefined : message.data; - obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; - if (message.logs) { - obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined); - } - else { - obj.logs = message.logs; - } - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - obj.tx = message.tx ? Any.toAmino(message.tx) : undefined; - obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return TxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxResponse", - value: TxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TxResponse.decode(message.value); - }, - toProto(message) { - return TxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxResponse", - value: TxResponse.encode(message).finish() - }; - } -}; -function createBaseABCIMessageLog() { - return { - msgIndex: 0, - log: "", - events: [] - }; -} -export const ABCIMessageLog = { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - encode(message, writer = BinaryWriter.create()) { - if (message.msgIndex !== 0) { - writer.uint32(8).uint32(message.msgIndex); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - StringEvent.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseABCIMessageLog(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgIndex = reader.uint32(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(StringEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseABCIMessageLog(); - message.msgIndex = object.msgIndex ?? 0; - message.log = object.log ?? ""; - message.events = object.events?.map(e => StringEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseABCIMessageLog(); - if (object.msg_index !== undefined && object.msg_index !== null) { - message.msgIndex = object.msg_index; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => StringEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_index = message.msgIndex ?? 0; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return ABCIMessageLog.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ABCIMessageLog", - value: ABCIMessageLog.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ABCIMessageLog.decode(message.value); - }, - toProto(message) { - return ABCIMessageLog.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog", - value: ABCIMessageLog.encode(message).finish() - }; - } -}; -function createBaseStringEvent() { - return { - type: "", - attributes: [] - }; -} -export const StringEvent = { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - Attribute.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStringEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(Attribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStringEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseStringEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined); - } - else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object) { - return StringEvent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/StringEvent", - value: StringEvent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return StringEvent.decode(message.value); - }, - toProto(message) { - return StringEvent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.StringEvent", - value: StringEvent.encode(message).finish() - }; - } -}; -function createBaseAttribute() { - return { - key: "", - value: "" - }; -} -export const Attribute = { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object) { - return Attribute.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Attribute", - value: Attribute.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Attribute.decode(message.value); - }, - toProto(message) { - return Attribute.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Attribute", - value: Attribute.encode(message).finish() - }; - } -}; -function createBaseGasInfo() { - return { - gasWanted: BigInt(0), - gasUsed: BigInt(0) - }; -} -export const GasInfo = { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.gasWanted !== BigInt(0)) { - writer.uint32(8).uint64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(16).uint64(message.gasUsed); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGasInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasWanted = reader.uint64(); - break; - case 2: - message.gasUsed = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGasInfo(); - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGasInfo(); - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return GasInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GasInfo", - value: GasInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GasInfo.decode(message.value); - }, - toProto(message) { - return GasInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.GasInfo", - value: GasInfo.encode(message).finish() - }; - } -}; -function createBaseResult() { - return { - data: new Uint8Array(), - log: "", - events: [], - msgResponses: [] - }; -} -export const Result = { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - encode(message, writer = BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(18).string(message.log); - } - for (const v of message.events) { - Event.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.msgResponses) { - Any.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.log = reader.string(); - break; - case 3: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 4: - message.msgResponses.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResult(); - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResult(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object) { - return Result.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Result", - value: Result.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Result.decode(message.value); - }, - toProto(message) { - return Result.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.Result", - value: Result.encode(message).finish() - }; - } -}; -function createBaseSimulationResponse() { - return { - gasInfo: GasInfo.fromPartial({}), - result: undefined - }; -} -export const SimulationResponse = { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.gasInfo !== undefined) { - GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulationResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSimulationResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = Result.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SimulationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulationResponse", - value: SimulationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SimulationResponse.decode(message.value); - }, - toProto(message) { - return SimulationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse", - value: SimulationResponse.encode(message).finish() - }; - } -}; -function createBaseMsgData() { - return { - msgType: "", - data: new Uint8Array() - }; -} -export const MsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - encode(message, writer = BinaryWriter.create()) { - if (message.msgType !== "") { - writer.uint32(10).string(message.msgType); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgType = reader.string(); - break; - case 2: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgData(); - message.msgType = object.msgType ?? ""; - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseMsgData(); - if (object.msg_type !== undefined && object.msg_type !== null) { - message.msgType = object.msg_type; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type = message.msgType === "" ? undefined : message.msgType; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgData", - value: MsgData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgData.decode(message.value); - }, - toProto(message) { - return MsgData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.MsgData", - value: MsgData.encode(message).finish() - }; - } -}; -function createBaseTxMsgData() { - return { - data: [], - msgResponses: [] - }; -} -export const TxMsgData = { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.data) { - MsgData.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.msgResponses) { - Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxMsgData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data.push(MsgData.decode(reader, reader.uint32())); - break; - case 2: - message.msgResponses.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => MsgData.fromPartial(e)) || []; - message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxMsgData(); - message.data = object.data?.map(e => MsgData.fromAmino(e)) || []; - message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.data) { - obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined); - } - else { - obj.data = message.data; - } - if (message.msgResponses) { - obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.msg_responses = message.msgResponses; - } - return obj; - }, - fromAminoMsg(object) { - return TxMsgData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxMsgData", - value: TxMsgData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TxMsgData.decode(message.value); - }, - toProto(message) { - return TxMsgData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData", - value: TxMsgData.encode(message).finish() - }; - } -}; -function createBaseSearchTxsResult() { - return { - totalCount: BigInt(0), - count: BigInt(0), - pageNumber: BigInt(0), - pageTotal: BigInt(0), - limit: BigInt(0), - txs: [] - }; -} -export const SearchTxsResult = { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - encode(message, writer = BinaryWriter.create()) { - if (message.totalCount !== BigInt(0)) { - writer.uint32(8).uint64(message.totalCount); - } - if (message.count !== BigInt(0)) { - writer.uint32(16).uint64(message.count); - } - if (message.pageNumber !== BigInt(0)) { - writer.uint32(24).uint64(message.pageNumber); - } - if (message.pageTotal !== BigInt(0)) { - writer.uint32(32).uint64(message.pageTotal); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - for (const v of message.txs) { - TxResponse.encode(v, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSearchTxsResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.totalCount = reader.uint64(); - break; - case 2: - message.count = reader.uint64(); - break; - case 3: - message.pageNumber = reader.uint64(); - break; - case 4: - message.pageTotal = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - case 6: - message.txs.push(TxResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSearchTxsResult(); - message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0); - message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0); - message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0); - message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSearchTxsResult(); - if (object.total_count !== undefined && object.total_count !== null) { - message.totalCount = BigInt(object.total_count); - } - if (object.count !== undefined && object.count !== null) { - message.count = BigInt(object.count); - } - if (object.page_number !== undefined && object.page_number !== null) { - message.pageNumber = BigInt(object.page_number); - } - if (object.page_total !== undefined && object.page_total !== null) { - message.pageTotal = BigInt(object.page_total); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; - obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; - obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; - obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return SearchTxsResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SearchTxsResult", - value: SearchTxsResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SearchTxsResult.decode(message.value); - }, - toProto(message) { - return SearchTxsResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult", - value: SearchTxsResult.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js deleted file mode 100644 index 142f4d62..00000000 --- a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.js +++ /dev/null @@ -1,127 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseConfigRequest() { - return {}; -} -export const ConfigRequest = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseConfigRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseConfigRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return ConfigRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigRequest", - value: ConfigRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ConfigRequest.decode(message.value); - }, - toProto(message) { - return ConfigRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", - value: ConfigRequest.encode(message).finish() - }; - } -}; -function createBaseConfigResponse() { - return { - minimumGasPrice: "" - }; -} -export const ConfigResponse = { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.minimumGasPrice !== "") { - writer.uint32(10).string(message.minimumGasPrice); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minimumGasPrice = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConfigResponse(); - message.minimumGasPrice = object.minimumGasPrice ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConfigResponse(); - if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) { - message.minimumGasPrice = object.minimum_gas_price; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice; - return obj; - }, - fromAminoMsg(object) { - return ConfigResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigResponse", - value: ConfigResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ConfigResponse.decode(message.value); - }, - toProto(message) { - return ConfigResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", - value: ConfigResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js deleted file mode 100644 index 31c82b7a..00000000 --- a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.lcd.js +++ /dev/null @@ -1,12 +0,0 @@ -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.config = this.config.bind(this); - } - /* Config queries for the operator configuration. */ - async config(_params = {}) { - const endpoint = `cosmos/base/node/v1beta1/config`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js b/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js deleted file mode 100644 index 16b59d42..00000000 --- a/packages/api/dist/esm/cosmos/base/node/v1beta1/query.rpc.Service.js +++ /dev/null @@ -1,24 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { ConfigRequest, ConfigResponse } from "./query"; -export class ServiceClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.config = this.config.bind(this); - } - config(request = {}) { - const data = ConfigRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data); - return promise.then(data => ConfigResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new ServiceClientImpl(rpc); - return { - config(request) { - return queryService.config(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js b/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js deleted file mode 100644 index 0ef2c5a0..00000000 --- a/packages/api/dist/esm/cosmos/base/query/v1beta1/pagination.js +++ /dev/null @@ -1,201 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBasePageRequest() { - return { - key: new Uint8Array(), - offset: BigInt(0), - limit: BigInt(0), - countTotal: false, - reverse: false - }; -} -export const PageRequest = { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.offset !== BigInt(0)) { - writer.uint32(16).uint64(message.offset); - } - if (message.limit !== BigInt(0)) { - writer.uint32(24).uint64(message.limit); - } - if (message.countTotal === true) { - writer.uint32(32).bool(message.countTotal); - } - if (message.reverse === true) { - writer.uint32(40).bool(message.reverse); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.offset = reader.uint64(); - break; - case 3: - message.limit = reader.uint64(); - break; - case 4: - message.countTotal = reader.bool(); - break; - case 5: - message.reverse = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePageRequest(); - message.key = object.key ?? new Uint8Array(); - message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - message.countTotal = object.countTotal ?? false; - message.reverse = object.reverse ?? false; - return message; - }, - fromAmino(object) { - const message = createBasePageRequest(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.offset !== undefined && object.offset !== null) { - message.offset = BigInt(object.offset); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - if (object.count_total !== undefined && object.count_total !== null) { - message.countTotal = object.count_total; - } - if (object.reverse !== undefined && object.reverse !== null) { - message.reverse = object.reverse; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - obj.count_total = message.countTotal === false ? undefined : message.countTotal; - obj.reverse = message.reverse === false ? undefined : message.reverse; - return obj; - }, - fromAminoMsg(object) { - return PageRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PageRequest", - value: PageRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PageRequest.decode(message.value); - }, - toProto(message) { - return PageRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageRequest", - value: PageRequest.encode(message).finish() - }; - } -}; -function createBasePageResponse() { - return { - nextKey: new Uint8Array(), - total: BigInt(0) - }; -} -export const PageResponse = { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.nextKey.length !== 0) { - writer.uint32(10).bytes(message.nextKey); - } - if (message.total !== BigInt(0)) { - writer.uint32(16).uint64(message.total); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePageResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nextKey = reader.bytes(); - break; - case 2: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePageResponse(); - message.nextKey = object.nextKey ?? new Uint8Array(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBasePageResponse(); - if (object.next_key !== undefined && object.next_key !== null) { - message.nextKey = bytesFromBase64(object.next_key); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return PageResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PageResponse", - value: PageResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PageResponse.decode(message.value); - }, - toProto(message) { - return PageResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.query.v1beta1.PageResponse", - value: PageResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js b/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js deleted file mode 100644 index 9bfad250..00000000 --- a/packages/api/dist/esm/cosmos/base/reflection/v2alpha1/reflection.js +++ /dev/null @@ -1,1922 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseAppDescriptor() { - return { - authn: undefined, - chain: undefined, - codec: undefined, - configuration: undefined, - queryServices: undefined, - tx: undefined - }; -} -export const AppDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.authn !== undefined) { - AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - if (message.chain !== undefined) { - ChainDescriptor.encode(message.chain, writer.uint32(18).fork()).ldelim(); - } - if (message.codec !== undefined) { - CodecDescriptor.encode(message.codec, writer.uint32(26).fork()).ldelim(); - } - if (message.configuration !== undefined) { - ConfigurationDescriptor.encode(message.configuration, writer.uint32(34).fork()).ldelim(); - } - if (message.queryServices !== undefined) { - QueryServicesDescriptor.encode(message.queryServices, writer.uint32(42).fork()).ldelim(); - } - if (message.tx !== undefined) { - TxDescriptor.encode(message.tx, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAppDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = AuthnDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.chain = ChainDescriptor.decode(reader, reader.uint32()); - break; - case 3: - message.codec = CodecDescriptor.decode(reader, reader.uint32()); - break; - case 4: - message.configuration = ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - case 5: - message.queryServices = QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - case 6: - message.tx = TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAppDescriptor(); - message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; - message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; - message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; - message.configuration = object.configuration !== undefined && object.configuration !== null ? ConfigurationDescriptor.fromPartial(object.configuration) : undefined; - message.queryServices = object.queryServices !== undefined && object.queryServices !== null ? QueryServicesDescriptor.fromPartial(object.queryServices) : undefined; - message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAppDescriptor(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = AuthnDescriptor.fromAmino(object.authn); - } - if (object.chain !== undefined && object.chain !== null) { - message.chain = ChainDescriptor.fromAmino(object.chain); - } - if (object.codec !== undefined && object.codec !== null) { - message.codec = CodecDescriptor.fromAmino(object.codec); - } - if (object.configuration !== undefined && object.configuration !== null) { - message.configuration = ConfigurationDescriptor.fromAmino(object.configuration); - } - if (object.query_services !== undefined && object.query_services !== null) { - message.queryServices = QueryServicesDescriptor.fromAmino(object.query_services); - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; - obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; - obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; - obj.configuration = message.configuration ? ConfigurationDescriptor.toAmino(message.configuration) : undefined; - obj.query_services = message.queryServices ? QueryServicesDescriptor.toAmino(message.queryServices) : undefined; - obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AppDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AppDescriptor", - value: AppDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AppDescriptor.decode(message.value); - }, - toProto(message) { - return AppDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor", - value: AppDescriptor.encode(message).finish() - }; - } -}; -function createBaseTxDescriptor() { - return { - fullname: "", - msgs: [] - }; -} -export const TxDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.msgs) { - MsgDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.msgs.push(MsgDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxDescriptor(); - message.fullname = object.fullname ?? ""; - message.msgs = object.msgs?.map(e => MsgDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.msgs = object.msgs?.map(e => MsgDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.msgs) { - obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toAmino(e) : undefined); - } - else { - obj.msgs = message.msgs; - } - return obj; - }, - fromAminoMsg(object) { - return TxDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxDescriptor", - value: TxDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TxDescriptor.decode(message.value); - }, - toProto(message) { - return TxDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor", - value: TxDescriptor.encode(message).finish() - }; - } -}; -function createBaseAuthnDescriptor() { - return { - signModes: [] - }; -} -export const AuthnDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.signModes) { - SigningModeDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthnDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signModes.push(SigningModeDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuthnDescriptor(); - message.signModes = object.signModes?.map(e => SigningModeDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseAuthnDescriptor(); - message.signModes = object.sign_modes?.map(e => SigningModeDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signModes) { - obj.sign_modes = message.signModes.map(e => e ? SigningModeDescriptor.toAmino(e) : undefined); - } - else { - obj.sign_modes = message.signModes; - } - return obj; - }, - fromAminoMsg(object) { - return AuthnDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuthnDescriptor", - value: AuthnDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AuthnDescriptor.decode(message.value); - }, - toProto(message) { - return AuthnDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor", - value: AuthnDescriptor.encode(message).finish() - }; - } -}; -function createBaseSigningModeDescriptor() { - return { - name: "", - number: 0, - authnInfoProviderMethodFullname: "" - }; -} -export const SigningModeDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.authnInfoProviderMethodFullname !== "") { - writer.uint32(26).string(message.authnInfoProviderMethodFullname); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSigningModeDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.authnInfoProviderMethodFullname = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSigningModeDescriptor(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.authnInfoProviderMethodFullname = object.authnInfoProviderMethodFullname ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseSigningModeDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.authn_info_provider_method_fullname !== undefined && object.authn_info_provider_method_fullname !== null) { - message.authnInfoProviderMethodFullname = object.authn_info_provider_method_fullname; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; - return obj; - }, - fromAminoMsg(object) { - return SigningModeDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SigningModeDescriptor", - value: SigningModeDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SigningModeDescriptor.decode(message.value); - }, - toProto(message) { - return SigningModeDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor", - value: SigningModeDescriptor.encode(message).finish() - }; - } -}; -function createBaseChainDescriptor() { - return { - id: "" - }; -} -export const ChainDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseChainDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseChainDescriptor(); - message.id = object.id ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseChainDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return ChainDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ChainDescriptor", - value: ChainDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ChainDescriptor.decode(message.value); - }, - toProto(message) { - return ChainDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor", - value: ChainDescriptor.encode(message).finish() - }; - } -}; -function createBaseCodecDescriptor() { - return { - interfaces: [] - }; -} -export const CodecDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.interfaces) { - InterfaceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCodecDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaces.push(InterfaceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCodecDescriptor(); - message.interfaces = object.interfaces?.map(e => InterfaceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.interfaces) { - obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toAmino(e) : undefined); - } - else { - obj.interfaces = message.interfaces; - } - return obj; - }, - fromAminoMsg(object) { - return CodecDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CodecDescriptor", - value: CodecDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CodecDescriptor.decode(message.value); - }, - toProto(message) { - return CodecDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor", - value: CodecDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceDescriptor() { - return { - fullname: "", - interfaceAcceptingMessages: [], - interfaceImplementers: [] - }; -} -export const InterfaceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.interfaceAcceptingMessages) { - InterfaceAcceptingMessageDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.interfaceImplementers) { - InterfaceImplementerDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.interfaceAcceptingMessages.push(InterfaceAcceptingMessageDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.interfaceImplementers.push(InterfaceImplementerDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceDescriptor(); - message.fullname = object.fullname ?? ""; - message.interfaceAcceptingMessages = object.interfaceAcceptingMessages?.map(e => InterfaceAcceptingMessageDescriptor.fromPartial(e)) || []; - message.interfaceImplementers = object.interfaceImplementers?.map(e => InterfaceImplementerDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.interfaceAcceptingMessages = object.interface_accepting_messages?.map(e => InterfaceAcceptingMessageDescriptor.fromAmino(e)) || []; - message.interfaceImplementers = object.interface_implementers?.map(e => InterfaceImplementerDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.interfaceAcceptingMessages) { - obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); - } - else { - obj.interface_accepting_messages = message.interfaceAcceptingMessages; - } - if (message.interfaceImplementers) { - obj.interface_implementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toAmino(e) : undefined); - } - else { - obj.interface_implementers = message.interfaceImplementers; - } - return obj; - }, - fromAminoMsg(object) { - return InterfaceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceDescriptor", - value: InterfaceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return InterfaceDescriptor.decode(message.value); - }, - toProto(message) { - return InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor", - value: InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceImplementerDescriptor() { - return { - fullname: "", - typeUrl: "" - }; -} -export const InterfaceImplementerDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.typeUrl !== "") { - writer.uint32(18).string(message.typeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceImplementerDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.typeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceImplementerDescriptor(); - message.fullname = object.fullname ?? ""; - message.typeUrl = object.typeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceImplementerDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.type_url !== undefined && object.type_url !== null) { - message.typeUrl = object.type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; - return obj; - }, - fromAminoMsg(object) { - return InterfaceImplementerDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceImplementerDescriptor", - value: InterfaceImplementerDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return InterfaceImplementerDescriptor.decode(message.value); - }, - toProto(message) { - return InterfaceImplementerDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor", - value: InterfaceImplementerDescriptor.encode(message).finish() - }; - } -}; -function createBaseInterfaceAcceptingMessageDescriptor() { - return { - fullname: "", - fieldDescriptorNames: [] - }; -} -export const InterfaceAcceptingMessageDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - for (const v of message.fieldDescriptorNames) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceAcceptingMessageDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.fieldDescriptorNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - message.fullname = object.fullname ?? ""; - message.fieldDescriptorNames = object.fieldDescriptorNames?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceAcceptingMessageDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - message.fieldDescriptorNames = object.field_descriptor_names?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - if (message.fieldDescriptorNames) { - obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); - } - else { - obj.field_descriptor_names = message.fieldDescriptorNames; - } - return obj; - }, - fromAminoMsg(object) { - return InterfaceAcceptingMessageDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/InterfaceAcceptingMessageDescriptor", - value: InterfaceAcceptingMessageDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return InterfaceAcceptingMessageDescriptor.decode(message.value); - }, - toProto(message) { - return InterfaceAcceptingMessageDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor", - value: InterfaceAcceptingMessageDescriptor.encode(message).finish() - }; - } -}; -function createBaseConfigurationDescriptor() { - return { - bech32AccountAddressPrefix: "" - }; -} -export const ConfigurationDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.bech32AccountAddressPrefix !== "") { - writer.uint32(10).string(message.bech32AccountAddressPrefix); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfigurationDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bech32AccountAddressPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConfigurationDescriptor(); - message.bech32AccountAddressPrefix = object.bech32AccountAddressPrefix ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConfigurationDescriptor(); - if (object.bech32_account_address_prefix !== undefined && object.bech32_account_address_prefix !== null) { - message.bech32AccountAddressPrefix = object.bech32_account_address_prefix; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; - return obj; - }, - fromAminoMsg(object) { - return ConfigurationDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConfigurationDescriptor", - value: ConfigurationDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ConfigurationDescriptor.decode(message.value); - }, - toProto(message) { - return ConfigurationDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor", - value: ConfigurationDescriptor.encode(message).finish() - }; - } -}; -function createBaseMsgDescriptor() { - return { - msgTypeUrl: "" - }; -} -export const MsgDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.msgTypeUrl !== "") { - writer.uint32(10).string(message.msgTypeUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msgTypeUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDescriptor(); - message.msgTypeUrl = object.msgTypeUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDescriptor(); - if (object.msg_type_url !== undefined && object.msg_type_url !== null) { - message.msgTypeUrl = object.msg_type_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; - return obj; - }, - fromAminoMsg(object) { - return MsgDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDescriptor", - value: MsgDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDescriptor.decode(message.value); - }, - toProto(message) { - return MsgDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor", - value: MsgDescriptor.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorRequest() { - return {}; -} -export const GetAuthnDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetAuthnDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetAuthnDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetAuthnDescriptorRequest", - value: GetAuthnDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetAuthnDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetAuthnDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest", - value: GetAuthnDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetAuthnDescriptorResponse() { - return { - authn: undefined - }; -} -export const GetAuthnDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.authn !== undefined) { - AuthnDescriptor.encode(message.authn, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetAuthnDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authn = AuthnDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetAuthnDescriptorResponse(); - message.authn = object.authn !== undefined && object.authn !== null ? AuthnDescriptor.fromPartial(object.authn) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetAuthnDescriptorResponse(); - if (object.authn !== undefined && object.authn !== null) { - message.authn = AuthnDescriptor.fromAmino(object.authn); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authn = message.authn ? AuthnDescriptor.toAmino(message.authn) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetAuthnDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetAuthnDescriptorResponse", - value: GetAuthnDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetAuthnDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetAuthnDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse", - value: GetAuthnDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorRequest() { - return {}; -} -export const GetChainDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetChainDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetChainDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetChainDescriptorRequest", - value: GetChainDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetChainDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetChainDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest", - value: GetChainDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetChainDescriptorResponse() { - return { - chain: undefined - }; -} -export const GetChainDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.chain !== undefined) { - ChainDescriptor.encode(message.chain, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetChainDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chain = ChainDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetChainDescriptorResponse(); - message.chain = object.chain !== undefined && object.chain !== null ? ChainDescriptor.fromPartial(object.chain) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetChainDescriptorResponse(); - if (object.chain !== undefined && object.chain !== null) { - message.chain = ChainDescriptor.fromAmino(object.chain); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chain = message.chain ? ChainDescriptor.toAmino(message.chain) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetChainDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetChainDescriptorResponse", - value: GetChainDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetChainDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetChainDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse", - value: GetChainDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorRequest() { - return {}; -} -export const GetCodecDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetCodecDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetCodecDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetCodecDescriptorRequest", - value: GetCodecDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetCodecDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetCodecDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest", - value: GetCodecDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetCodecDescriptorResponse() { - return { - codec: undefined - }; -} -export const GetCodecDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.codec !== undefined) { - CodecDescriptor.encode(message.codec, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetCodecDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.codec = CodecDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetCodecDescriptorResponse(); - message.codec = object.codec !== undefined && object.codec !== null ? CodecDescriptor.fromPartial(object.codec) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetCodecDescriptorResponse(); - if (object.codec !== undefined && object.codec !== null) { - message.codec = CodecDescriptor.fromAmino(object.codec); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.codec = message.codec ? CodecDescriptor.toAmino(message.codec) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetCodecDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetCodecDescriptorResponse", - value: GetCodecDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetCodecDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetCodecDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse", - value: GetCodecDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorRequest() { - return {}; -} -export const GetConfigurationDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetConfigurationDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetConfigurationDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetConfigurationDescriptorRequest", - value: GetConfigurationDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetConfigurationDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetConfigurationDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest", - value: GetConfigurationDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetConfigurationDescriptorResponse() { - return { - config: undefined - }; -} -export const GetConfigurationDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.config !== undefined) { - ConfigurationDescriptor.encode(message.config, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetConfigurationDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = ConfigurationDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetConfigurationDescriptorResponse(); - message.config = object.config !== undefined && object.config !== null ? ConfigurationDescriptor.fromPartial(object.config) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetConfigurationDescriptorResponse(); - if (object.config !== undefined && object.config !== null) { - message.config = ConfigurationDescriptor.fromAmino(object.config); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.config = message.config ? ConfigurationDescriptor.toAmino(message.config) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetConfigurationDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetConfigurationDescriptorResponse", - value: GetConfigurationDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetConfigurationDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetConfigurationDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse", - value: GetConfigurationDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorRequest() { - return {}; -} -export const GetQueryServicesDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetQueryServicesDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetQueryServicesDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorRequest", - value: GetQueryServicesDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetQueryServicesDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetQueryServicesDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest", - value: GetQueryServicesDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetQueryServicesDescriptorResponse() { - return { - queries: undefined - }; -} -export const GetQueryServicesDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.queries !== undefined) { - QueryServicesDescriptor.encode(message.queries, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetQueryServicesDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queries = QueryServicesDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetQueryServicesDescriptorResponse(); - message.queries = object.queries !== undefined && object.queries !== null ? QueryServicesDescriptor.fromPartial(object.queries) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetQueryServicesDescriptorResponse(); - if (object.queries !== undefined && object.queries !== null) { - message.queries = QueryServicesDescriptor.fromAmino(object.queries); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.queries = message.queries ? QueryServicesDescriptor.toAmino(message.queries) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetQueryServicesDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetQueryServicesDescriptorResponse", - value: GetQueryServicesDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetQueryServicesDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetQueryServicesDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse", - value: GetQueryServicesDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorRequest() { - return {}; -} -export const GetTxDescriptorRequest = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseGetTxDescriptorRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return GetTxDescriptorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxDescriptorRequest", - value: GetTxDescriptorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxDescriptorRequest.decode(message.value); - }, - toProto(message) { - return GetTxDescriptorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest", - value: GetTxDescriptorRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxDescriptorResponse() { - return { - tx: undefined - }; -} -export const GetTxDescriptorResponse = { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tx !== undefined) { - TxDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxDescriptorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = TxDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxDescriptorResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? TxDescriptor.fromPartial(object.tx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxDescriptorResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = TxDescriptor.fromAmino(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? TxDescriptor.toAmino(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetTxDescriptorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxDescriptorResponse", - value: GetTxDescriptorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxDescriptorResponse.decode(message.value); - }, - toProto(message) { - return GetTxDescriptorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse", - value: GetTxDescriptorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryServicesDescriptor() { - return { - queryServices: [] - }; -} -export const QueryServicesDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.queryServices) { - QueryServiceDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServicesDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queryServices.push(QueryServiceDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.queryServices?.map(e => QueryServiceDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryServicesDescriptor(); - message.queryServices = object.query_services?.map(e => QueryServiceDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.queryServices) { - obj.query_services = message.queryServices.map(e => e ? QueryServiceDescriptor.toAmino(e) : undefined); - } - else { - obj.query_services = message.queryServices; - } - return obj; - }, - fromAminoMsg(object) { - return QueryServicesDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryServicesDescriptor", - value: QueryServicesDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryServicesDescriptor.decode(message.value); - }, - toProto(message) { - return QueryServicesDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor", - value: QueryServicesDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryServiceDescriptor() { - return { - fullname: "", - isModule: false, - methods: [] - }; -} -export const QueryServiceDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fullname !== "") { - writer.uint32(10).string(message.fullname); - } - if (message.isModule === true) { - writer.uint32(16).bool(message.isModule); - } - for (const v of message.methods) { - QueryMethodDescriptor.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryServiceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fullname = reader.string(); - break; - case 2: - message.isModule = reader.bool(); - break; - case 3: - message.methods.push(QueryMethodDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryServiceDescriptor(); - message.fullname = object.fullname ?? ""; - message.isModule = object.isModule ?? false; - message.methods = object.methods?.map(e => QueryMethodDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryServiceDescriptor(); - if (object.fullname !== undefined && object.fullname !== null) { - message.fullname = object.fullname; - } - if (object.is_module !== undefined && object.is_module !== null) { - message.isModule = object.is_module; - } - message.methods = object.methods?.map(e => QueryMethodDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.fullname = message.fullname === "" ? undefined : message.fullname; - obj.is_module = message.isModule === false ? undefined : message.isModule; - if (message.methods) { - obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toAmino(e) : undefined); - } - else { - obj.methods = message.methods; - } - return obj; - }, - fromAminoMsg(object) { - return QueryServiceDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryServiceDescriptor", - value: QueryServiceDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryServiceDescriptor.decode(message.value); - }, - toProto(message) { - return QueryServiceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor", - value: QueryServiceDescriptor.encode(message).finish() - }; - } -}; -function createBaseQueryMethodDescriptor() { - return { - name: "", - fullQueryPath: "" - }; -} -export const QueryMethodDescriptor = { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.fullQueryPath !== "") { - writer.uint32(18).string(message.fullQueryPath); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryMethodDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.fullQueryPath = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryMethodDescriptor(); - message.name = object.name ?? ""; - message.fullQueryPath = object.fullQueryPath ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryMethodDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.full_query_path !== undefined && object.full_query_path !== null) { - message.fullQueryPath = object.full_query_path; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; - return obj; - }, - fromAminoMsg(object) { - return QueryMethodDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryMethodDescriptor", - value: QueryMethodDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryMethodDescriptor.decode(message.value); - }, - toProto(message) { - return QueryMethodDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor", - value: QueryMethodDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/base/v1beta1/coin.js b/packages/api/dist/esm/cosmos/base/v1beta1/coin.js deleted file mode 100644 index d16ebb3a..00000000 --- a/packages/api/dist/esm/cosmos/base/v1beta1/coin.js +++ /dev/null @@ -1,302 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseCoin() { - return { - denom: "", - amount: "" - }; -} -export const Coin = { - typeUrl: "/cosmos.base.v1beta1.Coin", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return Coin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Coin", - value: Coin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Coin.decode(message.value); - }, - toProto(message) { - return Coin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.Coin", - value: Coin.encode(message).finish() - }; - } -}; -function createBaseDecCoin() { - return { - denom: "", - amount: "" - }; -} -export const DecCoin = { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDecCoin(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return DecCoin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecCoin", - value: DecCoin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DecCoin.decode(message.value); - }, - toProto(message) { - return DecCoin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.DecCoin", - value: DecCoin.encode(message).finish() - }; - } -}; -function createBaseIntProto() { - return { - int: "" - }; -} -export const IntProto = { - typeUrl: "/cosmos.base.v1beta1.IntProto", - encode(message, writer = BinaryWriter.create()) { - if (message.int !== "") { - writer.uint32(10).string(message.int); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIntProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.int = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIntProto(); - message.int = object.int ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseIntProto(); - if (object.int !== undefined && object.int !== null) { - message.int = object.int; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.int = message.int === "" ? undefined : message.int; - return obj; - }, - fromAminoMsg(object) { - return IntProto.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IntProto", - value: IntProto.toAmino(message) - }; - }, - fromProtoMsg(message) { - return IntProto.decode(message.value); - }, - toProto(message) { - return IntProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.IntProto", - value: IntProto.encode(message).finish() - }; - } -}; -function createBaseDecProto() { - return { - dec: "" - }; -} -export const DecProto = { - typeUrl: "/cosmos.base.v1beta1.DecProto", - encode(message, writer = BinaryWriter.create()) { - if (message.dec !== "") { - writer.uint32(10).string(message.dec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dec = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecProto(); - message.dec = object.dec ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDecProto(); - if (object.dec !== undefined && object.dec !== null) { - message.dec = object.dec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.dec = message.dec === "" ? undefined : message.dec; - return obj; - }, - fromAminoMsg(object) { - return DecProto.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecProto", - value: DecProto.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DecProto.decode(message.value); - }, - toProto(message) { - return DecProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.base.v1beta1.DecProto", - value: DecProto.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/bundle.js b/packages/api/dist/esm/cosmos/bundle.js deleted file mode 100644 index 5ad7f802..00000000 --- a/packages/api/dist/esm/cosmos/bundle.js +++ /dev/null @@ -1,392 +0,0 @@ -//@ts-nocheck -import * as _2 from "./app/module/v1alpha1/module"; -import * as _3 from "./auth/v1beta1/auth"; -import * as _4 from "./auth/v1beta1/genesis"; -import * as _5 from "./auth/v1beta1/query"; -import * as _6 from "./authz/v1beta1/authz"; -import * as _7 from "./authz/v1beta1/event"; -import * as _8 from "./authz/v1beta1/genesis"; -import * as _9 from "./authz/v1beta1/query"; -import * as _10 from "./authz/v1beta1/tx"; -import * as _11 from "./bank/v1beta1/authz"; -import * as _12 from "./bank/v1beta1/bank"; -import * as _13 from "./bank/v1beta1/genesis"; -import * as _14 from "./bank/v1beta1/query"; -import * as _15 from "./bank/v1beta1/tx"; -import * as _16 from "./base/abci/v1beta1/abci"; -import * as _17 from "./base/node/v1beta1/query"; -import * as _18 from "./base/query/v1beta1/pagination"; -import * as _19 from "./base/reflection/v2alpha1/reflection"; -import * as _20 from "./base/v1beta1/coin"; -import * as _21 from "./crypto/ed25519/keys"; -import * as _22 from "./crypto/hd/v1/hd"; -import * as _23 from "./crypto/keyring/v1/record"; -import * as _24 from "./crypto/multisig/keys"; -import * as _25 from "./crypto/secp256k1/keys"; -import * as _26 from "./crypto/secp256r1/keys"; -import * as _27 from "./distribution/v1beta1/distribution"; -import * as _28 from "./distribution/v1beta1/genesis"; -import * as _29 from "./distribution/v1beta1/query"; -import * as _30 from "./distribution/v1beta1/tx"; -import * as _31 from "./feegrant/v1beta1/feegrant"; -import * as _32 from "./feegrant/v1beta1/genesis"; -import * as _33 from "./feegrant/v1beta1/query"; -import * as _34 from "./feegrant/v1beta1/tx"; -import * as _35 from "./gov/v1/genesis"; -import * as _36 from "./gov/v1/gov"; -import * as _37 from "./gov/v1/query"; -import * as _38 from "./gov/v1/tx"; -import * as _39 from "./gov/v1beta1/genesis"; -import * as _40 from "./gov/v1beta1/gov"; -import * as _41 from "./gov/v1beta1/query"; -import * as _42 from "./gov/v1beta1/tx"; -import * as _43 from "./group/v1/events"; -import * as _44 from "./group/v1/genesis"; -import * as _45 from "./group/v1/query"; -import * as _46 from "./group/v1/tx"; -import * as _47 from "./group/v1/types"; -import * as _48 from "./mint/v1beta1/genesis"; -import * as _49 from "./mint/v1beta1/mint"; -import * as _50 from "./mint/v1beta1/query"; -import * as _51 from "./orm/module/v1alpha1/module"; -import * as _52 from "./params/v1beta1/params"; -import * as _53 from "./params/v1beta1/query"; -import * as _54 from "./staking/v1beta1/authz"; -import * as _55 from "./staking/v1beta1/genesis"; -import * as _56 from "./staking/v1beta1/query"; -import * as _57 from "./staking/v1beta1/staking"; -import * as _58 from "./staking/v1beta1/tx"; -import * as _59 from "./tx/signing/v1beta1/signing"; -import * as _60 from "./tx/v1beta1/service"; -import * as _61 from "./tx/v1beta1/tx"; -import * as _62 from "./upgrade/v1beta1/query"; -import * as _63 from "./upgrade/v1beta1/tx"; -import * as _64 from "./upgrade/v1beta1/upgrade"; -import * as _65 from "./vesting/v1beta1/tx"; -import * as _66 from "./vesting/v1beta1/vesting"; -import * as _119 from "./authz/v1beta1/tx.amino"; -import * as _120 from "./bank/v1beta1/tx.amino"; -import * as _121 from "./distribution/v1beta1/tx.amino"; -import * as _122 from "./feegrant/v1beta1/tx.amino"; -import * as _123 from "./gov/v1/tx.amino"; -import * as _124 from "./gov/v1beta1/tx.amino"; -import * as _125 from "./group/v1/tx.amino"; -import * as _126 from "./staking/v1beta1/tx.amino"; -import * as _127 from "./upgrade/v1beta1/tx.amino"; -import * as _128 from "./vesting/v1beta1/tx.amino"; -import * as _129 from "./authz/v1beta1/tx.registry"; -import * as _130 from "./bank/v1beta1/tx.registry"; -import * as _131 from "./distribution/v1beta1/tx.registry"; -import * as _132 from "./feegrant/v1beta1/tx.registry"; -import * as _133 from "./gov/v1/tx.registry"; -import * as _134 from "./gov/v1beta1/tx.registry"; -import * as _135 from "./group/v1/tx.registry"; -import * as _136 from "./staking/v1beta1/tx.registry"; -import * as _137 from "./upgrade/v1beta1/tx.registry"; -import * as _138 from "./vesting/v1beta1/tx.registry"; -import * as _139 from "./auth/v1beta1/query.lcd"; -import * as _140 from "./authz/v1beta1/query.lcd"; -import * as _141 from "./bank/v1beta1/query.lcd"; -import * as _142 from "./base/node/v1beta1/query.lcd"; -import * as _143 from "./distribution/v1beta1/query.lcd"; -import * as _144 from "./feegrant/v1beta1/query.lcd"; -import * as _145 from "./gov/v1/query.lcd"; -import * as _146 from "./gov/v1beta1/query.lcd"; -import * as _147 from "./group/v1/query.lcd"; -import * as _148 from "./mint/v1beta1/query.lcd"; -import * as _149 from "./params/v1beta1/query.lcd"; -import * as _150 from "./staking/v1beta1/query.lcd"; -import * as _151 from "./tx/v1beta1/service.lcd"; -import * as _152 from "./upgrade/v1beta1/query.lcd"; -import * as _153 from "./auth/v1beta1/query.rpc.Query"; -import * as _154 from "./authz/v1beta1/query.rpc.Query"; -import * as _155 from "./bank/v1beta1/query.rpc.Query"; -import * as _156 from "./base/node/v1beta1/query.rpc.Service"; -import * as _157 from "./distribution/v1beta1/query.rpc.Query"; -import * as _158 from "./feegrant/v1beta1/query.rpc.Query"; -import * as _159 from "./gov/v1/query.rpc.Query"; -import * as _160 from "./gov/v1beta1/query.rpc.Query"; -import * as _161 from "./group/v1/query.rpc.Query"; -import * as _162 from "./mint/v1beta1/query.rpc.Query"; -import * as _163 from "./params/v1beta1/query.rpc.Query"; -import * as _164 from "./staking/v1beta1/query.rpc.Query"; -import * as _165 from "./tx/v1beta1/service.rpc.Service"; -import * as _166 from "./upgrade/v1beta1/query.rpc.Query"; -import * as _167 from "./authz/v1beta1/tx.rpc.msg"; -import * as _168 from "./bank/v1beta1/tx.rpc.msg"; -import * as _169 from "./distribution/v1beta1/tx.rpc.msg"; -import * as _170 from "./feegrant/v1beta1/tx.rpc.msg"; -import * as _171 from "./gov/v1/tx.rpc.msg"; -import * as _172 from "./gov/v1beta1/tx.rpc.msg"; -import * as _173 from "./group/v1/tx.rpc.msg"; -import * as _174 from "./staking/v1beta1/tx.rpc.msg"; -import * as _175 from "./upgrade/v1beta1/tx.rpc.msg"; -import * as _176 from "./vesting/v1beta1/tx.rpc.msg"; -import * as _217 from "./lcd"; -import * as _218 from "./rpc.query"; -import * as _219 from "./rpc.tx"; -export var cosmos; -(function (cosmos) { - let app; - (function (app) { - let module; - (function (module) { - module.v1alpha1 = { - ..._2 - }; - })(module = app.module || (app.module = {})); - })(app = cosmos.app || (cosmos.app = {})); - let auth; - (function (auth) { - auth.v1beta1 = { - ..._3, - ..._4, - ..._5, - ..._139, - ..._153 - }; - })(auth = cosmos.auth || (cosmos.auth = {})); - let authz; - (function (authz) { - authz.v1beta1 = { - ..._6, - ..._7, - ..._8, - ..._9, - ..._10, - ..._119, - ..._129, - ..._140, - ..._154, - ..._167 - }; - })(authz = cosmos.authz || (cosmos.authz = {})); - let bank; - (function (bank) { - bank.v1beta1 = { - ..._11, - ..._12, - ..._13, - ..._14, - ..._15, - ..._120, - ..._130, - ..._141, - ..._155, - ..._168 - }; - })(bank = cosmos.bank || (cosmos.bank = {})); - let base; - (function (base) { - let abci; - (function (abci) { - abci.v1beta1 = { - ..._16 - }; - })(abci = base.abci || (base.abci = {})); - let node; - (function (node) { - node.v1beta1 = { - ..._17, - ..._142, - ..._156 - }; - })(node = base.node || (base.node = {})); - let query; - (function (query) { - query.v1beta1 = { - ..._18 - }; - })(query = base.query || (base.query = {})); - let reflection; - (function (reflection) { - reflection.v2alpha1 = { - ..._19 - }; - })(reflection = base.reflection || (base.reflection = {})); - base.v1beta1 = { - ..._20 - }; - })(base = cosmos.base || (cosmos.base = {})); - let crypto; - (function (crypto) { - crypto.ed25519 = { - ..._21 - }; - let hd; - (function (hd) { - hd.v1 = { - ..._22 - }; - })(hd = crypto.hd || (crypto.hd = {})); - let keyring; - (function (keyring) { - keyring.v1 = { - ..._23 - }; - })(keyring = crypto.keyring || (crypto.keyring = {})); - crypto.multisig = { - ..._24 - }; - crypto.secp256k1 = { - ..._25 - }; - crypto.secp256r1 = { - ..._26 - }; - })(crypto = cosmos.crypto || (cosmos.crypto = {})); - let distribution; - (function (distribution) { - distribution.v1beta1 = { - ..._27, - ..._28, - ..._29, - ..._30, - ..._121, - ..._131, - ..._143, - ..._157, - ..._169 - }; - })(distribution = cosmos.distribution || (cosmos.distribution = {})); - let feegrant; - (function (feegrant) { - feegrant.v1beta1 = { - ..._31, - ..._32, - ..._33, - ..._34, - ..._122, - ..._132, - ..._144, - ..._158, - ..._170 - }; - })(feegrant = cosmos.feegrant || (cosmos.feegrant = {})); - let gov; - (function (gov) { - gov.v1 = { - ..._35, - ..._36, - ..._37, - ..._38, - ..._123, - ..._133, - ..._145, - ..._159, - ..._171 - }; - gov.v1beta1 = { - ..._39, - ..._40, - ..._41, - ..._42, - ..._124, - ..._134, - ..._146, - ..._160, - ..._172 - }; - })(gov = cosmos.gov || (cosmos.gov = {})); - let group; - (function (group) { - group.v1 = { - ..._43, - ..._44, - ..._45, - ..._46, - ..._47, - ..._125, - ..._135, - ..._147, - ..._161, - ..._173 - }; - })(group = cosmos.group || (cosmos.group = {})); - let mint; - (function (mint) { - mint.v1beta1 = { - ..._48, - ..._49, - ..._50, - ..._148, - ..._162 - }; - })(mint = cosmos.mint || (cosmos.mint = {})); - let orm; - (function (orm) { - let module; - (function (module) { - module.v1alpha1 = { - ..._51 - }; - })(module = orm.module || (orm.module = {})); - })(orm = cosmos.orm || (cosmos.orm = {})); - let params; - (function (params) { - params.v1beta1 = { - ..._52, - ..._53, - ..._149, - ..._163 - }; - })(params = cosmos.params || (cosmos.params = {})); - let staking; - (function (staking) { - staking.v1beta1 = { - ..._54, - ..._55, - ..._56, - ..._57, - ..._58, - ..._126, - ..._136, - ..._150, - ..._164, - ..._174 - }; - })(staking = cosmos.staking || (cosmos.staking = {})); - let tx; - (function (tx) { - let signing; - (function (signing) { - signing.v1beta1 = { - ..._59 - }; - })(signing = tx.signing || (tx.signing = {})); - tx.v1beta1 = { - ..._60, - ..._61, - ..._151, - ..._165 - }; - })(tx = cosmos.tx || (cosmos.tx = {})); - let upgrade; - (function (upgrade) { - upgrade.v1beta1 = { - ..._62, - ..._63, - ..._64, - ..._127, - ..._137, - ..._152, - ..._166, - ..._175 - }; - })(upgrade = cosmos.upgrade || (cosmos.upgrade = {})); - let vesting; - (function (vesting) { - vesting.v1beta1 = { - ..._65, - ..._66, - ..._128, - ..._138, - ..._176 - }; - })(vesting = cosmos.vesting || (cosmos.vesting = {})); - cosmos.ClientFactory = { - ..._217, - ..._218, - ..._219 - }; -})(cosmos || (cosmos = {})); diff --git a/packages/api/dist/esm/cosmos/client.js b/packages/api/dist/esm/cosmos/client.js deleted file mode 100644 index 8478f404..00000000 --- a/packages/api/dist/esm/cosmos/client.js +++ /dev/null @@ -1,54 +0,0 @@ -//@ts-nocheck -import { Registry } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; -import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; -import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry"; -import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry"; -import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry"; -import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry"; -import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry"; -import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; -import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; -import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry"; -import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; -import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; -import * as cosmosDistributionV1beta1TxAmino from "./distribution/v1beta1/tx.amino"; -import * as cosmosFeegrantV1beta1TxAmino from "./feegrant/v1beta1/tx.amino"; -import * as cosmosGovV1TxAmino from "./gov/v1/tx.amino"; -import * as cosmosGovV1beta1TxAmino from "./gov/v1beta1/tx.amino"; -import * as cosmosGroupV1TxAmino from "./group/v1/tx.amino"; -import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; -import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; -import * as cosmosVestingV1beta1TxAmino from "./vesting/v1beta1/tx.amino"; -export const cosmosAminoConverters = { - ...cosmosAuthzV1beta1TxAmino.AminoConverter, - ...cosmosBankV1beta1TxAmino.AminoConverter, - ...cosmosDistributionV1beta1TxAmino.AminoConverter, - ...cosmosFeegrantV1beta1TxAmino.AminoConverter, - ...cosmosGovV1TxAmino.AminoConverter, - ...cosmosGovV1beta1TxAmino.AminoConverter, - ...cosmosGroupV1TxAmino.AminoConverter, - ...cosmosStakingV1beta1TxAmino.AminoConverter, - ...cosmosUpgradeV1beta1TxAmino.AminoConverter, - ...cosmosVestingV1beta1TxAmino.AminoConverter -}; -export const cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; -export const getSigningCosmosClientOptions = () => { - const registry = new Registry([...cosmosProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...cosmosAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => { - const { registry, aminoTypes } = getSigningCosmosClientOptions(); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; diff --git a/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js b/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js deleted file mode 100644 index 642aaa7a..00000000 --- a/packages/api/dist/esm/cosmos/crypto/ed25519/keys.js +++ /dev/null @@ -1,141 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PubKey.decode(message.value); - }, - toProto(message) { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.ed25519.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - key: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PrivKey.decode(message.value); - }, - toProto(message) { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.ed25519.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js b/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js deleted file mode 100644 index 85917947..00000000 --- a/packages/api/dist/esm/cosmos/crypto/hd/v1/hd.js +++ /dev/null @@ -1,119 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseBIP44Params() { - return { - purpose: 0, - coinType: 0, - account: 0, - change: false, - addressIndex: 0 - }; -} -export const BIP44Params = { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - encode(message, writer = BinaryWriter.create()) { - if (message.purpose !== 0) { - writer.uint32(8).uint32(message.purpose); - } - if (message.coinType !== 0) { - writer.uint32(16).uint32(message.coinType); - } - if (message.account !== 0) { - writer.uint32(24).uint32(message.account); - } - if (message.change === true) { - writer.uint32(32).bool(message.change); - } - if (message.addressIndex !== 0) { - writer.uint32(40).uint32(message.addressIndex); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBIP44Params(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.purpose = reader.uint32(); - break; - case 2: - message.coinType = reader.uint32(); - break; - case 3: - message.account = reader.uint32(); - break; - case 4: - message.change = reader.bool(); - break; - case 5: - message.addressIndex = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBIP44Params(); - message.purpose = object.purpose ?? 0; - message.coinType = object.coinType ?? 0; - message.account = object.account ?? 0; - message.change = object.change ?? false; - message.addressIndex = object.addressIndex ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBIP44Params(); - if (object.purpose !== undefined && object.purpose !== null) { - message.purpose = object.purpose; - } - if (object.coin_type !== undefined && object.coin_type !== null) { - message.coinType = object.coin_type; - } - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.change !== undefined && object.change !== null) { - message.change = object.change; - } - if (object.address_index !== undefined && object.address_index !== null) { - message.addressIndex = object.address_index; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.purpose = message.purpose === 0 ? undefined : message.purpose; - obj.coin_type = message.coinType === 0 ? undefined : message.coinType; - obj.account = message.account === 0 ? undefined : message.account; - obj.change = message.change === false ? undefined : message.change; - obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; - return obj; - }, - fromAminoMsg(object) { - return BIP44Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BIP44Params", - value: BIP44Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BIP44Params.decode(message.value); - }, - toProto(message) { - return BIP44Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.hd.v1.BIP44Params", - value: BIP44Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js b/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js deleted file mode 100644 index 7a775331..00000000 --- a/packages/api/dist/esm/cosmos/crypto/keyring/v1/record.js +++ /dev/null @@ -1,383 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../../google/protobuf/any"; -import { BIP44Params } from "../../hd/v1/hd"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseRecord() { - return { - name: "", - pubKey: undefined, - local: undefined, - ledger: undefined, - multi: undefined, - offline: undefined - }; -} -export const Record = { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.local !== undefined) { - Record_Local.encode(message.local, writer.uint32(26).fork()).ldelim(); - } - if (message.ledger !== undefined) { - Record_Ledger.encode(message.ledger, writer.uint32(34).fork()).ldelim(); - } - if (message.multi !== undefined) { - Record_Multi.encode(message.multi, writer.uint32(42).fork()).ldelim(); - } - if (message.offline !== undefined) { - Record_Offline.encode(message.offline, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.local = Record_Local.decode(reader, reader.uint32()); - break; - case 4: - message.ledger = Record_Ledger.decode(reader, reader.uint32()); - break; - case 5: - message.multi = Record_Multi.decode(reader, reader.uint32()); - break; - case 6: - message.offline = Record_Offline.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord(); - message.name = object.name ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.local = object.local !== undefined && object.local !== null ? Record_Local.fromPartial(object.local) : undefined; - message.ledger = object.ledger !== undefined && object.ledger !== null ? Record_Ledger.fromPartial(object.ledger) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? Record_Multi.fromPartial(object.multi) : undefined; - message.offline = object.offline !== undefined && object.offline !== null ? Record_Offline.fromPartial(object.offline) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = Any.fromAmino(object.pub_key); - } - if (object.local !== undefined && object.local !== null) { - message.local = Record_Local.fromAmino(object.local); - } - if (object.ledger !== undefined && object.ledger !== null) { - message.ledger = Record_Ledger.fromAmino(object.ledger); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = Record_Multi.fromAmino(object.multi); - } - if (object.offline !== undefined && object.offline !== null) { - message.offline = Record_Offline.fromAmino(object.offline); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.local = message.local ? Record_Local.toAmino(message.local) : undefined; - obj.ledger = message.ledger ? Record_Ledger.toAmino(message.ledger) : undefined; - obj.multi = message.multi ? Record_Multi.toAmino(message.multi) : undefined; - obj.offline = message.offline ? Record_Offline.toAmino(message.offline) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Record.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Record", - value: Record.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Record.decode(message.value); - }, - toProto(message) { - return Record.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Record", - value: Record.encode(message).finish() - }; - } -}; -function createBaseRecord_Local() { - return { - privKey: undefined - }; -} -export const Record_Local = { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - encode(message, writer = BinaryWriter.create()) { - if (message.privKey !== undefined) { - Any.encode(message.privKey, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Local(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.privKey = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord_Local(); - message.privKey = object.privKey !== undefined && object.privKey !== null ? Any.fromPartial(object.privKey) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord_Local(); - if (object.priv_key !== undefined && object.priv_key !== null) { - message.privKey = Any.fromAmino(object.priv_key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.priv_key = message.privKey ? Any.toAmino(message.privKey) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Record_Local.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Local", - value: Record_Local.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Record_Local.decode(message.value); - }, - toProto(message) { - return Record_Local.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Local", - value: Record_Local.encode(message).finish() - }; - } -}; -function createBaseRecord_Ledger() { - return { - path: undefined - }; -} -export const Record_Ledger = { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - encode(message, writer = BinaryWriter.create()) { - if (message.path !== undefined) { - BIP44Params.encode(message.path, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Ledger(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = BIP44Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRecord_Ledger(); - message.path = object.path !== undefined && object.path !== null ? BIP44Params.fromPartial(object.path) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRecord_Ledger(); - if (object.path !== undefined && object.path !== null) { - message.path = BIP44Params.fromAmino(object.path); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.path = message.path ? BIP44Params.toAmino(message.path) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Record_Ledger.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Ledger", - value: Record_Ledger.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Record_Ledger.decode(message.value); - }, - toProto(message) { - return Record_Ledger.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Ledger", - value: Record_Ledger.encode(message).finish() - }; - } -}; -function createBaseRecord_Multi() { - return {}; -} -export const Record_Multi = { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRecord_Multi(); - return message; - }, - fromAmino(_) { - const message = createBaseRecord_Multi(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return Record_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: Record_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Record_Multi.decode(message.value); - }, - toProto(message) { - return Record_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Multi", - value: Record_Multi.encode(message).finish() - }; - } -}; -function createBaseRecord_Offline() { - return {}; -} -export const Record_Offline = { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRecord_Offline(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRecord_Offline(); - return message; - }, - fromAmino(_) { - const message = createBaseRecord_Offline(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return Record_Offline.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Offline", - value: Record_Offline.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Record_Offline.decode(message.value); - }, - toProto(message) { - return Record_Offline.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.keyring.v1.Offline", - value: Record_Offline.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/multisig/keys.js b/packages/api/dist/esm/cosmos/crypto/multisig/keys.js deleted file mode 100644 index 354bd9c4..00000000 --- a/packages/api/dist/esm/cosmos/crypto/multisig/keys.js +++ /dev/null @@ -1,87 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseLegacyAminoPubKey() { - return { - threshold: 0, - publicKeys: [] - }; -} -export const LegacyAminoPubKey = { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - encode(message, writer = BinaryWriter.create()) { - if (message.threshold !== 0) { - writer.uint32(8).uint32(message.threshold); - } - for (const v of message.publicKeys) { - Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLegacyAminoPubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.uint32(); - break; - case 2: - message.publicKeys.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLegacyAminoPubKey(); - message.threshold = object.threshold ?? 0; - message.publicKeys = object.publicKeys?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseLegacyAminoPubKey(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - message.publicKeys = object.public_keys?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.threshold = message.threshold === 0 ? undefined : message.threshold; - if (message.publicKeys) { - obj.public_keys = message.publicKeys.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.public_keys = message.publicKeys; - } - return obj; - }, - fromAminoMsg(object) { - return LegacyAminoPubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/LegacyAminoPubKey", - value: LegacyAminoPubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return LegacyAminoPubKey.decode(message.value); - }, - toProto(message) { - return LegacyAminoPubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey", - value: LegacyAminoPubKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js b/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js deleted file mode 100644 index 17472fc4..00000000 --- a/packages/api/dist/esm/cosmos/crypto/multisig/v1beta1/multisig.js +++ /dev/null @@ -1,156 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseMultiSignature() { - return { - signatures: [] - }; -} -export const MultiSignature = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.signatures) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMultiSignature(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMultiSignature(); - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return MultiSignature.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MultiSignature", - value: MultiSignature.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MultiSignature.decode(message.value); - }, - toProto(message) { - return MultiSignature.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature", - value: MultiSignature.encode(message).finish() - }; - } -}; -function createBaseCompactBitArray() { - return { - extraBitsStored: 0, - elems: new Uint8Array() - }; -} -export const CompactBitArray = { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - encode(message, writer = BinaryWriter.create()) { - if (message.extraBitsStored !== 0) { - writer.uint32(8).uint32(message.extraBitsStored); - } - if (message.elems.length !== 0) { - writer.uint32(18).bytes(message.elems); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCompactBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.extraBitsStored = reader.uint32(); - break; - case 2: - message.elems = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCompactBitArray(); - message.extraBitsStored = object.extraBitsStored ?? 0; - message.elems = object.elems ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseCompactBitArray(); - if (object.extra_bits_stored !== undefined && object.extra_bits_stored !== null) { - message.extraBitsStored = object.extra_bits_stored; - } - if (object.elems !== undefined && object.elems !== null) { - message.elems = bytesFromBase64(object.elems); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; - obj.elems = message.elems ? base64FromBytes(message.elems) : undefined; - return obj; - }, - fromAminoMsg(object) { - return CompactBitArray.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CompactBitArray", - value: CompactBitArray.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CompactBitArray.decode(message.value); - }, - toProto(message) { - return CompactBitArray.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray", - value: CompactBitArray.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js b/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js deleted file mode 100644 index ca982665..00000000 --- a/packages/api/dist/esm/cosmos/crypto/secp256k1/keys.js +++ /dev/null @@ -1,141 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PubKey.decode(message.value); - }, - toProto(message) { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256k1.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - key: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PrivKey.decode(message.value); - }, - toProto(message) { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256k1.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js b/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js deleted file mode 100644 index 69c70603..00000000 --- a/packages/api/dist/esm/cosmos/crypto/secp256r1/keys.js +++ /dev/null @@ -1,141 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBasePubKey() { - return { - key: new Uint8Array() - }; -} -export const PubKey = { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePubKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePubKey(); - message.key = object.key ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePubKey(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PubKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PubKey", - value: PubKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PubKey.decode(message.value); - }, - toProto(message) { - return PubKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256r1.PubKey", - value: PubKey.encode(message).finish() - }; - } -}; -function createBasePrivKey() { - return { - secret: new Uint8Array() - }; -} -export const PrivKey = { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - encode(message, writer = BinaryWriter.create()) { - if (message.secret.length !== 0) { - writer.uint32(10).bytes(message.secret); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrivKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.secret = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrivKey(); - message.secret = object.secret ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePrivKey(); - if (object.secret !== undefined && object.secret !== null) { - message.secret = bytesFromBase64(object.secret); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.secret = message.secret ? base64FromBytes(message.secret) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PrivKey.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrivKey", - value: PrivKey.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PrivKey.decode(message.value); - }, - toProto(message) { - return PrivKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.crypto.secp256r1.PrivKey", - value: PrivKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js deleted file mode 100644 index 5e82b637..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/distribution.js +++ /dev/null @@ -1,1050 +0,0 @@ -//@ts-nocheck -import { DecCoin, Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -function createBaseParams() { - return { - communityTax: "", - baseProposerReward: "", - bonusProposerReward: "", - withdrawAddrEnabled: false - }; -} -export const Params = { - typeUrl: "/cosmos.distribution.v1beta1.Params", - encode(message, writer = BinaryWriter.create()) { - if (message.communityTax !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics); - } - if (message.baseProposerReward !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics); - } - if (message.bonusProposerReward !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics); - } - if (message.withdrawAddrEnabled === true) { - writer.uint32(32).bool(message.withdrawAddrEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.withdrawAddrEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.communityTax = object.communityTax ?? ""; - message.baseProposerReward = object.baseProposerReward ?? ""; - message.bonusProposerReward = object.bonusProposerReward ?? ""; - message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.community_tax !== undefined && object.community_tax !== null) { - message.communityTax = object.community_tax; - } - if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) { - message.baseProposerReward = object.base_proposer_reward; - } - if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) { - message.bonusProposerReward = object.bonus_proposer_reward; - } - if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) { - message.withdrawAddrEnabled = object.withdraw_addr_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; - obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; - obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; - obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewards() { - return { - cumulativeRewardRatio: [], - referenceCount: 0 - }; -} -export const ValidatorHistoricalRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.cumulativeRewardRatio) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.referenceCount !== 0) { - writer.uint32(16).uint32(message.referenceCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.referenceCount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || []; - message.referenceCount = object.referenceCount ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorHistoricalRewards(); - message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => DecCoin.fromAmino(e)) || []; - if (object.reference_count !== undefined && object.reference_count !== null) { - message.referenceCount = object.reference_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.cumulativeRewardRatio) { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.cumulative_reward_ratio = message.cumulativeRewardRatio; - } - obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; - return obj; - }, - fromAminoMsg(object) { - return ValidatorHistoricalRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorHistoricalRewards", - value: ValidatorHistoricalRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorHistoricalRewards.decode(message.value); - }, - toProto(message) { - return ValidatorHistoricalRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", - value: ValidatorHistoricalRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewards() { - return { - rewards: [], - period: BigInt(0) - }; -} -export const ValidatorCurrentRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.rewards) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - case 2: - message.period = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorCurrentRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorCurrentRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorCurrentRewards", - value: ValidatorCurrentRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorCurrentRewards.decode(message.value); - }, - toProto(message) { - return ValidatorCurrentRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", - value: ValidatorCurrentRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommission() { - return { - commission: [] - }; -} -export const ValidatorAccumulatedCommission = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.commission) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorAccumulatedCommission(); - message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.commission) { - obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.commission = message.commission; - } - return obj; - }, - fromAminoMsg(object) { - return ValidatorAccumulatedCommission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommission", - value: ValidatorAccumulatedCommission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorAccumulatedCommission.decode(message.value); - }, - toProto(message) { - return ValidatorAccumulatedCommission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", - value: ValidatorAccumulatedCommission.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewards() { - return { - rewards: [] - }; -} -export const ValidatorOutstandingRewards = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.rewards) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewards(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorOutstandingRewards(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object) { - return ValidatorOutstandingRewards.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorOutstandingRewards", - value: ValidatorOutstandingRewards.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorOutstandingRewards.decode(message.value); - }, - toProto(message) { - return ValidatorOutstandingRewards.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", - value: ValidatorOutstandingRewards.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvent() { - return { - validatorPeriod: BigInt(0), - fraction: "" - }; -} -export const ValidatorSlashEvent = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.validatorPeriod); - } - if (message.fraction !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorPeriod = reader.uint64(); - break; - case 2: - message.fraction = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEvent(); - message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0); - message.fraction = object.fraction ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEvent(); - if (object.validator_period !== undefined && object.validator_period !== null) { - message.validatorPeriod = BigInt(object.validator_period); - } - if (object.fraction !== undefined && object.fraction !== null) { - message.fraction = object.fraction; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; - obj.fraction = message.fraction === "" ? undefined : message.fraction; - return obj; - }, - fromAminoMsg(object) { - return ValidatorSlashEvent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEvent", - value: ValidatorSlashEvent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorSlashEvent.decode(message.value); - }, - toProto(message) { - return ValidatorSlashEvent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", - value: ValidatorSlashEvent.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEvents() { - return { - validatorSlashEvents: [] - }; -} -export const ValidatorSlashEvents = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validatorSlashEvents) { - ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEvents(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEvents(); - message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); - } - else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object) { - return ValidatorSlashEvents.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEvents", - value: ValidatorSlashEvents.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorSlashEvents.decode(message.value); - }, - toProto(message) { - return ValidatorSlashEvents.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", - value: ValidatorSlashEvents.encode(message).finish() - }; - } -}; -function createBaseFeePool() { - return { - communityPool: [] - }; -} -export const FeePool = { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.communityPool) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFeePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.communityPool.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFeePool(); - message.communityPool = object.communityPool?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFeePool(); - message.communityPool = object.community_pool?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.communityPool) { - obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.community_pool = message.communityPool; - } - return obj; - }, - fromAminoMsg(object) { - return FeePool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/FeePool", - value: FeePool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return FeePool.decode(message.value); - }, - toProto(message) { - return FeePool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.FeePool", - value: FeePool.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposal() { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - title: "", - description: "", - recipient: "", - amount: [] - }; -} -export const CommunityPoolSpendProposal = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommunityPoolSpendProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommunityPoolSpendProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return CommunityPoolSpendProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommunityPoolSpendProposal", - value: CommunityPoolSpendProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CommunityPoolSpendProposal.decode(message.value); - }, - toProto(message) { - return CommunityPoolSpendProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", - value: CommunityPoolSpendProposal.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfo() { - return { - previousPeriod: BigInt(0), - stake: "", - height: BigInt(0) - }; -} -export const DelegatorStartingInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.previousPeriod !== BigInt(0)) { - writer.uint32(8).uint64(message.previousPeriod); - } - if (message.stake !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).uint64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.previousPeriod = reader.uint64(); - break; - case 2: - message.stake = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.height = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorStartingInfo(); - message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0); - message.stake = object.stake ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorStartingInfo(); - if (object.previous_period !== undefined && object.previous_period !== null) { - message.previousPeriod = BigInt(object.previous_period); - } - if (object.stake !== undefined && object.stake !== null) { - message.stake = object.stake; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; - obj.stake = message.stake === "" ? undefined : message.stake; - obj.height = message.height ? message.height.toString() : "0"; - return obj; - }, - fromAminoMsg(object) { - return DelegatorStartingInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorStartingInfo", - value: DelegatorStartingInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelegatorStartingInfo.decode(message.value); - }, - toProto(message) { - return DelegatorStartingInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", - value: DelegatorStartingInfo.encode(message).finish() - }; - } -}; -function createBaseDelegationDelegatorReward() { - return { - validatorAddress: "", - reward: [] - }; -} -export const DelegationDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.reward) { - DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.reward.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegationDelegatorReward(); - message.validatorAddress = object.validatorAddress ?? ""; - message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDelegationDelegatorReward(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.reward = object.reward?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.reward) { - obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.reward = message.reward; - } - return obj; - }, - fromAminoMsg(object) { - return DelegationDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegationDelegatorReward", - value: DelegationDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelegationDelegatorReward.decode(message.value); - }, - toProto(message) { - return DelegationDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", - value: DelegationDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseCommunityPoolSpendProposalWithDeposit() { - return { - $typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - title: "", - description: "", - recipient: "", - amount: "", - deposit: "" - }; -} -export const CommunityPoolSpendProposalWithDeposit = { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.deposit !== "") { - writer.uint32(42).string(message.deposit); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.deposit = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.deposit = object.deposit ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCommunityPoolSpendProposalWithDeposit(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = object.deposit; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.deposit = message.deposit === "" ? undefined : message.deposit; - return obj; - }, - fromAminoMsg(object) { - return CommunityPoolSpendProposalWithDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit", - value: CommunityPoolSpendProposalWithDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CommunityPoolSpendProposalWithDeposit.decode(message.value); - }, - toProto(message) { - return CommunityPoolSpendProposalWithDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", - value: CommunityPoolSpendProposalWithDeposit.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js deleted file mode 100644 index 8c98ab83..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/genesis.js +++ /dev/null @@ -1,820 +0,0 @@ -//@ts-nocheck -import { DecCoin } from "../../base/v1beta1/coin"; -import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool } from "./distribution"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseDelegatorWithdrawInfo() { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -export const DelegatorWithdrawInfo = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorWithdrawInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorWithdrawInfo(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorWithdrawInfo(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return DelegatorWithdrawInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorWithdrawInfo", - value: DelegatorWithdrawInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelegatorWithdrawInfo.decode(message.value); - }, - toProto(message) { - return DelegatorWithdrawInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", - value: DelegatorWithdrawInfo.encode(message).finish() - }; - } -}; -function createBaseValidatorOutstandingRewardsRecord() { - return { - validatorAddress: "", - outstandingRewards: [] - }; -} -export const ValidatorOutstandingRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - for (const v of message.outstandingRewards) { - DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorOutstandingRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorOutstandingRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorOutstandingRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.outstanding_rewards = message.outstandingRewards; - } - return obj; - }, - fromAminoMsg(object) { - return ValidatorOutstandingRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorOutstandingRewardsRecord", - value: ValidatorOutstandingRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorOutstandingRewardsRecord.decode(message.value); - }, - toProto(message) { - return ValidatorOutstandingRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", - value: ValidatorOutstandingRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorAccumulatedCommissionRecord() { - return { - validatorAddress: "", - accumulated: ValidatorAccumulatedCommission.fromPartial({}) - }; -} -export const ValidatorAccumulatedCommissionRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.accumulated !== undefined) { - ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorAccumulatedCommissionRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorAccumulatedCommissionRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorAccumulatedCommissionRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.accumulated !== undefined && object.accumulated !== null) { - message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorAccumulatedCommissionRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord", - value: ValidatorAccumulatedCommissionRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorAccumulatedCommissionRecord.decode(message.value); - }, - toProto(message) { - return ValidatorAccumulatedCommissionRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", - value: ValidatorAccumulatedCommissionRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorHistoricalRewardsRecord() { - return { - validatorAddress: "", - period: BigInt(0), - rewards: ValidatorHistoricalRewards.fromPartial({}) - }; -} -export const ValidatorHistoricalRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.period !== BigInt(0)) { - writer.uint32(16).uint64(message.period); - } - if (message.rewards !== undefined) { - ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorHistoricalRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.period = reader.uint64(); - break; - case 3: - message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorHistoricalRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorHistoricalRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorHistoricalRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorHistoricalRewardsRecord", - value: ValidatorHistoricalRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorHistoricalRewardsRecord.decode(message.value); - }, - toProto(message) { - return ValidatorHistoricalRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", - value: ValidatorHistoricalRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorCurrentRewardsRecord() { - return { - validatorAddress: "", - rewards: ValidatorCurrentRewards.fromPartial({}) - }; -} -export const ValidatorCurrentRewardsRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.rewards !== undefined) { - ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorCurrentRewardsRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorCurrentRewardsRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorCurrentRewardsRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorCurrentRewardsRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorCurrentRewardsRecord", - value: ValidatorCurrentRewardsRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorCurrentRewardsRecord.decode(message.value); - }, - toProto(message) { - return ValidatorCurrentRewardsRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", - value: ValidatorCurrentRewardsRecord.encode(message).finish() - }; - } -}; -function createBaseDelegatorStartingInfoRecord() { - return { - delegatorAddress: "", - validatorAddress: "", - startingInfo: DelegatorStartingInfo.fromPartial({}) - }; -} -export const DelegatorStartingInfoRecord = { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.startingInfo !== undefined) { - DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegatorStartingInfoRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegatorStartingInfoRecord(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelegatorStartingInfoRecord(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_info !== undefined && object.starting_info !== null) { - message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DelegatorStartingInfoRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegatorStartingInfoRecord", - value: DelegatorStartingInfoRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelegatorStartingInfoRecord.decode(message.value); - }, - toProto(message) { - return DelegatorStartingInfoRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", - value: DelegatorStartingInfoRecord.encode(message).finish() - }; - } -}; -function createBaseValidatorSlashEventRecord() { - return { - validatorAddress: "", - height: BigInt(0), - period: BigInt(0), - validatorSlashEvent: ValidatorSlashEvent.fromPartial({}) - }; -} -export const ValidatorSlashEventRecord = { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).uint64(message.height); - } - if (message.period !== BigInt(0)) { - writer.uint32(24).uint64(message.period); - } - if (message.validatorSlashEvent !== undefined) { - ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSlashEventRecord(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.height = reader.uint64(); - break; - case 3: - message.period = reader.uint64(); - break; - case 4: - message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSlashEventRecord(); - message.validatorAddress = object.validatorAddress ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0); - message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSlashEventRecord(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.period !== undefined && object.period !== null) { - message.period = BigInt(object.period); - } - if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) { - message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; - obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorSlashEventRecord.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValidatorSlashEventRecord", - value: ValidatorSlashEventRecord.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValidatorSlashEventRecord.decode(message.value); - }, - toProto(message) { - return ValidatorSlashEventRecord.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", - value: ValidatorSlashEventRecord.encode(message).finish() - }; - } -}; -function createBaseGenesisState() { - return { - params: Params.fromPartial({}), - feePool: FeePool.fromPartial({}), - delegatorWithdrawInfos: [], - previousProposer: "", - outstandingRewards: [], - validatorAccumulatedCommissions: [], - validatorHistoricalRewards: [], - validatorCurrentRewards: [], - delegatorStartingInfos: [], - validatorSlashEvents: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.feePool !== undefined) { - FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatorWithdrawInfos) { - DelegatorWithdrawInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.previousProposer !== "") { - writer.uint32(34).string(message.previousProposer); - } - for (const v of message.outstandingRewards) { - ValidatorOutstandingRewardsRecord.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.validatorAccumulatedCommissions) { - ValidatorAccumulatedCommissionRecord.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.validatorHistoricalRewards) { - ValidatorHistoricalRewardsRecord.encode(v, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.validatorCurrentRewards) { - ValidatorCurrentRewardsRecord.encode(v, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.delegatorStartingInfos) { - DelegatorStartingInfoRecord.encode(v, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.validatorSlashEvents) { - ValidatorSlashEventRecord.encode(v, writer.uint32(82).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.feePool = FeePool.decode(reader, reader.uint32()); - break; - case 3: - message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32())); - break; - case 4: - message.previousProposer = reader.string(); - break; - case 5: - message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32())); - break; - case 6: - message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32())); - break; - case 7: - message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32())); - break; - case 8: - message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32())); - break; - case 9: - message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32())); - break; - case 10: - message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined; - message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || []; - message.previousProposer = object.previousProposer ?? ""; - message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || []; - message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || []; - message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || []; - message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || []; - message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || []; - message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.fee_pool !== undefined && object.fee_pool !== null) { - message.feePool = FeePool.fromAmino(object.fee_pool); - } - message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || []; - if (object.previous_proposer !== undefined && object.previous_proposer !== null) { - message.previousProposer = object.previous_proposer; - } - message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || []; - message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || []; - message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || []; - message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || []; - message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || []; - message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : undefined; - if (message.delegatorWithdrawInfos) { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined); - } - else { - obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; - } - obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; - if (message.outstandingRewards) { - obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); - } - else { - obj.outstanding_rewards = message.outstandingRewards; - } - if (message.validatorAccumulatedCommissions) { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); - } - else { - obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; - } - if (message.validatorHistoricalRewards) { - obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); - } - else { - obj.validator_historical_rewards = message.validatorHistoricalRewards; - } - if (message.validatorCurrentRewards) { - obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined); - } - else { - obj.validator_current_rewards = message.validatorCurrentRewards; - } - if (message.delegatorStartingInfos) { - obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined); - } - else { - obj.delegator_starting_infos = message.delegatorStartingInfos; - } - if (message.validatorSlashEvents) { - obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined); - } - else { - obj.validator_slash_events = message.validatorSlashEvents; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js deleted file mode 100644 index f393e30a..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.js +++ /dev/null @@ -1,1311 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "./distribution"; -import { DecCoin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsRequest() { - return { - validatorAddress: "" - }; -} -export const QueryValidatorOutstandingRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorOutstandingRewardsRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorOutstandingRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest", - value: QueryValidatorOutstandingRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorOutstandingRewardsRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorOutstandingRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", - value: QueryValidatorOutstandingRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorOutstandingRewardsResponse() { - return { - rewards: ValidatorOutstandingRewards.fromPartial({}) - }; -} -export const QueryValidatorOutstandingRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.rewards !== undefined) { - ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorOutstandingRewardsResponse(); - if (object.rewards !== undefined && object.rewards !== null) { - message.rewards = ValidatorOutstandingRewards.fromAmino(object.rewards); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.rewards = message.rewards ? ValidatorOutstandingRewards.toAmino(message.rewards) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorOutstandingRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse", - value: QueryValidatorOutstandingRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorOutstandingRewardsResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorOutstandingRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", - value: QueryValidatorOutstandingRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionRequest() { - return { - validatorAddress: "" - }; -} -export const QueryValidatorCommissionRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorCommissionRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorCommissionRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorCommissionRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorCommissionRequest", - value: QueryValidatorCommissionRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorCommissionRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorCommissionRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", - value: QueryValidatorCommissionRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorCommissionResponse() { - return { - commission: ValidatorAccumulatedCommission.fromPartial({}) - }; -} -export const QueryValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.commission !== undefined) { - ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorCommissionResponse(); - message.commission = object.commission !== undefined && object.commission !== null ? ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorCommissionResponse(); - if (object.commission !== undefined && object.commission !== null) { - message.commission = ValidatorAccumulatedCommission.fromAmino(object.commission); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.commission = message.commission ? ValidatorAccumulatedCommission.toAmino(message.commission) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorCommissionResponse", - value: QueryValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorCommissionResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", - value: QueryValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesRequest() { - return { - validatorAddress: "", - startingHeight: BigInt(0), - endingHeight: BigInt(0), - pagination: undefined - }; -} -export const QueryValidatorSlashesRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - if (message.startingHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.startingHeight); - } - if (message.endingHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.endingHeight); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - case 2: - message.startingHeight = reader.uint64(); - break; - case 3: - message.endingHeight = reader.uint64(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorSlashesRequest(); - message.validatorAddress = object.validatorAddress ?? ""; - message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0); - message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorSlashesRequest(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.starting_height !== undefined && object.starting_height !== null) { - message.startingHeight = BigInt(object.starting_height); - } - if (object.ending_height !== undefined && object.ending_height !== null) { - message.endingHeight = BigInt(object.ending_height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; - obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorSlashesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorSlashesRequest", - value: QueryValidatorSlashesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorSlashesRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorSlashesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", - value: QueryValidatorSlashesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorSlashesResponse() { - return { - slashes: [], - pagination: undefined - }; -} -export const QueryValidatorSlashesResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.slashes) { - ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorSlashesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorSlashesResponse(); - message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.slashes) { - obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); - } - else { - obj.slashes = message.slashes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorSlashesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorSlashesResponse", - value: QueryValidatorSlashesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorSlashesResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorSlashesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", - value: QueryValidatorSlashesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsRequest() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const QueryDelegationRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRewardsRequest", - value: QueryDelegationRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationRewardsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegationRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", - value: QueryDelegationRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRewardsResponse() { - return { - rewards: [] - }; -} -export const QueryDelegationRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.rewards) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRewardsResponse(); - message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRewardsResponse", - value: QueryDelegationRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationRewardsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegationRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", - value: QueryDelegationRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsRequest() { - return { - delegatorAddress: "" - }; -} -export const QueryDelegationTotalRewardsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationTotalRewardsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationTotalRewardsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationTotalRewardsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsRequest", - value: QueryDelegationTotalRewardsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationTotalRewardsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegationTotalRewardsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", - value: QueryDelegationTotalRewardsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationTotalRewardsResponse() { - return { - rewards: [], - total: [] - }; -} -export const QueryDelegationTotalRewardsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.rewards) { - DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.total) { - DecCoin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationTotalRewardsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32())); - break; - case 2: - message.total.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || []; - message.total = object.total?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationTotalRewardsResponse(); - message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromAmino(e)) || []; - message.total = object.total?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rewards) { - obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined); - } - else { - obj.rewards = message.rewards; - } - if (message.total) { - obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.total = message.total; - } - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationTotalRewardsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationTotalRewardsResponse", - value: QueryDelegationTotalRewardsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationTotalRewardsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegationTotalRewardsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", - value: QueryDelegationTotalRewardsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest() { - return { - delegatorAddress: "" - }; -} -export const QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse() { - return { - validators: [] - }; -} -export const QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validators) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e); - } - else { - obj.validators = message.validators; - } - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressRequest() { - return { - delegatorAddress: "" - }; -} -export const QueryDelegatorWithdrawAddressRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - message.delegatorAddress = object.delegatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorWithdrawAddressRequest(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorWithdrawAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest", - value: QueryDelegatorWithdrawAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorWithdrawAddressRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorWithdrawAddressRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", - value: QueryDelegatorWithdrawAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorWithdrawAddressResponse() { - return { - withdrawAddress: "" - }; -} -export const QueryDelegatorWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.withdrawAddress !== "") { - writer.uint32(10).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorWithdrawAddressResponse(); - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse", - value: QueryDelegatorWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorWithdrawAddressResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", - value: QueryDelegatorWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolRequest() { - return {}; -} -export const QueryCommunityPoolRequest = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCommunityPoolRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryCommunityPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCommunityPoolRequest", - value: QueryCommunityPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryCommunityPoolRequest.decode(message.value); - }, - toProto(message) { - return QueryCommunityPoolRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", - value: QueryCommunityPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCommunityPoolResponse() { - return { - pool: [] - }; -} -export const QueryCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.pool) { - DecCoin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool.push(DecCoin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCommunityPoolResponse(); - message.pool = object.pool?.map(e => DecCoin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pool) { - obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined); - } - else { - obj.pool = message.pool; - } - return obj; - }, - fromAminoMsg(object) { - return QueryCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCommunityPoolResponse", - value: QueryCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryCommunityPoolResponse.decode(message.value); - }, - toProto(message) { - return QueryCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", - value: QueryCommunityPoolResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js deleted file mode 100644 index 41b44f14..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.lcd.js +++ /dev/null @@ -1,75 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - /* Params queries params of the distribution module. */ - async params(_params = {}) { - const endpoint = `cosmos/distribution/v1beta1/params`; - return await this.req.get(endpoint); - } - /* ValidatorOutstandingRewards queries rewards of a validator address. */ - async validatorOutstandingRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/outstanding_rewards`; - return await this.req.get(endpoint); - } - /* ValidatorCommission queries accumulated commission for a validator. */ - async validatorCommission(params) { - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/commission`; - return await this.req.get(endpoint); - } - /* ValidatorSlashes queries slash events of a validator. */ - async validatorSlashes(params) { - const options = { - params: {} - }; - if (typeof params?.startingHeight !== "undefined") { - options.params.starting_height = params.startingHeight; - } - if (typeof params?.endingHeight !== "undefined") { - options.params.ending_height = params.endingHeight; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/distribution/v1beta1/validators/${params.validatorAddress}/slashes`; - return await this.req.get(endpoint, options); - } - /* DelegationRewards queries the total rewards accrued by a delegation. */ - async delegationRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`; - return await this.req.get(endpoint); - } - /* DelegationTotalRewards queries the total rewards accrued by a each - validator. */ - async delegationTotalRewards(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards`; - return await this.req.get(endpoint); - } - /* DelegatorValidators queries the validators of a delegator. */ - async delegatorValidators(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/validators`; - return await this.req.get(endpoint); - } - /* DelegatorWithdrawAddress queries withdraw address of a delegator. */ - async delegatorWithdrawAddress(params) { - const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/withdraw_address`; - return await this.req.get(endpoint); - } - /* CommunityPool queries the community pool coins. */ - async communityPool(_params = {}) { - const endpoint = `cosmos/distribution/v1beta1/community_pool`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js deleted file mode 100644 index 123ff28b..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,96 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); - this.validatorCommission = this.validatorCommission.bind(this); - this.validatorSlashes = this.validatorSlashes.bind(this); - this.delegationRewards = this.delegationRewards.bind(this); - this.delegationTotalRewards = this.delegationTotalRewards.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); - this.communityPool = this.communityPool.bind(this); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - validatorOutstandingRewards(request) { - const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); - return promise.then(data => QueryValidatorOutstandingRewardsResponse.decode(new BinaryReader(data))); - } - validatorCommission(request) { - const data = QueryValidatorCommissionRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); - return promise.then(data => QueryValidatorCommissionResponse.decode(new BinaryReader(data))); - } - validatorSlashes(request) { - const data = QueryValidatorSlashesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); - return promise.then(data => QueryValidatorSlashesResponse.decode(new BinaryReader(data))); - } - delegationRewards(request) { - const data = QueryDelegationRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); - return promise.then(data => QueryDelegationRewardsResponse.decode(new BinaryReader(data))); - } - delegationTotalRewards(request) { - const data = QueryDelegationTotalRewardsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); - return promise.then(data => QueryDelegationTotalRewardsResponse.decode(new BinaryReader(data))); - } - delegatorValidators(request) { - const data = QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); - } - delegatorWithdrawAddress(request) { - const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); - return promise.then(data => QueryDelegatorWithdrawAddressResponse.decode(new BinaryReader(data))); - } - communityPool(request = {}) { - const data = QueryCommunityPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); - return promise.then(data => QueryCommunityPoolResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - validatorOutstandingRewards(request) { - return queryService.validatorOutstandingRewards(request); - }, - validatorCommission(request) { - return queryService.validatorCommission(request); - }, - validatorSlashes(request) { - return queryService.validatorSlashes(request); - }, - delegationRewards(request) { - return queryService.delegationRewards(request); - }, - delegationTotalRewards(request) { - return queryService.delegationTotalRewards(request); - }, - delegatorValidators(request) { - return queryService.delegatorValidators(request); - }, - delegatorWithdrawAddress(request) { - return queryService.delegatorWithdrawAddress(request); - }, - communityPool(request) { - return queryService.communityPool(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js deleted file mode 100644 index 20cc05f1..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.amino.js +++ /dev/null @@ -1,24 +0,0 @@ -//@ts-nocheck -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export const AminoConverter = { - "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", - toAmino: MsgSetWithdrawAddress.toAmino, - fromAmino: MsgSetWithdrawAddress.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", - toAmino: MsgWithdrawDelegatorReward.toAmino, - fromAmino: MsgWithdrawDelegatorReward.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { - aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission", - toAmino: MsgWithdrawValidatorCommission.toAmino, - fromAmino: MsgWithdrawValidatorCommission.fromAmino - }, - "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { - aminoType: "cosmos-sdk/MsgFundCommunityPool", - toAmino: MsgFundCommunityPool.toAmino, - fromAmino: MsgFundCommunityPool.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js deleted file mode 100644 index 8a57224e..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.js +++ /dev/null @@ -1,574 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgSetWithdrawAddress() { - return { - delegatorAddress: "", - withdrawAddress: "" - }; -} -export const MsgSetWithdrawAddress = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.withdrawAddress !== "") { - writer.uint32(18).string(message.withdrawAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.withdrawAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSetWithdrawAddress(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.withdrawAddress = object.withdrawAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSetWithdrawAddress(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.withdraw_address !== undefined && object.withdraw_address !== null) { - message.withdrawAddress = object.withdraw_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; - return obj; - }, - fromAminoMsg(object) { - return MsgSetWithdrawAddress.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgModifyWithdrawAddress", - value: MsgSetWithdrawAddress.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSetWithdrawAddress.decode(message.value); - }, - toProto(message) { - return MsgSetWithdrawAddress.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.encode(message).finish() - }; - } -}; -function createBaseMsgSetWithdrawAddressResponse() { - return {}; -} -export const MsgSetWithdrawAddressResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetWithdrawAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSetWithdrawAddressResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSetWithdrawAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSetWithdrawAddressResponse", - value: MsgSetWithdrawAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSetWithdrawAddressResponse.decode(message.value); - }, - toProto(message) { - return MsgSetWithdrawAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", - value: MsgSetWithdrawAddressResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorReward() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const MsgWithdrawDelegatorReward = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorReward(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawDelegatorReward(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawDelegatorReward(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawDelegatorReward.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawDelegationReward", - value: MsgWithdrawDelegatorReward.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawDelegatorReward.decode(message.value); - }, - toProto(message) { - return MsgWithdrawDelegatorReward.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawDelegatorRewardResponse() { - return { - amount: [] - }; -} -export const MsgWithdrawDelegatorRewardResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.amount) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawDelegatorRewardResponse(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawDelegatorRewardResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawDelegatorRewardResponse", - value: MsgWithdrawDelegatorRewardResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawDelegatorRewardResponse.decode(message.value); - }, - toProto(message) { - return MsgWithdrawDelegatorRewardResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", - value: MsgWithdrawDelegatorRewardResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommission() { - return { - validatorAddress: "" - }; -} -export const MsgWithdrawValidatorCommission = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddress !== "") { - writer.uint32(10).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawValidatorCommission(); - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawValidatorCommission(); - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawValidatorCommission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawValidatorCommission.decode(message.value); - }, - toProto(message) { - return MsgWithdrawValidatorCommission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawValidatorCommissionResponse() { - return { - amount: [] - }; -} -export const MsgWithdrawValidatorCommissionResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.amount) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawValidatorCommissionResponse(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawValidatorCommissionResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommissionResponse", - value: MsgWithdrawValidatorCommissionResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawValidatorCommissionResponse.decode(message.value); - }, - toProto(message) { - return MsgWithdrawValidatorCommissionResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", - value: MsgWithdrawValidatorCommissionResponse.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPool() { - return { - amount: [], - depositor: "" - }; -} -export const MsgFundCommunityPool = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.amount) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgFundCommunityPool(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return MsgFundCommunityPool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgFundCommunityPool", - value: MsgFundCommunityPool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgFundCommunityPool.decode(message.value); - }, - toProto(message) { - return MsgFundCommunityPool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.encode(message).finish() - }; - } -}; -function createBaseMsgFundCommunityPoolResponse() { - return {}; -} -export const MsgFundCommunityPoolResponse = { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgFundCommunityPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgFundCommunityPoolResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgFundCommunityPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgFundCommunityPoolResponse", - value: MsgFundCommunityPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgFundCommunityPoolResponse.decode(message.value); - }, - toProto(message) { - return MsgFundCommunityPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", - value: MsgFundCommunityPoolResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js deleted file mode 100644 index 6bfab5f5..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.registry.js +++ /dev/null @@ -1,87 +0,0 @@ -import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; -export const registry = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.encode(value).finish() - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.encode(value).finish() - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.encode(value).finish() - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.encode(value).finish() - }; - } - }, - withTypeUrl: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value - }; - } - }, - fromPartial: { - setWithdrawAddress(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", - value: MsgSetWithdrawAddress.fromPartial(value) - }; - }, - withdrawDelegatorReward(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", - value: MsgWithdrawDelegatorReward.fromPartial(value) - }; - }, - withdrawValidatorCommission(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", - value: MsgWithdrawValidatorCommission.fromPartial(value) - }; - }, - fundCommunityPool(value) { - return { - typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", - value: MsgFundCommunityPool.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js deleted file mode 100644 index e13bc697..00000000 --- a/packages/api/dist/esm/cosmos/distribution/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,32 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.setWithdrawAddress = this.setWithdrawAddress.bind(this); - this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); - this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); - this.fundCommunityPool = this.fundCommunityPool.bind(this); - } - setWithdrawAddress(request) { - const data = MsgSetWithdrawAddress.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); - return promise.then(data => MsgSetWithdrawAddressResponse.decode(new BinaryReader(data))); - } - withdrawDelegatorReward(request) { - const data = MsgWithdrawDelegatorReward.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); - return promise.then(data => MsgWithdrawDelegatorRewardResponse.decode(new BinaryReader(data))); - } - withdrawValidatorCommission(request) { - const data = MsgWithdrawValidatorCommission.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); - return promise.then(data => MsgWithdrawValidatorCommissionResponse.decode(new BinaryReader(data))); - } - fundCommunityPool(request) { - const data = MsgFundCommunityPool.encode(request).finish(); - const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); - return promise.then(data => MsgFundCommunityPoolResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js deleted file mode 100644 index 4a867882..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +++ /dev/null @@ -1,450 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration } from "../../../google/protobuf/duration"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseBasicAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - spendLimit: [], - expiration: undefined - }; -} -export const BasicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.spendLimit) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || []; - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.spendLimit) { - obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.spend_limit = message.spendLimit; - } - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BasicAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BasicAllowance.decode(message.value); - }, - toProto(message) { - return BasicAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(message).finish() - }; - } -}; -function createBasePeriodicAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - basic: BasicAllowance.fromPartial({}), - period: Duration.fromPartial({}), - periodSpendLimit: [], - periodCanSpend: [], - periodReset: new Date() - }; -} -export const PeriodicAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - encode(message, writer = BinaryWriter.create()) { - if (message.basic !== undefined) { - BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== undefined) { - Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.periodSpendLimit) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.periodCanSpend) { - Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.periodReset !== undefined) { - Timestamp.encode(toTimestamp(message.periodReset), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basic = BasicAllowance.decode(reader, reader.uint32()); - break; - case 2: - message.period = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.periodSpendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.periodCanSpend.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.periodReset = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriodicAllowance(); - message.basic = object.basic !== undefined && object.basic !== null ? BasicAllowance.fromPartial(object.basic) : undefined; - message.period = object.period !== undefined && object.period !== null ? Duration.fromPartial(object.period) : undefined; - message.periodSpendLimit = object.periodSpendLimit?.map(e => Coin.fromPartial(e)) || []; - message.periodCanSpend = object.periodCanSpend?.map(e => Coin.fromPartial(e)) || []; - message.periodReset = object.periodReset ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBasePeriodicAllowance(); - if (object.basic !== undefined && object.basic !== null) { - message.basic = BasicAllowance.fromAmino(object.basic); - } - if (object.period !== undefined && object.period !== null) { - message.period = Duration.fromAmino(object.period); - } - message.periodSpendLimit = object.period_spend_limit?.map(e => Coin.fromAmino(e)) || []; - message.periodCanSpend = object.period_can_spend?.map(e => Coin.fromAmino(e)) || []; - if (object.period_reset !== undefined && object.period_reset !== null) { - message.periodReset = fromTimestamp(Timestamp.fromAmino(object.period_reset)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basic = message.basic ? BasicAllowance.toAmino(message.basic) : undefined; - obj.period = message.period ? Duration.toAmino(message.period) : undefined; - if (message.periodSpendLimit) { - obj.period_spend_limit = message.periodSpendLimit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.period_spend_limit = message.periodSpendLimit; - } - if (message.periodCanSpend) { - obj.period_can_spend = message.periodCanSpend.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.period_can_spend = message.periodCanSpend; - } - obj.period_reset = message.periodReset ? Timestamp.toAmino(toTimestamp(message.periodReset)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PeriodicAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PeriodicAllowance.decode(message.value); - }, - toProto(message) { - return PeriodicAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(message).finish() - }; - } -}; -function createBaseAllowedMsgAllowance() { - return { - $typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - allowance: undefined, - allowedMessages: [] - }; -} -export const AllowedMsgAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - encode(message, writer = BinaryWriter.create()) { - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedMessages) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedMsgAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = FeeAllowanceI_InterfaceDecoder(reader); - break; - case 2: - message.allowedMessages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedMsgAllowance(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - message.allowedMessages = object.allowedMessages?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedMsgAllowance(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - message.allowedMessages = object.allowed_messages?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; - if (message.allowedMessages) { - obj.allowed_messages = message.allowedMessages.map(e => e); - } - else { - obj.allowed_messages = message.allowedMessages; - } - return obj; - }, - fromAminoMsg(object) { - return AllowedMsgAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AllowedMsgAllowance.decode(message.value); - }, - toProto(message) { - return AllowedMsgAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(message).finish() - }; - } -}; -function createBaseGrant() { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const Grant = { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = FeeAllowanceI_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGrant(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Grant.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Grant", - value: Grant.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Grant.decode(message.value); - }, - toProto(message) { - return Grant.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.Grant", - value: Grant.encode(message).finish() - }; - } -}; -export const FeeAllowanceI_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -export const FeeAllowanceI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const FeeAllowanceI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js deleted file mode 100644 index 2a1e945e..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/genesis.js +++ /dev/null @@ -1,75 +0,0 @@ -//@ts-nocheck -import { Grant } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - allowances: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowances) { - Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js deleted file mode 100644 index bcbe3d22..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.js +++ /dev/null @@ -1,484 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Grant } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryAllowanceRequest() { - return { - granter: "", - grantee: "" - }; -} -export const QueryAllowanceRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowanceRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowanceRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowanceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowanceRequest", - value: QueryAllowanceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowanceRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", - value: QueryAllowanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowanceResponse() { - return { - allowance: undefined - }; -} -export const QueryAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.allowance !== undefined) { - Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowanceResponse(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowanceResponse(); - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = Grant.fromAmino(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowanceResponse", - value: QueryAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowanceResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", - value: QueryAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesRequest() { - return { - grantee: "", - pagination: undefined - }; -} -export const QueryAllowancesRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesRequest(); - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowancesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesRequest", - value: QueryAllowancesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowancesRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", - value: QueryAllowancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesResponse() { - return { - allowances: [], - pagination: undefined - }; -} -export const QueryAllowancesResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowances) { - Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowancesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesResponse", - value: QueryAllowancesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowancesResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", - value: QueryAllowancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterRequest() { - return { - granter: "", - pagination: undefined - }; -} -export const QueryAllowancesByGranterRequest = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesByGranterRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesByGranterRequest(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowancesByGranterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesByGranterRequest", - value: QueryAllowancesByGranterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowancesByGranterRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowancesByGranterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", - value: QueryAllowancesByGranterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowancesByGranterResponse() { - return { - allowances: [], - pagination: undefined - }; -} -export const QueryAllowancesByGranterResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowances) { - Grant.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowances) { - obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined); - } - else { - obj.allowances = message.allowances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowancesByGranterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAllowancesByGranterResponse", - value: QueryAllowancesByGranterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAllowancesByGranterResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowancesByGranterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", - value: QueryAllowancesByGranterResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js deleted file mode 100644 index 08e94895..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +++ /dev/null @@ -1,40 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - /* Allowance returns fee granted to the grantee by the granter. */ - async allowance(params) { - const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; - return await this.req.get(endpoint); - } - /* Allowances returns all the grants for address. */ - async allowances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; - return await this.req.get(endpoint, options); - } - /* AllowancesByGranter returns all the grants given by an address - - Since: cosmos-sdk 0.46 */ - async allowancesByGranter(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; - return await this.req.get(endpoint, options); - } -} diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js deleted file mode 100644 index dc7173c5..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,42 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - allowance(request) { - const data = QueryAllowanceRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data); - return promise.then(data => QueryAllowanceResponse.decode(new BinaryReader(data))); - } - allowances(request) { - const data = QueryAllowancesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data); - return promise.then(data => QueryAllowancesResponse.decode(new BinaryReader(data))); - } - allowancesByGranter(request) { - const data = QueryAllowancesByGranterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data); - return promise.then(data => QueryAllowancesByGranterResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - allowance(request) { - return queryService.allowance(request); - }, - allowances(request) { - return queryService.allowances(request); - }, - allowancesByGranter(request) { - return queryService.allowancesByGranter(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js deleted file mode 100644 index 1f034a8a..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.amino.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ts-nocheck -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export const AminoConverter = { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: "cosmos-sdk/MsgGrantAllowance", - toAmino: MsgGrantAllowance.toAmino, - fromAmino: MsgGrantAllowance.fromAmino - }, - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: "cosmos-sdk/MsgRevokeAllowance", - toAmino: MsgRevokeAllowance.toAmino, - fromAmino: MsgRevokeAllowance.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js deleted file mode 100644 index df1944a6..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.js +++ /dev/null @@ -1,346 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { BasicAllowance, PeriodicAllowance, AllowedMsgAllowance } from "./feegrant"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgGrantAllowance() { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const MsgGrantAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = FeeAllowanceI_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgGrantAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgGrantAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - if (object.allowance !== undefined && object.allowance !== null) { - message.allowance = FeeAllowanceI_FromAmino(object.allowance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - obj.allowance = message.allowance ? FeeAllowanceI_ToAmino(message.allowance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgGrantAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantAllowance", - value: MsgGrantAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgGrantAllowance.decode(message.value); - }, - toProto(message) { - return MsgGrantAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgGrantAllowanceResponse() { - return {}; -} -export const MsgGrantAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgGrantAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgGrantAllowanceResponse", - value: MsgGrantAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgGrantAllowanceResponse.decode(message.value); - }, - toProto(message) { - return MsgGrantAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", - value: MsgGrantAllowanceResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowance() { - return { - granter: "", - grantee: "" - }; -} -export const MsgRevokeAllowance = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - encode(message, writer = BinaryWriter.create()) { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRevokeAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRevokeAllowance(); - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - if (object.grantee !== undefined && object.grantee !== null) { - message.grantee = object.grantee; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.granter = message.granter === "" ? undefined : message.granter; - obj.grantee = message.grantee === "" ? undefined : message.grantee; - return obj; - }, - fromAminoMsg(object) { - return MsgRevokeAllowance.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeAllowance", - value: MsgRevokeAllowance.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRevokeAllowance.decode(message.value); - }, - toProto(message) { - return MsgRevokeAllowance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.encode(message).finish() - }; - } -}; -function createBaseMsgRevokeAllowanceResponse() { - return {}; -} -export const MsgRevokeAllowanceResponse = { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRevokeAllowanceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgRevokeAllowanceResponse", - value: MsgRevokeAllowanceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRevokeAllowanceResponse.decode(message.value); - }, - toProto(message) { - return MsgRevokeAllowanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", - value: MsgRevokeAllowanceResponse.encode(message).finish() - }; - } -}; -export const FeeAllowanceI_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return BasicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return PeriodicAllowance.decode(data.value); - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return AllowedMsgAllowance.decode(data.value); - default: - return data; - } -}; -export const FeeAllowanceI_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/BasicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", - value: BasicAllowance.encode(BasicAllowance.fromPartial(BasicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PeriodicAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", - value: PeriodicAllowance.encode(PeriodicAllowance.fromPartial(PeriodicAllowance.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/AllowedMsgAllowance": - return Any.fromPartial({ - typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", - value: AllowedMsgAllowance.encode(AllowedMsgAllowance.fromPartial(AllowedMsgAllowance.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const FeeAllowanceI_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.feegrant.v1beta1.BasicAllowance": - return { - type: "cosmos-sdk/BasicAllowance", - value: BasicAllowance.toAmino(BasicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.PeriodicAllowance": - return { - type: "cosmos-sdk/PeriodicAllowance", - value: PeriodicAllowance.toAmino(PeriodicAllowance.decode(content.value, undefined)) - }; - case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance": - return { - type: "cosmos-sdk/AllowedMsgAllowance", - value: AllowedMsgAllowance.toAmino(AllowedMsgAllowance.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js deleted file mode 100644 index d312eba3..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.registry.js +++ /dev/null @@ -1,51 +0,0 @@ -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export const registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.encode(value).finish() - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.encode(value).finish() - }; - } - }, - withTypeUrl: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value - }; - } - }, - fromPartial: { - grantAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.fromPartial(value) - }; - }, - revokeAllowance(value) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 2097620b..00000000 --- a/packages/api/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,20 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.grantAllowance = this.grantAllowance.bind(this); - this.revokeAllowance = this.revokeAllowance.bind(this); - } - grantAllowance(request) { - const data = MsgGrantAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data); - return promise.then(data => MsgGrantAllowanceResponse.decode(new BinaryReader(data))); - } - revokeAllowance(request) { - const data = MsgRevokeAllowance.encode(request).finish(); - const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data); - return promise.then(data => MsgRevokeAllowanceResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/gov/v1/genesis.js b/packages/api/dist/esm/cosmos/gov/v1/genesis.js deleted file mode 100644 index d7d23e73..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/genesis.js +++ /dev/null @@ -1,153 +0,0 @@ -//@ts-nocheck -import { Deposit, Vote, Proposal, DepositParams, VotingParams, TallyParams } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: undefined, - votingParams: undefined, - tallyParams: undefined - }; -} -export const GenesisState = { - typeUrl: "/cosmos.gov.v1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - Deposit.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/gov.js b/packages/api/dist/esm/cosmos/gov/v1/gov.js deleted file mode 100644 index e7e99e71..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/gov.js +++ /dev/null @@ -1,962 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { Any } from "../../../google/protobuf/any"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export var VoteOption; -(function (VoteOption) { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (VoteOption = {})); -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (ProposalStatus = {})); -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseWeightedVoteOption() { - return { - option: 0, - weight: "" - }; -} -export const WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - encode(message, writer = BinaryWriter.create()) { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = reader.int32(); - break; - case 2: - message.weight = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object) { - return WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/WeightedVoteOption", - value: WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message) { - return WeightedVoteOption.decode(message.value); - }, - toProto(message) { - return WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.WeightedVoteOption", - value: WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const Deposit = { - typeUrl: "/cosmos.gov.v1.Deposit", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return Deposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Deposit", - value: Deposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Deposit.decode(message.value); - }, - toProto(message) { - return Deposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Deposit", - value: Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - id: BigInt(0), - messages: [], - status: 0, - finalTallyResult: undefined, - submitTime: undefined, - depositEndTime: undefined, - totalDeposit: [], - votingStartTime: undefined, - votingEndTime: undefined, - metadata: "" - }; -} -export const Proposal = { - typeUrl: "/cosmos.gov.v1.Proposal", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - for (const v of message.messages) { - Any.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - Coin.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(82).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 3: - message.status = reader.int32(); - break; - case 4: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.totalDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime ?? undefined; - message.depositEndTime = object.depositEndTime ?? undefined; - message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime ?? undefined; - message.votingEndTime = object.votingEndTime ?? undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); - } - message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; - obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; - obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Proposal.decode(message.value); - }, - toProto(message) { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.gov.v1.TallyResult", - encode(message, writer = BinaryWriter.create()) { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object) { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TallyResult.decode(message.value); - }, - toProto(message) { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -export const Vote = { - typeUrl: "/cosmos.gov.v1.Vote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 4: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Vote.decode(message.value); - }, - toProto(message) { - return Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams() { - return { - minDeposit: [], - maxDepositPeriod: undefined - }; -} -export const DepositParams = { - typeUrl: "/cosmos.gov.v1.DepositParams", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.minDeposit) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DepositParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/DepositParams", - value: DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DepositParams.decode(message.value); - }, - toProto(message) { - return DepositParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.DepositParams", - value: DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams() { - return { - votingPeriod: undefined - }; -} -export const VotingParams = { - typeUrl: "/cosmos.gov.v1.VotingParams", - encode(message, writer = BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return VotingParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/VotingParams", - value: VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return VotingParams.decode(message.value); - }, - toProto(message) { - return VotingParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.VotingParams", - value: VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams() { - return { - quorum: "", - threshold: "", - vetoThreshold: "" - }; -} -export const TallyParams = { - typeUrl: "/cosmos.gov.v1.TallyParams", - encode(message, writer = BinaryWriter.create()) { - if (message.quorum !== "") { - writer.uint32(10).string(message.quorum); - } - if (message.threshold !== "") { - writer.uint32(18).string(message.threshold); - } - if (message.vetoThreshold !== "") { - writer.uint32(26).string(message.vetoThreshold); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.string(); - break; - case 2: - message.threshold = reader.string(); - break; - case 3: - message.vetoThreshold = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? ""; - message.threshold = object.threshold ?? ""; - message.vetoThreshold = object.vetoThreshold ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = object.quorum; - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = object.veto_threshold; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.quorum = message.quorum === "" ? undefined : message.quorum; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.veto_threshold = message.vetoThreshold === "" ? undefined : message.vetoThreshold; - return obj; - }, - fromAminoMsg(object) { - return TallyParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/TallyParams", - value: TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TallyParams.decode(message.value); - }, - toProto(message) { - return TallyParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.TallyParams", - value: TallyParams.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.js b/packages/api/dist/esm/cosmos/gov/v1/query.js deleted file mode 100644 index 423a99d1..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/query.js +++ /dev/null @@ -1,1261 +0,0 @@ -//@ts-nocheck -import { Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: undefined - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest() { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -export const QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = reader.int32(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalsRequest", - value: QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", - value: QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse() { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryProposalsResponse", - value: QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", - value: QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVoteRequest", - value: QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteRequest.decode(message.value); - }, - toProto(message) { - return QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteRequest", - value: QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse() { - return { - vote: undefined - }; -} -export const QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVoteResponse", - value: QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteResponse.decode(message.value); - }, - toProto(message) { - return QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVoteResponse", - value: QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVotesRequest", - value: QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesRequest.decode(message.value); - }, - toProto(message) { - return QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesRequest", - value: QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse() { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.votes) { - Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryVotesResponse", - value: QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesResponse.decode(message.value); - }, - toProto(message) { - return QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryVotesResponse", - value: QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return { - paramsType: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - votingParams: undefined, - depositParams: undefined, - tallyParams: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest() { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -export const QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositRequest", - value: QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositRequest.decode(message.value); - }, - toProto(message) { - return QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositRequest", - value: QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse() { - return { - deposit: undefined - }; -} -export const QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.deposit !== undefined) { - Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositResponse", - value: QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositResponse.decode(message.value); - }, - toProto(message) { - return QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositResponse", - value: QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositsRequest", - value: QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositsRequest.decode(message.value); - }, - toProto(message) { - return QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", - value: QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse() { - return { - deposits: [], - pagination: undefined - }; -} -export const QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.deposits) { - Deposit.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryDepositsResponse", - value: QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositsResponse.decode(message.value); - }, - toProto(message) { - return QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", - value: QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: undefined - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js b/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js deleted file mode 100644 index a47eda0a..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/query.lcd.js +++ /dev/null @@ -1,83 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params) { - const options = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params) { - const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params) { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js deleted file mode 100644 index 4e083712..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/query.rpc.Query.js +++ /dev/null @@ -1,87 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request) { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposals(request) { - const data = QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Proposals", data); - return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); - } - vote(request) { - const data = QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Vote", data); - return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); - } - votes(request) { - const data = QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Votes", data); - return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); - } - params(request) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - deposit(request) { - const data = QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposit", data); - return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); - } - deposits(request) { - const data = QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "Deposits", data); - return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); - } - tallyResult(request) { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request) { - return queryService.proposal(request); - }, - proposals(request) { - return queryService.proposals(request); - }, - vote(request) { - return queryService.vote(request); - }, - votes(request) { - return queryService.votes(request); - }, - params(request) { - return queryService.params(request); - }, - deposit(request) { - return queryService.deposit(request); - }, - deposits(request) { - return queryService.deposits(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js b/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js deleted file mode 100644 index 396f3ab2..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/tx.amino.js +++ /dev/null @@ -1,29 +0,0 @@ -//@ts-nocheck -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const AminoConverter = { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/v1/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", - toAmino: MsgExecLegacyContent.toAmino, - fromAmino: MsgExecLegacyContent.fromAmino - }, - "/cosmos.gov.v1.MsgVote": { - aminoType: "cosmos-sdk/v1/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/v1/MsgVoteWeighted", - toAmino: MsgVoteWeighted.toAmino, - fromAmino: MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1.MsgDeposit": { - aminoType: "cosmos-sdk/v1/MsgDeposit", - toAmino: MsgDeposit.toAmino, - fromAmino: MsgDeposit.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.js b/packages/api/dist/esm/cosmos/gov/v1/tx.js deleted file mode 100644 index 6491cc9f..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/tx.js +++ /dev/null @@ -1,832 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { Coin } from "../../base/v1beta1/coin"; -import { WeightedVoteOption } from "./gov"; -import { TextProposal } from "../v1beta1/gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgSubmitProposal() { - return { - messages: [], - initialDeposit: [], - proposer: "", - metadata: "" - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.messages) { - Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.initialDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContent() { - return { - content: undefined, - authority: "" - }; -} -export const MsgExecLegacyContent = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - encode(message, writer = BinaryWriter.create()) { - if (message.content !== undefined) { - Any.encode(message.content, writer.uint32(10).fork()).ldelim(); - } - if (message.authority !== "") { - writer.uint32(18).string(message.authority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = Content_InterfaceDecoder(reader); - break; - case 2: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecLegacyContent(); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecLegacyContent(); - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content = message.content ? Content_ToAmino(message.content) : undefined; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object) { - return MsgExecLegacyContent.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContent", - value: MsgExecLegacyContent.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExecLegacyContent.decode(message.value); - }, - toProto(message) { - return MsgExecLegacyContent.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.encode(message).finish() - }; - } -}; -function createBaseMsgExecLegacyContentResponse() { - return {}; -} -export const MsgExecLegacyContentResponse = { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContentResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgExecLegacyContentResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgExecLegacyContentResponse", - value: MsgExecLegacyContentResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExecLegacyContentResponse.decode(message.value); - }, - toProto(message) { - return MsgExecLegacyContentResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", - value: MsgExecLegacyContentResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "" - }; -} -export const MsgVote = { - typeUrl: "/cosmos.gov.v1.MsgVote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVote.decode(message.value); - }, - toProto(message) { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted() { - return { - proposalId: BigInt(0), - voter: "", - options: [], - metadata: "" - }; -} -export const MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteWeighted", - value: MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteWeighted.decode(message.value); - }, - toProto(message) { - return MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse() { - return {}; -} -export const MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message) { - return MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const MsgDeposit = { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgDeposit", - value: MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDeposit.decode(message.value); - }, - toProto(message) { - return MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse() { - return {}; -} -export const MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/v1/MsgDepositResponse", - value: MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDepositResponse.decode(message.value); - }, - toProto(message) { - return MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1.MsgDepositResponse", - value: MsgDepositResponse.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/v1/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/v1/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js b/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js deleted file mode 100644 index 94989290..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/tx.registry.js +++ /dev/null @@ -1,105 +0,0 @@ -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const registry = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value - }; - } - }, - fromPartial: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - execLegacyContent(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js deleted file mode 100644 index 453f46fb..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1/tx.rpc.msg.js +++ /dev/null @@ -1,38 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.execLegacyContent = this.execLegacyContent.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request) { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - execLegacyContent(request) { - const data = MsgExecLegacyContent.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "ExecLegacyContent", data); - return promise.then(data => MsgExecLegacyContentResponse.decode(new BinaryReader(data))); - } - vote(request) { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - voteWeighted(request) { - const data = MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "VoteWeighted", data); - return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); - } - deposit(request) { - const data = MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data); - return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js deleted file mode 100644 index 3d7b10ce..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/genesis.js +++ /dev/null @@ -1,153 +0,0 @@ -//@ts-nocheck -import { Deposit, Vote, Proposal, DepositParams, VotingParams, TallyParams } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - startingProposalId: BigInt(0), - deposits: [], - votes: [], - proposals: [], - depositParams: DepositParams.fromPartial({}), - votingParams: VotingParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.startingProposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - Deposit.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = reader.uint64(); - break; - case 2: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? BigInt(object.startingProposalId.toString()) : BigInt(0); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.starting_proposal_id !== undefined && object.starting_proposal_id !== null) { - message.startingProposalId = BigInt(object.starting_proposal_id); - } - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js b/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js deleted file mode 100644 index 637de443..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/gov.js +++ /dev/null @@ -1,1062 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { Any } from "../../../google/protobuf/any"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration } from "../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export var VoteOption; -(function (VoteOption) { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (VoteOption = {})); -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_VOTING_PERIOD"] = 2] = "PROPOSAL_STATUS_VOTING_PERIOD"; - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PASSED"] = 3] = "PROPOSAL_STATUS_PASSED"; - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 4] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_FAILED"] = 5] = "PROPOSAL_STATUS_FAILED"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (ProposalStatus = {})); -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseWeightedVoteOption() { - return { - option: 0, - weight: "" - }; -} -export const WeightedVoteOption = { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - encode(message, writer = BinaryWriter.create()) { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.weight, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = reader.int32(); - break; - case 2: - message.weight = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseWeightedVoteOption(); - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.option = message.option === 0 ? undefined : message.option; - obj.weight = message.weight === "" ? undefined : message.weight; - return obj; - }, - fromAminoMsg(object) { - return WeightedVoteOption.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/WeightedVoteOption", - value: WeightedVoteOption.toAmino(message) - }; - }, - fromProtoMsg(message) { - return WeightedVoteOption.decode(message.value); - }, - toProto(message) { - return WeightedVoteOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", - value: WeightedVoteOption.encode(message).finish() - }; - } -}; -function createBaseTextProposal() { - return { - $typeUrl: "/cosmos.gov.v1beta1.TextProposal", - title: "", - description: "" - }; -} -export const TextProposal = { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTextProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTextProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTextProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return TextProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TextProposal.decode(message.value); - }, - toProto(message) { - return TextProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(message).finish() - }; - } -}; -function createBaseDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const Deposit = { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return Deposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Deposit", - value: Deposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Deposit.decode(message.value); - }, - toProto(message) { - return Deposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Deposit", - value: Deposit.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - proposalId: BigInt(0), - content: undefined, - status: 0, - finalTallyResult: TallyResult.fromPartial({}), - submitTime: new Date(), - depositEndTime: new Date(), - totalDeposit: [], - votingStartTime: new Date(), - votingEndTime: new Date() - }; -} -export const Proposal = { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.content !== undefined) { - Any.encode(message.content, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - Coin.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.content = Content_InterfaceDecoder(reader); - break; - case 3: - message.status = reader.int32(); - break; - case 4: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.totalDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime ?? undefined; - message.depositEndTime = object.depositEndTime ?? undefined; - message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime ?? undefined; - message.votingEndTime = object.votingEndTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); - } - if (object.deposit_end_time !== undefined && object.deposit_end_time !== null) { - message.depositEndTime = fromTimestamp(Timestamp.fromAmino(object.deposit_end_time)); - } - message.totalDeposit = object.total_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.voting_start_time !== undefined && object.voting_start_time !== null) { - message.votingStartTime = fromTimestamp(Timestamp.fromAmino(object.voting_start_time)); - } - if (object.voting_end_time !== undefined && object.voting_end_time !== null) { - message.votingEndTime = fromTimestamp(Timestamp.fromAmino(object.voting_end_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.content = message.content ? Content_ToAmino(message.content) : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; - obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; - if (message.totalDeposit) { - obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.total_deposit = message.totalDeposit; - } - obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; - obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Proposal.decode(message.value); - }, - toProto(message) { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yes: "", - abstain: "", - no: "", - noWithVeto: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - encode(message, writer = BinaryWriter.create()) { - if (message.yes !== "") { - writer.uint32(10).string(message.yes); - } - if (message.abstain !== "") { - writer.uint32(18).string(message.abstain); - } - if (message.no !== "") { - writer.uint32(26).string(message.no); - } - if (message.noWithVeto !== "") { - writer.uint32(34).string(message.noWithVeto); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yes = reader.string(); - break; - case 2: - message.abstain = reader.string(); - break; - case 3: - message.no = reader.string(); - break; - case 4: - message.noWithVeto = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yes = object.yes ?? ""; - message.abstain = object.abstain ?? ""; - message.no = object.no ?? ""; - message.noWithVeto = object.noWithVeto ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes !== undefined && object.yes !== null) { - message.yes = object.yes; - } - if (object.abstain !== undefined && object.abstain !== null) { - message.abstain = object.abstain; - } - if (object.no !== undefined && object.no !== null) { - message.no = object.no; - } - if (object.no_with_veto !== undefined && object.no_with_veto !== null) { - message.noWithVeto = object.no_with_veto; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes = message.yes === "" ? undefined : message.yes; - obj.abstain = message.abstain === "" ? undefined : message.abstain; - obj.no = message.no === "" ? undefined : message.no; - obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; - return obj; - }, - fromAminoMsg(object) { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TallyResult.decode(message.value); - }, - toProto(message) { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - options: [] - }; -} -export const Vote = { - typeUrl: "/cosmos.gov.v1beta1.Vote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - for (const v of message.options) { - WeightedVoteOption.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object) { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Vote.decode(message.value); - }, - toProto(message) { - return Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseDepositParams() { - return { - minDeposit: [], - maxDepositPeriod: Duration.fromPartial({}) - }; -} -export const DepositParams = { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.minDeposit) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDepositParams(); - message.minDeposit = object.min_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.max_deposit_period !== undefined && object.max_deposit_period !== null) { - message.maxDepositPeriod = Duration.fromAmino(object.max_deposit_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.minDeposit) { - obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.min_deposit = message.minDeposit; - } - obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DepositParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DepositParams", - value: DepositParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DepositParams.decode(message.value); - }, - toProto(message) { - return DepositParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.DepositParams", - value: DepositParams.encode(message).finish() - }; - } -}; -function createBaseVotingParams() { - return { - votingPeriod: Duration.fromPartial({}) - }; -} -export const VotingParams = { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - encode(message, writer = BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVotingParams(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return VotingParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/VotingParams", - value: VotingParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return VotingParams.decode(message.value); - }, - toProto(message) { - return VotingParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.VotingParams", - value: VotingParams.encode(message).finish() - }; - } -}; -function createBaseTallyParams() { - return { - quorum: new Uint8Array(), - threshold: new Uint8Array(), - vetoThreshold: new Uint8Array() - }; -} -export const TallyParams = { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - encode(message, writer = BinaryWriter.create()) { - if (message.quorum.length !== 0) { - writer.uint32(10).bytes(message.quorum); - } - if (message.threshold.length !== 0) { - writer.uint32(18).bytes(message.threshold); - } - if (message.vetoThreshold.length !== 0) { - writer.uint32(26).bytes(message.vetoThreshold); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.bytes(); - break; - case 2: - message.threshold = reader.bytes(); - break; - case 3: - message.vetoThreshold = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? new Uint8Array(); - message.threshold = object.threshold ?? new Uint8Array(); - message.vetoThreshold = object.vetoThreshold ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseTallyParams(); - if (object.quorum !== undefined && object.quorum !== null) { - message.quorum = bytesFromBase64(object.quorum); - } - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = bytesFromBase64(object.threshold); - } - if (object.veto_threshold !== undefined && object.veto_threshold !== null) { - message.vetoThreshold = bytesFromBase64(object.veto_threshold); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.quorum = message.quorum ? base64FromBytes(message.quorum) : undefined; - obj.threshold = message.threshold ? base64FromBytes(message.threshold) : undefined; - obj.veto_threshold = message.vetoThreshold ? base64FromBytes(message.vetoThreshold) : undefined; - return obj; - }, - fromAminoMsg(object) { - return TallyParams.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyParams", - value: TallyParams.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TallyParams.decode(message.value); - }, - toProto(message) { - return TallyParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.TallyParams", - value: TallyParams.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.js deleted file mode 100644 index 42694bba..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/query.js +++ /dev/null @@ -1,1261 +0,0 @@ -//@ts-nocheck -import { Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: Proposal.fromPartial({}) - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsRequest() { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: undefined - }; -} -export const QueryProposalsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = reader.int32(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsRequest(); - if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = object.proposal_status; - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsRequest", - value: QueryProposalsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", - value: QueryProposalsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsResponse() { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsResponse", - value: QueryProposalsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", - value: QueryProposalsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteRequest", - value: QueryVoteRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteRequest.decode(message.value); - }, - toProto(message) { - return QueryVoteRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", - value: QueryVoteRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteResponse() { - return { - vote: Vote.fromPartial({}) - }; -} -export const QueryVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteResponse", - value: QueryVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteResponse.decode(message.value); - }, - toProto(message) { - return QueryVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", - value: QueryVoteResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesRequest", - value: QueryVotesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesRequest.decode(message.value); - }, - toProto(message) { - return QueryVotesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", - value: QueryVotesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesResponse() { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.votes) { - Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesResponse", - value: QueryVotesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesResponse.decode(message.value); - }, - toProto(message) { - return QueryVotesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", - value: QueryVotesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return { - paramsType: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.params_type !== undefined && object.params_type !== null) { - message.paramsType = object.params_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params_type = message.paramsType === "" ? undefined : message.paramsType; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - votingParams: VotingParams.fromPartial({}), - depositParams: DepositParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.voting_params !== undefined && object.voting_params !== null) { - message.votingParams = VotingParams.fromAmino(object.voting_params); - } - if (object.deposit_params !== undefined && object.deposit_params !== null) { - message.depositParams = DepositParams.fromAmino(object.deposit_params); - } - if (object.tally_params !== undefined && object.tally_params !== null) { - message.tallyParams = TallyParams.fromAmino(object.tally_params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; - obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; - obj.tally_params = message.tallyParams ? TallyParams.toAmino(message.tallyParams) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositRequest() { - return { - proposalId: BigInt(0), - depositor: "" - }; -} -export const QueryDepositRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositRequest", - value: QueryDepositRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositRequest.decode(message.value); - }, - toProto(message) { - return QueryDepositRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", - value: QueryDepositRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositResponse() { - return { - deposit: Deposit.fromPartial({}) - }; -} -export const QueryDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.deposit !== undefined) { - Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositResponse(); - if (object.deposit !== undefined && object.deposit !== null) { - message.deposit = Deposit.fromAmino(object.deposit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositResponse", - value: QueryDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositResponse.decode(message.value); - }, - toProto(message) { - return QueryDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", - value: QueryDepositResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryDepositsRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositsRequest", - value: QueryDepositsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositsRequest.decode(message.value); - }, - toProto(message) { - return QueryDepositsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", - value: QueryDepositsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDepositsResponse() { - return { - deposits: [], - pagination: undefined - }; -} -export const QueryDepositsResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.deposits) { - Deposit.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.deposits) { - obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); - } - else { - obj.deposits = message.deposits; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDepositsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDepositsResponse", - value: QueryDepositsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDepositsResponse.decode(message.value); - }, - toProto(message) { - return QueryDepositsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", - value: QueryDepositsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js deleted file mode 100644 index e466aa96..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/query.lcd.js +++ /dev/null @@ -1,83 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params) { - const options = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params) { - const endpoint = `cosmos/gov/v1beta1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params) { - const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js deleted file mode 100644 index a35f7597..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,87 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - proposal(request) { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposals(request) { - const data = QueryProposalsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); - return promise.then(data => QueryProposalsResponse.decode(new BinaryReader(data))); - } - vote(request) { - const data = QueryVoteRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); - return promise.then(data => QueryVoteResponse.decode(new BinaryReader(data))); - } - votes(request) { - const data = QueryVotesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); - return promise.then(data => QueryVotesResponse.decode(new BinaryReader(data))); - } - params(request) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - deposit(request) { - const data = QueryDepositRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); - return promise.then(data => QueryDepositResponse.decode(new BinaryReader(data))); - } - deposits(request) { - const data = QueryDepositsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); - return promise.then(data => QueryDepositsResponse.decode(new BinaryReader(data))); - } - tallyResult(request) { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - proposal(request) { - return queryService.proposal(request); - }, - proposals(request) { - return queryService.proposals(request); - }, - vote(request) { - return queryService.vote(request); - }, - votes(request) { - return queryService.votes(request); - }, - params(request) { - return queryService.params(request); - }, - deposit(request) { - return queryService.deposit(request); - }, - deposits(request) { - return queryService.deposits(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js deleted file mode 100644 index c6e65148..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.amino.js +++ /dev/null @@ -1,24 +0,0 @@ -//@ts-nocheck -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const AminoConverter = { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: "cosmos-sdk/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/MsgVoteWeighted", - toAmino: MsgVoteWeighted.toAmino, - fromAmino: MsgVoteWeighted.fromAmino - }, - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: "cosmos-sdk/MsgDeposit", - toAmino: MsgDeposit.toAmino, - fromAmino: MsgDeposit.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js deleted file mode 100644 index 988e013b..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.js +++ /dev/null @@ -1,655 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { Coin } from "../../base/v1beta1/coin"; -import { WeightedVoteOption, TextProposal } from "./gov"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgSubmitProposal() { - return { - content: undefined, - initialDeposit: [], - proposer: "" - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.content !== undefined) { - Any.encode(message.content, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = Content_InterfaceDecoder(reader); - break; - case 2: - message.initialDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - if (object.content !== undefined && object.content !== null) { - message.content = Content_FromAmino(object.content); - } - message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = object.proposer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content = message.content ? Content_ToAmino(message.content) : undefined; - if (message.initialDeposit) { - obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.initial_deposit = message.initialDeposit; - } - obj.proposer = message.proposer === "" ? undefined : message.proposer; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0 - }; -} -export const MsgVote = { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - return obj; - }, - fromAminoMsg(object) { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVote.decode(message.value); - }, - toProto(message) { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeighted() { - return { - proposalId: BigInt(0), - voter: "", - options: [] - }; -} -export const MsgVoteWeighted = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVoteWeighted(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.voter = message.voter === "" ? undefined : message.voter; - if (message.options) { - obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); - } - else { - obj.options = message.options; - } - return obj; - }, - fromAminoMsg(object) { - return MsgVoteWeighted.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteWeighted", - value: MsgVoteWeighted.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteWeighted.decode(message.value); - }, - toProto(message) { - return MsgVoteWeighted.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(message).finish() - }; - } -}; -function createBaseMsgVoteWeightedResponse() { - return {}; -} -export const MsgVoteWeightedResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteWeightedResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteWeightedResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteWeightedResponse.decode(message.value); - }, - toProto(message) { - return MsgVoteWeightedResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", - value: MsgVoteWeightedResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDeposit() { - return { - proposalId: BigInt(0), - depositor: "", - amount: [] - }; -} -export const MsgDeposit = { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDeposit(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.depositor !== undefined && object.depositor !== null) { - message.depositor = object.depositor; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; - obj.depositor = message.depositor === "" ? undefined : message.depositor; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgDeposit.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDeposit", - value: MsgDeposit.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDeposit.decode(message.value); - }, - toProto(message) { - return MsgDeposit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.encode(message).finish() - }; - } -}; -function createBaseMsgDepositResponse() { - return {}; -} -export const MsgDepositResponse = { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDepositResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgDepositResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDepositResponse", - value: MsgDepositResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDepositResponse.decode(message.value); - }, - toProto(message) { - return MsgDepositResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", - value: MsgDepositResponse.encode(message).finish() - }; - } -}; -export const Content_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return TextProposal.decode(data.value); - default: - return data; - } -}; -export const Content_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/TextProposal": - return Any.fromPartial({ - typeUrl: "/cosmos.gov.v1beta1.TextProposal", - value: TextProposal.encode(TextProposal.fromPartial(TextProposal.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const Content_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.gov.v1beta1.TextProposal": - return { - type: "cosmos-sdk/TextProposal", - value: TextProposal.toAmino(TextProposal.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js deleted file mode 100644 index b9119b4b..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.registry.js +++ /dev/null @@ -1,87 +0,0 @@ -import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const registry = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value - }; - } - }, - fromPartial: { - submitProposal(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - voteWeighted(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", - value: MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value) { - return { - typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", - value: MsgDeposit.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 7be0ba7e..00000000 --- a/packages/api/dist/esm/cosmos/gov/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,32 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.submitProposal = this.submitProposal.bind(this); - this.vote = this.vote.bind(this); - this.voteWeighted = this.voteWeighted.bind(this); - this.deposit = this.deposit.bind(this); - } - submitProposal(request) { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - vote(request) { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - voteWeighted(request) { - const data = MsgVoteWeighted.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); - return promise.then(data => MsgVoteWeightedResponse.decode(new BinaryReader(data))); - } - deposit(request) { - const data = MsgDeposit.encode(request).finish(); - const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); - return promise.then(data => MsgDepositResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/group/v1/events.js b/packages/api/dist/esm/cosmos/group/v1/events.js deleted file mode 100644 index 8360b1a9..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/events.js +++ /dev/null @@ -1,658 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseEventCreateGroup() { - return { - groupId: BigInt(0) - }; -} -export const EventCreateGroup = { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventCreateGroup", - value: EventCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventCreateGroup.decode(message.value); - }, - toProto(message) { - return EventCreateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroup", - value: EventCreateGroup.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroup() { - return { - groupId: BigInt(0) - }; -} -export const EventUpdateGroup = { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventUpdateGroup", - value: EventUpdateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventUpdateGroup.decode(message.value); - }, - toProto(message) { - return EventUpdateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroup", - value: EventUpdateGroup.encode(message).finish() - }; - } -}; -function createBaseEventCreateGroupPolicy() { - return { - address: "" - }; -} -export const EventCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return EventCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventCreateGroupPolicy", - value: EventCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventCreateGroupPolicy.decode(message.value); - }, - toProto(message) { - return EventCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", - value: EventCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventUpdateGroupPolicy() { - return { - address: "" - }; -} -export const EventUpdateGroupPolicy = { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateGroupPolicy(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateGroupPolicy(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventUpdateGroupPolicy", - value: EventUpdateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventUpdateGroupPolicy.decode(message.value); - }, - toProto(message) { - return EventUpdateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", - value: EventUpdateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseEventSubmitProposal() { - return { - proposalId: BigInt(0) - }; -} -export const EventSubmitProposal = { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSubmitProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventSubmitProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventSubmitProposal", - value: EventSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventSubmitProposal.decode(message.value); - }, - toProto(message) { - return EventSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventSubmitProposal", - value: EventSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseEventWithdrawProposal() { - return { - proposalId: BigInt(0) - }; -} -export const EventWithdrawProposal = { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventWithdrawProposal", - value: EventWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventWithdrawProposal.decode(message.value); - }, - toProto(message) { - return EventWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventWithdrawProposal", - value: EventWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseEventVote() { - return { - proposalId: BigInt(0) - }; -} -export const EventVote = { - typeUrl: "/cosmos.group.v1.EventVote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventVote", - value: EventVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventVote.decode(message.value); - }, - toProto(message) { - return EventVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventVote", - value: EventVote.encode(message).finish() - }; - } -}; -function createBaseEventExec() { - return { - proposalId: BigInt(0), - result: 0, - logs: "" - }; -} -export const EventExec = { - typeUrl: "/cosmos.group.v1.EventExec", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - if (message.logs !== "") { - writer.uint32(26).string(message.logs); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.logs = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.result = object.result ?? 0; - message.logs = object.logs ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - if (object.logs !== undefined && object.logs !== null) { - message.logs = object.logs; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.result = message.result === 0 ? undefined : message.result; - obj.logs = message.logs === "" ? undefined : message.logs; - return obj; - }, - fromAminoMsg(object) { - return EventExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventExec", - value: EventExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventExec.decode(message.value); - }, - toProto(message) { - return EventExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventExec", - value: EventExec.encode(message).finish() - }; - } -}; -function createBaseEventLeaveGroup() { - return { - groupId: BigInt(0), - address: "" - }; -} -export const EventLeaveGroup = { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventLeaveGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventLeaveGroup(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return EventLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/EventLeaveGroup", - value: EventLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return EventLeaveGroup.decode(message.value); - }, - toProto(message) { - return EventLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.EventLeaveGroup", - value: EventLeaveGroup.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/genesis.js b/packages/api/dist/esm/cosmos/group/v1/genesis.js deleted file mode 100644 index ee58fd5b..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/genesis.js +++ /dev/null @@ -1,171 +0,0 @@ -//@ts-nocheck -import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, Vote } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - groupSeq: BigInt(0), - groups: [], - groupMembers: [], - groupPolicySeq: BigInt(0), - groupPolicies: [], - proposalSeq: BigInt(0), - proposals: [], - votes: [] - }; -} -export const GenesisState = { - typeUrl: "/cosmos.group.v1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.groupSeq !== BigInt(0)) { - writer.uint32(8).uint64(message.groupSeq); - } - for (const v of message.groups) { - GroupInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.groupMembers) { - GroupMember.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.groupPolicySeq !== BigInt(0)) { - writer.uint32(32).uint64(message.groupPolicySeq); - } - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v, writer.uint32(42).fork()).ldelim(); - } - if (message.proposalSeq !== BigInt(0)) { - writer.uint32(48).uint64(message.proposalSeq); - } - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupSeq = reader.uint64(); - break; - case 2: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 3: - message.groupMembers.push(GroupMember.decode(reader, reader.uint32())); - break; - case 4: - message.groupPolicySeq = reader.uint64(); - break; - case 5: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 6: - message.proposalSeq = reader.uint64(); - break; - case 7: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 8: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? BigInt(object.groupSeq.toString()) : BigInt(0); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.groupMembers = object.groupMembers?.map(e => GroupMember.fromPartial(e)) || []; - message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? BigInt(object.groupPolicySeq.toString()) : BigInt(0); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? BigInt(object.proposalSeq.toString()) : BigInt(0); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.group_seq !== undefined && object.group_seq !== null) { - message.groupSeq = BigInt(object.group_seq); - } - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - message.groupMembers = object.group_members?.map(e => GroupMember.fromAmino(e)) || []; - if (object.group_policy_seq !== undefined && object.group_policy_seq !== null) { - message.groupPolicySeq = BigInt(object.group_policy_seq); - } - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.proposal_seq !== undefined && object.proposal_seq !== null) { - message.proposalSeq = BigInt(object.proposal_seq); - } - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_seq = message.groupSeq !== BigInt(0) ? message.groupSeq.toString() : undefined; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - if (message.groupMembers) { - obj.group_members = message.groupMembers.map(e => e ? GroupMember.toAmino(e) : undefined); - } - else { - obj.group_members = message.groupMembers; - } - obj.group_policy_seq = message.groupPolicySeq !== BigInt(0) ? message.groupPolicySeq.toString() : undefined; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.proposal_seq = message.proposalSeq !== BigInt(0) ? message.proposalSeq.toString() : undefined; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/query.js b/packages/api/dist/esm/cosmos/group/v1/query.js deleted file mode 100644 index 988ff64a..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/query.js +++ /dev/null @@ -1,2026 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupPolicyInfo, GroupMember, Proposal, Vote, TallyResult } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryGroupInfoRequest() { - return { - groupId: BigInt(0) - }; -} -export const QueryGroupInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupInfoRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupInfoRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupInfoRequest", - value: QueryGroupInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupInfoRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", - value: QueryGroupInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupInfoResponse() { - return { - info: undefined - }; -} -export const QueryGroupInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.info !== undefined) { - GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = GroupInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? GroupInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupInfoResponse", - value: QueryGroupInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupInfoResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", - value: QueryGroupInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoRequest() { - return { - address: "" - }; -} -export const QueryGroupPolicyInfoRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPolicyInfoRequest(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPolicyInfoRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPolicyInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoRequest", - value: QueryGroupPolicyInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPolicyInfoRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupPolicyInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", - value: QueryGroupPolicyInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPolicyInfoResponse() { - return { - info: undefined - }; -} -export const QueryGroupPolicyInfoResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.info !== undefined) { - GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupPolicyInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPolicyInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupPolicyInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPolicyInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = GroupPolicyInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? GroupPolicyInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPolicyInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPolicyInfoResponse", - value: QueryGroupPolicyInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPolicyInfoResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupPolicyInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", - value: QueryGroupPolicyInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersRequest() { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -export const QueryGroupMembersRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupMembersRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupMembersRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupMembersRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupMembersRequest", - value: QueryGroupMembersRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupMembersRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupMembersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", - value: QueryGroupMembersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupMembersResponse() { - return { - members: [], - pagination: undefined - }; -} -export const QueryGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.members) { - GroupMember.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.members.push(GroupMember.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => GroupMember.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => GroupMember.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.members) { - obj.members = message.members.map(e => e ? GroupMember.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupMembersResponse", - value: QueryGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupMembersResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", - value: QueryGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -export const QueryGroupsByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupsByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByAdminRequest", - value: QueryGroupsByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupsByAdminRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", - value: QueryGroupsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByAdminResponse() { - return { - groups: [], - pagination: undefined - }; -} -export const QueryGroupsByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.groups) { - GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupsByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByAdminResponse", - value: QueryGroupsByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupsByAdminResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", - value: QueryGroupsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupRequest() { - return { - groupId: BigInt(0), - pagination: undefined - }; -} -export const QueryGroupPoliciesByGroupRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPoliciesByGroupRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupRequest", - value: QueryGroupPoliciesByGroupRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPoliciesByGroupRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupPoliciesByGroupRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", - value: QueryGroupPoliciesByGroupRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByGroupResponse() { - return { - groupPolicies: [], - pagination: undefined - }; -} -export const QueryGroupPoliciesByGroupResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPoliciesByGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByGroupResponse", - value: QueryGroupPoliciesByGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPoliciesByGroupResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupPoliciesByGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", - value: QueryGroupPoliciesByGroupResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -export const QueryGroupPoliciesByAdminRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPoliciesByAdminRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminRequest", - value: QueryGroupPoliciesByAdminRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPoliciesByAdminRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupPoliciesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", - value: QueryGroupPoliciesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupPoliciesByAdminResponse() { - return { - groupPolicies: [], - pagination: undefined - }; -} -export const QueryGroupPoliciesByAdminResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.group_policies?.map(e => GroupPolicyInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groupPolicies) { - obj.group_policies = message.groupPolicies.map(e => e ? GroupPolicyInfo.toAmino(e) : undefined); - } - else { - obj.group_policies = message.groupPolicies; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupPoliciesByAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupPoliciesByAdminResponse", - value: QueryGroupPoliciesByAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupPoliciesByAdminResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupPoliciesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", - value: QueryGroupPoliciesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalRequest", - value: QueryProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalRequest", - value: QueryProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalResponse() { - return { - proposal: undefined - }; -} -export const QueryProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalResponse(); - if (object.proposal !== undefined && object.proposal !== null) { - message.proposal = Proposal.fromAmino(object.proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal = message.proposal ? Proposal.toAmino(message.proposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalResponse", - value: QueryProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalResponse", - value: QueryProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyRequest() { - return { - address: "", - pagination: undefined - }; -} -export const QueryProposalsByGroupPolicyRequest = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsByGroupPolicyRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyRequest", - value: QueryProposalsByGroupPolicyRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsByGroupPolicyRequest.decode(message.value); - }, - toProto(message) { - return QueryProposalsByGroupPolicyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", - value: QueryProposalsByGroupPolicyRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProposalsByGroupPolicyResponse() { - return { - proposals: [], - pagination: undefined - }; -} -export const QueryProposalsByGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.proposals) { - Proposal.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.proposals) { - obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); - } - else { - obj.proposals = message.proposals; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProposalsByGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryProposalsByGroupPolicyResponse", - value: QueryProposalsByGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryProposalsByGroupPolicyResponse.decode(message.value); - }, - toProto(message) { - return QueryProposalsByGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", - value: QueryProposalsByGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterRequest() { - return { - proposalId: BigInt(0), - voter: "" - }; -} -export const QueryVoteByProposalVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteByProposalVoterRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteByProposalVoterRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteByProposalVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterRequest", - value: QueryVoteByProposalVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteByProposalVoterRequest.decode(message.value); - }, - toProto(message) { - return QueryVoteByProposalVoterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", - value: QueryVoteByProposalVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVoteByProposalVoterResponse() { - return { - vote: undefined - }; -} -export const QueryVoteByProposalVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVoteByProposalVoterResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVoteByProposalVoterResponse(); - if (object.vote !== undefined && object.vote !== null) { - message.vote = Vote.fromAmino(object.vote); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote = message.vote ? Vote.toAmino(message.vote) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVoteByProposalVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVoteByProposalVoterResponse", - value: QueryVoteByProposalVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVoteByProposalVoterResponse.decode(message.value); - }, - toProto(message) { - return QueryVoteByProposalVoterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", - value: QueryVoteByProposalVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalRequest() { - return { - proposalId: BigInt(0), - pagination: undefined - }; -} -export const QueryVotesByProposalRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByProposalRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesByProposalRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByProposalRequest", - value: QueryVotesByProposalRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesByProposalRequest.decode(message.value); - }, - toProto(message) { - return QueryVotesByProposalRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", - value: QueryVotesByProposalRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByProposalResponse() { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesByProposalResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.votes) { - Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesByProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByProposalResponse", - value: QueryVotesByProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesByProposalResponse.decode(message.value); - }, - toProto(message) { - return QueryVotesByProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", - value: QueryVotesByProposalResponse.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterRequest() { - return { - voter: "", - pagination: undefined - }; -} -export const QueryVotesByVoterRequest = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.voter !== "") { - writer.uint32(10).string(message.voter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByVoterRequest(); - message.voter = object.voter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByVoterRequest(); - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesByVoterRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByVoterRequest", - value: QueryVotesByVoterRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesByVoterRequest.decode(message.value); - }, - toProto(message) { - return QueryVotesByVoterRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", - value: QueryVotesByVoterRequest.encode(message).finish() - }; - } -}; -function createBaseQueryVotesByVoterResponse() { - return { - votes: [], - pagination: undefined - }; -} -export const QueryVotesByVoterResponse = { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.votes) { - Vote.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => Vote.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.votes) { - obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryVotesByVoterResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryVotesByVoterResponse", - value: QueryVotesByVoterResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryVotesByVoterResponse.decode(message.value); - }, - toProto(message) { - return QueryVotesByVoterResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", - value: QueryVotesByVoterResponse.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberRequest() { - return { - address: "", - pagination: undefined - }; -} -export const QueryGroupsByMemberRequest = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByMemberRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupsByMemberRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByMemberRequest", - value: QueryGroupsByMemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupsByMemberRequest.decode(message.value); - }, - toProto(message) { - return QueryGroupsByMemberRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", - value: QueryGroupsByMemberRequest.encode(message).finish() - }; - } -}; -function createBaseQueryGroupsByMemberResponse() { - return { - groups: [], - pagination: undefined - }; -} -export const QueryGroupsByMemberResponse = { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.groups) { - GroupInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.groups) { - obj.groups = message.groups.map(e => e ? GroupInfo.toAmino(e) : undefined); - } - else { - obj.groups = message.groups; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryGroupsByMemberResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryGroupsByMemberResponse", - value: QueryGroupsByMemberResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryGroupsByMemberResponse.decode(message.value); - }, - toProto(message) { - return QueryGroupsByMemberResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", - value: QueryGroupsByMemberResponse.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultRequest() { - return { - proposalId: BigInt(0) - }; -} -export const QueryTallyResultRequest = { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultRequest(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultRequest", - value: QueryTallyResultRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultRequest.decode(message.value); - }, - toProto(message) { - return QueryTallyResultRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", - value: QueryTallyResultRequest.encode(message).finish() - }; - } -}; -function createBaseQueryTallyResultResponse() { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryTallyResultResponse(); - if (object.tally !== undefined && object.tally !== null) { - message.tally = TallyResult.fromAmino(object.tally); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tally = message.tally ? TallyResult.toAmino(message.tally) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryTallyResultResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryTallyResultResponse", - value: QueryTallyResultResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryTallyResultResponse.decode(message.value); - }, - toProto(message) { - return QueryTallyResultResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", - value: QueryTallyResultResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/query.lcd.js b/packages/api/dist/esm/cosmos/group/v1/query.lcd.js deleted file mode 100644 index 62fb885c..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/query.lcd.js +++ /dev/null @@ -1,138 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* GroupInfo queries group info based on group id. */ - async groupInfo(params) { - const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; - return await this.req.get(endpoint); - } - /* GroupPolicyInfo queries group policy info based on account address of group policy. */ - async groupPolicyInfo(params) { - const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; - return await this.req.get(endpoint); - } - /* GroupMembers queries members of a group */ - async groupMembers(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries groups by admin address. */ - async groupsByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* GroupPoliciesByGroup queries group policies by group id. */ - async groupPoliciesByGroup(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries group policies by admin address. */ - async groupPoliciesByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Proposal queries a proposal based on proposal id. */ - async proposal(params) { - const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - async proposalsByGroupPolicy(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; - return await this.req.get(endpoint, options); - } - /* VoteByProposalVoter queries a vote by proposal id and voter. */ - async voteByProposalVoter(params) { - const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; - return await this.req.get(endpoint); - } - /* VotesByProposal queries a vote by proposal. */ - async votesByProposal(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; - return await this.req.get(endpoint, options); - } - /* VotesByVoter queries a vote by voter. */ - async votesByVoter(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; - return await this.req.get(endpoint, options); - } - /* GroupsByMember queries groups by member address. */ - async groupsByMember(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TallyResult returns the tally result of a proposal. If the proposal is - still in voting period, then this query computes the current tally state, - which might not be final. On the other hand, if the proposal is final, - then it simply returns the `final_tally_result` state stored in the - proposal itself. */ - async tallyResult(params) { - const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js deleted file mode 100644 index 9d2d72aa..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/query.rpc.Query.js +++ /dev/null @@ -1,132 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - groupInfo(request) { - const data = QueryGroupInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data); - return promise.then(data => QueryGroupInfoResponse.decode(new BinaryReader(data))); - } - groupPolicyInfo(request) { - const data = QueryGroupPolicyInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data); - return promise.then(data => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data))); - } - groupMembers(request) { - const data = QueryGroupMembersRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data); - return promise.then(data => QueryGroupMembersResponse.decode(new BinaryReader(data))); - } - groupsByAdmin(request) { - const data = QueryGroupsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data); - return promise.then(data => QueryGroupsByAdminResponse.decode(new BinaryReader(data))); - } - groupPoliciesByGroup(request) { - const data = QueryGroupPoliciesByGroupRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data); - return promise.then(data => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data))); - } - groupPoliciesByAdmin(request) { - const data = QueryGroupPoliciesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data); - return promise.then(data => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data))); - } - proposal(request) { - const data = QueryProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data); - return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data))); - } - proposalsByGroupPolicy(request) { - const data = QueryProposalsByGroupPolicyRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data); - return promise.then(data => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data))); - } - voteByProposalVoter(request) { - const data = QueryVoteByProposalVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data); - return promise.then(data => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data))); - } - votesByProposal(request) { - const data = QueryVotesByProposalRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data); - return promise.then(data => QueryVotesByProposalResponse.decode(new BinaryReader(data))); - } - votesByVoter(request) { - const data = QueryVotesByVoterRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data); - return promise.then(data => QueryVotesByVoterResponse.decode(new BinaryReader(data))); - } - groupsByMember(request) { - const data = QueryGroupsByMemberRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data); - return promise.then(data => QueryGroupsByMemberResponse.decode(new BinaryReader(data))); - } - tallyResult(request) { - const data = QueryTallyResultRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data); - return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - groupInfo(request) { - return queryService.groupInfo(request); - }, - groupPolicyInfo(request) { - return queryService.groupPolicyInfo(request); - }, - groupMembers(request) { - return queryService.groupMembers(request); - }, - groupsByAdmin(request) { - return queryService.groupsByAdmin(request); - }, - groupPoliciesByGroup(request) { - return queryService.groupPoliciesByGroup(request); - }, - groupPoliciesByAdmin(request) { - return queryService.groupPoliciesByAdmin(request); - }, - proposal(request) { - return queryService.proposal(request); - }, - proposalsByGroupPolicy(request) { - return queryService.proposalsByGroupPolicy(request); - }, - voteByProposalVoter(request) { - return queryService.voteByProposalVoter(request); - }, - votesByProposal(request) { - return queryService.votesByProposal(request); - }, - votesByVoter(request) { - return queryService.votesByVoter(request); - }, - groupsByMember(request) { - return queryService.groupsByMember(request); - }, - tallyResult(request) { - return queryService.tallyResult(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.amino.js b/packages/api/dist/esm/cosmos/group/v1/tx.amino.js deleted file mode 100644 index 8e1710f5..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/tx.amino.js +++ /dev/null @@ -1,74 +0,0 @@ -//@ts-nocheck -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export const AminoConverter = { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: "cosmos-sdk/MsgCreateGroup", - toAmino: MsgCreateGroup.toAmino, - fromAmino: MsgCreateGroup.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: "cosmos-sdk/MsgUpdateGroupMembers", - toAmino: MsgUpdateGroupMembers.toAmino, - fromAmino: MsgUpdateGroupMembers.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", - toAmino: MsgUpdateGroupAdmin.toAmino, - fromAmino: MsgUpdateGroupAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", - toAmino: MsgUpdateGroupMetadata.toAmino, - fromAmino: MsgUpdateGroupMetadata.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupPolicy", - toAmino: MsgCreateGroupPolicy.toAmino, - fromAmino: MsgCreateGroupPolicy.fromAmino - }, - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", - toAmino: MsgCreateGroupWithPolicy.toAmino, - fromAmino: MsgCreateGroupWithPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - toAmino: MsgUpdateGroupPolicyAdmin.toAmino, - fromAmino: MsgUpdateGroupPolicyAdmin.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - toAmino: MsgUpdateGroupPolicyDecisionPolicy.toAmino, - fromAmino: MsgUpdateGroupPolicyDecisionPolicy.fromAmino - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - toAmino: MsgUpdateGroupPolicyMetadata.toAmino, - fromAmino: MsgUpdateGroupPolicyMetadata.fromAmino - }, - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/group/MsgSubmitProposal", - toAmino: MsgSubmitProposal.toAmino, - fromAmino: MsgSubmitProposal.fromAmino - }, - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: "cosmos-sdk/group/MsgWithdrawProposal", - toAmino: MsgWithdrawProposal.toAmino, - fromAmino: MsgWithdrawProposal.fromAmino - }, - "/cosmos.group.v1.MsgVote": { - aminoType: "cosmos-sdk/group/MsgVote", - toAmino: MsgVote.toAmino, - fromAmino: MsgVote.fromAmino - }, - "/cosmos.group.v1.MsgExec": { - aminoType: "cosmos-sdk/group/MsgExec", - toAmino: MsgExec.toAmino, - fromAmino: MsgExec.fromAmino - }, - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: "cosmos-sdk/group/MsgLeaveGroup", - toAmino: MsgLeaveGroup.toAmino, - fromAmino: MsgLeaveGroup.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.js b/packages/api/dist/esm/cosmos/group/v1/tx.js deleted file mode 100644 index f3475d36..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/tx.js +++ /dev/null @@ -1,2330 +0,0 @@ -//@ts-nocheck -import { MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy } from "./types"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export var Exec; -(function (Exec) { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED"; - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY"; - Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(Exec || (Exec = {})); -export const ExecSDKType = Exec; -export const ExecAmino = Exec; -export function execFromJSON(object) { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -export function execToJSON(object) { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseMsgCreateGroup() { - return { - admin: "", - members: [], - metadata: "" - }; -} -export const MsgCreateGroup = { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroup(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroup(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroup", - value: MsgCreateGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroup.decode(message.value); - }, - toProto(message) { - return MsgCreateGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupResponse() { - return { - groupId: BigInt(0) - }; -} -export const MsgCreateGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupResponse", - value: MsgCreateGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroupResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", - value: MsgCreateGroupResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembers() { - return { - admin: "", - groupId: BigInt(0), - memberUpdates: [] - }; -} -export const MsgUpdateGroupMembers = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - for (const v of message.memberUpdates) { - MemberRequest.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupMembers(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupMembers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - if (message.memberUpdates) { - obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined); - } - else { - obj.member_updates = message.memberUpdates; - } - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupMembers.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupMembers.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupMembers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMembersResponse() { - return {}; -} -export const MsgUpdateGroupMembersResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupMembersResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMembersResponse", - value: MsgUpdateGroupMembersResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupMembersResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupMembersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", - value: MsgUpdateGroupMembersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdmin() { - return { - admin: "", - groupId: BigInt(0), - newAdmin: "" - }; -} -export const MsgUpdateGroupAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupAdmin(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupAdmin.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupAdminResponse() { - return {}; -} -export const MsgUpdateGroupAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupAdminResponse", - value: MsgUpdateGroupAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupAdminResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", - value: MsgUpdateGroupAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadata() { - return { - admin: "", - groupId: BigInt(0), - metadata: "" - }; -} -export const MsgUpdateGroupMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupMetadata(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupMetadataResponse() { - return {}; -} -export const MsgUpdateGroupMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupMetadataResponse", - value: MsgUpdateGroupMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", - value: MsgUpdateGroupMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicy() { - return { - admin: "", - groupId: BigInt(0), - metadata: "", - decisionPolicy: undefined - }; -} -export const MsgCreateGroupPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupPolicy(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.metadata = object.metadata ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroupPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroupPolicy.decode(message.value); - }, - toProto(message) { - return MsgCreateGroupPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupPolicyResponse() { - return { - address: "" - }; -} -export const MsgCreateGroupPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupPolicyResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupPolicyResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroupPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupPolicyResponse", - value: MsgCreateGroupPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroupPolicyResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateGroupPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", - value: MsgCreateGroupPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdmin() { - return { - admin: "", - groupPolicyAddress: "", - newAdmin: "" - }; -} -export const MsgUpdateGroupPolicyAdmin = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyAdmin.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyAdminResponse() { - return {}; -} -export const MsgUpdateGroupPolicyAdminResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse", - value: MsgUpdateGroupPolicyAdminResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyAdminResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", - value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicy() { - return { - admin: "", - members: [], - groupMetadata: "", - groupPolicyMetadata: "", - groupPolicyAsAdmin: false, - decisionPolicy: undefined - }; -} -export const MsgCreateGroupWithPolicy = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - MemberRequest.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.groupMetadata !== "") { - writer.uint32(26).string(message.groupMetadata); - } - if (message.groupPolicyMetadata !== "") { - writer.uint32(34).string(message.groupPolicyMetadata); - } - if (message.groupPolicyAsAdmin === true) { - writer.uint32(40).bool(message.groupPolicyAsAdmin); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(MemberRequest.decode(reader, reader.uint32())); - break; - case 3: - message.groupMetadata = reader.string(); - break; - case 4: - message.groupPolicyMetadata = reader.string(); - break; - case 5: - message.groupPolicyAsAdmin = reader.bool(); - break; - case 6: - message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupWithPolicy(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || []; - message.groupMetadata = object.groupMetadata ?? ""; - message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; - message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupWithPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || []; - if (object.group_metadata !== undefined && object.group_metadata !== null) { - message.groupMetadata = object.group_metadata; - } - if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) { - message.groupPolicyMetadata = object.group_policy_metadata; - } - if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) { - message.groupPolicyAsAdmin = object.group_policy_as_admin; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.members) { - obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined); - } - else { - obj.members = message.members; - } - obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata; - obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata; - obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroupWithPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroupWithPolicy.decode(message.value); - }, - toProto(message) { - return MsgCreateGroupWithPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgCreateGroupWithPolicyResponse() { - return { - groupId: BigInt(0), - groupPolicyAddress: "" - }; -} -export const MsgCreateGroupWithPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateGroupWithPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse", - value: MsgCreateGroupWithPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateGroupWithPolicyResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateGroupWithPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", - value: MsgCreateGroupWithPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicy() { - return { - admin: "", - groupPolicyAddress: "", - decisionPolicy: undefined - }; -} -export const MsgUpdateGroupPolicyDecisionPolicy = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse() { - return {}; -} -export const MsgUpdateGroupPolicyDecisionPolicyResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse", - value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", - value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadata() { - return { - admin: "", - groupPolicyAddress: "", - metadata: "" - }; -} -export const MsgUpdateGroupPolicyMetadata = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - message.admin = object.admin ?? ""; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateGroupPolicyMetadataResponse() { - return {}; -} -export const MsgUpdateGroupPolicyMetadataResponse = { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse", - value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateGroupPolicyMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", - value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposal() { - return { - groupPolicyAddress: "", - proposers: [], - metadata: "", - messages: [], - exec: 0 - }; -} -export const MsgSubmitProposal = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.groupPolicyAddress !== "") { - writer.uint32(10).string(message.groupPolicyAddress); - } - for (const v of message.proposers) { - writer.uint32(18).string(v); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.messages) { - Any.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicyAddress = reader.string(); - break; - case 2: - message.proposers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 5: - message.exec = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposal(); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposal(); - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } - else { - obj.proposers = message.proposers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgSubmitProposal", - value: MsgSubmitProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposal.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitProposalResponse() { - return { - proposalId: BigInt(0) - }; -} -export const MsgSubmitProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitProposalResponse(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitProposalResponse.decode(message.value); - }, - toProto(message) { - return MsgSubmitProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", - value: MsgSubmitProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposal() { - return { - proposalId: BigInt(0), - address: "" - }; -} -export const MsgWithdrawProposal = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgWithdrawProposal(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgWithdrawProposal", - value: MsgWithdrawProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawProposal.decode(message.value); - }, - toProto(message) { - return MsgWithdrawProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.encode(message).finish() - }; - } -}; -function createBaseMsgWithdrawProposalResponse() { - return {}; -} -export const MsgWithdrawProposalResponse = { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgWithdrawProposalResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgWithdrawProposalResponse", - value: MsgWithdrawProposalResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgWithdrawProposalResponse.decode(message.value); - }, - toProto(message) { - return MsgWithdrawProposalResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", - value: MsgWithdrawProposalResponse.encode(message).finish() - }; - } -}; -function createBaseMsgVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - exec: 0 - }; -} -export const MsgVote = { - typeUrl: "/cosmos.group.v1.MsgVote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.exec = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.exec = object.exec ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.exec !== undefined && object.exec !== null) { - message.exec = object.exec; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.exec = message.exec === 0 ? undefined : message.exec; - return obj; - }, - fromAminoMsg(object) { - return MsgVote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgVote", - value: MsgVote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVote.decode(message.value); - }, - toProto(message) { - return MsgVote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.encode(message).finish() - }; - } -}; -function createBaseMsgVoteResponse() { - return {}; -} -export const MsgVoteResponse = { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgVoteResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgVoteResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgVoteResponse", - value: MsgVoteResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgVoteResponse.decode(message.value); - }, - toProto(message) { - return MsgVoteResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgVoteResponse", - value: MsgVoteResponse.encode(message).finish() - }; - } -}; -function createBaseMsgExec() { - return { - proposalId: BigInt(0), - executor: "" - }; -} -export const MsgExec = { - typeUrl: "/cosmos.group.v1.MsgExec", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.executor !== "") { - writer.uint32(18).string(message.executor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.executor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.executor = object.executor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExec(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.executor !== undefined && object.executor !== null) { - message.executor = object.executor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.executor = message.executor === "" ? undefined : message.executor; - return obj; - }, - fromAminoMsg(object) { - return MsgExec.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgExec", - value: MsgExec.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExec.decode(message.value); - }, - toProto(message) { - return MsgExec.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.encode(message).finish() - }; - } -}; -function createBaseMsgExecResponse() { - return { - result: 0 - }; -} -export const MsgExecResponse = { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgExecResponse(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgExecResponse(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object) { - return MsgExecResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgExecResponse", - value: MsgExecResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgExecResponse.decode(message.value); - }, - toProto(message) { - return MsgExecResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgExecResponse", - value: MsgExecResponse.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroup() { - return { - address: "", - groupId: BigInt(0) - }; -} -export const MsgLeaveGroup = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgLeaveGroup(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgLeaveGroup(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgLeaveGroup.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/group/MsgLeaveGroup", - value: MsgLeaveGroup.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgLeaveGroup.decode(message.value); - }, - toProto(message) { - return MsgLeaveGroup.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.encode(message).finish() - }; - } -}; -function createBaseMsgLeaveGroupResponse() { - return {}; -} -export const MsgLeaveGroupResponse = { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgLeaveGroupResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgLeaveGroupResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgLeaveGroupResponse", - value: MsgLeaveGroupResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgLeaveGroupResponse.decode(message.value); - }, - toProto(message) { - return MsgLeaveGroupResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", - value: MsgLeaveGroupResponse.encode(message).finish() - }; - } -}; -export const DecisionPolicy_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -export const DecisionPolicy_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const DecisionPolicy_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.registry.js b/packages/api/dist/esm/cosmos/group/v1/tx.registry.js deleted file mode 100644 index 324f1a24..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/tx.registry.js +++ /dev/null @@ -1,267 +0,0 @@ -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export const registry = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.encode(value).finish() - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.encode(value).finish() - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.encode(value).finish() - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.encode(value).finish() - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.encode(value).finish() - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.encode(value).finish() - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.encode(value).finish() - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.encode(value).finish() - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.encode(value).finish() - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.encode(value).finish() - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.encode(value).finish() - }; - } - }, - withTypeUrl: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value - }; - } - }, - fromPartial: { - createGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.fromPartial(value) - }; - }, - updateGroupMembers(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.fromPartial(value) - }; - }, - updateGroupAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.fromPartial(value) - }; - }, - updateGroupMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.fromPartial(value) - }; - }, - createGroupPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.fromPartial(value) - }; - }, - createGroupWithPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.fromPartial(value) - }; - }, - updateGroupPolicyAdmin(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.fromPartial(value) - }; - }, - updateGroupPolicyDecisionPolicy(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) - }; - }, - updateGroupPolicyMetadata(value) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.fromPartial(value) - }; - }, - submitProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - withdrawProposal(value) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.fromPartial(value) - }; - }, - vote(value) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - exec(value) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.fromPartial(value) - }; - }, - leaveGroup(value) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js deleted file mode 100644 index b313f99c..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/tx.rpc.msg.js +++ /dev/null @@ -1,92 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createGroup = this.createGroup.bind(this); - this.updateGroupMembers = this.updateGroupMembers.bind(this); - this.updateGroupAdmin = this.updateGroupAdmin.bind(this); - this.updateGroupMetadata = this.updateGroupMetadata.bind(this); - this.createGroupPolicy = this.createGroupPolicy.bind(this); - this.createGroupWithPolicy = this.createGroupWithPolicy.bind(this); - this.updateGroupPolicyAdmin = this.updateGroupPolicyAdmin.bind(this); - this.updateGroupPolicyDecisionPolicy = this.updateGroupPolicyDecisionPolicy.bind(this); - this.updateGroupPolicyMetadata = this.updateGroupPolicyMetadata.bind(this); - this.submitProposal = this.submitProposal.bind(this); - this.withdrawProposal = this.withdrawProposal.bind(this); - this.vote = this.vote.bind(this); - this.exec = this.exec.bind(this); - this.leaveGroup = this.leaveGroup.bind(this); - } - createGroup(request) { - const data = MsgCreateGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroup", data); - return promise.then(data => MsgCreateGroupResponse.decode(new BinaryReader(data))); - } - updateGroupMembers(request) { - const data = MsgUpdateGroupMembers.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMembers", data); - return promise.then(data => MsgUpdateGroupMembersResponse.decode(new BinaryReader(data))); - } - updateGroupAdmin(request) { - const data = MsgUpdateGroupAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupAdmin", data); - return promise.then(data => MsgUpdateGroupAdminResponse.decode(new BinaryReader(data))); - } - updateGroupMetadata(request) { - const data = MsgUpdateGroupMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupMetadata", data); - return promise.then(data => MsgUpdateGroupMetadataResponse.decode(new BinaryReader(data))); - } - createGroupPolicy(request) { - const data = MsgCreateGroupPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupPolicy", data); - return promise.then(data => MsgCreateGroupPolicyResponse.decode(new BinaryReader(data))); - } - createGroupWithPolicy(request) { - const data = MsgCreateGroupWithPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "CreateGroupWithPolicy", data); - return promise.then(data => MsgCreateGroupWithPolicyResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyAdmin(request) { - const data = MsgUpdateGroupPolicyAdmin.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyAdmin", data); - return promise.then(data => MsgUpdateGroupPolicyAdminResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyDecisionPolicy(request) { - const data = MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyDecisionPolicy", data); - return promise.then(data => MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new BinaryReader(data))); - } - updateGroupPolicyMetadata(request) { - const data = MsgUpdateGroupPolicyMetadata.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "UpdateGroupPolicyMetadata", data); - return promise.then(data => MsgUpdateGroupPolicyMetadataResponse.decode(new BinaryReader(data))); - } - submitProposal(request) { - const data = MsgSubmitProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "SubmitProposal", data); - return promise.then(data => MsgSubmitProposalResponse.decode(new BinaryReader(data))); - } - withdrawProposal(request) { - const data = MsgWithdrawProposal.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "WithdrawProposal", data); - return promise.then(data => MsgWithdrawProposalResponse.decode(new BinaryReader(data))); - } - vote(request) { - const data = MsgVote.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Vote", data); - return promise.then(data => MsgVoteResponse.decode(new BinaryReader(data))); - } - exec(request) { - const data = MsgExec.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "Exec", data); - return promise.then(data => MsgExecResponse.decode(new BinaryReader(data))); - } - leaveGroup(request) { - const data = MsgLeaveGroup.encode(request).finish(); - const promise = this.rpc.request("cosmos.group.v1.Msg", "LeaveGroup", data); - return promise.then(data => MsgLeaveGroupResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/group/v1/types.js b/packages/api/dist/esm/cosmos/group/v1/types.js deleted file mode 100644 index be16d42c..00000000 --- a/packages/api/dist/esm/cosmos/group/v1/types.js +++ /dev/null @@ -1,1459 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration } from "../../../google/protobuf/duration"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export var VoteOption; -(function (VoteOption) { - /** - * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - */ - VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED"; - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES"; - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN"; - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO"; - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO"; - VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(VoteOption || (VoteOption = {})); -export const VoteOptionSDKType = VoteOption; -export const VoteOptionAmino = VoteOption; -export function voteOptionFromJSON(object) { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object) { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus defines proposal statuses. */ -export var ProposalStatus; -(function (ProposalStatus) { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED"; - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED"; - /** - * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED"; - /** - * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED"; - /** - * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the - * final tally. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED"; - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - */ - ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN"; - ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalStatus || (ProposalStatus = {})); -export const ProposalStatusSDKType = ProposalStatus; -export const ProposalStatusAmino = ProposalStatus; -export function proposalStatusFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_ACCEPTED": - return ProposalStatus.PROPOSAL_STATUS_ACCEPTED; - case 3: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 4: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 5: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object) { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_ACCEPTED: - return "PROPOSAL_STATUS_ACCEPTED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalExecutorResult defines types of proposal executor results. */ -export var ProposalExecutorResult; -(function (ProposalExecutorResult) { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ProposalExecutorResult || (ProposalExecutorResult = {})); -export const ProposalExecutorResultSDKType = ProposalExecutorResult; -export const ProposalExecutorResultAmino = ProposalExecutorResult; -export function proposalExecutorResultFromJSON(object) { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -export function proposalExecutorResultToJSON(object) { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseMember() { - return { - address: "", - weight: "", - metadata: "", - addedAt: new Date() - }; -} -export const Member = { - typeUrl: "/cosmos.group.v1.Member", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.addedAt !== undefined) { - Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMember(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - message.addedAt = object.addedAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMember(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.added_at !== undefined && object.added_at !== null) { - message.addedAt = fromTimestamp(Timestamp.fromAmino(object.added_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.added_at = message.addedAt ? Timestamp.toAmino(toTimestamp(message.addedAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Member.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Member", - value: Member.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Member.decode(message.value); - }, - toProto(message) { - return Member.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Member", - value: Member.encode(message).finish() - }; - } -}; -function createBaseMemberRequest() { - return { - address: "", - weight: "", - metadata: "" - }; -} -export const MemberRequest = { - typeUrl: "/cosmos.group.v1.MemberRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMemberRequest(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMemberRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.weight !== undefined && object.weight !== null) { - message.weight = object.weight; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.weight = message.weight === "" ? undefined : message.weight; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MemberRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MemberRequest", - value: MemberRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MemberRequest.decode(message.value); - }, - toProto(message) { - return MemberRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.MemberRequest", - value: MemberRequest.encode(message).finish() - }; - } -}; -function createBaseThresholdDecisionPolicy() { - return { - $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - threshold: "", - windows: undefined - }; -} -export const ThresholdDecisionPolicy = { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.threshold !== "") { - writer.uint32(10).string(message.threshold); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseThresholdDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseThresholdDecisionPolicy(); - message.threshold = object.threshold ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseThresholdDecisionPolicy(); - if (object.threshold !== undefined && object.threshold !== null) { - message.threshold = object.threshold; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.threshold = message.threshold === "" ? undefined : message.threshold; - obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ThresholdDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ThresholdDecisionPolicy.decode(message.value); - }, - toProto(message) { - return ThresholdDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(message).finish() - }; - } -}; -function createBasePercentageDecisionPolicy() { - return { - $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - percentage: "", - windows: undefined - }; -} -export const PercentageDecisionPolicy = { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - encode(message, writer = BinaryWriter.create()) { - if (message.percentage !== "") { - writer.uint32(10).string(message.percentage); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePercentageDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.percentage = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePercentageDecisionPolicy(); - message.percentage = object.percentage ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePercentageDecisionPolicy(); - if (object.percentage !== undefined && object.percentage !== null) { - message.percentage = object.percentage; - } - if (object.windows !== undefined && object.windows !== null) { - message.windows = DecisionPolicyWindows.fromAmino(object.windows); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.percentage = message.percentage === "" ? undefined : message.percentage; - obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PercentageDecisionPolicy.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PercentageDecisionPolicy.decode(message.value); - }, - toProto(message) { - return PercentageDecisionPolicy.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(message).finish() - }; - } -}; -function createBaseDecisionPolicyWindows() { - return { - votingPeriod: Duration.fromPartial({}), - minExecutionPeriod: Duration.fromPartial({}) - }; -} -export const DecisionPolicyWindows = { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - encode(message, writer = BinaryWriter.create()) { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - if (message.minExecutionPeriod !== undefined) { - Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecisionPolicyWindows(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - case 2: - message.minExecutionPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDecisionPolicyWindows(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDecisionPolicyWindows(); - if (object.voting_period !== undefined && object.voting_period !== null) { - message.votingPeriod = Duration.fromAmino(object.voting_period); - } - if (object.min_execution_period !== undefined && object.min_execution_period !== null) { - message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : undefined; - obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DecisionPolicyWindows.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DecisionPolicyWindows", - value: DecisionPolicyWindows.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DecisionPolicyWindows.decode(message.value); - }, - toProto(message) { - return DecisionPolicyWindows.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", - value: DecisionPolicyWindows.encode(message).finish() - }; - } -}; -function createBaseGroupInfo() { - return { - id: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - totalWeight: "", - createdAt: new Date() - }; -} -export const GroupInfo = { - typeUrl: "/cosmos.group.v1.GroupInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(32).uint64(message.version); - } - if (message.totalWeight !== "") { - writer.uint32(42).string(message.totalWeight); - } - if (message.createdAt !== undefined) { - Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.version = reader.uint64(); - break; - case 5: - message.totalWeight = reader.string(); - break; - case 6: - message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.totalWeight = object.totalWeight ?? ""; - message.createdAt = object.createdAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.total_weight !== undefined && object.total_weight !== null) { - message.totalWeight = object.total_weight; - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight; - obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GroupInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupInfo", - value: GroupInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GroupInfo.decode(message.value); - }, - toProto(message) { - return GroupInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupInfo", - value: GroupInfo.encode(message).finish() - }; - } -}; -function createBaseGroupMember() { - return { - groupId: BigInt(0), - member: undefined - }; -} -export const GroupMember = { - typeUrl: "/cosmos.group.v1.GroupMember", - encode(message, writer = BinaryWriter.create()) { - if (message.groupId !== BigInt(0)) { - writer.uint32(8).uint64(message.groupId); - } - if (message.member !== undefined) { - Member.encode(message.member, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = reader.uint64(); - break; - case 2: - message.member = Member.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupMember(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupMember(); - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.member !== undefined && object.member !== null) { - message.member = Member.fromAmino(object.member); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.member = message.member ? Member.toAmino(message.member) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GroupMember.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupMember", - value: GroupMember.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GroupMember.decode(message.value); - }, - toProto(message) { - return GroupMember.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupMember", - value: GroupMember.encode(message).finish() - }; - } -}; -function createBaseGroupPolicyInfo() { - return { - address: "", - groupId: BigInt(0), - admin: "", - metadata: "", - version: BigInt(0), - decisionPolicy: undefined, - createdAt: new Date() - }; -} -export const GroupPolicyInfo = { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.groupId !== BigInt(0)) { - writer.uint32(16).uint64(message.groupId); - } - if (message.admin !== "") { - writer.uint32(26).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.version !== BigInt(0)) { - writer.uint32(40).uint64(message.version); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - if (message.createdAt !== undefined) { - Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupPolicyInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = reader.uint64(); - break; - case 3: - message.admin = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.version = reader.uint64(); - break; - case 6: - message.decisionPolicy = DecisionPolicy_InterfaceDecoder(reader); - break; - case 7: - message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGroupPolicyInfo(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0); - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - message.createdAt = object.createdAt ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGroupPolicyInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.group_id !== undefined && object.group_id !== null) { - message.groupId = BigInt(object.group_id); - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - if (object.decision_policy !== undefined && object.decision_policy !== null) { - message.decisionPolicy = DecisionPolicy_FromAmino(object.decision_policy); - } - if (object.created_at !== undefined && object.created_at !== null) { - message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.group_id = message.groupId !== BigInt(0) ? message.groupId.toString() : undefined; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - obj.decision_policy = message.decisionPolicy ? DecisionPolicy_ToAmino(message.decisionPolicy) : undefined; - obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GroupPolicyInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GroupPolicyInfo", - value: GroupPolicyInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GroupPolicyInfo.decode(message.value); - }, - toProto(message) { - return GroupPolicyInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.GroupPolicyInfo", - value: GroupPolicyInfo.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - id: BigInt(0), - groupPolicyAddress: "", - metadata: "", - proposers: [], - submitTime: new Date(), - groupVersion: BigInt(0), - groupPolicyVersion: BigInt(0), - status: 0, - finalTallyResult: TallyResult.fromPartial({}), - votingPeriodEnd: new Date(), - executorResult: 0, - messages: [] - }; -} -export const Proposal = { - typeUrl: "/cosmos.group.v1.Proposal", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.proposers) { - writer.uint32(34).string(v); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.groupVersion !== BigInt(0)) { - writer.uint32(48).uint64(message.groupVersion); - } - if (message.groupPolicyVersion !== BigInt(0)) { - writer.uint32(56).uint64(message.groupPolicyVersion); - } - if (message.status !== 0) { - writer.uint32(64).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); - } - if (message.votingPeriodEnd !== undefined) { - Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); - } - if (message.executorResult !== 0) { - writer.uint32(88).int32(message.executorResult); - } - for (const v of message.messages) { - Any.encode(v, writer.uint32(98).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.proposers.push(reader.string()); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.groupVersion = reader.uint64(); - break; - case 7: - message.groupPolicyVersion = reader.uint64(); - break; - case 8: - message.status = reader.int32(); - break; - case 9: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 10: - message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 11: - message.executorResult = reader.int32(); - break; - case 12: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - message.metadata = object.metadata ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.submitTime = object.submitTime ?? undefined; - message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0); - message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0); - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; - message.executorResult = object.executorResult ?? 0; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.group_policy_address !== undefined && object.group_policy_address !== null) { - message.groupPolicyAddress = object.group_policy_address; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - message.proposers = object.proposers?.map(e => e) || []; - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); - } - if (object.group_version !== undefined && object.group_version !== null) { - message.groupVersion = BigInt(object.group_version); - } - if (object.group_policy_version !== undefined && object.group_policy_version !== null) { - message.groupPolicyVersion = BigInt(object.group_policy_version); - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.final_tally_result !== undefined && object.final_tally_result !== null) { - message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); - } - if (object.voting_period_end !== undefined && object.voting_period_end !== null) { - message.votingPeriodEnd = fromTimestamp(Timestamp.fromAmino(object.voting_period_end)); - } - if (object.executor_result !== undefined && object.executor_result !== null) { - message.executorResult = object.executor_result; - } - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - if (message.proposers) { - obj.proposers = message.proposers.map(e => e); - } - else { - obj.proposers = message.proposers; - } - obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; - obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion.toString() : undefined; - obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion.toString() : undefined; - obj.status = message.status === 0 ? undefined : message.status; - obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; - obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(toTimestamp(message.votingPeriodEnd)) : undefined; - obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - return obj; - }, - fromAminoMsg(object) { - return Proposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Proposal", - value: Proposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Proposal.decode(message.value); - }, - toProto(message) { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseTallyResult() { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - typeUrl: "/cosmos.group.v1.TallyResult", - encode(message, writer = BinaryWriter.create()) { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTallyResult(); - if (object.yes_count !== undefined && object.yes_count !== null) { - message.yesCount = object.yes_count; - } - if (object.abstain_count !== undefined && object.abstain_count !== null) { - message.abstainCount = object.abstain_count; - } - if (object.no_count !== undefined && object.no_count !== null) { - message.noCount = object.no_count; - } - if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) { - message.noWithVetoCount = object.no_with_veto_count; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.yes_count = message.yesCount === "" ? undefined : message.yesCount; - obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount; - obj.no_count = message.noCount === "" ? undefined : message.noCount; - obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount; - return obj; - }, - fromAminoMsg(object) { - return TallyResult.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TallyResult", - value: TallyResult.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TallyResult.decode(message.value); - }, - toProto(message) { - return TallyResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.TallyResult", - value: TallyResult.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - proposalId: BigInt(0), - voter: "", - option: 0, - metadata: "", - submitTime: new Date() - }; -} -export const Vote = { - typeUrl: "/cosmos.group.v1.Vote", - encode(message, writer = BinaryWriter.create()) { - if (message.proposalId !== BigInt(0)) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = reader.uint64(); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = reader.int32(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0); - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.submitTime = object.submitTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.proposal_id !== undefined && object.proposal_id !== null) { - message.proposalId = BigInt(object.proposal_id); - } - if (object.voter !== undefined && object.voter !== null) { - message.voter = object.voter; - } - if (object.option !== undefined && object.option !== null) { - message.option = object.option; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.submit_time !== undefined && object.submit_time !== null) { - message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; - obj.voter = message.voter === "" ? undefined : message.voter; - obj.option = message.option === 0 ? undefined : message.option; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Vote.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Vote", - value: Vote.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Vote.decode(message.value); - }, - toProto(message) { - return Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.group.v1.Vote", - value: Vote.encode(message).finish() - }; - } -}; -export const DecisionPolicy_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return ThresholdDecisionPolicy.decode(data.value); - case "/cosmos.group.v1.PercentageDecisionPolicy": - return PercentageDecisionPolicy.decode(data.value); - default: - return data; - } -}; -export const DecisionPolicy_FromAmino = (content) => { - switch (content.type) { - case "cosmos-sdk/ThresholdDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish() - }); - case "cosmos-sdk/PercentageDecisionPolicy": - return Any.fromPartial({ - typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", - value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish() - }); - default: - return Any.fromAmino(content); - } -}; -export const DecisionPolicy_ToAmino = (content) => { - switch (content.typeUrl) { - case "/cosmos.group.v1.ThresholdDecisionPolicy": - return { - type: "cosmos-sdk/ThresholdDecisionPolicy", - value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined)) - }; - case "/cosmos.group.v1.PercentageDecisionPolicy": - return { - type: "cosmos-sdk/PercentageDecisionPolicy", - value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined)) - }; - default: - return Any.toAmino(content); - } -}; diff --git a/packages/api/dist/esm/cosmos/lcd.js b/packages/api/dist/esm/cosmos/lcd.js deleted file mode 100644 index 464d1d1c..00000000 --- a/packages/api/dist/esm/cosmos/lcd.js +++ /dev/null @@ -1,81 +0,0 @@ -//@ts-nocheck -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("./auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("./authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("./bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("./base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("./distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("./feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("./gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("./gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("./group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("./mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("./params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("./staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("./tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("./upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js deleted file mode 100644 index dd2f0dde..00000000 --- a/packages/api/dist/esm/cosmos/mint/v1beta1/genesis.js +++ /dev/null @@ -1,84 +0,0 @@ -//@ts-nocheck -import { Minter, Params } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - minter: Minter.fromPartial({}), - params: Params.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.minter !== undefined) { - Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minter = Minter.decode(reader, reader.uint32()); - break; - case 2: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.minter !== undefined && object.minter !== null) { - message.minter = Minter.fromAmino(object.minter); - } - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.minter = message.minter ? Minter.toAmino(message.minter) : undefined; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js b/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js deleted file mode 100644 index aaa78a76..00000000 --- a/packages/api/dist/esm/cosmos/mint/v1beta1/mint.js +++ /dev/null @@ -1,213 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -function createBaseMinter() { - return { - inflation: "", - annualProvisions: "" - }; -} -export const Minter = { - typeUrl: "/cosmos.mint.v1beta1.Minter", - encode(message, writer = BinaryWriter.create()) { - if (message.inflation !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.inflation, 18).atomics); - } - if (message.annualProvisions !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.annualProvisions, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMinter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.annualProvisions = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMinter(); - message.inflation = object.inflation ?? ""; - message.annualProvisions = object.annualProvisions ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMinter(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = object.inflation; - } - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = object.annual_provisions; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.inflation = message.inflation === "" ? undefined : message.inflation; - obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions; - return obj; - }, - fromAminoMsg(object) { - return Minter.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Minter", - value: Minter.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Minter.decode(message.value); - }, - toProto(message) { - return Minter.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.Minter", - value: Minter.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - mintDenom: "", - inflationRateChange: "", - inflationMax: "", - inflationMin: "", - goalBonded: "", - blocksPerYear: BigInt(0) - }; -} -export const Params = { - typeUrl: "/cosmos.mint.v1beta1.Params", - encode(message, writer = BinaryWriter.create()) { - if (message.mintDenom !== "") { - writer.uint32(10).string(message.mintDenom); - } - if (message.inflationRateChange !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.inflationRateChange, 18).atomics); - } - if (message.inflationMax !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.inflationMax, 18).atomics); - } - if (message.inflationMin !== "") { - writer.uint32(34).string(Decimal.fromUserInput(message.inflationMin, 18).atomics); - } - if (message.goalBonded !== "") { - writer.uint32(42).string(Decimal.fromUserInput(message.goalBonded, 18).atomics); - } - if (message.blocksPerYear !== BigInt(0)) { - writer.uint32(48).uint64(message.blocksPerYear); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mintDenom = reader.string(); - break; - case 2: - message.inflationRateChange = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.inflationMax = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.inflationMin = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 5: - message.goalBonded = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 6: - message.blocksPerYear = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.mintDenom = object.mintDenom ?? ""; - message.inflationRateChange = object.inflationRateChange ?? ""; - message.inflationMax = object.inflationMax ?? ""; - message.inflationMin = object.inflationMin ?? ""; - message.goalBonded = object.goalBonded ?? ""; - message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.mint_denom !== undefined && object.mint_denom !== null) { - message.mintDenom = object.mint_denom; - } - if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) { - message.inflationRateChange = object.inflation_rate_change; - } - if (object.inflation_max !== undefined && object.inflation_max !== null) { - message.inflationMax = object.inflation_max; - } - if (object.inflation_min !== undefined && object.inflation_min !== null) { - message.inflationMin = object.inflation_min; - } - if (object.goal_bonded !== undefined && object.goal_bonded !== null) { - message.goalBonded = object.goal_bonded; - } - if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) { - message.blocksPerYear = BigInt(object.blocks_per_year); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; - obj.inflation_rate_change = message.inflationRateChange === "" ? undefined : message.inflationRateChange; - obj.inflation_max = message.inflationMax === "" ? undefined : message.inflationMax; - obj.inflation_min = message.inflationMin === "" ? undefined : message.inflationMin; - obj.goal_bonded = message.goalBonded === "" ? undefined : message.goalBonded; - obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.js deleted file mode 100644 index 1b7ce20f..00000000 --- a/packages/api/dist/esm/cosmos/mint/v1beta1/query.js +++ /dev/null @@ -1,379 +0,0 @@ -//@ts-nocheck -import { Params } from "./mint"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryInflationRequest() { - return {}; -} -export const QueryInflationRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryInflationRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryInflationRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryInflationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryInflationRequest", - value: QueryInflationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryInflationRequest.decode(message.value); - }, - toProto(message) { - return QueryInflationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", - value: QueryInflationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInflationResponse() { - return { - inflation: new Uint8Array() - }; -} -export const QueryInflationResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.inflation.length !== 0) { - writer.uint32(10).bytes(message.inflation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInflationResponse(); - message.inflation = object.inflation ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryInflationResponse(); - if (object.inflation !== undefined && object.inflation !== null) { - message.inflation = bytesFromBase64(object.inflation); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.inflation = message.inflation ? base64FromBytes(message.inflation) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryInflationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryInflationResponse", - value: QueryInflationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryInflationResponse.decode(message.value); - }, - toProto(message) { - return QueryInflationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", - value: QueryInflationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsRequest() { - return {}; -} -export const QueryAnnualProvisionsRequest = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryAnnualProvisionsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAnnualProvisionsRequest", - value: QueryAnnualProvisionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAnnualProvisionsRequest.decode(message.value); - }, - toProto(message) { - return QueryAnnualProvisionsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", - value: QueryAnnualProvisionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnnualProvisionsResponse() { - return { - annualProvisions: new Uint8Array() - }; -} -export const QueryAnnualProvisionsResponse = { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.annualProvisions.length !== 0) { - writer.uint32(10).bytes(message.annualProvisions); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annualProvisions = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnnualProvisionsResponse(); - message.annualProvisions = object.annualProvisions ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnnualProvisionsResponse(); - if (object.annual_provisions !== undefined && object.annual_provisions !== null) { - message.annualProvisions = bytesFromBase64(object.annual_provisions); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.annual_provisions = message.annualProvisions ? base64FromBytes(message.annualProvisions) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAnnualProvisionsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAnnualProvisionsResponse", - value: QueryAnnualProvisionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAnnualProvisionsResponse.decode(message.value); - }, - toProto(message) { - return QueryAnnualProvisionsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", - value: QueryAnnualProvisionsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js deleted file mode 100644 index 4bb5f508..00000000 --- a/packages/api/dist/esm/cosmos/mint/v1beta1/query.lcd.js +++ /dev/null @@ -1,24 +0,0 @@ -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - /* Params returns the total set of minting parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/params`; - return await this.req.get(endpoint); - } - /* Inflation returns the current minting inflation value. */ - async inflation(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/inflation`; - return await this.req.get(endpoint); - } - /* AnnualProvisions current minting annual provisions value. */ - async annualProvisions(_params = {}) { - const endpoint = `cosmos/mint/v1beta1/annual_provisions`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js deleted file mode 100644 index b498800e..00000000 --- a/packages/api/dist/esm/cosmos/mint/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,42 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - inflation(request = {}) { - const data = QueryInflationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data); - return promise.then(data => QueryInflationResponse.decode(new BinaryReader(data))); - } - annualProvisions(request = {}) { - const data = QueryAnnualProvisionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data); - return promise.then(data => QueryAnnualProvisionsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - inflation(request) { - return queryService.inflation(request); - }, - annualProvisions(request) { - return queryService.annualProvisions(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/msg/v1/msg.js b/packages/api/dist/esm/cosmos/msg/v1/msg.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/esm/cosmos/msg/v1/msg.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js b/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js deleted file mode 100644 index 00efbfc3..00000000 --- a/packages/api/dist/esm/cosmos/orm/module/v1alpha1/module.js +++ /dev/null @@ -1,58 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseModule() { - return {}; -} -export const Module = { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseModule(); - return message; - }, - fromAmino(_) { - const message = createBaseModule(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return Module.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Module", - value: Module.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Module.decode(message.value); - }, - toProto(message) { - return Module.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.module.v1alpha1.Module", - value: Module.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/orm/v1/orm.js b/packages/api/dist/esm/cosmos/orm/v1/orm.js deleted file mode 100644 index 51920125..00000000 --- a/packages/api/dist/esm/cosmos/orm/v1/orm.js +++ /dev/null @@ -1,341 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseTableDescriptor() { - return { - primaryKey: undefined, - index: [], - id: 0 - }; -} -export const TableDescriptor = { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.primaryKey !== undefined) { - PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.index) { - SecondaryIndexDescriptor.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.id !== 0) { - writer.uint32(24).uint32(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTableDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTableDescriptor(); - message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; - message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || []; - message.id = object.id ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseTableDescriptor(); - if (object.primary_key !== undefined && object.primary_key !== null) { - message.primaryKey = PrimaryKeyDescriptor.fromAmino(object.primary_key); - } - message.index = object.index?.map(e => SecondaryIndexDescriptor.fromAmino(e)) || []; - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.primary_key = message.primaryKey ? PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined; - if (message.index) { - obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toAmino(e) : undefined); - } - else { - obj.index = message.index; - } - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return TableDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TableDescriptor", - value: TableDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TableDescriptor.decode(message.value); - }, - toProto(message) { - return TableDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.TableDescriptor", - value: TableDescriptor.encode(message).finish() - }; - } -}; -function createBasePrimaryKeyDescriptor() { - return { - fields: "", - autoIncrement: false - }; -} -export const PrimaryKeyDescriptor = { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.autoIncrement === true) { - writer.uint32(16).bool(message.autoIncrement); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrimaryKeyDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.autoIncrement = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePrimaryKeyDescriptor(); - message.fields = object.fields ?? ""; - message.autoIncrement = object.autoIncrement ?? false; - return message; - }, - fromAmino(object) { - const message = createBasePrimaryKeyDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.auto_increment !== undefined && object.auto_increment !== null) { - message.autoIncrement = object.auto_increment; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement; - return obj; - }, - fromAminoMsg(object) { - return PrimaryKeyDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PrimaryKeyDescriptor", - value: PrimaryKeyDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PrimaryKeyDescriptor.decode(message.value); - }, - toProto(message) { - return PrimaryKeyDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor", - value: PrimaryKeyDescriptor.encode(message).finish() - }; - } -}; -function createBaseSecondaryIndexDescriptor() { - return { - fields: "", - id: 0, - unique: false - }; -} -export const SecondaryIndexDescriptor = { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.id !== 0) { - writer.uint32(16).uint32(message.id); - } - if (message.unique === true) { - writer.uint32(24).bool(message.unique); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSecondaryIndexDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.id = reader.uint32(); - break; - case 3: - message.unique = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSecondaryIndexDescriptor(); - message.fields = object.fields ?? ""; - message.id = object.id ?? 0; - message.unique = object.unique ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSecondaryIndexDescriptor(); - if (object.fields !== undefined && object.fields !== null) { - message.fields = object.fields; - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.unique !== undefined && object.unique !== null) { - message.unique = object.unique; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fields = message.fields === "" ? undefined : message.fields; - obj.id = message.id === 0 ? undefined : message.id; - obj.unique = message.unique === false ? undefined : message.unique; - return obj; - }, - fromAminoMsg(object) { - return SecondaryIndexDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SecondaryIndexDescriptor", - value: SecondaryIndexDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SecondaryIndexDescriptor.decode(message.value); - }, - toProto(message) { - return SecondaryIndexDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor", - value: SecondaryIndexDescriptor.encode(message).finish() - }; - } -}; -function createBaseSingletonDescriptor() { - return { - id: 0 - }; -} -export const SingletonDescriptor = { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSingletonDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSingletonDescriptor(); - message.id = object.id ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseSingletonDescriptor(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === 0 ? undefined : message.id; - return obj; - }, - fromAminoMsg(object) { - return SingletonDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SingletonDescriptor", - value: SingletonDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SingletonDescriptor.decode(message.value); - }, - toProto(message) { - return SingletonDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.orm.v1.SingletonDescriptor", - value: SingletonDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/params.js b/packages/api/dist/esm/cosmos/params/v1beta1/params.js deleted file mode 100644 index f82aa198..00000000 --- a/packages/api/dist/esm/cosmos/params/v1beta1/params.js +++ /dev/null @@ -1,192 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseParameterChangeProposal() { - return { - $typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - title: "", - description: "", - changes: [] - }; -} -export const ParameterChangeProposal = { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - for (const v of message.changes) { - ParamChange.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParameterChangeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.changes.push(ParamChange.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParameterChangeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.changes = object.changes?.map(e => ParamChange.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParameterChangeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.changes = object.changes?.map(e => ParamChange.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - if (message.changes) { - obj.changes = message.changes.map(e => e ? ParamChange.toAmino(e) : undefined); - } - else { - obj.changes = message.changes; - } - return obj; - }, - fromAminoMsg(object) { - return ParameterChangeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ParameterChangeProposal", - value: ParameterChangeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ParameterChangeProposal.decode(message.value); - }, - toProto(message) { - return ParameterChangeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", - value: ParameterChangeProposal.encode(message).finish() - }; - } -}; -function createBaseParamChange() { - return { - subspace: "", - key: "", - value: "" - }; -} -export const ParamChange = { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - encode(message, writer = BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - if (message.value !== "") { - writer.uint32(26).string(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParamChange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - case 3: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParamChange(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseParamChange(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - return obj; - }, - fromAminoMsg(object) { - return ParamChange.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ParamChange", - value: ParamChange.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ParamChange.decode(message.value); - }, - toProto(message) { - return ParamChange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.ParamChange", - value: ParamChange.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.js deleted file mode 100644 index 5afa1aa4..00000000 --- a/packages/api/dist/esm/cosmos/params/v1beta1/query.js +++ /dev/null @@ -1,365 +0,0 @@ -//@ts-nocheck -import { ParamChange } from "./params"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryParamsRequest() { - return { - subspace: "", - key: "" - }; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsRequest(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsRequest(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - obj.key = message.key === "" ? undefined : message.key; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - param: ParamChange.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.param !== undefined) { - ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.param = ParamChange.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.param = object.param !== undefined && object.param !== null ? ParamChange.fromPartial(object.param) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.param !== undefined && object.param !== null) { - message.param = ParamChange.fromAmino(object.param); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.param = message.param ? ParamChange.toAmino(message.param) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesRequest() { - return {}; -} -export const QuerySubspacesRequest = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQuerySubspacesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QuerySubspacesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySubspacesRequest", - value: QuerySubspacesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySubspacesRequest.decode(message.value); - }, - toProto(message) { - return QuerySubspacesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", - value: QuerySubspacesRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySubspacesResponse() { - return { - subspaces: [] - }; -} -export const QuerySubspacesResponse = { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.subspaces) { - Subspace.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspaces.push(Subspace.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => Subspace.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => Subspace.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.subspaces) { - obj.subspaces = message.subspaces.map(e => e ? Subspace.toAmino(e) : undefined); - } - else { - obj.subspaces = message.subspaces; - } - return obj; - }, - fromAminoMsg(object) { - return QuerySubspacesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QuerySubspacesResponse", - value: QuerySubspacesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QuerySubspacesResponse.decode(message.value); - }, - toProto(message) { - return QuerySubspacesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", - value: QuerySubspacesResponse.encode(message).finish() - }; - } -}; -function createBaseSubspace() { - return { - subspace: "", - keys: [] - }; -} -export const Subspace = { - typeUrl: "/cosmos.params.v1beta1.Subspace", - encode(message, writer = BinaryWriter.create()) { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - for (const v of message.keys) { - writer.uint32(18).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSubspace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.keys.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSubspace(); - message.subspace = object.subspace ?? ""; - message.keys = object.keys?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSubspace(); - if (object.subspace !== undefined && object.subspace !== null) { - message.subspace = object.subspace; - } - message.keys = object.keys?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.subspace = message.subspace === "" ? undefined : message.subspace; - if (message.keys) { - obj.keys = message.keys.map(e => e); - } - else { - obj.keys = message.keys; - } - return obj; - }, - fromAminoMsg(object) { - return Subspace.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Subspace", - value: Subspace.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Subspace.decode(message.value); - }, - toProto(message) { - return Subspace.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.params.v1beta1.Subspace", - value: Subspace.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js deleted file mode 100644 index b3668695..00000000 --- a/packages/api/dist/esm/cosmos/params/v1beta1/query.lcd.js +++ /dev/null @@ -1,30 +0,0 @@ -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - /* Params queries a specific parameter of a module, given its subspace and - key. */ - async params(params) { - const options = { - params: {} - }; - if (typeof params?.subspace !== "undefined") { - options.params.subspace = params.subspace; - } - if (typeof params?.key !== "undefined") { - options.params.key = params.key; - } - const endpoint = `cosmos/params/v1beta1/params`; - return await this.req.get(endpoint, options); - } - /* Subspaces queries for all registered subspaces and all keys for a subspace. - - Since: cosmos-sdk 0.46 */ - async subspaces(_params = {}) { - const endpoint = `cosmos/params/v1beta1/subspaces`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js deleted file mode 100644 index 6139240a..00000000 --- a/packages/api/dist/esm/cosmos/params/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,33 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - params(request) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - subspaces(request = {}) { - const data = QuerySubspacesRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Subspaces", data); - return promise.then(data => QuerySubspacesResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - params(request) { - return queryService.params(request); - }, - subspaces(request) { - return queryService.subspaces(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/rpc.query.js b/packages/api/dist/esm/cosmos/rpc.query.js deleted file mode 100644 index 1030eb0d..00000000 --- a/packages/api/dist/esm/cosmos/rpc.query.js +++ /dev/null @@ -1,53 +0,0 @@ -//@ts-nocheck -import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("./base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("./feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("./gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("./group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("./mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("./params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/rpc.tx.js b/packages/api/dist/esm/cosmos/rpc.tx.js deleted file mode 100644 index b9ea66c8..00000000 --- a/packages/api/dist/esm/cosmos/rpc.tx.js +++ /dev/null @@ -1,32 +0,0 @@ -export const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("./feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("./gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("./group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("./vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } -}); diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js b/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js deleted file mode 100644 index 87905b09..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/authz.js +++ /dev/null @@ -1,235 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - */ -export var AuthorizationType; -(function (AuthorizationType) { - /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNSPECIFIED"] = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED"; - /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_DELEGATE"] = 1] = "AUTHORIZATION_TYPE_DELEGATE"; - /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNDELEGATE"] = 2] = "AUTHORIZATION_TYPE_UNDELEGATE"; - /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ - AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_REDELEGATE"] = 3] = "AUTHORIZATION_TYPE_REDELEGATE"; - AuthorizationType[AuthorizationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(AuthorizationType || (AuthorizationType = {})); -export const AuthorizationTypeSDKType = AuthorizationType; -export const AuthorizationTypeAmino = AuthorizationType; -export function authorizationTypeFromJSON(object) { - switch (object) { - case 0: - case "AUTHORIZATION_TYPE_UNSPECIFIED": - return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED; - case 1: - case "AUTHORIZATION_TYPE_DELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE; - case 2: - case "AUTHORIZATION_TYPE_UNDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE; - case 3: - case "AUTHORIZATION_TYPE_REDELEGATE": - return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE; - case -1: - case "UNRECOGNIZED": - default: - return AuthorizationType.UNRECOGNIZED; - } -} -export function authorizationTypeToJSON(object) { - switch (object) { - case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED: - return "AUTHORIZATION_TYPE_UNSPECIFIED"; - case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE: - return "AUTHORIZATION_TYPE_DELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE: - return "AUTHORIZATION_TYPE_UNDELEGATE"; - case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE: - return "AUTHORIZATION_TYPE_REDELEGATE"; - case AuthorizationType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseStakeAuthorization() { - return { - $typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - maxTokens: undefined, - allowList: undefined, - denyList: undefined, - authorizationType: 0 - }; -} -export const StakeAuthorization = { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - encode(message, writer = BinaryWriter.create()) { - if (message.maxTokens !== undefined) { - Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim(); - } - if (message.allowList !== undefined) { - StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim(); - } - if (message.denyList !== undefined) { - StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim(); - } - if (message.authorizationType !== 0) { - writer.uint32(32).int32(message.authorizationType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTokens = Coin.decode(reader, reader.uint32()); - break; - case 2: - message.allowList = StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 3: - message.denyList = StakeAuthorization_Validators.decode(reader, reader.uint32()); - break; - case 4: - message.authorizationType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStakeAuthorization(); - message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? Coin.fromPartial(object.maxTokens) : undefined; - message.allowList = object.allowList !== undefined && object.allowList !== null ? StakeAuthorization_Validators.fromPartial(object.allowList) : undefined; - message.denyList = object.denyList !== undefined && object.denyList !== null ? StakeAuthorization_Validators.fromPartial(object.denyList) : undefined; - message.authorizationType = object.authorizationType ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseStakeAuthorization(); - if (object.max_tokens !== undefined && object.max_tokens !== null) { - message.maxTokens = Coin.fromAmino(object.max_tokens); - } - if (object.allow_list !== undefined && object.allow_list !== null) { - message.allowList = StakeAuthorization_Validators.fromAmino(object.allow_list); - } - if (object.deny_list !== undefined && object.deny_list !== null) { - message.denyList = StakeAuthorization_Validators.fromAmino(object.deny_list); - } - if (object.authorization_type !== undefined && object.authorization_type !== null) { - message.authorizationType = object.authorization_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_tokens = message.maxTokens ? Coin.toAmino(message.maxTokens) : undefined; - obj.allow_list = message.allowList ? StakeAuthorization_Validators.toAmino(message.allowList) : undefined; - obj.deny_list = message.denyList ? StakeAuthorization_Validators.toAmino(message.denyList) : undefined; - obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; - return obj; - }, - fromAminoMsg(object) { - return StakeAuthorization.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/StakeAuthorization", - value: StakeAuthorization.toAmino(message) - }; - }, - fromProtoMsg(message) { - return StakeAuthorization.decode(message.value); - }, - toProto(message) { - return StakeAuthorization.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", - value: StakeAuthorization.encode(message).finish() - }; - } -}; -function createBaseStakeAuthorization_Validators() { - return { - address: [] - }; -} -export const StakeAuthorization_Validators = { - typeUrl: "/cosmos.staking.v1beta1.Validators", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.address) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStakeAuthorization_Validators(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseStakeAuthorization_Validators(); - message.address = object.address?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.address) { - obj.address = message.address.map(e => e); - } - else { - obj.address = message.address; - } - return obj; - }, - fromAminoMsg(object) { - return StakeAuthorization_Validators.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Validators", - value: StakeAuthorization_Validators.toAmino(message) - }; - }, - fromProtoMsg(message) { - return StakeAuthorization_Validators.decode(message.value); - }, - toProto(message) { - return StakeAuthorization_Validators.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Validators", - value: StakeAuthorization_Validators.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js b/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js deleted file mode 100644 index 06ab3121..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/genesis.js +++ /dev/null @@ -1,253 +0,0 @@ -//@ts-nocheck -import { Params, Validator, Delegation, UnbondingDelegation, Redelegation } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseGenesisState() { - return { - params: Params.fromPartial({}), - lastTotalPower: new Uint8Array(), - lastValidatorPowers: [], - validators: [], - delegations: [], - unbondingDelegations: [], - redelegations: [], - exported: false - }; -} -export const GenesisState = { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - if (message.lastTotalPower.length !== 0) { - writer.uint32(18).bytes(message.lastTotalPower); - } - for (const v of message.lastValidatorPowers) { - LastValidatorPower.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - Validator.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.delegations) { - Delegation.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.unbondingDelegations) { - UnbondingDelegation.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.redelegations) { - Redelegation.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.exported === true) { - writer.uint32(64).bool(message.exported); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.lastTotalPower = reader.bytes(); - break; - case 3: - message.lastValidatorPowers.push(LastValidatorPower.decode(reader, reader.uint32())); - break; - case 4: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 5: - message.delegations.push(Delegation.decode(reader, reader.uint32())); - break; - case 6: - message.unbondingDelegations.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 7: - message.redelegations.push(Redelegation.decode(reader, reader.uint32())); - break; - case 8: - message.exported = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.lastTotalPower = object.lastTotalPower ?? new Uint8Array(); - message.lastValidatorPowers = object.lastValidatorPowers?.map(e => LastValidatorPower.fromPartial(e)) || []; - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.delegations = object.delegations?.map(e => Delegation.fromPartial(e)) || []; - message.unbondingDelegations = object.unbondingDelegations?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.redelegations = object.redelegations?.map(e => Redelegation.fromPartial(e)) || []; - message.exported = object.exported ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.last_total_power !== undefined && object.last_total_power !== null) { - message.lastTotalPower = bytesFromBase64(object.last_total_power); - } - message.lastValidatorPowers = object.last_validator_powers?.map(e => LastValidatorPower.fromAmino(e)) || []; - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - message.delegations = object.delegations?.map(e => Delegation.fromAmino(e)) || []; - message.unbondingDelegations = object.unbonding_delegations?.map(e => UnbondingDelegation.fromAmino(e)) || []; - message.redelegations = object.redelegations?.map(e => Redelegation.fromAmino(e)) || []; - if (object.exported !== undefined && object.exported !== null) { - message.exported = object.exported; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.last_total_power = message.lastTotalPower ? base64FromBytes(message.lastTotalPower) : undefined; - if (message.lastValidatorPowers) { - obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toAmino(e) : undefined); - } - else { - obj.last_validator_powers = message.lastValidatorPowers; - } - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - if (message.delegations) { - obj.delegations = message.delegations.map(e => e ? Delegation.toAmino(e) : undefined); - } - else { - obj.delegations = message.delegations; - } - if (message.unbondingDelegations) { - obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_delegations = message.unbondingDelegations; - } - if (message.redelegations) { - obj.redelegations = message.redelegations.map(e => e ? Redelegation.toAmino(e) : undefined); - } - else { - obj.redelegations = message.redelegations; - } - obj.exported = message.exported === false ? undefined : message.exported; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseLastValidatorPower() { - return { - address: "", - power: BigInt(0) - }; -} -export const LastValidatorPower = { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLastValidatorPower(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLastValidatorPower(); - message.address = object.address ?? ""; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseLastValidatorPower(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return LastValidatorPower.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/LastValidatorPower", - value: LastValidatorPower.toAmino(message) - }; - }, - fromProtoMsg(message) { - return LastValidatorPower.decode(message.value); - }, - toProto(message) { - return LastValidatorPower.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", - value: LastValidatorPower.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.js deleted file mode 100644 index 11f45c15..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/query.js +++ /dev/null @@ -1,2159 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { Validator, DelegationResponse, UnbondingDelegation, RedelegationResponse, HistoricalInfo, Pool, Params } from "./staking"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryValidatorsRequest() { - return { - status: "", - pagination: undefined - }; -} -export const QueryValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorsRequest(); - message.status = object.status ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorsRequest(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === "" ? undefined : message.status; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorsRequest", - value: QueryValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorsRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", - value: QueryValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorsResponse() { - return { - validators: [], - pagination: undefined - }; -} -export const QueryValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validators) { - Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorsResponse", - value: QueryValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorsResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", - value: QueryValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorRequest() { - return { - validatorAddr: "" - }; -} -export const QueryValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorRequest", - value: QueryValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", - value: QueryValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorResponse() { - return { - validator: Validator.fromPartial({}) - }; -} -export const QueryValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorResponse", - value: QueryValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", - value: QueryValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsRequest() { - return { - validatorAddr: "", - pagination: undefined - }; -} -export const QueryValidatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorDelegationsRequest", - value: QueryValidatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorDelegationsRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", - value: QueryValidatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorDelegationsResponse() { - return { - delegationResponses: [], - pagination: undefined - }; -} -export const QueryValidatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.delegationResponses) { - DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); - } - else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorDelegationsResponse", - value: QueryValidatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorDelegationsResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", - value: QueryValidatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsRequest() { - return { - validatorAddr: "", - pagination: undefined - }; -} -export const QueryValidatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - message.validatorAddr = object.validatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorUnbondingDelegationsRequest(); - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsRequest", - value: QueryValidatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message) { - return QueryValidatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", - value: QueryValidatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryValidatorUnbondingDelegationsResponse() { - return { - unbondingResponses: [], - pagination: undefined - }; -} -export const QueryValidatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.unbondingResponses) { - UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryValidatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryValidatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryValidatorUnbondingDelegationsResponse", - value: QueryValidatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryValidatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message) { - return QueryValidatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", - value: QueryValidatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationRequest", - value: QueryDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", - value: QueryDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegationResponse() { - return { - delegationResponse: undefined - }; -} -export const QueryDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.delegationResponse !== undefined) { - DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponse = DelegationResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegationResponse(); - message.delegationResponse = object.delegationResponse !== undefined && object.delegationResponse !== null ? DelegationResponse.fromPartial(object.delegationResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegationResponse(); - if (object.delegation_response !== undefined && object.delegation_response !== null) { - message.delegationResponse = DelegationResponse.fromAmino(object.delegation_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegation_response = message.delegationResponse ? DelegationResponse.toAmino(message.delegationResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegationResponse", - value: QueryDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegationResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", - value: QueryDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryUnbondingDelegationRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUnbondingDelegationRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUnbondingDelegationRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return QueryUnbondingDelegationRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUnbondingDelegationRequest", - value: QueryUnbondingDelegationRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUnbondingDelegationRequest.decode(message.value); - }, - toProto(message) { - return QueryUnbondingDelegationRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", - value: QueryUnbondingDelegationRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUnbondingDelegationResponse() { - return { - unbond: UnbondingDelegation.fromPartial({}) - }; -} -export const QueryUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.unbond !== undefined) { - UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbond = UnbondingDelegation.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUnbondingDelegationResponse(); - message.unbond = object.unbond !== undefined && object.unbond !== null ? UnbondingDelegation.fromPartial(object.unbond) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUnbondingDelegationResponse(); - if (object.unbond !== undefined && object.unbond !== null) { - message.unbond = UnbondingDelegation.fromAmino(object.unbond); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.unbond = message.unbond ? UnbondingDelegation.toAmino(message.unbond) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUnbondingDelegationResponse", - value: QueryUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUnbondingDelegationResponse.decode(message.value); - }, - toProto(message) { - return QueryUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", - value: QueryUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsRequest", - value: QueryDelegatorDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorDelegationsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", - value: QueryDelegatorDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorDelegationsResponse() { - return { - delegationResponses: [], - pagination: undefined - }; -} -export const QueryDelegatorDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.delegationResponses) { - DelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegationResponses?.map(e => DelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorDelegationsResponse(); - message.delegationResponses = object.delegation_responses?.map(e => DelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.delegationResponses) { - obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); - } - else { - obj.delegation_responses = message.delegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorDelegationsResponse", - value: QueryDelegatorDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorDelegationsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", - value: QueryDelegatorDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorUnbondingDelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorUnbondingDelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsRequest", - value: QueryDelegatorUnbondingDelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorUnbondingDelegationsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorUnbondingDelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", - value: QueryDelegatorUnbondingDelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorUnbondingDelegationsResponse() { - return { - unbondingResponses: [], - pagination: undefined - }; -} -export const QueryDelegatorUnbondingDelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.unbondingResponses) { - UnbondingDelegation.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbondingResponses?.map(e => UnbondingDelegation.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorUnbondingDelegationsResponse(); - message.unbondingResponses = object.unbonding_responses?.map(e => UnbondingDelegation.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.unbondingResponses) { - obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); - } - else { - obj.unbonding_responses = message.unbondingResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorUnbondingDelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorUnbondingDelegationsResponse", - value: QueryDelegatorUnbondingDelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorUnbondingDelegationsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorUnbondingDelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", - value: QueryDelegatorUnbondingDelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsRequest() { - return { - delegatorAddr: "", - srcValidatorAddr: "", - dstValidatorAddr: "", - pagination: undefined - }; -} -export const QueryRedelegationsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.srcValidatorAddr !== "") { - writer.uint32(18).string(message.srcValidatorAddr); - } - if (message.dstValidatorAddr !== "") { - writer.uint32(26).string(message.dstValidatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.srcValidatorAddr = reader.string(); - break; - case 3: - message.dstValidatorAddr = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryRedelegationsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.srcValidatorAddr = object.srcValidatorAddr ?? ""; - message.dstValidatorAddr = object.dstValidatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryRedelegationsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.src_validator_addr !== undefined && object.src_validator_addr !== null) { - message.srcValidatorAddr = object.src_validator_addr; - } - if (object.dst_validator_addr !== undefined && object.dst_validator_addr !== null) { - message.dstValidatorAddr = object.dst_validator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; - obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryRedelegationsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryRedelegationsRequest", - value: QueryRedelegationsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryRedelegationsRequest.decode(message.value); - }, - toProto(message) { - return QueryRedelegationsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", - value: QueryRedelegationsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryRedelegationsResponse() { - return { - redelegationResponses: [], - pagination: undefined - }; -} -export const QueryRedelegationsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.redelegationResponses) { - RedelegationResponse.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryRedelegationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegationResponses?.map(e => RedelegationResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryRedelegationsResponse(); - message.redelegationResponses = object.redelegation_responses?.map(e => RedelegationResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.redelegationResponses) { - obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined); - } - else { - obj.redelegation_responses = message.redelegationResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryRedelegationsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryRedelegationsResponse", - value: QueryRedelegationsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryRedelegationsResponse.decode(message.value); - }, - toProto(message) { - return QueryRedelegationsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", - value: QueryRedelegationsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsRequest() { - return { - delegatorAddr: "", - pagination: undefined - }; -} -export const QueryDelegatorValidatorsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorsRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", - value: QueryDelegatorValidatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorsResponse() { - return { - validators: [], - pagination: undefined - }; -} -export const QueryDelegatorValidatorsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validators) { - Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorsResponse(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorsResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", - value: QueryDelegatorValidatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorRequest() { - return { - delegatorAddr: "", - validatorAddr: "" - }; -} -export const QueryDelegatorValidatorRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddr !== "") { - writer.uint32(10).string(message.delegatorAddr); - } - if (message.validatorAddr !== "") { - writer.uint32(18).string(message.validatorAddr); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddr = reader.string(); - break; - case 2: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorRequest(); - message.delegatorAddr = object.delegatorAddr ?? ""; - message.validatorAddr = object.validatorAddr ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorRequest(); - if (object.delegator_addr !== undefined && object.delegator_addr !== null) { - message.delegatorAddr = object.delegator_addr; - } - if (object.validator_addr !== undefined && object.validator_addr !== null) { - message.validatorAddr = object.validator_addr; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; - obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorRequest", - value: QueryDelegatorValidatorRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorRequest.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", - value: QueryDelegatorValidatorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDelegatorValidatorResponse() { - return { - validator: Validator.fromPartial({}) - }; -} -export const QueryDelegatorValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDelegatorValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDelegatorValidatorResponse(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDelegatorValidatorResponse(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDelegatorValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDelegatorValidatorResponse", - value: QueryDelegatorValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDelegatorValidatorResponse.decode(message.value); - }, - toProto(message) { - return QueryDelegatorValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", - value: QueryDelegatorValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoRequest() { - return { - height: BigInt(0) - }; -} -export const QueryHistoricalInfoRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryHistoricalInfoRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryHistoricalInfoRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryHistoricalInfoRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryHistoricalInfoRequest", - value: QueryHistoricalInfoRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryHistoricalInfoRequest.decode(message.value); - }, - toProto(message) { - return QueryHistoricalInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", - value: QueryHistoricalInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryHistoricalInfoResponse() { - return { - hist: undefined - }; -} -export const QueryHistoricalInfoResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.hist !== undefined) { - HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryHistoricalInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hist = HistoricalInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryHistoricalInfoResponse(); - message.hist = object.hist !== undefined && object.hist !== null ? HistoricalInfo.fromPartial(object.hist) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryHistoricalInfoResponse(); - if (object.hist !== undefined && object.hist !== null) { - message.hist = HistoricalInfo.fromAmino(object.hist); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hist = message.hist ? HistoricalInfo.toAmino(message.hist) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryHistoricalInfoResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryHistoricalInfoResponse", - value: QueryHistoricalInfoResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryHistoricalInfoResponse.decode(message.value); - }, - toProto(message) { - return QueryHistoricalInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", - value: QueryHistoricalInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryPoolRequest() { - return {}; -} -export const QueryPoolRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryPoolRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryPoolRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryPoolRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryPoolRequest", - value: QueryPoolRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryPoolRequest.decode(message.value); - }, - toProto(message) { - return QueryPoolRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", - value: QueryPoolRequest.encode(message).finish() - }; - } -}; -function createBaseQueryPoolResponse() { - return { - pool: Pool.fromPartial({}) - }; -} -export const QueryPoolResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.pool !== undefined) { - Pool.encode(message.pool, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryPoolResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pool = Pool.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryPoolResponse(); - message.pool = object.pool !== undefined && object.pool !== null ? Pool.fromPartial(object.pool) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryPoolResponse(); - if (object.pool !== undefined && object.pool !== null) { - message.pool = Pool.fromAmino(object.pool); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pool = message.pool ? Pool.toAmino(message.pool) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryPoolResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryPoolResponse", - value: QueryPoolResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryPoolResponse.decode(message.value); - }, - toProto(message) { - return QueryPoolResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", - value: QueryPoolResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js deleted file mode 100644 index 4de9ac9a..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/query.lcd.js +++ /dev/null @@ -1,147 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - /* Validators queries all validators that match the given status. */ - async validators(params) { - const options = { - params: {} - }; - if (typeof params?.status !== "undefined") { - options.params.status = params.status; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators`; - return await this.req.get(endpoint, options); - } - /* Validator queries validator info for given validator address. */ - async validator(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* ValidatorDelegations queries delegate info for given validator. */ - async validatorDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`; - return await this.req.get(endpoint, options); - } - /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ - async validatorUnbondingDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Delegation queries delegate info for given validator delegator pair. */ - async delegation(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint); - } - /* UnbondingDelegation queries unbonding info for given validator delegator - pair. */ - async unbondingDelegation(params) { - const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`; - return await this.req.get(endpoint); - } - /* DelegatorDelegations queries all delegations of a given delegator address. */ - async delegatorDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`; - return await this.req.get(endpoint, options); - } - /* DelegatorUnbondingDelegations queries all unbonding delegations of a given - delegator address. */ - async delegatorUnbondingDelegations(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`; - return await this.req.get(endpoint, options); - } - /* Redelegations queries redelegations of given address. */ - async redelegations(params) { - const options = { - params: {} - }; - if (typeof params?.srcValidatorAddr !== "undefined") { - options.params.src_validator_addr = params.srcValidatorAddr; - } - if (typeof params?.dstValidatorAddr !== "undefined") { - options.params.dst_validator_addr = params.dstValidatorAddr; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidators queries all validators info for given delegator - address. */ - async delegatorValidators(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`; - return await this.req.get(endpoint, options); - } - /* DelegatorValidator queries validator info for given delegator validator - pair. */ - async delegatorValidator(params) { - const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`; - return await this.req.get(endpoint); - } - /* HistoricalInfo queries the historical info for given height. */ - async historicalInfo(params) { - const endpoint = `cosmos/staking/v1beta1/historical_info/${params.height}`; - return await this.req.get(endpoint); - } - /* Pool queries the pool info. */ - async pool(_params = {}) { - const endpoint = `cosmos/staking/v1beta1/pool`; - return await this.req.get(endpoint); - } - /* Parameters queries the staking parameters. */ - async params(_params = {}) { - const endpoint = `cosmos/staking/v1beta1/params`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js deleted file mode 100644 index 4a863df5..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,141 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.validators = this.validators.bind(this); - this.validator = this.validator.bind(this); - this.validatorDelegations = this.validatorDelegations.bind(this); - this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); - this.delegation = this.delegation.bind(this); - this.unbondingDelegation = this.unbondingDelegation.bind(this); - this.delegatorDelegations = this.delegatorDelegations.bind(this); - this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); - this.redelegations = this.redelegations.bind(this); - this.delegatorValidators = this.delegatorValidators.bind(this); - this.delegatorValidator = this.delegatorValidator.bind(this); - this.historicalInfo = this.historicalInfo.bind(this); - this.pool = this.pool.bind(this); - this.params = this.params.bind(this); - } - validators(request) { - const data = QueryValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); - return promise.then(data => QueryValidatorsResponse.decode(new BinaryReader(data))); - } - validator(request) { - const data = QueryValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); - return promise.then(data => QueryValidatorResponse.decode(new BinaryReader(data))); - } - validatorDelegations(request) { - const data = QueryValidatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); - return promise.then(data => QueryValidatorDelegationsResponse.decode(new BinaryReader(data))); - } - validatorUnbondingDelegations(request) { - const data = QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); - return promise.then(data => QueryValidatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); - } - delegation(request) { - const data = QueryDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); - return promise.then(data => QueryDelegationResponse.decode(new BinaryReader(data))); - } - unbondingDelegation(request) { - const data = QueryUnbondingDelegationRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); - return promise.then(data => QueryUnbondingDelegationResponse.decode(new BinaryReader(data))); - } - delegatorDelegations(request) { - const data = QueryDelegatorDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); - return promise.then(data => QueryDelegatorDelegationsResponse.decode(new BinaryReader(data))); - } - delegatorUnbondingDelegations(request) { - const data = QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); - return promise.then(data => QueryDelegatorUnbondingDelegationsResponse.decode(new BinaryReader(data))); - } - redelegations(request) { - const data = QueryRedelegationsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); - return promise.then(data => QueryRedelegationsResponse.decode(new BinaryReader(data))); - } - delegatorValidators(request) { - const data = QueryDelegatorValidatorsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); - return promise.then(data => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data))); - } - delegatorValidator(request) { - const data = QueryDelegatorValidatorRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); - return promise.then(data => QueryDelegatorValidatorResponse.decode(new BinaryReader(data))); - } - historicalInfo(request) { - const data = QueryHistoricalInfoRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); - return promise.then(data => QueryHistoricalInfoResponse.decode(new BinaryReader(data))); - } - pool(request = {}) { - const data = QueryPoolRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); - return promise.then(data => QueryPoolResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - validators(request) { - return queryService.validators(request); - }, - validator(request) { - return queryService.validator(request); - }, - validatorDelegations(request) { - return queryService.validatorDelegations(request); - }, - validatorUnbondingDelegations(request) { - return queryService.validatorUnbondingDelegations(request); - }, - delegation(request) { - return queryService.delegation(request); - }, - unbondingDelegation(request) { - return queryService.unbondingDelegation(request); - }, - delegatorDelegations(request) { - return queryService.delegatorDelegations(request); - }, - delegatorUnbondingDelegations(request) { - return queryService.delegatorUnbondingDelegations(request); - }, - redelegations(request) { - return queryService.redelegations(request); - }, - delegatorValidators(request) { - return queryService.delegatorValidators(request); - }, - delegatorValidator(request) { - return queryService.delegatorValidator(request); - }, - historicalInfo(request) { - return queryService.historicalInfo(request); - }, - pool(request) { - return queryService.pool(request); - }, - params(request) { - return queryService.params(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js b/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js deleted file mode 100644 index 1db40f88..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/staking.js +++ /dev/null @@ -1,1991 +0,0 @@ -//@ts-nocheck -import { Header } from "../../../tendermint/types/types"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Any } from "../../../google/protobuf/any"; -import { Duration } from "../../../google/protobuf/duration"; -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { Decimal } from "@cosmjs/math"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; -/** BondStatus is the status of a validator. */ -export var BondStatus; -(function (BondStatus) { - /** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */ - BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED"; - /** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */ - BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED"; - /** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */ - BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING"; - /** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */ - BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED"; - BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BondStatus || (BondStatus = {})); -export const BondStatusSDKType = BondStatus; -export const BondStatusAmino = BondStatus; -export function bondStatusFromJSON(object) { - switch (object) { - case 0: - case "BOND_STATUS_UNSPECIFIED": - return BondStatus.BOND_STATUS_UNSPECIFIED; - case 1: - case "BOND_STATUS_UNBONDED": - return BondStatus.BOND_STATUS_UNBONDED; - case 2: - case "BOND_STATUS_UNBONDING": - return BondStatus.BOND_STATUS_UNBONDING; - case 3: - case "BOND_STATUS_BONDED": - return BondStatus.BOND_STATUS_BONDED; - case -1: - case "UNRECOGNIZED": - default: - return BondStatus.UNRECOGNIZED; - } -} -export function bondStatusToJSON(object) { - switch (object) { - case BondStatus.BOND_STATUS_UNSPECIFIED: - return "BOND_STATUS_UNSPECIFIED"; - case BondStatus.BOND_STATUS_UNBONDED: - return "BOND_STATUS_UNBONDED"; - case BondStatus.BOND_STATUS_UNBONDING: - return "BOND_STATUS_UNBONDING"; - case BondStatus.BOND_STATUS_BONDED: - return "BOND_STATUS_BONDED"; - case BondStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseHistoricalInfo() { - return { - header: Header.fromPartial({}), - valset: [] - }; -} -export const HistoricalInfo = { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.valset) { - Validator.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHistoricalInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.valset.push(Validator.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHistoricalInfo(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.valset = object.valset?.map(e => Validator.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseHistoricalInfo(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - message.valset = object.valset?.map(e => Validator.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - if (message.valset) { - obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.valset = message.valset; - } - return obj; - }, - fromAminoMsg(object) { - return HistoricalInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/HistoricalInfo", - value: HistoricalInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return HistoricalInfo.decode(message.value); - }, - toProto(message) { - return HistoricalInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", - value: HistoricalInfo.encode(message).finish() - }; - } -}; -function createBaseCommissionRates() { - return { - rate: "", - maxRate: "", - maxChangeRate: "" - }; -} -export const CommissionRates = { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - encode(message, writer = BinaryWriter.create()) { - if (message.rate !== "") { - writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics); - } - if (message.maxRate !== "") { - writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics); - } - if (message.maxChangeRate !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommissionRates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 2: - message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 3: - message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommissionRates(); - message.rate = object.rate ?? ""; - message.maxRate = object.maxRate ?? ""; - message.maxChangeRate = object.maxChangeRate ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCommissionRates(); - if (object.rate !== undefined && object.rate !== null) { - message.rate = object.rate; - } - if (object.max_rate !== undefined && object.max_rate !== null) { - message.maxRate = object.max_rate; - } - if (object.max_change_rate !== undefined && object.max_change_rate !== null) { - message.maxChangeRate = object.max_change_rate; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.rate = message.rate === "" ? undefined : message.rate; - obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; - obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; - return obj; - }, - fromAminoMsg(object) { - return CommissionRates.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CommissionRates", - value: CommissionRates.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CommissionRates.decode(message.value); - }, - toProto(message) { - return CommissionRates.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.CommissionRates", - value: CommissionRates.encode(message).finish() - }; - } -}; -function createBaseCommission() { - return { - commissionRates: CommissionRates.fromPartial({}), - updateTime: new Date() - }; -} -export const Commission = { - typeUrl: "/cosmos.staking.v1beta1.Commission", - encode(message, writer = BinaryWriter.create()) { - if (message.commissionRates !== undefined) { - CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim(); - } - if (message.updateTime !== undefined) { - Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommission(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.commissionRates = CommissionRates.decode(reader, reader.uint32()); - break; - case 2: - message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommission(); - message.commissionRates = object.commissionRates !== undefined && object.commissionRates !== null ? CommissionRates.fromPartial(object.commissionRates) : undefined; - message.updateTime = object.updateTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseCommission(); - if (object.commission_rates !== undefined && object.commission_rates !== null) { - message.commissionRates = CommissionRates.fromAmino(object.commission_rates); - } - if (object.update_time !== undefined && object.update_time !== null) { - message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.commission_rates = message.commissionRates ? CommissionRates.toAmino(message.commissionRates) : undefined; - obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Commission.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Commission", - value: Commission.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Commission.decode(message.value); - }, - toProto(message) { - return Commission.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Commission", - value: Commission.encode(message).finish() - }; - } -}; -function createBaseDescription() { - return { - moniker: "", - identity: "", - website: "", - securityContact: "", - details: "" - }; -} -export const Description = { - typeUrl: "/cosmos.staking.v1beta1.Description", - encode(message, writer = BinaryWriter.create()) { - if (message.moniker !== "") { - writer.uint32(10).string(message.moniker); - } - if (message.identity !== "") { - writer.uint32(18).string(message.identity); - } - if (message.website !== "") { - writer.uint32(26).string(message.website); - } - if (message.securityContact !== "") { - writer.uint32(34).string(message.securityContact); - } - if (message.details !== "") { - writer.uint32(42).string(message.details); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescription(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moniker = reader.string(); - break; - case 2: - message.identity = reader.string(); - break; - case 3: - message.website = reader.string(); - break; - case 4: - message.securityContact = reader.string(); - break; - case 5: - message.details = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescription(); - message.moniker = object.moniker ?? ""; - message.identity = object.identity ?? ""; - message.website = object.website ?? ""; - message.securityContact = object.securityContact ?? ""; - message.details = object.details ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDescription(); - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.identity !== undefined && object.identity !== null) { - message.identity = object.identity; - } - if (object.website !== undefined && object.website !== null) { - message.website = object.website; - } - if (object.security_contact !== undefined && object.security_contact !== null) { - message.securityContact = object.security_contact; - } - if (object.details !== undefined && object.details !== null) { - message.details = object.details; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.identity = message.identity === "" ? undefined : message.identity; - obj.website = message.website === "" ? undefined : message.website; - obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; - obj.details = message.details === "" ? undefined : message.details; - return obj; - }, - fromAminoMsg(object) { - return Description.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Description", - value: Description.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Description.decode(message.value); - }, - toProto(message) { - return Description.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Description", - value: Description.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - operatorAddress: "", - consensusPubkey: undefined, - jailed: false, - status: 0, - tokens: "", - delegatorShares: "", - description: Description.fromPartial({}), - unbondingHeight: BigInt(0), - unbondingTime: new Date(), - commission: Commission.fromPartial({}), - minSelfDelegation: "" - }; -} -export const Validator = { - typeUrl: "/cosmos.staking.v1beta1.Validator", - encode(message, writer = BinaryWriter.create()) { - if (message.operatorAddress !== "") { - writer.uint32(10).string(message.operatorAddress); - } - if (message.consensusPubkey !== undefined) { - Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim(); - } - if (message.jailed === true) { - writer.uint32(24).bool(message.jailed); - } - if (message.status !== 0) { - writer.uint32(32).int32(message.status); - } - if (message.tokens !== "") { - writer.uint32(42).string(message.tokens); - } - if (message.delegatorShares !== "") { - writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics); - } - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(58).fork()).ldelim(); - } - if (message.unbondingHeight !== BigInt(0)) { - writer.uint32(64).int64(message.unbondingHeight); - } - if (message.unbondingTime !== undefined) { - Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim(); - } - if (message.commission !== undefined) { - Commission.encode(message.commission, writer.uint32(82).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(90).string(message.minSelfDelegation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operatorAddress = reader.string(); - break; - case 2: - message.consensusPubkey = Cosmos_cryptoPubKey_InterfaceDecoder(reader); - break; - case 3: - message.jailed = reader.bool(); - break; - case 4: - message.status = reader.int32(); - break; - case 5: - message.tokens = reader.string(); - break; - case 6: - message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 7: - message.description = Description.decode(reader, reader.uint32()); - break; - case 8: - message.unbondingHeight = reader.int64(); - break; - case 9: - message.unbondingTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.commission = Commission.decode(reader, reader.uint32()); - break; - case 11: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.operatorAddress = object.operatorAddress ?? ""; - message.consensusPubkey = object.consensusPubkey !== undefined && object.consensusPubkey !== null ? Any.fromPartial(object.consensusPubkey) : undefined; - message.jailed = object.jailed ?? false; - message.status = object.status ?? 0; - message.tokens = object.tokens ?? ""; - message.delegatorShares = object.delegatorShares ?? ""; - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.unbondingHeight = object.unbondingHeight !== undefined && object.unbondingHeight !== null ? BigInt(object.unbondingHeight.toString()) : BigInt(0); - message.unbondingTime = object.unbondingTime ?? undefined; - message.commission = object.commission !== undefined && object.commission !== null ? Commission.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.operator_address !== undefined && object.operator_address !== null) { - message.operatorAddress = object.operator_address; - } - if (object.consensus_pubkey !== undefined && object.consensus_pubkey !== null) { - message.consensusPubkey = encodePubkey(object.consensus_pubkey); - } - if (object.jailed !== undefined && object.jailed !== null) { - message.jailed = object.jailed; - } - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - if (object.tokens !== undefined && object.tokens !== null) { - message.tokens = object.tokens; - } - if (object.delegator_shares !== undefined && object.delegator_shares !== null) { - message.delegatorShares = object.delegator_shares; - } - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.unbonding_height !== undefined && object.unbonding_height !== null) { - message.unbondingHeight = BigInt(object.unbonding_height); - } - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = fromTimestamp(Timestamp.fromAmino(object.unbonding_time)); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = Commission.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; - obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined; - obj.jailed = message.jailed === false ? undefined : message.jailed; - obj.status = message.status === 0 ? undefined : message.status; - obj.tokens = message.tokens === "" ? undefined : message.tokens; - obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; - obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : undefined; - obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object) { - return Validator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Validator", - value: Validator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Validator.decode(message.value); - }, - toProto(message) { - return Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseValAddresses() { - return { - addresses: [] - }; -} -export const ValAddresses = { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.addresses) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValAddresses(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.addresses.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValAddresses(); - message.addresses = object.addresses?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.addresses) { - obj.addresses = message.addresses.map(e => e); - } - else { - obj.addresses = message.addresses; - } - return obj; - }, - fromAminoMsg(object) { - return ValAddresses.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ValAddresses", - value: ValAddresses.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ValAddresses.decode(message.value); - }, - toProto(message) { - return ValAddresses.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.ValAddresses", - value: ValAddresses.encode(message).finish() - }; - } -}; -function createBaseDVPair() { - return { - delegatorAddress: "", - validatorAddress: "" - }; -} -export const DVPair = { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVPair(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDVPair(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - return obj; - }, - fromAminoMsg(object) { - return DVPair.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVPair", - value: DVPair.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DVPair.decode(message.value); - }, - toProto(message) { - return DVPair.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPair", - value: DVPair.encode(message).finish() - }; - } -}; -function createBaseDVPairs() { - return { - pairs: [] - }; -} -export const DVPairs = { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.pairs) { - DVPair.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVPairs(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pairs.push(DVPair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => DVPair.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDVPairs(); - message.pairs = object.pairs?.map(e => DVPair.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pairs) { - obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined); - } - else { - obj.pairs = message.pairs; - } - return obj; - }, - fromAminoMsg(object) { - return DVPairs.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVPairs", - value: DVPairs.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DVPairs.decode(message.value); - }, - toProto(message) { - return DVPairs.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVPairs", - value: DVPairs.encode(message).finish() - }; - } -}; -function createBaseDVVTriplet() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "" - }; -} -export const DVVTriplet = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVVTriplet(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDVVTriplet(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - return obj; - }, - fromAminoMsg(object) { - return DVVTriplet.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVVTriplet", - value: DVVTriplet.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DVVTriplet.decode(message.value); - }, - toProto(message) { - return DVVTriplet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", - value: DVVTriplet.encode(message).finish() - }; - } -}; -function createBaseDVVTriplets() { - return { - triplets: [] - }; -} -export const DVVTriplets = { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.triplets) { - DVVTriplet.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDVVTriplets(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.triplets.push(DVVTriplet.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => DVVTriplet.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDVVTriplets(); - message.triplets = object.triplets?.map(e => DVVTriplet.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.triplets) { - obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined); - } - else { - obj.triplets = message.triplets; - } - return obj; - }, - fromAminoMsg(object) { - return DVVTriplets.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DVVTriplets", - value: DVVTriplets.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DVVTriplets.decode(message.value); - }, - toProto(message) { - return DVVTriplets.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", - value: DVVTriplets.encode(message).finish() - }; - } -}; -function createBaseDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - shares: "" - }; -} -export const Delegation = { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.shares !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.shares = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.shares = object.shares ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.shares !== undefined && object.shares !== null) { - message.shares = object.shares; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.shares = message.shares === "" ? undefined : message.shares; - return obj; - }, - fromAminoMsg(object) { - return Delegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Delegation", - value: Delegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Delegation.decode(message.value); - }, - toProto(message) { - return Delegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Delegation", - value: Delegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - entries: [] - }; -} -export const UnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - for (const v of message.entries) { - UnbondingDelegationEntry.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - message.entries = object.entries?.map(e => UnbondingDelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return UnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UnbondingDelegation", - value: UnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return UnbondingDelegation.decode(message.value); - }, - toProto(message) { - return UnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", - value: UnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseUnbondingDelegationEntry() { - return { - creationHeight: BigInt(0), - completionTime: new Date(), - initialBalance: "", - balance: "" - }; -} -export const UnbondingDelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - encode(message, writer = BinaryWriter.create()) { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUnbondingDelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUnbondingDelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime ?? undefined; - message.initialBalance = object.initialBalance ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseUnbondingDelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return UnbondingDelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UnbondingDelegationEntry", - value: UnbondingDelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message) { - return UnbondingDelegationEntry.decode(message.value); - }, - toProto(message) { - return UnbondingDelegationEntry.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", - value: UnbondingDelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntry() { - return { - creationHeight: BigInt(0), - completionTime: new Date(), - initialBalance: "", - sharesDst: "" - }; -} -export const RedelegationEntry = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - encode(message, writer = BinaryWriter.create()) { - if (message.creationHeight !== BigInt(0)) { - writer.uint32(8).int64(message.creationHeight); - } - if (message.completionTime !== undefined) { - Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim(); - } - if (message.initialBalance !== "") { - writer.uint32(26).string(message.initialBalance); - } - if (message.sharesDst !== "") { - writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creationHeight = reader.int64(); - break; - case 2: - message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.initialBalance = reader.string(); - break; - case 4: - message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationEntry(); - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - message.completionTime = object.completionTime ?? undefined; - message.initialBalance = object.initialBalance ?? ""; - message.sharesDst = object.sharesDst ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationEntry(); - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); - } - if (object.initial_balance !== undefined && object.initial_balance !== null) { - message.initialBalance = object.initial_balance; - } - if (object.shares_dst !== undefined && object.shares_dst !== null) { - message.sharesDst = object.shares_dst; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; - obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; - return obj; - }, - fromAminoMsg(object) { - return RedelegationEntry.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationEntry", - value: RedelegationEntry.toAmino(message) - }; - }, - fromProtoMsg(message) { - return RedelegationEntry.decode(message.value); - }, - toProto(message) { - return RedelegationEntry.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", - value: RedelegationEntry.encode(message).finish() - }; - } -}; -function createBaseRedelegation() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - entries: [] - }; -} -export const Redelegation = { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - for (const v of message.entries) { - RedelegationEntry.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.entries.push(RedelegationEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.entries = object.entries?.map(e => RedelegationEntry.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - message.entries = object.entries?.map(e => RedelegationEntry.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return Redelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Redelegation", - value: Redelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Redelegation.decode(message.value); - }, - toProto(message) { - return Redelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Redelegation", - value: Redelegation.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - unbondingTime: Duration.fromPartial({}), - maxValidators: 0, - maxEntries: 0, - historicalEntries: 0, - bondDenom: "", - minCommissionRate: "" - }; -} -export const Params = { - typeUrl: "/cosmos.staking.v1beta1.Params", - encode(message, writer = BinaryWriter.create()) { - if (message.unbondingTime !== undefined) { - Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim(); - } - if (message.maxValidators !== 0) { - writer.uint32(16).uint32(message.maxValidators); - } - if (message.maxEntries !== 0) { - writer.uint32(24).uint32(message.maxEntries); - } - if (message.historicalEntries !== 0) { - writer.uint32(32).uint32(message.historicalEntries); - } - if (message.bondDenom !== "") { - writer.uint32(42).string(message.bondDenom); - } - if (message.minCommissionRate !== "") { - writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.unbondingTime = Duration.decode(reader, reader.uint32()); - break; - case 2: - message.maxValidators = reader.uint32(); - break; - case 3: - message.maxEntries = reader.uint32(); - break; - case 4: - message.historicalEntries = reader.uint32(); - break; - case 5: - message.bondDenom = reader.string(); - break; - case 6: - message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.unbondingTime = object.unbondingTime !== undefined && object.unbondingTime !== null ? Duration.fromPartial(object.unbondingTime) : undefined; - message.maxValidators = object.maxValidators ?? 0; - message.maxEntries = object.maxEntries ?? 0; - message.historicalEntries = object.historicalEntries ?? 0; - message.bondDenom = object.bondDenom ?? ""; - message.minCommissionRate = object.minCommissionRate ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.unbonding_time !== undefined && object.unbonding_time !== null) { - message.unbondingTime = Duration.fromAmino(object.unbonding_time); - } - if (object.max_validators !== undefined && object.max_validators !== null) { - message.maxValidators = object.max_validators; - } - if (object.max_entries !== undefined && object.max_entries !== null) { - message.maxEntries = object.max_entries; - } - if (object.historical_entries !== undefined && object.historical_entries !== null) { - message.historicalEntries = object.historical_entries; - } - if (object.bond_denom !== undefined && object.bond_denom !== null) { - message.bondDenom = object.bond_denom; - } - if (object.min_commission_rate !== undefined && object.min_commission_rate !== null) { - message.minCommissionRate = object.min_commission_rate; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined; - obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; - obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; - obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; - obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; - obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseDelegationResponse() { - return { - delegation: Delegation.fromPartial({}), - balance: Coin.fromPartial({}) - }; -} -export const DelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.delegation !== undefined) { - Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== undefined) { - Coin.encode(message.balance, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegation = Delegation.decode(reader, reader.uint32()); - break; - case 2: - message.balance = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelegationResponse(); - message.delegation = object.delegation !== undefined && object.delegation !== null ? Delegation.fromPartial(object.delegation) : undefined; - message.balance = object.balance !== undefined && object.balance !== null ? Coin.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelegationResponse(); - if (object.delegation !== undefined && object.delegation !== null) { - message.delegation = Delegation.fromAmino(object.delegation); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = Coin.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegation = message.delegation ? Delegation.toAmino(message.delegation) : undefined; - obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelegationResponse", - value: DelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelegationResponse.decode(message.value); - }, - toProto(message) { - return DelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", - value: DelegationResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationEntryResponse() { - return { - redelegationEntry: RedelegationEntry.fromPartial({}), - balance: "" - }; -} -export const RedelegationEntryResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.redelegationEntry !== undefined) { - RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim(); - } - if (message.balance !== "") { - writer.uint32(34).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationEntryResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32()); - break; - case 4: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationEntryResponse(); - message.redelegationEntry = object.redelegationEntry !== undefined && object.redelegationEntry !== null ? RedelegationEntry.fromPartial(object.redelegationEntry) : undefined; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationEntryResponse(); - if (object.redelegation_entry !== undefined && object.redelegation_entry !== null) { - message.redelegationEntry = RedelegationEntry.fromAmino(object.redelegation_entry); - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return RedelegationEntryResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationEntryResponse", - value: RedelegationEntryResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return RedelegationEntryResponse.decode(message.value); - }, - toProto(message) { - return RedelegationEntryResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", - value: RedelegationEntryResponse.encode(message).finish() - }; - } -}; -function createBaseRedelegationResponse() { - return { - redelegation: Redelegation.fromPartial({}), - entries: [] - }; -} -export const RedelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.redelegation !== undefined) { - Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.entries) { - RedelegationEntryResponse.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRedelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.redelegation = Redelegation.decode(reader, reader.uint32()); - break; - case 2: - message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRedelegationResponse(); - message.redelegation = object.redelegation !== undefined && object.redelegation !== null ? Redelegation.fromPartial(object.redelegation) : undefined; - message.entries = object.entries?.map(e => RedelegationEntryResponse.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRedelegationResponse(); - if (object.redelegation !== undefined && object.redelegation !== null) { - message.redelegation = Redelegation.fromAmino(object.redelegation); - } - message.entries = object.entries?.map(e => RedelegationEntryResponse.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.redelegation = message.redelegation ? Redelegation.toAmino(message.redelegation) : undefined; - if (message.entries) { - obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined); - } - else { - obj.entries = message.entries; - } - return obj; - }, - fromAminoMsg(object) { - return RedelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/RedelegationResponse", - value: RedelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return RedelegationResponse.decode(message.value); - }, - toProto(message) { - return RedelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", - value: RedelegationResponse.encode(message).finish() - }; - } -}; -function createBasePool() { - return { - notBondedTokens: "", - bondedTokens: "" - }; -} -export const Pool = { - typeUrl: "/cosmos.staking.v1beta1.Pool", - encode(message, writer = BinaryWriter.create()) { - if (message.notBondedTokens !== "") { - writer.uint32(10).string(message.notBondedTokens); - } - if (message.bondedTokens !== "") { - writer.uint32(18).string(message.bondedTokens); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePool(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.notBondedTokens = reader.string(); - break; - case 2: - message.bondedTokens = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePool(); - message.notBondedTokens = object.notBondedTokens ?? ""; - message.bondedTokens = object.bondedTokens ?? ""; - return message; - }, - fromAmino(object) { - const message = createBasePool(); - if (object.not_bonded_tokens !== undefined && object.not_bonded_tokens !== null) { - message.notBondedTokens = object.not_bonded_tokens; - } - if (object.bonded_tokens !== undefined && object.bonded_tokens !== null) { - message.bondedTokens = object.bonded_tokens; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.not_bonded_tokens = message.notBondedTokens ?? ""; - obj.bonded_tokens = message.bondedTokens ?? ""; - return obj; - }, - fromAminoMsg(object) { - return Pool.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Pool", - value: Pool.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Pool.decode(message.value); - }, - toProto(message) { - return Pool.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.Pool", - value: Pool.encode(message).finish() - }; - } -}; -export const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Cosmos_cryptoPubKey_FromAmino = (content) => { - return encodePubkey(content); -}; -export const Cosmos_cryptoPubKey_ToAmino = (content) => { - return decodePubkey(content); -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js deleted file mode 100644 index 58438164..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.amino.js +++ /dev/null @@ -1,34 +0,0 @@ -//@ts-nocheck -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export const AminoConverter = { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: "cosmos-sdk/MsgCreateValidator", - toAmino: MsgCreateValidator.toAmino, - fromAmino: MsgCreateValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgEditValidator": { - aminoType: "cosmos-sdk/MsgEditValidator", - toAmino: MsgEditValidator.toAmino, - fromAmino: MsgEditValidator.fromAmino - }, - "/cosmos.staking.v1beta1.MsgDelegate": { - aminoType: "cosmos-sdk/MsgDelegate", - toAmino: MsgDelegate.toAmino, - fromAmino: MsgDelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgBeginRedelegate": { - aminoType: "cosmos-sdk/MsgBeginRedelegate", - toAmino: MsgBeginRedelegate.toAmino, - fromAmino: MsgBeginRedelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgUndelegate": { - aminoType: "cosmos-sdk/MsgUndelegate", - toAmino: MsgUndelegate.toAmino, - fromAmino: MsgUndelegate.fromAmino - }, - "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": { - aminoType: "cosmos-sdk/MsgCancelUnbondingDelegation", - toAmino: MsgCancelUnbondingDelegation.toAmino, - fromAmino: MsgCancelUnbondingDelegation.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js deleted file mode 100644 index 2f829fc4..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.js +++ /dev/null @@ -1,1027 +0,0 @@ -//@ts-nocheck -import { Description, CommissionRates } from "./staking"; -import { Any } from "../../../google/protobuf/any"; -import { Coin } from "../../base/v1beta1/coin"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; -import { Decimal } from "@cosmjs/math"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseMsgCreateValidator() { - return { - description: Description.fromPartial({}), - commission: CommissionRates.fromPartial({}), - minSelfDelegation: "", - delegatorAddress: "", - validatorAddress: "", - pubkey: undefined, - value: Coin.fromPartial({}) - }; -} -export const MsgCreateValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - encode(message, writer = BinaryWriter.create()) { - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.commission !== undefined) { - CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim(); - } - if (message.minSelfDelegation !== "") { - writer.uint32(26).string(message.minSelfDelegation); - } - if (message.delegatorAddress !== "") { - writer.uint32(34).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(42).string(message.validatorAddress); - } - if (message.pubkey !== undefined) { - Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim(); - } - if (message.value !== undefined) { - Coin.encode(message.value, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = Description.decode(reader, reader.uint32()); - break; - case 2: - message.commission = CommissionRates.decode(reader, reader.uint32()); - break; - case 3: - message.minSelfDelegation = reader.string(); - break; - case 4: - message.delegatorAddress = reader.string(); - break; - case 5: - message.validatorAddress = reader.string(); - break; - case 6: - message.pubkey = Cosmos_cryptoPubKey_InterfaceDecoder(reader); - break; - case 7: - message.value = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateValidator(); - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? Any.fromPartial(object.pubkey) : undefined; - message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.commission !== undefined && object.commission !== null) { - message.commission = CommissionRates.fromAmino(object.commission); - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.pubkey !== undefined && object.pubkey !== null) { - message.pubkey = encodePubkey(object.pubkey); - } - if (object.value !== undefined && object.value !== null) { - message.value = Coin.fromAmino(object.value); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined; - obj.value = message.value ? Coin.toAmino(message.value) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateValidator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateValidator", - value: MsgCreateValidator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateValidator.decode(message.value); - }, - toProto(message) { - return MsgCreateValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.encode(message).finish() - }; - } -}; -function createBaseMsgCreateValidatorResponse() { - return {}; -} -export const MsgCreateValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateValidatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateValidatorResponse", - value: MsgCreateValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateValidatorResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", - value: MsgCreateValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidator() { - return { - description: Description.fromPartial({}), - validatorAddress: "", - commissionRate: "", - minSelfDelegation: "" - }; -} -export const MsgEditValidator = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - encode(message, writer = BinaryWriter.create()) { - if (message.description !== undefined) { - Description.encode(message.description, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.commissionRate !== "") { - writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics); - } - if (message.minSelfDelegation !== "") { - writer.uint32(34).string(message.minSelfDelegation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = Description.decode(reader, reader.uint32()); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString(); - break; - case 4: - message.minSelfDelegation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgEditValidator(); - message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined; - message.validatorAddress = object.validatorAddress ?? ""; - message.commissionRate = object.commissionRate ?? ""; - message.minSelfDelegation = object.minSelfDelegation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgEditValidator(); - if (object.description !== undefined && object.description !== null) { - message.description = Description.fromAmino(object.description); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.commission_rate !== undefined && object.commission_rate !== null) { - message.commissionRate = object.commission_rate; - } - if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) { - message.minSelfDelegation = object.min_self_delegation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; - obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; - return obj; - }, - fromAminoMsg(object) { - return MsgEditValidator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgEditValidator", - value: MsgEditValidator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgEditValidator.decode(message.value); - }, - toProto(message) { - return MsgEditValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.encode(message).finish() - }; - } -}; -function createBaseMsgEditValidatorResponse() { - return {}; -} -export const MsgEditValidatorResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgEditValidatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgEditValidatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgEditValidatorResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgEditValidatorResponse", - value: MsgEditValidatorResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgEditValidatorResponse.decode(message.value); - }, - toProto(message) { - return MsgEditValidatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", - value: MsgEditValidatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDelegate() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgDelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgDelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDelegate", - value: MsgDelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDelegate.decode(message.value); - }, - toProto(message) { - return MsgDelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.encode(message).finish() - }; - } -}; -function createBaseMsgDelegateResponse() { - return {}; -} -export const MsgDelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgDelegateResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgDelegateResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgDelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgDelegateResponse", - value: MsgDelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDelegateResponse.decode(message.value); - }, - toProto(message) { - return MsgDelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", - value: MsgDelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegate() { - return { - delegatorAddress: "", - validatorSrcAddress: "", - validatorDstAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgBeginRedelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorSrcAddress !== "") { - writer.uint32(18).string(message.validatorSrcAddress); - } - if (message.validatorDstAddress !== "") { - writer.uint32(26).string(message.validatorDstAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorSrcAddress = reader.string(); - break; - case 3: - message.validatorDstAddress = reader.string(); - break; - case 4: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBeginRedelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorSrcAddress = object.validatorSrcAddress ?? ""; - message.validatorDstAddress = object.validatorDstAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBeginRedelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_src_address !== undefined && object.validator_src_address !== null) { - message.validatorSrcAddress = object.validator_src_address; - } - if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) { - message.validatorDstAddress = object.validator_dst_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgBeginRedelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgBeginRedelegate", - value: MsgBeginRedelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgBeginRedelegate.decode(message.value); - }, - toProto(message) { - return MsgBeginRedelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.encode(message).finish() - }; - } -}; -function createBaseMsgBeginRedelegateResponse() { - return { - completionTime: new Date() - }; -} -export const MsgBeginRedelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.completionTime !== undefined) { - Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBeginRedelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBeginRedelegateResponse(); - message.completionTime = object.completionTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBeginRedelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgBeginRedelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgBeginRedelegateResponse", - value: MsgBeginRedelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgBeginRedelegateResponse.decode(message.value); - }, - toProto(message) { - return MsgBeginRedelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", - value: MsgBeginRedelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegate() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}) - }; -} -export const MsgUndelegate = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUndelegate(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUndelegate(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUndelegate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUndelegate", - value: MsgUndelegate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUndelegate.decode(message.value); - }, - toProto(message) { - return MsgUndelegate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.encode(message).finish() - }; - } -}; -function createBaseMsgUndelegateResponse() { - return { - completionTime: new Date() - }; -} -export const MsgUndelegateResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.completionTime !== undefined) { - Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUndelegateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUndelegateResponse(); - message.completionTime = object.completionTime ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUndelegateResponse(); - if (object.completion_time !== undefined && object.completion_time !== null) { - message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUndelegateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUndelegateResponse", - value: MsgUndelegateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUndelegateResponse.decode(message.value); - }, - toProto(message) { - return MsgUndelegateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", - value: MsgUndelegateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegation() { - return { - delegatorAddress: "", - validatorAddress: "", - amount: Coin.fromPartial({}), - creationHeight: BigInt(0) - }; -} -export const MsgCancelUnbondingDelegation = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - encode(message, writer = BinaryWriter.create()) { - if (message.delegatorAddress !== "") { - writer.uint32(10).string(message.delegatorAddress); - } - if (message.validatorAddress !== "") { - writer.uint32(18).string(message.validatorAddress); - } - if (message.amount !== undefined) { - Coin.encode(message.amount, writer.uint32(26).fork()).ldelim(); - } - if (message.creationHeight !== BigInt(0)) { - writer.uint32(32).int64(message.creationHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.delegatorAddress = reader.string(); - break; - case 2: - message.validatorAddress = reader.string(); - break; - case 3: - message.amount = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.creationHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelUnbondingDelegation(); - message.delegatorAddress = object.delegatorAddress ?? ""; - message.validatorAddress = object.validatorAddress ?? ""; - message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined; - message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelUnbondingDelegation(); - if (object.delegator_address !== undefined && object.delegator_address !== null) { - message.delegatorAddress = object.delegator_address; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = object.validator_address; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = Coin.fromAmino(object.amount); - } - if (object.creation_height !== undefined && object.creation_height !== null) { - message.creationHeight = BigInt(object.creation_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; - obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; - obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; - obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelUnbondingDelegation.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancelUnbondingDelegation.decode(message.value); - }, - toProto(message) { - return MsgCancelUnbondingDelegation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUnbondingDelegationResponse() { - return {}; -} -export const MsgCancelUnbondingDelegationResponse = { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUnbondingDelegationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelUnbondingDelegationResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelUnbondingDelegationResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse", - value: MsgCancelUnbondingDelegationResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancelUnbondingDelegationResponse.decode(message.value); - }, - toProto(message) { - return MsgCancelUnbondingDelegationResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", - value: MsgCancelUnbondingDelegationResponse.encode(message).finish() - }; - } -}; -export const Cosmos_cryptoPubKey_InterfaceDecoder = (input) => { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const data = Any.decode(reader, reader.uint32()); - switch (data.typeUrl) { - default: - return data; - } -}; -export const Cosmos_cryptoPubKey_FromAmino = (content) => { - return encodePubkey(content); -}; -export const Cosmos_cryptoPubKey_ToAmino = (content) => { - return decodePubkey(content); -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js deleted file mode 100644 index 8681a809..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.registry.js +++ /dev/null @@ -1,123 +0,0 @@ -import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation } from "./tx"; -export const registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.encode(value).finish() - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.encode(value).finish() - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.encode(value).finish() - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.encode(value).finish() - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.encode(value).finish() - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.encode(value).finish() - }; - } - }, - withTypeUrl: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value - }; - } - }, - fromPartial: { - createValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", - value: MsgCreateValidator.fromPartial(value) - }; - }, - editValidator(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", - value: MsgEditValidator.fromPartial(value) - }; - }, - delegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", - value: MsgDelegate.fromPartial(value) - }; - }, - beginRedelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", - value: MsgBeginRedelegate.fromPartial(value) - }; - }, - undelegate(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", - value: MsgUndelegate.fromPartial(value) - }; - }, - cancelUnbondingDelegation(value) { - return { - typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", - value: MsgCancelUnbondingDelegation.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js deleted file mode 100644 index da994263..00000000 --- a/packages/api/dist/esm/cosmos/staking/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,44 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createValidator = this.createValidator.bind(this); - this.editValidator = this.editValidator.bind(this); - this.delegate = this.delegate.bind(this); - this.beginRedelegate = this.beginRedelegate.bind(this); - this.undelegate = this.undelegate.bind(this); - this.cancelUnbondingDelegation = this.cancelUnbondingDelegation.bind(this); - } - createValidator(request) { - const data = MsgCreateValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); - return promise.then(data => MsgCreateValidatorResponse.decode(new BinaryReader(data))); - } - editValidator(request) { - const data = MsgEditValidator.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); - return promise.then(data => MsgEditValidatorResponse.decode(new BinaryReader(data))); - } - delegate(request) { - const data = MsgDelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); - return promise.then(data => MsgDelegateResponse.decode(new BinaryReader(data))); - } - beginRedelegate(request) { - const data = MsgBeginRedelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); - return promise.then(data => MsgBeginRedelegateResponse.decode(new BinaryReader(data))); - } - undelegate(request) { - const data = MsgUndelegate.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); - return promise.then(data => MsgUndelegateResponse.decode(new BinaryReader(data))); - } - cancelUnbondingDelegation(request) { - const data = MsgCancelUnbondingDelegation.encode(request).finish(); - const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data); - return promise.then(data => MsgCancelUnbondingDelegationResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js b/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js deleted file mode 100644 index a3dbed35..00000000 --- a/packages/api/dist/esm/cosmos/tx/signing/v1beta1/signing.js +++ /dev/null @@ -1,520 +0,0 @@ -//@ts-nocheck -import { CompactBitArray } from "../../../crypto/multisig/v1beta1/multisig"; -import { Any } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - */ -export var SignMode; -(function (SignMode) { - /** - * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - */ - SignMode[SignMode["SIGN_MODE_UNSPECIFIED"] = 0] = "SIGN_MODE_UNSPECIFIED"; - /** - * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - */ - SignMode[SignMode["SIGN_MODE_DIRECT"] = 1] = "SIGN_MODE_DIRECT"; - /** - * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. - */ - SignMode[SignMode["SIGN_MODE_TEXTUAL"] = 2] = "SIGN_MODE_TEXTUAL"; - /** - * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. - * - * Since: cosmos-sdk 0.46 - */ - SignMode[SignMode["SIGN_MODE_DIRECT_AUX"] = 3] = "SIGN_MODE_DIRECT_AUX"; - /** - * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - */ - SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON"; - /** - * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - */ - SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191"; - SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(SignMode || (SignMode = {})); -export const SignModeSDKType = SignMode; -export const SignModeAmino = SignMode; -export function signModeFromJSON(object) { - switch (object) { - case 0: - case "SIGN_MODE_UNSPECIFIED": - return SignMode.SIGN_MODE_UNSPECIFIED; - case 1: - case "SIGN_MODE_DIRECT": - return SignMode.SIGN_MODE_DIRECT; - case 2: - case "SIGN_MODE_TEXTUAL": - return SignMode.SIGN_MODE_TEXTUAL; - case 3: - case "SIGN_MODE_DIRECT_AUX": - return SignMode.SIGN_MODE_DIRECT_AUX; - case 127: - case "SIGN_MODE_LEGACY_AMINO_JSON": - return SignMode.SIGN_MODE_LEGACY_AMINO_JSON; - case 191: - case "SIGN_MODE_EIP_191": - return SignMode.SIGN_MODE_EIP_191; - case -1: - case "UNRECOGNIZED": - default: - return SignMode.UNRECOGNIZED; - } -} -export function signModeToJSON(object) { - switch (object) { - case SignMode.SIGN_MODE_UNSPECIFIED: - return "SIGN_MODE_UNSPECIFIED"; - case SignMode.SIGN_MODE_DIRECT: - return "SIGN_MODE_DIRECT"; - case SignMode.SIGN_MODE_TEXTUAL: - return "SIGN_MODE_TEXTUAL"; - case SignMode.SIGN_MODE_DIRECT_AUX: - return "SIGN_MODE_DIRECT_AUX"; - case SignMode.SIGN_MODE_LEGACY_AMINO_JSON: - return "SIGN_MODE_LEGACY_AMINO_JSON"; - case SignMode.SIGN_MODE_EIP_191: - return "SIGN_MODE_EIP_191"; - case SignMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseSignatureDescriptors() { - return { - signatures: [] - }; -} -export const SignatureDescriptors = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.signatures) { - SignatureDescriptor.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptors(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signatures.push(SignatureDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => SignatureDescriptor.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptors(); - message.signatures = object.signatures?.map(e => SignatureDescriptor.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return SignatureDescriptors.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignatureDescriptors", - value: SignatureDescriptors.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignatureDescriptors.decode(message.value); - }, - toProto(message) { - return SignatureDescriptors.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors", - value: SignatureDescriptors.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor() { - return { - publicKey: undefined, - data: undefined, - sequence: BigInt(0) - }; -} -export const SignatureDescriptor = { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 2: - message.data = SignatureDescriptor_Data.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.data = object.data !== undefined && object.data !== null ? SignatureDescriptor_Data.fromPartial(object.data) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.data !== undefined && object.data !== null) { - message.data = SignatureDescriptor_Data.fromAmino(object.data); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.data = message.data ? SignatureDescriptor_Data.toAmino(message.data) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignatureDescriptor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignatureDescriptor", - value: SignatureDescriptor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignatureDescriptor.decode(message.value); - }, - toProto(message) { - return SignatureDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor", - value: SignatureDescriptor.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data() { - return { - single: undefined, - multi: undefined - }; -} -export const SignatureDescriptor_Data = { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - encode(message, writer = BinaryWriter.create()) { - if (message.single !== undefined) { - SignatureDescriptor_Data_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - SignatureDescriptor_Data_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = SignatureDescriptor_Data_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = SignatureDescriptor_Data_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data(); - message.single = object.single !== undefined && object.single !== null ? SignatureDescriptor_Data_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? SignatureDescriptor_Data_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data(); - if (object.single !== undefined && object.single !== null) { - message.single = SignatureDescriptor_Data_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = SignatureDescriptor_Data_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.single = message.single ? SignatureDescriptor_Data_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? SignatureDescriptor_Data_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignatureDescriptor_Data.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Data", - value: SignatureDescriptor_Data.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignatureDescriptor_Data.decode(message.value); - }, - toProto(message) { - return SignatureDescriptor_Data.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Data", - value: SignatureDescriptor_Data.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Single() { - return { - mode: 0, - signature: new Uint8Array() - }; -} -export const SignatureDescriptor_Data_Single = { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - encode(message, writer = BinaryWriter.create()) { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - if (message.signature.length !== 0) { - writer.uint32(18).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - case 2: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data_Single(); - message.mode = object.mode ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignatureDescriptor_Data_Single.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Single", - value: SignatureDescriptor_Data_Single.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignatureDescriptor_Data_Single.decode(message.value); - }, - toProto(message) { - return SignatureDescriptor_Data_Single.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Single", - value: SignatureDescriptor_Data_Single.encode(message).finish() - }; - } -}; -function createBaseSignatureDescriptor_Data_Multi() { - return { - bitarray: undefined, - signatures: [] - }; -} -export const SignatureDescriptor_Data_Multi = { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - encode(message, writer = BinaryWriter.create()) { - if (message.bitarray !== undefined) { - CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.signatures) { - SignatureDescriptor_Data.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignatureDescriptor_Data_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.signatures.push(SignatureDescriptor_Data.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignatureDescriptor_Data_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; - message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSignatureDescriptor_Data_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = CompactBitArray.fromAmino(object.bitarray); - } - message.signatures = object.signatures?.map(e => SignatureDescriptor_Data.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return SignatureDescriptor_Data_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: SignatureDescriptor_Data_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignatureDescriptor_Data_Multi.decode(message.value); - }, - toProto(message) { - return SignatureDescriptor_Data_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.signing.v1beta1.Multi", - value: SignatureDescriptor_Data_Multi.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.js deleted file mode 100644 index 0902bea0..00000000 --- a/packages/api/dist/esm/cosmos/tx/v1beta1/service.js +++ /dev/null @@ -1,992 +0,0 @@ -//@ts-nocheck -import { Tx } from "./tx"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; -import { TxResponse, GasInfo, Result } from "../../base/abci/v1beta1/abci"; -import { BlockID } from "../../../tendermint/types/types"; -import { Block } from "../../../tendermint/types/block"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** OrderBy defines the sorting order */ -export var OrderBy; -(function (OrderBy) { - /** ORDER_BY_UNSPECIFIED - ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. */ - OrderBy[OrderBy["ORDER_BY_UNSPECIFIED"] = 0] = "ORDER_BY_UNSPECIFIED"; - /** ORDER_BY_ASC - ORDER_BY_ASC defines ascending order */ - OrderBy[OrderBy["ORDER_BY_ASC"] = 1] = "ORDER_BY_ASC"; - /** ORDER_BY_DESC - ORDER_BY_DESC defines descending order */ - OrderBy[OrderBy["ORDER_BY_DESC"] = 2] = "ORDER_BY_DESC"; - OrderBy[OrderBy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(OrderBy || (OrderBy = {})); -export const OrderBySDKType = OrderBy; -export const OrderByAmino = OrderBy; -export function orderByFromJSON(object) { - switch (object) { - case 0: - case "ORDER_BY_UNSPECIFIED": - return OrderBy.ORDER_BY_UNSPECIFIED; - case 1: - case "ORDER_BY_ASC": - return OrderBy.ORDER_BY_ASC; - case 2: - case "ORDER_BY_DESC": - return OrderBy.ORDER_BY_DESC; - case -1: - case "UNRECOGNIZED": - default: - return OrderBy.UNRECOGNIZED; - } -} -export function orderByToJSON(object) { - switch (object) { - case OrderBy.ORDER_BY_UNSPECIFIED: - return "ORDER_BY_UNSPECIFIED"; - case OrderBy.ORDER_BY_ASC: - return "ORDER_BY_ASC"; - case OrderBy.ORDER_BY_DESC: - return "ORDER_BY_DESC"; - case OrderBy.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. */ -export var BroadcastMode; -(function (BroadcastMode) { - /** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_UNSPECIFIED"] = 0] = "BROADCAST_MODE_UNSPECIFIED"; - /** - * BROADCAST_MODE_BLOCK - BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_BLOCK"] = 1] = "BROADCAST_MODE_BLOCK"; - /** - * BROADCAST_MODE_SYNC - BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_SYNC"] = 2] = "BROADCAST_MODE_SYNC"; - /** - * BROADCAST_MODE_ASYNC - BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - */ - BroadcastMode[BroadcastMode["BROADCAST_MODE_ASYNC"] = 3] = "BROADCAST_MODE_ASYNC"; - BroadcastMode[BroadcastMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BroadcastMode || (BroadcastMode = {})); -export const BroadcastModeSDKType = BroadcastMode; -export const BroadcastModeAmino = BroadcastMode; -export function broadcastModeFromJSON(object) { - switch (object) { - case 0: - case "BROADCAST_MODE_UNSPECIFIED": - return BroadcastMode.BROADCAST_MODE_UNSPECIFIED; - case 1: - case "BROADCAST_MODE_BLOCK": - return BroadcastMode.BROADCAST_MODE_BLOCK; - case 2: - case "BROADCAST_MODE_SYNC": - return BroadcastMode.BROADCAST_MODE_SYNC; - case 3: - case "BROADCAST_MODE_ASYNC": - return BroadcastMode.BROADCAST_MODE_ASYNC; - case -1: - case "UNRECOGNIZED": - default: - return BroadcastMode.UNRECOGNIZED; - } -} -export function broadcastModeToJSON(object) { - switch (object) { - case BroadcastMode.BROADCAST_MODE_UNSPECIFIED: - return "BROADCAST_MODE_UNSPECIFIED"; - case BroadcastMode.BROADCAST_MODE_BLOCK: - return "BROADCAST_MODE_BLOCK"; - case BroadcastMode.BROADCAST_MODE_SYNC: - return "BROADCAST_MODE_SYNC"; - case BroadcastMode.BROADCAST_MODE_ASYNC: - return "BROADCAST_MODE_ASYNC"; - case BroadcastMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseGetTxsEventRequest() { - return { - events: [], - pagination: undefined, - orderBy: 0, - page: BigInt(0), - limit: BigInt(0) - }; -} -export const GetTxsEventRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.events) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - if (message.orderBy !== 0) { - writer.uint32(24).int32(message.orderBy); - } - if (message.page !== BigInt(0)) { - writer.uint32(32).uint64(message.page); - } - if (message.limit !== BigInt(0)) { - writer.uint32(40).uint64(message.limit); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(reader.string()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - case 3: - message.orderBy = reader.int32(); - break; - case 4: - message.page = reader.uint64(); - break; - case 5: - message.limit = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - message.orderBy = object.orderBy ?? 0; - message.page = object.page !== undefined && object.page !== null ? BigInt(object.page.toString()) : BigInt(0); - message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGetTxsEventRequest(); - message.events = object.events?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - if (object.order_by !== undefined && object.order_by !== null) { - message.orderBy = object.order_by; - } - if (object.page !== undefined && object.page !== null) { - message.page = BigInt(object.page); - } - if (object.limit !== undefined && object.limit !== null) { - message.limit = BigInt(object.limit); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map(e => e); - } - else { - obj.events = message.events; - } - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; - obj.page = message.page !== BigInt(0) ? message.page.toString() : undefined; - obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetTxsEventRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxsEventRequest", - value: GetTxsEventRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxsEventRequest.decode(message.value); - }, - toProto(message) { - return GetTxsEventRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", - value: GetTxsEventRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxsEventResponse() { - return { - txs: [], - txResponses: [], - pagination: undefined, - total: BigInt(0) - }; -} -export const GetTxsEventResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.txs) { - Tx.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.txResponses) { - TxResponse.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - if (message.total !== BigInt(0)) { - writer.uint32(32).uint64(message.total); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxsEventResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(Tx.decode(reader, reader.uint32())); - break; - case 2: - message.txResponses.push(TxResponse.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 4: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; - message.txResponses = object.txResponses?.map(e => TxResponse.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGetTxsEventResponse(); - message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; - message.txResponses = object.tx_responses?.map(e => TxResponse.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - if (message.txResponses) { - obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined); - } - else { - obj.tx_responses = message.txResponses; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetTxsEventResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxsEventResponse", - value: GetTxsEventResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxsEventResponse.decode(message.value); - }, - toProto(message) { - return GetTxsEventResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", - value: GetTxsEventResponse.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxRequest() { - return { - txBytes: new Uint8Array(), - mode: 0 - }; -} -export const BroadcastTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.txBytes.length !== 0) { - writer.uint32(10).bytes(message.txBytes); - } - if (message.mode !== 0) { - writer.uint32(16).int32(message.mode); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txBytes = reader.bytes(); - break; - case 2: - message.mode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBroadcastTxRequest(); - message.txBytes = object.txBytes ?? new Uint8Array(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBroadcastTxRequest(); - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = bytesFromBase64(object.tx_bytes); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object) { - return BroadcastTxRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BroadcastTxRequest", - value: BroadcastTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BroadcastTxRequest.decode(message.value); - }, - toProto(message) { - return BroadcastTxRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", - value: BroadcastTxRequest.encode(message).finish() - }; - } -}; -function createBaseBroadcastTxResponse() { - return { - txResponse: undefined - }; -} -export const BroadcastTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.txResponse !== undefined) { - TxResponse.encode(message.txResponse, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBroadcastTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txResponse = TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBroadcastTxResponse(); - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBroadcastTxResponse(); - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BroadcastTxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BroadcastTxResponse", - value: BroadcastTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BroadcastTxResponse.decode(message.value); - }, - toProto(message) { - return BroadcastTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", - value: BroadcastTxResponse.encode(message).finish() - }; - } -}; -function createBaseSimulateRequest() { - return { - tx: undefined, - txBytes: new Uint8Array() - }; -} -export const SimulateRequest = { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.tx !== undefined) { - Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txBytes.length !== 0) { - writer.uint32(18).bytes(message.txBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulateRequest(); - message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; - message.txBytes = object.txBytes ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSimulateRequest(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = Tx.fromAmino(object.tx); - } - if (object.tx_bytes !== undefined && object.tx_bytes !== null) { - message.txBytes = bytesFromBase64(object.tx_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; - obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SimulateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulateRequest", - value: SimulateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SimulateRequest.decode(message.value); - }, - toProto(message) { - return SimulateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", - value: SimulateRequest.encode(message).finish() - }; - } -}; -function createBaseSimulateResponse() { - return { - gasInfo: undefined, - result: undefined - }; -} -export const SimulateResponse = { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.gasInfo !== undefined) { - GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.result !== undefined) { - Result.encode(message.result, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimulateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gasInfo = GasInfo.decode(reader, reader.uint32()); - break; - case 2: - message.result = Result.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimulateResponse(); - message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined; - message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSimulateResponse(); - if (object.gas_info !== undefined && object.gas_info !== null) { - message.gasInfo = GasInfo.fromAmino(object.gas_info); - } - if (object.result !== undefined && object.result !== null) { - message.result = Result.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined; - obj.result = message.result ? Result.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SimulateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SimulateResponse", - value: SimulateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SimulateResponse.decode(message.value); - }, - toProto(message) { - return SimulateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", - value: SimulateResponse.encode(message).finish() - }; - } -}; -function createBaseGetTxRequest() { - return { - hash: "" - }; -} -export const GetTxRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return GetTxRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxRequest", - value: GetTxRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxRequest.decode(message.value); - }, - toProto(message) { - return GetTxRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", - value: GetTxRequest.encode(message).finish() - }; - } -}; -function createBaseGetTxResponse() { - return { - tx: undefined, - txResponse: undefined - }; -} -export const GetTxResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tx !== undefined) { - Tx.encode(message.tx, writer.uint32(10).fork()).ldelim(); - } - if (message.txResponse !== undefined) { - TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = Tx.decode(reader, reader.uint32()); - break; - case 2: - message.txResponse = TxResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetTxResponse(); - message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined; - message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetTxResponse(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = Tx.fromAmino(object.tx); - } - if (object.tx_response !== undefined && object.tx_response !== null) { - message.txResponse = TxResponse.fromAmino(object.tx_response); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? Tx.toAmino(message.tx) : undefined; - obj.tx_response = message.txResponse ? TxResponse.toAmino(message.txResponse) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetTxResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetTxResponse", - value: GetTxResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetTxResponse.decode(message.value); - }, - toProto(message) { - return GetTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", - value: GetTxResponse.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsRequest() { - return { - height: BigInt(0), - pagination: undefined - }; -} -export const GetBlockWithTxsRequest = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetBlockWithTxsRequest(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetBlockWithTxsRequest(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetBlockWithTxsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetBlockWithTxsRequest", - value: GetBlockWithTxsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetBlockWithTxsRequest.decode(message.value); - }, - toProto(message) { - return GetBlockWithTxsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", - value: GetBlockWithTxsRequest.encode(message).finish() - }; - } -}; -function createBaseGetBlockWithTxsResponse() { - return { - txs: [], - blockId: undefined, - block: undefined, - pagination: undefined - }; -} -export const GetBlockWithTxsResponse = { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.txs) { - Tx.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim(); - } - if (message.block !== undefined) { - Block.encode(message.block, writer.uint32(26).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockWithTxsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(Tx.decode(reader, reader.uint32())); - break; - case 2: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 3: - message.block = Block.decode(reader, reader.uint32()); - break; - case 4: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => Tx.fromPartial(e)) || []; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGetBlockWithTxsResponse(); - message.txs = object.txs?.map(e => Tx.fromAmino(e)) || []; - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block !== undefined && object.block !== null) { - message.block = Block.fromAmino(object.block); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); - } - else { - obj.txs = message.txs; - } - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block = message.block ? Block.toAmino(message.block) : undefined; - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GetBlockWithTxsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GetBlockWithTxsResponse", - value: GetBlockWithTxsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GetBlockWithTxsResponse.decode(message.value); - }, - toProto(message) { - return GetBlockWithTxsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", - value: GetBlockWithTxsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js deleted file mode 100644 index 39fc4cc1..00000000 --- a/packages/api/dist/esm/cosmos/tx/v1beta1/service.lcd.js +++ /dev/null @@ -1,52 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.getTx = this.getTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - /* GetTx fetches a tx by hash. */ - async getTx(params) { - const endpoint = `cosmos/tx/v1beta1/txs/${params.hash}`; - return await this.req.get(endpoint); - } - /* GetTxsEvent fetches txs by event. */ - async getTxsEvent(params) { - const options = { - params: {} - }; - if (typeof params?.events !== "undefined") { - options.params.events = params.events; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - if (typeof params?.orderBy !== "undefined") { - options.params.order_by = params.orderBy; - } - if (typeof params?.page !== "undefined") { - options.params.page = params.page; - } - if (typeof params?.limit !== "undefined") { - options.params.limit = params.limit; - } - const endpoint = `cosmos/tx/v1beta1/txs`; - return await this.req.get(endpoint, options); - } - /* GetBlockWithTxs fetches a block with decoded txs. - - Since: cosmos-sdk 0.45.2 */ - async getBlockWithTxs(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/tx/v1beta1/txs/block/${params.height}`; - return await this.req.get(endpoint, options); - } -} diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js b/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js deleted file mode 100644 index 536211dc..00000000 --- a/packages/api/dist/esm/cosmos/tx/v1beta1/service.rpc.Service.js +++ /dev/null @@ -1,60 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; -export class ServiceClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.simulate = this.simulate.bind(this); - this.getTx = this.getTx.bind(this); - this.broadcastTx = this.broadcastTx.bind(this); - this.getTxsEvent = this.getTxsEvent.bind(this); - this.getBlockWithTxs = this.getBlockWithTxs.bind(this); - } - simulate(request) { - const data = SimulateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); - return promise.then(data => SimulateResponse.decode(new BinaryReader(data))); - } - getTx(request) { - const data = GetTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); - return promise.then(data => GetTxResponse.decode(new BinaryReader(data))); - } - broadcastTx(request) { - const data = BroadcastTxRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); - return promise.then(data => BroadcastTxResponse.decode(new BinaryReader(data))); - } - getTxsEvent(request) { - const data = GetTxsEventRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); - return promise.then(data => GetTxsEventResponse.decode(new BinaryReader(data))); - } - getBlockWithTxs(request) { - const data = GetBlockWithTxsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); - return promise.then(data => GetBlockWithTxsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new ServiceClientImpl(rpc); - return { - simulate(request) { - return queryService.simulate(request); - }, - getTx(request) { - return queryService.getTx(request); - }, - broadcastTx(request) { - return queryService.broadcastTx(request); - }, - getTxsEvent(request) { - return queryService.getTxsEvent(request); - }, - getBlockWithTxs(request) { - return queryService.getBlockWithTxs(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js b/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js deleted file mode 100644 index 23926909..00000000 --- a/packages/api/dist/esm/cosmos/tx/v1beta1/tx.js +++ /dev/null @@ -1,1278 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { CompactBitArray } from "../../crypto/multisig/v1beta1/multisig"; -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseTx() { - return { - body: undefined, - authInfo: undefined, - signatures: [] - }; -} -export const Tx = { - typeUrl: "/cosmos.tx.v1beta1.Tx", - encode(message, writer = BinaryWriter.create()) { - if (message.body !== undefined) { - TxBody.encode(message.body, writer.uint32(10).fork()).ldelim(); - } - if (message.authInfo !== undefined) { - AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.body = TxBody.decode(reader, reader.uint32()); - break; - case 2: - message.authInfo = AuthInfo.decode(reader, reader.uint32()); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTx(); - message.body = object.body !== undefined && object.body !== null ? TxBody.fromPartial(object.body) : undefined; - message.authInfo = object.authInfo !== undefined && object.authInfo !== null ? AuthInfo.fromPartial(object.authInfo) : undefined; - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTx(); - if (object.body !== undefined && object.body !== null) { - message.body = TxBody.fromAmino(object.body); - } - if (object.auth_info !== undefined && object.auth_info !== null) { - message.authInfo = AuthInfo.fromAmino(object.auth_info); - } - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.body = message.body ? TxBody.toAmino(message.body) : undefined; - obj.auth_info = message.authInfo ? AuthInfo.toAmino(message.authInfo) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return Tx.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Tx", - value: Tx.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Tx.decode(message.value); - }, - toProto(message) { - return Tx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Tx", - value: Tx.encode(message).finish() - }; - } -}; -function createBaseTxRaw() { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - signatures: [] - }; -} -export const TxRaw = { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - encode(message, writer = BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - for (const v of message.signatures) { - writer.uint32(26).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxRaw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.signatures.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxRaw(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.signatures = object.signatures?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxRaw(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); - } - message.signatures = object.signatures?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => base64FromBytes(e)); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return TxRaw.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxRaw", - value: TxRaw.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TxRaw.decode(message.value); - }, - toProto(message) { - return TxRaw.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.TxRaw", - value: TxRaw.encode(message).finish() - }; - } -}; -function createBaseSignDoc() { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - chainId: "", - accountNumber: BigInt(0) - }; -} -export const SignDoc = { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - encode(message, writer = BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.authInfoBytes.length !== 0) { - writer.uint32(18).bytes(message.authInfoBytes); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDoc(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.authInfoBytes = reader.bytes(); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignDoc(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.authInfoBytes = object.authInfoBytes ?? new Uint8Array(); - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignDoc(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.auth_info_bytes !== undefined && object.auth_info_bytes !== null) { - message.authInfoBytes = bytesFromBase64(object.auth_info_bytes); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignDoc.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignDoc", - value: SignDoc.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignDoc.decode(message.value); - }, - toProto(message) { - return SignDoc.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDoc", - value: SignDoc.encode(message).finish() - }; - } -}; -function createBaseSignDocDirectAux() { - return { - bodyBytes: new Uint8Array(), - publicKey: undefined, - chainId: "", - accountNumber: BigInt(0), - sequence: BigInt(0), - tip: undefined - }; -} -export const SignDocDirectAux = { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - encode(message, writer = BinaryWriter.create()) { - if (message.bodyBytes.length !== 0) { - writer.uint32(10).bytes(message.bodyBytes); - } - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(18).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(26).string(message.chainId); - } - if (message.accountNumber !== BigInt(0)) { - writer.uint32(32).uint64(message.accountNumber); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(40).uint64(message.sequence); - } - if (message.tip !== undefined) { - Tip.encode(message.tip, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignDocDirectAux(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bodyBytes = reader.bytes(); - break; - case 2: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.chainId = reader.string(); - break; - case 4: - message.accountNumber = reader.uint64(); - break; - case 5: - message.sequence = reader.uint64(); - break; - case 6: - message.tip = Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignDocDirectAux(); - message.bodyBytes = object.bodyBytes ?? new Uint8Array(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.chainId = object.chainId ?? ""; - message.accountNumber = object.accountNumber !== undefined && object.accountNumber !== null ? BigInt(object.accountNumber.toString()) : BigInt(0); - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignDocDirectAux(); - if (object.body_bytes !== undefined && object.body_bytes !== null) { - message.bodyBytes = bytesFromBase64(object.body_bytes); - } - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.account_number !== undefined && object.account_number !== null) { - message.accountNumber = BigInt(object.account_number); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignDocDirectAux.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignDocDirectAux", - value: SignDocDirectAux.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignDocDirectAux.decode(message.value); - }, - toProto(message) { - return SignDocDirectAux.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", - value: SignDocDirectAux.encode(message).finish() - }; - } -}; -function createBaseTxBody() { - return { - messages: [], - memo: "", - timeoutHeight: BigInt(0), - extensionOptions: [], - nonCriticalExtensionOptions: [] - }; -} -export const TxBody = { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.messages) { - Any.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.memo !== "") { - writer.uint32(18).string(message.memo); - } - if (message.timeoutHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.timeoutHeight); - } - for (const v of message.extensionOptions) { - Any.encode(v, writer.uint32(8186).fork()).ldelim(); - } - for (const v of message.nonCriticalExtensionOptions) { - Any.encode(v, writer.uint32(16378).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxBody(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.memo = reader.string(); - break; - case 3: - message.timeoutHeight = reader.uint64(); - break; - case 1023: - message.extensionOptions.push(Any.decode(reader, reader.uint32())); - break; - case 2047: - message.nonCriticalExtensionOptions.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.memo = object.memo ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? BigInt(object.timeoutHeight.toString()) : BigInt(0); - message.extensionOptions = object.extensionOptions?.map(e => Any.fromPartial(e)) || []; - message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map(e => Any.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseTxBody(); - message.messages = object.messages?.map(e => Any.fromAmino(e)) || []; - if (object.memo !== undefined && object.memo !== null) { - message.memo = object.memo; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = BigInt(object.timeout_height); - } - message.extensionOptions = object.extension_options?.map(e => Any.fromAmino(e)) || []; - message.nonCriticalExtensionOptions = object.non_critical_extension_options?.map(e => Any.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.messages) { - obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.messages = message.messages; - } - obj.memo = message.memo === "" ? undefined : message.memo; - obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; - if (message.extensionOptions) { - obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.extension_options = message.extensionOptions; - } - if (message.nonCriticalExtensionOptions) { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined); - } - else { - obj.non_critical_extension_options = message.nonCriticalExtensionOptions; - } - return obj; - }, - fromAminoMsg(object) { - return TxBody.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/TxBody", - value: TxBody.toAmino(message) - }; - }, - fromProtoMsg(message) { - return TxBody.decode(message.value); - }, - toProto(message) { - return TxBody.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.TxBody", - value: TxBody.encode(message).finish() - }; - } -}; -function createBaseAuthInfo() { - return { - signerInfos: [], - fee: undefined, - tip: undefined - }; -} -export const AuthInfo = { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.signerInfos) { - SignerInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.fee !== undefined) { - Fee.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - if (message.tip !== undefined) { - Tip.encode(message.tip, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuthInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signerInfos.push(SignerInfo.decode(reader, reader.uint32())); - break; - case 2: - message.fee = Fee.decode(reader, reader.uint32()); - break; - case 3: - message.tip = Tip.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuthInfo(); - message.signerInfos = object.signerInfos?.map(e => SignerInfo.fromPartial(e)) || []; - message.fee = object.fee !== undefined && object.fee !== null ? Fee.fromPartial(object.fee) : undefined; - message.tip = object.tip !== undefined && object.tip !== null ? Tip.fromPartial(object.tip) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAuthInfo(); - message.signerInfos = object.signer_infos?.map(e => SignerInfo.fromAmino(e)) || []; - if (object.fee !== undefined && object.fee !== null) { - message.fee = Fee.fromAmino(object.fee); - } - if (object.tip !== undefined && object.tip !== null) { - message.tip = Tip.fromAmino(object.tip); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.signerInfos) { - obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined); - } - else { - obj.signer_infos = message.signerInfos; - } - obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined; - obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AuthInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuthInfo", - value: AuthInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AuthInfo.decode(message.value); - }, - toProto(message) { - return AuthInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.AuthInfo", - value: AuthInfo.encode(message).finish() - }; - } -}; -function createBaseSignerInfo() { - return { - publicKey: undefined, - modeInfo: undefined, - sequence: BigInt(0) - }; -} -export const SignerInfo = { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.publicKey !== undefined) { - Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim(); - } - if (message.modeInfo !== undefined) { - ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim(); - } - if (message.sequence !== BigInt(0)) { - writer.uint32(24).uint64(message.sequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignerInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.publicKey = Any.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfo = ModeInfo.decode(reader, reader.uint32()); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignerInfo(); - message.publicKey = object.publicKey !== undefined && object.publicKey !== null ? Any.fromPartial(object.publicKey) : undefined; - message.modeInfo = object.modeInfo !== undefined && object.modeInfo !== null ? ModeInfo.fromPartial(object.modeInfo) : undefined; - message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSignerInfo(); - if (object.public_key !== undefined && object.public_key !== null) { - message.publicKey = Any.fromAmino(object.public_key); - } - if (object.mode_info !== undefined && object.mode_info !== null) { - message.modeInfo = ModeInfo.fromAmino(object.mode_info); - } - if (object.sequence !== undefined && object.sequence !== null) { - message.sequence = BigInt(object.sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined; - obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignerInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SignerInfo", - value: SignerInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SignerInfo.decode(message.value); - }, - toProto(message) { - return SignerInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.SignerInfo", - value: SignerInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo() { - return { - single: undefined, - multi: undefined - }; -} -export const ModeInfo = { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.single !== undefined) { - ModeInfo_Single.encode(message.single, writer.uint32(10).fork()).ldelim(); - } - if (message.multi !== undefined) { - ModeInfo_Multi.encode(message.multi, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.single = ModeInfo_Single.decode(reader, reader.uint32()); - break; - case 2: - message.multi = ModeInfo_Multi.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo(); - message.single = object.single !== undefined && object.single !== null ? ModeInfo_Single.fromPartial(object.single) : undefined; - message.multi = object.multi !== undefined && object.multi !== null ? ModeInfo_Multi.fromPartial(object.multi) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo(); - if (object.single !== undefined && object.single !== null) { - message.single = ModeInfo_Single.fromAmino(object.single); - } - if (object.multi !== undefined && object.multi !== null) { - message.multi = ModeInfo_Multi.fromAmino(object.multi); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.single = message.single ? ModeInfo_Single.toAmino(message.single) : undefined; - obj.multi = message.multi ? ModeInfo_Multi.toAmino(message.multi) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ModeInfo.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModeInfo", - value: ModeInfo.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModeInfo.decode(message.value); - }, - toProto(message) { - return ModeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.ModeInfo", - value: ModeInfo.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Single() { - return { - mode: 0 - }; -} -export const ModeInfo_Single = { - typeUrl: "/cosmos.tx.v1beta1.Single", - encode(message, writer = BinaryWriter.create()) { - if (message.mode !== 0) { - writer.uint32(8).int32(message.mode); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Single(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo_Single(); - message.mode = object.mode ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo_Single(); - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.mode = message.mode === 0 ? undefined : message.mode; - return obj; - }, - fromAminoMsg(object) { - return ModeInfo_Single.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Single", - value: ModeInfo_Single.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModeInfo_Single.decode(message.value); - }, - toProto(message) { - return ModeInfo_Single.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Single", - value: ModeInfo_Single.encode(message).finish() - }; - } -}; -function createBaseModeInfo_Multi() { - return { - bitarray: undefined, - modeInfos: [] - }; -} -export const ModeInfo_Multi = { - typeUrl: "/cosmos.tx.v1beta1.Multi", - encode(message, writer = BinaryWriter.create()) { - if (message.bitarray !== undefined) { - CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.modeInfos) { - ModeInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModeInfo_Multi(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bitarray = CompactBitArray.decode(reader, reader.uint32()); - break; - case 2: - message.modeInfos.push(ModeInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModeInfo_Multi(); - message.bitarray = object.bitarray !== undefined && object.bitarray !== null ? CompactBitArray.fromPartial(object.bitarray) : undefined; - message.modeInfos = object.modeInfos?.map(e => ModeInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseModeInfo_Multi(); - if (object.bitarray !== undefined && object.bitarray !== null) { - message.bitarray = CompactBitArray.fromAmino(object.bitarray); - } - message.modeInfos = object.mode_infos?.map(e => ModeInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bitarray = message.bitarray ? CompactBitArray.toAmino(message.bitarray) : undefined; - if (message.modeInfos) { - obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined); - } - else { - obj.mode_infos = message.modeInfos; - } - return obj; - }, - fromAminoMsg(object) { - return ModeInfo_Multi.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Multi", - value: ModeInfo_Multi.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModeInfo_Multi.decode(message.value); - }, - toProto(message) { - return ModeInfo_Multi.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Multi", - value: ModeInfo_Multi.encode(message).finish() - }; - } -}; -function createBaseFee() { - return { - amount: [], - gasLimit: BigInt(0), - payer: "", - granter: "" - }; -} -export const Fee = { - typeUrl: "/cosmos.tx.v1beta1.Fee", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.amount) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.gasLimit !== BigInt(0)) { - writer.uint32(16).uint64(message.gasLimit); - } - if (message.payer !== "") { - writer.uint32(26).string(message.payer); - } - if (message.granter !== "") { - writer.uint32(34).string(message.granter); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.gasLimit = reader.uint64(); - break; - case 3: - message.payer = reader.string(); - break; - case 4: - message.granter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFee(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.gasLimit = object.gasLimit !== undefined && object.gasLimit !== null ? BigInt(object.gasLimit.toString()) : BigInt(0); - message.payer = object.payer ?? ""; - message.granter = object.granter ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseFee(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.gas_limit !== undefined && object.gas_limit !== null) { - message.gasLimit = BigInt(object.gas_limit); - } - if (object.payer !== undefined && object.payer !== null) { - message.payer = object.payer; - } - if (object.granter !== undefined && object.granter !== null) { - message.granter = object.granter; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; - obj.payer = message.payer === "" ? undefined : message.payer; - obj.granter = message.granter === "" ? undefined : message.granter; - return obj; - }, - fromAminoMsg(object) { - return Fee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Fee", - value: Fee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Fee.decode(message.value); - }, - toProto(message) { - return Fee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Fee", - value: Fee.encode(message).finish() - }; - } -}; -function createBaseTip() { - return { - amount: [], - tipper: "" - }; -} -export const Tip = { - typeUrl: "/cosmos.tx.v1beta1.Tip", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.amount) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.tipper !== "") { - writer.uint32(18).string(message.tipper); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTip(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.tipper = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTip(); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.tipper = object.tipper ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseTip(); - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.tipper !== undefined && object.tipper !== null) { - message.tipper = object.tipper; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.tipper = message.tipper === "" ? undefined : message.tipper; - return obj; - }, - fromAminoMsg(object) { - return Tip.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Tip", - value: Tip.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Tip.decode(message.value); - }, - toProto(message) { - return Tip.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.Tip", - value: Tip.encode(message).finish() - }; - } -}; -function createBaseAuxSignerData() { - return { - address: "", - signDoc: undefined, - mode: 0, - sig: new Uint8Array() - }; -} -export const AuxSignerData = { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.signDoc !== undefined) { - SignDocDirectAux.encode(message.signDoc, writer.uint32(18).fork()).ldelim(); - } - if (message.mode !== 0) { - writer.uint32(24).int32(message.mode); - } - if (message.sig.length !== 0) { - writer.uint32(34).bytes(message.sig); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAuxSignerData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.signDoc = SignDocDirectAux.decode(reader, reader.uint32()); - break; - case 3: - message.mode = reader.int32(); - break; - case 4: - message.sig = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAuxSignerData(); - message.address = object.address ?? ""; - message.signDoc = object.signDoc !== undefined && object.signDoc !== null ? SignDocDirectAux.fromPartial(object.signDoc) : undefined; - message.mode = object.mode ?? 0; - message.sig = object.sig ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAuxSignerData(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.sign_doc !== undefined && object.sign_doc !== null) { - message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc); - } - if (object.mode !== undefined && object.mode !== null) { - message.mode = object.mode; - } - if (object.sig !== undefined && object.sig !== null) { - message.sig = bytesFromBase64(object.sig); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined; - obj.mode = message.mode === 0 ? undefined : message.mode; - obj.sig = message.sig ? base64FromBytes(message.sig) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AuxSignerData.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/AuxSignerData", - value: AuxSignerData.toAmino(message) - }; - }, - fromProtoMsg(message) { - return AuxSignerData.decode(message.value); - }, - toProto(message) { - return AuxSignerData.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", - value: AuxSignerData.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js deleted file mode 100644 index cc8d787e..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.js +++ /dev/null @@ -1,671 +0,0 @@ -//@ts-nocheck -import { Plan, ModuleVersion } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -function createBaseQueryCurrentPlanRequest() { - return {}; -} -export const QueryCurrentPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCurrentPlanRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryCurrentPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCurrentPlanRequest", - value: QueryCurrentPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryCurrentPlanRequest.decode(message.value); - }, - toProto(message) { - return QueryCurrentPlanRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", - value: QueryCurrentPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCurrentPlanResponse() { - return { - plan: undefined - }; -} -export const QueryCurrentPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCurrentPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCurrentPlanResponse(); - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCurrentPlanResponse(); - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryCurrentPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryCurrentPlanResponse", - value: QueryCurrentPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryCurrentPlanResponse.decode(message.value); - }, - toProto(message) { - return QueryCurrentPlanResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", - value: QueryCurrentPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanRequest() { - return { - name: "" - }; -} -export const QueryAppliedPlanRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAppliedPlanRequest(); - message.name = object.name ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAppliedPlanRequest(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - return obj; - }, - fromAminoMsg(object) { - return QueryAppliedPlanRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAppliedPlanRequest", - value: QueryAppliedPlanRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAppliedPlanRequest.decode(message.value); - }, - toProto(message) { - return QueryAppliedPlanRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", - value: QueryAppliedPlanRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAppliedPlanResponse() { - return { - height: BigInt(0) - }; -} -export const QueryAppliedPlanResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppliedPlanResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAppliedPlanResponse(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryAppliedPlanResponse(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAppliedPlanResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAppliedPlanResponse", - value: QueryAppliedPlanResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAppliedPlanResponse.decode(message.value); - }, - toProto(message) { - return QueryAppliedPlanResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", - value: QueryAppliedPlanResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest() { - return { - lastHeight: BigInt(0) - }; -} -export const QueryUpgradedConsensusStateRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.lastHeight !== BigInt(0)) { - writer.uint32(8).int64(message.lastHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - if (object.last_height !== undefined && object.last_height !== null) { - message.lastHeight = BigInt(object.last_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse() { - return { - upgradedConsensusState: new Uint8Array() - }; -} -export const QueryUpgradedConsensusStateResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.upgradedConsensusState.length !== 0) { - writer.uint32(18).bytes(message.upgradedConsensusState); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.upgradedConsensusState = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = bytesFromBase64(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? base64FromBytes(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsRequest() { - return { - moduleName: "" - }; -} -export const QueryModuleVersionsRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.moduleName !== "") { - writer.uint32(10).string(message.moduleName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleVersionsRequest(); - message.moduleName = object.moduleName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleVersionsRequest(); - if (object.module_name !== undefined && object.module_name !== null) { - message.moduleName = object.module_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.module_name = message.moduleName === "" ? undefined : message.moduleName; - return obj; - }, - fromAminoMsg(object) { - return QueryModuleVersionsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleVersionsRequest", - value: QueryModuleVersionsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleVersionsRequest.decode(message.value); - }, - toProto(message) { - return QueryModuleVersionsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", - value: QueryModuleVersionsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryModuleVersionsResponse() { - return { - moduleVersions: [] - }; -} -export const QueryModuleVersionsResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.moduleVersions) { - ModuleVersion.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryModuleVersionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.moduleVersions?.map(e => ModuleVersion.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryModuleVersionsResponse(); - message.moduleVersions = object.module_versions?.map(e => ModuleVersion.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.moduleVersions) { - obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined); - } - else { - obj.module_versions = message.moduleVersions; - } - return obj; - }, - fromAminoMsg(object) { - return QueryModuleVersionsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryModuleVersionsResponse", - value: QueryModuleVersionsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryModuleVersionsResponse.decode(message.value); - }, - toProto(message) { - return QueryModuleVersionsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", - value: QueryModuleVersionsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityRequest() { - return {}; -} -export const QueryAuthorityRequest = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAuthorityRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryAuthorityRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAuthorityRequest", - value: QueryAuthorityRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAuthorityRequest.decode(message.value); - }, - toProto(message) { - return QueryAuthorityRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", - value: QueryAuthorityRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAuthorityResponse() { - return { - address: "" - }; -} -export const QueryAuthorityResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAuthorityResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAuthorityResponse(); - message.address = object.address ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAuthorityResponse(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - return obj; - }, - fromAminoMsg(object) { - return QueryAuthorityResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryAuthorityResponse", - value: QueryAuthorityResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryAuthorityResponse.decode(message.value); - }, - toProto(message) { - return QueryAuthorityResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", - value: QueryAuthorityResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js deleted file mode 100644 index 2e058664..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js +++ /dev/null @@ -1,51 +0,0 @@ -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - /* CurrentPlan queries the current upgrade plan. */ - async currentPlan(_params = {}) { - const endpoint = `cosmos/upgrade/v1beta1/current_plan`; - return await this.req.get(endpoint); - } - /* AppliedPlan queries a previously applied upgrade plan by its name. */ - async appliedPlan(params) { - const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries the consensus state that will serve - as a trusted kernel for the next version of this chain. It will only be - stored at the last height of this chain. - UpgradedConsensusState RPC not supported with legacy querier - This rpc is deprecated now that IBC has its own replacement - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */ - async upgradedConsensusState(params) { - const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`; - return await this.req.get(endpoint); - } - /* ModuleVersions queries the list of module versions from state. - - Since: cosmos-sdk 0.43 */ - async moduleVersions(params) { - const options = { - params: {} - }; - if (typeof params?.moduleName !== "undefined") { - options.params.module_name = params.moduleName; - } - const endpoint = `cosmos/upgrade/v1beta1/module_versions`; - return await this.req.get(endpoint, options); - } - /* Returns the account with authority to conduct upgrades - - Since: cosmos-sdk 0.46 */ - async authority(_params = {}) { - const endpoint = `cosmos/upgrade/v1beta1/authority`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js deleted file mode 100644 index 7f1a0276..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/query.rpc.Query.js +++ /dev/null @@ -1,60 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.currentPlan = this.currentPlan.bind(this); - this.appliedPlan = this.appliedPlan.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - this.moduleVersions = this.moduleVersions.bind(this); - this.authority = this.authority.bind(this); - } - currentPlan(request = {}) { - const data = QueryCurrentPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); - return promise.then(data => QueryCurrentPlanResponse.decode(new BinaryReader(data))); - } - appliedPlan(request) { - const data = QueryAppliedPlanRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); - return promise.then(data => QueryAppliedPlanResponse.decode(new BinaryReader(data))); - } - upgradedConsensusState(request) { - const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); - return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); - } - moduleVersions(request) { - const data = QueryModuleVersionsRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); - return promise.then(data => QueryModuleVersionsResponse.decode(new BinaryReader(data))); - } - authority(request = {}) { - const data = QueryAuthorityRequest.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); - return promise.then(data => QueryAuthorityResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - currentPlan(request) { - return queryService.currentPlan(request); - }, - appliedPlan(request) { - return queryService.appliedPlan(request); - }, - upgradedConsensusState(request) { - return queryService.upgradedConsensusState(request); - }, - moduleVersions(request) { - return queryService.moduleVersions(request); - }, - authority(request) { - return queryService.authority(request); - } - }; -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js deleted file mode 100644 index 31cd8520..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.amino.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ts-nocheck -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export const AminoConverter = { - "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { - aminoType: "cosmos-sdk/MsgSoftwareUpgrade", - toAmino: MsgSoftwareUpgrade.toAmino, - fromAmino: MsgSoftwareUpgrade.fromAmino - }, - "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { - aminoType: "cosmos-sdk/MsgCancelUpgrade", - toAmino: MsgCancelUpgrade.toAmino, - fromAmino: MsgCancelUpgrade.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js deleted file mode 100644 index 85ff8ac6..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.js +++ /dev/null @@ -1,265 +0,0 @@ -//@ts-nocheck -import { Plan } from "./upgrade"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgSoftwareUpgrade() { - return { - authority: "", - plan: Plan.fromPartial({}) - }; -} -export const MsgSoftwareUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSoftwareUpgrade(); - message.authority = object.authority ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSoftwareUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgSoftwareUpgrade.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSoftwareUpgrade.decode(message.value); - }, - toProto(message) { - return MsgSoftwareUpgrade.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgSoftwareUpgradeResponse() { - return {}; -} -export const MsgSoftwareUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSoftwareUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSoftwareUpgradeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSoftwareUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSoftwareUpgradeResponse", - value: MsgSoftwareUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSoftwareUpgradeResponse.decode(message.value); - }, - toProto(message) { - return MsgSoftwareUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", - value: MsgSoftwareUpgradeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgrade() { - return { - authority: "" - }; -} -export const MsgCancelUpgrade = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgrade(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelUpgrade(); - message.authority = object.authority ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelUpgrade(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelUpgrade.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUpgrade", - value: MsgCancelUpgrade.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancelUpgrade.decode(message.value); - }, - toProto(message) { - return MsgCancelUpgrade.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.encode(message).finish() - }; - } -}; -function createBaseMsgCancelUpgradeResponse() { - return {}; -} -export const MsgCancelUpgradeResponse = { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelUpgradeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelUpgradeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelUpgradeResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCancelUpgradeResponse", - value: MsgCancelUpgradeResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancelUpgradeResponse.decode(message.value); - }, - toProto(message) { - return MsgCancelUpgradeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", - value: MsgCancelUpgradeResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js deleted file mode 100644 index 0eb19fb9..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.registry.js +++ /dev/null @@ -1,51 +0,0 @@ -import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; -export const registry = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.encode(value).finish() - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.encode(value).finish() - }; - } - }, - withTypeUrl: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value - }; - } - }, - fromPartial: { - softwareUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", - value: MsgSoftwareUpgrade.fromPartial(value) - }; - }, - cancelUpgrade(value) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", - value: MsgCancelUpgrade.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 99b3aa61..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,20 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.softwareUpgrade = this.softwareUpgrade.bind(this); - this.cancelUpgrade = this.cancelUpgrade.bind(this); - } - softwareUpgrade(request) { - const data = MsgSoftwareUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); - return promise.then(data => MsgSoftwareUpgradeResponse.decode(new BinaryReader(data))); - } - cancelUpgrade(request) { - const data = MsgCancelUpgrade.encode(request).finish(); - const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); - return promise.then(data => MsgCancelUpgradeResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js b/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js deleted file mode 100644 index d69db1c9..00000000 --- a/packages/api/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +++ /dev/null @@ -1,379 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBasePlan() { - return { - name: "", - time: new Date(), - height: BigInt(0), - info: "", - upgradedClientState: undefined - }; -} -export const Plan = { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePlan(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePlan(); - message.name = object.name ?? ""; - message.time = object.time ?? undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.info = object.info ?? ""; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePlan(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.info = message.info === "" ? undefined : message.info; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Plan.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Plan", - value: Plan.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Plan.decode(message.value); - }, - toProto(message) { - return Plan.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.Plan", - value: Plan.encode(message).finish() - }; - } -}; -function createBaseSoftwareUpgradeProposal() { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - title: "", - description: "", - plan: Plan.fromPartial({}) - }; -} -export const SoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = Plan.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/SoftwareUpgradeProposal", - value: SoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return SoftwareUpgradeProposal.decode(message.value); - }, - toProto(message) { - return SoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", - value: SoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseCancelSoftwareUpgradeProposal() { - return { - $typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - title: "", - description: "" - }; -} -export const CancelSoftwareUpgradeProposal = { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCancelSoftwareUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCancelSoftwareUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCancelSoftwareUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return CancelSoftwareUpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/CancelSoftwareUpgradeProposal", - value: CancelSoftwareUpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return CancelSoftwareUpgradeProposal.decode(message.value); - }, - toProto(message) { - return CancelSoftwareUpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", - value: CancelSoftwareUpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseModuleVersion() { - return { - name: "", - version: BigInt(0) - }; -} -export const ModuleVersion = { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.version !== BigInt(0)) { - writer.uint32(16).uint64(message.version); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.version = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseModuleVersion(); - message.name = object.name ?? ""; - message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseModuleVersion(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.version !== undefined && object.version !== null) { - message.version = BigInt(object.version); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ModuleVersion.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ModuleVersion", - value: ModuleVersion.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ModuleVersion.decode(message.value); - }, - toProto(message) { - return ModuleVersion.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", - value: ModuleVersion.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js deleted file mode 100644 index e3c19978..00000000 --- a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.amino.js +++ /dev/null @@ -1,19 +0,0 @@ -//@ts-nocheck -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export const AminoConverter = { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: "cosmos-sdk/MsgCreateVestingAccount", - toAmino: MsgCreateVestingAccount.toAmino, - fromAmino: MsgCreateVestingAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", - toAmino: MsgCreatePermanentLockedAccount.toAmino, - fromAmino: MsgCreatePermanentLockedAccount.fromAmino - }, - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - toAmino: MsgCreatePeriodicVestingAccount.toAmino, - fromAmino: MsgCreatePeriodicVestingAccount.fromAmino - } -}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js deleted file mode 100644 index bea97212..00000000 --- a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.js +++ /dev/null @@ -1,496 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../base/v1beta1/coin"; -import { Period } from "./vesting"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgCreateVestingAccount() { - return { - fromAddress: "", - toAddress: "", - amount: [], - endTime: BigInt(0), - delayed: false - }; -} -export const MsgCreateVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(32).int64(message.endTime); - } - if (message.delayed === true) { - writer.uint32(40).bool(message.delayed); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.endTime = reader.int64(); - break; - case 5: - message.delayed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - message.delayed = object.delayed ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - if (object.delayed !== undefined && object.delayed !== null) { - message.delayed = object.delayed; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - obj.delayed = message.delayed === false ? undefined : message.delayed; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateVestingAccount", - value: MsgCreateVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateVestingAccount.decode(message.value); - }, - toProto(message) { - return MsgCreateVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreateVestingAccountResponse() { - return {}; -} -export const MsgCreateVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateVestingAccountResponse", - value: MsgCreateVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateVestingAccountResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", - value: MsgCreateVestingAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccount() { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -export const MsgCreatePermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreatePermanentLockedAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreatePermanentLockedAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return MsgCreatePermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreatePermanentLockedAccount.decode(message.value); - }, - toProto(message) { - return MsgCreatePermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePermanentLockedAccountResponse() { - return {}; -} -export const MsgCreatePermanentLockedAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCreatePermanentLockedAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePermanentLockedAccountResponse", - value: MsgCreatePermanentLockedAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreatePermanentLockedAccountResponse.decode(message.value); - }, - toProto(message) { - return MsgCreatePermanentLockedAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", - value: MsgCreatePermanentLockedAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccount() { - return { - fromAddress: "", - toAddress: "", - startTime: BigInt(0), - vestingPeriods: [] - }; -} -export const MsgCreatePeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(24).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.startTime = reader.int64(); - break; - case 4: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreatePeriodicVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreatePeriodicVestingAccount(); - if (object.from_address !== undefined && object.from_address !== null) { - message.fromAddress = object.from_address; - } - if (object.to_address !== undefined && object.to_address !== null) { - message.toAddress = object.to_address; - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; - obj.to_address = message.toAddress === "" ? undefined : message.toAddress; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); - } - else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object) { - return MsgCreatePeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreatePeriodicVestingAccount.decode(message.value); - }, - toProto(message) { - return MsgCreatePeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBaseMsgCreatePeriodicVestingAccountResponse() { - return {}; -} -export const MsgCreatePeriodicVestingAccountResponse = { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCreatePeriodicVestingAccountResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccountResponse", - value: MsgCreatePeriodicVestingAccountResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreatePeriodicVestingAccountResponse.decode(message.value); - }, - toProto(message) { - return MsgCreatePeriodicVestingAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", - value: MsgCreatePeriodicVestingAccountResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js deleted file mode 100644 index 26984d0e..00000000 --- a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.registry.js +++ /dev/null @@ -1,69 +0,0 @@ -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export const registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.encode(value).finish() - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.encode(value).finish() - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.encode(value).finish() - }; - } - }, - withTypeUrl: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value - }; - } - }, - fromPartial: { - createVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.fromPartial(value) - }; - }, - createPermanentLockedAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.fromPartial(value) - }; - }, - createPeriodicVestingAccount(value) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js deleted file mode 100644 index 4f25483f..00000000 --- a/packages/api/dist/esm/cosmos/vesting/v1beta1/tx.rpc.msg.js +++ /dev/null @@ -1,26 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createVestingAccount = this.createVestingAccount.bind(this); - this.createPermanentLockedAccount = this.createPermanentLockedAccount.bind(this); - this.createPeriodicVestingAccount = this.createPeriodicVestingAccount.bind(this); - } - createVestingAccount(request) { - const data = MsgCreateVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", data); - return promise.then(data => MsgCreateVestingAccountResponse.decode(new BinaryReader(data))); - } - createPermanentLockedAccount(request) { - const data = MsgCreatePermanentLockedAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePermanentLockedAccount", data); - return promise.then(data => MsgCreatePermanentLockedAccountResponse.decode(new BinaryReader(data))); - } - createPeriodicVestingAccount(request) { - const data = MsgCreatePeriodicVestingAccount.encode(request).finish(); - const promise = this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreatePeriodicVestingAccount", data); - return promise.then(data => MsgCreatePeriodicVestingAccountResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js b/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js deleted file mode 100644 index 9e50765d..00000000 --- a/packages/api/dist/esm/cosmos/vesting/v1beta1/vesting.js +++ /dev/null @@ -1,529 +0,0 @@ -//@ts-nocheck -import { BaseAccount } from "../../auth/v1beta1/auth"; -import { Coin } from "../../base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseBaseVestingAccount() { - return { - baseAccount: undefined, - originalVesting: [], - delegatedFree: [], - delegatedVesting: [], - endTime: BigInt(0) - }; -} -export const BaseVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseAccount !== undefined) { - BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.originalVesting) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatedFree) { - Coin.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.delegatedVesting) { - Coin.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.endTime !== BigInt(0)) { - writer.uint32(40).int64(message.endTime); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.originalVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.delegatedFree.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.delegatedVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.endTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBaseVestingAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; - message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || []; - message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || []; - message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBaseVestingAccount(); - if (object.base_account !== undefined && object.base_account !== null) { - message.baseAccount = BaseAccount.fromAmino(object.base_account); - } - message.originalVesting = object.original_vesting?.map(e => Coin.fromAmino(e)) || []; - message.delegatedFree = object.delegated_free?.map(e => Coin.fromAmino(e)) || []; - message.delegatedVesting = object.delegated_vesting?.map(e => Coin.fromAmino(e)) || []; - if (object.end_time !== undefined && object.end_time !== null) { - message.endTime = BigInt(object.end_time); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; - if (message.originalVesting) { - obj.original_vesting = message.originalVesting.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.original_vesting = message.originalVesting; - } - if (message.delegatedFree) { - obj.delegated_free = message.delegatedFree.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.delegated_free = message.delegatedFree; - } - if (message.delegatedVesting) { - obj.delegated_vesting = message.delegatedVesting.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.delegated_vesting = message.delegatedVesting; - } - obj.end_time = message.endTime !== BigInt(0) ? message.endTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BaseVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/BaseVestingAccount", - value: BaseVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return BaseVestingAccount.decode(message.value); - }, - toProto(message) { - return BaseVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", - value: BaseVestingAccount.encode(message).finish() - }; - } -}; -function createBaseContinuousVestingAccount() { - return { - baseVestingAccount: undefined, - startTime: BigInt(0) - }; -} -export const ContinuousVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContinuousVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContinuousVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseContinuousVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ContinuousVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ContinuousVestingAccount", - value: ContinuousVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ContinuousVestingAccount.decode(message.value); - }, - toProto(message) { - return ContinuousVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", - value: ContinuousVestingAccount.encode(message).finish() - }; - } -}; -function createBaseDelayedVestingAccount() { - return { - baseVestingAccount: undefined - }; -} -export const DelayedVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelayedVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDelayedVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDelayedVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DelayedVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DelayedVestingAccount", - value: DelayedVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DelayedVestingAccount.decode(message.value); - }, - toProto(message) { - return DelayedVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", - value: DelayedVestingAccount.encode(message).finish() - }; - } -}; -function createBasePeriod() { - return { - length: BigInt(0), - amount: [] - }; -} -export const Period = { - typeUrl: "/cosmos.vesting.v1beta1.Period", - encode(message, writer = BinaryWriter.create()) { - if (message.length !== BigInt(0)) { - writer.uint32(8).int64(message.length); - } - for (const v of message.amount) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriod(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.length = reader.int64(); - break; - case 2: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriod(); - message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0); - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBasePeriod(); - if (object.length !== undefined && object.length !== null) { - message.length = BigInt(object.length); - } - message.amount = object.amount?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.length = message.length !== BigInt(0) ? message.length.toString() : undefined; - if (message.amount) { - obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.amount = message.amount; - } - return obj; - }, - fromAminoMsg(object) { - return Period.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Period", - value: Period.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Period.decode(message.value); - }, - toProto(message) { - return Period.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.Period", - value: Period.encode(message).finish() - }; - } -}; -function createBasePeriodicVestingAccount() { - return { - baseVestingAccount: undefined, - startTime: BigInt(0), - vestingPeriods: [] - }; -} -export const PeriodicVestingAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (message.startTime !== BigInt(0)) { - writer.uint32(16).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = reader.int64(); - break; - case 3: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePeriodicVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0); - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBasePeriodicVestingAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - if (object.start_time !== undefined && object.start_time !== null) { - message.startTime = BigInt(object.start_time); - } - message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - obj.start_time = message.startTime !== BigInt(0) ? message.startTime.toString() : undefined; - if (message.vestingPeriods) { - obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined); - } - else { - obj.vesting_periods = message.vestingPeriods; - } - return obj; - }, - fromAminoMsg(object) { - return PeriodicVestingAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PeriodicVestingAccount", - value: PeriodicVestingAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PeriodicVestingAccount.decode(message.value); - }, - toProto(message) { - return PeriodicVestingAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", - value: PeriodicVestingAccount.encode(message).finish() - }; - } -}; -function createBasePermanentLockedAccount() { - return { - baseVestingAccount: undefined - }; -} -export const PermanentLockedAccount = { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePermanentLockedAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePermanentLockedAccount(); - if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) { - message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PermanentLockedAccount.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/PermanentLockedAccount", - value: PermanentLockedAccount.toAmino(message) - }; - }, - fromProtoMsg(message) { - return PermanentLockedAccount.decode(message.value); - }, - toProto(message) { - return PermanentLockedAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", - value: PermanentLockedAccount.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/cosmos_proto/bundle.js b/packages/api/dist/esm/cosmos_proto/bundle.js deleted file mode 100644 index 90736301..00000000 --- a/packages/api/dist/esm/cosmos_proto/bundle.js +++ /dev/null @@ -1,5 +0,0 @@ -//@ts-nocheck -import * as _1 from "./cosmos"; -export const cosmos_proto = { - ..._1 -}; diff --git a/packages/api/dist/esm/cosmos_proto/cosmos.js b/packages/api/dist/esm/cosmos_proto/cosmos.js deleted file mode 100644 index d1d3296b..00000000 --- a/packages/api/dist/esm/cosmos_proto/cosmos.js +++ /dev/null @@ -1,216 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../binary"; -export var ScalarType; -(function (ScalarType) { - ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED"; - ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING"; - ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES"; - ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ScalarType || (ScalarType = {})); -export const ScalarTypeSDKType = ScalarType; -export const ScalarTypeAmino = ScalarType; -export function scalarTypeFromJSON(object) { - switch (object) { - case 0: - case "SCALAR_TYPE_UNSPECIFIED": - return ScalarType.SCALAR_TYPE_UNSPECIFIED; - case 1: - case "SCALAR_TYPE_STRING": - return ScalarType.SCALAR_TYPE_STRING; - case 2: - case "SCALAR_TYPE_BYTES": - return ScalarType.SCALAR_TYPE_BYTES; - case -1: - case "UNRECOGNIZED": - default: - return ScalarType.UNRECOGNIZED; - } -} -export function scalarTypeToJSON(object) { - switch (object) { - case ScalarType.SCALAR_TYPE_UNSPECIFIED: - return "SCALAR_TYPE_UNSPECIFIED"; - case ScalarType.SCALAR_TYPE_STRING: - return "SCALAR_TYPE_STRING"; - case ScalarType.SCALAR_TYPE_BYTES: - return "SCALAR_TYPE_BYTES"; - case ScalarType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseInterfaceDescriptor() { - return { - name: "", - description: "" - }; -} -export const InterfaceDescriptor = { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInterfaceDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseInterfaceDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseInterfaceDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - return obj; - }, - fromAminoMsg(object) { - return InterfaceDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return InterfaceDescriptor.decode(message.value); - }, - toProto(message) { - return InterfaceDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos_proto.InterfaceDescriptor", - value: InterfaceDescriptor.encode(message).finish() - }; - } -}; -function createBaseScalarDescriptor() { - return { - name: "", - description: "", - fieldType: [] - }; -} -export const ScalarDescriptor = { - typeUrl: "/cosmos_proto.ScalarDescriptor", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - writer.uint32(26).fork(); - for (const v of message.fieldType) { - writer.int32(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseScalarDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.fieldType.push(reader.int32()); - } - } - else { - message.fieldType.push(reader.int32()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseScalarDescriptor(); - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.fieldType = object.fieldType?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseScalarDescriptor(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - message.fieldType = object.field_type?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - if (message.fieldType) { - obj.field_type = message.fieldType.map(e => e); - } - else { - obj.field_type = message.fieldType; - } - return obj; - }, - fromAminoMsg(object) { - return ScalarDescriptor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ScalarDescriptor.decode(message.value); - }, - toProto(message) { - return ScalarDescriptor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/cosmos_proto.ScalarDescriptor", - value: ScalarDescriptor.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/gogoproto/bundle.js b/packages/api/dist/esm/gogoproto/bundle.js deleted file mode 100644 index 3c6de980..00000000 --- a/packages/api/dist/esm/gogoproto/bundle.js +++ /dev/null @@ -1,5 +0,0 @@ -//@ts-nocheck -import * as _67 from "./gogo"; -export const gogoproto = { - ..._67 -}; diff --git a/packages/api/dist/esm/gogoproto/gogo.js b/packages/api/dist/esm/gogoproto/gogo.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/esm/gogoproto/gogo.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/esm/google/api/annotations.js b/packages/api/dist/esm/google/api/annotations.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/esm/google/api/annotations.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/esm/google/api/http.js b/packages/api/dist/esm/google/api/http.js deleted file mode 100644 index 7a405fd6..00000000 --- a/packages/api/dist/esm/google/api/http.js +++ /dev/null @@ -1,329 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseHttp() { - return { - rules: [], - fullyDecodeReservedExpansion: false - }; -} -export const Http = { - typeUrl: "/google.api.Http", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.rules) { - HttpRule.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.fullyDecodeReservedExpansion === true) { - writer.uint32(16).bool(message.fullyDecodeReservedExpansion); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rules.push(HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; - message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || []; - if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { - message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rules) { - obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined); - } - else { - obj.rules = message.rules; - } - obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; - return obj; - }, - fromAminoMsg(object) { - return Http.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Http.decode(message.value); - }, - toProto(message) { - return Http.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.Http", - value: Http.encode(message).finish() - }; - } -}; -function createBaseHttpRule() { - return { - selector: "", - get: undefined, - put: undefined, - post: undefined, - delete: undefined, - patch: undefined, - custom: undefined, - body: "", - responseBody: "", - additionalBindings: [] - }; -} -export const HttpRule = { - typeUrl: "/google.api.HttpRule", - encode(message, writer = BinaryWriter.create()) { - if (message.selector !== "") { - writer.uint32(10).string(message.selector); - } - if (message.get !== undefined) { - writer.uint32(18).string(message.get); - } - if (message.put !== undefined) { - writer.uint32(26).string(message.put); - } - if (message.post !== undefined) { - writer.uint32(34).string(message.post); - } - if (message.delete !== undefined) { - writer.uint32(42).string(message.delete); - } - if (message.patch !== undefined) { - writer.uint32(50).string(message.patch); - } - if (message.custom !== undefined) { - CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); - } - if (message.body !== "") { - writer.uint32(58).string(message.body); - } - if (message.responseBody !== "") { - writer.uint32(98).string(message.responseBody); - } - for (const v of message.additionalBindings) { - HttpRule.encode(v, writer.uint32(90).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttpRule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message.delete = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHttpRule(); - message.selector = object.selector ?? ""; - message.get = object.get ?? undefined; - message.put = object.put ?? undefined; - message.post = object.post ?? undefined; - message.delete = object.delete ?? undefined; - message.patch = object.patch ?? undefined; - message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined; - message.body = object.body ?? ""; - message.responseBody = object.responseBody ?? ""; - message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseHttpRule(); - if (object.selector !== undefined && object.selector !== null) { - message.selector = object.selector; - } - if (object.get !== undefined && object.get !== null) { - message.get = object.get; - } - if (object.put !== undefined && object.put !== null) { - message.put = object.put; - } - if (object.post !== undefined && object.post !== null) { - message.post = object.post; - } - if (object.delete !== undefined && object.delete !== null) { - message.delete = object.delete; - } - if (object.patch !== undefined && object.patch !== null) { - message.patch = object.patch; - } - if (object.custom !== undefined && object.custom !== null) { - message.custom = CustomHttpPattern.fromAmino(object.custom); - } - if (object.body !== undefined && object.body !== null) { - message.body = object.body; - } - if (object.response_body !== undefined && object.response_body !== null) { - message.responseBody = object.response_body; - } - message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.selector = message.selector === "" ? undefined : message.selector; - obj.get = message.get === null ? undefined : message.get; - obj.put = message.put === null ? undefined : message.put; - obj.post = message.post === null ? undefined : message.post; - obj.delete = message.delete === null ? undefined : message.delete; - obj.patch = message.patch === null ? undefined : message.patch; - obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined; - obj.body = message.body === "" ? undefined : message.body; - obj.response_body = message.responseBody === "" ? undefined : message.responseBody; - if (message.additionalBindings) { - obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined); - } - else { - obj.additional_bindings = message.additionalBindings; - } - return obj; - }, - fromAminoMsg(object) { - return HttpRule.fromAmino(object.value); - }, - fromProtoMsg(message) { - return HttpRule.decode(message.value); - }, - toProto(message) { - return HttpRule.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.HttpRule", - value: HttpRule.encode(message).finish() - }; - } -}; -function createBaseCustomHttpPattern() { - return { - kind: "", - path: "" - }; -} -export const CustomHttpPattern = { - typeUrl: "/google.api.CustomHttpPattern", - encode(message, writer = BinaryWriter.create()) { - if (message.kind !== "") { - writer.uint32(10).string(message.kind); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCustomHttpPattern(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCustomHttpPattern(); - message.kind = object.kind ?? ""; - message.path = object.path ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCustomHttpPattern(); - if (object.kind !== undefined && object.kind !== null) { - message.kind = object.kind; - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.kind = message.kind === "" ? undefined : message.kind; - obj.path = message.path === "" ? undefined : message.path; - return obj; - }, - fromAminoMsg(object) { - return CustomHttpPattern.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CustomHttpPattern.decode(message.value); - }, - toProto(message) { - return CustomHttpPattern.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.CustomHttpPattern", - value: CustomHttpPattern.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/google/bundle.js b/packages/api/dist/esm/google/bundle.js deleted file mode 100644 index 2a311494..00000000 --- a/packages/api/dist/esm/google/bundle.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ts-nocheck -import * as _115 from "./protobuf/descriptor"; -import * as _116 from "./protobuf/any"; -import * as _117 from "./protobuf/timestamp"; -import * as _118 from "./protobuf/duration"; -export var google; -(function (google) { - google.protobuf = { - ..._115, - ..._116, - ..._117, - ..._118 - }; -})(google || (google = {})); diff --git a/packages/api/dist/esm/google/protobuf/any.js b/packages/api/dist/esm/google/protobuf/any.js deleted file mode 100644 index 2ad51414..00000000 --- a/packages/api/dist/esm/google/protobuf/any.js +++ /dev/null @@ -1,74 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseAny() { - return { - $typeUrl: "/google.protobuf.Any", - typeUrl: "", - value: new Uint8Array() - }; -} -export const Any = { - typeUrl: "/google.protobuf.Any", - encode(message, writer = BinaryWriter.create()) { - if (message.typeUrl !== "") { - writer.uint32(10).string(message.typeUrl); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAny(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.typeUrl = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAny(); - message.typeUrl = object.typeUrl ?? ""; - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - return { - typeUrl: object.type, - value: object.value - }; - }, - toAmino(message) { - const obj = {}; - obj.type = message.typeUrl; - obj.value = message.value; - return obj; - }, - fromAminoMsg(object) { - return Any.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Any.decode(message.value); - }, - toProto(message) { - return Any.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Any", - value: Any.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/google/protobuf/descriptor.js b/packages/api/dist/esm/google/protobuf/descriptor.js deleted file mode 100644 index 70ce4619..00000000 --- a/packages/api/dist/esm/google/protobuf/descriptor.js +++ /dev/null @@ -1,3390 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../helpers"; -export var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** TYPE_BYTES - New in version 2. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** TYPE_SINT32 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** TYPE_SINT64 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {})); -export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; -export const FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; -export function fieldDescriptorProto_TypeFromJSON(object) { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Type.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_TypeToJSON(object) { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - case FieldDescriptorProto_Type.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {})); -export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; -export const FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; -export function fieldDescriptorProto_LabelFromJSON(object) { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Label.UNRECOGNIZED; - } -} -export function fieldDescriptorProto_LabelToJSON(object) { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - case FieldDescriptorProto_Label.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** Generated classes can be optimized for speed or code size. */ -export var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; - FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {})); -export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; -export const FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; -export function fileOptions_OptimizeModeFromJSON(object) { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - case -1: - case "UNRECOGNIZED": - default: - return FileOptions_OptimizeMode.UNRECOGNIZED; - } -} -export function fileOptions_OptimizeModeToJSON(object) { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - case FileOptions_OptimizeMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var FieldOptions_CType; -(function (FieldOptions_CType) { - /** STRING - Default mode. */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; - FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldOptions_CType || (FieldOptions_CType = {})); -export const FieldOptions_CTypeSDKType = FieldOptions_CType; -export const FieldOptions_CTypeAmino = FieldOptions_CType; -export function fieldOptions_CTypeFromJSON(object) { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_CType.UNRECOGNIZED; - } -} -export function fieldOptions_CTypeToJSON(object) { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - case FieldOptions_CType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** JS_NORMAL - Use the default type. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** JS_STRING - Use JavaScript strings. */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** JS_NUMBER - Use JavaScript numbers. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; - FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldOptions_JSType || (FieldOptions_JSType = {})); -export const FieldOptions_JSTypeSDKType = FieldOptions_JSType; -export const FieldOptions_JSTypeAmino = FieldOptions_JSType; -export function fieldOptions_JSTypeFromJSON(object) { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_JSType.UNRECOGNIZED; - } -} -export function fieldOptions_JSTypeToJSON(object) { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - case FieldOptions_JSType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** NO_SIDE_EFFECTS - implies idempotent */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** IDEMPOTENT - idempotent, but may have side effects */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {})); -export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; -export const MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; -export function methodOptions_IdempotencyLevelFromJSON(object) { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - case -1: - case "UNRECOGNIZED": - default: - return MethodOptions_IdempotencyLevel.UNRECOGNIZED; - } -} -export function methodOptions_IdempotencyLevelToJSON(object) { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - case MethodOptions_IdempotencyLevel.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseFileDescriptorSet() { - return { - file: [] - }; -} -export const FileDescriptorSet = { - typeUrl: "/google.protobuf.FileDescriptorSet", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.file) { - FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.file.push(FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => FileDescriptorProto.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.file) { - obj.file = message.file.map(e => e ? FileDescriptorProto.toAmino(e) : undefined); - } - else { - obj.file = message.file; - } - return obj; - }, - fromAminoMsg(object) { - return FileDescriptorSet.fromAmino(object.value); - }, - fromProtoMsg(message) { - return FileDescriptorSet.decode(message.value); - }, - toProto(message) { - return FileDescriptorSet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileDescriptorSet", - value: FileDescriptorSet.encode(message).finish() - }; - } -}; -function createBaseFileDescriptorProto() { - return { - name: "", - package: "", - dependency: [], - publicDependency: [], - weakDependency: [], - messageType: [], - enumType: [], - service: [], - extension: [], - options: undefined, - sourceCodeInfo: undefined, - syntax: "" - }; -} -export const FileDescriptorProto = { - typeUrl: "/google.protobuf.FileDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.package !== "") { - writer.uint32(18).string(message.package); - } - for (const v of message.dependency) { - writer.uint32(26).string(v); - } - writer.uint32(82).fork(); - for (const v of message.publicDependency) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(90).fork(); - for (const v of message.weakDependency) { - writer.int32(v); - } - writer.ldelim(); - for (const v of message.messageType) { - DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.enumType) { - EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.service) { - ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.extension) { - FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.options !== undefined) { - FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - if (message.sourceCodeInfo !== undefined) { - SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); - } - if (message.syntax !== "") { - writer.uint32(98).string(message.syntax); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.package = reader.string(); - break; - case 3: - message.dependency.push(reader.string()); - break; - case 10: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.publicDependency.push(reader.int32()); - } - } - else { - message.publicDependency.push(reader.int32()); - } - break; - case 11: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.weakDependency.push(reader.int32()); - } - } - else { - message.weakDependency.push(reader.int32()); - } - break; - case 4: - message.messageType.push(DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileDescriptorProto(); - message.name = object.name ?? ""; - message.package = object.package ?? ""; - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.publicDependency?.map(e => e) || []; - message.weakDependency = object.weakDependency?.map(e => e) || []; - message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; - message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined; - message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; - message.syntax = object.syntax ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseFileDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.package !== undefined && object.package !== null) { - message.package = object.package; - } - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.public_dependency?.map(e => e) || []; - message.weakDependency = object.weak_dependency?.map(e => e) || []; - message.messageType = object.message_type?.map(e => DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; - message.service = object.service?.map(e => ServiceDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = FileOptions.fromAmino(object.options); - } - if (object.source_code_info !== undefined && object.source_code_info !== null) { - message.sourceCodeInfo = SourceCodeInfo.fromAmino(object.source_code_info); - } - if (object.syntax !== undefined && object.syntax !== null) { - message.syntax = object.syntax; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.package = message.package === "" ? undefined : message.package; - if (message.dependency) { - obj.dependency = message.dependency.map(e => e); - } - else { - obj.dependency = message.dependency; - } - if (message.publicDependency) { - obj.public_dependency = message.publicDependency.map(e => e); - } - else { - obj.public_dependency = message.publicDependency; - } - if (message.weakDependency) { - obj.weak_dependency = message.weakDependency.map(e => e); - } - else { - obj.weak_dependency = message.weakDependency; - } - if (message.messageType) { - obj.message_type = message.messageType.map(e => e ? DescriptorProto.toAmino(e) : undefined); - } - else { - obj.message_type = message.messageType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); - } - else { - obj.enum_type = message.enumType; - } - if (message.service) { - obj.service = message.service.map(e => e ? ServiceDescriptorProto.toAmino(e) : undefined); - } - else { - obj.service = message.service; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.extension = message.extension; - } - obj.options = message.options ? FileOptions.toAmino(message.options) : undefined; - obj.source_code_info = message.sourceCodeInfo ? SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; - obj.syntax = message.syntax === "" ? undefined : message.syntax; - return obj; - }, - fromAminoMsg(object) { - return FileDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return FileDescriptorProto.decode(message.value); - }, - toProto(message) { - return FileDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileDescriptorProto", - value: FileDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto() { - return { - name: "", - field: [], - extension: [], - nestedType: [], - enumType: [], - extensionRange: [], - oneofDecl: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -export const DescriptorProto = { - typeUrl: "/google.protobuf.DescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.field) { - FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.extension) { - FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.nestedType) { - DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.enumType) { - EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.extensionRange) { - DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.oneofDecl) { - OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim(); - } - if (message.options !== undefined) { - MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.reservedRange) { - DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(82).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.field.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.nestedType.push(DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto(); - message.name = object.name ?? ""; - message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; - message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; - message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || []; - message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.field = object.field?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => FieldDescriptorProto.fromAmino(e)) || []; - message.nestedType = object.nested_type?.map(e => DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => EnumDescriptorProto.fromAmino(e)) || []; - message.extensionRange = object.extension_range?.map(e => DescriptorProto_ExtensionRange.fromAmino(e)) || []; - message.oneofDecl = object.oneof_decl?.map(e => OneofDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = MessageOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => DescriptorProto_ReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.field) { - obj.field = message.field.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.field = message.field; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.extension = message.extension; - } - if (message.nestedType) { - obj.nested_type = message.nestedType.map(e => e ? DescriptorProto.toAmino(e) : undefined); - } - else { - obj.nested_type = message.nestedType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); - } - else { - obj.enum_type = message.enumType; - } - if (message.extensionRange) { - obj.extension_range = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toAmino(e) : undefined); - } - else { - obj.extension_range = message.extensionRange; - } - if (message.oneofDecl) { - obj.oneof_decl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toAmino(e) : undefined); - } - else { - obj.oneof_decl = message.oneofDecl; - } - obj.options = message.options ? MessageOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toAmino(e) : undefined); - } - else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } - else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object) { - return DescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DescriptorProto.decode(message.value); - }, - toProto(message) { - return DescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.DescriptorProto", - value: DescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ExtensionRange() { - return { - start: 0, - end: 0, - options: undefined - }; -} -export const DescriptorProto_ExtensionRange = { - typeUrl: "/google.protobuf.ExtensionRange", - encode(message, writer = BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - if (message.options !== undefined) { - ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ExtensionRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto_ExtensionRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto_ExtensionRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - if (object.options !== undefined && object.options !== null) { - message.options = ExtensionRangeOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - obj.options = message.options ? ExtensionRangeOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DescriptorProto_ExtensionRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DescriptorProto_ExtensionRange.decode(message.value); - }, - toProto(message) { - return DescriptorProto_ExtensionRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ExtensionRange", - value: DescriptorProto_ExtensionRange.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ReservedRange() { - return { - start: 0, - end: 0 - }; -} -export const DescriptorProto_ReservedRange = { - typeUrl: "/google.protobuf.ReservedRange", - encode(message, writer = BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto_ReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto_ReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return DescriptorProto_ReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DescriptorProto_ReservedRange.decode(message.value); - }, - toProto(message) { - return DescriptorProto_ReservedRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ReservedRange", - value: DescriptorProto_ReservedRange.encode(message).finish() - }; - } -}; -function createBaseExtensionRangeOptions() { - return { - uninterpretedOption: [] - }; -} -export const ExtensionRangeOptions = { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtensionRangeOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return ExtensionRangeOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ExtensionRangeOptions.decode(message.value); - }, - toProto(message) { - return ExtensionRangeOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - value: ExtensionRangeOptions.encode(message).finish() - }; - } -}; -function createBaseFieldDescriptorProto() { - return { - name: "", - number: 0, - label: 1, - type: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - options: undefined - }; -} -export const FieldDescriptorProto = { - typeUrl: "/google.protobuf.FieldDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(24).int32(message.number); - } - if (message.label !== 1) { - writer.uint32(32).int32(message.label); - } - if (message.type !== 1) { - writer.uint32(40).int32(message.type); - } - if (message.typeName !== "") { - writer.uint32(50).string(message.typeName); - } - if (message.extendee !== "") { - writer.uint32(18).string(message.extendee); - } - if (message.defaultValue !== "") { - writer.uint32(58).string(message.defaultValue); - } - if (message.oneofIndex !== 0) { - writer.uint32(72).int32(message.oneofIndex); - } - if (message.jsonName !== "") { - writer.uint32(82).string(message.jsonName); - } - if (message.options !== undefined) { - FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFieldDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.label = object.label ?? 1; - message.type = object.type ?? 1; - message.typeName = object.typeName ?? ""; - message.extendee = object.extendee ?? ""; - message.defaultValue = object.defaultValue ?? ""; - message.oneofIndex = object.oneofIndex ?? 0; - message.jsonName = object.jsonName ?? ""; - message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseFieldDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.label !== undefined && object.label !== null) { - message.label = object.label; - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.type_name !== undefined && object.type_name !== null) { - message.typeName = object.type_name; - } - if (object.extendee !== undefined && object.extendee !== null) { - message.extendee = object.extendee; - } - if (object.default_value !== undefined && object.default_value !== null) { - message.defaultValue = object.default_value; - } - if (object.oneof_index !== undefined && object.oneof_index !== null) { - message.oneofIndex = object.oneof_index; - } - if (object.json_name !== undefined && object.json_name !== null) { - message.jsonName = object.json_name; - } - if (object.options !== undefined && object.options !== null) { - message.options = FieldOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.label = message.label === 1 ? undefined : message.label; - obj.type = message.type === 1 ? undefined : message.type; - obj.type_name = message.typeName === "" ? undefined : message.typeName; - obj.extendee = message.extendee === "" ? undefined : message.extendee; - obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; - obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; - obj.json_name = message.jsonName === "" ? undefined : message.jsonName; - obj.options = message.options ? FieldOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return FieldDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return FieldDescriptorProto.decode(message.value); - }, - toProto(message) { - return FieldDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FieldDescriptorProto", - value: FieldDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseOneofDescriptorProto() { - return { - name: "", - options: undefined - }; -} -export const OneofDescriptorProto = { - typeUrl: "/google.protobuf.OneofDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.options !== undefined) { - OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = OneofOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOneofDescriptorProto(); - message.name = object.name ?? ""; - message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseOneofDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.options !== undefined && object.options !== null) { - message.options = OneofOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.options = message.options ? OneofOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return OneofDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return OneofDescriptorProto.decode(message.value); - }, - toProto(message) { - return OneofDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.OneofDescriptorProto", - value: OneofDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto() { - return { - name: "", - value: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -export const EnumDescriptorProto = { - typeUrl: "/google.protobuf.EnumDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.value) { - EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.reservedRange) { - EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(42).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumDescriptorProto(); - message.name = object.name ?? ""; - message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.value = object.value?.map(e => EnumValueDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = EnumOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.value) { - obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toAmino(e) : undefined); - } - else { - obj.value = message.value; - } - obj.options = message.options ? EnumOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); - } - else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } - else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object) { - return EnumDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EnumDescriptorProto.decode(message.value); - }, - toProto(message) { - return EnumDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumDescriptorProto", - value: EnumDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto_EnumReservedRange() { - return { - start: 0, - end: 0 - }; -} -export const EnumDescriptorProto_EnumReservedRange = { - typeUrl: "/google.protobuf.EnumReservedRange", - encode(message, writer = BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EnumDescriptorProto_EnumReservedRange.decode(message.value); - }, - toProto(message) { - return EnumDescriptorProto_EnumReservedRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumReservedRange", - value: EnumDescriptorProto_EnumReservedRange.encode(message).finish() - }; - } -}; -function createBaseEnumValueDescriptorProto() { - return { - name: "", - number: 0, - options: undefined - }; -} -export const EnumValueDescriptorProto = { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.options !== undefined) { - EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumValueDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEnumValueDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.options !== undefined && object.options !== null) { - message.options = EnumValueOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.options = message.options ? EnumValueOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return EnumValueDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EnumValueDescriptorProto.decode(message.value); - }, - toProto(message) { - return EnumValueDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - value: EnumValueDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseServiceDescriptorProto() { - return { - name: "", - method: [], - options: undefined - }; -} -export const ServiceDescriptorProto = { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.method) { - MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.method.push(MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = ServiceOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseServiceDescriptorProto(); - message.name = object.name ?? ""; - message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseServiceDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.method = object.method?.map(e => MethodDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = ServiceOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.method) { - obj.method = message.method.map(e => e ? MethodDescriptorProto.toAmino(e) : undefined); - } - else { - obj.method = message.method; - } - obj.options = message.options ? ServiceOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ServiceDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ServiceDescriptorProto.decode(message.value); - }, - toProto(message) { - return ServiceDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - value: ServiceDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseMethodDescriptorProto() { - return { - name: "", - inputType: "", - outputType: "", - options: undefined, - clientStreaming: false, - serverStreaming: false - }; -} -export const MethodDescriptorProto = { - typeUrl: "/google.protobuf.MethodDescriptorProto", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.inputType !== "") { - writer.uint32(18).string(message.inputType); - } - if (message.outputType !== "") { - writer.uint32(26).string(message.outputType); - } - if (message.options !== undefined) { - MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); - } - if (message.clientStreaming === true) { - writer.uint32(40).bool(message.clientStreaming); - } - if (message.serverStreaming === true) { - writer.uint32(48).bool(message.serverStreaming); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMethodDescriptorProto(); - message.name = object.name ?? ""; - message.inputType = object.inputType ?? ""; - message.outputType = object.outputType ?? ""; - message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined; - message.clientStreaming = object.clientStreaming ?? false; - message.serverStreaming = object.serverStreaming ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMethodDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.input_type !== undefined && object.input_type !== null) { - message.inputType = object.input_type; - } - if (object.output_type !== undefined && object.output_type !== null) { - message.outputType = object.output_type; - } - if (object.options !== undefined && object.options !== null) { - message.options = MethodOptions.fromAmino(object.options); - } - if (object.client_streaming !== undefined && object.client_streaming !== null) { - message.clientStreaming = object.client_streaming; - } - if (object.server_streaming !== undefined && object.server_streaming !== null) { - message.serverStreaming = object.server_streaming; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.input_type = message.inputType === "" ? undefined : message.inputType; - obj.output_type = message.outputType === "" ? undefined : message.outputType; - obj.options = message.options ? MethodOptions.toAmino(message.options) : undefined; - obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; - obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; - return obj; - }, - fromAminoMsg(object) { - return MethodDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MethodDescriptorProto.decode(message.value); - }, - toProto(message) { - return MethodDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MethodDescriptorProto", - value: MethodDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseFileOptions() { - return { - javaPackage: "", - javaOuterClassname: "", - javaMultipleFiles: false, - javaGenerateEqualsAndHash: false, - javaStringCheckUtf8: false, - optimizeFor: 1, - goPackage: "", - ccGenericServices: false, - javaGenericServices: false, - pyGenericServices: false, - phpGenericServices: false, - deprecated: false, - ccEnableArenas: false, - objcClassPrefix: "", - csharpNamespace: "", - swiftPrefix: "", - phpClassPrefix: "", - phpNamespace: "", - phpMetadataNamespace: "", - rubyPackage: "", - uninterpretedOption: [] - }; -} -export const FileOptions = { - typeUrl: "/google.protobuf.FileOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.javaPackage !== "") { - writer.uint32(10).string(message.javaPackage); - } - if (message.javaOuterClassname !== "") { - writer.uint32(66).string(message.javaOuterClassname); - } - if (message.javaMultipleFiles === true) { - writer.uint32(80).bool(message.javaMultipleFiles); - } - if (message.javaGenerateEqualsAndHash === true) { - writer.uint32(160).bool(message.javaGenerateEqualsAndHash); - } - if (message.javaStringCheckUtf8 === true) { - writer.uint32(216).bool(message.javaStringCheckUtf8); - } - if (message.optimizeFor !== 1) { - writer.uint32(72).int32(message.optimizeFor); - } - if (message.goPackage !== "") { - writer.uint32(90).string(message.goPackage); - } - if (message.ccGenericServices === true) { - writer.uint32(128).bool(message.ccGenericServices); - } - if (message.javaGenericServices === true) { - writer.uint32(136).bool(message.javaGenericServices); - } - if (message.pyGenericServices === true) { - writer.uint32(144).bool(message.pyGenericServices); - } - if (message.phpGenericServices === true) { - writer.uint32(336).bool(message.phpGenericServices); - } - if (message.deprecated === true) { - writer.uint32(184).bool(message.deprecated); - } - if (message.ccEnableArenas === true) { - writer.uint32(248).bool(message.ccEnableArenas); - } - if (message.objcClassPrefix !== "") { - writer.uint32(290).string(message.objcClassPrefix); - } - if (message.csharpNamespace !== "") { - writer.uint32(298).string(message.csharpNamespace); - } - if (message.swiftPrefix !== "") { - writer.uint32(314).string(message.swiftPrefix); - } - if (message.phpClassPrefix !== "") { - writer.uint32(322).string(message.phpClassPrefix); - } - if (message.phpNamespace !== "") { - writer.uint32(330).string(message.phpNamespace); - } - if (message.phpMetadataNamespace !== "") { - writer.uint32(354).string(message.phpMetadataNamespace); - } - if (message.rubyPackage !== "") { - writer.uint32(362).string(message.rubyPackage); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileOptions(); - message.javaPackage = object.javaPackage ?? ""; - message.javaOuterClassname = object.javaOuterClassname ?? ""; - message.javaMultipleFiles = object.javaMultipleFiles ?? false; - message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; - message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; - message.optimizeFor = object.optimizeFor ?? 1; - message.goPackage = object.goPackage ?? ""; - message.ccGenericServices = object.ccGenericServices ?? false; - message.javaGenericServices = object.javaGenericServices ?? false; - message.pyGenericServices = object.pyGenericServices ?? false; - message.phpGenericServices = object.phpGenericServices ?? false; - message.deprecated = object.deprecated ?? false; - message.ccEnableArenas = object.ccEnableArenas ?? false; - message.objcClassPrefix = object.objcClassPrefix ?? ""; - message.csharpNamespace = object.csharpNamespace ?? ""; - message.swiftPrefix = object.swiftPrefix ?? ""; - message.phpClassPrefix = object.phpClassPrefix ?? ""; - message.phpNamespace = object.phpNamespace ?? ""; - message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; - message.rubyPackage = object.rubyPackage ?? ""; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFileOptions(); - if (object.java_package !== undefined && object.java_package !== null) { - message.javaPackage = object.java_package; - } - if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { - message.javaOuterClassname = object.java_outer_classname; - } - if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { - message.javaMultipleFiles = object.java_multiple_files; - } - if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { - message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; - } - if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { - message.javaStringCheckUtf8 = object.java_string_check_utf8; - } - if (object.optimize_for !== undefined && object.optimize_for !== null) { - message.optimizeFor = object.optimize_for; - } - if (object.go_package !== undefined && object.go_package !== null) { - message.goPackage = object.go_package; - } - if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { - message.ccGenericServices = object.cc_generic_services; - } - if (object.java_generic_services !== undefined && object.java_generic_services !== null) { - message.javaGenericServices = object.java_generic_services; - } - if (object.py_generic_services !== undefined && object.py_generic_services !== null) { - message.pyGenericServices = object.py_generic_services; - } - if (object.php_generic_services !== undefined && object.php_generic_services !== null) { - message.phpGenericServices = object.php_generic_services; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { - message.ccEnableArenas = object.cc_enable_arenas; - } - if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { - message.objcClassPrefix = object.objc_class_prefix; - } - if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { - message.csharpNamespace = object.csharp_namespace; - } - if (object.swift_prefix !== undefined && object.swift_prefix !== null) { - message.swiftPrefix = object.swift_prefix; - } - if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { - message.phpClassPrefix = object.php_class_prefix; - } - if (object.php_namespace !== undefined && object.php_namespace !== null) { - message.phpNamespace = object.php_namespace; - } - if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { - message.phpMetadataNamespace = object.php_metadata_namespace; - } - if (object.ruby_package !== undefined && object.ruby_package !== null) { - message.rubyPackage = object.ruby_package; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; - obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; - obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; - obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; - obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; - obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; - obj.go_package = message.goPackage === "" ? undefined : message.goPackage; - obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; - obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; - obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; - obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; - obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; - obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; - obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; - obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; - obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; - obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; - obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return FileOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return FileOptions.decode(message.value); - }, - toProto(message) { - return FileOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileOptions", - value: FileOptions.encode(message).finish() - }; - } -}; -function createBaseMessageOptions() { - return { - messageSetWireFormat: false, - noStandardDescriptorAccessor: false, - deprecated: false, - mapEntry: false, - uninterpretedOption: [] - }; -} -export const MessageOptions = { - typeUrl: "/google.protobuf.MessageOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.messageSetWireFormat === true) { - writer.uint32(8).bool(message.messageSetWireFormat); - } - if (message.noStandardDescriptorAccessor === true) { - writer.uint32(16).bool(message.noStandardDescriptorAccessor); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.mapEntry === true) { - writer.uint32(56).bool(message.mapEntry); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMessageOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMessageOptions(); - message.messageSetWireFormat = object.messageSetWireFormat ?? false; - message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; - message.deprecated = object.deprecated ?? false; - message.mapEntry = object.mapEntry ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMessageOptions(); - if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { - message.messageSetWireFormat = object.message_set_wire_format; - } - if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { - message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.map_entry !== undefined && object.map_entry !== null) { - message.mapEntry = object.map_entry; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; - obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return MessageOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MessageOptions.decode(message.value); - }, - toProto(message) { - return MessageOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MessageOptions", - value: MessageOptions.encode(message).finish() - }; - } -}; -function createBaseFieldOptions() { - return { - ctype: 1, - packed: false, - jstype: 1, - lazy: false, - deprecated: false, - weak: false, - uninterpretedOption: [] - }; -} -export const FieldOptions = { - typeUrl: "/google.protobuf.FieldOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.ctype !== 1) { - writer.uint32(8).int32(message.ctype); - } - if (message.packed === true) { - writer.uint32(16).bool(message.packed); - } - if (message.jstype !== 1) { - writer.uint32(48).int32(message.jstype); - } - if (message.lazy === true) { - writer.uint32(40).bool(message.lazy); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.weak === true) { - writer.uint32(80).bool(message.weak); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFieldOptions(); - message.ctype = object.ctype ?? 1; - message.packed = object.packed ?? false; - message.jstype = object.jstype ?? 1; - message.lazy = object.lazy ?? false; - message.deprecated = object.deprecated ?? false; - message.weak = object.weak ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFieldOptions(); - if (object.ctype !== undefined && object.ctype !== null) { - message.ctype = object.ctype; - } - if (object.packed !== undefined && object.packed !== null) { - message.packed = object.packed; - } - if (object.jstype !== undefined && object.jstype !== null) { - message.jstype = object.jstype; - } - if (object.lazy !== undefined && object.lazy !== null) { - message.lazy = object.lazy; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.weak !== undefined && object.weak !== null) { - message.weak = object.weak; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.ctype = message.ctype === 1 ? undefined : message.ctype; - obj.packed = message.packed === false ? undefined : message.packed; - obj.jstype = message.jstype === 1 ? undefined : message.jstype; - obj.lazy = message.lazy === false ? undefined : message.lazy; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.weak = message.weak === false ? undefined : message.weak; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return FieldOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return FieldOptions.decode(message.value); - }, - toProto(message) { - return FieldOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FieldOptions", - value: FieldOptions.encode(message).finish() - }; - } -}; -function createBaseOneofOptions() { - return { - uninterpretedOption: [] - }; -} -export const OneofOptions = { - typeUrl: "/google.protobuf.OneofOptions", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return OneofOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return OneofOptions.decode(message.value); - }, - toProto(message) { - return OneofOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.OneofOptions", - value: OneofOptions.encode(message).finish() - }; - } -}; -function createBaseEnumOptions() { - return { - allowAlias: false, - deprecated: false, - uninterpretedOption: [] - }; -} -export const EnumOptions = { - typeUrl: "/google.protobuf.EnumOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.allowAlias === true) { - writer.uint32(16).bool(message.allowAlias); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumOptions(); - message.allowAlias = object.allowAlias ?? false; - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumOptions(); - if (object.allow_alias !== undefined && object.allow_alias !== null) { - message.allowAlias = object.allow_alias; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return EnumOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EnumOptions.decode(message.value); - }, - toProto(message) { - return EnumOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumOptions", - value: EnumOptions.encode(message).finish() - }; - } -}; -function createBaseEnumValueOptions() { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -export const EnumValueOptions = { - typeUrl: "/google.protobuf.EnumValueOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(8).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumValueOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumValueOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return EnumValueOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EnumValueOptions.decode(message.value); - }, - toProto(message) { - return EnumValueOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumValueOptions", - value: EnumValueOptions.encode(message).finish() - }; - } -}; -function createBaseServiceOptions() { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -export const ServiceOptions = { - typeUrl: "/google.protobuf.ServiceOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseServiceOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseServiceOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return ServiceOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ServiceOptions.decode(message.value); - }, - toProto(message) { - return ServiceOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ServiceOptions", - value: ServiceOptions.encode(message).finish() - }; - } -}; -function createBaseMethodOptions() { - return { - deprecated: false, - idempotencyLevel: 1, - uninterpretedOption: [] - }; -} -export const MethodOptions = { - typeUrl: "/google.protobuf.MethodOptions", - encode(message, writer = BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - if (message.idempotencyLevel !== 1) { - writer.uint32(272).int32(message.idempotencyLevel); - } - for (const v of message.uninterpretedOption) { - UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMethodOptions(); - message.deprecated = object.deprecated ?? false; - message.idempotencyLevel = object.idempotencyLevel ?? 1; - message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMethodOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.idempotency_level !== undefined && object.idempotency_level !== null) { - message.idempotencyLevel = object.idempotency_level; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return MethodOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MethodOptions.decode(message.value); - }, - toProto(message) { - return MethodOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MethodOptions", - value: MethodOptions.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption() { - return { - name: [], - identifierValue: "", - positiveIntValue: BigInt(0), - negativeIntValue: BigInt(0), - doubleValue: 0, - stringValue: new Uint8Array(), - aggregateValue: "" - }; -} -export const UninterpretedOption = { - typeUrl: "/google.protobuf.UninterpretedOption", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.name) { - UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.identifierValue !== "") { - writer.uint32(26).string(message.identifierValue); - } - if (message.positiveIntValue !== BigInt(0)) { - writer.uint32(32).uint64(message.positiveIntValue); - } - if (message.negativeIntValue !== BigInt(0)) { - writer.uint32(40).int64(message.negativeIntValue); - } - if (message.doubleValue !== 0) { - writer.uint32(49).double(message.doubleValue); - } - if (message.stringValue.length !== 0) { - writer.uint32(58).bytes(message.stringValue); - } - if (message.aggregateValue !== "") { - writer.uint32(66).string(message.aggregateValue); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || []; - message.identifierValue = object.identifierValue ?? ""; - message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); - message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); - message.doubleValue = object.doubleValue ?? 0; - message.stringValue = object.stringValue ?? new Uint8Array(); - message.aggregateValue = object.aggregateValue ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => UninterpretedOption_NamePart.fromAmino(e)) || []; - if (object.identifier_value !== undefined && object.identifier_value !== null) { - message.identifierValue = object.identifier_value; - } - if (object.positive_int_value !== undefined && object.positive_int_value !== null) { - message.positiveIntValue = BigInt(object.positive_int_value); - } - if (object.negative_int_value !== undefined && object.negative_int_value !== null) { - message.negativeIntValue = BigInt(object.negative_int_value); - } - if (object.double_value !== undefined && object.double_value !== null) { - message.doubleValue = object.double_value; - } - if (object.string_value !== undefined && object.string_value !== null) { - message.stringValue = bytesFromBase64(object.string_value); - } - if (object.aggregate_value !== undefined && object.aggregate_value !== null) { - message.aggregateValue = object.aggregate_value; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.name) { - obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toAmino(e) : undefined); - } - else { - obj.name = message.name; - } - obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; - obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; - obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; - obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; - obj.string_value = message.stringValue ? base64FromBytes(message.stringValue) : undefined; - obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; - return obj; - }, - fromAminoMsg(object) { - return UninterpretedOption.fromAmino(object.value); - }, - fromProtoMsg(message) { - return UninterpretedOption.decode(message.value); - }, - toProto(message) { - return UninterpretedOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.UninterpretedOption", - value: UninterpretedOption.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption_NamePart() { - return { - namePart: "", - isExtension: false - }; -} -export const UninterpretedOption_NamePart = { - typeUrl: "/google.protobuf.NamePart", - encode(message, writer = BinaryWriter.create()) { - if (message.namePart !== "") { - writer.uint32(10).string(message.namePart); - } - if (message.isExtension === true) { - writer.uint32(16).bool(message.isExtension); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption_NamePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUninterpretedOption_NamePart(); - message.namePart = object.namePart ?? ""; - message.isExtension = object.isExtension ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseUninterpretedOption_NamePart(); - if (object.name_part !== undefined && object.name_part !== null) { - message.namePart = object.name_part; - } - if (object.is_extension !== undefined && object.is_extension !== null) { - message.isExtension = object.is_extension; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name_part = message.namePart === "" ? undefined : message.namePart; - obj.is_extension = message.isExtension === false ? undefined : message.isExtension; - return obj; - }, - fromAminoMsg(object) { - return UninterpretedOption_NamePart.fromAmino(object.value); - }, - fromProtoMsg(message) { - return UninterpretedOption_NamePart.decode(message.value); - }, - toProto(message) { - return UninterpretedOption_NamePart.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.NamePart", - value: UninterpretedOption_NamePart.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo() { - return { - location: [] - }; -} -export const SourceCodeInfo = { - typeUrl: "/google.protobuf.SourceCodeInfo", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.location) { - SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => SourceCodeInfo_Location.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.location) { - obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toAmino(e) : undefined); - } - else { - obj.location = message.location; - } - return obj; - }, - fromAminoMsg(object) { - return SourceCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SourceCodeInfo.decode(message.value); - }, - toProto(message) { - return SourceCodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.SourceCodeInfo", - value: SourceCodeInfo.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo_Location() { - return { - path: [], - span: [], - leadingComments: "", - trailingComments: "", - leadingDetachedComments: [] - }; -} -export const SourceCodeInfo_Location = { - typeUrl: "/google.protobuf.Location", - encode(message, writer = BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(18).fork(); - for (const v of message.span) { - writer.int32(v); - } - writer.ldelim(); - if (message.leadingComments !== "") { - writer.uint32(26).string(message.leadingComments); - } - if (message.trailingComments !== "") { - writer.uint32(34).string(message.trailingComments); - } - for (const v of message.leadingDetachedComments) { - writer.uint32(50).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo_Location(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } - else { - message.path.push(reader.int32()); - } - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.span.push(reader.int32()); - } - } - else { - message.span.push(reader.int32()); - } - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - message.leadingComments = object.leadingComments ?? ""; - message.trailingComments = object.trailingComments ?? ""; - message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - if (object.leading_comments !== undefined && object.leading_comments !== null) { - message.leadingComments = object.leading_comments; - } - if (object.trailing_comments !== undefined && object.trailing_comments !== null) { - message.trailingComments = object.trailing_comments; - } - message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } - else { - obj.path = message.path; - } - if (message.span) { - obj.span = message.span.map(e => e); - } - else { - obj.span = message.span; - } - obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; - obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; - if (message.leadingDetachedComments) { - obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); - } - else { - obj.leading_detached_comments = message.leadingDetachedComments; - } - return obj; - }, - fromAminoMsg(object) { - return SourceCodeInfo_Location.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SourceCodeInfo_Location.decode(message.value); - }, - toProto(message) { - return SourceCodeInfo_Location.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Location", - value: SourceCodeInfo_Location.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo() { - return { - annotation: [] - }; -} -export const GeneratedCodeInfo = { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.annotation) { - GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.annotation) { - obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toAmino(e) : undefined); - } - else { - obj.annotation = message.annotation; - } - return obj; - }, - fromAminoMsg(object) { - return GeneratedCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return GeneratedCodeInfo.decode(message.value); - }, - toProto(message) { - return GeneratedCodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - value: GeneratedCodeInfo.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo_Annotation() { - return { - path: [], - sourceFile: "", - begin: 0, - end: 0 - }; -} -export const GeneratedCodeInfo_Annotation = { - typeUrl: "/google.protobuf.Annotation", - encode(message, writer = BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - if (message.sourceFile !== "") { - writer.uint32(18).string(message.sourceFile); - } - if (message.begin !== 0) { - writer.uint32(24).int32(message.begin); - } - if (message.end !== 0) { - writer.uint32(32).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo_Annotation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } - else { - message.path.push(reader.int32()); - } - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - message.sourceFile = object.sourceFile ?? ""; - message.begin = object.begin ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - if (object.source_file !== undefined && object.source_file !== null) { - message.sourceFile = object.source_file; - } - if (object.begin !== undefined && object.begin !== null) { - message.begin = object.begin; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } - else { - obj.path = message.path; - } - obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; - obj.begin = message.begin === 0 ? undefined : message.begin; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return GeneratedCodeInfo_Annotation.fromAmino(object.value); - }, - fromProtoMsg(message) { - return GeneratedCodeInfo_Annotation.decode(message.value); - }, - toProto(message) { - return GeneratedCodeInfo_Annotation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Annotation", - value: GeneratedCodeInfo_Annotation.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/google/protobuf/duration.js b/packages/api/dist/esm/google/protobuf/duration.js deleted file mode 100644 index 0ed30a3d..00000000 --- a/packages/api/dist/esm/google/protobuf/duration.js +++ /dev/null @@ -1,71 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseDuration() { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -export const Duration = { - typeUrl: "/google.protobuf.Duration", - encode(message, writer = BinaryWriter.create()) { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuration(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDuration(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object) { - const value = BigInt(object); - return { - seconds: value / BigInt("1000000000"), - nanos: Number(value % BigInt("1000000000")) - }; - }, - toAmino(message) { - return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); - }, - fromAminoMsg(object) { - return Duration.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Duration.decode(message.value); - }, - toProto(message) { - return Duration.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Duration", - value: Duration.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/google/protobuf/timestamp.js b/packages/api/dist/esm/google/protobuf/timestamp.js deleted file mode 100644 index 373ac581..00000000 --- a/packages/api/dist/esm/google/protobuf/timestamp.js +++ /dev/null @@ -1,68 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -import { fromJsonTimestamp, fromTimestamp } from "../../helpers"; -function createBaseTimestamp() { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -export const Timestamp = { - typeUrl: "/google.protobuf.Timestamp", - encode(message, writer = BinaryWriter.create()) { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTimestamp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTimestamp(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object) { - return fromJsonTimestamp(object); - }, - toAmino(message) { - return fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z"); - }, - fromAminoMsg(object) { - return Timestamp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Timestamp.decode(message.value); - }, - toProto(message) { - return Timestamp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Timestamp", - value: Timestamp.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/helpers.js b/packages/api/dist/esm/helpers.js deleted file mode 100644 index d73c455a..00000000 --- a/packages/api/dist/esm/helpers.js +++ /dev/null @@ -1,126 +0,0 @@ -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -var globalThis = (() => { - if (typeof globalThis !== 'undefined') - return globalThis; - if (typeof self !== 'undefined') - return self; - if (typeof window !== 'undefined') - return window; - if (typeof global !== 'undefined') - return global; - throw 'Unable to locate global object'; -})(); -const atob = globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); -export function bytesFromBase64(b64) { - const bin = atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; -} -const btoa = globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); -export function base64FromBytes(arr) { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return btoa(bin.join('')); -} -export function omitDefault(input) { - if (typeof input === 'string') { - return input === '' ? undefined : input; - } - if (typeof input === 'number') { - return input === 0 ? undefined : input; - } - if (typeof input === "boolean") { - return input === false ? undefined : input; - } - if (typeof input === 'bigint') { - return input === BigInt(0) ? undefined : input; - } - throw new Error(`Got unsupported type ${typeof input}`); -} -export function toDuration(duration) { - return { - seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), - nanos: parseInt(duration) % 1000000000 - }; -} -export function fromDuration(duration) { - return (parseInt(duration.seconds.toString()) * 1000000000 + - duration.nanos).toString(); -} -export function isSet(value) { - return value !== null && value !== undefined; -} -export function isObject(value) { - return typeof value === 'object' && value !== null; -} -export const setPaginationParams = (options, pagination) => { - if (!pagination) { - return options; - } - if (typeof pagination?.countTotal !== 'undefined') { - options.params['pagination.count_total'] = pagination.countTotal; - } - if (typeof pagination?.key !== 'undefined') { - // String to Uint8Array - // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); - // Uint8Array to String - options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64'); - } - if (typeof pagination?.limit !== 'undefined') { - options.params['pagination.limit'] = pagination.limit.toString(); - } - if (typeof pagination?.offset !== 'undefined') { - options.params['pagination.offset'] = pagination.offset.toString(); - } - if (typeof pagination?.reverse !== 'undefined') { - options.params['pagination.reverse'] = pagination.reverse; - } - return options; -}; -export function toTimestamp(date) { - const seconds = numberToLong(date.getTime() / 1000); - const nanos = (date.getTime() % 1000) * 1000000; - return { - seconds, - nanos - }; -} -export function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -const timestampFromJSON = (object) => { - return { - seconds: isSet(object.seconds) - ? BigInt(object.seconds.toString()) - : BigInt(0), - nanos: isSet(object.nanos) ? Number(object.nanos) : 0 - }; -}; -export function fromJsonTimestamp(o) { - if (o instanceof Date) { - return toTimestamp(o); - } - else if (typeof o === 'string') { - return toTimestamp(new Date(o)); - } - else { - return timestampFromJSON(o); - } -} -function numberToLong(number) { - return BigInt(Math.trunc(number)); -} diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js b/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js deleted file mode 100644 index 9201a1b5..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/genesis.js +++ /dev/null @@ -1,99 +0,0 @@ -//@ts-nocheck -import { DenomTrace, Params } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseGenesisState() { - return { - portId: "", - denomTraces: [], - params: Params.fromPartial({}) - }; -} -export const GenesisState = { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - for (const v of message.denomTraces) { - DenomTrace.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); - break; - case 3: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.portId = object.portId ?? ""; - message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); - } - else { - obj.denom_traces = message.denomTraces; - } - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.js deleted file mode 100644 index daf4f35c..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/query.js +++ /dev/null @@ -1,708 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { DenomTrace, Params } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseQueryDenomTraceRequest() { - return { - hash: "" - }; -} -export const QueryDenomTraceRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTraceRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTraceRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomTraceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTraceRequest", - value: QueryDenomTraceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomTraceRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomTraceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - value: QueryDenomTraceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTraceResponse() { - return { - denomTrace: undefined - }; -} -export const QueryDenomTraceResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.denomTrace !== undefined) { - DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTrace = DenomTrace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTraceResponse(); - message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? DenomTrace.fromPartial(object.denomTrace) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTraceResponse(); - if (object.denom_trace !== undefined && object.denom_trace !== null) { - message.denomTrace = DenomTrace.fromAmino(object.denom_trace); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom_trace = message.denomTrace ? DenomTrace.toAmino(message.denomTrace) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomTraceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTraceResponse", - value: QueryDenomTraceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomTraceResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomTraceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - value: QueryDenomTraceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesRequest() { - return { - pagination: undefined - }; -} -export const QueryDenomTracesRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTracesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTracesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomTracesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTracesRequest", - value: QueryDenomTracesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomTracesRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomTracesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - value: QueryDenomTracesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesResponse() { - return { - denomTraces: [], - pagination: undefined - }; -} -export const QueryDenomTracesResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.denomTraces) { - DenomTrace.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTraces.push(DenomTrace.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); - } - else { - obj.denom_traces = message.denomTraces; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomTracesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTracesResponse", - value: QueryDenomTracesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomTracesResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomTracesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - value: QueryDenomTracesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashRequest() { - return { - trace: "" - }; -} -export const QueryDenomHashRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.trace !== "") { - writer.uint32(10).string(message.trace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.trace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomHashRequest(); - message.trace = object.trace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomHashRequest(); - if (object.trace !== undefined && object.trace !== null) { - message.trace = object.trace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.trace = message.trace === "" ? undefined : message.trace; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomHashRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomHashRequest", - value: QueryDenomHashRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomHashRequest.decode(message.value); - }, - toProto(message) { - return QueryDenomHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - value: QueryDenomHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashResponse() { - return { - hash: "" - }; -} -export const QueryDenomHashResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomHashResponse(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomHashResponse(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return QueryDenomHashResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomHashResponse", - value: QueryDenomHashResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryDenomHashResponse.decode(message.value); - }, - toProto(message) { - return QueryDenomHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - value: QueryDenomHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressRequest() { - return { - portId: "", - channelId: "" - }; -} -export const QueryEscrowAddressRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - if (message.channelId !== "") { - writer.uint32(18).string(message.channelId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.channelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryEscrowAddressRequest(); - message.portId = object.portId ?? ""; - message.channelId = object.channelId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryEscrowAddressRequest(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - if (object.channel_id !== undefined && object.channel_id !== null) { - message.channelId = object.channel_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - obj.channel_id = message.channelId === "" ? undefined : message.channelId; - return obj; - }, - fromAminoMsg(object) { - return QueryEscrowAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryEscrowAddressRequest", - value: QueryEscrowAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryEscrowAddressRequest.decode(message.value); - }, - toProto(message) { - return QueryEscrowAddressRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - value: QueryEscrowAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressResponse() { - return { - escrowAddress: "" - }; -} -export const QueryEscrowAddressResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.escrowAddress !== "") { - writer.uint32(10).string(message.escrowAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.escrowAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryEscrowAddressResponse(); - message.escrowAddress = object.escrowAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryEscrowAddressResponse(); - if (object.escrow_address !== undefined && object.escrow_address !== null) { - message.escrowAddress = object.escrow_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryEscrowAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryEscrowAddressResponse", - value: QueryEscrowAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryEscrowAddressResponse.decode(message.value); - }, - toProto(message) { - return QueryEscrowAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - value: QueryEscrowAddressResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js deleted file mode 100644 index b83062e5..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/query.lcd.js +++ /dev/null @@ -1,46 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - /* DenomTrace queries a denomination trace information. */ - async denomTrace(params) { - const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; - return await this.req.get(endpoint); - } - /* DenomTraces queries all denomination traces. */ - async denomTraces(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/apps/transfer/v1/denom_traces`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the ibc-transfer module. */ - async params(_params = {}) { - const endpoint = `ibc/apps/transfer/v1/params`; - return await this.req.get(endpoint); - } - /* DenomHash queries a denomination hash information. */ - async denomHash(params) { - const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; - return await this.req.get(endpoint); - } - /* EscrowAddress returns the escrow address for a particular port and channel id. */ - async escrowAddress(params) { - const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js b/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js deleted file mode 100644 index 86f11c32..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +++ /dev/null @@ -1,62 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - denomTrace(request) { - const data = QueryDenomTraceRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); - return promise.then(data => QueryDenomTraceResponse.decode(new BinaryReader(data))); - } - denomTraces(request = { - pagination: undefined - }) { - const data = QueryDenomTracesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); - return promise.then(data => QueryDenomTracesResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - denomHash(request) { - const data = QueryDenomHashRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); - return promise.then(data => QueryDenomHashResponse.decode(new BinaryReader(data))); - } - escrowAddress(request) { - const data = QueryEscrowAddressRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); - return promise.then(data => QueryEscrowAddressResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - denomTrace(request) { - return queryService.denomTrace(request); - }, - denomTraces(request) { - return queryService.denomTraces(request); - }, - params(request) { - return queryService.params(request); - }, - denomHash(request) { - return queryService.denomHash(request); - }, - escrowAddress(request) { - return queryService.escrowAddress(request); - } - }; -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js b/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js deleted file mode 100644 index db7b8646..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/transfer.js +++ /dev/null @@ -1,164 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseDenomTrace() { - return { - path: "", - baseDenom: "" - }; -} -export const DenomTrace = { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - encode(message, writer = BinaryWriter.create()) { - if (message.path !== "") { - writer.uint32(10).string(message.path); - } - if (message.baseDenom !== "") { - writer.uint32(18).string(message.baseDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomTrace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.baseDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomTrace(); - message.path = object.path ?? ""; - message.baseDenom = object.baseDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDenomTrace(); - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.base_denom !== undefined && object.base_denom !== null) { - message.baseDenom = object.base_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.path = message.path === "" ? undefined : message.path; - obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; - return obj; - }, - fromAminoMsg(object) { - return DenomTrace.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomTrace", - value: DenomTrace.toAmino(message) - }; - }, - fromProtoMsg(message) { - return DenomTrace.decode(message.value); - }, - toProto(message) { - return DenomTrace.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - value: DenomTrace.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - sendEnabled: false, - receiveEnabled: false - }; -} -export const Params = { - typeUrl: "/ibc.applications.transfer.v1.Params", - encode(message, writer = BinaryWriter.create()) { - if (message.sendEnabled === true) { - writer.uint32(8).bool(message.sendEnabled); - } - if (message.receiveEnabled === true) { - writer.uint32(16).bool(message.receiveEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled = reader.bool(); - break; - case 2: - message.receiveEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled ?? false; - message.receiveEnabled = object.receiveEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.send_enabled !== undefined && object.send_enabled !== null) { - message.sendEnabled = object.send_enabled; - } - if (object.receive_enabled !== undefined && object.receive_enabled !== null) { - message.receiveEnabled = object.receive_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; - obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.Params", - value: Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js deleted file mode 100644 index cbdd6b53..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.amino.js +++ /dev/null @@ -1,9 +0,0 @@ -//@ts-nocheck -import { MsgTransfer } from "./tx"; -export const AminoConverter = { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: "cosmos-sdk/MsgTransfer", - toAmino: MsgTransfer.toAmino, - fromAmino: MsgTransfer.fromAmino - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js deleted file mode 100644 index e34b38a0..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.js +++ /dev/null @@ -1,201 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../../../cosmos/base/v1beta1/coin"; -import { Height } from "../../../core/client/v1/client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseMsgTransfer() { - return { - sourcePort: "", - sourceChannel: "", - token: Coin.fromPartial({}), - sender: "", - receiver: "", - timeoutHeight: Height.fromPartial({}), - timeoutTimestamp: BigInt(0) - }; -} -export const MsgTransfer = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - encode(message, writer = BinaryWriter.create()) { - if (message.sourcePort !== "") { - writer.uint32(10).string(message.sourcePort); - } - if (message.sourceChannel !== "") { - writer.uint32(18).string(message.sourceChannel); - } - if (message.token !== undefined) { - Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); - } - if (message.sender !== "") { - writer.uint32(34).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(42).string(message.receiver); - } - if (message.timeoutHeight !== undefined) { - Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); - } - if (message.timeoutTimestamp !== BigInt(0)) { - writer.uint32(56).uint64(message.timeoutTimestamp); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sourcePort = reader.string(); - break; - case 2: - message.sourceChannel = reader.string(); - break; - case 3: - message.token = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.sender = reader.string(); - break; - case 5: - message.receiver = reader.string(); - break; - case 6: - message.timeoutHeight = Height.decode(reader, reader.uint32()); - break; - case 7: - message.timeoutTimestamp = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTransfer(); - message.sourcePort = object.sourcePort ?? ""; - message.sourceChannel = object.sourceChannel ?? ""; - message.token = object.token !== undefined && object.token !== null ? Coin.fromPartial(object.token) : undefined; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Height.fromPartial(object.timeoutHeight) : undefined; - message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgTransfer(); - if (object.source_port !== undefined && object.source_port !== null) { - message.sourcePort = object.source_port; - } - if (object.source_channel !== undefined && object.source_channel !== null) { - message.sourceChannel = object.source_channel; - } - if (object.token !== undefined && object.token !== null) { - message.token = Coin.fromAmino(object.token); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.receiver !== undefined && object.receiver !== null) { - message.receiver = object.receiver; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = Height.fromAmino(object.timeout_height); - } - if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { - message.timeoutTimestamp = BigInt(object.timeout_timestamp); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; - obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; - obj.token = message.token ? Coin.toAmino(message.token) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.receiver = message.receiver === "" ? undefined : message.receiver; - obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; - obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgTransfer.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgTransfer", - value: MsgTransfer.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgTransfer.decode(message.value); - }, - toProto(message) { - return MsgTransfer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.encode(message).finish() - }; - } -}; -function createBaseMsgTransferResponse() { - return {}; -} -export const MsgTransferResponse = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransferResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgTransferResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgTransferResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgTransferResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgTransferResponse", - value: MsgTransferResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgTransferResponse.decode(message.value); - }, - toProto(message) { - return MsgTransferResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - value: MsgTransferResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js deleted file mode 100644 index 2e4ed8fa..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.registry.js +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgTransfer } from "./tx"; -export const registry = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.encode(value).finish() - }; - } - }, - withTypeUrl: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value - }; - } - }, - fromPartial: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: MsgTransfer.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js b/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js deleted file mode 100644 index 6b260e53..00000000 --- a/packages/api/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +++ /dev/null @@ -1,14 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { MsgTransfer, MsgTransferResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.transfer = this.transfer.bind(this); - } - transfer(request) { - const data = MsgTransfer.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); - return promise.then(data => MsgTransferResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/ibc/bundle.js b/packages/api/dist/esm/ibc/bundle.js deleted file mode 100644 index e3127c8a..00000000 --- a/packages/api/dist/esm/ibc/bundle.js +++ /dev/null @@ -1,64 +0,0 @@ -//@ts-nocheck -import * as _68 from "./applications/transfer/v1/genesis"; -import * as _69 from "./applications/transfer/v1/query"; -import * as _70 from "./applications/transfer/v1/transfer"; -import * as _71 from "./applications/transfer/v1/tx"; -import * as _72 from "./core/client/v1/client"; -import * as _73 from "./core/client/v1/genesis"; -import * as _74 from "./core/client/v1/query"; -import * as _75 from "./core/client/v1/tx"; -import * as _177 from "./applications/transfer/v1/tx.amino"; -import * as _178 from "./core/client/v1/tx.amino"; -import * as _179 from "./applications/transfer/v1/tx.registry"; -import * as _180 from "./core/client/v1/tx.registry"; -import * as _181 from "./applications/transfer/v1/query.lcd"; -import * as _182 from "./core/client/v1/query.lcd"; -import * as _183 from "./applications/transfer/v1/query.rpc.Query"; -import * as _184 from "./core/client/v1/query.rpc.Query"; -import * as _185 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _186 from "./core/client/v1/tx.rpc.msg"; -import * as _220 from "./lcd"; -import * as _221 from "./rpc.query"; -import * as _222 from "./rpc.tx"; -export var ibc; -(function (ibc) { - let applications; - (function (applications) { - let transfer; - (function (transfer) { - transfer.v1 = { - ..._68, - ..._69, - ..._70, - ..._71, - ..._177, - ..._179, - ..._181, - ..._183, - ..._185 - }; - })(transfer = applications.transfer || (applications.transfer = {})); - })(applications = ibc.applications || (ibc.applications = {})); - let core; - (function (core) { - let client; - (function (client) { - client.v1 = { - ..._72, - ..._73, - ..._74, - ..._75, - ..._178, - ..._180, - ..._182, - ..._184, - ..._186 - }; - })(client = core.client || (core.client = {})); - })(core = ibc.core || (ibc.core = {})); - ibc.ClientFactory = { - ..._220, - ..._221, - ..._222 - }; -})(ibc || (ibc = {})); diff --git a/packages/api/dist/esm/ibc/client.js b/packages/api/dist/esm/ibc/client.js deleted file mode 100644 index fd3d6d47..00000000 --- a/packages/api/dist/esm/ibc/client.js +++ /dev/null @@ -1,32 +0,0 @@ -//@ts-nocheck -import { Registry } from "@cosmjs/proto-signing"; -import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry"; -import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry"; -import * as ibcApplicationsTransferV1TxAmino from "./applications/transfer/v1/tx.amino"; -import * as ibcCoreClientV1TxAmino from "./core/client/v1/tx.amino"; -export const ibcAminoConverters = { - ...ibcApplicationsTransferV1TxAmino.AminoConverter, - ...ibcCoreClientV1TxAmino.AminoConverter -}; -export const ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; -export const getSigningIbcClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => { - const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...ibcAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => { - const { registry, aminoTypes } = getSigningIbcClientOptions({ - defaultTypes - }); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/client.js b/packages/api/dist/esm/ibc/core/client/v1/client.js deleted file mode 100644 index ab0f15c7..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/client.js +++ /dev/null @@ -1,611 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../../google/protobuf/any"; -import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseIdentifiedClientState() { - return { - clientId: "", - clientState: undefined - }; -} -export const IdentifiedClientState = { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedClientState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIdentifiedClientState(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseIdentifiedClientState(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return IdentifiedClientState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IdentifiedClientState", - value: IdentifiedClientState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return IdentifiedClientState.decode(message.value); - }, - toProto(message) { - return IdentifiedClientState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - value: IdentifiedClientState.encode(message).finish() - }; - } -}; -function createBaseConsensusStateWithHeight() { - return { - height: Height.fromPartial({}), - consensusState: undefined - }; -} -export const ConsensusStateWithHeight = { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== undefined) { - Height.encode(message.height, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusStateWithHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = Height.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensusStateWithHeight(); - message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConsensusStateWithHeight(); - if (object.height !== undefined && object.height !== null) { - message.height = Height.fromAmino(object.height); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height ? Height.toAmino(message.height) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ConsensusStateWithHeight.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConsensusStateWithHeight", - value: ConsensusStateWithHeight.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ConsensusStateWithHeight.decode(message.value); - }, - toProto(message) { - return ConsensusStateWithHeight.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - value: ConsensusStateWithHeight.encode(message).finish() - }; - } -}; -function createBaseClientConsensusStates() { - return { - clientId: "", - consensusStates: [] - }; -} -export const ClientConsensusStates = { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.consensusStates) { - ConsensusStateWithHeight.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientConsensusStates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClientConsensusStates(); - message.clientId = object.clientId ?? ""; - message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseClientConsensusStates(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); - } - else { - obj.consensus_states = message.consensusStates; - } - return obj; - }, - fromAminoMsg(object) { - return ClientConsensusStates.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ClientConsensusStates", - value: ClientConsensusStates.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ClientConsensusStates.decode(message.value); - }, - toProto(message) { - return ClientConsensusStates.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - value: ClientConsensusStates.encode(message).finish() - }; - } -}; -function createBaseClientUpdateProposal() { - return { - $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - title: "", - description: "", - subjectClientId: "", - substituteClientId: "" - }; -} -export const ClientUpdateProposal = { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.subjectClientId !== "") { - writer.uint32(26).string(message.subjectClientId); - } - if (message.substituteClientId !== "") { - writer.uint32(34).string(message.substituteClientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientUpdateProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.subjectClientId = reader.string(); - break; - case 4: - message.substituteClientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClientUpdateProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.subjectClientId = object.subjectClientId ?? ""; - message.substituteClientId = object.substituteClientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClientUpdateProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.subject_client_id !== undefined && object.subject_client_id !== null) { - message.subjectClientId = object.subject_client_id; - } - if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { - message.substituteClientId = object.substitute_client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; - obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; - return obj; - }, - fromAminoMsg(object) { - return ClientUpdateProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ClientUpdateProposal", - value: ClientUpdateProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return ClientUpdateProposal.decode(message.value); - }, - toProto(message) { - return ClientUpdateProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - value: ClientUpdateProposal.encode(message).finish() - }; - } -}; -function createBaseUpgradeProposal() { - return { - $typeUrl: "/ibc.core.client.v1.UpgradeProposal", - title: "", - description: "", - plan: Plan.fromPartial({}), - upgradedClientState: undefined - }; -} -export const UpgradeProposal = { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = Plan.decode(reader, reader.uint32()); - break; - case 4: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = Plan.fromAmino(object.plan); - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return UpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UpgradeProposal", - value: UpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return UpgradeProposal.decode(message.value); - }, - toProto(message) { - return UpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - value: UpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseHeight() { - return { - revisionNumber: BigInt(0), - revisionHeight: BigInt(0) - }; -} -export const Height = { - typeUrl: "/ibc.core.client.v1.Height", - encode(message, writer = BinaryWriter.create()) { - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(8).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.revisionNumber = reader.uint64(); - break; - case 2: - message.revisionHeight = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHeight(); - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - return { - revisionNumber: BigInt(object.revision_number || "0"), - revisionHeight: BigInt(object.revision_height || "0") - }; - }, - toAmino(message) { - const obj = {}; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Height.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Height", - value: Height.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Height.decode(message.value); - }, - toProto(message) { - return Height.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.Height", - value: Height.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - allowedClients: [] - }; -} -export const Params = { - typeUrl: "/ibc.core.client.v1.Params", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowedClients) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedClients.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.allowedClients = object.allowedClients?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.allowedClients = object.allowed_clients?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedClients) { - obj.allowed_clients = message.allowedClients.map(e => e); - } - else { - obj.allowed_clients = message.allowedClients; - } - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.Params", - value: Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/genesis.js b/packages/api/dist/esm/ibc/core/client/v1/genesis.js deleted file mode 100644 index 975c8090..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/genesis.js +++ /dev/null @@ -1,307 +0,0 @@ -//@ts-nocheck -import { IdentifiedClientState, ClientConsensusStates, Params } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseGenesisState() { - return { - clients: [], - clientsConsensus: [], - clientsMetadata: [], - params: Params.fromPartial({}), - createLocalhost: false, - nextClientSequence: BigInt(0) - }; -} -export const GenesisState = { - typeUrl: "/ibc.core.client.v1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.clients) { - IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.clientsConsensus) { - ClientConsensusStates.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.clientsMetadata) { - IdentifiedGenesisMetadata.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(34).fork()).ldelim(); - } - if (message.createLocalhost === true) { - writer.uint32(40).bool(message.createLocalhost); - } - if (message.nextClientSequence !== BigInt(0)) { - writer.uint32(48).uint64(message.nextClientSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clients.push(IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.clientsConsensus.push(ClientConsensusStates.decode(reader, reader.uint32())); - break; - case 3: - message.clientsMetadata.push(IdentifiedGenesisMetadata.decode(reader, reader.uint32())); - break; - case 4: - message.params = Params.decode(reader, reader.uint32()); - break; - case 5: - message.createLocalhost = reader.bool(); - break; - case 6: - message.nextClientSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => IdentifiedClientState.fromPartial(e)) || []; - message.clientsConsensus = object.clientsConsensus?.map(e => ClientConsensusStates.fromPartial(e)) || []; - message.clientsMetadata = object.clientsMetadata?.map(e => IdentifiedGenesisMetadata.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.createLocalhost = object.createLocalhost ?? false; - message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => IdentifiedClientState.fromAmino(e)) || []; - message.clientsConsensus = object.clients_consensus?.map(e => ClientConsensusStates.fromAmino(e)) || []; - message.clientsMetadata = object.clients_metadata?.map(e => IdentifiedGenesisMetadata.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - if (object.create_localhost !== undefined && object.create_localhost !== null) { - message.createLocalhost = object.create_localhost; - } - if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { - message.nextClientSequence = BigInt(object.next_client_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.clients) { - obj.clients = message.clients.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); - } - else { - obj.clients = message.clients; - } - if (message.clientsConsensus) { - obj.clients_consensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toAmino(e) : undefined); - } - else { - obj.clients_consensus = message.clientsConsensus; - } - if (message.clientsMetadata) { - obj.clients_metadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toAmino(e) : undefined); - } - else { - obj.clients_metadata = message.clientsMetadata; - } - obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; - obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseGenesisMetadata() { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const GenesisMetadata = { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisMetadata(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseGenesisMetadata(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - return obj; - }, - fromAminoMsg(object) { - return GenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisMetadata", - value: GenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return GenesisMetadata.decode(message.value); - }, - toProto(message) { - return GenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - value: GenesisMetadata.encode(message).finish() - }; - } -}; -function createBaseIdentifiedGenesisMetadata() { - return { - clientId: "", - clientMetadata: [] - }; -} -export const IdentifiedGenesisMetadata = { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.clientMetadata) { - GenesisMetadata.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMetadata.push(GenesisMetadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIdentifiedGenesisMetadata(); - message.clientId = object.clientId ?? ""; - message.clientMetadata = object.clientMetadata?.map(e => GenesisMetadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseIdentifiedGenesisMetadata(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.clientMetadata = object.client_metadata?.map(e => GenesisMetadata.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.clientMetadata) { - obj.client_metadata = message.clientMetadata.map(e => e ? GenesisMetadata.toAmino(e) : undefined); - } - else { - obj.client_metadata = message.clientMetadata; - } - return obj; - }, - fromAminoMsg(object) { - return IdentifiedGenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IdentifiedGenesisMetadata", - value: IdentifiedGenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return IdentifiedGenesisMetadata.decode(message.value); - }, - toProto(message) { - return IdentifiedGenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - value: IdentifiedGenesisMetadata.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.js b/packages/api/dist/esm/ibc/core/client/v1/query.js deleted file mode 100644 index 33faa10c..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/query.js +++ /dev/null @@ -1,1362 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Any } from "../../../../google/protobuf/any"; -import { Height, IdentifiedClientState, ConsensusStateWithHeight, Params } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseQueryClientStateRequest() { - return { - clientId: "" - }; -} -export const QueryClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStateRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStateRequest", - value: QueryClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStateRequest.decode(message.value); - }, - toProto(message) { - return QueryClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - value: QueryClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStateResponse() { - return { - clientState: undefined, - proof: new Uint8Array(), - proofHeight: Height.fromPartial({}) - }; -} -export const QueryClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStateResponse(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStateResponse(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = bytesFromBase64(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; - obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStateResponse", - value: QueryClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStateResponse.decode(message.value); - }, - toProto(message) { - return QueryClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - value: QueryClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesRequest() { - return { - pagination: undefined - }; -} -export const QueryClientStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatesRequest", - value: QueryClientStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStatesRequest.decode(message.value); - }, - toProto(message) { - return QueryClientStatesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - value: QueryClientStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesResponse() { - return { - clientStates: [], - pagination: undefined - }; -} -export const QueryClientStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.clientStates) { - IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.clientStates?.map(e => IdentifiedClientState.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.client_states?.map(e => IdentifiedClientState.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.clientStates) { - obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); - } - else { - obj.client_states = message.clientStates; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatesResponse", - value: QueryClientStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStatesResponse.decode(message.value); - }, - toProto(message) { - return QueryClientStatesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - value: QueryClientStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateRequest() { - return { - clientId: "", - revisionNumber: BigInt(0), - revisionHeight: BigInt(0), - latestHeight: false - }; -} -export const QueryConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.revisionHeight); - } - if (message.latestHeight === true) { - writer.uint32(32).bool(message.latestHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.revisionNumber = reader.uint64(); - break; - case 3: - message.revisionHeight = reader.uint64(); - break; - case 4: - message.latestHeight = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateRequest(); - message.clientId = object.clientId ?? ""; - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - message.latestHeight = object.latestHeight ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.revision_number !== undefined && object.revision_number !== null) { - message.revisionNumber = BigInt(object.revision_number); - } - if (object.revision_height !== undefined && object.revision_height !== null) { - message.revisionHeight = BigInt(object.revision_height); - } - if (object.latest_height !== undefined && object.latest_height !== null) { - message.latestHeight = object.latest_height; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateRequest", - value: QueryConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return QueryConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - value: QueryConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateResponse() { - return { - consensusState: undefined, - proof: new Uint8Array(), - proofHeight: Height.fromPartial({}) - }; -} -export const QueryConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateResponse(); - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateResponse(); - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = bytesFromBase64(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; - obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateResponse", - value: QueryConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return QueryConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - value: QueryConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesRequest() { - return { - clientId: "", - pagination: undefined - }; -} -export const QueryConsensusStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStatesRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStatesRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStatesRequest", - value: QueryConsensusStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStatesRequest.decode(message.value); - }, - toProto(message) { - return QueryConsensusStatesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - value: QueryConsensusStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesResponse() { - return { - consensusStates: [], - pagination: undefined - }; -} -export const QueryConsensusStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.consensusStates) { - ConsensusStateWithHeight.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); - } - else { - obj.consensus_states = message.consensusStates; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStatesResponse", - value: QueryConsensusStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStatesResponse.decode(message.value); - }, - toProto(message) { - return QueryConsensusStatesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - value: QueryConsensusStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsRequest() { - return { - clientId: "", - pagination: undefined - }; -} -export const QueryConsensusStateHeightsRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateHeightsRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateHeightsRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStateHeightsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest", - value: QueryConsensusStateHeightsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStateHeightsRequest.decode(message.value); - }, - toProto(message) { - return QueryConsensusStateHeightsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - value: QueryConsensusStateHeightsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsResponse() { - return { - consensusStateHeights: [], - pagination: undefined - }; -} -export const QueryConsensusStateHeightsResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.consensusStateHeights) { - Height.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStateHeights.push(Height.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensusStateHeights?.map(e => Height.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensus_state_heights?.map(e => Height.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.consensusStateHeights) { - obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? Height.toAmino(e) : undefined); - } - else { - obj.consensus_state_heights = message.consensusStateHeights; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryConsensusStateHeightsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse", - value: QueryConsensusStateHeightsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryConsensusStateHeightsResponse.decode(message.value); - }, - toProto(message) { - return QueryConsensusStateHeightsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - value: QueryConsensusStateHeightsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusRequest() { - return { - clientId: "" - }; -} -export const QueryClientStatusRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatusRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatusRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStatusRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatusRequest", - value: QueryClientStatusRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStatusRequest.decode(message.value); - }, - toProto(message) { - return QueryClientStatusRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - value: QueryClientStatusRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusResponse() { - return { - status: "" - }; -} -export const QueryClientStatusResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatusResponse(); - message.status = object.status ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatusResponse(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === "" ? undefined : message.status; - return obj; - }, - fromAminoMsg(object) { - return QueryClientStatusResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatusResponse", - value: QueryClientStatusResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientStatusResponse.decode(message.value); - }, - toProto(message) { - return QueryClientStatusResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - value: QueryClientStatusResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsRequest() { - return {}; -} -export const QueryClientParamsRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryClientParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientParamsRequest", - value: QueryClientParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryClientParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - value: QueryClientParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsResponse() { - return { - params: undefined - }; -} -export const QueryClientParamsResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClientParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientParamsResponse", - value: QueryClientParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryClientParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryClientParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - value: QueryClientParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateRequest() { - return {}; -} -export const QueryUpgradedClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedClientStateRequest", - value: QueryUpgradedClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedClientStateRequest.decode(message.value); - }, - toProto(message) { - return QueryUpgradedClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - value: QueryUpgradedClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateResponse() { - return { - upgradedClientState: undefined - }; -} -export const QueryUpgradedClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.upgradedClientState !== undefined) { - Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedClientState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedClientStateResponse(); - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedClientStateResponse(); - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedClientStateResponse", - value: QueryUpgradedClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedClientStateResponse.decode(message.value); - }, - toProto(message) { - return QueryUpgradedClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - value: QueryUpgradedClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest() { - return {}; -} -export const QueryUpgradedConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - value: QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse() { - return { - upgradedConsensusState: undefined - }; -} -export const QueryUpgradedConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.upgradedConsensusState !== undefined) { - Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedConsensusState = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? Any.fromPartial(object.upgradedConsensusState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = Any.fromAmino(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? Any.toAmino(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - value: QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js b/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js deleted file mode 100644 index 7ec97b85..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/query.lcd.js +++ /dev/null @@ -1,90 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - /* ClientState queries an IBC light client. */ - async clientState(params) { - const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientStates queries all the IBC light clients of a chain. */ - async clientStates(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/client_states`; - return await this.req.get(endpoint, options); - } - /* ConsensusState queries a consensus state associated with a client state at - a given height. */ - async consensusState(params) { - const options = { - params: {} - }; - if (typeof params?.latestHeight !== "undefined") { - options.params.latest_height = params.latestHeight; - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStates queries all the consensus state associated with a given - client. */ - async consensusStates(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - async consensusStateHeights(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; - return await this.req.get(endpoint, options); - } - /* Status queries the status of an IBC client. */ - async clientStatus(params) { - const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientParams queries all parameters of the ibc client. */ - async clientParams(_params = {}) { - const endpoint = `ibc/client/v1/params`; - return await this.req.get(endpoint); - } - /* UpgradedClientState queries an Upgraded IBC light client. */ - async upgradedClientState(_params = {}) { - const endpoint = `ibc/core/client/v1/upgraded_client_states`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ - async upgradedConsensusState(_params = {}) { - const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js b/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js deleted file mode 100644 index 21e8a8ef..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/query.rpc.Query.js +++ /dev/null @@ -1,98 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - clientState(request) { - const data = QueryClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); - return promise.then(data => QueryClientStateResponse.decode(new BinaryReader(data))); - } - clientStates(request = { - pagination: undefined - }) { - const data = QueryClientStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); - return promise.then(data => QueryClientStatesResponse.decode(new BinaryReader(data))); - } - consensusState(request) { - const data = QueryConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); - return promise.then(data => QueryConsensusStateResponse.decode(new BinaryReader(data))); - } - consensusStates(request) { - const data = QueryConsensusStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); - return promise.then(data => QueryConsensusStatesResponse.decode(new BinaryReader(data))); - } - consensusStateHeights(request) { - const data = QueryConsensusStateHeightsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); - return promise.then(data => QueryConsensusStateHeightsResponse.decode(new BinaryReader(data))); - } - clientStatus(request) { - const data = QueryClientStatusRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); - return promise.then(data => QueryClientStatusResponse.decode(new BinaryReader(data))); - } - clientParams(request = {}) { - const data = QueryClientParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); - return promise.then(data => QueryClientParamsResponse.decode(new BinaryReader(data))); - } - upgradedClientState(request = {}) { - const data = QueryUpgradedClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); - return promise.then(data => QueryUpgradedClientStateResponse.decode(new BinaryReader(data))); - } - upgradedConsensusState(request = {}) { - const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); - return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - clientState(request) { - return queryService.clientState(request); - }, - clientStates(request) { - return queryService.clientStates(request); - }, - consensusState(request) { - return queryService.consensusState(request); - }, - consensusStates(request) { - return queryService.consensusStates(request); - }, - consensusStateHeights(request) { - return queryService.consensusStateHeights(request); - }, - clientStatus(request) { - return queryService.clientStatus(request); - }, - clientParams(request) { - return queryService.clientParams(request); - }, - upgradedClientState(request) { - return queryService.upgradedClientState(request); - }, - upgradedConsensusState(request) { - return queryService.upgradedConsensusState(request); - } - }; -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js b/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js deleted file mode 100644 index 41c2fe96..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/tx.amino.js +++ /dev/null @@ -1,24 +0,0 @@ -//@ts-nocheck -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export const AminoConverter = { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: "cosmos-sdk/MsgCreateClient", - toAmino: MsgCreateClient.toAmino, - fromAmino: MsgCreateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: "cosmos-sdk/MsgUpdateClient", - toAmino: MsgUpdateClient.toAmino, - fromAmino: MsgUpdateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: "cosmos-sdk/MsgUpgradeClient", - toAmino: MsgUpgradeClient.toAmino, - fromAmino: MsgUpgradeClient.fromAmino - }, - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", - toAmino: MsgSubmitMisbehaviour.toAmino, - fromAmino: MsgSubmitMisbehaviour.fromAmino - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.js b/packages/api/dist/esm/ibc/core/client/v1/tx.js deleted file mode 100644 index dbfc0f92..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/tx.js +++ /dev/null @@ -1,636 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseMsgCreateClient() { - return { - clientState: undefined, - consensusState: undefined, - signer: "" - }; -} -export const MsgCreateClient = { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - encode(message, writer = BinaryWriter.create()) { - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClient(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClient(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateClient", - value: MsgCreateClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateClient.decode(message.value); - }, - toProto(message) { - return MsgCreateClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClientResponse() { - return {}; -} -export const MsgCreateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateClientResponse", - value: MsgCreateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateClientResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - value: MsgCreateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClient() { - return { - clientId: "", - clientMessage: undefined, - signer: "" - }; -} -export const MsgUpdateClient = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientMessage !== undefined) { - Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMessage = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClient(); - message.clientId = object.clientId ?? ""; - message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? Any.fromPartial(object.clientMessage) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_message !== undefined && object.client_message !== null) { - message.clientMessage = Any.fromAmino(object.client_message); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_message = message.clientMessage ? Any.toAmino(message.clientMessage) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateClient", - value: MsgUpdateClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClient.decode(message.value); - }, - toProto(message) { - return MsgUpdateClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClientResponse() { - return {}; -} -export const MsgUpdateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateClientResponse", - value: MsgUpdateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClientResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - value: MsgUpdateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClient() { - return { - clientId: "", - clientState: undefined, - consensusState: undefined, - proofUpgradeClient: new Uint8Array(), - proofUpgradeConsensusState: new Uint8Array(), - signer: "" - }; -} -export const MsgUpgradeClient = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); - } - if (message.proofUpgradeClient.length !== 0) { - writer.uint32(34).bytes(message.proofUpgradeClient); - } - if (message.proofUpgradeConsensusState.length !== 0) { - writer.uint32(42).bytes(message.proofUpgradeConsensusState); - } - if (message.signer !== "") { - writer.uint32(50).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = Any.decode(reader, reader.uint32()); - break; - case 3: - message.consensusState = Any.decode(reader, reader.uint32()); - break; - case 4: - message.proofUpgradeClient = reader.bytes(); - break; - case 5: - message.proofUpgradeConsensusState = reader.bytes(); - break; - case 6: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpgradeClient(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined; - message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); - message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpgradeClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = Any.fromAmino(object.consensus_state); - } - if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { - message.proofUpgradeClient = bytesFromBase64(object.proof_upgrade_client); - } - if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { - message.proofUpgradeConsensusState = bytesFromBase64(object.proof_upgrade_consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.proof_upgrade_client = message.proofUpgradeClient ? base64FromBytes(message.proofUpgradeClient) : undefined; - obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? base64FromBytes(message.proofUpgradeConsensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return MsgUpgradeClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpgradeClient", - value: MsgUpgradeClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpgradeClient.decode(message.value); - }, - toProto(message) { - return MsgUpgradeClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClientResponse() { - return {}; -} -export const MsgUpgradeClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpgradeClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpgradeClientResponse", - value: MsgUpgradeClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpgradeClientResponse.decode(message.value); - }, - toProto(message) { - return MsgUpgradeClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - value: MsgUpgradeClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviour() { - return { - clientId: "", - misbehaviour: undefined, - signer: "" - }; -} -export const MsgSubmitMisbehaviour = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - encode(message, writer = BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.misbehaviour !== undefined) { - Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviour(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.misbehaviour = Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitMisbehaviour(); - message.clientId = object.clientId ?? ""; - message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? Any.fromPartial(object.misbehaviour) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitMisbehaviour(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.misbehaviour !== undefined && object.misbehaviour !== null) { - message.misbehaviour = Any.fromAmino(object.misbehaviour); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.misbehaviour = message.misbehaviour ? Any.toAmino(message.misbehaviour) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitMisbehaviour.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitMisbehaviour.decode(message.value); - }, - toProto(message) { - return MsgSubmitMisbehaviour.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviourResponse() { - return {}; -} -export const MsgSubmitMisbehaviourResponse = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviourResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitMisbehaviourResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", - value: MsgSubmitMisbehaviourResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSubmitMisbehaviourResponse.decode(message.value); - }, - toProto(message) { - return MsgSubmitMisbehaviourResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - value: MsgSubmitMisbehaviourResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js b/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js deleted file mode 100644 index 7afcf0be..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/tx.registry.js +++ /dev/null @@ -1,87 +0,0 @@ -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export const registry = [["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.encode(value).finish() - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.encode(value).finish() - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.encode(value).finish() - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value - }; - } - }, - fromPartial: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: MsgCreateClient.fromPartial(value) - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: MsgUpdateClient.fromPartial(value) - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: MsgUpgradeClient.fromPartial(value) - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: MsgSubmitMisbehaviour.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js b/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js deleted file mode 100644 index a01e2ae4..00000000 --- a/packages/api/dist/esm/ibc/core/client/v1/tx.rpc.msg.js +++ /dev/null @@ -1,32 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClient = this.createClient.bind(this); - this.updateClient = this.updateClient.bind(this); - this.upgradeClient = this.upgradeClient.bind(this); - this.submitMisbehaviour = this.submitMisbehaviour.bind(this); - } - createClient(request) { - const data = MsgCreateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); - return promise.then(data => MsgCreateClientResponse.decode(new BinaryReader(data))); - } - updateClient(request) { - const data = MsgUpdateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); - return promise.then(data => MsgUpdateClientResponse.decode(new BinaryReader(data))); - } - upgradeClient(request) { - const data = MsgUpgradeClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); - return promise.then(data => MsgUpgradeClientResponse.decode(new BinaryReader(data))); - } - submitMisbehaviour(request) { - const data = MsgSubmitMisbehaviour.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); - return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/ibc/lcd.js b/packages/api/dist/esm/ibc/lcd.js deleted file mode 100644 index 879621d6..00000000 --- a/packages/api/dist/esm/ibc/lcd.js +++ /dev/null @@ -1,97 +0,0 @@ -//@ts-nocheck -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await import("./applications/transfer/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - core: { - client: { - v1: new (await import("./core/client/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - } - }; -}; diff --git a/packages/api/dist/esm/ibc/rpc.query.js b/packages/api/dist/esm/ibc/rpc.query.js deleted file mode 100644 index eef6bb0c..00000000 --- a/packages/api/dist/esm/ibc/rpc.query.js +++ /dev/null @@ -1,65 +0,0 @@ -//@ts-nocheck -import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - ibc: { - applications: { - transfer: { - v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - core: { - client: { - v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - } - }; -}; diff --git a/packages/api/dist/esm/ibc/rpc.tx.js b/packages/api/dist/esm/ibc/rpc.tx.js deleted file mode 100644 index bc826323..00000000 --- a/packages/api/dist/esm/ibc/rpc.tx.js +++ /dev/null @@ -1,44 +0,0 @@ -export const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - core: { - client: { - v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } - } -}); diff --git a/packages/api/dist/esm/index.js b/packages/api/dist/esm/index.js deleted file mode 100644 index 88b8236c..00000000 --- a/packages/api/dist/esm/index.js +++ /dev/null @@ -1,20 +0,0 @@ -//@ts-nocheck -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ -export * from "./amino/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmos/client"; -export * from "./gogoproto/bundle"; -export * from "./ibc/bundle"; -export * from "./ibc/client"; -export * from "./regen/bundle"; -export * from "./regen/client"; -export * from "./tendermint/bundle"; -export * from "./google/bundle"; -export * from "./varint"; -export * from "./utf8"; -export * from "./binary"; diff --git a/packages/api/dist/esm/regen/bundle.js b/packages/api/dist/esm/regen/bundle.js deleted file mode 100644 index ce470ec7..00000000 --- a/packages/api/dist/esm/regen/bundle.js +++ /dev/null @@ -1,160 +0,0 @@ -//@ts-nocheck -import * as _76 from "./data/v1/events"; -import * as _77 from "./data/v1/query"; -import * as _78 from "./data/v1/state"; -import * as _79 from "./data/v1/tx"; -import * as _80 from "./data/v1/types"; -import * as _81 from "./ecocredit/basket/v1/events"; -import * as _82 from "./ecocredit/basket/v1/query"; -import * as _83 from "./ecocredit/basket/v1/state"; -import * as _84 from "./ecocredit/basket/v1/tx"; -import * as _85 from "./ecocredit/basket/v1/types"; -import * as _86 from "./ecocredit/marketplace/v1/events"; -import * as _87 from "./ecocredit/marketplace/v1/query"; -import * as _88 from "./ecocredit/marketplace/v1/state"; -import * as _89 from "./ecocredit/marketplace/v1/tx"; -import * as _90 from "./ecocredit/marketplace/v1/types"; -import * as _91 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _92 from "./ecocredit/v1/events"; -import * as _93 from "./ecocredit/v1/query"; -import * as _94 from "./ecocredit/v1/state"; -import * as _95 from "./ecocredit/v1/tx"; -import * as _96 from "./ecocredit/v1/types"; -import * as _97 from "./ecocredit/v1alpha1/events"; -import * as _98 from "./ecocredit/v1alpha1/genesis"; -import * as _99 from "./ecocredit/v1alpha1/query"; -import * as _100 from "./ecocredit/v1alpha1/tx"; -import * as _101 from "./ecocredit/v1alpha1/types"; -import * as _102 from "./intertx/v1/query"; -import * as _103 from "./intertx/v1/tx"; -import * as _187 from "./data/v1/tx.amino"; -import * as _188 from "./ecocredit/basket/v1/tx.amino"; -import * as _189 from "./ecocredit/marketplace/v1/tx.amino"; -import * as _190 from "./ecocredit/v1/tx.amino"; -import * as _191 from "./ecocredit/v1alpha1/tx.amino"; -import * as _192 from "./intertx/v1/tx.amino"; -import * as _193 from "./data/v1/tx.registry"; -import * as _194 from "./ecocredit/basket/v1/tx.registry"; -import * as _195 from "./ecocredit/marketplace/v1/tx.registry"; -import * as _196 from "./ecocredit/v1/tx.registry"; -import * as _197 from "./ecocredit/v1alpha1/tx.registry"; -import * as _198 from "./intertx/v1/tx.registry"; -import * as _199 from "./data/v1/query.lcd"; -import * as _200 from "./ecocredit/basket/v1/query.lcd"; -import * as _201 from "./ecocredit/marketplace/v1/query.lcd"; -import * as _202 from "./ecocredit/v1/query.lcd"; -import * as _203 from "./ecocredit/v1alpha1/query.lcd"; -import * as _204 from "./intertx/v1/query.lcd"; -import * as _205 from "./data/v1/query.rpc.Query"; -import * as _206 from "./ecocredit/basket/v1/query.rpc.Query"; -import * as _207 from "./ecocredit/marketplace/v1/query.rpc.Query"; -import * as _208 from "./ecocredit/v1/query.rpc.Query"; -import * as _209 from "./ecocredit/v1alpha1/query.rpc.Query"; -import * as _210 from "./intertx/v1/query.rpc.Query"; -import * as _211 from "./data/v1/tx.rpc.msg"; -import * as _212 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _213 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _214 from "./ecocredit/v1/tx.rpc.msg"; -import * as _215 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _216 from "./intertx/v1/tx.rpc.msg"; -import * as _223 from "./lcd"; -import * as _224 from "./rpc.query"; -import * as _225 from "./rpc.tx"; -export var regen; -(function (regen) { - let data; - (function (data) { - data.v1 = { - ..._76, - ..._77, - ..._78, - ..._79, - ..._80, - ..._187, - ..._193, - ..._199, - ..._205, - ..._211 - }; - })(data = regen.data || (regen.data = {})); - let ecocredit; - (function (ecocredit) { - let basket; - (function (basket) { - basket.v1 = { - ..._81, - ..._82, - ..._83, - ..._84, - ..._85, - ..._188, - ..._194, - ..._200, - ..._206, - ..._212 - }; - })(basket = ecocredit.basket || (ecocredit.basket = {})); - let marketplace; - (function (marketplace) { - marketplace.v1 = { - ..._86, - ..._87, - ..._88, - ..._89, - ..._90, - ..._189, - ..._195, - ..._201, - ..._207, - ..._213 - }; - })(marketplace = ecocredit.marketplace || (ecocredit.marketplace = {})); - let orderbook; - (function (orderbook) { - orderbook.v1alpha1 = { - ..._91 - }; - })(orderbook = ecocredit.orderbook || (ecocredit.orderbook = {})); - ecocredit.v1 = { - ..._92, - ..._93, - ..._94, - ..._95, - ..._96, - ..._190, - ..._196, - ..._202, - ..._208, - ..._214 - }; - ecocredit.v1alpha1 = { - ..._97, - ..._98, - ..._99, - ..._100, - ..._101, - ..._191, - ..._197, - ..._203, - ..._209, - ..._215 - }; - })(ecocredit = regen.ecocredit || (regen.ecocredit = {})); - let intertx; - (function (intertx) { - intertx.v1 = { - ..._102, - ..._103, - ..._192, - ..._198, - ..._204, - ..._210, - ..._216 - }; - })(intertx = regen.intertx || (regen.intertx = {})); - regen.ClientFactory = { - ..._223, - ..._224, - ..._225 - }; -})(regen || (regen = {})); diff --git a/packages/api/dist/esm/regen/client.js b/packages/api/dist/esm/regen/client.js deleted file mode 100644 index 2e5ccb2a..00000000 --- a/packages/api/dist/esm/regen/client.js +++ /dev/null @@ -1,44 +0,0 @@ -//@ts-nocheck -import { Registry } from "@cosmjs/proto-signing"; -import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import * as regenDataV1TxRegistry from "./data/v1/tx.registry"; -import * as regenEcocreditBasketV1TxRegistry from "./ecocredit/basket/v1/tx.registry"; -import * as regenEcocreditMarketplaceV1TxRegistry from "./ecocredit/marketplace/v1/tx.registry"; -import * as regenEcocreditV1TxRegistry from "./ecocredit/v1/tx.registry"; -import * as regenEcocreditV1alpha1TxRegistry from "./ecocredit/v1alpha1/tx.registry"; -import * as regenIntertxV1TxRegistry from "./intertx/v1/tx.registry"; -import * as regenDataV1TxAmino from "./data/v1/tx.amino"; -import * as regenEcocreditBasketV1TxAmino from "./ecocredit/basket/v1/tx.amino"; -import * as regenEcocreditMarketplaceV1TxAmino from "./ecocredit/marketplace/v1/tx.amino"; -import * as regenEcocreditV1TxAmino from "./ecocredit/v1/tx.amino"; -import * as regenEcocreditV1alpha1TxAmino from "./ecocredit/v1alpha1/tx.amino"; -import * as regenIntertxV1TxAmino from "./intertx/v1/tx.amino"; -export const regenAminoConverters = { - ...regenDataV1TxAmino.AminoConverter, - ...regenEcocreditBasketV1TxAmino.AminoConverter, - ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, - ...regenEcocreditV1TxAmino.AminoConverter, - ...regenEcocreditV1alpha1TxAmino.AminoConverter, - ...regenIntertxV1TxAmino.AminoConverter -}; -export const regenProtoRegistry = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; -export const getSigningRegenClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => { - const registry = new Registry([...defaultTypes, ...regenProtoRegistry]); - const aminoTypes = new AminoTypes({ - ...regenAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -export const getSigningRegenClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => { - const { registry, aminoTypes } = getSigningRegenClientOptions({ - defaultTypes - }); - const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; diff --git a/packages/api/dist/esm/regen/data/v1/events.js b/packages/api/dist/esm/regen/data/v1/events.js deleted file mode 100644 index 7cfddb8d..00000000 --- a/packages/api/dist/esm/regen/data/v1/events.js +++ /dev/null @@ -1,278 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseEventAnchor() { - return { - iri: "" - }; -} -export const EventAnchor = { - typeUrl: "/regen.data.v1.EventAnchor", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAnchor(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAnchor(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return EventAnchor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventAnchor.decode(message.value); - }, - toProto(message) { - return EventAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventAnchor", - value: EventAnchor.encode(message).finish() - }; - } -}; -function createBaseEventAttest() { - return { - iri: "", - attestor: "" - }; -} -export const EventAttest = { - typeUrl: "/regen.data.v1.EventAttest", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAttest(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAttest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - return obj; - }, - fromAminoMsg(object) { - return EventAttest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventAttest.decode(message.value); - }, - toProto(message) { - return EventAttest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventAttest", - value: EventAttest.encode(message).finish() - }; - } -}; -function createBaseEventDefineResolver() { - return { - id: BigInt(0) - }; -} -export const EventDefineResolver = { - typeUrl: "/regen.data.v1.EventDefineResolver", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventDefineResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventDefineResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventDefineResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventDefineResolver.decode(message.value); - }, - toProto(message) { - return EventDefineResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventDefineResolver", - value: EventDefineResolver.encode(message).finish() - }; - } -}; -function createBaseEventRegisterResolver() { - return { - id: BigInt(0), - iri: "" - }; -} -export const EventRegisterResolver = { - typeUrl: "/regen.data.v1.EventRegisterResolver", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRegisterResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRegisterResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return EventRegisterResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventRegisterResolver.decode(message.value); - }, - toProto(message) { - return EventRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventRegisterResolver", - value: EventRegisterResolver.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/query.js b/packages/api/dist/esm/regen/data/v1/query.js deleted file mode 100644 index e3b3814a..00000000 --- a/packages/api/dist/esm/regen/data/v1/query.js +++ /dev/null @@ -1,1815 +0,0 @@ -//@ts-nocheck -import { ContentHash } from "./types"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseQueryAnchorByIRIRequest() { - return { - iri: "" - }; -} -export const QueryAnchorByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByIRIRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return QueryAnchorByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAnchorByIRIRequest.decode(message.value); - }, - toProto(message) { - return QueryAnchorByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - value: QueryAnchorByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByIRIResponse() { - return { - anchor: undefined - }; -} -export const QueryAnchorByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.anchor !== undefined) { - AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByIRIResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByIRIResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAnchorByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAnchorByIRIResponse.decode(message.value); - }, - toProto(message) { - return QueryAnchorByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - value: QueryAnchorByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashRequest() { - return { - contentHash: undefined - }; -} -export const QueryAnchorByHashRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAnchorByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAnchorByHashRequest.decode(message.value); - }, - toProto(message) { - return QueryAnchorByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - value: QueryAnchorByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashResponse() { - return { - anchor: undefined - }; -} -export const QueryAnchorByHashResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.anchor !== undefined) { - AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByHashResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByHashResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.anchor = message.anchor ? AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAnchorByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAnchorByHashResponse.decode(message.value); - }, - toProto(message) { - return QueryAnchorByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - value: QueryAnchorByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorRequest() { - return { - attestor: "", - pagination: undefined - }; -} -export const QueryAttestationsByAttestorRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByAttestorRequest(); - message.attestor = object.attestor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByAttestorRequest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByAttestorRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByAttestorRequest.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByAttestorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - value: QueryAttestationsByAttestorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorResponse() { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByAttestorResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.attestations) { - AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByAttestorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByAttestorResponse.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByAttestorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - value: QueryAttestationsByAttestorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIRequest() { - return { - iri: "", - pagination: undefined - }; -} -export const QueryAttestationsByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByIRIRequest.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - value: QueryAttestationsByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIResponse() { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.attestations) { - AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByIRIResponse.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - value: QueryAttestationsByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashRequest() { - return { - contentHash: undefined, - pagination: undefined - }; -} -export const QueryAttestationsByHashRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByHashRequest.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - value: QueryAttestationsByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashResponse() { - return { - attestations: [], - pagination: undefined - }; -} -export const QueryAttestationsByHashResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.attestations) { - AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAttestationsByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAttestationsByHashResponse.decode(message.value); - }, - toProto(message) { - return QueryAttestationsByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - value: QueryAttestationsByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolverRequest() { - return { - id: BigInt(0) - }; -} -export const QueryResolverRequest = { - typeUrl: "/regen.data.v1.QueryResolverRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolverRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolverRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolverRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolverRequest.decode(message.value); - }, - toProto(message) { - return QueryResolverRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolverRequest", - value: QueryResolverRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolverResponse() { - return { - resolver: undefined - }; -} -export const QueryResolverResponse = { - typeUrl: "/regen.data.v1.QueryResolverResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.resolver !== undefined) { - ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolver = ResolverInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolverResponse(); - message.resolver = object.resolver !== undefined && object.resolver !== null ? ResolverInfo.fromPartial(object.resolver) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolverResponse(); - if (object.resolver !== undefined && object.resolver !== null) { - message.resolver = ResolverInfo.fromAmino(object.resolver); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.resolver = message.resolver ? ResolverInfo.toAmino(message.resolver) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolverResponse.decode(message.value); - }, - toProto(message) { - return QueryResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolverResponse", - value: QueryResolverResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIRequest() { - return { - iri: "", - pagination: undefined - }; -} -export const QueryResolversByIRIRequest = { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByIRIRequest.decode(message.value); - }, - toProto(message) { - return QueryResolversByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - value: QueryResolversByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByIRIResponse = { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.resolvers) { - ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByIRIResponse.decode(message.value); - }, - toProto(message) { - return QueryResolversByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - value: QueryResolversByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashRequest() { - return { - contentHash: undefined, - pagination: undefined - }; -} -export const QueryResolversByHashRequest = { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByHashRequest.decode(message.value); - }, - toProto(message) { - return QueryResolversByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - value: QueryResolversByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByHashResponse = { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.resolvers) { - ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByHashResponse.decode(message.value); - }, - toProto(message) { - return QueryResolversByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - value: QueryResolversByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLRequest() { - return { - url: "", - pagination: undefined - }; -} -export const QueryResolversByURLRequest = { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.url !== "") { - writer.uint32(10).string(message.url); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByURLRequest(); - message.url = object.url ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByURLRequest(); - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.url = message.url === "" ? undefined : message.url; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByURLRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByURLRequest.decode(message.value); - }, - toProto(message) { - return QueryResolversByURLRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - value: QueryResolversByURLRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -export const QueryResolversByURLResponse = { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.resolvers) { - ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryResolversByURLResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryResolversByURLResponse.decode(message.value); - }, - toProto(message) { - return QueryResolversByURLResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - value: QueryResolversByURLResponse.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashRequest() { - return { - iri: "" - }; -} -export const ConvertIRIToHashRequest = { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertIRIToHashRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConvertIRIToHashRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return ConvertIRIToHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ConvertIRIToHashRequest.decode(message.value); - }, - toProto(message) { - return ConvertIRIToHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - value: ConvertIRIToHashRequest.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashResponse() { - return { - contentHash: undefined - }; -} -export const ConvertIRIToHashResponse = { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertIRIToHashResponse(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConvertIRIToHashResponse(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ConvertIRIToHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ConvertIRIToHashResponse.decode(message.value); - }, - toProto(message) { - return ConvertIRIToHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - value: ConvertIRIToHashResponse.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIRequest() { - return { - contentHash: undefined - }; -} -export const ConvertHashToIRIRequest = { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertHashToIRIRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConvertHashToIRIRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ConvertHashToIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ConvertHashToIRIRequest.decode(message.value); - }, - toProto(message) { - return ConvertHashToIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - value: ConvertHashToIRIRequest.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIResponse() { - return { - iri: "" - }; -} -export const ConvertHashToIRIResponse = { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertHashToIRIResponse(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConvertHashToIRIResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return ConvertHashToIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ConvertHashToIRIResponse.decode(message.value); - }, - toProto(message) { - return ConvertHashToIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - value: ConvertHashToIRIResponse.encode(message).finish() - }; - } -}; -function createBaseAnchorInfo() { - return { - iri: "", - contentHash: undefined, - timestamp: undefined - }; -} -export const AnchorInfo = { - typeUrl: "/regen.data.v1.AnchorInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAnchorInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - case 3: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAnchorInfo(); - message.iri = object.iri ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAnchorInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AnchorInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AnchorInfo.decode(message.value); - }, - toProto(message) { - return AnchorInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.AnchorInfo", - value: AnchorInfo.encode(message).finish() - }; - } -}; -function createBaseAttestationInfo() { - return { - iri: "", - attestor: "", - timestamp: undefined - }; -} -export const AttestationInfo = { - typeUrl: "/regen.data.v1.AttestationInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttestationInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - case 3: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAttestationInfo(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAttestationInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AttestationInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AttestationInfo.decode(message.value); - }, - toProto(message) { - return AttestationInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.AttestationInfo", - value: AttestationInfo.encode(message).finish() - }; - } -}; -function createBaseResolverInfo() { - return { - id: BigInt(0), - url: "", - manager: "" - }; -} -export const ResolverInfo = { - typeUrl: "/regen.data.v1.ResolverInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager !== "") { - writer.uint32(26).string(message.manager); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolverInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResolverInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResolverInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager === "" ? undefined : message.manager; - return obj; - }, - fromAminoMsg(object) { - return ResolverInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResolverInfo.decode(message.value); - }, - toProto(message) { - return ResolverInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ResolverInfo", - value: ResolverInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/query.lcd.js b/packages/api/dist/esm/regen/data/v1/query.lcd.js deleted file mode 100644 index 6e03b74a..00000000 --- a/packages/api/dist/esm/regen/data/v1/query.lcd.js +++ /dev/null @@ -1,63 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - } - /* AnchorByIRI queries a data anchor by the IRI of the data. */ - async anchorByIRI(params) { - const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; - return await this.req.get(endpoint); - } - /* AttestationsByAttestor queries data attestations by an attestor. */ - async attestationsByAttestor(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; - return await this.req.get(endpoint, options); - } - /* AttestationsByIRI queries data attestations by the IRI of the data. */ - async attestationsByIRI(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* Resolver queries a resolver by its unique identifier. */ - async resolver(params) { - const endpoint = `regen/data/v1/resolver/${params.id}`; - return await this.req.get(endpoint); - } - /* ResolversByIRI queries resolvers with registered data by the IRI of the - data. */ - async resolversByIRI(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* ConvertIRIToHash converts an IRI to a ContentHash. */ - async convertIRIToHash(params) { - const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js deleted file mode 100644 index ba703916..00000000 --- a/packages/api/dist/esm/regen/data/v1/query.rpc.Query.js +++ /dev/null @@ -1,114 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.anchorByHash = this.anchorByHash.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.attestationsByHash = this.attestationsByHash.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.resolversByHash = this.resolversByHash.bind(this); - this.resolversByURL = this.resolversByURL.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - this.convertHashToIRI = this.convertHashToIRI.bind(this); - } - anchorByIRI(request) { - const data = QueryAnchorByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); - return promise.then(data => QueryAnchorByIRIResponse.decode(new BinaryReader(data))); - } - anchorByHash(request) { - const data = QueryAnchorByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); - return promise.then(data => QueryAnchorByHashResponse.decode(new BinaryReader(data))); - } - attestationsByAttestor(request) { - const data = QueryAttestationsByAttestorRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); - return promise.then(data => QueryAttestationsByAttestorResponse.decode(new BinaryReader(data))); - } - attestationsByIRI(request) { - const data = QueryAttestationsByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); - return promise.then(data => QueryAttestationsByIRIResponse.decode(new BinaryReader(data))); - } - attestationsByHash(request) { - const data = QueryAttestationsByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); - return promise.then(data => QueryAttestationsByHashResponse.decode(new BinaryReader(data))); - } - resolver(request) { - const data = QueryResolverRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); - return promise.then(data => QueryResolverResponse.decode(new BinaryReader(data))); - } - resolversByIRI(request) { - const data = QueryResolversByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); - return promise.then(data => QueryResolversByIRIResponse.decode(new BinaryReader(data))); - } - resolversByHash(request) { - const data = QueryResolversByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); - return promise.then(data => QueryResolversByHashResponse.decode(new BinaryReader(data))); - } - resolversByURL(request) { - const data = QueryResolversByURLRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); - return promise.then(data => QueryResolversByURLResponse.decode(new BinaryReader(data))); - } - convertIRIToHash(request) { - const data = ConvertIRIToHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); - return promise.then(data => ConvertIRIToHashResponse.decode(new BinaryReader(data))); - } - convertHashToIRI(request) { - const data = ConvertHashToIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); - return promise.then(data => ConvertHashToIRIResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - anchorByIRI(request) { - return queryService.anchorByIRI(request); - }, - anchorByHash(request) { - return queryService.anchorByHash(request); - }, - attestationsByAttestor(request) { - return queryService.attestationsByAttestor(request); - }, - attestationsByIRI(request) { - return queryService.attestationsByIRI(request); - }, - attestationsByHash(request) { - return queryService.attestationsByHash(request); - }, - resolver(request) { - return queryService.resolver(request); - }, - resolversByIRI(request) { - return queryService.resolversByIRI(request); - }, - resolversByHash(request) { - return queryService.resolversByHash(request); - }, - resolversByURL(request) { - return queryService.resolversByURL(request); - }, - convertIRIToHash(request) { - return queryService.convertIRIToHash(request); - }, - convertHashToIRI(request) { - return queryService.convertHashToIRI(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/data/v1/state.js b/packages/api/dist/esm/regen/data/v1/state.js deleted file mode 100644 index 08081aaa..00000000 --- a/packages/api/dist/esm/regen/data/v1/state.js +++ /dev/null @@ -1,403 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseDataID() { - return { - id: new Uint8Array(), - iri: "" - }; -} -export const DataID = { - typeUrl: "/regen.data.v1.DataID", - encode(message, writer = BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataID(); - message.id = object.id ?? new Uint8Array(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDataID(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return DataID.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DataID.decode(message.value); - }, - toProto(message) { - return DataID.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataID", - value: DataID.encode(message).finish() - }; - } -}; -function createBaseDataAnchor() { - return { - id: new Uint8Array(), - timestamp: undefined - }; -} -export const DataAnchor = { - typeUrl: "/regen.data.v1.DataAnchor", - encode(message, writer = BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataAnchor(); - message.id = object.id ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDataAnchor(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DataAnchor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DataAnchor.decode(message.value); - }, - toProto(message) { - return DataAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataAnchor", - value: DataAnchor.encode(message).finish() - }; - } -}; -function createBaseDataAttestor() { - return { - id: new Uint8Array(), - attestor: new Uint8Array(), - timestamp: undefined - }; -} -export const DataAttestor = { - typeUrl: "/regen.data.v1.DataAttestor", - encode(message, writer = BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.attestor.length !== 0) { - writer.uint32(18).bytes(message.attestor); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAttestor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.attestor = reader.bytes(); - break; - case 3: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataAttestor(); - message.id = object.id ?? new Uint8Array(); - message.attestor = object.attestor ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDataAttestor(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = bytesFromBase64(object.attestor); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.attestor = message.attestor ? base64FromBytes(message.attestor) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DataAttestor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DataAttestor.decode(message.value); - }, - toProto(message) { - return DataAttestor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataAttestor", - value: DataAttestor.encode(message).finish() - }; - } -}; -function createBaseResolver() { - return { - id: BigInt(0), - url: "", - manager: new Uint8Array() - }; -} -export const Resolver = { - typeUrl: "/regen.data.v1.Resolver", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager.length !== 0) { - writer.uint32(26).bytes(message.manager); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = bytesFromBase64(object.manager); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager ? base64FromBytes(message.manager) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Resolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Resolver.decode(message.value); - }, - toProto(message) { - return Resolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Resolver", - value: Resolver.encode(message).finish() - }; - } -}; -function createBaseDataResolver() { - return { - id: new Uint8Array(), - resolverId: BigInt(0) - }; -} -export const DataResolver = { - typeUrl: "/regen.data.v1.DataResolver", - encode(message, writer = BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataResolver(); - message.id = object.id ?? new Uint8Array(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseDataResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = bytesFromBase64(object.id); - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? base64FromBytes(message.id) : undefined; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return DataResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DataResolver.decode(message.value); - }, - toProto(message) { - return DataResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataResolver", - value: DataResolver.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.amino.js b/packages/api/dist/esm/regen/data/v1/tx.amino.js deleted file mode 100644 index 2c9c9fec..00000000 --- a/packages/api/dist/esm/regen/data/v1/tx.amino.js +++ /dev/null @@ -1,24 +0,0 @@ -//@ts-nocheck -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export const AminoConverter = { - "/regen.data.v1.MsgAnchor": { - aminoType: "regen-ledger/MsgAnchor", - toAmino: MsgAnchor.toAmino, - fromAmino: MsgAnchor.fromAmino - }, - "/regen.data.v1.MsgAttest": { - aminoType: "regen-ledger/MsgAttest", - toAmino: MsgAttest.toAmino, - fromAmino: MsgAttest.fromAmino - }, - "/regen.data.v1.MsgDefineResolver": { - aminoType: "regen-ledger/MsgDefineResolver", - toAmino: MsgDefineResolver.toAmino, - fromAmino: MsgDefineResolver.fromAmino - }, - "/regen.data.v1.MsgRegisterResolver": { - aminoType: "regen-ledger/MsgRegisterResolver", - toAmino: MsgRegisterResolver.toAmino, - fromAmino: MsgRegisterResolver.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.js b/packages/api/dist/esm/regen/data/v1/tx.js deleted file mode 100644 index 8d05332a..00000000 --- a/packages/api/dist/esm/regen/data/v1/tx.js +++ /dev/null @@ -1,613 +0,0 @@ -//@ts-nocheck -import { ContentHash, ContentHash_Graph } from "./types"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseMsgAnchor() { - return { - sender: "", - contentHash: undefined - }; -} -export const MsgAnchor = { - typeUrl: "/regen.data.v1.MsgAnchor", - encode(message, writer = BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.contentHash !== undefined) { - ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.contentHash = ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAnchor(); - message.sender = object.sender ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAnchor(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.content_hash = message.contentHash ? ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgAnchor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgAnchor", - value: MsgAnchor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAnchor.decode(message.value); - }, - toProto(message) { - return MsgAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.encode(message).finish() - }; - } -}; -function createBaseMsgAnchorResponse() { - return { - iri: "", - timestamp: undefined - }; -} -export const MsgAnchorResponse = { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAnchorResponse(); - message.iri = object.iri ?? ""; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAnchorResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgAnchorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAnchorResponse.decode(message.value); - }, - toProto(message) { - return MsgAnchorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - value: MsgAnchorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAttest() { - return { - attestor: "", - contentHashes: [] - }; -} -export const MsgAttest = { - typeUrl: "/regen.data.v1.MsgAttest", - encode(message, writer = BinaryWriter.create()) { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - for (const v of message.contentHashes) { - ContentHash_Graph.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.contentHashes.push(ContentHash_Graph.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAttest(); - message.attestor = object.attestor ?? ""; - message.contentHashes = object.contentHashes?.map(e => ContentHash_Graph.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAttest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - message.contentHashes = object.content_hashes?.map(e => ContentHash_Graph.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash_Graph.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return MsgAttest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgAttest", - value: MsgAttest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAttest.decode(message.value); - }, - toProto(message) { - return MsgAttest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.encode(message).finish() - }; - } -}; -function createBaseMsgAttestResponse() { - return { - iris: [], - timestamp: undefined - }; -} -export const MsgAttestResponse = { - typeUrl: "/regen.data.v1.MsgAttestResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.iris) { - writer.uint32(10).string(v); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttestResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iris.push(reader.string()); - break; - case 2: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.iris) { - obj.iris = message.iris.map(e => e); - } - else { - obj.iris = message.iris; - } - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgAttestResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAttestResponse.decode(message.value); - }, - toProto(message) { - return MsgAttestResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAttestResponse", - value: MsgAttestResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolver() { - return { - manager: "", - resolverUrl: "" - }; -} -export const MsgDefineResolver = { - typeUrl: "/regen.data.v1.MsgDefineResolver", - encode(message, writer = BinaryWriter.create()) { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverUrl !== "") { - writer.uint32(18).string(message.resolverUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDefineResolver(); - message.manager = object.manager ?? ""; - message.resolverUrl = object.resolverUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDefineResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_url !== undefined && object.resolver_url !== null) { - message.resolverUrl = object.resolver_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; - return obj; - }, - fromAminoMsg(object) { - return MsgDefineResolver.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgDefineResolver", - value: MsgDefineResolver.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgDefineResolver.decode(message.value); - }, - toProto(message) { - return MsgDefineResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolverResponse() { - return { - resolverId: BigInt(0) - }; -} -export const MsgDefineResolverResponse = { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.resolverId !== BigInt(0)) { - writer.uint32(8).uint64(message.resolverId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDefineResolverResponse(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgDefineResolverResponse(); - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgDefineResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgDefineResolverResponse.decode(message.value); - }, - toProto(message) { - return MsgDefineResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - value: MsgDefineResolverResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolver() { - return { - manager: "", - resolverId: BigInt(0), - contentHashes: [] - }; -} -export const MsgRegisterResolver = { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - encode(message, writer = BinaryWriter.create()) { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - for (const v of message.contentHashes) { - ContentHash.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - case 3: - message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRegisterResolver(); - message.manager = object.manager ?? ""; - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRegisterResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return MsgRegisterResolver.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgRegisterResolver", - value: MsgRegisterResolver.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRegisterResolver.decode(message.value); - }, - toProto(message) { - return MsgRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolverResponse() { - return {}; -} -export const MsgRegisterResolverResponse = { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRegisterResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRegisterResolverResponse.decode(message.value); - }, - toProto(message) { - return MsgRegisterResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - value: MsgRegisterResolverResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.registry.js b/packages/api/dist/esm/regen/data/v1/tx.registry.js deleted file mode 100644 index 2f206c4e..00000000 --- a/packages/api/dist/esm/regen/data/v1/tx.registry.js +++ /dev/null @@ -1,87 +0,0 @@ -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export const registry = [["/regen.data.v1.MsgAnchor", MsgAnchor], ["/regen.data.v1.MsgAttest", MsgAttest], ["/regen.data.v1.MsgDefineResolver", MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", MsgRegisterResolver]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.encode(value).finish() - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.encode(value).finish() - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.encode(value).finish() - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.encode(value).finish() - }; - } - }, - withTypeUrl: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value - }; - } - }, - fromPartial: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: MsgAnchor.fromPartial(value) - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: MsgAttest.fromPartial(value) - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: MsgDefineResolver.fromPartial(value) - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: MsgRegisterResolver.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js deleted file mode 100644 index 6bfa0a89..00000000 --- a/packages/api/dist/esm/regen/data/v1/tx.rpc.msg.js +++ /dev/null @@ -1,32 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.anchor = this.anchor.bind(this); - this.attest = this.attest.bind(this); - this.defineResolver = this.defineResolver.bind(this); - this.registerResolver = this.registerResolver.bind(this); - } - anchor(request) { - const data = MsgAnchor.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); - return promise.then(data => MsgAnchorResponse.decode(new BinaryReader(data))); - } - attest(request) { - const data = MsgAttest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); - return promise.then(data => MsgAttestResponse.decode(new BinaryReader(data))); - } - defineResolver(request) { - const data = MsgDefineResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); - return promise.then(data => MsgDefineResolverResponse.decode(new BinaryReader(data))); - } - registerResolver(request) { - const data = MsgRegisterResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); - return promise.then(data => MsgRegisterResolverResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/data/v1/types.js b/packages/api/dist/esm/regen/data/v1/types.js deleted file mode 100644 index b6399c38..00000000 --- a/packages/api/dist/esm/regen/data/v1/types.js +++ /dev/null @@ -1,579 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../../helpers"; -/** DigestAlgorithm is the hash digest algorithm */ -export var DigestAlgorithm; -(function (DigestAlgorithm) { - /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_UNSPECIFIED"] = 0] = "DIGEST_ALGORITHM_UNSPECIFIED"; - /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ - DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_BLAKE2B_256"] = 1] = "DIGEST_ALGORITHM_BLAKE2B_256"; - DigestAlgorithm[DigestAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(DigestAlgorithm || (DigestAlgorithm = {})); -export const DigestAlgorithmSDKType = DigestAlgorithm; -export const DigestAlgorithmAmino = DigestAlgorithm; -export function digestAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "DIGEST_ALGORITHM_UNSPECIFIED": - return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; - case 1: - case "DIGEST_ALGORITHM_BLAKE2B_256": - return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; - case -1: - case "UNRECOGNIZED": - default: - return DigestAlgorithm.UNRECOGNIZED; - } -} -export function digestAlgorithmToJSON(object) { - switch (object) { - case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: - return "DIGEST_ALGORITHM_UNSPECIFIED"; - case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: - return "DIGEST_ALGORITHM_BLAKE2B_256"; - case DigestAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ -export var RawMediaType; -(function (RawMediaType) { - /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_UNSPECIFIED"] = 0] = "RAW_MEDIA_TYPE_UNSPECIFIED"; - /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TEXT_PLAIN"] = 1] = "RAW_MEDIA_TYPE_TEXT_PLAIN"; - /** RAW_MEDIA_TYPE_JSON - JSON */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JSON"] = 2] = "RAW_MEDIA_TYPE_JSON"; - /** RAW_MEDIA_TYPE_CSV - CSV */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_CSV"] = 3] = "RAW_MEDIA_TYPE_CSV"; - /** RAW_MEDIA_TYPE_XML - XML */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_XML"] = 4] = "RAW_MEDIA_TYPE_XML"; - /** RAW_MEDIA_TYPE_PDF - PDF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PDF"] = 5] = "RAW_MEDIA_TYPE_PDF"; - /** RAW_MEDIA_TYPE_TIFF - TIIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TIFF"] = 16] = "RAW_MEDIA_TYPE_TIFF"; - /** RAW_MEDIA_TYPE_JPG - JPG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JPG"] = 17] = "RAW_MEDIA_TYPE_JPG"; - /** RAW_MEDIA_TYPE_PNG - PNG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PNG"] = 18] = "RAW_MEDIA_TYPE_PNG"; - /** RAW_MEDIA_TYPE_SVG - SVG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_SVG"] = 19] = "RAW_MEDIA_TYPE_SVG"; - /** RAW_MEDIA_TYPE_WEBP - WEBP */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBP"] = 20] = "RAW_MEDIA_TYPE_WEBP"; - /** RAW_MEDIA_TYPE_AVIF - AVIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_AVIF"] = 21] = "RAW_MEDIA_TYPE_AVIF"; - /** RAW_MEDIA_TYPE_GIF - GIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_GIF"] = 22] = "RAW_MEDIA_TYPE_GIF"; - /** RAW_MEDIA_TYPE_APNG - APNG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_APNG"] = 23] = "RAW_MEDIA_TYPE_APNG"; - /** RAW_MEDIA_TYPE_MPEG - MPEG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MPEG"] = 32] = "RAW_MEDIA_TYPE_MPEG"; - /** RAW_MEDIA_TYPE_MP4 - MP4 */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MP4"] = 33] = "RAW_MEDIA_TYPE_MP4"; - /** RAW_MEDIA_TYPE_WEBM - WEBM */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBM"] = 34] = "RAW_MEDIA_TYPE_WEBM"; - /** RAW_MEDIA_TYPE_OGG - OGG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_OGG"] = 35] = "RAW_MEDIA_TYPE_OGG"; - RawMediaType[RawMediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(RawMediaType || (RawMediaType = {})); -export const RawMediaTypeSDKType = RawMediaType; -export const RawMediaTypeAmino = RawMediaType; -export function rawMediaTypeFromJSON(object) { - switch (object) { - case 0: - case "RAW_MEDIA_TYPE_UNSPECIFIED": - return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; - case 1: - case "RAW_MEDIA_TYPE_TEXT_PLAIN": - return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; - case 2: - case "RAW_MEDIA_TYPE_JSON": - return RawMediaType.RAW_MEDIA_TYPE_JSON; - case 3: - case "RAW_MEDIA_TYPE_CSV": - return RawMediaType.RAW_MEDIA_TYPE_CSV; - case 4: - case "RAW_MEDIA_TYPE_XML": - return RawMediaType.RAW_MEDIA_TYPE_XML; - case 5: - case "RAW_MEDIA_TYPE_PDF": - return RawMediaType.RAW_MEDIA_TYPE_PDF; - case 16: - case "RAW_MEDIA_TYPE_TIFF": - return RawMediaType.RAW_MEDIA_TYPE_TIFF; - case 17: - case "RAW_MEDIA_TYPE_JPG": - return RawMediaType.RAW_MEDIA_TYPE_JPG; - case 18: - case "RAW_MEDIA_TYPE_PNG": - return RawMediaType.RAW_MEDIA_TYPE_PNG; - case 19: - case "RAW_MEDIA_TYPE_SVG": - return RawMediaType.RAW_MEDIA_TYPE_SVG; - case 20: - case "RAW_MEDIA_TYPE_WEBP": - return RawMediaType.RAW_MEDIA_TYPE_WEBP; - case 21: - case "RAW_MEDIA_TYPE_AVIF": - return RawMediaType.RAW_MEDIA_TYPE_AVIF; - case 22: - case "RAW_MEDIA_TYPE_GIF": - return RawMediaType.RAW_MEDIA_TYPE_GIF; - case 23: - case "RAW_MEDIA_TYPE_APNG": - return RawMediaType.RAW_MEDIA_TYPE_APNG; - case 32: - case "RAW_MEDIA_TYPE_MPEG": - return RawMediaType.RAW_MEDIA_TYPE_MPEG; - case 33: - case "RAW_MEDIA_TYPE_MP4": - return RawMediaType.RAW_MEDIA_TYPE_MP4; - case 34: - case "RAW_MEDIA_TYPE_WEBM": - return RawMediaType.RAW_MEDIA_TYPE_WEBM; - case 35: - case "RAW_MEDIA_TYPE_OGG": - return RawMediaType.RAW_MEDIA_TYPE_OGG; - case -1: - case "UNRECOGNIZED": - default: - return RawMediaType.UNRECOGNIZED; - } -} -export function rawMediaTypeToJSON(object) { - switch (object) { - case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: - return "RAW_MEDIA_TYPE_UNSPECIFIED"; - case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: - return "RAW_MEDIA_TYPE_TEXT_PLAIN"; - case RawMediaType.RAW_MEDIA_TYPE_JSON: - return "RAW_MEDIA_TYPE_JSON"; - case RawMediaType.RAW_MEDIA_TYPE_CSV: - return "RAW_MEDIA_TYPE_CSV"; - case RawMediaType.RAW_MEDIA_TYPE_XML: - return "RAW_MEDIA_TYPE_XML"; - case RawMediaType.RAW_MEDIA_TYPE_PDF: - return "RAW_MEDIA_TYPE_PDF"; - case RawMediaType.RAW_MEDIA_TYPE_TIFF: - return "RAW_MEDIA_TYPE_TIFF"; - case RawMediaType.RAW_MEDIA_TYPE_JPG: - return "RAW_MEDIA_TYPE_JPG"; - case RawMediaType.RAW_MEDIA_TYPE_PNG: - return "RAW_MEDIA_TYPE_PNG"; - case RawMediaType.RAW_MEDIA_TYPE_SVG: - return "RAW_MEDIA_TYPE_SVG"; - case RawMediaType.RAW_MEDIA_TYPE_WEBP: - return "RAW_MEDIA_TYPE_WEBP"; - case RawMediaType.RAW_MEDIA_TYPE_AVIF: - return "RAW_MEDIA_TYPE_AVIF"; - case RawMediaType.RAW_MEDIA_TYPE_GIF: - return "RAW_MEDIA_TYPE_GIF"; - case RawMediaType.RAW_MEDIA_TYPE_APNG: - return "RAW_MEDIA_TYPE_APNG"; - case RawMediaType.RAW_MEDIA_TYPE_MPEG: - return "RAW_MEDIA_TYPE_MPEG"; - case RawMediaType.RAW_MEDIA_TYPE_MP4: - return "RAW_MEDIA_TYPE_MP4"; - case RawMediaType.RAW_MEDIA_TYPE_WEBM: - return "RAW_MEDIA_TYPE_WEBM"; - case RawMediaType.RAW_MEDIA_TYPE_OGG: - return "RAW_MEDIA_TYPE_OGG"; - case RawMediaType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ -export var GraphCanonicalizationAlgorithm; -(function (GraphCanonicalizationAlgorithm) { - /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"] = 0] = "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; - /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"] = 1] = "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(GraphCanonicalizationAlgorithm || (GraphCanonicalizationAlgorithm = {})); -export const GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; -export const GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; -export function graphCanonicalizationAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; - case 1: - case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; - case -1: - case "UNRECOGNIZED": - default: - return GraphCanonicalizationAlgorithm.UNRECOGNIZED; - } -} -export function graphCanonicalizationAlgorithmToJSON(object) { - switch (object) { - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: - return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: - return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; - case GraphCanonicalizationAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ -export var GraphMerkleTree; -(function (GraphMerkleTree) { - /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ - GraphMerkleTree[GraphMerkleTree["GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"] = 0] = "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; - GraphMerkleTree[GraphMerkleTree["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(GraphMerkleTree || (GraphMerkleTree = {})); -export const GraphMerkleTreeSDKType = GraphMerkleTree; -export const GraphMerkleTreeAmino = GraphMerkleTree; -export function graphMerkleTreeFromJSON(object) { - switch (object) { - case 0: - case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": - return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; - case -1: - case "UNRECOGNIZED": - default: - return GraphMerkleTree.UNRECOGNIZED; - } -} -export function graphMerkleTreeToJSON(object) { - switch (object) { - case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: - return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; - case GraphMerkleTree.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseContentHash() { - return { - raw: undefined, - graph: undefined - }; -} -export const ContentHash = { - typeUrl: "/regen.data.v1.ContentHash", - encode(message, writer = BinaryWriter.create()) { - if (message.raw !== undefined) { - ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); - } - if (message.graph !== undefined) { - ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.raw = ContentHash_Raw.decode(reader, reader.uint32()); - break; - case 2: - message.graph = ContentHash_Graph.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash(); - message.raw = object.raw !== undefined && object.raw !== null ? ContentHash_Raw.fromPartial(object.raw) : undefined; - message.graph = object.graph !== undefined && object.graph !== null ? ContentHash_Graph.fromPartial(object.graph) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash(); - if (object.raw !== undefined && object.raw !== null) { - message.raw = ContentHash_Raw.fromAmino(object.raw); - } - if (object.graph !== undefined && object.graph !== null) { - message.graph = ContentHash_Graph.fromAmino(object.graph); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.raw = message.raw ? ContentHash_Raw.toAmino(message.raw) : undefined; - obj.graph = message.graph ? ContentHash_Graph.toAmino(message.graph) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ContentHash.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ContentHash.decode(message.value); - }, - toProto(message) { - return ContentHash.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ContentHash", - value: ContentHash.encode(message).finish() - }; - } -}; -function createBaseContentHash_Raw() { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - mediaType: 0 - }; -} -export const ContentHash_Raw = { - typeUrl: "/regen.data.v1.Raw", - encode(message, writer = BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.mediaType !== 0) { - writer.uint32(24).int32(message.mediaType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Raw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = reader.int32(); - break; - case 3: - message.mediaType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash_Raw(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.mediaType = object.mediaType ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash_Raw(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.media_type !== undefined && object.media_type !== null) { - message.mediaType = object.media_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; - return obj; - }, - fromAminoMsg(object) { - return ContentHash_Raw.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ContentHash_Raw.decode(message.value); - }, - toProto(message) { - return ContentHash_Raw.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Raw", - value: ContentHash_Raw.encode(message).finish() - }; - } -}; -function createBaseContentHash_Graph() { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - canonicalizationAlgorithm: 0, - merkleTree: 0 - }; -} -export const ContentHash_Graph = { - typeUrl: "/regen.data.v1.Graph", - encode(message, writer = BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.canonicalizationAlgorithm !== 0) { - writer.uint32(24).int32(message.canonicalizationAlgorithm); - } - if (message.merkleTree !== 0) { - writer.uint32(32).int32(message.merkleTree); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Graph(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = reader.int32(); - break; - case 3: - message.canonicalizationAlgorithm = reader.int32(); - break; - case 4: - message.merkleTree = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash_Graph(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; - message.merkleTree = object.merkleTree ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash_Graph(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { - message.canonicalizationAlgorithm = object.canonicalization_algorithm; - } - if (object.merkle_tree !== undefined && object.merkle_tree !== null) { - message.merkleTree = object.merkle_tree; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; - obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; - return obj; - }, - fromAminoMsg(object) { - return ContentHash_Graph.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ContentHash_Graph.decode(message.value); - }, - toProto(message) { - return ContentHash_Graph.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Graph", - value: ContentHash_Graph.encode(message).finish() - }; - } -}; -function createBaseContentHashes() { - return { - contentHashes: [] - }; -} -export const ContentHashes = { - typeUrl: "/regen.data.v1.ContentHashes", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.contentHashes) { - ContentHash.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHashes(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHashes.push(ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHashes(); - message.contentHashes = object.contentHashes?.map(e => ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseContentHashes(); - message.contentHashes = object.content_hashes?.map(e => ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? ContentHash.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return ContentHashes.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ContentHashes.decode(message.value); - }, - toProto(message) { - return ContentHashes.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ContentHashes", - value: ContentHashes.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js deleted file mode 100644 index dd96789a..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/events.js +++ /dev/null @@ -1,408 +0,0 @@ -//@ts-nocheck -import { BasketCredit } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseEventCreate() { - return { - basketDenom: "", - curator: "" - }; -} -export const EventCreate = { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.curator !== "") { - writer.uint32(18).string(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreate(); - message.basketDenom = object.basketDenom ?? ""; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreate(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object) { - return EventCreate.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreate.decode(message.value); - }, - toProto(message) { - return EventCreate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - value: EventCreate.encode(message).finish() - }; - } -}; -function createBaseEventPut() { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -export const EventPut = { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return EventPut.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventPut.decode(message.value); - }, - toProto(message) { - return EventPut.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - value: EventPut.encode(message).finish() - }; - } -}; -function createBaseEventTake() { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -export const EventTake = { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return EventTake.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventTake.decode(message.value); - }, - toProto(message) { - return EventTake.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - value: EventTake.encode(message).finish() - }; - } -}; -function createBaseEventUpdateCurator() { - return { - denom: "" - }; -} -export const EventUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateCurator(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateCurator(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateCurator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateCurator.decode(message.value); - }, - toProto(message) { - return EventUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - value: EventUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseEventUpdateDateCriteria() { - return { - denom: "" - }; -} -export const EventUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateDateCriteria(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateDateCriteria(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateDateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateDateCriteria.decode(message.value); - }, - toProto(message) { - return EventUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - value: EventUpdateDateCriteria.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js deleted file mode 100644 index 21a3f162..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.js +++ /dev/null @@ -1,944 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Basket, BasketBalance } from "./state"; -import { DateCriteria } from "./types"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseQueryBasketRequest() { - return { - basketDenom: "" - }; -} -export const QueryBasketRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketRequest(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketRequest.decode(message.value); - }, - toProto(message) { - return QueryBasketRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - value: QueryBasketRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketResponse() { - return { - basket: undefined, - classes: [], - basketInfo: undefined - }; -} -export const QueryBasketResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.basket !== undefined) { - Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classes) { - writer.uint32(18).string(v); - } - if (message.basketInfo !== undefined) { - BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basket = Basket.decode(reader, reader.uint32()); - break; - case 2: - message.classes.push(reader.string()); - break; - case 3: - message.basketInfo = BasketInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketResponse(); - message.basket = object.basket !== undefined && object.basket !== null ? Basket.fromPartial(object.basket) : undefined; - message.classes = object.classes?.map(e => e) || []; - message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? BasketInfo.fromPartial(object.basketInfo) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketResponse(); - if (object.basket !== undefined && object.basket !== null) { - message.basket = Basket.fromAmino(object.basket); - } - message.classes = object.classes?.map(e => e) || []; - if (object.basket_info !== undefined && object.basket_info !== null) { - message.basketInfo = BasketInfo.fromAmino(object.basket_info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket = message.basket ? Basket.toAmino(message.basket) : undefined; - if (message.classes) { - obj.classes = message.classes.map(e => e); - } - else { - obj.classes = message.classes; - } - obj.basket_info = message.basketInfo ? BasketInfo.toAmino(message.basketInfo) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketResponse.decode(message.value); - }, - toProto(message) { - return QueryBasketResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - value: QueryBasketResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsRequest() { - return { - pagination: undefined - }; -} -export const QueryBasketsRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketsRequest.decode(message.value); - }, - toProto(message) { - return QueryBasketsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - value: QueryBasketsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsResponse() { - return { - baskets: [], - pagination: undefined, - basketsInfo: [] - }; -} -export const QueryBasketsResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.baskets) { - Basket.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.basketsInfo) { - BasketInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baskets.push(Basket.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.basketsInfo.push(BasketInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => Basket.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.basketsInfo = object.basketsInfo?.map(e => BasketInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => Basket.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - message.basketsInfo = object.baskets_info?.map(e => BasketInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.baskets) { - obj.baskets = message.baskets.map(e => e ? Basket.toAmino(e) : undefined); - } - else { - obj.baskets = message.baskets; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - if (message.basketsInfo) { - obj.baskets_info = message.basketsInfo.map(e => e ? BasketInfo.toAmino(e) : undefined); - } - else { - obj.baskets_info = message.basketsInfo; - } - return obj; - }, - fromAminoMsg(object) { - return QueryBasketsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketsResponse.decode(message.value); - }, - toProto(message) { - return QueryBasketsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - value: QueryBasketsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesRequest() { - return { - basketDenom: "", - pagination: undefined - }; -} -export const QueryBasketBalancesRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalancesRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalancesRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketBalancesRequest.decode(message.value); - }, - toProto(message) { - return QueryBasketBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - value: QueryBasketBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesResponse() { - return { - balances: [], - pagination: undefined, - balancesInfo: [] - }; -} -export const QueryBasketBalancesResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - BasketBalance.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.balancesInfo) { - BasketBalanceInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BasketBalance.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.balancesInfo.push(BasketBalanceInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => BasketBalance.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - message.balancesInfo = object.balancesInfo?.map(e => BasketBalanceInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => BasketBalance.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - message.balancesInfo = object.balances_info?.map(e => BasketBalanceInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BasketBalance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - if (message.balancesInfo) { - obj.balances_info = message.balancesInfo.map(e => e ? BasketBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances_info = message.balancesInfo; - } - return obj; - }, - fromAminoMsg(object) { - return QueryBasketBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketBalancesResponse.decode(message.value); - }, - toProto(message) { - return QueryBasketBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - value: QueryBasketBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceRequest() { - return { - basketDenom: "", - batchDenom: "" - }; -} -export const QueryBasketBalanceRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalanceRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalanceRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketBalanceRequest.decode(message.value); - }, - toProto(message) { - return QueryBasketBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - value: QueryBasketBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceResponse() { - return { - balance: "" - }; -} -export const QueryBasketBalanceResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.balance !== "") { - writer.uint32(10).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalanceResponse(); - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketBalanceResponse.decode(message.value); - }, - toProto(message) { - return QueryBasketBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - value: QueryBasketBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseBasketInfo() { - return { - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: "" - }; -} -export const BasketInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(24).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(48).uint32(message.exponent); - } - if (message.curator !== "") { - writer.uint32(58).string(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.disableAutoRetire = reader.bool(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 6: - message.exponent = reader.uint32(); - break; - case 7: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketInfo(); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketInfo(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object) { - return BasketInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketInfo.decode(message.value); - }, - toProto(message) { - return BasketInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - value: BasketInfo.encode(message).finish() - }; - } -}; -function createBaseBasketBalanceInfo() { - return { - batchDenom: "", - balance: "" - }; -} -export const BasketBalanceInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(18).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketBalanceInfo(); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketBalanceInfo(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return BasketBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketBalanceInfo.decode(message.value); - }, - toProto(message) { - return BasketBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - value: BasketBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeRequest() { - return {}; -} -export const QueryBasketFeeRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketFeeRequest.decode(message.value); - }, - toProto(message) { - return QueryBasketFeeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - value: QueryBasketFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeResponse() { - return { - fee: undefined - }; -} -export const QueryBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBasketFeeResponse.decode(message.value); - }, - toProto(message) { - return QueryBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - value: QueryBasketFeeResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js deleted file mode 100644 index ea612740..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.lcd.js +++ /dev/null @@ -1,55 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - /* Basket queries one basket by denom. */ - async basket(params) { - const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; - return await this.req.get(endpoint); - } - /* Baskets lists all baskets in the ecocredit module. */ - async baskets(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/baskets`; - return await this.req.get(endpoint, options); - } - /* BasketBalances lists the balance of each credit batch in the basket. */ - async basketBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; - return await this.req.get(endpoint, options); - } - /* BasketBalance queries the balance of a specific credit batch in the basket. */ - async basketBalance(params) { - const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* BasketFee returns the basket creation fee. If not set, a basket creation - fee is not required. - - Since Revision 2 */ - async basketFee(_params = {}) { - const endpoint = `regen/ecocredit/basket/v1/basket-fee`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js deleted file mode 100644 index 8824a083..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/query.rpc.Query.js +++ /dev/null @@ -1,62 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - basket(request) { - const data = QueryBasketRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); - return promise.then(data => QueryBasketResponse.decode(new BinaryReader(data))); - } - baskets(request = { - pagination: undefined - }) { - const data = QueryBasketsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); - return promise.then(data => QueryBasketsResponse.decode(new BinaryReader(data))); - } - basketBalances(request) { - const data = QueryBasketBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); - return promise.then(data => QueryBasketBalancesResponse.decode(new BinaryReader(data))); - } - basketBalance(request) { - const data = QueryBasketBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); - return promise.then(data => QueryBasketBalanceResponse.decode(new BinaryReader(data))); - } - basketFee(request = {}) { - const data = QueryBasketFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); - return promise.then(data => QueryBasketFeeResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - basket(request) { - return queryService.basket(request); - }, - baskets(request) { - return queryService.baskets(request); - }, - basketBalances(request) { - return queryService.basketBalances(request); - }, - basketBalance(request) { - return queryService.basketBalance(request); - }, - basketFee(request) { - return queryService.basketFee(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js deleted file mode 100644 index 8a69f026..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/state.js +++ /dev/null @@ -1,390 +0,0 @@ -//@ts-nocheck -import { DateCriteria } from "./types"; -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../../helpers"; -function createBaseBasket() { - return { - id: BigInt(0), - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: new Uint8Array() - }; -} -export const Basket = { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(26).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(56).uint32(message.exponent); - } - if (message.curator.length !== 0) { - writer.uint32(66).bytes(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - case 6: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 7: - message.exponent = reader.uint32(); - break; - case 8: - message.curator = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseBasket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = bytesFromBase64(object.curator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator ? base64FromBytes(message.curator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Basket.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Basket.decode(message.value); - }, - toProto(message) { - return Basket.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - value: Basket.encode(message).finish() - }; - } -}; -function createBaseBasketClass() { - return { - basketId: BigInt(0), - classId: "" - }; -} -export const BasketClass = { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - encode(message, writer = BinaryWriter.create()) { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketClass(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketClass(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return BasketClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketClass.decode(message.value); - }, - toProto(message) { - return BasketClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - value: BasketClass.encode(message).finish() - }; - } -}; -function createBaseBasketBalance() { - return { - basketId: BigInt(0), - batchDenom: "", - balance: "", - batchStartDate: undefined - }; -} -export const BasketBalance = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - encode(message, writer = BinaryWriter.create()) { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(26).string(message.balance); - } - if (message.batchStartDate !== undefined) { - Timestamp.encode(toTimestamp(message.batchStartDate), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.balance = reader.string(); - break; - case 4: - message.batchStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketBalance(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - message.batchStartDate = object.batchStartDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasketBalance(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - if (object.batch_start_date !== undefined && object.batch_start_date !== null) { - message.batchStartDate = fromTimestamp(Timestamp.fromAmino(object.batch_start_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - obj.batch_start_date = message.batchStartDate ? Timestamp.toAmino(toTimestamp(message.batchStartDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BasketBalance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketBalance.decode(message.value); - }, - toProto(message) { - return BasketBalance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - value: BasketBalance.encode(message).finish() - }; - } -}; -function createBaseBasketFee() { - return { - fee: undefined - }; -} -export const BasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - encode(message, writer = BinaryWriter.create()) { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketFee(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasketFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BasketFee.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketFee.decode(message.value); - }, - toProto(message) { - return BasketFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - value: BasketFee.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js deleted file mode 100644 index f28756f4..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.amino.js +++ /dev/null @@ -1,34 +0,0 @@ -//@ts-nocheck -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: "regen.basket/MsgCreate", - toAmino: MsgCreate.toAmino, - fromAmino: MsgCreate.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: "regen.basket/MsgPut", - toAmino: MsgPut.toAmino, - fromAmino: MsgPut.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: "regen.basket/MsgTake", - toAmino: MsgTake.toAmino, - fromAmino: MsgTake.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: "regen.basket/MsgUpdateBasketFee", - toAmino: MsgUpdateBasketFee.toAmino, - fromAmino: MsgUpdateBasketFee.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: "regen.basket/MsgUpdateCurator", - toAmino: MsgUpdateCurator.toAmino, - fromAmino: MsgUpdateCurator.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: "regen.basket/MsgUpdateDateCriteria", - toAmino: MsgUpdateDateCriteria.toAmino, - fromAmino: MsgUpdateDateCriteria.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js deleted file mode 100644 index 82d48bdb..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.js +++ /dev/null @@ -1,1021 +0,0 @@ -//@ts-nocheck -import { DateCriteria, BasketCredit } from "./types"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseMsgCreate() { - return { - curator: "", - name: "", - description: "", - exponent: 0, - disableAutoRetire: false, - creditTypeAbbrev: "", - allowedClasses: [], - dateCriteria: undefined, - fee: [] - }; -} -export const MsgCreate = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - encode(message, writer = BinaryWriter.create()) { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.description !== "") { - writer.uint32(26).string(message.description); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(50).string(message.creditTypeAbbrev); - } - for (const v of message.allowedClasses) { - writer.uint32(58).string(v); - } - if (message.dateCriteria !== undefined) { - DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.fee) { - Coin.encode(v, writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.creditTypeAbbrev = reader.string(); - break; - case 7: - message.allowedClasses.push(reader.string()); - break; - case 8: - message.dateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - case 9: - message.fee.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreate(); - message.curator = object.curator ?? ""; - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.exponent = object.exponent ?? 0; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.allowedClasses = object.allowedClasses?.map(e => e) || []; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.fee = object.fee?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreate(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - message.allowedClasses = object.allowed_classes?.map(e => e) || []; - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = DateCriteria.fromAmino(object.date_criteria); - } - message.fee = object.fee?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - if (message.allowedClasses) { - obj.allowed_classes = message.allowedClasses.map(e => e); - } - else { - obj.allowed_classes = message.allowedClasses; - } - obj.date_criteria = message.dateCriteria ? DateCriteria.toAmino(message.dateCriteria) : undefined; - if (message.fee) { - obj.fee = message.fee.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.fee = message.fee; - } - return obj; - }, - fromAminoMsg(object) { - return MsgCreate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgCreate", - value: MsgCreate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreate.decode(message.value); - }, - toProto(message) { - return MsgCreate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.encode(message).finish() - }; - } -}; -function createBaseMsgCreateResponse() { - return { - basketDenom: "" - }; -} -export const MsgCreateResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateResponse(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateResponse(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - value: MsgCreateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgPut() { - return { - owner: "", - basketDenom: "", - credits: [] - }; -} -export const MsgPut = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgPut.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgPut", - value: MsgPut.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgPut.decode(message.value); - }, - toProto(message) { - return MsgPut.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.encode(message).finish() - }; - } -}; -function createBaseMsgPutResponse() { - return { - amountReceived: "" - }; -} -export const MsgPutResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.amountReceived !== "") { - writer.uint32(10).string(message.amountReceived); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPutResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amountReceived = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgPutResponse(); - message.amountReceived = object.amountReceived ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgPutResponse(); - if (object.amount_received !== undefined && object.amount_received !== null) { - message.amountReceived = object.amount_received; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; - return obj; - }, - fromAminoMsg(object) { - return MsgPutResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgPutResponse.decode(message.value); - }, - toProto(message) { - return MsgPutResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - value: MsgPutResponse.encode(message).finish() - }; - } -}; -function createBaseMsgTake() { - return { - owner: "", - basketDenom: "", - amount: "", - retirementLocation: "", - retireOnTake: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgTake = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - if (message.retireOnTake === true) { - writer.uint32(40).bool(message.retireOnTake); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - case 5: - message.retireOnTake = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.amount = object.amount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - message.retireOnTake = object.retireOnTake ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - if (object.retire_on_take !== undefined && object.retire_on_take !== null) { - message.retireOnTake = object.retire_on_take; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return MsgTake.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgTake", - value: MsgTake.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgTake.decode(message.value); - }, - toProto(message) { - return MsgTake.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.encode(message).finish() - }; - } -}; -function createBaseMsgTakeResponse() { - return { - credits: [] - }; -} -export const MsgTakeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.credits) { - BasketCredit.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTakeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.credits.push(BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.credits) { - obj.credits = message.credits.map(e => e ? BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgTakeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgTakeResponse.decode(message.value); - }, - toProto(message) { - return MsgTakeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - value: MsgTakeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFee() { - return { - authority: "", - fee: undefined - }; -} -export const MsgUpdateBasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateBasketFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateBasketFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateBasketFee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateBasketFee", - value: MsgUpdateBasketFee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateBasketFee.decode(message.value); - }, - toProto(message) { - return MsgUpdateBasketFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFeeResponse() { - return {}; -} -export const MsgUpdateBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateBasketFeeResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - value: MsgUpdateBasketFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCurator() { - return { - curator: "", - denom: "", - newCurator: "" - }; -} -export const MsgUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - encode(message, writer = BinaryWriter.create()) { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newCurator !== "") { - writer.uint32(26).string(message.newCurator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 3: - message.newCurator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateCurator(); - message.curator = object.curator ?? ""; - message.denom = object.denom ?? ""; - message.newCurator = object.newCurator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateCurator(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_curator !== undefined && object.new_curator !== null) { - message.newCurator = object.new_curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateCurator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateCurator", - value: MsgUpdateCurator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateCurator.decode(message.value); - }, - toProto(message) { - return MsgUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCuratorResponse() { - return {}; -} -export const MsgUpdateCuratorResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCuratorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateCuratorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateCuratorResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateCuratorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - value: MsgUpdateCuratorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteria() { - return { - authority: "", - denom: "", - newDateCriteria: undefined - }; -} -export const MsgUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newDateCriteria !== undefined) { - DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 8: - message.newDateCriteria = DateCriteria.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateDateCriteria(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? DateCriteria.fromPartial(object.newDateCriteria) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateDateCriteria(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { - message.newDateCriteria = DateCriteria.fromAmino(object.new_date_criteria); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_date_criteria = message.newDateCriteria ? DateCriteria.toAmino(message.newDateCriteria) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateDateCriteria.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateDateCriteria.decode(message.value); - }, - toProto(message) { - return MsgUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteriaResponse() { - return {}; -} -export const MsgUpdateDateCriteriaResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteriaResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateDateCriteriaResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateDateCriteriaResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateDateCriteriaResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - value: MsgUpdateDateCriteriaResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js deleted file mode 100644 index b7e95b01..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.registry.js +++ /dev/null @@ -1,123 +0,0 @@ -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export const registry = [["/regen.ecocredit.basket.v1.MsgCreate", MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", MsgUpdateDateCriteria]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.encode(value).finish() - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.encode(value).finish() - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.encode(value).finish() - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.encode(value).finish() - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.encode(value).finish() - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.encode(value).finish() - }; - } - }, - withTypeUrl: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value - }; - } - }, - fromPartial: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: MsgCreate.fromPartial(value) - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: MsgPut.fromPartial(value) - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: MsgTake.fromPartial(value) - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: MsgUpdateBasketFee.fromPartial(value) - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: MsgUpdateCurator.fromPartial(value) - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: MsgUpdateDateCriteria.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js deleted file mode 100644 index f6e086a7..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/tx.rpc.msg.js +++ /dev/null @@ -1,44 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.create = this.create.bind(this); - this.put = this.put.bind(this); - this.take = this.take.bind(this); - this.updateBasketFee = this.updateBasketFee.bind(this); - this.updateCurator = this.updateCurator.bind(this); - this.updateDateCriteria = this.updateDateCriteria.bind(this); - } - create(request) { - const data = MsgCreate.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); - return promise.then(data => MsgCreateResponse.decode(new BinaryReader(data))); - } - put(request) { - const data = MsgPut.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); - return promise.then(data => MsgPutResponse.decode(new BinaryReader(data))); - } - take(request) { - const data = MsgTake.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); - return promise.then(data => MsgTakeResponse.decode(new BinaryReader(data))); - } - updateBasketFee(request) { - const data = MsgUpdateBasketFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); - return promise.then(data => MsgUpdateBasketFeeResponse.decode(new BinaryReader(data))); - } - updateCurator(request) { - const data = MsgUpdateCurator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); - return promise.then(data => MsgUpdateCuratorResponse.decode(new BinaryReader(data))); - } - updateDateCriteria(request) { - const data = MsgUpdateDateCriteria.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); - return promise.then(data => MsgUpdateDateCriteriaResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js b/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js deleted file mode 100644 index dd0644d3..00000000 --- a/packages/api/dist/esm/regen/ecocredit/basket/v1/types.js +++ /dev/null @@ -1,167 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { Duration } from "../../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../../helpers"; -function createBaseBasketCredit() { - return { - batchDenom: "", - amount: "" - }; -} -export const BasketCredit = { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketCredit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketCredit(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketCredit(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return BasketCredit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BasketCredit.decode(message.value); - }, - toProto(message) { - return BasketCredit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - value: BasketCredit.encode(message).finish() - }; - } -}; -function createBaseDateCriteria() { - return { - minStartDate: undefined, - startDateWindow: undefined, - yearsInThePast: 0 - }; -} -export const DateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - encode(message, writer = BinaryWriter.create()) { - if (message.minStartDate !== undefined) { - Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(10).fork()).ldelim(); - } - if (message.startDateWindow !== undefined) { - Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); - } - if (message.yearsInThePast !== 0) { - writer.uint32(24).uint32(message.yearsInThePast); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 2: - message.startDateWindow = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.yearsInThePast = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDateCriteria(); - message.minStartDate = object.minStartDate ?? undefined; - message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? Duration.fromPartial(object.startDateWindow) : undefined; - message.yearsInThePast = object.yearsInThePast ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseDateCriteria(); - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); - } - if (object.start_date_window !== undefined && object.start_date_window !== null) { - message.startDateWindow = Duration.fromAmino(object.start_date_window); - } - if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { - message.yearsInThePast = object.years_in_the_past; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; - obj.start_date_window = message.startDateWindow ? Duration.toAmino(message.startDateWindow) : undefined; - obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; - return obj; - }, - fromAminoMsg(object) { - return DateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DateCriteria.decode(message.value); - }, - toProto(message) { - return DateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - value: DateCriteria.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js deleted file mode 100644 index 176c33dc..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/events.js +++ /dev/null @@ -1,380 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseEventSell() { - return { - sellOrderId: BigInt(0) - }; -} -export const EventSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSell(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventSell(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventSell.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventSell.decode(message.value); - }, - toProto(message) { - return EventSell.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - value: EventSell.encode(message).finish() - }; - } -}; -function createBaseEventBuyDirect() { - return { - sellOrderId: BigInt(0) - }; -} -export const EventBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBuyDirect(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventBuyDirect(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventBuyDirect.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventBuyDirect.decode(message.value); - }, - toProto(message) { - return EventBuyDirect.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - value: EventBuyDirect.encode(message).finish() - }; - } -}; -function createBaseEventUpdateSellOrder() { - return { - sellOrderId: BigInt(0) - }; -} -export const EventUpdateSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateSellOrder.decode(message.value); - }, - toProto(message) { - return EventUpdateSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - value: EventUpdateSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventCancelSellOrder() { - return { - sellOrderId: BigInt(0) - }; -} -export const EventCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancelSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventCancelSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventCancelSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCancelSellOrder.decode(message.value); - }, - toProto(message) { - return EventCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - value: EventCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventAllowDenom() { - return { - denom: "" - }; -} -export const EventAllowDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAllowDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAllowDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAllowDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return EventAllowDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventAllowDenom.decode(message.value); - }, - toProto(message) { - return EventAllowDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - value: EventAllowDenom.encode(message).finish() - }; - } -}; -function createBaseEventRemoveAllowedDenom() { - return { - denom: "" - }; -} -export const EventRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRemoveAllowedDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRemoveAllowedDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return EventRemoveAllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventRemoveAllowedDenom.decode(message.value); - }, - toProto(message) { - return EventRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - value: EventRemoveAllowedDenom.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js deleted file mode 100644 index 39d46bce..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.js +++ /dev/null @@ -1,867 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { AllowedDenom } from "./state"; -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../../helpers"; -function createBaseQuerySellOrderRequest() { - return { - sellOrderId: BigInt(0) - }; -} -export const QuerySellOrderRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrderRequest(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrderRequest(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrderRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrderRequest.decode(message.value); - }, - toProto(message) { - return QuerySellOrderRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - value: QuerySellOrderRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrderResponse() { - return { - sellOrder: undefined - }; -} -export const QuerySellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrder !== undefined) { - SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrder = SellOrderInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrderResponse(); - message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? SellOrderInfo.fromPartial(object.sellOrder) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrderResponse(); - if (object.sell_order !== undefined && object.sell_order !== null) { - message.sellOrder = SellOrderInfo.fromAmino(object.sell_order); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order = message.sellOrder ? SellOrderInfo.toAmino(message.sellOrder) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrderResponse.decode(message.value); - }, - toProto(message) { - return QuerySellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - value: QuerySellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersRequest() { - return { - pagination: undefined - }; -} -export const QuerySellOrdersRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersRequest.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - value: QuerySellOrdersRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersResponse.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - value: QuerySellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchRequest() { - return { - batchDenom: "", - pagination: undefined - }; -} -export const QuerySellOrdersByBatchRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersByBatchRequest.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - value: QuerySellOrdersByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersByBatchResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersByBatchResponse.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - value: QuerySellOrdersByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerRequest() { - return { - seller: "", - pagination: undefined - }; -} -export const QuerySellOrdersBySellerRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersBySellerRequest(); - message.seller = object.seller ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersBySellerRequest(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersBySellerRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersBySellerRequest.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersBySellerRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - value: QuerySellOrdersBySellerRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -export const QuerySellOrdersBySellerResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.sellOrders) { - SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sellOrders?.map(e => SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sell_orders?.map(e => SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QuerySellOrdersBySellerResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySellOrdersBySellerResponse.decode(message.value); - }, - toProto(message) { - return QuerySellOrdersBySellerResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - value: QuerySellOrdersBySellerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsRequest() { - return { - pagination: undefined - }; -} -export const QueryAllowedDenomsRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedDenomsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedDenomsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedDenomsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedDenomsRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowedDenomsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - value: QueryAllowedDenomsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsResponse() { - return { - allowedDenoms: [], - pagination: undefined - }; -} -export const QueryAllowedDenomsResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowedDenoms) { - AllowedDenom.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); - } - else { - obj.allowed_denoms = message.allowedDenoms; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedDenomsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedDenomsResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowedDenomsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - value: QueryAllowedDenomsResponse.encode(message).finish() - }; - } -}; -function createBaseSellOrderInfo() { - return { - id: BigInt(0), - seller: "", - batchDenom: "", - quantity: "", - askDenom: "", - askAmount: "", - disableAutoRetire: false, - expiration: undefined - }; -} -export const SellOrderInfo = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller !== "") { - writer.uint32(18).string(message.seller); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.askDenom !== "") { - writer.uint32(42).string(message.askDenom); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrderInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.askDenom = reader.string(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSellOrderInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askDenom = object.askDenom ?? ""; - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSellOrderInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_denom !== undefined && object.ask_denom !== null) { - message.askDenom = object.ask_denom; - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SellOrderInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SellOrderInfo.decode(message.value); - }, - toProto(message) { - return SellOrderInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - value: SellOrderInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js deleted file mode 100644 index a44a329b..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.lcd.js +++ /dev/null @@ -1,69 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - /* SellOrder queries a sell order by its unique identifier. */ - async sellOrder(params) { - const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; - return await this.req.get(endpoint); - } - /* SellOrders queries a paginated list of all sell orders. */ - async sellOrders(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; - return await this.req.get(endpoint, options); - } - /* SellOrdersByBatch queries a paginated list of all sell orders based on - the batch denom of the credits being sold. */ - async sellOrdersByBatch(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* SellOrdersBySeller queries a paginated list of all sell orders based on the - account address of the seller. */ - async sellOrdersBySeller(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; - return await this.req.get(endpoint, options); - } - /* AllowedDenoms queries a paginated list of all bank denoms allowed to be - used in the marketplace. */ - async allowedDenoms(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; - return await this.req.get(endpoint, options); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js deleted file mode 100644 index 680f45ca..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/query.rpc.Query.js +++ /dev/null @@ -1,64 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - sellOrder(request) { - const data = QuerySellOrderRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); - return promise.then(data => QuerySellOrderResponse.decode(new BinaryReader(data))); - } - sellOrders(request = { - pagination: undefined - }) { - const data = QuerySellOrdersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); - return promise.then(data => QuerySellOrdersResponse.decode(new BinaryReader(data))); - } - sellOrdersByBatch(request) { - const data = QuerySellOrdersByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); - return promise.then(data => QuerySellOrdersByBatchResponse.decode(new BinaryReader(data))); - } - sellOrdersBySeller(request) { - const data = QuerySellOrdersBySellerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); - return promise.then(data => QuerySellOrdersBySellerResponse.decode(new BinaryReader(data))); - } - allowedDenoms(request = { - pagination: undefined - }) { - const data = QueryAllowedDenomsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); - return promise.then(data => QueryAllowedDenomsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - sellOrder(request) { - return queryService.sellOrder(request); - }, - sellOrders(request) { - return queryService.sellOrders(request); - }, - sellOrdersByBatch(request) { - return queryService.sellOrdersByBatch(request); - }, - sellOrdersBySeller(request) { - return queryService.sellOrdersBySeller(request); - }, - allowedDenoms(request) { - return queryService.allowedDenoms(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js deleted file mode 100644 index 49ec581f..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/state.js +++ /dev/null @@ -1,349 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers"; -function createBaseSellOrder() { - return { - id: BigInt(0), - seller: new Uint8Array(), - batchKey: BigInt(0), - quantity: "", - marketId: BigInt(0), - askAmount: "", - disableAutoRetire: false, - expiration: undefined, - maker: false - }; -} -export const SellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller.length !== 0) { - writer.uint32(18).bytes(message.seller); - } - if (message.batchKey !== BigInt(0)) { - writer.uint32(24).uint64(message.batchKey); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.marketId !== BigInt(0)) { - writer.uint32(40).uint64(message.marketId); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(74).fork()).ldelim(); - } - if (message.maker === true) { - writer.uint32(80).bool(message.maker); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.bytes(); - break; - case 3: - message.batchKey = reader.uint64(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.marketId = reader.uint64(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.maker = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSellOrder(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? new Uint8Array(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - message.maker = object.maker ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSellOrder(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = bytesFromBase64(object.seller); - } - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - if (object.maker !== undefined && object.maker !== null) { - message.maker = object.maker; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller ? base64FromBytes(message.seller) : undefined; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - obj.maker = message.maker === false ? undefined : message.maker; - return obj; - }, - fromAminoMsg(object) { - return SellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SellOrder.decode(message.value); - }, - toProto(message) { - return SellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - value: SellOrder.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom() { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const AllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AllowedDenom.decode(message.value); - }, - toProto(message) { - return AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - value: AllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMarket() { - return { - id: BigInt(0), - creditTypeAbbrev: "", - bankDenom: "", - precisionModifier: 0 - }; -} -export const Market = { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(18).string(message.creditTypeAbbrev); - } - if (message.bankDenom !== "") { - writer.uint32(26).string(message.bankDenom); - } - if (message.precisionModifier !== 0) { - writer.uint32(32).uint32(message.precisionModifier); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMarket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.creditTypeAbbrev = reader.string(); - break; - case 3: - message.bankDenom = reader.string(); - break; - case 4: - message.precisionModifier = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMarket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.precisionModifier = object.precisionModifier ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMarket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.precision_modifier !== undefined && object.precision_modifier !== null) { - message.precisionModifier = object.precision_modifier; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; - return obj; - }, - fromAminoMsg(object) { - return Market.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Market.decode(message.value); - }, - toProto(message) { - return Market.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - value: Market.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js deleted file mode 100644 index b996d951..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.amino.js +++ /dev/null @@ -1,34 +0,0 @@ -//@ts-nocheck -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: "regen.marketplace/MsgSell", - toAmino: MsgSell.toAmino, - fromAmino: MsgSell.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: "regen.marketplace/MsgUpdateSellOrders", - toAmino: MsgUpdateSellOrders.toAmino, - fromAmino: MsgUpdateSellOrders.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: "regen.marketplace/MsgCancelSellOrder", - toAmino: MsgCancelSellOrder.toAmino, - fromAmino: MsgCancelSellOrder.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: "regen.marketplace/MsgBuyDirect", - toAmino: MsgBuyDirect.toAmino, - fromAmino: MsgBuyDirect.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: "regen.marketplace/MsgAddAllowedDenom", - toAmino: MsgAddAllowedDenom.toAmino, - fromAmino: MsgAddAllowedDenom.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: "regen.marketplace/MsgRemoveAllowedDenom", - toAmino: MsgRemoveAllowedDenom.toAmino, - fromAmino: MsgRemoveAllowedDenom.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js deleted file mode 100644 index bc08c1de..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.js +++ /dev/null @@ -1,1195 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../../../cosmos/base/v1beta1/coin"; -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../../helpers"; -function createBaseMsgSell() { - return { - seller: "", - orders: [] - }; -} -export const MsgSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - encode(message, writer = BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.orders) { - MsgSell_Order.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.orders.push(MsgSell_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSell(); - message.seller = object.seller ?? ""; - message.orders = object.orders?.map(e => MsgSell_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSell(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.orders = object.orders?.map(e => MsgSell_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgSell_Order.toAmino(e) : undefined); - } - else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object) { - return MsgSell.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgSell", - value: MsgSell.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSell.decode(message.value); - }, - toProto(message) { - return MsgSell.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.encode(message).finish() - }; - } -}; -function createBaseMsgSell_Order() { - return { - batchDenom: "", - quantity: "", - askPrice: undefined, - disableAutoRetire: false, - expiration: undefined - }; -} -export const MsgSell_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(18).string(message.quantity); - } - if (message.askPrice !== undefined) { - Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.quantity = reader.string(); - break; - case 3: - message.askPrice = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSell_Order(); - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? Coin.fromPartial(object.askPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSell_Order(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = Coin.fromAmino(object.ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = fromTimestamp(Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_price = message.askPrice ? Coin.toAmino(message.askPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgSell_Order.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSell_Order.decode(message.value); - }, - toProto(message) { - return MsgSell_Order.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: MsgSell_Order.encode(message).finish() - }; - } -}; -function createBaseMsgSellResponse() { - return { - sellOrderIds: [] - }; -} -export const MsgSellResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - encode(message, writer = BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.sellOrderIds) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSellResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.sellOrderIds.push(reader.uint64()); - } - } - else { - message.sellOrderIds.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrderIds) { - obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); - } - else { - obj.sell_order_ids = message.sellOrderIds; - } - return obj; - }, - fromAminoMsg(object) { - return MsgSellResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSellResponse.decode(message.value); - }, - toProto(message) { - return MsgSellResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - value: MsgSellResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders() { - return { - seller: "", - updates: [] - }; -} -export const MsgUpdateSellOrders = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - encode(message, writer = BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.updates) { - MsgUpdateSellOrders_Update.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.updates.push(MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateSellOrders(); - message.seller = object.seller ?? ""; - message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateSellOrders(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.updates = object.updates?.map(e => MsgUpdateSellOrders_Update.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.updates) { - obj.updates = message.updates.map(e => e ? MsgUpdateSellOrders_Update.toAmino(e) : undefined); - } - else { - obj.updates = message.updates; - } - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateSellOrders.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgUpdateSellOrders", - value: MsgUpdateSellOrders.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateSellOrders.decode(message.value); - }, - toProto(message) { - return MsgUpdateSellOrders.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders_Update() { - return { - sellOrderId: BigInt(0), - newQuantity: "", - newAskPrice: undefined, - disableAutoRetire: false, - newExpiration: undefined - }; -} -export const MsgUpdateSellOrders_Update = { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - if (message.newQuantity !== "") { - writer.uint32(18).string(message.newQuantity); - } - if (message.newAskPrice !== undefined) { - Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.newExpiration !== undefined) { - Timestamp.encode(toTimestamp(message.newExpiration), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders_Update(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - case 2: - message.newQuantity = reader.string(); - break; - case 3: - message.newAskPrice = Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.newExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateSellOrders_Update(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.newQuantity = object.newQuantity ?? ""; - message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? Coin.fromPartial(object.newAskPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.newExpiration = object.newExpiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateSellOrders_Update(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.new_quantity !== undefined && object.new_quantity !== null) { - message.newQuantity = object.new_quantity; - } - if (object.new_ask_price !== undefined && object.new_ask_price !== null) { - message.newAskPrice = Coin.fromAmino(object.new_ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.new_expiration !== undefined && object.new_expiration !== null) { - message.newExpiration = fromTimestamp(Timestamp.fromAmino(object.new_expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; - obj.new_ask_price = message.newAskPrice ? Coin.toAmino(message.newAskPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.new_expiration = message.newExpiration ? Timestamp.toAmino(toTimestamp(message.newExpiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateSellOrders_Update.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateSellOrders_Update.decode(message.value); - }, - toProto(message) { - return MsgUpdateSellOrders_Update.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - value: MsgUpdateSellOrders_Update.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrdersResponse() { - return {}; -} -export const MsgUpdateSellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateSellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateSellOrdersResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateSellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - value: MsgUpdateSellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrder() { - return { - seller: "", - sellOrderId: BigInt(0) - }; -} -export const MsgCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - encode(message, writer = BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelSellOrder(); - message.seller = object.seller ?? ""; - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelSellOrder(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelSellOrder.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgCancelSellOrder", - value: MsgCancelSellOrder.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancelSellOrder.decode(message.value); - }, - toProto(message) { - return MsgCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrderResponse() { - return {}; -} -export const MsgCancelSellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelSellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCancelSellOrderResponse.decode(message.value); - }, - toProto(message) { - return MsgCancelSellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - value: MsgCancelSellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect() { - return { - buyer: "", - orders: [] - }; -} -export const MsgBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - encode(message, writer = BinaryWriter.create()) { - if (message.buyer !== "") { - writer.uint32(10).string(message.buyer); - } - for (const v of message.orders) { - MsgBuyDirect_Order.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyer = reader.string(); - break; - case 2: - message.orders.push(MsgBuyDirect_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBuyDirect(); - message.buyer = object.buyer ?? ""; - message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBuyDirect(); - if (object.buyer !== undefined && object.buyer !== null) { - message.buyer = object.buyer; - } - message.orders = object.orders?.map(e => MsgBuyDirect_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.buyer = message.buyer === "" ? undefined : message.buyer; - if (message.orders) { - obj.orders = message.orders.map(e => e ? MsgBuyDirect_Order.toAmino(e) : undefined); - } - else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object) { - return MsgBuyDirect.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgBuyDirect", - value: MsgBuyDirect.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgBuyDirect.decode(message.value); - }, - toProto(message) { - return MsgBuyDirect.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect_Order() { - return { - sellOrderId: BigInt(0), - quantity: "", - bidPrice: undefined, - disableAutoRetire: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgBuyDirect_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message, writer = BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - if (message.quantity !== "") { - writer.uint32(26).string(message.quantity); - } - if (message.bidPrice !== undefined) { - Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.sellOrderId = reader.uint64(); - break; - case 3: - message.quantity = reader.string(); - break; - case 4: - message.bidPrice = Coin.decode(reader, reader.uint32()); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBuyDirect_Order(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? Coin.fromPartial(object.bidPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBuyDirect_Order(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.bid_price !== undefined && object.bid_price !== null) { - message.bidPrice = Coin.fromAmino(object.bid_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.bid_price = message.bidPrice ? Coin.toAmino(message.bidPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return MsgBuyDirect_Order.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBuyDirect_Order.decode(message.value); - }, - toProto(message) { - return MsgBuyDirect_Order.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: MsgBuyDirect_Order.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirectResponse() { - return {}; -} -export const MsgBuyDirectResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgBuyDirectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBuyDirectResponse.decode(message.value); - }, - toProto(message) { - return MsgBuyDirectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - value: MsgBuyDirectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenom() { - return { - authority: "", - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const MsgAddAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.bankDenom !== "") { - writer.uint32(18).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(26).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.bankDenom = reader.string(); - break; - case 3: - message.displayDenom = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddAllowedDenom(); - message.authority = object.authority ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return MsgAddAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgAddAllowedDenom", - value: MsgAddAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAddAllowedDenom.decode(message.value); - }, - toProto(message) { - return MsgAddAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenomResponse() { - return {}; -} -export const MsgAddAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgAddAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAddAllowedDenomResponse.decode(message.value); - }, - toProto(message) { - return MsgAddAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - value: MsgAddAllowedDenomResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenom() { - return { - authority: "", - denom: "" - }; -} -export const MsgRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveAllowedDenom(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRemoveAllowedDenom.decode(message.value); - }, - toProto(message) { - return MsgRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenomResponse() { - return {}; -} -export const MsgRemoveAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRemoveAllowedDenomResponse.decode(message.value); - }, - toProto(message) { - return MsgRemoveAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - value: MsgRemoveAllowedDenomResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js deleted file mode 100644 index 4798e20f..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.registry.js +++ /dev/null @@ -1,123 +0,0 @@ -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export const registry = [["/regen.ecocredit.marketplace.v1.MsgSell", MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", MsgRemoveAllowedDenom]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.encode(value).finish() - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.encode(value).finish() - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.encode(value).finish() - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.encode(value).finish() - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.encode(value).finish() - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.encode(value).finish() - }; - } - }, - withTypeUrl: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value - }; - } - }, - fromPartial: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: MsgSell.fromPartial(value) - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: MsgUpdateSellOrders.fromPartial(value) - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: MsgCancelSellOrder.fromPartial(value) - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: MsgBuyDirect.fromPartial(value) - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: MsgAddAllowedDenom.fromPartial(value) - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: MsgRemoveAllowedDenom.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js deleted file mode 100644 index ff0ca370..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/tx.rpc.msg.js +++ /dev/null @@ -1,44 +0,0 @@ -import { BinaryReader } from "../../../../binary"; -import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.sell = this.sell.bind(this); - this.updateSellOrders = this.updateSellOrders.bind(this); - this.cancelSellOrder = this.cancelSellOrder.bind(this); - this.buyDirect = this.buyDirect.bind(this); - this.addAllowedDenom = this.addAllowedDenom.bind(this); - this.removeAllowedDenom = this.removeAllowedDenom.bind(this); - } - sell(request) { - const data = MsgSell.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); - return promise.then(data => MsgSellResponse.decode(new BinaryReader(data))); - } - updateSellOrders(request) { - const data = MsgUpdateSellOrders.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); - return promise.then(data => MsgUpdateSellOrdersResponse.decode(new BinaryReader(data))); - } - cancelSellOrder(request) { - const data = MsgCancelSellOrder.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); - return promise.then(data => MsgCancelSellOrderResponse.decode(new BinaryReader(data))); - } - buyDirect(request) { - const data = MsgBuyDirect.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); - return promise.then(data => MsgBuyDirectResponse.decode(new BinaryReader(data))); - } - addAllowedDenom(request) { - const data = MsgAddAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); - return promise.then(data => MsgAddAllowedDenomResponse.decode(new BinaryReader(data))); - } - removeAllowedDenom(request) { - const data = MsgRemoveAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); - return promise.then(data => MsgRemoveAllowedDenomResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js b/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js deleted file mode 100644 index d11a2083..00000000 --- a/packages/api/dist/esm/regen/ecocredit/marketplace/v1/types.js +++ /dev/null @@ -1,90 +0,0 @@ -//@ts-nocheck -import { AllowedDenom } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -function createBaseAllowDenomProposal() { - return { - title: "", - description: "", - denom: undefined - }; -} -export const AllowDenomProposal = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.denom !== undefined) { - AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowDenomProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.denom = AllowedDenom.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowDenomProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.denom = object.denom !== undefined && object.denom !== null ? AllowedDenom.fromPartial(object.denom) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAllowDenomProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = AllowedDenom.fromAmino(object.denom); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.denom = message.denom ? AllowedDenom.toAmino(message.denom) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AllowDenomProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AllowDenomProposal.decode(message.value); - }, - toProto(message) { - return AllowDenomProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - value: AllowDenomProposal.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js b/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js deleted file mode 100644 index 439ed4d1..00000000 --- a/packages/api/dist/esm/regen/ecocredit/orderbook/v1alpha1/memory.js +++ /dev/null @@ -1,400 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../../helpers"; -function createBaseBuyOrderSellOrderMatch() { - return { - marketId: BigInt(0), - buyOrderId: BigInt(0), - sellOrderId: BigInt(0), - bidPriceComplement: 0, - askPrice: 0 - }; -} -export const BuyOrderSellOrderMatch = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - encode(message, writer = BinaryWriter.create()) { - if (message.marketId !== BigInt(0)) { - writer.uint32(8).uint64(message.marketId); - } - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.buyOrderId); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(24).uint64(message.sellOrderId); - } - if (message.bidPriceComplement !== 0) { - writer.uint32(37).fixed32(message.bidPriceComplement); - } - if (message.askPrice !== 0) { - writer.uint32(45).fixed32(message.askPrice); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderSellOrderMatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.marketId = reader.uint64(); - break; - case 2: - message.buyOrderId = reader.uint64(); - break; - case 3: - message.sellOrderId = reader.uint64(); - break; - case 4: - message.bidPriceComplement = reader.fixed32(); - break; - case 5: - message.askPrice = reader.fixed32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderSellOrderMatch(); - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.bidPriceComplement = object.bidPriceComplement ?? 0; - message.askPrice = object.askPrice ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderSellOrderMatch(); - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { - message.bidPriceComplement = object.bid_price_complement; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = object.ask_price; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; - obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; - return obj; - }, - fromAminoMsg(object) { - return BuyOrderSellOrderMatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BuyOrderSellOrderMatch.decode(message.value); - }, - toProto(message) { - return BuyOrderSellOrderMatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - value: BuyOrderSellOrderMatch.encode(message).finish() - }; - } -}; -function createBaseBuyOrderClassSelector() { - return { - buyOrderId: BigInt(0), - classId: BigInt(0), - projectLocation: "", - minStartDate: undefined, - maxEndDate: undefined - }; -} -export const BuyOrderClassSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - encode(message, writer = BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.classId !== BigInt(0)) { - writer.uint32(16).uint64(message.classId); - } - if (message.projectLocation !== "") { - writer.uint32(26).string(message.projectLocation); - } - if (message.minStartDate !== undefined) { - Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(34).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderClassSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.classId = reader.uint64(); - break; - case 3: - message.projectLocation = reader.string(); - break; - case 4: - message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderClassSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); - message.projectLocation = object.projectLocation ?? ""; - message.minStartDate = object.minStartDate ?? undefined; - message.maxEndDate = object.maxEndDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderClassSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = BigInt(object.class_id); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; - obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BuyOrderClassSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BuyOrderClassSelector.decode(message.value); - }, - toProto(message) { - return BuyOrderClassSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - value: BuyOrderClassSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderProjectSelector() { - return { - buyOrderId: BigInt(0), - projectId: BigInt(0), - minStartDate: undefined, - maxEndDate: undefined - }; -} -export const BuyOrderProjectSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - encode(message, writer = BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.projectId !== BigInt(0)) { - writer.uint32(16).uint64(message.projectId); - } - if (message.minStartDate !== undefined) { - Timestamp.encode(toTimestamp(message.minStartDate), writer.uint32(26).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - Timestamp.encode(toTimestamp(message.maxEndDate), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderProjectSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.projectId = reader.uint64(); - break; - case 3: - message.minStartDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.maxEndDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderProjectSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); - message.minStartDate = object.minStartDate ?? undefined; - message.maxEndDate = object.maxEndDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderProjectSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = BigInt(object.project_id); - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = fromTimestamp(Timestamp.fromAmino(object.min_start_date)); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = fromTimestamp(Timestamp.fromAmino(object.max_end_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; - obj.min_start_date = message.minStartDate ? Timestamp.toAmino(toTimestamp(message.minStartDate)) : undefined; - obj.max_end_date = message.maxEndDate ? Timestamp.toAmino(toTimestamp(message.maxEndDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BuyOrderProjectSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BuyOrderProjectSelector.decode(message.value); - }, - toProto(message) { - return BuyOrderProjectSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - value: BuyOrderProjectSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderBatchSelector() { - return { - buyOrderId: BigInt(0), - batchId: BigInt(0) - }; -} -export const BuyOrderBatchSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - encode(message, writer = BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.batchId !== BigInt(0)) { - writer.uint32(16).uint64(message.batchId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderBatchSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.batchId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderBatchSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderBatchSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.batch_id !== undefined && object.batch_id !== null) { - message.batchId = BigInt(object.batch_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BuyOrderBatchSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BuyOrderBatchSelector.decode(message.value); - }, - toProto(message) { - return BuyOrderBatchSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - value: BuyOrderBatchSelector.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/events.js b/packages/api/dist/esm/regen/ecocredit/v1/events.js deleted file mode 100644 index c4b46873..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/events.js +++ /dev/null @@ -1,1413 +0,0 @@ -//@ts-nocheck -import { OriginTx } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseEventCreateClass() { - return { - classId: "" - }; -} -export const EventCreateClass = { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreateClass.decode(message.value); - }, - toProto(message) { - return EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - value: EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateProject() { - return { - projectId: "" - }; -} -export const EventCreateProject = { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateProject(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateProject(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return EventCreateProject.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreateProject.decode(message.value); - }, - toProto(message) { - return EventCreateProject.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - value: EventCreateProject.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch() { - return { - batchDenom: "", - originTx: undefined - }; -} -export const EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateBatch(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreateBatch.decode(message.value); - }, - toProto(message) { - return EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - value: EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventMint() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -export const EventMint = { - typeUrl: "/regen.ecocredit.v1.EventMint", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMint(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventMint(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventMint(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return EventMint.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventMint.decode(message.value); - }, - toProto(message) { - return EventMint.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventMint", - value: EventMint.encode(message).finish() - }; - } -}; -function createBaseEventMintBatchCredits() { - return { - batchDenom: "", - originTx: undefined - }; -} -export const EventMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventMintBatchCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventMintBatchCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventMintBatchCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventMintBatchCredits.decode(message.value); - }, - toProto(message) { - return EventMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - value: EventMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseEventTransfer() { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -export const EventTransfer = { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - encode(message, writer = BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventTransfer(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventTransfer(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return EventTransfer.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventTransfer.decode(message.value); - }, - toProto(message) { - return EventTransfer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - value: EventTransfer.encode(message).finish() - }; - } -}; -function createBaseEventRetire() { - return { - owner: "", - batchDenom: "", - amount: "", - jurisdiction: "", - reason: "" - }; -} -export const EventRetire = { - typeUrl: "/regen.ecocredit.v1.EventRetire", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(42).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRetire(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventRetire.decode(message.value); - }, - toProto(message) { - return EventRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventRetire", - value: EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel() { - return { - owner: "", - batchDenom: "", - amount: "", - reason: "" - }; -} -export const EventCancel = { - typeUrl: "/regen.ecocredit.v1.EventCancel", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancel(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCancel.decode(message.value); - }, - toProto(message) { - return EventCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCancel", - value: EventCancel.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassAdmin() { - return { - classId: "" - }; -} -export const EventUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassAdmin(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassAdmin(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return EventUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - value: EventUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassIssuers() { - return { - classId: "" - }; -} -export const EventUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassIssuers(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassIssuers(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return EventUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - value: EventUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassMetadata() { - return { - classId: "" - }; -} -export const EventUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassMetadata(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassMetadata(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return EventUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - value: EventUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectAdmin() { - return { - projectId: "" - }; -} -export const EventUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateProjectAdmin(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateProjectAdmin(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateProjectAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateProjectAdmin.decode(message.value); - }, - toProto(message) { - return EventUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - value: EventUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectMetadata() { - return { - projectId: "" - }; -} -export const EventUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateProjectMetadata(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateProjectMetadata(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateProjectMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateProjectMetadata.decode(message.value); - }, - toProto(message) { - return EventUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - value: EventUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateBatchMetadata() { - return { - batchDenom: "" - }; -} -export const EventUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateBatchMetadata(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateBatchMetadata(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return EventUpdateBatchMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventUpdateBatchMetadata.decode(message.value); - }, - toProto(message) { - return EventUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - value: EventUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseEventSealBatch() { - return { - batchDenom: "" - }; -} -export const EventSealBatch = { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSealBatch(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventSealBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return EventSealBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventSealBatch.decode(message.value); - }, - toProto(message) { - return EventSealBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - value: EventSealBatch.encode(message).finish() - }; - } -}; -function createBaseEventAddCreditType() { - return { - abbreviation: "" - }; -} -export const EventAddCreditType = { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - encode(message, writer = BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAddCreditType(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAddCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object) { - return EventAddCreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventAddCreditType.decode(message.value); - }, - toProto(message) { - return EventAddCreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - value: EventAddCreditType.encode(message).finish() - }; - } -}; -function createBaseEventBridge() { - return { - target: "", - recipient: "", - contract: "", - amount: "", - owner: "", - batchDenom: "" - }; -} -export const EventBridge = { - typeUrl: "/regen.ecocredit.v1.EventBridge", - encode(message, writer = BinaryWriter.create()) { - if (message.target !== "") { - writer.uint32(10).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.owner !== "") { - writer.uint32(42).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(50).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.target = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.owner = reader.string(); - break; - case 6: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBridge(); - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.contract = object.contract ?? ""; - message.amount = object.amount ?? ""; - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventBridge(); - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return EventBridge.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventBridge.decode(message.value); - }, - toProto(message) { - return EventBridge.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventBridge", - value: EventBridge.encode(message).finish() - }; - } -}; -function createBaseEventBridgeReceive() { - return { - projectId: "", - batchDenom: "", - amount: "", - originTx: undefined - }; -} -export const EventBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBridgeReceive(); - message.projectId = object.projectId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventBridgeReceive(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return EventBridgeReceive.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventBridgeReceive.decode(message.value); - }, - toProto(message) { - return EventBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - value: EventBridgeReceive.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.js b/packages/api/dist/esm/regen/ecocredit/v1/query.js deleted file mode 100644 index dd11d7b0..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/query.js +++ /dev/null @@ -1,4086 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; -import { CreditType } from "./state"; -import { Params } from "./types"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseQueryClassesRequest() { - return { - pagination: undefined - }; -} -export const QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesRequest.decode(message.value); - }, - toProto(message) { - return QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - value: QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse() { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.classes) { - ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesResponse.decode(message.value); - }, - toProto(message) { - return QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - value: QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -export const QueryClassesByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesByAdminRequest.decode(message.value); - }, - toProto(message) { - return QueryClassesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - value: QueryClassesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminResponse() { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.classes) { - ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesByAdminResponse.decode(message.value); - }, - toProto(message) { - return QueryClassesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - value: QueryClassesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassRequest() { - return { - classId: "" - }; -} -export const QueryClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return QueryClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassRequest.decode(message.value); - }, - toProto(message) { - return QueryClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - value: QueryClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassResponse() { - return { - class: undefined - }; -} -export const QueryClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.class !== undefined) { - ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.class = ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassResponse(); - message.class = object.class !== undefined && object.class !== null ? ClassInfo.fromPartial(object.class) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassResponse(); - if (object.class !== undefined && object.class !== null) { - message.class = ClassInfo.fromAmino(object.class); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class = message.class ? ClassInfo.toAmino(message.class) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassResponse.decode(message.value); - }, - toProto(message) { - return QueryClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - value: QueryClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersRequest() { - return { - classId: "", - pagination: undefined - }; -} -export const QueryClassIssuersRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassIssuersRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassIssuersRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassIssuersRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassIssuersRequest.decode(message.value); - }, - toProto(message) { - return QueryClassIssuersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - value: QueryClassIssuersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersResponse() { - return { - issuers: [], - pagination: undefined - }; -} -export const QueryClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.issuers) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuers.push(reader.string()); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return QueryClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - value: QueryClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsRequest() { - return { - pagination: undefined - }; -} -export const QueryProjectsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsRequest.decode(message.value); - }, - toProto(message) { - return QueryProjectsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - value: QueryProjectsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsResponse() { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.projects) { - ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsResponse.decode(message.value); - }, - toProto(message) { - return QueryProjectsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - value: QueryProjectsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassRequest() { - return { - classId: "", - pagination: undefined - }; -} -export const QueryProjectsByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByClassRequest.decode(message.value); - }, - toProto(message) { - return QueryProjectsByClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - value: QueryProjectsByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassResponse() { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.projects) { - ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByClassResponse.decode(message.value); - }, - toProto(message) { - return QueryProjectsByClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - value: QueryProjectsByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdRequest() { - return { - referenceId: "", - pagination: undefined - }; -} -export const QueryProjectsByReferenceIdRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByReferenceIdRequest(); - message.referenceId = object.referenceId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByReferenceIdRequest(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByReferenceIdRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByReferenceIdRequest.decode(message.value); - }, - toProto(message) { - return QueryProjectsByReferenceIdRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - value: QueryProjectsByReferenceIdRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdResponse() { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByReferenceIdResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.projects) { - ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByReferenceIdResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByReferenceIdResponse.decode(message.value); - }, - toProto(message) { - return QueryProjectsByReferenceIdResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - value: QueryProjectsByReferenceIdResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -export const QueryProjectsByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByAdminRequest.decode(message.value); - }, - toProto(message) { - return QueryProjectsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - value: QueryProjectsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminResponse() { - return { - projects: [], - pagination: undefined - }; -} -export const QueryProjectsByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.projects) { - ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectsByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectsByAdminResponse.decode(message.value); - }, - toProto(message) { - return QueryProjectsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - value: QueryProjectsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectRequest() { - return { - projectId: "" - }; -} -export const QueryProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectRequest(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectRequest.decode(message.value); - }, - toProto(message) { - return QueryProjectRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - value: QueryProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectResponse() { - return { - project: undefined - }; -} -export const QueryProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.project !== undefined) { - ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = ProjectInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectResponse(); - message.project = object.project !== undefined && object.project !== null ? ProjectInfo.fromPartial(object.project) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectResponse(); - if (object.project !== undefined && object.project !== null) { - message.project = ProjectInfo.fromAmino(object.project); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project = message.project ? ProjectInfo.toAmino(message.project) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryProjectResponse.decode(message.value); - }, - toProto(message) { - return QueryProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - value: QueryProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest() { - return { - pagination: undefined - }; -} -export const QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - value: QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse() { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.batches) { - BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - value: QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerRequest() { - return { - issuer: "", - pagination: undefined - }; -} -export const QueryBatchesByIssuerRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByIssuerRequest(); - message.issuer = object.issuer ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByIssuerRequest(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByIssuerRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByIssuerRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchesByIssuerRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - value: QueryBatchesByIssuerRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerResponse() { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByIssuerResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.batches) { - BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByIssuerResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByIssuerResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchesByIssuerResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - value: QueryBatchesByIssuerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassRequest() { - return { - classId: "", - pagination: undefined - }; -} -export const QueryBatchesByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByClassRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchesByClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - value: QueryBatchesByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectRequest() { - return { - projectId: "", - pagination: undefined - }; -} -export const QueryBatchesByProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByProjectRequest(); - message.projectId = object.projectId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByProjectRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchesByProjectRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - value: QueryBatchesByProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectResponse() { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.batches) { - BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByProjectResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchesByProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - value: QueryBatchesByProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassResponse() { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.batches) { - BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesByClassResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchesByClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - value: QueryBatchesByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchRequest() { - return { - batchDenom: "" - }; -} -export const QueryBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - value: QueryBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchResponse() { - return { - batch: undefined - }; -} -export const QueryBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.batch !== undefined) { - BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batch = BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchResponse(); - message.batch = object.batch !== undefined && object.batch !== null ? BatchInfo.fromPartial(object.batch) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchResponse(); - if (object.batch !== undefined && object.batch !== null) { - message.batch = BatchInfo.fromAmino(object.batch); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch = message.batch ? BatchInfo.toAmino(message.batch) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - value: QueryBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest() { - return { - address: "", - batchDenom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - balance: undefined - }; -} -export const QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.balance !== undefined) { - BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = BatchBalanceInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? BatchBalanceInfo.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = BatchBalanceInfo.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance ? BatchBalanceInfo.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -export const QueryBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalancesRequest.decode(message.value); - }, - toProto(message) { - return QueryBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - value: QueryBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -export const QueryBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalancesResponse.decode(message.value); - }, - toProto(message) { - return QueryBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - value: QueryBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchRequest() { - return { - batchDenom: "", - pagination: undefined - }; -} -export const QueryBalancesByBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalancesByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalancesByBatchRequest.decode(message.value); - }, - toProto(message) { - return QueryBalancesByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - value: QueryBalancesByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchResponse() { - return { - balances: [], - pagination: undefined - }; -} -export const QueryBalancesByBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBalancesByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalancesByBatchResponse.decode(message.value); - }, - toProto(message) { - return QueryBalancesByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - value: QueryBalancesByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest() { - return { - pagination: undefined - }; -} -export const QueryAllBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllBalancesRequest.decode(message.value); - }, - toProto(message) { - return QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - value: QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -export const QueryAllBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.balances) { - BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllBalancesResponse.decode(message.value); - }, - toProto(message) { - return QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - value: QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest() { - return { - batchDenom: "" - }; -} -export const QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySupplyRequest.decode(message.value); - }, - toProto(message) { - return QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - value: QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse() { - return { - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -export const QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(26).string(message.cancelledAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - case 3: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySupplyResponse.decode(message.value); - }, - toProto(message) { - return QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - value: QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest() { - return {}; -} -export const QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypesRequest.decode(message.value); - }, - toProto(message) { - return QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - value: QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse() { - return { - creditTypes: [] - }; -} -export const QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.creditTypes) { - CreditType.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypesResponse.decode(message.value); - }, - toProto(message) { - return QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - value: QueryCreditTypesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeRequest() { - return { - abbreviation: "" - }; -} -export const QueryCreditTypeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypeRequest(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypeRequest(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypeRequest.decode(message.value); - }, - toProto(message) { - return QueryCreditTypeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - value: QueryCreditTypeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeResponse() { - return { - creditType: undefined - }; -} -export const QueryCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypeResponse(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypeResponse(); - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypeResponse.decode(message.value); - }, - toProto(message) { - return QueryCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - value: QueryCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseClassInfo() { - return { - id: "", - admin: "", - metadata: "", - creditTypeAbbrev: "" - }; -} -export const ClassInfo = { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClassInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object) { - return ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassInfo.decode(message.value); - }, - toProto(message) { - return ClassInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - value: ClassInfo.encode(message).finish() - }; - } -}; -function createBaseProjectInfo() { - return { - id: "", - admin: "", - classId: "", - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -export const ProjectInfo = { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(26).string(message.classId); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(50).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.classId = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProjectInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProjectInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return ProjectInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ProjectInfo.decode(message.value); - }, - toProto(message) { - return ProjectInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - value: ProjectInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo() { - return { - issuer: "", - projectId: "", - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -export const BatchInfo = { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.denom !== "") { - writer.uint32(26).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(58).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(64).bool(message.open); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.denom = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchInfo(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.issuanceDate = object.issuanceDate ?? undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseBatchInfo(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object) { - return BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchInfo.decode(message.value); - }, - toProto(message) { - return BatchInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - value: BatchInfo.encode(message).finish() - }; - } -}; -function createBaseBatchBalanceInfo() { - return { - address: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -export const BatchBalanceInfo = { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchBalanceInfo(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchBalanceInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object) { - return BatchBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchBalanceInfo.decode(message.value); - }, - toProto(message) { - return BatchBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - value: BatchBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistRequest() { - return {}; -} -export const QueryClassCreatorAllowlistRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryClassCreatorAllowlistRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassCreatorAllowlistRequest.decode(message.value); - }, - toProto(message) { - return QueryClassCreatorAllowlistRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - value: QueryClassCreatorAllowlistRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistResponse() { - return { - enabled: false - }; -} -export const QueryClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassCreatorAllowlistResponse(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassCreatorAllowlistResponse(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return QueryClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message) { - return QueryClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - value: QueryClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsRequest() { - return { - pagination: undefined - }; -} -export const QueryAllowedClassCreatorsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedClassCreatorsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedClassCreatorsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedClassCreatorsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedClassCreatorsRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowedClassCreatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - value: QueryAllowedClassCreatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsResponse() { - return { - classCreators: [], - pagination: undefined - }; -} -export const QueryAllowedClassCreatorsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.classCreators) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classCreators.push(reader.string()); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.classCreators?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.class_creators?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classCreators) { - obj.class_creators = message.classCreators.map(e => e); - } - else { - obj.class_creators = message.classCreators; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedClassCreatorsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedClassCreatorsResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowedClassCreatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - value: QueryAllowedClassCreatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeRequest() { - return {}; -} -export const QueryClassFeeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryClassFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassFeeRequest.decode(message.value); - }, - toProto(message) { - return QueryClassFeeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - value: QueryClassFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeResponse() { - return { - fee: undefined - }; -} -export const QueryClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassFeeResponse.decode(message.value); - }, - toProto(message) { - return QueryClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - value: QueryClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsRequest() { - return {}; -} -export const QueryAllowedBridgeChainsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedBridgeChainsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedBridgeChainsRequest.decode(message.value); - }, - toProto(message) { - return QueryAllowedBridgeChainsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - value: QueryAllowedBridgeChainsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsResponse() { - return { - allowedBridgeChains: [] - }; -} -export const QueryAllowedBridgeChainsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.allowedBridgeChains) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } - else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object) { - return QueryAllowedBridgeChainsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryAllowedBridgeChainsResponse.decode(message.value); - }, - toProto(message) { - return QueryAllowedBridgeChainsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - value: QueryAllowedBridgeChainsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js deleted file mode 100644 index 881310c3..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/query.lcd.js +++ /dev/null @@ -1,288 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassesByAdmin queries for all credit classes with a specific admin - address. */ - async classesByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Class queries for information on a credit class. */ - async class(params) { - const endpoint = `regen/ecocredit/v1/class/${params.classId}`; - return await this.req.get(endpoint); - } - /* ClassIssuers queries for the addresses of the issuers for a credit class. */ - async classIssuers(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* Projects queries for all projects with pagination. */ - async projects(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects`; - return await this.req.get(endpoint, options); - } - /* ProjectsByClass queries for all projects within a class with pagination. */ - async projectsByClass(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByReferenceId queries for all projects by reference-id with - pagination. */ - async projectsByReferenceId(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByAdmin queries for all projects by admin with - pagination. */ - async projectsByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Project queries for information on a project. */ - async project(params) { - const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches with pagination. */ - async batches(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches`; - return await this.req.get(endpoint, options); - } - /* BatchesByIssuer queries all batches issued from a given issuer address. */ - async batchesByIssuer(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; - return await this.req.get(endpoint, options); - } - /* BatchesByClass queries all batches issued from a given class. */ - async batchesByClass(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* BatchesByProject queries for all batches from a given project with - pagination. */ - async batchesByProject(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; - return await this.req.get(endpoint, options); - } - /* Batch queries for information on a credit batch. */ - async batch(params) { - const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account address. */ - async balance(params) { - const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; - return await this.req.get(endpoint); - } - /* Balances queries all credit balances the given account holds. */ - async balances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* BalancesByBatch queries all credit balances from a given batch. - - Since Revision 2 */ - async balancesByBatch(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries all credit balances. - - Since Revision 2 */ - async allBalances(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/all-balances`; - return await this.req.get(endpoint, options); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params) { - const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params = {}) { - const endpoint = `regen/ecocredit/v1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. - - Deprecated (Since Revision 2): This rpc will be removed in the next - version. */ - async params(_params = {}) { - const endpoint = `regen/ecocredit/v1/params`; - return await this.req.get(endpoint); - } - /* CreditType queries credit type information by abbreviation. */ - async creditType(params) { - const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; - return await this.req.get(endpoint); - } - /* ClassCreatorAllowlist queries the credit class creator allowlist - enabled setting. - - Since Revision 2 */ - async classCreatorAllowlist(_params = {}) { - const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; - return await this.req.get(endpoint); - } - /* AllowedClassCreators queries allowed credit class creators list. - - Since Revision 2 */ - async allowedClassCreators(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/allowed-class-creators`; - return await this.req.get(endpoint, options); - } - /* ClassFee returns the credit class creation fee. If not set, a credit class - creation fee is not required. - - Since Revision 2 */ - async classFee(_params = {}) { - const endpoint = `regen/ecocredit/v1/class-fee`; - return await this.req.get(endpoint); - } - /* AllowedBridgeChains queries the list of chains allowed to be used in bridge - operations. - - Since Revision 2 */ - async allowedBridgeChains(_params = {}) { - const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js deleted file mode 100644 index 3fa65b70..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/query.rpc.Query.js +++ /dev/null @@ -1,259 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - classes(request = { - pagination: undefined - }) { - const data = QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); - return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); - } - classesByAdmin(request) { - const data = QueryClassesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); - return promise.then(data => QueryClassesByAdminResponse.decode(new BinaryReader(data))); - } - class(request) { - const data = QueryClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); - return promise.then(data => QueryClassResponse.decode(new BinaryReader(data))); - } - classIssuers(request) { - const data = QueryClassIssuersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); - return promise.then(data => QueryClassIssuersResponse.decode(new BinaryReader(data))); - } - projects(request = { - pagination: undefined - }) { - const data = QueryProjectsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); - return promise.then(data => QueryProjectsResponse.decode(new BinaryReader(data))); - } - projectsByClass(request) { - const data = QueryProjectsByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); - return promise.then(data => QueryProjectsByClassResponse.decode(new BinaryReader(data))); - } - projectsByReferenceId(request) { - const data = QueryProjectsByReferenceIdRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); - return promise.then(data => QueryProjectsByReferenceIdResponse.decode(new BinaryReader(data))); - } - projectsByAdmin(request) { - const data = QueryProjectsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); - return promise.then(data => QueryProjectsByAdminResponse.decode(new BinaryReader(data))); - } - project(request) { - const data = QueryProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); - return promise.then(data => QueryProjectResponse.decode(new BinaryReader(data))); - } - batches(request = { - pagination: undefined - }) { - const data = QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); - return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); - } - batchesByIssuer(request) { - const data = QueryBatchesByIssuerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); - return promise.then(data => QueryBatchesByIssuerResponse.decode(new BinaryReader(data))); - } - batchesByClass(request) { - const data = QueryBatchesByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); - return promise.then(data => QueryBatchesByClassResponse.decode(new BinaryReader(data))); - } - batchesByProject(request) { - const data = QueryBatchesByProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); - return promise.then(data => QueryBatchesByProjectResponse.decode(new BinaryReader(data))); - } - batch(request) { - const data = QueryBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); - return promise.then(data => QueryBatchResponse.decode(new BinaryReader(data))); - } - balance(request) { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - balances(request) { - const data = QueryBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); - return promise.then(data => QueryBalancesResponse.decode(new BinaryReader(data))); - } - balancesByBatch(request) { - const data = QueryBalancesByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); - return promise.then(data => QueryBalancesByBatchResponse.decode(new BinaryReader(data))); - } - allBalances(request = { - pagination: undefined - }) { - const data = QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); - return promise.then(data => QueryAllBalancesResponse.decode(new BinaryReader(data))); - } - supply(request) { - const data = QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); - return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); - } - creditTypes(request = {}) { - const data = QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); - return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } - creditType(request) { - const data = QueryCreditTypeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); - return promise.then(data => QueryCreditTypeResponse.decode(new BinaryReader(data))); - } - classCreatorAllowlist(request = {}) { - const data = QueryClassCreatorAllowlistRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); - return promise.then(data => QueryClassCreatorAllowlistResponse.decode(new BinaryReader(data))); - } - allowedClassCreators(request = { - pagination: undefined - }) { - const data = QueryAllowedClassCreatorsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); - return promise.then(data => QueryAllowedClassCreatorsResponse.decode(new BinaryReader(data))); - } - classFee(request = {}) { - const data = QueryClassFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); - return promise.then(data => QueryClassFeeResponse.decode(new BinaryReader(data))); - } - allowedBridgeChains(request = {}) { - const data = QueryAllowedBridgeChainsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); - return promise.then(data => QueryAllowedBridgeChainsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request) { - return queryService.classes(request); - }, - classesByAdmin(request) { - return queryService.classesByAdmin(request); - }, - class(request) { - return queryService.class(request); - }, - classIssuers(request) { - return queryService.classIssuers(request); - }, - projects(request) { - return queryService.projects(request); - }, - projectsByClass(request) { - return queryService.projectsByClass(request); - }, - projectsByReferenceId(request) { - return queryService.projectsByReferenceId(request); - }, - projectsByAdmin(request) { - return queryService.projectsByAdmin(request); - }, - project(request) { - return queryService.project(request); - }, - batches(request) { - return queryService.batches(request); - }, - batchesByIssuer(request) { - return queryService.batchesByIssuer(request); - }, - batchesByClass(request) { - return queryService.batchesByClass(request); - }, - batchesByProject(request) { - return queryService.batchesByProject(request); - }, - batch(request) { - return queryService.batch(request); - }, - balance(request) { - return queryService.balance(request); - }, - balances(request) { - return queryService.balances(request); - }, - balancesByBatch(request) { - return queryService.balancesByBatch(request); - }, - allBalances(request) { - return queryService.allBalances(request); - }, - supply(request) { - return queryService.supply(request); - }, - creditTypes(request) { - return queryService.creditTypes(request); - }, - params(request) { - return queryService.params(request); - }, - creditType(request) { - return queryService.creditType(request); - }, - classCreatorAllowlist(request) { - return queryService.classCreatorAllowlist(request); - }, - allowedClassCreators(request) { - return queryService.allowedClassCreators(request); - }, - classFee(request) { - return queryService.classFee(request); - }, - allowedBridgeChains(request) { - return queryService.allowedBridgeChains(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/state.js b/packages/api/dist/esm/regen/ecocredit/v1/state.js deleted file mode 100644 index 45d93b98..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/state.js +++ /dev/null @@ -1,1445 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseCreditType() { - return { - abbreviation: "", - name: "", - unit: "", - precision: 0 - }; -} -export const CreditType = { - typeUrl: "/regen.ecocredit.v1.CreditType", - encode(message, writer = BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditType(); - message.abbreviation = object.abbreviation ?? ""; - message.name = object.name ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.name = message.name === "" ? undefined : message.name; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object) { - return CreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CreditType.decode(message.value); - }, - toProto(message) { - return CreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.CreditType", - value: CreditType.encode(message).finish() - }; - } -}; -function createBaseClass() { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - metadata: "", - creditTypeAbbrev: "" - }; -} -export const Class = { - typeUrl: "/regen.ecocredit.v1.Class", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClass(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClass(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = bytesFromBase64(object.admin); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object) { - return Class.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Class.decode(message.value); - }, - toProto(message) { - return Class.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Class", - value: Class.encode(message).finish() - }; - } -}; -function createBaseClassIssuer() { - return { - classKey: BigInt(0), - issuer: new Uint8Array() - }; -} -export const ClassIssuer = { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - encode(message, writer = BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassIssuer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassIssuer(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseClassIssuer(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = bytesFromBase64(object.issuer); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ClassIssuer.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassIssuer.decode(message.value); - }, - toProto(message) { - return ClassIssuer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - value: ClassIssuer.encode(message).finish() - }; - } -}; -function createBaseProject() { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - classKey: BigInt(0), - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -export const Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(32).uint64(message.classKey); - } - if (message.jurisdiction !== "") { - writer.uint32(42).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(50).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(58).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.classKey = reader.uint64(); - break; - case 5: - message.jurisdiction = reader.string(); - break; - case 6: - message.metadata = reader.string(); - break; - case 7: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProject(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProject(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = bytesFromBase64(object.admin); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? base64FromBytes(message.admin) : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return Project.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Project.decode(message.value); - }, - toProto(message) { - return Project.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: Project.encode(message).finish() - }; - } -}; -function createBaseBatch() { - return { - key: BigInt(0), - issuer: new Uint8Array(), - projectKey: BigInt(0), - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -export const Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - if (message.projectKey !== BigInt(0)) { - writer.uint32(24).uint64(message.projectKey); - } - if (message.denom !== "") { - writer.uint32(34).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(50).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(58).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - Timestamp.encode(toTimestamp(message.issuanceDate), writer.uint32(66).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(72).bool(message.open); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - case 3: - message.projectKey = reader.uint64(); - break; - case 4: - message.denom = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.issuanceDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatch(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.issuanceDate = object.issuanceDate ?? undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseBatch(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = bytesFromBase64(object.issuer); - } - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = fromTimestamp(Timestamp.fromAmino(object.issuance_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.issuer = message.issuer ? base64FromBytes(message.issuer) : undefined; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.issuance_date = message.issuanceDate ? Timestamp.toAmino(toTimestamp(message.issuanceDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object) { - return Batch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Batch.decode(message.value); - }, - toProto(message) { - return Batch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: Batch.encode(message).finish() - }; - } -}; -function createBaseClassSequence() { - return { - creditTypeAbbrev: "", - nextSequence: BigInt(0) - }; -} -export const ClassSequence = { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - encode(message, writer = BinaryWriter.create()) { - if (message.creditTypeAbbrev !== "") { - writer.uint32(10).string(message.creditTypeAbbrev); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypeAbbrev = reader.string(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassSequence(); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseClassSequence(); - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ClassSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassSequence.decode(message.value); - }, - toProto(message) { - return ClassSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - value: ClassSequence.encode(message).finish() - }; - } -}; -function createBaseProjectSequence() { - return { - classKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -export const ProjectSequence = { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - encode(message, writer = BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProjectSequence(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseProjectSequence(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ProjectSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ProjectSequence.decode(message.value); - }, - toProto(message) { - return ProjectSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - value: ProjectSequence.encode(message).finish() - }; - } -}; -function createBaseBatchSequence() { - return { - projectKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -export const BatchSequence = { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - encode(message, writer = BinaryWriter.create()) { - if (message.projectKey !== BigInt(0)) { - writer.uint32(8).uint64(message.projectKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchSequence(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBatchSequence(); - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BatchSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchSequence.decode(message.value); - }, - toProto(message) { - return BatchSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - value: BatchSequence.encode(message).finish() - }; - } -}; -function createBaseBatchBalance() { - return { - batchKey: BigInt(0), - address: new Uint8Array(), - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -export const BatchBalance = { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - encode(message, writer = BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.address.length !== 0) { - writer.uint32(18).bytes(message.address); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.address = reader.bytes(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchBalance(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.address = object.address ?? new Uint8Array(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchBalance(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object) { - return BatchBalance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchBalance.decode(message.value); - }, - toProto(message) { - return BatchBalance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - value: BatchBalance.encode(message).finish() - }; - } -}; -function createBaseBatchSupply() { - return { - batchKey: BigInt(0), - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -export const BatchSupply = { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - encode(message, writer = BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(34).string(message.cancelledAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchSupply(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchSupply(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object) { - return BatchSupply.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchSupply.decode(message.value); - }, - toProto(message) { - return BatchSupply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - value: BatchSupply.encode(message).finish() - }; - } -}; -function createBaseOriginTxIndex() { - return { - classKey: BigInt(0), - id: "", - source: "" - }; -} -export const OriginTxIndex = { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - encode(message, writer = BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.source !== "") { - writer.uint32(26).string(message.source); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTxIndex(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.source = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOriginTxIndex(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseOriginTxIndex(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - return obj; - }, - fromAminoMsg(object) { - return OriginTxIndex.fromAmino(object.value); - }, - fromProtoMsg(message) { - return OriginTxIndex.decode(message.value); - }, - toProto(message) { - return OriginTxIndex.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - value: OriginTxIndex.encode(message).finish() - }; - } -}; -function createBaseBatchContract() { - return { - batchKey: BigInt(0), - classKey: BigInt(0), - contract: "" - }; -} -export const BatchContract = { - typeUrl: "/regen.ecocredit.v1.BatchContract", - encode(message, writer = BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(16).uint64(message.classKey); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchContract(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.classKey = reader.uint64(); - break; - case 3: - message.contract = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchContract(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.contract = object.contract ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchContract(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.contract = message.contract === "" ? undefined : message.contract; - return obj; - }, - fromAminoMsg(object) { - return BatchContract.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchContract.decode(message.value); - }, - toProto(message) { - return BatchContract.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchContract", - value: BatchContract.encode(message).finish() - }; - } -}; -function createBaseClassCreatorAllowlist() { - return { - enabled: false - }; -} -export const ClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - encode(message, writer = BinaryWriter.create()) { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassCreatorAllowlist(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseClassCreatorAllowlist(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return ClassCreatorAllowlist.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassCreatorAllowlist.decode(message.value); - }, - toProto(message) { - return ClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - value: ClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseAllowedClassCreator() { - return { - address: new Uint8Array() - }; -} -export const AllowedClassCreator = { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - encode(message, writer = BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedClassCreator(); - message.address = object.address ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAllowedClassCreator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - return obj; - }, - fromAminoMsg(object) { - return AllowedClassCreator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AllowedClassCreator.decode(message.value); - }, - toProto(message) { - return AllowedClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - value: AllowedClassCreator.encode(message).finish() - }; - } -}; -function createBaseClassFee() { - return { - fee: undefined - }; -} -export const ClassFee = { - typeUrl: "/regen.ecocredit.v1.ClassFee", - encode(message, writer = BinaryWriter.create()) { - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassFee(); - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseClassFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ClassFee.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassFee.decode(message.value); - }, - toProto(message) { - return ClassFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassFee", - value: ClassFee.encode(message).finish() - }; - } -}; -function createBaseAllowedBridgeChain() { - return { - chainName: "" - }; -} -export const AllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - encode(message, writer = BinaryWriter.create()) { - if (message.chainName !== "") { - writer.uint32(10).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedBridgeChain(); - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedBridgeChain(); - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return AllowedBridgeChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return AllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - value: AllowedBridgeChain.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js deleted file mode 100644 index 36761801..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/tx.amino.js +++ /dev/null @@ -1,119 +0,0 @@ -//@ts-nocheck -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: "regen/MsgCreateClass", - toAmino: MsgCreateClass.toAmino, - fromAmino: MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: "regen/MsgCreateProject", - toAmino: MsgCreateProject.toAmino, - fromAmino: MsgCreateProject.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: "regen/MsgCreateBatch", - toAmino: MsgCreateBatch.toAmino, - fromAmino: MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: "regen/MsgMintBatchCredits", - toAmino: MsgMintBatchCredits.toAmino, - fromAmino: MsgMintBatchCredits.fromAmino - }, - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: "regen/MsgSealBatch", - toAmino: MsgSealBatch.toAmino, - fromAmino: MsgSealBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgSend": { - aminoType: "regen/MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/regen.ecocredit.v1.MsgRetire": { - aminoType: "regen/MsgRetire", - toAmino: MsgRetire.toAmino, - fromAmino: MsgRetire.fromAmino - }, - "/regen.ecocredit.v1.MsgCancel": { - aminoType: "regen/MsgCancel", - toAmino: MsgCancel.toAmino, - fromAmino: MsgCancel.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: "regen/MsgUpdateClassAdmin", - toAmino: MsgUpdateClassAdmin.toAmino, - fromAmino: MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: "regen/MsgUpdateClassIssuers", - toAmino: MsgUpdateClassIssuers.toAmino, - fromAmino: MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: "regen/MsgUpdateClassMetadata", - toAmino: MsgUpdateClassMetadata.toAmino, - fromAmino: MsgUpdateClassMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: "regen/MsgUpdateProjectAdmin", - toAmino: MsgUpdateProjectAdmin.toAmino, - fromAmino: MsgUpdateProjectAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: "regen/MsgUpdateProjectMetadata", - toAmino: MsgUpdateProjectMetadata.toAmino, - fromAmino: MsgUpdateProjectMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: "regen/MsgUpdateBatchMetadata", - toAmino: MsgUpdateBatchMetadata.toAmino, - fromAmino: MsgUpdateBatchMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgBridge": { - aminoType: "regen/MsgBridge", - toAmino: MsgBridge.toAmino, - fromAmino: MsgBridge.fromAmino - }, - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: "regen/MsgBridgeReceive", - toAmino: MsgBridgeReceive.toAmino, - fromAmino: MsgBridgeReceive.fromAmino - }, - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: "regen/MsgAddCreditType", - toAmino: MsgAddCreditType.toAmino, - fromAmino: MsgAddCreditType.fromAmino - }, - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: "regen/MsgSetClassCreatorAllowlist", - toAmino: MsgSetClassCreatorAllowlist.toAmino, - fromAmino: MsgSetClassCreatorAllowlist.fromAmino - }, - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: "regen/MsgAddClassCreator", - toAmino: MsgAddClassCreator.toAmino, - fromAmino: MsgAddClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: "regen/MsgRemoveClassCreator", - toAmino: MsgRemoveClassCreator.toAmino, - fromAmino: MsgRemoveClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: "regen/MsgUpdateClassFee", - toAmino: MsgUpdateClassFee.toAmino, - fromAmino: MsgUpdateClassFee.fromAmino - }, - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: "regen/MsgAddAllowedBridgeChain", - toAmino: MsgAddAllowedBridgeChain.toAmino, - fromAmino: MsgAddAllowedBridgeChain.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: "regen/MsgRemoveAllowedBridgeChain", - toAmino: MsgRemoveAllowedBridgeChain.toAmino, - fromAmino: MsgRemoveAllowedBridgeChain.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.js deleted file mode 100644 index 42eaf6f6..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/tx.js +++ /dev/null @@ -1,3780 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../../cosmos/base/v1beta1/coin"; -import { BatchIssuance, OriginTx, Credits } from "./types"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { CreditType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseMsgAddCreditType() { - return { - authority: "", - creditType: undefined - }; -} -export const MsgAddCreditType = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddCreditType(); - message.authority = object.authority ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddCreditType(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgAddCreditType.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddCreditType", - value: MsgAddCreditType.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAddCreditType.decode(message.value); - }, - toProto(message) { - return MsgAddCreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.encode(message).finish() - }; - } -}; -function createBaseMsgAddCreditTypeResponse() { - return {}; -} -export const MsgAddCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgAddCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAddCreditTypeResponse.decode(message.value); - }, - toProto(message) { - return MsgAddCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - value: MsgAddCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClass() { - return { - admin: "", - issuers: [], - metadata: "", - creditTypeAbbrev: "", - fee: undefined - }; -} -export const MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClass.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateClass", - value: MsgCreateClass.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateClass.decode(message.value); - }, - toProto(message) { - return MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse() { - return { - classId: "" - }; -} -export const MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateClassResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - value: MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProject() { - return { - admin: "", - classId: "", - metadata: "", - jurisdiction: "", - referenceId: "" - }; -} -export const MsgCreateProject = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.referenceId !== "") { - writer.uint32(42).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateProject(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateProject(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateProject.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateProject", - value: MsgCreateProject.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateProject.decode(message.value); - }, - toProto(message) { - return MsgCreateProject.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProjectResponse() { - return { - projectId: "" - }; -} -export const MsgCreateProjectResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateProjectResponse(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateProjectResponse(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateProjectResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - value: MsgCreateProjectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch() { - return { - issuer: "", - projectId: "", - issuance: [], - metadata: "", - startDate: undefined, - endDate: undefined, - open: false, - originTx: undefined - }; -} -export const MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - for (const v of message.issuance) { - BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(56).bool(message.open); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.open = reader.bool(); - break; - case 8: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.open = object.open ?? false; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateBatch.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateBatch", - value: MsgCreateBatch.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCreateBatch.decode(message.value); - }, - toProto(message) { - return MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse() { - return { - batchDenom: "" - }; -} -export const MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateBatchResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - value: MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCredits() { - return { - issuer: "", - batchDenom: "", - issuance: [], - originTx: undefined - }; -} -export const MsgMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - for (const v of message.issuance) { - BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuance.push(BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgMintBatchCredits(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuance = object.issuance?.map(e => BatchIssuance.fromPartial(e)) || []; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgMintBatchCredits(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - message.issuance = object.issuance?.map(e => BatchIssuance.fromAmino(e)) || []; - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgMintBatchCredits.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgMintBatchCredits", - value: MsgMintBatchCredits.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgMintBatchCredits.decode(message.value); - }, - toProto(message) { - return MsgMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCreditsResponse() { - return {}; -} -export const MsgMintBatchCreditsResponse = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCreditsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgMintBatchCreditsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgMintBatchCreditsResponse.decode(message.value); - }, - toProto(message) { - return MsgMintBatchCreditsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - value: MsgMintBatchCreditsResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatch() { - return { - issuer: "", - batchDenom: "" - }; -} -export const MsgSealBatch = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSealBatch(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSealBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return MsgSealBatch.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSealBatch", - value: MsgSealBatch.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSealBatch.decode(message.value); - }, - toProto(message) { - return MsgSealBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatchResponse() { - return {}; -} -export const MsgSealBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSealBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSealBatchResponse.decode(message.value); - }, - toProto(message) { - return MsgSealBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - value: MsgSealBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend() { - return { - sender: "", - recipient: "", - credits: [] - }; -} -export const MsgSend = { - typeUrl: "/regen.ecocredit.v1.MsgSend", - encode(message, writer = BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSend", - value: MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSend.decode(message.value); - }, - toProto(message) { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1.SendCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSend_SendCredits.decode(message.value); - }, - toProto(message) { - return MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.SendCredits", - value: MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSendResponse.decode(message.value); - }, - toProto(message) { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire() { - return { - owner: "", - credits: [], - jurisdiction: "", - reason: "" - }; -} -export const MsgRetire = { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - Credits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.jurisdiction !== "") { - writer.uint32(26).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - case 3: - message.jurisdiction = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return MsgRetire.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRetire", - value: MsgRetire.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRetire.decode(message.value); - }, - toProto(message) { - return MsgRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse() { - return {}; -} -export const MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRetireResponse.decode(message.value); - }, - toProto(message) { - return MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - value: MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel() { - return { - owner: "", - credits: [], - reason: "" - }; -} -export const MsgCancel = { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - Credits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.reason !== "") { - writer.uint32(26).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - case 3: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return MsgCancel.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCancel", - value: MsgCancel.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgCancel.decode(message.value); - }, - toProto(message) { - return MsgCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse() { - return {}; -} -export const MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCancelResponse.decode(message.value); - }, - toProto(message) { - return MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - value: MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin() { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -export const MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse() { - return {}; -} -export const MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - value: MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers() { - return { - admin: "", - classId: "", - addIssuers: [], - removeIssuers: [] - }; -} -export const MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.addIssuers) { - writer.uint32(26).string(v); - } - for (const v of message.removeIssuers) { - writer.uint32(34).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.addIssuers.push(reader.string()); - break; - case 4: - message.removeIssuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.addIssuers = object.addIssuers?.map(e => e) || []; - message.removeIssuers = object.removeIssuers?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.addIssuers = object.add_issuers?.map(e => e) || []; - message.removeIssuers = object.remove_issuers?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.addIssuers) { - obj.add_issuers = message.addIssuers.map(e => e); - } - else { - obj.add_issuers = message.addIssuers; - } - if (message.removeIssuers) { - obj.remove_issuers = message.removeIssuers.map(e => e); - } - else { - obj.remove_issuers = message.removeIssuers; - } - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassIssuers.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse() { - return {}; -} -export const MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - value: MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata() { - return { - admin: "", - classId: "", - newMetadata: "" - }; -} -export const MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse() { - return {}; -} -export const MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - value: MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdmin() { - return { - admin: "", - projectId: "", - newAdmin: "" - }; -} -export const MsgUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateProjectAdmin(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateProjectAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateProjectAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateProjectAdmin.decode(message.value); - }, - toProto(message) { - return MsgUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdminResponse() { - return {}; -} -export const MsgUpdateProjectAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateProjectAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateProjectAdminResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateProjectAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - value: MsgUpdateProjectAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadata() { - return { - admin: "", - projectId: "", - newMetadata: "" - }; -} -export const MsgUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateProjectMetadata(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateProjectMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateProjectMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateProjectMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadataResponse() { - return {}; -} -export const MsgUpdateProjectMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateProjectMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateProjectMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateProjectMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - value: MsgUpdateProjectMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridge() { - return { - owner: "", - target: "", - recipient: "", - credits: [] - }; -} -export const MsgBridge = { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.target !== "") { - writer.uint32(18).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.credits) { - Credits.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.target = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.credits.push(Credits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridge(); - message.owner = object.owner ?? ""; - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => Credits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridge(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => Credits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgBridge.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgBridge", - value: MsgBridge.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgBridge.decode(message.value); - }, - toProto(message) { - return MsgBridge.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadata() { - return { - issuer: "", - batchDenom: "", - newMetadata: "" - }; -} -export const MsgUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateBatchMetadata(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateBatchMetadata(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateBatchMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateBatchMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadataResponse() { - return {}; -} -export const MsgUpdateBatchMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateBatchMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateBatchMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateBatchMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - value: MsgUpdateBatchMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeResponse() { - return {}; -} -export const MsgBridgeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgBridgeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgBridgeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgBridgeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBridgeResponse.decode(message.value); - }, - toProto(message) { - return MsgBridgeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - value: MsgBridgeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive() { - return { - issuer: "", - classId: "", - project: undefined, - batch: undefined, - originTx: undefined - }; -} -export const MsgBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.project !== undefined) { - MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); - } - if (message.batch !== undefined) { - MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); - } - if (message.originTx !== undefined) { - OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.project = MsgBridgeReceive_Project.decode(reader, reader.uint32()); - break; - case 4: - message.batch = MsgBridgeReceive_Batch.decode(reader, reader.uint32()); - break; - case 5: - message.originTx = OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.project = object.project !== undefined && object.project !== null ? MsgBridgeReceive_Project.fromPartial(object.project) : undefined; - message.batch = object.batch !== undefined && object.batch !== null ? MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; - message.originTx = object.originTx !== undefined && object.originTx !== null ? OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.project !== undefined && object.project !== null) { - message.project = MsgBridgeReceive_Project.fromAmino(object.project); - } - if (object.batch !== undefined && object.batch !== null) { - message.batch = MsgBridgeReceive_Batch.fromAmino(object.batch); - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.project = message.project ? MsgBridgeReceive_Project.toAmino(message.project) : undefined; - obj.batch = message.batch ? MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; - obj.origin_tx = message.originTx ? OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgBridgeReceive.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgBridgeReceive", - value: MsgBridgeReceive.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgBridgeReceive.decode(message.value); - }, - toProto(message) { - return MsgBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Batch() { - return { - recipient: "", - amount: "", - startDate: undefined, - endDate: undefined, - metadata: "" - }; -} -export const MsgBridgeReceive_Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message, writer = BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(26).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Batch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - case 3: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive_Batch(); - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive_Batch(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgBridgeReceive_Batch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBridgeReceive_Batch.decode(message.value); - }, - toProto(message) { - return MsgBridgeReceive_Batch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: MsgBridgeReceive_Batch.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Project() { - return { - referenceId: "", - jurisdiction: "", - metadata: "" - }; -} -export const MsgBridgeReceive_Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message, writer = BinaryWriter.create()) { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.jurisdiction !== "") { - writer.uint32(18).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Project(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.jurisdiction = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive_Project(); - message.referenceId = object.referenceId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive_Project(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return MsgBridgeReceive_Project.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBridgeReceive_Project.decode(message.value); - }, - toProto(message) { - return MsgBridgeReceive_Project.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: MsgBridgeReceive_Project.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceiveResponse() { - return { - batchDenom: "", - projectId: "" - }; -} -export const MsgBridgeReceiveResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceiveResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceiveResponse(); - message.batchDenom = object.batchDenom ?? ""; - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceiveResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return MsgBridgeReceiveResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgBridgeReceiveResponse.decode(message.value); - }, - toProto(message) { - return MsgBridgeReceiveResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - value: MsgBridgeReceiveResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreator() { - return { - authority: "", - creator: "" - }; -} -export const MsgAddClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object) { - return MsgAddClassCreator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddClassCreator", - value: MsgAddClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAddClassCreator.decode(message.value); - }, - toProto(message) { - return MsgAddClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreatorResponse() { - return {}; -} -export const MsgAddClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgAddClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAddClassCreatorResponse.decode(message.value); - }, - toProto(message) { - return MsgAddClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - value: MsgAddClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlist() { - return { - authority: "", - enabled: false - }; -} -export const MsgSetClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSetClassCreatorAllowlist(); - message.authority = object.authority ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSetClassCreatorAllowlist(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return MsgSetClassCreatorAllowlist.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgSetClassCreatorAllowlist.decode(message.value); - }, - toProto(message) { - return MsgSetClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlistResponse() { - return {}; -} -export const MsgSetClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSetClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message) { - return MsgSetClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - value: MsgSetClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreator() { - return { - authority: "", - creator: "" - }; -} -export const MsgRemoveClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveClassCreator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRemoveClassCreator", - value: MsgRemoveClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRemoveClassCreator.decode(message.value); - }, - toProto(message) { - return MsgRemoveClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreatorResponse() { - return {}; -} -export const MsgRemoveClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRemoveClassCreatorResponse.decode(message.value); - }, - toProto(message) { - return MsgRemoveClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - value: MsgRemoveClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFee() { - return { - authority: "", - fee: undefined - }; -} -export const MsgUpdateClassFee = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassFee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassFee", - value: MsgUpdateClassFee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgUpdateClassFee.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFeeResponse() { - return {}; -} -export const MsgUpdateClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassFeeResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - value: MsgUpdateClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChain() { - return { - authority: "", - chainName: "" - }; -} -export const MsgAddAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return MsgAddAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgAddAllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return MsgAddAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChainResponse() { - return {}; -} -export const MsgAddAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgAddAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgAddAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message) { - return MsgAddAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - value: MsgAddAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChain() { - return { - authority: "", - chainName: "" - }; -} -export const MsgRemoveAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - encode(message, writer = BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message) { - return MsgRemoveAllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return MsgRemoveAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChainResponse() { - return {}; -} -export const MsgRemoveAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRemoveAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message) { - return MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - value: MsgRemoveAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js deleted file mode 100644 index ef347636..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/tx.registry.js +++ /dev/null @@ -1,429 +0,0 @@ -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export const registry = [["/regen.ecocredit.v1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", MsgSend], ["/regen.ecocredit.v1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", MsgRemoveAllowedBridgeChain]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.encode(value).finish() - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.encode(value).finish() - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.encode(value).finish() - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.encode(value).finish() - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.encode(value).finish() - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.encode(value).finish() - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(value).finish() - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.encode(value).finish() - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.encode(value).finish() - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.encode(value).finish() - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.encode(value).finish() - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.encode(value).finish() - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.encode(value).finish() - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.encode(value).finish() - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.encode(value).finish() - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.encode(value).finish() - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.encode(value).finish() - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.encode(value).finish() - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value - }; - } - }, - fromPartial: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: MsgCreateClass.fromPartial(value) - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: MsgCreateProject.fromPartial(value) - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: MsgCreateBatch.fromPartial(value) - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: MsgMintBatchCredits.fromPartial(value) - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: MsgSealBatch.fromPartial(value) - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: MsgRetire.fromPartial(value) - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromPartial(value) - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: MsgUpdateProjectAdmin.fromPartial(value) - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: MsgUpdateProjectMetadata.fromPartial(value) - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: MsgUpdateBatchMetadata.fromPartial(value) - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: MsgBridge.fromPartial(value) - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: MsgBridgeReceive.fromPartial(value) - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: MsgAddCreditType.fromPartial(value) - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: MsgSetClassCreatorAllowlist.fromPartial(value) - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: MsgAddClassCreator.fromPartial(value) - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: MsgRemoveClassCreator.fromPartial(value) - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: MsgUpdateClassFee.fromPartial(value) - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: MsgAddAllowedBridgeChain.fromPartial(value) - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: MsgRemoveAllowedBridgeChain.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js deleted file mode 100644 index ab295737..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/tx.rpc.msg.js +++ /dev/null @@ -1,146 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createProject = this.createProject.bind(this); - this.createBatch = this.createBatch.bind(this); - this.mintBatchCredits = this.mintBatchCredits.bind(this); - this.sealBatch = this.sealBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - this.updateProjectAdmin = this.updateProjectAdmin.bind(this); - this.updateProjectMetadata = this.updateProjectMetadata.bind(this); - this.updateBatchMetadata = this.updateBatchMetadata.bind(this); - this.bridge = this.bridge.bind(this); - this.bridgeReceive = this.bridgeReceive.bind(this); - this.addCreditType = this.addCreditType.bind(this); - this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); - this.addClassCreator = this.addClassCreator.bind(this); - this.removeClassCreator = this.removeClassCreator.bind(this); - this.updateClassFee = this.updateClassFee.bind(this); - this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); - this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); - } - createClass(request) { - const data = MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); - return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); - } - createProject(request) { - const data = MsgCreateProject.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); - return promise.then(data => MsgCreateProjectResponse.decode(new BinaryReader(data))); - } - createBatch(request) { - const data = MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); - return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); - } - mintBatchCredits(request) { - const data = MsgMintBatchCredits.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); - return promise.then(data => MsgMintBatchCreditsResponse.decode(new BinaryReader(data))); - } - sealBatch(request) { - const data = MsgSealBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); - return promise.then(data => MsgSealBatchResponse.decode(new BinaryReader(data))); - } - send(request) { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - retire(request) { - const data = MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); - return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); - } - cancel(request) { - const data = MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); - return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); - } - updateClassAdmin(request) { - const data = MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); - return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); - } - updateClassIssuers(request) { - const data = MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); - return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); - } - updateClassMetadata(request) { - const data = MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); - return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); - } - updateProjectAdmin(request) { - const data = MsgUpdateProjectAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); - return promise.then(data => MsgUpdateProjectAdminResponse.decode(new BinaryReader(data))); - } - updateProjectMetadata(request) { - const data = MsgUpdateProjectMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); - return promise.then(data => MsgUpdateProjectMetadataResponse.decode(new BinaryReader(data))); - } - updateBatchMetadata(request) { - const data = MsgUpdateBatchMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); - return promise.then(data => MsgUpdateBatchMetadataResponse.decode(new BinaryReader(data))); - } - bridge(request) { - const data = MsgBridge.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); - return promise.then(data => MsgBridgeResponse.decode(new BinaryReader(data))); - } - bridgeReceive(request) { - const data = MsgBridgeReceive.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); - return promise.then(data => MsgBridgeReceiveResponse.decode(new BinaryReader(data))); - } - addCreditType(request) { - const data = MsgAddCreditType.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); - return promise.then(data => MsgAddCreditTypeResponse.decode(new BinaryReader(data))); - } - setClassCreatorAllowlist(request) { - const data = MsgSetClassCreatorAllowlist.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); - return promise.then(data => MsgSetClassCreatorAllowlistResponse.decode(new BinaryReader(data))); - } - addClassCreator(request) { - const data = MsgAddClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); - return promise.then(data => MsgAddClassCreatorResponse.decode(new BinaryReader(data))); - } - removeClassCreator(request) { - const data = MsgRemoveClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); - return promise.then(data => MsgRemoveClassCreatorResponse.decode(new BinaryReader(data))); - } - updateClassFee(request) { - const data = MsgUpdateClassFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); - return promise.then(data => MsgUpdateClassFeeResponse.decode(new BinaryReader(data))); - } - addAllowedBridgeChain(request) { - const data = MsgAddAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); - return promise.then(data => MsgAddAllowedBridgeChainResponse.decode(new BinaryReader(data))); - } - removeAllowedBridgeChain(request) { - const data = MsgRemoveAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); - return promise.then(data => MsgRemoveAllowedBridgeChainResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/v1/types.js b/packages/api/dist/esm/regen/ecocredit/v1/types.js deleted file mode 100644 index 8be67487..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1/types.js +++ /dev/null @@ -1,601 +0,0 @@ -//@ts-nocheck -import { Coin } from "../../../cosmos/base/v1beta1/coin"; -import { CreditType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseParams() { - return { - creditClassFee: [], - basketFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - allowedDenoms: [], - allowedBridgeChains: [] - }; -} -export const Params = { - typeUrl: "/regen.ecocredit.v1.Params", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.creditClassFee) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.basketFee) { - Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(26).string(v); - } - if (message.allowlistEnabled === true) { - writer.uint32(32).bool(message.allowlistEnabled); - } - for (const v of message.allowedDenoms) { - AllowedDenom.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.allowedBridgeChains) { - writer.uint32(50).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.basketFee.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.allowedClassCreators.push(reader.string()); - break; - case 4: - message.allowlistEnabled = reader.bool(); - break; - case 5: - message.allowedDenoms.push(AllowedDenom.decode(reader, reader.uint32())); - break; - case 6: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; - message.basketFee = object.basketFee?.map(e => Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.allowedDenoms = object.allowedDenoms?.map(e => AllowedDenom.fromPartial(e)) || []; - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; - message.basketFee = object.basket_fee?.map(e => Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.allowedDenoms = object.allowed_denoms?.map(e => AllowedDenom.fromAmino(e)) || []; - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.basketFee) { - obj.basket_fee = message.basketFee.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.basket_fee = message.basketFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } - else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? AllowedDenom.toAmino(e) : undefined); - } - else { - obj.allowed_denoms = message.allowedDenoms; - } - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } - else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseCredits() { - return { - batchDenom: "", - amount: "" - }; -} -export const Credits = { - typeUrl: "/regen.ecocredit.v1.Credits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return Credits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Credits.decode(message.value); - }, - toProto(message) { - return Credits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Credits", - value: Credits.encode(message).finish() - }; - } -}; -function createBaseBatchIssuance() { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -export const BatchIssuance = { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - encode(message, writer = BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchIssuance.decode(message.value); - }, - toProto(message) { - return BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - value: BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseOriginTx() { - return { - id: "", - source: "", - contract: "", - note: "" - }; -} -export const OriginTx = { - typeUrl: "/regen.ecocredit.v1.OriginTx", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.source !== "") { - writer.uint32(18).string(message.source); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.note !== "") { - writer.uint32(34).string(message.note); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.source = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.note = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOriginTx(); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - message.contract = object.contract ?? ""; - message.note = object.note ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseOriginTx(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.note !== undefined && object.note !== null) { - message.note = object.note; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.note = message.note === "" ? undefined : message.note; - return obj; - }, - fromAminoMsg(object) { - return OriginTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return OriginTx.decode(message.value); - }, - toProto(message) { - return OriginTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.OriginTx", - value: OriginTx.encode(message).finish() - }; - } -}; -function createBaseCreditTypeProposal() { - return { - title: "", - description: "", - creditType: undefined - }; -} -export const CreditTypeProposal = { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditTypeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseCreditTypeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return CreditTypeProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CreditTypeProposal.decode(message.value); - }, - toProto(message) { - return CreditTypeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - value: CreditTypeProposal.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom() { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -export const AllowedDenom = { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - encode(message, writer = BinaryWriter.create()) { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return AllowedDenom.decode(message.value); - }, - toProto(message) { - return AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - value: AllowedDenom.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js deleted file mode 100644 index 190329ee..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/events.js +++ /dev/null @@ -1,521 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseEventCreateClass() { - return { - classId: "", - admin: "" - }; -} -export const EventCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - return obj; - }, - fromAminoMsg(object) { - return EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreateClass.decode(message.value); - }, - toProto(message) { - return EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - value: EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch() { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - startDate: "", - endDate: "", - projectLocation: "" - }; -} -export const EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.startDate !== "") { - writer.uint32(42).string(message.startDate); - } - if (message.endDate !== "") { - writer.uint32(50).string(message.endDate); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.startDate = reader.string(); - break; - case 6: - message.endDate = reader.string(); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateBatch(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.startDate = object.startDate ?? ""; - message.endDate = object.endDate ?? ""; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateBatch(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = object.start_date; - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = object.end_date; - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.start_date = message.startDate === "" ? undefined : message.startDate; - obj.end_date = message.endDate === "" ? undefined : message.endDate; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCreateBatch.decode(message.value); - }, - toProto(message) { - return EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - value: EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventReceive() { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - basketDenom: "" - }; -} -export const EventReceive = { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - encode(message, writer = BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - if (message.basketDenom !== "") { - writer.uint32(50).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - case 6: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventReceive(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventReceive(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return EventReceive.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventReceive.decode(message.value); - }, - toProto(message) { - return EventReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - value: EventReceive.encode(message).finish() - }; - } -}; -function createBaseEventRetire() { - return { - retirer: "", - batchDenom: "", - amount: "", - location: "" - }; -} -export const EventRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - encode(message, writer = BinaryWriter.create()) { - if (message.retirer !== "") { - writer.uint32(10).string(message.retirer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.location !== "") { - writer.uint32(34).string(message.location); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.retirer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRetire(); - message.retirer = object.retirer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRetire(); - if (object.retirer !== undefined && object.retirer !== null) { - message.retirer = object.retirer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.retirer = message.retirer === "" ? undefined : message.retirer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object) { - return EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventRetire.decode(message.value); - }, - toProto(message) { - return EventRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - value: EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel() { - return { - canceller: "", - batchDenom: "", - amount: "" - }; -} -export const EventCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - encode(message, writer = BinaryWriter.create()) { - if (message.canceller !== "") { - writer.uint32(10).string(message.canceller); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.canceller = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancel(); - message.canceller = object.canceller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCancel(); - if (object.canceller !== undefined && object.canceller !== null) { - message.canceller = object.canceller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.canceller = message.canceller === "" ? undefined : message.canceller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventCancel.decode(message.value); - }, - toProto(message) { - return EventCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - value: EventCancel.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js deleted file mode 100644 index 3863dc06..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/genesis.js +++ /dev/null @@ -1,327 +0,0 @@ -//@ts-nocheck -import { Params, ClassInfo, BatchInfo, CreditTypeSeq } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseGenesisState() { - return { - params: Params.fromPartial({}), - classInfo: [], - batchInfo: [], - sequences: [], - balances: [], - supplies: [] - }; -} -export const GenesisState = { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classInfo) { - ClassInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.batchInfo) { - BatchInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.sequences) { - CreditTypeSeq.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.balances) { - Balance.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.supplies) { - Supply.encode(v, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.classInfo.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 3: - message.batchInfo.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 4: - message.sequences.push(CreditTypeSeq.decode(reader, reader.uint32())); - break; - case 5: - message.balances.push(Balance.decode(reader, reader.uint32())); - break; - case 6: - message.supplies.push(Supply.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.classInfo = object.classInfo?.map(e => ClassInfo.fromPartial(e)) || []; - message.batchInfo = object.batchInfo?.map(e => BatchInfo.fromPartial(e)) || []; - message.sequences = object.sequences?.map(e => CreditTypeSeq.fromPartial(e)) || []; - message.balances = object.balances?.map(e => Balance.fromPartial(e)) || []; - message.supplies = object.supplies?.map(e => Supply.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - message.classInfo = object.class_info?.map(e => ClassInfo.fromAmino(e)) || []; - message.batchInfo = object.batch_info?.map(e => BatchInfo.fromAmino(e)) || []; - message.sequences = object.sequences?.map(e => CreditTypeSeq.fromAmino(e)) || []; - message.balances = object.balances?.map(e => Balance.fromAmino(e)) || []; - message.supplies = object.supplies?.map(e => Supply.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - if (message.classInfo) { - obj.class_info = message.classInfo.map(e => e ? ClassInfo.toAmino(e) : undefined); - } - else { - obj.class_info = message.classInfo; - } - if (message.batchInfo) { - obj.batch_info = message.batchInfo.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batch_info = message.batchInfo; - } - if (message.sequences) { - obj.sequences = message.sequences.map(e => e ? CreditTypeSeq.toAmino(e) : undefined); - } - else { - obj.sequences = message.sequences; - } - if (message.balances) { - obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - if (message.supplies) { - obj.supplies = message.supplies.map(e => e ? Supply.toAmino(e) : undefined); - } - else { - obj.supplies = message.supplies; - } - return obj; - }, - fromAminoMsg(object) { - return GenesisState.fromAmino(object.value); - }, - fromProtoMsg(message) { - return GenesisState.decode(message.value); - }, - toProto(message) { - return GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - value: GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance() { - return { - address: "", - batchDenom: "", - tradableBalance: "", - retiredBalance: "" - }; -} -export const Balance = { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - encode(message, writer = BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableBalance !== "") { - writer.uint32(26).string(message.tradableBalance); - } - if (message.retiredBalance !== "") { - writer.uint32(34).string(message.retiredBalance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableBalance = reader.string(); - break; - case 4: - message.retiredBalance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableBalance = object.tradableBalance ?? ""; - message.retiredBalance = object.retiredBalance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_balance !== undefined && object.tradable_balance !== null) { - message.tradableBalance = object.tradable_balance; - } - if (object.retired_balance !== undefined && object.retired_balance !== null) { - message.retiredBalance = object.retired_balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; - obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; - return obj; - }, - fromAminoMsg(object) { - return Balance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Balance.decode(message.value); - }, - toProto(message) { - return Balance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - value: Balance.encode(message).finish() - }; - } -}; -function createBaseSupply() { - return { - batchDenom: "", - tradableSupply: "", - retiredSupply: "" - }; -} -export const Supply = { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableSupply !== "") { - writer.uint32(18).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(26).string(message.retiredSupply); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableSupply = reader.string(); - break; - case 3: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSupply(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseSupply(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object) { - return Supply.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Supply.decode(message.value); - }, - toProto(message) { - return Supply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - value: Supply.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js deleted file mode 100644 index dc96f0f5..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.js +++ /dev/null @@ -1,1067 +0,0 @@ -//@ts-nocheck -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Params, ClassInfo, BatchInfo, CreditType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryParamsRequest() { - return {}; -} -export const QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - value: QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -export const QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - value: QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesRequest() { - return { - pagination: undefined - }; -} -export const QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesRequest.decode(message.value); - }, - toProto(message) { - return QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - value: QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse() { - return { - classes: [], - pagination: undefined - }; -} -export const QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.classes) { - ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassesResponse.decode(message.value); - }, - toProto(message) { - return QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - value: QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoRequest() { - return { - classId: "" - }; -} -export const QueryClassInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassInfoRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassInfoRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return QueryClassInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassInfoRequest.decode(message.value); - }, - toProto(message) { - return QueryClassInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - value: QueryClassInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoResponse() { - return { - info: undefined - }; -} -export const QueryClassInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.info !== undefined) { - ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? ClassInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = ClassInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? ClassInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryClassInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryClassInfoResponse.decode(message.value); - }, - toProto(message) { - return QueryClassInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - value: QueryClassInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest() { - return { - classId: "", - pagination: undefined - }; -} -export const QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - value: QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse() { - return { - batches: [], - pagination: undefined - }; -} -export const QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.batches) { - BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchesResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - value: QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoRequest() { - return { - batchDenom: "" - }; -} -export const QueryBatchInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchInfoRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchInfoRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchInfoRequest.decode(message.value); - }, - toProto(message) { - return QueryBatchInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - value: QueryBatchInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoResponse() { - return { - info: undefined - }; -} -export const QueryBatchInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.info !== undefined) { - BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? BatchInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = BatchInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? BatchInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return QueryBatchInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBatchInfoResponse.decode(message.value); - }, - toProto(message) { - return QueryBatchInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - value: QueryBatchInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest() { - return { - account: "", - batchDenom: "" - }; -} -export const QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.account !== "") { - writer.uint32(10).string(message.account); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.account = object.account ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account === "" ? undefined : message.account; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - value: QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - tradableAmount: "", - retiredAmount: "" - }; -} -export const QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - value: QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest() { - return { - batchDenom: "" - }; -} -export const QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySupplyRequest.decode(message.value); - }, - toProto(message) { - return QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - value: QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse() { - return { - tradableSupply: "", - retiredSupply: "" - }; -} -export const QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.tradableSupply !== "") { - writer.uint32(10).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(18).string(message.retiredSupply); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableSupply = reader.string(); - break; - case 2: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyResponse(); - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object) { - return QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QuerySupplyResponse.decode(message.value); - }, - toProto(message) { - return QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - value: QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest() { - return {}; -} -export const QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypesRequest.decode(message.value); - }, - toProto(message) { - return QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - value: QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse() { - return { - creditTypes: [] - }; -} -export const QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.creditTypes) { - CreditType.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object) { - return QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryCreditTypesResponse.decode(message.value); - }, - toProto(message) { - return QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - value: QueryCreditTypesResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js deleted file mode 100644 index 200096db..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.lcd.js +++ /dev/null @@ -1,72 +0,0 @@ -//@ts-nocheck -import { setPaginationParams } from "../../../helpers"; -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassInfo queries for information on a credit class. */ - async classInfo(params) { - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches in the given credit class with pagination. */ - async batches(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; - return await this.req.get(endpoint, options); - } - /* BatchInfo queries for information on a credit batch. */ - async batchInfo(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account. */ - async balance(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; - return await this.req.get(endpoint); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params = {}) { - const endpoint = `regen/ecocredit/v1alpha1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. */ - async params(_params = {}) { - const endpoint = `regen/ecocredit/v1alpha1/params`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js deleted file mode 100644 index 859e4d18..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/query.rpc.Query.js +++ /dev/null @@ -1,89 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - classes(request = { - pagination: undefined - }) { - const data = QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); - return promise.then(data => QueryClassesResponse.decode(new BinaryReader(data))); - } - classInfo(request) { - const data = QueryClassInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); - return promise.then(data => QueryClassInfoResponse.decode(new BinaryReader(data))); - } - batches(request) { - const data = QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); - return promise.then(data => QueryBatchesResponse.decode(new BinaryReader(data))); - } - batchInfo(request) { - const data = QueryBatchInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); - return promise.then(data => QueryBatchInfoResponse.decode(new BinaryReader(data))); - } - balance(request) { - const data = QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); - return promise.then(data => QueryBalanceResponse.decode(new BinaryReader(data))); - } - supply(request) { - const data = QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); - return promise.then(data => QuerySupplyResponse.decode(new BinaryReader(data))); - } - creditTypes(request = {}) { - const data = QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); - return promise.then(data => QueryCreditTypesResponse.decode(new BinaryReader(data))); - } - params(request = {}) { - const data = QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); - return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request) { - return queryService.classes(request); - }, - classInfo(request) { - return queryService.classInfo(request); - }, - batches(request) { - return queryService.batches(request); - }, - batchInfo(request) { - return queryService.batchInfo(request); - }, - balance(request) { - return queryService.balance(request); - }, - supply(request) { - return queryService.supply(request); - }, - creditTypes(request) { - return queryService.creditTypes(request); - }, - params(request) { - return queryService.params(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js deleted file mode 100644 index 2a4c2603..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.amino.js +++ /dev/null @@ -1,44 +0,0 @@ -//@ts-nocheck -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export const AminoConverter = { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", - toAmino: MsgCreateClass.toAmino, - fromAmino: MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - toAmino: MsgCreateBatch.toAmino, - fromAmino: MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: "/regen.ecocredit.v1alpha1.MsgSend", - toAmino: MsgSend.toAmino, - fromAmino: MsgSend.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", - toAmino: MsgRetire.toAmino, - fromAmino: MsgRetire.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", - toAmino: MsgCancel.toAmino, - fromAmino: MsgCancel.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - toAmino: MsgUpdateClassAdmin.toAmino, - fromAmino: MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - toAmino: MsgUpdateClassIssuers.toAmino, - fromAmino: MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - toAmino: MsgUpdateClassMetadata.toAmino, - fromAmino: MsgUpdateClassMetadata.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js deleted file mode 100644 index c53ab50b..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.js +++ /dev/null @@ -1,1540 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseMsgCreateClass() { - return { - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditTypeName: "" - }; -} -export const MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - if (message.creditTypeName !== "") { - writer.uint32(34).string(message.creditTypeName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.bytes(); - break; - case 4: - message.creditTypeName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditTypeName = object.creditTypeName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.credit_type_name !== undefined && object.credit_type_name !== null) { - message.creditTypeName = object.credit_type_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateClass.decode(message.value); - }, - toProto(message) { - return MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse() { - return { - classId: "" - }; -} -export const MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateClassResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - value: MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch() { - return { - issuer: "", - classId: "", - issuance: [], - metadata: new Uint8Array(), - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -export const MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - encode(message, writer = BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuance) { - MsgCreateBatch_BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuance.push(MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuance = object.issuance?.map(e => MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateBatch.decode(message.value); - }, - toProto(message) { - return MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch_BatchIssuance() { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -export const MsgCreateBatch_BatchIssuance = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - encode(message, writer = BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch_BatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch_BatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch_BatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateBatch_BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateBatch_BatchIssuance.decode(message.value); - }, - toProto(message) { - return MsgCreateBatch_BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - value: MsgCreateBatch_BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse() { - return { - batchDenom: "" - }; -} -export const MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCreateBatchResponse.decode(message.value); - }, - toProto(message) { - return MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - value: MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend() { - return { - sender: "", - recipient: "", - credits: [] - }; -} -export const MsgSend = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - encode(message, writer = BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgSend_SendCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgSend.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSend.decode(message.value); - }, - toProto(message) { - return MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -export const MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object) { - return MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSend_SendCredits.decode(message.value); - }, - toProto(message) { - return MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - value: MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -export const MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSendResponse.decode(message.value); - }, - toProto(message) { - return MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - value: MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire() { - return { - holder: "", - credits: [], - location: "" - }; -} -export const MsgRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - encode(message, writer = BinaryWriter.create()) { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - MsgRetire_RetireCredits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.location !== "") { - writer.uint32(26).string(message.location); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(MsgRetire_RetireCredits.decode(reader, reader.uint32())); - break; - case 3: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromPartial(e)) || []; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => MsgRetire_RetireCredits.fromAmino(e)) || []; - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgRetire_RetireCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object) { - return MsgRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRetire.decode(message.value); - }, - toProto(message) { - return MsgRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetire_RetireCredits() { - return { - batchDenom: "", - amount: "" - }; -} -export const MsgRetire_RetireCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire_RetireCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire_RetireCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire_RetireCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return MsgRetire_RetireCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRetire_RetireCredits.decode(message.value); - }, - toProto(message) { - return MsgRetire_RetireCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - value: MsgRetire_RetireCredits.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse() { - return {}; -} -export const MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRetireResponse.decode(message.value); - }, - toProto(message) { - return MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - value: MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel() { - return { - holder: "", - credits: [] - }; -} -export const MsgCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - encode(message, writer = BinaryWriter.create()) { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - MsgCancel_CancelCredits.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(MsgCancel_CancelCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => MsgCancel_CancelCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? MsgCancel_CancelCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return MsgCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCancel.decode(message.value); - }, - toProto(message) { - return MsgCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancel_CancelCredits() { - return { - batchDenom: "", - amount: "" - }; -} -export const MsgCancel_CancelCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - encode(message, writer = BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel_CancelCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel_CancelCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel_CancelCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return MsgCancel_CancelCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCancel_CancelCredits.decode(message.value); - }, - toProto(message) { - return MsgCancel_CancelCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - value: MsgCancel_CancelCredits.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse() { - return {}; -} -export const MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgCancelResponse.decode(message.value); - }, - toProto(message) { - return MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - value: MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin() { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -export const MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse() { - return {}; -} -export const MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - value: MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers() { - return { - admin: "", - classId: "", - issuers: [] - }; -} -export const MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuers) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse() { - return {}; -} -export const MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - value: MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata() { - return { - admin: "", - classId: "", - metadata: new Uint8Array() - }; -} -export const MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - encode(message, writer = BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse() { - return {}; -} -export const MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message) { - return MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - value: MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js deleted file mode 100644 index 5b326843..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.registry.js +++ /dev/null @@ -1,159 +0,0 @@ -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export const registry = [["/regen.ecocredit.v1alpha1.MsgCreateClass", MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", MsgUpdateClassMetadata]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.encode(value).finish() - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.encode(value).finish() - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.encode(value).finish() - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.encode(value).finish() - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value - }; - } - }, - fromPartial: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: MsgCreateClass.fromPartial(value) - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: MsgCreateBatch.fromPartial(value) - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: MsgSend.fromPartial(value) - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: MsgRetire.fromPartial(value) - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: MsgUpdateClassMetadata.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js deleted file mode 100644 index e9ede447..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/tx.rpc.msg.js +++ /dev/null @@ -1,56 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createBatch = this.createBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - } - createClass(request) { - const data = MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); - return promise.then(data => MsgCreateClassResponse.decode(new BinaryReader(data))); - } - createBatch(request) { - const data = MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); - return promise.then(data => MsgCreateBatchResponse.decode(new BinaryReader(data))); - } - send(request) { - const data = MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); - return promise.then(data => MsgSendResponse.decode(new BinaryReader(data))); - } - retire(request) { - const data = MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); - return promise.then(data => MsgRetireResponse.decode(new BinaryReader(data))); - } - cancel(request) { - const data = MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); - return promise.then(data => MsgCancelResponse.decode(new BinaryReader(data))); - } - updateClassAdmin(request) { - const data = MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); - return promise.then(data => MsgUpdateClassAdminResponse.decode(new BinaryReader(data))); - } - updateClassIssuers(request) { - const data = MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); - return promise.then(data => MsgUpdateClassIssuersResponse.decode(new BinaryReader(data))); - } - updateClassMetadata(request) { - const data = MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); - return promise.then(data => MsgUpdateClassMetadataResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js b/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js deleted file mode 100644 index adc5f200..00000000 --- a/packages/api/dist/esm/regen/ecocredit/v1alpha1/types.js +++ /dev/null @@ -1,587 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../../helpers"; -function createBaseClassInfo() { - return { - classId: "", - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditType: undefined, - numBatches: BigInt(0) - }; -} -export const ClassInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(26).string(v); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.creditType !== undefined) { - CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); - } - if (message.numBatches !== BigInt(0)) { - writer.uint32(48).uint64(message.numBatches); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.creditType = CreditType.decode(reader, reader.uint32()); - break; - case 6: - message.numBatches = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassInfo(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? CreditType.fromPartial(object.creditType) : undefined; - message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseClassInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = CreditType.fromAmino(object.credit_type); - } - if (object.num_batches !== undefined && object.num_batches !== null) { - message.numBatches = BigInt(object.num_batches); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.credit_type = message.creditType ? CreditType.toAmino(message.creditType) : undefined; - obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ClassInfo.decode(message.value); - }, - toProto(message) { - return ClassInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - value: ClassInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo() { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - metadata: new Uint8Array(), - amountCancelled: "", - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -export const BatchInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - if (message.amountCancelled !== "") { - writer.uint32(50).string(message.amountCancelled); - } - if (message.startDate !== undefined) { - Timestamp.encode(toTimestamp(message.startDate), writer.uint32(58).fork()).ldelim(); - } - if (message.endDate !== undefined) { - Timestamp.encode(toTimestamp(message.endDate), writer.uint32(66).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(74).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.metadata = reader.bytes(); - break; - case 6: - message.amountCancelled = reader.string(); - break; - case 7: - message.startDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.endDate = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchInfo(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - message.amountCancelled = object.amountCancelled ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { - message.amountCancelled = object.amount_cancelled; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = fromTimestamp(Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = fromTimestamp(Timestamp.fromAmino(object.end_date)); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; - obj.start_date = message.startDate ? Timestamp.toAmino(toTimestamp(message.startDate)) : undefined; - obj.end_date = message.endDate ? Timestamp.toAmino(toTimestamp(message.endDate)) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BatchInfo.decode(message.value); - }, - toProto(message) { - return BatchInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - value: BatchInfo.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - creditClassFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - creditTypes: [], - basketCreationFee: [] - }; -} -export const Params = { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.creditClassFee) { - Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(18).string(v); - } - if (message.allowlistEnabled === true) { - writer.uint32(24).bool(message.allowlistEnabled); - } - for (const v of message.creditTypes) { - CreditType.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.basketCreationFee) { - Coin.encode(v, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.allowedClassCreators.push(reader.string()); - break; - case 3: - message.allowlistEnabled = reader.bool(); - break; - case 4: - message.creditTypes.push(CreditType.decode(reader, reader.uint32())); - break; - case 5: - message.basketCreationFee.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.creditTypes = object.creditTypes?.map(e => CreditType.fromPartial(e)) || []; - message.basketCreationFee = object.basketCreationFee?.map(e => Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.creditTypes = object.credit_types?.map(e => CreditType.fromAmino(e)) || []; - message.basketCreationFee = object.basket_creation_fee?.map(e => Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } - else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - if (message.basketCreationFee) { - obj.basket_creation_fee = message.basketCreationFee.map(e => e ? Coin.toAmino(e) : undefined); - } - else { - obj.basket_creation_fee = message.basketCreationFee; - } - return obj; - }, - fromAminoMsg(object) { - return Params.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Params.decode(message.value); - }, - toProto(message) { - return Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - value: Params.encode(message).finish() - }; - } -}; -function createBaseCreditType() { - return { - name: "", - abbreviation: "", - unit: "", - precision: 0 - }; -} -export const CreditType = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - encode(message, writer = BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.abbreviation !== "") { - writer.uint32(18).string(message.abbreviation); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.abbreviation = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditType(); - message.name = object.name ?? ""; - message.abbreviation = object.abbreviation ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseCreditType(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object) { - return CreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CreditType.decode(message.value); - }, - toProto(message) { - return CreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - value: CreditType.encode(message).finish() - }; - } -}; -function createBaseCreditTypeSeq() { - return { - abbreviation: "", - seqNumber: BigInt(0) - }; -} -export const CreditTypeSeq = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - encode(message, writer = BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.seqNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.seqNumber); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeSeq(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.seqNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditTypeSeq(); - message.abbreviation = object.abbreviation ?? ""; - message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseCreditTypeSeq(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.seq_number !== undefined && object.seq_number !== null) { - message.seqNumber = BigInt(object.seq_number); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return CreditTypeSeq.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CreditTypeSeq.decode(message.value); - }, - toProto(message) { - return CreditTypeSeq.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - value: CreditTypeSeq.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/query.js b/packages/api/dist/esm/regen/intertx/v1/query.js deleted file mode 100644 index 03efd554..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/query.js +++ /dev/null @@ -1,140 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseQueryInterchainAccountRequest() { - return { - owner: "", - connectionId: "" - }; -} -export const QueryInterchainAccountRequest = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInterchainAccountRequest(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryInterchainAccountRequest(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - return obj; - }, - fromAminoMsg(object) { - return QueryInterchainAccountRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryInterchainAccountRequest.decode(message.value); - }, - toProto(message) { - return QueryInterchainAccountRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - value: QueryInterchainAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInterchainAccountResponse() { - return { - interchainAccountAddress: "" - }; -} -export const QueryInterchainAccountResponse = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - encode(message, writer = BinaryWriter.create()) { - if (message.interchainAccountAddress !== "") { - writer.uint32(10).string(message.interchainAccountAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interchainAccountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInterchainAccountResponse(); - message.interchainAccountAddress = object.interchainAccountAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryInterchainAccountResponse(); - if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { - message.interchainAccountAddress = object.interchain_account_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; - return obj; - }, - fromAminoMsg(object) { - return QueryInterchainAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return QueryInterchainAccountResponse.decode(message.value); - }, - toProto(message) { - return QueryInterchainAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - value: QueryInterchainAccountResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/query.lcd.js b/packages/api/dist/esm/regen/intertx/v1/query.lcd.js deleted file mode 100644 index 5c811cb4..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/query.lcd.js +++ /dev/null @@ -1,13 +0,0 @@ -export class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.interchainAccount = this.interchainAccount.bind(this); - } - /* QueryInterchainAccount returns the interchain account for given owner - address on a given connection pair */ - async interchainAccount(params) { - const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; - return await this.req.get(endpoint); - } -} diff --git a/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js b/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js deleted file mode 100644 index 888a0421..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/query.rpc.Query.js +++ /dev/null @@ -1,24 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; -export class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.interchainAccount = this.interchainAccount.bind(this); - } - interchainAccount(request) { - const data = QueryInterchainAccountRequest.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); - return promise.then(data => QueryInterchainAccountResponse.decode(new BinaryReader(data))); - } -} -export const createRpcQueryExtension = (base) => { - const rpc = createProtobufRpcClient(base); - const queryService = new QueryClientImpl(rpc); - return { - interchainAccount(request) { - return queryService.interchainAccount(request); - } - }; -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.amino.js b/packages/api/dist/esm/regen/intertx/v1/tx.amino.js deleted file mode 100644 index 59aac059..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/tx.amino.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ts-nocheck -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export const AminoConverter = { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: "/regen.intertx.v1.MsgRegisterAccount", - toAmino: MsgRegisterAccount.toAmino, - fromAmino: MsgRegisterAccount.fromAmino - }, - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: "/regen.intertx.v1.MsgSubmitTx", - toAmino: MsgSubmitTx.toAmino, - fromAmino: MsgSubmitTx.fromAmino - } -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.js b/packages/api/dist/esm/regen/intertx/v1/tx.js deleted file mode 100644 index 19988a7f..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/tx.js +++ /dev/null @@ -1,277 +0,0 @@ -//@ts-nocheck -import { Any } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseMsgRegisterAccount() { - return { - owner: "", - connectionId: "", - version: "" - }; -} -export const MsgRegisterAccount = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.version !== "") { - writer.uint32(26).string(message.version); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRegisterAccount(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.version = object.version ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRegisterAccount(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.version = message.version === "" ? undefined : message.version; - return obj; - }, - fromAminoMsg(object) { - return MsgRegisterAccount.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRegisterAccount.decode(message.value); - }, - toProto(message) { - return MsgRegisterAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterAccountResponse() { - return {}; -} -export const MsgRegisterAccountResponse = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgRegisterAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgRegisterAccountResponse.decode(message.value); - }, - toProto(message) { - return MsgRegisterAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - value: MsgRegisterAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTx() { - return { - owner: "", - connectionId: "", - msg: undefined - }; -} -export const MsgSubmitTx = { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - encode(message, writer = BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.msg !== undefined) { - Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.msg = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitTx(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.msg = object.msg !== undefined && object.msg !== null ? Any.fromPartial(object.msg) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitTx(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.msg !== undefined && object.msg !== null) { - message.msg = Any.fromAmino(object.msg); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.msg = message.msg ? Any.toAmino(message.msg) : undefined; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSubmitTx.decode(message.value); - }, - toProto(message) { - return MsgSubmitTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTxResponse() { - return {}; -} -export const MsgSubmitTxResponse = { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return MsgSubmitTxResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return MsgSubmitTxResponse.decode(message.value); - }, - toProto(message) { - return MsgSubmitTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - value: MsgSubmitTxResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.registry.js b/packages/api/dist/esm/regen/intertx/v1/tx.registry.js deleted file mode 100644 index ff78df35..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/tx.registry.js +++ /dev/null @@ -1,51 +0,0 @@ -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export const registry = [["/regen.intertx.v1.MsgRegisterAccount", MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", MsgSubmitTx]]; -export const load = (protoRegistry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.encode(value).finish() - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.encode(value).finish() - }; - } - }, - withTypeUrl: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value - }; - } - }, - fromPartial: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: MsgRegisterAccount.fromPartial(value) - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: MsgSubmitTx.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js b/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js deleted file mode 100644 index ad15416e..00000000 --- a/packages/api/dist/esm/regen/intertx/v1/tx.rpc.msg.js +++ /dev/null @@ -1,20 +0,0 @@ -import { BinaryReader } from "../../../binary"; -import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; -export class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.registerAccount = this.registerAccount.bind(this); - this.submitTx = this.submitTx.bind(this); - } - registerAccount(request) { - const data = MsgRegisterAccount.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); - return promise.then(data => MsgRegisterAccountResponse.decode(new BinaryReader(data))); - } - submitTx(request) { - const data = MsgSubmitTx.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); - return promise.then(data => MsgSubmitTxResponse.decode(new BinaryReader(data))); - } -} diff --git a/packages/api/dist/esm/regen/lcd.js b/packages/api/dist/esm/regen/lcd.js deleted file mode 100644 index c621697b..00000000 --- a/packages/api/dist/esm/regen/lcd.js +++ /dev/null @@ -1,111 +0,0 @@ -//@ts-nocheck -import { LCDClient } from "@cosmology/lcd"; -export const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await import("../cosmos/base/node/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, - regen: { - data: { - v1: new (await import("./data/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - ecocredit: { - basket: { - v1: new (await import("./ecocredit/basket/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - marketplace: { - v1: new (await import("./ecocredit/marketplace/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - v1: new (await import("./ecocredit/v1/query.lcd")).LCDQueryClient({ - requestClient - }), - v1alpha1: new (await import("./ecocredit/v1alpha1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - intertx: { - v1: new (await import("./intertx/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - } - }; -}; diff --git a/packages/api/dist/esm/regen/rpc.query.js b/packages/api/dist/esm/regen/rpc.query.js deleted file mode 100644 index 3264f19b..00000000 --- a/packages/api/dist/esm/regen/rpc.query.js +++ /dev/null @@ -1,71 +0,0 @@ -//@ts-nocheck -import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; -import { QueryClient } from "@cosmjs/stargate"; -export const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await Tendermint34Client.connect(rpcEndpoint); - const client = new QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await import("../cosmos/base/node/v1beta1/query.rpc.Service")).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await import("../cosmos/feegrant/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - gov: { - v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - group: { - v1: (await import("../cosmos/group/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await import("../cosmos/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await import("../cosmos/params/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) - } - }, - regen: { - data: { - v1: (await import("./data/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - ecocredit: { - basket: { - v1: (await import("./ecocredit/basket/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - marketplace: { - v1: (await import("./ecocredit/marketplace/v1/query.rpc.Query")).createRpcQueryExtension(client) - }, - v1: (await import("./ecocredit/v1/query.rpc.Query")).createRpcQueryExtension(client), - v1alpha1: (await import("./ecocredit/v1alpha1/query.rpc.Query")).createRpcQueryExtension(client) - }, - intertx: { - v1: (await import("./intertx/v1/query.rpc.Query")).createRpcQueryExtension(client) - } - } - }; -}; diff --git a/packages/api/dist/esm/regen/rpc.tx.js b/packages/api/dist/esm/regen/rpc.tx.js deleted file mode 100644 index 1f001964..00000000 --- a/packages/api/dist/esm/regen/rpc.tx.js +++ /dev/null @@ -1,50 +0,0 @@ -export const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - gov: { - v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - group: { - v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) - } - }, - regen: { - data: { - v1: new (await import("./data/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - ecocredit: { - basket: { - v1: new (await import("./ecocredit/basket/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - marketplace: { - v1: new (await import("./ecocredit/marketplace/v1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - v1: new (await import("./ecocredit/v1/tx.rpc.msg")).MsgClientImpl(rpc), - v1alpha1: new (await import("./ecocredit/v1alpha1/tx.rpc.msg")).MsgClientImpl(rpc) - }, - intertx: { - v1: new (await import("./intertx/v1/tx.rpc.msg")).MsgClientImpl(rpc) - } - } -}); diff --git a/packages/api/dist/esm/tendermint/abci/types.js b/packages/api/dist/esm/tendermint/abci/types.js deleted file mode 100644 index 84a05096..00000000 --- a/packages/api/dist/esm/tendermint/abci/types.js +++ /dev/null @@ -1,4622 +0,0 @@ -//@ts-nocheck -import { Timestamp } from "../../google/protobuf/timestamp"; -import { ConsensusParams } from "../types/params"; -import { Header } from "../types/types"; -import { ProofOps } from "../crypto/proof"; -import { PublicKey } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../helpers"; -export var CheckTxType; -(function (CheckTxType) { - CheckTxType[CheckTxType["NEW"] = 0] = "NEW"; - CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK"; - CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(CheckTxType || (CheckTxType = {})); -export const CheckTxTypeSDKType = CheckTxType; -export const CheckTxTypeAmino = CheckTxType; -export function checkTxTypeFromJSON(object) { - switch (object) { - case 0: - case "NEW": - return CheckTxType.NEW; - case 1: - case "RECHECK": - return CheckTxType.RECHECK; - case -1: - case "UNRECOGNIZED": - default: - return CheckTxType.UNRECOGNIZED; - } -} -export function checkTxTypeToJSON(object) { - switch (object) { - case CheckTxType.NEW: - return "NEW"; - case CheckTxType.RECHECK: - return "RECHECK"; - case CheckTxType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var ResponseOfferSnapshot_Result; -(function (ResponseOfferSnapshot_Result) { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNKNOWN"] = 0] = "UNKNOWN"; - /** ACCEPT - Snapshot accepted, apply chunks */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ACCEPT"] = 1] = "ACCEPT"; - /** ABORT - Abort all snapshot restoration */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ABORT"] = 2] = "ABORT"; - /** REJECT - Reject this specific snapshot, try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT"] = 3] = "REJECT"; - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_FORMAT"] = 4] = "REJECT_FORMAT"; - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_SENDER"] = 5] = "REJECT_SENDER"; - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseOfferSnapshot_Result || (ResponseOfferSnapshot_Result = {})); -export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; -export const ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; -export function responseOfferSnapshot_ResultFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseOfferSnapshot_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseOfferSnapshot_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseOfferSnapshot_Result.ABORT; - case 3: - case "REJECT": - return ResponseOfferSnapshot_Result.REJECT; - case 4: - case "REJECT_FORMAT": - return ResponseOfferSnapshot_Result.REJECT_FORMAT; - case 5: - case "REJECT_SENDER": - return ResponseOfferSnapshot_Result.REJECT_SENDER; - case -1: - case "UNRECOGNIZED": - default: - return ResponseOfferSnapshot_Result.UNRECOGNIZED; - } -} -export function responseOfferSnapshot_ResultToJSON(object) { - switch (object) { - case ResponseOfferSnapshot_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseOfferSnapshot_Result.ACCEPT: - return "ACCEPT"; - case ResponseOfferSnapshot_Result.ABORT: - return "ABORT"; - case ResponseOfferSnapshot_Result.REJECT: - return "REJECT"; - case ResponseOfferSnapshot_Result.REJECT_FORMAT: - return "REJECT_FORMAT"; - case ResponseOfferSnapshot_Result.REJECT_SENDER: - return "REJECT_SENDER"; - case ResponseOfferSnapshot_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var ResponseApplySnapshotChunk_Result; -(function (ResponseApplySnapshotChunk_Result) { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNKNOWN"] = 0] = "UNKNOWN"; - /** ACCEPT - Chunk successfully accepted */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ACCEPT"] = 1] = "ACCEPT"; - /** ABORT - Abort all snapshot restoration */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ABORT"] = 2] = "ABORT"; - /** RETRY - Retry chunk (combine with refetch and reject) */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY"] = 3] = "RETRY"; - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY_SNAPSHOT"] = 4] = "RETRY_SNAPSHOT"; - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["REJECT_SNAPSHOT"] = 5] = "REJECT_SNAPSHOT"; - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseApplySnapshotChunk_Result || (ResponseApplySnapshotChunk_Result = {})); -export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; -export const ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; -export function responseApplySnapshotChunk_ResultFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseApplySnapshotChunk_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseApplySnapshotChunk_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseApplySnapshotChunk_Result.ABORT; - case 3: - case "RETRY": - return ResponseApplySnapshotChunk_Result.RETRY; - case 4: - case "RETRY_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; - case 5: - case "REJECT_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; - } -} -export function responseApplySnapshotChunk_ResultToJSON(object) { - switch (object) { - case ResponseApplySnapshotChunk_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseApplySnapshotChunk_Result.ACCEPT: - return "ACCEPT"; - case ResponseApplySnapshotChunk_Result.ABORT: - return "ABORT"; - case ResponseApplySnapshotChunk_Result.RETRY: - return "RETRY"; - case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: - return "RETRY_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: - return "REJECT_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var ResponseProcessProposal_ProposalStatus; -(function (ResponseProcessProposal_ProposalStatus) { - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseProcessProposal_ProposalStatus || (ResponseProcessProposal_ProposalStatus = {})); -export const ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; -export const ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; -export function responseProcessProposal_ProposalStatusFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseProcessProposal_ProposalStatus.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseProcessProposal_ProposalStatus.ACCEPT; - case 2: - case "REJECT": - return ResponseProcessProposal_ProposalStatus.REJECT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; - } -} -export function responseProcessProposal_ProposalStatusToJSON(object) { - switch (object) { - case ResponseProcessProposal_ProposalStatus.UNKNOWN: - return "UNKNOWN"; - case ResponseProcessProposal_ProposalStatus.ACCEPT: - return "ACCEPT"; - case ResponseProcessProposal_ProposalStatus.REJECT: - return "REJECT"; - case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -export var MisbehaviorType; -(function (MisbehaviorType) { - MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN"; - MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE"; - MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK"; - MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(MisbehaviorType || (MisbehaviorType = {})); -export const MisbehaviorTypeSDKType = MisbehaviorType; -export const MisbehaviorTypeAmino = MisbehaviorType; -export function misbehaviorTypeFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return MisbehaviorType.UNKNOWN; - case 1: - case "DUPLICATE_VOTE": - return MisbehaviorType.DUPLICATE_VOTE; - case 2: - case "LIGHT_CLIENT_ATTACK": - return MisbehaviorType.LIGHT_CLIENT_ATTACK; - case -1: - case "UNRECOGNIZED": - default: - return MisbehaviorType.UNRECOGNIZED; - } -} -export function misbehaviorTypeToJSON(object) { - switch (object) { - case MisbehaviorType.UNKNOWN: - return "UNKNOWN"; - case MisbehaviorType.DUPLICATE_VOTE: - return "DUPLICATE_VOTE"; - case MisbehaviorType.LIGHT_CLIENT_ATTACK: - return "LIGHT_CLIENT_ATTACK"; - case MisbehaviorType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBaseRequest() { - return { - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -export const Request = { - typeUrl: "/tendermint.abci.Request", - encode(message, writer = BinaryWriter.create()) { - if (message.echo !== undefined) { - RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); - } - if (message.flush !== undefined) { - RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); - } - if (message.info !== undefined) { - RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); - } - if (message.initChain !== undefined) { - RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); - } - if (message.query !== undefined) { - RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); - } - if (message.commit !== undefined) { - RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.echo = RequestEcho.decode(reader, reader.uint32()); - break; - case 2: - message.flush = RequestFlush.decode(reader, reader.uint32()); - break; - case 3: - message.info = RequestInfo.decode(reader, reader.uint32()); - break; - case 5: - message.initChain = RequestInitChain.decode(reader, reader.uint32()); - break; - case 6: - message.query = RequestQuery.decode(reader, reader.uint32()); - break; - case 7: - message.beginBlock = RequestBeginBlock.decode(reader, reader.uint32()); - break; - case 8: - message.checkTx = RequestCheckTx.decode(reader, reader.uint32()); - break; - case 9: - message.deliverTx = RequestDeliverTx.decode(reader, reader.uint32()); - break; - case 10: - message.endBlock = RequestEndBlock.decode(reader, reader.uint32()); - break; - case 11: - message.commit = RequestCommit.decode(reader, reader.uint32()); - break; - case 12: - message.listSnapshots = RequestListSnapshots.decode(reader, reader.uint32()); - break; - case 13: - message.offerSnapshot = RequestOfferSnapshot.decode(reader, reader.uint32()); - break; - case 14: - message.loadSnapshotChunk = RequestLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 15: - message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32()); - break; - case 17: - message.processProposal = RequestProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequest(); - message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? RequestInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? RequestInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? RequestQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? RequestBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? RequestCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? RequestDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? RequestEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? RequestCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? RequestProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRequest(); - if (object.echo !== undefined && object.echo !== null) { - message.echo = RequestEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = RequestFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = RequestInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = RequestInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = RequestQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = RequestBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = RequestCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = RequestDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = RequestEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = RequestCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = RequestListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = RequestOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = RequestPrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = RequestProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.echo = message.echo ? RequestEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? RequestFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? RequestInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? RequestInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? RequestQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? RequestBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? RequestCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? RequestDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? RequestEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? RequestCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? RequestListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? RequestProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Request.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Request.decode(message.value); - }, - toProto(message) { - return Request.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Request", - value: Request.encode(message).finish() - }; - } -}; -function createBaseRequestEcho() { - return { - message: "" - }; -} -export const RequestEcho = { - typeUrl: "/tendermint.abci.RequestEcho", - encode(message, writer = BinaryWriter.create()) { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object) { - return RequestEcho.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestEcho.decode(message.value); - }, - toProto(message) { - return RequestEcho.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestEcho", - value: RequestEcho.encode(message).finish() - }; - } -}; -function createBaseRequestFlush() { - return {}; -} -export const RequestFlush = { - typeUrl: "/tendermint.abci.RequestFlush", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestFlush(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestFlush(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return RequestFlush.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestFlush.decode(message.value); - }, - toProto(message) { - return RequestFlush.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestFlush", - value: RequestFlush.encode(message).finish() - }; - } -}; -function createBaseRequestInfo() { - return { - version: "", - blockVersion: BigInt(0), - p2pVersion: BigInt(0), - abciVersion: "" - }; -} -export const RequestInfo = { - typeUrl: "/tendermint.abci.RequestInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.version !== "") { - writer.uint32(10).string(message.version); - } - if (message.blockVersion !== BigInt(0)) { - writer.uint32(16).uint64(message.blockVersion); - } - if (message.p2pVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.p2pVersion); - } - if (message.abciVersion !== "") { - writer.uint32(34).string(message.abciVersion); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.blockVersion = reader.uint64(); - break; - case 3: - message.p2pVersion = reader.uint64(); - break; - case 4: - message.abciVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestInfo(); - message.version = object.version ?? ""; - message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); - message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); - message.abciVersion = object.abciVersion ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestInfo(); - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.block_version !== undefined && object.block_version !== null) { - message.blockVersion = BigInt(object.block_version); - } - if (object.p2p_version !== undefined && object.p2p_version !== null) { - message.p2pVersion = BigInt(object.p2p_version); - } - if (object.abci_version !== undefined && object.abci_version !== null) { - message.abciVersion = object.abci_version; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.version = message.version === "" ? undefined : message.version; - obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; - obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; - obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; - return obj; - }, - fromAminoMsg(object) { - return RequestInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestInfo.decode(message.value); - }, - toProto(message) { - return RequestInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestInfo", - value: RequestInfo.encode(message).finish() - }; - } -}; -function createBaseRequestInitChain() { - return { - time: new Date(), - chainId: "", - consensusParams: undefined, - validators: [], - appStateBytes: new Uint8Array(), - initialHeight: BigInt(0) - }; -} -export const RequestInitChain = { - typeUrl: "/tendermint.abci.RequestInitChain", - encode(message, writer = BinaryWriter.create()) { - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.consensusParams !== undefined) { - ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - ValidatorUpdate.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.appStateBytes.length !== 0) { - writer.uint32(42).bytes(message.appStateBytes); - } - if (message.initialHeight !== BigInt(0)) { - writer.uint32(48).int64(message.initialHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); - break; - case 4: - message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 5: - message.appStateBytes = reader.bytes(); - break; - case 6: - message.initialHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestInitChain(); - message.time = object.time ?? undefined; - message.chainId = object.chainId ?? ""; - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.appStateBytes = object.appStateBytes ?? new Uint8Array(); - message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseRequestInitChain(); - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { - message.appStateBytes = bytesFromBase64(object.app_state_bytes); - } - if (object.initial_height !== undefined && object.initial_height !== null) { - message.initialHeight = BigInt(object.initial_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.app_state_bytes = message.appStateBytes ? base64FromBytes(message.appStateBytes) : undefined; - obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestInitChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestInitChain.decode(message.value); - }, - toProto(message) { - return RequestInitChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestInitChain", - value: RequestInitChain.encode(message).finish() - }; - } -}; -function createBaseRequestQuery() { - return { - data: new Uint8Array(), - path: "", - height: BigInt(0), - prove: false - }; -} -export const RequestQuery = { - typeUrl: "/tendermint.abci.RequestQuery", - encode(message, writer = BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.prove === true) { - writer.uint32(32).bool(message.prove); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.path = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestQuery(); - message.data = object.data ?? new Uint8Array(); - message.path = object.path ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.prove = object.prove ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseRequestQuery(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.prove !== undefined && object.prove !== null) { - message.prove = object.prove; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.path = message.path === "" ? undefined : message.path; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.prove = message.prove === false ? undefined : message.prove; - return obj; - }, - fromAminoMsg(object) { - return RequestQuery.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestQuery.decode(message.value); - }, - toProto(message) { - return RequestQuery.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestQuery", - value: RequestQuery.encode(message).finish() - }; - } -}; -function createBaseRequestBeginBlock() { - return { - hash: new Uint8Array(), - header: Header.fromPartial({}), - lastCommitInfo: CommitInfo.fromPartial({}), - byzantineValidators: [] - }; -} -export const RequestBeginBlock = { - typeUrl: "/tendermint.abci.RequestBeginBlock", - encode(message, writer = BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(18).fork()).ldelim(); - } - if (message.lastCommitInfo !== undefined) { - CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.byzantineValidators) { - Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.header = Header.decode(reader, reader.uint32()); - break; - case 3: - message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestBeginBlock(); - message.hash = object.hash ?? new Uint8Array(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? CommitInfo.fromPartial(object.lastCommitInfo) : undefined; - message.byzantineValidators = object.byzantineValidators?.map(e => Misbehavior.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRequestBeginBlock(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.last_commit_info !== undefined && object.last_commit_info !== null) { - message.lastCommitInfo = CommitInfo.fromAmino(object.last_commit_info); - } - message.byzantineValidators = object.byzantine_validators?.map(e => Misbehavior.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.last_commit_info = message.lastCommitInfo ? CommitInfo.toAmino(message.lastCommitInfo) : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? Misbehavior.toAmino(e) : undefined); - } - else { - obj.byzantine_validators = message.byzantineValidators; - } - return obj; - }, - fromAminoMsg(object) { - return RequestBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestBeginBlock.decode(message.value); - }, - toProto(message) { - return RequestBeginBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestBeginBlock", - value: RequestBeginBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCheckTx() { - return { - tx: new Uint8Array(), - type: 0 - }; -} -export const RequestCheckTx = { - typeUrl: "/tendermint.abci.RequestCheckTx", - encode(message, writer = BinaryWriter.create()) { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - if (message.type !== 0) { - writer.uint32(16).int32(message.type); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - case 2: - message.type = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestCheckTx(); - message.tx = object.tx ?? new Uint8Array(); - message.type = object.type ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseRequestCheckTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - obj.type = message.type === 0 ? undefined : message.type; - return obj; - }, - fromAminoMsg(object) { - return RequestCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestCheckTx.decode(message.value); - }, - toProto(message) { - return RequestCheckTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestCheckTx", - value: RequestCheckTx.encode(message).finish() - }; - } -}; -function createBaseRequestDeliverTx() { - return { - tx: new Uint8Array() - }; -} -export const RequestDeliverTx = { - typeUrl: "/tendermint.abci.RequestDeliverTx", - encode(message, writer = BinaryWriter.create()) { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestDeliverTx(); - message.tx = object.tx ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestDeliverTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestDeliverTx.decode(message.value); - }, - toProto(message) { - return RequestDeliverTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestDeliverTx", - value: RequestDeliverTx.encode(message).finish() - }; - } -}; -function createBaseRequestEndBlock() { - return { - height: BigInt(0) - }; -} -export const RequestEndBlock = { - typeUrl: "/tendermint.abci.RequestEndBlock", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestEndBlock(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseRequestEndBlock(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestEndBlock.decode(message.value); - }, - toProto(message) { - return RequestEndBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestEndBlock", - value: RequestEndBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCommit() { - return {}; -} -export const RequestCommit = { - typeUrl: "/tendermint.abci.RequestCommit", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestCommit(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestCommit(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return RequestCommit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestCommit.decode(message.value); - }, - toProto(message) { - return RequestCommit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestCommit", - value: RequestCommit.encode(message).finish() - }; - } -}; -function createBaseRequestListSnapshots() { - return {}; -} -export const RequestListSnapshots = { - typeUrl: "/tendermint.abci.RequestListSnapshots", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestListSnapshots(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestListSnapshots(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return RequestListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestListSnapshots.decode(message.value); - }, - toProto(message) { - return RequestListSnapshots.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestListSnapshots", - value: RequestListSnapshots.encode(message).finish() - }; - } -}; -function createBaseRequestOfferSnapshot() { - return { - snapshot: undefined, - appHash: new Uint8Array() - }; -} -export const RequestOfferSnapshot = { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - encode(message, writer = BinaryWriter.create()) { - if (message.snapshot !== undefined) { - Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(18).bytes(message.appHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshot = Snapshot.decode(reader, reader.uint32()); - break; - case 2: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestOfferSnapshot(); - message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestOfferSnapshot(); - if (object.snapshot !== undefined && object.snapshot !== null) { - message.snapshot = Snapshot.fromAmino(object.snapshot); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.snapshot = message.snapshot ? Snapshot.toAmino(message.snapshot) : undefined; - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestOfferSnapshot.decode(message.value); - }, - toProto(message) { - return RequestOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - value: RequestOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseRequestLoadSnapshotChunk() { - return { - height: BigInt(0), - format: 0, - chunk: 0 - }; -} -export const RequestLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunk !== 0) { - writer.uint32(24).uint32(message.chunk); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunk = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestLoadSnapshotChunk(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunk = object.chunk ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseRequestLoadSnapshotChunk(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = object.chunk; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunk = message.chunk === 0 ? undefined : message.chunk; - return obj; - }, - fromAminoMsg(object) { - return RequestLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestLoadSnapshotChunk.decode(message.value); - }, - toProto(message) { - return RequestLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - value: RequestLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestApplySnapshotChunk() { - return { - index: 0, - chunk: new Uint8Array(), - sender: "" - }; -} -export const RequestApplySnapshotChunk = { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - encode(message, writer = BinaryWriter.create()) { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.chunk.length !== 0) { - writer.uint32(18).bytes(message.chunk); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.chunk = reader.bytes(); - break; - case 3: - message.sender = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestApplySnapshotChunk(); - message.index = object.index ?? 0; - message.chunk = object.chunk ?? new Uint8Array(); - message.sender = object.sender ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestApplySnapshotChunk(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = bytesFromBase64(object.chunk); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - return obj; - }, - fromAminoMsg(object) { - return RequestApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestApplySnapshotChunk.decode(message.value); - }, - toProto(message) { - return RequestApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - value: RequestApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestPrepareProposal() { - return { - maxTxBytes: BigInt(0), - txs: [], - localLastCommit: ExtendedCommitInfo.fromPartial({}), - misbehavior: [], - height: BigInt(0), - time: new Date(), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const RequestPrepareProposal = { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.maxTxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxTxBytes); - } - for (const v of message.txs) { - writer.uint32(18).bytes(v); - } - if (message.localLastCommit !== undefined) { - ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.misbehavior) { - Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestPrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTxBytes = reader.int64(); - break; - case 2: - message.txs.push(reader.bytes()); - break; - case 3: - message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestPrepareProposal(); - message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); - message.txs = object.txs?.map(e => e) || []; - message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestPrepareProposal(); - if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { - message.maxTxBytes = BigInt(object.max_tx_bytes); - } - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - if (object.local_last_commit !== undefined && object.local_last_commit !== null) { - message.localLastCommit = ExtendedCommitInfo.fromAmino(object.local_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } - else { - obj.txs = message.txs; - } - obj.local_last_commit = message.localLastCommit ? ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); - } - else { - obj.misbehavior = message.misbehavior; - } - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestPrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestPrepareProposal.decode(message.value); - }, - toProto(message) { - return RequestPrepareProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - value: RequestPrepareProposal.encode(message).finish() - }; - } -}; -function createBaseRequestProcessProposal() { - return { - txs: [], - proposedLastCommit: CommitInfo.fromPartial({}), - misbehavior: [], - hash: new Uint8Array(), - height: BigInt(0), - time: new Date(), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const RequestProcessProposal = { - typeUrl: "/tendermint.abci.RequestProcessProposal", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - if (message.proposedLastCommit !== undefined) { - CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.misbehavior) { - Misbehavior.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - case 2: - message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32()); - break; - case 3: - message.misbehavior.push(Misbehavior.decode(reader, reader.uint32())); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => e) || []; - message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? CommitInfo.fromPartial(object.proposedLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromPartial(e)) || []; - message.hash = object.hash ?? new Uint8Array(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { - message.proposedLastCommit = CommitInfo.fromAmino(object.proposed_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => Misbehavior.fromAmino(e)) || []; - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } - else { - obj.txs = message.txs; - } - obj.proposed_last_commit = message.proposedLastCommit ? CommitInfo.toAmino(message.proposedLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? Misbehavior.toAmino(e) : undefined); - } - else { - obj.misbehavior = message.misbehavior; - } - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return RequestProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return RequestProcessProposal.decode(message.value); - }, - toProto(message) { - return RequestProcessProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestProcessProposal", - value: RequestProcessProposal.encode(message).finish() - }; - } -}; -function createBaseResponse() { - return { - exception: undefined, - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -export const Response = { - typeUrl: "/tendermint.abci.Response", - encode(message, writer = BinaryWriter.create()) { - if (message.exception !== undefined) { - ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); - } - if (message.echo !== undefined) { - ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); - } - if (message.flush !== undefined) { - ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); - } - if (message.info !== undefined) { - ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); - } - if (message.initChain !== undefined) { - ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); - } - if (message.query !== undefined) { - ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); - } - if (message.commit !== undefined) { - ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exception = ResponseException.decode(reader, reader.uint32()); - break; - case 2: - message.echo = ResponseEcho.decode(reader, reader.uint32()); - break; - case 3: - message.flush = ResponseFlush.decode(reader, reader.uint32()); - break; - case 4: - message.info = ResponseInfo.decode(reader, reader.uint32()); - break; - case 6: - message.initChain = ResponseInitChain.decode(reader, reader.uint32()); - break; - case 7: - message.query = ResponseQuery.decode(reader, reader.uint32()); - break; - case 8: - message.beginBlock = ResponseBeginBlock.decode(reader, reader.uint32()); - break; - case 9: - message.checkTx = ResponseCheckTx.decode(reader, reader.uint32()); - break; - case 10: - message.deliverTx = ResponseDeliverTx.decode(reader, reader.uint32()); - break; - case 11: - message.endBlock = ResponseEndBlock.decode(reader, reader.uint32()); - break; - case 12: - message.commit = ResponseCommit.decode(reader, reader.uint32()); - break; - case 13: - message.listSnapshots = ResponseListSnapshots.decode(reader, reader.uint32()); - break; - case 14: - message.offerSnapshot = ResponseOfferSnapshot.decode(reader, reader.uint32()); - break; - case 15: - message.loadSnapshotChunk = ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 17: - message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32()); - break; - case 18: - message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponse(); - message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined; - message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? ResponseFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? ResponseInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? ResponseInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? ResponseQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? ResponseCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? ResponseEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? ResponseCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? ResponseProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseResponse(); - if (object.exception !== undefined && object.exception !== null) { - message.exception = ResponseException.fromAmino(object.exception); - } - if (object.echo !== undefined && object.echo !== null) { - message.echo = ResponseEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = ResponseFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = ResponseInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = ResponseInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = ResponseQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = ResponseBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = ResponseCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = ResponseDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = ResponseEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = ResponseCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = ResponseListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = ResponseOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = ResponsePrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = ResponseProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.exception = message.exception ? ResponseException.toAmino(message.exception) : undefined; - obj.echo = message.echo ? ResponseEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? ResponseFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? ResponseInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? ResponseInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? ResponseQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? ResponseBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? ResponseCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? ResponseDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? ResponseEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? ResponseCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? ResponseProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Response.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Response.decode(message.value); - }, - toProto(message) { - return Response.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Response", - value: Response.encode(message).finish() - }; - } -}; -function createBaseResponseException() { - return { - error: "" - }; -} -export const ResponseException = { - typeUrl: "/tendermint.abci.ResponseException", - encode(message, writer = BinaryWriter.create()) { - if (message.error !== "") { - writer.uint32(10).string(message.error); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseException(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseException(); - message.error = object.error ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseException(); - if (object.error !== undefined && object.error !== null) { - message.error = object.error; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.error = message.error === "" ? undefined : message.error; - return obj; - }, - fromAminoMsg(object) { - return ResponseException.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseException.decode(message.value); - }, - toProto(message) { - return ResponseException.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseException", - value: ResponseException.encode(message).finish() - }; - } -}; -function createBaseResponseEcho() { - return { - message: "" - }; -} -export const ResponseEcho = { - typeUrl: "/tendermint.abci.ResponseEcho", - encode(message, writer = BinaryWriter.create()) { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object) { - return ResponseEcho.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseEcho.decode(message.value); - }, - toProto(message) { - return ResponseEcho.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseEcho", - value: ResponseEcho.encode(message).finish() - }; - } -}; -function createBaseResponseFlush() { - return {}; -} -export const ResponseFlush = { - typeUrl: "/tendermint.abci.ResponseFlush", - encode(_, writer = BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseResponseFlush(); - return message; - }, - fromAmino(_) { - const message = createBaseResponseFlush(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return ResponseFlush.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseFlush.decode(message.value); - }, - toProto(message) { - return ResponseFlush.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseFlush", - value: ResponseFlush.encode(message).finish() - }; - } -}; -function createBaseResponseInfo() { - return { - data: "", - version: "", - appVersion: BigInt(0), - lastBlockHeight: BigInt(0), - lastBlockAppHash: new Uint8Array() - }; -} -export const ResponseInfo = { - typeUrl: "/tendermint.abci.ResponseInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.data !== "") { - writer.uint32(10).string(message.data); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - if (message.appVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.appVersion); - } - if (message.lastBlockHeight !== BigInt(0)) { - writer.uint32(32).int64(message.lastBlockHeight); - } - if (message.lastBlockAppHash.length !== 0) { - writer.uint32(42).bytes(message.lastBlockAppHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.appVersion = reader.uint64(); - break; - case 4: - message.lastBlockHeight = reader.int64(); - break; - case 5: - message.lastBlockAppHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseInfo(); - message.data = object.data ?? ""; - message.version = object.version ?? ""; - message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); - message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); - message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseInfo(); - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.app_version !== undefined && object.app_version !== null) { - message.appVersion = BigInt(object.app_version); - } - if (object.last_block_height !== undefined && object.last_block_height !== null) { - message.lastBlockHeight = BigInt(object.last_block_height); - } - if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { - message.lastBlockAppHash = bytesFromBase64(object.last_block_app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data === "" ? undefined : message.data; - obj.version = message.version === "" ? undefined : message.version; - obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; - obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; - obj.last_block_app_hash = message.lastBlockAppHash ? base64FromBytes(message.lastBlockAppHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ResponseInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseInfo.decode(message.value); - }, - toProto(message) { - return ResponseInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseInfo", - value: ResponseInfo.encode(message).finish() - }; - } -}; -function createBaseResponseInitChain() { - return { - consensusParams: undefined, - validators: [], - appHash: new Uint8Array() - }; -} -export const ResponseInitChain = { - typeUrl: "/tendermint.abci.ResponseInitChain", - encode(message, writer = BinaryWriter.create()) { - if (message.consensusParams !== undefined) { - ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.validators) { - ValidatorUpdate.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(26).bytes(message.appHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusParams = ConsensusParams.decode(reader, reader.uint32()); - break; - case 2: - message.validators.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 3: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseInitChain(); - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseInitChain(); - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ResponseInitChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseInitChain.decode(message.value); - }, - toProto(message) { - return ResponseInitChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseInitChain", - value: ResponseInitChain.encode(message).finish() - }; - } -}; -function createBaseResponseQuery() { - return { - code: 0, - log: "", - info: "", - index: BigInt(0), - key: new Uint8Array(), - value: new Uint8Array(), - proofOps: undefined, - height: BigInt(0), - codespace: "" - }; -} -export const ResponseQuery = { - typeUrl: "/tendermint.abci.ResponseQuery", - encode(message, writer = BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.index !== BigInt(0)) { - writer.uint32(40).int64(message.index); - } - if (message.key.length !== 0) { - writer.uint32(50).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(58).bytes(message.value); - } - if (message.proofOps !== undefined) { - ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(72).int64(message.height); - } - if (message.codespace !== "") { - writer.uint32(82).string(message.codespace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.index = reader.int64(); - break; - case 6: - message.key = reader.bytes(); - break; - case 7: - message.value = reader.bytes(); - break; - case 8: - message.proofOps = ProofOps.decode(reader, reader.uint32()); - break; - case 9: - message.height = reader.int64(); - break; - case 10: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseQuery(); - message.code = object.code ?? 0; - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseQuery(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = bytesFromBase64(object.value); - } - if (object.proof_ops !== undefined && object.proof_ops !== null) { - message.proofOps = ProofOps.fromAmino(object.proof_ops); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.value = message.value ? base64FromBytes(message.value) : undefined; - obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object) { - return ResponseQuery.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseQuery.decode(message.value); - }, - toProto(message) { - return ResponseQuery.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseQuery", - value: ResponseQuery.encode(message).finish() - }; - } -}; -function createBaseResponseBeginBlock() { - return { - events: [] - }; -} -export const ResponseBeginBlock = { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.events) { - Event.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return ResponseBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseBeginBlock.decode(message.value); - }, - toProto(message) { - return ResponseBeginBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - value: ResponseBeginBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCheckTx() { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "", - sender: "", - priority: BigInt(0), - mempoolError: "" - }; -} -export const ResponseCheckTx = { - typeUrl: "/tendermint.abci.ResponseCheckTx", - encode(message, writer = BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - Event.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - if (message.sender !== "") { - writer.uint32(74).string(message.sender); - } - if (message.priority !== BigInt(0)) { - writer.uint32(80).int64(message.priority); - } - if (message.mempoolError !== "") { - writer.uint32(90).string(message.mempoolError); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - case 9: - message.sender = reader.string(); - break; - case 10: - message.priority = reader.int64(); - break; - case 11: - message.mempoolError = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseCheckTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - message.sender = object.sender ?? ""; - message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); - message.mempoolError = object.mempoolError ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseCheckTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.priority !== undefined && object.priority !== null) { - message.priority = BigInt(object.priority); - } - if (object.mempool_error !== undefined && object.mempool_error !== null) { - message.mempoolError = object.mempool_error; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; - obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; - return obj; - }, - fromAminoMsg(object) { - return ResponseCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseCheckTx.decode(message.value); - }, - toProto(message) { - return ResponseCheckTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseCheckTx", - value: ResponseCheckTx.encode(message).finish() - }; - } -}; -function createBaseResponseDeliverTx() { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "" - }; -} -export const ResponseDeliverTx = { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - encode(message, writer = BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - Event.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseDeliverTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseDeliverTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object) { - return ResponseDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseDeliverTx.decode(message.value); - }, - toProto(message) { - return ResponseDeliverTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - value: ResponseDeliverTx.encode(message).finish() - }; - } -}; -function createBaseResponseEndBlock() { - return { - validatorUpdates: [], - consensusParamUpdates: undefined, - events: [] - }; -} -export const ResponseEndBlock = { - typeUrl: "/tendermint.abci.ResponseEndBlock", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validatorUpdates) { - ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusParamUpdates !== undefined) { - ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.events) { - Event.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorUpdates.push(ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 2: - message.consensusParamUpdates = ConsensusParams.decode(reader, reader.uint32()); - break; - case 3: - message.events.push(Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || []; - message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; - message.events = object.events?.map(e => Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validator_updates?.map(e => ValidatorUpdate.fromAmino(e)) || []; - if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { - message.consensusParamUpdates = ConsensusParams.fromAmino(object.consensus_param_updates); - } - message.events = object.events?.map(e => Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validatorUpdates) { - obj.validator_updates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validator_updates = message.validatorUpdates; - } - obj.consensus_param_updates = message.consensusParamUpdates ? ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return ResponseEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseEndBlock.decode(message.value); - }, - toProto(message) { - return ResponseEndBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseEndBlock", - value: ResponseEndBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCommit() { - return { - data: new Uint8Array(), - retainHeight: BigInt(0) - }; -} -export const ResponseCommit = { - typeUrl: "/tendermint.abci.ResponseCommit", - encode(message, writer = BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.retainHeight !== BigInt(0)) { - writer.uint32(24).int64(message.retainHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.data = reader.bytes(); - break; - case 3: - message.retainHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseCommit(); - message.data = object.data ?? new Uint8Array(); - message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseResponseCommit(); - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.retain_height !== undefined && object.retain_height !== null) { - message.retainHeight = BigInt(object.retain_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ResponseCommit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseCommit.decode(message.value); - }, - toProto(message) { - return ResponseCommit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseCommit", - value: ResponseCommit.encode(message).finish() - }; - } -}; -function createBaseResponseListSnapshots() { - return { - snapshots: [] - }; -} -export const ResponseListSnapshots = { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.snapshots) { - Snapshot.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshots.push(Snapshot.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => Snapshot.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.snapshots) { - obj.snapshots = message.snapshots.map(e => e ? Snapshot.toAmino(e) : undefined); - } - else { - obj.snapshots = message.snapshots; - } - return obj; - }, - fromAminoMsg(object) { - return ResponseListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseListSnapshots.decode(message.value); - }, - toProto(message) { - return ResponseListSnapshots.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - value: ResponseListSnapshots.encode(message).finish() - }; - } -}; -function createBaseResponseOfferSnapshot() { - return { - result: 0 - }; -} -export const ResponseOfferSnapshot = { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - encode(message, writer = BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseOfferSnapshot(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseResponseOfferSnapshot(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object) { - return ResponseOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseOfferSnapshot.decode(message.value); - }, - toProto(message) { - return ResponseOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - value: ResponseOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseResponseLoadSnapshotChunk() { - return { - chunk: new Uint8Array() - }; -} -export const ResponseLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - encode(message, writer = BinaryWriter.create()) { - if (message.chunk.length !== 0) { - writer.uint32(10).bytes(message.chunk); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chunk = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseLoadSnapshotChunk(); - message.chunk = object.chunk ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseLoadSnapshotChunk(); - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = bytesFromBase64(object.chunk); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ResponseLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseLoadSnapshotChunk.decode(message.value); - }, - toProto(message) { - return ResponseLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - value: ResponseLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponseApplySnapshotChunk() { - return { - result: 0, - refetchChunks: [], - rejectSenders: [] - }; -} -export const ResponseApplySnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - encode(message, writer = BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - writer.uint32(18).fork(); - for (const v of message.refetchChunks) { - writer.uint32(v); - } - writer.ldelim(); - for (const v of message.rejectSenders) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.refetchChunks.push(reader.uint32()); - } - } - else { - message.refetchChunks.push(reader.uint32()); - } - break; - case 3: - message.rejectSenders.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseApplySnapshotChunk(); - message.result = object.result ?? 0; - message.refetchChunks = object.refetchChunks?.map(e => e) || []; - message.rejectSenders = object.rejectSenders?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseApplySnapshotChunk(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - message.refetchChunks = object.refetch_chunks?.map(e => e) || []; - message.rejectSenders = object.reject_senders?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - if (message.refetchChunks) { - obj.refetch_chunks = message.refetchChunks.map(e => e); - } - else { - obj.refetch_chunks = message.refetchChunks; - } - if (message.rejectSenders) { - obj.reject_senders = message.rejectSenders.map(e => e); - } - else { - obj.reject_senders = message.rejectSenders; - } - return obj; - }, - fromAminoMsg(object) { - return ResponseApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseApplySnapshotChunk.decode(message.value); - }, - toProto(message) { - return ResponseApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - value: ResponseApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponsePrepareProposal() { - return { - txs: [] - }; -} -export const ResponsePrepareProposal = { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponsePrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return ResponsePrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponsePrepareProposal.decode(message.value); - }, - toProto(message) { - return ResponsePrepareProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - value: ResponsePrepareProposal.encode(message).finish() - }; - } -}; -function createBaseResponseProcessProposal() { - return { - status: 0 - }; -} -export const ResponseProcessProposal = { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - encode(message, writer = BinaryWriter.create()) { - if (message.status !== 0) { - writer.uint32(8).int32(message.status); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseProcessProposal(); - message.status = object.status ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseResponseProcessProposal(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === 0 ? undefined : message.status; - return obj; - }, - fromAminoMsg(object) { - return ResponseProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ResponseProcessProposal.decode(message.value); - }, - toProto(message) { - return ResponseProcessProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - value: ResponseProcessProposal.encode(message).finish() - }; - } -}; -function createBaseCommitInfo() { - return { - round: 0, - votes: [] - }; -} -export const CommitInfo = { - typeUrl: "/tendermint.abci.CommitInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - VoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(VoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => VoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? VoteInfo.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return CommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CommitInfo.decode(message.value); - }, - toProto(message) { - return CommitInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.CommitInfo", - value: CommitInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedCommitInfo() { - return { - round: 0, - votes: [] - }; -} -export const ExtendedCommitInfo = { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - ExtendedVoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtendedCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => ExtendedVoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseExtendedCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => ExtendedVoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? ExtendedVoteInfo.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return ExtendedCommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ExtendedCommitInfo.decode(message.value); - }, - toProto(message) { - return ExtendedCommitInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - value: ExtendedCommitInfo.encode(message).finish() - }; - } -}; -function createBaseEvent() { - return { - type: "", - attributes: [] - }; -} -export const Event = { - typeUrl: "/tendermint.abci.Event", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - EventAttribute.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(EventAttribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => EventAttribute.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? EventAttribute.toAmino(e) : undefined); - } - else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object) { - return Event.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Event.decode(message.value); - }, - toProto(message) { - return Event.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Event", - value: Event.encode(message).finish() - }; - } -}; -function createBaseEventAttribute() { - return { - key: "", - value: "", - index: false - }; -} -export const EventAttribute = { - typeUrl: "/tendermint.abci.EventAttribute", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - if (message.index === true) { - writer.uint32(24).bool(message.index); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.index = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - message.index = object.index ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseEventAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - obj.index = message.index === false ? undefined : message.index; - return obj; - }, - fromAminoMsg(object) { - return EventAttribute.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EventAttribute.decode(message.value); - }, - toProto(message) { - return EventAttribute.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.EventAttribute", - value: EventAttribute.encode(message).finish() - }; - } -}; -function createBaseTxResult() { - return { - height: BigInt(0), - index: 0, - tx: new Uint8Array(), - result: ResponseDeliverTx.fromPartial({}) - }; -} -export const TxResult = { - typeUrl: "/tendermint.abci.TxResult", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.index !== 0) { - writer.uint32(16).uint32(message.index); - } - if (message.tx.length !== 0) { - writer.uint32(26).bytes(message.tx); - } - if (message.result !== undefined) { - ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.index = reader.uint32(); - break; - case 3: - message.tx = reader.bytes(); - break; - case 4: - message.result = ResponseDeliverTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxResult(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.index = object.index ?? 0; - message.tx = object.tx ?? new Uint8Array(); - message.result = object.result !== undefined && object.result !== null ? ResponseDeliverTx.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseTxResult(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = bytesFromBase64(object.tx); - } - if (object.result !== undefined && object.result !== null) { - message.result = ResponseDeliverTx.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.index = message.index === 0 ? undefined : message.index; - obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - obj.result = message.result ? ResponseDeliverTx.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return TxResult.fromAmino(object.value); - }, - fromProtoMsg(message) { - return TxResult.decode(message.value); - }, - toProto(message) { - return TxResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.TxResult", - value: TxResult.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - address: new Uint8Array(), - power: BigInt(0) - }; -} -export const Validator = { - typeUrl: "/tendermint.abci.Validator", - encode(message, writer = BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(24).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 3: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Validator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Validator.decode(message.value); - }, - toProto(message) { - return Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseValidatorUpdate() { - return { - pubKey: PublicKey.fromPartial({}), - power: BigInt(0) - }; -} -export const ValidatorUpdate = { - typeUrl: "/tendermint.abci.ValidatorUpdate", - encode(message, writer = BinaryWriter.create()) { - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorUpdate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorUpdate(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorUpdate(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorUpdate.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ValidatorUpdate.decode(message.value); - }, - toProto(message) { - return ValidatorUpdate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ValidatorUpdate", - value: ValidatorUpdate.encode(message).finish() - }; - } -}; -function createBaseVoteInfo() { - return { - validator: Validator.fromPartial({}), - signedLastBlock: false - }; -} -export const VoteInfo = { - typeUrl: "/tendermint.abci.VoteInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - return obj; - }, - fromAminoMsg(object) { - return VoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return VoteInfo.decode(message.value); - }, - toProto(message) { - return VoteInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.VoteInfo", - value: VoteInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedVoteInfo() { - return { - validator: Validator.fromPartial({}), - signedLastBlock: false, - voteExtension: new Uint8Array() - }; -} -export const ExtendedVoteInfo = { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - if (message.voteExtension.length !== 0) { - writer.uint32(26).bytes(message.voteExtension); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - case 3: - message.voteExtension = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtendedVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - message.voteExtension = object.voteExtension ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseExtendedVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - if (object.vote_extension !== undefined && object.vote_extension !== null) { - message.voteExtension = bytesFromBase64(object.vote_extension); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - obj.vote_extension = message.voteExtension ? base64FromBytes(message.voteExtension) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ExtendedVoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ExtendedVoteInfo.decode(message.value); - }, - toProto(message) { - return ExtendedVoteInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - value: ExtendedVoteInfo.encode(message).finish() - }; - } -}; -function createBaseMisbehavior() { - return { - type: 0, - validator: Validator.fromPartial({}), - height: BigInt(0), - time: new Date(), - totalVotingPower: BigInt(0) - }; -} -export const Misbehavior = { - typeUrl: "/tendermint.abci.Misbehavior", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.validator !== undefined) { - Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(40).int64(message.totalVotingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMisbehavior(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.validator = Validator.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMisbehavior(); - message.type = object.type ?? 0; - message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMisbehavior(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = Validator.fromAmino(object.validator); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Misbehavior.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Misbehavior.decode(message.value); - }, - toProto(message) { - return Misbehavior.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Misbehavior", - value: Misbehavior.encode(message).finish() - }; - } -}; -function createBaseSnapshot() { - return { - height: BigInt(0), - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: new Uint8Array() - }; -} -export const Snapshot = { - typeUrl: "/tendermint.abci.Snapshot", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunks !== 0) { - writer.uint32(24).uint32(message.chunks); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunks = reader.uint32(); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSnapshot(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunks = object.chunks ?? 0; - message.hash = object.hash ?? new Uint8Array(); - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSnapshot(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunks !== undefined && object.chunks !== null) { - message.chunks = object.chunks; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = bytesFromBase64(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunks = message.chunks === 0 ? undefined : message.chunks; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Snapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Snapshot.decode(message.value); - }, - toProto(message) { - return Snapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Snapshot", - value: Snapshot.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/bundle.js b/packages/api/dist/esm/tendermint/bundle.js deleted file mode 100644 index 946f5e54..00000000 --- a/packages/api/dist/esm/tendermint/bundle.js +++ /dev/null @@ -1,41 +0,0 @@ -//@ts-nocheck -import * as _104 from "./abci/types"; -import * as _105 from "./crypto/keys"; -import * as _106 from "./crypto/proof"; -import * as _107 from "./libs/bits/types"; -import * as _108 from "./p2p/types"; -import * as _109 from "./types/block"; -import * as _110 from "./types/evidence"; -import * as _111 from "./types/params"; -import * as _112 from "./types/types"; -import * as _113 from "./types/validator"; -import * as _114 from "./version/types"; -export var tendermint; -(function (tendermint) { - tendermint.abci = { - ..._104 - }; - tendermint.crypto = { - ..._105, - ..._106 - }; - let libs; - (function (libs) { - libs.bits = { - ..._107 - }; - })(libs = tendermint.libs || (tendermint.libs = {})); - tendermint.p2p = { - ..._108 - }; - tendermint.types = { - ..._109, - ..._110, - ..._111, - ..._112, - ..._113 - }; - tendermint.version = { - ..._114 - }; -})(tendermint || (tendermint = {})); diff --git a/packages/api/dist/esm/tendermint/crypto/keys.js b/packages/api/dist/esm/tendermint/crypto/keys.js deleted file mode 100644 index 14bd6b05..00000000 --- a/packages/api/dist/esm/tendermint/crypto/keys.js +++ /dev/null @@ -1,78 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../helpers"; -function createBasePublicKey() { - return { - ed25519: undefined, - secp256k1: undefined - }; -} -export const PublicKey = { - typeUrl: "/tendermint.crypto.PublicKey", - encode(message, writer = BinaryWriter.create()) { - if (message.ed25519 !== undefined) { - writer.uint32(10).bytes(message.ed25519); - } - if (message.secp256k1 !== undefined) { - writer.uint32(18).bytes(message.secp256k1); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePublicKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ed25519 = reader.bytes(); - break; - case 2: - message.secp256k1 = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePublicKey(); - message.ed25519 = object.ed25519 ?? undefined; - message.secp256k1 = object.secp256k1 ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBasePublicKey(); - if (object.ed25519 !== undefined && object.ed25519 !== null) { - message.ed25519 = bytesFromBase64(object.ed25519); - } - if (object.secp256k1 !== undefined && object.secp256k1 !== null) { - message.secp256k1 = bytesFromBase64(object.secp256k1); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.ed25519 = message.ed25519 ? base64FromBytes(message.ed25519) : undefined; - obj.secp256k1 = message.secp256k1 ? base64FromBytes(message.secp256k1) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PublicKey.fromAmino(object.value); - }, - fromProtoMsg(message) { - return PublicKey.decode(message.value); - }, - toProto(message) { - return PublicKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.PublicKey", - value: PublicKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/crypto/proof.js b/packages/api/dist/esm/tendermint/crypto/proof.js deleted file mode 100644 index 9ad154c7..00000000 --- a/packages/api/dist/esm/tendermint/crypto/proof.js +++ /dev/null @@ -1,420 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../helpers"; -function createBaseProof() { - return { - total: BigInt(0), - index: BigInt(0), - leafHash: new Uint8Array(), - aunts: [] - }; -} -export const Proof = { - typeUrl: "/tendermint.crypto.Proof", - encode(message, writer = BinaryWriter.create()) { - if (message.total !== BigInt(0)) { - writer.uint32(8).int64(message.total); - } - if (message.index !== BigInt(0)) { - writer.uint32(16).int64(message.index); - } - if (message.leafHash.length !== 0) { - writer.uint32(26).bytes(message.leafHash); - } - for (const v of message.aunts) { - writer.uint32(34).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.int64(); - break; - case 2: - message.index = reader.int64(); - break; - case 3: - message.leafHash = reader.bytes(); - break; - case 4: - message.aunts.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProof(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.leafHash = object.leafHash ?? new Uint8Array(); - message.aunts = object.aunts?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProof(); - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.leaf_hash !== undefined && object.leaf_hash !== null) { - message.leafHash = bytesFromBase64(object.leaf_hash); - } - message.aunts = object.aunts?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined; - if (message.aunts) { - obj.aunts = message.aunts.map(e => base64FromBytes(e)); - } - else { - obj.aunts = message.aunts; - } - return obj; - }, - fromAminoMsg(object) { - return Proof.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Proof.decode(message.value); - }, - toProto(message) { - return Proof.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.Proof", - value: Proof.encode(message).finish() - }; - } -}; -function createBaseValueOp() { - return { - key: new Uint8Array(), - proof: undefined - }; -} -export const ValueOp = { - typeUrl: "/tendermint.crypto.ValueOp", - encode(message, writer = BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValueOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValueOp(); - message.key = object.key ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValueOp(); - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValueOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ValueOp.decode(message.value); - }, - toProto(message) { - return ValueOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ValueOp", - value: ValueOp.encode(message).finish() - }; - } -}; -function createBaseDominoOp() { - return { - key: "", - input: "", - output: "" - }; -} -export const DominoOp = { - typeUrl: "/tendermint.crypto.DominoOp", - encode(message, writer = BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.input !== "") { - writer.uint32(18).string(message.input); - } - if (message.output !== "") { - writer.uint32(26).string(message.output); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDominoOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.input = reader.string(); - break; - case 3: - message.output = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDominoOp(); - message.key = object.key ?? ""; - message.input = object.input ?? ""; - message.output = object.output ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDominoOp(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.input !== undefined && object.input !== null) { - message.input = object.input; - } - if (object.output !== undefined && object.output !== null) { - message.output = object.output; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.input = message.input === "" ? undefined : message.input; - obj.output = message.output === "" ? undefined : message.output; - return obj; - }, - fromAminoMsg(object) { - return DominoOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DominoOp.decode(message.value); - }, - toProto(message) { - return DominoOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.DominoOp", - value: DominoOp.encode(message).finish() - }; - } -}; -function createBaseProofOp() { - return { - type: "", - key: new Uint8Array(), - data: new Uint8Array() - }; -} -export const ProofOp = { - typeUrl: "/tendermint.crypto.ProofOp", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - if (message.key.length !== 0) { - writer.uint32(18).bytes(message.key); - } - if (message.data.length !== 0) { - writer.uint32(26).bytes(message.data); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; - case 3: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProofOp(); - message.type = object.type ?? ""; - message.key = object.key ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseProofOp(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.key !== undefined && object.key !== null) { - message.key = bytesFromBase64(object.key); - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ProofOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ProofOp.decode(message.value); - }, - toProto(message) { - return ProofOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ProofOp", - value: ProofOp.encode(message).finish() - }; - } -}; -function createBaseProofOps() { - return { - ops: [] - }; -} -export const ProofOps = { - typeUrl: "/tendermint.crypto.ProofOps", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.ops) { - ProofOp.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOps(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ops.push(ProofOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); - } - else { - obj.ops = message.ops; - } - return obj; - }, - fromAminoMsg(object) { - return ProofOps.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ProofOps.decode(message.value); - }, - toProto(message) { - return ProofOps.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ProofOps", - value: ProofOps.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/libs/bits/types.js b/packages/api/dist/esm/tendermint/libs/bits/types.js deleted file mode 100644 index efc3b5f1..00000000 --- a/packages/api/dist/esm/tendermint/libs/bits/types.js +++ /dev/null @@ -1,90 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../../binary"; -function createBaseBitArray() { - return { - bits: BigInt(0), - elems: [] - }; -} -export const BitArray = { - typeUrl: "/tendermint.libs.bits.BitArray", - encode(message, writer = BinaryWriter.create()) { - if (message.bits !== BigInt(0)) { - writer.uint32(8).int64(message.bits); - } - writer.uint32(18).fork(); - for (const v of message.elems) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bits = reader.int64(); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.elems.push(reader.uint64()); - } - } - else { - message.elems.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBitArray(); - message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); - message.elems = object.elems?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object) { - const message = createBaseBitArray(); - if (object.bits !== undefined && object.bits !== null) { - message.bits = BigInt(object.bits); - } - message.elems = object.elems?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; - if (message.elems) { - obj.elems = message.elems.map(e => e.toString()); - } - else { - obj.elems = message.elems; - } - return obj; - }, - fromAminoMsg(object) { - return BitArray.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BitArray.decode(message.value); - }, - toProto(message) { - return BitArray.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.libs.bits.BitArray", - value: BitArray.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/p2p/types.js b/packages/api/dist/esm/tendermint/p2p/types.js deleted file mode 100644 index efae0d92..00000000 --- a/packages/api/dist/esm/tendermint/p2p/types.js +++ /dev/null @@ -1,399 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../helpers"; -function createBaseNetAddress() { - return { - id: "", - ip: "", - port: 0 - }; -} -export const NetAddress = { - typeUrl: "/tendermint.p2p.NetAddress", - encode(message, writer = BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.ip !== "") { - writer.uint32(18).string(message.ip); - } - if (message.port !== 0) { - writer.uint32(24).uint32(message.port); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseNetAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.ip = reader.string(); - break; - case 3: - message.port = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseNetAddress(); - message.id = object.id ?? ""; - message.ip = object.ip ?? ""; - message.port = object.port ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseNetAddress(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.ip !== undefined && object.ip !== null) { - message.ip = object.ip; - } - if (object.port !== undefined && object.port !== null) { - message.port = object.port; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.ip = message.ip === "" ? undefined : message.ip; - obj.port = message.port === 0 ? undefined : message.port; - return obj; - }, - fromAminoMsg(object) { - return NetAddress.fromAmino(object.value); - }, - fromProtoMsg(message) { - return NetAddress.decode(message.value); - }, - toProto(message) { - return NetAddress.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.NetAddress", - value: NetAddress.encode(message).finish() - }; - } -}; -function createBaseProtocolVersion() { - return { - p2p: BigInt(0), - block: BigInt(0), - app: BigInt(0) - }; -} -export const ProtocolVersion = { - typeUrl: "/tendermint.p2p.ProtocolVersion", - encode(message, writer = BinaryWriter.create()) { - if (message.p2p !== BigInt(0)) { - writer.uint32(8).uint64(message.p2p); - } - if (message.block !== BigInt(0)) { - writer.uint32(16).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(24).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProtocolVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.p2p = reader.uint64(); - break; - case 2: - message.block = reader.uint64(); - break; - case 3: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProtocolVersion(); - message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseProtocolVersion(); - if (object.p2p !== undefined && object.p2p !== null) { - message.p2p = BigInt(object.p2p); - } - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ProtocolVersion.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ProtocolVersion.decode(message.value); - }, - toProto(message) { - return ProtocolVersion.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.ProtocolVersion", - value: ProtocolVersion.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfo() { - return { - protocolVersion: ProtocolVersion.fromPartial({}), - defaultNodeId: "", - listenAddr: "", - network: "", - version: "", - channels: new Uint8Array(), - moniker: "", - other: DefaultNodeInfoOther.fromPartial({}) - }; -} -export const DefaultNodeInfo = { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - encode(message, writer = BinaryWriter.create()) { - if (message.protocolVersion !== undefined) { - ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultNodeId !== "") { - writer.uint32(18).string(message.defaultNodeId); - } - if (message.listenAddr !== "") { - writer.uint32(26).string(message.listenAddr); - } - if (message.network !== "") { - writer.uint32(34).string(message.network); - } - if (message.version !== "") { - writer.uint32(42).string(message.version); - } - if (message.channels.length !== 0) { - writer.uint32(50).bytes(message.channels); - } - if (message.moniker !== "") { - writer.uint32(58).string(message.moniker); - } - if (message.other !== undefined) { - DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocolVersion = ProtocolVersion.decode(reader, reader.uint32()); - break; - case 2: - message.defaultNodeId = reader.string(); - break; - case 3: - message.listenAddr = reader.string(); - break; - case 4: - message.network = reader.string(); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.channels = reader.bytes(); - break; - case 7: - message.moniker = reader.string(); - break; - case 8: - message.other = DefaultNodeInfoOther.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDefaultNodeInfo(); - message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? ProtocolVersion.fromPartial(object.protocolVersion) : undefined; - message.defaultNodeId = object.defaultNodeId ?? ""; - message.listenAddr = object.listenAddr ?? ""; - message.network = object.network ?? ""; - message.version = object.version ?? ""; - message.channels = object.channels ?? new Uint8Array(); - message.moniker = object.moniker ?? ""; - message.other = object.other !== undefined && object.other !== null ? DefaultNodeInfoOther.fromPartial(object.other) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDefaultNodeInfo(); - if (object.protocol_version !== undefined && object.protocol_version !== null) { - message.protocolVersion = ProtocolVersion.fromAmino(object.protocol_version); - } - if (object.default_node_id !== undefined && object.default_node_id !== null) { - message.defaultNodeId = object.default_node_id; - } - if (object.listen_addr !== undefined && object.listen_addr !== null) { - message.listenAddr = object.listen_addr; - } - if (object.network !== undefined && object.network !== null) { - message.network = object.network; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.channels !== undefined && object.channels !== null) { - message.channels = bytesFromBase64(object.channels); - } - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.other !== undefined && object.other !== null) { - message.other = DefaultNodeInfoOther.fromAmino(object.other); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.protocol_version = message.protocolVersion ? ProtocolVersion.toAmino(message.protocolVersion) : undefined; - obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; - obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; - obj.network = message.network === "" ? undefined : message.network; - obj.version = message.version === "" ? undefined : message.version; - obj.channels = message.channels ? base64FromBytes(message.channels) : undefined; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.other = message.other ? DefaultNodeInfoOther.toAmino(message.other) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DefaultNodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DefaultNodeInfo.decode(message.value); - }, - toProto(message) { - return DefaultNodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - value: DefaultNodeInfo.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfoOther() { - return { - txIndex: "", - rpcAddress: "" - }; -} -export const DefaultNodeInfoOther = { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - encode(message, writer = BinaryWriter.create()) { - if (message.txIndex !== "") { - writer.uint32(10).string(message.txIndex); - } - if (message.rpcAddress !== "") { - writer.uint32(18).string(message.rpcAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfoOther(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txIndex = reader.string(); - break; - case 2: - message.rpcAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDefaultNodeInfoOther(); - message.txIndex = object.txIndex ?? ""; - message.rpcAddress = object.rpcAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDefaultNodeInfoOther(); - if (object.tx_index !== undefined && object.tx_index !== null) { - message.txIndex = object.tx_index; - } - if (object.rpc_address !== undefined && object.rpc_address !== null) { - message.rpcAddress = object.rpc_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; - obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; - return obj; - }, - fromAminoMsg(object) { - return DefaultNodeInfoOther.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DefaultNodeInfoOther.decode(message.value); - }, - toProto(message) { - return DefaultNodeInfoOther.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - value: DefaultNodeInfoOther.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/types/block.js b/packages/api/dist/esm/tendermint/types/block.js deleted file mode 100644 index f1434aac..00000000 --- a/packages/api/dist/esm/tendermint/types/block.js +++ /dev/null @@ -1,103 +0,0 @@ -//@ts-nocheck -import { Header, Data, Commit } from "./types"; -import { EvidenceList } from "./evidence"; -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseBlock() { - return { - header: Header.fromPartial({}), - data: Data.fromPartial({}), - evidence: EvidenceList.fromPartial({}), - lastCommit: undefined - }; -} -export const Block = { - typeUrl: "/tendermint.types.Block", - encode(message, writer = BinaryWriter.create()) { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.evidence !== undefined) { - EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); - } - if (message.lastCommit !== undefined) { - Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.data = Data.decode(reader, reader.uint32()); - break; - case 3: - message.evidence = EvidenceList.decode(reader, reader.uint32()); - break; - case 4: - message.lastCommit = Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlock(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.data = object.data !== undefined && object.data !== null ? Data.fromPartial(object.data) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceList.fromPartial(object.evidence) : undefined; - message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? Commit.fromPartial(object.lastCommit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBlock(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.data !== undefined && object.data !== null) { - message.data = Data.fromAmino(object.data); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = EvidenceList.fromAmino(object.evidence); - } - if (object.last_commit !== undefined && object.last_commit !== null) { - message.lastCommit = Commit.fromAmino(object.last_commit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.data = message.data ? Data.toAmino(message.data) : undefined; - obj.evidence = message.evidence ? EvidenceList.toAmino(message.evidence) : undefined; - obj.last_commit = message.lastCommit ? Commit.toAmino(message.lastCommit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Block.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Block.decode(message.value); - }, - toProto(message) { - return Block.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Block", - value: Block.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/types/evidence.js b/packages/api/dist/esm/tendermint/types/evidence.js deleted file mode 100644 index 90ce49d7..00000000 --- a/packages/api/dist/esm/tendermint/types/evidence.js +++ /dev/null @@ -1,372 +0,0 @@ -//@ts-nocheck -import { Vote, LightBlock } from "./types"; -import { Timestamp } from "../../google/protobuf/timestamp"; -import { Validator } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { toTimestamp, fromTimestamp } from "../../helpers"; -function createBaseEvidence() { - return { - duplicateVoteEvidence: undefined, - lightClientAttackEvidence: undefined - }; -} -export const Evidence = { - typeUrl: "/tendermint.types.Evidence", - encode(message, writer = BinaryWriter.create()) { - if (message.duplicateVoteEvidence !== undefined) { - DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); - } - if (message.lightClientAttackEvidence !== undefined) { - LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.duplicateVoteEvidence = DuplicateVoteEvidence.decode(reader, reader.uint32()); - break; - case 2: - message.lightClientAttackEvidence = LightClientAttackEvidence.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidence(); - message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; - message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEvidence(); - if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { - message.duplicateVoteEvidence = DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); - } - if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { - message.lightClientAttackEvidence = LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; - obj.light_client_attack_evidence = message.lightClientAttackEvidence ? LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Evidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Evidence.decode(message.value); - }, - toProto(message) { - return Evidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Evidence", - value: Evidence.encode(message).finish() - }; - } -}; -function createBaseDuplicateVoteEvidence() { - return { - voteA: undefined, - voteB: undefined, - totalVotingPower: BigInt(0), - validatorPower: BigInt(0), - timestamp: new Date() - }; -} -export const DuplicateVoteEvidence = { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - encode(message, writer = BinaryWriter.create()) { - if (message.voteA !== undefined) { - Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); - } - if (message.voteB !== undefined) { - Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - if (message.validatorPower !== BigInt(0)) { - writer.uint32(32).int64(message.validatorPower); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuplicateVoteEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voteA = Vote.decode(reader, reader.uint32()); - break; - case 2: - message.voteB = Vote.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - case 4: - message.validatorPower = reader.int64(); - break; - case 5: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDuplicateVoteEvidence(); - message.voteA = object.voteA !== undefined && object.voteA !== null ? Vote.fromPartial(object.voteA) : undefined; - message.voteB = object.voteB !== undefined && object.voteB !== null ? Vote.fromPartial(object.voteB) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDuplicateVoteEvidence(); - if (object.vote_a !== undefined && object.vote_a !== null) { - message.voteA = Vote.fromAmino(object.vote_a); - } - if (object.vote_b !== undefined && object.vote_b !== null) { - message.voteB = Vote.fromAmino(object.vote_b); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.validator_power !== undefined && object.validator_power !== null) { - message.validatorPower = BigInt(object.validator_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote_a = message.voteA ? Vote.toAmino(message.voteA) : undefined; - obj.vote_b = message.voteB ? Vote.toAmino(message.voteB) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return DuplicateVoteEvidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return DuplicateVoteEvidence.decode(message.value); - }, - toProto(message) { - return DuplicateVoteEvidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - value: DuplicateVoteEvidence.encode(message).finish() - }; - } -}; -function createBaseLightClientAttackEvidence() { - return { - conflictingBlock: undefined, - commonHeight: BigInt(0), - byzantineValidators: [], - totalVotingPower: BigInt(0), - timestamp: new Date() - }; -} -export const LightClientAttackEvidence = { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - encode(message, writer = BinaryWriter.create()) { - if (message.conflictingBlock !== undefined) { - LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); - } - if (message.commonHeight !== BigInt(0)) { - writer.uint32(16).int64(message.commonHeight); - } - for (const v of message.byzantineValidators) { - Validator.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(32).int64(message.totalVotingPower); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightClientAttackEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conflictingBlock = LightBlock.decode(reader, reader.uint32()); - break; - case 2: - message.commonHeight = reader.int64(); - break; - case 3: - message.byzantineValidators.push(Validator.decode(reader, reader.uint32())); - break; - case 4: - message.totalVotingPower = reader.int64(); - break; - case 5: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLightClientAttackEvidence(); - message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? LightBlock.fromPartial(object.conflictingBlock) : undefined; - message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); - message.byzantineValidators = object.byzantineValidators?.map(e => Validator.fromPartial(e)) || []; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseLightClientAttackEvidence(); - if (object.conflicting_block !== undefined && object.conflicting_block !== null) { - message.conflictingBlock = LightBlock.fromAmino(object.conflicting_block); - } - if (object.common_height !== undefined && object.common_height !== null) { - message.commonHeight = BigInt(object.common_height); - } - message.byzantineValidators = object.byzantine_validators?.map(e => Validator.fromAmino(e)) || []; - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.conflicting_block = message.conflictingBlock ? LightBlock.toAmino(message.conflictingBlock) : undefined; - obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.byzantine_validators = message.byzantineValidators; - } - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return LightClientAttackEvidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return LightClientAttackEvidence.decode(message.value); - }, - toProto(message) { - return LightClientAttackEvidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - value: LightClientAttackEvidence.encode(message).finish() - }; - } -}; -function createBaseEvidenceList() { - return { - evidence: [] - }; -} -export const EvidenceList = { - typeUrl: "/tendermint.types.EvidenceList", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.evidence) { - Evidence.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceList(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Evidence.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => Evidence.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => Evidence.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? Evidence.toAmino(e) : undefined); - } - else { - obj.evidence = message.evidence; - } - return obj; - }, - fromAminoMsg(object) { - return EvidenceList.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EvidenceList.decode(message.value); - }, - toProto(message) { - return EvidenceList.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.EvidenceList", - value: EvidenceList.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/types/params.js b/packages/api/dist/esm/tendermint/types/params.js deleted file mode 100644 index 13375c6e..00000000 --- a/packages/api/dist/esm/tendermint/types/params.js +++ /dev/null @@ -1,468 +0,0 @@ -//@ts-nocheck -import { Duration } from "../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseConsensusParams() { - return { - block: undefined, - evidence: undefined, - validator: undefined, - version: undefined - }; -} -export const ConsensusParams = { - typeUrl: "/tendermint.types.ConsensusParams", - encode(message, writer = BinaryWriter.create()) { - if (message.block !== undefined) { - BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); - } - if (message.evidence !== undefined) { - EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); - } - if (message.validator !== undefined) { - ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); - } - if (message.version !== undefined) { - VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = BlockParams.decode(reader, reader.uint32()); - break; - case 2: - message.evidence = EvidenceParams.decode(reader, reader.uint32()); - break; - case 3: - message.validator = ValidatorParams.decode(reader, reader.uint32()); - break; - case 4: - message.version = VersionParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensusParams(); - message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined; - message.validator = object.validator !== undefined && object.validator !== null ? ValidatorParams.fromPartial(object.validator) : undefined; - message.version = object.version !== undefined && object.version !== null ? VersionParams.fromPartial(object.version) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConsensusParams(); - if (object.block !== undefined && object.block !== null) { - message.block = BlockParams.fromAmino(object.block); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = EvidenceParams.fromAmino(object.evidence); - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = ValidatorParams.fromAmino(object.validator); - } - if (object.version !== undefined && object.version !== null) { - message.version = VersionParams.fromAmino(object.version); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block = message.block ? BlockParams.toAmino(message.block) : undefined; - obj.evidence = message.evidence ? EvidenceParams.toAmino(message.evidence) : undefined; - obj.validator = message.validator ? ValidatorParams.toAmino(message.validator) : undefined; - obj.version = message.version ? VersionParams.toAmino(message.version) : undefined; - return obj; - }, - fromAminoMsg(object) { - return ConsensusParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ConsensusParams.decode(message.value); - }, - toProto(message) { - return ConsensusParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ConsensusParams", - value: ConsensusParams.encode(message).finish() - }; - } -}; -function createBaseBlockParams() { - return { - maxBytes: BigInt(0), - maxGas: BigInt(0) - }; -} -export const BlockParams = { - typeUrl: "/tendermint.types.BlockParams", - encode(message, writer = BinaryWriter.create()) { - if (message.maxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxBytes); - } - if (message.maxGas !== BigInt(0)) { - writer.uint32(16).int64(message.maxGas); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxBytes = reader.int64(); - break; - case 2: - message.maxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockParams(); - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBlockParams(); - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - if (object.max_gas !== undefined && object.max_gas !== null) { - message.maxGas = BigInt(object.max_gas); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BlockParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BlockParams.decode(message.value); - }, - toProto(message) { - return BlockParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockParams", - value: BlockParams.encode(message).finish() - }; - } -}; -function createBaseEvidenceParams() { - return { - maxAgeNumBlocks: BigInt(0), - maxAgeDuration: Duration.fromPartial({}), - maxBytes: BigInt(0) - }; -} -export const EvidenceParams = { - typeUrl: "/tendermint.types.EvidenceParams", - encode(message, writer = BinaryWriter.create()) { - if (message.maxAgeNumBlocks !== BigInt(0)) { - writer.uint32(8).int64(message.maxAgeNumBlocks); - } - if (message.maxAgeDuration !== undefined) { - Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); - } - if (message.maxBytes !== BigInt(0)) { - writer.uint32(24).int64(message.maxBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxAgeNumBlocks = reader.int64(); - break; - case 2: - message.maxAgeDuration = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.maxBytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidenceParams(); - message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); - message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? Duration.fromPartial(object.maxAgeDuration) : undefined; - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEvidenceParams(); - if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { - message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); - } - if (object.max_age_duration !== undefined && object.max_age_duration !== null) { - message.maxAgeDuration = Duration.fromAmino(object.max_age_duration); - } - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; - obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return EvidenceParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return EvidenceParams.decode(message.value); - }, - toProto(message) { - return EvidenceParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.EvidenceParams", - value: EvidenceParams.encode(message).finish() - }; - } -}; -function createBaseValidatorParams() { - return { - pubKeyTypes: [] - }; -} -export const ValidatorParams = { - typeUrl: "/tendermint.types.ValidatorParams", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.pubKeyTypes) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKeyTypes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pubKeyTypes) { - obj.pub_key_types = message.pubKeyTypes.map(e => e); - } - else { - obj.pub_key_types = message.pubKeyTypes; - } - return obj; - }, - fromAminoMsg(object) { - return ValidatorParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ValidatorParams.decode(message.value); - }, - toProto(message) { - return ValidatorParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ValidatorParams", - value: ValidatorParams.encode(message).finish() - }; - } -}; -function createBaseVersionParams() { - return { - app: BigInt(0) - }; -} -export const VersionParams = { - typeUrl: "/tendermint.types.VersionParams", - encode(message, writer = BinaryWriter.create()) { - if (message.app !== BigInt(0)) { - writer.uint32(8).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVersionParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVersionParams(); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseVersionParams(); - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return VersionParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return VersionParams.decode(message.value); - }, - toProto(message) { - return VersionParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.VersionParams", - value: VersionParams.encode(message).finish() - }; - } -}; -function createBaseHashedParams() { - return { - blockMaxBytes: BigInt(0), - blockMaxGas: BigInt(0) - }; -} -export const HashedParams = { - typeUrl: "/tendermint.types.HashedParams", - encode(message, writer = BinaryWriter.create()) { - if (message.blockMaxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.blockMaxBytes); - } - if (message.blockMaxGas !== BigInt(0)) { - writer.uint32(16).int64(message.blockMaxGas); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHashedParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockMaxBytes = reader.int64(); - break; - case 2: - message.blockMaxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHashedParams(); - message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); - message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseHashedParams(); - if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { - message.blockMaxBytes = BigInt(object.block_max_bytes); - } - if (object.block_max_gas !== undefined && object.block_max_gas !== null) { - message.blockMaxGas = BigInt(object.block_max_gas); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; - obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return HashedParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return HashedParams.decode(message.value); - }, - toProto(message) { - return HashedParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.HashedParams", - value: HashedParams.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/types/types.js b/packages/api/dist/esm/tendermint/types/types.js deleted file mode 100644 index ea389028..00000000 --- a/packages/api/dist/esm/tendermint/types/types.js +++ /dev/null @@ -1,1442 +0,0 @@ -//@ts-nocheck -import { Proof } from "../crypto/proof"; -import { Consensus } from "../version/types"; -import { Timestamp } from "../../google/protobuf/timestamp"; -import { ValidatorSet } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../helpers"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export var BlockIDFlag; -(function (BlockIDFlag) { - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_UNKNOWN"] = 0] = "BLOCK_ID_FLAG_UNKNOWN"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_ABSENT"] = 1] = "BLOCK_ID_FLAG_ABSENT"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_COMMIT"] = 2] = "BLOCK_ID_FLAG_COMMIT"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_NIL"] = 3] = "BLOCK_ID_FLAG_NIL"; - BlockIDFlag[BlockIDFlag["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BlockIDFlag || (BlockIDFlag = {})); -export const BlockIDFlagSDKType = BlockIDFlag; -export const BlockIDFlagAmino = BlockIDFlag; -export function blockIDFlagFromJSON(object) { - switch (object) { - case 0: - case "BLOCK_ID_FLAG_UNKNOWN": - return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - case 1: - case "BLOCK_ID_FLAG_ABSENT": - return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; - case 2: - case "BLOCK_ID_FLAG_COMMIT": - return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; - case 3: - case "BLOCK_ID_FLAG_NIL": - return BlockIDFlag.BLOCK_ID_FLAG_NIL; - case -1: - case "UNRECOGNIZED": - default: - return BlockIDFlag.UNRECOGNIZED; - } -} -export function blockIDFlagToJSON(object) { - switch (object) { - case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: - return "BLOCK_ID_FLAG_UNKNOWN"; - case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: - return "BLOCK_ID_FLAG_ABSENT"; - case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: - return "BLOCK_ID_FLAG_COMMIT"; - case BlockIDFlag.BLOCK_ID_FLAG_NIL: - return "BLOCK_ID_FLAG_NIL"; - case BlockIDFlag.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** SignedMsgType is a type of signed message in the consensus. */ -export var SignedMsgType; -(function (SignedMsgType) { - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_UNKNOWN"] = 0] = "SIGNED_MSG_TYPE_UNKNOWN"; - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PREVOTE"] = 1] = "SIGNED_MSG_TYPE_PREVOTE"; - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PRECOMMIT"] = 2] = "SIGNED_MSG_TYPE_PRECOMMIT"; - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL"; - SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(SignedMsgType || (SignedMsgType = {})); -export const SignedMsgTypeSDKType = SignedMsgType; -export const SignedMsgTypeAmino = SignedMsgType; -export function signedMsgTypeFromJSON(object) { - switch (object) { - case 0: - case "SIGNED_MSG_TYPE_UNKNOWN": - return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; - case 1: - case "SIGNED_MSG_TYPE_PREVOTE": - return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; - case 2: - case "SIGNED_MSG_TYPE_PRECOMMIT": - return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; - case 32: - case "SIGNED_MSG_TYPE_PROPOSAL": - return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; - case -1: - case "UNRECOGNIZED": - default: - return SignedMsgType.UNRECOGNIZED; - } -} -export function signedMsgTypeToJSON(object) { - switch (object) { - case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: - return "SIGNED_MSG_TYPE_UNKNOWN"; - case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: - return "SIGNED_MSG_TYPE_PREVOTE"; - case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: - return "SIGNED_MSG_TYPE_PRECOMMIT"; - case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: - return "SIGNED_MSG_TYPE_PROPOSAL"; - case SignedMsgType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -function createBasePartSetHeader() { - return { - total: 0, - hash: new Uint8Array() - }; -} -export const PartSetHeader = { - typeUrl: "/tendermint.types.PartSetHeader", - encode(message, writer = BinaryWriter.create()) { - if (message.total !== 0) { - writer.uint32(8).uint32(message.total); - } - if (message.hash.length !== 0) { - writer.uint32(18).bytes(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePartSetHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.uint32(); - break; - case 2: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePartSetHeader(); - message.total = object.total ?? 0; - message.hash = object.hash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePartSetHeader(); - if (object.total !== undefined && object.total !== null) { - message.total = object.total; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.total = message.total === 0 ? undefined : message.total; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return PartSetHeader.fromAmino(object.value); - }, - fromProtoMsg(message) { - return PartSetHeader.decode(message.value); - }, - toProto(message) { - return PartSetHeader.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.PartSetHeader", - value: PartSetHeader.encode(message).finish() - }; - } -}; -function createBasePart() { - return { - index: 0, - bytes: new Uint8Array(), - proof: Proof.fromPartial({}) - }; -} -export const Part = { - typeUrl: "/tendermint.types.Part", - encode(message, writer = BinaryWriter.create()) { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.bytes.length !== 0) { - writer.uint32(18).bytes(message.bytes); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.bytes = reader.bytes(); - break; - case 3: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePart(); - message.index = object.index ?? 0; - message.bytes = object.bytes ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePart(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.bytes !== undefined && object.bytes !== null) { - message.bytes = bytesFromBase64(object.bytes); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.bytes = message.bytes ? base64FromBytes(message.bytes) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Part.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Part.decode(message.value); - }, - toProto(message) { - return Part.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Part", - value: Part.encode(message).finish() - }; - } -}; -function createBaseBlockID() { - return { - hash: new Uint8Array(), - partSetHeader: PartSetHeader.fromPartial({}) - }; -} -export const BlockID = { - typeUrl: "/tendermint.types.BlockID", - encode(message, writer = BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.partSetHeader !== undefined) { - PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.partSetHeader = PartSetHeader.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockID(); - message.hash = object.hash ?? new Uint8Array(); - message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? PartSetHeader.fromPartial(object.partSetHeader) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBlockID(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = bytesFromBase64(object.hash); - } - if (object.part_set_header !== undefined && object.part_set_header !== null) { - message.partSetHeader = PartSetHeader.fromAmino(object.part_set_header); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; - obj.part_set_header = message.partSetHeader ? PartSetHeader.toAmino(message.partSetHeader) : undefined; - return obj; - }, - fromAminoMsg(object) { - return BlockID.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BlockID.decode(message.value); - }, - toProto(message) { - return BlockID.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockID", - value: BlockID.encode(message).finish() - }; - } -}; -function createBaseHeader() { - return { - version: Consensus.fromPartial({}), - chainId: "", - height: BigInt(0), - time: new Date(), - lastBlockId: BlockID.fromPartial({}), - lastCommitHash: new Uint8Array(), - dataHash: new Uint8Array(), - validatorsHash: new Uint8Array(), - nextValidatorsHash: new Uint8Array(), - consensusHash: new Uint8Array(), - appHash: new Uint8Array(), - lastResultsHash: new Uint8Array(), - evidenceHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -export const Header = { - typeUrl: "/tendermint.types.Header", - encode(message, writer = BinaryWriter.create()) { - if (message.version !== undefined) { - Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim(); - } - if (message.lastBlockId !== undefined) { - BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); - } - if (message.lastCommitHash.length !== 0) { - writer.uint32(50).bytes(message.lastCommitHash); - } - if (message.dataHash.length !== 0) { - writer.uint32(58).bytes(message.dataHash); - } - if (message.validatorsHash.length !== 0) { - writer.uint32(66).bytes(message.validatorsHash); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(74).bytes(message.nextValidatorsHash); - } - if (message.consensusHash.length !== 0) { - writer.uint32(82).bytes(message.consensusHash); - } - if (message.appHash.length !== 0) { - writer.uint32(90).bytes(message.appHash); - } - if (message.lastResultsHash.length !== 0) { - writer.uint32(98).bytes(message.lastResultsHash); - } - if (message.evidenceHash.length !== 0) { - writer.uint32(106).bytes(message.evidenceHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(114).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = Consensus.decode(reader, reader.uint32()); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.lastBlockId = BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.lastCommitHash = reader.bytes(); - break; - case 7: - message.dataHash = reader.bytes(); - break; - case 8: - message.validatorsHash = reader.bytes(); - break; - case 9: - message.nextValidatorsHash = reader.bytes(); - break; - case 10: - message.consensusHash = reader.bytes(); - break; - case 11: - message.appHash = reader.bytes(); - break; - case 12: - message.lastResultsHash = reader.bytes(); - break; - case 13: - message.evidenceHash = reader.bytes(); - break; - case 14: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHeader(); - message.version = object.version !== undefined && object.version !== null ? Consensus.fromPartial(object.version) : undefined; - message.chainId = object.chainId ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? BlockID.fromPartial(object.lastBlockId) : undefined; - message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); - message.dataHash = object.dataHash ?? new Uint8Array(); - message.validatorsHash = object.validatorsHash ?? new Uint8Array(); - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.consensusHash = object.consensusHash ?? new Uint8Array(); - message.appHash = object.appHash ?? new Uint8Array(); - message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseHeader(); - if (object.version !== undefined && object.version !== null) { - message.version = Consensus.fromAmino(object.version); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = fromTimestamp(Timestamp.fromAmino(object.time)); - } - if (object.last_block_id !== undefined && object.last_block_id !== null) { - message.lastBlockId = BlockID.fromAmino(object.last_block_id); - } - if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { - message.lastCommitHash = bytesFromBase64(object.last_commit_hash); - } - if (object.data_hash !== undefined && object.data_hash !== null) { - message.dataHash = bytesFromBase64(object.data_hash); - } - if (object.validators_hash !== undefined && object.validators_hash !== null) { - message.validatorsHash = bytesFromBase64(object.validators_hash); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = bytesFromBase64(object.next_validators_hash); - } - if (object.consensus_hash !== undefined && object.consensus_hash !== null) { - message.consensusHash = bytesFromBase64(object.consensus_hash); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = bytesFromBase64(object.app_hash); - } - if (object.last_results_hash !== undefined && object.last_results_hash !== null) { - message.lastResultsHash = bytesFromBase64(object.last_results_hash); - } - if (object.evidence_hash !== undefined && object.evidence_hash !== null) { - message.evidenceHash = bytesFromBase64(object.evidence_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = bytesFromBase64(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.version = message.version ? Consensus.toAmino(message.version) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; - obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; - obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; - obj.validators_hash = message.validatorsHash ? base64FromBytes(message.validatorsHash) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? base64FromBytes(message.nextValidatorsHash) : undefined; - obj.consensus_hash = message.consensusHash ? base64FromBytes(message.consensusHash) : undefined; - obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; - obj.last_results_hash = message.lastResultsHash ? base64FromBytes(message.lastResultsHash) : undefined; - obj.evidence_hash = message.evidenceHash ? base64FromBytes(message.evidenceHash) : undefined; - obj.proposer_address = message.proposerAddress ? base64FromBytes(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Header.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Header.decode(message.value); - }, - toProto(message) { - return Header.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Header", - value: Header.encode(message).finish() - }; - } -}; -function createBaseData() { - return { - txs: [] - }; -} -export const Data = { - typeUrl: "/tendermint.types.Data", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseData(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseData(); - message.txs = object.txs?.map(e => bytesFromBase64(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => base64FromBytes(e)); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return Data.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Data.decode(message.value); - }, - toProto(message) { - return Data.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Data", - value: Data.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - type: 0, - height: BigInt(0), - round: 0, - blockId: BlockID.fromPartial({}), - timestamp: new Date(), - validatorAddress: new Uint8Array(), - validatorIndex: 0, - signature: new Uint8Array() - }; -} -export const Vote = { - typeUrl: "/tendermint.types.Vote", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(50).bytes(message.validatorAddress); - } - if (message.validatorIndex !== 0) { - writer.uint32(56).int32(message.validatorIndex); - } - if (message.signature.length !== 0) { - writer.uint32(66).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 5: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.validatorAddress = reader.bytes(); - break; - case 7: - message.validatorIndex = reader.int32(); - break; - case 8: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp ?? undefined; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.validatorIndex = object.validatorIndex ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = bytesFromBase64(object.validator_address); - } - if (object.validator_index !== undefined && object.validator_index !== null) { - message.validatorIndex = object.validator_index; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; - obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Vote.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Vote.decode(message.value); - }, - toProto(message) { - return Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Vote", - value: Vote.encode(message).finish() - }; - } -}; -function createBaseCommit() { - return { - height: BigInt(0), - round: 0, - blockId: BlockID.fromPartial({}), - signatures: [] - }; -} -export const Commit = { - typeUrl: "/tendermint.types.Commit", - encode(message, writer = BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(16).int32(message.round); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.signatures) { - CommitSig.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.round = reader.int32(); - break; - case 3: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 4: - message.signatures.push(CommitSig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommit(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.signatures = object.signatures?.map(e => CommitSig.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommit(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - message.signatures = object.signatures?.map(e => CommitSig.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? CommitSig.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return Commit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Commit.decode(message.value); - }, - toProto(message) { - return Commit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Commit", - value: Commit.encode(message).finish() - }; - } -}; -function createBaseCommitSig() { - return { - blockIdFlag: 0, - validatorAddress: new Uint8Array(), - timestamp: new Date(), - signature: new Uint8Array() - }; -} -export const CommitSig = { - typeUrl: "/tendermint.types.CommitSig", - encode(message, writer = BinaryWriter.create()) { - if (message.blockIdFlag !== 0) { - writer.uint32(8).int32(message.blockIdFlag); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(18).bytes(message.validatorAddress); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(34).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitSig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockIdFlag = reader.int32(); - break; - case 2: - message.validatorAddress = reader.bytes(); - break; - case 3: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommitSig(); - message.blockIdFlag = object.blockIdFlag ?? 0; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseCommitSig(); - if (object.block_id_flag !== undefined && object.block_id_flag !== null) { - message.blockIdFlag = object.block_id_flag; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = bytesFromBase64(object.validator_address); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; - obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return CommitSig.fromAmino(object.value); - }, - fromProtoMsg(message) { - return CommitSig.decode(message.value); - }, - toProto(message) { - return CommitSig.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.CommitSig", - value: CommitSig.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - type: 0, - height: BigInt(0), - round: 0, - polRound: 0, - blockId: BlockID.fromPartial({}), - timestamp: new Date(), - signature: new Uint8Array() - }; -} -export const Proposal = { - typeUrl: "/tendermint.types.Proposal", - encode(message, writer = BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.polRound !== 0) { - writer.uint32(32).int32(message.polRound); - } - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(58).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.polRound = reader.int32(); - break; - case 5: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.polRound = object.polRound ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp ?? undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.pol_round !== undefined && object.pol_round !== null) { - message.polRound = object.pol_round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = fromTimestamp(Timestamp.fromAmino(object.timestamp)); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = bytesFromBase64(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.pol_round = message.polRound === 0 ? undefined : message.polRound; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; - obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return Proposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Proposal.decode(message.value); - }, - toProto(message) { - return Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Proposal", - value: Proposal.encode(message).finish() - }; - } -}; -function createBaseSignedHeader() { - return { - header: undefined, - commit: undefined - }; -} -export const SignedHeader = { - typeUrl: "/tendermint.types.SignedHeader", - encode(message, writer = BinaryWriter.create()) { - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.commit !== undefined) { - Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignedHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = Header.decode(reader, reader.uint32()); - break; - case 2: - message.commit = Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignedHeader(); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? Commit.fromPartial(object.commit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignedHeader(); - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = Commit.fromAmino(object.commit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.commit = message.commit ? Commit.toAmino(message.commit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return SignedHeader.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SignedHeader.decode(message.value); - }, - toProto(message) { - return SignedHeader.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.SignedHeader", - value: SignedHeader.encode(message).finish() - }; - } -}; -function createBaseLightBlock() { - return { - signedHeader: undefined, - validatorSet: undefined - }; -} -export const LightBlock = { - typeUrl: "/tendermint.types.LightBlock", - encode(message, writer = BinaryWriter.create()) { - if (message.signedHeader !== undefined) { - SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorSet !== undefined) { - ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedHeader = SignedHeader.decode(reader, reader.uint32()); - break; - case 2: - message.validatorSet = ValidatorSet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLightBlock(); - message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? SignedHeader.fromPartial(object.signedHeader) : undefined; - message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? ValidatorSet.fromPartial(object.validatorSet) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseLightBlock(); - if (object.signed_header !== undefined && object.signed_header !== null) { - message.signedHeader = SignedHeader.fromAmino(object.signed_header); - } - if (object.validator_set !== undefined && object.validator_set !== null) { - message.validatorSet = ValidatorSet.fromAmino(object.validator_set); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.signed_header = message.signedHeader ? SignedHeader.toAmino(message.signedHeader) : undefined; - obj.validator_set = message.validatorSet ? ValidatorSet.toAmino(message.validatorSet) : undefined; - return obj; - }, - fromAminoMsg(object) { - return LightBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return LightBlock.decode(message.value); - }, - toProto(message) { - return LightBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.LightBlock", - value: LightBlock.encode(message).finish() - }; - } -}; -function createBaseBlockMeta() { - return { - blockId: BlockID.fromPartial({}), - blockSize: BigInt(0), - header: Header.fromPartial({}), - numTxs: BigInt(0) - }; -} -export const BlockMeta = { - typeUrl: "/tendermint.types.BlockMeta", - encode(message, writer = BinaryWriter.create()) { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.blockSize !== BigInt(0)) { - writer.uint32(16).int64(message.blockSize); - } - if (message.header !== undefined) { - Header.encode(message.header, writer.uint32(26).fork()).ldelim(); - } - if (message.numTxs !== BigInt(0)) { - writer.uint32(32).int64(message.numTxs); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockMeta(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.blockSize = reader.int64(); - break; - case 3: - message.header = Header.decode(reader, reader.uint32()); - break; - case 4: - message.numTxs = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockMeta(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); - message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined; - message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBlockMeta(); - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = BlockID.fromAmino(object.block_id); - } - if (object.block_size !== undefined && object.block_size !== null) { - message.blockSize = BigInt(object.block_size); - } - if (object.header !== undefined && object.header !== null) { - message.header = Header.fromAmino(object.header); - } - if (object.num_txs !== undefined && object.num_txs !== null) { - message.numTxs = BigInt(object.num_txs); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; - obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return BlockMeta.fromAmino(object.value); - }, - fromProtoMsg(message) { - return BlockMeta.decode(message.value); - }, - toProto(message) { - return BlockMeta.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockMeta", - value: BlockMeta.encode(message).finish() - }; - } -}; -function createBaseTxProof() { - return { - rootHash: new Uint8Array(), - data: new Uint8Array(), - proof: undefined - }; -} -export const TxProof = { - typeUrl: "/tendermint.types.TxProof", - encode(message, writer = BinaryWriter.create()) { - if (message.rootHash.length !== 0) { - writer.uint32(10).bytes(message.rootHash); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.proof !== undefined) { - Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rootHash = reader.bytes(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.proof = Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxProof(); - message.rootHash = object.rootHash ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseTxProof(); - if (object.root_hash !== undefined && object.root_hash !== null) { - message.rootHash = bytesFromBase64(object.root_hash); - } - if (object.data !== undefined && object.data !== null) { - message.data = bytesFromBase64(object.data); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.root_hash = message.rootHash ? base64FromBytes(message.rootHash) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return TxProof.fromAmino(object.value); - }, - fromProtoMsg(message) { - return TxProof.decode(message.value); - }, - toProto(message) { - return TxProof.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.TxProof", - value: TxProof.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/types/validator.js b/packages/api/dist/esm/tendermint/types/validator.js deleted file mode 100644 index 073e7eed..00000000 --- a/packages/api/dist/esm/tendermint/types/validator.js +++ /dev/null @@ -1,268 +0,0 @@ -//@ts-nocheck -import { PublicKey } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -import { bytesFromBase64, base64FromBytes } from "../../helpers"; -function createBaseValidatorSet() { - return { - validators: [], - proposer: undefined, - totalVotingPower: BigInt(0) - }; -} -export const ValidatorSet = { - typeUrl: "/tendermint.types.ValidatorSet", - encode(message, writer = BinaryWriter.create()) { - for (const v of message.validators) { - Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.proposer !== undefined) { - Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 2: - message.proposer = Validator.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.proposer = object.proposer !== undefined && object.proposer !== null ? Validator.fromPartial(object.proposer) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => Validator.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = Validator.fromAmino(object.proposer); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return ValidatorSet.fromAmino(object.value); - }, - fromProtoMsg(message) { - return ValidatorSet.decode(message.value); - }, - toProto(message) { - return ValidatorSet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ValidatorSet", - value: ValidatorSet.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - address: new Uint8Array(), - pubKey: PublicKey.fromPartial({}), - votingPower: BigInt(0), - proposerPriority: BigInt(0) - }; -} -export const Validator = { - typeUrl: "/tendermint.types.Validator", - encode(message, writer = BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(24).int64(message.votingPower); - } - if (message.proposerPriority !== BigInt(0)) { - writer.uint32(32).int64(message.proposerPriority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 2: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 3: - message.votingPower = reader.int64(); - break; - case 4: - message.proposerPriority = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = bytesFromBase64(object.address); - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - if (object.proposer_priority !== undefined && object.proposer_priority !== null) { - message.proposerPriority = BigInt(object.proposer_priority); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Validator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Validator.decode(message.value); - }, - toProto(message) { - return Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Validator", - value: Validator.encode(message).finish() - }; - } -}; -function createBaseSimpleValidator() { - return { - pubKey: undefined, - votingPower: BigInt(0) - }; -} -export const SimpleValidator = { - typeUrl: "/tendermint.types.SimpleValidator", - encode(message, writer = BinaryWriter.create()) { - if (message.pubKey !== undefined) { - PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(16).int64(message.votingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimpleValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.votingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimpleValidator(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSimpleValidator(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return SimpleValidator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return SimpleValidator.decode(message.value); - }, - toProto(message) { - return SimpleValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.SimpleValidator", - value: SimpleValidator.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/tendermint/version/types.js b/packages/api/dist/esm/tendermint/version/types.js deleted file mode 100644 index 5adee9ba..00000000 --- a/packages/api/dist/esm/tendermint/version/types.js +++ /dev/null @@ -1,152 +0,0 @@ -//@ts-nocheck -import { BinaryReader, BinaryWriter } from "../../binary"; -function createBaseApp() { - return { - protocol: BigInt(0), - software: "" - }; -} -export const App = { - typeUrl: "/tendermint.version.App", - encode(message, writer = BinaryWriter.create()) { - if (message.protocol !== BigInt(0)) { - writer.uint32(8).uint64(message.protocol); - } - if (message.software !== "") { - writer.uint32(18).string(message.software); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseApp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocol = reader.uint64(); - break; - case 2: - message.software = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseApp(); - message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); - message.software = object.software ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseApp(); - if (object.protocol !== undefined && object.protocol !== null) { - message.protocol = BigInt(object.protocol); - } - if (object.software !== undefined && object.software !== null) { - message.software = object.software; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; - obj.software = message.software === "" ? undefined : message.software; - return obj; - }, - fromAminoMsg(object) { - return App.fromAmino(object.value); - }, - fromProtoMsg(message) { - return App.decode(message.value); - }, - toProto(message) { - return App.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.version.App", - value: App.encode(message).finish() - }; - } -}; -function createBaseConsensus() { - return { - block: BigInt(0), - app: BigInt(0) - }; -} -export const Consensus = { - typeUrl: "/tendermint.version.Consensus", - encode(message, writer = BinaryWriter.create()) { - if (message.block !== BigInt(0)) { - writer.uint32(8).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(16).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensus(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = reader.uint64(); - break; - case 2: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensus(); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseConsensus(); - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return Consensus.fromAmino(object.value); - }, - fromProtoMsg(message) { - return Consensus.decode(message.value); - }, - toProto(message) { - return Consensus.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.version.Consensus", - value: Consensus.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/esm/utf8.js b/packages/api/dist/esm/utf8.js deleted file mode 100644 index 820830be..00000000 --- a/packages/api/dist/esm/utf8.js +++ /dev/null @@ -1,137 +0,0 @@ -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -// Copyright (c) 2016, Daniel Wirtz All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -"use strict"; -/** - * Calculates the UTF8 byte length of a string. - * @param {string} string String - * @returns {number} Byte length - */ -export function utf8Length(str) { - let len = 0, c = 0; - for (let i = 0; i < str.length; ++i) { - c = str.charCodeAt(i); - if (c < 128) - len += 1; - else if (c < 2048) - len += 2; - else if ((c & 0xfc00) === 0xd800 && - (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { - ++i; - len += 4; - } - else - len += 3; - } - return len; -} -/** - * Reads UTF8 bytes as a string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} String read - */ -export function utf8Read(buffer, start, end) { - const len = end - start; - if (len < 1) - return ""; - const chunk = []; - let parts = [], i = 0, // char offset - t; // temporary - while (start < end) { - t = buffer[start++]; - if (t < 128) - chunk[i++] = t; - else if (t > 191 && t < 224) - chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); - else if (t > 239 && t < 365) { - t = - (((t & 7) << 18) | - ((buffer[start++] & 63) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63)) - - 0x10000; - chunk[i++] = 0xd800 + (t >> 10); - chunk[i++] = 0xdc00 + (t & 1023); - } - else - chunk[i++] = - ((t & 15) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63); - if (i > 8191) { - (parts || (parts = [])).push(String.fromCharCode(...chunk)); - i = 0; - } - } - if (parts) { - if (i) - parts.push(String.fromCharCode(...chunk.slice(0, i))); - return parts.join(""); - } - return String.fromCharCode(...chunk.slice(0, i)); -} -/** - * Writes a string as UTF8 bytes. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Bytes written - */ -export function utf8Write(str, buffer, offset) { - const start = offset; - let c1, // character 1 - c2; // character 2 - for (let i = 0; i < str.length; ++i) { - c1 = str.charCodeAt(i); - if (c1 < 128) { - buffer[offset++] = c1; - } - else if (c1 < 2048) { - buffer[offset++] = (c1 >> 6) | 192; - buffer[offset++] = (c1 & 63) | 128; - } - else if ((c1 & 0xfc00) === 0xd800 && - ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00) { - c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); - ++i; - buffer[offset++] = (c1 >> 18) | 240; - buffer[offset++] = ((c1 >> 12) & 63) | 128; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } - else { - buffer[offset++] = (c1 >> 12) | 224; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } - } - return offset - start; -} diff --git a/packages/api/dist/esm/varint.js b/packages/api/dist/esm/varint.js deleted file mode 100644 index ebebceff..00000000 --- a/packages/api/dist/esm/varint.js +++ /dev/null @@ -1,408 +0,0 @@ -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -// Copyright 2008 Google Inc. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// Code generated by the Protocol Buffer compiler is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export function varint64read() { - let lowBits = 0; - let highBits = 0; - for (let shift = 0; shift < 28; shift += 7) { - let b = this.buf[this.pos++]; - lowBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - let middleByte = this.buf[this.pos++]; - // last four bits of the first 32 bit number - lowBits |= (middleByte & 0x0f) << 28; - // 3 upper bits are part of the next 32 bit number - highBits = (middleByte & 0x70) >> 4; - if ((middleByte & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - for (let shift = 3; shift <= 31; shift += 7) { - let b = this.buf[this.pos++]; - highBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - throw new Error("invalid varint"); -} -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export function varint64write(lo, hi, bytes) { - for (let i = 0; i < 28; i = i + 7) { - const shift = lo >>> i; - const hasNext = !(shift >>> 7 == 0 && hi == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); - const hasMoreBits = !(hi >> 3 == 0); - bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); - if (!hasMoreBits) { - return; - } - for (let i = 3; i < 31; i = i + 7) { - const shift = hi >>> i; - const hasNext = !(shift >>> 7 == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - bytes.push((hi >>> 31) & 0x01); -} -// constants for binary math -const TWO_PWR_32_DBL = 0x100000000; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64FromString(dec) { - // Check for minus sign. - const minus = dec[0] === "-"; - if (minus) { - dec = dec.slice(1); - } - // Work 6 decimal digits at a time, acting like we're converting base 1e6 - // digits to binary. This is safe to do with floating point math because - // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. - const base = 1e6; - let lowBits = 0; - let highBits = 0; - function add1e6digit(begin, end) { - // Note: Number('') is 0. - const digit1e6 = Number(dec.slice(begin, end)); - highBits *= base; - lowBits = lowBits * base + digit1e6; - // Carry bits from lowBits to - if (lowBits >= TWO_PWR_32_DBL) { - highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); - lowBits = lowBits % TWO_PWR_32_DBL; - } - } - add1e6digit(-24, -18); - add1e6digit(-18, -12); - add1e6digit(-12, -6); - add1e6digit(-6); - return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); -} -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function int64ToString(lo, hi) { - let bits = newBits(lo, hi); - // If we're treating the input as a signed value and the high bit is set, do - // a manual two's complement conversion before the decimal conversion. - const negative = bits.hi & 0x80000000; - if (negative) { - bits = negate(bits.lo, bits.hi); - } - const result = uInt64ToString(bits.lo, bits.hi); - return negative ? "-" + result : result; -} -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export function uInt64ToString(lo, hi) { - ({ lo, hi } = toUnsigned(lo, hi)); - // Skip the expensive conversion if the number is small enough to use the - // built-in conversions. - // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with - // highBits <= 0x1FFFFF can be safely expressed with a double and retain - // integer precision. - // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. - if (hi <= 0x1fffff) { - return String(TWO_PWR_32_DBL * hi + lo); - } - // What this code is doing is essentially converting the input number from - // base-2 to base-1e7, which allows us to represent the 64-bit range with - // only 3 (very large) digits. Those digits are then trivial to convert to - // a base-10 string. - // The magic numbers used here are - - // 2^24 = 16777216 = (1,6777216) in base-1e7. - // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. - // Split 32:32 representation into 16:24:24 representation so our - // intermediate digits don't overflow. - const low = lo & 0xffffff; - const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; - const high = (hi >> 16) & 0xffff; - // Assemble our three base-1e7 digits, ignoring carries. The maximum - // value in a digit at this step is representable as a 48-bit integer, which - // can be stored in a 64-bit floating point number. - let digitA = low + mid * 6777216 + high * 6710656; - let digitB = mid + high * 8147497; - let digitC = high * 2; - // Apply carries from A to B and from B to C. - const base = 10000000; - if (digitA >= base) { - digitB += Math.floor(digitA / base); - digitA %= base; - } - if (digitB >= base) { - digitC += Math.floor(digitB / base); - digitB %= base; - } - // If digitC is 0, then we should have returned in the trivial code path - // at the top for non-safe integers. Given this, we can assume both digitB - // and digitA need leading zeros. - return (digitC.toString() + - decimalFrom1e7WithLeadingZeros(digitB) + - decimalFrom1e7WithLeadingZeros(digitA)); -} -function toUnsigned(lo, hi) { - return { lo: lo >>> 0, hi: hi >>> 0 }; -} -function newBits(lo, hi) { - return { lo: lo | 0, hi: hi | 0 }; -} -/** - * Returns two's compliment negation of input. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers - */ -function negate(lowBits, highBits) { - highBits = ~highBits; - if (lowBits) { - lowBits = ~lowBits + 1; - } - else { - // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, - // adding 1 to that, results in 0x100000000, which leaves - // the low bits 0x0 and simply adds one to the high bits. - highBits += 1; - } - return newBits(lowBits, highBits); -} -/** - * Returns decimal representation of digit1e7 with leading zeros. - */ -const decimalFrom1e7WithLeadingZeros = (digit1e7) => { - const partial = String(digit1e7); - return "0000000".slice(partial.length) + partial; -}; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export function varint32write(value, bytes) { - if (value >= 0) { - // write value as varint 32 - while (value > 0x7f) { - bytes.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - bytes.push(value); - } - else { - for (let i = 0; i < 9; i++) { - bytes.push((value & 127) | 128); - value = value >> 7; - } - bytes.push(1); - } -} -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export function varint32read() { - let b = this.buf[this.pos++]; - let result = b & 0x7f; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 7; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 14; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 21; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - // Extract only last 4 bits - b = this.buf[this.pos++]; - result |= (b & 0x0f) << 28; - for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) - b = this.buf[this.pos++]; - if ((b & 0x80) != 0) - throw new Error("invalid varint"); - this.assertBounds(); - // Result can have 32 bits, convert it to unsigned - return result >>> 0; -} -/** - * encode zig zag - */ -export function zzEncode(lo, hi) { - let mask = hi >> 31; - hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; - lo = ((lo << 1) ^ mask) >>> 0; - return [lo, hi]; -} -/** - * decode zig zag - */ -export function zzDecode(lo, hi) { - let mask = -(lo & 1); - lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; - hi = ((hi >>> 1) ^ mask) >>> 0; - return [lo, hi]; -} -/** - * unsigned int32 without moving pos. - */ -export function readUInt32(buf, pos) { - return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - buf[pos + 3] * 0x1000000); -} -/** - * signed int32 without moving pos. - */ -export function readInt32(buf, pos) { - return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - (buf[pos + 3] << 24)); -} -/** - * writing varint32 to pos - */ -export function writeVarint32(val, buf, pos) { - while (val > 127) { - buf[pos++] = (val & 127) | 128; - val >>>= 7; - } - buf[pos] = val; -} -/** - * writing varint64 to pos - */ -export function writeVarint64(val, buf, pos) { - while (val.hi) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; - val.hi >>>= 7; - } - while (val.lo > 127) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = val.lo >>> 7; - } - buf[pos++] = val.lo; -} -export function int64Length(lo, hi) { - let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24; - return part2 === 0 - ? part1 === 0 - ? part0 < 16384 - ? part0 < 128 - ? 1 - : 2 - : part0 < 2097152 - ? 3 - : 4 - : part1 < 16384 - ? part1 < 128 - ? 5 - : 6 - : part1 < 2097152 - ? 7 - : 8 - : part2 < 128 - ? 9 - : 10; -} -export function writeFixed32(val, buf, pos) { - buf[pos] = val & 255; - buf[pos + 1] = (val >>> 8) & 255; - buf[pos + 2] = (val >>> 16) & 255; - buf[pos + 3] = val >>> 24; -} -export function writeByte(val, buf, pos) { - buf[pos] = val & 255; -} diff --git a/packages/api/dist/gogoproto/bundle.d.ts b/packages/api/dist/gogoproto/bundle.d.ts deleted file mode 100644 index 55791e68..00000000 --- a/packages/api/dist/gogoproto/bundle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const gogoproto: {}; diff --git a/packages/api/dist/gogoproto/bundle.js b/packages/api/dist/gogoproto/bundle.js deleted file mode 100644 index 028bf20c..00000000 --- a/packages/api/dist/gogoproto/bundle.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.gogoproto = void 0; -//@ts-nocheck -const _67 = __importStar(require("./gogo")); -exports.gogoproto = { - ..._67 -}; diff --git a/packages/api/dist/gogoproto/gogo.d.ts b/packages/api/dist/gogoproto/gogo.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/gogoproto/gogo.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/gogoproto/gogo.js b/packages/api/dist/gogoproto/gogo.js deleted file mode 100644 index c8ad2e54..00000000 --- a/packages/api/dist/gogoproto/gogo.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/google/api/annotations.d.ts b/packages/api/dist/google/api/annotations.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/api/dist/google/api/annotations.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/api/dist/google/api/annotations.js b/packages/api/dist/google/api/annotations.js deleted file mode 100644 index c8ad2e54..00000000 --- a/packages/api/dist/google/api/annotations.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/api/dist/google/api/http.d.ts b/packages/api/dist/google/api/http.d.ts deleted file mode 100644 index 31e16298..00000000 --- a/packages/api/dist/google/api/http.d.ts +++ /dev/null @@ -1,1073 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -export interface HttpProtoMsg { - typeUrl: "/google.api.Http"; - value: Uint8Array; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpAmino { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules?: HttpRuleAmino[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fully_decode_reserved_expansion?: boolean; -} -export interface HttpAminoMsg { - type: "/google.api.Http"; - value: HttpAmino; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -export interface HttpRuleProtoMsg { - typeUrl: "/google.api.HttpRule"; - value: Uint8Array; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleAmino { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - */ - selector?: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPatternAmino; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body?: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - response_body?: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additional_bindings?: HttpRuleAmino[]; -} -export interface HttpRuleAminoMsg { - type: "/google.api.HttpRule"; - value: HttpRuleAmino; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -export interface CustomHttpPatternProtoMsg { - typeUrl: "/google.api.CustomHttpPattern"; - value: Uint8Array; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternAmino { - /** The name of this custom HTTP verb. */ - kind?: string; - /** The path matched by this custom verb. */ - path?: string; -} -export interface CustomHttpPatternAminoMsg { - type: "/google.api.CustomHttpPattern"; - value: CustomHttpPatternAmino; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} -export declare const Http: { - typeUrl: string; - encode(message: Http, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Http; - fromPartial(object: Partial): Http; - fromAmino(object: HttpAmino): Http; - toAmino(message: Http): HttpAmino; - fromAminoMsg(object: HttpAminoMsg): Http; - fromProtoMsg(message: HttpProtoMsg): Http; - toProto(message: Http): Uint8Array; - toProtoMsg(message: Http): HttpProtoMsg; -}; -export declare const HttpRule: { - typeUrl: string; - encode(message: HttpRule, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): HttpRule; - fromPartial(object: Partial): HttpRule; - fromAmino(object: HttpRuleAmino): HttpRule; - toAmino(message: HttpRule): HttpRuleAmino; - fromAminoMsg(object: HttpRuleAminoMsg): HttpRule; - fromProtoMsg(message: HttpRuleProtoMsg): HttpRule; - toProto(message: HttpRule): Uint8Array; - toProtoMsg(message: HttpRule): HttpRuleProtoMsg; -}; -export declare const CustomHttpPattern: { - typeUrl: string; - encode(message: CustomHttpPattern, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern; - fromPartial(object: Partial): CustomHttpPattern; - fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern; - toAmino(message: CustomHttpPattern): CustomHttpPatternAmino; - fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern; - fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern; - toProto(message: CustomHttpPattern): Uint8Array; - toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg; -}; diff --git a/packages/api/dist/google/api/http.js b/packages/api/dist/google/api/http.js deleted file mode 100644 index 2ade7aa2..00000000 --- a/packages/api/dist/google/api/http.js +++ /dev/null @@ -1,332 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CustomHttpPattern = exports.HttpRule = exports.Http = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -function createBaseHttp() { - return { - rules: [], - fullyDecodeReservedExpansion: false - }; -} -exports.Http = { - typeUrl: "/google.api.Http", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.rules) { - exports.HttpRule.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.fullyDecodeReservedExpansion === true) { - writer.uint32(16).bool(message.fullyDecodeReservedExpansion); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rules.push(exports.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => exports.HttpRule.fromPartial(e)) || []; - message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => exports.HttpRule.fromAmino(e)) || []; - if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) { - message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.rules) { - obj.rules = message.rules.map(e => e ? exports.HttpRule.toAmino(e) : undefined); - } - else { - obj.rules = message.rules; - } - obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; - return obj; - }, - fromAminoMsg(object) { - return exports.Http.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Http.decode(message.value); - }, - toProto(message) { - return exports.Http.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.Http", - value: exports.Http.encode(message).finish() - }; - } -}; -function createBaseHttpRule() { - return { - selector: "", - get: undefined, - put: undefined, - post: undefined, - delete: undefined, - patch: undefined, - custom: undefined, - body: "", - responseBody: "", - additionalBindings: [] - }; -} -exports.HttpRule = { - typeUrl: "/google.api.HttpRule", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.selector !== "") { - writer.uint32(10).string(message.selector); - } - if (message.get !== undefined) { - writer.uint32(18).string(message.get); - } - if (message.put !== undefined) { - writer.uint32(26).string(message.put); - } - if (message.post !== undefined) { - writer.uint32(34).string(message.post); - } - if (message.delete !== undefined) { - writer.uint32(42).string(message.delete); - } - if (message.patch !== undefined) { - writer.uint32(50).string(message.patch); - } - if (message.custom !== undefined) { - exports.CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); - } - if (message.body !== "") { - writer.uint32(58).string(message.body); - } - if (message.responseBody !== "") { - writer.uint32(98).string(message.responseBody); - } - for (const v of message.additionalBindings) { - exports.HttpRule.encode(v, writer.uint32(90).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttpRule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message.delete = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = exports.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - message.additionalBindings.push(exports.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHttpRule(); - message.selector = object.selector ?? ""; - message.get = object.get ?? undefined; - message.put = object.put ?? undefined; - message.post = object.post ?? undefined; - message.delete = object.delete ?? undefined; - message.patch = object.patch ?? undefined; - message.custom = object.custom !== undefined && object.custom !== null ? exports.CustomHttpPattern.fromPartial(object.custom) : undefined; - message.body = object.body ?? ""; - message.responseBody = object.responseBody ?? ""; - message.additionalBindings = object.additionalBindings?.map(e => exports.HttpRule.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseHttpRule(); - if (object.selector !== undefined && object.selector !== null) { - message.selector = object.selector; - } - if (object.get !== undefined && object.get !== null) { - message.get = object.get; - } - if (object.put !== undefined && object.put !== null) { - message.put = object.put; - } - if (object.post !== undefined && object.post !== null) { - message.post = object.post; - } - if (object.delete !== undefined && object.delete !== null) { - message.delete = object.delete; - } - if (object.patch !== undefined && object.patch !== null) { - message.patch = object.patch; - } - if (object.custom !== undefined && object.custom !== null) { - message.custom = exports.CustomHttpPattern.fromAmino(object.custom); - } - if (object.body !== undefined && object.body !== null) { - message.body = object.body; - } - if (object.response_body !== undefined && object.response_body !== null) { - message.responseBody = object.response_body; - } - message.additionalBindings = object.additional_bindings?.map(e => exports.HttpRule.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.selector = message.selector === "" ? undefined : message.selector; - obj.get = message.get === null ? undefined : message.get; - obj.put = message.put === null ? undefined : message.put; - obj.post = message.post === null ? undefined : message.post; - obj.delete = message.delete === null ? undefined : message.delete; - obj.patch = message.patch === null ? undefined : message.patch; - obj.custom = message.custom ? exports.CustomHttpPattern.toAmino(message.custom) : undefined; - obj.body = message.body === "" ? undefined : message.body; - obj.response_body = message.responseBody === "" ? undefined : message.responseBody; - if (message.additionalBindings) { - obj.additional_bindings = message.additionalBindings.map(e => e ? exports.HttpRule.toAmino(e) : undefined); - } - else { - obj.additional_bindings = message.additionalBindings; - } - return obj; - }, - fromAminoMsg(object) { - return exports.HttpRule.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.HttpRule.decode(message.value); - }, - toProto(message) { - return exports.HttpRule.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.HttpRule", - value: exports.HttpRule.encode(message).finish() - }; - } -}; -function createBaseCustomHttpPattern() { - return { - kind: "", - path: "" - }; -} -exports.CustomHttpPattern = { - typeUrl: "/google.api.CustomHttpPattern", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.kind !== "") { - writer.uint32(10).string(message.kind); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCustomHttpPattern(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCustomHttpPattern(); - message.kind = object.kind ?? ""; - message.path = object.path ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCustomHttpPattern(); - if (object.kind !== undefined && object.kind !== null) { - message.kind = object.kind; - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.kind = message.kind === "" ? undefined : message.kind; - obj.path = message.path === "" ? undefined : message.path; - return obj; - }, - fromAminoMsg(object) { - return exports.CustomHttpPattern.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CustomHttpPattern.decode(message.value); - }, - toProto(message) { - return exports.CustomHttpPattern.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.api.CustomHttpPattern", - value: exports.CustomHttpPattern.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/google/bundle.d.ts b/packages/api/dist/google/bundle.d.ts deleted file mode 100644 index 014494c1..00000000 --- a/packages/api/dist/google/bundle.d.ts +++ /dev/null @@ -1,398 +0,0 @@ -import * as _115 from "./protobuf/descriptor"; -import * as _116 from "./protobuf/any"; -import * as _117 from "./protobuf/timestamp"; -import * as _118 from "./protobuf/duration"; -export declare namespace google { - const protobuf: { - Duration: { - typeUrl: string; - encode(message: _118.Duration, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _118.Duration; - fromPartial(object: Partial<_118.Duration>): _118.Duration; - fromAmino(object: string): _118.Duration; - toAmino(message: _118.Duration): string; - fromAminoMsg(object: _118.DurationAminoMsg): _118.Duration; - fromProtoMsg(message: _118.DurationProtoMsg): _118.Duration; - toProto(message: _118.Duration): Uint8Array; - toProtoMsg(message: _118.Duration): _118.DurationProtoMsg; - }; - Timestamp: { - typeUrl: string; - encode(message: _117.Timestamp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _117.Timestamp; - fromPartial(object: Partial<_117.Timestamp>): _117.Timestamp; - fromAmino(object: string): _117.Timestamp; - toAmino(message: _117.Timestamp): string; - fromAminoMsg(object: _117.TimestampAminoMsg): _117.Timestamp; - fromProtoMsg(message: _117.TimestampProtoMsg): _117.Timestamp; - toProto(message: _117.Timestamp): Uint8Array; - toProtoMsg(message: _117.Timestamp): _117.TimestampProtoMsg; - }; - Any: { - typeUrl: string; - encode(message: _116.Any, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _116.Any; - fromPartial(object: Partial<_116.Any>): _116.Any; - fromAmino(object: _116.AnyAmino): _116.Any; - toAmino(message: _116.Any): _116.AnyAmino; - fromAminoMsg(object: _116.AnyAminoMsg): _116.Any; - fromProtoMsg(message: _116.AnyProtoMsg): _116.Any; - toProto(message: _116.Any): Uint8Array; - toProtoMsg(message: _116.Any): _116.AnyProtoMsg; - }; - fieldDescriptorProto_TypeFromJSON(object: any): _115.FieldDescriptorProto_Type; - fieldDescriptorProto_TypeToJSON(object: _115.FieldDescriptorProto_Type): string; - fieldDescriptorProto_LabelFromJSON(object: any): _115.FieldDescriptorProto_Label; - fieldDescriptorProto_LabelToJSON(object: _115.FieldDescriptorProto_Label): string; - fileOptions_OptimizeModeFromJSON(object: any): _115.FileOptions_OptimizeMode; - fileOptions_OptimizeModeToJSON(object: _115.FileOptions_OptimizeMode): string; - fieldOptions_CTypeFromJSON(object: any): _115.FieldOptions_CType; - fieldOptions_CTypeToJSON(object: _115.FieldOptions_CType): string; - fieldOptions_JSTypeFromJSON(object: any): _115.FieldOptions_JSType; - fieldOptions_JSTypeToJSON(object: _115.FieldOptions_JSType): string; - methodOptions_IdempotencyLevelFromJSON(object: any): _115.MethodOptions_IdempotencyLevel; - methodOptions_IdempotencyLevelToJSON(object: _115.MethodOptions_IdempotencyLevel): string; - FieldDescriptorProto_Type: typeof _115.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeSDKType: typeof _115.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeAmino: typeof _115.FieldDescriptorProto_Type; - FieldDescriptorProto_Label: typeof _115.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelSDKType: typeof _115.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelAmino: typeof _115.FieldDescriptorProto_Label; - FileOptions_OptimizeMode: typeof _115.FileOptions_OptimizeMode; - FileOptions_OptimizeModeSDKType: typeof _115.FileOptions_OptimizeMode; - FileOptions_OptimizeModeAmino: typeof _115.FileOptions_OptimizeMode; - FieldOptions_CType: typeof _115.FieldOptions_CType; - FieldOptions_CTypeSDKType: typeof _115.FieldOptions_CType; - FieldOptions_CTypeAmino: typeof _115.FieldOptions_CType; - FieldOptions_JSType: typeof _115.FieldOptions_JSType; - FieldOptions_JSTypeSDKType: typeof _115.FieldOptions_JSType; - FieldOptions_JSTypeAmino: typeof _115.FieldOptions_JSType; - MethodOptions_IdempotencyLevel: typeof _115.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelSDKType: typeof _115.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelAmino: typeof _115.MethodOptions_IdempotencyLevel; - FileDescriptorSet: { - typeUrl: string; - encode(message: _115.FileDescriptorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileDescriptorSet; - fromPartial(object: Partial<_115.FileDescriptorSet>): _115.FileDescriptorSet; - fromAmino(object: _115.FileDescriptorSetAmino): _115.FileDescriptorSet; - toAmino(message: _115.FileDescriptorSet): _115.FileDescriptorSetAmino; - fromAminoMsg(object: _115.FileDescriptorSetAminoMsg): _115.FileDescriptorSet; - fromProtoMsg(message: _115.FileDescriptorSetProtoMsg): _115.FileDescriptorSet; - toProto(message: _115.FileDescriptorSet): Uint8Array; - toProtoMsg(message: _115.FileDescriptorSet): _115.FileDescriptorSetProtoMsg; - }; - FileDescriptorProto: { - typeUrl: string; - encode(message: _115.FileDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileDescriptorProto; - fromPartial(object: Partial<_115.FileDescriptorProto>): _115.FileDescriptorProto; - fromAmino(object: _115.FileDescriptorProtoAmino): _115.FileDescriptorProto; - toAmino(message: _115.FileDescriptorProto): _115.FileDescriptorProtoAmino; - fromAminoMsg(object: _115.FileDescriptorProtoAminoMsg): _115.FileDescriptorProto; - fromProtoMsg(message: _115.FileDescriptorProtoProtoMsg): _115.FileDescriptorProto; - toProto(message: _115.FileDescriptorProto): Uint8Array; - toProtoMsg(message: _115.FileDescriptorProto): _115.FileDescriptorProtoProtoMsg; - }; - DescriptorProto: { - typeUrl: string; - encode(message: _115.DescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto; - fromPartial(object: Partial<_115.DescriptorProto>): _115.DescriptorProto; - fromAmino(object: _115.DescriptorProtoAmino): _115.DescriptorProto; - toAmino(message: _115.DescriptorProto): _115.DescriptorProtoAmino; - fromAminoMsg(object: _115.DescriptorProtoAminoMsg): _115.DescriptorProto; - fromProtoMsg(message: _115.DescriptorProtoProtoMsg): _115.DescriptorProto; - toProto(message: _115.DescriptorProto): Uint8Array; - toProtoMsg(message: _115.DescriptorProto): _115.DescriptorProtoProtoMsg; - }; - DescriptorProto_ExtensionRange: { - typeUrl: string; - encode(message: _115.DescriptorProto_ExtensionRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto_ExtensionRange; - fromPartial(object: Partial<_115.DescriptorProto_ExtensionRange>): _115.DescriptorProto_ExtensionRange; - fromAmino(object: _115.DescriptorProto_ExtensionRangeAmino): _115.DescriptorProto_ExtensionRange; - toAmino(message: _115.DescriptorProto_ExtensionRange): _115.DescriptorProto_ExtensionRangeAmino; - fromAminoMsg(object: _115.DescriptorProto_ExtensionRangeAminoMsg): _115.DescriptorProto_ExtensionRange; - fromProtoMsg(message: _115.DescriptorProto_ExtensionRangeProtoMsg): _115.DescriptorProto_ExtensionRange; - toProto(message: _115.DescriptorProto_ExtensionRange): Uint8Array; - toProtoMsg(message: _115.DescriptorProto_ExtensionRange): _115.DescriptorProto_ExtensionRangeProtoMsg; - }; - DescriptorProto_ReservedRange: { - typeUrl: string; - encode(message: _115.DescriptorProto_ReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.DescriptorProto_ReservedRange; - fromPartial(object: Partial<_115.DescriptorProto_ReservedRange>): _115.DescriptorProto_ReservedRange; - fromAmino(object: _115.DescriptorProto_ReservedRangeAmino): _115.DescriptorProto_ReservedRange; - toAmino(message: _115.DescriptorProto_ReservedRange): _115.DescriptorProto_ReservedRangeAmino; - fromAminoMsg(object: _115.DescriptorProto_ReservedRangeAminoMsg): _115.DescriptorProto_ReservedRange; - fromProtoMsg(message: _115.DescriptorProto_ReservedRangeProtoMsg): _115.DescriptorProto_ReservedRange; - toProto(message: _115.DescriptorProto_ReservedRange): Uint8Array; - toProtoMsg(message: _115.DescriptorProto_ReservedRange): _115.DescriptorProto_ReservedRangeProtoMsg; - }; - ExtensionRangeOptions: { - typeUrl: string; - encode(message: _115.ExtensionRangeOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ExtensionRangeOptions; - fromPartial(object: Partial<_115.ExtensionRangeOptions>): _115.ExtensionRangeOptions; - fromAmino(object: _115.ExtensionRangeOptionsAmino): _115.ExtensionRangeOptions; - toAmino(message: _115.ExtensionRangeOptions): _115.ExtensionRangeOptionsAmino; - fromAminoMsg(object: _115.ExtensionRangeOptionsAminoMsg): _115.ExtensionRangeOptions; - fromProtoMsg(message: _115.ExtensionRangeOptionsProtoMsg): _115.ExtensionRangeOptions; - toProto(message: _115.ExtensionRangeOptions): Uint8Array; - toProtoMsg(message: _115.ExtensionRangeOptions): _115.ExtensionRangeOptionsProtoMsg; - }; - FieldDescriptorProto: { - typeUrl: string; - encode(message: _115.FieldDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FieldDescriptorProto; - fromPartial(object: Partial<_115.FieldDescriptorProto>): _115.FieldDescriptorProto; - fromAmino(object: _115.FieldDescriptorProtoAmino): _115.FieldDescriptorProto; - toAmino(message: _115.FieldDescriptorProto): _115.FieldDescriptorProtoAmino; - fromAminoMsg(object: _115.FieldDescriptorProtoAminoMsg): _115.FieldDescriptorProto; - fromProtoMsg(message: _115.FieldDescriptorProtoProtoMsg): _115.FieldDescriptorProto; - toProto(message: _115.FieldDescriptorProto): Uint8Array; - toProtoMsg(message: _115.FieldDescriptorProto): _115.FieldDescriptorProtoProtoMsg; - }; - OneofDescriptorProto: { - typeUrl: string; - encode(message: _115.OneofDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.OneofDescriptorProto; - fromPartial(object: Partial<_115.OneofDescriptorProto>): _115.OneofDescriptorProto; - fromAmino(object: _115.OneofDescriptorProtoAmino): _115.OneofDescriptorProto; - toAmino(message: _115.OneofDescriptorProto): _115.OneofDescriptorProtoAmino; - fromAminoMsg(object: _115.OneofDescriptorProtoAminoMsg): _115.OneofDescriptorProto; - fromProtoMsg(message: _115.OneofDescriptorProtoProtoMsg): _115.OneofDescriptorProto; - toProto(message: _115.OneofDescriptorProto): Uint8Array; - toProtoMsg(message: _115.OneofDescriptorProto): _115.OneofDescriptorProtoProtoMsg; - }; - EnumDescriptorProto: { - typeUrl: string; - encode(message: _115.EnumDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumDescriptorProto; - fromPartial(object: Partial<_115.EnumDescriptorProto>): _115.EnumDescriptorProto; - fromAmino(object: _115.EnumDescriptorProtoAmino): _115.EnumDescriptorProto; - toAmino(message: _115.EnumDescriptorProto): _115.EnumDescriptorProtoAmino; - fromAminoMsg(object: _115.EnumDescriptorProtoAminoMsg): _115.EnumDescriptorProto; - fromProtoMsg(message: _115.EnumDescriptorProtoProtoMsg): _115.EnumDescriptorProto; - toProto(message: _115.EnumDescriptorProto): Uint8Array; - toProtoMsg(message: _115.EnumDescriptorProto): _115.EnumDescriptorProtoProtoMsg; - }; - EnumDescriptorProto_EnumReservedRange: { - typeUrl: string; - encode(message: _115.EnumDescriptorProto_EnumReservedRange, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumDescriptorProto_EnumReservedRange; - fromPartial(object: Partial<_115.EnumDescriptorProto_EnumReservedRange>): _115.EnumDescriptorProto_EnumReservedRange; - fromAmino(object: _115.EnumDescriptorProto_EnumReservedRangeAmino): _115.EnumDescriptorProto_EnumReservedRange; - toAmino(message: _115.EnumDescriptorProto_EnumReservedRange): _115.EnumDescriptorProto_EnumReservedRangeAmino; - fromAminoMsg(object: _115.EnumDescriptorProto_EnumReservedRangeAminoMsg): _115.EnumDescriptorProto_EnumReservedRange; - fromProtoMsg(message: _115.EnumDescriptorProto_EnumReservedRangeProtoMsg): _115.EnumDescriptorProto_EnumReservedRange; - toProto(message: _115.EnumDescriptorProto_EnumReservedRange): Uint8Array; - toProtoMsg(message: _115.EnumDescriptorProto_EnumReservedRange): _115.EnumDescriptorProto_EnumReservedRangeProtoMsg; - }; - EnumValueDescriptorProto: { - typeUrl: string; - encode(message: _115.EnumValueDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumValueDescriptorProto; - fromPartial(object: Partial<_115.EnumValueDescriptorProto>): _115.EnumValueDescriptorProto; - fromAmino(object: _115.EnumValueDescriptorProtoAmino): _115.EnumValueDescriptorProto; - toAmino(message: _115.EnumValueDescriptorProto): _115.EnumValueDescriptorProtoAmino; - fromAminoMsg(object: _115.EnumValueDescriptorProtoAminoMsg): _115.EnumValueDescriptorProto; - fromProtoMsg(message: _115.EnumValueDescriptorProtoProtoMsg): _115.EnumValueDescriptorProto; - toProto(message: _115.EnumValueDescriptorProto): Uint8Array; - toProtoMsg(message: _115.EnumValueDescriptorProto): _115.EnumValueDescriptorProtoProtoMsg; - }; - ServiceDescriptorProto: { - typeUrl: string; - encode(message: _115.ServiceDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ServiceDescriptorProto; - fromPartial(object: Partial<_115.ServiceDescriptorProto>): _115.ServiceDescriptorProto; - fromAmino(object: _115.ServiceDescriptorProtoAmino): _115.ServiceDescriptorProto; - toAmino(message: _115.ServiceDescriptorProto): _115.ServiceDescriptorProtoAmino; - fromAminoMsg(object: _115.ServiceDescriptorProtoAminoMsg): _115.ServiceDescriptorProto; - fromProtoMsg(message: _115.ServiceDescriptorProtoProtoMsg): _115.ServiceDescriptorProto; - toProto(message: _115.ServiceDescriptorProto): Uint8Array; - toProtoMsg(message: _115.ServiceDescriptorProto): _115.ServiceDescriptorProtoProtoMsg; - }; - MethodDescriptorProto: { - typeUrl: string; - encode(message: _115.MethodDescriptorProto, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MethodDescriptorProto; - fromPartial(object: Partial<_115.MethodDescriptorProto>): _115.MethodDescriptorProto; - fromAmino(object: _115.MethodDescriptorProtoAmino): _115.MethodDescriptorProto; - toAmino(message: _115.MethodDescriptorProto): _115.MethodDescriptorProtoAmino; - fromAminoMsg(object: _115.MethodDescriptorProtoAminoMsg): _115.MethodDescriptorProto; - fromProtoMsg(message: _115.MethodDescriptorProtoProtoMsg): _115.MethodDescriptorProto; - toProto(message: _115.MethodDescriptorProto): Uint8Array; - toProtoMsg(message: _115.MethodDescriptorProto): _115.MethodDescriptorProtoProtoMsg; - }; - FileOptions: { - typeUrl: string; - encode(message: _115.FileOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FileOptions; - fromPartial(object: Partial<_115.FileOptions>): _115.FileOptions; - fromAmino(object: _115.FileOptionsAmino): _115.FileOptions; - toAmino(message: _115.FileOptions): _115.FileOptionsAmino; - fromAminoMsg(object: _115.FileOptionsAminoMsg): _115.FileOptions; - fromProtoMsg(message: _115.FileOptionsProtoMsg): _115.FileOptions; - toProto(message: _115.FileOptions): Uint8Array; - toProtoMsg(message: _115.FileOptions): _115.FileOptionsProtoMsg; - }; - MessageOptions: { - typeUrl: string; - encode(message: _115.MessageOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MessageOptions; - fromPartial(object: Partial<_115.MessageOptions>): _115.MessageOptions; - fromAmino(object: _115.MessageOptionsAmino): _115.MessageOptions; - toAmino(message: _115.MessageOptions): _115.MessageOptionsAmino; - fromAminoMsg(object: _115.MessageOptionsAminoMsg): _115.MessageOptions; - fromProtoMsg(message: _115.MessageOptionsProtoMsg): _115.MessageOptions; - toProto(message: _115.MessageOptions): Uint8Array; - toProtoMsg(message: _115.MessageOptions): _115.MessageOptionsProtoMsg; - }; - FieldOptions: { - typeUrl: string; - encode(message: _115.FieldOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.FieldOptions; - fromPartial(object: Partial<_115.FieldOptions>): _115.FieldOptions; - fromAmino(object: _115.FieldOptionsAmino): _115.FieldOptions; - toAmino(message: _115.FieldOptions): _115.FieldOptionsAmino; - fromAminoMsg(object: _115.FieldOptionsAminoMsg): _115.FieldOptions; - fromProtoMsg(message: _115.FieldOptionsProtoMsg): _115.FieldOptions; - toProto(message: _115.FieldOptions): Uint8Array; - toProtoMsg(message: _115.FieldOptions): _115.FieldOptionsProtoMsg; - }; - OneofOptions: { - typeUrl: string; - encode(message: _115.OneofOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.OneofOptions; - fromPartial(object: Partial<_115.OneofOptions>): _115.OneofOptions; - fromAmino(object: _115.OneofOptionsAmino): _115.OneofOptions; - toAmino(message: _115.OneofOptions): _115.OneofOptionsAmino; - fromAminoMsg(object: _115.OneofOptionsAminoMsg): _115.OneofOptions; - fromProtoMsg(message: _115.OneofOptionsProtoMsg): _115.OneofOptions; - toProto(message: _115.OneofOptions): Uint8Array; - toProtoMsg(message: _115.OneofOptions): _115.OneofOptionsProtoMsg; - }; - EnumOptions: { - typeUrl: string; - encode(message: _115.EnumOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumOptions; - fromPartial(object: Partial<_115.EnumOptions>): _115.EnumOptions; - fromAmino(object: _115.EnumOptionsAmino): _115.EnumOptions; - toAmino(message: _115.EnumOptions): _115.EnumOptionsAmino; - fromAminoMsg(object: _115.EnumOptionsAminoMsg): _115.EnumOptions; - fromProtoMsg(message: _115.EnumOptionsProtoMsg): _115.EnumOptions; - toProto(message: _115.EnumOptions): Uint8Array; - toProtoMsg(message: _115.EnumOptions): _115.EnumOptionsProtoMsg; - }; - EnumValueOptions: { - typeUrl: string; - encode(message: _115.EnumValueOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.EnumValueOptions; - fromPartial(object: Partial<_115.EnumValueOptions>): _115.EnumValueOptions; - fromAmino(object: _115.EnumValueOptionsAmino): _115.EnumValueOptions; - toAmino(message: _115.EnumValueOptions): _115.EnumValueOptionsAmino; - fromAminoMsg(object: _115.EnumValueOptionsAminoMsg): _115.EnumValueOptions; - fromProtoMsg(message: _115.EnumValueOptionsProtoMsg): _115.EnumValueOptions; - toProto(message: _115.EnumValueOptions): Uint8Array; - toProtoMsg(message: _115.EnumValueOptions): _115.EnumValueOptionsProtoMsg; - }; - ServiceOptions: { - typeUrl: string; - encode(message: _115.ServiceOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.ServiceOptions; - fromPartial(object: Partial<_115.ServiceOptions>): _115.ServiceOptions; - fromAmino(object: _115.ServiceOptionsAmino): _115.ServiceOptions; - toAmino(message: _115.ServiceOptions): _115.ServiceOptionsAmino; - fromAminoMsg(object: _115.ServiceOptionsAminoMsg): _115.ServiceOptions; - fromProtoMsg(message: _115.ServiceOptionsProtoMsg): _115.ServiceOptions; - toProto(message: _115.ServiceOptions): Uint8Array; - toProtoMsg(message: _115.ServiceOptions): _115.ServiceOptionsProtoMsg; - }; - MethodOptions: { - typeUrl: string; - encode(message: _115.MethodOptions, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.MethodOptions; - fromPartial(object: Partial<_115.MethodOptions>): _115.MethodOptions; - fromAmino(object: _115.MethodOptionsAmino): _115.MethodOptions; - toAmino(message: _115.MethodOptions): _115.MethodOptionsAmino; - fromAminoMsg(object: _115.MethodOptionsAminoMsg): _115.MethodOptions; - fromProtoMsg(message: _115.MethodOptionsProtoMsg): _115.MethodOptions; - toProto(message: _115.MethodOptions): Uint8Array; - toProtoMsg(message: _115.MethodOptions): _115.MethodOptionsProtoMsg; - }; - UninterpretedOption: { - typeUrl: string; - encode(message: _115.UninterpretedOption, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.UninterpretedOption; - fromPartial(object: Partial<_115.UninterpretedOption>): _115.UninterpretedOption; - fromAmino(object: _115.UninterpretedOptionAmino): _115.UninterpretedOption; - toAmino(message: _115.UninterpretedOption): _115.UninterpretedOptionAmino; - fromAminoMsg(object: _115.UninterpretedOptionAminoMsg): _115.UninterpretedOption; - fromProtoMsg(message: _115.UninterpretedOptionProtoMsg): _115.UninterpretedOption; - toProto(message: _115.UninterpretedOption): Uint8Array; - toProtoMsg(message: _115.UninterpretedOption): _115.UninterpretedOptionProtoMsg; - }; - UninterpretedOption_NamePart: { - typeUrl: string; - encode(message: _115.UninterpretedOption_NamePart, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.UninterpretedOption_NamePart; - fromPartial(object: Partial<_115.UninterpretedOption_NamePart>): _115.UninterpretedOption_NamePart; - fromAmino(object: _115.UninterpretedOption_NamePartAmino): _115.UninterpretedOption_NamePart; - toAmino(message: _115.UninterpretedOption_NamePart): _115.UninterpretedOption_NamePartAmino; - fromAminoMsg(object: _115.UninterpretedOption_NamePartAminoMsg): _115.UninterpretedOption_NamePart; - fromProtoMsg(message: _115.UninterpretedOption_NamePartProtoMsg): _115.UninterpretedOption_NamePart; - toProto(message: _115.UninterpretedOption_NamePart): Uint8Array; - toProtoMsg(message: _115.UninterpretedOption_NamePart): _115.UninterpretedOption_NamePartProtoMsg; - }; - SourceCodeInfo: { - typeUrl: string; - encode(message: _115.SourceCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.SourceCodeInfo; - fromPartial(object: Partial<_115.SourceCodeInfo>): _115.SourceCodeInfo; - fromAmino(object: _115.SourceCodeInfoAmino): _115.SourceCodeInfo; - toAmino(message: _115.SourceCodeInfo): _115.SourceCodeInfoAmino; - fromAminoMsg(object: _115.SourceCodeInfoAminoMsg): _115.SourceCodeInfo; - fromProtoMsg(message: _115.SourceCodeInfoProtoMsg): _115.SourceCodeInfo; - toProto(message: _115.SourceCodeInfo): Uint8Array; - toProtoMsg(message: _115.SourceCodeInfo): _115.SourceCodeInfoProtoMsg; - }; - SourceCodeInfo_Location: { - typeUrl: string; - encode(message: _115.SourceCodeInfo_Location, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.SourceCodeInfo_Location; - fromPartial(object: Partial<_115.SourceCodeInfo_Location>): _115.SourceCodeInfo_Location; - fromAmino(object: _115.SourceCodeInfo_LocationAmino): _115.SourceCodeInfo_Location; - toAmino(message: _115.SourceCodeInfo_Location): _115.SourceCodeInfo_LocationAmino; - fromAminoMsg(object: _115.SourceCodeInfo_LocationAminoMsg): _115.SourceCodeInfo_Location; - fromProtoMsg(message: _115.SourceCodeInfo_LocationProtoMsg): _115.SourceCodeInfo_Location; - toProto(message: _115.SourceCodeInfo_Location): Uint8Array; - toProtoMsg(message: _115.SourceCodeInfo_Location): _115.SourceCodeInfo_LocationProtoMsg; - }; - GeneratedCodeInfo: { - typeUrl: string; - encode(message: _115.GeneratedCodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.GeneratedCodeInfo; - fromPartial(object: Partial<_115.GeneratedCodeInfo>): _115.GeneratedCodeInfo; - fromAmino(object: _115.GeneratedCodeInfoAmino): _115.GeneratedCodeInfo; - toAmino(message: _115.GeneratedCodeInfo): _115.GeneratedCodeInfoAmino; - fromAminoMsg(object: _115.GeneratedCodeInfoAminoMsg): _115.GeneratedCodeInfo; - fromProtoMsg(message: _115.GeneratedCodeInfoProtoMsg): _115.GeneratedCodeInfo; - toProto(message: _115.GeneratedCodeInfo): Uint8Array; - toProtoMsg(message: _115.GeneratedCodeInfo): _115.GeneratedCodeInfoProtoMsg; - }; - GeneratedCodeInfo_Annotation: { - typeUrl: string; - encode(message: _115.GeneratedCodeInfo_Annotation, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _115.GeneratedCodeInfo_Annotation; - fromPartial(object: Partial<_115.GeneratedCodeInfo_Annotation>): _115.GeneratedCodeInfo_Annotation; - fromAmino(object: _115.GeneratedCodeInfo_AnnotationAmino): _115.GeneratedCodeInfo_Annotation; - toAmino(message: _115.GeneratedCodeInfo_Annotation): _115.GeneratedCodeInfo_AnnotationAmino; - fromAminoMsg(object: _115.GeneratedCodeInfo_AnnotationAminoMsg): _115.GeneratedCodeInfo_Annotation; - fromProtoMsg(message: _115.GeneratedCodeInfo_AnnotationProtoMsg): _115.GeneratedCodeInfo_Annotation; - toProto(message: _115.GeneratedCodeInfo_Annotation): Uint8Array; - toProtoMsg(message: _115.GeneratedCodeInfo_Annotation): _115.GeneratedCodeInfo_AnnotationProtoMsg; - }; - }; -} diff --git a/packages/api/dist/google/bundle.js b/packages/api/dist/google/bundle.js deleted file mode 100644 index 92da1163..00000000 --- a/packages/api/dist/google/bundle.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.google = void 0; -//@ts-nocheck -const _115 = __importStar(require("./protobuf/descriptor")); -const _116 = __importStar(require("./protobuf/any")); -const _117 = __importStar(require("./protobuf/timestamp")); -const _118 = __importStar(require("./protobuf/duration")); -var google; -(function (google) { - google.protobuf = { - ..._115, - ..._116, - ..._117, - ..._118 - }; -})(google || (exports.google = google = {})); diff --git a/packages/api/dist/google/protobuf/any.d.ts b/packages/api/dist/google/protobuf/any.d.ts deleted file mode 100644 index 67f7b844..00000000 --- a/packages/api/dist/google/protobuf/any.d.ts +++ /dev/null @@ -1,338 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - $typeUrl?: "/google.protobuf.Any" | string; - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Uint8Array; -} -export interface AnyProtoMsg { - typeUrl: "/google.protobuf.Any"; - value: Uint8Array; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnyAmino { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: any; -} -export interface AnyAminoMsg { - type: string; - value: AnyAmino; -} -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface AnySDKType { - $typeUrl?: "/google.protobuf.Any" | string; - type_url: string; - value: Uint8Array; -} -export declare const Any: { - typeUrl: string; - encode(message: Any, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Any; - fromPartial(object: Partial): Any; - fromAmino(object: AnyAmino): Any; - toAmino(message: Any): AnyAmino; - fromAminoMsg(object: AnyAminoMsg): Any; - fromProtoMsg(message: AnyProtoMsg): Any; - toProto(message: Any): Uint8Array; - toProtoMsg(message: Any): AnyProtoMsg; -}; diff --git a/packages/api/dist/google/protobuf/any.js b/packages/api/dist/google/protobuf/any.js deleted file mode 100644 index ad29bfbc..00000000 --- a/packages/api/dist/google/protobuf/any.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Any = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -function createBaseAny() { - return { - $typeUrl: "/google.protobuf.Any", - typeUrl: "", - value: new Uint8Array() - }; -} -exports.Any = { - typeUrl: "/google.protobuf.Any", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.typeUrl !== "") { - writer.uint32(10).string(message.typeUrl); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAny(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.typeUrl = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAny(); - message.typeUrl = object.typeUrl ?? ""; - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - return { - typeUrl: object.type, - value: object.value - }; - }, - toAmino(message) { - const obj = {}; - obj.type = message.typeUrl; - obj.value = message.value; - return obj; - }, - fromAminoMsg(object) { - return exports.Any.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Any.decode(message.value); - }, - toProto(message) { - return exports.Any.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Any", - value: exports.Any.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/google/protobuf/descriptor.d.ts b/packages/api/dist/google/protobuf/descriptor.d.ts deleted file mode 100644 index 87ad1172..00000000 --- a/packages/api/dist/google/protobuf/descriptor.d.ts +++ /dev/null @@ -1,2278 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export declare enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18, - UNRECOGNIZED = -1 -} -export declare const FieldDescriptorProto_TypeSDKType: typeof FieldDescriptorProto_Type; -export declare const FieldDescriptorProto_TypeAmino: typeof FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string; -export declare enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - UNRECOGNIZED = -1 -} -export declare const FieldDescriptorProto_LabelSDKType: typeof FieldDescriptorProto_Label; -export declare const FieldDescriptorProto_LabelAmino: typeof FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string; -/** Generated classes can be optimized for speed or code size. */ -export declare enum FileOptions_OptimizeMode { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - SPEED = 1, - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3, - UNRECOGNIZED = -1 -} -export declare const FileOptions_OptimizeModeSDKType: typeof FileOptions_OptimizeMode; -export declare const FileOptions_OptimizeModeAmino: typeof FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string; -export declare enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - UNRECOGNIZED = -1 -} -export declare const FieldOptions_CTypeSDKType: typeof FieldOptions_CType; -export declare const FieldOptions_CTypeAmino: typeof FieldOptions_CType; -export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType; -export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string; -export declare enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2, - UNRECOGNIZED = -1 -} -export declare const FieldOptions_JSTypeSDKType: typeof FieldOptions_JSType; -export declare const FieldOptions_JSTypeAmino: typeof FieldOptions_JSType; -export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType; -export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export declare enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2, - UNRECOGNIZED = -1 -} -export declare const MethodOptions_IdempotencyLevelSDKType: typeof MethodOptions_IdempotencyLevel; -export declare const MethodOptions_IdempotencyLevelAmino: typeof MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -export interface FileDescriptorSetProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorSet"; - value: Uint8Array; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetAmino { - file?: FileDescriptorProtoAmino[]; -} -export interface FileDescriptorSetAminoMsg { - type: "/google.protobuf.FileDescriptorSet"; - value: FileDescriptorSetAmino; -} -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSetSDKType { - file: FileDescriptorProtoSDKType[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -export interface FileDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FileDescriptorProto"; - value: Uint8Array; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoAmino { - /** file name, relative to root of source tree */ - name?: string; - package?: string; - /** Names of files imported by this file. */ - dependency?: string[]; - /** Indexes of the public imported files in the dependency list above. */ - public_dependency?: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weak_dependency?: number[]; - /** All top-level definitions in this file. */ - message_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - service?: ServiceDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - options?: FileOptionsAmino; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - source_code_info?: SourceCodeInfoAmino; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax?: string; -} -export interface FileDescriptorProtoAminoMsg { - type: "/google.protobuf.FileDescriptorProto"; - value: FileDescriptorProtoAmino; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProtoSDKType { - name: string; - package: string; - dependency: string[]; - public_dependency: number[]; - weak_dependency: number[]; - message_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - service: ServiceDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - options?: FileOptionsSDKType; - source_code_info?: SourceCodeInfoSDKType; - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options?: MessageOptions; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.DescriptorProto"; - value: Uint8Array; -} -/** Describes a message type. */ -export interface DescriptorProtoAmino { - name?: string; - field?: FieldDescriptorProtoAmino[]; - extension?: FieldDescriptorProtoAmino[]; - nested_type?: DescriptorProtoAmino[]; - enum_type?: EnumDescriptorProtoAmino[]; - extension_range?: DescriptorProto_ExtensionRangeAmino[]; - oneof_decl?: OneofDescriptorProtoAmino[]; - options?: MessageOptionsAmino; - reserved_range?: DescriptorProto_ReservedRangeAmino[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reserved_name?: string[]; -} -export interface DescriptorProtoAminoMsg { - type: "/google.protobuf.DescriptorProto"; - value: DescriptorProtoAmino; -} -/** Describes a message type. */ -export interface DescriptorProtoSDKType { - name: string; - field: FieldDescriptorProtoSDKType[]; - extension: FieldDescriptorProtoSDKType[]; - nested_type: DescriptorProtoSDKType[]; - enum_type: EnumDescriptorProtoSDKType[]; - extension_range: DescriptorProto_ExtensionRangeSDKType[]; - oneof_decl: OneofDescriptorProtoSDKType[]; - options?: MessageOptionsSDKType; - reserved_range: DescriptorProto_ReservedRangeSDKType[]; - reserved_name: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options?: ExtensionRangeOptions; -} -export interface DescriptorProto_ExtensionRangeProtoMsg { - typeUrl: "/google.protobuf.ExtensionRange"; - value: Uint8Array; -} -export interface DescriptorProto_ExtensionRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; - options?: ExtensionRangeOptionsAmino; -} -export interface DescriptorProto_ExtensionRangeAminoMsg { - type: "/google.protobuf.ExtensionRange"; - value: DescriptorProto_ExtensionRangeAmino; -} -export interface DescriptorProto_ExtensionRangeSDKType { - start: number; - end: number; - options?: ExtensionRangeOptionsSDKType; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface DescriptorProto_ReservedRangeProtoMsg { - typeUrl: "/google.protobuf.ReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Exclusive. */ - end?: number; -} -export interface DescriptorProto_ReservedRangeAminoMsg { - type: "/google.protobuf.ReservedRange"; - value: DescriptorProto_ReservedRangeAmino; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRangeSDKType { - start: number; - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ExtensionRangeOptionsProtoMsg { - typeUrl: "/google.protobuf.ExtensionRangeOptions"; - value: Uint8Array; -} -export interface ExtensionRangeOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ExtensionRangeOptionsAminoMsg { - type: "/google.protobuf.ExtensionRangeOptions"; - value: ExtensionRangeOptionsAmino; -} -export interface ExtensionRangeOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options?: FieldOptions; -} -export interface FieldDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.FieldDescriptorProto"; - value: Uint8Array; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoAmino { - name?: string; - number?: number; - label?: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type?: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - type_name?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * TODO(kenton): Base-64 encode? - */ - default_value?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneof_index?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - json_name?: string; - options?: FieldOptionsAmino; -} -export interface FieldDescriptorProtoAminoMsg { - type: "/google.protobuf.FieldDescriptorProto"; - value: FieldDescriptorProtoAmino; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProtoSDKType { - name: string; - number: number; - label: FieldDescriptorProto_Label; - type: FieldDescriptorProto_Type; - type_name: string; - extendee: string; - default_value: string; - oneof_index: number; - json_name: string; - options?: FieldOptionsSDKType; -} -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options?: OneofOptions; -} -export interface OneofDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.OneofDescriptorProto"; - value: Uint8Array; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoAmino { - name?: string; - options?: OneofOptionsAmino; -} -export interface OneofDescriptorProtoAminoMsg { - type: "/google.protobuf.OneofDescriptorProto"; - value: OneofDescriptorProtoAmino; -} -/** Describes a oneof. */ -export interface OneofDescriptorProtoSDKType { - name: string; - options?: OneofOptionsSDKType; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -export interface EnumDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumDescriptorProto"; - value: Uint8Array; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoAmino { - name?: string; - value?: EnumValueDescriptorProtoAmino[]; - options?: EnumOptionsAmino; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reserved_range?: EnumDescriptorProto_EnumReservedRangeAmino[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reserved_name?: string[]; -} -export interface EnumDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumDescriptorProto"; - value: EnumDescriptorProtoAmino; -} -/** Describes an enum type. */ -export interface EnumDescriptorProtoSDKType { - name: string; - value: EnumValueDescriptorProtoSDKType[]; - options?: EnumOptionsSDKType; - reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[]; - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { - typeUrl: "/google.protobuf.EnumReservedRange"; - value: Uint8Array; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeAmino { - /** Inclusive. */ - start?: number; - /** Inclusive. */ - end?: number; -} -export interface EnumDescriptorProto_EnumReservedRangeAminoMsg { - type: "/google.protobuf.EnumReservedRange"; - value: EnumDescriptorProto_EnumReservedRangeAmino; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRangeSDKType { - start: number; - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options?: EnumValueOptions; -} -export interface EnumValueDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.EnumValueDescriptorProto"; - value: Uint8Array; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoAmino { - name?: string; - number?: number; - options?: EnumValueOptionsAmino; -} -export interface EnumValueDescriptorProtoAminoMsg { - type: "/google.protobuf.EnumValueDescriptorProto"; - value: EnumValueDescriptorProtoAmino; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProtoSDKType { - name: string; - number: number; - options?: EnumValueOptionsSDKType; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options?: ServiceOptions; -} -export interface ServiceDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.ServiceDescriptorProto"; - value: Uint8Array; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoAmino { - name?: string; - method?: MethodDescriptorProtoAmino[]; - options?: ServiceOptionsAmino; -} -export interface ServiceDescriptorProtoAminoMsg { - type: "/google.protobuf.ServiceDescriptorProto"; - value: ServiceDescriptorProtoAmino; -} -/** Describes a service. */ -export interface ServiceDescriptorProtoSDKType { - name: string; - method: MethodDescriptorProtoSDKType[]; - options?: ServiceOptionsSDKType; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options?: MethodOptions; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface MethodDescriptorProtoProtoMsg { - typeUrl: "/google.protobuf.MethodDescriptorProto"; - value: Uint8Array; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoAmino { - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - input_type?: string; - output_type?: string; - options?: MethodOptionsAmino; - /** Identifies if client streams multiple client messages */ - client_streaming?: boolean; - /** Identifies if server streams multiple server messages */ - server_streaming?: boolean; -} -export interface MethodDescriptorProtoAminoMsg { - type: "/google.protobuf.MethodDescriptorProto"; - value: MethodDescriptorProtoAmino; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProtoSDKType { - name: string; - input_type: string; - output_type: string; - options?: MethodOptionsSDKType; - client_streaming: boolean; - server_streaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - javaOuterClassname: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** This option does nothing. */ - /** @deprecated */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FileOptionsProtoMsg { - typeUrl: "/google.protobuf.FileOptions"; - value: Uint8Array; -} -export interface FileOptionsAmino { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - java_package?: string; - /** - * If set, all the classes from the .proto file are wrapped in a single - * outer class with the given name. This applies to both Proto1 - * (equivalent to the old "--one_java_file" option) and Proto2 (where - * a .proto always translates to a single class, but you may want to - * explicitly choose the class name). - */ - java_outer_classname?: string; - /** - * If set true, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the outer class - * named by java_outer_classname. However, the outer class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - java_multiple_files?: boolean; - /** This option does nothing. */ - /** @deprecated */ - java_generate_equals_and_hash?: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - java_string_check_utf8?: boolean; - optimize_for?: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - go_package?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - cc_generic_services?: boolean; - java_generic_services?: boolean; - py_generic_services?: boolean; - php_generic_services?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - cc_enable_arenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objc_class_prefix?: string; - /** Namespace for generated classes; defaults to the package. */ - csharp_namespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swift_prefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - php_class_prefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - php_namespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - php_metadata_namespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - ruby_package?: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FileOptionsAminoMsg { - type: "/google.protobuf.FileOptions"; - value: FileOptionsAmino; -} -export interface FileOptionsSDKType { - java_package: string; - java_outer_classname: string; - java_multiple_files: boolean; - /** @deprecated */ - java_generate_equals_and_hash: boolean; - java_string_check_utf8: boolean; - optimize_for: FileOptions_OptimizeMode; - go_package: string; - cc_generic_services: boolean; - java_generic_services: boolean; - py_generic_services: boolean; - php_generic_services: boolean; - deprecated: boolean; - cc_enable_arenas: boolean; - objc_class_prefix: string; - csharp_namespace: string; - swift_prefix: string; - php_class_prefix: string; - php_namespace: string; - php_metadata_namespace: string; - ruby_package: string; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MessageOptionsProtoMsg { - typeUrl: "/google.protobuf.MessageOptions"; - value: Uint8Array; -} -export interface MessageOptionsAmino { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - message_set_wire_format?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - no_standard_descriptor_accessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated?: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - map_entry?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MessageOptionsAminoMsg { - type: "/google.protobuf.MessageOptions"; - value: MessageOptionsAmino; -} -export interface MessageOptionsSDKType { - message_set_wire_format: boolean; - no_standard_descriptor_accessor: boolean; - deprecated: boolean; - map_entry: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptionsProtoMsg { - typeUrl: "/google.protobuf.FieldOptions"; - value: Uint8Array; -} -export interface FieldOptionsAmino { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype?: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype?: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - */ - lazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated?: boolean; - /** For Google-internal migration only. Do not use. */ - weak?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface FieldOptionsAminoMsg { - type: "/google.protobuf.FieldOptions"; - value: FieldOptionsAmino; -} -export interface FieldOptionsSDKType { - ctype: FieldOptions_CType; - packed: boolean; - jstype: FieldOptions_JSType; - lazy: boolean; - deprecated: boolean; - weak: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface OneofOptionsProtoMsg { - typeUrl: "/google.protobuf.OneofOptions"; - value: Uint8Array; -} -export interface OneofOptionsAmino { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface OneofOptionsAminoMsg { - type: "/google.protobuf.OneofOptions"; - value: OneofOptionsAmino; -} -export interface OneofOptionsSDKType { - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumOptions"; - value: Uint8Array; -} -export interface EnumOptionsAmino { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allow_alias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumOptionsAminoMsg { - type: "/google.protobuf.EnumOptions"; - value: EnumOptionsAmino; -} -export interface EnumOptionsSDKType { - allow_alias: boolean; - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptionsProtoMsg { - typeUrl: "/google.protobuf.EnumValueOptions"; - value: Uint8Array; -} -export interface EnumValueOptionsAmino { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface EnumValueOptionsAminoMsg { - type: "/google.protobuf.EnumValueOptions"; - value: EnumValueOptionsAmino; -} -export interface EnumValueOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptionsProtoMsg { - typeUrl: "/google.protobuf.ServiceOptions"; - value: Uint8Array; -} -export interface ServiceOptionsAmino { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated?: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface ServiceOptionsAminoMsg { - type: "/google.protobuf.ServiceOptions"; - value: ServiceOptionsAmino; -} -export interface ServiceOptionsSDKType { - deprecated: boolean; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptionsProtoMsg { - typeUrl: "/google.protobuf.MethodOptions"; - value: Uint8Array; -} -export interface MethodOptionsAmino { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated?: boolean; - idempotency_level?: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpreted_option?: UninterpretedOptionAmino[]; -} -export interface MethodOptionsAminoMsg { - type: "/google.protobuf.MethodOptions"; - value: MethodOptionsAmino; -} -export interface MethodOptionsSDKType { - deprecated: boolean; - idempotency_level: MethodOptions_IdempotencyLevel; - uninterpreted_option: UninterpretedOptionSDKType[]; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: bigint; - negativeIntValue: bigint; - doubleValue: number; - stringValue: Uint8Array; - aggregateValue: string; -} -export interface UninterpretedOptionProtoMsg { - typeUrl: "/google.protobuf.UninterpretedOption"; - value: Uint8Array; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionAmino { - name?: UninterpretedOption_NamePartAmino[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifier_value?: string; - positive_int_value?: string; - negative_int_value?: string; - double_value?: number; - string_value?: string; - aggregate_value?: string; -} -export interface UninterpretedOptionAminoMsg { - type: "/google.protobuf.UninterpretedOption"; - value: UninterpretedOptionAmino; -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOptionSDKType { - name: UninterpretedOption_NamePartSDKType[]; - identifier_value: string; - positive_int_value: bigint; - negative_int_value: bigint; - double_value: number; - string_value: Uint8Array; - aggregate_value: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -export interface UninterpretedOption_NamePartProtoMsg { - typeUrl: "/google.protobuf.NamePart"; - value: Uint8Array; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartAmino { - name_part?: string; - is_extension?: boolean; -} -export interface UninterpretedOption_NamePartAminoMsg { - type: "/google.protobuf.NamePart"; - value: UninterpretedOption_NamePartAmino; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - */ -export interface UninterpretedOption_NamePartSDKType { - name_part: string; - is_extension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfoProtoMsg { - typeUrl: "/google.protobuf.SourceCodeInfo"; - value: Uint8Array; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoAmino { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location?: SourceCodeInfo_LocationAmino[]; -} -export interface SourceCodeInfoAminoMsg { - type: "/google.protobuf.SourceCodeInfo"; - value: SourceCodeInfoAmino; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfoSDKType { - location: SourceCodeInfo_LocationSDKType[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -export interface SourceCodeInfo_LocationProtoMsg { - typeUrl: "/google.protobuf.Location"; - value: Uint8Array; -} -export interface SourceCodeInfo_LocationAmino { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition. For - * example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path?: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span?: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to qux. - * // - * // Another line attached to qux. - * optional double qux = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to qux or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leading_comments?: string; - trailing_comments?: string; - leading_detached_comments?: string[]; -} -export interface SourceCodeInfo_LocationAminoMsg { - type: "/google.protobuf.Location"; - value: SourceCodeInfo_LocationAmino; -} -export interface SourceCodeInfo_LocationSDKType { - path: number[]; - span: number[]; - leading_comments: string; - trailing_comments: string; - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfoProtoMsg { - typeUrl: "/google.protobuf.GeneratedCodeInfo"; - value: Uint8Array; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoAmino { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation?: GeneratedCodeInfo_AnnotationAmino[]; -} -export interface GeneratedCodeInfoAminoMsg { - type: "/google.protobuf.GeneratedCodeInfo"; - value: GeneratedCodeInfoAmino; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfoSDKType { - annotation: GeneratedCodeInfo_AnnotationSDKType[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export interface GeneratedCodeInfo_AnnotationProtoMsg { - typeUrl: "/google.protobuf.Annotation"; - value: Uint8Array; -} -export interface GeneratedCodeInfo_AnnotationAmino { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path?: number[]; - /** Identifies the filesystem path to the original source .proto. */ - source_file?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end?: number; -} -export interface GeneratedCodeInfo_AnnotationAminoMsg { - type: "/google.protobuf.Annotation"; - value: GeneratedCodeInfo_AnnotationAmino; -} -export interface GeneratedCodeInfo_AnnotationSDKType { - path: number[]; - source_file: string; - begin: number; - end: number; -} -export declare const FileDescriptorSet: { - typeUrl: string; - encode(message: FileDescriptorSet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet; - fromPartial(object: Partial): FileDescriptorSet; - fromAmino(object: FileDescriptorSetAmino): FileDescriptorSet; - toAmino(message: FileDescriptorSet): FileDescriptorSetAmino; - fromAminoMsg(object: FileDescriptorSetAminoMsg): FileDescriptorSet; - fromProtoMsg(message: FileDescriptorSetProtoMsg): FileDescriptorSet; - toProto(message: FileDescriptorSet): Uint8Array; - toProtoMsg(message: FileDescriptorSet): FileDescriptorSetProtoMsg; -}; -export declare const FileDescriptorProto: { - typeUrl: string; - encode(message: FileDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto; - fromPartial(object: Partial): FileDescriptorProto; - fromAmino(object: FileDescriptorProtoAmino): FileDescriptorProto; - toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino; - fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto; - fromProtoMsg(message: FileDescriptorProtoProtoMsg): FileDescriptorProto; - toProto(message: FileDescriptorProto): Uint8Array; - toProtoMsg(message: FileDescriptorProto): FileDescriptorProtoProtoMsg; -}; -export declare const DescriptorProto: { - typeUrl: string; - encode(message: DescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto; - fromPartial(object: Partial): DescriptorProto; - fromAmino(object: DescriptorProtoAmino): DescriptorProto; - toAmino(message: DescriptorProto): DescriptorProtoAmino; - fromAminoMsg(object: DescriptorProtoAminoMsg): DescriptorProto; - fromProtoMsg(message: DescriptorProtoProtoMsg): DescriptorProto; - toProto(message: DescriptorProto): Uint8Array; - toProtoMsg(message: DescriptorProto): DescriptorProtoProtoMsg; -}; -export declare const DescriptorProto_ExtensionRange: { - typeUrl: string; - encode(message: DescriptorProto_ExtensionRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; - fromPartial(object: Partial): DescriptorProto_ExtensionRange; - fromAmino(object: DescriptorProto_ExtensionRangeAmino): DescriptorProto_ExtensionRange; - toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino; - fromAminoMsg(object: DescriptorProto_ExtensionRangeAminoMsg): DescriptorProto_ExtensionRange; - fromProtoMsg(message: DescriptorProto_ExtensionRangeProtoMsg): DescriptorProto_ExtensionRange; - toProto(message: DescriptorProto_ExtensionRange): Uint8Array; - toProtoMsg(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeProtoMsg; -}; -export declare const DescriptorProto_ReservedRange: { - typeUrl: string; - encode(message: DescriptorProto_ReservedRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange; - fromPartial(object: Partial): DescriptorProto_ReservedRange; - fromAmino(object: DescriptorProto_ReservedRangeAmino): DescriptorProto_ReservedRange; - toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino; - fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange; - fromProtoMsg(message: DescriptorProto_ReservedRangeProtoMsg): DescriptorProto_ReservedRange; - toProto(message: DescriptorProto_ReservedRange): Uint8Array; - toProtoMsg(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeProtoMsg; -}; -export declare const ExtensionRangeOptions: { - typeUrl: string; - encode(message: ExtensionRangeOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions; - fromPartial(object: Partial): ExtensionRangeOptions; - fromAmino(object: ExtensionRangeOptionsAmino): ExtensionRangeOptions; - toAmino(message: ExtensionRangeOptions): ExtensionRangeOptionsAmino; - fromAminoMsg(object: ExtensionRangeOptionsAminoMsg): ExtensionRangeOptions; - fromProtoMsg(message: ExtensionRangeOptionsProtoMsg): ExtensionRangeOptions; - toProto(message: ExtensionRangeOptions): Uint8Array; - toProtoMsg(message: ExtensionRangeOptions): ExtensionRangeOptionsProtoMsg; -}; -export declare const FieldDescriptorProto: { - typeUrl: string; - encode(message: FieldDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto; - fromPartial(object: Partial): FieldDescriptorProto; - fromAmino(object: FieldDescriptorProtoAmino): FieldDescriptorProto; - toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino; - fromAminoMsg(object: FieldDescriptorProtoAminoMsg): FieldDescriptorProto; - fromProtoMsg(message: FieldDescriptorProtoProtoMsg): FieldDescriptorProto; - toProto(message: FieldDescriptorProto): Uint8Array; - toProtoMsg(message: FieldDescriptorProto): FieldDescriptorProtoProtoMsg; -}; -export declare const OneofDescriptorProto: { - typeUrl: string; - encode(message: OneofDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto; - fromPartial(object: Partial): OneofDescriptorProto; - fromAmino(object: OneofDescriptorProtoAmino): OneofDescriptorProto; - toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino; - fromAminoMsg(object: OneofDescriptorProtoAminoMsg): OneofDescriptorProto; - fromProtoMsg(message: OneofDescriptorProtoProtoMsg): OneofDescriptorProto; - toProto(message: OneofDescriptorProto): Uint8Array; - toProtoMsg(message: OneofDescriptorProto): OneofDescriptorProtoProtoMsg; -}; -export declare const EnumDescriptorProto: { - typeUrl: string; - encode(message: EnumDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto; - fromPartial(object: Partial): EnumDescriptorProto; - fromAmino(object: EnumDescriptorProtoAmino): EnumDescriptorProto; - toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino; - fromAminoMsg(object: EnumDescriptorProtoAminoMsg): EnumDescriptorProto; - fromProtoMsg(message: EnumDescriptorProtoProtoMsg): EnumDescriptorProto; - toProto(message: EnumDescriptorProto): Uint8Array; - toProtoMsg(message: EnumDescriptorProto): EnumDescriptorProtoProtoMsg; -}; -export declare const EnumDescriptorProto_EnumReservedRange: { - typeUrl: string; - encode(message: EnumDescriptorProto_EnumReservedRange, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; - fromPartial(object: Partial): EnumDescriptorProto_EnumReservedRange; - fromAmino(object: EnumDescriptorProto_EnumReservedRangeAmino): EnumDescriptorProto_EnumReservedRange; - toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino; - fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange; - fromProtoMsg(message: EnumDescriptorProto_EnumReservedRangeProtoMsg): EnumDescriptorProto_EnumReservedRange; - toProto(message: EnumDescriptorProto_EnumReservedRange): Uint8Array; - toProtoMsg(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeProtoMsg; -}; -export declare const EnumValueDescriptorProto: { - typeUrl: string; - encode(message: EnumValueDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto; - fromPartial(object: Partial): EnumValueDescriptorProto; - fromAmino(object: EnumValueDescriptorProtoAmino): EnumValueDescriptorProto; - toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino; - fromAminoMsg(object: EnumValueDescriptorProtoAminoMsg): EnumValueDescriptorProto; - fromProtoMsg(message: EnumValueDescriptorProtoProtoMsg): EnumValueDescriptorProto; - toProto(message: EnumValueDescriptorProto): Uint8Array; - toProtoMsg(message: EnumValueDescriptorProto): EnumValueDescriptorProtoProtoMsg; -}; -export declare const ServiceDescriptorProto: { - typeUrl: string; - encode(message: ServiceDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto; - fromPartial(object: Partial): ServiceDescriptorProto; - fromAmino(object: ServiceDescriptorProtoAmino): ServiceDescriptorProto; - toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino; - fromAminoMsg(object: ServiceDescriptorProtoAminoMsg): ServiceDescriptorProto; - fromProtoMsg(message: ServiceDescriptorProtoProtoMsg): ServiceDescriptorProto; - toProto(message: ServiceDescriptorProto): Uint8Array; - toProtoMsg(message: ServiceDescriptorProto): ServiceDescriptorProtoProtoMsg; -}; -export declare const MethodDescriptorProto: { - typeUrl: string; - encode(message: MethodDescriptorProto, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto; - fromPartial(object: Partial): MethodDescriptorProto; - fromAmino(object: MethodDescriptorProtoAmino): MethodDescriptorProto; - toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino; - fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto; - fromProtoMsg(message: MethodDescriptorProtoProtoMsg): MethodDescriptorProto; - toProto(message: MethodDescriptorProto): Uint8Array; - toProtoMsg(message: MethodDescriptorProto): MethodDescriptorProtoProtoMsg; -}; -export declare const FileOptions: { - typeUrl: string; - encode(message: FileOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FileOptions; - fromPartial(object: Partial): FileOptions; - fromAmino(object: FileOptionsAmino): FileOptions; - toAmino(message: FileOptions): FileOptionsAmino; - fromAminoMsg(object: FileOptionsAminoMsg): FileOptions; - fromProtoMsg(message: FileOptionsProtoMsg): FileOptions; - toProto(message: FileOptions): Uint8Array; - toProtoMsg(message: FileOptions): FileOptionsProtoMsg; -}; -export declare const MessageOptions: { - typeUrl: string; - encode(message: MessageOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions; - fromPartial(object: Partial): MessageOptions; - fromAmino(object: MessageOptionsAmino): MessageOptions; - toAmino(message: MessageOptions): MessageOptionsAmino; - fromAminoMsg(object: MessageOptionsAminoMsg): MessageOptions; - fromProtoMsg(message: MessageOptionsProtoMsg): MessageOptions; - toProto(message: MessageOptions): Uint8Array; - toProtoMsg(message: MessageOptions): MessageOptionsProtoMsg; -}; -export declare const FieldOptions: { - typeUrl: string; - encode(message: FieldOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions; - fromPartial(object: Partial): FieldOptions; - fromAmino(object: FieldOptionsAmino): FieldOptions; - toAmino(message: FieldOptions): FieldOptionsAmino; - fromAminoMsg(object: FieldOptionsAminoMsg): FieldOptions; - fromProtoMsg(message: FieldOptionsProtoMsg): FieldOptions; - toProto(message: FieldOptions): Uint8Array; - toProtoMsg(message: FieldOptions): FieldOptionsProtoMsg; -}; -export declare const OneofOptions: { - typeUrl: string; - encode(message: OneofOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions; - fromPartial(object: Partial): OneofOptions; - fromAmino(object: OneofOptionsAmino): OneofOptions; - toAmino(message: OneofOptions): OneofOptionsAmino; - fromAminoMsg(object: OneofOptionsAminoMsg): OneofOptions; - fromProtoMsg(message: OneofOptionsProtoMsg): OneofOptions; - toProto(message: OneofOptions): Uint8Array; - toProtoMsg(message: OneofOptions): OneofOptionsProtoMsg; -}; -export declare const EnumOptions: { - typeUrl: string; - encode(message: EnumOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions; - fromPartial(object: Partial): EnumOptions; - fromAmino(object: EnumOptionsAmino): EnumOptions; - toAmino(message: EnumOptions): EnumOptionsAmino; - fromAminoMsg(object: EnumOptionsAminoMsg): EnumOptions; - fromProtoMsg(message: EnumOptionsProtoMsg): EnumOptions; - toProto(message: EnumOptions): Uint8Array; - toProtoMsg(message: EnumOptions): EnumOptionsProtoMsg; -}; -export declare const EnumValueOptions: { - typeUrl: string; - encode(message: EnumValueOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions; - fromPartial(object: Partial): EnumValueOptions; - fromAmino(object: EnumValueOptionsAmino): EnumValueOptions; - toAmino(message: EnumValueOptions): EnumValueOptionsAmino; - fromAminoMsg(object: EnumValueOptionsAminoMsg): EnumValueOptions; - fromProtoMsg(message: EnumValueOptionsProtoMsg): EnumValueOptions; - toProto(message: EnumValueOptions): Uint8Array; - toProtoMsg(message: EnumValueOptions): EnumValueOptionsProtoMsg; -}; -export declare const ServiceOptions: { - typeUrl: string; - encode(message: ServiceOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions; - fromPartial(object: Partial): ServiceOptions; - fromAmino(object: ServiceOptionsAmino): ServiceOptions; - toAmino(message: ServiceOptions): ServiceOptionsAmino; - fromAminoMsg(object: ServiceOptionsAminoMsg): ServiceOptions; - fromProtoMsg(message: ServiceOptionsProtoMsg): ServiceOptions; - toProto(message: ServiceOptions): Uint8Array; - toProtoMsg(message: ServiceOptions): ServiceOptionsProtoMsg; -}; -export declare const MethodOptions: { - typeUrl: string; - encode(message: MethodOptions, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions; - fromPartial(object: Partial): MethodOptions; - fromAmino(object: MethodOptionsAmino): MethodOptions; - toAmino(message: MethodOptions): MethodOptionsAmino; - fromAminoMsg(object: MethodOptionsAminoMsg): MethodOptions; - fromProtoMsg(message: MethodOptionsProtoMsg): MethodOptions; - toProto(message: MethodOptions): Uint8Array; - toProtoMsg(message: MethodOptions): MethodOptionsProtoMsg; -}; -export declare const UninterpretedOption: { - typeUrl: string; - encode(message: UninterpretedOption, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption; - fromPartial(object: Partial): UninterpretedOption; - fromAmino(object: UninterpretedOptionAmino): UninterpretedOption; - toAmino(message: UninterpretedOption): UninterpretedOptionAmino; - fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption; - fromProtoMsg(message: UninterpretedOptionProtoMsg): UninterpretedOption; - toProto(message: UninterpretedOption): Uint8Array; - toProtoMsg(message: UninterpretedOption): UninterpretedOptionProtoMsg; -}; -export declare const UninterpretedOption_NamePart: { - typeUrl: string; - encode(message: UninterpretedOption_NamePart, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart; - fromPartial(object: Partial): UninterpretedOption_NamePart; - fromAmino(object: UninterpretedOption_NamePartAmino): UninterpretedOption_NamePart; - toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino; - fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart; - fromProtoMsg(message: UninterpretedOption_NamePartProtoMsg): UninterpretedOption_NamePart; - toProto(message: UninterpretedOption_NamePart): Uint8Array; - toProtoMsg(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartProtoMsg; -}; -export declare const SourceCodeInfo: { - typeUrl: string; - encode(message: SourceCodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo; - fromPartial(object: Partial): SourceCodeInfo; - fromAmino(object: SourceCodeInfoAmino): SourceCodeInfo; - toAmino(message: SourceCodeInfo): SourceCodeInfoAmino; - fromAminoMsg(object: SourceCodeInfoAminoMsg): SourceCodeInfo; - fromProtoMsg(message: SourceCodeInfoProtoMsg): SourceCodeInfo; - toProto(message: SourceCodeInfo): Uint8Array; - toProtoMsg(message: SourceCodeInfo): SourceCodeInfoProtoMsg; -}; -export declare const SourceCodeInfo_Location: { - typeUrl: string; - encode(message: SourceCodeInfo_Location, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location; - fromPartial(object: Partial): SourceCodeInfo_Location; - fromAmino(object: SourceCodeInfo_LocationAmino): SourceCodeInfo_Location; - toAmino(message: SourceCodeInfo_Location): SourceCodeInfo_LocationAmino; - fromAminoMsg(object: SourceCodeInfo_LocationAminoMsg): SourceCodeInfo_Location; - fromProtoMsg(message: SourceCodeInfo_LocationProtoMsg): SourceCodeInfo_Location; - toProto(message: SourceCodeInfo_Location): Uint8Array; - toProtoMsg(message: SourceCodeInfo_Location): SourceCodeInfo_LocationProtoMsg; -}; -export declare const GeneratedCodeInfo: { - typeUrl: string; - encode(message: GeneratedCodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo; - fromPartial(object: Partial): GeneratedCodeInfo; - fromAmino(object: GeneratedCodeInfoAmino): GeneratedCodeInfo; - toAmino(message: GeneratedCodeInfo): GeneratedCodeInfoAmino; - fromAminoMsg(object: GeneratedCodeInfoAminoMsg): GeneratedCodeInfo; - fromProtoMsg(message: GeneratedCodeInfoProtoMsg): GeneratedCodeInfo; - toProto(message: GeneratedCodeInfo): Uint8Array; - toProtoMsg(message: GeneratedCodeInfo): GeneratedCodeInfoProtoMsg; -}; -export declare const GeneratedCodeInfo_Annotation: { - typeUrl: string; - encode(message: GeneratedCodeInfo_Annotation, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; - fromPartial(object: Partial): GeneratedCodeInfo_Annotation; - fromAmino(object: GeneratedCodeInfo_AnnotationAmino): GeneratedCodeInfo_Annotation; - toAmino(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationAmino; - fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation; - fromProtoMsg(message: GeneratedCodeInfo_AnnotationProtoMsg): GeneratedCodeInfo_Annotation; - toProto(message: GeneratedCodeInfo_Annotation): Uint8Array; - toProtoMsg(message: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_AnnotationProtoMsg; -}; diff --git a/packages/api/dist/google/protobuf/descriptor.js b/packages/api/dist/google/protobuf/descriptor.js deleted file mode 100644 index 736962d4..00000000 --- a/packages/api/dist/google/protobuf/descriptor.js +++ /dev/null @@ -1,3406 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevelAmino = exports.MethodOptions_IdempotencyLevelSDKType = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSTypeAmino = exports.FieldOptions_JSTypeSDKType = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CTypeAmino = exports.FieldOptions_CTypeSDKType = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeModeAmino = exports.FileOptions_OptimizeModeSDKType = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_LabelAmino = exports.FieldDescriptorProto_LabelSDKType = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_TypeAmino = exports.FieldDescriptorProto_TypeSDKType = exports.FieldDescriptorProto_Type = void 0; -exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** TYPE_BYTES - New in version 2. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** TYPE_SINT32 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** TYPE_SINT64 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {})); -exports.FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type; -exports.FieldDescriptorProto_TypeAmino = FieldDescriptorProto_Type; -function fieldDescriptorProto_TypeFromJSON(object) { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Type.UNRECOGNIZED; - } -} -exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON; -function fieldDescriptorProto_TypeToJSON(object) { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - case FieldDescriptorProto_Type.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON; -var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {})); -exports.FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label; -exports.FieldDescriptorProto_LabelAmino = FieldDescriptorProto_Label; -function fieldDescriptorProto_LabelFromJSON(object) { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - case -1: - case "UNRECOGNIZED": - default: - return FieldDescriptorProto_Label.UNRECOGNIZED; - } -} -exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON; -function fieldDescriptorProto_LabelToJSON(object) { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - case FieldDescriptorProto_Label.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.fieldDescriptorProto_LabelToJSON = fieldDescriptorProto_LabelToJSON; -/** Generated classes can be optimized for speed or code size. */ -var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** - * SPEED - Generate complete code for parsing, serialization, - * etc. - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** CODE_SIZE - Use ReflectionOps to implement these methods. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; - FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {})); -exports.FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode; -exports.FileOptions_OptimizeModeAmino = FileOptions_OptimizeMode; -function fileOptions_OptimizeModeFromJSON(object) { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - case -1: - case "UNRECOGNIZED": - default: - return FileOptions_OptimizeMode.UNRECOGNIZED; - } -} -exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON; -function fileOptions_OptimizeModeToJSON(object) { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - case FileOptions_OptimizeMode.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON; -var FieldOptions_CType; -(function (FieldOptions_CType) { - /** STRING - Default mode. */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; - FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {})); -exports.FieldOptions_CTypeSDKType = FieldOptions_CType; -exports.FieldOptions_CTypeAmino = FieldOptions_CType; -function fieldOptions_CTypeFromJSON(object) { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_CType.UNRECOGNIZED; - } -} -exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON; -function fieldOptions_CTypeToJSON(object) { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - case FieldOptions_CType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON; -var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** JS_NORMAL - Use the default type. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** JS_STRING - Use JavaScript strings. */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** JS_NUMBER - Use JavaScript numbers. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; - FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {})); -exports.FieldOptions_JSTypeSDKType = FieldOptions_JSType; -exports.FieldOptions_JSTypeAmino = FieldOptions_JSType; -function fieldOptions_JSTypeFromJSON(object) { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_JSType.UNRECOGNIZED; - } -} -exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON; -function fieldOptions_JSTypeToJSON(object) { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - case FieldOptions_JSType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.fieldOptions_JSTypeToJSON = fieldOptions_JSTypeToJSON; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** NO_SIDE_EFFECTS - implies idempotent */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** IDEMPOTENT - idempotent, but may have side effects */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {})); -exports.MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel; -exports.MethodOptions_IdempotencyLevelAmino = MethodOptions_IdempotencyLevel; -function methodOptions_IdempotencyLevelFromJSON(object) { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - case -1: - case "UNRECOGNIZED": - default: - return MethodOptions_IdempotencyLevel.UNRECOGNIZED; - } -} -exports.methodOptions_IdempotencyLevelFromJSON = methodOptions_IdempotencyLevelFromJSON; -function methodOptions_IdempotencyLevelToJSON(object) { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - case MethodOptions_IdempotencyLevel.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON; -function createBaseFileDescriptorSet() { - return { - file: [] - }; -} -exports.FileDescriptorSet = { - typeUrl: "/google.protobuf.FileDescriptorSet", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.file) { - exports.FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.file.push(exports.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => exports.FileDescriptorProto.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFileDescriptorSet(); - message.file = object.file?.map(e => exports.FileDescriptorProto.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.file) { - obj.file = message.file.map(e => e ? exports.FileDescriptorProto.toAmino(e) : undefined); - } - else { - obj.file = message.file; - } - return obj; - }, - fromAminoMsg(object) { - return exports.FileDescriptorSet.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.FileDescriptorSet.decode(message.value); - }, - toProto(message) { - return exports.FileDescriptorSet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileDescriptorSet", - value: exports.FileDescriptorSet.encode(message).finish() - }; - } -}; -function createBaseFileDescriptorProto() { - return { - name: "", - package: "", - dependency: [], - publicDependency: [], - weakDependency: [], - messageType: [], - enumType: [], - service: [], - extension: [], - options: undefined, - sourceCodeInfo: undefined, - syntax: "" - }; -} -exports.FileDescriptorProto = { - typeUrl: "/google.protobuf.FileDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.package !== "") { - writer.uint32(18).string(message.package); - } - for (const v of message.dependency) { - writer.uint32(26).string(v); - } - writer.uint32(82).fork(); - for (const v of message.publicDependency) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(90).fork(); - for (const v of message.weakDependency) { - writer.int32(v); - } - writer.ldelim(); - for (const v of message.messageType) { - exports.DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.enumType) { - exports.EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.service) { - exports.ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.extension) { - exports.FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.options !== undefined) { - exports.FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - if (message.sourceCodeInfo !== undefined) { - exports.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); - } - if (message.syntax !== "") { - writer.uint32(98).string(message.syntax); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.package = reader.string(); - break; - case 3: - message.dependency.push(reader.string()); - break; - case 10: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.publicDependency.push(reader.int32()); - } - } - else { - message.publicDependency.push(reader.int32()); - } - break; - case 11: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.weakDependency.push(reader.int32()); - } - } - else { - message.weakDependency.push(reader.int32()); - } - break; - case 4: - message.messageType.push(exports.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.service.push(exports.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = exports.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = exports.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileDescriptorProto(); - message.name = object.name ?? ""; - message.package = object.package ?? ""; - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.publicDependency?.map(e => e) || []; - message.weakDependency = object.weakDependency?.map(e => e) || []; - message.messageType = object.messageType?.map(e => exports.DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => exports.EnumDescriptorProto.fromPartial(e)) || []; - message.service = object.service?.map(e => exports.ServiceDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? exports.FileOptions.fromPartial(object.options) : undefined; - message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? exports.SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; - message.syntax = object.syntax ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseFileDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.package !== undefined && object.package !== null) { - message.package = object.package; - } - message.dependency = object.dependency?.map(e => e) || []; - message.publicDependency = object.public_dependency?.map(e => e) || []; - message.weakDependency = object.weak_dependency?.map(e => e) || []; - message.messageType = object.message_type?.map(e => exports.DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => exports.EnumDescriptorProto.fromAmino(e)) || []; - message.service = object.service?.map(e => exports.ServiceDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = exports.FileOptions.fromAmino(object.options); - } - if (object.source_code_info !== undefined && object.source_code_info !== null) { - message.sourceCodeInfo = exports.SourceCodeInfo.fromAmino(object.source_code_info); - } - if (object.syntax !== undefined && object.syntax !== null) { - message.syntax = object.syntax; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.package = message.package === "" ? undefined : message.package; - if (message.dependency) { - obj.dependency = message.dependency.map(e => e); - } - else { - obj.dependency = message.dependency; - } - if (message.publicDependency) { - obj.public_dependency = message.publicDependency.map(e => e); - } - else { - obj.public_dependency = message.publicDependency; - } - if (message.weakDependency) { - obj.weak_dependency = message.weakDependency.map(e => e); - } - else { - obj.weak_dependency = message.weakDependency; - } - if (message.messageType) { - obj.message_type = message.messageType.map(e => e ? exports.DescriptorProto.toAmino(e) : undefined); - } - else { - obj.message_type = message.messageType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? exports.EnumDescriptorProto.toAmino(e) : undefined); - } - else { - obj.enum_type = message.enumType; - } - if (message.service) { - obj.service = message.service.map(e => e ? exports.ServiceDescriptorProto.toAmino(e) : undefined); - } - else { - obj.service = message.service; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.extension = message.extension; - } - obj.options = message.options ? exports.FileOptions.toAmino(message.options) : undefined; - obj.source_code_info = message.sourceCodeInfo ? exports.SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; - obj.syntax = message.syntax === "" ? undefined : message.syntax; - return obj; - }, - fromAminoMsg(object) { - return exports.FileDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.FileDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.FileDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileDescriptorProto", - value: exports.FileDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto() { - return { - name: "", - field: [], - extension: [], - nestedType: [], - enumType: [], - extensionRange: [], - oneofDecl: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -exports.DescriptorProto = { - typeUrl: "/google.protobuf.DescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.field) { - exports.FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.extension) { - exports.FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim(); - } - for (const v of message.nestedType) { - exports.DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.enumType) { - exports.EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.extensionRange) { - exports.DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.oneofDecl) { - exports.OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim(); - } - if (message.options !== undefined) { - exports.MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.reservedRange) { - exports.DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(82).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.field.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - message.extension.push(exports.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.nestedType.push(exports.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - message.enumType.push(exports.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - message.extensionRange.push(exports.DescriptorProto_ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - message.oneofDecl.push(exports.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = exports.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - message.reservedRange.push(exports.DescriptorProto_ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto(); - message.name = object.name ?? ""; - message.field = object.field?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; - message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromPartial(e)) || []; - message.nestedType = object.nestedType?.map(e => exports.DescriptorProto.fromPartial(e)) || []; - message.enumType = object.enumType?.map(e => exports.EnumDescriptorProto.fromPartial(e)) || []; - message.extensionRange = object.extensionRange?.map(e => exports.DescriptorProto_ExtensionRange.fromPartial(e)) || []; - message.oneofDecl = object.oneofDecl?.map(e => exports.OneofDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? exports.MessageOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => exports.DescriptorProto_ReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.field = object.field?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; - message.extension = object.extension?.map(e => exports.FieldDescriptorProto.fromAmino(e)) || []; - message.nestedType = object.nested_type?.map(e => exports.DescriptorProto.fromAmino(e)) || []; - message.enumType = object.enum_type?.map(e => exports.EnumDescriptorProto.fromAmino(e)) || []; - message.extensionRange = object.extension_range?.map(e => exports.DescriptorProto_ExtensionRange.fromAmino(e)) || []; - message.oneofDecl = object.oneof_decl?.map(e => exports.OneofDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = exports.MessageOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => exports.DescriptorProto_ReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.field) { - obj.field = message.field.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.field = message.field; - } - if (message.extension) { - obj.extension = message.extension.map(e => e ? exports.FieldDescriptorProto.toAmino(e) : undefined); - } - else { - obj.extension = message.extension; - } - if (message.nestedType) { - obj.nested_type = message.nestedType.map(e => e ? exports.DescriptorProto.toAmino(e) : undefined); - } - else { - obj.nested_type = message.nestedType; - } - if (message.enumType) { - obj.enum_type = message.enumType.map(e => e ? exports.EnumDescriptorProto.toAmino(e) : undefined); - } - else { - obj.enum_type = message.enumType; - } - if (message.extensionRange) { - obj.extension_range = message.extensionRange.map(e => e ? exports.DescriptorProto_ExtensionRange.toAmino(e) : undefined); - } - else { - obj.extension_range = message.extensionRange; - } - if (message.oneofDecl) { - obj.oneof_decl = message.oneofDecl.map(e => e ? exports.OneofDescriptorProto.toAmino(e) : undefined); - } - else { - obj.oneof_decl = message.oneofDecl; - } - obj.options = message.options ? exports.MessageOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? exports.DescriptorProto_ReservedRange.toAmino(e) : undefined); - } - else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } - else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object) { - return exports.DescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.DescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.DescriptorProto", - value: exports.DescriptorProto.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ExtensionRange() { - return { - start: 0, - end: 0, - options: undefined - }; -} -exports.DescriptorProto_ExtensionRange = { - typeUrl: "/google.protobuf.ExtensionRange", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - if (message.options !== undefined) { - exports.ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ExtensionRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = exports.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto_ExtensionRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - message.options = object.options !== undefined && object.options !== null ? exports.ExtensionRangeOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto_ExtensionRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - if (object.options !== undefined && object.options !== null) { - message.options = exports.ExtensionRangeOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - obj.options = message.options ? exports.ExtensionRangeOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DescriptorProto_ExtensionRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DescriptorProto_ExtensionRange.decode(message.value); - }, - toProto(message) { - return exports.DescriptorProto_ExtensionRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ExtensionRange", - value: exports.DescriptorProto_ExtensionRange.encode(message).finish() - }; - } -}; -function createBaseDescriptorProto_ReservedRange() { - return { - start: 0, - end: 0 - }; -} -exports.DescriptorProto_ReservedRange = { - typeUrl: "/google.protobuf.ReservedRange", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDescriptorProto_ReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDescriptorProto_ReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseDescriptorProto_ReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return exports.DescriptorProto_ReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DescriptorProto_ReservedRange.decode(message.value); - }, - toProto(message) { - return exports.DescriptorProto_ReservedRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ReservedRange", - value: exports.DescriptorProto_ReservedRange.encode(message).finish() - }; - } -}; -function createBaseExtensionRangeOptions() { - return { - uninterpretedOption: [] - }; -} -exports.ExtensionRangeOptions = { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtensionRangeOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseExtensionRangeOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ExtensionRangeOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ExtensionRangeOptions.decode(message.value); - }, - toProto(message) { - return exports.ExtensionRangeOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ExtensionRangeOptions", - value: exports.ExtensionRangeOptions.encode(message).finish() - }; - } -}; -function createBaseFieldDescriptorProto() { - return { - name: "", - number: 0, - label: 1, - type: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - options: undefined - }; -} -exports.FieldDescriptorProto = { - typeUrl: "/google.protobuf.FieldDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(24).int32(message.number); - } - if (message.label !== 1) { - writer.uint32(32).int32(message.label); - } - if (message.type !== 1) { - writer.uint32(40).int32(message.type); - } - if (message.typeName !== "") { - writer.uint32(50).string(message.typeName); - } - if (message.extendee !== "") { - writer.uint32(18).string(message.extendee); - } - if (message.defaultValue !== "") { - writer.uint32(58).string(message.defaultValue); - } - if (message.oneofIndex !== 0) { - writer.uint32(72).int32(message.oneofIndex); - } - if (message.jsonName !== "") { - writer.uint32(82).string(message.jsonName); - } - if (message.options !== undefined) { - exports.FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = exports.FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFieldDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.label = object.label ?? 1; - message.type = object.type ?? 1; - message.typeName = object.typeName ?? ""; - message.extendee = object.extendee ?? ""; - message.defaultValue = object.defaultValue ?? ""; - message.oneofIndex = object.oneofIndex ?? 0; - message.jsonName = object.jsonName ?? ""; - message.options = object.options !== undefined && object.options !== null ? exports.FieldOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseFieldDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.label !== undefined && object.label !== null) { - message.label = object.label; - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.type_name !== undefined && object.type_name !== null) { - message.typeName = object.type_name; - } - if (object.extendee !== undefined && object.extendee !== null) { - message.extendee = object.extendee; - } - if (object.default_value !== undefined && object.default_value !== null) { - message.defaultValue = object.default_value; - } - if (object.oneof_index !== undefined && object.oneof_index !== null) { - message.oneofIndex = object.oneof_index; - } - if (object.json_name !== undefined && object.json_name !== null) { - message.jsonName = object.json_name; - } - if (object.options !== undefined && object.options !== null) { - message.options = exports.FieldOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.label = message.label === 1 ? undefined : message.label; - obj.type = message.type === 1 ? undefined : message.type; - obj.type_name = message.typeName === "" ? undefined : message.typeName; - obj.extendee = message.extendee === "" ? undefined : message.extendee; - obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; - obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; - obj.json_name = message.jsonName === "" ? undefined : message.jsonName; - obj.options = message.options ? exports.FieldOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.FieldDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.FieldDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.FieldDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FieldDescriptorProto", - value: exports.FieldDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseOneofDescriptorProto() { - return { - name: "", - options: undefined - }; -} -exports.OneofDescriptorProto = { - typeUrl: "/google.protobuf.OneofDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.options !== undefined) { - exports.OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = exports.OneofOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOneofDescriptorProto(); - message.name = object.name ?? ""; - message.options = object.options !== undefined && object.options !== null ? exports.OneofOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseOneofDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.options !== undefined && object.options !== null) { - message.options = exports.OneofOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.options = message.options ? exports.OneofOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.OneofDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.OneofDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.OneofDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.OneofDescriptorProto", - value: exports.OneofDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto() { - return { - name: "", - value: [], - options: undefined, - reservedRange: [], - reservedName: [] - }; -} -exports.EnumDescriptorProto = { - typeUrl: "/google.protobuf.EnumDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.value) { - exports.EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - exports.EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.reservedRange) { - exports.EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.reservedName) { - writer.uint32(42).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.value.push(exports.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = exports.EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - message.reservedRange.push(exports.EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumDescriptorProto(); - message.name = object.name ?? ""; - message.value = object.value?.map(e => exports.EnumValueDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? exports.EnumOptions.fromPartial(object.options) : undefined; - message.reservedRange = object.reservedRange?.map(e => exports.EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; - message.reservedName = object.reservedName?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.value = object.value?.map(e => exports.EnumValueDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = exports.EnumOptions.fromAmino(object.options); - } - message.reservedRange = object.reserved_range?.map(e => exports.EnumDescriptorProto_EnumReservedRange.fromAmino(e)) || []; - message.reservedName = object.reserved_name?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.value) { - obj.value = message.value.map(e => e ? exports.EnumValueDescriptorProto.toAmino(e) : undefined); - } - else { - obj.value = message.value; - } - obj.options = message.options ? exports.EnumOptions.toAmino(message.options) : undefined; - if (message.reservedRange) { - obj.reserved_range = message.reservedRange.map(e => e ? exports.EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); - } - else { - obj.reserved_range = message.reservedRange; - } - if (message.reservedName) { - obj.reserved_name = message.reservedName.map(e => e); - } - else { - obj.reserved_name = message.reservedName; - } - return obj; - }, - fromAminoMsg(object) { - return exports.EnumDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EnumDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.EnumDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumDescriptorProto", - value: exports.EnumDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseEnumDescriptorProto_EnumReservedRange() { - return { - start: 0, - end: 0 - }; -} -exports.EnumDescriptorProto_EnumReservedRange = { - typeUrl: "/google.protobuf.EnumReservedRange", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.start !== 0) { - writer.uint32(8).int32(message.start); - } - if (message.end !== 0) { - writer.uint32(16).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - message.start = object.start ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseEnumDescriptorProto_EnumReservedRange(); - if (object.start !== undefined && object.start !== null) { - message.start = object.start; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.start = message.start === 0 ? undefined : message.start; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return exports.EnumDescriptorProto_EnumReservedRange.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EnumDescriptorProto_EnumReservedRange.decode(message.value); - }, - toProto(message) { - return exports.EnumDescriptorProto_EnumReservedRange.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumReservedRange", - value: exports.EnumDescriptorProto_EnumReservedRange.encode(message).finish() - }; - } -}; -function createBaseEnumValueDescriptorProto() { - return { - name: "", - number: 0, - options: undefined - }; -} -exports.EnumValueDescriptorProto = { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.number !== 0) { - writer.uint32(16).int32(message.number); - } - if (message.options !== undefined) { - exports.EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = exports.EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumValueDescriptorProto(); - message.name = object.name ?? ""; - message.number = object.number ?? 0; - message.options = object.options !== undefined && object.options !== null ? exports.EnumValueOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEnumValueDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.number !== undefined && object.number !== null) { - message.number = object.number; - } - if (object.options !== undefined && object.options !== null) { - message.options = exports.EnumValueOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.number = message.number === 0 ? undefined : message.number; - obj.options = message.options ? exports.EnumValueOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EnumValueDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EnumValueDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.EnumValueDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumValueDescriptorProto", - value: exports.EnumValueDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseServiceDescriptorProto() { - return { - name: "", - method: [], - options: undefined - }; -} -exports.ServiceDescriptorProto = { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - for (const v of message.method) { - exports.MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.options !== undefined) { - exports.ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.method.push(exports.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = exports.ServiceOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseServiceDescriptorProto(); - message.name = object.name ?? ""; - message.method = object.method?.map(e => exports.MethodDescriptorProto.fromPartial(e)) || []; - message.options = object.options !== undefined && object.options !== null ? exports.ServiceOptions.fromPartial(object.options) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseServiceDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - message.method = object.method?.map(e => exports.MethodDescriptorProto.fromAmino(e)) || []; - if (object.options !== undefined && object.options !== null) { - message.options = exports.ServiceOptions.fromAmino(object.options); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - if (message.method) { - obj.method = message.method.map(e => e ? exports.MethodDescriptorProto.toAmino(e) : undefined); - } - else { - obj.method = message.method; - } - obj.options = message.options ? exports.ServiceOptions.toAmino(message.options) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ServiceDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ServiceDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.ServiceDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ServiceDescriptorProto", - value: exports.ServiceDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseMethodDescriptorProto() { - return { - name: "", - inputType: "", - outputType: "", - options: undefined, - clientStreaming: false, - serverStreaming: false - }; -} -exports.MethodDescriptorProto = { - typeUrl: "/google.protobuf.MethodDescriptorProto", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.inputType !== "") { - writer.uint32(18).string(message.inputType); - } - if (message.outputType !== "") { - writer.uint32(26).string(message.outputType); - } - if (message.options !== undefined) { - exports.MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim(); - } - if (message.clientStreaming === true) { - writer.uint32(40).bool(message.clientStreaming); - } - if (message.serverStreaming === true) { - writer.uint32(48).bool(message.serverStreaming); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodDescriptorProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = exports.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMethodDescriptorProto(); - message.name = object.name ?? ""; - message.inputType = object.inputType ?? ""; - message.outputType = object.outputType ?? ""; - message.options = object.options !== undefined && object.options !== null ? exports.MethodOptions.fromPartial(object.options) : undefined; - message.clientStreaming = object.clientStreaming ?? false; - message.serverStreaming = object.serverStreaming ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMethodDescriptorProto(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.input_type !== undefined && object.input_type !== null) { - message.inputType = object.input_type; - } - if (object.output_type !== undefined && object.output_type !== null) { - message.outputType = object.output_type; - } - if (object.options !== undefined && object.options !== null) { - message.options = exports.MethodOptions.fromAmino(object.options); - } - if (object.client_streaming !== undefined && object.client_streaming !== null) { - message.clientStreaming = object.client_streaming; - } - if (object.server_streaming !== undefined && object.server_streaming !== null) { - message.serverStreaming = object.server_streaming; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.input_type = message.inputType === "" ? undefined : message.inputType; - obj.output_type = message.outputType === "" ? undefined : message.outputType; - obj.options = message.options ? exports.MethodOptions.toAmino(message.options) : undefined; - obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; - obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; - return obj; - }, - fromAminoMsg(object) { - return exports.MethodDescriptorProto.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MethodDescriptorProto.decode(message.value); - }, - toProto(message) { - return exports.MethodDescriptorProto.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MethodDescriptorProto", - value: exports.MethodDescriptorProto.encode(message).finish() - }; - } -}; -function createBaseFileOptions() { - return { - javaPackage: "", - javaOuterClassname: "", - javaMultipleFiles: false, - javaGenerateEqualsAndHash: false, - javaStringCheckUtf8: false, - optimizeFor: 1, - goPackage: "", - ccGenericServices: false, - javaGenericServices: false, - pyGenericServices: false, - phpGenericServices: false, - deprecated: false, - ccEnableArenas: false, - objcClassPrefix: "", - csharpNamespace: "", - swiftPrefix: "", - phpClassPrefix: "", - phpNamespace: "", - phpMetadataNamespace: "", - rubyPackage: "", - uninterpretedOption: [] - }; -} -exports.FileOptions = { - typeUrl: "/google.protobuf.FileOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.javaPackage !== "") { - writer.uint32(10).string(message.javaPackage); - } - if (message.javaOuterClassname !== "") { - writer.uint32(66).string(message.javaOuterClassname); - } - if (message.javaMultipleFiles === true) { - writer.uint32(80).bool(message.javaMultipleFiles); - } - if (message.javaGenerateEqualsAndHash === true) { - writer.uint32(160).bool(message.javaGenerateEqualsAndHash); - } - if (message.javaStringCheckUtf8 === true) { - writer.uint32(216).bool(message.javaStringCheckUtf8); - } - if (message.optimizeFor !== 1) { - writer.uint32(72).int32(message.optimizeFor); - } - if (message.goPackage !== "") { - writer.uint32(90).string(message.goPackage); - } - if (message.ccGenericServices === true) { - writer.uint32(128).bool(message.ccGenericServices); - } - if (message.javaGenericServices === true) { - writer.uint32(136).bool(message.javaGenericServices); - } - if (message.pyGenericServices === true) { - writer.uint32(144).bool(message.pyGenericServices); - } - if (message.phpGenericServices === true) { - writer.uint32(336).bool(message.phpGenericServices); - } - if (message.deprecated === true) { - writer.uint32(184).bool(message.deprecated); - } - if (message.ccEnableArenas === true) { - writer.uint32(248).bool(message.ccEnableArenas); - } - if (message.objcClassPrefix !== "") { - writer.uint32(290).string(message.objcClassPrefix); - } - if (message.csharpNamespace !== "") { - writer.uint32(298).string(message.csharpNamespace); - } - if (message.swiftPrefix !== "") { - writer.uint32(314).string(message.swiftPrefix); - } - if (message.phpClassPrefix !== "") { - writer.uint32(322).string(message.phpClassPrefix); - } - if (message.phpNamespace !== "") { - writer.uint32(330).string(message.phpNamespace); - } - if (message.phpMetadataNamespace !== "") { - writer.uint32(354).string(message.phpMetadataNamespace); - } - if (message.rubyPackage !== "") { - writer.uint32(362).string(message.rubyPackage); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFileOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFileOptions(); - message.javaPackage = object.javaPackage ?? ""; - message.javaOuterClassname = object.javaOuterClassname ?? ""; - message.javaMultipleFiles = object.javaMultipleFiles ?? false; - message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; - message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; - message.optimizeFor = object.optimizeFor ?? 1; - message.goPackage = object.goPackage ?? ""; - message.ccGenericServices = object.ccGenericServices ?? false; - message.javaGenericServices = object.javaGenericServices ?? false; - message.pyGenericServices = object.pyGenericServices ?? false; - message.phpGenericServices = object.phpGenericServices ?? false; - message.deprecated = object.deprecated ?? false; - message.ccEnableArenas = object.ccEnableArenas ?? false; - message.objcClassPrefix = object.objcClassPrefix ?? ""; - message.csharpNamespace = object.csharpNamespace ?? ""; - message.swiftPrefix = object.swiftPrefix ?? ""; - message.phpClassPrefix = object.phpClassPrefix ?? ""; - message.phpNamespace = object.phpNamespace ?? ""; - message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; - message.rubyPackage = object.rubyPackage ?? ""; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFileOptions(); - if (object.java_package !== undefined && object.java_package !== null) { - message.javaPackage = object.java_package; - } - if (object.java_outer_classname !== undefined && object.java_outer_classname !== null) { - message.javaOuterClassname = object.java_outer_classname; - } - if (object.java_multiple_files !== undefined && object.java_multiple_files !== null) { - message.javaMultipleFiles = object.java_multiple_files; - } - if (object.java_generate_equals_and_hash !== undefined && object.java_generate_equals_and_hash !== null) { - message.javaGenerateEqualsAndHash = object.java_generate_equals_and_hash; - } - if (object.java_string_check_utf8 !== undefined && object.java_string_check_utf8 !== null) { - message.javaStringCheckUtf8 = object.java_string_check_utf8; - } - if (object.optimize_for !== undefined && object.optimize_for !== null) { - message.optimizeFor = object.optimize_for; - } - if (object.go_package !== undefined && object.go_package !== null) { - message.goPackage = object.go_package; - } - if (object.cc_generic_services !== undefined && object.cc_generic_services !== null) { - message.ccGenericServices = object.cc_generic_services; - } - if (object.java_generic_services !== undefined && object.java_generic_services !== null) { - message.javaGenericServices = object.java_generic_services; - } - if (object.py_generic_services !== undefined && object.py_generic_services !== null) { - message.pyGenericServices = object.py_generic_services; - } - if (object.php_generic_services !== undefined && object.php_generic_services !== null) { - message.phpGenericServices = object.php_generic_services; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.cc_enable_arenas !== undefined && object.cc_enable_arenas !== null) { - message.ccEnableArenas = object.cc_enable_arenas; - } - if (object.objc_class_prefix !== undefined && object.objc_class_prefix !== null) { - message.objcClassPrefix = object.objc_class_prefix; - } - if (object.csharp_namespace !== undefined && object.csharp_namespace !== null) { - message.csharpNamespace = object.csharp_namespace; - } - if (object.swift_prefix !== undefined && object.swift_prefix !== null) { - message.swiftPrefix = object.swift_prefix; - } - if (object.php_class_prefix !== undefined && object.php_class_prefix !== null) { - message.phpClassPrefix = object.php_class_prefix; - } - if (object.php_namespace !== undefined && object.php_namespace !== null) { - message.phpNamespace = object.php_namespace; - } - if (object.php_metadata_namespace !== undefined && object.php_metadata_namespace !== null) { - message.phpMetadataNamespace = object.php_metadata_namespace; - } - if (object.ruby_package !== undefined && object.ruby_package !== null) { - message.rubyPackage = object.ruby_package; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; - obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; - obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; - obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; - obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; - obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; - obj.go_package = message.goPackage === "" ? undefined : message.goPackage; - obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; - obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; - obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; - obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; - obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; - obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; - obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; - obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; - obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; - obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; - obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.FileOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.FileOptions.decode(message.value); - }, - toProto(message) { - return exports.FileOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FileOptions", - value: exports.FileOptions.encode(message).finish() - }; - } -}; -function createBaseMessageOptions() { - return { - messageSetWireFormat: false, - noStandardDescriptorAccessor: false, - deprecated: false, - mapEntry: false, - uninterpretedOption: [] - }; -} -exports.MessageOptions = { - typeUrl: "/google.protobuf.MessageOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.messageSetWireFormat === true) { - writer.uint32(8).bool(message.messageSetWireFormat); - } - if (message.noStandardDescriptorAccessor === true) { - writer.uint32(16).bool(message.noStandardDescriptorAccessor); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.mapEntry === true) { - writer.uint32(56).bool(message.mapEntry); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMessageOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMessageOptions(); - message.messageSetWireFormat = object.messageSetWireFormat ?? false; - message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; - message.deprecated = object.deprecated ?? false; - message.mapEntry = object.mapEntry ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMessageOptions(); - if (object.message_set_wire_format !== undefined && object.message_set_wire_format !== null) { - message.messageSetWireFormat = object.message_set_wire_format; - } - if (object.no_standard_descriptor_accessor !== undefined && object.no_standard_descriptor_accessor !== null) { - message.noStandardDescriptorAccessor = object.no_standard_descriptor_accessor; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.map_entry !== undefined && object.map_entry !== null) { - message.mapEntry = object.map_entry; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; - obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MessageOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MessageOptions.decode(message.value); - }, - toProto(message) { - return exports.MessageOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MessageOptions", - value: exports.MessageOptions.encode(message).finish() - }; - } -}; -function createBaseFieldOptions() { - return { - ctype: 1, - packed: false, - jstype: 1, - lazy: false, - deprecated: false, - weak: false, - uninterpretedOption: [] - }; -} -exports.FieldOptions = { - typeUrl: "/google.protobuf.FieldOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.ctype !== 1) { - writer.uint32(8).int32(message.ctype); - } - if (message.packed === true) { - writer.uint32(16).bool(message.packed); - } - if (message.jstype !== 1) { - writer.uint32(48).int32(message.jstype); - } - if (message.lazy === true) { - writer.uint32(40).bool(message.lazy); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.weak === true) { - writer.uint32(80).bool(message.weak); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseFieldOptions(); - message.ctype = object.ctype ?? 1; - message.packed = object.packed ?? false; - message.jstype = object.jstype ?? 1; - message.lazy = object.lazy ?? false; - message.deprecated = object.deprecated ?? false; - message.weak = object.weak ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseFieldOptions(); - if (object.ctype !== undefined && object.ctype !== null) { - message.ctype = object.ctype; - } - if (object.packed !== undefined && object.packed !== null) { - message.packed = object.packed; - } - if (object.jstype !== undefined && object.jstype !== null) { - message.jstype = object.jstype; - } - if (object.lazy !== undefined && object.lazy !== null) { - message.lazy = object.lazy; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.weak !== undefined && object.weak !== null) { - message.weak = object.weak; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.ctype = message.ctype === 1 ? undefined : message.ctype; - obj.packed = message.packed === false ? undefined : message.packed; - obj.jstype = message.jstype === 1 ? undefined : message.jstype; - obj.lazy = message.lazy === false ? undefined : message.lazy; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.weak = message.weak === false ? undefined : message.weak; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.FieldOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.FieldOptions.decode(message.value); - }, - toProto(message) { - return exports.FieldOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.FieldOptions", - value: exports.FieldOptions.encode(message).finish() - }; - } -}; -function createBaseOneofOptions() { - return { - uninterpretedOption: [] - }; -} -exports.OneofOptions = { - typeUrl: "/google.protobuf.OneofOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOneofOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseOneofOptions(); - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.OneofOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.OneofOptions.decode(message.value); - }, - toProto(message) { - return exports.OneofOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.OneofOptions", - value: exports.OneofOptions.encode(message).finish() - }; - } -}; -function createBaseEnumOptions() { - return { - allowAlias: false, - deprecated: false, - uninterpretedOption: [] - }; -} -exports.EnumOptions = { - typeUrl: "/google.protobuf.EnumOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.allowAlias === true) { - writer.uint32(16).bool(message.allowAlias); - } - if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumOptions(); - message.allowAlias = object.allowAlias ?? false; - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumOptions(); - if (object.allow_alias !== undefined && object.allow_alias !== null) { - message.allowAlias = object.allow_alias; - } - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.EnumOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EnumOptions.decode(message.value); - }, - toProto(message) { - return exports.EnumOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumOptions", - value: exports.EnumOptions.encode(message).finish() - }; - } -}; -function createBaseEnumValueOptions() { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -exports.EnumValueOptions = { - typeUrl: "/google.protobuf.EnumValueOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(8).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEnumValueOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEnumValueOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEnumValueOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.EnumValueOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EnumValueOptions.decode(message.value); - }, - toProto(message) { - return exports.EnumValueOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.EnumValueOptions", - value: exports.EnumValueOptions.encode(message).finish() - }; - } -}; -function createBaseServiceOptions() { - return { - deprecated: false, - uninterpretedOption: [] - }; -} -exports.ServiceOptions = { - typeUrl: "/google.protobuf.ServiceOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseServiceOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseServiceOptions(); - message.deprecated = object.deprecated ?? false; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseServiceOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ServiceOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ServiceOptions.decode(message.value); - }, - toProto(message) { - return exports.ServiceOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.ServiceOptions", - value: exports.ServiceOptions.encode(message).finish() - }; - } -}; -function createBaseMethodOptions() { - return { - deprecated: false, - idempotencyLevel: 1, - uninterpretedOption: [] - }; -} -exports.MethodOptions = { - typeUrl: "/google.protobuf.MethodOptions", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.deprecated === true) { - writer.uint32(264).bool(message.deprecated); - } - if (message.idempotencyLevel !== 1) { - writer.uint32(272).int32(message.idempotencyLevel); - } - for (const v of message.uninterpretedOption) { - exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMethodOptions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMethodOptions(); - message.deprecated = object.deprecated ?? false; - message.idempotencyLevel = object.idempotencyLevel ?? 1; - message.uninterpretedOption = object.uninterpretedOption?.map(e => exports.UninterpretedOption.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMethodOptions(); - if (object.deprecated !== undefined && object.deprecated !== null) { - message.deprecated = object.deprecated; - } - if (object.idempotency_level !== undefined && object.idempotency_level !== null) { - message.idempotencyLevel = object.idempotency_level; - } - message.uninterpretedOption = object.uninterpreted_option?.map(e => exports.UninterpretedOption.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.deprecated = message.deprecated === false ? undefined : message.deprecated; - obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; - if (message.uninterpretedOption) { - obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? exports.UninterpretedOption.toAmino(e) : undefined); - } - else { - obj.uninterpreted_option = message.uninterpretedOption; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MethodOptions.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MethodOptions.decode(message.value); - }, - toProto(message) { - return exports.MethodOptions.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.MethodOptions", - value: exports.MethodOptions.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption() { - return { - name: [], - identifierValue: "", - positiveIntValue: BigInt(0), - negativeIntValue: BigInt(0), - doubleValue: 0, - stringValue: new Uint8Array(), - aggregateValue: "" - }; -} -exports.UninterpretedOption = { - typeUrl: "/google.protobuf.UninterpretedOption", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.name) { - exports.UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.identifierValue !== "") { - writer.uint32(26).string(message.identifierValue); - } - if (message.positiveIntValue !== BigInt(0)) { - writer.uint32(32).uint64(message.positiveIntValue); - } - if (message.negativeIntValue !== BigInt(0)) { - writer.uint32(40).int64(message.negativeIntValue); - } - if (message.doubleValue !== 0) { - writer.uint32(49).double(message.doubleValue); - } - if (message.stringValue.length !== 0) { - writer.uint32(58).bytes(message.stringValue); - } - if (message.aggregateValue !== "") { - writer.uint32(66).string(message.aggregateValue); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.name.push(exports.UninterpretedOption_NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => exports.UninterpretedOption_NamePart.fromPartial(e)) || []; - message.identifierValue = object.identifierValue ?? ""; - message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? BigInt(object.positiveIntValue.toString()) : BigInt(0); - message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? BigInt(object.negativeIntValue.toString()) : BigInt(0); - message.doubleValue = object.doubleValue ?? 0; - message.stringValue = object.stringValue ?? new Uint8Array(); - message.aggregateValue = object.aggregateValue ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseUninterpretedOption(); - message.name = object.name?.map(e => exports.UninterpretedOption_NamePart.fromAmino(e)) || []; - if (object.identifier_value !== undefined && object.identifier_value !== null) { - message.identifierValue = object.identifier_value; - } - if (object.positive_int_value !== undefined && object.positive_int_value !== null) { - message.positiveIntValue = BigInt(object.positive_int_value); - } - if (object.negative_int_value !== undefined && object.negative_int_value !== null) { - message.negativeIntValue = BigInt(object.negative_int_value); - } - if (object.double_value !== undefined && object.double_value !== null) { - message.doubleValue = object.double_value; - } - if (object.string_value !== undefined && object.string_value !== null) { - message.stringValue = (0, helpers_1.bytesFromBase64)(object.string_value); - } - if (object.aggregate_value !== undefined && object.aggregate_value !== null) { - message.aggregateValue = object.aggregate_value; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.name) { - obj.name = message.name.map(e => e ? exports.UninterpretedOption_NamePart.toAmino(e) : undefined); - } - else { - obj.name = message.name; - } - obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; - obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; - obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; - obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; - obj.string_value = message.stringValue ? (0, helpers_1.base64FromBytes)(message.stringValue) : undefined; - obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; - return obj; - }, - fromAminoMsg(object) { - return exports.UninterpretedOption.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.UninterpretedOption.decode(message.value); - }, - toProto(message) { - return exports.UninterpretedOption.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.UninterpretedOption", - value: exports.UninterpretedOption.encode(message).finish() - }; - } -}; -function createBaseUninterpretedOption_NamePart() { - return { - namePart: "", - isExtension: false - }; -} -exports.UninterpretedOption_NamePart = { - typeUrl: "/google.protobuf.NamePart", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.namePart !== "") { - writer.uint32(10).string(message.namePart); - } - if (message.isExtension === true) { - writer.uint32(16).bool(message.isExtension); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUninterpretedOption_NamePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUninterpretedOption_NamePart(); - message.namePart = object.namePart ?? ""; - message.isExtension = object.isExtension ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseUninterpretedOption_NamePart(); - if (object.name_part !== undefined && object.name_part !== null) { - message.namePart = object.name_part; - } - if (object.is_extension !== undefined && object.is_extension !== null) { - message.isExtension = object.is_extension; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name_part = message.namePart === "" ? undefined : message.namePart; - obj.is_extension = message.isExtension === false ? undefined : message.isExtension; - return obj; - }, - fromAminoMsg(object) { - return exports.UninterpretedOption_NamePart.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.UninterpretedOption_NamePart.decode(message.value); - }, - toProto(message) { - return exports.UninterpretedOption_NamePart.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.NamePart", - value: exports.UninterpretedOption_NamePart.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo() { - return { - location: [] - }; -} -exports.SourceCodeInfo = { - typeUrl: "/google.protobuf.SourceCodeInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.location) { - exports.SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.location.push(exports.SourceCodeInfo_Location.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => exports.SourceCodeInfo_Location.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSourceCodeInfo(); - message.location = object.location?.map(e => exports.SourceCodeInfo_Location.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.location) { - obj.location = message.location.map(e => e ? exports.SourceCodeInfo_Location.toAmino(e) : undefined); - } - else { - obj.location = message.location; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SourceCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SourceCodeInfo.decode(message.value); - }, - toProto(message) { - return exports.SourceCodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.SourceCodeInfo", - value: exports.SourceCodeInfo.encode(message).finish() - }; - } -}; -function createBaseSourceCodeInfo_Location() { - return { - path: [], - span: [], - leadingComments: "", - trailingComments: "", - leadingDetachedComments: [] - }; -} -exports.SourceCodeInfo_Location = { - typeUrl: "/google.protobuf.Location", - encode(message, writer = binary_1.BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - writer.uint32(18).fork(); - for (const v of message.span) { - writer.int32(v); - } - writer.ldelim(); - if (message.leadingComments !== "") { - writer.uint32(26).string(message.leadingComments); - } - if (message.trailingComments !== "") { - writer.uint32(34).string(message.trailingComments); - } - for (const v of message.leadingDetachedComments) { - writer.uint32(50).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSourceCodeInfo_Location(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } - else { - message.path.push(reader.int32()); - } - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.span.push(reader.int32()); - } - } - else { - message.span.push(reader.int32()); - } - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - message.leadingComments = object.leadingComments ?? ""; - message.trailingComments = object.trailingComments ?? ""; - message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map(e => e) || []; - message.span = object.span?.map(e => e) || []; - if (object.leading_comments !== undefined && object.leading_comments !== null) { - message.leadingComments = object.leading_comments; - } - if (object.trailing_comments !== undefined && object.trailing_comments !== null) { - message.trailingComments = object.trailing_comments; - } - message.leadingDetachedComments = object.leading_detached_comments?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } - else { - obj.path = message.path; - } - if (message.span) { - obj.span = message.span.map(e => e); - } - else { - obj.span = message.span; - } - obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; - obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; - if (message.leadingDetachedComments) { - obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); - } - else { - obj.leading_detached_comments = message.leadingDetachedComments; - } - return obj; - }, - fromAminoMsg(object) { - return exports.SourceCodeInfo_Location.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SourceCodeInfo_Location.decode(message.value); - }, - toProto(message) { - return exports.SourceCodeInfo_Location.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Location", - value: exports.SourceCodeInfo_Location.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo() { - return { - annotation: [] - }; -} -exports.GeneratedCodeInfo = { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.annotation) { - exports.GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotation.push(exports.GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => exports.GeneratedCodeInfo_Annotation.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGeneratedCodeInfo(); - message.annotation = object.annotation?.map(e => exports.GeneratedCodeInfo_Annotation.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.annotation) { - obj.annotation = message.annotation.map(e => e ? exports.GeneratedCodeInfo_Annotation.toAmino(e) : undefined); - } - else { - obj.annotation = message.annotation; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GeneratedCodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.GeneratedCodeInfo.decode(message.value); - }, - toProto(message) { - return exports.GeneratedCodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.GeneratedCodeInfo", - value: exports.GeneratedCodeInfo.encode(message).finish() - }; - } -}; -function createBaseGeneratedCodeInfo_Annotation() { - return { - path: [], - sourceFile: "", - begin: 0, - end: 0 - }; -} -exports.GeneratedCodeInfo_Annotation = { - typeUrl: "/google.protobuf.Annotation", - encode(message, writer = binary_1.BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.path) { - writer.int32(v); - } - writer.ldelim(); - if (message.sourceFile !== "") { - writer.uint32(18).string(message.sourceFile); - } - if (message.begin !== 0) { - writer.uint32(24).int32(message.begin); - } - if (message.end !== 0) { - writer.uint32(32).int32(message.end); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGeneratedCodeInfo_Annotation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.path.push(reader.int32()); - } - } - else { - message.path.push(reader.int32()); - } - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - message.sourceFile = object.sourceFile ?? ""; - message.begin = object.begin ?? 0; - message.end = object.end ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map(e => e) || []; - if (object.source_file !== undefined && object.source_file !== null) { - message.sourceFile = object.source_file; - } - if (object.begin !== undefined && object.begin !== null) { - message.begin = object.begin; - } - if (object.end !== undefined && object.end !== null) { - message.end = object.end; - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map(e => e); - } - else { - obj.path = message.path; - } - obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; - obj.begin = message.begin === 0 ? undefined : message.begin; - obj.end = message.end === 0 ? undefined : message.end; - return obj; - }, - fromAminoMsg(object) { - return exports.GeneratedCodeInfo_Annotation.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.GeneratedCodeInfo_Annotation.decode(message.value); - }, - toProto(message) { - return exports.GeneratedCodeInfo_Annotation.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Annotation", - value: exports.GeneratedCodeInfo_Annotation.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/google/protobuf/duration.d.ts b/packages/api/dist/google/protobuf/duration.d.ts deleted file mode 100644 index 64b0008c..00000000 --- a/packages/api/dist/google/protobuf/duration.d.ts +++ /dev/null @@ -1,223 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export interface DurationProtoMsg { - typeUrl: "/google.protobuf.Duration"; - value: Uint8Array; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export type DurationAmino = string; -export interface DurationAminoMsg { - type: "/google.protobuf.Duration"; - value: DurationAmino; -} -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (durations.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - */ -export interface DurationSDKType { - seconds: bigint; - nanos: number; -} -export declare const Duration: { - typeUrl: string; - encode(message: Duration, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Duration; - fromPartial(object: Partial): Duration; - fromAmino(object: DurationAmino): Duration; - toAmino(message: Duration): DurationAmino; - fromAminoMsg(object: DurationAminoMsg): Duration; - fromProtoMsg(message: DurationProtoMsg): Duration; - toProto(message: Duration): Uint8Array; - toProtoMsg(message: Duration): DurationProtoMsg; -}; diff --git a/packages/api/dist/google/protobuf/duration.js b/packages/api/dist/google/protobuf/duration.js deleted file mode 100644 index 1ae855ed..00000000 --- a/packages/api/dist/google/protobuf/duration.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Duration = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -function createBaseDuration() { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -exports.Duration = { - typeUrl: "/google.protobuf.Duration", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuration(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDuration(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object) { - const value = BigInt(object); - return { - seconds: value / BigInt("1000000000"), - nanos: Number(value % BigInt("1000000000")) - }; - }, - toAmino(message) { - return (message.seconds * BigInt("1000000000") + BigInt(message.nanos)).toString(); - }, - fromAminoMsg(object) { - return exports.Duration.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Duration.decode(message.value); - }, - toProto(message) { - return exports.Duration.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Duration", - value: exports.Duration.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/google/protobuf/timestamp.d.ts b/packages/api/dist/google/protobuf/timestamp.d.ts deleted file mode 100644 index 79f1d3e8..00000000 --- a/packages/api/dist/google/protobuf/timestamp.d.ts +++ /dev/null @@ -1,293 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export interface TimestampProtoMsg { - typeUrl: "/google.protobuf.Timestamp"; - value: Uint8Array; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export type TimestampAmino = string; -export interface TimestampAminoMsg { - type: "/google.protobuf.Timestamp"; - value: TimestampAmino; -} -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface TimestampSDKType { - seconds: bigint; - nanos: number; -} -export declare const Timestamp: { - typeUrl: string; - encode(message: Timestamp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Timestamp; - fromPartial(object: Partial): Timestamp; - fromAmino(object: TimestampAmino): Timestamp; - toAmino(message: Timestamp): TimestampAmino; - fromAminoMsg(object: TimestampAminoMsg): Timestamp; - fromProtoMsg(message: TimestampProtoMsg): Timestamp; - toProto(message: Timestamp): Uint8Array; - toProtoMsg(message: Timestamp): TimestampProtoMsg; -}; diff --git a/packages/api/dist/google/protobuf/timestamp.js b/packages/api/dist/google/protobuf/timestamp.js deleted file mode 100644 index 8852e382..00000000 --- a/packages/api/dist/google/protobuf/timestamp.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBaseTimestamp() { - return { - seconds: BigInt(0), - nanos: 0 - }; -} -exports.Timestamp = { - typeUrl: "/google.protobuf.Timestamp", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seconds !== BigInt(0)) { - writer.uint32(8).int64(message.seconds); - } - if (message.nanos !== 0) { - writer.uint32(16).int32(message.nanos); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTimestamp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTimestamp(); - message.seconds = object.seconds !== undefined && object.seconds !== null ? BigInt(object.seconds.toString()) : BigInt(0); - message.nanos = object.nanos ?? 0; - return message; - }, - fromAmino(object) { - return (0, helpers_1.fromJsonTimestamp)(object); - }, - toAmino(message) { - return (0, helpers_1.fromTimestamp)(message).toISOString().replace(/\.\d+Z$/, "Z"); - }, - fromAminoMsg(object) { - return exports.Timestamp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Timestamp.decode(message.value); - }, - toProto(message) { - return exports.Timestamp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/google.protobuf.Timestamp", - value: exports.Timestamp.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/helpers.d.ts b/packages/api/dist/helpers.d.ts deleted file mode 100644 index 39f0b29e..00000000 --- a/packages/api/dist/helpers.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -export declare function bytesFromBase64(b64: string): Uint8Array; -export declare function base64FromBytes(arr: Uint8Array): string; -export interface AminoHeight { - readonly revision_number?: string; - readonly revision_height?: string; -} -export declare function omitDefault(input: T): T | undefined; -interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - */ - nanos: number; -} -export declare function toDuration(duration: string): Duration; -export declare function fromDuration(duration: Duration): string; -export declare function isSet(value: any): boolean; -export declare function isObject(value: any): boolean; -export interface PageRequest { - key: Uint8Array; - offset: bigint; - limit: bigint; - countTotal: boolean; - reverse: boolean; -} -export interface PageRequestParams { - 'pagination.key'?: string; - 'pagination.offset'?: string; - 'pagination.limit'?: string; - 'pagination.count_total'?: boolean; - 'pagination.reverse'?: boolean; -} -export interface Params { - params: PageRequestParams; -} -export declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params; -type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined; -export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { - [K in keyof T]?: DeepPartial; -} : Partial; -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P : P & { - [K in keyof P]: Exact; -} & Record>, never>; -export interface Rpc { - request(service: string, method: string, data: Uint8Array): Promise; -} -interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: bigint; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export declare function toTimestamp(date: Date): Timestamp; -export declare function fromTimestamp(t: Timestamp): Date; -export declare function fromJsonTimestamp(o: any): Timestamp; -export {}; diff --git a/packages/api/dist/helpers.js b/packages/api/dist/helpers.js deleted file mode 100644 index f70f2a79..00000000 --- a/packages/api/dist/helpers.js +++ /dev/null @@ -1,140 +0,0 @@ -"use strict"; -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromJsonTimestamp = exports.fromTimestamp = exports.toTimestamp = exports.setPaginationParams = exports.isObject = exports.isSet = exports.fromDuration = exports.toDuration = exports.omitDefault = exports.base64FromBytes = exports.bytesFromBase64 = void 0; -var globalThis = (() => { - if (typeof globalThis !== 'undefined') - return globalThis; - if (typeof self !== 'undefined') - return self; - if (typeof window !== 'undefined') - return window; - if (typeof global !== 'undefined') - return global; - throw 'Unable to locate global object'; -})(); -const atob = globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); -function bytesFromBase64(b64) { - const bin = atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; -} -exports.bytesFromBase64 = bytesFromBase64; -const btoa = globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); -function base64FromBytes(arr) { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return btoa(bin.join('')); -} -exports.base64FromBytes = base64FromBytes; -function omitDefault(input) { - if (typeof input === 'string') { - return input === '' ? undefined : input; - } - if (typeof input === 'number') { - return input === 0 ? undefined : input; - } - if (typeof input === "boolean") { - return input === false ? undefined : input; - } - if (typeof input === 'bigint') { - return input === BigInt(0) ? undefined : input; - } - throw new Error(`Got unsupported type ${typeof input}`); -} -exports.omitDefault = omitDefault; -function toDuration(duration) { - return { - seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)), - nanos: parseInt(duration) % 1000000000 - }; -} -exports.toDuration = toDuration; -function fromDuration(duration) { - return (parseInt(duration.seconds.toString()) * 1000000000 + - duration.nanos).toString(); -} -exports.fromDuration = fromDuration; -function isSet(value) { - return value !== null && value !== undefined; -} -exports.isSet = isSet; -function isObject(value) { - return typeof value === 'object' && value !== null; -} -exports.isObject = isObject; -const setPaginationParams = (options, pagination) => { - if (!pagination) { - return options; - } - if (typeof pagination?.countTotal !== 'undefined') { - options.params['pagination.count_total'] = pagination.countTotal; - } - if (typeof pagination?.key !== 'undefined') { - // String to Uint8Array - // let uint8arr = new Uint8Array(Buffer.from(data,'base64')); - // Uint8Array to String - options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64'); - } - if (typeof pagination?.limit !== 'undefined') { - options.params['pagination.limit'] = pagination.limit.toString(); - } - if (typeof pagination?.offset !== 'undefined') { - options.params['pagination.offset'] = pagination.offset.toString(); - } - if (typeof pagination?.reverse !== 'undefined') { - options.params['pagination.reverse'] = pagination.reverse; - } - return options; -}; -exports.setPaginationParams = setPaginationParams; -function toTimestamp(date) { - const seconds = numberToLong(date.getTime() / 1000); - const nanos = (date.getTime() % 1000) * 1000000; - return { - seconds, - nanos - }; -} -exports.toTimestamp = toTimestamp; -function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -exports.fromTimestamp = fromTimestamp; -const timestampFromJSON = (object) => { - return { - seconds: isSet(object.seconds) - ? BigInt(object.seconds.toString()) - : BigInt(0), - nanos: isSet(object.nanos) ? Number(object.nanos) : 0 - }; -}; -function fromJsonTimestamp(o) { - if (o instanceof Date) { - return toTimestamp(o); - } - else if (typeof o === 'string') { - return toTimestamp(new Date(o)); - } - else { - return timestampFromJSON(o); - } -} -exports.fromJsonTimestamp = fromJsonTimestamp; -function numberToLong(number) { - return BigInt(Math.trunc(number)); -} diff --git a/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts b/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts deleted file mode 100644 index 3903482d..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/genesis.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisState { - portId: string; - denomTraces: DenomTrace[]; - params: Params; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateAmino { - port_id?: string; - denom_traces?: DenomTraceAmino[]; - params?: ParamsAmino; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc-transfer genesis state */ -export interface GenesisStateSDKType { - port_id: string; - denom_traces: DenomTraceSDKType[]; - params: ParamsSDKType; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/genesis.js b/packages/api/dist/ibc/applications/transfer/v1/genesis.js deleted file mode 100644 index 58737193..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/genesis.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenesisState = void 0; -//@ts-nocheck -const transfer_1 = require("./transfer"); -const binary_1 = require("../../../../binary"); -function createBaseGenesisState() { - return { - portId: "", - denomTraces: [], - params: transfer_1.Params.fromPartial({}) - }; -} -exports.GenesisState = { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - for (const v of message.denomTraces) { - transfer_1.DenomTrace.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.params !== undefined) { - transfer_1.Params.encode(message.params, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.denomTraces.push(transfer_1.DenomTrace.decode(reader, reader.uint32())); - break; - case 3: - message.params = transfer_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.portId = object.portId ?? ""; - message.denomTraces = object.denomTraces?.map(e => transfer_1.DenomTrace.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? transfer_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - message.denomTraces = object.denom_traces?.map(e => transfer_1.DenomTrace.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = transfer_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? transfer_1.DenomTrace.toAmino(e) : undefined); - } - else { - obj.denom_traces = message.denomTraces; - } - obj.params = message.params ? transfer_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.d.ts deleted file mode 100644 index 36038f87..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.d.ts +++ /dev/null @@ -1,412 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { DenomTrace, DenomTraceAmino, DenomTraceSDKType, Params, ParamsAmino, ParamsSDKType } from "./transfer"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequest { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomTraceRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; - value: Uint8Array; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestAmino { - /** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomTraceRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTraceRequest"; - value: QueryDenomTraceRequestAmino; -} -/** - * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC - * method - */ -export interface QueryDenomTraceRequestSDKType { - hash: string; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponse { - /** denom_trace returns the requested denomination trace information. */ - denomTrace?: DenomTrace; -} -export interface QueryDenomTraceResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; - value: Uint8Array; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseAmino { - /** denom_trace returns the requested denomination trace information. */ - denom_trace?: DenomTraceAmino; -} -export interface QueryDenomTraceResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTraceResponse"; - value: QueryDenomTraceResponseAmino; -} -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface QueryDenomTraceResponseSDKType { - denom_trace?: DenomTraceSDKType; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryDenomTracesRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; - value: Uint8Array; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryDenomTracesRequestAminoMsg { - type: "cosmos-sdk/QueryDenomTracesRequest"; - value: QueryDenomTracesRequestAmino; -} -/** - * QueryConnectionsRequest is the request type for the Query/DenomTraces RPC - * method - */ -export interface QueryDenomTracesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponse { - /** denom_traces returns all denominations trace information. */ - denomTraces: DenomTrace[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryDenomTracesResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; - value: Uint8Array; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseAmino { - /** denom_traces returns all denominations trace information. */ - denom_traces?: DenomTraceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryDenomTracesResponseAminoMsg { - type: "cosmos-sdk/QueryDenomTracesResponse"; - value: QueryDenomTracesResponseAmino; -} -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface QueryDenomTracesResponseSDKType { - denom_traces: DenomTraceSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "cosmos-sdk/QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "cosmos-sdk/QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequest { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace: string; -} -export interface QueryDenomHashRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest"; - value: Uint8Array; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestAmino { - /** The denomination trace ([port_id]/[channel_id])+/[denom] */ - trace?: string; -} -export interface QueryDenomHashRequestAminoMsg { - type: "cosmos-sdk/QueryDenomHashRequest"; - value: QueryDenomHashRequestAmino; -} -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - */ -export interface QueryDenomHashRequestSDKType { - trace: string; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponse { - /** hash (in hex format) of the denomination trace information. */ - hash: string; -} -export interface QueryDenomHashResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse"; - value: Uint8Array; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseAmino { - /** hash (in hex format) of the denomination trace information. */ - hash?: string; -} -export interface QueryDenomHashResponseAminoMsg { - type: "cosmos-sdk/QueryDenomHashResponse"; - value: QueryDenomHashResponseAmino; -} -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - */ -export interface QueryDenomHashResponseSDKType { - hash: string; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequest { - /** unique port identifier */ - portId: string; - /** unique channel identifier */ - channelId: string; -} -export interface QueryEscrowAddressRequestProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest"; - value: Uint8Array; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestAmino { - /** unique port identifier */ - port_id?: string; - /** unique channel identifier */ - channel_id?: string; -} -export interface QueryEscrowAddressRequestAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressRequest"; - value: QueryEscrowAddressRequestAmino; -} -/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */ -export interface QueryEscrowAddressRequestSDKType { - port_id: string; - channel_id: string; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponse { - /** the escrow account address */ - escrowAddress: string; -} -export interface QueryEscrowAddressResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse"; - value: Uint8Array; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseAmino { - /** the escrow account address */ - escrow_address?: string; -} -export interface QueryEscrowAddressResponseAminoMsg { - type: "cosmos-sdk/QueryEscrowAddressResponse"; - value: QueryEscrowAddressResponseAmino; -} -/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */ -export interface QueryEscrowAddressResponseSDKType { - escrow_address: string; -} -export declare const QueryDenomTraceRequest: { - typeUrl: string; - encode(message: QueryDenomTraceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceRequest; - fromPartial(object: Partial): QueryDenomTraceRequest; - fromAmino(object: QueryDenomTraceRequestAmino): QueryDenomTraceRequest; - toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino; - fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest; - toAminoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestAminoMsg; - fromProtoMsg(message: QueryDenomTraceRequestProtoMsg): QueryDenomTraceRequest; - toProto(message: QueryDenomTraceRequest): Uint8Array; - toProtoMsg(message: QueryDenomTraceRequest): QueryDenomTraceRequestProtoMsg; -}; -export declare const QueryDenomTraceResponse: { - typeUrl: string; - encode(message: QueryDenomTraceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTraceResponse; - fromPartial(object: Partial): QueryDenomTraceResponse; - fromAmino(object: QueryDenomTraceResponseAmino): QueryDenomTraceResponse; - toAmino(message: QueryDenomTraceResponse): QueryDenomTraceResponseAmino; - fromAminoMsg(object: QueryDenomTraceResponseAminoMsg): QueryDenomTraceResponse; - toAminoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseAminoMsg; - fromProtoMsg(message: QueryDenomTraceResponseProtoMsg): QueryDenomTraceResponse; - toProto(message: QueryDenomTraceResponse): Uint8Array; - toProtoMsg(message: QueryDenomTraceResponse): QueryDenomTraceResponseProtoMsg; -}; -export declare const QueryDenomTracesRequest: { - typeUrl: string; - encode(message: QueryDenomTracesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesRequest; - fromPartial(object: Partial): QueryDenomTracesRequest; - fromAmino(object: QueryDenomTracesRequestAmino): QueryDenomTracesRequest; - toAmino(message: QueryDenomTracesRequest): QueryDenomTracesRequestAmino; - fromAminoMsg(object: QueryDenomTracesRequestAminoMsg): QueryDenomTracesRequest; - toAminoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestAminoMsg; - fromProtoMsg(message: QueryDenomTracesRequestProtoMsg): QueryDenomTracesRequest; - toProto(message: QueryDenomTracesRequest): Uint8Array; - toProtoMsg(message: QueryDenomTracesRequest): QueryDenomTracesRequestProtoMsg; -}; -export declare const QueryDenomTracesResponse: { - typeUrl: string; - encode(message: QueryDenomTracesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomTracesResponse; - fromPartial(object: Partial): QueryDenomTracesResponse; - fromAmino(object: QueryDenomTracesResponseAmino): QueryDenomTracesResponse; - toAmino(message: QueryDenomTracesResponse): QueryDenomTracesResponseAmino; - fromAminoMsg(object: QueryDenomTracesResponseAminoMsg): QueryDenomTracesResponse; - toAminoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseAminoMsg; - fromProtoMsg(message: QueryDenomTracesResponseProtoMsg): QueryDenomTracesResponse; - toProto(message: QueryDenomTracesResponse): Uint8Array; - toProtoMsg(message: QueryDenomTracesResponse): QueryDenomTracesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryDenomHashRequest: { - typeUrl: string; - encode(message: QueryDenomHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest; - fromPartial(object: Partial): QueryDenomHashRequest; - fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest; - toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino; - fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest; - toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg; - fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest; - toProto(message: QueryDenomHashRequest): Uint8Array; - toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg; -}; -export declare const QueryDenomHashResponse: { - typeUrl: string; - encode(message: QueryDenomHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse; - fromPartial(object: Partial): QueryDenomHashResponse; - fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse; - toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino; - fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse; - toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg; - fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse; - toProto(message: QueryDenomHashResponse): Uint8Array; - toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg; -}; -export declare const QueryEscrowAddressRequest: { - typeUrl: string; - encode(message: QueryEscrowAddressRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest; - fromPartial(object: Partial): QueryEscrowAddressRequest; - fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest; - toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino; - fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest; - toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg; - fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest; - toProto(message: QueryEscrowAddressRequest): Uint8Array; - toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg; -}; -export declare const QueryEscrowAddressResponse: { - typeUrl: string; - encode(message: QueryEscrowAddressResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse; - fromPartial(object: Partial): QueryEscrowAddressResponse; - fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse; - toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino; - fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse; - toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg; - fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse; - toProto(message: QueryEscrowAddressResponse): Uint8Array; - toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.js b/packages/api/dist/ibc/applications/transfer/v1/query.js deleted file mode 100644 index 90e17d5e..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.js +++ /dev/null @@ -1,711 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryEscrowAddressResponse = exports.QueryEscrowAddressRequest = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); -const transfer_1 = require("./transfer"); -const binary_1 = require("../../../../binary"); -function createBaseQueryDenomTraceRequest() { - return { - hash: "" - }; -} -exports.QueryDenomTraceRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTraceRequest(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTraceRequest(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomTraceRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTraceRequest", - value: exports.QueryDenomTraceRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomTraceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomTraceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", - value: exports.QueryDenomTraceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTraceResponse() { - return { - denomTrace: undefined - }; -} -exports.QueryDenomTraceResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denomTrace !== undefined) { - transfer_1.DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTraceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTrace = transfer_1.DenomTrace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTraceResponse(); - message.denomTrace = object.denomTrace !== undefined && object.denomTrace !== null ? transfer_1.DenomTrace.fromPartial(object.denomTrace) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTraceResponse(); - if (object.denom_trace !== undefined && object.denom_trace !== null) { - message.denomTrace = transfer_1.DenomTrace.fromAmino(object.denom_trace); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom_trace = message.denomTrace ? transfer_1.DenomTrace.toAmino(message.denomTrace) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomTraceResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTraceResponse", - value: exports.QueryDenomTraceResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomTraceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomTraceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", - value: exports.QueryDenomTraceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesRequest() { - return { - pagination: undefined - }; -} -exports.QueryDenomTracesRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTracesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTracesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomTracesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTracesRequest", - value: exports.QueryDenomTracesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomTracesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomTracesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", - value: exports.QueryDenomTracesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomTracesResponse() { - return { - denomTraces: [], - pagination: undefined - }; -} -exports.QueryDenomTracesResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.denomTraces) { - transfer_1.DenomTrace.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomTracesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denomTraces.push(transfer_1.DenomTrace.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denomTraces?.map(e => transfer_1.DenomTrace.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomTracesResponse(); - message.denomTraces = object.denom_traces?.map(e => transfer_1.DenomTrace.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.denomTraces) { - obj.denom_traces = message.denomTraces.map(e => e ? transfer_1.DenomTrace.toAmino(e) : undefined); - } - else { - obj.denom_traces = message.denomTraces; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomTracesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomTracesResponse", - value: exports.QueryDenomTracesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomTracesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomTracesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", - value: exports.QueryDenomTracesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsRequest", - value: exports.QueryParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -exports.QueryParamsResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - transfer_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = transfer_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? transfer_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = transfer_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? transfer_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryParamsResponse", - value: exports.QueryParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashRequest() { - return { - trace: "" - }; -} -exports.QueryDenomHashRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.trace !== "") { - writer.uint32(10).string(message.trace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.trace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomHashRequest(); - message.trace = object.trace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomHashRequest(); - if (object.trace !== undefined && object.trace !== null) { - message.trace = object.trace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.trace = message.trace === "" ? undefined : message.trace; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomHashRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomHashRequest", - value: exports.QueryDenomHashRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomHashRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", - value: exports.QueryDenomHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryDenomHashResponse() { - return { - hash: "" - }; -} -exports.QueryDenomHashResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash !== "") { - writer.uint32(10).string(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDenomHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryDenomHashResponse(); - message.hash = object.hash ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryDenomHashResponse(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = object.hash; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash === "" ? undefined : message.hash; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryDenomHashResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryDenomHashResponse", - value: exports.QueryDenomHashResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryDenomHashResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryDenomHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", - value: exports.QueryDenomHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressRequest() { - return { - portId: "", - channelId: "" - }; -} -exports.QueryEscrowAddressRequest = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - if (message.channelId !== "") { - writer.uint32(18).string(message.channelId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.channelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryEscrowAddressRequest(); - message.portId = object.portId ?? ""; - message.channelId = object.channelId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryEscrowAddressRequest(); - if (object.port_id !== undefined && object.port_id !== null) { - message.portId = object.port_id; - } - if (object.channel_id !== undefined && object.channel_id !== null) { - message.channelId = object.channel_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.port_id = message.portId === "" ? undefined : message.portId; - obj.channel_id = message.channelId === "" ? undefined : message.channelId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryEscrowAddressRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryEscrowAddressRequest", - value: exports.QueryEscrowAddressRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryEscrowAddressRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryEscrowAddressRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", - value: exports.QueryEscrowAddressRequest.encode(message).finish() - }; - } -}; -function createBaseQueryEscrowAddressResponse() { - return { - escrowAddress: "" - }; -} -exports.QueryEscrowAddressResponse = { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.escrowAddress !== "") { - writer.uint32(10).string(message.escrowAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEscrowAddressResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.escrowAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryEscrowAddressResponse(); - message.escrowAddress = object.escrowAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryEscrowAddressResponse(); - if (object.escrow_address !== undefined && object.escrow_address !== null) { - message.escrowAddress = object.escrow_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.escrow_address = message.escrowAddress === "" ? undefined : message.escrowAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryEscrowAddressResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryEscrowAddressResponse", - value: exports.QueryEscrowAddressResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryEscrowAddressResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryEscrowAddressResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", - value: exports.QueryEscrowAddressResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts deleted file mode 100644 index 8c8ba879..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryDenomTraceRequest, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomHashRequest, QueryDenomHashResponseSDKType, QueryEscrowAddressRequest, QueryEscrowAddressResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - denomTrace(params: QueryDenomTraceRequest): Promise; - denomTraces(params?: QueryDenomTracesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - denomHash(params: QueryDenomHashRequest): Promise; - escrowAddress(params: QueryEscrowAddressRequest): Promise; -} diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js b/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js deleted file mode 100644 index faa1922a..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.lcd.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - /* DenomTrace queries a denomination trace information. */ - async denomTrace(params) { - const endpoint = `ibc/apps/transfer/v1/denom_traces/${params.hash}`; - return await this.req.get(endpoint); - } - /* DenomTraces queries all denomination traces. */ - async denomTraces(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `ibc/apps/transfer/v1/denom_traces`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the ibc-transfer module. */ - async params(_params = {}) { - const endpoint = `ibc/apps/transfer/v1/params`; - return await this.req.get(endpoint); - } - /* DenomHash queries a denomination hash information. */ - async denomHash(params) { - const endpoint = `ibc/apps/transfer/v1/denom_hashes/${params.trace}`; - return await this.req.get(endpoint); - } - /* EscrowAddress returns the escrow address for a particular port and channel id. */ - async escrowAddress(params) { - const endpoint = `ibc/apps/transfer/v1/channels/${params.channelId}/ports/${params.portId}/escrow_address`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts deleted file mode 100644 index 3df3adea..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse } from "./query"; -/** Query provides defines the gRPC querier service. */ -export interface Query { - /** DenomTrace queries a denomination trace information. */ - denomTrace(request: QueryDenomTraceRequest): Promise; - /** DenomTraces queries all denomination traces. */ - denomTraces(request?: QueryDenomTracesRequest): Promise; - /** Params queries all parameters of the ibc-transfer module. */ - params(request?: QueryParamsRequest): Promise; - /** DenomHash queries a denomination hash information. */ - denomHash(request: QueryDenomHashRequest): Promise; - /** EscrowAddress returns the escrow address for a particular port and channel id. */ - escrowAddress(request: QueryEscrowAddressRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - denomTrace(request: QueryDenomTraceRequest): Promise; - denomTraces(request?: QueryDenomTracesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomHash(request: QueryDenomHashRequest): Promise; - escrowAddress(request: QueryEscrowAddressRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - denomTrace(request: QueryDenomTraceRequest): Promise; - denomTraces(request?: QueryDenomTracesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - denomHash(request: QueryDenomHashRequest): Promise; - escrowAddress(request: QueryEscrowAddressRequest): Promise; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js b/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js deleted file mode 100644 index fba67d5c..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/query.rpc.Query.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.denomTrace = this.denomTrace.bind(this); - this.denomTraces = this.denomTraces.bind(this); - this.params = this.params.bind(this); - this.denomHash = this.denomHash.bind(this); - this.escrowAddress = this.escrowAddress.bind(this); - } - denomTrace(request) { - const data = query_1.QueryDenomTraceRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); - return promise.then(data => query_1.QueryDenomTraceResponse.decode(new binary_1.BinaryReader(data))); - } - denomTraces(request = { - pagination: undefined - }) { - const data = query_1.QueryDenomTracesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); - return promise.then(data => query_1.QueryDenomTracesResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - denomHash(request) { - const data = query_1.QueryDenomHashRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data); - return promise.then(data => query_1.QueryDenomHashResponse.decode(new binary_1.BinaryReader(data))); - } - escrowAddress(request) { - const data = query_1.QueryEscrowAddressRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data); - return promise.then(data => query_1.QueryEscrowAddressResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - denomTrace(request) { - return queryService.denomTrace(request); - }, - denomTraces(request) { - return queryService.denomTraces(request); - }, - params(request) { - return queryService.params(request); - }, - denomHash(request) { - return queryService.denomHash(request); - }, - escrowAddress(request) { - return queryService.escrowAddress(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts b/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts deleted file mode 100644 index 003c479e..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/transfer.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path: string; - /** base denomination of the relayed fungible token. */ - baseDenom: string; -} -export interface DenomTraceProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; - value: Uint8Array; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceAmino { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; -} -export interface DenomTraceAminoMsg { - type: "cosmos-sdk/DenomTrace"; - value: DenomTraceAmino; -} -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface DenomTraceSDKType { - path: string; - base_denom: string; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - sendEnabled: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receiveEnabled: boolean; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsAmino { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface ParamsSDKType { - send_enabled: boolean; - receive_enabled: boolean; -} -export declare const DenomTrace: { - typeUrl: string; - encode(message: DenomTrace, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DenomTrace; - fromPartial(object: Partial): DenomTrace; - fromAmino(object: DenomTraceAmino): DenomTrace; - toAmino(message: DenomTrace): DenomTraceAmino; - fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace; - toAminoMsg(message: DenomTrace): DenomTraceAminoMsg; - fromProtoMsg(message: DenomTraceProtoMsg): DenomTrace; - toProto(message: DenomTrace): Uint8Array; - toProtoMsg(message: DenomTrace): DenomTraceProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/transfer.js b/packages/api/dist/ibc/applications/transfer/v1/transfer.js deleted file mode 100644 index 2195dcde..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/transfer.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Params = exports.DenomTrace = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseDenomTrace() { - return { - path: "", - baseDenom: "" - }; -} -exports.DenomTrace = { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.path !== "") { - writer.uint32(10).string(message.path); - } - if (message.baseDenom !== "") { - writer.uint32(18).string(message.baseDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDenomTrace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.baseDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDenomTrace(); - message.path = object.path ?? ""; - message.baseDenom = object.baseDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDenomTrace(); - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.base_denom !== undefined && object.base_denom !== null) { - message.baseDenom = object.base_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.path = message.path === "" ? undefined : message.path; - obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.DenomTrace.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/DenomTrace", - value: exports.DenomTrace.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.DenomTrace.decode(message.value); - }, - toProto(message) { - return exports.DenomTrace.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.DenomTrace", - value: exports.DenomTrace.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - sendEnabled: false, - receiveEnabled: false - }; -} -exports.Params = { - typeUrl: "/ibc.applications.transfer.v1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sendEnabled === true) { - writer.uint32(8).bool(message.sendEnabled); - } - if (message.receiveEnabled === true) { - writer.uint32(16).bool(message.receiveEnabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sendEnabled = reader.bool(); - break; - case 2: - message.receiveEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.sendEnabled = object.sendEnabled ?? false; - message.receiveEnabled = object.receiveEnabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - if (object.send_enabled !== undefined && object.send_enabled !== null) { - message.sendEnabled = object.send_enabled; - } - if (object.receive_enabled !== undefined && object.receive_enabled !== null) { - message.receiveEnabled = object.receive_enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; - obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts deleted file mode 100644 index 7bd64477..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { MsgTransfer } from "./tx"; -export declare const AminoConverter: { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: MsgTransfer) => import("./tx").MsgTransferAmino; - fromAmino: (object: import("./tx").MsgTransferAmino) => MsgTransfer; - }; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js b/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js deleted file mode 100644 index 0ecec267..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.amino.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: "cosmos-sdk/MsgTransfer", - toAmino: tx_1.MsgTransfer.toAmino, - fromAmino: tx_1.MsgTransfer.fromAmino - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts deleted file mode 100644 index f6b7f228..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { Height, HeightAmino, HeightSDKType } from "../../../core/client/v1/client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransfer { - /** the port on which the packet will be sent */ - sourcePort: string; - /** the channel by which the packet will be sent */ - sourceChannel: string; - /** the tokens to be transferred */ - token: Coin; - /** the sender address */ - sender: string; - /** the recipient address on the destination chain */ - receiver: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeoutHeight: Height; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeoutTimestamp: bigint; -} -export interface MsgTransferProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; - value: Uint8Array; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferAmino { - /** the port on which the packet will be sent */ - source_port?: string; - /** the channel by which the packet will be sent */ - source_channel?: string; - /** the tokens to be transferred */ - token?: CoinAmino; - /** the sender address */ - sender?: string; - /** the recipient address on the destination chain */ - receiver?: string; - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - */ - timeout_height?: HeightAmino; - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - */ - timeout_timestamp?: string; -} -export interface MsgTransferAminoMsg { - type: "cosmos-sdk/MsgTransfer"; - value: MsgTransferAmino; -} -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - */ -export interface MsgTransferSDKType { - source_port: string; - source_channel: string; - token: CoinSDKType; - sender: string; - receiver: string; - timeout_height: HeightSDKType; - timeout_timestamp: bigint; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponse { -} -export interface MsgTransferResponseProtoMsg { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; - value: Uint8Array; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseAmino { -} -export interface MsgTransferResponseAminoMsg { - type: "cosmos-sdk/MsgTransferResponse"; - value: MsgTransferResponseAmino; -} -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export interface MsgTransferResponseSDKType { -} -export declare const MsgTransfer: { - typeUrl: string; - encode(message: MsgTransfer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransfer; - fromPartial(object: Partial): MsgTransfer; - fromAmino(object: MsgTransferAmino): MsgTransfer; - toAmino(message: MsgTransfer): MsgTransferAmino; - fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer; - toAminoMsg(message: MsgTransfer): MsgTransferAminoMsg; - fromProtoMsg(message: MsgTransferProtoMsg): MsgTransfer; - toProto(message: MsgTransfer): Uint8Array; - toProtoMsg(message: MsgTransfer): MsgTransferProtoMsg; -}; -export declare const MsgTransferResponse: { - typeUrl: string; - encode(_: MsgTransferResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTransferResponse; - fromPartial(_: Partial): MsgTransferResponse; - fromAmino(_: MsgTransferResponseAmino): MsgTransferResponse; - toAmino(_: MsgTransferResponse): MsgTransferResponseAmino; - fromAminoMsg(object: MsgTransferResponseAminoMsg): MsgTransferResponse; - toAminoMsg(message: MsgTransferResponse): MsgTransferResponseAminoMsg; - fromProtoMsg(message: MsgTransferResponseProtoMsg): MsgTransferResponse; - toProto(message: MsgTransferResponse): Uint8Array; - toProtoMsg(message: MsgTransferResponse): MsgTransferResponseProtoMsg; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.js b/packages/api/dist/ibc/applications/transfer/v1/tx.js deleted file mode 100644 index d08c30c9..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.js +++ /dev/null @@ -1,204 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgTransferResponse = exports.MsgTransfer = void 0; -//@ts-nocheck -const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); -const client_1 = require("../../../core/client/v1/client"); -const binary_1 = require("../../../../binary"); -function createBaseMsgTransfer() { - return { - sourcePort: "", - sourceChannel: "", - token: coin_1.Coin.fromPartial({}), - sender: "", - receiver: "", - timeoutHeight: client_1.Height.fromPartial({}), - timeoutTimestamp: BigInt(0) - }; -} -exports.MsgTransfer = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sourcePort !== "") { - writer.uint32(10).string(message.sourcePort); - } - if (message.sourceChannel !== "") { - writer.uint32(18).string(message.sourceChannel); - } - if (message.token !== undefined) { - coin_1.Coin.encode(message.token, writer.uint32(26).fork()).ldelim(); - } - if (message.sender !== "") { - writer.uint32(34).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(42).string(message.receiver); - } - if (message.timeoutHeight !== undefined) { - client_1.Height.encode(message.timeoutHeight, writer.uint32(50).fork()).ldelim(); - } - if (message.timeoutTimestamp !== BigInt(0)) { - writer.uint32(56).uint64(message.timeoutTimestamp); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sourcePort = reader.string(); - break; - case 2: - message.sourceChannel = reader.string(); - break; - case 3: - message.token = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.sender = reader.string(); - break; - case 5: - message.receiver = reader.string(); - break; - case 6: - message.timeoutHeight = client_1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.timeoutTimestamp = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTransfer(); - message.sourcePort = object.sourcePort ?? ""; - message.sourceChannel = object.sourceChannel ?? ""; - message.token = object.token !== undefined && object.token !== null ? coin_1.Coin.fromPartial(object.token) : undefined; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? client_1.Height.fromPartial(object.timeoutHeight) : undefined; - message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgTransfer(); - if (object.source_port !== undefined && object.source_port !== null) { - message.sourcePort = object.source_port; - } - if (object.source_channel !== undefined && object.source_channel !== null) { - message.sourceChannel = object.source_channel; - } - if (object.token !== undefined && object.token !== null) { - message.token = coin_1.Coin.fromAmino(object.token); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.receiver !== undefined && object.receiver !== null) { - message.receiver = object.receiver; - } - if (object.timeout_height !== undefined && object.timeout_height !== null) { - message.timeoutHeight = client_1.Height.fromAmino(object.timeout_height); - } - if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) { - message.timeoutTimestamp = BigInt(object.timeout_timestamp); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; - obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; - obj.token = message.token ? coin_1.Coin.toAmino(message.token) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.receiver = message.receiver === "" ? undefined : message.receiver; - obj.timeout_height = message.timeoutHeight ? client_1.Height.toAmino(message.timeoutHeight) : {}; - obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgTransfer.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgTransfer", - value: exports.MsgTransfer.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgTransfer.decode(message.value); - }, - toProto(message) { - return exports.MsgTransfer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: exports.MsgTransfer.encode(message).finish() - }; - } -}; -function createBaseMsgTransferResponse() { - return {}; -} -exports.MsgTransferResponse = { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTransferResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgTransferResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgTransferResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgTransferResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgTransferResponse", - value: exports.MsgTransferResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgTransferResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgTransferResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", - value: exports.MsgTransferResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts deleted file mode 100644 index c4e84a0d..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgTransfer } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: MsgTransfer; - }; - }; - fromPartial: { - transfer(value: MsgTransfer): { - typeUrl: string; - value: MsgTransfer; - }; - }; -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js b/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js deleted file mode 100644 index 8fc71908..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.registry.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/ibc.applications.transfer.v1.MsgTransfer", tx_1.MsgTransfer]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: tx_1.MsgTransfer.encode(value).finish() - }; - } - }, - withTypeUrl: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value - }; - } - }, - fromPartial: { - transfer(value) { - return { - typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", - value: tx_1.MsgTransfer.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts deleted file mode 100644 index d000d7b5..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgTransfer, MsgTransferResponse } from "./tx"; -/** Msg defines the ibc/transfer Msg service. */ -export interface Msg { - /** Transfer defines a rpc handler method for MsgTransfer. */ - transfer(request: MsgTransfer): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - transfer(request: MsgTransfer): Promise; -} diff --git a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js b/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js deleted file mode 100644 index 53cca1ce..00000000 --- a/packages/api/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.transfer = this.transfer.bind(this); - } - transfer(request) { - const data = tx_1.MsgTransfer.encode(request).finish(); - const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); - return promise.then(data => tx_1.MsgTransferResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/ibc/bundle.d.ts b/packages/api/dist/ibc/bundle.d.ts deleted file mode 100644 index 4fb51139..00000000 --- a/packages/api/dist/ibc/bundle.d.ts +++ /dev/null @@ -1,1114 +0,0 @@ -import * as _68 from "./applications/transfer/v1/genesis"; -import * as _69 from "./applications/transfer/v1/query"; -import * as _70 from "./applications/transfer/v1/transfer"; -import * as _71 from "./applications/transfer/v1/tx"; -import * as _72 from "./core/client/v1/client"; -import * as _73 from "./core/client/v1/genesis"; -import * as _74 from "./core/client/v1/query"; -import * as _75 from "./core/client/v1/tx"; -import * as _181 from "./applications/transfer/v1/query.lcd"; -import * as _182 from "./core/client/v1/query.lcd"; -import * as _183 from "./applications/transfer/v1/query.rpc.Query"; -import * as _184 from "./core/client/v1/query.rpc.Query"; -import * as _185 from "./applications/transfer/v1/tx.rpc.msg"; -import * as _186 from "./core/client/v1/tx.rpc.msg"; -export declare namespace ibc { - namespace applications { - namespace transfer { - const v1: { - MsgClientImpl: typeof _185.MsgClientImpl; - QueryClientImpl: typeof _183.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - denomTrace(request: _69.QueryDenomTraceRequest): Promise<_69.QueryDenomTraceResponse>; - denomTraces(request?: _69.QueryDenomTracesRequest): Promise<_69.QueryDenomTracesResponse>; - params(request?: _69.QueryParamsRequest): Promise<_69.QueryParamsResponse>; - denomHash(request: _69.QueryDenomHashRequest): Promise<_69.QueryDenomHashResponse>; - escrowAddress(request: _69.QueryEscrowAddressRequest): Promise<_69.QueryEscrowAddressResponse>; - }; - LCDQueryClient: typeof _181.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - transfer(value: _71.MsgTransfer): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - transfer(value: _71.MsgTransfer): { - typeUrl: string; - value: _71.MsgTransfer; - }; - }; - fromPartial: { - transfer(value: _71.MsgTransfer): { - typeUrl: string; - value: _71.MsgTransfer; - }; - }; - }; - AminoConverter: { - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: _71.MsgTransfer) => _71.MsgTransferAmino; - fromAmino: (object: _71.MsgTransferAmino) => _71.MsgTransfer; - }; - }; - MsgTransfer: { - typeUrl: string; - encode(message: _71.MsgTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _71.MsgTransfer; - fromPartial(object: Partial<_71.MsgTransfer>): _71.MsgTransfer; - fromAmino(object: _71.MsgTransferAmino): _71.MsgTransfer; - toAmino(message: _71.MsgTransfer): _71.MsgTransferAmino; - fromAminoMsg(object: _71.MsgTransferAminoMsg): _71.MsgTransfer; - toAminoMsg(message: _71.MsgTransfer): _71.MsgTransferAminoMsg; - fromProtoMsg(message: _71.MsgTransferProtoMsg): _71.MsgTransfer; - toProto(message: _71.MsgTransfer): Uint8Array; - toProtoMsg(message: _71.MsgTransfer): _71.MsgTransferProtoMsg; - }; - MsgTransferResponse: { - typeUrl: string; - encode(_: _71.MsgTransferResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _71.MsgTransferResponse; - fromPartial(_: Partial<_71.MsgTransferResponse>): _71.MsgTransferResponse; - fromAmino(_: _71.MsgTransferResponseAmino): _71.MsgTransferResponse; - toAmino(_: _71.MsgTransferResponse): _71.MsgTransferResponseAmino; - fromAminoMsg(object: _71.MsgTransferResponseAminoMsg): _71.MsgTransferResponse; - toAminoMsg(message: _71.MsgTransferResponse): _71.MsgTransferResponseAminoMsg; - fromProtoMsg(message: _71.MsgTransferResponseProtoMsg): _71.MsgTransferResponse; - toProto(message: _71.MsgTransferResponse): Uint8Array; - toProtoMsg(message: _71.MsgTransferResponse): _71.MsgTransferResponseProtoMsg; - }; - DenomTrace: { - typeUrl: string; - encode(message: _70.DenomTrace, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _70.DenomTrace; - fromPartial(object: Partial<_70.DenomTrace>): _70.DenomTrace; - fromAmino(object: _70.DenomTraceAmino): _70.DenomTrace; - toAmino(message: _70.DenomTrace): _70.DenomTraceAmino; - fromAminoMsg(object: _70.DenomTraceAminoMsg): _70.DenomTrace; - toAminoMsg(message: _70.DenomTrace): _70.DenomTraceAminoMsg; - fromProtoMsg(message: _70.DenomTraceProtoMsg): _70.DenomTrace; - toProto(message: _70.DenomTrace): Uint8Array; - toProtoMsg(message: _70.DenomTrace): _70.DenomTraceProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _70.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _70.Params; - fromPartial(object: Partial<_70.Params>): _70.Params; - fromAmino(object: _70.ParamsAmino): _70.Params; - toAmino(message: _70.Params): _70.ParamsAmino; - fromAminoMsg(object: _70.ParamsAminoMsg): _70.Params; - toAminoMsg(message: _70.Params): _70.ParamsAminoMsg; - fromProtoMsg(message: _70.ParamsProtoMsg): _70.Params; - toProto(message: _70.Params): Uint8Array; - toProtoMsg(message: _70.Params): _70.ParamsProtoMsg; - }; - QueryDenomTraceRequest: { - typeUrl: string; - encode(message: _69.QueryDenomTraceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTraceRequest; - fromPartial(object: Partial<_69.QueryDenomTraceRequest>): _69.QueryDenomTraceRequest; - fromAmino(object: _69.QueryDenomTraceRequestAmino): _69.QueryDenomTraceRequest; - toAmino(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestAmino; - fromAminoMsg(object: _69.QueryDenomTraceRequestAminoMsg): _69.QueryDenomTraceRequest; - toAminoMsg(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestAminoMsg; - fromProtoMsg(message: _69.QueryDenomTraceRequestProtoMsg): _69.QueryDenomTraceRequest; - toProto(message: _69.QueryDenomTraceRequest): Uint8Array; - toProtoMsg(message: _69.QueryDenomTraceRequest): _69.QueryDenomTraceRequestProtoMsg; - }; - QueryDenomTraceResponse: { - typeUrl: string; - encode(message: _69.QueryDenomTraceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTraceResponse; - fromPartial(object: Partial<_69.QueryDenomTraceResponse>): _69.QueryDenomTraceResponse; - fromAmino(object: _69.QueryDenomTraceResponseAmino): _69.QueryDenomTraceResponse; - toAmino(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseAmino; - fromAminoMsg(object: _69.QueryDenomTraceResponseAminoMsg): _69.QueryDenomTraceResponse; - toAminoMsg(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseAminoMsg; - fromProtoMsg(message: _69.QueryDenomTraceResponseProtoMsg): _69.QueryDenomTraceResponse; - toProto(message: _69.QueryDenomTraceResponse): Uint8Array; - toProtoMsg(message: _69.QueryDenomTraceResponse): _69.QueryDenomTraceResponseProtoMsg; - }; - QueryDenomTracesRequest: { - typeUrl: string; - encode(message: _69.QueryDenomTracesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTracesRequest; - fromPartial(object: Partial<_69.QueryDenomTracesRequest>): _69.QueryDenomTracesRequest; - fromAmino(object: _69.QueryDenomTracesRequestAmino): _69.QueryDenomTracesRequest; - toAmino(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestAmino; - fromAminoMsg(object: _69.QueryDenomTracesRequestAminoMsg): _69.QueryDenomTracesRequest; - toAminoMsg(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestAminoMsg; - fromProtoMsg(message: _69.QueryDenomTracesRequestProtoMsg): _69.QueryDenomTracesRequest; - toProto(message: _69.QueryDenomTracesRequest): Uint8Array; - toProtoMsg(message: _69.QueryDenomTracesRequest): _69.QueryDenomTracesRequestProtoMsg; - }; - QueryDenomTracesResponse: { - typeUrl: string; - encode(message: _69.QueryDenomTracesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomTracesResponse; - fromPartial(object: Partial<_69.QueryDenomTracesResponse>): _69.QueryDenomTracesResponse; - fromAmino(object: _69.QueryDenomTracesResponseAmino): _69.QueryDenomTracesResponse; - toAmino(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseAmino; - fromAminoMsg(object: _69.QueryDenomTracesResponseAminoMsg): _69.QueryDenomTracesResponse; - toAminoMsg(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseAminoMsg; - fromProtoMsg(message: _69.QueryDenomTracesResponseProtoMsg): _69.QueryDenomTracesResponse; - toProto(message: _69.QueryDenomTracesResponse): Uint8Array; - toProtoMsg(message: _69.QueryDenomTracesResponse): _69.QueryDenomTracesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _69.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryParamsRequest; - fromPartial(_: Partial<_69.QueryParamsRequest>): _69.QueryParamsRequest; - fromAmino(_: _69.QueryParamsRequestAmino): _69.QueryParamsRequest; - toAmino(_: _69.QueryParamsRequest): _69.QueryParamsRequestAmino; - fromAminoMsg(object: _69.QueryParamsRequestAminoMsg): _69.QueryParamsRequest; - toAminoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestAminoMsg; - fromProtoMsg(message: _69.QueryParamsRequestProtoMsg): _69.QueryParamsRequest; - toProto(message: _69.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _69.QueryParamsRequest): _69.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _69.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryParamsResponse; - fromPartial(object: Partial<_69.QueryParamsResponse>): _69.QueryParamsResponse; - fromAmino(object: _69.QueryParamsResponseAmino): _69.QueryParamsResponse; - toAmino(message: _69.QueryParamsResponse): _69.QueryParamsResponseAmino; - fromAminoMsg(object: _69.QueryParamsResponseAminoMsg): _69.QueryParamsResponse; - toAminoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseAminoMsg; - fromProtoMsg(message: _69.QueryParamsResponseProtoMsg): _69.QueryParamsResponse; - toProto(message: _69.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _69.QueryParamsResponse): _69.QueryParamsResponseProtoMsg; - }; - QueryDenomHashRequest: { - typeUrl: string; - encode(message: _69.QueryDenomHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomHashRequest; - fromPartial(object: Partial<_69.QueryDenomHashRequest>): _69.QueryDenomHashRequest; - fromAmino(object: _69.QueryDenomHashRequestAmino): _69.QueryDenomHashRequest; - toAmino(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestAmino; - fromAminoMsg(object: _69.QueryDenomHashRequestAminoMsg): _69.QueryDenomHashRequest; - toAminoMsg(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestAminoMsg; - fromProtoMsg(message: _69.QueryDenomHashRequestProtoMsg): _69.QueryDenomHashRequest; - toProto(message: _69.QueryDenomHashRequest): Uint8Array; - toProtoMsg(message: _69.QueryDenomHashRequest): _69.QueryDenomHashRequestProtoMsg; - }; - QueryDenomHashResponse: { - typeUrl: string; - encode(message: _69.QueryDenomHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryDenomHashResponse; - fromPartial(object: Partial<_69.QueryDenomHashResponse>): _69.QueryDenomHashResponse; - fromAmino(object: _69.QueryDenomHashResponseAmino): _69.QueryDenomHashResponse; - toAmino(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseAmino; - fromAminoMsg(object: _69.QueryDenomHashResponseAminoMsg): _69.QueryDenomHashResponse; - toAminoMsg(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseAminoMsg; - fromProtoMsg(message: _69.QueryDenomHashResponseProtoMsg): _69.QueryDenomHashResponse; - toProto(message: _69.QueryDenomHashResponse): Uint8Array; - toProtoMsg(message: _69.QueryDenomHashResponse): _69.QueryDenomHashResponseProtoMsg; - }; - QueryEscrowAddressRequest: { - typeUrl: string; - encode(message: _69.QueryEscrowAddressRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryEscrowAddressRequest; - fromPartial(object: Partial<_69.QueryEscrowAddressRequest>): _69.QueryEscrowAddressRequest; - fromAmino(object: _69.QueryEscrowAddressRequestAmino): _69.QueryEscrowAddressRequest; - toAmino(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestAmino; - fromAminoMsg(object: _69.QueryEscrowAddressRequestAminoMsg): _69.QueryEscrowAddressRequest; - toAminoMsg(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestAminoMsg; - fromProtoMsg(message: _69.QueryEscrowAddressRequestProtoMsg): _69.QueryEscrowAddressRequest; - toProto(message: _69.QueryEscrowAddressRequest): Uint8Array; - toProtoMsg(message: _69.QueryEscrowAddressRequest): _69.QueryEscrowAddressRequestProtoMsg; - }; - QueryEscrowAddressResponse: { - typeUrl: string; - encode(message: _69.QueryEscrowAddressResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _69.QueryEscrowAddressResponse; - fromPartial(object: Partial<_69.QueryEscrowAddressResponse>): _69.QueryEscrowAddressResponse; - fromAmino(object: _69.QueryEscrowAddressResponseAmino): _69.QueryEscrowAddressResponse; - toAmino(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseAmino; - fromAminoMsg(object: _69.QueryEscrowAddressResponseAminoMsg): _69.QueryEscrowAddressResponse; - toAminoMsg(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseAminoMsg; - fromProtoMsg(message: _69.QueryEscrowAddressResponseProtoMsg): _69.QueryEscrowAddressResponse; - toProto(message: _69.QueryEscrowAddressResponse): Uint8Array; - toProtoMsg(message: _69.QueryEscrowAddressResponse): _69.QueryEscrowAddressResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _68.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _68.GenesisState; - fromPartial(object: Partial<_68.GenesisState>): _68.GenesisState; - fromAmino(object: _68.GenesisStateAmino): _68.GenesisState; - toAmino(message: _68.GenesisState): _68.GenesisStateAmino; - fromAminoMsg(object: _68.GenesisStateAminoMsg): _68.GenesisState; - toAminoMsg(message: _68.GenesisState): _68.GenesisStateAminoMsg; - fromProtoMsg(message: _68.GenesisStateProtoMsg): _68.GenesisState; - toProto(message: _68.GenesisState): Uint8Array; - toProtoMsg(message: _68.GenesisState): _68.GenesisStateProtoMsg; - }; - }; - } - } - namespace core { - namespace client { - const v1: { - MsgClientImpl: typeof _186.MsgClientImpl; - QueryClientImpl: typeof _184.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - clientState(request: _74.QueryClientStateRequest): Promise<_74.QueryClientStateResponse>; - clientStates(request?: _74.QueryClientStatesRequest): Promise<_74.QueryClientStatesResponse>; - consensusState(request: _74.QueryConsensusStateRequest): Promise<_74.QueryConsensusStateResponse>; - consensusStates(request: _74.QueryConsensusStatesRequest): Promise<_74.QueryConsensusStatesResponse>; - consensusStateHeights(request: _74.QueryConsensusStateHeightsRequest): Promise<_74.QueryConsensusStateHeightsResponse>; - clientStatus(request: _74.QueryClientStatusRequest): Promise<_74.QueryClientStatusResponse>; - clientParams(request?: _74.QueryClientParamsRequest): Promise<_74.QueryClientParamsResponse>; - upgradedClientState(request?: _74.QueryUpgradedClientStateRequest): Promise<_74.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _74.QueryUpgradedConsensusStateRequest): Promise<_74.QueryUpgradedConsensusStateResponse>; - }; - LCDQueryClient: typeof _182.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClient(value: _75.MsgCreateClient): { - typeUrl: string; - value: Uint8Array; - }; - updateClient(value: _75.MsgUpdateClient): { - typeUrl: string; - value: Uint8Array; - }; - upgradeClient(value: _75.MsgUpgradeClient): { - typeUrl: string; - value: Uint8Array; - }; - submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClient(value: _75.MsgCreateClient): { - typeUrl: string; - value: _75.MsgCreateClient; - }; - updateClient(value: _75.MsgUpdateClient): { - typeUrl: string; - value: _75.MsgUpdateClient; - }; - upgradeClient(value: _75.MsgUpgradeClient): { - typeUrl: string; - value: _75.MsgUpgradeClient; - }; - submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { - typeUrl: string; - value: _75.MsgSubmitMisbehaviour; - }; - }; - fromPartial: { - createClient(value: _75.MsgCreateClient): { - typeUrl: string; - value: _75.MsgCreateClient; - }; - updateClient(value: _75.MsgUpdateClient): { - typeUrl: string; - value: _75.MsgUpdateClient; - }; - upgradeClient(value: _75.MsgUpgradeClient): { - typeUrl: string; - value: _75.MsgUpgradeClient; - }; - submitMisbehaviour(value: _75.MsgSubmitMisbehaviour): { - typeUrl: string; - value: _75.MsgSubmitMisbehaviour; - }; - }; - }; - AminoConverter: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: _75.MsgCreateClient) => _75.MsgCreateClientAmino; - fromAmino: (object: _75.MsgCreateClientAmino) => _75.MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: _75.MsgUpdateClient) => _75.MsgUpdateClientAmino; - fromAmino: (object: _75.MsgUpdateClientAmino) => _75.MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: _75.MsgUpgradeClient) => _75.MsgUpgradeClientAmino; - fromAmino: (object: _75.MsgUpgradeClientAmino) => _75.MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: _75.MsgSubmitMisbehaviour) => _75.MsgSubmitMisbehaviourAmino; - fromAmino: (object: _75.MsgSubmitMisbehaviourAmino) => _75.MsgSubmitMisbehaviour; - }; - }; - MsgCreateClient: { - typeUrl: string; - encode(message: _75.MsgCreateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgCreateClient; - fromPartial(object: Partial<_75.MsgCreateClient>): _75.MsgCreateClient; - fromAmino(object: _75.MsgCreateClientAmino): _75.MsgCreateClient; - toAmino(message: _75.MsgCreateClient): _75.MsgCreateClientAmino; - fromAminoMsg(object: _75.MsgCreateClientAminoMsg): _75.MsgCreateClient; - toAminoMsg(message: _75.MsgCreateClient): _75.MsgCreateClientAminoMsg; - fromProtoMsg(message: _75.MsgCreateClientProtoMsg): _75.MsgCreateClient; - toProto(message: _75.MsgCreateClient): Uint8Array; - toProtoMsg(message: _75.MsgCreateClient): _75.MsgCreateClientProtoMsg; - }; - MsgCreateClientResponse: { - typeUrl: string; - encode(_: _75.MsgCreateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgCreateClientResponse; - fromPartial(_: Partial<_75.MsgCreateClientResponse>): _75.MsgCreateClientResponse; - fromAmino(_: _75.MsgCreateClientResponseAmino): _75.MsgCreateClientResponse; - toAmino(_: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseAmino; - fromAminoMsg(object: _75.MsgCreateClientResponseAminoMsg): _75.MsgCreateClientResponse; - toAminoMsg(message: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseAminoMsg; - fromProtoMsg(message: _75.MsgCreateClientResponseProtoMsg): _75.MsgCreateClientResponse; - toProto(message: _75.MsgCreateClientResponse): Uint8Array; - toProtoMsg(message: _75.MsgCreateClientResponse): _75.MsgCreateClientResponseProtoMsg; - }; - MsgUpdateClient: { - typeUrl: string; - encode(message: _75.MsgUpdateClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpdateClient; - fromPartial(object: Partial<_75.MsgUpdateClient>): _75.MsgUpdateClient; - fromAmino(object: _75.MsgUpdateClientAmino): _75.MsgUpdateClient; - toAmino(message: _75.MsgUpdateClient): _75.MsgUpdateClientAmino; - fromAminoMsg(object: _75.MsgUpdateClientAminoMsg): _75.MsgUpdateClient; - toAminoMsg(message: _75.MsgUpdateClient): _75.MsgUpdateClientAminoMsg; - fromProtoMsg(message: _75.MsgUpdateClientProtoMsg): _75.MsgUpdateClient; - toProto(message: _75.MsgUpdateClient): Uint8Array; - toProtoMsg(message: _75.MsgUpdateClient): _75.MsgUpdateClientProtoMsg; - }; - MsgUpdateClientResponse: { - typeUrl: string; - encode(_: _75.MsgUpdateClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpdateClientResponse; - fromPartial(_: Partial<_75.MsgUpdateClientResponse>): _75.MsgUpdateClientResponse; - fromAmino(_: _75.MsgUpdateClientResponseAmino): _75.MsgUpdateClientResponse; - toAmino(_: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseAmino; - fromAminoMsg(object: _75.MsgUpdateClientResponseAminoMsg): _75.MsgUpdateClientResponse; - toAminoMsg(message: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseAminoMsg; - fromProtoMsg(message: _75.MsgUpdateClientResponseProtoMsg): _75.MsgUpdateClientResponse; - toProto(message: _75.MsgUpdateClientResponse): Uint8Array; - toProtoMsg(message: _75.MsgUpdateClientResponse): _75.MsgUpdateClientResponseProtoMsg; - }; - MsgUpgradeClient: { - typeUrl: string; - encode(message: _75.MsgUpgradeClient, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpgradeClient; - fromPartial(object: Partial<_75.MsgUpgradeClient>): _75.MsgUpgradeClient; - fromAmino(object: _75.MsgUpgradeClientAmino): _75.MsgUpgradeClient; - toAmino(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientAmino; - fromAminoMsg(object: _75.MsgUpgradeClientAminoMsg): _75.MsgUpgradeClient; - toAminoMsg(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientAminoMsg; - fromProtoMsg(message: _75.MsgUpgradeClientProtoMsg): _75.MsgUpgradeClient; - toProto(message: _75.MsgUpgradeClient): Uint8Array; - toProtoMsg(message: _75.MsgUpgradeClient): _75.MsgUpgradeClientProtoMsg; - }; - MsgUpgradeClientResponse: { - typeUrl: string; - encode(_: _75.MsgUpgradeClientResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgUpgradeClientResponse; - fromPartial(_: Partial<_75.MsgUpgradeClientResponse>): _75.MsgUpgradeClientResponse; - fromAmino(_: _75.MsgUpgradeClientResponseAmino): _75.MsgUpgradeClientResponse; - toAmino(_: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseAmino; - fromAminoMsg(object: _75.MsgUpgradeClientResponseAminoMsg): _75.MsgUpgradeClientResponse; - toAminoMsg(message: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseAminoMsg; - fromProtoMsg(message: _75.MsgUpgradeClientResponseProtoMsg): _75.MsgUpgradeClientResponse; - toProto(message: _75.MsgUpgradeClientResponse): Uint8Array; - toProtoMsg(message: _75.MsgUpgradeClientResponse): _75.MsgUpgradeClientResponseProtoMsg; - }; - MsgSubmitMisbehaviour: { - typeUrl: string; - encode(message: _75.MsgSubmitMisbehaviour, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgSubmitMisbehaviour; - fromPartial(object: Partial<_75.MsgSubmitMisbehaviour>): _75.MsgSubmitMisbehaviour; - fromAmino(object: _75.MsgSubmitMisbehaviourAmino): _75.MsgSubmitMisbehaviour; - toAmino(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourAmino; - fromAminoMsg(object: _75.MsgSubmitMisbehaviourAminoMsg): _75.MsgSubmitMisbehaviour; - toAminoMsg(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourAminoMsg; - fromProtoMsg(message: _75.MsgSubmitMisbehaviourProtoMsg): _75.MsgSubmitMisbehaviour; - toProto(message: _75.MsgSubmitMisbehaviour): Uint8Array; - toProtoMsg(message: _75.MsgSubmitMisbehaviour): _75.MsgSubmitMisbehaviourProtoMsg; - }; - MsgSubmitMisbehaviourResponse: { - typeUrl: string; - encode(_: _75.MsgSubmitMisbehaviourResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _75.MsgSubmitMisbehaviourResponse; - fromPartial(_: Partial<_75.MsgSubmitMisbehaviourResponse>): _75.MsgSubmitMisbehaviourResponse; - fromAmino(_: _75.MsgSubmitMisbehaviourResponseAmino): _75.MsgSubmitMisbehaviourResponse; - toAmino(_: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseAmino; - fromAminoMsg(object: _75.MsgSubmitMisbehaviourResponseAminoMsg): _75.MsgSubmitMisbehaviourResponse; - toAminoMsg(message: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseAminoMsg; - fromProtoMsg(message: _75.MsgSubmitMisbehaviourResponseProtoMsg): _75.MsgSubmitMisbehaviourResponse; - toProto(message: _75.MsgSubmitMisbehaviourResponse): Uint8Array; - toProtoMsg(message: _75.MsgSubmitMisbehaviourResponse): _75.MsgSubmitMisbehaviourResponseProtoMsg; - }; - QueryClientStateRequest: { - typeUrl: string; - encode(message: _74.QueryClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStateRequest; - fromPartial(object: Partial<_74.QueryClientStateRequest>): _74.QueryClientStateRequest; - fromAmino(object: _74.QueryClientStateRequestAmino): _74.QueryClientStateRequest; - toAmino(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestAmino; - fromAminoMsg(object: _74.QueryClientStateRequestAminoMsg): _74.QueryClientStateRequest; - toAminoMsg(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestAminoMsg; - fromProtoMsg(message: _74.QueryClientStateRequestProtoMsg): _74.QueryClientStateRequest; - toProto(message: _74.QueryClientStateRequest): Uint8Array; - toProtoMsg(message: _74.QueryClientStateRequest): _74.QueryClientStateRequestProtoMsg; - }; - QueryClientStateResponse: { - typeUrl: string; - encode(message: _74.QueryClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStateResponse; - fromPartial(object: Partial<_74.QueryClientStateResponse>): _74.QueryClientStateResponse; - fromAmino(object: _74.QueryClientStateResponseAmino): _74.QueryClientStateResponse; - toAmino(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseAmino; - fromAminoMsg(object: _74.QueryClientStateResponseAminoMsg): _74.QueryClientStateResponse; - toAminoMsg(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseAminoMsg; - fromProtoMsg(message: _74.QueryClientStateResponseProtoMsg): _74.QueryClientStateResponse; - toProto(message: _74.QueryClientStateResponse): Uint8Array; - toProtoMsg(message: _74.QueryClientStateResponse): _74.QueryClientStateResponseProtoMsg; - }; - QueryClientStatesRequest: { - typeUrl: string; - encode(message: _74.QueryClientStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatesRequest; - fromPartial(object: Partial<_74.QueryClientStatesRequest>): _74.QueryClientStatesRequest; - fromAmino(object: _74.QueryClientStatesRequestAmino): _74.QueryClientStatesRequest; - toAmino(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestAmino; - fromAminoMsg(object: _74.QueryClientStatesRequestAminoMsg): _74.QueryClientStatesRequest; - toAminoMsg(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestAminoMsg; - fromProtoMsg(message: _74.QueryClientStatesRequestProtoMsg): _74.QueryClientStatesRequest; - toProto(message: _74.QueryClientStatesRequest): Uint8Array; - toProtoMsg(message: _74.QueryClientStatesRequest): _74.QueryClientStatesRequestProtoMsg; - }; - QueryClientStatesResponse: { - typeUrl: string; - encode(message: _74.QueryClientStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatesResponse; - fromPartial(object: Partial<_74.QueryClientStatesResponse>): _74.QueryClientStatesResponse; - fromAmino(object: _74.QueryClientStatesResponseAmino): _74.QueryClientStatesResponse; - toAmino(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseAmino; - fromAminoMsg(object: _74.QueryClientStatesResponseAminoMsg): _74.QueryClientStatesResponse; - toAminoMsg(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseAminoMsg; - fromProtoMsg(message: _74.QueryClientStatesResponseProtoMsg): _74.QueryClientStatesResponse; - toProto(message: _74.QueryClientStatesResponse): Uint8Array; - toProtoMsg(message: _74.QueryClientStatesResponse): _74.QueryClientStatesResponseProtoMsg; - }; - QueryConsensusStateRequest: { - typeUrl: string; - encode(message: _74.QueryConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateRequest; - fromPartial(object: Partial<_74.QueryConsensusStateRequest>): _74.QueryConsensusStateRequest; - fromAmino(object: _74.QueryConsensusStateRequestAmino): _74.QueryConsensusStateRequest; - toAmino(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestAmino; - fromAminoMsg(object: _74.QueryConsensusStateRequestAminoMsg): _74.QueryConsensusStateRequest; - toAminoMsg(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStateRequestProtoMsg): _74.QueryConsensusStateRequest; - toProto(message: _74.QueryConsensusStateRequest): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStateRequest): _74.QueryConsensusStateRequestProtoMsg; - }; - QueryConsensusStateResponse: { - typeUrl: string; - encode(message: _74.QueryConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateResponse; - fromPartial(object: Partial<_74.QueryConsensusStateResponse>): _74.QueryConsensusStateResponse; - fromAmino(object: _74.QueryConsensusStateResponseAmino): _74.QueryConsensusStateResponse; - toAmino(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseAmino; - fromAminoMsg(object: _74.QueryConsensusStateResponseAminoMsg): _74.QueryConsensusStateResponse; - toAminoMsg(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStateResponseProtoMsg): _74.QueryConsensusStateResponse; - toProto(message: _74.QueryConsensusStateResponse): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStateResponse): _74.QueryConsensusStateResponseProtoMsg; - }; - QueryConsensusStatesRequest: { - typeUrl: string; - encode(message: _74.QueryConsensusStatesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStatesRequest; - fromPartial(object: Partial<_74.QueryConsensusStatesRequest>): _74.QueryConsensusStatesRequest; - fromAmino(object: _74.QueryConsensusStatesRequestAmino): _74.QueryConsensusStatesRequest; - toAmino(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestAmino; - fromAminoMsg(object: _74.QueryConsensusStatesRequestAminoMsg): _74.QueryConsensusStatesRequest; - toAminoMsg(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStatesRequestProtoMsg): _74.QueryConsensusStatesRequest; - toProto(message: _74.QueryConsensusStatesRequest): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStatesRequest): _74.QueryConsensusStatesRequestProtoMsg; - }; - QueryConsensusStatesResponse: { - typeUrl: string; - encode(message: _74.QueryConsensusStatesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStatesResponse; - fromPartial(object: Partial<_74.QueryConsensusStatesResponse>): _74.QueryConsensusStatesResponse; - fromAmino(object: _74.QueryConsensusStatesResponseAmino): _74.QueryConsensusStatesResponse; - toAmino(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseAmino; - fromAminoMsg(object: _74.QueryConsensusStatesResponseAminoMsg): _74.QueryConsensusStatesResponse; - toAminoMsg(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStatesResponseProtoMsg): _74.QueryConsensusStatesResponse; - toProto(message: _74.QueryConsensusStatesResponse): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStatesResponse): _74.QueryConsensusStatesResponseProtoMsg; - }; - QueryConsensusStateHeightsRequest: { - typeUrl: string; - encode(message: _74.QueryConsensusStateHeightsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateHeightsRequest; - fromPartial(object: Partial<_74.QueryConsensusStateHeightsRequest>): _74.QueryConsensusStateHeightsRequest; - fromAmino(object: _74.QueryConsensusStateHeightsRequestAmino): _74.QueryConsensusStateHeightsRequest; - toAmino(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestAmino; - fromAminoMsg(object: _74.QueryConsensusStateHeightsRequestAminoMsg): _74.QueryConsensusStateHeightsRequest; - toAminoMsg(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStateHeightsRequestProtoMsg): _74.QueryConsensusStateHeightsRequest; - toProto(message: _74.QueryConsensusStateHeightsRequest): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStateHeightsRequest): _74.QueryConsensusStateHeightsRequestProtoMsg; - }; - QueryConsensusStateHeightsResponse: { - typeUrl: string; - encode(message: _74.QueryConsensusStateHeightsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryConsensusStateHeightsResponse; - fromPartial(object: Partial<_74.QueryConsensusStateHeightsResponse>): _74.QueryConsensusStateHeightsResponse; - fromAmino(object: _74.QueryConsensusStateHeightsResponseAmino): _74.QueryConsensusStateHeightsResponse; - toAmino(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseAmino; - fromAminoMsg(object: _74.QueryConsensusStateHeightsResponseAminoMsg): _74.QueryConsensusStateHeightsResponse; - toAminoMsg(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseAminoMsg; - fromProtoMsg(message: _74.QueryConsensusStateHeightsResponseProtoMsg): _74.QueryConsensusStateHeightsResponse; - toProto(message: _74.QueryConsensusStateHeightsResponse): Uint8Array; - toProtoMsg(message: _74.QueryConsensusStateHeightsResponse): _74.QueryConsensusStateHeightsResponseProtoMsg; - }; - QueryClientStatusRequest: { - typeUrl: string; - encode(message: _74.QueryClientStatusRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatusRequest; - fromPartial(object: Partial<_74.QueryClientStatusRequest>): _74.QueryClientStatusRequest; - fromAmino(object: _74.QueryClientStatusRequestAmino): _74.QueryClientStatusRequest; - toAmino(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestAmino; - fromAminoMsg(object: _74.QueryClientStatusRequestAminoMsg): _74.QueryClientStatusRequest; - toAminoMsg(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestAminoMsg; - fromProtoMsg(message: _74.QueryClientStatusRequestProtoMsg): _74.QueryClientStatusRequest; - toProto(message: _74.QueryClientStatusRequest): Uint8Array; - toProtoMsg(message: _74.QueryClientStatusRequest): _74.QueryClientStatusRequestProtoMsg; - }; - QueryClientStatusResponse: { - typeUrl: string; - encode(message: _74.QueryClientStatusResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientStatusResponse; - fromPartial(object: Partial<_74.QueryClientStatusResponse>): _74.QueryClientStatusResponse; - fromAmino(object: _74.QueryClientStatusResponseAmino): _74.QueryClientStatusResponse; - toAmino(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseAmino; - fromAminoMsg(object: _74.QueryClientStatusResponseAminoMsg): _74.QueryClientStatusResponse; - toAminoMsg(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseAminoMsg; - fromProtoMsg(message: _74.QueryClientStatusResponseProtoMsg): _74.QueryClientStatusResponse; - toProto(message: _74.QueryClientStatusResponse): Uint8Array; - toProtoMsg(message: _74.QueryClientStatusResponse): _74.QueryClientStatusResponseProtoMsg; - }; - QueryClientParamsRequest: { - typeUrl: string; - encode(_: _74.QueryClientParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientParamsRequest; - fromPartial(_: Partial<_74.QueryClientParamsRequest>): _74.QueryClientParamsRequest; - fromAmino(_: _74.QueryClientParamsRequestAmino): _74.QueryClientParamsRequest; - toAmino(_: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestAmino; - fromAminoMsg(object: _74.QueryClientParamsRequestAminoMsg): _74.QueryClientParamsRequest; - toAminoMsg(message: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestAminoMsg; - fromProtoMsg(message: _74.QueryClientParamsRequestProtoMsg): _74.QueryClientParamsRequest; - toProto(message: _74.QueryClientParamsRequest): Uint8Array; - toProtoMsg(message: _74.QueryClientParamsRequest): _74.QueryClientParamsRequestProtoMsg; - }; - QueryClientParamsResponse: { - typeUrl: string; - encode(message: _74.QueryClientParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryClientParamsResponse; - fromPartial(object: Partial<_74.QueryClientParamsResponse>): _74.QueryClientParamsResponse; - fromAmino(object: _74.QueryClientParamsResponseAmino): _74.QueryClientParamsResponse; - toAmino(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseAmino; - fromAminoMsg(object: _74.QueryClientParamsResponseAminoMsg): _74.QueryClientParamsResponse; - toAminoMsg(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseAminoMsg; - fromProtoMsg(message: _74.QueryClientParamsResponseProtoMsg): _74.QueryClientParamsResponse; - toProto(message: _74.QueryClientParamsResponse): Uint8Array; - toProtoMsg(message: _74.QueryClientParamsResponse): _74.QueryClientParamsResponseProtoMsg; - }; - QueryUpgradedClientStateRequest: { - typeUrl: string; - encode(_: _74.QueryUpgradedClientStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedClientStateRequest; - fromPartial(_: Partial<_74.QueryUpgradedClientStateRequest>): _74.QueryUpgradedClientStateRequest; - fromAmino(_: _74.QueryUpgradedClientStateRequestAmino): _74.QueryUpgradedClientStateRequest; - toAmino(_: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestAmino; - fromAminoMsg(object: _74.QueryUpgradedClientStateRequestAminoMsg): _74.QueryUpgradedClientStateRequest; - toAminoMsg(message: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestAminoMsg; - fromProtoMsg(message: _74.QueryUpgradedClientStateRequestProtoMsg): _74.QueryUpgradedClientStateRequest; - toProto(message: _74.QueryUpgradedClientStateRequest): Uint8Array; - toProtoMsg(message: _74.QueryUpgradedClientStateRequest): _74.QueryUpgradedClientStateRequestProtoMsg; - }; - QueryUpgradedClientStateResponse: { - typeUrl: string; - encode(message: _74.QueryUpgradedClientStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedClientStateResponse; - fromPartial(object: Partial<_74.QueryUpgradedClientStateResponse>): _74.QueryUpgradedClientStateResponse; - fromAmino(object: _74.QueryUpgradedClientStateResponseAmino): _74.QueryUpgradedClientStateResponse; - toAmino(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseAmino; - fromAminoMsg(object: _74.QueryUpgradedClientStateResponseAminoMsg): _74.QueryUpgradedClientStateResponse; - toAminoMsg(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseAminoMsg; - fromProtoMsg(message: _74.QueryUpgradedClientStateResponseProtoMsg): _74.QueryUpgradedClientStateResponse; - toProto(message: _74.QueryUpgradedClientStateResponse): Uint8Array; - toProtoMsg(message: _74.QueryUpgradedClientStateResponse): _74.QueryUpgradedClientStateResponseProtoMsg; - }; - QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(_: _74.QueryUpgradedConsensusStateRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedConsensusStateRequest; - fromPartial(_: Partial<_74.QueryUpgradedConsensusStateRequest>): _74.QueryUpgradedConsensusStateRequest; - fromAmino(_: _74.QueryUpgradedConsensusStateRequestAmino): _74.QueryUpgradedConsensusStateRequest; - toAmino(_: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: _74.QueryUpgradedConsensusStateRequestAminoMsg): _74.QueryUpgradedConsensusStateRequest; - toAminoMsg(message: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: _74.QueryUpgradedConsensusStateRequestProtoMsg): _74.QueryUpgradedConsensusStateRequest; - toProto(message: _74.QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: _74.QueryUpgradedConsensusStateRequest): _74.QueryUpgradedConsensusStateRequestProtoMsg; - }; - QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: _74.QueryUpgradedConsensusStateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _74.QueryUpgradedConsensusStateResponse; - fromPartial(object: Partial<_74.QueryUpgradedConsensusStateResponse>): _74.QueryUpgradedConsensusStateResponse; - fromAmino(object: _74.QueryUpgradedConsensusStateResponseAmino): _74.QueryUpgradedConsensusStateResponse; - toAmino(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: _74.QueryUpgradedConsensusStateResponseAminoMsg): _74.QueryUpgradedConsensusStateResponse; - toAminoMsg(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: _74.QueryUpgradedConsensusStateResponseProtoMsg): _74.QueryUpgradedConsensusStateResponse; - toProto(message: _74.QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: _74.QueryUpgradedConsensusStateResponse): _74.QueryUpgradedConsensusStateResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _73.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.GenesisState; - fromPartial(object: Partial<_73.GenesisState>): _73.GenesisState; - fromAmino(object: _73.GenesisStateAmino): _73.GenesisState; - toAmino(message: _73.GenesisState): _73.GenesisStateAmino; - fromAminoMsg(object: _73.GenesisStateAminoMsg): _73.GenesisState; - toAminoMsg(message: _73.GenesisState): _73.GenesisStateAminoMsg; - fromProtoMsg(message: _73.GenesisStateProtoMsg): _73.GenesisState; - toProto(message: _73.GenesisState): Uint8Array; - toProtoMsg(message: _73.GenesisState): _73.GenesisStateProtoMsg; - }; - GenesisMetadata: { - typeUrl: string; - encode(message: _73.GenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.GenesisMetadata; - fromPartial(object: Partial<_73.GenesisMetadata>): _73.GenesisMetadata; - fromAmino(object: _73.GenesisMetadataAmino): _73.GenesisMetadata; - toAmino(message: _73.GenesisMetadata): _73.GenesisMetadataAmino; - fromAminoMsg(object: _73.GenesisMetadataAminoMsg): _73.GenesisMetadata; - toAminoMsg(message: _73.GenesisMetadata): _73.GenesisMetadataAminoMsg; - fromProtoMsg(message: _73.GenesisMetadataProtoMsg): _73.GenesisMetadata; - toProto(message: _73.GenesisMetadata): Uint8Array; - toProtoMsg(message: _73.GenesisMetadata): _73.GenesisMetadataProtoMsg; - }; - IdentifiedGenesisMetadata: { - typeUrl: string; - encode(message: _73.IdentifiedGenesisMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _73.IdentifiedGenesisMetadata; - fromPartial(object: Partial<_73.IdentifiedGenesisMetadata>): _73.IdentifiedGenesisMetadata; - fromAmino(object: _73.IdentifiedGenesisMetadataAmino): _73.IdentifiedGenesisMetadata; - toAmino(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataAmino; - fromAminoMsg(object: _73.IdentifiedGenesisMetadataAminoMsg): _73.IdentifiedGenesisMetadata; - toAminoMsg(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataAminoMsg; - fromProtoMsg(message: _73.IdentifiedGenesisMetadataProtoMsg): _73.IdentifiedGenesisMetadata; - toProto(message: _73.IdentifiedGenesisMetadata): Uint8Array; - toProtoMsg(message: _73.IdentifiedGenesisMetadata): _73.IdentifiedGenesisMetadataProtoMsg; - }; - IdentifiedClientState: { - typeUrl: string; - encode(message: _72.IdentifiedClientState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.IdentifiedClientState; - fromPartial(object: Partial<_72.IdentifiedClientState>): _72.IdentifiedClientState; - fromAmino(object: _72.IdentifiedClientStateAmino): _72.IdentifiedClientState; - toAmino(message: _72.IdentifiedClientState): _72.IdentifiedClientStateAmino; - fromAminoMsg(object: _72.IdentifiedClientStateAminoMsg): _72.IdentifiedClientState; - toAminoMsg(message: _72.IdentifiedClientState): _72.IdentifiedClientStateAminoMsg; - fromProtoMsg(message: _72.IdentifiedClientStateProtoMsg): _72.IdentifiedClientState; - toProto(message: _72.IdentifiedClientState): Uint8Array; - toProtoMsg(message: _72.IdentifiedClientState): _72.IdentifiedClientStateProtoMsg; - }; - ConsensusStateWithHeight: { - typeUrl: string; - encode(message: _72.ConsensusStateWithHeight, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ConsensusStateWithHeight; - fromPartial(object: Partial<_72.ConsensusStateWithHeight>): _72.ConsensusStateWithHeight; - fromAmino(object: _72.ConsensusStateWithHeightAmino): _72.ConsensusStateWithHeight; - toAmino(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightAmino; - fromAminoMsg(object: _72.ConsensusStateWithHeightAminoMsg): _72.ConsensusStateWithHeight; - toAminoMsg(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightAminoMsg; - fromProtoMsg(message: _72.ConsensusStateWithHeightProtoMsg): _72.ConsensusStateWithHeight; - toProto(message: _72.ConsensusStateWithHeight): Uint8Array; - toProtoMsg(message: _72.ConsensusStateWithHeight): _72.ConsensusStateWithHeightProtoMsg; - }; - ClientConsensusStates: { - typeUrl: string; - encode(message: _72.ClientConsensusStates, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ClientConsensusStates; - fromPartial(object: Partial<_72.ClientConsensusStates>): _72.ClientConsensusStates; - fromAmino(object: _72.ClientConsensusStatesAmino): _72.ClientConsensusStates; - toAmino(message: _72.ClientConsensusStates): _72.ClientConsensusStatesAmino; - fromAminoMsg(object: _72.ClientConsensusStatesAminoMsg): _72.ClientConsensusStates; - toAminoMsg(message: _72.ClientConsensusStates): _72.ClientConsensusStatesAminoMsg; - fromProtoMsg(message: _72.ClientConsensusStatesProtoMsg): _72.ClientConsensusStates; - toProto(message: _72.ClientConsensusStates): Uint8Array; - toProtoMsg(message: _72.ClientConsensusStates): _72.ClientConsensusStatesProtoMsg; - }; - ClientUpdateProposal: { - typeUrl: string; - encode(message: _72.ClientUpdateProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.ClientUpdateProposal; - fromPartial(object: Partial<_72.ClientUpdateProposal>): _72.ClientUpdateProposal; - fromAmino(object: _72.ClientUpdateProposalAmino): _72.ClientUpdateProposal; - toAmino(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalAmino; - fromAminoMsg(object: _72.ClientUpdateProposalAminoMsg): _72.ClientUpdateProposal; - toAminoMsg(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalAminoMsg; - fromProtoMsg(message: _72.ClientUpdateProposalProtoMsg): _72.ClientUpdateProposal; - toProto(message: _72.ClientUpdateProposal): Uint8Array; - toProtoMsg(message: _72.ClientUpdateProposal): _72.ClientUpdateProposalProtoMsg; - }; - UpgradeProposal: { - typeUrl: string; - encode(message: _72.UpgradeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.UpgradeProposal; - fromPartial(object: Partial<_72.UpgradeProposal>): _72.UpgradeProposal; - fromAmino(object: _72.UpgradeProposalAmino): _72.UpgradeProposal; - toAmino(message: _72.UpgradeProposal): _72.UpgradeProposalAmino; - fromAminoMsg(object: _72.UpgradeProposalAminoMsg): _72.UpgradeProposal; - toAminoMsg(message: _72.UpgradeProposal): _72.UpgradeProposalAminoMsg; - fromProtoMsg(message: _72.UpgradeProposalProtoMsg): _72.UpgradeProposal; - toProto(message: _72.UpgradeProposal): Uint8Array; - toProtoMsg(message: _72.UpgradeProposal): _72.UpgradeProposalProtoMsg; - }; - Height: { - typeUrl: string; - encode(message: _72.Height, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.Height; - fromPartial(object: Partial<_72.Height>): _72.Height; - fromAmino(object: _72.HeightAmino): _72.Height; - toAmino(message: _72.Height): _72.HeightAmino; - fromAminoMsg(object: _72.HeightAminoMsg): _72.Height; - toAminoMsg(message: _72.Height): _72.HeightAminoMsg; - fromProtoMsg(message: _72.HeightProtoMsg): _72.Height; - toProto(message: _72.Height): Uint8Array; - toProtoMsg(message: _72.Height): _72.HeightProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _72.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _72.Params; - fromPartial(object: Partial<_72.Params>): _72.Params; - fromAmino(object: _72.ParamsAmino): _72.Params; - toAmino(message: _72.Params): _72.ParamsAmino; - fromAminoMsg(object: _72.ParamsAminoMsg): _72.Params; - toAminoMsg(message: _72.Params): _72.ParamsAminoMsg; - fromProtoMsg(message: _72.ParamsProtoMsg): _72.Params; - toProto(message: _72.Params): Uint8Array; - toProtoMsg(message: _72.Params): _72.ParamsProtoMsg; - }; - }; - } - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - ibc: { - applications: { - transfer: { - v1: _185.MsgClientImpl; - }; - }; - core: { - client: { - v1: _186.MsgClientImpl; - }; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; - }; - }; - }; - ibc: { - applications: { - transfer: { - v1: { - denomTrace(request: _69.QueryDenomTraceRequest): Promise<_69.QueryDenomTraceResponse>; - denomTraces(request?: _69.QueryDenomTracesRequest): Promise<_69.QueryDenomTracesResponse>; - params(request?: _69.QueryParamsRequest): Promise<_69.QueryParamsResponse>; - denomHash(request: _69.QueryDenomHashRequest): Promise<_69.QueryDenomHashResponse>; - escrowAddress(request: _69.QueryEscrowAddressRequest): Promise<_69.QueryEscrowAddressResponse>; - }; - }; - }; - core: { - client: { - v1: { - clientState(request: _74.QueryClientStateRequest): Promise<_74.QueryClientStateResponse>; - clientStates(request?: _74.QueryClientStatesRequest): Promise<_74.QueryClientStatesResponse>; - consensusState(request: _74.QueryConsensusStateRequest): Promise<_74.QueryConsensusStateResponse>; - consensusStates(request: _74.QueryConsensusStatesRequest): Promise<_74.QueryConsensusStatesResponse>; - consensusStateHeights(request: _74.QueryConsensusStateHeightsRequest): Promise<_74.QueryConsensusStateHeightsResponse>; - clientStatus(request: _74.QueryClientStatusRequest): Promise<_74.QueryClientStatusResponse>; - clientParams(request?: _74.QueryClientParamsRequest): Promise<_74.QueryClientParamsResponse>; - upgradedClientState(request?: _74.QueryUpgradedClientStateRequest): Promise<_74.QueryUpgradedClientStateResponse>; - upgradedConsensusState(request?: _74.QueryUpgradedConsensusStateRequest): Promise<_74.QueryUpgradedConsensusStateResponse>; - }; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - ibc: { - applications: { - transfer: { - v1: _181.LCDQueryClient; - }; - }; - core: { - client: { - v1: _182.LCDQueryClient; - }; - }; - }; - }>; - }; -} diff --git a/packages/api/dist/ibc/bundle.js b/packages/api/dist/ibc/bundle.js deleted file mode 100644 index 2b853813..00000000 --- a/packages/api/dist/ibc/bundle.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ibc = void 0; -//@ts-nocheck -const _68 = __importStar(require("./applications/transfer/v1/genesis")); -const _69 = __importStar(require("./applications/transfer/v1/query")); -const _70 = __importStar(require("./applications/transfer/v1/transfer")); -const _71 = __importStar(require("./applications/transfer/v1/tx")); -const _72 = __importStar(require("./core/client/v1/client")); -const _73 = __importStar(require("./core/client/v1/genesis")); -const _74 = __importStar(require("./core/client/v1/query")); -const _75 = __importStar(require("./core/client/v1/tx")); -const _177 = __importStar(require("./applications/transfer/v1/tx.amino")); -const _178 = __importStar(require("./core/client/v1/tx.amino")); -const _179 = __importStar(require("./applications/transfer/v1/tx.registry")); -const _180 = __importStar(require("./core/client/v1/tx.registry")); -const _181 = __importStar(require("./applications/transfer/v1/query.lcd")); -const _182 = __importStar(require("./core/client/v1/query.lcd")); -const _183 = __importStar(require("./applications/transfer/v1/query.rpc.Query")); -const _184 = __importStar(require("./core/client/v1/query.rpc.Query")); -const _185 = __importStar(require("./applications/transfer/v1/tx.rpc.msg")); -const _186 = __importStar(require("./core/client/v1/tx.rpc.msg")); -const _220 = __importStar(require("./lcd")); -const _221 = __importStar(require("./rpc.query")); -const _222 = __importStar(require("./rpc.tx")); -var ibc; -(function (ibc) { - let applications; - (function (applications) { - let transfer; - (function (transfer) { - transfer.v1 = { - ..._68, - ..._69, - ..._70, - ..._71, - ..._177, - ..._179, - ..._181, - ..._183, - ..._185 - }; - })(transfer = applications.transfer || (applications.transfer = {})); - })(applications = ibc.applications || (ibc.applications = {})); - let core; - (function (core) { - let client; - (function (client) { - client.v1 = { - ..._72, - ..._73, - ..._74, - ..._75, - ..._178, - ..._180, - ..._182, - ..._184, - ..._186 - }; - })(client = core.client || (core.client = {})); - })(core = ibc.core || (ibc.core = {})); - ibc.ClientFactory = { - ..._220, - ..._221, - ..._222 - }; -})(ibc || (exports.ibc = ibc = {})); diff --git a/packages/api/dist/ibc/client.d.ts b/packages/api/dist/ibc/client.d.ts deleted file mode 100644 index b071b27e..00000000 --- a/packages/api/dist/ibc/client.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const ibcAminoConverters: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgCreateClient) => import("./core/client/v1/tx").MsgCreateClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgCreateClientAmino) => import("./core/client/v1/tx").MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgUpdateClient) => import("./core/client/v1/tx").MsgUpdateClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgUpdateClientAmino) => import("./core/client/v1/tx").MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgUpgradeClient) => import("./core/client/v1/tx").MsgUpgradeClientAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgUpgradeClientAmino) => import("./core/client/v1/tx").MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: import("./core/client/v1/tx").MsgSubmitMisbehaviour) => import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino; - fromAmino: (object: import("./core/client/v1/tx").MsgSubmitMisbehaviourAmino) => import("./core/client/v1/tx").MsgSubmitMisbehaviour; - }; - "/ibc.applications.transfer.v1.MsgTransfer": { - aminoType: string; - toAmino: (message: import("./applications/transfer/v1/tx").MsgTransfer) => import("./applications/transfer/v1/tx").MsgTransferAmino; - fromAmino: (object: import("./applications/transfer/v1/tx").MsgTransferAmino) => import("./applications/transfer/v1/tx").MsgTransfer; - }; -}; -export declare const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningIbcClientOptions: ({ defaultTypes }?: { - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningIbcClient: ({ rpcEndpoint, signer, defaultTypes }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => Promise; diff --git a/packages/api/dist/ibc/client.js b/packages/api/dist/ibc/client.js deleted file mode 100644 index 81ceb042..00000000 --- a/packages/api/dist/ibc/client.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSigningIbcClient = exports.getSigningIbcClientOptions = exports.ibcProtoRegistry = exports.ibcAminoConverters = void 0; -//@ts-nocheck -const proto_signing_1 = require("@cosmjs/proto-signing"); -const stargate_1 = require("@cosmjs/stargate"); -const ibcApplicationsTransferV1TxRegistry = __importStar(require("./applications/transfer/v1/tx.registry")); -const ibcCoreClientV1TxRegistry = __importStar(require("./core/client/v1/tx.registry")); -const ibcApplicationsTransferV1TxAmino = __importStar(require("./applications/transfer/v1/tx.amino")); -const ibcCoreClientV1TxAmino = __importStar(require("./core/client/v1/tx.amino")); -exports.ibcAminoConverters = { - ...ibcApplicationsTransferV1TxAmino.AminoConverter, - ...ibcCoreClientV1TxAmino.AminoConverter -}; -exports.ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry]; -const getSigningIbcClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => { - const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.ibcProtoRegistry]); - const aminoTypes = new stargate_1.AminoTypes({ - ...exports.ibcAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -exports.getSigningIbcClientOptions = getSigningIbcClientOptions; -const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => { - const { registry, aminoTypes } = (0, exports.getSigningIbcClientOptions)({ - defaultTypes - }); - const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; -exports.getSigningIbcClient = getSigningIbcClient; diff --git a/packages/api/dist/ibc/core/client/v1/client.d.ts b/packages/api/dist/ibc/core/client/v1/client.d.ts deleted file mode 100644 index 899f4da4..00000000 --- a/packages/api/dist/ibc/core/client/v1/client.d.ts +++ /dev/null @@ -1,400 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Plan, PlanAmino, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientState { - /** client identifier */ - clientId: string; - /** client state */ - clientState?: Any; -} -export interface IdentifiedClientStateProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; - value: Uint8Array; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateAmino { - /** client identifier */ - client_id?: string; - /** client state */ - client_state?: AnyAmino; -} -export interface IdentifiedClientStateAminoMsg { - type: "cosmos-sdk/IdentifiedClientState"; - value: IdentifiedClientStateAmino; -} -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IdentifiedClientStateSDKType { - client_id: string; - client_state?: AnySDKType; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeight { - /** consensus state height */ - height: Height; - /** consensus state */ - consensusState?: Any; -} -export interface ConsensusStateWithHeightProtoMsg { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; - value: Uint8Array; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightAmino { - /** consensus state height */ - height?: HeightAmino; - /** consensus state */ - consensus_state?: AnyAmino; -} -export interface ConsensusStateWithHeightAminoMsg { - type: "cosmos-sdk/ConsensusStateWithHeight"; - value: ConsensusStateWithHeightAmino; -} -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - */ -export interface ConsensusStateWithHeightSDKType { - height: HeightSDKType; - consensus_state?: AnySDKType; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStates { - /** client identifier */ - clientId: string; - /** consensus states and their heights associated with the client */ - consensusStates: ConsensusStateWithHeight[]; -} -export interface ClientConsensusStatesProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; - value: Uint8Array; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesAmino { - /** client identifier */ - client_id?: string; - /** consensus states and their heights associated with the client */ - consensus_states?: ConsensusStateWithHeightAmino[]; -} -export interface ClientConsensusStatesAminoMsg { - type: "cosmos-sdk/ClientConsensusStates"; - value: ClientConsensusStatesAmino; -} -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - */ -export interface ClientConsensusStatesSDKType { - client_id: string; - consensus_states: ConsensusStateWithHeightSDKType[]; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposal { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - /** the title of the update proposal */ - title: string; - /** the description of the proposal */ - description: string; - /** the client identifier for the client to be updated if the proposal passes */ - subjectClientId: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substituteClientId: string; -} -export interface ClientUpdateProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; - value: Uint8Array; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalAmino { - /** the title of the update proposal */ - title?: string; - /** the description of the proposal */ - description?: string; - /** the client identifier for the client to be updated if the proposal passes */ - subject_client_id?: string; - /** - * the substitute client identifier for the client standing in for the subject - * client - */ - substitute_client_id?: string; -} -export interface ClientUpdateProposalAminoMsg { - type: "cosmos-sdk/ClientUpdateProposal"; - value: ClientUpdateProposalAmino; -} -/** - * ClientUpdateProposal is a governance proposal. If it passes, the substitute - * client's latest consensus state is copied over to the subject client. The proposal - * handler may fail if the subject and the substitute do not match in client and - * chain parameters (with exception to latest height, frozen height, and chain-id). - */ -export interface ClientUpdateProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.ClientUpdateProposal"; - title: string; - description: string; - subject_client_id: string; - substitute_client_id: string; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposal { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: Plan; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgradedClientState?: Any; -} -export interface UpgradeProposalProtoMsg { - typeUrl: "/ibc.core.client.v1.UpgradeProposal"; - value: Uint8Array; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalAmino { - title?: string; - description?: string; - plan?: PlanAmino; - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades - */ - upgraded_client_state?: AnyAmino; -} -export interface UpgradeProposalAminoMsg { - type: "cosmos-sdk/UpgradeProposal"; - value: UpgradeProposalAmino; -} -/** - * UpgradeProposal is a gov Content type for initiating an IBC breaking - * upgrade. - */ -export interface UpgradeProposalSDKType { - $typeUrl?: "/ibc.core.client.v1.UpgradeProposal"; - title: string; - description: string; - plan: PlanSDKType; - upgraded_client_state?: AnySDKType; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface Height { - /** the revision that the client is currently on */ - revisionNumber: bigint; - /** the height within the given revision */ - revisionHeight: bigint; -} -export interface HeightProtoMsg { - typeUrl: "/ibc.core.client.v1.Height"; - value: Uint8Array; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightAmino { - /** the revision that the client is currently on */ - revision_number?: string; - /** the height within the given revision */ - revision_height?: string; -} -export interface HeightAminoMsg { - type: "cosmos-sdk/Height"; - value: HeightAmino; -} -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - */ -export interface HeightSDKType { - revision_number: bigint; - revision_height: bigint; -} -/** Params defines the set of IBC light client parameters. */ -export interface Params { - /** allowed_clients defines the list of allowed client state types. */ - allowedClients: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/ibc.core.client.v1.Params"; - value: Uint8Array; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsAmino { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; -} -export interface ParamsAminoMsg { - type: "cosmos-sdk/Params"; - value: ParamsAmino; -} -/** Params defines the set of IBC light client parameters. */ -export interface ParamsSDKType { - allowed_clients: string[]; -} -export declare const IdentifiedClientState: { - typeUrl: string; - encode(message: IdentifiedClientState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState; - fromPartial(object: Partial): IdentifiedClientState; - fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState; - toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino; - fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState; - toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg; - fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState; - toProto(message: IdentifiedClientState): Uint8Array; - toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg; -}; -export declare const ConsensusStateWithHeight: { - typeUrl: string; - encode(message: ConsensusStateWithHeight, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight; - fromPartial(object: Partial): ConsensusStateWithHeight; - fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight; - toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino; - fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight; - toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg; - fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight; - toProto(message: ConsensusStateWithHeight): Uint8Array; - toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg; -}; -export declare const ClientConsensusStates: { - typeUrl: string; - encode(message: ClientConsensusStates, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates; - fromPartial(object: Partial): ClientConsensusStates; - fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates; - toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino; - fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates; - toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg; - fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates; - toProto(message: ClientConsensusStates): Uint8Array; - toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg; -}; -export declare const ClientUpdateProposal: { - typeUrl: string; - encode(message: ClientUpdateProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal; - fromPartial(object: Partial): ClientUpdateProposal; - fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal; - toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino; - fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal; - toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg; - fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal; - toProto(message: ClientUpdateProposal): Uint8Array; - toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg; -}; -export declare const UpgradeProposal: { - typeUrl: string; - encode(message: UpgradeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal; - fromPartial(object: Partial): UpgradeProposal; - fromAmino(object: UpgradeProposalAmino): UpgradeProposal; - toAmino(message: UpgradeProposal): UpgradeProposalAmino; - fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal; - toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg; - fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal; - toProto(message: UpgradeProposal): Uint8Array; - toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg; -}; -export declare const Height: { - typeUrl: string; - encode(message: Height, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Height; - fromPartial(object: Partial): Height; - fromAmino(object: HeightAmino): Height; - toAmino(message: Height): HeightAmino; - fromAminoMsg(object: HeightAminoMsg): Height; - toAminoMsg(message: Height): HeightAminoMsg; - fromProtoMsg(message: HeightProtoMsg): Height; - toProto(message: Height): Uint8Array; - toProtoMsg(message: Height): HeightProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - toAminoMsg(message: Params): ParamsAminoMsg; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; diff --git a/packages/api/dist/ibc/core/client/v1/client.js b/packages/api/dist/ibc/core/client/v1/client.js deleted file mode 100644 index 86362717..00000000 --- a/packages/api/dist/ibc/core/client/v1/client.js +++ /dev/null @@ -1,614 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0; -//@ts-nocheck -const any_1 = require("../../../../google/protobuf/any"); -const upgrade_1 = require("../../../../cosmos/upgrade/v1beta1/upgrade"); -const binary_1 = require("../../../../binary"); -function createBaseIdentifiedClientState() { - return { - clientId: "", - clientState: undefined - }; -} -exports.IdentifiedClientState = { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - any_1.Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedClientState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIdentifiedClientState(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseIdentifiedClientState(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = any_1.Any.fromAmino(object.client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.IdentifiedClientState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IdentifiedClientState", - value: exports.IdentifiedClientState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.IdentifiedClientState.decode(message.value); - }, - toProto(message) { - return exports.IdentifiedClientState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedClientState", - value: exports.IdentifiedClientState.encode(message).finish() - }; - } -}; -function createBaseConsensusStateWithHeight() { - return { - height: exports.Height.fromPartial({}), - consensusState: undefined - }; -} -exports.ConsensusStateWithHeight = { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== undefined) { - exports.Height.encode(message.height, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - any_1.Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusStateWithHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = exports.Height.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensusStateWithHeight(); - message.height = object.height !== undefined && object.height !== null ? exports.Height.fromPartial(object.height) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConsensusStateWithHeight(); - if (object.height !== undefined && object.height !== null) { - message.height = exports.Height.fromAmino(object.height); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = any_1.Any.fromAmino(object.consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height ? exports.Height.toAmino(message.height) : undefined; - obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ConsensusStateWithHeight.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ConsensusStateWithHeight", - value: exports.ConsensusStateWithHeight.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ConsensusStateWithHeight.decode(message.value); - }, - toProto(message) { - return exports.ConsensusStateWithHeight.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", - value: exports.ConsensusStateWithHeight.encode(message).finish() - }; - } -}; -function createBaseClientConsensusStates() { - return { - clientId: "", - consensusStates: [] - }; -} -exports.ClientConsensusStates = { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.consensusStates) { - exports.ConsensusStateWithHeight.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientConsensusStates(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.consensusStates.push(exports.ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClientConsensusStates(); - message.clientId = object.clientId ?? ""; - message.consensusStates = object.consensusStates?.map(e => exports.ConsensusStateWithHeight.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseClientConsensusStates(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.consensusStates = object.consensus_states?.map(e => exports.ConsensusStateWithHeight.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? exports.ConsensusStateWithHeight.toAmino(e) : undefined); - } - else { - obj.consensus_states = message.consensusStates; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ClientConsensusStates.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ClientConsensusStates", - value: exports.ClientConsensusStates.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ClientConsensusStates.decode(message.value); - }, - toProto(message) { - return exports.ClientConsensusStates.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ClientConsensusStates", - value: exports.ClientConsensusStates.encode(message).finish() - }; - } -}; -function createBaseClientUpdateProposal() { - return { - $typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - title: "", - description: "", - subjectClientId: "", - substituteClientId: "" - }; -} -exports.ClientUpdateProposal = { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.subjectClientId !== "") { - writer.uint32(26).string(message.subjectClientId); - } - if (message.substituteClientId !== "") { - writer.uint32(34).string(message.substituteClientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClientUpdateProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.subjectClientId = reader.string(); - break; - case 4: - message.substituteClientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClientUpdateProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.subjectClientId = object.subjectClientId ?? ""; - message.substituteClientId = object.substituteClientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClientUpdateProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.subject_client_id !== undefined && object.subject_client_id !== null) { - message.subjectClientId = object.subject_client_id; - } - if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) { - message.substituteClientId = object.substitute_client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; - obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; - return obj; - }, - fromAminoMsg(object) { - return exports.ClientUpdateProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/ClientUpdateProposal", - value: exports.ClientUpdateProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.ClientUpdateProposal.decode(message.value); - }, - toProto(message) { - return exports.ClientUpdateProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", - value: exports.ClientUpdateProposal.encode(message).finish() - }; - } -}; -function createBaseUpgradeProposal() { - return { - $typeUrl: "/ibc.core.client.v1.UpgradeProposal", - title: "", - description: "", - plan: upgrade_1.Plan.fromPartial({}), - upgradedClientState: undefined - }; -} -exports.UpgradeProposal = { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.plan !== undefined) { - upgrade_1.Plan.encode(message.plan, writer.uint32(26).fork()).ldelim(); - } - if (message.upgradedClientState !== undefined) { - any_1.Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseUpgradeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = upgrade_1.Plan.decode(reader, reader.uint32()); - break; - case 4: - message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseUpgradeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.plan = object.plan !== undefined && object.plan !== null ? upgrade_1.Plan.fromPartial(object.plan) : undefined; - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseUpgradeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.plan !== undefined && object.plan !== null) { - message.plan = upgrade_1.Plan.fromAmino(object.plan); - } - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.plan = message.plan ? upgrade_1.Plan.toAmino(message.plan) : undefined; - obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.UpgradeProposal.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/UpgradeProposal", - value: exports.UpgradeProposal.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.UpgradeProposal.decode(message.value); - }, - toProto(message) { - return exports.UpgradeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.UpgradeProposal", - value: exports.UpgradeProposal.encode(message).finish() - }; - } -}; -function createBaseHeight() { - return { - revisionNumber: BigInt(0), - revisionHeight: BigInt(0) - }; -} -exports.Height = { - typeUrl: "/ibc.core.client.v1.Height", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(8).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeight(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.revisionNumber = reader.uint64(); - break; - case 2: - message.revisionHeight = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHeight(); - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - return { - revisionNumber: BigInt(object.revision_number || "0"), - revisionHeight: BigInt(object.revision_height || "0") - }; - }, - toAmino(message) { - const obj = {}; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Height.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Height", - value: exports.Height.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Height.decode(message.value); - }, - toProto(message) { - return exports.Height.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.Height", - value: exports.Height.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - allowedClients: [] - }; -} -exports.Params = { - typeUrl: "/ibc.core.client.v1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowedClients) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedClients.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.allowedClients = object.allowedClients?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.allowedClients = object.allowed_clients?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedClients) { - obj.allowed_clients = message.allowedClients.map(e => e); - } - else { - obj.allowed_clients = message.allowedClients; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/Params", - value: exports.Params.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/genesis.d.ts b/packages/api/dist/ibc/core/client/v1/genesis.d.ts deleted file mode 100644 index e9c90ef9..00000000 --- a/packages/api/dist/ibc/core/client/v1/genesis.d.ts +++ /dev/null @@ -1,154 +0,0 @@ -import { IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ClientConsensusStates, ClientConsensusStatesAmino, ClientConsensusStatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisState { - /** client states with their corresponding identifiers */ - clients: IdentifiedClientState[]; - /** consensus states from each client */ - clientsConsensus: ClientConsensusStates[]; - /** metadata from each client */ - clientsMetadata: IdentifiedGenesisMetadata[]; - params: Params; - /** create localhost on initialization */ - createLocalhost: boolean; - /** the sequence for the next generated client identifier */ - nextClientSequence: bigint; -} -export interface GenesisStateProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateAmino { - /** client states with their corresponding identifiers */ - clients?: IdentifiedClientStateAmino[]; - /** consensus states from each client */ - clients_consensus?: ClientConsensusStatesAmino[]; - /** metadata from each client */ - clients_metadata?: IdentifiedGenesisMetadataAmino[]; - params?: ParamsAmino; - /** create localhost on initialization */ - create_localhost?: boolean; - /** the sequence for the next generated client identifier */ - next_client_sequence?: string; -} -export interface GenesisStateAminoMsg { - type: "cosmos-sdk/GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines the ibc client submodule's genesis state. */ -export interface GenesisStateSDKType { - clients: IdentifiedClientStateSDKType[]; - clients_consensus: ClientConsensusStatesSDKType[]; - clients_metadata: IdentifiedGenesisMetadataSDKType[]; - params: ParamsSDKType; - create_localhost: boolean; - next_client_sequence: bigint; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadata { - /** store key of metadata without clientID-prefix */ - key: Uint8Array; - /** metadata value */ - value: Uint8Array; -} -export interface GenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.GenesisMetadata"; - value: Uint8Array; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataAmino { - /** store key of metadata without clientID-prefix */ - key?: string; - /** metadata value */ - value?: string; -} -export interface GenesisMetadataAminoMsg { - type: "cosmos-sdk/GenesisMetadata"; - value: GenesisMetadataAmino; -} -/** - * GenesisMetadata defines the genesis type for metadata that clients may return - * with ExportMetadata - */ -export interface GenesisMetadataSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadata { - clientId: string; - clientMetadata: GenesisMetadata[]; -} -export interface IdentifiedGenesisMetadataProtoMsg { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; - value: Uint8Array; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataAmino { - client_id?: string; - client_metadata?: GenesisMetadataAmino[]; -} -export interface IdentifiedGenesisMetadataAminoMsg { - type: "cosmos-sdk/IdentifiedGenesisMetadata"; - value: IdentifiedGenesisMetadataAmino; -} -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - */ -export interface IdentifiedGenesisMetadataSDKType { - client_id: string; - client_metadata: GenesisMetadataSDKType[]; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - toAminoMsg(message: GenesisState): GenesisStateAminoMsg; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const GenesisMetadata: { - typeUrl: string; - encode(message: GenesisMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisMetadata; - fromPartial(object: Partial): GenesisMetadata; - fromAmino(object: GenesisMetadataAmino): GenesisMetadata; - toAmino(message: GenesisMetadata): GenesisMetadataAmino; - fromAminoMsg(object: GenesisMetadataAminoMsg): GenesisMetadata; - toAminoMsg(message: GenesisMetadata): GenesisMetadataAminoMsg; - fromProtoMsg(message: GenesisMetadataProtoMsg): GenesisMetadata; - toProto(message: GenesisMetadata): Uint8Array; - toProtoMsg(message: GenesisMetadata): GenesisMetadataProtoMsg; -}; -export declare const IdentifiedGenesisMetadata: { - typeUrl: string; - encode(message: IdentifiedGenesisMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedGenesisMetadata; - fromPartial(object: Partial): IdentifiedGenesisMetadata; - fromAmino(object: IdentifiedGenesisMetadataAmino): IdentifiedGenesisMetadata; - toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino; - fromAminoMsg(object: IdentifiedGenesisMetadataAminoMsg): IdentifiedGenesisMetadata; - toAminoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAminoMsg; - fromProtoMsg(message: IdentifiedGenesisMetadataProtoMsg): IdentifiedGenesisMetadata; - toProto(message: IdentifiedGenesisMetadata): Uint8Array; - toProtoMsg(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataProtoMsg; -}; diff --git a/packages/api/dist/ibc/core/client/v1/genesis.js b/packages/api/dist/ibc/core/client/v1/genesis.js deleted file mode 100644 index 98eb0b45..00000000 --- a/packages/api/dist/ibc/core/client/v1/genesis.js +++ /dev/null @@ -1,310 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.GenesisState = void 0; -//@ts-nocheck -const client_1 = require("./client"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseGenesisState() { - return { - clients: [], - clientsConsensus: [], - clientsMetadata: [], - params: client_1.Params.fromPartial({}), - createLocalhost: false, - nextClientSequence: BigInt(0) - }; -} -exports.GenesisState = { - typeUrl: "/ibc.core.client.v1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.clients) { - client_1.IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.clientsConsensus) { - client_1.ClientConsensusStates.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.clientsMetadata) { - exports.IdentifiedGenesisMetadata.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.params !== undefined) { - client_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim(); - } - if (message.createLocalhost === true) { - writer.uint32(40).bool(message.createLocalhost); - } - if (message.nextClientSequence !== BigInt(0)) { - writer.uint32(48).uint64(message.nextClientSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clients.push(client_1.IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.clientsConsensus.push(client_1.ClientConsensusStates.decode(reader, reader.uint32())); - break; - case 3: - message.clientsMetadata.push(exports.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); - break; - case 4: - message.params = client_1.Params.decode(reader, reader.uint32()); - break; - case 5: - message.createLocalhost = reader.bool(); - break; - case 6: - message.nextClientSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => client_1.IdentifiedClientState.fromPartial(e)) || []; - message.clientsConsensus = object.clientsConsensus?.map(e => client_1.ClientConsensusStates.fromPartial(e)) || []; - message.clientsMetadata = object.clientsMetadata?.map(e => exports.IdentifiedGenesisMetadata.fromPartial(e)) || []; - message.params = object.params !== undefined && object.params !== null ? client_1.Params.fromPartial(object.params) : undefined; - message.createLocalhost = object.createLocalhost ?? false; - message.nextClientSequence = object.nextClientSequence !== undefined && object.nextClientSequence !== null ? BigInt(object.nextClientSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - message.clients = object.clients?.map(e => client_1.IdentifiedClientState.fromAmino(e)) || []; - message.clientsConsensus = object.clients_consensus?.map(e => client_1.ClientConsensusStates.fromAmino(e)) || []; - message.clientsMetadata = object.clients_metadata?.map(e => exports.IdentifiedGenesisMetadata.fromAmino(e)) || []; - if (object.params !== undefined && object.params !== null) { - message.params = client_1.Params.fromAmino(object.params); - } - if (object.create_localhost !== undefined && object.create_localhost !== null) { - message.createLocalhost = object.create_localhost; - } - if (object.next_client_sequence !== undefined && object.next_client_sequence !== null) { - message.nextClientSequence = BigInt(object.next_client_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.clients) { - obj.clients = message.clients.map(e => e ? client_1.IdentifiedClientState.toAmino(e) : undefined); - } - else { - obj.clients = message.clients; - } - if (message.clientsConsensus) { - obj.clients_consensus = message.clientsConsensus.map(e => e ? client_1.ClientConsensusStates.toAmino(e) : undefined); - } - else { - obj.clients_consensus = message.clientsConsensus; - } - if (message.clientsMetadata) { - obj.clients_metadata = message.clientsMetadata.map(e => e ? exports.IdentifiedGenesisMetadata.toAmino(e) : undefined); - } - else { - obj.clients_metadata = message.clientsMetadata; - } - obj.params = message.params ? client_1.Params.toAmino(message.params) : undefined; - obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; - obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisState", - value: exports.GenesisState.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; -function createBaseGenesisMetadata() { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -exports.GenesisMetadata = { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisMetadata(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseGenesisMetadata(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = (0, helpers_1.bytesFromBase64)(object.value); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - obj.value = message.value ? (0, helpers_1.base64FromBytes)(message.value) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/GenesisMetadata", - value: exports.GenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.GenesisMetadata.decode(message.value); - }, - toProto(message) { - return exports.GenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.GenesisMetadata", - value: exports.GenesisMetadata.encode(message).finish() - }; - } -}; -function createBaseIdentifiedGenesisMetadata() { - return { - clientId: "", - clientMetadata: [] - }; -} -exports.IdentifiedGenesisMetadata = { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - for (const v of message.clientMetadata) { - exports.GenesisMetadata.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIdentifiedGenesisMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMetadata.push(exports.GenesisMetadata.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseIdentifiedGenesisMetadata(); - message.clientId = object.clientId ?? ""; - message.clientMetadata = object.clientMetadata?.map(e => exports.GenesisMetadata.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseIdentifiedGenesisMetadata(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - message.clientMetadata = object.client_metadata?.map(e => exports.GenesisMetadata.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - if (message.clientMetadata) { - obj.client_metadata = message.clientMetadata.map(e => e ? exports.GenesisMetadata.toAmino(e) : undefined); - } - else { - obj.client_metadata = message.clientMetadata; - } - return obj; - }, - fromAminoMsg(object) { - return exports.IdentifiedGenesisMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/IdentifiedGenesisMetadata", - value: exports.IdentifiedGenesisMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.IdentifiedGenesisMetadata.decode(message.value); - }, - toProto(message) { - return exports.IdentifiedGenesisMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", - value: exports.IdentifiedGenesisMetadata.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/query.d.ts b/packages/api/dist/ibc/core/client/v1/query.d.ts deleted file mode 100644 index be14205f..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.d.ts +++ /dev/null @@ -1,851 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { Height, HeightAmino, HeightSDKType, IdentifiedClientState, IdentifiedClientStateAmino, IdentifiedClientStateSDKType, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, ConsensusStateWithHeightSDKType, Params, ParamsAmino, ParamsSDKType } from "./client"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequest { - /** client state unique identifier */ - clientId: string; -} -export interface QueryClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; - value: Uint8Array; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestAmino { - /** client state unique identifier */ - client_id?: string; -} -export interface QueryClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryClientStateRequest"; - value: QueryClientStateRequestAmino; -} -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - */ -export interface QueryClientStateRequestSDKType { - client_id: string; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponse { - /** client state associated with the request identifier */ - clientState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; - value: Uint8Array; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseAmino { - /** client state associated with the request identifier */ - client_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryClientStateResponse"; - value: QueryClientStateResponseAmino; -} -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface QueryClientStateResponseSDKType { - client_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequest { - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryClientStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; - value: Uint8Array; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestAmino { - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryClientStatesRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatesRequest"; - value: QueryClientStatesRequestAmino; -} -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - */ -export interface QueryClientStatesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponse { - /** list of stored ClientStates of the chain. */ - clientStates: IdentifiedClientState[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryClientStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; - value: Uint8Array; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseAmino { - /** list of stored ClientStates of the chain. */ - client_states?: IdentifiedClientStateAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryClientStatesResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatesResponse"; - value: QueryClientStatesResponseAmino; -} -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface QueryClientStatesResponseSDKType { - client_states: IdentifiedClientStateSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequest { - /** client identifier */ - clientId: string; - /** consensus state revision number */ - revisionNumber: bigint; - /** consensus state revision height */ - revisionHeight: bigint; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latestHeight: boolean; -} -export interface QueryConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestAmino { - /** client identifier */ - client_id?: string; - /** consensus state revision number */ - revision_number?: string; - /** consensus state revision height */ - revision_height?: string; - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState - */ - latest_height?: boolean; -} -export interface QueryConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateRequest"; - value: QueryConsensusStateRequestAmino; -} -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - */ -export interface QueryConsensusStateRequestSDKType { - client_id: string; - revision_number: bigint; - revision_height: bigint; - latest_height: boolean; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponse { - /** consensus state associated with the client identifier at the given height */ - consensusState?: Any; - /** merkle proof of existence */ - proof: Uint8Array; - /** height at which the proof was retrieved */ - proofHeight: Height; -} -export interface QueryConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseAmino { - /** consensus state associated with the client identifier at the given height */ - consensus_state?: AnyAmino; - /** merkle proof of existence */ - proof?: string; - /** height at which the proof was retrieved */ - proof_height?: HeightAmino; -} -export interface QueryConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateResponse"; - value: QueryConsensusStateResponseAmino; -} -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface QueryConsensusStateResponseSDKType { - consensus_state?: AnySDKType; - proof: Uint8Array; - proof_height: HeightSDKType; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStatesRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStatesRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesRequest"; - value: QueryConsensusStatesRequestAmino; -} -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - */ -export interface QueryConsensusStatesRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponse { - /** consensus states associated with the identifier */ - consensusStates: ConsensusStateWithHeight[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStatesResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseAmino { - /** consensus states associated with the identifier */ - consensus_states?: ConsensusStateWithHeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStatesResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStatesResponse"; - value: QueryConsensusStatesResponseAmino; -} -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface QueryConsensusStatesResponseSDKType { - consensus_states: ConsensusStateWithHeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequest { - /** client identifier */ - clientId: string; - /** pagination request */ - pagination?: PageRequest; -} -export interface QueryConsensusStateHeightsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestAmino { - /** client identifier */ - client_id?: string; - /** pagination request */ - pagination?: PageRequestAmino; -} -export interface QueryConsensusStateHeightsRequestAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest"; - value: QueryConsensusStateHeightsRequestAmino; -} -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - */ -export interface QueryConsensusStateHeightsRequestSDKType { - client_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponse { - /** consensus state heights */ - consensusStateHeights: Height[]; - /** pagination response */ - pagination?: PageResponse; -} -export interface QueryConsensusStateHeightsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse"; - value: Uint8Array; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseAmino { - /** consensus state heights */ - consensus_state_heights?: HeightAmino[]; - /** pagination response */ - pagination?: PageResponseAmino; -} -export interface QueryConsensusStateHeightsResponseAminoMsg { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse"; - value: QueryConsensusStateHeightsResponseAmino; -} -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - */ -export interface QueryConsensusStateHeightsResponseSDKType { - consensus_state_heights: HeightSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequest { - /** client unique identifier */ - clientId: string; -} -export interface QueryClientStatusRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; - value: Uint8Array; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestAmino { - /** client unique identifier */ - client_id?: string; -} -export interface QueryClientStatusRequestAminoMsg { - type: "cosmos-sdk/QueryClientStatusRequest"; - value: QueryClientStatusRequestAmino; -} -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - */ -export interface QueryClientStatusRequestSDKType { - client_id: string; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponse { - status: string; -} -export interface QueryClientStatusResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; - value: Uint8Array; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseAmino { - status?: string; -} -export interface QueryClientStatusResponseAminoMsg { - type: "cosmos-sdk/QueryClientStatusResponse"; - value: QueryClientStatusResponseAmino; -} -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - */ -export interface QueryClientStatusResponseSDKType { - status: string; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequest { -} -export interface QueryClientParamsRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; - value: Uint8Array; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestAmino { -} -export interface QueryClientParamsRequestAminoMsg { - type: "cosmos-sdk/QueryClientParamsRequest"; - value: QueryClientParamsRequestAmino; -} -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsRequestSDKType { -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponse { - /** params defines the parameters of the module. */ - params?: Params; -} -export interface QueryClientParamsResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; - value: Uint8Array; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseAmino { - /** params defines the parameters of the module. */ - params?: ParamsAmino; -} -export interface QueryClientParamsResponseAminoMsg { - type: "cosmos-sdk/QueryClientParamsResponse"; - value: QueryClientParamsResponseAmino; -} -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - */ -export interface QueryClientParamsResponseSDKType { - params?: ParamsSDKType; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequest { -} -export interface QueryUpgradedClientStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestAmino { -} -export interface QueryUpgradedClientStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateRequest"; - value: QueryUpgradedClientStateRequestAmino; -} -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - */ -export interface QueryUpgradedClientStateRequestSDKType { -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponse { - /** client state associated with the request identifier */ - upgradedClientState?: Any; -} -export interface QueryUpgradedClientStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseAmino { - /** client state associated with the request identifier */ - upgraded_client_state?: AnyAmino; -} -export interface QueryUpgradedClientStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedClientStateResponse"; - value: QueryUpgradedClientStateResponseAmino; -} -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - */ -export interface QueryUpgradedClientStateResponseSDKType { - upgraded_client_state?: AnySDKType; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequest { -} -export interface QueryUpgradedConsensusStateRequestProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestAmino { -} -export interface QueryUpgradedConsensusStateRequestAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest"; - value: QueryUpgradedConsensusStateRequestAmino; -} -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - */ -export interface QueryUpgradedConsensusStateRequestSDKType { -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponse { - /** Consensus state associated with the request identifier */ - upgradedConsensusState?: Any; -} -export interface QueryUpgradedConsensusStateResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; - value: Uint8Array; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseAmino { - /** Consensus state associated with the request identifier */ - upgraded_consensus_state?: AnyAmino; -} -export interface QueryUpgradedConsensusStateResponseAminoMsg { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse"; - value: QueryUpgradedConsensusStateResponseAmino; -} -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - */ -export interface QueryUpgradedConsensusStateResponseSDKType { - upgraded_consensus_state?: AnySDKType; -} -export declare const QueryClientStateRequest: { - typeUrl: string; - encode(message: QueryClientStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest; - fromPartial(object: Partial): QueryClientStateRequest; - fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest; - toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino; - fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest; - toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg; - fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest; - toProto(message: QueryClientStateRequest): Uint8Array; - toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg; -}; -export declare const QueryClientStateResponse: { - typeUrl: string; - encode(message: QueryClientStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse; - fromPartial(object: Partial): QueryClientStateResponse; - fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse; - toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino; - fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse; - toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg; - fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse; - toProto(message: QueryClientStateResponse): Uint8Array; - toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg; -}; -export declare const QueryClientStatesRequest: { - typeUrl: string; - encode(message: QueryClientStatesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest; - fromPartial(object: Partial): QueryClientStatesRequest; - fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest; - toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino; - fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest; - toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg; - fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest; - toProto(message: QueryClientStatesRequest): Uint8Array; - toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg; -}; -export declare const QueryClientStatesResponse: { - typeUrl: string; - encode(message: QueryClientStatesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse; - fromPartial(object: Partial): QueryClientStatesResponse; - fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse; - toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino; - fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse; - toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg; - fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse; - toProto(message: QueryClientStatesResponse): Uint8Array; - toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg; -}; -export declare const QueryConsensusStateRequest: { - typeUrl: string; - encode(message: QueryConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest; - fromPartial(object: Partial): QueryConsensusStateRequest; - fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest; - toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino; - fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest; - toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest; - toProto(message: QueryConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg; -}; -export declare const QueryConsensusStateResponse: { - typeUrl: string; - encode(message: QueryConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse; - fromPartial(object: Partial): QueryConsensusStateResponse; - fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse; - toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino; - fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse; - toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse; - toProto(message: QueryConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg; -}; -export declare const QueryConsensusStatesRequest: { - typeUrl: string; - encode(message: QueryConsensusStatesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest; - fromPartial(object: Partial): QueryConsensusStatesRequest; - fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest; - toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino; - fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest; - toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest; - toProto(message: QueryConsensusStatesRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg; -}; -export declare const QueryConsensusStatesResponse: { - typeUrl: string; - encode(message: QueryConsensusStatesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse; - fromPartial(object: Partial): QueryConsensusStatesResponse; - fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse; - toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino; - fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse; - toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse; - toProto(message: QueryConsensusStatesResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg; -}; -export declare const QueryConsensusStateHeightsRequest: { - typeUrl: string; - encode(message: QueryConsensusStateHeightsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; - fromPartial(object: Partial): QueryConsensusStateHeightsRequest; - fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest; - toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino; - fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest; - toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg; - fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest; - toProto(message: QueryConsensusStateHeightsRequest): Uint8Array; - toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg; -}; -export declare const QueryConsensusStateHeightsResponse: { - typeUrl: string; - encode(message: QueryConsensusStateHeightsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; - fromPartial(object: Partial): QueryConsensusStateHeightsResponse; - fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse; - toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino; - fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse; - toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg; - fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse; - toProto(message: QueryConsensusStateHeightsResponse): Uint8Array; - toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg; -}; -export declare const QueryClientStatusRequest: { - typeUrl: string; - encode(message: QueryClientStatusRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest; - fromPartial(object: Partial): QueryClientStatusRequest; - fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest; - toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino; - fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest; - toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg; - fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest; - toProto(message: QueryClientStatusRequest): Uint8Array; - toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg; -}; -export declare const QueryClientStatusResponse: { - typeUrl: string; - encode(message: QueryClientStatusResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse; - fromPartial(object: Partial): QueryClientStatusResponse; - fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse; - toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino; - fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse; - toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg; - fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse; - toProto(message: QueryClientStatusResponse): Uint8Array; - toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg; -}; -export declare const QueryClientParamsRequest: { - typeUrl: string; - encode(_: QueryClientParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest; - fromPartial(_: Partial): QueryClientParamsRequest; - fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest; - toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino; - fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest; - toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg; - fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest; - toProto(message: QueryClientParamsRequest): Uint8Array; - toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg; -}; -export declare const QueryClientParamsResponse: { - typeUrl: string; - encode(message: QueryClientParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse; - fromPartial(object: Partial): QueryClientParamsResponse; - fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse; - toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino; - fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse; - toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg; - fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse; - toProto(message: QueryClientParamsResponse): Uint8Array; - toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg; -}; -export declare const QueryUpgradedClientStateRequest: { - typeUrl: string; - encode(_: QueryUpgradedClientStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; - fromPartial(_: Partial): QueryUpgradedClientStateRequest; - fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest; - toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino; - fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest; - toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest; - toProto(message: QueryUpgradedClientStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg; -}; -export declare const QueryUpgradedClientStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedClientStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; - fromPartial(object: Partial): QueryUpgradedClientStateResponse; - fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse; - toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino; - fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse; - toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse; - toProto(message: QueryUpgradedClientStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg; -}; -export declare const QueryUpgradedConsensusStateRequest: { - typeUrl: string; - encode(_: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; - fromPartial(_: Partial): QueryUpgradedConsensusStateRequest; - fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest; - toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest; - toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest; - toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg; -}; -export declare const QueryUpgradedConsensusStateResponse: { - typeUrl: string; - encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; - fromPartial(object: Partial): QueryUpgradedConsensusStateResponse; - fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse; - toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino; - fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse; - toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg; - fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse; - toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array; - toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg; -}; diff --git a/packages/api/dist/ibc/core/client/v1/query.js b/packages/api/dist/ibc/core/client/v1/query.js deleted file mode 100644 index 18dde31e..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.js +++ /dev/null @@ -1,1365 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); -const any_1 = require("../../../../google/protobuf/any"); -const client_1 = require("./client"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseQueryClientStateRequest() { - return { - clientId: "" - }; -} -exports.QueryClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStateRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStateRequest", - value: exports.QueryClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStateRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", - value: exports.QueryClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStateResponse() { - return { - clientState: undefined, - proof: new Uint8Array(), - proofHeight: client_1.Height.fromPartial({}) - }; -} -exports.QueryClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientState !== undefined) { - any_1.Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - client_1.Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = any_1.Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = client_1.Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStateResponse(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? client_1.Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStateResponse(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = any_1.Any.fromAmino(object.client_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = (0, helpers_1.bytesFromBase64)(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = client_1.Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; - obj.proof = message.proof ? (0, helpers_1.base64FromBytes)(message.proof) : undefined; - obj.proof_height = message.proofHeight ? client_1.Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStateResponse", - value: exports.QueryClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStateResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", - value: exports.QueryClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesRequest() { - return { - pagination: undefined - }; -} -exports.QueryClientStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatesRequest", - value: exports.QueryClientStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStatesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStatesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", - value: exports.QueryClientStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatesResponse() { - return { - clientStates: [], - pagination: undefined - }; -} -exports.QueryClientStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.clientStates) { - client_1.IdentifiedClientState.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientStates.push(client_1.IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.clientStates?.map(e => client_1.IdentifiedClientState.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatesResponse(); - message.clientStates = object.client_states?.map(e => client_1.IdentifiedClientState.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.clientStates) { - obj.client_states = message.clientStates.map(e => e ? client_1.IdentifiedClientState.toAmino(e) : undefined); - } - else { - obj.client_states = message.clientStates; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatesResponse", - value: exports.QueryClientStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStatesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStatesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", - value: exports.QueryClientStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateRequest() { - return { - clientId: "", - revisionNumber: BigInt(0), - revisionHeight: BigInt(0), - latestHeight: false - }; -} -exports.QueryConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.revisionNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.revisionNumber); - } - if (message.revisionHeight !== BigInt(0)) { - writer.uint32(24).uint64(message.revisionHeight); - } - if (message.latestHeight === true) { - writer.uint32(32).bool(message.latestHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.revisionNumber = reader.uint64(); - break; - case 3: - message.revisionHeight = reader.uint64(); - break; - case 4: - message.latestHeight = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateRequest(); - message.clientId = object.clientId ?? ""; - message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0); - message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0); - message.latestHeight = object.latestHeight ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.revision_number !== undefined && object.revision_number !== null) { - message.revisionNumber = BigInt(object.revision_number); - } - if (object.revision_height !== undefined && object.revision_height !== null) { - message.revisionHeight = BigInt(object.revision_height); - } - if (object.latest_height !== undefined && object.latest_height !== null) { - message.latestHeight = object.latest_height; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; - obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateRequest", - value: exports.QueryConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", - value: exports.QueryConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateResponse() { - return { - consensusState: undefined, - proof: new Uint8Array(), - proofHeight: client_1.Height.fromPartial({}) - }; -} -exports.QueryConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.consensusState !== undefined) { - any_1.Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim(); - } - if (message.proof.length !== 0) { - writer.uint32(18).bytes(message.proof); - } - if (message.proofHeight !== undefined) { - client_1.Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusState = any_1.Any.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proofHeight = client_1.Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateResponse(); - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; - message.proof = object.proof ?? new Uint8Array(); - message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? client_1.Height.fromPartial(object.proofHeight) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateResponse(); - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = any_1.Any.fromAmino(object.consensus_state); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = (0, helpers_1.bytesFromBase64)(object.proof); - } - if (object.proof_height !== undefined && object.proof_height !== null) { - message.proofHeight = client_1.Height.fromAmino(object.proof_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; - obj.proof = message.proof ? (0, helpers_1.base64FromBytes)(message.proof) : undefined; - obj.proof_height = message.proofHeight ? client_1.Height.toAmino(message.proofHeight) : {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateResponse", - value: exports.QueryConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", - value: exports.QueryConsensusStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesRequest() { - return { - clientId: "", - pagination: undefined - }; -} -exports.QueryConsensusStatesRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStatesRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStatesRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStatesRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStatesRequest", - value: exports.QueryConsensusStatesRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStatesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStatesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", - value: exports.QueryConsensusStatesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStatesResponse() { - return { - consensusStates: [], - pagination: undefined - }; -} -exports.QueryConsensusStatesResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.consensusStates) { - client_1.ConsensusStateWithHeight.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStatesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStates.push(client_1.ConsensusStateWithHeight.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensusStates?.map(e => client_1.ConsensusStateWithHeight.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStatesResponse(); - message.consensusStates = object.consensus_states?.map(e => client_1.ConsensusStateWithHeight.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.consensusStates) { - obj.consensus_states = message.consensusStates.map(e => e ? client_1.ConsensusStateWithHeight.toAmino(e) : undefined); - } - else { - obj.consensus_states = message.consensusStates; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStatesResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStatesResponse", - value: exports.QueryConsensusStatesResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStatesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStatesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", - value: exports.QueryConsensusStatesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsRequest() { - return { - clientId: "", - pagination: undefined - }; -} -exports.QueryConsensusStateHeightsRequest = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateHeightsRequest(); - message.clientId = object.clientId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateHeightsRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStateHeightsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsRequest", - value: exports.QueryConsensusStateHeightsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStateHeightsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStateHeightsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", - value: exports.QueryConsensusStateHeightsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryConsensusStateHeightsResponse() { - return { - consensusStateHeights: [], - pagination: undefined - }; -} -exports.QueryConsensusStateHeightsResponse = { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.consensusStateHeights) { - client_1.Height.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConsensusStateHeightsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusStateHeights.push(client_1.Height.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensusStateHeights?.map(e => client_1.Height.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryConsensusStateHeightsResponse(); - message.consensusStateHeights = object.consensus_state_heights?.map(e => client_1.Height.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.consensusStateHeights) { - obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? client_1.Height.toAmino(e) : undefined); - } - else { - obj.consensus_state_heights = message.consensusStateHeights; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryConsensusStateHeightsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryConsensusStateHeightsResponse", - value: exports.QueryConsensusStateHeightsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryConsensusStateHeightsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryConsensusStateHeightsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", - value: exports.QueryConsensusStateHeightsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusRequest() { - return { - clientId: "" - }; -} -exports.QueryClientStatusRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatusRequest(); - message.clientId = object.clientId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatusRequest(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStatusRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatusRequest", - value: exports.QueryClientStatusRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStatusRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStatusRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", - value: exports.QueryClientStatusRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientStatusResponse() { - return { - status: "" - }; -} -exports.QueryClientStatusResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.status !== "") { - writer.uint32(10).string(message.status); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientStatusResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientStatusResponse(); - message.status = object.status ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientStatusResponse(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === "" ? undefined : message.status; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientStatusResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientStatusResponse", - value: exports.QueryClientStatusResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientStatusResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClientStatusResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", - value: exports.QueryClientStatusResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsRequest() { - return {}; -} -exports.QueryClientParamsRequest = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClientParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientParamsRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientParamsRequest", - value: exports.QueryClientParamsRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClientParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", - value: exports.QueryClientParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClientParamsResponse() { - return { - params: undefined - }; -} -exports.QueryClientParamsResponse = { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - client_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClientParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = client_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClientParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? client_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClientParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = client_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? client_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClientParamsResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryClientParamsResponse", - value: exports.QueryClientParamsResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryClientParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClientParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", - value: exports.QueryClientParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateRequest() { - return {}; -} -exports.QueryUpgradedClientStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryUpgradedClientStateRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedClientStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedClientStateRequest", - value: exports.QueryUpgradedClientStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedClientStateRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedClientStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", - value: exports.QueryUpgradedClientStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedClientStateResponse() { - return { - upgradedClientState: undefined - }; -} -exports.QueryUpgradedClientStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.upgradedClientState !== undefined) { - any_1.Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedClientStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedClientState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedClientStateResponse(); - message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? any_1.Any.fromPartial(object.upgradedClientState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedClientStateResponse(); - if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) { - message.upgradedClientState = any_1.Any.fromAmino(object.upgraded_client_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_client_state = message.upgradedClientState ? any_1.Any.toAmino(message.upgradedClientState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedClientStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedClientStateResponse", - value: exports.QueryUpgradedClientStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedClientStateResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedClientStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", - value: exports.QueryUpgradedClientStateResponse.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateRequest() { - return {}; -} -exports.QueryUpgradedConsensusStateRequest = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryUpgradedConsensusStateRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedConsensusStateRequest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateRequest", - value: exports.QueryUpgradedConsensusStateRequest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedConsensusStateRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedConsensusStateRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", - value: exports.QueryUpgradedConsensusStateRequest.encode(message).finish() - }; - } -}; -function createBaseQueryUpgradedConsensusStateResponse() { - return { - upgradedConsensusState: undefined - }; -} -exports.QueryUpgradedConsensusStateResponse = { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.upgradedConsensusState !== undefined) { - any_1.Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgradedConsensusState = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? any_1.Any.fromPartial(object.upgradedConsensusState) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) { - message.upgradedConsensusState = any_1.Any.fromAmino(object.upgraded_consensus_state); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.upgraded_consensus_state = message.upgradedConsensusState ? any_1.Any.toAmino(message.upgradedConsensusState) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryUpgradedConsensusStateResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/QueryUpgradedConsensusStateResponse", - value: exports.QueryUpgradedConsensusStateResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.QueryUpgradedConsensusStateResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryUpgradedConsensusStateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", - value: exports.QueryUpgradedConsensusStateResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts b/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts deleted file mode 100644 index 995c8c32..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.lcd.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClientStateRequest, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesResponseSDKType, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponseSDKType, QueryClientStatusRequest, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - clientState(params: QueryClientStateRequest): Promise; - clientStates(params?: QueryClientStatesRequest): Promise; - consensusState(params: QueryConsensusStateRequest): Promise; - consensusStates(params: QueryConsensusStatesRequest): Promise; - consensusStateHeights(params: QueryConsensusStateHeightsRequest): Promise; - clientStatus(params: QueryClientStatusRequest): Promise; - clientParams(_params?: QueryClientParamsRequest): Promise; - upgradedClientState(_params?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(_params?: QueryUpgradedConsensusStateRequest): Promise; -} diff --git a/packages/api/dist/ibc/core/client/v1/query.lcd.js b/packages/api/dist/ibc/core/client/v1/query.lcd.js deleted file mode 100644 index 706762fc..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.lcd.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - /* ClientState queries an IBC light client. */ - async clientState(params) { - const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientStates queries all the IBC light clients of a chain. */ - async clientStates(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/client_states`; - return await this.req.get(endpoint, options); - } - /* ConsensusState queries a consensus state associated with a client state at - a given height. */ - async consensusState(params) { - const options = { - params: {} - }; - if (typeof params?.latestHeight !== "undefined") { - options.params.latest_height = params.latestHeight; - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStates queries all the consensus state associated with a given - client. */ - async consensusStates(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}`; - return await this.req.get(endpoint, options); - } - /* ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - async consensusStateHeights(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/heights`; - return await this.req.get(endpoint, options); - } - /* Status queries the status of an IBC client. */ - async clientStatus(params) { - const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`; - return await this.req.get(endpoint); - } - /* ClientParams queries all parameters of the ibc client. */ - async clientParams(_params = {}) { - const endpoint = `ibc/client/v1/params`; - return await this.req.get(endpoint); - } - /* UpgradedClientState queries an Upgraded IBC light client. */ - async upgradedClientState(_params = {}) { - const endpoint = `ibc/core/client/v1/upgraded_client_states`; - return await this.req.get(endpoint); - } - /* UpgradedConsensusState queries an Upgraded IBC consensus state. */ - async upgradedConsensusState(_params = {}) { - const endpoint = `ibc/core/client/v1/upgraded_consensus_states`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts deleted file mode 100644 index 306362d3..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; -/** Query provides defines the gRPC querier service */ -export interface Query { - /** ClientState queries an IBC light client. */ - clientState(request: QueryClientStateRequest): Promise; - /** ClientStates queries all the IBC light clients of a chain. */ - clientStates(request?: QueryClientStatesRequest): Promise; - /** - * ConsensusState queries a consensus state associated with a client state at - * a given height. - */ - consensusState(request: QueryConsensusStateRequest): Promise; - /** - * ConsensusStates queries all the consensus state associated with a given - * client. - */ - consensusStates(request: QueryConsensusStatesRequest): Promise; - /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - /** Status queries the status of an IBC client. */ - clientStatus(request: QueryClientStatusRequest): Promise; - /** ClientParams queries all parameters of the ibc client. */ - clientParams(request?: QueryClientParamsRequest): Promise; - /** UpgradedClientState queries an Upgraded IBC light client. */ - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - clientState(request: QueryClientStateRequest): Promise; - clientStates(request?: QueryClientStatesRequest): Promise; - consensusState(request: QueryConsensusStateRequest): Promise; - consensusStates(request: QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: QueryClientStatusRequest): Promise; - clientParams(request?: QueryClientParamsRequest): Promise; - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - clientState(request: QueryClientStateRequest): Promise; - clientStates(request?: QueryClientStatesRequest): Promise; - consensusState(request: QueryConsensusStateRequest): Promise; - consensusStates(request: QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: QueryClientStatusRequest): Promise; - clientParams(request?: QueryClientParamsRequest): Promise; - upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; -}; diff --git a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js b/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js deleted file mode 100644 index 976263cd..00000000 --- a/packages/api/dist/ibc/core/client/v1/query.rpc.Query.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.clientState = this.clientState.bind(this); - this.clientStates = this.clientStates.bind(this); - this.consensusState = this.consensusState.bind(this); - this.consensusStates = this.consensusStates.bind(this); - this.consensusStateHeights = this.consensusStateHeights.bind(this); - this.clientStatus = this.clientStatus.bind(this); - this.clientParams = this.clientParams.bind(this); - this.upgradedClientState = this.upgradedClientState.bind(this); - this.upgradedConsensusState = this.upgradedConsensusState.bind(this); - } - clientState(request) { - const data = query_1.QueryClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); - return promise.then(data => query_1.QueryClientStateResponse.decode(new binary_1.BinaryReader(data))); - } - clientStates(request = { - pagination: undefined - }) { - const data = query_1.QueryClientStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); - return promise.then(data => query_1.QueryClientStatesResponse.decode(new binary_1.BinaryReader(data))); - } - consensusState(request) { - const data = query_1.QueryConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); - return promise.then(data => query_1.QueryConsensusStateResponse.decode(new binary_1.BinaryReader(data))); - } - consensusStates(request) { - const data = query_1.QueryConsensusStatesRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); - return promise.then(data => query_1.QueryConsensusStatesResponse.decode(new binary_1.BinaryReader(data))); - } - consensusStateHeights(request) { - const data = query_1.QueryConsensusStateHeightsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data); - return promise.then(data => query_1.QueryConsensusStateHeightsResponse.decode(new binary_1.BinaryReader(data))); - } - clientStatus(request) { - const data = query_1.QueryClientStatusRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); - return promise.then(data => query_1.QueryClientStatusResponse.decode(new binary_1.BinaryReader(data))); - } - clientParams(request = {}) { - const data = query_1.QueryClientParamsRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); - return promise.then(data => query_1.QueryClientParamsResponse.decode(new binary_1.BinaryReader(data))); - } - upgradedClientState(request = {}) { - const data = query_1.QueryUpgradedClientStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); - return promise.then(data => query_1.QueryUpgradedClientStateResponse.decode(new binary_1.BinaryReader(data))); - } - upgradedConsensusState(request = {}) { - const data = query_1.QueryUpgradedConsensusStateRequest.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); - return promise.then(data => query_1.QueryUpgradedConsensusStateResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - clientState(request) { - return queryService.clientState(request); - }, - clientStates(request) { - return queryService.clientStates(request); - }, - consensusState(request) { - return queryService.consensusState(request); - }, - consensusStates(request) { - return queryService.consensusStates(request); - }, - consensusStateHeights(request) { - return queryService.consensusStateHeights(request); - }, - clientStatus(request) { - return queryService.clientStatus(request); - }, - clientParams(request) { - return queryService.clientParams(request); - }, - upgradedClientState(request) { - return queryService.upgradedClientState(request); - }, - upgradedConsensusState(request) { - return queryService.upgradedConsensusState(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts b/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts deleted file mode 100644 index 179f257f..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export declare const AminoConverter: { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: string; - toAmino: (message: MsgCreateClient) => import("./tx").MsgCreateClientAmino; - fromAmino: (object: import("./tx").MsgCreateClientAmino) => MsgCreateClient; - }; - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: string; - toAmino: (message: MsgUpdateClient) => import("./tx").MsgUpdateClientAmino; - fromAmino: (object: import("./tx").MsgUpdateClientAmino) => MsgUpdateClient; - }; - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: string; - toAmino: (message: MsgUpgradeClient) => import("./tx").MsgUpgradeClientAmino; - fromAmino: (object: import("./tx").MsgUpgradeClientAmino) => MsgUpgradeClient; - }; - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: string; - toAmino: (message: MsgSubmitMisbehaviour) => import("./tx").MsgSubmitMisbehaviourAmino; - fromAmino: (object: import("./tx").MsgSubmitMisbehaviourAmino) => MsgSubmitMisbehaviour; - }; -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.amino.js b/packages/api/dist/ibc/core/client/v1/tx.amino.js deleted file mode 100644 index 4abd504f..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.amino.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/ibc.core.client.v1.MsgCreateClient": { - aminoType: "cosmos-sdk/MsgCreateClient", - toAmino: tx_1.MsgCreateClient.toAmino, - fromAmino: tx_1.MsgCreateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpdateClient": { - aminoType: "cosmos-sdk/MsgUpdateClient", - toAmino: tx_1.MsgUpdateClient.toAmino, - fromAmino: tx_1.MsgUpdateClient.fromAmino - }, - "/ibc.core.client.v1.MsgUpgradeClient": { - aminoType: "cosmos-sdk/MsgUpgradeClient", - toAmino: tx_1.MsgUpgradeClient.toAmino, - fromAmino: tx_1.MsgUpgradeClient.fromAmino - }, - "/ibc.core.client.v1.MsgSubmitMisbehaviour": { - aminoType: "cosmos-sdk/MsgSubmitMisbehaviour", - toAmino: tx_1.MsgSubmitMisbehaviour.toAmino, - fromAmino: tx_1.MsgSubmitMisbehaviour.fromAmino - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.d.ts b/packages/api/dist/ibc/core/client/v1/tx.d.ts deleted file mode 100644 index f4594be5..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.d.ts +++ /dev/null @@ -1,377 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClient { - /** light client state */ - clientState?: Any; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensusState?: Any; - /** signer address */ - signer: string; -} -export interface MsgCreateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClient"; - value: Uint8Array; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientAmino { - /** light client state */ - client_state?: AnyAmino; - /** - * consensus state associated with the client that corresponds to a given - * height. - */ - consensus_state?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgCreateClientAminoMsg { - type: "cosmos-sdk/MsgCreateClient"; - value: MsgCreateClientAmino; -} -/** MsgCreateClient defines a message to create an IBC client */ -export interface MsgCreateClientSDKType { - client_state?: AnySDKType; - consensus_state?: AnySDKType; - signer: string; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponse { -} -export interface MsgCreateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; - value: Uint8Array; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseAmino { -} -export interface MsgCreateClientResponseAminoMsg { - type: "cosmos-sdk/MsgCreateClientResponse"; - value: MsgCreateClientResponseAmino; -} -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export interface MsgCreateClientResponseSDKType { -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClient { - /** client unique identifier */ - clientId: string; - /** client message to update the light client */ - clientMessage?: Any; - /** signer address */ - signer: string; -} -export interface MsgUpdateClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; - value: Uint8Array; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientAmino { - /** client unique identifier */ - client_id?: string; - /** client message to update the light client */ - client_message?: AnyAmino; - /** signer address */ - signer?: string; -} -export interface MsgUpdateClientAminoMsg { - type: "cosmos-sdk/MsgUpdateClient"; - value: MsgUpdateClientAmino; -} -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - */ -export interface MsgUpdateClientSDKType { - client_id: string; - client_message?: AnySDKType; - signer: string; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponse { -} -export interface MsgUpdateClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; - value: Uint8Array; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseAmino { -} -export interface MsgUpdateClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpdateClientResponse"; - value: MsgUpdateClientResponseAmino; -} -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export interface MsgUpdateClientResponseSDKType { -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClient { - /** client unique identifier */ - clientId: string; - /** upgraded client state */ - clientState?: Any; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensusState?: Any; - /** proof that old chain committed to new client */ - proofUpgradeClient: Uint8Array; - /** proof that old chain committed to new consensus state */ - proofUpgradeConsensusState: Uint8Array; - /** signer address */ - signer: string; -} -export interface MsgUpgradeClientProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; - value: Uint8Array; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientAmino { - /** client unique identifier */ - client_id?: string; - /** upgraded client state */ - client_state?: AnyAmino; - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - */ - consensus_state?: AnyAmino; - /** proof that old chain committed to new client */ - proof_upgrade_client?: string; - /** proof that old chain committed to new consensus state */ - proof_upgrade_consensus_state?: string; - /** signer address */ - signer?: string; -} -export interface MsgUpgradeClientAminoMsg { - type: "cosmos-sdk/MsgUpgradeClient"; - value: MsgUpgradeClientAmino; -} -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - */ -export interface MsgUpgradeClientSDKType { - client_id: string; - client_state?: AnySDKType; - consensus_state?: AnySDKType; - proof_upgrade_client: Uint8Array; - proof_upgrade_consensus_state: Uint8Array; - signer: string; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponse { -} -export interface MsgUpgradeClientResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; - value: Uint8Array; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseAmino { -} -export interface MsgUpgradeClientResponseAminoMsg { - type: "cosmos-sdk/MsgUpgradeClientResponse"; - value: MsgUpgradeClientResponseAmino; -} -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export interface MsgUpgradeClientResponseSDKType { -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviour { - /** client unique identifier */ - /** @deprecated */ - clientId: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: Any; - /** signer address */ - /** @deprecated */ - signer: string; -} -export interface MsgSubmitMisbehaviourProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourAmino { - /** client unique identifier */ - /** @deprecated */ - client_id?: string; - /** misbehaviour used for freezing the light client */ - /** @deprecated */ - misbehaviour?: AnyAmino; - /** signer address */ - /** @deprecated */ - signer?: string; -} -export interface MsgSubmitMisbehaviourAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviour"; - value: MsgSubmitMisbehaviourAmino; -} -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * Warning: DEPRECATED - */ -export interface MsgSubmitMisbehaviourSDKType { - /** @deprecated */ - client_id: string; - /** @deprecated */ - misbehaviour?: AnySDKType; - /** @deprecated */ - signer: string; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponse { -} -export interface MsgSubmitMisbehaviourResponseProtoMsg { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - value: Uint8Array; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseAmino { -} -export interface MsgSubmitMisbehaviourResponseAminoMsg { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse"; - value: MsgSubmitMisbehaviourResponseAmino; -} -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - */ -export interface MsgSubmitMisbehaviourResponseSDKType { -} -export declare const MsgCreateClient: { - typeUrl: string; - encode(message: MsgCreateClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClient; - fromPartial(object: Partial): MsgCreateClient; - fromAmino(object: MsgCreateClientAmino): MsgCreateClient; - toAmino(message: MsgCreateClient): MsgCreateClientAmino; - fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient; - toAminoMsg(message: MsgCreateClient): MsgCreateClientAminoMsg; - fromProtoMsg(message: MsgCreateClientProtoMsg): MsgCreateClient; - toProto(message: MsgCreateClient): Uint8Array; - toProtoMsg(message: MsgCreateClient): MsgCreateClientProtoMsg; -}; -export declare const MsgCreateClientResponse: { - typeUrl: string; - encode(_: MsgCreateClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClientResponse; - fromPartial(_: Partial): MsgCreateClientResponse; - fromAmino(_: MsgCreateClientResponseAmino): MsgCreateClientResponse; - toAmino(_: MsgCreateClientResponse): MsgCreateClientResponseAmino; - fromAminoMsg(object: MsgCreateClientResponseAminoMsg): MsgCreateClientResponse; - toAminoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseAminoMsg; - fromProtoMsg(message: MsgCreateClientResponseProtoMsg): MsgCreateClientResponse; - toProto(message: MsgCreateClientResponse): Uint8Array; - toProtoMsg(message: MsgCreateClientResponse): MsgCreateClientResponseProtoMsg; -}; -export declare const MsgUpdateClient: { - typeUrl: string; - encode(message: MsgUpdateClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClient; - fromPartial(object: Partial): MsgUpdateClient; - fromAmino(object: MsgUpdateClientAmino): MsgUpdateClient; - toAmino(message: MsgUpdateClient): MsgUpdateClientAmino; - fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient; - toAminoMsg(message: MsgUpdateClient): MsgUpdateClientAminoMsg; - fromProtoMsg(message: MsgUpdateClientProtoMsg): MsgUpdateClient; - toProto(message: MsgUpdateClient): Uint8Array; - toProtoMsg(message: MsgUpdateClient): MsgUpdateClientProtoMsg; -}; -export declare const MsgUpdateClientResponse: { - typeUrl: string; - encode(_: MsgUpdateClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClientResponse; - fromPartial(_: Partial): MsgUpdateClientResponse; - fromAmino(_: MsgUpdateClientResponseAmino): MsgUpdateClientResponse; - toAmino(_: MsgUpdateClientResponse): MsgUpdateClientResponseAmino; - fromAminoMsg(object: MsgUpdateClientResponseAminoMsg): MsgUpdateClientResponse; - toAminoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseAminoMsg; - fromProtoMsg(message: MsgUpdateClientResponseProtoMsg): MsgUpdateClientResponse; - toProto(message: MsgUpdateClientResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClientResponse): MsgUpdateClientResponseProtoMsg; -}; -export declare const MsgUpgradeClient: { - typeUrl: string; - encode(message: MsgUpgradeClient, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClient; - fromPartial(object: Partial): MsgUpgradeClient; - fromAmino(object: MsgUpgradeClientAmino): MsgUpgradeClient; - toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino; - fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient; - toAminoMsg(message: MsgUpgradeClient): MsgUpgradeClientAminoMsg; - fromProtoMsg(message: MsgUpgradeClientProtoMsg): MsgUpgradeClient; - toProto(message: MsgUpgradeClient): Uint8Array; - toProtoMsg(message: MsgUpgradeClient): MsgUpgradeClientProtoMsg; -}; -export declare const MsgUpgradeClientResponse: { - typeUrl: string; - encode(_: MsgUpgradeClientResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpgradeClientResponse; - fromPartial(_: Partial): MsgUpgradeClientResponse; - fromAmino(_: MsgUpgradeClientResponseAmino): MsgUpgradeClientResponse; - toAmino(_: MsgUpgradeClientResponse): MsgUpgradeClientResponseAmino; - fromAminoMsg(object: MsgUpgradeClientResponseAminoMsg): MsgUpgradeClientResponse; - toAminoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseAminoMsg; - fromProtoMsg(message: MsgUpgradeClientResponseProtoMsg): MsgUpgradeClientResponse; - toProto(message: MsgUpgradeClientResponse): Uint8Array; - toProtoMsg(message: MsgUpgradeClientResponse): MsgUpgradeClientResponseProtoMsg; -}; -export declare const MsgSubmitMisbehaviour: { - typeUrl: string; - encode(message: MsgSubmitMisbehaviour, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviour; - fromPartial(object: Partial): MsgSubmitMisbehaviour; - fromAmino(object: MsgSubmitMisbehaviourAmino): MsgSubmitMisbehaviour; - toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino; - fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour; - toAminoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAminoMsg; - fromProtoMsg(message: MsgSubmitMisbehaviourProtoMsg): MsgSubmitMisbehaviour; - toProto(message: MsgSubmitMisbehaviour): Uint8Array; - toProtoMsg(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourProtoMsg; -}; -export declare const MsgSubmitMisbehaviourResponse: { - typeUrl: string; - encode(_: MsgSubmitMisbehaviourResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitMisbehaviourResponse; - fromPartial(_: Partial): MsgSubmitMisbehaviourResponse; - fromAmino(_: MsgSubmitMisbehaviourResponseAmino): MsgSubmitMisbehaviourResponse; - toAmino(_: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAmino; - fromAminoMsg(object: MsgSubmitMisbehaviourResponseAminoMsg): MsgSubmitMisbehaviourResponse; - toAminoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseAminoMsg; - fromProtoMsg(message: MsgSubmitMisbehaviourResponseProtoMsg): MsgSubmitMisbehaviourResponse; - toProto(message: MsgSubmitMisbehaviourResponse): Uint8Array; - toProtoMsg(message: MsgSubmitMisbehaviourResponse): MsgSubmitMisbehaviourResponseProtoMsg; -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.js b/packages/api/dist/ibc/core/client/v1/tx.js deleted file mode 100644 index 3a884a4e..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.js +++ /dev/null @@ -1,639 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = void 0; -//@ts-nocheck -const any_1 = require("../../../../google/protobuf/any"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseMsgCreateClient() { - return { - clientState: undefined, - consensusState: undefined, - signer: "" - }; -} -exports.MsgCreateClient = { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientState !== undefined) { - any_1.Any.encode(message.clientState, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - any_1.Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientState = any_1.Any.decode(reader, reader.uint32()); - break; - case 2: - message.consensusState = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClient(); - message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClient(); - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = any_1.Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = any_1.Any.fromAmino(object.consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateClient", - value: exports.MsgCreateClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateClient.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: exports.MsgCreateClient.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClientResponse() { - return {}; -} -exports.MsgCreateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCreateClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgCreateClientResponse", - value: exports.MsgCreateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateClientResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", - value: exports.MsgCreateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClient() { - return { - clientId: "", - clientMessage: undefined, - signer: "" - }; -} -exports.MsgUpdateClient = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientMessage !== undefined) { - any_1.Any.encode(message.clientMessage, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientMessage = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClient(); - message.clientId = object.clientId ?? ""; - message.clientMessage = object.clientMessage !== undefined && object.clientMessage !== null ? any_1.Any.fromPartial(object.clientMessage) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_message !== undefined && object.client_message !== null) { - message.clientMessage = any_1.Any.fromAmino(object.client_message); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_message = message.clientMessage ? any_1.Any.toAmino(message.clientMessage) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateClient", - value: exports.MsgUpdateClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClient.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: exports.MsgUpdateClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClientResponse() { - return {}; -} -exports.MsgUpdateClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpdateClientResponse", - value: exports.MsgUpdateClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClientResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", - value: exports.MsgUpdateClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClient() { - return { - clientId: "", - clientState: undefined, - consensusState: undefined, - proofUpgradeClient: new Uint8Array(), - proofUpgradeConsensusState: new Uint8Array(), - signer: "" - }; -} -exports.MsgUpgradeClient = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.clientState !== undefined) { - any_1.Any.encode(message.clientState, writer.uint32(18).fork()).ldelim(); - } - if (message.consensusState !== undefined) { - any_1.Any.encode(message.consensusState, writer.uint32(26).fork()).ldelim(); - } - if (message.proofUpgradeClient.length !== 0) { - writer.uint32(34).bytes(message.proofUpgradeClient); - } - if (message.proofUpgradeConsensusState.length !== 0) { - writer.uint32(42).bytes(message.proofUpgradeConsensusState); - } - if (message.signer !== "") { - writer.uint32(50).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClient(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientState = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.consensusState = any_1.Any.decode(reader, reader.uint32()); - break; - case 4: - message.proofUpgradeClient = reader.bytes(); - break; - case 5: - message.proofUpgradeConsensusState = reader.bytes(); - break; - case 6: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpgradeClient(); - message.clientId = object.clientId ?? ""; - message.clientState = object.clientState !== undefined && object.clientState !== null ? any_1.Any.fromPartial(object.clientState) : undefined; - message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? any_1.Any.fromPartial(object.consensusState) : undefined; - message.proofUpgradeClient = object.proofUpgradeClient ?? new Uint8Array(); - message.proofUpgradeConsensusState = object.proofUpgradeConsensusState ?? new Uint8Array(); - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpgradeClient(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.client_state !== undefined && object.client_state !== null) { - message.clientState = any_1.Any.fromAmino(object.client_state); - } - if (object.consensus_state !== undefined && object.consensus_state !== null) { - message.consensusState = any_1.Any.fromAmino(object.consensus_state); - } - if (object.proof_upgrade_client !== undefined && object.proof_upgrade_client !== null) { - message.proofUpgradeClient = (0, helpers_1.bytesFromBase64)(object.proof_upgrade_client); - } - if (object.proof_upgrade_consensus_state !== undefined && object.proof_upgrade_consensus_state !== null) { - message.proofUpgradeConsensusState = (0, helpers_1.bytesFromBase64)(object.proof_upgrade_consensus_state); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.client_state = message.clientState ? any_1.Any.toAmino(message.clientState) : undefined; - obj.consensus_state = message.consensusState ? any_1.Any.toAmino(message.consensusState) : undefined; - obj.proof_upgrade_client = message.proofUpgradeClient ? (0, helpers_1.base64FromBytes)(message.proofUpgradeClient) : undefined; - obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? (0, helpers_1.base64FromBytes)(message.proofUpgradeConsensusState) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpgradeClient.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpgradeClient", - value: exports.MsgUpgradeClient.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpgradeClient.decode(message.value); - }, - toProto(message) { - return exports.MsgUpgradeClient.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: exports.MsgUpgradeClient.encode(message).finish() - }; - } -}; -function createBaseMsgUpgradeClientResponse() { - return {}; -} -exports.MsgUpgradeClientResponse = { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpgradeClientResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpgradeClientResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpgradeClientResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgUpgradeClientResponse", - value: exports.MsgUpgradeClientResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpgradeClientResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpgradeClientResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", - value: exports.MsgUpgradeClientResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviour() { - return { - clientId: "", - misbehaviour: undefined, - signer: "" - }; -} -exports.MsgSubmitMisbehaviour = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.clientId !== "") { - writer.uint32(10).string(message.clientId); - } - if (message.misbehaviour !== undefined) { - any_1.Any.encode(message.misbehaviour, writer.uint32(18).fork()).ldelim(); - } - if (message.signer !== "") { - writer.uint32(26).string(message.signer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviour(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.misbehaviour = any_1.Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitMisbehaviour(); - message.clientId = object.clientId ?? ""; - message.misbehaviour = object.misbehaviour !== undefined && object.misbehaviour !== null ? any_1.Any.fromPartial(object.misbehaviour) : undefined; - message.signer = object.signer ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitMisbehaviour(); - if (object.client_id !== undefined && object.client_id !== null) { - message.clientId = object.client_id; - } - if (object.misbehaviour !== undefined && object.misbehaviour !== null) { - message.misbehaviour = any_1.Any.fromAmino(object.misbehaviour); - } - if (object.signer !== undefined && object.signer !== null) { - message.signer = object.signer; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.client_id = message.clientId === "" ? undefined : message.clientId; - obj.misbehaviour = message.misbehaviour ? any_1.Any.toAmino(message.misbehaviour) : undefined; - obj.signer = message.signer === "" ? undefined : message.signer; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitMisbehaviour.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviour", - value: exports.MsgSubmitMisbehaviour.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitMisbehaviour.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitMisbehaviour.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: exports.MsgSubmitMisbehaviour.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitMisbehaviourResponse() { - return {}; -} -exports.MsgSubmitMisbehaviourResponse = { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitMisbehaviourResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSubmitMisbehaviourResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitMisbehaviourResponse.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "cosmos-sdk/MsgSubmitMisbehaviourResponse", - value: exports.MsgSubmitMisbehaviourResponse.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSubmitMisbehaviourResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitMisbehaviourResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", - value: exports.MsgSubmitMisbehaviourResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts b/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts deleted file mode 100644 index 43f51b57..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.registry.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: Uint8Array; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: Uint8Array; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: Uint8Array; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: MsgCreateClient; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: MsgUpdateClient; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: MsgUpgradeClient; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: MsgSubmitMisbehaviour; - }; - }; - fromPartial: { - createClient(value: MsgCreateClient): { - typeUrl: string; - value: MsgCreateClient; - }; - updateClient(value: MsgUpdateClient): { - typeUrl: string; - value: MsgUpdateClient; - }; - upgradeClient(value: MsgUpgradeClient): { - typeUrl: string; - value: MsgUpgradeClient; - }; - submitMisbehaviour(value: MsgSubmitMisbehaviour): { - typeUrl: string; - value: MsgSubmitMisbehaviour; - }; - }; -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.registry.js b/packages/api/dist/ibc/core/client/v1/tx.registry.js deleted file mode 100644 index 7fc4fcf5..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.registry.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/ibc.core.client.v1.MsgCreateClient", tx_1.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", tx_1.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", tx_1.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", tx_1.MsgSubmitMisbehaviour]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: tx_1.MsgCreateClient.encode(value).finish() - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: tx_1.MsgUpdateClient.encode(value).finish() - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: tx_1.MsgUpgradeClient.encode(value).finish() - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: tx_1.MsgSubmitMisbehaviour.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value - }; - } - }, - fromPartial: { - createClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgCreateClient", - value: tx_1.MsgCreateClient.fromPartial(value) - }; - }, - updateClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpdateClient", - value: tx_1.MsgUpdateClient.fromPartial(value) - }; - }, - upgradeClient(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", - value: tx_1.MsgUpgradeClient.fromPartial(value) - }; - }, - submitMisbehaviour(value) { - return { - typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", - value: tx_1.MsgSubmitMisbehaviour.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts deleted file mode 100644 index d49d180d..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; -/** Msg defines the ibc/client Msg service. */ -export interface Msg { - /** CreateClient defines a rpc handler method for MsgCreateClient. */ - createClient(request: MsgCreateClient): Promise; - /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ - updateClient(request: MsgUpdateClient): Promise; - /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ - upgradeClient(request: MsgUpgradeClient): Promise; - /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClient(request: MsgCreateClient): Promise; - updateClient(request: MsgUpdateClient): Promise; - upgradeClient(request: MsgUpgradeClient): Promise; - submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; -} diff --git a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js b/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js deleted file mode 100644 index 6840a4a2..00000000 --- a/packages/api/dist/ibc/core/client/v1/tx.rpc.msg.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClient = this.createClient.bind(this); - this.updateClient = this.updateClient.bind(this); - this.upgradeClient = this.upgradeClient.bind(this); - this.submitMisbehaviour = this.submitMisbehaviour.bind(this); - } - createClient(request) { - const data = tx_1.MsgCreateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); - return promise.then(data => tx_1.MsgCreateClientResponse.decode(new binary_1.BinaryReader(data))); - } - updateClient(request) { - const data = tx_1.MsgUpdateClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); - return promise.then(data => tx_1.MsgUpdateClientResponse.decode(new binary_1.BinaryReader(data))); - } - upgradeClient(request) { - const data = tx_1.MsgUpgradeClient.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); - return promise.then(data => tx_1.MsgUpgradeClientResponse.decode(new binary_1.BinaryReader(data))); - } - submitMisbehaviour(request) { - const data = tx_1.MsgSubmitMisbehaviour.encode(request).finish(); - const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); - return promise.then(data => tx_1.MsgSubmitMisbehaviourResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/ibc/lcd.d.ts b/packages/api/dist/ibc/lcd.d.ts deleted file mode 100644 index bab8b3c1..00000000 --- a/packages/api/dist/ibc/lcd.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - ibc: { - applications: { - transfer: { - v1: import("./applications/transfer/v1/query.lcd").LCDQueryClient; - }; - }; - core: { - client: { - v1: import("./core/client/v1/query.lcd").LCDQueryClient; - }; - }; - }; -}>; diff --git a/packages/api/dist/ibc/lcd.js b/packages/api/dist/ibc/lcd.js deleted file mode 100644 index 2e03e034..00000000 --- a/packages/api/dist/ibc/lcd.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createLCDClient = void 0; -//@ts-nocheck -const lcd_1 = require("@cosmology/lcd"); -const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new lcd_1.LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.lcd")))).LCDQueryClient({ - requestClient - }), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.lcd")))).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - core: { - client: { - v1: new (await Promise.resolve().then(() => __importStar(require("./core/client/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - } - } - }; -}; -exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/ibc/rpc.query.d.ts b/packages/api/dist/ibc/rpc.query.d.ts deleted file mode 100644 index d7b799db..00000000 --- a/packages/api/dist/ibc/rpc.query.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; - }; - }; - }; - ibc: { - applications: { - transfer: { - v1: { - denomTrace(request: import("./applications/transfer/v1/query").QueryDenomTraceRequest): Promise; - denomTraces(request?: import("./applications/transfer/v1/query").QueryDenomTracesRequest): Promise; - params(request?: import("./applications/transfer/v1/query").QueryParamsRequest): Promise; - denomHash(request: import("./applications/transfer/v1/query").QueryDenomHashRequest): Promise; - escrowAddress(request: import("./applications/transfer/v1/query").QueryEscrowAddressRequest): Promise; - }; - }; - }; - core: { - client: { - v1: { - clientState(request: import("./core/client/v1/query").QueryClientStateRequest): Promise; - clientStates(request?: import("./core/client/v1/query").QueryClientStatesRequest): Promise; - consensusState(request: import("./core/client/v1/query").QueryConsensusStateRequest): Promise; - consensusStates(request: import("./core/client/v1/query").QueryConsensusStatesRequest): Promise; - consensusStateHeights(request: import("./core/client/v1/query").QueryConsensusStateHeightsRequest): Promise; - clientStatus(request: import("./core/client/v1/query").QueryClientStatusRequest): Promise; - clientParams(request?: import("./core/client/v1/query").QueryClientParamsRequest): Promise; - upgradedClientState(request?: import("./core/client/v1/query").QueryUpgradedClientStateRequest): Promise; - upgradedConsensusState(request?: import("./core/client/v1/query").QueryUpgradedConsensusStateRequest): Promise; - }; - }; - }; - }; -}>; diff --git a/packages/api/dist/ibc/rpc.query.js b/packages/api/dist/ibc/rpc.query.js deleted file mode 100644 index 68cf2fd2..00000000 --- a/packages/api/dist/ibc/rpc.query.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCQueryClient = void 0; -//@ts-nocheck -const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); -const stargate_1 = require("@cosmjs/stargate"); -const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); - const client = new stargate_1.QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - gov: { - v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - group: { - v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - } - }, - ibc: { - applications: { - transfer: { - v1: (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/query.rpc.Query")))).createRpcQueryExtension(client) - } - }, - core: { - client: { - v1: (await Promise.resolve().then(() => __importStar(require("./core/client/v1/query.rpc.Query")))).createRpcQueryExtension(client) - } - } - } - }; -}; -exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/ibc/rpc.tx.d.ts b/packages/api/dist/ibc/rpc.tx.d.ts deleted file mode 100644 index 38e47694..00000000 --- a/packages/api/dist/ibc/rpc.tx.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - ibc: { - applications: { - transfer: { - v1: import("./applications/transfer/v1/tx.rpc.msg").MsgClientImpl; - }; - }; - core: { - client: { - v1: import("./core/client/v1/tx.rpc.msg").MsgClientImpl; - }; - }; - }; -}>; diff --git a/packages/api/dist/ibc/rpc.tx.js b/packages/api/dist/ibc/rpc.tx.js deleted file mode 100644 index 28a9d986..00000000 --- a/packages/api/dist/ibc/rpc.tx.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCMsgClient = void 0; -const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - }, - ibc: { - applications: { - transfer: { - v1: new (await Promise.resolve().then(() => __importStar(require("./applications/transfer/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - }, - core: { - client: { - v1: new (await Promise.resolve().then(() => __importStar(require("./core/client/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - } - } -}); -exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/index.d.ts b/packages/api/dist/index.d.ts deleted file mode 100644 index 7e24dd2b..00000000 --- a/packages/api/dist/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ -export * from "./amino/bundle"; -export * from "./cosmos_proto/bundle"; -export * from "./cosmos/bundle"; -export * from "./cosmos/client"; -export * from "./gogoproto/bundle"; -export * from "./ibc/bundle"; -export * from "./ibc/client"; -export * from "./regen/bundle"; -export * from "./regen/client"; -export * from "./tendermint/bundle"; -export * from "./google/bundle"; -export * from "./varint"; -export * from "./utf8"; -export * from "./binary"; diff --git a/packages/api/dist/index.js b/packages/api/dist/index.js deleted file mode 100644 index 191de442..00000000 --- a/packages/api/dist/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -//@ts-nocheck -/** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 - * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain - * and run the transpile command or yarn proto command to regenerate this bundle. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./amino/bundle"), exports); -__exportStar(require("./cosmos_proto/bundle"), exports); -__exportStar(require("./cosmos/bundle"), exports); -__exportStar(require("./cosmos/client"), exports); -__exportStar(require("./gogoproto/bundle"), exports); -__exportStar(require("./ibc/bundle"), exports); -__exportStar(require("./ibc/client"), exports); -__exportStar(require("./regen/bundle"), exports); -__exportStar(require("./regen/client"), exports); -__exportStar(require("./tendermint/bundle"), exports); -__exportStar(require("./google/bundle"), exports); -__exportStar(require("./varint"), exports); -__exportStar(require("./utf8"), exports); -__exportStar(require("./binary"), exports); diff --git a/packages/api/dist/package.json b/packages/api/dist/package.json deleted file mode 100644 index 6f89275e..00000000 --- a/packages/api/dist/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@regen-network/api", - "version": "v1.0.0-alpha5", - "author": "admin@regen.network", - "description": "Javascript API for Regen Ledger", - "main": "index.js", - "module": "esm/index.js", - "types": "index.d.ts", - "license": "Apache-2.0", - "homepage": "https://github.com/regen-network/api", - "repository": { - "type": "git", - "url": "https://github.com/regen-network/regen-js" - }, - "bugs": { - "url": "https://github.com/regen-network/regen-js/issues" - }, - "publishConfig": { - "access": "public", - "directory": "dist" - }, - "scripts": { - "copy": "copyfiles -f ../../LICENSE README.md package.json dist", - "clean": "rimraf dist/**", - "prepare": "npm run build", - "codegen": "ts-node scripts/codegen.ts", - "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", - "lint": "eslint . --fix", - "test": "jest", - "test:watch": "jest --watch" - }, - "devDependencies": { - "@cosmology/telescope": "^1.5.2" - }, - "dependencies": { - "@cosmjs/encoding": "0.31.0", - "@cosmjs/math": "0.31.0", - "@cosmjs/amino": "0.31.0", - "@cosmjs/proto-signing": "0.31.0", - "@cosmjs/stargate": "0.31.0" - }, - "keywords": [] -} \ No newline at end of file diff --git a/packages/api/dist/regen/bundle.d.ts b/packages/api/dist/regen/bundle.d.ts deleted file mode 100644 index ca23880b..00000000 --- a/packages/api/dist/regen/bundle.d.ts +++ /dev/null @@ -1,5330 +0,0 @@ -import * as _76 from "./data/v1/events"; -import * as _77 from "./data/v1/query"; -import * as _78 from "./data/v1/state"; -import * as _79 from "./data/v1/tx"; -import * as _80 from "./data/v1/types"; -import * as _81 from "./ecocredit/basket/v1/events"; -import * as _82 from "./ecocredit/basket/v1/query"; -import * as _83 from "./ecocredit/basket/v1/state"; -import * as _84 from "./ecocredit/basket/v1/tx"; -import * as _85 from "./ecocredit/basket/v1/types"; -import * as _86 from "./ecocredit/marketplace/v1/events"; -import * as _87 from "./ecocredit/marketplace/v1/query"; -import * as _88 from "./ecocredit/marketplace/v1/state"; -import * as _89 from "./ecocredit/marketplace/v1/tx"; -import * as _90 from "./ecocredit/marketplace/v1/types"; -import * as _91 from "./ecocredit/orderbook/v1alpha1/memory"; -import * as _92 from "./ecocredit/v1/events"; -import * as _93 from "./ecocredit/v1/query"; -import * as _94 from "./ecocredit/v1/state"; -import * as _95 from "./ecocredit/v1/tx"; -import * as _96 from "./ecocredit/v1/types"; -import * as _97 from "./ecocredit/v1alpha1/events"; -import * as _98 from "./ecocredit/v1alpha1/genesis"; -import * as _99 from "./ecocredit/v1alpha1/query"; -import * as _100 from "./ecocredit/v1alpha1/tx"; -import * as _101 from "./ecocredit/v1alpha1/types"; -import * as _102 from "./intertx/v1/query"; -import * as _103 from "./intertx/v1/tx"; -import * as _199 from "./data/v1/query.lcd"; -import * as _200 from "./ecocredit/basket/v1/query.lcd"; -import * as _201 from "./ecocredit/marketplace/v1/query.lcd"; -import * as _202 from "./ecocredit/v1/query.lcd"; -import * as _203 from "./ecocredit/v1alpha1/query.lcd"; -import * as _204 from "./intertx/v1/query.lcd"; -import * as _205 from "./data/v1/query.rpc.Query"; -import * as _206 from "./ecocredit/basket/v1/query.rpc.Query"; -import * as _207 from "./ecocredit/marketplace/v1/query.rpc.Query"; -import * as _208 from "./ecocredit/v1/query.rpc.Query"; -import * as _209 from "./ecocredit/v1alpha1/query.rpc.Query"; -import * as _210 from "./intertx/v1/query.rpc.Query"; -import * as _211 from "./data/v1/tx.rpc.msg"; -import * as _212 from "./ecocredit/basket/v1/tx.rpc.msg"; -import * as _213 from "./ecocredit/marketplace/v1/tx.rpc.msg"; -import * as _214 from "./ecocredit/v1/tx.rpc.msg"; -import * as _215 from "./ecocredit/v1alpha1/tx.rpc.msg"; -import * as _216 from "./intertx/v1/tx.rpc.msg"; -export declare namespace regen { - namespace data { - const v1: { - MsgClientImpl: typeof _211.MsgClientImpl; - QueryClientImpl: typeof _205.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - anchorByIRI(request: _77.QueryAnchorByIRIRequest): Promise<_77.QueryAnchorByIRIResponse>; - anchorByHash(request: _77.QueryAnchorByHashRequest): Promise<_77.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _77.QueryAttestationsByAttestorRequest): Promise<_77.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _77.QueryAttestationsByIRIRequest): Promise<_77.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _77.QueryAttestationsByHashRequest): Promise<_77.QueryAttestationsByHashResponse>; - resolver(request: _77.QueryResolverRequest): Promise<_77.QueryResolverResponse>; - resolversByIRI(request: _77.QueryResolversByIRIRequest): Promise<_77.QueryResolversByIRIResponse>; - resolversByHash(request: _77.QueryResolversByHashRequest): Promise<_77.QueryResolversByHashResponse>; - resolversByURL(request: _77.QueryResolversByURLRequest): Promise<_77.QueryResolversByURLResponse>; - convertIRIToHash(request: _77.ConvertIRIToHashRequest): Promise<_77.ConvertIRIToHashResponse>; - convertHashToIRI(request: _77.ConvertHashToIRIRequest): Promise<_77.ConvertHashToIRIResponse>; - }; - LCDQueryClient: typeof _199.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - anchor(value: _79.MsgAnchor): { - typeUrl: string; - value: Uint8Array; - }; - attest(value: _79.MsgAttest): { - typeUrl: string; - value: Uint8Array; - }; - defineResolver(value: _79.MsgDefineResolver): { - typeUrl: string; - value: Uint8Array; - }; - registerResolver(value: _79.MsgRegisterResolver): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - anchor(value: _79.MsgAnchor): { - typeUrl: string; - value: _79.MsgAnchor; - }; - attest(value: _79.MsgAttest): { - typeUrl: string; - value: _79.MsgAttest; - }; - defineResolver(value: _79.MsgDefineResolver): { - typeUrl: string; - value: _79.MsgDefineResolver; - }; - registerResolver(value: _79.MsgRegisterResolver): { - typeUrl: string; - value: _79.MsgRegisterResolver; - }; - }; - fromPartial: { - anchor(value: _79.MsgAnchor): { - typeUrl: string; - value: _79.MsgAnchor; - }; - attest(value: _79.MsgAttest): { - typeUrl: string; - value: _79.MsgAttest; - }; - defineResolver(value: _79.MsgDefineResolver): { - typeUrl: string; - value: _79.MsgDefineResolver; - }; - registerResolver(value: _79.MsgRegisterResolver): { - typeUrl: string; - value: _79.MsgRegisterResolver; - }; - }; - }; - AminoConverter: { - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: _79.MsgAnchor) => _79.MsgAnchorAmino; - fromAmino: (object: _79.MsgAnchorAmino) => _79.MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: _79.MsgAttest) => _79.MsgAttestAmino; - fromAmino: (object: _79.MsgAttestAmino) => _79.MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: _79.MsgDefineResolver) => _79.MsgDefineResolverAmino; - fromAmino: (object: _79.MsgDefineResolverAmino) => _79.MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: _79.MsgRegisterResolver) => _79.MsgRegisterResolverAmino; - fromAmino: (object: _79.MsgRegisterResolverAmino) => _79.MsgRegisterResolver; - }; - }; - digestAlgorithmFromJSON(object: any): _80.DigestAlgorithm; - digestAlgorithmToJSON(object: _80.DigestAlgorithm): string; - rawMediaTypeFromJSON(object: any): _80.RawMediaType; - rawMediaTypeToJSON(object: _80.RawMediaType): string; - graphCanonicalizationAlgorithmFromJSON(object: any): _80.GraphCanonicalizationAlgorithm; - graphCanonicalizationAlgorithmToJSON(object: _80.GraphCanonicalizationAlgorithm): string; - graphMerkleTreeFromJSON(object: any): _80.GraphMerkleTree; - graphMerkleTreeToJSON(object: _80.GraphMerkleTree): string; - DigestAlgorithm: typeof _80.DigestAlgorithm; - DigestAlgorithmSDKType: typeof _80.DigestAlgorithm; - DigestAlgorithmAmino: typeof _80.DigestAlgorithm; - RawMediaType: typeof _80.RawMediaType; - RawMediaTypeSDKType: typeof _80.RawMediaType; - RawMediaTypeAmino: typeof _80.RawMediaType; - GraphCanonicalizationAlgorithm: typeof _80.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmSDKType: typeof _80.GraphCanonicalizationAlgorithm; - GraphCanonicalizationAlgorithmAmino: typeof _80.GraphCanonicalizationAlgorithm; - GraphMerkleTree: typeof _80.GraphMerkleTree; - GraphMerkleTreeSDKType: typeof _80.GraphMerkleTree; - GraphMerkleTreeAmino: typeof _80.GraphMerkleTree; - ContentHash: { - typeUrl: string; - encode(message: _80.ContentHash, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash; - fromPartial(object: Partial<_80.ContentHash>): _80.ContentHash; - fromAmino(object: _80.ContentHashAmino): _80.ContentHash; - toAmino(message: _80.ContentHash): _80.ContentHashAmino; - fromAminoMsg(object: _80.ContentHashAminoMsg): _80.ContentHash; - fromProtoMsg(message: _80.ContentHashProtoMsg): _80.ContentHash; - toProto(message: _80.ContentHash): Uint8Array; - toProtoMsg(message: _80.ContentHash): _80.ContentHashProtoMsg; - }; - ContentHash_Raw: { - typeUrl: string; - encode(message: _80.ContentHash_Raw, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash_Raw; - fromPartial(object: Partial<_80.ContentHash_Raw>): _80.ContentHash_Raw; - fromAmino(object: _80.ContentHash_RawAmino): _80.ContentHash_Raw; - toAmino(message: _80.ContentHash_Raw): _80.ContentHash_RawAmino; - fromAminoMsg(object: _80.ContentHash_RawAminoMsg): _80.ContentHash_Raw; - fromProtoMsg(message: _80.ContentHash_RawProtoMsg): _80.ContentHash_Raw; - toProto(message: _80.ContentHash_Raw): Uint8Array; - toProtoMsg(message: _80.ContentHash_Raw): _80.ContentHash_RawProtoMsg; - }; - ContentHash_Graph: { - typeUrl: string; - encode(message: _80.ContentHash_Graph, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHash_Graph; - fromPartial(object: Partial<_80.ContentHash_Graph>): _80.ContentHash_Graph; - fromAmino(object: _80.ContentHash_GraphAmino): _80.ContentHash_Graph; - toAmino(message: _80.ContentHash_Graph): _80.ContentHash_GraphAmino; - fromAminoMsg(object: _80.ContentHash_GraphAminoMsg): _80.ContentHash_Graph; - fromProtoMsg(message: _80.ContentHash_GraphProtoMsg): _80.ContentHash_Graph; - toProto(message: _80.ContentHash_Graph): Uint8Array; - toProtoMsg(message: _80.ContentHash_Graph): _80.ContentHash_GraphProtoMsg; - }; - ContentHashes: { - typeUrl: string; - encode(message: _80.ContentHashes, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _80.ContentHashes; - fromPartial(object: Partial<_80.ContentHashes>): _80.ContentHashes; - fromAmino(object: _80.ContentHashesAmino): _80.ContentHashes; - toAmino(message: _80.ContentHashes): _80.ContentHashesAmino; - fromAminoMsg(object: _80.ContentHashesAminoMsg): _80.ContentHashes; - fromProtoMsg(message: _80.ContentHashesProtoMsg): _80.ContentHashes; - toProto(message: _80.ContentHashes): Uint8Array; - toProtoMsg(message: _80.ContentHashes): _80.ContentHashesProtoMsg; - }; - MsgAnchor: { - typeUrl: string; - encode(message: _79.MsgAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAnchor; - fromPartial(object: Partial<_79.MsgAnchor>): _79.MsgAnchor; - fromAmino(object: _79.MsgAnchorAmino): _79.MsgAnchor; - toAmino(message: _79.MsgAnchor): _79.MsgAnchorAmino; - fromAminoMsg(object: _79.MsgAnchorAminoMsg): _79.MsgAnchor; - toAminoMsg(message: _79.MsgAnchor): _79.MsgAnchorAminoMsg; - fromProtoMsg(message: _79.MsgAnchorProtoMsg): _79.MsgAnchor; - toProto(message: _79.MsgAnchor): Uint8Array; - toProtoMsg(message: _79.MsgAnchor): _79.MsgAnchorProtoMsg; - }; - MsgAnchorResponse: { - typeUrl: string; - encode(message: _79.MsgAnchorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAnchorResponse; - fromPartial(object: Partial<_79.MsgAnchorResponse>): _79.MsgAnchorResponse; - fromAmino(object: _79.MsgAnchorResponseAmino): _79.MsgAnchorResponse; - toAmino(message: _79.MsgAnchorResponse): _79.MsgAnchorResponseAmino; - fromAminoMsg(object: _79.MsgAnchorResponseAminoMsg): _79.MsgAnchorResponse; - fromProtoMsg(message: _79.MsgAnchorResponseProtoMsg): _79.MsgAnchorResponse; - toProto(message: _79.MsgAnchorResponse): Uint8Array; - toProtoMsg(message: _79.MsgAnchorResponse): _79.MsgAnchorResponseProtoMsg; - }; - MsgAttest: { - typeUrl: string; - encode(message: _79.MsgAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAttest; - fromPartial(object: Partial<_79.MsgAttest>): _79.MsgAttest; - fromAmino(object: _79.MsgAttestAmino): _79.MsgAttest; - toAmino(message: _79.MsgAttest): _79.MsgAttestAmino; - fromAminoMsg(object: _79.MsgAttestAminoMsg): _79.MsgAttest; - toAminoMsg(message: _79.MsgAttest): _79.MsgAttestAminoMsg; - fromProtoMsg(message: _79.MsgAttestProtoMsg): _79.MsgAttest; - toProto(message: _79.MsgAttest): Uint8Array; - toProtoMsg(message: _79.MsgAttest): _79.MsgAttestProtoMsg; - }; - MsgAttestResponse: { - typeUrl: string; - encode(message: _79.MsgAttestResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgAttestResponse; - fromPartial(object: Partial<_79.MsgAttestResponse>): _79.MsgAttestResponse; - fromAmino(object: _79.MsgAttestResponseAmino): _79.MsgAttestResponse; - toAmino(message: _79.MsgAttestResponse): _79.MsgAttestResponseAmino; - fromAminoMsg(object: _79.MsgAttestResponseAminoMsg): _79.MsgAttestResponse; - fromProtoMsg(message: _79.MsgAttestResponseProtoMsg): _79.MsgAttestResponse; - toProto(message: _79.MsgAttestResponse): Uint8Array; - toProtoMsg(message: _79.MsgAttestResponse): _79.MsgAttestResponseProtoMsg; - }; - MsgDefineResolver: { - typeUrl: string; - encode(message: _79.MsgDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgDefineResolver; - fromPartial(object: Partial<_79.MsgDefineResolver>): _79.MsgDefineResolver; - fromAmino(object: _79.MsgDefineResolverAmino): _79.MsgDefineResolver; - toAmino(message: _79.MsgDefineResolver): _79.MsgDefineResolverAmino; - fromAminoMsg(object: _79.MsgDefineResolverAminoMsg): _79.MsgDefineResolver; - toAminoMsg(message: _79.MsgDefineResolver): _79.MsgDefineResolverAminoMsg; - fromProtoMsg(message: _79.MsgDefineResolverProtoMsg): _79.MsgDefineResolver; - toProto(message: _79.MsgDefineResolver): Uint8Array; - toProtoMsg(message: _79.MsgDefineResolver): _79.MsgDefineResolverProtoMsg; - }; - MsgDefineResolverResponse: { - typeUrl: string; - encode(message: _79.MsgDefineResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgDefineResolverResponse; - fromPartial(object: Partial<_79.MsgDefineResolverResponse>): _79.MsgDefineResolverResponse; - fromAmino(object: _79.MsgDefineResolverResponseAmino): _79.MsgDefineResolverResponse; - toAmino(message: _79.MsgDefineResolverResponse): _79.MsgDefineResolverResponseAmino; - fromAminoMsg(object: _79.MsgDefineResolverResponseAminoMsg): _79.MsgDefineResolverResponse; - fromProtoMsg(message: _79.MsgDefineResolverResponseProtoMsg): _79.MsgDefineResolverResponse; - toProto(message: _79.MsgDefineResolverResponse): Uint8Array; - toProtoMsg(message: _79.MsgDefineResolverResponse): _79.MsgDefineResolverResponseProtoMsg; - }; - MsgRegisterResolver: { - typeUrl: string; - encode(message: _79.MsgRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgRegisterResolver; - fromPartial(object: Partial<_79.MsgRegisterResolver>): _79.MsgRegisterResolver; - fromAmino(object: _79.MsgRegisterResolverAmino): _79.MsgRegisterResolver; - toAmino(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverAmino; - fromAminoMsg(object: _79.MsgRegisterResolverAminoMsg): _79.MsgRegisterResolver; - toAminoMsg(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverAminoMsg; - fromProtoMsg(message: _79.MsgRegisterResolverProtoMsg): _79.MsgRegisterResolver; - toProto(message: _79.MsgRegisterResolver): Uint8Array; - toProtoMsg(message: _79.MsgRegisterResolver): _79.MsgRegisterResolverProtoMsg; - }; - MsgRegisterResolverResponse: { - typeUrl: string; - encode(_: _79.MsgRegisterResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _79.MsgRegisterResolverResponse; - fromPartial(_: Partial<_79.MsgRegisterResolverResponse>): _79.MsgRegisterResolverResponse; - fromAmino(_: _79.MsgRegisterResolverResponseAmino): _79.MsgRegisterResolverResponse; - toAmino(_: _79.MsgRegisterResolverResponse): _79.MsgRegisterResolverResponseAmino; - fromAminoMsg(object: _79.MsgRegisterResolverResponseAminoMsg): _79.MsgRegisterResolverResponse; - fromProtoMsg(message: _79.MsgRegisterResolverResponseProtoMsg): _79.MsgRegisterResolverResponse; - toProto(message: _79.MsgRegisterResolverResponse): Uint8Array; - toProtoMsg(message: _79.MsgRegisterResolverResponse): _79.MsgRegisterResolverResponseProtoMsg; - }; - DataID: { - typeUrl: string; - encode(message: _78.DataID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataID; - fromPartial(object: Partial<_78.DataID>): _78.DataID; - fromAmino(object: _78.DataIDAmino): _78.DataID; - toAmino(message: _78.DataID): _78.DataIDAmino; - fromAminoMsg(object: _78.DataIDAminoMsg): _78.DataID; - fromProtoMsg(message: _78.DataIDProtoMsg): _78.DataID; - toProto(message: _78.DataID): Uint8Array; - toProtoMsg(message: _78.DataID): _78.DataIDProtoMsg; - }; - DataAnchor: { - typeUrl: string; - encode(message: _78.DataAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataAnchor; - fromPartial(object: Partial<_78.DataAnchor>): _78.DataAnchor; - fromAmino(object: _78.DataAnchorAmino): _78.DataAnchor; - toAmino(message: _78.DataAnchor): _78.DataAnchorAmino; - fromAminoMsg(object: _78.DataAnchorAminoMsg): _78.DataAnchor; - fromProtoMsg(message: _78.DataAnchorProtoMsg): _78.DataAnchor; - toProto(message: _78.DataAnchor): Uint8Array; - toProtoMsg(message: _78.DataAnchor): _78.DataAnchorProtoMsg; - }; - DataAttestor: { - typeUrl: string; - encode(message: _78.DataAttestor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataAttestor; - fromPartial(object: Partial<_78.DataAttestor>): _78.DataAttestor; - fromAmino(object: _78.DataAttestorAmino): _78.DataAttestor; - toAmino(message: _78.DataAttestor): _78.DataAttestorAmino; - fromAminoMsg(object: _78.DataAttestorAminoMsg): _78.DataAttestor; - fromProtoMsg(message: _78.DataAttestorProtoMsg): _78.DataAttestor; - toProto(message: _78.DataAttestor): Uint8Array; - toProtoMsg(message: _78.DataAttestor): _78.DataAttestorProtoMsg; - }; - Resolver: { - typeUrl: string; - encode(message: _78.Resolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.Resolver; - fromPartial(object: Partial<_78.Resolver>): _78.Resolver; - fromAmino(object: _78.ResolverAmino): _78.Resolver; - toAmino(message: _78.Resolver): _78.ResolverAmino; - fromAminoMsg(object: _78.ResolverAminoMsg): _78.Resolver; - fromProtoMsg(message: _78.ResolverProtoMsg): _78.Resolver; - toProto(message: _78.Resolver): Uint8Array; - toProtoMsg(message: _78.Resolver): _78.ResolverProtoMsg; - }; - DataResolver: { - typeUrl: string; - encode(message: _78.DataResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _78.DataResolver; - fromPartial(object: Partial<_78.DataResolver>): _78.DataResolver; - fromAmino(object: _78.DataResolverAmino): _78.DataResolver; - toAmino(message: _78.DataResolver): _78.DataResolverAmino; - fromAminoMsg(object: _78.DataResolverAminoMsg): _78.DataResolver; - fromProtoMsg(message: _78.DataResolverProtoMsg): _78.DataResolver; - toProto(message: _78.DataResolver): Uint8Array; - toProtoMsg(message: _78.DataResolver): _78.DataResolverProtoMsg; - }; - QueryAnchorByIRIRequest: { - typeUrl: string; - encode(message: _77.QueryAnchorByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByIRIRequest; - fromPartial(object: Partial<_77.QueryAnchorByIRIRequest>): _77.QueryAnchorByIRIRequest; - fromAmino(object: _77.QueryAnchorByIRIRequestAmino): _77.QueryAnchorByIRIRequest; - toAmino(message: _77.QueryAnchorByIRIRequest): _77.QueryAnchorByIRIRequestAmino; - fromAminoMsg(object: _77.QueryAnchorByIRIRequestAminoMsg): _77.QueryAnchorByIRIRequest; - fromProtoMsg(message: _77.QueryAnchorByIRIRequestProtoMsg): _77.QueryAnchorByIRIRequest; - toProto(message: _77.QueryAnchorByIRIRequest): Uint8Array; - toProtoMsg(message: _77.QueryAnchorByIRIRequest): _77.QueryAnchorByIRIRequestProtoMsg; - }; - QueryAnchorByIRIResponse: { - typeUrl: string; - encode(message: _77.QueryAnchorByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByIRIResponse; - fromPartial(object: Partial<_77.QueryAnchorByIRIResponse>): _77.QueryAnchorByIRIResponse; - fromAmino(object: _77.QueryAnchorByIRIResponseAmino): _77.QueryAnchorByIRIResponse; - toAmino(message: _77.QueryAnchorByIRIResponse): _77.QueryAnchorByIRIResponseAmino; - fromAminoMsg(object: _77.QueryAnchorByIRIResponseAminoMsg): _77.QueryAnchorByIRIResponse; - fromProtoMsg(message: _77.QueryAnchorByIRIResponseProtoMsg): _77.QueryAnchorByIRIResponse; - toProto(message: _77.QueryAnchorByIRIResponse): Uint8Array; - toProtoMsg(message: _77.QueryAnchorByIRIResponse): _77.QueryAnchorByIRIResponseProtoMsg; - }; - QueryAnchorByHashRequest: { - typeUrl: string; - encode(message: _77.QueryAnchorByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByHashRequest; - fromPartial(object: Partial<_77.QueryAnchorByHashRequest>): _77.QueryAnchorByHashRequest; - fromAmino(object: _77.QueryAnchorByHashRequestAmino): _77.QueryAnchorByHashRequest; - toAmino(message: _77.QueryAnchorByHashRequest): _77.QueryAnchorByHashRequestAmino; - fromAminoMsg(object: _77.QueryAnchorByHashRequestAminoMsg): _77.QueryAnchorByHashRequest; - fromProtoMsg(message: _77.QueryAnchorByHashRequestProtoMsg): _77.QueryAnchorByHashRequest; - toProto(message: _77.QueryAnchorByHashRequest): Uint8Array; - toProtoMsg(message: _77.QueryAnchorByHashRequest): _77.QueryAnchorByHashRequestProtoMsg; - }; - QueryAnchorByHashResponse: { - typeUrl: string; - encode(message: _77.QueryAnchorByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAnchorByHashResponse; - fromPartial(object: Partial<_77.QueryAnchorByHashResponse>): _77.QueryAnchorByHashResponse; - fromAmino(object: _77.QueryAnchorByHashResponseAmino): _77.QueryAnchorByHashResponse; - toAmino(message: _77.QueryAnchorByHashResponse): _77.QueryAnchorByHashResponseAmino; - fromAminoMsg(object: _77.QueryAnchorByHashResponseAminoMsg): _77.QueryAnchorByHashResponse; - fromProtoMsg(message: _77.QueryAnchorByHashResponseProtoMsg): _77.QueryAnchorByHashResponse; - toProto(message: _77.QueryAnchorByHashResponse): Uint8Array; - toProtoMsg(message: _77.QueryAnchorByHashResponse): _77.QueryAnchorByHashResponseProtoMsg; - }; - QueryAttestationsByAttestorRequest: { - typeUrl: string; - encode(message: _77.QueryAttestationsByAttestorRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByAttestorRequest; - fromPartial(object: Partial<_77.QueryAttestationsByAttestorRequest>): _77.QueryAttestationsByAttestorRequest; - fromAmino(object: _77.QueryAttestationsByAttestorRequestAmino): _77.QueryAttestationsByAttestorRequest; - toAmino(message: _77.QueryAttestationsByAttestorRequest): _77.QueryAttestationsByAttestorRequestAmino; - fromAminoMsg(object: _77.QueryAttestationsByAttestorRequestAminoMsg): _77.QueryAttestationsByAttestorRequest; - fromProtoMsg(message: _77.QueryAttestationsByAttestorRequestProtoMsg): _77.QueryAttestationsByAttestorRequest; - toProto(message: _77.QueryAttestationsByAttestorRequest): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByAttestorRequest): _77.QueryAttestationsByAttestorRequestProtoMsg; - }; - QueryAttestationsByAttestorResponse: { - typeUrl: string; - encode(message: _77.QueryAttestationsByAttestorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByAttestorResponse; - fromPartial(object: Partial<_77.QueryAttestationsByAttestorResponse>): _77.QueryAttestationsByAttestorResponse; - fromAmino(object: _77.QueryAttestationsByAttestorResponseAmino): _77.QueryAttestationsByAttestorResponse; - toAmino(message: _77.QueryAttestationsByAttestorResponse): _77.QueryAttestationsByAttestorResponseAmino; - fromAminoMsg(object: _77.QueryAttestationsByAttestorResponseAminoMsg): _77.QueryAttestationsByAttestorResponse; - fromProtoMsg(message: _77.QueryAttestationsByAttestorResponseProtoMsg): _77.QueryAttestationsByAttestorResponse; - toProto(message: _77.QueryAttestationsByAttestorResponse): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByAttestorResponse): _77.QueryAttestationsByAttestorResponseProtoMsg; - }; - QueryAttestationsByIRIRequest: { - typeUrl: string; - encode(message: _77.QueryAttestationsByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByIRIRequest; - fromPartial(object: Partial<_77.QueryAttestationsByIRIRequest>): _77.QueryAttestationsByIRIRequest; - fromAmino(object: _77.QueryAttestationsByIRIRequestAmino): _77.QueryAttestationsByIRIRequest; - toAmino(message: _77.QueryAttestationsByIRIRequest): _77.QueryAttestationsByIRIRequestAmino; - fromAminoMsg(object: _77.QueryAttestationsByIRIRequestAminoMsg): _77.QueryAttestationsByIRIRequest; - fromProtoMsg(message: _77.QueryAttestationsByIRIRequestProtoMsg): _77.QueryAttestationsByIRIRequest; - toProto(message: _77.QueryAttestationsByIRIRequest): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByIRIRequest): _77.QueryAttestationsByIRIRequestProtoMsg; - }; - QueryAttestationsByIRIResponse: { - typeUrl: string; - encode(message: _77.QueryAttestationsByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByIRIResponse; - fromPartial(object: Partial<_77.QueryAttestationsByIRIResponse>): _77.QueryAttestationsByIRIResponse; - fromAmino(object: _77.QueryAttestationsByIRIResponseAmino): _77.QueryAttestationsByIRIResponse; - toAmino(message: _77.QueryAttestationsByIRIResponse): _77.QueryAttestationsByIRIResponseAmino; - fromAminoMsg(object: _77.QueryAttestationsByIRIResponseAminoMsg): _77.QueryAttestationsByIRIResponse; - fromProtoMsg(message: _77.QueryAttestationsByIRIResponseProtoMsg): _77.QueryAttestationsByIRIResponse; - toProto(message: _77.QueryAttestationsByIRIResponse): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByIRIResponse): _77.QueryAttestationsByIRIResponseProtoMsg; - }; - QueryAttestationsByHashRequest: { - typeUrl: string; - encode(message: _77.QueryAttestationsByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByHashRequest; - fromPartial(object: Partial<_77.QueryAttestationsByHashRequest>): _77.QueryAttestationsByHashRequest; - fromAmino(object: _77.QueryAttestationsByHashRequestAmino): _77.QueryAttestationsByHashRequest; - toAmino(message: _77.QueryAttestationsByHashRequest): _77.QueryAttestationsByHashRequestAmino; - fromAminoMsg(object: _77.QueryAttestationsByHashRequestAminoMsg): _77.QueryAttestationsByHashRequest; - fromProtoMsg(message: _77.QueryAttestationsByHashRequestProtoMsg): _77.QueryAttestationsByHashRequest; - toProto(message: _77.QueryAttestationsByHashRequest): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByHashRequest): _77.QueryAttestationsByHashRequestProtoMsg; - }; - QueryAttestationsByHashResponse: { - typeUrl: string; - encode(message: _77.QueryAttestationsByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryAttestationsByHashResponse; - fromPartial(object: Partial<_77.QueryAttestationsByHashResponse>): _77.QueryAttestationsByHashResponse; - fromAmino(object: _77.QueryAttestationsByHashResponseAmino): _77.QueryAttestationsByHashResponse; - toAmino(message: _77.QueryAttestationsByHashResponse): _77.QueryAttestationsByHashResponseAmino; - fromAminoMsg(object: _77.QueryAttestationsByHashResponseAminoMsg): _77.QueryAttestationsByHashResponse; - fromProtoMsg(message: _77.QueryAttestationsByHashResponseProtoMsg): _77.QueryAttestationsByHashResponse; - toProto(message: _77.QueryAttestationsByHashResponse): Uint8Array; - toProtoMsg(message: _77.QueryAttestationsByHashResponse): _77.QueryAttestationsByHashResponseProtoMsg; - }; - QueryResolverRequest: { - typeUrl: string; - encode(message: _77.QueryResolverRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolverRequest; - fromPartial(object: Partial<_77.QueryResolverRequest>): _77.QueryResolverRequest; - fromAmino(object: _77.QueryResolverRequestAmino): _77.QueryResolverRequest; - toAmino(message: _77.QueryResolverRequest): _77.QueryResolverRequestAmino; - fromAminoMsg(object: _77.QueryResolverRequestAminoMsg): _77.QueryResolverRequest; - fromProtoMsg(message: _77.QueryResolverRequestProtoMsg): _77.QueryResolverRequest; - toProto(message: _77.QueryResolverRequest): Uint8Array; - toProtoMsg(message: _77.QueryResolverRequest): _77.QueryResolverRequestProtoMsg; - }; - QueryResolverResponse: { - typeUrl: string; - encode(message: _77.QueryResolverResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolverResponse; - fromPartial(object: Partial<_77.QueryResolverResponse>): _77.QueryResolverResponse; - fromAmino(object: _77.QueryResolverResponseAmino): _77.QueryResolverResponse; - toAmino(message: _77.QueryResolverResponse): _77.QueryResolverResponseAmino; - fromAminoMsg(object: _77.QueryResolverResponseAminoMsg): _77.QueryResolverResponse; - fromProtoMsg(message: _77.QueryResolverResponseProtoMsg): _77.QueryResolverResponse; - toProto(message: _77.QueryResolverResponse): Uint8Array; - toProtoMsg(message: _77.QueryResolverResponse): _77.QueryResolverResponseProtoMsg; - }; - QueryResolversByIRIRequest: { - typeUrl: string; - encode(message: _77.QueryResolversByIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByIRIRequest; - fromPartial(object: Partial<_77.QueryResolversByIRIRequest>): _77.QueryResolversByIRIRequest; - fromAmino(object: _77.QueryResolversByIRIRequestAmino): _77.QueryResolversByIRIRequest; - toAmino(message: _77.QueryResolversByIRIRequest): _77.QueryResolversByIRIRequestAmino; - fromAminoMsg(object: _77.QueryResolversByIRIRequestAminoMsg): _77.QueryResolversByIRIRequest; - fromProtoMsg(message: _77.QueryResolversByIRIRequestProtoMsg): _77.QueryResolversByIRIRequest; - toProto(message: _77.QueryResolversByIRIRequest): Uint8Array; - toProtoMsg(message: _77.QueryResolversByIRIRequest): _77.QueryResolversByIRIRequestProtoMsg; - }; - QueryResolversByIRIResponse: { - typeUrl: string; - encode(message: _77.QueryResolversByIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByIRIResponse; - fromPartial(object: Partial<_77.QueryResolversByIRIResponse>): _77.QueryResolversByIRIResponse; - fromAmino(object: _77.QueryResolversByIRIResponseAmino): _77.QueryResolversByIRIResponse; - toAmino(message: _77.QueryResolversByIRIResponse): _77.QueryResolversByIRIResponseAmino; - fromAminoMsg(object: _77.QueryResolversByIRIResponseAminoMsg): _77.QueryResolversByIRIResponse; - fromProtoMsg(message: _77.QueryResolversByIRIResponseProtoMsg): _77.QueryResolversByIRIResponse; - toProto(message: _77.QueryResolversByIRIResponse): Uint8Array; - toProtoMsg(message: _77.QueryResolversByIRIResponse): _77.QueryResolversByIRIResponseProtoMsg; - }; - QueryResolversByHashRequest: { - typeUrl: string; - encode(message: _77.QueryResolversByHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByHashRequest; - fromPartial(object: Partial<_77.QueryResolversByHashRequest>): _77.QueryResolversByHashRequest; - fromAmino(object: _77.QueryResolversByHashRequestAmino): _77.QueryResolversByHashRequest; - toAmino(message: _77.QueryResolversByHashRequest): _77.QueryResolversByHashRequestAmino; - fromAminoMsg(object: _77.QueryResolversByHashRequestAminoMsg): _77.QueryResolversByHashRequest; - fromProtoMsg(message: _77.QueryResolversByHashRequestProtoMsg): _77.QueryResolversByHashRequest; - toProto(message: _77.QueryResolversByHashRequest): Uint8Array; - toProtoMsg(message: _77.QueryResolversByHashRequest): _77.QueryResolversByHashRequestProtoMsg; - }; - QueryResolversByHashResponse: { - typeUrl: string; - encode(message: _77.QueryResolversByHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByHashResponse; - fromPartial(object: Partial<_77.QueryResolversByHashResponse>): _77.QueryResolversByHashResponse; - fromAmino(object: _77.QueryResolversByHashResponseAmino): _77.QueryResolversByHashResponse; - toAmino(message: _77.QueryResolversByHashResponse): _77.QueryResolversByHashResponseAmino; - fromAminoMsg(object: _77.QueryResolversByHashResponseAminoMsg): _77.QueryResolversByHashResponse; - fromProtoMsg(message: _77.QueryResolversByHashResponseProtoMsg): _77.QueryResolversByHashResponse; - toProto(message: _77.QueryResolversByHashResponse): Uint8Array; - toProtoMsg(message: _77.QueryResolversByHashResponse): _77.QueryResolversByHashResponseProtoMsg; - }; - QueryResolversByURLRequest: { - typeUrl: string; - encode(message: _77.QueryResolversByURLRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByURLRequest; - fromPartial(object: Partial<_77.QueryResolversByURLRequest>): _77.QueryResolversByURLRequest; - fromAmino(object: _77.QueryResolversByURLRequestAmino): _77.QueryResolversByURLRequest; - toAmino(message: _77.QueryResolversByURLRequest): _77.QueryResolversByURLRequestAmino; - fromAminoMsg(object: _77.QueryResolversByURLRequestAminoMsg): _77.QueryResolversByURLRequest; - fromProtoMsg(message: _77.QueryResolversByURLRequestProtoMsg): _77.QueryResolversByURLRequest; - toProto(message: _77.QueryResolversByURLRequest): Uint8Array; - toProtoMsg(message: _77.QueryResolversByURLRequest): _77.QueryResolversByURLRequestProtoMsg; - }; - QueryResolversByURLResponse: { - typeUrl: string; - encode(message: _77.QueryResolversByURLResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.QueryResolversByURLResponse; - fromPartial(object: Partial<_77.QueryResolversByURLResponse>): _77.QueryResolversByURLResponse; - fromAmino(object: _77.QueryResolversByURLResponseAmino): _77.QueryResolversByURLResponse; - toAmino(message: _77.QueryResolversByURLResponse): _77.QueryResolversByURLResponseAmino; - fromAminoMsg(object: _77.QueryResolversByURLResponseAminoMsg): _77.QueryResolversByURLResponse; - fromProtoMsg(message: _77.QueryResolversByURLResponseProtoMsg): _77.QueryResolversByURLResponse; - toProto(message: _77.QueryResolversByURLResponse): Uint8Array; - toProtoMsg(message: _77.QueryResolversByURLResponse): _77.QueryResolversByURLResponseProtoMsg; - }; - ConvertIRIToHashRequest: { - typeUrl: string; - encode(message: _77.ConvertIRIToHashRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertIRIToHashRequest; - fromPartial(object: Partial<_77.ConvertIRIToHashRequest>): _77.ConvertIRIToHashRequest; - fromAmino(object: _77.ConvertIRIToHashRequestAmino): _77.ConvertIRIToHashRequest; - toAmino(message: _77.ConvertIRIToHashRequest): _77.ConvertIRIToHashRequestAmino; - fromAminoMsg(object: _77.ConvertIRIToHashRequestAminoMsg): _77.ConvertIRIToHashRequest; - fromProtoMsg(message: _77.ConvertIRIToHashRequestProtoMsg): _77.ConvertIRIToHashRequest; - toProto(message: _77.ConvertIRIToHashRequest): Uint8Array; - toProtoMsg(message: _77.ConvertIRIToHashRequest): _77.ConvertIRIToHashRequestProtoMsg; - }; - ConvertIRIToHashResponse: { - typeUrl: string; - encode(message: _77.ConvertIRIToHashResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertIRIToHashResponse; - fromPartial(object: Partial<_77.ConvertIRIToHashResponse>): _77.ConvertIRIToHashResponse; - fromAmino(object: _77.ConvertIRIToHashResponseAmino): _77.ConvertIRIToHashResponse; - toAmino(message: _77.ConvertIRIToHashResponse): _77.ConvertIRIToHashResponseAmino; - fromAminoMsg(object: _77.ConvertIRIToHashResponseAminoMsg): _77.ConvertIRIToHashResponse; - fromProtoMsg(message: _77.ConvertIRIToHashResponseProtoMsg): _77.ConvertIRIToHashResponse; - toProto(message: _77.ConvertIRIToHashResponse): Uint8Array; - toProtoMsg(message: _77.ConvertIRIToHashResponse): _77.ConvertIRIToHashResponseProtoMsg; - }; - ConvertHashToIRIRequest: { - typeUrl: string; - encode(message: _77.ConvertHashToIRIRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertHashToIRIRequest; - fromPartial(object: Partial<_77.ConvertHashToIRIRequest>): _77.ConvertHashToIRIRequest; - fromAmino(object: _77.ConvertHashToIRIRequestAmino): _77.ConvertHashToIRIRequest; - toAmino(message: _77.ConvertHashToIRIRequest): _77.ConvertHashToIRIRequestAmino; - fromAminoMsg(object: _77.ConvertHashToIRIRequestAminoMsg): _77.ConvertHashToIRIRequest; - fromProtoMsg(message: _77.ConvertHashToIRIRequestProtoMsg): _77.ConvertHashToIRIRequest; - toProto(message: _77.ConvertHashToIRIRequest): Uint8Array; - toProtoMsg(message: _77.ConvertHashToIRIRequest): _77.ConvertHashToIRIRequestProtoMsg; - }; - ConvertHashToIRIResponse: { - typeUrl: string; - encode(message: _77.ConvertHashToIRIResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ConvertHashToIRIResponse; - fromPartial(object: Partial<_77.ConvertHashToIRIResponse>): _77.ConvertHashToIRIResponse; - fromAmino(object: _77.ConvertHashToIRIResponseAmino): _77.ConvertHashToIRIResponse; - toAmino(message: _77.ConvertHashToIRIResponse): _77.ConvertHashToIRIResponseAmino; - fromAminoMsg(object: _77.ConvertHashToIRIResponseAminoMsg): _77.ConvertHashToIRIResponse; - fromProtoMsg(message: _77.ConvertHashToIRIResponseProtoMsg): _77.ConvertHashToIRIResponse; - toProto(message: _77.ConvertHashToIRIResponse): Uint8Array; - toProtoMsg(message: _77.ConvertHashToIRIResponse): _77.ConvertHashToIRIResponseProtoMsg; - }; - AnchorInfo: { - typeUrl: string; - encode(message: _77.AnchorInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.AnchorInfo; - fromPartial(object: Partial<_77.AnchorInfo>): _77.AnchorInfo; - fromAmino(object: _77.AnchorInfoAmino): _77.AnchorInfo; - toAmino(message: _77.AnchorInfo): _77.AnchorInfoAmino; - fromAminoMsg(object: _77.AnchorInfoAminoMsg): _77.AnchorInfo; - fromProtoMsg(message: _77.AnchorInfoProtoMsg): _77.AnchorInfo; - toProto(message: _77.AnchorInfo): Uint8Array; - toProtoMsg(message: _77.AnchorInfo): _77.AnchorInfoProtoMsg; - }; - AttestationInfo: { - typeUrl: string; - encode(message: _77.AttestationInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.AttestationInfo; - fromPartial(object: Partial<_77.AttestationInfo>): _77.AttestationInfo; - fromAmino(object: _77.AttestationInfoAmino): _77.AttestationInfo; - toAmino(message: _77.AttestationInfo): _77.AttestationInfoAmino; - fromAminoMsg(object: _77.AttestationInfoAminoMsg): _77.AttestationInfo; - fromProtoMsg(message: _77.AttestationInfoProtoMsg): _77.AttestationInfo; - toProto(message: _77.AttestationInfo): Uint8Array; - toProtoMsg(message: _77.AttestationInfo): _77.AttestationInfoProtoMsg; - }; - ResolverInfo: { - typeUrl: string; - encode(message: _77.ResolverInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _77.ResolverInfo; - fromPartial(object: Partial<_77.ResolverInfo>): _77.ResolverInfo; - fromAmino(object: _77.ResolverInfoAmino): _77.ResolverInfo; - toAmino(message: _77.ResolverInfo): _77.ResolverInfoAmino; - fromAminoMsg(object: _77.ResolverInfoAminoMsg): _77.ResolverInfo; - fromProtoMsg(message: _77.ResolverInfoProtoMsg): _77.ResolverInfo; - toProto(message: _77.ResolverInfo): Uint8Array; - toProtoMsg(message: _77.ResolverInfo): _77.ResolverInfoProtoMsg; - }; - EventAnchor: { - typeUrl: string; - encode(message: _76.EventAnchor, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventAnchor; - fromPartial(object: Partial<_76.EventAnchor>): _76.EventAnchor; - fromAmino(object: _76.EventAnchorAmino): _76.EventAnchor; - toAmino(message: _76.EventAnchor): _76.EventAnchorAmino; - fromAminoMsg(object: _76.EventAnchorAminoMsg): _76.EventAnchor; - fromProtoMsg(message: _76.EventAnchorProtoMsg): _76.EventAnchor; - toProto(message: _76.EventAnchor): Uint8Array; - toProtoMsg(message: _76.EventAnchor): _76.EventAnchorProtoMsg; - }; - EventAttest: { - typeUrl: string; - encode(message: _76.EventAttest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventAttest; - fromPartial(object: Partial<_76.EventAttest>): _76.EventAttest; - fromAmino(object: _76.EventAttestAmino): _76.EventAttest; - toAmino(message: _76.EventAttest): _76.EventAttestAmino; - fromAminoMsg(object: _76.EventAttestAminoMsg): _76.EventAttest; - fromProtoMsg(message: _76.EventAttestProtoMsg): _76.EventAttest; - toProto(message: _76.EventAttest): Uint8Array; - toProtoMsg(message: _76.EventAttest): _76.EventAttestProtoMsg; - }; - EventDefineResolver: { - typeUrl: string; - encode(message: _76.EventDefineResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventDefineResolver; - fromPartial(object: Partial<_76.EventDefineResolver>): _76.EventDefineResolver; - fromAmino(object: _76.EventDefineResolverAmino): _76.EventDefineResolver; - toAmino(message: _76.EventDefineResolver): _76.EventDefineResolverAmino; - fromAminoMsg(object: _76.EventDefineResolverAminoMsg): _76.EventDefineResolver; - fromProtoMsg(message: _76.EventDefineResolverProtoMsg): _76.EventDefineResolver; - toProto(message: _76.EventDefineResolver): Uint8Array; - toProtoMsg(message: _76.EventDefineResolver): _76.EventDefineResolverProtoMsg; - }; - EventRegisterResolver: { - typeUrl: string; - encode(message: _76.EventRegisterResolver, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _76.EventRegisterResolver; - fromPartial(object: Partial<_76.EventRegisterResolver>): _76.EventRegisterResolver; - fromAmino(object: _76.EventRegisterResolverAmino): _76.EventRegisterResolver; - toAmino(message: _76.EventRegisterResolver): _76.EventRegisterResolverAmino; - fromAminoMsg(object: _76.EventRegisterResolverAminoMsg): _76.EventRegisterResolver; - fromProtoMsg(message: _76.EventRegisterResolverProtoMsg): _76.EventRegisterResolver; - toProto(message: _76.EventRegisterResolver): Uint8Array; - toProtoMsg(message: _76.EventRegisterResolver): _76.EventRegisterResolverProtoMsg; - }; - }; - } - namespace ecocredit { - namespace basket { - const v1: { - MsgClientImpl: typeof _212.MsgClientImpl; - QueryClientImpl: typeof _206.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - basket(request: _82.QueryBasketRequest): Promise<_82.QueryBasketResponse>; - baskets(request?: _82.QueryBasketsRequest): Promise<_82.QueryBasketsResponse>; - basketBalances(request: _82.QueryBasketBalancesRequest): Promise<_82.QueryBasketBalancesResponse>; - basketBalance(request: _82.QueryBasketBalanceRequest): Promise<_82.QueryBasketBalanceResponse>; - basketFee(request?: _82.QueryBasketFeeRequest): Promise<_82.QueryBasketFeeResponse>; - }; - LCDQueryClient: typeof _200.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - create(value: _84.MsgCreate): { - typeUrl: string; - value: Uint8Array; - }; - put(value: _84.MsgPut): { - typeUrl: string; - value: Uint8Array; - }; - take(value: _84.MsgTake): { - typeUrl: string; - value: Uint8Array; - }; - updateBasketFee(value: _84.MsgUpdateBasketFee): { - typeUrl: string; - value: Uint8Array; - }; - updateCurator(value: _84.MsgUpdateCurator): { - typeUrl: string; - value: Uint8Array; - }; - updateDateCriteria(value: _84.MsgUpdateDateCriteria): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - create(value: _84.MsgCreate): { - typeUrl: string; - value: _84.MsgCreate; - }; - put(value: _84.MsgPut): { - typeUrl: string; - value: _84.MsgPut; - }; - take(value: _84.MsgTake): { - typeUrl: string; - value: _84.MsgTake; - }; - updateBasketFee(value: _84.MsgUpdateBasketFee): { - typeUrl: string; - value: _84.MsgUpdateBasketFee; - }; - updateCurator(value: _84.MsgUpdateCurator): { - typeUrl: string; - value: _84.MsgUpdateCurator; - }; - updateDateCriteria(value: _84.MsgUpdateDateCriteria): { - typeUrl: string; - value: _84.MsgUpdateDateCriteria; - }; - }; - fromPartial: { - create(value: _84.MsgCreate): { - typeUrl: string; - value: _84.MsgCreate; - }; - put(value: _84.MsgPut): { - typeUrl: string; - value: _84.MsgPut; - }; - take(value: _84.MsgTake): { - typeUrl: string; - value: _84.MsgTake; - }; - updateBasketFee(value: _84.MsgUpdateBasketFee): { - typeUrl: string; - value: _84.MsgUpdateBasketFee; - }; - updateCurator(value: _84.MsgUpdateCurator): { - typeUrl: string; - value: _84.MsgUpdateCurator; - }; - updateDateCriteria(value: _84.MsgUpdateDateCriteria): { - typeUrl: string; - value: _84.MsgUpdateDateCriteria; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: _84.MsgCreate) => _84.MsgCreateAmino; - fromAmino: (object: _84.MsgCreateAmino) => _84.MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: _84.MsgPut) => _84.MsgPutAmino; - fromAmino: (object: _84.MsgPutAmino) => _84.MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: _84.MsgTake) => _84.MsgTakeAmino; - fromAmino: (object: _84.MsgTakeAmino) => _84.MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: _84.MsgUpdateBasketFee) => _84.MsgUpdateBasketFeeAmino; - fromAmino: (object: _84.MsgUpdateBasketFeeAmino) => _84.MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: _84.MsgUpdateCurator) => _84.MsgUpdateCuratorAmino; - fromAmino: (object: _84.MsgUpdateCuratorAmino) => _84.MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: _84.MsgUpdateDateCriteria) => _84.MsgUpdateDateCriteriaAmino; - fromAmino: (object: _84.MsgUpdateDateCriteriaAmino) => _84.MsgUpdateDateCriteria; - }; - }; - BasketCredit: { - typeUrl: string; - encode(message: _85.BasketCredit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _85.BasketCredit; - fromPartial(object: Partial<_85.BasketCredit>): _85.BasketCredit; - fromAmino(object: _85.BasketCreditAmino): _85.BasketCredit; - toAmino(message: _85.BasketCredit): _85.BasketCreditAmino; - fromAminoMsg(object: _85.BasketCreditAminoMsg): _85.BasketCredit; - fromProtoMsg(message: _85.BasketCreditProtoMsg): _85.BasketCredit; - toProto(message: _85.BasketCredit): Uint8Array; - toProtoMsg(message: _85.BasketCredit): _85.BasketCreditProtoMsg; - }; - DateCriteria: { - typeUrl: string; - encode(message: _85.DateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _85.DateCriteria; - fromPartial(object: Partial<_85.DateCriteria>): _85.DateCriteria; - fromAmino(object: _85.DateCriteriaAmino): _85.DateCriteria; - toAmino(message: _85.DateCriteria): _85.DateCriteriaAmino; - fromAminoMsg(object: _85.DateCriteriaAminoMsg): _85.DateCriteria; - fromProtoMsg(message: _85.DateCriteriaProtoMsg): _85.DateCriteria; - toProto(message: _85.DateCriteria): Uint8Array; - toProtoMsg(message: _85.DateCriteria): _85.DateCriteriaProtoMsg; - }; - MsgCreate: { - typeUrl: string; - encode(message: _84.MsgCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgCreate; - fromPartial(object: Partial<_84.MsgCreate>): _84.MsgCreate; - fromAmino(object: _84.MsgCreateAmino): _84.MsgCreate; - toAmino(message: _84.MsgCreate): _84.MsgCreateAmino; - fromAminoMsg(object: _84.MsgCreateAminoMsg): _84.MsgCreate; - toAminoMsg(message: _84.MsgCreate): _84.MsgCreateAminoMsg; - fromProtoMsg(message: _84.MsgCreateProtoMsg): _84.MsgCreate; - toProto(message: _84.MsgCreate): Uint8Array; - toProtoMsg(message: _84.MsgCreate): _84.MsgCreateProtoMsg; - }; - MsgCreateResponse: { - typeUrl: string; - encode(message: _84.MsgCreateResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgCreateResponse; - fromPartial(object: Partial<_84.MsgCreateResponse>): _84.MsgCreateResponse; - fromAmino(object: _84.MsgCreateResponseAmino): _84.MsgCreateResponse; - toAmino(message: _84.MsgCreateResponse): _84.MsgCreateResponseAmino; - fromAminoMsg(object: _84.MsgCreateResponseAminoMsg): _84.MsgCreateResponse; - fromProtoMsg(message: _84.MsgCreateResponseProtoMsg): _84.MsgCreateResponse; - toProto(message: _84.MsgCreateResponse): Uint8Array; - toProtoMsg(message: _84.MsgCreateResponse): _84.MsgCreateResponseProtoMsg; - }; - MsgPut: { - typeUrl: string; - encode(message: _84.MsgPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgPut; - fromPartial(object: Partial<_84.MsgPut>): _84.MsgPut; - fromAmino(object: _84.MsgPutAmino): _84.MsgPut; - toAmino(message: _84.MsgPut): _84.MsgPutAmino; - fromAminoMsg(object: _84.MsgPutAminoMsg): _84.MsgPut; - toAminoMsg(message: _84.MsgPut): _84.MsgPutAminoMsg; - fromProtoMsg(message: _84.MsgPutProtoMsg): _84.MsgPut; - toProto(message: _84.MsgPut): Uint8Array; - toProtoMsg(message: _84.MsgPut): _84.MsgPutProtoMsg; - }; - MsgPutResponse: { - typeUrl: string; - encode(message: _84.MsgPutResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgPutResponse; - fromPartial(object: Partial<_84.MsgPutResponse>): _84.MsgPutResponse; - fromAmino(object: _84.MsgPutResponseAmino): _84.MsgPutResponse; - toAmino(message: _84.MsgPutResponse): _84.MsgPutResponseAmino; - fromAminoMsg(object: _84.MsgPutResponseAminoMsg): _84.MsgPutResponse; - fromProtoMsg(message: _84.MsgPutResponseProtoMsg): _84.MsgPutResponse; - toProto(message: _84.MsgPutResponse): Uint8Array; - toProtoMsg(message: _84.MsgPutResponse): _84.MsgPutResponseProtoMsg; - }; - MsgTake: { - typeUrl: string; - encode(message: _84.MsgTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgTake; - fromPartial(object: Partial<_84.MsgTake>): _84.MsgTake; - fromAmino(object: _84.MsgTakeAmino): _84.MsgTake; - toAmino(message: _84.MsgTake): _84.MsgTakeAmino; - fromAminoMsg(object: _84.MsgTakeAminoMsg): _84.MsgTake; - toAminoMsg(message: _84.MsgTake): _84.MsgTakeAminoMsg; - fromProtoMsg(message: _84.MsgTakeProtoMsg): _84.MsgTake; - toProto(message: _84.MsgTake): Uint8Array; - toProtoMsg(message: _84.MsgTake): _84.MsgTakeProtoMsg; - }; - MsgTakeResponse: { - typeUrl: string; - encode(message: _84.MsgTakeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgTakeResponse; - fromPartial(object: Partial<_84.MsgTakeResponse>): _84.MsgTakeResponse; - fromAmino(object: _84.MsgTakeResponseAmino): _84.MsgTakeResponse; - toAmino(message: _84.MsgTakeResponse): _84.MsgTakeResponseAmino; - fromAminoMsg(object: _84.MsgTakeResponseAminoMsg): _84.MsgTakeResponse; - fromProtoMsg(message: _84.MsgTakeResponseProtoMsg): _84.MsgTakeResponse; - toProto(message: _84.MsgTakeResponse): Uint8Array; - toProtoMsg(message: _84.MsgTakeResponse): _84.MsgTakeResponseProtoMsg; - }; - MsgUpdateBasketFee: { - typeUrl: string; - encode(message: _84.MsgUpdateBasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateBasketFee; - fromPartial(object: Partial<_84.MsgUpdateBasketFee>): _84.MsgUpdateBasketFee; - fromAmino(object: _84.MsgUpdateBasketFeeAmino): _84.MsgUpdateBasketFee; - toAmino(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeAmino; - fromAminoMsg(object: _84.MsgUpdateBasketFeeAminoMsg): _84.MsgUpdateBasketFee; - toAminoMsg(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeAminoMsg; - fromProtoMsg(message: _84.MsgUpdateBasketFeeProtoMsg): _84.MsgUpdateBasketFee; - toProto(message: _84.MsgUpdateBasketFee): Uint8Array; - toProtoMsg(message: _84.MsgUpdateBasketFee): _84.MsgUpdateBasketFeeProtoMsg; - }; - MsgUpdateBasketFeeResponse: { - typeUrl: string; - encode(_: _84.MsgUpdateBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateBasketFeeResponse; - fromPartial(_: Partial<_84.MsgUpdateBasketFeeResponse>): _84.MsgUpdateBasketFeeResponse; - fromAmino(_: _84.MsgUpdateBasketFeeResponseAmino): _84.MsgUpdateBasketFeeResponse; - toAmino(_: _84.MsgUpdateBasketFeeResponse): _84.MsgUpdateBasketFeeResponseAmino; - fromAminoMsg(object: _84.MsgUpdateBasketFeeResponseAminoMsg): _84.MsgUpdateBasketFeeResponse; - fromProtoMsg(message: _84.MsgUpdateBasketFeeResponseProtoMsg): _84.MsgUpdateBasketFeeResponse; - toProto(message: _84.MsgUpdateBasketFeeResponse): Uint8Array; - toProtoMsg(message: _84.MsgUpdateBasketFeeResponse): _84.MsgUpdateBasketFeeResponseProtoMsg; - }; - MsgUpdateCurator: { - typeUrl: string; - encode(message: _84.MsgUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateCurator; - fromPartial(object: Partial<_84.MsgUpdateCurator>): _84.MsgUpdateCurator; - fromAmino(object: _84.MsgUpdateCuratorAmino): _84.MsgUpdateCurator; - toAmino(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorAmino; - fromAminoMsg(object: _84.MsgUpdateCuratorAminoMsg): _84.MsgUpdateCurator; - toAminoMsg(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorAminoMsg; - fromProtoMsg(message: _84.MsgUpdateCuratorProtoMsg): _84.MsgUpdateCurator; - toProto(message: _84.MsgUpdateCurator): Uint8Array; - toProtoMsg(message: _84.MsgUpdateCurator): _84.MsgUpdateCuratorProtoMsg; - }; - MsgUpdateCuratorResponse: { - typeUrl: string; - encode(_: _84.MsgUpdateCuratorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateCuratorResponse; - fromPartial(_: Partial<_84.MsgUpdateCuratorResponse>): _84.MsgUpdateCuratorResponse; - fromAmino(_: _84.MsgUpdateCuratorResponseAmino): _84.MsgUpdateCuratorResponse; - toAmino(_: _84.MsgUpdateCuratorResponse): _84.MsgUpdateCuratorResponseAmino; - fromAminoMsg(object: _84.MsgUpdateCuratorResponseAminoMsg): _84.MsgUpdateCuratorResponse; - fromProtoMsg(message: _84.MsgUpdateCuratorResponseProtoMsg): _84.MsgUpdateCuratorResponse; - toProto(message: _84.MsgUpdateCuratorResponse): Uint8Array; - toProtoMsg(message: _84.MsgUpdateCuratorResponse): _84.MsgUpdateCuratorResponseProtoMsg; - }; - MsgUpdateDateCriteria: { - typeUrl: string; - encode(message: _84.MsgUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateDateCriteria; - fromPartial(object: Partial<_84.MsgUpdateDateCriteria>): _84.MsgUpdateDateCriteria; - fromAmino(object: _84.MsgUpdateDateCriteriaAmino): _84.MsgUpdateDateCriteria; - toAmino(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaAmino; - fromAminoMsg(object: _84.MsgUpdateDateCriteriaAminoMsg): _84.MsgUpdateDateCriteria; - toAminoMsg(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaAminoMsg; - fromProtoMsg(message: _84.MsgUpdateDateCriteriaProtoMsg): _84.MsgUpdateDateCriteria; - toProto(message: _84.MsgUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _84.MsgUpdateDateCriteria): _84.MsgUpdateDateCriteriaProtoMsg; - }; - MsgUpdateDateCriteriaResponse: { - typeUrl: string; - encode(_: _84.MsgUpdateDateCriteriaResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _84.MsgUpdateDateCriteriaResponse; - fromPartial(_: Partial<_84.MsgUpdateDateCriteriaResponse>): _84.MsgUpdateDateCriteriaResponse; - fromAmino(_: _84.MsgUpdateDateCriteriaResponseAmino): _84.MsgUpdateDateCriteriaResponse; - toAmino(_: _84.MsgUpdateDateCriteriaResponse): _84.MsgUpdateDateCriteriaResponseAmino; - fromAminoMsg(object: _84.MsgUpdateDateCriteriaResponseAminoMsg): _84.MsgUpdateDateCriteriaResponse; - fromProtoMsg(message: _84.MsgUpdateDateCriteriaResponseProtoMsg): _84.MsgUpdateDateCriteriaResponse; - toProto(message: _84.MsgUpdateDateCriteriaResponse): Uint8Array; - toProtoMsg(message: _84.MsgUpdateDateCriteriaResponse): _84.MsgUpdateDateCriteriaResponseProtoMsg; - }; - Basket: { - typeUrl: string; - encode(message: _83.Basket, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.Basket; - fromPartial(object: Partial<_83.Basket>): _83.Basket; - fromAmino(object: _83.BasketAmino): _83.Basket; - toAmino(message: _83.Basket): _83.BasketAmino; - fromAminoMsg(object: _83.BasketAminoMsg): _83.Basket; - fromProtoMsg(message: _83.BasketProtoMsg): _83.Basket; - toProto(message: _83.Basket): Uint8Array; - toProtoMsg(message: _83.Basket): _83.BasketProtoMsg; - }; - BasketClass: { - typeUrl: string; - encode(message: _83.BasketClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketClass; - fromPartial(object: Partial<_83.BasketClass>): _83.BasketClass; - fromAmino(object: _83.BasketClassAmino): _83.BasketClass; - toAmino(message: _83.BasketClass): _83.BasketClassAmino; - fromAminoMsg(object: _83.BasketClassAminoMsg): _83.BasketClass; - fromProtoMsg(message: _83.BasketClassProtoMsg): _83.BasketClass; - toProto(message: _83.BasketClass): Uint8Array; - toProtoMsg(message: _83.BasketClass): _83.BasketClassProtoMsg; - }; - BasketBalance: { - typeUrl: string; - encode(message: _83.BasketBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketBalance; - fromPartial(object: Partial<_83.BasketBalance>): _83.BasketBalance; - fromAmino(object: _83.BasketBalanceAmino): _83.BasketBalance; - toAmino(message: _83.BasketBalance): _83.BasketBalanceAmino; - fromAminoMsg(object: _83.BasketBalanceAminoMsg): _83.BasketBalance; - fromProtoMsg(message: _83.BasketBalanceProtoMsg): _83.BasketBalance; - toProto(message: _83.BasketBalance): Uint8Array; - toProtoMsg(message: _83.BasketBalance): _83.BasketBalanceProtoMsg; - }; - BasketFee: { - typeUrl: string; - encode(message: _83.BasketFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _83.BasketFee; - fromPartial(object: Partial<_83.BasketFee>): _83.BasketFee; - fromAmino(object: _83.BasketFeeAmino): _83.BasketFee; - toAmino(message: _83.BasketFee): _83.BasketFeeAmino; - fromAminoMsg(object: _83.BasketFeeAminoMsg): _83.BasketFee; - fromProtoMsg(message: _83.BasketFeeProtoMsg): _83.BasketFee; - toProto(message: _83.BasketFee): Uint8Array; - toProtoMsg(message: _83.BasketFee): _83.BasketFeeProtoMsg; - }; - QueryBasketRequest: { - typeUrl: string; - encode(message: _82.QueryBasketRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketRequest; - fromPartial(object: Partial<_82.QueryBasketRequest>): _82.QueryBasketRequest; - fromAmino(object: _82.QueryBasketRequestAmino): _82.QueryBasketRequest; - toAmino(message: _82.QueryBasketRequest): _82.QueryBasketRequestAmino; - fromAminoMsg(object: _82.QueryBasketRequestAminoMsg): _82.QueryBasketRequest; - fromProtoMsg(message: _82.QueryBasketRequestProtoMsg): _82.QueryBasketRequest; - toProto(message: _82.QueryBasketRequest): Uint8Array; - toProtoMsg(message: _82.QueryBasketRequest): _82.QueryBasketRequestProtoMsg; - }; - QueryBasketResponse: { - typeUrl: string; - encode(message: _82.QueryBasketResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketResponse; - fromPartial(object: Partial<_82.QueryBasketResponse>): _82.QueryBasketResponse; - fromAmino(object: _82.QueryBasketResponseAmino): _82.QueryBasketResponse; - toAmino(message: _82.QueryBasketResponse): _82.QueryBasketResponseAmino; - fromAminoMsg(object: _82.QueryBasketResponseAminoMsg): _82.QueryBasketResponse; - fromProtoMsg(message: _82.QueryBasketResponseProtoMsg): _82.QueryBasketResponse; - toProto(message: _82.QueryBasketResponse): Uint8Array; - toProtoMsg(message: _82.QueryBasketResponse): _82.QueryBasketResponseProtoMsg; - }; - QueryBasketsRequest: { - typeUrl: string; - encode(message: _82.QueryBasketsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketsRequest; - fromPartial(object: Partial<_82.QueryBasketsRequest>): _82.QueryBasketsRequest; - fromAmino(object: _82.QueryBasketsRequestAmino): _82.QueryBasketsRequest; - toAmino(message: _82.QueryBasketsRequest): _82.QueryBasketsRequestAmino; - fromAminoMsg(object: _82.QueryBasketsRequestAminoMsg): _82.QueryBasketsRequest; - fromProtoMsg(message: _82.QueryBasketsRequestProtoMsg): _82.QueryBasketsRequest; - toProto(message: _82.QueryBasketsRequest): Uint8Array; - toProtoMsg(message: _82.QueryBasketsRequest): _82.QueryBasketsRequestProtoMsg; - }; - QueryBasketsResponse: { - typeUrl: string; - encode(message: _82.QueryBasketsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketsResponse; - fromPartial(object: Partial<_82.QueryBasketsResponse>): _82.QueryBasketsResponse; - fromAmino(object: _82.QueryBasketsResponseAmino): _82.QueryBasketsResponse; - toAmino(message: _82.QueryBasketsResponse): _82.QueryBasketsResponseAmino; - fromAminoMsg(object: _82.QueryBasketsResponseAminoMsg): _82.QueryBasketsResponse; - fromProtoMsg(message: _82.QueryBasketsResponseProtoMsg): _82.QueryBasketsResponse; - toProto(message: _82.QueryBasketsResponse): Uint8Array; - toProtoMsg(message: _82.QueryBasketsResponse): _82.QueryBasketsResponseProtoMsg; - }; - QueryBasketBalancesRequest: { - typeUrl: string; - encode(message: _82.QueryBasketBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalancesRequest; - fromPartial(object: Partial<_82.QueryBasketBalancesRequest>): _82.QueryBasketBalancesRequest; - fromAmino(object: _82.QueryBasketBalancesRequestAmino): _82.QueryBasketBalancesRequest; - toAmino(message: _82.QueryBasketBalancesRequest): _82.QueryBasketBalancesRequestAmino; - fromAminoMsg(object: _82.QueryBasketBalancesRequestAminoMsg): _82.QueryBasketBalancesRequest; - fromProtoMsg(message: _82.QueryBasketBalancesRequestProtoMsg): _82.QueryBasketBalancesRequest; - toProto(message: _82.QueryBasketBalancesRequest): Uint8Array; - toProtoMsg(message: _82.QueryBasketBalancesRequest): _82.QueryBasketBalancesRequestProtoMsg; - }; - QueryBasketBalancesResponse: { - typeUrl: string; - encode(message: _82.QueryBasketBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalancesResponse; - fromPartial(object: Partial<_82.QueryBasketBalancesResponse>): _82.QueryBasketBalancesResponse; - fromAmino(object: _82.QueryBasketBalancesResponseAmino): _82.QueryBasketBalancesResponse; - toAmino(message: _82.QueryBasketBalancesResponse): _82.QueryBasketBalancesResponseAmino; - fromAminoMsg(object: _82.QueryBasketBalancesResponseAminoMsg): _82.QueryBasketBalancesResponse; - fromProtoMsg(message: _82.QueryBasketBalancesResponseProtoMsg): _82.QueryBasketBalancesResponse; - toProto(message: _82.QueryBasketBalancesResponse): Uint8Array; - toProtoMsg(message: _82.QueryBasketBalancesResponse): _82.QueryBasketBalancesResponseProtoMsg; - }; - QueryBasketBalanceRequest: { - typeUrl: string; - encode(message: _82.QueryBasketBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalanceRequest; - fromPartial(object: Partial<_82.QueryBasketBalanceRequest>): _82.QueryBasketBalanceRequest; - fromAmino(object: _82.QueryBasketBalanceRequestAmino): _82.QueryBasketBalanceRequest; - toAmino(message: _82.QueryBasketBalanceRequest): _82.QueryBasketBalanceRequestAmino; - fromAminoMsg(object: _82.QueryBasketBalanceRequestAminoMsg): _82.QueryBasketBalanceRequest; - fromProtoMsg(message: _82.QueryBasketBalanceRequestProtoMsg): _82.QueryBasketBalanceRequest; - toProto(message: _82.QueryBasketBalanceRequest): Uint8Array; - toProtoMsg(message: _82.QueryBasketBalanceRequest): _82.QueryBasketBalanceRequestProtoMsg; - }; - QueryBasketBalanceResponse: { - typeUrl: string; - encode(message: _82.QueryBasketBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketBalanceResponse; - fromPartial(object: Partial<_82.QueryBasketBalanceResponse>): _82.QueryBasketBalanceResponse; - fromAmino(object: _82.QueryBasketBalanceResponseAmino): _82.QueryBasketBalanceResponse; - toAmino(message: _82.QueryBasketBalanceResponse): _82.QueryBasketBalanceResponseAmino; - fromAminoMsg(object: _82.QueryBasketBalanceResponseAminoMsg): _82.QueryBasketBalanceResponse; - fromProtoMsg(message: _82.QueryBasketBalanceResponseProtoMsg): _82.QueryBasketBalanceResponse; - toProto(message: _82.QueryBasketBalanceResponse): Uint8Array; - toProtoMsg(message: _82.QueryBasketBalanceResponse): _82.QueryBasketBalanceResponseProtoMsg; - }; - BasketInfo: { - typeUrl: string; - encode(message: _82.BasketInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.BasketInfo; - fromPartial(object: Partial<_82.BasketInfo>): _82.BasketInfo; - fromAmino(object: _82.BasketInfoAmino): _82.BasketInfo; - toAmino(message: _82.BasketInfo): _82.BasketInfoAmino; - fromAminoMsg(object: _82.BasketInfoAminoMsg): _82.BasketInfo; - fromProtoMsg(message: _82.BasketInfoProtoMsg): _82.BasketInfo; - toProto(message: _82.BasketInfo): Uint8Array; - toProtoMsg(message: _82.BasketInfo): _82.BasketInfoProtoMsg; - }; - BasketBalanceInfo: { - typeUrl: string; - encode(message: _82.BasketBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.BasketBalanceInfo; - fromPartial(object: Partial<_82.BasketBalanceInfo>): _82.BasketBalanceInfo; - fromAmino(object: _82.BasketBalanceInfoAmino): _82.BasketBalanceInfo; - toAmino(message: _82.BasketBalanceInfo): _82.BasketBalanceInfoAmino; - fromAminoMsg(object: _82.BasketBalanceInfoAminoMsg): _82.BasketBalanceInfo; - fromProtoMsg(message: _82.BasketBalanceInfoProtoMsg): _82.BasketBalanceInfo; - toProto(message: _82.BasketBalanceInfo): Uint8Array; - toProtoMsg(message: _82.BasketBalanceInfo): _82.BasketBalanceInfoProtoMsg; - }; - QueryBasketFeeRequest: { - typeUrl: string; - encode(_: _82.QueryBasketFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketFeeRequest; - fromPartial(_: Partial<_82.QueryBasketFeeRequest>): _82.QueryBasketFeeRequest; - fromAmino(_: _82.QueryBasketFeeRequestAmino): _82.QueryBasketFeeRequest; - toAmino(_: _82.QueryBasketFeeRequest): _82.QueryBasketFeeRequestAmino; - fromAminoMsg(object: _82.QueryBasketFeeRequestAminoMsg): _82.QueryBasketFeeRequest; - fromProtoMsg(message: _82.QueryBasketFeeRequestProtoMsg): _82.QueryBasketFeeRequest; - toProto(message: _82.QueryBasketFeeRequest): Uint8Array; - toProtoMsg(message: _82.QueryBasketFeeRequest): _82.QueryBasketFeeRequestProtoMsg; - }; - QueryBasketFeeResponse: { - typeUrl: string; - encode(message: _82.QueryBasketFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _82.QueryBasketFeeResponse; - fromPartial(object: Partial<_82.QueryBasketFeeResponse>): _82.QueryBasketFeeResponse; - fromAmino(object: _82.QueryBasketFeeResponseAmino): _82.QueryBasketFeeResponse; - toAmino(message: _82.QueryBasketFeeResponse): _82.QueryBasketFeeResponseAmino; - fromAminoMsg(object: _82.QueryBasketFeeResponseAminoMsg): _82.QueryBasketFeeResponse; - fromProtoMsg(message: _82.QueryBasketFeeResponseProtoMsg): _82.QueryBasketFeeResponse; - toProto(message: _82.QueryBasketFeeResponse): Uint8Array; - toProtoMsg(message: _82.QueryBasketFeeResponse): _82.QueryBasketFeeResponseProtoMsg; - }; - EventCreate: { - typeUrl: string; - encode(message: _81.EventCreate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventCreate; - fromPartial(object: Partial<_81.EventCreate>): _81.EventCreate; - fromAmino(object: _81.EventCreateAmino): _81.EventCreate; - toAmino(message: _81.EventCreate): _81.EventCreateAmino; - fromAminoMsg(object: _81.EventCreateAminoMsg): _81.EventCreate; - fromProtoMsg(message: _81.EventCreateProtoMsg): _81.EventCreate; - toProto(message: _81.EventCreate): Uint8Array; - toProtoMsg(message: _81.EventCreate): _81.EventCreateProtoMsg; - }; - EventPut: { - typeUrl: string; - encode(message: _81.EventPut, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventPut; - fromPartial(object: Partial<_81.EventPut>): _81.EventPut; - fromAmino(object: _81.EventPutAmino): _81.EventPut; - toAmino(message: _81.EventPut): _81.EventPutAmino; - fromAminoMsg(object: _81.EventPutAminoMsg): _81.EventPut; - fromProtoMsg(message: _81.EventPutProtoMsg): _81.EventPut; - toProto(message: _81.EventPut): Uint8Array; - toProtoMsg(message: _81.EventPut): _81.EventPutProtoMsg; - }; - EventTake: { - typeUrl: string; - encode(message: _81.EventTake, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventTake; - fromPartial(object: Partial<_81.EventTake>): _81.EventTake; - fromAmino(object: _81.EventTakeAmino): _81.EventTake; - toAmino(message: _81.EventTake): _81.EventTakeAmino; - fromAminoMsg(object: _81.EventTakeAminoMsg): _81.EventTake; - fromProtoMsg(message: _81.EventTakeProtoMsg): _81.EventTake; - toProto(message: _81.EventTake): Uint8Array; - toProtoMsg(message: _81.EventTake): _81.EventTakeProtoMsg; - }; - EventUpdateCurator: { - typeUrl: string; - encode(message: _81.EventUpdateCurator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventUpdateCurator; - fromPartial(object: Partial<_81.EventUpdateCurator>): _81.EventUpdateCurator; - fromAmino(object: _81.EventUpdateCuratorAmino): _81.EventUpdateCurator; - toAmino(message: _81.EventUpdateCurator): _81.EventUpdateCuratorAmino; - fromAminoMsg(object: _81.EventUpdateCuratorAminoMsg): _81.EventUpdateCurator; - fromProtoMsg(message: _81.EventUpdateCuratorProtoMsg): _81.EventUpdateCurator; - toProto(message: _81.EventUpdateCurator): Uint8Array; - toProtoMsg(message: _81.EventUpdateCurator): _81.EventUpdateCuratorProtoMsg; - }; - EventUpdateDateCriteria: { - typeUrl: string; - encode(message: _81.EventUpdateDateCriteria, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _81.EventUpdateDateCriteria; - fromPartial(object: Partial<_81.EventUpdateDateCriteria>): _81.EventUpdateDateCriteria; - fromAmino(object: _81.EventUpdateDateCriteriaAmino): _81.EventUpdateDateCriteria; - toAmino(message: _81.EventUpdateDateCriteria): _81.EventUpdateDateCriteriaAmino; - fromAminoMsg(object: _81.EventUpdateDateCriteriaAminoMsg): _81.EventUpdateDateCriteria; - fromProtoMsg(message: _81.EventUpdateDateCriteriaProtoMsg): _81.EventUpdateDateCriteria; - toProto(message: _81.EventUpdateDateCriteria): Uint8Array; - toProtoMsg(message: _81.EventUpdateDateCriteria): _81.EventUpdateDateCriteriaProtoMsg; - }; - }; - } - namespace marketplace { - const v1: { - MsgClientImpl: typeof _213.MsgClientImpl; - QueryClientImpl: typeof _207.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - sellOrder(request: _87.QuerySellOrderRequest): Promise<_87.QuerySellOrderResponse>; - sellOrders(request?: _87.QuerySellOrdersRequest): Promise<_87.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _87.QuerySellOrdersByBatchRequest): Promise<_87.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _87.QuerySellOrdersBySellerRequest): Promise<_87.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _87.QueryAllowedDenomsRequest): Promise<_87.QueryAllowedDenomsResponse>; - }; - LCDQueryClient: typeof _201.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - sell(value: _89.MsgSell): { - typeUrl: string; - value: Uint8Array; - }; - updateSellOrders(value: _89.MsgUpdateSellOrders): { - typeUrl: string; - value: Uint8Array; - }; - cancelSellOrder(value: _89.MsgCancelSellOrder): { - typeUrl: string; - value: Uint8Array; - }; - buyDirect(value: _89.MsgBuyDirect): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedDenom(value: _89.MsgAddAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - sell(value: _89.MsgSell): { - typeUrl: string; - value: _89.MsgSell; - }; - updateSellOrders(value: _89.MsgUpdateSellOrders): { - typeUrl: string; - value: _89.MsgUpdateSellOrders; - }; - cancelSellOrder(value: _89.MsgCancelSellOrder): { - typeUrl: string; - value: _89.MsgCancelSellOrder; - }; - buyDirect(value: _89.MsgBuyDirect): { - typeUrl: string; - value: _89.MsgBuyDirect; - }; - addAllowedDenom(value: _89.MsgAddAllowedDenom): { - typeUrl: string; - value: _89.MsgAddAllowedDenom; - }; - removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { - typeUrl: string; - value: _89.MsgRemoveAllowedDenom; - }; - }; - fromPartial: { - sell(value: _89.MsgSell): { - typeUrl: string; - value: _89.MsgSell; - }; - updateSellOrders(value: _89.MsgUpdateSellOrders): { - typeUrl: string; - value: _89.MsgUpdateSellOrders; - }; - cancelSellOrder(value: _89.MsgCancelSellOrder): { - typeUrl: string; - value: _89.MsgCancelSellOrder; - }; - buyDirect(value: _89.MsgBuyDirect): { - typeUrl: string; - value: _89.MsgBuyDirect; - }; - addAllowedDenom(value: _89.MsgAddAllowedDenom): { - typeUrl: string; - value: _89.MsgAddAllowedDenom; - }; - removeAllowedDenom(value: _89.MsgRemoveAllowedDenom): { - typeUrl: string; - value: _89.MsgRemoveAllowedDenom; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: _89.MsgSell) => _89.MsgSellAmino; - fromAmino: (object: _89.MsgSellAmino) => _89.MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: _89.MsgUpdateSellOrders) => _89.MsgUpdateSellOrdersAmino; - fromAmino: (object: _89.MsgUpdateSellOrdersAmino) => _89.MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: _89.MsgCancelSellOrder) => _89.MsgCancelSellOrderAmino; - fromAmino: (object: _89.MsgCancelSellOrderAmino) => _89.MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: _89.MsgBuyDirect) => _89.MsgBuyDirectAmino; - fromAmino: (object: _89.MsgBuyDirectAmino) => _89.MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: _89.MsgAddAllowedDenom) => _89.MsgAddAllowedDenomAmino; - fromAmino: (object: _89.MsgAddAllowedDenomAmino) => _89.MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: _89.MsgRemoveAllowedDenom) => _89.MsgRemoveAllowedDenomAmino; - fromAmino: (object: _89.MsgRemoveAllowedDenomAmino) => _89.MsgRemoveAllowedDenom; - }; - }; - AllowDenomProposal: { - typeUrl: string; - encode(message: _90.AllowDenomProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _90.AllowDenomProposal; - fromPartial(object: Partial<_90.AllowDenomProposal>): _90.AllowDenomProposal; - fromAmino(object: _90.AllowDenomProposalAmino): _90.AllowDenomProposal; - toAmino(message: _90.AllowDenomProposal): _90.AllowDenomProposalAmino; - fromAminoMsg(object: _90.AllowDenomProposalAminoMsg): _90.AllowDenomProposal; - fromProtoMsg(message: _90.AllowDenomProposalProtoMsg): _90.AllowDenomProposal; - toProto(message: _90.AllowDenomProposal): Uint8Array; - toProtoMsg(message: _90.AllowDenomProposal): _90.AllowDenomProposalProtoMsg; - }; - MsgSell: { - typeUrl: string; - encode(message: _89.MsgSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSell; - fromPartial(object: Partial<_89.MsgSell>): _89.MsgSell; - fromAmino(object: _89.MsgSellAmino): _89.MsgSell; - toAmino(message: _89.MsgSell): _89.MsgSellAmino; - fromAminoMsg(object: _89.MsgSellAminoMsg): _89.MsgSell; - toAminoMsg(message: _89.MsgSell): _89.MsgSellAminoMsg; - fromProtoMsg(message: _89.MsgSellProtoMsg): _89.MsgSell; - toProto(message: _89.MsgSell): Uint8Array; - toProtoMsg(message: _89.MsgSell): _89.MsgSellProtoMsg; - }; - MsgSell_Order: { - typeUrl: string; - encode(message: _89.MsgSell_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSell_Order; - fromPartial(object: Partial<_89.MsgSell_Order>): _89.MsgSell_Order; - fromAmino(object: _89.MsgSell_OrderAmino): _89.MsgSell_Order; - toAmino(message: _89.MsgSell_Order): _89.MsgSell_OrderAmino; - fromAminoMsg(object: _89.MsgSell_OrderAminoMsg): _89.MsgSell_Order; - fromProtoMsg(message: _89.MsgSell_OrderProtoMsg): _89.MsgSell_Order; - toProto(message: _89.MsgSell_Order): Uint8Array; - toProtoMsg(message: _89.MsgSell_Order): _89.MsgSell_OrderProtoMsg; - }; - MsgSellResponse: { - typeUrl: string; - encode(message: _89.MsgSellResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgSellResponse; - fromPartial(object: Partial<_89.MsgSellResponse>): _89.MsgSellResponse; - fromAmino(object: _89.MsgSellResponseAmino): _89.MsgSellResponse; - toAmino(message: _89.MsgSellResponse): _89.MsgSellResponseAmino; - fromAminoMsg(object: _89.MsgSellResponseAminoMsg): _89.MsgSellResponse; - fromProtoMsg(message: _89.MsgSellResponseProtoMsg): _89.MsgSellResponse; - toProto(message: _89.MsgSellResponse): Uint8Array; - toProtoMsg(message: _89.MsgSellResponse): _89.MsgSellResponseProtoMsg; - }; - MsgUpdateSellOrders: { - typeUrl: string; - encode(message: _89.MsgUpdateSellOrders, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrders; - fromPartial(object: Partial<_89.MsgUpdateSellOrders>): _89.MsgUpdateSellOrders; - fromAmino(object: _89.MsgUpdateSellOrdersAmino): _89.MsgUpdateSellOrders; - toAmino(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersAmino; - fromAminoMsg(object: _89.MsgUpdateSellOrdersAminoMsg): _89.MsgUpdateSellOrders; - toAminoMsg(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersAminoMsg; - fromProtoMsg(message: _89.MsgUpdateSellOrdersProtoMsg): _89.MsgUpdateSellOrders; - toProto(message: _89.MsgUpdateSellOrders): Uint8Array; - toProtoMsg(message: _89.MsgUpdateSellOrders): _89.MsgUpdateSellOrdersProtoMsg; - }; - MsgUpdateSellOrders_Update: { - typeUrl: string; - encode(message: _89.MsgUpdateSellOrders_Update, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrders_Update; - fromPartial(object: Partial<_89.MsgUpdateSellOrders_Update>): _89.MsgUpdateSellOrders_Update; - fromAmino(object: _89.MsgUpdateSellOrders_UpdateAmino): _89.MsgUpdateSellOrders_Update; - toAmino(message: _89.MsgUpdateSellOrders_Update): _89.MsgUpdateSellOrders_UpdateAmino; - fromAminoMsg(object: _89.MsgUpdateSellOrders_UpdateAminoMsg): _89.MsgUpdateSellOrders_Update; - fromProtoMsg(message: _89.MsgUpdateSellOrders_UpdateProtoMsg): _89.MsgUpdateSellOrders_Update; - toProto(message: _89.MsgUpdateSellOrders_Update): Uint8Array; - toProtoMsg(message: _89.MsgUpdateSellOrders_Update): _89.MsgUpdateSellOrders_UpdateProtoMsg; - }; - MsgUpdateSellOrdersResponse: { - typeUrl: string; - encode(_: _89.MsgUpdateSellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgUpdateSellOrdersResponse; - fromPartial(_: Partial<_89.MsgUpdateSellOrdersResponse>): _89.MsgUpdateSellOrdersResponse; - fromAmino(_: _89.MsgUpdateSellOrdersResponseAmino): _89.MsgUpdateSellOrdersResponse; - toAmino(_: _89.MsgUpdateSellOrdersResponse): _89.MsgUpdateSellOrdersResponseAmino; - fromAminoMsg(object: _89.MsgUpdateSellOrdersResponseAminoMsg): _89.MsgUpdateSellOrdersResponse; - fromProtoMsg(message: _89.MsgUpdateSellOrdersResponseProtoMsg): _89.MsgUpdateSellOrdersResponse; - toProto(message: _89.MsgUpdateSellOrdersResponse): Uint8Array; - toProtoMsg(message: _89.MsgUpdateSellOrdersResponse): _89.MsgUpdateSellOrdersResponseProtoMsg; - }; - MsgCancelSellOrder: { - typeUrl: string; - encode(message: _89.MsgCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgCancelSellOrder; - fromPartial(object: Partial<_89.MsgCancelSellOrder>): _89.MsgCancelSellOrder; - fromAmino(object: _89.MsgCancelSellOrderAmino): _89.MsgCancelSellOrder; - toAmino(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderAmino; - fromAminoMsg(object: _89.MsgCancelSellOrderAminoMsg): _89.MsgCancelSellOrder; - toAminoMsg(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderAminoMsg; - fromProtoMsg(message: _89.MsgCancelSellOrderProtoMsg): _89.MsgCancelSellOrder; - toProto(message: _89.MsgCancelSellOrder): Uint8Array; - toProtoMsg(message: _89.MsgCancelSellOrder): _89.MsgCancelSellOrderProtoMsg; - }; - MsgCancelSellOrderResponse: { - typeUrl: string; - encode(_: _89.MsgCancelSellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgCancelSellOrderResponse; - fromPartial(_: Partial<_89.MsgCancelSellOrderResponse>): _89.MsgCancelSellOrderResponse; - fromAmino(_: _89.MsgCancelSellOrderResponseAmino): _89.MsgCancelSellOrderResponse; - toAmino(_: _89.MsgCancelSellOrderResponse): _89.MsgCancelSellOrderResponseAmino; - fromAminoMsg(object: _89.MsgCancelSellOrderResponseAminoMsg): _89.MsgCancelSellOrderResponse; - fromProtoMsg(message: _89.MsgCancelSellOrderResponseProtoMsg): _89.MsgCancelSellOrderResponse; - toProto(message: _89.MsgCancelSellOrderResponse): Uint8Array; - toProtoMsg(message: _89.MsgCancelSellOrderResponse): _89.MsgCancelSellOrderResponseProtoMsg; - }; - MsgBuyDirect: { - typeUrl: string; - encode(message: _89.MsgBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirect; - fromPartial(object: Partial<_89.MsgBuyDirect>): _89.MsgBuyDirect; - fromAmino(object: _89.MsgBuyDirectAmino): _89.MsgBuyDirect; - toAmino(message: _89.MsgBuyDirect): _89.MsgBuyDirectAmino; - fromAminoMsg(object: _89.MsgBuyDirectAminoMsg): _89.MsgBuyDirect; - toAminoMsg(message: _89.MsgBuyDirect): _89.MsgBuyDirectAminoMsg; - fromProtoMsg(message: _89.MsgBuyDirectProtoMsg): _89.MsgBuyDirect; - toProto(message: _89.MsgBuyDirect): Uint8Array; - toProtoMsg(message: _89.MsgBuyDirect): _89.MsgBuyDirectProtoMsg; - }; - MsgBuyDirect_Order: { - typeUrl: string; - encode(message: _89.MsgBuyDirect_Order, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirect_Order; - fromPartial(object: Partial<_89.MsgBuyDirect_Order>): _89.MsgBuyDirect_Order; - fromAmino(object: _89.MsgBuyDirect_OrderAmino): _89.MsgBuyDirect_Order; - toAmino(message: _89.MsgBuyDirect_Order): _89.MsgBuyDirect_OrderAmino; - fromAminoMsg(object: _89.MsgBuyDirect_OrderAminoMsg): _89.MsgBuyDirect_Order; - fromProtoMsg(message: _89.MsgBuyDirect_OrderProtoMsg): _89.MsgBuyDirect_Order; - toProto(message: _89.MsgBuyDirect_Order): Uint8Array; - toProtoMsg(message: _89.MsgBuyDirect_Order): _89.MsgBuyDirect_OrderProtoMsg; - }; - MsgBuyDirectResponse: { - typeUrl: string; - encode(_: _89.MsgBuyDirectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgBuyDirectResponse; - fromPartial(_: Partial<_89.MsgBuyDirectResponse>): _89.MsgBuyDirectResponse; - fromAmino(_: _89.MsgBuyDirectResponseAmino): _89.MsgBuyDirectResponse; - toAmino(_: _89.MsgBuyDirectResponse): _89.MsgBuyDirectResponseAmino; - fromAminoMsg(object: _89.MsgBuyDirectResponseAminoMsg): _89.MsgBuyDirectResponse; - fromProtoMsg(message: _89.MsgBuyDirectResponseProtoMsg): _89.MsgBuyDirectResponse; - toProto(message: _89.MsgBuyDirectResponse): Uint8Array; - toProtoMsg(message: _89.MsgBuyDirectResponse): _89.MsgBuyDirectResponseProtoMsg; - }; - MsgAddAllowedDenom: { - typeUrl: string; - encode(message: _89.MsgAddAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgAddAllowedDenom; - fromPartial(object: Partial<_89.MsgAddAllowedDenom>): _89.MsgAddAllowedDenom; - fromAmino(object: _89.MsgAddAllowedDenomAmino): _89.MsgAddAllowedDenom; - toAmino(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomAmino; - fromAminoMsg(object: _89.MsgAddAllowedDenomAminoMsg): _89.MsgAddAllowedDenom; - toAminoMsg(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomAminoMsg; - fromProtoMsg(message: _89.MsgAddAllowedDenomProtoMsg): _89.MsgAddAllowedDenom; - toProto(message: _89.MsgAddAllowedDenom): Uint8Array; - toProtoMsg(message: _89.MsgAddAllowedDenom): _89.MsgAddAllowedDenomProtoMsg; - }; - MsgAddAllowedDenomResponse: { - typeUrl: string; - encode(_: _89.MsgAddAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgAddAllowedDenomResponse; - fromPartial(_: Partial<_89.MsgAddAllowedDenomResponse>): _89.MsgAddAllowedDenomResponse; - fromAmino(_: _89.MsgAddAllowedDenomResponseAmino): _89.MsgAddAllowedDenomResponse; - toAmino(_: _89.MsgAddAllowedDenomResponse): _89.MsgAddAllowedDenomResponseAmino; - fromAminoMsg(object: _89.MsgAddAllowedDenomResponseAminoMsg): _89.MsgAddAllowedDenomResponse; - fromProtoMsg(message: _89.MsgAddAllowedDenomResponseProtoMsg): _89.MsgAddAllowedDenomResponse; - toProto(message: _89.MsgAddAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _89.MsgAddAllowedDenomResponse): _89.MsgAddAllowedDenomResponseProtoMsg; - }; - MsgRemoveAllowedDenom: { - typeUrl: string; - encode(message: _89.MsgRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgRemoveAllowedDenom; - fromPartial(object: Partial<_89.MsgRemoveAllowedDenom>): _89.MsgRemoveAllowedDenom; - fromAmino(object: _89.MsgRemoveAllowedDenomAmino): _89.MsgRemoveAllowedDenom; - toAmino(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomAmino; - fromAminoMsg(object: _89.MsgRemoveAllowedDenomAminoMsg): _89.MsgRemoveAllowedDenom; - toAminoMsg(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomAminoMsg; - fromProtoMsg(message: _89.MsgRemoveAllowedDenomProtoMsg): _89.MsgRemoveAllowedDenom; - toProto(message: _89.MsgRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _89.MsgRemoveAllowedDenom): _89.MsgRemoveAllowedDenomProtoMsg; - }; - MsgRemoveAllowedDenomResponse: { - typeUrl: string; - encode(_: _89.MsgRemoveAllowedDenomResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _89.MsgRemoveAllowedDenomResponse; - fromPartial(_: Partial<_89.MsgRemoveAllowedDenomResponse>): _89.MsgRemoveAllowedDenomResponse; - fromAmino(_: _89.MsgRemoveAllowedDenomResponseAmino): _89.MsgRemoveAllowedDenomResponse; - toAmino(_: _89.MsgRemoveAllowedDenomResponse): _89.MsgRemoveAllowedDenomResponseAmino; - fromAminoMsg(object: _89.MsgRemoveAllowedDenomResponseAminoMsg): _89.MsgRemoveAllowedDenomResponse; - fromProtoMsg(message: _89.MsgRemoveAllowedDenomResponseProtoMsg): _89.MsgRemoveAllowedDenomResponse; - toProto(message: _89.MsgRemoveAllowedDenomResponse): Uint8Array; - toProtoMsg(message: _89.MsgRemoveAllowedDenomResponse): _89.MsgRemoveAllowedDenomResponseProtoMsg; - }; - SellOrder: { - typeUrl: string; - encode(message: _88.SellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.SellOrder; - fromPartial(object: Partial<_88.SellOrder>): _88.SellOrder; - fromAmino(object: _88.SellOrderAmino): _88.SellOrder; - toAmino(message: _88.SellOrder): _88.SellOrderAmino; - fromAminoMsg(object: _88.SellOrderAminoMsg): _88.SellOrder; - fromProtoMsg(message: _88.SellOrderProtoMsg): _88.SellOrder; - toProto(message: _88.SellOrder): Uint8Array; - toProtoMsg(message: _88.SellOrder): _88.SellOrderProtoMsg; - }; - AllowedDenom: { - typeUrl: string; - encode(message: _88.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.AllowedDenom; - fromPartial(object: Partial<_88.AllowedDenom>): _88.AllowedDenom; - fromAmino(object: _88.AllowedDenomAmino): _88.AllowedDenom; - toAmino(message: _88.AllowedDenom): _88.AllowedDenomAmino; - fromAminoMsg(object: _88.AllowedDenomAminoMsg): _88.AllowedDenom; - fromProtoMsg(message: _88.AllowedDenomProtoMsg): _88.AllowedDenom; - toProto(message: _88.AllowedDenom): Uint8Array; - toProtoMsg(message: _88.AllowedDenom): _88.AllowedDenomProtoMsg; - }; - Market: { - typeUrl: string; - encode(message: _88.Market, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _88.Market; - fromPartial(object: Partial<_88.Market>): _88.Market; - fromAmino(object: _88.MarketAmino): _88.Market; - toAmino(message: _88.Market): _88.MarketAmino; - fromAminoMsg(object: _88.MarketAminoMsg): _88.Market; - fromProtoMsg(message: _88.MarketProtoMsg): _88.Market; - toProto(message: _88.Market): Uint8Array; - toProtoMsg(message: _88.Market): _88.MarketProtoMsg; - }; - QuerySellOrderRequest: { - typeUrl: string; - encode(message: _87.QuerySellOrderRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrderRequest; - fromPartial(object: Partial<_87.QuerySellOrderRequest>): _87.QuerySellOrderRequest; - fromAmino(object: _87.QuerySellOrderRequestAmino): _87.QuerySellOrderRequest; - toAmino(message: _87.QuerySellOrderRequest): _87.QuerySellOrderRequestAmino; - fromAminoMsg(object: _87.QuerySellOrderRequestAminoMsg): _87.QuerySellOrderRequest; - fromProtoMsg(message: _87.QuerySellOrderRequestProtoMsg): _87.QuerySellOrderRequest; - toProto(message: _87.QuerySellOrderRequest): Uint8Array; - toProtoMsg(message: _87.QuerySellOrderRequest): _87.QuerySellOrderRequestProtoMsg; - }; - QuerySellOrderResponse: { - typeUrl: string; - encode(message: _87.QuerySellOrderResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrderResponse; - fromPartial(object: Partial<_87.QuerySellOrderResponse>): _87.QuerySellOrderResponse; - fromAmino(object: _87.QuerySellOrderResponseAmino): _87.QuerySellOrderResponse; - toAmino(message: _87.QuerySellOrderResponse): _87.QuerySellOrderResponseAmino; - fromAminoMsg(object: _87.QuerySellOrderResponseAminoMsg): _87.QuerySellOrderResponse; - fromProtoMsg(message: _87.QuerySellOrderResponseProtoMsg): _87.QuerySellOrderResponse; - toProto(message: _87.QuerySellOrderResponse): Uint8Array; - toProtoMsg(message: _87.QuerySellOrderResponse): _87.QuerySellOrderResponseProtoMsg; - }; - QuerySellOrdersRequest: { - typeUrl: string; - encode(message: _87.QuerySellOrdersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersRequest; - fromPartial(object: Partial<_87.QuerySellOrdersRequest>): _87.QuerySellOrdersRequest; - fromAmino(object: _87.QuerySellOrdersRequestAmino): _87.QuerySellOrdersRequest; - toAmino(message: _87.QuerySellOrdersRequest): _87.QuerySellOrdersRequestAmino; - fromAminoMsg(object: _87.QuerySellOrdersRequestAminoMsg): _87.QuerySellOrdersRequest; - fromProtoMsg(message: _87.QuerySellOrdersRequestProtoMsg): _87.QuerySellOrdersRequest; - toProto(message: _87.QuerySellOrdersRequest): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersRequest): _87.QuerySellOrdersRequestProtoMsg; - }; - QuerySellOrdersResponse: { - typeUrl: string; - encode(message: _87.QuerySellOrdersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersResponse; - fromPartial(object: Partial<_87.QuerySellOrdersResponse>): _87.QuerySellOrdersResponse; - fromAmino(object: _87.QuerySellOrdersResponseAmino): _87.QuerySellOrdersResponse; - toAmino(message: _87.QuerySellOrdersResponse): _87.QuerySellOrdersResponseAmino; - fromAminoMsg(object: _87.QuerySellOrdersResponseAminoMsg): _87.QuerySellOrdersResponse; - fromProtoMsg(message: _87.QuerySellOrdersResponseProtoMsg): _87.QuerySellOrdersResponse; - toProto(message: _87.QuerySellOrdersResponse): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersResponse): _87.QuerySellOrdersResponseProtoMsg; - }; - QuerySellOrdersByBatchRequest: { - typeUrl: string; - encode(message: _87.QuerySellOrdersByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersByBatchRequest; - fromPartial(object: Partial<_87.QuerySellOrdersByBatchRequest>): _87.QuerySellOrdersByBatchRequest; - fromAmino(object: _87.QuerySellOrdersByBatchRequestAmino): _87.QuerySellOrdersByBatchRequest; - toAmino(message: _87.QuerySellOrdersByBatchRequest): _87.QuerySellOrdersByBatchRequestAmino; - fromAminoMsg(object: _87.QuerySellOrdersByBatchRequestAminoMsg): _87.QuerySellOrdersByBatchRequest; - fromProtoMsg(message: _87.QuerySellOrdersByBatchRequestProtoMsg): _87.QuerySellOrdersByBatchRequest; - toProto(message: _87.QuerySellOrdersByBatchRequest): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersByBatchRequest): _87.QuerySellOrdersByBatchRequestProtoMsg; - }; - QuerySellOrdersByBatchResponse: { - typeUrl: string; - encode(message: _87.QuerySellOrdersByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersByBatchResponse; - fromPartial(object: Partial<_87.QuerySellOrdersByBatchResponse>): _87.QuerySellOrdersByBatchResponse; - fromAmino(object: _87.QuerySellOrdersByBatchResponseAmino): _87.QuerySellOrdersByBatchResponse; - toAmino(message: _87.QuerySellOrdersByBatchResponse): _87.QuerySellOrdersByBatchResponseAmino; - fromAminoMsg(object: _87.QuerySellOrdersByBatchResponseAminoMsg): _87.QuerySellOrdersByBatchResponse; - fromProtoMsg(message: _87.QuerySellOrdersByBatchResponseProtoMsg): _87.QuerySellOrdersByBatchResponse; - toProto(message: _87.QuerySellOrdersByBatchResponse): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersByBatchResponse): _87.QuerySellOrdersByBatchResponseProtoMsg; - }; - QuerySellOrdersBySellerRequest: { - typeUrl: string; - encode(message: _87.QuerySellOrdersBySellerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersBySellerRequest; - fromPartial(object: Partial<_87.QuerySellOrdersBySellerRequest>): _87.QuerySellOrdersBySellerRequest; - fromAmino(object: _87.QuerySellOrdersBySellerRequestAmino): _87.QuerySellOrdersBySellerRequest; - toAmino(message: _87.QuerySellOrdersBySellerRequest): _87.QuerySellOrdersBySellerRequestAmino; - fromAminoMsg(object: _87.QuerySellOrdersBySellerRequestAminoMsg): _87.QuerySellOrdersBySellerRequest; - fromProtoMsg(message: _87.QuerySellOrdersBySellerRequestProtoMsg): _87.QuerySellOrdersBySellerRequest; - toProto(message: _87.QuerySellOrdersBySellerRequest): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersBySellerRequest): _87.QuerySellOrdersBySellerRequestProtoMsg; - }; - QuerySellOrdersBySellerResponse: { - typeUrl: string; - encode(message: _87.QuerySellOrdersBySellerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QuerySellOrdersBySellerResponse; - fromPartial(object: Partial<_87.QuerySellOrdersBySellerResponse>): _87.QuerySellOrdersBySellerResponse; - fromAmino(object: _87.QuerySellOrdersBySellerResponseAmino): _87.QuerySellOrdersBySellerResponse; - toAmino(message: _87.QuerySellOrdersBySellerResponse): _87.QuerySellOrdersBySellerResponseAmino; - fromAminoMsg(object: _87.QuerySellOrdersBySellerResponseAminoMsg): _87.QuerySellOrdersBySellerResponse; - fromProtoMsg(message: _87.QuerySellOrdersBySellerResponseProtoMsg): _87.QuerySellOrdersBySellerResponse; - toProto(message: _87.QuerySellOrdersBySellerResponse): Uint8Array; - toProtoMsg(message: _87.QuerySellOrdersBySellerResponse): _87.QuerySellOrdersBySellerResponseProtoMsg; - }; - QueryAllowedDenomsRequest: { - typeUrl: string; - encode(message: _87.QueryAllowedDenomsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QueryAllowedDenomsRequest; - fromPartial(object: Partial<_87.QueryAllowedDenomsRequest>): _87.QueryAllowedDenomsRequest; - fromAmino(object: _87.QueryAllowedDenomsRequestAmino): _87.QueryAllowedDenomsRequest; - toAmino(message: _87.QueryAllowedDenomsRequest): _87.QueryAllowedDenomsRequestAmino; - fromAminoMsg(object: _87.QueryAllowedDenomsRequestAminoMsg): _87.QueryAllowedDenomsRequest; - fromProtoMsg(message: _87.QueryAllowedDenomsRequestProtoMsg): _87.QueryAllowedDenomsRequest; - toProto(message: _87.QueryAllowedDenomsRequest): Uint8Array; - toProtoMsg(message: _87.QueryAllowedDenomsRequest): _87.QueryAllowedDenomsRequestProtoMsg; - }; - QueryAllowedDenomsResponse: { - typeUrl: string; - encode(message: _87.QueryAllowedDenomsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.QueryAllowedDenomsResponse; - fromPartial(object: Partial<_87.QueryAllowedDenomsResponse>): _87.QueryAllowedDenomsResponse; - fromAmino(object: _87.QueryAllowedDenomsResponseAmino): _87.QueryAllowedDenomsResponse; - toAmino(message: _87.QueryAllowedDenomsResponse): _87.QueryAllowedDenomsResponseAmino; - fromAminoMsg(object: _87.QueryAllowedDenomsResponseAminoMsg): _87.QueryAllowedDenomsResponse; - fromProtoMsg(message: _87.QueryAllowedDenomsResponseProtoMsg): _87.QueryAllowedDenomsResponse; - toProto(message: _87.QueryAllowedDenomsResponse): Uint8Array; - toProtoMsg(message: _87.QueryAllowedDenomsResponse): _87.QueryAllowedDenomsResponseProtoMsg; - }; - SellOrderInfo: { - typeUrl: string; - encode(message: _87.SellOrderInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _87.SellOrderInfo; - fromPartial(object: Partial<_87.SellOrderInfo>): _87.SellOrderInfo; - fromAmino(object: _87.SellOrderInfoAmino): _87.SellOrderInfo; - toAmino(message: _87.SellOrderInfo): _87.SellOrderInfoAmino; - fromAminoMsg(object: _87.SellOrderInfoAminoMsg): _87.SellOrderInfo; - fromProtoMsg(message: _87.SellOrderInfoProtoMsg): _87.SellOrderInfo; - toProto(message: _87.SellOrderInfo): Uint8Array; - toProtoMsg(message: _87.SellOrderInfo): _87.SellOrderInfoProtoMsg; - }; - EventSell: { - typeUrl: string; - encode(message: _86.EventSell, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventSell; - fromPartial(object: Partial<_86.EventSell>): _86.EventSell; - fromAmino(object: _86.EventSellAmino): _86.EventSell; - toAmino(message: _86.EventSell): _86.EventSellAmino; - fromAminoMsg(object: _86.EventSellAminoMsg): _86.EventSell; - fromProtoMsg(message: _86.EventSellProtoMsg): _86.EventSell; - toProto(message: _86.EventSell): Uint8Array; - toProtoMsg(message: _86.EventSell): _86.EventSellProtoMsg; - }; - EventBuyDirect: { - typeUrl: string; - encode(message: _86.EventBuyDirect, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventBuyDirect; - fromPartial(object: Partial<_86.EventBuyDirect>): _86.EventBuyDirect; - fromAmino(object: _86.EventBuyDirectAmino): _86.EventBuyDirect; - toAmino(message: _86.EventBuyDirect): _86.EventBuyDirectAmino; - fromAminoMsg(object: _86.EventBuyDirectAminoMsg): _86.EventBuyDirect; - fromProtoMsg(message: _86.EventBuyDirectProtoMsg): _86.EventBuyDirect; - toProto(message: _86.EventBuyDirect): Uint8Array; - toProtoMsg(message: _86.EventBuyDirect): _86.EventBuyDirectProtoMsg; - }; - EventUpdateSellOrder: { - typeUrl: string; - encode(message: _86.EventUpdateSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventUpdateSellOrder; - fromPartial(object: Partial<_86.EventUpdateSellOrder>): _86.EventUpdateSellOrder; - fromAmino(object: _86.EventUpdateSellOrderAmino): _86.EventUpdateSellOrder; - toAmino(message: _86.EventUpdateSellOrder): _86.EventUpdateSellOrderAmino; - fromAminoMsg(object: _86.EventUpdateSellOrderAminoMsg): _86.EventUpdateSellOrder; - fromProtoMsg(message: _86.EventUpdateSellOrderProtoMsg): _86.EventUpdateSellOrder; - toProto(message: _86.EventUpdateSellOrder): Uint8Array; - toProtoMsg(message: _86.EventUpdateSellOrder): _86.EventUpdateSellOrderProtoMsg; - }; - EventCancelSellOrder: { - typeUrl: string; - encode(message: _86.EventCancelSellOrder, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventCancelSellOrder; - fromPartial(object: Partial<_86.EventCancelSellOrder>): _86.EventCancelSellOrder; - fromAmino(object: _86.EventCancelSellOrderAmino): _86.EventCancelSellOrder; - toAmino(message: _86.EventCancelSellOrder): _86.EventCancelSellOrderAmino; - fromAminoMsg(object: _86.EventCancelSellOrderAminoMsg): _86.EventCancelSellOrder; - fromProtoMsg(message: _86.EventCancelSellOrderProtoMsg): _86.EventCancelSellOrder; - toProto(message: _86.EventCancelSellOrder): Uint8Array; - toProtoMsg(message: _86.EventCancelSellOrder): _86.EventCancelSellOrderProtoMsg; - }; - EventAllowDenom: { - typeUrl: string; - encode(message: _86.EventAllowDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventAllowDenom; - fromPartial(object: Partial<_86.EventAllowDenom>): _86.EventAllowDenom; - fromAmino(object: _86.EventAllowDenomAmino): _86.EventAllowDenom; - toAmino(message: _86.EventAllowDenom): _86.EventAllowDenomAmino; - fromAminoMsg(object: _86.EventAllowDenomAminoMsg): _86.EventAllowDenom; - fromProtoMsg(message: _86.EventAllowDenomProtoMsg): _86.EventAllowDenom; - toProto(message: _86.EventAllowDenom): Uint8Array; - toProtoMsg(message: _86.EventAllowDenom): _86.EventAllowDenomProtoMsg; - }; - EventRemoveAllowedDenom: { - typeUrl: string; - encode(message: _86.EventRemoveAllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _86.EventRemoveAllowedDenom; - fromPartial(object: Partial<_86.EventRemoveAllowedDenom>): _86.EventRemoveAllowedDenom; - fromAmino(object: _86.EventRemoveAllowedDenomAmino): _86.EventRemoveAllowedDenom; - toAmino(message: _86.EventRemoveAllowedDenom): _86.EventRemoveAllowedDenomAmino; - fromAminoMsg(object: _86.EventRemoveAllowedDenomAminoMsg): _86.EventRemoveAllowedDenom; - fromProtoMsg(message: _86.EventRemoveAllowedDenomProtoMsg): _86.EventRemoveAllowedDenom; - toProto(message: _86.EventRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: _86.EventRemoveAllowedDenom): _86.EventRemoveAllowedDenomProtoMsg; - }; - }; - } - namespace orderbook { - const v1alpha1: { - BuyOrderSellOrderMatch: { - typeUrl: string; - encode(message: _91.BuyOrderSellOrderMatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderSellOrderMatch; - fromPartial(object: Partial<_91.BuyOrderSellOrderMatch>): _91.BuyOrderSellOrderMatch; - fromAmino(object: _91.BuyOrderSellOrderMatchAmino): _91.BuyOrderSellOrderMatch; - toAmino(message: _91.BuyOrderSellOrderMatch): _91.BuyOrderSellOrderMatchAmino; - fromAminoMsg(object: _91.BuyOrderSellOrderMatchAminoMsg): _91.BuyOrderSellOrderMatch; - fromProtoMsg(message: _91.BuyOrderSellOrderMatchProtoMsg): _91.BuyOrderSellOrderMatch; - toProto(message: _91.BuyOrderSellOrderMatch): Uint8Array; - toProtoMsg(message: _91.BuyOrderSellOrderMatch): _91.BuyOrderSellOrderMatchProtoMsg; - }; - BuyOrderClassSelector: { - typeUrl: string; - encode(message: _91.BuyOrderClassSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderClassSelector; - fromPartial(object: Partial<_91.BuyOrderClassSelector>): _91.BuyOrderClassSelector; - fromAmino(object: _91.BuyOrderClassSelectorAmino): _91.BuyOrderClassSelector; - toAmino(message: _91.BuyOrderClassSelector): _91.BuyOrderClassSelectorAmino; - fromAminoMsg(object: _91.BuyOrderClassSelectorAminoMsg): _91.BuyOrderClassSelector; - fromProtoMsg(message: _91.BuyOrderClassSelectorProtoMsg): _91.BuyOrderClassSelector; - toProto(message: _91.BuyOrderClassSelector): Uint8Array; - toProtoMsg(message: _91.BuyOrderClassSelector): _91.BuyOrderClassSelectorProtoMsg; - }; - BuyOrderProjectSelector: { - typeUrl: string; - encode(message: _91.BuyOrderProjectSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderProjectSelector; - fromPartial(object: Partial<_91.BuyOrderProjectSelector>): _91.BuyOrderProjectSelector; - fromAmino(object: _91.BuyOrderProjectSelectorAmino): _91.BuyOrderProjectSelector; - toAmino(message: _91.BuyOrderProjectSelector): _91.BuyOrderProjectSelectorAmino; - fromAminoMsg(object: _91.BuyOrderProjectSelectorAminoMsg): _91.BuyOrderProjectSelector; - fromProtoMsg(message: _91.BuyOrderProjectSelectorProtoMsg): _91.BuyOrderProjectSelector; - toProto(message: _91.BuyOrderProjectSelector): Uint8Array; - toProtoMsg(message: _91.BuyOrderProjectSelector): _91.BuyOrderProjectSelectorProtoMsg; - }; - BuyOrderBatchSelector: { - typeUrl: string; - encode(message: _91.BuyOrderBatchSelector, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _91.BuyOrderBatchSelector; - fromPartial(object: Partial<_91.BuyOrderBatchSelector>): _91.BuyOrderBatchSelector; - fromAmino(object: _91.BuyOrderBatchSelectorAmino): _91.BuyOrderBatchSelector; - toAmino(message: _91.BuyOrderBatchSelector): _91.BuyOrderBatchSelectorAmino; - fromAminoMsg(object: _91.BuyOrderBatchSelectorAminoMsg): _91.BuyOrderBatchSelector; - fromProtoMsg(message: _91.BuyOrderBatchSelectorProtoMsg): _91.BuyOrderBatchSelector; - toProto(message: _91.BuyOrderBatchSelector): Uint8Array; - toProtoMsg(message: _91.BuyOrderBatchSelector): _91.BuyOrderBatchSelectorProtoMsg; - }; - }; - } - const v1: { - MsgClientImpl: typeof _214.MsgClientImpl; - QueryClientImpl: typeof _208.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _93.QueryClassesRequest): Promise<_93.QueryClassesResponse>; - classesByAdmin(request: _93.QueryClassesByAdminRequest): Promise<_93.QueryClassesByAdminResponse>; - class(request: _93.QueryClassRequest): Promise<_93.QueryClassResponse>; - classIssuers(request: _93.QueryClassIssuersRequest): Promise<_93.QueryClassIssuersResponse>; - projects(request?: _93.QueryProjectsRequest): Promise<_93.QueryProjectsResponse>; - projectsByClass(request: _93.QueryProjectsByClassRequest): Promise<_93.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _93.QueryProjectsByReferenceIdRequest): Promise<_93.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _93.QueryProjectsByAdminRequest): Promise<_93.QueryProjectsByAdminResponse>; - project(request: _93.QueryProjectRequest): Promise<_93.QueryProjectResponse>; - batches(request?: _93.QueryBatchesRequest): Promise<_93.QueryBatchesResponse>; - batchesByIssuer(request: _93.QueryBatchesByIssuerRequest): Promise<_93.QueryBatchesByIssuerResponse>; - batchesByClass(request: _93.QueryBatchesByClassRequest): Promise<_93.QueryBatchesByClassResponse>; - batchesByProject(request: _93.QueryBatchesByProjectRequest): Promise<_93.QueryBatchesByProjectResponse>; - batch(request: _93.QueryBatchRequest): Promise<_93.QueryBatchResponse>; - balance(request: _93.QueryBalanceRequest): Promise<_93.QueryBalanceResponse>; - balances(request: _93.QueryBalancesRequest): Promise<_93.QueryBalancesResponse>; - balancesByBatch(request: _93.QueryBalancesByBatchRequest): Promise<_93.QueryBalancesByBatchResponse>; - allBalances(request?: _93.QueryAllBalancesRequest): Promise<_93.QueryAllBalancesResponse>; - supply(request: _93.QuerySupplyRequest): Promise<_93.QuerySupplyResponse>; - creditTypes(request?: _93.QueryCreditTypesRequest): Promise<_93.QueryCreditTypesResponse>; - params(request?: _93.QueryParamsRequest): Promise<_93.QueryParamsResponse>; - creditType(request: _93.QueryCreditTypeRequest): Promise<_93.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _93.QueryClassCreatorAllowlistRequest): Promise<_93.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _93.QueryAllowedClassCreatorsRequest): Promise<_93.QueryAllowedClassCreatorsResponse>; - classFee(request?: _93.QueryClassFeeRequest): Promise<_93.QueryClassFeeResponse>; - allowedBridgeChains(request?: _93.QueryAllowedBridgeChainsRequest): Promise<_93.QueryAllowedBridgeChainsResponse>; - }; - LCDQueryClient: typeof _202.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClass(value: _95.MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createProject(value: _95.MsgCreateProject): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: _95.MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - mintBatchCredits(value: _95.MsgMintBatchCredits): { - typeUrl: string; - value: Uint8Array; - }; - sealBatch(value: _95.MsgSealBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: _95.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: _95.MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: _95.MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: _95.MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: _95.MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: _95.MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { - typeUrl: string; - value: Uint8Array; - }; - bridge(value: _95.MsgBridge): { - typeUrl: string; - value: Uint8Array; - }; - bridgeReceive(value: _95.MsgBridgeReceive): { - typeUrl: string; - value: Uint8Array; - }; - addCreditType(value: _95.MsgAddCreditType): { - typeUrl: string; - value: Uint8Array; - }; - setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: Uint8Array; - }; - addClassCreator(value: _95.MsgAddClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - removeClassCreator(value: _95.MsgRemoveClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - updateClassFee(value: _95.MsgUpdateClassFee): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: _95.MsgCreateClass): { - typeUrl: string; - value: _95.MsgCreateClass; - }; - createProject(value: _95.MsgCreateProject): { - typeUrl: string; - value: _95.MsgCreateProject; - }; - createBatch(value: _95.MsgCreateBatch): { - typeUrl: string; - value: _95.MsgCreateBatch; - }; - mintBatchCredits(value: _95.MsgMintBatchCredits): { - typeUrl: string; - value: _95.MsgMintBatchCredits; - }; - sealBatch(value: _95.MsgSealBatch): { - typeUrl: string; - value: _95.MsgSealBatch; - }; - send(value: _95.MsgSend): { - typeUrl: string; - value: _95.MsgSend; - }; - retire(value: _95.MsgRetire): { - typeUrl: string; - value: _95.MsgRetire; - }; - cancel(value: _95.MsgCancel): { - typeUrl: string; - value: _95.MsgCancel; - }; - updateClassAdmin(value: _95.MsgUpdateClassAdmin): { - typeUrl: string; - value: _95.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _95.MsgUpdateClassIssuers): { - typeUrl: string; - value: _95.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _95.MsgUpdateClassMetadata): { - typeUrl: string; - value: _95.MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { - typeUrl: string; - value: _95.MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { - typeUrl: string; - value: _95.MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { - typeUrl: string; - value: _95.MsgUpdateBatchMetadata; - }; - bridge(value: _95.MsgBridge): { - typeUrl: string; - value: _95.MsgBridge; - }; - bridgeReceive(value: _95.MsgBridgeReceive): { - typeUrl: string; - value: _95.MsgBridgeReceive; - }; - addCreditType(value: _95.MsgAddCreditType): { - typeUrl: string; - value: _95.MsgAddCreditType; - }; - setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: _95.MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: _95.MsgAddClassCreator): { - typeUrl: string; - value: _95.MsgAddClassCreator; - }; - removeClassCreator(value: _95.MsgRemoveClassCreator): { - typeUrl: string; - value: _95.MsgRemoveClassCreator; - }; - updateClassFee(value: _95.MsgUpdateClassFee): { - typeUrl: string; - value: _95.MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: _95.MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: _95.MsgRemoveAllowedBridgeChain; - }; - }; - fromPartial: { - createClass(value: _95.MsgCreateClass): { - typeUrl: string; - value: _95.MsgCreateClass; - }; - createProject(value: _95.MsgCreateProject): { - typeUrl: string; - value: _95.MsgCreateProject; - }; - createBatch(value: _95.MsgCreateBatch): { - typeUrl: string; - value: _95.MsgCreateBatch; - }; - mintBatchCredits(value: _95.MsgMintBatchCredits): { - typeUrl: string; - value: _95.MsgMintBatchCredits; - }; - sealBatch(value: _95.MsgSealBatch): { - typeUrl: string; - value: _95.MsgSealBatch; - }; - send(value: _95.MsgSend): { - typeUrl: string; - value: _95.MsgSend; - }; - retire(value: _95.MsgRetire): { - typeUrl: string; - value: _95.MsgRetire; - }; - cancel(value: _95.MsgCancel): { - typeUrl: string; - value: _95.MsgCancel; - }; - updateClassAdmin(value: _95.MsgUpdateClassAdmin): { - typeUrl: string; - value: _95.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _95.MsgUpdateClassIssuers): { - typeUrl: string; - value: _95.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _95.MsgUpdateClassMetadata): { - typeUrl: string; - value: _95.MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: _95.MsgUpdateProjectAdmin): { - typeUrl: string; - value: _95.MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: _95.MsgUpdateProjectMetadata): { - typeUrl: string; - value: _95.MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: _95.MsgUpdateBatchMetadata): { - typeUrl: string; - value: _95.MsgUpdateBatchMetadata; - }; - bridge(value: _95.MsgBridge): { - typeUrl: string; - value: _95.MsgBridge; - }; - bridgeReceive(value: _95.MsgBridgeReceive): { - typeUrl: string; - value: _95.MsgBridgeReceive; - }; - addCreditType(value: _95.MsgAddCreditType): { - typeUrl: string; - value: _95.MsgAddCreditType; - }; - setClassCreatorAllowlist(value: _95.MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: _95.MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: _95.MsgAddClassCreator): { - typeUrl: string; - value: _95.MsgAddClassCreator; - }; - removeClassCreator(value: _95.MsgRemoveClassCreator): { - typeUrl: string; - value: _95.MsgRemoveClassCreator; - }; - updateClassFee(value: _95.MsgUpdateClassFee): { - typeUrl: string; - value: _95.MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: _95.MsgAddAllowedBridgeChain): { - typeUrl: string; - value: _95.MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: _95.MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: _95.MsgRemoveAllowedBridgeChain; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: _95.MsgCreateClass) => _95.MsgCreateClassAmino; - fromAmino: (object: _95.MsgCreateClassAmino) => _95.MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: _95.MsgCreateProject) => _95.MsgCreateProjectAmino; - fromAmino: (object: _95.MsgCreateProjectAmino) => _95.MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: _95.MsgCreateBatch) => _95.MsgCreateBatchAmino; - fromAmino: (object: _95.MsgCreateBatchAmino) => _95.MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: _95.MsgMintBatchCredits) => _95.MsgMintBatchCreditsAmino; - fromAmino: (object: _95.MsgMintBatchCreditsAmino) => _95.MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: _95.MsgSealBatch) => _95.MsgSealBatchAmino; - fromAmino: (object: _95.MsgSealBatchAmino) => _95.MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: _95.MsgSend) => _95.MsgSendAmino; - fromAmino: (object: _95.MsgSendAmino) => _95.MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: _95.MsgRetire) => _95.MsgRetireAmino; - fromAmino: (object: _95.MsgRetireAmino) => _95.MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: _95.MsgCancel) => _95.MsgCancelAmino; - fromAmino: (object: _95.MsgCancelAmino) => _95.MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: _95.MsgUpdateClassAdmin) => _95.MsgUpdateClassAdminAmino; - fromAmino: (object: _95.MsgUpdateClassAdminAmino) => _95.MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: _95.MsgUpdateClassIssuers) => _95.MsgUpdateClassIssuersAmino; - fromAmino: (object: _95.MsgUpdateClassIssuersAmino) => _95.MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: _95.MsgUpdateClassMetadata) => _95.MsgUpdateClassMetadataAmino; - fromAmino: (object: _95.MsgUpdateClassMetadataAmino) => _95.MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: _95.MsgUpdateProjectAdmin) => _95.MsgUpdateProjectAdminAmino; - fromAmino: (object: _95.MsgUpdateProjectAdminAmino) => _95.MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: _95.MsgUpdateProjectMetadata) => _95.MsgUpdateProjectMetadataAmino; - fromAmino: (object: _95.MsgUpdateProjectMetadataAmino) => _95.MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: _95.MsgUpdateBatchMetadata) => _95.MsgUpdateBatchMetadataAmino; - fromAmino: (object: _95.MsgUpdateBatchMetadataAmino) => _95.MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: _95.MsgBridge) => _95.MsgBridgeAmino; - fromAmino: (object: _95.MsgBridgeAmino) => _95.MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: _95.MsgBridgeReceive) => _95.MsgBridgeReceiveAmino; - fromAmino: (object: _95.MsgBridgeReceiveAmino) => _95.MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: _95.MsgAddCreditType) => _95.MsgAddCreditTypeAmino; - fromAmino: (object: _95.MsgAddCreditTypeAmino) => _95.MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: _95.MsgSetClassCreatorAllowlist) => _95.MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: _95.MsgSetClassCreatorAllowlistAmino) => _95.MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: _95.MsgAddClassCreator) => _95.MsgAddClassCreatorAmino; - fromAmino: (object: _95.MsgAddClassCreatorAmino) => _95.MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: _95.MsgRemoveClassCreator) => _95.MsgRemoveClassCreatorAmino; - fromAmino: (object: _95.MsgRemoveClassCreatorAmino) => _95.MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: _95.MsgUpdateClassFee) => _95.MsgUpdateClassFeeAmino; - fromAmino: (object: _95.MsgUpdateClassFeeAmino) => _95.MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: _95.MsgAddAllowedBridgeChain) => _95.MsgAddAllowedBridgeChainAmino; - fromAmino: (object: _95.MsgAddAllowedBridgeChainAmino) => _95.MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: _95.MsgRemoveAllowedBridgeChain) => _95.MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: _95.MsgRemoveAllowedBridgeChainAmino) => _95.MsgRemoveAllowedBridgeChain; - }; - }; - Params: { - typeUrl: string; - encode(message: _96.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.Params; - fromPartial(object: Partial<_96.Params>): _96.Params; - fromAmino(object: _96.ParamsAmino): _96.Params; - toAmino(message: _96.Params): _96.ParamsAmino; - fromAminoMsg(object: _96.ParamsAminoMsg): _96.Params; - fromProtoMsg(message: _96.ParamsProtoMsg): _96.Params; - toProto(message: _96.Params): Uint8Array; - toProtoMsg(message: _96.Params): _96.ParamsProtoMsg; - }; - Credits: { - typeUrl: string; - encode(message: _96.Credits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.Credits; - fromPartial(object: Partial<_96.Credits>): _96.Credits; - fromAmino(object: _96.CreditsAmino): _96.Credits; - toAmino(message: _96.Credits): _96.CreditsAmino; - fromAminoMsg(object: _96.CreditsAminoMsg): _96.Credits; - fromProtoMsg(message: _96.CreditsProtoMsg): _96.Credits; - toProto(message: _96.Credits): Uint8Array; - toProtoMsg(message: _96.Credits): _96.CreditsProtoMsg; - }; - BatchIssuance: { - typeUrl: string; - encode(message: _96.BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.BatchIssuance; - fromPartial(object: Partial<_96.BatchIssuance>): _96.BatchIssuance; - fromAmino(object: _96.BatchIssuanceAmino): _96.BatchIssuance; - toAmino(message: _96.BatchIssuance): _96.BatchIssuanceAmino; - fromAminoMsg(object: _96.BatchIssuanceAminoMsg): _96.BatchIssuance; - fromProtoMsg(message: _96.BatchIssuanceProtoMsg): _96.BatchIssuance; - toProto(message: _96.BatchIssuance): Uint8Array; - toProtoMsg(message: _96.BatchIssuance): _96.BatchIssuanceProtoMsg; - }; - OriginTx: { - typeUrl: string; - encode(message: _96.OriginTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.OriginTx; - fromPartial(object: Partial<_96.OriginTx>): _96.OriginTx; - fromAmino(object: _96.OriginTxAmino): _96.OriginTx; - toAmino(message: _96.OriginTx): _96.OriginTxAmino; - fromAminoMsg(object: _96.OriginTxAminoMsg): _96.OriginTx; - fromProtoMsg(message: _96.OriginTxProtoMsg): _96.OriginTx; - toProto(message: _96.OriginTx): Uint8Array; - toProtoMsg(message: _96.OriginTx): _96.OriginTxProtoMsg; - }; - CreditTypeProposal: { - typeUrl: string; - encode(message: _96.CreditTypeProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.CreditTypeProposal; - fromPartial(object: Partial<_96.CreditTypeProposal>): _96.CreditTypeProposal; - fromAmino(object: _96.CreditTypeProposalAmino): _96.CreditTypeProposal; - toAmino(message: _96.CreditTypeProposal): _96.CreditTypeProposalAmino; - fromAminoMsg(object: _96.CreditTypeProposalAminoMsg): _96.CreditTypeProposal; - fromProtoMsg(message: _96.CreditTypeProposalProtoMsg): _96.CreditTypeProposal; - toProto(message: _96.CreditTypeProposal): Uint8Array; - toProtoMsg(message: _96.CreditTypeProposal): _96.CreditTypeProposalProtoMsg; - }; - AllowedDenom: { - typeUrl: string; - encode(message: _96.AllowedDenom, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _96.AllowedDenom; - fromPartial(object: Partial<_96.AllowedDenom>): _96.AllowedDenom; - fromAmino(object: _96.AllowedDenomAmino): _96.AllowedDenom; - toAmino(message: _96.AllowedDenom): _96.AllowedDenomAmino; - fromAminoMsg(object: _96.AllowedDenomAminoMsg): _96.AllowedDenom; - fromProtoMsg(message: _96.AllowedDenomProtoMsg): _96.AllowedDenom; - toProto(message: _96.AllowedDenom): Uint8Array; - toProtoMsg(message: _96.AllowedDenom): _96.AllowedDenomProtoMsg; - }; - MsgAddCreditType: { - typeUrl: string; - encode(message: _95.MsgAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddCreditType; - fromPartial(object: Partial<_95.MsgAddCreditType>): _95.MsgAddCreditType; - fromAmino(object: _95.MsgAddCreditTypeAmino): _95.MsgAddCreditType; - toAmino(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeAmino; - fromAminoMsg(object: _95.MsgAddCreditTypeAminoMsg): _95.MsgAddCreditType; - toAminoMsg(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeAminoMsg; - fromProtoMsg(message: _95.MsgAddCreditTypeProtoMsg): _95.MsgAddCreditType; - toProto(message: _95.MsgAddCreditType): Uint8Array; - toProtoMsg(message: _95.MsgAddCreditType): _95.MsgAddCreditTypeProtoMsg; - }; - MsgAddCreditTypeResponse: { - typeUrl: string; - encode(_: _95.MsgAddCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddCreditTypeResponse; - fromPartial(_: Partial<_95.MsgAddCreditTypeResponse>): _95.MsgAddCreditTypeResponse; - fromAmino(_: _95.MsgAddCreditTypeResponseAmino): _95.MsgAddCreditTypeResponse; - toAmino(_: _95.MsgAddCreditTypeResponse): _95.MsgAddCreditTypeResponseAmino; - fromAminoMsg(object: _95.MsgAddCreditTypeResponseAminoMsg): _95.MsgAddCreditTypeResponse; - fromProtoMsg(message: _95.MsgAddCreditTypeResponseProtoMsg): _95.MsgAddCreditTypeResponse; - toProto(message: _95.MsgAddCreditTypeResponse): Uint8Array; - toProtoMsg(message: _95.MsgAddCreditTypeResponse): _95.MsgAddCreditTypeResponseProtoMsg; - }; - MsgCreateClass: { - typeUrl: string; - encode(message: _95.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateClass; - fromPartial(object: Partial<_95.MsgCreateClass>): _95.MsgCreateClass; - fromAmino(object: _95.MsgCreateClassAmino): _95.MsgCreateClass; - toAmino(message: _95.MsgCreateClass): _95.MsgCreateClassAmino; - fromAminoMsg(object: _95.MsgCreateClassAminoMsg): _95.MsgCreateClass; - toAminoMsg(message: _95.MsgCreateClass): _95.MsgCreateClassAminoMsg; - fromProtoMsg(message: _95.MsgCreateClassProtoMsg): _95.MsgCreateClass; - toProto(message: _95.MsgCreateClass): Uint8Array; - toProtoMsg(message: _95.MsgCreateClass): _95.MsgCreateClassProtoMsg; - }; - MsgCreateClassResponse: { - typeUrl: string; - encode(message: _95.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateClassResponse; - fromPartial(object: Partial<_95.MsgCreateClassResponse>): _95.MsgCreateClassResponse; - fromAmino(object: _95.MsgCreateClassResponseAmino): _95.MsgCreateClassResponse; - toAmino(message: _95.MsgCreateClassResponse): _95.MsgCreateClassResponseAmino; - fromAminoMsg(object: _95.MsgCreateClassResponseAminoMsg): _95.MsgCreateClassResponse; - fromProtoMsg(message: _95.MsgCreateClassResponseProtoMsg): _95.MsgCreateClassResponse; - toProto(message: _95.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _95.MsgCreateClassResponse): _95.MsgCreateClassResponseProtoMsg; - }; - MsgCreateProject: { - typeUrl: string; - encode(message: _95.MsgCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateProject; - fromPartial(object: Partial<_95.MsgCreateProject>): _95.MsgCreateProject; - fromAmino(object: _95.MsgCreateProjectAmino): _95.MsgCreateProject; - toAmino(message: _95.MsgCreateProject): _95.MsgCreateProjectAmino; - fromAminoMsg(object: _95.MsgCreateProjectAminoMsg): _95.MsgCreateProject; - toAminoMsg(message: _95.MsgCreateProject): _95.MsgCreateProjectAminoMsg; - fromProtoMsg(message: _95.MsgCreateProjectProtoMsg): _95.MsgCreateProject; - toProto(message: _95.MsgCreateProject): Uint8Array; - toProtoMsg(message: _95.MsgCreateProject): _95.MsgCreateProjectProtoMsg; - }; - MsgCreateProjectResponse: { - typeUrl: string; - encode(message: _95.MsgCreateProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateProjectResponse; - fromPartial(object: Partial<_95.MsgCreateProjectResponse>): _95.MsgCreateProjectResponse; - fromAmino(object: _95.MsgCreateProjectResponseAmino): _95.MsgCreateProjectResponse; - toAmino(message: _95.MsgCreateProjectResponse): _95.MsgCreateProjectResponseAmino; - fromAminoMsg(object: _95.MsgCreateProjectResponseAminoMsg): _95.MsgCreateProjectResponse; - fromProtoMsg(message: _95.MsgCreateProjectResponseProtoMsg): _95.MsgCreateProjectResponse; - toProto(message: _95.MsgCreateProjectResponse): Uint8Array; - toProtoMsg(message: _95.MsgCreateProjectResponse): _95.MsgCreateProjectResponseProtoMsg; - }; - MsgCreateBatch: { - typeUrl: string; - encode(message: _95.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateBatch; - fromPartial(object: Partial<_95.MsgCreateBatch>): _95.MsgCreateBatch; - fromAmino(object: _95.MsgCreateBatchAmino): _95.MsgCreateBatch; - toAmino(message: _95.MsgCreateBatch): _95.MsgCreateBatchAmino; - fromAminoMsg(object: _95.MsgCreateBatchAminoMsg): _95.MsgCreateBatch; - toAminoMsg(message: _95.MsgCreateBatch): _95.MsgCreateBatchAminoMsg; - fromProtoMsg(message: _95.MsgCreateBatchProtoMsg): _95.MsgCreateBatch; - toProto(message: _95.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _95.MsgCreateBatch): _95.MsgCreateBatchProtoMsg; - }; - MsgCreateBatchResponse: { - typeUrl: string; - encode(message: _95.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCreateBatchResponse; - fromPartial(object: Partial<_95.MsgCreateBatchResponse>): _95.MsgCreateBatchResponse; - fromAmino(object: _95.MsgCreateBatchResponseAmino): _95.MsgCreateBatchResponse; - toAmino(message: _95.MsgCreateBatchResponse): _95.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _95.MsgCreateBatchResponseAminoMsg): _95.MsgCreateBatchResponse; - fromProtoMsg(message: _95.MsgCreateBatchResponseProtoMsg): _95.MsgCreateBatchResponse; - toProto(message: _95.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _95.MsgCreateBatchResponse): _95.MsgCreateBatchResponseProtoMsg; - }; - MsgMintBatchCredits: { - typeUrl: string; - encode(message: _95.MsgMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgMintBatchCredits; - fromPartial(object: Partial<_95.MsgMintBatchCredits>): _95.MsgMintBatchCredits; - fromAmino(object: _95.MsgMintBatchCreditsAmino): _95.MsgMintBatchCredits; - toAmino(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsAmino; - fromAminoMsg(object: _95.MsgMintBatchCreditsAminoMsg): _95.MsgMintBatchCredits; - toAminoMsg(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsAminoMsg; - fromProtoMsg(message: _95.MsgMintBatchCreditsProtoMsg): _95.MsgMintBatchCredits; - toProto(message: _95.MsgMintBatchCredits): Uint8Array; - toProtoMsg(message: _95.MsgMintBatchCredits): _95.MsgMintBatchCreditsProtoMsg; - }; - MsgMintBatchCreditsResponse: { - typeUrl: string; - encode(_: _95.MsgMintBatchCreditsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgMintBatchCreditsResponse; - fromPartial(_: Partial<_95.MsgMintBatchCreditsResponse>): _95.MsgMintBatchCreditsResponse; - fromAmino(_: _95.MsgMintBatchCreditsResponseAmino): _95.MsgMintBatchCreditsResponse; - toAmino(_: _95.MsgMintBatchCreditsResponse): _95.MsgMintBatchCreditsResponseAmino; - fromAminoMsg(object: _95.MsgMintBatchCreditsResponseAminoMsg): _95.MsgMintBatchCreditsResponse; - fromProtoMsg(message: _95.MsgMintBatchCreditsResponseProtoMsg): _95.MsgMintBatchCreditsResponse; - toProto(message: _95.MsgMintBatchCreditsResponse): Uint8Array; - toProtoMsg(message: _95.MsgMintBatchCreditsResponse): _95.MsgMintBatchCreditsResponseProtoMsg; - }; - MsgSealBatch: { - typeUrl: string; - encode(message: _95.MsgSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSealBatch; - fromPartial(object: Partial<_95.MsgSealBatch>): _95.MsgSealBatch; - fromAmino(object: _95.MsgSealBatchAmino): _95.MsgSealBatch; - toAmino(message: _95.MsgSealBatch): _95.MsgSealBatchAmino; - fromAminoMsg(object: _95.MsgSealBatchAminoMsg): _95.MsgSealBatch; - toAminoMsg(message: _95.MsgSealBatch): _95.MsgSealBatchAminoMsg; - fromProtoMsg(message: _95.MsgSealBatchProtoMsg): _95.MsgSealBatch; - toProto(message: _95.MsgSealBatch): Uint8Array; - toProtoMsg(message: _95.MsgSealBatch): _95.MsgSealBatchProtoMsg; - }; - MsgSealBatchResponse: { - typeUrl: string; - encode(_: _95.MsgSealBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSealBatchResponse; - fromPartial(_: Partial<_95.MsgSealBatchResponse>): _95.MsgSealBatchResponse; - fromAmino(_: _95.MsgSealBatchResponseAmino): _95.MsgSealBatchResponse; - toAmino(_: _95.MsgSealBatchResponse): _95.MsgSealBatchResponseAmino; - fromAminoMsg(object: _95.MsgSealBatchResponseAminoMsg): _95.MsgSealBatchResponse; - fromProtoMsg(message: _95.MsgSealBatchResponseProtoMsg): _95.MsgSealBatchResponse; - toProto(message: _95.MsgSealBatchResponse): Uint8Array; - toProtoMsg(message: _95.MsgSealBatchResponse): _95.MsgSealBatchResponseProtoMsg; - }; - MsgSend: { - typeUrl: string; - encode(message: _95.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSend; - fromPartial(object: Partial<_95.MsgSend>): _95.MsgSend; - fromAmino(object: _95.MsgSendAmino): _95.MsgSend; - toAmino(message: _95.MsgSend): _95.MsgSendAmino; - fromAminoMsg(object: _95.MsgSendAminoMsg): _95.MsgSend; - toAminoMsg(message: _95.MsgSend): _95.MsgSendAminoMsg; - fromProtoMsg(message: _95.MsgSendProtoMsg): _95.MsgSend; - toProto(message: _95.MsgSend): Uint8Array; - toProtoMsg(message: _95.MsgSend): _95.MsgSendProtoMsg; - }; - MsgSend_SendCredits: { - typeUrl: string; - encode(message: _95.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSend_SendCredits; - fromPartial(object: Partial<_95.MsgSend_SendCredits>): _95.MsgSend_SendCredits; - fromAmino(object: _95.MsgSend_SendCreditsAmino): _95.MsgSend_SendCredits; - toAmino(message: _95.MsgSend_SendCredits): _95.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _95.MsgSend_SendCreditsAminoMsg): _95.MsgSend_SendCredits; - fromProtoMsg(message: _95.MsgSend_SendCreditsProtoMsg): _95.MsgSend_SendCredits; - toProto(message: _95.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _95.MsgSend_SendCredits): _95.MsgSend_SendCreditsProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _95.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSendResponse; - fromPartial(_: Partial<_95.MsgSendResponse>): _95.MsgSendResponse; - fromAmino(_: _95.MsgSendResponseAmino): _95.MsgSendResponse; - toAmino(_: _95.MsgSendResponse): _95.MsgSendResponseAmino; - fromAminoMsg(object: _95.MsgSendResponseAminoMsg): _95.MsgSendResponse; - fromProtoMsg(message: _95.MsgSendResponseProtoMsg): _95.MsgSendResponse; - toProto(message: _95.MsgSendResponse): Uint8Array; - toProtoMsg(message: _95.MsgSendResponse): _95.MsgSendResponseProtoMsg; - }; - MsgRetire: { - typeUrl: string; - encode(message: _95.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRetire; - fromPartial(object: Partial<_95.MsgRetire>): _95.MsgRetire; - fromAmino(object: _95.MsgRetireAmino): _95.MsgRetire; - toAmino(message: _95.MsgRetire): _95.MsgRetireAmino; - fromAminoMsg(object: _95.MsgRetireAminoMsg): _95.MsgRetire; - toAminoMsg(message: _95.MsgRetire): _95.MsgRetireAminoMsg; - fromProtoMsg(message: _95.MsgRetireProtoMsg): _95.MsgRetire; - toProto(message: _95.MsgRetire): Uint8Array; - toProtoMsg(message: _95.MsgRetire): _95.MsgRetireProtoMsg; - }; - MsgRetireResponse: { - typeUrl: string; - encode(_: _95.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRetireResponse; - fromPartial(_: Partial<_95.MsgRetireResponse>): _95.MsgRetireResponse; - fromAmino(_: _95.MsgRetireResponseAmino): _95.MsgRetireResponse; - toAmino(_: _95.MsgRetireResponse): _95.MsgRetireResponseAmino; - fromAminoMsg(object: _95.MsgRetireResponseAminoMsg): _95.MsgRetireResponse; - fromProtoMsg(message: _95.MsgRetireResponseProtoMsg): _95.MsgRetireResponse; - toProto(message: _95.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _95.MsgRetireResponse): _95.MsgRetireResponseProtoMsg; - }; - MsgCancel: { - typeUrl: string; - encode(message: _95.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCancel; - fromPartial(object: Partial<_95.MsgCancel>): _95.MsgCancel; - fromAmino(object: _95.MsgCancelAmino): _95.MsgCancel; - toAmino(message: _95.MsgCancel): _95.MsgCancelAmino; - fromAminoMsg(object: _95.MsgCancelAminoMsg): _95.MsgCancel; - toAminoMsg(message: _95.MsgCancel): _95.MsgCancelAminoMsg; - fromProtoMsg(message: _95.MsgCancelProtoMsg): _95.MsgCancel; - toProto(message: _95.MsgCancel): Uint8Array; - toProtoMsg(message: _95.MsgCancel): _95.MsgCancelProtoMsg; - }; - MsgCancelResponse: { - typeUrl: string; - encode(_: _95.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgCancelResponse; - fromPartial(_: Partial<_95.MsgCancelResponse>): _95.MsgCancelResponse; - fromAmino(_: _95.MsgCancelResponseAmino): _95.MsgCancelResponse; - toAmino(_: _95.MsgCancelResponse): _95.MsgCancelResponseAmino; - fromAminoMsg(object: _95.MsgCancelResponseAminoMsg): _95.MsgCancelResponse; - fromProtoMsg(message: _95.MsgCancelResponseProtoMsg): _95.MsgCancelResponse; - toProto(message: _95.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _95.MsgCancelResponse): _95.MsgCancelResponseProtoMsg; - }; - MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: _95.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassAdmin; - fromPartial(object: Partial<_95.MsgUpdateClassAdmin>): _95.MsgUpdateClassAdmin; - fromAmino(object: _95.MsgUpdateClassAdminAmino): _95.MsgUpdateClassAdmin; - toAmino(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _95.MsgUpdateClassAdminAminoMsg): _95.MsgUpdateClassAdmin; - toAminoMsg(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminAminoMsg; - fromProtoMsg(message: _95.MsgUpdateClassAdminProtoMsg): _95.MsgUpdateClassAdmin; - toProto(message: _95.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassAdmin): _95.MsgUpdateClassAdminProtoMsg; - }; - MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassAdminResponse; - fromPartial(_: Partial<_95.MsgUpdateClassAdminResponse>): _95.MsgUpdateClassAdminResponse; - fromAmino(_: _95.MsgUpdateClassAdminResponseAmino): _95.MsgUpdateClassAdminResponse; - toAmino(_: _95.MsgUpdateClassAdminResponse): _95.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _95.MsgUpdateClassAdminResponseAminoMsg): _95.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _95.MsgUpdateClassAdminResponseProtoMsg): _95.MsgUpdateClassAdminResponse; - toProto(message: _95.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassAdminResponse): _95.MsgUpdateClassAdminResponseProtoMsg; - }; - MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: _95.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassIssuers; - fromPartial(object: Partial<_95.MsgUpdateClassIssuers>): _95.MsgUpdateClassIssuers; - fromAmino(object: _95.MsgUpdateClassIssuersAmino): _95.MsgUpdateClassIssuers; - toAmino(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _95.MsgUpdateClassIssuersAminoMsg): _95.MsgUpdateClassIssuers; - toAminoMsg(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersAminoMsg; - fromProtoMsg(message: _95.MsgUpdateClassIssuersProtoMsg): _95.MsgUpdateClassIssuers; - toProto(message: _95.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassIssuers): _95.MsgUpdateClassIssuersProtoMsg; - }; - MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassIssuersResponse; - fromPartial(_: Partial<_95.MsgUpdateClassIssuersResponse>): _95.MsgUpdateClassIssuersResponse; - fromAmino(_: _95.MsgUpdateClassIssuersResponseAmino): _95.MsgUpdateClassIssuersResponse; - toAmino(_: _95.MsgUpdateClassIssuersResponse): _95.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _95.MsgUpdateClassIssuersResponseAminoMsg): _95.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _95.MsgUpdateClassIssuersResponseProtoMsg): _95.MsgUpdateClassIssuersResponse; - toProto(message: _95.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassIssuersResponse): _95.MsgUpdateClassIssuersResponseProtoMsg; - }; - MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: _95.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassMetadata; - fromPartial(object: Partial<_95.MsgUpdateClassMetadata>): _95.MsgUpdateClassMetadata; - fromAmino(object: _95.MsgUpdateClassMetadataAmino): _95.MsgUpdateClassMetadata; - toAmino(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _95.MsgUpdateClassMetadataAminoMsg): _95.MsgUpdateClassMetadata; - toAminoMsg(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataAminoMsg; - fromProtoMsg(message: _95.MsgUpdateClassMetadataProtoMsg): _95.MsgUpdateClassMetadata; - toProto(message: _95.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassMetadata): _95.MsgUpdateClassMetadataProtoMsg; - }; - MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassMetadataResponse; - fromPartial(_: Partial<_95.MsgUpdateClassMetadataResponse>): _95.MsgUpdateClassMetadataResponse; - fromAmino(_: _95.MsgUpdateClassMetadataResponseAmino): _95.MsgUpdateClassMetadataResponse; - toAmino(_: _95.MsgUpdateClassMetadataResponse): _95.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _95.MsgUpdateClassMetadataResponseAminoMsg): _95.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _95.MsgUpdateClassMetadataResponseProtoMsg): _95.MsgUpdateClassMetadataResponse; - toProto(message: _95.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassMetadataResponse): _95.MsgUpdateClassMetadataResponseProtoMsg; - }; - MsgUpdateProjectAdmin: { - typeUrl: string; - encode(message: _95.MsgUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectAdmin; - fromPartial(object: Partial<_95.MsgUpdateProjectAdmin>): _95.MsgUpdateProjectAdmin; - fromAmino(object: _95.MsgUpdateProjectAdminAmino): _95.MsgUpdateProjectAdmin; - toAmino(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminAmino; - fromAminoMsg(object: _95.MsgUpdateProjectAdminAminoMsg): _95.MsgUpdateProjectAdmin; - toAminoMsg(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminAminoMsg; - fromProtoMsg(message: _95.MsgUpdateProjectAdminProtoMsg): _95.MsgUpdateProjectAdmin; - toProto(message: _95.MsgUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _95.MsgUpdateProjectAdmin): _95.MsgUpdateProjectAdminProtoMsg; - }; - MsgUpdateProjectAdminResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateProjectAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectAdminResponse; - fromPartial(_: Partial<_95.MsgUpdateProjectAdminResponse>): _95.MsgUpdateProjectAdminResponse; - fromAmino(_: _95.MsgUpdateProjectAdminResponseAmino): _95.MsgUpdateProjectAdminResponse; - toAmino(_: _95.MsgUpdateProjectAdminResponse): _95.MsgUpdateProjectAdminResponseAmino; - fromAminoMsg(object: _95.MsgUpdateProjectAdminResponseAminoMsg): _95.MsgUpdateProjectAdminResponse; - fromProtoMsg(message: _95.MsgUpdateProjectAdminResponseProtoMsg): _95.MsgUpdateProjectAdminResponse; - toProto(message: _95.MsgUpdateProjectAdminResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateProjectAdminResponse): _95.MsgUpdateProjectAdminResponseProtoMsg; - }; - MsgUpdateProjectMetadata: { - typeUrl: string; - encode(message: _95.MsgUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectMetadata; - fromPartial(object: Partial<_95.MsgUpdateProjectMetadata>): _95.MsgUpdateProjectMetadata; - fromAmino(object: _95.MsgUpdateProjectMetadataAmino): _95.MsgUpdateProjectMetadata; - toAmino(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataAmino; - fromAminoMsg(object: _95.MsgUpdateProjectMetadataAminoMsg): _95.MsgUpdateProjectMetadata; - toAminoMsg(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataAminoMsg; - fromProtoMsg(message: _95.MsgUpdateProjectMetadataProtoMsg): _95.MsgUpdateProjectMetadata; - toProto(message: _95.MsgUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _95.MsgUpdateProjectMetadata): _95.MsgUpdateProjectMetadataProtoMsg; - }; - MsgUpdateProjectMetadataResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateProjectMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateProjectMetadataResponse; - fromPartial(_: Partial<_95.MsgUpdateProjectMetadataResponse>): _95.MsgUpdateProjectMetadataResponse; - fromAmino(_: _95.MsgUpdateProjectMetadataResponseAmino): _95.MsgUpdateProjectMetadataResponse; - toAmino(_: _95.MsgUpdateProjectMetadataResponse): _95.MsgUpdateProjectMetadataResponseAmino; - fromAminoMsg(object: _95.MsgUpdateProjectMetadataResponseAminoMsg): _95.MsgUpdateProjectMetadataResponse; - fromProtoMsg(message: _95.MsgUpdateProjectMetadataResponseProtoMsg): _95.MsgUpdateProjectMetadataResponse; - toProto(message: _95.MsgUpdateProjectMetadataResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateProjectMetadataResponse): _95.MsgUpdateProjectMetadataResponseProtoMsg; - }; - MsgBridge: { - typeUrl: string; - encode(message: _95.MsgBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridge; - fromPartial(object: Partial<_95.MsgBridge>): _95.MsgBridge; - fromAmino(object: _95.MsgBridgeAmino): _95.MsgBridge; - toAmino(message: _95.MsgBridge): _95.MsgBridgeAmino; - fromAminoMsg(object: _95.MsgBridgeAminoMsg): _95.MsgBridge; - toAminoMsg(message: _95.MsgBridge): _95.MsgBridgeAminoMsg; - fromProtoMsg(message: _95.MsgBridgeProtoMsg): _95.MsgBridge; - toProto(message: _95.MsgBridge): Uint8Array; - toProtoMsg(message: _95.MsgBridge): _95.MsgBridgeProtoMsg; - }; - MsgUpdateBatchMetadata: { - typeUrl: string; - encode(message: _95.MsgUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateBatchMetadata; - fromPartial(object: Partial<_95.MsgUpdateBatchMetadata>): _95.MsgUpdateBatchMetadata; - fromAmino(object: _95.MsgUpdateBatchMetadataAmino): _95.MsgUpdateBatchMetadata; - toAmino(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataAmino; - fromAminoMsg(object: _95.MsgUpdateBatchMetadataAminoMsg): _95.MsgUpdateBatchMetadata; - toAminoMsg(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataAminoMsg; - fromProtoMsg(message: _95.MsgUpdateBatchMetadataProtoMsg): _95.MsgUpdateBatchMetadata; - toProto(message: _95.MsgUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _95.MsgUpdateBatchMetadata): _95.MsgUpdateBatchMetadataProtoMsg; - }; - MsgUpdateBatchMetadataResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateBatchMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateBatchMetadataResponse; - fromPartial(_: Partial<_95.MsgUpdateBatchMetadataResponse>): _95.MsgUpdateBatchMetadataResponse; - fromAmino(_: _95.MsgUpdateBatchMetadataResponseAmino): _95.MsgUpdateBatchMetadataResponse; - toAmino(_: _95.MsgUpdateBatchMetadataResponse): _95.MsgUpdateBatchMetadataResponseAmino; - fromAminoMsg(object: _95.MsgUpdateBatchMetadataResponseAminoMsg): _95.MsgUpdateBatchMetadataResponse; - fromProtoMsg(message: _95.MsgUpdateBatchMetadataResponseProtoMsg): _95.MsgUpdateBatchMetadataResponse; - toProto(message: _95.MsgUpdateBatchMetadataResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateBatchMetadataResponse): _95.MsgUpdateBatchMetadataResponseProtoMsg; - }; - MsgBridgeResponse: { - typeUrl: string; - encode(_: _95.MsgBridgeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeResponse; - fromPartial(_: Partial<_95.MsgBridgeResponse>): _95.MsgBridgeResponse; - fromAmino(_: _95.MsgBridgeResponseAmino): _95.MsgBridgeResponse; - toAmino(_: _95.MsgBridgeResponse): _95.MsgBridgeResponseAmino; - fromAminoMsg(object: _95.MsgBridgeResponseAminoMsg): _95.MsgBridgeResponse; - fromProtoMsg(message: _95.MsgBridgeResponseProtoMsg): _95.MsgBridgeResponse; - toProto(message: _95.MsgBridgeResponse): Uint8Array; - toProtoMsg(message: _95.MsgBridgeResponse): _95.MsgBridgeResponseProtoMsg; - }; - MsgBridgeReceive: { - typeUrl: string; - encode(message: _95.MsgBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive; - fromPartial(object: Partial<_95.MsgBridgeReceive>): _95.MsgBridgeReceive; - fromAmino(object: _95.MsgBridgeReceiveAmino): _95.MsgBridgeReceive; - toAmino(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveAmino; - fromAminoMsg(object: _95.MsgBridgeReceiveAminoMsg): _95.MsgBridgeReceive; - toAminoMsg(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveAminoMsg; - fromProtoMsg(message: _95.MsgBridgeReceiveProtoMsg): _95.MsgBridgeReceive; - toProto(message: _95.MsgBridgeReceive): Uint8Array; - toProtoMsg(message: _95.MsgBridgeReceive): _95.MsgBridgeReceiveProtoMsg; - }; - MsgBridgeReceive_Batch: { - typeUrl: string; - encode(message: _95.MsgBridgeReceive_Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive_Batch; - fromPartial(object: Partial<_95.MsgBridgeReceive_Batch>): _95.MsgBridgeReceive_Batch; - fromAmino(object: _95.MsgBridgeReceive_BatchAmino): _95.MsgBridgeReceive_Batch; - toAmino(message: _95.MsgBridgeReceive_Batch): _95.MsgBridgeReceive_BatchAmino; - fromAminoMsg(object: _95.MsgBridgeReceive_BatchAminoMsg): _95.MsgBridgeReceive_Batch; - fromProtoMsg(message: _95.MsgBridgeReceive_BatchProtoMsg): _95.MsgBridgeReceive_Batch; - toProto(message: _95.MsgBridgeReceive_Batch): Uint8Array; - toProtoMsg(message: _95.MsgBridgeReceive_Batch): _95.MsgBridgeReceive_BatchProtoMsg; - }; - MsgBridgeReceive_Project: { - typeUrl: string; - encode(message: _95.MsgBridgeReceive_Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceive_Project; - fromPartial(object: Partial<_95.MsgBridgeReceive_Project>): _95.MsgBridgeReceive_Project; - fromAmino(object: _95.MsgBridgeReceive_ProjectAmino): _95.MsgBridgeReceive_Project; - toAmino(message: _95.MsgBridgeReceive_Project): _95.MsgBridgeReceive_ProjectAmino; - fromAminoMsg(object: _95.MsgBridgeReceive_ProjectAminoMsg): _95.MsgBridgeReceive_Project; - fromProtoMsg(message: _95.MsgBridgeReceive_ProjectProtoMsg): _95.MsgBridgeReceive_Project; - toProto(message: _95.MsgBridgeReceive_Project): Uint8Array; - toProtoMsg(message: _95.MsgBridgeReceive_Project): _95.MsgBridgeReceive_ProjectProtoMsg; - }; - MsgBridgeReceiveResponse: { - typeUrl: string; - encode(message: _95.MsgBridgeReceiveResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgBridgeReceiveResponse; - fromPartial(object: Partial<_95.MsgBridgeReceiveResponse>): _95.MsgBridgeReceiveResponse; - fromAmino(object: _95.MsgBridgeReceiveResponseAmino): _95.MsgBridgeReceiveResponse; - toAmino(message: _95.MsgBridgeReceiveResponse): _95.MsgBridgeReceiveResponseAmino; - fromAminoMsg(object: _95.MsgBridgeReceiveResponseAminoMsg): _95.MsgBridgeReceiveResponse; - fromProtoMsg(message: _95.MsgBridgeReceiveResponseProtoMsg): _95.MsgBridgeReceiveResponse; - toProto(message: _95.MsgBridgeReceiveResponse): Uint8Array; - toProtoMsg(message: _95.MsgBridgeReceiveResponse): _95.MsgBridgeReceiveResponseProtoMsg; - }; - MsgAddClassCreator: { - typeUrl: string; - encode(message: _95.MsgAddClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddClassCreator; - fromPartial(object: Partial<_95.MsgAddClassCreator>): _95.MsgAddClassCreator; - fromAmino(object: _95.MsgAddClassCreatorAmino): _95.MsgAddClassCreator; - toAmino(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorAmino; - fromAminoMsg(object: _95.MsgAddClassCreatorAminoMsg): _95.MsgAddClassCreator; - toAminoMsg(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorAminoMsg; - fromProtoMsg(message: _95.MsgAddClassCreatorProtoMsg): _95.MsgAddClassCreator; - toProto(message: _95.MsgAddClassCreator): Uint8Array; - toProtoMsg(message: _95.MsgAddClassCreator): _95.MsgAddClassCreatorProtoMsg; - }; - MsgAddClassCreatorResponse: { - typeUrl: string; - encode(_: _95.MsgAddClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddClassCreatorResponse; - fromPartial(_: Partial<_95.MsgAddClassCreatorResponse>): _95.MsgAddClassCreatorResponse; - fromAmino(_: _95.MsgAddClassCreatorResponseAmino): _95.MsgAddClassCreatorResponse; - toAmino(_: _95.MsgAddClassCreatorResponse): _95.MsgAddClassCreatorResponseAmino; - fromAminoMsg(object: _95.MsgAddClassCreatorResponseAminoMsg): _95.MsgAddClassCreatorResponse; - fromProtoMsg(message: _95.MsgAddClassCreatorResponseProtoMsg): _95.MsgAddClassCreatorResponse; - toProto(message: _95.MsgAddClassCreatorResponse): Uint8Array; - toProtoMsg(message: _95.MsgAddClassCreatorResponse): _95.MsgAddClassCreatorResponseProtoMsg; - }; - MsgSetClassCreatorAllowlist: { - typeUrl: string; - encode(message: _95.MsgSetClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSetClassCreatorAllowlist; - fromPartial(object: Partial<_95.MsgSetClassCreatorAllowlist>): _95.MsgSetClassCreatorAllowlist; - fromAmino(object: _95.MsgSetClassCreatorAllowlistAmino): _95.MsgSetClassCreatorAllowlist; - toAmino(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistAmino; - fromAminoMsg(object: _95.MsgSetClassCreatorAllowlistAminoMsg): _95.MsgSetClassCreatorAllowlist; - toAminoMsg(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistAminoMsg; - fromProtoMsg(message: _95.MsgSetClassCreatorAllowlistProtoMsg): _95.MsgSetClassCreatorAllowlist; - toProto(message: _95.MsgSetClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _95.MsgSetClassCreatorAllowlist): _95.MsgSetClassCreatorAllowlistProtoMsg; - }; - MsgSetClassCreatorAllowlistResponse: { - typeUrl: string; - encode(_: _95.MsgSetClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgSetClassCreatorAllowlistResponse; - fromPartial(_: Partial<_95.MsgSetClassCreatorAllowlistResponse>): _95.MsgSetClassCreatorAllowlistResponse; - fromAmino(_: _95.MsgSetClassCreatorAllowlistResponseAmino): _95.MsgSetClassCreatorAllowlistResponse; - toAmino(_: _95.MsgSetClassCreatorAllowlistResponse): _95.MsgSetClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _95.MsgSetClassCreatorAllowlistResponseAminoMsg): _95.MsgSetClassCreatorAllowlistResponse; - fromProtoMsg(message: _95.MsgSetClassCreatorAllowlistResponseProtoMsg): _95.MsgSetClassCreatorAllowlistResponse; - toProto(message: _95.MsgSetClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _95.MsgSetClassCreatorAllowlistResponse): _95.MsgSetClassCreatorAllowlistResponseProtoMsg; - }; - MsgRemoveClassCreator: { - typeUrl: string; - encode(message: _95.MsgRemoveClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveClassCreator; - fromPartial(object: Partial<_95.MsgRemoveClassCreator>): _95.MsgRemoveClassCreator; - fromAmino(object: _95.MsgRemoveClassCreatorAmino): _95.MsgRemoveClassCreator; - toAmino(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorAmino; - fromAminoMsg(object: _95.MsgRemoveClassCreatorAminoMsg): _95.MsgRemoveClassCreator; - toAminoMsg(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorAminoMsg; - fromProtoMsg(message: _95.MsgRemoveClassCreatorProtoMsg): _95.MsgRemoveClassCreator; - toProto(message: _95.MsgRemoveClassCreator): Uint8Array; - toProtoMsg(message: _95.MsgRemoveClassCreator): _95.MsgRemoveClassCreatorProtoMsg; - }; - MsgRemoveClassCreatorResponse: { - typeUrl: string; - encode(_: _95.MsgRemoveClassCreatorResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveClassCreatorResponse; - fromPartial(_: Partial<_95.MsgRemoveClassCreatorResponse>): _95.MsgRemoveClassCreatorResponse; - fromAmino(_: _95.MsgRemoveClassCreatorResponseAmino): _95.MsgRemoveClassCreatorResponse; - toAmino(_: _95.MsgRemoveClassCreatorResponse): _95.MsgRemoveClassCreatorResponseAmino; - fromAminoMsg(object: _95.MsgRemoveClassCreatorResponseAminoMsg): _95.MsgRemoveClassCreatorResponse; - fromProtoMsg(message: _95.MsgRemoveClassCreatorResponseProtoMsg): _95.MsgRemoveClassCreatorResponse; - toProto(message: _95.MsgRemoveClassCreatorResponse): Uint8Array; - toProtoMsg(message: _95.MsgRemoveClassCreatorResponse): _95.MsgRemoveClassCreatorResponseProtoMsg; - }; - MsgUpdateClassFee: { - typeUrl: string; - encode(message: _95.MsgUpdateClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassFee; - fromPartial(object: Partial<_95.MsgUpdateClassFee>): _95.MsgUpdateClassFee; - fromAmino(object: _95.MsgUpdateClassFeeAmino): _95.MsgUpdateClassFee; - toAmino(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeAmino; - fromAminoMsg(object: _95.MsgUpdateClassFeeAminoMsg): _95.MsgUpdateClassFee; - toAminoMsg(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeAminoMsg; - fromProtoMsg(message: _95.MsgUpdateClassFeeProtoMsg): _95.MsgUpdateClassFee; - toProto(message: _95.MsgUpdateClassFee): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassFee): _95.MsgUpdateClassFeeProtoMsg; - }; - MsgUpdateClassFeeResponse: { - typeUrl: string; - encode(_: _95.MsgUpdateClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgUpdateClassFeeResponse; - fromPartial(_: Partial<_95.MsgUpdateClassFeeResponse>): _95.MsgUpdateClassFeeResponse; - fromAmino(_: _95.MsgUpdateClassFeeResponseAmino): _95.MsgUpdateClassFeeResponse; - toAmino(_: _95.MsgUpdateClassFeeResponse): _95.MsgUpdateClassFeeResponseAmino; - fromAminoMsg(object: _95.MsgUpdateClassFeeResponseAminoMsg): _95.MsgUpdateClassFeeResponse; - fromProtoMsg(message: _95.MsgUpdateClassFeeResponseProtoMsg): _95.MsgUpdateClassFeeResponse; - toProto(message: _95.MsgUpdateClassFeeResponse): Uint8Array; - toProtoMsg(message: _95.MsgUpdateClassFeeResponse): _95.MsgUpdateClassFeeResponseProtoMsg; - }; - MsgAddAllowedBridgeChain: { - typeUrl: string; - encode(message: _95.MsgAddAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddAllowedBridgeChain; - fromPartial(object: Partial<_95.MsgAddAllowedBridgeChain>): _95.MsgAddAllowedBridgeChain; - fromAmino(object: _95.MsgAddAllowedBridgeChainAmino): _95.MsgAddAllowedBridgeChain; - toAmino(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainAmino; - fromAminoMsg(object: _95.MsgAddAllowedBridgeChainAminoMsg): _95.MsgAddAllowedBridgeChain; - toAminoMsg(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _95.MsgAddAllowedBridgeChainProtoMsg): _95.MsgAddAllowedBridgeChain; - toProto(message: _95.MsgAddAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _95.MsgAddAllowedBridgeChain): _95.MsgAddAllowedBridgeChainProtoMsg; - }; - MsgAddAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: _95.MsgAddAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgAddAllowedBridgeChainResponse; - fromPartial(_: Partial<_95.MsgAddAllowedBridgeChainResponse>): _95.MsgAddAllowedBridgeChainResponse; - fromAmino(_: _95.MsgAddAllowedBridgeChainResponseAmino): _95.MsgAddAllowedBridgeChainResponse; - toAmino(_: _95.MsgAddAllowedBridgeChainResponse): _95.MsgAddAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _95.MsgAddAllowedBridgeChainResponseAminoMsg): _95.MsgAddAllowedBridgeChainResponse; - fromProtoMsg(message: _95.MsgAddAllowedBridgeChainResponseProtoMsg): _95.MsgAddAllowedBridgeChainResponse; - toProto(message: _95.MsgAddAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _95.MsgAddAllowedBridgeChainResponse): _95.MsgAddAllowedBridgeChainResponseProtoMsg; - }; - MsgRemoveAllowedBridgeChain: { - typeUrl: string; - encode(message: _95.MsgRemoveAllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveAllowedBridgeChain; - fromPartial(object: Partial<_95.MsgRemoveAllowedBridgeChain>): _95.MsgRemoveAllowedBridgeChain; - fromAmino(object: _95.MsgRemoveAllowedBridgeChainAmino): _95.MsgRemoveAllowedBridgeChain; - toAmino(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainAmino; - fromAminoMsg(object: _95.MsgRemoveAllowedBridgeChainAminoMsg): _95.MsgRemoveAllowedBridgeChain; - toAminoMsg(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainAminoMsg; - fromProtoMsg(message: _95.MsgRemoveAllowedBridgeChainProtoMsg): _95.MsgRemoveAllowedBridgeChain; - toProto(message: _95.MsgRemoveAllowedBridgeChain): Uint8Array; - toProtoMsg(message: _95.MsgRemoveAllowedBridgeChain): _95.MsgRemoveAllowedBridgeChainProtoMsg; - }; - MsgRemoveAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: _95.MsgRemoveAllowedBridgeChainResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _95.MsgRemoveAllowedBridgeChainResponse; - fromPartial(_: Partial<_95.MsgRemoveAllowedBridgeChainResponse>): _95.MsgRemoveAllowedBridgeChainResponse; - fromAmino(_: _95.MsgRemoveAllowedBridgeChainResponseAmino): _95.MsgRemoveAllowedBridgeChainResponse; - toAmino(_: _95.MsgRemoveAllowedBridgeChainResponse): _95.MsgRemoveAllowedBridgeChainResponseAmino; - fromAminoMsg(object: _95.MsgRemoveAllowedBridgeChainResponseAminoMsg): _95.MsgRemoveAllowedBridgeChainResponse; - fromProtoMsg(message: _95.MsgRemoveAllowedBridgeChainResponseProtoMsg): _95.MsgRemoveAllowedBridgeChainResponse; - toProto(message: _95.MsgRemoveAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: _95.MsgRemoveAllowedBridgeChainResponse): _95.MsgRemoveAllowedBridgeChainResponseProtoMsg; - }; - CreditType: { - typeUrl: string; - encode(message: _94.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.CreditType; - fromPartial(object: Partial<_94.CreditType>): _94.CreditType; - fromAmino(object: _94.CreditTypeAmino): _94.CreditType; - toAmino(message: _94.CreditType): _94.CreditTypeAmino; - fromAminoMsg(object: _94.CreditTypeAminoMsg): _94.CreditType; - fromProtoMsg(message: _94.CreditTypeProtoMsg): _94.CreditType; - toProto(message: _94.CreditType): Uint8Array; - toProtoMsg(message: _94.CreditType): _94.CreditTypeProtoMsg; - }; - Class: { - typeUrl: string; - encode(message: _94.Class, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Class; - fromPartial(object: Partial<_94.Class>): _94.Class; - fromAmino(object: _94.ClassAmino): _94.Class; - toAmino(message: _94.Class): _94.ClassAmino; - fromAminoMsg(object: _94.ClassAminoMsg): _94.Class; - fromProtoMsg(message: _94.ClassProtoMsg): _94.Class; - toProto(message: _94.Class): Uint8Array; - toProtoMsg(message: _94.Class): _94.ClassProtoMsg; - }; - ClassIssuer: { - typeUrl: string; - encode(message: _94.ClassIssuer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassIssuer; - fromPartial(object: Partial<_94.ClassIssuer>): _94.ClassIssuer; - fromAmino(object: _94.ClassIssuerAmino): _94.ClassIssuer; - toAmino(message: _94.ClassIssuer): _94.ClassIssuerAmino; - fromAminoMsg(object: _94.ClassIssuerAminoMsg): _94.ClassIssuer; - fromProtoMsg(message: _94.ClassIssuerProtoMsg): _94.ClassIssuer; - toProto(message: _94.ClassIssuer): Uint8Array; - toProtoMsg(message: _94.ClassIssuer): _94.ClassIssuerProtoMsg; - }; - Project: { - typeUrl: string; - encode(message: _94.Project, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Project; - fromPartial(object: Partial<_94.Project>): _94.Project; - fromAmino(object: _94.ProjectAmino): _94.Project; - toAmino(message: _94.Project): _94.ProjectAmino; - fromAminoMsg(object: _94.ProjectAminoMsg): _94.Project; - fromProtoMsg(message: _94.ProjectProtoMsg): _94.Project; - toProto(message: _94.Project): Uint8Array; - toProtoMsg(message: _94.Project): _94.ProjectProtoMsg; - }; - Batch: { - typeUrl: string; - encode(message: _94.Batch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.Batch; - fromPartial(object: Partial<_94.Batch>): _94.Batch; - fromAmino(object: _94.BatchAmino): _94.Batch; - toAmino(message: _94.Batch): _94.BatchAmino; - fromAminoMsg(object: _94.BatchAminoMsg): _94.Batch; - fromProtoMsg(message: _94.BatchProtoMsg): _94.Batch; - toProto(message: _94.Batch): Uint8Array; - toProtoMsg(message: _94.Batch): _94.BatchProtoMsg; - }; - ClassSequence: { - typeUrl: string; - encode(message: _94.ClassSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassSequence; - fromPartial(object: Partial<_94.ClassSequence>): _94.ClassSequence; - fromAmino(object: _94.ClassSequenceAmino): _94.ClassSequence; - toAmino(message: _94.ClassSequence): _94.ClassSequenceAmino; - fromAminoMsg(object: _94.ClassSequenceAminoMsg): _94.ClassSequence; - fromProtoMsg(message: _94.ClassSequenceProtoMsg): _94.ClassSequence; - toProto(message: _94.ClassSequence): Uint8Array; - toProtoMsg(message: _94.ClassSequence): _94.ClassSequenceProtoMsg; - }; - ProjectSequence: { - typeUrl: string; - encode(message: _94.ProjectSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ProjectSequence; - fromPartial(object: Partial<_94.ProjectSequence>): _94.ProjectSequence; - fromAmino(object: _94.ProjectSequenceAmino): _94.ProjectSequence; - toAmino(message: _94.ProjectSequence): _94.ProjectSequenceAmino; - fromAminoMsg(object: _94.ProjectSequenceAminoMsg): _94.ProjectSequence; - fromProtoMsg(message: _94.ProjectSequenceProtoMsg): _94.ProjectSequence; - toProto(message: _94.ProjectSequence): Uint8Array; - toProtoMsg(message: _94.ProjectSequence): _94.ProjectSequenceProtoMsg; - }; - BatchSequence: { - typeUrl: string; - encode(message: _94.BatchSequence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchSequence; - fromPartial(object: Partial<_94.BatchSequence>): _94.BatchSequence; - fromAmino(object: _94.BatchSequenceAmino): _94.BatchSequence; - toAmino(message: _94.BatchSequence): _94.BatchSequenceAmino; - fromAminoMsg(object: _94.BatchSequenceAminoMsg): _94.BatchSequence; - fromProtoMsg(message: _94.BatchSequenceProtoMsg): _94.BatchSequence; - toProto(message: _94.BatchSequence): Uint8Array; - toProtoMsg(message: _94.BatchSequence): _94.BatchSequenceProtoMsg; - }; - BatchBalance: { - typeUrl: string; - encode(message: _94.BatchBalance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchBalance; - fromPartial(object: Partial<_94.BatchBalance>): _94.BatchBalance; - fromAmino(object: _94.BatchBalanceAmino): _94.BatchBalance; - toAmino(message: _94.BatchBalance): _94.BatchBalanceAmino; - fromAminoMsg(object: _94.BatchBalanceAminoMsg): _94.BatchBalance; - fromProtoMsg(message: _94.BatchBalanceProtoMsg): _94.BatchBalance; - toProto(message: _94.BatchBalance): Uint8Array; - toProtoMsg(message: _94.BatchBalance): _94.BatchBalanceProtoMsg; - }; - BatchSupply: { - typeUrl: string; - encode(message: _94.BatchSupply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchSupply; - fromPartial(object: Partial<_94.BatchSupply>): _94.BatchSupply; - fromAmino(object: _94.BatchSupplyAmino): _94.BatchSupply; - toAmino(message: _94.BatchSupply): _94.BatchSupplyAmino; - fromAminoMsg(object: _94.BatchSupplyAminoMsg): _94.BatchSupply; - fromProtoMsg(message: _94.BatchSupplyProtoMsg): _94.BatchSupply; - toProto(message: _94.BatchSupply): Uint8Array; - toProtoMsg(message: _94.BatchSupply): _94.BatchSupplyProtoMsg; - }; - OriginTxIndex: { - typeUrl: string; - encode(message: _94.OriginTxIndex, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.OriginTxIndex; - fromPartial(object: Partial<_94.OriginTxIndex>): _94.OriginTxIndex; - fromAmino(object: _94.OriginTxIndexAmino): _94.OriginTxIndex; - toAmino(message: _94.OriginTxIndex): _94.OriginTxIndexAmino; - fromAminoMsg(object: _94.OriginTxIndexAminoMsg): _94.OriginTxIndex; - fromProtoMsg(message: _94.OriginTxIndexProtoMsg): _94.OriginTxIndex; - toProto(message: _94.OriginTxIndex): Uint8Array; - toProtoMsg(message: _94.OriginTxIndex): _94.OriginTxIndexProtoMsg; - }; - BatchContract: { - typeUrl: string; - encode(message: _94.BatchContract, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.BatchContract; - fromPartial(object: Partial<_94.BatchContract>): _94.BatchContract; - fromAmino(object: _94.BatchContractAmino): _94.BatchContract; - toAmino(message: _94.BatchContract): _94.BatchContractAmino; - fromAminoMsg(object: _94.BatchContractAminoMsg): _94.BatchContract; - fromProtoMsg(message: _94.BatchContractProtoMsg): _94.BatchContract; - toProto(message: _94.BatchContract): Uint8Array; - toProtoMsg(message: _94.BatchContract): _94.BatchContractProtoMsg; - }; - ClassCreatorAllowlist: { - typeUrl: string; - encode(message: _94.ClassCreatorAllowlist, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassCreatorAllowlist; - fromPartial(object: Partial<_94.ClassCreatorAllowlist>): _94.ClassCreatorAllowlist; - fromAmino(object: _94.ClassCreatorAllowlistAmino): _94.ClassCreatorAllowlist; - toAmino(message: _94.ClassCreatorAllowlist): _94.ClassCreatorAllowlistAmino; - fromAminoMsg(object: _94.ClassCreatorAllowlistAminoMsg): _94.ClassCreatorAllowlist; - fromProtoMsg(message: _94.ClassCreatorAllowlistProtoMsg): _94.ClassCreatorAllowlist; - toProto(message: _94.ClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: _94.ClassCreatorAllowlist): _94.ClassCreatorAllowlistProtoMsg; - }; - AllowedClassCreator: { - typeUrl: string; - encode(message: _94.AllowedClassCreator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.AllowedClassCreator; - fromPartial(object: Partial<_94.AllowedClassCreator>): _94.AllowedClassCreator; - fromAmino(object: _94.AllowedClassCreatorAmino): _94.AllowedClassCreator; - toAmino(message: _94.AllowedClassCreator): _94.AllowedClassCreatorAmino; - fromAminoMsg(object: _94.AllowedClassCreatorAminoMsg): _94.AllowedClassCreator; - fromProtoMsg(message: _94.AllowedClassCreatorProtoMsg): _94.AllowedClassCreator; - toProto(message: _94.AllowedClassCreator): Uint8Array; - toProtoMsg(message: _94.AllowedClassCreator): _94.AllowedClassCreatorProtoMsg; - }; - ClassFee: { - typeUrl: string; - encode(message: _94.ClassFee, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.ClassFee; - fromPartial(object: Partial<_94.ClassFee>): _94.ClassFee; - fromAmino(object: _94.ClassFeeAmino): _94.ClassFee; - toAmino(message: _94.ClassFee): _94.ClassFeeAmino; - fromAminoMsg(object: _94.ClassFeeAminoMsg): _94.ClassFee; - fromProtoMsg(message: _94.ClassFeeProtoMsg): _94.ClassFee; - toProto(message: _94.ClassFee): Uint8Array; - toProtoMsg(message: _94.ClassFee): _94.ClassFeeProtoMsg; - }; - AllowedBridgeChain: { - typeUrl: string; - encode(message: _94.AllowedBridgeChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _94.AllowedBridgeChain; - fromPartial(object: Partial<_94.AllowedBridgeChain>): _94.AllowedBridgeChain; - fromAmino(object: _94.AllowedBridgeChainAmino): _94.AllowedBridgeChain; - toAmino(message: _94.AllowedBridgeChain): _94.AllowedBridgeChainAmino; - fromAminoMsg(object: _94.AllowedBridgeChainAminoMsg): _94.AllowedBridgeChain; - fromProtoMsg(message: _94.AllowedBridgeChainProtoMsg): _94.AllowedBridgeChain; - toProto(message: _94.AllowedBridgeChain): Uint8Array; - toProtoMsg(message: _94.AllowedBridgeChain): _94.AllowedBridgeChainProtoMsg; - }; - QueryClassesRequest: { - typeUrl: string; - encode(message: _93.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesRequest; - fromPartial(object: Partial<_93.QueryClassesRequest>): _93.QueryClassesRequest; - fromAmino(object: _93.QueryClassesRequestAmino): _93.QueryClassesRequest; - toAmino(message: _93.QueryClassesRequest): _93.QueryClassesRequestAmino; - fromAminoMsg(object: _93.QueryClassesRequestAminoMsg): _93.QueryClassesRequest; - fromProtoMsg(message: _93.QueryClassesRequestProtoMsg): _93.QueryClassesRequest; - toProto(message: _93.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassesRequest): _93.QueryClassesRequestProtoMsg; - }; - QueryClassesResponse: { - typeUrl: string; - encode(message: _93.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesResponse; - fromPartial(object: Partial<_93.QueryClassesResponse>): _93.QueryClassesResponse; - fromAmino(object: _93.QueryClassesResponseAmino): _93.QueryClassesResponse; - toAmino(message: _93.QueryClassesResponse): _93.QueryClassesResponseAmino; - fromAminoMsg(object: _93.QueryClassesResponseAminoMsg): _93.QueryClassesResponse; - fromProtoMsg(message: _93.QueryClassesResponseProtoMsg): _93.QueryClassesResponse; - toProto(message: _93.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassesResponse): _93.QueryClassesResponseProtoMsg; - }; - QueryClassesByAdminRequest: { - typeUrl: string; - encode(message: _93.QueryClassesByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesByAdminRequest; - fromPartial(object: Partial<_93.QueryClassesByAdminRequest>): _93.QueryClassesByAdminRequest; - fromAmino(object: _93.QueryClassesByAdminRequestAmino): _93.QueryClassesByAdminRequest; - toAmino(message: _93.QueryClassesByAdminRequest): _93.QueryClassesByAdminRequestAmino; - fromAminoMsg(object: _93.QueryClassesByAdminRequestAminoMsg): _93.QueryClassesByAdminRequest; - fromProtoMsg(message: _93.QueryClassesByAdminRequestProtoMsg): _93.QueryClassesByAdminRequest; - toProto(message: _93.QueryClassesByAdminRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassesByAdminRequest): _93.QueryClassesByAdminRequestProtoMsg; - }; - QueryClassesByAdminResponse: { - typeUrl: string; - encode(message: _93.QueryClassesByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassesByAdminResponse; - fromPartial(object: Partial<_93.QueryClassesByAdminResponse>): _93.QueryClassesByAdminResponse; - fromAmino(object: _93.QueryClassesByAdminResponseAmino): _93.QueryClassesByAdminResponse; - toAmino(message: _93.QueryClassesByAdminResponse): _93.QueryClassesByAdminResponseAmino; - fromAminoMsg(object: _93.QueryClassesByAdminResponseAminoMsg): _93.QueryClassesByAdminResponse; - fromProtoMsg(message: _93.QueryClassesByAdminResponseProtoMsg): _93.QueryClassesByAdminResponse; - toProto(message: _93.QueryClassesByAdminResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassesByAdminResponse): _93.QueryClassesByAdminResponseProtoMsg; - }; - QueryClassRequest: { - typeUrl: string; - encode(message: _93.QueryClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassRequest; - fromPartial(object: Partial<_93.QueryClassRequest>): _93.QueryClassRequest; - fromAmino(object: _93.QueryClassRequestAmino): _93.QueryClassRequest; - toAmino(message: _93.QueryClassRequest): _93.QueryClassRequestAmino; - fromAminoMsg(object: _93.QueryClassRequestAminoMsg): _93.QueryClassRequest; - fromProtoMsg(message: _93.QueryClassRequestProtoMsg): _93.QueryClassRequest; - toProto(message: _93.QueryClassRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassRequest): _93.QueryClassRequestProtoMsg; - }; - QueryClassResponse: { - typeUrl: string; - encode(message: _93.QueryClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassResponse; - fromPartial(object: Partial<_93.QueryClassResponse>): _93.QueryClassResponse; - fromAmino(object: _93.QueryClassResponseAmino): _93.QueryClassResponse; - toAmino(message: _93.QueryClassResponse): _93.QueryClassResponseAmino; - fromAminoMsg(object: _93.QueryClassResponseAminoMsg): _93.QueryClassResponse; - fromProtoMsg(message: _93.QueryClassResponseProtoMsg): _93.QueryClassResponse; - toProto(message: _93.QueryClassResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassResponse): _93.QueryClassResponseProtoMsg; - }; - QueryClassIssuersRequest: { - typeUrl: string; - encode(message: _93.QueryClassIssuersRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassIssuersRequest; - fromPartial(object: Partial<_93.QueryClassIssuersRequest>): _93.QueryClassIssuersRequest; - fromAmino(object: _93.QueryClassIssuersRequestAmino): _93.QueryClassIssuersRequest; - toAmino(message: _93.QueryClassIssuersRequest): _93.QueryClassIssuersRequestAmino; - fromAminoMsg(object: _93.QueryClassIssuersRequestAminoMsg): _93.QueryClassIssuersRequest; - fromProtoMsg(message: _93.QueryClassIssuersRequestProtoMsg): _93.QueryClassIssuersRequest; - toProto(message: _93.QueryClassIssuersRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassIssuersRequest): _93.QueryClassIssuersRequestProtoMsg; - }; - QueryClassIssuersResponse: { - typeUrl: string; - encode(message: _93.QueryClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassIssuersResponse; - fromPartial(object: Partial<_93.QueryClassIssuersResponse>): _93.QueryClassIssuersResponse; - fromAmino(object: _93.QueryClassIssuersResponseAmino): _93.QueryClassIssuersResponse; - toAmino(message: _93.QueryClassIssuersResponse): _93.QueryClassIssuersResponseAmino; - fromAminoMsg(object: _93.QueryClassIssuersResponseAminoMsg): _93.QueryClassIssuersResponse; - fromProtoMsg(message: _93.QueryClassIssuersResponseProtoMsg): _93.QueryClassIssuersResponse; - toProto(message: _93.QueryClassIssuersResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassIssuersResponse): _93.QueryClassIssuersResponseProtoMsg; - }; - QueryProjectsRequest: { - typeUrl: string; - encode(message: _93.QueryProjectsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsRequest; - fromPartial(object: Partial<_93.QueryProjectsRequest>): _93.QueryProjectsRequest; - fromAmino(object: _93.QueryProjectsRequestAmino): _93.QueryProjectsRequest; - toAmino(message: _93.QueryProjectsRequest): _93.QueryProjectsRequestAmino; - fromAminoMsg(object: _93.QueryProjectsRequestAminoMsg): _93.QueryProjectsRequest; - fromProtoMsg(message: _93.QueryProjectsRequestProtoMsg): _93.QueryProjectsRequest; - toProto(message: _93.QueryProjectsRequest): Uint8Array; - toProtoMsg(message: _93.QueryProjectsRequest): _93.QueryProjectsRequestProtoMsg; - }; - QueryProjectsResponse: { - typeUrl: string; - encode(message: _93.QueryProjectsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsResponse; - fromPartial(object: Partial<_93.QueryProjectsResponse>): _93.QueryProjectsResponse; - fromAmino(object: _93.QueryProjectsResponseAmino): _93.QueryProjectsResponse; - toAmino(message: _93.QueryProjectsResponse): _93.QueryProjectsResponseAmino; - fromAminoMsg(object: _93.QueryProjectsResponseAminoMsg): _93.QueryProjectsResponse; - fromProtoMsg(message: _93.QueryProjectsResponseProtoMsg): _93.QueryProjectsResponse; - toProto(message: _93.QueryProjectsResponse): Uint8Array; - toProtoMsg(message: _93.QueryProjectsResponse): _93.QueryProjectsResponseProtoMsg; - }; - QueryProjectsByClassRequest: { - typeUrl: string; - encode(message: _93.QueryProjectsByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByClassRequest; - fromPartial(object: Partial<_93.QueryProjectsByClassRequest>): _93.QueryProjectsByClassRequest; - fromAmino(object: _93.QueryProjectsByClassRequestAmino): _93.QueryProjectsByClassRequest; - toAmino(message: _93.QueryProjectsByClassRequest): _93.QueryProjectsByClassRequestAmino; - fromAminoMsg(object: _93.QueryProjectsByClassRequestAminoMsg): _93.QueryProjectsByClassRequest; - fromProtoMsg(message: _93.QueryProjectsByClassRequestProtoMsg): _93.QueryProjectsByClassRequest; - toProto(message: _93.QueryProjectsByClassRequest): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByClassRequest): _93.QueryProjectsByClassRequestProtoMsg; - }; - QueryProjectsByClassResponse: { - typeUrl: string; - encode(message: _93.QueryProjectsByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByClassResponse; - fromPartial(object: Partial<_93.QueryProjectsByClassResponse>): _93.QueryProjectsByClassResponse; - fromAmino(object: _93.QueryProjectsByClassResponseAmino): _93.QueryProjectsByClassResponse; - toAmino(message: _93.QueryProjectsByClassResponse): _93.QueryProjectsByClassResponseAmino; - fromAminoMsg(object: _93.QueryProjectsByClassResponseAminoMsg): _93.QueryProjectsByClassResponse; - fromProtoMsg(message: _93.QueryProjectsByClassResponseProtoMsg): _93.QueryProjectsByClassResponse; - toProto(message: _93.QueryProjectsByClassResponse): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByClassResponse): _93.QueryProjectsByClassResponseProtoMsg; - }; - QueryProjectsByReferenceIdRequest: { - typeUrl: string; - encode(message: _93.QueryProjectsByReferenceIdRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByReferenceIdRequest; - fromPartial(object: Partial<_93.QueryProjectsByReferenceIdRequest>): _93.QueryProjectsByReferenceIdRequest; - fromAmino(object: _93.QueryProjectsByReferenceIdRequestAmino): _93.QueryProjectsByReferenceIdRequest; - toAmino(message: _93.QueryProjectsByReferenceIdRequest): _93.QueryProjectsByReferenceIdRequestAmino; - fromAminoMsg(object: _93.QueryProjectsByReferenceIdRequestAminoMsg): _93.QueryProjectsByReferenceIdRequest; - fromProtoMsg(message: _93.QueryProjectsByReferenceIdRequestProtoMsg): _93.QueryProjectsByReferenceIdRequest; - toProto(message: _93.QueryProjectsByReferenceIdRequest): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByReferenceIdRequest): _93.QueryProjectsByReferenceIdRequestProtoMsg; - }; - QueryProjectsByReferenceIdResponse: { - typeUrl: string; - encode(message: _93.QueryProjectsByReferenceIdResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByReferenceIdResponse; - fromPartial(object: Partial<_93.QueryProjectsByReferenceIdResponse>): _93.QueryProjectsByReferenceIdResponse; - fromAmino(object: _93.QueryProjectsByReferenceIdResponseAmino): _93.QueryProjectsByReferenceIdResponse; - toAmino(message: _93.QueryProjectsByReferenceIdResponse): _93.QueryProjectsByReferenceIdResponseAmino; - fromAminoMsg(object: _93.QueryProjectsByReferenceIdResponseAminoMsg): _93.QueryProjectsByReferenceIdResponse; - fromProtoMsg(message: _93.QueryProjectsByReferenceIdResponseProtoMsg): _93.QueryProjectsByReferenceIdResponse; - toProto(message: _93.QueryProjectsByReferenceIdResponse): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByReferenceIdResponse): _93.QueryProjectsByReferenceIdResponseProtoMsg; - }; - QueryProjectsByAdminRequest: { - typeUrl: string; - encode(message: _93.QueryProjectsByAdminRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByAdminRequest; - fromPartial(object: Partial<_93.QueryProjectsByAdminRequest>): _93.QueryProjectsByAdminRequest; - fromAmino(object: _93.QueryProjectsByAdminRequestAmino): _93.QueryProjectsByAdminRequest; - toAmino(message: _93.QueryProjectsByAdminRequest): _93.QueryProjectsByAdminRequestAmino; - fromAminoMsg(object: _93.QueryProjectsByAdminRequestAminoMsg): _93.QueryProjectsByAdminRequest; - fromProtoMsg(message: _93.QueryProjectsByAdminRequestProtoMsg): _93.QueryProjectsByAdminRequest; - toProto(message: _93.QueryProjectsByAdminRequest): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByAdminRequest): _93.QueryProjectsByAdminRequestProtoMsg; - }; - QueryProjectsByAdminResponse: { - typeUrl: string; - encode(message: _93.QueryProjectsByAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectsByAdminResponse; - fromPartial(object: Partial<_93.QueryProjectsByAdminResponse>): _93.QueryProjectsByAdminResponse; - fromAmino(object: _93.QueryProjectsByAdminResponseAmino): _93.QueryProjectsByAdminResponse; - toAmino(message: _93.QueryProjectsByAdminResponse): _93.QueryProjectsByAdminResponseAmino; - fromAminoMsg(object: _93.QueryProjectsByAdminResponseAminoMsg): _93.QueryProjectsByAdminResponse; - fromProtoMsg(message: _93.QueryProjectsByAdminResponseProtoMsg): _93.QueryProjectsByAdminResponse; - toProto(message: _93.QueryProjectsByAdminResponse): Uint8Array; - toProtoMsg(message: _93.QueryProjectsByAdminResponse): _93.QueryProjectsByAdminResponseProtoMsg; - }; - QueryProjectRequest: { - typeUrl: string; - encode(message: _93.QueryProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectRequest; - fromPartial(object: Partial<_93.QueryProjectRequest>): _93.QueryProjectRequest; - fromAmino(object: _93.QueryProjectRequestAmino): _93.QueryProjectRequest; - toAmino(message: _93.QueryProjectRequest): _93.QueryProjectRequestAmino; - fromAminoMsg(object: _93.QueryProjectRequestAminoMsg): _93.QueryProjectRequest; - fromProtoMsg(message: _93.QueryProjectRequestProtoMsg): _93.QueryProjectRequest; - toProto(message: _93.QueryProjectRequest): Uint8Array; - toProtoMsg(message: _93.QueryProjectRequest): _93.QueryProjectRequestProtoMsg; - }; - QueryProjectResponse: { - typeUrl: string; - encode(message: _93.QueryProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryProjectResponse; - fromPartial(object: Partial<_93.QueryProjectResponse>): _93.QueryProjectResponse; - fromAmino(object: _93.QueryProjectResponseAmino): _93.QueryProjectResponse; - toAmino(message: _93.QueryProjectResponse): _93.QueryProjectResponseAmino; - fromAminoMsg(object: _93.QueryProjectResponseAminoMsg): _93.QueryProjectResponse; - fromProtoMsg(message: _93.QueryProjectResponseProtoMsg): _93.QueryProjectResponse; - toProto(message: _93.QueryProjectResponse): Uint8Array; - toProtoMsg(message: _93.QueryProjectResponse): _93.QueryProjectResponseProtoMsg; - }; - QueryBatchesRequest: { - typeUrl: string; - encode(message: _93.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesRequest; - fromPartial(object: Partial<_93.QueryBatchesRequest>): _93.QueryBatchesRequest; - fromAmino(object: _93.QueryBatchesRequestAmino): _93.QueryBatchesRequest; - toAmino(message: _93.QueryBatchesRequest): _93.QueryBatchesRequestAmino; - fromAminoMsg(object: _93.QueryBatchesRequestAminoMsg): _93.QueryBatchesRequest; - fromProtoMsg(message: _93.QueryBatchesRequestProtoMsg): _93.QueryBatchesRequest; - toProto(message: _93.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _93.QueryBatchesRequest): _93.QueryBatchesRequestProtoMsg; - }; - QueryBatchesResponse: { - typeUrl: string; - encode(message: _93.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesResponse; - fromPartial(object: Partial<_93.QueryBatchesResponse>): _93.QueryBatchesResponse; - fromAmino(object: _93.QueryBatchesResponseAmino): _93.QueryBatchesResponse; - toAmino(message: _93.QueryBatchesResponse): _93.QueryBatchesResponseAmino; - fromAminoMsg(object: _93.QueryBatchesResponseAminoMsg): _93.QueryBatchesResponse; - fromProtoMsg(message: _93.QueryBatchesResponseProtoMsg): _93.QueryBatchesResponse; - toProto(message: _93.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _93.QueryBatchesResponse): _93.QueryBatchesResponseProtoMsg; - }; - QueryBatchesByIssuerRequest: { - typeUrl: string; - encode(message: _93.QueryBatchesByIssuerRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByIssuerRequest; - fromPartial(object: Partial<_93.QueryBatchesByIssuerRequest>): _93.QueryBatchesByIssuerRequest; - fromAmino(object: _93.QueryBatchesByIssuerRequestAmino): _93.QueryBatchesByIssuerRequest; - toAmino(message: _93.QueryBatchesByIssuerRequest): _93.QueryBatchesByIssuerRequestAmino; - fromAminoMsg(object: _93.QueryBatchesByIssuerRequestAminoMsg): _93.QueryBatchesByIssuerRequest; - fromProtoMsg(message: _93.QueryBatchesByIssuerRequestProtoMsg): _93.QueryBatchesByIssuerRequest; - toProto(message: _93.QueryBatchesByIssuerRequest): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByIssuerRequest): _93.QueryBatchesByIssuerRequestProtoMsg; - }; - QueryBatchesByIssuerResponse: { - typeUrl: string; - encode(message: _93.QueryBatchesByIssuerResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByIssuerResponse; - fromPartial(object: Partial<_93.QueryBatchesByIssuerResponse>): _93.QueryBatchesByIssuerResponse; - fromAmino(object: _93.QueryBatchesByIssuerResponseAmino): _93.QueryBatchesByIssuerResponse; - toAmino(message: _93.QueryBatchesByIssuerResponse): _93.QueryBatchesByIssuerResponseAmino; - fromAminoMsg(object: _93.QueryBatchesByIssuerResponseAminoMsg): _93.QueryBatchesByIssuerResponse; - fromProtoMsg(message: _93.QueryBatchesByIssuerResponseProtoMsg): _93.QueryBatchesByIssuerResponse; - toProto(message: _93.QueryBatchesByIssuerResponse): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByIssuerResponse): _93.QueryBatchesByIssuerResponseProtoMsg; - }; - QueryBatchesByClassRequest: { - typeUrl: string; - encode(message: _93.QueryBatchesByClassRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByClassRequest; - fromPartial(object: Partial<_93.QueryBatchesByClassRequest>): _93.QueryBatchesByClassRequest; - fromAmino(object: _93.QueryBatchesByClassRequestAmino): _93.QueryBatchesByClassRequest; - toAmino(message: _93.QueryBatchesByClassRequest): _93.QueryBatchesByClassRequestAmino; - fromAminoMsg(object: _93.QueryBatchesByClassRequestAminoMsg): _93.QueryBatchesByClassRequest; - fromProtoMsg(message: _93.QueryBatchesByClassRequestProtoMsg): _93.QueryBatchesByClassRequest; - toProto(message: _93.QueryBatchesByClassRequest): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByClassRequest): _93.QueryBatchesByClassRequestProtoMsg; - }; - QueryBatchesByProjectRequest: { - typeUrl: string; - encode(message: _93.QueryBatchesByProjectRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByProjectRequest; - fromPartial(object: Partial<_93.QueryBatchesByProjectRequest>): _93.QueryBatchesByProjectRequest; - fromAmino(object: _93.QueryBatchesByProjectRequestAmino): _93.QueryBatchesByProjectRequest; - toAmino(message: _93.QueryBatchesByProjectRequest): _93.QueryBatchesByProjectRequestAmino; - fromAminoMsg(object: _93.QueryBatchesByProjectRequestAminoMsg): _93.QueryBatchesByProjectRequest; - fromProtoMsg(message: _93.QueryBatchesByProjectRequestProtoMsg): _93.QueryBatchesByProjectRequest; - toProto(message: _93.QueryBatchesByProjectRequest): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByProjectRequest): _93.QueryBatchesByProjectRequestProtoMsg; - }; - QueryBatchesByProjectResponse: { - typeUrl: string; - encode(message: _93.QueryBatchesByProjectResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByProjectResponse; - fromPartial(object: Partial<_93.QueryBatchesByProjectResponse>): _93.QueryBatchesByProjectResponse; - fromAmino(object: _93.QueryBatchesByProjectResponseAmino): _93.QueryBatchesByProjectResponse; - toAmino(message: _93.QueryBatchesByProjectResponse): _93.QueryBatchesByProjectResponseAmino; - fromAminoMsg(object: _93.QueryBatchesByProjectResponseAminoMsg): _93.QueryBatchesByProjectResponse; - fromProtoMsg(message: _93.QueryBatchesByProjectResponseProtoMsg): _93.QueryBatchesByProjectResponse; - toProto(message: _93.QueryBatchesByProjectResponse): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByProjectResponse): _93.QueryBatchesByProjectResponseProtoMsg; - }; - QueryBatchesByClassResponse: { - typeUrl: string; - encode(message: _93.QueryBatchesByClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchesByClassResponse; - fromPartial(object: Partial<_93.QueryBatchesByClassResponse>): _93.QueryBatchesByClassResponse; - fromAmino(object: _93.QueryBatchesByClassResponseAmino): _93.QueryBatchesByClassResponse; - toAmino(message: _93.QueryBatchesByClassResponse): _93.QueryBatchesByClassResponseAmino; - fromAminoMsg(object: _93.QueryBatchesByClassResponseAminoMsg): _93.QueryBatchesByClassResponse; - fromProtoMsg(message: _93.QueryBatchesByClassResponseProtoMsg): _93.QueryBatchesByClassResponse; - toProto(message: _93.QueryBatchesByClassResponse): Uint8Array; - toProtoMsg(message: _93.QueryBatchesByClassResponse): _93.QueryBatchesByClassResponseProtoMsg; - }; - QueryBatchRequest: { - typeUrl: string; - encode(message: _93.QueryBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchRequest; - fromPartial(object: Partial<_93.QueryBatchRequest>): _93.QueryBatchRequest; - fromAmino(object: _93.QueryBatchRequestAmino): _93.QueryBatchRequest; - toAmino(message: _93.QueryBatchRequest): _93.QueryBatchRequestAmino; - fromAminoMsg(object: _93.QueryBatchRequestAminoMsg): _93.QueryBatchRequest; - fromProtoMsg(message: _93.QueryBatchRequestProtoMsg): _93.QueryBatchRequest; - toProto(message: _93.QueryBatchRequest): Uint8Array; - toProtoMsg(message: _93.QueryBatchRequest): _93.QueryBatchRequestProtoMsg; - }; - QueryBatchResponse: { - typeUrl: string; - encode(message: _93.QueryBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBatchResponse; - fromPartial(object: Partial<_93.QueryBatchResponse>): _93.QueryBatchResponse; - fromAmino(object: _93.QueryBatchResponseAmino): _93.QueryBatchResponse; - toAmino(message: _93.QueryBatchResponse): _93.QueryBatchResponseAmino; - fromAminoMsg(object: _93.QueryBatchResponseAminoMsg): _93.QueryBatchResponse; - fromProtoMsg(message: _93.QueryBatchResponseProtoMsg): _93.QueryBatchResponse; - toProto(message: _93.QueryBatchResponse): Uint8Array; - toProtoMsg(message: _93.QueryBatchResponse): _93.QueryBatchResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _93.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalanceRequest; - fromPartial(object: Partial<_93.QueryBalanceRequest>): _93.QueryBalanceRequest; - fromAmino(object: _93.QueryBalanceRequestAmino): _93.QueryBalanceRequest; - toAmino(message: _93.QueryBalanceRequest): _93.QueryBalanceRequestAmino; - fromAminoMsg(object: _93.QueryBalanceRequestAminoMsg): _93.QueryBalanceRequest; - fromProtoMsg(message: _93.QueryBalanceRequestProtoMsg): _93.QueryBalanceRequest; - toProto(message: _93.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _93.QueryBalanceRequest): _93.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _93.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalanceResponse; - fromPartial(object: Partial<_93.QueryBalanceResponse>): _93.QueryBalanceResponse; - fromAmino(object: _93.QueryBalanceResponseAmino): _93.QueryBalanceResponse; - toAmino(message: _93.QueryBalanceResponse): _93.QueryBalanceResponseAmino; - fromAminoMsg(object: _93.QueryBalanceResponseAminoMsg): _93.QueryBalanceResponse; - fromProtoMsg(message: _93.QueryBalanceResponseProtoMsg): _93.QueryBalanceResponse; - toProto(message: _93.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _93.QueryBalanceResponse): _93.QueryBalanceResponseProtoMsg; - }; - QueryBalancesRequest: { - typeUrl: string; - encode(message: _93.QueryBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesRequest; - fromPartial(object: Partial<_93.QueryBalancesRequest>): _93.QueryBalancesRequest; - fromAmino(object: _93.QueryBalancesRequestAmino): _93.QueryBalancesRequest; - toAmino(message: _93.QueryBalancesRequest): _93.QueryBalancesRequestAmino; - fromAminoMsg(object: _93.QueryBalancesRequestAminoMsg): _93.QueryBalancesRequest; - fromProtoMsg(message: _93.QueryBalancesRequestProtoMsg): _93.QueryBalancesRequest; - toProto(message: _93.QueryBalancesRequest): Uint8Array; - toProtoMsg(message: _93.QueryBalancesRequest): _93.QueryBalancesRequestProtoMsg; - }; - QueryBalancesResponse: { - typeUrl: string; - encode(message: _93.QueryBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesResponse; - fromPartial(object: Partial<_93.QueryBalancesResponse>): _93.QueryBalancesResponse; - fromAmino(object: _93.QueryBalancesResponseAmino): _93.QueryBalancesResponse; - toAmino(message: _93.QueryBalancesResponse): _93.QueryBalancesResponseAmino; - fromAminoMsg(object: _93.QueryBalancesResponseAminoMsg): _93.QueryBalancesResponse; - fromProtoMsg(message: _93.QueryBalancesResponseProtoMsg): _93.QueryBalancesResponse; - toProto(message: _93.QueryBalancesResponse): Uint8Array; - toProtoMsg(message: _93.QueryBalancesResponse): _93.QueryBalancesResponseProtoMsg; - }; - QueryBalancesByBatchRequest: { - typeUrl: string; - encode(message: _93.QueryBalancesByBatchRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesByBatchRequest; - fromPartial(object: Partial<_93.QueryBalancesByBatchRequest>): _93.QueryBalancesByBatchRequest; - fromAmino(object: _93.QueryBalancesByBatchRequestAmino): _93.QueryBalancesByBatchRequest; - toAmino(message: _93.QueryBalancesByBatchRequest): _93.QueryBalancesByBatchRequestAmino; - fromAminoMsg(object: _93.QueryBalancesByBatchRequestAminoMsg): _93.QueryBalancesByBatchRequest; - fromProtoMsg(message: _93.QueryBalancesByBatchRequestProtoMsg): _93.QueryBalancesByBatchRequest; - toProto(message: _93.QueryBalancesByBatchRequest): Uint8Array; - toProtoMsg(message: _93.QueryBalancesByBatchRequest): _93.QueryBalancesByBatchRequestProtoMsg; - }; - QueryBalancesByBatchResponse: { - typeUrl: string; - encode(message: _93.QueryBalancesByBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryBalancesByBatchResponse; - fromPartial(object: Partial<_93.QueryBalancesByBatchResponse>): _93.QueryBalancesByBatchResponse; - fromAmino(object: _93.QueryBalancesByBatchResponseAmino): _93.QueryBalancesByBatchResponse; - toAmino(message: _93.QueryBalancesByBatchResponse): _93.QueryBalancesByBatchResponseAmino; - fromAminoMsg(object: _93.QueryBalancesByBatchResponseAminoMsg): _93.QueryBalancesByBatchResponse; - fromProtoMsg(message: _93.QueryBalancesByBatchResponseProtoMsg): _93.QueryBalancesByBatchResponse; - toProto(message: _93.QueryBalancesByBatchResponse): Uint8Array; - toProtoMsg(message: _93.QueryBalancesByBatchResponse): _93.QueryBalancesByBatchResponseProtoMsg; - }; - QueryAllBalancesRequest: { - typeUrl: string; - encode(message: _93.QueryAllBalancesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllBalancesRequest; - fromPartial(object: Partial<_93.QueryAllBalancesRequest>): _93.QueryAllBalancesRequest; - fromAmino(object: _93.QueryAllBalancesRequestAmino): _93.QueryAllBalancesRequest; - toAmino(message: _93.QueryAllBalancesRequest): _93.QueryAllBalancesRequestAmino; - fromAminoMsg(object: _93.QueryAllBalancesRequestAminoMsg): _93.QueryAllBalancesRequest; - fromProtoMsg(message: _93.QueryAllBalancesRequestProtoMsg): _93.QueryAllBalancesRequest; - toProto(message: _93.QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: _93.QueryAllBalancesRequest): _93.QueryAllBalancesRequestProtoMsg; - }; - QueryAllBalancesResponse: { - typeUrl: string; - encode(message: _93.QueryAllBalancesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllBalancesResponse; - fromPartial(object: Partial<_93.QueryAllBalancesResponse>): _93.QueryAllBalancesResponse; - fromAmino(object: _93.QueryAllBalancesResponseAmino): _93.QueryAllBalancesResponse; - toAmino(message: _93.QueryAllBalancesResponse): _93.QueryAllBalancesResponseAmino; - fromAminoMsg(object: _93.QueryAllBalancesResponseAminoMsg): _93.QueryAllBalancesResponse; - fromProtoMsg(message: _93.QueryAllBalancesResponseProtoMsg): _93.QueryAllBalancesResponse; - toProto(message: _93.QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: _93.QueryAllBalancesResponse): _93.QueryAllBalancesResponseProtoMsg; - }; - QuerySupplyRequest: { - typeUrl: string; - encode(message: _93.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QuerySupplyRequest; - fromPartial(object: Partial<_93.QuerySupplyRequest>): _93.QuerySupplyRequest; - fromAmino(object: _93.QuerySupplyRequestAmino): _93.QuerySupplyRequest; - toAmino(message: _93.QuerySupplyRequest): _93.QuerySupplyRequestAmino; - fromAminoMsg(object: _93.QuerySupplyRequestAminoMsg): _93.QuerySupplyRequest; - fromProtoMsg(message: _93.QuerySupplyRequestProtoMsg): _93.QuerySupplyRequest; - toProto(message: _93.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _93.QuerySupplyRequest): _93.QuerySupplyRequestProtoMsg; - }; - QuerySupplyResponse: { - typeUrl: string; - encode(message: _93.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QuerySupplyResponse; - fromPartial(object: Partial<_93.QuerySupplyResponse>): _93.QuerySupplyResponse; - fromAmino(object: _93.QuerySupplyResponseAmino): _93.QuerySupplyResponse; - toAmino(message: _93.QuerySupplyResponse): _93.QuerySupplyResponseAmino; - fromAminoMsg(object: _93.QuerySupplyResponseAminoMsg): _93.QuerySupplyResponse; - fromProtoMsg(message: _93.QuerySupplyResponseProtoMsg): _93.QuerySupplyResponse; - toProto(message: _93.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _93.QuerySupplyResponse): _93.QuerySupplyResponseProtoMsg; - }; - QueryCreditTypesRequest: { - typeUrl: string; - encode(_: _93.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypesRequest; - fromPartial(_: Partial<_93.QueryCreditTypesRequest>): _93.QueryCreditTypesRequest; - fromAmino(_: _93.QueryCreditTypesRequestAmino): _93.QueryCreditTypesRequest; - toAmino(_: _93.QueryCreditTypesRequest): _93.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _93.QueryCreditTypesRequestAminoMsg): _93.QueryCreditTypesRequest; - fromProtoMsg(message: _93.QueryCreditTypesRequestProtoMsg): _93.QueryCreditTypesRequest; - toProto(message: _93.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _93.QueryCreditTypesRequest): _93.QueryCreditTypesRequestProtoMsg; - }; - QueryCreditTypesResponse: { - typeUrl: string; - encode(message: _93.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypesResponse; - fromPartial(object: Partial<_93.QueryCreditTypesResponse>): _93.QueryCreditTypesResponse; - fromAmino(object: _93.QueryCreditTypesResponseAmino): _93.QueryCreditTypesResponse; - toAmino(message: _93.QueryCreditTypesResponse): _93.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _93.QueryCreditTypesResponseAminoMsg): _93.QueryCreditTypesResponse; - fromProtoMsg(message: _93.QueryCreditTypesResponseProtoMsg): _93.QueryCreditTypesResponse; - toProto(message: _93.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _93.QueryCreditTypesResponse): _93.QueryCreditTypesResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _93.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryParamsRequest; - fromPartial(_: Partial<_93.QueryParamsRequest>): _93.QueryParamsRequest; - fromAmino(_: _93.QueryParamsRequestAmino): _93.QueryParamsRequest; - toAmino(_: _93.QueryParamsRequest): _93.QueryParamsRequestAmino; - fromAminoMsg(object: _93.QueryParamsRequestAminoMsg): _93.QueryParamsRequest; - fromProtoMsg(message: _93.QueryParamsRequestProtoMsg): _93.QueryParamsRequest; - toProto(message: _93.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _93.QueryParamsRequest): _93.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _93.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryParamsResponse; - fromPartial(object: Partial<_93.QueryParamsResponse>): _93.QueryParamsResponse; - fromAmino(object: _93.QueryParamsResponseAmino): _93.QueryParamsResponse; - toAmino(message: _93.QueryParamsResponse): _93.QueryParamsResponseAmino; - fromAminoMsg(object: _93.QueryParamsResponseAminoMsg): _93.QueryParamsResponse; - fromProtoMsg(message: _93.QueryParamsResponseProtoMsg): _93.QueryParamsResponse; - toProto(message: _93.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _93.QueryParamsResponse): _93.QueryParamsResponseProtoMsg; - }; - QueryCreditTypeRequest: { - typeUrl: string; - encode(message: _93.QueryCreditTypeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypeRequest; - fromPartial(object: Partial<_93.QueryCreditTypeRequest>): _93.QueryCreditTypeRequest; - fromAmino(object: _93.QueryCreditTypeRequestAmino): _93.QueryCreditTypeRequest; - toAmino(message: _93.QueryCreditTypeRequest): _93.QueryCreditTypeRequestAmino; - fromAminoMsg(object: _93.QueryCreditTypeRequestAminoMsg): _93.QueryCreditTypeRequest; - fromProtoMsg(message: _93.QueryCreditTypeRequestProtoMsg): _93.QueryCreditTypeRequest; - toProto(message: _93.QueryCreditTypeRequest): Uint8Array; - toProtoMsg(message: _93.QueryCreditTypeRequest): _93.QueryCreditTypeRequestProtoMsg; - }; - QueryCreditTypeResponse: { - typeUrl: string; - encode(message: _93.QueryCreditTypeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryCreditTypeResponse; - fromPartial(object: Partial<_93.QueryCreditTypeResponse>): _93.QueryCreditTypeResponse; - fromAmino(object: _93.QueryCreditTypeResponseAmino): _93.QueryCreditTypeResponse; - toAmino(message: _93.QueryCreditTypeResponse): _93.QueryCreditTypeResponseAmino; - fromAminoMsg(object: _93.QueryCreditTypeResponseAminoMsg): _93.QueryCreditTypeResponse; - fromProtoMsg(message: _93.QueryCreditTypeResponseProtoMsg): _93.QueryCreditTypeResponse; - toProto(message: _93.QueryCreditTypeResponse): Uint8Array; - toProtoMsg(message: _93.QueryCreditTypeResponse): _93.QueryCreditTypeResponseProtoMsg; - }; - ClassInfo: { - typeUrl: string; - encode(message: _93.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.ClassInfo; - fromPartial(object: Partial<_93.ClassInfo>): _93.ClassInfo; - fromAmino(object: _93.ClassInfoAmino): _93.ClassInfo; - toAmino(message: _93.ClassInfo): _93.ClassInfoAmino; - fromAminoMsg(object: _93.ClassInfoAminoMsg): _93.ClassInfo; - fromProtoMsg(message: _93.ClassInfoProtoMsg): _93.ClassInfo; - toProto(message: _93.ClassInfo): Uint8Array; - toProtoMsg(message: _93.ClassInfo): _93.ClassInfoProtoMsg; - }; - ProjectInfo: { - typeUrl: string; - encode(message: _93.ProjectInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.ProjectInfo; - fromPartial(object: Partial<_93.ProjectInfo>): _93.ProjectInfo; - fromAmino(object: _93.ProjectInfoAmino): _93.ProjectInfo; - toAmino(message: _93.ProjectInfo): _93.ProjectInfoAmino; - fromAminoMsg(object: _93.ProjectInfoAminoMsg): _93.ProjectInfo; - fromProtoMsg(message: _93.ProjectInfoProtoMsg): _93.ProjectInfo; - toProto(message: _93.ProjectInfo): Uint8Array; - toProtoMsg(message: _93.ProjectInfo): _93.ProjectInfoProtoMsg; - }; - BatchInfo: { - typeUrl: string; - encode(message: _93.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.BatchInfo; - fromPartial(object: Partial<_93.BatchInfo>): _93.BatchInfo; - fromAmino(object: _93.BatchInfoAmino): _93.BatchInfo; - toAmino(message: _93.BatchInfo): _93.BatchInfoAmino; - fromAminoMsg(object: _93.BatchInfoAminoMsg): _93.BatchInfo; - fromProtoMsg(message: _93.BatchInfoProtoMsg): _93.BatchInfo; - toProto(message: _93.BatchInfo): Uint8Array; - toProtoMsg(message: _93.BatchInfo): _93.BatchInfoProtoMsg; - }; - BatchBalanceInfo: { - typeUrl: string; - encode(message: _93.BatchBalanceInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.BatchBalanceInfo; - fromPartial(object: Partial<_93.BatchBalanceInfo>): _93.BatchBalanceInfo; - fromAmino(object: _93.BatchBalanceInfoAmino): _93.BatchBalanceInfo; - toAmino(message: _93.BatchBalanceInfo): _93.BatchBalanceInfoAmino; - fromAminoMsg(object: _93.BatchBalanceInfoAminoMsg): _93.BatchBalanceInfo; - fromProtoMsg(message: _93.BatchBalanceInfoProtoMsg): _93.BatchBalanceInfo; - toProto(message: _93.BatchBalanceInfo): Uint8Array; - toProtoMsg(message: _93.BatchBalanceInfo): _93.BatchBalanceInfoProtoMsg; - }; - QueryClassCreatorAllowlistRequest: { - typeUrl: string; - encode(_: _93.QueryClassCreatorAllowlistRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassCreatorAllowlistRequest; - fromPartial(_: Partial<_93.QueryClassCreatorAllowlistRequest>): _93.QueryClassCreatorAllowlistRequest; - fromAmino(_: _93.QueryClassCreatorAllowlistRequestAmino): _93.QueryClassCreatorAllowlistRequest; - toAmino(_: _93.QueryClassCreatorAllowlistRequest): _93.QueryClassCreatorAllowlistRequestAmino; - fromAminoMsg(object: _93.QueryClassCreatorAllowlistRequestAminoMsg): _93.QueryClassCreatorAllowlistRequest; - fromProtoMsg(message: _93.QueryClassCreatorAllowlistRequestProtoMsg): _93.QueryClassCreatorAllowlistRequest; - toProto(message: _93.QueryClassCreatorAllowlistRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassCreatorAllowlistRequest): _93.QueryClassCreatorAllowlistRequestProtoMsg; - }; - QueryClassCreatorAllowlistResponse: { - typeUrl: string; - encode(message: _93.QueryClassCreatorAllowlistResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassCreatorAllowlistResponse; - fromPartial(object: Partial<_93.QueryClassCreatorAllowlistResponse>): _93.QueryClassCreatorAllowlistResponse; - fromAmino(object: _93.QueryClassCreatorAllowlistResponseAmino): _93.QueryClassCreatorAllowlistResponse; - toAmino(message: _93.QueryClassCreatorAllowlistResponse): _93.QueryClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: _93.QueryClassCreatorAllowlistResponseAminoMsg): _93.QueryClassCreatorAllowlistResponse; - fromProtoMsg(message: _93.QueryClassCreatorAllowlistResponseProtoMsg): _93.QueryClassCreatorAllowlistResponse; - toProto(message: _93.QueryClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassCreatorAllowlistResponse): _93.QueryClassCreatorAllowlistResponseProtoMsg; - }; - QueryAllowedClassCreatorsRequest: { - typeUrl: string; - encode(message: _93.QueryAllowedClassCreatorsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedClassCreatorsRequest; - fromPartial(object: Partial<_93.QueryAllowedClassCreatorsRequest>): _93.QueryAllowedClassCreatorsRequest; - fromAmino(object: _93.QueryAllowedClassCreatorsRequestAmino): _93.QueryAllowedClassCreatorsRequest; - toAmino(message: _93.QueryAllowedClassCreatorsRequest): _93.QueryAllowedClassCreatorsRequestAmino; - fromAminoMsg(object: _93.QueryAllowedClassCreatorsRequestAminoMsg): _93.QueryAllowedClassCreatorsRequest; - fromProtoMsg(message: _93.QueryAllowedClassCreatorsRequestProtoMsg): _93.QueryAllowedClassCreatorsRequest; - toProto(message: _93.QueryAllowedClassCreatorsRequest): Uint8Array; - toProtoMsg(message: _93.QueryAllowedClassCreatorsRequest): _93.QueryAllowedClassCreatorsRequestProtoMsg; - }; - QueryAllowedClassCreatorsResponse: { - typeUrl: string; - encode(message: _93.QueryAllowedClassCreatorsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedClassCreatorsResponse; - fromPartial(object: Partial<_93.QueryAllowedClassCreatorsResponse>): _93.QueryAllowedClassCreatorsResponse; - fromAmino(object: _93.QueryAllowedClassCreatorsResponseAmino): _93.QueryAllowedClassCreatorsResponse; - toAmino(message: _93.QueryAllowedClassCreatorsResponse): _93.QueryAllowedClassCreatorsResponseAmino; - fromAminoMsg(object: _93.QueryAllowedClassCreatorsResponseAminoMsg): _93.QueryAllowedClassCreatorsResponse; - fromProtoMsg(message: _93.QueryAllowedClassCreatorsResponseProtoMsg): _93.QueryAllowedClassCreatorsResponse; - toProto(message: _93.QueryAllowedClassCreatorsResponse): Uint8Array; - toProtoMsg(message: _93.QueryAllowedClassCreatorsResponse): _93.QueryAllowedClassCreatorsResponseProtoMsg; - }; - QueryClassFeeRequest: { - typeUrl: string; - encode(_: _93.QueryClassFeeRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassFeeRequest; - fromPartial(_: Partial<_93.QueryClassFeeRequest>): _93.QueryClassFeeRequest; - fromAmino(_: _93.QueryClassFeeRequestAmino): _93.QueryClassFeeRequest; - toAmino(_: _93.QueryClassFeeRequest): _93.QueryClassFeeRequestAmino; - fromAminoMsg(object: _93.QueryClassFeeRequestAminoMsg): _93.QueryClassFeeRequest; - fromProtoMsg(message: _93.QueryClassFeeRequestProtoMsg): _93.QueryClassFeeRequest; - toProto(message: _93.QueryClassFeeRequest): Uint8Array; - toProtoMsg(message: _93.QueryClassFeeRequest): _93.QueryClassFeeRequestProtoMsg; - }; - QueryClassFeeResponse: { - typeUrl: string; - encode(message: _93.QueryClassFeeResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryClassFeeResponse; - fromPartial(object: Partial<_93.QueryClassFeeResponse>): _93.QueryClassFeeResponse; - fromAmino(object: _93.QueryClassFeeResponseAmino): _93.QueryClassFeeResponse; - toAmino(message: _93.QueryClassFeeResponse): _93.QueryClassFeeResponseAmino; - fromAminoMsg(object: _93.QueryClassFeeResponseAminoMsg): _93.QueryClassFeeResponse; - fromProtoMsg(message: _93.QueryClassFeeResponseProtoMsg): _93.QueryClassFeeResponse; - toProto(message: _93.QueryClassFeeResponse): Uint8Array; - toProtoMsg(message: _93.QueryClassFeeResponse): _93.QueryClassFeeResponseProtoMsg; - }; - QueryAllowedBridgeChainsRequest: { - typeUrl: string; - encode(_: _93.QueryAllowedBridgeChainsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedBridgeChainsRequest; - fromPartial(_: Partial<_93.QueryAllowedBridgeChainsRequest>): _93.QueryAllowedBridgeChainsRequest; - fromAmino(_: _93.QueryAllowedBridgeChainsRequestAmino): _93.QueryAllowedBridgeChainsRequest; - toAmino(_: _93.QueryAllowedBridgeChainsRequest): _93.QueryAllowedBridgeChainsRequestAmino; - fromAminoMsg(object: _93.QueryAllowedBridgeChainsRequestAminoMsg): _93.QueryAllowedBridgeChainsRequest; - fromProtoMsg(message: _93.QueryAllowedBridgeChainsRequestProtoMsg): _93.QueryAllowedBridgeChainsRequest; - toProto(message: _93.QueryAllowedBridgeChainsRequest): Uint8Array; - toProtoMsg(message: _93.QueryAllowedBridgeChainsRequest): _93.QueryAllowedBridgeChainsRequestProtoMsg; - }; - QueryAllowedBridgeChainsResponse: { - typeUrl: string; - encode(message: _93.QueryAllowedBridgeChainsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _93.QueryAllowedBridgeChainsResponse; - fromPartial(object: Partial<_93.QueryAllowedBridgeChainsResponse>): _93.QueryAllowedBridgeChainsResponse; - fromAmino(object: _93.QueryAllowedBridgeChainsResponseAmino): _93.QueryAllowedBridgeChainsResponse; - toAmino(message: _93.QueryAllowedBridgeChainsResponse): _93.QueryAllowedBridgeChainsResponseAmino; - fromAminoMsg(object: _93.QueryAllowedBridgeChainsResponseAminoMsg): _93.QueryAllowedBridgeChainsResponse; - fromProtoMsg(message: _93.QueryAllowedBridgeChainsResponseProtoMsg): _93.QueryAllowedBridgeChainsResponse; - toProto(message: _93.QueryAllowedBridgeChainsResponse): Uint8Array; - toProtoMsg(message: _93.QueryAllowedBridgeChainsResponse): _93.QueryAllowedBridgeChainsResponseProtoMsg; - }; - EventCreateClass: { - typeUrl: string; - encode(message: _92.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateClass; - fromPartial(object: Partial<_92.EventCreateClass>): _92.EventCreateClass; - fromAmino(object: _92.EventCreateClassAmino): _92.EventCreateClass; - toAmino(message: _92.EventCreateClass): _92.EventCreateClassAmino; - fromAminoMsg(object: _92.EventCreateClassAminoMsg): _92.EventCreateClass; - fromProtoMsg(message: _92.EventCreateClassProtoMsg): _92.EventCreateClass; - toProto(message: _92.EventCreateClass): Uint8Array; - toProtoMsg(message: _92.EventCreateClass): _92.EventCreateClassProtoMsg; - }; - EventCreateProject: { - typeUrl: string; - encode(message: _92.EventCreateProject, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateProject; - fromPartial(object: Partial<_92.EventCreateProject>): _92.EventCreateProject; - fromAmino(object: _92.EventCreateProjectAmino): _92.EventCreateProject; - toAmino(message: _92.EventCreateProject): _92.EventCreateProjectAmino; - fromAminoMsg(object: _92.EventCreateProjectAminoMsg): _92.EventCreateProject; - fromProtoMsg(message: _92.EventCreateProjectProtoMsg): _92.EventCreateProject; - toProto(message: _92.EventCreateProject): Uint8Array; - toProtoMsg(message: _92.EventCreateProject): _92.EventCreateProjectProtoMsg; - }; - EventCreateBatch: { - typeUrl: string; - encode(message: _92.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCreateBatch; - fromPartial(object: Partial<_92.EventCreateBatch>): _92.EventCreateBatch; - fromAmino(object: _92.EventCreateBatchAmino): _92.EventCreateBatch; - toAmino(message: _92.EventCreateBatch): _92.EventCreateBatchAmino; - fromAminoMsg(object: _92.EventCreateBatchAminoMsg): _92.EventCreateBatch; - fromProtoMsg(message: _92.EventCreateBatchProtoMsg): _92.EventCreateBatch; - toProto(message: _92.EventCreateBatch): Uint8Array; - toProtoMsg(message: _92.EventCreateBatch): _92.EventCreateBatchProtoMsg; - }; - EventMint: { - typeUrl: string; - encode(message: _92.EventMint, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventMint; - fromPartial(object: Partial<_92.EventMint>): _92.EventMint; - fromAmino(object: _92.EventMintAmino): _92.EventMint; - toAmino(message: _92.EventMint): _92.EventMintAmino; - fromAminoMsg(object: _92.EventMintAminoMsg): _92.EventMint; - fromProtoMsg(message: _92.EventMintProtoMsg): _92.EventMint; - toProto(message: _92.EventMint): Uint8Array; - toProtoMsg(message: _92.EventMint): _92.EventMintProtoMsg; - }; - EventMintBatchCredits: { - typeUrl: string; - encode(message: _92.EventMintBatchCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventMintBatchCredits; - fromPartial(object: Partial<_92.EventMintBatchCredits>): _92.EventMintBatchCredits; - fromAmino(object: _92.EventMintBatchCreditsAmino): _92.EventMintBatchCredits; - toAmino(message: _92.EventMintBatchCredits): _92.EventMintBatchCreditsAmino; - fromAminoMsg(object: _92.EventMintBatchCreditsAminoMsg): _92.EventMintBatchCredits; - fromProtoMsg(message: _92.EventMintBatchCreditsProtoMsg): _92.EventMintBatchCredits; - toProto(message: _92.EventMintBatchCredits): Uint8Array; - toProtoMsg(message: _92.EventMintBatchCredits): _92.EventMintBatchCreditsProtoMsg; - }; - EventTransfer: { - typeUrl: string; - encode(message: _92.EventTransfer, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventTransfer; - fromPartial(object: Partial<_92.EventTransfer>): _92.EventTransfer; - fromAmino(object: _92.EventTransferAmino): _92.EventTransfer; - toAmino(message: _92.EventTransfer): _92.EventTransferAmino; - fromAminoMsg(object: _92.EventTransferAminoMsg): _92.EventTransfer; - fromProtoMsg(message: _92.EventTransferProtoMsg): _92.EventTransfer; - toProto(message: _92.EventTransfer): Uint8Array; - toProtoMsg(message: _92.EventTransfer): _92.EventTransferProtoMsg; - }; - EventRetire: { - typeUrl: string; - encode(message: _92.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventRetire; - fromPartial(object: Partial<_92.EventRetire>): _92.EventRetire; - fromAmino(object: _92.EventRetireAmino): _92.EventRetire; - toAmino(message: _92.EventRetire): _92.EventRetireAmino; - fromAminoMsg(object: _92.EventRetireAminoMsg): _92.EventRetire; - fromProtoMsg(message: _92.EventRetireProtoMsg): _92.EventRetire; - toProto(message: _92.EventRetire): Uint8Array; - toProtoMsg(message: _92.EventRetire): _92.EventRetireProtoMsg; - }; - EventCancel: { - typeUrl: string; - encode(message: _92.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventCancel; - fromPartial(object: Partial<_92.EventCancel>): _92.EventCancel; - fromAmino(object: _92.EventCancelAmino): _92.EventCancel; - toAmino(message: _92.EventCancel): _92.EventCancelAmino; - fromAminoMsg(object: _92.EventCancelAminoMsg): _92.EventCancel; - fromProtoMsg(message: _92.EventCancelProtoMsg): _92.EventCancel; - toProto(message: _92.EventCancel): Uint8Array; - toProtoMsg(message: _92.EventCancel): _92.EventCancelProtoMsg; - }; - EventUpdateClassAdmin: { - typeUrl: string; - encode(message: _92.EventUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassAdmin; - fromPartial(object: Partial<_92.EventUpdateClassAdmin>): _92.EventUpdateClassAdmin; - fromAmino(object: _92.EventUpdateClassAdminAmino): _92.EventUpdateClassAdmin; - toAmino(message: _92.EventUpdateClassAdmin): _92.EventUpdateClassAdminAmino; - fromAminoMsg(object: _92.EventUpdateClassAdminAminoMsg): _92.EventUpdateClassAdmin; - fromProtoMsg(message: _92.EventUpdateClassAdminProtoMsg): _92.EventUpdateClassAdmin; - toProto(message: _92.EventUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _92.EventUpdateClassAdmin): _92.EventUpdateClassAdminProtoMsg; - }; - EventUpdateClassIssuers: { - typeUrl: string; - encode(message: _92.EventUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassIssuers; - fromPartial(object: Partial<_92.EventUpdateClassIssuers>): _92.EventUpdateClassIssuers; - fromAmino(object: _92.EventUpdateClassIssuersAmino): _92.EventUpdateClassIssuers; - toAmino(message: _92.EventUpdateClassIssuers): _92.EventUpdateClassIssuersAmino; - fromAminoMsg(object: _92.EventUpdateClassIssuersAminoMsg): _92.EventUpdateClassIssuers; - fromProtoMsg(message: _92.EventUpdateClassIssuersProtoMsg): _92.EventUpdateClassIssuers; - toProto(message: _92.EventUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _92.EventUpdateClassIssuers): _92.EventUpdateClassIssuersProtoMsg; - }; - EventUpdateClassMetadata: { - typeUrl: string; - encode(message: _92.EventUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateClassMetadata; - fromPartial(object: Partial<_92.EventUpdateClassMetadata>): _92.EventUpdateClassMetadata; - fromAmino(object: _92.EventUpdateClassMetadataAmino): _92.EventUpdateClassMetadata; - toAmino(message: _92.EventUpdateClassMetadata): _92.EventUpdateClassMetadataAmino; - fromAminoMsg(object: _92.EventUpdateClassMetadataAminoMsg): _92.EventUpdateClassMetadata; - fromProtoMsg(message: _92.EventUpdateClassMetadataProtoMsg): _92.EventUpdateClassMetadata; - toProto(message: _92.EventUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _92.EventUpdateClassMetadata): _92.EventUpdateClassMetadataProtoMsg; - }; - EventUpdateProjectAdmin: { - typeUrl: string; - encode(message: _92.EventUpdateProjectAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateProjectAdmin; - fromPartial(object: Partial<_92.EventUpdateProjectAdmin>): _92.EventUpdateProjectAdmin; - fromAmino(object: _92.EventUpdateProjectAdminAmino): _92.EventUpdateProjectAdmin; - toAmino(message: _92.EventUpdateProjectAdmin): _92.EventUpdateProjectAdminAmino; - fromAminoMsg(object: _92.EventUpdateProjectAdminAminoMsg): _92.EventUpdateProjectAdmin; - fromProtoMsg(message: _92.EventUpdateProjectAdminProtoMsg): _92.EventUpdateProjectAdmin; - toProto(message: _92.EventUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: _92.EventUpdateProjectAdmin): _92.EventUpdateProjectAdminProtoMsg; - }; - EventUpdateProjectMetadata: { - typeUrl: string; - encode(message: _92.EventUpdateProjectMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateProjectMetadata; - fromPartial(object: Partial<_92.EventUpdateProjectMetadata>): _92.EventUpdateProjectMetadata; - fromAmino(object: _92.EventUpdateProjectMetadataAmino): _92.EventUpdateProjectMetadata; - toAmino(message: _92.EventUpdateProjectMetadata): _92.EventUpdateProjectMetadataAmino; - fromAminoMsg(object: _92.EventUpdateProjectMetadataAminoMsg): _92.EventUpdateProjectMetadata; - fromProtoMsg(message: _92.EventUpdateProjectMetadataProtoMsg): _92.EventUpdateProjectMetadata; - toProto(message: _92.EventUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: _92.EventUpdateProjectMetadata): _92.EventUpdateProjectMetadataProtoMsg; - }; - EventUpdateBatchMetadata: { - typeUrl: string; - encode(message: _92.EventUpdateBatchMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventUpdateBatchMetadata; - fromPartial(object: Partial<_92.EventUpdateBatchMetadata>): _92.EventUpdateBatchMetadata; - fromAmino(object: _92.EventUpdateBatchMetadataAmino): _92.EventUpdateBatchMetadata; - toAmino(message: _92.EventUpdateBatchMetadata): _92.EventUpdateBatchMetadataAmino; - fromAminoMsg(object: _92.EventUpdateBatchMetadataAminoMsg): _92.EventUpdateBatchMetadata; - fromProtoMsg(message: _92.EventUpdateBatchMetadataProtoMsg): _92.EventUpdateBatchMetadata; - toProto(message: _92.EventUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: _92.EventUpdateBatchMetadata): _92.EventUpdateBatchMetadataProtoMsg; - }; - EventSealBatch: { - typeUrl: string; - encode(message: _92.EventSealBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventSealBatch; - fromPartial(object: Partial<_92.EventSealBatch>): _92.EventSealBatch; - fromAmino(object: _92.EventSealBatchAmino): _92.EventSealBatch; - toAmino(message: _92.EventSealBatch): _92.EventSealBatchAmino; - fromAminoMsg(object: _92.EventSealBatchAminoMsg): _92.EventSealBatch; - fromProtoMsg(message: _92.EventSealBatchProtoMsg): _92.EventSealBatch; - toProto(message: _92.EventSealBatch): Uint8Array; - toProtoMsg(message: _92.EventSealBatch): _92.EventSealBatchProtoMsg; - }; - EventAddCreditType: { - typeUrl: string; - encode(message: _92.EventAddCreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventAddCreditType; - fromPartial(object: Partial<_92.EventAddCreditType>): _92.EventAddCreditType; - fromAmino(object: _92.EventAddCreditTypeAmino): _92.EventAddCreditType; - toAmino(message: _92.EventAddCreditType): _92.EventAddCreditTypeAmino; - fromAminoMsg(object: _92.EventAddCreditTypeAminoMsg): _92.EventAddCreditType; - fromProtoMsg(message: _92.EventAddCreditTypeProtoMsg): _92.EventAddCreditType; - toProto(message: _92.EventAddCreditType): Uint8Array; - toProtoMsg(message: _92.EventAddCreditType): _92.EventAddCreditTypeProtoMsg; - }; - EventBridge: { - typeUrl: string; - encode(message: _92.EventBridge, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventBridge; - fromPartial(object: Partial<_92.EventBridge>): _92.EventBridge; - fromAmino(object: _92.EventBridgeAmino): _92.EventBridge; - toAmino(message: _92.EventBridge): _92.EventBridgeAmino; - fromAminoMsg(object: _92.EventBridgeAminoMsg): _92.EventBridge; - fromProtoMsg(message: _92.EventBridgeProtoMsg): _92.EventBridge; - toProto(message: _92.EventBridge): Uint8Array; - toProtoMsg(message: _92.EventBridge): _92.EventBridgeProtoMsg; - }; - EventBridgeReceive: { - typeUrl: string; - encode(message: _92.EventBridgeReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _92.EventBridgeReceive; - fromPartial(object: Partial<_92.EventBridgeReceive>): _92.EventBridgeReceive; - fromAmino(object: _92.EventBridgeReceiveAmino): _92.EventBridgeReceive; - toAmino(message: _92.EventBridgeReceive): _92.EventBridgeReceiveAmino; - fromAminoMsg(object: _92.EventBridgeReceiveAminoMsg): _92.EventBridgeReceive; - fromProtoMsg(message: _92.EventBridgeReceiveProtoMsg): _92.EventBridgeReceive; - toProto(message: _92.EventBridgeReceive): Uint8Array; - toProtoMsg(message: _92.EventBridgeReceive): _92.EventBridgeReceiveProtoMsg; - }; - }; - const v1alpha1: { - MsgClientImpl: typeof _215.MsgClientImpl; - QueryClientImpl: typeof _209.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - classes(request?: _99.QueryClassesRequest): Promise<_99.QueryClassesResponse>; - classInfo(request: _99.QueryClassInfoRequest): Promise<_99.QueryClassInfoResponse>; - batches(request: _99.QueryBatchesRequest): Promise<_99.QueryBatchesResponse>; - batchInfo(request: _99.QueryBatchInfoRequest): Promise<_99.QueryBatchInfoResponse>; - balance(request: _99.QueryBalanceRequest): Promise<_99.QueryBalanceResponse>; - supply(request: _99.QuerySupplyRequest): Promise<_99.QuerySupplyResponse>; - creditTypes(request?: _99.QueryCreditTypesRequest): Promise<_99.QueryCreditTypesResponse>; - params(request?: _99.QueryParamsRequest): Promise<_99.QueryParamsResponse>; - }; - LCDQueryClient: typeof _203.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createClass(value: _100.MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: _100.MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: _100.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: _100.MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: _100.MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: _100.MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: _100.MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: _100.MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: _100.MsgCreateClass): { - typeUrl: string; - value: _100.MsgCreateClass; - }; - createBatch(value: _100.MsgCreateBatch): { - typeUrl: string; - value: _100.MsgCreateBatch; - }; - send(value: _100.MsgSend): { - typeUrl: string; - value: _100.MsgSend; - }; - retire(value: _100.MsgRetire): { - typeUrl: string; - value: _100.MsgRetire; - }; - cancel(value: _100.MsgCancel): { - typeUrl: string; - value: _100.MsgCancel; - }; - updateClassAdmin(value: _100.MsgUpdateClassAdmin): { - typeUrl: string; - value: _100.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _100.MsgUpdateClassIssuers): { - typeUrl: string; - value: _100.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _100.MsgUpdateClassMetadata): { - typeUrl: string; - value: _100.MsgUpdateClassMetadata; - }; - }; - fromPartial: { - createClass(value: _100.MsgCreateClass): { - typeUrl: string; - value: _100.MsgCreateClass; - }; - createBatch(value: _100.MsgCreateBatch): { - typeUrl: string; - value: _100.MsgCreateBatch; - }; - send(value: _100.MsgSend): { - typeUrl: string; - value: _100.MsgSend; - }; - retire(value: _100.MsgRetire): { - typeUrl: string; - value: _100.MsgRetire; - }; - cancel(value: _100.MsgCancel): { - typeUrl: string; - value: _100.MsgCancel; - }; - updateClassAdmin(value: _100.MsgUpdateClassAdmin): { - typeUrl: string; - value: _100.MsgUpdateClassAdmin; - }; - updateClassIssuers(value: _100.MsgUpdateClassIssuers): { - typeUrl: string; - value: _100.MsgUpdateClassIssuers; - }; - updateClassMetadata(value: _100.MsgUpdateClassMetadata): { - typeUrl: string; - value: _100.MsgUpdateClassMetadata; - }; - }; - }; - AminoConverter: { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: _100.MsgCreateClass) => _100.MsgCreateClassAmino; - fromAmino: (object: _100.MsgCreateClassAmino) => _100.MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: _100.MsgCreateBatch) => _100.MsgCreateBatchAmino; - fromAmino: (object: _100.MsgCreateBatchAmino) => _100.MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: _100.MsgSend) => _100.MsgSendAmino; - fromAmino: (object: _100.MsgSendAmino) => _100.MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: _100.MsgRetire) => _100.MsgRetireAmino; - fromAmino: (object: _100.MsgRetireAmino) => _100.MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: _100.MsgCancel) => _100.MsgCancelAmino; - fromAmino: (object: _100.MsgCancelAmino) => _100.MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: _100.MsgUpdateClassAdmin) => _100.MsgUpdateClassAdminAmino; - fromAmino: (object: _100.MsgUpdateClassAdminAmino) => _100.MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: _100.MsgUpdateClassIssuers) => _100.MsgUpdateClassIssuersAmino; - fromAmino: (object: _100.MsgUpdateClassIssuersAmino) => _100.MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: _100.MsgUpdateClassMetadata) => _100.MsgUpdateClassMetadataAmino; - fromAmino: (object: _100.MsgUpdateClassMetadataAmino) => _100.MsgUpdateClassMetadata; - }; - }; - ClassInfo: { - typeUrl: string; - encode(message: _101.ClassInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.ClassInfo; - fromPartial(object: Partial<_101.ClassInfo>): _101.ClassInfo; - fromAmino(object: _101.ClassInfoAmino): _101.ClassInfo; - toAmino(message: _101.ClassInfo): _101.ClassInfoAmino; - fromAminoMsg(object: _101.ClassInfoAminoMsg): _101.ClassInfo; - fromProtoMsg(message: _101.ClassInfoProtoMsg): _101.ClassInfo; - toProto(message: _101.ClassInfo): Uint8Array; - toProtoMsg(message: _101.ClassInfo): _101.ClassInfoProtoMsg; - }; - BatchInfo: { - typeUrl: string; - encode(message: _101.BatchInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.BatchInfo; - fromPartial(object: Partial<_101.BatchInfo>): _101.BatchInfo; - fromAmino(object: _101.BatchInfoAmino): _101.BatchInfo; - toAmino(message: _101.BatchInfo): _101.BatchInfoAmino; - fromAminoMsg(object: _101.BatchInfoAminoMsg): _101.BatchInfo; - fromProtoMsg(message: _101.BatchInfoProtoMsg): _101.BatchInfo; - toProto(message: _101.BatchInfo): Uint8Array; - toProtoMsg(message: _101.BatchInfo): _101.BatchInfoProtoMsg; - }; - Params: { - typeUrl: string; - encode(message: _101.Params, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.Params; - fromPartial(object: Partial<_101.Params>): _101.Params; - fromAmino(object: _101.ParamsAmino): _101.Params; - toAmino(message: _101.Params): _101.ParamsAmino; - fromAminoMsg(object: _101.ParamsAminoMsg): _101.Params; - fromProtoMsg(message: _101.ParamsProtoMsg): _101.Params; - toProto(message: _101.Params): Uint8Array; - toProtoMsg(message: _101.Params): _101.ParamsProtoMsg; - }; - CreditType: { - typeUrl: string; - encode(message: _101.CreditType, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.CreditType; - fromPartial(object: Partial<_101.CreditType>): _101.CreditType; - fromAmino(object: _101.CreditTypeAmino): _101.CreditType; - toAmino(message: _101.CreditType): _101.CreditTypeAmino; - fromAminoMsg(object: _101.CreditTypeAminoMsg): _101.CreditType; - fromProtoMsg(message: _101.CreditTypeProtoMsg): _101.CreditType; - toProto(message: _101.CreditType): Uint8Array; - toProtoMsg(message: _101.CreditType): _101.CreditTypeProtoMsg; - }; - CreditTypeSeq: { - typeUrl: string; - encode(message: _101.CreditTypeSeq, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _101.CreditTypeSeq; - fromPartial(object: Partial<_101.CreditTypeSeq>): _101.CreditTypeSeq; - fromAmino(object: _101.CreditTypeSeqAmino): _101.CreditTypeSeq; - toAmino(message: _101.CreditTypeSeq): _101.CreditTypeSeqAmino; - fromAminoMsg(object: _101.CreditTypeSeqAminoMsg): _101.CreditTypeSeq; - fromProtoMsg(message: _101.CreditTypeSeqProtoMsg): _101.CreditTypeSeq; - toProto(message: _101.CreditTypeSeq): Uint8Array; - toProtoMsg(message: _101.CreditTypeSeq): _101.CreditTypeSeqProtoMsg; - }; - MsgCreateClass: { - typeUrl: string; - encode(message: _100.MsgCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateClass; - fromPartial(object: Partial<_100.MsgCreateClass>): _100.MsgCreateClass; - fromAmino(object: _100.MsgCreateClassAmino): _100.MsgCreateClass; - toAmino(message: _100.MsgCreateClass): _100.MsgCreateClassAmino; - fromAminoMsg(object: _100.MsgCreateClassAminoMsg): _100.MsgCreateClass; - fromProtoMsg(message: _100.MsgCreateClassProtoMsg): _100.MsgCreateClass; - toProto(message: _100.MsgCreateClass): Uint8Array; - toProtoMsg(message: _100.MsgCreateClass): _100.MsgCreateClassProtoMsg; - }; - MsgCreateClassResponse: { - typeUrl: string; - encode(message: _100.MsgCreateClassResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateClassResponse; - fromPartial(object: Partial<_100.MsgCreateClassResponse>): _100.MsgCreateClassResponse; - fromAmino(object: _100.MsgCreateClassResponseAmino): _100.MsgCreateClassResponse; - toAmino(message: _100.MsgCreateClassResponse): _100.MsgCreateClassResponseAmino; - fromAminoMsg(object: _100.MsgCreateClassResponseAminoMsg): _100.MsgCreateClassResponse; - fromProtoMsg(message: _100.MsgCreateClassResponseProtoMsg): _100.MsgCreateClassResponse; - toProto(message: _100.MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: _100.MsgCreateClassResponse): _100.MsgCreateClassResponseProtoMsg; - }; - MsgCreateBatch: { - typeUrl: string; - encode(message: _100.MsgCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatch; - fromPartial(object: Partial<_100.MsgCreateBatch>): _100.MsgCreateBatch; - fromAmino(object: _100.MsgCreateBatchAmino): _100.MsgCreateBatch; - toAmino(message: _100.MsgCreateBatch): _100.MsgCreateBatchAmino; - fromAminoMsg(object: _100.MsgCreateBatchAminoMsg): _100.MsgCreateBatch; - fromProtoMsg(message: _100.MsgCreateBatchProtoMsg): _100.MsgCreateBatch; - toProto(message: _100.MsgCreateBatch): Uint8Array; - toProtoMsg(message: _100.MsgCreateBatch): _100.MsgCreateBatchProtoMsg; - }; - MsgCreateBatch_BatchIssuance: { - typeUrl: string; - encode(message: _100.MsgCreateBatch_BatchIssuance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatch_BatchIssuance; - fromPartial(object: Partial<_100.MsgCreateBatch_BatchIssuance>): _100.MsgCreateBatch_BatchIssuance; - fromAmino(object: _100.MsgCreateBatch_BatchIssuanceAmino): _100.MsgCreateBatch_BatchIssuance; - toAmino(message: _100.MsgCreateBatch_BatchIssuance): _100.MsgCreateBatch_BatchIssuanceAmino; - fromAminoMsg(object: _100.MsgCreateBatch_BatchIssuanceAminoMsg): _100.MsgCreateBatch_BatchIssuance; - fromProtoMsg(message: _100.MsgCreateBatch_BatchIssuanceProtoMsg): _100.MsgCreateBatch_BatchIssuance; - toProto(message: _100.MsgCreateBatch_BatchIssuance): Uint8Array; - toProtoMsg(message: _100.MsgCreateBatch_BatchIssuance): _100.MsgCreateBatch_BatchIssuanceProtoMsg; - }; - MsgCreateBatchResponse: { - typeUrl: string; - encode(message: _100.MsgCreateBatchResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCreateBatchResponse; - fromPartial(object: Partial<_100.MsgCreateBatchResponse>): _100.MsgCreateBatchResponse; - fromAmino(object: _100.MsgCreateBatchResponseAmino): _100.MsgCreateBatchResponse; - toAmino(message: _100.MsgCreateBatchResponse): _100.MsgCreateBatchResponseAmino; - fromAminoMsg(object: _100.MsgCreateBatchResponseAminoMsg): _100.MsgCreateBatchResponse; - fromProtoMsg(message: _100.MsgCreateBatchResponseProtoMsg): _100.MsgCreateBatchResponse; - toProto(message: _100.MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: _100.MsgCreateBatchResponse): _100.MsgCreateBatchResponseProtoMsg; - }; - MsgSend: { - typeUrl: string; - encode(message: _100.MsgSend, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSend; - fromPartial(object: Partial<_100.MsgSend>): _100.MsgSend; - fromAmino(object: _100.MsgSendAmino): _100.MsgSend; - toAmino(message: _100.MsgSend): _100.MsgSendAmino; - fromAminoMsg(object: _100.MsgSendAminoMsg): _100.MsgSend; - fromProtoMsg(message: _100.MsgSendProtoMsg): _100.MsgSend; - toProto(message: _100.MsgSend): Uint8Array; - toProtoMsg(message: _100.MsgSend): _100.MsgSendProtoMsg; - }; - MsgSend_SendCredits: { - typeUrl: string; - encode(message: _100.MsgSend_SendCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSend_SendCredits; - fromPartial(object: Partial<_100.MsgSend_SendCredits>): _100.MsgSend_SendCredits; - fromAmino(object: _100.MsgSend_SendCreditsAmino): _100.MsgSend_SendCredits; - toAmino(message: _100.MsgSend_SendCredits): _100.MsgSend_SendCreditsAmino; - fromAminoMsg(object: _100.MsgSend_SendCreditsAminoMsg): _100.MsgSend_SendCredits; - fromProtoMsg(message: _100.MsgSend_SendCreditsProtoMsg): _100.MsgSend_SendCredits; - toProto(message: _100.MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: _100.MsgSend_SendCredits): _100.MsgSend_SendCreditsProtoMsg; - }; - MsgSendResponse: { - typeUrl: string; - encode(_: _100.MsgSendResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgSendResponse; - fromPartial(_: Partial<_100.MsgSendResponse>): _100.MsgSendResponse; - fromAmino(_: _100.MsgSendResponseAmino): _100.MsgSendResponse; - toAmino(_: _100.MsgSendResponse): _100.MsgSendResponseAmino; - fromAminoMsg(object: _100.MsgSendResponseAminoMsg): _100.MsgSendResponse; - fromProtoMsg(message: _100.MsgSendResponseProtoMsg): _100.MsgSendResponse; - toProto(message: _100.MsgSendResponse): Uint8Array; - toProtoMsg(message: _100.MsgSendResponse): _100.MsgSendResponseProtoMsg; - }; - MsgRetire: { - typeUrl: string; - encode(message: _100.MsgRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetire; - fromPartial(object: Partial<_100.MsgRetire>): _100.MsgRetire; - fromAmino(object: _100.MsgRetireAmino): _100.MsgRetire; - toAmino(message: _100.MsgRetire): _100.MsgRetireAmino; - fromAminoMsg(object: _100.MsgRetireAminoMsg): _100.MsgRetire; - fromProtoMsg(message: _100.MsgRetireProtoMsg): _100.MsgRetire; - toProto(message: _100.MsgRetire): Uint8Array; - toProtoMsg(message: _100.MsgRetire): _100.MsgRetireProtoMsg; - }; - MsgRetire_RetireCredits: { - typeUrl: string; - encode(message: _100.MsgRetire_RetireCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetire_RetireCredits; - fromPartial(object: Partial<_100.MsgRetire_RetireCredits>): _100.MsgRetire_RetireCredits; - fromAmino(object: _100.MsgRetire_RetireCreditsAmino): _100.MsgRetire_RetireCredits; - toAmino(message: _100.MsgRetire_RetireCredits): _100.MsgRetire_RetireCreditsAmino; - fromAminoMsg(object: _100.MsgRetire_RetireCreditsAminoMsg): _100.MsgRetire_RetireCredits; - fromProtoMsg(message: _100.MsgRetire_RetireCreditsProtoMsg): _100.MsgRetire_RetireCredits; - toProto(message: _100.MsgRetire_RetireCredits): Uint8Array; - toProtoMsg(message: _100.MsgRetire_RetireCredits): _100.MsgRetire_RetireCreditsProtoMsg; - }; - MsgRetireResponse: { - typeUrl: string; - encode(_: _100.MsgRetireResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgRetireResponse; - fromPartial(_: Partial<_100.MsgRetireResponse>): _100.MsgRetireResponse; - fromAmino(_: _100.MsgRetireResponseAmino): _100.MsgRetireResponse; - toAmino(_: _100.MsgRetireResponse): _100.MsgRetireResponseAmino; - fromAminoMsg(object: _100.MsgRetireResponseAminoMsg): _100.MsgRetireResponse; - fromProtoMsg(message: _100.MsgRetireResponseProtoMsg): _100.MsgRetireResponse; - toProto(message: _100.MsgRetireResponse): Uint8Array; - toProtoMsg(message: _100.MsgRetireResponse): _100.MsgRetireResponseProtoMsg; - }; - MsgCancel: { - typeUrl: string; - encode(message: _100.MsgCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancel; - fromPartial(object: Partial<_100.MsgCancel>): _100.MsgCancel; - fromAmino(object: _100.MsgCancelAmino): _100.MsgCancel; - toAmino(message: _100.MsgCancel): _100.MsgCancelAmino; - fromAminoMsg(object: _100.MsgCancelAminoMsg): _100.MsgCancel; - fromProtoMsg(message: _100.MsgCancelProtoMsg): _100.MsgCancel; - toProto(message: _100.MsgCancel): Uint8Array; - toProtoMsg(message: _100.MsgCancel): _100.MsgCancelProtoMsg; - }; - MsgCancel_CancelCredits: { - typeUrl: string; - encode(message: _100.MsgCancel_CancelCredits, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancel_CancelCredits; - fromPartial(object: Partial<_100.MsgCancel_CancelCredits>): _100.MsgCancel_CancelCredits; - fromAmino(object: _100.MsgCancel_CancelCreditsAmino): _100.MsgCancel_CancelCredits; - toAmino(message: _100.MsgCancel_CancelCredits): _100.MsgCancel_CancelCreditsAmino; - fromAminoMsg(object: _100.MsgCancel_CancelCreditsAminoMsg): _100.MsgCancel_CancelCredits; - fromProtoMsg(message: _100.MsgCancel_CancelCreditsProtoMsg): _100.MsgCancel_CancelCredits; - toProto(message: _100.MsgCancel_CancelCredits): Uint8Array; - toProtoMsg(message: _100.MsgCancel_CancelCredits): _100.MsgCancel_CancelCreditsProtoMsg; - }; - MsgCancelResponse: { - typeUrl: string; - encode(_: _100.MsgCancelResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgCancelResponse; - fromPartial(_: Partial<_100.MsgCancelResponse>): _100.MsgCancelResponse; - fromAmino(_: _100.MsgCancelResponseAmino): _100.MsgCancelResponse; - toAmino(_: _100.MsgCancelResponse): _100.MsgCancelResponseAmino; - fromAminoMsg(object: _100.MsgCancelResponseAminoMsg): _100.MsgCancelResponse; - fromProtoMsg(message: _100.MsgCancelResponseProtoMsg): _100.MsgCancelResponse; - toProto(message: _100.MsgCancelResponse): Uint8Array; - toProtoMsg(message: _100.MsgCancelResponse): _100.MsgCancelResponseProtoMsg; - }; - MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: _100.MsgUpdateClassAdmin, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassAdmin; - fromPartial(object: Partial<_100.MsgUpdateClassAdmin>): _100.MsgUpdateClassAdmin; - fromAmino(object: _100.MsgUpdateClassAdminAmino): _100.MsgUpdateClassAdmin; - toAmino(message: _100.MsgUpdateClassAdmin): _100.MsgUpdateClassAdminAmino; - fromAminoMsg(object: _100.MsgUpdateClassAdminAminoMsg): _100.MsgUpdateClassAdmin; - fromProtoMsg(message: _100.MsgUpdateClassAdminProtoMsg): _100.MsgUpdateClassAdmin; - toProto(message: _100.MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassAdmin): _100.MsgUpdateClassAdminProtoMsg; - }; - MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: _100.MsgUpdateClassAdminResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassAdminResponse; - fromPartial(_: Partial<_100.MsgUpdateClassAdminResponse>): _100.MsgUpdateClassAdminResponse; - fromAmino(_: _100.MsgUpdateClassAdminResponseAmino): _100.MsgUpdateClassAdminResponse; - toAmino(_: _100.MsgUpdateClassAdminResponse): _100.MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: _100.MsgUpdateClassAdminResponseAminoMsg): _100.MsgUpdateClassAdminResponse; - fromProtoMsg(message: _100.MsgUpdateClassAdminResponseProtoMsg): _100.MsgUpdateClassAdminResponse; - toProto(message: _100.MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassAdminResponse): _100.MsgUpdateClassAdminResponseProtoMsg; - }; - MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: _100.MsgUpdateClassIssuers, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassIssuers; - fromPartial(object: Partial<_100.MsgUpdateClassIssuers>): _100.MsgUpdateClassIssuers; - fromAmino(object: _100.MsgUpdateClassIssuersAmino): _100.MsgUpdateClassIssuers; - toAmino(message: _100.MsgUpdateClassIssuers): _100.MsgUpdateClassIssuersAmino; - fromAminoMsg(object: _100.MsgUpdateClassIssuersAminoMsg): _100.MsgUpdateClassIssuers; - fromProtoMsg(message: _100.MsgUpdateClassIssuersProtoMsg): _100.MsgUpdateClassIssuers; - toProto(message: _100.MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassIssuers): _100.MsgUpdateClassIssuersProtoMsg; - }; - MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: _100.MsgUpdateClassIssuersResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassIssuersResponse; - fromPartial(_: Partial<_100.MsgUpdateClassIssuersResponse>): _100.MsgUpdateClassIssuersResponse; - fromAmino(_: _100.MsgUpdateClassIssuersResponseAmino): _100.MsgUpdateClassIssuersResponse; - toAmino(_: _100.MsgUpdateClassIssuersResponse): _100.MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: _100.MsgUpdateClassIssuersResponseAminoMsg): _100.MsgUpdateClassIssuersResponse; - fromProtoMsg(message: _100.MsgUpdateClassIssuersResponseProtoMsg): _100.MsgUpdateClassIssuersResponse; - toProto(message: _100.MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassIssuersResponse): _100.MsgUpdateClassIssuersResponseProtoMsg; - }; - MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: _100.MsgUpdateClassMetadata, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassMetadata; - fromPartial(object: Partial<_100.MsgUpdateClassMetadata>): _100.MsgUpdateClassMetadata; - fromAmino(object: _100.MsgUpdateClassMetadataAmino): _100.MsgUpdateClassMetadata; - toAmino(message: _100.MsgUpdateClassMetadata): _100.MsgUpdateClassMetadataAmino; - fromAminoMsg(object: _100.MsgUpdateClassMetadataAminoMsg): _100.MsgUpdateClassMetadata; - fromProtoMsg(message: _100.MsgUpdateClassMetadataProtoMsg): _100.MsgUpdateClassMetadata; - toProto(message: _100.MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassMetadata): _100.MsgUpdateClassMetadataProtoMsg; - }; - MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: _100.MsgUpdateClassMetadataResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _100.MsgUpdateClassMetadataResponse; - fromPartial(_: Partial<_100.MsgUpdateClassMetadataResponse>): _100.MsgUpdateClassMetadataResponse; - fromAmino(_: _100.MsgUpdateClassMetadataResponseAmino): _100.MsgUpdateClassMetadataResponse; - toAmino(_: _100.MsgUpdateClassMetadataResponse): _100.MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: _100.MsgUpdateClassMetadataResponseAminoMsg): _100.MsgUpdateClassMetadataResponse; - fromProtoMsg(message: _100.MsgUpdateClassMetadataResponseProtoMsg): _100.MsgUpdateClassMetadataResponse; - toProto(message: _100.MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: _100.MsgUpdateClassMetadataResponse): _100.MsgUpdateClassMetadataResponseProtoMsg; - }; - QueryParamsRequest: { - typeUrl: string; - encode(_: _99.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryParamsRequest; - fromPartial(_: Partial<_99.QueryParamsRequest>): _99.QueryParamsRequest; - fromAmino(_: _99.QueryParamsRequestAmino): _99.QueryParamsRequest; - toAmino(_: _99.QueryParamsRequest): _99.QueryParamsRequestAmino; - fromAminoMsg(object: _99.QueryParamsRequestAminoMsg): _99.QueryParamsRequest; - fromProtoMsg(message: _99.QueryParamsRequestProtoMsg): _99.QueryParamsRequest; - toProto(message: _99.QueryParamsRequest): Uint8Array; - toProtoMsg(message: _99.QueryParamsRequest): _99.QueryParamsRequestProtoMsg; - }; - QueryParamsResponse: { - typeUrl: string; - encode(message: _99.QueryParamsResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryParamsResponse; - fromPartial(object: Partial<_99.QueryParamsResponse>): _99.QueryParamsResponse; - fromAmino(object: _99.QueryParamsResponseAmino): _99.QueryParamsResponse; - toAmino(message: _99.QueryParamsResponse): _99.QueryParamsResponseAmino; - fromAminoMsg(object: _99.QueryParamsResponseAminoMsg): _99.QueryParamsResponse; - fromProtoMsg(message: _99.QueryParamsResponseProtoMsg): _99.QueryParamsResponse; - toProto(message: _99.QueryParamsResponse): Uint8Array; - toProtoMsg(message: _99.QueryParamsResponse): _99.QueryParamsResponseProtoMsg; - }; - QueryClassesRequest: { - typeUrl: string; - encode(message: _99.QueryClassesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassesRequest; - fromPartial(object: Partial<_99.QueryClassesRequest>): _99.QueryClassesRequest; - fromAmino(object: _99.QueryClassesRequestAmino): _99.QueryClassesRequest; - toAmino(message: _99.QueryClassesRequest): _99.QueryClassesRequestAmino; - fromAminoMsg(object: _99.QueryClassesRequestAminoMsg): _99.QueryClassesRequest; - fromProtoMsg(message: _99.QueryClassesRequestProtoMsg): _99.QueryClassesRequest; - toProto(message: _99.QueryClassesRequest): Uint8Array; - toProtoMsg(message: _99.QueryClassesRequest): _99.QueryClassesRequestProtoMsg; - }; - QueryClassesResponse: { - typeUrl: string; - encode(message: _99.QueryClassesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassesResponse; - fromPartial(object: Partial<_99.QueryClassesResponse>): _99.QueryClassesResponse; - fromAmino(object: _99.QueryClassesResponseAmino): _99.QueryClassesResponse; - toAmino(message: _99.QueryClassesResponse): _99.QueryClassesResponseAmino; - fromAminoMsg(object: _99.QueryClassesResponseAminoMsg): _99.QueryClassesResponse; - fromProtoMsg(message: _99.QueryClassesResponseProtoMsg): _99.QueryClassesResponse; - toProto(message: _99.QueryClassesResponse): Uint8Array; - toProtoMsg(message: _99.QueryClassesResponse): _99.QueryClassesResponseProtoMsg; - }; - QueryClassInfoRequest: { - typeUrl: string; - encode(message: _99.QueryClassInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassInfoRequest; - fromPartial(object: Partial<_99.QueryClassInfoRequest>): _99.QueryClassInfoRequest; - fromAmino(object: _99.QueryClassInfoRequestAmino): _99.QueryClassInfoRequest; - toAmino(message: _99.QueryClassInfoRequest): _99.QueryClassInfoRequestAmino; - fromAminoMsg(object: _99.QueryClassInfoRequestAminoMsg): _99.QueryClassInfoRequest; - fromProtoMsg(message: _99.QueryClassInfoRequestProtoMsg): _99.QueryClassInfoRequest; - toProto(message: _99.QueryClassInfoRequest): Uint8Array; - toProtoMsg(message: _99.QueryClassInfoRequest): _99.QueryClassInfoRequestProtoMsg; - }; - QueryClassInfoResponse: { - typeUrl: string; - encode(message: _99.QueryClassInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryClassInfoResponse; - fromPartial(object: Partial<_99.QueryClassInfoResponse>): _99.QueryClassInfoResponse; - fromAmino(object: _99.QueryClassInfoResponseAmino): _99.QueryClassInfoResponse; - toAmino(message: _99.QueryClassInfoResponse): _99.QueryClassInfoResponseAmino; - fromAminoMsg(object: _99.QueryClassInfoResponseAminoMsg): _99.QueryClassInfoResponse; - fromProtoMsg(message: _99.QueryClassInfoResponseProtoMsg): _99.QueryClassInfoResponse; - toProto(message: _99.QueryClassInfoResponse): Uint8Array; - toProtoMsg(message: _99.QueryClassInfoResponse): _99.QueryClassInfoResponseProtoMsg; - }; - QueryBatchesRequest: { - typeUrl: string; - encode(message: _99.QueryBatchesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchesRequest; - fromPartial(object: Partial<_99.QueryBatchesRequest>): _99.QueryBatchesRequest; - fromAmino(object: _99.QueryBatchesRequestAmino): _99.QueryBatchesRequest; - toAmino(message: _99.QueryBatchesRequest): _99.QueryBatchesRequestAmino; - fromAminoMsg(object: _99.QueryBatchesRequestAminoMsg): _99.QueryBatchesRequest; - fromProtoMsg(message: _99.QueryBatchesRequestProtoMsg): _99.QueryBatchesRequest; - toProto(message: _99.QueryBatchesRequest): Uint8Array; - toProtoMsg(message: _99.QueryBatchesRequest): _99.QueryBatchesRequestProtoMsg; - }; - QueryBatchesResponse: { - typeUrl: string; - encode(message: _99.QueryBatchesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchesResponse; - fromPartial(object: Partial<_99.QueryBatchesResponse>): _99.QueryBatchesResponse; - fromAmino(object: _99.QueryBatchesResponseAmino): _99.QueryBatchesResponse; - toAmino(message: _99.QueryBatchesResponse): _99.QueryBatchesResponseAmino; - fromAminoMsg(object: _99.QueryBatchesResponseAminoMsg): _99.QueryBatchesResponse; - fromProtoMsg(message: _99.QueryBatchesResponseProtoMsg): _99.QueryBatchesResponse; - toProto(message: _99.QueryBatchesResponse): Uint8Array; - toProtoMsg(message: _99.QueryBatchesResponse): _99.QueryBatchesResponseProtoMsg; - }; - QueryBatchInfoRequest: { - typeUrl: string; - encode(message: _99.QueryBatchInfoRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchInfoRequest; - fromPartial(object: Partial<_99.QueryBatchInfoRequest>): _99.QueryBatchInfoRequest; - fromAmino(object: _99.QueryBatchInfoRequestAmino): _99.QueryBatchInfoRequest; - toAmino(message: _99.QueryBatchInfoRequest): _99.QueryBatchInfoRequestAmino; - fromAminoMsg(object: _99.QueryBatchInfoRequestAminoMsg): _99.QueryBatchInfoRequest; - fromProtoMsg(message: _99.QueryBatchInfoRequestProtoMsg): _99.QueryBatchInfoRequest; - toProto(message: _99.QueryBatchInfoRequest): Uint8Array; - toProtoMsg(message: _99.QueryBatchInfoRequest): _99.QueryBatchInfoRequestProtoMsg; - }; - QueryBatchInfoResponse: { - typeUrl: string; - encode(message: _99.QueryBatchInfoResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBatchInfoResponse; - fromPartial(object: Partial<_99.QueryBatchInfoResponse>): _99.QueryBatchInfoResponse; - fromAmino(object: _99.QueryBatchInfoResponseAmino): _99.QueryBatchInfoResponse; - toAmino(message: _99.QueryBatchInfoResponse): _99.QueryBatchInfoResponseAmino; - fromAminoMsg(object: _99.QueryBatchInfoResponseAminoMsg): _99.QueryBatchInfoResponse; - fromProtoMsg(message: _99.QueryBatchInfoResponseProtoMsg): _99.QueryBatchInfoResponse; - toProto(message: _99.QueryBatchInfoResponse): Uint8Array; - toProtoMsg(message: _99.QueryBatchInfoResponse): _99.QueryBatchInfoResponseProtoMsg; - }; - QueryBalanceRequest: { - typeUrl: string; - encode(message: _99.QueryBalanceRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBalanceRequest; - fromPartial(object: Partial<_99.QueryBalanceRequest>): _99.QueryBalanceRequest; - fromAmino(object: _99.QueryBalanceRequestAmino): _99.QueryBalanceRequest; - toAmino(message: _99.QueryBalanceRequest): _99.QueryBalanceRequestAmino; - fromAminoMsg(object: _99.QueryBalanceRequestAminoMsg): _99.QueryBalanceRequest; - fromProtoMsg(message: _99.QueryBalanceRequestProtoMsg): _99.QueryBalanceRequest; - toProto(message: _99.QueryBalanceRequest): Uint8Array; - toProtoMsg(message: _99.QueryBalanceRequest): _99.QueryBalanceRequestProtoMsg; - }; - QueryBalanceResponse: { - typeUrl: string; - encode(message: _99.QueryBalanceResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryBalanceResponse; - fromPartial(object: Partial<_99.QueryBalanceResponse>): _99.QueryBalanceResponse; - fromAmino(object: _99.QueryBalanceResponseAmino): _99.QueryBalanceResponse; - toAmino(message: _99.QueryBalanceResponse): _99.QueryBalanceResponseAmino; - fromAminoMsg(object: _99.QueryBalanceResponseAminoMsg): _99.QueryBalanceResponse; - fromProtoMsg(message: _99.QueryBalanceResponseProtoMsg): _99.QueryBalanceResponse; - toProto(message: _99.QueryBalanceResponse): Uint8Array; - toProtoMsg(message: _99.QueryBalanceResponse): _99.QueryBalanceResponseProtoMsg; - }; - QuerySupplyRequest: { - typeUrl: string; - encode(message: _99.QuerySupplyRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QuerySupplyRequest; - fromPartial(object: Partial<_99.QuerySupplyRequest>): _99.QuerySupplyRequest; - fromAmino(object: _99.QuerySupplyRequestAmino): _99.QuerySupplyRequest; - toAmino(message: _99.QuerySupplyRequest): _99.QuerySupplyRequestAmino; - fromAminoMsg(object: _99.QuerySupplyRequestAminoMsg): _99.QuerySupplyRequest; - fromProtoMsg(message: _99.QuerySupplyRequestProtoMsg): _99.QuerySupplyRequest; - toProto(message: _99.QuerySupplyRequest): Uint8Array; - toProtoMsg(message: _99.QuerySupplyRequest): _99.QuerySupplyRequestProtoMsg; - }; - QuerySupplyResponse: { - typeUrl: string; - encode(message: _99.QuerySupplyResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QuerySupplyResponse; - fromPartial(object: Partial<_99.QuerySupplyResponse>): _99.QuerySupplyResponse; - fromAmino(object: _99.QuerySupplyResponseAmino): _99.QuerySupplyResponse; - toAmino(message: _99.QuerySupplyResponse): _99.QuerySupplyResponseAmino; - fromAminoMsg(object: _99.QuerySupplyResponseAminoMsg): _99.QuerySupplyResponse; - fromProtoMsg(message: _99.QuerySupplyResponseProtoMsg): _99.QuerySupplyResponse; - toProto(message: _99.QuerySupplyResponse): Uint8Array; - toProtoMsg(message: _99.QuerySupplyResponse): _99.QuerySupplyResponseProtoMsg; - }; - QueryCreditTypesRequest: { - typeUrl: string; - encode(_: _99.QueryCreditTypesRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryCreditTypesRequest; - fromPartial(_: Partial<_99.QueryCreditTypesRequest>): _99.QueryCreditTypesRequest; - fromAmino(_: _99.QueryCreditTypesRequestAmino): _99.QueryCreditTypesRequest; - toAmino(_: _99.QueryCreditTypesRequest): _99.QueryCreditTypesRequestAmino; - fromAminoMsg(object: _99.QueryCreditTypesRequestAminoMsg): _99.QueryCreditTypesRequest; - fromProtoMsg(message: _99.QueryCreditTypesRequestProtoMsg): _99.QueryCreditTypesRequest; - toProto(message: _99.QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: _99.QueryCreditTypesRequest): _99.QueryCreditTypesRequestProtoMsg; - }; - QueryCreditTypesResponse: { - typeUrl: string; - encode(message: _99.QueryCreditTypesResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _99.QueryCreditTypesResponse; - fromPartial(object: Partial<_99.QueryCreditTypesResponse>): _99.QueryCreditTypesResponse; - fromAmino(object: _99.QueryCreditTypesResponseAmino): _99.QueryCreditTypesResponse; - toAmino(message: _99.QueryCreditTypesResponse): _99.QueryCreditTypesResponseAmino; - fromAminoMsg(object: _99.QueryCreditTypesResponseAminoMsg): _99.QueryCreditTypesResponse; - fromProtoMsg(message: _99.QueryCreditTypesResponseProtoMsg): _99.QueryCreditTypesResponse; - toProto(message: _99.QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: _99.QueryCreditTypesResponse): _99.QueryCreditTypesResponseProtoMsg; - }; - GenesisState: { - typeUrl: string; - encode(message: _98.GenesisState, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.GenesisState; - fromPartial(object: Partial<_98.GenesisState>): _98.GenesisState; - fromAmino(object: _98.GenesisStateAmino): _98.GenesisState; - toAmino(message: _98.GenesisState): _98.GenesisStateAmino; - fromAminoMsg(object: _98.GenesisStateAminoMsg): _98.GenesisState; - fromProtoMsg(message: _98.GenesisStateProtoMsg): _98.GenesisState; - toProto(message: _98.GenesisState): Uint8Array; - toProtoMsg(message: _98.GenesisState): _98.GenesisStateProtoMsg; - }; - Balance: { - typeUrl: string; - encode(message: _98.Balance, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.Balance; - fromPartial(object: Partial<_98.Balance>): _98.Balance; - fromAmino(object: _98.BalanceAmino): _98.Balance; - toAmino(message: _98.Balance): _98.BalanceAmino; - fromAminoMsg(object: _98.BalanceAminoMsg): _98.Balance; - fromProtoMsg(message: _98.BalanceProtoMsg): _98.Balance; - toProto(message: _98.Balance): Uint8Array; - toProtoMsg(message: _98.Balance): _98.BalanceProtoMsg; - }; - Supply: { - typeUrl: string; - encode(message: _98.Supply, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _98.Supply; - fromPartial(object: Partial<_98.Supply>): _98.Supply; - fromAmino(object: _98.SupplyAmino): _98.Supply; - toAmino(message: _98.Supply): _98.SupplyAmino; - fromAminoMsg(object: _98.SupplyAminoMsg): _98.Supply; - fromProtoMsg(message: _98.SupplyProtoMsg): _98.Supply; - toProto(message: _98.Supply): Uint8Array; - toProtoMsg(message: _98.Supply): _98.SupplyProtoMsg; - }; - EventCreateClass: { - typeUrl: string; - encode(message: _97.EventCreateClass, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCreateClass; - fromPartial(object: Partial<_97.EventCreateClass>): _97.EventCreateClass; - fromAmino(object: _97.EventCreateClassAmino): _97.EventCreateClass; - toAmino(message: _97.EventCreateClass): _97.EventCreateClassAmino; - fromAminoMsg(object: _97.EventCreateClassAminoMsg): _97.EventCreateClass; - fromProtoMsg(message: _97.EventCreateClassProtoMsg): _97.EventCreateClass; - toProto(message: _97.EventCreateClass): Uint8Array; - toProtoMsg(message: _97.EventCreateClass): _97.EventCreateClassProtoMsg; - }; - EventCreateBatch: { - typeUrl: string; - encode(message: _97.EventCreateBatch, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCreateBatch; - fromPartial(object: Partial<_97.EventCreateBatch>): _97.EventCreateBatch; - fromAmino(object: _97.EventCreateBatchAmino): _97.EventCreateBatch; - toAmino(message: _97.EventCreateBatch): _97.EventCreateBatchAmino; - fromAminoMsg(object: _97.EventCreateBatchAminoMsg): _97.EventCreateBatch; - fromProtoMsg(message: _97.EventCreateBatchProtoMsg): _97.EventCreateBatch; - toProto(message: _97.EventCreateBatch): Uint8Array; - toProtoMsg(message: _97.EventCreateBatch): _97.EventCreateBatchProtoMsg; - }; - EventReceive: { - typeUrl: string; - encode(message: _97.EventReceive, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventReceive; - fromPartial(object: Partial<_97.EventReceive>): _97.EventReceive; - fromAmino(object: _97.EventReceiveAmino): _97.EventReceive; - toAmino(message: _97.EventReceive): _97.EventReceiveAmino; - fromAminoMsg(object: _97.EventReceiveAminoMsg): _97.EventReceive; - fromProtoMsg(message: _97.EventReceiveProtoMsg): _97.EventReceive; - toProto(message: _97.EventReceive): Uint8Array; - toProtoMsg(message: _97.EventReceive): _97.EventReceiveProtoMsg; - }; - EventRetire: { - typeUrl: string; - encode(message: _97.EventRetire, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventRetire; - fromPartial(object: Partial<_97.EventRetire>): _97.EventRetire; - fromAmino(object: _97.EventRetireAmino): _97.EventRetire; - toAmino(message: _97.EventRetire): _97.EventRetireAmino; - fromAminoMsg(object: _97.EventRetireAminoMsg): _97.EventRetire; - fromProtoMsg(message: _97.EventRetireProtoMsg): _97.EventRetire; - toProto(message: _97.EventRetire): Uint8Array; - toProtoMsg(message: _97.EventRetire): _97.EventRetireProtoMsg; - }; - EventCancel: { - typeUrl: string; - encode(message: _97.EventCancel, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _97.EventCancel; - fromPartial(object: Partial<_97.EventCancel>): _97.EventCancel; - fromAmino(object: _97.EventCancelAmino): _97.EventCancel; - toAmino(message: _97.EventCancel): _97.EventCancelAmino; - fromAminoMsg(object: _97.EventCancelAminoMsg): _97.EventCancel; - fromProtoMsg(message: _97.EventCancelProtoMsg): _97.EventCancel; - toProto(message: _97.EventCancel): Uint8Array; - toProtoMsg(message: _97.EventCancel): _97.EventCancelProtoMsg; - }; - }; - } - namespace intertx { - const v1: { - MsgClientImpl: typeof _216.MsgClientImpl; - QueryClientImpl: typeof _210.QueryClientImpl; - createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { - interchainAccount(request: _102.QueryInterchainAccountRequest): Promise<_102.QueryInterchainAccountResponse>; - }; - LCDQueryClient: typeof _204.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - registerAccount(value: _103.MsgRegisterAccount): { - typeUrl: string; - value: Uint8Array; - }; - submitTx(value: _103.MsgSubmitTx): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - registerAccount(value: _103.MsgRegisterAccount): { - typeUrl: string; - value: _103.MsgRegisterAccount; - }; - submitTx(value: _103.MsgSubmitTx): { - typeUrl: string; - value: _103.MsgSubmitTx; - }; - }; - fromPartial: { - registerAccount(value: _103.MsgRegisterAccount): { - typeUrl: string; - value: _103.MsgRegisterAccount; - }; - submitTx(value: _103.MsgSubmitTx): { - typeUrl: string; - value: _103.MsgSubmitTx; - }; - }; - }; - AminoConverter: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: _103.MsgRegisterAccount) => _103.MsgRegisterAccountAmino; - fromAmino: (object: _103.MsgRegisterAccountAmino) => _103.MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: _103.MsgSubmitTx) => _103.MsgSubmitTxAmino; - fromAmino: (object: _103.MsgSubmitTxAmino) => _103.MsgSubmitTx; - }; - }; - MsgRegisterAccount: { - typeUrl: string; - encode(message: _103.MsgRegisterAccount, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgRegisterAccount; - fromPartial(object: Partial<_103.MsgRegisterAccount>): _103.MsgRegisterAccount; - fromAmino(object: _103.MsgRegisterAccountAmino): _103.MsgRegisterAccount; - toAmino(message: _103.MsgRegisterAccount): _103.MsgRegisterAccountAmino; - fromAminoMsg(object: _103.MsgRegisterAccountAminoMsg): _103.MsgRegisterAccount; - fromProtoMsg(message: _103.MsgRegisterAccountProtoMsg): _103.MsgRegisterAccount; - toProto(message: _103.MsgRegisterAccount): Uint8Array; - toProtoMsg(message: _103.MsgRegisterAccount): _103.MsgRegisterAccountProtoMsg; - }; - MsgRegisterAccountResponse: { - typeUrl: string; - encode(_: _103.MsgRegisterAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgRegisterAccountResponse; - fromPartial(_: Partial<_103.MsgRegisterAccountResponse>): _103.MsgRegisterAccountResponse; - fromAmino(_: _103.MsgRegisterAccountResponseAmino): _103.MsgRegisterAccountResponse; - toAmino(_: _103.MsgRegisterAccountResponse): _103.MsgRegisterAccountResponseAmino; - fromAminoMsg(object: _103.MsgRegisterAccountResponseAminoMsg): _103.MsgRegisterAccountResponse; - fromProtoMsg(message: _103.MsgRegisterAccountResponseProtoMsg): _103.MsgRegisterAccountResponse; - toProto(message: _103.MsgRegisterAccountResponse): Uint8Array; - toProtoMsg(message: _103.MsgRegisterAccountResponse): _103.MsgRegisterAccountResponseProtoMsg; - }; - MsgSubmitTx: { - typeUrl: string; - encode(message: _103.MsgSubmitTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgSubmitTx; - fromPartial(object: Partial<_103.MsgSubmitTx>): _103.MsgSubmitTx; - fromAmino(object: _103.MsgSubmitTxAmino): _103.MsgSubmitTx; - toAmino(message: _103.MsgSubmitTx): _103.MsgSubmitTxAmino; - fromAminoMsg(object: _103.MsgSubmitTxAminoMsg): _103.MsgSubmitTx; - fromProtoMsg(message: _103.MsgSubmitTxProtoMsg): _103.MsgSubmitTx; - toProto(message: _103.MsgSubmitTx): Uint8Array; - toProtoMsg(message: _103.MsgSubmitTx): _103.MsgSubmitTxProtoMsg; - }; - MsgSubmitTxResponse: { - typeUrl: string; - encode(_: _103.MsgSubmitTxResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _103.MsgSubmitTxResponse; - fromPartial(_: Partial<_103.MsgSubmitTxResponse>): _103.MsgSubmitTxResponse; - fromAmino(_: _103.MsgSubmitTxResponseAmino): _103.MsgSubmitTxResponse; - toAmino(_: _103.MsgSubmitTxResponse): _103.MsgSubmitTxResponseAmino; - fromAminoMsg(object: _103.MsgSubmitTxResponseAminoMsg): _103.MsgSubmitTxResponse; - fromProtoMsg(message: _103.MsgSubmitTxResponseProtoMsg): _103.MsgSubmitTxResponse; - toProto(message: _103.MsgSubmitTxResponse): Uint8Array; - toProtoMsg(message: _103.MsgSubmitTxResponse): _103.MsgSubmitTxResponseProtoMsg; - }; - QueryInterchainAccountRequest: { - typeUrl: string; - encode(message: _102.QueryInterchainAccountRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _102.QueryInterchainAccountRequest; - fromPartial(object: Partial<_102.QueryInterchainAccountRequest>): _102.QueryInterchainAccountRequest; - fromAmino(object: _102.QueryInterchainAccountRequestAmino): _102.QueryInterchainAccountRequest; - toAmino(message: _102.QueryInterchainAccountRequest): _102.QueryInterchainAccountRequestAmino; - fromAminoMsg(object: _102.QueryInterchainAccountRequestAminoMsg): _102.QueryInterchainAccountRequest; - fromProtoMsg(message: _102.QueryInterchainAccountRequestProtoMsg): _102.QueryInterchainAccountRequest; - toProto(message: _102.QueryInterchainAccountRequest): Uint8Array; - toProtoMsg(message: _102.QueryInterchainAccountRequest): _102.QueryInterchainAccountRequestProtoMsg; - }; - QueryInterchainAccountResponse: { - typeUrl: string; - encode(message: _102.QueryInterchainAccountResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _102.QueryInterchainAccountResponse; - fromPartial(object: Partial<_102.QueryInterchainAccountResponse>): _102.QueryInterchainAccountResponse; - fromAmino(object: _102.QueryInterchainAccountResponseAmino): _102.QueryInterchainAccountResponse; - toAmino(message: _102.QueryInterchainAccountResponse): _102.QueryInterchainAccountResponseAmino; - fromAminoMsg(object: _102.QueryInterchainAccountResponseAminoMsg): _102.QueryInterchainAccountResponse; - fromProtoMsg(message: _102.QueryInterchainAccountResponseProtoMsg): _102.QueryInterchainAccountResponse; - toProto(message: _102.QueryInterchainAccountResponse): Uint8Array; - toProtoMsg(message: _102.QueryInterchainAccountResponse): _102.QueryInterchainAccountResponseProtoMsg; - }; - }; - } - const ClientFactory: { - createRPCMsgClient: ({ rpc }: { - rpc: import("../helpers").Rpc; - }) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - regen: { - data: { - v1: _211.MsgClientImpl; - }; - ecocredit: { - basket: { - v1: _212.MsgClientImpl; - }; - marketplace: { - v1: _213.MsgClientImpl; - }; - v1: _214.MsgClientImpl; - v1alpha1: _215.MsgClientImpl; - }; - intertx: { - v1: _216.MsgClientImpl; - }; - }; - }>; - createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; - }; - }; - }; - regen: { - data: { - v1: { - anchorByIRI(request: _77.QueryAnchorByIRIRequest): Promise<_77.QueryAnchorByIRIResponse>; - anchorByHash(request: _77.QueryAnchorByHashRequest): Promise<_77.QueryAnchorByHashResponse>; - attestationsByAttestor(request: _77.QueryAttestationsByAttestorRequest): Promise<_77.QueryAttestationsByAttestorResponse>; - attestationsByIRI(request: _77.QueryAttestationsByIRIRequest): Promise<_77.QueryAttestationsByIRIResponse>; - attestationsByHash(request: _77.QueryAttestationsByHashRequest): Promise<_77.QueryAttestationsByHashResponse>; - resolver(request: _77.QueryResolverRequest): Promise<_77.QueryResolverResponse>; - resolversByIRI(request: _77.QueryResolversByIRIRequest): Promise<_77.QueryResolversByIRIResponse>; - resolversByHash(request: _77.QueryResolversByHashRequest): Promise<_77.QueryResolversByHashResponse>; - resolversByURL(request: _77.QueryResolversByURLRequest): Promise<_77.QueryResolversByURLResponse>; - convertIRIToHash(request: _77.ConvertIRIToHashRequest): Promise<_77.ConvertIRIToHashResponse>; - convertHashToIRI(request: _77.ConvertHashToIRIRequest): Promise<_77.ConvertHashToIRIResponse>; - }; - }; - ecocredit: { - basket: { - v1: { - basket(request: _82.QueryBasketRequest): Promise<_82.QueryBasketResponse>; - baskets(request?: _82.QueryBasketsRequest): Promise<_82.QueryBasketsResponse>; - basketBalances(request: _82.QueryBasketBalancesRequest): Promise<_82.QueryBasketBalancesResponse>; - basketBalance(request: _82.QueryBasketBalanceRequest): Promise<_82.QueryBasketBalanceResponse>; - basketFee(request?: _82.QueryBasketFeeRequest): Promise<_82.QueryBasketFeeResponse>; - }; - }; - marketplace: { - v1: { - sellOrder(request: _87.QuerySellOrderRequest): Promise<_87.QuerySellOrderResponse>; - sellOrders(request?: _87.QuerySellOrdersRequest): Promise<_87.QuerySellOrdersResponse>; - sellOrdersByBatch(request: _87.QuerySellOrdersByBatchRequest): Promise<_87.QuerySellOrdersByBatchResponse>; - sellOrdersBySeller(request: _87.QuerySellOrdersBySellerRequest): Promise<_87.QuerySellOrdersBySellerResponse>; - allowedDenoms(request?: _87.QueryAllowedDenomsRequest): Promise<_87.QueryAllowedDenomsResponse>; - }; - }; - v1: { - classes(request?: _93.QueryClassesRequest): Promise<_93.QueryClassesResponse>; - classesByAdmin(request: _93.QueryClassesByAdminRequest): Promise<_93.QueryClassesByAdminResponse>; - class(request: _93.QueryClassRequest): Promise<_93.QueryClassResponse>; - classIssuers(request: _93.QueryClassIssuersRequest): Promise<_93.QueryClassIssuersResponse>; - projects(request?: _93.QueryProjectsRequest): Promise<_93.QueryProjectsResponse>; - projectsByClass(request: _93.QueryProjectsByClassRequest): Promise<_93.QueryProjectsByClassResponse>; - projectsByReferenceId(request: _93.QueryProjectsByReferenceIdRequest): Promise<_93.QueryProjectsByReferenceIdResponse>; - projectsByAdmin(request: _93.QueryProjectsByAdminRequest): Promise<_93.QueryProjectsByAdminResponse>; - project(request: _93.QueryProjectRequest): Promise<_93.QueryProjectResponse>; - batches(request?: _93.QueryBatchesRequest): Promise<_93.QueryBatchesResponse>; - batchesByIssuer(request: _93.QueryBatchesByIssuerRequest): Promise<_93.QueryBatchesByIssuerResponse>; - batchesByClass(request: _93.QueryBatchesByClassRequest): Promise<_93.QueryBatchesByClassResponse>; - batchesByProject(request: _93.QueryBatchesByProjectRequest): Promise<_93.QueryBatchesByProjectResponse>; - batch(request: _93.QueryBatchRequest): Promise<_93.QueryBatchResponse>; - balance(request: _93.QueryBalanceRequest): Promise<_93.QueryBalanceResponse>; - balances(request: _93.QueryBalancesRequest): Promise<_93.QueryBalancesResponse>; - balancesByBatch(request: _93.QueryBalancesByBatchRequest): Promise<_93.QueryBalancesByBatchResponse>; - allBalances(request?: _93.QueryAllBalancesRequest): Promise<_93.QueryAllBalancesResponse>; - supply(request: _93.QuerySupplyRequest): Promise<_93.QuerySupplyResponse>; - creditTypes(request?: _93.QueryCreditTypesRequest): Promise<_93.QueryCreditTypesResponse>; - params(request?: _93.QueryParamsRequest): Promise<_93.QueryParamsResponse>; - creditType(request: _93.QueryCreditTypeRequest): Promise<_93.QueryCreditTypeResponse>; - classCreatorAllowlist(request?: _93.QueryClassCreatorAllowlistRequest): Promise<_93.QueryClassCreatorAllowlistResponse>; - allowedClassCreators(request?: _93.QueryAllowedClassCreatorsRequest): Promise<_93.QueryAllowedClassCreatorsResponse>; - classFee(request?: _93.QueryClassFeeRequest): Promise<_93.QueryClassFeeResponse>; - allowedBridgeChains(request?: _93.QueryAllowedBridgeChainsRequest): Promise<_93.QueryAllowedBridgeChainsResponse>; - }; - v1alpha1: { - classes(request?: _99.QueryClassesRequest): Promise<_99.QueryClassesResponse>; - classInfo(request: _99.QueryClassInfoRequest): Promise<_99.QueryClassInfoResponse>; - batches(request: _99.QueryBatchesRequest): Promise<_99.QueryBatchesResponse>; - batchInfo(request: _99.QueryBatchInfoRequest): Promise<_99.QueryBatchInfoResponse>; - balance(request: _99.QueryBalanceRequest): Promise<_99.QueryBalanceResponse>; - supply(request: _99.QuerySupplyRequest): Promise<_99.QuerySupplyResponse>; - creditTypes(request?: _99.QueryCreditTypesRequest): Promise<_99.QueryCreditTypesResponse>; - params(request?: _99.QueryParamsRequest): Promise<_99.QueryParamsResponse>; - }; - }; - intertx: { - v1: { - interchainAccount(request: _102.QueryInterchainAccountRequest): Promise<_102.QueryInterchainAccountResponse>; - }; - }; - }; - }>; - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; - }) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - regen: { - data: { - v1: _199.LCDQueryClient; - }; - ecocredit: { - basket: { - v1: _200.LCDQueryClient; - }; - marketplace: { - v1: _201.LCDQueryClient; - }; - v1: _202.LCDQueryClient; - v1alpha1: _203.LCDQueryClient; - }; - intertx: { - v1: _204.LCDQueryClient; - }; - }; - }>; - }; -} diff --git a/packages/api/dist/regen/bundle.js b/packages/api/dist/regen/bundle.js deleted file mode 100644 index f79fa008..00000000 --- a/packages/api/dist/regen/bundle.js +++ /dev/null @@ -1,186 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.regen = void 0; -//@ts-nocheck -const _76 = __importStar(require("./data/v1/events")); -const _77 = __importStar(require("./data/v1/query")); -const _78 = __importStar(require("./data/v1/state")); -const _79 = __importStar(require("./data/v1/tx")); -const _80 = __importStar(require("./data/v1/types")); -const _81 = __importStar(require("./ecocredit/basket/v1/events")); -const _82 = __importStar(require("./ecocredit/basket/v1/query")); -const _83 = __importStar(require("./ecocredit/basket/v1/state")); -const _84 = __importStar(require("./ecocredit/basket/v1/tx")); -const _85 = __importStar(require("./ecocredit/basket/v1/types")); -const _86 = __importStar(require("./ecocredit/marketplace/v1/events")); -const _87 = __importStar(require("./ecocredit/marketplace/v1/query")); -const _88 = __importStar(require("./ecocredit/marketplace/v1/state")); -const _89 = __importStar(require("./ecocredit/marketplace/v1/tx")); -const _90 = __importStar(require("./ecocredit/marketplace/v1/types")); -const _91 = __importStar(require("./ecocredit/orderbook/v1alpha1/memory")); -const _92 = __importStar(require("./ecocredit/v1/events")); -const _93 = __importStar(require("./ecocredit/v1/query")); -const _94 = __importStar(require("./ecocredit/v1/state")); -const _95 = __importStar(require("./ecocredit/v1/tx")); -const _96 = __importStar(require("./ecocredit/v1/types")); -const _97 = __importStar(require("./ecocredit/v1alpha1/events")); -const _98 = __importStar(require("./ecocredit/v1alpha1/genesis")); -const _99 = __importStar(require("./ecocredit/v1alpha1/query")); -const _100 = __importStar(require("./ecocredit/v1alpha1/tx")); -const _101 = __importStar(require("./ecocredit/v1alpha1/types")); -const _102 = __importStar(require("./intertx/v1/query")); -const _103 = __importStar(require("./intertx/v1/tx")); -const _187 = __importStar(require("./data/v1/tx.amino")); -const _188 = __importStar(require("./ecocredit/basket/v1/tx.amino")); -const _189 = __importStar(require("./ecocredit/marketplace/v1/tx.amino")); -const _190 = __importStar(require("./ecocredit/v1/tx.amino")); -const _191 = __importStar(require("./ecocredit/v1alpha1/tx.amino")); -const _192 = __importStar(require("./intertx/v1/tx.amino")); -const _193 = __importStar(require("./data/v1/tx.registry")); -const _194 = __importStar(require("./ecocredit/basket/v1/tx.registry")); -const _195 = __importStar(require("./ecocredit/marketplace/v1/tx.registry")); -const _196 = __importStar(require("./ecocredit/v1/tx.registry")); -const _197 = __importStar(require("./ecocredit/v1alpha1/tx.registry")); -const _198 = __importStar(require("./intertx/v1/tx.registry")); -const _199 = __importStar(require("./data/v1/query.lcd")); -const _200 = __importStar(require("./ecocredit/basket/v1/query.lcd")); -const _201 = __importStar(require("./ecocredit/marketplace/v1/query.lcd")); -const _202 = __importStar(require("./ecocredit/v1/query.lcd")); -const _203 = __importStar(require("./ecocredit/v1alpha1/query.lcd")); -const _204 = __importStar(require("./intertx/v1/query.lcd")); -const _205 = __importStar(require("./data/v1/query.rpc.Query")); -const _206 = __importStar(require("./ecocredit/basket/v1/query.rpc.Query")); -const _207 = __importStar(require("./ecocredit/marketplace/v1/query.rpc.Query")); -const _208 = __importStar(require("./ecocredit/v1/query.rpc.Query")); -const _209 = __importStar(require("./ecocredit/v1alpha1/query.rpc.Query")); -const _210 = __importStar(require("./intertx/v1/query.rpc.Query")); -const _211 = __importStar(require("./data/v1/tx.rpc.msg")); -const _212 = __importStar(require("./ecocredit/basket/v1/tx.rpc.msg")); -const _213 = __importStar(require("./ecocredit/marketplace/v1/tx.rpc.msg")); -const _214 = __importStar(require("./ecocredit/v1/tx.rpc.msg")); -const _215 = __importStar(require("./ecocredit/v1alpha1/tx.rpc.msg")); -const _216 = __importStar(require("./intertx/v1/tx.rpc.msg")); -const _223 = __importStar(require("./lcd")); -const _224 = __importStar(require("./rpc.query")); -const _225 = __importStar(require("./rpc.tx")); -var regen; -(function (regen) { - let data; - (function (data) { - data.v1 = { - ..._76, - ..._77, - ..._78, - ..._79, - ..._80, - ..._187, - ..._193, - ..._199, - ..._205, - ..._211 - }; - })(data = regen.data || (regen.data = {})); - let ecocredit; - (function (ecocredit) { - let basket; - (function (basket) { - basket.v1 = { - ..._81, - ..._82, - ..._83, - ..._84, - ..._85, - ..._188, - ..._194, - ..._200, - ..._206, - ..._212 - }; - })(basket = ecocredit.basket || (ecocredit.basket = {})); - let marketplace; - (function (marketplace) { - marketplace.v1 = { - ..._86, - ..._87, - ..._88, - ..._89, - ..._90, - ..._189, - ..._195, - ..._201, - ..._207, - ..._213 - }; - })(marketplace = ecocredit.marketplace || (ecocredit.marketplace = {})); - let orderbook; - (function (orderbook) { - orderbook.v1alpha1 = { - ..._91 - }; - })(orderbook = ecocredit.orderbook || (ecocredit.orderbook = {})); - ecocredit.v1 = { - ..._92, - ..._93, - ..._94, - ..._95, - ..._96, - ..._190, - ..._196, - ..._202, - ..._208, - ..._214 - }; - ecocredit.v1alpha1 = { - ..._97, - ..._98, - ..._99, - ..._100, - ..._101, - ..._191, - ..._197, - ..._203, - ..._209, - ..._215 - }; - })(ecocredit = regen.ecocredit || (regen.ecocredit = {})); - let intertx; - (function (intertx) { - intertx.v1 = { - ..._102, - ..._103, - ..._192, - ..._198, - ..._204, - ..._210, - ..._216 - }; - })(intertx = regen.intertx || (regen.intertx = {})); - regen.ClientFactory = { - ..._223, - ..._224, - ..._225 - }; -})(regen || (exports.regen = regen = {})); diff --git a/packages/api/dist/regen/client.d.ts b/packages/api/dist/regen/client.d.ts deleted file mode 100644 index d7a24797..00000000 --- a/packages/api/dist/regen/client.d.ts +++ /dev/null @@ -1,262 +0,0 @@ -import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; -import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const regenAminoConverters: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: import("./intertx/v1/tx").MsgRegisterAccount) => import("./intertx/v1/tx").MsgRegisterAccountAmino; - fromAmino: (object: import("./intertx/v1/tx").MsgRegisterAccountAmino) => import("./intertx/v1/tx").MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: import("./intertx/v1/tx").MsgSubmitTx) => import("./intertx/v1/tx").MsgSubmitTxAmino; - fromAmino: (object: import("./intertx/v1/tx").MsgSubmitTxAmino) => import("./intertx/v1/tx").MsgSubmitTx; - }; - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateClass) => import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateClassAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCreateBatch) => import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1alpha1/tx").MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgSend) => import("./ecocredit/v1alpha1/tx").MsgSendAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgSendAmino) => import("./ecocredit/v1alpha1/tx").MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgRetire) => import("./ecocredit/v1alpha1/tx").MsgRetireAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgRetireAmino) => import("./ecocredit/v1alpha1/tx").MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgCancel) => import("./ecocredit/v1alpha1/tx").MsgCancelAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgCancelAmino) => import("./ecocredit/v1alpha1/tx").MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1alpha1/tx").MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateClass) => import("./ecocredit/v1/tx").MsgCreateClassAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateClassAmino) => import("./ecocredit/v1/tx").MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateProject) => import("./ecocredit/v1/tx").MsgCreateProjectAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateProjectAmino) => import("./ecocredit/v1/tx").MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCreateBatch) => import("./ecocredit/v1/tx").MsgCreateBatchAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCreateBatchAmino) => import("./ecocredit/v1/tx").MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgMintBatchCredits) => import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgMintBatchCreditsAmino) => import("./ecocredit/v1/tx").MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSealBatch) => import("./ecocredit/v1/tx").MsgSealBatchAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSealBatchAmino) => import("./ecocredit/v1/tx").MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSend) => import("./ecocredit/v1/tx").MsgSendAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSendAmino) => import("./ecocredit/v1/tx").MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRetire) => import("./ecocredit/v1/tx").MsgRetireAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRetireAmino) => import("./ecocredit/v1/tx").MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgCancel) => import("./ecocredit/v1/tx").MsgCancelAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgCancelAmino) => import("./ecocredit/v1/tx").MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassAdmin) => import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassIssuers) => import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassIssuersAmino) => import("./ecocredit/v1/tx").MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassMetadata) => import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectAdmin) => import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectAdminAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateProjectMetadata) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateProjectMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateBatchMetadata) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateBatchMetadataAmino) => import("./ecocredit/v1/tx").MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgBridge) => import("./ecocredit/v1/tx").MsgBridgeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeAmino) => import("./ecocredit/v1/tx").MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgBridgeReceive) => import("./ecocredit/v1/tx").MsgBridgeReceiveAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgBridgeReceiveAmino) => import("./ecocredit/v1/tx").MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddCreditType) => import("./ecocredit/v1/tx").MsgAddCreditTypeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddCreditTypeAmino) => import("./ecocredit/v1/tx").MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlistAmino) => import("./ecocredit/v1/tx").MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddClassCreator) => import("./ecocredit/v1/tx").MsgAddClassCreatorAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddClassCreatorAmino) => import("./ecocredit/v1/tx").MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveClassCreator) => import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveClassCreatorAmino) => import("./ecocredit/v1/tx").MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgUpdateClassFee) => import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgUpdateClassFeeAmino) => import("./ecocredit/v1/tx").MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgAddAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChainAmino) => import("./ecocredit/v1/tx").MsgRemoveAllowedBridgeChain; - }; - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgSell) => import("./ecocredit/marketplace/v1/tx").MsgSellAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgSellAmino) => import("./ecocredit/marketplace/v1/tx").MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrdersAmino) => import("./ecocredit/marketplace/v1/tx").MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrderAmino) => import("./ecocredit/marketplace/v1/tx").MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgBuyDirect) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgBuyDirectAmino) => import("./ecocredit/marketplace/v1/tx").MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino; - fromAmino: (object: import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenomAmino) => import("./ecocredit/marketplace/v1/tx").MsgRemoveAllowedDenom; - }; - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgCreate) => import("./ecocredit/basket/v1/tx").MsgCreateAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgCreateAmino) => import("./ecocredit/basket/v1/tx").MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgPut) => import("./ecocredit/basket/v1/tx").MsgPutAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgPutAmino) => import("./ecocredit/basket/v1/tx").MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgTake) => import("./ecocredit/basket/v1/tx").MsgTakeAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgTakeAmino) => import("./ecocredit/basket/v1/tx").MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateBasketFeeAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateCurator) => import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateCuratorAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino; - fromAmino: (object: import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteriaAmino) => import("./ecocredit/basket/v1/tx").MsgUpdateDateCriteria; - }; - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgAnchor) => import("./data/v1/tx").MsgAnchorAmino; - fromAmino: (object: import("./data/v1/tx").MsgAnchorAmino) => import("./data/v1/tx").MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgAttest) => import("./data/v1/tx").MsgAttestAmino; - fromAmino: (object: import("./data/v1/tx").MsgAttestAmino) => import("./data/v1/tx").MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgDefineResolver) => import("./data/v1/tx").MsgDefineResolverAmino; - fromAmino: (object: import("./data/v1/tx").MsgDefineResolverAmino) => import("./data/v1/tx").MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: import("./data/v1/tx").MsgRegisterResolver) => import("./data/v1/tx").MsgRegisterResolverAmino; - fromAmino: (object: import("./data/v1/tx").MsgRegisterResolverAmino) => import("./data/v1/tx").MsgRegisterResolver; - }; -}; -export declare const regenProtoRegistry: ReadonlyArray<[string, GeneratedType]>; -export declare const getSigningRegenClientOptions: ({ defaultTypes }?: { - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => { - registry: Registry; - aminoTypes: AminoTypes; -}; -export declare const getSigningRegenClient: ({ rpcEndpoint, signer, defaultTypes }: { - rpcEndpoint: string | HttpEndpoint; - signer: OfflineSigner; - defaultTypes?: ReadonlyArray<[string, GeneratedType]>; -}) => Promise; diff --git a/packages/api/dist/regen/client.js b/packages/api/dist/regen/client.js deleted file mode 100644 index b0035d01..00000000 --- a/packages/api/dist/regen/client.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSigningRegenClient = exports.getSigningRegenClientOptions = exports.regenProtoRegistry = exports.regenAminoConverters = void 0; -//@ts-nocheck -const proto_signing_1 = require("@cosmjs/proto-signing"); -const stargate_1 = require("@cosmjs/stargate"); -const regenDataV1TxRegistry = __importStar(require("./data/v1/tx.registry")); -const regenEcocreditBasketV1TxRegistry = __importStar(require("./ecocredit/basket/v1/tx.registry")); -const regenEcocreditMarketplaceV1TxRegistry = __importStar(require("./ecocredit/marketplace/v1/tx.registry")); -const regenEcocreditV1TxRegistry = __importStar(require("./ecocredit/v1/tx.registry")); -const regenEcocreditV1alpha1TxRegistry = __importStar(require("./ecocredit/v1alpha1/tx.registry")); -const regenIntertxV1TxRegistry = __importStar(require("./intertx/v1/tx.registry")); -const regenDataV1TxAmino = __importStar(require("./data/v1/tx.amino")); -const regenEcocreditBasketV1TxAmino = __importStar(require("./ecocredit/basket/v1/tx.amino")); -const regenEcocreditMarketplaceV1TxAmino = __importStar(require("./ecocredit/marketplace/v1/tx.amino")); -const regenEcocreditV1TxAmino = __importStar(require("./ecocredit/v1/tx.amino")); -const regenEcocreditV1alpha1TxAmino = __importStar(require("./ecocredit/v1alpha1/tx.amino")); -const regenIntertxV1TxAmino = __importStar(require("./intertx/v1/tx.amino")); -exports.regenAminoConverters = { - ...regenDataV1TxAmino.AminoConverter, - ...regenEcocreditBasketV1TxAmino.AminoConverter, - ...regenEcocreditMarketplaceV1TxAmino.AminoConverter, - ...regenEcocreditV1TxAmino.AminoConverter, - ...regenEcocreditV1alpha1TxAmino.AminoConverter, - ...regenIntertxV1TxAmino.AminoConverter -}; -exports.regenProtoRegistry = [...regenDataV1TxRegistry.registry, ...regenEcocreditBasketV1TxRegistry.registry, ...regenEcocreditMarketplaceV1TxRegistry.registry, ...regenEcocreditV1TxRegistry.registry, ...regenEcocreditV1alpha1TxRegistry.registry, ...regenIntertxV1TxRegistry.registry]; -const getSigningRegenClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => { - const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.regenProtoRegistry]); - const aminoTypes = new stargate_1.AminoTypes({ - ...exports.regenAminoConverters - }); - return { - registry, - aminoTypes - }; -}; -exports.getSigningRegenClientOptions = getSigningRegenClientOptions; -const getSigningRegenClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => { - const { registry, aminoTypes } = (0, exports.getSigningRegenClientOptions)({ - defaultTypes - }); - const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry: registry, - aminoTypes - }); - return client; -}; -exports.getSigningRegenClient = getSigningRegenClient; diff --git a/packages/api/dist/regen/data/v1/events.d.ts b/packages/api/dist/regen/data/v1/events.d.ts deleted file mode 100644 index 56302a53..00000000 --- a/packages/api/dist/regen/data/v1/events.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchor { - /** iri is the IRI of the data anchored on chain. */ - iri: string; -} -export interface EventAnchorProtoMsg { - typeUrl: "/regen.data.v1.EventAnchor"; - value: Uint8Array; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorAmino { - /** iri is the IRI of the data anchored on chain. */ - iri?: string; -} -export interface EventAnchorAminoMsg { - type: "/regen.data.v1.EventAnchor"; - value: EventAnchorAmino; -} -/** EventAnchor is an event emitted when data is anchored on chain. */ -export interface EventAnchorSDKType { - iri: string; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttest { - /** iri is the IRI of the data attested to. */ - iri: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor: string; -} -export interface EventAttestProtoMsg { - typeUrl: "/regen.data.v1.EventAttest"; - value: Uint8Array; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestAmino { - /** iri is the IRI of the data attested to. */ - iri?: string; - /** - * attestor is the address of the account that has attested to the veracity of - * the data. - */ - attestor?: string; -} -export interface EventAttestAminoMsg { - type: "/regen.data.v1.EventAttest"; - value: EventAttestAmino; -} -/** EventAttest is an event emitted when data is attested to on chain. */ -export interface EventAttestSDKType { - iri: string; - attestor: string; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolver { - /** id is the ID of the defined resolver. */ - id: bigint; -} -export interface EventDefineResolverProtoMsg { - typeUrl: "/regen.data.v1.EventDefineResolver"; - value: Uint8Array; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverAmino { - /** id is the ID of the defined resolver. */ - id?: string; -} -export interface EventDefineResolverAminoMsg { - type: "/regen.data.v1.EventDefineResolver"; - value: EventDefineResolverAmino; -} -/** EventDefineResolver is an event emitted when a resolved is defined on chain. */ -export interface EventDefineResolverSDKType { - id: bigint; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolver { - /** id is the ID of the resolver that the data was registered to. */ - id: bigint; - /** iri is the IRI of the data that was registered. */ - iri: string; -} -export interface EventRegisterResolverProtoMsg { - typeUrl: "/regen.data.v1.EventRegisterResolver"; - value: Uint8Array; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverAmino { - /** id is the ID of the resolver that the data was registered to. */ - id?: string; - /** iri is the IRI of the data that was registered. */ - iri?: string; -} -export interface EventRegisterResolverAminoMsg { - type: "/regen.data.v1.EventRegisterResolver"; - value: EventRegisterResolverAmino; -} -/** - * EventRegisterResolver is an event emitted when data is registered to a - * resolver on chain. - */ -export interface EventRegisterResolverSDKType { - id: bigint; - iri: string; -} -export declare const EventAnchor: { - typeUrl: string; - encode(message: EventAnchor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAnchor; - fromPartial(object: Partial): EventAnchor; - fromAmino(object: EventAnchorAmino): EventAnchor; - toAmino(message: EventAnchor): EventAnchorAmino; - fromAminoMsg(object: EventAnchorAminoMsg): EventAnchor; - fromProtoMsg(message: EventAnchorProtoMsg): EventAnchor; - toProto(message: EventAnchor): Uint8Array; - toProtoMsg(message: EventAnchor): EventAnchorProtoMsg; -}; -export declare const EventAttest: { - typeUrl: string; - encode(message: EventAttest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAttest; - fromPartial(object: Partial): EventAttest; - fromAmino(object: EventAttestAmino): EventAttest; - toAmino(message: EventAttest): EventAttestAmino; - fromAminoMsg(object: EventAttestAminoMsg): EventAttest; - fromProtoMsg(message: EventAttestProtoMsg): EventAttest; - toProto(message: EventAttest): Uint8Array; - toProtoMsg(message: EventAttest): EventAttestProtoMsg; -}; -export declare const EventDefineResolver: { - typeUrl: string; - encode(message: EventDefineResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventDefineResolver; - fromPartial(object: Partial): EventDefineResolver; - fromAmino(object: EventDefineResolverAmino): EventDefineResolver; - toAmino(message: EventDefineResolver): EventDefineResolverAmino; - fromAminoMsg(object: EventDefineResolverAminoMsg): EventDefineResolver; - fromProtoMsg(message: EventDefineResolverProtoMsg): EventDefineResolver; - toProto(message: EventDefineResolver): Uint8Array; - toProtoMsg(message: EventDefineResolver): EventDefineResolverProtoMsg; -}; -export declare const EventRegisterResolver: { - typeUrl: string; - encode(message: EventRegisterResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRegisterResolver; - fromPartial(object: Partial): EventRegisterResolver; - fromAmino(object: EventRegisterResolverAmino): EventRegisterResolver; - toAmino(message: EventRegisterResolver): EventRegisterResolverAmino; - fromAminoMsg(object: EventRegisterResolverAminoMsg): EventRegisterResolver; - fromProtoMsg(message: EventRegisterResolverProtoMsg): EventRegisterResolver; - toProto(message: EventRegisterResolver): Uint8Array; - toProtoMsg(message: EventRegisterResolver): EventRegisterResolverProtoMsg; -}; diff --git a/packages/api/dist/regen/data/v1/events.js b/packages/api/dist/regen/data/v1/events.js deleted file mode 100644 index 35236ebf..00000000 --- a/packages/api/dist/regen/data/v1/events.js +++ /dev/null @@ -1,281 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventRegisterResolver = exports.EventDefineResolver = exports.EventAttest = exports.EventAnchor = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseEventAnchor() { - return { - iri: "" - }; -} -exports.EventAnchor = { - typeUrl: "/regen.data.v1.EventAnchor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAnchor(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAnchor(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.EventAnchor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventAnchor.decode(message.value); - }, - toProto(message) { - return exports.EventAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventAnchor", - value: exports.EventAnchor.encode(message).finish() - }; - } -}; -function createBaseEventAttest() { - return { - iri: "", - attestor: "" - }; -} -exports.EventAttest = { - typeUrl: "/regen.data.v1.EventAttest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAttest(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAttest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - return obj; - }, - fromAminoMsg(object) { - return exports.EventAttest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventAttest.decode(message.value); - }, - toProto(message) { - return exports.EventAttest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventAttest", - value: exports.EventAttest.encode(message).finish() - }; - } -}; -function createBaseEventDefineResolver() { - return { - id: BigInt(0) - }; -} -exports.EventDefineResolver = { - typeUrl: "/regen.data.v1.EventDefineResolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventDefineResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventDefineResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventDefineResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventDefineResolver.decode(message.value); - }, - toProto(message) { - return exports.EventDefineResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventDefineResolver", - value: exports.EventDefineResolver.encode(message).finish() - }; - } -}; -function createBaseEventRegisterResolver() { - return { - id: BigInt(0), - iri: "" - }; -} -exports.EventRegisterResolver = { - typeUrl: "/regen.data.v1.EventRegisterResolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRegisterResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRegisterResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.EventRegisterResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventRegisterResolver.decode(message.value); - }, - toProto(message) { - return exports.EventRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.EventRegisterResolver", - value: exports.EventRegisterResolver.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/data/v1/query.d.ts b/packages/api/dist/regen/data/v1/query.d.ts deleted file mode 100644 index 53374e0c..00000000 --- a/packages/api/dist/regen/data/v1/query.d.ts +++ /dev/null @@ -1,970 +0,0 @@ -import { ContentHash, ContentHashAmino, ContentHashSDKType } from "./types"; -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; -} -export interface QueryAnchorByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: Uint8Array; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; -} -export interface QueryAnchorByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIRequest"; - value: QueryAnchorByIRIRequestAmino; -} -/** QueryAnchorByIRIRequest is the Query/AnchorByIRI request type. */ -export interface QueryAnchorByIRIRequestSDKType { - iri: string; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: Uint8Array; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByIRIResponse"; - value: QueryAnchorByIRIResponseAmino; -} -/** QueryAnchorByIRIResponse is the Query/AnchorByIRI response type. */ -export interface QueryAnchorByIRIResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; -} -export interface QueryAnchorByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest"; - value: Uint8Array; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; -} -export interface QueryAnchorByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashRequest"; - value: QueryAnchorByHashRequestAmino; -} -/** QueryAnchorByHashRequest is the Query/AnchorByHash request type. */ -export interface QueryAnchorByHashRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponse { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfo; -} -export interface QueryAnchorByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse"; - value: Uint8Array; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseAmino { - /** anchor is information about the data anchor. */ - anchor?: AnchorInfoAmino; -} -export interface QueryAnchorByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAnchorByHashResponse"; - value: QueryAnchorByHashResponseAmino; -} -/** QueryAnchorByHashResponse is the Query/AnchorByHash response type. */ -export interface QueryAnchorByHashResponseSDKType { - anchor?: AnchorInfoSDKType; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequest { - /** attestor is the address of the attestor. */ - attestor: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByAttestorRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestAmino { - /** attestor is the address of the attestor. */ - attestor?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByAttestorRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorRequest"; - value: QueryAttestationsByAttestorRequestAmino; -} -/** - * QueryAttestationsByAttestorRequest is the Query/AttestationsByAttestor - * request type. - */ -export interface QueryAttestationsByAttestorRequestSDKType { - attestor: string; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponse { - /** attestations are the attestations by the attestor. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByAttestorResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseAmino { - /** attestations are the attestations by the attestor. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByAttestorResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByAttestorResponse"; - value: QueryAttestationsByAttestorResponseAmino; -} -/** - * QueryAttestationsByAttestorResponse is the Query/AttestationsByAttestor - * response type. - */ -export interface QueryAttestationsByAttestorResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: Uint8Array; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIRequest"; - value: QueryAttestationsByIRIRequestAmino; -} -/** QueryAttestationsByIRIRequest is the Query/AttestationsByIRI request type. */ -export interface QueryAttestationsByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: Uint8Array; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByIRIResponse"; - value: QueryAttestationsByIRIResponseAmino; -} -/** QueryAttestationsByIRIResponse is the Query/AttestationsByIRI response type. */ -export interface QueryAttestationsByIRIResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryAttestationsByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: Uint8Array; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryAttestationsByHashRequestAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashRequest"; - value: QueryAttestationsByHashRequestAmino; -} -/** QueryAttestationsByHashRequest is the Query/AttestationsByHash request type. */ -export interface QueryAttestationsByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponse { - /** attestations are the attestations that have been made to the anchored data. */ - attestations: AttestationInfo[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponse; -} -export interface QueryAttestationsByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: Uint8Array; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseAmino { - /** attestations are the attestations that have been made to the anchored data. */ - attestations?: AttestationInfoAmino[]; - /** pagination is the pagination PageResponse. */ - pagination?: PageResponseAmino; -} -export interface QueryAttestationsByHashResponseAminoMsg { - type: "/regen.data.v1.QueryAttestationsByHashResponse"; - value: QueryAttestationsByHashResponseAmino; -} -/** - * QueryAttestationsByHashResponse is the Query/AttestationsByHash response - * type. - */ -export interface QueryAttestationsByHashResponseSDKType { - attestations: AttestationInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequest { - /** id is the ID of the resolver. */ - id: bigint; -} -export interface QueryResolverRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverRequest"; - value: Uint8Array; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestAmino { - /** id is the ID of the resolver. */ - id?: string; -} -export interface QueryResolverRequestAminoMsg { - type: "/regen.data.v1.QueryResolverRequest"; - value: QueryResolverRequestAmino; -} -/** QueryResolverRequest is the Query/Resolver request type. */ -export interface QueryResolverRequestSDKType { - id: bigint; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponse { - /** resolver is information about the resolver. */ - resolver?: ResolverInfo; -} -export interface QueryResolverResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolverResponse"; - value: Uint8Array; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseAmino { - /** resolver is information about the resolver. */ - resolver?: ResolverInfoAmino; -} -export interface QueryResolverResponseAminoMsg { - type: "/regen.data.v1.QueryResolverResponse"; - value: QueryResolverResponseAmino; -} -/** QueryResolverResponse is the Query/Resolver response type. */ -export interface QueryResolverResponseSDKType { - resolver?: ResolverInfoSDKType; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequest { - /** iri is the IRI of the anchored data. */ - iri: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest"; - value: Uint8Array; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByIRIRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIRequest"; - value: QueryResolversByIRIRequestAmino; -} -/** QueryResolversByIRIRequest is the Query/ResolversByIRI request type. */ -export interface QueryResolversByIRIRequestSDKType { - iri: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponse { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse"; - value: Uint8Array; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseAmino { - /** resolvers are the resolvers that have registered the anchored data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByIRIResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByIRIResponse"; - value: QueryResolversByIRIResponseAmino; -} -/** QueryResolversByIRIResponse is the Query/ResolversByIRI response type. */ -export interface QueryResolversByIRIResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequest { - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByHashRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest"; - value: Uint8Array; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestAmino { - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByHashRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByHashRequest"; - value: QueryResolversByHashRequestAmino; -} -/** QueryResolversByHashRequest is the Query/ResolversByHash request type. */ -export interface QueryResolversByHashRequestSDKType { - content_hash?: ContentHashSDKType; - pagination?: PageRequestSDKType; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponse { - /** resolvers are the resolvers that have registered the data. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByHashResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse"; - value: Uint8Array; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseAmino { - /** resolvers are the resolvers that have registered the data. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByHashResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByHashResponse"; - value: QueryResolversByHashResponseAmino; -} -/** QueryResolversByHashResponse is the Query/ResolversByHash response type. */ -export interface QueryResolversByHashResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequest { - /** url is the URL of the resolver. */ - url: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequest; -} -export interface QueryResolversByURLRequestProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest"; - value: Uint8Array; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestAmino { - /** url is the URL of the resolver. */ - url?: string; - /** pagination is the PageRequest to use for pagination. */ - pagination?: PageRequestAmino; -} -export interface QueryResolversByURLRequestAminoMsg { - type: "/regen.data.v1.QueryResolversByURLRequest"; - value: QueryResolversByURLRequestAmino; -} -/** QueryResolversByURLRequest is the Query/ResolversByURL request type. */ -export interface QueryResolversByURLRequestSDKType { - url: string; - pagination?: PageRequestSDKType; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponse { - /** resolvers are the resolvers that have a matching URL. */ - resolvers: ResolverInfo[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponse; -} -export interface QueryResolversByURLResponseProtoMsg { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse"; - value: Uint8Array; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseAmino { - /** resolvers are the resolvers that have a matching URL. */ - resolvers?: ResolverInfoAmino[]; - /** pagination is the PageResponse to use for pagination. */ - pagination?: PageResponseAmino; -} -export interface QueryResolversByURLResponseAminoMsg { - type: "/regen.data.v1.QueryResolversByURLResponse"; - value: QueryResolversByURLResponseAmino; -} -/** QueryResolversByURLResponse is the Query/ResolversByURL response type. */ -export interface QueryResolversByURLResponseSDKType { - resolvers: ResolverInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequest { - /** iri is the IRI to convert to a ContentHash. */ - iri: string; -} -export interface ConvertIRIToHashRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest"; - value: Uint8Array; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestAmino { - /** iri is the IRI to convert to a ContentHash. */ - iri?: string; -} -export interface ConvertIRIToHashRequestAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashRequest"; - value: ConvertIRIToHashRequestAmino; -} -/** ConvertIRIToHashRequest is the Query/ConvertIRIToHash request type. */ -export interface ConvertIRIToHashRequestSDKType { - iri: string; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponse { - /** content_hash is the ContentHash converted from the IRI. */ - contentHash?: ContentHash; -} -export interface ConvertIRIToHashResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse"; - value: Uint8Array; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseAmino { - /** content_hash is the ContentHash converted from the IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertIRIToHashResponseAminoMsg { - type: "/regen.data.v1.ConvertIRIToHashResponse"; - value: ConvertIRIToHashResponseAmino; -} -/** ConvertIRIToHashResponse is the Query/ConvertIRIToHash response type. */ -export interface ConvertIRIToHashResponseSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequest { - /** content_hash is the ContentHash to convert to an IRI. */ - contentHash?: ContentHash; -} -export interface ConvertHashToIRIRequestProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest"; - value: Uint8Array; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestAmino { - /** content_hash is the ContentHash to convert to an IRI. */ - content_hash?: ContentHashAmino; -} -export interface ConvertHashToIRIRequestAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIRequest"; - value: ConvertHashToIRIRequestAmino; -} -/** ConvertHashToIRIRequest is the Query/ConvertHashToIRI request type. */ -export interface ConvertHashToIRIRequestSDKType { - content_hash?: ContentHashSDKType; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponse { - /** iri is the IRI converted from the ContentHash. */ - iri: string; -} -export interface ConvertHashToIRIResponseProtoMsg { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse"; - value: Uint8Array; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseAmino { - /** iri is the IRI converted from the ContentHash. */ - iri?: string; -} -export interface ConvertHashToIRIResponseAminoMsg { - type: "/regen.data.v1.ConvertHashToIRIResponse"; - value: ConvertHashToIRIResponseAmino; -} -/** ConvertHashToIRIResponse is the Query/ConvertHashToIRI response type. */ -export interface ConvertHashToIRIResponseSDKType { - iri: string; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** content_hash is the ContentHash of the anchored data. */ - contentHash?: ContentHash; - /** timestamp is the time at which the data was anchored. */ - timestamp?: Date; -} -export interface AnchorInfoProtoMsg { - typeUrl: "/regen.data.v1.AnchorInfo"; - value: Uint8Array; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** content_hash is the ContentHash of the anchored data. */ - content_hash?: ContentHashAmino; - /** timestamp is the time at which the data was anchored. */ - timestamp?: string; -} -export interface AnchorInfoAminoMsg { - type: "/regen.data.v1.AnchorInfo"; - value: AnchorInfoAmino; -} -/** AnchorInfo is the information for a data anchor. */ -export interface AnchorInfoSDKType { - iri: string; - content_hash?: ContentHashSDKType; - timestamp?: Date; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfo { - /** iri is the IRI of the anchored data. */ - iri: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: Date; -} -export interface AttestationInfoProtoMsg { - typeUrl: "/regen.data.v1.AttestationInfo"; - value: Uint8Array; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoAmino { - /** iri is the IRI of the anchored data. */ - iri?: string; - /** attestor is the address of the account that attested to the anchored data. */ - attestor?: string; - /** timestamp is the time at which the data was attested to. */ - timestamp?: string; -} -export interface AttestationInfoAminoMsg { - type: "/regen.data.v1.AttestationInfo"; - value: AttestationInfoAmino; -} -/** AttestationInfo is the information for an attestation. */ -export interface AttestationInfoSDKType { - iri: string; - attestor: string; - timestamp?: Date; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfo { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** manager is the address of the account that manages the resolver. */ - manager: string; -} -export interface ResolverInfoProtoMsg { - typeUrl: "/regen.data.v1.ResolverInfo"; - value: Uint8Array; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** manager is the address of the account that manages the resolver. */ - manager?: string; -} -export interface ResolverInfoAminoMsg { - type: "/regen.data.v1.ResolverInfo"; - value: ResolverInfoAmino; -} -/** ResolverInfo is the information for a resolver. */ -export interface ResolverInfoSDKType { - id: bigint; - url: string; - manager: string; -} -export declare const QueryAnchorByIRIRequest: { - typeUrl: string; - encode(message: QueryAnchorByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIRequest; - fromPartial(object: Partial): QueryAnchorByIRIRequest; - fromAmino(object: QueryAnchorByIRIRequestAmino): QueryAnchorByIRIRequest; - toAmino(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestAmino; - fromAminoMsg(object: QueryAnchorByIRIRequestAminoMsg): QueryAnchorByIRIRequest; - fromProtoMsg(message: QueryAnchorByIRIRequestProtoMsg): QueryAnchorByIRIRequest; - toProto(message: QueryAnchorByIRIRequest): Uint8Array; - toProtoMsg(message: QueryAnchorByIRIRequest): QueryAnchorByIRIRequestProtoMsg; -}; -export declare const QueryAnchorByIRIResponse: { - typeUrl: string; - encode(message: QueryAnchorByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByIRIResponse; - fromPartial(object: Partial): QueryAnchorByIRIResponse; - fromAmino(object: QueryAnchorByIRIResponseAmino): QueryAnchorByIRIResponse; - toAmino(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseAmino; - fromAminoMsg(object: QueryAnchorByIRIResponseAminoMsg): QueryAnchorByIRIResponse; - fromProtoMsg(message: QueryAnchorByIRIResponseProtoMsg): QueryAnchorByIRIResponse; - toProto(message: QueryAnchorByIRIResponse): Uint8Array; - toProtoMsg(message: QueryAnchorByIRIResponse): QueryAnchorByIRIResponseProtoMsg; -}; -export declare const QueryAnchorByHashRequest: { - typeUrl: string; - encode(message: QueryAnchorByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashRequest; - fromPartial(object: Partial): QueryAnchorByHashRequest; - fromAmino(object: QueryAnchorByHashRequestAmino): QueryAnchorByHashRequest; - toAmino(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestAmino; - fromAminoMsg(object: QueryAnchorByHashRequestAminoMsg): QueryAnchorByHashRequest; - fromProtoMsg(message: QueryAnchorByHashRequestProtoMsg): QueryAnchorByHashRequest; - toProto(message: QueryAnchorByHashRequest): Uint8Array; - toProtoMsg(message: QueryAnchorByHashRequest): QueryAnchorByHashRequestProtoMsg; -}; -export declare const QueryAnchorByHashResponse: { - typeUrl: string; - encode(message: QueryAnchorByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAnchorByHashResponse; - fromPartial(object: Partial): QueryAnchorByHashResponse; - fromAmino(object: QueryAnchorByHashResponseAmino): QueryAnchorByHashResponse; - toAmino(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseAmino; - fromAminoMsg(object: QueryAnchorByHashResponseAminoMsg): QueryAnchorByHashResponse; - fromProtoMsg(message: QueryAnchorByHashResponseProtoMsg): QueryAnchorByHashResponse; - toProto(message: QueryAnchorByHashResponse): Uint8Array; - toProtoMsg(message: QueryAnchorByHashResponse): QueryAnchorByHashResponseProtoMsg; -}; -export declare const QueryAttestationsByAttestorRequest: { - typeUrl: string; - encode(message: QueryAttestationsByAttestorRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorRequest; - fromPartial(object: Partial): QueryAttestationsByAttestorRequest; - fromAmino(object: QueryAttestationsByAttestorRequestAmino): QueryAttestationsByAttestorRequest; - toAmino(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestAmino; - fromAminoMsg(object: QueryAttestationsByAttestorRequestAminoMsg): QueryAttestationsByAttestorRequest; - fromProtoMsg(message: QueryAttestationsByAttestorRequestProtoMsg): QueryAttestationsByAttestorRequest; - toProto(message: QueryAttestationsByAttestorRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByAttestorRequest): QueryAttestationsByAttestorRequestProtoMsg; -}; -export declare const QueryAttestationsByAttestorResponse: { - typeUrl: string; - encode(message: QueryAttestationsByAttestorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByAttestorResponse; - fromPartial(object: Partial): QueryAttestationsByAttestorResponse; - fromAmino(object: QueryAttestationsByAttestorResponseAmino): QueryAttestationsByAttestorResponse; - toAmino(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseAmino; - fromAminoMsg(object: QueryAttestationsByAttestorResponseAminoMsg): QueryAttestationsByAttestorResponse; - fromProtoMsg(message: QueryAttestationsByAttestorResponseProtoMsg): QueryAttestationsByAttestorResponse; - toProto(message: QueryAttestationsByAttestorResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByAttestorResponse): QueryAttestationsByAttestorResponseProtoMsg; -}; -export declare const QueryAttestationsByIRIRequest: { - typeUrl: string; - encode(message: QueryAttestationsByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIRequest; - fromPartial(object: Partial): QueryAttestationsByIRIRequest; - fromAmino(object: QueryAttestationsByIRIRequestAmino): QueryAttestationsByIRIRequest; - toAmino(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestAmino; - fromAminoMsg(object: QueryAttestationsByIRIRequestAminoMsg): QueryAttestationsByIRIRequest; - fromProtoMsg(message: QueryAttestationsByIRIRequestProtoMsg): QueryAttestationsByIRIRequest; - toProto(message: QueryAttestationsByIRIRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByIRIRequest): QueryAttestationsByIRIRequestProtoMsg; -}; -export declare const QueryAttestationsByIRIResponse: { - typeUrl: string; - encode(message: QueryAttestationsByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByIRIResponse; - fromPartial(object: Partial): QueryAttestationsByIRIResponse; - fromAmino(object: QueryAttestationsByIRIResponseAmino): QueryAttestationsByIRIResponse; - toAmino(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseAmino; - fromAminoMsg(object: QueryAttestationsByIRIResponseAminoMsg): QueryAttestationsByIRIResponse; - fromProtoMsg(message: QueryAttestationsByIRIResponseProtoMsg): QueryAttestationsByIRIResponse; - toProto(message: QueryAttestationsByIRIResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByIRIResponse): QueryAttestationsByIRIResponseProtoMsg; -}; -export declare const QueryAttestationsByHashRequest: { - typeUrl: string; - encode(message: QueryAttestationsByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashRequest; - fromPartial(object: Partial): QueryAttestationsByHashRequest; - fromAmino(object: QueryAttestationsByHashRequestAmino): QueryAttestationsByHashRequest; - toAmino(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestAmino; - fromAminoMsg(object: QueryAttestationsByHashRequestAminoMsg): QueryAttestationsByHashRequest; - fromProtoMsg(message: QueryAttestationsByHashRequestProtoMsg): QueryAttestationsByHashRequest; - toProto(message: QueryAttestationsByHashRequest): Uint8Array; - toProtoMsg(message: QueryAttestationsByHashRequest): QueryAttestationsByHashRequestProtoMsg; -}; -export declare const QueryAttestationsByHashResponse: { - typeUrl: string; - encode(message: QueryAttestationsByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAttestationsByHashResponse; - fromPartial(object: Partial): QueryAttestationsByHashResponse; - fromAmino(object: QueryAttestationsByHashResponseAmino): QueryAttestationsByHashResponse; - toAmino(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseAmino; - fromAminoMsg(object: QueryAttestationsByHashResponseAminoMsg): QueryAttestationsByHashResponse; - fromProtoMsg(message: QueryAttestationsByHashResponseProtoMsg): QueryAttestationsByHashResponse; - toProto(message: QueryAttestationsByHashResponse): Uint8Array; - toProtoMsg(message: QueryAttestationsByHashResponse): QueryAttestationsByHashResponseProtoMsg; -}; -export declare const QueryResolverRequest: { - typeUrl: string; - encode(message: QueryResolverRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverRequest; - fromPartial(object: Partial): QueryResolverRequest; - fromAmino(object: QueryResolverRequestAmino): QueryResolverRequest; - toAmino(message: QueryResolverRequest): QueryResolverRequestAmino; - fromAminoMsg(object: QueryResolverRequestAminoMsg): QueryResolverRequest; - fromProtoMsg(message: QueryResolverRequestProtoMsg): QueryResolverRequest; - toProto(message: QueryResolverRequest): Uint8Array; - toProtoMsg(message: QueryResolverRequest): QueryResolverRequestProtoMsg; -}; -export declare const QueryResolverResponse: { - typeUrl: string; - encode(message: QueryResolverResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolverResponse; - fromPartial(object: Partial): QueryResolverResponse; - fromAmino(object: QueryResolverResponseAmino): QueryResolverResponse; - toAmino(message: QueryResolverResponse): QueryResolverResponseAmino; - fromAminoMsg(object: QueryResolverResponseAminoMsg): QueryResolverResponse; - fromProtoMsg(message: QueryResolverResponseProtoMsg): QueryResolverResponse; - toProto(message: QueryResolverResponse): Uint8Array; - toProtoMsg(message: QueryResolverResponse): QueryResolverResponseProtoMsg; -}; -export declare const QueryResolversByIRIRequest: { - typeUrl: string; - encode(message: QueryResolversByIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIRequest; - fromPartial(object: Partial): QueryResolversByIRIRequest; - fromAmino(object: QueryResolversByIRIRequestAmino): QueryResolversByIRIRequest; - toAmino(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestAmino; - fromAminoMsg(object: QueryResolversByIRIRequestAminoMsg): QueryResolversByIRIRequest; - fromProtoMsg(message: QueryResolversByIRIRequestProtoMsg): QueryResolversByIRIRequest; - toProto(message: QueryResolversByIRIRequest): Uint8Array; - toProtoMsg(message: QueryResolversByIRIRequest): QueryResolversByIRIRequestProtoMsg; -}; -export declare const QueryResolversByIRIResponse: { - typeUrl: string; - encode(message: QueryResolversByIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByIRIResponse; - fromPartial(object: Partial): QueryResolversByIRIResponse; - fromAmino(object: QueryResolversByIRIResponseAmino): QueryResolversByIRIResponse; - toAmino(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseAmino; - fromAminoMsg(object: QueryResolversByIRIResponseAminoMsg): QueryResolversByIRIResponse; - fromProtoMsg(message: QueryResolversByIRIResponseProtoMsg): QueryResolversByIRIResponse; - toProto(message: QueryResolversByIRIResponse): Uint8Array; - toProtoMsg(message: QueryResolversByIRIResponse): QueryResolversByIRIResponseProtoMsg; -}; -export declare const QueryResolversByHashRequest: { - typeUrl: string; - encode(message: QueryResolversByHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashRequest; - fromPartial(object: Partial): QueryResolversByHashRequest; - fromAmino(object: QueryResolversByHashRequestAmino): QueryResolversByHashRequest; - toAmino(message: QueryResolversByHashRequest): QueryResolversByHashRequestAmino; - fromAminoMsg(object: QueryResolversByHashRequestAminoMsg): QueryResolversByHashRequest; - fromProtoMsg(message: QueryResolversByHashRequestProtoMsg): QueryResolversByHashRequest; - toProto(message: QueryResolversByHashRequest): Uint8Array; - toProtoMsg(message: QueryResolversByHashRequest): QueryResolversByHashRequestProtoMsg; -}; -export declare const QueryResolversByHashResponse: { - typeUrl: string; - encode(message: QueryResolversByHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByHashResponse; - fromPartial(object: Partial): QueryResolversByHashResponse; - fromAmino(object: QueryResolversByHashResponseAmino): QueryResolversByHashResponse; - toAmino(message: QueryResolversByHashResponse): QueryResolversByHashResponseAmino; - fromAminoMsg(object: QueryResolversByHashResponseAminoMsg): QueryResolversByHashResponse; - fromProtoMsg(message: QueryResolversByHashResponseProtoMsg): QueryResolversByHashResponse; - toProto(message: QueryResolversByHashResponse): Uint8Array; - toProtoMsg(message: QueryResolversByHashResponse): QueryResolversByHashResponseProtoMsg; -}; -export declare const QueryResolversByURLRequest: { - typeUrl: string; - encode(message: QueryResolversByURLRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLRequest; - fromPartial(object: Partial): QueryResolversByURLRequest; - fromAmino(object: QueryResolversByURLRequestAmino): QueryResolversByURLRequest; - toAmino(message: QueryResolversByURLRequest): QueryResolversByURLRequestAmino; - fromAminoMsg(object: QueryResolversByURLRequestAminoMsg): QueryResolversByURLRequest; - fromProtoMsg(message: QueryResolversByURLRequestProtoMsg): QueryResolversByURLRequest; - toProto(message: QueryResolversByURLRequest): Uint8Array; - toProtoMsg(message: QueryResolversByURLRequest): QueryResolversByURLRequestProtoMsg; -}; -export declare const QueryResolversByURLResponse: { - typeUrl: string; - encode(message: QueryResolversByURLResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryResolversByURLResponse; - fromPartial(object: Partial): QueryResolversByURLResponse; - fromAmino(object: QueryResolversByURLResponseAmino): QueryResolversByURLResponse; - toAmino(message: QueryResolversByURLResponse): QueryResolversByURLResponseAmino; - fromAminoMsg(object: QueryResolversByURLResponseAminoMsg): QueryResolversByURLResponse; - fromProtoMsg(message: QueryResolversByURLResponseProtoMsg): QueryResolversByURLResponse; - toProto(message: QueryResolversByURLResponse): Uint8Array; - toProtoMsg(message: QueryResolversByURLResponse): QueryResolversByURLResponseProtoMsg; -}; -export declare const ConvertIRIToHashRequest: { - typeUrl: string; - encode(message: ConvertIRIToHashRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashRequest; - fromPartial(object: Partial): ConvertIRIToHashRequest; - fromAmino(object: ConvertIRIToHashRequestAmino): ConvertIRIToHashRequest; - toAmino(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestAmino; - fromAminoMsg(object: ConvertIRIToHashRequestAminoMsg): ConvertIRIToHashRequest; - fromProtoMsg(message: ConvertIRIToHashRequestProtoMsg): ConvertIRIToHashRequest; - toProto(message: ConvertIRIToHashRequest): Uint8Array; - toProtoMsg(message: ConvertIRIToHashRequest): ConvertIRIToHashRequestProtoMsg; -}; -export declare const ConvertIRIToHashResponse: { - typeUrl: string; - encode(message: ConvertIRIToHashResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertIRIToHashResponse; - fromPartial(object: Partial): ConvertIRIToHashResponse; - fromAmino(object: ConvertIRIToHashResponseAmino): ConvertIRIToHashResponse; - toAmino(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseAmino; - fromAminoMsg(object: ConvertIRIToHashResponseAminoMsg): ConvertIRIToHashResponse; - fromProtoMsg(message: ConvertIRIToHashResponseProtoMsg): ConvertIRIToHashResponse; - toProto(message: ConvertIRIToHashResponse): Uint8Array; - toProtoMsg(message: ConvertIRIToHashResponse): ConvertIRIToHashResponseProtoMsg; -}; -export declare const ConvertHashToIRIRequest: { - typeUrl: string; - encode(message: ConvertHashToIRIRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIRequest; - fromPartial(object: Partial): ConvertHashToIRIRequest; - fromAmino(object: ConvertHashToIRIRequestAmino): ConvertHashToIRIRequest; - toAmino(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestAmino; - fromAminoMsg(object: ConvertHashToIRIRequestAminoMsg): ConvertHashToIRIRequest; - fromProtoMsg(message: ConvertHashToIRIRequestProtoMsg): ConvertHashToIRIRequest; - toProto(message: ConvertHashToIRIRequest): Uint8Array; - toProtoMsg(message: ConvertHashToIRIRequest): ConvertHashToIRIRequestProtoMsg; -}; -export declare const ConvertHashToIRIResponse: { - typeUrl: string; - encode(message: ConvertHashToIRIResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConvertHashToIRIResponse; - fromPartial(object: Partial): ConvertHashToIRIResponse; - fromAmino(object: ConvertHashToIRIResponseAmino): ConvertHashToIRIResponse; - toAmino(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseAmino; - fromAminoMsg(object: ConvertHashToIRIResponseAminoMsg): ConvertHashToIRIResponse; - fromProtoMsg(message: ConvertHashToIRIResponseProtoMsg): ConvertHashToIRIResponse; - toProto(message: ConvertHashToIRIResponse): Uint8Array; - toProtoMsg(message: ConvertHashToIRIResponse): ConvertHashToIRIResponseProtoMsg; -}; -export declare const AnchorInfo: { - typeUrl: string; - encode(message: AnchorInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AnchorInfo; - fromPartial(object: Partial): AnchorInfo; - fromAmino(object: AnchorInfoAmino): AnchorInfo; - toAmino(message: AnchorInfo): AnchorInfoAmino; - fromAminoMsg(object: AnchorInfoAminoMsg): AnchorInfo; - fromProtoMsg(message: AnchorInfoProtoMsg): AnchorInfo; - toProto(message: AnchorInfo): Uint8Array; - toProtoMsg(message: AnchorInfo): AnchorInfoProtoMsg; -}; -export declare const AttestationInfo: { - typeUrl: string; - encode(message: AttestationInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AttestationInfo; - fromPartial(object: Partial): AttestationInfo; - fromAmino(object: AttestationInfoAmino): AttestationInfo; - toAmino(message: AttestationInfo): AttestationInfoAmino; - fromAminoMsg(object: AttestationInfoAminoMsg): AttestationInfo; - fromProtoMsg(message: AttestationInfoProtoMsg): AttestationInfo; - toProto(message: AttestationInfo): Uint8Array; - toProtoMsg(message: AttestationInfo): AttestationInfoProtoMsg; -}; -export declare const ResolverInfo: { - typeUrl: string; - encode(message: ResolverInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResolverInfo; - fromPartial(object: Partial): ResolverInfo; - fromAmino(object: ResolverInfoAmino): ResolverInfo; - toAmino(message: ResolverInfo): ResolverInfoAmino; - fromAminoMsg(object: ResolverInfoAminoMsg): ResolverInfo; - fromProtoMsg(message: ResolverInfoProtoMsg): ResolverInfo; - toProto(message: ResolverInfo): Uint8Array; - toProtoMsg(message: ResolverInfo): ResolverInfoProtoMsg; -}; diff --git a/packages/api/dist/regen/data/v1/query.js b/packages/api/dist/regen/data/v1/query.js deleted file mode 100644 index e3baf77d..00000000 --- a/packages/api/dist/regen/data/v1/query.js +++ /dev/null @@ -1,1818 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResolverInfo = exports.AttestationInfo = exports.AnchorInfo = exports.ConvertHashToIRIResponse = exports.ConvertHashToIRIRequest = exports.ConvertIRIToHashResponse = exports.ConvertIRIToHashRequest = exports.QueryResolversByURLResponse = exports.QueryResolversByURLRequest = exports.QueryResolversByHashResponse = exports.QueryResolversByHashRequest = exports.QueryResolversByIRIResponse = exports.QueryResolversByIRIRequest = exports.QueryResolverResponse = exports.QueryResolverRequest = exports.QueryAttestationsByHashResponse = exports.QueryAttestationsByHashRequest = exports.QueryAttestationsByIRIResponse = exports.QueryAttestationsByIRIRequest = exports.QueryAttestationsByAttestorResponse = exports.QueryAttestationsByAttestorRequest = exports.QueryAnchorByHashResponse = exports.QueryAnchorByHashRequest = exports.QueryAnchorByIRIResponse = exports.QueryAnchorByIRIRequest = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseQueryAnchorByIRIRequest() { - return { - iri: "" - }; -} -exports.QueryAnchorByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByIRIRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnchorByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAnchorByIRIRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAnchorByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIRequest", - value: exports.QueryAnchorByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByIRIResponse() { - return { - anchor: undefined - }; -} -exports.QueryAnchorByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.anchor !== undefined) { - exports.AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = exports.AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByIRIResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? exports.AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByIRIResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = exports.AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.anchor = message.anchor ? exports.AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnchorByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAnchorByIRIResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAnchorByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByIRIResponse", - value: exports.QueryAnchorByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashRequest() { - return { - contentHash: undefined - }; -} -exports.QueryAnchorByHashRequest = { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnchorByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAnchorByHashRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAnchorByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashRequest", - value: exports.QueryAnchorByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAnchorByHashResponse() { - return { - anchor: undefined - }; -} -exports.QueryAnchorByHashResponse = { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.anchor !== undefined) { - exports.AnchorInfo.encode(message.anchor, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnchorByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.anchor = exports.AnchorInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAnchorByHashResponse(); - message.anchor = object.anchor !== undefined && object.anchor !== null ? exports.AnchorInfo.fromPartial(object.anchor) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAnchorByHashResponse(); - if (object.anchor !== undefined && object.anchor !== null) { - message.anchor = exports.AnchorInfo.fromAmino(object.anchor); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.anchor = message.anchor ? exports.AnchorInfo.toAmino(message.anchor) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAnchorByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAnchorByHashResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAnchorByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAnchorByHashResponse", - value: exports.QueryAnchorByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorRequest() { - return { - attestor: "", - pagination: undefined - }; -} -exports.QueryAttestationsByAttestorRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByAttestorRequest(); - message.attestor = object.attestor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByAttestorRequest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByAttestorRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByAttestorRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByAttestorRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorRequest", - value: exports.QueryAttestationsByAttestorRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByAttestorResponse() { - return { - attestations: [], - pagination: undefined - }; -} -exports.QueryAttestationsByAttestorResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.attestations) { - exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByAttestorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByAttestorResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByAttestorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByAttestorResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByAttestorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByAttestorResponse", - value: exports.QueryAttestationsByAttestorResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIRequest() { - return { - iri: "", - pagination: undefined - }; -} -exports.QueryAttestationsByIRIRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByIRIRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIRequest", - value: exports.QueryAttestationsByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByIRIResponse() { - return { - attestations: [], - pagination: undefined - }; -} -exports.QueryAttestationsByIRIResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.attestations) { - exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByIRIResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByIRIResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByIRIResponse", - value: exports.QueryAttestationsByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashRequest() { - return { - contentHash: undefined, - pagination: undefined - }; -} -exports.QueryAttestationsByHashRequest = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByHashRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashRequest", - value: exports.QueryAttestationsByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAttestationsByHashResponse() { - return { - attestations: [], - pagination: undefined - }; -} -exports.QueryAttestationsByHashResponse = { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.attestations) { - exports.AttestationInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAttestationsByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestations.push(exports.AttestationInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAttestationsByHashResponse(); - message.attestations = object.attestations?.map(e => exports.AttestationInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.attestations) { - obj.attestations = message.attestations.map(e => e ? exports.AttestationInfo.toAmino(e) : undefined); - } - else { - obj.attestations = message.attestations; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAttestationsByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAttestationsByHashResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAttestationsByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryAttestationsByHashResponse", - value: exports.QueryAttestationsByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolverRequest() { - return { - id: BigInt(0) - }; -} -exports.QueryResolverRequest = { - typeUrl: "/regen.data.v1.QueryResolverRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolverRequest(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolverRequest(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolverRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolverRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryResolverRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolverRequest", - value: exports.QueryResolverRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolverResponse() { - return { - resolver: undefined - }; -} -exports.QueryResolverResponse = { - typeUrl: "/regen.data.v1.QueryResolverResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.resolver !== undefined) { - exports.ResolverInfo.encode(message.resolver, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolver = exports.ResolverInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolverResponse(); - message.resolver = object.resolver !== undefined && object.resolver !== null ? exports.ResolverInfo.fromPartial(object.resolver) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolverResponse(); - if (object.resolver !== undefined && object.resolver !== null) { - message.resolver = exports.ResolverInfo.fromAmino(object.resolver); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.resolver = message.resolver ? exports.ResolverInfo.toAmino(message.resolver) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolverResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolverResponse", - value: exports.QueryResolverResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIRequest() { - return { - iri: "", - pagination: undefined - }; -} -exports.QueryResolversByIRIRequest = { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByIRIRequest(); - message.iri = object.iri ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByIRIRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByIRIRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIRequest", - value: exports.QueryResolversByIRIRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByIRIResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -exports.QueryResolversByIRIResponse = { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.resolvers) { - exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByIRIResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByIRIResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByIRIResponse", - value: exports.QueryResolversByIRIResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashRequest() { - return { - contentHash: undefined, - pagination: undefined - }; -} -exports.QueryResolversByHashRequest = { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByHashRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByHashRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByHashRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashRequest", - value: exports.QueryResolversByHashRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByHashResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -exports.QueryResolversByHashResponse = { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.resolvers) { - exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByHashResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByHashResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByHashResponse", - value: exports.QueryResolversByHashResponse.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLRequest() { - return { - url: "", - pagination: undefined - }; -} -exports.QueryResolversByURLRequest = { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.url !== "") { - writer.uint32(10).string(message.url); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByURLRequest(); - message.url = object.url ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByURLRequest(); - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.url = message.url === "" ? undefined : message.url; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByURLRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByURLRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByURLRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLRequest", - value: exports.QueryResolversByURLRequest.encode(message).finish() - }; - } -}; -function createBaseQueryResolversByURLResponse() { - return { - resolvers: [], - pagination: undefined - }; -} -exports.QueryResolversByURLResponse = { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.resolvers) { - exports.ResolverInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryResolversByURLResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolvers.push(exports.ResolverInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryResolversByURLResponse(); - message.resolvers = object.resolvers?.map(e => exports.ResolverInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.resolvers) { - obj.resolvers = message.resolvers.map(e => e ? exports.ResolverInfo.toAmino(e) : undefined); - } - else { - obj.resolvers = message.resolvers; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryResolversByURLResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryResolversByURLResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryResolversByURLResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.QueryResolversByURLResponse", - value: exports.QueryResolversByURLResponse.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashRequest() { - return { - iri: "" - }; -} -exports.ConvertIRIToHashRequest = { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertIRIToHashRequest(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConvertIRIToHashRequest(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.ConvertIRIToHashRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ConvertIRIToHashRequest.decode(message.value); - }, - toProto(message) { - return exports.ConvertIRIToHashRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashRequest", - value: exports.ConvertIRIToHashRequest.encode(message).finish() - }; - } -}; -function createBaseConvertIRIToHashResponse() { - return { - contentHash: undefined - }; -} -exports.ConvertIRIToHashResponse = { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertIRIToHashResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertIRIToHashResponse(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConvertIRIToHashResponse(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ConvertIRIToHashResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ConvertIRIToHashResponse.decode(message.value); - }, - toProto(message) { - return exports.ConvertIRIToHashResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertIRIToHashResponse", - value: exports.ConvertIRIToHashResponse.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIRequest() { - return { - contentHash: undefined - }; -} -exports.ConvertHashToIRIRequest = { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertHashToIRIRequest(); - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConvertHashToIRIRequest(); - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ConvertHashToIRIRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ConvertHashToIRIRequest.decode(message.value); - }, - toProto(message) { - return exports.ConvertHashToIRIRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIRequest", - value: exports.ConvertHashToIRIRequest.encode(message).finish() - }; - } -}; -function createBaseConvertHashToIRIResponse() { - return { - iri: "" - }; -} -exports.ConvertHashToIRIResponse = { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConvertHashToIRIResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConvertHashToIRIResponse(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseConvertHashToIRIResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.ConvertHashToIRIResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ConvertHashToIRIResponse.decode(message.value); - }, - toProto(message) { - return exports.ConvertHashToIRIResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ConvertHashToIRIResponse", - value: exports.ConvertHashToIRIResponse.encode(message).finish() - }; - } -}; -function createBaseAnchorInfo() { - return { - iri: "", - contentHash: undefined, - timestamp: undefined - }; -} -exports.AnchorInfo = { - typeUrl: "/regen.data.v1.AnchorInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAnchorInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - case 3: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAnchorInfo(); - message.iri = object.iri ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAnchorInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AnchorInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AnchorInfo.decode(message.value); - }, - toProto(message) { - return exports.AnchorInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.AnchorInfo", - value: exports.AnchorInfo.encode(message).finish() - }; - } -}; -function createBaseAttestationInfo() { - return { - iri: "", - attestor: "", - timestamp: undefined - }; -} -exports.AttestationInfo = { - typeUrl: "/regen.data.v1.AttestationInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.attestor !== "") { - writer.uint32(18).string(message.attestor); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAttestationInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.attestor = reader.string(); - break; - case 3: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAttestationInfo(); - message.iri = object.iri ?? ""; - message.attestor = object.attestor ?? ""; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAttestationInfo(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AttestationInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AttestationInfo.decode(message.value); - }, - toProto(message) { - return exports.AttestationInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.AttestationInfo", - value: exports.AttestationInfo.encode(message).finish() - }; - } -}; -function createBaseResolverInfo() { - return { - id: BigInt(0), - url: "", - manager: "" - }; -} -exports.ResolverInfo = { - typeUrl: "/regen.data.v1.ResolverInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager !== "") { - writer.uint32(26).string(message.manager); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolverInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResolverInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResolverInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager === "" ? undefined : message.manager; - return obj; - }, - fromAminoMsg(object) { - return exports.ResolverInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResolverInfo.decode(message.value); - }, - toProto(message) { - return exports.ResolverInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ResolverInfo", - value: exports.ResolverInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/data/v1/query.lcd.d.ts b/packages/api/dist/regen/data/v1/query.lcd.d.ts deleted file mode 100644 index 22fbc40c..00000000 --- a/packages/api/dist/regen/data/v1/query.lcd.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponseSDKType, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponseSDKType, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponseSDKType, QueryResolverRequest, QueryResolverResponseSDKType, QueryResolversByIRIRequest, QueryResolversByIRIResponseSDKType, ConvertIRIToHashRequest, ConvertIRIToHashResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - anchorByIRI(params: QueryAnchorByIRIRequest): Promise; - attestationsByAttestor(params: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(params: QueryAttestationsByIRIRequest): Promise; - resolver(params: QueryResolverRequest): Promise; - resolversByIRI(params: QueryResolversByIRIRequest): Promise; - convertIRIToHash(params: ConvertIRIToHashRequest): Promise; -} diff --git a/packages/api/dist/regen/data/v1/query.lcd.js b/packages/api/dist/regen/data/v1/query.lcd.js deleted file mode 100644 index cba00872..00000000 --- a/packages/api/dist/regen/data/v1/query.lcd.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - } - /* AnchorByIRI queries a data anchor by the IRI of the data. */ - async anchorByIRI(params) { - const endpoint = `regen/data/v1/anchor-by-iri/${params.iri}`; - return await this.req.get(endpoint); - } - /* AttestationsByAttestor queries data attestations by an attestor. */ - async attestationsByAttestor(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-attestor/${params.attestor}`; - return await this.req.get(endpoint, options); - } - /* AttestationsByIRI queries data attestations by the IRI of the data. */ - async attestationsByIRI(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/data/v1/attestations-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* Resolver queries a resolver by its unique identifier. */ - async resolver(params) { - const endpoint = `regen/data/v1/resolver/${params.id}`; - return await this.req.get(endpoint); - } - /* ResolversByIRI queries resolvers with registered data by the IRI of the - data. */ - async resolversByIRI(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/data/v1/resolvers-by-iri/${params.iri}`; - return await this.req.get(endpoint, options); - } - /* ConvertIRIToHash converts an IRI to a ContentHash. */ - async convertIRIToHash(params) { - const endpoint = `regen/data/v1/convert-iri-to-hash/${params.iri}`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts deleted file mode 100644 index 62fa3704..00000000 --- a/packages/api/dist/regen/data/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAnchorByIRIRequest, QueryAnchorByIRIResponse, QueryAnchorByHashRequest, QueryAnchorByHashResponse, QueryAttestationsByAttestorRequest, QueryAttestationsByAttestorResponse, QueryAttestationsByIRIRequest, QueryAttestationsByIRIResponse, QueryAttestationsByHashRequest, QueryAttestationsByHashResponse, QueryResolverRequest, QueryResolverResponse, QueryResolversByIRIRequest, QueryResolversByIRIResponse, QueryResolversByHashRequest, QueryResolversByHashResponse, QueryResolversByURLRequest, QueryResolversByURLResponse, ConvertIRIToHashRequest, ConvertIRIToHashResponse, ConvertHashToIRIRequest, ConvertHashToIRIResponse } from "./query"; -/** Query is the regen.data.v1 Query service */ -export interface Query { - /** AnchorByIRI queries a data anchor by the IRI of the data. */ - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - /** AnchorByHash queries a data anchor by the ContentHash of the data. */ - anchorByHash(request: QueryAnchorByHashRequest): Promise; - /** AttestationsByAttestor queries data attestations by an attestor. */ - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - /** AttestationsByIRI queries data attestations by the IRI of the data. */ - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - /** - * AttestationsByHash queries data attestations by the ContentHash of the - * data. - */ - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - /** Resolver queries a resolver by its unique identifier. */ - resolver(request: QueryResolverRequest): Promise; - /** - * ResolversByIRI queries resolvers with registered data by the IRI of the - * data. - */ - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - /** - * ResolversByHash queries resolvers with registered data by the ContentHash - * of the data. - */ - resolversByHash(request: QueryResolversByHashRequest): Promise; - /** ResolversByURL queries resolvers by URL. */ - resolversByURL(request: QueryResolversByURLRequest): Promise; - /** ConvertIRIToHash converts an IRI to a ContentHash. */ - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - /** ConvertHashToIRI converts a ContentHash to an IRI. */ - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - anchorByHash(request: QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - resolver(request: QueryResolverRequest): Promise; - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - resolversByHash(request: QueryResolversByHashRequest): Promise; - resolversByURL(request: QueryResolversByURLRequest): Promise; - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - anchorByIRI(request: QueryAnchorByIRIRequest): Promise; - anchorByHash(request: QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: QueryAttestationsByHashRequest): Promise; - resolver(request: QueryResolverRequest): Promise; - resolversByIRI(request: QueryResolversByIRIRequest): Promise; - resolversByHash(request: QueryResolversByHashRequest): Promise; - resolversByURL(request: QueryResolversByURLRequest): Promise; - convertIRIToHash(request: ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: ConvertHashToIRIRequest): Promise; -}; diff --git a/packages/api/dist/regen/data/v1/query.rpc.Query.js b/packages/api/dist/regen/data/v1/query.rpc.Query.js deleted file mode 100644 index 556b070d..00000000 --- a/packages/api/dist/regen/data/v1/query.rpc.Query.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.anchorByIRI = this.anchorByIRI.bind(this); - this.anchorByHash = this.anchorByHash.bind(this); - this.attestationsByAttestor = this.attestationsByAttestor.bind(this); - this.attestationsByIRI = this.attestationsByIRI.bind(this); - this.attestationsByHash = this.attestationsByHash.bind(this); - this.resolver = this.resolver.bind(this); - this.resolversByIRI = this.resolversByIRI.bind(this); - this.resolversByHash = this.resolversByHash.bind(this); - this.resolversByURL = this.resolversByURL.bind(this); - this.convertIRIToHash = this.convertIRIToHash.bind(this); - this.convertHashToIRI = this.convertHashToIRI.bind(this); - } - anchorByIRI(request) { - const data = query_1.QueryAnchorByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByIRI", data); - return promise.then(data => query_1.QueryAnchorByIRIResponse.decode(new binary_1.BinaryReader(data))); - } - anchorByHash(request) { - const data = query_1.QueryAnchorByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AnchorByHash", data); - return promise.then(data => query_1.QueryAnchorByHashResponse.decode(new binary_1.BinaryReader(data))); - } - attestationsByAttestor(request) { - const data = query_1.QueryAttestationsByAttestorRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByAttestor", data); - return promise.then(data => query_1.QueryAttestationsByAttestorResponse.decode(new binary_1.BinaryReader(data))); - } - attestationsByIRI(request) { - const data = query_1.QueryAttestationsByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByIRI", data); - return promise.then(data => query_1.QueryAttestationsByIRIResponse.decode(new binary_1.BinaryReader(data))); - } - attestationsByHash(request) { - const data = query_1.QueryAttestationsByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "AttestationsByHash", data); - return promise.then(data => query_1.QueryAttestationsByHashResponse.decode(new binary_1.BinaryReader(data))); - } - resolver(request) { - const data = query_1.QueryResolverRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "Resolver", data); - return promise.then(data => query_1.QueryResolverResponse.decode(new binary_1.BinaryReader(data))); - } - resolversByIRI(request) { - const data = query_1.QueryResolversByIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByIRI", data); - return promise.then(data => query_1.QueryResolversByIRIResponse.decode(new binary_1.BinaryReader(data))); - } - resolversByHash(request) { - const data = query_1.QueryResolversByHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByHash", data); - return promise.then(data => query_1.QueryResolversByHashResponse.decode(new binary_1.BinaryReader(data))); - } - resolversByURL(request) { - const data = query_1.QueryResolversByURLRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ResolversByURL", data); - return promise.then(data => query_1.QueryResolversByURLResponse.decode(new binary_1.BinaryReader(data))); - } - convertIRIToHash(request) { - const data = query_1.ConvertIRIToHashRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertIRIToHash", data); - return promise.then(data => query_1.ConvertIRIToHashResponse.decode(new binary_1.BinaryReader(data))); - } - convertHashToIRI(request) { - const data = query_1.ConvertHashToIRIRequest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Query", "ConvertHashToIRI", data); - return promise.then(data => query_1.ConvertHashToIRIResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - anchorByIRI(request) { - return queryService.anchorByIRI(request); - }, - anchorByHash(request) { - return queryService.anchorByHash(request); - }, - attestationsByAttestor(request) { - return queryService.attestationsByAttestor(request); - }, - attestationsByIRI(request) { - return queryService.attestationsByIRI(request); - }, - attestationsByHash(request) { - return queryService.attestationsByHash(request); - }, - resolver(request) { - return queryService.resolver(request); - }, - resolversByIRI(request) { - return queryService.resolversByIRI(request); - }, - resolversByHash(request) { - return queryService.resolversByHash(request); - }, - resolversByURL(request) { - return queryService.resolversByURL(request); - }, - convertIRIToHash(request) { - return queryService.convertIRIToHash(request); - }, - convertHashToIRI(request) { - return queryService.convertHashToIRI(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/data/v1/state.d.ts b/packages/api/dist/regen/data/v1/state.d.ts deleted file mode 100644 index 4fb85fa8..00000000 --- a/packages/api/dist/regen/data/v1/state.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** DataID stores a compact data ID and its full IRI. */ -export interface DataID { - /** id is the compact automatically-generated data ID. */ - id: Uint8Array; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri: string; -} -export interface DataIDProtoMsg { - typeUrl: "/regen.data.v1.DataID"; - value: Uint8Array; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDAmino { - /** id is the compact automatically-generated data ID. */ - id?: string; - /** iri is the IRI of the data which contains its full ContentHash. */ - iri?: string; -} -export interface DataIDAminoMsg { - type: "/regen.data.v1.DataID"; - value: DataIDAmino; -} -/** DataID stores a compact data ID and its full IRI. */ -export interface DataIDSDKType { - id: Uint8Array; - iri: string; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchor { - /** id is the compact data ID. */ - id: Uint8Array; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: Date; -} -export interface DataAnchorProtoMsg { - typeUrl: "/regen.data.v1.DataAnchor"; - value: Uint8Array; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorAmino { - /** id is the compact data ID. */ - id?: string; - /** - * timestamp is the anchor timestamp for this object - the time at which - * it was first known to the blockchain. - */ - timestamp?: string; -} -export interface DataAnchorAminoMsg { - type: "/regen.data.v1.DataAnchor"; - value: DataAnchorAmino; -} -/** DataAnchor stores the anchor timestamp for a data object. */ -export interface DataAnchorSDKType { - id: Uint8Array; - timestamp?: Date; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestor { - /** id is the compact data ID. */ - id: Uint8Array; - /** attestor is the account address of the attestor. */ - attestor: Uint8Array; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: Date; -} -export interface DataAttestorProtoMsg { - typeUrl: "/regen.data.v1.DataAttestor"; - value: Uint8Array; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorAmino { - /** id is the compact data ID. */ - id?: string; - /** attestor is the account address of the attestor. */ - attestor?: string; - /** timestamp is the time at which the attestor signed this data object. */ - timestamp?: string; -} -export interface DataAttestorAminoMsg { - type: "/regen.data.v1.DataAttestor"; - value: DataAttestorAmino; -} -/** DataAttestor is a join table for associating data IDs and attestors. */ -export interface DataAttestorSDKType { - id: Uint8Array; - attestor: Uint8Array; - timestamp?: Date; -} -/** Resolver describes a data resolver. */ -export interface Resolver { - /** id is the ID of the resolver. */ - id: bigint; - /** url is the URL of the resolver. */ - url: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager: Uint8Array; -} -export interface ResolverProtoMsg { - typeUrl: "/regen.data.v1.Resolver"; - value: Uint8Array; -} -/** Resolver describes a data resolver. */ -export interface ResolverAmino { - /** id is the ID of the resolver. */ - id?: string; - /** url is the URL of the resolver. */ - url?: string; - /** - * manager is the bytes address of the resolver manager who is allowed - * to make calls to Msg/RegisterResolver for this resolver. - */ - manager?: string; -} -export interface ResolverAminoMsg { - type: "/regen.data.v1.Resolver"; - value: ResolverAmino; -} -/** Resolver describes a data resolver. */ -export interface ResolverSDKType { - id: bigint; - url: string; - manager: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolver { - /** id is the compact data ID. */ - id: Uint8Array; - /** resolver_id is the ID of the resolver. */ - resolverId: bigint; -} -export interface DataResolverProtoMsg { - typeUrl: "/regen.data.v1.DataResolver"; - value: Uint8Array; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverAmino { - /** id is the compact data ID. */ - id?: string; - /** resolver_id is the ID of the resolver. */ - resolver_id?: string; -} -export interface DataResolverAminoMsg { - type: "/regen.data.v1.DataResolver"; - value: DataResolverAmino; -} -/** - * DataResolver is a join table between data objects and resolvers and indicates - * that a resolver claims to be able to resolve this data object. - */ -export interface DataResolverSDKType { - id: Uint8Array; - resolver_id: bigint; -} -export declare const DataID: { - typeUrl: string; - encode(message: DataID, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataID; - fromPartial(object: Partial): DataID; - fromAmino(object: DataIDAmino): DataID; - toAmino(message: DataID): DataIDAmino; - fromAminoMsg(object: DataIDAminoMsg): DataID; - fromProtoMsg(message: DataIDProtoMsg): DataID; - toProto(message: DataID): Uint8Array; - toProtoMsg(message: DataID): DataIDProtoMsg; -}; -export declare const DataAnchor: { - typeUrl: string; - encode(message: DataAnchor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataAnchor; - fromPartial(object: Partial): DataAnchor; - fromAmino(object: DataAnchorAmino): DataAnchor; - toAmino(message: DataAnchor): DataAnchorAmino; - fromAminoMsg(object: DataAnchorAminoMsg): DataAnchor; - fromProtoMsg(message: DataAnchorProtoMsg): DataAnchor; - toProto(message: DataAnchor): Uint8Array; - toProtoMsg(message: DataAnchor): DataAnchorProtoMsg; -}; -export declare const DataAttestor: { - typeUrl: string; - encode(message: DataAttestor, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataAttestor; - fromPartial(object: Partial): DataAttestor; - fromAmino(object: DataAttestorAmino): DataAttestor; - toAmino(message: DataAttestor): DataAttestorAmino; - fromAminoMsg(object: DataAttestorAminoMsg): DataAttestor; - fromProtoMsg(message: DataAttestorProtoMsg): DataAttestor; - toProto(message: DataAttestor): Uint8Array; - toProtoMsg(message: DataAttestor): DataAttestorProtoMsg; -}; -export declare const Resolver: { - typeUrl: string; - encode(message: Resolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Resolver; - fromPartial(object: Partial): Resolver; - fromAmino(object: ResolverAmino): Resolver; - toAmino(message: Resolver): ResolverAmino; - fromAminoMsg(object: ResolverAminoMsg): Resolver; - fromProtoMsg(message: ResolverProtoMsg): Resolver; - toProto(message: Resolver): Uint8Array; - toProtoMsg(message: Resolver): ResolverProtoMsg; -}; -export declare const DataResolver: { - typeUrl: string; - encode(message: DataResolver, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DataResolver; - fromPartial(object: Partial): DataResolver; - fromAmino(object: DataResolverAmino): DataResolver; - toAmino(message: DataResolver): DataResolverAmino; - fromAminoMsg(object: DataResolverAminoMsg): DataResolver; - fromProtoMsg(message: DataResolverProtoMsg): DataResolver; - toProto(message: DataResolver): Uint8Array; - toProtoMsg(message: DataResolver): DataResolverProtoMsg; -}; diff --git a/packages/api/dist/regen/data/v1/state.js b/packages/api/dist/regen/data/v1/state.js deleted file mode 100644 index 7f0c35d1..00000000 --- a/packages/api/dist/regen/data/v1/state.js +++ /dev/null @@ -1,406 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataResolver = exports.Resolver = exports.DataAttestor = exports.DataAnchor = exports.DataID = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseDataID() { - return { - id: new Uint8Array(), - iri: "" - }; -} -exports.DataID = { - typeUrl: "/regen.data.v1.DataID", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.iri !== "") { - writer.uint32(18).string(message.iri); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.iri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataID(); - message.id = object.id ?? new Uint8Array(); - message.iri = object.iri ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDataID(); - if (object.id !== undefined && object.id !== null) { - message.id = (0, helpers_1.bytesFromBase64)(object.id); - } - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; - obj.iri = message.iri === "" ? undefined : message.iri; - return obj; - }, - fromAminoMsg(object) { - return exports.DataID.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DataID.decode(message.value); - }, - toProto(message) { - return exports.DataID.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataID", - value: exports.DataID.encode(message).finish() - }; - } -}; -function createBaseDataAnchor() { - return { - id: new Uint8Array(), - timestamp: undefined - }; -} -exports.DataAnchor = { - typeUrl: "/regen.data.v1.DataAnchor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataAnchor(); - message.id = object.id ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDataAnchor(); - if (object.id !== undefined && object.id !== null) { - message.id = (0, helpers_1.bytesFromBase64)(object.id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DataAnchor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DataAnchor.decode(message.value); - }, - toProto(message) { - return exports.DataAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataAnchor", - value: exports.DataAnchor.encode(message).finish() - }; - } -}; -function createBaseDataAttestor() { - return { - id: new Uint8Array(), - attestor: new Uint8Array(), - timestamp: undefined - }; -} -exports.DataAttestor = { - typeUrl: "/regen.data.v1.DataAttestor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.attestor.length !== 0) { - writer.uint32(18).bytes(message.attestor); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataAttestor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.attestor = reader.bytes(); - break; - case 3: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataAttestor(); - message.id = object.id ?? new Uint8Array(); - message.attestor = object.attestor ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDataAttestor(); - if (object.id !== undefined && object.id !== null) { - message.id = (0, helpers_1.bytesFromBase64)(object.id); - } - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = (0, helpers_1.bytesFromBase64)(object.attestor); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; - obj.attestor = message.attestor ? (0, helpers_1.base64FromBytes)(message.attestor) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DataAttestor.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DataAttestor.decode(message.value); - }, - toProto(message) { - return exports.DataAttestor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataAttestor", - value: exports.DataAttestor.encode(message).finish() - }; - } -}; -function createBaseResolver() { - return { - id: BigInt(0), - url: "", - manager: new Uint8Array() - }; -} -exports.Resolver = { - typeUrl: "/regen.data.v1.Resolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.url !== "") { - writer.uint32(18).string(message.url); - } - if (message.manager.length !== 0) { - writer.uint32(26).bytes(message.manager); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.url = reader.string(); - break; - case 3: - message.manager = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResolver(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.url = object.url ?? ""; - message.manager = object.manager ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.url !== undefined && object.url !== null) { - message.url = object.url; - } - if (object.manager !== undefined && object.manager !== null) { - message.manager = (0, helpers_1.bytesFromBase64)(object.manager); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.url = message.url === "" ? undefined : message.url; - obj.manager = message.manager ? (0, helpers_1.base64FromBytes)(message.manager) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Resolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Resolver.decode(message.value); - }, - toProto(message) { - return exports.Resolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Resolver", - value: exports.Resolver.encode(message).finish() - }; - } -}; -function createBaseDataResolver() { - return { - id: new Uint8Array(), - resolverId: BigInt(0) - }; -} -exports.DataResolver = { - typeUrl: "/regen.data.v1.DataResolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id.length !== 0) { - writer.uint32(10).bytes(message.id); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDataResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.bytes(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDataResolver(); - message.id = object.id ?? new Uint8Array(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseDataResolver(); - if (object.id !== undefined && object.id !== null) { - message.id = (0, helpers_1.bytesFromBase64)(object.id); - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id ? (0, helpers_1.base64FromBytes)(message.id) : undefined; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DataResolver.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DataResolver.decode(message.value); - }, - toProto(message) { - return exports.DataResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.DataResolver", - value: exports.DataResolver.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/data/v1/tx.amino.d.ts b/packages/api/dist/regen/data/v1/tx.amino.d.ts deleted file mode 100644 index bc6cf1aa..00000000 --- a/packages/api/dist/regen/data/v1/tx.amino.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export declare const AminoConverter: { - "/regen.data.v1.MsgAnchor": { - aminoType: string; - toAmino: (message: MsgAnchor) => import("./tx").MsgAnchorAmino; - fromAmino: (object: import("./tx").MsgAnchorAmino) => MsgAnchor; - }; - "/regen.data.v1.MsgAttest": { - aminoType: string; - toAmino: (message: MsgAttest) => import("./tx").MsgAttestAmino; - fromAmino: (object: import("./tx").MsgAttestAmino) => MsgAttest; - }; - "/regen.data.v1.MsgDefineResolver": { - aminoType: string; - toAmino: (message: MsgDefineResolver) => import("./tx").MsgDefineResolverAmino; - fromAmino: (object: import("./tx").MsgDefineResolverAmino) => MsgDefineResolver; - }; - "/regen.data.v1.MsgRegisterResolver": { - aminoType: string; - toAmino: (message: MsgRegisterResolver) => import("./tx").MsgRegisterResolverAmino; - fromAmino: (object: import("./tx").MsgRegisterResolverAmino) => MsgRegisterResolver; - }; -}; diff --git a/packages/api/dist/regen/data/v1/tx.amino.js b/packages/api/dist/regen/data/v1/tx.amino.js deleted file mode 100644 index f6003604..00000000 --- a/packages/api/dist/regen/data/v1/tx.amino.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.data.v1.MsgAnchor": { - aminoType: "regen-ledger/MsgAnchor", - toAmino: tx_1.MsgAnchor.toAmino, - fromAmino: tx_1.MsgAnchor.fromAmino - }, - "/regen.data.v1.MsgAttest": { - aminoType: "regen-ledger/MsgAttest", - toAmino: tx_1.MsgAttest.toAmino, - fromAmino: tx_1.MsgAttest.fromAmino - }, - "/regen.data.v1.MsgDefineResolver": { - aminoType: "regen-ledger/MsgDefineResolver", - toAmino: tx_1.MsgDefineResolver.toAmino, - fromAmino: tx_1.MsgDefineResolver.fromAmino - }, - "/regen.data.v1.MsgRegisterResolver": { - aminoType: "regen-ledger/MsgRegisterResolver", - toAmino: tx_1.MsgRegisterResolver.toAmino, - fromAmino: tx_1.MsgRegisterResolver.fromAmino - } -}; diff --git a/packages/api/dist/regen/data/v1/tx.js b/packages/api/dist/regen/data/v1/tx.js deleted file mode 100644 index 113b35b6..00000000 --- a/packages/api/dist/regen/data/v1/tx.js +++ /dev/null @@ -1,616 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgRegisterResolverResponse = exports.MsgRegisterResolver = exports.MsgDefineResolverResponse = exports.MsgDefineResolver = exports.MsgAttestResponse = exports.MsgAttest = exports.MsgAnchorResponse = exports.MsgAnchor = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseMsgAnchor() { - return { - sender: "", - contentHash: undefined - }; -} -exports.MsgAnchor = { - typeUrl: "/regen.data.v1.MsgAnchor", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.contentHash !== undefined) { - types_1.ContentHash.encode(message.contentHash, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.contentHash = types_1.ContentHash.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAnchor(); - message.sender = object.sender ?? ""; - message.contentHash = object.contentHash !== undefined && object.contentHash !== null ? types_1.ContentHash.fromPartial(object.contentHash) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAnchor(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.content_hash !== undefined && object.content_hash !== null) { - message.contentHash = types_1.ContentHash.fromAmino(object.content_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.content_hash = message.contentHash ? types_1.ContentHash.toAmino(message.contentHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAnchor.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgAnchor", - value: exports.MsgAnchor.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAnchor.decode(message.value); - }, - toProto(message) { - return exports.MsgAnchor.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: exports.MsgAnchor.encode(message).finish() - }; - } -}; -function createBaseMsgAnchorResponse() { - return { - iri: "", - timestamp: undefined - }; -} -exports.MsgAnchorResponse = { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.iri !== "") { - writer.uint32(10).string(message.iri); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAnchorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iri = reader.string(); - break; - case 2: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAnchorResponse(); - message.iri = object.iri ?? ""; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAnchorResponse(); - if (object.iri !== undefined && object.iri !== null) { - message.iri = object.iri; - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.iri = message.iri === "" ? undefined : message.iri; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAnchorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAnchorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAnchorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAnchorResponse", - value: exports.MsgAnchorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAttest() { - return { - attestor: "", - contentHashes: [] - }; -} -exports.MsgAttest = { - typeUrl: "/regen.data.v1.MsgAttest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.attestor !== "") { - writer.uint32(10).string(message.attestor); - } - for (const v of message.contentHashes) { - types_1.ContentHash_Graph.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attestor = reader.string(); - break; - case 2: - message.contentHashes.push(types_1.ContentHash_Graph.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAttest(); - message.attestor = object.attestor ?? ""; - message.contentHashes = object.contentHashes?.map(e => types_1.ContentHash_Graph.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAttest(); - if (object.attestor !== undefined && object.attestor !== null) { - message.attestor = object.attestor; - } - message.contentHashes = object.content_hashes?.map(e => types_1.ContentHash_Graph.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.attestor = message.attestor === "" ? undefined : message.attestor; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? types_1.ContentHash_Graph.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAttest.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgAttest", - value: exports.MsgAttest.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAttest.decode(message.value); - }, - toProto(message) { - return exports.MsgAttest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: exports.MsgAttest.encode(message).finish() - }; - } -}; -function createBaseMsgAttestResponse() { - return { - iris: [], - timestamp: undefined - }; -} -exports.MsgAttestResponse = { - typeUrl: "/regen.data.v1.MsgAttestResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.iris) { - writer.uint32(10).string(v); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAttestResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iris.push(reader.string()); - break; - case 2: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAttestResponse(); - message.iris = object.iris?.map(e => e) || []; - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.iris) { - obj.iris = message.iris.map(e => e); - } - else { - obj.iris = message.iris; - } - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAttestResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAttestResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAttestResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgAttestResponse", - value: exports.MsgAttestResponse.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolver() { - return { - manager: "", - resolverUrl: "" - }; -} -exports.MsgDefineResolver = { - typeUrl: "/regen.data.v1.MsgDefineResolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverUrl !== "") { - writer.uint32(18).string(message.resolverUrl); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDefineResolver(); - message.manager = object.manager ?? ""; - message.resolverUrl = object.resolverUrl ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgDefineResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_url !== undefined && object.resolver_url !== null) { - message.resolverUrl = object.resolver_url; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_url = message.resolverUrl === "" ? undefined : message.resolverUrl; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDefineResolver.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgDefineResolver", - value: exports.MsgDefineResolver.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgDefineResolver.decode(message.value); - }, - toProto(message) { - return exports.MsgDefineResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: exports.MsgDefineResolver.encode(message).finish() - }; - } -}; -function createBaseMsgDefineResolverResponse() { - return { - resolverId: BigInt(0) - }; -} -exports.MsgDefineResolverResponse = { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.resolverId !== BigInt(0)) { - writer.uint32(8).uint64(message.resolverId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDefineResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resolverId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgDefineResolverResponse(); - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgDefineResolverResponse(); - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgDefineResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgDefineResolverResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgDefineResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolverResponse", - value: exports.MsgDefineResolverResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolver() { - return { - manager: "", - resolverId: BigInt(0), - contentHashes: [] - }; -} -exports.MsgRegisterResolver = { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.manager !== "") { - writer.uint32(10).string(message.manager); - } - if (message.resolverId !== BigInt(0)) { - writer.uint32(16).uint64(message.resolverId); - } - for (const v of message.contentHashes) { - types_1.ContentHash.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolver(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.manager = reader.string(); - break; - case 2: - message.resolverId = reader.uint64(); - break; - case 3: - message.contentHashes.push(types_1.ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRegisterResolver(); - message.manager = object.manager ?? ""; - message.resolverId = object.resolverId !== undefined && object.resolverId !== null ? BigInt(object.resolverId.toString()) : BigInt(0); - message.contentHashes = object.contentHashes?.map(e => types_1.ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRegisterResolver(); - if (object.manager !== undefined && object.manager !== null) { - message.manager = object.manager; - } - if (object.resolver_id !== undefined && object.resolver_id !== null) { - message.resolverId = BigInt(object.resolver_id); - } - message.contentHashes = object.content_hashes?.map(e => types_1.ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.manager = message.manager === "" ? undefined : message.manager; - obj.resolver_id = message.resolverId !== BigInt(0) ? message.resolverId.toString() : undefined; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? types_1.ContentHash.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRegisterResolver.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen-ledger/MsgRegisterResolver", - value: exports.MsgRegisterResolver.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRegisterResolver.decode(message.value); - }, - toProto(message) { - return exports.MsgRegisterResolver.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: exports.MsgRegisterResolver.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterResolverResponse() { - return {}; -} -exports.MsgRegisterResolverResponse = { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterResolverResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRegisterResolverResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRegisterResolverResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRegisterResolverResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRegisterResolverResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolverResponse", - value: exports.MsgRegisterResolverResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/data/v1/tx.registry.d.ts b/packages/api/dist/regen/data/v1/tx.registry.d.ts deleted file mode 100644 index d70b4309..00000000 --- a/packages/api/dist/regen/data/v1/tx.registry.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgAnchor, MsgAttest, MsgDefineResolver, MsgRegisterResolver } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: Uint8Array; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: Uint8Array; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: Uint8Array; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: MsgAnchor; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: MsgAttest; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: MsgDefineResolver; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: MsgRegisterResolver; - }; - }; - fromPartial: { - anchor(value: MsgAnchor): { - typeUrl: string; - value: MsgAnchor; - }; - attest(value: MsgAttest): { - typeUrl: string; - value: MsgAttest; - }; - defineResolver(value: MsgDefineResolver): { - typeUrl: string; - value: MsgDefineResolver; - }; - registerResolver(value: MsgRegisterResolver): { - typeUrl: string; - value: MsgRegisterResolver; - }; - }; -}; diff --git a/packages/api/dist/regen/data/v1/tx.registry.js b/packages/api/dist/regen/data/v1/tx.registry.js deleted file mode 100644 index 42c74cf7..00000000 --- a/packages/api/dist/regen/data/v1/tx.registry.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.data.v1.MsgAnchor", tx_1.MsgAnchor], ["/regen.data.v1.MsgAttest", tx_1.MsgAttest], ["/regen.data.v1.MsgDefineResolver", tx_1.MsgDefineResolver], ["/regen.data.v1.MsgRegisterResolver", tx_1.MsgRegisterResolver]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: tx_1.MsgAnchor.encode(value).finish() - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: tx_1.MsgAttest.encode(value).finish() - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: tx_1.MsgDefineResolver.encode(value).finish() - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: tx_1.MsgRegisterResolver.encode(value).finish() - }; - } - }, - withTypeUrl: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value - }; - } - }, - fromPartial: { - anchor(value) { - return { - typeUrl: "/regen.data.v1.MsgAnchor", - value: tx_1.MsgAnchor.fromPartial(value) - }; - }, - attest(value) { - return { - typeUrl: "/regen.data.v1.MsgAttest", - value: tx_1.MsgAttest.fromPartial(value) - }; - }, - defineResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgDefineResolver", - value: tx_1.MsgDefineResolver.fromPartial(value) - }; - }, - registerResolver(value) { - return { - typeUrl: "/regen.data.v1.MsgRegisterResolver", - value: tx_1.MsgRegisterResolver.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 774839ef..00000000 --- a/packages/api/dist/regen/data/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgAnchor, MsgAnchorResponse, MsgAttest, MsgAttestResponse, MsgDefineResolver, MsgDefineResolverResponse, MsgRegisterResolver, MsgRegisterResolverResponse } from "./tx"; -/** Msg is the regen.data.v1 Msg service */ -export interface Msg { - /** - * Anchor "anchors" a piece of data to the blockchain based on its secure - * hash, effectively providing a tamper resistant timestamp. - * - * The sender in Anchor is not attesting to the veracity of the underlying - * data. They can simply be an intermediary providing timestamp services. - * Attest should be used to create a digital signature attesting to the - * veracity of some piece of data. - */ - anchor(request: MsgAnchor): Promise; - /** - * Attest allows for digital signing of an arbitrary piece of data on the - * blockchain. By attesting to data, the attestor is making a statement about - * the veracity of the data itself. It is like signing a legal document, - * meaning that I agree to all conditions and to the best of my knowledge - * everything is true. When anchoring data, the sender is not attesting to the - * veracity of the data, they are simply communicating that it exists. - * - * On-chain signatures have the following benefits: - * - on-chain identities can be managed using different cryptographic keys - * that change over time through key rotation practices - * - an on-chain identity may represent an organization and through delegation - * individual members may sign on behalf of the group - * - the blockchain transaction envelope provides built-in replay protection - * and timestamping - * - * Attest implicitly calls Anchor if the data was not already anchored. - * - * Attest can be called multiple times for the same content hash with - * different attestors and those attestors will be appended to the list of - * attestors. If the same attestor attempts to attest to the same piece of - * data, the attestor will be ignored and a new attestation with a new - * timestamp will not be added. - */ - attest(request: MsgAttest): Promise; - /** - * DefineResolver defines a resolver URL and assigns it a new integer ID - * that can be used in calls to RegisterResolver. - */ - defineResolver(request: MsgDefineResolver): Promise; - /** RegisterResolver registers data content hashes */ - registerResolver(request: MsgRegisterResolver): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - anchor(request: MsgAnchor): Promise; - attest(request: MsgAttest): Promise; - defineResolver(request: MsgDefineResolver): Promise; - registerResolver(request: MsgRegisterResolver): Promise; -} diff --git a/packages/api/dist/regen/data/v1/tx.rpc.msg.js b/packages/api/dist/regen/data/v1/tx.rpc.msg.js deleted file mode 100644 index ce09860d..00000000 --- a/packages/api/dist/regen/data/v1/tx.rpc.msg.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.anchor = this.anchor.bind(this); - this.attest = this.attest.bind(this); - this.defineResolver = this.defineResolver.bind(this); - this.registerResolver = this.registerResolver.bind(this); - } - anchor(request) { - const data = tx_1.MsgAnchor.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Anchor", data); - return promise.then(data => tx_1.MsgAnchorResponse.decode(new binary_1.BinaryReader(data))); - } - attest(request) { - const data = tx_1.MsgAttest.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "Attest", data); - return promise.then(data => tx_1.MsgAttestResponse.decode(new binary_1.BinaryReader(data))); - } - defineResolver(request) { - const data = tx_1.MsgDefineResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "DefineResolver", data); - return promise.then(data => tx_1.MsgDefineResolverResponse.decode(new binary_1.BinaryReader(data))); - } - registerResolver(request) { - const data = tx_1.MsgRegisterResolver.encode(request).finish(); - const promise = this.rpc.request("regen.data.v1.Msg", "RegisterResolver", data); - return promise.then(data => tx_1.MsgRegisterResolverResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/data/v1/types.d.ts b/packages/api/dist/regen/data/v1/types.d.ts deleted file mode 100644 index f9ba0942..00000000 --- a/packages/api/dist/regen/data/v1/types.d.ts +++ /dev/null @@ -1,287 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** DigestAlgorithm is the hash digest algorithm */ -export declare enum DigestAlgorithm { - /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - DIGEST_ALGORITHM_UNSPECIFIED = 0, - /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ - DIGEST_ALGORITHM_BLAKE2B_256 = 1, - UNRECOGNIZED = -1 -} -export declare const DigestAlgorithmSDKType: typeof DigestAlgorithm; -export declare const DigestAlgorithmAmino: typeof DigestAlgorithm; -export declare function digestAlgorithmFromJSON(object: any): DigestAlgorithm; -export declare function digestAlgorithmToJSON(object: DigestAlgorithm): string; -/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ -export declare enum RawMediaType { - /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ - RAW_MEDIA_TYPE_UNSPECIFIED = 0, - /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ - RAW_MEDIA_TYPE_TEXT_PLAIN = 1, - /** RAW_MEDIA_TYPE_JSON - JSON */ - RAW_MEDIA_TYPE_JSON = 2, - /** RAW_MEDIA_TYPE_CSV - CSV */ - RAW_MEDIA_TYPE_CSV = 3, - /** RAW_MEDIA_TYPE_XML - XML */ - RAW_MEDIA_TYPE_XML = 4, - /** RAW_MEDIA_TYPE_PDF - PDF */ - RAW_MEDIA_TYPE_PDF = 5, - /** RAW_MEDIA_TYPE_TIFF - TIIF */ - RAW_MEDIA_TYPE_TIFF = 16, - /** RAW_MEDIA_TYPE_JPG - JPG */ - RAW_MEDIA_TYPE_JPG = 17, - /** RAW_MEDIA_TYPE_PNG - PNG */ - RAW_MEDIA_TYPE_PNG = 18, - /** RAW_MEDIA_TYPE_SVG - SVG */ - RAW_MEDIA_TYPE_SVG = 19, - /** RAW_MEDIA_TYPE_WEBP - WEBP */ - RAW_MEDIA_TYPE_WEBP = 20, - /** RAW_MEDIA_TYPE_AVIF - AVIF */ - RAW_MEDIA_TYPE_AVIF = 21, - /** RAW_MEDIA_TYPE_GIF - GIF */ - RAW_MEDIA_TYPE_GIF = 22, - /** RAW_MEDIA_TYPE_APNG - APNG */ - RAW_MEDIA_TYPE_APNG = 23, - /** RAW_MEDIA_TYPE_MPEG - MPEG */ - RAW_MEDIA_TYPE_MPEG = 32, - /** RAW_MEDIA_TYPE_MP4 - MP4 */ - RAW_MEDIA_TYPE_MP4 = 33, - /** RAW_MEDIA_TYPE_WEBM - WEBM */ - RAW_MEDIA_TYPE_WEBM = 34, - /** RAW_MEDIA_TYPE_OGG - OGG */ - RAW_MEDIA_TYPE_OGG = 35, - UNRECOGNIZED = -1 -} -export declare const RawMediaTypeSDKType: typeof RawMediaType; -export declare const RawMediaTypeAmino: typeof RawMediaType; -export declare function rawMediaTypeFromJSON(object: any): RawMediaType; -export declare function rawMediaTypeToJSON(object: RawMediaType): string; -/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ -export declare enum GraphCanonicalizationAlgorithm { - /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0, - /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ - GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1, - UNRECOGNIZED = -1 -} -export declare const GraphCanonicalizationAlgorithmSDKType: typeof GraphCanonicalizationAlgorithm; -export declare const GraphCanonicalizationAlgorithmAmino: typeof GraphCanonicalizationAlgorithm; -export declare function graphCanonicalizationAlgorithmFromJSON(object: any): GraphCanonicalizationAlgorithm; -export declare function graphCanonicalizationAlgorithmToJSON(object: GraphCanonicalizationAlgorithm): string; -/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ -export declare enum GraphMerkleTree { - /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ - GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0, - UNRECOGNIZED = -1 -} -export declare const GraphMerkleTreeSDKType: typeof GraphMerkleTree; -export declare const GraphMerkleTreeAmino: typeof GraphMerkleTree; -export declare function graphMerkleTreeFromJSON(object: any): GraphMerkleTree; -export declare function graphMerkleTreeToJSON(object: GraphMerkleTree): string; -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHash { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_Raw; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_Graph; -} -export interface ContentHashProtoMsg { - typeUrl: "/regen.data.v1.ContentHash"; - value: Uint8Array; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashAmino { - /** - * Raw specifies "raw" data which does not specify a deterministic, canonical - * encoding. Users of these hashes MUST maintain a copy of the hashed data - * which is preserved bit by bit. All other content encodings specify a - * deterministic, canonical encoding allowing implementations to choose from a - * variety of alternative formats for transport and encoding while maintaining - * the guarantee that the canonical hash will not change. The media type for - * "raw" data is defined by the MediaType enum. - */ - raw?: ContentHash_RawAmino; - /** - * Graph specifies graph data that conforms to the RDF data model. - * The canonicalization algorithm used for an RDF graph is specified by - * GraphCanonicalizationAlgorithm. - */ - graph?: ContentHash_GraphAmino; -} -export interface ContentHashAminoMsg { - type: "/regen.data.v1.ContentHash"; - value: ContentHashAmino; -} -/** ContentHash specifies a hash-based content identifier for a piece of data. */ -export interface ContentHashSDKType { - raw?: ContentHash_RawSDKType; - graph?: ContentHash_GraphSDKType; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_Raw { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - mediaType: RawMediaType; -} -export interface ContentHash_RawProtoMsg { - typeUrl: "/regen.data.v1.Raw"; - value: Uint8Array; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** media_type represents the media type for raw data. */ - media_type?: RawMediaType; -} -export interface ContentHash_RawAminoMsg { - type: "/regen.data.v1.Raw"; - value: ContentHash_RawAmino; -} -/** Raw is the content hash type used for raw data. */ -export interface ContentHash_RawSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - media_type: RawMediaType; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_Graph { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash: Uint8Array; - /** digest_algorithm represents the hash digest algorithm. */ - digestAlgorithm: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalizationAlgorithm: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkleTree: GraphMerkleTree; -} -export interface ContentHash_GraphProtoMsg { - typeUrl: "/regen.data.v1.Graph"; - value: Uint8Array; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphAmino { - /** - * hash represents the hash of the data based on the specified - * digest_algorithm. - */ - hash?: string; - /** digest_algorithm represents the hash digest algorithm. */ - digest_algorithm?: DigestAlgorithm; - /** - * graph_canonicalization_algorithm represents the RDF graph - * canonicalization algorithm. - */ - canonicalization_algorithm?: GraphCanonicalizationAlgorithm; - /** merkle_tree is the merkle tree type used for the graph hash, if any. */ - merkle_tree?: GraphMerkleTree; -} -export interface ContentHash_GraphAminoMsg { - type: "/regen.data.v1.Graph"; - value: ContentHash_GraphAmino; -} -/** Graph is the content hash type used for RDF graph data. */ -export interface ContentHash_GraphSDKType { - hash: Uint8Array; - digest_algorithm: DigestAlgorithm; - canonicalization_algorithm: GraphCanonicalizationAlgorithm; - merkle_tree: GraphMerkleTree; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashes { - /** data is a list of content hashes which the resolver claims to serve. */ - contentHashes: ContentHash[]; -} -export interface ContentHashesProtoMsg { - typeUrl: "/regen.data.v1.ContentHashes"; - value: Uint8Array; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesAmino { - /** data is a list of content hashes which the resolver claims to serve. */ - content_hashes?: ContentHashAmino[]; -} -export interface ContentHashesAminoMsg { - type: "/regen.data.v1.ContentHashes"; - value: ContentHashesAmino; -} -/** ContentHashes contains list of content ContentHash. */ -export interface ContentHashesSDKType { - content_hashes: ContentHashSDKType[]; -} -export declare const ContentHash: { - typeUrl: string; - encode(message: ContentHash, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash; - fromPartial(object: Partial): ContentHash; - fromAmino(object: ContentHashAmino): ContentHash; - toAmino(message: ContentHash): ContentHashAmino; - fromAminoMsg(object: ContentHashAminoMsg): ContentHash; - fromProtoMsg(message: ContentHashProtoMsg): ContentHash; - toProto(message: ContentHash): Uint8Array; - toProtoMsg(message: ContentHash): ContentHashProtoMsg; -}; -export declare const ContentHash_Raw: { - typeUrl: string; - encode(message: ContentHash_Raw, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Raw; - fromPartial(object: Partial): ContentHash_Raw; - fromAmino(object: ContentHash_RawAmino): ContentHash_Raw; - toAmino(message: ContentHash_Raw): ContentHash_RawAmino; - fromAminoMsg(object: ContentHash_RawAminoMsg): ContentHash_Raw; - fromProtoMsg(message: ContentHash_RawProtoMsg): ContentHash_Raw; - toProto(message: ContentHash_Raw): Uint8Array; - toProtoMsg(message: ContentHash_Raw): ContentHash_RawProtoMsg; -}; -export declare const ContentHash_Graph: { - typeUrl: string; - encode(message: ContentHash_Graph, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHash_Graph; - fromPartial(object: Partial): ContentHash_Graph; - fromAmino(object: ContentHash_GraphAmino): ContentHash_Graph; - toAmino(message: ContentHash_Graph): ContentHash_GraphAmino; - fromAminoMsg(object: ContentHash_GraphAminoMsg): ContentHash_Graph; - fromProtoMsg(message: ContentHash_GraphProtoMsg): ContentHash_Graph; - toProto(message: ContentHash_Graph): Uint8Array; - toProtoMsg(message: ContentHash_Graph): ContentHash_GraphProtoMsg; -}; -export declare const ContentHashes: { - typeUrl: string; - encode(message: ContentHashes, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ContentHashes; - fromPartial(object: Partial): ContentHashes; - fromAmino(object: ContentHashesAmino): ContentHashes; - toAmino(message: ContentHashes): ContentHashesAmino; - fromAminoMsg(object: ContentHashesAminoMsg): ContentHashes; - fromProtoMsg(message: ContentHashesProtoMsg): ContentHashes; - toProto(message: ContentHashes): Uint8Array; - toProtoMsg(message: ContentHashes): ContentHashesProtoMsg; -}; diff --git a/packages/api/dist/regen/data/v1/types.js b/packages/api/dist/regen/data/v1/types.js deleted file mode 100644 index 982fb888..00000000 --- a/packages/api/dist/regen/data/v1/types.js +++ /dev/null @@ -1,590 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ContentHashes = exports.ContentHash_Graph = exports.ContentHash_Raw = exports.ContentHash = exports.graphMerkleTreeToJSON = exports.graphMerkleTreeFromJSON = exports.GraphMerkleTreeAmino = exports.GraphMerkleTreeSDKType = exports.GraphMerkleTree = exports.graphCanonicalizationAlgorithmToJSON = exports.graphCanonicalizationAlgorithmFromJSON = exports.GraphCanonicalizationAlgorithmAmino = exports.GraphCanonicalizationAlgorithmSDKType = exports.GraphCanonicalizationAlgorithm = exports.rawMediaTypeToJSON = exports.rawMediaTypeFromJSON = exports.RawMediaTypeAmino = exports.RawMediaTypeSDKType = exports.RawMediaType = exports.digestAlgorithmToJSON = exports.digestAlgorithmFromJSON = exports.DigestAlgorithmAmino = exports.DigestAlgorithmSDKType = exports.DigestAlgorithm = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -/** DigestAlgorithm is the hash digest algorithm */ -var DigestAlgorithm; -(function (DigestAlgorithm) { - /** DIGEST_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_UNSPECIFIED"] = 0] = "DIGEST_ALGORITHM_UNSPECIFIED"; - /** DIGEST_ALGORITHM_BLAKE2B_256 - BLAKE2b-256 */ - DigestAlgorithm[DigestAlgorithm["DIGEST_ALGORITHM_BLAKE2B_256"] = 1] = "DIGEST_ALGORITHM_BLAKE2B_256"; - DigestAlgorithm[DigestAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(DigestAlgorithm || (exports.DigestAlgorithm = DigestAlgorithm = {})); -exports.DigestAlgorithmSDKType = DigestAlgorithm; -exports.DigestAlgorithmAmino = DigestAlgorithm; -function digestAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "DIGEST_ALGORITHM_UNSPECIFIED": - return DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED; - case 1: - case "DIGEST_ALGORITHM_BLAKE2B_256": - return DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256; - case -1: - case "UNRECOGNIZED": - default: - return DigestAlgorithm.UNRECOGNIZED; - } -} -exports.digestAlgorithmFromJSON = digestAlgorithmFromJSON; -function digestAlgorithmToJSON(object) { - switch (object) { - case DigestAlgorithm.DIGEST_ALGORITHM_UNSPECIFIED: - return "DIGEST_ALGORITHM_UNSPECIFIED"; - case DigestAlgorithm.DIGEST_ALGORITHM_BLAKE2B_256: - return "DIGEST_ALGORITHM_BLAKE2B_256"; - case DigestAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.digestAlgorithmToJSON = digestAlgorithmToJSON; -/** RawMediaType defines MIME media types to be used with a ContentHash.Raw hash. */ -var RawMediaType; -(function (RawMediaType) { - /** RAW_MEDIA_TYPE_UNSPECIFIED - RAW_MEDIA_TYPE_UNSPECIFIED can be used for raw binary data */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_UNSPECIFIED"] = 0] = "RAW_MEDIA_TYPE_UNSPECIFIED"; - /** RAW_MEDIA_TYPE_TEXT_PLAIN - plain text */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TEXT_PLAIN"] = 1] = "RAW_MEDIA_TYPE_TEXT_PLAIN"; - /** RAW_MEDIA_TYPE_JSON - JSON */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JSON"] = 2] = "RAW_MEDIA_TYPE_JSON"; - /** RAW_MEDIA_TYPE_CSV - CSV */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_CSV"] = 3] = "RAW_MEDIA_TYPE_CSV"; - /** RAW_MEDIA_TYPE_XML - XML */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_XML"] = 4] = "RAW_MEDIA_TYPE_XML"; - /** RAW_MEDIA_TYPE_PDF - PDF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PDF"] = 5] = "RAW_MEDIA_TYPE_PDF"; - /** RAW_MEDIA_TYPE_TIFF - TIIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_TIFF"] = 16] = "RAW_MEDIA_TYPE_TIFF"; - /** RAW_MEDIA_TYPE_JPG - JPG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_JPG"] = 17] = "RAW_MEDIA_TYPE_JPG"; - /** RAW_MEDIA_TYPE_PNG - PNG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_PNG"] = 18] = "RAW_MEDIA_TYPE_PNG"; - /** RAW_MEDIA_TYPE_SVG - SVG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_SVG"] = 19] = "RAW_MEDIA_TYPE_SVG"; - /** RAW_MEDIA_TYPE_WEBP - WEBP */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBP"] = 20] = "RAW_MEDIA_TYPE_WEBP"; - /** RAW_MEDIA_TYPE_AVIF - AVIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_AVIF"] = 21] = "RAW_MEDIA_TYPE_AVIF"; - /** RAW_MEDIA_TYPE_GIF - GIF */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_GIF"] = 22] = "RAW_MEDIA_TYPE_GIF"; - /** RAW_MEDIA_TYPE_APNG - APNG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_APNG"] = 23] = "RAW_MEDIA_TYPE_APNG"; - /** RAW_MEDIA_TYPE_MPEG - MPEG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MPEG"] = 32] = "RAW_MEDIA_TYPE_MPEG"; - /** RAW_MEDIA_TYPE_MP4 - MP4 */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_MP4"] = 33] = "RAW_MEDIA_TYPE_MP4"; - /** RAW_MEDIA_TYPE_WEBM - WEBM */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_WEBM"] = 34] = "RAW_MEDIA_TYPE_WEBM"; - /** RAW_MEDIA_TYPE_OGG - OGG */ - RawMediaType[RawMediaType["RAW_MEDIA_TYPE_OGG"] = 35] = "RAW_MEDIA_TYPE_OGG"; - RawMediaType[RawMediaType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(RawMediaType || (exports.RawMediaType = RawMediaType = {})); -exports.RawMediaTypeSDKType = RawMediaType; -exports.RawMediaTypeAmino = RawMediaType; -function rawMediaTypeFromJSON(object) { - switch (object) { - case 0: - case "RAW_MEDIA_TYPE_UNSPECIFIED": - return RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED; - case 1: - case "RAW_MEDIA_TYPE_TEXT_PLAIN": - return RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN; - case 2: - case "RAW_MEDIA_TYPE_JSON": - return RawMediaType.RAW_MEDIA_TYPE_JSON; - case 3: - case "RAW_MEDIA_TYPE_CSV": - return RawMediaType.RAW_MEDIA_TYPE_CSV; - case 4: - case "RAW_MEDIA_TYPE_XML": - return RawMediaType.RAW_MEDIA_TYPE_XML; - case 5: - case "RAW_MEDIA_TYPE_PDF": - return RawMediaType.RAW_MEDIA_TYPE_PDF; - case 16: - case "RAW_MEDIA_TYPE_TIFF": - return RawMediaType.RAW_MEDIA_TYPE_TIFF; - case 17: - case "RAW_MEDIA_TYPE_JPG": - return RawMediaType.RAW_MEDIA_TYPE_JPG; - case 18: - case "RAW_MEDIA_TYPE_PNG": - return RawMediaType.RAW_MEDIA_TYPE_PNG; - case 19: - case "RAW_MEDIA_TYPE_SVG": - return RawMediaType.RAW_MEDIA_TYPE_SVG; - case 20: - case "RAW_MEDIA_TYPE_WEBP": - return RawMediaType.RAW_MEDIA_TYPE_WEBP; - case 21: - case "RAW_MEDIA_TYPE_AVIF": - return RawMediaType.RAW_MEDIA_TYPE_AVIF; - case 22: - case "RAW_MEDIA_TYPE_GIF": - return RawMediaType.RAW_MEDIA_TYPE_GIF; - case 23: - case "RAW_MEDIA_TYPE_APNG": - return RawMediaType.RAW_MEDIA_TYPE_APNG; - case 32: - case "RAW_MEDIA_TYPE_MPEG": - return RawMediaType.RAW_MEDIA_TYPE_MPEG; - case 33: - case "RAW_MEDIA_TYPE_MP4": - return RawMediaType.RAW_MEDIA_TYPE_MP4; - case 34: - case "RAW_MEDIA_TYPE_WEBM": - return RawMediaType.RAW_MEDIA_TYPE_WEBM; - case 35: - case "RAW_MEDIA_TYPE_OGG": - return RawMediaType.RAW_MEDIA_TYPE_OGG; - case -1: - case "UNRECOGNIZED": - default: - return RawMediaType.UNRECOGNIZED; - } -} -exports.rawMediaTypeFromJSON = rawMediaTypeFromJSON; -function rawMediaTypeToJSON(object) { - switch (object) { - case RawMediaType.RAW_MEDIA_TYPE_UNSPECIFIED: - return "RAW_MEDIA_TYPE_UNSPECIFIED"; - case RawMediaType.RAW_MEDIA_TYPE_TEXT_PLAIN: - return "RAW_MEDIA_TYPE_TEXT_PLAIN"; - case RawMediaType.RAW_MEDIA_TYPE_JSON: - return "RAW_MEDIA_TYPE_JSON"; - case RawMediaType.RAW_MEDIA_TYPE_CSV: - return "RAW_MEDIA_TYPE_CSV"; - case RawMediaType.RAW_MEDIA_TYPE_XML: - return "RAW_MEDIA_TYPE_XML"; - case RawMediaType.RAW_MEDIA_TYPE_PDF: - return "RAW_MEDIA_TYPE_PDF"; - case RawMediaType.RAW_MEDIA_TYPE_TIFF: - return "RAW_MEDIA_TYPE_TIFF"; - case RawMediaType.RAW_MEDIA_TYPE_JPG: - return "RAW_MEDIA_TYPE_JPG"; - case RawMediaType.RAW_MEDIA_TYPE_PNG: - return "RAW_MEDIA_TYPE_PNG"; - case RawMediaType.RAW_MEDIA_TYPE_SVG: - return "RAW_MEDIA_TYPE_SVG"; - case RawMediaType.RAW_MEDIA_TYPE_WEBP: - return "RAW_MEDIA_TYPE_WEBP"; - case RawMediaType.RAW_MEDIA_TYPE_AVIF: - return "RAW_MEDIA_TYPE_AVIF"; - case RawMediaType.RAW_MEDIA_TYPE_GIF: - return "RAW_MEDIA_TYPE_GIF"; - case RawMediaType.RAW_MEDIA_TYPE_APNG: - return "RAW_MEDIA_TYPE_APNG"; - case RawMediaType.RAW_MEDIA_TYPE_MPEG: - return "RAW_MEDIA_TYPE_MPEG"; - case RawMediaType.RAW_MEDIA_TYPE_MP4: - return "RAW_MEDIA_TYPE_MP4"; - case RawMediaType.RAW_MEDIA_TYPE_WEBM: - return "RAW_MEDIA_TYPE_WEBM"; - case RawMediaType.RAW_MEDIA_TYPE_OGG: - return "RAW_MEDIA_TYPE_OGG"; - case RawMediaType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.rawMediaTypeToJSON = rawMediaTypeToJSON; -/** GraphCanonicalizationAlgorithm is the graph canonicalization algorithm */ -var GraphCanonicalizationAlgorithm; -(function (GraphCanonicalizationAlgorithm) { - /** GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED - unspecified and invalid */ - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"] = 0] = "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; - /** GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 - URDNA2015 graph hashing */ - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"] = 1] = "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; - GraphCanonicalizationAlgorithm[GraphCanonicalizationAlgorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(GraphCanonicalizationAlgorithm || (exports.GraphCanonicalizationAlgorithm = GraphCanonicalizationAlgorithm = {})); -exports.GraphCanonicalizationAlgorithmSDKType = GraphCanonicalizationAlgorithm; -exports.GraphCanonicalizationAlgorithmAmino = GraphCanonicalizationAlgorithm; -function graphCanonicalizationAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED; - case 1: - case "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": - return GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015; - case -1: - case "UNRECOGNIZED": - default: - return GraphCanonicalizationAlgorithm.UNRECOGNIZED; - } -} -exports.graphCanonicalizationAlgorithmFromJSON = graphCanonicalizationAlgorithmFromJSON; -function graphCanonicalizationAlgorithmToJSON(object) { - switch (object) { - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED: - return "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED"; - case GraphCanonicalizationAlgorithm.GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015: - return "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015"; - case GraphCanonicalizationAlgorithm.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.graphCanonicalizationAlgorithmToJSON = graphCanonicalizationAlgorithmToJSON; -/** GraphMerkleTree is the graph merkle tree type used for hashing, if any */ -var GraphMerkleTree; -(function (GraphMerkleTree) { - /** GRAPH_MERKLE_TREE_NONE_UNSPECIFIED - unspecified and valid */ - GraphMerkleTree[GraphMerkleTree["GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"] = 0] = "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; - GraphMerkleTree[GraphMerkleTree["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(GraphMerkleTree || (exports.GraphMerkleTree = GraphMerkleTree = {})); -exports.GraphMerkleTreeSDKType = GraphMerkleTree; -exports.GraphMerkleTreeAmino = GraphMerkleTree; -function graphMerkleTreeFromJSON(object) { - switch (object) { - case 0: - case "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": - return GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED; - case -1: - case "UNRECOGNIZED": - default: - return GraphMerkleTree.UNRECOGNIZED; - } -} -exports.graphMerkleTreeFromJSON = graphMerkleTreeFromJSON; -function graphMerkleTreeToJSON(object) { - switch (object) { - case GraphMerkleTree.GRAPH_MERKLE_TREE_NONE_UNSPECIFIED: - return "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED"; - case GraphMerkleTree.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.graphMerkleTreeToJSON = graphMerkleTreeToJSON; -function createBaseContentHash() { - return { - raw: undefined, - graph: undefined - }; -} -exports.ContentHash = { - typeUrl: "/regen.data.v1.ContentHash", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.raw !== undefined) { - exports.ContentHash_Raw.encode(message.raw, writer.uint32(10).fork()).ldelim(); - } - if (message.graph !== undefined) { - exports.ContentHash_Graph.encode(message.graph, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.raw = exports.ContentHash_Raw.decode(reader, reader.uint32()); - break; - case 2: - message.graph = exports.ContentHash_Graph.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash(); - message.raw = object.raw !== undefined && object.raw !== null ? exports.ContentHash_Raw.fromPartial(object.raw) : undefined; - message.graph = object.graph !== undefined && object.graph !== null ? exports.ContentHash_Graph.fromPartial(object.graph) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash(); - if (object.raw !== undefined && object.raw !== null) { - message.raw = exports.ContentHash_Raw.fromAmino(object.raw); - } - if (object.graph !== undefined && object.graph !== null) { - message.graph = exports.ContentHash_Graph.fromAmino(object.graph); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.raw = message.raw ? exports.ContentHash_Raw.toAmino(message.raw) : undefined; - obj.graph = message.graph ? exports.ContentHash_Graph.toAmino(message.graph) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ContentHash.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ContentHash.decode(message.value); - }, - toProto(message) { - return exports.ContentHash.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ContentHash", - value: exports.ContentHash.encode(message).finish() - }; - } -}; -function createBaseContentHash_Raw() { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - mediaType: 0 - }; -} -exports.ContentHash_Raw = { - typeUrl: "/regen.data.v1.Raw", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.mediaType !== 0) { - writer.uint32(24).int32(message.mediaType); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Raw(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = reader.int32(); - break; - case 3: - message.mediaType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash_Raw(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.mediaType = object.mediaType ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash_Raw(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.media_type !== undefined && object.media_type !== null) { - message.mediaType = object.media_type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.media_type = message.mediaType === 0 ? undefined : message.mediaType; - return obj; - }, - fromAminoMsg(object) { - return exports.ContentHash_Raw.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ContentHash_Raw.decode(message.value); - }, - toProto(message) { - return exports.ContentHash_Raw.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Raw", - value: exports.ContentHash_Raw.encode(message).finish() - }; - } -}; -function createBaseContentHash_Graph() { - return { - hash: new Uint8Array(), - digestAlgorithm: 0, - canonicalizationAlgorithm: 0, - merkleTree: 0 - }; -} -exports.ContentHash_Graph = { - typeUrl: "/regen.data.v1.Graph", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.digestAlgorithm !== 0) { - writer.uint32(16).int32(message.digestAlgorithm); - } - if (message.canonicalizationAlgorithm !== 0) { - writer.uint32(24).int32(message.canonicalizationAlgorithm); - } - if (message.merkleTree !== 0) { - writer.uint32(32).int32(message.merkleTree); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHash_Graph(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.digestAlgorithm = reader.int32(); - break; - case 3: - message.canonicalizationAlgorithm = reader.int32(); - break; - case 4: - message.merkleTree = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHash_Graph(); - message.hash = object.hash ?? new Uint8Array(); - message.digestAlgorithm = object.digestAlgorithm ?? 0; - message.canonicalizationAlgorithm = object.canonicalizationAlgorithm ?? 0; - message.merkleTree = object.merkleTree ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseContentHash_Graph(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.digest_algorithm !== undefined && object.digest_algorithm !== null) { - message.digestAlgorithm = object.digest_algorithm; - } - if (object.canonicalization_algorithm !== undefined && object.canonicalization_algorithm !== null) { - message.canonicalizationAlgorithm = object.canonicalization_algorithm; - } - if (object.merkle_tree !== undefined && object.merkle_tree !== null) { - message.merkleTree = object.merkle_tree; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.digest_algorithm = message.digestAlgorithm === 0 ? undefined : message.digestAlgorithm; - obj.canonicalization_algorithm = message.canonicalizationAlgorithm === 0 ? undefined : message.canonicalizationAlgorithm; - obj.merkle_tree = message.merkleTree === 0 ? undefined : message.merkleTree; - return obj; - }, - fromAminoMsg(object) { - return exports.ContentHash_Graph.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ContentHash_Graph.decode(message.value); - }, - toProto(message) { - return exports.ContentHash_Graph.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.Graph", - value: exports.ContentHash_Graph.encode(message).finish() - }; - } -}; -function createBaseContentHashes() { - return { - contentHashes: [] - }; -} -exports.ContentHashes = { - typeUrl: "/regen.data.v1.ContentHashes", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.contentHashes) { - exports.ContentHash.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContentHashes(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.contentHashes.push(exports.ContentHash.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseContentHashes(); - message.contentHashes = object.contentHashes?.map(e => exports.ContentHash.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseContentHashes(); - message.contentHashes = object.content_hashes?.map(e => exports.ContentHash.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.contentHashes) { - obj.content_hashes = message.contentHashes.map(e => e ? exports.ContentHash.toAmino(e) : undefined); - } - else { - obj.content_hashes = message.contentHashes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ContentHashes.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ContentHashes.decode(message.value); - }, - toProto(message) { - return exports.ContentHashes.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.data.v1.ContentHashes", - value: exports.ContentHashes.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts deleted file mode 100644 index ccef6a18..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/events.d.ts +++ /dev/null @@ -1,319 +0,0 @@ -import { BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreate { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator: string; -} -export interface EventCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate"; - value: Uint8Array; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - curator?: string; -} -export interface EventCreateAminoMsg { - type: "/regen.ecocredit.basket.v1.EventCreate"; - value: EventCreateAmino; -} -/** EventCreate is an event emitted when a basket is created. */ -export interface EventCreateSDKType { - basket_denom: string; - /** @deprecated */ - curator: string; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPut { - /** owner is the owner of the credits put into the basket. */ - owner: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basketDenom: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventPut"; - value: Uint8Array; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutAmino { - /** owner is the owner of the credits put into the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that the credits were added to. */ - basket_denom?: string; - /** - * credits are the credits that were added to the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted from credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventPutAminoMsg { - type: "/regen.ecocredit.basket.v1.EventPut"; - value: EventPutAmino; -} -/** - * EventPut is an event emitted when credits are put into a basket in return for - * basket tokens. - */ -export interface EventPutSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTake { - /** owner is the owner of the credits taken from the basket. */ - owner: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basketDenom: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits: BasketCredit[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount: string; -} -export interface EventTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventTake"; - value: Uint8Array; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeAmino { - /** owner is the owner of the credits taken from the basket. */ - owner?: string; - /** basket_denom is the basket bank denom that credits were taken from. */ - basket_denom?: string; - /** - * credits are the credits that were taken from the basket. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - credits?: BasketCreditAmino[]; - /** - * amount is the integer number of basket tokens converted to credits. - * - * Deprecated (Since Revision 1): This field is still populated and will be - * removed in the next version. - */ - /** @deprecated */ - amount?: string; -} -export interface EventTakeAminoMsg { - type: "/regen.ecocredit.basket.v1.EventTake"; - value: EventTakeAmino; -} -/** - * EventTake is an event emitted when credits are taken from a basket starting - * from the oldest credits first. - */ -export interface EventTakeSDKType { - owner: string; - basket_denom: string; - /** @deprecated */ - credits: BasketCreditSDKType[]; - /** @deprecated */ - amount: string; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCurator { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: Uint8Array; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateCuratorAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateCurator"; - value: EventUpdateCuratorAmino; -} -/** - * EventUpdateCurator is an event emitted when the basket curator is updated. - * - * Since Revision 2 - */ -export interface EventUpdateCuratorSDKType { - denom: string; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteria { - /** denom is the basket denom. */ - denom: string; -} -export interface EventUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: Uint8Array; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaAmino { - /** denom is the basket denom. */ - denom?: string; -} -export interface EventUpdateDateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria"; - value: EventUpdateDateCriteriaAmino; -} -/** - * EventUpdateDateCriteria is an event emitted when the basket date criteria is - * updated. - * - * Since Revision 3 - */ -export interface EventUpdateDateCriteriaSDKType { - denom: string; -} -export declare const EventCreate: { - typeUrl: string; - encode(message: EventCreate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreate; - fromPartial(object: Partial): EventCreate; - fromAmino(object: EventCreateAmino): EventCreate; - toAmino(message: EventCreate): EventCreateAmino; - fromAminoMsg(object: EventCreateAminoMsg): EventCreate; - fromProtoMsg(message: EventCreateProtoMsg): EventCreate; - toProto(message: EventCreate): Uint8Array; - toProtoMsg(message: EventCreate): EventCreateProtoMsg; -}; -export declare const EventPut: { - typeUrl: string; - encode(message: EventPut, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventPut; - fromPartial(object: Partial): EventPut; - fromAmino(object: EventPutAmino): EventPut; - toAmino(message: EventPut): EventPutAmino; - fromAminoMsg(object: EventPutAminoMsg): EventPut; - fromProtoMsg(message: EventPutProtoMsg): EventPut; - toProto(message: EventPut): Uint8Array; - toProtoMsg(message: EventPut): EventPutProtoMsg; -}; -export declare const EventTake: { - typeUrl: string; - encode(message: EventTake, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventTake; - fromPartial(object: Partial): EventTake; - fromAmino(object: EventTakeAmino): EventTake; - toAmino(message: EventTake): EventTakeAmino; - fromAminoMsg(object: EventTakeAminoMsg): EventTake; - fromProtoMsg(message: EventTakeProtoMsg): EventTake; - toProto(message: EventTake): Uint8Array; - toProtoMsg(message: EventTake): EventTakeProtoMsg; -}; -export declare const EventUpdateCurator: { - typeUrl: string; - encode(message: EventUpdateCurator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateCurator; - fromPartial(object: Partial): EventUpdateCurator; - fromAmino(object: EventUpdateCuratorAmino): EventUpdateCurator; - toAmino(message: EventUpdateCurator): EventUpdateCuratorAmino; - fromAminoMsg(object: EventUpdateCuratorAminoMsg): EventUpdateCurator; - fromProtoMsg(message: EventUpdateCuratorProtoMsg): EventUpdateCurator; - toProto(message: EventUpdateCurator): Uint8Array; - toProtoMsg(message: EventUpdateCurator): EventUpdateCuratorProtoMsg; -}; -export declare const EventUpdateDateCriteria: { - typeUrl: string; - encode(message: EventUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateDateCriteria; - fromPartial(object: Partial): EventUpdateDateCriteria; - fromAmino(object: EventUpdateDateCriteriaAmino): EventUpdateDateCriteria; - toAmino(message: EventUpdateDateCriteria): EventUpdateDateCriteriaAmino; - fromAminoMsg(object: EventUpdateDateCriteriaAminoMsg): EventUpdateDateCriteria; - fromProtoMsg(message: EventUpdateDateCriteriaProtoMsg): EventUpdateDateCriteria; - toProto(message: EventUpdateDateCriteria): Uint8Array; - toProtoMsg(message: EventUpdateDateCriteria): EventUpdateDateCriteriaProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/events.js b/packages/api/dist/regen/ecocredit/basket/v1/events.js deleted file mode 100644 index c8848d3a..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/events.js +++ /dev/null @@ -1,411 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventUpdateDateCriteria = exports.EventUpdateCurator = exports.EventTake = exports.EventPut = exports.EventCreate = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const binary_1 = require("../../../../binary"); -function createBaseEventCreate() { - return { - basketDenom: "", - curator: "" - }; -} -exports.EventCreate = { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.curator !== "") { - writer.uint32(18).string(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreate(); - message.basketDenom = object.basketDenom ?? ""; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreate(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreate.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreate.decode(message.value); - }, - toProto(message) { - return exports.EventCreate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventCreate", - value: exports.EventCreate.encode(message).finish() - }; - } -}; -function createBaseEventPut() { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -exports.EventPut = { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.EventPut.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventPut.decode(message.value); - }, - toProto(message) { - return exports.EventPut.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventPut", - value: exports.EventPut.encode(message).finish() - }; - } -}; -function createBaseEventTake() { - return { - owner: "", - basketDenom: "", - credits: [], - amount: "" - }; -} -exports.EventTake = { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); - break; - case 4: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.EventTake.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventTake.decode(message.value); - }, - toProto(message) { - return exports.EventTake.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventTake", - value: exports.EventTake.encode(message).finish() - }; - } -}; -function createBaseEventUpdateCurator() { - return { - denom: "" - }; -} -exports.EventUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateCurator(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateCurator(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateCurator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateCurator.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateCurator", - value: exports.EventUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseEventUpdateDateCriteria() { - return { - denom: "" - }; -} -exports.EventUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateDateCriteria(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateDateCriteria(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateDateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateDateCriteria.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.EventUpdateDateCriteria", - value: exports.EventUpdateDateCriteria.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts deleted file mode 100644 index f2e11167..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.d.ts +++ /dev/null @@ -1,608 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { Basket, BasketAmino, BasketSDKType, BasketBalance, BasketBalanceAmino, BasketBalanceSDKType } from "./state"; -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequest { - /** basket_denom represents the denom of the basket to query. */ - basketDenom: string; -} -export interface QueryBasketRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: Uint8Array; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestAmino { - /** basket_denom represents the denom of the basket to query. */ - basket_denom?: string; -} -export interface QueryBasketRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketRequest"; - value: QueryBasketRequestAmino; -} -/** QueryBasketRequest is the Query/Basket request type. */ -export interface QueryBasketRequestSDKType { - basket_denom: string; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponse { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: Basket; - /** classes are the credit classes that can be deposited in the basket. */ - classes: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basketInfo?: BasketInfo; -} -export interface QueryBasketResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: Uint8Array; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseAmino { - /** - * basket is the queried basket. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * basket_info is available using BasketInfo. - */ - /** @deprecated */ - basket?: BasketAmino; - /** classes are the credit classes that can be deposited in the basket. */ - classes?: string[]; - /** - * basket_info is the queried basket. - * - * Since Revision 1 - */ - basket_info?: BasketInfoAmino; -} -export interface QueryBasketResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketResponse"; - value: QueryBasketResponseAmino; -} -/** QueryBasketResponse is the Query/Basket response type. */ -export interface QueryBasketResponseSDKType { - /** @deprecated */ - basket?: BasketSDKType; - classes: string[]; - basket_info?: BasketInfoSDKType; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketsRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: Uint8Array; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketsRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsRequest"; - value: QueryBasketsRequestAmino; -} -/** QueryBasketsRequest is the Query/Baskets request type. */ -export interface QueryBasketsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponse { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets: Basket[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - basketsInfo: BasketInfo[]; -} -export interface QueryBasketsResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: Uint8Array; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseAmino { - /** - * baskets are the fetched baskets. - * - * Deprecated (Since Revision 1): This field is still populated using Basket - * but will be updated to use BasketInfo in the next version. In the meantime - * baskets_info is available using BasketInfo. - */ - /** @deprecated */ - baskets?: BasketAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * baskets_info are the fetched baskets. - * - * Since Revision 1 - */ - baskets_info?: BasketInfoAmino[]; -} -export interface QueryBasketsResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketsResponse"; - value: QueryBasketsResponseAmino; -} -/** QueryBasketsResponse is the Query/Baskets response type. */ -export interface QueryBasketsResponseSDKType { - /** @deprecated */ - baskets: BasketSDKType[]; - pagination?: PageResponseSDKType; - baskets_info: BasketInfoSDKType[]; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBasketBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: Uint8Array; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBasketBalancesRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest"; - value: QueryBasketBalancesRequestAmino; -} -/** QueryBasketBalancesRequest is the Query/BasketBalances request type. */ -export interface QueryBasketBalancesRequestSDKType { - basket_denom: string; - pagination?: PageRequestSDKType; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponse { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances: BasketBalance[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balancesInfo: BasketBalanceInfo[]; -} -export interface QueryBasketBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: Uint8Array; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseAmino { - /** - * balances is a list of credit balances in the basket. - * - * Deprecated (Since Revision 1): This field is still populated using - * BasketBalance but will be updated to use BasketBalanceInfo in the next - * version. In the meantime baskets_info is available using BasketBalanceInfo. - */ - /** @deprecated */ - balances?: BasketBalanceAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; - /** - * balances_info is a list of credit balances in the basket. - * - * Since Revision 1 - */ - balances_info?: BasketBalanceInfoAmino[]; -} -export interface QueryBasketBalancesResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse"; - value: QueryBasketBalancesResponseAmino; -} -/** QueryBasketBalancesResponse is the Query/BasketBalances response type. */ -export interface QueryBasketBalancesResponseSDKType { - /** @deprecated */ - balances: BasketBalanceSDKType[]; - pagination?: PageResponseSDKType; - balances_info: BasketBalanceInfoSDKType[]; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequest { - /** basket_denom is the denom of the basket. */ - basketDenom: string; - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; -} -export interface QueryBasketBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: Uint8Array; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestAmino { - /** basket_denom is the denom of the basket. */ - basket_denom?: string; - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; -} -export interface QueryBasketBalanceRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest"; - value: QueryBasketBalanceRequestAmino; -} -/** QueryBasketBalanceRequest is the Query/BasketBalance request type. */ -export interface QueryBasketBalanceRequestSDKType { - basket_denom: string; - batch_denom: string; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponse { - /** balance is the amount of the queried credit batch in the basket. */ - balance: string; -} -export interface QueryBasketBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: Uint8Array; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseAmino { - /** balance is the amount of the queried credit batch in the basket. */ - balance?: string; -} -export interface QueryBasketBalanceResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse"; - value: QueryBasketBalanceResponseAmino; -} -/** QueryBasketBalanceResponse is the Query/BasketBalance response type. */ -export interface QueryBasketBalanceResponseSDKType { - balance: string; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfo { - /** basket_denom is the basket bank denom. */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; -} -export interface BasketInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo"; - value: Uint8Array; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoAmino { - /** basket_denom is the basket bank denom. */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** exponent is the exponent for converting credits to/from basket tokens. */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; -} -export interface BasketInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketInfo"; - value: BasketInfoAmino; -} -/** BasketInfo is the human-readable basket information. */ -export interface BasketInfoSDKType { - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - exponent: number; - curator: string; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfo { - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; -} -export interface BasketBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: Uint8Array; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoAmino { - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; -} -export interface BasketBalanceInfoAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalanceInfo"; - value: BasketBalanceInfoAmino; -} -/** BasketBalanceInfo is the human-readable basket balance information. */ -export interface BasketBalanceInfoSDKType { - batch_denom: string; - balance: string; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequest { -} -export interface QueryBasketFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: Uint8Array; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestAmino { -} -export interface QueryBasketFeeRequestAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest"; - value: QueryBasketFeeRequestAmino; -} -/** - * QueryBasketFeeRequest is the Query/BasketFee request type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeRequestSDKType { -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponse { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface QueryBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: Uint8Array; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface QueryBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse"; - value: QueryBasketFeeResponseAmino; -} -/** - * QueryBasketFeeResponse is the Query/BasketFee response type. - * - * Since Revision 2 - */ -export interface QueryBasketFeeResponseSDKType { - fee?: CoinSDKType; -} -export declare const QueryBasketRequest: { - typeUrl: string; - encode(message: QueryBasketRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketRequest; - fromPartial(object: Partial): QueryBasketRequest; - fromAmino(object: QueryBasketRequestAmino): QueryBasketRequest; - toAmino(message: QueryBasketRequest): QueryBasketRequestAmino; - fromAminoMsg(object: QueryBasketRequestAminoMsg): QueryBasketRequest; - fromProtoMsg(message: QueryBasketRequestProtoMsg): QueryBasketRequest; - toProto(message: QueryBasketRequest): Uint8Array; - toProtoMsg(message: QueryBasketRequest): QueryBasketRequestProtoMsg; -}; -export declare const QueryBasketResponse: { - typeUrl: string; - encode(message: QueryBasketResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketResponse; - fromPartial(object: Partial): QueryBasketResponse; - fromAmino(object: QueryBasketResponseAmino): QueryBasketResponse; - toAmino(message: QueryBasketResponse): QueryBasketResponseAmino; - fromAminoMsg(object: QueryBasketResponseAminoMsg): QueryBasketResponse; - fromProtoMsg(message: QueryBasketResponseProtoMsg): QueryBasketResponse; - toProto(message: QueryBasketResponse): Uint8Array; - toProtoMsg(message: QueryBasketResponse): QueryBasketResponseProtoMsg; -}; -export declare const QueryBasketsRequest: { - typeUrl: string; - encode(message: QueryBasketsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsRequest; - fromPartial(object: Partial): QueryBasketsRequest; - fromAmino(object: QueryBasketsRequestAmino): QueryBasketsRequest; - toAmino(message: QueryBasketsRequest): QueryBasketsRequestAmino; - fromAminoMsg(object: QueryBasketsRequestAminoMsg): QueryBasketsRequest; - fromProtoMsg(message: QueryBasketsRequestProtoMsg): QueryBasketsRequest; - toProto(message: QueryBasketsRequest): Uint8Array; - toProtoMsg(message: QueryBasketsRequest): QueryBasketsRequestProtoMsg; -}; -export declare const QueryBasketsResponse: { - typeUrl: string; - encode(message: QueryBasketsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketsResponse; - fromPartial(object: Partial): QueryBasketsResponse; - fromAmino(object: QueryBasketsResponseAmino): QueryBasketsResponse; - toAmino(message: QueryBasketsResponse): QueryBasketsResponseAmino; - fromAminoMsg(object: QueryBasketsResponseAminoMsg): QueryBasketsResponse; - fromProtoMsg(message: QueryBasketsResponseProtoMsg): QueryBasketsResponse; - toProto(message: QueryBasketsResponse): Uint8Array; - toProtoMsg(message: QueryBasketsResponse): QueryBasketsResponseProtoMsg; -}; -export declare const QueryBasketBalancesRequest: { - typeUrl: string; - encode(message: QueryBasketBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesRequest; - fromPartial(object: Partial): QueryBasketBalancesRequest; - fromAmino(object: QueryBasketBalancesRequestAmino): QueryBasketBalancesRequest; - toAmino(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestAmino; - fromAminoMsg(object: QueryBasketBalancesRequestAminoMsg): QueryBasketBalancesRequest; - fromProtoMsg(message: QueryBasketBalancesRequestProtoMsg): QueryBasketBalancesRequest; - toProto(message: QueryBasketBalancesRequest): Uint8Array; - toProtoMsg(message: QueryBasketBalancesRequest): QueryBasketBalancesRequestProtoMsg; -}; -export declare const QueryBasketBalancesResponse: { - typeUrl: string; - encode(message: QueryBasketBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalancesResponse; - fromPartial(object: Partial): QueryBasketBalancesResponse; - fromAmino(object: QueryBasketBalancesResponseAmino): QueryBasketBalancesResponse; - toAmino(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseAmino; - fromAminoMsg(object: QueryBasketBalancesResponseAminoMsg): QueryBasketBalancesResponse; - fromProtoMsg(message: QueryBasketBalancesResponseProtoMsg): QueryBasketBalancesResponse; - toProto(message: QueryBasketBalancesResponse): Uint8Array; - toProtoMsg(message: QueryBasketBalancesResponse): QueryBasketBalancesResponseProtoMsg; -}; -export declare const QueryBasketBalanceRequest: { - typeUrl: string; - encode(message: QueryBasketBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceRequest; - fromPartial(object: Partial): QueryBasketBalanceRequest; - fromAmino(object: QueryBasketBalanceRequestAmino): QueryBasketBalanceRequest; - toAmino(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestAmino; - fromAminoMsg(object: QueryBasketBalanceRequestAminoMsg): QueryBasketBalanceRequest; - fromProtoMsg(message: QueryBasketBalanceRequestProtoMsg): QueryBasketBalanceRequest; - toProto(message: QueryBasketBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBasketBalanceRequest): QueryBasketBalanceRequestProtoMsg; -}; -export declare const QueryBasketBalanceResponse: { - typeUrl: string; - encode(message: QueryBasketBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketBalanceResponse; - fromPartial(object: Partial): QueryBasketBalanceResponse; - fromAmino(object: QueryBasketBalanceResponseAmino): QueryBasketBalanceResponse; - toAmino(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseAmino; - fromAminoMsg(object: QueryBasketBalanceResponseAminoMsg): QueryBasketBalanceResponse; - fromProtoMsg(message: QueryBasketBalanceResponseProtoMsg): QueryBasketBalanceResponse; - toProto(message: QueryBasketBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBasketBalanceResponse): QueryBasketBalanceResponseProtoMsg; -}; -export declare const BasketInfo: { - typeUrl: string; - encode(message: BasketInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketInfo; - fromPartial(object: Partial): BasketInfo; - fromAmino(object: BasketInfoAmino): BasketInfo; - toAmino(message: BasketInfo): BasketInfoAmino; - fromAminoMsg(object: BasketInfoAminoMsg): BasketInfo; - fromProtoMsg(message: BasketInfoProtoMsg): BasketInfo; - toProto(message: BasketInfo): Uint8Array; - toProtoMsg(message: BasketInfo): BasketInfoProtoMsg; -}; -export declare const BasketBalanceInfo: { - typeUrl: string; - encode(message: BasketBalanceInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalanceInfo; - fromPartial(object: Partial): BasketBalanceInfo; - fromAmino(object: BasketBalanceInfoAmino): BasketBalanceInfo; - toAmino(message: BasketBalanceInfo): BasketBalanceInfoAmino; - fromAminoMsg(object: BasketBalanceInfoAminoMsg): BasketBalanceInfo; - fromProtoMsg(message: BasketBalanceInfoProtoMsg): BasketBalanceInfo; - toProto(message: BasketBalanceInfo): Uint8Array; - toProtoMsg(message: BasketBalanceInfo): BasketBalanceInfoProtoMsg; -}; -export declare const QueryBasketFeeRequest: { - typeUrl: string; - encode(_: QueryBasketFeeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeRequest; - fromPartial(_: Partial): QueryBasketFeeRequest; - fromAmino(_: QueryBasketFeeRequestAmino): QueryBasketFeeRequest; - toAmino(_: QueryBasketFeeRequest): QueryBasketFeeRequestAmino; - fromAminoMsg(object: QueryBasketFeeRequestAminoMsg): QueryBasketFeeRequest; - fromProtoMsg(message: QueryBasketFeeRequestProtoMsg): QueryBasketFeeRequest; - toProto(message: QueryBasketFeeRequest): Uint8Array; - toProtoMsg(message: QueryBasketFeeRequest): QueryBasketFeeRequestProtoMsg; -}; -export declare const QueryBasketFeeResponse: { - typeUrl: string; - encode(message: QueryBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBasketFeeResponse; - fromPartial(object: Partial): QueryBasketFeeResponse; - fromAmino(object: QueryBasketFeeResponseAmino): QueryBasketFeeResponse; - toAmino(message: QueryBasketFeeResponse): QueryBasketFeeResponseAmino; - fromAminoMsg(object: QueryBasketFeeResponseAminoMsg): QueryBasketFeeResponse; - fromProtoMsg(message: QueryBasketFeeResponseProtoMsg): QueryBasketFeeResponse; - toProto(message: QueryBasketFeeResponse): Uint8Array; - toProtoMsg(message: QueryBasketFeeResponse): QueryBasketFeeResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.js b/packages/api/dist/regen/ecocredit/basket/v1/query.js deleted file mode 100644 index 1dfbe3a7..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.js +++ /dev/null @@ -1,947 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryBasketFeeResponse = exports.QueryBasketFeeRequest = exports.BasketBalanceInfo = exports.BasketInfo = exports.QueryBasketBalanceResponse = exports.QueryBasketBalanceRequest = exports.QueryBasketBalancesResponse = exports.QueryBasketBalancesRequest = exports.QueryBasketsResponse = exports.QueryBasketsRequest = exports.QueryBasketResponse = exports.QueryBasketRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); -const state_1 = require("./state"); -const types_1 = require("./types"); -const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../../binary"); -function createBaseQueryBasketRequest() { - return { - basketDenom: "" - }; -} -exports.QueryBasketRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketRequest(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketRequest", - value: exports.QueryBasketRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketResponse() { - return { - basket: undefined, - classes: [], - basketInfo: undefined - }; -} -exports.QueryBasketResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basket !== undefined) { - state_1.Basket.encode(message.basket, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classes) { - writer.uint32(18).string(v); - } - if (message.basketInfo !== undefined) { - exports.BasketInfo.encode(message.basketInfo, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basket = state_1.Basket.decode(reader, reader.uint32()); - break; - case 2: - message.classes.push(reader.string()); - break; - case 3: - message.basketInfo = exports.BasketInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketResponse(); - message.basket = object.basket !== undefined && object.basket !== null ? state_1.Basket.fromPartial(object.basket) : undefined; - message.classes = object.classes?.map(e => e) || []; - message.basketInfo = object.basketInfo !== undefined && object.basketInfo !== null ? exports.BasketInfo.fromPartial(object.basketInfo) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketResponse(); - if (object.basket !== undefined && object.basket !== null) { - message.basket = state_1.Basket.fromAmino(object.basket); - } - message.classes = object.classes?.map(e => e) || []; - if (object.basket_info !== undefined && object.basket_info !== null) { - message.basketInfo = exports.BasketInfo.fromAmino(object.basket_info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket = message.basket ? state_1.Basket.toAmino(message.basket) : undefined; - if (message.classes) { - obj.classes = message.classes.map(e => e); - } - else { - obj.classes = message.classes; - } - obj.basket_info = message.basketInfo ? exports.BasketInfo.toAmino(message.basketInfo) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketResponse", - value: exports.QueryBasketResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsRequest() { - return { - pagination: undefined - }; -} -exports.QueryBasketsRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsRequest", - value: exports.QueryBasketsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketsResponse() { - return { - baskets: [], - pagination: undefined, - basketsInfo: [] - }; -} -exports.QueryBasketsResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.baskets) { - state_1.Basket.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.basketsInfo) { - exports.BasketInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baskets.push(state_1.Basket.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.basketsInfo.push(exports.BasketInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => state_1.Basket.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - message.basketsInfo = object.basketsInfo?.map(e => exports.BasketInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketsResponse(); - message.baskets = object.baskets?.map(e => state_1.Basket.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - message.basketsInfo = object.baskets_info?.map(e => exports.BasketInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.baskets) { - obj.baskets = message.baskets.map(e => e ? state_1.Basket.toAmino(e) : undefined); - } - else { - obj.baskets = message.baskets; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - if (message.basketsInfo) { - obj.baskets_info = message.basketsInfo.map(e => e ? exports.BasketInfo.toAmino(e) : undefined); - } - else { - obj.baskets_info = message.basketsInfo; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketsResponse", - value: exports.QueryBasketsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesRequest() { - return { - basketDenom: "", - pagination: undefined - }; -} -exports.QueryBasketBalancesRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalancesRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalancesRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketBalancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesRequest", - value: exports.QueryBasketBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalancesResponse() { - return { - balances: [], - pagination: undefined, - balancesInfo: [] - }; -} -exports.QueryBasketBalancesResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - state_1.BasketBalance.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.balancesInfo) { - exports.BasketBalanceInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(state_1.BasketBalance.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.balancesInfo.push(exports.BasketBalanceInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => state_1.BasketBalance.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - message.balancesInfo = object.balancesInfo?.map(e => exports.BasketBalanceInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalancesResponse(); - message.balances = object.balances?.map(e => state_1.BasketBalance.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - message.balancesInfo = object.balances_info?.map(e => exports.BasketBalanceInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? state_1.BasketBalance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - if (message.balancesInfo) { - obj.balances_info = message.balancesInfo.map(e => e ? exports.BasketBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances_info = message.balancesInfo; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketBalancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalancesResponse", - value: exports.QueryBasketBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceRequest() { - return { - basketDenom: "", - batchDenom: "" - }; -} -exports.QueryBasketBalanceRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalanceRequest(); - message.basketDenom = object.basketDenom ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalanceRequest(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketBalanceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceRequest", - value: exports.QueryBasketBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketBalanceResponse() { - return { - balance: "" - }; -} -exports.QueryBasketBalanceResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.balance !== "") { - writer.uint32(10).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketBalanceResponse(); - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketBalanceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketBalanceResponse", - value: exports.QueryBasketBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseBasketInfo() { - return { - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: "" - }; -} -exports.BasketInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(24).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(42).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(48).uint32(message.exponent); - } - if (message.curator !== "") { - writer.uint32(58).string(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.disableAutoRetire = reader.bool(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); - break; - case 6: - message.exponent = reader.uint32(); - break; - case 7: - message.curator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketInfo(); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketInfo(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator === "" ? undefined : message.curator; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketInfo.decode(message.value); - }, - toProto(message) { - return exports.BasketInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketInfo", - value: exports.BasketInfo.encode(message).finish() - }; - } -}; -function createBaseBasketBalanceInfo() { - return { - batchDenom: "", - balance: "" - }; -} -exports.BasketBalanceInfo = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(18).string(message.balance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.balance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketBalanceInfo(); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketBalanceInfo(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketBalanceInfo.decode(message.value); - }, - toProto(message) { - return exports.BasketBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalanceInfo", - value: exports.BasketBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeRequest() { - return {}; -} -exports.QueryBasketFeeRequest = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryBasketFeeRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketFeeRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketFeeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeRequest", - value: exports.QueryBasketFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBasketFeeResponse() { - return { - fee: undefined - }; -} -exports.QueryBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBasketFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBasketFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBasketFeeResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.QueryBasketFeeResponse", - value: exports.QueryBasketFeeResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts deleted file mode 100644 index 15ab387e..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryBasketRequest, QueryBasketResponseSDKType, QueryBasketsRequest, QueryBasketsResponseSDKType, QueryBasketBalancesRequest, QueryBasketBalancesResponseSDKType, QueryBasketBalanceRequest, QueryBasketBalanceResponseSDKType, QueryBasketFeeRequest, QueryBasketFeeResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - basket(params: QueryBasketRequest): Promise; - baskets(params?: QueryBasketsRequest): Promise; - basketBalances(params: QueryBasketBalancesRequest): Promise; - basketBalance(params: QueryBasketBalanceRequest): Promise; - basketFee(_params?: QueryBasketFeeRequest): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js deleted file mode 100644 index f587c1d4..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.lcd.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - /* Basket queries one basket by denom. */ - async basket(params) { - const endpoint = `regen/ecocredit/basket/v1/basket/${params.basketDenom}`; - return await this.req.get(endpoint); - } - /* Baskets lists all baskets in the ecocredit module. */ - async baskets(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/baskets`; - return await this.req.get(endpoint, options); - } - /* BasketBalances lists the balance of each credit batch in the basket. */ - async basketBalances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/basket/v1/basket-balances/${params.basketDenom}`; - return await this.req.get(endpoint, options); - } - /* BasketBalance queries the balance of a specific credit batch in the basket. */ - async basketBalance(params) { - const endpoint = `regen/ecocredit/basket/v1/basket-balance/${params.basketDenom}/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* BasketFee returns the basket creation fee. If not set, a basket creation - fee is not required. - - Since Revision 2 */ - async basketFee(_params = {}) { - const endpoint = `regen/ecocredit/basket/v1/basket-fee`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts deleted file mode 100644 index 9087afa0..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBasketRequest, QueryBasketResponse, QueryBasketsRequest, QueryBasketsResponse, QueryBasketBalancesRequest, QueryBasketBalancesResponse, QueryBasketBalanceRequest, QueryBasketBalanceResponse, QueryBasketFeeRequest, QueryBasketFeeResponse } from "./query"; -/** Msg is the regen.ecocredit.basket.v1 Query service. */ -export interface Query { - /** Basket queries one basket by denom. */ - basket(request: QueryBasketRequest): Promise; - /** Baskets lists all baskets in the ecocredit module. */ - baskets(request?: QueryBasketsRequest): Promise; - /** BasketBalances lists the balance of each credit batch in the basket. */ - basketBalances(request: QueryBasketBalancesRequest): Promise; - /** BasketBalance queries the balance of a specific credit batch in the basket. */ - basketBalance(request: QueryBasketBalanceRequest): Promise; - /** - * BasketFee returns the basket creation fee. If not set, a basket creation - * fee is not required. - * - * Since Revision 2 - */ - basketFee(request?: QueryBasketFeeRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - basket(request: QueryBasketRequest): Promise; - baskets(request?: QueryBasketsRequest): Promise; - basketBalances(request: QueryBasketBalancesRequest): Promise; - basketBalance(request: QueryBasketBalanceRequest): Promise; - basketFee(request?: QueryBasketFeeRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - basket(request: QueryBasketRequest): Promise; - baskets(request?: QueryBasketsRequest): Promise; - basketBalances(request: QueryBasketBalancesRequest): Promise; - basketBalance(request: QueryBasketBalanceRequest): Promise; - basketFee(request?: QueryBasketFeeRequest): Promise; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js deleted file mode 100644 index 4ae8b562..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/query.rpc.Query.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.basket = this.basket.bind(this); - this.baskets = this.baskets.bind(this); - this.basketBalances = this.basketBalances.bind(this); - this.basketBalance = this.basketBalance.bind(this); - this.basketFee = this.basketFee.bind(this); - } - basket(request) { - const data = query_1.QueryBasketRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Basket", data); - return promise.then(data => query_1.QueryBasketResponse.decode(new binary_1.BinaryReader(data))); - } - baskets(request = { - pagination: undefined - }) { - const data = query_1.QueryBasketsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "Baskets", data); - return promise.then(data => query_1.QueryBasketsResponse.decode(new binary_1.BinaryReader(data))); - } - basketBalances(request) { - const data = query_1.QueryBasketBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalances", data); - return promise.then(data => query_1.QueryBasketBalancesResponse.decode(new binary_1.BinaryReader(data))); - } - basketBalance(request) { - const data = query_1.QueryBasketBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketBalance", data); - return promise.then(data => query_1.QueryBasketBalanceResponse.decode(new binary_1.BinaryReader(data))); - } - basketFee(request = {}) { - const data = query_1.QueryBasketFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Query", "BasketFee", data); - return promise.then(data => query_1.QueryBasketFeeResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - basket(request) { - return queryService.basket(request); - }, - baskets(request) { - return queryService.baskets(request); - }, - basketBalances(request) { - return queryService.basketBalances(request); - }, - basketBalance(request) { - return queryService.basketBalance(request); - }, - basketFee(request) { - return queryService.basketFee(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts deleted file mode 100644 index 4b0728de..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/state.d.ts +++ /dev/null @@ -1,308 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** Basket represents a basket in state. */ -export interface Basket { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id: bigint; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basketDenom: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - dateCriteria?: DateCriteria; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator: Uint8Array; -} -export interface BasketProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.Basket"; - value: Uint8Array; -} -/** Basket represents a basket in state. */ -export interface BasketAmino { - /** - * id is the uint64 ID of the basket. It is used internally for reducing - * storage space. - */ - id?: string; - /** - * basket_denom is the basket bank denom formed from name and credit type with - * the format `eco..` where prefix is the - * prefix of the bank denom exponent, a standard SI unit derived from credit - * type precision, and mapped as follows: - * 0 - no prefix - * 1 - d (deci) - * 2 - c (centi) - * 3 - m (milli) - * 6 - u (micro) - * 9 - n (nano) - * 12 - p (pico) - * 15 - f (femto) - * 18 - a (atto) - * 21 - z (zepto) - * 24 - y (yocto) - */ - basket_denom?: string; - /** - * name is the unique name of the basket specified in MsgCreate. Basket - * names must be unique across all credit types and choices of exponent - * above and beyond the uniqueness constraint on basket_denom. - */ - name?: string; - /** - * disable_auto_retire indicates whether or not the credits will be retired - * upon withdraw from the basket. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** date_criteria is the date criteria for batches admitted to the basket. */ - date_criteria?: DateCriteriaAmino; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when converting credits to/from basket tokens. This - * field will be set to the value of credit type precision until removed. - */ - /** @deprecated */ - exponent?: number; - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - * - * Since Revision 1 - */ - curator?: string; -} -export interface BasketAminoMsg { - type: "/regen.ecocredit.basket.v1.Basket"; - value: BasketAmino; -} -/** Basket represents a basket in state. */ -export interface BasketSDKType { - id: bigint; - basket_denom: string; - name: string; - disable_auto_retire: boolean; - credit_type_abbrev: string; - date_criteria?: DateCriteriaSDKType; - /** @deprecated */ - exponent: number; - curator: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClass { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - classId: string; -} -export interface BasketClassProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass"; - value: Uint8Array; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** - * class_id is the id of the credit class that is allowed to be deposited in - * the basket - */ - class_id?: string; -} -export interface BasketClassAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketClass"; - value: BasketClassAmino; -} -/** BasketClass describes a credit class that can be deposited in a basket. */ -export interface BasketClassSDKType { - basket_id: bigint; - class_id: string; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalance { - /** basket_id is the ID of the basket */ - basketId: bigint; - /** batch_denom is the denom of the credit batch */ - batchDenom: string; - /** balance is the amount of ecocredits held in the basket */ - balance: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batchStartDate?: Date; -} -export interface BasketBalanceProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance"; - value: Uint8Array; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceAmino { - /** basket_id is the ID of the basket */ - basket_id?: string; - /** batch_denom is the denom of the credit batch */ - batch_denom?: string; - /** balance is the amount of ecocredits held in the basket */ - balance?: string; - /** - * batch_start_date is the start date of the batch. This field is used - * to create an index which is used to remove the oldest credits first. - */ - batch_start_date?: string; -} -export interface BasketBalanceAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketBalance"; - value: BasketBalanceAmino; -} -/** BasketBalance stores the amount of credits from a batch in a basket */ -export interface BasketBalanceSDKType { - basket_id: bigint; - batch_denom: string; - balance: string; - batch_start_date?: Date; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFee { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: Coin; -} -export interface BasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee"; - value: Uint8Array; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeAmino { - /** - * fee is the basket creation fee. If not set, a basket creation fee is not - * required. - */ - fee?: CoinAmino; -} -export interface BasketFeeAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketFee"; - value: BasketFeeAmino; -} -/** - * BasketFee is the basket creation fee. If not set, a basket creation fee is - * not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface BasketFeeSDKType { - fee?: CoinSDKType; -} -export declare const Basket: { - typeUrl: string; - encode(message: Basket, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Basket; - fromPartial(object: Partial): Basket; - fromAmino(object: BasketAmino): Basket; - toAmino(message: Basket): BasketAmino; - fromAminoMsg(object: BasketAminoMsg): Basket; - fromProtoMsg(message: BasketProtoMsg): Basket; - toProto(message: Basket): Uint8Array; - toProtoMsg(message: Basket): BasketProtoMsg; -}; -export declare const BasketClass: { - typeUrl: string; - encode(message: BasketClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketClass; - fromPartial(object: Partial): BasketClass; - fromAmino(object: BasketClassAmino): BasketClass; - toAmino(message: BasketClass): BasketClassAmino; - fromAminoMsg(object: BasketClassAminoMsg): BasketClass; - fromProtoMsg(message: BasketClassProtoMsg): BasketClass; - toProto(message: BasketClass): Uint8Array; - toProtoMsg(message: BasketClass): BasketClassProtoMsg; -}; -export declare const BasketBalance: { - typeUrl: string; - encode(message: BasketBalance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketBalance; - fromPartial(object: Partial): BasketBalance; - fromAmino(object: BasketBalanceAmino): BasketBalance; - toAmino(message: BasketBalance): BasketBalanceAmino; - fromAminoMsg(object: BasketBalanceAminoMsg): BasketBalance; - fromProtoMsg(message: BasketBalanceProtoMsg): BasketBalance; - toProto(message: BasketBalance): Uint8Array; - toProtoMsg(message: BasketBalance): BasketBalanceProtoMsg; -}; -export declare const BasketFee: { - typeUrl: string; - encode(message: BasketFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketFee; - fromPartial(object: Partial): BasketFee; - fromAmino(object: BasketFeeAmino): BasketFee; - toAmino(message: BasketFee): BasketFeeAmino; - fromAminoMsg(object: BasketFeeAminoMsg): BasketFee; - fromProtoMsg(message: BasketFeeProtoMsg): BasketFee; - toProto(message: BasketFee): Uint8Array; - toProtoMsg(message: BasketFee): BasketFeeProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/state.js b/packages/api/dist/regen/ecocredit/basket/v1/state.js deleted file mode 100644 index c4ff3e07..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/state.js +++ /dev/null @@ -1,393 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BasketFee = exports.BasketBalance = exports.BasketClass = exports.Basket = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseBasket() { - return { - id: BigInt(0), - basketDenom: "", - name: "", - disableAutoRetire: false, - creditTypeAbbrev: "", - dateCriteria: undefined, - exponent: 0, - curator: new Uint8Array() - }; -} -exports.Basket = { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.name !== "") { - writer.uint32(26).string(message.name); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - if (message.dateCriteria !== undefined) { - types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(50).fork()).ldelim(); - } - if (message.exponent !== 0) { - writer.uint32(56).uint32(message.exponent); - } - if (message.curator.length !== 0) { - writer.uint32(66).bytes(message.curator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - case 6: - message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); - break; - case 7: - message.exponent = reader.uint32(); - break; - case 8: - message.curator = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.basketDenom = object.basketDenom ?? ""; - message.name = object.name ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.exponent = object.exponent ?? 0; - message.curator = object.curator ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseBasket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.curator !== undefined && object.curator !== null) { - message.curator = (0, helpers_1.bytesFromBase64)(object.curator); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.name = message.name === "" ? undefined : message.name; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.curator = message.curator ? (0, helpers_1.base64FromBytes)(message.curator) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Basket.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Basket.decode(message.value); - }, - toProto(message) { - return exports.Basket.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.Basket", - value: exports.Basket.encode(message).finish() - }; - } -}; -function createBaseBasketClass() { - return { - basketId: BigInt(0), - classId: "" - }; -} -exports.BasketClass = { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketClass(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketClass(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketClass.decode(message.value); - }, - toProto(message) { - return exports.BasketClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketClass", - value: exports.BasketClass.encode(message).finish() - }; - } -}; -function createBaseBasketBalance() { - return { - basketId: BigInt(0), - batchDenom: "", - balance: "", - batchStartDate: undefined - }; -} -exports.BasketBalance = { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketId !== BigInt(0)) { - writer.uint32(8).uint64(message.basketId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.balance !== "") { - writer.uint32(26).string(message.balance); - } - if (message.batchStartDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.batchStartDate), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketId = reader.uint64(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.balance = reader.string(); - break; - case 4: - message.batchStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketBalance(); - message.basketId = object.basketId !== undefined && object.basketId !== null ? BigInt(object.basketId.toString()) : BigInt(0); - message.batchDenom = object.batchDenom ?? ""; - message.balance = object.balance ?? ""; - message.batchStartDate = object.batchStartDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasketBalance(); - if (object.basket_id !== undefined && object.basket_id !== null) { - message.basketId = BigInt(object.basket_id); - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.balance !== undefined && object.balance !== null) { - message.balance = object.balance; - } - if (object.batch_start_date !== undefined && object.batch_start_date !== null) { - message.batchStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.batch_start_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_id = message.basketId !== BigInt(0) ? message.basketId.toString() : undefined; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.balance = message.balance === "" ? undefined : message.balance; - obj.batch_start_date = message.batchStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.batchStartDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketBalance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketBalance.decode(message.value); - }, - toProto(message) { - return exports.BasketBalance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketBalance", - value: exports.BasketBalance.encode(message).finish() - }; - } -}; -function createBaseBasketFee() { - return { - fee: undefined - }; -} -exports.BasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketFee(); - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBasketFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketFee.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketFee.decode(message.value); - }, - toProto(message) { - return exports.BasketFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketFee", - value: exports.BasketFee.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts deleted file mode 100644 index b96583d1..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: string; - toAmino: (message: MsgCreate) => import("./tx").MsgCreateAmino; - fromAmino: (object: import("./tx").MsgCreateAmino) => MsgCreate; - }; - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: string; - toAmino: (message: MsgPut) => import("./tx").MsgPutAmino; - fromAmino: (object: import("./tx").MsgPutAmino) => MsgPut; - }; - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: string; - toAmino: (message: MsgTake) => import("./tx").MsgTakeAmino; - fromAmino: (object: import("./tx").MsgTakeAmino) => MsgTake; - }; - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: string; - toAmino: (message: MsgUpdateBasketFee) => import("./tx").MsgUpdateBasketFeeAmino; - fromAmino: (object: import("./tx").MsgUpdateBasketFeeAmino) => MsgUpdateBasketFee; - }; - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: string; - toAmino: (message: MsgUpdateCurator) => import("./tx").MsgUpdateCuratorAmino; - fromAmino: (object: import("./tx").MsgUpdateCuratorAmino) => MsgUpdateCurator; - }; - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: string; - toAmino: (message: MsgUpdateDateCriteria) => import("./tx").MsgUpdateDateCriteriaAmino; - fromAmino: (object: import("./tx").MsgUpdateDateCriteriaAmino) => MsgUpdateDateCriteria; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js deleted file mode 100644 index d4fb2571..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.amino.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.ecocredit.basket.v1.MsgCreate": { - aminoType: "regen.basket/MsgCreate", - toAmino: tx_1.MsgCreate.toAmino, - fromAmino: tx_1.MsgCreate.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgPut": { - aminoType: "regen.basket/MsgPut", - toAmino: tx_1.MsgPut.toAmino, - fromAmino: tx_1.MsgPut.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgTake": { - aminoType: "regen.basket/MsgTake", - toAmino: tx_1.MsgTake.toAmino, - fromAmino: tx_1.MsgTake.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateBasketFee": { - aminoType: "regen.basket/MsgUpdateBasketFee", - toAmino: tx_1.MsgUpdateBasketFee.toAmino, - fromAmino: tx_1.MsgUpdateBasketFee.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateCurator": { - aminoType: "regen.basket/MsgUpdateCurator", - toAmino: tx_1.MsgUpdateCurator.toAmino, - fromAmino: tx_1.MsgUpdateCurator.fromAmino - }, - "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria": { - aminoType: "regen.basket/MsgUpdateDateCriteria", - toAmino: tx_1.MsgUpdateDateCriteria.toAmino, - fromAmino: tx_1.MsgUpdateDateCriteria.fromAmino - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts deleted file mode 100644 index c0c88568..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.d.ts +++ /dev/null @@ -1,741 +0,0 @@ -import { DateCriteria, DateCriteriaAmino, DateCriteriaSDKType, BasketCredit, BasketCreditAmino, BasketCreditSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreate { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disableAutoRetire: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - creditTypeAbbrev: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowedClasses: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - dateCriteria?: DateCriteria; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee: Coin[]; -} -export interface MsgCreateProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate"; - value: Uint8Array; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateAmino { - /** - * curator is the address of the basket curator who is able to change certain - * basket settings. - */ - curator?: string; - /** - * name will be used to together with prefix to create a bank denom for this - * basket token. It can be between 3-8 alphanumeric characters, with the - * first character being alphabetic. - * - * The bank denom will be formed from name and credit type with the format - * `eco..` where prefix is the prefix of - * a standard SI unit derived from credit type precision. - */ - name?: string; - /** - * description is a human-readable description of the basket denom that should - * be at most 256 characters. - */ - description?: string; - /** - * Deprecated (Since Revision 1): This field is no longer used and will be - * removed in the next version. The value of credit type precision is always - * used as the exponent when determining the prefix for basket denom, defining - * bank denom metadata, and converting credits to/from basket tokens. - */ - /** @deprecated */ - exponent?: number; - /** - * disable_auto_retire allows auto-retirement to be disabled. - * The credits will be auto-retired if disable_auto_retire is - * false unless the credits were previously put into the basket by the - * address picking them from the basket, in which case they will remain - * tradable. - */ - disable_auto_retire?: boolean; - /** - * credit_type_abbrev is the abbreviation of the credit type this basket is - * able to hold. - */ - credit_type_abbrev?: string; - /** allowed_classes are the credit classes allowed to be put in the basket */ - allowed_classes?: string[]; - /** - * date_criteria is the date criteria for batches admitted to the basket. - * At most, only one of the date criteria fields can be set. - */ - date_criteria?: DateCriteriaAmino; - /** - * fee is the basket creation fee. A fee is not required if no fee exists - * in the basket fee parameter. The fee must be greater than or equal to the - * fee param. The curator will be charged the amount specified in the fee - * parameter, even if a greater amount is provided. - * - * Note (Since Revision 1): Although this field supports a list of fees, the - * basket creator must provide no more than one fee (i.e. one Coin in a list - * of Coins). Providing more than one fee will fail basic message validation. - * This field will be updated to a single fee rather than a list of fees in - * the next version to reflect these requirements. - */ - fee?: CoinAmino[]; -} -export interface MsgCreateAminoMsg { - type: "regen.basket/MsgCreate"; - value: MsgCreateAmino; -} -/** MsgCreateBasket is the Msg/CreateBasket request type. */ -export interface MsgCreateSDKType { - curator: string; - name: string; - description: string; - /** @deprecated */ - exponent: number; - disable_auto_retire: boolean; - credit_type_abbrev: string; - allowed_classes: string[]; - date_criteria?: DateCriteriaSDKType; - fee: CoinSDKType[]; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponse { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basketDenom: string; -} -export interface MsgCreateResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: Uint8Array; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseAmino { - /** basket_denom is the unique denomination ID of the newly created basket. */ - basket_denom?: string; -} -export interface MsgCreateResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgCreateResponse"; - value: MsgCreateResponseAmino; -} -/** MsgCreateBasketResponse is the Msg/CreateBasket response type. */ -export interface MsgCreateResponseSDKType { - basket_denom: string; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPut { - /** owner is the owner of credits being put into the basket. */ - owner: string; - /** basket_denom is the basket denom to add credits to. */ - basketDenom: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits: BasketCredit[]; -} -export interface MsgPutProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut"; - value: Uint8Array; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutAmino { - /** owner is the owner of credits being put into the basket. */ - owner?: string; - /** basket_denom is the basket denom to add credits to. */ - basket_denom?: string; - /** - * credits are credits to add to the basket. If they do not match the basket's - * admission criteria, the operation will fail. - */ - credits?: BasketCreditAmino[]; -} -export interface MsgPutAminoMsg { - type: "regen.basket/MsgPut"; - value: MsgPutAmino; -} -/** MsgAddToBasket is the Msg/AddToBasket request type. */ -export interface MsgPutSDKType { - owner: string; - basket_denom: string; - credits: BasketCreditSDKType[]; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponse { - /** amount_received is the integer amount of basket tokens received. */ - amountReceived: string; -} -export interface MsgPutResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: Uint8Array; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseAmino { - /** amount_received is the integer amount of basket tokens received. */ - amount_received?: string; -} -export interface MsgPutResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgPutResponse"; - value: MsgPutResponseAmino; -} -/** MsgAddToBasketResponse is the Msg/AddToBasket response type. */ -export interface MsgPutResponseSDKType { - amount_received: string; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTake { - /** owner is the owner of the basket tokens. */ - owner: string; - /** basket_denom is the basket bank denom to take credits from. */ - basketDenom: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirementLocation: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retireOnTake: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgTakeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake"; - value: Uint8Array; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeAmino { - /** owner is the owner of the basket tokens. */ - owner?: string; - /** basket_denom is the basket bank denom to take credits from. */ - basket_denom?: string; - /** amount is the integer number of basket tokens to convert into credits. */ - amount?: string; - /** - * retirement_location is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Deprecated (Since Revision 1): This field will be removed in the next - * version in favor of retirement_jurisdiction. Only one of these need to be - * set and retirement_jurisdiction will be used if both are set. - */ - /** @deprecated */ - retirement_location?: string; - /** - * retire_on_take is a boolean that dictates whether the ecocredits - * received in exchange for the basket tokens will be received as - * retired or tradable credits. If the basket has disable_auto_retire set to - * false, retire_on_take MUST be set to true, and a retirement jurisdiction - * must be provided. - */ - retire_on_take?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if retire_on_take is true. - * - * Since Revision 1 - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgTakeAminoMsg { - type: "regen.basket/MsgTake"; - value: MsgTakeAmino; -} -/** MsgTakeFromBasket is the Msg/TakeFromBasket request type. */ -export interface MsgTakeSDKType { - owner: string; - basket_denom: string; - amount: string; - /** @deprecated */ - retirement_location: string; - retire_on_take: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponse { - /** credits are the credits taken out of the basket. */ - credits: BasketCredit[]; -} -export interface MsgTakeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: Uint8Array; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseAmino { - /** credits are the credits taken out of the basket. */ - credits?: BasketCreditAmino[]; -} -export interface MsgTakeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgTakeResponse"; - value: MsgTakeResponseAmino; -} -/** MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type. */ -export interface MsgTakeResponseSDKType { - credits: BasketCreditSDKType[]; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: Coin; -} -export interface MsgUpdateBasketFeeProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the basket creation fee. If not set, the basket creation fee will be - * removed and no fee will be required to create a basket. - */ - fee?: CoinAmino; -} -export interface MsgUpdateBasketFeeAminoMsg { - type: "regen.basket/MsgUpdateBasketFee"; - value: MsgUpdateBasketFeeAmino; -} -/** - * MsgUpdateBasketFee is the Msg/UpdateBasketFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponse { -} -export interface MsgUpdateBasketFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseAmino { -} -export interface MsgUpdateBasketFeeResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse"; - value: MsgUpdateBasketFeeResponseAmino; -} -/** - * MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBasketFeeResponseSDKType { -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCurator { - /** curator is the address of the basket curator. */ - curator: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - newCurator: string; -} -export interface MsgUpdateCuratorProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator"; - value: Uint8Array; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorAmino { - /** curator is the address of the basket curator. */ - curator?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_curator is the address of the account that will become the - * new curator of the basket. - */ - new_curator?: string; -} -export interface MsgUpdateCuratorAminoMsg { - type: "regen.basket/MsgUpdateCurator"; - value: MsgUpdateCuratorAmino; -} -/** - * MsgUpdateCurator is the Msg/UpdateCurator request type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorSDKType { - curator: string; - denom: string; - new_curator: string; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponse { -} -export interface MsgUpdateCuratorResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: Uint8Array; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseAmino { -} -export interface MsgUpdateCuratorResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse"; - value: MsgUpdateCuratorResponseAmino; -} -/** - * MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. - * - * Since Revision 2 - */ -export interface MsgUpdateCuratorResponseSDKType { -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteria { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the unique identifier of the basket. */ - denom: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - newDateCriteria?: DateCriteria; -} -export interface MsgUpdateDateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the unique identifier of the basket. */ - denom?: string; - /** - * new_date_criteria is the new date criteria for batches admitted to the - * basket. At most, only one of the date criteria fields can be set. - */ - new_date_criteria?: DateCriteriaAmino; -} -export interface MsgUpdateDateCriteriaAminoMsg { - type: "regen.basket/MsgUpdateDateCriteria"; - value: MsgUpdateDateCriteriaAmino; -} -/** - * MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaSDKType { - authority: string; - denom: string; - new_date_criteria?: DateCriteriaSDKType; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponse { -} -export interface MsgUpdateDateCriteriaResponseProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: Uint8Array; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseAmino { -} -export interface MsgUpdateDateCriteriaResponseAminoMsg { - type: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse"; - value: MsgUpdateDateCriteriaResponseAmino; -} -/** - * MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type. - * - * Since Revision 3 - */ -export interface MsgUpdateDateCriteriaResponseSDKType { -} -export declare const MsgCreate: { - typeUrl: string; - encode(message: MsgCreate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreate; - fromPartial(object: Partial): MsgCreate; - fromAmino(object: MsgCreateAmino): MsgCreate; - toAmino(message: MsgCreate): MsgCreateAmino; - fromAminoMsg(object: MsgCreateAminoMsg): MsgCreate; - toAminoMsg(message: MsgCreate): MsgCreateAminoMsg; - fromProtoMsg(message: MsgCreateProtoMsg): MsgCreate; - toProto(message: MsgCreate): Uint8Array; - toProtoMsg(message: MsgCreate): MsgCreateProtoMsg; -}; -export declare const MsgCreateResponse: { - typeUrl: string; - encode(message: MsgCreateResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateResponse; - fromPartial(object: Partial): MsgCreateResponse; - fromAmino(object: MsgCreateResponseAmino): MsgCreateResponse; - toAmino(message: MsgCreateResponse): MsgCreateResponseAmino; - fromAminoMsg(object: MsgCreateResponseAminoMsg): MsgCreateResponse; - fromProtoMsg(message: MsgCreateResponseProtoMsg): MsgCreateResponse; - toProto(message: MsgCreateResponse): Uint8Array; - toProtoMsg(message: MsgCreateResponse): MsgCreateResponseProtoMsg; -}; -export declare const MsgPut: { - typeUrl: string; - encode(message: MsgPut, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgPut; - fromPartial(object: Partial): MsgPut; - fromAmino(object: MsgPutAmino): MsgPut; - toAmino(message: MsgPut): MsgPutAmino; - fromAminoMsg(object: MsgPutAminoMsg): MsgPut; - toAminoMsg(message: MsgPut): MsgPutAminoMsg; - fromProtoMsg(message: MsgPutProtoMsg): MsgPut; - toProto(message: MsgPut): Uint8Array; - toProtoMsg(message: MsgPut): MsgPutProtoMsg; -}; -export declare const MsgPutResponse: { - typeUrl: string; - encode(message: MsgPutResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgPutResponse; - fromPartial(object: Partial): MsgPutResponse; - fromAmino(object: MsgPutResponseAmino): MsgPutResponse; - toAmino(message: MsgPutResponse): MsgPutResponseAmino; - fromAminoMsg(object: MsgPutResponseAminoMsg): MsgPutResponse; - fromProtoMsg(message: MsgPutResponseProtoMsg): MsgPutResponse; - toProto(message: MsgPutResponse): Uint8Array; - toProtoMsg(message: MsgPutResponse): MsgPutResponseProtoMsg; -}; -export declare const MsgTake: { - typeUrl: string; - encode(message: MsgTake, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTake; - fromPartial(object: Partial): MsgTake; - fromAmino(object: MsgTakeAmino): MsgTake; - toAmino(message: MsgTake): MsgTakeAmino; - fromAminoMsg(object: MsgTakeAminoMsg): MsgTake; - toAminoMsg(message: MsgTake): MsgTakeAminoMsg; - fromProtoMsg(message: MsgTakeProtoMsg): MsgTake; - toProto(message: MsgTake): Uint8Array; - toProtoMsg(message: MsgTake): MsgTakeProtoMsg; -}; -export declare const MsgTakeResponse: { - typeUrl: string; - encode(message: MsgTakeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgTakeResponse; - fromPartial(object: Partial): MsgTakeResponse; - fromAmino(object: MsgTakeResponseAmino): MsgTakeResponse; - toAmino(message: MsgTakeResponse): MsgTakeResponseAmino; - fromAminoMsg(object: MsgTakeResponseAminoMsg): MsgTakeResponse; - fromProtoMsg(message: MsgTakeResponseProtoMsg): MsgTakeResponse; - toProto(message: MsgTakeResponse): Uint8Array; - toProtoMsg(message: MsgTakeResponse): MsgTakeResponseProtoMsg; -}; -export declare const MsgUpdateBasketFee: { - typeUrl: string; - encode(message: MsgUpdateBasketFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFee; - fromPartial(object: Partial): MsgUpdateBasketFee; - fromAmino(object: MsgUpdateBasketFeeAmino): MsgUpdateBasketFee; - toAmino(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAmino; - fromAminoMsg(object: MsgUpdateBasketFeeAminoMsg): MsgUpdateBasketFee; - toAminoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeAminoMsg; - fromProtoMsg(message: MsgUpdateBasketFeeProtoMsg): MsgUpdateBasketFee; - toProto(message: MsgUpdateBasketFee): Uint8Array; - toProtoMsg(message: MsgUpdateBasketFee): MsgUpdateBasketFeeProtoMsg; -}; -export declare const MsgUpdateBasketFeeResponse: { - typeUrl: string; - encode(_: MsgUpdateBasketFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBasketFeeResponse; - fromPartial(_: Partial): MsgUpdateBasketFeeResponse; - fromAmino(_: MsgUpdateBasketFeeResponseAmino): MsgUpdateBasketFeeResponse; - toAmino(_: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseAmino; - fromAminoMsg(object: MsgUpdateBasketFeeResponseAminoMsg): MsgUpdateBasketFeeResponse; - fromProtoMsg(message: MsgUpdateBasketFeeResponseProtoMsg): MsgUpdateBasketFeeResponse; - toProto(message: MsgUpdateBasketFeeResponse): Uint8Array; - toProtoMsg(message: MsgUpdateBasketFeeResponse): MsgUpdateBasketFeeResponseProtoMsg; -}; -export declare const MsgUpdateCurator: { - typeUrl: string; - encode(message: MsgUpdateCurator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCurator; - fromPartial(object: Partial): MsgUpdateCurator; - fromAmino(object: MsgUpdateCuratorAmino): MsgUpdateCurator; - toAmino(message: MsgUpdateCurator): MsgUpdateCuratorAmino; - fromAminoMsg(object: MsgUpdateCuratorAminoMsg): MsgUpdateCurator; - toAminoMsg(message: MsgUpdateCurator): MsgUpdateCuratorAminoMsg; - fromProtoMsg(message: MsgUpdateCuratorProtoMsg): MsgUpdateCurator; - toProto(message: MsgUpdateCurator): Uint8Array; - toProtoMsg(message: MsgUpdateCurator): MsgUpdateCuratorProtoMsg; -}; -export declare const MsgUpdateCuratorResponse: { - typeUrl: string; - encode(_: MsgUpdateCuratorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateCuratorResponse; - fromPartial(_: Partial): MsgUpdateCuratorResponse; - fromAmino(_: MsgUpdateCuratorResponseAmino): MsgUpdateCuratorResponse; - toAmino(_: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseAmino; - fromAminoMsg(object: MsgUpdateCuratorResponseAminoMsg): MsgUpdateCuratorResponse; - fromProtoMsg(message: MsgUpdateCuratorResponseProtoMsg): MsgUpdateCuratorResponse; - toProto(message: MsgUpdateCuratorResponse): Uint8Array; - toProtoMsg(message: MsgUpdateCuratorResponse): MsgUpdateCuratorResponseProtoMsg; -}; -export declare const MsgUpdateDateCriteria: { - typeUrl: string; - encode(message: MsgUpdateDateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteria; - fromPartial(object: Partial): MsgUpdateDateCriteria; - fromAmino(object: MsgUpdateDateCriteriaAmino): MsgUpdateDateCriteria; - toAmino(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAmino; - fromAminoMsg(object: MsgUpdateDateCriteriaAminoMsg): MsgUpdateDateCriteria; - toAminoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaAminoMsg; - fromProtoMsg(message: MsgUpdateDateCriteriaProtoMsg): MsgUpdateDateCriteria; - toProto(message: MsgUpdateDateCriteria): Uint8Array; - toProtoMsg(message: MsgUpdateDateCriteria): MsgUpdateDateCriteriaProtoMsg; -}; -export declare const MsgUpdateDateCriteriaResponse: { - typeUrl: string; - encode(_: MsgUpdateDateCriteriaResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateDateCriteriaResponse; - fromPartial(_: Partial): MsgUpdateDateCriteriaResponse; - fromAmino(_: MsgUpdateDateCriteriaResponseAmino): MsgUpdateDateCriteriaResponse; - toAmino(_: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseAmino; - fromAminoMsg(object: MsgUpdateDateCriteriaResponseAminoMsg): MsgUpdateDateCriteriaResponse; - fromProtoMsg(message: MsgUpdateDateCriteriaResponseProtoMsg): MsgUpdateDateCriteriaResponse; - toProto(message: MsgUpdateDateCriteriaResponse): Uint8Array; - toProtoMsg(message: MsgUpdateDateCriteriaResponse): MsgUpdateDateCriteriaResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.js deleted file mode 100644 index 7cd2995e..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.js +++ /dev/null @@ -1,1024 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgUpdateDateCriteriaResponse = exports.MsgUpdateDateCriteria = exports.MsgUpdateCuratorResponse = exports.MsgUpdateCurator = exports.MsgUpdateBasketFeeResponse = exports.MsgUpdateBasketFee = exports.MsgTakeResponse = exports.MsgTake = exports.MsgPutResponse = exports.MsgPut = exports.MsgCreateResponse = exports.MsgCreate = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../../binary"); -function createBaseMsgCreate() { - return { - curator: "", - name: "", - description: "", - exponent: 0, - disableAutoRetire: false, - creditTypeAbbrev: "", - allowedClasses: [], - dateCriteria: undefined, - fee: [] - }; -} -exports.MsgCreate = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.description !== "") { - writer.uint32(26).string(message.description); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(50).string(message.creditTypeAbbrev); - } - for (const v of message.allowedClasses) { - writer.uint32(58).string(v); - } - if (message.dateCriteria !== undefined) { - types_1.DateCriteria.encode(message.dateCriteria, writer.uint32(66).fork()).ldelim(); - } - for (const v of message.fee) { - coin_1.Coin.encode(v, writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.creditTypeAbbrev = reader.string(); - break; - case 7: - message.allowedClasses.push(reader.string()); - break; - case 8: - message.dateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); - break; - case 9: - message.fee.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreate(); - message.curator = object.curator ?? ""; - message.name = object.name ?? ""; - message.description = object.description ?? ""; - message.exponent = object.exponent ?? 0; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.allowedClasses = object.allowedClasses?.map(e => e) || []; - message.dateCriteria = object.dateCriteria !== undefined && object.dateCriteria !== null ? types_1.DateCriteria.fromPartial(object.dateCriteria) : undefined; - message.fee = object.fee?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreate(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - message.allowedClasses = object.allowed_classes?.map(e => e) || []; - if (object.date_criteria !== undefined && object.date_criteria !== null) { - message.dateCriteria = types_1.DateCriteria.fromAmino(object.date_criteria); - } - message.fee = object.fee?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.name = message.name === "" ? undefined : message.name; - obj.description = message.description === "" ? undefined : message.description; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - if (message.allowedClasses) { - obj.allowed_classes = message.allowedClasses.map(e => e); - } - else { - obj.allowed_classes = message.allowedClasses; - } - obj.date_criteria = message.dateCriteria ? types_1.DateCriteria.toAmino(message.dateCriteria) : undefined; - if (message.fee) { - obj.fee = message.fee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.fee = message.fee; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreate.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgCreate", - value: exports.MsgCreate.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreate.decode(message.value); - }, - toProto(message) { - return exports.MsgCreate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: exports.MsgCreate.encode(message).finish() - }; - } -}; -function createBaseMsgCreateResponse() { - return { - basketDenom: "" - }; -} -exports.MsgCreateResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.basketDenom !== "") { - writer.uint32(10).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateResponse(); - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateResponse(); - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreateResponse", - value: exports.MsgCreateResponse.encode(message).finish() - }; - } -}; -function createBaseMsgPut() { - return { - owner: "", - basketDenom: "", - credits: [] - }; -} -exports.MsgPut = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - for (const v of message.credits) { - types_1.BasketCredit.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPut(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgPut(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgPut(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgPut.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgPut", - value: exports.MsgPut.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgPut.decode(message.value); - }, - toProto(message) { - return exports.MsgPut.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: exports.MsgPut.encode(message).finish() - }; - } -}; -function createBaseMsgPutResponse() { - return { - amountReceived: "" - }; -} -exports.MsgPutResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.amountReceived !== "") { - writer.uint32(10).string(message.amountReceived); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgPutResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amountReceived = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgPutResponse(); - message.amountReceived = object.amountReceived ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgPutResponse(); - if (object.amount_received !== undefined && object.amount_received !== null) { - message.amountReceived = object.amount_received; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.amount_received = message.amountReceived === "" ? undefined : message.amountReceived; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgPutResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgPutResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgPutResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPutResponse", - value: exports.MsgPutResponse.encode(message).finish() - }; - } -}; -function createBaseMsgTake() { - return { - owner: "", - basketDenom: "", - amount: "", - retirementLocation: "", - retireOnTake: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -exports.MsgTake = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.basketDenom !== "") { - writer.uint32(18).string(message.basketDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - if (message.retireOnTake === true) { - writer.uint32(40).bool(message.retireOnTake); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTake(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.basketDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - case 5: - message.retireOnTake = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTake(); - message.owner = object.owner ?? ""; - message.basketDenom = object.basketDenom ?? ""; - message.amount = object.amount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - message.retireOnTake = object.retireOnTake ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgTake(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - if (object.retire_on_take !== undefined && object.retire_on_take !== null) { - message.retireOnTake = object.retire_on_take; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - obj.retire_on_take = message.retireOnTake === false ? undefined : message.retireOnTake; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgTake.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgTake", - value: exports.MsgTake.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgTake.decode(message.value); - }, - toProto(message) { - return exports.MsgTake.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: exports.MsgTake.encode(message).finish() - }; - } -}; -function createBaseMsgTakeResponse() { - return { - credits: [] - }; -} -exports.MsgTakeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.credits) { - types_1.BasketCredit.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgTakeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.credits.push(types_1.BasketCredit.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => types_1.BasketCredit.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgTakeResponse(); - message.credits = object.credits?.map(e => types_1.BasketCredit.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.BasketCredit.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgTakeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgTakeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgTakeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTakeResponse", - value: exports.MsgTakeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFee() { - return { - authority: "", - fee: undefined - }; -} -exports.MsgUpdateBasketFee = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateBasketFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateBasketFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateBasketFee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateBasketFee", - value: exports.MsgUpdateBasketFee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateBasketFee.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateBasketFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: exports.MsgUpdateBasketFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBasketFeeResponse() { - return {}; -} -exports.MsgUpdateBasketFeeResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBasketFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateBasketFeeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateBasketFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateBasketFeeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateBasketFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFeeResponse", - value: exports.MsgUpdateBasketFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCurator() { - return { - curator: "", - denom: "", - newCurator: "" - }; -} -exports.MsgUpdateCurator = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.curator !== "") { - writer.uint32(10).string(message.curator); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newCurator !== "") { - writer.uint32(26).string(message.newCurator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCurator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curator = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 3: - message.newCurator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateCurator(); - message.curator = object.curator ?? ""; - message.denom = object.denom ?? ""; - message.newCurator = object.newCurator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateCurator(); - if (object.curator !== undefined && object.curator !== null) { - message.curator = object.curator; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_curator !== undefined && object.new_curator !== null) { - message.newCurator = object.new_curator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.curator = message.curator === "" ? undefined : message.curator; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_curator = message.newCurator === "" ? undefined : message.newCurator; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateCurator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateCurator", - value: exports.MsgUpdateCurator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateCurator.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateCurator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: exports.MsgUpdateCurator.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateCuratorResponse() { - return {}; -} -exports.MsgUpdateCuratorResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateCuratorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateCuratorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateCuratorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateCuratorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateCuratorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCuratorResponse", - value: exports.MsgUpdateCuratorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteria() { - return { - authority: "", - denom: "", - newDateCriteria: undefined - }; -} -exports.MsgUpdateDateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - if (message.newDateCriteria !== undefined) { - types_1.DateCriteria.encode(message.newDateCriteria, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - case 8: - message.newDateCriteria = types_1.DateCriteria.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateDateCriteria(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - message.newDateCriteria = object.newDateCriteria !== undefined && object.newDateCriteria !== null ? types_1.DateCriteria.fromPartial(object.newDateCriteria) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateDateCriteria(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.new_date_criteria !== undefined && object.new_date_criteria !== null) { - message.newDateCriteria = types_1.DateCriteria.fromAmino(object.new_date_criteria); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.new_date_criteria = message.newDateCriteria ? types_1.DateCriteria.toAmino(message.newDateCriteria) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateDateCriteria.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.basket/MsgUpdateDateCriteria", - value: exports.MsgUpdateDateCriteria.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateDateCriteria.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateDateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: exports.MsgUpdateDateCriteria.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateDateCriteriaResponse() { - return {}; -} -exports.MsgUpdateDateCriteriaResponse = { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateDateCriteriaResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateDateCriteriaResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateDateCriteriaResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateDateCriteriaResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateDateCriteriaResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteriaResponse", - value: exports.MsgUpdateDateCriteriaResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts deleted file mode 100644 index 8c3e2fb1..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreate, MsgPut, MsgTake, MsgUpdateBasketFee, MsgUpdateCurator, MsgUpdateDateCriteria } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - create(value: MsgCreate): { - typeUrl: string; - value: Uint8Array; - }; - put(value: MsgPut): { - typeUrl: string; - value: Uint8Array; - }; - take(value: MsgTake): { - typeUrl: string; - value: Uint8Array; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: Uint8Array; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: Uint8Array; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - create(value: MsgCreate): { - typeUrl: string; - value: MsgCreate; - }; - put(value: MsgPut): { - typeUrl: string; - value: MsgPut; - }; - take(value: MsgTake): { - typeUrl: string; - value: MsgTake; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: MsgUpdateBasketFee; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: MsgUpdateCurator; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: MsgUpdateDateCriteria; - }; - }; - fromPartial: { - create(value: MsgCreate): { - typeUrl: string; - value: MsgCreate; - }; - put(value: MsgPut): { - typeUrl: string; - value: MsgPut; - }; - take(value: MsgTake): { - typeUrl: string; - value: MsgTake; - }; - updateBasketFee(value: MsgUpdateBasketFee): { - typeUrl: string; - value: MsgUpdateBasketFee; - }; - updateCurator(value: MsgUpdateCurator): { - typeUrl: string; - value: MsgUpdateCurator; - }; - updateDateCriteria(value: MsgUpdateDateCriteria): { - typeUrl: string; - value: MsgUpdateDateCriteria; - }; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js deleted file mode 100644 index f3843a6f..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.registry.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.ecocredit.basket.v1.MsgCreate", tx_1.MsgCreate], ["/regen.ecocredit.basket.v1.MsgPut", tx_1.MsgPut], ["/regen.ecocredit.basket.v1.MsgTake", tx_1.MsgTake], ["/regen.ecocredit.basket.v1.MsgUpdateBasketFee", tx_1.MsgUpdateBasketFee], ["/regen.ecocredit.basket.v1.MsgUpdateCurator", tx_1.MsgUpdateCurator], ["/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", tx_1.MsgUpdateDateCriteria]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: tx_1.MsgCreate.encode(value).finish() - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: tx_1.MsgPut.encode(value).finish() - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: tx_1.MsgTake.encode(value).finish() - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: tx_1.MsgUpdateBasketFee.encode(value).finish() - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: tx_1.MsgUpdateCurator.encode(value).finish() - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: tx_1.MsgUpdateDateCriteria.encode(value).finish() - }; - } - }, - withTypeUrl: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value - }; - } - }, - fromPartial: { - create(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgCreate", - value: tx_1.MsgCreate.fromPartial(value) - }; - }, - put(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgPut", - value: tx_1.MsgPut.fromPartial(value) - }; - }, - take(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgTake", - value: tx_1.MsgTake.fromPartial(value) - }; - }, - updateBasketFee(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateBasketFee", - value: tx_1.MsgUpdateBasketFee.fromPartial(value) - }; - }, - updateCurator(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateCurator", - value: tx_1.MsgUpdateCurator.fromPartial(value) - }; - }, - updateDateCriteria(value) { - return { - typeUrl: "/regen.ecocredit.basket.v1.MsgUpdateDateCriteria", - value: tx_1.MsgUpdateDateCriteria.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 9a754117..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgCreate, MsgCreateResponse, MsgPut, MsgPutResponse, MsgTake, MsgTakeResponse, MsgUpdateBasketFee, MsgUpdateBasketFeeResponse, MsgUpdateCurator, MsgUpdateCuratorResponse, MsgUpdateDateCriteria, MsgUpdateDateCriteriaResponse } from "./tx"; -/** Msg is the regen.ecocredit.basket.v1 Msg service. */ -export interface Msg { - /** - * Create creates a basket that can hold different types of ecocredits that - * meet the basket's criteria. Upon depositing ecocredits into the basket, - * basket tokens are minted and sent to depositor using the Cosmos SDK Bank - * module. This allows basket tokens to be utilized within IBC. Basket tokens - * are fully fungible with other basket tokens from the same basket. The - * basket token denom is derived from the basket name, credit type - * abbreviation, and credit type precision (i.e. basket name "foo", credit - * type exponent 6, and credit type abbreviation "C" generates the denom - * eco.uC.foo). Baskets can limit credit acceptance criteria based on a - * combination of credit type, credit classes, and credit batch start date. - * Credits can be taken from the basket in exchange for basket tokens. Taken - * credits will be immediately retired, unless disable_auto_retire is set to - * true. When set to true, credits may be received in either a tradable or - * retired state, depending on the taker's request. If the basket fee - * governance parameter is set, a fee of equal or greater value must be - * provided in the request. Only the amount specified in the fee parameter - * will be charged, even if a greater value fee is provided. Fees from - * creating a basket are burned. - */ - create(request: MsgCreate): Promise; - /** - * Put deposits credits into the basket from the holder's tradable balance in - * exchange for basket tokens. The amount of tokens received is calculated by - * the following formula: sum(credits_deposited) * 10^credit_type_exponent. - * The credits being deposited MUST adhere to the criteria of the basket. - */ - put(request: MsgPut): Promise; - /** - * Take exchanges basket tokens for credits from the specified basket. Credits - * are taken deterministically, ordered by oldest batch start date to the most - * recent batch start date. If the basket has disable_auto_retire set to - * false, both retirement_jurisdiction and retire_on_take must be set, and the - * taken credits will be retired immediately upon receipt. Otherwise, credits - * may be received as tradable or retired, based on the request. - */ - take(request: MsgTake): Promise; - /** - * UpdateBasketFee is a governance method that allows for updating the basket - * creation fee. If not set, the basket creation fee will be removed and no - * fee will be required to create a basket. - * - * Since Revision 2 - */ - updateBasketFee(request: MsgUpdateBasketFee): Promise; - /** - * UpdateCurator updates basket curator. - * - * Since Revision 2 - */ - updateCurator(request: MsgUpdateCurator): Promise; - /** - * UpdateDateCriteria is a governance method that allows for updating the date - * criteria of a basket. Updating basket date criteria could affect the value - * of basket tokens and therefore requires a network-wide governance process. - * - * Since Revision 3 - */ - updateDateCriteria(request: MsgUpdateDateCriteria): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - create(request: MsgCreate): Promise; - put(request: MsgPut): Promise; - take(request: MsgTake): Promise; - updateBasketFee(request: MsgUpdateBasketFee): Promise; - updateCurator(request: MsgUpdateCurator): Promise; - updateDateCriteria(request: MsgUpdateDateCriteria): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js deleted file mode 100644 index 3c7e5c57..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/tx.rpc.msg.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.create = this.create.bind(this); - this.put = this.put.bind(this); - this.take = this.take.bind(this); - this.updateBasketFee = this.updateBasketFee.bind(this); - this.updateCurator = this.updateCurator.bind(this); - this.updateDateCriteria = this.updateDateCriteria.bind(this); - } - create(request) { - const data = tx_1.MsgCreate.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Create", data); - return promise.then(data => tx_1.MsgCreateResponse.decode(new binary_1.BinaryReader(data))); - } - put(request) { - const data = tx_1.MsgPut.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Put", data); - return promise.then(data => tx_1.MsgPutResponse.decode(new binary_1.BinaryReader(data))); - } - take(request) { - const data = tx_1.MsgTake.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "Take", data); - return promise.then(data => tx_1.MsgTakeResponse.decode(new binary_1.BinaryReader(data))); - } - updateBasketFee(request) { - const data = tx_1.MsgUpdateBasketFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateBasketFee", data); - return promise.then(data => tx_1.MsgUpdateBasketFeeResponse.decode(new binary_1.BinaryReader(data))); - } - updateCurator(request) { - const data = tx_1.MsgUpdateCurator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateCurator", data); - return promise.then(data => tx_1.MsgUpdateCuratorResponse.decode(new binary_1.BinaryReader(data))); - } - updateDateCriteria(request) { - const data = tx_1.MsgUpdateDateCriteria.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.basket.v1.Msg", "UpdateDateCriteria", data); - return promise.then(data => tx_1.MsgUpdateDateCriteriaResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts b/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts deleted file mode 100644 index 9302ed9d..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/types.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCredit { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount: string; -} -export interface BasketCreditProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit"; - value: Uint8Array; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being put into or taken out of the basket. - * Decimal values are acceptable within the precision of the corresponding - * credit type for this batch. - */ - amount?: string; -} -export interface BasketCreditAminoMsg { - type: "/regen.ecocredit.basket.v1.BasketCredit"; - value: BasketCreditAmino; -} -/** BasketCredit represents the information for a credit batch inside a basket. */ -export interface BasketCreditSDKType { - batch_denom: string; - amount: string; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteria { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - minStartDate?: Date; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - startDateWindow?: Duration; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - yearsInThePast: number; -} -export interface DateCriteriaProtoMsg { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria"; - value: Uint8Array; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaAmino { - /** - * min_start_date (optional) is the earliest start date for batches of credits - * allowed into the basket. At most only one of `start_date_window`, - * `min_start_date`, and `years_in_the_past` can be set for a basket. - */ - min_start_date?: string; - /** - * start_date_window (optional) is a duration of time measured into the past - * which sets a cutoff for batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date is - * before `block_timestamp - start_date_window` will not be allowed into the - * basket. At most only one of `start_date_window`, `min_start_date`, and - * `years_in_the_past` can be set for a basket. - */ - start_date_window?: DurationAmino; - /** - * years_in_the_past (optional) is the number of years into the past which - * sets a cutoff for the batch start dates when adding new credits to the - * basket. Based on the current block timestamp, credits whose start date year - * is less than `block_timestamp_year - years_in_the_past` will not be allowed - * into the basket. At most only one of `start_date_window`, `min_start_date`, - * and `years_in_the_past` can be set for a basket. - * - * Since Revision 1 - */ - years_in_the_past?: number; -} -export interface DateCriteriaAminoMsg { - type: "/regen.ecocredit.basket.v1.DateCriteria"; - value: DateCriteriaAmino; -} -/** - * DateCriteria represents the information for credit acceptance in a basket. - * At most, only one of the values should be set. - */ -export interface DateCriteriaSDKType { - min_start_date?: Date; - start_date_window?: DurationSDKType; - years_in_the_past: number; -} -export declare const BasketCredit: { - typeUrl: string; - encode(message: BasketCredit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BasketCredit; - fromPartial(object: Partial): BasketCredit; - fromAmino(object: BasketCreditAmino): BasketCredit; - toAmino(message: BasketCredit): BasketCreditAmino; - fromAminoMsg(object: BasketCreditAminoMsg): BasketCredit; - fromProtoMsg(message: BasketCreditProtoMsg): BasketCredit; - toProto(message: BasketCredit): Uint8Array; - toProtoMsg(message: BasketCredit): BasketCreditProtoMsg; -}; -export declare const DateCriteria: { - typeUrl: string; - encode(message: DateCriteria, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DateCriteria; - fromPartial(object: Partial): DateCriteria; - fromAmino(object: DateCriteriaAmino): DateCriteria; - toAmino(message: DateCriteria): DateCriteriaAmino; - fromAminoMsg(object: DateCriteriaAminoMsg): DateCriteria; - fromProtoMsg(message: DateCriteriaProtoMsg): DateCriteria; - toProto(message: DateCriteria): Uint8Array; - toProtoMsg(message: DateCriteria): DateCriteriaProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/basket/v1/types.js b/packages/api/dist/regen/ecocredit/basket/v1/types.js deleted file mode 100644 index 79a965bc..00000000 --- a/packages/api/dist/regen/ecocredit/basket/v1/types.js +++ /dev/null @@ -1,170 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DateCriteria = exports.BasketCredit = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const duration_1 = require("../../../../google/protobuf/duration"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseBasketCredit() { - return { - batchDenom: "", - amount: "" - }; -} -exports.BasketCredit = { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasketCredit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBasketCredit(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBasketCredit(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.BasketCredit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BasketCredit.decode(message.value); - }, - toProto(message) { - return exports.BasketCredit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.BasketCredit", - value: exports.BasketCredit.encode(message).finish() - }; - } -}; -function createBaseDateCriteria() { - return { - minStartDate: undefined, - startDateWindow: undefined, - yearsInThePast: 0 - }; -} -exports.DateCriteria = { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.minStartDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(10).fork()).ldelim(); - } - if (message.startDateWindow !== undefined) { - duration_1.Duration.encode(message.startDateWindow, writer.uint32(18).fork()).ldelim(); - } - if (message.yearsInThePast !== 0) { - writer.uint32(24).uint32(message.yearsInThePast); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDateCriteria(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 2: - message.startDateWindow = duration_1.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.yearsInThePast = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDateCriteria(); - message.minStartDate = object.minStartDate ?? undefined; - message.startDateWindow = object.startDateWindow !== undefined && object.startDateWindow !== null ? duration_1.Duration.fromPartial(object.startDateWindow) : undefined; - message.yearsInThePast = object.yearsInThePast ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseDateCriteria(); - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); - } - if (object.start_date_window !== undefined && object.start_date_window !== null) { - message.startDateWindow = duration_1.Duration.fromAmino(object.start_date_window); - } - if (object.years_in_the_past !== undefined && object.years_in_the_past !== null) { - message.yearsInThePast = object.years_in_the_past; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; - obj.start_date_window = message.startDateWindow ? duration_1.Duration.toAmino(message.startDateWindow) : undefined; - obj.years_in_the_past = message.yearsInThePast === 0 ? undefined : message.yearsInThePast; - return obj; - }, - fromAminoMsg(object) { - return exports.DateCriteria.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DateCriteria.decode(message.value); - }, - toProto(message) { - return exports.DateCriteria.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.basket.v1.DateCriteria", - value: exports.DateCriteria.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts deleted file mode 100644 index 5d1129ac..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/events.d.ts +++ /dev/null @@ -1,253 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSell { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sellOrderId: bigint; -} -export interface EventSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell"; - value: Uint8Array; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellAmino { - /** sell_order_id is the unique identifier of the sell order that was created. */ - sell_order_id?: string; -} -export interface EventSellAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventSell"; - value: EventSellAmino; -} -/** EventSell is an event emitted when a sell order is created. */ -export interface EventSellSDKType { - sell_order_id: bigint; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirect { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sellOrderId: bigint; -} -export interface EventBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: Uint8Array; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectAmino { - /** - * sell_order_id is the unique identifier of the sell order that credits were - * purchased from. - */ - sell_order_id?: string; -} -export interface EventBuyDirectAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventBuyDirect"; - value: EventBuyDirectAmino; -} -/** EventBuyDirect is an event emitted when a direct buy order is processed. */ -export interface EventBuyDirectSDKType { - sell_order_id: bigint; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrder { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sellOrderId: bigint; -} -export interface EventUpdateSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: Uint8Array; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderAmino { - /** sell_order_id is the unique identifier of the sell order that was updated. */ - sell_order_id?: string; -} -export interface EventUpdateSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder"; - value: EventUpdateSellOrderAmino; -} -/** EventUpdateSellOrder is an event emitted when a sell order is updated. */ -export interface EventUpdateSellOrderSDKType { - sell_order_id: bigint; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrder { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sellOrderId: bigint; -} -export interface EventCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: Uint8Array; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderAmino { - /** - * sell_order_id is the unique identifier of the sell order that was - * cancelled. - */ - sell_order_id?: string; -} -export interface EventCancelSellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder"; - value: EventCancelSellOrderAmino; -} -/** EventCancelSellOrder is an event emitted when a sell order is cancelled. */ -export interface EventCancelSellOrderSDKType { - sell_order_id: bigint; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventAllowDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: Uint8Array; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventAllowDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventAllowDenom"; - value: EventAllowDenomAmino; -} -/** - * EventAllowDenom is an event emitted when a new denom is added for use in the - * marketplace. - */ -export interface EventAllowDenomSDKType { - denom: string; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenom { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom: string; -} -export interface EventRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomAmino { - /** - * denom is the bank denom (e.g. ibc/GLKHDSG423SGS) removed from the list of - * allowed denoms for use in the marketplace. - */ - denom?: string; -} -export interface EventRemoveAllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom"; - value: EventRemoveAllowedDenomAmino; -} -/** - * EventRemoveAllowedDenom is an event emitted when a denom is removed from use - * in the marketplace. - * - * Since Revision 1 - */ -export interface EventRemoveAllowedDenomSDKType { - denom: string; -} -export declare const EventSell: { - typeUrl: string; - encode(message: EventSell, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSell; - fromPartial(object: Partial): EventSell; - fromAmino(object: EventSellAmino): EventSell; - toAmino(message: EventSell): EventSellAmino; - fromAminoMsg(object: EventSellAminoMsg): EventSell; - fromProtoMsg(message: EventSellProtoMsg): EventSell; - toProto(message: EventSell): Uint8Array; - toProtoMsg(message: EventSell): EventSellProtoMsg; -}; -export declare const EventBuyDirect: { - typeUrl: string; - encode(message: EventBuyDirect, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBuyDirect; - fromPartial(object: Partial): EventBuyDirect; - fromAmino(object: EventBuyDirectAmino): EventBuyDirect; - toAmino(message: EventBuyDirect): EventBuyDirectAmino; - fromAminoMsg(object: EventBuyDirectAminoMsg): EventBuyDirect; - fromProtoMsg(message: EventBuyDirectProtoMsg): EventBuyDirect; - toProto(message: EventBuyDirect): Uint8Array; - toProtoMsg(message: EventBuyDirect): EventBuyDirectProtoMsg; -}; -export declare const EventUpdateSellOrder: { - typeUrl: string; - encode(message: EventUpdateSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateSellOrder; - fromPartial(object: Partial): EventUpdateSellOrder; - fromAmino(object: EventUpdateSellOrderAmino): EventUpdateSellOrder; - toAmino(message: EventUpdateSellOrder): EventUpdateSellOrderAmino; - fromAminoMsg(object: EventUpdateSellOrderAminoMsg): EventUpdateSellOrder; - fromProtoMsg(message: EventUpdateSellOrderProtoMsg): EventUpdateSellOrder; - toProto(message: EventUpdateSellOrder): Uint8Array; - toProtoMsg(message: EventUpdateSellOrder): EventUpdateSellOrderProtoMsg; -}; -export declare const EventCancelSellOrder: { - typeUrl: string; - encode(message: EventCancelSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancelSellOrder; - fromPartial(object: Partial): EventCancelSellOrder; - fromAmino(object: EventCancelSellOrderAmino): EventCancelSellOrder; - toAmino(message: EventCancelSellOrder): EventCancelSellOrderAmino; - fromAminoMsg(object: EventCancelSellOrderAminoMsg): EventCancelSellOrder; - fromProtoMsg(message: EventCancelSellOrderProtoMsg): EventCancelSellOrder; - toProto(message: EventCancelSellOrder): Uint8Array; - toProtoMsg(message: EventCancelSellOrder): EventCancelSellOrderProtoMsg; -}; -export declare const EventAllowDenom: { - typeUrl: string; - encode(message: EventAllowDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAllowDenom; - fromPartial(object: Partial): EventAllowDenom; - fromAmino(object: EventAllowDenomAmino): EventAllowDenom; - toAmino(message: EventAllowDenom): EventAllowDenomAmino; - fromAminoMsg(object: EventAllowDenomAminoMsg): EventAllowDenom; - fromProtoMsg(message: EventAllowDenomProtoMsg): EventAllowDenom; - toProto(message: EventAllowDenom): Uint8Array; - toProtoMsg(message: EventAllowDenom): EventAllowDenomProtoMsg; -}; -export declare const EventRemoveAllowedDenom: { - typeUrl: string; - encode(message: EventRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRemoveAllowedDenom; - fromPartial(object: Partial): EventRemoveAllowedDenom; - fromAmino(object: EventRemoveAllowedDenomAmino): EventRemoveAllowedDenom; - toAmino(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomAmino; - fromAminoMsg(object: EventRemoveAllowedDenomAminoMsg): EventRemoveAllowedDenom; - fromProtoMsg(message: EventRemoveAllowedDenomProtoMsg): EventRemoveAllowedDenom; - toProto(message: EventRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: EventRemoveAllowedDenom): EventRemoveAllowedDenomProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/events.js b/packages/api/dist/regen/ecocredit/marketplace/v1/events.js deleted file mode 100644 index abefcf69..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/events.js +++ /dev/null @@ -1,383 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventRemoveAllowedDenom = exports.EventAllowDenom = exports.EventCancelSellOrder = exports.EventUpdateSellOrder = exports.EventBuyDirect = exports.EventSell = void 0; -//@ts-nocheck -const binary_1 = require("../../../../binary"); -function createBaseEventSell() { - return { - sellOrderId: BigInt(0) - }; -} -exports.EventSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSell(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventSell(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventSell.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventSell.decode(message.value); - }, - toProto(message) { - return exports.EventSell.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventSell", - value: exports.EventSell.encode(message).finish() - }; - } -}; -function createBaseEventBuyDirect() { - return { - sellOrderId: BigInt(0) - }; -} -exports.EventBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBuyDirect(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventBuyDirect(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventBuyDirect.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventBuyDirect.decode(message.value); - }, - toProto(message) { - return exports.EventBuyDirect.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventBuyDirect", - value: exports.EventBuyDirect.encode(message).finish() - }; - } -}; -function createBaseEventUpdateSellOrder() { - return { - sellOrderId: BigInt(0) - }; -} -exports.EventUpdateSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateSellOrder.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventUpdateSellOrder", - value: exports.EventUpdateSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventCancelSellOrder() { - return { - sellOrderId: BigInt(0) - }; -} -exports.EventCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancelSellOrder(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEventCancelSellOrder(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCancelSellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCancelSellOrder.decode(message.value); - }, - toProto(message) { - return exports.EventCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventCancelSellOrder", - value: exports.EventCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseEventAllowDenom() { - return { - denom: "" - }; -} -exports.EventAllowDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAllowDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAllowDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAllowDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventAllowDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventAllowDenom.decode(message.value); - }, - toProto(message) { - return exports.EventAllowDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventAllowDenom", - value: exports.EventAllowDenom.encode(message).finish() - }; - } -}; -function createBaseEventRemoveAllowedDenom() { - return { - denom: "" - }; -} -exports.EventRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRemoveAllowedDenom(); - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRemoveAllowedDenom(); - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventRemoveAllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventRemoveAllowedDenom.decode(message.value); - }, - toProto(message) { - return exports.EventRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.EventRemoveAllowedDenom", - value: exports.EventRemoveAllowedDenom.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts deleted file mode 100644 index fd86969e..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.d.ts +++ /dev/null @@ -1,506 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination"; -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequest { - /** sell_order_id is the id of the requested sell order. */ - sellOrderId: bigint; -} -export interface QuerySellOrderRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: Uint8Array; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestAmino { - /** sell_order_id is the id of the requested sell order. */ - sell_order_id?: string; -} -export interface QuerySellOrderRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest"; - value: QuerySellOrderRequestAmino; -} -/** QuerySellOrderRequest is the Query/SellOrder request type. */ -export interface QuerySellOrderRequestSDKType { - sell_order_id: bigint; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponse { - /** sell_order contains all information related to a sell order. */ - sellOrder?: SellOrderInfo; -} -export interface QuerySellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: Uint8Array; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseAmino { - /** sell_order contains all information related to a sell order. */ - sell_order?: SellOrderInfoAmino; -} -export interface QuerySellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse"; - value: QuerySellOrderResponseAmino; -} -/** QuerySellOrderResponse is the Query/SellOrder response type. */ -export interface QuerySellOrderResponseSDKType { - sell_order?: SellOrderInfoSDKType; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: Uint8Array; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest"; - value: QuerySellOrdersRequestAmino; -} -/** QuerySellOrdersRequest is the Query/SellOrders request type. */ -export interface QuerySellOrdersRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: Uint8Array; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse"; - value: QuerySellOrdersResponseAmino; -} -/** QuerySellOrdersResponse is the Query/SellOrders response type. */ -export interface QuerySellOrdersResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequest { - /** batch_denom is an ecocredit denom */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestAmino { - /** batch_denom is an ecocredit denom */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersByBatchRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest"; - value: QuerySellOrdersByBatchRequestAmino; -} -/** - * QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch - * request type. - */ -export interface QuerySellOrdersByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersByBatchResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse"; - value: QuerySellOrdersByBatchResponseAmino; -} -/** - * QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch - * response type. - */ -export interface QuerySellOrdersByBatchResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequest { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QuerySellOrdersBySellerRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QuerySellOrdersBySellerRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest"; - value: QuerySellOrdersBySellerRequestAmino; -} -/** - * QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request - * type. - */ -export interface QuerySellOrdersBySellerRequestSDKType { - seller: string; - pagination?: PageRequestSDKType; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponse { - /** sell_orders is a list of sell orders. */ - sellOrders: SellOrderInfo[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QuerySellOrdersBySellerResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: Uint8Array; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseAmino { - /** sell_orders is a list of sell orders. */ - sell_orders?: SellOrderInfoAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QuerySellOrdersBySellerResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse"; - value: QuerySellOrdersBySellerResponseAmino; -} -/** - * QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse - * response type. - */ -export interface QuerySellOrdersBySellerResponseSDKType { - sell_orders: SellOrderInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedDenomsRequestProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: Uint8Array; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedDenomsRequestAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest"; - value: QueryAllowedDenomsRequestAmino; -} -/** QueryAllowedDenomsRequest is the Query/AllowedDenoms request type. */ -export interface QueryAllowedDenomsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponse { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowedDenoms: AllowedDenom[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedDenomsResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: Uint8Array; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseAmino { - /** - * allowed_denoms is a list of coin denoms allowed to use in the ask price of - * sell orders. - */ - allowed_denoms?: AllowedDenomAmino[]; - /** pagination defines an optional pagination for the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedDenomsResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse"; - value: QueryAllowedDenomsResponseAmino; -} -/** QueryAllowedDenomsResponse is the Query/AllowedDenoms response type. */ -export interface QueryAllowedDenomsResponseSDKType { - allowed_denoms: AllowedDenomSDKType[]; - pagination?: PageResponseSDKType; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfo { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: string; - /** batch_denom is denom of the credit batch being sold. */ - batchDenom: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - askDenom: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Date; -} -export interface SellOrderInfoProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: Uint8Array; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** batch_denom is denom of the credit batch being sold. */ - batch_denom?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** ask_denom is the denom used in the ask price of the sell order. */ - ask_denom?: string; - /** - * ask_amount is the amount that the seller is asking for each credit unit of - * the batch. Each credit unit of the batch will be sold for at least the - * ask_amount. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface SellOrderInfoAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrderInfo"; - value: SellOrderInfoAmino; -} -/** SellOrderInfo is the human-readable sell order information. */ -export interface SellOrderInfoSDKType { - id: bigint; - seller: string; - batch_denom: string; - quantity: string; - ask_denom: string; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: Date; -} -export declare const QuerySellOrderRequest: { - typeUrl: string; - encode(message: QuerySellOrderRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderRequest; - fromPartial(object: Partial): QuerySellOrderRequest; - fromAmino(object: QuerySellOrderRequestAmino): QuerySellOrderRequest; - toAmino(message: QuerySellOrderRequest): QuerySellOrderRequestAmino; - fromAminoMsg(object: QuerySellOrderRequestAminoMsg): QuerySellOrderRequest; - fromProtoMsg(message: QuerySellOrderRequestProtoMsg): QuerySellOrderRequest; - toProto(message: QuerySellOrderRequest): Uint8Array; - toProtoMsg(message: QuerySellOrderRequest): QuerySellOrderRequestProtoMsg; -}; -export declare const QuerySellOrderResponse: { - typeUrl: string; - encode(message: QuerySellOrderResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrderResponse; - fromPartial(object: Partial): QuerySellOrderResponse; - fromAmino(object: QuerySellOrderResponseAmino): QuerySellOrderResponse; - toAmino(message: QuerySellOrderResponse): QuerySellOrderResponseAmino; - fromAminoMsg(object: QuerySellOrderResponseAminoMsg): QuerySellOrderResponse; - fromProtoMsg(message: QuerySellOrderResponseProtoMsg): QuerySellOrderResponse; - toProto(message: QuerySellOrderResponse): Uint8Array; - toProtoMsg(message: QuerySellOrderResponse): QuerySellOrderResponseProtoMsg; -}; -export declare const QuerySellOrdersRequest: { - typeUrl: string; - encode(message: QuerySellOrdersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersRequest; - fromPartial(object: Partial): QuerySellOrdersRequest; - fromAmino(object: QuerySellOrdersRequestAmino): QuerySellOrdersRequest; - toAmino(message: QuerySellOrdersRequest): QuerySellOrdersRequestAmino; - fromAminoMsg(object: QuerySellOrdersRequestAminoMsg): QuerySellOrdersRequest; - fromProtoMsg(message: QuerySellOrdersRequestProtoMsg): QuerySellOrdersRequest; - toProto(message: QuerySellOrdersRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersRequest): QuerySellOrdersRequestProtoMsg; -}; -export declare const QuerySellOrdersResponse: { - typeUrl: string; - encode(message: QuerySellOrdersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersResponse; - fromPartial(object: Partial): QuerySellOrdersResponse; - fromAmino(object: QuerySellOrdersResponseAmino): QuerySellOrdersResponse; - toAmino(message: QuerySellOrdersResponse): QuerySellOrdersResponseAmino; - fromAminoMsg(object: QuerySellOrdersResponseAminoMsg): QuerySellOrdersResponse; - fromProtoMsg(message: QuerySellOrdersResponseProtoMsg): QuerySellOrdersResponse; - toProto(message: QuerySellOrdersResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersResponse): QuerySellOrdersResponseProtoMsg; -}; -export declare const QuerySellOrdersByBatchRequest: { - typeUrl: string; - encode(message: QuerySellOrdersByBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchRequest; - fromPartial(object: Partial): QuerySellOrdersByBatchRequest; - fromAmino(object: QuerySellOrdersByBatchRequestAmino): QuerySellOrdersByBatchRequest; - toAmino(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestAmino; - fromAminoMsg(object: QuerySellOrdersByBatchRequestAminoMsg): QuerySellOrdersByBatchRequest; - fromProtoMsg(message: QuerySellOrdersByBatchRequestProtoMsg): QuerySellOrdersByBatchRequest; - toProto(message: QuerySellOrdersByBatchRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersByBatchRequest): QuerySellOrdersByBatchRequestProtoMsg; -}; -export declare const QuerySellOrdersByBatchResponse: { - typeUrl: string; - encode(message: QuerySellOrdersByBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersByBatchResponse; - fromPartial(object: Partial): QuerySellOrdersByBatchResponse; - fromAmino(object: QuerySellOrdersByBatchResponseAmino): QuerySellOrdersByBatchResponse; - toAmino(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseAmino; - fromAminoMsg(object: QuerySellOrdersByBatchResponseAminoMsg): QuerySellOrdersByBatchResponse; - fromProtoMsg(message: QuerySellOrdersByBatchResponseProtoMsg): QuerySellOrdersByBatchResponse; - toProto(message: QuerySellOrdersByBatchResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersByBatchResponse): QuerySellOrdersByBatchResponseProtoMsg; -}; -export declare const QuerySellOrdersBySellerRequest: { - typeUrl: string; - encode(message: QuerySellOrdersBySellerRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerRequest; - fromPartial(object: Partial): QuerySellOrdersBySellerRequest; - fromAmino(object: QuerySellOrdersBySellerRequestAmino): QuerySellOrdersBySellerRequest; - toAmino(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestAmino; - fromAminoMsg(object: QuerySellOrdersBySellerRequestAminoMsg): QuerySellOrdersBySellerRequest; - fromProtoMsg(message: QuerySellOrdersBySellerRequestProtoMsg): QuerySellOrdersBySellerRequest; - toProto(message: QuerySellOrdersBySellerRequest): Uint8Array; - toProtoMsg(message: QuerySellOrdersBySellerRequest): QuerySellOrdersBySellerRequestProtoMsg; -}; -export declare const QuerySellOrdersBySellerResponse: { - typeUrl: string; - encode(message: QuerySellOrdersBySellerResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySellOrdersBySellerResponse; - fromPartial(object: Partial): QuerySellOrdersBySellerResponse; - fromAmino(object: QuerySellOrdersBySellerResponseAmino): QuerySellOrdersBySellerResponse; - toAmino(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseAmino; - fromAminoMsg(object: QuerySellOrdersBySellerResponseAminoMsg): QuerySellOrdersBySellerResponse; - fromProtoMsg(message: QuerySellOrdersBySellerResponseProtoMsg): QuerySellOrdersBySellerResponse; - toProto(message: QuerySellOrdersBySellerResponse): Uint8Array; - toProtoMsg(message: QuerySellOrdersBySellerResponse): QuerySellOrdersBySellerResponseProtoMsg; -}; -export declare const QueryAllowedDenomsRequest: { - typeUrl: string; - encode(message: QueryAllowedDenomsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsRequest; - fromPartial(object: Partial): QueryAllowedDenomsRequest; - fromAmino(object: QueryAllowedDenomsRequestAmino): QueryAllowedDenomsRequest; - toAmino(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestAmino; - fromAminoMsg(object: QueryAllowedDenomsRequestAminoMsg): QueryAllowedDenomsRequest; - fromProtoMsg(message: QueryAllowedDenomsRequestProtoMsg): QueryAllowedDenomsRequest; - toProto(message: QueryAllowedDenomsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedDenomsRequest): QueryAllowedDenomsRequestProtoMsg; -}; -export declare const QueryAllowedDenomsResponse: { - typeUrl: string; - encode(message: QueryAllowedDenomsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedDenomsResponse; - fromPartial(object: Partial): QueryAllowedDenomsResponse; - fromAmino(object: QueryAllowedDenomsResponseAmino): QueryAllowedDenomsResponse; - toAmino(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseAmino; - fromAminoMsg(object: QueryAllowedDenomsResponseAminoMsg): QueryAllowedDenomsResponse; - fromProtoMsg(message: QueryAllowedDenomsResponseProtoMsg): QueryAllowedDenomsResponse; - toProto(message: QueryAllowedDenomsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedDenomsResponse): QueryAllowedDenomsResponseProtoMsg; -}; -export declare const SellOrderInfo: { - typeUrl: string; - encode(message: SellOrderInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SellOrderInfo; - fromPartial(object: Partial): SellOrderInfo; - fromAmino(object: SellOrderInfoAmino): SellOrderInfo; - toAmino(message: SellOrderInfo): SellOrderInfoAmino; - fromAminoMsg(object: SellOrderInfoAminoMsg): SellOrderInfo; - fromProtoMsg(message: SellOrderInfoProtoMsg): SellOrderInfo; - toProto(message: SellOrderInfo): Uint8Array; - toProtoMsg(message: SellOrderInfo): SellOrderInfoProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.js deleted file mode 100644 index d3a5d2de..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.js +++ /dev/null @@ -1,870 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SellOrderInfo = exports.QueryAllowedDenomsResponse = exports.QueryAllowedDenomsRequest = exports.QuerySellOrdersBySellerResponse = exports.QuerySellOrdersBySellerRequest = exports.QuerySellOrdersByBatchResponse = exports.QuerySellOrdersByBatchRequest = exports.QuerySellOrdersResponse = exports.QuerySellOrdersRequest = exports.QuerySellOrderResponse = exports.QuerySellOrderRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination"); -const state_1 = require("./state"); -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseQuerySellOrderRequest() { - return { - sellOrderId: BigInt(0) - }; -} -exports.QuerySellOrderRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrderRequest(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrderRequest(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrderRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrderRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrderRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderRequest", - value: exports.QuerySellOrderRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrderResponse() { - return { - sellOrder: undefined - }; -} -exports.QuerySellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrder !== undefined) { - exports.SellOrderInfo.encode(message.sellOrder, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrder = exports.SellOrderInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrderResponse(); - message.sellOrder = object.sellOrder !== undefined && object.sellOrder !== null ? exports.SellOrderInfo.fromPartial(object.sellOrder) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrderResponse(); - if (object.sell_order !== undefined && object.sell_order !== null) { - message.sellOrder = exports.SellOrderInfo.fromAmino(object.sell_order); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order = message.sellOrder ? exports.SellOrderInfo.toAmino(message.sellOrder) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrderResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrderResponse", - value: exports.QuerySellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersRequest() { - return { - pagination: undefined - }; -} -exports.QuerySellOrdersRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersRequest", - value: exports.QuerySellOrdersRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -exports.QuerySellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.sellOrders) { - exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersResponse(); - message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersResponse", - value: exports.QuerySellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchRequest() { - return { - batchDenom: "", - pagination: undefined - }; -} -exports.QuerySellOrdersByBatchRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersByBatchRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchRequest", - value: exports.QuerySellOrdersByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersByBatchResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -exports.QuerySellOrdersByBatchResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.sellOrders) { - exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersByBatchResponse(); - message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersByBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersByBatchResponse", - value: exports.QuerySellOrdersByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerRequest() { - return { - seller: "", - pagination: undefined - }; -} -exports.QuerySellOrdersBySellerRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersBySellerRequest(); - message.seller = object.seller ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersBySellerRequest(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersBySellerRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersBySellerRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersBySellerRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerRequest", - value: exports.QuerySellOrdersBySellerRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySellOrdersBySellerResponse() { - return { - sellOrders: [], - pagination: undefined - }; -} -exports.QuerySellOrdersBySellerResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.sellOrders) { - exports.SellOrderInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySellOrdersBySellerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrders.push(exports.SellOrderInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sellOrders?.map(e => exports.SellOrderInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySellOrdersBySellerResponse(); - message.sellOrders = object.sell_orders?.map(e => exports.SellOrderInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrders) { - obj.sell_orders = message.sellOrders.map(e => e ? exports.SellOrderInfo.toAmino(e) : undefined); - } - else { - obj.sell_orders = message.sellOrders; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySellOrdersBySellerResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySellOrdersBySellerResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySellOrdersBySellerResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QuerySellOrdersBySellerResponse", - value: exports.QuerySellOrdersBySellerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsRequest() { - return { - pagination: undefined - }; -} -exports.QueryAllowedDenomsRequest = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedDenomsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedDenomsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedDenomsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedDenomsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedDenomsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsRequest", - value: exports.QueryAllowedDenomsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedDenomsResponse() { - return { - allowedDenoms: [], - pagination: undefined - }; -} -exports.QueryAllowedDenomsResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowedDenoms) { - state_1.AllowedDenom.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedDenomsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedDenoms.push(state_1.AllowedDenom.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowedDenoms?.map(e => state_1.AllowedDenom.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedDenomsResponse(); - message.allowedDenoms = object.allowed_denoms?.map(e => state_1.AllowedDenom.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? state_1.AllowedDenom.toAmino(e) : undefined); - } - else { - obj.allowed_denoms = message.allowedDenoms; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedDenomsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedDenomsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedDenomsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.QueryAllowedDenomsResponse", - value: exports.QueryAllowedDenomsResponse.encode(message).finish() - }; - } -}; -function createBaseSellOrderInfo() { - return { - id: BigInt(0), - seller: "", - batchDenom: "", - quantity: "", - askDenom: "", - askAmount: "", - disableAutoRetire: false, - expiration: undefined - }; -} -exports.SellOrderInfo = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller !== "") { - writer.uint32(18).string(message.seller); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.askDenom !== "") { - writer.uint32(42).string(message.askDenom); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(74).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrderInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.askDenom = reader.string(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSellOrderInfo(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askDenom = object.askDenom ?? ""; - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSellOrderInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_denom !== undefined && object.ask_denom !== null) { - message.askDenom = object.ask_denom; - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_denom = message.askDenom === "" ? undefined : message.askDenom; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SellOrderInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SellOrderInfo.decode(message.value); - }, - toProto(message) { - return exports.SellOrderInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrderInfo", - value: exports.SellOrderInfo.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts deleted file mode 100644 index ca3ff490..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QuerySellOrderRequest, QuerySellOrderResponseSDKType, QuerySellOrdersRequest, QuerySellOrdersResponseSDKType, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponseSDKType, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponseSDKType, QueryAllowedDenomsRequest, QueryAllowedDenomsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - sellOrder(params: QuerySellOrderRequest): Promise; - sellOrders(params?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(params: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(params: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(params?: QueryAllowedDenomsRequest): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js deleted file mode 100644 index be3a5ad1..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.lcd.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - /* SellOrder queries a sell order by its unique identifier. */ - async sellOrder(params) { - const endpoint = `regen/ecocredit/marketplace/v1/sell-order/${params.sellOrderId}`; - return await this.req.get(endpoint); - } - /* SellOrders queries a paginated list of all sell orders. */ - async sellOrders(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders`; - return await this.req.get(endpoint, options); - } - /* SellOrdersByBatch queries a paginated list of all sell orders based on - the batch denom of the credits being sold. */ - async sellOrdersByBatch(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* SellOrdersBySeller queries a paginated list of all sell orders based on the - account address of the seller. */ - async sellOrdersBySeller(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/sell-orders-by-seller/${params.seller}`; - return await this.req.get(endpoint, options); - } - /* AllowedDenoms queries a paginated list of all bank denoms allowed to be - used in the marketplace. */ - async allowedDenoms(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/marketplace/v1/allowed-denoms`; - return await this.req.get(endpoint, options); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts deleted file mode 100644 index 8edfdc02..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QuerySellOrderRequest, QuerySellOrderResponse, QuerySellOrdersRequest, QuerySellOrdersResponse, QuerySellOrdersByBatchRequest, QuerySellOrdersByBatchResponse, QuerySellOrdersBySellerRequest, QuerySellOrdersBySellerResponse, QueryAllowedDenomsRequest, QueryAllowedDenomsResponse } from "./query"; -/** Msg is the regen.ecocredit.marketplace.v1 Query service. */ -export interface Query { - /** SellOrder queries a sell order by its unique identifier. */ - sellOrder(request: QuerySellOrderRequest): Promise; - /** SellOrders queries a paginated list of all sell orders. */ - sellOrders(request?: QuerySellOrdersRequest): Promise; - /** - * SellOrdersByBatch queries a paginated list of all sell orders based on - * the batch denom of the credits being sold. - */ - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - /** - * SellOrdersBySeller queries a paginated list of all sell orders based on the - * account address of the seller. - */ - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - /** - * AllowedDenoms queries a paginated list of all bank denoms allowed to be - * used in the marketplace. - */ - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - sellOrder(request: QuerySellOrderRequest): Promise; - sellOrders(request?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - sellOrder(request: QuerySellOrderRequest): Promise; - sellOrders(request?: QuerySellOrdersRequest): Promise; - sellOrdersByBatch(request: QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: QueryAllowedDenomsRequest): Promise; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js deleted file mode 100644 index 3d1086f2..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/query.rpc.Query.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.sellOrder = this.sellOrder.bind(this); - this.sellOrders = this.sellOrders.bind(this); - this.sellOrdersByBatch = this.sellOrdersByBatch.bind(this); - this.sellOrdersBySeller = this.sellOrdersBySeller.bind(this); - this.allowedDenoms = this.allowedDenoms.bind(this); - } - sellOrder(request) { - const data = query_1.QuerySellOrderRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrder", data); - return promise.then(data => query_1.QuerySellOrderResponse.decode(new binary_1.BinaryReader(data))); - } - sellOrders(request = { - pagination: undefined - }) { - const data = query_1.QuerySellOrdersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrders", data); - return promise.then(data => query_1.QuerySellOrdersResponse.decode(new binary_1.BinaryReader(data))); - } - sellOrdersByBatch(request) { - const data = query_1.QuerySellOrdersByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersByBatch", data); - return promise.then(data => query_1.QuerySellOrdersByBatchResponse.decode(new binary_1.BinaryReader(data))); - } - sellOrdersBySeller(request) { - const data = query_1.QuerySellOrdersBySellerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "SellOrdersBySeller", data); - return promise.then(data => query_1.QuerySellOrdersBySellerResponse.decode(new binary_1.BinaryReader(data))); - } - allowedDenoms(request = { - pagination: undefined - }) { - const data = query_1.QueryAllowedDenomsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Query", "AllowedDenoms", data); - return promise.then(data => query_1.QueryAllowedDenomsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - sellOrder(request) { - return queryService.sellOrder(request); - }, - sellOrders(request) { - return queryService.sellOrders(request); - }, - sellOrdersByBatch(request) { - return queryService.sellOrdersByBatch(request); - }, - sellOrdersBySeller(request) { - return queryService.sellOrdersBySeller(request); - }, - allowedDenoms(request) { - return queryService.allowedDenoms(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts deleted file mode 100644 index a7c6a4da..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/state.d.ts +++ /dev/null @@ -1,306 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** SellOrder represents the information for a sell order. */ -export interface SellOrder { - /** id is the unique ID of sell order. */ - id: bigint; - /** seller is the address of the account that is selling credits. */ - seller: Uint8Array; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batchKey: bigint; - /** quantity is the decimal quantity of credits being sold. */ - quantity: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - marketId: bigint; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - askAmount: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Date; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker: boolean; -} -export interface SellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: Uint8Array; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderAmino { - /** id is the unique ID of sell order. */ - id?: string; - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a sell order to a credit batch. - */ - batch_key?: string; - /** quantity is the decimal quantity of credits being sold. */ - quantity?: string; - /** - * market_id is the market in which this sell order exists and specifies - * the bank_denom that ask_amount corresponds to forming the ask_price. - */ - market_id?: string; - /** - * ask_amount is the integer amount (encoded as a string) that the seller is - * asking for each credit unit of the batch. Each credit unit of the batch - * will be sold for at least the ask_amount. The ask_amount corresponds to the - * Market.denom to form the ask price. - */ - ask_amount?: string; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; - /** - * maker indicates that this is a maker order, meaning that when it hit - * the order book, there were no matching buy orders. - */ - maker?: boolean; -} -export interface SellOrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.SellOrder"; - value: SellOrderAmino; -} -/** SellOrder represents the information for a sell order. */ -export interface SellOrderSDKType { - id: bigint; - seller: Uint8Array; - batch_key: bigint; - quantity: string; - market_id: bigint; - ask_amount: string; - disable_auto_retire: boolean; - expiration?: Date; - maker: boolean; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: Uint8Array; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** AllowedDenom represents the information for an allowed ask/bid denom. */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface Market { - /** id is the unique ID of the market. */ - id: bigint; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; - /** bank_denom is an allowed bank denom. */ - bankDenom: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precisionModifier: number; -} -export interface MarketProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Market"; - value: Uint8Array; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketAmino { - /** id is the unique ID of the market. */ - id?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; - /** bank_denom is an allowed bank denom. */ - bank_denom?: string; - /** - * precision_modifier is an optional modifier used to convert arbitrary - * precision integer bank amounts to uint32 values used for sorting in the - * order book. Given an arbitrary precision integer x, its uint32 conversion - * will be x / 10^precision_modifier using round half away from zero - * rounding. - * - * uint32 values range from 0 to 4,294,967,295. - * This allows for a full 9 digits of precision. In most real world markets - * this amount of precision is sufficient and most common downside - - * that some orders with very miniscule price differences may be ordered - * equivalently (because of rounding) - is acceptable. - * Note that this rounding will not affect settlement price which will - * always be done exactly. - * - * Given a USD stable coin with 6 decimal digits, a precision_modifier - * of 0 is probably acceptable as long as credits are always less than - * $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 - * in this case), prices can rise up to $4,294,000/unit. Either scenario - * is probably quite acceptable given that carbon prices are unlikely to - * rise above $1000/ton any time in the near future. - * - * If credit prices, exceed the maximum range of uint32 with this - * precision_modifier, orders with high prices will fail and governance - * will need to adjust precision_modifier to allow for higher prices in - * exchange for less precision at the lower end. - */ - precision_modifier?: number; -} -export interface MarketAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Market"; - value: MarketAmino; -} -/** - * Market describes a distinctly processed market between a credit type and - * allowed bank denom. Each market has its own precision in the order book - * and is processed independently of other markets. Governance must enable - * markets one by one. Every additional enabled market potentially adds more - * processing overhead to the blockchain and potentially weakens liquidity in - * competing markets. For instance, enabling side by side USD/Carbon and - * EUR/Carbon markets may have the end result that each market individually has - * less liquidity and longer settlement times. Such decisions should be taken - * with care. - */ -export interface MarketSDKType { - id: bigint; - credit_type_abbrev: string; - bank_denom: string; - precision_modifier: number; -} -export declare const SellOrder: { - typeUrl: string; - encode(message: SellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SellOrder; - fromPartial(object: Partial): SellOrder; - fromAmino(object: SellOrderAmino): SellOrder; - toAmino(message: SellOrder): SellOrderAmino; - fromAminoMsg(object: SellOrderAminoMsg): SellOrder; - fromProtoMsg(message: SellOrderProtoMsg): SellOrder; - toProto(message: SellOrder): Uint8Array; - toProtoMsg(message: SellOrder): SellOrderProtoMsg; -}; -export declare const AllowedDenom: { - typeUrl: string; - encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; - fromPartial(object: Partial): AllowedDenom; - fromAmino(object: AllowedDenomAmino): AllowedDenom; - toAmino(message: AllowedDenom): AllowedDenomAmino; - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; - toProto(message: AllowedDenom): Uint8Array; - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; -}; -export declare const Market: { - typeUrl: string; - encode(message: Market, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Market; - fromPartial(object: Partial): Market; - fromAmino(object: MarketAmino): Market; - toAmino(message: Market): MarketAmino; - fromAminoMsg(object: MarketAminoMsg): Market; - fromProtoMsg(message: MarketProtoMsg): Market; - toProto(message: Market): Uint8Array; - toProtoMsg(message: Market): MarketProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/state.js b/packages/api/dist/regen/ecocredit/marketplace/v1/state.js deleted file mode 100644 index cf9f3208..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/state.js +++ /dev/null @@ -1,352 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Market = exports.AllowedDenom = exports.SellOrder = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseSellOrder() { - return { - id: BigInt(0), - seller: new Uint8Array(), - batchKey: BigInt(0), - quantity: "", - marketId: BigInt(0), - askAmount: "", - disableAutoRetire: false, - expiration: undefined, - maker: false - }; -} -exports.SellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.seller.length !== 0) { - writer.uint32(18).bytes(message.seller); - } - if (message.batchKey !== BigInt(0)) { - writer.uint32(24).uint64(message.batchKey); - } - if (message.quantity !== "") { - writer.uint32(34).string(message.quantity); - } - if (message.marketId !== BigInt(0)) { - writer.uint32(40).uint64(message.marketId); - } - if (message.askAmount !== "") { - writer.uint32(50).string(message.askAmount); - } - if (message.disableAutoRetire === true) { - writer.uint32(56).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(74).fork()).ldelim(); - } - if (message.maker === true) { - writer.uint32(80).bool(message.maker); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.seller = reader.bytes(); - break; - case 3: - message.batchKey = reader.uint64(); - break; - case 4: - message.quantity = reader.string(); - break; - case 5: - message.marketId = reader.uint64(); - break; - case 6: - message.askAmount = reader.string(); - break; - case 7: - message.disableAutoRetire = reader.bool(); - break; - case 9: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.maker = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSellOrder(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.seller = object.seller ?? new Uint8Array(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.askAmount = object.askAmount ?? ""; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - message.maker = object.maker ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseSellOrder(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.seller !== undefined && object.seller !== null) { - message.seller = (0, helpers_1.bytesFromBase64)(object.seller); - } - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.ask_amount !== undefined && object.ask_amount !== null) { - message.askAmount = object.ask_amount; - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - if (object.maker !== undefined && object.maker !== null) { - message.maker = object.maker; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.seller = message.seller ? (0, helpers_1.base64FromBytes)(message.seller) : undefined; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.ask_amount = message.askAmount === "" ? undefined : message.askAmount; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - obj.maker = message.maker === false ? undefined : message.maker; - return obj; - }, - fromAminoMsg(object) { - return exports.SellOrder.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SellOrder.decode(message.value); - }, - toProto(message) { - return exports.SellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.SellOrder", - value: exports.SellOrder.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom() { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -exports.AllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return exports.AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AllowedDenom.decode(message.value); - }, - toProto(message) { - return exports.AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowedDenom", - value: exports.AllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMarket() { - return { - id: BigInt(0), - creditTypeAbbrev: "", - bankDenom: "", - precisionModifier: 0 - }; -} -exports.Market = { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== BigInt(0)) { - writer.uint32(8).uint64(message.id); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(18).string(message.creditTypeAbbrev); - } - if (message.bankDenom !== "") { - writer.uint32(26).string(message.bankDenom); - } - if (message.precisionModifier !== 0) { - writer.uint32(32).uint32(message.precisionModifier); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMarket(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint64(); - break; - case 2: - message.creditTypeAbbrev = reader.string(); - break; - case 3: - message.bankDenom = reader.string(); - break; - case 4: - message.precisionModifier = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMarket(); - message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.precisionModifier = object.precisionModifier ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMarket(); - if (object.id !== undefined && object.id !== null) { - message.id = BigInt(object.id); - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.precision_modifier !== undefined && object.precision_modifier !== null) { - message.precisionModifier = object.precision_modifier; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id !== BigInt(0) ? message.id.toString() : undefined; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.precision_modifier = message.precisionModifier === 0 ? undefined : message.precisionModifier; - return obj; - }, - fromAminoMsg(object) { - return exports.Market.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Market.decode(message.value); - }, - toProto(message) { - return exports.Market.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Market", - value: exports.Market.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts deleted file mode 100644 index d17e5b87..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: string; - toAmino: (message: MsgSell) => import("./tx").MsgSellAmino; - fromAmino: (object: import("./tx").MsgSellAmino) => MsgSell; - }; - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: string; - toAmino: (message: MsgUpdateSellOrders) => import("./tx").MsgUpdateSellOrdersAmino; - fromAmino: (object: import("./tx").MsgUpdateSellOrdersAmino) => MsgUpdateSellOrders; - }; - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: string; - toAmino: (message: MsgCancelSellOrder) => import("./tx").MsgCancelSellOrderAmino; - fromAmino: (object: import("./tx").MsgCancelSellOrderAmino) => MsgCancelSellOrder; - }; - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: string; - toAmino: (message: MsgBuyDirect) => import("./tx").MsgBuyDirectAmino; - fromAmino: (object: import("./tx").MsgBuyDirectAmino) => MsgBuyDirect; - }; - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: string; - toAmino: (message: MsgAddAllowedDenom) => import("./tx").MsgAddAllowedDenomAmino; - fromAmino: (object: import("./tx").MsgAddAllowedDenomAmino) => MsgAddAllowedDenom; - }; - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: string; - toAmino: (message: MsgRemoveAllowedDenom) => import("./tx").MsgRemoveAllowedDenomAmino; - fromAmino: (object: import("./tx").MsgRemoveAllowedDenomAmino) => MsgRemoveAllowedDenom; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js deleted file mode 100644 index 3e3f3d52..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.amino.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.ecocredit.marketplace.v1.MsgSell": { - aminoType: "regen.marketplace/MsgSell", - toAmino: tx_1.MsgSell.toAmino, - fromAmino: tx_1.MsgSell.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders": { - aminoType: "regen.marketplace/MsgUpdateSellOrders", - toAmino: tx_1.MsgUpdateSellOrders.toAmino, - fromAmino: tx_1.MsgUpdateSellOrders.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder": { - aminoType: "regen.marketplace/MsgCancelSellOrder", - toAmino: tx_1.MsgCancelSellOrder.toAmino, - fromAmino: tx_1.MsgCancelSellOrder.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgBuyDirect": { - aminoType: "regen.marketplace/MsgBuyDirect", - toAmino: tx_1.MsgBuyDirect.toAmino, - fromAmino: tx_1.MsgBuyDirect.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom": { - aminoType: "regen.marketplace/MsgAddAllowedDenom", - toAmino: tx_1.MsgAddAllowedDenom.toAmino, - fromAmino: tx_1.MsgAddAllowedDenom.fromAmino - }, - "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom": { - aminoType: "regen.marketplace/MsgRemoveAllowedDenom", - toAmino: tx_1.MsgRemoveAllowedDenom.toAmino, - fromAmino: tx_1.MsgRemoveAllowedDenom.fromAmino - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts deleted file mode 100644 index 719c406a..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.d.ts +++ /dev/null @@ -1,748 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSell { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** orders are the sell orders being created. */ - orders: MsgSell_Order[]; -} -export interface MsgSellProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell"; - value: Uint8Array; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** orders are the sell orders being created. */ - orders?: MsgSell_OrderAmino[]; -} -export interface MsgSellAminoMsg { - type: "regen.marketplace/MsgSell"; - value: MsgSellAmino; -} -/** MsgSell is the Msg/Sell request type. */ -export interface MsgSellSDKType { - seller: string; - orders: MsgSell_OrderSDKType[]; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_Order { - /** batch_denom is the credit batch being sold. */ - batchDenom: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - askPrice?: Coin; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disableAutoRetire: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: Date; -} -export interface MsgSell_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderAmino { - /** batch_denom is the credit batch being sold. */ - batch_denom?: string; - /** - * quantity is the quantity of credits being sold from this batch. If it is - * less then the balance of credits the owner has available at the time this - * sell order is matched, the quantity will be adjusted downwards to the - * owner's balance. However, if the balance of credits is less than this - * quantity at the time the sell order is created, the operation will fail. - */ - quantity?: string; - /** - * ask_price is the price the seller is asking for each unit of the - * batch_denom. Each credit unit of the batch will be sold for at least the - * ask_price or more. - */ - ask_price?: CoinAmino; - /** - * disable_auto_retire disables auto-retirement of credits which allows a - * buyer to disable auto-retirement in their buy order enabling them to - * resell the credits to another buyer. - */ - disable_auto_retire?: boolean; - /** - * expiration is an optional timestamp when the sell order expires. When the - * expiration time is reached, the sell order is removed from state. - */ - expiration?: string; -} -export interface MsgSell_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgSell_OrderAmino; -} -/** Order is the content of a new sell order. */ -export interface MsgSell_OrderSDKType { - batch_denom: string; - quantity: string; - ask_price?: CoinSDKType; - disable_auto_retire: boolean; - expiration?: Date; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponse { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sellOrderIds: bigint[]; -} -export interface MsgSellResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: Uint8Array; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseAmino { - /** sell_order_ids are the sell order IDs of the newly created sell orders. */ - sell_order_ids?: string[]; -} -export interface MsgSellResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgSellResponse"; - value: MsgSellResponseAmino; -} -/** MsgSellResponse is the Msg/Sell response type. */ -export interface MsgSellResponseSDKType { - sell_order_ids: bigint[]; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrders { - /** seller is the address of the account that is selling credits. */ - seller: string; - /** updates are updates to existing sell orders. */ - updates: MsgUpdateSellOrders_Update[]; -} -export interface MsgUpdateSellOrdersProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders"; - value: Uint8Array; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersAmino { - /** seller is the address of the account that is selling credits. */ - seller?: string; - /** updates are updates to existing sell orders. */ - updates?: MsgUpdateSellOrders_UpdateAmino[]; -} -export interface MsgUpdateSellOrdersAminoMsg { - type: "regen.marketplace/MsgUpdateSellOrders"; - value: MsgUpdateSellOrdersAmino; -} -/** MsgUpdateSellOrders is the Msg/UpdateSellOrders request type. */ -export interface MsgUpdateSellOrdersSDKType { - seller: string; - updates: MsgUpdateSellOrders_UpdateSDKType[]; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_Update { - /** sell_order_id is the ID of an existing sell order. */ - sellOrderId: bigint; - /** new_quantity is the updated quantity of credits available to sell. */ - newQuantity: string; - /** new_ask_price is the new ask price for this sell order */ - newAskPrice?: Coin; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disableAutoRetire: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - newExpiration?: Date; -} -export interface MsgUpdateSellOrders_UpdateProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Update"; - value: Uint8Array; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateAmino { - /** sell_order_id is the ID of an existing sell order. */ - sell_order_id?: string; - /** new_quantity is the updated quantity of credits available to sell. */ - new_quantity?: string; - /** new_ask_price is the new ask price for this sell order */ - new_ask_price?: CoinAmino; - /** - * disable_auto_retire updates the disable_auto_retire field in the sell - * order. - */ - disable_auto_retire?: boolean; - /** - * new_expiration is an optional timestamp when the sell order expires. When - * the expiration time is reached, the sell order is removed from state. - */ - new_expiration?: string; -} -export interface MsgUpdateSellOrders_UpdateAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Update"; - value: MsgUpdateSellOrders_UpdateAmino; -} -/** Update is an update to an existing sell order. */ -export interface MsgUpdateSellOrders_UpdateSDKType { - sell_order_id: bigint; - new_quantity: string; - new_ask_price?: CoinSDKType; - disable_auto_retire: boolean; - new_expiration?: Date; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponse { -} -export interface MsgUpdateSellOrdersResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: Uint8Array; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseAmino { -} -export interface MsgUpdateSellOrdersResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse"; - value: MsgUpdateSellOrdersResponseAmino; -} -/** MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type. */ -export interface MsgUpdateSellOrdersResponseSDKType { -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrder { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller: string; - /** sell_order_id is the id of the seller order to cancel. */ - sellOrderId: bigint; -} -export interface MsgCancelSellOrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderAmino { - /** - * seller is the address of the account that created the sell order and is - * therefore authorized to cancel the sell order. - */ - seller?: string; - /** sell_order_id is the id of the seller order to cancel. */ - sell_order_id?: string; -} -export interface MsgCancelSellOrderAminoMsg { - type: "regen.marketplace/MsgCancelSellOrder"; - value: MsgCancelSellOrderAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder request type. */ -export interface MsgCancelSellOrderSDKType { - seller: string; - sell_order_id: bigint; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponse { -} -export interface MsgCancelSellOrderResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: Uint8Array; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseAmino { -} -export interface MsgCancelSellOrderResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse"; - value: MsgCancelSellOrderResponseAmino; -} -/** MsgCancelSellOrder is the Msg/CancelSellOrder response type. */ -export interface MsgCancelSellOrderResponseSDKType { -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirect { - /** buyer is the address of the account that is buying credits. */ - buyer: string; - /** orders is a list of orders for ecocredits. */ - orders: MsgBuyDirect_Order[]; -} -export interface MsgBuyDirectProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect"; - value: Uint8Array; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectAmino { - /** buyer is the address of the account that is buying credits. */ - buyer?: string; - /** orders is a list of orders for ecocredits. */ - orders?: MsgBuyDirect_OrderAmino[]; -} -export interface MsgBuyDirectAminoMsg { - type: "regen.marketplace/MsgBuyDirect"; - value: MsgBuyDirectAmino; -} -/** MsgBuyDirect is the Msg/BuyDirect request type. */ -export interface MsgBuyDirectSDKType { - buyer: string; - orders: MsgBuyDirect_OrderSDKType[]; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_Order { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sellOrderId: bigint; - /** quantity is the quantity of credits to buy. */ - quantity: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bidPrice?: Coin; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disableAutoRetire: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirementReason: string; -} -export interface MsgBuyDirect_OrderProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.Order"; - value: Uint8Array; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderAmino { - /** - * sell_order_id is the sell order ID against which the buyer is trying - * to buy. - */ - sell_order_id?: string; - /** quantity is the quantity of credits to buy. */ - quantity?: string; - /** bid_price is the price the buyer is willing to pay per credit. */ - bid_price?: CoinAmino; - /** - * disable_auto_retire allows auto-retirement to be disabled. If it is set - * to true the credits will not auto-retire and can be resold assuming that - * the corresponding sell order has auto-retirement disabled. If the sell - * order hasn't disabled auto-retirement and the buy order tries to disable - * it, that buy order will fail. - */ - disable_auto_retire?: boolean; - /** - * retirement_jurisdiction is the optional retirement jurisdiction for the - * credits which will be used only if disable_auto_retire is false. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 1 - */ - retirement_reason?: string; -} -export interface MsgBuyDirect_OrderAminoMsg { - type: "/regen.ecocredit.marketplace.v1.Order"; - value: MsgBuyDirect_OrderAmino; -} -/** Order contains the information needed to purchase an ecocredit. */ -export interface MsgBuyDirect_OrderSDKType { - sell_order_id: bigint; - quantity: string; - bid_price?: CoinSDKType; - disable_auto_retire: boolean; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponse { -} -export interface MsgBuyDirectResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: Uint8Array; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseAmino { -} -export interface MsgBuyDirectResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse"; - value: MsgBuyDirectResponseAmino; -} -/** MsgBuyDirectResponse is the Msg/BuyDirect response type. */ -export interface MsgBuyDirectResponseSDKType { -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface MsgAddAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface MsgAddAllowedDenomAminoMsg { - type: "regen.marketplace/MsgAddAllowedDenom"; - value: MsgAddAllowedDenomAmino; -} -/** - * MsgAddAllowedDenom is the Msg/AddAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomSDKType { - authority: string; - bank_denom: string; - display_denom: string; - exponent: number; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponse { -} -export interface MsgAddAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseAmino { -} -export interface MsgAddAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse"; - value: MsgAddAllowedDenomResponseAmino; -} -/** - * MsgAddAllowedDenomResponse is the Msg/AddAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgAddAllowedDenomResponseSDKType { -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenom { - /** authority is the address of the governance account. */ - authority: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom: string; -} -export interface MsgRemoveAllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** denom is the denom to remove (ex. ibc/GLKHDSG423SGS) */ - denom?: string; -} -export interface MsgRemoveAllowedDenomAminoMsg { - type: "regen.marketplace/MsgRemoveAllowedDenom"; - value: MsgRemoveAllowedDenomAmino; -} -/** - * MsgRemoveAllowedDenom is the Msg/RemoveAllowedDenom request type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomSDKType { - authority: string; - denom: string; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponse { -} -export interface MsgRemoveAllowedDenomResponseProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseAmino { -} -export interface MsgRemoveAllowedDenomResponseAminoMsg { - type: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse"; - value: MsgRemoveAllowedDenomResponseAmino; -} -/** - * MsgRemoveAllowedDenomResponse is the Msg/RemoveAllowedDenom response type. - * - * Since Revision 1 - */ -export interface MsgRemoveAllowedDenomResponseSDKType { -} -export declare const MsgSell: { - typeUrl: string; - encode(message: MsgSell, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell; - fromPartial(object: Partial): MsgSell; - fromAmino(object: MsgSellAmino): MsgSell; - toAmino(message: MsgSell): MsgSellAmino; - fromAminoMsg(object: MsgSellAminoMsg): MsgSell; - toAminoMsg(message: MsgSell): MsgSellAminoMsg; - fromProtoMsg(message: MsgSellProtoMsg): MsgSell; - toProto(message: MsgSell): Uint8Array; - toProtoMsg(message: MsgSell): MsgSellProtoMsg; -}; -export declare const MsgSell_Order: { - typeUrl: string; - encode(message: MsgSell_Order, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSell_Order; - fromPartial(object: Partial): MsgSell_Order; - fromAmino(object: MsgSell_OrderAmino): MsgSell_Order; - toAmino(message: MsgSell_Order): MsgSell_OrderAmino; - fromAminoMsg(object: MsgSell_OrderAminoMsg): MsgSell_Order; - fromProtoMsg(message: MsgSell_OrderProtoMsg): MsgSell_Order; - toProto(message: MsgSell_Order): Uint8Array; - toProtoMsg(message: MsgSell_Order): MsgSell_OrderProtoMsg; -}; -export declare const MsgSellResponse: { - typeUrl: string; - encode(message: MsgSellResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSellResponse; - fromPartial(object: Partial): MsgSellResponse; - fromAmino(object: MsgSellResponseAmino): MsgSellResponse; - toAmino(message: MsgSellResponse): MsgSellResponseAmino; - fromAminoMsg(object: MsgSellResponseAminoMsg): MsgSellResponse; - fromProtoMsg(message: MsgSellResponseProtoMsg): MsgSellResponse; - toProto(message: MsgSellResponse): Uint8Array; - toProtoMsg(message: MsgSellResponse): MsgSellResponseProtoMsg; -}; -export declare const MsgUpdateSellOrders: { - typeUrl: string; - encode(message: MsgUpdateSellOrders, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders; - fromPartial(object: Partial): MsgUpdateSellOrders; - fromAmino(object: MsgUpdateSellOrdersAmino): MsgUpdateSellOrders; - toAmino(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAmino; - fromAminoMsg(object: MsgUpdateSellOrdersAminoMsg): MsgUpdateSellOrders; - toAminoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersAminoMsg; - fromProtoMsg(message: MsgUpdateSellOrdersProtoMsg): MsgUpdateSellOrders; - toProto(message: MsgUpdateSellOrders): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrders): MsgUpdateSellOrdersProtoMsg; -}; -export declare const MsgUpdateSellOrders_Update: { - typeUrl: string; - encode(message: MsgUpdateSellOrders_Update, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrders_Update; - fromPartial(object: Partial): MsgUpdateSellOrders_Update; - fromAmino(object: MsgUpdateSellOrders_UpdateAmino): MsgUpdateSellOrders_Update; - toAmino(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateAmino; - fromAminoMsg(object: MsgUpdateSellOrders_UpdateAminoMsg): MsgUpdateSellOrders_Update; - fromProtoMsg(message: MsgUpdateSellOrders_UpdateProtoMsg): MsgUpdateSellOrders_Update; - toProto(message: MsgUpdateSellOrders_Update): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrders_Update): MsgUpdateSellOrders_UpdateProtoMsg; -}; -export declare const MsgUpdateSellOrdersResponse: { - typeUrl: string; - encode(_: MsgUpdateSellOrdersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateSellOrdersResponse; - fromPartial(_: Partial): MsgUpdateSellOrdersResponse; - fromAmino(_: MsgUpdateSellOrdersResponseAmino): MsgUpdateSellOrdersResponse; - toAmino(_: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseAmino; - fromAminoMsg(object: MsgUpdateSellOrdersResponseAminoMsg): MsgUpdateSellOrdersResponse; - fromProtoMsg(message: MsgUpdateSellOrdersResponseProtoMsg): MsgUpdateSellOrdersResponse; - toProto(message: MsgUpdateSellOrdersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateSellOrdersResponse): MsgUpdateSellOrdersResponseProtoMsg; -}; -export declare const MsgCancelSellOrder: { - typeUrl: string; - encode(message: MsgCancelSellOrder, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrder; - fromPartial(object: Partial): MsgCancelSellOrder; - fromAmino(object: MsgCancelSellOrderAmino): MsgCancelSellOrder; - toAmino(message: MsgCancelSellOrder): MsgCancelSellOrderAmino; - fromAminoMsg(object: MsgCancelSellOrderAminoMsg): MsgCancelSellOrder; - toAminoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderAminoMsg; - fromProtoMsg(message: MsgCancelSellOrderProtoMsg): MsgCancelSellOrder; - toProto(message: MsgCancelSellOrder): Uint8Array; - toProtoMsg(message: MsgCancelSellOrder): MsgCancelSellOrderProtoMsg; -}; -export declare const MsgCancelSellOrderResponse: { - typeUrl: string; - encode(_: MsgCancelSellOrderResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelSellOrderResponse; - fromPartial(_: Partial): MsgCancelSellOrderResponse; - fromAmino(_: MsgCancelSellOrderResponseAmino): MsgCancelSellOrderResponse; - toAmino(_: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseAmino; - fromAminoMsg(object: MsgCancelSellOrderResponseAminoMsg): MsgCancelSellOrderResponse; - fromProtoMsg(message: MsgCancelSellOrderResponseProtoMsg): MsgCancelSellOrderResponse; - toProto(message: MsgCancelSellOrderResponse): Uint8Array; - toProtoMsg(message: MsgCancelSellOrderResponse): MsgCancelSellOrderResponseProtoMsg; -}; -export declare const MsgBuyDirect: { - typeUrl: string; - encode(message: MsgBuyDirect, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect; - fromPartial(object: Partial): MsgBuyDirect; - fromAmino(object: MsgBuyDirectAmino): MsgBuyDirect; - toAmino(message: MsgBuyDirect): MsgBuyDirectAmino; - fromAminoMsg(object: MsgBuyDirectAminoMsg): MsgBuyDirect; - toAminoMsg(message: MsgBuyDirect): MsgBuyDirectAminoMsg; - fromProtoMsg(message: MsgBuyDirectProtoMsg): MsgBuyDirect; - toProto(message: MsgBuyDirect): Uint8Array; - toProtoMsg(message: MsgBuyDirect): MsgBuyDirectProtoMsg; -}; -export declare const MsgBuyDirect_Order: { - typeUrl: string; - encode(message: MsgBuyDirect_Order, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirect_Order; - fromPartial(object: Partial): MsgBuyDirect_Order; - fromAmino(object: MsgBuyDirect_OrderAmino): MsgBuyDirect_Order; - toAmino(message: MsgBuyDirect_Order): MsgBuyDirect_OrderAmino; - fromAminoMsg(object: MsgBuyDirect_OrderAminoMsg): MsgBuyDirect_Order; - fromProtoMsg(message: MsgBuyDirect_OrderProtoMsg): MsgBuyDirect_Order; - toProto(message: MsgBuyDirect_Order): Uint8Array; - toProtoMsg(message: MsgBuyDirect_Order): MsgBuyDirect_OrderProtoMsg; -}; -export declare const MsgBuyDirectResponse: { - typeUrl: string; - encode(_: MsgBuyDirectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBuyDirectResponse; - fromPartial(_: Partial): MsgBuyDirectResponse; - fromAmino(_: MsgBuyDirectResponseAmino): MsgBuyDirectResponse; - toAmino(_: MsgBuyDirectResponse): MsgBuyDirectResponseAmino; - fromAminoMsg(object: MsgBuyDirectResponseAminoMsg): MsgBuyDirectResponse; - fromProtoMsg(message: MsgBuyDirectResponseProtoMsg): MsgBuyDirectResponse; - toProto(message: MsgBuyDirectResponse): Uint8Array; - toProtoMsg(message: MsgBuyDirectResponse): MsgBuyDirectResponseProtoMsg; -}; -export declare const MsgAddAllowedDenom: { - typeUrl: string; - encode(message: MsgAddAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenom; - fromPartial(object: Partial): MsgAddAllowedDenom; - fromAmino(object: MsgAddAllowedDenomAmino): MsgAddAllowedDenom; - toAmino(message: MsgAddAllowedDenom): MsgAddAllowedDenomAmino; - fromAminoMsg(object: MsgAddAllowedDenomAminoMsg): MsgAddAllowedDenom; - toAminoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomAminoMsg; - fromProtoMsg(message: MsgAddAllowedDenomProtoMsg): MsgAddAllowedDenom; - toProto(message: MsgAddAllowedDenom): Uint8Array; - toProtoMsg(message: MsgAddAllowedDenom): MsgAddAllowedDenomProtoMsg; -}; -export declare const MsgAddAllowedDenomResponse: { - typeUrl: string; - encode(_: MsgAddAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedDenomResponse; - fromPartial(_: Partial): MsgAddAllowedDenomResponse; - fromAmino(_: MsgAddAllowedDenomResponseAmino): MsgAddAllowedDenomResponse; - toAmino(_: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseAmino; - fromAminoMsg(object: MsgAddAllowedDenomResponseAminoMsg): MsgAddAllowedDenomResponse; - fromProtoMsg(message: MsgAddAllowedDenomResponseProtoMsg): MsgAddAllowedDenomResponse; - toProto(message: MsgAddAllowedDenomResponse): Uint8Array; - toProtoMsg(message: MsgAddAllowedDenomResponse): MsgAddAllowedDenomResponseProtoMsg; -}; -export declare const MsgRemoveAllowedDenom: { - typeUrl: string; - encode(message: MsgRemoveAllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenom; - fromPartial(object: Partial): MsgRemoveAllowedDenom; - fromAmino(object: MsgRemoveAllowedDenomAmino): MsgRemoveAllowedDenom; - toAmino(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAmino; - fromAminoMsg(object: MsgRemoveAllowedDenomAminoMsg): MsgRemoveAllowedDenom; - toAminoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomAminoMsg; - fromProtoMsg(message: MsgRemoveAllowedDenomProtoMsg): MsgRemoveAllowedDenom; - toProto(message: MsgRemoveAllowedDenom): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedDenom): MsgRemoveAllowedDenomProtoMsg; -}; -export declare const MsgRemoveAllowedDenomResponse: { - typeUrl: string; - encode(_: MsgRemoveAllowedDenomResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedDenomResponse; - fromPartial(_: Partial): MsgRemoveAllowedDenomResponse; - fromAmino(_: MsgRemoveAllowedDenomResponseAmino): MsgRemoveAllowedDenomResponse; - toAmino(_: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseAmino; - fromAminoMsg(object: MsgRemoveAllowedDenomResponseAminoMsg): MsgRemoveAllowedDenomResponse; - fromProtoMsg(message: MsgRemoveAllowedDenomResponseProtoMsg): MsgRemoveAllowedDenomResponse; - toProto(message: MsgRemoveAllowedDenomResponse): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedDenomResponse): MsgRemoveAllowedDenomResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js deleted file mode 100644 index 51a511d3..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.js +++ /dev/null @@ -1,1198 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgRemoveAllowedDenomResponse = exports.MsgRemoveAllowedDenom = exports.MsgAddAllowedDenomResponse = exports.MsgAddAllowedDenom = exports.MsgBuyDirectResponse = exports.MsgBuyDirect_Order = exports.MsgBuyDirect = exports.MsgCancelSellOrderResponse = exports.MsgCancelSellOrder = exports.MsgUpdateSellOrdersResponse = exports.MsgUpdateSellOrders_Update = exports.MsgUpdateSellOrders = exports.MsgSellResponse = exports.MsgSell_Order = exports.MsgSell = void 0; -//@ts-nocheck -const coin_1 = require("../../../../cosmos/base/v1beta1/coin"); -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseMsgSell() { - return { - seller: "", - orders: [] - }; -} -exports.MsgSell = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.orders) { - exports.MsgSell_Order.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.orders.push(exports.MsgSell_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSell(); - message.seller = object.seller ?? ""; - message.orders = object.orders?.map(e => exports.MsgSell_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSell(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.orders = object.orders?.map(e => exports.MsgSell_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.orders) { - obj.orders = message.orders.map(e => e ? exports.MsgSell_Order.toAmino(e) : undefined); - } - else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSell.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgSell", - value: exports.MsgSell.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSell.decode(message.value); - }, - toProto(message) { - return exports.MsgSell.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: exports.MsgSell.encode(message).finish() - }; - } -}; -function createBaseMsgSell_Order() { - return { - batchDenom: "", - quantity: "", - askPrice: undefined, - disableAutoRetire: false, - expiration: undefined - }; -} -exports.MsgSell_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.quantity !== "") { - writer.uint32(18).string(message.quantity); - } - if (message.askPrice !== undefined) { - coin_1.Coin.encode(message.askPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.expiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.expiration), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSell_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.quantity = reader.string(); - break; - case 3: - message.askPrice = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSell_Order(); - message.batchDenom = object.batchDenom ?? ""; - message.quantity = object.quantity ?? ""; - message.askPrice = object.askPrice !== undefined && object.askPrice !== null ? coin_1.Coin.fromPartial(object.askPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.expiration = object.expiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSell_Order(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = coin_1.Coin.fromAmino(object.ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.expiration !== undefined && object.expiration !== null) { - message.expiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.ask_price = message.askPrice ? coin_1.Coin.toAmino(message.askPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.expiration = message.expiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.expiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSell_Order.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSell_Order.decode(message.value); - }, - toProto(message) { - return exports.MsgSell_Order.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: exports.MsgSell_Order.encode(message).finish() - }; - } -}; -function createBaseMsgSellResponse() { - return { - sellOrderIds: [] - }; -} -exports.MsgSellResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - writer.uint32(10).fork(); - for (const v of message.sellOrderIds) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSellResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.sellOrderIds.push(reader.uint64()); - } - } - else { - message.sellOrderIds.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sellOrderIds?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSellResponse(); - message.sellOrderIds = object.sell_order_ids?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.sellOrderIds) { - obj.sell_order_ids = message.sellOrderIds.map(e => e.toString()); - } - else { - obj.sell_order_ids = message.sellOrderIds; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSellResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSellResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSellResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSellResponse", - value: exports.MsgSellResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders() { - return { - seller: "", - updates: [] - }; -} -exports.MsgUpdateSellOrders = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - for (const v of message.updates) { - exports.MsgUpdateSellOrders_Update.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.updates.push(exports.MsgUpdateSellOrders_Update.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateSellOrders(); - message.seller = object.seller ?? ""; - message.updates = object.updates?.map(e => exports.MsgUpdateSellOrders_Update.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateSellOrders(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - message.updates = object.updates?.map(e => exports.MsgUpdateSellOrders_Update.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - if (message.updates) { - obj.updates = message.updates.map(e => e ? exports.MsgUpdateSellOrders_Update.toAmino(e) : undefined); - } - else { - obj.updates = message.updates; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateSellOrders.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgUpdateSellOrders", - value: exports.MsgUpdateSellOrders.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateSellOrders.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateSellOrders.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: exports.MsgUpdateSellOrders.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrders_Update() { - return { - sellOrderId: BigInt(0), - newQuantity: "", - newAskPrice: undefined, - disableAutoRetire: false, - newExpiration: undefined - }; -} -exports.MsgUpdateSellOrders_Update = { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.sellOrderId); - } - if (message.newQuantity !== "") { - writer.uint32(18).string(message.newQuantity); - } - if (message.newAskPrice !== undefined) { - coin_1.Coin.encode(message.newAskPrice, writer.uint32(26).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(32).bool(message.disableAutoRetire); - } - if (message.newExpiration !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.newExpiration), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrders_Update(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sellOrderId = reader.uint64(); - break; - case 2: - message.newQuantity = reader.string(); - break; - case 3: - message.newAskPrice = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.disableAutoRetire = reader.bool(); - break; - case 5: - message.newExpiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateSellOrders_Update(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.newQuantity = object.newQuantity ?? ""; - message.newAskPrice = object.newAskPrice !== undefined && object.newAskPrice !== null ? coin_1.Coin.fromPartial(object.newAskPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.newExpiration = object.newExpiration ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateSellOrders_Update(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.new_quantity !== undefined && object.new_quantity !== null) { - message.newQuantity = object.new_quantity; - } - if (object.new_ask_price !== undefined && object.new_ask_price !== null) { - message.newAskPrice = coin_1.Coin.fromAmino(object.new_ask_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.new_expiration !== undefined && object.new_expiration !== null) { - message.newExpiration = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.new_expiration)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.new_quantity = message.newQuantity === "" ? undefined : message.newQuantity; - obj.new_ask_price = message.newAskPrice ? coin_1.Coin.toAmino(message.newAskPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.new_expiration = message.newExpiration ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.newExpiration)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateSellOrders_Update.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateSellOrders_Update.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateSellOrders_Update.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Update", - value: exports.MsgUpdateSellOrders_Update.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateSellOrdersResponse() { - return {}; -} -exports.MsgUpdateSellOrdersResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateSellOrdersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateSellOrdersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateSellOrdersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateSellOrdersResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateSellOrdersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrdersResponse", - value: exports.MsgUpdateSellOrdersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrder() { - return { - seller: "", - sellOrderId: BigInt(0) - }; -} -exports.MsgCancelSellOrder = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.seller !== "") { - writer.uint32(10).string(message.seller); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrder(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seller = reader.string(); - break; - case 2: - message.sellOrderId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancelSellOrder(); - message.seller = object.seller ?? ""; - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancelSellOrder(); - if (object.seller !== undefined && object.seller !== null) { - message.seller = object.seller; - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.seller = message.seller === "" ? undefined : message.seller; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelSellOrder.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgCancelSellOrder", - value: exports.MsgCancelSellOrder.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancelSellOrder.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelSellOrder.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: exports.MsgCancelSellOrder.encode(message).finish() - }; - } -}; -function createBaseMsgCancelSellOrderResponse() { - return {}; -} -exports.MsgCancelSellOrderResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelSellOrderResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelSellOrderResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelSellOrderResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCancelSellOrderResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelSellOrderResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrderResponse", - value: exports.MsgCancelSellOrderResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect() { - return { - buyer: "", - orders: [] - }; -} -exports.MsgBuyDirect = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.buyer !== "") { - writer.uint32(10).string(message.buyer); - } - for (const v of message.orders) { - exports.MsgBuyDirect_Order.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyer = reader.string(); - break; - case 2: - message.orders.push(exports.MsgBuyDirect_Order.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBuyDirect(); - message.buyer = object.buyer ?? ""; - message.orders = object.orders?.map(e => exports.MsgBuyDirect_Order.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBuyDirect(); - if (object.buyer !== undefined && object.buyer !== null) { - message.buyer = object.buyer; - } - message.orders = object.orders?.map(e => exports.MsgBuyDirect_Order.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.buyer = message.buyer === "" ? undefined : message.buyer; - if (message.orders) { - obj.orders = message.orders.map(e => e ? exports.MsgBuyDirect_Order.toAmino(e) : undefined); - } - else { - obj.orders = message.orders; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBuyDirect.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgBuyDirect", - value: exports.MsgBuyDirect.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgBuyDirect.decode(message.value); - }, - toProto(message) { - return exports.MsgBuyDirect.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: exports.MsgBuyDirect.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirect_Order() { - return { - sellOrderId: BigInt(0), - quantity: "", - bidPrice: undefined, - disableAutoRetire: false, - retirementJurisdiction: "", - retirementReason: "" - }; -} -exports.MsgBuyDirect_Order = { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.sellOrderId); - } - if (message.quantity !== "") { - writer.uint32(26).string(message.quantity); - } - if (message.bidPrice !== undefined) { - coin_1.Coin.encode(message.bidPrice, writer.uint32(34).fork()).ldelim(); - } - if (message.disableAutoRetire === true) { - writer.uint32(40).bool(message.disableAutoRetire); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(50).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(58).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirect_Order(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.sellOrderId = reader.uint64(); - break; - case 3: - message.quantity = reader.string(); - break; - case 4: - message.bidPrice = coin_1.Coin.decode(reader, reader.uint32()); - break; - case 5: - message.disableAutoRetire = reader.bool(); - break; - case 6: - message.retirementJurisdiction = reader.string(); - break; - case 7: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBuyDirect_Order(); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.quantity = object.quantity ?? ""; - message.bidPrice = object.bidPrice !== undefined && object.bidPrice !== null ? coin_1.Coin.fromPartial(object.bidPrice) : undefined; - message.disableAutoRetire = object.disableAutoRetire ?? false; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBuyDirect_Order(); - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.quantity !== undefined && object.quantity !== null) { - message.quantity = object.quantity; - } - if (object.bid_price !== undefined && object.bid_price !== null) { - message.bidPrice = coin_1.Coin.fromAmino(object.bid_price); - } - if (object.disable_auto_retire !== undefined && object.disable_auto_retire !== null) { - message.disableAutoRetire = object.disable_auto_retire; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.quantity = message.quantity === "" ? undefined : message.quantity; - obj.bid_price = message.bidPrice ? coin_1.Coin.toAmino(message.bidPrice) : undefined; - obj.disable_auto_retire = message.disableAutoRetire === false ? undefined : message.disableAutoRetire; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBuyDirect_Order.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBuyDirect_Order.decode(message.value); - }, - toProto(message) { - return exports.MsgBuyDirect_Order.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.Order", - value: exports.MsgBuyDirect_Order.encode(message).finish() - }; - } -}; -function createBaseMsgBuyDirectResponse() { - return {}; -} -exports.MsgBuyDirectResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBuyDirectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgBuyDirectResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBuyDirectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBuyDirectResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgBuyDirectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirectResponse", - value: exports.MsgBuyDirectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenom() { - return { - authority: "", - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -exports.MsgAddAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.bankDenom !== "") { - writer.uint32(18).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(26).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(32).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.bankDenom = reader.string(); - break; - case 3: - message.displayDenom = reader.string(); - break; - case 4: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddAllowedDenom(); - message.authority = object.authority ?? ""; - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgAddAllowedDenom", - value: exports.MsgAddAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAddAllowedDenom.decode(message.value); - }, - toProto(message) { - return exports.MsgAddAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: exports.MsgAddAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedDenomResponse() { - return {}; -} -exports.MsgAddAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddAllowedDenomResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAddAllowedDenomResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAddAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenomResponse", - value: exports.MsgAddAllowedDenomResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenom() { - return { - authority: "", - denom: "" - }; -} -exports.MsgRemoveAllowedDenom = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.denom !== "") { - writer.uint32(18).string(message.denom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveAllowedDenom(); - message.authority = object.authority ?? ""; - message.denom = object.denom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveAllowedDenom(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.denom = message.denom === "" ? undefined : message.denom; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveAllowedDenom.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen.marketplace/MsgRemoveAllowedDenom", - value: exports.MsgRemoveAllowedDenom.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRemoveAllowedDenom.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveAllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: exports.MsgRemoveAllowedDenom.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedDenomResponse() { - return {}; -} -exports.MsgRemoveAllowedDenomResponse = { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedDenomResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveAllowedDenomResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveAllowedDenomResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRemoveAllowedDenomResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveAllowedDenomResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenomResponse", - value: exports.MsgRemoveAllowedDenomResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts deleted file mode 100644 index 559a3b22..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSell, MsgUpdateSellOrders, MsgCancelSellOrder, MsgBuyDirect, MsgAddAllowedDenom, MsgRemoveAllowedDenom } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - sell(value: MsgSell): { - typeUrl: string; - value: Uint8Array; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: Uint8Array; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: Uint8Array; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - sell(value: MsgSell): { - typeUrl: string; - value: MsgSell; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: MsgUpdateSellOrders; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: MsgCancelSellOrder; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: MsgBuyDirect; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: MsgAddAllowedDenom; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: MsgRemoveAllowedDenom; - }; - }; - fromPartial: { - sell(value: MsgSell): { - typeUrl: string; - value: MsgSell; - }; - updateSellOrders(value: MsgUpdateSellOrders): { - typeUrl: string; - value: MsgUpdateSellOrders; - }; - cancelSellOrder(value: MsgCancelSellOrder): { - typeUrl: string; - value: MsgCancelSellOrder; - }; - buyDirect(value: MsgBuyDirect): { - typeUrl: string; - value: MsgBuyDirect; - }; - addAllowedDenom(value: MsgAddAllowedDenom): { - typeUrl: string; - value: MsgAddAllowedDenom; - }; - removeAllowedDenom(value: MsgRemoveAllowedDenom): { - typeUrl: string; - value: MsgRemoveAllowedDenom; - }; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js deleted file mode 100644 index 3073a280..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.registry.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.ecocredit.marketplace.v1.MsgSell", tx_1.MsgSell], ["/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", tx_1.MsgUpdateSellOrders], ["/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", tx_1.MsgCancelSellOrder], ["/regen.ecocredit.marketplace.v1.MsgBuyDirect", tx_1.MsgBuyDirect], ["/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", tx_1.MsgAddAllowedDenom], ["/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", tx_1.MsgRemoveAllowedDenom]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: tx_1.MsgSell.encode(value).finish() - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: tx_1.MsgUpdateSellOrders.encode(value).finish() - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: tx_1.MsgCancelSellOrder.encode(value).finish() - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: tx_1.MsgBuyDirect.encode(value).finish() - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: tx_1.MsgAddAllowedDenom.encode(value).finish() - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: tx_1.MsgRemoveAllowedDenom.encode(value).finish() - }; - } - }, - withTypeUrl: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value - }; - } - }, - fromPartial: { - sell(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgSell", - value: tx_1.MsgSell.fromPartial(value) - }; - }, - updateSellOrders(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgUpdateSellOrders", - value: tx_1.MsgUpdateSellOrders.fromPartial(value) - }; - }, - cancelSellOrder(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgCancelSellOrder", - value: tx_1.MsgCancelSellOrder.fromPartial(value) - }; - }, - buyDirect(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgBuyDirect", - value: tx_1.MsgBuyDirect.fromPartial(value) - }; - }, - addAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgAddAllowedDenom", - value: tx_1.MsgAddAllowedDenom.fromPartial(value) - }; - }, - removeAllowedDenom(value) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.MsgRemoveAllowedDenom", - value: tx_1.MsgRemoveAllowedDenom.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 9f22b1bb..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rpc } from "../../../../helpers"; -import { MsgSell, MsgSellResponse, MsgUpdateSellOrders, MsgUpdateSellOrdersResponse, MsgCancelSellOrder, MsgCancelSellOrderResponse, MsgBuyDirect, MsgBuyDirectResponse, MsgAddAllowedDenom, MsgAddAllowedDenomResponse, MsgRemoveAllowedDenom, MsgRemoveAllowedDenomResponse } from "./tx"; -/** Msg is the regen.ecocredit.marketplace.v1 Msg service. */ -export interface Msg { - /** Sell creates new sell orders. */ - sell(request: MsgSell): Promise; - /** UpdateSellOrders updates existing sell orders. */ - updateSellOrders(request: MsgUpdateSellOrders): Promise; - /** CancelSellOrder cancels a sell order and returns the credits from escrow. */ - cancelSellOrder(request: MsgCancelSellOrder): Promise; - /** BuyDirect purchases credits directly from the specified sell order. */ - buyDirect(request: MsgBuyDirect): Promise; - /** - * AddAllowedDenom is a governance method that allows the addition of - * new allowed denom. - * - * Since Revision 1 - */ - addAllowedDenom(request: MsgAddAllowedDenom): Promise; - /** - * RemoveAllowedDenom is a governance method that removes allowed denom. - * - * Since Revision 1 - */ - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - sell(request: MsgSell): Promise; - updateSellOrders(request: MsgUpdateSellOrders): Promise; - cancelSellOrder(request: MsgCancelSellOrder): Promise; - buyDirect(request: MsgBuyDirect): Promise; - addAllowedDenom(request: MsgAddAllowedDenom): Promise; - removeAllowedDenom(request: MsgRemoveAllowedDenom): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js deleted file mode 100644 index 81f80cc1..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/tx.rpc.msg.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.sell = this.sell.bind(this); - this.updateSellOrders = this.updateSellOrders.bind(this); - this.cancelSellOrder = this.cancelSellOrder.bind(this); - this.buyDirect = this.buyDirect.bind(this); - this.addAllowedDenom = this.addAllowedDenom.bind(this); - this.removeAllowedDenom = this.removeAllowedDenom.bind(this); - } - sell(request) { - const data = tx_1.MsgSell.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "Sell", data); - return promise.then(data => tx_1.MsgSellResponse.decode(new binary_1.BinaryReader(data))); - } - updateSellOrders(request) { - const data = tx_1.MsgUpdateSellOrders.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "UpdateSellOrders", data); - return promise.then(data => tx_1.MsgUpdateSellOrdersResponse.decode(new binary_1.BinaryReader(data))); - } - cancelSellOrder(request) { - const data = tx_1.MsgCancelSellOrder.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "CancelSellOrder", data); - return promise.then(data => tx_1.MsgCancelSellOrderResponse.decode(new binary_1.BinaryReader(data))); - } - buyDirect(request) { - const data = tx_1.MsgBuyDirect.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "BuyDirect", data); - return promise.then(data => tx_1.MsgBuyDirectResponse.decode(new binary_1.BinaryReader(data))); - } - addAllowedDenom(request) { - const data = tx_1.MsgAddAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "AddAllowedDenom", data); - return promise.then(data => tx_1.MsgAddAllowedDenomResponse.decode(new binary_1.BinaryReader(data))); - } - removeAllowedDenom(request) { - const data = tx_1.MsgRemoveAllowedDenom.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.marketplace.v1.Msg", "RemoveAllowedDenom", data); - return promise.then(data => tx_1.MsgRemoveAllowedDenomResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts b/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts deleted file mode 100644 index 7273f8a1..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/types.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { AllowedDenom, AllowedDenomAmino, AllowedDenomSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenom; -} -export interface AllowDenomProposalProtoMsg { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: Uint8Array; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * denom contains coin denom information that will be added to the - * list of allowed denoms for use in the marketplace. - */ - denom?: AllowedDenomAmino; -} -export interface AllowDenomProposalAminoMsg { - type: "/regen.ecocredit.marketplace.v1.AllowDenomProposal"; - value: AllowDenomProposalAmino; -} -/** - * AllowDenomProposal is a gov Content type for approving a denom for use in the - * marketplace. - * - * Deprecated (Since Revision 1): This message is no longer used and will be - * removed in the next version. See MsgAddAllowedDenom. - */ -export interface AllowDenomProposalSDKType { - title: string; - description: string; - denom?: AllowedDenomSDKType; -} -export declare const AllowDenomProposal: { - typeUrl: string; - encode(message: AllowDenomProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowDenomProposal; - fromPartial(object: Partial): AllowDenomProposal; - fromAmino(object: AllowDenomProposalAmino): AllowDenomProposal; - toAmino(message: AllowDenomProposal): AllowDenomProposalAmino; - fromAminoMsg(object: AllowDenomProposalAminoMsg): AllowDenomProposal; - fromProtoMsg(message: AllowDenomProposalProtoMsg): AllowDenomProposal; - toProto(message: AllowDenomProposal): Uint8Array; - toProtoMsg(message: AllowDenomProposal): AllowDenomProposalProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/marketplace/v1/types.js b/packages/api/dist/regen/ecocredit/marketplace/v1/types.js deleted file mode 100644 index f609e845..00000000 --- a/packages/api/dist/regen/ecocredit/marketplace/v1/types.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllowDenomProposal = void 0; -//@ts-nocheck -const state_1 = require("./state"); -const binary_1 = require("../../../../binary"); -function createBaseAllowDenomProposal() { - return { - title: "", - description: "", - denom: undefined - }; -} -exports.AllowDenomProposal = { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.denom !== undefined) { - state_1.AllowedDenom.encode(message.denom, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowDenomProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.denom = state_1.AllowedDenom.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowDenomProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.denom = object.denom !== undefined && object.denom !== null ? state_1.AllowedDenom.fromPartial(object.denom) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseAllowDenomProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = state_1.AllowedDenom.fromAmino(object.denom); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.denom = message.denom ? state_1.AllowedDenom.toAmino(message.denom) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AllowDenomProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AllowDenomProposal.decode(message.value); - }, - toProto(message) { - return exports.AllowDenomProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.marketplace.v1.AllowDenomProposal", - value: exports.AllowDenomProposal.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts deleted file mode 100644 index 168f8a4b..00000000 --- a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.d.ts +++ /dev/null @@ -1,222 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../../binary"; -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatch { - /** market_id defines the market within which this match exists. */ - marketId: bigint; - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** sell_order_id is the sell order ID. */ - sellOrderId: bigint; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bidPriceComplement: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - askPrice: number; -} -export interface BuyOrderSellOrderMatchProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: Uint8Array; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchAmino { - /** market_id defines the market within which this match exists. */ - market_id?: string; - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** sell_order_id is the sell order ID. */ - sell_order_id?: string; - /** - * bid_price_complement is the the complement (^ operator) of the bid price - * encoded as a uint32 (which should have sufficient precision) - effectively - * ~price * 10^exponent (usually 10^6). The complement is used so that bids - * can be sorted high to low. - */ - bid_price_complement?: number; - /** - * ask_price is the ask price encoded to a uint32. Ask prices are sorted low - * to high. - */ - ask_price?: number; -} -export interface BuyOrderSellOrderMatchAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch"; - value: BuyOrderSellOrderMatchAmino; -} -/** - * BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching - * algorithm used to actually match buy and sell orders. - */ -export interface BuyOrderSellOrderMatchSDKType { - market_id: bigint; - buy_order_id: bigint; - sell_order_id: bigint; - bid_price_complement: number; - ask_price: number; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** class_id is the class ID. */ - classId: bigint; - /** project_location is the project location in the selector's criteria. */ - projectLocation: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Date; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Date; -} -export interface BuyOrderClassSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: Uint8Array; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** class_id is the class ID. */ - class_id?: string; - /** project_location is the project location in the selector's criteria. */ - project_location?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderClassSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector"; - value: BuyOrderClassSelectorAmino; -} -/** BuyOrderClassSelector indexes a buy order with class selector. */ -export interface BuyOrderClassSelectorSDKType { - buy_order_id: bigint; - class_id: bigint; - project_location: string; - min_start_date?: Date; - max_end_date?: Date; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** project_id is the project ID. */ - projectId: bigint; - /** min_start_date is the minimum start date in the selector's criteria. */ - minStartDate?: Date; - /** max_end_date is the maximum end date in the selector's criteria. */ - maxEndDate?: Date; -} -export interface BuyOrderProjectSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: Uint8Array; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** project_id is the project ID. */ - project_id?: string; - /** min_start_date is the minimum start date in the selector's criteria. */ - min_start_date?: string; - /** max_end_date is the maximum end date in the selector's criteria. */ - max_end_date?: string; -} -export interface BuyOrderProjectSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector"; - value: BuyOrderProjectSelectorAmino; -} -/** BuyOrderProjectSelector indexes a buy order with project selector. */ -export interface BuyOrderProjectSelectorSDKType { - buy_order_id: bigint; - project_id: bigint; - min_start_date?: Date; - max_end_date?: Date; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelector { - /** buy_order_id is the buy order ID. */ - buyOrderId: bigint; - /** batch_id is the batch ID. */ - batchId: bigint; -} -export interface BuyOrderBatchSelectorProtoMsg { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: Uint8Array; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorAmino { - /** buy_order_id is the buy order ID. */ - buy_order_id?: string; - /** batch_id is the batch ID. */ - batch_id?: string; -} -export interface BuyOrderBatchSelectorAminoMsg { - type: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector"; - value: BuyOrderBatchSelectorAmino; -} -/** BuyOrderBatchSelector indexes a buy order with batch selector. */ -export interface BuyOrderBatchSelectorSDKType { - buy_order_id: bigint; - batch_id: bigint; -} -export declare const BuyOrderSellOrderMatch: { - typeUrl: string; - encode(message: BuyOrderSellOrderMatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderSellOrderMatch; - fromPartial(object: Partial): BuyOrderSellOrderMatch; - fromAmino(object: BuyOrderSellOrderMatchAmino): BuyOrderSellOrderMatch; - toAmino(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchAmino; - fromAminoMsg(object: BuyOrderSellOrderMatchAminoMsg): BuyOrderSellOrderMatch; - fromProtoMsg(message: BuyOrderSellOrderMatchProtoMsg): BuyOrderSellOrderMatch; - toProto(message: BuyOrderSellOrderMatch): Uint8Array; - toProtoMsg(message: BuyOrderSellOrderMatch): BuyOrderSellOrderMatchProtoMsg; -}; -export declare const BuyOrderClassSelector: { - typeUrl: string; - encode(message: BuyOrderClassSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderClassSelector; - fromPartial(object: Partial): BuyOrderClassSelector; - fromAmino(object: BuyOrderClassSelectorAmino): BuyOrderClassSelector; - toAmino(message: BuyOrderClassSelector): BuyOrderClassSelectorAmino; - fromAminoMsg(object: BuyOrderClassSelectorAminoMsg): BuyOrderClassSelector; - fromProtoMsg(message: BuyOrderClassSelectorProtoMsg): BuyOrderClassSelector; - toProto(message: BuyOrderClassSelector): Uint8Array; - toProtoMsg(message: BuyOrderClassSelector): BuyOrderClassSelectorProtoMsg; -}; -export declare const BuyOrderProjectSelector: { - typeUrl: string; - encode(message: BuyOrderProjectSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderProjectSelector; - fromPartial(object: Partial): BuyOrderProjectSelector; - fromAmino(object: BuyOrderProjectSelectorAmino): BuyOrderProjectSelector; - toAmino(message: BuyOrderProjectSelector): BuyOrderProjectSelectorAmino; - fromAminoMsg(object: BuyOrderProjectSelectorAminoMsg): BuyOrderProjectSelector; - fromProtoMsg(message: BuyOrderProjectSelectorProtoMsg): BuyOrderProjectSelector; - toProto(message: BuyOrderProjectSelector): Uint8Array; - toProtoMsg(message: BuyOrderProjectSelector): BuyOrderProjectSelectorProtoMsg; -}; -export declare const BuyOrderBatchSelector: { - typeUrl: string; - encode(message: BuyOrderBatchSelector, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BuyOrderBatchSelector; - fromPartial(object: Partial): BuyOrderBatchSelector; - fromAmino(object: BuyOrderBatchSelectorAmino): BuyOrderBatchSelector; - toAmino(message: BuyOrderBatchSelector): BuyOrderBatchSelectorAmino; - fromAminoMsg(object: BuyOrderBatchSelectorAminoMsg): BuyOrderBatchSelector; - fromProtoMsg(message: BuyOrderBatchSelectorProtoMsg): BuyOrderBatchSelector; - toProto(message: BuyOrderBatchSelector): Uint8Array; - toProtoMsg(message: BuyOrderBatchSelector): BuyOrderBatchSelectorProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js b/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js deleted file mode 100644 index 018974a4..00000000 --- a/packages/api/dist/regen/ecocredit/orderbook/v1alpha1/memory.js +++ /dev/null @@ -1,403 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BuyOrderBatchSelector = exports.BuyOrderProjectSelector = exports.BuyOrderClassSelector = exports.BuyOrderSellOrderMatch = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../../google/protobuf/timestamp"); -const binary_1 = require("../../../../binary"); -const helpers_1 = require("../../../../helpers"); -function createBaseBuyOrderSellOrderMatch() { - return { - marketId: BigInt(0), - buyOrderId: BigInt(0), - sellOrderId: BigInt(0), - bidPriceComplement: 0, - askPrice: 0 - }; -} -exports.BuyOrderSellOrderMatch = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.marketId !== BigInt(0)) { - writer.uint32(8).uint64(message.marketId); - } - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(16).uint64(message.buyOrderId); - } - if (message.sellOrderId !== BigInt(0)) { - writer.uint32(24).uint64(message.sellOrderId); - } - if (message.bidPriceComplement !== 0) { - writer.uint32(37).fixed32(message.bidPriceComplement); - } - if (message.askPrice !== 0) { - writer.uint32(45).fixed32(message.askPrice); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderSellOrderMatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.marketId = reader.uint64(); - break; - case 2: - message.buyOrderId = reader.uint64(); - break; - case 3: - message.sellOrderId = reader.uint64(); - break; - case 4: - message.bidPriceComplement = reader.fixed32(); - break; - case 5: - message.askPrice = reader.fixed32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderSellOrderMatch(); - message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.sellOrderId = object.sellOrderId !== undefined && object.sellOrderId !== null ? BigInt(object.sellOrderId.toString()) : BigInt(0); - message.bidPriceComplement = object.bidPriceComplement ?? 0; - message.askPrice = object.askPrice ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderSellOrderMatch(); - if (object.market_id !== undefined && object.market_id !== null) { - message.marketId = BigInt(object.market_id); - } - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.sell_order_id !== undefined && object.sell_order_id !== null) { - message.sellOrderId = BigInt(object.sell_order_id); - } - if (object.bid_price_complement !== undefined && object.bid_price_complement !== null) { - message.bidPriceComplement = object.bid_price_complement; - } - if (object.ask_price !== undefined && object.ask_price !== null) { - message.askPrice = object.ask_price; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.market_id = message.marketId !== BigInt(0) ? message.marketId.toString() : undefined; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.sell_order_id = message.sellOrderId !== BigInt(0) ? message.sellOrderId.toString() : undefined; - obj.bid_price_complement = message.bidPriceComplement === 0 ? undefined : message.bidPriceComplement; - obj.ask_price = message.askPrice === 0 ? undefined : message.askPrice; - return obj; - }, - fromAminoMsg(object) { - return exports.BuyOrderSellOrderMatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BuyOrderSellOrderMatch.decode(message.value); - }, - toProto(message) { - return exports.BuyOrderSellOrderMatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderSellOrderMatch", - value: exports.BuyOrderSellOrderMatch.encode(message).finish() - }; - } -}; -function createBaseBuyOrderClassSelector() { - return { - buyOrderId: BigInt(0), - classId: BigInt(0), - projectLocation: "", - minStartDate: undefined, - maxEndDate: undefined - }; -} -exports.BuyOrderClassSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.classId !== BigInt(0)) { - writer.uint32(16).uint64(message.classId); - } - if (message.projectLocation !== "") { - writer.uint32(26).string(message.projectLocation); - } - if (message.minStartDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(34).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.maxEndDate), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderClassSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.classId = reader.uint64(); - break; - case 3: - message.projectLocation = reader.string(); - break; - case 4: - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderClassSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0); - message.projectLocation = object.projectLocation ?? ""; - message.minStartDate = object.minStartDate ?? undefined; - message.maxEndDate = object.maxEndDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderClassSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = BigInt(object.class_id); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.max_end_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.class_id = message.classId !== BigInt(0) ? message.classId.toString() : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; - obj.max_end_date = message.maxEndDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.maxEndDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BuyOrderClassSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BuyOrderClassSelector.decode(message.value); - }, - toProto(message) { - return exports.BuyOrderClassSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderClassSelector", - value: exports.BuyOrderClassSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderProjectSelector() { - return { - buyOrderId: BigInt(0), - projectId: BigInt(0), - minStartDate: undefined, - maxEndDate: undefined - }; -} -exports.BuyOrderProjectSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.projectId !== BigInt(0)) { - writer.uint32(16).uint64(message.projectId); - } - if (message.minStartDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.minStartDate), writer.uint32(26).fork()).ldelim(); - } - if (message.maxEndDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.maxEndDate), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderProjectSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.projectId = reader.uint64(); - break; - case 3: - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderProjectSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.projectId = object.projectId !== undefined && object.projectId !== null ? BigInt(object.projectId.toString()) : BigInt(0); - message.minStartDate = object.minStartDate ?? undefined; - message.maxEndDate = object.maxEndDate ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderProjectSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = BigInt(object.project_id); - } - if (object.min_start_date !== undefined && object.min_start_date !== null) { - message.minStartDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.min_start_date)); - } - if (object.max_end_date !== undefined && object.max_end_date !== null) { - message.maxEndDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.max_end_date)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.project_id = message.projectId !== BigInt(0) ? message.projectId.toString() : undefined; - obj.min_start_date = message.minStartDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.minStartDate)) : undefined; - obj.max_end_date = message.maxEndDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.maxEndDate)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BuyOrderProjectSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BuyOrderProjectSelector.decode(message.value); - }, - toProto(message) { - return exports.BuyOrderProjectSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderProjectSelector", - value: exports.BuyOrderProjectSelector.encode(message).finish() - }; - } -}; -function createBaseBuyOrderBatchSelector() { - return { - buyOrderId: BigInt(0), - batchId: BigInt(0) - }; -} -exports.BuyOrderBatchSelector = { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.buyOrderId !== BigInt(0)) { - writer.uint32(8).uint64(message.buyOrderId); - } - if (message.batchId !== BigInt(0)) { - writer.uint32(16).uint64(message.batchId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBuyOrderBatchSelector(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.buyOrderId = reader.uint64(); - break; - case 2: - message.batchId = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBuyOrderBatchSelector(); - message.buyOrderId = object.buyOrderId !== undefined && object.buyOrderId !== null ? BigInt(object.buyOrderId.toString()) : BigInt(0); - message.batchId = object.batchId !== undefined && object.batchId !== null ? BigInt(object.batchId.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBuyOrderBatchSelector(); - if (object.buy_order_id !== undefined && object.buy_order_id !== null) { - message.buyOrderId = BigInt(object.buy_order_id); - } - if (object.batch_id !== undefined && object.batch_id !== null) { - message.batchId = BigInt(object.batch_id); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.buy_order_id = message.buyOrderId !== BigInt(0) ? message.buyOrderId.toString() : undefined; - obj.batch_id = message.batchId !== BigInt(0) ? message.batchId.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BuyOrderBatchSelector.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BuyOrderBatchSelector.decode(message.value); - }, - toProto(message) { - return exports.BuyOrderBatchSelector.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.orderbook.v1alpha1.BuyOrderBatchSelector", - value: exports.BuyOrderBatchSelector.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/events.d.ts b/packages/api/dist/regen/ecocredit/v1/events.d.ts deleted file mode 100644 index cf8c3f69..00000000 --- a/packages/api/dist/regen/ecocredit/v1/events.d.ts +++ /dev/null @@ -1,958 +0,0 @@ -import { OriginTx, OriginTxAmino, OriginTxSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProject { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface EventCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateProject"; - value: Uint8Array; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface EventCreateProjectAminoMsg { - type: "/regen.ecocredit.v1.EventCreateProject"; - value: EventCreateProjectAmino; -} -/** EventCreateProject is an event emitted when a project is created. */ -export interface EventCreateProjectSDKType { - project_id: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - originTx?: OriginTx; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMint { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradableAmount: string; - /** retired_amount is the amount of retired credits minted. */ - retiredAmount: string; -} -export interface EventMintProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMint"; - value: Uint8Array; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** tradable_amount is the amount of tradable credits minted. */ - tradable_amount?: string; - /** retired_amount is the amount of retired credits minted. */ - retired_amount?: string; -} -export interface EventMintAminoMsg { - type: "/regen.ecocredit.v1.EventMint"; - value: EventMintAmino; -} -/** - * EventMint is an event emitted when credits are minted either when creating a - * credit batch or when bridging assets from another chain or registry. - */ -export interface EventMintSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCredits { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batchDenom: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - originTx?: OriginTx; -} -export interface EventMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: Uint8Array; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsAmino { - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were minted. - */ - batch_denom?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - */ - origin_tx?: OriginTxAmino; -} -export interface EventMintBatchCreditsAminoMsg { - type: "/regen.ecocredit.v1.EventMintBatchCredits"; - value: EventMintBatchCreditsAmino; -} -/** - * EventMintBatchCredits is an event emitted when credits are minted to an - * existing open credit batch. - */ -export interface EventMintBatchCreditsSDKType { - batch_denom: string; - origin_tx?: OriginTxSDKType; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransfer { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; -} -export interface EventTransferProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventTransfer"; - value: Uint8Array; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferAmino { - /** - * sender is the sender of the credits. In the case that the credits were - * transferred from a base account, this will be the account address. In the - * case that the credits were transferred from a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - sender?: string; - /** - * recipient is the recipient of the credits. In the case that the credits - * were transferred to a base account, this will be the account address. In - * the case that the credits were transferred to a module, this will be the - * module address (i.e. either the ecocredit module or basket submodule). - */ - recipient?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; -} -export interface EventTransferAminoMsg { - type: "/regen.ecocredit.v1.EventTransfer"; - value: EventTransferAmino; -} -/** - * EventTransfer is an event emitted when credits are transferred from one - * account to another including transfers to or from a module account. - */ -export interface EventTransferSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * owner is the address of the account that owns the retired credits. This - * will be the account receiving credits in the case that credits were retired - * upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send, - * retired upon taking from a basket using basket.Msg/Take, or retired upon - * purchase using marketplace.Msg/BuyDirect. - */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were retired. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * jurisdiction is the jurisdiction of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - owner: string; - batch_denom: string; - amount: string; - jurisdiction: string; - reason: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** owner is the address of the account that cancelled the credits. */ - owner: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; - /** reason is the reason the credits were cancelled. */ - reason: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** owner is the address of the account that cancelled the credits. */ - owner?: string; - /** - * batch_denom is the unique identifier of the credit batch within which the - * credits were cancelled. - */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; - /** reason is the reason the credits were cancelled. */ - reason?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - owner: string; - batch_denom: string; - amount: string; - reason: string; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdmin { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: Uint8Array; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassAdmin"; - value: EventUpdateClassAdminAmino; -} -/** - * EventUpdateClassAdmin is emitted when the admin address of a credit class is - * changed. - */ -export interface EventUpdateClassAdminSDKType { - class_id: string; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuers { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: Uint8Array; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassIssuers"; - value: EventUpdateClassIssuersAmino; -} -/** - * EventUpdateClassIssuers is emitted when the issuer list for a credit class - * is updated. - */ -export interface EventUpdateClassIssuersSDKType { - class_id: string; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadata { - /** class_id is the unique identifier of the class that was updated. */ - classId: string; -} -export interface EventUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: Uint8Array; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataAmino { - /** class_id is the unique identifier of the class that was updated. */ - class_id?: string; -} -export interface EventUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateClassMetadata"; - value: EventUpdateClassMetadataAmino; -} -/** - * EventUpdateClassMetadata is emitted when the credit class metadata is - * changed. - */ -export interface EventUpdateClassMetadataSDKType { - class_id: string; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdmin { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: Uint8Array; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectAdminAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectAdmin"; - value: EventUpdateProjectAdminAmino; -} -/** EventUpdateProjectAdmin is emitted when the project admin is changed. */ -export interface EventUpdateProjectAdminSDKType { - project_id: string; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadata { - /** project_id is the unique identifier of the project that was updated. */ - projectId: string; -} -export interface EventUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: Uint8Array; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataAmino { - /** project_id is the unique identifier of the project that was updated. */ - project_id?: string; -} -export interface EventUpdateProjectMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateProjectMetadata"; - value: EventUpdateProjectMetadataAmino; -} -/** EventUpdateProjectMetadata is emitted when the project metadata is changed. */ -export interface EventUpdateProjectMetadataSDKType { - project_id: string; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadata { - /** batch_denom is the unique identifier of the batch that was updated. */ - batchDenom: string; -} -export interface EventUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataAmino { - /** batch_denom is the unique identifier of the batch that was updated. */ - batch_denom?: string; -} -export interface EventUpdateBatchMetadataAminoMsg { - type: "/regen.ecocredit.v1.EventUpdateBatchMetadata"; - value: EventUpdateBatchMetadataAmino; -} -/** - * EventUpdateBatchMetadata is emitted when the credit batch metadata is - * changed. - * - * Since Revision 2 - */ -export interface EventUpdateBatchMetadataSDKType { - batch_denom: string; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatch { - /** batch_denom is the denom of the batch that was sealed. */ - batchDenom: string; -} -export interface EventSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventSealBatch"; - value: Uint8Array; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchAmino { - /** batch_denom is the denom of the batch that was sealed. */ - batch_denom?: string; -} -export interface EventSealBatchAminoMsg { - type: "/regen.ecocredit.v1.EventSealBatch"; - value: EventSealBatchAmino; -} -/** EventSealBatch is emitted when a batch is sealed. */ -export interface EventSealBatchSDKType { - batch_denom: string; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditType { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface EventAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType"; - value: Uint8Array; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface EventAddCreditTypeAminoMsg { - type: "/regen.ecocredit.v1.EventAddCreditType"; - value: EventAddCreditTypeAmino; -} -/** EventAddCreditType is emitted when governance approves a new credit type. */ -export interface EventAddCreditTypeSDKType { - abbreviation: string; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridge { - /** target is the target chain. */ - target: string; - /** recipient is the recipient address. */ - recipient: string; - /** contract is the contract address. */ - contract: string; - /** amount is the amount of credits. */ - amount: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batchDenom: string; -} -export interface EventBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridge"; - value: Uint8Array; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeAmino { - /** target is the target chain. */ - target?: string; - /** recipient is the recipient address. */ - recipient?: string; - /** contract is the contract address. */ - contract?: string; - /** amount is the amount of credits. */ - amount?: string; - /** - * owner is the owner address. - * - * Since Revision 1 - */ - owner?: string; - /** - * batch_denom is the credit batch denom. - * - * Since Revision 3 - */ - batch_denom?: string; -} -export interface EventBridgeAminoMsg { - type: "/regen.ecocredit.v1.EventBridge"; - value: EventBridgeAmino; -} -/** EventBridge is emitted when credits are bridged to another chain. */ -export interface EventBridgeSDKType { - target: string; - recipient: string; - contract: string; - amount: string; - owner: string; - batch_denom: string; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceive { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - originTx?: OriginTx; -} -export interface EventBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive"; - value: Uint8Array; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveAmino { - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * amount is the amount of credits. - * - * Since Revision 3 - */ - amount?: string; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits within the credit batch. - * - * Since Revision 3 - */ - origin_tx?: OriginTxAmino; -} -export interface EventBridgeReceiveAminoMsg { - type: "/regen.ecocredit.v1.EventBridgeReceive"; - value: EventBridgeReceiveAmino; -} -/** EventBridgeReceive is emitted when credits are bridged from another chain. */ -export interface EventBridgeReceiveSDKType { - project_id: string; - batch_denom: string; - amount: string; - origin_tx?: OriginTxSDKType; -} -export declare const EventCreateClass: { - typeUrl: string; - encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; - fromPartial(object: Partial): EventCreateClass; - fromAmino(object: EventCreateClassAmino): EventCreateClass; - toAmino(message: EventCreateClass): EventCreateClassAmino; - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; - toProto(message: EventCreateClass): Uint8Array; - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; -}; -export declare const EventCreateProject: { - typeUrl: string; - encode(message: EventCreateProject, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateProject; - fromPartial(object: Partial): EventCreateProject; - fromAmino(object: EventCreateProjectAmino): EventCreateProject; - toAmino(message: EventCreateProject): EventCreateProjectAmino; - fromAminoMsg(object: EventCreateProjectAminoMsg): EventCreateProject; - fromProtoMsg(message: EventCreateProjectProtoMsg): EventCreateProject; - toProto(message: EventCreateProject): Uint8Array; - toProtoMsg(message: EventCreateProject): EventCreateProjectProtoMsg; -}; -export declare const EventCreateBatch: { - typeUrl: string; - encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; - fromPartial(object: Partial): EventCreateBatch; - fromAmino(object: EventCreateBatchAmino): EventCreateBatch; - toAmino(message: EventCreateBatch): EventCreateBatchAmino; - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; - toProto(message: EventCreateBatch): Uint8Array; - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; -}; -export declare const EventMint: { - typeUrl: string; - encode(message: EventMint, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventMint; - fromPartial(object: Partial): EventMint; - fromAmino(object: EventMintAmino): EventMint; - toAmino(message: EventMint): EventMintAmino; - fromAminoMsg(object: EventMintAminoMsg): EventMint; - fromProtoMsg(message: EventMintProtoMsg): EventMint; - toProto(message: EventMint): Uint8Array; - toProtoMsg(message: EventMint): EventMintProtoMsg; -}; -export declare const EventMintBatchCredits: { - typeUrl: string; - encode(message: EventMintBatchCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventMintBatchCredits; - fromPartial(object: Partial): EventMintBatchCredits; - fromAmino(object: EventMintBatchCreditsAmino): EventMintBatchCredits; - toAmino(message: EventMintBatchCredits): EventMintBatchCreditsAmino; - fromAminoMsg(object: EventMintBatchCreditsAminoMsg): EventMintBatchCredits; - fromProtoMsg(message: EventMintBatchCreditsProtoMsg): EventMintBatchCredits; - toProto(message: EventMintBatchCredits): Uint8Array; - toProtoMsg(message: EventMintBatchCredits): EventMintBatchCreditsProtoMsg; -}; -export declare const EventTransfer: { - typeUrl: string; - encode(message: EventTransfer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventTransfer; - fromPartial(object: Partial): EventTransfer; - fromAmino(object: EventTransferAmino): EventTransfer; - toAmino(message: EventTransfer): EventTransferAmino; - fromAminoMsg(object: EventTransferAminoMsg): EventTransfer; - fromProtoMsg(message: EventTransferProtoMsg): EventTransfer; - toProto(message: EventTransfer): Uint8Array; - toProtoMsg(message: EventTransfer): EventTransferProtoMsg; -}; -export declare const EventRetire: { - typeUrl: string; - encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; - fromPartial(object: Partial): EventRetire; - fromAmino(object: EventRetireAmino): EventRetire; - toAmino(message: EventRetire): EventRetireAmino; - fromAminoMsg(object: EventRetireAminoMsg): EventRetire; - fromProtoMsg(message: EventRetireProtoMsg): EventRetire; - toProto(message: EventRetire): Uint8Array; - toProtoMsg(message: EventRetire): EventRetireProtoMsg; -}; -export declare const EventCancel: { - typeUrl: string; - encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; - fromPartial(object: Partial): EventCancel; - fromAmino(object: EventCancelAmino): EventCancel; - toAmino(message: EventCancel): EventCancelAmino; - fromAminoMsg(object: EventCancelAminoMsg): EventCancel; - fromProtoMsg(message: EventCancelProtoMsg): EventCancel; - toProto(message: EventCancel): Uint8Array; - toProtoMsg(message: EventCancel): EventCancelProtoMsg; -}; -export declare const EventUpdateClassAdmin: { - typeUrl: string; - encode(message: EventUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassAdmin; - fromPartial(object: Partial): EventUpdateClassAdmin; - fromAmino(object: EventUpdateClassAdminAmino): EventUpdateClassAdmin; - toAmino(message: EventUpdateClassAdmin): EventUpdateClassAdminAmino; - fromAminoMsg(object: EventUpdateClassAdminAminoMsg): EventUpdateClassAdmin; - fromProtoMsg(message: EventUpdateClassAdminProtoMsg): EventUpdateClassAdmin; - toProto(message: EventUpdateClassAdmin): Uint8Array; - toProtoMsg(message: EventUpdateClassAdmin): EventUpdateClassAdminProtoMsg; -}; -export declare const EventUpdateClassIssuers: { - typeUrl: string; - encode(message: EventUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassIssuers; - fromPartial(object: Partial): EventUpdateClassIssuers; - fromAmino(object: EventUpdateClassIssuersAmino): EventUpdateClassIssuers; - toAmino(message: EventUpdateClassIssuers): EventUpdateClassIssuersAmino; - fromAminoMsg(object: EventUpdateClassIssuersAminoMsg): EventUpdateClassIssuers; - fromProtoMsg(message: EventUpdateClassIssuersProtoMsg): EventUpdateClassIssuers; - toProto(message: EventUpdateClassIssuers): Uint8Array; - toProtoMsg(message: EventUpdateClassIssuers): EventUpdateClassIssuersProtoMsg; -}; -export declare const EventUpdateClassMetadata: { - typeUrl: string; - encode(message: EventUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateClassMetadata; - fromPartial(object: Partial): EventUpdateClassMetadata; - fromAmino(object: EventUpdateClassMetadataAmino): EventUpdateClassMetadata; - toAmino(message: EventUpdateClassMetadata): EventUpdateClassMetadataAmino; - fromAminoMsg(object: EventUpdateClassMetadataAminoMsg): EventUpdateClassMetadata; - fromProtoMsg(message: EventUpdateClassMetadataProtoMsg): EventUpdateClassMetadata; - toProto(message: EventUpdateClassMetadata): Uint8Array; - toProtoMsg(message: EventUpdateClassMetadata): EventUpdateClassMetadataProtoMsg; -}; -export declare const EventUpdateProjectAdmin: { - typeUrl: string; - encode(message: EventUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectAdmin; - fromPartial(object: Partial): EventUpdateProjectAdmin; - fromAmino(object: EventUpdateProjectAdminAmino): EventUpdateProjectAdmin; - toAmino(message: EventUpdateProjectAdmin): EventUpdateProjectAdminAmino; - fromAminoMsg(object: EventUpdateProjectAdminAminoMsg): EventUpdateProjectAdmin; - fromProtoMsg(message: EventUpdateProjectAdminProtoMsg): EventUpdateProjectAdmin; - toProto(message: EventUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: EventUpdateProjectAdmin): EventUpdateProjectAdminProtoMsg; -}; -export declare const EventUpdateProjectMetadata: { - typeUrl: string; - encode(message: EventUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateProjectMetadata; - fromPartial(object: Partial): EventUpdateProjectMetadata; - fromAmino(object: EventUpdateProjectMetadataAmino): EventUpdateProjectMetadata; - toAmino(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataAmino; - fromAminoMsg(object: EventUpdateProjectMetadataAminoMsg): EventUpdateProjectMetadata; - fromProtoMsg(message: EventUpdateProjectMetadataProtoMsg): EventUpdateProjectMetadata; - toProto(message: EventUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: EventUpdateProjectMetadata): EventUpdateProjectMetadataProtoMsg; -}; -export declare const EventUpdateBatchMetadata: { - typeUrl: string; - encode(message: EventUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateBatchMetadata; - fromPartial(object: Partial): EventUpdateBatchMetadata; - fromAmino(object: EventUpdateBatchMetadataAmino): EventUpdateBatchMetadata; - toAmino(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataAmino; - fromAminoMsg(object: EventUpdateBatchMetadataAminoMsg): EventUpdateBatchMetadata; - fromProtoMsg(message: EventUpdateBatchMetadataProtoMsg): EventUpdateBatchMetadata; - toProto(message: EventUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: EventUpdateBatchMetadata): EventUpdateBatchMetadataProtoMsg; -}; -export declare const EventSealBatch: { - typeUrl: string; - encode(message: EventSealBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventSealBatch; - fromPartial(object: Partial): EventSealBatch; - fromAmino(object: EventSealBatchAmino): EventSealBatch; - toAmino(message: EventSealBatch): EventSealBatchAmino; - fromAminoMsg(object: EventSealBatchAminoMsg): EventSealBatch; - fromProtoMsg(message: EventSealBatchProtoMsg): EventSealBatch; - toProto(message: EventSealBatch): Uint8Array; - toProtoMsg(message: EventSealBatch): EventSealBatchProtoMsg; -}; -export declare const EventAddCreditType: { - typeUrl: string; - encode(message: EventAddCreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAddCreditType; - fromPartial(object: Partial): EventAddCreditType; - fromAmino(object: EventAddCreditTypeAmino): EventAddCreditType; - toAmino(message: EventAddCreditType): EventAddCreditTypeAmino; - fromAminoMsg(object: EventAddCreditTypeAminoMsg): EventAddCreditType; - fromProtoMsg(message: EventAddCreditTypeProtoMsg): EventAddCreditType; - toProto(message: EventAddCreditType): Uint8Array; - toProtoMsg(message: EventAddCreditType): EventAddCreditTypeProtoMsg; -}; -export declare const EventBridge: { - typeUrl: string; - encode(message: EventBridge, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBridge; - fromPartial(object: Partial): EventBridge; - fromAmino(object: EventBridgeAmino): EventBridge; - toAmino(message: EventBridge): EventBridgeAmino; - fromAminoMsg(object: EventBridgeAminoMsg): EventBridge; - fromProtoMsg(message: EventBridgeProtoMsg): EventBridge; - toProto(message: EventBridge): Uint8Array; - toProtoMsg(message: EventBridge): EventBridgeProtoMsg; -}; -export declare const EventBridgeReceive: { - typeUrl: string; - encode(message: EventBridgeReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventBridgeReceive; - fromPartial(object: Partial): EventBridgeReceive; - fromAmino(object: EventBridgeReceiveAmino): EventBridgeReceive; - toAmino(message: EventBridgeReceive): EventBridgeReceiveAmino; - fromAminoMsg(object: EventBridgeReceiveAminoMsg): EventBridgeReceive; - fromProtoMsg(message: EventBridgeReceiveProtoMsg): EventBridgeReceive; - toProto(message: EventBridgeReceive): Uint8Array; - toProtoMsg(message: EventBridgeReceive): EventBridgeReceiveProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/events.js b/packages/api/dist/regen/ecocredit/v1/events.js deleted file mode 100644 index 92741250..00000000 --- a/packages/api/dist/regen/ecocredit/v1/events.js +++ /dev/null @@ -1,1416 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventBridgeReceive = exports.EventBridge = exports.EventAddCreditType = exports.EventSealBatch = exports.EventUpdateBatchMetadata = exports.EventUpdateProjectMetadata = exports.EventUpdateProjectAdmin = exports.EventUpdateClassMetadata = exports.EventUpdateClassIssuers = exports.EventUpdateClassAdmin = exports.EventCancel = exports.EventRetire = exports.EventTransfer = exports.EventMintBatchCredits = exports.EventMint = exports.EventCreateBatch = exports.EventCreateProject = exports.EventCreateClass = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const binary_1 = require("../../../binary"); -function createBaseEventCreateClass() { - return { - classId: "" - }; -} -exports.EventCreateClass = { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreateClass.decode(message.value); - }, - toProto(message) { - return exports.EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateClass", - value: exports.EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateProject() { - return { - projectId: "" - }; -} -exports.EventCreateProject = { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateProject(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateProject(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateProject.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreateProject.decode(message.value); - }, - toProto(message) { - return exports.EventCreateProject.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateProject", - value: exports.EventCreateProject.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch() { - return { - batchDenom: "", - originTx: undefined - }; -} -exports.EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateBatch(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreateBatch.decode(message.value); - }, - toProto(message) { - return exports.EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCreateBatch", - value: exports.EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventMint() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -exports.EventMint = { - typeUrl: "/regen.ecocredit.v1.EventMint", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMint(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventMint(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventMint(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.EventMint.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventMint.decode(message.value); - }, - toProto(message) { - return exports.EventMint.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventMint", - value: exports.EventMint.encode(message).finish() - }; - } -}; -function createBaseEventMintBatchCredits() { - return { - batchDenom: "", - originTx: undefined - }; -} -exports.EventMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventMintBatchCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventMintBatchCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventMintBatchCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventMintBatchCredits.decode(message.value); - }, - toProto(message) { - return exports.EventMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventMintBatchCredits", - value: exports.EventMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseEventTransfer() { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "" - }; -} -exports.EventTransfer = { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventTransfer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventTransfer(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventTransfer(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.EventTransfer.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventTransfer.decode(message.value); - }, - toProto(message) { - return exports.EventTransfer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventTransfer", - value: exports.EventTransfer.encode(message).finish() - }; - } -}; -function createBaseEventRetire() { - return { - owner: "", - batchDenom: "", - amount: "", - jurisdiction: "", - reason: "" - }; -} -exports.EventRetire = { - typeUrl: "/regen.ecocredit.v1.EventRetire", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(42).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRetire(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return exports.EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventRetire.decode(message.value); - }, - toProto(message) { - return exports.EventRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventRetire", - value: exports.EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel() { - return { - owner: "", - batchDenom: "", - amount: "", - reason: "" - }; -} -exports.EventCancel = { - typeUrl: "/regen.ecocredit.v1.EventCancel", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancel(); - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCancel.decode(message.value); - }, - toProto(message) { - return exports.EventCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventCancel", - value: exports.EventCancel.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassAdmin() { - return { - classId: "" - }; -} -exports.EventUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassAdmin(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassAdmin(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassAdmin", - value: exports.EventUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassIssuers() { - return { - classId: "" - }; -} -exports.EventUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassIssuers(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassIssuers(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassIssuers", - value: exports.EventUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseEventUpdateClassMetadata() { - return { - classId: "" - }; -} -exports.EventUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateClassMetadata(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateClassMetadata(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateClassMetadata", - value: exports.EventUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectAdmin() { - return { - projectId: "" - }; -} -exports.EventUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateProjectAdmin(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateProjectAdmin(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateProjectAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateProjectAdmin.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectAdmin", - value: exports.EventUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseEventUpdateProjectMetadata() { - return { - projectId: "" - }; -} -exports.EventUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateProjectMetadata(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateProjectMetadata(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateProjectMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateProjectMetadata.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateProjectMetadata", - value: exports.EventUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseEventUpdateBatchMetadata() { - return { - batchDenom: "" - }; -} -exports.EventUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventUpdateBatchMetadata(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventUpdateBatchMetadata(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventUpdateBatchMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventUpdateBatchMetadata.decode(message.value); - }, - toProto(message) { - return exports.EventUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventUpdateBatchMetadata", - value: exports.EventUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseEventSealBatch() { - return { - batchDenom: "" - }; -} -exports.EventSealBatch = { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventSealBatch(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventSealBatch(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventSealBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventSealBatch.decode(message.value); - }, - toProto(message) { - return exports.EventSealBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventSealBatch", - value: exports.EventSealBatch.encode(message).finish() - }; - } -}; -function createBaseEventAddCreditType() { - return { - abbreviation: "" - }; -} -exports.EventAddCreditType = { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAddCreditType(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventAddCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object) { - return exports.EventAddCreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventAddCreditType.decode(message.value); - }, - toProto(message) { - return exports.EventAddCreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventAddCreditType", - value: exports.EventAddCreditType.encode(message).finish() - }; - } -}; -function createBaseEventBridge() { - return { - target: "", - recipient: "", - contract: "", - amount: "", - owner: "", - batchDenom: "" - }; -} -exports.EventBridge = { - typeUrl: "/regen.ecocredit.v1.EventBridge", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.target !== "") { - writer.uint32(10).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.amount !== "") { - writer.uint32(34).string(message.amount); - } - if (message.owner !== "") { - writer.uint32(42).string(message.owner); - } - if (message.batchDenom !== "") { - writer.uint32(50).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.target = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.amount = reader.string(); - break; - case 5: - message.owner = reader.string(); - break; - case 6: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBridge(); - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.contract = object.contract ?? ""; - message.amount = object.amount ?? ""; - message.owner = object.owner ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventBridge(); - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventBridge.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventBridge.decode(message.value); - }, - toProto(message) { - return exports.EventBridge.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventBridge", - value: exports.EventBridge.encode(message).finish() - }; - } -}; -function createBaseEventBridgeReceive() { - return { - projectId: "", - batchDenom: "", - amount: "", - originTx: undefined - }; -} -exports.EventBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventBridgeReceive(); - message.projectId = object.projectId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEventBridgeReceive(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EventBridgeReceive.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventBridgeReceive.decode(message.value); - }, - toProto(message) { - return exports.EventBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.EventBridgeReceive", - value: exports.EventBridgeReceive.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.d.ts b/packages/api/dist/regen/ecocredit/v1/query.d.ts deleted file mode 100644 index f5e5091d..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.d.ts +++ /dev/null @@ -1,2417 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { Params, ParamsAmino, ParamsSDKType } from "./types"; -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequest { - /** admin is the address of the admin of the class. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: Uint8Array; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestAmino { - /** admin is the address of the admin of the class. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminRequest"; - value: QueryClassesByAdminRequestAmino; -} -/** QueryClassesByAdminRequest is the Query/ClassesByAdmin request type. */ -export interface QueryClassesByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: Uint8Array; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassesByAdminResponse"; - value: QueryClassesByAdminResponseAmino; -} -/** QueryClassesByAdminResponse is the Query/ClassesByAdmin response type. */ -export interface QueryClassesByAdminResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; -} -export interface QueryClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest"; - value: Uint8Array; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; -} -export interface QueryClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassRequest"; - value: QueryClassRequestAmino; -} -/** QueryClassRequest is the Query/Class request type. */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponse { - /** class is the fetched credit class. */ - class?: ClassInfo; -} -export interface QueryClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse"; - value: Uint8Array; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseAmino { - /** class is the fetched credit class. */ - class?: ClassInfoAmino; -} -export interface QueryClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassResponse"; - value: QueryClassResponseAmino; -} -/** QueryClassResponse is the Query/Class request type. */ -export interface QueryClassResponseSDKType { - class?: ClassInfoSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassIssuersRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassIssuersRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersRequest"; - value: QueryClassIssuersRequestAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers request type. */ -export interface QueryClassIssuersRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponse { - /** issuers is a list of issuers for the credit class */ - issuers: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: Uint8Array; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseAmino { - /** issuers is a list of issuers for the credit class */ - issuers?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassIssuersResponse"; - value: QueryClassIssuersResponseAmino; -} -/** QueryClassIssuersRequest is the Query/ClassIssuers response type. */ -export interface QueryClassIssuersResponseSDKType { - issuers: string[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: Uint8Array; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsRequest"; - value: QueryProjectsRequestAmino; -} -/** QueryProjectsRequest is the Query/Projects request type. */ -export interface QueryProjectsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: Uint8Array; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsResponse"; - value: QueryProjectsResponseAmino; -} -/** QueryProjectsResponse is the Query/Projects response type. */ -export interface QueryProjectsResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: Uint8Array; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassRequest"; - value: QueryProjectsByClassRequestAmino; -} -/** QueryProjectsByClassRequest is the Query/ProjectsByClass request type. */ -export interface QueryProjectsByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: Uint8Array; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByClassResponse"; - value: QueryProjectsByClassResponseAmino; -} -/** QueryProjectsByClassResponse is the Query/ProjectsByClass response type. */ -export interface QueryProjectsByClassResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequest { - /** reference_id is the project reference id. */ - referenceId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByReferenceIdRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestAmino { - /** reference_id is the project reference id. */ - reference_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByReferenceIdRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest"; - value: QueryProjectsByReferenceIdRequestAmino; -} -/** - * QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request - * type. - */ -export interface QueryProjectsByReferenceIdRequestSDKType { - reference_id: string; - pagination?: PageRequestSDKType; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByReferenceIdResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: Uint8Array; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByReferenceIdResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse"; - value: QueryProjectsByReferenceIdResponseAmino; -} -/** - * QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId - * response type. - */ -export interface QueryProjectsByReferenceIdResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequest { - /** admin is the account address of project admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryProjectsByAdminRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: Uint8Array; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestAmino { - /** admin is the account address of project admin. */ - admin?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryProjectsByAdminRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminRequest"; - value: QueryProjectsByAdminRequestAmino; -} -/** QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type. */ -export interface QueryProjectsByAdminRequestSDKType { - admin: string; - pagination?: PageRequestSDKType; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponse { - /** projects are the fetched projects. */ - projects: ProjectInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryProjectsByAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: Uint8Array; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseAmino { - /** projects are the fetched projects. */ - projects?: ProjectInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryProjectsByAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectsByAdminResponse"; - value: QueryProjectsByAdminResponseAmino; -} -/** QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type. */ -export interface QueryProjectsByAdminResponseSDKType { - projects: ProjectInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; -} -export interface QueryProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest"; - value: Uint8Array; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; -} -export interface QueryProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectRequest"; - value: QueryProjectRequestAmino; -} -/** QueryProjectRequest is the Query/Project request type. */ -export interface QueryProjectRequestSDKType { - project_id: string; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponse { - /** project is the fetched project. */ - project?: ProjectInfo; -} -export interface QueryProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse"; - value: Uint8Array; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseAmino { - /** project is the fetched project. */ - project?: ProjectInfoAmino; -} -export interface QueryProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryProjectResponse"; - value: QueryProjectResponseAmino; -} -/** QueryProjectResponse is the Query/Project response type. */ -export interface QueryProjectResponseSDKType { - project?: ProjectInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequest { - /** issuer is the address that issued the batch */ - issuer: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByIssuerRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: Uint8Array; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestAmino { - /** issuer is the address that issued the batch */ - issuer?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByIssuerRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest"; - value: QueryBatchesByIssuerRequestAmino; -} -/** QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type. */ -export interface QueryBatchesByIssuerRequestSDKType { - issuer: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByIssuerResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: Uint8Array; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByIssuerResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse"; - value: QueryBatchesByIssuerResponseAmino; -} -/** QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type. */ -export interface QueryBatchesByIssuerResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequest { - /** class_id is the unique identifier of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByClassRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: Uint8Array; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestAmino { - /** class_id is the unique identifier of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByClassRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassRequest"; - value: QueryBatchesByClassRequestAmino; -} -/** QueryBatchesByClassRequest is the Query/BatchesByClass request type. */ -export interface QueryBatchesByClassRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequest { - /** project_id is the unique identifier of the project to query. */ - projectId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesByProjectRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: Uint8Array; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestAmino { - /** project_id is the unique identifier of the project to query. */ - project_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesByProjectRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectRequest"; - value: QueryBatchesByProjectRequestAmino; -} -/** QueryBatchesByProjectRequest is the Query/BatchesByProject request type. */ -export interface QueryBatchesByProjectRequestSDKType { - project_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: Uint8Array; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByProjectResponse"; - value: QueryBatchesByProjectResponseAmino; -} -/** QueryBatchesByProjectResponse is the Query/BatchesByProject response type. */ -export interface QueryBatchesByProjectResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponse { - /** batches are the fetched credit batches. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesByClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: Uint8Array; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseAmino { - /** batches are the fetched credit batches. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesByClassResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchesByClassResponse"; - value: QueryBatchesByClassResponseAmino; -} -/** QueryBatchesByClassResponse is the Query/BatchesByClass response type. */ -export interface QueryBatchesByClassResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest"; - value: Uint8Array; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchRequest"; - value: QueryBatchRequestAmino; -} -/** QueryBatchRequest is the Query/Batch request type. */ -export interface QueryBatchRequestSDKType { - batch_denom: string; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponse { - /** batch is the fetched credit batch. */ - batch?: BatchInfo; -} -export interface QueryBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse"; - value: Uint8Array; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseAmino { - /** batch is the fetched credit batch. */ - batch?: BatchInfoAmino; -} -export interface QueryBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBatchResponse"; - value: QueryBatchResponseAmino; -} -/** QueryBatchResponse is the Query/Batch response type. */ -export interface QueryBatchResponseSDKType { - batch?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - address: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfo; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** balance is the balance of the given account. */ - balance?: BatchBalanceInfoAmino; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - balance?: BatchBalanceInfoSDKType; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequest { - /** address is the address of the account whose balance is being queried. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: Uint8Array; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestAmino { - /** address is the address of the account whose balance is being queried. */ - address?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesRequest"; - value: QueryBalancesRequestAmino; -} -/** QueryBalancesRequest is the Query/Balances request type. */ -export interface QueryBalancesRequestSDKType { - address: string; - pagination?: PageRequestSDKType; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: Uint8Array; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesResponse"; - value: QueryBalancesResponseAmino; -} -/** QueryBalancesResponse is the Query/Balances response type. */ -export interface QueryBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequest { - /** batch_denom is the denom of the batch to query by. */ - batchDenom: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBalancesByBatchRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestAmino { - /** batch_denom is the denom of the batch to query by. */ - batch_denom?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBalancesByBatchRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchRequest"; - value: QueryBalancesByBatchRequestAmino; -} -/** - * QueryBalancesByBatchRequest is the Query/BalancesByBatch request type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchRequestSDKType { - batch_denom: string; - pagination?: PageRequestSDKType; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBalancesByBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: Uint8Array; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBalancesByBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryBalancesByBatchResponse"; - value: QueryBalancesByBatchResponseAmino; -} -/** - * QueryBalancesByBatchResponse is the Query/BalancesByBatch response type. - * - * Since Revision 2 - */ -export interface QueryBalancesByBatchResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllBalancesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: Uint8Array; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllBalancesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesRequest"; - value: QueryAllBalancesRequestAmino; -} -/** - * QueryAllBalancesRequest is the Query/AllBalances request type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponse { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances: BatchBalanceInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllBalancesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: Uint8Array; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseAmino { - /** - * balances are a list of balances from different credit batches that the - * account holds. - */ - balances?: BatchBalanceInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllBalancesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllBalancesResponse"; - value: QueryAllBalancesResponseAmino; -} -/** - * QueryAllBalancesResponse is the Query/AllBalances response type. - * - * Since Revision 2 - */ -export interface QueryAllBalancesResponseSDKType { - balances: BatchBalanceInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique identifier of the credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique identifier of the credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradableAmount: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retiredAmount: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelledAmount: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_amount is the decimal number of tradable credits in the batch - * supply. - */ - tradable_amount?: string; - /** - * retired_amount is the decimal number of retired credits in the batch - * supply. - */ - retired_amount?: string; - /** - * cancelled_amount is the decimal number of cancelled credits in the batch - * supply. - */ - cancelled_amount?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest { -} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino { -} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType { -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** credit_types are the fetched credit types. */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** credit_types are the fetched credit types. */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequest { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation: string; -} -export interface QueryCreditTypeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: Uint8Array; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestAmino { - /** abbreviation is the abbreviation of the credit type. */ - abbreviation?: string; -} -export interface QueryCreditTypeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeRequest"; - value: QueryCreditTypeRequestAmino; -} -/** QueryCreditTypeRequest is the Query/CreditType request type */ -export interface QueryCreditTypeRequestSDKType { - abbreviation: string; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponse { - /** credit_type is the fetched credit type. */ - creditType?: CreditType; -} -export interface QueryCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: Uint8Array; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseAmino { - /** credit_type is the fetched credit type. */ - credit_type?: CreditTypeAmino; -} -export interface QueryCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryCreditTypeResponse"; - value: QueryCreditTypeResponseAmino; -} -/** QueryCreditTypeResponse is the Query/CreditType response type */ -export interface QueryCreditTypeResponseSDKType { - credit_type?: CreditTypeSDKType; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfo { - /** id is the unique identifier of the credit class. */ - id: string; - /** admin is the admin of the credit class. */ - admin: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - creditTypeAbbrev: string; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoAmino { - /** id is the unique identifier of the credit class. */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is the arbitrary metadata attached to the credit class. */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type within which this - * credit class was created. - */ - credit_type_abbrev?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo is the human-readable credit class information. */ -export interface ClassInfoSDKType { - id: string; - admin: string; - metadata: string; - credit_type_abbrev: string; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfo { - /** id is the unique identifier of the project. */ - id: string; - /** admin is the admin of the project. */ - admin: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - classId: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - referenceId: string; -} -export interface ProjectInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectInfo"; - value: Uint8Array; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoAmino { - /** id is the unique identifier of the project. */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project was created. - */ - class_id?: string; - /** - * jurisdiction is the jurisdiction of the project. Full documentation can be - * found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is the arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string that can be use to reference project. */ - reference_id?: string; -} -export interface ProjectInfoAminoMsg { - type: "/regen.ecocredit.v1.ProjectInfo"; - value: ProjectInfoAmino; -} -/** ProjectInfo is the human-readable project information. */ -export interface ProjectInfoSDKType { - id: string; - admin: string; - class_id: string; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfo { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - projectId: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Date; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open: boolean; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoAmino { - /** - * issuer is the address that created the batch and the address authorized to - * mint new credits to the credit batch if the credit batch is open. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project within which this credit - * batch was created. - */ - project_id?: string; - /** - * denom is the unique identifier of the credit batch formed from the project - * name, batch sequence number and dates. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open determines whether or not the credit batch is open, i.e. whether or - * not new credits can be minted to the credit batch. - */ - open?: boolean; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo is the human-readable credit batch information. */ -export interface BatchInfoSDKType { - issuer: string; - project_id: string; - denom: string; - metadata: string; - start_date?: Date; - end_date?: Date; - issuance_date?: Date; - open: boolean; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfo { - /** address is the address of the account that owns the credits. */ - address: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: Uint8Array; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoAmino { - /** address is the address of the account that owns the credits. */ - address?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceInfoAminoMsg { - type: "/regen.ecocredit.v1.BatchBalanceInfo"; - value: BatchBalanceInfoAmino; -} -/** BatchBalanceInfo is the human-readable batch balance information. */ -export interface BatchBalanceInfoSDKType { - address: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequest { -} -export interface QueryClassCreatorAllowlistRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestAmino { -} -export interface QueryClassCreatorAllowlistRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest"; - value: QueryClassCreatorAllowlistRequestAmino; -} -/** - * QueryClassCreatorAllowlistRequest is the Query/ClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistRequestSDKType { -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponse { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled: boolean; -} -export interface QueryClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseAmino { - /** - * enabled determines whether or not the allowlist for creating credit classes - * is enabled. - */ - enabled?: boolean; -} -export interface QueryClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse"; - value: QueryClassCreatorAllowlistResponseAmino; -} -/** - * QueryClassCreatorAllowlistResponse is the Query/ClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface QueryClassCreatorAllowlistResponseSDKType { - enabled: boolean; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryAllowedClassCreatorsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryAllowedClassCreatorsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest"; - value: QueryAllowedClassCreatorsRequestAmino; -} -/** - * QueryAllowedClassCreatorsRequest is the Query/AllowedClassCreators request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsRequestSDKType { - pagination?: PageRequestSDKType; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponse { - /** class_creators is the list of allowed credit class creators. */ - classCreators: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryAllowedClassCreatorsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseAmino { - /** class_creators is the list of allowed credit class creators. */ - class_creators?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryAllowedClassCreatorsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse"; - value: QueryAllowedClassCreatorsResponseAmino; -} -/** - * QueryAllowedClassCreatorsResponse is the Query/AllowedClassCreators response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedClassCreatorsResponseSDKType { - class_creators: string[]; - pagination?: PageResponseSDKType; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequest { -} -export interface QueryClassFeeRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: Uint8Array; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestAmino { -} -export interface QueryClassFeeRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeRequest"; - value: QueryClassFeeRequestAmino; -} -/** - * QueryClassFeeRequest is the Query/ClassFee request type. - * - * Since Revision 2 - */ -export interface QueryClassFeeRequestSDKType { -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponse { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface QueryClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: Uint8Array; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface QueryClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryClassFeeResponse"; - value: QueryClassFeeResponseAmino; -} -/** - * QueryClassFeeResponse is the Query/ClassFee response type. - * - * Since Revision 2 - */ -export interface QueryClassFeeResponseSDKType { - fee?: CoinSDKType; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequest { -} -export interface QueryAllowedBridgeChainsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestAmino { -} -export interface QueryAllowedBridgeChainsRequestAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest"; - value: QueryAllowedBridgeChainsRequestAmino; -} -/** - * QueryAllowedBridgeChainsRequest is the Query/AllowedBridgeChains request - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsRequestSDKType { -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponse { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowedBridgeChains: string[]; -} -export interface QueryAllowedBridgeChainsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: Uint8Array; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseAmino { - /** - * allowed_bridge_chains is a list of chains that are allowed to be used in - * bridge operations. - */ - allowed_bridge_chains?: string[]; -} -export interface QueryAllowedBridgeChainsResponseAminoMsg { - type: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse"; - value: QueryAllowedBridgeChainsResponseAmino; -} -/** - * QueryAllowedBridgeChainsResponse is the Query/AllowedBridgeChains response - * type. - * - * Since Revision 2 - */ -export interface QueryAllowedBridgeChainsResponseSDKType { - allowed_bridge_chains: string[]; -} -export declare const QueryClassesRequest: { - typeUrl: string; - encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; - fromPartial(object: Partial): QueryClassesRequest; - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; - toProto(message: QueryClassesRequest): Uint8Array; - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; -}; -export declare const QueryClassesResponse: { - typeUrl: string; - encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; - fromPartial(object: Partial): QueryClassesResponse; - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; - toProto(message: QueryClassesResponse): Uint8Array; - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; -}; -export declare const QueryClassesByAdminRequest: { - typeUrl: string; - encode(message: QueryClassesByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminRequest; - fromPartial(object: Partial): QueryClassesByAdminRequest; - fromAmino(object: QueryClassesByAdminRequestAmino): QueryClassesByAdminRequest; - toAmino(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestAmino; - fromAminoMsg(object: QueryClassesByAdminRequestAminoMsg): QueryClassesByAdminRequest; - fromProtoMsg(message: QueryClassesByAdminRequestProtoMsg): QueryClassesByAdminRequest; - toProto(message: QueryClassesByAdminRequest): Uint8Array; - toProtoMsg(message: QueryClassesByAdminRequest): QueryClassesByAdminRequestProtoMsg; -}; -export declare const QueryClassesByAdminResponse: { - typeUrl: string; - encode(message: QueryClassesByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesByAdminResponse; - fromPartial(object: Partial): QueryClassesByAdminResponse; - fromAmino(object: QueryClassesByAdminResponseAmino): QueryClassesByAdminResponse; - toAmino(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseAmino; - fromAminoMsg(object: QueryClassesByAdminResponseAminoMsg): QueryClassesByAdminResponse; - fromProtoMsg(message: QueryClassesByAdminResponseProtoMsg): QueryClassesByAdminResponse; - toProto(message: QueryClassesByAdminResponse): Uint8Array; - toProtoMsg(message: QueryClassesByAdminResponse): QueryClassesByAdminResponseProtoMsg; -}; -export declare const QueryClassRequest: { - typeUrl: string; - encode(message: QueryClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest; - fromPartial(object: Partial): QueryClassRequest; - fromAmino(object: QueryClassRequestAmino): QueryClassRequest; - toAmino(message: QueryClassRequest): QueryClassRequestAmino; - fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest; - fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest; - toProto(message: QueryClassRequest): Uint8Array; - toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg; -}; -export declare const QueryClassResponse: { - typeUrl: string; - encode(message: QueryClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse; - fromPartial(object: Partial): QueryClassResponse; - fromAmino(object: QueryClassResponseAmino): QueryClassResponse; - toAmino(message: QueryClassResponse): QueryClassResponseAmino; - fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse; - fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse; - toProto(message: QueryClassResponse): Uint8Array; - toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg; -}; -export declare const QueryClassIssuersRequest: { - typeUrl: string; - encode(message: QueryClassIssuersRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersRequest; - fromPartial(object: Partial): QueryClassIssuersRequest; - fromAmino(object: QueryClassIssuersRequestAmino): QueryClassIssuersRequest; - toAmino(message: QueryClassIssuersRequest): QueryClassIssuersRequestAmino; - fromAminoMsg(object: QueryClassIssuersRequestAminoMsg): QueryClassIssuersRequest; - fromProtoMsg(message: QueryClassIssuersRequestProtoMsg): QueryClassIssuersRequest; - toProto(message: QueryClassIssuersRequest): Uint8Array; - toProtoMsg(message: QueryClassIssuersRequest): QueryClassIssuersRequestProtoMsg; -}; -export declare const QueryClassIssuersResponse: { - typeUrl: string; - encode(message: QueryClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassIssuersResponse; - fromPartial(object: Partial): QueryClassIssuersResponse; - fromAmino(object: QueryClassIssuersResponseAmino): QueryClassIssuersResponse; - toAmino(message: QueryClassIssuersResponse): QueryClassIssuersResponseAmino; - fromAminoMsg(object: QueryClassIssuersResponseAminoMsg): QueryClassIssuersResponse; - fromProtoMsg(message: QueryClassIssuersResponseProtoMsg): QueryClassIssuersResponse; - toProto(message: QueryClassIssuersResponse): Uint8Array; - toProtoMsg(message: QueryClassIssuersResponse): QueryClassIssuersResponseProtoMsg; -}; -export declare const QueryProjectsRequest: { - typeUrl: string; - encode(message: QueryProjectsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsRequest; - fromPartial(object: Partial): QueryProjectsRequest; - fromAmino(object: QueryProjectsRequestAmino): QueryProjectsRequest; - toAmino(message: QueryProjectsRequest): QueryProjectsRequestAmino; - fromAminoMsg(object: QueryProjectsRequestAminoMsg): QueryProjectsRequest; - fromProtoMsg(message: QueryProjectsRequestProtoMsg): QueryProjectsRequest; - toProto(message: QueryProjectsRequest): Uint8Array; - toProtoMsg(message: QueryProjectsRequest): QueryProjectsRequestProtoMsg; -}; -export declare const QueryProjectsResponse: { - typeUrl: string; - encode(message: QueryProjectsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsResponse; - fromPartial(object: Partial): QueryProjectsResponse; - fromAmino(object: QueryProjectsResponseAmino): QueryProjectsResponse; - toAmino(message: QueryProjectsResponse): QueryProjectsResponseAmino; - fromAminoMsg(object: QueryProjectsResponseAminoMsg): QueryProjectsResponse; - fromProtoMsg(message: QueryProjectsResponseProtoMsg): QueryProjectsResponse; - toProto(message: QueryProjectsResponse): Uint8Array; - toProtoMsg(message: QueryProjectsResponse): QueryProjectsResponseProtoMsg; -}; -export declare const QueryProjectsByClassRequest: { - typeUrl: string; - encode(message: QueryProjectsByClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassRequest; - fromPartial(object: Partial): QueryProjectsByClassRequest; - fromAmino(object: QueryProjectsByClassRequestAmino): QueryProjectsByClassRequest; - toAmino(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestAmino; - fromAminoMsg(object: QueryProjectsByClassRequestAminoMsg): QueryProjectsByClassRequest; - fromProtoMsg(message: QueryProjectsByClassRequestProtoMsg): QueryProjectsByClassRequest; - toProto(message: QueryProjectsByClassRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByClassRequest): QueryProjectsByClassRequestProtoMsg; -}; -export declare const QueryProjectsByClassResponse: { - typeUrl: string; - encode(message: QueryProjectsByClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByClassResponse; - fromPartial(object: Partial): QueryProjectsByClassResponse; - fromAmino(object: QueryProjectsByClassResponseAmino): QueryProjectsByClassResponse; - toAmino(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseAmino; - fromAminoMsg(object: QueryProjectsByClassResponseAminoMsg): QueryProjectsByClassResponse; - fromProtoMsg(message: QueryProjectsByClassResponseProtoMsg): QueryProjectsByClassResponse; - toProto(message: QueryProjectsByClassResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByClassResponse): QueryProjectsByClassResponseProtoMsg; -}; -export declare const QueryProjectsByReferenceIdRequest: { - typeUrl: string; - encode(message: QueryProjectsByReferenceIdRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdRequest; - fromPartial(object: Partial): QueryProjectsByReferenceIdRequest; - fromAmino(object: QueryProjectsByReferenceIdRequestAmino): QueryProjectsByReferenceIdRequest; - toAmino(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestAmino; - fromAminoMsg(object: QueryProjectsByReferenceIdRequestAminoMsg): QueryProjectsByReferenceIdRequest; - fromProtoMsg(message: QueryProjectsByReferenceIdRequestProtoMsg): QueryProjectsByReferenceIdRequest; - toProto(message: QueryProjectsByReferenceIdRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByReferenceIdRequest): QueryProjectsByReferenceIdRequestProtoMsg; -}; -export declare const QueryProjectsByReferenceIdResponse: { - typeUrl: string; - encode(message: QueryProjectsByReferenceIdResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByReferenceIdResponse; - fromPartial(object: Partial): QueryProjectsByReferenceIdResponse; - fromAmino(object: QueryProjectsByReferenceIdResponseAmino): QueryProjectsByReferenceIdResponse; - toAmino(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseAmino; - fromAminoMsg(object: QueryProjectsByReferenceIdResponseAminoMsg): QueryProjectsByReferenceIdResponse; - fromProtoMsg(message: QueryProjectsByReferenceIdResponseProtoMsg): QueryProjectsByReferenceIdResponse; - toProto(message: QueryProjectsByReferenceIdResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByReferenceIdResponse): QueryProjectsByReferenceIdResponseProtoMsg; -}; -export declare const QueryProjectsByAdminRequest: { - typeUrl: string; - encode(message: QueryProjectsByAdminRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminRequest; - fromPartial(object: Partial): QueryProjectsByAdminRequest; - fromAmino(object: QueryProjectsByAdminRequestAmino): QueryProjectsByAdminRequest; - toAmino(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestAmino; - fromAminoMsg(object: QueryProjectsByAdminRequestAminoMsg): QueryProjectsByAdminRequest; - fromProtoMsg(message: QueryProjectsByAdminRequestProtoMsg): QueryProjectsByAdminRequest; - toProto(message: QueryProjectsByAdminRequest): Uint8Array; - toProtoMsg(message: QueryProjectsByAdminRequest): QueryProjectsByAdminRequestProtoMsg; -}; -export declare const QueryProjectsByAdminResponse: { - typeUrl: string; - encode(message: QueryProjectsByAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectsByAdminResponse; - fromPartial(object: Partial): QueryProjectsByAdminResponse; - fromAmino(object: QueryProjectsByAdminResponseAmino): QueryProjectsByAdminResponse; - toAmino(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseAmino; - fromAminoMsg(object: QueryProjectsByAdminResponseAminoMsg): QueryProjectsByAdminResponse; - fromProtoMsg(message: QueryProjectsByAdminResponseProtoMsg): QueryProjectsByAdminResponse; - toProto(message: QueryProjectsByAdminResponse): Uint8Array; - toProtoMsg(message: QueryProjectsByAdminResponse): QueryProjectsByAdminResponseProtoMsg; -}; -export declare const QueryProjectRequest: { - typeUrl: string; - encode(message: QueryProjectRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectRequest; - fromPartial(object: Partial): QueryProjectRequest; - fromAmino(object: QueryProjectRequestAmino): QueryProjectRequest; - toAmino(message: QueryProjectRequest): QueryProjectRequestAmino; - fromAminoMsg(object: QueryProjectRequestAminoMsg): QueryProjectRequest; - fromProtoMsg(message: QueryProjectRequestProtoMsg): QueryProjectRequest; - toProto(message: QueryProjectRequest): Uint8Array; - toProtoMsg(message: QueryProjectRequest): QueryProjectRequestProtoMsg; -}; -export declare const QueryProjectResponse: { - typeUrl: string; - encode(message: QueryProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryProjectResponse; - fromPartial(object: Partial): QueryProjectResponse; - fromAmino(object: QueryProjectResponseAmino): QueryProjectResponse; - toAmino(message: QueryProjectResponse): QueryProjectResponseAmino; - fromAminoMsg(object: QueryProjectResponseAminoMsg): QueryProjectResponse; - fromProtoMsg(message: QueryProjectResponseProtoMsg): QueryProjectResponse; - toProto(message: QueryProjectResponse): Uint8Array; - toProtoMsg(message: QueryProjectResponse): QueryProjectResponseProtoMsg; -}; -export declare const QueryBatchesRequest: { - typeUrl: string; - encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; - fromPartial(object: Partial): QueryBatchesRequest; - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; - toProto(message: QueryBatchesRequest): Uint8Array; - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; -}; -export declare const QueryBatchesResponse: { - typeUrl: string; - encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; - fromPartial(object: Partial): QueryBatchesResponse; - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; - toProto(message: QueryBatchesResponse): Uint8Array; - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; -}; -export declare const QueryBatchesByIssuerRequest: { - typeUrl: string; - encode(message: QueryBatchesByIssuerRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerRequest; - fromPartial(object: Partial): QueryBatchesByIssuerRequest; - fromAmino(object: QueryBatchesByIssuerRequestAmino): QueryBatchesByIssuerRequest; - toAmino(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestAmino; - fromAminoMsg(object: QueryBatchesByIssuerRequestAminoMsg): QueryBatchesByIssuerRequest; - fromProtoMsg(message: QueryBatchesByIssuerRequestProtoMsg): QueryBatchesByIssuerRequest; - toProto(message: QueryBatchesByIssuerRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByIssuerRequest): QueryBatchesByIssuerRequestProtoMsg; -}; -export declare const QueryBatchesByIssuerResponse: { - typeUrl: string; - encode(message: QueryBatchesByIssuerResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByIssuerResponse; - fromPartial(object: Partial): QueryBatchesByIssuerResponse; - fromAmino(object: QueryBatchesByIssuerResponseAmino): QueryBatchesByIssuerResponse; - toAmino(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseAmino; - fromAminoMsg(object: QueryBatchesByIssuerResponseAminoMsg): QueryBatchesByIssuerResponse; - fromProtoMsg(message: QueryBatchesByIssuerResponseProtoMsg): QueryBatchesByIssuerResponse; - toProto(message: QueryBatchesByIssuerResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByIssuerResponse): QueryBatchesByIssuerResponseProtoMsg; -}; -export declare const QueryBatchesByClassRequest: { - typeUrl: string; - encode(message: QueryBatchesByClassRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassRequest; - fromPartial(object: Partial): QueryBatchesByClassRequest; - fromAmino(object: QueryBatchesByClassRequestAmino): QueryBatchesByClassRequest; - toAmino(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestAmino; - fromAminoMsg(object: QueryBatchesByClassRequestAminoMsg): QueryBatchesByClassRequest; - fromProtoMsg(message: QueryBatchesByClassRequestProtoMsg): QueryBatchesByClassRequest; - toProto(message: QueryBatchesByClassRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByClassRequest): QueryBatchesByClassRequestProtoMsg; -}; -export declare const QueryBatchesByProjectRequest: { - typeUrl: string; - encode(message: QueryBatchesByProjectRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectRequest; - fromPartial(object: Partial): QueryBatchesByProjectRequest; - fromAmino(object: QueryBatchesByProjectRequestAmino): QueryBatchesByProjectRequest; - toAmino(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestAmino; - fromAminoMsg(object: QueryBatchesByProjectRequestAminoMsg): QueryBatchesByProjectRequest; - fromProtoMsg(message: QueryBatchesByProjectRequestProtoMsg): QueryBatchesByProjectRequest; - toProto(message: QueryBatchesByProjectRequest): Uint8Array; - toProtoMsg(message: QueryBatchesByProjectRequest): QueryBatchesByProjectRequestProtoMsg; -}; -export declare const QueryBatchesByProjectResponse: { - typeUrl: string; - encode(message: QueryBatchesByProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByProjectResponse; - fromPartial(object: Partial): QueryBatchesByProjectResponse; - fromAmino(object: QueryBatchesByProjectResponseAmino): QueryBatchesByProjectResponse; - toAmino(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseAmino; - fromAminoMsg(object: QueryBatchesByProjectResponseAminoMsg): QueryBatchesByProjectResponse; - fromProtoMsg(message: QueryBatchesByProjectResponseProtoMsg): QueryBatchesByProjectResponse; - toProto(message: QueryBatchesByProjectResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByProjectResponse): QueryBatchesByProjectResponseProtoMsg; -}; -export declare const QueryBatchesByClassResponse: { - typeUrl: string; - encode(message: QueryBatchesByClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesByClassResponse; - fromPartial(object: Partial): QueryBatchesByClassResponse; - fromAmino(object: QueryBatchesByClassResponseAmino): QueryBatchesByClassResponse; - toAmino(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseAmino; - fromAminoMsg(object: QueryBatchesByClassResponseAminoMsg): QueryBatchesByClassResponse; - fromProtoMsg(message: QueryBatchesByClassResponseProtoMsg): QueryBatchesByClassResponse; - toProto(message: QueryBatchesByClassResponse): Uint8Array; - toProtoMsg(message: QueryBatchesByClassResponse): QueryBatchesByClassResponseProtoMsg; -}; -export declare const QueryBatchRequest: { - typeUrl: string; - encode(message: QueryBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchRequest; - fromPartial(object: Partial): QueryBatchRequest; - fromAmino(object: QueryBatchRequestAmino): QueryBatchRequest; - toAmino(message: QueryBatchRequest): QueryBatchRequestAmino; - fromAminoMsg(object: QueryBatchRequestAminoMsg): QueryBatchRequest; - fromProtoMsg(message: QueryBatchRequestProtoMsg): QueryBatchRequest; - toProto(message: QueryBatchRequest): Uint8Array; - toProtoMsg(message: QueryBatchRequest): QueryBatchRequestProtoMsg; -}; -export declare const QueryBatchResponse: { - typeUrl: string; - encode(message: QueryBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchResponse; - fromPartial(object: Partial): QueryBatchResponse; - fromAmino(object: QueryBatchResponseAmino): QueryBatchResponse; - toAmino(message: QueryBatchResponse): QueryBatchResponseAmino; - fromAminoMsg(object: QueryBatchResponseAminoMsg): QueryBatchResponse; - fromProtoMsg(message: QueryBatchResponseProtoMsg): QueryBatchResponse; - toProto(message: QueryBatchResponse): Uint8Array; - toProtoMsg(message: QueryBatchResponse): QueryBatchResponseProtoMsg; -}; -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QueryBalancesRequest: { - typeUrl: string; - encode(message: QueryBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesRequest; - fromPartial(object: Partial): QueryBalancesRequest; - fromAmino(object: QueryBalancesRequestAmino): QueryBalancesRequest; - toAmino(message: QueryBalancesRequest): QueryBalancesRequestAmino; - fromAminoMsg(object: QueryBalancesRequestAminoMsg): QueryBalancesRequest; - fromProtoMsg(message: QueryBalancesRequestProtoMsg): QueryBalancesRequest; - toProto(message: QueryBalancesRequest): Uint8Array; - toProtoMsg(message: QueryBalancesRequest): QueryBalancesRequestProtoMsg; -}; -export declare const QueryBalancesResponse: { - typeUrl: string; - encode(message: QueryBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesResponse; - fromPartial(object: Partial): QueryBalancesResponse; - fromAmino(object: QueryBalancesResponseAmino): QueryBalancesResponse; - toAmino(message: QueryBalancesResponse): QueryBalancesResponseAmino; - fromAminoMsg(object: QueryBalancesResponseAminoMsg): QueryBalancesResponse; - fromProtoMsg(message: QueryBalancesResponseProtoMsg): QueryBalancesResponse; - toProto(message: QueryBalancesResponse): Uint8Array; - toProtoMsg(message: QueryBalancesResponse): QueryBalancesResponseProtoMsg; -}; -export declare const QueryBalancesByBatchRequest: { - typeUrl: string; - encode(message: QueryBalancesByBatchRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchRequest; - fromPartial(object: Partial): QueryBalancesByBatchRequest; - fromAmino(object: QueryBalancesByBatchRequestAmino): QueryBalancesByBatchRequest; - toAmino(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestAmino; - fromAminoMsg(object: QueryBalancesByBatchRequestAminoMsg): QueryBalancesByBatchRequest; - fromProtoMsg(message: QueryBalancesByBatchRequestProtoMsg): QueryBalancesByBatchRequest; - toProto(message: QueryBalancesByBatchRequest): Uint8Array; - toProtoMsg(message: QueryBalancesByBatchRequest): QueryBalancesByBatchRequestProtoMsg; -}; -export declare const QueryBalancesByBatchResponse: { - typeUrl: string; - encode(message: QueryBalancesByBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalancesByBatchResponse; - fromPartial(object: Partial): QueryBalancesByBatchResponse; - fromAmino(object: QueryBalancesByBatchResponseAmino): QueryBalancesByBatchResponse; - toAmino(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseAmino; - fromAminoMsg(object: QueryBalancesByBatchResponseAminoMsg): QueryBalancesByBatchResponse; - fromProtoMsg(message: QueryBalancesByBatchResponseProtoMsg): QueryBalancesByBatchResponse; - toProto(message: QueryBalancesByBatchResponse): Uint8Array; - toProtoMsg(message: QueryBalancesByBatchResponse): QueryBalancesByBatchResponseProtoMsg; -}; -export declare const QueryAllBalancesRequest: { - typeUrl: string; - encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; - fromPartial(object: Partial): QueryAllBalancesRequest; - fromAmino(object: QueryAllBalancesRequestAmino): QueryAllBalancesRequest; - toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino; - fromAminoMsg(object: QueryAllBalancesRequestAminoMsg): QueryAllBalancesRequest; - fromProtoMsg(message: QueryAllBalancesRequestProtoMsg): QueryAllBalancesRequest; - toProto(message: QueryAllBalancesRequest): Uint8Array; - toProtoMsg(message: QueryAllBalancesRequest): QueryAllBalancesRequestProtoMsg; -}; -export declare const QueryAllBalancesResponse: { - typeUrl: string; - encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; - fromPartial(object: Partial): QueryAllBalancesResponse; - fromAmino(object: QueryAllBalancesResponseAmino): QueryAllBalancesResponse; - toAmino(message: QueryAllBalancesResponse): QueryAllBalancesResponseAmino; - fromAminoMsg(object: QueryAllBalancesResponseAminoMsg): QueryAllBalancesResponse; - fromProtoMsg(message: QueryAllBalancesResponseProtoMsg): QueryAllBalancesResponse; - toProto(message: QueryAllBalancesResponse): Uint8Array; - toProtoMsg(message: QueryAllBalancesResponse): QueryAllBalancesResponseProtoMsg; -}; -export declare const QuerySupplyRequest: { - typeUrl: string; - encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; - fromPartial(object: Partial): QuerySupplyRequest; - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; - toProto(message: QuerySupplyRequest): Uint8Array; - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; -}; -export declare const QuerySupplyResponse: { - typeUrl: string; - encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; - fromPartial(object: Partial): QuerySupplyResponse; - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; - toProto(message: QuerySupplyResponse): Uint8Array; - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; -}; -export declare const QueryCreditTypesRequest: { - typeUrl: string; - encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; - fromPartial(_: Partial): QueryCreditTypesRequest; - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; - toProto(message: QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; -}; -export declare const QueryCreditTypesResponse: { - typeUrl: string; - encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; - fromPartial(object: Partial): QueryCreditTypesResponse; - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; - toProto(message: QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; -}; -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryCreditTypeRequest: { - typeUrl: string; - encode(message: QueryCreditTypeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeRequest; - fromPartial(object: Partial): QueryCreditTypeRequest; - fromAmino(object: QueryCreditTypeRequestAmino): QueryCreditTypeRequest; - toAmino(message: QueryCreditTypeRequest): QueryCreditTypeRequestAmino; - fromAminoMsg(object: QueryCreditTypeRequestAminoMsg): QueryCreditTypeRequest; - fromProtoMsg(message: QueryCreditTypeRequestProtoMsg): QueryCreditTypeRequest; - toProto(message: QueryCreditTypeRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypeRequest): QueryCreditTypeRequestProtoMsg; -}; -export declare const QueryCreditTypeResponse: { - typeUrl: string; - encode(message: QueryCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypeResponse; - fromPartial(object: Partial): QueryCreditTypeResponse; - fromAmino(object: QueryCreditTypeResponseAmino): QueryCreditTypeResponse; - toAmino(message: QueryCreditTypeResponse): QueryCreditTypeResponseAmino; - fromAminoMsg(object: QueryCreditTypeResponseAminoMsg): QueryCreditTypeResponse; - fromProtoMsg(message: QueryCreditTypeResponseProtoMsg): QueryCreditTypeResponse; - toProto(message: QueryCreditTypeResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypeResponse): QueryCreditTypeResponseProtoMsg; -}; -export declare const ClassInfo: { - typeUrl: string; - encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; - fromPartial(object: Partial): ClassInfo; - fromAmino(object: ClassInfoAmino): ClassInfo; - toAmino(message: ClassInfo): ClassInfoAmino; - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; - toProto(message: ClassInfo): Uint8Array; - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; -}; -export declare const ProjectInfo: { - typeUrl: string; - encode(message: ProjectInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProjectInfo; - fromPartial(object: Partial): ProjectInfo; - fromAmino(object: ProjectInfoAmino): ProjectInfo; - toAmino(message: ProjectInfo): ProjectInfoAmino; - fromAminoMsg(object: ProjectInfoAminoMsg): ProjectInfo; - fromProtoMsg(message: ProjectInfoProtoMsg): ProjectInfo; - toProto(message: ProjectInfo): Uint8Array; - toProtoMsg(message: ProjectInfo): ProjectInfoProtoMsg; -}; -export declare const BatchInfo: { - typeUrl: string; - encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; - fromPartial(object: Partial): BatchInfo; - fromAmino(object: BatchInfoAmino): BatchInfo; - toAmino(message: BatchInfo): BatchInfoAmino; - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; - toProto(message: BatchInfo): Uint8Array; - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; -}; -export declare const BatchBalanceInfo: { - typeUrl: string; - encode(message: BatchBalanceInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalanceInfo; - fromPartial(object: Partial): BatchBalanceInfo; - fromAmino(object: BatchBalanceInfoAmino): BatchBalanceInfo; - toAmino(message: BatchBalanceInfo): BatchBalanceInfoAmino; - fromAminoMsg(object: BatchBalanceInfoAminoMsg): BatchBalanceInfo; - fromProtoMsg(message: BatchBalanceInfoProtoMsg): BatchBalanceInfo; - toProto(message: BatchBalanceInfo): Uint8Array; - toProtoMsg(message: BatchBalanceInfo): BatchBalanceInfoProtoMsg; -}; -export declare const QueryClassCreatorAllowlistRequest: { - typeUrl: string; - encode(_: QueryClassCreatorAllowlistRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistRequest; - fromPartial(_: Partial): QueryClassCreatorAllowlistRequest; - fromAmino(_: QueryClassCreatorAllowlistRequestAmino): QueryClassCreatorAllowlistRequest; - toAmino(_: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestAmino; - fromAminoMsg(object: QueryClassCreatorAllowlistRequestAminoMsg): QueryClassCreatorAllowlistRequest; - fromProtoMsg(message: QueryClassCreatorAllowlistRequestProtoMsg): QueryClassCreatorAllowlistRequest; - toProto(message: QueryClassCreatorAllowlistRequest): Uint8Array; - toProtoMsg(message: QueryClassCreatorAllowlistRequest): QueryClassCreatorAllowlistRequestProtoMsg; -}; -export declare const QueryClassCreatorAllowlistResponse: { - typeUrl: string; - encode(message: QueryClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassCreatorAllowlistResponse; - fromPartial(object: Partial): QueryClassCreatorAllowlistResponse; - fromAmino(object: QueryClassCreatorAllowlistResponseAmino): QueryClassCreatorAllowlistResponse; - toAmino(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: QueryClassCreatorAllowlistResponseAminoMsg): QueryClassCreatorAllowlistResponse; - fromProtoMsg(message: QueryClassCreatorAllowlistResponseProtoMsg): QueryClassCreatorAllowlistResponse; - toProto(message: QueryClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: QueryClassCreatorAllowlistResponse): QueryClassCreatorAllowlistResponseProtoMsg; -}; -export declare const QueryAllowedClassCreatorsRequest: { - typeUrl: string; - encode(message: QueryAllowedClassCreatorsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsRequest; - fromPartial(object: Partial): QueryAllowedClassCreatorsRequest; - fromAmino(object: QueryAllowedClassCreatorsRequestAmino): QueryAllowedClassCreatorsRequest; - toAmino(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestAmino; - fromAminoMsg(object: QueryAllowedClassCreatorsRequestAminoMsg): QueryAllowedClassCreatorsRequest; - fromProtoMsg(message: QueryAllowedClassCreatorsRequestProtoMsg): QueryAllowedClassCreatorsRequest; - toProto(message: QueryAllowedClassCreatorsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedClassCreatorsRequest): QueryAllowedClassCreatorsRequestProtoMsg; -}; -export declare const QueryAllowedClassCreatorsResponse: { - typeUrl: string; - encode(message: QueryAllowedClassCreatorsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedClassCreatorsResponse; - fromPartial(object: Partial): QueryAllowedClassCreatorsResponse; - fromAmino(object: QueryAllowedClassCreatorsResponseAmino): QueryAllowedClassCreatorsResponse; - toAmino(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseAmino; - fromAminoMsg(object: QueryAllowedClassCreatorsResponseAminoMsg): QueryAllowedClassCreatorsResponse; - fromProtoMsg(message: QueryAllowedClassCreatorsResponseProtoMsg): QueryAllowedClassCreatorsResponse; - toProto(message: QueryAllowedClassCreatorsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedClassCreatorsResponse): QueryAllowedClassCreatorsResponseProtoMsg; -}; -export declare const QueryClassFeeRequest: { - typeUrl: string; - encode(_: QueryClassFeeRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeRequest; - fromPartial(_: Partial): QueryClassFeeRequest; - fromAmino(_: QueryClassFeeRequestAmino): QueryClassFeeRequest; - toAmino(_: QueryClassFeeRequest): QueryClassFeeRequestAmino; - fromAminoMsg(object: QueryClassFeeRequestAminoMsg): QueryClassFeeRequest; - fromProtoMsg(message: QueryClassFeeRequestProtoMsg): QueryClassFeeRequest; - toProto(message: QueryClassFeeRequest): Uint8Array; - toProtoMsg(message: QueryClassFeeRequest): QueryClassFeeRequestProtoMsg; -}; -export declare const QueryClassFeeResponse: { - typeUrl: string; - encode(message: QueryClassFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassFeeResponse; - fromPartial(object: Partial): QueryClassFeeResponse; - fromAmino(object: QueryClassFeeResponseAmino): QueryClassFeeResponse; - toAmino(message: QueryClassFeeResponse): QueryClassFeeResponseAmino; - fromAminoMsg(object: QueryClassFeeResponseAminoMsg): QueryClassFeeResponse; - fromProtoMsg(message: QueryClassFeeResponseProtoMsg): QueryClassFeeResponse; - toProto(message: QueryClassFeeResponse): Uint8Array; - toProtoMsg(message: QueryClassFeeResponse): QueryClassFeeResponseProtoMsg; -}; -export declare const QueryAllowedBridgeChainsRequest: { - typeUrl: string; - encode(_: QueryAllowedBridgeChainsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsRequest; - fromPartial(_: Partial): QueryAllowedBridgeChainsRequest; - fromAmino(_: QueryAllowedBridgeChainsRequestAmino): QueryAllowedBridgeChainsRequest; - toAmino(_: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestAmino; - fromAminoMsg(object: QueryAllowedBridgeChainsRequestAminoMsg): QueryAllowedBridgeChainsRequest; - fromProtoMsg(message: QueryAllowedBridgeChainsRequestProtoMsg): QueryAllowedBridgeChainsRequest; - toProto(message: QueryAllowedBridgeChainsRequest): Uint8Array; - toProtoMsg(message: QueryAllowedBridgeChainsRequest): QueryAllowedBridgeChainsRequestProtoMsg; -}; -export declare const QueryAllowedBridgeChainsResponse: { - typeUrl: string; - encode(message: QueryAllowedBridgeChainsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedBridgeChainsResponse; - fromPartial(object: Partial): QueryAllowedBridgeChainsResponse; - fromAmino(object: QueryAllowedBridgeChainsResponseAmino): QueryAllowedBridgeChainsResponse; - toAmino(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseAmino; - fromAminoMsg(object: QueryAllowedBridgeChainsResponseAminoMsg): QueryAllowedBridgeChainsResponse; - fromProtoMsg(message: QueryAllowedBridgeChainsResponseProtoMsg): QueryAllowedBridgeChainsResponse; - toProto(message: QueryAllowedBridgeChainsResponse): Uint8Array; - toProtoMsg(message: QueryAllowedBridgeChainsResponse): QueryAllowedBridgeChainsResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.js b/packages/api/dist/regen/ecocredit/v1/query.js deleted file mode 100644 index e572c344..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.js +++ /dev/null @@ -1,4090 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryClassCreatorAllowlistResponse = exports.QueryClassCreatorAllowlistRequest = exports.BatchBalanceInfo = exports.BatchInfo = exports.ProjectInfo = exports.ClassInfo = exports.QueryCreditTypeResponse = exports.QueryCreditTypeRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryCreditTypesResponse = exports.QueryCreditTypesRequest = exports.QuerySupplyResponse = exports.QuerySupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalancesByBatchResponse = exports.QueryBalancesByBatchRequest = exports.QueryBalancesResponse = exports.QueryBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryBatchResponse = exports.QueryBatchRequest = exports.QueryBatchesByClassResponse = exports.QueryBatchesByProjectResponse = exports.QueryBatchesByProjectRequest = exports.QueryBatchesByClassRequest = exports.QueryBatchesByIssuerResponse = exports.QueryBatchesByIssuerRequest = exports.QueryBatchesResponse = exports.QueryBatchesRequest = exports.QueryProjectResponse = exports.QueryProjectRequest = exports.QueryProjectsByAdminResponse = exports.QueryProjectsByAdminRequest = exports.QueryProjectsByReferenceIdResponse = exports.QueryProjectsByReferenceIdRequest = exports.QueryProjectsByClassResponse = exports.QueryProjectsByClassRequest = exports.QueryProjectsResponse = exports.QueryProjectsRequest = exports.QueryClassIssuersResponse = exports.QueryClassIssuersRequest = exports.QueryClassResponse = exports.QueryClassRequest = exports.QueryClassesByAdminResponse = exports.QueryClassesByAdminRequest = exports.QueryClassesResponse = exports.QueryClassesRequest = void 0; -exports.QueryAllowedBridgeChainsResponse = exports.QueryAllowedBridgeChainsRequest = exports.QueryClassFeeResponse = exports.QueryClassFeeRequest = exports.QueryAllowedClassCreatorsResponse = exports.QueryAllowedClassCreatorsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); -const state_1 = require("./state"); -const types_1 = require("./types"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const coin_1 = require("../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseQueryClassesRequest() { - return { - pagination: undefined - }; -} -exports.QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesRequest", - value: exports.QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse() { - return { - classes: [], - pagination: undefined - }; -} -exports.QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.classes) { - exports.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(exports.ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => exports.ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => exports.ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? exports.ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesResponse", - value: exports.QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -exports.QueryClassesByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesByAdminRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminRequest", - value: exports.QueryClassesByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesByAdminResponse() { - return { - classes: [], - pagination: undefined - }; -} -exports.QueryClassesByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.classes) { - exports.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(exports.ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => exports.ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesByAdminResponse(); - message.classes = object.classes?.map(e => exports.ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? exports.ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesByAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassesByAdminResponse", - value: exports.QueryClassesByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassRequest() { - return { - classId: "" - }; -} -exports.QueryClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassRequest", - value: exports.QueryClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassResponse() { - return { - class: undefined - }; -} -exports.QueryClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.class !== undefined) { - exports.ClassInfo.encode(message.class, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.class = exports.ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassResponse(); - message.class = object.class !== undefined && object.class !== null ? exports.ClassInfo.fromPartial(object.class) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassResponse(); - if (object.class !== undefined && object.class !== null) { - message.class = exports.ClassInfo.fromAmino(object.class); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class = message.class ? exports.ClassInfo.toAmino(message.class) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassResponse", - value: exports.QueryClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersRequest() { - return { - classId: "", - pagination: undefined - }; -} -exports.QueryClassIssuersRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassIssuersRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassIssuersRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassIssuersRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassIssuersRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassIssuersRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersRequest", - value: exports.QueryClassIssuersRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassIssuersResponse() { - return { - issuers: [], - pagination: undefined - }; -} -exports.QueryClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.issuers) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuers.push(reader.string()); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassIssuersResponse(); - message.issuers = object.issuers?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassIssuersResponse", - value: exports.QueryClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsRequest() { - return { - pagination: undefined - }; -} -exports.QueryProjectsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsRequest", - value: exports.QueryProjectsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsResponse() { - return { - projects: [], - pagination: undefined - }; -} -exports.QueryProjectsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.projects) { - exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsResponse", - value: exports.QueryProjectsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassRequest() { - return { - classId: "", - pagination: undefined - }; -} -exports.QueryProjectsByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByClassRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassRequest", - value: exports.QueryProjectsByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByClassResponse() { - return { - projects: [], - pagination: undefined - }; -} -exports.QueryProjectsByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.projects) { - exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByClassResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByClassResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByClassResponse", - value: exports.QueryProjectsByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdRequest() { - return { - referenceId: "", - pagination: undefined - }; -} -exports.QueryProjectsByReferenceIdRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByReferenceIdRequest(); - message.referenceId = object.referenceId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByReferenceIdRequest(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByReferenceIdRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByReferenceIdRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByReferenceIdRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdRequest", - value: exports.QueryProjectsByReferenceIdRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByReferenceIdResponse() { - return { - projects: [], - pagination: undefined - }; -} -exports.QueryProjectsByReferenceIdResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.projects) { - exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByReferenceIdResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByReferenceIdResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByReferenceIdResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByReferenceIdResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByReferenceIdResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByReferenceIdResponse", - value: exports.QueryProjectsByReferenceIdResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminRequest() { - return { - admin: "", - pagination: undefined - }; -} -exports.QueryProjectsByAdminRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByAdminRequest(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByAdminRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByAdminRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByAdminRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminRequest", - value: exports.QueryProjectsByAdminRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectsByAdminResponse() { - return { - projects: [], - pagination: undefined - }; -} -exports.QueryProjectsByAdminResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.projects) { - exports.ProjectInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projects.push(exports.ProjectInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectsByAdminResponse(); - message.projects = object.projects?.map(e => exports.ProjectInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.projects) { - obj.projects = message.projects.map(e => e ? exports.ProjectInfo.toAmino(e) : undefined); - } - else { - obj.projects = message.projects; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectsByAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectsByAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectsByAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectsByAdminResponse", - value: exports.QueryProjectsByAdminResponse.encode(message).finish() - }; - } -}; -function createBaseQueryProjectRequest() { - return { - projectId: "" - }; -} -exports.QueryProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectRequest(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectRequest", - value: exports.QueryProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryProjectResponse() { - return { - project: undefined - }; -} -exports.QueryProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.project !== undefined) { - exports.ProjectInfo.encode(message.project, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = exports.ProjectInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryProjectResponse(); - message.project = object.project !== undefined && object.project !== null ? exports.ProjectInfo.fromPartial(object.project) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryProjectResponse(); - if (object.project !== undefined && object.project !== null) { - message.project = exports.ProjectInfo.fromAmino(object.project); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project = message.project ? exports.ProjectInfo.toAmino(message.project) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryProjectResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryProjectResponse", - value: exports.QueryProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest() { - return { - pagination: undefined - }; -} -exports.QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesRequest", - value: exports.QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse() { - return { - batches: [], - pagination: undefined - }; -} -exports.QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.batches) { - exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesResponse", - value: exports.QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerRequest() { - return { - issuer: "", - pagination: undefined - }; -} -exports.QueryBatchesByIssuerRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByIssuerRequest(); - message.issuer = object.issuer ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByIssuerRequest(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByIssuerRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByIssuerRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByIssuerRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerRequest", - value: exports.QueryBatchesByIssuerRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByIssuerResponse() { - return { - batches: [], - pagination: undefined - }; -} -exports.QueryBatchesByIssuerResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.batches) { - exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByIssuerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByIssuerResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByIssuerResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByIssuerResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByIssuerResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByIssuerResponse", - value: exports.QueryBatchesByIssuerResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassRequest() { - return { - classId: "", - pagination: undefined - }; -} -exports.QueryBatchesByClassRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByClassRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByClassRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByClassRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByClassRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByClassRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassRequest", - value: exports.QueryBatchesByClassRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectRequest() { - return { - projectId: "", - pagination: undefined - }; -} -exports.QueryBatchesByProjectRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByProjectRequest(); - message.projectId = object.projectId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByProjectRequest(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByProjectRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByProjectRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByProjectRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectRequest", - value: exports.QueryBatchesByProjectRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByProjectResponse() { - return { - batches: [], - pagination: undefined - }; -} -exports.QueryBatchesByProjectResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.batches) { - exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByProjectResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByProjectResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByProjectResponse", - value: exports.QueryBatchesByProjectResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesByClassResponse() { - return { - batches: [], - pagination: undefined - }; -} -exports.QueryBatchesByClassResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.batches) { - exports.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesByClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(exports.BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesByClassResponse(); - message.batches = object.batches?.map(e => exports.BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? exports.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesByClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesByClassResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesByClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchesByClassResponse", - value: exports.QueryBatchesByClassResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchRequest() { - return { - batchDenom: "" - }; -} -exports.QueryBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchRequest", - value: exports.QueryBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchResponse() { - return { - batch: undefined - }; -} -exports.QueryBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batch !== undefined) { - exports.BatchInfo.encode(message.batch, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batch = exports.BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchResponse(); - message.batch = object.batch !== undefined && object.batch !== null ? exports.BatchInfo.fromPartial(object.batch) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchResponse(); - if (object.batch !== undefined && object.batch !== null) { - message.batch = exports.BatchInfo.fromAmino(object.batch); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch = message.batch ? exports.BatchInfo.toAmino(message.batch) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBatchResponse", - value: exports.QueryBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest() { - return { - address: "", - batchDenom: "" - }; -} -exports.QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceRequest", - value: exports.QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - balance: undefined - }; -} -exports.QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.balance !== undefined) { - exports.BatchBalanceInfo.encode(message.balance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balance = exports.BatchBalanceInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.balance = object.balance !== undefined && object.balance !== null ? exports.BatchBalanceInfo.fromPartial(object.balance) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.balance !== undefined && object.balance !== null) { - message.balance = exports.BatchBalanceInfo.fromAmino(object.balance); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.balance = message.balance ? exports.BatchBalanceInfo.toAmino(message.balance) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalanceResponse", - value: exports.QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesRequest() { - return { - address: "", - pagination: undefined - }; -} -exports.QueryBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesRequest(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesRequest", - value: exports.QueryBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -exports.QueryBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesResponse", - value: exports.QueryBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchRequest() { - return { - batchDenom: "", - pagination: undefined - }; -} -exports.QueryBalancesByBatchRequest = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesByBatchRequest(); - message.batchDenom = object.batchDenom ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesByBatchRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalancesByBatchRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalancesByBatchRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBalancesByBatchRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchRequest", - value: exports.QueryBalancesByBatchRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalancesByBatchResponse() { - return { - balances: [], - pagination: undefined - }; -} -exports.QueryBalancesByBatchResponse = { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalancesByBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalancesByBatchResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalancesByBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalancesByBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBalancesByBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryBalancesByBatchResponse", - value: exports.QueryBalancesByBatchResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesRequest() { - return { - pagination: undefined - }; -} -exports.QueryAllBalancesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllBalancesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllBalancesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllBalancesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesRequest", - value: exports.QueryAllBalancesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllBalancesResponse() { - return { - balances: [], - pagination: undefined - }; -} -exports.QueryAllBalancesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.balances) { - exports.BatchBalanceInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllBalancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.balances.push(exports.BatchBalanceInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllBalancesResponse(); - message.balances = object.balances?.map(e => exports.BatchBalanceInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.balances) { - obj.balances = message.balances.map(e => e ? exports.BatchBalanceInfo.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllBalancesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllBalancesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllBalancesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllBalancesResponse", - value: exports.QueryAllBalancesResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest() { - return { - batchDenom: "" - }; -} -exports.QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySupplyRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyRequest", - value: exports.QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse() { - return { - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -exports.QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(26).string(message.cancelledAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - case 3: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySupplyResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QuerySupplyResponse", - value: exports.QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest() { - return {}; -} -exports.QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesRequest", - value: exports.QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse() { - return { - creditTypes: [] - }; -} -exports.QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.creditTypes) { - state_1.CreditType.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(state_1.CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => state_1.CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => state_1.CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? state_1.CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypesResponse", - value: exports.QueryCreditTypesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -exports.QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = types_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = types_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeRequest() { - return { - abbreviation: "" - }; -} -exports.QueryCreditTypeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypeRequest(); - message.abbreviation = object.abbreviation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypeRequest(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypeRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeRequest", - value: exports.QueryCreditTypeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypeResponse() { - return { - creditType: undefined - }; -} -exports.QueryCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.creditType !== undefined) { - state_1.CreditType.encode(message.creditType, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditType = state_1.CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypeResponse(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypeResponse(); - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = state_1.CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypeResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryCreditTypeResponse", - value: exports.QueryCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseClassInfo() { - return { - id: "", - admin: "", - metadata: "", - creditTypeAbbrev: "" - }; -} -exports.ClassInfo = { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClassInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassInfo.decode(message.value); - }, - toProto(message) { - return exports.ClassInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassInfo", - value: exports.ClassInfo.encode(message).finish() - }; - } -}; -function createBaseProjectInfo() { - return { - id: "", - admin: "", - classId: "", - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -exports.ProjectInfo = { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(26).string(message.classId); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(50).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.classId = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProjectInfo(); - message.id = object.id ?? ""; - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProjectInfo(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return exports.ProjectInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ProjectInfo.decode(message.value); - }, - toProto(message) { - return exports.ProjectInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ProjectInfo", - value: exports.ProjectInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo() { - return { - issuer: "", - projectId: "", - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -exports.BatchInfo = { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.denom !== "") { - writer.uint32(26).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.issuanceDate), writer.uint32(58).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(64).bool(message.open); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.denom = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchInfo(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.issuanceDate = object.issuanceDate ?? undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseBatchInfo(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.issuance_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.issuance_date = message.issuanceDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.issuanceDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchInfo.decode(message.value); - }, - toProto(message) { - return exports.BatchInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchInfo", - value: exports.BatchInfo.encode(message).finish() - }; - } -}; -function createBaseBatchBalanceInfo() { - return { - address: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -exports.BatchBalanceInfo = { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalanceInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchBalanceInfo(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchBalanceInfo(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchBalanceInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchBalanceInfo.decode(message.value); - }, - toProto(message) { - return exports.BatchBalanceInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalanceInfo", - value: exports.BatchBalanceInfo.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistRequest() { - return {}; -} -exports.QueryClassCreatorAllowlistRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClassCreatorAllowlistRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassCreatorAllowlistRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassCreatorAllowlistRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassCreatorAllowlistRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistRequest", - value: exports.QueryClassCreatorAllowlistRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassCreatorAllowlistResponse() { - return { - enabled: false - }; -} -exports.QueryClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassCreatorAllowlistResponse(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassCreatorAllowlistResponse(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassCreatorAllowlistResponse", - value: exports.QueryClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsRequest() { - return { - pagination: undefined - }; -} -exports.QueryAllowedClassCreatorsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedClassCreatorsRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedClassCreatorsRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedClassCreatorsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedClassCreatorsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedClassCreatorsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsRequest", - value: exports.QueryAllowedClassCreatorsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedClassCreatorsResponse() { - return { - classCreators: [], - pagination: undefined - }; -} -exports.QueryAllowedClassCreatorsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.classCreators) { - writer.uint32(10).string(v); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedClassCreatorsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classCreators.push(reader.string()); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.classCreators?.map(e => e) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedClassCreatorsResponse(); - message.classCreators = object.class_creators?.map(e => e) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classCreators) { - obj.class_creators = message.classCreators.map(e => e); - } - else { - obj.class_creators = message.classCreators; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedClassCreatorsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedClassCreatorsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedClassCreatorsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedClassCreatorsResponse", - value: exports.QueryAllowedClassCreatorsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeRequest() { - return {}; -} -exports.QueryClassFeeRequest = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryClassFeeRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassFeeRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassFeeRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassFeeRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeRequest", - value: exports.QueryClassFeeRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassFeeResponse() { - return { - fee: undefined - }; -} -exports.QueryClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassFeeResponse(); - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassFeeResponse(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassFeeResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryClassFeeResponse", - value: exports.QueryClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsRequest() { - return {}; -} -exports.QueryAllowedBridgeChainsRequest = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryAllowedBridgeChainsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedBridgeChainsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedBridgeChainsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedBridgeChainsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsRequest", - value: exports.QueryAllowedBridgeChainsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryAllowedBridgeChainsResponse() { - return { - allowedBridgeChains: [] - }; -} -exports.QueryAllowedBridgeChainsResponse = { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.allowedBridgeChains) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowedBridgeChainsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryAllowedBridgeChainsResponse(); - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } - else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryAllowedBridgeChainsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryAllowedBridgeChainsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryAllowedBridgeChainsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.QueryAllowedBridgeChainsResponse", - value: exports.QueryAllowedBridgeChainsResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts deleted file mode 100644 index 022714ce..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.lcd.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassesByAdminRequest, QueryClassesByAdminResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassIssuersRequest, QueryClassIssuersResponseSDKType, QueryProjectsRequest, QueryProjectsResponseSDKType, QueryProjectsByClassRequest, QueryProjectsByClassResponseSDKType, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponseSDKType, QueryProjectsByAdminRequest, QueryProjectsByAdminResponseSDKType, QueryProjectRequest, QueryProjectResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponseSDKType, QueryBatchesByClassRequest, QueryBatchesByClassResponseSDKType, QueryBatchesByProjectRequest, QueryBatchesByProjectResponseSDKType, QueryBatchRequest, QueryBatchResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QueryBalancesRequest, QueryBalancesResponseSDKType, QueryBalancesByBatchRequest, QueryBalancesByBatchResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryCreditTypeRequest, QueryCreditTypeResponseSDKType, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponseSDKType, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponseSDKType, QueryClassFeeRequest, QueryClassFeeResponseSDKType, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - classes(params?: QueryClassesRequest): Promise; - classesByAdmin(params: QueryClassesByAdminRequest): Promise; - class(params: QueryClassRequest): Promise; - classIssuers(params: QueryClassIssuersRequest): Promise; - projects(params?: QueryProjectsRequest): Promise; - projectsByClass(params: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(params: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(params: QueryProjectsByAdminRequest): Promise; - project(params: QueryProjectRequest): Promise; - batches(params?: QueryBatchesRequest): Promise; - batchesByIssuer(params: QueryBatchesByIssuerRequest): Promise; - batchesByClass(params: QueryBatchesByClassRequest): Promise; - batchesByProject(params: QueryBatchesByProjectRequest): Promise; - batch(params: QueryBatchRequest): Promise; - balance(params: QueryBalanceRequest): Promise; - balances(params: QueryBalancesRequest): Promise; - balancesByBatch(params: QueryBalancesByBatchRequest): Promise; - allBalances(params?: QueryAllBalancesRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - creditTypes(_params?: QueryCreditTypesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; - creditType(params: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(_params?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(params?: QueryAllowedClassCreatorsRequest): Promise; - classFee(_params?: QueryClassFeeRequest): Promise; - allowedBridgeChains(_params?: QueryAllowedBridgeChainsRequest): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/v1/query.lcd.js b/packages/api/dist/regen/ecocredit/v1/query.lcd.js deleted file mode 100644 index a6098764..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.lcd.js +++ /dev/null @@ -1,292 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassesByAdmin queries for all credit classes with a specific admin - address. */ - async classesByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/classes-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Class queries for information on a credit class. */ - async class(params) { - const endpoint = `regen/ecocredit/v1/class/${params.classId}`; - return await this.req.get(endpoint); - } - /* ClassIssuers queries for the addresses of the issuers for a credit class. */ - async classIssuers(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/class-issuers/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* Projects queries for all projects with pagination. */ - async projects(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects`; - return await this.req.get(endpoint, options); - } - /* ProjectsByClass queries for all projects within a class with pagination. */ - async projectsByClass(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByReferenceId queries for all projects by reference-id with - pagination. */ - async projectsByReferenceId(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-reference-id/${params.referenceId}`; - return await this.req.get(endpoint, options); - } - /* ProjectsByAdmin queries for all projects by admin with - pagination. */ - async projectsByAdmin(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/projects-by-admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Project queries for information on a project. */ - async project(params) { - const endpoint = `regen/ecocredit/v1/project/${params.projectId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches with pagination. */ - async batches(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches`; - return await this.req.get(endpoint, options); - } - /* BatchesByIssuer queries all batches issued from a given issuer address. */ - async batchesByIssuer(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-issuer/${params.issuer}`; - return await this.req.get(endpoint, options); - } - /* BatchesByClass queries all batches issued from a given class. */ - async batchesByClass(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-class/${params.classId}`; - return await this.req.get(endpoint, options); - } - /* BatchesByProject queries for all batches from a given project with - pagination. */ - async batchesByProject(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/batches-by-project/${params.projectId}`; - return await this.req.get(endpoint, options); - } - /* Batch queries for information on a credit batch. */ - async batch(params) { - const endpoint = `regen/ecocredit/v1/batch/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account address. */ - async balance(params) { - const endpoint = `regen/ecocredit/v1/balance/${params.batchDenom}/${params.address}`; - return await this.req.get(endpoint); - } - /* Balances queries all credit balances the given account holds. */ - async balances(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances/${params.address}`; - return await this.req.get(endpoint, options); - } - /* BalancesByBatch queries all credit balances from a given batch. - - Since Revision 2 */ - async balancesByBatch(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/balances-by-batch/${params.batchDenom}`; - return await this.req.get(endpoint, options); - } - /* AllBalances queries all credit balances. - - Since Revision 2 */ - async allBalances(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/all-balances`; - return await this.req.get(endpoint, options); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params) { - const endpoint = `regen/ecocredit/v1/supply/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params = {}) { - const endpoint = `regen/ecocredit/v1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. - - Deprecated (Since Revision 2): This rpc will be removed in the next - version. */ - async params(_params = {}) { - const endpoint = `regen/ecocredit/v1/params`; - return await this.req.get(endpoint); - } - /* CreditType queries credit type information by abbreviation. */ - async creditType(params) { - const endpoint = `regen/ecocredit/v1/credit-type/${params.abbreviation}`; - return await this.req.get(endpoint); - } - /* ClassCreatorAllowlist queries the credit class creator allowlist - enabled setting. - - Since Revision 2 */ - async classCreatorAllowlist(_params = {}) { - const endpoint = `regen/ecocredit/v1/class-creator-allowlist`; - return await this.req.get(endpoint); - } - /* AllowedClassCreators queries allowed credit class creators list. - - Since Revision 2 */ - async allowedClassCreators(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1/allowed-class-creators`; - return await this.req.get(endpoint, options); - } - /* ClassFee returns the credit class creation fee. If not set, a credit class - creation fee is not required. - - Since Revision 2 */ - async classFee(_params = {}) { - const endpoint = `regen/ecocredit/v1/class-fee`; - return await this.req.get(endpoint); - } - /* AllowedBridgeChains queries the list of chains allowed to be used in bridge - operations. - - Since Revision 2 */ - async allowedBridgeChains(_params = {}) { - const endpoint = `regen/ecocredit/v1/allowed-bridge-chains`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts deleted file mode 100644 index de47b8aa..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassesByAdminRequest, QueryClassesByAdminResponse, QueryClassRequest, QueryClassResponse, QueryClassIssuersRequest, QueryClassIssuersResponse, QueryProjectsRequest, QueryProjectsResponse, QueryProjectsByClassRequest, QueryProjectsByClassResponse, QueryProjectsByReferenceIdRequest, QueryProjectsByReferenceIdResponse, QueryProjectsByAdminRequest, QueryProjectsByAdminResponse, QueryProjectRequest, QueryProjectResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchesByIssuerRequest, QueryBatchesByIssuerResponse, QueryBatchesByClassRequest, QueryBatchesByClassResponse, QueryBatchesByProjectRequest, QueryBatchesByProjectResponse, QueryBatchRequest, QueryBatchResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBalancesRequest, QueryBalancesResponse, QueryBalancesByBatchRequest, QueryBalancesByBatchResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse, QueryCreditTypeRequest, QueryCreditTypeResponse, QueryClassCreatorAllowlistRequest, QueryClassCreatorAllowlistResponse, QueryAllowedClassCreatorsRequest, QueryAllowedClassCreatorsResponse, QueryClassFeeRequest, QueryClassFeeResponse, QueryAllowedBridgeChainsRequest, QueryAllowedBridgeChainsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** - * ClassesByAdmin queries for all credit classes with a specific admin - * address. - */ - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - /** Class queries for information on a credit class. */ - class(request: QueryClassRequest): Promise; - /** ClassIssuers queries for the addresses of the issuers for a credit class. */ - classIssuers(request: QueryClassIssuersRequest): Promise; - /** Projects queries for all projects with pagination. */ - projects(request?: QueryProjectsRequest): Promise; - /** ProjectsByClass queries for all projects within a class with pagination. */ - projectsByClass(request: QueryProjectsByClassRequest): Promise; - /** - * ProjectsByReferenceId queries for all projects by reference-id with - * pagination. - */ - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - /** - * ProjectsByAdmin queries for all projects by admin with - * pagination. - */ - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - /** Project queries for information on a project. */ - project(request: QueryProjectRequest): Promise; - /** Batches queries for all batches with pagination. */ - batches(request?: QueryBatchesRequest): Promise; - /** BatchesByIssuer queries all batches issued from a given issuer address. */ - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - /** BatchesByClass queries all batches issued from a given class. */ - batchesByClass(request: QueryBatchesByClassRequest): Promise; - /** - * BatchesByProject queries for all batches from a given project with - * pagination. - */ - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - /** Batch queries for information on a credit batch. */ - batch(request: QueryBatchRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account address. - */ - balance(request: QueryBalanceRequest): Promise; - /** Balances queries all credit balances the given account holds. */ - balances(request: QueryBalancesRequest): Promise; - /** - * BalancesByBatch queries all credit balances from a given batch. - * - * Since Revision 2 - */ - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - /** - * AllBalances queries all credit balances. - * - * Since Revision 2 - */ - allBalances(request?: QueryAllBalancesRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** - * Params queries the ecocredit module parameters. - * - * Deprecated (Since Revision 2): This rpc will be removed in the next - * version. - */ - params(request?: QueryParamsRequest): Promise; - /** CreditType queries credit type information by abbreviation. */ - creditType(request: QueryCreditTypeRequest): Promise; - /** - * ClassCreatorAllowlist queries the credit class creator allowlist - * enabled setting. - * - * Since Revision 2 - */ - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - /** - * AllowedClassCreators queries allowed credit class creators list. - * - * Since Revision 2 - */ - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - /** - * ClassFee returns the credit class creation fee. If not set, a credit class - * creation fee is not required. - * - * Since Revision 2 - */ - classFee(request?: QueryClassFeeRequest): Promise; - /** - * AllowedBridgeChains queries the list of chains allowed to be used in bridge - * operations. - * - * Since Revision 2 - */ - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - classes(request?: QueryClassesRequest): Promise; - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - class(request: QueryClassRequest): Promise; - classIssuers(request: QueryClassIssuersRequest): Promise; - projects(request?: QueryProjectsRequest): Promise; - projectsByClass(request: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - project(request: QueryProjectRequest): Promise; - batches(request?: QueryBatchesRequest): Promise; - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: QueryBatchesByClassRequest): Promise; - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - batch(request: QueryBatchRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - balances(request: QueryBalancesRequest): Promise; - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - allBalances(request?: QueryAllBalancesRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - creditType(request: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - classFee(request?: QueryClassFeeRequest): Promise; - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - classes(request?: QueryClassesRequest): Promise; - classesByAdmin(request: QueryClassesByAdminRequest): Promise; - class(request: QueryClassRequest): Promise; - classIssuers(request: QueryClassIssuersRequest): Promise; - projects(request?: QueryProjectsRequest): Promise; - projectsByClass(request: QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: QueryProjectsByAdminRequest): Promise; - project(request: QueryProjectRequest): Promise; - batches(request?: QueryBatchesRequest): Promise; - batchesByIssuer(request: QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: QueryBatchesByClassRequest): Promise; - batchesByProject(request: QueryBatchesByProjectRequest): Promise; - batch(request: QueryBatchRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - balances(request: QueryBalancesRequest): Promise; - balancesByBatch(request: QueryBalancesByBatchRequest): Promise; - allBalances(request?: QueryAllBalancesRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; - creditType(request: QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(request?: QueryAllowedClassCreatorsRequest): Promise; - classFee(request?: QueryClassFeeRequest): Promise; - allowedBridgeChains(request?: QueryAllowedBridgeChainsRequest): Promise; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js deleted file mode 100644 index fb9e4747..00000000 --- a/packages/api/dist/regen/ecocredit/v1/query.rpc.Query.js +++ /dev/null @@ -1,264 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classesByAdmin = this.classesByAdmin.bind(this); - this.class = this.class.bind(this); - this.classIssuers = this.classIssuers.bind(this); - this.projects = this.projects.bind(this); - this.projectsByClass = this.projectsByClass.bind(this); - this.projectsByReferenceId = this.projectsByReferenceId.bind(this); - this.projectsByAdmin = this.projectsByAdmin.bind(this); - this.project = this.project.bind(this); - this.batches = this.batches.bind(this); - this.batchesByIssuer = this.batchesByIssuer.bind(this); - this.batchesByClass = this.batchesByClass.bind(this); - this.batchesByProject = this.batchesByProject.bind(this); - this.batch = this.batch.bind(this); - this.balance = this.balance.bind(this); - this.balances = this.balances.bind(this); - this.balancesByBatch = this.balancesByBatch.bind(this); - this.allBalances = this.allBalances.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - this.creditType = this.creditType.bind(this); - this.classCreatorAllowlist = this.classCreatorAllowlist.bind(this); - this.allowedClassCreators = this.allowedClassCreators.bind(this); - this.classFee = this.classFee.bind(this); - this.allowedBridgeChains = this.allowedBridgeChains.bind(this); - } - classes(request = { - pagination: undefined - }) { - const data = query_1.QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Classes", data); - return promise.then(data => query_1.QueryClassesResponse.decode(new binary_1.BinaryReader(data))); - } - classesByAdmin(request) { - const data = query_1.QueryClassesByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassesByAdmin", data); - return promise.then(data => query_1.QueryClassesByAdminResponse.decode(new binary_1.BinaryReader(data))); - } - class(request) { - const data = query_1.QueryClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Class", data); - return promise.then(data => query_1.QueryClassResponse.decode(new binary_1.BinaryReader(data))); - } - classIssuers(request) { - const data = query_1.QueryClassIssuersRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassIssuers", data); - return promise.then(data => query_1.QueryClassIssuersResponse.decode(new binary_1.BinaryReader(data))); - } - projects(request = { - pagination: undefined - }) { - const data = query_1.QueryProjectsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Projects", data); - return promise.then(data => query_1.QueryProjectsResponse.decode(new binary_1.BinaryReader(data))); - } - projectsByClass(request) { - const data = query_1.QueryProjectsByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByClass", data); - return promise.then(data => query_1.QueryProjectsByClassResponse.decode(new binary_1.BinaryReader(data))); - } - projectsByReferenceId(request) { - const data = query_1.QueryProjectsByReferenceIdRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByReferenceId", data); - return promise.then(data => query_1.QueryProjectsByReferenceIdResponse.decode(new binary_1.BinaryReader(data))); - } - projectsByAdmin(request) { - const data = query_1.QueryProjectsByAdminRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ProjectsByAdmin", data); - return promise.then(data => query_1.QueryProjectsByAdminResponse.decode(new binary_1.BinaryReader(data))); - } - project(request) { - const data = query_1.QueryProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Project", data); - return promise.then(data => query_1.QueryProjectResponse.decode(new binary_1.BinaryReader(data))); - } - batches(request = { - pagination: undefined - }) { - const data = query_1.QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batches", data); - return promise.then(data => query_1.QueryBatchesResponse.decode(new binary_1.BinaryReader(data))); - } - batchesByIssuer(request) { - const data = query_1.QueryBatchesByIssuerRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByIssuer", data); - return promise.then(data => query_1.QueryBatchesByIssuerResponse.decode(new binary_1.BinaryReader(data))); - } - batchesByClass(request) { - const data = query_1.QueryBatchesByClassRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByClass", data); - return promise.then(data => query_1.QueryBatchesByClassResponse.decode(new binary_1.BinaryReader(data))); - } - batchesByProject(request) { - const data = query_1.QueryBatchesByProjectRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BatchesByProject", data); - return promise.then(data => query_1.QueryBatchesByProjectResponse.decode(new binary_1.BinaryReader(data))); - } - batch(request) { - const data = query_1.QueryBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Batch", data); - return promise.then(data => query_1.QueryBatchResponse.decode(new binary_1.BinaryReader(data))); - } - balance(request) { - const data = query_1.QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balance", data); - return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); - } - balances(request) { - const data = query_1.QueryBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Balances", data); - return promise.then(data => query_1.QueryBalancesResponse.decode(new binary_1.BinaryReader(data))); - } - balancesByBatch(request) { - const data = query_1.QueryBalancesByBatchRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "BalancesByBatch", data); - return promise.then(data => query_1.QueryBalancesByBatchResponse.decode(new binary_1.BinaryReader(data))); - } - allBalances(request = { - pagination: undefined - }) { - const data = query_1.QueryAllBalancesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllBalances", data); - return promise.then(data => query_1.QueryAllBalancesResponse.decode(new binary_1.BinaryReader(data))); - } - supply(request) { - const data = query_1.QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Supply", data); - return promise.then(data => query_1.QuerySupplyResponse.decode(new binary_1.BinaryReader(data))); - } - creditTypes(request = {}) { - const data = query_1.QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditTypes", data); - return promise.then(data => query_1.QueryCreditTypesResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } - creditType(request) { - const data = query_1.QueryCreditTypeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "CreditType", data); - return promise.then(data => query_1.QueryCreditTypeResponse.decode(new binary_1.BinaryReader(data))); - } - classCreatorAllowlist(request = {}) { - const data = query_1.QueryClassCreatorAllowlistRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassCreatorAllowlist", data); - return promise.then(data => query_1.QueryClassCreatorAllowlistResponse.decode(new binary_1.BinaryReader(data))); - } - allowedClassCreators(request = { - pagination: undefined - }) { - const data = query_1.QueryAllowedClassCreatorsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedClassCreators", data); - return promise.then(data => query_1.QueryAllowedClassCreatorsResponse.decode(new binary_1.BinaryReader(data))); - } - classFee(request = {}) { - const data = query_1.QueryClassFeeRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "ClassFee", data); - return promise.then(data => query_1.QueryClassFeeResponse.decode(new binary_1.BinaryReader(data))); - } - allowedBridgeChains(request = {}) { - const data = query_1.QueryAllowedBridgeChainsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Query", "AllowedBridgeChains", data); - return promise.then(data => query_1.QueryAllowedBridgeChainsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request) { - return queryService.classes(request); - }, - classesByAdmin(request) { - return queryService.classesByAdmin(request); - }, - class(request) { - return queryService.class(request); - }, - classIssuers(request) { - return queryService.classIssuers(request); - }, - projects(request) { - return queryService.projects(request); - }, - projectsByClass(request) { - return queryService.projectsByClass(request); - }, - projectsByReferenceId(request) { - return queryService.projectsByReferenceId(request); - }, - projectsByAdmin(request) { - return queryService.projectsByAdmin(request); - }, - project(request) { - return queryService.project(request); - }, - batches(request) { - return queryService.batches(request); - }, - batchesByIssuer(request) { - return queryService.batchesByIssuer(request); - }, - batchesByClass(request) { - return queryService.batchesByClass(request); - }, - batchesByProject(request) { - return queryService.batchesByProject(request); - }, - batch(request) { - return queryService.batch(request); - }, - balance(request) { - return queryService.balance(request); - }, - balances(request) { - return queryService.balances(request); - }, - balancesByBatch(request) { - return queryService.balancesByBatch(request); - }, - allBalances(request) { - return queryService.allBalances(request); - }, - supply(request) { - return queryService.supply(request); - }, - creditTypes(request) { - return queryService.creditTypes(request); - }, - params(request) { - return queryService.params(request); - }, - creditType(request) { - return queryService.creditType(request); - }, - classCreatorAllowlist(request) { - return queryService.classCreatorAllowlist(request); - }, - allowedClassCreators(request) { - return queryService.allowedClassCreators(request); - }, - classFee(request) { - return queryService.classFee(request); - }, - allowedBridgeChains(request) { - return queryService.allowedBridgeChains(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/v1/state.d.ts b/packages/api/dist/regen/ecocredit/v1/state.d.ts deleted file mode 100644 index 9871ea8e..00000000 --- a/packages/api/dist/regen/ecocredit/v1/state.d.ts +++ /dev/null @@ -1,1110 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit: string; - /** precision is the decimal precision of the credit type. */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** name is the name of the credit type (e.g. carbon, biodiversity). */ - name?: string; - /** unit is the measurement unit of the credit type (e.g. kg, ton). */ - unit?: string; - /** precision is the decimal precision of the credit type. */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - abbreviation: string; - name: string; - unit: string; - precision: number; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface Class { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id: string; - /** admin is the admin of the credit class. */ - admin: Uint8Array; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - creditTypeAbbrev: string; -} -export interface ClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.Class"; - value: Uint8Array; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassAmino { - /** - * key is the table row identifier of the credit class used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the credit class auto-generated from the - * credit type abbreviation and the credit class sequence number. - */ - id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** credit_type_abbrev is the abbreviation of the credit type. */ - credit_type_abbrev?: string; -} -export interface ClassAminoMsg { - type: "/regen.ecocredit.v1.Class"; - value: ClassAmino; -} -/** Class represents the high-level on-chain information for a credit class. */ -export interface ClassSDKType { - key: bigint; - id: string; - admin: Uint8Array; - metadata: string; - credit_type_abbrev: string; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuer { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - classKey: bigint; - /** issuer is the approved issuer of the credit class. */ - issuer: Uint8Array; -} -export interface ClassIssuerProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassIssuer"; - value: Uint8Array; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a class issuer to a credit class. - */ - class_key?: string; - /** issuer is the approved issuer of the credit class. */ - issuer?: string; -} -export interface ClassIssuerAminoMsg { - type: "/regen.ecocredit.v1.ClassIssuer"; - value: ClassIssuerAmino; -} -/** - * ClassIssuers is a JOIN table for Class Info that stores the credit class - * issuers - */ -export interface ClassIssuerSDKType { - class_key: bigint; - issuer: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface Project { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id: string; - /** admin is the admin of the project. */ - admin: Uint8Array; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - classKey: bigint; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata: string; - /** reference_id is any arbitrary string used to reference the project. */ - referenceId: string; -} -export interface ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectAmino { - /** - * key is the table row identifier of the project used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * id is the unique identifier of the project either auto-generated from the - * credit class id and project sequence number or provided upon creation. - */ - id?: string; - /** admin is the admin of the project. */ - admin?: string; - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project to a credit class. - */ - class_key?: string; - /** - * jurisdiction is the jurisdiction of the project. - * Full documentation can be found in MsgCreateProject.jurisdiction. - */ - jurisdiction?: string; - /** metadata is any arbitrary metadata attached to the project. */ - metadata?: string; - /** reference_id is any arbitrary string used to reference the project. */ - reference_id?: string; -} -export interface ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: ProjectAmino; -} -/** Project represents the high-level on-chain information for a project. */ -export interface ProjectSDKType { - key: bigint; - id: string; - admin: Uint8Array; - class_key: bigint; - jurisdiction: string; - metadata: string; - reference_id: string; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface Batch { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key: bigint; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer: Uint8Array; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - projectKey: bigint; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuanceDate?: Date; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open: boolean; -} -export interface BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchAmino { - /** - * key is the table row identifier of the credit batch used internally for - * efficient lookups. This identifier is auto-incrementing. - */ - key?: string; - /** - * issuer is the address that created the batch and which is - * authorized to mint more credits if open=true. - */ - issuer?: string; - /** - * project_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a credit batch to a project. - */ - project_key?: string; - /** - * denom is the unique identifier of the credit batch formed from the - * project id, the batch sequence number, and the start and end date of the - * credit batch. - */ - denom?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** issuance_date is the timestamp when the credit batch was issued. */ - issuance_date?: string; - /** - * open tells if it's possible to mint new credits in the future. - * Once `open` is set to false, it can't be toggled any more. - */ - open?: boolean; -} -export interface BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: BatchAmino; -} -/** Batch represents the high-level on-chain information for a credit batch. */ -export interface BatchSDKType { - key: bigint; - issuer: Uint8Array; - project_key: bigint; - denom: string; - metadata: string; - start_date?: Date; - end_date?: Date; - issuance_date?: Date; - open: boolean; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequence { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - creditTypeAbbrev: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - nextSequence: bigint; -} -export interface ClassSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassSequence"; - value: Uint8Array; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceAmino { - /** - * credit_type_abbrev is the credit type abbreviation. This links a class - * sequence to a credit type. - */ - credit_type_abbrev?: string; - /** - * next_sequence is the next sequence number for a credit class within the - * credit type. The sequence number is used to generate a class id. - */ - next_sequence?: string; -} -export interface ClassSequenceAminoMsg { - type: "/regen.ecocredit.v1.ClassSequence"; - value: ClassSequenceAmino; -} -/** - * ClassSequence stores and increments the sequence number for credit classes - * within a credit type. - */ -export interface ClassSequenceSDKType { - credit_type_abbrev: string; - next_sequence: bigint; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequence { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - classKey: bigint; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - nextSequence: bigint; -} -export interface ProjectSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.ProjectSequence"; - value: Uint8Array; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceAmino { - /** - * class_key is the table row identifier of the credit class used internally - * for efficient lookups. This links a project sequence to a credit class. - */ - class_key?: string; - /** - * next_sequence is the next sequence number for a project within the credit - * class. The sequence number is used to generate a project id. - */ - next_sequence?: string; -} -export interface ProjectSequenceAminoMsg { - type: "/regen.ecocredit.v1.ProjectSequence"; - value: ProjectSequenceAmino; -} -/** - * ProjectSequence stores and increments the sequence number for projects within - * a credit class. - */ -export interface ProjectSequenceSDKType { - class_key: bigint; - next_sequence: bigint; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequence { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - projectKey: bigint; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - nextSequence: bigint; -} -export interface BatchSequenceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSequence"; - value: Uint8Array; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceAmino { - /** - * project_key is the table row identifier of the project used internally for - * efficient lookups. This links a batch sequence to a project. - */ - project_key?: string; - /** - * next_sequence is the next sequence number for a credit batch within the - * project. The sequence number is used to generate a batch denom. - */ - next_sequence?: string; -} -export interface BatchSequenceAminoMsg { - type: "/regen.ecocredit.v1.BatchSequence"; - value: BatchSequenceAmino; -} -/** - * BatchSequence stores and increments the sequence number for credit batches - * within a project. - */ -export interface BatchSequenceSDKType { - project_key: bigint; - next_sequence: bigint; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalance { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batchKey: bigint; - /** address is the address of the account that owns the credits. */ - address: Uint8Array; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradableAmount: string; - /** retired_amount is the total number of retired credits owned by address. */ - retiredAmount: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowedAmount: string; -} -export interface BatchBalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchBalance"; - value: Uint8Array; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch balance to a credit batch. - */ - batch_key?: string; - /** address is the address of the account that owns the credits. */ - address?: string; - /** tradable_amount is the total number of tradable credits owned by address. */ - tradable_amount?: string; - /** retired_amount is the total number of retired credits owned by address. */ - retired_amount?: string; - /** - * escrowed_amount is the total number of escrowed credits owned by address - * and held in escrow by the marketplace. Credits are held in escrow when a - * sell order is created and taken out of escrow when the sell order is either - * cancelled, updated with a reduced quantity, or processed. - */ - escrowed_amount?: string; -} -export interface BatchBalanceAminoMsg { - type: "/regen.ecocredit.v1.BatchBalance"; - value: BatchBalanceAmino; -} -/** BatchBalance stores each accounts credit balance. */ -export interface BatchBalanceSDKType { - batch_key: bigint; - address: Uint8Array; - tradable_amount: string; - retired_amount: string; - escrowed_amount: string; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupply { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batchKey: bigint; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradableAmount: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retiredAmount: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelledAmount: string; -} -export interface BatchSupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchSupply"; - value: Uint8Array; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplyAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links a batch supply to a credit batch. - */ - batch_key?: string; - /** - * tradable_amount is the total number of tradable credits in the credit - * batch. Tradable credits may be retired in which case they will be removed - * from tradable_amount and tracked in retired_amount. Tradable credits may - * also be cancelled in which case they will be removed from tradable_amount - * and tracked in cancelled_amount. The sum of the tradable, retired, and - * cancelled amounts will always equal the original credit issuance amount. - */ - tradable_amount?: string; - /** - * retired_amount is the total amount of credits that have been retired in the - * credit batch. The sum of the tradable, retired, and cancelled amounts will - * always equal the original credit issuance amount. - */ - retired_amount?: string; - /** - * cancelled_amount is the number of credits in the batch that have been - * cancelled, effectively undoing the issuance. The sum of the tradable, - * retired, and cancelled amounts will always equal the original credit - * issuance amount. - */ - cancelled_amount?: string; -} -export interface BatchSupplyAminoMsg { - type: "/regen.ecocredit.v1.BatchSupply"; - value: BatchSupplyAmino; -} -/** BatchSupply stores the supply of credits for a credit batch. */ -export interface BatchSupplySDKType { - batch_key: bigint; - tradable_amount: string; - retired_amount: string; - cancelled_amount: string; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndex { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - classKey: bigint; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source: string; -} -export interface OriginTxIndexProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex"; - value: Uint8Array; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexAmino { - /** - * class_key is the table row identifier of the credit class within which the - * credits were issued or minted. The class_key is included within the index - * to prevent malicious credit class issuers from blocking bridge operations - * taking place within another credit class. - */ - class_key?: string; - /** - * id is the transaction ID of an originating transaction or operation - * based on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating - * the mint process (e.g. polygon, ethereum, verra). - */ - source?: string; -} -export interface OriginTxIndexAminoMsg { - type: "/regen.ecocredit.v1.OriginTxIndex"; - value: OriginTxIndexAmino; -} -/** - * OriginTxIndex indexes the transaction ID and source from the OriginTx - * included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double - * minting errors. The index is scoped to a credit class (it includes the - * class_key) to prevent malicious credit class issuers from blocking any - * bridge operations taking place within another credit class. - */ -export interface OriginTxIndexSDKType { - class_key: bigint; - id: string; - source: string; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContract { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batchKey: bigint; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - classKey: bigint; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract: string; -} -export interface BatchContractProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchContract"; - value: Uint8Array; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractAmino { - /** - * batch_key is the table row identifier of the credit batch used internally - * for efficient lookups. This links an external contract to a credit batch. - */ - batch_key?: string; - /** - * class_key is the table row identifier of the credit class within which the - * credit batch exists. A contract is unique within the scope of a credit - * class to prevent malicious credit class issuers from blocking bridge - * operations taking place within another credit class. - */ - class_key?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be used when - * sending credits back to the source chain. - */ - contract?: string; -} -export interface BatchContractAminoMsg { - type: "/regen.ecocredit.v1.BatchContract"; - value: BatchContractAmino; -} -/** - * BatchContract stores the contract address from which credits were bridged - * when credits are bridged from a contract-based chain, therefore ensuring - * that each credit batch corresponds to a single contract and credits that - * have been bridged will always be bridged back to the original contract. - */ -export interface BatchContractSDKType { - batch_key: bigint; - class_key: bigint; - contract: string; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlist { - /** enabled is whether or not the allow list is enabled. */ - enabled: boolean; -} -export interface ClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistAmino { - /** enabled is whether or not the allow list is enabled. */ - enabled?: boolean; -} -export interface ClassCreatorAllowlistAminoMsg { - type: "/regen.ecocredit.v1.ClassCreatorAllowlist"; - value: ClassCreatorAllowlistAmino; -} -/** - * ClassCreatorAllowlist determines if the credit class creator allowlist is - * enabled. When set to true, only the addresses in the AllowedClassCreator - * table may create credit classes. When set to false, any address may create - * credit classes. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassCreatorAllowlistSDKType { - enabled: boolean; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreator { - /** address is the address that is allowed to create credit classes */ - address: Uint8Array; -} -export interface AllowedClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator"; - value: Uint8Array; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorAmino { - /** address is the address that is allowed to create credit classes */ - address?: string; -} -export interface AllowedClassCreatorAminoMsg { - type: "/regen.ecocredit.v1.AllowedClassCreator"; - value: AllowedClassCreatorAmino; -} -/** - * AllowedClassCreator is an allowed credit class creator. This table is - * controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedClassCreatorSDKType { - address: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFee { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: Coin; -} -export interface ClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.ClassFee"; - value: Uint8Array; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeAmino { - /** - * fee is the credit class creation fee. If not set, a credit class creation - * fee is not required. - */ - fee?: CoinAmino; -} -export interface ClassFeeAminoMsg { - type: "/regen.ecocredit.v1.ClassFee"; - value: ClassFeeAmino; -} -/** - * ClassFee is the credit class creation fee. If not set, a credit class - * creation fee is not required. This table is controlled via governance. - * - * Since Revision 2 - */ -export interface ClassFeeSDKType { - fee?: CoinSDKType; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChain { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chainName: string; -} -export interface AllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: Uint8Array; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainAmino { - /** chain_name is the name of the chain allowed to bridge ecocredits to. */ - chain_name?: string; -} -export interface AllowedBridgeChainAminoMsg { - type: "/regen.ecocredit.v1.AllowedBridgeChain"; - value: AllowedBridgeChainAmino; -} -/** - * AllowedBridgeChain is a list of chains that are allowed to be used in - * bridging operations. NOTE: chain_names MUST be converted to lowercase before - * writing to and reading from this table in order to keep entries consistent. - * This table is controlled via governance. - * - * Since Revision 2 - */ -export interface AllowedBridgeChainSDKType { - chain_name: string; -} -export declare const CreditType: { - typeUrl: string; - encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditType; - fromPartial(object: Partial): CreditType; - fromAmino(object: CreditTypeAmino): CreditType; - toAmino(message: CreditType): CreditTypeAmino; - fromAminoMsg(object: CreditTypeAminoMsg): CreditType; - fromProtoMsg(message: CreditTypeProtoMsg): CreditType; - toProto(message: CreditType): Uint8Array; - toProtoMsg(message: CreditType): CreditTypeProtoMsg; -}; -export declare const Class: { - typeUrl: string; - encode(message: Class, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Class; - fromPartial(object: Partial): Class; - fromAmino(object: ClassAmino): Class; - toAmino(message: Class): ClassAmino; - fromAminoMsg(object: ClassAminoMsg): Class; - fromProtoMsg(message: ClassProtoMsg): Class; - toProto(message: Class): Uint8Array; - toProtoMsg(message: Class): ClassProtoMsg; -}; -export declare const ClassIssuer: { - typeUrl: string; - encode(message: ClassIssuer, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassIssuer; - fromPartial(object: Partial): ClassIssuer; - fromAmino(object: ClassIssuerAmino): ClassIssuer; - toAmino(message: ClassIssuer): ClassIssuerAmino; - fromAminoMsg(object: ClassIssuerAminoMsg): ClassIssuer; - fromProtoMsg(message: ClassIssuerProtoMsg): ClassIssuer; - toProto(message: ClassIssuer): Uint8Array; - toProtoMsg(message: ClassIssuer): ClassIssuerProtoMsg; -}; -export declare const Project: { - typeUrl: string; - encode(message: Project, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Project; - fromPartial(object: Partial): Project; - fromAmino(object: ProjectAmino): Project; - toAmino(message: Project): ProjectAmino; - fromAminoMsg(object: ProjectAminoMsg): Project; - fromProtoMsg(message: ProjectProtoMsg): Project; - toProto(message: Project): Uint8Array; - toProtoMsg(message: Project): ProjectProtoMsg; -}; -export declare const Batch: { - typeUrl: string; - encode(message: Batch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Batch; - fromPartial(object: Partial): Batch; - fromAmino(object: BatchAmino): Batch; - toAmino(message: Batch): BatchAmino; - fromAminoMsg(object: BatchAminoMsg): Batch; - fromProtoMsg(message: BatchProtoMsg): Batch; - toProto(message: Batch): Uint8Array; - toProtoMsg(message: Batch): BatchProtoMsg; -}; -export declare const ClassSequence: { - typeUrl: string; - encode(message: ClassSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassSequence; - fromPartial(object: Partial): ClassSequence; - fromAmino(object: ClassSequenceAmino): ClassSequence; - toAmino(message: ClassSequence): ClassSequenceAmino; - fromAminoMsg(object: ClassSequenceAminoMsg): ClassSequence; - fromProtoMsg(message: ClassSequenceProtoMsg): ClassSequence; - toProto(message: ClassSequence): Uint8Array; - toProtoMsg(message: ClassSequence): ClassSequenceProtoMsg; -}; -export declare const ProjectSequence: { - typeUrl: string; - encode(message: ProjectSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProjectSequence; - fromPartial(object: Partial): ProjectSequence; - fromAmino(object: ProjectSequenceAmino): ProjectSequence; - toAmino(message: ProjectSequence): ProjectSequenceAmino; - fromAminoMsg(object: ProjectSequenceAminoMsg): ProjectSequence; - fromProtoMsg(message: ProjectSequenceProtoMsg): ProjectSequence; - toProto(message: ProjectSequence): Uint8Array; - toProtoMsg(message: ProjectSequence): ProjectSequenceProtoMsg; -}; -export declare const BatchSequence: { - typeUrl: string; - encode(message: BatchSequence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchSequence; - fromPartial(object: Partial): BatchSequence; - fromAmino(object: BatchSequenceAmino): BatchSequence; - toAmino(message: BatchSequence): BatchSequenceAmino; - fromAminoMsg(object: BatchSequenceAminoMsg): BatchSequence; - fromProtoMsg(message: BatchSequenceProtoMsg): BatchSequence; - toProto(message: BatchSequence): Uint8Array; - toProtoMsg(message: BatchSequence): BatchSequenceProtoMsg; -}; -export declare const BatchBalance: { - typeUrl: string; - encode(message: BatchBalance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchBalance; - fromPartial(object: Partial): BatchBalance; - fromAmino(object: BatchBalanceAmino): BatchBalance; - toAmino(message: BatchBalance): BatchBalanceAmino; - fromAminoMsg(object: BatchBalanceAminoMsg): BatchBalance; - fromProtoMsg(message: BatchBalanceProtoMsg): BatchBalance; - toProto(message: BatchBalance): Uint8Array; - toProtoMsg(message: BatchBalance): BatchBalanceProtoMsg; -}; -export declare const BatchSupply: { - typeUrl: string; - encode(message: BatchSupply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchSupply; - fromPartial(object: Partial): BatchSupply; - fromAmino(object: BatchSupplyAmino): BatchSupply; - toAmino(message: BatchSupply): BatchSupplyAmino; - fromAminoMsg(object: BatchSupplyAminoMsg): BatchSupply; - fromProtoMsg(message: BatchSupplyProtoMsg): BatchSupply; - toProto(message: BatchSupply): Uint8Array; - toProtoMsg(message: BatchSupply): BatchSupplyProtoMsg; -}; -export declare const OriginTxIndex: { - typeUrl: string; - encode(message: OriginTxIndex, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OriginTxIndex; - fromPartial(object: Partial): OriginTxIndex; - fromAmino(object: OriginTxIndexAmino): OriginTxIndex; - toAmino(message: OriginTxIndex): OriginTxIndexAmino; - fromAminoMsg(object: OriginTxIndexAminoMsg): OriginTxIndex; - fromProtoMsg(message: OriginTxIndexProtoMsg): OriginTxIndex; - toProto(message: OriginTxIndex): Uint8Array; - toProtoMsg(message: OriginTxIndex): OriginTxIndexProtoMsg; -}; -export declare const BatchContract: { - typeUrl: string; - encode(message: BatchContract, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchContract; - fromPartial(object: Partial): BatchContract; - fromAmino(object: BatchContractAmino): BatchContract; - toAmino(message: BatchContract): BatchContractAmino; - fromAminoMsg(object: BatchContractAminoMsg): BatchContract; - fromProtoMsg(message: BatchContractProtoMsg): BatchContract; - toProto(message: BatchContract): Uint8Array; - toProtoMsg(message: BatchContract): BatchContractProtoMsg; -}; -export declare const ClassCreatorAllowlist: { - typeUrl: string; - encode(message: ClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassCreatorAllowlist; - fromPartial(object: Partial): ClassCreatorAllowlist; - fromAmino(object: ClassCreatorAllowlistAmino): ClassCreatorAllowlist; - toAmino(message: ClassCreatorAllowlist): ClassCreatorAllowlistAmino; - fromAminoMsg(object: ClassCreatorAllowlistAminoMsg): ClassCreatorAllowlist; - fromProtoMsg(message: ClassCreatorAllowlistProtoMsg): ClassCreatorAllowlist; - toProto(message: ClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: ClassCreatorAllowlist): ClassCreatorAllowlistProtoMsg; -}; -export declare const AllowedClassCreator: { - typeUrl: string; - encode(message: AllowedClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedClassCreator; - fromPartial(object: Partial): AllowedClassCreator; - fromAmino(object: AllowedClassCreatorAmino): AllowedClassCreator; - toAmino(message: AllowedClassCreator): AllowedClassCreatorAmino; - fromAminoMsg(object: AllowedClassCreatorAminoMsg): AllowedClassCreator; - fromProtoMsg(message: AllowedClassCreatorProtoMsg): AllowedClassCreator; - toProto(message: AllowedClassCreator): Uint8Array; - toProtoMsg(message: AllowedClassCreator): AllowedClassCreatorProtoMsg; -}; -export declare const ClassFee: { - typeUrl: string; - encode(message: ClassFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassFee; - fromPartial(object: Partial): ClassFee; - fromAmino(object: ClassFeeAmino): ClassFee; - toAmino(message: ClassFee): ClassFeeAmino; - fromAminoMsg(object: ClassFeeAminoMsg): ClassFee; - fromProtoMsg(message: ClassFeeProtoMsg): ClassFee; - toProto(message: ClassFee): Uint8Array; - toProtoMsg(message: ClassFee): ClassFeeProtoMsg; -}; -export declare const AllowedBridgeChain: { - typeUrl: string; - encode(message: AllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedBridgeChain; - fromPartial(object: Partial): AllowedBridgeChain; - fromAmino(object: AllowedBridgeChainAmino): AllowedBridgeChain; - toAmino(message: AllowedBridgeChain): AllowedBridgeChainAmino; - fromAminoMsg(object: AllowedBridgeChainAminoMsg): AllowedBridgeChain; - fromProtoMsg(message: AllowedBridgeChainProtoMsg): AllowedBridgeChain; - toProto(message: AllowedBridgeChain): Uint8Array; - toProtoMsg(message: AllowedBridgeChain): AllowedBridgeChainProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/state.js b/packages/api/dist/regen/ecocredit/v1/state.js deleted file mode 100644 index 48a7ccf4..00000000 --- a/packages/api/dist/regen/ecocredit/v1/state.js +++ /dev/null @@ -1,1448 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllowedBridgeChain = exports.ClassFee = exports.AllowedClassCreator = exports.ClassCreatorAllowlist = exports.BatchContract = exports.OriginTxIndex = exports.BatchSupply = exports.BatchBalance = exports.BatchSequence = exports.ProjectSequence = exports.ClassSequence = exports.Batch = exports.Project = exports.ClassIssuer = exports.Class = exports.CreditType = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const coin_1 = require("../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseCreditType() { - return { - abbreviation: "", - name: "", - unit: "", - precision: 0 - }; -} -exports.CreditType = { - typeUrl: "/regen.ecocredit.v1.CreditType", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditType(); - message.abbreviation = object.abbreviation ?? ""; - message.name = object.name ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseCreditType(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.name = message.name === "" ? undefined : message.name; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object) { - return exports.CreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CreditType.decode(message.value); - }, - toProto(message) { - return exports.CreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.CreditType", - value: exports.CreditType.encode(message).finish() - }; - } -}; -function createBaseClass() { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - metadata: "", - creditTypeAbbrev: "" - }; -} -exports.Class = { - typeUrl: "/regen.ecocredit.v1.Class", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(42).string(message.creditTypeAbbrev); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.creditTypeAbbrev = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClass(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseClass(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = (0, helpers_1.bytesFromBase64)(object.admin); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? (0, helpers_1.base64FromBytes)(message.admin) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - return obj; - }, - fromAminoMsg(object) { - return exports.Class.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Class.decode(message.value); - }, - toProto(message) { - return exports.Class.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Class", - value: exports.Class.encode(message).finish() - }; - } -}; -function createBaseClassIssuer() { - return { - classKey: BigInt(0), - issuer: new Uint8Array() - }; -} -exports.ClassIssuer = { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassIssuer(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassIssuer(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseClassIssuer(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = (0, helpers_1.bytesFromBase64)(object.issuer); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.issuer = message.issuer ? (0, helpers_1.base64FromBytes)(message.issuer) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassIssuer.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassIssuer.decode(message.value); - }, - toProto(message) { - return exports.ClassIssuer.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassIssuer", - value: exports.ClassIssuer.encode(message).finish() - }; - } -}; -function createBaseProject() { - return { - key: BigInt(0), - id: "", - admin: new Uint8Array(), - classKey: BigInt(0), - jurisdiction: "", - metadata: "", - referenceId: "" - }; -} -exports.Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.admin.length !== 0) { - writer.uint32(26).bytes(message.admin); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(32).uint64(message.classKey); - } - if (message.jurisdiction !== "") { - writer.uint32(42).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(50).string(message.metadata); - } - if (message.referenceId !== "") { - writer.uint32(58).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.admin = reader.bytes(); - break; - case 4: - message.classKey = reader.uint64(); - break; - case 5: - message.jurisdiction = reader.string(); - break; - case 6: - message.metadata = reader.string(); - break; - case 7: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProject(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.admin = object.admin ?? new Uint8Array(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseProject(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = (0, helpers_1.bytesFromBase64)(object.admin); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.admin = message.admin ? (0, helpers_1.base64FromBytes)(message.admin) : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return exports.Project.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Project.decode(message.value); - }, - toProto(message) { - return exports.Project.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: exports.Project.encode(message).finish() - }; - } -}; -function createBaseBatch() { - return { - key: BigInt(0), - issuer: new Uint8Array(), - projectKey: BigInt(0), - denom: "", - metadata: "", - startDate: undefined, - endDate: undefined, - issuanceDate: undefined, - open: false - }; -} -exports.Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== BigInt(0)) { - writer.uint32(8).uint64(message.key); - } - if (message.issuer.length !== 0) { - writer.uint32(18).bytes(message.issuer); - } - if (message.projectKey !== BigInt(0)) { - writer.uint32(24).uint64(message.projectKey); - } - if (message.denom !== "") { - writer.uint32(34).string(message.denom); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(50).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(58).fork()).ldelim(); - } - if (message.issuanceDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.issuanceDate), writer.uint32(66).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(72).bool(message.open); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.uint64(); - break; - case 2: - message.issuer = reader.bytes(); - break; - case 3: - message.projectKey = reader.uint64(); - break; - case 4: - message.denom = reader.string(); - break; - case 5: - message.metadata = reader.string(); - break; - case 6: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.open = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatch(); - message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0); - message.issuer = object.issuer ?? new Uint8Array(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.denom = object.denom ?? ""; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.issuanceDate = object.issuanceDate ?? undefined; - message.open = object.open ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseBatch(); - if (object.key !== undefined && object.key !== null) { - message.key = BigInt(object.key); - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = (0, helpers_1.bytesFromBase64)(object.issuer); - } - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.denom !== undefined && object.denom !== null) { - message.denom = object.denom; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.issuance_date !== undefined && object.issuance_date !== null) { - message.issuanceDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.issuance_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key !== BigInt(0) ? message.key.toString() : undefined; - obj.issuer = message.issuer ? (0, helpers_1.base64FromBytes)(message.issuer) : undefined; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.denom = message.denom === "" ? undefined : message.denom; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.issuance_date = message.issuanceDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.issuanceDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - return obj; - }, - fromAminoMsg(object) { - return exports.Batch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Batch.decode(message.value); - }, - toProto(message) { - return exports.Batch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: exports.Batch.encode(message).finish() - }; - } -}; -function createBaseClassSequence() { - return { - creditTypeAbbrev: "", - nextSequence: BigInt(0) - }; -} -exports.ClassSequence = { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.creditTypeAbbrev !== "") { - writer.uint32(10).string(message.creditTypeAbbrev); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypeAbbrev = reader.string(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassSequence(); - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseClassSequence(); - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassSequence.decode(message.value); - }, - toProto(message) { - return exports.ClassSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassSequence", - value: exports.ClassSequence.encode(message).finish() - }; - } -}; -function createBaseProjectSequence() { - return { - classKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -exports.ProjectSequence = { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProjectSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProjectSequence(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseProjectSequence(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ProjectSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ProjectSequence.decode(message.value); - }, - toProto(message) { - return exports.ProjectSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ProjectSequence", - value: exports.ProjectSequence.encode(message).finish() - }; - } -}; -function createBaseBatchSequence() { - return { - projectKey: BigInt(0), - nextSequence: BigInt(0) - }; -} -exports.BatchSequence = { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectKey !== BigInt(0)) { - writer.uint32(8).uint64(message.projectKey); - } - if (message.nextSequence !== BigInt(0)) { - writer.uint32(16).uint64(message.nextSequence); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSequence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectKey = reader.uint64(); - break; - case 2: - message.nextSequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchSequence(); - message.projectKey = object.projectKey !== undefined && object.projectKey !== null ? BigInt(object.projectKey.toString()) : BigInt(0); - message.nextSequence = object.nextSequence !== undefined && object.nextSequence !== null ? BigInt(object.nextSequence.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBatchSequence(); - if (object.project_key !== undefined && object.project_key !== null) { - message.projectKey = BigInt(object.project_key); - } - if (object.next_sequence !== undefined && object.next_sequence !== null) { - message.nextSequence = BigInt(object.next_sequence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_key = message.projectKey !== BigInt(0) ? message.projectKey.toString() : undefined; - obj.next_sequence = message.nextSequence !== BigInt(0) ? message.nextSequence.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchSequence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchSequence.decode(message.value); - }, - toProto(message) { - return exports.BatchSequence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchSequence", - value: exports.BatchSequence.encode(message).finish() - }; - } -}; -function createBaseBatchBalance() { - return { - batchKey: BigInt(0), - address: new Uint8Array(), - tradableAmount: "", - retiredAmount: "", - escrowedAmount: "" - }; -} -exports.BatchBalance = { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.address.length !== 0) { - writer.uint32(18).bytes(message.address); - } - if (message.tradableAmount !== "") { - writer.uint32(26).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(34).string(message.retiredAmount); - } - if (message.escrowedAmount !== "") { - writer.uint32(42).string(message.escrowedAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.address = reader.bytes(); - break; - case 3: - message.tradableAmount = reader.string(); - break; - case 4: - message.retiredAmount = reader.string(); - break; - case 5: - message.escrowedAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchBalance(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.address = object.address ?? new Uint8Array(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.escrowedAmount = object.escrowedAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchBalance(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.address !== undefined && object.address !== null) { - message.address = (0, helpers_1.bytesFromBase64)(object.address); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.escrowed_amount !== undefined && object.escrowed_amount !== null) { - message.escrowedAmount = object.escrowed_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.escrowed_amount = message.escrowedAmount === "" ? undefined : message.escrowedAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchBalance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchBalance.decode(message.value); - }, - toProto(message) { - return exports.BatchBalance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchBalance", - value: exports.BatchBalance.encode(message).finish() - }; - } -}; -function createBaseBatchSupply() { - return { - batchKey: BigInt(0), - tradableAmount: "", - retiredAmount: "", - cancelledAmount: "" - }; -} -exports.BatchSupply = { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.cancelledAmount !== "") { - writer.uint32(34).string(message.cancelledAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.cancelledAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchSupply(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.cancelledAmount = object.cancelledAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchSupply(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.cancelled_amount !== undefined && object.cancelled_amount !== null) { - message.cancelledAmount = object.cancelled_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.cancelled_amount = message.cancelledAmount === "" ? undefined : message.cancelledAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchSupply.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchSupply.decode(message.value); - }, - toProto(message) { - return exports.BatchSupply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchSupply", - value: exports.BatchSupply.encode(message).finish() - }; - } -}; -function createBaseOriginTxIndex() { - return { - classKey: BigInt(0), - id: "", - source: "" - }; -} -exports.OriginTxIndex = { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classKey !== BigInt(0)) { - writer.uint32(8).uint64(message.classKey); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.source !== "") { - writer.uint32(26).string(message.source); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTxIndex(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classKey = reader.uint64(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.source = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOriginTxIndex(); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseOriginTxIndex(); - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - return obj; - }, - fromAminoMsg(object) { - return exports.OriginTxIndex.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.OriginTxIndex.decode(message.value); - }, - toProto(message) { - return exports.OriginTxIndex.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.OriginTxIndex", - value: exports.OriginTxIndex.encode(message).finish() - }; - } -}; -function createBaseBatchContract() { - return { - batchKey: BigInt(0), - classKey: BigInt(0), - contract: "" - }; -} -exports.BatchContract = { - typeUrl: "/regen.ecocredit.v1.BatchContract", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchKey !== BigInt(0)) { - writer.uint32(8).uint64(message.batchKey); - } - if (message.classKey !== BigInt(0)) { - writer.uint32(16).uint64(message.classKey); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchContract(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchKey = reader.uint64(); - break; - case 2: - message.classKey = reader.uint64(); - break; - case 3: - message.contract = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchContract(); - message.batchKey = object.batchKey !== undefined && object.batchKey !== null ? BigInt(object.batchKey.toString()) : BigInt(0); - message.classKey = object.classKey !== undefined && object.classKey !== null ? BigInt(object.classKey.toString()) : BigInt(0); - message.contract = object.contract ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchContract(); - if (object.batch_key !== undefined && object.batch_key !== null) { - message.batchKey = BigInt(object.batch_key); - } - if (object.class_key !== undefined && object.class_key !== null) { - message.classKey = BigInt(object.class_key); - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_key = message.batchKey !== BigInt(0) ? message.batchKey.toString() : undefined; - obj.class_key = message.classKey !== BigInt(0) ? message.classKey.toString() : undefined; - obj.contract = message.contract === "" ? undefined : message.contract; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchContract.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchContract.decode(message.value); - }, - toProto(message) { - return exports.BatchContract.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchContract", - value: exports.BatchContract.encode(message).finish() - }; - } -}; -function createBaseClassCreatorAllowlist() { - return { - enabled: false - }; -} -exports.ClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.enabled === true) { - writer.uint32(8).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassCreatorAllowlist(); - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseClassCreatorAllowlist(); - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassCreatorAllowlist.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassCreatorAllowlist.decode(message.value); - }, - toProto(message) { - return exports.ClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassCreatorAllowlist", - value: exports.ClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseAllowedClassCreator() { - return { - address: new Uint8Array() - }; -} -exports.AllowedClassCreator = { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedClassCreator(); - message.address = object.address ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseAllowedClassCreator(); - if (object.address !== undefined && object.address !== null) { - message.address = (0, helpers_1.bytesFromBase64)(object.address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.AllowedClassCreator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AllowedClassCreator.decode(message.value); - }, - toProto(message) { - return exports.AllowedClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedClassCreator", - value: exports.AllowedClassCreator.encode(message).finish() - }; - } -}; -function createBaseClassFee() { - return { - fee: undefined - }; -} -exports.ClassFee = { - typeUrl: "/regen.ecocredit.v1.ClassFee", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassFee(); - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseClassFee(); - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassFee.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassFee.decode(message.value); - }, - toProto(message) { - return exports.ClassFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.ClassFee", - value: exports.ClassFee.encode(message).finish() - }; - } -}; -function createBaseAllowedBridgeChain() { - return { - chainName: "" - }; -} -exports.AllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.chainName !== "") { - writer.uint32(10).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedBridgeChain(); - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedBridgeChain(); - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return exports.AllowedBridgeChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return exports.AllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedBridgeChain", - value: exports.AllowedBridgeChain.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts deleted file mode 100644 index 392f9256..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.amino.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: string; - toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; - fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; - }; - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: string; - toAmino: (message: MsgCreateProject) => import("./tx").MsgCreateProjectAmino; - fromAmino: (object: import("./tx").MsgCreateProjectAmino) => MsgCreateProject; - }; - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; - fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; - }; - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: string; - toAmino: (message: MsgMintBatchCredits) => import("./tx").MsgMintBatchCreditsAmino; - fromAmino: (object: import("./tx").MsgMintBatchCreditsAmino) => MsgMintBatchCredits; - }; - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: string; - toAmino: (message: MsgSealBatch) => import("./tx").MsgSealBatchAmino; - fromAmino: (object: import("./tx").MsgSealBatchAmino) => MsgSealBatch; - }; - "/regen.ecocredit.v1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/regen.ecocredit.v1.MsgRetire": { - aminoType: string; - toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; - fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; - }; - "/regen.ecocredit.v1.MsgCancel": { - aminoType: string; - toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; - fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; - }; - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateProjectAdmin) => import("./tx").MsgUpdateProjectAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateProjectAdminAmino) => MsgUpdateProjectAdmin; - }; - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateProjectMetadata) => import("./tx").MsgUpdateProjectMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateProjectMetadataAmino) => MsgUpdateProjectMetadata; - }; - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateBatchMetadata) => import("./tx").MsgUpdateBatchMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateBatchMetadataAmino) => MsgUpdateBatchMetadata; - }; - "/regen.ecocredit.v1.MsgBridge": { - aminoType: string; - toAmino: (message: MsgBridge) => import("./tx").MsgBridgeAmino; - fromAmino: (object: import("./tx").MsgBridgeAmino) => MsgBridge; - }; - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: string; - toAmino: (message: MsgBridgeReceive) => import("./tx").MsgBridgeReceiveAmino; - fromAmino: (object: import("./tx").MsgBridgeReceiveAmino) => MsgBridgeReceive; - }; - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: string; - toAmino: (message: MsgAddCreditType) => import("./tx").MsgAddCreditTypeAmino; - fromAmino: (object: import("./tx").MsgAddCreditTypeAmino) => MsgAddCreditType; - }; - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: string; - toAmino: (message: MsgSetClassCreatorAllowlist) => import("./tx").MsgSetClassCreatorAllowlistAmino; - fromAmino: (object: import("./tx").MsgSetClassCreatorAllowlistAmino) => MsgSetClassCreatorAllowlist; - }; - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: string; - toAmino: (message: MsgAddClassCreator) => import("./tx").MsgAddClassCreatorAmino; - fromAmino: (object: import("./tx").MsgAddClassCreatorAmino) => MsgAddClassCreator; - }; - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: string; - toAmino: (message: MsgRemoveClassCreator) => import("./tx").MsgRemoveClassCreatorAmino; - fromAmino: (object: import("./tx").MsgRemoveClassCreatorAmino) => MsgRemoveClassCreator; - }; - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: string; - toAmino: (message: MsgUpdateClassFee) => import("./tx").MsgUpdateClassFeeAmino; - fromAmino: (object: import("./tx").MsgUpdateClassFeeAmino) => MsgUpdateClassFee; - }; - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: string; - toAmino: (message: MsgAddAllowedBridgeChain) => import("./tx").MsgAddAllowedBridgeChainAmino; - fromAmino: (object: import("./tx").MsgAddAllowedBridgeChainAmino) => MsgAddAllowedBridgeChain; - }; - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: string; - toAmino: (message: MsgRemoveAllowedBridgeChain) => import("./tx").MsgRemoveAllowedBridgeChainAmino; - fromAmino: (object: import("./tx").MsgRemoveAllowedBridgeChainAmino) => MsgRemoveAllowedBridgeChain; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.amino.js b/packages/api/dist/regen/ecocredit/v1/tx.amino.js deleted file mode 100644 index cc8d9f20..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.amino.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.ecocredit.v1.MsgCreateClass": { - aminoType: "regen/MsgCreateClass", - toAmino: tx_1.MsgCreateClass.toAmino, - fromAmino: tx_1.MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateProject": { - aminoType: "regen/MsgCreateProject", - toAmino: tx_1.MsgCreateProject.toAmino, - fromAmino: tx_1.MsgCreateProject.fromAmino - }, - "/regen.ecocredit.v1.MsgCreateBatch": { - aminoType: "regen/MsgCreateBatch", - toAmino: tx_1.MsgCreateBatch.toAmino, - fromAmino: tx_1.MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgMintBatchCredits": { - aminoType: "regen/MsgMintBatchCredits", - toAmino: tx_1.MsgMintBatchCredits.toAmino, - fromAmino: tx_1.MsgMintBatchCredits.fromAmino - }, - "/regen.ecocredit.v1.MsgSealBatch": { - aminoType: "regen/MsgSealBatch", - toAmino: tx_1.MsgSealBatch.toAmino, - fromAmino: tx_1.MsgSealBatch.fromAmino - }, - "/regen.ecocredit.v1.MsgSend": { - aminoType: "regen/MsgSend", - toAmino: tx_1.MsgSend.toAmino, - fromAmino: tx_1.MsgSend.fromAmino - }, - "/regen.ecocredit.v1.MsgRetire": { - aminoType: "regen/MsgRetire", - toAmino: tx_1.MsgRetire.toAmino, - fromAmino: tx_1.MsgRetire.fromAmino - }, - "/regen.ecocredit.v1.MsgCancel": { - aminoType: "regen/MsgCancel", - toAmino: tx_1.MsgCancel.toAmino, - fromAmino: tx_1.MsgCancel.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassAdmin": { - aminoType: "regen/MsgUpdateClassAdmin", - toAmino: tx_1.MsgUpdateClassAdmin.toAmino, - fromAmino: tx_1.MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassIssuers": { - aminoType: "regen/MsgUpdateClassIssuers", - toAmino: tx_1.MsgUpdateClassIssuers.toAmino, - fromAmino: tx_1.MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassMetadata": { - aminoType: "regen/MsgUpdateClassMetadata", - toAmino: tx_1.MsgUpdateClassMetadata.toAmino, - fromAmino: tx_1.MsgUpdateClassMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectAdmin": { - aminoType: "regen/MsgUpdateProjectAdmin", - toAmino: tx_1.MsgUpdateProjectAdmin.toAmino, - fromAmino: tx_1.MsgUpdateProjectAdmin.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateProjectMetadata": { - aminoType: "regen/MsgUpdateProjectMetadata", - toAmino: tx_1.MsgUpdateProjectMetadata.toAmino, - fromAmino: tx_1.MsgUpdateProjectMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateBatchMetadata": { - aminoType: "regen/MsgUpdateBatchMetadata", - toAmino: tx_1.MsgUpdateBatchMetadata.toAmino, - fromAmino: tx_1.MsgUpdateBatchMetadata.fromAmino - }, - "/regen.ecocredit.v1.MsgBridge": { - aminoType: "regen/MsgBridge", - toAmino: tx_1.MsgBridge.toAmino, - fromAmino: tx_1.MsgBridge.fromAmino - }, - "/regen.ecocredit.v1.MsgBridgeReceive": { - aminoType: "regen/MsgBridgeReceive", - toAmino: tx_1.MsgBridgeReceive.toAmino, - fromAmino: tx_1.MsgBridgeReceive.fromAmino - }, - "/regen.ecocredit.v1.MsgAddCreditType": { - aminoType: "regen/MsgAddCreditType", - toAmino: tx_1.MsgAddCreditType.toAmino, - fromAmino: tx_1.MsgAddCreditType.fromAmino - }, - "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist": { - aminoType: "regen/MsgSetClassCreatorAllowlist", - toAmino: tx_1.MsgSetClassCreatorAllowlist.toAmino, - fromAmino: tx_1.MsgSetClassCreatorAllowlist.fromAmino - }, - "/regen.ecocredit.v1.MsgAddClassCreator": { - aminoType: "regen/MsgAddClassCreator", - toAmino: tx_1.MsgAddClassCreator.toAmino, - fromAmino: tx_1.MsgAddClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveClassCreator": { - aminoType: "regen/MsgRemoveClassCreator", - toAmino: tx_1.MsgRemoveClassCreator.toAmino, - fromAmino: tx_1.MsgRemoveClassCreator.fromAmino - }, - "/regen.ecocredit.v1.MsgUpdateClassFee": { - aminoType: "regen/MsgUpdateClassFee", - toAmino: tx_1.MsgUpdateClassFee.toAmino, - fromAmino: tx_1.MsgUpdateClassFee.fromAmino - }, - "/regen.ecocredit.v1.MsgAddAllowedBridgeChain": { - aminoType: "regen/MsgAddAllowedBridgeChain", - toAmino: tx_1.MsgAddAllowedBridgeChain.toAmino, - fromAmino: tx_1.MsgAddAllowedBridgeChain.fromAmino - }, - "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain": { - aminoType: "regen/MsgRemoveAllowedBridgeChain", - toAmino: tx_1.MsgRemoveAllowedBridgeChain.toAmino, - fromAmino: tx_1.MsgRemoveAllowedBridgeChain.fromAmino - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.d.ts deleted file mode 100644 index f66e0ecb..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.d.ts +++ /dev/null @@ -1,2528 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BatchIssuance, BatchIssuanceAmino, BatchIssuanceSDKType, OriginTx, OriginTxAmino, OriginTxSDKType, Credits, CreditsAmino, CreditsSDKType } from "./types"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditType { - /** authority is the address of the governance account. */ - authority: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - creditType?: CreditType; -} -export interface MsgAddCreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType"; - value: Uint8Array; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** credit_type defines a credit type to add to the credit types parameter. */ - credit_type?: CreditTypeAmino; -} -export interface MsgAddCreditTypeAminoMsg { - type: "regen/MsgAddCreditType"; - value: MsgAddCreditTypeAmino; -} -/** - * MsgAddCreditType is the Msg/AddCreditType request type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeSDKType { - authority: string; - credit_type?: CreditTypeSDKType; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponse { -} -export interface MsgAddCreditTypeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: Uint8Array; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseAmino { -} -export interface MsgAddCreditTypeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddCreditTypeResponse"; - value: MsgAddCreditTypeResponseAmino; -} -/** - * MsgAddCreditTypeResponse is the Msg/AddCreditType response type. - * - * Since Revision 2 - */ -export interface MsgAddCreditTypeResponseSDKType { -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - creditTypeAbbrev: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: Coin; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** - * admin is the address of the account creating the credit class that will - * become the admin of the credit class upon creation. The admin will have - * permissions within the credit class to update the credit class including - * the list of approved issuers. If Params.allowlist_enabled is set to true, - * this address must be included in Params.allowed_class_creators. - */ - admin?: string; - /** - * issuers are the addresses of the accounts that will have permissions within - * the credit class to create projects and issue credits. - */ - issuers?: string[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit class. - */ - metadata?: string; - /** - * credit_type_abbrev is the abbreviation of the credit type under which the - * credit class will be created (e.g. "C", "BIO"). - */ - credit_type_abbrev?: string; - /** - * fee is the credit class creation fee. An equal fee is required if the class - * creation fee parameter is set. The provided fee can be greater than the - * parameter, but only the amount in the parameter will be charged. - */ - fee?: CoinAmino; -} -export interface MsgCreateClassAminoMsg { - type: "regen/MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: string; - credit_type_abbrev: string; - fee?: CoinSDKType; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique identifier of the credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique identifier of the credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProject { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - classId: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - referenceId: string; -} -export interface MsgCreateProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectAmino { - /** - * admin is the address of the account creating the project that will become - * the admin of the project upon creation. The creator of the project must be - * an approved issuer within the credit class under which the project is being - * created. The admin will have permissions to update the project including - * the ability to reassign the admin role to another account. - */ - admin?: string; - /** - * class_id is the unique identifier of the credit class under which the - * project will be created. - */ - class_id?: string; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the project. - */ - metadata?: string; - /** - * jurisdiction is the jurisdiction of the project. A jurisdiction has with - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reference_id is any arbitrary string used to reference the project with a - * maximum length of 32 characters. - */ - reference_id?: string; -} -export interface MsgCreateProjectAminoMsg { - type: "regen/MsgCreateProject"; - value: MsgCreateProjectAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject request type. */ -export interface MsgCreateProjectSDKType { - admin: string; - class_id: string; - metadata: string; - jurisdiction: string; - reference_id: string; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponse { - /** project_id is the unique identifier of the project. */ - projectId: string; -} -export interface MsgCreateProjectResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: Uint8Array; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseAmino { - /** project_id is the unique identifier of the project. */ - project_id?: string; -} -export interface MsgCreateProjectResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateProjectResponse"; - value: MsgCreateProjectResponseAmino; -} -/** MsgCreateProjectResponse is the Msg/CreateProject response type. */ -export interface MsgCreateProjectResponseSDKType { - project_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - projectId: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - originTx?: OriginTx; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** - * issuer is the address of the account issuing the credits and must be an - * approved issuer within the credit class of the project. - */ - issuer?: string; - /** - * project_id is the unique identifier of the project under which the credit - * batch will be created. - */ - project_id?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * metadata is any arbitrary string with a maximum length of 256 characters - * that includes or references metadata to attach to the credit batch. - */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * open determines whether or not the credits can be dynamically minted to the - * credit batch following the creation of the credit batch. This field should - * only be set to true when bridging credits from another chain or registry as - * a result of a bridge operation and is not intended for native issuance. - */ - open?: boolean; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the creation of the credit batch. This field can be ignored when natively - * issuing credits and should only be set when bridging assets from another - * chain or registry as a result of a bridge operation. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgCreateBatchAminoMsg { - type: "regen/MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - project_id: string; - issuance: BatchIssuanceSDKType[]; - metadata: string; - start_date?: Date; - end_date?: Date; - open: boolean; - origin_tx?: OriginTxSDKType; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCredits { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance: BatchIssuance[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - originTx?: OriginTx; -} -export interface MsgMintBatchCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits"; - value: Uint8Array; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsAmino { - /** - * issuer is the address of the account minting the credits and must be the - * same issuer who created the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * issuance specifies the amount of tradable and retired credits that will be - * issued to each recipient and the jurisdiction in which the credits will be - * retired if credits are to be retired upon receipt. - */ - issuance?: BatchIssuanceAmino[]; - /** - * origin_tx is the transaction from another chain or registry that triggered - * the minting of credits. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgMintBatchCreditsAminoMsg { - type: "regen/MsgMintBatchCredits"; - value: MsgMintBatchCreditsAmino; -} -/** MsgMintBatchCredits is the Msg/MintBatchCredits request type. */ -export interface MsgMintBatchCreditsSDKType { - issuer: string; - batch_denom: string; - issuance: BatchIssuanceSDKType[]; - origin_tx?: OriginTxSDKType; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponse { -} -export interface MsgMintBatchCreditsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: Uint8Array; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseAmino { -} -export interface MsgMintBatchCreditsResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse"; - value: MsgMintBatchCreditsResponseAmino; -} -/** MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type. */ -export interface MsgMintBatchCreditsResponseSDKType { -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatch { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer: string; - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; -} -export interface MsgSealBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch"; - value: Uint8Array; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchAmino { - /** - * issuer is the address of the account that created the credit batch and the - * only account with permissions to seal the credit batch. - */ - issuer?: string; - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; -} -export interface MsgSealBatchAminoMsg { - type: "regen/MsgSealBatch"; - value: MsgSealBatchAmino; -} -/** MsgSealBatch is the Msg/MintBatchCredits request type. */ -export interface MsgSealBatchSDKType { - issuer: string; - batch_denom: string; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponse { -} -export interface MsgSealBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: Uint8Array; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseAmino { -} -export interface MsgSealBatchResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSealBatchResponse"; - value: MsgSealBatchResponseAmino; -} -/** MsgSealBatchResponse is the Msg/SealBatch response type. */ -export interface MsgSealBatchResponseSDKType { -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** recipient is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent to the recipient. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** recipient is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent to the recipient. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "regen/MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique identifier of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique identifier of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the amount of credits in this transfer that can be - * traded by the recipient. The number of decimal places must be less than - * or equal to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits in this transfer that are retired - * upon receipt. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the format: - * [-[ ]] - * The country-code and sub-national-code must conform to ISO 3166-2 and the - * postal-code can be up to 64 alphanumeric characters. Only the - * country-code is required, while the sub-national-code and postal-code are - * optional and can be added for increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. This field is only required if retired_amount is - * positive. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies the amount of tradable and retired credits of a - * credit batch that will be sent to the recipient and the jurisdiction in - * which the credits will be retired upon receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** owner is the address of the account that owns the credits being retired. */ - owner: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits: Credits[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** owner is the address of the account that owns the credits being retired. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being retired. */ - credits?: CreditsAmino[]; - /** - * jurisdiction is the jurisdiction of the credit owner. A jurisdiction has - * the format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - jurisdiction?: string; - /** - * reason is any arbitrary string that specifies the reason for retiring - * credits. - * - * Since Revision 2 - */ - reason?: string; -} -export interface MsgRetireAminoMsg { - type: "regen/MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - owner: string; - credits: CreditsSDKType[]; - jurisdiction: string; - reason: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse { -} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino { -} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType { -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** owner is the address of the account that owns the credits being cancelled. */ - owner: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits: Credits[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason: string; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** owner is the address of the account that owns the credits being cancelled. */ - owner?: string; - /** credits specifies a credit batch and the number of credits being cancelled. */ - credits?: CreditsAmino[]; - /** - * reason is any arbitrary string that specifies the reason for cancelling - * credits. - */ - reason?: string; -} -export interface MsgCancelAminoMsg { - type: "regen/MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - owner: string; - credits: CreditsSDKType[]; - reason: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse { -} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino { -} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType { -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** - * admin is the address of the account that is currently the admin of the - * credit class. - */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the credit class. - */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "regen/MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse { -} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino { -} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType { -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - addIssuers: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - removeIssuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * add_issuers are the addresses of the accounts that will be added to the - * list of approved credit class issuers. - */ - add_issuers?: string[]; - /** - * remove_issuers are the addresses of the accounts that will be removed from - * the list of approved credit class issuers. - */ - remove_issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "regen/MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - add_issuers: string[]; - remove_issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse { -} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino { -} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType { -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique identifier of the credit class. */ - classId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - newMetadata: string; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique identifier of the credit class. */ - class_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the credit class. - */ - new_metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "regen/MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - new_metadata: string; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse { -} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino { -} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the Msg/UpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType { -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdmin { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - newAdmin: string; -} -export interface MsgUpdateProjectAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminAmino { - /** - * admin is the address of the account that is the currently the admin of the - * project. - */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_admin is the address of the account that will become the new admin of - * the project. - */ - new_admin?: string; -} -export interface MsgUpdateProjectAdminAminoMsg { - type: "regen/MsgUpdateProjectAdmin"; - value: MsgUpdateProjectAdminAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type. */ -export interface MsgUpdateProjectAdminSDKType { - admin: string; - project_id: string; - new_admin: string; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponse { -} -export interface MsgUpdateProjectAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseAmino { -} -export interface MsgUpdateProjectAdminResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse"; - value: MsgUpdateProjectAdminResponseAmino; -} -/** MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type. */ -export interface MsgUpdateProjectAdminResponseSDKType { -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadata { - /** admin is the address of the account that is the admin of the project. */ - admin: string; - /** project_id is the unique identifier of the project. */ - projectId: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - newMetadata: string; -} -export interface MsgUpdateProjectMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata"; - value: Uint8Array; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataAmino { - /** admin is the address of the account that is the admin of the project. */ - admin?: string; - /** project_id is the unique identifier of the project. */ - project_id?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the project. - */ - new_metadata?: string; -} -export interface MsgUpdateProjectMetadataAminoMsg { - type: "regen/MsgUpdateProjectMetadata"; - value: MsgUpdateProjectMetadataAmino; -} -/** MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type. */ -export interface MsgUpdateProjectMetadataSDKType { - admin: string; - project_id: string; - new_metadata: string; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponse { -} -export interface MsgUpdateProjectMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseAmino { -} -export interface MsgUpdateProjectMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse"; - value: MsgUpdateProjectMetadataResponseAmino; -} -/** - * MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse - * response type. - */ -export interface MsgUpdateProjectMetadataResponseSDKType { -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridge { - /** owner is the address of the account that owns the credits being bridged. */ - owner: string; - /** target is the name of the target chain or registry. */ - target: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits: Credits[]; -} -export interface MsgBridgeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridge"; - value: Uint8Array; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeAmino { - /** owner is the address of the account that owns the credits being bridged. */ - owner?: string; - /** target is the name of the target chain or registry. */ - target?: string; - /** recipient is the address of the account receiving the bridged credits. */ - recipient?: string; - /** credits specifies a credit batch and the number of credits being bridged. */ - credits?: CreditsAmino[]; -} -export interface MsgBridgeAminoMsg { - type: "regen/MsgBridge"; - value: MsgBridgeAmino; -} -/** MsgBridge is the Msg/Bridge request type. */ -export interface MsgBridgeSDKType { - owner: string; - target: string; - recipient: string; - credits: CreditsSDKType[]; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadata { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer: string; - /** batch_denom is the unique identifier of the batch. */ - batchDenom: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - newMetadata: string; -} -export interface MsgUpdateBatchMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataAmino { - /** issuer is the address of the account that is the issuer of the batch. */ - issuer?: string; - /** batch_denom is the unique identifier of the batch. */ - batch_denom?: string; - /** - * new_metadata is new metadata that will replace the existing metadata. It - * can be any arbitrary string with a maximum length of 256 characters that - * includes or references the metadata to attach to the batch. - */ - new_metadata?: string; -} -export interface MsgUpdateBatchMetadataAminoMsg { - type: "regen/MsgUpdateBatchMetadata"; - value: MsgUpdateBatchMetadataAmino; -} -/** - * MsgUpdateBatchMetadata is the Msg/UpdateBatchMetadata request type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataSDKType { - issuer: string; - batch_denom: string; - new_metadata: string; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponse { -} -export interface MsgUpdateBatchMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: Uint8Array; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseAmino { -} -export interface MsgUpdateBatchMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse"; - value: MsgUpdateBatchMetadataResponseAmino; -} -/** - * MsgUpdateBatchMetadataResponse is the Msg/UpdateBatchMetadataResponse - * response type. - * - * Since Revision 2 - */ -export interface MsgUpdateBatchMetadataResponseSDKType { -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponse { -} -export interface MsgBridgeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: Uint8Array; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseAmino { -} -export interface MsgBridgeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeResponse"; - value: MsgBridgeResponseAmino; -} -/** MsgBridgeResponse is the Msg/Bridge response type. */ -export interface MsgBridgeResponseSDKType { -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceive { - /** issuer is the account address of the service bridging the credits. */ - issuer: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - classId: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_Project; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_Batch; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - originTx?: OriginTx; -} -export interface MsgBridgeReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive"; - value: Uint8Array; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveAmino { - /** issuer is the account address of the service bridging the credits. */ - issuer?: string; - /** - * class_id is the unique identifier of the credit class within which the - * project and credit batch already exist or will be created. - */ - class_id?: string; - /** project defines the project information for the bridged credits. */ - project?: MsgBridgeReceive_ProjectAmino; - /** batch defines the credit batch information for the bridged credits. */ - batch?: MsgBridgeReceive_BatchAmino; - /** - * origin_tx is a reference to a transaction which caused the transfer from - * another chain or registry. - */ - origin_tx?: OriginTxAmino; -} -export interface MsgBridgeReceiveAminoMsg { - type: "regen/MsgBridgeReceive"; - value: MsgBridgeReceiveAmino; -} -/** MsgBridgeReceive is the Msg/BridgeReceive request type. */ -export interface MsgBridgeReceiveSDKType { - issuer: string; - class_id: string; - project?: MsgBridgeReceive_ProjectSDKType; - batch?: MsgBridgeReceive_BatchSDKType; - origin_tx?: OriginTxSDKType; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_Batch { - /** recipient is the recipient of the bridged credits. */ - recipient: string; - /** amount is the amount of credits being bridged. */ - amount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** metadata is the metadata for the credit batch. */ - metadata: string; -} -export interface MsgBridgeReceive_BatchProtoMsg { - typeUrl: "/regen.ecocredit.v1.Batch"; - value: Uint8Array; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchAmino { - /** recipient is the recipient of the bridged credits. */ - recipient?: string; - /** amount is the amount of credits being bridged. */ - amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** metadata is the metadata for the credit batch. */ - metadata?: string; -} -export interface MsgBridgeReceive_BatchAminoMsg { - type: "/regen.ecocredit.v1.Batch"; - value: MsgBridgeReceive_BatchAmino; -} -/** - * Batch defines the credit batch information for the bridged credits. This - * information will be used to create a credit batch or to dynamically mint - * credits to an existing credit batch. - */ -export interface MsgBridgeReceive_BatchSDKType { - recipient: string; - amount: string; - start_date?: Date; - end_date?: Date; - metadata: string; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_Project { - /** reference_id is the reference id of the project. */ - referenceId: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction: string; - /** metadata is the metadata for the project. */ - metadata: string; -} -export interface MsgBridgeReceive_ProjectProtoMsg { - typeUrl: "/regen.ecocredit.v1.Project"; - value: Uint8Array; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectAmino { - /** reference_id is the reference id of the project. */ - reference_id?: string; - /** jurisdiction is the project jurisdiction. */ - jurisdiction?: string; - /** metadata is the metadata for the project. */ - metadata?: string; -} -export interface MsgBridgeReceive_ProjectAminoMsg { - type: "/regen.ecocredit.v1.Project"; - value: MsgBridgeReceive_ProjectAmino; -} -/** - * Project defines the project information for the bridged credits. This - * information will be used to find an existing project or to create a new - * project if a project with the same reference id does not already exist. - */ -export interface MsgBridgeReceive_ProjectSDKType { - reference_id: string; - jurisdiction: string; - metadata: string; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponse { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batchDenom: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - projectId: string; -} -export interface MsgBridgeReceiveResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: Uint8Array; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseAmino { - /** - * batch_denom is the unique identifier of the credit batch either created - * or within which the credits were dynamically minted. - */ - batch_denom?: string; - /** - * project_id is the unique identifier of the project that was either created - * or the existing project within which the credit batch exists. - */ - project_id?: string; -} -export interface MsgBridgeReceiveResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgBridgeReceiveResponse"; - value: MsgBridgeReceiveResponseAmino; -} -/** MsgBridgeReceiveResponse is the Msg/BridgeReceive response type. */ -export interface MsgBridgeReceiveResponseSDKType { - batch_denom: string; - project_id: string; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to add to the class creator list. */ - creator: string; -} -export interface MsgAddClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator"; - value: Uint8Array; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to add to the class creator list. */ - creator?: string; -} -export interface MsgAddClassCreatorAminoMsg { - type: "regen/MsgAddClassCreator"; - value: MsgAddClassCreatorAmino; -} -/** - * MsgAddClassCreator is the Msg/AddClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponse { -} -export interface MsgAddClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseAmino { -} -export interface MsgAddClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddClassCreatorResponse"; - value: MsgAddClassCreatorResponseAmino; -} -/** - * MsgAddClassCreatorResponse is the Msg/AddClassCreator response type. - * - * Since Revision 2 - */ -export interface MsgAddClassCreatorResponseSDKType { -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlist { - /** authority is the address of the governance account. */ - authority: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled: boolean; -} -export interface MsgSetClassCreatorAllowlistProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** enabled defines the boolean value to set the allowlist on or off. */ - enabled?: boolean; -} -export interface MsgSetClassCreatorAllowlistAminoMsg { - type: "regen/MsgSetClassCreatorAllowlist"; - value: MsgSetClassCreatorAllowlistAmino; -} -/** - * MsgSetClassCreatorAllowlist is the Msg/SetClassCreatorAllowlist request - * type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistSDKType { - authority: string; - enabled: boolean; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponse { -} -export interface MsgSetClassCreatorAllowlistResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: Uint8Array; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseAmino { -} -export interface MsgSetClassCreatorAllowlistResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse"; - value: MsgSetClassCreatorAllowlistResponseAmino; -} -/** - * MsgSetClassCreatorAllowlistResponse is the Msg/SetClassCreatorAllowlist - * response type. - * - * Since Revision 2 - */ -export interface MsgSetClassCreatorAllowlistResponseSDKType { -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreator { - /** authority is the address of the governance account. */ - authority: string; - /** creator is the address to remove from the class creator list. */ - creator: string; -} -export interface MsgRemoveClassCreatorProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** creator is the address to remove from the class creator list. */ - creator?: string; -} -export interface MsgRemoveClassCreatorAminoMsg { - type: "regen/MsgRemoveClassCreator"; - value: MsgRemoveClassCreatorAmino; -} -/** - * MsgRemoveClassCreator is the Msg/RemoveClassCreator request type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorSDKType { - authority: string; - creator: string; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponse { -} -export interface MsgRemoveClassCreatorResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: Uint8Array; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseAmino { -} -export interface MsgRemoveClassCreatorResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse"; - value: MsgRemoveClassCreatorResponseAmino; -} -/** - * MsgRemoveClassCreatorResponse is the Msg/RemoveClasssCreator response type. - * - * Since Revision 2 - */ -export interface MsgRemoveClassCreatorResponseSDKType { -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFee { - /** authority is the address of the governance account. */ - authority: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: Coin; -} -export interface MsgUpdateClassFeeProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee"; - value: Uint8Array; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * fee is the credit class creation fee. If not set, the credit class creation - * fee will be removed and no fee will be required to create a credit class. - */ - fee?: CoinAmino; -} -export interface MsgUpdateClassFeeAminoMsg { - type: "regen/MsgUpdateClassFee"; - value: MsgUpdateClassFeeAmino; -} -/** - * MsgUpdateClassFee is the Msg/UpdateClassFee request type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeSDKType { - authority: string; - fee?: CoinSDKType; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponse { -} -export interface MsgUpdateClassFeeResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: Uint8Array; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseAmino { -} -export interface MsgUpdateClassFeeResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse"; - value: MsgUpdateClassFeeResponseAmino; -} -/** - * MsgUpdateClassFeeResponse is the Msg/UpdateClassFee response type. - * - * Since Revision 2 - */ -export interface MsgUpdateClassFeeResponseSDKType { -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgAddAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to allow bridging of ecocredits to - * (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgAddAllowedBridgeChainAminoMsg { - type: "regen/MsgAddAllowedBridgeChain"; - value: MsgAddAllowedBridgeChainAmino; -} -/** - * MsgAddAllowedBridgeChain is the Msg/AddAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponse { -} -export interface MsgAddAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseAmino { -} -export interface MsgAddAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse"; - value: MsgAddAllowedBridgeChainResponseAmino; -} -/** - * MsgAddAllowedBridgeChainResponse is the Msg/AddAllowedBridgeChain response - * type. - * - * Since Revision 2 - */ -export interface MsgAddAllowedBridgeChainResponseSDKType { -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChain { - /** authority is the address of the governance account. */ - authority: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chainName: string; -} -export interface MsgRemoveAllowedBridgeChainProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainAmino { - /** authority is the address of the governance account. */ - authority?: string; - /** - * chain_name is the name of the chain to remove from the list of allowed - * chains to bridge ecocredits to (i.e. polygon, ethereum, celo). - */ - chain_name?: string; -} -export interface MsgRemoveAllowedBridgeChainAminoMsg { - type: "regen/MsgRemoveAllowedBridgeChain"; - value: MsgRemoveAllowedBridgeChainAmino; -} -/** - * MsgRemoveAllowedBridgeChain is the Msg/RemoveAllowedBridgeChain request type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainSDKType { - authority: string; - chain_name: string; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponse { -} -export interface MsgRemoveAllowedBridgeChainResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: Uint8Array; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseAmino { -} -export interface MsgRemoveAllowedBridgeChainResponseAminoMsg { - type: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse"; - value: MsgRemoveAllowedBridgeChainResponseAmino; -} -/** - * MsgRemoveAllowedBridgeChainResponse is the Msg/RemoveAllowedBridgeChain - * response type. - * - * Since Revision 2 - */ -export interface MsgRemoveAllowedBridgeChainResponseSDKType { -} -export declare const MsgAddCreditType: { - typeUrl: string; - encode(message: MsgAddCreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditType; - fromPartial(object: Partial): MsgAddCreditType; - fromAmino(object: MsgAddCreditTypeAmino): MsgAddCreditType; - toAmino(message: MsgAddCreditType): MsgAddCreditTypeAmino; - fromAminoMsg(object: MsgAddCreditTypeAminoMsg): MsgAddCreditType; - toAminoMsg(message: MsgAddCreditType): MsgAddCreditTypeAminoMsg; - fromProtoMsg(message: MsgAddCreditTypeProtoMsg): MsgAddCreditType; - toProto(message: MsgAddCreditType): Uint8Array; - toProtoMsg(message: MsgAddCreditType): MsgAddCreditTypeProtoMsg; -}; -export declare const MsgAddCreditTypeResponse: { - typeUrl: string; - encode(_: MsgAddCreditTypeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCreditTypeResponse; - fromPartial(_: Partial): MsgAddCreditTypeResponse; - fromAmino(_: MsgAddCreditTypeResponseAmino): MsgAddCreditTypeResponse; - toAmino(_: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseAmino; - fromAminoMsg(object: MsgAddCreditTypeResponseAminoMsg): MsgAddCreditTypeResponse; - fromProtoMsg(message: MsgAddCreditTypeResponseProtoMsg): MsgAddCreditTypeResponse; - toProto(message: MsgAddCreditTypeResponse): Uint8Array; - toProtoMsg(message: MsgAddCreditTypeResponse): MsgAddCreditTypeResponseProtoMsg; -}; -export declare const MsgCreateClass: { - typeUrl: string; - encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; - fromPartial(object: Partial): MsgCreateClass; - fromAmino(object: MsgCreateClassAmino): MsgCreateClass; - toAmino(message: MsgCreateClass): MsgCreateClassAmino; - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; - toAminoMsg(message: MsgCreateClass): MsgCreateClassAminoMsg; - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; - toProto(message: MsgCreateClass): Uint8Array; - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; -}; -export declare const MsgCreateClassResponse: { - typeUrl: string; - encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; - fromPartial(object: Partial): MsgCreateClassResponse; - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; - toProto(message: MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; -}; -export declare const MsgCreateProject: { - typeUrl: string; - encode(message: MsgCreateProject, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProject; - fromPartial(object: Partial): MsgCreateProject; - fromAmino(object: MsgCreateProjectAmino): MsgCreateProject; - toAmino(message: MsgCreateProject): MsgCreateProjectAmino; - fromAminoMsg(object: MsgCreateProjectAminoMsg): MsgCreateProject; - toAminoMsg(message: MsgCreateProject): MsgCreateProjectAminoMsg; - fromProtoMsg(message: MsgCreateProjectProtoMsg): MsgCreateProject; - toProto(message: MsgCreateProject): Uint8Array; - toProtoMsg(message: MsgCreateProject): MsgCreateProjectProtoMsg; -}; -export declare const MsgCreateProjectResponse: { - typeUrl: string; - encode(message: MsgCreateProjectResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateProjectResponse; - fromPartial(object: Partial): MsgCreateProjectResponse; - fromAmino(object: MsgCreateProjectResponseAmino): MsgCreateProjectResponse; - toAmino(message: MsgCreateProjectResponse): MsgCreateProjectResponseAmino; - fromAminoMsg(object: MsgCreateProjectResponseAminoMsg): MsgCreateProjectResponse; - fromProtoMsg(message: MsgCreateProjectResponseProtoMsg): MsgCreateProjectResponse; - toProto(message: MsgCreateProjectResponse): Uint8Array; - toProtoMsg(message: MsgCreateProjectResponse): MsgCreateProjectResponseProtoMsg; -}; -export declare const MsgCreateBatch: { - typeUrl: string; - encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; - fromPartial(object: Partial): MsgCreateBatch; - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; - toAminoMsg(message: MsgCreateBatch): MsgCreateBatchAminoMsg; - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; - toProto(message: MsgCreateBatch): Uint8Array; - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; -}; -export declare const MsgCreateBatchResponse: { - typeUrl: string; - encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; - fromPartial(object: Partial): MsgCreateBatchResponse; - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; - toProto(message: MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; -}; -export declare const MsgMintBatchCredits: { - typeUrl: string; - encode(message: MsgMintBatchCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCredits; - fromPartial(object: Partial): MsgMintBatchCredits; - fromAmino(object: MsgMintBatchCreditsAmino): MsgMintBatchCredits; - toAmino(message: MsgMintBatchCredits): MsgMintBatchCreditsAmino; - fromAminoMsg(object: MsgMintBatchCreditsAminoMsg): MsgMintBatchCredits; - toAminoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsAminoMsg; - fromProtoMsg(message: MsgMintBatchCreditsProtoMsg): MsgMintBatchCredits; - toProto(message: MsgMintBatchCredits): Uint8Array; - toProtoMsg(message: MsgMintBatchCredits): MsgMintBatchCreditsProtoMsg; -}; -export declare const MsgMintBatchCreditsResponse: { - typeUrl: string; - encode(_: MsgMintBatchCreditsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgMintBatchCreditsResponse; - fromPartial(_: Partial): MsgMintBatchCreditsResponse; - fromAmino(_: MsgMintBatchCreditsResponseAmino): MsgMintBatchCreditsResponse; - toAmino(_: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseAmino; - fromAminoMsg(object: MsgMintBatchCreditsResponseAminoMsg): MsgMintBatchCreditsResponse; - fromProtoMsg(message: MsgMintBatchCreditsResponseProtoMsg): MsgMintBatchCreditsResponse; - toProto(message: MsgMintBatchCreditsResponse): Uint8Array; - toProtoMsg(message: MsgMintBatchCreditsResponse): MsgMintBatchCreditsResponseProtoMsg; -}; -export declare const MsgSealBatch: { - typeUrl: string; - encode(message: MsgSealBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatch; - fromPartial(object: Partial): MsgSealBatch; - fromAmino(object: MsgSealBatchAmino): MsgSealBatch; - toAmino(message: MsgSealBatch): MsgSealBatchAmino; - fromAminoMsg(object: MsgSealBatchAminoMsg): MsgSealBatch; - toAminoMsg(message: MsgSealBatch): MsgSealBatchAminoMsg; - fromProtoMsg(message: MsgSealBatchProtoMsg): MsgSealBatch; - toProto(message: MsgSealBatch): Uint8Array; - toProtoMsg(message: MsgSealBatch): MsgSealBatchProtoMsg; -}; -export declare const MsgSealBatchResponse: { - typeUrl: string; - encode(_: MsgSealBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSealBatchResponse; - fromPartial(_: Partial): MsgSealBatchResponse; - fromAmino(_: MsgSealBatchResponseAmino): MsgSealBatchResponse; - toAmino(_: MsgSealBatchResponse): MsgSealBatchResponseAmino; - fromAminoMsg(object: MsgSealBatchResponseAminoMsg): MsgSealBatchResponse; - fromProtoMsg(message: MsgSealBatchResponseProtoMsg): MsgSealBatchResponse; - toProto(message: MsgSealBatchResponse): Uint8Array; - toProtoMsg(message: MsgSealBatchResponse): MsgSealBatchResponseProtoMsg; -}; -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - toAminoMsg(message: MsgSend): MsgSendAminoMsg; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSend_SendCredits: { - typeUrl: string; - encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; - fromPartial(object: Partial): MsgSend_SendCredits; - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; - toProto(message: MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgRetire: { - typeUrl: string; - encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; - fromPartial(object: Partial): MsgRetire; - fromAmino(object: MsgRetireAmino): MsgRetire; - toAmino(message: MsgRetire): MsgRetireAmino; - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; - toAminoMsg(message: MsgRetire): MsgRetireAminoMsg; - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; - toProto(message: MsgRetire): Uint8Array; - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; -}; -export declare const MsgRetireResponse: { - typeUrl: string; - encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; - fromPartial(_: Partial): MsgRetireResponse; - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; - toProto(message: MsgRetireResponse): Uint8Array; - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; -}; -export declare const MsgCancel: { - typeUrl: string; - encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; - fromPartial(object: Partial): MsgCancel; - fromAmino(object: MsgCancelAmino): MsgCancel; - toAmino(message: MsgCancel): MsgCancelAmino; - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; - toAminoMsg(message: MsgCancel): MsgCancelAminoMsg; - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; - toProto(message: MsgCancel): Uint8Array; - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; -}; -export declare const MsgCancelResponse: { - typeUrl: string; - encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; - fromPartial(_: Partial): MsgCancelResponse; - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; - toProto(message: MsgCancelResponse): Uint8Array; - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; -}; -export declare const MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; - fromPartial(object: Partial): MsgUpdateClassAdmin; - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; - toAminoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAminoMsg; - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; - toProto(message: MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; -}; -export declare const MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; - fromPartial(_: Partial): MsgUpdateClassAdminResponse; - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; - toProto(message: MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; -}; -export declare const MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; - fromPartial(object: Partial): MsgUpdateClassIssuers; - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; - toAminoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAminoMsg; - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; - toProto(message: MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; -}; -export declare const MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; - fromPartial(_: Partial): MsgUpdateClassIssuersResponse; - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; -}; -export declare const MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; - fromPartial(object: Partial): MsgUpdateClassMetadata; - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; - toAminoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; - toProto(message: MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; -}; -export declare const MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; - fromPartial(_: Partial): MsgUpdateClassMetadataResponse; - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; -}; -export declare const MsgUpdateProjectAdmin: { - typeUrl: string; - encode(message: MsgUpdateProjectAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdmin; - fromPartial(object: Partial): MsgUpdateProjectAdmin; - fromAmino(object: MsgUpdateProjectAdminAmino): MsgUpdateProjectAdmin; - toAmino(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAmino; - fromAminoMsg(object: MsgUpdateProjectAdminAminoMsg): MsgUpdateProjectAdmin; - toAminoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminAminoMsg; - fromProtoMsg(message: MsgUpdateProjectAdminProtoMsg): MsgUpdateProjectAdmin; - toProto(message: MsgUpdateProjectAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateProjectAdmin): MsgUpdateProjectAdminProtoMsg; -}; -export declare const MsgUpdateProjectAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateProjectAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectAdminResponse; - fromPartial(_: Partial): MsgUpdateProjectAdminResponse; - fromAmino(_: MsgUpdateProjectAdminResponseAmino): MsgUpdateProjectAdminResponse; - toAmino(_: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseAmino; - fromAminoMsg(object: MsgUpdateProjectAdminResponseAminoMsg): MsgUpdateProjectAdminResponse; - fromProtoMsg(message: MsgUpdateProjectAdminResponseProtoMsg): MsgUpdateProjectAdminResponse; - toProto(message: MsgUpdateProjectAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateProjectAdminResponse): MsgUpdateProjectAdminResponseProtoMsg; -}; -export declare const MsgUpdateProjectMetadata: { - typeUrl: string; - encode(message: MsgUpdateProjectMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadata; - fromPartial(object: Partial): MsgUpdateProjectMetadata; - fromAmino(object: MsgUpdateProjectMetadataAmino): MsgUpdateProjectMetadata; - toAmino(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAmino; - fromAminoMsg(object: MsgUpdateProjectMetadataAminoMsg): MsgUpdateProjectMetadata; - toAminoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateProjectMetadataProtoMsg): MsgUpdateProjectMetadata; - toProto(message: MsgUpdateProjectMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateProjectMetadata): MsgUpdateProjectMetadataProtoMsg; -}; -export declare const MsgUpdateProjectMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateProjectMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateProjectMetadataResponse; - fromPartial(_: Partial): MsgUpdateProjectMetadataResponse; - fromAmino(_: MsgUpdateProjectMetadataResponseAmino): MsgUpdateProjectMetadataResponse; - toAmino(_: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateProjectMetadataResponseAminoMsg): MsgUpdateProjectMetadataResponse; - fromProtoMsg(message: MsgUpdateProjectMetadataResponseProtoMsg): MsgUpdateProjectMetadataResponse; - toProto(message: MsgUpdateProjectMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateProjectMetadataResponse): MsgUpdateProjectMetadataResponseProtoMsg; -}; -export declare const MsgBridge: { - typeUrl: string; - encode(message: MsgBridge, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridge; - fromPartial(object: Partial): MsgBridge; - fromAmino(object: MsgBridgeAmino): MsgBridge; - toAmino(message: MsgBridge): MsgBridgeAmino; - fromAminoMsg(object: MsgBridgeAminoMsg): MsgBridge; - toAminoMsg(message: MsgBridge): MsgBridgeAminoMsg; - fromProtoMsg(message: MsgBridgeProtoMsg): MsgBridge; - toProto(message: MsgBridge): Uint8Array; - toProtoMsg(message: MsgBridge): MsgBridgeProtoMsg; -}; -export declare const MsgUpdateBatchMetadata: { - typeUrl: string; - encode(message: MsgUpdateBatchMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadata; - fromPartial(object: Partial): MsgUpdateBatchMetadata; - fromAmino(object: MsgUpdateBatchMetadataAmino): MsgUpdateBatchMetadata; - toAmino(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAmino; - fromAminoMsg(object: MsgUpdateBatchMetadataAminoMsg): MsgUpdateBatchMetadata; - toAminoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataAminoMsg; - fromProtoMsg(message: MsgUpdateBatchMetadataProtoMsg): MsgUpdateBatchMetadata; - toProto(message: MsgUpdateBatchMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateBatchMetadata): MsgUpdateBatchMetadataProtoMsg; -}; -export declare const MsgUpdateBatchMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateBatchMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateBatchMetadataResponse; - fromPartial(_: Partial): MsgUpdateBatchMetadataResponse; - fromAmino(_: MsgUpdateBatchMetadataResponseAmino): MsgUpdateBatchMetadataResponse; - toAmino(_: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateBatchMetadataResponseAminoMsg): MsgUpdateBatchMetadataResponse; - fromProtoMsg(message: MsgUpdateBatchMetadataResponseProtoMsg): MsgUpdateBatchMetadataResponse; - toProto(message: MsgUpdateBatchMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateBatchMetadataResponse): MsgUpdateBatchMetadataResponseProtoMsg; -}; -export declare const MsgBridgeResponse: { - typeUrl: string; - encode(_: MsgBridgeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeResponse; - fromPartial(_: Partial): MsgBridgeResponse; - fromAmino(_: MsgBridgeResponseAmino): MsgBridgeResponse; - toAmino(_: MsgBridgeResponse): MsgBridgeResponseAmino; - fromAminoMsg(object: MsgBridgeResponseAminoMsg): MsgBridgeResponse; - fromProtoMsg(message: MsgBridgeResponseProtoMsg): MsgBridgeResponse; - toProto(message: MsgBridgeResponse): Uint8Array; - toProtoMsg(message: MsgBridgeResponse): MsgBridgeResponseProtoMsg; -}; -export declare const MsgBridgeReceive: { - typeUrl: string; - encode(message: MsgBridgeReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive; - fromPartial(object: Partial): MsgBridgeReceive; - fromAmino(object: MsgBridgeReceiveAmino): MsgBridgeReceive; - toAmino(message: MsgBridgeReceive): MsgBridgeReceiveAmino; - fromAminoMsg(object: MsgBridgeReceiveAminoMsg): MsgBridgeReceive; - toAminoMsg(message: MsgBridgeReceive): MsgBridgeReceiveAminoMsg; - fromProtoMsg(message: MsgBridgeReceiveProtoMsg): MsgBridgeReceive; - toProto(message: MsgBridgeReceive): Uint8Array; - toProtoMsg(message: MsgBridgeReceive): MsgBridgeReceiveProtoMsg; -}; -export declare const MsgBridgeReceive_Batch: { - typeUrl: string; - encode(message: MsgBridgeReceive_Batch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Batch; - fromPartial(object: Partial): MsgBridgeReceive_Batch; - fromAmino(object: MsgBridgeReceive_BatchAmino): MsgBridgeReceive_Batch; - toAmino(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchAmino; - fromAminoMsg(object: MsgBridgeReceive_BatchAminoMsg): MsgBridgeReceive_Batch; - fromProtoMsg(message: MsgBridgeReceive_BatchProtoMsg): MsgBridgeReceive_Batch; - toProto(message: MsgBridgeReceive_Batch): Uint8Array; - toProtoMsg(message: MsgBridgeReceive_Batch): MsgBridgeReceive_BatchProtoMsg; -}; -export declare const MsgBridgeReceive_Project: { - typeUrl: string; - encode(message: MsgBridgeReceive_Project, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceive_Project; - fromPartial(object: Partial): MsgBridgeReceive_Project; - fromAmino(object: MsgBridgeReceive_ProjectAmino): MsgBridgeReceive_Project; - toAmino(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectAmino; - fromAminoMsg(object: MsgBridgeReceive_ProjectAminoMsg): MsgBridgeReceive_Project; - fromProtoMsg(message: MsgBridgeReceive_ProjectProtoMsg): MsgBridgeReceive_Project; - toProto(message: MsgBridgeReceive_Project): Uint8Array; - toProtoMsg(message: MsgBridgeReceive_Project): MsgBridgeReceive_ProjectProtoMsg; -}; -export declare const MsgBridgeReceiveResponse: { - typeUrl: string; - encode(message: MsgBridgeReceiveResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgBridgeReceiveResponse; - fromPartial(object: Partial): MsgBridgeReceiveResponse; - fromAmino(object: MsgBridgeReceiveResponseAmino): MsgBridgeReceiveResponse; - toAmino(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseAmino; - fromAminoMsg(object: MsgBridgeReceiveResponseAminoMsg): MsgBridgeReceiveResponse; - fromProtoMsg(message: MsgBridgeReceiveResponseProtoMsg): MsgBridgeReceiveResponse; - toProto(message: MsgBridgeReceiveResponse): Uint8Array; - toProtoMsg(message: MsgBridgeReceiveResponse): MsgBridgeReceiveResponseProtoMsg; -}; -export declare const MsgAddClassCreator: { - typeUrl: string; - encode(message: MsgAddClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreator; - fromPartial(object: Partial): MsgAddClassCreator; - fromAmino(object: MsgAddClassCreatorAmino): MsgAddClassCreator; - toAmino(message: MsgAddClassCreator): MsgAddClassCreatorAmino; - fromAminoMsg(object: MsgAddClassCreatorAminoMsg): MsgAddClassCreator; - toAminoMsg(message: MsgAddClassCreator): MsgAddClassCreatorAminoMsg; - fromProtoMsg(message: MsgAddClassCreatorProtoMsg): MsgAddClassCreator; - toProto(message: MsgAddClassCreator): Uint8Array; - toProtoMsg(message: MsgAddClassCreator): MsgAddClassCreatorProtoMsg; -}; -export declare const MsgAddClassCreatorResponse: { - typeUrl: string; - encode(_: MsgAddClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddClassCreatorResponse; - fromPartial(_: Partial): MsgAddClassCreatorResponse; - fromAmino(_: MsgAddClassCreatorResponseAmino): MsgAddClassCreatorResponse; - toAmino(_: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseAmino; - fromAminoMsg(object: MsgAddClassCreatorResponseAminoMsg): MsgAddClassCreatorResponse; - fromProtoMsg(message: MsgAddClassCreatorResponseProtoMsg): MsgAddClassCreatorResponse; - toProto(message: MsgAddClassCreatorResponse): Uint8Array; - toProtoMsg(message: MsgAddClassCreatorResponse): MsgAddClassCreatorResponseProtoMsg; -}; -export declare const MsgSetClassCreatorAllowlist: { - typeUrl: string; - encode(message: MsgSetClassCreatorAllowlist, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlist; - fromPartial(object: Partial): MsgSetClassCreatorAllowlist; - fromAmino(object: MsgSetClassCreatorAllowlistAmino): MsgSetClassCreatorAllowlist; - toAmino(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAmino; - fromAminoMsg(object: MsgSetClassCreatorAllowlistAminoMsg): MsgSetClassCreatorAllowlist; - toAminoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistAminoMsg; - fromProtoMsg(message: MsgSetClassCreatorAllowlistProtoMsg): MsgSetClassCreatorAllowlist; - toProto(message: MsgSetClassCreatorAllowlist): Uint8Array; - toProtoMsg(message: MsgSetClassCreatorAllowlist): MsgSetClassCreatorAllowlistProtoMsg; -}; -export declare const MsgSetClassCreatorAllowlistResponse: { - typeUrl: string; - encode(_: MsgSetClassCreatorAllowlistResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSetClassCreatorAllowlistResponse; - fromPartial(_: Partial): MsgSetClassCreatorAllowlistResponse; - fromAmino(_: MsgSetClassCreatorAllowlistResponseAmino): MsgSetClassCreatorAllowlistResponse; - toAmino(_: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseAmino; - fromAminoMsg(object: MsgSetClassCreatorAllowlistResponseAminoMsg): MsgSetClassCreatorAllowlistResponse; - fromProtoMsg(message: MsgSetClassCreatorAllowlistResponseProtoMsg): MsgSetClassCreatorAllowlistResponse; - toProto(message: MsgSetClassCreatorAllowlistResponse): Uint8Array; - toProtoMsg(message: MsgSetClassCreatorAllowlistResponse): MsgSetClassCreatorAllowlistResponseProtoMsg; -}; -export declare const MsgRemoveClassCreator: { - typeUrl: string; - encode(message: MsgRemoveClassCreator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreator; - fromPartial(object: Partial): MsgRemoveClassCreator; - fromAmino(object: MsgRemoveClassCreatorAmino): MsgRemoveClassCreator; - toAmino(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAmino; - fromAminoMsg(object: MsgRemoveClassCreatorAminoMsg): MsgRemoveClassCreator; - toAminoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorAminoMsg; - fromProtoMsg(message: MsgRemoveClassCreatorProtoMsg): MsgRemoveClassCreator; - toProto(message: MsgRemoveClassCreator): Uint8Array; - toProtoMsg(message: MsgRemoveClassCreator): MsgRemoveClassCreatorProtoMsg; -}; -export declare const MsgRemoveClassCreatorResponse: { - typeUrl: string; - encode(_: MsgRemoveClassCreatorResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveClassCreatorResponse; - fromPartial(_: Partial): MsgRemoveClassCreatorResponse; - fromAmino(_: MsgRemoveClassCreatorResponseAmino): MsgRemoveClassCreatorResponse; - toAmino(_: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseAmino; - fromAminoMsg(object: MsgRemoveClassCreatorResponseAminoMsg): MsgRemoveClassCreatorResponse; - fromProtoMsg(message: MsgRemoveClassCreatorResponseProtoMsg): MsgRemoveClassCreatorResponse; - toProto(message: MsgRemoveClassCreatorResponse): Uint8Array; - toProtoMsg(message: MsgRemoveClassCreatorResponse): MsgRemoveClassCreatorResponseProtoMsg; -}; -export declare const MsgUpdateClassFee: { - typeUrl: string; - encode(message: MsgUpdateClassFee, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFee; - fromPartial(object: Partial): MsgUpdateClassFee; - fromAmino(object: MsgUpdateClassFeeAmino): MsgUpdateClassFee; - toAmino(message: MsgUpdateClassFee): MsgUpdateClassFeeAmino; - fromAminoMsg(object: MsgUpdateClassFeeAminoMsg): MsgUpdateClassFee; - toAminoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeAminoMsg; - fromProtoMsg(message: MsgUpdateClassFeeProtoMsg): MsgUpdateClassFee; - toProto(message: MsgUpdateClassFee): Uint8Array; - toProtoMsg(message: MsgUpdateClassFee): MsgUpdateClassFeeProtoMsg; -}; -export declare const MsgUpdateClassFeeResponse: { - typeUrl: string; - encode(_: MsgUpdateClassFeeResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassFeeResponse; - fromPartial(_: Partial): MsgUpdateClassFeeResponse; - fromAmino(_: MsgUpdateClassFeeResponseAmino): MsgUpdateClassFeeResponse; - toAmino(_: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseAmino; - fromAminoMsg(object: MsgUpdateClassFeeResponseAminoMsg): MsgUpdateClassFeeResponse; - fromProtoMsg(message: MsgUpdateClassFeeResponseProtoMsg): MsgUpdateClassFeeResponse; - toProto(message: MsgUpdateClassFeeResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassFeeResponse): MsgUpdateClassFeeResponseProtoMsg; -}; -export declare const MsgAddAllowedBridgeChain: { - typeUrl: string; - encode(message: MsgAddAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChain; - fromPartial(object: Partial): MsgAddAllowedBridgeChain; - fromAmino(object: MsgAddAllowedBridgeChainAmino): MsgAddAllowedBridgeChain; - toAmino(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAmino; - fromAminoMsg(object: MsgAddAllowedBridgeChainAminoMsg): MsgAddAllowedBridgeChain; - toAminoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainAminoMsg; - fromProtoMsg(message: MsgAddAllowedBridgeChainProtoMsg): MsgAddAllowedBridgeChain; - toProto(message: MsgAddAllowedBridgeChain): Uint8Array; - toProtoMsg(message: MsgAddAllowedBridgeChain): MsgAddAllowedBridgeChainProtoMsg; -}; -export declare const MsgAddAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: MsgAddAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgAddAllowedBridgeChainResponse; - fromPartial(_: Partial): MsgAddAllowedBridgeChainResponse; - fromAmino(_: MsgAddAllowedBridgeChainResponseAmino): MsgAddAllowedBridgeChainResponse; - toAmino(_: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseAmino; - fromAminoMsg(object: MsgAddAllowedBridgeChainResponseAminoMsg): MsgAddAllowedBridgeChainResponse; - fromProtoMsg(message: MsgAddAllowedBridgeChainResponseProtoMsg): MsgAddAllowedBridgeChainResponse; - toProto(message: MsgAddAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: MsgAddAllowedBridgeChainResponse): MsgAddAllowedBridgeChainResponseProtoMsg; -}; -export declare const MsgRemoveAllowedBridgeChain: { - typeUrl: string; - encode(message: MsgRemoveAllowedBridgeChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChain; - fromPartial(object: Partial): MsgRemoveAllowedBridgeChain; - fromAmino(object: MsgRemoveAllowedBridgeChainAmino): MsgRemoveAllowedBridgeChain; - toAmino(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAmino; - fromAminoMsg(object: MsgRemoveAllowedBridgeChainAminoMsg): MsgRemoveAllowedBridgeChain; - toAminoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainAminoMsg; - fromProtoMsg(message: MsgRemoveAllowedBridgeChainProtoMsg): MsgRemoveAllowedBridgeChain; - toProto(message: MsgRemoveAllowedBridgeChain): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedBridgeChain): MsgRemoveAllowedBridgeChainProtoMsg; -}; -export declare const MsgRemoveAllowedBridgeChainResponse: { - typeUrl: string; - encode(_: MsgRemoveAllowedBridgeChainResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveAllowedBridgeChainResponse; - fromPartial(_: Partial): MsgRemoveAllowedBridgeChainResponse; - fromAmino(_: MsgRemoveAllowedBridgeChainResponseAmino): MsgRemoveAllowedBridgeChainResponse; - toAmino(_: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseAmino; - fromAminoMsg(object: MsgRemoveAllowedBridgeChainResponseAminoMsg): MsgRemoveAllowedBridgeChainResponse; - fromProtoMsg(message: MsgRemoveAllowedBridgeChainResponseProtoMsg): MsgRemoveAllowedBridgeChainResponse; - toProto(message: MsgRemoveAllowedBridgeChainResponse): Uint8Array; - toProtoMsg(message: MsgRemoveAllowedBridgeChainResponse): MsgRemoveAllowedBridgeChainResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.js b/packages/api/dist/regen/ecocredit/v1/tx.js deleted file mode 100644 index 2e88366c..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.js +++ /dev/null @@ -1,3783 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgRemoveAllowedBridgeChainResponse = exports.MsgRemoveAllowedBridgeChain = exports.MsgAddAllowedBridgeChainResponse = exports.MsgAddAllowedBridgeChain = exports.MsgUpdateClassFeeResponse = exports.MsgUpdateClassFee = exports.MsgRemoveClassCreatorResponse = exports.MsgRemoveClassCreator = exports.MsgSetClassCreatorAllowlistResponse = exports.MsgSetClassCreatorAllowlist = exports.MsgAddClassCreatorResponse = exports.MsgAddClassCreator = exports.MsgBridgeReceiveResponse = exports.MsgBridgeReceive_Project = exports.MsgBridgeReceive_Batch = exports.MsgBridgeReceive = exports.MsgBridgeResponse = exports.MsgUpdateBatchMetadataResponse = exports.MsgUpdateBatchMetadata = exports.MsgBridge = exports.MsgUpdateProjectMetadataResponse = exports.MsgUpdateProjectMetadata = exports.MsgUpdateProjectAdminResponse = exports.MsgUpdateProjectAdmin = exports.MsgUpdateClassMetadataResponse = exports.MsgUpdateClassMetadata = exports.MsgUpdateClassIssuersResponse = exports.MsgUpdateClassIssuers = exports.MsgUpdateClassAdminResponse = exports.MsgUpdateClassAdmin = exports.MsgCancelResponse = exports.MsgCancel = exports.MsgRetireResponse = exports.MsgRetire = exports.MsgSendResponse = exports.MsgSend_SendCredits = exports.MsgSend = exports.MsgSealBatchResponse = exports.MsgSealBatch = exports.MsgMintBatchCreditsResponse = exports.MsgMintBatchCredits = exports.MsgCreateBatchResponse = exports.MsgCreateBatch = exports.MsgCreateProjectResponse = exports.MsgCreateProject = exports.MsgCreateClassResponse = exports.MsgCreateClass = exports.MsgAddCreditTypeResponse = exports.MsgAddCreditType = void 0; -//@ts-nocheck -const coin_1 = require("../../../cosmos/base/v1beta1/coin"); -const types_1 = require("./types"); -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const state_1 = require("./state"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseMsgAddCreditType() { - return { - authority: "", - creditType: undefined - }; -} -exports.MsgAddCreditType = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creditType !== undefined) { - state_1.CreditType.encode(message.creditType, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creditType = state_1.CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddCreditType(); - message.authority = object.authority ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddCreditType(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = state_1.CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddCreditType.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddCreditType", - value: exports.MsgAddCreditType.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAddCreditType.decode(message.value); - }, - toProto(message) { - return exports.MsgAddCreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: exports.MsgAddCreditType.encode(message).finish() - }; - } -}; -function createBaseMsgAddCreditTypeResponse() { - return {}; -} -exports.MsgAddCreditTypeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddCreditTypeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddCreditTypeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddCreditTypeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAddCreditTypeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAddCreditTypeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditTypeResponse", - value: exports.MsgAddCreditTypeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClass() { - return { - admin: "", - issuers: [], - metadata: "", - creditTypeAbbrev: "", - fee: undefined - }; -} -exports.MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.creditTypeAbbrev !== "") { - writer.uint32(34).string(message.creditTypeAbbrev); - } - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.creditTypeAbbrev = reader.string(); - break; - case 5: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.creditTypeAbbrev = object.creditTypeAbbrev ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.credit_type_abbrev !== undefined && object.credit_type_abbrev !== null) { - message.creditTypeAbbrev = object.credit_type_abbrev; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.credit_type_abbrev = message.creditTypeAbbrev === "" ? undefined : message.creditTypeAbbrev; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClass.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateClass", - value: exports.MsgCreateClass.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateClass.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: exports.MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse() { - return { - classId: "" - }; -} -exports.MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateClassResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClassResponse", - value: exports.MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProject() { - return { - admin: "", - classId: "", - metadata: "", - jurisdiction: "", - referenceId: "" - }; -} -exports.MsgCreateProject = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.jurisdiction !== "") { - writer.uint32(34).string(message.jurisdiction); - } - if (message.referenceId !== "") { - writer.uint32(42).string(message.referenceId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProject(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.jurisdiction = reader.string(); - break; - case 5: - message.referenceId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateProject(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.referenceId = object.referenceId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateProject(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateProject.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateProject", - value: exports.MsgCreateProject.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateProject.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateProject.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: exports.MsgCreateProject.encode(message).finish() - }; - } -}; -function createBaseMsgCreateProjectResponse() { - return { - projectId: "" - }; -} -exports.MsgCreateProjectResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.projectId !== "") { - writer.uint32(10).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateProjectResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateProjectResponse(); - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateProjectResponse(); - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateProjectResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateProjectResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateProjectResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProjectResponse", - value: exports.MsgCreateProjectResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch() { - return { - issuer: "", - projectId: "", - issuance: [], - metadata: "", - startDate: undefined, - endDate: undefined, - open: false, - originTx: undefined - }; -} -exports.MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - for (const v of message.issuance) { - types_1.BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.open === true) { - writer.uint32(56).bool(message.open); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.issuance.push(types_1.BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.open = reader.bool(); - break; - case 8: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.projectId = object.projectId ?? ""; - message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.open = object.open ?? false; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.open !== undefined && object.open !== null) { - message.open = object.open; - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? types_1.BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata === "" ? undefined : message.metadata; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.open = message.open === false ? undefined : message.open; - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateBatch.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCreateBatch", - value: exports.MsgCreateBatch.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCreateBatch.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: exports.MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse() { - return { - batchDenom: "" - }; -} -exports.MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatchResponse", - value: exports.MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCredits() { - return { - issuer: "", - batchDenom: "", - issuance: [], - originTx: undefined - }; -} -exports.MsgMintBatchCredits = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - for (const v of message.issuance) { - types_1.BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuance.push(types_1.BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgMintBatchCredits(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromPartial(e)) || []; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgMintBatchCredits(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - message.issuance = object.issuance?.map(e => types_1.BatchIssuance.fromAmino(e)) || []; - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? types_1.BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgMintBatchCredits.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgMintBatchCredits", - value: exports.MsgMintBatchCredits.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgMintBatchCredits.decode(message.value); - }, - toProto(message) { - return exports.MsgMintBatchCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: exports.MsgMintBatchCredits.encode(message).finish() - }; - } -}; -function createBaseMsgMintBatchCreditsResponse() { - return {}; -} -exports.MsgMintBatchCreditsResponse = { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgMintBatchCreditsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgMintBatchCreditsResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgMintBatchCreditsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgMintBatchCreditsResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgMintBatchCreditsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCreditsResponse", - value: exports.MsgMintBatchCreditsResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatch() { - return { - issuer: "", - batchDenom: "" - }; -} -exports.MsgSealBatch = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSealBatch(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSealBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSealBatch.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSealBatch", - value: exports.MsgSealBatch.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSealBatch.decode(message.value); - }, - toProto(message) { - return exports.MsgSealBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: exports.MsgSealBatch.encode(message).finish() - }; - } -}; -function createBaseMsgSealBatchResponse() { - return {}; -} -exports.MsgSealBatchResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSealBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSealBatchResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSealBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSealBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSealBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatchResponse", - value: exports.MsgSealBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend() { - return { - sender: "", - recipient: "", - credits: [] - }; -} -exports.MsgSend = { - typeUrl: "/regen.ecocredit.v1.MsgSend", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - exports.MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(exports.MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? exports.MsgSend_SendCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSend.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSend", - value: exports.MsgSend.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSend.decode(message.value); - }, - toProto(message) { - return exports.MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: exports.MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -exports.MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1.SendCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSend_SendCredits.decode(message.value); - }, - toProto(message) { - return exports.MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.SendCredits", - value: exports.MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -exports.MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSendResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSendResponse", - value: exports.MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire() { - return { - owner: "", - credits: [], - jurisdiction: "", - reason: "" - }; -} -exports.MsgRetire = { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - types_1.Credits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.jurisdiction !== "") { - writer.uint32(26).string(message.jurisdiction); - } - if (message.reason !== "") { - writer.uint32(34).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(types_1.Credits.decode(reader, reader.uint32())); - break; - case 3: - message.jurisdiction = reader.string(); - break; - case 4: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; - message.jurisdiction = object.jurisdiction ?? ""; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRetire.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRetire", - value: exports.MsgRetire.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRetire.decode(message.value); - }, - toProto(message) { - return exports.MsgRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: exports.MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse() { - return {}; -} -exports.MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRetireResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetireResponse", - value: exports.MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel() { - return { - owner: "", - credits: [], - reason: "" - }; -} -exports.MsgCancel = { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.credits) { - types_1.Credits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.reason !== "") { - writer.uint32(26).string(message.reason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.credits.push(types_1.Credits.decode(reader, reader.uint32())); - break; - case 3: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel(); - message.owner = object.owner ?? ""; - message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; - message.reason = object.reason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; - if (object.reason !== undefined && object.reason !== null) { - message.reason = object.reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.reason = message.reason === "" ? undefined : message.reason; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancel.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgCancel", - value: exports.MsgCancel.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgCancel.decode(message.value); - }, - toProto(message) { - return exports.MsgCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: exports.MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse() { - return {}; -} -exports.MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCancelResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancelResponse", - value: exports.MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin() { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -exports.MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassAdmin", - value: exports.MsgUpdateClassAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: exports.MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse() { - return {}; -} -exports.MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdminResponse", - value: exports.MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers() { - return { - admin: "", - classId: "", - addIssuers: [], - removeIssuers: [] - }; -} -exports.MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.addIssuers) { - writer.uint32(26).string(v); - } - for (const v of message.removeIssuers) { - writer.uint32(34).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.addIssuers.push(reader.string()); - break; - case 4: - message.removeIssuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.addIssuers = object.addIssuers?.map(e => e) || []; - message.removeIssuers = object.removeIssuers?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.addIssuers = object.add_issuers?.map(e => e) || []; - message.removeIssuers = object.remove_issuers?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.addIssuers) { - obj.add_issuers = message.addIssuers.map(e => e); - } - else { - obj.add_issuers = message.addIssuers; - } - if (message.removeIssuers) { - obj.remove_issuers = message.removeIssuers.map(e => e); - } - else { - obj.remove_issuers = message.removeIssuers; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassIssuers.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassIssuers", - value: exports.MsgUpdateClassIssuers.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: exports.MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse() { - return {}; -} -exports.MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuersResponse", - value: exports.MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata() { - return { - admin: "", - classId: "", - newMetadata: "" - }; -} -exports.MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassMetadata", - value: exports.MsgUpdateClassMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: exports.MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse() { - return {}; -} -exports.MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadataResponse", - value: exports.MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdmin() { - return { - admin: "", - projectId: "", - newAdmin: "" - }; -} -exports.MsgUpdateProjectAdmin = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateProjectAdmin(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateProjectAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateProjectAdmin.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateProjectAdmin", - value: exports.MsgUpdateProjectAdmin.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateProjectAdmin.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateProjectAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: exports.MsgUpdateProjectAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectAdminResponse() { - return {}; -} -exports.MsgUpdateProjectAdminResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateProjectAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateProjectAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateProjectAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateProjectAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdminResponse", - value: exports.MsgUpdateProjectAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadata() { - return { - admin: "", - projectId: "", - newMetadata: "" - }; -} -exports.MsgUpdateProjectMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateProjectMetadata(); - message.admin = object.admin ?? ""; - message.projectId = object.projectId ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateProjectMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateProjectMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateProjectMetadata", - value: exports.MsgUpdateProjectMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateProjectMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateProjectMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: exports.MsgUpdateProjectMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateProjectMetadataResponse() { - return {}; -} -exports.MsgUpdateProjectMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateProjectMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateProjectMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateProjectMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateProjectMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateProjectMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadataResponse", - value: exports.MsgUpdateProjectMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridge() { - return { - owner: "", - target: "", - recipient: "", - credits: [] - }; -} -exports.MsgBridge = { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.target !== "") { - writer.uint32(18).string(message.target); - } - if (message.recipient !== "") { - writer.uint32(26).string(message.recipient); - } - for (const v of message.credits) { - types_1.Credits.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridge(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.target = reader.string(); - break; - case 3: - message.recipient = reader.string(); - break; - case 4: - message.credits.push(types_1.Credits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridge(); - message.owner = object.owner ?? ""; - message.target = object.target ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => types_1.Credits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridge(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.target !== undefined && object.target !== null) { - message.target = object.target; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => types_1.Credits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.target = message.target === "" ? undefined : message.target; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? types_1.Credits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridge.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgBridge", - value: exports.MsgBridge.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgBridge.decode(message.value); - }, - toProto(message) { - return exports.MsgBridge.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: exports.MsgBridge.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadata() { - return { - issuer: "", - batchDenom: "", - newMetadata: "" - }; -} -exports.MsgUpdateBatchMetadata = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.newMetadata !== "") { - writer.uint32(26).string(message.newMetadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.newMetadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateBatchMetadata(); - message.issuer = object.issuer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.newMetadata = object.newMetadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateBatchMetadata(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.new_metadata !== undefined && object.new_metadata !== null) { - message.newMetadata = object.new_metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.new_metadata = message.newMetadata === "" ? undefined : message.newMetadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateBatchMetadata.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateBatchMetadata", - value: exports.MsgUpdateBatchMetadata.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateBatchMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateBatchMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: exports.MsgUpdateBatchMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateBatchMetadataResponse() { - return {}; -} -exports.MsgUpdateBatchMetadataResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateBatchMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateBatchMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateBatchMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateBatchMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateBatchMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadataResponse", - value: exports.MsgUpdateBatchMetadataResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeResponse() { - return {}; -} -exports.MsgBridgeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgBridgeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgBridgeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridgeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBridgeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgBridgeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeResponse", - value: exports.MsgBridgeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive() { - return { - issuer: "", - classId: "", - project: undefined, - batch: undefined, - originTx: undefined - }; -} -exports.MsgBridgeReceive = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.project !== undefined) { - exports.MsgBridgeReceive_Project.encode(message.project, writer.uint32(26).fork()).ldelim(); - } - if (message.batch !== undefined) { - exports.MsgBridgeReceive_Batch.encode(message.batch, writer.uint32(34).fork()).ldelim(); - } - if (message.originTx !== undefined) { - types_1.OriginTx.encode(message.originTx, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.project = exports.MsgBridgeReceive_Project.decode(reader, reader.uint32()); - break; - case 4: - message.batch = exports.MsgBridgeReceive_Batch.decode(reader, reader.uint32()); - break; - case 5: - message.originTx = types_1.OriginTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.project = object.project !== undefined && object.project !== null ? exports.MsgBridgeReceive_Project.fromPartial(object.project) : undefined; - message.batch = object.batch !== undefined && object.batch !== null ? exports.MsgBridgeReceive_Batch.fromPartial(object.batch) : undefined; - message.originTx = object.originTx !== undefined && object.originTx !== null ? types_1.OriginTx.fromPartial(object.originTx) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.project !== undefined && object.project !== null) { - message.project = exports.MsgBridgeReceive_Project.fromAmino(object.project); - } - if (object.batch !== undefined && object.batch !== null) { - message.batch = exports.MsgBridgeReceive_Batch.fromAmino(object.batch); - } - if (object.origin_tx !== undefined && object.origin_tx !== null) { - message.originTx = types_1.OriginTx.fromAmino(object.origin_tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.project = message.project ? exports.MsgBridgeReceive_Project.toAmino(message.project) : undefined; - obj.batch = message.batch ? exports.MsgBridgeReceive_Batch.toAmino(message.batch) : undefined; - obj.origin_tx = message.originTx ? types_1.OriginTx.toAmino(message.originTx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridgeReceive.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgBridgeReceive", - value: exports.MsgBridgeReceive.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgBridgeReceive.decode(message.value); - }, - toProto(message) { - return exports.MsgBridgeReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: exports.MsgBridgeReceive.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Batch() { - return { - recipient: "", - amount: "", - startDate: undefined, - endDate: undefined, - metadata: "" - }; -} -exports.MsgBridgeReceive_Batch = { - typeUrl: "/regen.ecocredit.v1.Batch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(26).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Batch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - case 3: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive_Batch(); - message.recipient = object.recipient ?? ""; - message.amount = object.amount ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive_Batch(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridgeReceive_Batch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBridgeReceive_Batch.decode(message.value); - }, - toProto(message) { - return exports.MsgBridgeReceive_Batch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Batch", - value: exports.MsgBridgeReceive_Batch.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceive_Project() { - return { - referenceId: "", - jurisdiction: "", - metadata: "" - }; -} -exports.MsgBridgeReceive_Project = { - typeUrl: "/regen.ecocredit.v1.Project", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.referenceId !== "") { - writer.uint32(10).string(message.referenceId); - } - if (message.jurisdiction !== "") { - writer.uint32(18).string(message.jurisdiction); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceive_Project(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = reader.string(); - break; - case 2: - message.jurisdiction = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceive_Project(); - message.referenceId = object.referenceId ?? ""; - message.jurisdiction = object.jurisdiction ?? ""; - message.metadata = object.metadata ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceive_Project(); - if (object.reference_id !== undefined && object.reference_id !== null) { - message.referenceId = object.reference_id; - } - if (object.jurisdiction !== undefined && object.jurisdiction !== null) { - message.jurisdiction = object.jurisdiction; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = object.metadata; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.reference_id = message.referenceId === "" ? undefined : message.referenceId; - obj.jurisdiction = message.jurisdiction === "" ? undefined : message.jurisdiction; - obj.metadata = message.metadata === "" ? undefined : message.metadata; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridgeReceive_Project.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBridgeReceive_Project.decode(message.value); - }, - toProto(message) { - return exports.MsgBridgeReceive_Project.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Project", - value: exports.MsgBridgeReceive_Project.encode(message).finish() - }; - } -}; -function createBaseMsgBridgeReceiveResponse() { - return { - batchDenom: "", - projectId: "" - }; -} -exports.MsgBridgeReceiveResponse = { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.projectId !== "") { - writer.uint32(18).string(message.projectId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgBridgeReceiveResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgBridgeReceiveResponse(); - message.batchDenom = object.batchDenom ?? ""; - message.projectId = object.projectId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgBridgeReceiveResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.project_id !== undefined && object.project_id !== null) { - message.projectId = object.project_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.project_id = message.projectId === "" ? undefined : message.projectId; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgBridgeReceiveResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgBridgeReceiveResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgBridgeReceiveResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceiveResponse", - value: exports.MsgBridgeReceiveResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreator() { - return { - authority: "", - creator: "" - }; -} -exports.MsgAddClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddClassCreator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddClassCreator", - value: exports.MsgAddClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAddClassCreator.decode(message.value); - }, - toProto(message) { - return exports.MsgAddClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: exports.MsgAddClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgAddClassCreatorResponse() { - return {}; -} -exports.MsgAddClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddClassCreatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAddClassCreatorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAddClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreatorResponse", - value: exports.MsgAddClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlist() { - return { - authority: "", - enabled: false - }; -} -exports.MsgSetClassCreatorAllowlist = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.enabled === true) { - writer.uint32(16).bool(message.enabled); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlist(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSetClassCreatorAllowlist(); - message.authority = object.authority ?? ""; - message.enabled = object.enabled ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSetClassCreatorAllowlist(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.enabled !== undefined && object.enabled !== null) { - message.enabled = object.enabled; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.enabled = message.enabled === false ? undefined : message.enabled; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSetClassCreatorAllowlist.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgSetClassCreatorAllowlist", - value: exports.MsgSetClassCreatorAllowlist.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgSetClassCreatorAllowlist.decode(message.value); - }, - toProto(message) { - return exports.MsgSetClassCreatorAllowlist.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: exports.MsgSetClassCreatorAllowlist.encode(message).finish() - }; - } -}; -function createBaseMsgSetClassCreatorAllowlistResponse() { - return {}; -} -exports.MsgSetClassCreatorAllowlistResponse = { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSetClassCreatorAllowlistResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSetClassCreatorAllowlistResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSetClassCreatorAllowlistResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSetClassCreatorAllowlistResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlistResponse", - value: exports.MsgSetClassCreatorAllowlistResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreator() { - return { - authority: "", - creator: "" - }; -} -exports.MsgRemoveClassCreator = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.creator !== "") { - writer.uint32(18).string(message.creator); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.creator = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveClassCreator(); - message.authority = object.authority ?? ""; - message.creator = object.creator ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveClassCreator(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.creator !== undefined && object.creator !== null) { - message.creator = object.creator; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.creator = message.creator === "" ? undefined : message.creator; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveClassCreator.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRemoveClassCreator", - value: exports.MsgRemoveClassCreator.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRemoveClassCreator.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveClassCreator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: exports.MsgRemoveClassCreator.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveClassCreatorResponse() { - return {}; -} -exports.MsgRemoveClassCreatorResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveClassCreatorResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveClassCreatorResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveClassCreatorResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRemoveClassCreatorResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveClassCreatorResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreatorResponse", - value: exports.MsgRemoveClassCreatorResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFee() { - return { - authority: "", - fee: undefined - }; -} -exports.MsgUpdateClassFee = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.fee !== undefined) { - coin_1.Coin.encode(message.fee, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFee(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.fee = coin_1.Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassFee(); - message.authority = object.authority ?? ""; - message.fee = object.fee !== undefined && object.fee !== null ? coin_1.Coin.fromPartial(object.fee) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassFee(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.fee !== undefined && object.fee !== null) { - message.fee = coin_1.Coin.fromAmino(object.fee); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.fee = message.fee ? coin_1.Coin.toAmino(message.fee) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassFee.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgUpdateClassFee", - value: exports.MsgUpdateClassFee.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassFee.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassFee.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: exports.MsgUpdateClassFee.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassFeeResponse() { - return {}; -} -exports.MsgUpdateClassFeeResponse = { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassFeeResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassFeeResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassFeeResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassFeeResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassFeeResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFeeResponse", - value: exports.MsgUpdateClassFeeResponse.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChain() { - return { - authority: "", - chainName: "" - }; -} -exports.MsgAddAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgAddAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgAddAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgAddAllowedBridgeChain", - value: exports.MsgAddAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgAddAllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return exports.MsgAddAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: exports.MsgAddAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgAddAllowedBridgeChainResponse() { - return {}; -} -exports.MsgAddAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgAddAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgAddAllowedBridgeChainResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgAddAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgAddAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgAddAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChainResponse", - value: exports.MsgAddAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChain() { - return { - authority: "", - chainName: "" - }; -} -exports.MsgRemoveAllowedBridgeChain = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - if (message.chainName !== "") { - writer.uint32(18).string(message.chainName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - case 2: - message.chainName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRemoveAllowedBridgeChain(); - message.authority = object.authority ?? ""; - message.chainName = object.chainName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRemoveAllowedBridgeChain(); - if (object.authority !== undefined && object.authority !== null) { - message.authority = object.authority; - } - if (object.chain_name !== undefined && object.chain_name !== null) { - message.chainName = object.chain_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.authority = message.authority === "" ? undefined : message.authority; - obj.chain_name = message.chainName === "" ? undefined : message.chainName; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveAllowedBridgeChain.fromAmino(object.value); - }, - toAminoMsg(message) { - return { - type: "regen/MsgRemoveAllowedBridgeChain", - value: exports.MsgRemoveAllowedBridgeChain.toAmino(message) - }; - }, - fromProtoMsg(message) { - return exports.MsgRemoveAllowedBridgeChain.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveAllowedBridgeChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: exports.MsgRemoveAllowedBridgeChain.encode(message).finish() - }; - } -}; -function createBaseMsgRemoveAllowedBridgeChainResponse() { - return {}; -} -exports.MsgRemoveAllowedBridgeChainResponse = { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRemoveAllowedBridgeChainResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRemoveAllowedBridgeChainResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRemoveAllowedBridgeChainResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRemoveAllowedBridgeChainResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChainResponse", - value: exports.MsgRemoveAllowedBridgeChainResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts deleted file mode 100644 index f47c4c8c..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.registry.d.ts +++ /dev/null @@ -1,288 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateProject, MsgCreateBatch, MsgMintBatchCredits, MsgSealBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata, MsgUpdateProjectAdmin, MsgUpdateProjectMetadata, MsgUpdateBatchMetadata, MsgBridge, MsgBridgeReceive, MsgAddCreditType, MsgSetClassCreatorAllowlist, MsgAddClassCreator, MsgRemoveClassCreator, MsgUpdateClassFee, MsgAddAllowedBridgeChain, MsgRemoveAllowedBridgeChain } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: Uint8Array; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: Uint8Array; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: Uint8Array; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: Uint8Array; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: Uint8Array; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: Uint8Array; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: Uint8Array; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: Uint8Array; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: Uint8Array; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: MsgCreateProject; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: MsgMintBatchCredits; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: MsgSealBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: MsgUpdateBatchMetadata; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: MsgBridge; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: MsgBridgeReceive; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: MsgAddCreditType; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: MsgAddClassCreator; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: MsgRemoveClassCreator; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: MsgRemoveAllowedBridgeChain; - }; - }; - fromPartial: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createProject(value: MsgCreateProject): { - typeUrl: string; - value: MsgCreateProject; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - mintBatchCredits(value: MsgMintBatchCredits): { - typeUrl: string; - value: MsgMintBatchCredits; - }; - sealBatch(value: MsgSealBatch): { - typeUrl: string; - value: MsgSealBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - updateProjectAdmin(value: MsgUpdateProjectAdmin): { - typeUrl: string; - value: MsgUpdateProjectAdmin; - }; - updateProjectMetadata(value: MsgUpdateProjectMetadata): { - typeUrl: string; - value: MsgUpdateProjectMetadata; - }; - updateBatchMetadata(value: MsgUpdateBatchMetadata): { - typeUrl: string; - value: MsgUpdateBatchMetadata; - }; - bridge(value: MsgBridge): { - typeUrl: string; - value: MsgBridge; - }; - bridgeReceive(value: MsgBridgeReceive): { - typeUrl: string; - value: MsgBridgeReceive; - }; - addCreditType(value: MsgAddCreditType): { - typeUrl: string; - value: MsgAddCreditType; - }; - setClassCreatorAllowlist(value: MsgSetClassCreatorAllowlist): { - typeUrl: string; - value: MsgSetClassCreatorAllowlist; - }; - addClassCreator(value: MsgAddClassCreator): { - typeUrl: string; - value: MsgAddClassCreator; - }; - removeClassCreator(value: MsgRemoveClassCreator): { - typeUrl: string; - value: MsgRemoveClassCreator; - }; - updateClassFee(value: MsgUpdateClassFee): { - typeUrl: string; - value: MsgUpdateClassFee; - }; - addAllowedBridgeChain(value: MsgAddAllowedBridgeChain): { - typeUrl: string; - value: MsgAddAllowedBridgeChain; - }; - removeAllowedBridgeChain(value: MsgRemoveAllowedBridgeChain): { - typeUrl: string; - value: MsgRemoveAllowedBridgeChain; - }; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.registry.js b/packages/api/dist/regen/ecocredit/v1/tx.registry.js deleted file mode 100644 index ca0f52ac..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.registry.js +++ /dev/null @@ -1,433 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.ecocredit.v1.MsgCreateClass", tx_1.MsgCreateClass], ["/regen.ecocredit.v1.MsgCreateProject", tx_1.MsgCreateProject], ["/regen.ecocredit.v1.MsgCreateBatch", tx_1.MsgCreateBatch], ["/regen.ecocredit.v1.MsgMintBatchCredits", tx_1.MsgMintBatchCredits], ["/regen.ecocredit.v1.MsgSealBatch", tx_1.MsgSealBatch], ["/regen.ecocredit.v1.MsgSend", tx_1.MsgSend], ["/regen.ecocredit.v1.MsgRetire", tx_1.MsgRetire], ["/regen.ecocredit.v1.MsgCancel", tx_1.MsgCancel], ["/regen.ecocredit.v1.MsgUpdateClassAdmin", tx_1.MsgUpdateClassAdmin], ["/regen.ecocredit.v1.MsgUpdateClassIssuers", tx_1.MsgUpdateClassIssuers], ["/regen.ecocredit.v1.MsgUpdateClassMetadata", tx_1.MsgUpdateClassMetadata], ["/regen.ecocredit.v1.MsgUpdateProjectAdmin", tx_1.MsgUpdateProjectAdmin], ["/regen.ecocredit.v1.MsgUpdateProjectMetadata", tx_1.MsgUpdateProjectMetadata], ["/regen.ecocredit.v1.MsgUpdateBatchMetadata", tx_1.MsgUpdateBatchMetadata], ["/regen.ecocredit.v1.MsgBridge", tx_1.MsgBridge], ["/regen.ecocredit.v1.MsgBridgeReceive", tx_1.MsgBridgeReceive], ["/regen.ecocredit.v1.MsgAddCreditType", tx_1.MsgAddCreditType], ["/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", tx_1.MsgSetClassCreatorAllowlist], ["/regen.ecocredit.v1.MsgAddClassCreator", tx_1.MsgAddClassCreator], ["/regen.ecocredit.v1.MsgRemoveClassCreator", tx_1.MsgRemoveClassCreator], ["/regen.ecocredit.v1.MsgUpdateClassFee", tx_1.MsgUpdateClassFee], ["/regen.ecocredit.v1.MsgAddAllowedBridgeChain", tx_1.MsgAddAllowedBridgeChain], ["/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", tx_1.MsgRemoveAllowedBridgeChain]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: tx_1.MsgCreateClass.encode(value).finish() - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: tx_1.MsgCreateProject.encode(value).finish() - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: tx_1.MsgCreateBatch.encode(value).finish() - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: tx_1.MsgMintBatchCredits.encode(value).finish() - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: tx_1.MsgSealBatch.encode(value).finish() - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: tx_1.MsgSend.encode(value).finish() - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: tx_1.MsgRetire.encode(value).finish() - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: tx_1.MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: tx_1.MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: tx_1.MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: tx_1.MsgUpdateClassMetadata.encode(value).finish() - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: tx_1.MsgUpdateProjectAdmin.encode(value).finish() - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: tx_1.MsgUpdateProjectMetadata.encode(value).finish() - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: tx_1.MsgUpdateBatchMetadata.encode(value).finish() - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: tx_1.MsgBridge.encode(value).finish() - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: tx_1.MsgBridgeReceive.encode(value).finish() - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: tx_1.MsgAddCreditType.encode(value).finish() - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: tx_1.MsgSetClassCreatorAllowlist.encode(value).finish() - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: tx_1.MsgAddClassCreator.encode(value).finish() - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: tx_1.MsgRemoveClassCreator.encode(value).finish() - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: tx_1.MsgUpdateClassFee.encode(value).finish() - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: tx_1.MsgAddAllowedBridgeChain.encode(value).finish() - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: tx_1.MsgRemoveAllowedBridgeChain.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value - }; - } - }, - fromPartial: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateClass", - value: tx_1.MsgCreateClass.fromPartial(value) - }; - }, - createProject(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateProject", - value: tx_1.MsgCreateProject.fromPartial(value) - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCreateBatch", - value: tx_1.MsgCreateBatch.fromPartial(value) - }; - }, - mintBatchCredits(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgMintBatchCredits", - value: tx_1.MsgMintBatchCredits.fromPartial(value) - }; - }, - sealBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSealBatch", - value: tx_1.MsgSealBatch.fromPartial(value) - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSend", - value: tx_1.MsgSend.fromPartial(value) - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRetire", - value: tx_1.MsgRetire.fromPartial(value) - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgCancel", - value: tx_1.MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassAdmin", - value: tx_1.MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassIssuers", - value: tx_1.MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassMetadata", - value: tx_1.MsgUpdateClassMetadata.fromPartial(value) - }; - }, - updateProjectAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectAdmin", - value: tx_1.MsgUpdateProjectAdmin.fromPartial(value) - }; - }, - updateProjectMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateProjectMetadata", - value: tx_1.MsgUpdateProjectMetadata.fromPartial(value) - }; - }, - updateBatchMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateBatchMetadata", - value: tx_1.MsgUpdateBatchMetadata.fromPartial(value) - }; - }, - bridge(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridge", - value: tx_1.MsgBridge.fromPartial(value) - }; - }, - bridgeReceive(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgBridgeReceive", - value: tx_1.MsgBridgeReceive.fromPartial(value) - }; - }, - addCreditType(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddCreditType", - value: tx_1.MsgAddCreditType.fromPartial(value) - }; - }, - setClassCreatorAllowlist(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgSetClassCreatorAllowlist", - value: tx_1.MsgSetClassCreatorAllowlist.fromPartial(value) - }; - }, - addClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddClassCreator", - value: tx_1.MsgAddClassCreator.fromPartial(value) - }; - }, - removeClassCreator(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveClassCreator", - value: tx_1.MsgRemoveClassCreator.fromPartial(value) - }; - }, - updateClassFee(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgUpdateClassFee", - value: tx_1.MsgUpdateClassFee.fromPartial(value) - }; - }, - addAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgAddAllowedBridgeChain", - value: tx_1.MsgAddAllowedBridgeChain.fromPartial(value) - }; - }, - removeAllowedBridgeChain(value) { - return { - typeUrl: "/regen.ecocredit.v1.MsgRemoveAllowedBridgeChain", - value: tx_1.MsgRemoveAllowedBridgeChain.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts deleted file mode 100644 index cddea8c1..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateProject, MsgCreateProjectResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgMintBatchCredits, MsgMintBatchCreditsResponse, MsgSealBatch, MsgSealBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse, MsgUpdateProjectAdmin, MsgUpdateProjectAdminResponse, MsgUpdateProjectMetadata, MsgUpdateProjectMetadataResponse, MsgUpdateBatchMetadata, MsgUpdateBatchMetadataResponse, MsgBridge, MsgBridgeResponse, MsgBridgeReceive, MsgBridgeReceiveResponse, MsgAddCreditType, MsgAddCreditTypeResponse, MsgSetClassCreatorAllowlist, MsgSetClassCreatorAllowlistResponse, MsgAddClassCreator, MsgAddClassCreatorResponse, MsgRemoveClassCreator, MsgRemoveClassCreatorResponse, MsgUpdateClassFee, MsgUpdateClassFeeResponse, MsgAddAllowedBridgeChain, MsgAddAllowedBridgeChainResponse, MsgRemoveAllowedBridgeChain, MsgRemoveAllowedBridgeChainResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class under the given credit type with an - * approved list of issuers and optional metadata. If the class fee parameter - * is set, the fee field must be populated with equal value. A greater fee can - * be provided, however, the creator will only be charged the amount specified - * in the fee parameter. The creator of the credit class becomes the admin of - * the credit class upon creation. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateProject creates a new project under the given credit class with a - * jurisdiction, optional metadata, and an optional reference ID. The creator - * of the project must be an approved credit class issuer for the given credit - * class. The creator becomes the admin of the project upon creation. - */ - createProject(request: MsgCreateProject): Promise; - /** - * CreateBatch creates a new batch of credits under the given project with a - * start and end date representing the monitoring period, a list of credits to - * be issued with each issuance specifying a recipient, the amount of tradable - * and retired credits, and the retirement jurisdiction (if credits are to be - * retired upon receipt), and optional metadata. The credit batch creator must - * be listed as an approved issuer within the credit class of the project that - * the credits are being issued under. - * - * The default behavior is for a new credit batch to be "sealed" as opposed to - * being "open". When a credit batch is "open", new credits can be dynamically - * minted to the credit batch following the creation of the credit batch. This - * "open" option should only be set to true when bridging credits from another - * chain or registry as a result of a bridge operation and is not intended for - * native credit issuance. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * MintBatchCredits dynamically mints credits to an "open" credit batch. This - * feature is only meant to be used when bridging credits from another chain - * or registry and is not intended for native credit issuance. When bridging - * credits from the same vintage (or monitoring period) as an existing credit - * batch, the credits can be dynamically minted to the existing credit batch - * if the credit batch is "open". - */ - mintBatchCredits(request: MsgMintBatchCredits): Promise; - /** - * MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed - * (i.e. once "open" is set to false), credits can no longer be dynamically - * minted to the credit batch. A sealed credit batch cannot be unsealed and - * only the credit batch issuer can seal a credit batch. - */ - sealBatch(request: MsgSealBatch): Promise; - /** - * Send sends a specified amount of tradable credits from the credit owner's - * account to another account. Sent credits can either remain tradable or be - * retired upon receipt. - */ - send(request: MsgSend): Promise; - /** - * Retire retires a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and adding it to their retired - * balance. Retiring credits is permanent and implies the credits are being - * consumed as a offset. - */ - retire(request: MsgRetire): Promise; - /** - * Cancel cancels a specified amount of tradable credits, removing the amount - * from the credit owner's tradable balance and removing the amount from the - * credit batch's tradable supply. Cancelling credits is permanent and implies - * the credits have been moved to another chain or registry. - */ - cancel(request: MsgCancel): Promise; - /** - * UpdateClassAdmin updates the credit class admin. Only the admin of the - * credit class can update the credit class. - */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** - * UpdateClassIssuers updates the credit class issuer list. Only the admin of - * the credit class can update the credit class. - */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** - * UpdateClassMetadata updates the credit class metadata. Only the admin of - * the credit class can update the credit class. - */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; - /** - * UpdateProjectAdmin updates the project admin address. Only the admin of the - * project can update the project. - */ - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; - /** - * UpdateProjectMetadata updates the project metadata. Only the admin of the - * project can update the project. - */ - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; - /** - * UpdateBatchMetadata updates the batch metadata. Only an "open" batch can be - * updated and only the issuer of the batch can update the batch. - * - * Since Revision 2 - */ - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; - /** - * Bridge processes credits being sent back to the source chain. When credits - * are sent back to the source chain, the credits are cancelled and an event - * is emitted to be handled by an external bridge service. - */ - bridge(request: MsgBridge): Promise; - /** - * BridgeReceive processes credits being sent from another chain. When the - * credits are sent from the same vintage as an existing credit batch within - * the scope of the provided credit class, the credits will be minted to the - * existing credit batch, otherwise the credits will be issued in a new credit - * batch. The new credit batch will be created under an existing project if a - * project with a matching reference id already exists within the scope of the - * credit class, otherwise a new project will be created. - */ - bridgeReceive(request: MsgBridgeReceive): Promise; - /** - * AddCreditType is a governance method that allows the addition of new - * credit types to the network. - * - * Since Revision 2 - */ - addCreditType(request: MsgAddCreditType): Promise; - /** - * SetClassCreatorAllowlist is a governance method that updates the class - * creator allowlist enabled setting. When enabled, only addresses listed in - * the allowlist can create credit classes. When disabled, any address can - * create credit classes. - * - * Since Revision 2 - */ - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; - /** - * AddClassCreator is a governance method that allows the addition of a new - * address to the class creation allowlist. - * - * Since Revision 2 - */ - addClassCreator(request: MsgAddClassCreator): Promise; - /** - * RemoveClassCreator is a governance method that removes an - * address from the class creation allowlist. - * - * Since Revision 2 - */ - removeClassCreator(request: MsgRemoveClassCreator): Promise; - /** - * UpdateClassFee is a governance method that allows for updating the credit - * class creation fee. If no fee is specified in the request, the credit - * class creation fee will be removed and no fee will be required to create - * a credit class. - * - * Since Revision 2 - */ - updateClassFee(request: MsgUpdateClassFee): Promise; - /** - * AddAllowedBridgeChain is a governance method that allows for the - * addition of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; - /** - * RemoveAllowedBridgeChain is a governance method that allows for the - * removal of a chain to bridge ecocredits to. - * - * Since Revision 2 - */ - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClass(request: MsgCreateClass): Promise; - createProject(request: MsgCreateProject): Promise; - createBatch(request: MsgCreateBatch): Promise; - mintBatchCredits(request: MsgMintBatchCredits): Promise; - sealBatch(request: MsgSealBatch): Promise; - send(request: MsgSend): Promise; - retire(request: MsgRetire): Promise; - cancel(request: MsgCancel): Promise; - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; - updateProjectAdmin(request: MsgUpdateProjectAdmin): Promise; - updateProjectMetadata(request: MsgUpdateProjectMetadata): Promise; - updateBatchMetadata(request: MsgUpdateBatchMetadata): Promise; - bridge(request: MsgBridge): Promise; - bridgeReceive(request: MsgBridgeReceive): Promise; - addCreditType(request: MsgAddCreditType): Promise; - setClassCreatorAllowlist(request: MsgSetClassCreatorAllowlist): Promise; - addClassCreator(request: MsgAddClassCreator): Promise; - removeClassCreator(request: MsgRemoveClassCreator): Promise; - updateClassFee(request: MsgUpdateClassFee): Promise; - addAllowedBridgeChain(request: MsgAddAllowedBridgeChain): Promise; - removeAllowedBridgeChain(request: MsgRemoveAllowedBridgeChain): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js deleted file mode 100644 index 5526cd7a..00000000 --- a/packages/api/dist/regen/ecocredit/v1/tx.rpc.msg.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createProject = this.createProject.bind(this); - this.createBatch = this.createBatch.bind(this); - this.mintBatchCredits = this.mintBatchCredits.bind(this); - this.sealBatch = this.sealBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - this.updateProjectAdmin = this.updateProjectAdmin.bind(this); - this.updateProjectMetadata = this.updateProjectMetadata.bind(this); - this.updateBatchMetadata = this.updateBatchMetadata.bind(this); - this.bridge = this.bridge.bind(this); - this.bridgeReceive = this.bridgeReceive.bind(this); - this.addCreditType = this.addCreditType.bind(this); - this.setClassCreatorAllowlist = this.setClassCreatorAllowlist.bind(this); - this.addClassCreator = this.addClassCreator.bind(this); - this.removeClassCreator = this.removeClassCreator.bind(this); - this.updateClassFee = this.updateClassFee.bind(this); - this.addAllowedBridgeChain = this.addAllowedBridgeChain.bind(this); - this.removeAllowedBridgeChain = this.removeAllowedBridgeChain.bind(this); - } - createClass(request) { - const data = tx_1.MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateClass", data); - return promise.then(data => tx_1.MsgCreateClassResponse.decode(new binary_1.BinaryReader(data))); - } - createProject(request) { - const data = tx_1.MsgCreateProject.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateProject", data); - return promise.then(data => tx_1.MsgCreateProjectResponse.decode(new binary_1.BinaryReader(data))); - } - createBatch(request) { - const data = tx_1.MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "CreateBatch", data); - return promise.then(data => tx_1.MsgCreateBatchResponse.decode(new binary_1.BinaryReader(data))); - } - mintBatchCredits(request) { - const data = tx_1.MsgMintBatchCredits.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "MintBatchCredits", data); - return promise.then(data => tx_1.MsgMintBatchCreditsResponse.decode(new binary_1.BinaryReader(data))); - } - sealBatch(request) { - const data = tx_1.MsgSealBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SealBatch", data); - return promise.then(data => tx_1.MsgSealBatchResponse.decode(new binary_1.BinaryReader(data))); - } - send(request) { - const data = tx_1.MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Send", data); - return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); - } - retire(request) { - const data = tx_1.MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Retire", data); - return promise.then(data => tx_1.MsgRetireResponse.decode(new binary_1.BinaryReader(data))); - } - cancel(request) { - const data = tx_1.MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Cancel", data); - return promise.then(data => tx_1.MsgCancelResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassAdmin(request) { - const data = tx_1.MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassAdmin", data); - return promise.then(data => tx_1.MsgUpdateClassAdminResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassIssuers(request) { - const data = tx_1.MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassIssuers", data); - return promise.then(data => tx_1.MsgUpdateClassIssuersResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassMetadata(request) { - const data = tx_1.MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassMetadata", data); - return promise.then(data => tx_1.MsgUpdateClassMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - updateProjectAdmin(request) { - const data = tx_1.MsgUpdateProjectAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectAdmin", data); - return promise.then(data => tx_1.MsgUpdateProjectAdminResponse.decode(new binary_1.BinaryReader(data))); - } - updateProjectMetadata(request) { - const data = tx_1.MsgUpdateProjectMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateProjectMetadata", data); - return promise.then(data => tx_1.MsgUpdateProjectMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - updateBatchMetadata(request) { - const data = tx_1.MsgUpdateBatchMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateBatchMetadata", data); - return promise.then(data => tx_1.MsgUpdateBatchMetadataResponse.decode(new binary_1.BinaryReader(data))); - } - bridge(request) { - const data = tx_1.MsgBridge.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "Bridge", data); - return promise.then(data => tx_1.MsgBridgeResponse.decode(new binary_1.BinaryReader(data))); - } - bridgeReceive(request) { - const data = tx_1.MsgBridgeReceive.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "BridgeReceive", data); - return promise.then(data => tx_1.MsgBridgeReceiveResponse.decode(new binary_1.BinaryReader(data))); - } - addCreditType(request) { - const data = tx_1.MsgAddCreditType.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddCreditType", data); - return promise.then(data => tx_1.MsgAddCreditTypeResponse.decode(new binary_1.BinaryReader(data))); - } - setClassCreatorAllowlist(request) { - const data = tx_1.MsgSetClassCreatorAllowlist.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "SetClassCreatorAllowlist", data); - return promise.then(data => tx_1.MsgSetClassCreatorAllowlistResponse.decode(new binary_1.BinaryReader(data))); - } - addClassCreator(request) { - const data = tx_1.MsgAddClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddClassCreator", data); - return promise.then(data => tx_1.MsgAddClassCreatorResponse.decode(new binary_1.BinaryReader(data))); - } - removeClassCreator(request) { - const data = tx_1.MsgRemoveClassCreator.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveClassCreator", data); - return promise.then(data => tx_1.MsgRemoveClassCreatorResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassFee(request) { - const data = tx_1.MsgUpdateClassFee.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "UpdateClassFee", data); - return promise.then(data => tx_1.MsgUpdateClassFeeResponse.decode(new binary_1.BinaryReader(data))); - } - addAllowedBridgeChain(request) { - const data = tx_1.MsgAddAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "AddAllowedBridgeChain", data); - return promise.then(data => tx_1.MsgAddAllowedBridgeChainResponse.decode(new binary_1.BinaryReader(data))); - } - removeAllowedBridgeChain(request) { - const data = tx_1.MsgRemoveAllowedBridgeChain.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1.Msg", "RemoveAllowedBridgeChain", data); - return promise.then(data => tx_1.MsgRemoveAllowedBridgeChainResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/v1/types.d.ts b/packages/api/dist/regen/ecocredit/v1/types.d.ts deleted file mode 100644 index 08f6b583..00000000 --- a/packages/api/dist/regen/ecocredit/v1/types.d.ts +++ /dev/null @@ -1,493 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { CreditType, CreditTypeAmino, CreditTypeSDKType } from "./state"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - creditClassFee: Coin[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basketFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlistEnabled: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowedDenoms: AllowedDenom[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowedBridgeChains: string[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** - * credit_class_fee is a list of credit class creation fees accepted when - * creating a credit class. Any fee listed is accepted and charged to the - * credit class creator when creating a credit class. - */ - credit_class_fee?: CoinAmino[]; - /** - * basket_fee is a list of basket creation fees accepted when creating a - * basket. Any fee listed is accepted and charged to the basket creator when - * creating a basket. - */ - basket_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with the - * required permissions to create credit classes when allowlist_enabled is set - * to true. If allowlist_enabled is set to false, this list has no effect. - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled determines whether or not the allowlist for creating - * credit classes is enabled. When set to true, only the addresses listed in - * allowed_class_creators can create credit classes. When set to false, any - * address can create credit classes. - */ - allowlist_enabled?: boolean; - /** - * allowed_denoms is a list of bank denoms allowed to be used in the ask price - * of sell orders. - * - * Since Revision 2 - */ - allowed_denoms?: AllowedDenomAmino[]; - /** - * AllowedBridgeChains is a list of chain names that are allowed to be used in - * bridge operations. - * - * Since Revision 2 - */ - allowed_bridge_chains?: string[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - basket_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - allowed_denoms: AllowedDenomSDKType[]; - allowed_bridge_chains: string[]; -} -/** Credits represents a simple structure for credits. */ -export interface Credits { - /** batch_denom is the denom of the credit batch. */ - batchDenom: string; - /** amount is the amount of credits. */ - amount: string; -} -export interface CreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1.Credits"; - value: Uint8Array; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsAmino { - /** batch_denom is the denom of the credit batch. */ - batch_denom?: string; - /** amount is the amount of credits. */ - amount?: string; -} -export interface CreditsAminoMsg { - type: "/regen.ecocredit.v1.Credits"; - value: CreditsAmino; -} -/** Credits represents a simple structure for credits. */ -export interface CreditsSDKType { - batch_denom: string; - amount: string; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuance { - /** recipient is the address of the account receiving the issued credits. */ - recipient: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradableAmount: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retiredAmount: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirementJurisdiction: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirementReason: string; -} -export interface BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1.BatchIssuance"; - value: Uint8Array; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceAmino { - /** recipient is the address of the account receiving the issued credits. */ - recipient?: string; - /** - * tradable_amount is the amount of credits that the recipient will receive in - * a tradable state. The number of decimal places must be less than or equal - * to the credit type precision. - */ - tradable_amount?: string; - /** - * retired_amount is the amount of credits that the recipient will receive in - * a retired state. The number of decimal places must be less than or equal to - * the credit type precision. - */ - retired_amount?: string; - /** - * retirement_jurisdiction is the jurisdiction of the recipient and is only - * required if retired_amount is positive. A jurisdiction has the following - * format: [-[ ]] - * The country-code must be 2 alphabetic characters, the sub-national-code - * can be 1-3 alphanumeric characters, and the postal-code can be up to 64 - * alphanumeric characters. Only the country-code is required, while the - * sub-national-code and postal-code are optional and can be added for - * increased precision. - */ - retirement_jurisdiction?: string; - /** - * retirement_reason is any arbitrary string that specifies the reason for - * retiring credits. The reason will be included in EventRetire and is not - * stored in state. - * - * Since Revision 2 - */ - retirement_reason?: string; -} -export interface BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1.BatchIssuance"; - value: BatchIssuanceAmino; -} -/** BatchIssuance represents a simple structure for a credit batch issuance. */ -export interface BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_jurisdiction: string; - retirement_reason: string; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTx { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note: string; -} -export interface OriginTxProtoMsg { - typeUrl: "/regen.ecocredit.v1.OriginTx"; - value: Uint8Array; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxAmino { - /** - * id is the transaction ID of an originating transaction or operation based - * on a type (i.e. transaction ID, serial number). - */ - id?: string; - /** - * source is the source chain or registry of the transaction originating the - * mint process (e.g. polygon, ethereum, verra). - */ - source?: string; - /** - * contract is the address of the contract on the source chain that was - * executed when creating the transaction. This address will be stored in - * state separately from the origin tx and on a per credit batch basis to be - * used when sending credits back to the source chain. This field can be left - * blank if credits are bridged from a non-contract-based source. - */ - contract?: string; - /** - * note is a reference note for accounting that will be included in an event - * emitted from either Msg/CreateBatch or Msg/MintBatchCredits. - */ - note?: string; -} -export interface OriginTxAminoMsg { - type: "/regen.ecocredit.v1.OriginTx"; - value: OriginTxAmino; -} -/** - * OriginTx is the transaction from another chain or registry that triggered - * the minting of credits. - */ -export interface OriginTxSDKType { - id: string; - source: string; - contract: string; - note: string; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposal { - /** title is the title of the proposal. */ - title: string; - /** description is the description of the proposal. */ - description: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - creditType?: CreditType; -} -export interface CreditTypeProposalProtoMsg { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal"; - value: Uint8Array; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalAmino { - /** title is the title of the proposal. */ - title?: string; - /** description is the description of the proposal. */ - description?: string; - /** - * credit_type is the credit type to be added to the network if the proposal - * passes. - */ - credit_type?: CreditTypeAmino; -} -export interface CreditTypeProposalAminoMsg { - type: "/regen.ecocredit.v1.CreditTypeProposal"; - value: CreditTypeProposalAmino; -} -/** - * CreditTypeProposal is a gov Content type for adding a credit type. - * Deprecated (Since Revision 2): This message is no longer used and will be - * removed in the next version. See MsgAddCreditType. - */ -export interface CreditTypeProposalSDKType { - title: string; - description: string; - credit_type?: CreditTypeSDKType; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenom { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bankDenom: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - displayDenom: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent: number; -} -export interface AllowedDenomProtoMsg { - typeUrl: "/regen.ecocredit.v1.AllowedDenom"; - value: Uint8Array; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomAmino { - /** denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) */ - bank_denom?: string; - /** - * display_denom is the denom to display to the user and is informational. - * Because the denom is likely an IBC denom, this should be chosen by - * governance to represent the consensus trusted name of the denom. - */ - display_denom?: string; - /** - * exponent is the exponent that relates the denom to the display_denom and is - * informational - */ - exponent?: number; -} -export interface AllowedDenomAminoMsg { - type: "/regen.ecocredit.v1.AllowedDenom"; - value: AllowedDenomAmino; -} -/** - * AllowedDenom represents the information for an allowed ask denom. - * - * Since Revision 2 - * - * Deprecated(Since Revision 2): This type was added to support historical - * queries for params but will also be removed in the next version. - */ -export interface AllowedDenomSDKType { - bank_denom: string; - display_denom: string; - exponent: number; -} -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const Credits: { - typeUrl: string; - encode(message: Credits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Credits; - fromPartial(object: Partial): Credits; - fromAmino(object: CreditsAmino): Credits; - toAmino(message: Credits): CreditsAmino; - fromAminoMsg(object: CreditsAminoMsg): Credits; - fromProtoMsg(message: CreditsProtoMsg): Credits; - toProto(message: Credits): Uint8Array; - toProtoMsg(message: Credits): CreditsProtoMsg; -}; -export declare const BatchIssuance: { - typeUrl: string; - encode(message: BatchIssuance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchIssuance; - fromPartial(object: Partial): BatchIssuance; - fromAmino(object: BatchIssuanceAmino): BatchIssuance; - toAmino(message: BatchIssuance): BatchIssuanceAmino; - fromAminoMsg(object: BatchIssuanceAminoMsg): BatchIssuance; - fromProtoMsg(message: BatchIssuanceProtoMsg): BatchIssuance; - toProto(message: BatchIssuance): Uint8Array; - toProtoMsg(message: BatchIssuance): BatchIssuanceProtoMsg; -}; -export declare const OriginTx: { - typeUrl: string; - encode(message: OriginTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): OriginTx; - fromPartial(object: Partial): OriginTx; - fromAmino(object: OriginTxAmino): OriginTx; - toAmino(message: OriginTx): OriginTxAmino; - fromAminoMsg(object: OriginTxAminoMsg): OriginTx; - fromProtoMsg(message: OriginTxProtoMsg): OriginTx; - toProto(message: OriginTx): Uint8Array; - toProtoMsg(message: OriginTx): OriginTxProtoMsg; -}; -export declare const CreditTypeProposal: { - typeUrl: string; - encode(message: CreditTypeProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeProposal; - fromPartial(object: Partial): CreditTypeProposal; - fromAmino(object: CreditTypeProposalAmino): CreditTypeProposal; - toAmino(message: CreditTypeProposal): CreditTypeProposalAmino; - fromAminoMsg(object: CreditTypeProposalAminoMsg): CreditTypeProposal; - fromProtoMsg(message: CreditTypeProposalProtoMsg): CreditTypeProposal; - toProto(message: CreditTypeProposal): Uint8Array; - toProtoMsg(message: CreditTypeProposal): CreditTypeProposalProtoMsg; -}; -export declare const AllowedDenom: { - typeUrl: string; - encode(message: AllowedDenom, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): AllowedDenom; - fromPartial(object: Partial): AllowedDenom; - fromAmino(object: AllowedDenomAmino): AllowedDenom; - toAmino(message: AllowedDenom): AllowedDenomAmino; - fromAminoMsg(object: AllowedDenomAminoMsg): AllowedDenom; - fromProtoMsg(message: AllowedDenomProtoMsg): AllowedDenom; - toProto(message: AllowedDenom): Uint8Array; - toProtoMsg(message: AllowedDenom): AllowedDenomProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1/types.js b/packages/api/dist/regen/ecocredit/v1/types.js deleted file mode 100644 index 9de74ae9..00000000 --- a/packages/api/dist/regen/ecocredit/v1/types.js +++ /dev/null @@ -1,604 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllowedDenom = exports.CreditTypeProposal = exports.OriginTx = exports.BatchIssuance = exports.Credits = exports.Params = void 0; -//@ts-nocheck -const coin_1 = require("../../../cosmos/base/v1beta1/coin"); -const state_1 = require("./state"); -const binary_1 = require("../../../binary"); -function createBaseParams() { - return { - creditClassFee: [], - basketFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - allowedDenoms: [], - allowedBridgeChains: [] - }; -} -exports.Params = { - typeUrl: "/regen.ecocredit.v1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.creditClassFee) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.basketFee) { - coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(26).string(v); - } - if (message.allowlistEnabled === true) { - writer.uint32(32).bool(message.allowlistEnabled); - } - for (const v of message.allowedDenoms) { - exports.AllowedDenom.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.allowedBridgeChains) { - writer.uint32(50).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.basketFee.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 3: - message.allowedClassCreators.push(reader.string()); - break; - case 4: - message.allowlistEnabled = reader.bool(); - break; - case 5: - message.allowedDenoms.push(exports.AllowedDenom.decode(reader, reader.uint32())); - break; - case 6: - message.allowedBridgeChains.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.basketFee = object.basketFee?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.allowedDenoms = object.allowedDenoms?.map(e => exports.AllowedDenom.fromPartial(e)) || []; - message.allowedBridgeChains = object.allowedBridgeChains?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.basketFee = object.basket_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.allowedDenoms = object.allowed_denoms?.map(e => exports.AllowedDenom.fromAmino(e)) || []; - message.allowedBridgeChains = object.allowed_bridge_chains?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.basketFee) { - obj.basket_fee = message.basketFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.basket_fee = message.basketFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } - else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.allowedDenoms) { - obj.allowed_denoms = message.allowedDenoms.map(e => e ? exports.AllowedDenom.toAmino(e) : undefined); - } - else { - obj.allowed_denoms = message.allowedDenoms; - } - if (message.allowedBridgeChains) { - obj.allowed_bridge_chains = message.allowedBridgeChains.map(e => e); - } - else { - obj.allowed_bridge_chains = message.allowedBridgeChains; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; -function createBaseCredits() { - return { - batchDenom: "", - amount: "" - }; -} -exports.Credits = { - typeUrl: "/regen.ecocredit.v1.Credits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.Credits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Credits.decode(message.value); - }, - toProto(message) { - return exports.Credits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.Credits", - value: exports.Credits.encode(message).finish() - }; - } -}; -function createBaseBatchIssuance() { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementJurisdiction: "", - retirementReason: "" - }; -} -exports.BatchIssuance = { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementJurisdiction !== "") { - writer.uint32(34).string(message.retirementJurisdiction); - } - if (message.retirementReason !== "") { - writer.uint32(42).string(message.retirementReason); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementJurisdiction = reader.string(); - break; - case 5: - message.retirementReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementJurisdiction = object.retirementJurisdiction ?? ""; - message.retirementReason = object.retirementReason ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_jurisdiction !== undefined && object.retirement_jurisdiction !== null) { - message.retirementJurisdiction = object.retirement_jurisdiction; - } - if (object.retirement_reason !== undefined && object.retirement_reason !== null) { - message.retirementReason = object.retirement_reason; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_jurisdiction = message.retirementJurisdiction === "" ? undefined : message.retirementJurisdiction; - obj.retirement_reason = message.retirementReason === "" ? undefined : message.retirementReason; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchIssuance.decode(message.value); - }, - toProto(message) { - return exports.BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.BatchIssuance", - value: exports.BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseOriginTx() { - return { - id: "", - source: "", - contract: "", - note: "" - }; -} -exports.OriginTx = { - typeUrl: "/regen.ecocredit.v1.OriginTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.source !== "") { - writer.uint32(18).string(message.source); - } - if (message.contract !== "") { - writer.uint32(26).string(message.contract); - } - if (message.note !== "") { - writer.uint32(34).string(message.note); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOriginTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.source = reader.string(); - break; - case 3: - message.contract = reader.string(); - break; - case 4: - message.note = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseOriginTx(); - message.id = object.id ?? ""; - message.source = object.source ?? ""; - message.contract = object.contract ?? ""; - message.note = object.note ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseOriginTx(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.source !== undefined && object.source !== null) { - message.source = object.source; - } - if (object.contract !== undefined && object.contract !== null) { - message.contract = object.contract; - } - if (object.note !== undefined && object.note !== null) { - message.note = object.note; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.source = message.source === "" ? undefined : message.source; - obj.contract = message.contract === "" ? undefined : message.contract; - obj.note = message.note === "" ? undefined : message.note; - return obj; - }, - fromAminoMsg(object) { - return exports.OriginTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.OriginTx.decode(message.value); - }, - toProto(message) { - return exports.OriginTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.OriginTx", - value: exports.OriginTx.encode(message).finish() - }; - } -}; -function createBaseCreditTypeProposal() { - return { - title: "", - description: "", - creditType: undefined - }; -} -exports.CreditTypeProposal = { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - if (message.creditType !== undefined) { - state_1.CreditType.encode(message.creditType, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.creditType = state_1.CreditType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditTypeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.creditType = object.creditType !== undefined && object.creditType !== null ? state_1.CreditType.fromPartial(object.creditType) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseCreditTypeProposal(); - if (object.title !== undefined && object.title !== null) { - message.title = object.title; - } - if (object.description !== undefined && object.description !== null) { - message.description = object.description; - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = state_1.CreditType.fromAmino(object.credit_type); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.title = message.title === "" ? undefined : message.title; - obj.description = message.description === "" ? undefined : message.description; - obj.credit_type = message.creditType ? state_1.CreditType.toAmino(message.creditType) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.CreditTypeProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CreditTypeProposal.decode(message.value); - }, - toProto(message) { - return exports.CreditTypeProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.CreditTypeProposal", - value: exports.CreditTypeProposal.encode(message).finish() - }; - } -}; -function createBaseAllowedDenom() { - return { - bankDenom: "", - displayDenom: "", - exponent: 0 - }; -} -exports.AllowedDenom = { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bankDenom !== "") { - writer.uint32(10).string(message.bankDenom); - } - if (message.displayDenom !== "") { - writer.uint32(18).string(message.displayDenom); - } - if (message.exponent !== 0) { - writer.uint32(24).uint32(message.exponent); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedDenom(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bankDenom = reader.string(); - break; - case 2: - message.displayDenom = reader.string(); - break; - case 3: - message.exponent = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseAllowedDenom(); - message.bankDenom = object.bankDenom ?? ""; - message.displayDenom = object.displayDenom ?? ""; - message.exponent = object.exponent ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseAllowedDenom(); - if (object.bank_denom !== undefined && object.bank_denom !== null) { - message.bankDenom = object.bank_denom; - } - if (object.display_denom !== undefined && object.display_denom !== null) { - message.displayDenom = object.display_denom; - } - if (object.exponent !== undefined && object.exponent !== null) { - message.exponent = object.exponent; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.bank_denom = message.bankDenom === "" ? undefined : message.bankDenom; - obj.display_denom = message.displayDenom === "" ? undefined : message.displayDenom; - obj.exponent = message.exponent === 0 ? undefined : message.exponent; - return obj; - }, - fromAminoMsg(object) { - return exports.AllowedDenom.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.AllowedDenom.decode(message.value); - }, - toProto(message) { - return exports.AllowedDenom.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1.AllowedDenom", - value: exports.AllowedDenom.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts deleted file mode 100644 index 98efc6a1..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/events.d.ts +++ /dev/null @@ -1,357 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClass { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; -} -export interface EventCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: Uint8Array; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; -} -export interface EventCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateClass"; - value: EventCreateClassAmino; -} -/** EventCreateClass is an event emitted when a credit class is created. */ -export interface EventCreateClassSDKType { - class_id: string; - admin: string; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatch { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer: string; - /** total_amount is the total number of credits in the credit batch. */ - totalAmount: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface EventCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: Uint8Array; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the account address of the issuer of the credit batch. */ - issuer?: string; - /** total_amount is the total number of credits in the credit batch. */ - total_amount?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface EventCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCreateBatch"; - value: EventCreateBatchAmino; -} -/** EventCreateBatch is an event emitted when a credit batch is created. */ -export interface EventCreateBatchSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - start_date: string; - end_date: string; - project_location: string; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceive { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender: string; - /** recipient is the recipient of the credits. */ - recipient: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits received. */ - retiredAmount: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basketDenom: string; -} -export interface EventReceiveProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive"; - value: Uint8Array; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveAmino { - /** - * sender is the sender of the credits in the case that this event is the - * result of a transfer. It will not be set when credits are received at - * initial issuance or taken from a basket. - */ - sender?: string; - /** recipient is the recipient of the credits. */ - recipient?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** tradable_amount is the decimal number of tradable credits received. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits received. */ - retired_amount?: string; - /** - * basket_denom is the denom of the basket. when the basket_denom field is - * set, it indicates that this event was triggered by the transfer of credits - * from a basket. It will not be set if the credits were sent by a user, or by - * initial issuance. - */ - basket_denom?: string; -} -export interface EventReceiveAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventReceive"; - value: EventReceiveAmino; -} -/** - * EventReceive is an event emitted when credits are received either via - * creation of a new batch, transfer of credits, or taking credits from a - * basket. Each batch_denom created, transferred or taken from a baset will - * result in a separate EventReceive for easy indexing. - */ -export interface EventReceiveSDKType { - sender: string; - recipient: string; - batch_denom: string; - tradable_amount: string; - retired_amount: string; - basket_denom: string; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetire { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been retired. */ - amount: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface EventRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire"; - value: Uint8Array; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireAmino { - /** - * retirer is the account which has done the "retiring". This will be the - * account receiving credits in the case that credits were retired upon - * issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. - */ - retirer?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been retired. */ - amount?: string; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface EventRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventRetire"; - value: EventRetireAmino; -} -/** - * EventRetire is an event emitted when credits are retired. When credits are - * retired from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventRetireSDKType { - retirer: string; - batch_denom: string; - amount: string; - location: string; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancel { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount: string; -} -export interface EventCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel"; - value: Uint8Array; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelAmino { - /** - * canceller is the account which has cancelled the credits, which should be - * the holder of the credits. - */ - canceller?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** amount is the decimal number of credits that have been cancelled. */ - amount?: string; -} -export interface EventCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.EventCancel"; - value: EventCancelAmino; -} -/** - * EventCancel is an event emitted when credits are cancelled. When credits are - * cancelled from multiple batches in the same transaction, a separate event is - * emitted for each batch_denom. This allows for easier indexing. - */ -export interface EventCancelSDKType { - canceller: string; - batch_denom: string; - amount: string; -} -export declare const EventCreateClass: { - typeUrl: string; - encode(message: EventCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateClass; - fromPartial(object: Partial): EventCreateClass; - fromAmino(object: EventCreateClassAmino): EventCreateClass; - toAmino(message: EventCreateClass): EventCreateClassAmino; - fromAminoMsg(object: EventCreateClassAminoMsg): EventCreateClass; - fromProtoMsg(message: EventCreateClassProtoMsg): EventCreateClass; - toProto(message: EventCreateClass): Uint8Array; - toProtoMsg(message: EventCreateClass): EventCreateClassProtoMsg; -}; -export declare const EventCreateBatch: { - typeUrl: string; - encode(message: EventCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCreateBatch; - fromPartial(object: Partial): EventCreateBatch; - fromAmino(object: EventCreateBatchAmino): EventCreateBatch; - toAmino(message: EventCreateBatch): EventCreateBatchAmino; - fromAminoMsg(object: EventCreateBatchAminoMsg): EventCreateBatch; - fromProtoMsg(message: EventCreateBatchProtoMsg): EventCreateBatch; - toProto(message: EventCreateBatch): Uint8Array; - toProtoMsg(message: EventCreateBatch): EventCreateBatchProtoMsg; -}; -export declare const EventReceive: { - typeUrl: string; - encode(message: EventReceive, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventReceive; - fromPartial(object: Partial): EventReceive; - fromAmino(object: EventReceiveAmino): EventReceive; - toAmino(message: EventReceive): EventReceiveAmino; - fromAminoMsg(object: EventReceiveAminoMsg): EventReceive; - fromProtoMsg(message: EventReceiveProtoMsg): EventReceive; - toProto(message: EventReceive): Uint8Array; - toProtoMsg(message: EventReceive): EventReceiveProtoMsg; -}; -export declare const EventRetire: { - typeUrl: string; - encode(message: EventRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventRetire; - fromPartial(object: Partial): EventRetire; - fromAmino(object: EventRetireAmino): EventRetire; - toAmino(message: EventRetire): EventRetireAmino; - fromAminoMsg(object: EventRetireAminoMsg): EventRetire; - fromProtoMsg(message: EventRetireProtoMsg): EventRetire; - toProto(message: EventRetire): Uint8Array; - toProtoMsg(message: EventRetire): EventRetireProtoMsg; -}; -export declare const EventCancel: { - typeUrl: string; - encode(message: EventCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventCancel; - fromPartial(object: Partial): EventCancel; - fromAmino(object: EventCancelAmino): EventCancel; - toAmino(message: EventCancel): EventCancelAmino; - fromAminoMsg(object: EventCancelAminoMsg): EventCancel; - fromProtoMsg(message: EventCancelProtoMsg): EventCancel; - toProto(message: EventCancel): Uint8Array; - toProtoMsg(message: EventCancel): EventCancelProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/events.js b/packages/api/dist/regen/ecocredit/v1alpha1/events.js deleted file mode 100644 index 9cc0b4bd..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/events.js +++ /dev/null @@ -1,524 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventCancel = exports.EventRetire = exports.EventReceive = exports.EventCreateBatch = exports.EventCreateClass = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseEventCreateClass() { - return { - classId: "", - admin: "" - }; -} -exports.EventCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateClass(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateClass(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreateClass.decode(message.value); - }, - toProto(message) { - return exports.EventCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateClass", - value: exports.EventCreateClass.encode(message).finish() - }; - } -}; -function createBaseEventCreateBatch() { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - startDate: "", - endDate: "", - projectLocation: "" - }; -} -exports.EventCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.startDate !== "") { - writer.uint32(42).string(message.startDate); - } - if (message.endDate !== "") { - writer.uint32(50).string(message.endDate); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.startDate = reader.string(); - break; - case 6: - message.endDate = reader.string(); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCreateBatch(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.startDate = object.startDate ?? ""; - message.endDate = object.endDate ?? ""; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCreateBatch(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = object.start_date; - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = object.end_date; - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.start_date = message.startDate === "" ? undefined : message.startDate; - obj.end_date = message.endDate === "" ? undefined : message.endDate; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCreateBatch.decode(message.value); - }, - toProto(message) { - return exports.EventCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCreateBatch", - value: exports.EventCreateBatch.encode(message).finish() - }; - } -}; -function createBaseEventReceive() { - return { - sender: "", - recipient: "", - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - basketDenom: "" - }; -} -exports.EventReceive = { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - if (message.batchDenom !== "") { - writer.uint32(26).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(34).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(42).string(message.retiredAmount); - } - if (message.basketDenom !== "") { - writer.uint32(50).string(message.basketDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventReceive(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.batchDenom = reader.string(); - break; - case 4: - message.tradableAmount = reader.string(); - break; - case 5: - message.retiredAmount = reader.string(); - break; - case 6: - message.basketDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventReceive(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.basketDenom = object.basketDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventReceive(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.basket_denom !== undefined && object.basket_denom !== null) { - message.basketDenom = object.basket_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.basket_denom = message.basketDenom === "" ? undefined : message.basketDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.EventReceive.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventReceive.decode(message.value); - }, - toProto(message) { - return exports.EventReceive.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventReceive", - value: exports.EventReceive.encode(message).finish() - }; - } -}; -function createBaseEventRetire() { - return { - retirer: "", - batchDenom: "", - amount: "", - location: "" - }; -} -exports.EventRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.retirer !== "") { - writer.uint32(10).string(message.retirer); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - if (message.location !== "") { - writer.uint32(34).string(message.location); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.retirer = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - case 4: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventRetire(); - message.retirer = object.retirer ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventRetire(); - if (object.retirer !== undefined && object.retirer !== null) { - message.retirer = object.retirer; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.retirer = message.retirer === "" ? undefined : message.retirer; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object) { - return exports.EventRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventRetire.decode(message.value); - }, - toProto(message) { - return exports.EventRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventRetire", - value: exports.EventRetire.encode(message).finish() - }; - } -}; -function createBaseEventCancel() { - return { - canceller: "", - batchDenom: "", - amount: "" - }; -} -exports.EventCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.canceller !== "") { - writer.uint32(10).string(message.canceller); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(26).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.canceller = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventCancel(); - message.canceller = object.canceller ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseEventCancel(); - if (object.canceller !== undefined && object.canceller !== null) { - message.canceller = object.canceller; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.canceller = message.canceller === "" ? undefined : message.canceller; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.EventCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventCancel.decode(message.value); - }, - toProto(message) { - return exports.EventCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.EventCancel", - value: exports.EventCancel.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts deleted file mode 100644 index 55155c16..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditTypeSeq, CreditTypeSeqAmino, CreditTypeSeqSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisState { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params: Params; - /** class_info is the list of credit class info. */ - classInfo: ClassInfo[]; - /** batch_info is the list of credit batch info. */ - batchInfo: BatchInfo[]; - /** sequences is the list of credit type sequence. */ - sequences: CreditTypeSeq[]; - /** balances is the list of credit batch tradable/retired units. */ - balances: Balance[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies: Supply[]; -} -export interface GenesisStateProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState"; - value: Uint8Array; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateAmino { - /** - * Params contains the updateable global parameters for use with the x/params - * module - */ - params?: ParamsAmino; - /** class_info is the list of credit class info. */ - class_info?: ClassInfoAmino[]; - /** batch_info is the list of credit batch info. */ - batch_info?: BatchInfoAmino[]; - /** sequences is the list of credit type sequence. */ - sequences?: CreditTypeSeqAmino[]; - /** balances is the list of credit batch tradable/retired units. */ - balances?: BalanceAmino[]; - /** supplies is the list of credit batch tradable/retired supply. */ - supplies?: SupplyAmino[]; -} -export interface GenesisStateAminoMsg { - type: "/regen.ecocredit.v1alpha1.GenesisState"; - value: GenesisStateAmino; -} -/** GenesisState defines ecocredit module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - class_info: ClassInfoSDKType[]; - batch_info: BatchInfoSDKType[]; - sequences: CreditTypeSeqSDKType[]; - balances: BalanceSDKType[]; - supplies: SupplySDKType[]; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface Balance { - /** address is the account address of the account holding credits. */ - address: string; - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradableBalance: string; - /** retired_balance is the retired balance of the credit batch. */ - retiredBalance: string; -} -export interface BalanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Balance"; - value: Uint8Array; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceAmino { - /** address is the account address of the account holding credits. */ - address?: string; - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_balance is the tradable balance of the credit batch. */ - tradable_balance?: string; - /** retired_balance is the retired balance of the credit batch. */ - retired_balance?: string; -} -export interface BalanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.Balance"; - value: BalanceAmino; -} -/** - * Balance represents tradable or retired units of a credit batch with an - * account address, batch_denom, and balance. - */ -export interface BalanceSDKType { - address: string; - batch_denom: string; - tradable_balance: string; - retired_balance: string; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface Supply { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradableSupply: string; - /** retired_supply is the retired supply of the credit batch. */ - retiredSupply: string; -} -export interface SupplyProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Supply"; - value: Uint8Array; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplyAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** tradable_supply is the tradable supply of the credit batch. */ - tradable_supply?: string; - /** retired_supply is the retired supply of the credit batch. */ - retired_supply?: string; -} -export interface SupplyAminoMsg { - type: "/regen.ecocredit.v1alpha1.Supply"; - value: SupplyAmino; -} -/** Supply represents a tradable or retired supply of a credit batch. */ -export interface SupplySDKType { - batch_denom: string; - tradable_supply: string; - retired_supply: string; -} -export declare const GenesisState: { - typeUrl: string; - encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; - fromPartial(object: Partial): GenesisState; - fromAmino(object: GenesisStateAmino): GenesisState; - toAmino(message: GenesisState): GenesisStateAmino; - fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; - fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; - toProto(message: GenesisState): Uint8Array; - toProtoMsg(message: GenesisState): GenesisStateProtoMsg; -}; -export declare const Balance: { - typeUrl: string; - encode(message: Balance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Balance; - fromPartial(object: Partial): Balance; - fromAmino(object: BalanceAmino): Balance; - toAmino(message: Balance): BalanceAmino; - fromAminoMsg(object: BalanceAminoMsg): Balance; - fromProtoMsg(message: BalanceProtoMsg): Balance; - toProto(message: Balance): Uint8Array; - toProtoMsg(message: Balance): BalanceProtoMsg; -}; -export declare const Supply: { - typeUrl: string; - encode(message: Supply, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Supply; - fromPartial(object: Partial): Supply; - fromAmino(object: SupplyAmino): Supply; - toAmino(message: Supply): SupplyAmino; - fromAminoMsg(object: SupplyAminoMsg): Supply; - fromProtoMsg(message: SupplyProtoMsg): Supply; - toProto(message: Supply): Uint8Array; - toProtoMsg(message: Supply): SupplyProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js b/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js deleted file mode 100644 index 4447214c..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/genesis.js +++ /dev/null @@ -1,330 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Supply = exports.Balance = exports.GenesisState = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const binary_1 = require("../../../binary"); -function createBaseGenesisState() { - return { - params: types_1.Params.fromPartial({}), - classInfo: [], - batchInfo: [], - sequences: [], - balances: [], - supplies: [] - }; -} -exports.GenesisState = { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.classInfo) { - types_1.ClassInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.batchInfo) { - types_1.BatchInfo.encode(v, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.sequences) { - types_1.CreditTypeSeq.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.balances) { - exports.Balance.encode(v, writer.uint32(42).fork()).ldelim(); - } - for (const v of message.supplies) { - exports.Supply.encode(v, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = types_1.Params.decode(reader, reader.uint32()); - break; - case 2: - message.classInfo.push(types_1.ClassInfo.decode(reader, reader.uint32())); - break; - case 3: - message.batchInfo.push(types_1.BatchInfo.decode(reader, reader.uint32())); - break; - case 4: - message.sequences.push(types_1.CreditTypeSeq.decode(reader, reader.uint32())); - break; - case 5: - message.balances.push(exports.Balance.decode(reader, reader.uint32())); - break; - case 6: - message.supplies.push(exports.Supply.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; - message.classInfo = object.classInfo?.map(e => types_1.ClassInfo.fromPartial(e)) || []; - message.batchInfo = object.batchInfo?.map(e => types_1.BatchInfo.fromPartial(e)) || []; - message.sequences = object.sequences?.map(e => types_1.CreditTypeSeq.fromPartial(e)) || []; - message.balances = object.balances?.map(e => exports.Balance.fromPartial(e)) || []; - message.supplies = object.supplies?.map(e => exports.Supply.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseGenesisState(); - if (object.params !== undefined && object.params !== null) { - message.params = types_1.Params.fromAmino(object.params); - } - message.classInfo = object.class_info?.map(e => types_1.ClassInfo.fromAmino(e)) || []; - message.batchInfo = object.batch_info?.map(e => types_1.BatchInfo.fromAmino(e)) || []; - message.sequences = object.sequences?.map(e => types_1.CreditTypeSeq.fromAmino(e)) || []; - message.balances = object.balances?.map(e => exports.Balance.fromAmino(e)) || []; - message.supplies = object.supplies?.map(e => exports.Supply.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; - if (message.classInfo) { - obj.class_info = message.classInfo.map(e => e ? types_1.ClassInfo.toAmino(e) : undefined); - } - else { - obj.class_info = message.classInfo; - } - if (message.batchInfo) { - obj.batch_info = message.batchInfo.map(e => e ? types_1.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batch_info = message.batchInfo; - } - if (message.sequences) { - obj.sequences = message.sequences.map(e => e ? types_1.CreditTypeSeq.toAmino(e) : undefined); - } - else { - obj.sequences = message.sequences; - } - if (message.balances) { - obj.balances = message.balances.map(e => e ? exports.Balance.toAmino(e) : undefined); - } - else { - obj.balances = message.balances; - } - if (message.supplies) { - obj.supplies = message.supplies.map(e => e ? exports.Supply.toAmino(e) : undefined); - } - else { - obj.supplies = message.supplies; - } - return obj; - }, - fromAminoMsg(object) { - return exports.GenesisState.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.GenesisState.decode(message.value); - }, - toProto(message) { - return exports.GenesisState.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.GenesisState", - value: exports.GenesisState.encode(message).finish() - }; - } -}; -function createBaseBalance() { - return { - address: "", - batchDenom: "", - tradableBalance: "", - retiredBalance: "" - }; -} -exports.Balance = { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.tradableBalance !== "") { - writer.uint32(26).string(message.tradableBalance); - } - if (message.retiredBalance !== "") { - writer.uint32(34).string(message.retiredBalance); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBalance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.tradableBalance = reader.string(); - break; - case 4: - message.retiredBalance = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBalance(); - message.address = object.address ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.tradableBalance = object.tradableBalance ?? ""; - message.retiredBalance = object.retiredBalance ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBalance(); - if (object.address !== undefined && object.address !== null) { - message.address = object.address; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_balance !== undefined && object.tradable_balance !== null) { - message.tradableBalance = object.tradable_balance; - } - if (object.retired_balance !== undefined && object.retired_balance !== null) { - message.retiredBalance = object.retired_balance; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address === "" ? undefined : message.address; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_balance = message.tradableBalance === "" ? undefined : message.tradableBalance; - obj.retired_balance = message.retiredBalance === "" ? undefined : message.retiredBalance; - return obj; - }, - fromAminoMsg(object) { - return exports.Balance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Balance.decode(message.value); - }, - toProto(message) { - return exports.Balance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Balance", - value: exports.Balance.encode(message).finish() - }; - } -}; -function createBaseSupply() { - return { - batchDenom: "", - tradableSupply: "", - retiredSupply: "" - }; -} -exports.Supply = { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableSupply !== "") { - writer.uint32(18).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(26).string(message.retiredSupply); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSupply(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableSupply = reader.string(); - break; - case 3: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSupply(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseSupply(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object) { - return exports.Supply.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Supply.decode(message.value); - }, - toProto(message) { - return exports.Supply.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Supply", - value: exports.Supply.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts deleted file mode 100644 index 5e311b47..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.d.ts +++ /dev/null @@ -1,579 +0,0 @@ -import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination"; -import { Params, ParamsAmino, ParamsSDKType, ClassInfo, ClassInfoAmino, ClassInfoSDKType, BatchInfo, BatchInfoAmino, BatchInfoSDKType, CreditType, CreditTypeAmino, CreditTypeSDKType } from "./types"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequest { -} -export interface QueryParamsRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: Uint8Array; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestAmino { -} -export interface QueryParamsRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsRequest"; - value: QueryParamsRequestAmino; -} -/** QueryParamsRequest is the Query/Params request type. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponse { - /** params defines the parameters of the ecocredit module. */ - params?: Params; -} -export interface QueryParamsResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: Uint8Array; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseAmino { - /** params defines the parameters of the ecocredit module. */ - params?: ParamsAmino; -} -export interface QueryParamsResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryParamsResponse"; - value: QueryParamsResponseAmino; -} -/** QueryParamsResponse is the Query/Params response type. */ -export interface QueryParamsResponseSDKType { - params?: ParamsSDKType; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryClassesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: Uint8Array; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestAmino { - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryClassesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesRequest"; - value: QueryClassesRequestAmino; -} -/** QueryClassesRequest is the Query/Classes request type. */ -export interface QueryClassesRequestSDKType { - pagination?: PageRequestSDKType; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponse { - /** classes are the fetched credit classes. */ - classes: ClassInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryClassesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: Uint8Array; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseAmino { - /** classes are the fetched credit classes. */ - classes?: ClassInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryClassesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassesResponse"; - value: QueryClassesResponseAmino; -} -/** QueryClassesResponse is the Query/Classes response type. */ -export interface QueryClassesResponseSDKType { - classes: ClassInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequest { - /** class_id is the unique ID of credit class to query. */ - classId: string; -} -export interface QueryClassInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: Uint8Array; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestAmino { - /** class_id is the unique ID of credit class to query. */ - class_id?: string; -} -export interface QueryClassInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest"; - value: QueryClassInfoRequestAmino; -} -/** QueryClassInfoRequest is the Query/ClassInfo request type. */ -export interface QueryClassInfoRequestSDKType { - class_id: string; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponse { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfo; -} -export interface QueryClassInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: Uint8Array; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseAmino { - /** info is the ClassInfo for the credit class. */ - info?: ClassInfoAmino; -} -export interface QueryClassInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse"; - value: QueryClassInfoResponseAmino; -} -/** QueryClassInfoResponse is the Query/ClassInfo request type. */ -export interface QueryClassInfoResponseSDKType { - info?: ClassInfoSDKType; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequest { - /** class_id is the unique ID of the credit class to query. */ - classId: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequest; -} -export interface QueryBatchesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: Uint8Array; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestAmino { - /** class_id is the unique ID of the credit class to query. */ - class_id?: string; - /** pagination defines an optional pagination for the request. */ - pagination?: PageRequestAmino; -} -export interface QueryBatchesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesRequest"; - value: QueryBatchesRequestAmino; -} -/** QueryBatchesRequest is the Query/Batches request type. */ -export interface QueryBatchesRequestSDKType { - class_id: string; - pagination?: PageRequestSDKType; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponse { - /** batches are the fetched credit batches within the class. */ - batches: BatchInfo[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponse; -} -export interface QueryBatchesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: Uint8Array; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseAmino { - /** batches are the fetched credit batches within the class. */ - batches?: BatchInfoAmino[]; - /** pagination defines the pagination in the response. */ - pagination?: PageResponseAmino; -} -export interface QueryBatchesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchesResponse"; - value: QueryBatchesResponseAmino; -} -/** QueryBatchesResponse is the Query/Batches response type. */ -export interface QueryBatchesResponseSDKType { - batches: BatchInfoSDKType[]; - pagination?: PageResponseSDKType; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QueryBatchInfoRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: Uint8Array; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QueryBatchInfoRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest"; - value: QueryBatchInfoRequestAmino; -} -/** QueryBatchInfoRequest is the Query/BatchInfo request type. */ -export interface QueryBatchInfoRequestSDKType { - batch_denom: string; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponse { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfo; -} -export interface QueryBatchInfoResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: Uint8Array; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseAmino { - /** info is the BatchInfo for the credit batch. */ - info?: BatchInfoAmino; -} -export interface QueryBatchInfoResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse"; - value: QueryBatchInfoResponseAmino; -} -/** QueryBatchInfoResponse is the Query/BatchInfo response type. */ -export interface QueryBatchInfoResponseSDKType { - info?: BatchInfoSDKType; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequest { - /** account is the address of the account whose balance is being queried. */ - account: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batchDenom: string; -} -export interface QueryBalanceRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: Uint8Array; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestAmino { - /** account is the address of the account whose balance is being queried. */ - account?: string; - /** batch_denom is the unique ID of credit batch balance to query. */ - batch_denom?: string; -} -export interface QueryBalanceRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceRequest"; - value: QueryBalanceRequestAmino; -} -/** QueryBalanceRequest is the Query/Balance request type. */ -export interface QueryBalanceRequestSDKType { - account: string; - batch_denom: string; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponse { - /** tradable_amount is the decimal number of tradable credits. */ - tradableAmount: string; - /** retired_amount is the decimal number of retired credits. */ - retiredAmount: string; -} -export interface QueryBalanceResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: Uint8Array; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseAmino { - /** tradable_amount is the decimal number of tradable credits. */ - tradable_amount?: string; - /** retired_amount is the decimal number of retired credits. */ - retired_amount?: string; -} -export interface QueryBalanceResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryBalanceResponse"; - value: QueryBalanceResponseAmino; -} -/** QueryBalanceResponse is the Query/Balance response type. */ -export interface QueryBalanceResponseSDKType { - tradable_amount: string; - retired_amount: string; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequest { - /** batch_denom is the unique ID of credit batch to query. */ - batchDenom: string; -} -export interface QuerySupplyRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: Uint8Array; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestAmino { - /** batch_denom is the unique ID of credit batch to query. */ - batch_denom?: string; -} -export interface QuerySupplyRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyRequest"; - value: QuerySupplyRequestAmino; -} -/** QuerySupplyRequest is the Query/Supply request type. */ -export interface QuerySupplyRequestSDKType { - batch_denom: string; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponse { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradableSupply: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retiredSupply: string; -} -export interface QuerySupplyResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: Uint8Array; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseAmino { - /** - * tradable_supply is the decimal number of tradable credits in the batch - * supply. - */ - tradable_supply?: string; - /** - * retired_supply is the decimal number of retired credits in the batch - * supply. - */ - retired_supply?: string; -} -export interface QuerySupplyResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QuerySupplyResponse"; - value: QuerySupplyResponseAmino; -} -/** QuerySupplyResponse is the Query/Supply response type. */ -export interface QuerySupplyResponseSDKType { - tradable_supply: string; - retired_supply: string; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequest { -} -export interface QueryCreditTypesRequestProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestAmino { -} -export interface QueryCreditTypesRequestAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest"; - value: QueryCreditTypesRequestAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types request type */ -export interface QueryCreditTypesRequestSDKType { -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponse { - /** list of credit types */ - creditTypes: CreditType[]; -} -export interface QueryCreditTypesResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: Uint8Array; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseAmino { - /** list of credit types */ - credit_types?: CreditTypeAmino[]; -} -export interface QueryCreditTypesResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse"; - value: QueryCreditTypesResponseAmino; -} -/** QueryCreditTypesRequest is the Query/Credit_Types response type */ -export interface QueryCreditTypesResponseSDKType { - credit_types: CreditTypeSDKType[]; -} -export declare const QueryParamsRequest: { - typeUrl: string; - encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: Partial): QueryParamsRequest; - fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest; - toAmino(_: QueryParamsRequest): QueryParamsRequestAmino; - fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest; - fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest; - toProto(message: QueryParamsRequest): Uint8Array; - toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg; -}; -export declare const QueryParamsResponse: { - typeUrl: string; - encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: Partial): QueryParamsResponse; - fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse; - toAmino(message: QueryParamsResponse): QueryParamsResponseAmino; - fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse; - fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse; - toProto(message: QueryParamsResponse): Uint8Array; - toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg; -}; -export declare const QueryClassesRequest: { - typeUrl: string; - encode(message: QueryClassesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest; - fromPartial(object: Partial): QueryClassesRequest; - fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest; - toAmino(message: QueryClassesRequest): QueryClassesRequestAmino; - fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest; - fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest; - toProto(message: QueryClassesRequest): Uint8Array; - toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg; -}; -export declare const QueryClassesResponse: { - typeUrl: string; - encode(message: QueryClassesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse; - fromPartial(object: Partial): QueryClassesResponse; - fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse; - toAmino(message: QueryClassesResponse): QueryClassesResponseAmino; - fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse; - fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse; - toProto(message: QueryClassesResponse): Uint8Array; - toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg; -}; -export declare const QueryClassInfoRequest: { - typeUrl: string; - encode(message: QueryClassInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoRequest; - fromPartial(object: Partial): QueryClassInfoRequest; - fromAmino(object: QueryClassInfoRequestAmino): QueryClassInfoRequest; - toAmino(message: QueryClassInfoRequest): QueryClassInfoRequestAmino; - fromAminoMsg(object: QueryClassInfoRequestAminoMsg): QueryClassInfoRequest; - fromProtoMsg(message: QueryClassInfoRequestProtoMsg): QueryClassInfoRequest; - toProto(message: QueryClassInfoRequest): Uint8Array; - toProtoMsg(message: QueryClassInfoRequest): QueryClassInfoRequestProtoMsg; -}; -export declare const QueryClassInfoResponse: { - typeUrl: string; - encode(message: QueryClassInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryClassInfoResponse; - fromPartial(object: Partial): QueryClassInfoResponse; - fromAmino(object: QueryClassInfoResponseAmino): QueryClassInfoResponse; - toAmino(message: QueryClassInfoResponse): QueryClassInfoResponseAmino; - fromAminoMsg(object: QueryClassInfoResponseAminoMsg): QueryClassInfoResponse; - fromProtoMsg(message: QueryClassInfoResponseProtoMsg): QueryClassInfoResponse; - toProto(message: QueryClassInfoResponse): Uint8Array; - toProtoMsg(message: QueryClassInfoResponse): QueryClassInfoResponseProtoMsg; -}; -export declare const QueryBatchesRequest: { - typeUrl: string; - encode(message: QueryBatchesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesRequest; - fromPartial(object: Partial): QueryBatchesRequest; - fromAmino(object: QueryBatchesRequestAmino): QueryBatchesRequest; - toAmino(message: QueryBatchesRequest): QueryBatchesRequestAmino; - fromAminoMsg(object: QueryBatchesRequestAminoMsg): QueryBatchesRequest; - fromProtoMsg(message: QueryBatchesRequestProtoMsg): QueryBatchesRequest; - toProto(message: QueryBatchesRequest): Uint8Array; - toProtoMsg(message: QueryBatchesRequest): QueryBatchesRequestProtoMsg; -}; -export declare const QueryBatchesResponse: { - typeUrl: string; - encode(message: QueryBatchesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchesResponse; - fromPartial(object: Partial): QueryBatchesResponse; - fromAmino(object: QueryBatchesResponseAmino): QueryBatchesResponse; - toAmino(message: QueryBatchesResponse): QueryBatchesResponseAmino; - fromAminoMsg(object: QueryBatchesResponseAminoMsg): QueryBatchesResponse; - fromProtoMsg(message: QueryBatchesResponseProtoMsg): QueryBatchesResponse; - toProto(message: QueryBatchesResponse): Uint8Array; - toProtoMsg(message: QueryBatchesResponse): QueryBatchesResponseProtoMsg; -}; -export declare const QueryBatchInfoRequest: { - typeUrl: string; - encode(message: QueryBatchInfoRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoRequest; - fromPartial(object: Partial): QueryBatchInfoRequest; - fromAmino(object: QueryBatchInfoRequestAmino): QueryBatchInfoRequest; - toAmino(message: QueryBatchInfoRequest): QueryBatchInfoRequestAmino; - fromAminoMsg(object: QueryBatchInfoRequestAminoMsg): QueryBatchInfoRequest; - fromProtoMsg(message: QueryBatchInfoRequestProtoMsg): QueryBatchInfoRequest; - toProto(message: QueryBatchInfoRequest): Uint8Array; - toProtoMsg(message: QueryBatchInfoRequest): QueryBatchInfoRequestProtoMsg; -}; -export declare const QueryBatchInfoResponse: { - typeUrl: string; - encode(message: QueryBatchInfoResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBatchInfoResponse; - fromPartial(object: Partial): QueryBatchInfoResponse; - fromAmino(object: QueryBatchInfoResponseAmino): QueryBatchInfoResponse; - toAmino(message: QueryBatchInfoResponse): QueryBatchInfoResponseAmino; - fromAminoMsg(object: QueryBatchInfoResponseAminoMsg): QueryBatchInfoResponse; - fromProtoMsg(message: QueryBatchInfoResponseProtoMsg): QueryBatchInfoResponse; - toProto(message: QueryBatchInfoResponse): Uint8Array; - toProtoMsg(message: QueryBatchInfoResponse): QueryBatchInfoResponseProtoMsg; -}; -export declare const QueryBalanceRequest: { - typeUrl: string; - encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; - fromPartial(object: Partial): QueryBalanceRequest; - fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest; - toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino; - fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest; - fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest; - toProto(message: QueryBalanceRequest): Uint8Array; - toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg; -}; -export declare const QueryBalanceResponse: { - typeUrl: string; - encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; - fromPartial(object: Partial): QueryBalanceResponse; - fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse; - toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino; - fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse; - fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse; - toProto(message: QueryBalanceResponse): Uint8Array; - toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg; -}; -export declare const QuerySupplyRequest: { - typeUrl: string; - encode(message: QuerySupplyRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest; - fromPartial(object: Partial): QuerySupplyRequest; - fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest; - toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino; - fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest; - fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest; - toProto(message: QuerySupplyRequest): Uint8Array; - toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg; -}; -export declare const QuerySupplyResponse: { - typeUrl: string; - encode(message: QuerySupplyResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse; - fromPartial(object: Partial): QuerySupplyResponse; - fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse; - toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino; - fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse; - fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse; - toProto(message: QuerySupplyResponse): Uint8Array; - toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg; -}; -export declare const QueryCreditTypesRequest: { - typeUrl: string; - encode(_: QueryCreditTypesRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesRequest; - fromPartial(_: Partial): QueryCreditTypesRequest; - fromAmino(_: QueryCreditTypesRequestAmino): QueryCreditTypesRequest; - toAmino(_: QueryCreditTypesRequest): QueryCreditTypesRequestAmino; - fromAminoMsg(object: QueryCreditTypesRequestAminoMsg): QueryCreditTypesRequest; - fromProtoMsg(message: QueryCreditTypesRequestProtoMsg): QueryCreditTypesRequest; - toProto(message: QueryCreditTypesRequest): Uint8Array; - toProtoMsg(message: QueryCreditTypesRequest): QueryCreditTypesRequestProtoMsg; -}; -export declare const QueryCreditTypesResponse: { - typeUrl: string; - encode(message: QueryCreditTypesResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryCreditTypesResponse; - fromPartial(object: Partial): QueryCreditTypesResponse; - fromAmino(object: QueryCreditTypesResponseAmino): QueryCreditTypesResponse; - toAmino(message: QueryCreditTypesResponse): QueryCreditTypesResponseAmino; - fromAminoMsg(object: QueryCreditTypesResponseAminoMsg): QueryCreditTypesResponse; - fromProtoMsg(message: QueryCreditTypesResponseProtoMsg): QueryCreditTypesResponse; - toProto(message: QueryCreditTypesResponse): Uint8Array; - toProtoMsg(message: QueryCreditTypesResponse): QueryCreditTypesResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.js deleted file mode 100644 index c27c67d8..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.js +++ /dev/null @@ -1,1070 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryCreditTypesResponse = exports.QueryCreditTypesRequest = exports.QuerySupplyResponse = exports.QuerySupplyRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryBatchInfoResponse = exports.QueryBatchInfoRequest = exports.QueryBatchesResponse = exports.QueryBatchesRequest = exports.QueryClassInfoResponse = exports.QueryClassInfoRequest = exports.QueryClassesResponse = exports.QueryClassesRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0; -//@ts-nocheck -const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination"); -const types_1 = require("./types"); -const binary_1 = require("../../../binary"); -function createBaseQueryParamsRequest() { - return {}; -} -exports.QueryParamsRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryParamsRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryParamsRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsRequest", - value: exports.QueryParamsRequest.encode(message).finish() - }; - } -}; -function createBaseQueryParamsResponse() { - return { - params: undefined - }; -} -exports.QueryParamsResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.params !== undefined) { - types_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = types_1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryParamsResponse(); - if (object.params !== undefined && object.params !== null) { - message.params = types_1.Params.fromAmino(object.params); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.params = message.params ? types_1.Params.toAmino(message.params) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryParamsResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryParamsResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryParamsResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryParamsResponse", - value: exports.QueryParamsResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassesRequest() { - return { - pagination: undefined - }; -} -exports.QueryClassesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesRequest(); - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesRequest", - value: exports.QueryClassesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassesResponse() { - return { - classes: [], - pagination: undefined - }; -} -exports.QueryClassesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.classes) { - types_1.ClassInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(types_1.ClassInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => types_1.ClassInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => types_1.ClassInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.classes) { - obj.classes = message.classes.map(e => e ? types_1.ClassInfo.toAmino(e) : undefined); - } - else { - obj.classes = message.classes; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassesResponse", - value: exports.QueryClassesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoRequest() { - return { - classId: "" - }; -} -exports.QueryClassInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassInfoRequest(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassInfoRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassInfoRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryClassInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoRequest", - value: exports.QueryClassInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryClassInfoResponse() { - return { - info: undefined - }; -} -exports.QueryClassInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.info !== undefined) { - types_1.ClassInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = types_1.ClassInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryClassInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? types_1.ClassInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryClassInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = types_1.ClassInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? types_1.ClassInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryClassInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryClassInfoResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryClassInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryClassInfoResponse", - value: exports.QueryClassInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesRequest() { - return { - classId: "", - pagination: undefined - }; -} -exports.QueryBatchesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.pagination !== undefined) { - pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesRequest(); - message.classId = object.classId ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesRequest(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageRequest.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesRequest", - value: exports.QueryBatchesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchesResponse() { - return { - batches: [], - pagination: undefined - }; -} -exports.QueryBatchesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.batches) { - types_1.BatchInfo.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batches.push(types_1.BatchInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => types_1.BatchInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchesResponse(); - message.batches = object.batches?.map(e => types_1.BatchInfo.fromAmino(e)) || []; - if (object.pagination !== undefined && object.pagination !== null) { - message.pagination = pagination_1.PageResponse.fromAmino(object.pagination); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.batches) { - obj.batches = message.batches.map(e => e ? types_1.BatchInfo.toAmino(e) : undefined); - } - else { - obj.batches = message.batches; - } - obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchesResponse", - value: exports.QueryBatchesResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoRequest() { - return { - batchDenom: "" - }; -} -exports.QueryBatchInfoRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchInfoRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchInfoRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchInfoRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchInfoRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchInfoRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoRequest", - value: exports.QueryBatchInfoRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBatchInfoResponse() { - return { - info: undefined - }; -} -exports.QueryBatchInfoResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.info !== undefined) { - types_1.BatchInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBatchInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = types_1.BatchInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBatchInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? types_1.BatchInfo.fromPartial(object.info) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBatchInfoResponse(); - if (object.info !== undefined && object.info !== null) { - message.info = types_1.BatchInfo.fromAmino(object.info); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.info = message.info ? types_1.BatchInfo.toAmino(message.info) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBatchInfoResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBatchInfoResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBatchInfoResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBatchInfoResponse", - value: exports.QueryBatchInfoResponse.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceRequest() { - return { - account: "", - batchDenom: "" - }; -} -exports.QueryBalanceRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.account !== "") { - writer.uint32(10).string(message.account); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.account = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceRequest(); - message.account = object.account ?? ""; - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceRequest(); - if (object.account !== undefined && object.account !== null) { - message.account = object.account; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.account = message.account === "" ? undefined : message.account; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalanceRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceRequest", - value: exports.QueryBalanceRequest.encode(message).finish() - }; - } -}; -function createBaseQueryBalanceResponse() { - return { - tradableAmount: "", - retiredAmount: "" - }; -} -exports.QueryBalanceResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tradableAmount !== "") { - writer.uint32(10).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(18).string(message.retiredAmount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableAmount = reader.string(); - break; - case 2: - message.retiredAmount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryBalanceResponse(); - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryBalanceResponse(); - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryBalanceResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryBalanceResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryBalanceResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryBalanceResponse", - value: exports.QueryBalanceResponse.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyRequest() { - return { - batchDenom: "" - }; -} -exports.QuerySupplyRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyRequest(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyRequest(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySupplyRequest.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyRequest", - value: exports.QuerySupplyRequest.encode(message).finish() - }; - } -}; -function createBaseQuerySupplyResponse() { - return { - tradableSupply: "", - retiredSupply: "" - }; -} -exports.QuerySupplyResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tradableSupply !== "") { - writer.uint32(10).string(message.tradableSupply); - } - if (message.retiredSupply !== "") { - writer.uint32(18).string(message.retiredSupply); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tradableSupply = reader.string(); - break; - case 2: - message.retiredSupply = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQuerySupplyResponse(); - message.tradableSupply = object.tradableSupply ?? ""; - message.retiredSupply = object.retiredSupply ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQuerySupplyResponse(); - if (object.tradable_supply !== undefined && object.tradable_supply !== null) { - message.tradableSupply = object.tradable_supply; - } - if (object.retired_supply !== undefined && object.retired_supply !== null) { - message.retiredSupply = object.retired_supply; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tradable_supply = message.tradableSupply === "" ? undefined : message.tradableSupply; - obj.retired_supply = message.retiredSupply === "" ? undefined : message.retiredSupply; - return obj; - }, - fromAminoMsg(object) { - return exports.QuerySupplyResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QuerySupplyResponse.decode(message.value); - }, - toProto(message) { - return exports.QuerySupplyResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QuerySupplyResponse", - value: exports.QuerySupplyResponse.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesRequest() { - return {}; -} -exports.QueryCreditTypesRequest = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - fromAmino(_) { - const message = createBaseQueryCreditTypesRequest(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypesRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypesRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypesRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesRequest", - value: exports.QueryCreditTypesRequest.encode(message).finish() - }; - } -}; -function createBaseQueryCreditTypesResponse() { - return { - creditTypes: [] - }; -} -exports.QueryCreditTypesResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.creditTypes) { - types_1.CreditType.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryCreditTypesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditTypes.push(types_1.CreditType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.creditTypes?.map(e => types_1.CreditType.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseQueryCreditTypesResponse(); - message.creditTypes = object.credit_types?.map(e => types_1.CreditType.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? types_1.CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.QueryCreditTypesResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryCreditTypesResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryCreditTypesResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.QueryCreditTypesResponse", - value: exports.QueryCreditTypesResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts deleted file mode 100644 index 14568f80..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryClassesRequest, QueryClassesResponseSDKType, QueryClassInfoRequest, QueryClassInfoResponseSDKType, QueryBatchesRequest, QueryBatchesResponseSDKType, QueryBatchInfoRequest, QueryBatchInfoResponseSDKType, QueryBalanceRequest, QueryBalanceResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryCreditTypesRequest, QueryCreditTypesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - classes(params?: QueryClassesRequest): Promise; - classInfo(params: QueryClassInfoRequest): Promise; - batches(params: QueryBatchesRequest): Promise; - batchInfo(params: QueryBatchInfoRequest): Promise; - balance(params: QueryBalanceRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - creditTypes(_params?: QueryCreditTypesRequest): Promise; - params(_params?: QueryParamsRequest): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js deleted file mode 100644 index a8397db5..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.lcd.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -//@ts-nocheck -const helpers_1 = require("../../../helpers"); -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - /* Classes queries for all credit classes with pagination. */ - async classes(params = { - pagination: undefined - }) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes`; - return await this.req.get(endpoint, options); - } - /* ClassInfo queries for information on a credit class. */ - async classInfo(params) { - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}`; - return await this.req.get(endpoint); - } - /* Batches queries for all batches in the given credit class with pagination. */ - async batches(params) { - const options = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - (0, helpers_1.setPaginationParams)(options, params.pagination); - } - const endpoint = `regen/ecocredit/v1alpha1/classes/${params.classId}/batches`; - return await this.req.get(endpoint, options); - } - /* BatchInfo queries for information on a credit batch. */ - async batchInfo(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}`; - return await this.req.get(endpoint); - } - /* Balance queries the balance (both tradable and retired) of a given credit - batch for a given account. */ - async balance(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/balance/${params.account}`; - return await this.req.get(endpoint); - } - /* Supply queries the tradable and retired supply of a credit batch. */ - async supply(params) { - const endpoint = `regen/ecocredit/v1alpha1/batches/${params.batchDenom}/supply`; - return await this.req.get(endpoint); - } - /* CreditTypes returns the list of allowed types that credit classes can have. - See Types/CreditType for more details. */ - async creditTypes(_params = {}) { - const endpoint = `regen/ecocredit/v1alpha1/credit-types`; - return await this.req.get(endpoint); - } - /* Params queries the ecocredit module parameters. */ - async params(_params = {}) { - const endpoint = `regen/ecocredit/v1alpha1/params`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts deleted file mode 100644 index f750f1dd..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryClassesRequest, QueryClassesResponse, QueryClassInfoRequest, QueryClassInfoResponse, QueryBatchesRequest, QueryBatchesResponse, QueryBatchInfoRequest, QueryBatchInfoResponse, QueryBalanceRequest, QueryBalanceResponse, QuerySupplyRequest, QuerySupplyResponse, QueryCreditTypesRequest, QueryCreditTypesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Msg is the regen.ecocredit.v1alpha1 Query service. */ -export interface Query { - /** Classes queries for all credit classes with pagination. */ - classes(request?: QueryClassesRequest): Promise; - /** ClassInfo queries for information on a credit class. */ - classInfo(request: QueryClassInfoRequest): Promise; - /** Batches queries for all batches in the given credit class with pagination. */ - batches(request: QueryBatchesRequest): Promise; - /** BatchInfo queries for information on a credit batch. */ - batchInfo(request: QueryBatchInfoRequest): Promise; - /** - * Balance queries the balance (both tradable and retired) of a given credit - * batch for a given account. - */ - balance(request: QueryBalanceRequest): Promise; - /** Supply queries the tradable and retired supply of a credit batch. */ - supply(request: QuerySupplyRequest): Promise; - /** - * CreditTypes returns the list of allowed types that credit classes can have. - * See Types/CreditType for more details. - */ - creditTypes(request?: QueryCreditTypesRequest): Promise; - /** Params queries the ecocredit module parameters. */ - params(request?: QueryParamsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - classes(request?: QueryClassesRequest): Promise; - classInfo(request: QueryClassInfoRequest): Promise; - batches(request: QueryBatchesRequest): Promise; - batchInfo(request: QueryBatchInfoRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - classes(request?: QueryClassesRequest): Promise; - classInfo(request: QueryClassInfoRequest): Promise; - batches(request: QueryBatchesRequest): Promise; - batchInfo(request: QueryBatchInfoRequest): Promise; - balance(request: QueryBalanceRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - creditTypes(request?: QueryCreditTypesRequest): Promise; - params(request?: QueryParamsRequest): Promise; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js b/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js deleted file mode 100644 index 6d153541..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/query.rpc.Query.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.classes = this.classes.bind(this); - this.classInfo = this.classInfo.bind(this); - this.batches = this.batches.bind(this); - this.batchInfo = this.batchInfo.bind(this); - this.balance = this.balance.bind(this); - this.supply = this.supply.bind(this); - this.creditTypes = this.creditTypes.bind(this); - this.params = this.params.bind(this); - } - classes(request = { - pagination: undefined - }) { - const data = query_1.QueryClassesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Classes", data); - return promise.then(data => query_1.QueryClassesResponse.decode(new binary_1.BinaryReader(data))); - } - classInfo(request) { - const data = query_1.QueryClassInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "ClassInfo", data); - return promise.then(data => query_1.QueryClassInfoResponse.decode(new binary_1.BinaryReader(data))); - } - batches(request) { - const data = query_1.QueryBatchesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Batches", data); - return promise.then(data => query_1.QueryBatchesResponse.decode(new binary_1.BinaryReader(data))); - } - batchInfo(request) { - const data = query_1.QueryBatchInfoRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "BatchInfo", data); - return promise.then(data => query_1.QueryBatchInfoResponse.decode(new binary_1.BinaryReader(data))); - } - balance(request) { - const data = query_1.QueryBalanceRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Balance", data); - return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data))); - } - supply(request) { - const data = query_1.QuerySupplyRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Supply", data); - return promise.then(data => query_1.QuerySupplyResponse.decode(new binary_1.BinaryReader(data))); - } - creditTypes(request = {}) { - const data = query_1.QueryCreditTypesRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "CreditTypes", data); - return promise.then(data => query_1.QueryCreditTypesResponse.decode(new binary_1.BinaryReader(data))); - } - params(request = {}) { - const data = query_1.QueryParamsRequest.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Query", "Params", data); - return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - classes(request) { - return queryService.classes(request); - }, - classInfo(request) { - return queryService.classInfo(request); - }, - batches(request) { - return queryService.batches(request); - }, - batchInfo(request) { - return queryService.batchInfo(request); - }, - balance(request) { - return queryService.balance(request); - }, - supply(request) { - return queryService.supply(request); - }, - creditTypes(request) { - return queryService.creditTypes(request); - }, - params(request) { - return queryService.params(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts deleted file mode 100644 index 712d9cec..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export declare const AminoConverter: { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: string; - toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino; - fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass; - }; - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: string; - toAmino: (message: MsgCreateBatch) => import("./tx").MsgCreateBatchAmino; - fromAmino: (object: import("./tx").MsgCreateBatchAmino) => MsgCreateBatch; - }; - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: string; - toAmino: (message: MsgSend) => import("./tx").MsgSendAmino; - fromAmino: (object: import("./tx").MsgSendAmino) => MsgSend; - }; - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: string; - toAmino: (message: MsgRetire) => import("./tx").MsgRetireAmino; - fromAmino: (object: import("./tx").MsgRetireAmino) => MsgRetire; - }; - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: string; - toAmino: (message: MsgCancel) => import("./tx").MsgCancelAmino; - fromAmino: (object: import("./tx").MsgCancelAmino) => MsgCancel; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: string; - toAmino: (message: MsgUpdateClassAdmin) => import("./tx").MsgUpdateClassAdminAmino; - fromAmino: (object: import("./tx").MsgUpdateClassAdminAmino) => MsgUpdateClassAdmin; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: string; - toAmino: (message: MsgUpdateClassIssuers) => import("./tx").MsgUpdateClassIssuersAmino; - fromAmino: (object: import("./tx").MsgUpdateClassIssuersAmino) => MsgUpdateClassIssuers; - }; - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: string; - toAmino: (message: MsgUpdateClassMetadata) => import("./tx").MsgUpdateClassMetadataAmino; - fromAmino: (object: import("./tx").MsgUpdateClassMetadataAmino) => MsgUpdateClassMetadata; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js deleted file mode 100644 index 81bc974b..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.amino.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.ecocredit.v1alpha1.MsgCreateClass": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateClass", - toAmino: tx_1.MsgCreateClass.toAmino, - fromAmino: tx_1.MsgCreateClass.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCreateBatch": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - toAmino: tx_1.MsgCreateBatch.toAmino, - fromAmino: tx_1.MsgCreateBatch.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgSend": { - aminoType: "/regen.ecocredit.v1alpha1.MsgSend", - toAmino: tx_1.MsgSend.toAmino, - fromAmino: tx_1.MsgSend.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgRetire": { - aminoType: "/regen.ecocredit.v1alpha1.MsgRetire", - toAmino: tx_1.MsgRetire.toAmino, - fromAmino: tx_1.MsgRetire.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgCancel": { - aminoType: "/regen.ecocredit.v1alpha1.MsgCancel", - toAmino: tx_1.MsgCancel.toAmino, - fromAmino: tx_1.MsgCancel.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - toAmino: tx_1.MsgUpdateClassAdmin.toAmino, - fromAmino: tx_1.MsgUpdateClassAdmin.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - toAmino: tx_1.MsgUpdateClassIssuers.toAmino, - fromAmino: tx_1.MsgUpdateClassIssuers.fromAmino - }, - "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata": { - aminoType: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - toAmino: tx_1.MsgUpdateClassMetadata.toAmino, - fromAmino: tx_1.MsgUpdateClassMetadata.fromAmino - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts deleted file mode 100644 index 1710ad15..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.d.ts +++ /dev/null @@ -1,936 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClass { - /** admin is the address of the account that created the credit class. */ - admin: string; - /** issuers are the account addresses of the approved issuers. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - creditTypeName: string; -} -export interface MsgCreateClassProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: Uint8Array; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassAmino { - /** admin is the address of the account that created the credit class. */ - admin?: string; - /** issuers are the account addresses of the approved issuers. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type_name describes the type of credit (e.g. "carbon", - * "biodiversity"). - */ - credit_type_name?: string; -} -export interface MsgCreateClassAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClass"; - value: MsgCreateClassAmino; -} -/** MsgCreateClass is the Msg/CreateClass request type. */ -export interface MsgCreateClassSDKType { - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type_name: string; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponse { - /** class_id is the unique ID of the newly created credit class. */ - classId: string; -} -export interface MsgCreateClassResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: Uint8Array; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseAmino { - /** class_id is the unique ID of the newly created credit class. */ - class_id?: string; -} -export interface MsgCreateClassResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse"; - value: MsgCreateClassResponseAmino; -} -/** MsgCreateClassResponse is the Msg/CreateClass response type. */ -export interface MsgCreateClassResponseSDKType { - class_id: string; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatch { - /** issuer is the address of the batch issuer. */ - issuer: string; - /** class_id is the unique ID of the class. */ - classId: string; - /** issuance are the credits issued in the batch. */ - issuance: MsgCreateBatch_BatchIssuance[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - projectLocation: string; -} -export interface MsgCreateBatchProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: Uint8Array; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchAmino { - /** issuer is the address of the batch issuer. */ - issuer?: string; - /** class_id is the unique ID of the class. */ - class_id?: string; - /** issuance are the credits issued in the batch. */ - issuance?: MsgCreateBatch_BatchIssuanceAmino[]; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. country-code is required, while sub-national-code - * and postal-code can be added for increasing precision. - */ - project_location?: string; -} -export interface MsgCreateBatchAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatch"; - value: MsgCreateBatchAmino; -} -/** MsgCreateBatch is the Msg/CreateBatch request type. */ -export interface MsgCreateBatchSDKType { - issuer: string; - class_id: string; - issuance: MsgCreateBatch_BatchIssuanceSDKType[]; - metadata: Uint8Array; - start_date?: Date; - end_date?: Date; - project_location: string; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuance { - /** recipient is the account of the recipient. */ - recipient: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgCreateBatch_BatchIssuanceProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: Uint8Array; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceAmino { - /** recipient is the account of the recipient. */ - recipient?: string; - /** - * tradable_amount is the number of credits in this issuance that can be - * traded by this recipient. Decimal values are acceptable. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this issuance that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgCreateBatch_BatchIssuanceAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchIssuance"; - value: MsgCreateBatch_BatchIssuanceAmino; -} -/** - * BatchIssuance represents the issuance of some credits in a batch to a - * single recipient. - */ -export interface MsgCreateBatch_BatchIssuanceSDKType { - recipient: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponse { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batchDenom: string; -} -export interface MsgCreateBatchResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: Uint8Array; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseAmino { - /** batch_denom is the unique denomination ID of the newly created batch. */ - batch_denom?: string; -} -export interface MsgCreateBatchResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse"; - value: MsgCreateBatchResponseAmino; -} -/** MsgCreateBatchResponse is the Msg/CreateBatch response type. */ -export interface MsgCreateBatchResponseSDKType { - batch_denom: string; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSend { - /** sender is the address of the account sending credits. */ - sender: string; - /** sender is the address of the account receiving credits. */ - recipient: string; - /** credits are the credits being sent. */ - credits: MsgSend_SendCredits[]; -} -export interface MsgSendProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend"; - value: Uint8Array; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendAmino { - /** sender is the address of the account sending credits. */ - sender?: string; - /** sender is the address of the account receiving credits. */ - recipient?: string; - /** credits are the credits being sent. */ - credits?: MsgSend_SendCreditsAmino[]; -} -export interface MsgSendAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSend"; - value: MsgSendAmino; -} -/** MsgSend is the Msg/Send request type. */ -export interface MsgSendSDKType { - sender: string; - recipient: string; - credits: MsgSend_SendCreditsSDKType[]; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradableAmount: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retiredAmount: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirementLocation: string; -} -export interface MsgSend_SendCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits"; - value: Uint8Array; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * tradable_amount is the number of credits in this transfer that can be - * traded by the recipient. Decimal values are acceptable within the - * precision returned by Query/Precision. - */ - tradable_amount?: string; - /** - * retired_amount is the number of credits in this transfer that are - * effectively retired by the issuer on receipt. Decimal values are - * acceptable within the precision returned by Query/Precision. - */ - retired_amount?: string; - /** - * retirement_location is the location of the beneficiary or buyer of the - * retired credits. This must be provided if retired_amount is positive. It - * is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - retirement_location?: string; -} -export interface MsgSend_SendCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.SendCredits"; - value: MsgSend_SendCreditsAmino; -} -/** - * SendCredits specifies a batch and the number of credits being transferred. - * This is split into tradable credits, which will remain tradable on receipt, - * and retired credits, which will be retired on receipt. - */ -export interface MsgSend_SendCreditsSDKType { - batch_denom: string; - tradable_amount: string; - retired_amount: string; - retirement_location: string; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponse { -} -export interface MsgSendResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: Uint8Array; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseAmino { -} -export interface MsgSendResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgSendResponse"; - value: MsgSendResponseAmino; -} -/** MsgSendResponse is the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetire { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being retired. */ - credits: MsgRetire_RetireCredits[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location: string; -} -export interface MsgRetireProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being retired. */ - credits?: MsgRetire_RetireCreditsAmino[]; - /** - * location is the location of the beneficiary or buyer of the retired - * credits. It is a string of the form - * [-[ ]], with the first two - * fields conforming to ISO 3166-2, and postal-code being up to 64 - * alphanumeric characters. - */ - location?: string; -} -export interface MsgRetireAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetire"; - value: MsgRetireAmino; -} -/** MsgRetire is the Msg/Retire request type. */ -export interface MsgRetireSDKType { - holder: string; - credits: MsgRetire_RetireCreditsSDKType[]; - location: string; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgRetire_RetireCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: Uint8Array; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being retired. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgRetire_RetireCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.RetireCredits"; - value: MsgRetire_RetireCreditsAmino; -} -/** RetireCredits specifies a batch and the number of credits being retired. */ -export interface MsgRetire_RetireCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponse { -} -export interface MsgRetireResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: Uint8Array; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseAmino { -} -export interface MsgRetireResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgRetireResponse"; - value: MsgRetireResponseAmino; -} -/** MsgRetire is the Msg/Retire response type. */ -export interface MsgRetireResponseSDKType { -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancel { - /** holder is the credit holder address. */ - holder: string; - /** credits are the credits being cancelled. */ - credits: MsgCancel_CancelCredits[]; -} -export interface MsgCancelProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: Uint8Array; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelAmino { - /** holder is the credit holder address. */ - holder?: string; - /** credits are the credits being cancelled. */ - credits?: MsgCancel_CancelCreditsAmino[]; -} -export interface MsgCancelAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancel"; - value: MsgCancelAmino; -} -/** MsgCancel is the Msg/Cancel request type. */ -export interface MsgCancelSDKType { - holder: string; - credits: MsgCancel_CancelCreditsSDKType[]; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCredits { - /** batch_denom is the unique ID of the credit batch. */ - batchDenom: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount: string; -} -export interface MsgCancel_CancelCreditsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: Uint8Array; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsAmino { - /** batch_denom is the unique ID of the credit batch. */ - batch_denom?: string; - /** - * amount is the number of credits being cancelled. - * Decimal values are acceptable within the precision returned by - * Query/Precision. - */ - amount?: string; -} -export interface MsgCancel_CancelCreditsAminoMsg { - type: "/regen.ecocredit.v1alpha1.CancelCredits"; - value: MsgCancel_CancelCreditsAmino; -} -/** CancelCredits specifies a batch and the number of credits being cancelled. */ -export interface MsgCancel_CancelCreditsSDKType { - batch_denom: string; - amount: string; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponse { -} -export interface MsgCancelResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: Uint8Array; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseAmino { -} -export interface MsgCancelResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgCancelResponse"; - value: MsgCancelResponseAmino; -} -/** MsgCancelResponse is the Msg/Cancel response type. */ -export interface MsgCancelResponseSDKType { -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdmin { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** new_admin is the address of the new admin of the credit class. */ - newAdmin: string; -} -export interface MsgUpdateClassAdminProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: Uint8Array; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** new_admin is the address of the new admin of the credit class. */ - new_admin?: string; -} -export interface MsgUpdateClassAdminAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin"; - value: MsgUpdateClassAdminAmino; -} -/** MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type. */ -export interface MsgUpdateClassAdminSDKType { - admin: string; - class_id: string; - new_admin: string; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponse { -} -export interface MsgUpdateClassAdminResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: Uint8Array; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseAmino { -} -export interface MsgUpdateClassAdminResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse"; - value: MsgUpdateClassAdminResponseAmino; -} -/** MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type. */ -export interface MsgUpdateClassAdminResponseSDKType { -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuers { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers: string[]; -} -export interface MsgUpdateClassIssuersProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: Uint8Array; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** issuers are the updated account addresses of the approved issuers. */ - issuers?: string[]; -} -export interface MsgUpdateClassIssuersAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers"; - value: MsgUpdateClassIssuersAmino; -} -/** MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type. */ -export interface MsgUpdateClassIssuersSDKType { - admin: string; - class_id: string; - issuers: string[]; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponse { -} -export interface MsgUpdateClassIssuersResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: Uint8Array; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseAmino { -} -export interface MsgUpdateClassIssuersResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse"; - value: MsgUpdateClassIssuersResponseAmino; -} -/** MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type. */ -export interface MsgUpdateClassIssuersResponseSDKType { -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadata { - /** admin is the address of the account that is the admin of the credit class. */ - admin: string; - /** class_id is the unique ID of the credit class. */ - classId: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata: Uint8Array; -} -export interface MsgUpdateClassMetadataProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: Uint8Array; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataAmino { - /** admin is the address of the account that is the admin of the credit class. */ - admin?: string; - /** class_id is the unique ID of the credit class. */ - class_id?: string; - /** - * metadata is the updated arbitrary metadata to be attached to the credit - * class. - */ - metadata?: string; -} -export interface MsgUpdateClassMetadataAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata"; - value: MsgUpdateClassMetadataAmino; -} -/** MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type. */ -export interface MsgUpdateClassMetadataSDKType { - admin: string; - class_id: string; - metadata: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponse { -} -export interface MsgUpdateClassMetadataResponseProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: Uint8Array; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseAmino { -} -export interface MsgUpdateClassMetadataResponseAminoMsg { - type: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse"; - value: MsgUpdateClassMetadataResponseAmino; -} -/** MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type. */ -export interface MsgUpdateClassMetadataResponseSDKType { -} -export declare const MsgCreateClass: { - typeUrl: string; - encode(message: MsgCreateClass, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClass; - fromPartial(object: Partial): MsgCreateClass; - fromAmino(object: MsgCreateClassAmino): MsgCreateClass; - toAmino(message: MsgCreateClass): MsgCreateClassAmino; - fromAminoMsg(object: MsgCreateClassAminoMsg): MsgCreateClass; - fromProtoMsg(message: MsgCreateClassProtoMsg): MsgCreateClass; - toProto(message: MsgCreateClass): Uint8Array; - toProtoMsg(message: MsgCreateClass): MsgCreateClassProtoMsg; -}; -export declare const MsgCreateClassResponse: { - typeUrl: string; - encode(message: MsgCreateClassResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateClassResponse; - fromPartial(object: Partial): MsgCreateClassResponse; - fromAmino(object: MsgCreateClassResponseAmino): MsgCreateClassResponse; - toAmino(message: MsgCreateClassResponse): MsgCreateClassResponseAmino; - fromAminoMsg(object: MsgCreateClassResponseAminoMsg): MsgCreateClassResponse; - fromProtoMsg(message: MsgCreateClassResponseProtoMsg): MsgCreateClassResponse; - toProto(message: MsgCreateClassResponse): Uint8Array; - toProtoMsg(message: MsgCreateClassResponse): MsgCreateClassResponseProtoMsg; -}; -export declare const MsgCreateBatch: { - typeUrl: string; - encode(message: MsgCreateBatch, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch; - fromPartial(object: Partial): MsgCreateBatch; - fromAmino(object: MsgCreateBatchAmino): MsgCreateBatch; - toAmino(message: MsgCreateBatch): MsgCreateBatchAmino; - fromAminoMsg(object: MsgCreateBatchAminoMsg): MsgCreateBatch; - fromProtoMsg(message: MsgCreateBatchProtoMsg): MsgCreateBatch; - toProto(message: MsgCreateBatch): Uint8Array; - toProtoMsg(message: MsgCreateBatch): MsgCreateBatchProtoMsg; -}; -export declare const MsgCreateBatch_BatchIssuance: { - typeUrl: string; - encode(message: MsgCreateBatch_BatchIssuance, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatch_BatchIssuance; - fromPartial(object: Partial): MsgCreateBatch_BatchIssuance; - fromAmino(object: MsgCreateBatch_BatchIssuanceAmino): MsgCreateBatch_BatchIssuance; - toAmino(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceAmino; - fromAminoMsg(object: MsgCreateBatch_BatchIssuanceAminoMsg): MsgCreateBatch_BatchIssuance; - fromProtoMsg(message: MsgCreateBatch_BatchIssuanceProtoMsg): MsgCreateBatch_BatchIssuance; - toProto(message: MsgCreateBatch_BatchIssuance): Uint8Array; - toProtoMsg(message: MsgCreateBatch_BatchIssuance): MsgCreateBatch_BatchIssuanceProtoMsg; -}; -export declare const MsgCreateBatchResponse: { - typeUrl: string; - encode(message: MsgCreateBatchResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateBatchResponse; - fromPartial(object: Partial): MsgCreateBatchResponse; - fromAmino(object: MsgCreateBatchResponseAmino): MsgCreateBatchResponse; - toAmino(message: MsgCreateBatchResponse): MsgCreateBatchResponseAmino; - fromAminoMsg(object: MsgCreateBatchResponseAminoMsg): MsgCreateBatchResponse; - fromProtoMsg(message: MsgCreateBatchResponseProtoMsg): MsgCreateBatchResponse; - toProto(message: MsgCreateBatchResponse): Uint8Array; - toProtoMsg(message: MsgCreateBatchResponse): MsgCreateBatchResponseProtoMsg; -}; -export declare const MsgSend: { - typeUrl: string; - encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend; - fromPartial(object: Partial): MsgSend; - fromAmino(object: MsgSendAmino): MsgSend; - toAmino(message: MsgSend): MsgSendAmino; - fromAminoMsg(object: MsgSendAminoMsg): MsgSend; - fromProtoMsg(message: MsgSendProtoMsg): MsgSend; - toProto(message: MsgSend): Uint8Array; - toProtoMsg(message: MsgSend): MsgSendProtoMsg; -}; -export declare const MsgSend_SendCredits: { - typeUrl: string; - encode(message: MsgSend_SendCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSend_SendCredits; - fromPartial(object: Partial): MsgSend_SendCredits; - fromAmino(object: MsgSend_SendCreditsAmino): MsgSend_SendCredits; - toAmino(message: MsgSend_SendCredits): MsgSend_SendCreditsAmino; - fromAminoMsg(object: MsgSend_SendCreditsAminoMsg): MsgSend_SendCredits; - fromProtoMsg(message: MsgSend_SendCreditsProtoMsg): MsgSend_SendCredits; - toProto(message: MsgSend_SendCredits): Uint8Array; - toProtoMsg(message: MsgSend_SendCredits): MsgSend_SendCreditsProtoMsg; -}; -export declare const MsgSendResponse: { - typeUrl: string; - encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse; - fromPartial(_: Partial): MsgSendResponse; - fromAmino(_: MsgSendResponseAmino): MsgSendResponse; - toAmino(_: MsgSendResponse): MsgSendResponseAmino; - fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse; - fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse; - toProto(message: MsgSendResponse): Uint8Array; - toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg; -}; -export declare const MsgRetire: { - typeUrl: string; - encode(message: MsgRetire, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire; - fromPartial(object: Partial): MsgRetire; - fromAmino(object: MsgRetireAmino): MsgRetire; - toAmino(message: MsgRetire): MsgRetireAmino; - fromAminoMsg(object: MsgRetireAminoMsg): MsgRetire; - fromProtoMsg(message: MsgRetireProtoMsg): MsgRetire; - toProto(message: MsgRetire): Uint8Array; - toProtoMsg(message: MsgRetire): MsgRetireProtoMsg; -}; -export declare const MsgRetire_RetireCredits: { - typeUrl: string; - encode(message: MsgRetire_RetireCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetire_RetireCredits; - fromPartial(object: Partial): MsgRetire_RetireCredits; - fromAmino(object: MsgRetire_RetireCreditsAmino): MsgRetire_RetireCredits; - toAmino(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsAmino; - fromAminoMsg(object: MsgRetire_RetireCreditsAminoMsg): MsgRetire_RetireCredits; - fromProtoMsg(message: MsgRetire_RetireCreditsProtoMsg): MsgRetire_RetireCredits; - toProto(message: MsgRetire_RetireCredits): Uint8Array; - toProtoMsg(message: MsgRetire_RetireCredits): MsgRetire_RetireCreditsProtoMsg; -}; -export declare const MsgRetireResponse: { - typeUrl: string; - encode(_: MsgRetireResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRetireResponse; - fromPartial(_: Partial): MsgRetireResponse; - fromAmino(_: MsgRetireResponseAmino): MsgRetireResponse; - toAmino(_: MsgRetireResponse): MsgRetireResponseAmino; - fromAminoMsg(object: MsgRetireResponseAminoMsg): MsgRetireResponse; - fromProtoMsg(message: MsgRetireResponseProtoMsg): MsgRetireResponse; - toProto(message: MsgRetireResponse): Uint8Array; - toProtoMsg(message: MsgRetireResponse): MsgRetireResponseProtoMsg; -}; -export declare const MsgCancel: { - typeUrl: string; - encode(message: MsgCancel, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel; - fromPartial(object: Partial): MsgCancel; - fromAmino(object: MsgCancelAmino): MsgCancel; - toAmino(message: MsgCancel): MsgCancelAmino; - fromAminoMsg(object: MsgCancelAminoMsg): MsgCancel; - fromProtoMsg(message: MsgCancelProtoMsg): MsgCancel; - toProto(message: MsgCancel): Uint8Array; - toProtoMsg(message: MsgCancel): MsgCancelProtoMsg; -}; -export declare const MsgCancel_CancelCredits: { - typeUrl: string; - encode(message: MsgCancel_CancelCredits, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancel_CancelCredits; - fromPartial(object: Partial): MsgCancel_CancelCredits; - fromAmino(object: MsgCancel_CancelCreditsAmino): MsgCancel_CancelCredits; - toAmino(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsAmino; - fromAminoMsg(object: MsgCancel_CancelCreditsAminoMsg): MsgCancel_CancelCredits; - fromProtoMsg(message: MsgCancel_CancelCreditsProtoMsg): MsgCancel_CancelCredits; - toProto(message: MsgCancel_CancelCredits): Uint8Array; - toProtoMsg(message: MsgCancel_CancelCredits): MsgCancel_CancelCreditsProtoMsg; -}; -export declare const MsgCancelResponse: { - typeUrl: string; - encode(_: MsgCancelResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelResponse; - fromPartial(_: Partial): MsgCancelResponse; - fromAmino(_: MsgCancelResponseAmino): MsgCancelResponse; - toAmino(_: MsgCancelResponse): MsgCancelResponseAmino; - fromAminoMsg(object: MsgCancelResponseAminoMsg): MsgCancelResponse; - fromProtoMsg(message: MsgCancelResponseProtoMsg): MsgCancelResponse; - toProto(message: MsgCancelResponse): Uint8Array; - toProtoMsg(message: MsgCancelResponse): MsgCancelResponseProtoMsg; -}; -export declare const MsgUpdateClassAdmin: { - typeUrl: string; - encode(message: MsgUpdateClassAdmin, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdmin; - fromPartial(object: Partial): MsgUpdateClassAdmin; - fromAmino(object: MsgUpdateClassAdminAmino): MsgUpdateClassAdmin; - toAmino(message: MsgUpdateClassAdmin): MsgUpdateClassAdminAmino; - fromAminoMsg(object: MsgUpdateClassAdminAminoMsg): MsgUpdateClassAdmin; - fromProtoMsg(message: MsgUpdateClassAdminProtoMsg): MsgUpdateClassAdmin; - toProto(message: MsgUpdateClassAdmin): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdmin): MsgUpdateClassAdminProtoMsg; -}; -export declare const MsgUpdateClassAdminResponse: { - typeUrl: string; - encode(_: MsgUpdateClassAdminResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassAdminResponse; - fromPartial(_: Partial): MsgUpdateClassAdminResponse; - fromAmino(_: MsgUpdateClassAdminResponseAmino): MsgUpdateClassAdminResponse; - toAmino(_: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseAmino; - fromAminoMsg(object: MsgUpdateClassAdminResponseAminoMsg): MsgUpdateClassAdminResponse; - fromProtoMsg(message: MsgUpdateClassAdminResponseProtoMsg): MsgUpdateClassAdminResponse; - toProto(message: MsgUpdateClassAdminResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassAdminResponse): MsgUpdateClassAdminResponseProtoMsg; -}; -export declare const MsgUpdateClassIssuers: { - typeUrl: string; - encode(message: MsgUpdateClassIssuers, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuers; - fromPartial(object: Partial): MsgUpdateClassIssuers; - fromAmino(object: MsgUpdateClassIssuersAmino): MsgUpdateClassIssuers; - toAmino(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersAmino; - fromAminoMsg(object: MsgUpdateClassIssuersAminoMsg): MsgUpdateClassIssuers; - fromProtoMsg(message: MsgUpdateClassIssuersProtoMsg): MsgUpdateClassIssuers; - toProto(message: MsgUpdateClassIssuers): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuers): MsgUpdateClassIssuersProtoMsg; -}; -export declare const MsgUpdateClassIssuersResponse: { - typeUrl: string; - encode(_: MsgUpdateClassIssuersResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassIssuersResponse; - fromPartial(_: Partial): MsgUpdateClassIssuersResponse; - fromAmino(_: MsgUpdateClassIssuersResponseAmino): MsgUpdateClassIssuersResponse; - toAmino(_: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseAmino; - fromAminoMsg(object: MsgUpdateClassIssuersResponseAminoMsg): MsgUpdateClassIssuersResponse; - fromProtoMsg(message: MsgUpdateClassIssuersResponseProtoMsg): MsgUpdateClassIssuersResponse; - toProto(message: MsgUpdateClassIssuersResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassIssuersResponse): MsgUpdateClassIssuersResponseProtoMsg; -}; -export declare const MsgUpdateClassMetadata: { - typeUrl: string; - encode(message: MsgUpdateClassMetadata, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadata; - fromPartial(object: Partial): MsgUpdateClassMetadata; - fromAmino(object: MsgUpdateClassMetadataAmino): MsgUpdateClassMetadata; - toAmino(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataAmino; - fromAminoMsg(object: MsgUpdateClassMetadataAminoMsg): MsgUpdateClassMetadata; - fromProtoMsg(message: MsgUpdateClassMetadataProtoMsg): MsgUpdateClassMetadata; - toProto(message: MsgUpdateClassMetadata): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadata): MsgUpdateClassMetadataProtoMsg; -}; -export declare const MsgUpdateClassMetadataResponse: { - typeUrl: string; - encode(_: MsgUpdateClassMetadataResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateClassMetadataResponse; - fromPartial(_: Partial): MsgUpdateClassMetadataResponse; - fromAmino(_: MsgUpdateClassMetadataResponseAmino): MsgUpdateClassMetadataResponse; - toAmino(_: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseAmino; - fromAminoMsg(object: MsgUpdateClassMetadataResponseAminoMsg): MsgUpdateClassMetadataResponse; - fromProtoMsg(message: MsgUpdateClassMetadataResponseProtoMsg): MsgUpdateClassMetadataResponse; - toProto(message: MsgUpdateClassMetadataResponse): Uint8Array; - toProtoMsg(message: MsgUpdateClassMetadataResponse): MsgUpdateClassMetadataResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.js deleted file mode 100644 index 85ffdd5c..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.js +++ /dev/null @@ -1,1543 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgUpdateClassMetadataResponse = exports.MsgUpdateClassMetadata = exports.MsgUpdateClassIssuersResponse = exports.MsgUpdateClassIssuers = exports.MsgUpdateClassAdminResponse = exports.MsgUpdateClassAdmin = exports.MsgCancelResponse = exports.MsgCancel_CancelCredits = exports.MsgCancel = exports.MsgRetireResponse = exports.MsgRetire_RetireCredits = exports.MsgRetire = exports.MsgSendResponse = exports.MsgSend_SendCredits = exports.MsgSend = exports.MsgCreateBatchResponse = exports.MsgCreateBatch_BatchIssuance = exports.MsgCreateBatch = exports.MsgCreateClassResponse = exports.MsgCreateClass = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseMsgCreateClass() { - return { - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditTypeName: "" - }; -} -exports.MsgCreateClass = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(18).string(v); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - if (message.creditTypeName !== "") { - writer.uint32(34).string(message.creditTypeName); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.issuers.push(reader.string()); - break; - case 3: - message.metadata = reader.bytes(); - break; - case 4: - message.creditTypeName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClass(); - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditTypeName = object.creditTypeName ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClass(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - if (object.credit_type_name !== undefined && object.credit_type_name !== null) { - message.creditTypeName = object.credit_type_name; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - obj.credit_type_name = message.creditTypeName === "" ? undefined : message.creditTypeName; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClass.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateClass.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClass.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: exports.MsgCreateClass.encode(message).finish() - }; - } -}; -function createBaseMsgCreateClassResponse() { - return { - classId: "" - }; -} -exports.MsgCreateClassResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateClassResponse(); - message.classId = object.classId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateClassResponse(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateClassResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateClassResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateClassResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClassResponse", - value: exports.MsgCreateClassResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch() { - return { - issuer: "", - classId: "", - issuance: [], - metadata: new Uint8Array(), - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -exports.MsgCreateBatch = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.issuer !== "") { - writer.uint32(10).string(message.issuer); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuance) { - exports.MsgCreateBatch_BatchIssuance.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(42).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(50).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(58).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuance.push(exports.MsgCreateBatch_BatchIssuance.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch(); - message.issuer = object.issuer ?? ""; - message.classId = object.classId ?? ""; - message.issuance = object.issuance?.map(e => exports.MsgCreateBatch_BatchIssuance.fromPartial(e)) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch(); - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuance = object.issuance?.map(e => exports.MsgCreateBatch_BatchIssuance.fromAmino(e)) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuance) { - obj.issuance = message.issuance.map(e => e ? exports.MsgCreateBatch_BatchIssuance.toAmino(e) : undefined); - } - else { - obj.issuance = message.issuance; - } - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateBatch.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateBatch.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateBatch.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: exports.MsgCreateBatch.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatch_BatchIssuance() { - return { - recipient: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -exports.MsgCreateBatch_BatchIssuance = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.recipient !== "") { - writer.uint32(10).string(message.recipient); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatch_BatchIssuance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.recipient = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatch_BatchIssuance(); - message.recipient = object.recipient ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatch_BatchIssuance(); - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateBatch_BatchIssuance.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateBatch_BatchIssuance.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateBatch_BatchIssuance.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchIssuance", - value: exports.MsgCreateBatch_BatchIssuance.encode(message).finish() - }; - } -}; -function createBaseMsgCreateBatchResponse() { - return { - batchDenom: "" - }; -} -exports.MsgCreateBatchResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateBatchResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCreateBatchResponse(); - message.batchDenom = object.batchDenom ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCreateBatchResponse(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCreateBatchResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCreateBatchResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCreateBatchResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatchResponse", - value: exports.MsgCreateBatchResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSend() { - return { - sender: "", - recipient: "", - credits: [] - }; -} -exports.MsgSend = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.recipient !== "") { - writer.uint32(18).string(message.recipient); - } - for (const v of message.credits) { - exports.MsgSend_SendCredits.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.recipient = reader.string(); - break; - case 3: - message.credits.push(exports.MsgSend_SendCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend(); - message.sender = object.sender ?? ""; - message.recipient = object.recipient ?? ""; - message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend(); - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.recipient !== undefined && object.recipient !== null) { - message.recipient = object.recipient; - } - message.credits = object.credits?.map(e => exports.MsgSend_SendCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.recipient = message.recipient === "" ? undefined : message.recipient; - if (message.credits) { - obj.credits = message.credits.map(e => e ? exports.MsgSend_SendCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSend.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSend.decode(message.value); - }, - toProto(message) { - return exports.MsgSend.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: exports.MsgSend.encode(message).finish() - }; - } -}; -function createBaseMsgSend_SendCredits() { - return { - batchDenom: "", - tradableAmount: "", - retiredAmount: "", - retirementLocation: "" - }; -} -exports.MsgSend_SendCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.tradableAmount !== "") { - writer.uint32(18).string(message.tradableAmount); - } - if (message.retiredAmount !== "") { - writer.uint32(26).string(message.retiredAmount); - } - if (message.retirementLocation !== "") { - writer.uint32(34).string(message.retirementLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend_SendCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.tradableAmount = reader.string(); - break; - case 3: - message.retiredAmount = reader.string(); - break; - case 4: - message.retirementLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSend_SendCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.tradableAmount = object.tradableAmount ?? ""; - message.retiredAmount = object.retiredAmount ?? ""; - message.retirementLocation = object.retirementLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSend_SendCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.tradable_amount !== undefined && object.tradable_amount !== null) { - message.tradableAmount = object.tradable_amount; - } - if (object.retired_amount !== undefined && object.retired_amount !== null) { - message.retiredAmount = object.retired_amount; - } - if (object.retirement_location !== undefined && object.retirement_location !== null) { - message.retirementLocation = object.retirement_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.tradable_amount = message.tradableAmount === "" ? undefined : message.tradableAmount; - obj.retired_amount = message.retiredAmount === "" ? undefined : message.retiredAmount; - obj.retirement_location = message.retirementLocation === "" ? undefined : message.retirementLocation; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSend_SendCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSend_SendCredits.decode(message.value); - }, - toProto(message) { - return exports.MsgSend_SendCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.SendCredits", - value: exports.MsgSend_SendCredits.encode(message).finish() - }; - } -}; -function createBaseMsgSendResponse() { - return {}; -} -exports.MsgSendResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSendResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSendResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSendResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSendResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSendResponse", - value: exports.MsgSendResponse.encode(message).finish() - }; - } -}; -function createBaseMsgRetire() { - return { - holder: "", - credits: [], - location: "" - }; -} -exports.MsgRetire = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - exports.MsgRetire_RetireCredits.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.location !== "") { - writer.uint32(26).string(message.location); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(exports.MsgRetire_RetireCredits.decode(reader, reader.uint32())); - break; - case 3: - message.location = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => exports.MsgRetire_RetireCredits.fromPartial(e)) || []; - message.location = object.location ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => exports.MsgRetire_RetireCredits.fromAmino(e)) || []; - if (object.location !== undefined && object.location !== null) { - message.location = object.location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? exports.MsgRetire_RetireCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - obj.location = message.location === "" ? undefined : message.location; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRetire.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRetire.decode(message.value); - }, - toProto(message) { - return exports.MsgRetire.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: exports.MsgRetire.encode(message).finish() - }; - } -}; -function createBaseMsgRetire_RetireCredits() { - return { - batchDenom: "", - amount: "" - }; -} -exports.MsgRetire_RetireCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetire_RetireCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRetire_RetireCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRetire_RetireCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRetire_RetireCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRetire_RetireCredits.decode(message.value); - }, - toProto(message) { - return exports.MsgRetire_RetireCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.RetireCredits", - value: exports.MsgRetire_RetireCredits.encode(message).finish() - }; - } -}; -function createBaseMsgRetireResponse() { - return {}; -} -exports.MsgRetireResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRetireResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRetireResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRetireResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRetireResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRetireResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetireResponse", - value: exports.MsgRetireResponse.encode(message).finish() - }; - } -}; -function createBaseMsgCancel() { - return { - holder: "", - credits: [] - }; -} -exports.MsgCancel = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.holder !== "") { - writer.uint32(10).string(message.holder); - } - for (const v of message.credits) { - exports.MsgCancel_CancelCredits.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.holder = reader.string(); - break; - case 2: - message.credits.push(exports.MsgCancel_CancelCredits.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel(); - message.holder = object.holder ?? ""; - message.credits = object.credits?.map(e => exports.MsgCancel_CancelCredits.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel(); - if (object.holder !== undefined && object.holder !== null) { - message.holder = object.holder; - } - message.credits = object.credits?.map(e => exports.MsgCancel_CancelCredits.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.holder = message.holder === "" ? undefined : message.holder; - if (message.credits) { - obj.credits = message.credits.map(e => e ? exports.MsgCancel_CancelCredits.toAmino(e) : undefined); - } - else { - obj.credits = message.credits; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancel.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCancel.decode(message.value); - }, - toProto(message) { - return exports.MsgCancel.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: exports.MsgCancel.encode(message).finish() - }; - } -}; -function createBaseMsgCancel_CancelCredits() { - return { - batchDenom: "", - amount: "" - }; -} -exports.MsgCancel_CancelCredits = { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.batchDenom !== "") { - writer.uint32(10).string(message.batchDenom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancel_CancelCredits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.batchDenom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgCancel_CancelCredits(); - message.batchDenom = object.batchDenom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgCancel_CancelCredits(); - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.amount !== undefined && object.amount !== null) { - message.amount = object.amount; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.amount = message.amount === "" ? undefined : message.amount; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancel_CancelCredits.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCancel_CancelCredits.decode(message.value); - }, - toProto(message) { - return exports.MsgCancel_CancelCredits.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CancelCredits", - value: exports.MsgCancel_CancelCredits.encode(message).finish() - }; - } -}; -function createBaseMsgCancelResponse() { - return {}; -} -exports.MsgCancelResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCancelResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgCancelResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgCancelResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgCancelResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgCancelResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancelResponse", - value: exports.MsgCancelResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdmin() { - return { - admin: "", - classId: "", - newAdmin: "" - }; -} -exports.MsgUpdateClassAdmin = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassAdmin(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassAdmin(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.new_admin !== undefined && object.new_admin !== null) { - message.newAdmin = object.new_admin; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassAdmin.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassAdmin.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassAdmin.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: exports.MsgUpdateClassAdmin.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassAdminResponse() { - return {}; -} -exports.MsgUpdateClassAdminResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassAdminResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassAdminResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassAdminResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassAdminResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdminResponse", - value: exports.MsgUpdateClassAdminResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuers() { - return { - admin: "", - classId: "", - issuers: [] - }; -} -exports.MsgUpdateClassIssuers = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - for (const v of message.issuers) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassIssuers(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassIssuers(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - message.issuers = object.issuers?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassIssuers.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassIssuers.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassIssuers.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: exports.MsgUpdateClassIssuers.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassIssuersResponse() { - return {}; -} -exports.MsgUpdateClassIssuersResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassIssuersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassIssuersResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassIssuersResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassIssuersResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassIssuersResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuersResponse", - value: exports.MsgUpdateClassIssuersResponse.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadata() { - return { - admin: "", - classId: "", - metadata: new Uint8Array() - }; -} -exports.MsgUpdateClassMetadata = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.classId !== "") { - writer.uint32(18).string(message.classId); - } - if (message.metadata.length !== 0) { - writer.uint32(26).bytes(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.classId = reader.string(); - break; - case 3: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgUpdateClassMetadata(); - message.admin = object.admin ?? ""; - message.classId = object.classId ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseMsgUpdateClassMetadata(); - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.admin = message.admin === "" ? undefined : message.admin; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassMetadata.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassMetadata.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassMetadata.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: exports.MsgUpdateClassMetadata.encode(message).finish() - }; - } -}; -function createBaseMsgUpdateClassMetadataResponse() { - return {}; -} -exports.MsgUpdateClassMetadataResponse = { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateClassMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgUpdateClassMetadataResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgUpdateClassMetadataResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgUpdateClassMetadataResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgUpdateClassMetadataResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadataResponse", - value: exports.MsgUpdateClassMetadataResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts deleted file mode 100644 index 3401b090..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateClass, MsgCreateBatch, MsgSend, MsgRetire, MsgCancel, MsgUpdateClassAdmin, MsgUpdateClassIssuers, MsgUpdateClassMetadata } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: Uint8Array; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: Uint8Array; - }; - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: Uint8Array; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: Uint8Array; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: Uint8Array; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - }; - fromPartial: { - createClass(value: MsgCreateClass): { - typeUrl: string; - value: MsgCreateClass; - }; - createBatch(value: MsgCreateBatch): { - typeUrl: string; - value: MsgCreateBatch; - }; - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - retire(value: MsgRetire): { - typeUrl: string; - value: MsgRetire; - }; - cancel(value: MsgCancel): { - typeUrl: string; - value: MsgCancel; - }; - updateClassAdmin(value: MsgUpdateClassAdmin): { - typeUrl: string; - value: MsgUpdateClassAdmin; - }; - updateClassIssuers(value: MsgUpdateClassIssuers): { - typeUrl: string; - value: MsgUpdateClassIssuers; - }; - updateClassMetadata(value: MsgUpdateClassMetadata): { - typeUrl: string; - value: MsgUpdateClassMetadata; - }; - }; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js deleted file mode 100644 index 4da252ef..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.registry.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.ecocredit.v1alpha1.MsgCreateClass", tx_1.MsgCreateClass], ["/regen.ecocredit.v1alpha1.MsgCreateBatch", tx_1.MsgCreateBatch], ["/regen.ecocredit.v1alpha1.MsgSend", tx_1.MsgSend], ["/regen.ecocredit.v1alpha1.MsgRetire", tx_1.MsgRetire], ["/regen.ecocredit.v1alpha1.MsgCancel", tx_1.MsgCancel], ["/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", tx_1.MsgUpdateClassAdmin], ["/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", tx_1.MsgUpdateClassIssuers], ["/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", tx_1.MsgUpdateClassMetadata]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: tx_1.MsgCreateClass.encode(value).finish() - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: tx_1.MsgCreateBatch.encode(value).finish() - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: tx_1.MsgSend.encode(value).finish() - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: tx_1.MsgRetire.encode(value).finish() - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: tx_1.MsgCancel.encode(value).finish() - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: tx_1.MsgUpdateClassAdmin.encode(value).finish() - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: tx_1.MsgUpdateClassIssuers.encode(value).finish() - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: tx_1.MsgUpdateClassMetadata.encode(value).finish() - }; - } - }, - withTypeUrl: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value - }; - } - }, - fromPartial: { - createClass(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateClass", - value: tx_1.MsgCreateClass.fromPartial(value) - }; - }, - createBatch(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCreateBatch", - value: tx_1.MsgCreateBatch.fromPartial(value) - }; - }, - send(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgSend", - value: tx_1.MsgSend.fromPartial(value) - }; - }, - retire(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgRetire", - value: tx_1.MsgRetire.fromPartial(value) - }; - }, - cancel(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgCancel", - value: tx_1.MsgCancel.fromPartial(value) - }; - }, - updateClassAdmin(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassAdmin", - value: tx_1.MsgUpdateClassAdmin.fromPartial(value) - }; - }, - updateClassIssuers(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassIssuers", - value: tx_1.MsgUpdateClassIssuers.fromPartial(value) - }; - }, - updateClassMetadata(value) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.MsgUpdateClassMetadata", - value: tx_1.MsgUpdateClassMetadata.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts deleted file mode 100644 index bc4794c1..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgCreateClass, MsgCreateClassResponse, MsgCreateBatch, MsgCreateBatchResponse, MsgSend, MsgSendResponse, MsgRetire, MsgRetireResponse, MsgCancel, MsgCancelResponse, MsgUpdateClassAdmin, MsgUpdateClassAdminResponse, MsgUpdateClassIssuers, MsgUpdateClassIssuersResponse, MsgUpdateClassMetadata, MsgUpdateClassMetadataResponse } from "./tx"; -/** Msg is the regen.ecocredit.v1alpha1 Msg service. */ -export interface Msg { - /** - * CreateClass creates a new credit class with an approved list of issuers and - * optional metadata. - */ - createClass(request: MsgCreateClass): Promise; - /** - * CreateBatch creates a new batch of credits for an existing credit class. - * This will create a new batch denom with a fixed supply. Issued credits can - * be distributed to recipients in either tradable or retired form. - */ - createBatch(request: MsgCreateBatch): Promise; - /** - * Send sends tradable credits from one account to another account. Sent - * credits can either be tradable or retired on receipt. - */ - send(request: MsgSend): Promise; - /** Retire retires a specified number of credits in the holder's account. */ - retire(request: MsgRetire): Promise; - /** - * Cancel removes a number of credits from the holder's account and also - * deducts them from the tradable supply, effectively cancelling their - * issuance on Regen Ledger - */ - cancel(request: MsgCancel): Promise; - /** UpdateClassAdmin updates the credit class admin */ - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - /** UpdateClassIssuers updates the credit class issuer list */ - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - /** UpdateClassMetadata updates the credit class metadata */ - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createClass(request: MsgCreateClass): Promise; - createBatch(request: MsgCreateBatch): Promise; - send(request: MsgSend): Promise; - retire(request: MsgRetire): Promise; - cancel(request: MsgCancel): Promise; - updateClassAdmin(request: MsgUpdateClassAdmin): Promise; - updateClassIssuers(request: MsgUpdateClassIssuers): Promise; - updateClassMetadata(request: MsgUpdateClassMetadata): Promise; -} diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js b/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js deleted file mode 100644 index 48407e31..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/tx.rpc.msg.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.createClass = this.createClass.bind(this); - this.createBatch = this.createBatch.bind(this); - this.send = this.send.bind(this); - this.retire = this.retire.bind(this); - this.cancel = this.cancel.bind(this); - this.updateClassAdmin = this.updateClassAdmin.bind(this); - this.updateClassIssuers = this.updateClassIssuers.bind(this); - this.updateClassMetadata = this.updateClassMetadata.bind(this); - } - createClass(request) { - const data = tx_1.MsgCreateClass.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateClass", data); - return promise.then(data => tx_1.MsgCreateClassResponse.decode(new binary_1.BinaryReader(data))); - } - createBatch(request) { - const data = tx_1.MsgCreateBatch.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "CreateBatch", data); - return promise.then(data => tx_1.MsgCreateBatchResponse.decode(new binary_1.BinaryReader(data))); - } - send(request) { - const data = tx_1.MsgSend.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Send", data); - return promise.then(data => tx_1.MsgSendResponse.decode(new binary_1.BinaryReader(data))); - } - retire(request) { - const data = tx_1.MsgRetire.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Retire", data); - return promise.then(data => tx_1.MsgRetireResponse.decode(new binary_1.BinaryReader(data))); - } - cancel(request) { - const data = tx_1.MsgCancel.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "Cancel", data); - return promise.then(data => tx_1.MsgCancelResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassAdmin(request) { - const data = tx_1.MsgUpdateClassAdmin.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassAdmin", data); - return promise.then(data => tx_1.MsgUpdateClassAdminResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassIssuers(request) { - const data = tx_1.MsgUpdateClassIssuers.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassIssuers", data); - return promise.then(data => tx_1.MsgUpdateClassIssuersResponse.decode(new binary_1.BinaryReader(data))); - } - updateClassMetadata(request) { - const data = tx_1.MsgUpdateClassMetadata.encode(request).finish(); - const promise = this.rpc.request("regen.ecocredit.v1alpha1.Msg", "UpdateClassMetadata", data); - return promise.then(data => tx_1.MsgUpdateClassMetadataResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts b/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts deleted file mode 100644 index 799750e5..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/types.d.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** admin is the admin of the credit class. */ - admin: string; - /** issuers are the approved issuers of the credit class. */ - issuers: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata: Uint8Array; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - creditType?: CreditType; - /** The number of batches issued in this credit class. */ - numBatches: bigint; -} -export interface ClassInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: Uint8Array; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** admin is the admin of the credit class. */ - admin?: string; - /** issuers are the approved issuers of the credit class. */ - issuers?: string[]; - /** metadata is any arbitrary metadata to attached to the credit class. */ - metadata?: string; - /** - * credit_type describes the type of credit (e.g. carbon, biodiversity), as - * well as unit and precision. - */ - credit_type?: CreditTypeAmino; - /** The number of batches issued in this credit class. */ - num_batches?: string; -} -export interface ClassInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.ClassInfo"; - value: ClassInfoAmino; -} -/** ClassInfo represents the high-level on-chain information for a credit class. */ -export interface ClassInfoSDKType { - class_id: string; - admin: string; - issuers: string[]; - metadata: Uint8Array; - credit_type?: CreditTypeSDKType; - num_batches: bigint; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfo { - /** class_id is the unique ID of credit class. */ - classId: string; - /** batch_denom is the unique ID of credit batch. */ - batchDenom: string; - /** issuer is the issuer of the credit batch. */ - issuer: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - totalAmount: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata: Uint8Array; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amountCancelled: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - startDate?: Date; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - endDate?: Date; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - projectLocation: string; -} -export interface BatchInfoProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: Uint8Array; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoAmino { - /** class_id is the unique ID of credit class. */ - class_id?: string; - /** batch_denom is the unique ID of credit batch. */ - batch_denom?: string; - /** issuer is the issuer of the credit batch. */ - issuer?: string; - /** - * total_amount is the total number of active credits in the credit batch. - * Some of the issued credits may be cancelled and will be removed from - * total_amount and tracked in amount_cancelled. total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - total_amount?: string; - /** metadata is any arbitrary metadata attached to the credit batch. */ - metadata?: string; - /** - * amount_cancelled is the number of credits in the batch that have been - * cancelled, effectively undoing there issuance. The sum of total_amount and - * amount_cancelled will always sum to the original amount of credits that - * were issued. - */ - amount_cancelled?: string; - /** - * start_date is the beginning of the period during which this credit batch - * was quantified and verified. - */ - start_date?: string; - /** - * end_date is the end of the period during which this credit batch was - * quantified and verified. - */ - end_date?: string; - /** - * project_location is the location of the project backing the credits in this - * batch. Full documentation can be found in MsgCreateBatch.project_location. - */ - project_location?: string; -} -export interface BatchInfoAminoMsg { - type: "/regen.ecocredit.v1alpha1.BatchInfo"; - value: BatchInfoAmino; -} -/** BatchInfo represents the high-level on-chain information for a credit batch. */ -export interface BatchInfoSDKType { - class_id: string; - batch_denom: string; - issuer: string; - total_amount: string; - metadata: Uint8Array; - amount_cancelled: string; - start_date?: Date; - end_date?: Date; - project_location: string; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface Params { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - creditClassFee: Coin[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowedClassCreators: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlistEnabled: boolean; - /** credit_types is a list of definitions for credit types */ - creditTypes: CreditType[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basketCreationFee: Coin[]; -} -export interface ParamsProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.Params"; - value: Uint8Array; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsAmino { - /** credit_class_fee is the fixed fee charged on creation of a new credit class */ - credit_class_fee?: CoinAmino[]; - /** - * allowed_class_creators is an allowlist defining the addresses with - * the required permissions to create credit classes - */ - allowed_class_creators?: string[]; - /** - * allowlist_enabled is a param that enables/disables the allowlist for credit - * creation - */ - allowlist_enabled?: boolean; - /** credit_types is a list of definitions for credit types */ - credit_types?: CreditTypeAmino[]; - /** basket_creation_fee is the fee to create a new basket denom. */ - basket_creation_fee?: CoinAmino[]; -} -export interface ParamsAminoMsg { - type: "/regen.ecocredit.v1alpha1.Params"; - value: ParamsAmino; -} -/** - * Params defines the updatable global parameters of the ecocredit module for - * use with the x/params module. - */ -export interface ParamsSDKType { - credit_class_fee: CoinSDKType[]; - allowed_class_creators: string[]; - allowlist_enabled: boolean; - credit_types: CreditTypeSDKType[]; - basket_creation_fee: CoinSDKType[]; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditType { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit: string; - /** the decimal precision */ - precision: number; -} -export interface CreditTypeProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType"; - value: Uint8Array; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeAmino { - /** the type of credit (e.g. carbon, biodiversity, etc) */ - name?: string; - /** - * abbreviation is a 1-3 character uppercase abbreviation of the CreditType - * name, used in batch denominations within the CreditType. It must be unique. - */ - abbreviation?: string; - /** the measurement unit (e.g. kg, ton, etc) */ - unit?: string; - /** the decimal precision */ - precision?: number; -} -export interface CreditTypeAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditType"; - value: CreditTypeAmino; -} -/** - * CreditType defines the measurement unit/precision of a certain credit type - * (e.g. carbon, biodiversity...) - */ -export interface CreditTypeSDKType { - name: string; - abbreviation: string; - unit: string; - precision: number; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeq { - /** The credit type abbreviation */ - abbreviation: string; - /** The sequence number of classes of the credit type */ - seqNumber: bigint; -} -export interface CreditTypeSeqProtoMsg { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: Uint8Array; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqAmino { - /** The credit type abbreviation */ - abbreviation?: string; - /** The sequence number of classes of the credit type */ - seq_number?: string; -} -export interface CreditTypeSeqAminoMsg { - type: "/regen.ecocredit.v1alpha1.CreditTypeSeq"; - value: CreditTypeSeqAmino; -} -/** - * CreditTypeSeq associates a sequence number with a credit type abbreviation. - * This represents the number of credit classes created with that credit type. - */ -export interface CreditTypeSeqSDKType { - abbreviation: string; - seq_number: bigint; -} -export declare const ClassInfo: { - typeUrl: string; - encode(message: ClassInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ClassInfo; - fromPartial(object: Partial): ClassInfo; - fromAmino(object: ClassInfoAmino): ClassInfo; - toAmino(message: ClassInfo): ClassInfoAmino; - fromAminoMsg(object: ClassInfoAminoMsg): ClassInfo; - fromProtoMsg(message: ClassInfoProtoMsg): ClassInfo; - toProto(message: ClassInfo): Uint8Array; - toProtoMsg(message: ClassInfo): ClassInfoProtoMsg; -}; -export declare const BatchInfo: { - typeUrl: string; - encode(message: BatchInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BatchInfo; - fromPartial(object: Partial): BatchInfo; - fromAmino(object: BatchInfoAmino): BatchInfo; - toAmino(message: BatchInfo): BatchInfoAmino; - fromAminoMsg(object: BatchInfoAminoMsg): BatchInfo; - fromProtoMsg(message: BatchInfoProtoMsg): BatchInfo; - toProto(message: BatchInfo): Uint8Array; - toProtoMsg(message: BatchInfo): BatchInfoProtoMsg; -}; -export declare const Params: { - typeUrl: string; - encode(message: Params, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Params; - fromPartial(object: Partial): Params; - fromAmino(object: ParamsAmino): Params; - toAmino(message: Params): ParamsAmino; - fromAminoMsg(object: ParamsAminoMsg): Params; - fromProtoMsg(message: ParamsProtoMsg): Params; - toProto(message: Params): Uint8Array; - toProtoMsg(message: Params): ParamsProtoMsg; -}; -export declare const CreditType: { - typeUrl: string; - encode(message: CreditType, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditType; - fromPartial(object: Partial): CreditType; - fromAmino(object: CreditTypeAmino): CreditType; - toAmino(message: CreditType): CreditTypeAmino; - fromAminoMsg(object: CreditTypeAminoMsg): CreditType; - fromProtoMsg(message: CreditTypeProtoMsg): CreditType; - toProto(message: CreditType): Uint8Array; - toProtoMsg(message: CreditType): CreditTypeProtoMsg; -}; -export declare const CreditTypeSeq: { - typeUrl: string; - encode(message: CreditTypeSeq, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CreditTypeSeq; - fromPartial(object: Partial): CreditTypeSeq; - fromAmino(object: CreditTypeSeqAmino): CreditTypeSeq; - toAmino(message: CreditTypeSeq): CreditTypeSeqAmino; - fromAminoMsg(object: CreditTypeSeqAminoMsg): CreditTypeSeq; - fromProtoMsg(message: CreditTypeSeqProtoMsg): CreditTypeSeq; - toProto(message: CreditTypeSeq): Uint8Array; - toProtoMsg(message: CreditTypeSeq): CreditTypeSeqProtoMsg; -}; diff --git a/packages/api/dist/regen/ecocredit/v1alpha1/types.js b/packages/api/dist/regen/ecocredit/v1alpha1/types.js deleted file mode 100644 index 971c1665..00000000 --- a/packages/api/dist/regen/ecocredit/v1alpha1/types.js +++ /dev/null @@ -1,590 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreditTypeSeq = exports.CreditType = exports.Params = exports.BatchInfo = exports.ClassInfo = void 0; -//@ts-nocheck -const timestamp_1 = require("../../../google/protobuf/timestamp"); -const coin_1 = require("../../../cosmos/base/v1beta1/coin"); -const binary_1 = require("../../../binary"); -const helpers_1 = require("../../../helpers"); -function createBaseClassInfo() { - return { - classId: "", - admin: "", - issuers: [], - metadata: new Uint8Array(), - creditType: undefined, - numBatches: BigInt(0) - }; -} -exports.ClassInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - for (const v of message.issuers) { - writer.uint32(26).string(v); - } - if (message.metadata.length !== 0) { - writer.uint32(34).bytes(message.metadata); - } - if (message.creditType !== undefined) { - exports.CreditType.encode(message.creditType, writer.uint32(42).fork()).ldelim(); - } - if (message.numBatches !== BigInt(0)) { - writer.uint32(48).uint64(message.numBatches); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClassInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.issuers.push(reader.string()); - break; - case 4: - message.metadata = reader.bytes(); - break; - case 5: - message.creditType = exports.CreditType.decode(reader, reader.uint32()); - break; - case 6: - message.numBatches = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseClassInfo(); - message.classId = object.classId ?? ""; - message.admin = object.admin ?? ""; - message.issuers = object.issuers?.map(e => e) || []; - message.metadata = object.metadata ?? new Uint8Array(); - message.creditType = object.creditType !== undefined && object.creditType !== null ? exports.CreditType.fromPartial(object.creditType) : undefined; - message.numBatches = object.numBatches !== undefined && object.numBatches !== null ? BigInt(object.numBatches.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseClassInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.admin !== undefined && object.admin !== null) { - message.admin = object.admin; - } - message.issuers = object.issuers?.map(e => e) || []; - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - if (object.credit_type !== undefined && object.credit_type !== null) { - message.creditType = exports.CreditType.fromAmino(object.credit_type); - } - if (object.num_batches !== undefined && object.num_batches !== null) { - message.numBatches = BigInt(object.num_batches); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.admin = message.admin === "" ? undefined : message.admin; - if (message.issuers) { - obj.issuers = message.issuers.map(e => e); - } - else { - obj.issuers = message.issuers; - } - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - obj.credit_type = message.creditType ? exports.CreditType.toAmino(message.creditType) : undefined; - obj.num_batches = message.numBatches !== BigInt(0) ? message.numBatches.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ClassInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ClassInfo.decode(message.value); - }, - toProto(message) { - return exports.ClassInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.ClassInfo", - value: exports.ClassInfo.encode(message).finish() - }; - } -}; -function createBaseBatchInfo() { - return { - classId: "", - batchDenom: "", - issuer: "", - totalAmount: "", - metadata: new Uint8Array(), - amountCancelled: "", - startDate: undefined, - endDate: undefined, - projectLocation: "" - }; -} -exports.BatchInfo = { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.batchDenom !== "") { - writer.uint32(18).string(message.batchDenom); - } - if (message.issuer !== "") { - writer.uint32(26).string(message.issuer); - } - if (message.totalAmount !== "") { - writer.uint32(34).string(message.totalAmount); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - if (message.amountCancelled !== "") { - writer.uint32(50).string(message.amountCancelled); - } - if (message.startDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startDate), writer.uint32(58).fork()).ldelim(); - } - if (message.endDate !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endDate), writer.uint32(66).fork()).ldelim(); - } - if (message.projectLocation !== "") { - writer.uint32(74).string(message.projectLocation); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBatchInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.batchDenom = reader.string(); - break; - case 3: - message.issuer = reader.string(); - break; - case 4: - message.totalAmount = reader.string(); - break; - case 5: - message.metadata = reader.bytes(); - break; - case 6: - message.amountCancelled = reader.string(); - break; - case 7: - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 8: - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.projectLocation = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBatchInfo(); - message.classId = object.classId ?? ""; - message.batchDenom = object.batchDenom ?? ""; - message.issuer = object.issuer ?? ""; - message.totalAmount = object.totalAmount ?? ""; - message.metadata = object.metadata ?? new Uint8Array(); - message.amountCancelled = object.amountCancelled ?? ""; - message.startDate = object.startDate ?? undefined; - message.endDate = object.endDate ?? undefined; - message.projectLocation = object.projectLocation ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseBatchInfo(); - if (object.class_id !== undefined && object.class_id !== null) { - message.classId = object.class_id; - } - if (object.batch_denom !== undefined && object.batch_denom !== null) { - message.batchDenom = object.batch_denom; - } - if (object.issuer !== undefined && object.issuer !== null) { - message.issuer = object.issuer; - } - if (object.total_amount !== undefined && object.total_amount !== null) { - message.totalAmount = object.total_amount; - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - if (object.amount_cancelled !== undefined && object.amount_cancelled !== null) { - message.amountCancelled = object.amount_cancelled; - } - if (object.start_date !== undefined && object.start_date !== null) { - message.startDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_date)); - } - if (object.end_date !== undefined && object.end_date !== null) { - message.endDate = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_date)); - } - if (object.project_location !== undefined && object.project_location !== null) { - message.projectLocation = object.project_location; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.class_id = message.classId === "" ? undefined : message.classId; - obj.batch_denom = message.batchDenom === "" ? undefined : message.batchDenom; - obj.issuer = message.issuer === "" ? undefined : message.issuer; - obj.total_amount = message.totalAmount === "" ? undefined : message.totalAmount; - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - obj.amount_cancelled = message.amountCancelled === "" ? undefined : message.amountCancelled; - obj.start_date = message.startDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startDate)) : undefined; - obj.end_date = message.endDate ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endDate)) : undefined; - obj.project_location = message.projectLocation === "" ? undefined : message.projectLocation; - return obj; - }, - fromAminoMsg(object) { - return exports.BatchInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BatchInfo.decode(message.value); - }, - toProto(message) { - return exports.BatchInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.BatchInfo", - value: exports.BatchInfo.encode(message).finish() - }; - } -}; -function createBaseParams() { - return { - creditClassFee: [], - allowedClassCreators: [], - allowlistEnabled: false, - creditTypes: [], - basketCreationFee: [] - }; -} -exports.Params = { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.creditClassFee) { - coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedClassCreators) { - writer.uint32(18).string(v); - } - if (message.allowlistEnabled === true) { - writer.uint32(24).bool(message.allowlistEnabled); - } - for (const v of message.creditTypes) { - exports.CreditType.encode(v, writer.uint32(34).fork()).ldelim(); - } - for (const v of message.basketCreationFee) { - coin_1.Coin.encode(v, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.creditClassFee.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - case 2: - message.allowedClassCreators.push(reader.string()); - break; - case 3: - message.allowlistEnabled = reader.bool(); - break; - case 4: - message.creditTypes.push(exports.CreditType.decode(reader, reader.uint32())); - break; - case 5: - message.basketCreationFee.push(coin_1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseParams(); - message.creditClassFee = object.creditClassFee?.map(e => coin_1.Coin.fromPartial(e)) || []; - message.allowedClassCreators = object.allowedClassCreators?.map(e => e) || []; - message.allowlistEnabled = object.allowlistEnabled ?? false; - message.creditTypes = object.creditTypes?.map(e => exports.CreditType.fromPartial(e)) || []; - message.basketCreationFee = object.basketCreationFee?.map(e => coin_1.Coin.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseParams(); - message.creditClassFee = object.credit_class_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; - message.allowedClassCreators = object.allowed_class_creators?.map(e => e) || []; - if (object.allowlist_enabled !== undefined && object.allowlist_enabled !== null) { - message.allowlistEnabled = object.allowlist_enabled; - } - message.creditTypes = object.credit_types?.map(e => exports.CreditType.fromAmino(e)) || []; - message.basketCreationFee = object.basket_creation_fee?.map(e => coin_1.Coin.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.creditClassFee) { - obj.credit_class_fee = message.creditClassFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.credit_class_fee = message.creditClassFee; - } - if (message.allowedClassCreators) { - obj.allowed_class_creators = message.allowedClassCreators.map(e => e); - } - else { - obj.allowed_class_creators = message.allowedClassCreators; - } - obj.allowlist_enabled = message.allowlistEnabled === false ? undefined : message.allowlistEnabled; - if (message.creditTypes) { - obj.credit_types = message.creditTypes.map(e => e ? exports.CreditType.toAmino(e) : undefined); - } - else { - obj.credit_types = message.creditTypes; - } - if (message.basketCreationFee) { - obj.basket_creation_fee = message.basketCreationFee.map(e => e ? coin_1.Coin.toAmino(e) : undefined); - } - else { - obj.basket_creation_fee = message.basketCreationFee; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Params.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Params.decode(message.value); - }, - toProto(message) { - return exports.Params.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.Params", - value: exports.Params.encode(message).finish() - }; - } -}; -function createBaseCreditType() { - return { - name: "", - abbreviation: "", - unit: "", - precision: 0 - }; -} -exports.CreditType = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.abbreviation !== "") { - writer.uint32(18).string(message.abbreviation); - } - if (message.unit !== "") { - writer.uint32(26).string(message.unit); - } - if (message.precision !== 0) { - writer.uint32(32).uint32(message.precision); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditType(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.abbreviation = reader.string(); - break; - case 3: - message.unit = reader.string(); - break; - case 4: - message.precision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditType(); - message.name = object.name ?? ""; - message.abbreviation = object.abbreviation ?? ""; - message.unit = object.unit ?? ""; - message.precision = object.precision ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseCreditType(); - if (object.name !== undefined && object.name !== null) { - message.name = object.name; - } - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.unit !== undefined && object.unit !== null) { - message.unit = object.unit; - } - if (object.precision !== undefined && object.precision !== null) { - message.precision = object.precision; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.name = message.name === "" ? undefined : message.name; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.unit = message.unit === "" ? undefined : message.unit; - obj.precision = message.precision === 0 ? undefined : message.precision; - return obj; - }, - fromAminoMsg(object) { - return exports.CreditType.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CreditType.decode(message.value); - }, - toProto(message) { - return exports.CreditType.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditType", - value: exports.CreditType.encode(message).finish() - }; - } -}; -function createBaseCreditTypeSeq() { - return { - abbreviation: "", - seqNumber: BigInt(0) - }; -} -exports.CreditTypeSeq = { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.abbreviation !== "") { - writer.uint32(10).string(message.abbreviation); - } - if (message.seqNumber !== BigInt(0)) { - writer.uint32(16).uint64(message.seqNumber); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCreditTypeSeq(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.abbreviation = reader.string(); - break; - case 2: - message.seqNumber = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCreditTypeSeq(); - message.abbreviation = object.abbreviation ?? ""; - message.seqNumber = object.seqNumber !== undefined && object.seqNumber !== null ? BigInt(object.seqNumber.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseCreditTypeSeq(); - if (object.abbreviation !== undefined && object.abbreviation !== null) { - message.abbreviation = object.abbreviation; - } - if (object.seq_number !== undefined && object.seq_number !== null) { - message.seqNumber = BigInt(object.seq_number); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.abbreviation = message.abbreviation === "" ? undefined : message.abbreviation; - obj.seq_number = message.seqNumber !== BigInt(0) ? message.seqNumber.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.CreditTypeSeq.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CreditTypeSeq.decode(message.value); - }, - toProto(message) { - return exports.CreditTypeSeq.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.ecocredit.v1alpha1.CreditTypeSeq", - value: exports.CreditTypeSeq.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/intertx/v1/query.d.ts b/packages/api/dist/regen/intertx/v1/query.d.ts deleted file mode 100644 index 4aed74b8..00000000 --- a/packages/api/dist/regen/intertx/v1/query.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequest { - /** owner is the address of the account that owns the ICA. */ - owner: string; - /** connection_id is the connection the ICA claimed. */ - connectionId: string; -} -export interface QueryInterchainAccountRequestProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: Uint8Array; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestAmino { - /** owner is the address of the account that owns the ICA. */ - owner?: string; - /** connection_id is the connection the ICA claimed. */ - connection_id?: string; -} -export interface QueryInterchainAccountRequestAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountRequest"; - value: QueryInterchainAccountRequestAmino; -} -/** - * QueryInterchainAccountRequest is the request type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountRequestSDKType { - owner: string; - connection_id: string; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponse { - /** interchain_account_address is the address of the ICA. */ - interchainAccountAddress: string; -} -export interface QueryInterchainAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: Uint8Array; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseAmino { - /** interchain_account_address is the address of the ICA. */ - interchain_account_address?: string; -} -export interface QueryInterchainAccountResponseAminoMsg { - type: "/regen.intertx.v1.QueryInterchainAccountResponse"; - value: QueryInterchainAccountResponseAmino; -} -/** - * QueryInterchainAccountResponse the response type for the - * Query/InterchainAccountAddress RPC - */ -export interface QueryInterchainAccountResponseSDKType { - interchain_account_address: string; -} -export declare const QueryInterchainAccountRequest: { - typeUrl: string; - encode(message: QueryInterchainAccountRequest, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest; - fromPartial(object: Partial): QueryInterchainAccountRequest; - fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest; - toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino; - fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest; - fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest; - toProto(message: QueryInterchainAccountRequest): Uint8Array; - toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg; -}; -export declare const QueryInterchainAccountResponse: { - typeUrl: string; - encode(message: QueryInterchainAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse; - fromPartial(object: Partial): QueryInterchainAccountResponse; - fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse; - toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino; - fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse; - fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse; - toProto(message: QueryInterchainAccountResponse): Uint8Array; - toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/intertx/v1/query.js b/packages/api/dist/regen/intertx/v1/query.js deleted file mode 100644 index f1290f1b..00000000 --- a/packages/api/dist/regen/intertx/v1/query.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueryInterchainAccountResponse = exports.QueryInterchainAccountRequest = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseQueryInterchainAccountRequest() { - return { - owner: "", - connectionId: "" - }; -} -exports.QueryInterchainAccountRequest = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInterchainAccountRequest(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryInterchainAccountRequest(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryInterchainAccountRequest.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryInterchainAccountRequest.decode(message.value); - }, - toProto(message) { - return exports.QueryInterchainAccountRequest.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountRequest", - value: exports.QueryInterchainAccountRequest.encode(message).finish() - }; - } -}; -function createBaseQueryInterchainAccountResponse() { - return { - interchainAccountAddress: "" - }; -} -exports.QueryInterchainAccountResponse = { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.interchainAccountAddress !== "") { - writer.uint32(10).string(message.interchainAccountAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInterchainAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interchainAccountAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseQueryInterchainAccountResponse(); - message.interchainAccountAddress = object.interchainAccountAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseQueryInterchainAccountResponse(); - if (object.interchain_account_address !== undefined && object.interchain_account_address !== null) { - message.interchainAccountAddress = object.interchain_account_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.interchain_account_address = message.interchainAccountAddress === "" ? undefined : message.interchainAccountAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.QueryInterchainAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.QueryInterchainAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.QueryInterchainAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.QueryInterchainAccountResponse", - value: exports.QueryInterchainAccountResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/intertx/v1/query.lcd.d.ts b/packages/api/dist/regen/intertx/v1/query.lcd.d.ts deleted file mode 100644 index 54d4635a..00000000 --- a/packages/api/dist/regen/intertx/v1/query.lcd.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { LCDClient } from "@cosmology/lcd"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - interchainAccount(params: QueryInterchainAccountRequest): Promise; -} diff --git a/packages/api/dist/regen/intertx/v1/query.lcd.js b/packages/api/dist/regen/intertx/v1/query.lcd.js deleted file mode 100644 index 902d44e5..00000000 --- a/packages/api/dist/regen/intertx/v1/query.lcd.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LCDQueryClient = void 0; -class LCDQueryClient { - req; - constructor({ requestClient }) { - this.req = requestClient; - this.interchainAccount = this.interchainAccount.bind(this); - } - /* QueryInterchainAccount returns the interchain account for given owner - address on a given connection pair */ - async interchainAccount(params) { - const endpoint = `regen/intertx/v1/interchain-account/${params.owner}/${params.connectionId}`; - return await this.req.get(endpoint); - } -} -exports.LCDQueryClient = LCDQueryClient; diff --git a/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts b/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts deleted file mode 100644 index f78e9e39..00000000 --- a/packages/api/dist/regen/intertx/v1/query.rpc.Query.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryInterchainAccountRequest, QueryInterchainAccountResponse } from "./query"; -/** Query defines the gRPC querier service. */ -export interface Query { - /** - * QueryInterchainAccount returns the interchain account for given owner - * address on a given connection pair - */ - interchainAccount(request: QueryInterchainAccountRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - interchainAccount(request: QueryInterchainAccountRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - interchainAccount(request: QueryInterchainAccountRequest): Promise; -}; diff --git a/packages/api/dist/regen/intertx/v1/query.rpc.Query.js b/packages/api/dist/regen/intertx/v1/query.rpc.Query.js deleted file mode 100644 index ef97951b..00000000 --- a/packages/api/dist/regen/intertx/v1/query.rpc.Query.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRpcQueryExtension = exports.QueryClientImpl = void 0; -const binary_1 = require("../../../binary"); -const stargate_1 = require("@cosmjs/stargate"); -const query_1 = require("./query"); -class QueryClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.interchainAccount = this.interchainAccount.bind(this); - } - interchainAccount(request) { - const data = query_1.QueryInterchainAccountRequest.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Query", "InterchainAccount", data); - return promise.then(data => query_1.QueryInterchainAccountResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.QueryClientImpl = QueryClientImpl; -const createRpcQueryExtension = (base) => { - const rpc = (0, stargate_1.createProtobufRpcClient)(base); - const queryService = new QueryClientImpl(rpc); - return { - interchainAccount(request) { - return queryService.interchainAccount(request); - } - }; -}; -exports.createRpcQueryExtension = createRpcQueryExtension; diff --git a/packages/api/dist/regen/intertx/v1/tx.amino.d.ts b/packages/api/dist/regen/intertx/v1/tx.amino.d.ts deleted file mode 100644 index a9d30d0e..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.amino.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export declare const AminoConverter: { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: string; - toAmino: (message: MsgRegisterAccount) => import("./tx").MsgRegisterAccountAmino; - fromAmino: (object: import("./tx").MsgRegisterAccountAmino) => MsgRegisterAccount; - }; - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: string; - toAmino: (message: MsgSubmitTx) => import("./tx").MsgSubmitTxAmino; - fromAmino: (object: import("./tx").MsgSubmitTxAmino) => MsgSubmitTx; - }; -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.amino.js b/packages/api/dist/regen/intertx/v1/tx.amino.js deleted file mode 100644 index 0ef57607..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.amino.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AminoConverter = void 0; -//@ts-nocheck -const tx_1 = require("./tx"); -exports.AminoConverter = { - "/regen.intertx.v1.MsgRegisterAccount": { - aminoType: "/regen.intertx.v1.MsgRegisterAccount", - toAmino: tx_1.MsgRegisterAccount.toAmino, - fromAmino: tx_1.MsgRegisterAccount.fromAmino - }, - "/regen.intertx.v1.MsgSubmitTx": { - aminoType: "/regen.intertx.v1.MsgSubmitTx", - toAmino: tx_1.MsgSubmitTx.toAmino, - fromAmino: tx_1.MsgSubmitTx.fromAmino - } -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.d.ts b/packages/api/dist/regen/intertx/v1/tx.d.ts deleted file mode 100644 index ddc17964..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.d.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { BinaryReader, BinaryWriter } from "../../../binary"; -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccount { - /** owner is the address of the interchain account owner. */ - owner: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connectionId: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version: string; -} -export interface MsgRegisterAccountProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount"; - value: Uint8Array; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountAmino { - /** owner is the address of the interchain account owner. */ - owner?: string; - /** connection_id is the connection id string (i.e. channel-5). */ - connection_id?: string; - /** - * version is the application version string. For example, this could be an - * ICS27 encoded metadata type or an ICS29 encoded metadata type with a nested - * application version. - */ - version?: string; -} -export interface MsgRegisterAccountAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccount"; - value: MsgRegisterAccountAmino; -} -/** MsgRegisterAccount defines the payload for Msg/RegisterAccount */ -export interface MsgRegisterAccountSDKType { - owner: string; - connection_id: string; - version: string; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponse { -} -export interface MsgRegisterAccountResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: Uint8Array; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseAmino { -} -export interface MsgRegisterAccountResponseAminoMsg { - type: "/regen.intertx.v1.MsgRegisterAccountResponse"; - value: MsgRegisterAccountResponseAmino; -} -/** MsgRegisterAccountResponse defines the response for Msg/RegisterAccount */ -export interface MsgRegisterAccountResponseSDKType { -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTx { - /** owner is the owner address of the interchain account. */ - owner: string; - /** connection_id is the id of the connection. */ - connectionId: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: Any; -} -export interface MsgSubmitTxProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTx"; - value: Uint8Array; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxAmino { - /** owner is the owner address of the interchain account. */ - owner?: string; - /** connection_id is the id of the connection. */ - connection_id?: string; - /** msg is the bytes of the transaction msg to send. */ - msg?: AnyAmino; -} -export interface MsgSubmitTxAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTx"; - value: MsgSubmitTxAmino; -} -/** MsgSubmitTx defines the payload for Msg/SubmitTx */ -export interface MsgSubmitTxSDKType { - owner: string; - connection_id: string; - msg?: AnySDKType; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponse { -} -export interface MsgSubmitTxResponseProtoMsg { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: Uint8Array; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseAmino { -} -export interface MsgSubmitTxResponseAminoMsg { - type: "/regen.intertx.v1.MsgSubmitTxResponse"; - value: MsgSubmitTxResponseAmino; -} -/** MsgSubmitTxResponse defines the response for Msg/SubmitTx */ -export interface MsgSubmitTxResponseSDKType { -} -export declare const MsgRegisterAccount: { - typeUrl: string; - encode(message: MsgRegisterAccount, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccount; - fromPartial(object: Partial): MsgRegisterAccount; - fromAmino(object: MsgRegisterAccountAmino): MsgRegisterAccount; - toAmino(message: MsgRegisterAccount): MsgRegisterAccountAmino; - fromAminoMsg(object: MsgRegisterAccountAminoMsg): MsgRegisterAccount; - fromProtoMsg(message: MsgRegisterAccountProtoMsg): MsgRegisterAccount; - toProto(message: MsgRegisterAccount): Uint8Array; - toProtoMsg(message: MsgRegisterAccount): MsgRegisterAccountProtoMsg; -}; -export declare const MsgRegisterAccountResponse: { - typeUrl: string; - encode(_: MsgRegisterAccountResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterAccountResponse; - fromPartial(_: Partial): MsgRegisterAccountResponse; - fromAmino(_: MsgRegisterAccountResponseAmino): MsgRegisterAccountResponse; - toAmino(_: MsgRegisterAccountResponse): MsgRegisterAccountResponseAmino; - fromAminoMsg(object: MsgRegisterAccountResponseAminoMsg): MsgRegisterAccountResponse; - fromProtoMsg(message: MsgRegisterAccountResponseProtoMsg): MsgRegisterAccountResponse; - toProto(message: MsgRegisterAccountResponse): Uint8Array; - toProtoMsg(message: MsgRegisterAccountResponse): MsgRegisterAccountResponseProtoMsg; -}; -export declare const MsgSubmitTx: { - typeUrl: string; - encode(message: MsgSubmitTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTx; - fromPartial(object: Partial): MsgSubmitTx; - fromAmino(object: MsgSubmitTxAmino): MsgSubmitTx; - toAmino(message: MsgSubmitTx): MsgSubmitTxAmino; - fromAminoMsg(object: MsgSubmitTxAminoMsg): MsgSubmitTx; - fromProtoMsg(message: MsgSubmitTxProtoMsg): MsgSubmitTx; - toProto(message: MsgSubmitTx): Uint8Array; - toProtoMsg(message: MsgSubmitTx): MsgSubmitTxProtoMsg; -}; -export declare const MsgSubmitTxResponse: { - typeUrl: string; - encode(_: MsgSubmitTxResponse, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitTxResponse; - fromPartial(_: Partial): MsgSubmitTxResponse; - fromAmino(_: MsgSubmitTxResponseAmino): MsgSubmitTxResponse; - toAmino(_: MsgSubmitTxResponse): MsgSubmitTxResponseAmino; - fromAminoMsg(object: MsgSubmitTxResponseAminoMsg): MsgSubmitTxResponse; - fromProtoMsg(message: MsgSubmitTxResponseProtoMsg): MsgSubmitTxResponse; - toProto(message: MsgSubmitTxResponse): Uint8Array; - toProtoMsg(message: MsgSubmitTxResponse): MsgSubmitTxResponseProtoMsg; -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.js b/packages/api/dist/regen/intertx/v1/tx.js deleted file mode 100644 index 15f777c3..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.js +++ /dev/null @@ -1,280 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgSubmitTxResponse = exports.MsgSubmitTx = exports.MsgRegisterAccountResponse = exports.MsgRegisterAccount = void 0; -//@ts-nocheck -const any_1 = require("../../../google/protobuf/any"); -const binary_1 = require("../../../binary"); -function createBaseMsgRegisterAccount() { - return { - owner: "", - connectionId: "", - version: "" - }; -} -exports.MsgRegisterAccount = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.version !== "") { - writer.uint32(26).string(message.version); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgRegisterAccount(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.version = object.version ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseMsgRegisterAccount(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.version = message.version === "" ? undefined : message.version; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRegisterAccount.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRegisterAccount.decode(message.value); - }, - toProto(message) { - return exports.MsgRegisterAccount.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: exports.MsgRegisterAccount.encode(message).finish() - }; - } -}; -function createBaseMsgRegisterAccountResponse() { - return {}; -} -exports.MsgRegisterAccountResponse = { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRegisterAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgRegisterAccountResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgRegisterAccountResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgRegisterAccountResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgRegisterAccountResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccountResponse", - value: exports.MsgRegisterAccountResponse.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTx() { - return { - owner: "", - connectionId: "", - msg: undefined - }; -} -exports.MsgSubmitTx = { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.msg !== undefined) { - any_1.Any.encode(message.msg, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.msg = any_1.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMsgSubmitTx(); - message.owner = object.owner ?? ""; - message.connectionId = object.connectionId ?? ""; - message.msg = object.msg !== undefined && object.msg !== null ? any_1.Any.fromPartial(object.msg) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseMsgSubmitTx(); - if (object.owner !== undefined && object.owner !== null) { - message.owner = object.owner; - } - if (object.connection_id !== undefined && object.connection_id !== null) { - message.connectionId = object.connection_id; - } - if (object.msg !== undefined && object.msg !== null) { - message.msg = any_1.Any.fromAmino(object.msg); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.owner = message.owner === "" ? undefined : message.owner; - obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; - obj.msg = message.msg ? any_1.Any.toAmino(message.msg) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSubmitTx.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: exports.MsgSubmitTx.encode(message).finish() - }; - } -}; -function createBaseMsgSubmitTxResponse() { - return {}; -} -exports.MsgSubmitTxResponse = { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitTxResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - fromAmino(_) { - const message = createBaseMsgSubmitTxResponse(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.MsgSubmitTxResponse.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.MsgSubmitTxResponse.decode(message.value); - }, - toProto(message) { - return exports.MsgSubmitTxResponse.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTxResponse", - value: exports.MsgSubmitTxResponse.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.registry.d.ts b/packages/api/dist/regen/intertx/v1/tx.registry.d.ts deleted file mode 100644 index d8a7cf1a..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgRegisterAccount, MsgSubmitTx } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: Uint8Array; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: MsgRegisterAccount; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: MsgSubmitTx; - }; - }; - fromPartial: { - registerAccount(value: MsgRegisterAccount): { - typeUrl: string; - value: MsgRegisterAccount; - }; - submitTx(value: MsgSubmitTx): { - typeUrl: string; - value: MsgSubmitTx; - }; - }; -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.registry.js b/packages/api/dist/regen/intertx/v1/tx.registry.js deleted file mode 100644 index 782984cc..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.registry.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageComposer = exports.load = exports.registry = void 0; -const tx_1 = require("./tx"); -exports.registry = [["/regen.intertx.v1.MsgRegisterAccount", tx_1.MsgRegisterAccount], ["/regen.intertx.v1.MsgSubmitTx", tx_1.MsgSubmitTx]]; -const load = (protoRegistry) => { - exports.registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -exports.load = load; -exports.MessageComposer = { - encoded: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: tx_1.MsgRegisterAccount.encode(value).finish() - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: tx_1.MsgSubmitTx.encode(value).finish() - }; - } - }, - withTypeUrl: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value - }; - } - }, - fromPartial: { - registerAccount(value) { - return { - typeUrl: "/regen.intertx.v1.MsgRegisterAccount", - value: tx_1.MsgRegisterAccount.fromPartial(value) - }; - }, - submitTx(value) { - return { - typeUrl: "/regen.intertx.v1.MsgSubmitTx", - value: tx_1.MsgSubmitTx.fromPartial(value) - }; - } - } -}; diff --git a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts deleted file mode 100644 index 43ba16a3..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "../../../helpers"; -import { MsgRegisterAccount, MsgRegisterAccountResponse, MsgSubmitTx, MsgSubmitTxResponse } from "./tx"; -/** Msg defines the intertx Msg service. */ -export interface Msg { - /** Register defines a rpc handler for MsgRegisterAccount */ - registerAccount(request: MsgRegisterAccount): Promise; - /** SubmitTx defines a rpc handler for MsgSubmitTx */ - submitTx(request: MsgSubmitTx): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - registerAccount(request: MsgRegisterAccount): Promise; - submitTx(request: MsgSubmitTx): Promise; -} diff --git a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js b/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js deleted file mode 100644 index 50c1a491..00000000 --- a/packages/api/dist/regen/intertx/v1/tx.rpc.msg.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MsgClientImpl = void 0; -const binary_1 = require("../../../binary"); -const tx_1 = require("./tx"); -class MsgClientImpl { - rpc; - constructor(rpc) { - this.rpc = rpc; - this.registerAccount = this.registerAccount.bind(this); - this.submitTx = this.submitTx.bind(this); - } - registerAccount(request) { - const data = tx_1.MsgRegisterAccount.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "RegisterAccount", data); - return promise.then(data => tx_1.MsgRegisterAccountResponse.decode(new binary_1.BinaryReader(data))); - } - submitTx(request) { - const data = tx_1.MsgSubmitTx.encode(request).finish(); - const promise = this.rpc.request("regen.intertx.v1.Msg", "SubmitTx", data); - return promise.then(data => tx_1.MsgSubmitTxResponse.decode(new binary_1.BinaryReader(data))); - } -} -exports.MsgClientImpl = MsgClientImpl; diff --git a/packages/api/dist/regen/lcd.d.ts b/packages/api/dist/regen/lcd.d.ts deleted file mode 100644 index 80ef431f..00000000 --- a/packages/api/dist/regen/lcd.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -export declare const createLCDClient: ({ restEndpoint }: { - restEndpoint: string; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; - }; - authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - node: { - v1beta1: import("../cosmos/base/node/v1beta1/query.lcd").LCDQueryClient; - }; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; - }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; - }; - tx: { - v1beta1: import("../cosmos/tx/v1beta1/service.lcd").LCDQueryClient; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/query.lcd").LCDQueryClient; - }; - }; - regen: { - data: { - v1: import("./data/v1/query.lcd").LCDQueryClient; - }; - ecocredit: { - basket: { - v1: import("./ecocredit/basket/v1/query.lcd").LCDQueryClient; - }; - marketplace: { - v1: import("./ecocredit/marketplace/v1/query.lcd").LCDQueryClient; - }; - v1: import("./ecocredit/v1/query.lcd").LCDQueryClient; - v1alpha1: import("./ecocredit/v1alpha1/query.lcd").LCDQueryClient; - }; - intertx: { - v1: import("./intertx/v1/query.lcd").LCDQueryClient; - }; - }; -}>; diff --git a/packages/api/dist/regen/lcd.js b/packages/api/dist/regen/lcd.js deleted file mode 100644 index 3ce63992..00000000 --- a/packages/api/dist/regen/lcd.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createLCDClient = void 0; -//@ts-nocheck -const lcd_1 = require("@cosmology/lcd"); -const createLCDClient = async ({ restEndpoint }) => { - const requestClient = new lcd_1.LCDClient({ - restEndpoint - }); - return { - cosmos: { - auth: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - base: { - node: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.lcd")))).LCDQueryClient({ - requestClient - }), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - tx: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.lcd")))).LCDQueryClient({ - requestClient - }) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - }, - regen: { - data: { - v1: new (await Promise.resolve().then(() => __importStar(require("./data/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - ecocredit: { - basket: { - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - marketplace: { - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/query.lcd")))).LCDQueryClient({ - requestClient - }), - v1alpha1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/query.lcd")))).LCDQueryClient({ - requestClient - }) - }, - intertx: { - v1: new (await Promise.resolve().then(() => __importStar(require("./intertx/v1/query.lcd")))).LCDQueryClient({ - requestClient - }) - } - } - }; -}; -exports.createLCDClient = createLCDClient; diff --git a/packages/api/dist/regen/rpc.query.d.ts b/packages/api/dist/regen/rpc.query.d.ts deleted file mode 100644 index 83009b0d..00000000 --- a/packages/api/dist/regen/rpc.query.d.ts +++ /dev/null @@ -1,235 +0,0 @@ -import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; -export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string | HttpEndpoint; -}) => Promise<{ - cosmos: { - auth: { - v1beta1: { - accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; - account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; - accountAddressByID(request: import("../cosmos/auth/v1beta1/query").QueryAccountAddressByIDRequest): Promise; - params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; - moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; - moduleAccountByName(request: import("../cosmos/auth/v1beta1/query").QueryModuleAccountByNameRequest): Promise; - bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; - addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; - addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; - }; - }; - authz: { - v1beta1: { - grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; - granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; - granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; - }; - }; - bank: { - v1beta1: { - balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; - allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; - spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; - totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; - supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; - params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; - denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; - denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; - denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; - }; - }; - base: { - node: { - v1beta1: { - config(request?: import("../cosmos/base/node/v1beta1/query").ConfigRequest): Promise; - }; - }; - }; - distribution: { - v1beta1: { - params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; - validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; - validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; - validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; - delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; - delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; - delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; - communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; - gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; - v1beta1: { - proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; - }; - }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - staking: { - v1beta1: { - validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; - validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; - validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; - validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; - delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; - unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; - delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; - delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; - redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; - delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; - delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; - historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; - pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; - params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; - }; - }; - tx: { - v1beta1: { - simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; - getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; - broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; - getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; - getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; - }; - }; - upgrade: { - v1beta1: { - currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; - appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; - upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; - moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; - authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; - }; - }; - }; - regen: { - data: { - v1: { - anchorByIRI(request: import("./data/v1/query").QueryAnchorByIRIRequest): Promise; - anchorByHash(request: import("./data/v1/query").QueryAnchorByHashRequest): Promise; - attestationsByAttestor(request: import("./data/v1/query").QueryAttestationsByAttestorRequest): Promise; - attestationsByIRI(request: import("./data/v1/query").QueryAttestationsByIRIRequest): Promise; - attestationsByHash(request: import("./data/v1/query").QueryAttestationsByHashRequest): Promise; - resolver(request: import("./data/v1/query").QueryResolverRequest): Promise; - resolversByIRI(request: import("./data/v1/query").QueryResolversByIRIRequest): Promise; - resolversByHash(request: import("./data/v1/query").QueryResolversByHashRequest): Promise; - resolversByURL(request: import("./data/v1/query").QueryResolversByURLRequest): Promise; - convertIRIToHash(request: import("./data/v1/query").ConvertIRIToHashRequest): Promise; - convertHashToIRI(request: import("./data/v1/query").ConvertHashToIRIRequest): Promise; - }; - }; - ecocredit: { - basket: { - v1: { - basket(request: import("./ecocredit/basket/v1/query").QueryBasketRequest): Promise; - baskets(request?: import("./ecocredit/basket/v1/query").QueryBasketsRequest): Promise; - basketBalances(request: import("./ecocredit/basket/v1/query").QueryBasketBalancesRequest): Promise; - basketBalance(request: import("./ecocredit/basket/v1/query").QueryBasketBalanceRequest): Promise; - basketFee(request?: import("./ecocredit/basket/v1/query").QueryBasketFeeRequest): Promise; - }; - }; - marketplace: { - v1: { - sellOrder(request: import("./ecocredit/marketplace/v1/query").QuerySellOrderRequest): Promise; - sellOrders(request?: import("./ecocredit/marketplace/v1/query").QuerySellOrdersRequest): Promise; - sellOrdersByBatch(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersByBatchRequest): Promise; - sellOrdersBySeller(request: import("./ecocredit/marketplace/v1/query").QuerySellOrdersBySellerRequest): Promise; - allowedDenoms(request?: import("./ecocredit/marketplace/v1/query").QueryAllowedDenomsRequest): Promise; - }; - }; - v1: { - classes(request?: import("./ecocredit/v1/query").QueryClassesRequest): Promise; - classesByAdmin(request: import("./ecocredit/v1/query").QueryClassesByAdminRequest): Promise; - class(request: import("./ecocredit/v1/query").QueryClassRequest): Promise; - classIssuers(request: import("./ecocredit/v1/query").QueryClassIssuersRequest): Promise; - projects(request?: import("./ecocredit/v1/query").QueryProjectsRequest): Promise; - projectsByClass(request: import("./ecocredit/v1/query").QueryProjectsByClassRequest): Promise; - projectsByReferenceId(request: import("./ecocredit/v1/query").QueryProjectsByReferenceIdRequest): Promise; - projectsByAdmin(request: import("./ecocredit/v1/query").QueryProjectsByAdminRequest): Promise; - project(request: import("./ecocredit/v1/query").QueryProjectRequest): Promise; - batches(request?: import("./ecocredit/v1/query").QueryBatchesRequest): Promise; - batchesByIssuer(request: import("./ecocredit/v1/query").QueryBatchesByIssuerRequest): Promise; - batchesByClass(request: import("./ecocredit/v1/query").QueryBatchesByClassRequest): Promise; - batchesByProject(request: import("./ecocredit/v1/query").QueryBatchesByProjectRequest): Promise; - batch(request: import("./ecocredit/v1/query").QueryBatchRequest): Promise; - balance(request: import("./ecocredit/v1/query").QueryBalanceRequest): Promise; - balances(request: import("./ecocredit/v1/query").QueryBalancesRequest): Promise; - balancesByBatch(request: import("./ecocredit/v1/query").QueryBalancesByBatchRequest): Promise; - allBalances(request?: import("./ecocredit/v1/query").QueryAllBalancesRequest): Promise; - supply(request: import("./ecocredit/v1/query").QuerySupplyRequest): Promise; - creditTypes(request?: import("./ecocredit/v1/query").QueryCreditTypesRequest): Promise; - params(request?: import("./ecocredit/v1/query").QueryParamsRequest): Promise; - creditType(request: import("./ecocredit/v1/query").QueryCreditTypeRequest): Promise; - classCreatorAllowlist(request?: import("./ecocredit/v1/query").QueryClassCreatorAllowlistRequest): Promise; - allowedClassCreators(request?: import("./ecocredit/v1/query").QueryAllowedClassCreatorsRequest): Promise; - classFee(request?: import("./ecocredit/v1/query").QueryClassFeeRequest): Promise; - allowedBridgeChains(request?: import("./ecocredit/v1/query").QueryAllowedBridgeChainsRequest): Promise; - }; - v1alpha1: { - classes(request?: import("./ecocredit/v1alpha1/query").QueryClassesRequest): Promise; - classInfo(request: import("./ecocredit/v1alpha1/query").QueryClassInfoRequest): Promise; - batches(request: import("./ecocredit/v1alpha1/query").QueryBatchesRequest): Promise; - batchInfo(request: import("./ecocredit/v1alpha1/query").QueryBatchInfoRequest): Promise; - balance(request: import("./ecocredit/v1alpha1/query").QueryBalanceRequest): Promise; - supply(request: import("./ecocredit/v1alpha1/query").QuerySupplyRequest): Promise; - creditTypes(request?: import("./ecocredit/v1alpha1/query").QueryCreditTypesRequest): Promise; - params(request?: import("./ecocredit/v1alpha1/query").QueryParamsRequest): Promise; - }; - }; - intertx: { - v1: { - interchainAccount(request: import("./intertx/v1/query").QueryInterchainAccountRequest): Promise; - }; - }; - }; -}>; diff --git a/packages/api/dist/regen/rpc.query.js b/packages/api/dist/regen/rpc.query.js deleted file mode 100644 index 3e4719f0..00000000 --- a/packages/api/dist/regen/rpc.query.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCQueryClient = void 0; -//@ts-nocheck -const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc"); -const stargate_1 = require("@cosmjs/stargate"); -const createRPCQueryClient = async ({ rpcEndpoint }) => { - const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint); - const client = new stargate_1.QueryClient(tmClient); - return { - cosmos: { - auth: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - authz: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - bank: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - base: { - node: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client) - } - }, - distribution: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - feegrant: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - gov: { - v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.rpc.Query")))).createRpcQueryExtension(client), - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - group: { - v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - mint: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - params: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - staking: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - tx: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client) - }, - upgrade: { - v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client) - } - }, - regen: { - data: { - v1: (await Promise.resolve().then(() => __importStar(require("./data/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - ecocredit: { - basket: { - v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - marketplace: { - v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - v1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/query.rpc.Query")))).createRpcQueryExtension(client), - v1alpha1: (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/query.rpc.Query")))).createRpcQueryExtension(client) - }, - intertx: { - v1: (await Promise.resolve().then(() => __importStar(require("./intertx/v1/query.rpc.Query")))).createRpcQueryExtension(client) - } - } - }; -}; -exports.createRPCQueryClient = createRPCQueryClient; diff --git a/packages/api/dist/regen/rpc.tx.d.ts b/packages/api/dist/regen/rpc.tx.d.ts deleted file mode 100644 index 4b07759c..00000000 --- a/packages/api/dist/regen/rpc.tx.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { Rpc } from "../helpers"; -export declare const createRPCMsgClient: ({ rpc }: { - rpc: Rpc; -}) => Promise<{ - cosmos: { - authz: { - v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - bank: { - v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; - v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - staking: { - v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - upgrade: { - v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - }; - regen: { - data: { - v1: import("./data/v1/tx.rpc.msg").MsgClientImpl; - }; - ecocredit: { - basket: { - v1: import("./ecocredit/basket/v1/tx.rpc.msg").MsgClientImpl; - }; - marketplace: { - v1: import("./ecocredit/marketplace/v1/tx.rpc.msg").MsgClientImpl; - }; - v1: import("./ecocredit/v1/tx.rpc.msg").MsgClientImpl; - v1alpha1: import("./ecocredit/v1alpha1/tx.rpc.msg").MsgClientImpl; - }; - intertx: { - v1: import("./intertx/v1/tx.rpc.msg").MsgClientImpl; - }; - }; -}>; diff --git a/packages/api/dist/regen/rpc.tx.js b/packages/api/dist/regen/rpc.tx.js deleted file mode 100644 index 7ecb8250..00000000 --- a/packages/api/dist/regen/rpc.tx.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRPCMsgClient = void 0; -const createRPCMsgClient = async ({ rpc }) => ({ - cosmos: { - authz: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - bank: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - distribution: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - feegrant: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - gov: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/tx.rpc.msg")))).MsgClientImpl(rpc), - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - group: { - v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - staking: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - upgrade: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - vesting: { - v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/vesting/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - }, - regen: { - data: { - v1: new (await Promise.resolve().then(() => __importStar(require("./data/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - ecocredit: { - basket: { - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/basket/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - marketplace: { - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/marketplace/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - v1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1/tx.rpc.msg")))).MsgClientImpl(rpc), - v1alpha1: new (await Promise.resolve().then(() => __importStar(require("./ecocredit/v1alpha1/tx.rpc.msg")))).MsgClientImpl(rpc) - }, - intertx: { - v1: new (await Promise.resolve().then(() => __importStar(require("./intertx/v1/tx.rpc.msg")))).MsgClientImpl(rpc) - } - } -}); -exports.createRPCMsgClient = createRPCMsgClient; diff --git a/packages/api/dist/tendermint/abci/types.d.ts b/packages/api/dist/tendermint/abci/types.d.ts deleted file mode 100644 index ad6f91f1..00000000 --- a/packages/api/dist/tendermint/abci/types.d.ts +++ /dev/null @@ -1,1913 +0,0 @@ -import { ConsensusParams, ConsensusParamsAmino, ConsensusParamsSDKType } from "../types/params"; -import { Header, HeaderAmino, HeaderSDKType } from "../types/types"; -import { ProofOps, ProofOpsAmino, ProofOpsSDKType } from "../crypto/proof"; -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export declare enum CheckTxType { - NEW = 0, - RECHECK = 1, - UNRECOGNIZED = -1 -} -export declare const CheckTxTypeSDKType: typeof CheckTxType; -export declare const CheckTxTypeAmino: typeof CheckTxType; -export declare function checkTxTypeFromJSON(object: any): CheckTxType; -export declare function checkTxTypeToJSON(object: CheckTxType): string; -export declare enum ResponseOfferSnapshot_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Snapshot accepted, apply chunks */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** REJECT - Reject this specific snapshot, try others */ - REJECT = 3, - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - REJECT_FORMAT = 4, - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - REJECT_SENDER = 5, - UNRECOGNIZED = -1 -} -export declare const ResponseOfferSnapshot_ResultSDKType: typeof ResponseOfferSnapshot_Result; -export declare const ResponseOfferSnapshot_ResultAmino: typeof ResponseOfferSnapshot_Result; -export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result; -export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string; -export declare enum ResponseApplySnapshotChunk_Result { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - UNKNOWN = 0, - /** ACCEPT - Chunk successfully accepted */ - ACCEPT = 1, - /** ABORT - Abort all snapshot restoration */ - ABORT = 2, - /** RETRY - Retry chunk (combine with refetch and reject) */ - RETRY = 3, - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - RETRY_SNAPSHOT = 4, - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - REJECT_SNAPSHOT = 5, - UNRECOGNIZED = -1 -} -export declare const ResponseApplySnapshotChunk_ResultSDKType: typeof ResponseApplySnapshotChunk_Result; -export declare const ResponseApplySnapshotChunk_ResultAmino: typeof ResponseApplySnapshotChunk_Result; -export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result; -export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string; -export declare enum ResponseProcessProposal_ProposalStatus { - UNKNOWN = 0, - ACCEPT = 1, - REJECT = 2, - UNRECOGNIZED = -1 -} -export declare const ResponseProcessProposal_ProposalStatusSDKType: typeof ResponseProcessProposal_ProposalStatus; -export declare const ResponseProcessProposal_ProposalStatusAmino: typeof ResponseProcessProposal_ProposalStatus; -export declare function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus; -export declare function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string; -export declare enum MisbehaviorType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2, - UNRECOGNIZED = -1 -} -export declare const MisbehaviorTypeSDKType: typeof MisbehaviorType; -export declare const MisbehaviorTypeAmino: typeof MisbehaviorType; -export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType; -export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string; -export interface Request { - echo?: RequestEcho; - flush?: RequestFlush; - info?: RequestInfo; - initChain?: RequestInitChain; - query?: RequestQuery; - beginBlock?: RequestBeginBlock; - checkTx?: RequestCheckTx; - deliverTx?: RequestDeliverTx; - endBlock?: RequestEndBlock; - commit?: RequestCommit; - listSnapshots?: RequestListSnapshots; - offerSnapshot?: RequestOfferSnapshot; - loadSnapshotChunk?: RequestLoadSnapshotChunk; - applySnapshotChunk?: RequestApplySnapshotChunk; - prepareProposal?: RequestPrepareProposal; - processProposal?: RequestProcessProposal; -} -export interface RequestProtoMsg { - typeUrl: "/tendermint.abci.Request"; - value: Uint8Array; -} -export interface RequestAmino { - echo?: RequestEchoAmino; - flush?: RequestFlushAmino; - info?: RequestInfoAmino; - init_chain?: RequestInitChainAmino; - query?: RequestQueryAmino; - begin_block?: RequestBeginBlockAmino; - check_tx?: RequestCheckTxAmino; - deliver_tx?: RequestDeliverTxAmino; - end_block?: RequestEndBlockAmino; - commit?: RequestCommitAmino; - list_snapshots?: RequestListSnapshotsAmino; - offer_snapshot?: RequestOfferSnapshotAmino; - load_snapshot_chunk?: RequestLoadSnapshotChunkAmino; - apply_snapshot_chunk?: RequestApplySnapshotChunkAmino; - prepare_proposal?: RequestPrepareProposalAmino; - process_proposal?: RequestProcessProposalAmino; -} -export interface RequestAminoMsg { - type: "/tendermint.abci.Request"; - value: RequestAmino; -} -export interface RequestSDKType { - echo?: RequestEchoSDKType; - flush?: RequestFlushSDKType; - info?: RequestInfoSDKType; - init_chain?: RequestInitChainSDKType; - query?: RequestQuerySDKType; - begin_block?: RequestBeginBlockSDKType; - check_tx?: RequestCheckTxSDKType; - deliver_tx?: RequestDeliverTxSDKType; - end_block?: RequestEndBlockSDKType; - commit?: RequestCommitSDKType; - list_snapshots?: RequestListSnapshotsSDKType; - offer_snapshot?: RequestOfferSnapshotSDKType; - load_snapshot_chunk?: RequestLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: RequestApplySnapshotChunkSDKType; - prepare_proposal?: RequestPrepareProposalSDKType; - process_proposal?: RequestProcessProposalSDKType; -} -export interface RequestEcho { - message: string; -} -export interface RequestEchoProtoMsg { - typeUrl: "/tendermint.abci.RequestEcho"; - value: Uint8Array; -} -export interface RequestEchoAmino { - message?: string; -} -export interface RequestEchoAminoMsg { - type: "/tendermint.abci.RequestEcho"; - value: RequestEchoAmino; -} -export interface RequestEchoSDKType { - message: string; -} -export interface RequestFlush { -} -export interface RequestFlushProtoMsg { - typeUrl: "/tendermint.abci.RequestFlush"; - value: Uint8Array; -} -export interface RequestFlushAmino { -} -export interface RequestFlushAminoMsg { - type: "/tendermint.abci.RequestFlush"; - value: RequestFlushAmino; -} -export interface RequestFlushSDKType { -} -export interface RequestInfo { - version: string; - blockVersion: bigint; - p2pVersion: bigint; - abciVersion: string; -} -export interface RequestInfoProtoMsg { - typeUrl: "/tendermint.abci.RequestInfo"; - value: Uint8Array; -} -export interface RequestInfoAmino { - version?: string; - block_version?: string; - p2p_version?: string; - abci_version?: string; -} -export interface RequestInfoAminoMsg { - type: "/tendermint.abci.RequestInfo"; - value: RequestInfoAmino; -} -export interface RequestInfoSDKType { - version: string; - block_version: bigint; - p2p_version: bigint; - abci_version: string; -} -export interface RequestInitChain { - time: Date; - chainId: string; - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appStateBytes: Uint8Array; - initialHeight: bigint; -} -export interface RequestInitChainProtoMsg { - typeUrl: "/tendermint.abci.RequestInitChain"; - value: Uint8Array; -} -export interface RequestInitChainAmino { - time?: string; - chain_id?: string; - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_state_bytes?: string; - initial_height?: string; -} -export interface RequestInitChainAminoMsg { - type: "/tendermint.abci.RequestInitChain"; - value: RequestInitChainAmino; -} -export interface RequestInitChainSDKType { - time: Date; - chain_id: string; - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_state_bytes: Uint8Array; - initial_height: bigint; -} -export interface RequestQuery { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestQueryProtoMsg { - typeUrl: "/tendermint.abci.RequestQuery"; - value: Uint8Array; -} -export interface RequestQueryAmino { - data?: string; - path?: string; - height?: string; - prove?: boolean; -} -export interface RequestQueryAminoMsg { - type: "/tendermint.abci.RequestQuery"; - value: RequestQueryAmino; -} -export interface RequestQuerySDKType { - data: Uint8Array; - path: string; - height: bigint; - prove: boolean; -} -export interface RequestBeginBlock { - hash: Uint8Array; - header: Header; - lastCommitInfo: CommitInfo; - byzantineValidators: Misbehavior[]; -} -export interface RequestBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestBeginBlock"; - value: Uint8Array; -} -export interface RequestBeginBlockAmino { - hash?: string; - header?: HeaderAmino; - last_commit_info?: CommitInfoAmino; - byzantine_validators?: MisbehaviorAmino[]; -} -export interface RequestBeginBlockAminoMsg { - type: "/tendermint.abci.RequestBeginBlock"; - value: RequestBeginBlockAmino; -} -export interface RequestBeginBlockSDKType { - hash: Uint8Array; - header: HeaderSDKType; - last_commit_info: CommitInfoSDKType; - byzantine_validators: MisbehaviorSDKType[]; -} -export interface RequestCheckTx { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestCheckTxProtoMsg { - typeUrl: "/tendermint.abci.RequestCheckTx"; - value: Uint8Array; -} -export interface RequestCheckTxAmino { - tx?: string; - type?: CheckTxType; -} -export interface RequestCheckTxAminoMsg { - type: "/tendermint.abci.RequestCheckTx"; - value: RequestCheckTxAmino; -} -export interface RequestCheckTxSDKType { - tx: Uint8Array; - type: CheckTxType; -} -export interface RequestDeliverTx { - tx: Uint8Array; -} -export interface RequestDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.RequestDeliverTx"; - value: Uint8Array; -} -export interface RequestDeliverTxAmino { - tx?: string; -} -export interface RequestDeliverTxAminoMsg { - type: "/tendermint.abci.RequestDeliverTx"; - value: RequestDeliverTxAmino; -} -export interface RequestDeliverTxSDKType { - tx: Uint8Array; -} -export interface RequestEndBlock { - height: bigint; -} -export interface RequestEndBlockProtoMsg { - typeUrl: "/tendermint.abci.RequestEndBlock"; - value: Uint8Array; -} -export interface RequestEndBlockAmino { - height?: string; -} -export interface RequestEndBlockAminoMsg { - type: "/tendermint.abci.RequestEndBlock"; - value: RequestEndBlockAmino; -} -export interface RequestEndBlockSDKType { - height: bigint; -} -export interface RequestCommit { -} -export interface RequestCommitProtoMsg { - typeUrl: "/tendermint.abci.RequestCommit"; - value: Uint8Array; -} -export interface RequestCommitAmino { -} -export interface RequestCommitAminoMsg { - type: "/tendermint.abci.RequestCommit"; - value: RequestCommitAmino; -} -export interface RequestCommitSDKType { -} -/** lists available snapshots */ -export interface RequestListSnapshots { -} -export interface RequestListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.RequestListSnapshots"; - value: Uint8Array; -} -/** lists available snapshots */ -export interface RequestListSnapshotsAmino { -} -export interface RequestListSnapshotsAminoMsg { - type: "/tendermint.abci.RequestListSnapshots"; - value: RequestListSnapshotsAmino; -} -/** lists available snapshots */ -export interface RequestListSnapshotsSDKType { -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshot { - /** snapshot offered by peers */ - snapshot?: Snapshot; - /** light client-verified app hash for snapshot height */ - appHash: Uint8Array; -} -export interface RequestOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.RequestOfferSnapshot"; - value: Uint8Array; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotAmino { - /** snapshot offered by peers */ - snapshot?: SnapshotAmino; - /** light client-verified app hash for snapshot height */ - app_hash?: string; -} -export interface RequestOfferSnapshotAminoMsg { - type: "/tendermint.abci.RequestOfferSnapshot"; - value: RequestOfferSnapshotAmino; -} -/** offers a snapshot to the application */ -export interface RequestOfferSnapshotSDKType { - snapshot?: SnapshotSDKType; - app_hash: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunk { - height: bigint; - format: number; - chunk: number; -} -export interface RequestLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: Uint8Array; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkAmino { - height?: string; - format?: number; - chunk?: number; -} -export interface RequestLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestLoadSnapshotChunk"; - value: RequestLoadSnapshotChunkAmino; -} -/** loads a snapshot chunk */ -export interface RequestLoadSnapshotChunkSDKType { - height: bigint; - format: number; - chunk: number; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunk { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; - value: Uint8Array; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkAmino { - index?: number; - chunk?: string; - sender?: string; -} -export interface RequestApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.RequestApplySnapshotChunk"; - value: RequestApplySnapshotChunkAmino; -} -/** Applies a snapshot chunk */ -export interface RequestApplySnapshotChunkSDKType { - index: number; - chunk: Uint8Array; - sender: string; -} -export interface RequestPrepareProposal { - /** the modified transactions cannot exceed this size. */ - maxTxBytes: bigint; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs: Uint8Array[]; - localLastCommit: ExtendedCommitInfo; - misbehavior: Misbehavior[]; - height: bigint; - time: Date; - nextValidatorsHash: Uint8Array; - /** address of the public key of the validator proposing the block. */ - proposerAddress: Uint8Array; -} -export interface RequestPrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestPrepareProposal"; - value: Uint8Array; -} -export interface RequestPrepareProposalAmino { - /** the modified transactions cannot exceed this size. */ - max_tx_bytes?: string; - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - */ - txs?: string[]; - local_last_commit?: ExtendedCommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the validator proposing the block. */ - proposer_address?: string; -} -export interface RequestPrepareProposalAminoMsg { - type: "/tendermint.abci.RequestPrepareProposal"; - value: RequestPrepareProposalAmino; -} -export interface RequestPrepareProposalSDKType { - max_tx_bytes: bigint; - txs: Uint8Array[]; - local_last_commit: ExtendedCommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - height: bigint; - time: Date; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface RequestProcessProposal { - txs: Uint8Array[]; - proposedLastCommit: CommitInfo; - misbehavior: Misbehavior[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash: Uint8Array; - height: bigint; - time: Date; - nextValidatorsHash: Uint8Array; - /** address of the public key of the original proposer of the block. */ - proposerAddress: Uint8Array; -} -export interface RequestProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.RequestProcessProposal"; - value: Uint8Array; -} -export interface RequestProcessProposalAmino { - txs?: string[]; - proposed_last_commit?: CommitInfoAmino; - misbehavior?: MisbehaviorAmino[]; - /** hash is the merkle root hash of the fields of the proposed block. */ - hash?: string; - height?: string; - time?: string; - next_validators_hash?: string; - /** address of the public key of the original proposer of the block. */ - proposer_address?: string; -} -export interface RequestProcessProposalAminoMsg { - type: "/tendermint.abci.RequestProcessProposal"; - value: RequestProcessProposalAmino; -} -export interface RequestProcessProposalSDKType { - txs: Uint8Array[]; - proposed_last_commit: CommitInfoSDKType; - misbehavior: MisbehaviorSDKType[]; - hash: Uint8Array; - height: bigint; - time: Date; - next_validators_hash: Uint8Array; - proposer_address: Uint8Array; -} -export interface Response { - exception?: ResponseException; - echo?: ResponseEcho; - flush?: ResponseFlush; - info?: ResponseInfo; - initChain?: ResponseInitChain; - query?: ResponseQuery; - beginBlock?: ResponseBeginBlock; - checkTx?: ResponseCheckTx; - deliverTx?: ResponseDeliverTx; - endBlock?: ResponseEndBlock; - commit?: ResponseCommit; - listSnapshots?: ResponseListSnapshots; - offerSnapshot?: ResponseOfferSnapshot; - loadSnapshotChunk?: ResponseLoadSnapshotChunk; - applySnapshotChunk?: ResponseApplySnapshotChunk; - prepareProposal?: ResponsePrepareProposal; - processProposal?: ResponseProcessProposal; -} -export interface ResponseProtoMsg { - typeUrl: "/tendermint.abci.Response"; - value: Uint8Array; -} -export interface ResponseAmino { - exception?: ResponseExceptionAmino; - echo?: ResponseEchoAmino; - flush?: ResponseFlushAmino; - info?: ResponseInfoAmino; - init_chain?: ResponseInitChainAmino; - query?: ResponseQueryAmino; - begin_block?: ResponseBeginBlockAmino; - check_tx?: ResponseCheckTxAmino; - deliver_tx?: ResponseDeliverTxAmino; - end_block?: ResponseEndBlockAmino; - commit?: ResponseCommitAmino; - list_snapshots?: ResponseListSnapshotsAmino; - offer_snapshot?: ResponseOfferSnapshotAmino; - load_snapshot_chunk?: ResponseLoadSnapshotChunkAmino; - apply_snapshot_chunk?: ResponseApplySnapshotChunkAmino; - prepare_proposal?: ResponsePrepareProposalAmino; - process_proposal?: ResponseProcessProposalAmino; -} -export interface ResponseAminoMsg { - type: "/tendermint.abci.Response"; - value: ResponseAmino; -} -export interface ResponseSDKType { - exception?: ResponseExceptionSDKType; - echo?: ResponseEchoSDKType; - flush?: ResponseFlushSDKType; - info?: ResponseInfoSDKType; - init_chain?: ResponseInitChainSDKType; - query?: ResponseQuerySDKType; - begin_block?: ResponseBeginBlockSDKType; - check_tx?: ResponseCheckTxSDKType; - deliver_tx?: ResponseDeliverTxSDKType; - end_block?: ResponseEndBlockSDKType; - commit?: ResponseCommitSDKType; - list_snapshots?: ResponseListSnapshotsSDKType; - offer_snapshot?: ResponseOfferSnapshotSDKType; - load_snapshot_chunk?: ResponseLoadSnapshotChunkSDKType; - apply_snapshot_chunk?: ResponseApplySnapshotChunkSDKType; - prepare_proposal?: ResponsePrepareProposalSDKType; - process_proposal?: ResponseProcessProposalSDKType; -} -/** nondeterministic */ -export interface ResponseException { - error: string; -} -export interface ResponseExceptionProtoMsg { - typeUrl: "/tendermint.abci.ResponseException"; - value: Uint8Array; -} -/** nondeterministic */ -export interface ResponseExceptionAmino { - error?: string; -} -export interface ResponseExceptionAminoMsg { - type: "/tendermint.abci.ResponseException"; - value: ResponseExceptionAmino; -} -/** nondeterministic */ -export interface ResponseExceptionSDKType { - error: string; -} -export interface ResponseEcho { - message: string; -} -export interface ResponseEchoProtoMsg { - typeUrl: "/tendermint.abci.ResponseEcho"; - value: Uint8Array; -} -export interface ResponseEchoAmino { - message?: string; -} -export interface ResponseEchoAminoMsg { - type: "/tendermint.abci.ResponseEcho"; - value: ResponseEchoAmino; -} -export interface ResponseEchoSDKType { - message: string; -} -export interface ResponseFlush { -} -export interface ResponseFlushProtoMsg { - typeUrl: "/tendermint.abci.ResponseFlush"; - value: Uint8Array; -} -export interface ResponseFlushAmino { -} -export interface ResponseFlushAminoMsg { - type: "/tendermint.abci.ResponseFlush"; - value: ResponseFlushAmino; -} -export interface ResponseFlushSDKType { -} -export interface ResponseInfo { - data: string; - version: string; - appVersion: bigint; - lastBlockHeight: bigint; - lastBlockAppHash: Uint8Array; -} -export interface ResponseInfoProtoMsg { - typeUrl: "/tendermint.abci.ResponseInfo"; - value: Uint8Array; -} -export interface ResponseInfoAmino { - data?: string; - version?: string; - app_version?: string; - last_block_height?: string; - last_block_app_hash?: string; -} -export interface ResponseInfoAminoMsg { - type: "/tendermint.abci.ResponseInfo"; - value: ResponseInfoAmino; -} -export interface ResponseInfoSDKType { - data: string; - version: string; - app_version: bigint; - last_block_height: bigint; - last_block_app_hash: Uint8Array; -} -export interface ResponseInitChain { - consensusParams?: ConsensusParams; - validators: ValidatorUpdate[]; - appHash: Uint8Array; -} -export interface ResponseInitChainProtoMsg { - typeUrl: "/tendermint.abci.ResponseInitChain"; - value: Uint8Array; -} -export interface ResponseInitChainAmino { - consensus_params?: ConsensusParamsAmino; - validators?: ValidatorUpdateAmino[]; - app_hash?: string; -} -export interface ResponseInitChainAminoMsg { - type: "/tendermint.abci.ResponseInitChain"; - value: ResponseInitChainAmino; -} -export interface ResponseInitChainSDKType { - consensus_params?: ConsensusParamsSDKType; - validators: ValidatorUpdateSDKType[]; - app_hash: Uint8Array; -} -export interface ResponseQuery { - code: number; - /** bytes data = 2; // use "value" instead. */ - log: string; - /** nondeterministic */ - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proofOps?: ProofOps; - height: bigint; - codespace: string; -} -export interface ResponseQueryProtoMsg { - typeUrl: "/tendermint.abci.ResponseQuery"; - value: Uint8Array; -} -export interface ResponseQueryAmino { - code?: number; - /** bytes data = 2; // use "value" instead. */ - log?: string; - /** nondeterministic */ - info?: string; - index?: string; - key?: string; - value?: string; - proof_ops?: ProofOpsAmino; - height?: string; - codespace?: string; -} -export interface ResponseQueryAminoMsg { - type: "/tendermint.abci.ResponseQuery"; - value: ResponseQueryAmino; -} -export interface ResponseQuerySDKType { - code: number; - log: string; - info: string; - index: bigint; - key: Uint8Array; - value: Uint8Array; - proof_ops?: ProofOpsSDKType; - height: bigint; - codespace: string; -} -export interface ResponseBeginBlock { - events: Event[]; -} -export interface ResponseBeginBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseBeginBlock"; - value: Uint8Array; -} -export interface ResponseBeginBlockAmino { - events?: EventAmino[]; -} -export interface ResponseBeginBlockAminoMsg { - type: "/tendermint.abci.ResponseBeginBlock"; - value: ResponseBeginBlockAmino; -} -export interface ResponseBeginBlockSDKType { - events: EventSDKType[]; -} -export interface ResponseCheckTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; - sender: string; - priority: bigint; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempoolError: string; -} -export interface ResponseCheckTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseCheckTx"; - value: Uint8Array; -} -export interface ResponseCheckTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; - sender?: string; - priority?: string; - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - */ - mempool_error?: string; -} -export interface ResponseCheckTxAminoMsg { - type: "/tendermint.abci.ResponseCheckTx"; - value: ResponseCheckTxAmino; -} -export interface ResponseCheckTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; - sender: string; - priority: bigint; - mempool_error: string; -} -export interface ResponseDeliverTx { - code: number; - data: Uint8Array; - /** nondeterministic */ - log: string; - /** nondeterministic */ - info: string; - gasWanted: bigint; - gasUsed: bigint; - events: Event[]; - codespace: string; -} -export interface ResponseDeliverTxProtoMsg { - typeUrl: "/tendermint.abci.ResponseDeliverTx"; - value: Uint8Array; -} -export interface ResponseDeliverTxAmino { - code?: number; - data?: string; - /** nondeterministic */ - log?: string; - /** nondeterministic */ - info?: string; - gas_wanted?: string; - gas_used?: string; - events?: EventAmino[]; - codespace?: string; -} -export interface ResponseDeliverTxAminoMsg { - type: "/tendermint.abci.ResponseDeliverTx"; - value: ResponseDeliverTxAmino; -} -export interface ResponseDeliverTxSDKType { - code: number; - data: Uint8Array; - log: string; - info: string; - gas_wanted: bigint; - gas_used: bigint; - events: EventSDKType[]; - codespace: string; -} -export interface ResponseEndBlock { - validatorUpdates: ValidatorUpdate[]; - consensusParamUpdates?: ConsensusParams; - events: Event[]; -} -export interface ResponseEndBlockProtoMsg { - typeUrl: "/tendermint.abci.ResponseEndBlock"; - value: Uint8Array; -} -export interface ResponseEndBlockAmino { - validator_updates?: ValidatorUpdateAmino[]; - consensus_param_updates?: ConsensusParamsAmino; - events?: EventAmino[]; -} -export interface ResponseEndBlockAminoMsg { - type: "/tendermint.abci.ResponseEndBlock"; - value: ResponseEndBlockAmino; -} -export interface ResponseEndBlockSDKType { - validator_updates: ValidatorUpdateSDKType[]; - consensus_param_updates?: ConsensusParamsSDKType; - events: EventSDKType[]; -} -export interface ResponseCommit { - /** reserve 1 */ - data: Uint8Array; - retainHeight: bigint; -} -export interface ResponseCommitProtoMsg { - typeUrl: "/tendermint.abci.ResponseCommit"; - value: Uint8Array; -} -export interface ResponseCommitAmino { - /** reserve 1 */ - data?: string; - retain_height?: string; -} -export interface ResponseCommitAminoMsg { - type: "/tendermint.abci.ResponseCommit"; - value: ResponseCommitAmino; -} -export interface ResponseCommitSDKType { - data: Uint8Array; - retain_height: bigint; -} -export interface ResponseListSnapshots { - snapshots: Snapshot[]; -} -export interface ResponseListSnapshotsProtoMsg { - typeUrl: "/tendermint.abci.ResponseListSnapshots"; - value: Uint8Array; -} -export interface ResponseListSnapshotsAmino { - snapshots?: SnapshotAmino[]; -} -export interface ResponseListSnapshotsAminoMsg { - type: "/tendermint.abci.ResponseListSnapshots"; - value: ResponseListSnapshotsAmino; -} -export interface ResponseListSnapshotsSDKType { - snapshots: SnapshotSDKType[]; -} -export interface ResponseOfferSnapshot { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotProtoMsg { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; - value: Uint8Array; -} -export interface ResponseOfferSnapshotAmino { - result?: ResponseOfferSnapshot_Result; -} -export interface ResponseOfferSnapshotAminoMsg { - type: "/tendermint.abci.ResponseOfferSnapshot"; - value: ResponseOfferSnapshotAmino; -} -export interface ResponseOfferSnapshotSDKType { - result: ResponseOfferSnapshot_Result; -} -export interface ResponseLoadSnapshotChunk { - chunk: Uint8Array; -} -export interface ResponseLoadSnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: Uint8Array; -} -export interface ResponseLoadSnapshotChunkAmino { - chunk?: string; -} -export interface ResponseLoadSnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseLoadSnapshotChunk"; - value: ResponseLoadSnapshotChunkAmino; -} -export interface ResponseLoadSnapshotChunkSDKType { - chunk: Uint8Array; -} -export interface ResponseApplySnapshotChunk { - result: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetchChunks: number[]; - /** Chunk senders to reject and ban */ - rejectSenders: string[]; -} -export interface ResponseApplySnapshotChunkProtoMsg { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: Uint8Array; -} -export interface ResponseApplySnapshotChunkAmino { - result?: ResponseApplySnapshotChunk_Result; - /** Chunks to refetch and reapply */ - refetch_chunks?: number[]; - /** Chunk senders to reject and ban */ - reject_senders?: string[]; -} -export interface ResponseApplySnapshotChunkAminoMsg { - type: "/tendermint.abci.ResponseApplySnapshotChunk"; - value: ResponseApplySnapshotChunkAmino; -} -export interface ResponseApplySnapshotChunkSDKType { - result: ResponseApplySnapshotChunk_Result; - refetch_chunks: number[]; - reject_senders: string[]; -} -export interface ResponsePrepareProposal { - txs: Uint8Array[]; -} -export interface ResponsePrepareProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponsePrepareProposal"; - value: Uint8Array; -} -export interface ResponsePrepareProposalAmino { - txs?: string[]; -} -export interface ResponsePrepareProposalAminoMsg { - type: "/tendermint.abci.ResponsePrepareProposal"; - value: ResponsePrepareProposalAmino; -} -export interface ResponsePrepareProposalSDKType { - txs: Uint8Array[]; -} -export interface ResponseProcessProposal { - status: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalProtoMsg { - typeUrl: "/tendermint.abci.ResponseProcessProposal"; - value: Uint8Array; -} -export interface ResponseProcessProposalAmino { - status?: ResponseProcessProposal_ProposalStatus; -} -export interface ResponseProcessProposalAminoMsg { - type: "/tendermint.abci.ResponseProcessProposal"; - value: ResponseProcessProposalAmino; -} -export interface ResponseProcessProposalSDKType { - status: ResponseProcessProposal_ProposalStatus; -} -export interface CommitInfo { - round: number; - votes: VoteInfo[]; -} -export interface CommitInfoProtoMsg { - typeUrl: "/tendermint.abci.CommitInfo"; - value: Uint8Array; -} -export interface CommitInfoAmino { - round?: number; - votes?: VoteInfoAmino[]; -} -export interface CommitInfoAminoMsg { - type: "/tendermint.abci.CommitInfo"; - value: CommitInfoAmino; -} -export interface CommitInfoSDKType { - round: number; - votes: VoteInfoSDKType[]; -} -export interface ExtendedCommitInfo { - /** The round at which the block proposer decided in the previous height. */ - round: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes: ExtendedVoteInfo[]; -} -export interface ExtendedCommitInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedCommitInfo"; - value: Uint8Array; -} -export interface ExtendedCommitInfoAmino { - /** The round at which the block proposer decided in the previous height. */ - round?: number; - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - */ - votes?: ExtendedVoteInfoAmino[]; -} -export interface ExtendedCommitInfoAminoMsg { - type: "/tendermint.abci.ExtendedCommitInfo"; - value: ExtendedCommitInfoAmino; -} -export interface ExtendedCommitInfoSDKType { - round: number; - votes: ExtendedVoteInfoSDKType[]; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface Event { - type: string; - attributes: EventAttribute[]; -} -export interface EventProtoMsg { - typeUrl: "/tendermint.abci.Event"; - value: Uint8Array; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventAmino { - type?: string; - attributes?: EventAttributeAmino[]; -} -export interface EventAminoMsg { - type: "/tendermint.abci.Event"; - value: EventAmino; -} -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface EventSDKType { - type: string; - attributes: EventAttributeSDKType[]; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttribute { - key: string; - value: string; - /** nondeterministic */ - index: boolean; -} -export interface EventAttributeProtoMsg { - typeUrl: "/tendermint.abci.EventAttribute"; - value: Uint8Array; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeAmino { - key?: string; - value?: string; - /** nondeterministic */ - index?: boolean; -} -export interface EventAttributeAminoMsg { - type: "/tendermint.abci.EventAttribute"; - value: EventAttributeAmino; -} -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface EventAttributeSDKType { - key: string; - value: string; - index: boolean; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResult { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTx; -} -export interface TxResultProtoMsg { - typeUrl: "/tendermint.abci.TxResult"; - value: Uint8Array; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultAmino { - height?: string; - index?: number; - tx?: string; - result?: ResponseDeliverTxAmino; -} -export interface TxResultAminoMsg { - type: "/tendermint.abci.TxResult"; - value: TxResultAmino; -} -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - */ -export interface TxResultSDKType { - height: bigint; - index: number; - tx: Uint8Array; - result: ResponseDeliverTxSDKType; -} -/** Validator */ -export interface Validator { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address: Uint8Array; - /** The voting power */ - power: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.abci.Validator"; - value: Uint8Array; -} -/** Validator */ -export interface ValidatorAmino { - /** - * The first 20 bytes of SHA256(public key) - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - */ - address?: string; - /** The voting power */ - power?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.abci.Validator"; - value: ValidatorAmino; -} -/** Validator */ -export interface ValidatorSDKType { - address: Uint8Array; - power: bigint; -} -/** ValidatorUpdate */ -export interface ValidatorUpdate { - pubKey: PublicKey; - power: bigint; -} -export interface ValidatorUpdateProtoMsg { - typeUrl: "/tendermint.abci.ValidatorUpdate"; - value: Uint8Array; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateAmino { - pub_key?: PublicKeyAmino; - power?: string; -} -export interface ValidatorUpdateAminoMsg { - type: "/tendermint.abci.ValidatorUpdate"; - value: ValidatorUpdateAmino; -} -/** ValidatorUpdate */ -export interface ValidatorUpdateSDKType { - pub_key: PublicKeySDKType; - power: bigint; -} -/** VoteInfo */ -export interface VoteInfo { - validator: Validator; - signedLastBlock: boolean; -} -export interface VoteInfoProtoMsg { - typeUrl: "/tendermint.abci.VoteInfo"; - value: Uint8Array; -} -/** VoteInfo */ -export interface VoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; -} -export interface VoteInfoAminoMsg { - type: "/tendermint.abci.VoteInfo"; - value: VoteInfoAmino; -} -/** VoteInfo */ -export interface VoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; -} -export interface ExtendedVoteInfo { - validator: Validator; - signedLastBlock: boolean; - /** Reserved for future use */ - voteExtension: Uint8Array; -} -export interface ExtendedVoteInfoProtoMsg { - typeUrl: "/tendermint.abci.ExtendedVoteInfo"; - value: Uint8Array; -} -export interface ExtendedVoteInfoAmino { - validator?: ValidatorAmino; - signed_last_block?: boolean; - /** Reserved for future use */ - vote_extension?: string; -} -export interface ExtendedVoteInfoAminoMsg { - type: "/tendermint.abci.ExtendedVoteInfo"; - value: ExtendedVoteInfoAmino; -} -export interface ExtendedVoteInfoSDKType { - validator: ValidatorSDKType; - signed_last_block: boolean; - vote_extension: Uint8Array; -} -export interface Misbehavior { - type: MisbehaviorType; - /** The offending validator */ - validator: Validator; - /** The height when the offense occurred */ - height: bigint; - /** The corresponding time where the offense occurred */ - time: Date; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - totalVotingPower: bigint; -} -export interface MisbehaviorProtoMsg { - typeUrl: "/tendermint.abci.Misbehavior"; - value: Uint8Array; -} -export interface MisbehaviorAmino { - type?: MisbehaviorType; - /** The offending validator */ - validator?: ValidatorAmino; - /** The height when the offense occurred */ - height?: string; - /** The corresponding time where the offense occurred */ - time?: string; - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - */ - total_voting_power?: string; -} -export interface MisbehaviorAminoMsg { - type: "/tendermint.abci.Misbehavior"; - value: MisbehaviorAmino; -} -export interface MisbehaviorSDKType { - type: MisbehaviorType; - validator: ValidatorSDKType; - height: bigint; - time: Date; - total_voting_power: bigint; -} -export interface Snapshot { - /** The height at which the snapshot was taken */ - height: bigint; - /** The application-specific snapshot format */ - format: number; - /** Number of chunks in the snapshot */ - chunks: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash: Uint8Array; - /** Arbitrary application metadata */ - metadata: Uint8Array; -} -export interface SnapshotProtoMsg { - typeUrl: "/tendermint.abci.Snapshot"; - value: Uint8Array; -} -export interface SnapshotAmino { - /** The height at which the snapshot was taken */ - height?: string; - /** The application-specific snapshot format */ - format?: number; - /** Number of chunks in the snapshot */ - chunks?: number; - /** Arbitrary snapshot hash, equal only if identical */ - hash?: string; - /** Arbitrary application metadata */ - metadata?: string; -} -export interface SnapshotAminoMsg { - type: "/tendermint.abci.Snapshot"; - value: SnapshotAmino; -} -export interface SnapshotSDKType { - height: bigint; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Uint8Array; -} -export declare const Request: { - typeUrl: string; - encode(message: Request, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Request; - fromPartial(object: Partial): Request; - fromAmino(object: RequestAmino): Request; - toAmino(message: Request): RequestAmino; - fromAminoMsg(object: RequestAminoMsg): Request; - fromProtoMsg(message: RequestProtoMsg): Request; - toProto(message: Request): Uint8Array; - toProtoMsg(message: Request): RequestProtoMsg; -}; -export declare const RequestEcho: { - typeUrl: string; - encode(message: RequestEcho, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestEcho; - fromPartial(object: Partial): RequestEcho; - fromAmino(object: RequestEchoAmino): RequestEcho; - toAmino(message: RequestEcho): RequestEchoAmino; - fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho; - fromProtoMsg(message: RequestEchoProtoMsg): RequestEcho; - toProto(message: RequestEcho): Uint8Array; - toProtoMsg(message: RequestEcho): RequestEchoProtoMsg; -}; -export declare const RequestFlush: { - typeUrl: string; - encode(_: RequestFlush, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestFlush; - fromPartial(_: Partial): RequestFlush; - fromAmino(_: RequestFlushAmino): RequestFlush; - toAmino(_: RequestFlush): RequestFlushAmino; - fromAminoMsg(object: RequestFlushAminoMsg): RequestFlush; - fromProtoMsg(message: RequestFlushProtoMsg): RequestFlush; - toProto(message: RequestFlush): Uint8Array; - toProtoMsg(message: RequestFlush): RequestFlushProtoMsg; -}; -export declare const RequestInfo: { - typeUrl: string; - encode(message: RequestInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo; - fromPartial(object: Partial): RequestInfo; - fromAmino(object: RequestInfoAmino): RequestInfo; - toAmino(message: RequestInfo): RequestInfoAmino; - fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo; - fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo; - toProto(message: RequestInfo): Uint8Array; - toProtoMsg(message: RequestInfo): RequestInfoProtoMsg; -}; -export declare const RequestInitChain: { - typeUrl: string; - encode(message: RequestInitChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestInitChain; - fromPartial(object: Partial): RequestInitChain; - fromAmino(object: RequestInitChainAmino): RequestInitChain; - toAmino(message: RequestInitChain): RequestInitChainAmino; - fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain; - fromProtoMsg(message: RequestInitChainProtoMsg): RequestInitChain; - toProto(message: RequestInitChain): Uint8Array; - toProtoMsg(message: RequestInitChain): RequestInitChainProtoMsg; -}; -export declare const RequestQuery: { - typeUrl: string; - encode(message: RequestQuery, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestQuery; - fromPartial(object: Partial): RequestQuery; - fromAmino(object: RequestQueryAmino): RequestQuery; - toAmino(message: RequestQuery): RequestQueryAmino; - fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery; - fromProtoMsg(message: RequestQueryProtoMsg): RequestQuery; - toProto(message: RequestQuery): Uint8Array; - toProtoMsg(message: RequestQuery): RequestQueryProtoMsg; -}; -export declare const RequestBeginBlock: { - typeUrl: string; - encode(message: RequestBeginBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestBeginBlock; - fromPartial(object: Partial): RequestBeginBlock; - fromAmino(object: RequestBeginBlockAmino): RequestBeginBlock; - toAmino(message: RequestBeginBlock): RequestBeginBlockAmino; - fromAminoMsg(object: RequestBeginBlockAminoMsg): RequestBeginBlock; - fromProtoMsg(message: RequestBeginBlockProtoMsg): RequestBeginBlock; - toProto(message: RequestBeginBlock): Uint8Array; - toProtoMsg(message: RequestBeginBlock): RequestBeginBlockProtoMsg; -}; -export declare const RequestCheckTx: { - typeUrl: string; - encode(message: RequestCheckTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestCheckTx; - fromPartial(object: Partial): RequestCheckTx; - fromAmino(object: RequestCheckTxAmino): RequestCheckTx; - toAmino(message: RequestCheckTx): RequestCheckTxAmino; - fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx; - fromProtoMsg(message: RequestCheckTxProtoMsg): RequestCheckTx; - toProto(message: RequestCheckTx): Uint8Array; - toProtoMsg(message: RequestCheckTx): RequestCheckTxProtoMsg; -}; -export declare const RequestDeliverTx: { - typeUrl: string; - encode(message: RequestDeliverTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestDeliverTx; - fromPartial(object: Partial): RequestDeliverTx; - fromAmino(object: RequestDeliverTxAmino): RequestDeliverTx; - toAmino(message: RequestDeliverTx): RequestDeliverTxAmino; - fromAminoMsg(object: RequestDeliverTxAminoMsg): RequestDeliverTx; - fromProtoMsg(message: RequestDeliverTxProtoMsg): RequestDeliverTx; - toProto(message: RequestDeliverTx): Uint8Array; - toProtoMsg(message: RequestDeliverTx): RequestDeliverTxProtoMsg; -}; -export declare const RequestEndBlock: { - typeUrl: string; - encode(message: RequestEndBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestEndBlock; - fromPartial(object: Partial): RequestEndBlock; - fromAmino(object: RequestEndBlockAmino): RequestEndBlock; - toAmino(message: RequestEndBlock): RequestEndBlockAmino; - fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock; - fromProtoMsg(message: RequestEndBlockProtoMsg): RequestEndBlock; - toProto(message: RequestEndBlock): Uint8Array; - toProtoMsg(message: RequestEndBlock): RequestEndBlockProtoMsg; -}; -export declare const RequestCommit: { - typeUrl: string; - encode(_: RequestCommit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestCommit; - fromPartial(_: Partial): RequestCommit; - fromAmino(_: RequestCommitAmino): RequestCommit; - toAmino(_: RequestCommit): RequestCommitAmino; - fromAminoMsg(object: RequestCommitAminoMsg): RequestCommit; - fromProtoMsg(message: RequestCommitProtoMsg): RequestCommit; - toProto(message: RequestCommit): Uint8Array; - toProtoMsg(message: RequestCommit): RequestCommitProtoMsg; -}; -export declare const RequestListSnapshots: { - typeUrl: string; - encode(_: RequestListSnapshots, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestListSnapshots; - fromPartial(_: Partial): RequestListSnapshots; - fromAmino(_: RequestListSnapshotsAmino): RequestListSnapshots; - toAmino(_: RequestListSnapshots): RequestListSnapshotsAmino; - fromAminoMsg(object: RequestListSnapshotsAminoMsg): RequestListSnapshots; - fromProtoMsg(message: RequestListSnapshotsProtoMsg): RequestListSnapshots; - toProto(message: RequestListSnapshots): Uint8Array; - toProtoMsg(message: RequestListSnapshots): RequestListSnapshotsProtoMsg; -}; -export declare const RequestOfferSnapshot: { - typeUrl: string; - encode(message: RequestOfferSnapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestOfferSnapshot; - fromPartial(object: Partial): RequestOfferSnapshot; - fromAmino(object: RequestOfferSnapshotAmino): RequestOfferSnapshot; - toAmino(message: RequestOfferSnapshot): RequestOfferSnapshotAmino; - fromAminoMsg(object: RequestOfferSnapshotAminoMsg): RequestOfferSnapshot; - fromProtoMsg(message: RequestOfferSnapshotProtoMsg): RequestOfferSnapshot; - toProto(message: RequestOfferSnapshot): Uint8Array; - toProtoMsg(message: RequestOfferSnapshot): RequestOfferSnapshotProtoMsg; -}; -export declare const RequestLoadSnapshotChunk: { - typeUrl: string; - encode(message: RequestLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestLoadSnapshotChunk; - fromPartial(object: Partial): RequestLoadSnapshotChunk; - fromAmino(object: RequestLoadSnapshotChunkAmino): RequestLoadSnapshotChunk; - toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino; - fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk; - fromProtoMsg(message: RequestLoadSnapshotChunkProtoMsg): RequestLoadSnapshotChunk; - toProto(message: RequestLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkProtoMsg; -}; -export declare const RequestApplySnapshotChunk: { - typeUrl: string; - encode(message: RequestApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestApplySnapshotChunk; - fromPartial(object: Partial): RequestApplySnapshotChunk; - fromAmino(object: RequestApplySnapshotChunkAmino): RequestApplySnapshotChunk; - toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino; - fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk; - fromProtoMsg(message: RequestApplySnapshotChunkProtoMsg): RequestApplySnapshotChunk; - toProto(message: RequestApplySnapshotChunk): Uint8Array; - toProtoMsg(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkProtoMsg; -}; -export declare const RequestPrepareProposal: { - typeUrl: string; - encode(message: RequestPrepareProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestPrepareProposal; - fromPartial(object: Partial): RequestPrepareProposal; - fromAmino(object: RequestPrepareProposalAmino): RequestPrepareProposal; - toAmino(message: RequestPrepareProposal): RequestPrepareProposalAmino; - fromAminoMsg(object: RequestPrepareProposalAminoMsg): RequestPrepareProposal; - fromProtoMsg(message: RequestPrepareProposalProtoMsg): RequestPrepareProposal; - toProto(message: RequestPrepareProposal): Uint8Array; - toProtoMsg(message: RequestPrepareProposal): RequestPrepareProposalProtoMsg; -}; -export declare const RequestProcessProposal: { - typeUrl: string; - encode(message: RequestProcessProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): RequestProcessProposal; - fromPartial(object: Partial): RequestProcessProposal; - fromAmino(object: RequestProcessProposalAmino): RequestProcessProposal; - toAmino(message: RequestProcessProposal): RequestProcessProposalAmino; - fromAminoMsg(object: RequestProcessProposalAminoMsg): RequestProcessProposal; - fromProtoMsg(message: RequestProcessProposalProtoMsg): RequestProcessProposal; - toProto(message: RequestProcessProposal): Uint8Array; - toProtoMsg(message: RequestProcessProposal): RequestProcessProposalProtoMsg; -}; -export declare const Response: { - typeUrl: string; - encode(message: Response, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Response; - fromPartial(object: Partial): Response; - fromAmino(object: ResponseAmino): Response; - toAmino(message: Response): ResponseAmino; - fromAminoMsg(object: ResponseAminoMsg): Response; - fromProtoMsg(message: ResponseProtoMsg): Response; - toProto(message: Response): Uint8Array; - toProtoMsg(message: Response): ResponseProtoMsg; -}; -export declare const ResponseException: { - typeUrl: string; - encode(message: ResponseException, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseException; - fromPartial(object: Partial): ResponseException; - fromAmino(object: ResponseExceptionAmino): ResponseException; - toAmino(message: ResponseException): ResponseExceptionAmino; - fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException; - fromProtoMsg(message: ResponseExceptionProtoMsg): ResponseException; - toProto(message: ResponseException): Uint8Array; - toProtoMsg(message: ResponseException): ResponseExceptionProtoMsg; -}; -export declare const ResponseEcho: { - typeUrl: string; - encode(message: ResponseEcho, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEcho; - fromPartial(object: Partial): ResponseEcho; - fromAmino(object: ResponseEchoAmino): ResponseEcho; - toAmino(message: ResponseEcho): ResponseEchoAmino; - fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho; - fromProtoMsg(message: ResponseEchoProtoMsg): ResponseEcho; - toProto(message: ResponseEcho): Uint8Array; - toProtoMsg(message: ResponseEcho): ResponseEchoProtoMsg; -}; -export declare const ResponseFlush: { - typeUrl: string; - encode(_: ResponseFlush, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseFlush; - fromPartial(_: Partial): ResponseFlush; - fromAmino(_: ResponseFlushAmino): ResponseFlush; - toAmino(_: ResponseFlush): ResponseFlushAmino; - fromAminoMsg(object: ResponseFlushAminoMsg): ResponseFlush; - fromProtoMsg(message: ResponseFlushProtoMsg): ResponseFlush; - toProto(message: ResponseFlush): Uint8Array; - toProtoMsg(message: ResponseFlush): ResponseFlushProtoMsg; -}; -export declare const ResponseInfo: { - typeUrl: string; - encode(message: ResponseInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInfo; - fromPartial(object: Partial): ResponseInfo; - fromAmino(object: ResponseInfoAmino): ResponseInfo; - toAmino(message: ResponseInfo): ResponseInfoAmino; - fromAminoMsg(object: ResponseInfoAminoMsg): ResponseInfo; - fromProtoMsg(message: ResponseInfoProtoMsg): ResponseInfo; - toProto(message: ResponseInfo): Uint8Array; - toProtoMsg(message: ResponseInfo): ResponseInfoProtoMsg; -}; -export declare const ResponseInitChain: { - typeUrl: string; - encode(message: ResponseInitChain, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseInitChain; - fromPartial(object: Partial): ResponseInitChain; - fromAmino(object: ResponseInitChainAmino): ResponseInitChain; - toAmino(message: ResponseInitChain): ResponseInitChainAmino; - fromAminoMsg(object: ResponseInitChainAminoMsg): ResponseInitChain; - fromProtoMsg(message: ResponseInitChainProtoMsg): ResponseInitChain; - toProto(message: ResponseInitChain): Uint8Array; - toProtoMsg(message: ResponseInitChain): ResponseInitChainProtoMsg; -}; -export declare const ResponseQuery: { - typeUrl: string; - encode(message: ResponseQuery, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseQuery; - fromPartial(object: Partial): ResponseQuery; - fromAmino(object: ResponseQueryAmino): ResponseQuery; - toAmino(message: ResponseQuery): ResponseQueryAmino; - fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery; - fromProtoMsg(message: ResponseQueryProtoMsg): ResponseQuery; - toProto(message: ResponseQuery): Uint8Array; - toProtoMsg(message: ResponseQuery): ResponseQueryProtoMsg; -}; -export declare const ResponseBeginBlock: { - typeUrl: string; - encode(message: ResponseBeginBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseBeginBlock; - fromPartial(object: Partial): ResponseBeginBlock; - fromAmino(object: ResponseBeginBlockAmino): ResponseBeginBlock; - toAmino(message: ResponseBeginBlock): ResponseBeginBlockAmino; - fromAminoMsg(object: ResponseBeginBlockAminoMsg): ResponseBeginBlock; - fromProtoMsg(message: ResponseBeginBlockProtoMsg): ResponseBeginBlock; - toProto(message: ResponseBeginBlock): Uint8Array; - toProtoMsg(message: ResponseBeginBlock): ResponseBeginBlockProtoMsg; -}; -export declare const ResponseCheckTx: { - typeUrl: string; - encode(message: ResponseCheckTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCheckTx; - fromPartial(object: Partial): ResponseCheckTx; - fromAmino(object: ResponseCheckTxAmino): ResponseCheckTx; - toAmino(message: ResponseCheckTx): ResponseCheckTxAmino; - fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx; - fromProtoMsg(message: ResponseCheckTxProtoMsg): ResponseCheckTx; - toProto(message: ResponseCheckTx): Uint8Array; - toProtoMsg(message: ResponseCheckTx): ResponseCheckTxProtoMsg; -}; -export declare const ResponseDeliverTx: { - typeUrl: string; - encode(message: ResponseDeliverTx, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx; - fromPartial(object: Partial): ResponseDeliverTx; - fromAmino(object: ResponseDeliverTxAmino): ResponseDeliverTx; - toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino; - fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx; - fromProtoMsg(message: ResponseDeliverTxProtoMsg): ResponseDeliverTx; - toProto(message: ResponseDeliverTx): Uint8Array; - toProtoMsg(message: ResponseDeliverTx): ResponseDeliverTxProtoMsg; -}; -export declare const ResponseEndBlock: { - typeUrl: string; - encode(message: ResponseEndBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseEndBlock; - fromPartial(object: Partial): ResponseEndBlock; - fromAmino(object: ResponseEndBlockAmino): ResponseEndBlock; - toAmino(message: ResponseEndBlock): ResponseEndBlockAmino; - fromAminoMsg(object: ResponseEndBlockAminoMsg): ResponseEndBlock; - fromProtoMsg(message: ResponseEndBlockProtoMsg): ResponseEndBlock; - toProto(message: ResponseEndBlock): Uint8Array; - toProtoMsg(message: ResponseEndBlock): ResponseEndBlockProtoMsg; -}; -export declare const ResponseCommit: { - typeUrl: string; - encode(message: ResponseCommit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseCommit; - fromPartial(object: Partial): ResponseCommit; - fromAmino(object: ResponseCommitAmino): ResponseCommit; - toAmino(message: ResponseCommit): ResponseCommitAmino; - fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit; - fromProtoMsg(message: ResponseCommitProtoMsg): ResponseCommit; - toProto(message: ResponseCommit): Uint8Array; - toProtoMsg(message: ResponseCommit): ResponseCommitProtoMsg; -}; -export declare const ResponseListSnapshots: { - typeUrl: string; - encode(message: ResponseListSnapshots, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseListSnapshots; - fromPartial(object: Partial): ResponseListSnapshots; - fromAmino(object: ResponseListSnapshotsAmino): ResponseListSnapshots; - toAmino(message: ResponseListSnapshots): ResponseListSnapshotsAmino; - fromAminoMsg(object: ResponseListSnapshotsAminoMsg): ResponseListSnapshots; - fromProtoMsg(message: ResponseListSnapshotsProtoMsg): ResponseListSnapshots; - toProto(message: ResponseListSnapshots): Uint8Array; - toProtoMsg(message: ResponseListSnapshots): ResponseListSnapshotsProtoMsg; -}; -export declare const ResponseOfferSnapshot: { - typeUrl: string; - encode(message: ResponseOfferSnapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseOfferSnapshot; - fromPartial(object: Partial): ResponseOfferSnapshot; - fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot; - toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino; - fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot; - fromProtoMsg(message: ResponseOfferSnapshotProtoMsg): ResponseOfferSnapshot; - toProto(message: ResponseOfferSnapshot): Uint8Array; - toProtoMsg(message: ResponseOfferSnapshot): ResponseOfferSnapshotProtoMsg; -}; -export declare const ResponseLoadSnapshotChunk: { - typeUrl: string; - encode(message: ResponseLoadSnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; - fromPartial(object: Partial): ResponseLoadSnapshotChunk; - fromAmino(object: ResponseLoadSnapshotChunkAmino): ResponseLoadSnapshotChunk; - toAmino(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkAmino; - fromAminoMsg(object: ResponseLoadSnapshotChunkAminoMsg): ResponseLoadSnapshotChunk; - fromProtoMsg(message: ResponseLoadSnapshotChunkProtoMsg): ResponseLoadSnapshotChunk; - toProto(message: ResponseLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunkProtoMsg; -}; -export declare const ResponseApplySnapshotChunk: { - typeUrl: string; - encode(message: ResponseApplySnapshotChunk, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseApplySnapshotChunk; - fromPartial(object: Partial): ResponseApplySnapshotChunk; - fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk; - toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino; - fromAminoMsg(object: ResponseApplySnapshotChunkAminoMsg): ResponseApplySnapshotChunk; - fromProtoMsg(message: ResponseApplySnapshotChunkProtoMsg): ResponseApplySnapshotChunk; - toProto(message: ResponseApplySnapshotChunk): Uint8Array; - toProtoMsg(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkProtoMsg; -}; -export declare const ResponsePrepareProposal: { - typeUrl: string; - encode(message: ResponsePrepareProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponsePrepareProposal; - fromPartial(object: Partial): ResponsePrepareProposal; - fromAmino(object: ResponsePrepareProposalAmino): ResponsePrepareProposal; - toAmino(message: ResponsePrepareProposal): ResponsePrepareProposalAmino; - fromAminoMsg(object: ResponsePrepareProposalAminoMsg): ResponsePrepareProposal; - fromProtoMsg(message: ResponsePrepareProposalProtoMsg): ResponsePrepareProposal; - toProto(message: ResponsePrepareProposal): Uint8Array; - toProtoMsg(message: ResponsePrepareProposal): ResponsePrepareProposalProtoMsg; -}; -export declare const ResponseProcessProposal: { - typeUrl: string; - encode(message: ResponseProcessProposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ResponseProcessProposal; - fromPartial(object: Partial): ResponseProcessProposal; - fromAmino(object: ResponseProcessProposalAmino): ResponseProcessProposal; - toAmino(message: ResponseProcessProposal): ResponseProcessProposalAmino; - fromAminoMsg(object: ResponseProcessProposalAminoMsg): ResponseProcessProposal; - fromProtoMsg(message: ResponseProcessProposalProtoMsg): ResponseProcessProposal; - toProto(message: ResponseProcessProposal): Uint8Array; - toProtoMsg(message: ResponseProcessProposal): ResponseProcessProposalProtoMsg; -}; -export declare const CommitInfo: { - typeUrl: string; - encode(message: CommitInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitInfo; - fromPartial(object: Partial): CommitInfo; - fromAmino(object: CommitInfoAmino): CommitInfo; - toAmino(message: CommitInfo): CommitInfoAmino; - fromAminoMsg(object: CommitInfoAminoMsg): CommitInfo; - fromProtoMsg(message: CommitInfoProtoMsg): CommitInfo; - toProto(message: CommitInfo): Uint8Array; - toProtoMsg(message: CommitInfo): CommitInfoProtoMsg; -}; -export declare const ExtendedCommitInfo: { - typeUrl: string; - encode(message: ExtendedCommitInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedCommitInfo; - fromPartial(object: Partial): ExtendedCommitInfo; - fromAmino(object: ExtendedCommitInfoAmino): ExtendedCommitInfo; - toAmino(message: ExtendedCommitInfo): ExtendedCommitInfoAmino; - fromAminoMsg(object: ExtendedCommitInfoAminoMsg): ExtendedCommitInfo; - fromProtoMsg(message: ExtendedCommitInfoProtoMsg): ExtendedCommitInfo; - toProto(message: ExtendedCommitInfo): Uint8Array; - toProtoMsg(message: ExtendedCommitInfo): ExtendedCommitInfoProtoMsg; -}; -export declare const Event: { - typeUrl: string; - encode(message: Event, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Event; - fromPartial(object: Partial): Event; - fromAmino(object: EventAmino): Event; - toAmino(message: Event): EventAmino; - fromAminoMsg(object: EventAminoMsg): Event; - fromProtoMsg(message: EventProtoMsg): Event; - toProto(message: Event): Uint8Array; - toProtoMsg(message: Event): EventProtoMsg; -}; -export declare const EventAttribute: { - typeUrl: string; - encode(message: EventAttribute, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EventAttribute; - fromPartial(object: Partial): EventAttribute; - fromAmino(object: EventAttributeAmino): EventAttribute; - toAmino(message: EventAttribute): EventAttributeAmino; - fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute; - fromProtoMsg(message: EventAttributeProtoMsg): EventAttribute; - toProto(message: EventAttribute): Uint8Array; - toProtoMsg(message: EventAttribute): EventAttributeProtoMsg; -}; -export declare const TxResult: { - typeUrl: string; - encode(message: TxResult, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxResult; - fromPartial(object: Partial): TxResult; - fromAmino(object: TxResultAmino): TxResult; - toAmino(message: TxResult): TxResultAmino; - fromAminoMsg(object: TxResultAminoMsg): TxResult; - fromProtoMsg(message: TxResultProtoMsg): TxResult; - toProto(message: TxResult): Uint8Array; - toProtoMsg(message: TxResult): TxResultProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const ValidatorUpdate: { - typeUrl: string; - encode(message: ValidatorUpdate, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorUpdate; - fromPartial(object: Partial): ValidatorUpdate; - fromAmino(object: ValidatorUpdateAmino): ValidatorUpdate; - toAmino(message: ValidatorUpdate): ValidatorUpdateAmino; - fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate; - fromProtoMsg(message: ValidatorUpdateProtoMsg): ValidatorUpdate; - toProto(message: ValidatorUpdate): Uint8Array; - toProtoMsg(message: ValidatorUpdate): ValidatorUpdateProtoMsg; -}; -export declare const VoteInfo: { - typeUrl: string; - encode(message: VoteInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VoteInfo; - fromPartial(object: Partial): VoteInfo; - fromAmino(object: VoteInfoAmino): VoteInfo; - toAmino(message: VoteInfo): VoteInfoAmino; - fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo; - fromProtoMsg(message: VoteInfoProtoMsg): VoteInfo; - toProto(message: VoteInfo): Uint8Array; - toProtoMsg(message: VoteInfo): VoteInfoProtoMsg; -}; -export declare const ExtendedVoteInfo: { - typeUrl: string; - encode(message: ExtendedVoteInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ExtendedVoteInfo; - fromPartial(object: Partial): ExtendedVoteInfo; - fromAmino(object: ExtendedVoteInfoAmino): ExtendedVoteInfo; - toAmino(message: ExtendedVoteInfo): ExtendedVoteInfoAmino; - fromAminoMsg(object: ExtendedVoteInfoAminoMsg): ExtendedVoteInfo; - fromProtoMsg(message: ExtendedVoteInfoProtoMsg): ExtendedVoteInfo; - toProto(message: ExtendedVoteInfo): Uint8Array; - toProtoMsg(message: ExtendedVoteInfo): ExtendedVoteInfoProtoMsg; -}; -export declare const Misbehavior: { - typeUrl: string; - encode(message: Misbehavior, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Misbehavior; - fromPartial(object: Partial): Misbehavior; - fromAmino(object: MisbehaviorAmino): Misbehavior; - toAmino(message: Misbehavior): MisbehaviorAmino; - fromAminoMsg(object: MisbehaviorAminoMsg): Misbehavior; - fromProtoMsg(message: MisbehaviorProtoMsg): Misbehavior; - toProto(message: Misbehavior): Uint8Array; - toProtoMsg(message: Misbehavior): MisbehaviorProtoMsg; -}; -export declare const Snapshot: { - typeUrl: string; - encode(message: Snapshot, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Snapshot; - fromPartial(object: Partial): Snapshot; - fromAmino(object: SnapshotAmino): Snapshot; - toAmino(message: Snapshot): SnapshotAmino; - fromAminoMsg(object: SnapshotAminoMsg): Snapshot; - fromProtoMsg(message: SnapshotProtoMsg): Snapshot; - toProto(message: Snapshot): Uint8Array; - toProtoMsg(message: Snapshot): SnapshotProtoMsg; -}; diff --git a/packages/api/dist/tendermint/abci/types.js b/packages/api/dist/tendermint/abci/types.js deleted file mode 100644 index 93b785b5..00000000 --- a/packages/api/dist/tendermint/abci/types.js +++ /dev/null @@ -1,4636 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResponseBeginBlock = exports.ResponseQuery = exports.ResponseInitChain = exports.ResponseInfo = exports.ResponseFlush = exports.ResponseEcho = exports.ResponseException = exports.Response = exports.RequestProcessProposal = exports.RequestPrepareProposal = exports.RequestApplySnapshotChunk = exports.RequestLoadSnapshotChunk = exports.RequestOfferSnapshot = exports.RequestListSnapshots = exports.RequestCommit = exports.RequestEndBlock = exports.RequestDeliverTx = exports.RequestCheckTx = exports.RequestBeginBlock = exports.RequestQuery = exports.RequestInitChain = exports.RequestInfo = exports.RequestFlush = exports.RequestEcho = exports.Request = exports.misbehaviorTypeToJSON = exports.misbehaviorTypeFromJSON = exports.MisbehaviorTypeAmino = exports.MisbehaviorTypeSDKType = exports.MisbehaviorType = exports.responseProcessProposal_ProposalStatusToJSON = exports.responseProcessProposal_ProposalStatusFromJSON = exports.ResponseProcessProposal_ProposalStatusAmino = exports.ResponseProcessProposal_ProposalStatusSDKType = exports.ResponseProcessProposal_ProposalStatus = exports.responseApplySnapshotChunk_ResultToJSON = exports.responseApplySnapshotChunk_ResultFromJSON = exports.ResponseApplySnapshotChunk_ResultAmino = exports.ResponseApplySnapshotChunk_ResultSDKType = exports.ResponseApplySnapshotChunk_Result = exports.responseOfferSnapshot_ResultToJSON = exports.responseOfferSnapshot_ResultFromJSON = exports.ResponseOfferSnapshot_ResultAmino = exports.ResponseOfferSnapshot_ResultSDKType = exports.ResponseOfferSnapshot_Result = exports.checkTxTypeToJSON = exports.checkTxTypeFromJSON = exports.CheckTxTypeAmino = exports.CheckTxTypeSDKType = exports.CheckTxType = void 0; -exports.Snapshot = exports.Misbehavior = exports.ExtendedVoteInfo = exports.VoteInfo = exports.ValidatorUpdate = exports.Validator = exports.TxResult = exports.EventAttribute = exports.Event = exports.ExtendedCommitInfo = exports.CommitInfo = exports.ResponseProcessProposal = exports.ResponsePrepareProposal = exports.ResponseApplySnapshotChunk = exports.ResponseLoadSnapshotChunk = exports.ResponseOfferSnapshot = exports.ResponseListSnapshots = exports.ResponseCommit = exports.ResponseEndBlock = exports.ResponseDeliverTx = exports.ResponseCheckTx = void 0; -//@ts-nocheck -const timestamp_1 = require("../../google/protobuf/timestamp"); -const params_1 = require("../types/params"); -const types_1 = require("../types/types"); -const proof_1 = require("../crypto/proof"); -const keys_1 = require("../crypto/keys"); -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -var CheckTxType; -(function (CheckTxType) { - CheckTxType[CheckTxType["NEW"] = 0] = "NEW"; - CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK"; - CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(CheckTxType || (exports.CheckTxType = CheckTxType = {})); -exports.CheckTxTypeSDKType = CheckTxType; -exports.CheckTxTypeAmino = CheckTxType; -function checkTxTypeFromJSON(object) { - switch (object) { - case 0: - case "NEW": - return CheckTxType.NEW; - case 1: - case "RECHECK": - return CheckTxType.RECHECK; - case -1: - case "UNRECOGNIZED": - default: - return CheckTxType.UNRECOGNIZED; - } -} -exports.checkTxTypeFromJSON = checkTxTypeFromJSON; -function checkTxTypeToJSON(object) { - switch (object) { - case CheckTxType.NEW: - return "NEW"; - case CheckTxType.RECHECK: - return "RECHECK"; - case CheckTxType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.checkTxTypeToJSON = checkTxTypeToJSON; -var ResponseOfferSnapshot_Result; -(function (ResponseOfferSnapshot_Result) { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNKNOWN"] = 0] = "UNKNOWN"; - /** ACCEPT - Snapshot accepted, apply chunks */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ACCEPT"] = 1] = "ACCEPT"; - /** ABORT - Abort all snapshot restoration */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["ABORT"] = 2] = "ABORT"; - /** REJECT - Reject this specific snapshot, try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT"] = 3] = "REJECT"; - /** REJECT_FORMAT - Reject all snapshots of this format, try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_FORMAT"] = 4] = "REJECT_FORMAT"; - /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_SENDER"] = 5] = "REJECT_SENDER"; - ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseOfferSnapshot_Result || (exports.ResponseOfferSnapshot_Result = ResponseOfferSnapshot_Result = {})); -exports.ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result; -exports.ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result; -function responseOfferSnapshot_ResultFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseOfferSnapshot_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseOfferSnapshot_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseOfferSnapshot_Result.ABORT; - case 3: - case "REJECT": - return ResponseOfferSnapshot_Result.REJECT; - case 4: - case "REJECT_FORMAT": - return ResponseOfferSnapshot_Result.REJECT_FORMAT; - case 5: - case "REJECT_SENDER": - return ResponseOfferSnapshot_Result.REJECT_SENDER; - case -1: - case "UNRECOGNIZED": - default: - return ResponseOfferSnapshot_Result.UNRECOGNIZED; - } -} -exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON; -function responseOfferSnapshot_ResultToJSON(object) { - switch (object) { - case ResponseOfferSnapshot_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseOfferSnapshot_Result.ACCEPT: - return "ACCEPT"; - case ResponseOfferSnapshot_Result.ABORT: - return "ABORT"; - case ResponseOfferSnapshot_Result.REJECT: - return "REJECT"; - case ResponseOfferSnapshot_Result.REJECT_FORMAT: - return "REJECT_FORMAT"; - case ResponseOfferSnapshot_Result.REJECT_SENDER: - return "REJECT_SENDER"; - case ResponseOfferSnapshot_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON; -var ResponseApplySnapshotChunk_Result; -(function (ResponseApplySnapshotChunk_Result) { - /** UNKNOWN - Unknown result, abort all snapshot restoration */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNKNOWN"] = 0] = "UNKNOWN"; - /** ACCEPT - Chunk successfully accepted */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ACCEPT"] = 1] = "ACCEPT"; - /** ABORT - Abort all snapshot restoration */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["ABORT"] = 2] = "ABORT"; - /** RETRY - Retry chunk (combine with refetch and reject) */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY"] = 3] = "RETRY"; - /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["RETRY_SNAPSHOT"] = 4] = "RETRY_SNAPSHOT"; - /** REJECT_SNAPSHOT - Reject this snapshot, try others */ - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["REJECT_SNAPSHOT"] = 5] = "REJECT_SNAPSHOT"; - ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseApplySnapshotChunk_Result || (exports.ResponseApplySnapshotChunk_Result = ResponseApplySnapshotChunk_Result = {})); -exports.ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result; -exports.ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result; -function responseApplySnapshotChunk_ResultFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseApplySnapshotChunk_Result.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseApplySnapshotChunk_Result.ACCEPT; - case 2: - case "ABORT": - return ResponseApplySnapshotChunk_Result.ABORT; - case 3: - case "RETRY": - return ResponseApplySnapshotChunk_Result.RETRY; - case 4: - case "RETRY_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT; - case 5: - case "REJECT_SNAPSHOT": - return ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseApplySnapshotChunk_Result.UNRECOGNIZED; - } -} -exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON; -function responseApplySnapshotChunk_ResultToJSON(object) { - switch (object) { - case ResponseApplySnapshotChunk_Result.UNKNOWN: - return "UNKNOWN"; - case ResponseApplySnapshotChunk_Result.ACCEPT: - return "ACCEPT"; - case ResponseApplySnapshotChunk_Result.ABORT: - return "ABORT"; - case ResponseApplySnapshotChunk_Result.RETRY: - return "RETRY"; - case ResponseApplySnapshotChunk_Result.RETRY_SNAPSHOT: - return "RETRY_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.REJECT_SNAPSHOT: - return "REJECT_SNAPSHOT"; - case ResponseApplySnapshotChunk_Result.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON; -var ResponseProcessProposal_ProposalStatus; -(function (ResponseProcessProposal_ProposalStatus) { - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT"; - ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(ResponseProcessProposal_ProposalStatus || (exports.ResponseProcessProposal_ProposalStatus = ResponseProcessProposal_ProposalStatus = {})); -exports.ResponseProcessProposal_ProposalStatusSDKType = ResponseProcessProposal_ProposalStatus; -exports.ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus; -function responseProcessProposal_ProposalStatusFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return ResponseProcessProposal_ProposalStatus.UNKNOWN; - case 1: - case "ACCEPT": - return ResponseProcessProposal_ProposalStatus.ACCEPT; - case 2: - case "REJECT": - return ResponseProcessProposal_ProposalStatus.REJECT; - case -1: - case "UNRECOGNIZED": - default: - return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED; - } -} -exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON; -function responseProcessProposal_ProposalStatusToJSON(object) { - switch (object) { - case ResponseProcessProposal_ProposalStatus.UNKNOWN: - return "UNKNOWN"; - case ResponseProcessProposal_ProposalStatus.ACCEPT: - return "ACCEPT"; - case ResponseProcessProposal_ProposalStatus.REJECT: - return "REJECT"; - case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON; -var MisbehaviorType; -(function (MisbehaviorType) { - MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN"; - MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE"; - MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK"; - MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(MisbehaviorType || (exports.MisbehaviorType = MisbehaviorType = {})); -exports.MisbehaviorTypeSDKType = MisbehaviorType; -exports.MisbehaviorTypeAmino = MisbehaviorType; -function misbehaviorTypeFromJSON(object) { - switch (object) { - case 0: - case "UNKNOWN": - return MisbehaviorType.UNKNOWN; - case 1: - case "DUPLICATE_VOTE": - return MisbehaviorType.DUPLICATE_VOTE; - case 2: - case "LIGHT_CLIENT_ATTACK": - return MisbehaviorType.LIGHT_CLIENT_ATTACK; - case -1: - case "UNRECOGNIZED": - default: - return MisbehaviorType.UNRECOGNIZED; - } -} -exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON; -function misbehaviorTypeToJSON(object) { - switch (object) { - case MisbehaviorType.UNKNOWN: - return "UNKNOWN"; - case MisbehaviorType.DUPLICATE_VOTE: - return "DUPLICATE_VOTE"; - case MisbehaviorType.LIGHT_CLIENT_ATTACK: - return "LIGHT_CLIENT_ATTACK"; - case MisbehaviorType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON; -function createBaseRequest() { - return { - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -exports.Request = { - typeUrl: "/tendermint.abci.Request", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.echo !== undefined) { - exports.RequestEcho.encode(message.echo, writer.uint32(10).fork()).ldelim(); - } - if (message.flush !== undefined) { - exports.RequestFlush.encode(message.flush, writer.uint32(18).fork()).ldelim(); - } - if (message.info !== undefined) { - exports.RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim(); - } - if (message.initChain !== undefined) { - exports.RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim(); - } - if (message.query !== undefined) { - exports.RequestQuery.encode(message.query, writer.uint32(50).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - exports.RequestBeginBlock.encode(message.beginBlock, writer.uint32(58).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - exports.RequestCheckTx.encode(message.checkTx, writer.uint32(66).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - exports.RequestDeliverTx.encode(message.deliverTx, writer.uint32(74).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - exports.RequestEndBlock.encode(message.endBlock, writer.uint32(82).fork()).ldelim(); - } - if (message.commit !== undefined) { - exports.RequestCommit.encode(message.commit, writer.uint32(90).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - exports.RequestListSnapshots.encode(message.listSnapshots, writer.uint32(98).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - exports.RequestOfferSnapshot.encode(message.offerSnapshot, writer.uint32(106).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - exports.RequestLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(114).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - exports.RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - exports.RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - exports.RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.echo = exports.RequestEcho.decode(reader, reader.uint32()); - break; - case 2: - message.flush = exports.RequestFlush.decode(reader, reader.uint32()); - break; - case 3: - message.info = exports.RequestInfo.decode(reader, reader.uint32()); - break; - case 5: - message.initChain = exports.RequestInitChain.decode(reader, reader.uint32()); - break; - case 6: - message.query = exports.RequestQuery.decode(reader, reader.uint32()); - break; - case 7: - message.beginBlock = exports.RequestBeginBlock.decode(reader, reader.uint32()); - break; - case 8: - message.checkTx = exports.RequestCheckTx.decode(reader, reader.uint32()); - break; - case 9: - message.deliverTx = exports.RequestDeliverTx.decode(reader, reader.uint32()); - break; - case 10: - message.endBlock = exports.RequestEndBlock.decode(reader, reader.uint32()); - break; - case 11: - message.commit = exports.RequestCommit.decode(reader, reader.uint32()); - break; - case 12: - message.listSnapshots = exports.RequestListSnapshots.decode(reader, reader.uint32()); - break; - case 13: - message.offerSnapshot = exports.RequestOfferSnapshot.decode(reader, reader.uint32()); - break; - case 14: - message.loadSnapshotChunk = exports.RequestLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 15: - message.applySnapshotChunk = exports.RequestApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.prepareProposal = exports.RequestPrepareProposal.decode(reader, reader.uint32()); - break; - case 17: - message.processProposal = exports.RequestProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequest(); - message.echo = object.echo !== undefined && object.echo !== null ? exports.RequestEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? exports.RequestFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? exports.RequestInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? exports.RequestInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? exports.RequestQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? exports.RequestBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? exports.RequestCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? exports.RequestDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? exports.RequestEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? exports.RequestCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? exports.RequestListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? exports.RequestOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? exports.RequestLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? exports.RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? exports.RequestPrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? exports.RequestProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseRequest(); - if (object.echo !== undefined && object.echo !== null) { - message.echo = exports.RequestEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = exports.RequestFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = exports.RequestInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = exports.RequestInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = exports.RequestQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = exports.RequestBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = exports.RequestCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = exports.RequestDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = exports.RequestEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = exports.RequestCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = exports.RequestListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = exports.RequestOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = exports.RequestLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = exports.RequestApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = exports.RequestPrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = exports.RequestProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.echo = message.echo ? exports.RequestEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? exports.RequestFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? exports.RequestInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? exports.RequestInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? exports.RequestQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? exports.RequestBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? exports.RequestCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? exports.RequestDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? exports.RequestEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? exports.RequestCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? exports.RequestListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? exports.RequestOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? exports.RequestLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? exports.RequestApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? exports.RequestPrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? exports.RequestProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Request.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Request.decode(message.value); - }, - toProto(message) { - return exports.Request.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Request", - value: exports.Request.encode(message).finish() - }; - } -}; -function createBaseRequestEcho() { - return { - message: "" - }; -} -exports.RequestEcho = { - typeUrl: "/tendermint.abci.RequestEcho", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestEcho.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestEcho.decode(message.value); - }, - toProto(message) { - return exports.RequestEcho.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestEcho", - value: exports.RequestEcho.encode(message).finish() - }; - } -}; -function createBaseRequestFlush() { - return {}; -} -exports.RequestFlush = { - typeUrl: "/tendermint.abci.RequestFlush", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestFlush(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestFlush(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestFlush.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestFlush.decode(message.value); - }, - toProto(message) { - return exports.RequestFlush.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestFlush", - value: exports.RequestFlush.encode(message).finish() - }; - } -}; -function createBaseRequestInfo() { - return { - version: "", - blockVersion: BigInt(0), - p2pVersion: BigInt(0), - abciVersion: "" - }; -} -exports.RequestInfo = { - typeUrl: "/tendermint.abci.RequestInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.version !== "") { - writer.uint32(10).string(message.version); - } - if (message.blockVersion !== BigInt(0)) { - writer.uint32(16).uint64(message.blockVersion); - } - if (message.p2pVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.p2pVersion); - } - if (message.abciVersion !== "") { - writer.uint32(34).string(message.abciVersion); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.blockVersion = reader.uint64(); - break; - case 3: - message.p2pVersion = reader.uint64(); - break; - case 4: - message.abciVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestInfo(); - message.version = object.version ?? ""; - message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? BigInt(object.blockVersion.toString()) : BigInt(0); - message.p2pVersion = object.p2pVersion !== undefined && object.p2pVersion !== null ? BigInt(object.p2pVersion.toString()) : BigInt(0); - message.abciVersion = object.abciVersion ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestInfo(); - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.block_version !== undefined && object.block_version !== null) { - message.blockVersion = BigInt(object.block_version); - } - if (object.p2p_version !== undefined && object.p2p_version !== null) { - message.p2pVersion = BigInt(object.p2p_version); - } - if (object.abci_version !== undefined && object.abci_version !== null) { - message.abciVersion = object.abci_version; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.version = message.version === "" ? undefined : message.version; - obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; - obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; - obj.abci_version = message.abciVersion === "" ? undefined : message.abciVersion; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestInfo.decode(message.value); - }, - toProto(message) { - return exports.RequestInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestInfo", - value: exports.RequestInfo.encode(message).finish() - }; - } -}; -function createBaseRequestInitChain() { - return { - time: new Date(), - chainId: "", - consensusParams: undefined, - validators: [], - appStateBytes: new Uint8Array(), - initialHeight: BigInt(0) - }; -} -exports.RequestInitChain = { - typeUrl: "/tendermint.abci.RequestInitChain", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.consensusParams !== undefined) { - params_1.ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.validators) { - exports.ValidatorUpdate.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.appStateBytes.length !== 0) { - writer.uint32(42).bytes(message.appStateBytes); - } - if (message.initialHeight !== BigInt(0)) { - writer.uint32(48).int64(message.initialHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.consensusParams = params_1.ConsensusParams.decode(reader, reader.uint32()); - break; - case 4: - message.validators.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 5: - message.appStateBytes = reader.bytes(); - break; - case 6: - message.initialHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestInitChain(); - message.time = object.time ?? undefined; - message.chainId = object.chainId ?? ""; - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? params_1.ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; - message.appStateBytes = object.appStateBytes ?? new Uint8Array(); - message.initialHeight = object.initialHeight !== undefined && object.initialHeight !== null ? BigInt(object.initialHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseRequestInitChain(); - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = params_1.ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; - if (object.app_state_bytes !== undefined && object.app_state_bytes !== null) { - message.appStateBytes = (0, helpers_1.bytesFromBase64)(object.app_state_bytes); - } - if (object.initial_height !== undefined && object.initial_height !== null) { - message.initialHeight = BigInt(object.initial_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.consensus_params = message.consensusParams ? params_1.ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.app_state_bytes = message.appStateBytes ? (0, helpers_1.base64FromBytes)(message.appStateBytes) : undefined; - obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestInitChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestInitChain.decode(message.value); - }, - toProto(message) { - return exports.RequestInitChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestInitChain", - value: exports.RequestInitChain.encode(message).finish() - }; - } -}; -function createBaseRequestQuery() { - return { - data: new Uint8Array(), - path: "", - height: BigInt(0), - prove: false - }; -} -exports.RequestQuery = { - typeUrl: "/tendermint.abci.RequestQuery", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(10).bytes(message.data); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.prove === true) { - writer.uint32(32).bool(message.prove); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.bytes(); - break; - case 2: - message.path = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestQuery(); - message.data = object.data ?? new Uint8Array(); - message.path = object.path ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.prove = object.prove ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseRequestQuery(); - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.path !== undefined && object.path !== null) { - message.path = object.path; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.prove !== undefined && object.prove !== null) { - message.prove = object.prove; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.path = message.path === "" ? undefined : message.path; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.prove = message.prove === false ? undefined : message.prove; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestQuery.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestQuery.decode(message.value); - }, - toProto(message) { - return exports.RequestQuery.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestQuery", - value: exports.RequestQuery.encode(message).finish() - }; - } -}; -function createBaseRequestBeginBlock() { - return { - hash: new Uint8Array(), - header: types_1.Header.fromPartial({}), - lastCommitInfo: exports.CommitInfo.fromPartial({}), - byzantineValidators: [] - }; -} -exports.RequestBeginBlock = { - typeUrl: "/tendermint.abci.RequestBeginBlock", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.header !== undefined) { - types_1.Header.encode(message.header, writer.uint32(18).fork()).ldelim(); - } - if (message.lastCommitInfo !== undefined) { - exports.CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.byzantineValidators) { - exports.Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.header = types_1.Header.decode(reader, reader.uint32()); - break; - case 3: - message.lastCommitInfo = exports.CommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.byzantineValidators.push(exports.Misbehavior.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestBeginBlock(); - message.hash = object.hash ?? new Uint8Array(); - message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; - message.lastCommitInfo = object.lastCommitInfo !== undefined && object.lastCommitInfo !== null ? exports.CommitInfo.fromPartial(object.lastCommitInfo) : undefined; - message.byzantineValidators = object.byzantineValidators?.map(e => exports.Misbehavior.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseRequestBeginBlock(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.header !== undefined && object.header !== null) { - message.header = types_1.Header.fromAmino(object.header); - } - if (object.last_commit_info !== undefined && object.last_commit_info !== null) { - message.lastCommitInfo = exports.CommitInfo.fromAmino(object.last_commit_info); - } - message.byzantineValidators = object.byzantine_validators?.map(e => exports.Misbehavior.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; - obj.last_commit_info = message.lastCommitInfo ? exports.CommitInfo.toAmino(message.lastCommitInfo) : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); - } - else { - obj.byzantine_validators = message.byzantineValidators; - } - return obj; - }, - fromAminoMsg(object) { - return exports.RequestBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestBeginBlock.decode(message.value); - }, - toProto(message) { - return exports.RequestBeginBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestBeginBlock", - value: exports.RequestBeginBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCheckTx() { - return { - tx: new Uint8Array(), - type: 0 - }; -} -exports.RequestCheckTx = { - typeUrl: "/tendermint.abci.RequestCheckTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - if (message.type !== 0) { - writer.uint32(16).int32(message.type); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - case 2: - message.type = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestCheckTx(); - message.tx = object.tx ?? new Uint8Array(); - message.type = object.type ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseRequestCheckTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = (0, helpers_1.bytesFromBase64)(object.tx); - } - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; - obj.type = message.type === 0 ? undefined : message.type; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestCheckTx.decode(message.value); - }, - toProto(message) { - return exports.RequestCheckTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestCheckTx", - value: exports.RequestCheckTx.encode(message).finish() - }; - } -}; -function createBaseRequestDeliverTx() { - return { - tx: new Uint8Array() - }; -} -exports.RequestDeliverTx = { - typeUrl: "/tendermint.abci.RequestDeliverTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.tx.length !== 0) { - writer.uint32(10).bytes(message.tx); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tx = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestDeliverTx(); - message.tx = object.tx ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestDeliverTx(); - if (object.tx !== undefined && object.tx !== null) { - message.tx = (0, helpers_1.bytesFromBase64)(object.tx); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestDeliverTx.decode(message.value); - }, - toProto(message) { - return exports.RequestDeliverTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestDeliverTx", - value: exports.RequestDeliverTx.encode(message).finish() - }; - } -}; -function createBaseRequestEndBlock() { - return { - height: BigInt(0) - }; -} -exports.RequestEndBlock = { - typeUrl: "/tendermint.abci.RequestEndBlock", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestEndBlock(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseRequestEndBlock(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestEndBlock.decode(message.value); - }, - toProto(message) { - return exports.RequestEndBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestEndBlock", - value: exports.RequestEndBlock.encode(message).finish() - }; - } -}; -function createBaseRequestCommit() { - return {}; -} -exports.RequestCommit = { - typeUrl: "/tendermint.abci.RequestCommit", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestCommit(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestCommit(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestCommit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestCommit.decode(message.value); - }, - toProto(message) { - return exports.RequestCommit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestCommit", - value: exports.RequestCommit.encode(message).finish() - }; - } -}; -function createBaseRequestListSnapshots() { - return {}; -} -exports.RequestListSnapshots = { - typeUrl: "/tendermint.abci.RequestListSnapshots", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseRequestListSnapshots(); - return message; - }, - fromAmino(_) { - const message = createBaseRequestListSnapshots(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestListSnapshots.decode(message.value); - }, - toProto(message) { - return exports.RequestListSnapshots.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestListSnapshots", - value: exports.RequestListSnapshots.encode(message).finish() - }; - } -}; -function createBaseRequestOfferSnapshot() { - return { - snapshot: undefined, - appHash: new Uint8Array() - }; -} -exports.RequestOfferSnapshot = { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.snapshot !== undefined) { - exports.Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(18).bytes(message.appHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshot = exports.Snapshot.decode(reader, reader.uint32()); - break; - case 2: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestOfferSnapshot(); - message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? exports.Snapshot.fromPartial(object.snapshot) : undefined; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestOfferSnapshot(); - if (object.snapshot !== undefined && object.snapshot !== null) { - message.snapshot = exports.Snapshot.fromAmino(object.snapshot); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.snapshot = message.snapshot ? exports.Snapshot.toAmino(message.snapshot) : undefined; - obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestOfferSnapshot.decode(message.value); - }, - toProto(message) { - return exports.RequestOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestOfferSnapshot", - value: exports.RequestOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseRequestLoadSnapshotChunk() { - return { - height: BigInt(0), - format: 0, - chunk: 0 - }; -} -exports.RequestLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunk !== 0) { - writer.uint32(24).uint32(message.chunk); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunk = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestLoadSnapshotChunk(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunk = object.chunk ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseRequestLoadSnapshotChunk(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = object.chunk; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunk = message.chunk === 0 ? undefined : message.chunk; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestLoadSnapshotChunk.decode(message.value); - }, - toProto(message) { - return exports.RequestLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk", - value: exports.RequestLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestApplySnapshotChunk() { - return { - index: 0, - chunk: new Uint8Array(), - sender: "" - }; -} -exports.RequestApplySnapshotChunk = { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.chunk.length !== 0) { - writer.uint32(18).bytes(message.chunk); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.chunk = reader.bytes(); - break; - case 3: - message.sender = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestApplySnapshotChunk(); - message.index = object.index ?? 0; - message.chunk = object.chunk ?? new Uint8Array(); - message.sender = object.sender ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseRequestApplySnapshotChunk(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = (0, helpers_1.bytesFromBase64)(object.chunk); - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.chunk = message.chunk ? (0, helpers_1.base64FromBytes)(message.chunk) : undefined; - obj.sender = message.sender === "" ? undefined : message.sender; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestApplySnapshotChunk.decode(message.value); - }, - toProto(message) { - return exports.RequestApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestApplySnapshotChunk", - value: exports.RequestApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseRequestPrepareProposal() { - return { - maxTxBytes: BigInt(0), - txs: [], - localLastCommit: exports.ExtendedCommitInfo.fromPartial({}), - misbehavior: [], - height: BigInt(0), - time: new Date(), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -exports.RequestPrepareProposal = { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.maxTxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxTxBytes); - } - for (const v of message.txs) { - writer.uint32(18).bytes(v); - } - if (message.localLastCommit !== undefined) { - exports.ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.misbehavior) { - exports.Misbehavior.encode(v, writer.uint32(34).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestPrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxTxBytes = reader.int64(); - break; - case 2: - message.txs.push(reader.bytes()); - break; - case 3: - message.localLastCommit = exports.ExtendedCommitInfo.decode(reader, reader.uint32()); - break; - case 4: - message.misbehavior.push(exports.Misbehavior.decode(reader, reader.uint32())); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestPrepareProposal(); - message.maxTxBytes = object.maxTxBytes !== undefined && object.maxTxBytes !== null ? BigInt(object.maxTxBytes.toString()) : BigInt(0); - message.txs = object.txs?.map(e => e) || []; - message.localLastCommit = object.localLastCommit !== undefined && object.localLastCommit !== null ? exports.ExtendedCommitInfo.fromPartial(object.localLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromPartial(e)) || []; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestPrepareProposal(); - if (object.max_tx_bytes !== undefined && object.max_tx_bytes !== null) { - message.maxTxBytes = BigInt(object.max_tx_bytes); - } - message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - if (object.local_last_commit !== undefined && object.local_last_commit !== null) { - message.localLastCommit = exports.ExtendedCommitInfo.fromAmino(object.local_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromAmino(e)) || []; - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_tx_bytes = message.maxTxBytes !== BigInt(0) ? message.maxTxBytes.toString() : undefined; - if (message.txs) { - obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.txs = message.txs; - } - obj.local_last_commit = message.localLastCommit ? exports.ExtendedCommitInfo.toAmino(message.localLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); - } - else { - obj.misbehavior = message.misbehavior; - } - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestPrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestPrepareProposal.decode(message.value); - }, - toProto(message) { - return exports.RequestPrepareProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestPrepareProposal", - value: exports.RequestPrepareProposal.encode(message).finish() - }; - } -}; -function createBaseRequestProcessProposal() { - return { - txs: [], - proposedLastCommit: exports.CommitInfo.fromPartial({}), - misbehavior: [], - hash: new Uint8Array(), - height: BigInt(0), - time: new Date(), - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -exports.RequestProcessProposal = { - typeUrl: "/tendermint.abci.RequestProcessProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - if (message.proposedLastCommit !== undefined) { - exports.CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.misbehavior) { - exports.Misbehavior.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.height !== BigInt(0)) { - writer.uint32(40).int64(message.height); - } - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(50).fork()).ldelim(); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(58).bytes(message.nextValidatorsHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(66).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRequestProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - case 2: - message.proposedLastCommit = exports.CommitInfo.decode(reader, reader.uint32()); - break; - case 3: - message.misbehavior.push(exports.Misbehavior.decode(reader, reader.uint32())); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.height = reader.int64(); - break; - case 6: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.nextValidatorsHash = reader.bytes(); - break; - case 8: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => e) || []; - message.proposedLastCommit = object.proposedLastCommit !== undefined && object.proposedLastCommit !== null ? exports.CommitInfo.fromPartial(object.proposedLastCommit) : undefined; - message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromPartial(e)) || []; - message.hash = object.hash ?? new Uint8Array(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseRequestProcessProposal(); - message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - if (object.proposed_last_commit !== undefined && object.proposed_last_commit !== null) { - message.proposedLastCommit = exports.CommitInfo.fromAmino(object.proposed_last_commit); - } - message.misbehavior = object.misbehavior?.map(e => exports.Misbehavior.fromAmino(e)) || []; - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.txs = message.txs; - } - obj.proposed_last_commit = message.proposedLastCommit ? exports.CommitInfo.toAmino(message.proposedLastCommit) : undefined; - if (message.misbehavior) { - obj.misbehavior = message.misbehavior.map(e => e ? exports.Misbehavior.toAmino(e) : undefined); - } - else { - obj.misbehavior = message.misbehavior; - } - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; - obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.RequestProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.RequestProcessProposal.decode(message.value); - }, - toProto(message) { - return exports.RequestProcessProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.RequestProcessProposal", - value: exports.RequestProcessProposal.encode(message).finish() - }; - } -}; -function createBaseResponse() { - return { - exception: undefined, - echo: undefined, - flush: undefined, - info: undefined, - initChain: undefined, - query: undefined, - beginBlock: undefined, - checkTx: undefined, - deliverTx: undefined, - endBlock: undefined, - commit: undefined, - listSnapshots: undefined, - offerSnapshot: undefined, - loadSnapshotChunk: undefined, - applySnapshotChunk: undefined, - prepareProposal: undefined, - processProposal: undefined - }; -} -exports.Response = { - typeUrl: "/tendermint.abci.Response", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.exception !== undefined) { - exports.ResponseException.encode(message.exception, writer.uint32(10).fork()).ldelim(); - } - if (message.echo !== undefined) { - exports.ResponseEcho.encode(message.echo, writer.uint32(18).fork()).ldelim(); - } - if (message.flush !== undefined) { - exports.ResponseFlush.encode(message.flush, writer.uint32(26).fork()).ldelim(); - } - if (message.info !== undefined) { - exports.ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim(); - } - if (message.initChain !== undefined) { - exports.ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim(); - } - if (message.query !== undefined) { - exports.ResponseQuery.encode(message.query, writer.uint32(58).fork()).ldelim(); - } - if (message.beginBlock !== undefined) { - exports.ResponseBeginBlock.encode(message.beginBlock, writer.uint32(66).fork()).ldelim(); - } - if (message.checkTx !== undefined) { - exports.ResponseCheckTx.encode(message.checkTx, writer.uint32(74).fork()).ldelim(); - } - if (message.deliverTx !== undefined) { - exports.ResponseDeliverTx.encode(message.deliverTx, writer.uint32(82).fork()).ldelim(); - } - if (message.endBlock !== undefined) { - exports.ResponseEndBlock.encode(message.endBlock, writer.uint32(90).fork()).ldelim(); - } - if (message.commit !== undefined) { - exports.ResponseCommit.encode(message.commit, writer.uint32(98).fork()).ldelim(); - } - if (message.listSnapshots !== undefined) { - exports.ResponseListSnapshots.encode(message.listSnapshots, writer.uint32(106).fork()).ldelim(); - } - if (message.offerSnapshot !== undefined) { - exports.ResponseOfferSnapshot.encode(message.offerSnapshot, writer.uint32(114).fork()).ldelim(); - } - if (message.loadSnapshotChunk !== undefined) { - exports.ResponseLoadSnapshotChunk.encode(message.loadSnapshotChunk, writer.uint32(122).fork()).ldelim(); - } - if (message.applySnapshotChunk !== undefined) { - exports.ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim(); - } - if (message.prepareProposal !== undefined) { - exports.ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim(); - } - if (message.processProposal !== undefined) { - exports.ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exception = exports.ResponseException.decode(reader, reader.uint32()); - break; - case 2: - message.echo = exports.ResponseEcho.decode(reader, reader.uint32()); - break; - case 3: - message.flush = exports.ResponseFlush.decode(reader, reader.uint32()); - break; - case 4: - message.info = exports.ResponseInfo.decode(reader, reader.uint32()); - break; - case 6: - message.initChain = exports.ResponseInitChain.decode(reader, reader.uint32()); - break; - case 7: - message.query = exports.ResponseQuery.decode(reader, reader.uint32()); - break; - case 8: - message.beginBlock = exports.ResponseBeginBlock.decode(reader, reader.uint32()); - break; - case 9: - message.checkTx = exports.ResponseCheckTx.decode(reader, reader.uint32()); - break; - case 10: - message.deliverTx = exports.ResponseDeliverTx.decode(reader, reader.uint32()); - break; - case 11: - message.endBlock = exports.ResponseEndBlock.decode(reader, reader.uint32()); - break; - case 12: - message.commit = exports.ResponseCommit.decode(reader, reader.uint32()); - break; - case 13: - message.listSnapshots = exports.ResponseListSnapshots.decode(reader, reader.uint32()); - break; - case 14: - message.offerSnapshot = exports.ResponseOfferSnapshot.decode(reader, reader.uint32()); - break; - case 15: - message.loadSnapshotChunk = exports.ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.applySnapshotChunk = exports.ResponseApplySnapshotChunk.decode(reader, reader.uint32()); - break; - case 17: - message.prepareProposal = exports.ResponsePrepareProposal.decode(reader, reader.uint32()); - break; - case 18: - message.processProposal = exports.ResponseProcessProposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponse(); - message.exception = object.exception !== undefined && object.exception !== null ? exports.ResponseException.fromPartial(object.exception) : undefined; - message.echo = object.echo !== undefined && object.echo !== null ? exports.ResponseEcho.fromPartial(object.echo) : undefined; - message.flush = object.flush !== undefined && object.flush !== null ? exports.ResponseFlush.fromPartial(object.flush) : undefined; - message.info = object.info !== undefined && object.info !== null ? exports.ResponseInfo.fromPartial(object.info) : undefined; - message.initChain = object.initChain !== undefined && object.initChain !== null ? exports.ResponseInitChain.fromPartial(object.initChain) : undefined; - message.query = object.query !== undefined && object.query !== null ? exports.ResponseQuery.fromPartial(object.query) : undefined; - message.beginBlock = object.beginBlock !== undefined && object.beginBlock !== null ? exports.ResponseBeginBlock.fromPartial(object.beginBlock) : undefined; - message.checkTx = object.checkTx !== undefined && object.checkTx !== null ? exports.ResponseCheckTx.fromPartial(object.checkTx) : undefined; - message.deliverTx = object.deliverTx !== undefined && object.deliverTx !== null ? exports.ResponseDeliverTx.fromPartial(object.deliverTx) : undefined; - message.endBlock = object.endBlock !== undefined && object.endBlock !== null ? exports.ResponseEndBlock.fromPartial(object.endBlock) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? exports.ResponseCommit.fromPartial(object.commit) : undefined; - message.listSnapshots = object.listSnapshots !== undefined && object.listSnapshots !== null ? exports.ResponseListSnapshots.fromPartial(object.listSnapshots) : undefined; - message.offerSnapshot = object.offerSnapshot !== undefined && object.offerSnapshot !== null ? exports.ResponseOfferSnapshot.fromPartial(object.offerSnapshot) : undefined; - message.loadSnapshotChunk = object.loadSnapshotChunk !== undefined && object.loadSnapshotChunk !== null ? exports.ResponseLoadSnapshotChunk.fromPartial(object.loadSnapshotChunk) : undefined; - message.applySnapshotChunk = object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null ? exports.ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk) : undefined; - message.prepareProposal = object.prepareProposal !== undefined && object.prepareProposal !== null ? exports.ResponsePrepareProposal.fromPartial(object.prepareProposal) : undefined; - message.processProposal = object.processProposal !== undefined && object.processProposal !== null ? exports.ResponseProcessProposal.fromPartial(object.processProposal) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseResponse(); - if (object.exception !== undefined && object.exception !== null) { - message.exception = exports.ResponseException.fromAmino(object.exception); - } - if (object.echo !== undefined && object.echo !== null) { - message.echo = exports.ResponseEcho.fromAmino(object.echo); - } - if (object.flush !== undefined && object.flush !== null) { - message.flush = exports.ResponseFlush.fromAmino(object.flush); - } - if (object.info !== undefined && object.info !== null) { - message.info = exports.ResponseInfo.fromAmino(object.info); - } - if (object.init_chain !== undefined && object.init_chain !== null) { - message.initChain = exports.ResponseInitChain.fromAmino(object.init_chain); - } - if (object.query !== undefined && object.query !== null) { - message.query = exports.ResponseQuery.fromAmino(object.query); - } - if (object.begin_block !== undefined && object.begin_block !== null) { - message.beginBlock = exports.ResponseBeginBlock.fromAmino(object.begin_block); - } - if (object.check_tx !== undefined && object.check_tx !== null) { - message.checkTx = exports.ResponseCheckTx.fromAmino(object.check_tx); - } - if (object.deliver_tx !== undefined && object.deliver_tx !== null) { - message.deliverTx = exports.ResponseDeliverTx.fromAmino(object.deliver_tx); - } - if (object.end_block !== undefined && object.end_block !== null) { - message.endBlock = exports.ResponseEndBlock.fromAmino(object.end_block); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = exports.ResponseCommit.fromAmino(object.commit); - } - if (object.list_snapshots !== undefined && object.list_snapshots !== null) { - message.listSnapshots = exports.ResponseListSnapshots.fromAmino(object.list_snapshots); - } - if (object.offer_snapshot !== undefined && object.offer_snapshot !== null) { - message.offerSnapshot = exports.ResponseOfferSnapshot.fromAmino(object.offer_snapshot); - } - if (object.load_snapshot_chunk !== undefined && object.load_snapshot_chunk !== null) { - message.loadSnapshotChunk = exports.ResponseLoadSnapshotChunk.fromAmino(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk !== undefined && object.apply_snapshot_chunk !== null) { - message.applySnapshotChunk = exports.ResponseApplySnapshotChunk.fromAmino(object.apply_snapshot_chunk); - } - if (object.prepare_proposal !== undefined && object.prepare_proposal !== null) { - message.prepareProposal = exports.ResponsePrepareProposal.fromAmino(object.prepare_proposal); - } - if (object.process_proposal !== undefined && object.process_proposal !== null) { - message.processProposal = exports.ResponseProcessProposal.fromAmino(object.process_proposal); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.exception = message.exception ? exports.ResponseException.toAmino(message.exception) : undefined; - obj.echo = message.echo ? exports.ResponseEcho.toAmino(message.echo) : undefined; - obj.flush = message.flush ? exports.ResponseFlush.toAmino(message.flush) : undefined; - obj.info = message.info ? exports.ResponseInfo.toAmino(message.info) : undefined; - obj.init_chain = message.initChain ? exports.ResponseInitChain.toAmino(message.initChain) : undefined; - obj.query = message.query ? exports.ResponseQuery.toAmino(message.query) : undefined; - obj.begin_block = message.beginBlock ? exports.ResponseBeginBlock.toAmino(message.beginBlock) : undefined; - obj.check_tx = message.checkTx ? exports.ResponseCheckTx.toAmino(message.checkTx) : undefined; - obj.deliver_tx = message.deliverTx ? exports.ResponseDeliverTx.toAmino(message.deliverTx) : undefined; - obj.end_block = message.endBlock ? exports.ResponseEndBlock.toAmino(message.endBlock) : undefined; - obj.commit = message.commit ? exports.ResponseCommit.toAmino(message.commit) : undefined; - obj.list_snapshots = message.listSnapshots ? exports.ResponseListSnapshots.toAmino(message.listSnapshots) : undefined; - obj.offer_snapshot = message.offerSnapshot ? exports.ResponseOfferSnapshot.toAmino(message.offerSnapshot) : undefined; - obj.load_snapshot_chunk = message.loadSnapshotChunk ? exports.ResponseLoadSnapshotChunk.toAmino(message.loadSnapshotChunk) : undefined; - obj.apply_snapshot_chunk = message.applySnapshotChunk ? exports.ResponseApplySnapshotChunk.toAmino(message.applySnapshotChunk) : undefined; - obj.prepare_proposal = message.prepareProposal ? exports.ResponsePrepareProposal.toAmino(message.prepareProposal) : undefined; - obj.process_proposal = message.processProposal ? exports.ResponseProcessProposal.toAmino(message.processProposal) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Response.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Response.decode(message.value); - }, - toProto(message) { - return exports.Response.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Response", - value: exports.Response.encode(message).finish() - }; - } -}; -function createBaseResponseException() { - return { - error: "" - }; -} -exports.ResponseException = { - typeUrl: "/tendermint.abci.ResponseException", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.error !== "") { - writer.uint32(10).string(message.error); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseException(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseException(); - message.error = object.error ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseException(); - if (object.error !== undefined && object.error !== null) { - message.error = object.error; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.error = message.error === "" ? undefined : message.error; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseException.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseException.decode(message.value); - }, - toProto(message) { - return exports.ResponseException.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseException", - value: exports.ResponseException.encode(message).finish() - }; - } -}; -function createBaseResponseEcho() { - return { - message: "" - }; -} -exports.ResponseEcho = { - typeUrl: "/tendermint.abci.ResponseEcho", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.message !== "") { - writer.uint32(10).string(message.message); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEcho(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseEcho(); - message.message = object.message ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseEcho(); - if (object.message !== undefined && object.message !== null) { - message.message = object.message; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.message = message.message === "" ? undefined : message.message; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseEcho.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseEcho.decode(message.value); - }, - toProto(message) { - return exports.ResponseEcho.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseEcho", - value: exports.ResponseEcho.encode(message).finish() - }; - } -}; -function createBaseResponseFlush() { - return {}; -} -exports.ResponseFlush = { - typeUrl: "/tendermint.abci.ResponseFlush", - encode(_, writer = binary_1.BinaryWriter.create()) { - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseFlush(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_) { - const message = createBaseResponseFlush(); - return message; - }, - fromAmino(_) { - const message = createBaseResponseFlush(); - return message; - }, - toAmino(_) { - const obj = {}; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseFlush.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseFlush.decode(message.value); - }, - toProto(message) { - return exports.ResponseFlush.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseFlush", - value: exports.ResponseFlush.encode(message).finish() - }; - } -}; -function createBaseResponseInfo() { - return { - data: "", - version: "", - appVersion: BigInt(0), - lastBlockHeight: BigInt(0), - lastBlockAppHash: new Uint8Array() - }; -} -exports.ResponseInfo = { - typeUrl: "/tendermint.abci.ResponseInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.data !== "") { - writer.uint32(10).string(message.data); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - if (message.appVersion !== BigInt(0)) { - writer.uint32(24).uint64(message.appVersion); - } - if (message.lastBlockHeight !== BigInt(0)) { - writer.uint32(32).int64(message.lastBlockHeight); - } - if (message.lastBlockAppHash.length !== 0) { - writer.uint32(42).bytes(message.lastBlockAppHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.appVersion = reader.uint64(); - break; - case 4: - message.lastBlockHeight = reader.int64(); - break; - case 5: - message.lastBlockAppHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseInfo(); - message.data = object.data ?? ""; - message.version = object.version ?? ""; - message.appVersion = object.appVersion !== undefined && object.appVersion !== null ? BigInt(object.appVersion.toString()) : BigInt(0); - message.lastBlockHeight = object.lastBlockHeight !== undefined && object.lastBlockHeight !== null ? BigInt(object.lastBlockHeight.toString()) : BigInt(0); - message.lastBlockAppHash = object.lastBlockAppHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseInfo(); - if (object.data !== undefined && object.data !== null) { - message.data = object.data; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.app_version !== undefined && object.app_version !== null) { - message.appVersion = BigInt(object.app_version); - } - if (object.last_block_height !== undefined && object.last_block_height !== null) { - message.lastBlockHeight = BigInt(object.last_block_height); - } - if (object.last_block_app_hash !== undefined && object.last_block_app_hash !== null) { - message.lastBlockAppHash = (0, helpers_1.bytesFromBase64)(object.last_block_app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data === "" ? undefined : message.data; - obj.version = message.version === "" ? undefined : message.version; - obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; - obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; - obj.last_block_app_hash = message.lastBlockAppHash ? (0, helpers_1.base64FromBytes)(message.lastBlockAppHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseInfo.decode(message.value); - }, - toProto(message) { - return exports.ResponseInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseInfo", - value: exports.ResponseInfo.encode(message).finish() - }; - } -}; -function createBaseResponseInitChain() { - return { - consensusParams: undefined, - validators: [], - appHash: new Uint8Array() - }; -} -exports.ResponseInitChain = { - typeUrl: "/tendermint.abci.ResponseInitChain", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.consensusParams !== undefined) { - params_1.ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.validators) { - exports.ValidatorUpdate.encode(v, writer.uint32(18).fork()).ldelim(); - } - if (message.appHash.length !== 0) { - writer.uint32(26).bytes(message.appHash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseInitChain(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensusParams = params_1.ConsensusParams.decode(reader, reader.uint32()); - break; - case 2: - message.validators.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 3: - message.appHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseInitChain(); - message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? params_1.ConsensusParams.fromPartial(object.consensusParams) : undefined; - message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; - message.appHash = object.appHash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseInitChain(); - if (object.consensus_params !== undefined && object.consensus_params !== null) { - message.consensusParams = params_1.ConsensusParams.fromAmino(object.consensus_params); - } - message.validators = object.validators?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.consensus_params = message.consensusParams ? params_1.ConsensusParams.toAmino(message.consensusParams) : undefined; - if (message.validators) { - obj.validators = message.validators.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseInitChain.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseInitChain.decode(message.value); - }, - toProto(message) { - return exports.ResponseInitChain.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseInitChain", - value: exports.ResponseInitChain.encode(message).finish() - }; - } -}; -function createBaseResponseQuery() { - return { - code: 0, - log: "", - info: "", - index: BigInt(0), - key: new Uint8Array(), - value: new Uint8Array(), - proofOps: undefined, - height: BigInt(0), - codespace: "" - }; -} -exports.ResponseQuery = { - typeUrl: "/tendermint.abci.ResponseQuery", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.index !== BigInt(0)) { - writer.uint32(40).int64(message.index); - } - if (message.key.length !== 0) { - writer.uint32(50).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(58).bytes(message.value); - } - if (message.proofOps !== undefined) { - proof_1.ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(72).int64(message.height); - } - if (message.codespace !== "") { - writer.uint32(82).string(message.codespace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseQuery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.index = reader.int64(); - break; - case 6: - message.key = reader.bytes(); - break; - case 7: - message.value = reader.bytes(); - break; - case 8: - message.proofOps = proof_1.ProofOps.decode(reader, reader.uint32()); - break; - case 9: - message.height = reader.int64(); - break; - case 10: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseQuery(); - message.code = object.code ?? 0; - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? proof_1.ProofOps.fromPartial(object.proofOps) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseQuery(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - if (object.value !== undefined && object.value !== null) { - message.value = (0, helpers_1.bytesFromBase64)(object.value); - } - if (object.proof_ops !== undefined && object.proof_ops !== null) { - message.proofOps = proof_1.ProofOps.fromAmino(object.proof_ops); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - obj.value = message.value ? (0, helpers_1.base64FromBytes)(message.value) : undefined; - obj.proof_ops = message.proofOps ? proof_1.ProofOps.toAmino(message.proofOps) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseQuery.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseQuery.decode(message.value); - }, - toProto(message) { - return exports.ResponseQuery.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseQuery", - value: exports.ResponseQuery.encode(message).finish() - }; - } -}; -function createBaseResponseBeginBlock() { - return { - events: [] - }; -} -exports.ResponseBeginBlock = { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.events) { - exports.Event.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseBeginBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.events.push(exports.Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseBeginBlock(); - message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseBeginBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseBeginBlock.decode(message.value); - }, - toProto(message) { - return exports.ResponseBeginBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseBeginBlock", - value: exports.ResponseBeginBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCheckTx() { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "", - sender: "", - priority: BigInt(0), - mempoolError: "" - }; -} -exports.ResponseCheckTx = { - typeUrl: "/tendermint.abci.ResponseCheckTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - exports.Event.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - if (message.sender !== "") { - writer.uint32(74).string(message.sender); - } - if (message.priority !== BigInt(0)) { - writer.uint32(80).int64(message.priority); - } - if (message.mempoolError !== "") { - writer.uint32(90).string(message.mempoolError); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCheckTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(exports.Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - case 9: - message.sender = reader.string(); - break; - case 10: - message.priority = reader.int64(); - break; - case 11: - message.mempoolError = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseCheckTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - message.sender = object.sender ?? ""; - message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0); - message.mempoolError = object.mempoolError ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseCheckTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - if (object.sender !== undefined && object.sender !== null) { - message.sender = object.sender; - } - if (object.priority !== undefined && object.priority !== null) { - message.priority = BigInt(object.priority); - } - if (object.mempool_error !== undefined && object.mempool_error !== null) { - message.mempoolError = object.mempool_error; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - obj.sender = message.sender === "" ? undefined : message.sender; - obj.priority = message.priority !== BigInt(0) ? message.priority.toString() : undefined; - obj.mempool_error = message.mempoolError === "" ? undefined : message.mempoolError; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseCheckTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseCheckTx.decode(message.value); - }, - toProto(message) { - return exports.ResponseCheckTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseCheckTx", - value: exports.ResponseCheckTx.encode(message).finish() - }; - } -}; -function createBaseResponseDeliverTx() { - return { - code: 0, - data: new Uint8Array(), - log: "", - info: "", - gasWanted: BigInt(0), - gasUsed: BigInt(0), - events: [], - codespace: "" - }; -} -exports.ResponseDeliverTx = { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.code !== 0) { - writer.uint32(8).uint32(message.code); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.log !== "") { - writer.uint32(26).string(message.log); - } - if (message.info !== "") { - writer.uint32(34).string(message.info); - } - if (message.gasWanted !== BigInt(0)) { - writer.uint32(40).int64(message.gasWanted); - } - if (message.gasUsed !== BigInt(0)) { - writer.uint32(48).int64(message.gasUsed); - } - for (const v of message.events) { - exports.Event.encode(v, writer.uint32(58).fork()).ldelim(); - } - if (message.codespace !== "") { - writer.uint32(66).string(message.codespace); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseDeliverTx(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gasWanted = reader.int64(); - break; - case 6: - message.gasUsed = reader.int64(); - break; - case 7: - message.events.push(exports.Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseDeliverTx(); - message.code = object.code ?? 0; - message.data = object.data ?? new Uint8Array(); - message.log = object.log ?? ""; - message.info = object.info ?? ""; - message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0); - message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0); - message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; - message.codespace = object.codespace ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseResponseDeliverTx(); - if (object.code !== undefined && object.code !== null) { - message.code = object.code; - } - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.log !== undefined && object.log !== null) { - message.log = object.log; - } - if (object.info !== undefined && object.info !== null) { - message.info = object.info; - } - if (object.gas_wanted !== undefined && object.gas_wanted !== null) { - message.gasWanted = BigInt(object.gas_wanted); - } - if (object.gas_used !== undefined && object.gas_used !== null) { - message.gasUsed = BigInt(object.gas_used); - } - message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; - if (object.codespace !== undefined && object.codespace !== null) { - message.codespace = object.codespace; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.code = message.code === 0 ? undefined : message.code; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.log = message.log === "" ? undefined : message.log; - obj.info = message.info === "" ? undefined : message.info; - obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - obj.codespace = message.codespace === "" ? undefined : message.codespace; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseDeliverTx.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseDeliverTx.decode(message.value); - }, - toProto(message) { - return exports.ResponseDeliverTx.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseDeliverTx", - value: exports.ResponseDeliverTx.encode(message).finish() - }; - } -}; -function createBaseResponseEndBlock() { - return { - validatorUpdates: [], - consensusParamUpdates: undefined, - events: [] - }; -} -exports.ResponseEndBlock = { - typeUrl: "/tendermint.abci.ResponseEndBlock", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validatorUpdates) { - exports.ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.consensusParamUpdates !== undefined) { - params_1.ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.events) { - exports.Event.encode(v, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseEndBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorUpdates.push(exports.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 2: - message.consensusParamUpdates = params_1.ConsensusParams.decode(reader, reader.uint32()); - break; - case 3: - message.events.push(exports.Event.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validatorUpdates?.map(e => exports.ValidatorUpdate.fromPartial(e)) || []; - message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? params_1.ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined; - message.events = object.events?.map(e => exports.Event.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseEndBlock(); - message.validatorUpdates = object.validator_updates?.map(e => exports.ValidatorUpdate.fromAmino(e)) || []; - if (object.consensus_param_updates !== undefined && object.consensus_param_updates !== null) { - message.consensusParamUpdates = params_1.ConsensusParams.fromAmino(object.consensus_param_updates); - } - message.events = object.events?.map(e => exports.Event.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validatorUpdates) { - obj.validator_updates = message.validatorUpdates.map(e => e ? exports.ValidatorUpdate.toAmino(e) : undefined); - } - else { - obj.validator_updates = message.validatorUpdates; - } - obj.consensus_param_updates = message.consensusParamUpdates ? params_1.ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; - if (message.events) { - obj.events = message.events.map(e => e ? exports.Event.toAmino(e) : undefined); - } - else { - obj.events = message.events; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseEndBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseEndBlock.decode(message.value); - }, - toProto(message) { - return exports.ResponseEndBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseEndBlock", - value: exports.ResponseEndBlock.encode(message).finish() - }; - } -}; -function createBaseResponseCommit() { - return { - data: new Uint8Array(), - retainHeight: BigInt(0) - }; -} -exports.ResponseCommit = { - typeUrl: "/tendermint.abci.ResponseCommit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.retainHeight !== BigInt(0)) { - writer.uint32(24).int64(message.retainHeight); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.data = reader.bytes(); - break; - case 3: - message.retainHeight = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseCommit(); - message.data = object.data ?? new Uint8Array(); - message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? BigInt(object.retainHeight.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseResponseCommit(); - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.retain_height !== undefined && object.retain_height !== null) { - message.retainHeight = BigInt(object.retain_height); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseCommit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseCommit.decode(message.value); - }, - toProto(message) { - return exports.ResponseCommit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseCommit", - value: exports.ResponseCommit.encode(message).finish() - }; - } -}; -function createBaseResponseListSnapshots() { - return { - snapshots: [] - }; -} -exports.ResponseListSnapshots = { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.snapshots) { - exports.Snapshot.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseListSnapshots(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshots.push(exports.Snapshot.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => exports.Snapshot.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseListSnapshots(); - message.snapshots = object.snapshots?.map(e => exports.Snapshot.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.snapshots) { - obj.snapshots = message.snapshots.map(e => e ? exports.Snapshot.toAmino(e) : undefined); - } - else { - obj.snapshots = message.snapshots; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseListSnapshots.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseListSnapshots.decode(message.value); - }, - toProto(message) { - return exports.ResponseListSnapshots.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseListSnapshots", - value: exports.ResponseListSnapshots.encode(message).finish() - }; - } -}; -function createBaseResponseOfferSnapshot() { - return { - result: 0 - }; -} -exports.ResponseOfferSnapshot = { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseOfferSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseOfferSnapshot(); - message.result = object.result ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseResponseOfferSnapshot(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseOfferSnapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseOfferSnapshot.decode(message.value); - }, - toProto(message) { - return exports.ResponseOfferSnapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseOfferSnapshot", - value: exports.ResponseOfferSnapshot.encode(message).finish() - }; - } -}; -function createBaseResponseLoadSnapshotChunk() { - return { - chunk: new Uint8Array() - }; -} -exports.ResponseLoadSnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.chunk.length !== 0) { - writer.uint32(10).bytes(message.chunk); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseLoadSnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chunk = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseLoadSnapshotChunk(); - message.chunk = object.chunk ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseResponseLoadSnapshotChunk(); - if (object.chunk !== undefined && object.chunk !== null) { - message.chunk = (0, helpers_1.bytesFromBase64)(object.chunk); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.chunk = message.chunk ? (0, helpers_1.base64FromBytes)(message.chunk) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseLoadSnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseLoadSnapshotChunk.decode(message.value); - }, - toProto(message) { - return exports.ResponseLoadSnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk", - value: exports.ResponseLoadSnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponseApplySnapshotChunk() { - return { - result: 0, - refetchChunks: [], - rejectSenders: [] - }; -} -exports.ResponseApplySnapshotChunk = { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.result !== 0) { - writer.uint32(8).int32(message.result); - } - writer.uint32(18).fork(); - for (const v of message.refetchChunks) { - writer.uint32(v); - } - writer.ldelim(); - for (const v of message.rejectSenders) { - writer.uint32(26).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseApplySnapshotChunk(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.refetchChunks.push(reader.uint32()); - } - } - else { - message.refetchChunks.push(reader.uint32()); - } - break; - case 3: - message.rejectSenders.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseApplySnapshotChunk(); - message.result = object.result ?? 0; - message.refetchChunks = object.refetchChunks?.map(e => e) || []; - message.rejectSenders = object.rejectSenders?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponseApplySnapshotChunk(); - if (object.result !== undefined && object.result !== null) { - message.result = object.result; - } - message.refetchChunks = object.refetch_chunks?.map(e => e) || []; - message.rejectSenders = object.reject_senders?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.result = message.result === 0 ? undefined : message.result; - if (message.refetchChunks) { - obj.refetch_chunks = message.refetchChunks.map(e => e); - } - else { - obj.refetch_chunks = message.refetchChunks; - } - if (message.rejectSenders) { - obj.reject_senders = message.rejectSenders.map(e => e); - } - else { - obj.reject_senders = message.rejectSenders; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseApplySnapshotChunk.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseApplySnapshotChunk.decode(message.value); - }, - toProto(message) { - return exports.ResponseApplySnapshotChunk.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk", - value: exports.ResponseApplySnapshotChunk.encode(message).finish() - }; - } -}; -function createBaseResponsePrepareProposal() { - return { - txs: [] - }; -} -exports.ResponsePrepareProposal = { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponsePrepareProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseResponsePrepareProposal(); - message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ResponsePrepareProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponsePrepareProposal.decode(message.value); - }, - toProto(message) { - return exports.ResponsePrepareProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponsePrepareProposal", - value: exports.ResponsePrepareProposal.encode(message).finish() - }; - } -}; -function createBaseResponseProcessProposal() { - return { - status: 0 - }; -} -exports.ResponseProcessProposal = { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.status !== 0) { - writer.uint32(8).int32(message.status); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseResponseProcessProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.status = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseResponseProcessProposal(); - message.status = object.status ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseResponseProcessProposal(); - if (object.status !== undefined && object.status !== null) { - message.status = object.status; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.status = message.status === 0 ? undefined : message.status; - return obj; - }, - fromAminoMsg(object) { - return exports.ResponseProcessProposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ResponseProcessProposal.decode(message.value); - }, - toProto(message) { - return exports.ResponseProcessProposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ResponseProcessProposal", - value: exports.ResponseProcessProposal.encode(message).finish() - }; - } -}; -function createBaseCommitInfo() { - return { - round: 0, - votes: [] - }; -} -exports.CommitInfo = { - typeUrl: "/tendermint.abci.CommitInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - exports.VoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(exports.VoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => exports.VoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => exports.VoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? exports.VoteInfo.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.CommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CommitInfo.decode(message.value); - }, - toProto(message) { - return exports.CommitInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.CommitInfo", - value: exports.CommitInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedCommitInfo() { - return { - round: 0, - votes: [] - }; -} -exports.ExtendedCommitInfo = { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.round !== 0) { - writer.uint32(8).int32(message.round); - } - for (const v of message.votes) { - exports.ExtendedVoteInfo.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.round = reader.int32(); - break; - case 2: - message.votes.push(exports.ExtendedVoteInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtendedCommitInfo(); - message.round = object.round ?? 0; - message.votes = object.votes?.map(e => exports.ExtendedVoteInfo.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseExtendedCommitInfo(); - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - message.votes = object.votes?.map(e => exports.ExtendedVoteInfo.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.round = message.round === 0 ? undefined : message.round; - if (message.votes) { - obj.votes = message.votes.map(e => e ? exports.ExtendedVoteInfo.toAmino(e) : undefined); - } - else { - obj.votes = message.votes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ExtendedCommitInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ExtendedCommitInfo.decode(message.value); - }, - toProto(message) { - return exports.ExtendedCommitInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ExtendedCommitInfo", - value: exports.ExtendedCommitInfo.encode(message).finish() - }; - } -}; -function createBaseEvent() { - return { - type: "", - attributes: [] - }; -} -exports.Event = { - typeUrl: "/tendermint.abci.Event", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - for (const v of message.attributes) { - exports.EventAttribute.encode(v, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.attributes.push(exports.EventAttribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvent(); - message.type = object.type ?? ""; - message.attributes = object.attributes?.map(e => exports.EventAttribute.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEvent(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - message.attributes = object.attributes?.map(e => exports.EventAttribute.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - if (message.attributes) { - obj.attributes = message.attributes.map(e => e ? exports.EventAttribute.toAmino(e) : undefined); - } - else { - obj.attributes = message.attributes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Event.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Event.decode(message.value); - }, - toProto(message) { - return exports.Event.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Event", - value: exports.Event.encode(message).finish() - }; - } -}; -function createBaseEventAttribute() { - return { - key: "", - value: "", - index: false - }; -} -exports.EventAttribute = { - typeUrl: "/tendermint.abci.EventAttribute", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - if (message.index === true) { - writer.uint32(24).bool(message.index); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventAttribute(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.index = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEventAttribute(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - message.index = object.index ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseEventAttribute(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.value !== undefined && object.value !== null) { - message.value = object.value; - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.value = message.value === "" ? undefined : message.value; - obj.index = message.index === false ? undefined : message.index; - return obj; - }, - fromAminoMsg(object) { - return exports.EventAttribute.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EventAttribute.decode(message.value); - }, - toProto(message) { - return exports.EventAttribute.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.EventAttribute", - value: exports.EventAttribute.encode(message).finish() - }; - } -}; -function createBaseTxResult() { - return { - height: BigInt(0), - index: 0, - tx: new Uint8Array(), - result: exports.ResponseDeliverTx.fromPartial({}) - }; -} -exports.TxResult = { - typeUrl: "/tendermint.abci.TxResult", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.index !== 0) { - writer.uint32(16).uint32(message.index); - } - if (message.tx.length !== 0) { - writer.uint32(26).bytes(message.tx); - } - if (message.result !== undefined) { - exports.ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.index = reader.uint32(); - break; - case 3: - message.tx = reader.bytes(); - break; - case 4: - message.result = exports.ResponseDeliverTx.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxResult(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.index = object.index ?? 0; - message.tx = object.tx ?? new Uint8Array(); - message.result = object.result !== undefined && object.result !== null ? exports.ResponseDeliverTx.fromPartial(object.result) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseTxResult(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.tx !== undefined && object.tx !== null) { - message.tx = (0, helpers_1.bytesFromBase64)(object.tx); - } - if (object.result !== undefined && object.result !== null) { - message.result = exports.ResponseDeliverTx.fromAmino(object.result); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.index = message.index === 0 ? undefined : message.index; - obj.tx = message.tx ? (0, helpers_1.base64FromBytes)(message.tx) : undefined; - obj.result = message.result ? exports.ResponseDeliverTx.toAmino(message.result) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.TxResult.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.TxResult.decode(message.value); - }, - toProto(message) { - return exports.TxResult.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.TxResult", - value: exports.TxResult.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - address: new Uint8Array(), - power: BigInt(0) - }; -} -exports.Validator = { - typeUrl: "/tendermint.abci.Validator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.power !== BigInt(0)) { - writer.uint32(24).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 3: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = (0, helpers_1.bytesFromBase64)(object.address); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Validator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Validator.decode(message.value); - }, - toProto(message) { - return exports.Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Validator", - value: exports.Validator.encode(message).finish() - }; - } -}; -function createBaseValidatorUpdate() { - return { - pubKey: keys_1.PublicKey.fromPartial({}), - power: BigInt(0) - }; -} -exports.ValidatorUpdate = { - typeUrl: "/tendermint.abci.ValidatorUpdate", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pubKey !== undefined) { - keys_1.PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.power !== BigInt(0)) { - writer.uint32(16).int64(message.power); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorUpdate(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.power = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorUpdate(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; - message.power = object.power !== undefined && object.power !== null ? BigInt(object.power.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorUpdate(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); - } - if (object.power !== undefined && object.power !== null) { - message.power = BigInt(object.power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; - obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorUpdate.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ValidatorUpdate.decode(message.value); - }, - toProto(message) { - return exports.ValidatorUpdate.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ValidatorUpdate", - value: exports.ValidatorUpdate.encode(message).finish() - }; - } -}; -function createBaseVoteInfo() { - return { - validator: exports.Validator.fromPartial({}), - signedLastBlock: false - }; -} -exports.VoteInfo = { - typeUrl: "/tendermint.abci.VoteInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validator !== undefined) { - exports.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = exports.Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - return message; - }, - fromAmino(object) { - const message = createBaseVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = exports.Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - return obj; - }, - fromAminoMsg(object) { - return exports.VoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.VoteInfo.decode(message.value); - }, - toProto(message) { - return exports.VoteInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.VoteInfo", - value: exports.VoteInfo.encode(message).finish() - }; - } -}; -function createBaseExtendedVoteInfo() { - return { - validator: exports.Validator.fromPartial({}), - signedLastBlock: false, - voteExtension: new Uint8Array() - }; -} -exports.ExtendedVoteInfo = { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.validator !== undefined) { - exports.Validator.encode(message.validator, writer.uint32(10).fork()).ldelim(); - } - if (message.signedLastBlock === true) { - writer.uint32(16).bool(message.signedLastBlock); - } - if (message.voteExtension.length !== 0) { - writer.uint32(26).bytes(message.voteExtension); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtendedVoteInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validator = exports.Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signedLastBlock = reader.bool(); - break; - case 3: - message.voteExtension = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseExtendedVoteInfo(); - message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; - message.signedLastBlock = object.signedLastBlock ?? false; - message.voteExtension = object.voteExtension ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseExtendedVoteInfo(); - if (object.validator !== undefined && object.validator !== null) { - message.validator = exports.Validator.fromAmino(object.validator); - } - if (object.signed_last_block !== undefined && object.signed_last_block !== null) { - message.signedLastBlock = object.signed_last_block; - } - if (object.vote_extension !== undefined && object.vote_extension !== null) { - message.voteExtension = (0, helpers_1.bytesFromBase64)(object.vote_extension); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; - obj.vote_extension = message.voteExtension ? (0, helpers_1.base64FromBytes)(message.voteExtension) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ExtendedVoteInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ExtendedVoteInfo.decode(message.value); - }, - toProto(message) { - return exports.ExtendedVoteInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.ExtendedVoteInfo", - value: exports.ExtendedVoteInfo.encode(message).finish() - }; - } -}; -function createBaseMisbehavior() { - return { - type: 0, - validator: exports.Validator.fromPartial({}), - height: BigInt(0), - time: new Date(), - totalVotingPower: BigInt(0) - }; -} -exports.Misbehavior = { - typeUrl: "/tendermint.abci.Misbehavior", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.validator !== undefined) { - exports.Validator.encode(message.validator, writer.uint32(18).fork()).ldelim(); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(34).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(40).int64(message.totalVotingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMisbehavior(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.validator = exports.Validator.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseMisbehavior(); - message.type = object.type ?? 0; - message.validator = object.validator !== undefined && object.validator !== null ? exports.Validator.fromPartial(object.validator) : undefined; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseMisbehavior(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = exports.Validator.fromAmino(object.validator); - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.validator = message.validator ? exports.Validator.toAmino(message.validator) : undefined; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Misbehavior.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Misbehavior.decode(message.value); - }, - toProto(message) { - return exports.Misbehavior.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Misbehavior", - value: exports.Misbehavior.encode(message).finish() - }; - } -}; -function createBaseSnapshot() { - return { - height: BigInt(0), - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: new Uint8Array() - }; -} -exports.Snapshot = { - typeUrl: "/tendermint.abci.Snapshot", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunks !== 0) { - writer.uint32(24).uint32(message.chunks); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.metadata.length !== 0) { - writer.uint32(42).bytes(message.metadata); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.uint64(); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunks = reader.uint32(); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSnapshot(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.format = object.format ?? 0; - message.chunks = object.chunks ?? 0; - message.hash = object.hash ?? new Uint8Array(); - message.metadata = object.metadata ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseSnapshot(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.format !== undefined && object.format !== null) { - message.format = object.format; - } - if (object.chunks !== undefined && object.chunks !== null) { - message.chunks = object.chunks; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.metadata !== undefined && object.metadata !== null) { - message.metadata = (0, helpers_1.bytesFromBase64)(object.metadata); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.format = message.format === 0 ? undefined : message.format; - obj.chunks = message.chunks === 0 ? undefined : message.chunks; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.metadata = message.metadata ? (0, helpers_1.base64FromBytes)(message.metadata) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Snapshot.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Snapshot.decode(message.value); - }, - toProto(message) { - return exports.Snapshot.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.abci.Snapshot", - value: exports.Snapshot.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/bundle.d.ts b/packages/api/dist/tendermint/bundle.d.ts deleted file mode 100644 index e7776b17..00000000 --- a/packages/api/dist/tendermint/bundle.d.ts +++ /dev/null @@ -1,1094 +0,0 @@ -import * as _104 from "./abci/types"; -import * as _105 from "./crypto/keys"; -import * as _106 from "./crypto/proof"; -import * as _107 from "./libs/bits/types"; -import * as _108 from "./p2p/types"; -import * as _109 from "./types/block"; -import * as _110 from "./types/evidence"; -import * as _111 from "./types/params"; -import * as _112 from "./types/types"; -import * as _113 from "./types/validator"; -import * as _114 from "./version/types"; -export declare namespace tendermint { - const abci: { - checkTxTypeFromJSON(object: any): _104.CheckTxType; - checkTxTypeToJSON(object: _104.CheckTxType): string; - responseOfferSnapshot_ResultFromJSON(object: any): _104.ResponseOfferSnapshot_Result; - responseOfferSnapshot_ResultToJSON(object: _104.ResponseOfferSnapshot_Result): string; - responseApplySnapshotChunk_ResultFromJSON(object: any): _104.ResponseApplySnapshotChunk_Result; - responseApplySnapshotChunk_ResultToJSON(object: _104.ResponseApplySnapshotChunk_Result): string; - responseProcessProposal_ProposalStatusFromJSON(object: any): _104.ResponseProcessProposal_ProposalStatus; - responseProcessProposal_ProposalStatusToJSON(object: _104.ResponseProcessProposal_ProposalStatus): string; - misbehaviorTypeFromJSON(object: any): _104.MisbehaviorType; - misbehaviorTypeToJSON(object: _104.MisbehaviorType): string; - CheckTxType: typeof _104.CheckTxType; - CheckTxTypeSDKType: typeof _104.CheckTxType; - CheckTxTypeAmino: typeof _104.CheckTxType; - ResponseOfferSnapshot_Result: typeof _104.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultSDKType: typeof _104.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultAmino: typeof _104.ResponseOfferSnapshot_Result; - ResponseApplySnapshotChunk_Result: typeof _104.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultSDKType: typeof _104.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultAmino: typeof _104.ResponseApplySnapshotChunk_Result; - ResponseProcessProposal_ProposalStatus: typeof _104.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusSDKType: typeof _104.ResponseProcessProposal_ProposalStatus; - ResponseProcessProposal_ProposalStatusAmino: typeof _104.ResponseProcessProposal_ProposalStatus; - MisbehaviorType: typeof _104.MisbehaviorType; - MisbehaviorTypeSDKType: typeof _104.MisbehaviorType; - MisbehaviorTypeAmino: typeof _104.MisbehaviorType; - Request: { - typeUrl: string; - encode(message: _104.Request, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Request; - fromPartial(object: Partial<_104.Request>): _104.Request; - fromAmino(object: _104.RequestAmino): _104.Request; - toAmino(message: _104.Request): _104.RequestAmino; - fromAminoMsg(object: _104.RequestAminoMsg): _104.Request; - fromProtoMsg(message: _104.RequestProtoMsg): _104.Request; - toProto(message: _104.Request): Uint8Array; - toProtoMsg(message: _104.Request): _104.RequestProtoMsg; - }; - RequestEcho: { - typeUrl: string; - encode(message: _104.RequestEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestEcho; - fromPartial(object: Partial<_104.RequestEcho>): _104.RequestEcho; - fromAmino(object: _104.RequestEchoAmino): _104.RequestEcho; - toAmino(message: _104.RequestEcho): _104.RequestEchoAmino; - fromAminoMsg(object: _104.RequestEchoAminoMsg): _104.RequestEcho; - fromProtoMsg(message: _104.RequestEchoProtoMsg): _104.RequestEcho; - toProto(message: _104.RequestEcho): Uint8Array; - toProtoMsg(message: _104.RequestEcho): _104.RequestEchoProtoMsg; - }; - RequestFlush: { - typeUrl: string; - encode(_: _104.RequestFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestFlush; - fromPartial(_: Partial<_104.RequestFlush>): _104.RequestFlush; - fromAmino(_: _104.RequestFlushAmino): _104.RequestFlush; - toAmino(_: _104.RequestFlush): _104.RequestFlushAmino; - fromAminoMsg(object: _104.RequestFlushAminoMsg): _104.RequestFlush; - fromProtoMsg(message: _104.RequestFlushProtoMsg): _104.RequestFlush; - toProto(message: _104.RequestFlush): Uint8Array; - toProtoMsg(message: _104.RequestFlush): _104.RequestFlushProtoMsg; - }; - RequestInfo: { - typeUrl: string; - encode(message: _104.RequestInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestInfo; - fromPartial(object: Partial<_104.RequestInfo>): _104.RequestInfo; - fromAmino(object: _104.RequestInfoAmino): _104.RequestInfo; - toAmino(message: _104.RequestInfo): _104.RequestInfoAmino; - fromAminoMsg(object: _104.RequestInfoAminoMsg): _104.RequestInfo; - fromProtoMsg(message: _104.RequestInfoProtoMsg): _104.RequestInfo; - toProto(message: _104.RequestInfo): Uint8Array; - toProtoMsg(message: _104.RequestInfo): _104.RequestInfoProtoMsg; - }; - RequestInitChain: { - typeUrl: string; - encode(message: _104.RequestInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestInitChain; - fromPartial(object: Partial<_104.RequestInitChain>): _104.RequestInitChain; - fromAmino(object: _104.RequestInitChainAmino): _104.RequestInitChain; - toAmino(message: _104.RequestInitChain): _104.RequestInitChainAmino; - fromAminoMsg(object: _104.RequestInitChainAminoMsg): _104.RequestInitChain; - fromProtoMsg(message: _104.RequestInitChainProtoMsg): _104.RequestInitChain; - toProto(message: _104.RequestInitChain): Uint8Array; - toProtoMsg(message: _104.RequestInitChain): _104.RequestInitChainProtoMsg; - }; - RequestQuery: { - typeUrl: string; - encode(message: _104.RequestQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestQuery; - fromPartial(object: Partial<_104.RequestQuery>): _104.RequestQuery; - fromAmino(object: _104.RequestQueryAmino): _104.RequestQuery; - toAmino(message: _104.RequestQuery): _104.RequestQueryAmino; - fromAminoMsg(object: _104.RequestQueryAminoMsg): _104.RequestQuery; - fromProtoMsg(message: _104.RequestQueryProtoMsg): _104.RequestQuery; - toProto(message: _104.RequestQuery): Uint8Array; - toProtoMsg(message: _104.RequestQuery): _104.RequestQueryProtoMsg; - }; - RequestBeginBlock: { - typeUrl: string; - encode(message: _104.RequestBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestBeginBlock; - fromPartial(object: Partial<_104.RequestBeginBlock>): _104.RequestBeginBlock; - fromAmino(object: _104.RequestBeginBlockAmino): _104.RequestBeginBlock; - toAmino(message: _104.RequestBeginBlock): _104.RequestBeginBlockAmino; - fromAminoMsg(object: _104.RequestBeginBlockAminoMsg): _104.RequestBeginBlock; - fromProtoMsg(message: _104.RequestBeginBlockProtoMsg): _104.RequestBeginBlock; - toProto(message: _104.RequestBeginBlock): Uint8Array; - toProtoMsg(message: _104.RequestBeginBlock): _104.RequestBeginBlockProtoMsg; - }; - RequestCheckTx: { - typeUrl: string; - encode(message: _104.RequestCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestCheckTx; - fromPartial(object: Partial<_104.RequestCheckTx>): _104.RequestCheckTx; - fromAmino(object: _104.RequestCheckTxAmino): _104.RequestCheckTx; - toAmino(message: _104.RequestCheckTx): _104.RequestCheckTxAmino; - fromAminoMsg(object: _104.RequestCheckTxAminoMsg): _104.RequestCheckTx; - fromProtoMsg(message: _104.RequestCheckTxProtoMsg): _104.RequestCheckTx; - toProto(message: _104.RequestCheckTx): Uint8Array; - toProtoMsg(message: _104.RequestCheckTx): _104.RequestCheckTxProtoMsg; - }; - RequestDeliverTx: { - typeUrl: string; - encode(message: _104.RequestDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestDeliverTx; - fromPartial(object: Partial<_104.RequestDeliverTx>): _104.RequestDeliverTx; - fromAmino(object: _104.RequestDeliverTxAmino): _104.RequestDeliverTx; - toAmino(message: _104.RequestDeliverTx): _104.RequestDeliverTxAmino; - fromAminoMsg(object: _104.RequestDeliverTxAminoMsg): _104.RequestDeliverTx; - fromProtoMsg(message: _104.RequestDeliverTxProtoMsg): _104.RequestDeliverTx; - toProto(message: _104.RequestDeliverTx): Uint8Array; - toProtoMsg(message: _104.RequestDeliverTx): _104.RequestDeliverTxProtoMsg; - }; - RequestEndBlock: { - typeUrl: string; - encode(message: _104.RequestEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestEndBlock; - fromPartial(object: Partial<_104.RequestEndBlock>): _104.RequestEndBlock; - fromAmino(object: _104.RequestEndBlockAmino): _104.RequestEndBlock; - toAmino(message: _104.RequestEndBlock): _104.RequestEndBlockAmino; - fromAminoMsg(object: _104.RequestEndBlockAminoMsg): _104.RequestEndBlock; - fromProtoMsg(message: _104.RequestEndBlockProtoMsg): _104.RequestEndBlock; - toProto(message: _104.RequestEndBlock): Uint8Array; - toProtoMsg(message: _104.RequestEndBlock): _104.RequestEndBlockProtoMsg; - }; - RequestCommit: { - typeUrl: string; - encode(_: _104.RequestCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestCommit; - fromPartial(_: Partial<_104.RequestCommit>): _104.RequestCommit; - fromAmino(_: _104.RequestCommitAmino): _104.RequestCommit; - toAmino(_: _104.RequestCommit): _104.RequestCommitAmino; - fromAminoMsg(object: _104.RequestCommitAminoMsg): _104.RequestCommit; - fromProtoMsg(message: _104.RequestCommitProtoMsg): _104.RequestCommit; - toProto(message: _104.RequestCommit): Uint8Array; - toProtoMsg(message: _104.RequestCommit): _104.RequestCommitProtoMsg; - }; - RequestListSnapshots: { - typeUrl: string; - encode(_: _104.RequestListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestListSnapshots; - fromPartial(_: Partial<_104.RequestListSnapshots>): _104.RequestListSnapshots; - fromAmino(_: _104.RequestListSnapshotsAmino): _104.RequestListSnapshots; - toAmino(_: _104.RequestListSnapshots): _104.RequestListSnapshotsAmino; - fromAminoMsg(object: _104.RequestListSnapshotsAminoMsg): _104.RequestListSnapshots; - fromProtoMsg(message: _104.RequestListSnapshotsProtoMsg): _104.RequestListSnapshots; - toProto(message: _104.RequestListSnapshots): Uint8Array; - toProtoMsg(message: _104.RequestListSnapshots): _104.RequestListSnapshotsProtoMsg; - }; - RequestOfferSnapshot: { - typeUrl: string; - encode(message: _104.RequestOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestOfferSnapshot; - fromPartial(object: Partial<_104.RequestOfferSnapshot>): _104.RequestOfferSnapshot; - fromAmino(object: _104.RequestOfferSnapshotAmino): _104.RequestOfferSnapshot; - toAmino(message: _104.RequestOfferSnapshot): _104.RequestOfferSnapshotAmino; - fromAminoMsg(object: _104.RequestOfferSnapshotAminoMsg): _104.RequestOfferSnapshot; - fromProtoMsg(message: _104.RequestOfferSnapshotProtoMsg): _104.RequestOfferSnapshot; - toProto(message: _104.RequestOfferSnapshot): Uint8Array; - toProtoMsg(message: _104.RequestOfferSnapshot): _104.RequestOfferSnapshotProtoMsg; - }; - RequestLoadSnapshotChunk: { - typeUrl: string; - encode(message: _104.RequestLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestLoadSnapshotChunk; - fromPartial(object: Partial<_104.RequestLoadSnapshotChunk>): _104.RequestLoadSnapshotChunk; - fromAmino(object: _104.RequestLoadSnapshotChunkAmino): _104.RequestLoadSnapshotChunk; - toAmino(message: _104.RequestLoadSnapshotChunk): _104.RequestLoadSnapshotChunkAmino; - fromAminoMsg(object: _104.RequestLoadSnapshotChunkAminoMsg): _104.RequestLoadSnapshotChunk; - fromProtoMsg(message: _104.RequestLoadSnapshotChunkProtoMsg): _104.RequestLoadSnapshotChunk; - toProto(message: _104.RequestLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _104.RequestLoadSnapshotChunk): _104.RequestLoadSnapshotChunkProtoMsg; - }; - RequestApplySnapshotChunk: { - typeUrl: string; - encode(message: _104.RequestApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestApplySnapshotChunk; - fromPartial(object: Partial<_104.RequestApplySnapshotChunk>): _104.RequestApplySnapshotChunk; - fromAmino(object: _104.RequestApplySnapshotChunkAmino): _104.RequestApplySnapshotChunk; - toAmino(message: _104.RequestApplySnapshotChunk): _104.RequestApplySnapshotChunkAmino; - fromAminoMsg(object: _104.RequestApplySnapshotChunkAminoMsg): _104.RequestApplySnapshotChunk; - fromProtoMsg(message: _104.RequestApplySnapshotChunkProtoMsg): _104.RequestApplySnapshotChunk; - toProto(message: _104.RequestApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _104.RequestApplySnapshotChunk): _104.RequestApplySnapshotChunkProtoMsg; - }; - RequestPrepareProposal: { - typeUrl: string; - encode(message: _104.RequestPrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestPrepareProposal; - fromPartial(object: Partial<_104.RequestPrepareProposal>): _104.RequestPrepareProposal; - fromAmino(object: _104.RequestPrepareProposalAmino): _104.RequestPrepareProposal; - toAmino(message: _104.RequestPrepareProposal): _104.RequestPrepareProposalAmino; - fromAminoMsg(object: _104.RequestPrepareProposalAminoMsg): _104.RequestPrepareProposal; - fromProtoMsg(message: _104.RequestPrepareProposalProtoMsg): _104.RequestPrepareProposal; - toProto(message: _104.RequestPrepareProposal): Uint8Array; - toProtoMsg(message: _104.RequestPrepareProposal): _104.RequestPrepareProposalProtoMsg; - }; - RequestProcessProposal: { - typeUrl: string; - encode(message: _104.RequestProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.RequestProcessProposal; - fromPartial(object: Partial<_104.RequestProcessProposal>): _104.RequestProcessProposal; - fromAmino(object: _104.RequestProcessProposalAmino): _104.RequestProcessProposal; - toAmino(message: _104.RequestProcessProposal): _104.RequestProcessProposalAmino; - fromAminoMsg(object: _104.RequestProcessProposalAminoMsg): _104.RequestProcessProposal; - fromProtoMsg(message: _104.RequestProcessProposalProtoMsg): _104.RequestProcessProposal; - toProto(message: _104.RequestProcessProposal): Uint8Array; - toProtoMsg(message: _104.RequestProcessProposal): _104.RequestProcessProposalProtoMsg; - }; - Response: { - typeUrl: string; - encode(message: _104.Response, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Response; - fromPartial(object: Partial<_104.Response>): _104.Response; - fromAmino(object: _104.ResponseAmino): _104.Response; - toAmino(message: _104.Response): _104.ResponseAmino; - fromAminoMsg(object: _104.ResponseAminoMsg): _104.Response; - fromProtoMsg(message: _104.ResponseProtoMsg): _104.Response; - toProto(message: _104.Response): Uint8Array; - toProtoMsg(message: _104.Response): _104.ResponseProtoMsg; - }; - ResponseException: { - typeUrl: string; - encode(message: _104.ResponseException, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseException; - fromPartial(object: Partial<_104.ResponseException>): _104.ResponseException; - fromAmino(object: _104.ResponseExceptionAmino): _104.ResponseException; - toAmino(message: _104.ResponseException): _104.ResponseExceptionAmino; - fromAminoMsg(object: _104.ResponseExceptionAminoMsg): _104.ResponseException; - fromProtoMsg(message: _104.ResponseExceptionProtoMsg): _104.ResponseException; - toProto(message: _104.ResponseException): Uint8Array; - toProtoMsg(message: _104.ResponseException): _104.ResponseExceptionProtoMsg; - }; - ResponseEcho: { - typeUrl: string; - encode(message: _104.ResponseEcho, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseEcho; - fromPartial(object: Partial<_104.ResponseEcho>): _104.ResponseEcho; - fromAmino(object: _104.ResponseEchoAmino): _104.ResponseEcho; - toAmino(message: _104.ResponseEcho): _104.ResponseEchoAmino; - fromAminoMsg(object: _104.ResponseEchoAminoMsg): _104.ResponseEcho; - fromProtoMsg(message: _104.ResponseEchoProtoMsg): _104.ResponseEcho; - toProto(message: _104.ResponseEcho): Uint8Array; - toProtoMsg(message: _104.ResponseEcho): _104.ResponseEchoProtoMsg; - }; - ResponseFlush: { - typeUrl: string; - encode(_: _104.ResponseFlush, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseFlush; - fromPartial(_: Partial<_104.ResponseFlush>): _104.ResponseFlush; - fromAmino(_: _104.ResponseFlushAmino): _104.ResponseFlush; - toAmino(_: _104.ResponseFlush): _104.ResponseFlushAmino; - fromAminoMsg(object: _104.ResponseFlushAminoMsg): _104.ResponseFlush; - fromProtoMsg(message: _104.ResponseFlushProtoMsg): _104.ResponseFlush; - toProto(message: _104.ResponseFlush): Uint8Array; - toProtoMsg(message: _104.ResponseFlush): _104.ResponseFlushProtoMsg; - }; - ResponseInfo: { - typeUrl: string; - encode(message: _104.ResponseInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseInfo; - fromPartial(object: Partial<_104.ResponseInfo>): _104.ResponseInfo; - fromAmino(object: _104.ResponseInfoAmino): _104.ResponseInfo; - toAmino(message: _104.ResponseInfo): _104.ResponseInfoAmino; - fromAminoMsg(object: _104.ResponseInfoAminoMsg): _104.ResponseInfo; - fromProtoMsg(message: _104.ResponseInfoProtoMsg): _104.ResponseInfo; - toProto(message: _104.ResponseInfo): Uint8Array; - toProtoMsg(message: _104.ResponseInfo): _104.ResponseInfoProtoMsg; - }; - ResponseInitChain: { - typeUrl: string; - encode(message: _104.ResponseInitChain, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseInitChain; - fromPartial(object: Partial<_104.ResponseInitChain>): _104.ResponseInitChain; - fromAmino(object: _104.ResponseInitChainAmino): _104.ResponseInitChain; - toAmino(message: _104.ResponseInitChain): _104.ResponseInitChainAmino; - fromAminoMsg(object: _104.ResponseInitChainAminoMsg): _104.ResponseInitChain; - fromProtoMsg(message: _104.ResponseInitChainProtoMsg): _104.ResponseInitChain; - toProto(message: _104.ResponseInitChain): Uint8Array; - toProtoMsg(message: _104.ResponseInitChain): _104.ResponseInitChainProtoMsg; - }; - ResponseQuery: { - typeUrl: string; - encode(message: _104.ResponseQuery, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseQuery; - fromPartial(object: Partial<_104.ResponseQuery>): _104.ResponseQuery; - fromAmino(object: _104.ResponseQueryAmino): _104.ResponseQuery; - toAmino(message: _104.ResponseQuery): _104.ResponseQueryAmino; - fromAminoMsg(object: _104.ResponseQueryAminoMsg): _104.ResponseQuery; - fromProtoMsg(message: _104.ResponseQueryProtoMsg): _104.ResponseQuery; - toProto(message: _104.ResponseQuery): Uint8Array; - toProtoMsg(message: _104.ResponseQuery): _104.ResponseQueryProtoMsg; - }; - ResponseBeginBlock: { - typeUrl: string; - encode(message: _104.ResponseBeginBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseBeginBlock; - fromPartial(object: Partial<_104.ResponseBeginBlock>): _104.ResponseBeginBlock; - fromAmino(object: _104.ResponseBeginBlockAmino): _104.ResponseBeginBlock; - toAmino(message: _104.ResponseBeginBlock): _104.ResponseBeginBlockAmino; - fromAminoMsg(object: _104.ResponseBeginBlockAminoMsg): _104.ResponseBeginBlock; - fromProtoMsg(message: _104.ResponseBeginBlockProtoMsg): _104.ResponseBeginBlock; - toProto(message: _104.ResponseBeginBlock): Uint8Array; - toProtoMsg(message: _104.ResponseBeginBlock): _104.ResponseBeginBlockProtoMsg; - }; - ResponseCheckTx: { - typeUrl: string; - encode(message: _104.ResponseCheckTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseCheckTx; - fromPartial(object: Partial<_104.ResponseCheckTx>): _104.ResponseCheckTx; - fromAmino(object: _104.ResponseCheckTxAmino): _104.ResponseCheckTx; - toAmino(message: _104.ResponseCheckTx): _104.ResponseCheckTxAmino; - fromAminoMsg(object: _104.ResponseCheckTxAminoMsg): _104.ResponseCheckTx; - fromProtoMsg(message: _104.ResponseCheckTxProtoMsg): _104.ResponseCheckTx; - toProto(message: _104.ResponseCheckTx): Uint8Array; - toProtoMsg(message: _104.ResponseCheckTx): _104.ResponseCheckTxProtoMsg; - }; - ResponseDeliverTx: { - typeUrl: string; - encode(message: _104.ResponseDeliverTx, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseDeliverTx; - fromPartial(object: Partial<_104.ResponseDeliverTx>): _104.ResponseDeliverTx; - fromAmino(object: _104.ResponseDeliverTxAmino): _104.ResponseDeliverTx; - toAmino(message: _104.ResponseDeliverTx): _104.ResponseDeliverTxAmino; - fromAminoMsg(object: _104.ResponseDeliverTxAminoMsg): _104.ResponseDeliverTx; - fromProtoMsg(message: _104.ResponseDeliverTxProtoMsg): _104.ResponseDeliverTx; - toProto(message: _104.ResponseDeliverTx): Uint8Array; - toProtoMsg(message: _104.ResponseDeliverTx): _104.ResponseDeliverTxProtoMsg; - }; - ResponseEndBlock: { - typeUrl: string; - encode(message: _104.ResponseEndBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseEndBlock; - fromPartial(object: Partial<_104.ResponseEndBlock>): _104.ResponseEndBlock; - fromAmino(object: _104.ResponseEndBlockAmino): _104.ResponseEndBlock; - toAmino(message: _104.ResponseEndBlock): _104.ResponseEndBlockAmino; - fromAminoMsg(object: _104.ResponseEndBlockAminoMsg): _104.ResponseEndBlock; - fromProtoMsg(message: _104.ResponseEndBlockProtoMsg): _104.ResponseEndBlock; - toProto(message: _104.ResponseEndBlock): Uint8Array; - toProtoMsg(message: _104.ResponseEndBlock): _104.ResponseEndBlockProtoMsg; - }; - ResponseCommit: { - typeUrl: string; - encode(message: _104.ResponseCommit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseCommit; - fromPartial(object: Partial<_104.ResponseCommit>): _104.ResponseCommit; - fromAmino(object: _104.ResponseCommitAmino): _104.ResponseCommit; - toAmino(message: _104.ResponseCommit): _104.ResponseCommitAmino; - fromAminoMsg(object: _104.ResponseCommitAminoMsg): _104.ResponseCommit; - fromProtoMsg(message: _104.ResponseCommitProtoMsg): _104.ResponseCommit; - toProto(message: _104.ResponseCommit): Uint8Array; - toProtoMsg(message: _104.ResponseCommit): _104.ResponseCommitProtoMsg; - }; - ResponseListSnapshots: { - typeUrl: string; - encode(message: _104.ResponseListSnapshots, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseListSnapshots; - fromPartial(object: Partial<_104.ResponseListSnapshots>): _104.ResponseListSnapshots; - fromAmino(object: _104.ResponseListSnapshotsAmino): _104.ResponseListSnapshots; - toAmino(message: _104.ResponseListSnapshots): _104.ResponseListSnapshotsAmino; - fromAminoMsg(object: _104.ResponseListSnapshotsAminoMsg): _104.ResponseListSnapshots; - fromProtoMsg(message: _104.ResponseListSnapshotsProtoMsg): _104.ResponseListSnapshots; - toProto(message: _104.ResponseListSnapshots): Uint8Array; - toProtoMsg(message: _104.ResponseListSnapshots): _104.ResponseListSnapshotsProtoMsg; - }; - ResponseOfferSnapshot: { - typeUrl: string; - encode(message: _104.ResponseOfferSnapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseOfferSnapshot; - fromPartial(object: Partial<_104.ResponseOfferSnapshot>): _104.ResponseOfferSnapshot; - fromAmino(object: _104.ResponseOfferSnapshotAmino): _104.ResponseOfferSnapshot; - toAmino(message: _104.ResponseOfferSnapshot): _104.ResponseOfferSnapshotAmino; - fromAminoMsg(object: _104.ResponseOfferSnapshotAminoMsg): _104.ResponseOfferSnapshot; - fromProtoMsg(message: _104.ResponseOfferSnapshotProtoMsg): _104.ResponseOfferSnapshot; - toProto(message: _104.ResponseOfferSnapshot): Uint8Array; - toProtoMsg(message: _104.ResponseOfferSnapshot): _104.ResponseOfferSnapshotProtoMsg; - }; - ResponseLoadSnapshotChunk: { - typeUrl: string; - encode(message: _104.ResponseLoadSnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseLoadSnapshotChunk; - fromPartial(object: Partial<_104.ResponseLoadSnapshotChunk>): _104.ResponseLoadSnapshotChunk; - fromAmino(object: _104.ResponseLoadSnapshotChunkAmino): _104.ResponseLoadSnapshotChunk; - toAmino(message: _104.ResponseLoadSnapshotChunk): _104.ResponseLoadSnapshotChunkAmino; - fromAminoMsg(object: _104.ResponseLoadSnapshotChunkAminoMsg): _104.ResponseLoadSnapshotChunk; - fromProtoMsg(message: _104.ResponseLoadSnapshotChunkProtoMsg): _104.ResponseLoadSnapshotChunk; - toProto(message: _104.ResponseLoadSnapshotChunk): Uint8Array; - toProtoMsg(message: _104.ResponseLoadSnapshotChunk): _104.ResponseLoadSnapshotChunkProtoMsg; - }; - ResponseApplySnapshotChunk: { - typeUrl: string; - encode(message: _104.ResponseApplySnapshotChunk, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseApplySnapshotChunk; - fromPartial(object: Partial<_104.ResponseApplySnapshotChunk>): _104.ResponseApplySnapshotChunk; - fromAmino(object: _104.ResponseApplySnapshotChunkAmino): _104.ResponseApplySnapshotChunk; - toAmino(message: _104.ResponseApplySnapshotChunk): _104.ResponseApplySnapshotChunkAmino; - fromAminoMsg(object: _104.ResponseApplySnapshotChunkAminoMsg): _104.ResponseApplySnapshotChunk; - fromProtoMsg(message: _104.ResponseApplySnapshotChunkProtoMsg): _104.ResponseApplySnapshotChunk; - toProto(message: _104.ResponseApplySnapshotChunk): Uint8Array; - toProtoMsg(message: _104.ResponseApplySnapshotChunk): _104.ResponseApplySnapshotChunkProtoMsg; - }; - ResponsePrepareProposal: { - typeUrl: string; - encode(message: _104.ResponsePrepareProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponsePrepareProposal; - fromPartial(object: Partial<_104.ResponsePrepareProposal>): _104.ResponsePrepareProposal; - fromAmino(object: _104.ResponsePrepareProposalAmino): _104.ResponsePrepareProposal; - toAmino(message: _104.ResponsePrepareProposal): _104.ResponsePrepareProposalAmino; - fromAminoMsg(object: _104.ResponsePrepareProposalAminoMsg): _104.ResponsePrepareProposal; - fromProtoMsg(message: _104.ResponsePrepareProposalProtoMsg): _104.ResponsePrepareProposal; - toProto(message: _104.ResponsePrepareProposal): Uint8Array; - toProtoMsg(message: _104.ResponsePrepareProposal): _104.ResponsePrepareProposalProtoMsg; - }; - ResponseProcessProposal: { - typeUrl: string; - encode(message: _104.ResponseProcessProposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ResponseProcessProposal; - fromPartial(object: Partial<_104.ResponseProcessProposal>): _104.ResponseProcessProposal; - fromAmino(object: _104.ResponseProcessProposalAmino): _104.ResponseProcessProposal; - toAmino(message: _104.ResponseProcessProposal): _104.ResponseProcessProposalAmino; - fromAminoMsg(object: _104.ResponseProcessProposalAminoMsg): _104.ResponseProcessProposal; - fromProtoMsg(message: _104.ResponseProcessProposalProtoMsg): _104.ResponseProcessProposal; - toProto(message: _104.ResponseProcessProposal): Uint8Array; - toProtoMsg(message: _104.ResponseProcessProposal): _104.ResponseProcessProposalProtoMsg; - }; - CommitInfo: { - typeUrl: string; - encode(message: _104.CommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.CommitInfo; - fromPartial(object: Partial<_104.CommitInfo>): _104.CommitInfo; - fromAmino(object: _104.CommitInfoAmino): _104.CommitInfo; - toAmino(message: _104.CommitInfo): _104.CommitInfoAmino; - fromAminoMsg(object: _104.CommitInfoAminoMsg): _104.CommitInfo; - fromProtoMsg(message: _104.CommitInfoProtoMsg): _104.CommitInfo; - toProto(message: _104.CommitInfo): Uint8Array; - toProtoMsg(message: _104.CommitInfo): _104.CommitInfoProtoMsg; - }; - ExtendedCommitInfo: { - typeUrl: string; - encode(message: _104.ExtendedCommitInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ExtendedCommitInfo; - fromPartial(object: Partial<_104.ExtendedCommitInfo>): _104.ExtendedCommitInfo; - fromAmino(object: _104.ExtendedCommitInfoAmino): _104.ExtendedCommitInfo; - toAmino(message: _104.ExtendedCommitInfo): _104.ExtendedCommitInfoAmino; - fromAminoMsg(object: _104.ExtendedCommitInfoAminoMsg): _104.ExtendedCommitInfo; - fromProtoMsg(message: _104.ExtendedCommitInfoProtoMsg): _104.ExtendedCommitInfo; - toProto(message: _104.ExtendedCommitInfo): Uint8Array; - toProtoMsg(message: _104.ExtendedCommitInfo): _104.ExtendedCommitInfoProtoMsg; - }; - Event: { - typeUrl: string; - encode(message: _104.Event, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Event; - fromPartial(object: Partial<_104.Event>): _104.Event; - fromAmino(object: _104.EventAmino): _104.Event; - toAmino(message: _104.Event): _104.EventAmino; - fromAminoMsg(object: _104.EventAminoMsg): _104.Event; - fromProtoMsg(message: _104.EventProtoMsg): _104.Event; - toProto(message: _104.Event): Uint8Array; - toProtoMsg(message: _104.Event): _104.EventProtoMsg; - }; - EventAttribute: { - typeUrl: string; - encode(message: _104.EventAttribute, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.EventAttribute; - fromPartial(object: Partial<_104.EventAttribute>): _104.EventAttribute; - fromAmino(object: _104.EventAttributeAmino): _104.EventAttribute; - toAmino(message: _104.EventAttribute): _104.EventAttributeAmino; - fromAminoMsg(object: _104.EventAttributeAminoMsg): _104.EventAttribute; - fromProtoMsg(message: _104.EventAttributeProtoMsg): _104.EventAttribute; - toProto(message: _104.EventAttribute): Uint8Array; - toProtoMsg(message: _104.EventAttribute): _104.EventAttributeProtoMsg; - }; - TxResult: { - typeUrl: string; - encode(message: _104.TxResult, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.TxResult; - fromPartial(object: Partial<_104.TxResult>): _104.TxResult; - fromAmino(object: _104.TxResultAmino): _104.TxResult; - toAmino(message: _104.TxResult): _104.TxResultAmino; - fromAminoMsg(object: _104.TxResultAminoMsg): _104.TxResult; - fromProtoMsg(message: _104.TxResultProtoMsg): _104.TxResult; - toProto(message: _104.TxResult): Uint8Array; - toProtoMsg(message: _104.TxResult): _104.TxResultProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _104.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Validator; - fromPartial(object: Partial<_104.Validator>): _104.Validator; - fromAmino(object: _104.ValidatorAmino): _104.Validator; - toAmino(message: _104.Validator): _104.ValidatorAmino; - fromAminoMsg(object: _104.ValidatorAminoMsg): _104.Validator; - fromProtoMsg(message: _104.ValidatorProtoMsg): _104.Validator; - toProto(message: _104.Validator): Uint8Array; - toProtoMsg(message: _104.Validator): _104.ValidatorProtoMsg; - }; - ValidatorUpdate: { - typeUrl: string; - encode(message: _104.ValidatorUpdate, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ValidatorUpdate; - fromPartial(object: Partial<_104.ValidatorUpdate>): _104.ValidatorUpdate; - fromAmino(object: _104.ValidatorUpdateAmino): _104.ValidatorUpdate; - toAmino(message: _104.ValidatorUpdate): _104.ValidatorUpdateAmino; - fromAminoMsg(object: _104.ValidatorUpdateAminoMsg): _104.ValidatorUpdate; - fromProtoMsg(message: _104.ValidatorUpdateProtoMsg): _104.ValidatorUpdate; - toProto(message: _104.ValidatorUpdate): Uint8Array; - toProtoMsg(message: _104.ValidatorUpdate): _104.ValidatorUpdateProtoMsg; - }; - VoteInfo: { - typeUrl: string; - encode(message: _104.VoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.VoteInfo; - fromPartial(object: Partial<_104.VoteInfo>): _104.VoteInfo; - fromAmino(object: _104.VoteInfoAmino): _104.VoteInfo; - toAmino(message: _104.VoteInfo): _104.VoteInfoAmino; - fromAminoMsg(object: _104.VoteInfoAminoMsg): _104.VoteInfo; - fromProtoMsg(message: _104.VoteInfoProtoMsg): _104.VoteInfo; - toProto(message: _104.VoteInfo): Uint8Array; - toProtoMsg(message: _104.VoteInfo): _104.VoteInfoProtoMsg; - }; - ExtendedVoteInfo: { - typeUrl: string; - encode(message: _104.ExtendedVoteInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.ExtendedVoteInfo; - fromPartial(object: Partial<_104.ExtendedVoteInfo>): _104.ExtendedVoteInfo; - fromAmino(object: _104.ExtendedVoteInfoAmino): _104.ExtendedVoteInfo; - toAmino(message: _104.ExtendedVoteInfo): _104.ExtendedVoteInfoAmino; - fromAminoMsg(object: _104.ExtendedVoteInfoAminoMsg): _104.ExtendedVoteInfo; - fromProtoMsg(message: _104.ExtendedVoteInfoProtoMsg): _104.ExtendedVoteInfo; - toProto(message: _104.ExtendedVoteInfo): Uint8Array; - toProtoMsg(message: _104.ExtendedVoteInfo): _104.ExtendedVoteInfoProtoMsg; - }; - Misbehavior: { - typeUrl: string; - encode(message: _104.Misbehavior, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Misbehavior; - fromPartial(object: Partial<_104.Misbehavior>): _104.Misbehavior; - fromAmino(object: _104.MisbehaviorAmino): _104.Misbehavior; - toAmino(message: _104.Misbehavior): _104.MisbehaviorAmino; - fromAminoMsg(object: _104.MisbehaviorAminoMsg): _104.Misbehavior; - fromProtoMsg(message: _104.MisbehaviorProtoMsg): _104.Misbehavior; - toProto(message: _104.Misbehavior): Uint8Array; - toProtoMsg(message: _104.Misbehavior): _104.MisbehaviorProtoMsg; - }; - Snapshot: { - typeUrl: string; - encode(message: _104.Snapshot, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _104.Snapshot; - fromPartial(object: Partial<_104.Snapshot>): _104.Snapshot; - fromAmino(object: _104.SnapshotAmino): _104.Snapshot; - toAmino(message: _104.Snapshot): _104.SnapshotAmino; - fromAminoMsg(object: _104.SnapshotAminoMsg): _104.Snapshot; - fromProtoMsg(message: _104.SnapshotProtoMsg): _104.Snapshot; - toProto(message: _104.Snapshot): Uint8Array; - toProtoMsg(message: _104.Snapshot): _104.SnapshotProtoMsg; - }; - }; - const crypto: { - Proof: { - typeUrl: string; - encode(message: _106.Proof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.Proof; - fromPartial(object: Partial<_106.Proof>): _106.Proof; - fromAmino(object: _106.ProofAmino): _106.Proof; - toAmino(message: _106.Proof): _106.ProofAmino; - fromAminoMsg(object: _106.ProofAminoMsg): _106.Proof; - fromProtoMsg(message: _106.ProofProtoMsg): _106.Proof; - toProto(message: _106.Proof): Uint8Array; - toProtoMsg(message: _106.Proof): _106.ProofProtoMsg; - }; - ValueOp: { - typeUrl: string; - encode(message: _106.ValueOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ValueOp; - fromPartial(object: Partial<_106.ValueOp>): _106.ValueOp; - fromAmino(object: _106.ValueOpAmino): _106.ValueOp; - toAmino(message: _106.ValueOp): _106.ValueOpAmino; - fromAminoMsg(object: _106.ValueOpAminoMsg): _106.ValueOp; - fromProtoMsg(message: _106.ValueOpProtoMsg): _106.ValueOp; - toProto(message: _106.ValueOp): Uint8Array; - toProtoMsg(message: _106.ValueOp): _106.ValueOpProtoMsg; - }; - DominoOp: { - typeUrl: string; - encode(message: _106.DominoOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.DominoOp; - fromPartial(object: Partial<_106.DominoOp>): _106.DominoOp; - fromAmino(object: _106.DominoOpAmino): _106.DominoOp; - toAmino(message: _106.DominoOp): _106.DominoOpAmino; - fromAminoMsg(object: _106.DominoOpAminoMsg): _106.DominoOp; - fromProtoMsg(message: _106.DominoOpProtoMsg): _106.DominoOp; - toProto(message: _106.DominoOp): Uint8Array; - toProtoMsg(message: _106.DominoOp): _106.DominoOpProtoMsg; - }; - ProofOp: { - typeUrl: string; - encode(message: _106.ProofOp, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ProofOp; - fromPartial(object: Partial<_106.ProofOp>): _106.ProofOp; - fromAmino(object: _106.ProofOpAmino): _106.ProofOp; - toAmino(message: _106.ProofOp): _106.ProofOpAmino; - fromAminoMsg(object: _106.ProofOpAminoMsg): _106.ProofOp; - fromProtoMsg(message: _106.ProofOpProtoMsg): _106.ProofOp; - toProto(message: _106.ProofOp): Uint8Array; - toProtoMsg(message: _106.ProofOp): _106.ProofOpProtoMsg; - }; - ProofOps: { - typeUrl: string; - encode(message: _106.ProofOps, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _106.ProofOps; - fromPartial(object: Partial<_106.ProofOps>): _106.ProofOps; - fromAmino(object: _106.ProofOpsAmino): _106.ProofOps; - toAmino(message: _106.ProofOps): _106.ProofOpsAmino; - fromAminoMsg(object: _106.ProofOpsAminoMsg): _106.ProofOps; - fromProtoMsg(message: _106.ProofOpsProtoMsg): _106.ProofOps; - toProto(message: _106.ProofOps): Uint8Array; - toProtoMsg(message: _106.ProofOps): _106.ProofOpsProtoMsg; - }; - PublicKey: { - typeUrl: string; - encode(message: _105.PublicKey, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _105.PublicKey; - fromPartial(object: Partial<_105.PublicKey>): _105.PublicKey; - fromAmino(object: _105.PublicKeyAmino): _105.PublicKey; - toAmino(message: _105.PublicKey): _105.PublicKeyAmino; - fromAminoMsg(object: _105.PublicKeyAminoMsg): _105.PublicKey; - fromProtoMsg(message: _105.PublicKeyProtoMsg): _105.PublicKey; - toProto(message: _105.PublicKey): Uint8Array; - toProtoMsg(message: _105.PublicKey): _105.PublicKeyProtoMsg; - }; - }; - namespace libs { - const bits: { - BitArray: { - typeUrl: string; - encode(message: _107.BitArray, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _107.BitArray; - fromPartial(object: Partial<_107.BitArray>): _107.BitArray; - fromAmino(object: _107.BitArrayAmino): _107.BitArray; - toAmino(message: _107.BitArray): _107.BitArrayAmino; - fromAminoMsg(object: _107.BitArrayAminoMsg): _107.BitArray; - fromProtoMsg(message: _107.BitArrayProtoMsg): _107.BitArray; - toProto(message: _107.BitArray): Uint8Array; - toProtoMsg(message: _107.BitArray): _107.BitArrayProtoMsg; - }; - }; - } - const p2p: { - NetAddress: { - typeUrl: string; - encode(message: _108.NetAddress, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.NetAddress; - fromPartial(object: Partial<_108.NetAddress>): _108.NetAddress; - fromAmino(object: _108.NetAddressAmino): _108.NetAddress; - toAmino(message: _108.NetAddress): _108.NetAddressAmino; - fromAminoMsg(object: _108.NetAddressAminoMsg): _108.NetAddress; - fromProtoMsg(message: _108.NetAddressProtoMsg): _108.NetAddress; - toProto(message: _108.NetAddress): Uint8Array; - toProtoMsg(message: _108.NetAddress): _108.NetAddressProtoMsg; - }; - ProtocolVersion: { - typeUrl: string; - encode(message: _108.ProtocolVersion, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.ProtocolVersion; - fromPartial(object: Partial<_108.ProtocolVersion>): _108.ProtocolVersion; - fromAmino(object: _108.ProtocolVersionAmino): _108.ProtocolVersion; - toAmino(message: _108.ProtocolVersion): _108.ProtocolVersionAmino; - fromAminoMsg(object: _108.ProtocolVersionAminoMsg): _108.ProtocolVersion; - fromProtoMsg(message: _108.ProtocolVersionProtoMsg): _108.ProtocolVersion; - toProto(message: _108.ProtocolVersion): Uint8Array; - toProtoMsg(message: _108.ProtocolVersion): _108.ProtocolVersionProtoMsg; - }; - DefaultNodeInfo: { - typeUrl: string; - encode(message: _108.DefaultNodeInfo, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.DefaultNodeInfo; - fromPartial(object: Partial<_108.DefaultNodeInfo>): _108.DefaultNodeInfo; - fromAmino(object: _108.DefaultNodeInfoAmino): _108.DefaultNodeInfo; - toAmino(message: _108.DefaultNodeInfo): _108.DefaultNodeInfoAmino; - fromAminoMsg(object: _108.DefaultNodeInfoAminoMsg): _108.DefaultNodeInfo; - fromProtoMsg(message: _108.DefaultNodeInfoProtoMsg): _108.DefaultNodeInfo; - toProto(message: _108.DefaultNodeInfo): Uint8Array; - toProtoMsg(message: _108.DefaultNodeInfo): _108.DefaultNodeInfoProtoMsg; - }; - DefaultNodeInfoOther: { - typeUrl: string; - encode(message: _108.DefaultNodeInfoOther, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _108.DefaultNodeInfoOther; - fromPartial(object: Partial<_108.DefaultNodeInfoOther>): _108.DefaultNodeInfoOther; - fromAmino(object: _108.DefaultNodeInfoOtherAmino): _108.DefaultNodeInfoOther; - toAmino(message: _108.DefaultNodeInfoOther): _108.DefaultNodeInfoOtherAmino; - fromAminoMsg(object: _108.DefaultNodeInfoOtherAminoMsg): _108.DefaultNodeInfoOther; - fromProtoMsg(message: _108.DefaultNodeInfoOtherProtoMsg): _108.DefaultNodeInfoOther; - toProto(message: _108.DefaultNodeInfoOther): Uint8Array; - toProtoMsg(message: _108.DefaultNodeInfoOther): _108.DefaultNodeInfoOtherProtoMsg; - }; - }; - const types: { - ValidatorSet: { - typeUrl: string; - encode(message: _113.ValidatorSet, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.ValidatorSet; - fromPartial(object: Partial<_113.ValidatorSet>): _113.ValidatorSet; - fromAmino(object: _113.ValidatorSetAmino): _113.ValidatorSet; - toAmino(message: _113.ValidatorSet): _113.ValidatorSetAmino; - fromAminoMsg(object: _113.ValidatorSetAminoMsg): _113.ValidatorSet; - fromProtoMsg(message: _113.ValidatorSetProtoMsg): _113.ValidatorSet; - toProto(message: _113.ValidatorSet): Uint8Array; - toProtoMsg(message: _113.ValidatorSet): _113.ValidatorSetProtoMsg; - }; - Validator: { - typeUrl: string; - encode(message: _113.Validator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.Validator; - fromPartial(object: Partial<_113.Validator>): _113.Validator; - fromAmino(object: _113.ValidatorAmino): _113.Validator; - toAmino(message: _113.Validator): _113.ValidatorAmino; - fromAminoMsg(object: _113.ValidatorAminoMsg): _113.Validator; - fromProtoMsg(message: _113.ValidatorProtoMsg): _113.Validator; - toProto(message: _113.Validator): Uint8Array; - toProtoMsg(message: _113.Validator): _113.ValidatorProtoMsg; - }; - SimpleValidator: { - typeUrl: string; - encode(message: _113.SimpleValidator, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _113.SimpleValidator; - fromPartial(object: Partial<_113.SimpleValidator>): _113.SimpleValidator; - fromAmino(object: _113.SimpleValidatorAmino): _113.SimpleValidator; - toAmino(message: _113.SimpleValidator): _113.SimpleValidatorAmino; - fromAminoMsg(object: _113.SimpleValidatorAminoMsg): _113.SimpleValidator; - fromProtoMsg(message: _113.SimpleValidatorProtoMsg): _113.SimpleValidator; - toProto(message: _113.SimpleValidator): Uint8Array; - toProtoMsg(message: _113.SimpleValidator): _113.SimpleValidatorProtoMsg; - }; - blockIDFlagFromJSON(object: any): _112.BlockIDFlag; - blockIDFlagToJSON(object: _112.BlockIDFlag): string; - signedMsgTypeFromJSON(object: any): _112.SignedMsgType; - signedMsgTypeToJSON(object: _112.SignedMsgType): string; - BlockIDFlag: typeof _112.BlockIDFlag; - BlockIDFlagSDKType: typeof _112.BlockIDFlag; - BlockIDFlagAmino: typeof _112.BlockIDFlag; - SignedMsgType: typeof _112.SignedMsgType; - SignedMsgTypeSDKType: typeof _112.SignedMsgType; - SignedMsgTypeAmino: typeof _112.SignedMsgType; - PartSetHeader: { - typeUrl: string; - encode(message: _112.PartSetHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.PartSetHeader; - fromPartial(object: Partial<_112.PartSetHeader>): _112.PartSetHeader; - fromAmino(object: _112.PartSetHeaderAmino): _112.PartSetHeader; - toAmino(message: _112.PartSetHeader): _112.PartSetHeaderAmino; - fromAminoMsg(object: _112.PartSetHeaderAminoMsg): _112.PartSetHeader; - fromProtoMsg(message: _112.PartSetHeaderProtoMsg): _112.PartSetHeader; - toProto(message: _112.PartSetHeader): Uint8Array; - toProtoMsg(message: _112.PartSetHeader): _112.PartSetHeaderProtoMsg; - }; - Part: { - typeUrl: string; - encode(message: _112.Part, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Part; - fromPartial(object: Partial<_112.Part>): _112.Part; - fromAmino(object: _112.PartAmino): _112.Part; - toAmino(message: _112.Part): _112.PartAmino; - fromAminoMsg(object: _112.PartAminoMsg): _112.Part; - fromProtoMsg(message: _112.PartProtoMsg): _112.Part; - toProto(message: _112.Part): Uint8Array; - toProtoMsg(message: _112.Part): _112.PartProtoMsg; - }; - BlockID: { - typeUrl: string; - encode(message: _112.BlockID, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.BlockID; - fromPartial(object: Partial<_112.BlockID>): _112.BlockID; - fromAmino(object: _112.BlockIDAmino): _112.BlockID; - toAmino(message: _112.BlockID): _112.BlockIDAmino; - fromAminoMsg(object: _112.BlockIDAminoMsg): _112.BlockID; - fromProtoMsg(message: _112.BlockIDProtoMsg): _112.BlockID; - toProto(message: _112.BlockID): Uint8Array; - toProtoMsg(message: _112.BlockID): _112.BlockIDProtoMsg; - }; - Header: { - typeUrl: string; - encode(message: _112.Header, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Header; - fromPartial(object: Partial<_112.Header>): _112.Header; - fromAmino(object: _112.HeaderAmino): _112.Header; - toAmino(message: _112.Header): _112.HeaderAmino; - fromAminoMsg(object: _112.HeaderAminoMsg): _112.Header; - fromProtoMsg(message: _112.HeaderProtoMsg): _112.Header; - toProto(message: _112.Header): Uint8Array; - toProtoMsg(message: _112.Header): _112.HeaderProtoMsg; - }; - Data: { - typeUrl: string; - encode(message: _112.Data, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Data; - fromPartial(object: Partial<_112.Data>): _112.Data; - fromAmino(object: _112.DataAmino): _112.Data; - toAmino(message: _112.Data): _112.DataAmino; - fromAminoMsg(object: _112.DataAminoMsg): _112.Data; - fromProtoMsg(message: _112.DataProtoMsg): _112.Data; - toProto(message: _112.Data): Uint8Array; - toProtoMsg(message: _112.Data): _112.DataProtoMsg; - }; - Vote: { - typeUrl: string; - encode(message: _112.Vote, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Vote; - fromPartial(object: Partial<_112.Vote>): _112.Vote; - fromAmino(object: _112.VoteAmino): _112.Vote; - toAmino(message: _112.Vote): _112.VoteAmino; - fromAminoMsg(object: _112.VoteAminoMsg): _112.Vote; - fromProtoMsg(message: _112.VoteProtoMsg): _112.Vote; - toProto(message: _112.Vote): Uint8Array; - toProtoMsg(message: _112.Vote): _112.VoteProtoMsg; - }; - Commit: { - typeUrl: string; - encode(message: _112.Commit, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Commit; - fromPartial(object: Partial<_112.Commit>): _112.Commit; - fromAmino(object: _112.CommitAmino): _112.Commit; - toAmino(message: _112.Commit): _112.CommitAmino; - fromAminoMsg(object: _112.CommitAminoMsg): _112.Commit; - fromProtoMsg(message: _112.CommitProtoMsg): _112.Commit; - toProto(message: _112.Commit): Uint8Array; - toProtoMsg(message: _112.Commit): _112.CommitProtoMsg; - }; - CommitSig: { - typeUrl: string; - encode(message: _112.CommitSig, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.CommitSig; - fromPartial(object: Partial<_112.CommitSig>): _112.CommitSig; - fromAmino(object: _112.CommitSigAmino): _112.CommitSig; - toAmino(message: _112.CommitSig): _112.CommitSigAmino; - fromAminoMsg(object: _112.CommitSigAminoMsg): _112.CommitSig; - fromProtoMsg(message: _112.CommitSigProtoMsg): _112.CommitSig; - toProto(message: _112.CommitSig): Uint8Array; - toProtoMsg(message: _112.CommitSig): _112.CommitSigProtoMsg; - }; - Proposal: { - typeUrl: string; - encode(message: _112.Proposal, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.Proposal; - fromPartial(object: Partial<_112.Proposal>): _112.Proposal; - fromAmino(object: _112.ProposalAmino): _112.Proposal; - toAmino(message: _112.Proposal): _112.ProposalAmino; - fromAminoMsg(object: _112.ProposalAminoMsg): _112.Proposal; - fromProtoMsg(message: _112.ProposalProtoMsg): _112.Proposal; - toProto(message: _112.Proposal): Uint8Array; - toProtoMsg(message: _112.Proposal): _112.ProposalProtoMsg; - }; - SignedHeader: { - typeUrl: string; - encode(message: _112.SignedHeader, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.SignedHeader; - fromPartial(object: Partial<_112.SignedHeader>): _112.SignedHeader; - fromAmino(object: _112.SignedHeaderAmino): _112.SignedHeader; - toAmino(message: _112.SignedHeader): _112.SignedHeaderAmino; - fromAminoMsg(object: _112.SignedHeaderAminoMsg): _112.SignedHeader; - fromProtoMsg(message: _112.SignedHeaderProtoMsg): _112.SignedHeader; - toProto(message: _112.SignedHeader): Uint8Array; - toProtoMsg(message: _112.SignedHeader): _112.SignedHeaderProtoMsg; - }; - LightBlock: { - typeUrl: string; - encode(message: _112.LightBlock, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.LightBlock; - fromPartial(object: Partial<_112.LightBlock>): _112.LightBlock; - fromAmino(object: _112.LightBlockAmino): _112.LightBlock; - toAmino(message: _112.LightBlock): _112.LightBlockAmino; - fromAminoMsg(object: _112.LightBlockAminoMsg): _112.LightBlock; - fromProtoMsg(message: _112.LightBlockProtoMsg): _112.LightBlock; - toProto(message: _112.LightBlock): Uint8Array; - toProtoMsg(message: _112.LightBlock): _112.LightBlockProtoMsg; - }; - BlockMeta: { - typeUrl: string; - encode(message: _112.BlockMeta, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.BlockMeta; - fromPartial(object: Partial<_112.BlockMeta>): _112.BlockMeta; - fromAmino(object: _112.BlockMetaAmino): _112.BlockMeta; - toAmino(message: _112.BlockMeta): _112.BlockMetaAmino; - fromAminoMsg(object: _112.BlockMetaAminoMsg): _112.BlockMeta; - fromProtoMsg(message: _112.BlockMetaProtoMsg): _112.BlockMeta; - toProto(message: _112.BlockMeta): Uint8Array; - toProtoMsg(message: _112.BlockMeta): _112.BlockMetaProtoMsg; - }; - TxProof: { - typeUrl: string; - encode(message: _112.TxProof, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _112.TxProof; - fromPartial(object: Partial<_112.TxProof>): _112.TxProof; - fromAmino(object: _112.TxProofAmino): _112.TxProof; - toAmino(message: _112.TxProof): _112.TxProofAmino; - fromAminoMsg(object: _112.TxProofAminoMsg): _112.TxProof; - fromProtoMsg(message: _112.TxProofProtoMsg): _112.TxProof; - toProto(message: _112.TxProof): Uint8Array; - toProtoMsg(message: _112.TxProof): _112.TxProofProtoMsg; - }; - ConsensusParams: { - typeUrl: string; - encode(message: _111.ConsensusParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.ConsensusParams; - fromPartial(object: Partial<_111.ConsensusParams>): _111.ConsensusParams; - fromAmino(object: _111.ConsensusParamsAmino): _111.ConsensusParams; - toAmino(message: _111.ConsensusParams): _111.ConsensusParamsAmino; - fromAminoMsg(object: _111.ConsensusParamsAminoMsg): _111.ConsensusParams; - fromProtoMsg(message: _111.ConsensusParamsProtoMsg): _111.ConsensusParams; - toProto(message: _111.ConsensusParams): Uint8Array; - toProtoMsg(message: _111.ConsensusParams): _111.ConsensusParamsProtoMsg; - }; - BlockParams: { - typeUrl: string; - encode(message: _111.BlockParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.BlockParams; - fromPartial(object: Partial<_111.BlockParams>): _111.BlockParams; - fromAmino(object: _111.BlockParamsAmino): _111.BlockParams; - toAmino(message: _111.BlockParams): _111.BlockParamsAmino; - fromAminoMsg(object: _111.BlockParamsAminoMsg): _111.BlockParams; - fromProtoMsg(message: _111.BlockParamsProtoMsg): _111.BlockParams; - toProto(message: _111.BlockParams): Uint8Array; - toProtoMsg(message: _111.BlockParams): _111.BlockParamsProtoMsg; - }; - EvidenceParams: { - typeUrl: string; - encode(message: _111.EvidenceParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.EvidenceParams; - fromPartial(object: Partial<_111.EvidenceParams>): _111.EvidenceParams; - fromAmino(object: _111.EvidenceParamsAmino): _111.EvidenceParams; - toAmino(message: _111.EvidenceParams): _111.EvidenceParamsAmino; - fromAminoMsg(object: _111.EvidenceParamsAminoMsg): _111.EvidenceParams; - fromProtoMsg(message: _111.EvidenceParamsProtoMsg): _111.EvidenceParams; - toProto(message: _111.EvidenceParams): Uint8Array; - toProtoMsg(message: _111.EvidenceParams): _111.EvidenceParamsProtoMsg; - }; - ValidatorParams: { - typeUrl: string; - encode(message: _111.ValidatorParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.ValidatorParams; - fromPartial(object: Partial<_111.ValidatorParams>): _111.ValidatorParams; - fromAmino(object: _111.ValidatorParamsAmino): _111.ValidatorParams; - toAmino(message: _111.ValidatorParams): _111.ValidatorParamsAmino; - fromAminoMsg(object: _111.ValidatorParamsAminoMsg): _111.ValidatorParams; - fromProtoMsg(message: _111.ValidatorParamsProtoMsg): _111.ValidatorParams; - toProto(message: _111.ValidatorParams): Uint8Array; - toProtoMsg(message: _111.ValidatorParams): _111.ValidatorParamsProtoMsg; - }; - VersionParams: { - typeUrl: string; - encode(message: _111.VersionParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.VersionParams; - fromPartial(object: Partial<_111.VersionParams>): _111.VersionParams; - fromAmino(object: _111.VersionParamsAmino): _111.VersionParams; - toAmino(message: _111.VersionParams): _111.VersionParamsAmino; - fromAminoMsg(object: _111.VersionParamsAminoMsg): _111.VersionParams; - fromProtoMsg(message: _111.VersionParamsProtoMsg): _111.VersionParams; - toProto(message: _111.VersionParams): Uint8Array; - toProtoMsg(message: _111.VersionParams): _111.VersionParamsProtoMsg; - }; - HashedParams: { - typeUrl: string; - encode(message: _111.HashedParams, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _111.HashedParams; - fromPartial(object: Partial<_111.HashedParams>): _111.HashedParams; - fromAmino(object: _111.HashedParamsAmino): _111.HashedParams; - toAmino(message: _111.HashedParams): _111.HashedParamsAmino; - fromAminoMsg(object: _111.HashedParamsAminoMsg): _111.HashedParams; - fromProtoMsg(message: _111.HashedParamsProtoMsg): _111.HashedParams; - toProto(message: _111.HashedParams): Uint8Array; - toProtoMsg(message: _111.HashedParams): _111.HashedParamsProtoMsg; - }; - Evidence: { - typeUrl: string; - encode(message: _110.Evidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.Evidence; - fromPartial(object: Partial<_110.Evidence>): _110.Evidence; - fromAmino(object: _110.EvidenceAmino): _110.Evidence; - toAmino(message: _110.Evidence): _110.EvidenceAmino; - fromAminoMsg(object: _110.EvidenceAminoMsg): _110.Evidence; - fromProtoMsg(message: _110.EvidenceProtoMsg): _110.Evidence; - toProto(message: _110.Evidence): Uint8Array; - toProtoMsg(message: _110.Evidence): _110.EvidenceProtoMsg; - }; - DuplicateVoteEvidence: { - typeUrl: string; - encode(message: _110.DuplicateVoteEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.DuplicateVoteEvidence; - fromPartial(object: Partial<_110.DuplicateVoteEvidence>): _110.DuplicateVoteEvidence; - fromAmino(object: _110.DuplicateVoteEvidenceAmino): _110.DuplicateVoteEvidence; - toAmino(message: _110.DuplicateVoteEvidence): _110.DuplicateVoteEvidenceAmino; - fromAminoMsg(object: _110.DuplicateVoteEvidenceAminoMsg): _110.DuplicateVoteEvidence; - fromProtoMsg(message: _110.DuplicateVoteEvidenceProtoMsg): _110.DuplicateVoteEvidence; - toProto(message: _110.DuplicateVoteEvidence): Uint8Array; - toProtoMsg(message: _110.DuplicateVoteEvidence): _110.DuplicateVoteEvidenceProtoMsg; - }; - LightClientAttackEvidence: { - typeUrl: string; - encode(message: _110.LightClientAttackEvidence, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.LightClientAttackEvidence; - fromPartial(object: Partial<_110.LightClientAttackEvidence>): _110.LightClientAttackEvidence; - fromAmino(object: _110.LightClientAttackEvidenceAmino): _110.LightClientAttackEvidence; - toAmino(message: _110.LightClientAttackEvidence): _110.LightClientAttackEvidenceAmino; - fromAminoMsg(object: _110.LightClientAttackEvidenceAminoMsg): _110.LightClientAttackEvidence; - fromProtoMsg(message: _110.LightClientAttackEvidenceProtoMsg): _110.LightClientAttackEvidence; - toProto(message: _110.LightClientAttackEvidence): Uint8Array; - toProtoMsg(message: _110.LightClientAttackEvidence): _110.LightClientAttackEvidenceProtoMsg; - }; - EvidenceList: { - typeUrl: string; - encode(message: _110.EvidenceList, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _110.EvidenceList; - fromPartial(object: Partial<_110.EvidenceList>): _110.EvidenceList; - fromAmino(object: _110.EvidenceListAmino): _110.EvidenceList; - toAmino(message: _110.EvidenceList): _110.EvidenceListAmino; - fromAminoMsg(object: _110.EvidenceListAminoMsg): _110.EvidenceList; - fromProtoMsg(message: _110.EvidenceListProtoMsg): _110.EvidenceList; - toProto(message: _110.EvidenceList): Uint8Array; - toProtoMsg(message: _110.EvidenceList): _110.EvidenceListProtoMsg; - }; - Block: { - typeUrl: string; - encode(message: _109.Block, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _109.Block; - fromPartial(object: Partial<_109.Block>): _109.Block; - fromAmino(object: _109.BlockAmino): _109.Block; - toAmino(message: _109.Block): _109.BlockAmino; - fromAminoMsg(object: _109.BlockAminoMsg): _109.Block; - fromProtoMsg(message: _109.BlockProtoMsg): _109.Block; - toProto(message: _109.Block): Uint8Array; - toProtoMsg(message: _109.Block): _109.BlockProtoMsg; - }; - }; - const version: { - App: { - typeUrl: string; - encode(message: _114.App, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _114.App; - fromPartial(object: Partial<_114.App>): _114.App; - fromAmino(object: _114.AppAmino): _114.App; - toAmino(message: _114.App): _114.AppAmino; - fromAminoMsg(object: _114.AppAminoMsg): _114.App; - fromProtoMsg(message: _114.AppProtoMsg): _114.App; - toProto(message: _114.App): Uint8Array; - toProtoMsg(message: _114.App): _114.AppProtoMsg; - }; - Consensus: { - typeUrl: string; - encode(message: _114.Consensus, writer?: import("..").BinaryWriter): import("..").BinaryWriter; - decode(input: Uint8Array | import("..").BinaryReader, length?: number): _114.Consensus; - fromPartial(object: Partial<_114.Consensus>): _114.Consensus; - fromAmino(object: _114.ConsensusAmino): _114.Consensus; - toAmino(message: _114.Consensus): _114.ConsensusAmino; - fromAminoMsg(object: _114.ConsensusAminoMsg): _114.Consensus; - fromProtoMsg(message: _114.ConsensusProtoMsg): _114.Consensus; - toProto(message: _114.Consensus): Uint8Array; - toProtoMsg(message: _114.Consensus): _114.ConsensusProtoMsg; - }; - }; -} diff --git a/packages/api/dist/tendermint/bundle.js b/packages/api/dist/tendermint/bundle.js deleted file mode 100644 index 31531a9b..00000000 --- a/packages/api/dist/tendermint/bundle.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tendermint = void 0; -//@ts-nocheck -const _104 = __importStar(require("./abci/types")); -const _105 = __importStar(require("./crypto/keys")); -const _106 = __importStar(require("./crypto/proof")); -const _107 = __importStar(require("./libs/bits/types")); -const _108 = __importStar(require("./p2p/types")); -const _109 = __importStar(require("./types/block")); -const _110 = __importStar(require("./types/evidence")); -const _111 = __importStar(require("./types/params")); -const _112 = __importStar(require("./types/types")); -const _113 = __importStar(require("./types/validator")); -const _114 = __importStar(require("./version/types")); -var tendermint; -(function (tendermint) { - tendermint.abci = { - ..._104 - }; - tendermint.crypto = { - ..._105, - ..._106 - }; - let libs; - (function (libs) { - libs.bits = { - ..._107 - }; - })(libs = tendermint.libs || (tendermint.libs = {})); - tendermint.p2p = { - ..._108 - }; - tendermint.types = { - ..._109, - ..._110, - ..._111, - ..._112, - ..._113 - }; - tendermint.version = { - ..._114 - }; -})(tendermint || (exports.tendermint = tendermint = {})); diff --git a/packages/api/dist/tendermint/crypto/keys.d.ts b/packages/api/dist/tendermint/crypto/keys.d.ts deleted file mode 100644 index 205e9ff8..00000000 --- a/packages/api/dist/tendermint/crypto/keys.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKey { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export interface PublicKeyProtoMsg { - typeUrl: "/tendermint.crypto.PublicKey"; - value: Uint8Array; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeyAmino { - ed25519?: string; - secp256k1?: string; -} -export interface PublicKeyAminoMsg { - type: "/tendermint.crypto.PublicKey"; - value: PublicKeyAmino; -} -/** PublicKey defines the keys available for use with Validators */ -export interface PublicKeySDKType { - ed25519?: Uint8Array; - secp256k1?: Uint8Array; -} -export declare const PublicKey: { - typeUrl: string; - encode(message: PublicKey, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PublicKey; - fromPartial(object: Partial): PublicKey; - fromAmino(object: PublicKeyAmino): PublicKey; - toAmino(message: PublicKey): PublicKeyAmino; - fromAminoMsg(object: PublicKeyAminoMsg): PublicKey; - fromProtoMsg(message: PublicKeyProtoMsg): PublicKey; - toProto(message: PublicKey): Uint8Array; - toProtoMsg(message: PublicKey): PublicKeyProtoMsg; -}; diff --git a/packages/api/dist/tendermint/crypto/keys.js b/packages/api/dist/tendermint/crypto/keys.js deleted file mode 100644 index ba451054..00000000 --- a/packages/api/dist/tendermint/crypto/keys.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PublicKey = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBasePublicKey() { - return { - ed25519: undefined, - secp256k1: undefined - }; -} -exports.PublicKey = { - typeUrl: "/tendermint.crypto.PublicKey", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.ed25519 !== undefined) { - writer.uint32(10).bytes(message.ed25519); - } - if (message.secp256k1 !== undefined) { - writer.uint32(18).bytes(message.secp256k1); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePublicKey(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ed25519 = reader.bytes(); - break; - case 2: - message.secp256k1 = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePublicKey(); - message.ed25519 = object.ed25519 ?? undefined; - message.secp256k1 = object.secp256k1 ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBasePublicKey(); - if (object.ed25519 !== undefined && object.ed25519 !== null) { - message.ed25519 = (0, helpers_1.bytesFromBase64)(object.ed25519); - } - if (object.secp256k1 !== undefined && object.secp256k1 !== null) { - message.secp256k1 = (0, helpers_1.bytesFromBase64)(object.secp256k1); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.ed25519 = message.ed25519 ? (0, helpers_1.base64FromBytes)(message.ed25519) : undefined; - obj.secp256k1 = message.secp256k1 ? (0, helpers_1.base64FromBytes)(message.secp256k1) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PublicKey.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.PublicKey.decode(message.value); - }, - toProto(message) { - return exports.PublicKey.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.PublicKey", - value: exports.PublicKey.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/crypto/proof.d.ts b/packages/api/dist/tendermint/crypto/proof.d.ts deleted file mode 100644 index 6e4c286a..00000000 --- a/packages/api/dist/tendermint/crypto/proof.d.ts +++ /dev/null @@ -1,192 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Proof { - total: bigint; - index: bigint; - leafHash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ProofProtoMsg { - typeUrl: "/tendermint.crypto.Proof"; - value: Uint8Array; -} -export interface ProofAmino { - total?: string; - index?: string; - leaf_hash?: string; - aunts?: string[]; -} -export interface ProofAminoMsg { - type: "/tendermint.crypto.Proof"; - value: ProofAmino; -} -export interface ProofSDKType { - total: bigint; - index: bigint; - leaf_hash: Uint8Array; - aunts: Uint8Array[]; -} -export interface ValueOp { - /** Encoded in ProofOp.Key. */ - key: Uint8Array; - /** To encode in ProofOp.Data */ - proof?: Proof; -} -export interface ValueOpProtoMsg { - typeUrl: "/tendermint.crypto.ValueOp"; - value: Uint8Array; -} -export interface ValueOpAmino { - /** Encoded in ProofOp.Key. */ - key?: string; - /** To encode in ProofOp.Data */ - proof?: ProofAmino; -} -export interface ValueOpAminoMsg { - type: "/tendermint.crypto.ValueOp"; - value: ValueOpAmino; -} -export interface ValueOpSDKType { - key: Uint8Array; - proof?: ProofSDKType; -} -export interface DominoOp { - key: string; - input: string; - output: string; -} -export interface DominoOpProtoMsg { - typeUrl: "/tendermint.crypto.DominoOp"; - value: Uint8Array; -} -export interface DominoOpAmino { - key?: string; - input?: string; - output?: string; -} -export interface DominoOpAminoMsg { - type: "/tendermint.crypto.DominoOp"; - value: DominoOpAmino; -} -export interface DominoOpSDKType { - key: string; - input: string; - output: string; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOp { - type: string; - key: Uint8Array; - data: Uint8Array; -} -export interface ProofOpProtoMsg { - typeUrl: "/tendermint.crypto.ProofOp"; - value: Uint8Array; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpAmino { - type?: string; - key?: string; - data?: string; -} -export interface ProofOpAminoMsg { - type: "/tendermint.crypto.ProofOp"; - value: ProofOpAmino; -} -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - */ -export interface ProofOpSDKType { - type: string; - key: Uint8Array; - data: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOps { - ops: ProofOp[]; -} -export interface ProofOpsProtoMsg { - typeUrl: "/tendermint.crypto.ProofOps"; - value: Uint8Array; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsAmino { - ops?: ProofOpAmino[]; -} -export interface ProofOpsAminoMsg { - type: "/tendermint.crypto.ProofOps"; - value: ProofOpsAmino; -} -/** ProofOps is Merkle proof defined by the list of ProofOps */ -export interface ProofOpsSDKType { - ops: ProofOpSDKType[]; -} -export declare const Proof: { - typeUrl: string; - encode(message: Proof, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proof; - fromPartial(object: Partial): Proof; - fromAmino(object: ProofAmino): Proof; - toAmino(message: Proof): ProofAmino; - fromAminoMsg(object: ProofAminoMsg): Proof; - fromProtoMsg(message: ProofProtoMsg): Proof; - toProto(message: Proof): Uint8Array; - toProtoMsg(message: Proof): ProofProtoMsg; -}; -export declare const ValueOp: { - typeUrl: string; - encode(message: ValueOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValueOp; - fromPartial(object: Partial): ValueOp; - fromAmino(object: ValueOpAmino): ValueOp; - toAmino(message: ValueOp): ValueOpAmino; - fromAminoMsg(object: ValueOpAminoMsg): ValueOp; - fromProtoMsg(message: ValueOpProtoMsg): ValueOp; - toProto(message: ValueOp): Uint8Array; - toProtoMsg(message: ValueOp): ValueOpProtoMsg; -}; -export declare const DominoOp: { - typeUrl: string; - encode(message: DominoOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DominoOp; - fromPartial(object: Partial): DominoOp; - fromAmino(object: DominoOpAmino): DominoOp; - toAmino(message: DominoOp): DominoOpAmino; - fromAminoMsg(object: DominoOpAminoMsg): DominoOp; - fromProtoMsg(message: DominoOpProtoMsg): DominoOp; - toProto(message: DominoOp): Uint8Array; - toProtoMsg(message: DominoOp): DominoOpProtoMsg; -}; -export declare const ProofOp: { - typeUrl: string; - encode(message: ProofOp, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOp; - fromPartial(object: Partial): ProofOp; - fromAmino(object: ProofOpAmino): ProofOp; - toAmino(message: ProofOp): ProofOpAmino; - fromAminoMsg(object: ProofOpAminoMsg): ProofOp; - fromProtoMsg(message: ProofOpProtoMsg): ProofOp; - toProto(message: ProofOp): Uint8Array; - toProtoMsg(message: ProofOp): ProofOpProtoMsg; -}; -export declare const ProofOps: { - typeUrl: string; - encode(message: ProofOps, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProofOps; - fromPartial(object: Partial): ProofOps; - fromAmino(object: ProofOpsAmino): ProofOps; - toAmino(message: ProofOps): ProofOpsAmino; - fromAminoMsg(object: ProofOpsAminoMsg): ProofOps; - fromProtoMsg(message: ProofOpsProtoMsg): ProofOps; - toProto(message: ProofOps): Uint8Array; - toProtoMsg(message: ProofOps): ProofOpsProtoMsg; -}; diff --git a/packages/api/dist/tendermint/crypto/proof.js b/packages/api/dist/tendermint/crypto/proof.js deleted file mode 100644 index 696c41ad..00000000 --- a/packages/api/dist/tendermint/crypto/proof.js +++ /dev/null @@ -1,423 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProofOps = exports.ProofOp = exports.DominoOp = exports.ValueOp = exports.Proof = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBaseProof() { - return { - total: BigInt(0), - index: BigInt(0), - leafHash: new Uint8Array(), - aunts: [] - }; -} -exports.Proof = { - typeUrl: "/tendermint.crypto.Proof", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.total !== BigInt(0)) { - writer.uint32(8).int64(message.total); - } - if (message.index !== BigInt(0)) { - writer.uint32(16).int64(message.index); - } - if (message.leafHash.length !== 0) { - writer.uint32(26).bytes(message.leafHash); - } - for (const v of message.aunts) { - writer.uint32(34).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.int64(); - break; - case 2: - message.index = reader.int64(); - break; - case 3: - message.leafHash = reader.bytes(); - break; - case 4: - message.aunts.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProof(); - message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0); - message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0); - message.leafHash = object.leafHash ?? new Uint8Array(); - message.aunts = object.aunts?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProof(); - if (object.total !== undefined && object.total !== null) { - message.total = BigInt(object.total); - } - if (object.index !== undefined && object.index !== null) { - message.index = BigInt(object.index); - } - if (object.leaf_hash !== undefined && object.leaf_hash !== null) { - message.leafHash = (0, helpers_1.bytesFromBase64)(object.leaf_hash); - } - message.aunts = object.aunts?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; - obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; - obj.leaf_hash = message.leafHash ? (0, helpers_1.base64FromBytes)(message.leafHash) : undefined; - if (message.aunts) { - obj.aunts = message.aunts.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.aunts = message.aunts; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Proof.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Proof.decode(message.value); - }, - toProto(message) { - return exports.Proof.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.Proof", - value: exports.Proof.encode(message).finish() - }; - } -}; -function createBaseValueOp() { - return { - key: new Uint8Array(), - proof: undefined - }; -} -exports.ValueOp = { - typeUrl: "/tendermint.crypto.ValueOp", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.proof !== undefined) { - exports.Proof.encode(message.proof, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValueOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.proof = exports.Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValueOp(); - message.key = object.key ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? exports.Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseValueOp(); - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = exports.Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - obj.proof = message.proof ? exports.Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValueOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ValueOp.decode(message.value); - }, - toProto(message) { - return exports.ValueOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ValueOp", - value: exports.ValueOp.encode(message).finish() - }; - } -}; -function createBaseDominoOp() { - return { - key: "", - input: "", - output: "" - }; -} -exports.DominoOp = { - typeUrl: "/tendermint.crypto.DominoOp", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.input !== "") { - writer.uint32(18).string(message.input); - } - if (message.output !== "") { - writer.uint32(26).string(message.output); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDominoOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.input = reader.string(); - break; - case 3: - message.output = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDominoOp(); - message.key = object.key ?? ""; - message.input = object.input ?? ""; - message.output = object.output ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDominoOp(); - if (object.key !== undefined && object.key !== null) { - message.key = object.key; - } - if (object.input !== undefined && object.input !== null) { - message.input = object.input; - } - if (object.output !== undefined && object.output !== null) { - message.output = object.output; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.key = message.key === "" ? undefined : message.key; - obj.input = message.input === "" ? undefined : message.input; - obj.output = message.output === "" ? undefined : message.output; - return obj; - }, - fromAminoMsg(object) { - return exports.DominoOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DominoOp.decode(message.value); - }, - toProto(message) { - return exports.DominoOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.DominoOp", - value: exports.DominoOp.encode(message).finish() - }; - } -}; -function createBaseProofOp() { - return { - type: "", - key: new Uint8Array(), - data: new Uint8Array() - }; -} -exports.ProofOp = { - typeUrl: "/tendermint.crypto.ProofOp", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== "") { - writer.uint32(10).string(message.type); - } - if (message.key.length !== 0) { - writer.uint32(18).bytes(message.key); - } - if (message.data.length !== 0) { - writer.uint32(26).bytes(message.data); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; - case 3: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProofOp(); - message.type = object.type ?? ""; - message.key = object.key ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseProofOp(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.key !== undefined && object.key !== null) { - message.key = (0, helpers_1.bytesFromBase64)(object.key); - } - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === "" ? undefined : message.type; - obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ProofOp.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ProofOp.decode(message.value); - }, - toProto(message) { - return exports.ProofOp.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ProofOp", - value: exports.ProofOp.encode(message).finish() - }; - } -}; -function createBaseProofOps() { - return { - ops: [] - }; -} -exports.ProofOps = { - typeUrl: "/tendermint.crypto.ProofOps", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.ops) { - exports.ProofOp.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProofOps(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ops.push(exports.ProofOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => exports.ProofOp.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseProofOps(); - message.ops = object.ops?.map(e => exports.ProofOp.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.ops) { - obj.ops = message.ops.map(e => e ? exports.ProofOp.toAmino(e) : undefined); - } - else { - obj.ops = message.ops; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ProofOps.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ProofOps.decode(message.value); - }, - toProto(message) { - return exports.ProofOps.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.crypto.ProofOps", - value: exports.ProofOps.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/libs/bits/types.d.ts b/packages/api/dist/tendermint/libs/bits/types.d.ts deleted file mode 100644 index f653a3c5..00000000 --- a/packages/api/dist/tendermint/libs/bits/types.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../../binary"; -export interface BitArray { - bits: bigint; - elems: bigint[]; -} -export interface BitArrayProtoMsg { - typeUrl: "/tendermint.libs.bits.BitArray"; - value: Uint8Array; -} -export interface BitArrayAmino { - bits?: string; - elems?: string[]; -} -export interface BitArrayAminoMsg { - type: "/tendermint.libs.bits.BitArray"; - value: BitArrayAmino; -} -export interface BitArraySDKType { - bits: bigint; - elems: bigint[]; -} -export declare const BitArray: { - typeUrl: string; - encode(message: BitArray, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BitArray; - fromPartial(object: Partial): BitArray; - fromAmino(object: BitArrayAmino): BitArray; - toAmino(message: BitArray): BitArrayAmino; - fromAminoMsg(object: BitArrayAminoMsg): BitArray; - fromProtoMsg(message: BitArrayProtoMsg): BitArray; - toProto(message: BitArray): Uint8Array; - toProtoMsg(message: BitArray): BitArrayProtoMsg; -}; diff --git a/packages/api/dist/tendermint/libs/bits/types.js b/packages/api/dist/tendermint/libs/bits/types.js deleted file mode 100644 index d88654d3..00000000 --- a/packages/api/dist/tendermint/libs/bits/types.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BitArray = void 0; -//@ts-nocheck -const binary_1 = require("../../../binary"); -function createBaseBitArray() { - return { - bits: BigInt(0), - elems: [] - }; -} -exports.BitArray = { - typeUrl: "/tendermint.libs.bits.BitArray", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.bits !== BigInt(0)) { - writer.uint32(8).int64(message.bits); - } - writer.uint32(18).fork(); - for (const v of message.elems) { - writer.uint64(v); - } - writer.ldelim(); - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBitArray(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bits = reader.int64(); - break; - case 2: - if ((tag & 7) === 2) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.elems.push(reader.uint64()); - } - } - else { - message.elems.push(reader.uint64()); - } - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBitArray(); - message.bits = object.bits !== undefined && object.bits !== null ? BigInt(object.bits.toString()) : BigInt(0); - message.elems = object.elems?.map(e => BigInt(e.toString())) || []; - return message; - }, - fromAmino(object) { - const message = createBaseBitArray(); - if (object.bits !== undefined && object.bits !== null) { - message.bits = BigInt(object.bits); - } - message.elems = object.elems?.map(e => BigInt(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; - if (message.elems) { - obj.elems = message.elems.map(e => e.toString()); - } - else { - obj.elems = message.elems; - } - return obj; - }, - fromAminoMsg(object) { - return exports.BitArray.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BitArray.decode(message.value); - }, - toProto(message) { - return exports.BitArray.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.libs.bits.BitArray", - value: exports.BitArray.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/p2p/types.d.ts b/packages/api/dist/tendermint/p2p/types.d.ts deleted file mode 100644 index 67765367..00000000 --- a/packages/api/dist/tendermint/p2p/types.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface NetAddress { - id: string; - ip: string; - port: number; -} -export interface NetAddressProtoMsg { - typeUrl: "/tendermint.p2p.NetAddress"; - value: Uint8Array; -} -export interface NetAddressAmino { - id?: string; - ip?: string; - port?: number; -} -export interface NetAddressAminoMsg { - type: "/tendermint.p2p.NetAddress"; - value: NetAddressAmino; -} -export interface NetAddressSDKType { - id: string; - ip: string; - port: number; -} -export interface ProtocolVersion { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface ProtocolVersionProtoMsg { - typeUrl: "/tendermint.p2p.ProtocolVersion"; - value: Uint8Array; -} -export interface ProtocolVersionAmino { - p2p?: string; - block?: string; - app?: string; -} -export interface ProtocolVersionAminoMsg { - type: "/tendermint.p2p.ProtocolVersion"; - value: ProtocolVersionAmino; -} -export interface ProtocolVersionSDKType { - p2p: bigint; - block: bigint; - app: bigint; -} -export interface DefaultNodeInfo { - protocolVersion: ProtocolVersion; - defaultNodeId: string; - listenAddr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOther; -} -export interface DefaultNodeInfoProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfo"; - value: Uint8Array; -} -export interface DefaultNodeInfoAmino { - protocol_version?: ProtocolVersionAmino; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - channels?: string; - moniker?: string; - other?: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfo"; - value: DefaultNodeInfoAmino; -} -export interface DefaultNodeInfoSDKType { - protocol_version: ProtocolVersionSDKType; - default_node_id: string; - listen_addr: string; - network: string; - version: string; - channels: Uint8Array; - moniker: string; - other: DefaultNodeInfoOtherSDKType; -} -export interface DefaultNodeInfoOther { - txIndex: string; - rpcAddress: string; -} -export interface DefaultNodeInfoOtherProtoMsg { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther"; - value: Uint8Array; -} -export interface DefaultNodeInfoOtherAmino { - tx_index?: string; - rpc_address?: string; -} -export interface DefaultNodeInfoOtherAminoMsg { - type: "/tendermint.p2p.DefaultNodeInfoOther"; - value: DefaultNodeInfoOtherAmino; -} -export interface DefaultNodeInfoOtherSDKType { - tx_index: string; - rpc_address: string; -} -export declare const NetAddress: { - typeUrl: string; - encode(message: NetAddress, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): NetAddress; - fromPartial(object: Partial): NetAddress; - fromAmino(object: NetAddressAmino): NetAddress; - toAmino(message: NetAddress): NetAddressAmino; - fromAminoMsg(object: NetAddressAminoMsg): NetAddress; - fromProtoMsg(message: NetAddressProtoMsg): NetAddress; - toProto(message: NetAddress): Uint8Array; - toProtoMsg(message: NetAddress): NetAddressProtoMsg; -}; -export declare const ProtocolVersion: { - typeUrl: string; - encode(message: ProtocolVersion, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion; - fromPartial(object: Partial): ProtocolVersion; - fromAmino(object: ProtocolVersionAmino): ProtocolVersion; - toAmino(message: ProtocolVersion): ProtocolVersionAmino; - fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion; - fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion; - toProto(message: ProtocolVersion): Uint8Array; - toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg; -}; -export declare const DefaultNodeInfo: { - typeUrl: string; - encode(message: DefaultNodeInfo, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfo; - fromPartial(object: Partial): DefaultNodeInfo; - fromAmino(object: DefaultNodeInfoAmino): DefaultNodeInfo; - toAmino(message: DefaultNodeInfo): DefaultNodeInfoAmino; - fromAminoMsg(object: DefaultNodeInfoAminoMsg): DefaultNodeInfo; - fromProtoMsg(message: DefaultNodeInfoProtoMsg): DefaultNodeInfo; - toProto(message: DefaultNodeInfo): Uint8Array; - toProtoMsg(message: DefaultNodeInfo): DefaultNodeInfoProtoMsg; -}; -export declare const DefaultNodeInfoOther: { - typeUrl: string; - encode(message: DefaultNodeInfoOther, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DefaultNodeInfoOther; - fromPartial(object: Partial): DefaultNodeInfoOther; - fromAmino(object: DefaultNodeInfoOtherAmino): DefaultNodeInfoOther; - toAmino(message: DefaultNodeInfoOther): DefaultNodeInfoOtherAmino; - fromAminoMsg(object: DefaultNodeInfoOtherAminoMsg): DefaultNodeInfoOther; - fromProtoMsg(message: DefaultNodeInfoOtherProtoMsg): DefaultNodeInfoOther; - toProto(message: DefaultNodeInfoOther): Uint8Array; - toProtoMsg(message: DefaultNodeInfoOther): DefaultNodeInfoOtherProtoMsg; -}; diff --git a/packages/api/dist/tendermint/p2p/types.js b/packages/api/dist/tendermint/p2p/types.js deleted file mode 100644 index 0443f903..00000000 --- a/packages/api/dist/tendermint/p2p/types.js +++ /dev/null @@ -1,402 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefaultNodeInfoOther = exports.DefaultNodeInfo = exports.ProtocolVersion = exports.NetAddress = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBaseNetAddress() { - return { - id: "", - ip: "", - port: 0 - }; -} -exports.NetAddress = { - typeUrl: "/tendermint.p2p.NetAddress", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.ip !== "") { - writer.uint32(18).string(message.ip); - } - if (message.port !== 0) { - writer.uint32(24).uint32(message.port); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseNetAddress(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.ip = reader.string(); - break; - case 3: - message.port = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseNetAddress(); - message.id = object.id ?? ""; - message.ip = object.ip ?? ""; - message.port = object.port ?? 0; - return message; - }, - fromAmino(object) { - const message = createBaseNetAddress(); - if (object.id !== undefined && object.id !== null) { - message.id = object.id; - } - if (object.ip !== undefined && object.ip !== null) { - message.ip = object.ip; - } - if (object.port !== undefined && object.port !== null) { - message.port = object.port; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.id = message.id === "" ? undefined : message.id; - obj.ip = message.ip === "" ? undefined : message.ip; - obj.port = message.port === 0 ? undefined : message.port; - return obj; - }, - fromAminoMsg(object) { - return exports.NetAddress.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.NetAddress.decode(message.value); - }, - toProto(message) { - return exports.NetAddress.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.NetAddress", - value: exports.NetAddress.encode(message).finish() - }; - } -}; -function createBaseProtocolVersion() { - return { - p2p: BigInt(0), - block: BigInt(0), - app: BigInt(0) - }; -} -exports.ProtocolVersion = { - typeUrl: "/tendermint.p2p.ProtocolVersion", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.p2p !== BigInt(0)) { - writer.uint32(8).uint64(message.p2p); - } - if (message.block !== BigInt(0)) { - writer.uint32(16).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(24).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProtocolVersion(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.p2p = reader.uint64(); - break; - case 2: - message.block = reader.uint64(); - break; - case 3: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProtocolVersion(); - message.p2p = object.p2p !== undefined && object.p2p !== null ? BigInt(object.p2p.toString()) : BigInt(0); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseProtocolVersion(); - if (object.p2p !== undefined && object.p2p !== null) { - message.p2p = BigInt(object.p2p); - } - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ProtocolVersion.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ProtocolVersion.decode(message.value); - }, - toProto(message) { - return exports.ProtocolVersion.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.ProtocolVersion", - value: exports.ProtocolVersion.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfo() { - return { - protocolVersion: exports.ProtocolVersion.fromPartial({}), - defaultNodeId: "", - listenAddr: "", - network: "", - version: "", - channels: new Uint8Array(), - moniker: "", - other: exports.DefaultNodeInfoOther.fromPartial({}) - }; -} -exports.DefaultNodeInfo = { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.protocolVersion !== undefined) { - exports.ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim(); - } - if (message.defaultNodeId !== "") { - writer.uint32(18).string(message.defaultNodeId); - } - if (message.listenAddr !== "") { - writer.uint32(26).string(message.listenAddr); - } - if (message.network !== "") { - writer.uint32(34).string(message.network); - } - if (message.version !== "") { - writer.uint32(42).string(message.version); - } - if (message.channels.length !== 0) { - writer.uint32(50).bytes(message.channels); - } - if (message.moniker !== "") { - writer.uint32(58).string(message.moniker); - } - if (message.other !== undefined) { - exports.DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocolVersion = exports.ProtocolVersion.decode(reader, reader.uint32()); - break; - case 2: - message.defaultNodeId = reader.string(); - break; - case 3: - message.listenAddr = reader.string(); - break; - case 4: - message.network = reader.string(); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.channels = reader.bytes(); - break; - case 7: - message.moniker = reader.string(); - break; - case 8: - message.other = exports.DefaultNodeInfoOther.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDefaultNodeInfo(); - message.protocolVersion = object.protocolVersion !== undefined && object.protocolVersion !== null ? exports.ProtocolVersion.fromPartial(object.protocolVersion) : undefined; - message.defaultNodeId = object.defaultNodeId ?? ""; - message.listenAddr = object.listenAddr ?? ""; - message.network = object.network ?? ""; - message.version = object.version ?? ""; - message.channels = object.channels ?? new Uint8Array(); - message.moniker = object.moniker ?? ""; - message.other = object.other !== undefined && object.other !== null ? exports.DefaultNodeInfoOther.fromPartial(object.other) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDefaultNodeInfo(); - if (object.protocol_version !== undefined && object.protocol_version !== null) { - message.protocolVersion = exports.ProtocolVersion.fromAmino(object.protocol_version); - } - if (object.default_node_id !== undefined && object.default_node_id !== null) { - message.defaultNodeId = object.default_node_id; - } - if (object.listen_addr !== undefined && object.listen_addr !== null) { - message.listenAddr = object.listen_addr; - } - if (object.network !== undefined && object.network !== null) { - message.network = object.network; - } - if (object.version !== undefined && object.version !== null) { - message.version = object.version; - } - if (object.channels !== undefined && object.channels !== null) { - message.channels = (0, helpers_1.bytesFromBase64)(object.channels); - } - if (object.moniker !== undefined && object.moniker !== null) { - message.moniker = object.moniker; - } - if (object.other !== undefined && object.other !== null) { - message.other = exports.DefaultNodeInfoOther.fromAmino(object.other); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.protocol_version = message.protocolVersion ? exports.ProtocolVersion.toAmino(message.protocolVersion) : undefined; - obj.default_node_id = message.defaultNodeId === "" ? undefined : message.defaultNodeId; - obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; - obj.network = message.network === "" ? undefined : message.network; - obj.version = message.version === "" ? undefined : message.version; - obj.channels = message.channels ? (0, helpers_1.base64FromBytes)(message.channels) : undefined; - obj.moniker = message.moniker === "" ? undefined : message.moniker; - obj.other = message.other ? exports.DefaultNodeInfoOther.toAmino(message.other) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DefaultNodeInfo.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DefaultNodeInfo.decode(message.value); - }, - toProto(message) { - return exports.DefaultNodeInfo.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfo", - value: exports.DefaultNodeInfo.encode(message).finish() - }; - } -}; -function createBaseDefaultNodeInfoOther() { - return { - txIndex: "", - rpcAddress: "" - }; -} -exports.DefaultNodeInfoOther = { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.txIndex !== "") { - writer.uint32(10).string(message.txIndex); - } - if (message.rpcAddress !== "") { - writer.uint32(18).string(message.rpcAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDefaultNodeInfoOther(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txIndex = reader.string(); - break; - case 2: - message.rpcAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDefaultNodeInfoOther(); - message.txIndex = object.txIndex ?? ""; - message.rpcAddress = object.rpcAddress ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseDefaultNodeInfoOther(); - if (object.tx_index !== undefined && object.tx_index !== null) { - message.txIndex = object.tx_index; - } - if (object.rpc_address !== undefined && object.rpc_address !== null) { - message.rpcAddress = object.rpc_address; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; - obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; - return obj; - }, - fromAminoMsg(object) { - return exports.DefaultNodeInfoOther.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DefaultNodeInfoOther.decode(message.value); - }, - toProto(message) { - return exports.DefaultNodeInfoOther.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.p2p.DefaultNodeInfoOther", - value: exports.DefaultNodeInfoOther.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/types/block.d.ts b/packages/api/dist/tendermint/types/block.d.ts deleted file mode 100644 index 7c375f6e..00000000 --- a/packages/api/dist/tendermint/types/block.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Header, HeaderAmino, HeaderSDKType, Data, DataAmino, DataSDKType, Commit, CommitAmino, CommitSDKType } from "./types"; -import { EvidenceList, EvidenceListAmino, EvidenceListSDKType } from "./evidence"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Block { - header: Header; - data: Data; - evidence: EvidenceList; - lastCommit?: Commit; -} -export interface BlockProtoMsg { - typeUrl: "/tendermint.types.Block"; - value: Uint8Array; -} -export interface BlockAmino { - header?: HeaderAmino; - data?: DataAmino; - evidence?: EvidenceListAmino; - last_commit?: CommitAmino; -} -export interface BlockAminoMsg { - type: "/tendermint.types.Block"; - value: BlockAmino; -} -export interface BlockSDKType { - header: HeaderSDKType; - data: DataSDKType; - evidence: EvidenceListSDKType; - last_commit?: CommitSDKType; -} -export declare const Block: { - typeUrl: string; - encode(message: Block, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Block; - fromPartial(object: Partial): Block; - fromAmino(object: BlockAmino): Block; - toAmino(message: Block): BlockAmino; - fromAminoMsg(object: BlockAminoMsg): Block; - fromProtoMsg(message: BlockProtoMsg): Block; - toProto(message: Block): Uint8Array; - toProtoMsg(message: Block): BlockProtoMsg; -}; diff --git a/packages/api/dist/tendermint/types/block.js b/packages/api/dist/tendermint/types/block.js deleted file mode 100644 index e739aa80..00000000 --- a/packages/api/dist/tendermint/types/block.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Block = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const evidence_1 = require("./evidence"); -const binary_1 = require("../../binary"); -function createBaseBlock() { - return { - header: types_1.Header.fromPartial({}), - data: types_1.Data.fromPartial({}), - evidence: evidence_1.EvidenceList.fromPartial({}), - lastCommit: undefined - }; -} -exports.Block = { - typeUrl: "/tendermint.types.Block", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.header !== undefined) { - types_1.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.data !== undefined) { - types_1.Data.encode(message.data, writer.uint32(18).fork()).ldelim(); - } - if (message.evidence !== undefined) { - evidence_1.EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim(); - } - if (message.lastCommit !== undefined) { - types_1.Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = types_1.Header.decode(reader, reader.uint32()); - break; - case 2: - message.data = types_1.Data.decode(reader, reader.uint32()); - break; - case 3: - message.evidence = evidence_1.EvidenceList.decode(reader, reader.uint32()); - break; - case 4: - message.lastCommit = types_1.Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlock(); - message.header = object.header !== undefined && object.header !== null ? types_1.Header.fromPartial(object.header) : undefined; - message.data = object.data !== undefined && object.data !== null ? types_1.Data.fromPartial(object.data) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? evidence_1.EvidenceList.fromPartial(object.evidence) : undefined; - message.lastCommit = object.lastCommit !== undefined && object.lastCommit !== null ? types_1.Commit.fromPartial(object.lastCommit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBlock(); - if (object.header !== undefined && object.header !== null) { - message.header = types_1.Header.fromAmino(object.header); - } - if (object.data !== undefined && object.data !== null) { - message.data = types_1.Data.fromAmino(object.data); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = evidence_1.EvidenceList.fromAmino(object.evidence); - } - if (object.last_commit !== undefined && object.last_commit !== null) { - message.lastCommit = types_1.Commit.fromAmino(object.last_commit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? types_1.Header.toAmino(message.header) : undefined; - obj.data = message.data ? types_1.Data.toAmino(message.data) : undefined; - obj.evidence = message.evidence ? evidence_1.EvidenceList.toAmino(message.evidence) : undefined; - obj.last_commit = message.lastCommit ? types_1.Commit.toAmino(message.lastCommit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Block.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Block.decode(message.value); - }, - toProto(message) { - return exports.Block.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Block", - value: exports.Block.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/types/evidence.d.ts b/packages/api/dist/tendermint/types/evidence.d.ts deleted file mode 100644 index 184d21ca..00000000 --- a/packages/api/dist/tendermint/types/evidence.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { Vote, VoteAmino, VoteSDKType, LightBlock, LightBlockAmino, LightBlockSDKType } from "./types"; -import { Validator, ValidatorAmino, ValidatorSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface Evidence { - duplicateVoteEvidence?: DuplicateVoteEvidence; - lightClientAttackEvidence?: LightClientAttackEvidence; -} -export interface EvidenceProtoMsg { - typeUrl: "/tendermint.types.Evidence"; - value: Uint8Array; -} -export interface EvidenceAmino { - duplicate_vote_evidence?: DuplicateVoteEvidenceAmino; - light_client_attack_evidence?: LightClientAttackEvidenceAmino; -} -export interface EvidenceAminoMsg { - type: "/tendermint.types.Evidence"; - value: EvidenceAmino; -} -export interface EvidenceSDKType { - duplicate_vote_evidence?: DuplicateVoteEvidenceSDKType; - light_client_attack_evidence?: LightClientAttackEvidenceSDKType; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidence { - voteA?: Vote; - voteB?: Vote; - totalVotingPower: bigint; - validatorPower: bigint; - timestamp: Date; -} -export interface DuplicateVoteEvidenceProtoMsg { - typeUrl: "/tendermint.types.DuplicateVoteEvidence"; - value: Uint8Array; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceAmino { - vote_a?: VoteAmino; - vote_b?: VoteAmino; - total_voting_power?: string; - validator_power?: string; - timestamp?: string; -} -export interface DuplicateVoteEvidenceAminoMsg { - type: "/tendermint.types.DuplicateVoteEvidence"; - value: DuplicateVoteEvidenceAmino; -} -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface DuplicateVoteEvidenceSDKType { - vote_a?: VoteSDKType; - vote_b?: VoteSDKType; - total_voting_power: bigint; - validator_power: bigint; - timestamp: Date; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidence { - conflictingBlock?: LightBlock; - commonHeight: bigint; - byzantineValidators: Validator[]; - totalVotingPower: bigint; - timestamp: Date; -} -export interface LightClientAttackEvidenceProtoMsg { - typeUrl: "/tendermint.types.LightClientAttackEvidence"; - value: Uint8Array; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceAmino { - conflicting_block?: LightBlockAmino; - common_height?: string; - byzantine_validators?: ValidatorAmino[]; - total_voting_power?: string; - timestamp?: string; -} -export interface LightClientAttackEvidenceAminoMsg { - type: "/tendermint.types.LightClientAttackEvidence"; - value: LightClientAttackEvidenceAmino; -} -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface LightClientAttackEvidenceSDKType { - conflicting_block?: LightBlockSDKType; - common_height: bigint; - byzantine_validators: ValidatorSDKType[]; - total_voting_power: bigint; - timestamp: Date; -} -export interface EvidenceList { - evidence: Evidence[]; -} -export interface EvidenceListProtoMsg { - typeUrl: "/tendermint.types.EvidenceList"; - value: Uint8Array; -} -export interface EvidenceListAmino { - evidence?: EvidenceAmino[]; -} -export interface EvidenceListAminoMsg { - type: "/tendermint.types.EvidenceList"; - value: EvidenceListAmino; -} -export interface EvidenceListSDKType { - evidence: EvidenceSDKType[]; -} -export declare const Evidence: { - typeUrl: string; - encode(message: Evidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Evidence; - fromPartial(object: Partial): Evidence; - fromAmino(object: EvidenceAmino): Evidence; - toAmino(message: Evidence): EvidenceAmino; - fromAminoMsg(object: EvidenceAminoMsg): Evidence; - fromProtoMsg(message: EvidenceProtoMsg): Evidence; - toProto(message: Evidence): Uint8Array; - toProtoMsg(message: Evidence): EvidenceProtoMsg; -}; -export declare const DuplicateVoteEvidence: { - typeUrl: string; - encode(message: DuplicateVoteEvidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): DuplicateVoteEvidence; - fromPartial(object: Partial): DuplicateVoteEvidence; - fromAmino(object: DuplicateVoteEvidenceAmino): DuplicateVoteEvidence; - toAmino(message: DuplicateVoteEvidence): DuplicateVoteEvidenceAmino; - fromAminoMsg(object: DuplicateVoteEvidenceAminoMsg): DuplicateVoteEvidence; - fromProtoMsg(message: DuplicateVoteEvidenceProtoMsg): DuplicateVoteEvidence; - toProto(message: DuplicateVoteEvidence): Uint8Array; - toProtoMsg(message: DuplicateVoteEvidence): DuplicateVoteEvidenceProtoMsg; -}; -export declare const LightClientAttackEvidence: { - typeUrl: string; - encode(message: LightClientAttackEvidence, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LightClientAttackEvidence; - fromPartial(object: Partial): LightClientAttackEvidence; - fromAmino(object: LightClientAttackEvidenceAmino): LightClientAttackEvidence; - toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino; - fromAminoMsg(object: LightClientAttackEvidenceAminoMsg): LightClientAttackEvidence; - fromProtoMsg(message: LightClientAttackEvidenceProtoMsg): LightClientAttackEvidence; - toProto(message: LightClientAttackEvidence): Uint8Array; - toProtoMsg(message: LightClientAttackEvidence): LightClientAttackEvidenceProtoMsg; -}; -export declare const EvidenceList: { - typeUrl: string; - encode(message: EvidenceList, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceList; - fromPartial(object: Partial): EvidenceList; - fromAmino(object: EvidenceListAmino): EvidenceList; - toAmino(message: EvidenceList): EvidenceListAmino; - fromAminoMsg(object: EvidenceListAminoMsg): EvidenceList; - fromProtoMsg(message: EvidenceListProtoMsg): EvidenceList; - toProto(message: EvidenceList): Uint8Array; - toProtoMsg(message: EvidenceList): EvidenceListProtoMsg; -}; diff --git a/packages/api/dist/tendermint/types/evidence.js b/packages/api/dist/tendermint/types/evidence.js deleted file mode 100644 index 6f9e2b65..00000000 --- a/packages/api/dist/tendermint/types/evidence.js +++ /dev/null @@ -1,375 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EvidenceList = exports.LightClientAttackEvidence = exports.DuplicateVoteEvidence = exports.Evidence = void 0; -//@ts-nocheck -const types_1 = require("./types"); -const timestamp_1 = require("../../google/protobuf/timestamp"); -const validator_1 = require("./validator"); -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBaseEvidence() { - return { - duplicateVoteEvidence: undefined, - lightClientAttackEvidence: undefined - }; -} -exports.Evidence = { - typeUrl: "/tendermint.types.Evidence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.duplicateVoteEvidence !== undefined) { - exports.DuplicateVoteEvidence.encode(message.duplicateVoteEvidence, writer.uint32(10).fork()).ldelim(); - } - if (message.lightClientAttackEvidence !== undefined) { - exports.LightClientAttackEvidence.encode(message.lightClientAttackEvidence, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.duplicateVoteEvidence = exports.DuplicateVoteEvidence.decode(reader, reader.uint32()); - break; - case 2: - message.lightClientAttackEvidence = exports.LightClientAttackEvidence.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidence(); - message.duplicateVoteEvidence = object.duplicateVoteEvidence !== undefined && object.duplicateVoteEvidence !== null ? exports.DuplicateVoteEvidence.fromPartial(object.duplicateVoteEvidence) : undefined; - message.lightClientAttackEvidence = object.lightClientAttackEvidence !== undefined && object.lightClientAttackEvidence !== null ? exports.LightClientAttackEvidence.fromPartial(object.lightClientAttackEvidence) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseEvidence(); - if (object.duplicate_vote_evidence !== undefined && object.duplicate_vote_evidence !== null) { - message.duplicateVoteEvidence = exports.DuplicateVoteEvidence.fromAmino(object.duplicate_vote_evidence); - } - if (object.light_client_attack_evidence !== undefined && object.light_client_attack_evidence !== null) { - message.lightClientAttackEvidence = exports.LightClientAttackEvidence.fromAmino(object.light_client_attack_evidence); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.duplicate_vote_evidence = message.duplicateVoteEvidence ? exports.DuplicateVoteEvidence.toAmino(message.duplicateVoteEvidence) : undefined; - obj.light_client_attack_evidence = message.lightClientAttackEvidence ? exports.LightClientAttackEvidence.toAmino(message.lightClientAttackEvidence) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Evidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Evidence.decode(message.value); - }, - toProto(message) { - return exports.Evidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Evidence", - value: exports.Evidence.encode(message).finish() - }; - } -}; -function createBaseDuplicateVoteEvidence() { - return { - voteA: undefined, - voteB: undefined, - totalVotingPower: BigInt(0), - validatorPower: BigInt(0), - timestamp: new Date() - }; -} -exports.DuplicateVoteEvidence = { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.voteA !== undefined) { - types_1.Vote.encode(message.voteA, writer.uint32(10).fork()).ldelim(); - } - if (message.voteB !== undefined) { - types_1.Vote.encode(message.voteB, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - if (message.validatorPower !== BigInt(0)) { - writer.uint32(32).int64(message.validatorPower); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDuplicateVoteEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voteA = types_1.Vote.decode(reader, reader.uint32()); - break; - case 2: - message.voteB = types_1.Vote.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - case 4: - message.validatorPower = reader.int64(); - break; - case 5: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseDuplicateVoteEvidence(); - message.voteA = object.voteA !== undefined && object.voteA !== null ? types_1.Vote.fromPartial(object.voteA) : undefined; - message.voteB = object.voteB !== undefined && object.voteB !== null ? types_1.Vote.fromPartial(object.voteB) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.validatorPower = object.validatorPower !== undefined && object.validatorPower !== null ? BigInt(object.validatorPower.toString()) : BigInt(0); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseDuplicateVoteEvidence(); - if (object.vote_a !== undefined && object.vote_a !== null) { - message.voteA = types_1.Vote.fromAmino(object.vote_a); - } - if (object.vote_b !== undefined && object.vote_b !== null) { - message.voteB = types_1.Vote.fromAmino(object.vote_b); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.validator_power !== undefined && object.validator_power !== null) { - message.validatorPower = BigInt(object.validator_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.vote_a = message.voteA ? types_1.Vote.toAmino(message.voteA) : undefined; - obj.vote_b = message.voteB ? types_1.Vote.toAmino(message.voteB) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.DuplicateVoteEvidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.DuplicateVoteEvidence.decode(message.value); - }, - toProto(message) { - return exports.DuplicateVoteEvidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.DuplicateVoteEvidence", - value: exports.DuplicateVoteEvidence.encode(message).finish() - }; - } -}; -function createBaseLightClientAttackEvidence() { - return { - conflictingBlock: undefined, - commonHeight: BigInt(0), - byzantineValidators: [], - totalVotingPower: BigInt(0), - timestamp: new Date() - }; -} -exports.LightClientAttackEvidence = { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.conflictingBlock !== undefined) { - types_1.LightBlock.encode(message.conflictingBlock, writer.uint32(10).fork()).ldelim(); - } - if (message.commonHeight !== BigInt(0)) { - writer.uint32(16).int64(message.commonHeight); - } - for (const v of message.byzantineValidators) { - validator_1.Validator.encode(v, writer.uint32(26).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(32).int64(message.totalVotingPower); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightClientAttackEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conflictingBlock = types_1.LightBlock.decode(reader, reader.uint32()); - break; - case 2: - message.commonHeight = reader.int64(); - break; - case 3: - message.byzantineValidators.push(validator_1.Validator.decode(reader, reader.uint32())); - break; - case 4: - message.totalVotingPower = reader.int64(); - break; - case 5: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLightClientAttackEvidence(); - message.conflictingBlock = object.conflictingBlock !== undefined && object.conflictingBlock !== null ? types_1.LightBlock.fromPartial(object.conflictingBlock) : undefined; - message.commonHeight = object.commonHeight !== undefined && object.commonHeight !== null ? BigInt(object.commonHeight.toString()) : BigInt(0); - message.byzantineValidators = object.byzantineValidators?.map(e => validator_1.Validator.fromPartial(e)) || []; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - message.timestamp = object.timestamp ?? undefined; - return message; - }, - fromAmino(object) { - const message = createBaseLightClientAttackEvidence(); - if (object.conflicting_block !== undefined && object.conflicting_block !== null) { - message.conflictingBlock = types_1.LightBlock.fromAmino(object.conflicting_block); - } - if (object.common_height !== undefined && object.common_height !== null) { - message.commonHeight = BigInt(object.common_height); - } - message.byzantineValidators = object.byzantine_validators?.map(e => validator_1.Validator.fromAmino(e)) || []; - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.conflicting_block = message.conflictingBlock ? types_1.LightBlock.toAmino(message.conflictingBlock) : undefined; - obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; - if (message.byzantineValidators) { - obj.byzantine_validators = message.byzantineValidators.map(e => e ? validator_1.Validator.toAmino(e) : undefined); - } - else { - obj.byzantine_validators = message.byzantineValidators; - } - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.LightClientAttackEvidence.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.LightClientAttackEvidence.decode(message.value); - }, - toProto(message) { - return exports.LightClientAttackEvidence.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.LightClientAttackEvidence", - value: exports.LightClientAttackEvidence.encode(message).finish() - }; - } -}; -function createBaseEvidenceList() { - return { - evidence: [] - }; -} -exports.EvidenceList = { - typeUrl: "/tendermint.types.EvidenceList", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.evidence) { - exports.Evidence.encode(v, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceList(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(exports.Evidence.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => exports.Evidence.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseEvidenceList(); - message.evidence = object.evidence?.map(e => exports.Evidence.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.evidence) { - obj.evidence = message.evidence.map(e => e ? exports.Evidence.toAmino(e) : undefined); - } - else { - obj.evidence = message.evidence; - } - return obj; - }, - fromAminoMsg(object) { - return exports.EvidenceList.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EvidenceList.decode(message.value); - }, - toProto(message) { - return exports.EvidenceList.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.EvidenceList", - value: exports.EvidenceList.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/types/params.d.ts b/packages/api/dist/tendermint/types/params.d.ts deleted file mode 100644 index 83ece52d..00000000 --- a/packages/api/dist/tendermint/types/params.d.ts +++ /dev/null @@ -1,297 +0,0 @@ -import { Duration, DurationAmino, DurationSDKType } from "../../google/protobuf/duration"; -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParams { - block?: BlockParams; - evidence?: EvidenceParams; - validator?: ValidatorParams; - version?: VersionParams; -} -export interface ConsensusParamsProtoMsg { - typeUrl: "/tendermint.types.ConsensusParams"; - value: Uint8Array; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsAmino { - block?: BlockParamsAmino; - evidence?: EvidenceParamsAmino; - validator?: ValidatorParamsAmino; - version?: VersionParamsAmino; -} -export interface ConsensusParamsAminoMsg { - type: "/tendermint.types.ConsensusParams"; - value: ConsensusParamsAmino; -} -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - */ -export interface ConsensusParamsSDKType { - block?: BlockParamsSDKType; - evidence?: EvidenceParamsSDKType; - validator?: ValidatorParamsSDKType; - version?: VersionParamsSDKType; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParams { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - maxBytes: bigint; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - maxGas: bigint; -} -export interface BlockParamsProtoMsg { - typeUrl: "/tendermint.types.BlockParams"; - value: Uint8Array; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsAmino { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - */ - max_bytes?: string; - /** - * Max gas per block. - * Note: must be greater or equal to -1 - */ - max_gas?: string; -} -export interface BlockParamsAminoMsg { - type: "/tendermint.types.BlockParams"; - value: BlockParamsAmino; -} -/** BlockParams contains limits on the block size. */ -export interface BlockParamsSDKType { - max_bytes: bigint; - max_gas: bigint; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParams { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - maxAgeNumBlocks: bigint; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - maxAgeDuration: Duration; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - maxBytes: bigint; -} -export interface EvidenceParamsProtoMsg { - typeUrl: "/tendermint.types.EvidenceParams"; - value: Uint8Array; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsAmino { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - */ - max_age_num_blocks?: string; - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - */ - max_age_duration?: DurationAmino; - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - */ - max_bytes?: string; -} -export interface EvidenceParamsAminoMsg { - type: "/tendermint.types.EvidenceParams"; - value: EvidenceParamsAmino; -} -/** EvidenceParams determine how we handle evidence of malfeasance. */ -export interface EvidenceParamsSDKType { - max_age_num_blocks: bigint; - max_age_duration: DurationSDKType; - max_bytes: bigint; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParams { - pubKeyTypes: string[]; -} -export interface ValidatorParamsProtoMsg { - typeUrl: "/tendermint.types.ValidatorParams"; - value: Uint8Array; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsAmino { - pub_key_types?: string[]; -} -export interface ValidatorParamsAminoMsg { - type: "/tendermint.types.ValidatorParams"; - value: ValidatorParamsAmino; -} -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - */ -export interface ValidatorParamsSDKType { - pub_key_types: string[]; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParams { - app: bigint; -} -export interface VersionParamsProtoMsg { - typeUrl: "/tendermint.types.VersionParams"; - value: Uint8Array; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsAmino { - app?: string; -} -export interface VersionParamsAminoMsg { - type: "/tendermint.types.VersionParams"; - value: VersionParamsAmino; -} -/** VersionParams contains the ABCI application version. */ -export interface VersionParamsSDKType { - app: bigint; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParams { - blockMaxBytes: bigint; - blockMaxGas: bigint; -} -export interface HashedParamsProtoMsg { - typeUrl: "/tendermint.types.HashedParams"; - value: Uint8Array; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsAmino { - block_max_bytes?: string; - block_max_gas?: string; -} -export interface HashedParamsAminoMsg { - type: "/tendermint.types.HashedParams"; - value: HashedParamsAmino; -} -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - */ -export interface HashedParamsSDKType { - block_max_bytes: bigint; - block_max_gas: bigint; -} -export declare const ConsensusParams: { - typeUrl: string; - encode(message: ConsensusParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ConsensusParams; - fromPartial(object: Partial): ConsensusParams; - fromAmino(object: ConsensusParamsAmino): ConsensusParams; - toAmino(message: ConsensusParams): ConsensusParamsAmino; - fromAminoMsg(object: ConsensusParamsAminoMsg): ConsensusParams; - fromProtoMsg(message: ConsensusParamsProtoMsg): ConsensusParams; - toProto(message: ConsensusParams): Uint8Array; - toProtoMsg(message: ConsensusParams): ConsensusParamsProtoMsg; -}; -export declare const BlockParams: { - typeUrl: string; - encode(message: BlockParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockParams; - fromPartial(object: Partial): BlockParams; - fromAmino(object: BlockParamsAmino): BlockParams; - toAmino(message: BlockParams): BlockParamsAmino; - fromAminoMsg(object: BlockParamsAminoMsg): BlockParams; - fromProtoMsg(message: BlockParamsProtoMsg): BlockParams; - toProto(message: BlockParams): Uint8Array; - toProtoMsg(message: BlockParams): BlockParamsProtoMsg; -}; -export declare const EvidenceParams: { - typeUrl: string; - encode(message: EvidenceParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): EvidenceParams; - fromPartial(object: Partial): EvidenceParams; - fromAmino(object: EvidenceParamsAmino): EvidenceParams; - toAmino(message: EvidenceParams): EvidenceParamsAmino; - fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams; - fromProtoMsg(message: EvidenceParamsProtoMsg): EvidenceParams; - toProto(message: EvidenceParams): Uint8Array; - toProtoMsg(message: EvidenceParams): EvidenceParamsProtoMsg; -}; -export declare const ValidatorParams: { - typeUrl: string; - encode(message: ValidatorParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorParams; - fromPartial(object: Partial): ValidatorParams; - fromAmino(object: ValidatorParamsAmino): ValidatorParams; - toAmino(message: ValidatorParams): ValidatorParamsAmino; - fromAminoMsg(object: ValidatorParamsAminoMsg): ValidatorParams; - fromProtoMsg(message: ValidatorParamsProtoMsg): ValidatorParams; - toProto(message: ValidatorParams): Uint8Array; - toProtoMsg(message: ValidatorParams): ValidatorParamsProtoMsg; -}; -export declare const VersionParams: { - typeUrl: string; - encode(message: VersionParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): VersionParams; - fromPartial(object: Partial): VersionParams; - fromAmino(object: VersionParamsAmino): VersionParams; - toAmino(message: VersionParams): VersionParamsAmino; - fromAminoMsg(object: VersionParamsAminoMsg): VersionParams; - fromProtoMsg(message: VersionParamsProtoMsg): VersionParams; - toProto(message: VersionParams): Uint8Array; - toProtoMsg(message: VersionParams): VersionParamsProtoMsg; -}; -export declare const HashedParams: { - typeUrl: string; - encode(message: HashedParams, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): HashedParams; - fromPartial(object: Partial): HashedParams; - fromAmino(object: HashedParamsAmino): HashedParams; - toAmino(message: HashedParams): HashedParamsAmino; - fromAminoMsg(object: HashedParamsAminoMsg): HashedParams; - fromProtoMsg(message: HashedParamsProtoMsg): HashedParams; - toProto(message: HashedParams): Uint8Array; - toProtoMsg(message: HashedParams): HashedParamsProtoMsg; -}; diff --git a/packages/api/dist/tendermint/types/params.js b/packages/api/dist/tendermint/types/params.js deleted file mode 100644 index 1f8d02f2..00000000 --- a/packages/api/dist/tendermint/types/params.js +++ /dev/null @@ -1,471 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HashedParams = exports.VersionParams = exports.ValidatorParams = exports.EvidenceParams = exports.BlockParams = exports.ConsensusParams = void 0; -//@ts-nocheck -const duration_1 = require("../../google/protobuf/duration"); -const binary_1 = require("../../binary"); -function createBaseConsensusParams() { - return { - block: undefined, - evidence: undefined, - validator: undefined, - version: undefined - }; -} -exports.ConsensusParams = { - typeUrl: "/tendermint.types.ConsensusParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.block !== undefined) { - exports.BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim(); - } - if (message.evidence !== undefined) { - exports.EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim(); - } - if (message.validator !== undefined) { - exports.ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim(); - } - if (message.version !== undefined) { - exports.VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensusParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = exports.BlockParams.decode(reader, reader.uint32()); - break; - case 2: - message.evidence = exports.EvidenceParams.decode(reader, reader.uint32()); - break; - case 3: - message.validator = exports.ValidatorParams.decode(reader, reader.uint32()); - break; - case 4: - message.version = exports.VersionParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensusParams(); - message.block = object.block !== undefined && object.block !== null ? exports.BlockParams.fromPartial(object.block) : undefined; - message.evidence = object.evidence !== undefined && object.evidence !== null ? exports.EvidenceParams.fromPartial(object.evidence) : undefined; - message.validator = object.validator !== undefined && object.validator !== null ? exports.ValidatorParams.fromPartial(object.validator) : undefined; - message.version = object.version !== undefined && object.version !== null ? exports.VersionParams.fromPartial(object.version) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseConsensusParams(); - if (object.block !== undefined && object.block !== null) { - message.block = exports.BlockParams.fromAmino(object.block); - } - if (object.evidence !== undefined && object.evidence !== null) { - message.evidence = exports.EvidenceParams.fromAmino(object.evidence); - } - if (object.validator !== undefined && object.validator !== null) { - message.validator = exports.ValidatorParams.fromAmino(object.validator); - } - if (object.version !== undefined && object.version !== null) { - message.version = exports.VersionParams.fromAmino(object.version); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block = message.block ? exports.BlockParams.toAmino(message.block) : undefined; - obj.evidence = message.evidence ? exports.EvidenceParams.toAmino(message.evidence) : undefined; - obj.validator = message.validator ? exports.ValidatorParams.toAmino(message.validator) : undefined; - obj.version = message.version ? exports.VersionParams.toAmino(message.version) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ConsensusParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ConsensusParams.decode(message.value); - }, - toProto(message) { - return exports.ConsensusParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ConsensusParams", - value: exports.ConsensusParams.encode(message).finish() - }; - } -}; -function createBaseBlockParams() { - return { - maxBytes: BigInt(0), - maxGas: BigInt(0) - }; -} -exports.BlockParams = { - typeUrl: "/tendermint.types.BlockParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.maxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.maxBytes); - } - if (message.maxGas !== BigInt(0)) { - writer.uint32(16).int64(message.maxGas); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxBytes = reader.int64(); - break; - case 2: - message.maxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockParams(); - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? BigInt(object.maxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBlockParams(); - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - if (object.max_gas !== undefined && object.max_gas !== null) { - message.maxGas = BigInt(object.max_gas); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BlockParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BlockParams.decode(message.value); - }, - toProto(message) { - return exports.BlockParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockParams", - value: exports.BlockParams.encode(message).finish() - }; - } -}; -function createBaseEvidenceParams() { - return { - maxAgeNumBlocks: BigInt(0), - maxAgeDuration: duration_1.Duration.fromPartial({}), - maxBytes: BigInt(0) - }; -} -exports.EvidenceParams = { - typeUrl: "/tendermint.types.EvidenceParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.maxAgeNumBlocks !== BigInt(0)) { - writer.uint32(8).int64(message.maxAgeNumBlocks); - } - if (message.maxAgeDuration !== undefined) { - duration_1.Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim(); - } - if (message.maxBytes !== BigInt(0)) { - writer.uint32(24).int64(message.maxBytes); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEvidenceParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxAgeNumBlocks = reader.int64(); - break; - case 2: - message.maxAgeDuration = duration_1.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.maxBytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseEvidenceParams(); - message.maxAgeNumBlocks = object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null ? BigInt(object.maxAgeNumBlocks.toString()) : BigInt(0); - message.maxAgeDuration = object.maxAgeDuration !== undefined && object.maxAgeDuration !== null ? duration_1.Duration.fromPartial(object.maxAgeDuration) : undefined; - message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? BigInt(object.maxBytes.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseEvidenceParams(); - if (object.max_age_num_blocks !== undefined && object.max_age_num_blocks !== null) { - message.maxAgeNumBlocks = BigInt(object.max_age_num_blocks); - } - if (object.max_age_duration !== undefined && object.max_age_duration !== null) { - message.maxAgeDuration = duration_1.Duration.fromAmino(object.max_age_duration); - } - if (object.max_bytes !== undefined && object.max_bytes !== null) { - message.maxBytes = BigInt(object.max_bytes); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; - obj.max_age_duration = message.maxAgeDuration ? duration_1.Duration.toAmino(message.maxAgeDuration) : undefined; - obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.EvidenceParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.EvidenceParams.decode(message.value); - }, - toProto(message) { - return exports.EvidenceParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.EvidenceParams", - value: exports.EvidenceParams.encode(message).finish() - }; - } -}; -function createBaseValidatorParams() { - return { - pubKeyTypes: [] - }; -} -exports.ValidatorParams = { - typeUrl: "/tendermint.types.ValidatorParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.pubKeyTypes) { - writer.uint32(10).string(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKeyTypes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pubKeyTypes?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseValidatorParams(); - message.pubKeyTypes = object.pub_key_types?.map(e => e) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.pubKeyTypes) { - obj.pub_key_types = message.pubKeyTypes.map(e => e); - } - else { - obj.pub_key_types = message.pubKeyTypes; - } - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ValidatorParams.decode(message.value); - }, - toProto(message) { - return exports.ValidatorParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ValidatorParams", - value: exports.ValidatorParams.encode(message).finish() - }; - } -}; -function createBaseVersionParams() { - return { - app: BigInt(0) - }; -} -exports.VersionParams = { - typeUrl: "/tendermint.types.VersionParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.app !== BigInt(0)) { - writer.uint32(8).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVersionParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVersionParams(); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseVersionParams(); - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.VersionParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.VersionParams.decode(message.value); - }, - toProto(message) { - return exports.VersionParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.VersionParams", - value: exports.VersionParams.encode(message).finish() - }; - } -}; -function createBaseHashedParams() { - return { - blockMaxBytes: BigInt(0), - blockMaxGas: BigInt(0) - }; -} -exports.HashedParams = { - typeUrl: "/tendermint.types.HashedParams", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.blockMaxBytes !== BigInt(0)) { - writer.uint32(8).int64(message.blockMaxBytes); - } - if (message.blockMaxGas !== BigInt(0)) { - writer.uint32(16).int64(message.blockMaxGas); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHashedParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockMaxBytes = reader.int64(); - break; - case 2: - message.blockMaxGas = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHashedParams(); - message.blockMaxBytes = object.blockMaxBytes !== undefined && object.blockMaxBytes !== null ? BigInt(object.blockMaxBytes.toString()) : BigInt(0); - message.blockMaxGas = object.blockMaxGas !== undefined && object.blockMaxGas !== null ? BigInt(object.blockMaxGas.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseHashedParams(); - if (object.block_max_bytes !== undefined && object.block_max_bytes !== null) { - message.blockMaxBytes = BigInt(object.block_max_bytes); - } - if (object.block_max_gas !== undefined && object.block_max_gas !== null) { - message.blockMaxGas = BigInt(object.block_max_gas); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; - obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.HashedParams.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.HashedParams.decode(message.value); - }, - toProto(message) { - return exports.HashedParams.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.HashedParams", - value: exports.HashedParams.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/types/types.d.ts b/packages/api/dist/tendermint/types/types.d.ts deleted file mode 100644 index 51ed49aa..00000000 --- a/packages/api/dist/tendermint/types/types.d.ts +++ /dev/null @@ -1,597 +0,0 @@ -import { Proof, ProofAmino, ProofSDKType } from "../crypto/proof"; -import { Consensus, ConsensusAmino, ConsensusSDKType } from "../version/types"; -import { ValidatorSet, ValidatorSetAmino, ValidatorSetSDKType } from "./validator"; -import { BinaryReader, BinaryWriter } from "../../binary"; -/** BlockIdFlag indicates which BlcokID the signature is for */ -export declare enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3, - UNRECOGNIZED = -1 -} -export declare const BlockIDFlagSDKType: typeof BlockIDFlag; -export declare const BlockIDFlagAmino: typeof BlockIDFlag; -export declare function blockIDFlagFromJSON(object: any): BlockIDFlag; -export declare function blockIDFlagToJSON(object: BlockIDFlag): string; -/** SignedMsgType is a type of signed message in the consensus. */ -export declare enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SIGNED_MSG_TYPE_PROPOSAL = 32, - UNRECOGNIZED = -1 -} -export declare const SignedMsgTypeSDKType: typeof SignedMsgType; -export declare const SignedMsgTypeAmino: typeof SignedMsgType; -export declare function signedMsgTypeFromJSON(object: any): SignedMsgType; -export declare function signedMsgTypeToJSON(object: SignedMsgType): string; -/** PartsetHeader */ -export interface PartSetHeader { - total: number; - hash: Uint8Array; -} -export interface PartSetHeaderProtoMsg { - typeUrl: "/tendermint.types.PartSetHeader"; - value: Uint8Array; -} -/** PartsetHeader */ -export interface PartSetHeaderAmino { - total?: number; - hash?: string; -} -export interface PartSetHeaderAminoMsg { - type: "/tendermint.types.PartSetHeader"; - value: PartSetHeaderAmino; -} -/** PartsetHeader */ -export interface PartSetHeaderSDKType { - total: number; - hash: Uint8Array; -} -export interface Part { - index: number; - bytes: Uint8Array; - proof: Proof; -} -export interface PartProtoMsg { - typeUrl: "/tendermint.types.Part"; - value: Uint8Array; -} -export interface PartAmino { - index?: number; - bytes?: string; - proof?: ProofAmino; -} -export interface PartAminoMsg { - type: "/tendermint.types.Part"; - value: PartAmino; -} -export interface PartSDKType { - index: number; - bytes: Uint8Array; - proof: ProofSDKType; -} -/** BlockID */ -export interface BlockID { - hash: Uint8Array; - partSetHeader: PartSetHeader; -} -export interface BlockIDProtoMsg { - typeUrl: "/tendermint.types.BlockID"; - value: Uint8Array; -} -/** BlockID */ -export interface BlockIDAmino { - hash?: string; - part_set_header?: PartSetHeaderAmino; -} -export interface BlockIDAminoMsg { - type: "/tendermint.types.BlockID"; - value: BlockIDAmino; -} -/** BlockID */ -export interface BlockIDSDKType { - hash: Uint8Array; - part_set_header: PartSetHeaderSDKType; -} -/** Header defines the structure of a block header. */ -export interface Header { - /** basic block info */ - version: Consensus; - chainId: string; - height: bigint; - time: Date; - /** prev block info */ - lastBlockId: BlockID; - /** hashes of block data */ - lastCommitHash: Uint8Array; - dataHash: Uint8Array; - /** hashes from the app output from the prev block */ - validatorsHash: Uint8Array; - /** validators for the next block */ - nextValidatorsHash: Uint8Array; - /** consensus params for current block */ - consensusHash: Uint8Array; - /** state after txs from the previous block */ - appHash: Uint8Array; - lastResultsHash: Uint8Array; - /** consensus info */ - evidenceHash: Uint8Array; - /** original proposer of the block */ - proposerAddress: Uint8Array; -} -export interface HeaderProtoMsg { - typeUrl: "/tendermint.types.Header"; - value: Uint8Array; -} -/** Header defines the structure of a block header. */ -export interface HeaderAmino { - /** basic block info */ - version?: ConsensusAmino; - chain_id?: string; - height?: string; - time?: string; - /** prev block info */ - last_block_id?: BlockIDAmino; - /** hashes of block data */ - last_commit_hash?: string; - data_hash?: string; - /** hashes from the app output from the prev block */ - validators_hash?: string; - /** validators for the next block */ - next_validators_hash?: string; - /** consensus params for current block */ - consensus_hash?: string; - /** state after txs from the previous block */ - app_hash?: string; - last_results_hash?: string; - /** consensus info */ - evidence_hash?: string; - /** original proposer of the block */ - proposer_address?: string; -} -export interface HeaderAminoMsg { - type: "/tendermint.types.Header"; - value: HeaderAmino; -} -/** Header defines the structure of a block header. */ -export interface HeaderSDKType { - version: ConsensusSDKType; - chain_id: string; - height: bigint; - time: Date; - last_block_id: BlockIDSDKType; - last_commit_hash: Uint8Array; - data_hash: Uint8Array; - validators_hash: Uint8Array; - next_validators_hash: Uint8Array; - consensus_hash: Uint8Array; - app_hash: Uint8Array; - last_results_hash: Uint8Array; - evidence_hash: Uint8Array; - proposer_address: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface Data { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs: Uint8Array[]; -} -export interface DataProtoMsg { - typeUrl: "/tendermint.types.Data"; - value: Uint8Array; -} -/** Data contains the set of transactions included in the block */ -export interface DataAmino { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; -} -export interface DataAminoMsg { - type: "/tendermint.types.Data"; - value: DataAmino; -} -/** Data contains the set of transactions included in the block */ -export interface DataSDKType { - txs: Uint8Array[]; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface Vote { - type: SignedMsgType; - height: bigint; - round: number; - blockId: BlockID; - timestamp: Date; - validatorAddress: Uint8Array; - validatorIndex: number; - signature: Uint8Array; -} -export interface VoteProtoMsg { - typeUrl: "/tendermint.types.Vote"; - value: Uint8Array; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteAmino { - type?: SignedMsgType; - height?: string; - round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - validator_address?: string; - validator_index?: number; - signature?: string; -} -export interface VoteAminoMsg { - type: "/tendermint.types.Vote"; - value: VoteAmino; -} -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface VoteSDKType { - type: SignedMsgType; - height: bigint; - round: number; - block_id: BlockIDSDKType; - timestamp: Date; - validator_address: Uint8Array; - validator_index: number; - signature: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface Commit { - height: bigint; - round: number; - blockId: BlockID; - signatures: CommitSig[]; -} -export interface CommitProtoMsg { - typeUrl: "/tendermint.types.Commit"; - value: Uint8Array; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitAmino { - height?: string; - round?: number; - block_id?: BlockIDAmino; - signatures?: CommitSigAmino[]; -} -export interface CommitAminoMsg { - type: "/tendermint.types.Commit"; - value: CommitAmino; -} -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface CommitSDKType { - height: bigint; - round: number; - block_id: BlockIDSDKType; - signatures: CommitSigSDKType[]; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSig { - blockIdFlag: BlockIDFlag; - validatorAddress: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface CommitSigProtoMsg { - typeUrl: "/tendermint.types.CommitSig"; - value: Uint8Array; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigAmino { - block_id_flag?: BlockIDFlag; - validator_address?: string; - timestamp?: string; - signature?: string; -} -export interface CommitSigAminoMsg { - type: "/tendermint.types.CommitSig"; - value: CommitSigAmino; -} -/** CommitSig is a part of the Vote included in a Commit. */ -export interface CommitSigSDKType { - block_id_flag: BlockIDFlag; - validator_address: Uint8Array; - timestamp: Date; - signature: Uint8Array; -} -export interface Proposal { - type: SignedMsgType; - height: bigint; - round: number; - polRound: number; - blockId: BlockID; - timestamp: Date; - signature: Uint8Array; -} -export interface ProposalProtoMsg { - typeUrl: "/tendermint.types.Proposal"; - value: Uint8Array; -} -export interface ProposalAmino { - type?: SignedMsgType; - height?: string; - round?: number; - pol_round?: number; - block_id?: BlockIDAmino; - timestamp?: string; - signature?: string; -} -export interface ProposalAminoMsg { - type: "/tendermint.types.Proposal"; - value: ProposalAmino; -} -export interface ProposalSDKType { - type: SignedMsgType; - height: bigint; - round: number; - pol_round: number; - block_id: BlockIDSDKType; - timestamp: Date; - signature: Uint8Array; -} -export interface SignedHeader { - header?: Header; - commit?: Commit; -} -export interface SignedHeaderProtoMsg { - typeUrl: "/tendermint.types.SignedHeader"; - value: Uint8Array; -} -export interface SignedHeaderAmino { - header?: HeaderAmino; - commit?: CommitAmino; -} -export interface SignedHeaderAminoMsg { - type: "/tendermint.types.SignedHeader"; - value: SignedHeaderAmino; -} -export interface SignedHeaderSDKType { - header?: HeaderSDKType; - commit?: CommitSDKType; -} -export interface LightBlock { - signedHeader?: SignedHeader; - validatorSet?: ValidatorSet; -} -export interface LightBlockProtoMsg { - typeUrl: "/tendermint.types.LightBlock"; - value: Uint8Array; -} -export interface LightBlockAmino { - signed_header?: SignedHeaderAmino; - validator_set?: ValidatorSetAmino; -} -export interface LightBlockAminoMsg { - type: "/tendermint.types.LightBlock"; - value: LightBlockAmino; -} -export interface LightBlockSDKType { - signed_header?: SignedHeaderSDKType; - validator_set?: ValidatorSetSDKType; -} -export interface BlockMeta { - blockId: BlockID; - blockSize: bigint; - header: Header; - numTxs: bigint; -} -export interface BlockMetaProtoMsg { - typeUrl: "/tendermint.types.BlockMeta"; - value: Uint8Array; -} -export interface BlockMetaAmino { - block_id?: BlockIDAmino; - block_size?: string; - header?: HeaderAmino; - num_txs?: string; -} -export interface BlockMetaAminoMsg { - type: "/tendermint.types.BlockMeta"; - value: BlockMetaAmino; -} -export interface BlockMetaSDKType { - block_id: BlockIDSDKType; - block_size: bigint; - header: HeaderSDKType; - num_txs: bigint; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProof { - rootHash: Uint8Array; - data: Uint8Array; - proof?: Proof; -} -export interface TxProofProtoMsg { - typeUrl: "/tendermint.types.TxProof"; - value: Uint8Array; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofAmino { - root_hash?: string; - data?: string; - proof?: ProofAmino; -} -export interface TxProofAminoMsg { - type: "/tendermint.types.TxProof"; - value: TxProofAmino; -} -/** TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. */ -export interface TxProofSDKType { - root_hash: Uint8Array; - data: Uint8Array; - proof?: ProofSDKType; -} -export declare const PartSetHeader: { - typeUrl: string; - encode(message: PartSetHeader, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): PartSetHeader; - fromPartial(object: Partial): PartSetHeader; - fromAmino(object: PartSetHeaderAmino): PartSetHeader; - toAmino(message: PartSetHeader): PartSetHeaderAmino; - fromAminoMsg(object: PartSetHeaderAminoMsg): PartSetHeader; - fromProtoMsg(message: PartSetHeaderProtoMsg): PartSetHeader; - toProto(message: PartSetHeader): Uint8Array; - toProtoMsg(message: PartSetHeader): PartSetHeaderProtoMsg; -}; -export declare const Part: { - typeUrl: string; - encode(message: Part, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Part; - fromPartial(object: Partial): Part; - fromAmino(object: PartAmino): Part; - toAmino(message: Part): PartAmino; - fromAminoMsg(object: PartAminoMsg): Part; - fromProtoMsg(message: PartProtoMsg): Part; - toProto(message: Part): Uint8Array; - toProtoMsg(message: Part): PartProtoMsg; -}; -export declare const BlockID: { - typeUrl: string; - encode(message: BlockID, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockID; - fromPartial(object: Partial): BlockID; - fromAmino(object: BlockIDAmino): BlockID; - toAmino(message: BlockID): BlockIDAmino; - fromAminoMsg(object: BlockIDAminoMsg): BlockID; - fromProtoMsg(message: BlockIDProtoMsg): BlockID; - toProto(message: BlockID): Uint8Array; - toProtoMsg(message: BlockID): BlockIDProtoMsg; -}; -export declare const Header: { - typeUrl: string; - encode(message: Header, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Header; - fromPartial(object: Partial
): Header; - fromAmino(object: HeaderAmino): Header; - toAmino(message: Header): HeaderAmino; - fromAminoMsg(object: HeaderAminoMsg): Header; - fromProtoMsg(message: HeaderProtoMsg): Header; - toProto(message: Header): Uint8Array; - toProtoMsg(message: Header): HeaderProtoMsg; -}; -export declare const Data: { - typeUrl: string; - encode(message: Data, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Data; - fromPartial(object: Partial): Data; - fromAmino(object: DataAmino): Data; - toAmino(message: Data): DataAmino; - fromAminoMsg(object: DataAminoMsg): Data; - fromProtoMsg(message: DataProtoMsg): Data; - toProto(message: Data): Uint8Array; - toProtoMsg(message: Data): DataProtoMsg; -}; -export declare const Vote: { - typeUrl: string; - encode(message: Vote, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Vote; - fromPartial(object: Partial): Vote; - fromAmino(object: VoteAmino): Vote; - toAmino(message: Vote): VoteAmino; - fromAminoMsg(object: VoteAminoMsg): Vote; - fromProtoMsg(message: VoteProtoMsg): Vote; - toProto(message: Vote): Uint8Array; - toProtoMsg(message: Vote): VoteProtoMsg; -}; -export declare const Commit: { - typeUrl: string; - encode(message: Commit, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Commit; - fromPartial(object: Partial): Commit; - fromAmino(object: CommitAmino): Commit; - toAmino(message: Commit): CommitAmino; - fromAminoMsg(object: CommitAminoMsg): Commit; - fromProtoMsg(message: CommitProtoMsg): Commit; - toProto(message: Commit): Uint8Array; - toProtoMsg(message: Commit): CommitProtoMsg; -}; -export declare const CommitSig: { - typeUrl: string; - encode(message: CommitSig, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): CommitSig; - fromPartial(object: Partial): CommitSig; - fromAmino(object: CommitSigAmino): CommitSig; - toAmino(message: CommitSig): CommitSigAmino; - fromAminoMsg(object: CommitSigAminoMsg): CommitSig; - fromProtoMsg(message: CommitSigProtoMsg): CommitSig; - toProto(message: CommitSig): Uint8Array; - toProtoMsg(message: CommitSig): CommitSigProtoMsg; -}; -export declare const Proposal: { - typeUrl: string; - encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Proposal; - fromPartial(object: Partial): Proposal; - fromAmino(object: ProposalAmino): Proposal; - toAmino(message: Proposal): ProposalAmino; - fromAminoMsg(object: ProposalAminoMsg): Proposal; - fromProtoMsg(message: ProposalProtoMsg): Proposal; - toProto(message: Proposal): Uint8Array; - toProtoMsg(message: Proposal): ProposalProtoMsg; -}; -export declare const SignedHeader: { - typeUrl: string; - encode(message: SignedHeader, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SignedHeader; - fromPartial(object: Partial): SignedHeader; - fromAmino(object: SignedHeaderAmino): SignedHeader; - toAmino(message: SignedHeader): SignedHeaderAmino; - fromAminoMsg(object: SignedHeaderAminoMsg): SignedHeader; - fromProtoMsg(message: SignedHeaderProtoMsg): SignedHeader; - toProto(message: SignedHeader): Uint8Array; - toProtoMsg(message: SignedHeader): SignedHeaderProtoMsg; -}; -export declare const LightBlock: { - typeUrl: string; - encode(message: LightBlock, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): LightBlock; - fromPartial(object: Partial): LightBlock; - fromAmino(object: LightBlockAmino): LightBlock; - toAmino(message: LightBlock): LightBlockAmino; - fromAminoMsg(object: LightBlockAminoMsg): LightBlock; - fromProtoMsg(message: LightBlockProtoMsg): LightBlock; - toProto(message: LightBlock): Uint8Array; - toProtoMsg(message: LightBlock): LightBlockProtoMsg; -}; -export declare const BlockMeta: { - typeUrl: string; - encode(message: BlockMeta, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): BlockMeta; - fromPartial(object: Partial): BlockMeta; - fromAmino(object: BlockMetaAmino): BlockMeta; - toAmino(message: BlockMeta): BlockMetaAmino; - fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta; - fromProtoMsg(message: BlockMetaProtoMsg): BlockMeta; - toProto(message: BlockMeta): Uint8Array; - toProtoMsg(message: BlockMeta): BlockMetaProtoMsg; -}; -export declare const TxProof: { - typeUrl: string; - encode(message: TxProof, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): TxProof; - fromPartial(object: Partial): TxProof; - fromAmino(object: TxProofAmino): TxProof; - toAmino(message: TxProof): TxProofAmino; - fromAminoMsg(object: TxProofAminoMsg): TxProof; - fromProtoMsg(message: TxProofProtoMsg): TxProof; - toProto(message: TxProof): Uint8Array; - toProtoMsg(message: TxProof): TxProofProtoMsg; -}; diff --git a/packages/api/dist/tendermint/types/types.js b/packages/api/dist/tendermint/types/types.js deleted file mode 100644 index 3b69e204..00000000 --- a/packages/api/dist/tendermint/types/types.js +++ /dev/null @@ -1,1449 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader = exports.Proposal = exports.CommitSig = exports.Commit = exports.Vote = exports.Data = exports.Header = exports.BlockID = exports.Part = exports.PartSetHeader = exports.signedMsgTypeToJSON = exports.signedMsgTypeFromJSON = exports.SignedMsgTypeAmino = exports.SignedMsgTypeSDKType = exports.SignedMsgType = exports.blockIDFlagToJSON = exports.blockIDFlagFromJSON = exports.BlockIDFlagAmino = exports.BlockIDFlagSDKType = exports.BlockIDFlag = void 0; -//@ts-nocheck -const proof_1 = require("../crypto/proof"); -const types_1 = require("../version/types"); -const timestamp_1 = require("../../google/protobuf/timestamp"); -const validator_1 = require("./validator"); -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -/** BlockIdFlag indicates which BlcokID the signature is for */ -var BlockIDFlag; -(function (BlockIDFlag) { - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_UNKNOWN"] = 0] = "BLOCK_ID_FLAG_UNKNOWN"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_ABSENT"] = 1] = "BLOCK_ID_FLAG_ABSENT"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_COMMIT"] = 2] = "BLOCK_ID_FLAG_COMMIT"; - BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_NIL"] = 3] = "BLOCK_ID_FLAG_NIL"; - BlockIDFlag[BlockIDFlag["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(BlockIDFlag || (exports.BlockIDFlag = BlockIDFlag = {})); -exports.BlockIDFlagSDKType = BlockIDFlag; -exports.BlockIDFlagAmino = BlockIDFlag; -function blockIDFlagFromJSON(object) { - switch (object) { - case 0: - case "BLOCK_ID_FLAG_UNKNOWN": - return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - case 1: - case "BLOCK_ID_FLAG_ABSENT": - return BlockIDFlag.BLOCK_ID_FLAG_ABSENT; - case 2: - case "BLOCK_ID_FLAG_COMMIT": - return BlockIDFlag.BLOCK_ID_FLAG_COMMIT; - case 3: - case "BLOCK_ID_FLAG_NIL": - return BlockIDFlag.BLOCK_ID_FLAG_NIL; - case -1: - case "UNRECOGNIZED": - default: - return BlockIDFlag.UNRECOGNIZED; - } -} -exports.blockIDFlagFromJSON = blockIDFlagFromJSON; -function blockIDFlagToJSON(object) { - switch (object) { - case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN: - return "BLOCK_ID_FLAG_UNKNOWN"; - case BlockIDFlag.BLOCK_ID_FLAG_ABSENT: - return "BLOCK_ID_FLAG_ABSENT"; - case BlockIDFlag.BLOCK_ID_FLAG_COMMIT: - return "BLOCK_ID_FLAG_COMMIT"; - case BlockIDFlag.BLOCK_ID_FLAG_NIL: - return "BLOCK_ID_FLAG_NIL"; - case BlockIDFlag.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.blockIDFlagToJSON = blockIDFlagToJSON; -/** SignedMsgType is a type of signed message in the consensus. */ -var SignedMsgType; -(function (SignedMsgType) { - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_UNKNOWN"] = 0] = "SIGNED_MSG_TYPE_UNKNOWN"; - /** SIGNED_MSG_TYPE_PREVOTE - Votes */ - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PREVOTE"] = 1] = "SIGNED_MSG_TYPE_PREVOTE"; - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PRECOMMIT"] = 2] = "SIGNED_MSG_TYPE_PRECOMMIT"; - /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */ - SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL"; - SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; -})(SignedMsgType || (exports.SignedMsgType = SignedMsgType = {})); -exports.SignedMsgTypeSDKType = SignedMsgType; -exports.SignedMsgTypeAmino = SignedMsgType; -function signedMsgTypeFromJSON(object) { - switch (object) { - case 0: - case "SIGNED_MSG_TYPE_UNKNOWN": - return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN; - case 1: - case "SIGNED_MSG_TYPE_PREVOTE": - return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE; - case 2: - case "SIGNED_MSG_TYPE_PRECOMMIT": - return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT; - case 32: - case "SIGNED_MSG_TYPE_PROPOSAL": - return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL; - case -1: - case "UNRECOGNIZED": - default: - return SignedMsgType.UNRECOGNIZED; - } -} -exports.signedMsgTypeFromJSON = signedMsgTypeFromJSON; -function signedMsgTypeToJSON(object) { - switch (object) { - case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN: - return "SIGNED_MSG_TYPE_UNKNOWN"; - case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE: - return "SIGNED_MSG_TYPE_PREVOTE"; - case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT: - return "SIGNED_MSG_TYPE_PRECOMMIT"; - case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL: - return "SIGNED_MSG_TYPE_PROPOSAL"; - case SignedMsgType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -exports.signedMsgTypeToJSON = signedMsgTypeToJSON; -function createBasePartSetHeader() { - return { - total: 0, - hash: new Uint8Array() - }; -} -exports.PartSetHeader = { - typeUrl: "/tendermint.types.PartSetHeader", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.total !== 0) { - writer.uint32(8).uint32(message.total); - } - if (message.hash.length !== 0) { - writer.uint32(18).bytes(message.hash); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePartSetHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.uint32(); - break; - case 2: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePartSetHeader(); - message.total = object.total ?? 0; - message.hash = object.hash ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBasePartSetHeader(); - if (object.total !== undefined && object.total !== null) { - message.total = object.total; - } - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.total = message.total === 0 ? undefined : message.total; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.PartSetHeader.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.PartSetHeader.decode(message.value); - }, - toProto(message) { - return exports.PartSetHeader.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.PartSetHeader", - value: exports.PartSetHeader.encode(message).finish() - }; - } -}; -function createBasePart() { - return { - index: 0, - bytes: new Uint8Array(), - proof: proof_1.Proof.fromPartial({}) - }; -} -exports.Part = { - typeUrl: "/tendermint.types.Part", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.index !== 0) { - writer.uint32(8).uint32(message.index); - } - if (message.bytes.length !== 0) { - writer.uint32(18).bytes(message.bytes); - } - if (message.proof !== undefined) { - proof_1.Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePart(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.bytes = reader.bytes(); - break; - case 3: - message.proof = proof_1.Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBasePart(); - message.index = object.index ?? 0; - message.bytes = object.bytes ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? proof_1.Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBasePart(); - if (object.index !== undefined && object.index !== null) { - message.index = object.index; - } - if (object.bytes !== undefined && object.bytes !== null) { - message.bytes = (0, helpers_1.bytesFromBase64)(object.bytes); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = proof_1.Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.index = message.index === 0 ? undefined : message.index; - obj.bytes = message.bytes ? (0, helpers_1.base64FromBytes)(message.bytes) : undefined; - obj.proof = message.proof ? proof_1.Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Part.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Part.decode(message.value); - }, - toProto(message) { - return exports.Part.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Part", - value: exports.Part.encode(message).finish() - }; - } -}; -function createBaseBlockID() { - return { - hash: new Uint8Array(), - partSetHeader: exports.PartSetHeader.fromPartial({}) - }; -} -exports.BlockID = { - typeUrl: "/tendermint.types.BlockID", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.hash.length !== 0) { - writer.uint32(10).bytes(message.hash); - } - if (message.partSetHeader !== undefined) { - exports.PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.bytes(); - break; - case 2: - message.partSetHeader = exports.PartSetHeader.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockID(); - message.hash = object.hash ?? new Uint8Array(); - message.partSetHeader = object.partSetHeader !== undefined && object.partSetHeader !== null ? exports.PartSetHeader.fromPartial(object.partSetHeader) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseBlockID(); - if (object.hash !== undefined && object.hash !== null) { - message.hash = (0, helpers_1.bytesFromBase64)(object.hash); - } - if (object.part_set_header !== undefined && object.part_set_header !== null) { - message.partSetHeader = exports.PartSetHeader.fromAmino(object.part_set_header); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.hash = message.hash ? (0, helpers_1.base64FromBytes)(message.hash) : undefined; - obj.part_set_header = message.partSetHeader ? exports.PartSetHeader.toAmino(message.partSetHeader) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BlockID.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BlockID.decode(message.value); - }, - toProto(message) { - return exports.BlockID.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockID", - value: exports.BlockID.encode(message).finish() - }; - } -}; -function createBaseHeader() { - return { - version: types_1.Consensus.fromPartial({}), - chainId: "", - height: BigInt(0), - time: new Date(), - lastBlockId: exports.BlockID.fromPartial({}), - lastCommitHash: new Uint8Array(), - dataHash: new Uint8Array(), - validatorsHash: new Uint8Array(), - nextValidatorsHash: new Uint8Array(), - consensusHash: new Uint8Array(), - appHash: new Uint8Array(), - lastResultsHash: new Uint8Array(), - evidenceHash: new Uint8Array(), - proposerAddress: new Uint8Array() - }; -} -exports.Header = { - typeUrl: "/tendermint.types.Header", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.version !== undefined) { - types_1.Consensus.encode(message.version, writer.uint32(10).fork()).ldelim(); - } - if (message.chainId !== "") { - writer.uint32(18).string(message.chainId); - } - if (message.height !== BigInt(0)) { - writer.uint32(24).int64(message.height); - } - if (message.time !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.time), writer.uint32(34).fork()).ldelim(); - } - if (message.lastBlockId !== undefined) { - exports.BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim(); - } - if (message.lastCommitHash.length !== 0) { - writer.uint32(50).bytes(message.lastCommitHash); - } - if (message.dataHash.length !== 0) { - writer.uint32(58).bytes(message.dataHash); - } - if (message.validatorsHash.length !== 0) { - writer.uint32(66).bytes(message.validatorsHash); - } - if (message.nextValidatorsHash.length !== 0) { - writer.uint32(74).bytes(message.nextValidatorsHash); - } - if (message.consensusHash.length !== 0) { - writer.uint32(82).bytes(message.consensusHash); - } - if (message.appHash.length !== 0) { - writer.uint32(90).bytes(message.appHash); - } - if (message.lastResultsHash.length !== 0) { - writer.uint32(98).bytes(message.lastResultsHash); - } - if (message.evidenceHash.length !== 0) { - writer.uint32(106).bytes(message.evidenceHash); - } - if (message.proposerAddress.length !== 0) { - writer.uint32(114).bytes(message.proposerAddress); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = types_1.Consensus.decode(reader, reader.uint32()); - break; - case 2: - message.chainId = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.lastBlockId = exports.BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.lastCommitHash = reader.bytes(); - break; - case 7: - message.dataHash = reader.bytes(); - break; - case 8: - message.validatorsHash = reader.bytes(); - break; - case 9: - message.nextValidatorsHash = reader.bytes(); - break; - case 10: - message.consensusHash = reader.bytes(); - break; - case 11: - message.appHash = reader.bytes(); - break; - case 12: - message.lastResultsHash = reader.bytes(); - break; - case 13: - message.evidenceHash = reader.bytes(); - break; - case 14: - message.proposerAddress = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseHeader(); - message.version = object.version !== undefined && object.version !== null ? types_1.Consensus.fromPartial(object.version) : undefined; - message.chainId = object.chainId ?? ""; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.time = object.time ?? undefined; - message.lastBlockId = object.lastBlockId !== undefined && object.lastBlockId !== null ? exports.BlockID.fromPartial(object.lastBlockId) : undefined; - message.lastCommitHash = object.lastCommitHash ?? new Uint8Array(); - message.dataHash = object.dataHash ?? new Uint8Array(); - message.validatorsHash = object.validatorsHash ?? new Uint8Array(); - message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array(); - message.consensusHash = object.consensusHash ?? new Uint8Array(); - message.appHash = object.appHash ?? new Uint8Array(); - message.lastResultsHash = object.lastResultsHash ?? new Uint8Array(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - message.proposerAddress = object.proposerAddress ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseHeader(); - if (object.version !== undefined && object.version !== null) { - message.version = types_1.Consensus.fromAmino(object.version); - } - if (object.chain_id !== undefined && object.chain_id !== null) { - message.chainId = object.chain_id; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.time !== undefined && object.time !== null) { - message.time = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.time)); - } - if (object.last_block_id !== undefined && object.last_block_id !== null) { - message.lastBlockId = exports.BlockID.fromAmino(object.last_block_id); - } - if (object.last_commit_hash !== undefined && object.last_commit_hash !== null) { - message.lastCommitHash = (0, helpers_1.bytesFromBase64)(object.last_commit_hash); - } - if (object.data_hash !== undefined && object.data_hash !== null) { - message.dataHash = (0, helpers_1.bytesFromBase64)(object.data_hash); - } - if (object.validators_hash !== undefined && object.validators_hash !== null) { - message.validatorsHash = (0, helpers_1.bytesFromBase64)(object.validators_hash); - } - if (object.next_validators_hash !== undefined && object.next_validators_hash !== null) { - message.nextValidatorsHash = (0, helpers_1.bytesFromBase64)(object.next_validators_hash); - } - if (object.consensus_hash !== undefined && object.consensus_hash !== null) { - message.consensusHash = (0, helpers_1.bytesFromBase64)(object.consensus_hash); - } - if (object.app_hash !== undefined && object.app_hash !== null) { - message.appHash = (0, helpers_1.bytesFromBase64)(object.app_hash); - } - if (object.last_results_hash !== undefined && object.last_results_hash !== null) { - message.lastResultsHash = (0, helpers_1.bytesFromBase64)(object.last_results_hash); - } - if (object.evidence_hash !== undefined && object.evidence_hash !== null) { - message.evidenceHash = (0, helpers_1.bytesFromBase64)(object.evidence_hash); - } - if (object.proposer_address !== undefined && object.proposer_address !== null) { - message.proposerAddress = (0, helpers_1.bytesFromBase64)(object.proposer_address); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.version = message.version ? types_1.Consensus.toAmino(message.version) : undefined; - obj.chain_id = message.chainId === "" ? undefined : message.chainId; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.time = message.time ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.time)) : undefined; - obj.last_block_id = message.lastBlockId ? exports.BlockID.toAmino(message.lastBlockId) : undefined; - obj.last_commit_hash = message.lastCommitHash ? (0, helpers_1.base64FromBytes)(message.lastCommitHash) : undefined; - obj.data_hash = message.dataHash ? (0, helpers_1.base64FromBytes)(message.dataHash) : undefined; - obj.validators_hash = message.validatorsHash ? (0, helpers_1.base64FromBytes)(message.validatorsHash) : undefined; - obj.next_validators_hash = message.nextValidatorsHash ? (0, helpers_1.base64FromBytes)(message.nextValidatorsHash) : undefined; - obj.consensus_hash = message.consensusHash ? (0, helpers_1.base64FromBytes)(message.consensusHash) : undefined; - obj.app_hash = message.appHash ? (0, helpers_1.base64FromBytes)(message.appHash) : undefined; - obj.last_results_hash = message.lastResultsHash ? (0, helpers_1.base64FromBytes)(message.lastResultsHash) : undefined; - obj.evidence_hash = message.evidenceHash ? (0, helpers_1.base64FromBytes)(message.evidenceHash) : undefined; - obj.proposer_address = message.proposerAddress ? (0, helpers_1.base64FromBytes)(message.proposerAddress) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Header.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Header.decode(message.value); - }, - toProto(message) { - return exports.Header.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Header", - value: exports.Header.encode(message).finish() - }; - } -}; -function createBaseData() { - return { - txs: [] - }; -} -exports.Data = { - typeUrl: "/tendermint.types.Data", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.txs) { - writer.uint32(10).bytes(v); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseData(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.txs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseData(); - message.txs = object.txs?.map(e => e) || []; - return message; - }, - fromAmino(object) { - const message = createBaseData(); - message.txs = object.txs?.map(e => (0, helpers_1.bytesFromBase64)(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - if (message.txs) { - obj.txs = message.txs.map(e => (0, helpers_1.base64FromBytes)(e)); - } - else { - obj.txs = message.txs; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Data.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Data.decode(message.value); - }, - toProto(message) { - return exports.Data.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Data", - value: exports.Data.encode(message).finish() - }; - } -}; -function createBaseVote() { - return { - type: 0, - height: BigInt(0), - round: 0, - blockId: exports.BlockID.fromPartial({}), - timestamp: new Date(), - validatorAddress: new Uint8Array(), - validatorIndex: 0, - signature: new Uint8Array() - }; -} -exports.Vote = { - typeUrl: "/tendermint.types.Vote", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.blockId !== undefined) { - exports.BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(42).fork()).ldelim(); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(50).bytes(message.validatorAddress); - } - if (message.validatorIndex !== 0) { - writer.uint32(56).int32(message.validatorIndex); - } - if (message.signature.length !== 0) { - writer.uint32(66).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.blockId = exports.BlockID.decode(reader, reader.uint32()); - break; - case 5: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.validatorAddress = reader.bytes(); - break; - case 7: - message.validatorIndex = reader.int32(); - break; - case 8: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseVote(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp ?? undefined; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.validatorIndex = object.validatorIndex ?? 0; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseVote(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = exports.BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = (0, helpers_1.bytesFromBase64)(object.validator_address); - } - if (object.validator_index !== undefined && object.validator_index !== null) { - message.validatorIndex = object.validator_index; - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = (0, helpers_1.bytesFromBase64)(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - obj.validator_address = message.validatorAddress ? (0, helpers_1.base64FromBytes)(message.validatorAddress) : undefined; - obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; - obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Vote.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Vote.decode(message.value); - }, - toProto(message) { - return exports.Vote.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Vote", - value: exports.Vote.encode(message).finish() - }; - } -}; -function createBaseCommit() { - return { - height: BigInt(0), - round: 0, - blockId: exports.BlockID.fromPartial({}), - signatures: [] - }; -} -exports.Commit = { - typeUrl: "/tendermint.types.Commit", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.height !== BigInt(0)) { - writer.uint32(8).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(16).int32(message.round); - } - if (message.blockId !== undefined) { - exports.BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.signatures) { - exports.CommitSig.encode(v, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; - case 2: - message.round = reader.int32(); - break; - case 3: - message.blockId = exports.BlockID.decode(reader, reader.uint32()); - break; - case 4: - message.signatures.push(exports.CommitSig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommit(); - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; - message.signatures = object.signatures?.map(e => exports.CommitSig.fromPartial(e)) || []; - return message; - }, - fromAmino(object) { - const message = createBaseCommit(); - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = exports.BlockID.fromAmino(object.block_id); - } - message.signatures = object.signatures?.map(e => exports.CommitSig.fromAmino(e)) || []; - return message; - }, - toAmino(message) { - const obj = {}; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; - if (message.signatures) { - obj.signatures = message.signatures.map(e => e ? exports.CommitSig.toAmino(e) : undefined); - } - else { - obj.signatures = message.signatures; - } - return obj; - }, - fromAminoMsg(object) { - return exports.Commit.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Commit.decode(message.value); - }, - toProto(message) { - return exports.Commit.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Commit", - value: exports.Commit.encode(message).finish() - }; - } -}; -function createBaseCommitSig() { - return { - blockIdFlag: 0, - validatorAddress: new Uint8Array(), - timestamp: new Date(), - signature: new Uint8Array() - }; -} -exports.CommitSig = { - typeUrl: "/tendermint.types.CommitSig", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.blockIdFlag !== 0) { - writer.uint32(8).int32(message.blockIdFlag); - } - if (message.validatorAddress.length !== 0) { - writer.uint32(18).bytes(message.validatorAddress); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(26).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(34).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitSig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockIdFlag = reader.int32(); - break; - case 2: - message.validatorAddress = reader.bytes(); - break; - case 3: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 4: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseCommitSig(); - message.blockIdFlag = object.blockIdFlag ?? 0; - message.validatorAddress = object.validatorAddress ?? new Uint8Array(); - message.timestamp = object.timestamp ?? undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseCommitSig(); - if (object.block_id_flag !== undefined && object.block_id_flag !== null) { - message.blockIdFlag = object.block_id_flag; - } - if (object.validator_address !== undefined && object.validator_address !== null) { - message.validatorAddress = (0, helpers_1.bytesFromBase64)(object.validator_address); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = (0, helpers_1.bytesFromBase64)(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; - obj.validator_address = message.validatorAddress ? (0, helpers_1.base64FromBytes)(message.validatorAddress) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.CommitSig.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.CommitSig.decode(message.value); - }, - toProto(message) { - return exports.CommitSig.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.CommitSig", - value: exports.CommitSig.encode(message).finish() - }; - } -}; -function createBaseProposal() { - return { - type: 0, - height: BigInt(0), - round: 0, - polRound: 0, - blockId: exports.BlockID.fromPartial({}), - timestamp: new Date(), - signature: new Uint8Array() - }; -} -exports.Proposal = { - typeUrl: "/tendermint.types.Proposal", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.type !== 0) { - writer.uint32(8).int32(message.type); - } - if (message.height !== BigInt(0)) { - writer.uint32(16).int64(message.height); - } - if (message.round !== 0) { - writer.uint32(24).int32(message.round); - } - if (message.polRound !== 0) { - writer.uint32(32).int32(message.polRound); - } - if (message.blockId !== undefined) { - exports.BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim(); - } - if (message.timestamp !== undefined) { - timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), writer.uint32(50).fork()).ldelim(); - } - if (message.signature.length !== 0) { - writer.uint32(58).bytes(message.signature); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.polRound = reader.int32(); - break; - case 5: - message.blockId = exports.BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseProposal(); - message.type = object.type ?? 0; - message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0); - message.round = object.round ?? 0; - message.polRound = object.polRound ?? 0; - message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; - message.timestamp = object.timestamp ?? undefined; - message.signature = object.signature ?? new Uint8Array(); - return message; - }, - fromAmino(object) { - const message = createBaseProposal(); - if (object.type !== undefined && object.type !== null) { - message.type = object.type; - } - if (object.height !== undefined && object.height !== null) { - message.height = BigInt(object.height); - } - if (object.round !== undefined && object.round !== null) { - message.round = object.round; - } - if (object.pol_round !== undefined && object.pol_round !== null) { - message.polRound = object.pol_round; - } - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = exports.BlockID.fromAmino(object.block_id); - } - if (object.timestamp !== undefined && object.timestamp !== null) { - message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp)); - } - if (object.signature !== undefined && object.signature !== null) { - message.signature = (0, helpers_1.bytesFromBase64)(object.signature); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.type = message.type === 0 ? undefined : message.type; - obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; - obj.round = message.round === 0 ? undefined : message.round; - obj.pol_round = message.polRound === 0 ? undefined : message.polRound; - obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; - obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : undefined; - obj.signature = message.signature ? (0, helpers_1.base64FromBytes)(message.signature) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Proposal.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Proposal.decode(message.value); - }, - toProto(message) { - return exports.Proposal.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Proposal", - value: exports.Proposal.encode(message).finish() - }; - } -}; -function createBaseSignedHeader() { - return { - header: undefined, - commit: undefined - }; -} -exports.SignedHeader = { - typeUrl: "/tendermint.types.SignedHeader", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.header !== undefined) { - exports.Header.encode(message.header, writer.uint32(10).fork()).ldelim(); - } - if (message.commit !== undefined) { - exports.Commit.encode(message.commit, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSignedHeader(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = exports.Header.decode(reader, reader.uint32()); - break; - case 2: - message.commit = exports.Commit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSignedHeader(); - message.header = object.header !== undefined && object.header !== null ? exports.Header.fromPartial(object.header) : undefined; - message.commit = object.commit !== undefined && object.commit !== null ? exports.Commit.fromPartial(object.commit) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseSignedHeader(); - if (object.header !== undefined && object.header !== null) { - message.header = exports.Header.fromAmino(object.header); - } - if (object.commit !== undefined && object.commit !== null) { - message.commit = exports.Commit.fromAmino(object.commit); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.header = message.header ? exports.Header.toAmino(message.header) : undefined; - obj.commit = message.commit ? exports.Commit.toAmino(message.commit) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SignedHeader.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SignedHeader.decode(message.value); - }, - toProto(message) { - return exports.SignedHeader.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.SignedHeader", - value: exports.SignedHeader.encode(message).finish() - }; - } -}; -function createBaseLightBlock() { - return { - signedHeader: undefined, - validatorSet: undefined - }; -} -exports.LightBlock = { - typeUrl: "/tendermint.types.LightBlock", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.signedHeader !== undefined) { - exports.SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim(); - } - if (message.validatorSet !== undefined) { - validator_1.ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseLightBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedHeader = exports.SignedHeader.decode(reader, reader.uint32()); - break; - case 2: - message.validatorSet = validator_1.ValidatorSet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseLightBlock(); - message.signedHeader = object.signedHeader !== undefined && object.signedHeader !== null ? exports.SignedHeader.fromPartial(object.signedHeader) : undefined; - message.validatorSet = object.validatorSet !== undefined && object.validatorSet !== null ? validator_1.ValidatorSet.fromPartial(object.validatorSet) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseLightBlock(); - if (object.signed_header !== undefined && object.signed_header !== null) { - message.signedHeader = exports.SignedHeader.fromAmino(object.signed_header); - } - if (object.validator_set !== undefined && object.validator_set !== null) { - message.validatorSet = validator_1.ValidatorSet.fromAmino(object.validator_set); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.signed_header = message.signedHeader ? exports.SignedHeader.toAmino(message.signedHeader) : undefined; - obj.validator_set = message.validatorSet ? validator_1.ValidatorSet.toAmino(message.validatorSet) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.LightBlock.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.LightBlock.decode(message.value); - }, - toProto(message) { - return exports.LightBlock.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.LightBlock", - value: exports.LightBlock.encode(message).finish() - }; - } -}; -function createBaseBlockMeta() { - return { - blockId: exports.BlockID.fromPartial({}), - blockSize: BigInt(0), - header: exports.Header.fromPartial({}), - numTxs: BigInt(0) - }; -} -exports.BlockMeta = { - typeUrl: "/tendermint.types.BlockMeta", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.blockId !== undefined) { - exports.BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.blockSize !== BigInt(0)) { - writer.uint32(16).int64(message.blockSize); - } - if (message.header !== undefined) { - exports.Header.encode(message.header, writer.uint32(26).fork()).ldelim(); - } - if (message.numTxs !== BigInt(0)) { - writer.uint32(32).int64(message.numTxs); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBlockMeta(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = exports.BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.blockSize = reader.int64(); - break; - case 3: - message.header = exports.Header.decode(reader, reader.uint32()); - break; - case 4: - message.numTxs = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseBlockMeta(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? exports.BlockID.fromPartial(object.blockId) : undefined; - message.blockSize = object.blockSize !== undefined && object.blockSize !== null ? BigInt(object.blockSize.toString()) : BigInt(0); - message.header = object.header !== undefined && object.header !== null ? exports.Header.fromPartial(object.header) : undefined; - message.numTxs = object.numTxs !== undefined && object.numTxs !== null ? BigInt(object.numTxs.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseBlockMeta(); - if (object.block_id !== undefined && object.block_id !== null) { - message.blockId = exports.BlockID.fromAmino(object.block_id); - } - if (object.block_size !== undefined && object.block_size !== null) { - message.blockSize = BigInt(object.block_size); - } - if (object.header !== undefined && object.header !== null) { - message.header = exports.Header.fromAmino(object.header); - } - if (object.num_txs !== undefined && object.num_txs !== null) { - message.numTxs = BigInt(object.num_txs); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block_id = message.blockId ? exports.BlockID.toAmino(message.blockId) : undefined; - obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; - obj.header = message.header ? exports.Header.toAmino(message.header) : undefined; - obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.BlockMeta.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.BlockMeta.decode(message.value); - }, - toProto(message) { - return exports.BlockMeta.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.BlockMeta", - value: exports.BlockMeta.encode(message).finish() - }; - } -}; -function createBaseTxProof() { - return { - rootHash: new Uint8Array(), - data: new Uint8Array(), - proof: undefined - }; -} -exports.TxProof = { - typeUrl: "/tendermint.types.TxProof", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.rootHash.length !== 0) { - writer.uint32(10).bytes(message.rootHash); - } - if (message.data.length !== 0) { - writer.uint32(18).bytes(message.data); - } - if (message.proof !== undefined) { - proof_1.Proof.encode(message.proof, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTxProof(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rootHash = reader.bytes(); - break; - case 2: - message.data = reader.bytes(); - break; - case 3: - message.proof = proof_1.Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseTxProof(); - message.rootHash = object.rootHash ?? new Uint8Array(); - message.data = object.data ?? new Uint8Array(); - message.proof = object.proof !== undefined && object.proof !== null ? proof_1.Proof.fromPartial(object.proof) : undefined; - return message; - }, - fromAmino(object) { - const message = createBaseTxProof(); - if (object.root_hash !== undefined && object.root_hash !== null) { - message.rootHash = (0, helpers_1.bytesFromBase64)(object.root_hash); - } - if (object.data !== undefined && object.data !== null) { - message.data = (0, helpers_1.bytesFromBase64)(object.data); - } - if (object.proof !== undefined && object.proof !== null) { - message.proof = proof_1.Proof.fromAmino(object.proof); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.root_hash = message.rootHash ? (0, helpers_1.base64FromBytes)(message.rootHash) : undefined; - obj.data = message.data ? (0, helpers_1.base64FromBytes)(message.data) : undefined; - obj.proof = message.proof ? proof_1.Proof.toAmino(message.proof) : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.TxProof.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.TxProof.decode(message.value); - }, - toProto(message) { - return exports.TxProof.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.TxProof", - value: exports.TxProof.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/types/validator.d.ts b/packages/api/dist/tendermint/types/validator.d.ts deleted file mode 100644 index a6c1477f..00000000 --- a/packages/api/dist/tendermint/types/validator.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { PublicKey, PublicKeyAmino, PublicKeySDKType } from "../crypto/keys"; -import { BinaryReader, BinaryWriter } from "../../binary"; -export interface ValidatorSet { - validators: Validator[]; - proposer?: Validator; - totalVotingPower: bigint; -} -export interface ValidatorSetProtoMsg { - typeUrl: "/tendermint.types.ValidatorSet"; - value: Uint8Array; -} -export interface ValidatorSetAmino { - validators?: ValidatorAmino[]; - proposer?: ValidatorAmino; - total_voting_power?: string; -} -export interface ValidatorSetAminoMsg { - type: "/tendermint.types.ValidatorSet"; - value: ValidatorSetAmino; -} -export interface ValidatorSetSDKType { - validators: ValidatorSDKType[]; - proposer?: ValidatorSDKType; - total_voting_power: bigint; -} -export interface Validator { - address: Uint8Array; - pubKey: PublicKey; - votingPower: bigint; - proposerPriority: bigint; -} -export interface ValidatorProtoMsg { - typeUrl: "/tendermint.types.Validator"; - value: Uint8Array; -} -export interface ValidatorAmino { - address?: string; - pub_key?: PublicKeyAmino; - voting_power?: string; - proposer_priority?: string; -} -export interface ValidatorAminoMsg { - type: "/tendermint.types.Validator"; - value: ValidatorAmino; -} -export interface ValidatorSDKType { - address: Uint8Array; - pub_key: PublicKeySDKType; - voting_power: bigint; - proposer_priority: bigint; -} -export interface SimpleValidator { - pubKey?: PublicKey; - votingPower: bigint; -} -export interface SimpleValidatorProtoMsg { - typeUrl: "/tendermint.types.SimpleValidator"; - value: Uint8Array; -} -export interface SimpleValidatorAmino { - pub_key?: PublicKeyAmino; - voting_power?: string; -} -export interface SimpleValidatorAminoMsg { - type: "/tendermint.types.SimpleValidator"; - value: SimpleValidatorAmino; -} -export interface SimpleValidatorSDKType { - pub_key?: PublicKeySDKType; - voting_power: bigint; -} -export declare const ValidatorSet: { - typeUrl: string; - encode(message: ValidatorSet, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet; - fromPartial(object: Partial): ValidatorSet; - fromAmino(object: ValidatorSetAmino): ValidatorSet; - toAmino(message: ValidatorSet): ValidatorSetAmino; - fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet; - fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet; - toProto(message: ValidatorSet): Uint8Array; - toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg; -}; -export declare const Validator: { - typeUrl: string; - encode(message: Validator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Validator; - fromPartial(object: Partial): Validator; - fromAmino(object: ValidatorAmino): Validator; - toAmino(message: Validator): ValidatorAmino; - fromAminoMsg(object: ValidatorAminoMsg): Validator; - fromProtoMsg(message: ValidatorProtoMsg): Validator; - toProto(message: Validator): Uint8Array; - toProtoMsg(message: Validator): ValidatorProtoMsg; -}; -export declare const SimpleValidator: { - typeUrl: string; - encode(message: SimpleValidator, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator; - fromPartial(object: Partial): SimpleValidator; - fromAmino(object: SimpleValidatorAmino): SimpleValidator; - toAmino(message: SimpleValidator): SimpleValidatorAmino; - fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator; - fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator; - toProto(message: SimpleValidator): Uint8Array; - toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg; -}; diff --git a/packages/api/dist/tendermint/types/validator.js b/packages/api/dist/tendermint/types/validator.js deleted file mode 100644 index 6872f136..00000000 --- a/packages/api/dist/tendermint/types/validator.js +++ /dev/null @@ -1,271 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SimpleValidator = exports.Validator = exports.ValidatorSet = void 0; -//@ts-nocheck -const keys_1 = require("../crypto/keys"); -const binary_1 = require("../../binary"); -const helpers_1 = require("../../helpers"); -function createBaseValidatorSet() { - return { - validators: [], - proposer: undefined, - totalVotingPower: BigInt(0) - }; -} -exports.ValidatorSet = { - typeUrl: "/tendermint.types.ValidatorSet", - encode(message, writer = binary_1.BinaryWriter.create()) { - for (const v of message.validators) { - exports.Validator.encode(v, writer.uint32(10).fork()).ldelim(); - } - if (message.proposer !== undefined) { - exports.Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim(); - } - if (message.totalVotingPower !== BigInt(0)) { - writer.uint32(24).int64(message.totalVotingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validators.push(exports.Validator.decode(reader, reader.uint32())); - break; - case 2: - message.proposer = exports.Validator.decode(reader, reader.uint32()); - break; - case 3: - message.totalVotingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => exports.Validator.fromPartial(e)) || []; - message.proposer = object.proposer !== undefined && object.proposer !== null ? exports.Validator.fromPartial(object.proposer) : undefined; - message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? BigInt(object.totalVotingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidatorSet(); - message.validators = object.validators?.map(e => exports.Validator.fromAmino(e)) || []; - if (object.proposer !== undefined && object.proposer !== null) { - message.proposer = exports.Validator.fromAmino(object.proposer); - } - if (object.total_voting_power !== undefined && object.total_voting_power !== null) { - message.totalVotingPower = BigInt(object.total_voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - if (message.validators) { - obj.validators = message.validators.map(e => e ? exports.Validator.toAmino(e) : undefined); - } - else { - obj.validators = message.validators; - } - obj.proposer = message.proposer ? exports.Validator.toAmino(message.proposer) : undefined; - obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.ValidatorSet.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.ValidatorSet.decode(message.value); - }, - toProto(message) { - return exports.ValidatorSet.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.ValidatorSet", - value: exports.ValidatorSet.encode(message).finish() - }; - } -}; -function createBaseValidator() { - return { - address: new Uint8Array(), - pubKey: keys_1.PublicKey.fromPartial({}), - votingPower: BigInt(0), - proposerPriority: BigInt(0) - }; -} -exports.Validator = { - typeUrl: "/tendermint.types.Validator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.address.length !== 0) { - writer.uint32(10).bytes(message.address); - } - if (message.pubKey !== undefined) { - keys_1.PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(24).int64(message.votingPower); - } - if (message.proposerPriority !== BigInt(0)) { - writer.uint32(32).int64(message.proposerPriority); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 2: - message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); - break; - case 3: - message.votingPower = reader.int64(); - break; - case 4: - message.proposerPriority = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseValidator(); - message.address = object.address ?? new Uint8Array(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseValidator(); - if (object.address !== undefined && object.address !== null) { - message.address = (0, helpers_1.bytesFromBase64)(object.address); - } - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - if (object.proposer_priority !== undefined && object.proposer_priority !== null) { - message.proposerPriority = BigInt(object.proposer_priority); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.address = message.address ? (0, helpers_1.base64FromBytes)(message.address) : undefined; - obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Validator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Validator.decode(message.value); - }, - toProto(message) { - return exports.Validator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.Validator", - value: exports.Validator.encode(message).finish() - }; - } -}; -function createBaseSimpleValidator() { - return { - pubKey: undefined, - votingPower: BigInt(0) - }; -} -exports.SimpleValidator = { - typeUrl: "/tendermint.types.SimpleValidator", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.pubKey !== undefined) { - keys_1.PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim(); - } - if (message.votingPower !== BigInt(0)) { - writer.uint32(16).int64(message.votingPower); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSimpleValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pubKey = keys_1.PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.votingPower = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseSimpleValidator(); - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? keys_1.PublicKey.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseSimpleValidator(); - if (object.pub_key !== undefined && object.pub_key !== null) { - message.pubKey = keys_1.PublicKey.fromAmino(object.pub_key); - } - if (object.voting_power !== undefined && object.voting_power !== null) { - message.votingPower = BigInt(object.voting_power); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.pub_key = message.pubKey ? keys_1.PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.SimpleValidator.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.SimpleValidator.decode(message.value); - }, - toProto(message) { - return exports.SimpleValidator.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.types.SimpleValidator", - value: exports.SimpleValidator.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/tendermint/version/types.d.ts b/packages/api/dist/tendermint/version/types.d.ts deleted file mode 100644 index 7ae5d8dc..00000000 --- a/packages/api/dist/tendermint/version/types.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { BinaryReader, BinaryWriter } from "../../binary"; -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface App { - protocol: bigint; - software: string; -} -export interface AppProtoMsg { - typeUrl: "/tendermint.version.App"; - value: Uint8Array; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppAmino { - protocol?: string; - software?: string; -} -export interface AppAminoMsg { - type: "/tendermint.version.App"; - value: AppAmino; -} -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - */ -export interface AppSDKType { - protocol: bigint; - software: string; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface Consensus { - block: bigint; - app: bigint; -} -export interface ConsensusProtoMsg { - typeUrl: "/tendermint.version.Consensus"; - value: Uint8Array; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusAmino { - block?: string; - app?: string; -} -export interface ConsensusAminoMsg { - type: "/tendermint.version.Consensus"; - value: ConsensusAmino; -} -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface ConsensusSDKType { - block: bigint; - app: bigint; -} -export declare const App: { - typeUrl: string; - encode(message: App, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): App; - fromPartial(object: Partial): App; - fromAmino(object: AppAmino): App; - toAmino(message: App): AppAmino; - fromAminoMsg(object: AppAminoMsg): App; - fromProtoMsg(message: AppProtoMsg): App; - toProto(message: App): Uint8Array; - toProtoMsg(message: App): AppProtoMsg; -}; -export declare const Consensus: { - typeUrl: string; - encode(message: Consensus, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): Consensus; - fromPartial(object: Partial): Consensus; - fromAmino(object: ConsensusAmino): Consensus; - toAmino(message: Consensus): ConsensusAmino; - fromAminoMsg(object: ConsensusAminoMsg): Consensus; - fromProtoMsg(message: ConsensusProtoMsg): Consensus; - toProto(message: Consensus): Uint8Array; - toProtoMsg(message: Consensus): ConsensusProtoMsg; -}; diff --git a/packages/api/dist/tendermint/version/types.js b/packages/api/dist/tendermint/version/types.js deleted file mode 100644 index d56ed167..00000000 --- a/packages/api/dist/tendermint/version/types.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Consensus = exports.App = void 0; -//@ts-nocheck -const binary_1 = require("../../binary"); -function createBaseApp() { - return { - protocol: BigInt(0), - software: "" - }; -} -exports.App = { - typeUrl: "/tendermint.version.App", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.protocol !== BigInt(0)) { - writer.uint32(8).uint64(message.protocol); - } - if (message.software !== "") { - writer.uint32(18).string(message.software); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseApp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protocol = reader.uint64(); - break; - case 2: - message.software = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseApp(); - message.protocol = object.protocol !== undefined && object.protocol !== null ? BigInt(object.protocol.toString()) : BigInt(0); - message.software = object.software ?? ""; - return message; - }, - fromAmino(object) { - const message = createBaseApp(); - if (object.protocol !== undefined && object.protocol !== null) { - message.protocol = BigInt(object.protocol); - } - if (object.software !== undefined && object.software !== null) { - message.software = object.software; - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; - obj.software = message.software === "" ? undefined : message.software; - return obj; - }, - fromAminoMsg(object) { - return exports.App.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.App.decode(message.value); - }, - toProto(message) { - return exports.App.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.version.App", - value: exports.App.encode(message).finish() - }; - } -}; -function createBaseConsensus() { - return { - block: BigInt(0), - app: BigInt(0) - }; -} -exports.Consensus = { - typeUrl: "/tendermint.version.Consensus", - encode(message, writer = binary_1.BinaryWriter.create()) { - if (message.block !== BigInt(0)) { - writer.uint32(8).uint64(message.block); - } - if (message.app !== BigInt(0)) { - writer.uint32(16).uint64(message.app); - } - return writer; - }, - decode(input, length) { - const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsensus(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block = reader.uint64(); - break; - case 2: - message.app = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object) { - const message = createBaseConsensus(); - message.block = object.block !== undefined && object.block !== null ? BigInt(object.block.toString()) : BigInt(0); - message.app = object.app !== undefined && object.app !== null ? BigInt(object.app.toString()) : BigInt(0); - return message; - }, - fromAmino(object) { - const message = createBaseConsensus(); - if (object.block !== undefined && object.block !== null) { - message.block = BigInt(object.block); - } - if (object.app !== undefined && object.app !== null) { - message.app = BigInt(object.app); - } - return message; - }, - toAmino(message) { - const obj = {}; - obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; - obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; - return obj; - }, - fromAminoMsg(object) { - return exports.Consensus.fromAmino(object.value); - }, - fromProtoMsg(message) { - return exports.Consensus.decode(message.value); - }, - toProto(message) { - return exports.Consensus.encode(message).finish(); - }, - toProtoMsg(message) { - return { - typeUrl: "/tendermint.version.Consensus", - value: exports.Consensus.encode(message).finish() - }; - } -}; diff --git a/packages/api/dist/utf8.d.ts b/packages/api/dist/utf8.d.ts deleted file mode 100644 index 839f6a08..00000000 --- a/packages/api/dist/utf8.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -/** - * Calculates the UTF8 byte length of a string. - * @param {string} string String - * @returns {number} Byte length - */ -export declare function utf8Length(str: string): number; -/** - * Reads UTF8 bytes as a string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} String read - */ -export declare function utf8Read(buffer: ArrayLike, start: number, end: number): string; -/** - * Writes a string as UTF8 bytes. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Bytes written - */ -export declare function utf8Write(str: string, buffer: Uint8Array | Array, offset: number): number; diff --git a/packages/api/dist/utf8.js b/packages/api/dist/utf8.js deleted file mode 100644 index 25e9a236..00000000 --- a/packages/api/dist/utf8.js +++ /dev/null @@ -1,142 +0,0 @@ -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -// Copyright (c) 2016, Daniel Wirtz All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// * Neither the name of its author, nor the names of its contributors -// may be used to endorse or promote products derived from this software -// without specific prior written permission. -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.utf8Write = exports.utf8Read = exports.utf8Length = void 0; -/** - * Calculates the UTF8 byte length of a string. - * @param {string} string String - * @returns {number} Byte length - */ -function utf8Length(str) { - let len = 0, c = 0; - for (let i = 0; i < str.length; ++i) { - c = str.charCodeAt(i); - if (c < 128) - len += 1; - else if (c < 2048) - len += 2; - else if ((c & 0xfc00) === 0xd800 && - (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { - ++i; - len += 4; - } - else - len += 3; - } - return len; -} -exports.utf8Length = utf8Length; -/** - * Reads UTF8 bytes as a string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} String read - */ -function utf8Read(buffer, start, end) { - const len = end - start; - if (len < 1) - return ""; - const chunk = []; - let parts = [], i = 0, // char offset - t; // temporary - while (start < end) { - t = buffer[start++]; - if (t < 128) - chunk[i++] = t; - else if (t > 191 && t < 224) - chunk[i++] = ((t & 31) << 6) | (buffer[start++] & 63); - else if (t > 239 && t < 365) { - t = - (((t & 7) << 18) | - ((buffer[start++] & 63) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63)) - - 0x10000; - chunk[i++] = 0xd800 + (t >> 10); - chunk[i++] = 0xdc00 + (t & 1023); - } - else - chunk[i++] = - ((t & 15) << 12) | - ((buffer[start++] & 63) << 6) | - (buffer[start++] & 63); - if (i > 8191) { - (parts || (parts = [])).push(String.fromCharCode(...chunk)); - i = 0; - } - } - if (parts) { - if (i) - parts.push(String.fromCharCode(...chunk.slice(0, i))); - return parts.join(""); - } - return String.fromCharCode(...chunk.slice(0, i)); -} -exports.utf8Read = utf8Read; -/** - * Writes a string as UTF8 bytes. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Bytes written - */ -function utf8Write(str, buffer, offset) { - const start = offset; - let c1, // character 1 - c2; // character 2 - for (let i = 0; i < str.length; ++i) { - c1 = str.charCodeAt(i); - if (c1 < 128) { - buffer[offset++] = c1; - } - else if (c1 < 2048) { - buffer[offset++] = (c1 >> 6) | 192; - buffer[offset++] = (c1 & 63) | 128; - } - else if ((c1 & 0xfc00) === 0xd800 && - ((c2 = str.charCodeAt(i + 1)) & 0xfc00) === 0xdc00) { - c1 = 0x10000 + ((c1 & 0x03ff) << 10) + (c2 & 0x03ff); - ++i; - buffer[offset++] = (c1 >> 18) | 240; - buffer[offset++] = ((c1 >> 12) & 63) | 128; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } - else { - buffer[offset++] = (c1 >> 12) | 224; - buffer[offset++] = ((c1 >> 6) & 63) | 128; - buffer[offset++] = (c1 & 63) | 128; - } - } - return offset - start; -} -exports.utf8Write = utf8Write; diff --git a/packages/api/dist/varint.d.ts b/packages/api/dist/varint.d.ts deleted file mode 100644 index 74d78570..00000000 --- a/packages/api/dist/varint.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -export declare function varint64read(this: ReaderLike): [number, number]; -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -export declare function varint64write(lo: number, hi: number, bytes: number[]): void; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64FromString(dec: string): { - lo: number; - hi: number; -}; -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function int64ToString(lo: number, hi: number): string; -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -export declare function uInt64ToString(lo: number, hi: number): string; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -export declare function varint32write(value: number, bytes: number[]): void; -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -export declare function varint32read(this: ReaderLike): number; -type ReaderLike = { - buf: Uint8Array; - pos: number; - len: number; - assertBounds(): void; -}; -/** - * encode zig zag - */ -export declare function zzEncode(lo: number, hi: number): number[]; -/** - * decode zig zag - */ -export declare function zzDecode(lo: number, hi: number): number[]; -/** - * unsigned int32 without moving pos. - */ -export declare function readUInt32(buf: Uint8Array, pos: number): number; -/** - * signed int32 without moving pos. - */ -export declare function readInt32(buf: Uint8Array, pos: number): number; -/** - * writing varint32 to pos - */ -export declare function writeVarint32(val: number, buf: Uint8Array | number[], pos: number): void; -/** - * writing varint64 to pos - */ -export declare function writeVarint64(val: { - lo: number; - hi: number; -}, buf: Uint8Array | number[], pos: number): void; -export declare function int64Length(lo: number, hi: number): 1 | 2 | 4 | 3 | 6 | 7 | 10 | 8 | 9 | 5; -export declare function writeFixed32(val: number, buf: Uint8Array | number[], pos: number): void; -export declare function writeByte(val: number, buf: Uint8Array | number[], pos: number): void; -export {}; diff --git a/packages/api/dist/varint.js b/packages/api/dist/varint.js deleted file mode 100644 index bd82a456..00000000 --- a/packages/api/dist/varint.js +++ /dev/null @@ -1,427 +0,0 @@ -"use strict"; -//@ts-nocheck -/** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.2 -* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain -* and run the transpile command or yarn proto command to regenerate this bundle. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeByte = exports.writeFixed32 = exports.int64Length = exports.writeVarint64 = exports.writeVarint32 = exports.readInt32 = exports.readUInt32 = exports.zzDecode = exports.zzEncode = exports.varint32read = exports.varint32write = exports.uInt64ToString = exports.int64ToString = exports.int64FromString = exports.varint64write = exports.varint64read = void 0; -// Copyright 2008 Google Inc. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// Code generated by the Protocol Buffer compiler is owned by the owner -// of the input file used when generating it. This code is not -// standalone and requires a support library to be linked with it. This -// support library is itself covered by the above license. -/* eslint-disable prefer-const,@typescript-eslint/restrict-plus-operands */ -/** - * Read a 64 bit varint as two JS numbers. - * - * Returns tuple: - * [0]: low bits - * [1]: high bits - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175 - */ -function varint64read() { - let lowBits = 0; - let highBits = 0; - for (let shift = 0; shift < 28; shift += 7) { - let b = this.buf[this.pos++]; - lowBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - let middleByte = this.buf[this.pos++]; - // last four bits of the first 32 bit number - lowBits |= (middleByte & 0x0f) << 28; - // 3 upper bits are part of the next 32 bit number - highBits = (middleByte & 0x70) >> 4; - if ((middleByte & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - for (let shift = 3; shift <= 31; shift += 7) { - let b = this.buf[this.pos++]; - highBits |= (b & 0x7f) << shift; - if ((b & 0x80) == 0) { - this.assertBounds(); - return [lowBits, highBits]; - } - } - throw new Error("invalid varint"); -} -exports.varint64read = varint64read; -/** - * Write a 64 bit varint, given as two JS numbers, to the given bytes array. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344 - */ -function varint64write(lo, hi, bytes) { - for (let i = 0; i < 28; i = i + 7) { - const shift = lo >>> i; - const hasNext = !(shift >>> 7 == 0 && hi == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - const splitBits = ((lo >>> 28) & 0x0f) | ((hi & 0x07) << 4); - const hasMoreBits = !(hi >> 3 == 0); - bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xff); - if (!hasMoreBits) { - return; - } - for (let i = 3; i < 31; i = i + 7) { - const shift = hi >>> i; - const hasNext = !(shift >>> 7 == 0); - const byte = (hasNext ? shift | 0x80 : shift) & 0xff; - bytes.push(byte); - if (!hasNext) { - return; - } - } - bytes.push((hi >>> 31) & 0x01); -} -exports.varint64write = varint64write; -// constants for binary math -const TWO_PWR_32_DBL = 0x100000000; -/** - * Parse decimal string of 64 bit integer value as two JS numbers. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function int64FromString(dec) { - // Check for minus sign. - const minus = dec[0] === "-"; - if (minus) { - dec = dec.slice(1); - } - // Work 6 decimal digits at a time, acting like we're converting base 1e6 - // digits to binary. This is safe to do with floating point math because - // Number.isSafeInteger(ALL_32_BITS * 1e6) == true. - const base = 1e6; - let lowBits = 0; - let highBits = 0; - function add1e6digit(begin, end) { - // Note: Number('') is 0. - const digit1e6 = Number(dec.slice(begin, end)); - highBits *= base; - lowBits = lowBits * base + digit1e6; - // Carry bits from lowBits to - if (lowBits >= TWO_PWR_32_DBL) { - highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); - lowBits = lowBits % TWO_PWR_32_DBL; - } - } - add1e6digit(-24, -18); - add1e6digit(-18, -12); - add1e6digit(-12, -6); - add1e6digit(-6); - return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); -} -exports.int64FromString = int64FromString; -/** - * Losslessly converts a 64-bit signed integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function int64ToString(lo, hi) { - let bits = newBits(lo, hi); - // If we're treating the input as a signed value and the high bit is set, do - // a manual two's complement conversion before the decimal conversion. - const negative = bits.hi & 0x80000000; - if (negative) { - bits = negate(bits.lo, bits.hi); - } - const result = uInt64ToString(bits.lo, bits.hi); - return negative ? "-" + result : result; -} -exports.int64ToString = int64ToString; -/** - * Losslessly converts a 64-bit unsigned integer in 32:32 split representation - * into a decimal string. - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf-javascript/blob/a428c58273abad07c66071d9753bc4d1289de426/experimental/runtime/int64.js#L10 - */ -function uInt64ToString(lo, hi) { - ({ lo, hi } = toUnsigned(lo, hi)); - // Skip the expensive conversion if the number is small enough to use the - // built-in conversions. - // Number.MAX_SAFE_INTEGER = 0x001FFFFF FFFFFFFF, thus any number with - // highBits <= 0x1FFFFF can be safely expressed with a double and retain - // integer precision. - // Proven by: Number.isSafeInteger(0x1FFFFF * 2**32 + 0xFFFFFFFF) == true. - if (hi <= 0x1fffff) { - return String(TWO_PWR_32_DBL * hi + lo); - } - // What this code is doing is essentially converting the input number from - // base-2 to base-1e7, which allows us to represent the 64-bit range with - // only 3 (very large) digits. Those digits are then trivial to convert to - // a base-10 string. - // The magic numbers used here are - - // 2^24 = 16777216 = (1,6777216) in base-1e7. - // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7. - // Split 32:32 representation into 16:24:24 representation so our - // intermediate digits don't overflow. - const low = lo & 0xffffff; - const mid = ((lo >>> 24) | (hi << 8)) & 0xffffff; - const high = (hi >> 16) & 0xffff; - // Assemble our three base-1e7 digits, ignoring carries. The maximum - // value in a digit at this step is representable as a 48-bit integer, which - // can be stored in a 64-bit floating point number. - let digitA = low + mid * 6777216 + high * 6710656; - let digitB = mid + high * 8147497; - let digitC = high * 2; - // Apply carries from A to B and from B to C. - const base = 10000000; - if (digitA >= base) { - digitB += Math.floor(digitA / base); - digitA %= base; - } - if (digitB >= base) { - digitC += Math.floor(digitB / base); - digitB %= base; - } - // If digitC is 0, then we should have returned in the trivial code path - // at the top for non-safe integers. Given this, we can assume both digitB - // and digitA need leading zeros. - return (digitC.toString() + - decimalFrom1e7WithLeadingZeros(digitB) + - decimalFrom1e7WithLeadingZeros(digitA)); -} -exports.uInt64ToString = uInt64ToString; -function toUnsigned(lo, hi) { - return { lo: lo >>> 0, hi: hi >>> 0 }; -} -function newBits(lo, hi) { - return { lo: lo | 0, hi: hi | 0 }; -} -/** - * Returns two's compliment negation of input. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Signed_32-bit_integers - */ -function negate(lowBits, highBits) { - highBits = ~highBits; - if (lowBits) { - lowBits = ~lowBits + 1; - } - else { - // If lowBits is 0, then bitwise-not is 0xFFFFFFFF, - // adding 1 to that, results in 0x100000000, which leaves - // the low bits 0x0 and simply adds one to the high bits. - highBits += 1; - } - return newBits(lowBits, highBits); -} -/** - * Returns decimal representation of digit1e7 with leading zeros. - */ -const decimalFrom1e7WithLeadingZeros = (digit1e7) => { - const partial = String(digit1e7); - return "0000000".slice(partial.length) + partial; -}; -/** - * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)` - * - * Copyright 2008 Google Inc. All rights reserved. - * - * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144 - */ -function varint32write(value, bytes) { - if (value >= 0) { - // write value as varint 32 - while (value > 0x7f) { - bytes.push((value & 0x7f) | 0x80); - value = value >>> 7; - } - bytes.push(value); - } - else { - for (let i = 0; i < 9; i++) { - bytes.push((value & 127) | 128); - value = value >> 7; - } - bytes.push(1); - } -} -exports.varint32write = varint32write; -/** - * Read an unsigned 32 bit varint. - * - * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220 - */ -function varint32read() { - let b = this.buf[this.pos++]; - let result = b & 0x7f; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 7; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 14; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - b = this.buf[this.pos++]; - result |= (b & 0x7f) << 21; - if ((b & 0x80) == 0) { - this.assertBounds(); - return result; - } - // Extract only last 4 bits - b = this.buf[this.pos++]; - result |= (b & 0x0f) << 28; - for (let readBytes = 5; (b & 0x80) !== 0 && readBytes < 10; readBytes++) - b = this.buf[this.pos++]; - if ((b & 0x80) != 0) - throw new Error("invalid varint"); - this.assertBounds(); - // Result can have 32 bits, convert it to unsigned - return result >>> 0; -} -exports.varint32read = varint32read; -/** - * encode zig zag - */ -function zzEncode(lo, hi) { - let mask = hi >> 31; - hi = (((hi << 1) | (lo >>> 31)) ^ mask) >>> 0; - lo = ((lo << 1) ^ mask) >>> 0; - return [lo, hi]; -} -exports.zzEncode = zzEncode; -/** - * decode zig zag - */ -function zzDecode(lo, hi) { - let mask = -(lo & 1); - lo = (((lo >>> 1) | (hi << 31)) ^ mask) >>> 0; - hi = ((hi >>> 1) ^ mask) >>> 0; - return [lo, hi]; -} -exports.zzDecode = zzDecode; -/** - * unsigned int32 without moving pos. - */ -function readUInt32(buf, pos) { - return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - buf[pos + 3] * 0x1000000); -} -exports.readUInt32 = readUInt32; -/** - * signed int32 without moving pos. - */ -function readInt32(buf, pos) { - return ((buf[pos] | (buf[pos + 1] << 8) | (buf[pos + 2] << 16)) + - (buf[pos + 3] << 24)); -} -exports.readInt32 = readInt32; -/** - * writing varint32 to pos - */ -function writeVarint32(val, buf, pos) { - while (val > 127) { - buf[pos++] = (val & 127) | 128; - val >>>= 7; - } - buf[pos] = val; -} -exports.writeVarint32 = writeVarint32; -/** - * writing varint64 to pos - */ -function writeVarint64(val, buf, pos) { - while (val.hi) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = ((val.lo >>> 7) | (val.hi << 25)) >>> 0; - val.hi >>>= 7; - } - while (val.lo > 127) { - buf[pos++] = (val.lo & 127) | 128; - val.lo = val.lo >>> 7; - } - buf[pos++] = val.lo; -} -exports.writeVarint64 = writeVarint64; -function int64Length(lo, hi) { - let part0 = lo, part1 = ((lo >>> 28) | (hi << 4)) >>> 0, part2 = hi >>> 24; - return part2 === 0 - ? part1 === 0 - ? part0 < 16384 - ? part0 < 128 - ? 1 - : 2 - : part0 < 2097152 - ? 3 - : 4 - : part1 < 16384 - ? part1 < 128 - ? 5 - : 6 - : part1 < 2097152 - ? 7 - : 8 - : part2 < 128 - ? 9 - : 10; -} -exports.int64Length = int64Length; -function writeFixed32(val, buf, pos) { - buf[pos] = val & 255; - buf[pos + 1] = (val >>> 8) & 255; - buf[pos + 2] = (val >>> 16) & 255; - buf[pos + 3] = val >>> 24; -} -exports.writeFixed32 = writeFixed32; -function writeByte(val, buf, pos) { - buf[pos] = val & 255; -} -exports.writeByte = writeByte; From 8a8f98a33d75c573227ef3a5eddf8d56ef65d314 Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 13:14:43 +0200 Subject: [PATCH 5/9] chore: rm homepage --- .gitignore | 2 +- packages/api/package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5d2356a6..fd9f587d 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,4 @@ node_modules/ .env.production.local # Build -**/dist \ No newline at end of file +packages/api/dist/ \ No newline at end of file diff --git a/packages/api/package.json b/packages/api/package.json index 4c0e8a56..450b50c7 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -7,7 +7,6 @@ "module": "esm/index.js", "types": "index.d.ts", "license": "Apache-2.0", - "homepage": "https://github.com/regen-network/api", "repository": { "type": "git", "url": "https://github.com/regen-network/regen-js" From 519e4881caa2e674b1b68837630d8251e00d3b98 Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 13:26:19 +0200 Subject: [PATCH 6/9] docs: add api readme --- packages/api/README.md | 323 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 323 insertions(+) create mode 100644 packages/api/README.md diff --git a/packages/api/README.md b/packages/api/README.md new file mode 100644 index 00000000..f7b9a552 --- /dev/null +++ b/packages/api/README.md @@ -0,0 +1,323 @@ +# @regen-network/api + +

+
+ Javascript API for Regen Ledger +

+ +

+ + + + +

+ + +## install + +```sh +npm install @regen-network/api +``` +## Table of contents + +- [@regen-network/api](#@regen-network/api) + - [Install](#install) + - [Table of contents](#table-of-contents) +- [Usage](#usage) + - [RPC Clients](#rpc-clients) + - [Composing Messages](#composing-messages) + - Cosmos, CosmWasm, and IBC + - [CosmWasm](#cosmwasm-messages) + - [IBC](#ibc-messages) + - [Cosmos](#cosmos-messages) +- [Wallets and Signers](#connecting-with-wallets-and-signing-messages) + - [Stargate Client](#initializing-the-stargate-client) + - [Creating Signers](#creating-signers) + - [Broadcasting Messages](#broadcasting-messages) +- [Advanced Usage](#advanced-usage) +- [Developing](#developing) +- [Codegen](#codegen) +- [Publishing](#publishing) +- [Related](#related) +- [Credits](#credits) + +## Usage +### RPC Clients + +```js +import { regen } from '@regen-network/api'; + +const { createRPCQueryClient } = regen.ClientFactory; +const client = await createRPCQueryClient({ rpcEndpoint: RPC_ENDPOINT }); + +// now you can query the cosmos modules +const balance = await client.cosmos.bank.v1beta1 + .allBalances({ address: 'regen1addresshere' }); + +// you can also query the regen modules +const balances = await client.regen.exchange.v1beta1 + .exchangeBalances() +``` + +### Composing Messages + +Import the `regen` object from `@regen-network/api`. + +```js +import { regen } from '@regen-network/api'; + +const { + createSpotLimitOrder, + createSpotMarketOrder, + deposit +} = regen.exchange.v1beta1.MessageComposer.withTypeUrl; +``` + +#### CosmWasm Messages + +```js +import { cosmwasm } from "@regen-network/api"; + +const { + clearAdmin, + executeContract, + instantiateContract, + migrateContract, + storeCode, + updateAdmin +} = cosmwasm.wasm.v1.MessageComposer.withTypeUrl; +``` + +#### IBC Messages + +```js +import { ibc } from '@regen-network/api'; + +const { + transfer +} = ibc.applications.transfer.v1.MessageComposer.withTypeUrl +``` + +#### Cosmos Messages + +```js +import { cosmos } from '@regen-network/api'; + +const { + fundCommunityPool, + setWithdrawAddress, + withdrawDelegatorReward, + withdrawValidatorCommission +} = cosmos.distribution.v1beta1.MessageComposer.fromPartial; + +const { + multiSend, + send +} = cosmos.bank.v1beta1.MessageComposer.fromPartial; + +const { + beginRedelegate, + createValidator, + delegate, + editValidator, + undelegate +} = cosmos.staking.v1beta1.MessageComposer.fromPartial; + +const { + deposit, + submitProposal, + vote, + voteWeighted +} = cosmos.gov.v1beta1.MessageComposer.fromPartial; +``` + +## Connecting with Wallets and Signing Messages + +⚡️ For web interfaces, we recommend using [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit). Continue below to see how to manually construct signers and clients. + +Here are the docs on [creating signers](https://docs.cosmology.zone/cosmos-kit) in cosmos-kit that can be used with Keplr and other wallets. + +### Initializing the Stargate Client + +Use `getSigningRegenClient` to get your `SigningStargateClient`, with the proto/amino messages full-loaded. No need to manually add amino types, just require and initialize the client: + +```js +import { getSigningRegenClient } from 'api'; + +const stargateClient = await getSigningRegenClient({ + rpcEndpoint, + signer // OfflineSigner +}); +``` +### Creating Signers + +To broadcast messages, you can create signers with a variety of options: + +* [cosmos-kit](https://docs.cosmology.zone/cosmos-kit) (recommended) +* [keplr](https://docs.keplr.app/api/cosmjs.html) +* [cosmjs](https://gist.github.com/webmaster128/8444d42a7eceeda2544c8a59fbd7e1d9) +### Amino Signer + +Likely you'll want to use the Amino, so unless you need proto, you should use this one: + +```js +import { getOfflineSignerAmino as getOfflineSigner } from 'cosmjs-utils'; +``` +### Proto Signer + +```js +import { getOfflineSignerProto as getOfflineSigner } from 'cosmjs-utils'; +``` + +WARNING: NOT RECOMMENDED TO USE PLAIN-TEXT MNEMONICS. Please take care of your security and use best practices such as AES encryption and/or methods from 12factor applications. + +```js +import { chains } from 'chain-registry'; + +const mnemonic = + 'unfold client turtle either pilot stock floor glow toward bullet car science'; + const chain = chains.find(({ chain_name }) => chain_name === 'regen'); + const signer = await getOfflineSigner({ + mnemonic, + chain + }); +``` +### Broadcasting Messages + +Now that you have your `stargateClient`, you can broadcast messages: + +```js +const { send } = cosmos.bank.v1beta1.MessageComposer.withTypeUrl; + +const msg = send({ + amount: [ + { + denom: 'coin', + amount: '1000' + } + ], + toAddress: address, + fromAddress: address +}); + +const fee: StdFee = { + amount: [ + { + denom: 'coin', + amount: '864' + } + ], + gas: '86364' +}; +const response = await stargateClient.signAndBroadcast(address, [msg], fee); +``` + +## Advanced Usage + + +If you want to manually construct a stargate client + +```js +import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing"; +import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; + +import { + cosmosAminoConverters, + cosmosProtoRegistry, + cosmwasmAminoConverters, + cosmwasmProtoRegistry, + ibcProtoRegistry, + ibcAminoConverters, + regenAminoConverters, + regenProtoRegistry +} from 'api'; + +const signer: OfflineSigner = /* create your signer (see above) */ +const rpcEndpint = 'https://rpc.cosmos.directory/regen'; // or another URL + +const protoRegistry: ReadonlyArray<[string, GeneratedType]> = [ + ...cosmosProtoRegistry, + ...cosmwasmProtoRegistry, + ...ibcProtoRegistry, + ...regenProtoRegistry +]; + +const aminoConverters = { + ...cosmosAminoConverters, + ...cosmwasmAminoConverters, + ...ibcAminoConverters, + ...regenAminoConverters +}; + +const registry = new Registry(protoRegistry); +const aminoTypes = new AminoTypes(aminoConverters); + +const stargateClient = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry, + aminoTypes +}); +``` + +## Developing + +When first cloning the repo: + +``` +yarn +yarn build +``` + +### Codegen + +Look inside of `scripts/codegen.ts` and configure the settings for bundling your SDK and contracts into `@regen-network/api`: + +``` +yarn codegen +``` + +### Publishing + +To publish, use `lerna`: + +``` +lerna publish +``` + +You can publish patch, minor, or major versions: + +``` +lerna publish minor +``` + +If you absolutely need to publish manually using npm, ensure to do it this way, and publish from the `dist/` directory for proper tree-shaking module paths: + +``` +cd ./packages/ +yarn build +cd dist +npm publish +``` + + +## Related + +Checkout these related projects: + +* [@cosmology/telescope](https://github.com/cosmology-tech/telescope) Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. +* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. +* [chain-registry](https://github.com/cosmology-tech/chain-registry) Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. +* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. +* [create-cosmos-app](https://github.com/cosmology-tech/create-cosmos-app) Set up a modern Cosmos app by running one command. +* [interchain-ui](https://github.com/cosmology-tech/interchain-ui) The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. +* [starship](https://github.com/cosmology-tech/starship) Unified Testing and Development for the Interchain. + +## Credits + +🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.zone/validator) + + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. From 7f32f4dab13d8a316c37369ad8aa2e68499188fb Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 13:32:48 +0200 Subject: [PATCH 7/9] update: eslintignore --- .eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintignore b/.eslintignore index d8cea0f3..4be5fe26 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ .eslintrc.js /packages/api/dist +/packages/api/src From 51bfd40b1d75b49da0bc39469753ff14f71c1195 Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 14:51:49 +0200 Subject: [PATCH 8/9] fix: lint --- packages/api/jest.config.js | 30 +++++++++++++++--------------- packages/api/package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/api/jest.config.js b/packages/api/jest.config.js index 0aa3aaa4..f4c0ce04 100644 --- a/packages/api/jest.config.js +++ b/packages/api/jest.config.js @@ -1,18 +1,18 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - preset: "ts-jest", - testEnvironment: "node", - transform: { - "^.+\\.tsx?$": [ - "ts-jest", - { - babelConfig: false, - tsconfig: "tsconfig.json", - }, - ], - }, - transformIgnorePatterns: [`/node_modules/*`], - testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: ["dist/*"] + preset: 'ts-jest', + testEnvironment: 'node', + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + babelConfig: false, + tsconfig: 'tsconfig.json', + }, + ], + }, + transformIgnorePatterns: [`/node_modules/*`], + testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + modulePathIgnorePatterns: ['dist/*'], }; diff --git a/packages/api/package.json b/packages/api/package.json index 450b50c7..f3740b59 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -24,7 +24,7 @@ "prepare": "npm run build", "codegen": "ts-node scripts/codegen.ts", "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", - "lint": "eslint . --fix", + "lint": "eslint --ext js,ts,tsx .", "test": "jest", "test:watch": "jest --watch" }, From 26e825a918556b8101a0b640d8fe689c1e4d9a07 Mon Sep 17 00:00:00 2001 From: blushi Date: Mon, 30 Sep 2024 14:52:19 +0200 Subject: [PATCH 9/9] chore: mv lint cmd --- package.json | 2 +- packages/api/package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 5dea3a54..5ad9fa5a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build:api": "yarn workspace @regen-network/api build", "build": "lerna run build --stream", "lerna:deploy": "yarn build && lerna version --conventional-commits && lerna publish from-git", - "lint": "lerna run lint --parallel", + "lint": "eslint --ext js,ts,tsx .", "test": "lerna run test --stream --scope @regen-network/api", "codegen": "lerna run codegen --stream --scope @regen-network/api", "start": "yarn workspace @regen-network/api-demo start", diff --git a/packages/api/package.json b/packages/api/package.json index f3740b59..20ad95b2 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -24,7 +24,6 @@ "prepare": "npm run build", "codegen": "ts-node scripts/codegen.ts", "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", - "lint": "eslint --ext js,ts,tsx .", "test": "jest", "test:watch": "jest --watch" },